@arcgis/core 4.24.0-next.20220401 → 4.24.0-next.20220404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{c665e9b7d09fe516f138.js → 2fe10c5c01056babeae5.js} +1 -1
- package/assets/esri/core/workers/chunks/{8771296b537f366596c4.js → 37aa4532e25d54055e40.js} +54 -54
- package/assets/esri/core/workers/chunks/528033aa0d663b4d41bf.js +1 -0
- package/assets/esri/core/workers/chunks/{0e29250c24a3a7b1ce13.js → 6de5a790c14f04c6c302.js} +1 -1
- package/assets/esri/core/workers/chunks/b1188ca77b975c6a7d92.js +1 -0
- package/chunks/BlendLayers.glsl.js +1 -1
- package/chunks/DefaultMaterial.glsl.js +26 -26
- package/chunks/HUDMaterial.glsl.js +37 -37
- package/chunks/HighlightDownsample.glsl.js +1 -1
- package/chunks/ImageMaterial.glsl.js +10 -10
- package/chunks/LineMarker.glsl.js +75 -32
- package/chunks/RealisticTree.glsl.js +26 -26
- package/chunks/SMAA.glsl.js +2 -2
- package/chunks/SSAO.glsl.js +2 -2
- package/chunks/SimpleAtmosphere.glsl.js +10 -10
- package/chunks/TextureOnly.glsl.js +2 -2
- package/core/accessorSupport/Property.js +1 -1
- package/interfaces.d.ts +25 -7
- package/package.json +1 -1
- package/smartMapping/renderers/color.js +1 -1
- package/smartMapping/renderers/dotDensity.js +1 -1
- package/smartMapping/renderers/heatmap.js +1 -1
- package/smartMapping/renderers/location.js +1 -1
- package/smartMapping/renderers/predominance.js +1 -1
- package/smartMapping/renderers/relationship.js +1 -1
- package/smartMapping/renderers/size.js +1 -1
- package/smartMapping/renderers/type.js +1 -1
- package/smartMapping/symbology/color.js +1 -1
- package/smartMapping/symbology/dotDensity.js +1 -1
- package/smartMapping/symbology/flow.js +1 -1
- package/smartMapping/symbology/heatmap.js +1 -1
- package/smartMapping/symbology/location.js +1 -1
- package/smartMapping/symbology/predominance.js +1 -1
- package/smartMapping/symbology/relationship.js +1 -1
- package/smartMapping/symbology/size.js +1 -1
- package/smartMapping/symbology/type.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/Stage.js +1 -1
- package/views/2d/engine/flow/BrushFlow.js +1 -1
- package/views/2d/engine/imagery/BrushRasterBitmap.js +1 -1
- package/views/2d/engine/imagery/BrushVectorField.js +1 -1
- package/views/2d/engine/vectorTiles/VectorTileRendererHelper3D.js +1 -1
- package/views/2d/engine/webgl/Painter.js +1 -1
- package/views/2d/engine/webgl/brushes/BrushBitmap.js +1 -1
- package/views/2d/engine/webgl/brushes/BrushClip.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushInfo.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushStencil.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushVTLBackground.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushVTLCircle.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushVTLFill.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushVTLLine.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLBrushVTLSymbol.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrushFill.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrushLabel.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrushLine.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrushMarker.js +1 -1
- package/views/2d/engine/webgl/brushes/WGLGeometryBrushText.js +1 -1
- package/views/2d/engine/webgl/effects/post-processing/EffectManager.js +1 -1
- package/views/3d/environment/CloudsComposition.js +1 -1
- package/views/3d/environment/PanoramicAtmosphere.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.glsl.js +1 -1
- package/views/3d/environment/SimpleAtmosphere.js +1 -1
- package/views/3d/environment/SimpleAtmosphereTechnique.js +1 -1
- package/views/3d/layers/graphics/objectResourceUtils.js +1 -1
- package/views/3d/terrain/TerrainRenderer.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentMaterial.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechnique.js +1 -1
- package/views/3d/webgl-engine/collections/Component/Material/ComponentTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/core/material/MaterialBase.js +1 -1
- package/views/3d/webgl-engine/core/material/RenderTexture.js +1 -1
- package/views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/VertexTextureCoordinates.glsl.js +6 -6
- package/views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js +3 -3
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js +5 -5
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +12 -12
- package/views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js +7 -7
- package/views/3d/webgl-engine/core/shaderLibrary/shading/ReadBaseColorTexture.glsl.js +4 -9
- package/views/3d/webgl-engine/core/shaderModules/BooleanUniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Float2Uniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Float4Uniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Float4sUniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/FloatUniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/FloatsUniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/IntegerUniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Matrix3Uniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Texture2DUniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderModules/Uniform.js +1 -1
- package/views/3d/webgl-engine/core/shaderTechnique/BindType.js +1 -1
- package/views/3d/webgl-engine/lib/GLTextureMaterial.js +1 -1
- package/views/3d/webgl-engine/lib/Program.js +1 -1
- package/views/3d/webgl-engine/lighting/SceneLighting.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/DefaultTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/LineMarkerMaterial.js +1 -1
- package/views/3d/webgl-engine/materials/PathTechnique.js +1 -1
- package/views/3d/webgl-engine/materials/WaterTechnique.js +1 -1
- package/views/3d/webgl-engine/parts/RenderView.js +1 -1
- package/views/3d/webgl-engine/parts/ScreenshotManager.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/DefaultMaterialTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterial.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/ImageMaterialTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechnique.js +1 -1
- package/views/3d/webgl-engine/shaders/LineMarkerTechniqueConfiguration.js +1 -1
- package/views/3d/webgl-engine/shaders/RealisticTree.glsl.js +1 -1
- package/views/3d/webgl-engine/shaders/TerrainTechniqueConfiguration.js +1 -1
- package/views/MapView.js +1 -1
- package/views/SceneView.js +1 -1
- package/views/support/DefaultsFromMap.js +1 -1
- package/views/support/screenshotUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/assets/esri/core/workers/chunks/5682039666f874836451.js +0 -1
- package/assets/esri/core/workers/chunks/79bdb26244ec7b4472fe.js +0 -1
- package/chunks/color.js +0 -5
- package/chunks/dotDensity.js +0 -5
- package/chunks/heatmap.js +0 -5
- package/chunks/location.js +0 -5
- package/chunks/predominance.js +0 -5
- package/chunks/relationship.js +0 -5
- package/chunks/size.js +0 -5
- package/chunks/type.js +0 -5
- package/renderers/smartMapping/creators/color.js +0 -5
- package/renderers/smartMapping/creators/dotDensity.js +0 -5
- package/renderers/smartMapping/creators/heatmap.js +0 -5
- package/renderers/smartMapping/creators/location.js +0 -5
- package/renderers/smartMapping/creators/opacity.js +0 -5
- package/renderers/smartMapping/creators/predominance.js +0 -5
- package/renderers/smartMapping/creators/relationship.js +0 -5
- package/renderers/smartMapping/creators/size.js +0 -5
- package/renderers/smartMapping/creators/support/utils.js +0 -5
- package/renderers/smartMapping/creators/type.js +0 -5
- package/renderers/smartMapping/creators/univariateColorSize.js +0 -5
- package/renderers/smartMapping/heuristics/scaleRange.js +0 -5
- package/renderers/smartMapping/heuristics/sizeRange.js +0 -5
- package/renderers/smartMapping/statistics/classBreaks.js +0 -5
- package/renderers/smartMapping/statistics/heatmapStatistics.js +0 -5
- package/renderers/smartMapping/statistics/histogram.js +0 -5
- package/renderers/smartMapping/statistics/predominantCategories.js +0 -5
- package/renderers/smartMapping/statistics/summaryStatistics.js +0 -5
- package/renderers/smartMapping/statistics/summaryStatisticsForAge.js +0 -5
- package/renderers/smartMapping/statistics/support/ageUtils.js +0 -5
- package/renderers/smartMapping/statistics/uniqueValues.js +0 -5
- package/renderers/smartMapping/symbology/color.js +0 -5
- package/renderers/smartMapping/symbology/dotDensity.js +0 -5
- package/renderers/smartMapping/symbology/heatmap.js +0 -5
- package/renderers/smartMapping/symbology/location.js +0 -5
- package/renderers/smartMapping/symbology/predominance.js +0 -5
- package/renderers/smartMapping/symbology/relationship.js +0 -5
- package/renderers/smartMapping/symbology/size.js +0 -5
- package/renderers/smartMapping/symbology/support/colorRamps.js +0 -5
- package/renderers/smartMapping/symbology/support/utils.js +0 -5
- package/renderers/smartMapping/symbology/type.js +0 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2133],{93860:(e,t,r)=>{function n(e,t){const r=e.count;t||(t=new e.TypedArrayConstructor(r));for(let n=0;n<r;n++)t[n]=e.get(n);return t}r.d(t,{m:()=>n}),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride,a=r?r.count:t.count;let _=(r&&r.dstIndex?r.dstIndex:0)*o,u=(r&&r.srcIndex?r.srcIndex:0)*i;for(let e=0;e<a;++e)n[_]=s[u],_+=o,u+=i},makeDense:n},Symbol.toStringTag,{value:"Module"}))},10816:(e,t,r)=>{r.d(t,{f:()=>i,n:()=>s});var n=r(79583);function o(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride,a=r?r.count:t.count;let _=(r&&r.dstIndex?r.dstIndex:0)*o,u=(r&&r.srcIndex?r.srcIndex:0)*i;for(let e=0;e<a;++e)n[_]=s[u],n[_+1]=s[u+1],_+=o,u+=i}function s(e,t,r){const s=e.typedBuffer,i=e.typedBufferStride,a=t.typedBuffer,_=t.typedBufferStride,u=r?r.count:t.count;let E=(r&&r.dstIndex?r.dstIndex:0)*i,c=(r&&r.srcIndex?r.srcIndex:0)*_;if((0,n.U)(t.elementType)){const e=(0,n.Op)(t.elementType);if((0,n.B3)(t.elementType))for(let t=0;t<u;++t)s[E]=Math.max(a[c]/e,-1),s[E+1]=Math.max(a[c+1]/e,-1),E+=i,c+=_;else for(let t=0;t<u;++t)s[E]=a[c]/e,s[E+1]=a[c+1]/e,E+=i,c+=_}else o(e,t,r);return e}function i(e,t,r,n){var o,s;const i=e.typedBuffer,a=e.typedBufferStride,_=null!=(o=null==n?void 0:n.count)?o:e.count;let u=(null!=(s=null==n?void 0:n.dstIndex)?s:0)*a;for(let e=0;e<_;++e)i[u]=t,i[u+1]=r,u+=a}Object.freeze(Object.defineProperty({__proto__:null,copy:o,normalizeIntegerBuffer:s,fill:i},Symbol.toStringTag,{value:"Module"}))},97323:(e,t,r)=>{function n(){return[0,0]}function o(e,t){return[e,t]}function s(e,t){return new Float64Array(e,t,2)}function i(){return o(1,1)}function a(){return o(1,0)}function _(){return o(0,1)}r.d(t,{Z:()=>u,a:()=>n,c:()=>s});const u=[0,0],E=i(),c=a(),T=_();Object.freeze(Object.defineProperty({__proto__:null,create:n,clone:function(e){return[e[0],e[1]]},fromValues:o,fromArray:function(e){const t=[0,0],r=Math.min(2,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},createView:s,zeros:function(){return[0,0]},ones:i,unitX:a,unitY:_,ZEROS:u,ONES:E,UNIT_X:c,UNIT_Y:T},Symbol.toStringTag,{value:"Module"}))},11077:(e,t,r)=>{r.d(t,{a:()=>a,n:()=>s,s:()=>i,t:()=>o});var n=r(72220);function o(e,t,r){if(e.count!==t.count)return void n.c.error("source and destination buffers need to have the same number of elements");const o=e.count,s=r[0],i=r[1],a=r[2],_=r[3],u=r[4],E=r[5],c=r[6],T=r[7],R=r[8],f=e.typedBuffer,A=e.typedBufferStride,l=t.typedBuffer,N=t.typedBufferStride;for(let e=0;e<o;e++){const t=e*A,r=e*N,n=l[r],o=l[r+1],d=l[r+2],S=l[r+3];f[t]=s*n+_*o+c*d,f[t+1]=i*n+u*o+T*d,f[t+2]=a*n+E*o+R*d,f[t+3]=S}}function s(e,t){const r=Math.min(e.count,t.count),n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride;for(let e=0;e<r;e++){const t=e*o,r=e*i,a=s[r],_=s[r+1],u=s[r+2],E=a*a+_*_+u*u;if(E>0){const e=1/Math.sqrt(E);n[t]=e*a,n[t+1]=e*_,n[t+2]=e*u}}}function i(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*s,n=e*a;o[t]=r*i[n],o[t+1]=r*i[n+1],o[t+2]=r*i[n+2],o[t+3]=r*i[n+3]}}function a(e,t,r){const n=Math.min(e.count,t.count),o=e.typedBuffer,s=e.typedBufferStride,i=t.typedBuffer,a=t.typedBufferStride;for(let e=0;e<n;e++){const t=e*s,n=e*a;o[t]=i[n]>>r,o[t+1]=i[n+1]>>r,o[t+2]=i[n+2]>>r,o[t+3]=i[n+3]>>r}}Object.freeze(Object.defineProperty({__proto__:null,transformMat4:function(e,t,r){if(e.count!==t.count)return void n.c.error("source and destination buffers need to have the same number of elements");const o=e.count,s=r[0],i=r[1],a=r[2],_=r[3],u=r[4],E=r[5],c=r[6],T=r[7],R=r[8],f=r[9],A=r[10],l=r[11],N=r[12],d=r[13],S=r[14],I=r[15],O=e.typedBuffer,C=e.typedBufferStride,p=t.typedBuffer,h=t.typedBufferStride;for(let e=0;e<o;e++){const t=e*C,r=e*h,n=p[r],o=p[r+1],M=p[r+2],m=p[r+3];O[t]=s*n+u*o+R*M+N*m,O[t+1]=i*n+E*o+f*M+d*m,O[t+2]=a*n+c*o+A*M+S*m,O[t+3]=_*n+T*o+l*M+I*m}},transformMat3:o,normalize:s,scale:i,shiftRight:a},Symbol.toStringTag,{value:"Module"}))},75488:(e,t,r)=>{function n(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride,a=r?r.count:t.count;let _=(r&&r.dstIndex?r.dstIndex:0)*o,u=(r&&r.srcIndex?r.srcIndex:0)*i;for(let e=0;e<a;++e)n[_]=s[u],n[_+1]=s[u+1],n[_+2]=s[u+2],n[_+3]=s[u+3],_+=o,u+=i}function o(e,t,r,n,o,s){var i,a;const _=e.typedBuffer,u=e.typedBufferStride,E=null!=(i=null==s?void 0:s.count)?i:e.count;let c=(null!=(a=null==s?void 0:s.dstIndex)?a:0)*u;for(let e=0;e<E;++e)_[c]=t,_[c+1]=r,_[c+2]=n,_[c+3]=o,c+=u}r.d(t,{c:()=>n,f:()=>o}),Object.freeze(Object.defineProperty({__proto__:null,copy:n,fill:o},Symbol.toStringTag,{value:"Module"}))},88669:(e,t,r)=>{function n(){return[0,0,0,0]}function o(e,t,r,n){return[e,t,r,n]}function s(e,t){return new Float64Array(e,t,4)}function i(){return o(1,1,1,1)}function a(){return o(1,0,0,0)}function _(){return o(0,1,0,0)}function u(){return o(0,0,1,0)}function E(){return o(0,0,0,1)}r.d(t,{a:()=>s,c:()=>n,f:()=>o});const c=i(),T=a(),R=_(),f=u(),A=E();Object.freeze(Object.defineProperty({__proto__:null,create:n,clone:function(e){return[e[0],e[1],e[2],e[3]]},fromValues:o,fromArray:function(e){const t=[0,0,0,0],r=Math.min(4,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t},createView:s,zeros:function(){return[0,0,0,0]},ones:i,unitX:a,unitY:_,unitZ:u,unitW:E,ZEROS:[0,0,0,0],ONES:c,UNIT_X:T,UNIT_Y:R,UNIT_Z:f,UNIT_W:A},Symbol.toStringTag,{value:"Module"}))},22807:(e,t,r)=>{r.d(t,{x:()=>o});var n=r(41213);class o{constructor(e){this.allocator=e,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,n.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const e=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*s);this._items.length=Math.min(e,this._items.length),this._itemsPtr=0}_grow(){for(let e=0;e<Math.max(8,Math.min(this._items.length,s));e++)this._items.push(this.allocator())}}const s=1024},23670:(e,t,r)=>{r.d(t,{G:()=>o});var n=r(20102);class o{constructor(e,t,r=""){this.major=e,this.minor=t,this._context=r}lessThan(e,t){return this.major<e||e===this.major&&this.minor<t}since(e,t){return!this.lessThan(e,t)}validate(e){if(this.major!==e.major){const t=this._context&&this._context+":",r=this._context&&this._context+" ";throw new n.Z(t+"unsupported-version",`Required major ${r}version is '${this.major}', but got '\${version.major}.\${version.minor}'`,{version:e})}}clone(){return new o(this.major,this.minor,this._context)}static parse(e,t=""){const[r,s]=e.split("."),i=/^\s*\d+\s*$/;if(!r||!r.match||!r.match(i))throw new n.Z((t&&t+":")+"invalid-version","Expected major version to be a number, but got '${version}'",{version:e});if(!s||!s.match||!s.match(i))throw new n.Z((t&&t+":")+"invalid-version","Expected minor version to be a number, but got '${version}'",{version:e});const a=parseInt(r,10),_=parseInt(s,10);return new o(a,_,t)}}},43090:(e,t,r)=>{function n(e){return 32+e.length}function o(e){if(!e)return 0;let t=32;for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];switch(typeof o){case"string":t+=n(o);break;case"number":t+=16;break;case"boolean":t+=4}}return t}function s(e,t){return 32+e.length*t}var i;r.d(t,{Y8:()=>i,do:()=>s,f2:()=>o}),function(e){e[e.KILOBYTES=1024]="KILOBYTES",e[e.MEGABYTES=1048576]="MEGABYTES",e[e.GIGABYTES=1073741824]="GIGABYTES"}(i||(i={}))},79583:(e,t,r)=>{function n(e){switch(e){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8;default:return}}function o(e){switch(e){case"u8":case"u16":case"u32":return!1;case"i8":case"i16":case"i32":case"f32":case"f64":return!0;default:return}}function s(e){switch(e){case"u8":case"u16":case"u32":case"i8":case"i16":case"i32":return!0;case"f32":case"f64":return!1;default:return}}function i(e){switch(e){case"u8":return 255;case"u16":return 65535;case"u32":return 4294967295;case"i8":return 127;case"i16":return 32767;case"i32":return 2147483647;case"f32":return 3402823e32;case"f64":return 179769e303;default:return}}r.d(t,{B3:()=>o,Op:()=>i,U:()=>s,n1:()=>n}),r(80442)},8323:(e,t,r)=>{r.d(t,{gS:()=>o});var n=r(79583);function o(e,t){return new e(new ArrayBuffer(t*e.ElementCount*(0,n.n1)(e.ElementType)))}Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride,a=r?r.count:t.count;let _=(r&&r.dstIndex?r.dstIndex:0)*o,u=(r&&r.srcIndex?r.srcIndex:0)*i;for(let e=0;e<a;++e){for(let e=0;e<9;++e)n[_+e]=s[u+e];_+=o,u+=i}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(e,t,r){const n=e.typedBuffer,o=e.typedBufferStride,s=t.typedBuffer,i=t.typedBufferStride,a=r?r.count:t.count;let _=(r&&r.dstIndex?r.dstIndex:0)*o,u=(r&&r.srcIndex?r.srcIndex:0)*i;for(let e=0;e<a;++e){for(let e=0;e<16;++e)n[_+e]=s[u+e];_+=o,u+=i}}},Symbol.toStringTag,{value:"Module"})),r(93860),r(10816),r(56067),r(75488)},12981:(e,t,r)=>{r.d(t,{MP:()=>f,WM:()=>R});var n=r(43090),o=r(41213),s=r(46521),i=r(13598),a=r(94961),_=r(97323),u=r(65617),E=r(88669);class c{constructor(e,t,r){this.itemByteSize=e,this.itemCreate=t,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(r/this.itemByteSize)}get(){0===this._itemsPtr&&(0,o.Y)((()=>this._reset()));const e=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=e;){const e=new ArrayBuffer(this._itemsPerBuffer*this.itemByteSize);for(let t=0;t<this._itemsPerBuffer;++t)this._items.push(this.itemCreate(e,t*this.itemByteSize));this._buffers.push(e)}return this._items[this._itemsPtr++]}_reset(){const e=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>e;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(e=T){return new c(16,_.c,e)}static createVec3f64(e=T){return new c(24,u.b,e)}static createVec4f64(e=T){return new c(32,E.a,e)}static createMat3f64(e=T){return new c(72,s.a,e)}static createMat4f64(e=T){return new c(128,i.a,e)}static createQuatf64(e=T){return new c(32,a.c,e)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this.itemByteSize}}}const T=4*n.Y8.KILOBYTES,R=(c.createVec2f64(),c.createVec3f64()),f=(c.createVec4f64(),c.createMat3f64(),c.createMat4f64());c.createQuatf64()},40270:(e,t,r)=>{r.d(t,{C:()=>u});var n=r(3172),o=r(66643),s=r(20102),i=r(70586),a=r(95330),_=r(17452);class u{constructor(e){this.streamDataRequester=e}async loadJSON(e,t){return this._load("json",e,t)}async loadBinary(e,t){return(0,_.HK)(e)?((0,a.k_)(t),(0,_.AH)(e)):this._load("binary",e,t)}async loadImage(e,t){return this._load("image",e,t)}async _load(e,t,r){if((0,i.Wi)(this.streamDataRequester))return(await(0,n.default)(t,{responseType:E[e]})).data;const _=await(0,o.q6)(this.streamDataRequester.request(t,e,r));if(!0===_.ok)return _.value;throw(0,a.r9)(_.error),new s.Z("",`Request for resource failed: ${_.error}`)}}const E={image:"image",binary:"array-buffer",json:"json"}},91911:(e,t,r)=>{r.d(t,{DA:()=>i,jX:()=>a,nh:()=>s});var n=r(1533),o=r(64291);function s(e,t=o.p){return"number"==typeof e?t(e):(0,n.Uc)(e)||(0,n.lq)(e)?new Uint32Array(e):e}function i(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;t+=1)t%2==0?(n[e++]=t,n[e++]=t+1,n[e++]=t+2):(n[e++]=t+1,n[e++]=t,n[e++]=t+2)}else{let t=0;for(let o=0;o<r;o+=1)if(o%2==0){const r=e[o],s=e[o+1],i=e[o+2];n[t++]=r,n[t++]=s,n[t++]=i}else{const r=e[o+1],s=e[o],i=e[o+2];n[t++]=r,n[t++]=s,n[t++]=i}}return n}function a(e){const t="number"==typeof e?e:e.length;if(t<3)return new Uint16Array(0);const r=t-2,n=r<=65536?new Uint16Array(3*r):new Uint32Array(3*r);if("number"==typeof e){let e=0;for(let t=0;t<r;++t)n[e++]=0,n[e++]=t+1,n[e++]=t+2;return n}{const t=e[0];let o=e[1],s=0;for(let i=0;i<r;++i){const r=e[i+2];n[s++]=t,n[s++]=o,n[s++]=r,o=r}return n}}},88246:(e,t,r)=>{r.d(t,{z:()=>g});var n=r(70586),o=r(13598),s=r(20102);const i=r(92604).Z.getLogger("esri.views.3d.glTF");var a,_,u=r(35371),E=r(74085),c=r(30175),T=r(17452),R=r(23670),f=r(52138),A=r(51305),l=r(94961),N=r(56481),d=r(93860);class S{constructor(e){this.data=e,this.offset4=0,this.dataUint32=new Uint32Array(this.data,0,Math.floor(this.data.byteLength/4))}readUint32(){const e=this.offset4;return this.offset4+=1,this.dataUint32[e]}readUint8Array(e){const t=4*this.offset4;return this.offset4+=e/4,new Uint8Array(this.data,t,e)}remainingBytes(){return this.data.byteLength-4*this.offset4}}!function(e){e.SCALAR="SCALAR",e.VEC2="VEC2",e.VEC3="VEC3",e.VEC4="VEC4",e.MAT2="MAT2",e.MAT3="MAT3",e.MAT4="MAT4"}(a||(a={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER"}(_||(_={}));const I={baseColorFactor:[1,1,1,1],metallicFactor:1,roughnessFactor:1},O={pbrMetallicRoughness:I,emissiveFactor:[0,0,0],alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1},C={ESRI_externalColorMixMode:"tint"},p=(e={})=>{const t={...I,...e.pbrMetallicRoughness},r=function(e){switch(e.ESRI_externalColorMixMode){case"multiply":case"tint":case"ignore":case"replace":break;default:(0,E.Bg)(e.ESRI_externalColorMixMode),e.ESRI_externalColorMixMode="tint"}return e}({...C,...e.extras});return{...O,...e,pbrMetallicRoughness:t,extras:r}},h={magFilter:u.cw.LINEAR,minFilter:u.cw.LINEAR_MIPMAP_LINEAR,wrapS:u.e8.REPEAT,wrapT:u.e8.REPEAT},M=e=>({...h,...e}),m=1179937895;class U{constructor(e,t,r,n,o){this.context=e,this.errorContext=t,this.uri=r,this.json=n,this.glbBuffer=o,this.bufferLoaders=new Map,this.textureLoaders=new Map,this.textureCache=new Map,this.materialCache=new Map,this.nodeParentMap=new Map,this.nodeTransformCache=new Map,this.baseUri=function(e){let t,r;return e.replace(/^(.*\/)?([^/]*)$/,((e,n,o)=>(t=n||"",r=o||"",""))),{dirPart:t,filePart:r}}(this.uri).dirPart,this._checkVersionSupported(),this._checkRequiredExtensionsSupported(),t.errorUnsupportedIf(null==n.scenes,"Scenes must be defined."),t.errorUnsupportedIf(null==n.meshes,"Meshes must be defined"),t.errorUnsupportedIf(null==n.nodes,"Nodes must be defined."),this._computeNodeParents()}static async load(e,t,r,n){if((0,T.HK)(r)){const n=(0,T.sJ)(r);if("model/gltf-binary"!==n.mediaType)try{const o=JSON.parse(n.isBase64?atob(n.data):n.data);return new U(e,t,r,o)}catch{}const o=(0,T.AH)(r);if(U._isGLBData(o))return this._fromGLBData(e,t,r,o)}if(r.endsWith(".gltf")){const o=await e.loadJSON(r,n);return new U(e,t,r,o)}const o=await e.loadBinary(r,n);if(U._isGLBData(o))return this._fromGLBData(e,t,r,o);const s=await e.loadJSON(r,n);return new U(e,t,r,s)}static _isGLBData(e){const t=new S(e);return t.remainingBytes()>=4&&t.readUint32()===m}static async _fromGLBData(e,t,r,n){const o=await U._parseGLBData(t,n);return new U(e,t,r,o.json,o.binaryData)}static async _parseGLBData(e,t){const r=new S(t);e.assert(r.remainingBytes()>=12,"GLB binary data is insufficiently large.");const n=r.readUint32(),o=r.readUint32(),s=r.readUint32();e.assert(n===m,"Magic first 4 bytes do not fit to expected GLB value."),e.assert(t.byteLength>=s,"GLB binary data is smaller than header specifies."),e.errorUnsupportedIf(2!==o,"An unsupported GLB container version was detected. Only version 2 is supported.");let i,a,_=0;for(;r.remainingBytes()>=8;){const t=r.readUint32(),n=r.readUint32();0===_?(e.assert(1313821514===n,"First GLB chunk must be JSON."),e.assert(t>=0,"No JSON data found."),i=await G(r.readUint8Array(t))):1===_?(e.errorUnsupportedIf(5130562!==n,"Second GLB chunk expected to be BIN."),a=r.readUint8Array(t)):e.warnUnsupported("More than 2 GLB chunks detected. Skipping."),_+=1}return i||e.error("No GLB JSON chunk detected."),{json:i,binaryData:a}}async getBuffer(e,t){const r=this.json.buffers[e],n=this.errorContext;if(null==r.uri)return n.assert(null!=this.glbBuffer,"GLB buffer not present"),this.glbBuffer;const o=await this._getBufferLoader(e,t);return n.assert(o.byteLength===r.byteLength,"Buffer byte lengths should match."),o}async _getBufferLoader(e,t){const r=this.bufferLoaders.get(e);if(r)return r;const n=this.json.buffers[e],o=this.context.loadBinary(this._resolveUri(n.uri),t).then((e=>new Uint8Array(e)));return this.bufferLoaders.set(e,o),o}async getAccessor(e,t){const r=this.errorContext;r.errorUnsupportedIf(!this.json.accessors,"Accessors missing.");const n=this.json.accessors[e];r.errorUnsupportedIf(null==(null==n?void 0:n.bufferView),"Some accessor does not specify a bufferView."),r.errorUnsupportedIf(n.type in[a.MAT2,a.MAT3,a.MAT4],`AttributeType ${n.type} is not supported`);const o=this.json.bufferViews[n.bufferView],s=await this.getBuffer(o.buffer,t),i=P[n.type],_=D[n.componentType],u=i*_,E=o.byteStride||u;return{raw:s.buffer,byteStride:E,byteOffset:s.byteOffset+(o.byteOffset||0)+(n.byteOffset||0),entryCount:n.count,isDenselyPacked:E===u,componentCount:i,componentByteSize:_,componentType:n.componentType,min:n.min,max:n.max,normalized:!!n.normalized}}async getIndexData(e,t){if(null==e.indices)return null;const r=await this.getAccessor(e.indices,t);if(r.isDenselyPacked)switch(r.componentType){case u.g.UNSIGNED_BYTE:return new Uint8Array(r.raw,r.byteOffset,r.entryCount);case u.g.UNSIGNED_SHORT:return new Uint16Array(r.raw,r.byteOffset,r.entryCount);case u.g.UNSIGNED_INT:return new Uint32Array(r.raw,r.byteOffset,r.entryCount)}else switch(r.componentType){case u.g.UNSIGNED_BYTE:return(0,d.m)(this._wrapAccessor(N.D_,r));case u.g.UNSIGNED_SHORT:return(0,d.m)(this._wrapAccessor(N.av,r));case u.g.UNSIGNED_INT:return(0,d.m)(this._wrapAccessor(N.Nu,r))}}async getPositionData(e,t){const r=this.errorContext;r.errorUnsupportedIf(null==e.attributes.POSITION,"No POSITION vertex data found.");const n=await this.getAccessor(e.attributes.POSITION,t);return r.errorUnsupportedIf(n.componentType!==u.g.FLOAT,"Expected type FLOAT for POSITION vertex attribute, but found "+F[n.componentType]),r.errorUnsupportedIf(3!==n.componentCount,"POSITION vertex attribute must have 3 components, but found "+n.componentCount.toFixed()),this._wrapAccessor(N.ct,n)}async getNormalData(e,t){const r=this.errorContext;r.assert(null!=e.attributes.NORMAL,"No NORMAL vertex data found.");const n=await this.getAccessor(e.attributes.NORMAL,t);return r.errorUnsupportedIf(n.componentType!==u.g.FLOAT,"Expected type FLOAT for NORMAL vertex attribute, but found "+F[n.componentType]),r.errorUnsupportedIf(3!==n.componentCount,"NORMAL vertex attribute must have 3 components, but found "+n.componentCount.toFixed()),this._wrapAccessor(N.ct,n)}async getTangentData(e,t){const r=this.errorContext;r.assert(null!=e.attributes.TANGENT,"No TANGENT vertex data found.");const n=await this.getAccessor(e.attributes.TANGENT,t);return r.errorUnsupportedIf(n.componentType!==u.g.FLOAT,"Expected type FLOAT for TANGENT vertex attribute, but found "+F[n.componentType]),r.errorUnsupportedIf(4!==n.componentCount,"TANGENT vertex attribute must have 4 components, but found "+n.componentCount.toFixed()),new N.ek(n.raw,n.byteOffset,n.byteStride,n.byteOffset+n.byteStride*n.entryCount)}async getTextureCoordinates(e,t){const r=this.errorContext;r.assert(null!=e.attributes.TEXCOORD_0,"No TEXCOORD_0 vertex data found.");const n=await this.getAccessor(e.attributes.TEXCOORD_0,t);return r.errorUnsupportedIf(2!==n.componentCount,"TEXCOORD_0 vertex attribute must have 2 components, but found "+n.componentCount.toFixed()),n.componentType===u.g.FLOAT?this._wrapAccessor(N.Eu,n):(r.errorUnsupportedIf(!n.normalized,"Integer component types are only supported for a normalized accessor for TEXCOORD_0."),function(e){switch(e.componentType){case u.g.BYTE:return new N.Vs(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case u.g.UNSIGNED_BYTE:return new N.xA(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case u.g.SHORT:return new N.or(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case u.g.UNSIGNED_SHORT:return new N.TS(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case u.g.UNSIGNED_INT:return new N.qt(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);case u.g.FLOAT:return new N.Eu(e.raw,e.byteOffset,e.byteStride,e.byteOffset+e.byteStride*e.entryCount);default:return void(0,E.Bg)(e.componentType)}}(n))}async getVertexColors(e,t){const r=this.errorContext;r.assert(null!=e.attributes.COLOR_0,"No COLOR_0 vertex data found.");const n=await this.getAccessor(e.attributes.COLOR_0,t);if(r.errorUnsupportedIf(4!==n.componentCount&&3!==n.componentCount,"COLOR_0 attribute must have 3 or 4 components, but found "+n.componentCount.toFixed()),4===n.componentCount){if(n.componentType===u.g.FLOAT)return this._wrapAccessor(N.ek,n);if(n.componentType===u.g.UNSIGNED_BYTE)return this._wrapAccessor(N.mc,n);if(n.componentType===u.g.UNSIGNED_SHORT)return this._wrapAccessor(N.v6,n)}else if(3===n.componentCount){if(n.componentType===u.g.FLOAT)return this._wrapAccessor(N.ct,n);if(n.componentType===u.g.UNSIGNED_BYTE)return this._wrapAccessor(N.ne,n);if(n.componentType===u.g.UNSIGNED_SHORT)return this._wrapAccessor(N.mw,n)}r.errorUnsupported("Unsupported component type for COLOR_0 attribute: "+F[n.componentType])}hasPositions(e){return void 0!==e.attributes.POSITION}hasNormals(e){return void 0!==e.attributes.NORMAL}hasVertexColors(e){return void 0!==e.attributes.COLOR_0}hasTextureCoordinates(e){return void 0!==e.attributes.TEXCOORD_0}hasTangents(e){return void 0!==e.attributes.TANGENT}async getMaterial(e,t,r){let n=this.materialCache.get(e.material);if(!n){const o=null!=e.material?p(this.json.materials[e.material]):p(),s=o.pbrMetallicRoughness,i=this.hasVertexColors(e),a=this.getTexture(s.baseColorTexture,t),_=this.getTexture(o.normalTexture,t),u=r?this.getTexture(o.occlusionTexture,t):null,E=r?this.getTexture(o.emissiveTexture,t):null,c=r?this.getTexture(s.metallicRoughnessTexture,t):null,T=null!=e.material?e.material:-1;n={alphaMode:o.alphaMode,alphaCutoff:o.alphaCutoff,color:s.baseColorFactor,doubleSided:!!o.doubleSided,colorTexture:await a,normalTexture:await _,name:o.name,id:T,occlusionTexture:await u,emissiveTexture:await E,emissiveFactor:o.emissiveFactor,metallicFactor:s.metallicFactor,roughnessFactor:s.roughnessFactor,metallicRoughnessTexture:await c,hasVertexColors:i,ESRI_externalColorMixMode:o.extras.ESRI_externalColorMixMode}}return n}async getTexture(e,t){if(!e)return null;this.errorContext.errorUnsupportedIf(0!==(e.texCoord||0),"Only TEXCOORD with index 0 is supported.");const r=e.index,n=this.errorContext,o=this.json.textures[r],s=M(null!=o.sampler?this.json.samplers[o.sampler]:{});n.errorUnsupportedIf(null==o.source,"Source is expected to be defined for a texture.");const i=this.json.images[o.source],a=await this._loadTextureImageData(r,o,t);return(0,c.s1)(this.textureCache,r,(()=>{const e=e=>33071===e||33648===e||10497===e,t=e=>(n.error(`Unexpected TextureSampler WrapMode: ${e}. Using default REPEAT(10497).`),10497);return{data:a,wrapS:e(s.wrapS)?s.wrapS:t(s.wrapS),wrapT:e(s.wrapT)?s.wrapT:t(s.wrapT),minFilter:s.minFilter,name:i.name,id:r}}))}getNodeTransform(e){if(void 0===e)return B;let t=this.nodeTransformCache.get(e);if(!t){const r=this.getNodeTransform(this._getNodeParent(e)),n=this.json.nodes[e];n.matrix?t=(0,f.m)((0,o.c)(),r,n.matrix):n.translation||n.rotation||n.scale?(t=(0,o.b)(r),n.translation&&(0,f.j)(t,t,n.translation),n.rotation&&(y[3]=(0,A.g)(y,n.rotation),(0,f.e)(t,t,y[3],y)),n.scale&&(0,f.h)(t,t,n.scale)):t=r,this.nodeTransformCache.set(e,t)}return t}_wrapAccessor(e,t){return new e(t.raw,t.byteOffset,t.byteStride,t.byteOffset+t.byteStride*(t.entryCount-1)+t.componentByteSize*t.componentCount)}_resolveUri(e){return(0,T.hF)(e,this.baseUri)}_getNodeParent(e){return this.nodeParentMap.get(e)}_checkVersionSupported(){const e=R.G.parse(this.json.asset.version,"glTF");L.validate(e)}_checkRequiredExtensionsSupported(){const e=this.json,t=this.errorContext;e.extensionsRequired&&0!==e.extensionsRequired.length&&t.errorUnsupported("gltf loader was not able to load unsupported feature. Required extensions: "+e.extensionsRequired.join(", "))}_computeNodeParents(){this.json.nodes.forEach(((e,t)=>{e.children&&e.children.forEach((e=>{this.nodeParentMap.set(e,t)}))}))}async _loadTextureImageData(e,t,r){const n=this.textureLoaders.get(e);if(n)return n;const o=this._createTextureLoader(t,r);return this.textureLoaders.set(e,o),o}async _createTextureLoader(e,t){const r=this.json.images[e.source];if(r.uri)return this.context.loadImage(this._resolveUri(r.uri),t);const n=this.errorContext;n.errorUnsupportedIf(null==r.bufferView,"Image bufferView must be defined."),n.errorUnsupportedIf(null==r.mimeType,"Image mimeType must be defined.");const o=this.json.bufferViews[r.bufferView],s=await this.getBuffer(o.buffer,t);return n.errorUnsupportedIf(null!=o.byteStride,"byteStride not supported for image buffer"),async function(e,t){return new Promise(((r,n)=>{const o=new Blob([e],{type:t}),s=URL.createObjectURL(o),i=new Image;i.addEventListener("load",(()=>{URL.revokeObjectURL(s),"decode"in i?i.decode().then((()=>r(i)),(()=>r(i))):r(i)})),i.addEventListener("error",(e=>{URL.revokeObjectURL(s),n(e)})),i.src=s}))}(new Uint8Array(s.buffer,s.byteOffset+(o.byteOffset||0),o.byteLength),r.mimeType)}}const L=new R.G(2,0,"glTF"),B=(0,f.y)((0,o.c)(),Math.PI/2),y=(0,l.a)(),P={SCALAR:1,VEC2:2,VEC3:3,VEC4:4},D={[u.g.BYTE]:1,[u.g.UNSIGNED_BYTE]:1,[u.g.SHORT]:2,[u.g.UNSIGNED_SHORT]:2,[u.g.FLOAT]:4,[u.g.UNSIGNED_INT]:4};async function G(e){return new Promise(((t,r)=>{const n=new Blob([e]),o=new FileReader;o.onload=()=>{const e=o.result;t(JSON.parse(e))},o.onerror=e=>{r(e)},o.readAsText(n)}))}const F={5120:"BYTE",5121:"UNSIGNED_BYTE",5122:"SHORT",5123:"UNSIGNED_SHORT",5125:"UNSIGNED_INT",5126:"FLOAT"};let b=0;async function g(e,t,r={},s=!0){const i=await U.load(e,V,t,r),a="gltf_"+b++,_={lods:[],materials:new Map,textures:new Map,meta:w(i)},E=!(!i.json.asset.extras||"symbolResource"!==i.json.asset.extras.ESRI_type),c=new Map;await x(i,(async(e,t,E,T)=>{var R;const f=null!=(R=c.get(E))?R:0;c.set(E,f+1);const A=void 0!==e.mode?e.mode:u.MX.TRIANGLES,l=A===u.MX.TRIANGLES||A===u.MX.TRIANGLE_STRIP||A===u.MX.TRIANGLE_FAN?A:null;if((0,n.Wi)(l))return void V.warnUnsupported("Unsupported primitive mode ("+X[A]+"). Skipping primitive.");if(!i.hasPositions(e))return void V.warn("Skipping primitive without POSITION vertex attribute.");const N=i.getPositionData(e,r),d=i.getMaterial(e,r,s),S=i.hasNormals(e)?i.getNormalData(e,r):null,I=i.hasTangents(e)?i.getTangentData(e,r):null,O=i.hasTextureCoordinates(e)?i.getTextureCoordinates(e,r):null,C=i.hasVertexColors(e)?i.getVertexColors(e,r):null,p=i.getIndexData(e,r),h={transform:(0,o.b)(t),attributes:{position:await N,normal:S?await S:null,texCoord0:O?await O:null,color:C?await C:null,tangent:I?await I:null},indices:await p,primitiveType:l,material:v(_,await d,a)};let M=null;(0,n.pC)(_.meta)&&(0,n.pC)(_.meta.ESRI_lod)&&"screenSpaceRadius"===_.meta.ESRI_lod.metric&&(M=_.meta.ESRI_lod.thresholds[E]),_.lods[E]=_.lods[E]||{parts:[],name:T,lodThreshold:M},_.lods[E].parts[f]=h}));for(const e of _.lods)e.parts=e.parts.filter((e=>!!e));return{model:_,meta:{isEsriSymbolResource:E,uri:i.uri},customMeta:{}}}function w(e){const t=e.json;let r=null;return t.nodes.forEach((e=>{const t=e.extras;(0,n.pC)(t)&&(t.ESRI_proxyEllipsoid||t.ESRI_lod)&&(r=t)})),r}async function x(e,t){const r=e.json,n=r.scenes[r.scene||0].nodes,o=n.length>1,s=[];for(const e of n){const t=r.nodes[e];s.push(i(e,0)),H(t)&&!o&&t.extensions.MSFT_lod.ids.forEach(((e,t)=>i(e,t+1)))}async function i(n,o){const a=r.nodes[n],_=e.getNodeTransform(n);if(V.warnUnsupportedIf(null!=a.weights,"Morph targets are not supported."),null!=a.mesh){const e=r.meshes[a.mesh];for(const r of e.primitives)s.push(t(r,_,o,e.name))}for(const e of a.children||[])s.push(i(e,o))}await Promise.all(s)}function H(e){return e.extensions&&e.extensions.MSFT_lod&&Array.isArray(e.extensions.MSFT_lod.ids)}function v(e,t,r){const n=t=>{const n=`${r}_tex_${t&&t.id}${t&&t.name?"_"+t.name:""}`;if(t&&!e.textures.has(n)){const r=function(e,t={}){return{data:e,parameters:{wrap:{s:u.e8.REPEAT,t:u.e8.REPEAT,...t.wrap},noUnpackFlip:!0,mipmap:!1,...t}}}(t.data,{wrap:{s:t.wrapS,t:t.wrapT},mipmap:Y.includes(t.minFilter),noUnpackFlip:!0});e.textures.set(n,r)}return n},o=`${r}_mat_${t.id}_${t.name}`;if(!e.materials.has(o)){const r=function(e={}){return{color:[1,1,1],opacity:1,alphaMode:"OPAQUE",alphaCutoff:.5,doubleSided:!1,castShadows:!0,receiveShadows:!0,receiveAmbientOcclustion:!0,textureColor:null,textureNormal:null,textureOcclusion:null,textureEmissive:null,textureMetallicRoughness:null,emissiveFactor:[0,0,0],metallicFactor:1,roughnessFactor:1,colorMixMode:"multiply",...e}}({color:[t.color[0],t.color[1],t.color[2]],opacity:t.color[3],alphaMode:t.alphaMode,alphaCutoff:t.alphaCutoff,doubleSided:t.doubleSided,colorMixMode:t.ESRI_externalColorMixMode,textureColor:t.colorTexture?n(t.colorTexture):void 0,textureNormal:t.normalTexture?n(t.normalTexture):void 0,textureOcclusion:t.occlusionTexture?n(t.occlusionTexture):void 0,textureEmissive:t.emissiveTexture?n(t.emissiveTexture):void 0,textureMetallicRoughness:t.metallicRoughnessTexture?n(t.metallicRoughnessTexture):void 0,emissiveFactor:[t.emissiveFactor[0],t.emissiveFactor[1],t.emissiveFactor[2]],metallicFactor:t.metallicFactor,roughnessFactor:t.roughnessFactor});e.materials.set(o,r)}return o}const V=new class{error(e){throw new s.Z("gltf-loader-error",e)}errorUnsupported(e){throw new s.Z("gltf-loader-unsupported-feature",e)}errorUnsupportedIf(e,t){e&&this.errorUnsupported(t)}assert(e,t){e||this.error(t)}warn(e){i.warn(e)}warnUnsupported(e){this.warn("[Unsupported Feature] "+e)}warnUnsupportedIf(e,t){e&&this.warnUnsupported(t)}},Y=[u.cw.LINEAR_MIPMAP_LINEAR,u.cw.LINEAR_MIPMAP_NEAREST],X=["POINTS","LINES","LINE_LOOP","LINE_STRIP","TRIANGLES","TRIANGLE_STRIP","TRIANGLE_FAN"]},64291:(e,t,r)=>{r.d(t,{NO:()=>f,cM:()=>R,p:()=>c,DX:()=>T});var n=r(17896),o=r(65617),s=r(22807);r(4307),r(22021),r(12981),(0,o.c)(),(0,o.c)(),new s.x((()=>({origin:null,vector:null}))),new s.x((function(e){return e?{origin:(0,o.a)(e.origin),vector:(0,o.a)(e.vector)}:{origin:(0,o.c)(),vector:(0,o.c)()}})),new s.x((()=>({p0:null,p1:null,p2:null})));const i=(0,o.c)(),a=(0,o.c)();let _=(()=>{const e=new Uint32Array(131072);for(let t=0;t<e.length;++t)e[t]=t;return e})();const u=new Uint16Array([0]),E=(()=>{const e=new Uint16Array(65536);for(let t=0;t<e.length;++t)e[t]=t;return e})();function c(e){if(1===e)return u;if(e<E.length)return new Uint16Array(E.buffer,0,e);if(e>_.length){const t=Math.max(2*_.length,e);_=new Uint32Array(t);for(let e=0;e<_.length;e++)_[e]=e}return new Uint32Array(_.buffer,0,e)}function T(e){if(1===e)return new Uint16Array(u);if(e<E.length)return new Uint16Array(E.slice(0,e));if(e>_.length){const t=new Uint32Array(e);for(let e=0;e<t.length;e++)t[e]=e;return t}return new Uint32Array(_.slice(0,e))}function R(e,t,r){if(!e)return!1;const{size:o,data:s}=e;(0,n.s)(r,0,0,0),(0,n.s)(d,0,0,0);let _=0,u=0;for(let e=0;e<t.length-2;e+=3){const R=t[e+0]*o,f=t[e+1]*o,S=t[e+2]*o;(0,n.s)(A,s[R+0],s[R+1],s[R+2]),(0,n.s)(l,s[f+0],s[f+1],s[f+2]),(0,n.s)(N,s[S+0],s[S+1],s[S+2]);const I=(E=A,c=l,T=N,(0,n.b)(i,c,E),(0,n.b)(a,T,E),(0,n.l)((0,n.f)(i,i,a))/2);I?((0,n.a)(A,A,l),(0,n.a)(A,A,N),(0,n.g)(A,A,1/3*I),(0,n.a)(r,r,A),_+=I):((0,n.a)(d,d,A),(0,n.a)(d,d,l),(0,n.a)(d,d,N),u+=3)}var E,c,T;return!(0===u&&0===_||(0!==_?((0,n.g)(r,r,1/_),0):0===u||((0,n.g)(r,d,1/u),0)))}function f(e,t,r){if(!e||!t)return!1;const{size:o,data:s}=e;(0,n.s)(r,0,0,0);let i=-1,a=0;for(let e=0;e<t.length;e++){const n=t[e]*o;i!==n&&(r[0]+=s[n+0],r[1]+=s[n+1],r[2]+=s[n+2],a++),i=n}return a>1&&(0,n.g)(r,r,1/a),a>0}const A=(0,o.c)(),l=(0,o.c)(),N=(0,o.c)(),d=(0,o.c)()},57758:(e,t,r)=>{r.d(t,{K:()=>n});const n=2.1},35371:(e,t,r)=>{var n,o,s,i,a,_,u,E,c,T,R,f,A,l,N,d,S,I,O,C,p,h,M,m;r.d(t,{Br:()=>d,LR:()=>_,Lm:()=>p,Lu:()=>U,MX:()=>o,No:()=>A,OU:()=>h,Tg:()=>S,VI:()=>l,VY:()=>m,Wf:()=>u,_g:()=>M,cw:()=>R,db:()=>i,e8:()=>f,g:()=>E,l1:()=>I,lP:()=>N,q_:()=>L,qi:()=>C,w0:()=>a,wb:()=>c,xS:()=>T,zi:()=>s}),function(e){e[e.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",e[e.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",e[e.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(n||(n={})),function(e){e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(o||(o={})),function(e){e[e.ZERO=0]="ZERO",e[e.ONE=1]="ONE",e[e.SRC_COLOR=768]="SRC_COLOR",e[e.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",e[e.SRC_ALPHA=770]="SRC_ALPHA",e[e.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",e[e.DST_ALPHA=772]="DST_ALPHA",e[e.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",e[e.DST_COLOR=774]="DST_COLOR",e[e.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",e[e.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",e[e.CONSTANT_COLOR=32769]="CONSTANT_COLOR",e[e.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",e[e.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",e[e.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(s||(s={})),function(e){e[e.ADD=32774]="ADD",e[e.SUBTRACT=32778]="SUBTRACT",e[e.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(i||(i={})),function(e){e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e[e.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",e[e.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",e[e.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",e[e.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(a||(a={})),function(e){e[e.FRONT=1028]="FRONT",e[e.BACK=1029]="BACK",e[e.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(_||(_={})),function(e){e[e.CW=2304]="CW",e[e.CCW=2305]="CCW"}(u||(u={})),function(e){e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.INT=5124]="INT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.FLOAT=5126]="FLOAT"}(E||(E={})),function(e){e[e.NEVER=512]="NEVER",e[e.LESS=513]="LESS",e[e.EQUAL=514]="EQUAL",e[e.LEQUAL=515]="LEQUAL",e[e.GREATER=516]="GREATER",e[e.NOTEQUAL=517]="NOTEQUAL",e[e.GEQUAL=518]="GEQUAL",e[e.ALWAYS=519]="ALWAYS"}(c||(c={})),function(e){e[e.ZERO=0]="ZERO",e[e.KEEP=7680]="KEEP",e[e.REPLACE=7681]="REPLACE",e[e.INCR=7682]="INCR",e[e.DECR=7683]="DECR",e[e.INVERT=5386]="INVERT",e[e.INCR_WRAP=34055]="INCR_WRAP",e[e.DECR_WRAP=34056]="DECR_WRAP"}(T||(T={})),function(e){e[e.NEAREST=9728]="NEAREST",e[e.LINEAR=9729]="LINEAR",e[e.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",e[e.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",e[e.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",e[e.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(R||(R={})),function(e){e[e.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(f||(f={})),function(e){e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_3D=32879]="TEXTURE_3D",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(A||(A={})),function(e){e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.ALPHA=6406]="ALPHA",e[e.RGB=6407]="RGB",e[e.RGBA=6408]="RGBA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.RED=6403]="RED",e[e.RG=33319]="RG",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER"}(l||(l={})),function(e){e[e.RGBA4=32854]="RGBA4",e[e.R16F=33325]="R16F",e[e.RG16F=33327]="RG16F",e[e.RGB32F=34837]="RGB32F",e[e.RGBA16F=34842]="RGBA16F",e[e.R32F=33326]="R32F",e[e.RG32F=33328]="RG32F",e[e.RGBA32F=34836]="RGBA32F",e[e.R11F_G11F_B10F=35898]="R11F_G11F_B10F",e[e.RGB8=32849]="RGB8",e[e.RGBA8=32856]="RGBA8",e[e.RGB5_A1=32855]="RGB5_A1",e[e.R8=33321]="R8",e[e.RG8=33323]="RG8",e[e.R8I=33329]="R8I",e[e.R8UI=33330]="R8UI",e[e.R16I=33331]="R16I",e[e.R16UI=33332]="R16UI",e[e.R32I=33333]="R32I",e[e.R32UI=33334]="R32UI",e[e.RG8I=33335]="RG8I",e[e.RG8UI=33336]="RG8UI",e[e.RG16I=33337]="RG16I",e[e.RG16UI=33338]="RG16UI",e[e.RG32I=33339]="RG32I",e[e.RG32UI=33340]="RG32UI",e[e.RGB16F=34843]="RGB16F",e[e.RGB9_E5=35901]="RGB9_E5",e[e.SRGB8=35905]="SRGB8",e[e.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",e[e.RGB565=36194]="RGB565",e[e.RGBA32UI=36208]="RGBA32UI",e[e.RGB32UI=36209]="RGB32UI",e[e.RGBA16UI=36214]="RGBA16UI",e[e.RGB16UI=36215]="RGB16UI",e[e.RGBA8UI=36220]="RGBA8UI",e[e.RGB8UI=36221]="RGB8UI",e[e.RGBA32I=36226]="RGBA32I",e[e.RGB32I=36227]="RGB32I",e[e.RGBA16I=36232]="RGBA16I",e[e.RGB16I=36233]="RGB16I",e[e.RGBA8I=36238]="RGBA8I",e[e.RGB8I=36239]="RGB8I",e[e.R8_SNORM=36756]="R8_SNORM",e[e.RG8_SNORM=36757]="RG8_SNORM",e[e.RGB8_SNORM=36758]="RGB8_SNORM",e[e.RGBA8_SNORM=36759]="RGBA8_SNORM",e[e.RGB10_A2=32857]="RGB10_A2",e[e.RGB10_A2UI=36975]="RGB10_A2UI"}(N||(N={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.BYTE=5120]="BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.SHORT=5122]="SHORT",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.INT=5124]="INT",e[e.HALF_FLOAT=5131]="HALF_FLOAT",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(d||(d={})),function(e){e[e.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",e[e.STENCIL_INDEX8=36168]="STENCIL_INDEX8",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e[e.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",e[e.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",e[e.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",e[e.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(S||(S={})),function(e){e[e.STATIC_DRAW=35044]="STATIC_DRAW",e[e.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",e[e.STREAM_DRAW=35040]="STREAM_DRAW",e[e.STATIC_READ=35045]="STATIC_READ",e[e.DYNAMIC_READ=35049]="DYNAMIC_READ",e[e.STREAM_READ=35041]="STREAM_READ",e[e.STATIC_COPY=35046]="STATIC_COPY",e[e.DYNAMIC_COPY=35050]="DYNAMIC_COPY",e[e.STREAM_COPY=35042]="STREAM_COPY"}(I||(I={})),function(e){e[e.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",e[e.VERTEX_SHADER=35633]="VERTEX_SHADER"}(O||(O={})),function(e){e[e.FRAMEBUFFER=36160]="FRAMEBUFFER",e[e.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",e[e.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(C||(C={})),function(e){e[e.TEXTURE=0]="TEXTURE",e[e.RENDER_BUFFER=1]="RENDER_BUFFER",e[e.CUBEMAP=2]="CUBEMAP"}(p||(p={})),function(e){e[e.NONE=0]="NONE",e[e.DEPTH_RENDER_BUFFER=1]="DEPTH_RENDER_BUFFER",e[e.STENCIL_RENDER_BUFFER=2]="STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_RENDER_BUFFER=3]="DEPTH_STENCIL_RENDER_BUFFER",e[e.DEPTH_STENCIL_TEXTURE=4]="DEPTH_STENCIL_TEXTURE"}(h||(h={})),function(e){e[e.Texture=0]="Texture",e[e.BufferObject=1]="BufferObject",e[e.VertexArrayObject=2]="VertexArrayObject",e[e.Shader=3]="Shader",e[e.Program=4]="Program",e[e.FramebufferObject=5]="FramebufferObject",e[e.Renderbuffer=6]="Renderbuffer",e[e.Sync=7]="Sync",e[e.COUNT=8]="COUNT"}(M||(M={})),function(e){e[e.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",e[e.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",e[e.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",e[e.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",e[e.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",e[e.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",e[e.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",e[e.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",e[e.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",e[e.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",e[e.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",e[e.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",e[e.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",e[e.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",e[e.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",e[e.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(m||(m={}));const U=33306;var L,B,y,P,D,G,F;!function(e){e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(L||(L={})),function(e){e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_VEC2=35664]="FLOAT_VEC2",e[e.FLOAT_VEC3=35665]="FLOAT_VEC3",e[e.FLOAT_VEC4=35666]="FLOAT_VEC4",e[e.INT=5124]="INT",e[e.INT_VEC2=35667]="INT_VEC2",e[e.INT_VEC3=35668]="INT_VEC3",e[e.INT_VEC4=35669]="INT_VEC4",e[e.BOOL=35670]="BOOL",e[e.BOOL_VEC2=35671]="BOOL_VEC2",e[e.BOOL_VEC3=35672]="BOOL_VEC3",e[e.BOOL_VEC4=35673]="BOOL_VEC4",e[e.FLOAT_MAT2=35674]="FLOAT_MAT2",e[e.FLOAT_MAT3=35675]="FLOAT_MAT3",e[e.FLOAT_MAT4=35676]="FLOAT_MAT4",e[e.SAMPLER_2D=35678]="SAMPLER_2D",e[e.SAMPLER_CUBE=35680]="SAMPLER_CUBE",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",e[e.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",e[e.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",e[e.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",e[e.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",e[e.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",e[e.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",e[e.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",e[e.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",e[e.SAMPLER_3D=35679]="SAMPLER_3D",e[e.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",e[e.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",e[e.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",e[e.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",e[e.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",e[e.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",e[e.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",e[e.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",e[e.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",e[e.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",e[e.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",e[e.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(B||(B={})),function(e){e[e.OBJECT_TYPE=37138]="OBJECT_TYPE",e[e.SYNC_CONDITION=37139]="SYNC_CONDITION",e[e.SYNC_STATUS=37140]="SYNC_STATUS",e[e.SYNC_FLAGS=37141]="SYNC_FLAGS"}(y||(y={})),function(e){e[e.UNSIGNALED=37144]="UNSIGNALED",e[e.SIGNALED=37145]="SIGNALED"}(P||(P={})),function(e){e[e.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",e[e.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",e[e.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",e[e.WAIT_FAILED=37149]="WAIT_FAILED"}(D||(D={})),function(e){e[e.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(G||(G={})),function(e){e[e.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(F||(F={}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9291],{79291:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(1391),l(62707),l(18361),l(51546),l(77171),l(47624),l(64267),l(37099),l(76056),l(135),l(11317),l(15719),l(92555),l(22019),l(15817),l(66242),l(86602),l(42001),l(19419),l(26322),l(85504),l(72303),l(71838),l(94124),l(93396),l(90692),l(10962),l(32558),l(18465),l(45436),l(74709),l(85594),l(33680),l(12139),l(47026),l(35065);var s=l(32078)}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9291],{79291:(e,t,l)=>{l.r(t),l.d(t,{build:()=>s.b}),l(1391),l(62707),l(18361),l(51546),l(77171),l(47624),l(64267),l(37099),l(76056),l(135),l(11317),l(15719),l(92555),l(22019),l(15817),l(66242),l(86602),l(42001),l(19419),l(26322),l(85504),l(72303),l(71838),l(94124),l(93396),l(90692),l(10962),l(32558),l(18465),l(45436),l(74709),l(85594),l(33680),l(12139),l(67498),l(47026),l(35065);var s=l(32078)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1400],{43697:(t,e,r)=>{function n(t,e,r,n){var s,i=arguments.length,o=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o}r.d(e,{_:()=>n})},15923:(t,e,r)=>{r.d(e,{Z:()=>N});var n=r(67723),s=r(97831),i=r(7628),o=(r(80442),r(22974)),a=r(92604),l=r(71143),c=r(31263),u=r(58971),h=r(44550),f=r(39020);class d{constructor(t,e,r){this.properties=t,this.propertyName=e,this.metadata=r,this._observers=null,this._accessed=null,this._handles=null,this.flags=h.v.Dirty|(r.nonNullable?h.v.NonNullable:0)|(r.hasOwnProperty("value")?h.v.HasDefaultValue:0)|(void 0===r.get?h.v.DepTrackingInitialized:0)|(void 0===r.dependsOn?h.v.AutoTracked:0)}destroy(){if(this.flags&h.v.Dirty&&this._observers){const t=this._observers.slice();for(const e of t)e.onCommitted()}this._accessed=null,this._observers=null,this._clearObservationHandles()}getComputed(){(0,u.it)(this);const t=this.properties.store,e=this.propertyName,r=this.flags,n=t.get(e);if(r&h.v.Computing)return n;if(~r&h.v.Dirty&&t.has(e))return n;this.flags|=h.v.Computing;const s=this.properties.host;let i;r&h.v.AutoTracked?i=(0,u.LJ)(this,this.metadata.get,s):((0,u.GF)(s,this),i=this.metadata.get.call(s)),t.set(e,i,c.s3.COMPUTED);const o=t.get(e);return o===n?this.flags&=~h.v.Dirty:(0,u.gb)(this.commit,this),this.flags&=~h.v.Computing,o}onObservableAccessed(t){t!==this&&(null===this._accessed&&(this._accessed=[]),this._accessed.includes(t)||this._accessed.push(t))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=h.v.DepTrackingInitialized;const t=this._accessed;if(null===t)return;let e=this._handles;null===e&&(e=this._handles=[]);for(let r=0;r<t.length;++r)e.push(t[r].observe(this));t.length=0}observe(t){return null===this._observers&&(this._observers=[]),this._observers.includes(t)||this._observers.push(t),new f.X(this._observers,t)}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}onInvalidated(){~this.flags&h.v.Overriden&&(this.flags|=h.v.Dirty);const t=this._observers;if(null!==t)for(let e=0;e<t.length;++e)t[e].onInvalidated()}commit(){this.flags&=~h.v.Dirty,this.onCommitted()}onCommitted(){if(null===this._observers)return;const t=this._observers.slice();for(let e=0;e<t.length;++e)t[e].onCommitted()}_clearObservationHandles(){const t=this._handles;if(null!==t){for(let e=0;e<t.length;++e)t[e].remove();t.length=0}}}class p{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const e=new p;return this._values.forEach(((r,n)=>{t&&t.has(n)||e.set(n,(0,o.d9)(r))})),e}get(t){return this._values.get(t)}originOf(){return c.s3.USER}keys(){return[...this._values.keys()]}set(t,e){this._values.set(t,e)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}var g=r(1153);function y(t,e,r){return void 0!==t}function v(t,e,r,n){return!(void 0===t||null==r&&t.flags&h.v.NonNullable&&(n.lifecycle,s.F.INITIALIZING,1))}function _(t){return t&&"function"==typeof t.destroy}a.Z.getLogger("esri.core.accessorSupport.Properties");class m{constructor(t){this.host=t,this.properties=new Map,this.ctorArgs=null,this.destroyed=!1,this.lifecycle=s.F.INITIALIZING,this.store=new p,this._origin=c.s3.USER;const e=this.host.constructor.__accessorMetadata__,r=e.properties;for(const t in r){const e=new d(this,t,r[t]);this.properties.set(t,e)}this.metadatas=r,this._autoDestroy=e.autoDestroy}initialize(){this.lifecycle=s.F.CONSTRUCTING}constructed(){this.lifecycle=s.F.CONSTRUCTED}destroy(){if(this.destroyed=!0,this._autoDestroy)for(const[t,e]of this.properties){const r=this.internalGet(t);r&&_(r)&&(r.destroy(),~e.flags&h.v.NonNullable&&this._internalSet(e,null)),e.destroy()}else for(const[t,e]of this.properties)e.destroy()}get initialized(){return this.lifecycle!==s.F.INITIALIZING}get(t){const e=this.properties.get(t);if(e.metadata.get)return e.getComputed();(0,u.it)(e);const r=this.store;return r.has(t)?r.get(t):e.metadata.value}originOf(t){const e=this.store.originOf(t);if(void 0===e){const e=this.properties.get(t);if(void 0!==e&&e.flags&h.v.HasDefaultValue)return"defaults"}return(0,c.x3)(e)}has(t){return!!this.properties.has(t)&&this.store.has(t)}keys(){return[...this.properties.keys()]}internalGet(t){const e=this.properties.get(t);if(y(e))return this.store.has(t)?this.store.get(t):e.metadata.value}internalSet(t,e){const r=this.properties.get(t);y(r)&&this._internalSet(r,e)}getDependsInfo(t,e,r){const n=this.properties.get(e);if(!y(n))return"";const s=new Set,i=(0,u.LJ)({onObservableAccessed:t=>s.add(t),onTrackingEnd:()=>{}},(()=>{var e;return null==(e=n.metadata.get)?void 0:e.call(t)}));let o=`${r}${t.declaredClass.split(".").pop()}.${e}: ${i}\n`;if(0===s.size)return o;r+=" ";for(const t of s){if(!(t instanceof d))continue;const e=t.properties.host,n=t.propertyName,s=(0,g.vw)(e);o+=s?s.getDependsInfo(e,n,r):`${r}${n}: undefined\n`}return o}setAtOrigin(t,e,r){const n=this.properties.get(t);if(y(n))return this._setAtOrigin(n,e,r)}isOverridden(t){const e=this.properties.get(t);return void 0!==e&&!!(e.flags&h.v.Overriden)}clearOverride(t){const e=this.properties.get(t);void 0!==e&&e.flags&h.v.Overriden&&(e.flags&=~h.v.Overriden,e.notifyChange())}override(t,e){const r=this.properties.get(t);if(!v(r,0,e,this))return;const n=r.metadata.cast;if(n){const t=this._cast(n,e),{valid:r,value:s}=t;if(w.release(t),!r)return;e=s}r.flags|=h.v.Overriden,this._internalSet(r,e)}set(t,e){const r=this.properties.get(t);if(!v(r,0,e,this))return;const n=r.metadata.cast;if(n){const t=this._cast(n,e),{valid:r,value:s}=t;if(w.release(t),!r)return;e=s}const s=r.metadata.set;s?s.call(this.host,e):this._internalSet(r,e)}setDefaultOrigin(t){this._origin=(0,c.M9)(t)}getDefaultOrigin(){return(0,c.x3)(this._origin)}notifyChange(t){const e=this.properties.get(t);void 0!==e&&e.notifyChange()}invalidate(t){const e=this.properties.get(t);void 0!==e&&e.invalidate()}commit(t){const e=this.properties.get(t);void 0!==e&&e.commit()}_internalSet(t,e){const r=this.lifecycle!==s.F.INITIALIZING?this._origin:c.s3.DEFAULTS;this._setAtOrigin(t,e,r)}_setAtOrigin(t,e,r){const n=this.store,s=t.propertyName;n.has(s,r)&&(0,o.fS)(e,n.get(s))&&~t.flags&h.v.Overriden&&r===n.originOf(s)||(t.invalidate(),n.set(s,e,r),t.commit(),(0,u.mS)(this.host,t))}_cast(t,e){const r=w.acquire();return r.valid=!0,r.value=e,t&&(r.value=t.call(this.host,e,r)),r}}const w=new l.Z(class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}});var b=r(37697),A=r(26258),O=r(5600),S=r(52011);function T(t){if(null==t)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor&&t.constructor.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}class N{constructor(...t){if(this.constructor===N)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");Object.defineProperty(this,"__accessor__",{enumerable:!1,value:new m(this)}),t.length>0&&this.normalizeCtorArgs&&(this.__accessor__.ctorArgs=this.normalizeCtorArgs.apply(this,t))}static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");const{properties:e,declaredClass:r,constructor:n}=t;delete t.declaredClass,delete t.properties,delete t.constructor;const s=this;class o extends s{constructor(...t){super(...t),this.inherited=null,n&&n.apply(this,t)}}(0,i.JT)(o.prototype);for(const e in t){const r=t[e];o.prototype[e]="function"==typeof r?function(...t){const n=this.inherited;let i;this.inherited=function(...t){if(s.prototype[e])return s.prototype[e].apply(this,t)};try{i=r.apply(this,t)}catch(t){throw this.inherited=n,t}return this.inherited=n,i}:t[e]}for(const t in e){const r=T(e[t]);(0,O.Cb)(r)(o.prototype,t)}return(0,S.j)(r)(o)}postscript(t){const e=this.__accessor__,r=e.ctorArgs||t;e.initialize(),r&&(this.set(r),e.ctorArgs=null),e.constructed(),this.initialize()}initialize(){}destroy(){this.destroyed||((0,A.BT)(this),this.__accessor__.destroy())}get initialized(){return this.__accessor__&&this.__accessor__.initialized||!1}get constructed(){return this.__accessor__&&this.__accessor__.lifecycle===s.F.CONSTRUCTED||!1}get destroyed(){return this.__accessor__&&this.__accessor__.destroyed||!1}commitProperty(t){this.get(t)}get(t){return(0,n.U2)(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,e){return(0,b.t)(this,t,e),this}watch(t,e,r){return(0,A.YP)(this,t,e,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_override(t,e){return this.__accessor__.override(t,e)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,e){return this.__accessor__.internalSet(t,e),this}}},3894:(t,e,r)=>{r.d(e,{Z:()=>i});var n=r(71143);function s(t){t.length=0}class i{constructor(t=50,e=50){this._pool=new n.Z(Array,void 0,s,e,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return o.acquire()}static release(t){return o.release(t)}static prune(){o.prune()}}const o=new i(100)},96674:(t,e,r)=>{r.d(e,{wq:()=>v,eC:()=>g});var n=r(43697),s=r(15923),i=r(70586),o=r(22974),a=r(31263);class l{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){const e=new l;return this._values.forEach(((r,n)=>{t&&t.has(n)||e.set(n,(0,o.d9)(r.value),r.origin)})),e}get(t,e){e=this._normalizeOrigin(e);const r=this._values.get(t);return null==e||(null==r?void 0:r.origin)===e?null==r?void 0:r.value:void 0}originOf(t){var e,r;return null!=(e=null==(r=this._values.get(t))?void 0:r.origin)?e:a.s3.USER}keys(t){t=this._normalizeOrigin(t);const e=[...this._values.keys()];return null==t?e:e.filter((e=>{var r;return(null==(r=this._values.get(e))?void 0:r.origin)===t}))}set(t,e,r){if((r=this._normalizeOrigin(r))===a.s3.DEFAULTS){const e=this._values.get(t);if(e&&null!=e.origin&&e.origin>r)return}this._values.set(t,new c(e,r))}delete(t,e){var r;null!=(e=this._normalizeOrigin(e))&&(null==(r=this._values.get(t))?void 0:r.origin)!==e||this._values.delete(t)}has(t,e){var r;return null!=(e=this._normalizeOrigin(e))?(null==(r=this._values.get(t))?void 0:r.origin)===e:this._values.has(t)}forEach(t){this._values.forEach((({value:e},r)=>t(e,r)))}_normalizeOrigin(t){if(null!=t)return t===a.s3.DEFAULTS?t:a.s3.USER}}class c{constructor(t,e){this.value=t,this.origin=e}}var u=r(41103),h=r(50549),f=r(1153),d=r(76169),p=r(52011);const g=t=>{let e=class extends t{constructor(...t){super(...t);const e=(0,i.j0)((0,f.vw)(this)),r=e.store,n=new l;e.store=n,(0,u.M)(e,r,n)}read(t,e){(0,h.i)(this,t,e)}write(t={},e){return(0,d.c)(this,t,e)}toJSON(t){return this.write({},t)}static fromJSON(t,e){return y.call(this,t,e)}};return e=(0,n._)([(0,p.j)("esri.core.JSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};function y(t,e){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");const r=new this;return r.read(t,e),r}let v=class extends(g(s.Z)){};v=(0,n._)([(0,p.j)("esri.core.JSONSupport")],v)},30175:(t,e,r)=>{function n(t,e,r){const n=t.get(e);if(void 0!==n)return n;const s=r();return t.set(e,s),s}r.d(e,{s1:()=>n})},71143:(t,e,r)=>{r.d(e,{Z:()=>n});class n{constructor(t,e,r,n=1,s=0){if(this.ctor=t,this.acquireFunction=e,this.releaseFunction=r,this.allocationSize=n,this._pool=new Array(s),this._initialSize=s,this.ctor)for(let t=0;t<s;t++)this._pool[t]=new this.ctor;this.allocationSize=Math.max(n,1)}destroy(){this.prune(0)}acquire(...t){let e;if(n.test.disabled)e=new this.ctor;else{if(0===this._pool.length){const t=this.allocationSize;for(let e=0;e<t;e++)this._pool[e]=new this.ctor}e=this._pool.pop()}return this.acquireFunction?this.acquireFunction(e,...t):function(t){return t&&t.acquire&&"function"==typeof t.acquire}(e)&&e.acquire(...t),e}release(t){var e;t&&!n.test.disabled&&(this.releaseFunction?this.releaseFunction(t):(e=t)&&e.release&&"function"==typeof e.release&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let e=t;e<this._pool.length;++e){const t=this._pool[e];this._dispose(t)}this._pool.length=t}}_dispose(t){t.dispose&&"function"==typeof t.dispose&&t.dispose()}}n.test={disabled:!1}},54790:(t,e,r)=>{r.d(e,{Z:()=>n});class n{constructor(t,e=29){this.name=t,this._counter=0,this._items=new Array(e)}record(t){this._items[++this._counter%this._items.length]=t}get median(){return this._items.slice().sort(((t,e)=>t-e))[Math.floor(this._items.length/2)]}get average(){return this._items.reduce(((t,e)=>t+e),0)/this._items.length}get last(){return this._items[this._counter%this._items.length]}}},44553:(t,e,r)=>{r.d(e,{Z:()=>o});var n,s=r(67676);!function(t){const e=(t,e,r,n)=>{let s=e,i=e;const o=r>>>1,a=t[s-1];for(;i<=o;){i=s<<1,i<r&&n(t[i-1],t[i])<0&&++i;const e=t[i-1];if(n(e,a)<=0)break;t[s-1]=e,s=i}t[s-1]=a},r=(t,e)=>t<e?-1:t>e?1:0;t.sort=function(t,n,s,i){void 0===n&&(n=0),void 0===s&&(s=t.length),void 0===i&&(i=r);for(let r=s>>>1;r>n;r--)e(t,r,s,i);const o=n+1;for(let r=s-1;r>n;r--){const s=t[n];t[n]=t[r],t[r]=s,e(t,o,r,i)}},t.iterableSort=function*(t,n,s,i){void 0===n&&(n=0),void 0===s&&(s=t.length),void 0===i&&(i=r);for(let r=s>>>1;r>n;r--)e(t,r,s,i),yield;const o=n+1;for(let r=s-1;r>n;r--){const s=t[n];t[n]=t[r],t[r]=s,e(t,o,r,i),yield}}}(n||(n={}));const i=n;class o{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new s.SO,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),void 0!==t.deallocator&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>a(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){const e=new Array;for(let r=0;r<this._length;r++){const n=this.data[r];t(n)&&e.push(n)}return e}getItemAt(t){if(!(t<0||t>=this._length))return this.data[t]}includes(t,e){const r=this.data.indexOf(t,e);return-1!==r&&r<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let e=t;e<this._length;++e)this.data[e]=this._deallocator(this.data[e]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,e=t.length){for(let r=0;r<e;r++)this.data[this._length++]=t[r]}fill(t,e){for(let r=0;r<e;r++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));const t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,a(this)}pop(){if(0===this.length)return;const t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){const e=(0,s.cq)(this.data,t,this.length,this._hint);if(-1!==e)return this.data.splice(e,1),this.length=this.length-1,t}removeUnordered(t){const e=(0,s.e$)(this.data,t,this.length,this._hint);return void 0!==e&&(this.length=this.length-1),this._shrink(),e}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,e=t.length,r){this.length=(0,s.FY)(this.data,t,this.length,e,this._hint,r),this._shrink()}front(){if(0!==this.length)return this.data[0]}back(){if(0!==this.length)return this.data[this.length-1]}swapElements(t,e){t>=this.length||e>=this.length||t===e||([this.data[t],this.data[e]]=[this.data[e],this.data[t]])}sort(t){i.sort(this.data,0,this.length,t)}iterableSort(t){return i.iterableSort(this.data,0,this.length,t)}some(t,e){for(let r=0;r<this.length;++r)if(t.call(e,this.data[r],r,this.data))return!0;return!1}filterInPlace(t,e){let r=0;for(let n=0;n<this._length;++n){const s=this.data[n];t.call(e,s,n,this.data)&&(this.data[n]=this.data[r],this.data[r]=s,r++)}if(this._deallocator)for(let t=r;t<this._length;t++)this.data[t]=this._deallocator(this.data[t]);return this._length=r,this._shrink(),this}forAll(t,e){const r=this.length,n=this.data;for(let s=0;s<r;++s)t.call(e,n[s],s,n)}forEach(t,e){for(let r=0;r<this.length;++r)t.call(e,this.data[r],r,this.data)}map(t,e){const r=new Array(this.length);for(let n=0;n<this.length;++n)r[n]=t.call(e,this.data[n],n,this.data);return r}reduce(t,e){let r=e;for(let e=0;e<this.length;++e)r=t(r,this.data[e],e,this.data);return r}has(t){const e=this.length,r=this.data;for(let n=0;n<e;++n)if(r[n]===t)return!0;return!1}}function a(t){t.data.length>1.5*t.length&&(t.data.length=Math.floor(1.1*t.length))}},20941:(t,e,r)=>{r.d(e,{Z:()=>s});var n=r(58896);class s extends n.Z{constructor(t,e,r){if(super(t,e,r),!(this instanceof s))return new s(t,e,r)}}s.prototype.type="warning"},31263:(t,e,r)=>{r.d(e,{M9:()=>a,Wm:()=>c,kk:()=>o,s3:()=>n,x3:()=>l});var n,s,i=r(70586);(s=n||(n={}))[s.DEFAULTS=0]="DEFAULTS",s[s.COMPUTED=1]="COMPUTED",s[s.SERVICE=2]="SERVICE",s[s.PORTAL_ITEM=3]="PORTAL_ITEM",s[s.WEB_SCENE=4]="WEB_SCENE",s[s.WEB_MAP=5]="WEB_MAP",s[s.USER=6]="USER";const o=n.USER+1;function a(t){switch(t){case"defaults":return n.DEFAULTS;case"service":return n.SERVICE;case"portal-item":return n.PORTAL_ITEM;case"web-scene":return n.WEB_SCENE;case"web-map":return n.WEB_MAP;case"user":return n.USER}}function l(t){switch(t){case n.DEFAULTS:return"defaults";case n.SERVICE:return"service";case n.PORTAL_ITEM:return"portal-item";case n.WEB_SCENE:return"web-scene";case n.WEB_MAP:return"web-map";case n.USER:return"user"}return(0,i.j0)(void 0)}function c(t){return l(t)}},90578:(t,e,r)=>{r.d(e,{p:()=>l});var n=r(75215),s=r(7628);const i=Object.prototype.toString;function o(t){const e="__accessorMetadata__"in t?(0,n.se)(t):t;return function(...t){if(t.push(e),"number"==typeof t[2])throw new Error("Using @cast has parameter decorator is not supported since 4.16");return a.apply(this,t)}}function a(t,e,r,n){(0,s.VZ)(t,e).cast=n}function l(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===i.call(t[0])?o(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return function(e,r){(0,s.VZ)(e,t).cast=e[r]}}(t[0]):void 0}},5600:(t,e,r)=>{r.d(e,{CJ:()=>c,Cb:()=>l,Eg:()=>u});var n=r(92604),s=r(75215),i=r(67723),o=r(7628),a=r(37697);function l(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);const l=Object.getOwnPropertyDescriptor(e,r),c=(0,o.VZ)(e,r);l&&(l.get||l.set?(c.get=l.get||c.get,c.set=l.set||c.set):"value"in l&&("value"in t&&n.Z.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),c.value=t.value=l.value)),null!=t.readOnly&&(c.readOnly=t.readOnly);const h=t.aliasOf;if(h){const t="string"==typeof h?h:h.source,e="string"==typeof h?null:!0===h.overridable;let n;c.dependsOn=[t],c.get=function(){let e=(0,i.U2)(this,t);if("function"==typeof e){n||(n=t.split(".").slice(0,-1).join("."));const r=(0,i.U2)(this,n);r&&(e=e.bind(r))}return e},c.readOnly||(c.set=e?function(t){void 0!==t?this._override(r,t):this._clearOverride(r)}:function(e){(0,a.t)(this,t,e)})}const f=t.type,d=t.types;c.cast||(f?c.cast=function(t){let e=0,r=t;if((0,s.AY)(t))return(0,s.sY)(t);for(;Array.isArray(r)&&1===r.length&&"string"!=typeof r[0]&&"number"!=typeof r[0];)r=r[0],e++;const n=r;if((0,s.gB)(n))return 0===e?(0,s.i$)(n):(0,s.Iu)((0,s.i$)(n),e);if(1===e)return(0,s.rY)(n);if(e>1)return(0,s.di)(n,e);const i=t;return i.from?i.from:(0,s.se)(i)}(f):d&&(Array.isArray(d)?c.cast=(0,s.Ls)((0,s.N7)(d[0])):c.cast=(0,s.N7)(d))),t.range&&(c.cast=u(c.cast,t.range)),(0,o.tz)(c,t)}}function c(t,e,r){const n=(0,o.VZ)(t,r);n.json||(n.json={});let s=n.json;return void 0!==e&&(s.origins||(s.origins={}),s.origins[e]||(s.origins[e]={}),s=s.origins[e]),s}function u(t,e){return r=>{let n=+t(r);return null!=e.step&&(n=Math.round(n/e.step)*e.step),null!=e.min&&(n=Math.max(e.min,n)),null!=e.max&&(n=Math.min(e.max,n)),n}}},52011:(t,e,r)=>{r.d(e,{j:()=>c}),r(80442);var n=r(97831),s=r(7628),i=r(58971),o=r(53906);const a=new Set,l=new Set;function c(t){return e=>{e.prototype.declaredClass=t,h(e);const r=[],n=[];let i=e.prototype;for(;i;)i.hasOwnProperty("initialize")&&!a.has(i.initialize)&&(a.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!l.has(i.destroy)&&(l.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);a.clear(),l.clear();class o extends e{constructor(...t){if(super(...t),this.constructor===o&&"function"==typeof this.postscript){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let t=r.length-1;t>=0;t--)r[t].call(this)}}),n.length){let t=!1;Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!t){t=!0;for(let t=0;t<n.length;t++)n[t].call(this)}}})}this.postscript(...t)}}}return o.__accessorMetadata__=(0,s.JT)(e.prototype),o.prototype.declaredClass=t,o}}function u(t,e){return null==e.get?function(){const e=this.__accessor__.properties.get(t);if(void 0===e)return;(0,i.it)(e);const r=this.__accessor__.store;return r.has(t)?r.get(t):e.metadata.value}:function(){const e=this.__accessor__.properties.get(t);if(void 0!==e)return e.getComputed()}}function h(t){const e=t.prototype,r=(0,s.JT)(e).properties,i={};for(const t of Object.getOwnPropertyNames(r)){const e=r[t];(0,o.OM)(e),i[t]={enumerable:!0,configurable:!0,get:u(t,e),set(r){const s=this.__accessor__;if(void 0!==s){if(!Object.isFrozen(this)){if(s.initialized&&e.readOnly)throw new TypeError(`[accessor] cannot assign to read-only property '${t}' of ${this.declaredClass}`);if(s.lifecycle===n.F.CONSTRUCTED&&e.constructOnly)throw new TypeError(`[accessor] cannot assign to construct-only property '${t}' of ${this.declaredClass}`);s.set(t,r)}}else Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:r})}}}Object.defineProperties(t.prototype,i)}},41103:(t,e,r)=>{r.d(e,{M:()=>s});var n=r(31263);function s(t,e,r){e.keys().forEach((t=>{r.set(t,e.get(t),n.s3.DEFAULTS)}));const s=t.metadatas;Object.keys(s).forEach((e=>{t.internalGet(e)&&r.set(e,t.internalGet(e),n.s3.DEFAULTS)}))}},75215:(t,e,r)=>{r.d(e,{AY:()=>I,Iu:()=>S,Ls:()=>b,N7:()=>k,TJ:()=>y,V5:()=>C,Zs:()=>l,di:()=>T,gB:()=>N,i$:()=>j,q9:()=>c,rY:()=>A,sY:()=>D,se:()=>w,vU:()=>u,z8:()=>E}),r(80442);var n=r(92604),s=r(30175);const i=n.Z.getLogger("esri.core.Accessor");function o(t){return null==t?t:new Date(t)}function a(t){return null==t?t:!!t}function l(t){return null==t?t:t.toString()}function c(t){return null==t?t:(t=parseFloat(t),isNaN(t)?0:t)}function u(t){return null==t?t:Math.round(parseFloat(t))}function h(t){return t&&t.constructor&&void 0!==t.constructor.__accessorMetadata__}function f(t,e){return null!=e&&t&&!(e instanceof t)}function d(t){return t&&"isCollection"in t}function p(t){return t&&t.Type?"function"==typeof t.Type?t.Type:t.Type.base:null}function g(t,e){return!!h(e)&&(i.error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+v(t)+"'"),!0)}function y(t,e){return null==e?e:d(t)?function(t,e){if(!e||!e.constructor||!d(e.constructor))return g(t,e)?e:new t(e);const r=p(t.prototype.itemType),n=p(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(g(t,e),e):new t(e):e}(t,e):f(t,e)?g(t,e)?e:new t(e):e}function v(t){return t&&t.prototype&&t.prototype.declaredClass||"unknown"}const _=new WeakMap;function m(t){switch(t){case Number:return c;case E:return u;case Boolean:return a;case String:return l;case Date:return o;default:return(0,s.s1)(_,t,(()=>y.bind(null,t)))}}function w(t,e){const r=m(t);return 1===arguments.length?r:r(e)}function b(t,e,r){return 1===arguments.length?b.bind(null,t):e?Array.isArray(e)?e.map((e=>t(e,r))):[t(e,r)]:e}function A(t,e){return 1===arguments.length?b(w.bind(null,t)):b(w.bind(null,t),e)}function O(t,e,r){return 0!==e&&Array.isArray(r)?r.map((r=>O(t,e-1,r))):t(r)}function S(t,e,r){if(2===arguments.length)return S.bind(null,t,e);if(!r)return r;let n=e,s=r=O(t,e,r);for(;n>0&&Array.isArray(s);)n--,s=s[0];if(void 0!==s)for(let t=0;t<n;t++)r=[r];return r}function T(t,e,r){return 2===arguments.length?S(w.bind(null,t),e):S(w.bind(null,t),e,r)}function N(t){return!!Array.isArray(t)&&!t.some((e=>{const r=typeof e;return!("string"===r||"number"===r||"function"===r&&t.length>1)}))}function j(t,e){if(2===arguments.length)return j(t).call(null,e);const r=new Set,n=t.filter((t=>"function"!=typeof t)),s=t.filter((t=>"function"==typeof t));for(const e of t)"string"!=typeof e&&"number"!=typeof e||r.add(e);let o=null,a=null;return(t,e)=>{if(null==t)return t;const l=typeof t,c="string"===l||"number"===l;return c&&(r.has(t)||s.some((t=>"string"===l&&t===String||"number"===l&&t===Number)))||"object"===l&&s.some((e=>!f(t,e)))?t:(c&&n.length?(o||(o=n.map((t=>"string"==typeof t?`'${t}'`:`${t}`)).join(", ")),i.error("Accessor#set",`'${t}' is not a valid value for this property, only the following values are valid: ${o}`)):"object"==typeof t&&s.length?(a||(a=s.map((t=>v(t))).join(", ")),i.error("Accessor#set",`'${t}' is not a valid value for this property, value must be one of ${a}`)):i.error("Accessor#set",`'${t}' is not a valid value for this property`),e&&(e.valid=!1),null)}}function k(t,e){if(2===arguments.length)return k(t).call(null,e);const r={},n=[],s=[];for(const e in t.typeMap){const i=t.typeMap[e];r[e]=w(i),n.push(v(i)),s.push(e)}const o=()=>`'${n.join("', '")}'`,a=()=>`'${s.join("', '")}'`,l="string"==typeof t.key?e=>e[t.key]:t.key;return e=>{if(t.base&&!f(t.base,e))return e;if(null==e)return e;const n=l(e)||t.defaultKeyValue,s=r[n];if(!s)return i.error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${a()})`),null;if(!f(t.typeMap[n],e))return e;if("string"==typeof t.key&&!h(e)){const r={};for(const n in e)n!==t.key&&(r[n]=e[n]);return s(r)}return s(e)}}class E{}const C={native:t=>({type:"native",value:t}),array:t=>({type:"array",value:t}),oneOf:t=>({type:"one-of",values:t})};function I(t){if(!t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function D(t){switch(t.type){case"native":return w(t.value);case"array":return b(D(t.value));case"one-of":return function(t){let e=null;return(r,n)=>U(r,t)?r:(null==e&&(e=M(t)),i.error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}(t);default:return null}}function M(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case E:return"integer";case Date:return"date";default:return v(t.value)}case"array":return`array of ${M(t.value)}`;case"one-of":{const e=t.values.map((t=>M(t)));return`one of ${e.slice(0,e.length-1)} or ${e[e.length-1]}`}}return"unknown"}function U(t,e){if(null==t)return!0;switch(e.type){case"native":switch(e.value){case Number:case E:return"number"==typeof t;case Boolean:return"boolean"==typeof t;case String:return"string"==typeof t}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some((t=>!U(t,e.value)));case"one-of":return e.values.some((e=>U(t,e)))}}},53906:(t,e,r)=>{r.d(e,{hk:()=>f,HS:()=>u,Ah:()=>h,OM:()=>y});var n=r(75215),s=r(63213);function i(t){if(t.json||(t.json={}),a(t.json),l(t.json),o(t.json),t.json.origins)for(const e in t.json.origins)a(t.json.origins[e]),l(t.json.origins[e]),o(t.json.origins[e]);return!0}function o(t){t.name&&(t.read&&"object"==typeof t.read?void 0===t.read.source&&(t.read.source=t.name):t.read={source:t.name},t.write&&"object"==typeof t.write?void 0===t.write.target&&(t.write.target=t.name):t.write={target:t.name})}function a(t){"boolean"==typeof t.read?t.read={enabled:t.read}:"function"==typeof t.read?t.read={enabled:!0,reader:t.read}:t.read&&"object"==typeof t.read&&void 0===t.read.enabled&&(t.read.enabled=!0)}function l(t){"boolean"==typeof t.write?t.write={enabled:t.write}:"function"==typeof t.write?t.write={enabled:!0,writer:t.write}:t.write&&"object"==typeof t.write&&void 0===t.write.enabled&&(t.write.enabled=!0)}var c=r(827);function u(t,e){return f(t,"read",e)}function h(t,e){return f(t,"write",e)}function f(t,e,r){let n=t&&t.json;if(t&&t.json&&t.json.origins&&r){const s=t.json.origins[r.origin];s&&("any"===e||e in s)&&(n=s)}return n}function d(t){return t.type?p(t):g(t)}function p(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!(0,n.gB)(r);)r=r[0],e++;return{type:r,ndimArray:e}}function g(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function y(t){i(t)&&(function(t){if(t.json&&t.json.origins){const e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(const t in r)if(e[t]){const n=e[t];r[t].forEach((t=>{e[t]=n})),delete e[t]}}}(t),function(t){const e=function(t){return t.json.types?g(t.json):t.type?p(t):g(t)}(t);if(t.json.origins)for(const r in t.json.origins){const n=t.json.origins[r],i=n.types?d(n):e;(0,s.U)(i,n,!1),n.types&&!n.write&&t.json.write&&t.json.write.enabled&&(n.write={...t.json.write}),(0,c.U)(i,n)}(0,s.U)(e,t.json,!0),(0,c.U)(e,t.json)}(t))}},63213:(t,e,r)=>{r.d(e,{U:()=>c,d:()=>u});var n=r(92604),s=r(78286),i=r(20941),o=r(7628),a=r(14062);const l=n.Z.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader");function c(t,e,r){var n,i;t&&(!r&&!e.read||null!=(n=e.read)&&n.reader||!1===(null==(i=e.read)?void 0:i.enabled)||function(t){return"types"in t?y(t.types):g(t.type)}(t)&&(0,s.RB)("read.reader",u(t),e))}function u(t){var e;const r=null!=(e=t.ndimArray)?e:0;if(r>1)return function(t){var e;const r=h(t),n=f.bind(null,r),s=null!=(e=t.ndimArray)?e:0;return(t,e,r)=>{if(null==t)return t;t=n(t,r,s);let i=s,o=t;for(;i>0&&Array.isArray(o);)i--,o=o[0];if(void 0!==o)for(let e=0;e<i;e++)t=[t];return t}}(t);if(1===r)return d(t);if("type"in t&&p(t.type)){var n,s;const e=null==(n=t.type.prototype)||null==(s=n.itemType)?void 0:s.Type,r=d("function"==typeof e?{type:e}:{types:e});return(e,n,s)=>{const i=r(e,n,s);return i?new t.type(i):i}}return h(t)}function h(t){return"type"in t?function(t){return t.prototype.read?(e,r,n)=>{if(null==e)return e;const s=typeof e;if("object"!==s)return void l.error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${s}'`);const i=new t;return i.read(e,n),i}:t.fromJSON}(t.type):function(t){var e;let r=null;const n=null!=(e=t.errorContext)?e:"type";return(e,s,a)=>{if(null==e)return e;const c=typeof e;if("object"!==c)return void l.error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);r||(r=function(t){const e={};for(const s in t.typeMap){var r,n;const i=t.typeMap[s],a=(0,o.JT)(i.prototype);if("function"==typeof t.key)continue;const l=a.properties[t.key];if(!l)continue;null!=(r=l.json)&&r.type&&Array.isArray(l.json.type)&&1===l.json.type.length&&"string"==typeof l.json.type[0]&&(e[l.json.type[0]]=i);const c=null==(n=l.json)?void 0:n.write;if(!c||!c.writer){e[s]=i;continue}const u=c.target,h="string"==typeof u?u:t.key,f={};c.writer(s,f,h),f[h]&&(e[f[h]]=i)}return e}(t));const u=t.key;if("string"!=typeof u)return;const h=e[u],f=h?r[h]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!f){const t=`Type '${h||"unknown"}' is not supported`;return a&&a.messages&&e&&a.messages.push(new i.Z(`${n}:unsupported`,t,{definition:e,context:a})),void l.error(t)}const d=new f;return d.read(e,a),d}}(t.types)}function f(t,e,r,n){return 0!==n&&Array.isArray(e)?e.map((e=>f(t,e,r,n-1))):t(e,void 0,r)}function d(t){const e=h(t);return(t,r,n)=>{if(null==t)return t;if(Array.isArray(t)){const r=[];for(const s of t){const t=e(s,void 0,n);void 0!==t&&r.push(t)}return r}const s=e(t,void 0,n);return void 0!==s?[s]:void 0}}function p(t){if(!(0,a.u)(t))return!1;const e=t.prototype.itemType;return!(!e||!e.Type)&&("function"==typeof e.Type?g(e.Type):y(e.Type))}function g(t){return!Array.isArray(t)&&!!t&&t.prototype&&("read"in t.prototype||"fromJSON"in t||p(t))}function y(t){for(const e in t.typeMap)if(!g(t.typeMap[e]))return!1;return!0}},14062:(t,e,r)=>{function n(t){return!!t&&t.prototype&&t.prototype.declaredClass&&0===t.prototype.declaredClass.indexOf("esri.core.Collection")}r.d(e,{u:()=>n})},827:(t,e,r)=>{r.d(e,{U:()=>l,k:()=>f});var n=r(20102),s=r(92604),i=r(78286),o=r(14062);const a=s.Z.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer");function l(t,e){var r;if(!e.write||e.write.writer||!1===e.write.enabled&&!e.write.overridePolicy)return;const n=null!=(r=null==t?void 0:t.ndimArray)?r:0;t&&(1===n||"type"in t&&(0,o.u)(t.type))?e.write.writer=d:n>1?e.write.writer=function(t){return function(e,r,n,s){let o;if(null===e)o=null;else{o=p(e,s,t);let r=t,n=o;for(;r>0&&Array.isArray(n);)r--,n=n[0];if(void 0!==n)for(let t=0;t<r;t++)o=[o]}(0,i.RB)(n,o,r)}}(n):e.types?Array.isArray(e.types)?e.write.writer=function(t){return(e,r,n,s)=>e&&Array.isArray(e)?u(e.filter((e=>c(e,t,s))),r,n,s):u(e,r,n,s)}(e.types[0]):e.write.writer=function(t){return(e,r,n,s)=>e?c(e,t,s)?u(e,r,n,s):void 0:u(e,r,n,s)}(e.types):e.write.writer=u}function c(t,e,r){for(const r in e.typeMap)if(t instanceof e.typeMap[r])return!0;if(null!=r&&r.messages){var s,i;const o=null!=(s=e.errorContext)?s:"type",l=`Values of type '${null!=(i="function"!=typeof e.key?t[e.key]:t.declaredClass)?i:"Unknown"}' cannot be written`;r&&r.messages&&t&&r.messages.push(new n.Z(`${o}:unsupported`,l,{definition:t,context:r})),a.error(l)}return!1}function u(t,e,r,n){(0,i.RB)(r,h(t,n),e)}function h(t,e){return t&&"function"==typeof t.write?t.write({},e):t&&"function"==typeof t.toJSON?t.toJSON():"number"==typeof t?f(t):t}function f(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function d(t,e,r,n){let s;null===t?s=null:t&&"function"==typeof t.map?(s=t.map((t=>h(t,n))),"function"==typeof s.toArray&&(s=s.toArray())):s=[h(t,n)],(0,i.RB)(r,s,e)}function p(t,e,r){return 0!==r&&Array.isArray(t)?t.map((t=>p(t,e,r-1))):h(t,e)}},67723:(t,e,r)=>{r.d(e,{$z:()=>o,Gg:()=>l,U2:()=>a});var n=r(1153);function s(t,e){const r="?"===t[t.length-1]?t.slice(0,-1):t;if(null!=e.getItemAt||Array.isArray(e)){const t=parseInt(r,10);if(!isNaN(t))return Array.isArray(e)?e[t]:e.getItemAt(t)}const s=(0,n.vw)(e);return(0,n.b6)(s,r)?s.get(r):e[r]}function i(t,e,r){if(null==t)return t;const n=s(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:i(n,e,r+1)}function o(t,e,r=0){return"string"!=typeof e||e.includes(".")?i(t,(0,n.NI)(e),r):s(e,t)}function a(t,e){return o(t,e)}function l(t,e){return void 0!==o(e,t)}},97831:(t,e,r)=>{var n;r.d(e,{F:()=>n}),function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CONSTRUCTING=1]="CONSTRUCTING",t[t.CONSTRUCTED=2]="CONSTRUCTED"}(n||(n={}))},7628:(t,e,r)=>{r.d(e,{JT:()=>a,VZ:()=>l,tz:()=>c});var n=r(22974),s=r(70586),i=r(1153);class o{constructor(t){this.autoDestroy=!1,this.properties=t}}function a(t){let e=t.constructor.__accessorMetadata__;const r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){const r=Object.create(e.properties),s=e.autoDestroy;for(const t in r)r[t]=(0,n.d9)(r[t]);e=new o(r),e.autoDestroy=s,Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e=new o({}),Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return(0,s.j0)(t.constructor.__accessorMetadata__)}function l(t,e){const r=function(t){return a(t).properties}(t);let n=r[e];return n||(n=r[e]={}),n}function c(t,e){return(0,i.TS)(t,e,h)}const u=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/;function h(t){return u.test(t)?"replace":"merge"}},50549:(t,e,r)=>{r.d(e,{$:()=>h,i:()=>u});var n=r(67723),s=r(1153),i=r(53906);function o(t,e,r){if(!t||!t.read||!1===t.read.enabled||!t.read.source)return!1;const s=t.read.source;if("string"==typeof s){if(s===e)return!0;if(s.includes(".")&&0===s.indexOf(e)&&(0,n.Gg)(s,r))return!0}else for(const t of s){if(t===e)return!0;if(t.includes(".")&&0===t.indexOf(e)&&(0,n.Gg)(t,r))return!0}return!1}function a(t,e,r,n,s){let a=(0,i.HS)(e[r],s);(function(t){return t&&(!t.read||!1!==t.read.enabled&&!t.read.source)})(a)&&(t[r]=!0);for(const l of Object.getOwnPropertyNames(e))a=(0,i.HS)(e[l],s),o(a,r,n)&&(t[l]=!0)}function l(t,e,r,n){const s=r.metadatas,o=(0,i.hk)(s[e],"any",n),a=o&&o.default;if(void 0===a)return;const l="function"==typeof a?a.call(t,e,n):a;void 0!==l&&r.set(e,l)}const c={origin:"service"};function u(t,e,r=c){if(!e||"object"!=typeof e)return;const o=(0,s.vw)(t),u=o.metadatas,h={};for(const t of Object.getOwnPropertyNames(e))a(h,u,t,e,r);o.setDefaultOrigin(r.origin);for(const s of Object.getOwnPropertyNames(h)){const a=(0,i.HS)(u[s],r).read,l=a&&a.source;let c;c=l&&"string"==typeof l?(0,n.$z)(e,l):e[s],a&&a.reader&&(c=a.reader.call(t,c,e,r)),void 0!==c&&o.set(s,c)}if(!r||!r.ignoreDefaults){o.setDefaultOrigin("defaults");for(const e of Object.getOwnPropertyNames(u))h[e]||l(t,e,o,r)}o.setDefaultOrigin("user")}function h(t,e,r,n=c){var s;const i={...n,messages:[]};r(i),null==(s=i.messages)||s.forEach((e=>{"warning"!==e.type||t.loaded?n&&n.messages&&n.messages.push(e):t.loadWarnings.push(e)}))}},37697:(t,e,r)=>{r.d(e,{t:()=>a});var n=r(20102),s=r(80442),i=r(92604),o=r(67723);function a(t,e,r){if(t&&e)if("object"==typeof e)for(const r of Object.getOwnPropertyNames(e))a(t,r,e[r]);else{if(e.includes(".")){const n=e.split("."),s=n.splice(n.length-1,1)[0];return void a((0,o.U2)(t,n),s,r)}const i=t.__accessor__;null!=i&&function(t,e){if((0,s.Z)("esri-unknown-property-errors")&&!function(t,e){return null!=e.metadatas[t]}(t,e))throw new n.Z("set:unknown-property",function(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}(t,e))}(e,i),t[e]=r}}i.Z.getLogger("esri.core.accessorSupport.set")},58971:(t,e,r)=>{r.d(e,{GF:()=>m,LJ:()=>f,gb:()=>d,it:()=>c,mS:()=>v}),r(80442);var n=r(92604),s=r(1153),i=r(44550);let o,a=[];const l=n.Z.getLogger("esri.core.Accessor");function c(t){void 0!==o&&o.onObservableAccessed(t)}let u=!1,h=!1;function f(t,e,r){if(u)return p(t,e,r);g(t);const n=e.call(r);return y(),n}function d(t,e){return f(void 0,t,e)}function p(t,e,r){const n=u;u=!0,g(t);let s=null;try{s=e.call(r)}catch(t){h&&l.error(t)}return y(),u=n,s}function g(t){o=t,a.push(t)}function y(){const t=a.pop();o=a.length>0?a[a.length-1]:void 0,void 0!==t&&t.onTrackingEnd()}function v(t,e){if(e.flags&i.v.DepTrackingInitialized)return;const r=h;h=!1,e.flags&i.v.AutoTracked?p(e,e.metadata.get,t):m(t,e),h=r}const _=[];function m(t,e){e.flags&i.v.ExplicitlyTracking||(e.flags|=i.v.ExplicitlyTracking,p(e,(()=>{const r=e.metadata.dependsOn||_;for(const e of r)if("string"!=typeof e||e.includes(".")){const r=(0,s.NI)(e);for(let e=0,n=t;e<r.length&&null!=n&&"object"==typeof n;++e)n=w(n,r[e],e!==r.length-1)}else w(t,e,!1)})),e.flags&=~i.v.ExplicitlyTracking)}function w(t,e,r){const n="?"===e[e.length-1]?e.slice(0,-1):e;if(null!=t.getItemAt||Array.isArray(t)){const e=parseInt(n,10);if(!isNaN(e))return Array.isArray(t)?t[e]:t.getItemAt(e)}const i=(0,s.vw)(t),o=null==i?void 0:i.properties.get(n);return o&&(c(o),v(t,o)),r?t[n]:void 0}},87538:(t,e,r)=>{r.d(e,{EH:()=>c,U5:()=>a,Xz:()=>l});var n=r(58971),s=r(38805);let i=!1;const o=[];function a(t,e){let r=new s.M((function s(){if(!r||a)return;if(i)return void u(s);const l=o;r.clear(),i=!0,a=!0,o=(0,n.LJ)(r,t),a=!1,i=!1,e(o,l),h()})),o=null,a=!1;return a=!0,o=(0,n.LJ)(r,t),a=!1,{remove:function(){r&&(r.destroy(),r=null,o=null)}}}function l(t,e){let r=new s.M((function(){e(i,o)})),i=null;function o(){return r?(r.clear(),i=(0,n.LJ)(r,t),i):null}return o(),{remove:function(){r&&(r.destroy(),r=null),i=null}}}function c(t){let e=new s.M((function s(){e&&!r&&(i?u(s):(e.clear(),i=!0,r=!0,(0,n.LJ)(e,t),r=!1,i=!1,h()))})),r=!1;return r=!0,(0,n.LJ)(e,t),r=!1,{remove:function(){e&&(e.destroy(),e=null)}}}function u(t){o.includes(t)||o.unshift(t)}function h(){for(;o.length;)o.pop()()}},44550:(t,e,r)=>{var n;r.d(e,{v:()=>n}),function(t){t[t.Dirty=1]="Dirty",t[t.Overriden=2]="Overriden",t[t.Computing=4]="Computing",t[t.NonNullable=8]="NonNullable",t[t.HasDefaultValue=16]="HasDefaultValue",t[t.DepTrackingInitialized=32]="DepTrackingInitialized",t[t.AutoTracked=64]="AutoTracked",t[t.ExplicitlyTracking=128]="ExplicitlyTracking"}(n||(n={}))},39020:(t,e,r)=>{r.d(e,{X:()=>s});var n=r(67676);class s{constructor(t,e){this._observers=t,this._observer=e}remove(){(0,n.Od)(this._observers,this._observer)}}},38805:(t,e,r)=>{r.d(e,{M:()=>n});class n{constructor(t){this._notify=t,this._accessed=[],this._handles=[],this._invalidCount=0}destroy(){this._accessed.length=0,this.clear()}onInvalidated(){this._invalidCount++}onCommitted(){const t=this._invalidCount;if(1===t)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}onObservableAccessed(t){this._accessed.includes(t)||this._accessed.push(t)}onTrackingEnd(){const t=this._handles,e=this._accessed;for(let r=0;r<e.length;++r)t.push(e[r].observe(this));e.length=0}clear(){const t=this._handles;for(let e=0;e<t.length;++e)t[e].remove();t.length=0}}},1153:(t,e,r)=>{r.d(e,{IH:()=>d,NI:()=>u,Qc:()=>f,TS:()=>l,b6:()=>a,vw:()=>o});var n=r(50758),s=r(22974),i=r(70586);function o(t){return t?t.__accessor__?t.__accessor__:t.propertyInvalidated?t:null:null}function a(t,e){return null!=t&&t.metadatas&&null!=t.metadatas[e]}function l(t,e,r){return c(t,e,r?{policy:r,path:""}:null)}function c(t,e,r){return e?Object.keys(e).reduce((function(t,n){let o=null,a="merge";if(r&&(o=r.path?`${r.path}.${n}`:n,a=r.policy(o)),"replace"===a)return t[n]=e[n],t;if(void 0===t[n])return t[n]=(0,s.d9)(e[n]),t;let l=t[n],u=e[n];if(l===u)return t;if(Array.isArray(u)||Array.isArray(t))l=l?Array.isArray(l)?t[n]=l.concat():t[n]=[l]:t[n]=[],u&&(Array.isArray(u)||(u=[u]),u.forEach((t=>{l.includes(t)||l.push(t)})));else if(u&&"object"==typeof u)if(r){const e=r.path;r.path=(0,i.j0)(o),t[n]=c(l,u,r),r.path=e}else t[n]=c(l,u,null);else t.hasOwnProperty(n)&&!e.hasOwnProperty(n)||(t[n]=u);return t}),t||{}):t}function u(t){return Array.isArray(t)?t:t.split(".")}function h(t){return t.includes(",")?t.split(",").map((t=>t.trim())):[t.trim()]}function f(t,e,r,s){const i=function(t){if(Array.isArray(t)){const e=[];for(const r of t)e.push(...h(r));return e}return h(t)}(e);if(1!==i.length){const e=i.map((e=>s(t,e,r)));return(0,n.AL)(e)}return s(t,i[0],r)}function d(t){let e=!1;return()=>{e||(e=!0,t())}}},26258:(t,e,r)=>{r.d(e,{BT:()=>b,YP:()=>T,aQ:()=>N});var n=r(3894),s=r(22974),i=r(70586),o=r(71143);class a extends o.Z{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=(0,i.Bd)(this._set)}acquire(...t){const e=super.acquire(...t);return this._set.delete(e),e}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}var l,c,u=r(1654),h=r(99001),f=r(67723),d=r(87538),p=r(1153);(c=l||(l={}))[c.Untracked=0]="Untracked",c[c.Tracked=1]="Tracked";class g{constructor(){this.uid=(0,h.D)(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,e,r,n,i){return this.pool.acquire(l.Untracked,t,e,r,n,i,s.fS)}static acquireTracked(t,e,r,n){return this.pool.acquire(l.Tracked,t,e,r,null,null,n)}notify(t,e){this.type===l.Untracked?this.callback.call(this.target,t,e,this.path,this.target):this.callback.call(null,t,e)}acquire(t,e,r,n,s,i,o){this.uid=(0,h.D)(),this.removed=!1,this.type=t,this.oldValue=e,this.callback=r,this.getValue=n,this.target=s,this.path=i,this.equals=o}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=(0,h.D)(),this.removed=!0}}g.pool=new a(g);const y=new n.Z,v=new Set;let _;function m(t){v.delete(t),v.add(t),_||(_=(0,u.Os)(A))}function w(t){if(t.removed)return;const e=t.oldValue,r=t.getValue();t.equals(e,r)||(t.oldValue=r,t.notify(r,e))}function b(t){for(const e of v.values())e.target===t&&(e.removed=!0)}function A(){let t=10;for(;_&&t--;){_=null;const t=O(),e=y.acquire();for(const r of t){const t=r.uid;w(r),t===r.uid&&r.removed&&e.push(r)}for(const t of v)t.removed&&(e.push(t),v.delete(t));for(const t of e)g.pool.release(t);y.release(e),y.release(t),S.forEach((t=>t()))}}function O(){const t=y.acquire();t.length=v.size;let e=0;for(const r of v)t[e]=r,++e;return v.clear(),t}const S=new Set;function T(t,e,r,n=!1){return!t.__accessor__||t.__accessor__.destroyed?{remove(){}}:n?function(t,e,r){const n=(0,p.Qc)(t,e,r,((t,e,r)=>{let i=!1;return(0,d.U5)((()=>(0,f.$z)(t,e)),((o,a)=>{t.__accessor__.destroyed?n.remove():i||(i=!0,(0,s.fS)(a,o)||r.call(t,o,a,e,t),i=!1)}))}));return n}(t,e,r):function(t,e,r){let n=(0,p.Qc)(t,e,r,((t,e,r)=>{let s,i,o=(0,d.Xz)((()=>(0,f.$z)(t,e)),((o,a)=>{t.__accessor__.destroyed||s&&s.uid!==i?n.remove():(s||(s=g.acquireUntracked(o,r,a,t,e),i=s.uid),m(s))}));return{remove:(0,p.IH)((()=>{o.remove(),s&&(s.uid!==i||s.removed||(s.removed=!0,m(s)),s=null),n=o=null}))}}));return n}(t,e,r)}function N(t,e,r=!1,n=s.fS){return r?function(t,e,r){let n=!1;return(0,d.U5)(t,((t,s)=>{n||(n=!0,r(s,t)||e(t,s),n=!1)}))}(t,e,n):function(t,e,r){let n,s,i=(0,d.Xz)(t,((t,o)=>{n&&n.uid!==s?i.remove():(n||(n=g.acquireTracked(t,e,o,r),s=n.uid),m(n))}));return{remove:(0,p.IH)((()=>{i.remove(),n&&(n.uid!==s||n.removed||(n.removed=!0,m(n)),n=null),i=null}))}}(t,e,n)}},76169:(t,e,r)=>{r.d(e,{c:()=>d,d:()=>f});var n=r(67676),s=r(20102),i=r(92604),o=r(31263),a=r(1153),l=r(53906);const c=i.Z.getLogger("esri.core.accessorSupport.write");function u(t,e,r,n,s){var i,o;const a={};return null==(i=e.write)||null==(o=i.writer)||o.call(t,n,a,r,s),a}function h(t,e,r,i,a,l){if(!i||!i.write)return!1;const u=t.get(r);if(!a&&i.write.overridePolicy){const e=i.write.overridePolicy.call(t,u,r,l);void 0!==e&&(a=e)}if(a||(a=i.write),!a||!1===a.enabled)return!1;if((null===u&&!a.allowNull&&!a.writerEnsuresNonNull||void 0===u)&&a.isRequired){const e=new s.Z("web-document-write:property-required",`Missing value for required property '${r}' on '${t.declaredClass}'`,{propertyName:r,target:t});return e&&l&&l.messages?l.messages.push(e):e&&!l&&c.error(e.name,e.message),!1}return!(void 0===u||null===u&&!a.allowNull&&!a.writerEnsuresNonNull||(!e.store.multipleOriginsSupported||e.store.originOf(r)===o.s3.DEFAULTS)&&function(t,e,r,s,i){const o=s.default;if(void 0===o)return!1;if(null!=s.defaultEquals)return s.defaultEquals(i);if("function"==typeof o){if(Array.isArray(i)){const s=o.call(t,e,r);return(0,n.fS)(s,i)}return!1}return o===i}(t,r,l,i,u)||!a.ignoreOrigin&&l&&l.origin&&e.store.multipleOriginsSupported&&e.store.originOf(r)<(0,o.M9)(l.origin))}function f(t,e,r,n){const s=(0,a.vw)(t),i=s.metadatas,o=(0,l.Ah)(i[e],n);return!!o&&h(t,s,e,o,r,n)}function d(t,e,r){if(t&&"function"==typeof t.toJSON&&(!t.toJSON.isDefaultToJSON||!t.write))return(0,a.TS)(e,t.toJSON());const n=(0,a.vw)(t),s=n.metadatas;for(const f in s){const d=(0,l.Ah)(s[f],r);if(!h(t,n,f,d,void 0,r))continue;const p=t.get(f),g=u(t,d,d.write&&"string"==typeof d.write.target?d.write.target:f,p,r);var i,c;Object.keys(g).length>0&&(e=(0,a.TS)(e,g),null!=r&&null!=(i=r.resources)&&null!=(c=i.pendingOperations)&&c.length&&Promise.all(r.resources.pendingOperations).then((()=>(0,a.TS)(e,g))),r&&r.writtenProperties&&r.writtenProperties.push({target:t,propName:f,oldOrigin:(0,o.Wm)(n.store.originOf(f)),newOrigin:r.origin}))}return e}},50758:(t,e,r)=>{r.d(e,{AL:()=>s,kB:()=>i});var n=r(70586);function s(t){return i((()=>t.forEach((t=>(0,n.pC)(t)&&t.remove()))))}function i(t){return{remove:()=>{t&&(t(),t=void 0)}}}},35454:(t,e,r)=>{r.d(e,{X:()=>s,w:()=>i});var n=r(78286);class s{constructor(t,e={ignoreUnknown:!1,useNumericKeys:!1}){this.jsonToAPI=t,this.options=e,this.apiValues=[],this.jsonValues=[],this.apiToJSON=this._invertMap(t),this.apiValues=this._getKeysSorted(this.apiToJSON),this.jsonValues=this._getKeysSorted(this.jsonToAPI),this.read=t=>this.fromJSON(t),this.write=(t,e,r)=>{const s=this.toJSON(t);void 0!==s&&(0,n.RB)(r,s,e)},this.write.isJSONMapWriter=!0}toJSON(t){if(this.apiToJSON.hasOwnProperty(t)){const e=this.apiToJSON[t];return this.options.useNumericKeys?+e:e}return this.options.ignoreUnknown?void 0:t}fromJSON(t){return this.jsonToAPI.hasOwnProperty(t)?this.jsonToAPI[t]:this.options.ignoreUnknown?void 0:t}_invertMap(t){const e={};for(const r in t)e[t[r]]=r;return e}_getKeysSorted(t){const e=[];for(const r in t)e.push(r);return e.sort(),e}}function i(){return function(t,e){return new s(t,{ignoreUnknown:!0,...e})}}},41213:(t,e,r)=>{r.d(e,{Y:()=>s});const n=[];function s(t){n.push(t),1===n.length&&queueMicrotask((()=>{const t=n.slice();n.length=0;for(const e of t)e()}))}},1654:(t,e,r)=>{r.d(e,{MU:()=>w,Os:()=>y});var n=r(70586),s=r(41213),i=r(54790),o=r(44553),a=r(95330),l=r(76882);class c{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}}let u=0;const h={time:(0,l.HA)(0),deltaTime:(0,l.HA)(0),elapsedFrameTime:(0,l.HA)(0),frameDuration:(0,l.HA)(0)},f=["prepare","preRender","render","postRender","update","finish"],d=[],p=new o.Z,g={frameTasks:p,willDispatch:!1,clearFrameTasks:function(t=!1){p.forAll((t=>{t.removed=!0})),t&&_()},dispatch:m,executeFrameTasks:function(t){const e=(0,l.HA)(t-u);u=t;const r=1e3/60,n=Math.max(0,e-r);for(let s=0;s<f.length;s++){const i=performance.now(),o=f[s];p.forAll((i=>{var a;i.paused||i.removed||(0===s&&i.ticks++,i.phases[o]&&(h.time=t,h.deltaTime=0===i.ticks?(0,l.HA)(0):e,h.elapsedFrameTime=(0,l.HA)(performance.now()-t),h.frameDuration=(0,l.HA)(r-n),null==(a=i.phases[o])||a.call(i,h)))})),b[s].record(performance.now()-i)}_(),A.record(performance.now()-t)}};function y(t){const e=new c(t);return d.push(e),g.willDispatch||(g.willDispatch=!0,(0,s.Y)(m)),e}const v=new o.Z;function _(){p.forAll((t=>{t.removed&&v.push(t)})),p.removeUnorderedMany(v.data,v.length),v.clear()}function m(){for(;d.length;){const t=(0,n.j0)(d.shift());t.isActive&&t.callback()}g.willDispatch=!1}function w(t=1,e){const r=(0,a.hh)(),n=()=>{(0,a.Hc)(e)?r.reject((0,a.zE)()):0===t?r():(--t,(0,s.Y)((()=>n())))};return n(),r.promise}const b=f.map((t=>new i.Z(t))),A=new i.Z("total")},76882:(t,e,r)=>{function n(t){return t}r.d(e,{HA:()=>n})},99001:(t,e,r)=>{r.d(e,{D:()=>s});let n=0;function s(){return++n}}}]);
|
|
@@ -5,7 +5,7 @@ See https://js.arcgis.com/4.24/esri/copyright.txt for details.
|
|
|
5
5
|
import{Float2Uniform as e}from"../views/3d/webgl-engine/core/shaderModules/Float2Uniform.js";import{FloatUniform as o}from"../views/3d/webgl-engine/core/shaderModules/FloatUniform.js";import{glsl as r}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as i}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DUniform as t}from"../views/3d/webgl-engine/core/shaderModules/Texture2DUniform.js";import{VertexAttribute as d}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function n(){const n=new i;return n.attributes.add(d.POSITION,"vec2"),n.attributes.add(d.UV0,"vec2"),n.vertex.uniforms.add(new o("scale")),n.vertex.uniforms.add(new e("offset")),n.varyings.add("uv","vec2"),n.vertex.code.add(r`void main(void) {
|
|
6
6
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
7
7
|
uv = uv0 * scale + offset;
|
|
8
|
-
}`),n.fragment.uniforms.add(new t("tex")
|
|
8
|
+
}`),n.fragment.uniforms.add([new t("tex"),new o("opacity")]),n.fragment.code.add(r`void main() {
|
|
9
9
|
vec4 color = texture2D(tex, uv);
|
|
10
10
|
gl_FragColor = vec4(color.xyz, 1.0) * color.a * opacity;
|
|
11
11
|
}`),n}const s=Object.freeze(Object.defineProperty({__proto__:null,build:n},Symbol.toStringTag,{value:"Module"}));export{s as B,n as b};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{Offset as r}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js";import{ShaderOutput as o}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutputOptions.js";import{Slice as a}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{InstancedDoublePrecision as
|
|
5
|
+
import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/ForwardLinearDepth.glsl.js";import{Offset as r}from"../views/3d/webgl-engine/core/shaderLibrary/Offset.glsl.js";import{ShaderOutput as o}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutputOptions.js";import{Slice as a}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{Transform as i}from"../views/3d/webgl-engine/core/shaderLibrary/Transform.glsl.js";import{InstancedDoublePrecision as t}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js";import{NormalAttribute as l,NormalAttributeType as s}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/NormalAttribute.glsl.js";import{PositionAttribute as n}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/PositionAttribute.glsl.js";import{SymbolColor as d}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/SymbolColor.glsl.js";import{TextureCoordinateAttribute as c}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/TextureCoordinateAttribute.glsl.js";import{VertexColor as m}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexColor.glsl.js";import{VertexNormal as g}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VertexNormal.glsl.js";import{VerticalOffset as p}from"../views/3d/webgl-engine/core/shaderLibrary/attributes/VerticalOffset.glsl.js";import{DefaultMaterialAuxiliaryPasses as u}from"../views/3d/webgl-engine/core/shaderLibrary/default/DefaultMaterialAuxiliaryPasses.glsl.js";import{ComputeNormalTexture as v}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ComputeNormalTexture.glsl.js";import{EvaluateAmbientOcclusion as b}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateAmbientOcclusion.glsl.js";import{EvaluateSceneLighting as h}from"../views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js";import{multipassTerrainTest as f}from"../views/3d/webgl-engine/core/shaderLibrary/shading/MultipassTerrainTest.glsl.js";import{Normals as w}from"../views/3d/webgl-engine/core/shaderLibrary/shading/Normals.glsl.js";import{PhysicallyBasedRendering as x}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRendering.glsl.js";import{PhysicallyBasedRenderingParameters as y,PBRMode as C}from"../views/3d/webgl-engine/core/shaderLibrary/shading/PhysicallyBasedRenderingParameters.glsl.js";import{ReadShadowMap as M}from"../views/3d/webgl-engine/core/shaderLibrary/shading/ReadShadowMap.glsl.js";import{VisualVariables as j}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{symbolAlphaCutoff as L,DiscardOrAdjustAlpha as T}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js";import{HeaderComment as A}from"../views/3d/webgl-engine/core/shaderLibrary/util/HeaderComment.glsl.js";import{MixExternalColor as O}from"../views/3d/webgl-engine/core/shaderLibrary/util/MixExternalColor.glsl.js";import{addProjViewLocalOrigin as S,addCameraPosition as P}from"../views/3d/webgl-engine/core/shaderLibrary/util/View.glsl.js";import{Float3Uniform as _}from"../views/3d/webgl-engine/core/shaderModules/Float3Uniform.js";import{Float4Uniform as N}from"../views/3d/webgl-engine/core/shaderModules/Float4Uniform.js";import{FloatUniform as $}from"../views/3d/webgl-engine/core/shaderModules/FloatUniform.js";import{glsl as E}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{Matrix4Uniform as D}from"../views/3d/webgl-engine/core/shaderModules/Matrix4Uniform.js";import{ShaderBuilder as V}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DUniform as F}from"../views/3d/webgl-engine/core/shaderModules/Texture2DUniform.js";import{BindType as B}from"../views/3d/webgl-engine/core/shaderTechnique/BindType.js";import{TransparencyPassType as I}from"../views/3d/webgl-engine/lib/basicInterfaces.js";import{VertexAttribute as z}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function R(R){const G=new V,U=G.vertex.code,k=G.fragment.code;G.include(A,{name:"Default Material Shader",output:R.output});const W=S(G,R),q=R.hasModelTransformation;return q&&G.vertex.uniforms.add(new D("model")),G.include(n),G.varyings.add("vpos","vec3"),G.include(j,R),G.include(t,R),G.include(p,R),R.output!==o.Color&&R.output!==o.Alpha||(P(G.vertex.uniforms,R),G.include(l,R),G.include(i,{linearDepth:!1,hasModelTransformation:q}),R.normalType===s.Attribute&&R.offsetBackfaces&&G.include(r),G.include(v,R),G.include(g,R),R.instancedColor&&G.attributes.add(z.INSTANCECOLOR,"vec4"),G.varyings.add("localvpos","vec3"),G.include(c,R),G.include(e,R),G.include(d,R),G.include(m,R),G.vertex.uniforms.add(new N("externalColor")),G.varyings.add("vcolorExt","vec4"),R.hasMultipassTerrain&&G.varyings.add("depth","float"),U.add(E`
|
|
6
6
|
void main(void) {
|
|
7
7
|
forwardNormalizedVertexColor();
|
|
8
8
|
vcolorExt = externalColor;
|
|
9
|
-
${
|
|
9
|
+
${R.instancedColor?"vcolorExt *= instanceColor;":""}
|
|
10
10
|
vcolorExt *= vvColor();
|
|
11
11
|
vcolorExt *= getSymbolColor();
|
|
12
12
|
forwardColorMixMode();
|
|
@@ -18,67 +18,67 @@ import{ForwardLinearDepth as e}from"../views/3d/webgl-engine/core/shaderLibrary/
|
|
|
18
18
|
vpos = calculateVPos();
|
|
19
19
|
localvpos = vpos - view[3].xyz;
|
|
20
20
|
vpos = subtractOrigin(vpos);
|
|
21
|
-
${
|
|
21
|
+
${R.normalType===s.Attribute?E`
|
|
22
22
|
vNormalWorld = dpNormal(vvLocalNormal(normalModel()));`:""}
|
|
23
23
|
vpos = addVerticalOffset(vpos, localOrigin);
|
|
24
|
-
${
|
|
25
|
-
gl_Position = transformPosition(proj, view, ${
|
|
26
|
-
${
|
|
24
|
+
${R.hasVertexTangents?"vTangent = dpTransformVertexTangent(tangent);":""}
|
|
25
|
+
gl_Position = transformPosition(proj, view, ${q?"model,":""} vpos);
|
|
26
|
+
${R.normalType===s.Attribute&&R.offsetBackfaces?"gl_Position = offsetBackfacingClipPosition(gl_Position, vpos, vNormalWorld, cameraPosition);":""}
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
${
|
|
29
|
+
${R.hasMultipassTerrain?"depth = (view * vec4(vpos, 1.0)).z;":""}
|
|
30
30
|
forwardLinearDepth();
|
|
31
31
|
forwardTextureCoordinates();
|
|
32
32
|
}
|
|
33
|
-
`)),
|
|
33
|
+
`)),R.output===o.Alpha&&(G.include(a,R),G.include(T,R),G.include(f,R),G.fragment.uniforms.add(new $("opacity")),G.fragment.uniforms.add(new $("layerOpacity")),R.hasColorTexture&&G.fragment.uniforms.add(new F("tex",B.Pass,(e=>e.texture))),G.fragment.include(O),k.add(E`
|
|
34
34
|
void main() {
|
|
35
35
|
discardBySlice(vpos);
|
|
36
|
-
${
|
|
37
|
-
${
|
|
36
|
+
${R.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""}
|
|
37
|
+
${R.hasColorTexture?E`
|
|
38
38
|
vec4 texColor = texture2D(tex, vuv0);
|
|
39
|
-
${
|
|
39
|
+
${R.textureAlphaPremultiplied?"texColor.rgb /= texColor.a;":""}
|
|
40
40
|
discardOrAdjustAlpha(texColor);`:E`vec4 texColor = vec4(1.0);`}
|
|
41
|
-
${
|
|
41
|
+
${R.hasVertexColors?E`
|
|
42
42
|
float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:E`
|
|
43
43
|
float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));
|
|
44
44
|
`}
|
|
45
45
|
gl_FragColor = vec4(opacity_);
|
|
46
46
|
}
|
|
47
|
-
`)),
|
|
47
|
+
`)),R.output===o.Color&&(G.include(a,R),G.include(h,R),G.include(b,R),G.include(T,R),G.include(M,R),G.include(f,R),P(G.fragment.uniforms,R),G.fragment.uniforms.add(W),G.fragment.uniforms.add(new _("ambient")),G.fragment.uniforms.add(new _("diffuse")),G.fragment.uniforms.add(new $("opacity")),G.fragment.uniforms.add(new $("layerOpacity")),R.hasColorTexture&&G.fragment.uniforms.add(new F("tex",B.Pass,(e=>e.texture))),G.include(y,R),G.include(x,R),G.fragment.include(O),G.include(w,R),k.add(E`
|
|
48
48
|
void main() {
|
|
49
49
|
discardBySlice(vpos);
|
|
50
|
-
${
|
|
51
|
-
${
|
|
50
|
+
${R.hasMultipassTerrain?"terrainDepthTest(gl_FragCoord, depth);":""}
|
|
51
|
+
${R.hasColorTexture?E`
|
|
52
52
|
vec4 texColor = texture2D(tex, vuv0);
|
|
53
|
-
${
|
|
53
|
+
${R.textureAlphaPremultiplied?"texColor.rgb /= texColor.a;":""}
|
|
54
54
|
discardOrAdjustAlpha(texColor);`:E`vec4 texColor = vec4(1.0);`}
|
|
55
55
|
shadingParams.viewDirection = normalize(vpos - cameraPosition);
|
|
56
|
-
${
|
|
56
|
+
${R.normalType===s.ScreenDerivative?E`
|
|
57
57
|
vec3 normal = screenDerivativeNormal(localvpos);`:E`
|
|
58
58
|
shadingParams.normalView = vNormalWorld;
|
|
59
59
|
vec3 normal = shadingNormal(shadingParams);`}
|
|
60
|
-
${
|
|
60
|
+
${R.pbrMode===C.Normal?"applyPBRFactors();":""}
|
|
61
61
|
float ssao = evaluateAmbientOcclusionInverse();
|
|
62
62
|
ssao *= getBakedOcclusion();
|
|
63
63
|
|
|
64
64
|
float additionalAmbientScale = additionalDirectedAmbientLight(vpos + localOrigin);
|
|
65
65
|
vec3 additionalLight = ssao * lightingMainIntensity * additionalAmbientScale * ambientBoostFactor * lightingGlobalFactor;
|
|
66
|
-
${
|
|
66
|
+
${R.receiveShadows?"float shadow = readShadowMap(vpos, linearDepth);":R.spherical?"float shadow = lightingGlobalFactor * (1.0 - additionalAmbientScale);":"float shadow = 0.0;"}
|
|
67
67
|
vec3 matColor = max(ambient, diffuse);
|
|
68
|
-
${
|
|
68
|
+
${R.hasVertexColors?E`
|
|
69
69
|
vec3 albedo_ = mixExternalColor(vColor.rgb * matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));
|
|
70
70
|
float opacity_ = layerOpacity * mixExternalOpacity(vColor.a * opacity, texColor.a, vcolorExt.a, int(colorMixMode));`:E`
|
|
71
71
|
vec3 albedo_ = mixExternalColor(matColor, texColor.rgb, vcolorExt.rgb, int(colorMixMode));
|
|
72
72
|
float opacity_ = layerOpacity * mixExternalOpacity(opacity, texColor.a, vcolorExt.a, int(colorMixMode));
|
|
73
73
|
`}
|
|
74
|
-
${
|
|
75
|
-
mat3 tangentSpace = ${
|
|
74
|
+
${R.hasNormalTexture?E`
|
|
75
|
+
mat3 tangentSpace = ${R.hasVertexTangents?"computeTangentSpace(normal);":"computeTangentSpace(normal, vpos, vuv0);"}
|
|
76
76
|
vec3 shadedNormal = computeTextureNormal(tangentSpace, vuv0);`:"vec3 shadedNormal = normal;"}
|
|
77
|
-
${
|
|
78
|
-
${
|
|
77
|
+
${R.pbrMode===C.Normal||R.pbrMode===C.Schematic?R.spherical?E`vec3 normalGround = normalize(vpos + localOrigin);`:E`vec3 normalGround = vec3(0.0, 0.0, 1.0);`:E``}
|
|
78
|
+
${R.pbrMode===C.Normal||R.pbrMode===C.Schematic?E`
|
|
79
79
|
float additionalAmbientIrradiance = additionalAmbientIrradianceFactor * lightingMainIntensity[2];
|
|
80
80
|
vec3 shadedColor = evaluateSceneLightingPBR(shadedNormal, albedo_, shadow, 1.0 - ssao, additionalLight, shadingParams.viewDirection, normalGround, mrr, emission, additionalAmbientIrradiance);`:"vec3 shadedColor = evaluateSceneLighting(shadedNormal, albedo_, shadow, 1.0 - ssao, additionalLight);"}
|
|
81
81
|
gl_FragColor = highlightSlice(vec4(shadedColor, opacity_), vpos);
|
|
82
|
-
${
|
|
82
|
+
${R.transparencyPassType===I.Color?"gl_FragColor = premultiplyAlpha(gl_FragColor);":""}
|
|
83
83
|
}
|
|
84
|
-
`)),
|
|
84
|
+
`)),G.include(u,R),G}const G=Object.freeze(Object.defineProperty({__proto__:null,build:R},Symbol.toStringTag,{value:"Module"}));export{G as D,R as b};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
3
3
|
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
|
|
4
4
|
*/
|
|
5
|
-
import{
|
|
5
|
+
import{isSome as e}from"../core/maybe.js";import{c as o}from"./vec2.js";import{O as i,a as r}from"./vec2f64.js";import{Z as l}from"./vec4f64.js";import{DEFAULT_TEX_SIZE as t}from"../views/3d/layers/graphics/sdfPrimitives.js";import{ShaderOutput as s}from"../views/3d/webgl-engine/core/shaderLibrary/ShaderOutputOptions.js";import{Slice as a}from"../views/3d/webgl-engine/core/shaderLibrary/Slice.glsl.js";import{AlignPixel as n}from"../views/3d/webgl-engine/core/shaderLibrary/hud/AlignPixel.glsl.js";import{HUD as c}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUD.glsl.js";import{HUDOcclusionPass as d}from"../views/3d/webgl-engine/core/shaderLibrary/hud/HUDOcclusionPass.glsl.js";import{OutputHighlight as u}from"../views/3d/webgl-engine/core/shaderLibrary/output/OutputHighlight.glsl.js";import{VisualVariables as v,vvColorNumber as p}from"../views/3d/webgl-engine/core/shaderLibrary/shading/VisualVariables.glsl.js";import{symbolAlphaCutoff as f,defaultMaskAlphaCutoff as g}from"../views/3d/webgl-engine/core/shaderLibrary/util/AlphaDiscard.glsl.js";import{ColorConversion as m}from"../views/3d/webgl-engine/core/shaderLibrary/util/ColorConversion.glsl.js";import{RgbaFloatEncoding as b}from"../views/3d/webgl-engine/core/shaderLibrary/util/RgbaFloatEncoding.glsl.js";import{ScreenSizePerspective as h}from"../views/3d/webgl-engine/core/shaderLibrary/util/ScreenSizePerspective.glsl.js";import{Float2Uniform as w}from"../views/3d/webgl-engine/core/shaderModules/Float2Uniform.js";import{Float4sUniform as x}from"../views/3d/webgl-engine/core/shaderModules/Float4sUniform.js";import{Float4Uniform as C}from"../views/3d/webgl-engine/core/shaderModules/Float4Uniform.js";import{FloatsUniform as P}from"../views/3d/webgl-engine/core/shaderModules/FloatsUniform.js";import{FloatUniform as S}from"../views/3d/webgl-engine/core/shaderModules/FloatUniform.js";import{glsl as z}from"../views/3d/webgl-engine/core/shaderModules/interfaces.js";import{ShaderBuilder as j}from"../views/3d/webgl-engine/core/shaderModules/ShaderBuilder.js";import{Texture2DUniform as y}from"../views/3d/webgl-engine/core/shaderModules/Texture2DUniform.js";import{BindType as F}from"../views/3d/webgl-engine/core/shaderTechnique/BindType.js";import{TransparencyPassType as O}from"../views/3d/webgl-engine/lib/basicInterfaces.js";import{VertexAttribute as A}from"../views/3d/webgl-engine/lib/VertexAttribute.js";function $(o){const r=new j,l=o.signedDistanceFieldEnabled;if(r.include(n),r.include(c,o),r.include(a,o),o.output===s.Occlusion)return r.include(d,o),r;const{vertex:$,fragment:D}=r;r.include(h),D.include(b),D.include(m),r.include(v,o),r.varyings.add("vcolor","vec4"),r.varyings.add("vtc","vec2"),r.varyings.add("vsize","vec2"),o.binaryHighlightOcclusionEnabled&&r.varyings.add("voccluded","float"),$.uniforms.add(new C("viewport",F.Pass,((e,o)=>o.camera.fullViewport))),$.uniforms.add(new w("screenOffset")),$.uniforms.add(new w("anchorPosition")),$.uniforms.add(new C("materialColor")),$.uniforms.add(new S("pixelRatio",F.Pass,((e,o)=>o.camera.pixelRatio))),l&&$.uniforms.add(new C("outlineColor")),o.hasScreenSizePerspective&&$.uniforms.add(new C("screenSizePerspective")),(o.debugDrawLabelBorder||o.binaryHighlightOcclusionEnabled)&&r.varyings.add("debugBorderCoords","vec4"),r.attributes.add(A.UV0,"vec2"),r.attributes.add(A.COLOR,"vec4"),r.attributes.add(A.SIZE,"vec2"),r.attributes.add(A.AUXPOS2,"vec4"),$.code.add(z`
|
|
6
6
|
void main(void) {
|
|
7
7
|
ProjectHUDAux projectAux;
|
|
8
8
|
vec4 posProj = projectPositionHUD(projectAux);
|
|
@@ -13,60 +13,60 @@ import{c as e}from"./vec2.js";import{a as o}from"./vec2f64.js";import{Z as i}fro
|
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
15
|
vec2 inputSize;
|
|
16
|
-
${
|
|
16
|
+
${o.hasScreenSizePerspective?z`
|
|
17
17
|
inputSize = screenSizePerspectiveScaleVec2(size, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspective);
|
|
18
18
|
vec2 screenOffsetScaled = screenSizePerspectiveScaleVec2(screenOffset, projectAux.absCosAngle, projectAux.distanceToCamera, screenSizePerspectiveAlignment);
|
|
19
|
-
`:
|
|
19
|
+
`:z`
|
|
20
20
|
inputSize = size;
|
|
21
21
|
vec2 screenOffsetScaled = screenOffset;`}
|
|
22
22
|
|
|
23
|
-
${
|
|
23
|
+
${o.vvSize?"inputSize *= vvScale(auxpos2).xx;":""}
|
|
24
24
|
|
|
25
25
|
vec2 combinedSize = inputSize * pixelRatio;
|
|
26
26
|
vec4 quadOffset = vec4(0.0);
|
|
27
27
|
|
|
28
|
-
${
|
|
28
|
+
${o.occlusionTestEnabled||o.binaryHighlightOcclusionEnabled?"bool visible = testVisibilityHUD(posProj);":""}
|
|
29
29
|
|
|
30
|
-
${
|
|
31
|
-
`);const
|
|
30
|
+
${o.binaryHighlightOcclusionEnabled?"voccluded = visible ? 0.0 : 1.0;":""}
|
|
31
|
+
`);const U=z`vec2 uv01 = floor(uv0);
|
|
32
32
|
vec2 uv = uv0 - uv01;
|
|
33
|
-
quadOffset.xy = ((uv01 - anchorPosition) * 2.0 * combinedSize + screenOffsetScaled) / viewport.zw * posProj.w;`,
|
|
33
|
+
quadOffset.xy = ((uv01 - anchorPosition) * 2.0 * combinedSize + screenOffsetScaled) / viewport.zw * posProj.w;`,B=o.pixelSnappingEnabled?l?z`posProj = alignToPixelOrigin(posProj, viewport.zw) + quadOffset;`:z`posProj += quadOffset;
|
|
34
34
|
if (inputSize.x == size.x) {
|
|
35
35
|
posProj = alignToPixelOrigin(posProj, viewport.zw);
|
|
36
|
-
}`:
|
|
37
|
-
${
|
|
38
|
-
${
|
|
39
|
-
${
|
|
36
|
+
}`:z`posProj += quadOffset;`;o.vvColor&&$.uniforms.add([new x("vvColorColors",F.Pass,(e=>e.vvColorColors),p),new P("vvColorValues",F.Pass,(e=>e.vvColorValues),p)]),$.uniforms.add(new w("textureCoordinateScaleFactor",F.Pass,(o=>e(o.texture)&&e(o.texture.descriptor.textureCoordinateScaleFactor)?o.texture.descriptor.textureCoordinateScaleFactor:i))),$.code.add(z`
|
|
37
|
+
${o.occlusionTestEnabled?"if (visible) {":""}
|
|
38
|
+
${U}
|
|
39
|
+
${o.vvColor?"vcolor = vvGetColor(auxpos2, vvColorValues, vvColorColors) * materialColor;":"vcolor = color / 255.0 * materialColor;"}
|
|
40
40
|
|
|
41
|
-
bool alphaDiscard = vcolor.a < ${
|
|
42
|
-
${
|
|
41
|
+
bool alphaDiscard = vcolor.a < ${z.float(f)};
|
|
42
|
+
${l?`alphaDiscard = alphaDiscard && outlineColor.a < ${z.float(f)};`:""}
|
|
43
43
|
if (alphaDiscard) {
|
|
44
44
|
// "early discard" if both symbol color (= fill) and outline color (if applicable) are transparent
|
|
45
45
|
gl_Position = vec4(1e38, 1e38, 1e38, 1.0);
|
|
46
46
|
return;
|
|
47
47
|
} else {
|
|
48
|
-
${
|
|
48
|
+
${B}
|
|
49
49
|
gl_Position = posProj;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
vtc = uv * textureCoordinateScaleFactor;
|
|
53
53
|
|
|
54
|
-
${
|
|
54
|
+
${o.debugDrawLabelBorder?"debugBorderCoords = vec4(uv01, 1.5 / combinedSize);":""}
|
|
55
55
|
vsize = inputSize;
|
|
56
|
-
${
|
|
57
|
-
${
|
|
56
|
+
${o.occlusionTestEnabled?z`} else { vtc = vec2(0.0);
|
|
57
|
+
${o.debugDrawLabelBorder?"debugBorderCoords = vec4(0.5, 0.5, 1.5 / combinedSize);}":"}"}`:""}
|
|
58
58
|
}
|
|
59
|
-
`),
|
|
60
|
-
${
|
|
59
|
+
`),D.uniforms.add(new y("tex",F.Pass,(e=>e.texture))),l&&D.uniforms.add([new C("outlineColor"),new S("outlineSize")]);const _=o.debugDrawLabelBorder?z`(isBorder > 0.0 ? 0.0 : ${z.float(g)})`:z.float(g),L=z`
|
|
60
|
+
${o.debugDrawLabelBorder?z`
|
|
61
61
|
float isBorder = float(any(lessThan(debugBorderCoords.xy, debugBorderCoords.zw)) || any(greaterThan(debugBorderCoords.xy, 1.0 - debugBorderCoords.zw)));`:""}
|
|
62
62
|
|
|
63
|
-
${
|
|
63
|
+
${l?z`
|
|
64
64
|
vec4 fillPixelColor = vcolor;
|
|
65
65
|
|
|
66
66
|
// Attempt to sample texel centers to avoid that thin cross outlines
|
|
67
67
|
// disappear with large symbol sizes.
|
|
68
68
|
// see: https://devtopia.esri.com/WebGIS/arcgis-js-api/issues/7058#issuecomment-603041
|
|
69
|
-
const float txSize = ${
|
|
69
|
+
const float txSize = ${z.float(t)};
|
|
70
70
|
const float texelSize = 1.0 / txSize;
|
|
71
71
|
// Calculate how much we have to add/subtract to/from each texel to reach the size of an onscreen pixel
|
|
72
72
|
vec2 scaleFactor = (vsize - txSize) * texelSize;
|
|
@@ -91,8 +91,8 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
|
|
|
91
91
|
outlinePixelColor.a *= outlineAlphaFactor;
|
|
92
92
|
|
|
93
93
|
if (
|
|
94
|
-
outlineAlphaFactor + fillAlphaFactor < ${
|
|
95
|
-
fillPixelColor.a + outlinePixelColor.a < ${
|
|
94
|
+
outlineAlphaFactor + fillAlphaFactor < ${_} ||
|
|
95
|
+
fillPixelColor.a + outlinePixelColor.a < ${z.float(f)}
|
|
96
96
|
) {
|
|
97
97
|
discard;
|
|
98
98
|
}
|
|
@@ -104,7 +104,7 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
|
|
|
104
104
|
|
|
105
105
|
gl_FragColor = vec4(compositeColor, compositeAlpha);
|
|
106
106
|
} else {
|
|
107
|
-
if (fillAlphaFactor < ${
|
|
107
|
+
if (fillAlphaFactor < ${_}) {
|
|
108
108
|
discard;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -113,34 +113,34 @@ posProj = alignToPixelOrigin(posProj, viewport.zw);
|
|
|
113
113
|
|
|
114
114
|
// visualize SDF:
|
|
115
115
|
// gl_FragColor = vec4(clamp(-dist/vsize.x*2.0, 0.0, 1.0), clamp(dist/vsize.x*2.0, 0.0, 1.0), 0.0, 1.0);
|
|
116
|
-
`:
|
|
116
|
+
`:z`
|
|
117
117
|
vec4 texColor = texture2D(tex, vtc, -0.5);
|
|
118
|
-
if (texColor.a < ${
|
|
118
|
+
if (texColor.a < ${_}) {
|
|
119
119
|
discard;
|
|
120
120
|
}
|
|
121
121
|
gl_FragColor = texColor * premultiplyAlpha(vcolor);
|
|
122
122
|
`}
|
|
123
123
|
|
|
124
124
|
// Draw debug border with transparency, so that original texels along border are still partially visible
|
|
125
|
-
${
|
|
126
|
-
`;return
|
|
125
|
+
${o.debugDrawLabelBorder?z`gl_FragColor = mix(gl_FragColor, vec4(1.0, 0.0, 1.0, 1.0), isBorder * 0.5);`:""}
|
|
126
|
+
`;return o.output===s.Alpha&&D.code.add(z`
|
|
127
127
|
void main() {
|
|
128
|
-
${
|
|
128
|
+
${L}
|
|
129
129
|
gl_FragColor = vec4(gl_FragColor.a);
|
|
130
130
|
}
|
|
131
|
-
`),
|
|
131
|
+
`),o.output===s.Color&&D.code.add(z`
|
|
132
132
|
void main() {
|
|
133
|
-
${
|
|
134
|
-
${
|
|
133
|
+
${L}
|
|
134
|
+
${o.transparencyPassType===O.FrontFace?"gl_FragColor.rgb /= gl_FragColor.a;":""}
|
|
135
135
|
}
|
|
136
|
-
`),
|
|
136
|
+
`),o.output===s.Highlight&&(r.include(u),D.code.add(z`
|
|
137
137
|
void main() {
|
|
138
|
-
${
|
|
139
|
-
${
|
|
138
|
+
${L}
|
|
139
|
+
${o.binaryHighlightOcclusionEnabled?z`
|
|
140
140
|
if (voccluded == 1.0) {
|
|
141
141
|
gl_FragColor = vec4(1.0, 1.0, 0.0, 1.0);
|
|
142
142
|
} else {
|
|
143
143
|
gl_FragColor = vec4(1.0, 0.0, 1.0, 1.0);
|
|
144
144
|
}`:"outputHighlight();"}
|
|
145
145
|
}
|
|
146
|
-
`)),
|
|
146
|
+
`)),r}function D(e,o,i){e.setUniform4fv("materialColor",o.color),o.textureIsSignedDistanceField&&(o.outlineColor[3]<=0||o.outlineSize<=0?(e.setUniform4fv("outlineColor",l),e.setUniform1f("outlineSize",0)):(e.setUniform4fv("outlineColor",o.outlineColor),e.setUniform1f("outlineSize",o.outlineSize))),e.setUniform2f("screenOffset",2*o.screenOffset[0]*i,2*o.screenOffset[1]*i),e.setUniform2fv("anchorPosition",U(o))}function U(e,i=_){return e.textureIsSignedDistanceField?B(e.anchorPosition,e.distanceFieldBoundingBox,i):o(i,e.anchorPosition),i}function B(e,o,i){i[0]=e[0]*(o[2]-o[0])+o[0],i[1]=e[1]*(o[3]-o[1])+o[1]}const _=r(),L=Object.freeze(Object.defineProperty({__proto__:null,build:$,bindHUDMaterialUniforms:D,calculateAnchorPosForRendering:U},Symbol.toStringTag,{value:"Module"}));export{L as H,$ as a,D as b,U as c};
|