diff --git a/assets/EXT_lights_area-kE1K6a9q.js b/assets/EXT_lights_area-kE1K6a9q.js new file mode 100644 index 0000000000000000000000000000000000000000..f6bd86512f11e30a58cead92fc4ceaf5791f0ff0 --- /dev/null +++ b/assets/EXT_lights_area-kE1K6a9q.js @@ -0,0 +1 @@ +import{V as a,Q as R}from"./math.vector-C1xyPDEl.js";import{Color3 as L}from"./math.color-CzLaKyb6.js";import{L as c}from"./light-DT53MGnW.js";import{L as D,_ as b,s as w}from"./bufferUtils-DTRdUD8L.js";import{N as S}from"./node-C-Iu0ALa.js";import{R as M}from"./math.scalar.functions-DkeaWAWz.js";import{R as y}from"./rawTexture-Cp8_XuDs.js";import{T as d}from"./texture-BEqhDl5Y.js";import{T as A}from"./tools-D01N7ptR.js";import{T as B}from"./mesh-BPwLonvs.js";import{A as E,G as C}from"./glTFLoader-Brfz25eu.js";import{u as U,r as z}from"./dynamic-Bj3y4CGC.js";import"./lightConstants-B1TSTh-k.js";import"./decorators.serialization-C7d7ykGG.js";import"./baseTexture-CgAggsey.js";import"./math.plane-Ce_75-g5.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./index-BoUtOhbH.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./objectModelMapping-DWcnlpHl.js";async function F(){const i=new Uint16Array(16384),t=new Uint16Array(4096*4),r=await A.LoadFileAsync(A.GetAssetUrl("https://assets.babylonjs.com/core/areaLights/areaLightsLTC.bin")),e=new Uint16Array(r),n=e.length/8;for(let s=0;s{var n,s;i._ltcTextures&&(((n=i._ltcTextures)==null?void 0:n.LTC1).update(e[0]),((s=i._ltcTextures)==null?void 0:s.LTC2).update(e[1]),i.onDisposeObservable.addOnce(()=>{var o,l;(o=i._ltcTextures)==null||o.LTC1.dispose(),(l=i._ltcTextures)==null||l.LTC2.dispose()}))}).catch(e=>{D.Error(`Area Light fail to get LTC textures data. Error: ${e}`)})}class O extends c{constructor(t,r,e,n){super(t,e,n),this.position=r,this._scene._ltcTextures||P(this._scene)}transferTexturesToEffect(t,r){return this._scene._ltcTextures&&(t.setTexture("areaLightsLTC1Sampler",this._scene._ltcTextures.LTC1),t.setTexture("areaLightsLTC2Sampler",this._scene._ltcTextures.LTC2)),this}prepareLightSpecificDefines(t,r){t["AREALIGHT"+r]=!0,t.AREALIGHTUSED=!0}_isReady(){return this._scene._ltcTextures?this._scene._ltcTextures.LTC1.isReady()&&this._scene._ltcTextures.LTC2.isReady():!1}}S.AddNodeConstructor("Light_Type_4",(i,t)=>()=>new u(i,a.Zero(),1,1,t));class u extends O{get emissionTexture(){return this._emissionTextureTexture}set emissionTexture(t){this._emissionTextureTexture!==t&&(this._emissionTextureTexture=t,this._emissionTextureTexture&&(this._emissionTextureTexture.wrapU=0,this._emissionTextureTexture.wrapV=0),this._emissionTextureTexture&&u._IsTexture(this._emissionTextureTexture)&&this._emissionTextureTexture.onLoadObservable.addOnce(()=>{this._markMeshesAsLightDirty()}))}get width(){return this._width.x}set width(t){this._width.x=t}get height(){return this._height.y}set height(t){this._height.y=t}constructor(t,r,e,n,s,f){super(t,r,s,f),this._emissionTextureTexture=null,this._width=new a(e,0,0),this._height=new a(0,n,0),this._pointTransformedPosition=a.Zero(),this._pointTransformedWidth=a.Zero(),this._pointTransformedHeight=a.Zero()}getClassName(){return"RectAreaLight"}getTypeID(){return c.LIGHTTYPEID_RECT_AREALIGHT}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightWidth",4),this._uniformBuffer.addUniform("vLightHeight",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}_computeTransformedInformation(){return this.parent&&this.parent.getWorldMatrix?(a.TransformCoordinatesToRef(this.position,this.parent.getWorldMatrix(),this._pointTransformedPosition),a.TransformNormalToRef(this._width,this.parent.getWorldMatrix(),this._pointTransformedWidth),a.TransformNormalToRef(this._height,this.parent.getWorldMatrix(),this._pointTransformedHeight),!0):!1}static _IsTexture(t){return t.onLoadObservable!==void 0}transferToEffect(t,r){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z,0,r),this._uniformBuffer.updateFloat4("vLightWidth",this._pointTransformedWidth.x/2,this._pointTransformedWidth.y/2,this._pointTransformedWidth.z/2,0,r),this._uniformBuffer.updateFloat4("vLightHeight",this._pointTransformedHeight.x/2,this._pointTransformedHeight.y/2,this._pointTransformedHeight.z/2,0,r)):(this._uniformBuffer.updateFloat4("vLightData",this.position.x-e.x,this.position.y-e.y,this.position.z-e.z,0,r),this._uniformBuffer.updateFloat4("vLightWidth",this._width.x/2,this._width.y/2,this._width.z/2,0,r),this._uniformBuffer.updateFloat4("vLightHeight",this._height.x/2,this._height.y/2,this._height.z/2,0,r)),this}transferTexturesToEffect(t,r){return super.transferTexturesToEffect(t,r),this._emissionTextureTexture&&this._emissionTextureTexture.isReady()&&t.setTexture("rectAreaLightEmissionTexture"+r,this._emissionTextureTexture),this}transferToNodeMaterialEffect(t,r){const e=this._scene.floatingOriginOffset;return this._computeTransformedInformation()?t.setFloat3(r,this._pointTransformedPosition.x-e.x,this._pointTransformedPosition.y-e.y,this._pointTransformedPosition.z-e.z):t.setFloat3(r,this.position.x-e.x,this.position.y-e.y,this.position.z-e.z),this}prepareLightSpecificDefines(t,r){super.prepareLightSpecificDefines(t,r),t["RECTAREALIGHTEMISSIONTEXTURE"+r]=!!(this._emissionTextureTexture&&this._emissionTextureTexture.isReady())}}b([w()],u.prototype,"width",null);b([w()],u.prototype,"height",null);M("BABYLON.RectAreaLight",u);const m="EXT_lights_area";class v{constructor(t){this.name=m,this._loader=t,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const r=t[this.name];this._lights=r.lights,E.Assign(this._lights)}}loadNodeAsync(t,r,e){return C.LoadExtensionAsync(t,r,this.name,async(n,s)=>(this._loader._allMaterialsDirtyRequired=!0,await this._loader.loadNodeAsync(t,r,f=>{var x;let h;const o=E.Get(n,this._lights,s.light),l=o.name||f.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer;const T=o.size!==void 0?o.size:1;switch(o.type){case"rect":{const _=((x=o.rect)==null?void 0:x.aspect)!==void 0?o.rect.aspect*T:T,g=T;h=new u(l,a.Zero(),_,g,this._loader.babylonScene);break}case"disk":{const _=Math.sqrt(T*T*.25*Math.PI);h=new u(l,a.Zero(),_,_,this._loader.babylonScene);break}default:throw this._loader.babylonScene._blockEntityCollection=!1,new Error(`${n}: Invalid area light type (${o.type})`)}h._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,o._babylonLight=h,h.falloffType=c.FALLOFF_GLTF,h.diffuse=o.color?L.FromArray(o.color):L.White(),h.intensity=o.intensity==null?1:o.intensity;const p=new B(`${l}_orientation`,this._loader.babylonScene);p.rotationQuaternion=R.RotationAxis(a.Up(),Math.PI),p.parent=f,h.parent=p,this._loader._babylonLights.push(h),C.AddPointerMetadata(h,n),e(f)})))}}U(m);z(m,!0,i=>new v(i));export{v as EXT_lights_area}; diff --git a/assets/EXT_lights_ies-jw4uX8we.js b/assets/EXT_lights_ies-jw4uX8we.js new file mode 100644 index 0000000000000000000000000000000000000000..09ed852f4c510aab8ef6b463c95d2fcd1bb3a4f9 --- /dev/null +++ b/assets/EXT_lights_ies-jw4uX8we.js @@ -0,0 +1 @@ +import{V as d}from"./math.vector-C1xyPDEl.js";import{Color3 as f}from"./math.color-CzLaKyb6.js";import{c as g}from"./objectModelMapping-DWcnlpHl.js";import{L as b}from"./light-DT53MGnW.js";import{A as l,G as h}from"./glTFLoader-Brfz25eu.js";import{u as y,r as L}from"./dynamic-Bj3y4CGC.js";import{T as A}from"./texture-BEqhDl5Y.js";import"./math.scalar.functions-DkeaWAWz.js";import"./bufferUtils-DTRdUD8L.js";import"./node-C-Iu0ALa.js";import"./decorators.serialization-C7d7ykGG.js";import"./math.axis-Ck7JfPPj.js";import"./lightConstants-B1TSTh-k.js";import"./tools-D01N7ptR.js";import"./index-BoUtOhbH.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./material-CrEsrP1R.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./baseTexture-CgAggsey.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";const a="EXT_lights_ies";class w{constructor(t){this.name=a,this._loader=t,this.enabled=this._loader.isExtensionUsed(a)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const o=t[this.name];this._lights=o.lights,l.Assign(this._lights)}}loadNodeAsync(t,o,_){return h.LoadExtensionAsync(t,o,this.name,async(p,s)=>{this._loader._allMaterialsDirtyRequired=!0;let i,e;const u=await this._loader.loadNodeAsync(t,o,r=>{e=l.Get(p,this._lights,s.light);const c=e.name||r.name;this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer,i=new g(c,d.Zero(),d.Backward(),0,1,this._loader.babylonScene),i.angle=Math.PI/2,i.innerAngle=0,i._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,e._babylonLight=i,i.falloffType=b.FALLOFF_GLTF,i.diffuse=s.color?f.FromArray(s.color):f.White(),i.intensity=s.multiplier||1,i.range=Number.MAX_VALUE,i.parent=r,this._loader._babylonLights.push(i),h.AddPointerMetadata(i,p),_(r)});let n;if(e.uri)n=await this._loader.loadUriAsync(t,e,e.uri);else{const r=l.Get(`${t}/bufferView`,this._loader.gltf.bufferViews,e.bufferView);n=await this._loader.loadBufferViewAsync(`/bufferViews/${r.index}`,r)}return i.iesProfileTexture=new A(name+"_iesProfile",this._loader.babylonScene,!0,!1,void 0,null,null,n,!0,void 0,void 0,void 0,void 0,".ies"),u})}}y(a);L(a,!0,m=>new w(m));export{w as EXT_lights_ies}; diff --git a/assets/EXT_lights_image_based-KMEFcFgI.js b/assets/EXT_lights_image_based-KMEFcFgI.js new file mode 100644 index 0000000000000000000000000000000000000000..5e546fc2b64af0f82025b8a844871a1e64561603 --- /dev/null +++ b/assets/EXT_lights_image_based-KMEFcFgI.js @@ -0,0 +1 @@ +import{a as G,S as z}from"./engine-BaTjynsL.js";import{M as c,O as D,V as S,T as M,Q as w}from"./math.vector-C1xyPDEl.js";import{S as A}from"./decorators.serialization-C7d7ykGG.js";import{_ as F}from"./environmentTextureTools-C90x8Qvq.js";import{_ as h,s as _,a as E,v as P}from"./bufferUtils-DTRdUD8L.js";import{T as Y}from"./tools-D01N7ptR.js";import{B as $}from"./baseTexture-CgAggsey.js";import{T as B}from"./texture-BEqhDl5Y.js";import{G as V,R as H}from"./math.scalar.functions-DkeaWAWz.js";import"./abstractEngine.cubeTexture-BEpwA15U.js";import{G as j,A as C}from"./glTFLoader-Brfz25eu.js";import{u as q,r as O}from"./dynamic-Bj3y4CGC.js";import"./thinEngine-D5ynu8Dd.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./dataBuffer-CgoqiUzT.js";import"./index-BoUtOhbH.js";import"./math.axis-Ck7JfPPj.js";import"./math.color-CzLaKyb6.js";import"./math.plane-Ce_75-g5.js";import"./math.path-DFucxaHn.js";import"./perfCounter-DusmGz8t.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./buffer-DqKlo1ts.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./passPostProcess-bEhn82IT.js";import"./effectRenderer-CSz5fi0n.js";import"./math.viewport-CgkTt1RS.js";import"./drawWrapper-CZVk0xN-.js";import"./renderTargetTexture-CKHWJlCy.js";import"./dumpTools-atWKruUa.js";import"./baseTexture.polynomial-DdAD26E8.js";import"./cubemapToSphericalPolynomial-BiLjFA_3.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./subMesh-UWDo5wjI.js";import"./node-C-Iu0ALa.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./material-CrEsrP1R.js";import"./cameraInputsManager-BKG-Rtee.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const I=.8;class l extends ${set boundingBoxSize(e){if(this._boundingBoxSize&&this._boundingBoxSize.equals(e))return;this._boundingBoxSize=e;const t=this.getScene();t&&t.markAllMaterialsAsDirty(1)}get boundingBoxSize(){return this._boundingBoxSize}set rotationY(e){this._rotationY=e,this.setReflectionTextureMatrix(c.RotationY(this._rotationY))}get rotationY(){return this._rotationY}get noMipmap(){return this._noMipmap}get forcedExtension(){return this._forcedExtension}static CreateFromImages(e,t,i){let r="";for(const s of e)r+=s;return new l(r,t,null,i,e)}static CreateFromPrefilteredData(e,t,i=null,r=!0){const s=t.useDelayedTextureLoading;t.useDelayedTextureLoading=!1;const o=new l(e,t,null,!1,null,null,null,void 0,!0,i,r);return t.useDelayedTextureLoading=s,o}constructor(e,t,i=null,r=!1,s=null,o=null,n=null,a=5,u=!1,d=null,f=!1,x=I,p=0,y,m){var v;super(t),this.onLoadObservable=new D,this.boundingBoxPosition=S.Zero(),this._rotationY=0,this._files=null,this._forcedExtension=null,this._extensions=null,this._textureMatrixRefraction=new c,this._buffer=null,this.name=e,this.url=e,this._noMipmap=r,this.hasAlpha=!1,this.isCube=!0,this._textureMatrix=c.Identity(),this.coordinatesMode=B.CUBIC_MODE;let b,T=null;i!==null&&!Array.isArray(i)?(b=i.extensions??null,this._noMipmap=i.noMipmap??!1,s=i.files??null,T=i.buffer??null,this._format=i.format??5,u=i.prefiltered??!1,d=i.forcedExtension??null,this._createPolynomials=i.createPolynomials??!1,this._lodScale=i.lodScale??I,this._lodOffset=i.lodOffset??0,this._loaderOptions=i.loaderOptions,this._useSRGBBuffer=i.useSRGBBuffer,o=i.onLoad??null,n=i.onError??null):(this._noMipmap=r,this._format=a,this._createPolynomials=f,b=i,this._loaderOptions=y,this._useSRGBBuffer=m,this._lodScale=x,this._lodOffset=p),!(!e&&!s)&&this.updateURL(e,d,o,u,n,b,(v=this.getScene())==null?void 0:v.useDelayedTextureLoading,s,T)}getClassName(){return"CubeTexture"}updateURL(e,t=null,i=null,r=!1,s=null,o=null,n=!1,a=null,u=null){(!this.name||this.name.startsWith("data:"))&&(this.name=e),this.url=e,t&&(this._forcedExtension=t);const d=e.lastIndexOf("."),f=t||(d>-1?e.substring(d).toLowerCase():""),x=f.indexOf(".dds")===0,p=f.indexOf(".env")===0,y=f.indexOf(".basis")===0;if(p?(this.gammaSpace=!1,this._prefiltered=!1,this.anisotropicFilteringLevel=1):(this._prefiltered=r,r&&(this.gammaSpace=!1,this.anisotropicFilteringLevel=1)),a)this._files=a;else if(!y&&!p&&!x&&!o&&(o=["_px.jpg","_py.jpg","_pz.jpg","_nx.jpg","_ny.jpg","_nz.jpg"]),this._files=this._files||[],this._files.length=0,o){for(let m=0;mn.getActiveTextures().indexOf(this)!==-1)),this._textureMatrix=e,!((o=this.getScene())!=null&&o.useRightHandedSystem)))return;const t=M.Vector3[0],i=M.Quaternion[0],r=M.Vector3[1];this._textureMatrix.decompose(t,i,r),i.z*=-1,i.w*=-1,c.ComposeToRef(t,i,r,this._textureMatrixRefraction)}getRefractionTextureMatrix(){var e;return(e=this.getScene())!=null&&e.useRightHandedSystem?this._textureMatrixRefraction:this._textureMatrix}_loadTexture(e=null,t=null){var n;const i=this.getScene(),r=this._texture;this._texture=this._getFromCache(this.url,this._noMipmap,void 0,void 0,this._useSRGBBuffer,this.isCube);const s=()=>{var a;this.onLoadObservable.notifyObservers(this),r&&(r.dispose(),(a=this.getScene())==null||a.markAllMaterialsAsDirty(1)),e&&e()},o=(a,u)=>{this._loadingError=!0,this._errorObject={message:a,exception:u},t&&t(a,u),B.OnTextureLoadErrorObservable.notifyObservers(this)};this._texture?this._texture.isReady?Y.SetImmediate(()=>s()):this._texture.onLoadedObservable.add(()=>s()):(this._prefiltered?this._texture=this._getEngine().createPrefilteredCubeTexture(this.url,i,this._lodScale,this._lodOffset,e,o,this._format,this._forcedExtension,this._createPolynomials):this._texture=this._getEngine().createCubeTexture(this.url,i,this._files,this._noMipmap,e,o,this._format,this._forcedExtension,!1,this._lodScale,this._lodOffset,null,this._loaderOptions,!!this._useSRGBBuffer,this._buffer),(n=this._texture)==null||n.onLoadedObservable.add(()=>this.onLoadObservable.notifyObservers(this)))}static Parse(e,t,i){const r=A.Parse(()=>{let s=!1;return e.prefiltered&&(s=e.prefiltered),new l(i+(e.url??e.name),t,e.extensions,!1,e.files||null,null,null,void 0,s,e.forcedExtension)},e,t);if(e.boundingBoxPosition&&(r.boundingBoxPosition=S.FromArray(e.boundingBoxPosition)),e.boundingBoxSize&&(r.boundingBoxSize=S.FromArray(e.boundingBoxSize)),e.animations)for(let s=0;s{const i=new l(this.url,this.getScene()||this._getEngine(),this._extensions,this._noMipmap,this._files);return e=i.uniqueId,i},this);return t.uniqueId=e,t}}h([_()],l.prototype,"url",void 0);h([E()],l.prototype,"boundingBoxPosition",void 0);h([E()],l.prototype,"boundingBoxSize",null);h([_("rotationY")],l.prototype,"rotationY",null);h([_("files")],l.prototype,"_files",void 0);h([_("forcedExtension")],l.prototype,"_forcedExtension",void 0);h([_("extensions")],l.prototype,"_extensions",void 0);h([P("textureMatrix")],l.prototype,"_textureMatrix",void 0);h([P("textureMatrixRefraction")],l.prototype,"_textureMatrixRefraction",void 0);B._CubeTextureParser=l.Parse;H("BABYLON.CubeTexture",l);class R extends l{constructor(e,t,i,r=5,s=0,o=!1,n=!1,a=3,u=null){super("",e),this._texture=e.getEngine().createRawCubeTexture(t,i,r,s,o,n,a,u)}update(e,t,i,r,s=null){this._texture.getEngine().updateRawCubeTexture(this._texture,e,t,i,r,s)}updateRGBDAsync(e,t=null,i=.8,r=0){return F(this._texture,e,t,i,r).then(()=>{})}clone(){return A.Clone(()=>{const e=this.getScene(),t=this._texture,i=new R(e,t._bufferViewArray,t.width,t.format,t.type,t.generateMipMaps,t.invertY,t.samplingMode,t._compression);return t.source===13&&i.updateRGBDAsync(t._bufferViewArrayArray,t._sphericalPolynomial,t._lodGenerationScale,t._lodGenerationOffset),i},this)}}const g="EXT_lights_image_based";class N{constructor(e){this.name=g,this._loader=e,this.enabled=this._loader.isExtensionUsed(g)}dispose(){this._loader=null,delete this._lights}onLoading(){const e=this._loader.gltf.extensions;if(e&&e[this.name]){const t=e[this.name];this._lights=t.lights}}loadSceneAsync(e,t){return j.LoadExtensionAsync(e,t,this.name,async(i,r)=>{this._loader._allMaterialsDirtyRequired=!0;const s=new Array;s.push(this._loader.loadSceneAsync(e,t)),this._loader.logOpen(`${i}`);const o=C.Get(`${i}/light`,this._lights,r.light);return s.push(this._loadLightAsync(`/extensions/${this.name}/lights/${r.light}`,o).then(n=>{this._loader.babylonScene.environmentTexture=n})),this._loader.logClose(),await Promise.all(s).then(()=>{})})}_loadLightAsync(e,t){if(!t._loaded){const i=new Array;this._loader.logOpen(`${e}`);const r=new Array(t.specularImages.length);for(let s=0;s{r[s][n]=f})),this._loader.logClose()}}this._loader.logClose(),t._loaded=Promise.all(i).then(async()=>{const s=new R(this._loader.babylonScene,null,t.specularImageSize);if(s.name=t.name||"environment",t._babylonTexture=s,t.intensity!=null&&(s.level=t.intensity),t.rotation){let u=w.FromArray(t.rotation);this._loader.babylonScene.useRightHandedSystem||(u=w.Inverse(u)),c.FromQuaternionToRef(u,s.getReflectionTextureMatrix())}if(!t.irradianceCoefficients)throw new Error(`${e}: Irradiance coefficients are missing`);const o=G.FromArray(t.irradianceCoefficients);o.scaleInPlace(t.intensity),o.convertIrradianceToLambertianRadiance();const n=z.FromHarmonics(o),a=(r.length-1)/Math.log2(t.specularImageSize);return await s.updateRGBDAsync(r,n,a)})}return t._loaded.then(()=>t._babylonTexture)}}q(g);O(g,!0,L=>new N(L));export{N as EXT_lights_image_based}; diff --git a/assets/EXT_mesh_gpu_instancing-UblJVR2P.js b/assets/EXT_mesh_gpu_instancing-UblJVR2P.js new file mode 100644 index 0000000000000000000000000000000000000000..5cf61c41dceec3dd18cb1281c495a8e6bfa7b170 --- /dev/null +++ b/assets/EXT_mesh_gpu_instancing-UblJVR2P.js @@ -0,0 +1 @@ +import{T as t,V as A,Q as F,M as b}from"./math.vector-C1xyPDEl.js";import{L as g}from"./bufferUtils-DTRdUD8L.js";import{G as L,A as M}from"./glTFLoader-Brfz25eu.js";import{u as V,r as w}from"./dynamic-Bj3y4CGC.js";import"./thinInstanceMesh-DLuzi8NS.js";import"./math.scalar.functions-DkeaWAWz.js";import"./index-BoUtOhbH.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const m="EXT_mesh_gpu_instancing";class B{constructor(p){this.name=m,this._loader=p,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null}loadNodeAsync(p,i,T){return L.LoadExtensionAsync(p,i,this.name,async(f,u)=>{this._loader._disableInstancedMesh++;const h=this._loader.loadNodeAsync(`/nodes/${i.index}`,i,T);if(this._loader._disableInstancedMesh--,!i._primitiveBabylonMeshes)return await h;const c=new Array;let o=0;const n=s=>{if(u.attributes[s]==null){c.push(Promise.resolve(null));return}const e=M.Get(`${f}/attributes/${s}`,this._loader.gltf.accessors,u.attributes[s]);if(c.push(this._loader._loadFloatAccessorAsync(`/accessors/${e.bufferView}`,e)),o===0)o=e.count;else if(o!==e.count)throw new Error(`${f}/attributes: Instance buffer accessors do not have the same count.`)};return n("TRANSLATION"),n("ROTATION"),n("SCALE"),n("_COLOR_0"),await h.then(async s=>{const[e,d,_,a]=await Promise.all(c),y=new Float32Array(o*16);t.Vector3[0].copyFromFloats(0,0,0),t.Quaternion[0].copyFromFloats(0,0,0,1),t.Vector3[1].copyFromFloats(1,1,1);for(let r=0;rnew B(l));export{B as EXT_mesh_gpu_instancing}; diff --git a/assets/EXT_meshopt_compression-Cqonaw-c.js b/assets/EXT_meshopt_compression-Cqonaw-c.js new file mode 100644 index 0000000000000000000000000000000000000000..196038e65f4f481da38e5a6fd1abf7bb0ff837be --- /dev/null +++ b/assets/EXT_meshopt_compression-Cqonaw-c.js @@ -0,0 +1 @@ +import{G as n,A as c}from"./glTFLoader-Brfz25eu.js";import{T as f}from"./tools-D01N7ptR.js";import{u as h,r as y}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./mesh-BPwLonvs.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";let p=0,m=null;class e{static get Default(){return e._Default||(e._Default=new e),e._Default}constructor(){const t=e.Configuration.decoder;this._decoderModulePromise=f.LoadBabylonScriptAsync(t.url).then(()=>MeshoptDecoder.ready)}dispose(){delete this._decoderModulePromise}async decodeGltfBufferAsync(t,i,d,r,o){await this._decoderModulePromise,p===0&&(MeshoptDecoder.useWorkers(1),p=1);const s=await MeshoptDecoder.decodeGltfBufferAsync(i,d,t,r,o);return m!==null&&clearTimeout(m),m=setTimeout(()=>{MeshoptDecoder.useWorkers(0),p=0,m=null},1e3),s}}e.Configuration={decoder:{url:`${f._DefaultCdnUrl}/meshopt_decoder.js`}};e._Default=null;const a="EXT_meshopt_compression";class _{constructor(t){this.name=a,this.enabled=t.isExtensionUsed(a),this._loader=t}dispose(){this._loader=null}loadBufferViewAsync(t,i){return n.LoadExtensionAsync(t,i,this.name,async(d,r)=>{const o=i;if(o._meshOptData)return await o._meshOptData;const s=c.Get(`${t}/buffer`,this._loader.gltf.buffers,r.buffer);return o._meshOptData=this._loader.loadBufferAsync(`/buffers/${s.index}`,s,r.byteOffset||0,r.byteLength).then(async l=>await e.Default.decodeGltfBufferAsync(l,r.count,r.byteStride,r.mode,r.filter)),await o._meshOptData})}}h(a);y(a,!0,u=>new _(u));export{_ as EXT_meshopt_compression}; diff --git a/assets/EXT_texture_avif-C3XfUPuW.js b/assets/EXT_texture_avif-C3XfUPuW.js new file mode 100644 index 0000000000000000000000000000000000000000..bff93f8a097db5d9500a24a0ca24814957878013 --- /dev/null +++ b/assets/EXT_texture_avif-C3XfUPuW.js @@ -0,0 +1 @@ +import{G as m,A as p}from"./glTFLoader-Brfz25eu.js";import{u,r as _}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const o="EXT_texture_avif";class c{constructor(r){this.name=o,this._loader=r,this.enabled=r.isExtensionUsed(o)}dispose(){this._loader=null}_loadTextureAsync(r,t,e){return m.LoadExtensionAsync(r,t,this.name,async(s,a)=>{const n=t.sampler==null?m.DefaultSampler:p.Get(`${r}/sampler`,this._loader.gltf.samplers,t.sampler),l=p.Get(`${s}/source`,this._loader.gltf.images,a.source);return await this._loader._createTextureAsync(r,n,l,d=>{e(d)},void 0,!t._textureInfo.nonColorData)})}}u(o);_(o,!0,i=>new c(i));export{c as EXT_texture_avif}; diff --git a/assets/EXT_texture_webp-DSrq0RhW.js b/assets/EXT_texture_webp-DSrq0RhW.js new file mode 100644 index 0000000000000000000000000000000000000000..10d8e81bf2a2682c10f4a9fb5ac59421c0ce735a --- /dev/null +++ b/assets/EXT_texture_webp-DSrq0RhW.js @@ -0,0 +1 @@ +import{G as m,A as p}from"./glTFLoader-Brfz25eu.js";import{u,r as _}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const o="EXT_texture_webp";class c{constructor(r){this.name=o,this._loader=r,this.enabled=r.isExtensionUsed(o)}dispose(){this._loader=null}_loadTextureAsync(r,t,e){return m.LoadExtensionAsync(r,t,this.name,async(s,a)=>{const n=t.sampler==null?m.DefaultSampler:p.Get(`${r}/sampler`,this._loader.gltf.samplers,t.sampler),l=p.Get(`${s}/source`,this._loader.gltf.images,a.source);return await this._loader._createTextureAsync(r,n,l,d=>{e(d)},void 0,!t._textureInfo.nonColorData)})}}u(o);_(o,!0,i=>new c(i));export{c as EXT_texture_webp}; diff --git a/assets/ExtrasAsMetadata-DDzEw03t.js b/assets/ExtrasAsMetadata-DDzEw03t.js new file mode 100644 index 0000000000000000000000000000000000000000..7cdef59b7db5c2298a90d7fc7f796383f9ca5f41 --- /dev/null +++ b/assets/ExtrasAsMetadata-DDzEw03t.js @@ -0,0 +1 @@ +import{u as o,r as n}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./sceneLoader-CutT-qCn.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./math.color-CzLaKyb6.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";const i="ExtrasAsMetadata";class m{_assignExtras(r,t){if(t.extras&&Object.keys(t.extras).length>0){const s=r.metadata=r.metadata||{},a=s.gltf=s.gltf||{};a.extras=t.extras}}constructor(r){this.name=i,this.enabled=!0,this._loader=r}dispose(){this._loader=null}loadNodeAsync(r,t,s){return this._loader.loadNodeAsync(r,t,a=>{this._assignExtras(a,t),s(a)})}loadCameraAsync(r,t,s){return this._loader.loadCameraAsync(r,t,a=>{this._assignExtras(a,t),s(a)})}createMaterial(r,t,s){const a=this._loader.createMaterial(r,t,s);return this._assignExtras(a,t),a}loadAnimationAsync(r,t){return this._loader.loadAnimationAsync(r,t).then(s=>(this._assignExtras(s,t),s))}}o(i);n(i,!1,e=>new m(e));export{m as ExtrasAsMetadata}; diff --git a/assets/KHR_animation_pointer-BLCY8zgD.js b/assets/KHR_animation_pointer-BLCY8zgD.js new file mode 100644 index 0000000000000000000000000000000000000000..f1371029721e6f5d9551f79b333b8711565a46dc --- /dev/null +++ b/assets/KHR_animation_pointer-BLCY8zgD.js @@ -0,0 +1 @@ +import{L as K}from"./bufferUtils-DTRdUD8L.js";import{u as B,r as Z}from"./dynamic-Bj3y4CGC.js";import{S as e,a as G}from"./objectModelMapping-DWcnlpHl.js";import{A as t}from"./animation-IftAdLIx.js";import{AnimationPropertyInfo as p}from"./glTFLoaderAnimation-QPpM8WOy.js";import{Color3 as V}from"./math.color-CzLaKyb6.js";import"./index-BoUtOhbH.js";import"./sceneLoader-CutT-qCn.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./node-C-Iu0ALa.js";import"./light-DT53MGnW.js";import"./math.axis-Ck7JfPPj.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";function u(l,r,a,i){return V.FromArray(r,a).scale(i)}function W(l,r,a,i){return r[a+3]*i}function s(l,r,a,i){return r[a]*i}function O(l,r,a,i){return-r[a]*i}function A(l,r,a,i){return r[a+1]*i}function z(l,r,a,i){return r[a]*i*2}function o(l){return{scale:[new n(t.ANIMATIONTYPE_FLOAT,`${l}.uScale`,s,()=>2),new n(t.ANIMATIONTYPE_FLOAT,`${l}.vScale`,A,()=>2)],offset:[new n(t.ANIMATIONTYPE_FLOAT,`${l}.uOffset`,s,()=>2),new n(t.ANIMATIONTYPE_FLOAT,`${l}.vOffset`,A,()=>2)],rotation:[new n(t.ANIMATIONTYPE_FLOAT,`${l}.wAng`,O,()=>1)]}}class c extends p{buildAnimations(r,a,i,m){return[{babylonAnimatable:r._babylonCamera,babylonAnimation:this._buildAnimation(a,i,m)}]}}class n extends p{buildAnimations(r,a,i,m){const x=[];for(const T in r._data)x.push({babylonAnimatable:r._data[T].babylonMaterial,babylonAnimation:this._buildAnimation(a,i,m)});return x}}class _ extends p{buildAnimations(r,a,i,m){return[{babylonAnimatable:r._babylonLight,babylonAnimation:this._buildAnimation(a,i,m)}]}}class D extends p{buildAnimations(r,a,i,m){return r._primitiveBabylonMeshes?r._primitiveBabylonMeshes.map(x=>({babylonAnimatable:x,babylonAnimation:this._buildAnimation(a,i,m)})):[]}}e("/cameras/{}/orthographic/xmag",[new c(t.ANIMATIONTYPE_FLOAT,"orthoLeft",O,()=>1),new c(t.ANIMATIONTYPE_FLOAT,"orthoRight",A,()=>1)]);e("/cameras/{}/orthographic/ymag",[new c(t.ANIMATIONTYPE_FLOAT,"orthoBottom",O,()=>1),new c(t.ANIMATIONTYPE_FLOAT,"orthoTop",A,()=>1)]);e("/cameras/{}/orthographic/zfar",[new c(t.ANIMATIONTYPE_FLOAT,"maxZ",s,()=>1)]);e("/cameras/{}/orthographic/znear",[new c(t.ANIMATIONTYPE_FLOAT,"minZ",s,()=>1)]);e("/cameras/{}/perspective/yfov",[new c(t.ANIMATIONTYPE_FLOAT,"fov",s,()=>1)]);e("/cameras/{}/perspective/zfar",[new c(t.ANIMATIONTYPE_FLOAT,"maxZ",s,()=>1)]);e("/cameras/{}/perspective/znear",[new c(t.ANIMATIONTYPE_FLOAT,"minZ",s,()=>1)]);e("/materials/{}/pbrMetallicRoughness/baseColorFactor",[new n(t.ANIMATIONTYPE_COLOR3,"albedoColor",u,()=>4),new n(t.ANIMATIONTYPE_FLOAT,"alpha",W,()=>4)]);e("/materials/{}/pbrMetallicRoughness/metallicFactor",[new n(t.ANIMATIONTYPE_FLOAT,"metallic",s,()=>1)]);e("/materials/{}/pbrMetallicRoughness/metallicFactor",[new n(t.ANIMATIONTYPE_FLOAT,"roughness",s,()=>1)]);const H=o("albedoTexture");e("/materials/{}/pbrMetallicRoughness/baseColorTexture/extensions/KHR_texture_transform/scale",H.scale);e("/materials/{}/pbrMetallicRoughness/baseColorTexture/extensions/KHR_texture_transform/offset",H.offset);e("/materials/{}/pbrMetallicRoughness/baseColorTexture/extensions/KHR_texture_transform/rotation",H.rotation);const N=o("metallicTexture");e("//materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/scale",N.scale);e("//materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/offset",N.offset);e("//materials/{}/pbrMetallicRoughness/metallicRoughnessTexture/rotation",N.rotation);e("/materials/{}/emissiveFactor",[new n(t.ANIMATIONTYPE_COLOR3,"emissiveColor",u,()=>3)]);const g=o("bumpTexture");e("/materials/{}/normalTexture/scale",[new n(t.ANIMATIONTYPE_FLOAT,"bumpTexture.level",s,()=>1)]);e("/materials/{}/normalTexture/extensions/KHR_texture_transform/scale",g.scale);e("/materials/{}/normalTexture/extensions/KHR_texture_transform/offset",g.offset);e("/materials/{}/normalTexture/extensions/KHR_texture_transform/rotation",g.rotation);e("/materials/{}/occlusionTexture/strength",[new n(t.ANIMATIONTYPE_FLOAT,"ambientTextureStrength",s,()=>1)]);const d=o("ambientTexture");e("/materials/{}/occlusionTexture/extensions/KHR_texture_transform/scale",d.scale);e("/materials/{}/occlusionTexture/extensions/KHR_texture_transform/offset",d.offset);e("/materials/{}/occlusionTexture/extensions/KHR_texture_transform/rotation",d.rotation);const b=o("emissiveTexture");e("/materials/{}/emissiveTexture/extensions/KHR_texture_transform/scale",b.scale);e("/materials/{}/emissiveTexture/extensions/KHR_texture_transform/offset",b.offset);e("/materials/{}/emissiveTexture/extensions/KHR_texture_transform/rotation",b.rotation);e("/materials/{}/extensions/KHR_materials_anisotropy/anisotropyStrength",[new n(t.ANIMATIONTYPE_FLOAT,"anisotropy.intensity",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_anisotropy/anisotropyRotation",[new n(t.ANIMATIONTYPE_FLOAT,"anisotropy.angle",s,()=>1)]);const M=o("anisotropy.texture");e("/materials/{}/extensions/KHR_materials_anisotropy/anisotropyTexture/extensions/KHR_texture_transform/scale",M.scale);e("/materials/{}/extensions/KHR_materials_anisotropy/anisotropyTexture/extensions/KHR_texture_transform/offset",M.offset);e("/materials/{}/extensions/KHR_materials_anisotropy/anisotropyTexture/extensions/KHR_texture_transform/rotation",M.rotation);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatFactor",[new n(t.ANIMATIONTYPE_FLOAT,"clearCoat.intensity",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatRoughnessFactor",[new n(t.ANIMATIONTYPE_FLOAT,"clearCoat.roughness",s,()=>1)]);const F=o("clearCoat.texture");e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatTexture/extensions/KHR_texture_transform/scale",F.scale);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatTexture/extensions/KHR_texture_transform/offset",F.offset);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatTexture/extensions/KHR_texture_transform/rotation",F.rotation);const E=o("clearCoat.bumpTexture");e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatNormalTexture/scale",[new n(t.ANIMATIONTYPE_FLOAT,"clearCoat.bumpTexture.level",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatNormalTexture/extensions/KHR_texture_transform/scale",E.scale);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatNormalTexture/extensions/KHR_texture_transform/offset",E.offset);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatNormalTexture/extensions/KHR_texture_transform/rotation",E.rotation);const w=o("clearCoat.textureRoughness");e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatRoughnessTexture/extensions/KHR_texture_transform/scale",w.scale);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatRoughnessTexture/extensions/KHR_texture_transform/offset",w.offset);e("/materials/{}/extensions/KHR_materials_clearcoat/clearcoatRoughnessTexture/extensions/KHR_texture_transform/rotation",w.rotation);e("/materials/{}/extensions/KHR_materials_dispersion/dispersionFactor",[new n(t.ANIMATIONTYPE_FLOAT,"subSurface.dispersion",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_emissive_strength/emissiveStrength",[new n(t.ANIMATIONTYPE_FLOAT,"emissiveIntensity",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_ior/ior",[new n(t.ANIMATIONTYPE_FLOAT,"indexOfRefraction",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceFactor",[new n(t.ANIMATIONTYPE_FLOAT,"iridescence.intensity",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceIor",[new n(t.ANIMATIONTYPE_FLOAT,"iridescence.indexOfRefraction",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceThicknessMinimum",[new n(t.ANIMATIONTYPE_FLOAT,"iridescence.minimumThickness",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceThicknessMaximum",[new n(t.ANIMATIONTYPE_FLOAT,"iridescence.maximumThickness",s,()=>1)]);const L=o("iridescence.texture");e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceTexture/extensions/KHR_texture_transform/scale",L.scale);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceTexture/extensions/KHR_texture_transform/offset",L.offset);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceTexture/extensions/KHR_texture_transform/rotation",L.rotation);const P=o("iridescence.thicknessTexture");e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceThicknessTexture/extensions/KHR_texture_transform/scale",P.scale);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceThicknessTexture/extensions/KHR_texture_transform/offset",P.offset);e("/materials/{}/extensions/KHR_materials_iridescence/iridescenceThicknessTexture/extensions/KHR_texture_transform/rotation",P.rotation);e("/materials/{}/extensions/KHR_materials_sheen/sheenColorFactor",[new n(t.ANIMATIONTYPE_COLOR3,"sheen.color",u,()=>3)]);e("/materials/{}/extensions/KHR_materials_sheen/sheenRoughnessFactor",[new n(t.ANIMATIONTYPE_FLOAT,"sheen.roughness",s,()=>1)]);const y=o("sheen.texture");e("/materials/{}/extensions/KHR_materials_sheen/sheenColorTexture/extensions/KHR_texture_transform/scale",y.scale);e("/materials/{}/extensions/KHR_materials_sheen/sheenColorTexture/extensions/KHR_texture_transform/offset",y.offset);e("/materials/{}/extensions/KHR_materials_sheen/sheenColorTexture/extensions/KHR_texture_transform/rotation",y.rotation);const C=o("sheen.textureRoughness");e("/materials/{}/extensions/KHR_materials_sheen/sheenRoughnessTexture/extensions/KHR_texture_transform/scale",C.scale);e("/materials/{}/extensions/KHR_materials_sheen/sheenRoughnessTexture/extensions/KHR_texture_transform/offset",C.offset);e("/materials/{}/extensions/KHR_materials_sheen/sheenRoughnessTexture/extensions/KHR_texture_transform/rotation",C.rotation);e("/materials/{}/extensions/KHR_materials_specular/specularFactor",[new n(t.ANIMATIONTYPE_FLOAT,"metallicF0Factor",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_specular/specularColorFactor",[new n(t.ANIMATIONTYPE_COLOR3,"metallicReflectanceColor",u,()=>3)]);const Y=o("metallicReflectanceTexture");e("/materials/{}/extensions/KHR_materials_specular/specularTexture/extensions/KHR_texture_transform/scale",Y.scale);e("/materials/{}/extensions/KHR_materials_specular/specularTexture/extensions/KHR_texture_transform/offset",Y.offset);e("/materials/{}/extensions/KHR_materials_specular/specularTexture/extensions/KHR_texture_transform/rotation",Y.rotation);const v=o("reflectanceTexture");e("/materials/{}/extensions/KHR_materials_specular/specularColorTexture/extensions/KHR_texture_transform/scale",v.scale);e("/materials/{}/extensions/KHR_materials_specular/specularColorTexture/extensions/KHR_texture_transform/offset",v.offset);e("/materials/{}/extensions/KHR_materials_specular/specularColorTexture/extensions/KHR_texture_transform/rotation",v.rotation);e("/materials/{}/extensions/KHR_materials_transmission/transmissionFactor",[new n(t.ANIMATIONTYPE_FLOAT,"subSurface.refractionIntensity",s,()=>1)]);const S=o("subSurface.refractionIntensityTexture");e("/materials/{}/extensions/KHR_materials_transmission/transmissionTexture/extensions/KHR_texture_transform/scale",S.scale);e("/materials/{}/extensions/KHR_materials_transmission/transmissionTexture/extensions/KHR_texture_transform/offset",S.offset);e("/materials/{}/extensions/KHR_materials_transmission/transmissionTexture/extensions/KHR_texture_transform/rotation",S.rotation);e("/materials/{}/extensions/KHR_materials_volume/attenuationColor",[new n(t.ANIMATIONTYPE_COLOR3,"subSurface.tintColor",u,()=>3)]);e("/materials/{}/extensions/KHR_materials_volume/attenuationDistance",[new n(t.ANIMATIONTYPE_FLOAT,"subSurface.tintColorAtDistance",s,()=>1)]);e("/materials/{}/extensions/KHR_materials_volume/thicknessFactor",[new n(t.ANIMATIONTYPE_FLOAT,"subSurface.maximumThickness",s,()=>1)]);const $=o("subSurface.thicknessTexture");e("/materials/{}/extensions/KHR_materials_volume/thicknessTexture/extensions/KHR_texture_transform/scale",$.scale);e("/materials/{}/extensions/KHR_materials_volume/thicknessTexture/extensions/KHR_texture_transform/offset",$.offset);e("/materials/{}/extensions/KHR_materials_volume/thicknessTexture/extensions/KHR_texture_transform/rotation",$.rotation);e("/materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionFactor",[new n(t.ANIMATIONTYPE_FLOAT,"subSurface.translucencyIntensity",s,()=>1)]);const k=o("subSurface.translucencyIntensityTexture");e("materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionTexture/extensions/KHR_texture_transform/scale",k.scale);e("materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionTexture/extensions/KHR_texture_transform/offset",k.offset);e("materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionTexture/extensions/KHR_texture_transform/rotation",k.rotation);e("/materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionColorFactor",[new n(t.ANIMATIONTYPE_COLOR3,"subSurface.translucencyColor",u,()=>3)]);const j=o("subSurface.translucencyColorTexture");e("materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionColorTexture/extensions/KHR_texture_transform/scale",j.scale);e("materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionColorTexture/extensions/KHR_texture_transform/offset",j.offset);e("materials/{}/extensions/KHR_materials_diffuse_transmission/diffuseTransmissionColorTexture/extensions/KHR_texture_transform/rotation",j.rotation);e("/extensions/KHR_lights_punctual/lights/{}/color",[new _(t.ANIMATIONTYPE_COLOR3,"diffuse",u,()=>3)]);e("/extensions/KHR_lights_punctual/lights/{}/intensity",[new _(t.ANIMATIONTYPE_FLOAT,"intensity",s,()=>1)]);e("/extensions/KHR_lights_punctual/lights/{}/range",[new _(t.ANIMATIONTYPE_FLOAT,"range",s,()=>1)]);e("/extensions/KHR_lights_punctual/lights/{}/spot/innerConeAngle",[new _(t.ANIMATIONTYPE_FLOAT,"innerAngle",z,()=>1)]);e("/extensions/KHR_lights_punctual/lights/{}/spot/outerConeAngle",[new _(t.ANIMATIONTYPE_FLOAT,"angle",z,()=>1)]);e("/extensions/EXT_lights_area/lights/{}/color",[new _(t.ANIMATIONTYPE_COLOR3,"diffuse",u,()=>3)]);e("/extensions/EXT_lights_area/lights/{}/intensity",[new _(t.ANIMATIONTYPE_FLOAT,"intensity",s,()=>1)]);e("/extensions/EXT_lights_area/lights/{}/size",[new _(t.ANIMATIONTYPE_FLOAT,"radius",s,()=>1)]);e("/extensions/EXT_lights_area/lights/{}/rect/aspect",[new _(t.ANIMATIONTYPE_FLOAT,"radius",s,()=>1)]);e("/nodes/{}/extensions/EXT_lights_ies/color",[new _(t.ANIMATIONTYPE_COLOR3,"diffuse",u,()=>3)]);e("/nodes/{}/extensions/EXT_lights_ies/multiplier",[new _(t.ANIMATIONTYPE_FLOAT,"intensity",s,()=>1)]);e("/nodes/{}/extensions/KHR_node_visibility/visible",[new D(t.ANIMATIONTYPE_FLOAT,"isVisible",s,()=>1)]);const R="KHR_animation_pointer";class U{constructor(r){this.name=R,this._loader=r,this._pathToObjectConverter=G(this._loader.gltf)}get enabled(){return this._loader.isExtensionUsed(R)}dispose(){this._loader=null,delete this._pathToObjectConverter}_loadAnimationChannelAsync(r,a,i,m,x){var X;const T=(X=m.target.extensions)==null?void 0:X.KHR_animation_pointer;if(!T||!this._pathToObjectConverter)return null;m.target.path!=="pointer"&&K.Warn(`${r}/target/path: Value (${m.target.path}) must be (pointer) when using the ${this.name} extension`),m.target.node!=null&&K.Warn(`${r}/target/node: Value (${m.target.node}) must not be present when using the ${this.name} extension`);const I=`${r}/extensions/${this.name}`,h=T.pointer;if(!h)throw new Error(`${I}: Pointer is missing`);try{const f=this._pathToObjectConverter.convert(h);if(!f.info.interpolation)throw new Error(`${I}/pointer: Interpolation is missing`);return this._loader._loadAnimationChannelFromTargetInfoAsync(r,a,i,m,{object:f.object,info:f.info.interpolation},x)}catch{return K.Warn(`${I}/pointer: Invalid pointer (${h}) skipped`),null}}}B(R);Z(R,!0,l=>new U(l));export{U as KHR_animation_pointer}; diff --git a/assets/KHR_draco_mesh_compression-Bxve-01A.js b/assets/KHR_draco_mesh_compression-Bxve-01A.js new file mode 100644 index 0000000000000000000000000000000000000000..f3597e1fb4523403dd3f988cb1b4973edc1de287 --- /dev/null +++ b/assets/KHR_draco_mesh_compression-Bxve-01A.js @@ -0,0 +1 @@ +import{T as A}from"./tools-D01N7ptR.js";import{A as v}from"./workerPool-CfMXSLnf.js";import{G as C}from"./mesh-BPwLonvs.js";import{V as _}from"./buffer-DqKlo1ts.js";import{L as V}from"./bufferUtils-DTRdUD8L.js";import{G as k,A as g,L as R}from"./glTFLoader-Brfz25eu.js";import{u as F,r as N}from"./dynamic-Bj3y4CGC.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./math.color-CzLaKyb6.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./index-BoUtOhbH.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./dataBuffer-CgoqiUzT.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";function U(c,t,n,a,m){const e=c;let r=null,o=null,s=null;try{r=new e.Decoder,o=new e.DecoderBuffer,o.Init(t,t.byteLength);let i;const l=r.GetEncodedGeometryType(o);switch(l){case e.TRIANGULAR_MESH:{const d=new e.Mesh;if(i=r.DecodeBufferToMesh(o,d),!i.ok()||d.ptr===0)throw new Error(i.error_msg());const y=d.num_faces()*3,p=y*4,u=e._malloc(p);try{r.GetTrianglesUInt32Array(d,p,u);const P=new Uint32Array(y);P.set(new Uint32Array(e.HEAPF32.buffer,u,y)),a(P)}finally{e._free(u)}s=d;break}case e.POINT_CLOUD:{const d=new e.PointCloud;if(i=r.DecodeBufferToPointCloud(o,d),!i.ok()||!d.ptr)throw new Error(i.error_msg());s=d;break}default:throw new Error(`Draco: Cannot decode invalid geometry type ${l}`)}const h=s.num_points(),b=(d,f,y,p)=>{const u=p.data_type(),P=p.num_components(),M=p.normalized(),B=p.byte_stride(),O=p.byte_offset(),T={[e.DT_FLOAT32]:{typedArrayConstructor:Float32Array,heap:e.HEAPF32},[e.DT_INT8]:{typedArrayConstructor:Int8Array,heap:e.HEAP8},[e.DT_INT16]:{typedArrayConstructor:Int16Array,heap:e.HEAP16},[e.DT_INT32]:{typedArrayConstructor:Int32Array,heap:e.HEAP32},[e.DT_UINT8]:{typedArrayConstructor:Uint8Array,heap:e.HEAPU8},[e.DT_UINT16]:{typedArrayConstructor:Uint16Array,heap:e.HEAPU16},[e.DT_UINT32]:{typedArrayConstructor:Uint32Array,heap:e.HEAPU32}}[u];if(!T)throw new Error(`Draco: Cannot decode invalid data type ${u}`);const I=h*P,L=I*T.typedArrayConstructor.BYTES_PER_ELEMENT,D=e._malloc(L);try{d.GetAttributeDataArrayForAllPoints(f,p,u,L,D);const G=new T.typedArrayConstructor(T.heap.buffer,D,I);m(y,G.slice(),P,O,B,M)}finally{e._free(D)}};if(n)for(const d in n){const f=n[d],y=r.GetAttributeByUniqueId(s,f);b(r,s,d,y)}else{const d={position:e.POSITION,normal:e.NORMAL,color:e.COLOR,uv:e.TEX_COORD};for(const f in d){const y=r.GetAttributeId(s,d[f]);if(y!==-1){const p=r.GetAttribute(s,y);b(r,s,f,p)}}}return h}finally{s&&e.destroy(s),o&&e.destroy(o),r&&e.destroy(r)}}function S(){let c;onmessage=t=>{const n=t.data;switch(n.id){case"init":{n.url&&importScripts(n.url);const a=n.wasmBinary?{wasmBinary:n.wasmBinary}:{};c=DracoDecoderModule(a),postMessage({id:"initDone"});break}case"decodeMesh":{if(!c)throw new Error("Draco: Decoder module is not available");c.then(a=>{const m=U(a,n.dataView,n.attributes,e=>{postMessage({id:"indices",data:e},[e.buffer])},(e,r,o,s,i,l)=>{postMessage({id:"attribute",kind:e,data:r,size:o,byteOffset:s,byteStride:i,normalized:l},[r.buffer])});postMessage({id:"decodeMeshDone",totalVertices:m})});break}}}}async function W(c,t,n){return await new Promise((a,m)=>{const e=o=>{c.removeEventListener("error",e),c.removeEventListener("message",r),m(o)},r=o=>{o.data.id==="initDone"&&(c.removeEventListener("error",e),c.removeEventListener("message",r),a(c))};if(c.addEventListener("error",e),c.addEventListener("message",r),!t)c.postMessage({id:"init",url:n});else{const o=t.slice(0);c.postMessage({id:"init",url:n,wasmBinary:o},[o])}})}function K(){return typeof navigator!="object"||!navigator.hardwareConcurrency?1:Math.min(Math.floor(navigator.hardwareConcurrency*.5),4)}function $(c){return!!(c.wasmUrl&&(c.wasmBinary||c.wasmBinaryUrl)&&typeof WebAssembly=="object"||c.fallbackUrl)}class z{constructor(t){if(t.workerPool){this._workerPoolPromise=Promise.resolve(t.workerPool);return}const n=t.wasmBinary,a=t.numWorkers??K(),m=a&&typeof Worker=="function"&&typeof URL=="function",e=m||!t.jsModule,r=t.wasmUrl&&t.wasmBinaryUrl&&typeof WebAssembly=="object"?{url:e?A.GetBabylonScriptURL(t.wasmUrl,!0):"",wasmBinaryPromise:n?Promise.resolve(n):A.LoadFileAsync(A.GetBabylonScriptURL(t.wasmBinaryUrl,!0))}:{url:e?A.GetBabylonScriptURL(t.fallbackUrl):"",wasmBinaryPromise:Promise.resolve(void 0)};m?this._workerPoolPromise=r.wasmBinaryPromise.then(o=>{const s=this._getWorkerContent(),i=URL.createObjectURL(new Blob([s],{type:"application/javascript"}));return new v(a,()=>{const l=new Worker(i);return W(l,o,r.url)})}):this._modulePromise=r.wasmBinaryPromise.then(async o=>{if(!this._isModuleAvailable()&&!t.jsModule){if(!r.url)throw new Error("Draco codec module is not available");await A.LoadBabylonScriptAsync(r.url)}return await this._createModuleAsync(o,t.jsModule)})}async whenReadyAsync(){if(this._workerPoolPromise){await this._workerPoolPromise;return}if(this._modulePromise){await this._modulePromise;return}}dispose(){this._workerPoolPromise&&this._workerPoolPromise.then(t=>{t.dispose()}),delete this._workerPoolPromise,delete this._modulePromise}}class w extends z{static get DefaultAvailable(){return $(w.DefaultConfiguration)}static get Default(){return w._Default??(w._Default=new w),w._Default}static ResetDefault(t){w._Default&&(t||w._Default.dispose(),w._Default=null)}_isModuleAvailable(){return typeof DracoDecoderModule<"u"}async _createModuleAsync(t,n){return{module:await(n||DracoDecoderModule)({wasmBinary:t})}}_getWorkerContent(){return`${U}(${S})()`}constructor(t=w.DefaultConfiguration){super(t)}decodeMeshToMeshDataAsync(t,n,a){const m=t instanceof ArrayBuffer?new Int8Array(t):new Int8Array(t.buffer,t.byteOffset,t.byteLength),e=(r,o)=>a&&a[r]!==void 0?(o!==a[r]&&V.Warn(`Normalized flag from Draco data (${o}) does not match normalized flag from glTF accessor (${a[r]}). Using flag from glTF accessor.`),a[r]):o;if(this._workerPoolPromise)return this._workerPoolPromise.then(async r=>await new Promise((o,s)=>{r.push((i,l)=>{let h=null;const b=[],d=p=>{i.removeEventListener("error",d),i.removeEventListener("message",f),s(p),l()},f=p=>{const u=p.data;switch(u.id){case"indices":{h=u.data;break}case"attribute":{b.push({kind:u.kind,data:u.data,size:u.size,byteOffset:u.byteOffset,byteStride:u.byteStride,normalized:e(u.kind,u.normalized)});break}case"decodeMeshDone":{i.removeEventListener("error",d),i.removeEventListener("message",f),o({indices:h,attributes:b,totalVertices:u.totalVertices}),l();break}}};i.addEventListener("error",d),i.addEventListener("message",f);const y=m.slice();i.postMessage({id:"decodeMesh",dataView:y,attributes:n},[y.buffer])})}));if(this._modulePromise)return this._modulePromise.then(r=>{let o=null;const s=[],i=U(r.module,m,n,l=>{o=l},(l,h,b,d,f,y)=>{s.push({kind:l,data:h,size:b,byteOffset:d,byteStride:f,normalized:y})});return{indices:o,attributes:s,totalVertices:i}});throw new Error("Draco: Decoder module is not available")}async decodeMeshToGeometryAsync(t,n,a,m){const e=await this.decodeMeshToMeshDataAsync(a,m),r=new C(t,n);e.indices&&r.setIndices(e.indices);for(const o of e.attributes)r.setVerticesBuffer(new _(n.getEngine(),o.data,o.kind,!1,void 0,o.byteStride,void 0,o.byteOffset,o.size,void 0,o.normalized,!0),e.totalVertices);return r}async _decodeMeshToGeometryForGltfAsync(t,n,a,m,e,r){const o=await this.decodeMeshToMeshDataAsync(a,m,e),s=new C(t,n);r&&(s._boundingInfo=r,s.useBoundingInfoFromGeometry=!0),o.indices&&s.setIndices(o.indices);for(const i of o.attributes)s.setVerticesBuffer(new _(n.getEngine(),i.data,i.kind,!1,void 0,i.byteStride,void 0,i.byteOffset,i.size,void 0,i.normalized,!0),o.totalVertices);return s}}w.DefaultConfiguration={wasmUrl:`${A._DefaultCdnUrl}/draco_wasm_wrapper_gltf.js`,wasmBinaryUrl:`${A._DefaultCdnUrl}/draco_decoder_gltf.wasm`,fallbackUrl:`${A._DefaultCdnUrl}/draco_decoder_gltf.js`};w._Default=null;const E="KHR_draco_mesh_compression";class H{constructor(t){this.name=E,this.useNormalizedFlagFromAccessor=!0,this._loader=t,this.enabled=w.DefaultAvailable&&this._loader.isExtensionUsed(E)}dispose(){delete this.dracoDecoder,this._loader=null}_loadVertexDataAsync(t,n,a){return k.LoadExtensionAsync(t,n,this.name,async(m,e)=>{if(n.mode!=null&&n.mode!==4&&n.mode!==5)throw new Error(`${t}: Unsupported mode ${n.mode}`);const r={},o={},s=(l,h)=>{const b=e.attributes[l];if(b!=null&&(a._delayInfo=a._delayInfo||[],a._delayInfo.indexOf(h)===-1&&a._delayInfo.push(h),r[h]=b,this.useNormalizedFlagFromAccessor)){const d=g.TryGet(this._loader.gltf.accessors,n.attributes[l]);d&&(o[h]=d.normalized||!1)}};s("POSITION",_.PositionKind),s("NORMAL",_.NormalKind),s("TANGENT",_.TangentKind),s("TEXCOORD_0",_.UVKind),s("TEXCOORD_1",_.UV2Kind),s("TEXCOORD_2",_.UV3Kind),s("TEXCOORD_3",_.UV4Kind),s("TEXCOORD_4",_.UV5Kind),s("TEXCOORD_5",_.UV6Kind),s("JOINTS_0",_.MatricesIndicesKind),s("WEIGHTS_0",_.MatricesWeightsKind),s("COLOR_0",_.ColorKind);const i=g.Get(m,this._loader.gltf.bufferViews,e.bufferView);return i._dracoBabylonGeometry||(i._dracoBabylonGeometry=this._loader.loadBufferViewAsync(`/bufferViews/${i.index}`,i).then(async l=>{const h=this.dracoDecoder||w.Default,b=g.TryGet(this._loader.gltf.accessors,n.attributes.POSITION),d=!this._loader.parent.alwaysComputeBoundingBox&&!a.skeleton&&b?R(b):null;return await h._decodeMeshToGeometryForGltfAsync(a.name,this._loader.babylonScene,l,r,o,d).catch(f=>{throw new Error(`${t}: ${f.message}`)})})),await i._dracoBabylonGeometry})}}F(E);N(E,!0,c=>new H(c));export{H as KHR_draco_mesh_compression}; diff --git a/assets/KHR_interactivity-C3RNAVLI.js b/assets/KHR_interactivity-C3RNAVLI.js new file mode 100644 index 0000000000000000000000000000000000000000..be14d478ab2d1a818de6f3fe279771102fc9562a --- /dev/null +++ b/assets/KHR_interactivity-C3RNAVLI.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/flowGraphPlayAnimationBlock-IxAufpML.js","assets/declarationMapper-oEUQrCmY.js","assets/bufferUtils-DTRdUD8L.js","assets/math.vector-C1xyPDEl.js","assets/math.scalar.functions-DkeaWAWz.js","assets/math.color-CzLaKyb6.js","assets/animationGroup-BP7VB8mY.js","assets/animation-IftAdLIx.js","assets/node-C-Iu0ALa.js","assets/decorators.serialization-C7d7ykGG.js","assets/baseTexture-CgAggsey.js","assets/bone-B35odufe.js","assets/scene-gn_hoGMy.js","assets/tools-D01N7ptR.js","assets/smartArray-CO6iJ0u5.js","assets/lightConstants-B1TSTh-k.js","assets/sceneComponent-Dflhczui.js","assets/math.plane-Ce_75-g5.js","assets/buffer-DqKlo1ts.js","assets/dataBuffer-CgoqiUzT.js","assets/renderingManager-CiY2OUrf.js","assets/deviceInputEvents-BTza-zoR.js","assets/perfCounter-DusmGz8t.js","assets/index-BoUtOhbH.js","assets/index-Dia8OOrJ.css","assets/dynamic-Bj3y4CGC.js","assets/sceneLoader-CutT-qCn.js","assets/sceneLoaderFlags-wywyb9ml.js","assets/objectModelMapping-DWcnlpHl.js","assets/light-DT53MGnW.js","assets/math.axis-Ck7JfPPj.js","assets/texture-BEqhDl5Y.js","assets/flowGraphStopAnimationBlock-C6yv0Yrt.js","assets/flowGraphPauseAnimationBlock-DS1QsMRD.js","assets/flowGraphInterpolationBlock-LzjPz1YF.js","assets/flowGraphSceneReadyEventBlock-BBQA6KFX.js","assets/flowGraphSceneTickEventBlock-DE7kYgzT.js","assets/flowGraphSendCustomEventBlock-DodR1_6V.js","assets/flowGraphReceiveCustomEventBlock-CmJs3tKt.js","assets/flowGraphMeshPickEventBlock-D7y8o9af.js","assets/flowGraphMathBlocks-nX-o_pDE.js","assets/flowGraphBinaryOperationBlock-B9Foy9TI.js","assets/flowGraphCachedOperationBlock-BoBTrf_K.js","assets/flowGraphUnaryOperationBlock-T51nvFZ5.js","assets/flowGraphVectorMathBlocks-DlHtO-kx.js","assets/flowGraphMatrixMathBlocks-CFbuW_DO.js","assets/flowGraphBranchBlock-cI3FviG0.js","assets/flowGraphSetDelayBlock-Bgyg_b1g.js","assets/flowGraphCancelDelayBlock-BERi7-w9.js","assets/flowGraphCounterBlock-1E0aom5v.js","assets/flowGraphDebounceBlock-D2U8Zhqs.js","assets/flowGraphThrottleBlock-BHy5Gn1x.js","assets/flowGraphDoNBlock-Dag8NJax.js","assets/flowGraphFlipFlopBlock-CJsKF7lA.js","assets/flowGraphForLoopBlock-C5eiBMG4.js","assets/flowGraphMultiGateBlock-DZbQv3Yl.js","assets/flowGraphSequenceBlock-BSG-evmr.js","assets/flowGraphSwitchBlock-BcftaIpv.js","assets/flowGraphWaitAllBlock-CmcnHiaB.js","assets/flowGraphWhileLoopBlock-bYMZCJjX.js","assets/flowGraphConsoleLogBlock-BXD7zlBU.js","assets/flowGraphConditionalDataBlock-BV-fMmq1.js","assets/flowGraphConstantBlock-B9jqzc_R.js","assets/flowGraphTransformCoordinatesSystemBlock-B8KAtU1d.js","assets/flowGraphGetAssetBlock-A_0ets8A.js","assets/flowGraphGetPropertyBlock-D65vIAy4.js","assets/flowGraphSetPropertyBlock-BDRXsUw3.js","assets/flowGraphGetVariableBlock-5ICzFn30.js","assets/flowGraphSetVariableBlock-RoDLyFxh.js","assets/flowGraphJsonPointerParserBlock-Dx5LKGL1.js","assets/flowGraphMathCombineExtractBlocks-uJuoGCj_.js","assets/flowGraphTypeToTypeBlocks-NEKrVmq3.js","assets/flowGraphEasingBlock-Bw9cXxwa.js","assets/easing-Wc0jPSIm.js","assets/math.path-DFucxaHn.js","assets/flowGraphBezierCurveEasingBlock-CAUlTPkC.js","assets/flowGraphPointerOverEventBlock-XGzR6Pd3.js","assets/flowGraphPointerOutEventBlock-BCA8EB69.js","assets/flowGraphContextBlock-7NUkbbBi.js","assets/flowGraphArrayIndexBlock-DeixmDWL.js","assets/flowGraphCodeExecutionBlock-g8LEvIul.js","assets/flowGraphIndexOfBlock-xIoi6zpW.js","assets/flowGraphFunctionReferenceBlock-BoCOqN2s.js","assets/flowGraphDataSwitchBlock-B4801DfN.js","assets/flowGraphGLTFDataProvider-Dr5qcwPs.js"])))=>i.map(i=>d[i]); +import{_ as r}from"./index-BoUtOhbH.js";import{M as kt,a as Gt,V as ut,b as Bt,Q as X,O as U}from"./math.vector-C1xyPDEl.js";import{L as w,_ as Ft,s as Et}from"./bufferUtils-DTRdUD8L.js";import{R as D}from"./decorators.serialization-C7d7ykGG.js";import{Color3 as vt,Color4 as It}from"./math.color-CzLaKyb6.js";import{F as Tt,a as Vt,b as Ct,g as Pt,c as bt,d as at}from"./declarationMapper-oEUQrCmY.js";import{R as ht}from"./math.scalar.functions-DkeaWAWz.js";import{P as rt}from"./deviceInputEvents-BTza-zoR.js";import{u as Ot,r as xt}from"./dynamic-Bj3y4CGC.js";import{a as Dt,A as O}from"./objectModelMapping-DWcnlpHl.js";function At(a){return a==="Mesh"||a==="AbstractMesh"||a==="GroundMesh"||a==="InstanceMesh"||a==="LinesMesh"||a==="GoldbergMesh"||a==="GreasedLineMesh"||a==="TrailMesh"}function pt(a){return a==="Vector2"||a==="Vector3"||a==="Vector4"||a==="Quaternion"||a==="Color3"||a==="Color4"}function Rt(a){return a==="Matrix"||a==="Matrix2D"||a==="Matrix3D"}function Lt(a){return a==="AnimationGroup"}function St(a,t,e=!1){if(a==="Vector2")return Gt.FromArray(t);if(a==="Vector3")return e&&(t[2]*=-1),ut.FromArray(t);if(a==="Vector4")return Bt.FromArray(t);if(a==="Quaternion")return e&&(t[2]*=-1,t[3]*=-1),X.FromArray(t);if(a==="Color3")return new vt(t[0],t[1],t[2]);if(a==="Color4")return new It(t[0],t[1],t[2],t[3]);throw new Error(`Unknown vector class name ${a}`)}function tt(a,t,e){var n;const o=((n=t==null?void 0:t.getClassName)==null?void 0:n.call(t))??"";if(pt(o)||Rt(o))e[a]={value:t.asArray(),className:o};else if(o==="FlowGraphInteger")e[a]={value:t.value,className:o};else if(o&&(t.id||t.name))e[a]={id:t.id,name:t.name,className:o};else if(typeof t!="object")e[a]=t;else throw new Error(`Could not serialize value ${t}`)}function H(a,t,e,o){const n=t[a];let s;const i=(n==null?void 0:n.type)??(n==null?void 0:n.className);if(At(i)){let c=o.meshes.filter(l=>n.id?l.id===n.id:l.name===n.name);c.length===0&&(c=o.transformNodes.filter(l=>n.id?l.id===n.id:l.name===n.name)),s=n.uniqueId?c.find(l=>l.uniqueId===n.uniqueId):c[0]}else if(pt(i))s=St(i,n.value);else if(Lt(i)){const c=o.animationGroups.filter(l=>l.name===n.name);s=c.length===1?c[0]:c.find(l=>l.uniqueId===n.uniqueId)}else i==="Matrix"?s=kt.FromArray(n.value):i==="Matrix2D"?s=new Tt(n.value):i==="Matrix3D"?s=new Vt(n.value):i==="FlowGraphInteger"?s=Ct.FromValue(n.value):i==="number"||i==="string"||i==="boolean"?s=n.value[0]:n&&n.value!==void 0?s=n.value:Array.isArray(n)?s=n.reduce((c,l)=>(l.eventData&&(c[l.id]={type:Pt(l.type)},typeof l.value<"u"&&(c[l.id].value=H("value",l,e,o))),c),{}):s=n;return s}function Nt(a){return a==="FlowGraphJsonPointerParserBlock"}var st;(function(a){a.Animation="Animation",a.AnimationGroup="AnimationGroup",a.Mesh="Mesh",a.Material="Material",a.Camera="Camera",a.Light="Light"})(st||(st={}));function Mt(a,t,e,o){switch(t){case"Animation":return o?a.animations.find(n=>n.uniqueId===e)??null:a.animations[e]??null;case"AnimationGroup":return o?a.animationGroups.find(n=>n.uniqueId===e)??null:a.animationGroups[e]??null;case"Mesh":return o?a.meshes.find(n=>n.uniqueId===e)??null:a.meshes[e]??null;case"Material":return o?a.materials.find(n=>n.uniqueId===e)??null:a.materials[e]??null;case"Camera":return o?a.cameras.find(n=>n.uniqueId===e)??null:a.cameras[e]??null;case"Light":return o?a.lights.find(n=>n.uniqueId===e)??null:a.lights[e]??null;default:return null}}var it;(function(a){a.ExecuteBlock="ExecuteBlock",a.ExecuteEvent="ExecuteEvent",a.TriggerConnection="TriggerConnection",a.ContextVariableSet="ContextVariableSet",a.GlobalVariableSet="GlobalVariableSet",a.GlobalVariableDelete="GlobalVariableDelete",a.GlobalVariableGet="GlobalVariableGet",a.AddConnection="AddConnection",a.GetConnectionValue="GetConnectionValue",a.SetConnectionValue="SetConnectionValue",a.ActivateSignal="ActivateSignal",a.ContextVariableGet="ContextVariableGet"})(it||(it={}));class qt{constructor(){this.logToConsole=!1,this.log=[]}addLogItem(t){var e;if(t.time||(t.time=Date.now()),this.log.push(t),this.logToConsole){const o=(e=t.payload)==null?void 0:e.value;typeof o=="object"&&o.getClassName?w.Log(`[FGLog] ${t.className}:${t.uniqueId.split("-")[0]} ${t.action} - ${JSON.stringify(o.getClassName())}: ${o.toString()}`):w.Log(`[FGLog] ${t.className}:${t.uniqueId.split("-")[0]} ${t.action} - ${JSON.stringify(t.payload)}`)}}getItemsOfType(t){return this.log.filter(e=>e.action===t)}}class _t{get enableLogging(){return this._enableLogging}set enableLogging(t){this._enableLogging!==t&&(this._enableLogging=t,this._enableLogging?(this.logger=new qt,this.logger.logToConsole=!0):this.logger=null)}constructor(t){this.uniqueId=D(),this._userVariables={},this._executionVariables={},this._globalContextVariables={},this._connectionValues={},this._pendingBlocks=[],this._executionId=0,this.onNodeExecutedObservable=new U,this.treatDataAsRightHanded=!1,this._enableLogging=!1,this._configuration=t,this.assetsContext=t.assetsContext??t.scene}hasVariable(t){return t in this._userVariables}setVariable(t,e){var o;this._userVariables[t]=e,(o=this.logger)==null||o.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"ContextVariableSet",payload:{name:t,value:e}})}getAsset(t,e){return Mt(this.assetsContext,t,e)}getVariable(t){var e;return(e=this.logger)==null||e.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"ContextVariableGet",payload:{name:t,value:this._userVariables[t]}}),this._userVariables[t]}get userVariables(){return this._userVariables}getScene(){return this._configuration.scene}_getUniqueIdPrefixedName(t,e){return`${t.uniqueId}_${e}`}_getGlobalContextVariable(t,e){var o;return(o=this.logger)==null||o.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GlobalVariableGet",payload:{name:t,defaultValue:e,possibleValue:this._globalContextVariables[t]}}),this._hasGlobalContextVariable(t)?this._globalContextVariables[t]:e}_setGlobalContextVariable(t,e){var o;(o=this.logger)==null||o.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GlobalVariableSet",payload:{name:t,value:e}}),this._globalContextVariables[t]=e}_deleteGlobalContextVariable(t){var e;(e=this.logger)==null||e.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GlobalVariableDelete",payload:{name:t}}),delete this._globalContextVariables[t]}_hasGlobalContextVariable(t){return t in this._globalContextVariables}_setExecutionVariable(t,e,o){this._executionVariables[this._getUniqueIdPrefixedName(t,e)]=o}_getExecutionVariable(t,e,o){return this._hasExecutionVariable(t,e)?this._executionVariables[this._getUniqueIdPrefixedName(t,e)]:o}_deleteExecutionVariable(t,e){delete this._executionVariables[this._getUniqueIdPrefixedName(t,e)]}_hasExecutionVariable(t,e){return this._getUniqueIdPrefixedName(t,e)in this._executionVariables}_hasConnectionValue(t){return t.uniqueId in this._connectionValues}_setConnectionValue(t,e){var o;this._connectionValues[t.uniqueId]=e,(o=this.logger)==null||o.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"SetConnectionValue",payload:{connectionPointId:t.uniqueId,value:e}})}_setConnectionValueByKey(t,e){this._connectionValues[t]=e}_getConnectionValue(t){var e;return(e=this.logger)==null||e.addLogItem({time:Date.now(),className:this.getClassName(),uniqueId:this.uniqueId,action:"GetConnectionValue",payload:{connectionPointId:t.uniqueId,value:this._connectionValues[t.uniqueId]}}),this._connectionValues[t.uniqueId]}get configuration(){return this._configuration}get hasPendingBlocks(){return this._pendingBlocks.length>0}_addPendingBlock(t){this._pendingBlocks.includes(t)||(this._pendingBlocks.push(t),this._pendingBlocks.sort((e,o)=>e.priority-o.priority))}_removePendingBlock(t){const e=this._pendingBlocks.indexOf(t);e!==-1&&this._pendingBlocks.splice(e,1)}_clearPendingBlocks(){for(const t of this._pendingBlocks)t._cancelPendingTasks(this);this._pendingBlocks.length=0}_notifyExecuteNode(t){var e;this.onNodeExecutedObservable.notifyObservers(t),(e=this.logger)==null||e.addLogItem({time:Date.now(),className:t.getClassName(),uniqueId:t.uniqueId,action:"ExecuteBlock"})}_notifyOnTick(t){var e;this._setGlobalContextVariable("timeSinceStart",t.timeSinceStart),this._setGlobalContextVariable("deltaTime",t.deltaTime);for(const o of this._pendingBlocks)(e=o._executeOnTick)==null||e.call(o,this)}_increaseExecutionId(){this._executionId++}get executionId(){return this._executionId}serialize(t={},e=tt){var o;t.uniqueId=this.uniqueId,t._userVariables={};for(const n in this._userVariables)e(n,this._userVariables[n],t._userVariables);t._connectionValues={};for(const n in this._connectionValues)e(n,this._connectionValues[n],t._connectionValues);this.assetsContext!==this.getScene()&&(t._assetsContext={meshes:this.assetsContext.meshes.map(n=>n.id),materials:this.assetsContext.materials.map(n=>n.id),textures:this.assetsContext.textures.map(n=>n.name),animations:this.assetsContext.animations.map(n=>n.name),lights:this.assetsContext.lights.map(n=>n.id),cameras:this.assetsContext.cameras.map(n=>n.id),sounds:(o=this.assetsContext.sounds)==null?void 0:o.map(n=>n.name),skeletons:this.assetsContext.skeletons.map(n=>n.id),particleSystems:this.assetsContext.particleSystems.map(n=>n.name),geometries:this.assetsContext.geometries.map(n=>n.id),multiMaterials:this.assetsContext.multiMaterials.map(n=>n.id),transformNodes:this.assetsContext.transformNodes.map(n=>n.id)})}getClassName(){return"FlowGraphContext"}}Ft([Et()],_t.prototype,"uniqueId",void 0);var ct;(function(a){a[a.Input=0]="Input",a[a.Output=1]="Output"})(ct||(ct={}));class wt{constructor(t,e,o){this._ownerBlock=o,this._connectedPoint=[],this.uniqueId=D(),this.connectedPointIds=[],this.name=t,this._connectionType=e}get connectionType(){return this._connectionType}_isSingularConnection(){return!0}isConnected(){return this._connectedPoint.length>0}connectTo(t){if(this._connectionType===t._connectionType)throw new Error(`Cannot connect two points of type ${this.connectionType}`);if(this._isSingularConnection()&&this._connectedPoint.length>0||t._isSingularConnection()&&t._connectedPoint.length>0)throw new Error("Max number of connections for point reached");this._connectedPoint.push(t),t._connectedPoint.push(this)}disconnectFrom(t,e=!0){const o=this._connectedPoint.indexOf(t),n=t._connectedPoint.indexOf(this);o===-1||n===-1||(e&&this._connectedPoint.splice(o,1),t._connectedPoint.splice(n,1))}disconnectFromAll(){for(const t of this._connectedPoint)this.disconnectFrom(t,!1);this._connectedPoint.length=0}dispose(){for(const t of this._connectedPoint)this.disconnectFrom(t)}serialize(t={}){t.uniqueId=this.uniqueId,t.name=this.name,t._connectionType=this._connectionType,t.connectedPointIds=[],t.className=this.getClassName();for(const e of this._connectedPoint)t.connectedPointIds.push(e.uniqueId)}getClassName(){return"FGConnection"}deserialize(t){this.uniqueId=t.uniqueId,this.name=t.name,this._connectionType=t._connectionType,this.connectedPointIds=t.connectedPointIds}}class Y extends wt{constructor(t,e,o,n,s=n.defaultValue,i=!1){super(t,e,o),this.richType=n,this._defaultValue=s,this._optional=i,this._isDisabled=!1,this._lastValue=null,this.dataTransformer=null,this.onValueChangedObservable=new U}get optional(){return this._optional}get isDisabled(){return this._isDisabled}set isDisabled(t){this._isDisabled!==t&&(this._isDisabled=t,this._isDisabled&&this.disconnectFromAll())}_isSingularConnection(){return this.connectionType===0}setValue(t,e){e._getConnectionValue(this)!==t&&(e._setConnectionValue(this,t),this.onValueChangedObservable.notifyObservers(t))}resetToDefaultValue(t){t._setConnectionValue(this,this._defaultValue)}connectTo(t){this._isDisabled||super.connectTo(t)}_getValueOrDefault(t){const e=t._getConnectionValue(this)??this._defaultValue;return this.dataTransformer?this.dataTransformer(e):e}getValue(t){if(this.connectionType===1){t._notifyExecuteNode(this._ownerBlock),this._ownerBlock._updateOutputs(t);const o=this._getValueOrDefault(t);return this._lastValue=o,this.richType.typeTransformer?this.richType.typeTransformer(o):o}const e=this.isConnected()?this._connectedPoint[0].getValue(t):this._getValueOrDefault(t);return this._lastValue=e,this.richType.typeTransformer?this.richType.typeTransformer(e):e}_getLastValue(){return this._lastValue}getClassName(){return"FlowGraphDataConnection"}serialize(t={}){super.serialize(t),t.richType={},this.richType.serialize(t.richType),t.optional=this._optional,tt("defaultValue",this._defaultValue,t)}}ht("FlowGraphDataConnection",Y);class $t{constructor(t){var e;this.config=t,this.uniqueId=D(),this.name=((e=this.config)==null?void 0:e.name)??this.getClassName(),this.dataInputs=[],this.dataOutputs=[]}_updateOutputs(t){}registerDataInput(t,e,o){const n=new Y(t,0,this,e,o);return this.dataInputs.push(n),n}registerDataOutput(t,e,o){const n=new Y(t,1,this,e,o);return this.dataOutputs.push(n),n}getDataInput(t){return this.dataInputs.find(e=>e.name===t)}getDataOutput(t){return this.dataOutputs.find(e=>e.name===t)}serialize(t={},e=tt){if(t.uniqueId=this.uniqueId,t.config={},this.config){const o=this.config,n=Object.keys(o);for(const s of n)e(s,o[s],t.config)}t.dataInputs=[],t.dataOutputs=[],t.className=this.getClassName();for(const o of this.dataInputs){const n={};o.serialize(n),t.dataInputs.push(n)}for(const o of this.dataOutputs){const n={};o.serialize(n),t.dataOutputs.push(n)}}deserialize(t){}_log(t,e,o){var n;(n=t.logger)==null||n.addLogItem({action:e,payload:o,className:this.getClassName(),uniqueId:this.uniqueId})}getClassName(){return"FlowGraphBlock"}}class z extends wt{constructor(){super(...arguments),this.priority=0}_isSingularConnection(){return!1}connectTo(t){super.connectTo(t),this._connectedPoint.sort((e,o)=>o.priority-e.priority)}_activateSignal(t){var e;if((e=t.logger)==null||e.addLogItem({action:"ActivateSignal",className:this._ownerBlock.getClassName(),uniqueId:this._ownerBlock.uniqueId,payload:{connectionType:this.connectionType,name:this.name}}),this.connectionType===0)t._notifyExecuteNode(this._ownerBlock),this._ownerBlock._execute(t,this),t._increaseExecutionId();else for(const o of this._connectedPoint)o._activateSignal(t)}}ht("FlowGraphSignalConnection",z);class J extends $t{constructor(t){super(t),this.priority=0,this.signalInputs=[],this.signalOutputs=[],this.in=this._registerSignalInput("in"),this.error=this._registerSignalOutput("error")}_registerSignalInput(t){const e=new z(t,0,this);return this.signalInputs.push(e),e}_registerSignalOutput(t){const e=new z(t,1,this);return this.signalOutputs.push(e),e}_unregisterSignalInput(t){const e=this.signalInputs.findIndex(o=>o.name===t);e!==-1&&(this.signalInputs[e].dispose(),this.signalInputs.splice(e,1))}_unregisterSignalOutput(t){const e=this.signalOutputs.findIndex(o=>o.name===t);e!==-1&&(this.signalOutputs[e].dispose(),this.signalOutputs.splice(e,1))}_reportError(t,e){this.error.payload=typeof e=="string"?new Error(e):e,this.error._activateSignal(t)}getSignalInput(t){return this.signalInputs.find(e=>e.name===t)}getSignalOutput(t){return this.signalOutputs.find(e=>e.name===t)}serialize(t={}){super.serialize(t),t.signalInputs=[],t.signalOutputs=[];for(const e of this.signalInputs){const o={};e.serialize(o),t.signalInputs.push(o)}for(const e of this.signalOutputs){const o={};e.serialize(o),t.signalOutputs.push(o)}}deserialize(t){for(let e=0;e{this.sceneReadyTriggered||(this.onEventTriggeredObservable.notifyObservers({type:"SceneReady"}),this.sceneReadyTriggered=!0)}),this._sceneDisposeObserver=this._scene.onDisposeObservable.add(()=>{this.onEventTriggeredObservable.notifyObservers({type:"SceneDispose"})}),this._sceneOnBeforeRenderObserver=this._scene.onBeforeRenderObservable.add(()=>{const t=this._scene.getEngine().getDeltaTime()/1e3;this.onEventTriggeredObservable.notifyObservers({type:"SceneBeforeRender",payload:{timeSinceStart:this._startingTime,deltaTime:t}}),this._startingTime+=t}),this._meshPickedObserver=this._scene.onPointerObservable.add(t=>{this.onEventTriggeredObservable.notifyObservers({type:"MeshPick",payload:t})},rt.POINTERPICK),this._meshUnderPointerObserver=this._scene.onMeshUnderPointerUpdatedObservable.add(t=>{const e=t.pointerId,o=t.mesh,n=this._pointerUnderMeshState[e];!n&&o?this.onEventTriggeredObservable.notifyObservers({type:"PointerOver",payload:{pointerId:e,mesh:o}}):n&&!o?this.onEventTriggeredObservable.notifyObservers({type:"PointerOut",payload:{pointerId:e,mesh:n}}):n&&o&&n!==o&&(this.onEventTriggeredObservable.notifyObservers({type:"PointerOut",payload:{pointerId:e,mesh:n,over:o}}),this.onEventTriggeredObservable.notifyObservers({type:"PointerOver",payload:{pointerId:e,mesh:o,out:n}})),this._pointerUnderMeshState[e]=o},rt.POINTERMOVE)}dispose(){var t,e,o,n,s;(t=this._sceneDisposeObserver)==null||t.remove(),(e=this._sceneReadyObserver)==null||e.remove(),(o=this._sceneOnBeforeRenderObserver)==null||o.remove(),(n=this._meshPickedObserver)==null||n.remove(),(s=this._meshUnderPointerObserver)==null||s.remove(),this.onEventTriggeredObservable.clear()}}function dt(a,t){return!!(a.parent&&(a.parent===t||dt(a.parent,t)))}function de(a){if(a.getClassName)return a.getClassName()}function fe(a,t){return a===t&&(a==="Vector2"||a==="Vector3"||a==="Vector4"||a==="Quaternion")}function ye(a,t){return a===t&&(a==="Matrix"||a==="Matrix2D"||a==="Matrix3D")}function ge(a,t){return a==="FlowGraphInteger"&&t==="FlowGraphInteger"}function me(a,t){const e=typeof a=="number"||typeof(a==null?void 0:a.value)=="number";return e&&!t?!isNaN(Wt(a)):e}function Wt(a){return typeof a=="number"?a:a.value}var lt;(function(a){a[a.Stopped=0]="Stopped",a[a.Started=1]="Started"})(lt||(lt={}));class Ut{get state(){return this._state}set state(t){this._state=t,this.onStateChangedObservable.notifyObservers(t)}constructor(t){this.onStateChangedObservable=new U,this._eventBlocks={SceneReady:[],SceneDispose:[],SceneBeforeRender:[],MeshPick:[],PointerDown:[],PointerUp:[],PointerMove:[],PointerOver:[],PointerOut:[],SceneAfterRender:[],NoTrigger:[]},this._executionContexts=[],this._state=0,this._scene=t.scene,this._sceneEventCoordinator=new Kt(this._scene),this._coordinator=t.coordinator,this._eventObserver=this._sceneEventCoordinator.onEventTriggeredObservable.add(e=>{for(const o of this._executionContexts){const n=this._getContextualOrder(e.type,o);for(const s of n)if(!s._executeEvent(o,e.payload))break}switch(e.type){case"SceneReady":this._sceneEventCoordinator.sceneReadyTriggered=!0;break;case"SceneBeforeRender":for(const o of this._executionContexts)o._notifyOnTick(e.payload);break;case"SceneDispose":this.dispose();break}})}createContext(){const t=new _t({scene:this._scene,coordinator:this._coordinator});return this._executionContexts.push(t),t}getContext(t){return this._executionContexts[t]}addEventBlock(t){if((t.type==="PointerOver"||t.type==="PointerOut")&&(this._scene.constantlyUpdateMeshUnderPointer=!0),t.type!=="NoTrigger"&&this._eventBlocks[t.type].push(t),this.state===1)for(const e of this._executionContexts)t._startPendingTasks(e);else this.onStateChangedObservable.addOnce(e=>{if(e===1)for(const o of this._executionContexts)t._startPendingTasks(o)})}start(){this.state!==1&&(this._executionContexts.length===0&&this.createContext(),this.onStateChangedObservable.add(t=>{t===1&&(this._startPendingEvents(),this._scene.isReady(!0)&&this._sceneEventCoordinator.onEventTriggeredObservable.notifyObservers({type:"SceneReady"}))}),this.state=1)}_startPendingEvents(){for(const t of this._executionContexts)for(const e in this._eventBlocks){const o=this._getContextualOrder(e,t);for(const n of o)n._startPendingTasks(t)}}_getContextualOrder(t,e){const o=this._eventBlocks[t].sort((n,s)=>s.initPriority-n.initPriority);if(t==="MeshPick"){const n=[];for(const s of o){const i=s.asset.getValue(e);let c=0;for(;c0;){const n=e.pop();t(n);for(const s of n.dataInputs)for(const i of s._connectedPoint)o.has(i._ownerBlock.uniqueId)||(e.push(i._ownerBlock),o.add(i._ownerBlock.uniqueId));if(n instanceof J)for(const s of n.signalOutputs)for(const i of s._connectedPoint)o.has(i._ownerBlock.uniqueId)||(e.push(i._ownerBlock),o.add(i._ownerBlock.uniqueId))}}serialize(t={},e){t.allBlocks=[],this.visitAllBlocks(o=>{const n={};o.serialize(n),t.allBlocks.push(n)}),t.executionContexts=[];for(const o of this._executionContexts){const n={};o.serialize(n,e),t.executionContexts.push(n)}}}class E{constructor(t){this.config=t,this.dispatchEventsSynchronously=!0,this._flowGraphs=[],this._customEventsMap=new Map,this._eventExecutionCounter=new Map,this._executeOnNextFrame=[],this._eventUniqueId=0,this._disposeObserver=this.config.scene.onDisposeObservable.add(()=>{this.dispose()}),this._onBeforeRenderObserver=this.config.scene.onBeforeRenderObservable.add(()=>{this._eventExecutionCounter.clear();const o=this._executeOnNextFrame.slice(0);if(o.length)for(const n of o){this.notifyCustomEvent(n.id,n.data,!1);const s=this._executeOnNextFrame.findIndex(i=>i.uniqueId===n.uniqueId);s!==-1&&this._executeOnNextFrame.splice(s,1)}});let e=E.SceneCoordinators.get(this.config.scene);e||(e=[],E.SceneCoordinators.set(this.config.scene,e)),e.push(this)}createGraph(){const t=new Ut({scene:this.config.scene,coordinator:this});return this._flowGraphs.push(t),t}removeGraph(t){const e=this._flowGraphs.indexOf(t);e!==-1&&(t.dispose(),this._flowGraphs.splice(e,1))}start(){for(const t of this._flowGraphs)t.start()}dispose(){var o,n;for(const s of this._flowGraphs)s.dispose();this._flowGraphs.length=0,(o=this._disposeObserver)==null||o.remove(),(n=this._onBeforeRenderObserver)==null||n.remove();const t=E.SceneCoordinators.get(this.config.scene)??[],e=t.indexOf(this);e!==-1&&t.splice(e,1)}serialize(t,e){t._flowGraphs=[];for(const o of this._flowGraphs){const n={};o.serialize(n,e),t._flowGraphs.push(n)}t.dispatchEventsSynchronously=this.dispatchEventsSynchronously}get flowGraphs(){return this._flowGraphs}getCustomEventObservable(t){let e=this._customEventsMap.get(t);return e||(e=new U,this._customEventsMap.set(t,e)),e}notifyCustomEvent(t,e,o=!this.dispatchEventsSynchronously){if(o){this._executeOnNextFrame.push({id:t,data:e,uniqueId:this._eventUniqueId++});return}if(this._eventExecutionCounter.has(t)){const s=this._eventExecutionCounter.get(t);if(this._eventExecutionCounter.set(t,s+1),s>=E.MaxEventTypeExecutionPerFrame){s===E.MaxEventTypeExecutionPerFrame&&w.Warn(`FlowGraphCoordinator: Too many executions of event "${t}".`);return}}else this._eventExecutionCounter.set(t,1);const n=this._customEventsMap.get(t);n&&n.notifyObservers(e)}}E.MaxEventsPerType=30;E.MaxEventTypeExecutionPerFrame=30;E.SceneCoordinators=new Map;const j={};function Qt(a,t,e){j[`${a}/${t}`]=e}function Ht(a){switch(a){case"FlowGraphPlayAnimationBlock":return async()=>(await r(async()=>{const{FlowGraphPlayAnimationBlock:t}=await import("./flowGraphPlayAnimationBlock-IxAufpML.js");return{FlowGraphPlayAnimationBlock:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]))).FlowGraphPlayAnimationBlock;case"FlowGraphStopAnimationBlock":return async()=>(await r(async()=>{const{FlowGraphStopAnimationBlock:t}=await import("./flowGraphStopAnimationBlock-C6yv0Yrt.js");return{FlowGraphStopAnimationBlock:t}},__vite__mapDeps([32,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphStopAnimationBlock;case"FlowGraphPauseAnimationBlock":return async()=>(await r(async()=>{const{FlowGraphPauseAnimationBlock:t}=await import("./flowGraphPauseAnimationBlock-DS1QsMRD.js");return{FlowGraphPauseAnimationBlock:t}},__vite__mapDeps([33,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphPauseAnimationBlock;case"FlowGraphInterpolationBlock":return async()=>(await r(async()=>{const{FlowGraphInterpolationBlock:t}=await import("./flowGraphInterpolationBlock-LzjPz1YF.js");return{FlowGraphInterpolationBlock:t}},__vite__mapDeps([34,1,2,3,4,5,7,8,9,10,23,24,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,29,30,31]))).FlowGraphInterpolationBlock;case"FlowGraphSceneReadyEventBlock":return async()=>(await r(async()=>{const{FlowGraphSceneReadyEventBlock:t}=await import("./flowGraphSceneReadyEventBlock-BBQA6KFX.js");return{FlowGraphSceneReadyEventBlock:t}},__vite__mapDeps([35,4,23,24,3,2,9,5,1,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSceneReadyEventBlock;case"FlowGraphSceneTickEventBlock":return async()=>(await r(async()=>{const{FlowGraphSceneTickEventBlock:t}=await import("./flowGraphSceneTickEventBlock-DE7kYgzT.js");return{FlowGraphSceneTickEventBlock:t}},__vite__mapDeps([36,4,1,2,3,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSceneTickEventBlock;case"FlowGraphSendCustomEventBlock":return async()=>(await r(async()=>{const{FlowGraphSendCustomEventBlock:t}=await import("./flowGraphSendCustomEventBlock-DodR1_6V.js");return{FlowGraphSendCustomEventBlock:t}},__vite__mapDeps([37,4,23,24,3,2,9,5,1,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSendCustomEventBlock;case"FlowGraphReceiveCustomEventBlock":return async()=>(await r(async()=>{const{FlowGraphReceiveCustomEventBlock:t}=await import("./flowGraphReceiveCustomEventBlock-CmJs3tKt.js");return{FlowGraphReceiveCustomEventBlock:t}},__vite__mapDeps([38,13,3,4,9,2,5,23,24,1,21,25,26,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphReceiveCustomEventBlock;case"FlowGraphMeshPickEventBlock":return async()=>(await r(async()=>{const{FlowGraphMeshPickEventBlock:t}=await import("./flowGraphMeshPickEventBlock-D7y8o9af.js");return{FlowGraphMeshPickEventBlock:t}},__vite__mapDeps([39,21,3,4,1,2,5,23,24,9,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMeshPickEventBlock;case"FlowGraphEBlock":return async()=>(await r(async()=>{const{FlowGraphEBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphEBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphEBlock;case"FlowGraphPIBlock":return async()=>(await r(async()=>{const{FlowGraphPiBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphPiBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphPiBlock;case"FlowGraphInfBlock":return async()=>(await r(async()=>{const{FlowGraphInfBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphInfBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphInfBlock;case"FlowGraphNaNBlock":return async()=>(await r(async()=>{const{FlowGraphNaNBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphNaNBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphNaNBlock;case"FlowGraphRandomBlock":return async()=>(await r(async()=>{const{FlowGraphRandomBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphRandomBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphRandomBlock;case"FlowGraphAddBlock":return async()=>(await r(async()=>{const{FlowGraphAddBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAddBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAddBlock;case"FlowGraphSubtractBlock":return async()=>(await r(async()=>{const{FlowGraphSubtractBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphSubtractBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSubtractBlock;case"FlowGraphMultiplyBlock":return async()=>(await r(async()=>{const{FlowGraphMultiplyBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphMultiplyBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMultiplyBlock;case"FlowGraphDivideBlock":return async()=>(await r(async()=>{const{FlowGraphDivideBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphDivideBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphDivideBlock;case"FlowGraphAbsBlock":return async()=>(await r(async()=>{const{FlowGraphAbsBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAbsBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAbsBlock;case"FlowGraphSignBlock":return async()=>(await r(async()=>{const{FlowGraphSignBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphSignBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSignBlock;case"FlowGraphTruncBlock":return async()=>(await r(async()=>{const{FlowGraphTruncBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphTruncBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTruncBlock;case"FlowGraphFloorBlock":return async()=>(await r(async()=>{const{FlowGraphFloorBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphFloorBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphFloorBlock;case"FlowGraphCeilBlock":return async()=>(await r(async()=>{const{FlowGraphCeilBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphCeilBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCeilBlock;case"FlowGraphRoundBlock":return async()=>(await r(async()=>{const{FlowGraphRoundBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphRoundBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphRoundBlock;case"FlowGraphFractBlock":return async()=>(await r(async()=>{const{FlowGraphFractionBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphFractionBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphFractionBlock;case"FlowGraphNegationBlock":return async()=>(await r(async()=>{const{FlowGraphNegationBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphNegationBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphNegationBlock;case"FlowGraphModuloBlock":return async()=>(await r(async()=>{const{FlowGraphModuloBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphModuloBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphModuloBlock;case"FlowGraphMinBlock":return async()=>(await r(async()=>{const{FlowGraphMinBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphMinBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMinBlock;case"FlowGraphMaxBlock":return async()=>(await r(async()=>{const{FlowGraphMaxBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphMaxBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMaxBlock;case"FlowGraphClampBlock":return async()=>(await r(async()=>{const{FlowGraphClampBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphClampBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphClampBlock;case"FlowGraphSaturateBlock":return async()=>(await r(async()=>{const{FlowGraphSaturateBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphSaturateBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSaturateBlock;case"FlowGraphMathInterpolationBlock":return async()=>(await r(async()=>{const{FlowGraphMathInterpolationBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphMathInterpolationBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMathInterpolationBlock;case"FlowGraphEqualityBlock":return async()=>(await r(async()=>{const{FlowGraphEqualityBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphEqualityBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphEqualityBlock;case"FlowGraphLessThanBlock":return async()=>(await r(async()=>{const{FlowGraphLessThanBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphLessThanBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphLessThanBlock;case"FlowGraphLessThanOrEqualBlock":return async()=>(await r(async()=>{const{FlowGraphLessThanOrEqualBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphLessThanOrEqualBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphLessThanOrEqualBlock;case"FlowGraphGreaterThanBlock":return async()=>(await r(async()=>{const{FlowGraphGreaterThanBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphGreaterThanBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphGreaterThanBlock;case"FlowGraphGreaterThanOrEqualBlock":return async()=>(await r(async()=>{const{FlowGraphGreaterThanOrEqualBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphGreaterThanOrEqualBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphGreaterThanOrEqualBlock;case"FlowGraphIsNaNBlock":return async()=>(await r(async()=>{const{FlowGraphIsNanBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphIsNanBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphIsNanBlock;case"FlowGraphIsInfBlock":return async()=>(await r(async()=>{const{FlowGraphIsInfinityBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphIsInfinityBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphIsInfinityBlock;case"FlowGraphDegToRadBlock":return async()=>(await r(async()=>{const{FlowGraphDegToRadBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphDegToRadBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphDegToRadBlock;case"FlowGraphRadToDegBlock":return async()=>(await r(async()=>{const{FlowGraphRadToDegBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphRadToDegBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphRadToDegBlock;case"FlowGraphSinBlock":return async()=>(await r(async()=>{const{FlowGraphSinBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphSinBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSinBlock;case"FlowGraphCosBlock":return async()=>(await r(async()=>{const{FlowGraphCosBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphCosBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCosBlock;case"FlowGraphTanBlock":return async()=>(await r(async()=>{const{FlowGraphTanBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphTanBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTanBlock;case"FlowGraphASinBlock":return async()=>(await r(async()=>{const{FlowGraphAsinBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAsinBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAsinBlock;case"FlowGraphACosBlock":return async()=>(await r(async()=>{const{FlowGraphAcosBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAcosBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAcosBlock;case"FlowGraphATanBlock":return async()=>(await r(async()=>{const{FlowGraphAtanBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAtanBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAtanBlock;case"FlowGraphATan2Block":return async()=>(await r(async()=>{const{FlowGraphAtan2Block:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAtan2Block:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAtan2Block;case"FlowGraphSinhBlock":return async()=>(await r(async()=>{const{FlowGraphSinhBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphSinhBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSinhBlock;case"FlowGraphCoshBlock":return async()=>(await r(async()=>{const{FlowGraphCoshBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphCoshBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCoshBlock;case"FlowGraphTanhBlock":return async()=>(await r(async()=>{const{FlowGraphTanhBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphTanhBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTanhBlock;case"FlowGraphASinhBlock":return async()=>(await r(async()=>{const{FlowGraphAsinhBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAsinhBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAsinhBlock;case"FlowGraphACoshBlock":return async()=>(await r(async()=>{const{FlowGraphAcoshBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAcoshBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAcoshBlock;case"FlowGraphATanhBlock":return async()=>(await r(async()=>{const{FlowGraphAtanhBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphAtanhBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAtanhBlock;case"FlowGraphExponentialBlock":return async()=>(await r(async()=>{const{FlowGraphExpBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphExpBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphExpBlock;case"FlowGraphLogBlock":return async()=>(await r(async()=>{const{FlowGraphLogBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphLogBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphLogBlock;case"FlowGraphLog2Block":return async()=>(await r(async()=>{const{FlowGraphLog2Block:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphLog2Block:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphLog2Block;case"FlowGraphLog10Block":return async()=>(await r(async()=>{const{FlowGraphLog10Block:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphLog10Block:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphLog10Block;case"FlowGraphSquareRootBlock":return async()=>(await r(async()=>{const{FlowGraphSquareRootBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphSquareRootBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSquareRootBlock;case"FlowGraphPowerBlock":return async()=>(await r(async()=>{const{FlowGraphPowerBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphPowerBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphPowerBlock;case"FlowGraphCubeRootBlock":return async()=>(await r(async()=>{const{FlowGraphCubeRootBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphCubeRootBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCubeRootBlock;case"FlowGraphBitwiseAndBlock":return async()=>(await r(async()=>{const{FlowGraphBitwiseAndBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphBitwiseAndBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBitwiseAndBlock;case"FlowGraphBitwiseOrBlock":return async()=>(await r(async()=>{const{FlowGraphBitwiseOrBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphBitwiseOrBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBitwiseOrBlock;case"FlowGraphBitwiseNotBlock":return async()=>(await r(async()=>{const{FlowGraphBitwiseNotBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphBitwiseNotBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBitwiseNotBlock;case"FlowGraphBitwiseXorBlock":return async()=>(await r(async()=>{const{FlowGraphBitwiseXorBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphBitwiseXorBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBitwiseXorBlock;case"FlowGraphBitwiseLeftShiftBlock":return async()=>(await r(async()=>{const{FlowGraphBitwiseLeftShiftBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphBitwiseLeftShiftBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBitwiseLeftShiftBlock;case"FlowGraphBitwiseRightShiftBlock":return async()=>(await r(async()=>{const{FlowGraphBitwiseRightShiftBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphBitwiseRightShiftBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBitwiseRightShiftBlock;case"FlowGraphLengthBlock":return async()=>(await r(async()=>{const{FlowGraphLengthBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphLengthBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphLengthBlock;case"FlowGraphNormalizeBlock":return async()=>(await r(async()=>{const{FlowGraphNormalizeBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphNormalizeBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphNormalizeBlock;case"FlowGraphDotBlock":return async()=>(await r(async()=>{const{FlowGraphDotBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphDotBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphDotBlock;case"FlowGraphCrossBlock":return async()=>(await r(async()=>{const{FlowGraphCrossBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphCrossBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCrossBlock;case"FlowGraphRotate2DBlock":return async()=>(await r(async()=>{const{FlowGraphRotate2DBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphRotate2DBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphRotate2DBlock;case"FlowGraphRotate3DBlock":return async()=>(await r(async()=>{const{FlowGraphRotate3DBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphRotate3DBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphRotate3DBlock;case"FlowGraphTransposeBlock":return async()=>(await r(async()=>{const{FlowGraphTransposeBlock:t}=await import("./flowGraphMatrixMathBlocks-CFbuW_DO.js");return{FlowGraphTransposeBlock:t}},__vite__mapDeps([45,1,2,3,4,5,43,42,41,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTransposeBlock;case"FlowGraphDeterminantBlock":return async()=>(await r(async()=>{const{FlowGraphDeterminantBlock:t}=await import("./flowGraphMatrixMathBlocks-CFbuW_DO.js");return{FlowGraphDeterminantBlock:t}},__vite__mapDeps([45,1,2,3,4,5,43,42,41,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphDeterminantBlock;case"FlowGraphInvertMatrixBlock":return async()=>(await r(async()=>{const{FlowGraphInvertMatrixBlock:t}=await import("./flowGraphMatrixMathBlocks-CFbuW_DO.js");return{FlowGraphInvertMatrixBlock:t}},__vite__mapDeps([45,1,2,3,4,5,43,42,41,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphInvertMatrixBlock;case"FlowGraphMatrixMultiplicationBlock":return async()=>(await r(async()=>{const{FlowGraphMatrixMultiplicationBlock:t}=await import("./flowGraphMatrixMathBlocks-CFbuW_DO.js");return{FlowGraphMatrixMultiplicationBlock:t}},__vite__mapDeps([45,1,2,3,4,5,43,42,41,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMatrixMultiplicationBlock;case"FlowGraphBranchBlock":return async()=>(await r(async()=>{const{FlowGraphBranchBlock:t}=await import("./flowGraphBranchBlock-cI3FviG0.js");return{FlowGraphBranchBlock:t}},__vite__mapDeps([46,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBranchBlock;case"FlowGraphSetDelayBlock":return async()=>(await r(async()=>{const{FlowGraphSetDelayBlock:t}=await import("./flowGraphSetDelayBlock-Bgyg_b1g.js");return{FlowGraphSetDelayBlock:t}},__vite__mapDeps([47,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSetDelayBlock;case"FlowGraphCancelDelayBlock":return async()=>(await r(async()=>{const{FlowGraphCancelDelayBlock:t}=await import("./flowGraphCancelDelayBlock-BERi7-w9.js");return{FlowGraphCancelDelayBlock:t}},__vite__mapDeps([48,4,1,2,3,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCancelDelayBlock;case"FlowGraphCallCounterBlock":return async()=>(await r(async()=>{const{FlowGraphCallCounterBlock:t}=await import("./flowGraphCounterBlock-1E0aom5v.js");return{FlowGraphCallCounterBlock:t}},__vite__mapDeps([49,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCallCounterBlock;case"FlowGraphDebounceBlock":return async()=>(await r(async()=>{const{FlowGraphDebounceBlock:t}=await import("./flowGraphDebounceBlock-D2U8Zhqs.js");return{FlowGraphDebounceBlock:t}},__vite__mapDeps([50,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphDebounceBlock;case"FlowGraphThrottleBlock":return async()=>(await r(async()=>{const{FlowGraphThrottleBlock:t}=await import("./flowGraphThrottleBlock-BHy5Gn1x.js");return{FlowGraphThrottleBlock:t}},__vite__mapDeps([51,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphThrottleBlock;case"FlowGraphDoNBlock":return async()=>(await r(async()=>{const{FlowGraphDoNBlock:t}=await import("./flowGraphDoNBlock-Dag8NJax.js");return{FlowGraphDoNBlock:t}},__vite__mapDeps([52,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphDoNBlock;case"FlowGraphFlipFlopBlock":return async()=>(await r(async()=>{const{FlowGraphFlipFlopBlock:t}=await import("./flowGraphFlipFlopBlock-CJsKF7lA.js");return{FlowGraphFlipFlopBlock:t}},__vite__mapDeps([53,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphFlipFlopBlock;case"FlowGraphForLoopBlock":return async()=>(await r(async()=>{const{FlowGraphForLoopBlock:t}=await import("./flowGraphForLoopBlock-C5eiBMG4.js");return{FlowGraphForLoopBlock:t}},__vite__mapDeps([54,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphForLoopBlock;case"FlowGraphMultiGateBlock":return async()=>(await r(async()=>{const{FlowGraphMultiGateBlock:t}=await import("./flowGraphMultiGateBlock-DZbQv3Yl.js");return{FlowGraphMultiGateBlock:t}},__vite__mapDeps([55,4,1,2,3,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMultiGateBlock;case"FlowGraphSequenceBlock":return async()=>(await r(async()=>{const{FlowGraphSequenceBlock:t}=await import("./flowGraphSequenceBlock-BSG-evmr.js");return{FlowGraphSequenceBlock:t}},__vite__mapDeps([56,4,23,24,3,2,9,5,1,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSequenceBlock;case"FlowGraphSwitchBlock":return async()=>(await r(async()=>{const{FlowGraphSwitchBlock:t}=await import("./flowGraphSwitchBlock-BcftaIpv.js");return{FlowGraphSwitchBlock:t}},__vite__mapDeps([57,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSwitchBlock;case"FlowGraphWaitAllBlock":return async()=>(await r(async()=>{const{FlowGraphWaitAllBlock:t}=await import("./flowGraphWaitAllBlock-CmcnHiaB.js");return{FlowGraphWaitAllBlock:t}},__vite__mapDeps([58,4,1,2,3,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphWaitAllBlock;case"FlowGraphWhileLoopBlock":return async()=>(await r(async()=>{const{FlowGraphWhileLoopBlock:t}=await import("./flowGraphWhileLoopBlock-bYMZCJjX.js");return{FlowGraphWhileLoopBlock:t}},__vite__mapDeps([59,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphWhileLoopBlock;case"FlowGraphConsoleLogBlock":return async()=>(await r(async()=>{const{FlowGraphConsoleLogBlock:t}=await import("./flowGraphConsoleLogBlock-BXD7zlBU.js");return{FlowGraphConsoleLogBlock:t}},__vite__mapDeps([60,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphConsoleLogBlock;case"FlowGraphConditionalBlock":return async()=>(await r(async()=>{const{FlowGraphConditionalDataBlock:t}=await import("./flowGraphConditionalDataBlock-BV-fMmq1.js");return{FlowGraphConditionalDataBlock:t}},__vite__mapDeps([61,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphConditionalDataBlock;case"FlowGraphConstantBlock":return async()=>(await r(async()=>{const{FlowGraphConstantBlock:t}=await import("./flowGraphConstantBlock-B9jqzc_R.js");return{FlowGraphConstantBlock:t}},__vite__mapDeps([62,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphConstantBlock;case"FlowGraphTransformCoordinatesSystemBlock":return async()=>(await r(async()=>{const{FlowGraphTransformCoordinatesSystemBlock:t}=await import("./flowGraphTransformCoordinatesSystemBlock-B8KAtU1d.js");return{FlowGraphTransformCoordinatesSystemBlock:t}},__vite__mapDeps([63,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTransformCoordinatesSystemBlock;case"FlowGraphGetAssetBlock":return async()=>(await r(async()=>{const{FlowGraphGetAssetBlock:t}=await import("./flowGraphGetAssetBlock-A_0ets8A.js");return{FlowGraphGetAssetBlock:t}},__vite__mapDeps([64,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphGetAssetBlock;case"FlowGraphGetPropertyBlock":return async()=>(await r(async()=>{const{FlowGraphGetPropertyBlock:t}=await import("./flowGraphGetPropertyBlock-D65vIAy4.js");return{FlowGraphGetPropertyBlock:t}},__vite__mapDeps([65,1,2,3,4,5,42,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphGetPropertyBlock;case"FlowGraphSetPropertyBlock":return async()=>(await r(async()=>{const{FlowGraphSetPropertyBlock:t}=await import("./flowGraphSetPropertyBlock-BDRXsUw3.js");return{FlowGraphSetPropertyBlock:t}},__vite__mapDeps([66,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSetPropertyBlock;case"FlowGraphGetVariableBlock":return async()=>(await r(async()=>{const{FlowGraphGetVariableBlock:t}=await import("./flowGraphGetVariableBlock-5ICzFn30.js");return{FlowGraphGetVariableBlock:t}},__vite__mapDeps([67,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphGetVariableBlock;case"FlowGraphSetVariableBlock":return async()=>(await r(async()=>{const{FlowGraphSetVariableBlock:t}=await import("./flowGraphSetVariableBlock-RoDLyFxh.js");return{FlowGraphSetVariableBlock:t}},__vite__mapDeps([68,4,1,2,3,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphSetVariableBlock;case"FlowGraphJsonPointerParserBlock":return async()=>(await r(async()=>{const{FlowGraphJsonPointerParserBlock:t}=await import("./flowGraphJsonPointerParserBlock-Dx5LKGL1.js");return{FlowGraphJsonPointerParserBlock:t}},__vite__mapDeps([69,1,2,3,4,5,42,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphJsonPointerParserBlock;case"FlowGraphLeadingZerosBlock":return async()=>(await r(async()=>{const{FlowGraphLeadingZerosBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphLeadingZerosBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphLeadingZerosBlock;case"FlowGraphTrailingZerosBlock":return async()=>(await r(async()=>{const{FlowGraphTrailingZerosBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphTrailingZerosBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTrailingZerosBlock;case"FlowGraphOneBitsCounterBlock":return async()=>(await r(async()=>{const{FlowGraphOneBitsCounterBlock:t}=await import("./flowGraphMathBlocks-nX-o_pDE.js");return{FlowGraphOneBitsCounterBlock:t}},__vite__mapDeps([40,4,1,2,3,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphOneBitsCounterBlock;case"FlowGraphCombineVector2Block":return async()=>(await r(async()=>{const{FlowGraphCombineVector2Block:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphCombineVector2Block:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCombineVector2Block;case"FlowGraphCombineVector3Block":return async()=>(await r(async()=>{const{FlowGraphCombineVector3Block:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphCombineVector3Block:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCombineVector3Block;case"FlowGraphCombineVector4Block":return async()=>(await r(async()=>{const{FlowGraphCombineVector4Block:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphCombineVector4Block:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCombineVector4Block;case"FlowGraphCombineMatrixBlock":return async()=>(await r(async()=>{const{FlowGraphCombineMatrixBlock:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphCombineMatrixBlock:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCombineMatrixBlock;case"FlowGraphExtractVector2Block":return async()=>(await r(async()=>{const{FlowGraphExtractVector2Block:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphExtractVector2Block:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphExtractVector2Block;case"FlowGraphExtractVector3Block":return async()=>(await r(async()=>{const{FlowGraphExtractVector3Block:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphExtractVector3Block:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphExtractVector3Block;case"FlowGraphExtractVector4Block":return async()=>(await r(async()=>{const{FlowGraphExtractVector4Block:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphExtractVector4Block:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphExtractVector4Block;case"FlowGraphExtractMatrixBlock":return async()=>(await r(async()=>{const{FlowGraphExtractMatrixBlock:t}=await import("./flowGraphMathCombineExtractBlocks-uJuoGCj_.js");return{FlowGraphExtractMatrixBlock:t}},__vite__mapDeps([70,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphExtractMatrixBlock;case"FlowGraphTransformVectorBlock":return async()=>(await r(async()=>{const{FlowGraphTransformBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphTransformBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTransformBlock;case"FlowGraphTransformCoordinatesBlock":return async()=>(await r(async()=>{const{FlowGraphTransformCoordinatesBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphTransformCoordinatesBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphTransformCoordinatesBlock;case"FlowGraphConjugateBlock":return async()=>(await r(async()=>{const{FlowGraphConjugateBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphConjugateBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphConjugateBlock;case"FlowGraphAngleBetweenBlock":return async()=>(await r(async()=>{const{FlowGraphAngleBetweenBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphAngleBetweenBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAngleBetweenBlock;case"FlowGraphQuaternionFromAxisAngleBlock":return async()=>(await r(async()=>{const{FlowGraphQuaternionFromAxisAngleBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphQuaternionFromAxisAngleBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphQuaternionFromAxisAngleBlock;case"FlowGraphAxisAngleFromQuaternionBlock":return async()=>(await r(async()=>{const{FlowGraphAxisAngleFromQuaternionBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphAxisAngleFromQuaternionBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphAxisAngleFromQuaternionBlock;case"FlowGraphQuaternionFromDirectionsBlock":return async()=>(await r(async()=>{const{FlowGraphQuaternionFromDirectionsBlock:t}=await import("./flowGraphVectorMathBlocks-DlHtO-kx.js");return{FlowGraphQuaternionFromDirectionsBlock:t}},__vite__mapDeps([44,1,2,3,4,5,41,42,43,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphQuaternionFromDirectionsBlock;case"FlowGraphMatrixDecompose":return async()=>(await r(async()=>{const{FlowGraphMatrixDecomposeBlock:t}=await import("./flowGraphMatrixMathBlocks-CFbuW_DO.js");return{FlowGraphMatrixDecomposeBlock:t}},__vite__mapDeps([45,1,2,3,4,5,43,42,41,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMatrixDecomposeBlock;case"FlowGraphMatrixCompose":return async()=>(await r(async()=>{const{FlowGraphMatrixComposeBlock:t}=await import("./flowGraphMatrixMathBlocks-CFbuW_DO.js");return{FlowGraphMatrixComposeBlock:t}},__vite__mapDeps([45,1,2,3,4,5,43,42,41,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphMatrixComposeBlock;case"FlowGraphBooleanToFloat":return async()=>(await r(async()=>{const{FlowGraphBooleanToFloat:t}=await import("./flowGraphTypeToTypeBlocks-NEKrVmq3.js");return{FlowGraphBooleanToFloat:t}},__vite__mapDeps([71,43,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBooleanToFloat;case"FlowGraphBooleanToInt":return async()=>(await r(async()=>{const{FlowGraphBooleanToInt:t}=await import("./flowGraphTypeToTypeBlocks-NEKrVmq3.js");return{FlowGraphBooleanToInt:t}},__vite__mapDeps([71,43,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBooleanToInt;case"FlowGraphFloatToBoolean":return async()=>(await r(async()=>{const{FlowGraphFloatToBoolean:t}=await import("./flowGraphTypeToTypeBlocks-NEKrVmq3.js");return{FlowGraphFloatToBoolean:t}},__vite__mapDeps([71,43,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphFloatToBoolean;case"FlowGraphIntToBoolean":return async()=>(await r(async()=>{const{FlowGraphIntToBoolean:t}=await import("./flowGraphTypeToTypeBlocks-NEKrVmq3.js");return{FlowGraphIntToBoolean:t}},__vite__mapDeps([71,43,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphIntToBoolean;case"FlowGraphIntToFloat":return async()=>(await r(async()=>{const{FlowGraphIntToFloat:t}=await import("./flowGraphTypeToTypeBlocks-NEKrVmq3.js");return{FlowGraphIntToFloat:t}},__vite__mapDeps([71,43,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphIntToFloat;case"FlowGraphFloatToInt":return async()=>(await r(async()=>{const{FlowGraphFloatToInt:t}=await import("./flowGraphTypeToTypeBlocks-NEKrVmq3.js");return{FlowGraphFloatToInt:t}},__vite__mapDeps([71,43,42,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphFloatToInt;case"FlowGraphEasingBlock":return async()=>(await r(async()=>{const{FlowGraphEasingBlock:t}=await import("./flowGraphEasingBlock-Bw9cXxwa.js");return{FlowGraphEasingBlock:t}},__vite__mapDeps([72,73,74,4,3,1,2,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphEasingBlock;case"FlowGraphBezierCurveEasing":return async()=>(await r(async()=>{const{FlowGraphBezierCurveEasingBlock:t}=await import("./flowGraphBezierCurveEasingBlock-CAUlTPkC.js");return{FlowGraphBezierCurveEasingBlock:t}},__vite__mapDeps([75,73,74,4,3,1,2,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphBezierCurveEasingBlock;case"FlowGraphPointerOverEventBlock":return async()=>(await r(async()=>{const{FlowGraphPointerOverEventBlock:t}=await import("./flowGraphPointerOverEventBlock-XGzR6Pd3.js");return{FlowGraphPointerOverEventBlock:t}},__vite__mapDeps([76,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphPointerOverEventBlock;case"FlowGraphPointerOutEventBlock":return async()=>(await r(async()=>{const{FlowGraphPointerOutEventBlock:t}=await import("./flowGraphPointerOutEventBlock-BCA8EB69.js");return{FlowGraphPointerOutEventBlock:t}},__vite__mapDeps([77,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphPointerOutEventBlock;case"FlowGraphContextBlock":return async()=>(await r(async()=>{const{FlowGraphContextBlock:t}=await import("./flowGraphContextBlock-7NUkbbBi.js");return{FlowGraphContextBlock:t}},__vite__mapDeps([78,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphContextBlock;case"FlowGraphArrayIndexBlock":return async()=>(await r(async()=>{const{FlowGraphArrayIndexBlock:t}=await import("./flowGraphArrayIndexBlock-DeixmDWL.js");return{FlowGraphArrayIndexBlock:t}},__vite__mapDeps([79,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphArrayIndexBlock;case"FlowGraphCodeExecutionBlock":return async()=>(await r(async()=>{const{FlowGraphCodeExecutionBlock:t}=await import("./flowGraphCodeExecutionBlock-g8LEvIul.js");return{FlowGraphCodeExecutionBlock:t}},__vite__mapDeps([80,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphCodeExecutionBlock;case"FlowGraphIndexOfBlock":return async()=>(await r(async()=>{const{FlowGraphIndexOfBlock:t}=await import("./flowGraphIndexOfBlock-xIoi6zpW.js");return{FlowGraphIndexOfBlock:t}},__vite__mapDeps([81,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphIndexOfBlock;case"FlowGraphFunctionReference":return async()=>(await r(async()=>{const{FlowGraphFunctionReferenceBlock:t}=await import("./flowGraphFunctionReferenceBlock-BoCOqN2s.js");return{FlowGraphFunctionReferenceBlock:t}},__vite__mapDeps([82,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphFunctionReferenceBlock;case"FlowGraphDataSwitchBlock":return async()=>(await r(async()=>{const{FlowGraphDataSwitchBlock:t}=await import("./flowGraphDataSwitchBlock-B4801DfN.js");return{FlowGraphDataSwitchBlock:t}},__vite__mapDeps([83,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphDataSwitchBlock;default:if(j[a])return j[a];throw new Error(`Unknown block name ${a}`)}}class Jt extends J{constructor(t){super(t),this.out=this._registerSignalOutput("out")}}class Zt extends Jt{constructor(t,e){if(super(t),this._eventsSignalOutputs={},this.done=this._registerSignalOutput("done"),e)for(const o of e)this._eventsSignalOutputs[o]=this._registerSignalOutput(o+"Event")}_executeOnTick(t){}_startPendingTasks(t){t._getExecutionVariable(this,"_initialized",!1)&&(this._cancelPendingTasks(t),this._resetAfterCanceled(t)),this._preparePendingTasks(t),t._addPendingBlock(this),this.out._activateSignal(t),t._setExecutionVariable(this,"_initialized",!0)}_resetAfterCanceled(t){t._deleteExecutionVariable(this,"_initialized"),t._removePendingBlock(this)}}class Xt extends Zt{constructor(){super(...arguments),this.initPriority=0,this.type="NoTrigger"}_execute(t){t._notifyExecuteNode(this),this.done._activateSignal(t)}}function Yt(a,t){for(const e of a)for(const o of e.dataOutputs)if(o.uniqueId===t)return o;throw new Error("Could not find data out connection with unique id "+t)}function zt(a,t){for(const e of a)if(e instanceof J){for(const o of e.signalInputs)if(o.uniqueId===t)return o}throw new Error("Could not find signal in connection with unique id "+t)}async function jt(a,t){const e=await Promise.all(a.allBlocks.map(async o=>await Ht(o.className)()));return te(a,t,e)}function te(a,t,e){const o=t.coordinator.createGraph(),n=[],s=t.valueParseFunction??H;for(let i=0;is.getMeshById(h)),lights:(c=p.lights)==null?void 0:c.map(h=>s.getLightByName(h)),cameras:(l=p.cameras)==null?void 0:l.map(h=>s.getCameraByName(h)),materials:(u=p.materials)==null?void 0:u.map(h=>s.getMaterialById(h)),textures:(m=p.textures)==null?void 0:m.map(h=>s.getTextureByName(h)),animations:(f=p.animations)==null?void 0:f.map(h=>s.animations.find(Q=>Q.name===h)),skeletons:(A=p.skeletons)==null?void 0:A.map(h=>s.getSkeletonByName(h)),particleSystems:(R=p.particleSystems)==null?void 0:R.map(h=>s.getParticleSystemById(h)),animationGroups:(L=p.animationGroups)==null?void 0:L.map(h=>s.getAnimationGroupByName(h)),transformNodes:(S=p.transformNodes)==null?void 0:S.map(h=>s.getTransformNodeById(h)),rootNodes:[],multiMaterials:[],morphTargetManagers:[],geometries:[],actionManagers:[],environmentTexture:null,postProcesses:[],sounds:null,effectLayers:[],layers:[],reflectionProbes:[],lensFlareSystems:[],proceduralTextures:[],getNodes:function(){throw new Error("Function not implemented.")}};o.assetsContext=v}for(const p in a._userVariables){const v=n(p,a._userVariables,o.assetsContext,s);o.userVariables[p]=v}for(const p in a._connectionValues){const v=n(p,a._connectionValues,o.assetsContext,s);o._setConnectionValueByKey(p,v)}return o}function oe(a,t,e){const o={},n=t.valueParseFunction??H;if(a.config)for(const i in a.config)o[i]=n(i,a.config,t.assetsContainer||t.scene,t.scene);if(Nt(a.className)){if(!t.pathConverter)throw new Error("Path converter is required for this block");o.pathConverter=t.pathConverter}const s=new e(o);s.uniqueId=a.uniqueId;for(let i=0;i{var c;const n=(c=t.values)==null?void 0:c[o];if(!n)throw w.Error(["No value found for event key",o]),new Error("Error parsing events");const s=this._types[n.type];if(!s)throw w.Error(["No type found for event value",n]),new Error("Error parsing events");const i=typeof n.value<"u"?this._parseVariable(n):void 0;return{id:o,type:s.flowGraphType,eventData:!0,value:i}})),this._events.push(e)}}_parseNodes(){var t;if(this._interactivityGraph.nodes)for(const e of this._interactivityGraph.nodes){if(typeof e.declaration!="number")throw w.Error(["No declaration found for node",e]),new Error("Error parsing nodes");const o=this._mappings[e.declaration];if(!o)throw w.Error(["No mapping found for node",e]),new Error("Error parsing nodes");if(o.flowGraphMapping.validation){const s=o.flowGraphMapping.validation(e,this._interactivityGraph,this._gltf);if(!s.valid)throw new Error(`Error validating interactivity node ${(t=this._interactivityGraph.declarations)==null?void 0:t[e.declaration].op} - ${s.error}`)}const n=[];for(const s of o.flowGraphMapping.blocks){const i=this._getEmptyBlock(s,o.fullOperationName);this._parseNodeConfiguration(e,i,o.flowGraphMapping,s),n.push(i)}this._nodes.push({blocks:n,fullOperationName:o.fullOperationName})}}_getEmptyBlock(t,e){return{uniqueId:D(),className:t,dataInputs:[],dataOutputs:[],signalInputs:[],signalOutputs:[],config:{},type:e,metadata:{}}}_parseNodeConfiguration(t,e,o,n){var i;const s=t.configuration;if(s)for(const c in s){const l=s[c];if(!l)throw new Error("Error parsing node configuration");const u=(i=o.configuration)==null?void 0:i[c];if(u&&u.toBlock?u.toBlock===n:o.blocks.indexOf(n)===0){let f=u==null?void 0:u.defaultValue;l!=null&&l.value&&(f=l.value),u!=null&&u.isArray||(f.length!==1&&w.Warn(`Invalid non-array value length: ${f.length}`),f=f[0]),u!=null&&u.dataTransformer&&(f=u.dataTransformer(f,this)),f!==void 0&&(e.config[(u==null?void 0:u.name)||c]={value:f})}}}_parseNodeConnections(t){var e,o,n,s,i,c,l,u,m,f,A,R,L,S,p,v,h,Q,et;for(let N=0;NB.className===_.toBlock)||T.blocks[0]).signalOutputs.push(M);const Z=y.node,g=this._nodes[Z];if(!g)throw w.Error(["No node found for input node id",Z]),new Error("Error parsing node connections");const V=at(g.fullOperationName);if(!V)throw w.Error(["No mapping found for input node",g]),new Error("Error parsing node connections");let k=(i=(s=V.inputs)==null?void 0:s.flows)==null?void 0:i[y.socket||"in"],P=!1;if(!k)for(const B in(c=V.inputs)==null?void 0:c.flows)B.startsWith("[")&&B.endsWith("]")&&(P=!0,k=(u=(l=V.inputs)==null?void 0:l.flows)==null?void 0:u[B]);const G=k?P?k.name.replace("$1",y.socket||""):k.name:y.socket||"in",$=k&&k.toBlock&&g.blocks.find(B=>B.className===k.toBlock)||g.blocks[0];let C=$.signalInputs.find(B=>B.name===G);C||(C=this._createNewSocketConnection(G),$.signalInputs.push(C)),C.connectedPointIds.push(M.uniqueId),M.connectedPointIds.push(C.uniqueId)}const nt=I.values||{},mt=Object.keys(nt);for(const d of mt){const y=nt[d];let _=(f=(m=F.flowGraphMapping.inputs)==null?void 0:m.values)==null?void 0:f[d],x=!1;if(!_)for(const g in(A=F.flowGraphMapping.inputs)==null?void 0:A.values)g.startsWith("[")&&g.endsWith("]")&&(x=!0,_=(L=(R=F.flowGraphMapping.inputs)==null?void 0:R.values)==null?void 0:L[g]);const M=_?x?_.name.replace("$1",d):_.name:d,q=this._createNewSocketConnection(M);if((_&&_.toBlock&&T.blocks.find(g=>g.className===_.toBlock)||T.blocks[0]).dataInputs.push(q),y.value!==void 0){const g=this._parseVariable(y,_&&_.dataTransformer);t._connectionValues[q.uniqueId]=g}else if(typeof y.node<"u"){const g=y.node,V=y.socket||"value",k=this._nodes[g];if(!k)throw w.Error(["No node found for output socket reference",y]),new Error("Error parsing node connections");const P=at(k.fullOperationName);if(!P)throw w.Error(["No mapping found for output socket reference",y]),new Error("Error parsing node connections");let G=(p=(S=P.outputs)==null?void 0:S.values)==null?void 0:p[V],$=!1;if(!G)for(const b in(v=P.outputs)==null?void 0:v.values)b.startsWith("[")&&b.endsWith("]")&&($=!0,G=(Q=(h=P.outputs)==null?void 0:h.values)==null?void 0:Q[b]);const C=G?$?G.name.replace("$1",V):G==null?void 0:G.name:V,B=G&&G.toBlock&&k.blocks.find(b=>b.className===G.toBlock)||k.blocks[0];let K=B.dataOutputs.find(b=>b.name===C);K||(K=this._createNewSocketConnection(C,!0),B.dataOutputs.push(K)),q.connectedPointIds.push(K.uniqueId),K.connectedPointIds.push(q.uniqueId)}else throw w.Error(["Invalid value for value connection",y]),new Error("Error parsing node connections")}if(F.flowGraphMapping.interBlockConnectors)for(const d of F.flowGraphMapping.interBlockConnectors){const y=d.input,_=d.output,x=d.isVariable;this._connectFlowGraphNodes(y,_,T.blocks[d.inputBlockIndex],T.blocks[d.outputBlockIndex],x)}if(F.flowGraphMapping.extraProcessor){const d=(et=this._interactivityGraph.declarations)==null?void 0:et[I.declaration];if(!d)throw w.Error(["No declaration found for extra processor",I]),new Error("Error parsing node connections");T.blocks=F.flowGraphMapping.extraProcessor(I,d,F.flowGraphMapping,this,T.blocks,t,this._gltf)}}}_createNewSocketConnection(t,e){return{uniqueId:D(),name:t,_connectionType:e?1:0,connectedPointIds:[]}}_connectFlowGraphNodes(t,e,o,n,s){const i=s?o.dataInputs:o.signalInputs,c=s?n.dataOutputs:n.signalOutputs,l=i.find(m=>m.name===t)||this._createNewSocketConnection(t),u=c.find(m=>m.name===e)||this._createNewSocketConnection(e,!0);i.find(m=>m.name===t)||i.push(l),c.find(m=>m.name===e)||c.push(u),l.connectedPointIds.push(u.uniqueId),u.connectedPointIds.push(l.uniqueId)}getVariableName(t){return"staticVariable_"+t}serializeToFlowGraph(){const t={uniqueId:D(),_userVariables:{},_connectionValues:{}};this._parseNodeConnections(t);for(let o=0;oo.concat(n.blocks),[]),executionContexts:[t]}}}const W="KHR_interactivity";class ft{constructor(t){this._loader=t,this.name=W,this.enabled=this._loader.isExtensionUsed(W),this._pathConverter=Dt(this._loader.gltf),t._skipStartAnimationStep=!0;const e=t.babylonScene;e&&yt(e)}dispose(){this._loader=null,delete this._pathConverter}async onReady(){var s;if(!this._loader.babylonScene||!this._pathConverter)return;const t=this._loader.babylonScene,e=(s=this._loader.gltf.extensions)==null?void 0:s.KHR_interactivity;if(!e)return;const o=new E({scene:t});o.dispatchEventsSynchronously=!1;const n=e.graphs.map(i=>new ae(i,this._loader.gltf,this._loader.parent.targetFps).serializeToFlowGraph());await Promise.all(n.map(async i=>await jt(i,{coordinator:o,pathConverter:this._pathConverter}))),o.start()}}function yt(a){O("/extensions/KHR_interactivity/?/activeCamera/rotation",{get:()=>{if(!a.activeCamera)return new X(NaN,NaN,NaN,NaN);const t=X.FromRotationMatrix(a.activeCamera.getWorldMatrix()).normalize();return a.useRightHandedSystem||(t.w*=-1,t.x*=-1),t},type:"Quaternion",getTarget:()=>a.activeCamera}),O("/extensions/KHR_interactivity/?/activeCamera/position",{get:()=>{if(!a.activeCamera)return new ut(NaN,NaN,NaN);const t=a.activeCamera.getWorldMatrix().getTranslation();return a.useRightHandedSystem||(t.x*=-1),t},type:"Vector3",getTarget:()=>a.activeCamera}),O("/animations/{}/extensions/KHR_interactivity/isPlaying",{get:t=>{var e;return((e=t._babylonAnimationGroup)==null?void 0:e.isPlaying)??!1},type:"boolean",getTarget:t=>t._babylonAnimationGroup}),O("/animations/{}/extensions/KHR_interactivity/minTime",{get:t=>{var e;return(((e=t._babylonAnimationGroup)==null?void 0:e.from)??0)/60},type:"number",getTarget:t=>t._babylonAnimationGroup}),O("/animations/{}/extensions/KHR_interactivity/maxTime",{get:t=>{var e;return(((e=t._babylonAnimationGroup)==null?void 0:e.to)??0)/60},type:"number",getTarget:t=>t._babylonAnimationGroup}),O("/animations/{}/extensions/KHR_interactivity/playhead",{get:t=>{var e;return(((e=t._babylonAnimationGroup)==null?void 0:e.getCurrentFrame())??0)/60},type:"number",getTarget:t=>t._babylonAnimationGroup}),O("/animations/{}/extensions/KHR_interactivity/virtualPlayhead",{get:t=>{var e;return(((e=t._babylonAnimationGroup)==null?void 0:e.getCurrentFrame())??0)/60},type:"number",getTarget:t=>t._babylonAnimationGroup})}Qt(W,"FlowGraphGLTFDataProvider",async()=>(await r(async()=>{const{FlowGraphGLTFDataProvider:a}=await import("./flowGraphGLTFDataProvider-Dr5qcwPs.js");return{FlowGraphGLTFDataProvider:a}},__vite__mapDeps([84,1,2,3,4,5,23,24,9,21,25,26,13,12,14,15,16,17,18,19,20,22,27,28,8,29,30,31,10]))).FlowGraphGLTFDataProvider);Ot(W);xt(W,!0,a=>new ft(a));const ke=Object.freeze(Object.defineProperty({__proto__:null,KHR_interactivity:ft,_AddInteractivityObjectModel:yt},Symbol.toStringTag,{value:"Module"}));export{$t as F,Mt as G,ke as K,dt as _,Zt as a,Jt as b,Xt as c,E as d,de as e,fe as f,Wt as g,ye as h,me as i,ge as j,J as k,tt as l}; diff --git a/assets/KHR_lights_punctual-D_DVTPFz.js b/assets/KHR_lights_punctual-D_DVTPFz.js new file mode 100644 index 0000000000000000000000000000000000000000..eb8f1efd59734145aac5263500e006e74180f0e8 --- /dev/null +++ b/assets/KHR_lights_punctual-D_DVTPFz.js @@ -0,0 +1 @@ +import{M as x,V as h}from"./math.vector-C1xyPDEl.js";import{Color3 as b}from"./math.color-CzLaKyb6.js";import{_ as d,s as u}from"./bufferUtils-DTRdUD8L.js";import{N as T}from"./node-C-Iu0ALa.js";import{L as S}from"./light-DT53MGnW.js";import{b as E,c as v}from"./objectModelMapping-DWcnlpHl.js";import{R as Z}from"./math.scalar.functions-DkeaWAWz.js";import{A as D,G as M}from"./glTFLoader-Brfz25eu.js";import{u as C,r as R}from"./dynamic-Bj3y4CGC.js";import"./decorators.serialization-C7d7ykGG.js";import"./lightConstants-B1TSTh-k.js";import"./tools-D01N7ptR.js";import"./math.axis-Ck7JfPPj.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./math.plane-Ce_75-g5.js";import"./index-BoUtOhbH.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./material-CrEsrP1R.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";T.AddNodeConstructor("Light_Type_1",(m,t)=>()=>new a(m,h.Zero(),t));class a extends E{get shadowFrustumSize(){return this._shadowFrustumSize}set shadowFrustumSize(t){this._shadowFrustumSize=t,this.forceProjectionMatrixCompute()}get shadowOrthoScale(){return this._shadowOrthoScale}set shadowOrthoScale(t){this._shadowOrthoScale=t,this.forceProjectionMatrixCompute()}get orthoLeft(){return this._orthoLeft}set orthoLeft(t){this._orthoLeft=t}get orthoRight(){return this._orthoRight}set orthoRight(t){this._orthoRight=t}get orthoTop(){return this._orthoTop}set orthoTop(t){this._orthoTop=t}get orthoBottom(){return this._orthoBottom}set orthoBottom(t){this._orthoBottom=t}constructor(t,o,e,i){super(t,e,i),this._shadowFrustumSize=0,this._shadowOrthoScale=.1,this.autoUpdateExtends=!0,this.autoCalcShadowZBounds=!1,this._orthoLeft=Number.MAX_VALUE,this._orthoRight=Number.MIN_VALUE,this._orthoTop=Number.MIN_VALUE,this._orthoBottom=Number.MAX_VALUE,this.position=o.scale(-1),this.direction=o}getClassName(){return"DirectionalLight"}getTypeID(){return S.LIGHTTYPEID_DIRECTIONALLIGHT}_setDefaultShadowProjectionMatrix(t,o,e){this.shadowFrustumSize>0?this._setDefaultFixedFrustumShadowProjectionMatrix(t):this._setDefaultAutoExtendShadowProjectionMatrix(t,o,e)}_setDefaultFixedFrustumShadowProjectionMatrix(t){const o=this.getScene().activeCamera;x.OrthoLHToRef(this.shadowFrustumSize,this.shadowFrustumSize,this.shadowMinZ!==void 0?this.shadowMinZ:o?o.minZ:0,this.shadowMaxZ!==void 0?this.shadowMaxZ:o?o.maxZ:1e4,t,this.getScene().getEngine().isNDCHalfZRange)}_setDefaultAutoExtendShadowProjectionMatrix(t,o,e){const i=this.getScene().activeCamera;if(this.autoUpdateExtends||this._orthoLeft===Number.MAX_VALUE){const r=h.Zero();this._orthoLeft=Number.MAX_VALUE,this._orthoRight=-Number.MAX_VALUE,this._orthoTop=-Number.MAX_VALUE,this._orthoBottom=Number.MAX_VALUE;let g=Number.MAX_VALUE,L=-Number.MAX_VALUE;for(let w=0;wthis._orthoRight&&(this._orthoRight=r.x),r.y>this._orthoTop&&(this._orthoTop=r.y),this.autoCalcShadowZBounds&&(r.zL&&(L=r.z))}this.autoCalcShadowZBounds&&(this._shadowMinZ=g,this._shadowMaxZ=L)}const c=this._orthoRight-this._orthoLeft,f=this._orthoTop-this._orthoBottom,s=this.shadowMinZ!==void 0?this.shadowMinZ:(i==null?void 0:i.minZ)||0,n=this.shadowMaxZ!==void 0?this.shadowMaxZ:(i==null?void 0:i.maxZ)||1e4,l=this.getScene().getEngine().useReverseDepthBuffer;x.OrthoOffCenterLHToRef(this._orthoLeft-c*this.shadowOrthoScale,this._orthoRight+c*this.shadowOrthoScale,this._orthoBottom-f*this.shadowOrthoScale,this._orthoTop+f*this.shadowOrthoScale,l?n:s,l?s:n,t,this.getScene().getEngine().isNDCHalfZRange)}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}transferToEffect(t,o){return this.computeTransformedInformation()?(this._uniformBuffer.updateFloat4("vLightData",this.transformedDirection.x,this.transformedDirection.y,this.transformedDirection.z,1,o),this):(this._uniformBuffer.updateFloat4("vLightData",this.direction.x,this.direction.y,this.direction.z,1,o),this)}transferToNodeMaterialEffect(t,o){return this.computeTransformedInformation()?(t.setFloat3(o,this.transformedDirection.x,this.transformedDirection.y,this.transformedDirection.z),this):(t.setFloat3(o,this.direction.x,this.direction.y,this.direction.z),this)}getDepthMinZ(t){const o=this._scene.getEngine();return!o.useReverseDepthBuffer&&o.isNDCHalfZRange?0:1}getDepthMaxZ(t){const o=this._scene.getEngine();return o.useReverseDepthBuffer&&o.isNDCHalfZRange?0:1}prepareLightSpecificDefines(t,o){t["DIRLIGHT"+o]=!0}}d([u()],a.prototype,"shadowFrustumSize",null);d([u()],a.prototype,"shadowOrthoScale",null);d([u()],a.prototype,"autoUpdateExtends",void 0);d([u()],a.prototype,"autoCalcShadowZBounds",void 0);d([u("orthoLeft")],a.prototype,"_orthoLeft",void 0);d([u("orthoRight")],a.prototype,"_orthoRight",void 0);d([u("orthoTop")],a.prototype,"_orthoTop",void 0);d([u("orthoBottom")],a.prototype,"_orthoBottom",void 0);Z("BABYLON.DirectionalLight",a);T.AddNodeConstructor("Light_Type_0",(m,t)=>()=>new _(m,h.Zero(),t));class _ extends E{get shadowAngle(){return this._shadowAngle}set shadowAngle(t){this._shadowAngle=t,this.forceProjectionMatrixCompute()}get direction(){return this._direction}set direction(t){const o=this.needCube();if(this._direction=t,this.needCube()!==o&&this._shadowGenerators){const e=this._shadowGenerators.values();for(let i=e.next();i.done!==!0;i=e.next())i.value.recreateShadowMap()}}constructor(t,o,e,i){super(t,e,i),this._shadowAngle=Math.PI/2,this.position=o}getClassName(){return"PointLight"}getTypeID(){return S.LIGHTTYPEID_POINTLIGHT}needCube(){return!this.direction}getShadowDirection(t){if(this.direction)return super.getShadowDirection(t);switch(t){case 0:return new h(1,0,0);case 1:return new h(-1,0,0);case 2:return new h(0,-1,0);case 3:return new h(0,1,0);case 4:return new h(0,0,1);case 5:return new h(0,0,-1)}return h.Zero()}_setDefaultShadowProjectionMatrix(t,o,e){const i=this.getScene().activeCamera,c=this.getDepthMinZ(i),f=this.getDepthMaxZ(i),s=this.getScene().getEngine().useReverseDepthBuffer;x.PerspectiveFovLHToRef(this.shadowAngle,1,s?f:c,s?c:f,t,!0,this._scene.getEngine().isNDCHalfZRange,void 0,s)}_buildUniformLayout(){this._uniformBuffer.addUniform("vLightData",4),this._uniformBuffer.addUniform("vLightDiffuse",4),this._uniformBuffer.addUniform("vLightSpecular",4),this._uniformBuffer.addUniform("vLightFalloff",4),this._uniformBuffer.addUniform("shadowsInfo",3),this._uniformBuffer.addUniform("depthValues",2),this._uniformBuffer.create()}transferToEffect(t,o){const e=this._scene.floatingOriginOffset;return this.computeTransformedInformation()?this._uniformBuffer.updateFloat4("vLightData",this.transformedPosition.x-e.x,this.transformedPosition.y-e.y,this.transformedPosition.z-e.z,0,o):this._uniformBuffer.updateFloat4("vLightData",this.position.x-e.x,this.position.y-e.y,this.position.z-e.z,0,o),this._uniformBuffer.updateFloat4("vLightFalloff",this.range,this._inverseSquaredRange,0,0,o),this}transferToNodeMaterialEffect(t,o){const e=this._scene.floatingOriginOffset;return this.computeTransformedInformation()?t.setFloat3(o,this.transformedPosition.x-e.x,this.transformedPosition.y-e.y,this.transformedPosition.z-e.z):t.setFloat3(o,this.position.x-e.x,this.position.y-e.y,this.position.z-e.z),this}prepareLightSpecificDefines(t,o){t["POINTLIGHT"+o]=!0}}d([u()],_.prototype,"shadowAngle",null);Z("BABYLON.PointLight",_);const p="KHR_lights_punctual";class N{constructor(t){this.name=p,this._loader=t,this.enabled=this._loader.isExtensionUsed(p)}dispose(){this._loader=null,delete this._lights}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const o=t[this.name];this._lights=o.lights,D.Assign(this._lights)}}loadNodeAsync(t,o,e){return M.LoadExtensionAsync(t,o,this.name,async(i,c)=>(this._loader._allMaterialsDirtyRequired=!0,await this._loader.loadNodeAsync(t,o,f=>{let s;const n=D.Get(i,this._lights,c.light),l=n.name||f.name;switch(this._loader.babylonScene._blockEntityCollection=!!this._loader._assetContainer,n.type){case"directional":{const r=new a(l,h.Backward(),this._loader.babylonScene);r.position.setAll(0),s=r;break}case"point":{s=new _(l,h.Zero(),this._loader.babylonScene);break}case"spot":{const r=new v(l,h.Zero(),h.Backward(),0,1,this._loader.babylonScene);r.angle=(n.spot&&n.spot.outerConeAngle||Math.PI/4)*2,r.innerAngle=(n.spot&&n.spot.innerConeAngle||0)*2,s=r;break}default:throw this._loader.babylonScene._blockEntityCollection=!1,new Error(`${i}: Invalid light type (${n.type})`)}s._parentContainer=this._loader._assetContainer,this._loader.babylonScene._blockEntityCollection=!1,n._babylonLight=s,s.falloffType=S.FALLOFF_GLTF,s.diffuse=n.color?b.FromArray(n.color):b.White(),s.intensity=n.intensity==null?1:n.intensity,s.range=n.range==null?Number.MAX_VALUE:n.range,s.parent=f,this._loader._babylonLights.push(s),M.AddPointerMetadata(s,i),e(f)})))}}C(p);R(p,!0,m=>new N(m));export{N as KHR_lights}; diff --git a/assets/KHR_materials_anisotropy-5EEdU0y2.js b/assets/KHR_materials_anisotropy-5EEdU0y2.js new file mode 100644 index 0000000000000000000000000000000000000000..be7031721b0247a691c51db245c447323356d8bc --- /dev/null +++ b/assets/KHR_materials_anisotropy-5EEdU0y2.js @@ -0,0 +1 @@ +import{G as l}from"./glTFLoader-Brfz25eu.js";import{u as d,r as c}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const n="KHR_materials_anisotropy";class u{constructor(t){this.name=n,this.order=195,this._loader=t,this.enabled=this._loader.isExtensionUsed(n)}dispose(){this._loader=null}loadMaterialPropertiesAsync(t,o,i){return l.LoadExtensionAsync(t,o,this.name,async(r,e)=>{const s=new Array;s.push(this._loader.loadMaterialPropertiesAsync(t,o,i)),s.push(this._loadAnisotropyPropertiesAsync(r,e,i)),await Promise.all(s)})}async _loadAnisotropyPropertiesAsync(t,o,i){const r=this._loader._getOrCreateMaterialAdapter(i),e=new Array,s=o.anisotropyStrength??0,y=o.anisotropyRotation??0;r.specularRoughnessAnisotropy=s,r.geometryTangentAngle=y;const a=o.extensions??{};(!a.EXT_materials_anisotropy_openpbr||!a.EXT_materials_anisotropy_openpbr.openPbrAnisotropyEnabled)&&r.configureGltfStyleAnisotropy(!0),o.anisotropyTexture&&(o.anisotropyTexture.nonColorData=!0,e.push(this._loader.loadTextureInfoAsync(`${t}/anisotropyTexture`,o.anisotropyTexture,m=>{m.name=`${i.name} (Anisotropy Intensity)`,r.geometryTangentTexture=m}))),await Promise.all(e)}}d(n);c(n,!0,p=>new u(p));export{u as KHR_materials_anisotropy}; diff --git a/assets/KHR_materials_clearcoat-D7Y2AeK-.js b/assets/KHR_materials_clearcoat-D7Y2AeK-.js new file mode 100644 index 0000000000000000000000000000000000000000..cbd4b3e784339bcd0f3bcaa3528026bad0d0f96a --- /dev/null +++ b/assets/KHR_materials_clearcoat-D7Y2AeK-.js @@ -0,0 +1 @@ +import{G as n}from"./glTFLoader-Brfz25eu.js";import{u as l,r as u}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const m="KHR_materials_clearcoat";class d{constructor(a){this.name=m,this.order=190,this._loader=a,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null}loadMaterialPropertiesAsync(a,o,r){return n.LoadExtensionAsync(a,o,this.name,async(t,s)=>{const e=new Array;e.push(this._loader.loadMaterialPropertiesAsync(a,o,r)),e.push(this._loadClearCoatPropertiesAsync(t,s,r)),await Promise.all(e)})}_loadClearCoatPropertiesAsync(a,o,r){const t=this._loader._getOrCreateMaterialAdapter(r),s=new Array;return t.configureCoat(),t.coatWeight=o.clearcoatFactor!==void 0?o.clearcoatFactor:0,t.coatRoughness=o.clearcoatRoughnessFactor!==void 0?o.clearcoatRoughnessFactor:0,o.clearcoatTexture&&s.push(this._loader.loadTextureInfoAsync(`${a}/clearcoatTexture`,o.clearcoatTexture,e=>{e.name=`${r.name} (ClearCoat)`,t.coatWeightTexture=e})),o.clearcoatRoughnessTexture&&(o.clearcoatRoughnessTexture.nonColorData=!0,s.push(this._loader.loadTextureInfoAsync(`${a}/clearcoatRoughnessTexture`,o.clearcoatRoughnessTexture,e=>{e.name=`${r.name} (ClearCoat Roughness)`,t.coatRoughnessTexture=e}))),o.clearcoatNormalTexture&&(o.clearcoatNormalTexture.nonColorData=!0,s.push(this._loader.loadTextureInfoAsync(`${a}/clearcoatNormalTexture`,o.clearcoatNormalTexture,e=>{var c;e.name=`${r.name} (ClearCoat Normal)`,t.geometryCoatNormalTexture=e,((c=o.clearcoatNormalTexture)==null?void 0:c.scale)!=null&&(t.geometryCoatNormalTextureScale=o.clearcoatNormalTexture.scale)})),t.setNormalMapInversions(!r.getScene().useRightHandedSystem,r.getScene().useRightHandedSystem)),Promise.all(s).then(()=>{})}}l(m);u(m,!0,i=>new d(i));export{d as KHR_materials_clearcoat}; diff --git a/assets/KHR_materials_coat-BbtbRNtU.js b/assets/KHR_materials_coat-BbtbRNtU.js new file mode 100644 index 0000000000000000000000000000000000000000..e772779b06c37e70bff67c45a541e75782adf91c --- /dev/null +++ b/assets/KHR_materials_coat-BbtbRNtU.js @@ -0,0 +1 @@ +import{G as d}from"./glTFLoader-Brfz25eu.js";import{u as h,r as T}from"./dynamic-Bj3y4CGC.js";import{Color3 as g}from"./math.color-CzLaKyb6.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const i="KHR_materials_coat";class f{constructor(r){this.name=i,this.order=191,this.useOpenPBR=!1,this._loader=r,this.enabled=this._loader.isExtensionUsed(i)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,o,a){return d.LoadExtensionAsync(r,o,this.name,async(t,n)=>{const s=new Array;s.push(this._loader.loadMaterialPropertiesAsync(r,o,a)),o.extensions&&o.extensions.KHR_materials_openpbr&&(this.useOpenPBR=!0),s.push(this._loadCoatPropertiesAsync(t,n,a)),await Promise.all(s)})}_loadCoatPropertiesAsync(r,o,a){const t=this._loader._getOrCreateMaterialAdapter(a),n=new Array;t.configureCoat(),t.coatWeight=o.coatFactor!==void 0?o.coatFactor:0,t.coatRoughness=o.coatRoughnessFactor!==void 0?o.coatRoughnessFactor:0,o.coatTexture&&n.push(this._loader.loadTextureInfoAsync(`${r}/coatTexture`,o.coatTexture,e=>{e.name=`${a.name} (Coat)`,t.coatWeightTexture=e})),o.coatRoughnessTexture&&(o.coatRoughnessTexture.nonColorData=!0,n.push(this._loader.loadTextureInfoAsync(`${r}/coatRoughnessTexture`,o.coatRoughnessTexture,e=>{e.name=`${a.name} (Coat Roughness)`,t.coatRoughnessTexture=e}))),o.coatNormalTexture&&(o.coatNormalTexture.nonColorData=!0,n.push(this._loader.loadTextureInfoAsync(`${r}/coatNormalTexture`,o.coatNormalTexture,e=>{var m;e.name=`${a.name} (Coat Normal)`,t.geometryCoatNormalTexture=e,((m=o.coatNormalTexture)==null?void 0:m.scale)!=null&&(t.geometryCoatNormalTextureScale=o.coatNormalTexture.scale)})),t.setNormalMapInversions(!a.getScene().useRightHandedSystem,a.getScene().useRightHandedSystem)),t.coatDarkening=o.coatDarkeningFactor!==void 0?o.coatDarkeningFactor:1,t.coatIor=o.coatIor!==void 0?o.coatIor:1.5;const s=g.White();o.coatColorFactor!==void 0&&s.fromArray(o.coatColorFactor),t.coatColor=s,o.coatColorTexture&&n.push(this._loader.loadTextureInfoAsync(`${r}/coatColorTexture`,o.coatColorTexture,e=>{e.name=`${a.name} (Coat Color)`,t.coatColorTexture=e}));const u=o.coatAnisotropyStrength??0,l=o.coatAnisotropyRotation??0;return t.coatRoughnessAnisotropy=u,t.geometryCoatTangentAngle=l,this.useOpenPBR||t.configureGltfStyleAnisotropy(!0),o.coatAnisotropyTexture&&(o.coatAnisotropyTexture.nonColorData=!0,n.push(this._loader.loadTextureInfoAsync(`${r}/coatAnisotropyTexture`,o.coatAnisotropyTexture,e=>{e.name=`${a.name} (Coat Anisotropy)`,t.geometryCoatTangentTexture=e}))),Promise.all(n).then(()=>{})}}h(i);T(i,!0,c=>new f(c));export{f as KHR_materials_coat}; diff --git a/assets/KHR_materials_diffuse_roughness-HP9DDpB0.js b/assets/KHR_materials_diffuse_roughness-HP9DDpB0.js new file mode 100644 index 0000000000000000000000000000000000000000..43b5836ed3e7bbabdb6457e42d05e5a24e39bc44 --- /dev/null +++ b/assets/KHR_materials_diffuse_roughness-HP9DDpB0.js @@ -0,0 +1 @@ +import{G as n}from"./glTFLoader-Brfz25eu.js";import{u as a,r as u}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const m="KHR_materials_diffuse_roughness";class h{constructor(r){this.name=m,this.order=190,this._loader=r,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,s,t){return n.LoadExtensionAsync(r,s,this.name,async(i,e)=>{const o=new Array;return o.push(this._loader.loadMaterialPropertiesAsync(r,s,t)),o.push(this._loadDiffuseRoughnessPropertiesAsync(i,e,t)),await Promise.all(o).then(()=>{})})}_loadDiffuseRoughnessPropertiesAsync(r,s,t){const i=this._loader._getOrCreateMaterialAdapter(t),e=new Array;return i.baseDiffuseRoughness=s.diffuseRoughnessFactor??0,s.diffuseRoughnessTexture&&e.push(this._loader.loadTextureInfoAsync(`${r}/diffuseRoughnessTexture`,s.diffuseRoughnessTexture,o=>{o.name=`${t.name} (Diffuse Roughness)`,i.baseDiffuseRoughnessTexture=o})),Promise.all(e).then(()=>{})}}a(m);u(m,!0,p=>new h(p));export{h as KHR_materials_diffuse_roughness}; diff --git a/assets/KHR_materials_diffuse_transmission-B7_c1IFh.js b/assets/KHR_materials_diffuse_transmission-B7_c1IFh.js new file mode 100644 index 0000000000000000000000000000000000000000..78a19d0af567b006129727ef72a31a3d1e82ce4d --- /dev/null +++ b/assets/KHR_materials_diffuse_transmission-B7_c1IFh.js @@ -0,0 +1 @@ +import{G as u}from"./glTFLoader-Brfz25eu.js";import{Color3 as p}from"./math.color-CzLaKyb6.js";import{u as f,r as d}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const n="KHR_materials_diffuse_transmission";class T{constructor(s){this.name=n,this.order=174,this._loader=s,this.enabled=this._loader.isExtensionUsed(n),this.enabled&&(s.parent.transparencyAsCoverage=!0)}dispose(){this._loader=null}loadMaterialPropertiesAsync(s,m,t){return u.LoadExtensionAsync(s,m,this.name,async(r,i)=>{const o=new Array;return o.push(this._loader.loadMaterialPropertiesAsync(s,m,t)),o.push(this._loadTranslucentPropertiesAsync(r,m,t,i)),await Promise.all(o).then(()=>{})})}_loadTranslucentPropertiesAsync(s,m,t,r){const i=this._loader._getOrCreateMaterialAdapter(t);i.configureSubsurface(),i.subsurfaceWeight=r.diffuseTransmissionFactor??0,i.subsurfaceConstantTint=r.diffuseTransmissionColorFactor!==void 0?p.FromArray(r.diffuseTransmissionColorFactor):p.White();const o=new Array;return r.diffuseTransmissionTexture&&(r.diffuseTransmissionTexture.nonColorData=!0,o.push(this._loader.loadTextureInfoAsync(`${s}/diffuseTransmissionTexture`,r.diffuseTransmissionTexture).then(e=>{e.name=`${t.name} (Diffuse Transmission)`,i.subsurfaceWeightTexture=e}))),r.diffuseTransmissionColorTexture&&o.push(this._loader.loadTextureInfoAsync(`${s}/diffuseTransmissionColorTexture`,r.diffuseTransmissionColorTexture).then(e=>{e.name=`${t.name} (Diffuse Transmission Color)`,i.subsurfaceConstantTintTexture=e})),Promise.all(o).then(()=>{})}}f(n);d(n,!0,a=>new T(a));export{T as KHR_materials_diffuse_transmission}; diff --git a/assets/KHR_materials_dispersion-LJd09w8f.js b/assets/KHR_materials_dispersion-LJd09w8f.js new file mode 100644 index 0000000000000000000000000000000000000000..8ec6b26ce05fe113a3cef5b0bb3d3a26a3cc9b24 --- /dev/null +++ b/assets/KHR_materials_dispersion-LJd09w8f.js @@ -0,0 +1 @@ +import{G as n}from"./glTFLoader-Brfz25eu.js";import{u as a,r as d}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const e="KHR_materials_dispersion";class l{constructor(r){this.name=e,this.order=174,this._loader=r,this.enabled=this._loader.isExtensionUsed(e)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,o,t){return n.LoadExtensionAsync(r,o,this.name,async(s,i)=>{const p=new Array;return p.push(this._loader.loadMaterialPropertiesAsync(r,o,t)),p.push(this._loadDispersionPropertiesAsync(s,o,t,i)),await Promise.all(p).then(()=>{})})}_loadDispersionPropertiesAsync(r,o,t,s){const i=this._loader._getOrCreateMaterialAdapter(t);return i.transmissionWeight==0||!s.dispersion||(i.transmissionDispersionAbbeNumber=20,i.transmissionDispersionScale=s.dispersion),Promise.resolve()}}a(e);d(e,!0,m=>new l(m));export{l as KHR_materials_dispersion}; diff --git a/assets/KHR_materials_emissive_strength-DT10EG2q.js b/assets/KHR_materials_emissive_strength-DT10EG2q.js new file mode 100644 index 0000000000000000000000000000000000000000..6a69990e2f77dd2ae45817f8ed8c639af5667bb5 --- /dev/null +++ b/assets/KHR_materials_emissive_strength-DT10EG2q.js @@ -0,0 +1 @@ +import{G as p}from"./glTFLoader-Brfz25eu.js";import{u as a,r as n}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const o="KHR_materials_emissive_strength";class d{constructor(i){this.name=o,this.order=170,this._loader=i,this.enabled=this._loader.isExtensionUsed(o)}dispose(){this._loader=null}loadMaterialPropertiesAsync(i,t,r){return p.LoadExtensionAsync(i,t,this.name,async(e,s)=>(await this._loader.loadMaterialPropertiesAsync(i,t,r),this._loadEmissiveProperties(e,s,r),await Promise.resolve()))}_loadEmissiveProperties(i,t,r){if(t.emissiveStrength!==void 0){const e=this._loader._getOrCreateMaterialAdapter(r);e.emissionLuminance=t.emissiveStrength}}}a(o);n(o,!0,m=>new d(m));export{d as KHR_materials_emissive_strength}; diff --git a/assets/KHR_materials_fuzz-D9_TuyjQ.js b/assets/KHR_materials_fuzz-D9_TuyjQ.js new file mode 100644 index 0000000000000000000000000000000000000000..7434a77b0319482a09bb81cac88845c0b80d1bcf --- /dev/null +++ b/assets/KHR_materials_fuzz-D9_TuyjQ.js @@ -0,0 +1 @@ +import{G as n}from"./glTFLoader-Brfz25eu.js";import{Color3 as m}from"./math.color-CzLaKyb6.js";import{u as a,r as f}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const s="KHR_materials_fuzz";class h{constructor(e){this.name=s,this.order=190,this._loader=e,this.enabled=this._loader.isExtensionUsed(s)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,o,u){return n.LoadExtensionAsync(e,o,this.name,async(t,i)=>{const r=new Array;return r.push(this._loader.loadMaterialPropertiesAsync(e,o,u)),r.push(this._loadFuzzPropertiesAsync(t,i,u)),await Promise.all(r).then(()=>{})})}_loadFuzzPropertiesAsync(e,o,u){const t=this._loader._getOrCreateMaterialAdapter(u),i=new Array;return t.configureFuzz(),t.fuzzWeight=o.fuzzFactor!==void 0?o.fuzzFactor:0,t.fuzzColor=o.fuzzColorFactor!==void 0?m.FromArray(o.fuzzColorFactor):m.White(),t.fuzzRoughness=o.fuzzRoughnessFactor!==void 0?o.fuzzRoughnessFactor:.5,o.fuzzTexture&&i.push(this._loader.loadTextureInfoAsync(`${e}/fuzzTexture`,o.fuzzTexture,r=>{r.name=`${u.name} (Fuzz)`,t.fuzzWeightTexture=r})),o.fuzzColorTexture&&i.push(this._loader.loadTextureInfoAsync(`${e}/fuzzColorTexture`,o.fuzzColorTexture,r=>{r.name=`${u.name} (Fuzz Color)`,t.fuzzColorTexture=r})),o.fuzzRoughnessTexture&&(o.fuzzRoughnessTexture.nonColorData=!0,i.push(this._loader.loadTextureInfoAsync(`${e}/fuzzRoughnessTexture`,o.fuzzRoughnessTexture,r=>{r.name=`${u.name} (Fuzz Roughness)`,t.fuzzRoughnessTexture=r}))),Promise.all(i).then(()=>{})}}a(s);f(s,!0,z=>new h(z));export{h as KHR_materials_fuzz}; diff --git a/assets/KHR_materials_ior-BPqCDb9M.js b/assets/KHR_materials_ior-BPqCDb9M.js new file mode 100644 index 0000000000000000000000000000000000000000..8d257f6f556ffa5f54c910c90a823868266a69ea --- /dev/null +++ b/assets/KHR_materials_ior-BPqCDb9M.js @@ -0,0 +1 @@ +import{G as a}from"./glTFLoader-Brfz25eu.js";import{u as d,r as l}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const i="KHR_materials_ior";class e{constructor(r){this.name=i,this.order=180,this._loader=r,this.enabled=this._loader.isExtensionUsed(i)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,o,t){return a.LoadExtensionAsync(r,o,this.name,async(p,m)=>{const s=new Array;return s.push(this._loader.loadMaterialPropertiesAsync(r,o,t)),s.push(this._loadIorPropertiesAsync(p,m,t)),await Promise.all(s).then(()=>{})})}_loadIorPropertiesAsync(r,o,t){const p=this._loader._getOrCreateMaterialAdapter(t),m=o.ior!==void 0?o.ior:e._DEFAULT_IOR;return p.specularIor=m,Promise.resolve()}}e._DEFAULT_IOR=1.5;d(i);l(i,!0,n=>new e(n));export{e as KHR_materials_ior}; diff --git a/assets/KHR_materials_iridescence-C85J7IAO.js b/assets/KHR_materials_iridescence-C85J7IAO.js new file mode 100644 index 0000000000000000000000000000000000000000..343afc41589871cd46fb8a2f4d0daaf0a3319379 --- /dev/null +++ b/assets/KHR_materials_iridescence-C85J7IAO.js @@ -0,0 +1 @@ +import{G as c}from"./glTFLoader-Brfz25eu.js";import{u as a,r as p}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const n="KHR_materials_iridescence";class d{constructor(t){this.name=n,this.order=195,this._loader=t,this.enabled=this._loader.isExtensionUsed(n)}dispose(){this._loader=null}loadMaterialPropertiesAsync(t,i,s){return c.LoadExtensionAsync(t,i,this.name,async(r,o)=>{const e=new Array;return e.push(this._loader.loadMaterialPropertiesAsync(t,i,s)),e.push(this._loadIridescencePropertiesAsync(r,o,s)),await Promise.all(e).then(()=>{})})}_loadIridescencePropertiesAsync(t,i,s){const r=this._loader._getOrCreateMaterialAdapter(s),o=new Array;return r.thinFilmWeight=i.iridescenceFactor??0,r.thinFilmIor=i.iridescenceIor??i.iridescenceIOR??1.3,r.thinFilmThicknessMinimum=i.iridescenceThicknessMinimum??100,r.thinFilmThicknessMaximum=i.iridescenceThicknessMaximum??400,i.iridescenceTexture&&o.push(this._loader.loadTextureInfoAsync(`${t}/iridescenceTexture`,i.iridescenceTexture,e=>{e.name=`${s.name} (Iridescence)`,r.thinFilmWeightTexture=e})),i.iridescenceThicknessTexture&&o.push(this._loader.loadTextureInfoAsync(`${t}/iridescenceThicknessTexture`,i.iridescenceThicknessTexture,e=>{e.name=`${s.name} (Iridescence Thickness)`,r.thinFilmThicknessTexture=e})),Promise.all(o).then(()=>{})}}a(n);p(n,!0,m=>new d(m));export{d as KHR_materials_iridescence}; diff --git a/assets/KHR_materials_pbrSpecularGlossiness-DliW9uB7.js b/assets/KHR_materials_pbrSpecularGlossiness-DliW9uB7.js new file mode 100644 index 0000000000000000000000000000000000000000..0948439b5ef6758ee7f18fe357b913763266501c --- /dev/null +++ b/assets/KHR_materials_pbrSpecularGlossiness-DliW9uB7.js @@ -0,0 +1 @@ +import{Color3 as e}from"./math.color-CzLaKyb6.js";import{PBRMaterial as l}from"./pbrMaterial-DR0boN9B.js";import{G as n}from"./glTFLoader-Brfz25eu.js";import{u as c,r as a}from"./dynamic-Bj3y4CGC.js";import"./math.scalar.functions-DkeaWAWz.js";import"./bufferUtils-DTRdUD8L.js";import"./brdfTextureTools-D9_V8EJj.js";import"./texture-BEqhDl5Y.js";import"./math.vector-C1xyPDEl.js";import"./baseTexture-CgAggsey.js";import"./decorators.serialization-C7d7ykGG.js";import"./tools-D01N7ptR.js";import"./math.plane-Ce_75-g5.js";import"./index-BoUtOhbH.js";import"./passPostProcess-bEhn82IT.js";import"./smartArray-CO6iJ0u5.js";import"./effectRenderer-CSz5fi0n.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./math.viewport-CgkTt1RS.js";import"./drawWrapper-CZVk0xN-.js";import"./engine-BaTjynsL.js";import"./thinEngine-D5ynu8Dd.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./math.axis-Ck7JfPPj.js";import"./math.path-DFucxaHn.js";import"./perfCounter-DusmGz8t.js";import"./textureTools-CF1s05wm.js";import"./renderTargetTexture-CKHWJlCy.js";import"./renderingManager-CiY2OUrf.js";import"./lightConstants-B1TSTh-k.js";import"./scene-gn_hoGMy.js";import"./sceneComponent-Dflhczui.js";import"./deviceInputEvents-BTza-zoR.js";import"./imageProcessing-2WziWti-.js";import"./material.detailMapConfiguration-D1Pl6X8T.js";import"./material-CrEsrP1R.js";import"./subMesh-UWDo5wjI.js";import"./pushMaterial-B8MG1fVH.js";import"./baseTexture.polynomial-DdAD26E8.js";import"./cubemapToSphericalPolynomial-BiLjFA_3.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./node-C-Iu0ALa.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./cameraInputsManager-BKG-Rtee.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const m="KHR_materials_pbrSpecularGlossiness";class d{constructor(s){this.name=m,this.order=200,this._loader=s,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null}loadMaterialPropertiesAsync(s,o,r){return n.LoadExtensionAsync(s,o,this.name,async(t,i)=>{const p=new Array;return p.push(this._loader.loadMaterialBasePropertiesAsync(s,o,r)),p.push(this._loadSpecularGlossinessPropertiesAsync(t,i,r)),this._loader.loadMaterialAlphaProperties(s,o,r),await Promise.all(p).then(()=>{})})}_loadSpecularGlossinessPropertiesAsync(s,o,r){if(!(r instanceof l))throw new Error(`${s}: Material type not supported`);const t=new Array;return r.metallic=null,r.roughness=null,o.diffuseFactor?(r.albedoColor=e.FromArray(o.diffuseFactor),r.alpha=o.diffuseFactor[3]):r.albedoColor=e.White(),r.reflectivityColor=o.specularFactor?e.FromArray(o.specularFactor):e.White(),r.microSurface=o.glossinessFactor==null?1:o.glossinessFactor,o.diffuseTexture&&t.push(this._loader.loadTextureInfoAsync(`${s}/diffuseTexture`,o.diffuseTexture,i=>{i.name=`${r.name} (Diffuse)`,r.albedoTexture=i})),o.specularGlossinessTexture&&(t.push(this._loader.loadTextureInfoAsync(`${s}/specularGlossinessTexture`,o.specularGlossinessTexture,i=>{i.name=`${r.name} (Specular Glossiness)`,r.reflectivityTexture=i,r.reflectivityTexture.hasAlpha=!0})),r.useMicroSurfaceFromReflectivityMapAlpha=!0),Promise.all(t).then(()=>{})}}c(m);a(m,!0,u=>new d(u));export{d as KHR_materials_pbrSpecularGlossiness}; diff --git a/assets/KHR_materials_sheen-1Amk0TCO.js b/assets/KHR_materials_sheen-1Amk0TCO.js new file mode 100644 index 0000000000000000000000000000000000000000..c586d981fb3006e0134cf731dbccf9f3f2cdbe78 --- /dev/null +++ b/assets/KHR_materials_sheen-1Amk0TCO.js @@ -0,0 +1 @@ +import{G as p}from"./glTFLoader-Brfz25eu.js";import{Color3 as a}from"./math.color-CzLaKyb6.js";import{u as l,r as d}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const m="KHR_materials_sheen";class c{constructor(r){this.name=m,this.order=190,this._loader=r,this.enabled=this._loader.isExtensionUsed(m)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,e,t){return p.LoadExtensionAsync(r,e,this.name,async(o,s)=>{const n=new Array;return n.push(this._loader.loadMaterialPropertiesAsync(r,e,t)),n.push(this._loadSheenPropertiesAsync(o,s,t)),await Promise.all(n).then(()=>{})})}_loadSheenPropertiesAsync(r,e,t){const o=this._loader._getOrCreateMaterialAdapter(t),s=new Array;o.configureFuzz();const n=e.sheenColorFactor!==void 0?a.FromArray(e.sheenColorFactor):a.Black(),u=e.sheenRoughnessFactor!==void 0?e.sheenRoughnessFactor:0;return o.fuzzWeight=1,o.fuzzColor=n,o.fuzzRoughness=u,e.sheenColorTexture&&s.push(this._loader.loadTextureInfoAsync(`${r}/sheenColorTexture`,e.sheenColorTexture,i=>{i.name=`${t.name} (Sheen Color)`,o.fuzzColorTexture=i})),e.sheenRoughnessTexture&&(e.sheenRoughnessTexture.nonColorData=!0,s.push(this._loader.loadTextureInfoAsync(`${r}/sheenRoughnessTexture`,e.sheenRoughnessTexture,i=>{i.name=`${t.name} (Sheen Roughness)`,o.fuzzRoughnessTexture=i}))),Promise.all(s).then(()=>{})}}l(m);d(m,!0,h=>new c(h));export{c as KHR_materials_sheen}; diff --git a/assets/KHR_materials_specular-oy4urWG1.js b/assets/KHR_materials_specular-oy4urWG1.js new file mode 100644 index 0000000000000000000000000000000000000000..c278573e8e7a6fdcf4a0a329d166f208626402ab --- /dev/null +++ b/assets/KHR_materials_specular-oy4urWG1.js @@ -0,0 +1 @@ +import{G as u}from"./glTFLoader-Brfz25eu.js";import{Color3 as l}from"./math.color-CzLaKyb6.js";import{u as n,r as c}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const i="KHR_materials_specular";class d{constructor(t){this.name=i,this.order=190,this._loader=t,this.enabled=this._loader.isExtensionUsed(i)}dispose(){this._loader=null}loadMaterialPropertiesAsync(t,r,s){return u.LoadExtensionAsync(t,r,this.name,async(a,o)=>{const e=new Array;e.push(this._loader.loadMaterialPropertiesAsync(t,r,s)),e.push(this._loadSpecularPropertiesAsync(a,o,s));const m=this._loader._getOrCreateMaterialAdapter(s);return o.extensions&&o.extensions.EXT_materials_specular_edge_color&&o.extensions.EXT_materials_specular_edge_color.specularEdgeColorEnabled&&m.enableSpecularEdgeColor(!0),await Promise.all(e).then(()=>{})})}_loadSpecularPropertiesAsync(t,r,s){const a=this._loader._getOrCreateMaterialAdapter(s),o=new Array;return a.specularWeight=r.specularFactor??1,a.specularColor=r.specularColorFactor!==void 0?l.FromArray(r.specularColorFactor):new l(1,1,1),r.specularTexture&&(r.specularTexture.nonColorData=!0,o.push(this._loader.loadTextureInfoAsync(`${t}/specularTexture`,r.specularTexture,e=>{e.name=`${s.name} (Specular)`,a.specularWeightTexture=e}))),r.specularColorTexture&&o.push(this._loader.loadTextureInfoAsync(`${t}/specularColorTexture`,r.specularColorTexture,e=>{e.name=`${s.name} (Specular Color)`,a.specularColorTexture=e})),Promise.all(o).then(()=>{})}}n(i);c(i,!0,p=>new d(p));export{d as KHR_materials_specular}; diff --git a/assets/KHR_materials_transmission-Bx9I34qr.js b/assets/KHR_materials_transmission-Bx9I34qr.js new file mode 100644 index 0000000000000000000000000000000000000000..1a4e7240b58edf18c74cdfc4ad73c6b4b474e3f0 --- /dev/null +++ b/assets/KHR_materials_transmission-Bx9I34qr.js @@ -0,0 +1 @@ +import{G as u}from"./glTFLoader-Brfz25eu.js";import{R as c}from"./renderTargetTexture-CKHWJlCy.js";import{O as m}from"./math.vector-C1xyPDEl.js";import{C as g}from"./objectModelMapping-DWcnlpHl.js";import{T}from"./tools-D01N7ptR.js";import{u as f,r as M}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.color-CzLaKyb6.js";import"./math.scalar.functions-DkeaWAWz.js";import"./mesh-BPwLonvs.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";class p{static _GetDefaultOptions(){return{renderSize:1024,samples:4,lodGenerationScale:1,lodGenerationOffset:-4,renderTargetTextureType:g.TEXTURETYPE_HALF_FLOAT,generateMipmaps:!0}}constructor(e,s,t){this._opaqueRenderTarget=null,this._opaqueMeshesCache=[],this._transparentMeshesCache=[],this._materialObservers={},this._options={...p._GetDefaultOptions(),...e},this._scene=s,this._scene._transmissionHelper=this,this._loader=t,this.onErrorObservable=new m,this._scene.onDisposeObservable.addOnce(()=>{this.dispose()}),this._parseScene(),this._setupRenderTargets()}updateOptions(e){if(!Object.keys(e).filter(i=>this._options[i]!==e[i]).length)return;const t={...this._options,...e},r=this._options;this._options=t,t.renderSize!==r.renderSize||t.renderTargetTextureType!==r.renderTargetTextureType||t.generateMipmaps!==r.generateMipmaps||!this._opaqueRenderTarget?this._setupRenderTargets():(this._opaqueRenderTarget.samples=t.samples,this._opaqueRenderTarget.lodGenerationScale=t.lodGenerationScale,this._opaqueRenderTarget.lodGenerationOffset=t.lodGenerationOffset)}getOpaqueTarget(){return this._opaqueRenderTarget}_addMesh(e){this._materialObservers[e.uniqueId]=e.onMaterialChangedObservable.add(this._onMeshMaterialChanged.bind(this)),T.SetImmediate(()=>{if(e.material){if(!this._loader.isMatchingMaterialType(e.material))return;const s=this._loader._getOrCreateMaterialAdapter(e.material);s.transmissionWeight>0?(s.refractionBackgroundTexture=this._opaqueRenderTarget,this._transparentMeshesCache.indexOf(e)===-1&&this._transparentMeshesCache.push(e)):this._opaqueMeshesCache.indexOf(e)===-1&&this._opaqueMeshesCache.push(e)}})}_removeMesh(e){e.onMaterialChangedObservable.remove(this._materialObservers[e.uniqueId]),delete this._materialObservers[e.uniqueId];let s=this._transparentMeshesCache.indexOf(e);s!==-1&&this._transparentMeshesCache.splice(s,1),s=this._opaqueMeshesCache.indexOf(e),s!==-1&&this._opaqueMeshesCache.splice(s,1)}_parseScene(){this._scene.meshes.forEach(this._addMesh.bind(this)),this._scene.onNewMeshAddedObservable.add(this._addMesh.bind(this)),this._scene.onMeshRemovedObservable.add(this._removeMesh.bind(this))}_onMeshMaterialChanged(e){const s=this._transparentMeshesCache.indexOf(e),t=this._opaqueMeshesCache.indexOf(e);if(!this._loader.isMatchingMaterialType(e.material))return;const r=e.material?this._loader._getOrCreateMaterialAdapter(e.material):null;(r?r.transmissionWeight>0:!1)?(r&&(r.refractionBackgroundTexture=this._opaqueRenderTarget),t!==-1?(this._opaqueMeshesCache.splice(t,1),this._transparentMeshesCache.push(e)):s===-1&&this._transparentMeshesCache.push(e)):s!==-1?(this._transparentMeshesCache.splice(s,1),this._opaqueMeshesCache.push(e)):t===-1&&this._opaqueMeshesCache.push(e)}_isRenderTargetValid(){var e;return((e=this._opaqueRenderTarget)==null?void 0:e.getInternalTexture())!==null}_setupRenderTargets(){var s;this._opaqueRenderTarget&&this._opaqueRenderTarget.dispose(),this._opaqueRenderTarget=new c("opaqueSceneTexture",this._options.renderSize,this._scene,this._options.generateMipmaps,void 0,this._options.renderTargetTextureType),this._opaqueRenderTarget.ignoreCameraViewport=!0,this._opaqueRenderTarget.renderList=this._opaqueMeshesCache,this._opaqueRenderTarget.clearColor=((s=this._options.clearColor)==null?void 0:s.clone())??this._scene.clearColor.clone(),this._opaqueRenderTarget.gammaSpace=!1,this._opaqueRenderTarget.lodGenerationScale=this._options.lodGenerationScale,this._opaqueRenderTarget.lodGenerationOffset=this._options.lodGenerationOffset,this._opaqueRenderTarget.samples=this._options.samples,this._opaqueRenderTarget.renderSprites=!0,this._opaqueRenderTarget.renderParticles=!0,this._opaqueRenderTarget.disableImageProcessing=!0;let e;this._opaqueRenderTarget.onBeforeBindObservable.add(t=>{e=this._scene.environmentIntensity,this._scene.environmentIntensity=1,this._options.clearColor?t.clearColor.copyFrom(this._options.clearColor):this._scene.clearColor.toLinearSpaceToRef(t.clearColor,this._scene.getEngine().useExactSrgbConversions)}),this._opaqueRenderTarget.onAfterUnbindObservable.add(()=>{this._scene.environmentIntensity=e});for(const t of this._transparentMeshesCache)if(t.material){if(!this._loader.isMatchingMaterialType(t.material))return;const r=this._loader._getOrCreateMaterialAdapter(t.material);r.transmissionWeight>0&&(r.refractionBackgroundTexture=this._opaqueRenderTarget)}}dispose(){this._scene._transmissionHelper=void 0,this._opaqueRenderTarget&&(this._opaqueRenderTarget.dispose(),this._opaqueRenderTarget=null),this._transparentMeshesCache=[],this._opaqueMeshesCache=[]}}const o="KHR_materials_transmission";class q{constructor(e){this.name=o,this.order=175,this._loader=e,this.enabled=this._loader.isExtensionUsed(o),this.enabled&&(e.parent.transparencyAsCoverage=!0)}dispose(){this._loader=null}loadMaterialPropertiesAsync(e,s,t){return u.LoadExtensionAsync(e,s,this.name,async(r,i)=>{const a=new Array;return a.push(this._loader.loadMaterialPropertiesAsync(e,s,t)),a.push(this._loadTransparentPropertiesAsync(r,s,t,i)),await Promise.all(a).then(()=>{})})}_loadTransparentPropertiesAsync(e,s,t,r){var l,_;const i=this._loader._getOrCreateMaterialAdapter(t),a=r.transmissionFactor!==void 0?r.transmissionFactor:0;if(a===0||!i)return Promise.resolve();if(i.configureTransmission(),i.transmissionWeight=a,a>0&&!this._loader.parent.dontUseTransmissionHelper){const n=t.getScene();n._transmissionHelper?(l=n._transmissionHelper)!=null&&l._isRenderTargetValid()||(_=n._transmissionHelper)==null||_._setupRenderTargets():new p({},t.getScene(),this._loader)}let d=Promise.resolve(null);return r.transmissionTexture&&(r.transmissionTexture.nonColorData=!0,d=this._loader.loadTextureInfoAsync(`${e}/transmissionTexture`,r.transmissionTexture,n=>{n.name=`${t.name} (Transmission)`,i.transmissionWeightTexture=n})),d.then(()=>{})}}f(o);M(o,!0,h=>new q(h));export{q as KHR_materials_transmission}; diff --git a/assets/KHR_materials_unlit-CwgclR-h.js b/assets/KHR_materials_unlit-CwgclR-h.js new file mode 100644 index 0000000000000000000000000000000000000000..c5a19870110edf1efc661aa217e2a143b0a69e64 --- /dev/null +++ b/assets/KHR_materials_unlit-CwgclR-h.js @@ -0,0 +1 @@ +import{Color3 as l}from"./math.color-CzLaKyb6.js";import{G as n}from"./glTFLoader-Brfz25eu.js";import{u as d,r as u}from"./dynamic-Bj3y4CGC.js";import"./math.scalar.functions-DkeaWAWz.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const s="KHR_materials_unlit";class c{constructor(r){this.name=s,this.order=210,this._loader=r,this.enabled=this._loader.isExtensionUsed(s)}dispose(){this._loader=null}loadMaterialPropertiesAsync(r,o,e){return n.LoadExtensionAsync(r,o,this.name,async()=>await this._loadUnlitPropertiesAsync(r,o,e))}_loadUnlitPropertiesAsync(r,o,e){const t=this._loader._getOrCreateMaterialAdapter(e),m=new Array,i=o.pbrMetallicRoughness;return i&&(i.baseColorFactor&&(t.baseColor=l.FromArray(i.baseColorFactor),t.geometryOpacity=i.baseColorFactor[3]),i.baseColorTexture&&m.push(this._loader.loadTextureInfoAsync(`${r}/baseColorTexture`,i.baseColorTexture,a=>{a.name=`${e.name} (Base Color)`,t.baseColorTexture=a}))),t.isUnlit=!0,o.doubleSided&&(t.backFaceCulling=!1,t.twoSidedLighting=!0),this._loader.loadMaterialAlphaProperties(r,o,e),Promise.all(m).then(()=>{})}}d(s);u(s,!0,p=>new c(p));export{c as KHR_materials_unlit}; diff --git a/assets/KHR_materials_variants-B8YNsum7.js b/assets/KHR_materials_variants-B8YNsum7.js new file mode 100644 index 0000000000000000000000000000000000000000..1f5b17e32bb09296f747892ab0159dedc4eb0c0f --- /dev/null +++ b/assets/KHR_materials_variants-B8YNsum7.js @@ -0,0 +1 @@ +import{G as S,A as L}from"./glTFLoader-Brfz25eu.js";import{M as O}from"./mesh-BPwLonvs.js";import{u as C,r as I}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./cameraInputsManager-BKG-Rtee.js";import"./math.axis-Ck7JfPPj.js";import"./node-C-Iu0ALa.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./math.plane-Ce_75-g5.js";import"./animation-IftAdLIx.js";import"./material-CrEsrP1R.js";import"./subMesh-UWDo5wjI.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./drawWrapper-CZVk0xN-.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./smartArray-CO6iJ0u5.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./math.viewport-CgkTt1RS.js";const r="KHR_materials_variants";class s{constructor(t){this.name=r,this._loader=t,this.enabled=this._loader.isExtensionUsed(r)&&!this._loader.parent.skipMaterials}dispose(){this._loader=null}static GetAvailableVariants(t){const a=this._GetExtensionMetadata(t);return a?Object.keys(a.variants):[]}getAvailableVariants(t){return s.GetAvailableVariants(t)}static SelectVariant(t,a){const e=this._GetExtensionMetadata(t);if(!e)throw new Error(`Cannot select variant on a glTF mesh that does not have the ${r} extension`);const o=c=>{const p=e.variants[c];if(p)for(const h of p)h.mesh.material=h.material};if(a instanceof Array)for(const c of a)o(c);else o(a);e.lastSelected=a}selectVariant(t,a){s.SelectVariant(t,a)}static Reset(t){const a=this._GetExtensionMetadata(t);if(!a)throw new Error(`Cannot reset on a glTF mesh that does not have the ${r} extension`);for(const e of a.original)e.mesh.material=e.material;a.lastSelected=null}reset(t){s.Reset(t)}static GetLastSelectedVariant(t){const a=this._GetExtensionMetadata(t);if(!a)throw new Error(`Cannot get the last selected variant on a glTF mesh that does not have the ${r} extension`);return a.lastSelected}getLastSelectedVariant(t){return s.GetLastSelectedVariant(t)}static _GetExtensionMetadata(t){var a,e;return((e=(a=t==null?void 0:t._internalMetadata)==null?void 0:a.gltf)==null?void 0:e[r])||null}onLoading(){const t=this._loader.gltf.extensions;if(t&&t[this.name]){const a=t[this.name];this._variants=a.variants}}onReady(){var a;const t=this._loader.rootBabylonMesh;if(t){const e=this._loader.parent.extensionOptions[r];e!=null&&e.defaultVariant&&s.SelectVariant(t,e.defaultVariant),(a=e==null?void 0:e.onLoaded)==null||a.call(e,{get variants(){return s.GetAvailableVariants(t)},get selectedVariant(){const o=s.GetLastSelectedVariant(t);return o?Array.isArray(o)?o[0]:o:s.GetAvailableVariants(t)[0]},set selectedVariant(o){s.SelectVariant(t,o)}})}}_loadMeshPrimitiveAsync(t,a,e,o,c,p){return S.LoadExtensionAsync(t,c,this.name,async(h,V)=>{const x=new Array;return x.push(this._loader._loadMeshPrimitiveAsync(t,a,e,o,c,l=>{if(p(l),l instanceof O){const $=S._GetDrawMode(t,c.mode),d=this._loader.rootBabylonMesh,A=d?d._internalMetadata=d._internalMetadata||{}:{},E=A.gltf=A.gltf||{},f=E[r]=E[r]||{lastSelected:null,original:[],variants:{}};f.original.push({mesh:l,material:l.material});for(let g=0;g{for(let v=0;v{const G=k;let m,i=G;do{if(i=i.parent,!i)return;m=s._GetExtensionMetadata(i)}while(m===null);if(d&&m===s._GetExtensionMetadata(d)){i._internalMetadata={};for(const n in d._internalMetadata)i._internalMetadata[n]=d._internalMetadata[n];i._internalMetadata.gltf=[];for(const n in d._internalMetadata.gltf)i._internalMetadata.gltf[n]=d._internalMetadata.gltf[n];i._internalMetadata.gltf[r]={lastSelected:null,original:[],variants:{}};for(const n of m.original)i._internalMetadata.gltf[r].original.push({mesh:n.mesh,material:n.material});for(const n in m.variants)if(Object.prototype.hasOwnProperty.call(m.variants,n)){i._internalMetadata.gltf[r].variants[n]=[];for(const y of m.variants[n])i._internalMetadata.gltf[r].variants[n].push({mesh:y.mesh,material:y.material})}m=i._internalMetadata.gltf[r]}for(const n of m.original)n.mesh===l&&(n.mesh=G);for(const n of m.variants[M.name])n.mesh===l&&(n.mesh=G)})}}))}}})),await Promise.all(x).then(([l])=>l)})}}C(r);I(r,!0,_=>new s(_));export{s as KHR_materials_variants}; diff --git a/assets/KHR_materials_volume-lsejr0yd.js b/assets/KHR_materials_volume-lsejr0yd.js new file mode 100644 index 0000000000000000000000000000000000000000..4d646ef15bacdf7de02ab93cce46b90e32d13202 --- /dev/null +++ b/assets/KHR_materials_volume-lsejr0yd.js @@ -0,0 +1 @@ +import{Color3 as h}from"./math.color-CzLaKyb6.js";import{G as u}from"./glTFLoader-Brfz25eu.js";import{u as d,r as _}from"./dynamic-Bj3y4CGC.js";import{V as f}from"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./index-BoUtOhbH.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const n="KHR_materials_volume";class A{constructor(o){this.name=n,this.order=173,this._loader=o,this.enabled=this._loader.isExtensionUsed(n),this.enabled&&this._loader._disableInstancedMesh++}dispose(){this.enabled&&this._loader._disableInstancedMesh--,this._loader=null}loadMaterialPropertiesAsync(o,s,e){return u.LoadExtensionAsync(o,s,this.name,async(t,r)=>{const i=new Array;return i.push(this._loader.loadMaterialPropertiesAsync(o,s,e)),i.push(this._loadVolumePropertiesAsync(t,s,e,r)),await Promise.all(i).then(()=>{})})}_loadVolumePropertiesAsync(o,s,e,t){const r=this._loader._getOrCreateMaterialAdapter(e);if(r.transmissionWeight===0&&r.subsurfaceWeight===0||!t.thicknessFactor)return Promise.resolve();const i=t.attenuationDistance!==void 0?t.attenuationDistance:Number.MAX_VALUE,a=t.attenuationColor!==void 0&&t.attenuationColor.length==3?h.FromArray(t.attenuationColor):h.White(),p=new f(-Math.log(a.r),-Math.log(a.g),-Math.log(a.b));p.scaleInPlace(1/Math.max(i,.001)),r.extinctionCoefficient=p,r.transmissionDepth=i,r.transmissionColor=a,r.volumeThickness=t.thicknessFactor??0;const l=new Array;return t.thicknessTexture&&(t.thicknessTexture.nonColorData=!0,l.push(this._loader.loadTextureInfoAsync(`${o}/thicknessTexture`,t.thicknessTexture,c=>{c.name=`${e.name} (Thickness)`,r.volumeThicknessTexture=c}))),Promise.all(l).then(()=>{})}}d(n);_(n,!0,m=>new A(m));export{A as KHR_materials_volume}; diff --git a/assets/KHR_materials_volume_scatter-CjwmDY6W.js b/assets/KHR_materials_volume_scatter-CjwmDY6W.js new file mode 100644 index 0000000000000000000000000000000000000000..965d044e2fedc55139fcae02e22502a33f7e1f30 --- /dev/null +++ b/assets/KHR_materials_volume_scatter-CjwmDY6W.js @@ -0,0 +1 @@ +import{Color3 as p}from"./math.color-CzLaKyb6.js";import{V as s}from"./math.vector-C1xyPDEl.js";import{G as y}from"./glTFLoader-Brfz25eu.js";import{u as C,r as _}from"./dynamic-Bj3y4CGC.js";import"./math.scalar.functions-DkeaWAWz.js";import"./index-BoUtOhbH.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const c="KHR_materials_volume_scatter";function x(n){const r=new s(n.r,n.g,n.b),i=new s(4.09712,4.09712,4.09712);i.multiplyInPlace(r),i.addInPlace(new s(4.20863,4.20863,4.20863));const e=new s(9.59217,9.59217,9.59217);return e.addInPlace(new s(41.6808,41.6808,41.6808).multiplyInPlace(r)),e.addInPlace(new s(17.7126,17.7126,17.7126).multiplyInPlace(r.multiply(r))),i.subtractInPlace(new s(Math.sqrt(e.x),Math.sqrt(e.y),Math.sqrt(e.z))),new s(1,1,1).subtract(i.multiply(i))}class A{constructor(r){this.name=c,this.order=172,this._loader=r,this.enabled=this._loader.isExtensionUsed(c),this.enabled&&this._loader._disableInstancedMesh++}dispose(){this.enabled&&this._loader._disableInstancedMesh--,this._loader=null}loadMaterialPropertiesAsync(r,i,e){return y.LoadExtensionAsync(r,i,this.name,async(o,t)=>{const l=new Array;return l.push(this._loader.loadMaterialPropertiesAsync(r,i,e)),l.push(this._loadVolumePropertiesAsync(o,i,e,t)),await Promise.all(l).then(()=>{})})}_loadVolumePropertiesAsync(r,i,e,o){const t=this._loader._getOrCreateMaterialAdapter(e);if(t.transmissionWeight===0&&t.subsurfaceWeight===0)return Promise.resolve();const l=o.multiscatterColor!==void 0&&o.multiscatterColor.length==3?p.FromArray(o.multiscatterColor):p.Black(),u=o.scatterAnisotropy!==void 0?o.scatterAnisotropy:0;if(t.transmissionWeight>0){const a=x(l),d=new s(-Math.log(t.transmissionColor.r),-Math.log(t.transmissionColor.g),-Math.log(t.transmissionColor.b));d.scaleInPlace(1/Math.max(t.transmissionDepth,.001));const m=d.multiply(a);m.scaleInPlace(t.transmissionDepth),t.transmissionScatter.set(m.x,m.y,m.z);let f=Promise.resolve(null);return o.multiscatterColorTexture&&(o.multiscatterColorTexture.nonColorData=!0,f=this._loader.loadTextureInfoAsync(`${r}/multiscatterColorTexture`,o.multiscatterColorTexture,h=>{h.name=`${e.name} (Transmission)`,t.transmissionWeightTexture=h})),t.transmissionScatterAnisotropy=u,f.then(()=>{})}if(t.subsurfaceWeight>0){t.subsurfaceScatterAnisotropy=u,t.subsurfaceColor=l;const a=new s(t.extinctionCoefficient.x!==0?1/t.extinctionCoefficient.x:1,t.extinctionCoefficient.y!==0?1/t.extinctionCoefficient.y:1,t.extinctionCoefficient.z!==0?1/t.extinctionCoefficient.z:1);t.subsurfaceRadius=Math.max(a.x,a.y,a.z),t.subsurfaceRadiusScale=new p(a.x/t.subsurfaceRadius,a.y/t.subsurfaceRadius,a.z/t.subsurfaceRadius)}return Promise.resolve()}}C(c);_(c,!0,n=>new A(n));export{A as KHR_materials_volume_scatter}; diff --git a/assets/KHR_mesh_quantization-S_DuCOqC.js b/assets/KHR_mesh_quantization-S_DuCOqC.js new file mode 100644 index 0000000000000000000000000000000000000000..80bea128ea0176226340746752e8d0f7b8467032 --- /dev/null +++ b/assets/KHR_mesh_quantization-S_DuCOqC.js @@ -0,0 +1 @@ +import{u as r,r as m}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./sceneLoader-CutT-qCn.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./math.color-CzLaKyb6.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";const t="KHR_mesh_quantization";class p{constructor(o){this.name=t,this.enabled=o.isExtensionUsed(t)}dispose(){}}r(t);m(t,!0,i=>new p(i));export{p as KHR_mesh_quantization}; diff --git a/assets/KHR_node_hoverability-CEjg1UCQ.js b/assets/KHR_node_hoverability-CEjg1UCQ.js new file mode 100644 index 0000000000000000000000000000000000000000..7972f69786030144544e73eabc850efc00d7d5c5 --- /dev/null +++ b/assets/KHR_node_hoverability-CEjg1UCQ.js @@ -0,0 +1 @@ +import{u as k,r as B}from"./dynamic-Bj3y4CGC.js";import{e as b}from"./declarationMapper-oEUQrCmY.js";import{A as y}from"./objectModelMapping-DWcnlpHl.js";import"./index-BoUtOhbH.js";import"./sceneLoader-CutT-qCn.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./math.color-CzLaKyb6.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./node-C-Iu0ALa.js";import"./light-DT53MGnW.js";import"./math.axis-Ck7JfPPj.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";const p="KHR_node_hoverability",I="targetMeshPointerOver_";b("event/onHoverIn",p,{blocks:["FlowGraphPointerOverEventBlock","FlowGraphGetVariableBlock","FlowGraphIndexOfBlock","KHR_interactivity/FlowGraphGLTFDataProvider"],configuration:{stopPropagation:{name:"stopPropagation"},nodeIndex:{name:"variable",toBlock:"FlowGraphGetVariableBlock",dataTransformer(o){return I+o}}},outputs:{values:{hoverNodeIndex:{name:"index",toBlock:"FlowGraphIndexOfBlock"},controllerIndex:{name:"pointerId"}},flows:{out:{name:"done"}}},interBlockConnectors:[{input:"targetMesh",output:"value",inputBlockIndex:0,outputBlockIndex:1,isVariable:!0},{input:"array",output:"nodes",inputBlockIndex:2,outputBlockIndex:3,isVariable:!0},{input:"object",output:"meshUnderPointer",inputBlockIndex:2,outputBlockIndex:0,isVariable:!0}],extraProcessor(o,n,i,s,t,u,e){var c,l,m,h,f,v,x;const a=t[t.length-1];a.config=a.config||{},a.config.glTF=e;const r=(m=(l=(c=o.configuration)==null?void 0:c.nodeIndex)==null?void 0:l.value)==null?void 0:m[0];if(r===void 0||typeof r!="number")throw new Error("nodeIndex not found in configuration");const d=I+r;return t[1].config.variable=d,u._userVariables[d]={className:"Mesh",id:(f=(h=e==null?void 0:e.nodes)==null?void 0:h[r]._babylonTransformNode)==null?void 0:f.id,uniqueId:(x=(v=e==null?void 0:e.nodes)==null?void 0:v[r]._babylonTransformNode)==null?void 0:x.uniqueId},t}});const _="targetMeshPointerOut_";b("event/onHoverOut",p,{blocks:["FlowGraphPointerOutEventBlock","FlowGraphGetVariableBlock","FlowGraphIndexOfBlock","KHR_interactivity/FlowGraphGLTFDataProvider"],configuration:{stopPropagation:{name:"stopPropagation"},nodeIndex:{name:"variable",toBlock:"FlowGraphGetVariableBlock",dataTransformer(o){return _+o}}},outputs:{values:{hoverNodeIndex:{name:"index",toBlock:"FlowGraphIndexOfBlock"},controllerIndex:{name:"pointerId"}},flows:{out:{name:"done"}}},interBlockConnectors:[{input:"targetMesh",output:"value",inputBlockIndex:0,outputBlockIndex:1,isVariable:!0},{input:"array",output:"nodes",inputBlockIndex:2,outputBlockIndex:3,isVariable:!0},{input:"object",output:"meshOutOfPointer",inputBlockIndex:2,outputBlockIndex:0,isVariable:!0}],extraProcessor(o,n,i,s,t,u,e){var c,l,m,h,f,v,x;const a=t[t.length-1];a.config=a.config||{},a.config.glTF=e;const r=(m=(l=(c=o.configuration)==null?void 0:c.nodeIndex)==null?void 0:l.value)==null?void 0:m[0];if(r===void 0||typeof r!="number")throw new Error("nodeIndex not found in configuration");const d=_+r;return t[1].config.variable=d,u._userVariables[d]={className:"Mesh",id:(f=(h=e==null?void 0:e.nodes)==null?void 0:h[r]._babylonTransformNode)==null?void 0:f.id,uniqueId:(x=(v=e==null?void 0:e.nodes)==null?void 0:v[r]._babylonTransformNode)==null?void 0:x.uniqueId},t}});y("/nodes/{}/extensions/KHR_node_hoverability/hoverable",{get:o=>{const n=o._babylonTransformNode;return n&&n.pointerOverDisableMeshTesting!==void 0?n.pointerOverDisableMeshTesting:!0},set:(o,n)=>{var i;(i=n._primitiveBabylonMeshes)==null||i.forEach(s=>{s.pointerOverDisableMeshTesting=!o})},getTarget:o=>o._babylonTransformNode,getPropertyName:[()=>"pointerOverDisableMeshTesting"],type:"boolean"});class g{constructor(n){this.name=p,this._loader=n,this.enabled=n.isExtensionUsed(p)}async onReady(){var n;(n=this._loader.gltf.nodes)==null||n.forEach(i=>{var s,t,u;(s=i.extensions)!=null&&s.KHR_node_hoverability&&((t=i.extensions)==null?void 0:t.KHR_node_hoverability.hoverable)===!1&&((u=i._babylonTransformNode)==null||u.getChildMeshes().forEach(e=>{e.pointerOverDisableMeshTesting=!0}))})}dispose(){this._loader=null}}k(p);B(p,!0,o=>new g(o));export{g as KHR_node_hoverability}; diff --git a/assets/KHR_node_selectability-DTQB4lJ0.js b/assets/KHR_node_selectability-DTQB4lJ0.js new file mode 100644 index 0000000000000000000000000000000000000000..8696a09e8838257b5865ee848b50cc31451aee9a --- /dev/null +++ b/assets/KHR_node_selectability-DTQB4lJ0.js @@ -0,0 +1 @@ +import{u as h,r as x}from"./dynamic-Bj3y4CGC.js";import{e as y}from"./declarationMapper-oEUQrCmY.js";import{A as I}from"./objectModelMapping-DWcnlpHl.js";import"./index-BoUtOhbH.js";import"./sceneLoader-CutT-qCn.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./math.color-CzLaKyb6.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./node-C-Iu0ALa.js";import"./light-DT53MGnW.js";import"./math.axis-Ck7JfPPj.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";const s="KHR_node_selectability";y("event/onSelect",s,{blocks:["FlowGraphMeshPickEventBlock","FlowGraphGetVariableBlock","FlowGraphIndexOfBlock","KHR_interactivity/FlowGraphGLTFDataProvider"],configuration:{stopPropagation:{name:"stopPropagation"},nodeIndex:{name:"variable",toBlock:"FlowGraphGetVariableBlock",dataTransformer(e){return"pickedMesh_"+e}}},outputs:{values:{selectedNodeIndex:{name:"index",toBlock:"FlowGraphIndexOfBlock"},controllerIndex:{name:"pointerId"},selectionPoint:{name:"pickedPoint"},selectionRayOrigin:{name:"pickOrigin"}},flows:{out:{name:"done"}}},interBlockConnectors:[{input:"asset",output:"value",inputBlockIndex:0,outputBlockIndex:1,isVariable:!0},{input:"array",output:"nodes",inputBlockIndex:2,outputBlockIndex:3,isVariable:!0},{input:"object",output:"pickedMesh",inputBlockIndex:2,outputBlockIndex:0,isVariable:!0}],extraProcessor(e,o,i,r,n,p,t){var l,m,u,f,b,k,_;const c=n[n.length-1];c.config=c.config||{},c.config.glTF=t;const a=(u=(m=(l=e.configuration)==null?void 0:l.nodeIndex)==null?void 0:m.value)==null?void 0:u[0];if(a===void 0||typeof a!="number")throw new Error("nodeIndex not found in configuration");const d="pickedMesh_"+a;return n[1].config.variable=d,p._userVariables[d]={className:"Mesh",id:(b=(f=t==null?void 0:t.nodes)==null?void 0:f[a]._babylonTransformNode)==null?void 0:b.id,uniqueId:(_=(k=t==null?void 0:t.nodes)==null?void 0:k[a]._babylonTransformNode)==null?void 0:_.uniqueId},n}});I("/nodes/{}/extensions/KHR_node_selectability/selectable",{get:e=>{const o=e._babylonTransformNode;return o&&o.isPickable!==void 0?o.isPickable:!0},set:(e,o)=>{var i;(i=o._primitiveBabylonMeshes)==null||i.forEach(r=>{r.isPickable=e})},getTarget:e=>e._babylonTransformNode,getPropertyName:[()=>"isPickable"],type:"boolean"});class B{constructor(o){this.name=s,this._loader=o,this.enabled=o.isExtensionUsed(s)}async onReady(){var o;(o=this._loader.gltf.nodes)==null||o.forEach(i=>{var r,n,p;(r=i.extensions)!=null&&r.KHR_node_selectability&&((n=i.extensions)==null?void 0:n.KHR_node_selectability.selectable)===!1&&((p=i._babylonTransformNode)==null||p.getChildMeshes().forEach(t=>{t.isPickable=!1}))})}dispose(){this._loader=null}}h(s);x(s,!0,e=>new B(e));export{B as KHR_node_selectability}; diff --git a/assets/KHR_node_visibility-8MMT1LSc.js b/assets/KHR_node_visibility-8MMT1LSc.js new file mode 100644 index 0000000000000000000000000000000000000000..9e7aa8d08cfd428f7751dcc03f5b470a86ce6731 --- /dev/null +++ b/assets/KHR_node_visibility-8MMT1LSc.js @@ -0,0 +1 @@ +import{u as n,r as m}from"./dynamic-Bj3y4CGC.js";import{A as b}from"./objectModelMapping-DWcnlpHl.js";import"./index-BoUtOhbH.js";import"./sceneLoader-CutT-qCn.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./math.color-CzLaKyb6.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./node-C-Iu0ALa.js";import"./light-DT53MGnW.js";import"./math.axis-Ck7JfPPj.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";const s="KHR_node_visibility";b("/nodes/{}/extensions/KHR_node_visibility/visible",{get:o=>{const i=o._babylonTransformNode;return i&&i.isVisible!==void 0?i.isVisible:!0},set:(o,i)=>{var e,t;(e=i._primitiveBabylonMeshes)==null||e.forEach(r=>{r.inheritVisibility=!0}),i._babylonTransformNode&&(i._babylonTransformNode.isVisible=o),(t=i._primitiveBabylonMeshes)==null||t.forEach(r=>{r.isVisible=o})},getTarget:o=>o._babylonTransformNode,getPropertyName:[()=>"isVisible"],type:"boolean"});class l{constructor(i){this.name=s,this._loader=i,this.enabled=i.isExtensionUsed(s)}onReady(){if(!this._loader)return;const i=this._loader.gltf.nodes;if(i)for(const e of i){const t=e._babylonTransformNode;t&&(t.inheritVisibility=!0,e.extensions&&e.extensions.KHR_node_visibility&&e.extensions.KHR_node_visibility.visible===!1&&(t.isVisible=!1))}}dispose(){delete this._loader}}n(s);m(s,!0,o=>new l(o));export{l as KHR_node_visibility}; diff --git a/assets/KHR_texture_basisu-BZOdksUJ.js b/assets/KHR_texture_basisu-BZOdksUJ.js new file mode 100644 index 0000000000000000000000000000000000000000..99289bdf3963a3064cda63a079d68feb8d8bb19e --- /dev/null +++ b/assets/KHR_texture_basisu-BZOdksUJ.js @@ -0,0 +1 @@ +import{G as m,A as e}from"./glTFLoader-Brfz25eu.js";import{u as d,r as _}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./texture-BEqhDl5Y.js";import"./baseTexture-CgAggsey.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const o="KHR_texture_basisu";class c{constructor(r){this.name=o,this._loader=r,this.enabled=r.isExtensionUsed(o)}dispose(){this._loader=null}_loadTextureAsync(r,t,p){return m.LoadExtensionAsync(r,t,this.name,async(s,a)=>{const n=t.sampler==null?m.DefaultSampler:e.Get(`${r}/sampler`,this._loader.gltf.samplers,t.sampler),l=e.Get(`${s}/source`,this._loader.gltf.images,a.source);return await this._loader._createTextureAsync(r,n,l,u=>{p(u)},t._textureInfo.nonColorData?{useRGBAIfASTCBC7NotAvailableWhenUASTC:!0}:void 0,!t._textureInfo.nonColorData)})}}d(o);_(o,!0,i=>new c(i));export{c as KHR_texture_basisu}; diff --git a/assets/KHR_texture_transform-DlTx8k9g.js b/assets/KHR_texture_transform-DlTx8k9g.js new file mode 100644 index 0000000000000000000000000000000000000000..a63ef170d1f7727f30c25dc497001ae1a91091e7 --- /dev/null +++ b/assets/KHR_texture_transform-DlTx8k9g.js @@ -0,0 +1 @@ +import{T as f}from"./texture-BEqhDl5Y.js";import{G as e}from"./glTFLoader-Brfz25eu.js";import{u as d,r as c}from"./dynamic-Bj3y4CGC.js";import"./bufferUtils-DTRdUD8L.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./baseTexture-CgAggsey.js";import"./decorators.serialization-C7d7ykGG.js";import"./math.color-CzLaKyb6.js";import"./tools-D01N7ptR.js";import"./math.plane-Ce_75-g5.js";import"./index-BoUtOhbH.js";import"./mesh-BPwLonvs.js";import"./mesh.vertexData-Cr3zcPIw.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./subMesh-UWDo5wjI.js";import"./drawWrapper-CZVk0xN-.js";import"./smartArray-CO6iJ0u5.js";import"./node-C-Iu0ALa.js";import"./math.viewport-CgkTt1RS.js";import"./sceneComponent-Dflhczui.js";import"./lightConstants-B1TSTh-k.js";import"./sceneLoaderFlags-wywyb9ml.js";import"./math.axis-Ck7JfPPj.js";import"./material-CrEsrP1R.js";import"./drawWrapper.functions-Dzz0ghog.js";import"./cameraInputsManager-BKG-Rtee.js";import"./deviceInputEvents-BTza-zoR.js";import"./bone-B35odufe.js";import"./skeleton-BVUVDN0a.js";import"./rawTexture-Cp8_XuDs.js";import"./animation-IftAdLIx.js";import"./sceneLoader-CutT-qCn.js";import"./scene-gn_hoGMy.js";import"./renderingManager-CiY2OUrf.js";import"./perfCounter-DusmGz8t.js";import"./assetContainer-CqhaFRHR.js";import"./instancedMesh-DqDAzGKA.js";import"./light-DT53MGnW.js";import"./objectModelMapping-DWcnlpHl.js";const i="KHR_texture_transform";class n{constructor(o){this.name=i,this._loader=o,this.enabled=this._loader.isExtensionUsed(i)}dispose(){this._loader=null}loadTextureInfoAsync(o,p,s){return e.LoadExtensionAsync(o,p,this.name,async(a,r)=>await this._loader.loadTextureInfoAsync(o,p,t=>{if(!(t instanceof f))throw new Error(`${a}: Texture type not supported`);r.offset&&(t.uOffset=r.offset[0],t.vOffset=r.offset[1]),t.uRotationCenter=0,t.vRotationCenter=0,r.rotation&&(t.wAng=-r.rotation),r.scale&&(t.uScale=r.scale[0],t.vScale=r.scale[1]),r.texCoord!=null&&(t.coordinatesIndex=r.texCoord),s(t)}))}}d(i);c(i,!0,m=>new n(m));export{n as KHR_texture_transform}; diff --git a/assets/KHR_xmp_json_ld-CDu9dwUq.js b/assets/KHR_xmp_json_ld-CDu9dwUq.js new file mode 100644 index 0000000000000000000000000000000000000000..5213b0cfa8945765e83506b537d2c08db8bf1883 --- /dev/null +++ b/assets/KHR_xmp_json_ld-CDu9dwUq.js @@ -0,0 +1 @@ +import{u as n,r as m}from"./dynamic-Bj3y4CGC.js";import"./index-BoUtOhbH.js";import"./sceneLoader-CutT-qCn.js";import"./tools-D01N7ptR.js";import"./math.vector-C1xyPDEl.js";import"./math.scalar.functions-DkeaWAWz.js";import"./decorators.serialization-C7d7ykGG.js";import"./bufferUtils-DTRdUD8L.js";import"./math.color-CzLaKyb6.js";import"./scene-gn_hoGMy.js";import"./smartArray-CO6iJ0u5.js";import"./lightConstants-B1TSTh-k.js";import"./sceneComponent-Dflhczui.js";import"./math.plane-Ce_75-g5.js";import"./buffer-DqKlo1ts.js";import"./dataBuffer-CgoqiUzT.js";import"./renderingManager-CiY2OUrf.js";import"./deviceInputEvents-BTza-zoR.js";import"./perfCounter-DusmGz8t.js";import"./sceneLoaderFlags-wywyb9ml.js";const o="KHR_xmp_json_ld";class l{constructor(t){this.name=o,this.order=100,this._loader=t,this.enabled=this._loader.isExtensionUsed(o)}dispose(){this._loader=null}onLoading(){var e,i,a;if(this._loader.rootBabylonMesh===null)return;const t=(e=this._loader.gltf.extensions)==null?void 0:e.KHR_xmp_json_ld,s=(a=(i=this._loader.gltf.asset)==null?void 0:i.extensions)==null?void 0:a.KHR_xmp_json_ld;if(t&&s){const p=+s.packet;t.packets&&pnew l(r));export{l as KHR_xmp_json_ld}; diff --git a/assets/LineageSection-C9aB_RJM.js b/assets/LineageSection-C9aB_RJM.js new file mode 100644 index 0000000000000000000000000000000000000000..22c793212b67ebd72d581a2cc1c705a6a62bd6d8 --- /dev/null +++ b/assets/LineageSection-C9aB_RJM.js @@ -0,0 +1 @@ +var ur=Object.defineProperty;var ut=e=>{throw TypeError(e)};var hr=(e,t,r)=>t in e?ur(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ht=(e,t,r)=>hr(e,typeof t!="symbol"?t+"":t,r),Ve=(e,t,r)=>t.has(e)||ut("Cannot "+r);var oe=(e,t,r)=>(Ve(e,t,"read from private field"),r?r.call(e):t.get(e)),ke=(e,t,r)=>t.has(e)?ut("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ge=(e,t,r,n)=>(Ve(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),ft=(e,t,r)=>(Ve(e,t,"access private method"),r);import{e as fr,u as gr,a as Ue,p as et,b as Z,s as te,c as Tt,d as tt,g as h,f as y,h as O,i as H,j as vr,t as K,k as Be,l as V,m as pr,n as L,o as rt,q as j,r as Le,v as W,w as fe,x as B,y as ee,z as R,A as Ie,B as le,C as Pt,D as Qe,E as br,F as mr,S as _r,G as wr,H as gt,I as vt,J as Er,K as yr}from"./index-BoUtOhbH.js";var de,be,Ne,Se,St;const Fe=class Fe{constructor(t){ke(this,Se);ke(this,de,new WeakMap);ke(this,be);ke(this,Ne);Ge(this,Ne,t)}observe(t,r){var n=oe(this,de).get(t)||new Set;return n.add(r),oe(this,de).set(t,n),ft(this,Se,St).call(this).observe(t,oe(this,Ne)),()=>{var o=oe(this,de).get(t);o.delete(r),o.size===0&&(oe(this,de).delete(t),oe(this,be).unobserve(t))}}};de=new WeakMap,be=new WeakMap,Ne=new WeakMap,Se=new WeakSet,St=function(){return oe(this,be)??Ge(this,be,new ResizeObserver(t=>{for(var r of t){Fe.entries.set(r.target,r);for(var n of oe(this,de).get(r.target)||[])n(r)}}))},ht(Fe,"entries",new WeakMap);let $e=Fe;var kr=new $e({box:"border-box"});function pt(e,t,r){var n=kr.observe(e,()=>r(e[t]));fr(()=>(gr(()=>r(e[t])),n))}var Ft=Object.defineProperty,xr=(e,t,r)=>t in e?Ft(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Or=(e,t)=>{for(var r in t)Ft(e,r,{get:t[r],enumerable:!0})},Nr=(e,t,r)=>xr(e,t+"",r),Dt={};Or(Dt,{Graph:()=>J,alg:()=>nt,json:()=>qt,version:()=>jr});var Ir=Object.defineProperty,Rt=(e,t)=>{for(var r in t)Ir(e,r,{get:t[r],enumerable:!0})},J=class{constructor(e){this._isDirected=!0,this._isMultigraph=!1,this._isCompound=!1,this._nodes={},this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={},this._nodeCount=0,this._edgeCount=0,this._defaultNodeLabelFn=()=>{},this._defaultEdgeLabelFn=()=>{},e&&(this._isDirected="directed"in e?e.directed:!0,this._isMultigraph="multigraph"in e?e.multigraph:!1,this._isCompound="compound"in e?e.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children["\0"]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return typeof e!="function"?this._defaultNodeLabelFn=()=>e:this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){return this.nodes().filter(e=>Object.keys(this._in[e]).length===0)}sinks(){return this.nodes().filter(e=>Object.keys(this._out[e]).length===0)}setNodes(e,t){return e.forEach(r=>{t!==void 0?this.setNode(r,t):this.setNode(r)}),this}setNode(e,t){return e in this._nodes?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]="\0",this._children[e]={},this._children["\0"][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return e in this._nodes}removeNode(e){if(e in this._nodes){let t=r=>this.removeEdge(this._edgeObjs[r]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(r=>{this.setParent(r)}),delete this._children[e]),Object.keys(this._in[e]).forEach(t),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(t===void 0)t="\0";else{t+="";for(let r=t;r!==void 0;r=this.parent(r))if(r===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}parent(e){if(this._isCompound){let t=this._parent[e];if(t!=="\0")return t}}children(e="\0"){if(this._isCompound){let t=this._children[e];if(t)return Object.keys(t)}else{if(e==="\0")return this.nodes();if(this.hasNode(e))return[]}return[]}predecessors(e){let t=this._preds[e];if(t)return Object.keys(t)}successors(e){let t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){let t=this.predecessors(e);if(t){let r=new Set(t);for(let n of this.successors(e))r.add(n);return Array.from(r.values())}}isLeaf(e){let t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){let t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph()),Object.entries(this._nodes).forEach(([o,s])=>{e(o)&&t.setNode(o,s)}),Object.values(this._edgeObjs).forEach(o=>{t.hasNode(o.v)&&t.hasNode(o.w)&&t.setEdge(o,this.edge(o))});let r={},n=o=>{let s=this.parent(o);return!s||t.hasNode(s)?(r[o]=s??void 0,s??void 0):s in r?r[s]:n(s)};return this._isCompound&&t.nodes().forEach(o=>t.setParent(o,n(o))),t}setDefaultEdgeLabel(e){return typeof e!="function"?this._defaultEdgeLabelFn=()=>e:this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){return e.reduce((r,n)=>(t!==void 0?this.setEdge(r,n,t):this.setEdge(r,n),n)),this}setEdge(e,t,r,n){let o,s,i,a,d=!1;typeof e=="object"&&e!==null&&"v"in e?(o=e.v,s=e.w,i=e.name,arguments.length===2&&(a=t,d=!0)):(o=e,s=t,i=n,arguments.length>2&&(a=r,d=!0)),o=""+o,s=""+s,i!==void 0&&(i=""+i);let l=xe(this._isDirected,o,s,i);if(l in this._edgeLabels)return d&&(this._edgeLabels[l]=a),this;if(i!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(o),this.setNode(s),this._edgeLabels[l]=d?a:this._defaultEdgeLabelFn(o,s,i);let c=Mr(this._isDirected,o,s,i);return o=c.v,s=c.w,Object.freeze(c),this._edgeObjs[l]=c,bt(this._preds[s],o),bt(this._sucs[o],s),this._in[s][l]=c,this._out[o][l]=c,this._edgeCount++,this}edge(e,t,r){let n=arguments.length===1?ze(this._isDirected,e):xe(this._isDirected,e,t,r);return this._edgeLabels[n]}edgeAsObj(e,t,r){let n=arguments.length===1?this.edge(e):this.edge(e,t,r);return typeof n!="object"?{label:n}:n}hasEdge(e,t,r){return(arguments.length===1?ze(this._isDirected,e):xe(this._isDirected,e,t,r))in this._edgeLabels}removeEdge(e,t,r){let n=arguments.length===1?ze(this._isDirected,e):xe(this._isDirected,e,t,r),o=this._edgeObjs[n];if(o){let s=o.v,i=o.w;delete this._edgeLabels[n],delete this._edgeObjs[n],mt(this._preds[i],s),mt(this._sucs[s],i),delete this._in[i][n],delete this._out[s][n],this._edgeCount--}return this}inEdges(e,t){return this.isDirected()?this.filterEdges(this._in[e],e,t):this.nodeEdges(e,t)}outEdges(e,t){return this.isDirected()?this.filterEdges(this._out[e],e,t):this.nodeEdges(e,t)}nodeEdges(e,t){if(e in this._nodes)return this.filterEdges({...this._in[e],...this._out[e]},e,t)}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}filterEdges(e,t,r){if(!e)return;let n=Object.values(e);return r?n.filter(o=>o.v===t&&o.w===r||o.v===r&&o.w===t):n}};function bt(e,t){e[t]?e[t]++:e[t]=1}function mt(e,t){e[t]!==void 0&&!--e[t]&&delete e[t]}function xe(e,t,r,n){let o=""+t,s=""+r;if(!e&&o>s){let i=o;o=s,s=i}return o+""+s+""+(n===void 0?"\0":n)}function Mr(e,t,r,n){let o=""+t,s=""+r;if(!e&&o>s){let a=o;o=s,s=a}let i={v:o,w:s};return n&&(i.name=n),i}function ze(e,t){return xe(e,t.v,t.w,t.name)}var jr="4.0.1",qt={};Rt(qt,{read:()=>Pr,write:()=>Lr});function Lr(e){let t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:Cr(e),edges:Tr(e)},r=e.graph();return r!==void 0&&(t.value=structuredClone(r)),t}function Cr(e){return e.nodes().map(t=>{let r=e.node(t),n=e.parent(t),o={v:t};return r!==void 0&&(o.value=r),n!==void 0&&(o.parent=n),o})}function Tr(e){return e.edges().map(t=>{let r=e.edge(t),n={v:t.v,w:t.w};return t.name!==void 0&&(n.name=t.name),r!==void 0&&(n.value=r),n})}function Pr(e){let t=new J(e.options);return e.value!==void 0&&t.setGraph(e.value),e.nodes.forEach(r=>{t.setNode(r.v,r.value),r.parent&&t.setParent(r.v,r.parent)}),e.edges.forEach(r=>{t.setEdge({v:r.v,w:r.w,name:r.name},r.value)}),t}var nt={};Rt(nt,{CycleException:()=>Te,bellmanFord:()=>Yt,components:()=>Dr,dijkstra:()=>Ce,dijkstraAll:()=>Yr,findCycles:()=>Ar,floydWarshall:()=>Gr,isAcyclic:()=>zr,postorder:()=>Wr,preorder:()=>Hr,prim:()=>Kr,shortestPaths:()=>Zr,tarjan:()=>Vt,topsort:()=>Gt});var Sr=()=>1;function Yt(e,t,r,n){return Fr(e,String(t),r||Sr,n||function(o){return e.outEdges(o)})}function Fr(e,t,r,n){let o={},s,i=0,a=e.nodes(),d=function(u){let g=r(u);o[u.v].distance+ge.key)}has(e){return e in this._keyIndices}priority(e){let t=this._keyIndices[e];if(t!==void 0)return this._arr[t].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(e,t){let r=this._keyIndices,n=String(e);if(!(n in r)){let o=this._arr,s=o.length;return r[n]=s,o.push({key:n,priority:t}),this._decrease(s),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);let e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){let r=this._keyIndices[e];if(r===void 0)throw new Error(`Key not found: ${e}`);let n=this._arr[r].priority;if(t>n)throw new Error(`New priority is greater than current priority. Key: ${e} Old: ${n} New: ${t}`);this._arr[r].priority=t,this._decrease(r)}_heapify(e){let t=this._arr,r=2*e,n=r+1,o=e;r>1,!(t[n].priority1;function Ce(e,t,r,n){let o=function(s){return e.outEdges(s)};return qr(e,String(t),r||Rr,n||o)}function qr(e,t,r,n){let o={},s=new At,i,a,d=function(l){let c=l.v!==i?l.v:l.w,u=o[c],g=r(l),v=a.distance+g;if(g<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+l+" Weight: "+g);v0&&(i=s.removeMin(),a=o[i],a.distance!==Number.POSITIVE_INFINITY);)n(i).forEach(d);return o}function Yr(e,t,r){return e.nodes().reduce(function(n,o){return n[o]=Ce(e,o,t,r),n},{})}function Vt(e){let t=0,r=[],n={},o=[];function s(i){let a=n[i]={onStack:!0,lowlink:t,index:t++};if(r.push(i),e.successors(i).forEach(function(d){d in n?n[d].onStack&&(a.lowlink=Math.min(a.lowlink,n[d].index)):(s(d),a.lowlink=Math.min(a.lowlink,n[d].lowlink))}),a.lowlink===a.index){let d=[],l;do l=r.pop(),n[l].onStack=!1,d.push(l);while(i!==l);o.push(d)}}return e.nodes().forEach(function(i){i in n||s(i)}),o}function Ar(e){return Vt(e).filter(function(t){return t.length>1||t.length===1&&e.hasEdge(t[0],t[0])})}var Vr=()=>1;function Gr(e,t,r){return Br(e,t||Vr,r||function(n){return e.outEdges(n)})}function Br(e,t,r){let n={},o=e.nodes();return o.forEach(function(s){n[s]={},n[s][s]={distance:0,predecessor:""},o.forEach(function(i){s!==i&&(n[s][i]={distance:Number.POSITIVE_INFINITY,predecessor:""})}),r(s).forEach(function(i){let a=i.v===s?i.w:i.v,d=t(i);n[s][a]={distance:d,predecessor:s}})}),o.forEach(function(s){let i=n[s];o.forEach(function(a){let d=n[a];o.forEach(function(l){let c=d[s],u=i[l],g=d[l],v=c.distance+u.distance;v{var d;return(d=e.isDirected()?e.successors(a):e.neighbors(a))!=null?d:[]}),i={};return t.forEach(function(a){if(!e.hasNode(a))throw new Error("Graph does not have node: "+a);o=Bt(e,a,r==="post",i,s,n,o)}),o}function Bt(e,t,r,n,o,s,i){return t in n||(n[t]=!0,r||(i=s(i,t)),o(t).forEach(function(a){i=Bt(e,a,r,n,o,s,i)}),r&&(i=s(i,t))),i}function zt(e,t,r){return Xr(e,t,r,function(n,o){return n.push(o),n},[])}function Wr(e,t){return zt(e,t,"post")}function Hr(e,t){return zt(e,t,"pre")}function Kr(e,t){let r=new J,n={},o=new At,s;function i(d){let l=d.v===s?d.w:d.v,c=o.priority(l);if(c!==void 0){let u=t(d);u0;){if(s=o.removeMin(),s in n)r.setEdge(s,n[s]);else{if(a)throw new Error("Input graph is not connected: "+e);a=!0}e.nodeEdges(s).forEach(i)}return r}function Zr(e,t,r,n){return Ur(e,t,r,n??(o=>{let s=e.outEdges(o);return s??[]}))}function Ur(e,t,r,n){if(r===void 0)return Ce(e,t,r,n);let o=!1,s=e.nodes();for(let i=0;it.setNode(r,e.node(r))),e.edges().forEach(r=>{let n=t.edge(r.v,r.w)||{weight:0,minlen:1},o=e.edge(r);t.setEdge(r.v,r.w,{weight:n.weight+o.weight,minlen:Math.max(n.minlen,o.minlen)})}),t}function Xt(e){let t=new J({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(r=>{e.children(r).length||t.setNode(r,e.node(r))}),e.edges().forEach(r=>{t.setEdge(r,e.edge(r))}),t}function _t(e,t){let r=e.x,n=e.y,o=t.x-r,s=t.y-n,i=e.width/2,a=e.height/2;if(!o&&!s)throw new Error("Not possible to find intersection inside of the rectangle");let d,l;return Math.abs(s)*i>Math.abs(o)*a?(s<0&&(a=-a),d=a*o/s,l=a):(o<0&&(i=-i),d=i,l=i*s/o),{x:r+d,y:n+l}}function De(e){let t=Oe(Ht(e)+1).map(()=>[]);return e.nodes().forEach(r=>{let n=e.node(r),o=n.rank;o!==void 0&&(t[o]||(t[o]=[]),t[o][n.order]=r)}),t}function $r(e){let t=e.nodes().map(n=>{let o=e.node(n).rank;return o===void 0?Number.MAX_VALUE:o}),r=re(Math.min,t);e.nodes().forEach(n=>{let o=e.node(n);Object.hasOwn(o,"rank")&&(o.rank-=r)})}function Jr(e){let t=e.nodes().map(i=>e.node(i).rank).filter(i=>i!==void 0),r=re(Math.min,t),n=[];e.nodes().forEach(i=>{let a=e.node(i).rank-r;n[a]||(n[a]=[]),n[a].push(i)});let o=0,s=e.graph().nodeRankFactor;Array.from(n).forEach((i,a)=>{i===void 0&&a%s!==0?--o:i!==void 0&&o&&i.forEach(d=>e.node(d).rank+=o)})}function wt(e,t,r,n){let o={width:0,height:0};return arguments.length>=4&&(o.rank=r,o.order=n),_e(e,"border",o,t)}function en(e,t=Wt){let r=[];for(let n=0;nWt){let r=en(t);return e(...r.map(n=>e(...n)))}else return e(...t)}function Ht(e){let t=e.nodes().map(r=>{let n=e.node(r).rank;return n===void 0?Number.MIN_VALUE:n});return re(Math.max,t)}function tn(e,t){let r={lhs:[],rhs:[]};return e.forEach(n=>{t(n)?r.lhs.push(n):r.rhs.push(n)}),r}function rn(e,t){let r=Date.now();try{return t()}finally{console.log(e+" time: "+(Date.now()-r)+"ms")}}function nn(e,t){return t()}var on=0;function ot(e){let t=++on;return e+(""+t)}function Oe(e,t,r=1){t==null&&(t=e,e=0);let n=s=>stn[t]:r=t,Object.entries(e).reduce((n,[o,s])=>(n[o]=r(s,o),n),{})}function sn(e,t){return e.reduce((r,n,o)=>(r[n]=t[o],r),{})}var qe="\0",an=class{constructor(){Nr(this,"_sentinel");let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return Et(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&Et(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,r=t._prev;for(;r!==t;)e.push(JSON.stringify(r,ln)),r=r._prev;return"["+e.join(", ")+"]"}};function Et(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function ln(e,t){if(e!=="_next"&&e!=="_prev")return t}var dn=an,cn=()=>1;function un(e,t){if(e.nodeCount()<=1)return[];let r=fn(e,t||cn);return hn(r.graph,r.buckets,r.zeroIdx).flatMap(n=>e.outEdges(n.v,n.w)||[])}function hn(e,t,r){var n;let o=[],s=t[t.length-1],i=t[0],a;for(;e.nodeCount();){for(;a=i.dequeue();)Xe(e,t,r,a);for(;a=s.dequeue();)Xe(e,t,r,a);if(e.nodeCount()){for(let d=t.length-2;d>0;--d)if(a=(n=t[d])==null?void 0:n.dequeue(),a){o=o.concat(Xe(e,t,r,a,!0)||[]);break}}}return o}function Xe(e,t,r,n,o){let s=[],i=o?s:void 0;return(e.inEdges(n.v)||[]).forEach(a=>{let d=e.edge(a),l=e.node(a.v);o&&s.push({v:a.v,w:a.w}),l.out-=d,Je(t,r,l)}),(e.outEdges(n.v)||[]).forEach(a=>{let d=e.edge(a),l=a.w,c=e.node(l);c.in-=d,Je(t,r,c)}),e.removeNode(n.v),i}function fn(e,t){let r=new J,n=0,o=0;e.nodes().forEach(a=>{r.setNode(a,{v:a,in:0,out:0})}),e.edges().forEach(a=>{let d=r.edge(a.v,a.w)||0,l=t(a),c=d+l;r.setEdge(a.v,a.w,c);let u=r.node(a.v),g=r.node(a.w);o=Math.max(o,u.out+=l),n=Math.max(n,g.in+=l)});let s=gn(o+n+3).map(()=>new dn),i=n+1;return r.nodes().forEach(a=>{Je(s,i,r.node(a))}),{graph:r,buckets:s,zeroIdx:i}}function Je(e,t,r){var n,o,s;r.out?r.in?(s=e[r.out-r.in+t])==null||s.enqueue(r):(o=e[e.length-1])==null||o.enqueue(r):(n=e[0])==null||n.enqueue(r)}function gn(e){let t=[];for(let r=0;r{let n=e.edge(r);e.removeEdge(r),n.forwardName=r.name,n.reversed=!0,e.setEdge(r.w,r.v,n,ot("rev"))});function t(r){return n=>r.edge(n).weight}}function pn(e){let t=[],r={},n={};function o(s){Object.hasOwn(n,s)||(n[s]=!0,r[s]=!0,e.outEdges(s).forEach(i=>{Object.hasOwn(r,i.w)?t.push(i):o(i.w)}),delete r[s])}return e.nodes().forEach(o),t}function bn(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.reversed){e.removeEdge(t);let n=r.forwardName;delete r.reversed,delete r.forwardName,e.setEdge(t.w,t.v,r,n)}})}function mn(e){e.graph().dummyChains=[],e.edges().forEach(t=>_n(e,t))}function _n(e,t){let r=t.v,n=e.node(r).rank,o=t.w,s=e.node(o).rank,i=t.name,a=e.edge(t),d=a.labelRank;if(s===n+1)return;e.removeEdge(t);let l,c,u;for(u=0,++n;n{let r=e.node(t),n=r.edgeLabel,o;for(e.setEdge(r.edgeObj,n);r.dummy;)o=e.successors(t)[0],e.removeNode(t),n.points.push({x:r.x,y:r.y}),r.dummy==="edge-label"&&(n.x=r.x,n.y=r.y,n.width=r.width,n.height=r.height),t=o,r=e.node(t)})}function st(e){let t={};function r(n){let o=e.node(n);if(Object.hasOwn(t,n))return o.rank;t[n]=!0;let s=e.outEdges(n),i=s?s.map(d=>d==null?Number.POSITIVE_INFINITY:r(d.w)-e.edge(d).minlen):[],a=re(Math.min,i);return a===Number.POSITIVE_INFINITY&&(a=0),o.rank=a}e.sources().forEach(r)}function me(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var Kt=En;function En(e){let t=new J({directed:!1}),r=e.nodes();if(r.length===0)throw new Error("Graph must have at least one node");let n=r[0],o=e.nodeCount();t.setNode(n,{});let s,i;for(;yn(t,e){let i=s.v,a=n===i?s.w:i;!e.hasNode(a)&&!me(t,s)&&(e.setNode(a,{}),e.setEdge(n,a,{}),r(a))})}return e.nodes().forEach(r),e.nodeCount()}function kn(e,t){return t.edges().reduce((r,n)=>{let o=Number.POSITIVE_INFINITY;return e.hasNode(n.v)!==e.hasNode(n.w)&&(o=me(t,n)),ot.node(n).rank+=r)}var{preorder:On,postorder:Nn}=nt,In=ge;ge.initLowLimValues=at;ge.initCutValues=it;ge.calcCutValue=Zt;ge.leaveEdge=Qt;ge.enterEdge=$t;ge.exchangeEdges=Jt;function ge(e){e=Qr(e),st(e);let t=Kt(e);at(t),it(t,e);let r,n;for(;r=Qt(t);)n=$t(t,e,r),Jt(t,e,r,n)}function it(e,t){let r=Nn(e,e.nodes());r=r.slice(0,r.length-1),r.forEach(n=>Mn(e,t,n))}function Mn(e,t,r){let n=e.node(r).parent,o=e.edge(r,n);o.cutvalue=Zt(e,t,r)}function Zt(e,t,r){let n=e.node(r).parent,o=!0,s=t.edge(r,n),i=0;s||(o=!1,s=t.edge(n,r)),i=s.weight;let a=t.nodeEdges(r);return a&&a.forEach(d=>{let l=d.v===r,c=l?d.w:d.v;if(c!==n){let u=l===o,g=t.edge(d).weight;if(i+=u?g:-g,Ln(e,r,c)){let v=e.edge(r,c).cutvalue;i+=u?-v:v}}}),i}function at(e,t){arguments.length<2&&(t=e.nodes()[0]),Ut(e,{},1,t)}function Ut(e,t,r,n,o){let s=r,i=e.node(n);t[n]=!0;let a=e.neighbors(n);return a&&a.forEach(d=>{Object.hasOwn(t,d)||(r=Ut(e,t,r,d,n))}),i.low=s,i.lim=r++,o?i.parent=o:delete i.parent,r}function Qt(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function $t(e,t,r){let n=r.v,o=r.w;t.hasEdge(n,o)||(n=r.w,o=r.v);let s=e.node(n),i=e.node(o),a=s,d=!1;return s.lim>i.lim&&(a=i,d=!0),t.edges().filter(l=>d===yt(e,e.node(l.v),a)&&d!==yt(e,e.node(l.w),a)).reduce((l,c)=>me(t,c)!e.node(o).parent);if(!r)return;let n=On(e,[r]);n=n.slice(1),n.forEach(o=>{let s=e.node(o).parent,i=t.edge(o,s),a=!1;i||(i=t.edge(s,o),a=!0),t.node(o).rank=t.node(s).rank+(a?i.minlen:-i.minlen)})}function Ln(e,t,r){return e.hasEdge(t,r)}function yt(e,t,r){return r.low<=t.lim&&t.lim<=r.lim}var Cn=Tn;function Tn(e){let t=e.graph().ranker;if(typeof t=="function")return t(e);switch(t){case"network-simplex":kt(e);break;case"tight-tree":Sn(e);break;case"longest-path":Pn(e);break;case"none":break;default:kt(e)}}var Pn=st;function Sn(e){st(e),Kt(e)}function kt(e){In(e)}var Fn=Dn;function Dn(e){let t=qn(e);e.graph().dummyChains.forEach(r=>{let n=e.node(r),o=n.edgeObj,s=Rn(e,t,o.v,o.w),i=s.path,a=s.lca,d=0,l=i[d],c=!0;for(;r!==o.w;){if(n=e.node(r),c){for(;(l=i[d])!==a&&e.node(l).maxRanki||a>t[d].lim));let l=d,c=n;for(;(c=e.parent(c))!==l;)s.push(c);return{path:o.concat(s.reverse()),lca:l}}function qn(e){let t={},r=0;function n(o){let s=r;e.children(o).forEach(n),t[o]={low:s,lim:r++}}return e.children(qe).forEach(n),t}function Yn(e){let t=_e(e,"root",{},"_root"),r=An(e),n=Object.values(r),o=re(Math.max,n)-1,s=2*o+1;e.graph().nestingRoot=t,e.edges().forEach(a=>e.edge(a).minlen*=s);let i=Vn(e)+1;e.children(qe).forEach(a=>er(e,t,s,i,o,r,a)),e.graph().nodeRankFactor=s}function er(e,t,r,n,o,s,i){var a;let d=e.children(i);if(!d.length){i!==t&&e.setEdge(t,i,{weight:0,minlen:r});return}let l=wt(e,"_bt"),c=wt(e,"_bb"),u=e.node(i);e.setParent(l,i),u.borderTop=l,e.setParent(c,i),u.borderBottom=c,d.forEach(g=>{var v;er(e,t,r,n,o,s,g);let p=e.node(g),b=p.borderTop?p.borderTop:g,k=p.borderBottom?p.borderBottom:g,N=p.borderTop?n:2*n,q=b!==k?1:o-((v=s[i])!=null?v:0)+1;e.setEdge(l,b,{weight:N,minlen:q,nestingEdge:!0}),e.setEdge(k,c,{weight:N,minlen:q,nestingEdge:!0})}),e.parent(i)||e.setEdge(t,l,{weight:0,minlen:o+((a=s[i])!=null?a:0)})}function An(e){let t={};function r(n,o){let s=e.children(n);s&&s.length&&s.forEach(i=>r(i,o+1)),t[n]=o}return e.children(qe).forEach(n=>r(n,1)),t}function Vn(e){return e.edges().reduce((t,r)=>t+e.edge(r).weight,0)}function Gn(e){let t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(r=>{e.edge(r).nestingEdge&&e.removeEdge(r)})}var Bn=zn;function zn(e){function t(r){let n=e.children(r),o=e.node(r);if(n.length&&n.forEach(t),Object.hasOwn(o,"minRank")){o.borderLeft=[],o.borderRight=[];for(let s=o.minRank,i=o.maxRank+1;sOt(e.node(t))),e.edges().forEach(t=>Ot(e.edge(t)))}function Ot(e){let t=e.width;e.width=e.height,e.height=t}function Hn(e){e.nodes().forEach(t=>We(e.node(t))),e.edges().forEach(t=>{var r;let n=e.edge(t);(r=n.points)==null||r.forEach(We),Object.hasOwn(n,"y")&&We(n)})}function We(e){e.y=-e.y}function Kn(e){e.nodes().forEach(t=>He(e.node(t))),e.edges().forEach(t=>{var r;let n=e.edge(t);(r=n.points)==null||r.forEach(He),Object.hasOwn(n,"x")&&He(n)})}function He(e){let t=e.x;e.x=e.y,e.y=t}function Zn(e){let t={},r=e.nodes().filter(a=>!e.children(a).length),n=r.map(a=>e.node(a).rank),o=re(Math.max,n),s=Oe(o+1).map(()=>[]);function i(a){if(t[a])return;t[a]=!0;let d=e.node(a);s[d.rank].push(a);let l=e.successors(a);l&&l.forEach(i)}return r.sort((a,d)=>e.node(a).rank-e.node(d).rank).forEach(i),s}function Un(e,t){let r=0;for(let n=1;nc)),o=t.flatMap(l=>{let c=e.outEdges(l);return c?c.map(u=>({pos:n[u.w],weight:e.edge(u).weight})).sort((u,g)=>u.pos-g.pos):[]}),s=1;for(;s{let c=l.pos+s;a[c]+=l.weight;let u=0;for(;c>0;)c%2&&(u+=a[c+1]),c=c-1>>1,a[c]+=l.weight;d+=l.weight*u}),d}function $n(e,t=[]){return t.map(r=>{let n=e.inEdges(r);if(!n||!n.length)return{v:r};{let o=n.reduce((s,i)=>{let a=e.edge(i),d=e.node(i.v);return{sum:s.sum+a.weight*d.order,weight:s.weight+a.weight}},{sum:0,weight:0});return{v:r,barycenter:o.sum/o.weight,weight:o.weight}}})}function Jn(e,t){let r={};e.forEach((o,s)=>{let i={indegree:0,in:[],out:[],vs:[o.v],i:s};o.barycenter!==void 0&&(i.barycenter=o.barycenter,i.weight=o.weight),r[o.v]=i}),t.edges().forEach(o=>{let s=r[o.v],i=r[o.w];s!==void 0&&i!==void 0&&(i.indegree++,s.out.push(i))});let n=Object.values(r).filter(o=>!o.indegree);return eo(n)}function eo(e){let t=[];function r(o){return s=>{s.merged||(s.barycenter===void 0||o.barycenter===void 0||s.barycenter>=o.barycenter)&&to(o,s)}}function n(o){return s=>{s.in.push(o),--s.indegree===0&&e.push(s)}}for(;e.length;){let o=e.pop();t.push(o),o.in.reverse().forEach(r(o)),o.out.forEach(n(o))}return t.filter(o=>!o.merged).map(o=>Pe(o,["vs","i","barycenter","weight"]))}function to(e,t){let r=0,n=0;e.weight&&(r+=e.barycenter*e.weight,n+=e.weight),t.weight&&(r+=t.barycenter*t.weight,n+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=r/n,e.weight=n,e.i=Math.min(t.i,e.i),t.merged=!0}function ro(e,t){let r=tn(e,c=>Object.hasOwn(c,"barycenter")),n=r.lhs,o=r.rhs.sort((c,u)=>u.i-c.i),s=[],i=0,a=0,d=0;n.sort(no(!!t)),d=Nt(s,o,d),n.forEach(c=>{d+=c.vs.length,s.push(c.vs),i+=c.barycenter*c.weight,a+=c.weight,d=Nt(s,o,d)});let l={vs:s.flat(1)};return a&&(l.barycenter=i/a,l.weight=a),l}function Nt(e,t,r){let n;for(;t.length&&(n=t[t.length-1]).i<=r;)t.pop(),e.push(n.vs),r++;return r}function no(e){return(t,r)=>t.barycenterr.barycenter?1:e?r.i-t.i:t.i-r.i}function rr(e,t,r,n){let o=e.children(t),s=e.node(t),i=s?s.borderLeft:void 0,a=s?s.borderRight:void 0,d={};i&&(o=o.filter(g=>g!==i&&g!==a));let l=$n(e,o);l.forEach(g=>{if(e.children(g.v).length){let v=rr(e,g.v,r,n);d[g.v]=v,Object.hasOwn(v,"barycenter")&&so(g,v)}});let c=Jn(l,r);oo(c,d);let u=ro(c,n);if(i&&a){u.vs=[i,u.vs,a].flat(1);let g=e.predecessors(i);if(g&&g.length){let v=e.node(g[0]),p=e.predecessors(a),b=e.node(p[0]);Object.hasOwn(u,"barycenter")||(u.barycenter=0,u.weight=0),u.barycenter=(u.barycenter*u.weight+v.order+b.order)/(u.weight+2),u.weight+=2}}return u}function oo(e,t){e.forEach(r=>{r.vs=r.vs.flatMap(n=>t[n]?t[n].vs:n)})}function so(e,t){e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight):(e.barycenter=t.barycenter,e.weight=t.weight)}function io(e,t,r,n){n||(n=e.nodes());let o=ao(e),s=new J({compound:!0}).setGraph({root:o}).setDefaultNodeLabel(i=>e.node(i));return n.forEach(i=>{let a=e.node(i),d=e.parent(i);if(a.rank===t||a.minRank<=t&&t<=a.maxRank){s.setNode(i),s.setParent(i,d||o);let l=e[r](i);l&&l.forEach(c=>{let u=c.v===i?c.w:c.v,g=s.edge(u,i),v=g!==void 0?g.weight:0;s.setEdge(u,i,{weight:e.edge(c).weight+v})}),Object.hasOwn(a,"minRank")&&s.setNode(i,{borderLeft:a.borderLeft[t],borderRight:a.borderRight[t]})}}),s}function ao(e){let t;for(;e.hasNode(t=ot("_root")););return t}function lo(e,t,r){let n={},o;r.forEach(s=>{let i=e.parent(s),a,d;for(;i;){if(a=e.parent(i),a?(d=n[a],n[a]=i):(d=o,o=i),d&&d!==i){t.setEdge(d,i);return}i=a}})}function nr(e,t={}){if(typeof t.customOrder=="function"){t.customOrder(e,nr);return}let r=Ht(e),n=It(e,Oe(1,r+1),"inEdges"),o=It(e,Oe(r-1,-1,-1),"outEdges"),s=Zn(e);if(Mt(e,s),t.disableOptimalOrderHeuristic)return;let i=Number.POSITIVE_INFINITY,a,d=t.constraints||[];for(let l=0,c=0;c<4;++l,++c){co(l%2?n:o,l%4>=2,d),s=De(e);let u=Un(e,s);u{n.has(s)||n.set(s,[]),n.get(s).push(i)};for(let s of e.nodes()){let i=e.node(s);if(typeof i.rank=="number"&&o(i.rank,s),typeof i.minRank=="number"&&typeof i.maxRank=="number")for(let a=i.minRank;a<=i.maxRank;a++)a!==i.rank&&o(a,s)}return t.map(function(s){return io(e,s,r,n.get(s)||[])})}function co(e,t,r){let n=new J;e.forEach(function(o){r.forEach(a=>n.setEdge(a.left,a.right));let s=o.graph().root,i=rr(o,s,n,t);i.vs.forEach((a,d)=>o.node(a).order=d),lo(o,n,i.vs)})}function Mt(e,t){Object.values(t).forEach(r=>r.forEach((n,o)=>e.node(n).order=o))}function uo(e,t){let r={};function n(o,s){let i=0,a=0,d=o.length,l=s[s.length-1];return s.forEach((c,u)=>{let g=fo(e,c),v=g?e.node(g).order:d;(g||c===l)&&(s.slice(a,u+1).forEach(p=>{let b=e.predecessors(p);b&&b.forEach(k=>{let N=e.node(k),q=N.order;(q{let u=s[c];if(u!==void 0&&e.node(u).dummy){let g=e.predecessors(u);g&&g.forEach(v=>{if(v===void 0)return;let p=e.node(v);p.dummy&&(p.orderl)&&or(r,v,u)})}})}function o(s,i){let a=-1,d=-1,l=0;return i.forEach((c,u)=>{if(e.node(c).dummy==="border"){let g=e.predecessors(c);if(g&&g.length){let v=g[0];if(v===void 0)return;d=e.node(v).order,n(i,l,u,a,d),l=u,a=d}}n(i,l,i.length,d,s.length)}),i}return t.length&&t.reduce(o),r}function fo(e,t){if(e.node(t).dummy){let r=e.predecessors(t);if(r)return r.find(n=>e.node(n).dummy)}}function or(e,t,r){if(t>r){let o=t;t=r,r=o}let n=e[t];n||(e[t]=n={}),n[r]=!0}function go(e,t,r){if(t>r){let o=t;t=r,r=o}let n=e[t];return n!==void 0&&Object.hasOwn(n,r)}function vo(e,t,r,n){let o={},s={},i={};return t.forEach(a=>{a.forEach((d,l)=>{o[d]=d,s[d]=d,i[d]=l})}),t.forEach(a=>{let d=-1;a.forEach(l=>{let c=n(l);if(c&&c.length){let u=c.sort((v,p)=>{let b=i[v],k=i[p];return(b!==void 0?b:0)-(k!==void 0?k:0)}),g=(u.length-1)/2;for(let v=Math.floor(g),p=Math.ceil(g);v<=p;++v){let b=u[v];if(b===void 0)continue;let k=i[b];if(k!==void 0&&s[l]===l&&d{var N;let q=(N=s[k.v])!=null?N:0,S=i.edge(k);return Math.max(b,q+(S!==void 0?S:0))},0):s[v]=0}function c(v){let p=i.outEdges(v),b=Number.POSITIVE_INFINITY;p&&(b=p.reduce((N,q)=>{let S=s[q.w],ne=i.edge(q);return Math.min(N,(S!==void 0?S:0)-(ne!==void 0?ne:0))},Number.POSITIVE_INFINITY));let k=e.node(v);b!==Number.POSITIVE_INFINITY&&k.borderType!==a&&(s[v]=Math.max(s[v]!==void 0?s[v]:0,b))}function u(v){return i.predecessors(v)||[]}function g(v){return i.successors(v)||[]}return d(l,u),d(c,g),Object.keys(n).forEach(v=>{var p;let b=r[v];b!==void 0&&(s[v]=(p=s[b])!=null?p:0)}),s}function bo(e,t,r,n){let o=new J,s=e.graph(),i=yo(s.nodesep,s.edgesep,n);return t.forEach(a=>{let d;a.forEach(l=>{let c=r[l];if(c!==void 0){if(o.setNode(c),d!==void 0){let u=r[d];if(u!==void 0){let g=o.edge(u,c);o.setEdge(u,c,Math.max(i(e,l,d),g||0))}}d=l}})}),o}function mo(e,t){return Object.values(t).reduce((r,n)=>{let o=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY;Object.entries(n).forEach(([a,d])=>{let l=ko(e,a)/2;o=Math.max(d+l,o),s=Math.min(d-l,s)});let i=o-s;return i{["l","r"].forEach(i=>{let a=s+i,d=e[a];if(!d||d===t)return;let l=Object.values(d),c=n-re(Math.min,l);i!=="l"&&(c=o-re(Math.max,l)),c&&(e[a]=Re(d,u=>u+c))})})}function wo(e,t=void 0){let r=e.ul;return r?Re(r,(n,o)=>{var s,i;if(t){let d=t.toLowerCase(),l=e[d];if(l&&l[o]!==void 0)return l[o]}let a=Object.values(e).map(d=>{let l=d[o];return l!==void 0?l:0}).sort((d,l)=>d-l);return(((s=a[1])!=null?s:0)+((i=a[2])!=null?i:0))/2}):{}}function Eo(e){let t=De(e),r=Object.assign(uo(e,t),ho(e,t)),n={},o;["u","d"].forEach(i=>{o=i==="u"?t:Object.values(t).reverse(),["l","r"].forEach(a=>{a==="r"&&(o=o.map(c=>Object.values(c).reverse()));let d=vo(e,o,r,c=>(i==="u"?e.predecessors(c):e.successors(c))||[]),l=po(e,o,d.root,d.align,a==="r");a==="r"&&(l=Re(l,c=>-c)),n[i+a]=l})});let s=mo(e,n);return _o(n,s),wo(n,e.graph().align)}function yo(e,t,r){return(n,o,s)=>{let i=n.node(o),a=n.node(s),d=0,l;if(d+=i.width/2,Object.hasOwn(i,"labelpos"))switch(i.labelpos.toLowerCase()){case"l":l=-i.width/2;break;case"r":l=i.width/2;break}if(l&&(d+=r?l:-l),l=void 0,d+=(i.dummy?t:e)/2,d+=(a.dummy?t:e)/2,d+=a.width/2,Object.hasOwn(a,"labelpos"))switch(a.labelpos.toLowerCase()){case"l":l=a.width/2;break;case"r":l=-a.width/2;break}return l&&(d+=r?l:-l),d}}function ko(e,t){return e.node(t).width}function xo(e){e=Xt(e),Oo(e),Object.entries(Eo(e)).forEach(([t,r])=>e.node(t).x=r)}function Oo(e){let t=De(e),r=e.graph(),n=r.ranksep,o=r.rankalign,s=0;t.forEach(i=>{let a=i.reduce((d,l)=>{var c;let u=(c=e.node(l).height)!=null?c:0;return d>u?d:u},0);i.forEach(d=>{let l=e.node(d);o==="top"?l.y=s+l.height/2:o==="bottom"?l.y=s+a-l.height/2:l.y=s+a/2}),s+=a+n})}function No(e,t={}){let r=t.debugTiming?rn:nn;return r("layout",()=>{let n=r(" buildLayoutGraph",()=>Do(e));return r(" runLayout",()=>Io(n,r,t)),r(" updateInputGraph",()=>Mo(e,n)),n})}function Io(e,t,r){t(" makeSpaceForEdgeLabels",()=>Ro(e)),t(" removeSelfEdges",()=>Wo(e)),t(" acyclic",()=>vn(e)),t(" nestingGraph.run",()=>Yn(e)),t(" rank",()=>Cn(Xt(e))),t(" injectEdgeLabelProxies",()=>qo(e)),t(" removeEmptyRanks",()=>Jr(e)),t(" nestingGraph.cleanup",()=>Gn(e)),t(" normalizeRanks",()=>$r(e)),t(" assignRankMinMax",()=>Yo(e)),t(" removeEdgeLabelProxies",()=>Ao(e)),t(" normalize.run",()=>mn(e)),t(" parentDummyChains",()=>Fn(e)),t(" addBorderSegments",()=>Bn(e)),t(" order",()=>nr(e,r)),t(" insertSelfEdges",()=>Ho(e)),t(" adjustCoordinateSystem",()=>Xn(e)),t(" position",()=>xo(e)),t(" positionSelfEdges",()=>Ko(e)),t(" removeBorderNodes",()=>Xo(e)),t(" normalize.undo",()=>wn(e)),t(" fixupEdgeLabelCoords",()=>Bo(e)),t(" undoCoordinateSystem",()=>Wn(e)),t(" translateGraph",()=>Vo(e)),t(" assignNodeIntersects",()=>Go(e)),t(" reversePoints",()=>zo(e)),t(" acyclic.undo",()=>bn(e))}function Mo(e,t){e.nodes().forEach(r=>{let n=e.node(r),o=t.node(r);n&&(n.x=o.x,n.y=o.y,n.order=o.order,n.rank=o.rank,t.children(r).length&&(n.width=o.width,n.height=o.height))}),e.edges().forEach(r=>{let n=e.edge(r),o=t.edge(r);n.points=o.points,Object.hasOwn(o,"x")&&(n.x=o.x,n.y=o.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var jo=["nodesep","edgesep","ranksep","marginx","marginy"],Lo={ranksep:50,edgesep:20,nodesep:50,rankdir:"TB",rankalign:"center"},Co=["acyclicer","ranker","rankdir","align","rankalign"],To=["width","height","rank"],jt={width:0,height:0},Po=["minlen","weight","width","height","labeloffset"],So={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Fo=["labelpos"];function Do(e){let t=new J({multigraph:!0,compound:!0}),r=Ze(e.graph());return t.setGraph(Object.assign({},Lo,Ke(r,jo),Pe(r,Co))),e.nodes().forEach(n=>{let o=Ze(e.node(n)),s=Ke(o,To);Object.keys(jt).forEach(a=>{s[a]===void 0&&(s[a]=jt[a])}),t.setNode(n,s);let i=e.parent(n);i!==void 0&&t.setParent(n,i)}),e.edges().forEach(n=>{let o=Ze(e.edge(n));t.setEdge(n,Object.assign({},So,Ke(o,Po),Pe(o,Fo)))}),t}function Ro(e){let t=e.graph();t.ranksep/=2,e.edges().forEach(r=>{let n=e.edge(r);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(t.rankdir==="TB"||t.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function qo(e){e.edges().forEach(t=>{let r=e.edge(t);if(r.width&&r.height){let n=e.node(t.v),o={rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t};_e(e,"edge-proxy",o,"_ep")}})}function Yo(e){let t=0;e.nodes().forEach(r=>{let n=e.node(r);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,t=Math.max(t,n.maxRank))}),e.graph().maxRank=t}function Ao(e){e.nodes().forEach(t=>{let r=e.node(t);if(r.dummy==="edge-proxy"){let n=r;e.edge(n.e).labelRank=r.rank,e.removeNode(t)}})}function Vo(e){let t=Number.POSITIVE_INFINITY,r=0,n=Number.POSITIVE_INFINITY,o=0,s=e.graph(),i=s.marginx||0,a=s.marginy||0;function d(l){let c=l.x,u=l.y,g=l.width,v=l.height;t=Math.min(t,c-g/2),r=Math.max(r,c+g/2),n=Math.min(n,u-v/2),o=Math.max(o,u+v/2)}e.nodes().forEach(l=>d(e.node(l))),e.edges().forEach(l=>{let c=e.edge(l);Object.hasOwn(c,"x")&&d(c)}),t-=i,n-=a,e.nodes().forEach(l=>{let c=e.node(l);c.x-=t,c.y-=n}),e.edges().forEach(l=>{let c=e.edge(l);c.points.forEach(u=>{u.x-=t,u.y-=n}),Object.hasOwn(c,"x")&&(c.x-=t),Object.hasOwn(c,"y")&&(c.y-=n)}),s.width=r-t+i,s.height=o-n+a}function Go(e){e.edges().forEach(t=>{let r=e.edge(t),n=e.node(t.v),o=e.node(t.w),s,i;r.points?(s=r.points[0],i=r.points[r.points.length-1]):(r.points=[],s=o,i=n),r.points.unshift(_t(n,s)),r.points.push(_t(o,i))})}function Bo(e){e.edges().forEach(t=>{let r=e.edge(t);if(Object.hasOwn(r,"x"))switch((r.labelpos==="l"||r.labelpos==="r")&&(r.width-=r.labeloffset),r.labelpos){case"l":r.x-=r.width/2+r.labeloffset;break;case"r":r.x+=r.width/2+r.labeloffset;break}})}function zo(e){e.edges().forEach(t=>{let r=e.edge(t);r.reversed&&r.points.reverse()})}function Xo(e){e.nodes().forEach(t=>{if(e.children(t).length){let r=e.node(t),n=e.node(r.borderTop),o=e.node(r.borderBottom),s=e.node(r.borderLeft[r.borderLeft.length-1]),i=e.node(r.borderRight[r.borderRight.length-1]);r.width=Math.abs(i.x-s.x),r.height=Math.abs(o.y-n.y),r.x=s.x+r.width/2,r.y=n.y+r.height/2}}),e.nodes().forEach(t=>{e.node(t).dummy==="border"&&e.removeNode(t)})}function Wo(e){e.edges().forEach(t=>{if(t.v===t.w){let r=e.node(t.v);r.selfEdges||(r.selfEdges=[]),r.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function Ho(e){De(e).forEach(t=>{let r=0;t.forEach((n,o)=>{let s=e.node(n);s.order=o+r,(s.selfEdges||[]).forEach(i=>{_e(e,"selfedge",{width:i.label.width,height:i.label.height,rank:s.rank,order:o+ ++r,e:i.e,label:i.label},"_se")}),delete s.selfEdges})})}function Ko(e){e.nodes().forEach(t=>{let r=e.node(t);if(r.dummy==="selfedge"){let n=r,o=e.node(n.e.v),s=o.x+o.width/2,i=o.y,a=r.x-s,d=o.height/2;e.setEdge(n.e,n.label),e.removeNode(t),n.label.points=[{x:s+2*a/3,y:i-d},{x:s+5*a/6,y:i-d},{x:s+a,y:i},{x:s+5*a/6,y:i+d},{x:s+2*a/3,y:i+d}],n.label.x=r.x,n.label.y=r.y}})}function Ke(e,t){return Re(Pe(e,t),Number)}function Ze(e){let t={};return e&&Object.entries(e).forEach(([r,n])=>{typeof r=="string"&&(r=r.toLowerCase()),t[r]=n}),t}/*! For license information please see dagre.esm.js.LEGAL.txt */const se=140,ie=44,Lt=300,Zo=6,Ct=12;function Uo(e){const t=new Map,r=(n,o)=>{const s=`${n}|${o.side}`;t.has(s)||t.set(s,[]),t.get(s).push(o)};for(const n of e)r(n.edge.source,n.start),r(n.edge.target,n.end);for(const n of t.values())n.sort((o,s)=>o.sortY-s.sortY),n.forEach((o,s)=>{o.y=o.node.y-ie/2+ie*(s+1)/(n.length+1)})}function je(e,t=0){return{x:e.node.x+e.side*(se/2+Zo+t),y:e.y}}function Qo(e){const t=new Map;for(const n of e){const o=[n.source,n.target].sort().join("|");t.has(o)||t.set(o,[]),t.get(o).push(n)}const r=[];for(const n of t.values()){const o=n.find(i=>i.direction==="output"),s=n.find(i=>i.direction==="input");o&&s?r.push({...o,bidirectional:!0}):r.push(...n.map(i=>({...i,bidirectional:!1})))}return r}function $o(e,t){const r=new Dt.Graph({multigraph:!0});r.setGraph({rankdir:"LR",nodesep:14,ranksep:50,edgesep:8,marginx:20,marginy:20}),r.setDefaultEdgeLabel(()=>({}));const n=new Set(e.map(l=>l.id));for(const l of e)r.setNode(l.id,{width:se,height:ie});const o=Qo(t.filter(l=>n.has(l.source)&&n.has(l.target)));for(const l of o)r.setEdge(l.source,l.target,{},Ue(l));No(r);const s=e.map(l=>{const c=r.node(l.id);return{...l,x:c.x,y:c.y,width:se,height:ie}}),i=o.map(l=>{var p,b;const c=r.edge(l.source,l.target,Ue(l)),u=r.node(l.source),g=r.node(l.target),v=((c==null?void 0:c.points)??[]).slice(1,-1);return{edge:l,interior:v,start:{node:u,side:g.x>=u.x?1:-1,sortY:((p=v[0])==null?void 0:p.y)??g.y},end:{node:g,side:u.x>=g.x?1:-1,sortY:((b=v[v.length-1])==null?void 0:b.y)??u.y}}});Uo(i);const a=i.map(({edge:l,interior:c,start:u,end:g})=>({...l,points:[je(u),je(u,Ct),...c,je(g,Ct),je(g)]})),d=r.graph();return{nodes:s,edges:a,width:d.width??0,height:d.height??0}}function Jo(e,t=!0){if(!e||e.length===0)return"";const[r,...n]=e;if(!t||e.length<3)return`M ${r.x} ${r.y}`+n.map(d=>` L ${d.x} ${d.y}`).join("");const o=(d,l)=>({x:(d.x+l.x)/2,y:(d.y+l.y)/2}),s=o(r,e[1]);let i=`M ${r.x} ${r.y} L ${s.x} ${s.y}`;for(let d=1;d'),ts=Ie('',1),rs=Ie('base artifact'),ns=Ie(' '),os=Ie(""),ss=R('
');function is(e,t){et(t,!0);let r=Z(t,"layout",3,null),n=Z(t,"focusId",3,null),o=Z(t,"selectedId",3,null),s=Z(t,"smooth",3,!0),i=Z(t,"onSelect",3,()=>{}),a=te(0),d=te(0),l=te(Tt({x:0,y:0,k:1})),c=null;const u=.25,g=2.5,v=1;function p(){if(!r()||!h(a)||!h(d))return;const f=Math.min(h(a)/Math.max(r().width,1),h(d)/Math.max(r().height,1),1);j(l,{k:f,x:(h(a)-r().width*f)/2,y:(h(d)-r().height*f)/2},!0)}function b(f,m,_){return _<=m?(m-_)/2:Math.min(0,Math.max(m-_,f))}function k(){if(!r()||!h(a)||!h(d))return;const f=r().nodes.find(_=>_.id===n());if(!f){p();return}const m=v;j(l,{k:m,x:b(h(a)/2-f.x*m,h(a),r().width*m),y:b(h(d)/2-f.y*m,h(d),r().height*m)},!0)}tt(()=>{!r()||!h(a)||!h(d)||c!==n()&&(c=n(),k())});function N(f,m=h(a)/2,_=h(d)/2){const Y=Math.min(g,Math.max(u,h(l).k*f)),P=Y/h(l).k;j(l,{k:Y,x:m-(m-h(l).x)*P,y:_-(_-h(l).y)*P},!0)}function q(f){const m=_=>{if(!_.ctrlKey&&!_.metaKey)return;_.preventDefault();const Y=f.getBoundingClientRect();N(Math.exp(-_.deltaY*.002),_.clientX-Y.left,_.clientY-Y.top)};return f.addEventListener("wheel",m,{passive:!1}),{destroy:()=>f.removeEventListener("wheel",m)}}let S=te(null);function ne(f){f.button===0&&(j(S,{x:f.clientX,y:f.clientY,startX:f.clientX,startY:f.clientY},!0),f.currentTarget.setPointerCapture(f.pointerId))}function we(f){h(S)&&(j(l,{...h(l),x:h(l).x+f.clientX-h(S).x,y:h(l).y+f.clientY-h(S).y},!0),j(S,{...h(S),x:f.clientX,y:f.clientY},!0))}function ce(f){if(!h(S))return;const m=Math.hypot(f.clientX-h(S).startX,f.clientY-h(S).startY);j(S,null),f.currentTarget.releasePointerCapture(f.pointerId),m<4&&i()(null)}function ve(f,m=18){if(f==null)return"";const _=String(f);return _.length>m?_.slice(0,m-1)+"…":_}function pe(f){return f.kind==="artifact"?f.artifact_type:f.kind==="cluster"?"cluster":"run"}const $=le(()=>{if(!r()||!o())return null;const f=new Map,m=new Map,_=(x,A,Q)=>{x.has(A)||x.set(A,[]),x.get(A).push(Q)};for(const x of r().edges)_(f,x.source,x.target),_(m,x.target,x.source),x.bidirectional&&(_(f,x.target,x.source),_(m,x.source,x.target));const Y=x=>{const A=new Set([o()]),Q=[o()];for(;Q.length;)for(const ue of x.get(Q.pop())??[])A.has(ue)||(A.add(ue),Q.push(ue));return A},P=Y(f),E=Y(m);return{nodes:new Set([...P,...E]),down:P,up:E}});function I(f){return h($).down.has(f.source)&&h($).down.has(f.target)||h($).up.has(f.source)&&h($).up.has(f.target)}function F(f,m){(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),i()(m.id))}var G=ss(),z=O(G);let ae;var Ee=y(O(z));{var w=f=>{var m=os(),_=O(m);Le(_,17,()=>r().edges,P=>Ue(P),(P,E)=>{var x=es();let A;K((Q,ue)=>{A=Be(x,0,"edge svelte-envflr",null,A,Q),W(x,"d",ue),W(x,"marker-start",h(E).bidirectional?"url(#lineage-arrow-end)":null)},[()=>({dimmed:h($)&&!I(h(E))}),()=>Jo(h(E).points,s())]),L(P,x)});var Y=y(_);Le(Y,17,()=>r().nodes,P=>P.id,(P,E)=>{var x=ns();let A;var Q=O(x);{var ue=U=>{var he=ts(),ye=ee(he),Me=y(ye);K(()=>{W(ye,"width",se-16),W(ye,"height",ie),W(Me,"width",se-8),W(Me,"height",ie)}),L(U,he)};H(Q,U=>{h(E).kind==="cluster"&&U(ue)})}var Ye=y(Q),Ae=y(Ye),lt=y(Ae);{var sr=U=>{var he=rs();K(()=>W(he,"transform",`translate(${se}, 0)`)),L(U,he)};H(lt,U=>{h(E).id===n()&&U(sr)})}var dt=y(lt),ir=O(dt),ar=y(dt),ct=O(ar),lr=y(ct),dr=O(lr);K((U,he,ye,Me,cr)=>{A=Be(x,0,`node ${h(E).kind??""} ${h(E).kind==="cluster"?`cluster-${h(E).member_kind}`:""}`,"svelte-envflr",A,U),W(x,"transform",`translate(${h(E).x-se/2}, ${h(E).y-ie/2})`),W(x,"aria-label",he),W(Ye,"width",se),W(Ye,"height",ie),W(Ae,"width",se+8),W(Ae,"height",ie+8),B(ir,ye),B(ct,`${Me??""} `),B(dr,cr)},[()=>({focused:h(E).id===n(),selected:h(E).id===o(),dimmed:h($)&&!h($).nodes.has(h(E).id)}),()=>fe(h(E)),()=>ve(pe(h(E)),20).toUpperCase(),()=>h(E).kind==="cluster"?fe(h(E)):ve(fe(h(E))),()=>fe(h(E))]),V("pointerdown",x,U=>U.stopPropagation()),V("click",x,()=>i()(h(E).id)),V("keydown",x,U=>F(U,h(E))),L(P,x)}),K(()=>W(m,"transform",`translate(${h(l).x??""}, ${h(l).y??""}) scale(${h(l).k??""})`)),L(f,m)};H(Ee,f=>{r()&&f(w)})}vr(z,f=>q==null?void 0:q(f));var M=y(z,2),D=O(M),C=y(D,2),T=y(C,2),X=y(T,2);K(()=>ae=Be(z,0,"graph svelte-envflr",null,ae,{panning:h(S)})),V("pointerdown",z,ne),V("pointermove",z,we),V("pointerup",z,ce),pr("pointercancel",z,ce),V("click",D,()=>N(1.25)),V("click",C,()=>N(.8)),V("click",T,p),V("click",X,k),pt(G,"clientWidth",f=>j(a,f)),pt(G,"clientHeight",f=>j(d,f)),L(e,G),rt()}Pt(["pointerdown","pointermove","pointerup","click","keydown"]);var as=R(' ',1),ls=R('cluster ',1),ds=R('run ',1),cs=R('
  • '),us=R('
  • No matches.
  • '),hs=R(''),fs=R('
      '),gs=R('Produced by ',1),vs=R('Size Files Created ',1),ps=R('First linked ',1),bs=R(''),ms=R(''),_s=R('
      ');function ws(e,t){et(t,!0);let r=Z(t,"node",3,null),n=Z(t,"focusId",3,null),o=Z(t,"onOpenVersion",3,null),s=Z(t,"onExtract",3,()=>{}),i=Z(t,"onExtractAll",3,()=>{}),a=Z(t,"onClose",3,()=>{});const d=30;let l=te("");tt(()=>{var p;(p=r())==null||p.id,j(l,"")});const c=le(()=>{var b;if(((b=r())==null?void 0:b.kind)!=="cluster")return[];const p=h(l).toLowerCase();return r().members.filter(k=>fe(k).toLowerCase().includes(p))});var u=Qe(),g=ee(u);{var v=p=>{var b=_s(),k=O(b),N=O(k);{var q=w=>{var M=as(),D=ee(M),C=O(D),T=y(D,2),X=O(T),f=y(T,2),m=O(f),_=y(f,2);Le(_,17,()=>r().aliases,mr,(Y,P)=>{br(Y,{get alias(){return h(P)}})}),K(()=>{B(C,r().artifact_type),B(X,r().artifact_name),B(m,`v${r().version??""}`)}),L(w,M)},S=w=>{var M=ls(),D=y(ee(M),2),C=O(D);K(T=>B(C,T),[()=>fe(r())]),L(w,M)},ne=w=>{var M=ds(),D=y(ee(M),2),C=O(D);K(()=>B(C,r().run_name??r().run_id)),L(w,M)};H(N,w=>{r().kind==="artifact"?w(q):r().kind==="cluster"?w(S,1):w(ne,-1)})}var we=y(N,2),ce=y(k,2);{var ve=w=>{var M=fs(),D=O(M);{let f=le(()=>r().member_kind==="run"?"runs":"versions");_r(D,{get placeholder(){return`Search ${h(f)??""}…`},get value(){return h(l)},set value(m){j(l,m,!0)}})}var C=y(D,2);Le(C,21,()=>h(c),f=>f.id,(f,m)=>{var _=cs(),Y=O(_),P=O(Y);K(E=>B(P,E),[()=>fe(h(m))]),V("click",Y,()=>s()(h(m).id)),L(f,_)},f=>{var m=us();L(f,m)});var T=y(C,2);{var X=f=>{var m=hs();V("click",m,()=>i()(r().members.map(_=>_.id))),L(f,m)};H(T,f=>{r().count<=d&&f(X)})}L(w,M)};H(ce,w=>{r().kind==="cluster"&&w(ve)})}var pe=y(ce,2),$=O(pe);{var I=w=>{var M=vs(),D=y(ee(M),2),C=O(D),T=y(D,4),X=O(T),f=y(T,4),m=O(f),_=y(f,2);{var Y=P=>{var E=gs(),x=y(ee(E),2),A=O(x),Q=O(A);K(()=>B(Q,r().producer_run_name)),V("click",A,()=>vt(r().producer_run_name,r().producer_run_id)),L(P,E)};H(_,P=>{r().producer_run_name&&P(Y)})}K((P,E)=>{B(C,P),B(X,r().num_files),B(m,E)},[()=>wr(r().size_bytes),()=>gt(r().created_at)]),L(w,M)},F=w=>{var M=ps(),D=y(ee(M),2),C=O(D);K(T=>B(C,T),[()=>gt(r().created_at)]),L(w,M)};H($,w=>{r().kind==="artifact"?w(I):r().kind==="run"&&w(F,1)})}var G=y(pe,2),z=O(G);{var ae=w=>{var M=Qe(),D=ee(M);{var C=T=>{var X=bs();V("click",X,()=>o()(r().artifact_name,r().version)),L(T,X)};H(D,T=>{o()&&r().id!==n()&&T(C)})}L(w,M)},Ee=w=>{var M=ms();V("click",M,()=>vt(r().run_name,r().run_id)),L(w,M)};H(z,w=>{r().kind==="artifact"?w(ae):r().kind==="run"&&w(Ee,1)})}V("click",we,function(...w){var M;(M=a())==null||M.apply(this,w)}),L(p,b)};H(g,p=>{r()&&p(v)})}L(e,u),rt()}Pt(["click"]);var Es=R('
      Loading lineage…
      '),ys=R('
      Failed to load lineage.
      '),ks=R('
      No lineage recorded for this version.
      '),xs=R('
      Large graph — lineage was truncated.
      '),Os=R('
      '),Ns=R('
      '),Is=R('
      Base Artifact Artifact Run
      Drag to pan · Ctrl/Cmd + scroll to zoom · Click a node for details
      ');function Ls(e,t){et(t,!0);let r=Z(t,"project",3,null),n=Z(t,"versionId",3,null),o=Z(t,"onOpenVersion",3,null),s=te(null),i=te(!0),a=te(!1),d=te(Tt(new Set)),l=te(null),c=0;const u=le(()=>`art:${n()}`);tt(()=>{g()});async function g(){const I=++c,F=r(),G=n(),z=`art:${G}`;if(!F||G==null){j(s,null),j(a,!1),j(d,new Set,!0),j(l,null),j(i,!1);return}j(i,!0),j(a,!1),j(d,new Set,!0),j(l,null);try{const ae=await Er(F,G);if(I!==c)return;j(s,ae,!0),j(l,z)}catch{if(I!==c)return;j(a,!0)}finally{I===c&&j(i,!1)}}const v=le(()=>h(s)?yr(h(s),h(u),{extracted:h(d)}):null),p=le(()=>h(v)&&h(v).nodes.length?$o(h(v).nodes,h(v).edges):null),b=le(()=>!h(v)||h(v).nodes.length<=Lt),k=le(()=>h(v)&&h(l)?h(v).nodes.find(I=>I.id===h(l))??null:null);function N(I){const F=new Set(h(d));F.add(I),j(d,F,!0),j(l,I,!0)}function q(I){const F=new Set(h(d));for(const G of I)F.add(G);j(d,F,!0),j(l,null)}function S(I){j(l,h(l)===I?null:I,!0)}var ne=Qe(),we=ee(ne);{var ce=I=>{var F=Es();L(I,F)},ve=I=>{var F=ys();L(I,F)},pe=I=>{var F=ks();L(I,F)},$=I=>{var F=Is(),G=O(F);{var z=C=>{var T=xs();L(C,T)},ae=C=>{var T=Os(),X=O(T),f=O(X);K(()=>B(f,`Large graph — showing ${h(v).nodes.length??""} nodes.`)),L(C,T)};H(G,C=>{h(s).truncated?C(z):h(v).nodes.length>Lt&&C(ae,1)})}var Ee=y(G,2),w=O(Ee);is(w,{get layout(){return h(p)},get focusId(){return h(u)},get selectedId(){return h(l)},get smooth(){return h(b)},onSelect:S});var M=y(w,6);{var D=C=>{var T=Ns(),X=O(T);ws(X,{get node(){return h(k)},get focusId(){return h(u)},get onOpenVersion(){return o()},onExtract:N,onExtractAll:q,onClose:()=>j(l,null)}),L(C,T)};H(M,C=>{h(k)&&C(D)})}L(I,F)};H(we,I=>{h(i)?I(ce):h(a)?I(ve,1):!h(s)||h(s).edges.length===0?I(pe,2):I($,-1)})}L(e,ne),rt()}export{Ls as default}; diff --git a/assets/LineageSection-D4yA5g5T.css b/assets/LineageSection-D4yA5g5T.css new file mode 100644 index 0000000000000000000000000000000000000000..eeccf651302a05af9c1617eab8120762adce55b3 --- /dev/null +++ b/assets/LineageSection-D4yA5g5T.css @@ -0,0 +1 @@ +.graph-container.svelte-envflr{position:relative;height:100%;min-height:400px;background:var(--background-fill-primary, #ffffff);overflow:hidden}.graph.svelte-envflr{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.graph.panning.svelte-envflr{cursor:grabbing}.edge.svelte-envflr{fill:none;stroke:color-mix(in srgb,var(--body-text-color-subdued, #6b7280) 55%,var(--border-color-primary, #d1d5db));stroke-width:1.5}.arrow-head.svelte-envflr{fill:color-mix(in srgb,var(--body-text-color-subdued, #6b7280) 55%,var(--border-color-primary, #d1d5db))}.node.svelte-envflr{cursor:pointer;outline:none;transition:opacity .15s ease}.edge.svelte-envflr{transition:opacity .15s ease}.node.dimmed.svelte-envflr,.edge.dimmed.svelte-envflr{opacity:.5}.node-box.svelte-envflr{fill:var(--background-fill-primary, #ffffff);stroke-width:1.5}.node.run.svelte-envflr .node-box:where(.svelte-envflr){stroke:var(--lineage-run)}.node.artifact.svelte-envflr .node-box:where(.svelte-envflr){stroke:var(--lineage-artifact)}.node.cluster.svelte-envflr .node-box:where(.svelte-envflr){stroke-dasharray:4 3}.node.cluster-artifact.svelte-envflr .node-box:where(.svelte-envflr){stroke:var(--lineage-artifact)}.node.cluster-run.svelte-envflr .node-box:where(.svelte-envflr){stroke:var(--lineage-run)}.node.cluster.svelte-envflr .node-box.stack:where(.svelte-envflr){fill:var(--background-fill-secondary, #f3f4f6);stroke-dasharray:none;opacity:.7}.selection-ring.svelte-envflr{fill:none;stroke:color-mix(in srgb,var(--body-text-color, #1f2937) 80%,var(--background-fill-primary, #ffffff));stroke-width:2;pointer-events:none;opacity:0}.node.selected.svelte-envflr .selection-ring:where(.svelte-envflr),.node.svelte-envflr:focus-visible .selection-ring:where(.svelte-envflr){opacity:1}.target-ring.svelte-envflr{fill:var(--background-fill-primary, #ffffff);stroke:var(--color-accent, #f97316);stroke-width:2}.target-dot.svelte-envflr{fill:var(--color-accent, #f97316)}.node-chip.svelte-envflr{font-size:9px;font-weight:600;letter-spacing:.05em;fill:var(--body-text-color-subdued, #6b7280)}.node.run.svelte-envflr .node-chip:where(.svelte-envflr),.node.cluster-run.svelte-envflr .node-chip:where(.svelte-envflr){fill:var(--lineage-run)}.node.artifact.svelte-envflr .node-chip:where(.svelte-envflr),.node.cluster-artifact.svelte-envflr .node-chip:where(.svelte-envflr){fill:var(--lineage-artifact)}.node-label.svelte-envflr{font-size:12px;font-weight:500;fill:var(--body-text-color, #1f2937)}.zoom-controls.svelte-envflr{position:absolute;bottom:8px;left:8px;display:flex;gap:4px}.zoom-controls.svelte-envflr button:where(.svelte-envflr){min-width:26px;height:26px;padding:0 7px;border:1px solid var(--border-color-primary, #e5e7eb);border-radius:var(--radius-sm, 4px);background:var(--background-fill-primary, #ffffff);color:var(--body-text-color-subdued, #6b7280);font-size:var(--text-sm, 13px);cursor:pointer}.zoom-controls.svelte-envflr button:where(.svelte-envflr):hover{color:var(--body-text-color, #1f2937);border-color:var(--color-accent, #f97316)}.preview.svelte-h7g2eb{border:1px solid var(--border-color-primary, #e5e7eb);border-radius:var(--radius-md, 6px);background:var(--background-fill-secondary, #f9fafb);padding:12px 14px;display:flex;flex-direction:column;gap:10px}.preview-header.svelte-h7g2eb{position:relative;display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;padding-right:24px}.title.svelte-h7g2eb{font-size:var(--text-md, 14px);font-weight:600;color:var(--body-text-color, #1f2937)}.ver-badge.svelte-h7g2eb{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:var(--text-sm, 12px);font-weight:600;color:var(--body-text-color-subdued, #6b7280);background:var(--background-fill-primary, #ffffff);border-radius:var(--radius-sm, 4px);padding:2px 7px}.kind-chip.svelte-h7g2eb{flex-basis:100%;font-size:var(--text-xs, 11px);text-transform:uppercase;letter-spacing:.05em;font-weight:600;color:var(--lineage-run)}.kind-chip.cluster.svelte-h7g2eb{color:var(--body-text-color-subdued, #6b7280)}.kind-chip.artifact.svelte-h7g2eb{color:var(--lineage-artifact)}.cluster-body.svelte-h7g2eb{min-height:0;display:flex;flex-direction:column;gap:6px}.member-list.svelte-h7g2eb{list-style:none;margin:0;padding:0;min-height:0;overflow-y:auto;border:1px solid var(--border-color-primary, #e5e7eb);border-radius:var(--radius-sm, 4px);background:var(--background-fill-primary, #ffffff)}.member-item.svelte-h7g2eb+.member-item:where(.svelte-h7g2eb){border-top:1px solid var(--border-color-primary, #f3f4f6)}.member-row.svelte-h7g2eb{display:block;width:100%;background:none;border:none;text-align:left;padding:5px 8px;font-size:var(--text-sm, 12px);color:var(--body-text-color, #1f2937);overflow-wrap:anywhere;cursor:pointer}.member-row.svelte-h7g2eb:hover,.member-row.svelte-h7g2eb:focus-visible{background:var(--background-fill-secondary, #f3f4f6)}.member-empty.svelte-h7g2eb{padding:6px 8px;font-size:var(--text-sm, 12px);color:var(--body-text-color-subdued, #6b7280)}.close-btn.svelte-h7g2eb{position:absolute;top:0;right:0;background:none;border:none;color:var(--body-text-color-subdued, #6b7280);font-size:16px;cursor:pointer;padding:0 4px;line-height:1}.detail-grid.svelte-h7g2eb{display:grid;grid-template-columns:auto 1fr;gap:4px 16px;align-items:baseline}.detail-key.svelte-h7g2eb{font-size:var(--text-xs, 11px);color:var(--body-text-color-subdued, #6b7280);white-space:nowrap}.detail-val.svelte-h7g2eb{font-size:var(--text-sm, 12px);color:var(--body-text-color, #1f2937);overflow-wrap:anywhere}.run-link.svelte-h7g2eb{background:none;border:none;padding:0;font-size:var(--text-sm, 12px);color:var(--color-accent, #f97316);cursor:pointer;text-align:left}.preview-footer.svelte-h7g2eb:empty{display:none}.open-btn.svelte-h7g2eb{font-size:var(--text-sm, 12px);padding:4px 12px;border:1px solid var(--border-color-primary, #e5e7eb);border-radius:var(--radius-sm, 4px);background:var(--background-fill-primary, #ffffff);color:var(--body-text-color, #1f2937);cursor:pointer}.open-btn.svelte-h7g2eb:hover{border-color:var(--color-accent, #f97316);color:var(--color-accent, #f97316)}.status.svelte-sqcnye{font-size:var(--text-sm, 12px);color:var(--body-text-color-subdued, #6b7280);padding:6px 0}.lineage.svelte-sqcnye{--lineage-run: #10b981;--lineage-artifact: #3b82f6;flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}.graph-wrap.svelte-sqcnye{flex:1;min-height:0;position:relative}.preview-overlay.svelte-sqcnye{position:absolute;top:8px;right:8px;z-index:5;width:280px;max-width:calc(100% - 16px);max-height:calc(100% - 16px);overflow-y:auto}.preview-overlay.svelte-sqcnye>*{box-sizing:border-box;box-shadow:0 4px 16px #0000002e}.toolbar.svelte-sqcnye{display:flex;align-items:center;gap:12px;min-height:18px}.notice.svelte-sqcnye{font-size:var(--text-xs, 11px);color:var(--color-accent, #f97316)}.legend.svelte-sqcnye{position:absolute;top:8px;left:8px;z-index:4;display:flex;align-items:center;gap:12px;font-size:var(--text-xs, 11px);color:var(--body-text-color-subdued, #6b7280)}.hint.svelte-sqcnye{position:absolute;bottom:8px;right:8px;z-index:4;font-size:var(--text-xs, 11px);color:var(--body-text-color-subdued, #6b7280)}.legend-item.svelte-sqcnye{display:inline-flex;align-items:center;gap:5px}.swatch.svelte-sqcnye{width:10px;height:10px;border-radius:3px;background:var(--background-fill-primary, #ffffff);border:1.5px solid}.swatch.artifact.svelte-sqcnye{border-color:var(--lineage-artifact)}.swatch.run.svelte-sqcnye{border-color:var(--lineage-run)}.target-swatch.svelte-sqcnye{width:11px;height:11px}.target-swatch.svelte-sqcnye .target-ring:where(.svelte-sqcnye){fill:none;stroke:var(--color-accent, #f97316);stroke-width:2}.target-swatch.svelte-sqcnye .target-dot:where(.svelte-sqcnye){fill:var(--color-accent, #f97316)} diff --git a/assets/MSFT_audio_emitter-CTaitNw_.js b/assets/MSFT_audio_emitter-CTaitNw_.js new file mode 100644 index 0000000000000000000000000000000000000000..63745936a128f20473f6d9cff1c75af2a1abce8c --- /dev/null +++ b/assets/MSFT_audio_emitter-CTaitNw_.js @@ -0,0 +1,2 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/webAudioBus-DRmzBxYW.js","assets/abstractAudioBus-C0s2NnXP.js","assets/math.vector-C1xyPDEl.js","assets/math.scalar.functions-DkeaWAWz.js","assets/tools-D01N7ptR.js","assets/decorators.serialization-C7d7ykGG.js","assets/bufferUtils-DTRdUD8L.js","assets/math.color-CzLaKyb6.js","assets/glTFLoader-Brfz25eu.js","assets/index-BoUtOhbH.js","assets/index-Dia8OOrJ.css","assets/mesh-BPwLonvs.js","assets/mesh.vertexData-Cr3zcPIw.js","assets/buffer-DqKlo1ts.js","assets/dataBuffer-CgoqiUzT.js","assets/subMesh-UWDo5wjI.js","assets/drawWrapper-CZVk0xN-.js","assets/smartArray-CO6iJ0u5.js","assets/node-C-Iu0ALa.js","assets/math.viewport-CgkTt1RS.js","assets/sceneComponent-Dflhczui.js","assets/math.plane-Ce_75-g5.js","assets/lightConstants-B1TSTh-k.js","assets/sceneLoaderFlags-wywyb9ml.js","assets/math.axis-Ck7JfPPj.js","assets/material-CrEsrP1R.js","assets/texture-BEqhDl5Y.js","assets/baseTexture-CgAggsey.js","assets/drawWrapper.functions-Dzz0ghog.js","assets/cameraInputsManager-BKG-Rtee.js","assets/deviceInputEvents-BTza-zoR.js","assets/bone-B35odufe.js","assets/skeleton-BVUVDN0a.js","assets/rawTexture-Cp8_XuDs.js","assets/animation-IftAdLIx.js","assets/sceneLoader-CutT-qCn.js","assets/scene-gn_hoGMy.js","assets/renderingManager-CiY2OUrf.js","assets/perfCounter-DusmGz8t.js","assets/assetContainer-CqhaFRHR.js","assets/instancedMesh-DqDAzGKA.js","assets/light-DT53MGnW.js","assets/dynamic-Bj3y4CGC.js","assets/objectModelMapping-DWcnlpHl.js","assets/webAudioMainBus-xDEooXR5.js"])))=>i.map(i=>d[i]); +import{Q as C,V as h,O as y,M as B,E as $}from"./math.vector-C1xyPDEl.js";import{T as k}from"./tools-D01N7ptR.js";import{L as S,f as Ft,e as kt,G as Ut}from"./bufferUtils-DTRdUD8L.js";import{W as Q,P as wt,A as _}from"./decorators.serialization-C7d7ykGG.js";import{R as Bt}from"./math.scalar.functions-DkeaWAWz.js";import{A as O,G as X}from"./glTFLoader-Brfz25eu.js";import{u as Gt,r as zt}from"./dynamic-Bj3y4CGC.js";import{b as A}from"./sceneComponent-Dflhczui.js";import{S as V}from"./scene-gn_hoGMy.js";import{_ as R}from"./index-BoUtOhbH.js";class nt{constructor(t,e,i){this.frame=t,this.action=e,this.onlyOnce=i,this.isDone=!1}_clone(){return new nt(this.frame,this.action,this.onlyOnce)}}const u={coneInnerAngle:6.28318530718,coneOuterAngle:6.28318530718,coneOuterVolume:0,distanceModel:"linear",maxDistance:1e4,minDistance:1,orientation:h.Right(),panningModel:"equalpower",position:h.Zero(),rolloffFactor:1,rotation:h.Zero(),rotationQuaternion:new C};function G(s){return s.spatialEnabled||s.spatialAutoUpdate!==void 0||s.spatialConeInnerAngle!==void 0||s.spatialConeOuterAngle!==void 0||s.spatialConeOuterVolume!==void 0||s.spatialDistanceModel!==void 0||s.spatialMaxDistance!==void 0||s.spatialMinDistance!==void 0||s.spatialMinUpdateTime!==void 0||s.spatialOrientation!==void 0||s.spatialPanningModel!==void 0||s.spatialPosition!==void 0||s.spatialRolloffFactor!==void 0||s.spatialRotation!==void 0||s.spatialRotationQuaternion!==void 0}class Wt{}var ht;(function(s){s[s.HAS_INPUTS=1]="HAS_INPUTS",s[s.HAS_OUTPUTS=2]="HAS_OUTPUTS",s[s.HAS_INPUTS_AND_OUTPUTS=3]="HAS_INPUTS_AND_OUTPUTS"})(ht||(ht={}));class ot{constructor(t,e){this.onDisposeObservable=new y,this.engine=t,e&1&&(this._upstreamNodes=new Set),e&2&&(this._downstreamNodes=new Set)}dispose(){if(this._downstreamNodes){for(const t of Array.from(this._downstreamNodes))if(!this._disconnect(t))throw new Error("Disconnect failed");this._downstreamNodes.clear()}if(this._upstreamNodes){for(const t of Array.from(this._upstreamNodes))if(!t._disconnect(this))throw new Error("Disconnect failed");this._upstreamNodes.clear()}this.onDisposeObservable.notifyObservers(this),this.onDisposeObservable.clear()}_connect(t){return!this._downstreamNodes||this._downstreamNodes.has(t)||!t._onConnect(this)?!1:(this._downstreamNodes.add(t),!0)}_disconnect(t){return!this._downstreamNodes||!this._downstreamNodes.delete(t)?!1:t._onDisconnect(this)}_onConnect(t){return!this._upstreamNodes||this._upstreamNodes.has(t)?!1:(this._upstreamNodes.add(t),!0)}_onDisconnect(t){var e;return((e=this._upstreamNodes)==null?void 0:e.delete(t))??!1}}class vt extends ot{constructor(t,e,i){super(e,i),this.onNameChangedObservable=new y,this._name=t}get name(){return this._name}set name(t){if(this._name===t)return;const e=this._name;this._name=t,this.onNameChangedObservable.notifyObservers({newName:t,oldName:e,node:this})}dispose(){super.dispose(),this.onNameChangedObservable.clear()}}class j extends vt{constructor(t,e){super(t,e,3)}connect(t){if(!this._connect(t))throw new Error("Connect failed")}disconnect(t){if(!this._disconnect(t))throw new Error("Disconnect failed")}disconnectAll(){if(!this._downstreamNodes)throw new Error("Disconnect failed");const t=this._downstreamNodes.values();for(let e=t.next();!e.done;e=t.next())if(!this._disconnect(e.value))throw new Error("Disconnect failed")}}const Tt={volume:1};class Lt extends j{constructor(t){super("Volume",t)}setOptions(t){this.setVolume(t.volume??Tt.volume,{shape:"none"})}}function I(s){return s.getSubNode("Volume")}function qt(s,t){var e;return((e=I(s))==null?void 0:e[t])??Tt[t]}const P={fftSize:2048,minDecibels:-100,maxDecibels:-30,smoothing:.8};function Qt(s){return s.analyzerEnabled||s.analyzerFFTSize!==void 0||s.analyzerMinDecibels!==void 0||s.analyzerMaxDecibels!==void 0||s.analyzerSmoothing!==void 0}class Zt{get frequencyBinCount(){return this.fftSize/2}}class $t extends j{constructor(t){super("Analyzer",t)}setOptions(t){this.fftSize=t.analyzerFFTSize??P.fftSize,this.minDecibels=t.analyzerMinDecibels??P.minDecibels,this.maxDecibels=t.analyzerMaxDecibels??P.maxDecibels,this.smoothing=t.analyzerSmoothing??P.smoothing}}function D(s){return s.getSubNode("Analyzer")}function z(s,t,e){s.callOnSubNode("Analyzer",i=>{i[t]=e})}let Y=null,J=null;function Ot(){return Y||(Y=new Uint8Array),Y}function xt(){return J||(J=new Float32Array),J}class jt extends Zt{constructor(t){super(),this._fftSize=P.fftSize,this._maxDecibels=P.maxDecibels,this._minDecibels=P.minDecibels,this._smoothing=P.smoothing,this._subGraph=t}get fftSize(){return this._fftSize}set fftSize(t){this._fftSize=t,z(this._subGraph,"fftSize",t)}get isEnabled(){return D(this._subGraph)!==null}get minDecibels(){return this._minDecibels}set minDecibels(t){this._minDecibels=t,z(this._subGraph,"minDecibels",t)}get maxDecibels(){return this._maxDecibels}set maxDecibels(t){this._maxDecibels=t,z(this._subGraph,"maxDecibels",t)}get smoothing(){return this._smoothing}set smoothing(t){this._smoothing=t,z(this._subGraph,"smoothing",t)}dispose(){const t=D(this._subGraph);t&&(this._subGraph.removeSubNodeAsync(t),t.dispose())}async enableAsync(){D(this._subGraph)||await this._subGraph.createAndAddSubNodeAsync("Analyzer")}getByteFrequencyData(){const t=D(this._subGraph);return t?t.getByteFrequencyData():(S.Warn("AudioAnalyzer not enabled"),this.enableAsync(),Ot())}getFloatFrequencyData(){const t=D(this._subGraph);return t?t.getFloatFrequencyData():(S.Warn("AudioAnalyzer not enabled"),this.enableAsync(),xt())}}class Ht extends vt{constructor(t,e,i){super(t,e,i),this._analyzer=null}get analyzer(){return this._analyzer??(this._analyzer=new jt(this._subGraph))}get volume(){return qt(this._subGraph,"volume")}set volume(t){const e=I(this._subGraph);if(!e)throw new Error("No volume subnode");e.volume=t}dispose(){var t;super.dispose(),(t=this._analyzer)==null||t.dispose(),this._analyzer=null,this._subGraph.dispose()}setVolume(t,e=null){const i=I(this._subGraph);if(!i)throw new Error("No volume subnode");i.setVolume(t,e)}}class Pt extends Ht{constructor(t,e,i,n=2){super(t,e,n),this._spatialAutoUpdate=!0,this._spatialMinUpdateTime=0,this._outBus=null,this._spatial=null,this._onOutBusDisposed=null,typeof i.spatialAutoUpdate=="boolean"&&(this._spatialAutoUpdate=i.spatialAutoUpdate),typeof i.spatialMinUpdateTime=="number"&&(this._spatialMinUpdateTime=i.spatialMinUpdateTime)}get outBus(){return this._outBus}set outBus(t){if(this._outBus!==t){if(this._outBus&&(this._onOutBusDisposed&&(this._outBus.onDisposeObservable.removeCallback(this._onOutBusDisposed),this._onOutBusDisposed=null),!this._disconnect(this._outBus)))throw new Error("Disconnect failed");if(this._outBus=t,this._outBus&&(this._onOutBusDisposed=()=>{this._outBus=null},this._outBus.onDisposeObservable.add(this._onOutBusDisposed),!this._connect(this._outBus)))throw new Error("Connect failed")}}get spatial(){return this._spatial?this._spatial:this._initSpatialProperty()}dispose(){var t;super.dispose(),(t=this._spatial)==null||t.dispose(),this._spatial=null,this._outBus&&this._onOutBusDisposed&&(this._outBus.onDisposeObservable.removeCallback(this._onOutBusDisposed),this._onOutBusDisposed=null),this._outBus=null}_initSpatialProperty(){return this._spatial=this._createSpatialProperty(this._spatialAutoUpdate,this._spatialMinUpdateTime)}get _isSpatial(){return this._spatial!==null}set _isSpatial(t){t&&!this._spatial?this._initSpatialProperty():!t&&this._spatial&&(this._spatial.dispose(),this._spatial=null)}}const Dt={pan:0};function Xt(s){return s.stereoEnabled||s.stereoPan!==void 0}class Yt{}class Jt extends j{constructor(t){super("Stereo",t)}setOptions(t){this.pan=t.stereoPan??Dt.pan}}function lt(s){return s.getSubNode("Stereo")}function Kt(s,t,e){s.callOnSubNode("Stereo",i=>{i[t]=e})}class at extends Yt{constructor(t){super(),this._pan=Dt.pan,this._subGraph=t}get pan(){return this._pan}set pan(t){this._pan=t,Kt(this._subGraph,"pan",t)}}class st{constructor(t){this._attachmentType=3,this._position=new h,this._rotationQuaternion=new C,this._sceneNode=null,this._useBoundingBox=!1,this.dispose=()=>{this.detach()},this._spatialAudioNode=t}get isAttached(){return this._sceneNode!==null}attach(t,e,i){this._sceneNode!==t&&(this.detach(),t&&(this._attachmentType=i,this._sceneNode=t,this._sceneNode.onDisposeObservable.add(this.dispose),this._useBoundingBox=e))}detach(){var t;(t=this._sceneNode)==null||t.onDisposeObservable.removeCallback(this.dispose),this._sceneNode=null}update(){var t,e;this._attachmentType&1&&(this._useBoundingBox&&this._sceneNode.getBoundingInfo?this._position.copyFrom(this._sceneNode.getBoundingInfo().boundingBox.centerWorld):(t=this._sceneNode)==null||t.getWorldMatrix().getTranslationToRef(this._position),this._spatialAudioNode.position.copyFrom(this._position),this._spatialAudioNode._updatePosition()),this._attachmentType&2&&((e=this._sceneNode)==null||e.getWorldMatrix().decompose(void 0,this._rotationQuaternion),this._spatialAudioNode.rotationQuaternion.copyFrom(this._rotationQuaternion),this._spatialAudioNode._updateRotation())}}class te extends j{constructor(t){super("Spatial",t),this._attacherComponent=null}get isAttached(){return this._attacherComponent!==null&&this._attacherComponent.isAttached}attach(t,e,i){this.detach(),this._attacherComponent||(this._attacherComponent=new st(this)),this._attacherComponent.attach(t,e,i)}detach(){var t;(t=this._attacherComponent)==null||t.detach()}dispose(){var t;super.dispose(),(t=this._attacherComponent)==null||t.dispose(),this._attacherComponent=null}setOptions(t){this.coneInnerAngle=t.spatialConeInnerAngle??u.coneInnerAngle,this.coneOuterAngle=t.spatialConeOuterAngle??u.coneOuterAngle,this.coneOuterVolume=t.spatialConeOuterVolume??u.coneOuterVolume,this.distanceModel=t.spatialDistanceModel??u.distanceModel,this.maxDistance=t.spatialMaxDistance??u.maxDistance,this.minDistance=t.spatialMinDistance??u.minDistance,this.orientation=t.spatialOrientation??u.orientation,this.panningModel=t.spatialPanningModel??u.panningModel,this.rolloffFactor=t.spatialRolloffFactor??u.rolloffFactor,t.spatialPosition&&(this.position=t.spatialPosition.clone()),t.spatialRotationQuaternion?this.rotationQuaternion=t.spatialRotationQuaternion.clone():t.spatialRotation?this.rotation=t.spatialRotation.clone():this.rotationQuaternion=u.rotationQuaternion.clone(),this.update()}update(){var t;this.isAttached?(t=this._attacherComponent)==null||t.update():(this._updatePosition(),this._updateRotation())}}function w(s){return s.getSubNode("Spatial")}function x(s,t,e){s.callOnSubNode("Spatial",i=>{i[t]=e})}const ee=new RegExp("\\.(\\w{3,4})($|\\?)"),v=100,K=new Float32Array([0,0]);let F=null,W=null,L=null;function ie(){if(!W){W=new Float32Array(v);const s=1/(v-1);let t=s;for(let e=1;e0&&S.Warn("WebAudioStreamingSound: Custom request headers cannot be applied to a streaming