@cimplify/sdk 0.109.0 → 0.110.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/advanced.d.mts +4 -4
- package/dist/advanced.d.ts +4 -4
- package/dist/{audio-XU2sFNyO.d.mts → audio-DhvyjqdA.d.mts} +2 -2
- package/dist/{audio-8Igdy2WK.d.ts → audio-m0w8cnxq.d.ts} +2 -2
- package/dist/avatars.js +21 -21
- package/dist/avatars.mjs +3 -3
- package/dist/{backend-L4d_Ha0J.d.mts → backend-gUCzs5Kg.d.mts} +16 -2
- package/dist/{backend-L4d_Ha0J.d.ts → backend-gUCzs5Kg.d.ts} +16 -2
- package/dist/{catalogue-BeBFWlHF.d.mts → catalogue-CPTMyBUz.d.mts} +2 -2
- package/dist/{catalogue-DLLsfuNg.d.ts → catalogue-OTuS5zp-.d.ts} +2 -2
- package/dist/{chunk-HF2MZKP2.mjs → chunk-22BD3RHN.mjs} +6 -3
- package/dist/{chunk-B54P6RL2.js → chunk-2AQ237Y4.js} +30 -30
- package/dist/{chunk-W3VVG4NL.js → chunk-2O2CG465.js} +14 -2
- package/dist/{chunk-UPHTPBNQ.mjs → chunk-2QTQ6BUH.mjs} +1 -1
- package/dist/{chunk-BS65NRDW.js → chunk-3S6WPBZL.js} +16 -16
- package/dist/{chunk-PEZYNYJE.js → chunk-3TUOUP5T.js} +3 -3
- package/dist/{chunk-EB6EAOM5.mjs → chunk-3VEH23I5.mjs} +7 -10
- package/dist/{chunk-FB6YH2WW.js → chunk-4C7I3ELN.js} +4 -4
- package/dist/{chunk-UQYO3OM7.js → chunk-4ZDR72SG.js} +1 -2
- package/dist/{chunk-HPKKCUHU.js → chunk-52YS45RR.js} +13 -13
- package/dist/{chunk-6YVELDFK.mjs → chunk-5BYDGGWO.mjs} +1 -1
- package/dist/{chunk-YN24DET4.js → chunk-5HFMY3D7.js} +10 -10
- package/dist/{chunk-4CVB2ZTC.js → chunk-5LH2QN3T.js} +32 -29
- package/dist/{chunk-4A24F4ZV.mjs → chunk-5YFBGGCK.mjs} +4 -1
- package/dist/{chunk-NLAT3DB2.mjs → chunk-6DAEZKIG.mjs} +1 -1
- package/dist/{chunk-F6CHJXXK.mjs → chunk-6DATW7TB.mjs} +3 -3
- package/dist/{chunk-4RYATNVK.mjs → chunk-6H254EVP.mjs} +6 -11
- package/dist/{chunk-32U4BVJA.mjs → chunk-6PJWXIFX.mjs} +1 -1
- package/dist/{chunk-BHAGIIBI.js → chunk-6WUBSMTX.js} +82 -85
- package/dist/{chunk-EPYFN2A3.js → chunk-7AAIAVAA.js} +24 -20
- package/dist/{chunk-HZC27ICH.mjs → chunk-7BHW5GTC.mjs} +3 -3
- package/dist/{chunk-MB425DVA.mjs → chunk-7IQQQENP.mjs} +2 -2
- package/dist/{chunk-DJUUL67Z.js → chunk-7KFTYENS.js} +296 -296
- package/dist/{chunk-XLQSNQMP.js → chunk-7SM6XSPZ.js} +339 -339
- package/dist/{chunk-NBH64BDP.mjs → chunk-A33OORT7.mjs} +13 -1
- package/dist/{chunk-G2SXLGFY.js → chunk-A7BU3BK4.js} +7 -7
- package/dist/{chunk-ZNWS7NOW.mjs → chunk-A7V4L2IT.mjs} +2 -2
- package/dist/{chunk-O3SITS4R.mjs → chunk-AGV33FWC.mjs} +4 -4
- package/dist/{chunk-Z2DE3EHS.js → chunk-AHNR3BXI.js} +7 -7
- package/dist/{chunk-UQ4BHMLS.mjs → chunk-AQ5RLBU2.mjs} +5 -5
- package/dist/{chunk-J4HU2YQB.js → chunk-AQOE6WCG.js} +2 -2
- package/dist/{chunk-X57B7VQC.js → chunk-AYJPHKYV.js} +22 -22
- package/dist/{chunk-6XTWY6MH.js → chunk-AZAXD44P.js} +126 -42
- package/dist/{chunk-QDW4EPWS.mjs → chunk-BBGKQIJJ.mjs} +1 -1
- package/dist/{chunk-NHYTO4VU.js → chunk-BP4JLSUA.js} +111 -120
- package/dist/{chunk-7INQVOHY.mjs → chunk-BU6OK542.mjs} +25 -8
- package/dist/{chunk-W23VX5MY.js → chunk-CVSRWM6W.js} +5 -5
- package/dist/{chunk-A7DK7QAG.mjs → chunk-CYBMFMJD.mjs} +1 -1
- package/dist/{chunk-BOTUAHP2.mjs → chunk-DS2VU4WW.mjs} +5 -20
- package/dist/{chunk-HMMFNLXZ.js → chunk-DSAG7T5P.js} +2 -2
- package/dist/{chunk-7GG4KNTL.mjs → chunk-E65WCTIG.mjs} +8 -4
- package/dist/{chunk-WXDVEXTW.mjs → chunk-ECDK6QBF.mjs} +1 -1
- package/dist/{chunk-5IRV36MS.mjs → chunk-EIB4OWVQ.mjs} +1 -1
- package/dist/{chunk-JLJ4FD5H.js → chunk-EQUZYCGO.js} +18 -18
- package/dist/{chunk-AKTWH3KJ.mjs → chunk-F3UJ6ZRM.mjs} +2 -2
- package/dist/{chunk-J6HRY5EQ.js → chunk-F63N2ZTQ.js} +232 -232
- package/dist/{chunk-MUEFTPNN.js → chunk-FE6VCE4K.js} +34 -34
- package/dist/{chunk-2UYTS7SL.mjs → chunk-GCX7TY4D.mjs} +16 -16
- package/dist/{chunk-QDLMIHUH.js → chunk-GDB6TCSD.js} +7 -7
- package/dist/{chunk-7S7LDFGH.js → chunk-GDZT5LZ5.js} +12 -12
- package/dist/{chunk-TB2LS4CE.mjs → chunk-GHS6MIL6.mjs} +7 -11
- package/dist/{chunk-7OHZ56N7.mjs → chunk-GXKI64OT.mjs} +4 -4
- package/dist/{chunk-HRSIIDOZ.js → chunk-H3OQKK6X.js} +41 -41
- package/dist/{chunk-56BM75QX.js → chunk-H5DFSCJ6.js} +2 -2
- package/dist/{chunk-LMK775I4.mjs → chunk-HAGEIC2L.mjs} +1 -1
- package/dist/{chunk-6FZDMICK.js → chunk-HAJ4JRFO.js} +15 -15
- package/dist/{chunk-AWR2G5QN.js → chunk-HDR72GB6.js} +6 -11
- package/dist/{chunk-PTT6KIM6.js → chunk-HSEO6TPU.js} +9 -9
- package/dist/{chunk-CQSA2D2O.js → chunk-I5FOHCLH.js} +4 -31
- package/dist/{chunk-TMFB55IR.js → chunk-J2U6PJSO.js} +3 -30
- package/dist/{chunk-W77VO6LP.js → chunk-J5AJNY2N.js} +13 -13
- package/dist/{chunk-UKA7LHIT.js → chunk-JR3TNEQC.js} +98 -98
- package/dist/{chunk-P2O34BIO.mjs → chunk-JURRXY2J.mjs} +1 -1
- package/dist/{chunk-PKMVOVUA.mjs → chunk-K3HW5I2A.mjs} +1 -1
- package/dist/{chunk-BXUGKBMK.mjs → chunk-KDQOR4QQ.mjs} +1 -14
- package/dist/{chunk-KVZSYGTX.mjs → chunk-KGHJH5KJ.mjs} +1 -1
- package/dist/{chunk-3AKWZF3X.mjs → chunk-KK6HYVBI.mjs} +1 -1
- package/dist/{chunk-K6GK5B5J.js → chunk-KMKWGXMK.js} +6 -6
- package/dist/{chunk-EH4UG7IL.mjs → chunk-KU7O4IXU.mjs} +4 -4
- package/dist/{chunk-IHRMR3WV.mjs → chunk-KVFNRJOR.mjs} +9 -9
- package/dist/{chunk-HBZQ5HSV.mjs → chunk-LIV3KXJG.mjs} +1 -1
- package/dist/{chunk-S75PBSSL.mjs → chunk-ME6HGG4I.mjs} +92 -8
- package/dist/{chunk-FKYZCXFM.js → chunk-MIPO6F72.js} +3 -3
- package/dist/{chunk-MFWIHTEN.js → chunk-MTIHEW2M.js} +5 -5
- package/dist/{chunk-M53GR3ZV.mjs → chunk-NHJUGZUR.mjs} +43 -5
- package/dist/{chunk-FAYK2MN6.js → chunk-NZTKLY2W.js} +14 -18
- package/dist/{chunk-EQW6PFC2.js → chunk-O2ICABUD.js} +2 -2
- package/dist/{chunk-5PW6DVHF.js → chunk-OIVVQQ22.js} +55 -37
- package/dist/{chunk-GBJ5CW3A.js → chunk-PKOZXD2Q.js} +30 -30
- package/dist/{chunk-NGN3JE5A.js → chunk-PQTQKNKD.js} +16 -7
- package/dist/{chunk-PCVVQNBD.js → chunk-QS6TRHMR.js} +5 -5
- package/dist/{chunk-DXZZ27CV.js → chunk-RKBLPGPV.js} +245 -207
- package/dist/{chunk-765P2G7G.mjs → chunk-RUVGVNOF.mjs} +1 -1
- package/dist/{chunk-NJ7ZWH4U.mjs → chunk-SAFJIGYB.mjs} +1 -1
- package/dist/{chunk-AOPH2IZV.js → chunk-SKQFLBDD.js} +60 -22
- package/dist/{chunk-BUUA5XJV.js → chunk-TWM6DLYF.js} +2 -2
- package/dist/{chunk-YPL5TKI4.mjs → chunk-U6UVWEAK.mjs} +1 -1
- package/dist/{chunk-6YQDHXPL.mjs → chunk-UCEPNO6N.mjs} +46 -9
- package/dist/{chunk-U7RULAEP.mjs → chunk-UG5BTOTF.mjs} +2 -2
- package/dist/{chunk-MITGBWV7.mjs → chunk-UGH37BQW.mjs} +1 -1
- package/dist/{chunk-URRZ2SMI.mjs → chunk-V7ZRH3PY.mjs} +2 -2
- package/dist/{chunk-3H76N7G5.mjs → chunk-VBGHBL3E.mjs} +8 -17
- package/dist/{chunk-AZC2LTUI.js → chunk-VVE3Y76O.js} +2 -2
- package/dist/{chunk-BRAA7U3I.mjs → chunk-W65JIRI4.mjs} +1 -1
- package/dist/{chunk-KU4EDEKA.js → chunk-WKWTDZS7.js} +9 -9
- package/dist/{chunk-NTTHAXHI.js → chunk-X5A5FOWW.js} +11 -8
- package/dist/{chunk-ODL55PYL.mjs → chunk-XD2PMH46.mjs} +16 -7
- package/dist/{chunk-OADW5BSV.js → chunk-XK6UDWJS.js} +2 -2
- package/dist/{chunk-7ZTEVNXO.mjs → chunk-Y65LXQGA.mjs} +8 -8
- package/dist/{chunk-Z3PGQRTX.mjs → chunk-Y66WVMO5.mjs} +3 -30
- package/dist/{chunk-VZAJDN5C.mjs → chunk-Y7JWLB25.mjs} +1 -1
- package/dist/{chunk-ZJGPD42I.js → chunk-YCDXAJKU.js} +3 -3
- package/dist/{chunk-NCTLCSLE.mjs → chunk-Z3A3AFVU.mjs} +1 -1
- package/dist/{chunk-AEEF3T2E.mjs → chunk-ZCY6YKKP.mjs} +3 -3
- package/dist/{chunk-M5FWHML6.js → chunk-ZMIL4ZOA.js} +5 -18
- package/dist/{chunk-D3JMTFOX.mjs → chunk-ZR5ULMN2.mjs} +1 -1
- package/dist/{client-CO8lw80Q.d.mts → client-CX_WR0-J.d.mts} +2 -2
- package/dist/{client-C9hsiaki.d.ts → client-dqOhP9Nc.d.ts} +2 -2
- package/dist/{courier-CJasuxTU.d.ts → courier-Cnn-edJ4.d.ts} +5 -5
- package/dist/{courier-C2Vo2VlH.d.mts → courier-FmGfkvIN.d.mts} +5 -5
- package/dist/{crowd-D1ljcic8.d.ts → crowd-DdHFbqKK.d.ts} +1 -1
- package/dist/{crowd-B37S1apB.d.mts → crowd-hOVSAmA3.d.mts} +1 -1
- package/dist/{danfo-BsaPzhGi.d.mts → danfo-BEBapFlX.d.mts} +3 -3
- package/dist/{danfo-CCv23CPy.d.ts → danfo-UQ_PTIIx.d.ts} +3 -3
- package/dist/{elements-Bsfk7CPw.d.ts → elements-DdsRig-2.d.mts} +20 -0
- package/dist/{elements-Bsfk7CPw.d.mts → elements-DdsRig-2.d.ts} +20 -0
- package/dist/engines/godot.d.mts +1 -1
- package/dist/engines/godot.d.ts +1 -1
- package/dist/engines/wasm.d.mts +1 -1
- package/dist/engines/wasm.d.ts +1 -1
- package/dist/fallback-KDB4Y2CE.mjs +6 -0
- package/dist/fallback-Y26TQENE.js +19 -0
- package/dist/{five-a-side-DP84gMuh.d.mts → five-a-side-Bv1AOUy3.d.mts} +4 -4
- package/dist/{five-a-side-DO8SDqMb.d.ts → five-a-side-EC51SJY1.d.ts} +4 -4
- package/dist/{fluid-BkxNBD2t.d.ts → fluid-ARr0qUIL.d.ts} +168 -4
- package/dist/{fluid-BZ42EMds.d.mts → fluid-DLlEj2cs.d.mts} +168 -4
- package/dist/game/conformance.d.mts +7 -7
- package/dist/game/conformance.d.ts +7 -7
- package/dist/game/conformance.js +39 -41
- package/dist/game/conformance.mjs +17 -19
- package/dist/game/heap.d.mts +3 -3
- package/dist/game/heap.d.ts +3 -3
- package/dist/game/heap.js +13 -15
- package/dist/game/heap.mjs +4 -6
- package/dist/game/kit/canvas.d.mts +33 -34
- package/dist/game/kit/canvas.d.ts +33 -34
- package/dist/game/kit/canvas.js +569 -570
- package/dist/game/kit/canvas.mjs +52 -53
- package/dist/game/kit/courier.d.mts +9 -9
- package/dist/game/kit/courier.d.ts +9 -9
- package/dist/game/kit/courier.js +20 -20
- package/dist/game/kit/courier.mjs +17 -17
- package/dist/game/kit/danfo.d.mts +7 -7
- package/dist/game/kit/danfo.d.ts +7 -7
- package/dist/game/kit/danfo.js +30 -30
- package/dist/game/kit/danfo.mjs +15 -15
- package/dist/game/kit/engine.d.mts +12 -12
- package/dist/game/kit/engine.d.ts +12 -12
- package/dist/game/kit/engine.js +40 -41
- package/dist/game/kit/engine.mjs +11 -12
- package/dist/game/kit/five-a-side.d.mts +7 -7
- package/dist/game/kit/five-a-side.d.ts +7 -7
- package/dist/game/kit/five-a-side.js +24 -24
- package/dist/game/kit/five-a-side.mjs +14 -14
- package/dist/game/kit/frontier.d.mts +7 -7
- package/dist/game/kit/frontier.d.ts +7 -7
- package/dist/game/kit/genesis.d.mts +7 -7
- package/dist/game/kit/genesis.d.ts +7 -7
- package/dist/game/kit/ludo.d.mts +8 -8
- package/dist/game/kit/ludo.d.ts +8 -8
- package/dist/game/kit/ludo.js +24 -24
- package/dist/game/kit/ludo.mjs +14 -14
- package/dist/game/kit/runner.d.mts +8 -8
- package/dist/game/kit/runner.d.ts +8 -8
- package/dist/game/kit/runner.js +22 -22
- package/dist/game/kit/runner.mjs +14 -14
- package/dist/game/kit/shootout.d.mts +9 -9
- package/dist/game/kit/shootout.d.ts +9 -9
- package/dist/game/kit/shootout.js +33 -34
- package/dist/game/kit/shootout.mjs +18 -19
- package/dist/game/kit/tycoon.d.mts +9 -9
- package/dist/game/kit/tycoon.d.ts +9 -9
- package/dist/game/kit/tycoon.js +38 -38
- package/dist/game/kit/tycoon.mjs +14 -14
- package/dist/game/kit/word.d.mts +7 -7
- package/dist/game/kit/word.d.ts +7 -7
- package/dist/game/kit/word.js +22 -22
- package/dist/game/kit/word.mjs +14 -14
- package/dist/game/kit/worlds.d.mts +10 -10
- package/dist/game/kit/worlds.d.ts +10 -10
- package/dist/game/kit/worlds.js +22 -22
- package/dist/game/kit/worlds.mjs +17 -17
- package/dist/game/kit.d.mts +31 -32
- package/dist/game/kit.d.ts +31 -32
- package/dist/game/kit.js +523 -524
- package/dist/game/kit.mjs +38 -39
- package/dist/game/prepared.d.mts +6 -7
- package/dist/game/prepared.d.ts +6 -7
- package/dist/game/prepared.js +23 -24
- package/dist/game/prepared.mjs +12 -13
- package/dist/{game-BZAfgKV6.d.mts → game-Bx8onkhX.d.mts} +5 -97
- package/dist/{game-UoJWopvD.d.ts → game-fgQy2YIm.d.ts} +5 -97
- package/dist/game.d.mts +56 -18
- package/dist/game.d.ts +56 -18
- package/dist/game.js +922 -927
- package/dist/game.mjs +16 -17
- package/dist/{graphics-DNIAV5Mi.d.ts → graphics-C6YjWYvP.d.ts} +1 -1
- package/dist/{graphics-CGJDdtdT.d.mts → graphics-Dk2yQnYN.d.mts} +1 -1
- package/dist/{guest-CMCZeyh5.d.mts → guest-DrsA00XD.d.mts} +2 -7
- package/dist/{guest-CB458Hgw.d.ts → guest-wIdfoT05.d.ts} +2 -7
- package/dist/{hit-stop-D2Ca-i9-.d.mts → hit-stop-BKkVwTq7.d.mts} +1 -1
- package/dist/{hit-stop-Ca1OYk15.d.ts → hit-stop-D-8pPYnM.d.ts} +1 -1
- package/dist/{hot-B9BTmDz6.d.ts → hot-Crn9XpHJ.d.ts} +1 -1
- package/dist/{hot-B_L-GEHZ.d.mts → hot-DH3nOhQD.d.mts} +1 -1
- package/dist/{index-C3KORE2U.d.mts → index-6gkHMGAq.d.mts} +2 -2
- package/dist/{index-DPeyo938.d.ts → index-B8ybCKJI.d.ts} +3 -3
- package/dist/{index-DFDeJxFQ.d.ts → index-B98Xac8e.d.ts} +2 -2
- package/dist/{index-Cv_rL5X0.d.ts → index-B_ByTtIT.d.ts} +2 -2
- package/dist/{index-D8ZDzms9.d.mts → index-DHjNHb1c.d.mts} +3 -3
- package/dist/{index-C76o9Pj4.d.mts → index-DbAN_VQE.d.mts} +2 -2
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/interactives-authoring.js +12 -1
- package/dist/interactives-authoring.mjs +12 -1
- package/dist/interactives-canvas.global.js +14 -39
- package/dist/interactives-guest.d.mts +2 -2
- package/dist/interactives-guest.d.ts +2 -2
- package/dist/interactives-guest.js +10 -10
- package/dist/interactives-guest.mjs +6 -6
- package/dist/interactives-jsc.global.js +4 -23
- package/dist/interactives-meters.d.mts +11 -11
- package/dist/interactives-meters.d.ts +11 -11
- package/dist/interactives-meters.js +65 -66
- package/dist/interactives-meters.mjs +17 -18
- package/dist/interactives-production.d.mts +5 -5
- package/dist/interactives-production.d.ts +5 -5
- package/dist/interactives-production.js +15 -16
- package/dist/interactives-production.mjs +3 -4
- package/dist/interactives-record.d.mts +3 -9
- package/dist/interactives-record.d.ts +3 -9
- package/dist/interactives-record.js +45 -65
- package/dist/interactives-record.mjs +19 -39
- package/dist/interactives-runtime.d.mts +3 -3
- package/dist/interactives-runtime.d.ts +3 -3
- package/dist/interactives-runtime.js +101 -105
- package/dist/interactives-runtime.mjs +6 -6
- package/dist/interactives-studio-kernel.global.js +1 -1
- package/dist/interactives-studio.d.mts +7 -7
- package/dist/interactives-studio.d.ts +7 -7
- package/dist/interactives-studio.js +136 -82
- package/dist/interactives-studio.mjs +65 -11
- package/dist/interactives-web.d.mts +14 -14
- package/dist/interactives-web.d.ts +14 -14
- package/dist/interactives-web.js +201 -198
- package/dist/interactives-web.mjs +33 -34
- package/dist/interactives.d.mts +7 -28
- package/dist/interactives.d.ts +7 -28
- package/dist/interactives.js +267 -313
- package/dist/interactives.mjs +26 -24
- package/dist/{juice-Dfgc1B1q.d.ts → juice-CoHxlpKA.d.ts} +1 -1
- package/dist/{juice-CsnrmTOk.d.mts → juice-DQztFS43.d.mts} +1 -1
- package/dist/{launch-CCsmv8HC.d.mts → launch-T2f4_Di4.d.mts} +6 -6
- package/dist/{launch-8W_Tojpz.d.ts → launch-d6oreMzR.d.ts} +6 -6
- package/dist/{local-DA_HpPOj.d.mts → local-D8_I6UeL.d.mts} +0 -5
- package/dist/{local-_mD0x-p_.d.ts → local-VZkqsCzR.d.ts} +0 -5
- package/dist/{ludo-BVHycBP-.d.ts → ludo-B8ClkDqr.d.ts} +4 -4
- package/dist/{ludo-BRaTcI3E.d.mts → ludo-BOuohQ-M.d.mts} +4 -4
- package/dist/{native-CcMUV7rL.d.mts → native-BodxSh03.d.mts} +2 -2
- package/dist/{native-3f4Ht82c.d.ts → native-DUHMT8gA.d.ts} +2 -2
- package/dist/{online-CCy8pwOn.d.ts → online-XeymeM9s.d.ts} +1 -1
- package/dist/{online-smW2BO3Y.d.mts → online-d7W_Al9a.d.mts} +1 -1
- package/dist/{play-BhHHX1jD.d.ts → play-BRRlfLhX.d.ts} +5 -5
- package/dist/{play-Bn7NfGNE.d.mts → play-ClrMd_e8.d.mts} +5 -5
- package/dist/{policy-Dvnzg8ki.d.mts → policy-CCw8tXLm.d.mts} +19 -19
- package/dist/{policy-b3MVXMQu.d.ts → policy-CMqOSQIu.d.ts} +19 -19
- package/dist/{ports-CNeZdgVm.d.mts → ports-B_0v_P3A.d.mts} +1 -1
- package/dist/{ports-Vno6MDaR.d.ts → ports-CGU_3e_0.d.ts} +1 -1
- package/dist/{prefetch-BFg6lJyD.d.ts → prefetch-BHnicOQj.d.ts} +3 -3
- package/dist/{prefetch-BOoKX3qx.d.mts → prefetch-CBXgYacv.d.mts} +3 -3
- package/dist/{price-BIKJla_G.d.mts → price-BOzexBww.d.mts} +1 -1
- package/dist/{price-D1gE7Ek6.d.ts → price-C1h9sPxE.d.ts} +1 -1
- package/dist/react.d.mts +16 -16
- package/dist/react.d.ts +16 -16
- package/dist/react.js +29 -18
- package/dist/react.mjs +26 -15
- package/dist/{runner-BAG8EglP.d.ts → runner-CQcLL7By.d.ts} +6 -6
- package/dist/{runner-CKtKtIzc.d.mts → runner-D46Yj-wE.d.mts} +6 -6
- package/dist/{runtime-DfZp1Kwg.d.mts → runtime-BRWfkf_q.d.mts} +1 -8
- package/dist/{runtime-yHPgIJV-.d.ts → runtime-DyuBMkKM.d.ts} +1 -8
- package/dist/{scheduling-CnRAhWQL.d.ts → scheduling-D2ajXpMC.d.ts} +1 -1
- package/dist/{scheduling-lHyYoCa7.d.mts → scheduling-DSRbbaZb.d.mts} +1 -1
- package/dist/{server-DxcxjER1.d.ts → server-D29IIuDV.d.ts} +2 -2
- package/dist/{server-lU3Sznd4.d.mts → server-DQMWPnc8.d.mts} +2 -2
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/{shootout-rK-oblpb.d.ts → shootout-BJZeX6FG.d.ts} +6 -6
- package/dist/{shootout-D998OWa-.d.mts → shootout-tcZd1Rxt.d.mts} +6 -6
- package/dist/styles.css +1 -1
- package/dist/{template-Byaueo34.d.mts → template-AhCdB1kW.d.mts} +3 -3
- package/dist/{template-BXE2L654.d.ts → template-BkEGVTQj.d.ts} +3 -3
- package/dist/{terrain-vgYkJPNx.d.ts → terrain-BMxEc6Oc.d.ts} +3 -3
- package/dist/{terrain-CR0NQZPl.d.mts → terrain-C-XC1Oui.d.mts} +3 -3
- package/dist/testing/msw.d.mts +3 -3
- package/dist/testing/msw.d.ts +3 -3
- package/dist/testing/suite.d.mts +6 -6
- package/dist/testing/suite.d.ts +6 -6
- package/dist/testing.d.mts +5 -5
- package/dist/testing.d.ts +5 -5
- package/dist/{tick-transport-Q_8syS8J.d.mts → tick-transport-C8QEh8Uw.d.mts} +1 -1
- package/dist/{tick-transport-xpMcMTs2.d.ts → tick-transport-UjHY3xK1.d.ts} +1 -1
- package/dist/{tree-BsXFWKQ6.d.mts → tree-C-Io2Hbx.d.mts} +1 -1
- package/dist/{tree-DW9x29Vv.d.ts → tree-CP_qSW4H.d.ts} +1 -1
- package/dist/{tycoon-BMAE5Wea.d.mts → tycoon-B5KHk2Xx.d.mts} +5 -5
- package/dist/{tycoon-dWvWTbE4.d.ts → tycoon-hmHo-3HX.d.ts} +5 -5
- package/dist/{types-AkQEePZo.d.mts → types-BQkxPwZP.d.mts} +1 -1
- package/dist/{types-BWaZJDla.d.ts → types-D_f6UUxM.d.ts} +1 -1
- package/dist/utils.d.mts +3 -3
- package/dist/utils.d.ts +3 -3
- package/dist/{weave-delivery-3G03LdMM.d.mts → weave-delivery-CW-Kstut.d.mts} +10 -1
- package/dist/{weave-delivery-3G03LdMM.d.ts → weave-delivery-CW-Kstut.d.ts} +10 -1
- package/dist/{web-C8B9uVx_.d.ts → web-Dss74a7v.d.ts} +7 -7
- package/dist/{web-BqSEfX2o.d.mts → web-f9ZQPoyw.d.mts} +7 -7
- package/dist/{weight-BDABC8cN.d.ts → weight-CPGjsgjV.d.ts} +3 -3
- package/dist/{weight-Cee73u3d.d.mts → weight-tF1ODR1p.d.mts} +3 -3
- package/dist/{word-DB2CcI9q.d.mts → word-BcX9Jcmv.d.mts} +3 -3
- package/dist/{word-C1Q8oXuy.d.ts → word-C7sVPLHm.d.ts} +3 -3
- package/dist/{world-Bmh7K4tQ.d.ts → world-PvILHDR1.d.ts} +1 -1
- package/dist/{world-CPEjuctH.d.mts → world-qekkXjJv.d.mts} +1 -1
- package/dist/{worlds-ShY5h6Z_.d.ts → worlds-Br2Pb0Cs.d.ts} +6 -6
- package/dist/{worlds-CQgN3GnR.d.mts → worlds-D5ydYr7d.d.mts} +6 -6
- package/package.json +1 -1
- package/dist/chunk-2LKAOU3L.mjs +0 -96
- package/dist/chunk-UWPQL2IQ.js +0 -104
- package/dist/fallback-Q5YYIMVJ.js +0 -20
- package/dist/fallback-XGBE3RXC.mjs +0 -7
- package/dist/split-Di9wBpNx.d.mts +0 -68
- package/dist/split-Di9wBpNx.d.ts +0 -68
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkAABEK6XU_js = require('./chunk-AABEK6XU.js');
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
var
|
|
4
|
+
var chunkOIVVQQ22_js = require('./chunk-OIVVQQ22.js');
|
|
5
|
+
var chunkO2ICABUD_js = require('./chunk-O2ICABUD.js');
|
|
6
|
+
var chunkJ2U6PJSO_js = require('./chunk-J2U6PJSO.js');
|
|
7
|
+
var chunkGDZT5LZ5_js = require('./chunk-GDZT5LZ5.js');
|
|
8
|
+
var chunkXK6UDWJS_js = require('./chunk-XK6UDWJS.js');
|
|
9
9
|
var chunkT7LOXGYX_js = require('./chunk-T7LOXGYX.js');
|
|
10
|
+
var chunkI5FOHCLH_js = require('./chunk-I5FOHCLH.js');
|
|
10
11
|
var chunkTJI3K6RP_js = require('./chunk-TJI3K6RP.js');
|
|
11
|
-
var chunkCQSA2D2O_js = require('./chunk-CQSA2D2O.js');
|
|
12
12
|
require('./chunk-WWKMOA76.js');
|
|
13
|
-
var
|
|
13
|
+
var chunk4ZDR72SG_js = require('./chunk-4ZDR72SG.js');
|
|
14
14
|
var chunkJ2KZXIU3_js = require('./chunk-J2KZXIU3.js');
|
|
15
15
|
|
|
16
16
|
// src/interactives/content/origin.ts
|
|
@@ -55,14 +55,14 @@ function servesContent(origin, host) {
|
|
|
55
55
|
}
|
|
56
56
|
function sha256Hex(bytes) {
|
|
57
57
|
let digest = new Uint8Array(chunkTJI3K6RP_js.SHA256_BYTES);
|
|
58
|
-
return chunkTJI3K6RP_js.sha256Into(bytes, digest),
|
|
58
|
+
return chunkTJI3K6RP_js.sha256Into(bytes, digest), chunk4ZDR72SG_js.hex(digest);
|
|
59
59
|
}
|
|
60
60
|
function isDigestHex(value) {
|
|
61
61
|
return HEX_DIGEST.test(value);
|
|
62
62
|
}
|
|
63
63
|
function sri(digestHex) {
|
|
64
64
|
let bytes = new Uint8Array(chunkTJI3K6RP_js.SHA256_BYTES);
|
|
65
|
-
return !isDigestHex(digestHex) || !
|
|
65
|
+
return !isDigestHex(digestHex) || !chunk4ZDR72SG_js.unhex(digestHex, bytes) ? null : SRI_PREFIX + chunkJ2KZXIU3_js.encodeBase64(bytes);
|
|
66
66
|
}
|
|
67
67
|
function shellPath(runtimeDigest) {
|
|
68
68
|
return SHELL_PREFIX + runtimeDigest;
|
|
@@ -72,7 +72,7 @@ function runtimePath(runtimeDigest) {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// src/interactives/hosts/lazy.ts
|
|
75
|
-
var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4, DEFAULT_RUN_BYTES = 256 * 1024, PRIORITIES =
|
|
75
|
+
var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4, DEFAULT_RUN_BYTES = 256 * 1024, PRIORITIES = chunk4ZDR72SG_js.ChunkPriority.prefetch + 1, LazyChunkServer = class {
|
|
76
76
|
constructor(refs, options, sink = null) {
|
|
77
77
|
this.options = options;
|
|
78
78
|
this.sink = sink;
|
|
@@ -82,13 +82,13 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
82
82
|
this.flying = /* @__PURE__ */ new Map();
|
|
83
83
|
this.held = /* @__PURE__ */ new Map();
|
|
84
84
|
this.partials = /* @__PURE__ */ new Map();
|
|
85
|
-
this.failure = new Uint8Array(
|
|
85
|
+
this.failure = new Uint8Array(chunk4ZDR72SG_js.CHUNK_FAILED_BYTES);
|
|
86
86
|
this.heldBytes = 0;
|
|
87
87
|
this.generation = 0;
|
|
88
88
|
this.preemptions = 0;
|
|
89
89
|
this.runs = 0;
|
|
90
90
|
for (let ref of refs) this.known.set(ref.digest, ref);
|
|
91
|
-
this.budget = options.budget_bytes ?? DEFAULT_LAZY_BUDGET_BYTES, this.concurrency = Math.max(1, options.concurrency ?? (4)), this.prefetchSlots =
|
|
91
|
+
this.budget = options.budget_bytes ?? DEFAULT_LAZY_BUDGET_BYTES, this.concurrency = Math.max(1, options.concurrency ?? (4)), this.prefetchSlots = chunk4ZDR72SG_js.prefetchSlots(this.concurrency);
|
|
92
92
|
}
|
|
93
93
|
get bytesHeld() {
|
|
94
94
|
return this.heldBytes;
|
|
@@ -113,7 +113,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
113
113
|
this.flying.clear(), this.held.clear(), this.partials.clear(), this.heldBytes = 0;
|
|
114
114
|
}
|
|
115
115
|
request(bytes) {
|
|
116
|
-
|
|
116
|
+
chunk4ZDR72SG_js.forEachChunkEntry(bytes, chunk4ZDR72SG_js.CHUNK_REQUEST_ENTRY_BYTES, (digest, priority) => this.enqueue(digest, priority)), this.preempt(), this.pump();
|
|
117
117
|
}
|
|
118
118
|
requestOne(digest, priority) {
|
|
119
119
|
this.enqueue(digest, priority), this.preempt(), this.pump();
|
|
@@ -144,7 +144,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
144
144
|
at >= 0 && queue.splice(at, 1), this.queued.delete(digest);
|
|
145
145
|
}
|
|
146
146
|
release(bytes) {
|
|
147
|
-
|
|
147
|
+
chunk4ZDR72SG_js.forEachChunkEntry(bytes, chunk4ZDR72SG_js.CHUNK_RELEASE_ENTRY_BYTES, (digest) => {
|
|
148
148
|
let queued = this.queued.get(digest);
|
|
149
149
|
if (queued !== void 0) {
|
|
150
150
|
this.unqueue(digest, queued), this.partials.delete(digest);
|
|
@@ -180,7 +180,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
180
180
|
let top = this.top();
|
|
181
181
|
if (top === null) return null;
|
|
182
182
|
let queue = this.queues[top];
|
|
183
|
-
return queue.length === 0 || top ===
|
|
183
|
+
return queue.length === 0 || top === chunk4ZDR72SG_js.ChunkPriority.prefetch && this.prefetchFlying() >= this.prefetchSlots ? null : queue.shift() ?? null;
|
|
184
184
|
}
|
|
185
185
|
requestsFlying(priority) {
|
|
186
186
|
let count = 0, counted = /* @__PURE__ */ new Set();
|
|
@@ -195,13 +195,13 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
195
195
|
return count;
|
|
196
196
|
}
|
|
197
197
|
prefetchFlying() {
|
|
198
|
-
return this.requestsFlying(
|
|
198
|
+
return this.requestsFlying(chunk4ZDR72SG_js.ChunkPriority.prefetch);
|
|
199
199
|
}
|
|
200
200
|
pump() {
|
|
201
201
|
for (; this.requestsFlying(null) < this.concurrency; ) {
|
|
202
202
|
let digest = this.next();
|
|
203
203
|
if (digest === null) return;
|
|
204
|
-
let priority = this.queued.get(digest) ??
|
|
204
|
+
let priority = this.queued.get(digest) ?? chunk4ZDR72SG_js.ChunkPriority.now;
|
|
205
205
|
this.queued.delete(digest);
|
|
206
206
|
let controller = typeof AbortController == "function" ? new AbortController() : null, run = this.gather(digest, priority);
|
|
207
207
|
if (run.length > 1) {
|
|
@@ -253,7 +253,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
253
253
|
let k = wanted[m];
|
|
254
254
|
if (!live(k)) continue;
|
|
255
255
|
let body = bodies[m] ?? null;
|
|
256
|
-
if (body === null || !await
|
|
256
|
+
if (body === null || !await chunkOIVVQQ22_js.verifyChunk(run[k], body)) {
|
|
257
257
|
live(k) && this.fail(run[k], body === null ? "network" : "verify");
|
|
258
258
|
continue;
|
|
259
259
|
}
|
|
@@ -272,7 +272,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
fits(digest, size, priority) {
|
|
275
|
-
let already = this.held.get(digest) ?? 0, limit = priority ===
|
|
275
|
+
let already = this.held.get(digest) ?? 0, limit = priority === chunk4ZDR72SG_js.ChunkPriority.prefetch ? Math.floor(this.budget * chunk4ZDR72SG_js.PREFETCH_BUDGET_SHARE) : this.budget;
|
|
276
276
|
return this.heldBytes - already + size <= limit;
|
|
277
277
|
}
|
|
278
278
|
async serve(digest, flight, generation) {
|
|
@@ -284,7 +284,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
286
|
let partial = this.partials.get(digest);
|
|
287
|
-
partial === void 0 && (partial = new
|
|
287
|
+
partial === void 0 && (partial = new chunkOIVVQQ22_js.PartialChunk(), this.partials.set(digest, partial));
|
|
288
288
|
let body;
|
|
289
289
|
try {
|
|
290
290
|
body = await this.options.source.fetch(digest, flight.controller?.signal, partial);
|
|
@@ -293,7 +293,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
293
293
|
return;
|
|
294
294
|
}
|
|
295
295
|
if (!live()) return;
|
|
296
|
-
if (this.partials.delete(digest), !await
|
|
296
|
+
if (this.partials.delete(digest), !await chunkOIVVQQ22_js.verifyChunk(digest, body)) {
|
|
297
297
|
live() && this.fail(digest, "verify");
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
@@ -308,7 +308,7 @@ var DEFAULT_LAZY_BUDGET_BYTES = 64 * 1024 * 1024, DEFAULT_LAZY_CONCURRENCY = 4,
|
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
310
|
fail(digest, reason) {
|
|
311
|
-
let length =
|
|
311
|
+
let length = chunk4ZDR72SG_js.writeChunkFailed(this.failure, digest, reason);
|
|
312
312
|
this.sink?.send(this.failure, length);
|
|
313
313
|
}
|
|
314
314
|
};
|
|
@@ -322,7 +322,7 @@ function trackingOf(consents, interactive_id) {
|
|
|
322
322
|
var HostMediator = class {
|
|
323
323
|
constructor(options) {
|
|
324
324
|
this.options = options;
|
|
325
|
-
this.writer = new
|
|
325
|
+
this.writer = new chunk4ZDR72SG_js.MessageWriter();
|
|
326
326
|
this.offers = /* @__PURE__ */ new Map();
|
|
327
327
|
this.offerRequests = /* @__PURE__ */ new Set();
|
|
328
328
|
this.hostCalls = /* @__PURE__ */ new Map();
|
|
@@ -344,14 +344,14 @@ var HostMediator = class {
|
|
|
344
344
|
this.outlet?.toSession(this.writer.bytes, length);
|
|
345
345
|
}
|
|
346
346
|
sendConsents() {
|
|
347
|
-
this.send(this.writer.json(
|
|
347
|
+
this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.consent, { granted: [...this.options.consents.granted(this.options.interactive_id)] }));
|
|
348
348
|
}
|
|
349
349
|
relay(bytes) {
|
|
350
350
|
this.outlet?.toSession(bytes, bytes.length);
|
|
351
351
|
}
|
|
352
352
|
fromGuest(bytes) {
|
|
353
|
-
if (bytes[0] !==
|
|
354
|
-
let envelope =
|
|
353
|
+
if (bytes[0] !== chunk4ZDR72SG_js.MessageTag.request) return false;
|
|
354
|
+
let envelope = chunk4ZDR72SG_js.readJson(bytes);
|
|
355
355
|
switch (envelope.call.operation) {
|
|
356
356
|
case "wallet.offers":
|
|
357
357
|
return this.offerRequests.add(envelope.request_id), false;
|
|
@@ -364,8 +364,8 @@ var HostMediator = class {
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
fromSession(bytes) {
|
|
367
|
-
if (bytes[0] !==
|
|
368
|
-
let envelope =
|
|
367
|
+
if (bytes[0] !== chunk4ZDR72SG_js.MessageTag.response) return false;
|
|
368
|
+
let envelope = chunk4ZDR72SG_js.readJson(bytes), hostCall = this.hostCalls.get(envelope.request_id);
|
|
369
369
|
if (hostCall !== void 0)
|
|
370
370
|
return this.hostCalls.delete(envelope.request_id), hostCall(envelope), true;
|
|
371
371
|
let outcome = envelope.outcome;
|
|
@@ -394,7 +394,7 @@ var HostMediator = class {
|
|
|
394
394
|
call: { operation, arguments: args }
|
|
395
395
|
};
|
|
396
396
|
return new Promise((resolve) => {
|
|
397
|
-
this.hostCalls.set(request_id, resolve), this.send(this.writer.json(
|
|
397
|
+
this.hostCalls.set(request_id, resolve), this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.request, envelope));
|
|
398
398
|
});
|
|
399
399
|
}
|
|
400
400
|
async offer(offer_id) {
|
|
@@ -416,7 +416,7 @@ var HostMediator = class {
|
|
|
416
416
|
price_cimples,
|
|
417
417
|
decision
|
|
418
418
|
};
|
|
419
|
-
this.send(this.writer.json(
|
|
419
|
+
this.send(this.writer.json(chunk4ZDR72SG_js.MessageTag.confirm, confirmation)), this.relay(request);
|
|
420
420
|
}
|
|
421
421
|
async placement(request, placement, registry) {
|
|
422
422
|
let interactive_id = this.options.interactive_id;
|
|
@@ -553,8 +553,8 @@ function openSession(target, connect) {
|
|
|
553
553
|
socket.onmessage = (event) => {
|
|
554
554
|
let bytes = bytesOf(event.data);
|
|
555
555
|
if (!(bytes === null || bytes.length === 0)) {
|
|
556
|
-
if (bytes[0] ===
|
|
557
|
-
let hello =
|
|
556
|
+
if (bytes[0] === chunk4ZDR72SG_js.MessageTag.hello) {
|
|
557
|
+
let hello = chunk4ZDR72SG_js.readJson(bytes);
|
|
558
558
|
if (hello.protocol !== 1) {
|
|
559
559
|
reject(new Error(`session protocol ${hello.protocol} is not ${1}`)), socket.close((1e3));
|
|
560
560
|
return;
|
|
@@ -562,8 +562,8 @@ function openSession(target, connect) {
|
|
|
562
562
|
resolve({ transport, hello });
|
|
563
563
|
return;
|
|
564
564
|
}
|
|
565
|
-
if (bytes[0] ===
|
|
566
|
-
let close =
|
|
565
|
+
if (bytes[0] === chunk4ZDR72SG_js.MessageTag.close) {
|
|
566
|
+
let close = chunk4ZDR72SG_js.readJson(bytes);
|
|
567
567
|
reject(new Error(close.detail ?? close.reason)), finish(close);
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
@@ -706,11 +706,11 @@ function isClipCommand(command) {
|
|
|
706
706
|
}
|
|
707
707
|
function clipArm(options) {
|
|
708
708
|
return {
|
|
709
|
-
window_ms: options.window_ms ??
|
|
710
|
-
fps: options.fps ??
|
|
711
|
-
video_bits_per_second: options.video_bits_per_second ??
|
|
712
|
-
audio: options.audio ??
|
|
713
|
-
max_long_edge: options.max_long_edge ??
|
|
709
|
+
window_ms: options.window_ms ?? chunkGDZT5LZ5_js.DEFAULT_CLIP_ARM.window_ms,
|
|
710
|
+
fps: options.fps ?? chunkGDZT5LZ5_js.DEFAULT_CLIP_ARM.fps,
|
|
711
|
+
video_bits_per_second: options.video_bits_per_second ?? chunkGDZT5LZ5_js.DEFAULT_CLIP_ARM.video_bits_per_second,
|
|
712
|
+
audio: options.audio ?? chunkGDZT5LZ5_js.DEFAULT_CLIP_ARM.audio,
|
|
713
|
+
max_long_edge: options.max_long_edge ?? chunkGDZT5LZ5_js.DEFAULT_CLIP_ARM.max_long_edge
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
716
|
function keptMs(window_ms, started, now, max_ms) {
|
|
@@ -811,32 +811,23 @@ function referable(ref) {
|
|
|
811
811
|
function never() {
|
|
812
812
|
return false;
|
|
813
813
|
}
|
|
814
|
-
var ENGINE_GROUP_PREFIX = "engine:", SINGLE_THREAD_GROUP = "threads:single", ISOLATED_THREAD_GROUP = "threads:isolated", TIER_GROUP_PREFIX = "tier:", DEFAULT_HOST_TIER = "mid", ALTERNATIVE_RUNTIMES = { [
|
|
814
|
+
var ENGINE_GROUP_PREFIX = "engine:", SINGLE_THREAD_GROUP = "threads:single", ISOLATED_THREAD_GROUP = "threads:isolated", TIER_GROUP_PREFIX = "tier:", DEFAULT_HOST_TIER = "mid", ALTERNATIVE_RUNTIMES = { [chunk4ZDR72SG_js.ENGINE_CORE_THREADS_UNIT]: chunk4ZDR72SG_js.ENGINE_CORE_UNIT };
|
|
815
815
|
function standsInFor(chunk) {
|
|
816
816
|
let name = chunk.runtime?.name;
|
|
817
|
-
return name === void 0 ? null : chunk.asset_group ===
|
|
817
|
+
return name === void 0 ? null : chunk.asset_group === chunkOIVVQQ22_js.SCRIPTS_CORE_GROUP || chunk.asset_group === chunkI5FOHCLH_js.GL_CORE_GROUP ? name === chunk4ZDR72SG_js.ENGINE_CORE_UNIT ? chunk4ZDR72SG_js.ENGINE_CORE_UNIT : null : chunk.asset_group !== ISOLATED_THREAD_GROUP ? null : ALTERNATIVE_RUNTIMES[name] ?? null;
|
|
818
818
|
}
|
|
819
|
-
function chunksForHost(chunks, engine, isolated = false, tier = DEFAULT_HOST_TIER, threads = false, scripts =
|
|
820
|
-
let skipped = isolated ? SINGLE_THREAD_GROUP : ISOLATED_THREAD_GROUP, tierGroup = `${TIER_GROUP_PREFIX}${tier}`, offers = (group) => chunks.some((chunk) => chunk.asset_group === group && standsInFor(chunk) !== null), scripted = offers(
|
|
819
|
+
function chunksForHost(chunks, engine, isolated = false, tier = DEFAULT_HOST_TIER, threads = false, scripts = chunkOIVVQQ22_js.luauVmRunsHere, webgpu = hostWebGpu()) {
|
|
820
|
+
let skipped = isolated ? SINGLE_THREAD_GROUP : ISOLATED_THREAD_GROUP, tierGroup = `${TIER_GROUP_PREFIX}${tier}`, offers = (group) => chunks.some((chunk) => chunk.asset_group === group && standsInFor(chunk) !== null), scripted = offers(chunkOIVVQQ22_js.SCRIPTS_CORE_GROUP), glCore = !webgpu && offers(chunkI5FOHCLH_js.GL_CORE_GROUP) && (!scripted || scripts()), scriptsCore = !glCore && scripted && scripts(), chosen = (chunk) => chunk.asset_group === chunkI5FOHCLH_js.GL_CORE_GROUP ? glCore : chunk.asset_group === chunkOIVVQQ22_js.SCRIPTS_CORE_GROUP ? scriptsCore : threads && !scriptsCore && !glCore, replaced = /* @__PURE__ */ new Set();
|
|
821
821
|
for (let chunk of chunks) {
|
|
822
822
|
let unit = standsInFor(chunk);
|
|
823
823
|
unit !== null && chosen(chunk) && replaced.add(unit);
|
|
824
824
|
}
|
|
825
|
-
|
|
825
|
+
return chunks.filter((chunk) => {
|
|
826
826
|
if (standsInFor(chunk) !== null) return chosen(chunk);
|
|
827
827
|
let runtime = chunk.runtime?.name;
|
|
828
828
|
if (runtime !== void 0 && replaced.has(runtime)) return false;
|
|
829
|
-
if (runtime !== void 0 && chunkCQSA2D2O_js.coreOfRest(runtime) !== null) return true;
|
|
830
829
|
let group = chunk.asset_group;
|
|
831
|
-
return group === void 0 ? true : group === skipped ? false : group.startsWith(TIER_GROUP_PREFIX) ? group === tierGroup : group ===
|
|
832
|
-
}), cores = /* @__PURE__ */ new Set();
|
|
833
|
-
for (let chunk of kept) {
|
|
834
|
-
let runtime = chunk.runtime?.name;
|
|
835
|
-
runtime === void 0 || chunkCQSA2D2O_js.coreOfRest(runtime) !== null || (chunk.asset_group === chunk5PW6DVHF_js.SCRIPTS_CORE_GROUP ? cores.add(chunk5PW6DVHF_js.ENGINE_CORE_SCRIPTS_UNIT) : chunk.asset_group === chunkCQSA2D2O_js.GL_CORE_GROUP ? cores.add(chunkCQSA2D2O_js.ENGINE_CORE_GL_UNIT) : cores.add(runtime));
|
|
836
|
-
}
|
|
837
|
-
return kept.filter((chunk) => {
|
|
838
|
-
let runtime = chunk.runtime?.name, core = runtime === void 0 ? null : chunkCQSA2D2O_js.coreOfRest(runtime);
|
|
839
|
-
return core === null || cores.has(core);
|
|
830
|
+
return group === void 0 ? true : group === skipped ? false : group.startsWith(TIER_GROUP_PREFIX) ? group === tierGroup : group === chunkOIVVQQ22_js.LUAU_SCRIPTS_GROUP ? chunkOIVVQQ22_js.luauVmRunsHere() : group.startsWith(ENGINE_GROUP_PREFIX) ? engine !== null && group === `${ENGINE_GROUP_PREFIX}${engine}` : true;
|
|
840
831
|
});
|
|
841
832
|
}
|
|
842
833
|
var CODE_GROUP = "code";
|
|
@@ -865,7 +856,7 @@ function hostIsolated() {
|
|
|
865
856
|
return globalThis.crossOriginIsolated === true;
|
|
866
857
|
}
|
|
867
858
|
function hostThreads() {
|
|
868
|
-
return hostIsolated() &&
|
|
859
|
+
return hostIsolated() && chunkJ2U6PJSO_js.threadsAvailable();
|
|
869
860
|
}
|
|
870
861
|
var DEFAULT_HOST_LIMITS = {
|
|
871
862
|
ping_ms: 250,
|
|
@@ -880,7 +871,7 @@ var DEFAULT_HOST_LIMITS = {
|
|
|
880
871
|
this.fault = fault;
|
|
881
872
|
this.name = "HostFaultError";
|
|
882
873
|
}
|
|
883
|
-
}, RELAYED_FROM_GUEST = /* @__PURE__ */ new Set([
|
|
874
|
+
}, RELAYED_FROM_GUEST = /* @__PURE__ */ new Set([chunk4ZDR72SG_js.MessageTag.request, chunk4ZDR72SG_js.MessageTag.frames]), RELAYED_FROM_SESSION = /* @__PURE__ */ new Set([chunk4ZDR72SG_js.MessageTag.response, chunk4ZDR72SG_js.MessageTag.event, chunk4ZDR72SG_js.MessageTag.frames]), PARTS_SUBSCRIPTION = "sub_host_parts";
|
|
884
875
|
function workerEngines(script) {
|
|
885
876
|
return {
|
|
886
877
|
spawn() {
|
|
@@ -919,7 +910,7 @@ var GuestPool = class {
|
|
|
919
910
|
engine.on_crash(() => {
|
|
920
911
|
engine.terminate(), this.warm();
|
|
921
912
|
}), engine.on_message((bytes) => {
|
|
922
|
-
if (bytes[0] !==
|
|
913
|
+
if (bytes[0] !== chunk4ZDR72SG_js.MessageTag.ready) return;
|
|
923
914
|
engine.on_message(() => {
|
|
924
915
|
});
|
|
925
916
|
let next = this.waiting.shift();
|
|
@@ -940,7 +931,7 @@ var GuestPool = class {
|
|
|
940
931
|
}
|
|
941
932
|
}, TreeStore = class {
|
|
942
933
|
constructor() {
|
|
943
|
-
this.mirror = new
|
|
934
|
+
this.mirror = new chunkGDZT5LZ5_js.TreeMirror();
|
|
944
935
|
this.listeners = /* @__PURE__ */ new Set();
|
|
945
936
|
this.subscribe = (listener) => (this.listeners.add(listener), () => this.listeners.delete(listener));
|
|
946
937
|
this.snapshot = () => this.mirror.root;
|
|
@@ -957,12 +948,12 @@ var GuestPool = class {
|
|
|
957
948
|
constructor(options) {
|
|
958
949
|
this.options = options;
|
|
959
950
|
this.tree = new TreeStore();
|
|
960
|
-
this.writer = new
|
|
961
|
-
this.stepMessage = new Uint8Array(
|
|
951
|
+
this.writer = new chunk4ZDR72SG_js.MessageWriter();
|
|
952
|
+
this.stepMessage = new Uint8Array(chunk4ZDR72SG_js.TAG_BYTES);
|
|
962
953
|
this.supplying = 0;
|
|
963
|
-
this.ping = new Uint8Array(
|
|
954
|
+
this.ping = new Uint8Array(chunk4ZDR72SG_js.PING_BYTES);
|
|
964
955
|
this.pingView = new DataView(this.ping.buffer);
|
|
965
|
-
this.lifecycleMessage = new Uint8Array(
|
|
956
|
+
this.lifecycleMessage = new Uint8Array(chunk4ZDR72SG_js.LIFECYCLE_BYTES);
|
|
966
957
|
this.partsSequence = 0;
|
|
967
958
|
this.engine = null;
|
|
968
959
|
this.watchdog = null;
|
|
@@ -975,42 +966,42 @@ var GuestPool = class {
|
|
|
975
966
|
this.outlet = { toSession: (bytes, length) => this.options.transport.send(bytes, length) };
|
|
976
967
|
this.networkMessage = new Uint8Array(chunkT7LOXGYX_js.NETWORK_MESSAGE_BYTES);
|
|
977
968
|
this.unwatchNetwork = null;
|
|
978
|
-
this.inspectorMessage = new Uint8Array(
|
|
969
|
+
this.inspectorMessage = new Uint8Array(chunk4ZDR72SG_js.INSPECTOR_BYTES);
|
|
979
970
|
this.inspectorShown = false;
|
|
980
|
-
this.meterRequest =
|
|
981
|
-
this.studioOut = new
|
|
971
|
+
this.meterRequest = chunkXK6UDWJS_js.METERS_OFF;
|
|
972
|
+
this.studioOut = new chunkXK6UDWJS_js.StudioSender(chunk4ZDR72SG_js.MessageTag.studio, (frame) => this.engine?.send(frame, frame.length));
|
|
982
973
|
this.hotDone = null;
|
|
983
|
-
options.webgpu === void 0 && probeHostWebGpu(), this.networkHint = options.network === void 0 ? chunkT7LOXGYX_js.webNetworkHint() : options.network, options.network === void 0 && (this.unwatchNetwork = chunkT7LOXGYX_js.watchWebNetwork((hint) => this.setNetwork(hint))), this.limits = { ...DEFAULT_HOST_LIMITS, ...options.limits }, this.studioIn = options.on_studio === void 0 ? null : new
|
|
974
|
+
options.webgpu === void 0 && probeHostWebGpu(), this.networkHint = options.network === void 0 ? chunkT7LOXGYX_js.webNetworkHint() : options.network, options.network === void 0 && (this.unwatchNetwork = chunkT7LOXGYX_js.watchWebNetwork((hint) => this.setNetwork(hint))), this.limits = { ...DEFAULT_HOST_LIMITS, ...options.limits }, this.studioIn = options.on_studio === void 0 ? null : new chunkXK6UDWJS_js.StudioAssembler();
|
|
984
975
|
let isolated = hostIsolated(), threads = options.threads ?? hostThreads(), webgpu = options.webgpu ?? hostWebGpu();
|
|
985
|
-
this.hosted = (chunks) => chunksForHost(chunks, null, isolated, options.device_tier ?? DEFAULT_HOST_TIER, threads,
|
|
976
|
+
this.hosted = (chunks) => chunksForHost(chunks, null, isolated, options.device_tier ?? DEFAULT_HOST_TIER, threads, chunkOIVVQQ22_js.luauVmRunsHere, webgpu);
|
|
986
977
|
let hosted = this.hosted(options.package.chunks);
|
|
987
978
|
this.known = new Set(hosted.map((chunk) => chunk.digest)), this.chunks = hosted.filter((chunk) => chunk.lazy !== true), this.parts = options.part_store === void 0 ? null : options.part_store.session(
|
|
988
979
|
options.hello.program.interactive_id,
|
|
989
|
-
hosted.map((chunk) => ({ digest: chunk.digest, zone: chunk.asset_group ??
|
|
980
|
+
hosted.map((chunk) => ({ digest: chunk.digest, zone: chunk.asset_group ?? chunkOIVVQQ22_js.DEFAULT_PART_ZONE })),
|
|
990
981
|
{ keep_on_device: options.package.keep_on_device === true }
|
|
991
982
|
), this.parts?.on_evicted((eviction) => this.evicted(eviction));
|
|
992
|
-
let upstream =
|
|
983
|
+
let upstream = chunkOIVVQQ22_js.twinned(options.chunks, chunkOIVVQQ22_js.twinCaps(options.package.chunks));
|
|
993
984
|
this.source = this.parts === null ? upstream : this.parts.source(upstream);
|
|
994
985
|
let spans = ZoneSpans.of(options.package.chunks, options.package.zone_files ?? []);
|
|
995
|
-
this.afterFirstFrame = hosted.filter((chunk) => chunk.lazy === true && chunk.asset_group ===
|
|
986
|
+
this.afterFirstFrame = hosted.filter((chunk) => chunk.lazy === true && chunk.asset_group === chunkOIVVQQ22_js.LUAU_SCRIPTS_GROUP).map((chunk) => chunk.digest), this.lazyChunks = new LazyChunkServer(hosted.filter((chunk) => chunk.lazy === true), {
|
|
996
987
|
source: this.source,
|
|
997
988
|
budget_bytes: options.lazy_budget_bytes,
|
|
998
989
|
concurrency: options.lazy_concurrency,
|
|
999
990
|
spans: spans.size > 0 ? spans : void 0
|
|
1000
991
|
}), this.mediator = options.chrome === void 0 ? null : new HostMediator(options.chrome), this.now = options.now ?? (() => Date.now());
|
|
1001
992
|
let chrome = options.chrome;
|
|
1002
|
-
this.clips = options.clips === void 0 ? null : new HostClips(options.clips, options.hello.program.interactive_id, chrome === void 0 ? null : { consents: chrome.consents, controller: chrome.controller }, this.now), this.ping[0] =
|
|
993
|
+
this.clips = options.clips === void 0 ? null : new HostClips(options.clips, options.hello.program.interactive_id, chrome === void 0 ? null : { consents: chrome.consents, controller: chrome.controller }, this.now), this.ping[0] = chunk4ZDR72SG_js.MessageTag.ping, this.lifecycleMessage[0] = chunk4ZDR72SG_js.MessageTag.lifecycle, this.inspectorMessage[0] = chunk4ZDR72SG_js.MessageTag.inspector, options.transport.on_message((bytes) => this.fromSession(bytes)), options.transport.on_close((close) => this.fail({ source: "session", message: `${close.reason}${close.detail ? `: ${close.detail}` : ""}` }));
|
|
1003
994
|
}
|
|
1004
995
|
engineHeap() {
|
|
1005
|
-
return
|
|
996
|
+
return chunkO2ICABUD_js.engineHeapFor(this.options.package.engine_heap, this.options.device_tier ?? DEFAULT_HOST_TIER);
|
|
1006
997
|
}
|
|
1007
998
|
deviceRefusal() {
|
|
1008
999
|
let gpu = this.options.gpu, unmet = gpu === void 0 ? null : unmetGpuRequirement(gpu.requirements, gpu.limits);
|
|
1009
1000
|
if (unmet !== null) return { source: "device", requirement: unmet, message: `this device's GPU is below the game's ${unmet} requirement` };
|
|
1010
|
-
let features = this.options.engine_features, missing = features === void 0 ? null :
|
|
1001
|
+
let features = this.options.engine_features, missing = features === void 0 ? null : chunkOIVVQQ22_js.unmetEngineFeature(features.required, features.available);
|
|
1011
1002
|
if (missing !== null) return { source: "device", requirement: missing, message: `this device's engine does not provide ${missing}, which the game uses` };
|
|
1012
1003
|
let heap = this.engineHeap();
|
|
1013
|
-
return "refused" in heap ? { source: "device", requirement:
|
|
1004
|
+
return "refused" in heap ? { source: "device", requirement: chunkO2ICABUD_js.ENGINE_HEAP_REQUIREMENT, message: heap.refused } : null;
|
|
1014
1005
|
}
|
|
1015
1006
|
async start() {
|
|
1016
1007
|
if (this.phase !== "idle" && this.phase !== "crashed") throw new Error(`the host is ${this.phase}`);
|
|
@@ -1040,7 +1031,7 @@ var GuestPool = class {
|
|
|
1040
1031
|
} catch (error) {
|
|
1041
1032
|
return this.engine !== engine || this.fail({ source: "package", message: error instanceof Error ? error.message : String(error) }), settled;
|
|
1042
1033
|
}
|
|
1043
|
-
return engine.send(this.writer.bytes, this.writer.tag(
|
|
1034
|
+
return engine.send(this.writer.bytes, this.writer.tag(chunk4ZDR72SG_js.MessageTag.start)), this.clips?.attach(engine.clips ?? null), this.openReplay(engine), this.armWatchdog(), this.streamChunks(engine, following, followingBodies).then(() => this.keepRuntimes(engine, linked)), settled;
|
|
1044
1035
|
}
|
|
1045
1036
|
holdsPart(digest) {
|
|
1046
1037
|
return this.parts !== null && this.options.part_store?.has(digest) === true;
|
|
@@ -1065,7 +1056,7 @@ var GuestPool = class {
|
|
|
1065
1056
|
}
|
|
1066
1057
|
async deliver(engine, ref) {
|
|
1067
1058
|
if (engine.fetches_wasm === true && referable(ref) && !this.holdsPart(ref.digest)) {
|
|
1068
|
-
let message =
|
|
1059
|
+
let message = chunkOIVVQQ22_js.chunkRefMessage(chunk4ZDR72SG_js.MessageTag.chunk_ref, ref.digest, ref.payload_digest);
|
|
1069
1060
|
engine.send(message, message.length);
|
|
1070
1061
|
return;
|
|
1071
1062
|
}
|
|
@@ -1089,7 +1080,7 @@ var GuestPool = class {
|
|
|
1089
1080
|
}
|
|
1090
1081
|
async stepWhenSettled(engine, settled) {
|
|
1091
1082
|
for (; this.engine === engine && (this.supplying > 0 || this.lazyChunks.pending > 0); ) await new Promise((resolve) => setTimeout(resolve, 0));
|
|
1092
|
-
this.engine === engine && (settled(), this.stepMessage[0] =
|
|
1083
|
+
this.engine === engine && (settled(), this.stepMessage[0] = chunk4ZDR72SG_js.MessageTag.frame_step, engine.send(this.stepMessage, chunk4ZDR72SG_js.TAG_BYTES));
|
|
1093
1084
|
}
|
|
1094
1085
|
async streamChunks(engine, refs, bodies) {
|
|
1095
1086
|
for (let i = 0; i < refs.length; i++)
|
|
@@ -1112,7 +1103,7 @@ var GuestPool = class {
|
|
|
1112
1103
|
return new Promise((resolve) => {
|
|
1113
1104
|
let timer = setTimeout(() => this.fail({ source: "watchdog", message: "the guest engine did not start in time" }), this.limits.boot_ms);
|
|
1114
1105
|
engine.on_message((bytes) => {
|
|
1115
|
-
bytes[0] ===
|
|
1106
|
+
bytes[0] === chunk4ZDR72SG_js.MessageTag.ready && (clearTimeout(timer), resolve());
|
|
1116
1107
|
});
|
|
1117
1108
|
});
|
|
1118
1109
|
}
|
|
@@ -1122,11 +1113,11 @@ var GuestPool = class {
|
|
|
1122
1113
|
locale: this.options.locale,
|
|
1123
1114
|
clock_offset_ms: this.options.hello.server_time_ms - this.now(),
|
|
1124
1115
|
deadline_ms: null,
|
|
1125
|
-
chunk_requests:
|
|
1116
|
+
chunk_requests: chunk4ZDR72SG_js.CHUNK_REQUESTS_VERSION,
|
|
1126
1117
|
..."bytes" in heap ? { engine_heap_bytes: heap.bytes } : {},
|
|
1127
1118
|
...this.networkHint === null ? {} : { network: this.networkHint }
|
|
1128
1119
|
};
|
|
1129
|
-
engine.send(this.writer.bytes, this.writer.json(
|
|
1120
|
+
engine.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.boot, boot)), this.inspectorShown && this.sendInspector(engine), this.meterRequest.on && engine.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.meters, this.meterRequest)), this.studioIn !== null && (this.studioIn.reset(), this.studioOut.post({ topic: chunkXK6UDWJS_js.STUDIO_GRANT_TOPIC }));
|
|
1130
1121
|
}
|
|
1131
1122
|
get studio() {
|
|
1132
1123
|
return this.studioIn !== null;
|
|
@@ -1156,7 +1147,7 @@ var GuestPool = class {
|
|
|
1156
1147
|
setMeters(request) {
|
|
1157
1148
|
this.meterRequest = request;
|
|
1158
1149
|
let engine = this.engine;
|
|
1159
|
-
engine === null || this.phase === "disposed" || engine.send(this.writer.bytes, this.writer.json(
|
|
1150
|
+
engine === null || this.phase === "disposed" || engine.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.meters, request));
|
|
1160
1151
|
}
|
|
1161
1152
|
setInspector(shown) {
|
|
1162
1153
|
this.inspectorShown = shown;
|
|
@@ -1164,7 +1155,7 @@ var GuestPool = class {
|
|
|
1164
1155
|
engine === null || this.phase === "disposed" || this.sendInspector(engine);
|
|
1165
1156
|
}
|
|
1166
1157
|
sendInspector(engine) {
|
|
1167
|
-
this.inspectorMessage[
|
|
1158
|
+
this.inspectorMessage[chunk4ZDR72SG_js.TAG_BYTES] = this.inspectorShown ? chunk4ZDR72SG_js.INSPECTOR_SHOWN : chunk4ZDR72SG_js.INSPECTOR_HIDDEN, engine.send(this.inspectorMessage, chunk4ZDR72SG_js.INSPECTOR_BYTES);
|
|
1168
1159
|
}
|
|
1169
1160
|
get network() {
|
|
1170
1161
|
return this.networkHint;
|
|
@@ -1172,13 +1163,13 @@ var GuestPool = class {
|
|
|
1172
1163
|
setNetwork(hint) {
|
|
1173
1164
|
this.networkHint = hint;
|
|
1174
1165
|
let engine = this.engine;
|
|
1175
|
-
engine === null || this.phase === "disposed" || engine.send(this.networkMessage, chunkT7LOXGYX_js.writeNetworkHint(this.networkMessage,
|
|
1166
|
+
engine === null || this.phase === "disposed" || engine.send(this.networkMessage, chunkT7LOXGYX_js.writeNetworkHint(this.networkMessage, chunk4ZDR72SG_js.MessageTag.network, hint));
|
|
1176
1167
|
}
|
|
1177
1168
|
fetchChunks(refs) {
|
|
1178
|
-
return
|
|
1169
|
+
return chunkOIVVQQ22_js.fetchVerified(this.source, refs.map((ref) => ref.digest));
|
|
1179
1170
|
}
|
|
1180
1171
|
sendChunk(engine, digest, body) {
|
|
1181
|
-
let message =
|
|
1172
|
+
let message = chunkOIVVQQ22_js.chunkMessage(chunk4ZDR72SG_js.MessageTag.chunk, digest, body);
|
|
1182
1173
|
engine.send(message, message.length);
|
|
1183
1174
|
}
|
|
1184
1175
|
armWatchdog() {
|
|
@@ -1195,7 +1186,7 @@ var GuestPool = class {
|
|
|
1195
1186
|
now - this.pingSentAt > this.limits.cpu_slice_ms && this.fail({ source: "watchdog", message: `the guest ran longer than ${this.limits.cpu_slice_ms} ms without yielding` });
|
|
1196
1187
|
return;
|
|
1197
1188
|
}
|
|
1198
|
-
this.pingSequence = this.pingSequence + 1 >>> 0, this.pingView.setUint32(1, this.pingSequence, true), this.pingSentAt = now, engine.send(this.ping,
|
|
1189
|
+
this.pingSequence = this.pingSequence + 1 >>> 0, this.pingView.setUint32(1, this.pingSequence, true), this.pingSentAt = now, engine.send(this.ping, chunk4ZDR72SG_js.PING_BYTES);
|
|
1199
1190
|
}
|
|
1200
1191
|
pong(bytes) {
|
|
1201
1192
|
let view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
@@ -1205,7 +1196,7 @@ var GuestPool = class {
|
|
|
1205
1196
|
heap > this.limits.memory_bytes && this.fail({ source: "memory", message: `the guest heap reached ${heap} bytes, over its ${this.limits.memory_bytes} byte cap` });
|
|
1206
1197
|
}
|
|
1207
1198
|
fromGuest(bytes) {
|
|
1208
|
-
if (bytes.length >
|
|
1199
|
+
if (bytes.length > chunk4ZDR72SG_js.BRIDGE_LIMITS.max_message_bytes) {
|
|
1209
1200
|
this.fail({ source: "guest", phase: "run", message: "the guest sent an oversized message", stack: null });
|
|
1210
1201
|
return;
|
|
1211
1202
|
}
|
|
@@ -1216,62 +1207,62 @@ var GuestPool = class {
|
|
|
1216
1207
|
return;
|
|
1217
1208
|
}
|
|
1218
1209
|
switch (tag) {
|
|
1219
|
-
case
|
|
1210
|
+
case chunk4ZDR72SG_js.MessageTag.pong:
|
|
1220
1211
|
this.pong(bytes);
|
|
1221
1212
|
return;
|
|
1222
|
-
case
|
|
1223
|
-
if (bytes.length >
|
|
1213
|
+
case chunk4ZDR72SG_js.MessageTag.render:
|
|
1214
|
+
if (bytes.length > chunk4ZDR72SG_js.BRIDGE_LIMITS.max_render_bytes) {
|
|
1224
1215
|
this.fail({ source: "guest", phase: "render", message: "a tree update exceeded the render budget", stack: null });
|
|
1225
1216
|
return;
|
|
1226
1217
|
}
|
|
1227
|
-
this.tree.apply(
|
|
1218
|
+
this.tree.apply(chunk4ZDR72SG_js.readJson(bytes));
|
|
1228
1219
|
return;
|
|
1229
|
-
case
|
|
1230
|
-
this.command(
|
|
1220
|
+
case chunk4ZDR72SG_js.MessageTag.ui_command:
|
|
1221
|
+
this.command(chunk4ZDR72SG_js.readJson(bytes));
|
|
1231
1222
|
return;
|
|
1232
|
-
case
|
|
1233
|
-
this.fail({ source: "guest", ...
|
|
1223
|
+
case chunk4ZDR72SG_js.MessageTag.fault:
|
|
1224
|
+
this.fail({ source: "guest", ...chunk4ZDR72SG_js.readJson(bytes) });
|
|
1234
1225
|
return;
|
|
1235
|
-
case
|
|
1236
|
-
this.finishHot(
|
|
1226
|
+
case chunk4ZDR72SG_js.MessageTag.hot_done:
|
|
1227
|
+
this.finishHot(chunk4ZDR72SG_js.readJson(bytes));
|
|
1237
1228
|
return;
|
|
1238
|
-
case
|
|
1239
|
-
this.meterRequest.on && this.options.on_meters?.(
|
|
1229
|
+
case chunk4ZDR72SG_js.MessageTag.meter_report:
|
|
1230
|
+
this.meterRequest.on && this.options.on_meters?.(chunk4ZDR72SG_js.readJson(bytes));
|
|
1240
1231
|
return;
|
|
1241
|
-
case
|
|
1232
|
+
case chunk4ZDR72SG_js.MessageTag.studio_report:
|
|
1242
1233
|
this.studioReport(bytes);
|
|
1243
1234
|
return;
|
|
1244
|
-
case
|
|
1235
|
+
case chunk4ZDR72SG_js.MessageTag.started:
|
|
1245
1236
|
this.phase = "running", this.started?.(), this.started = null;
|
|
1246
1237
|
return;
|
|
1247
|
-
case
|
|
1238
|
+
case chunk4ZDR72SG_js.MessageTag.disposed:
|
|
1248
1239
|
this.teardown("disposed");
|
|
1249
1240
|
return;
|
|
1250
|
-
case
|
|
1241
|
+
case chunk4ZDR72SG_js.MessageTag.chunk_request: {
|
|
1251
1242
|
let engine = this.engine;
|
|
1252
1243
|
if (engine === null) return;
|
|
1253
1244
|
let lazy = [];
|
|
1254
|
-
|
|
1245
|
+
chunk4ZDR72SG_js.forEachChunkEntry(bytes, chunk4ZDR72SG_js.CHUNK_REQUEST_ENTRY_BYTES, (digest, priority) => {
|
|
1255
1246
|
this.chunks.some((chunk) => chunk.digest === digest) ? this.supply(engine, digest) : lazy.push([digest, priority]);
|
|
1256
1247
|
}), lazy.length > 0 && this.lazyChunks.requestMany(lazy);
|
|
1257
1248
|
return;
|
|
1258
1249
|
}
|
|
1259
|
-
case
|
|
1260
|
-
this.lazyChunks.release(bytes), this.parts !== null &&
|
|
1250
|
+
case chunk4ZDR72SG_js.MessageTag.chunk_release:
|
|
1251
|
+
this.lazyChunks.release(bytes), this.parts !== null && chunk4ZDR72SG_js.forEachChunkEntry(bytes, chunk4ZDR72SG_js.CHUNK_RELEASE_ENTRY_BYTES, (digest) => this.parts?.release(digest));
|
|
1261
1252
|
return;
|
|
1262
|
-
case
|
|
1263
|
-
let name =
|
|
1264
|
-
if (name === FIRST_FRAME_MILESTONE) for (let digest of this.afterFirstFrame) this.lazyChunks.requestOne(digest,
|
|
1253
|
+
case chunk4ZDR72SG_js.MessageTag.milestone: {
|
|
1254
|
+
let name = chunk4ZDR72SG_js.MILESTONE_BY_CODE[bytes[chunk4ZDR72SG_js.TAG_BYTES]] ?? null;
|
|
1255
|
+
if (name === FIRST_FRAME_MILESTONE) for (let digest of this.afterFirstFrame) this.lazyChunks.requestOne(digest, chunk4ZDR72SG_js.ChunkPriority.soon);
|
|
1265
1256
|
name !== null && this.options.on_milestone?.(name, this.now());
|
|
1266
1257
|
return;
|
|
1267
1258
|
}
|
|
1268
|
-
case
|
|
1269
|
-
let completion =
|
|
1259
|
+
case chunk4ZDR72SG_js.MessageTag.session_complete: {
|
|
1260
|
+
let completion = chunk4ZDR72SG_js.readSessionComplete(bytes);
|
|
1270
1261
|
completion !== null && this.options.on_complete?.(completion, this.now());
|
|
1271
1262
|
return;
|
|
1272
1263
|
}
|
|
1273
|
-
case
|
|
1274
|
-
let engine = this.engine, marked = this.options.on_frame_mark, mark =
|
|
1264
|
+
case chunk4ZDR72SG_js.MessageTag.frame_mark: {
|
|
1265
|
+
let engine = this.engine, marked = this.options.on_frame_mark, mark = chunk4ZDR72SG_js.readFrameMark(bytes);
|
|
1275
1266
|
if (engine === null || marked === void 0 || mark === null) return;
|
|
1276
1267
|
this.stepWhenSettled(engine, () => marked(mark));
|
|
1277
1268
|
return;
|
|
@@ -1287,7 +1278,7 @@ var GuestPool = class {
|
|
|
1287
1278
|
if (opened === null) return;
|
|
1288
1279
|
let flags = chunkAABEK6XU_js.replayFlags(opened.bytes);
|
|
1289
1280
|
if (flags === null) return;
|
|
1290
|
-
let mode = opened.mode === "play" && flags.play_from_here ? "play" : "watch", message =
|
|
1281
|
+
let mode = opened.mode === "play" && flags.play_from_here ? "play" : "watch", message = chunkGDZT5LZ5_js.replayMessage(opened.bytes, mode);
|
|
1291
1282
|
engine.send(message, message.length);
|
|
1292
1283
|
}
|
|
1293
1284
|
get clipsEnabled() {
|
|
@@ -1319,11 +1310,11 @@ var GuestPool = class {
|
|
|
1319
1310
|
let command = message.command, clips = this.clips, value = clips !== null && isClipCommand(command) ? await clips.command(command) : await this.options.on_command?.(command);
|
|
1320
1311
|
if (message.id === 0 || this.engine === null) return;
|
|
1321
1312
|
let reply = { id: message.id, value: value ?? null };
|
|
1322
|
-
this.engine.send(this.writer.bytes, this.writer.json(
|
|
1313
|
+
this.engine.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.ui_reply, reply));
|
|
1323
1314
|
}
|
|
1324
1315
|
grantConsents(granted) {
|
|
1325
1316
|
let consent = { granted: [...new Set(granted)] };
|
|
1326
|
-
this.options.transport.send(this.writer.bytes, this.writer.json(
|
|
1317
|
+
this.options.transport.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.consent, consent));
|
|
1327
1318
|
}
|
|
1328
1319
|
evicted(eviction) {
|
|
1329
1320
|
if (this.engine === null) return;
|
|
@@ -1334,13 +1325,13 @@ var GuestPool = class {
|
|
|
1334
1325
|
emitted_at: this.now(),
|
|
1335
1326
|
event: { family: "parts", event: { kind: "evicted", zone: eviction.zone, parts: eviction.parts, bytes: eviction.bytes, reason: eviction.reason, kept: eviction.kept } }
|
|
1336
1327
|
};
|
|
1337
|
-
this.engine.send(this.writer.bytes, this.writer.json(
|
|
1328
|
+
this.engine.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.event, envelope));
|
|
1338
1329
|
}
|
|
1339
1330
|
dispatch(event) {
|
|
1340
|
-
this.engine?.send(this.writer.bytes, this.writer.json(
|
|
1331
|
+
this.engine?.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.ui_event, event));
|
|
1341
1332
|
}
|
|
1342
1333
|
lifecycle(name) {
|
|
1343
|
-
this.engine !== null && (this.lifecycleMessage[1] =
|
|
1334
|
+
this.engine !== null && (this.lifecycleMessage[1] = chunk4ZDR72SG_js.LifecycleCode[name], this.engine.send(this.lifecycleMessage, chunk4ZDR72SG_js.LIFECYCLE_BYTES));
|
|
1344
1335
|
}
|
|
1345
1336
|
dispose() {
|
|
1346
1337
|
if (this.phase === "disposed") return;
|
|
@@ -1373,7 +1364,7 @@ var GuestPool = class {
|
|
|
1373
1364
|
let result = new Promise((resolve) => {
|
|
1374
1365
|
this.hotDone = resolve;
|
|
1375
1366
|
}), request = { chunks: fresh.map((chunk) => chunk.digest) };
|
|
1376
|
-
return engine.send(this.writer.bytes, this.writer.json(
|
|
1367
|
+
return engine.send(this.writer.bytes, this.writer.json(chunk4ZDR72SG_js.MessageTag.hot, request)), result;
|
|
1377
1368
|
}
|
|
1378
1369
|
finishHot(result) {
|
|
1379
1370
|
let done = this.hotDone;
|