UNPKG

@azaleacolburn/jolt-physics

Version:

A WebAssembly port of JoltPhysics, a rigid body physics and collision detection library, suitable for games and VR applications. Forked and maintained by Azalea Colburn for use in Synthesis.

108 lines (105 loc) 1.24 MB
// SPDX-FileCopyrightText: 2022-2024 Jorrit Rouwe // SPDX-License-Identifier: MIT // This is Web Assembly version of Jolt Physics, see: https://github.com/jrouwe/JoltPhysics.js var Jolt = (() => { var _scriptName = import.meta.url; return ( async function(moduleArg = {}) { var moduleRtn; var b=moduleArg,aa,ba,aaa=new Promise((a,c)=>{aa=a;ba=c}),baa="object"==typeof window,ca="undefined"!=typeof WorkerGlobalScope,da="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&"renderer"!=process.type;if(da){const {createRequire:a}=await import("module");let c=import.meta.url;c.startsWith("data:")&&(c="/");var require=a(c)}var ea=Object.assign({},b),fa="./this.program",ha="",ia,ja; if(da){var fs=require("fs"),caa=require("path");import.meta.url.startsWith("data:")||(ha=caa.dirname(require("url").fileURLToPath(import.meta.url))+"/");ja=a=>{a=ka(a)?new URL(a):a;return fs.readFileSync(a)};ia=async a=>{a=ka(a)?new URL(a):a;return fs.readFileSync(a,void 0)};!b.thisProgram&&1<process.argv.length&&(fa=process.argv[1].replace(/\\/g,"/"));process.argv.slice(2)}else if(baa||ca)ca?ha=self.location.href:"undefined"!=typeof document&&document.currentScript&&(ha=document.currentScript.src), _scriptName&&(ha=_scriptName),ha.startsWith("blob:")?ha="":ha=ha.substr(0,ha.replace(/[?#].*/,"").lastIndexOf("/")+1),ca&&(ja=a=>{var c=new XMLHttpRequest;c.open("GET",a,!1);c.responseType="arraybuffer";c.send(null);return new Uint8Array(c.response)}),ia=async a=>{if(ka(a))return new Promise((e,f)=>{var h=new XMLHttpRequest;h.open("GET",a,!0);h.responseType="arraybuffer";h.onload=()=>{200==h.status||0==h.status&&h.response?e(h.response):f(h.status)};h.onerror=f;h.send(null)});var c=await fetch(a, {credentials:"same-origin"});if(c.ok)return c.arrayBuffer();throw Error(c.status+" : "+c.url);};var daa=b.print||console.log.bind(console),la=b.printErr||console.error.bind(console);Object.assign(b,ea);ea=null;b.thisProgram&&(fa=b.thisProgram);var ma=b.wasmBinary,na,oa=!1,pa,qa,ra,sa,ta; function ua(){var a=na.buffer;b.HEAP8=pa=new Int8Array(a);b.HEAP16=new Int16Array(a);b.HEAPU8=qa=new Uint8Array(a);b.HEAPU16=new Uint16Array(a);b.HEAP32=ra=new Int32Array(a);b.HEAPU32=sa=new Uint32Array(a);b.HEAPF32=new Float32Array(a);b.HEAPF64=ta=new Float64Array(a)}var va=[],wa=[],xa=[],ya=!1;function eaa(){var a=b.preRun.shift();va.unshift(a)}var za=0,Aa=null; function Ba(a){b.onAbort?.(a);a="Aborted("+a+")";la(a);oa=!0;a=new WebAssembly.RuntimeError(a+". Build with -sASSERTIONS for more info.");ba(a);throw a;}var Ca=a=>a.startsWith("data:application/octet-stream;base64,"),ka=a=>a.startsWith("file://"),Da;async function faa(a){if(!ma)try{var c=await ia(a);return new Uint8Array(c)}catch{}if(a==Da&&ma)a=new Uint8Array(ma);else if(ja)a=ja(a);else throw"both async and sync fetching of the wasm failed";return a} async function gaa(a,c){try{var e=await faa(a);return await WebAssembly.instantiate(e,c)}catch(f){la(`failed to asynchronously prepare wasm: ${f}`),Ba(f)}} async function haa(a){var c=Da;if(!(ma||"function"!=typeof WebAssembly.instantiateStreaming||Ca(c)||ka(c)||da)&&"function"==typeof fetch)try{var e=fetch(c,{credentials:"same-origin"});return await WebAssembly.instantiateStreaming(e,a)}catch(f){la(`wasm streaming compile failed: ${f}`),la("falling back to ArrayBuffer instantiation")}return gaa(c,a)} var iaa={35567:a=>{a=b.getCache(b.PathConstraintPathJS)[a];if(!a.hasOwnProperty("GetPathMaxFraction"))throw"a JSImplementation must implement all functions, you forgot PathConstraintPathJS::GetPathMaxFraction.";return a.GetPathMaxFraction()},35834:(a,c,e)=>{a=b.getCache(b.PathConstraintPathJS)[a];if(!a.hasOwnProperty("GetClosestPoint"))throw"a JSImplementation must implement all functions, you forgot PathConstraintPathJS::GetClosestPoint.";return a.GetClosestPoint(c,e)},36097:(a,c,e,f,h,l)=>{a=b.getCache(b.PathConstraintPathJS)[a]; if(!a.hasOwnProperty("GetPointOnPath"))throw"a JSImplementation must implement all functions, you forgot PathConstraintPathJS::GetPointOnPath.";a.GetPointOnPath(c,e,f,h,l)},36359:(a,c,e)=>{a=b.getCache(b.GroupFilterJS)[a];if(!a.hasOwnProperty("CanCollide"))throw"a JSImplementation must implement all functions, you forgot GroupFilterJS::CanCollide.";return a.CanCollide(c,e)},36593:(a,c)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldSaveBody"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldSaveBody."; return a.ShouldSaveBody(c)},36852:(a,c)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldSaveConstraint"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldSaveConstraint.";return a.ShouldSaveConstraint(c)},37129:(a,c,e)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldSaveContact"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldSaveContact.";return a.ShouldSaveContact(c, e)},37400:(a,c,e)=>{a=b.getCache(b.StateRecorderFilterJS)[a];if(!a.hasOwnProperty("ShouldRestoreContact"))throw"a JSImplementation must implement all functions, you forgot StateRecorderFilterJS::ShouldRestoreContact.";return a.ShouldRestoreContact(c,e)},37680:a=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("IsEOF"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::IsEOF.";return a.IsEOF()},37898:a=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("IsFailed"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::IsFailed."; return a.IsFailed()},38125:(a,c,e)=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("WriteBytes"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::WriteBytes.";a.WriteBytes(c,e)},38356:(a,c,e)=>{a=b.getCache(b.StateRecorderJS)[a];if(!a.hasOwnProperty("ReadBytes"))throw"a JSImplementation must implement all functions, you forgot StateRecorderJS::ReadBytes.";a.ReadBytes(c,e)},38584:(a,c,e,f,h)=>{a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactAdded"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactAdded."; a.OnContactAdded(c,e,f,h)},38837:(a,c,e,f,h)=>{a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactPersisted"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactPersisted.";a.OnContactPersisted(c,e,f,h)},39102:(a,c)=>{a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactRemoved"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactRemoved.";a.OnContactRemoved(c)},39352:(a,c,e,f,h)=> {a=b.getCache(b.ContactListenerJS)[a];if(!a.hasOwnProperty("OnContactValidate"))throw"a JSImplementation must implement all functions, you forgot ContactListenerJS::OnContactValidate.";return a.OnContactValidate(c,e,f,h)},39621:(a,c,e)=>{a=b.getCache(b.SoftBodyContactListenerJS)[a];if(!a.hasOwnProperty("OnSoftBodyContactAdded"))throw"a JSImplementation must implement all functions, you forgot SoftBodyContactListenerJS::OnSoftBodyContactAdded.";a.OnSoftBodyContactAdded(c,e)},39908:(a,c,e,f)=>{a=b.getCache(b.SoftBodyContactListenerJS)[a]; if(!a.hasOwnProperty("OnSoftBodyContactValidate"))throw"a JSImplementation must implement all functions, you forgot SoftBodyContactListenerJS::OnSoftBodyContactValidate.";return a.OnSoftBodyContactValidate(c,e,f)},40214:a=>{a=b.getCache(b.RayCastBodyCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot RayCastBodyCollectorJS::Reset.";a.Reset()},40439:(a,c)=>{a=b.getCache(b.RayCastBodyCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot RayCastBodyCollectorJS::AddHit."; a.AddHit(c)},40669:a=>{a=b.getCache(b.CollideShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CollideShapeBodyCollectorJS::Reset.";a.Reset()},40904:(a,c)=>{a=b.getCache(b.CollideShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CollideShapeBodyCollectorJS::AddHit.";a.AddHit(c)},41144:a=>{a=b.getCache(b.CastShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CastShapeBodyCollectorJS::Reset."; a.Reset()},41373:(a,c)=>{a=b.getCache(b.CastShapeBodyCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CastShapeBodyCollectorJS::AddHit.";a.AddHit(c)},41607:a=>{a=b.getCache(b.CastRayCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CastRayCollectorJS::Reset.";a.Reset()},41824:(a,c)=>{a=b.getCache(b.CastRayCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CastRayCollectorJS::OnBody."; a.OnBody(c)},42046:(a,c)=>{a=b.getCache(b.CastRayCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CastRayCollectorJS::AddHit.";a.AddHit(c)},42268:a=>{a=b.getCache(b.CollidePointCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CollidePointCollectorJS::Reset.";a.Reset()},42495:(a,c)=>{a=b.getCache(b.CollidePointCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CollidePointCollectorJS::OnBody."; a.OnBody(c)},42727:(a,c)=>{a=b.getCache(b.CollidePointCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CollidePointCollectorJS::AddHit.";a.AddHit(c)},42959:a=>{a=b.getCache(b.CollideShapeCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CollideShapeCollectorJS::Reset.";a.Reset()},43186:(a,c)=>{a=b.getCache(b.CollideShapeCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CollideShapeCollectorJS::OnBody."; a.OnBody(c)},43418:(a,c)=>{a=b.getCache(b.CollideShapeCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CollideShapeCollectorJS::AddHit.";a.AddHit(c)},43650:a=>{a=b.getCache(b.CastShapeCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot CastShapeCollectorJS::Reset.";a.Reset()},43871:(a,c)=>{a=b.getCache(b.CastShapeCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot CastShapeCollectorJS::OnBody."; a.OnBody(c)},44097:(a,c)=>{a=b.getCache(b.CastShapeCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot CastShapeCollectorJS::AddHit.";a.AddHit(c)},44323:a=>{a=b.getCache(b.TransformedShapeCollectorJS)[a];if(!a.hasOwnProperty("Reset"))throw"a JSImplementation must implement all functions, you forgot TransformedShapeCollectorJS::Reset.";a.Reset()},44558:(a,c)=>{a=b.getCache(b.TransformedShapeCollectorJS)[a];if(!a.hasOwnProperty("OnBody"))throw"a JSImplementation must implement all functions, you forgot TransformedShapeCollectorJS::OnBody."; a.OnBody(c)},44798:(a,c)=>{a=b.getCache(b.TransformedShapeCollectorJS)[a];if(!a.hasOwnProperty("AddHit"))throw"a JSImplementation must implement all functions, you forgot TransformedShapeCollectorJS::AddHit.";a.AddHit(c)},45038:(a,c)=>{a=b.getCache(b.PhysicsStepListenerJS)[a];if(!a.hasOwnProperty("OnStep"))throw"a JSImplementation must implement all functions, you forgot PhysicsStepListenerJS::OnStep.";a.OnStep(c)},45266:(a,c,e)=>{a=b.getCache(b.BodyActivationListenerJS)[a];if(!a.hasOwnProperty("OnBodyActivated"))throw"a JSImplementation must implement all functions, you forgot BodyActivationListenerJS::OnBodyActivated."; a.OnBodyActivated(c,e)},45530:(a,c,e)=>{a=b.getCache(b.BodyActivationListenerJS)[a];if(!a.hasOwnProperty("OnBodyDeactivated"))throw"a JSImplementation must implement all functions, you forgot BodyActivationListenerJS::OnBodyDeactivated.";a.OnBodyDeactivated(c,e)},45800:(a,c,e,f,h)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnAdjustBodyVelocity"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnAdjustBodyVelocity.";a.OnAdjustBodyVelocity(c, e,f,h)},46089:(a,c,e,f)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnContactValidate"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnContactValidate.";return a.OnContactValidate(c,e,f)},46373:(a,c,e,f)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnCharacterContactValidate"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnCharacterContactValidate."; return a.OnCharacterContactValidate(c,e,f)},46684:(a,c,e,f,h,l,r)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnContactAdded"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnContactAdded.";a.OnContactAdded(c,e,f,h,l,r)},46961:(a,c,e,f,h,l,r)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnCharacterContactAdded"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnCharacterContactAdded."; a.OnCharacterContactAdded(c,e,f,h,l,r)},47265:(a,c,e,f,h,l,r,A,R,Ta)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnContactSolve"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnContactSolve.";a.OnContactSolve(c,e,f,h,l,r,A,R,Ta)},47551:(a,c,e,f,h,l,r,A,R,Ta)=>{a=b.getCache(b.CharacterContactListenerJS)[a];if(!a.hasOwnProperty("OnCharacterContactSolve"))throw"a JSImplementation must implement all functions, you forgot CharacterContactListenerJS::OnCharacterContactSolve."; a.OnCharacterContactSolve(c,e,f,h,l,r,A,R,Ta)},47864:(a,c,e)=>{a=b.getCache(b.ObjectVsBroadPhaseLayerFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ObjectVsBroadPhaseLayerFilterJS::ShouldCollide.";return a.ShouldCollide(c,e)},48143:(a,c)=>{a=b.getCache(b.ObjectLayerFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ObjectLayerFilterJS::ShouldCollide.";return a.ShouldCollide(c)}, 48395:(a,c,e)=>{a=b.getCache(b.ObjectLayerPairFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ObjectLayerPairFilterJS::ShouldCollide.";return a.ShouldCollide(c,e)},48658:(a,c)=>{a=b.getCache(b.BodyFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot BodyFilterJS::ShouldCollide.";return a.ShouldCollide(c)},48896:(a,c)=>{a=b.getCache(b.BodyFilterJS)[a];if(!a.hasOwnProperty("ShouldCollideLocked"))throw"a JSImplementation must implement all functions, you forgot BodyFilterJS::ShouldCollideLocked."; return a.ShouldCollideLocked(c)},49152:(a,c,e)=>{a=b.getCache(b.ShapeFilterJS)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ShapeFilterJS::ShouldCollide.";return a.ShouldCollide(c,e)},49395:(a,c,e,f,h)=>{a=b.getCache(b.ShapeFilterJS2)[a];if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot ShapeFilterJS2::ShouldCollide.";return a.ShouldCollide(c,e,f,h)},49646:(a,c,e,f,h,l,r)=>{a=b.getCache(b.SimShapeFilterJS)[a]; if(!a.hasOwnProperty("ShouldCollide"))throw"a JSImplementation must implement all functions, you forgot SimShapeFilterJS::ShouldCollide.";return a.ShouldCollide(c,e,f,h,l,r)},49907:(a,c,e,f,h,l)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a];if(!a.hasOwnProperty("GetCombinedFriction"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::GetCombinedFriction.";return a.GetCombinedFriction(c,e,f,h,l)},50207:(a,c,e)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a]; if(!a.hasOwnProperty("OnPreStepCallback"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::OnPreStepCallback.";a.OnPreStepCallback(c,e)},50485:(a,c,e)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a];if(!a.hasOwnProperty("OnPostCollideCallback"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::OnPostCollideCallback.";a.OnPostCollideCallback(c,e)},50775:(a,c,e)=>{a=b.getCache(b.VehicleConstraintCallbacksJS)[a]; if(!a.hasOwnProperty("OnPostStepCallback"))throw"a JSImplementation must implement all functions, you forgot VehicleConstraintCallbacksJS::OnPostStepCallback.";a.OnPostStepCallback(c,e)},51056:(a,c,e,f,h,l,r,A,R)=>{a=b.getCache(b.WheeledVehicleControllerCallbacksJS)[a];if(!a.hasOwnProperty("OnTireMaxImpulseCallback"))throw"a JSImplementation must implement all functions, you forgot WheeledVehicleControllerCallbacksJS::OnTireMaxImpulseCallback.";a.OnTireMaxImpulseCallback(c,e,f,h,l,r,A,R)},51387:a=> {a=b.getCache(b.BroadPhaseLayerInterfaceJS)[a];if(!a.hasOwnProperty("GetNumBroadPhaseLayers"))throw"a JSImplementation must implement all functions, you forgot BroadPhaseLayerInterfaceJS::GetNumBroadPhaseLayers.";return a.GetNumBroadPhaseLayers()},51678:(a,c)=>{a=b.getCache(b.BroadPhaseLayerInterfaceJS)[a];if(!a.hasOwnProperty("GetBPLayer"))throw"a JSImplementation must implement all functions, you forgot BroadPhaseLayerInterfaceJS::GetBPLayer.";return a.GetBPLayer(c)},51935:()=>pa.length},Ea=a=> {for(;0<a.length;)a.shift()(b)},Fa=(a,c,e,f)=>{if(0<f){f=e+f-1;for(var h=0;h<a.length;++h){var l=a.charCodeAt(h);if(55296<=l&&57343>=l){var r=a.charCodeAt(++h);l=65536+((l&1023)<<10)|r&1023}if(127>=l){if(e>=f)break;c[e++]=l}else{if(2047>=l){if(e+1>=f)break;c[e++]=192|l>>6}else{if(65535>=l){if(e+2>=f)break;c[e++]=224|l>>12}else{if(e+3>=f)break;c[e++]=240|l>>18;c[e++]=128|l>>12&63}c[e++]=128|l>>6&63}c[e++]=128|l&63}}c[e]=0}},Ga=[],Ha=(a,c,e)=>{Ga.length=0;for(var f;f=qa[c++];){var h=105!=f;h&=112!= f;e+=h&&e%8?4:0;Ga.push(112==f?sa[e>>2]:105==f?ra[e>>2]:ta[e>>3]);e+=h?8:4}return iaa[a](...Ga)},Ia={},Ka=()=>{if(!Ja){var a={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:fa||"./this.program"},c;for(c in Ia)void 0===Ia[c]?delete a[c]:a[c]=Ia[c];var e=[];for(c in a)e.push(`${c}=${a[c]}`);Ja=e}return Ja},Ja,jaa=[null,[],[]],La="undefined"!=typeof TextDecoder?new TextDecoder: void 0,Ma=(a,c=0)=>{for(var e=c+NaN,f=c;a[f]&&!(f>=e);)++f;if(16<f-c&&a.buffer&&La)return La.decode(a.subarray(c,f));for(e="";c<f;){var h=a[c++];if(h&128){var l=a[c++]&63;if(192==(h&224))e+=String.fromCharCode((h&31)<<6|l);else{var r=a[c++]&63;h=224==(h&240)?(h&15)<<12|l<<6|r:(h&7)<<18|l<<12|r<<6|a[c++]&63;65536>h?e+=String.fromCharCode(h):(h-=65536,e+=String.fromCharCode(55296|h>>10,56320|h&1023))}}else e+=String.fromCharCode(h)}return e},kaa={i:()=>Ba(""),h:(a,c,e)=>qa.copyWithin(a,c,c+e),l:(a, c,e,f)=>{var h=(new Date).getFullYear(),l=(new Date(h,0,1)).getTimezoneOffset();h=(new Date(h,6,1)).getTimezoneOffset();sa[a>>2]=60*Math.max(l,h);ra[c>>2]=Number(l!=h);c=r=>{var A=Math.abs(r);return`UTC${0<=r?"-":"+"}${String(Math.floor(A/60)).padStart(2,"0")}${String(A%60).padStart(2,"0")}`};a=c(l);c=c(h);h<l?(Fa(a,qa,e,17),Fa(c,qa,f,17)):(Fa(a,qa,f,17),Fa(c,qa,e,17))},c:(a,c,e)=>Ha(a,c,e),a:(a,c,e)=>Ha(a,c,e),o:(a,c,e)=>Ha(a,c,e),k:()=>2147483648,b:()=>performance.now(),g:a=>{var c=qa.length;a>>>= 0;if(2147483648<a)return!1;for(var e=1;4>=e;e*=2){var f=c*(1+.2/e);f=Math.min(f,a+100663296);a:{f=(Math.min(2147483648,65536*Math.ceil(Math.max(a,f)/65536))-na.buffer.byteLength+65535)/65536|0;try{na.grow(f);ua();var h=1;break a}catch(l){}h=void 0}if(h)return!0}return!1},m:(a,c)=>{var e=0;Ka().forEach((f,h)=>{var l=c+e;h=sa[a+4*h>>2]=l;for(l=0;l<f.length;++l)pa[h++]=f.charCodeAt(l);pa[h]=0;e+=f.length+1});return 0},n:(a,c)=>{var e=Ka();sa[a>>2]=e.length;var f=0;e.forEach(h=>f+=h.length+1);sa[c>>2]= f;return 0},e:()=>52,f:()=>52,j:function(){return 70},d:(a,c,e,f)=>{for(var h=0,l=0;l<e;l++){var r=sa[c>>2],A=sa[c+4>>2];c+=8;for(var R=0;R<A;R++){var Ta=qa[r+R],Pd=jaa[a];0===Ta||10===Ta?((1===a?daa:la)(Ma(Pd)),Pd.length=0):Pd.push(Ta)}h+=A}sa[f>>2]=h;return 0}},d; (async function(){function a(f){d=f.exports;na=d.p;ua();wa.unshift(d.q);za--;b.monitorRunDependencies?.(za);0==za&&Aa&&(f=Aa,Aa=null,f());return d}za++;b.monitorRunDependencies?.(za);var c={a:kaa};if(b.instantiateWasm)try{return b.instantiateWasm(c,a)}catch(f){la(`Module.instantiateWasm callback failed with error: ${f}`),ba(f)}Da??=b.locateFile?Ca("jolt-physics.wasm.wasm")?"jolt-physics.wasm.wasm":b.locateFile?b.locateFile("jolt-physics.wasm.wasm",ha):ha+"jolt-physics.wasm.wasm":(new URL("jolt-physics.wasm.wasm", import.meta.url)).href;try{var e=await haa(c);a(e.instance);return e}catch(f){ba(f)}})();b._webidl_free=a=>(b._webidl_free=d.r)(a);b._webidl_malloc=a=>(b._webidl_malloc=d.s)(a); var Na=b._emscripten_bind_ShapeSettings_GetRefCount_0=a=>(Na=b._emscripten_bind_ShapeSettings_GetRefCount_0=d.t)(a),Oa=b._emscripten_bind_ShapeSettings_AddRef_0=a=>(Oa=b._emscripten_bind_ShapeSettings_AddRef_0=d.u)(a),Pa=b._emscripten_bind_ShapeSettings_Release_0=a=>(Pa=b._emscripten_bind_ShapeSettings_Release_0=d.v)(a),Qa=b._emscripten_bind_ShapeSettings_Create_0=a=>(Qa=b._emscripten_bind_ShapeSettings_Create_0=d.x)(a),Ra=b._emscripten_bind_ShapeSettings_ClearCachedResult_0=a=>(Ra=b._emscripten_bind_ShapeSettings_ClearCachedResult_0= d.y)(a),Sa=b._emscripten_bind_ShapeSettings_get_mUserData_0=a=>(Sa=b._emscripten_bind_ShapeSettings_get_mUserData_0=d.z)(a),Ua=b._emscripten_bind_ShapeSettings_set_mUserData_1=(a,c,e)=>(Ua=b._emscripten_bind_ShapeSettings_set_mUserData_1=d.A)(a,c,e),Va=b._emscripten_bind_ShapeSettings___destroy___0=a=>(Va=b._emscripten_bind_ShapeSettings___destroy___0=d.B)(a),Wa=b._emscripten_bind_Shape_GetRefCount_0=a=>(Wa=b._emscripten_bind_Shape_GetRefCount_0=d.C)(a),Xa=b._emscripten_bind_Shape_AddRef_0=a=>(Xa= b._emscripten_bind_Shape_AddRef_0=d.D)(a),Ya=b._emscripten_bind_Shape_Release_0=a=>(Ya=b._emscripten_bind_Shape_Release_0=d.E)(a),Za=b._emscripten_bind_Shape_GetType_0=a=>(Za=b._emscripten_bind_Shape_GetType_0=d.F)(a),$a=b._emscripten_bind_Shape_GetSubType_0=a=>($a=b._emscripten_bind_Shape_GetSubType_0=d.G)(a),ab=b._emscripten_bind_Shape_MustBeStatic_0=a=>(ab=b._emscripten_bind_Shape_MustBeStatic_0=d.H)(a),bb=b._emscripten_bind_Shape_GetLocalBounds_0=a=>(bb=b._emscripten_bind_Shape_GetLocalBounds_0= d.I)(a),cb=b._emscripten_bind_Shape_GetWorldSpaceBounds_2=(a,c,e)=>(cb=b._emscripten_bind_Shape_GetWorldSpaceBounds_2=d.J)(a,c,e),db=b._emscripten_bind_Shape_GetCenterOfMass_0=a=>(db=b._emscripten_bind_Shape_GetCenterOfMass_0=d.K)(a),eb=b._emscripten_bind_Shape_GetUserData_0=a=>(eb=b._emscripten_bind_Shape_GetUserData_0=d.L)(a),fb=b._emscripten_bind_Shape_SetUserData_1=(a,c,e)=>(fb=b._emscripten_bind_Shape_SetUserData_1=d.M)(a,c,e),gb=b._emscripten_bind_Shape_GetSubShapeIDBitsRecursive_0=a=>(gb=b._emscripten_bind_Shape_GetSubShapeIDBitsRecursive_0= d.N)(a),hb=b._emscripten_bind_Shape_GetInnerRadius_0=a=>(hb=b._emscripten_bind_Shape_GetInnerRadius_0=d.O)(a),ib=b._emscripten_bind_Shape_GetMassProperties_0=a=>(ib=b._emscripten_bind_Shape_GetMassProperties_0=d.P)(a),jb=b._emscripten_bind_Shape_GetLeafShape_2=(a,c,e)=>(jb=b._emscripten_bind_Shape_GetLeafShape_2=d.Q)(a,c,e),kb=b._emscripten_bind_Shape_GetMaterial_1=(a,c)=>(kb=b._emscripten_bind_Shape_GetMaterial_1=d.R)(a,c),lb=b._emscripten_bind_Shape_GetSurfaceNormal_2=(a,c,e)=>(lb=b._emscripten_bind_Shape_GetSurfaceNormal_2= d.S)(a,c,e),mb=b._emscripten_bind_Shape_GetSubShapeUserData_1=(a,c)=>(mb=b._emscripten_bind_Shape_GetSubShapeUserData_1=d.T)(a,c),nb=b._emscripten_bind_Shape_GetSubShapeTransformedShape_5=(a,c,e,f,h,l)=>(nb=b._emscripten_bind_Shape_GetSubShapeTransformedShape_5=d.U)(a,c,e,f,h,l),ob=b._emscripten_bind_Shape_GetVolume_0=a=>(ob=b._emscripten_bind_Shape_GetVolume_0=d.V)(a),pb=b._emscripten_bind_Shape_IsValidScale_1=(a,c)=>(pb=b._emscripten_bind_Shape_IsValidScale_1=d.W)(a,c),qb=b._emscripten_bind_Shape_MakeScaleValid_1= (a,c)=>(qb=b._emscripten_bind_Shape_MakeScaleValid_1=d.X)(a,c),rb=b._emscripten_bind_Shape_ScaleShape_1=(a,c)=>(rb=b._emscripten_bind_Shape_ScaleShape_1=d.Y)(a,c),sb=b._emscripten_bind_Shape___destroy___0=a=>(sb=b._emscripten_bind_Shape___destroy___0=d.Z)(a),tb=b._emscripten_bind_ConstraintSettings_GetRefCount_0=a=>(tb=b._emscripten_bind_ConstraintSettings_GetRefCount_0=d._)(a),ub=b._emscripten_bind_ConstraintSettings_AddRef_0=a=>(ub=b._emscripten_bind_ConstraintSettings_AddRef_0=d.$)(a),vb=b._emscripten_bind_ConstraintSettings_Release_0= a=>(vb=b._emscripten_bind_ConstraintSettings_Release_0=d.aa)(a),wb=b._emscripten_bind_ConstraintSettings_get_mEnabled_0=a=>(wb=b._emscripten_bind_ConstraintSettings_get_mEnabled_0=d.ba)(a),xb=b._emscripten_bind_ConstraintSettings_set_mEnabled_1=(a,c)=>(xb=b._emscripten_bind_ConstraintSettings_set_mEnabled_1=d.ca)(a,c),yb=b._emscripten_bind_ConstraintSettings_get_mNumVelocityStepsOverride_0=a=>(yb=b._emscripten_bind_ConstraintSettings_get_mNumVelocityStepsOverride_0=d.da)(a),zb=b._emscripten_bind_ConstraintSettings_set_mNumVelocityStepsOverride_1= (a,c)=>(zb=b._emscripten_bind_ConstraintSettings_set_mNumVelocityStepsOverride_1=d.ea)(a,c),Ab=b._emscripten_bind_ConstraintSettings_get_mNumPositionStepsOverride_0=a=>(Ab=b._emscripten_bind_ConstraintSettings_get_mNumPositionStepsOverride_0=d.fa)(a),Bb=b._emscripten_bind_ConstraintSettings_set_mNumPositionStepsOverride_1=(a,c)=>(Bb=b._emscripten_bind_ConstraintSettings_set_mNumPositionStepsOverride_1=d.ga)(a,c),Cb=b._emscripten_bind_ConstraintSettings___destroy___0=a=>(Cb=b._emscripten_bind_ConstraintSettings___destroy___0= d.ha)(a),Db=b._emscripten_bind_Constraint_GetRefCount_0=a=>(Db=b._emscripten_bind_Constraint_GetRefCount_0=d.ia)(a),Eb=b._emscripten_bind_Constraint_AddRef_0=a=>(Eb=b._emscripten_bind_Constraint_AddRef_0=d.ja)(a),Fb=b._emscripten_bind_Constraint_Release_0=a=>(Fb=b._emscripten_bind_Constraint_Release_0=d.ka)(a),Gb=b._emscripten_bind_Constraint_GetType_0=a=>(Gb=b._emscripten_bind_Constraint_GetType_0=d.la)(a),Hb=b._emscripten_bind_Constraint_GetSubType_0=a=>(Hb=b._emscripten_bind_Constraint_GetSubType_0= d.ma)(a),Ib=b._emscripten_bind_Constraint_GetConstraintPriority_0=a=>(Ib=b._emscripten_bind_Constraint_GetConstraintPriority_0=d.na)(a),Jb=b._emscripten_bind_Constraint_SetConstraintPriority_1=(a,c)=>(Jb=b._emscripten_bind_Constraint_SetConstraintPriority_1=d.oa)(a,c),Kb=b._emscripten_bind_Constraint_SetNumVelocityStepsOverride_1=(a,c)=>(Kb=b._emscripten_bind_Constraint_SetNumVelocityStepsOverride_1=d.pa)(a,c),Lb=b._emscripten_bind_Constraint_GetNumVelocityStepsOverride_0=a=>(Lb=b._emscripten_bind_Constraint_GetNumVelocityStepsOverride_0= d.qa)(a),Mb=b._emscripten_bind_Constraint_SetNumPositionStepsOverride_1=(a,c)=>(Mb=b._emscripten_bind_Constraint_SetNumPositionStepsOverride_1=d.ra)(a,c),Nb=b._emscripten_bind_Constraint_GetNumPositionStepsOverride_0=a=>(Nb=b._emscripten_bind_Constraint_GetNumPositionStepsOverride_0=d.sa)(a),Ob=b._emscripten_bind_Constraint_SetEnabled_1=(a,c)=>(Ob=b._emscripten_bind_Constraint_SetEnabled_1=d.ta)(a,c),Pb=b._emscripten_bind_Constraint_GetEnabled_0=a=>(Pb=b._emscripten_bind_Constraint_GetEnabled_0=d.ua)(a), Qb=b._emscripten_bind_Constraint_IsActive_0=a=>(Qb=b._emscripten_bind_Constraint_IsActive_0=d.va)(a),Rb=b._emscripten_bind_Constraint_GetUserData_0=a=>(Rb=b._emscripten_bind_Constraint_GetUserData_0=d.wa)(a),Sb=b._emscripten_bind_Constraint_SetUserData_1=(a,c,e)=>(Sb=b._emscripten_bind_Constraint_SetUserData_1=d.xa)(a,c,e),Tb=b._emscripten_bind_Constraint_ResetWarmStart_0=a=>(Tb=b._emscripten_bind_Constraint_ResetWarmStart_0=d.ya)(a),Ub=b._emscripten_bind_Constraint_SaveState_1=(a,c)=>(Ub=b._emscripten_bind_Constraint_SaveState_1= d.za)(a,c),Vb=b._emscripten_bind_Constraint_RestoreState_1=(a,c)=>(Vb=b._emscripten_bind_Constraint_RestoreState_1=d.Aa)(a,c),Wb=b._emscripten_bind_Constraint___destroy___0=a=>(Wb=b._emscripten_bind_Constraint___destroy___0=d.Ba)(a),Xb=b._emscripten_bind_PathConstraintPath_IsLooping_0=a=>(Xb=b._emscripten_bind_PathConstraintPath_IsLooping_0=d.Ca)(a),Yb=b._emscripten_bind_PathConstraintPath_SetIsLooping_1=(a,c)=>(Yb=b._emscripten_bind_PathConstraintPath_SetIsLooping_1=d.Da)(a,c),Zb=b._emscripten_bind_PathConstraintPath_GetRefCount_0= a=>(Zb=b._emscripten_bind_PathConstraintPath_GetRefCount_0=d.Ea)(a),$b=b._emscripten_bind_PathConstraintPath_AddRef_0=a=>($b=b._emscripten_bind_PathConstraintPath_AddRef_0=d.Fa)(a),ac=b._emscripten_bind_PathConstraintPath_Release_0=a=>(ac=b._emscripten_bind_PathConstraintPath_Release_0=d.Ga)(a),bc=b._emscripten_bind_PathConstraintPath___destroy___0=a=>(bc=b._emscripten_bind_PathConstraintPath___destroy___0=d.Ha)(a),cc=b._emscripten_bind_StateRecorder_SetValidating_1=(a,c)=>(cc=b._emscripten_bind_StateRecorder_SetValidating_1= d.Ia)(a,c),dc=b._emscripten_bind_StateRecorder_IsValidating_0=a=>(dc=b._emscripten_bind_StateRecorder_IsValidating_0=d.Ja)(a),ec=b._emscripten_bind_StateRecorder_SetIsLastPart_1=(a,c)=>(ec=b._emscripten_bind_StateRecorder_SetIsLastPart_1=d.Ka)(a,c),fc=b._emscripten_bind_StateRecorder_IsLastPart_0=a=>(fc=b._emscripten_bind_StateRecorder_IsLastPart_0=d.La)(a),gc=b._emscripten_bind_StateRecorder___destroy___0=a=>(gc=b._emscripten_bind_StateRecorder___destroy___0=d.Ma)(a),hc=b._emscripten_bind_ContactListener___destroy___0= a=>(hc=b._emscripten_bind_ContactListener___destroy___0=d.Na)(a),ic=b._emscripten_bind_SoftBodyContactListener___destroy___0=a=>(ic=b._emscripten_bind_SoftBodyContactListener___destroy___0=d.Oa)(a),jc=b._emscripten_bind_CharacterContactListener___destroy___0=a=>(jc=b._emscripten_bind_CharacterContactListener___destroy___0=d.Pa)(a),kc=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter_ObjectVsBroadPhaseLayerFilter_0=()=>(kc=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter_ObjectVsBroadPhaseLayerFilter_0= d.Qa)(),lc=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter___destroy___0=a=>(lc=b._emscripten_bind_ObjectVsBroadPhaseLayerFilter___destroy___0=d.Ra)(a),mc=b._emscripten_bind_VehicleControllerSettings___destroy___0=a=>(mc=b._emscripten_bind_VehicleControllerSettings___destroy___0=d.Sa)(a),nc=b._emscripten_bind_VehicleController_GetRefCount_0=a=>(nc=b._emscripten_bind_VehicleController_GetRefCount_0=d.Ta)(a),oc=b._emscripten_bind_VehicleController_AddRef_0=a=>(oc=b._emscripten_bind_VehicleController_AddRef_0= d.Ua)(a),pc=b._emscripten_bind_VehicleController_Release_0=a=>(pc=b._emscripten_bind_VehicleController_Release_0=d.Va)(a),qc=b._emscripten_bind_VehicleController_GetConstraint_0=a=>(qc=b._emscripten_bind_VehicleController_GetConstraint_0=d.Wa)(a),rc=b._emscripten_bind_VehicleController___destroy___0=a=>(rc=b._emscripten_bind_VehicleController___destroy___0=d.Xa)(a),sc=b._emscripten_bind_BroadPhaseLayerInterface_GetNumBroadPhaseLayers_0=a=>(sc=b._emscripten_bind_BroadPhaseLayerInterface_GetNumBroadPhaseLayers_0= d.Ya)(a),tc=b._emscripten_bind_BroadPhaseLayerInterface___destroy___0=a=>(tc=b._emscripten_bind_BroadPhaseLayerInterface___destroy___0=d.Za)(a),uc=b._emscripten_bind_BroadPhaseCastResult_BroadPhaseCastResult_0=()=>(uc=b._emscripten_bind_BroadPhaseCastResult_BroadPhaseCastResult_0=d._a)(),vc=b._emscripten_bind_BroadPhaseCastResult_Reset_0=a=>(vc=b._emscripten_bind_BroadPhaseCastResult_Reset_0=d.$a)(a),wc=b._emscripten_bind_BroadPhaseCastResult_get_mBodyID_0=a=>(wc=b._emscripten_bind_BroadPhaseCastResult_get_mBodyID_0= d.ab)(a),xc=b._emscripten_bind_BroadPhaseCastResult_set_mBodyID_1=(a,c)=>(xc=b._emscripten_bind_BroadPhaseCastResult_set_mBodyID_1=d.bb)(a,c),yc=b._emscripten_bind_BroadPhaseCastResult_get_mFraction_0=a=>(yc=b._emscripten_bind_BroadPhaseCastResult_get_mFraction_0=d.cb)(a),zc=b._emscripten_bind_BroadPhaseCastResult_set_mFraction_1=(a,c)=>(zc=b._emscripten_bind_BroadPhaseCastResult_set_mFraction_1=d.db)(a,c),Ac=b._emscripten_bind_BroadPhaseCastResult___destroy___0=a=>(Ac=b._emscripten_bind_BroadPhaseCastResult___destroy___0= d.eb)(a),Bc=b._emscripten_bind_ConvexShapeSettings_GetRefCount_0=a=>(Bc=b._emscripten_bind_ConvexShapeSettings_GetRefCount_0=d.fb)(a),Cc=b._emscripten_bind_ConvexShapeSettings_AddRef_0=a=>(Cc=b._emscripten_bind_ConvexShapeSettings_AddRef_0=d.gb)(a),Dc=b._emscripten_bind_ConvexShapeSettings_Release_0=a=>(Dc=b._emscripten_bind_ConvexShapeSettings_Release_0=d.hb)(a),Ec=b._emscripten_bind_ConvexShapeSettings_Create_0=a=>(Ec=b._emscripten_bind_ConvexShapeSettings_Create_0=d.ib)(a),Fc=b._emscripten_bind_ConvexShapeSettings_ClearCachedResult_0= a=>(Fc=b._emscripten_bind_ConvexShapeSettings_ClearCachedResult_0=d.jb)(a),Gc=b._emscripten_bind_ConvexShapeSettings_get_mMaterial_0=a=>(Gc=b._emscripten_bind_ConvexShapeSettings_get_mMaterial_0=d.kb)(a),Hc=b._emscripten_bind_ConvexShapeSettings_set_mMaterial_1=(a,c)=>(Hc=b._emscripten_bind_ConvexShapeSettings_set_mMaterial_1=d.lb)(a,c),Ic=b._emscripten_bind_ConvexShapeSettings_get_mDensity_0=a=>(Ic=b._emscripten_bind_ConvexShapeSettings_get_mDensity_0=d.mb)(a),Jc=b._emscripten_bind_ConvexShapeSettings_set_mDensity_1= (a,c)=>(Jc=b._emscripten_bind_ConvexShapeSettings_set_mDensity_1=d.nb)(a,c),Kc=b._emscripten_bind_ConvexShapeSettings_get_mUserData_0=a=>(Kc=b._emscripten_bind_ConvexShapeSettings_get_mUserData_0=d.ob)(a),Lc=b._emscripten_bind_ConvexShapeSettings_set_mUserData_1=(a,c,e)=>(Lc=b._emscripten_bind_ConvexShapeSettings_set_mUserData_1=d.pb)(a,c,e),Mc=b._emscripten_bind_ConvexShapeSettings___destroy___0=a=>(Mc=b._emscripten_bind_ConvexShapeSettings___destroy___0=d.qb)(a),Nc=b._emscripten_bind_ConvexShape_SetMaterial_1= (a,c)=>(Nc=b._emscripten_bind_ConvexShape_SetMaterial_1=d.rb)(a,c),Oc=b._emscripten_bind_ConvexShape_GetDensity_0=a=>(Oc=b._emscripten_bind_ConvexShape_GetDensity_0=d.sb)(a),Pc=b._emscripten_bind_ConvexShape_SetDensity_1=(a,c)=>(Pc=b._emscripten_bind_ConvexShape_SetDensity_1=d.tb)(a,c),Qc=b._emscripten_bind_ConvexShape_GetRefCount_0=a=>(Qc=b._emscripten_bind_ConvexShape_GetRefCount_0=d.ub)(a),Rc=b._emscripten_bind_ConvexShape_AddRef_0=a=>(Rc=b._emscripten_bind_ConvexShape_AddRef_0=d.vb)(a),Sc=b._emscripten_bind_ConvexShape_Release_0= a=>(Sc=b._emscripten_bind_ConvexShape_Release_0=d.wb)(a),Tc=b._emscripten_bind_ConvexShape_GetType_0=a=>(Tc=b._emscripten_bind_ConvexShape_GetType_0=d.xb)(a),Uc=b._emscripten_bind_ConvexShape_GetSubType_0=a=>(Uc=b._emscripten_bind_ConvexShape_GetSubType_0=d.yb)(a),Vc=b._emscripten_bind_ConvexShape_MustBeStatic_0=a=>(Vc=b._emscripten_bind_ConvexShape_MustBeStatic_0=d.zb)(a),Wc=b._emscripten_bind_ConvexShape_GetLocalBounds_0=a=>(Wc=b._emscripten_bind_ConvexShape_GetLocalBounds_0=d.Ab)(a),Xc=b._emscripten_bind_ConvexShape_GetWorldSpaceBounds_2= (a,c,e)=>(Xc=b._emscripten_bind_ConvexShape_GetWorldSpaceBounds_2=d.Bb)(a,c,e),Yc=b._emscripten_bind_ConvexShape_GetCenterOfMass_0=a=>(Yc=b._emscripten_bind_ConvexShape_GetCenterOfMass_0=d.Cb)(a),Zc=b._emscripten_bind_ConvexShape_GetUserData_0=a=>(Zc=b._emscripten_bind_ConvexShape_GetUserData_0=d.Db)(a),$c=b._emscripten_bind_ConvexShape_SetUserData_1=(a,c,e)=>($c=b._emscripten_bind_ConvexShape_SetUserData_1=d.Eb)(a,c,e),ad=b._emscripten_bind_ConvexShape_GetSubShapeIDBitsRecursive_0=a=>(ad=b._emscripten_bind_ConvexShape_GetSubShapeIDBitsRecursive_0= d.Fb)(a),bd=b._emscripten_bind_ConvexShape_GetInnerRadius_0=a=>(bd=b._emscripten_bind_ConvexShape_GetInnerRadius_0=d.Gb)(a),cd=b._emscripten_bind_ConvexShape_GetMassProperties_0=a=>(cd=b._emscripten_bind_ConvexShape_GetMassProperties_0=d.Hb)(a),dd=b._emscripten_bind_ConvexShape_GetLeafShape_2=(a,c,e)=>(dd=b._emscripten_bind_ConvexShape_GetLeafShape_2=d.Ib)(a,c,e),ed=b._emscripten_bind_ConvexShape_GetMaterial_1=(a,c)=>(ed=b._emscripten_bind_ConvexShape_GetMaterial_1=d.Jb)(a,c),fd=b._emscripten_bind_ConvexShape_GetSurfaceNormal_2= (a,c,e)=>(fd=b._emscripten_bind_ConvexShape_GetSurfaceNormal_2=d.Kb)(a,c,e),gd=b._emscripten_bind_ConvexShape_GetSubShapeUserData_1=(a,c)=>(gd=b._emscripten_bind_ConvexShape_GetSubShapeUserData_1=d.Lb)(a,c),hd=b._emscripten_bind_ConvexShape_GetSubShapeTransformedShape_5=(a,c,e,f,h,l)=>(hd=b._emscripten_bind_ConvexShape_GetSubShapeTransformedShape_5=d.Mb)(a,c,e,f,h,l),jd=b._emscripten_bind_ConvexShape_GetVolume_0=a=>(jd=b._emscripten_bind_ConvexShape_GetVolume_0=d.Nb)(a),kd=b._emscripten_bind_ConvexShape_IsValidScale_1= (a,c)=>(kd=b._emscripten_bind_ConvexShape_IsValidScale_1=d.Ob)(a,c),ld=b._emscripten_bind_ConvexShape_MakeScaleValid_1=(a,c)=>(ld=b._emscripten_bind_ConvexShape_MakeScaleValid_1=d.Pb)(a,c),md=b._emscripten_bind_ConvexShape_ScaleShape_1=(a,c)=>(md=b._emscripten_bind_ConvexShape_ScaleShape_1=d.Qb)(a,c),nd=b._emscripten_bind_ConvexShape___destroy___0=a=>(nd=b._emscripten_bind_ConvexShape___destroy___0=d.Rb)(a),od=b._emscripten_bind_CompoundShapeSettings_AddShape_4=(a,c,e,f,h)=>(od=b._emscripten_bind_CompoundShapeSettings_AddShape_4= d.Sb)(a,c,e,f,h),pd=b._emscripten_bind_CompoundShapeSettings_GetRefCount_0=a=>(pd=b._emscripten_bind_CompoundShapeSettings_GetRefCount_0=d.Tb)(a),qd=b._emscripten_bind_CompoundShapeSettings_AddRef_0=a=>(qd=b._emscripten_bind_CompoundShapeSettings_AddRef_0=d.Ub)(a),rd=b._emscripten_bind_CompoundShapeSettings_Release_0=a=>(rd=b._emscripten_bind_CompoundShapeSettings_Release_0=d.Vb)(a),sd=b._emscripten_bind_CompoundShapeSettings_Create_0=a=>(sd=b._emscripten_bind_CompoundShapeSettings_Create_0=d.Wb)(a), td=b._emscripten_bind_CompoundShapeSettings_ClearCachedResult_0=a=>(td=b._emscripten_bind_CompoundShapeSettings_ClearCachedResult_0=d.Xb)(a),ud=b._emscripten_bind_CompoundShapeSettings_get_mUserData_0=a=>(ud=b._emscripten_bind_CompoundShapeSettings_get_mUserData_0=d.Yb)(a),vd=b._emscripten_bind_CompoundShapeSettings_set_mUserData_1=(a,c,e)=>(vd=b._emscripten_bind_CompoundShapeSettings_set_mUserData_1=d.Zb)(a,c,e),wd=b._emscripten_bind_CompoundShapeSettings___destroy___0=a=>(wd=b._emscripten_bind_CompoundShapeSettings___destroy___0= d._b)(a),xd=b._emscripten_bind_CompoundShape_GetNumSubShapes_0=a=>(xd=b._emscripten_bind_CompoundShape_GetNumSubShapes_0=d.$b)(a),yd=b._emscripten_bind_CompoundShape_GetSubShape_1=(a,c)=>(yd=b._emscripten_bind_CompoundShape_GetSubShape_1=d.ac)(a,c),zd=b._emscripten_bind_CompoundShape_GetRefCount_0=a=>(zd=b._emscripten_bind_CompoundShape_GetRefCount_0=d.bc)(a),Ad=b._emscripten_bind_CompoundShape_AddRef_0=a=>(Ad=b._emscripten_bind_CompoundShape_AddRef_0=d.cc)(a),Bd=b._emscripten_bind_CompoundShape_Release_0= a=>(Bd=b._emscripten_bind_CompoundShape_Release_0=d.dc)(a),Cd=b._emscripten_bind_CompoundShape_GetType_0=a=>(Cd=b._emscripten_bind_CompoundShape_GetType_0=d.ec)(a),Dd=b._emscripten_bind_CompoundShape_GetSubType_0=a=>(Dd=b._emscripten_bind_CompoundShape_GetSubType_0=d.fc)(a),Ed=b._emscripten_bind_CompoundShape_MustBeStatic_0=a=>(Ed=b._emscripten_bind_CompoundShape_MustBeStatic_0=d.gc)(a),Fd=b._emscripten_bind_CompoundShape_GetLocalBounds_0=a=>(Fd=b._emscripten_bind_CompoundShape_GetLocalBounds_0=d.hc)(a), Gd=b._emscripten_bind_CompoundShape_GetWorldSpaceBounds_2=(a,c,e)=>(Gd=b._emscripten_bind_CompoundShape_GetWorldSpaceBounds_2=d.ic)(a,c,e),Hd=b._emscripten_bind_CompoundShape_GetCenterOfMass_0=a=>(Hd=b._emscripten_bind_CompoundShape_GetCenterOfMass_0=d.jc)(a),Id=b._emscripten_bind_CompoundShape_GetUserData_0=a=>(Id=b._emscripten_bind_CompoundShape_GetUserData_0=d.kc)(a),Jd=b._emscripten_bind_CompoundShape_SetUserData_1=(a,c,e)=>(Jd=b._emscripten_bind_CompoundShape_SetUserData_1=d.lc)(a,c,e),Kd=b._emscripten_bind_CompoundShape_GetSubShapeIDBitsRecursive_0= a=>(Kd=b._emscripten_bind_CompoundShape_GetSubShapeIDBitsRecursive_0=d.mc)(a),Ld=b._emscripten_bind_CompoundShape_GetInnerRadius_0=a=>(Ld=b._emscripten_bind_CompoundShape_GetInnerRadius_0=d.nc)(a),Md=b._emscripten_bind_CompoundShape_GetMassProperties_0=a=>(Md=b._emscripten_bind_CompoundShape_GetMassProperties_0=d.oc)(a),Nd=b._emscripten_bind_CompoundShape_GetLeafShape_2=(a,c,e)=>(Nd=b._emscripten_bind_CompoundShape_GetLeafShape_2=d.pc)(a,c,e),Od=b._emscripten_bind_CompoundShape_GetMaterial_1=(a,c)=> (Od=b._emscripten_bind_CompoundShape_GetMaterial_1=d.qc)(a,c),Qd=b._emscripten_bind_CompoundShape_GetSurfaceNormal_2=(a,c,e)=>(Qd=b._emscripten_bind_CompoundShape_GetSurfaceNormal_2=d.rc)(a,c,e),Rd=b._emscripten_bind_CompoundShape_GetSubShapeUserData_1=(a,c)=>(Rd=b._emscripten_bind_CompoundShape_GetSubShapeUserData_1=d.sc)(a,c),Sd=b._emscripten_bind_CompoundShape_GetSubShapeTransformedShape_5=(a,c,e,f,h,l)=>(Sd=b._emscripten_bind_CompoundShape_GetSubShapeTransformedShape_5=d.tc)(a,c,e,f,h,l),Td=b._emscripten_bind_CompoundShape_GetVolume_0= a=>(Td=b._emscripten_bind_CompoundShape_GetVolume_0=d.uc)(a),Ud=b._emscripten_bind_CompoundShape_IsValidScale_1=(a,c)=>(Ud=b._emscripten_bind_CompoundShape_IsValidScale_1=d.vc)(a,c),Vd=b._emscripten_bind_CompoundShape_MakeScaleValid_1=(a,c)=>(Vd=b._emscripten_bind_CompoundShape_MakeScaleValid_1=d.wc)(a,c),Wd=b._emscripten_bind_CompoundShape_ScaleShape_1=(a,c)=>(Wd=b._emscripten_bind_CompoundShape_ScaleShape_1=d.xc)(a,c),Xd=b._emscripten_bind_CompoundShape___destroy___0=a=>(Xd=b._emscripten_bind_CompoundShape___destroy___0= d.yc)(a),Yd=b._emscripten_bind_DecoratedShapeSettings_GetRefCount_0=a=>(Yd=b._emscripten_bind_DecoratedShapeSettings_GetRefCount_0=d.zc)(a),Zd=b._emscripten_bind_DecoratedShapeSettings_AddRef_0=a=>(Zd=b._emscripten_bind_DecoratedShapeSettings_AddRef_0=d.Ac)(a),$d=b._emscripten_bind_DecoratedShapeSettings_Release_0=a=>($d=b._emscripten_bind_DecoratedShapeSettings_Release_0=d.Bc)(a),ae=b._emscripten_bind_DecoratedShapeSettings_Create_0=a=>(ae=b._emscripten_bind_DecoratedShapeSettings_Create_0=d.Cc)(a), be=b._emscripten_bind_DecoratedShapeSettings_ClearCachedResult_0=a=>(be=b._emscripten_bind_DecoratedShapeSettings_ClearCachedResult_0=d.Dc)(a),ce=b._emscripten_bind_DecoratedShapeSettings_get_mUserData_0=a=>(ce=b._emscripten_bind_DecoratedShapeSettings_get_mUserData_0=d.Ec)(a),de=b._emscripten_bind_DecoratedShapeSettings_set_mUserData_1=(a,c,e)=>(de=b._emscripten_bind_DecoratedShapeSettings_set_mUserData_1=d.Fc)(a,c,e),ee=b._emscripten_bind_DecoratedShapeSettings___destroy___0=a=>(ee=b._emscripten_bind_DecoratedShapeSettings___destroy___0= d.Gc)(a),fe=b._emscripten_bind_DecoratedShape_GetInnerShape_0=a=>(fe=b._emscripten_bind_DecoratedShape_GetInnerShape_0=d.Hc)(a),ge=b._emscripten_bind_DecoratedShape_GetRefCount_0=a=>(ge=b._emscripten_bind_DecoratedShape_GetRefCount_0=d.Ic)(a),he=b._emscripten_bind_DecoratedShape_AddRef_0=a=>(he=b._emscripten_bind_DecoratedShape_AddRef_0=d.Jc)(a),ie=b._emscripten_bind_DecoratedShape_Release_0=a=>(ie=b._emscripten_bind_DecoratedShape_Release_0=d.Kc)(a),je=b._emscripten_bind_DecoratedShape_GetType_0= a=>(je=b._emscripten_bind_DecoratedShape_GetType_0=d.Lc)(a),ke=b._emscripten_bind_DecoratedShape_GetSubType_0=a=>(ke=b._emscripten_bind_DecoratedShape_GetSubType_0=d.Mc)(a),le=b._emscripten_bind_DecoratedShape_MustBeStatic_0=a=>(le=b._emscripten_bind_DecoratedShape_MustBeStatic_0=d.Nc)(a),me=b._emscripten_bind_DecoratedShape_GetLocalBounds_0=a=>(me=b._emscripten_bind_DecoratedShape_GetLocalBounds_0=d.Oc)(a),ne=b._emscripten_bind_DecoratedShape_GetWorldSpaceBounds_2=(a,c,e)=>(ne=b._emscripten_bind_DecoratedShape_GetWorldSpaceBounds_2= d.Pc)(a,c,e),oe=b._emscripten_bind_DecoratedShape_GetCenterOfMass_0=a=>(oe=b._emscripten_bind_DecoratedShape_GetCenterOfMass_0=d.Qc)(a),pe=b._emscripten_bind_DecoratedShape_GetUserData_0=a=>(pe=b._emscripten_bind_DecoratedShape_GetUserData_0=d.Rc)(a),qe=b._emscripten_bind_DecoratedShape_SetUserData_1=(a,c,e)=>(qe=b._emscripten_bind_DecoratedShape_SetUserData_1=d.Sc)(a,c,e),re=b._emscripten_bind_DecoratedShape_GetSubShapeIDBitsRecursive_0=a=>(re=b._emscripten_bind_DecoratedShape_GetSubShapeIDBitsRecursive_0= d.Tc)(a),se=b._emscripten_bind_DecoratedShape_GetInnerRadius_0=a=>(se=b._emscripten_bind_DecoratedShape_GetInnerRadius_0=d.Uc)(a),te=b._emscripten_bind_DecoratedShape_GetMassProperties_0=a=>(te=b._emscripten_bind_DecoratedShape_GetMassProperties_0=d.Vc)(a),ue=b._emscripten_bind_DecoratedShape_GetLeafShape_2=(a,c,e)=>(ue=b._emscripten_bind_DecoratedShape_GetLeafShape_2=d.Wc)(a,c,e),ve=b._emscripten_bind_DecoratedShape_GetMaterial_1=(a,c)=>(ve=b._emscripten_bind_DecoratedShape_GetMaterial_1=d.Xc)(a, c),we=b._emscripten_bind_DecoratedShape_GetSurfaceNormal_2=(a,c,e)=>(we=b._emscripten_bind_DecoratedShape_GetSurfaceNormal_2=d.Yc)(a,c,e),xe=b._emscripten_bind_DecoratedShape_GetSubShapeUserData_1=(a,c)=>(xe=b._emscripten_bind_DecoratedShape_GetSubShapeUserData_1=d.Zc)(a,c),ye=b._emscripten_bind_DecoratedShape_GetSubShapeTransformedShape_5=(a,c,e,f,h,l)=>(ye=b._emscripten_bind_DecoratedShape_GetSubShapeTransformedShape_5=d._c)(a,c,e,f,h,l),ze=b._emscripten_bind_DecoratedShape_GetVolume_0=a=>(ze=b._emscripten_bind_DecoratedShape_GetVolume_0= d.$c)(a),Ae=b._emscripten_bind_DecoratedShape_IsValidScale_1=(a,c)=>(Ae=b._emscripten_bind_DecoratedShape_IsValidScale_1=d.ad)(a,c),Be=b._emscripten_bind_DecoratedShape_MakeScaleValid_1=(a,c)=>(Be=b._emscripten_bind_DecoratedShape_MakeScaleValid_1=d.bd)(a,c),Ce=b._emscripten_bind_DecoratedShape_ScaleShape_1=(a,c)=>(Ce=b._emscripten_bind_DecoratedShape_ScaleShape_1=d.cd)(a,c),De=b._emscripten_bind_DecoratedShape___destroy___0=a=>(De=b._emscripten_bind_DecoratedShape___destroy___0=d.dd)(a),Ee=b._emscripten_bind_TwoBodyConstraintSettings_Create_2= (a,c,e)=>(Ee=b._emscripten_bind_TwoBodyConstraintSettings_Create_2=d.ed)(a,c,e),Fe=b._emscripten_bind_TwoBodyConstraintSettings_GetRefCount_0=a=>(Fe=b._emscripten_bind_TwoBodyConstraintSettings_GetRefCount_0=d.fd)(a),Ge=b._emscripten_bind_TwoBodyConstraintSettings_AddRef_0=a=>(Ge=b._emscripten_bind_TwoBodyConstraintSettings_AddRef_0=d.gd)(a),He=b._emscripten_bind_TwoBodyConstraintSettings_Release_0=a=>(He=b._emscripten_bind_TwoBodyConstraintSettings_Release_0=d.hd)(a),Ie=b._emscripten_bind_TwoBodyConstraintSettings_get_mEnabled_0= a=>(Ie=b._emscripten_bind_TwoBodyConstraintSettings_get_mEnabled_0=d.id)(a),Je=b._emscripten_bind_TwoBodyConstraintSettings_set_mEnabled_1=(a,c)=>(Je=b._emscripten_bind_TwoBodyConstraintSettings_set_mEnabled_1=d.jd)(a,c),Ke=b._emscripten_bind_TwoBodyConstraintSettings_get_mNumVelocityStepsOverride_0=a=>(Ke=b._emscripten_bind_TwoBodyConstraintSettings_get_mNumVelocityStepsOverride_0=d.kd)(a),Le=b._emscripten_bind_TwoBodyConstraintSettings_set_mNumVelocityStepsOverride_1=(a,c)=>(Le=b._emscripten_bind_TwoBodyConstraintSettings_set_mNumVelocityStepsOverride_1= d.ld)(a,c),Me=b._emscripten_bind_TwoBodyConstraintSettings_get_mNumPositionStepsOverride_0=a=>(Me=b._emscripten_bind_TwoBodyConstraintSettings_get_mNumPositionStepsOverride_0=d.md)(a),Ne=b._emscripten_bind_TwoBodyConstraintSettings_set_mNumPositionStepsOverride_1=(a,c)=>(Ne=b._emscripten_bind_TwoBodyConstraintSettings_set_mNumPositionStepsOverride_1=d.nd)(a,c),Oe=b._emscripten_bind_TwoBodyConstraintSettings___destroy___0=a=>(Oe=b._emscripten_bind_TwoBodyConstraintSettings___destroy___0=d.od)(a),Pe= b._emscripten_bind_TwoBodyConstraint_GetBody1_0=a=>(Pe=b._emscripten_bind_TwoBodyConstraint_GetBody1_0=d.pd)(a),Qe=b._emscripten_bind_TwoBodyConstraint_GetBody2_0=a=>(Qe=b._emscripten_bind_TwoBodyConstraint_GetBody2_0=d.qd)(a),Re=b._emscripten_bind_TwoBodyConstraint_GetConstraintToBody1Matrix_0=a=>(Re=b._emscripten_bind_TwoBodyConstraint_GetConstraintToBody1Matrix_0=d.rd)(a),Se=b._emscripten_bind_TwoBodyConstraint_GetConstraintToBody2Matrix_0=a=>(Se=b._emscripten_bind_TwoBodyConstraint_GetConstraintToBody2Matrix_0= d.sd)(a),Te=b._emscripten_bind_TwoBodyConstraint_GetRefCount_0=a=>(Te=b._emscripten_bind_TwoBodyConstraint_GetRefCount_0=d.td)(a),Ue=b._emscripten_bind_TwoBodyConstraint_AddRef_0=a=>(Ue=b._emscripten_bind_TwoBodyConstraint_AddRef_0=d.ud)(a),Ve=b._emscripten_bind_TwoBodyConstraint_Release_0=a=>(Ve=b._emscripten_bind_TwoBodyConstraint_Release_0=d.vd)(a),We=b._emscripten_bind_TwoBodyConstraint_GetType_0=a=>(We=b._emscripten_bind_TwoBodyConstraint_GetType_0=d.wd)(a),Xe=b._emscripten_bind_TwoBodyConstraint_GetSubType_0= a=>(Xe=b._emscripten_bind_TwoBodyConstraint_GetSubType_0=d.xd)(a),Ye=b._emscripten_bind_TwoBodyConstraint_GetConstraintPriority_0=a=>(Ye=b._emscripten_bind_TwoBodyConstraint_GetConstraintPriority_0=d.yd)(a),Ze=b._emscripten_bind_TwoBodyConstraint_SetConstraintPriority_1=(a,c)=>(Ze=b._emscripten_bind_TwoBodyConstraint_SetConstraintPriority_1=d.zd)(a,c),$e=b._emscripten_bind_TwoBodyConstraint_SetNumVelocityStepsOverride_1=(a,c)=>($e=b._emscripten_bind_TwoBodyConstraint_SetNumVelocityStepsOverride_1= d.Ad)(a,c),af=b._emscripten_bind_TwoBodyConstraint_GetNumVelocityStepsOverride_0=a=>(af=b._emscripten_bind_TwoBodyConstraint_GetNumVelocityStepsOverride_0=d.Bd)(a),bf=b._emscripten_bind_TwoBodyConstraint_SetNumPositionStepsOverride_1=(a,c)=>(bf=b._emscripten_bind_TwoBodyConstraint_SetNumPositionStepsOverride_1=d.Cd)(a,c),cf=b._emscripten_bind_TwoBodyConstraint_GetNumPositionStepsOverride_0=a=>(cf=b._emscripten_bind_TwoBodyConstraint_GetNumPositionStepsOverride_0=d.Dd)(a),df=b._emscripten_bind_TwoBodyConstraint_SetEnabled_1= (a,c)=>(df=b._emscripten_bind_TwoBodyConstraint_SetEnabled_1=d.Ed)(a,c),ef=b._emscripten_bind_TwoBodyConstraint_GetEnabled_0=a=>(ef=b._emscripten_bind_TwoBodyConstraint_GetEnabled_0=d.Fd)(a),ff=b._emscripten_bind_TwoBodyConstraint_IsActive_0=a=>(ff=b._emscripten_bind_TwoBodyConstraint_IsActive_0=d.Gd)(a),gf=b._emscripten_bind_TwoBodyConstraint_GetUserData_0=a=>(gf=b._emscripten_bind_TwoBodyConstraint_GetUserData_0=d.Hd)(a),hf=b._emscripten_bind_TwoBodyConstraint_SetUserData_1=(a,c,e)=>(hf=b._emscripten_bind_TwoBodyConstraint_SetUserData_1= d.Id)(a,c,e),jf=b._emscripten_bind_TwoBodyConstraint_ResetWarmStart_0=a=>(jf=b._emscripten_bind_TwoBod