(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-579fe43e"],{"2a00":function(e,t,n){"use strict";n.r(t),n.d(t,"destroyContext",(function(){return y})),n.d(t,"dracoDecompressPointCloudData",(function(){return l})),n.d(t,"filterObbsForModifications",(function(){return h})),n.d(t,"filterObbsForModificationsSync",(function(){return L})),n.d(t,"initialize",(function(){return v})),n.d(t,"interpretObbModificationResults",(function(){return O})),n.d(t,"process",(function(){return d})),n.d(t,"setLegacySchema",(function(){return m})),n.d(t,"setModifications",(function(){return b})),n.d(t,"setModificationsSync",(function(){return w})),n.d(t,"test",(function(){return A}));var r=n("b2b2"),o=n("a21b"),i=n("7a89"),s=n("b2cd");function c(){return f||(f=new Promise(e=>n.e("chunk-2d0e887f").then(n.bind(null,"8a55")).then(e=>e.i).then(({default:t})=>{const n=t({locateFile:a,onRuntimeInitialized:()=>e(n)});delete n.then})).catch(e=>Promise.reject(e))),f}function a(e){return Object(s["b"])("esri/libs/i3s/"+e)}let f;var u=n("c453");async function d(e){await v();const t=[e.geometryBuffer];return{result:g(e,t),transferList:t}}async function l(e){var t;await v();const n=[e.geometryBuffer],{geometryBuffer:r}=e,i=r.byteLength,s=E._malloc(i),c=new Uint8Array(E.HEAPU8.buffer,s,i);c.set(new Uint8Array(r));const a=E.dracoDecompressPointCloudData(s,c.byteLength);if(E._free(s),a.error.length>0)throw"i3s.wasm: "+a.error;const f=(null==(t=a.featureIds)?void 0:t.length)>0?Object(o["m"])(a.featureIds):null,u=Object(o["m"])(a.positions);return f&&n.push(f.buffer),n.push(u.buffer),{result:{positions:u,featureIds:f},transferList:n}}async function h(e){await v(),L(e);const t={buffer:e.buffer};return{result:t,transferList:[t.buffer]}}async function b(e){await v(),w(e)}async function m(e){await v(),E.setLegacySchema(e.context,e.jsonSchema)}function y(e){U(e)}let p,E;function w(e){const t=e.modifications,n=E._malloc(8*t.length),r=new Float64Array(E.HEAPU8.buffer,n,t.length);for(let o=0;oe.some(e=>"color"===e.name)),normal:e.needNormals&&e.layouts.some(e=>e.some(e=>"normalCompressed"===e.name)),uv0:e.layouts.some(e=>e.some(e=>"uv0"===e.name)),uvRegion:e.layouts.some(e=>e.some(e=>"uvRegion"===e.name)),featureIndex:U.featureIndex},A=E.process(n,!!e.obb,m,w.byteLength,U,v,p,u,h,b,e.normalReferenceFrame);if(E._free(p),E._free(m),A.error.length>0)throw"i3s.wasm: "+A.error;if(A.discarded)return null;const M=A.componentOffsets.length>0?Object(o["m"])(A.componentOffsets):null,_=A.featureIds.length>0?Object(o["m"])(A.featureIds):null,C=Object(o["m"])(A.interleavedVertedData).buffer,F=A.indicesType===i["a"].Int16?Object(o["m"])(new Uint16Array(A.indices.buffer,A.indices.byteOffset,A.indices.byteLength/2)):Object(o["m"])(new Uint32Array(A.indices.buffer,A.indices.byteOffset,A.indices.byteLength/4)),P=Object(o["m"])(A.positions),R=A.positionIndicesType===i["a"].Int16?Object(o["m"])(new Uint16Array(A.positionIndices.buffer,A.positionIndices.byteOffset,A.positionIndices.byteLength/2)):Object(o["m"])(new Uint32Array(A.positionIndices.buffer,A.positionIndices.byteOffset,A.positionIndices.byteLength/4)),T={layout:e.layouts[0],interleavedVertexData:C,indices:F,hasColors:A.hasColors,hasModifications:A.hasModifications,positionData:{data:P,indices:R}};return _&&t.push(_.buffer),M&&t.push(M.buffer),t.push(C),t.push(F.buffer),t.push(P.buffer),t.push(R.buffer),{componentOffsets:M,featureIds:_,transformedGeometry:T,obb:A.obb}}function O(e){return 0===e?u["f"].Unmodified:1===e?u["f"].PotentiallyModified:2===e?u["f"].Culled:u["f"].Unknown}function L(e){const{context:t,buffer:n}=e,r=E._malloc(n.byteLength),o=n.byteLength/Float64Array.BYTES_PER_ELEMENT,i=new Float64Array(E.HEAPU8.buffer,r,o),s=new Float64Array(n);i.set(s),E.filterOBBs(t,r,o),s.set(i),E._free(r)}function U(e){E&&E.destroy(e)}function I(e,t){for(let n=0;n{E=e,p=null})),p)}const A={transform:g,destroy:U}},"7a89":function(e,t,n){"use strict";var r,o;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),function(e){e[e.None=0]="None",e[e.Int16=1]="Int16",e[e.Int32=2]="Int32"}(r||(r={})),function(e){e[e.Replace=0]="Replace",e[e.Outside=1]="Outside",e[e.Inside=2]="Inside",e[e.Finished=3]="Finished"}(o||(o={}))},c453:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return f})),n.d(t,"e",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"g",(function(){return c})),n.d(t,"h",(function(){return d}));var r,o,i,s,c,a=n("0fc4");class f{constructor(e,t){this.id=e,this.mbs=t,this.renderMbs=Object(a["f"])([0,0,0,-1]),this.imModificationImpact=o.NotChecked}}!function(e){e[e.Unmodified=0]="Unmodified",e[e.Culled=1]="Culled",e[e.NotChecked=2]="NotChecked"}(r||(r={})),function(e){e[e.Unmodified=0]="Unmodified",e[e.PotentiallyModified=1]="PotentiallyModified",e[e.Culled=2]="Culled",e[e.Unknown=3]="Unknown",e[e.NotChecked=4]="NotChecked"}(o||(o={}));class u extends f{constructor(e,t,n,r,o,s,c,a,f,u){super(e,n),this.index=t,this.childCount=r,this.level=o,this.resources=s,this.version=c,this.lodMetric=a,this.maxError=f,this.numFeatures=u,this.failed=!1,this.hasModifications=!1,this.cacheState=i.Unknown,this.vertexCount=0,this.memory=0}}!function(e){e[e.Unknown=0]="Unknown",e[e.Uncached=1]="Uncached",e[e.Cached=2]="Cached"}(i||(i={})),function(e){e[e.None=0]="None",e[e.MaxScreenThreshold=1]="MaxScreenThreshold",e[e.ScreenSpaceRelative=2]="ScreenSpaceRelative",e[e.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",e[e.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(s||(s={})),function(e){e[e.Hole=0]="Hole",e[e.Leaf=1]="Leaf"}(c||(c={}));class d{constructor(e,t,n,r){this.nodeHasLOD=e,this.isChosen=t,this.lodLevel=n,this.version=r}}}}]); //# sourceMappingURL=chunk-579fe43e.b0262def.js.map