@arcgis/core 4.28.0-rc.2 → 4.28.0-rc.4
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/arcade/ArcadeDate.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/{0e354096ad8817971eed.js → 02d235849ba93541d7ad.js} +1 -1
- package/assets/esri/core/workers/chunks/0422c5160491fbcf01dc.js +1 -0
- package/assets/esri/core/workers/chunks/1da721608993783dc9cf.js +1 -0
- package/assets/esri/core/workers/chunks/224e79f6c172da444e0a.js +1 -0
- package/assets/esri/core/workers/chunks/{ca3d5803cdf035d7389d.js → 30776102fbab294bfe7b.js} +1 -1
- package/assets/esri/core/workers/chunks/{61dec8399919b278b636.js → 3ac9001b19a90faf5573.js} +1 -1
- package/assets/esri/core/workers/chunks/{fa6103e3d4e857b0035b.js → 3dcb2a82e1e4b520c9c9.js} +11 -8
- package/assets/esri/core/workers/chunks/41081c921037e543a22f.js +1 -0
- package/assets/esri/core/workers/chunks/4564a7885d045a850887.js +1 -0
- package/assets/esri/core/workers/chunks/4adf3a8c6b49c381a633.js +1 -0
- package/assets/esri/core/workers/chunks/{2721aa6b6941b28b9758.js → 63c8bf00120a4e67f5b0.js} +1 -1
- package/assets/esri/core/workers/chunks/6bc1f6f8a2408fa4bb6a.js +1 -0
- package/assets/esri/core/workers/chunks/74951370a341f02d3714.js +1 -0
- package/assets/esri/core/workers/chunks/78e49a70193e5adea17c.js +1 -0
- package/assets/esri/core/workers/chunks/7b8377b3a9f78f9d3613.js +1 -0
- package/assets/esri/core/workers/chunks/{fd28400141a6751327ae.js → 7cf7f2b991a7cbdad2ce.js} +1 -1
- package/assets/esri/core/workers/chunks/830d99e6c58a52a58973.js +1 -0
- package/assets/esri/core/workers/chunks/{1a723bb4a341f645e5fe.js → 83b8141f0c80e3448012.js} +1 -1
- package/assets/esri/core/workers/chunks/8f7997e8e6ee9e56239f.js +1 -0
- package/assets/esri/core/workers/chunks/934c32c49bb9e21482fd.js +1 -0
- package/assets/esri/core/workers/chunks/{a4341ec0fe89b865d849.js → a160576f21ada91995ac.js} +1 -1
- package/assets/esri/core/workers/chunks/a1e16c33f1843dbdce26.js +1 -0
- package/assets/esri/core/workers/chunks/{d07235ce2765a25b9be4.js → a50ec5b647a160199cb2.js} +1 -1
- package/assets/esri/core/workers/chunks/b6bd31674076e543d8b2.js +1 -0
- package/assets/esri/core/workers/chunks/{77923afde29ae1ff10ca.js → b6e86e179f99b5cf8dff.js} +1 -1
- package/assets/esri/core/workers/chunks/c3ddf5dbc34f118002df.js +1 -0
- package/assets/esri/core/workers/chunks/{562eafa5090827ebb7ec.js → c87e9280681c20d042b5.js} +1 -1
- package/assets/esri/core/workers/chunks/{7b3d5f044c96e2c2af11.js → d191267d91a53db42956.js} +1 -1
- package/assets/esri/core/workers/chunks/ffa330a19a09679212fb.js +1 -0
- package/assets/esri/themes/base/widgets/_BasemapGallery.scss +9 -13
- package/assets/esri/themes/base/widgets/_Features.scss +5 -0
- package/assets/esri/themes/base/widgets/_Legend.scss +1 -1
- package/assets/esri/themes/base/widgets/_Popup.scss +0 -1
- package/assets/esri/themes/base/widgets/_TimeZoneLabel.scss +3 -3
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/interfaces.d.ts +1506 -314
- package/intl/date.js +1 -1
- package/kernel.js +1 -1
- package/layers/FeatureLayer.js +1 -1
- package/layers/GroupLayer.js +1 -1
- package/layers/OrientedImageryLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/data/QueryEngineResult.js +1 -1
- package/layers/graphics/data/queryValidationUtils.js +1 -1
- package/layers/mixins/ArcGISMapService.js +1 -1
- package/layers/save/groupLayerUtils.js +1 -1
- package/layers/save/utils.js +1 -1
- package/layers/support/ImageElement.js +1 -1
- package/layers/support/LayerContingentValuesCache.js +1 -1
- package/layers/support/Sublayer.js +1 -1
- package/layers/support/Subtype.d.ts +4 -0
- package/layers/support/Subtype.js +1 -1
- package/layers/support/imageryRendererUtils.js +1 -1
- package/networks/Network.js +1 -1
- package/package.json +1 -1
- package/portal/support/jsonContext.js +1 -1
- package/portal/support/layersLoader.js +1 -1
- package/rest/featureService/FeatureService.d.ts +4 -0
- package/rest/featureService/FeatureService.js +1 -1
- package/rest/featureService/utils.d.ts +4 -0
- package/rest/query/operations/query.js +1 -1
- package/smartMapping/support/utils.js +1 -1
- package/statistics/utils.js +1 -1
- package/support/basemapUtils.js +1 -1
- package/support/revision.js +1 -1
- package/versionManagement/VersionManagementService.d.ts +4 -0
- package/versionManagement/VersionManagementService.js +1 -1
- package/views/2d/engine/Container.js +1 -1
- package/views/2d/engine/vectorTiles/VTLPainter3D.js +1 -1
- package/views/2d/engine/webgl/Overlay.js +1 -1
- package/views/2d/input/handlers/KeyPan.js +1 -1
- package/views/2d/interactive/editingTools/manipulations/DragManipulation.js +1 -1
- package/views/2d/layers/FeatureLayerView2D.js +1 -1
- package/views/3d/analysis/Slice/RotateManipulator.js +1 -1
- package/views/3d/analysis/Slice/ShiftManipulator.js +1 -1
- package/views/3d/interactive/editingTools/transformGraphic/ExtentTransformTool.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DView.js +1 -1
- package/views/3d/interactive/visualElements/LineVisualElement.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/MediaLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/graphics/Graphics3DMeshFillSymbolLayer.js +1 -1
- package/views/3d/layers/graphics/defaultSymbolComplexity.js +1 -1
- package/views/3d/layers/graphics/elevationAlignPointsInFeatures.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/support/MemoryController.js +1 -1
- package/views/3d/support/PBFDecoder.js +1 -1
- package/views/3d/support/ResourceController.js +1 -1
- package/views/3d/terrain/OverlayFramebufferObject.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/core/FBOPool.js +5 -0
- package/views/3d/webgl-engine/core/shaderLibrary/attributes/InstancedDoublePrecision.glsl.js +9 -6
- package/views/3d/webgl-engine/core/shaderLibrary/shading/EvaluateSceneLighting.glsl.js +2 -2
- package/views/3d/webgl-engine/effects/highlight/Highlight.js +1 -1
- package/views/3d/webgl-engine/effects/ssao/SSAO.js +1 -1
- package/views/3d/webgl-engine/lib/Camera.js +1 -1
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/lib/Renderer.js +1 -1
- package/views/3d/webgl-engine/lib/Texture.js +1 -1
- package/views/3d/webgl-engine/lib/textureUtils.js +1 -1
- package/views/3d/webgl-engine/materials/RibbonLineMaterial.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/sources/edgeRenderer/EdgeUtil.glsl.js +1 -1
- package/views/draw/DrawOperation.js +1 -1
- package/views/draw/support/Reshape.js +1 -1
- package/views/interactive/sketch/constraints.js +1 -1
- package/views/interactive/snapping/FeatureSnappingEngine.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureCollectionSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/FeatureServiceSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/GraphicsSnappingSource.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorker.js +1 -1
- package/views/interactive/snapping/featureSources/featureServiceSource/FeatureServiceSnappingSourceWorkerHandle.js +1 -1
- package/views/interactive/snapping/featureSources/queryEngineUtils.js +1 -1
- package/views/interactive/snapping/featureSources/snappingCandidateElevationAlignment.js +1 -1
- package/webdoc/support/writeUtils.js +1 -1
- package/widgets/BasemapGallery.js +1 -1
- package/widgets/DirectionalPad.js +1 -1
- package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
- package/widgets/Editor/EditorViewModel.js +1 -1
- package/widgets/Editor/UpdateRecordWorkflow.js +1 -1
- package/widgets/Editor/UpdateWorkflow.js +1 -1
- package/widgets/Editor/VisibleElements.js +1 -1
- package/widgets/Editor/workflowUtils.js +1 -1
- package/widgets/Editor.js +1 -1
- package/widgets/FeatureForm/FieldInput.js +1 -1
- package/widgets/FeatureForm/FormExpressionsManager.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.d.ts +4 -0
- package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
- package/widgets/OrientedImageryViewer.js +1 -1
- package/widgets/TimeSlider.js +1 -1
- package/widgets/TimeZoneLabel.js +1 -1
- package/widgets/UtilityNetworkTrace/UtilityNetworkTraceViewModel.js +1 -1
- package/widgets/UtilityNetworkTrace.js +1 -1
- package/widgets/support/dateUtils.js +1 -1
- package/assets/esri/core/workers/chunks/00da3c16741a9bc47f3a.js +0 -1
- package/assets/esri/core/workers/chunks/0e4646d14fa0775bf463.js +0 -1
- package/assets/esri/core/workers/chunks/4e0bf30da4281070e453.js +0 -1
- package/assets/esri/core/workers/chunks/51b8913dff24e693bd25.js +0 -1
- package/assets/esri/core/workers/chunks/5e907ec0ee1565b5fbbc.js +0 -1
- package/assets/esri/core/workers/chunks/7388fd97e7b1a2142744.js +0 -1
- package/assets/esri/core/workers/chunks/7648f3341b7dff2825c3.js +0 -1
- package/assets/esri/core/workers/chunks/92d8f75e616afa5c761e.js +0 -1
- package/assets/esri/core/workers/chunks/9c77d69a13ec22cdd760.js +0 -1
- package/assets/esri/core/workers/chunks/a821fa1870b83fed5d31.js +0 -1
- package/assets/esri/core/workers/chunks/a877a4826cd6a46ec99b.js +0 -1
- package/assets/esri/core/workers/chunks/b251d8a856dc8b9406e0.js +0 -1
- package/assets/esri/core/workers/chunks/c416df0668f6c596095f.js +0 -1
- package/assets/esri/core/workers/chunks/d8c696da42f8f8919b83.js +0 -1
- package/assets/esri/core/workers/chunks/f0d342303fc20e266d27.js +0 -1
- package/assets/esri/core/workers/chunks/fac3e57784d7f37053af.js +0 -1
- package/assets/esri/core/workers/chunks/fc95b1a36ed68b851400.js +0 -1
- package/widgets/DirectionalPad/DirectionalPadViewModel.d.ts +0 -4
- package/widgets/DirectionalPad.d.ts +0 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412],{46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,s,a,c){return[t,e,n,r,i,o,s,a,c]}function o(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>o,f:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:o,fromValues:i},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>y,a:()=>w,b:()=>f,c:()=>p,d:()=>d,e:()=>_,f:()=>b,g:()=>s,i:()=>c,k:()=>h,m:()=>u,s:()=>o,t:()=>a,w:()=>l,y:()=>x,z:()=>S});var r=n(65617),i=n(46851);function o(t,e,n,r,i,o,s,a,c,u,l,f,h,d,p,y,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=c,t[8]=u,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=p,t[14]=y,t[15]=m,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const n=e[1],r=e[2],i=e[3],o=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],u=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],g=e[15],b=n*a-r*s,M=n*c-i*s,_=n*u-o*s,w=r*c-i*a,S=r*u-o*a,x=i*u-o*c,v=l*y-f*p,R=l*m-h*p,P=l*g-d*p,E=f*m-h*y,A=f*g-d*y,O=h*g-d*m;let B=b*O-M*A+_*E+w*P-S*R+x*v;return B?(B=1/B,t[0]=(a*O-c*A+u*E)*B,t[1]=(i*A-r*O-o*E)*B,t[2]=(y*x-m*S+g*w)*B,t[3]=(h*S-f*x-d*w)*B,t[4]=(c*P-s*O-u*R)*B,t[5]=(n*O-i*P+o*R)*B,t[6]=(m*_-p*x-g*M)*B,t[7]=(l*x-h*_+d*M)*B,t[8]=(s*A-a*P+u*v)*B,t[9]=(r*P-n*A-o*v)*B,t[10]=(p*S-y*_+g*b)*B,t[11]=(f*_-l*S-d*b)*B,t[12]=(a*R-s*E-c*v)*B,t[13]=(n*E-r*R+i*v)*B,t[14]=(y*M-p*w-m*b)*B,t[15]=(l*w-f*M+h*b)*B,t):null}function u(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],u=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],y=e[12],m=e[13],g=e[14],b=e[15];let M=n[0],_=n[1],w=n[2],S=n[3];return t[0]=M*r+_*a+w*f+S*y,t[1]=M*i+_*c+w*h+S*m,t[2]=M*o+_*u+w*d+S*g,t[3]=M*s+_*l+w*p+S*b,M=n[4],_=n[5],w=n[6],S=n[7],t[4]=M*r+_*a+w*f+S*y,t[5]=M*i+_*c+w*h+S*m,t[6]=M*o+_*u+w*d+S*g,t[7]=M*s+_*l+w*p+S*b,M=n[8],_=n[9],w=n[10],S=n[11],t[8]=M*r+_*a+w*f+S*y,t[9]=M*i+_*c+w*h+S*m,t[10]=M*o+_*u+w*d+S*g,t[11]=M*s+_*l+w*p+S*b,M=n[12],_=n[13],w=n[14],S=n[15],t[12]=M*r+_*a+w*f+S*y,t[13]=M*i+_*c+w*h+S*m,t[14]=M*o+_*u+w*d+S*g,t[15]=M*s+_*l+w*p+S*b,t}function l(t,e,n){const r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{const n=e[0],s=e[1],a=e[2],c=e[3],u=e[4],l=e[5],f=e[6],h=e[7],d=e[8],p=e[9],y=e[10],m=e[11];t[0]=n,t[1]=s,t[2]=a,t[3]=c,t[4]=u,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=p,t[10]=y,t[11]=m,t[12]=n*r+u*i+d*o+e[12],t[13]=s*r+l*i+p*o+e[13],t[14]=a*r+f*i+y*o+e[14],t[15]=c*r+h*i+m*o+e[15]}return t}function f(t,e,n){const r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function h(t,e,n,r){let o,s,a,c,u,l,f,h,d,p,y,m,g,b,M,_,w,S,x,v,R,P,E,A,O=r[0],B=r[1],C=r[2],T=Math.sqrt(O*O+B*B+C*C);return T<(0,i.g)()?null:(T=1/T,O*=T,B*=T,C*=T,o=Math.sin(n),s=Math.cos(n),a=1-s,c=e[0],u=e[1],l=e[2],f=e[3],h=e[4],d=e[5],p=e[6],y=e[7],m=e[8],g=e[9],b=e[10],M=e[11],_=O*O*a+s,w=B*O*a+C*o,S=C*O*a-B*o,x=O*B*a-C*o,v=B*B*a+s,R=C*B*a+O*o,P=O*C*a+B*o,E=B*C*a-O*o,A=C*C*a+s,t[0]=c*_+h*w+m*S,t[1]=u*_+d*w+g*S,t[2]=l*_+p*w+b*S,t[3]=f*_+y*w+M*S,t[4]=c*x+h*v+m*R,t[5]=u*x+d*v+g*R,t[6]=l*x+p*v+b*R,t[7]=f*x+y*v+M*R,t[8]=c*P+h*E+m*A,t[9]=u*P+d*E+g*A,t[10]=l*P+p*E+b*A,t[11]=f*P+y*E+M*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return s(t);let r,o,a,c=n[0],u=n[1],l=n[2],f=Math.sqrt(c*c+u*u+l*l);return f<(0,i.g)()?null:(f=1/f,c*=f,u*=f,l*=f,r=Math.sin(e),o=Math.cos(e),a=1-o,t[0]=c*c*a+o,t[1]=u*c*a+l*r,t[2]=l*c*a-u*r,t[3]=0,t[4]=c*u*a-l*r,t[5]=u*u*a+o,t[6]=l*u*a+c*r,t[7]=0,t[8]=c*l*a+u*r,t[9]=u*l*a-c*r,t[10]=l*l*a+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function y(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function m(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=r+r,c=i+i,u=o+o,l=r*a,f=r*c,h=r*u,d=i*c,p=i*u,y=o*u,m=s*a,g=s*c,b=s*u;return t[0]=1-(d+y),t[1]=f+b,t[2]=h-g,t[3]=0,t[4]=f-b,t[5]=1-(l+y),t[6]=p+m,t[7]=0,t[8]=h+g,t[9]=p-m,t[10]=1-(l+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const g=(0,r.c)();function b(t,e,n,r){const i=e[0],o=e[1],s=e[2],a=e[3],c=i+i,u=o+o,l=s+s,f=i*c,h=i*u,d=i*l,p=o*u,y=o*l,m=s*l,g=a*c,b=a*u,M=a*l,_=r[0],w=r[1],S=r[2];return t[0]=(1-(p+m))*_,t[1]=(h+M)*_,t[2]=(d-b)*_,t[3]=0,t[4]=(h-M)*w,t[5]=(1-(f+m))*w,t[6]=(y+g)*w,t[7]=0,t[8]=(d+b)*S,t[9]=(y-g)*S,t[10]=(1-(f+p))*S,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function w(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],y=t[12],m=t[13],g=t[14],b=t[15],M=e[0],_=e[1],w=e[2],S=e[3],x=e[4],v=e[5],R=e[6],P=e[7],E=e[8],A=e[9],O=e[10],B=e[11],C=e[12],T=e[13],N=e[14],j=e[15],I=(0,i.g)();return Math.abs(n-M)<=I*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-_)<=I*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(o-w)<=I*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-S)<=I*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(a-x)<=I*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(c-v)<=I*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(u-R)<=I*Math.max(1,Math.abs(u),Math.abs(R))&&Math.abs(l-P)<=I*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(f-E)<=I*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(h-A)<=I*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(d-O)<=I*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-B)<=I*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(y-C)<=I*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(m-T)<=I*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(g-N)<=I*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(b-j)<=I*Math.max(1,Math.abs(b),Math.abs(j))}function S(t){const e=(0,i.g)(),n=t[0],r=t[1],o=t[2],s=t[4],a=t[5],c=t[6],u=t[8],l=t[9],f=t[10];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(r*r+a*a+l*l))<=e&&Math.abs(1-(o*o+c*c+f*f))<=e}function x(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const v=u,R=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],u=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],g=e[15];return t[0]=a*(h*g-d*m)-f*(c*g-u*m)+y*(c*d-u*h),t[1]=-(r*(h*g-d*m)-f*(i*g-o*m)+y*(i*d-o*h)),t[2]=r*(c*g-u*m)-a*(i*g-o*m)+y*(i*u-o*c),t[3]=-(r*(c*d-u*h)-a*(i*d-o*h)+f*(i*u-o*c)),t[4]=-(s*(h*g-d*m)-l*(c*g-u*m)+p*(c*d-u*h)),t[5]=n*(h*g-d*m)-l*(i*g-o*m)+p*(i*d-o*h),t[6]=-(n*(c*g-u*m)-s*(i*g-o*m)+p*(i*u-o*c)),t[7]=n*(c*d-u*h)-s*(i*d-o*h)+l*(i*u-o*c),t[8]=s*(f*g-d*y)-l*(a*g-u*y)+p*(a*d-u*f),t[9]=-(n*(f*g-d*y)-l*(r*g-o*y)+p*(r*d-o*f)),t[10]=n*(a*g-u*y)-s*(r*g-o*y)+p*(r*u-o*a),t[11]=-(n*(a*d-u*f)-s*(r*d-o*f)+l*(r*u-o*a)),t[12]=-(s*(f*m-h*y)-l*(a*m-c*y)+p*(a*h-c*f)),t[13]=n*(f*m-h*y)-l*(r*m-i*y)+p*(r*h-i*f),t[14]=-(n*(a*m-c*y)-s*(r*m-i*y)+p*(r*c-i*a)),t[15]=n*(a*h-c*f)-s*(r*h-i*f)+l*(r*c-i*a),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],u=t[8],l=t[9],f=t[10],h=t[11],d=t[12],p=t[13],y=t[14],m=t[15];return(e*s-n*o)*(f*m-h*y)-(e*a-r*o)*(l*m-h*p)+(e*c-i*o)*(l*y-f*p)+(n*a-r*s)*(u*m-h*d)-(n*c-i*s)*(u*y-f*d)+(r*c-i*a)*(u*p-l*d)},equals:w,exactEquals:_,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,c=i+i,u=n*s,l=r*s,f=r*a,h=i*s,d=i*a,p=i*c,y=o*s,m=o*a,g=o*c;return t[0]=1-f-p,t[1]=l+g,t[2]=h-m,t[3]=0,t[4]=l-g,t[5]=1-u-p,t[6]=d+y,t[7]=0,t[8]=h+m,t[9]=d-y,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=g,r=-e[0],i=-e[1],o=-e[2],s=e[3],a=e[4],c=e[5],u=e[6],l=e[7],f=r*r+i*i+o*o+s*s;return f>0?(n[0]=2*(a*s+l*r+c*o-u*i)/f,n[1]=2*(c*s+l*i+u*r-a*o)/f,n[2]=2*(u*s+l*o+a*i-c*r)/f):(n[0]=2*(a*s+l*r+c*o-u*i),n[1]=2*(c*s+l*i+u*r-a*o),n[2]=2*(u*s+l*o+a*i-c*r)),m(t,e,n),t},fromRotation:p,fromRotationTranslation:m,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,n,r,i){const o=e[0],s=e[1],a=e[2],c=e[3],u=o+o,l=s+s,f=a+a,h=o*u,d=o*l,p=o*f,y=s*l,m=s*f,g=a*f,b=c*u,M=c*l,_=c*f,w=r[0],S=r[1],x=r[2],v=i[0],R=i[1],P=i[2],E=(1-(y+g))*w,A=(d+_)*w,O=(p-M)*w,B=(d-_)*S,C=(1-(h+g))*S,T=(m+b)*S,N=(p+M)*x,j=(m-b)*x,I=(1-(h+y))*x;return t[0]=E,t[1]=A,t[2]=O,t[3]=0,t[4]=B,t[5]=C,t[6]=T,t[7]=0,t[8]=N,t[9]=j,t[10]=I,t[11]=0,t[12]=n[0]+v-(E*v+B*R+N*P),t[13]=n[1]+R-(A*v+C*R+j*P),t[14]=n[2]+P-(O*v+T*R+I*P),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:y,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,i,o,s){const a=1/(n-e),c=1/(i-r),u=1/(o-s);return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*c,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*c,t[10]=(s+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*u,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],c=e[8],u=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+s*s+a*a),t[2]=Math.sqrt(c*c+u*u+l*l),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:x,identity:s,invert:c,invertOrIdentity:function(t,e){return c(t,e)||s(t),t},isOrthoNormal:S,lookAt:function(t,e,n,r){const o=e[0],a=e[1],c=e[2];let u=o-n[0],l=a-n[1],f=c-n[2];const h=(0,i.g)();if(Math.abs(u)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void s(t);let d=1/Math.sqrt(u*u+l*l+f*f);u*=d,l*=d,f*=d;const p=r[0],y=r[1],m=r[2];let g=y*f-m*l,b=m*u-p*f,M=p*l-y*u;d=Math.sqrt(g*g+b*b+M*M),d?(d=1/d,g*=d,b*=d,M*=d):(g=0,b=0,M=0);let _=l*M-f*b,w=f*g-u*M,S=u*b-l*g;d=Math.sqrt(_*_+w*w+S*S),d?(d=1/d,_*=d,w*=d,S*=d):(_=0,w=0,S=0),t[0]=g,t[1]=_,t[2]=u,t[3]=0,t[4]=b,t[5]=w,t[6]=l,t[7]=0,t[8]=M,t[9]=S,t[10]=f,t[11]=0,t[12]=-(g*o+b*a+M*c),t[13]=-(_*o+w*a+S*c),t[14]=-(u*o+l*a+f*c),t[15]=1},mul:v,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,o,s){const a=1/(e-n),c=1/(r-i),u=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*c,t[14]=(s+o)*u,t[15]=1,t},perspective:function(t,e,n,r,i){const o=1/Math.tan(e/2);let s;return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(s=1/(r-i),t[10]=(i+r)*s,t[14]=2*i*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),c=2/(s+a),u=2/(i+o);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(s-a)*c*.5,t[9]=(i-o)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:h,rotateX:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],c=e[7],u=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+u*r,t[5]=s*i+l*r,t[6]=a*i+f*r,t[7]=c*i+h*r,t[8]=u*i-o*r,t[9]=l*i-s*r,t[10]=f*i-a*r,t[11]=h*i-c*r,t},rotateY:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],u=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-u*r,t[1]=s*i-l*r,t[2]=a*i-f*r,t[3]=c*i-h*r,t[8]=o*r+u*i,t[9]=s*r+l*i,t[10]=a*r+f*i,t[11]=c*r+h*i,t},rotateZ:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],u=e[4],l=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+u*r,t[1]=s*i+l*r,t[2]=a*i+f*r,t[3]=c*i+h*r,t[4]=u*i-o*r,t[5]=l*i-s*r,t[6]=f*i-a*r,t[7]=h*i-c*r,t},scale:f,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:R,subtract:M,targetTo:function(t,e,n,r){const i=e[0],o=e[1],s=e[2],a=r[0],c=r[1],u=r[2];let l=i-n[0],f=o-n[1],h=s-n[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let p=c*h-u*f,y=u*l-a*h,m=a*f-c*l;return d=p*p+y*y+m*m,d>0&&(d=1/Math.sqrt(d),p*=d,y*=d,m*=d),t[0]=p,t[1]=y,t[2]=m,t[3]=0,t[4]=f*m-h*y,t[5]=h*p-l*m,t[6]=l*y-f*p,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},translate:l,transpose:a},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function o(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>r,b:()=>i,c:()=>o});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r,i,o,s,a,c,u,l,f,h,d,p,y){return[t,e,n,r,i,o,s,a,c,u,l,f,h,d,p,y]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}function o(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>r,b:()=>i,c:()=>o});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},8310:(t,e,n)=>{n.d(e,{a:()=>_,c:()=>m,g:()=>w,h:()=>M,j:()=>P,n:()=>N}),n(80442);var r=n(92604),i=n(22021),o=n(52138),s=n(17896),a=n(65617),c=n(98766),u=n(88669),l=n(46851),f=n(62155),h=n(78341),d=n(61277),p=n(12981);const y=m();function m(){return(0,u.c)()}const g=c.e,b=c.e;function M(t,e=m()){return(0,c.c)(e,t)}function _(t){return t[3]}function w(t){return t}function S(t,e,n){if(null==e)return!1;if(!v(t,e,x))return!1;let{t0:r,t1:i}=x;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(n){const{origin:t,direction:i}=e;n[0]=t[0]+i[0]*r,n[1]=t[1]+i[1]*r,n[2]=t[2]+i[2]*r}return!0}const x={t0:0,t1:0};function v(t,e,n){const{origin:r,direction:i}=e,o=R;o[0]=r[0]-t[0],o[1]=r[1]-t[1],o[2]=r[2]-t[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const a=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),c=a*a-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-t[3]*t[3]);if(c<0)return!1;const u=Math.sqrt(c);return n.t0=(-a-u)/(2*s),n.t1=(-a+u)/(2*s),!0}const R=(0,a.c)();function P(t,e){return S(t,e,null)}function E(t,e,n){const r=p.WM.get(),i=p.MP.get();(0,s.b)(r,e.origin,e.direction);const a=_(t);(0,s.b)(n,r,e.origin),(0,s.i)(n,n,1/(0,s.l)(n)*a);const c=O(t,e.origin),u=(0,d.EU)(e.origin,n);return(0,o.c)(i,u+c,r),(0,s.e)(n,n,i),n}function A(t,e,n){const r=(0,s.f)(p.WM.get(),e,t),i=(0,s.i)(p.WM.get(),r,t[3]/(0,s.l)(r));return(0,s.g)(n,i,t)}function O(t,e){const n=(0,s.f)(p.WM.get(),e,t),r=(0,s.l)(n),o=_(t),a=o+Math.abs(o-r);return(0,i.ZF)(o/a)}const B=(0,a.c)();function C(t,e,n,r){const o=(0,s.f)(B,e,t);switch(n){case f.R.X:{const t=(0,i.jE)(o,B)[2];return(0,s.s)(r,-Math.sin(t),Math.cos(t),0)}case f.R.Y:{const t=(0,i.jE)(o,B),e=t[1],n=t[2],a=Math.sin(e);return(0,s.s)(r,-a*Math.cos(n),-a*Math.sin(n),Math.cos(e))}case f.R.Z:return(0,s.n)(r,o);default:return}}function T(t,e){const n=(0,s.f)(j,e,t);return(0,s.l)(n)-t[3]}function N(t,e){const n=(0,s.a)(t,e),r=_(t);return n<=r*r}const j=(0,a.c)(),I=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:y,altitudeAt:T,angleToSilhouette:O,axisAt:C,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return S(t,e,n)?n:((0,h.JI)(e,t,n),A(t,n,n))},closestPointOnSilhouette:E,containsPoint:N,copy:M,create:m,distanceToSilhouette:function(t,e){const n=(0,s.f)(p.WM.get(),e,t),r=(0,s.m)(n),i=t[3]*t[3];return Math.sqrt(Math.abs(r-i))},elevate:function(t,e,n){return t!==n&&(0,s.c)(n,t),n[3]=t[3]+e,n},equals:b,exactEquals:g,fromCenterAndRadius:function(t,e){return(0,u.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,u.f)(t,e,n,r)},getCenter:w,getRadius:_,intersectLine:function(t,e,n){const r=(0,h.zk)(e,n);if(!v(t,r,x))return[];const{origin:i,direction:o}=r,{t0:c,t1:u}=x,f=e=>{const n=(0,a.c)();return(0,s.q)(n,i,o,e),A(t,n,n)};return Math.abs(c-u)<(0,l.g)()?[f(c)]:[f(c),f(u)]},intersectRay:S,intersectRayClosestSilhouette:function(t,e,n){if(S(t,e,n))return n;const r=E(t,e,p.WM.get());return(0,s.g)(n,e.origin,(0,s.i)(p.WM.get(),e.direction,(0,s.o)(e.origin,r)/(0,s.l)(e.direction))),n},intersectsRay:P,projectPoint:A,setAltitudeAt:function(t,e,n,r){const i=T(t,e),o=C(t,e,f.R.Z,j),a=(0,s.i)(j,o,n-i);return(0,s.g)(r,e,a)},setExtent:function(t,e,n){return r.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:M(t,n)},tmpSphere:I,union:function(t,e,n=m()){const r=(0,s.o)(t,e),i=t[3],o=e[3];return r+o<i?((0,c.c)(n,t),n):r+i<o?((0,c.c)(n,e),n):((0,s.p)(n,t,e,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function i(t,e){return[t,e]}function o(t,e){return new Float64Array(t,e,2)}function s(){return i(1,1)}function a(){return i(1,0)}function c(){return i(0,1)}n.d(e,{a:()=>r,c:()=>o,f:()=>i});const u=s(),l=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:o,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},20773:(t,e,n)=>{n.d(e,{a:()=>a,b:()=>s,c:()=>i,d:()=>l,e:()=>c,n:()=>f,s:()=>u,t:()=>o});var r=n(72220);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return r.c.error("source and destination buffers need to have the same number of elements"),t;const s=t.length/i,a=n[0],c=n[1],u=n[2],l=n[4],f=n[5],h=n[6],d=n[8],p=n[9],y=n[10],m=n[12],g=n[13],b=n[14];let M=0,_=0;for(let n=0;n<s;n++){const n=e[M],r=e[M+1],s=e[M+2];t[_]=a*n+l*r+d*s+m,t[_+1]=c*n+f*r+p*s+g,t[_+2]=u*n+h*r+y*s+b,M+=o,_+=i}return t}function s(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return void r.c.error("source and destination buffers need to have the same number of elements");const s=t.length/i,a=n[0],c=n[1],u=n[2],l=n[3],f=n[4],h=n[5],d=n[6],p=n[7],y=n[8];let m=0,g=0;for(let n=0;n<s;n++){const n=e[m],r=e[m+1],s=e[m+2];t[g]=a*n+l*r+d*s,t[g+1]=c*n+f*r+p*s,t[g+2]=u*n+h*r+y*s,m+=o,g+=i}}function c(t,e,n){u(t.typedBuffer,e,n,t.typedBufferStride)}function u(t,e,n,r=3){const i=Math.min(t.length/r,e.count),o=e.typedBuffer,s=e.typedBufferStride;let a=0,c=0;for(let e=0;e<i;e++)t[c]=n*o[a],t[c+1]=n*o[a+1],t[c+2]=n*o[a+2],a+=s,c+=r}function l(t,e){f(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n=3,r=n){const i=Math.min(t.length/n,e.length/r);let o=0,s=0;for(let a=0;a<i;a++){const i=e[o],a=e[o+1],c=e[o+2],u=i*i+a*a+c*c;if(u>0){const e=1/Math.sqrt(u);t[s]=e*i,t[s+1]=e*a,t[s+2]=e*c}o+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:u,scaleView:c,shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride;let c=0,u=0;for(let t=0;t<r;t++)i[u]=s[c]>>n,i[u+1]=s[c+1]>>n,i[u+2]=s[c+2]>>n,c+=a,u+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:i},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function r(){return[0,0,0,0]}function i(t,e,n,r){return[t,e,n,r]}function o(t,e){return new Float64Array(t,e,4)}function s(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function c(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}n.d(e,{a:()=>o,c:()=>r,f:()=>i});const f=s(),h=a(),d=c(),p=u(),y=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:y,UNIT_X:h,UNIT_Y:d,UNIT_Z:p,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:o,fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitW:l,unitX:a,unitY:c,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},2368:(t,e,n)=>{n.d(e,{J:()=>l,j:()=>f});var r=n(43697),i=n(92036),o=(n(80442),n(22974)),s=(n(92604),n(70586)),a=n(31263),c=n(1153),u=n(52011);const l=t=>{let e=class extends t{clone(){const t=(0,c.vw)(this);(0,s.O3)(t,"unable to clone instance of non-accessor class");const e=t.metadatas,n=t.store,r={},i=new Map;for(const t in e){const s=e[t],c=n?.originOf(t),u=s.clonable;if(s.readOnly||!1===u||c!==a.s3.USER&&c!==a.s3.DEFAULTS&&c!==a.s3.WEB_MAP&&c!==a.s3.WEB_SCENE)continue;const l=this[t];let f=null;f="function"==typeof u?u(l):"reference"===u?l:(0,o.Vo)(l),null!=l&&null==f||(c===a.s3.DEFAULTS?i.set(t,f):r[t]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,c.vw)(u)?.store;if(t)for(const[e,n]of i)t.set(e,n,a.s3.DEFAULTS)}return u}};return e=(0,r._)([(0,u.j)("esri.core.Clonable")],e),e};let f=class extends(l(i.Z)){};f=(0,r._)([(0,u.j)("esri.core.Clonable")],f)},22807:(t,e,n)=>{n.d(e,{x:()=>i});var r=n(41213);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},90578:(t,e,n)=>{n.d(e,{p:()=>c});var r=n(75215),i=n(7628);const o=Object.prototype.toString;function s(t){const e="__accessorMetadata__"in t?(0,r.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,n,r){(0,i.Oe)(t,e).cast=r}function c(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===o.call(t[0])?s(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,n)=>{(0,i.Oe)(e,t).cast=e[n]}}(t[0]):void 0}},71715:(t,e,n)=>{n.d(e,{r:()=>i});var r=n(5600);function i(t,e,n){let i,o;return void 0===e||Array.isArray(e)?(o=t,n=e,i=[void 0]):(o=e,i=Array.isArray(t)?t:[t]),(t,e)=>{const s=t.constructor.prototype;i.forEach((i=>{const a=(0,r.CJ)(t,i,o);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=s[e],n&&(a.read.source=(a.read.source||[]).concat(n))}))}}},9361:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(43697),i=n(96674),o=n(5600),s=(n(75215),n(67676),n(80442),n(71715)),a=n(52011),c=n(82971);let u=class extends i.wq{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=c.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof c.Z)return t;if(null!=t){const n=new c.Z;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,r._)([(0,o.Cb)()],u.prototype,"type",void 0),(0,r._)([(0,o.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,o.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],u.prototype,"hasM",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],u.prototype,"hasZ",void 0),(0,r._)([(0,o.Cb)({type:c.Z,json:{write:!0},value:c.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,r._)([(0,s.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,r._)([(0,a.j)("esri.geometry.Geometry")],u);const l=u},94139:(t,e,n)=>{n.d(e,{Z:()=>M});var r,i=n(43697),o=n(92604),s=n(5600),a=n(90578),c=(n(67676),n(80442),n(71715)),u=n(52011),l=n(30556),f=n(75215),h=n(9361),d=n(82971),p=n(8744),y=n(40488);const m=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let b=r=class extends h.Z{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",Object.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,r,i){let s;if(Array.isArray(t))s=t,i=e,t=s[0],e=s[1],n=s[2],r=s[3];else if(t&&"object"==typeof t){if(s=t,t=null!=s.x?s.x:s.longitude,e=null!=s.y?s.y:s.latitude,n=s.z,r=s.m,(i=s.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new d.Z(i)),null!=s.longitude||null!=s.latitude)if(null==s.longitude)o.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==s.latitude)o.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!s.declaredClass&&i&&i.isWebMercator){const n=(0,y.hG)(s.longitude,s.latitude,m);t=n[0],e=n[1]}}else g(n)?(i=n,n=null):g(r)&&(i=r,r=null);const a={x:t,y:e};return null==a.x&&null!=a.y?o.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&o.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(a.spatialReference=i),null!=n&&(a.z=n),null!=r&&(a.m=r),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){const{spatialReference:t,x:e,y:n}=this;if(t){if(t.isWebMercator)return(0,y.R6)(e,n,m)[1];if(t.isGeographic)return n}return null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,y.hG)(n,t,m)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){const{x:t,y:e,spatialReference:n}=this;if(n){if(n.isWebMercator)return(0,y.R6)(t,e,m)[0];if(n.isGeographic)return t}return null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,y.hG)(t,e,m)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new r;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return r.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:r,m:i,spatialReference:o}=this,{z:s,m:a}=t;let{x:c,y:u,spatialReference:l}=t;if(!o.equals(l))if(o.isWebMercator&&l.isWGS84)[c,u]=(0,y.hG)(c,u),l=o;else{if(!o.isWGS84||!l.isWebMercator)return!1;[c,u]=(0,y.R6)(c,u),l=o}return e===c&&n===u&&r===s&&i===a&&o.wkid===l.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,p.C5)(this.spatialReference);if(!t)return this;let e=this.x;const[n,r]=t.valid,i=2*r;let o;return e>r?(o=Math.ceil(Math.abs(e-r)/i),e-=o*i):e<n&&(o=Math.ceil(Math.abs(e-n)/i),e+=o*i),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,r=t.y-e.y,i=t.hasZ&&e.hasZ?t.z-e.z:0;return Math.sqrt(n*n+r*r+i*i)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i._)([(0,s.Cb)({readOnly:!0})],b.prototype,"cache",null),(0,i._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,i._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,i._)([(0,s.Cb)({type:Number})],b.prototype,"latitude",null),(0,i._)([(0,s.Cb)({type:Number})],b.prototype,"longitude",null),(0,i._)([(0,s.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((t=>isNaN(t)?t:(0,f.q9)(t)))],b.prototype,"x",void 0),(0,i._)([(0,l.c)("x")],b.prototype,"writeX",null),(0,i._)([(0,c.r)("x")],b.prototype,"readX",null),(0,i._)([(0,s.Cb)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=r=(0,i._)([(0,u.j)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0;const M=b},62155:(t,e,n)=>{var r;n.d(e,{R:()=>r}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(r||(r={}))},83025:(t,e,n)=>{n.d(e,{JK:()=>a,QZ:()=>o,Rq:()=>s,bg:()=>i,mB:()=>c});var r=n(1533);function i(t,e=!1){return t<=r.c8?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function o(t){return((0,r.kJ)(t)?t.length:t.byteLength/8)<=r.c8?Array.from(t):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function c(t){return Array.isArray(t)?new Float64Array(t):t}},85872:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),u=n(65617),l=n(94139);let f=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,u.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new l.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,u.f)(t,e,n??0)}};(0,r._)([(0,a.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,r._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],f);const h=f},84555:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),u=n(65617),l=n(94139);let f=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,u.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new l.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,u.f)(t,e,n??0)}};(0,r._)([(0,a.J)({local:"local"},{readOnly:!0})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,r._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],f);const h=f},72220:(t,e,n)=>{n.d(e,{c:()=>r});const r=n(92604).Z.getLogger("esri.views.3d.support.buffer.math")},78341:(t,e,n)=>{n.d(e,{JI:()=>l,Ue:()=>s,re:()=>c,zk:()=>u}),n(67676);var r=n(22807),i=n(17896),o=n(65617);function s(t){return t?a((0,o.g)(t.origin),(0,o.g)(t.direction)):a((0,o.c)(),(0,o.c)())}function a(t,e){return{origin:t,direction:e}}function c(t,e){const n=f.get();return n.origin=t,n.direction=e,n}function u(t,e,n=s()){return(0,i.c)(n.origin,t),(0,i.f)(n.direction,e,t),n}function l(t,e,n){const r=(0,i.j)(t.direction,(0,i.f)(n,e,t.origin));return(0,i.g)(n,t.origin,(0,i.i)(n,t.direction,r)),n}n(12981);const f=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),i=n(17896),o=n(65617);function s(t,e){const n=(0,i.j)(t,e)/((0,i.l)(t)*(0,i.l)(e));return-(0,r.ZF)(n)}(0,o.c)(),(0,o.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>p,WM:()=>d});var r=n(91303),i=n(41213),o=n(46521),s=n(13598),a=n(94961),c=n(97323),u=n(65617),l=n(88669);class f{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,i.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=h){return new f(16,c.c,t)}static createVec3f64(t=h){return new f(24,u.a,t)}static createVec4f64(t=h){return new f(32,l.a,t)}static createMat3f64(t=h){return new f(72,o.c,t)}static createMat4f64(t=h){return new f(128,s.c,t)}static createQuatf64(t=h){return new f(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*r.Y.KILOBYTES,d=(f.createVec2f64(),f.createVec3f64()),p=(f.createVec4f64(),f.createMat3f64(),f.createMat4f64());f.createQuatf64()},40488:(t,e,n)=>{n.d(e,{$:()=>M,Q8:()=>y,R6:()=>b,Sx:()=>_,hG:()=>g,iV:()=>m,mZ:()=>f});var r=n(22974),i=n(82971),o=n(68441),s=n(8744);const a=57.29577951308232,c=.017453292519943;function u(t){return t*a}function l(t){return t*c}function f(t){return Math.PI/2-2*Math.atan(Math.exp(-t/o.sv.radius))}function h(t){return null!=t.wkid||null!=t.wkt}const d=[0,0];function p(t,e,n,r,i){const o=t,s=i;if(s.spatialReference=n,"x"in o&&"x"in s)[s.x,s.y]=e(o.x,o.y,d,r);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=e(o.xmin,o.ymin,d,r),[s.xmax,s.ymax]=e(o.xmax,o.ymax,d,r);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){const t="paths"in o?o.paths:o.rings,n=[];let i;for(let o=0;o<t.length;o++){const s=t[o];i=[],n.push(i);for(let t=0;t<s.length;t++)i.push(e(s[t][0],s[t][1],[0,0],r)),s[t].length>2&&i[t].push(s[t][2]),s[t].length>3&&i[t].push(s[t][3])}"paths"in s?s.paths=n:s.rings=n}else if("points"in o&&"points"in s){const t=o.points,n=[];for(let i=0;i<t.length;i++)n[i]=e(t[i][0],t[i][1],[0,0],r),t[i].length>2&&n[i].push(t[i][2]),t[i].length>3&&n[i].push(t[i][3]);s.points=n}return i}function y(t,e){const n=t&&(h(t)?t:t.spatialReference),r=e&&(h(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!r)&&(!!(0,s.fS)(r,n)||(0,s.sS)(r)&&(0,s.oR)(n)||(0,s.sS)(n)&&(0,s.oR)(r))}function m(t,e){if(null==t)return null;const n=t.spatialReference,o=e&&(h(e)?e:e.spatialReference);return y(n,o)?(0,s.fS)(n,o)?(0,r.d9)(t):(0,s.sS)(o)?p(t,g,i.Z.WebMercator,!1,(0,r.d9)(t)):(0,s.oR)(o)?p(t,b,i.Z.WGS84,!1,(0,r.d9)(t)):null:null}function g(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const r=l(e);return n[0]=l(t)*o.sv.radius,n[1]=o.sv.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function b(t,e,n=[0,0],r=!1){const i=u(t/o.sv.radius);return n[0]=r?i:i-360*Math.floor((i+180)/360),n[1]=u(Math.PI/2-2*Math.atan(Math.exp(-e/o.sv.radius))),n}function M(t,e=!1,n=(0,r.d9)(t)){return p(t,g,i.Z.WebMercator,e,n)}function _(t,e=!1,n=(0,r.d9)(t)){return p(t,b,i.Z.WGS84,e,n)}},31412:(t,e,n)=>{n.r(e),n.d(e,{destroyContext:()=>P,dracoDecompressPointCloudData:()=>_,filterObbsForModifications:()=>w,filterObbsForModificationsSync:()=>T,initialize:()=>I,interpretObbModificationResults:()=>C,process:()=>M,project:()=>v,setLegacySchema:()=>x,setModifications:()=>S,setModificationsSync:()=>O,test:()=>Z,transformNormals:()=>R});var r,i,o=n(82971),s=n(83025),a=n(85872),c=n(84555),u=n(20773);!function(t){t[t.None=0]="None",t[t.Int16=1]="Int16",t[t.Int32=2]="Int32"}(r||(r={})),function(t){t[t.Replace=0]="Replace",t[t.Outside=1]="Outside",t[t.Inside=2]="Inside",t[t.Finished=3]="Finished"}(i||(i={}));var l=n(99880);function f(t){return(0,l.V)(`esri/libs/i3s/${t}`)}let h;var d,p,y,m,g,b;async function M(t){A=await z();const e=[t.geometryBuffer];return{result:B(A,t,e),transferList:e}}async function _(t){A=await z();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=A._malloc(r),o=new Uint8Array(A.HEAPU8.buffer,i,r);o.set(new Uint8Array(n));const s=A.dracoDecompressPointCloudData(i,o.byteLength);if(A._free(i),s.error.length>0)throw new Error(`i3s.wasm: ${s.error}`);const a=s.featureIds?.length>0?s.featureIds.slice():null,c=s.positions.slice();return a&&e.push(a.buffer),e.push(c.buffer),{result:{positions:c,featureIds:a},transferList:e}}async function w(t){await z(),T(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function S(t){await z(),O(t)}async function x(t){A=await z(),A.setLegacySchema(t.context,t.jsonSchema)}async function v(t){const{localMatrix:e,origin:r,positions:i,vertexSpace:u}=t,l=o.Z.fromJSON(t.inSpatialReference),f=o.Z.fromJSON(t.outSpatialReference);let h;if("georeferenced"===u.type){const[{projectBuffer:t},{initializeProjection:e}]=await Promise.all([n.e(7360).then(n.bind(n,87360)),Promise.all([n.e(3615),n.e(3215),n.e(661)]).then(n.bind(n,73615))]);await e(l,f),h=new Float64Array(i.length),t(i,l,0,h,f,0,h.length/3)}else{const t="georeferencedRelative"===u.type?a.Z.fromJSON(u):c.Z.fromJSON(u),{project:r}=await Promise.all([n.e(3615),n.e(3215),n.e(6481),n.e(6459),n.e(5234)]).then(n.bind(n,66459));h=(0,s.mB)(r({positions:i,transform:e?{localMatrix:e}:void 0,vertexSpace:t,inSpatialReference:l,outSpatialReference:f}))}const d=h.length,[p,y,m]=r;for(let t=0;t<d;t+=3)h[t]-=p,h[t+1]-=y,h[t+2]-=m;return{result:{projected:h,original:i},transferList:[h.buffer,i.buffer]}}async function R({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,u.a)(n,e,t),(0,u.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function P(t){N(t)}let E,A;function O(t){if(!A)return;const e=t.modifications,n=A._malloc(8*e.length),r=new Float64Array(A.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];A.setModifications(t.context,n,e.length,t.isGeodetic),A._free(n)}function B(t,e,n){const{context:i,localOrigin:o,globalTrafo:s,mbs:a,obb:c,elevationOffset:u,geometryBuffer:l,geometryDescriptor:f,indexToVertexProjector:h,vertexToRenderProjector:d}=e,p=t._malloc(l.byteLength),y=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),m=new Uint8Array(t.HEAPU8.buffer,p,l.byteLength);m.set(new Uint8Array(l));const g=new Float64Array(t.HEAPU8.buffer,y,33);j(g,o);let b=g.byteOffset+3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b);j(M,s),b+=16*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),j(M,a),b+=4*g.BYTES_PER_ELEMENT,null!=c&&(M=new Float64Array(g.buffer,b),j(M,c.center),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),j(M,c.halfSize),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),j(M,c.quaternion));const _=f,w={isDraco:!1,isLegacy:!1,color:e.layouts.some((t=>t.some((t=>"color"===t.name)))),normal:e.needNormals&&e.layouts.some((t=>t.some((t=>"normalCompressed"===t.name)))),uv0:e.layouts.some((t=>t.some((t=>"uv0"===t.name)))),uvRegion:e.layouts.some((t=>t.some((t=>"uvRegion"===t.name)))),featureIndex:_.featureIndex},S=t.process(i,!!e.obb,p,m.byteLength,_,w,y,u,h,d,e.normalReferenceFrame);if(t._free(y),t._free(p),S.error.length>0)throw new Error(`i3s.wasm: ${S.error}`);if(S.discarded)return null;const x=S.componentOffsets.length>0?S.componentOffsets.slice():null,v=S.featureIds.length>0?S.featureIds.slice():null,R=S.anchorIds.length>0?Array.from(S.anchorIds):null,P=S.anchors.length>0?Array.from(S.anchors):null,E=S.interleavedVertedData.slice().buffer,A=S.indicesType===r.Int16?new Uint16Array(S.indices.buffer,S.indices.byteOffset,S.indices.byteLength/2).slice():new Uint32Array(S.indices.buffer,S.indices.byteOffset,S.indices.byteLength/4).slice(),O=S.positions.slice(),B=S.positionIndicesType===r.Int16?new Uint16Array(S.positionIndices.buffer,S.positionIndices.byteOffset,S.positionIndices.byteLength/2).slice():new Uint32Array(S.positionIndices.buffer,S.positionIndices.byteOffset,S.positionIndices.byteLength/4).slice(),C={layout:e.layouts[0],interleavedVertexData:E,indices:A,hasColors:S.hasColors,hasModifications:S.hasModifications,positionData:{data:O,indices:B}};return v&&n.push(v.buffer),x&&n.push(x.buffer),n.push(E),n.push(A.buffer),n.push(O.buffer),n.push(B.buffer),{componentOffsets:x,featureIds:v,anchorIds:R,anchors:P,transformedGeometry:C,obb:S.obb}}function C(t){return 0===t?p.Unmodified:1===t?p.PotentiallyModified:2===t?p.Culled:p.Unknown}function T(t){if(!A)return;const{context:e,buffer:n}=t,r=A._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,o=new Float64Array(A.HEAPU8.buffer,r,i),s=new Float64Array(n);o.set(s),A.filterOBBs(e,r,i),s.set(o),A._free(r)}function N(t){A&&0===A.destroy(t)&&(A=null)}function j(t,e){for(let n=0;n<e.length;++n)t[n]=e[n]}async function I(){A||await z()}function z(){return A?Promise.resolve(A):(E||(E=(h||(h=new Promise((t=>n.e(6710).then(n.bind(n,26710)).then((t=>t.i)).then((({default:e})=>{const n=e({locateFile:f,onRuntimeInitialized:()=>t(n)});delete n.then})))).catch((t=>{throw t}))),h).then((t=>(A=t,E=null,A)))),E)}n(8310),(b=d||(d={}))[b.Unmodified=0]="Unmodified",b[b.Culled=1]="Culled",b[b.NotChecked=2]="NotChecked",function(t){t[t.Unmodified=0]="Unmodified",t[t.PotentiallyModified=1]="PotentiallyModified",t[t.Culled=2]="Culled",t[t.Unknown=3]="Unknown",t[t.NotChecked=4]="NotChecked"}(p||(p={})),function(t){t[t.Unknown=0]="Unknown",t[t.Uncached=1]="Uncached",t[t.Cached=2]="Cached"}(y||(y={})),function(t){t[t.None=0]="None",t[t.MaxScreenThreshold=1]="MaxScreenThreshold",t[t.ScreenSpaceRelative=2]="ScreenSpaceRelative",t[t.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",t[t.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(m||(m={})),function(t){t[t.Hole=0]="Hole",t[t.Leaf=1]="Leaf"}(g||(g={}));const Z={transform:(t,e)=>A&&B(A,t,e),destroy:N}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1412],{46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,s,a,c){return[t,e,n,r,i,o,s,a,c]}function o(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>o,f:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:o,fromValues:i},Symbol.toStringTag,{value:"Module"}))},52138:(t,e,n)=>{n.d(e,{A:()=>y,a:()=>w,b:()=>f,c:()=>p,d:()=>d,e:()=>_,f:()=>b,g:()=>s,i:()=>c,k:()=>h,m:()=>u,s:()=>o,t:()=>a,w:()=>l,y:()=>x,z:()=>S});var r=n(65617),i=n(46851);function o(t,e,n,r,i,o,s,a,c,u,l,f,h,d,p,y,m){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=s,t[6]=a,t[7]=c,t[8]=u,t[9]=l,t[10]=f,t[11]=h,t[12]=d,t[13]=p,t[14]=y,t[15]=m,t}function s(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e){if(t===e){const n=e[1],r=e[2],i=e[3],o=e[6],s=e[7],a=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=s,t[14]=a}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function c(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],u=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],g=e[15],b=n*a-r*s,M=n*c-i*s,_=n*u-o*s,w=r*c-i*a,S=r*u-o*a,x=i*u-o*c,v=l*y-f*p,R=l*m-h*p,P=l*g-d*p,E=f*m-h*y,A=f*g-d*y,O=h*g-d*m;let B=b*O-M*A+_*E+w*P-S*R+x*v;return B?(B=1/B,t[0]=(a*O-c*A+u*E)*B,t[1]=(i*A-r*O-o*E)*B,t[2]=(y*x-m*S+g*w)*B,t[3]=(h*S-f*x-d*w)*B,t[4]=(c*P-s*O-u*R)*B,t[5]=(n*O-i*P+o*R)*B,t[6]=(m*_-p*x-g*M)*B,t[7]=(l*x-h*_+d*M)*B,t[8]=(s*A-a*P+u*v)*B,t[9]=(r*P-n*A-o*v)*B,t[10]=(p*S-y*_+g*b)*B,t[11]=(f*_-l*S-d*b)*B,t[12]=(a*R-s*E-c*v)*B,t[13]=(n*E-r*R+i*v)*B,t[14]=(y*M-p*w-m*b)*B,t[15]=(l*w-f*M+h*b)*B,t):null}function u(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=e[4],c=e[5],u=e[6],l=e[7],f=e[8],h=e[9],d=e[10],p=e[11],y=e[12],m=e[13],g=e[14],b=e[15];let M=n[0],_=n[1],w=n[2],S=n[3];return t[0]=M*r+_*a+w*f+S*y,t[1]=M*i+_*c+w*h+S*m,t[2]=M*o+_*u+w*d+S*g,t[3]=M*s+_*l+w*p+S*b,M=n[4],_=n[5],w=n[6],S=n[7],t[4]=M*r+_*a+w*f+S*y,t[5]=M*i+_*c+w*h+S*m,t[6]=M*o+_*u+w*d+S*g,t[7]=M*s+_*l+w*p+S*b,M=n[8],_=n[9],w=n[10],S=n[11],t[8]=M*r+_*a+w*f+S*y,t[9]=M*i+_*c+w*h+S*m,t[10]=M*o+_*u+w*d+S*g,t[11]=M*s+_*l+w*p+S*b,M=n[12],_=n[13],w=n[14],S=n[15],t[12]=M*r+_*a+w*f+S*y,t[13]=M*i+_*c+w*h+S*m,t[14]=M*o+_*u+w*d+S*g,t[15]=M*s+_*l+w*p+S*b,t}function l(t,e,n){const r=n[0],i=n[1],o=n[2];if(e===t)t[12]=e[0]*r+e[4]*i+e[8]*o+e[12],t[13]=e[1]*r+e[5]*i+e[9]*o+e[13],t[14]=e[2]*r+e[6]*i+e[10]*o+e[14],t[15]=e[3]*r+e[7]*i+e[11]*o+e[15];else{const n=e[0],s=e[1],a=e[2],c=e[3],u=e[4],l=e[5],f=e[6],h=e[7],d=e[8],p=e[9],y=e[10],m=e[11];t[0]=n,t[1]=s,t[2]=a,t[3]=c,t[4]=u,t[5]=l,t[6]=f,t[7]=h,t[8]=d,t[9]=p,t[10]=y,t[11]=m,t[12]=n*r+u*i+d*o+e[12],t[13]=s*r+l*i+p*o+e[13],t[14]=a*r+f*i+y*o+e[14],t[15]=c*r+h*i+m*o+e[15]}return t}function f(t,e,n){const r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function h(t,e,n,r){let o,s,a,c,u,l,f,h,d,p,y,m,g,b,M,_,w,S,x,v,R,P,E,A,O=r[0],B=r[1],C=r[2],T=Math.sqrt(O*O+B*B+C*C);return T<(0,i.g)()?null:(T=1/T,O*=T,B*=T,C*=T,o=Math.sin(n),s=Math.cos(n),a=1-s,c=e[0],u=e[1],l=e[2],f=e[3],h=e[4],d=e[5],p=e[6],y=e[7],m=e[8],g=e[9],b=e[10],M=e[11],_=O*O*a+s,w=B*O*a+C*o,S=C*O*a-B*o,x=O*B*a-C*o,v=B*B*a+s,R=C*B*a+O*o,P=O*C*a+B*o,E=B*C*a-O*o,A=C*C*a+s,t[0]=c*_+h*w+m*S,t[1]=u*_+d*w+g*S,t[2]=l*_+p*w+b*S,t[3]=f*_+y*w+M*S,t[4]=c*x+h*v+m*R,t[5]=u*x+d*v+g*R,t[6]=l*x+p*v+b*R,t[7]=f*x+y*v+M*R,t[8]=c*P+h*E+m*A,t[9]=u*P+d*E+g*A,t[10]=l*P+p*E+b*A,t[11]=f*P+y*E+M*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)}function d(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function p(t,e,n){if(0===e)return s(t);let r,o,a,c=n[0],u=n[1],l=n[2],f=Math.sqrt(c*c+u*u+l*l);return f<(0,i.g)()?null:(f=1/f,c*=f,u*=f,l*=f,r=Math.sin(e),o=Math.cos(e),a=1-o,t[0]=c*c*a+o,t[1]=u*c*a+l*r,t[2]=l*c*a-u*r,t[3]=0,t[4]=c*u*a-l*r,t[5]=u*u*a+o,t[6]=l*u*a+c*r,t[7]=0,t[8]=c*l*a+u*r,t[9]=u*l*a-c*r,t[10]=l*l*a+o,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)}function y(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function m(t,e,n){const r=e[0],i=e[1],o=e[2],s=e[3],a=r+r,c=i+i,u=o+o,l=r*a,f=r*c,h=r*u,d=i*c,p=i*u,y=o*u,m=s*a,g=s*c,b=s*u;return t[0]=1-(d+y),t[1]=f+b,t[2]=h-g,t[3]=0,t[4]=f-b,t[5]=1-(l+y),t[6]=p+m,t[7]=0,t[8]=h+g,t[9]=p-m,t[10]=1-(l+d),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}const g=(0,r.c)();function b(t,e,n,r){const i=e[0],o=e[1],s=e[2],a=e[3],c=i+i,u=o+o,l=s+s,f=i*c,h=i*u,d=i*l,p=o*u,y=o*l,m=s*l,g=a*c,b=a*u,M=a*l,_=r[0],w=r[1],S=r[2];return t[0]=(1-(p+m))*_,t[1]=(h+M)*_,t[2]=(d-b)*_,t[3]=0,t[4]=(h-M)*w,t[5]=(1-(f+m))*w,t[6]=(y+g)*w,t[7]=0,t[8]=(d+b)*S,t[9]=(y-g)*S,t[10]=(1-(f+p))*S,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function M(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function _(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function w(t,e){if(t===e)return!0;const n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],c=t[5],u=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],y=t[12],m=t[13],g=t[14],b=t[15],M=e[0],_=e[1],w=e[2],S=e[3],x=e[4],v=e[5],R=e[6],P=e[7],E=e[8],A=e[9],O=e[10],B=e[11],C=e[12],T=e[13],N=e[14],j=e[15],I=(0,i.g)();return Math.abs(n-M)<=I*Math.max(1,Math.abs(n),Math.abs(M))&&Math.abs(r-_)<=I*Math.max(1,Math.abs(r),Math.abs(_))&&Math.abs(o-w)<=I*Math.max(1,Math.abs(o),Math.abs(w))&&Math.abs(s-S)<=I*Math.max(1,Math.abs(s),Math.abs(S))&&Math.abs(a-x)<=I*Math.max(1,Math.abs(a),Math.abs(x))&&Math.abs(c-v)<=I*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(u-R)<=I*Math.max(1,Math.abs(u),Math.abs(R))&&Math.abs(l-P)<=I*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(f-E)<=I*Math.max(1,Math.abs(f),Math.abs(E))&&Math.abs(h-A)<=I*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(d-O)<=I*Math.max(1,Math.abs(d),Math.abs(O))&&Math.abs(p-B)<=I*Math.max(1,Math.abs(p),Math.abs(B))&&Math.abs(y-C)<=I*Math.max(1,Math.abs(y),Math.abs(C))&&Math.abs(m-T)<=I*Math.max(1,Math.abs(m),Math.abs(T))&&Math.abs(g-N)<=I*Math.max(1,Math.abs(g),Math.abs(N))&&Math.abs(b-j)<=I*Math.max(1,Math.abs(b),Math.abs(j))}function S(t){const e=(0,i.g)(),n=t[0],r=t[1],o=t[2],s=t[4],a=t[5],c=t[6],u=t[8],l=t[9],f=t[10];return Math.abs(1-(n*n+s*s+u*u))<=e&&Math.abs(1-(r*r+a*a+l*l))<=e&&Math.abs(1-(o*o+c*c+f*f))<=e}function x(t){return 1===t[0]&&0===t[1]&&0===t[2]&&0===t[4]&&1===t[5]&&0===t[6]&&0===t[8]&&0===t[9]&&1===t[10]}const v=u,R=M;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},adjoint:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=e[4],a=e[5],c=e[6],u=e[7],l=e[8],f=e[9],h=e[10],d=e[11],p=e[12],y=e[13],m=e[14],g=e[15];return t[0]=a*(h*g-d*m)-f*(c*g-u*m)+y*(c*d-u*h),t[1]=-(r*(h*g-d*m)-f*(i*g-o*m)+y*(i*d-o*h)),t[2]=r*(c*g-u*m)-a*(i*g-o*m)+y*(i*u-o*c),t[3]=-(r*(c*d-u*h)-a*(i*d-o*h)+f*(i*u-o*c)),t[4]=-(s*(h*g-d*m)-l*(c*g-u*m)+p*(c*d-u*h)),t[5]=n*(h*g-d*m)-l*(i*g-o*m)+p*(i*d-o*h),t[6]=-(n*(c*g-u*m)-s*(i*g-o*m)+p*(i*u-o*c)),t[7]=n*(c*d-u*h)-s*(i*d-o*h)+l*(i*u-o*c),t[8]=s*(f*g-d*y)-l*(a*g-u*y)+p*(a*d-u*f),t[9]=-(n*(f*g-d*y)-l*(r*g-o*y)+p*(r*d-o*f)),t[10]=n*(a*g-u*y)-s*(r*g-o*y)+p*(r*u-o*a),t[11]=-(n*(a*d-u*f)-s*(r*d-o*f)+l*(r*u-o*a)),t[12]=-(s*(f*m-h*y)-l*(a*m-c*y)+p*(a*h-c*f)),t[13]=n*(f*m-h*y)-l*(r*m-i*y)+p*(r*h-i*f),t[14]=-(n*(a*m-c*y)-s*(r*m-i*y)+p*(r*c-i*a)),t[15]=n*(a*h-c*f)-s*(r*h-i*f)+l*(r*c-i*a),t},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},determinant:function(t){const e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],c=t[7],u=t[8],l=t[9],f=t[10],h=t[11],d=t[12],p=t[13],y=t[14],m=t[15];return(e*s-n*o)*(f*m-h*y)-(e*a-r*o)*(l*m-h*p)+(e*c-i*o)*(l*y-f*p)+(n*a-r*s)*(u*m-h*d)-(n*c-i*s)*(u*y-f*d)+(r*c-i*a)*(u*p-l*d)},equals:w,exactEquals:_,frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2+t[9]**2+t[10]**2+t[11]**2+t[12]**2+t[13]**2+t[14]**2+t[15]**2)},fromQuat:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[3],s=n+n,a=r+r,c=i+i,u=n*s,l=r*s,f=r*a,h=i*s,d=i*a,p=i*c,y=o*s,m=o*a,g=o*c;return t[0]=1-f-p,t[1]=l+g,t[2]=h-m,t[3]=0,t[4]=l-g,t[5]=1-u-p,t[6]=d+y,t[7]=0,t[8]=h+m,t[9]=d-y,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromQuat2:function(t,e){const n=g,r=-e[0],i=-e[1],o=-e[2],s=e[3],a=e[4],c=e[5],u=e[6],l=e[7],f=r*r+i*i+o*o+s*s;return f>0?(n[0]=2*(a*s+l*r+c*o-u*i)/f,n[1]=2*(c*s+l*i+u*r-a*o)/f,n[2]=2*(u*s+l*o+a*i-c*r)/f):(n[0]=2*(a*s+l*r+c*o-u*i),n[1]=2*(c*s+l*i+u*r-a*o),n[2]=2*(u*s+l*o+a*i-c*r)),m(t,e,n),t},fromRotation:p,fromRotationTranslation:m,fromRotationTranslationScale:b,fromRotationTranslationScaleOrigin:function(t,e,n,r,i){const o=e[0],s=e[1],a=e[2],c=e[3],u=o+o,l=s+s,f=a+a,h=o*u,d=o*l,p=o*f,y=s*l,m=s*f,g=a*f,b=c*u,M=c*l,_=c*f,w=r[0],S=r[1],x=r[2],v=i[0],R=i[1],P=i[2],E=(1-(y+g))*w,A=(d+_)*w,O=(p-M)*w,B=(d-_)*S,C=(1-(h+g))*S,T=(m+b)*S,N=(p+M)*x,j=(m-b)*x,I=(1-(h+y))*x;return t[0]=E,t[1]=A,t[2]=O,t[3]=0,t[4]=B,t[5]=C,t[6]=T,t[7]=0,t[8]=N,t[9]=j,t[10]=I,t[11]=0,t[12]=n[0]+v-(E*v+B*R+N*P),t[13]=n[1]+R-(A*v+C*R+j*P),t[14]=n[2]+P-(O*v+T*R+I*P),t[15]=1,t},fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromTranslation:d,fromXRotation:y,fromYRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){const n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},frustum:function(t,e,n,r,i,o,s){const a=1/(n-e),c=1/(i-r),u=1/(o-s);return t[0]=2*o*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*c,t[6]=0,t[7]=0,t[8]=(n+e)*a,t[9]=(i+r)*c,t[10]=(s+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=s*o*2*u,t[15]=0,t},getRotation:function(t,e){const n=e[0]+e[5]+e[10];let r=0;return n>0?(r=2*Math.sqrt(n+1),t[3]=.25*r,t[0]=(e[6]-e[9])/r,t[1]=(e[8]-e[2])/r,t[2]=(e[1]-e[4])/r):e[0]>e[5]&&e[0]>e[10]?(r=2*Math.sqrt(1+e[0]-e[5]-e[10]),t[3]=(e[6]-e[9])/r,t[0]=.25*r,t[1]=(e[1]+e[4])/r,t[2]=(e[8]+e[2])/r):e[5]>e[10]?(r=2*Math.sqrt(1+e[5]-e[0]-e[10]),t[3]=(e[8]-e[2])/r,t[0]=(e[1]+e[4])/r,t[1]=.25*r,t[2]=(e[6]+e[9])/r):(r=2*Math.sqrt(1+e[10]-e[0]-e[5]),t[3]=(e[1]-e[4])/r,t[0]=(e[8]+e[2])/r,t[1]=(e[6]+e[9])/r,t[2]=.25*r),t},getScaling:function(t,e){const n=e[0],r=e[1],i=e[2],o=e[4],s=e[5],a=e[6],c=e[8],u=e[9],l=e[10];return t[0]=Math.sqrt(n*n+r*r+i*i),t[1]=Math.sqrt(o*o+s*s+a*a),t[2]=Math.sqrt(c*c+u*u+l*l),t},getTranslation:function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},hasIdentityRotation:x,identity:s,invert:c,invertOrIdentity:function(t,e){return c(t,e)||s(t),t},isOrthoNormal:S,lookAt:function(t,e,n,r){const o=e[0],a=e[1],c=e[2];let u=o-n[0],l=a-n[1],f=c-n[2];const h=(0,i.g)();if(Math.abs(u)<h&&Math.abs(l)<h&&Math.abs(f)<h)return void s(t);let d=1/Math.sqrt(u*u+l*l+f*f);u*=d,l*=d,f*=d;const p=r[0],y=r[1],m=r[2];let g=y*f-m*l,b=m*u-p*f,M=p*l-y*u;d=Math.sqrt(g*g+b*b+M*M),d?(d=1/d,g*=d,b*=d,M*=d):(g=0,b=0,M=0);let _=l*M-f*b,w=f*g-u*M,S=u*b-l*g;d=Math.sqrt(_*_+w*w+S*S),d?(d=1/d,_*=d,w*=d,S*=d):(_=0,w=0,S=0),t[0]=g,t[1]=_,t[2]=u,t[3]=0,t[4]=b,t[5]=w,t[6]=l,t[7]=0,t[8]=M,t[9]=S,t[10]=f,t[11]=0,t[12]=-(g*o+b*a+M*c),t[13]=-(_*o+w*a+S*c),t[14]=-(u*o+l*a+f*c),t[15]=1},mul:v,multiply:u,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},ortho:function(t,e,n,r,i,o,s){const a=1/(e-n),c=1/(r-i),u=1/(o-s);return t[0]=-2*a,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*c,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*a,t[13]=(i+r)*c,t[14]=(s+o)*u,t[15]=1,t},perspective:function(t,e,n,r,i){const o=1/Math.tan(e/2);let s;return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(s=1/(r-i),t[10]=(i+r)*s,t[14]=2*i*r*s):(t[10]=-1,t[14]=-2*r),t},perspectiveFromFieldOfView:function(t,e,n,r){const i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),s=Math.tan(e.leftDegrees*Math.PI/180),a=Math.tan(e.rightDegrees*Math.PI/180),c=2/(s+a),u=2/(i+o);return t[0]=c,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(s-a)*c*.5,t[9]=(i-o)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},rotate:h,rotateX:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),o=e[4],s=e[5],a=e[6],c=e[7],u=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=o*i+u*r,t[5]=s*i+l*r,t[6]=a*i+f*r,t[7]=c*i+h*r,t[8]=u*i-o*r,t[9]=l*i-s*r,t[10]=f*i-a*r,t[11]=h*i-c*r,t},rotateY:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],u=e[8],l=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i-u*r,t[1]=s*i-l*r,t[2]=a*i-f*r,t[3]=c*i-h*r,t[8]=o*r+u*i,t[9]=s*r+l*i,t[10]=a*r+f*i,t[11]=c*r+h*i,t},rotateZ:function(t,e,n){const r=Math.sin(n),i=Math.cos(n),o=e[0],s=e[1],a=e[2],c=e[3],u=e[4],l=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=o*i+u*r,t[1]=s*i+l*r,t[2]=a*i+f*r,t[3]=c*i+h*r,t[4]=u*i-o*r,t[5]=l*i-s*r,t[6]=f*i-a*r,t[7]=h*i-c*r,t},scale:f,set:o,str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},sub:R,subtract:M,targetTo:function(t,e,n,r){const i=e[0],o=e[1],s=e[2],a=r[0],c=r[1],u=r[2];let l=i-n[0],f=o-n[1],h=s-n[2],d=l*l+f*f+h*h;d>0&&(d=1/Math.sqrt(d),l*=d,f*=d,h*=d);let p=c*h-u*f,y=u*l-a*h,m=a*f-c*l;return d=p*p+y*y+m*m,d>0&&(d=1/Math.sqrt(d),p*=d,y*=d,m*=d),t[0]=p,t[1]=y,t[2]=m,t[3]=0,t[4]=f*m-h*y,t[5]=h*p-l*m,t[6]=l*y-f*p,t[7]=0,t[8]=l,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=o,t[14]=s,t[15]=1,t},translate:l,transpose:a},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function o(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>r,b:()=>i,c:()=>o});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r,i,o,s,a,c,u,l,f,h,d,p,y){return[t,e,n,r,i,o,s,a,c,u,l,f,h,d,p,y]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}function o(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>r,b:()=>i,c:()=>o});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},8310:(t,e,n)=>{n.d(e,{a:()=>_,c:()=>m,g:()=>w,h:()=>M,j:()=>P,n:()=>N}),n(80442);var r=n(92604),i=n(22021),o=n(52138),s=n(17896),a=n(65617),c=n(98766),u=n(88669),l=n(46851),f=n(62155),h=n(78341),d=n(61277),p=n(12981);const y=m();function m(){return(0,u.c)()}const g=c.e,b=c.e;function M(t,e=m()){return(0,c.c)(e,t)}function _(t){return t[3]}function w(t){return t}function S(t,e,n){if(null==e)return!1;if(!v(t,e,x))return!1;let{t0:r,t1:i}=x;if((r<0||i<r&&i>0)&&(r=i),r<0)return!1;if(n){const{origin:t,direction:i}=e;n[0]=t[0]+i[0]*r,n[1]=t[1]+i[1]*r,n[2]=t[2]+i[2]*r}return!0}const x={t0:0,t1:0};function v(t,e,n){const{origin:r,direction:i}=e,o=R;o[0]=r[0]-t[0],o[1]=r[1]-t[1],o[2]=r[2]-t[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const a=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),c=a*a-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-t[3]*t[3]);if(c<0)return!1;const u=Math.sqrt(c);return n.t0=(-a-u)/(2*s),n.t1=(-a+u)/(2*s),!0}const R=(0,a.c)();function P(t,e){return S(t,e,null)}function E(t,e,n){const r=p.WM.get(),i=p.MP.get();(0,s.b)(r,e.origin,e.direction);const a=_(t);(0,s.b)(n,r,e.origin),(0,s.i)(n,n,1/(0,s.l)(n)*a);const c=O(t,e.origin),u=(0,d.EU)(e.origin,n);return(0,o.c)(i,u+c,r),(0,s.e)(n,n,i),n}function A(t,e,n){const r=(0,s.f)(p.WM.get(),e,t),i=(0,s.i)(p.WM.get(),r,t[3]/(0,s.l)(r));return(0,s.g)(n,i,t)}function O(t,e){const n=(0,s.f)(p.WM.get(),e,t),r=(0,s.l)(n),o=_(t),a=o+Math.abs(o-r);return(0,i.ZF)(o/a)}const B=(0,a.c)();function C(t,e,n,r){const o=(0,s.f)(B,e,t);switch(n){case f.R.X:{const t=(0,i.jE)(o,B)[2];return(0,s.s)(r,-Math.sin(t),Math.cos(t),0)}case f.R.Y:{const t=(0,i.jE)(o,B),e=t[1],n=t[2],a=Math.sin(e);return(0,s.s)(r,-a*Math.cos(n),-a*Math.sin(n),Math.cos(e))}case f.R.Z:return(0,s.n)(r,o);default:return}}function T(t,e){const n=(0,s.f)(j,e,t);return(0,s.l)(n)-t[3]}function N(t,e){const n=(0,s.a)(t,e),r=_(t);return n<=r*r}const j=(0,a.c)(),I=m();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:y,altitudeAt:T,angleToSilhouette:O,axisAt:C,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return S(t,e,n)?n:((0,h.JI)(e,t,n),A(t,n,n))},closestPointOnSilhouette:E,containsPoint:N,copy:M,create:m,distanceToSilhouette:function(t,e){const n=(0,s.f)(p.WM.get(),e,t),r=(0,s.m)(n),i=t[3]*t[3];return Math.sqrt(Math.abs(r-i))},elevate:function(t,e,n){return t!==n&&(0,s.c)(n,t),n[3]=t[3]+e,n},equals:b,exactEquals:g,fromCenterAndRadius:function(t,e){return(0,u.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,u.f)(t,e,n,r)},getCenter:w,getRadius:_,intersectLine:function(t,e,n){const r=(0,h.zk)(e,n);if(!v(t,r,x))return[];const{origin:i,direction:o}=r,{t0:c,t1:u}=x,f=e=>{const n=(0,a.c)();return(0,s.q)(n,i,o,e),A(t,n,n)};return Math.abs(c-u)<(0,l.g)()?[f(c)]:[f(c),f(u)]},intersectRay:S,intersectRayClosestSilhouette:function(t,e,n){if(S(t,e,n))return n;const r=E(t,e,p.WM.get());return(0,s.g)(n,e.origin,(0,s.i)(p.WM.get(),e.direction,(0,s.o)(e.origin,r)/(0,s.l)(e.direction))),n},intersectsRay:P,projectPoint:A,setAltitudeAt:function(t,e,n,r){const i=T(t,e),o=C(t,e,f.R.Z,j),a=(0,s.i)(j,o,n-i);return(0,s.g)(r,e,a)},setExtent:function(t,e,n){return r.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:M(t,n)},tmpSphere:I,union:function(t,e,n=m()){const r=(0,s.o)(t,e),i=t[3],o=e[3];return r+o<i?((0,c.c)(n,t),n):r+i<o?((0,c.c)(n,e),n):((0,s.p)(n,t,e,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function i(t,e){return[t,e]}function o(t,e){return new Float64Array(t,e,2)}function s(){return i(1,1)}function a(){return i(1,0)}function c(){return i(0,1)}n.d(e,{a:()=>r,c:()=>o,f:()=>i});const u=s(),l=a(),f=c();Object.freeze(Object.defineProperty({__proto__:null,ONES:u,UNIT_X:l,UNIT_Y:f,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:o,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitX:a,unitY:c,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},20773:(t,e,n)=>{n.d(e,{a:()=>a,b:()=>s,c:()=>i,d:()=>l,e:()=>c,n:()=>f,s:()=>u,t:()=>o});var r=n(72220);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return r.c.error("source and destination buffers need to have the same number of elements"),t;const s=t.length/i,a=n[0],c=n[1],u=n[2],l=n[4],f=n[5],h=n[6],d=n[8],p=n[9],y=n[10],m=n[12],g=n[13],b=n[14];let M=0,_=0;for(let n=0;n<s;n++){const n=e[M],r=e[M+1],s=e[M+2];t[_]=a*n+l*r+d*s+m,t[_+1]=c*n+f*r+p*s+g,t[_+2]=u*n+h*r+y*s+b,M+=o,_+=i}return t}function s(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return void r.c.error("source and destination buffers need to have the same number of elements");const s=t.length/i,a=n[0],c=n[1],u=n[2],l=n[3],f=n[4],h=n[5],d=n[6],p=n[7],y=n[8];let m=0,g=0;for(let n=0;n<s;n++){const n=e[m],r=e[m+1],s=e[m+2];t[g]=a*n+l*r+d*s,t[g+1]=c*n+f*r+p*s,t[g+2]=u*n+h*r+y*s,m+=o,g+=i}}function c(t,e,n){u(t.typedBuffer,e,n,t.typedBufferStride)}function u(t,e,n,r=3){const i=Math.min(t.length/r,e.count),o=e.typedBuffer,s=e.typedBufferStride;let a=0,c=0;for(let e=0;e<i;e++)t[c]=n*o[a],t[c+1]=n*o[a+1],t[c+2]=n*o[a+2],a+=s,c+=r}function l(t,e){f(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function f(t,e,n=3,r=n){const i=Math.min(t.length/n,e.length/r);let o=0,s=0;for(let a=0;a<i;a++){const i=e[o],a=e[o+1],c=e[o+2],u=i*i+a*a+c*c;if(u>0){const e=1/Math.sqrt(u);t[s]=e*i,t[s+1]=e*a,t[s+2]=e*c}o+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:f,normalizeView:l,scale:u,scaleView:c,shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride;let c=0,u=0;for(let t=0;t<r;t++)i[u]=s[c]>>n,i[u+1]=s[c+1]>>n,i[u+2]=s[c+2]>>n,c+=a,u+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:i},Symbol.toStringTag,{value:"Module"}))},88669:(t,e,n)=>{function r(){return[0,0,0,0]}function i(t,e,n,r){return[t,e,n,r]}function o(t,e){return new Float64Array(t,e,4)}function s(){return i(1,1,1,1)}function a(){return i(1,0,0,0)}function c(){return i(0,1,0,0)}function u(){return i(0,0,1,0)}function l(){return i(0,0,0,1)}n.d(e,{a:()=>o,c:()=>r,f:()=>i});const f=s(),h=a(),d=c(),p=u(),y=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:f,UNIT_W:y,UNIT_X:h,UNIT_Y:d,UNIT_Z:p,ZEROS:[0,0,0,0],clone:function(t){return[t[0],t[1],t[2],t[3]]},create:r,createView:o,fromArray:function(t,e=[0,0,0,0]){const n=Math.min(4,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitW:l,unitX:a,unitY:c,unitZ:u,zeros:function(){return[0,0,0,0]}},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},2368:(t,e,n)=>{n.d(e,{J:()=>l,j:()=>f});var r=n(43697),i=n(92036),o=(n(80442),n(22974)),s=(n(92604),n(70586)),a=n(31263),c=n(1153),u=n(52011);const l=t=>{let e=class extends t{clone(){const t=(0,c.vw)(this);(0,s.O3)(t,"unable to clone instance of non-accessor class");const e=t.metadatas,n=t.store,r={},i=new Map;for(const t in e){const s=e[t],c=n?.originOf(t),u=s.clonable;if(s.readOnly||!1===u||c!==a.s3.USER&&c!==a.s3.DEFAULTS&&c!==a.s3.WEB_MAP&&c!==a.s3.WEB_SCENE)continue;const l=this[t];let f=null;f="function"==typeof u?u(l):"reference"===u?l:(0,o.Vo)(l),null!=l&&null==f||(c===a.s3.DEFAULTS?i.set(t,f):r[t]=f)}const u=new(0,Object.getPrototypeOf(this).constructor)(r);if(i.size){const t=(0,c.vw)(u)?.store;if(t)for(const[e,n]of i)t.set(e,n,a.s3.DEFAULTS)}return u}};return e=(0,r._)([(0,u.j)("esri.core.Clonable")],e),e};let f=class extends(l(i.Z)){};f=(0,r._)([(0,u.j)("esri.core.Clonable")],f)},22807:(t,e,n)=>{n.d(e,{x:()=>i});var r=n(41213);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},90578:(t,e,n)=>{n.d(e,{p:()=>c});var r=n(75215),i=n(7628);const o=Object.prototype.toString;function s(t){const e="__accessorMetadata__"in t?(0,r.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,n,r){(0,i.Oe)(t,e).cast=r}function c(...t){if(3!==t.length||"string"!=typeof t[1])return 1===t.length&&"[object Function]"===o.call(t[0])?s(t[0]):1===t.length&&"string"==typeof t[0]?function(t){return(e,n)=>{(0,i.Oe)(e,t).cast=e[n]}}(t[0]):void 0}},71715:(t,e,n)=>{n.d(e,{r:()=>i});var r=n(5600);function i(t,e,n){let i,o;return void 0===e||Array.isArray(e)?(o=t,n=e,i=[void 0]):(o=e,i=Array.isArray(t)?t:[t]),(t,e)=>{const s=t.constructor.prototype;i.forEach((i=>{const a=(0,r.CJ)(t,i,o);a.read&&"object"==typeof a.read||(a.read={}),a.read.reader=s[e],n&&(a.read.source=(a.read.source||[]).concat(n))}))}}},9361:(t,e,n)=>{n.d(e,{Z:()=>l});var r=n(43697),i=n(96674),o=n(5600),s=(n(75215),n(67676),n(80442),n(71715)),a=n(52011),c=n(82971);let u=class extends i.wq{constructor(...t){super(...t),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=c.Z.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(t,e){if(t instanceof c.Z)return t;if(null!=t){const n=new c.Z;return n.read(t,e),n}return t}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(t){return this.cache[t]}setCacheValue(t,e){this.cache[t]=e}};(0,r._)([(0,o.Cb)()],u.prototype,"type",void 0),(0,r._)([(0,o.Cb)({readOnly:!0})],u.prototype,"cache",null),(0,r._)([(0,o.Cb)({readOnly:!0})],u.prototype,"extent",null),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],u.prototype,"hasM",void 0),(0,r._)([(0,o.Cb)({type:Boolean,json:{write:{overridePolicy:t=>({enabled:t})}}})],u.prototype,"hasZ",void 0),(0,r._)([(0,o.Cb)({type:c.Z,json:{write:!0},value:c.Z.WGS84})],u.prototype,"spatialReference",void 0),(0,r._)([(0,s.r)("spatialReference")],u.prototype,"readSpatialReference",null),u=(0,r._)([(0,a.j)("esri.geometry.Geometry")],u);const l=u},94139:(t,e,n)=>{n.d(e,{Z:()=>M});var r,i=n(43697),o=n(92604),s=n(5600),a=n(90578),c=(n(67676),n(80442),n(71715)),u=n(52011),l=n(30556),f=n(75215),h=n(9361),d=n(82971),p=n(8744),y=n(40488);const m=[0,0];function g(t){return t&&("esri.geometry.SpatialReference"===t.declaredClass||null!=t.wkid)}let b=r=class extends h.Z{static copy(t,e){e._set("x",t._get("x")),e._set("y",t._get("y")),e._set("z",t._get("z")),e._set("m",t._get("m"));const n=t._get("spatialReference");e._set("spatialReference",Object.isFrozen(n)?n:n.clone())}constructor(...t){super(...t),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(t,e,n,r,i){let s;if(Array.isArray(t))s=t,i=e,t=s[0],e=s[1],n=s[2],r=s[3];else if(t&&"object"==typeof t){if(s=t,t=null!=s.x?s.x:s.longitude,e=null!=s.y?s.y:s.latitude,n=s.z,r=s.m,(i=s.spatialReference)&&"esri.geometry.SpatialReference"!==i.declaredClass&&(i=new d.Z(i)),null!=s.longitude||null!=s.latitude)if(null==s.longitude)o.Z.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(null==s.latitude)o.Z.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!s.declaredClass&&i&&i.isWebMercator){const n=(0,y.hG)(s.longitude,s.latitude,m);t=n[0],e=n[1]}}else g(n)?(i=n,n=null):g(r)&&(i=r,r=null);const a={x:t,y:e};return null==a.x&&null!=a.y?o.Z.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):null==a.y&&null!=a.x&&o.Z.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),null!=i&&(a.spatialReference=i),null!=n&&(a.z=n),null!=r&&(a.m=r),a}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return void 0!==this.m}set hasM(t){t!==(void 0!==this._get("m"))&&(this._set("m",t?0:void 0),this._set("hasM",t))}get hasZ(){return void 0!==this.z}set hasZ(t){t!==(void 0!==this._get("z"))&&(this._set("z",t?0:void 0),this._set("hasZ",t))}get latitude(){const{spatialReference:t,x:e,y:n}=this;if(t){if(t.isWebMercator)return(0,y.R6)(e,n,m)[1];if(t.isGeographic)return n}return null}set latitude(t){const{spatialReference:e,x:n}=this;null!=t&&e&&(e.isWebMercator?this._set("y",(0,y.hG)(n,t,m)[1]):e.isGeographic&&this._set("y",t),this._set("latitude",t))}get longitude(){const{x:t,y:e,spatialReference:n}=this;if(n){if(n.isWebMercator)return(0,y.R6)(t,e,m)[0];if(n.isGeographic)return t}return null}set longitude(t){const{y:e,spatialReference:n}=this;null!=t&&n&&(n.isWebMercator?this._set("x",(0,y.hG)(t,e,m)[0]):n.isGeographic&&this._set("x",t),this._set("longitude",t))}writeX(t,e,n){e[n]=isNaN(t)?"NaN":t}readX(t){return"string"==typeof t?NaN:t}clone(){const t=new r;return t.x=this.x,t.y=this.y,t.z=this.z,t.m=this.m,t.spatialReference=this.spatialReference,t}copy(t){return r.copy(t,this),this}equals(t){if(null==t)return!1;const{x:e,y:n,z:r,m:i,spatialReference:o}=this,{z:s,m:a}=t;let{x:c,y:u,spatialReference:l}=t;if(!o.equals(l))if(o.isWebMercator&&l.isWGS84)[c,u]=(0,y.hG)(c,u),l=o;else{if(!o.isWGS84||!l.isWebMercator)return!1;[c,u]=(0,y.R6)(c,u),l=o}return e===c&&n===u&&r===s&&i===a&&o.wkid===l.wkid}offset(t,e,n){return this.x+=t,this.y+=e,null!=n&&(this.z=(this.z??0)+n),this}normalize(){if(!this.spatialReference)return this;const t=(0,p.C5)(this.spatialReference);if(!t)return this;let e=this.x;const[n,r]=t.valid,i=2*r;let o;return e>r?(o=Math.ceil(Math.abs(e-r)/i),e-=o*i):e<n&&(o=Math.ceil(Math.abs(e-n)/i),e+=o*i),this._set("x",e),this}distance(t){return function(t,e){const n=t.x-e.x,r=t.y-e.y,i=t.hasZ&&e.hasZ?t.z-e.z:0;return Math.sqrt(n*n+r*r+i*i)}(this,t)}toArray(){const t=this.hasZ,e=this.hasM;return t&&e?[this.x,this.y,this.z,this.m]:t?[this.x,this.y,this.z]:e?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(t){return this.write({},t)}};(0,i._)([(0,s.Cb)({readOnly:!0})],b.prototype,"cache",null),(0,i._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasM",null),(0,i._)([(0,s.Cb)({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],b.prototype,"hasZ",null),(0,i._)([(0,s.Cb)({type:Number})],b.prototype,"latitude",null),(0,i._)([(0,s.Cb)({type:Number})],b.prototype,"longitude",null),(0,i._)([(0,s.Cb)({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),(0,a.p)((t=>isNaN(t)?t:(0,f.q9)(t)))],b.prototype,"x",void 0),(0,i._)([(0,l.c)("x")],b.prototype,"writeX",null),(0,i._)([(0,c.r)("x")],b.prototype,"readX",null),(0,i._)([(0,s.Cb)({type:Number,json:{write:!0}})],b.prototype,"y",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],b.prototype,"z",void 0),(0,i._)([(0,s.Cb)({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],b.prototype,"m",void 0),b=r=(0,i._)([(0,u.j)("esri.geometry.Point")],b),b.prototype.toJSON.isDefaultToJSON=!0;const M=b},62155:(t,e,n)=>{var r;n.d(e,{R:()=>r}),function(t){t[t.X=0]="X",t[t.Y=1]="Y",t[t.Z=2]="Z"}(r||(r={}))},83025:(t,e,n)=>{n.d(e,{JK:()=>a,QZ:()=>o,Rq:()=>s,bg:()=>i,mB:()=>c});var r=n(1533);function i(t,e=!1){return t<=r.c8?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function o(t){return((0,r.kJ)(t)?t.length:t.byteLength/8)<=r.c8?Array.from(t):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function c(t){return Array.isArray(t)?new Float64Array(t):t}},85872:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),u=n(65617),l=n(94139);let f=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,u.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new l.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,u.f)(t,e,n??0)}};(0,r._)([(0,a.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,r._)([(0,c.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],f);const h=f},84555:(t,e,n)=>{n.d(e,{Z:()=>h});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),c=n(52011),u=n(65617),l=n(94139);let f=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,u.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new l.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,u.f)(t,e,n??0)}};(0,r._)([(0,a.J)({local:"local"},{readOnly:!0})],f.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],f.prototype,"origin",void 0),f=(0,r._)([(0,c.j)("esri.geometry.support.MeshLocalVertexSpace")],f);const h=f},72220:(t,e,n)=>{n.d(e,{c:()=>r});const r=n(92604).Z.getLogger("esri.views.3d.support.buffer.math")},78341:(t,e,n)=>{n.d(e,{JI:()=>l,Ue:()=>s,re:()=>c,zk:()=>u}),n(67676);var r=n(22807),i=n(17896),o=n(65617);function s(t){return t?a((0,o.g)(t.origin),(0,o.g)(t.direction)):a((0,o.c)(),(0,o.c)())}function a(t,e){return{origin:t,direction:e}}function c(t,e){const n=f.get();return n.origin=t,n.direction=e,n}function u(t,e,n=s()){return(0,i.c)(n.origin,t),(0,i.f)(n.direction,e,t),n}function l(t,e,n){const r=(0,i.j)(t.direction,(0,i.f)(n,e,t.origin));return(0,i.g)(n,t.origin,(0,i.i)(n,t.direction,r)),n}n(12981);const f=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),i=n(17896),o=n(65617);function s(t,e){const n=(0,i.j)(t,e)/((0,i.l)(t)*(0,i.l)(e));return-(0,r.ZF)(n)}(0,o.c)(),(0,o.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>p,WM:()=>d});var r=n(91303),i=n(41213),o=n(46521),s=n(13598),a=n(94961),c=n(97323),u=n(65617),l=n(88669);class f{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,i.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=h){return new f(16,c.c,t)}static createVec3f64(t=h){return new f(24,u.a,t)}static createVec4f64(t=h){return new f(32,l.a,t)}static createMat3f64(t=h){return new f(72,o.c,t)}static createMat4f64(t=h){return new f(128,s.c,t)}static createQuatf64(t=h){return new f(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const h=4*r.Y.KILOBYTES,d=(f.createVec2f64(),f.createVec3f64()),p=(f.createVec4f64(),f.createMat3f64(),f.createMat4f64());f.createQuatf64()},40488:(t,e,n)=>{n.d(e,{$:()=>M,Q8:()=>y,R6:()=>b,Sx:()=>_,hG:()=>g,iV:()=>m,mZ:()=>f});var r=n(22974),i=n(82971),o=n(68441),s=n(8744);const a=57.29577951308232,c=.017453292519943;function u(t){return t*a}function l(t){return t*c}function f(t){return Math.PI/2-2*Math.atan(Math.exp(-t/o.sv.radius))}function h(t){return null!=t.wkid||null!=t.wkt}const d=[0,0];function p(t,e,n,r,i){const o=t,s=i;if(s.spatialReference=n,"x"in o&&"x"in s)[s.x,s.y]=e(o.x,o.y,d,r);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=e(o.xmin,o.ymin,d,r),[s.xmax,s.ymax]=e(o.xmax,o.ymax,d,r);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){const t="paths"in o?o.paths:o.rings,n=[];let i;for(let o=0;o<t.length;o++){const s=t[o];i=[],n.push(i);for(let t=0;t<s.length;t++)i.push(e(s[t][0],s[t][1],[0,0],r)),s[t].length>2&&i[t].push(s[t][2]),s[t].length>3&&i[t].push(s[t][3])}"paths"in s?s.paths=n:s.rings=n}else if("points"in o&&"points"in s){const t=o.points,n=[];for(let i=0;i<t.length;i++)n[i]=e(t[i][0],t[i][1],[0,0],r),t[i].length>2&&n[i].push(t[i][2]),t[i].length>3&&n[i].push(t[i][3]);s.points=n}return i}function y(t,e){const n=t&&(h(t)?t:t.spatialReference),r=e&&(h(e)?e:e.spatialReference);return!(t&&"type"in t&&"mesh"===t.type||e&&"type"in e&&"mesh"===e.type||!n||!r)&&(!!(0,s.fS)(r,n)||(0,s.sS)(r)&&(0,s.oR)(n)||(0,s.sS)(n)&&(0,s.oR)(r))}function m(t,e){if(null==t)return null;const n=t.spatialReference,o=e&&(h(e)?e:e.spatialReference);return y(n,o)?(0,s.fS)(n,o)?(0,r.d9)(t):(0,s.sS)(o)?p(t,g,i.Z.WebMercator,!1,(0,r.d9)(t)):(0,s.oR)(o)?p(t,b,i.Z.WGS84,!1,(0,r.d9)(t)):null:null}function g(t,e,n=[0,0]){e>89.99999?e=89.99999:e<-89.99999&&(e=-89.99999);const r=l(e);return n[0]=l(t)*o.sv.radius,n[1]=o.sv.halfSemiMajorAxis*Math.log((1+Math.sin(r))/(1-Math.sin(r))),n}function b(t,e,n=[0,0],r=!1){const i=u(t/o.sv.radius);return n[0]=r?i:i-360*Math.floor((i+180)/360),n[1]=u(Math.PI/2-2*Math.atan(Math.exp(-e/o.sv.radius))),n}function M(t,e=!1,n=(0,r.d9)(t)){return p(t,g,i.Z.WebMercator,e,n)}function _(t,e=!1,n=(0,r.d9)(t)){return p(t,b,i.Z.WGS84,e,n)}},31412:(t,e,n)=>{n.r(e),n.d(e,{destroyContext:()=>P,dracoDecompressPointCloudData:()=>_,filterObbsForModifications:()=>w,filterObbsForModificationsSync:()=>T,initialize:()=>I,interpretObbModificationResults:()=>C,process:()=>M,project:()=>v,setLegacySchema:()=>x,setModifications:()=>S,setModificationsSync:()=>O,test:()=>Z,transformNormals:()=>R});var r,i,o=n(82971),s=n(83025),a=n(85872),c=n(84555),u=n(20773);!function(t){t[t.None=0]="None",t[t.Int16=1]="Int16",t[t.Int32=2]="Int32"}(r||(r={})),function(t){t[t.Replace=0]="Replace",t[t.Outside=1]="Outside",t[t.Inside=2]="Inside",t[t.Finished=3]="Finished"}(i||(i={}));var l=n(99880);function f(t){return(0,l.V)(`esri/libs/i3s/${t}`)}let h;var d,p,y,m,g,b;async function M(t){A=await z();const e=[t.geometryBuffer];return{result:B(A,t,e),transferList:e}}async function _(t){A=await z();const e=[t.geometryBuffer],{geometryBuffer:n}=t,r=n.byteLength,i=A._malloc(r),o=new Uint8Array(A.HEAPU8.buffer,i,r);o.set(new Uint8Array(n));const s=A.dracoDecompressPointCloudData(i,o.byteLength);if(A._free(i),s.error.length>0)throw new Error(`i3s.wasm: ${s.error}`);const a=s.featureIds?.length>0?s.featureIds.slice():null,c=s.positions.slice();return a&&e.push(a.buffer),e.push(c.buffer),{result:{positions:c,featureIds:a},transferList:e}}async function w(t){await z(),T(t);const e={buffer:t.buffer};return{result:e,transferList:[e.buffer]}}async function S(t){await z(),O(t)}async function x(t){A=await z(),A.setLegacySchema(t.context,t.jsonSchema)}async function v(t){const{localMatrix:e,origin:r,positions:i,vertexSpace:u,localMode:l}=t,f=o.Z.fromJSON(t.inSpatialReference),h=o.Z.fromJSON(t.outSpatialReference);let d;if("georeferenced"===u.type){const[{projectBuffer:t},{initializeProjection:e}]=await Promise.all([n.e(7360).then(n.bind(n,87360)),Promise.all([n.e(3615),n.e(3215),n.e(661)]).then(n.bind(n,73615))]);await e(f,h),d=new Float64Array(i.length),t(i,f,0,d,h,0,d.length/3)}else{const t="georeferencedRelative"===u.type?a.Z.fromJSON(u):c.Z.fromJSON(u),{project:r}=await Promise.all([n.e(3615),n.e(3215),n.e(6481),n.e(6459),n.e(5234)]).then(n.bind(n,66459));d=(0,s.mB)(r({positions:i,transform:e?{localMatrix:e}:void 0,vertexSpace:t,inSpatialReference:f,outSpatialReference:h,localMode:l}))}const p=d.length,[y,m,g]=r;for(let t=0;t<p;t+=3)d[t]-=y,d[t+1]-=m,d[t+2]-=g;return{result:{projected:d,original:i},transferList:[d.buffer,i.buffer]}}async function R({normalMatrix:t,normals:e}){const n=new Float32Array(e.length);return(0,u.a)(n,e,t),(0,u.n)(n,n),{result:{transformed:n,original:e},transferList:[n.buffer,e.buffer]}}function P(t){N(t)}let E,A;function O(t){if(!A)return;const e=t.modifications,n=A._malloc(8*e.length),r=new Float64Array(A.HEAPU8.buffer,n,e.length);for(let t=0;t<e.length;++t)r[t]=e[t];A.setModifications(t.context,n,e.length,t.isGeodetic),A._free(n)}function B(t,e,n){const{context:i,localOrigin:o,globalTrafo:s,mbs:a,obb:c,elevationOffset:u,geometryBuffer:l,geometryDescriptor:f,indexToVertexProjector:h,vertexToRenderProjector:d}=e,p=t._malloc(l.byteLength),y=t._malloc(33*Float64Array.BYTES_PER_ELEMENT),m=new Uint8Array(t.HEAPU8.buffer,p,l.byteLength);m.set(new Uint8Array(l));const g=new Float64Array(t.HEAPU8.buffer,y,33);j(g,o);let b=g.byteOffset+3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b);j(M,s),b+=16*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),j(M,a),b+=4*g.BYTES_PER_ELEMENT,null!=c&&(M=new Float64Array(g.buffer,b),j(M,c.center),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),j(M,c.halfSize),b+=3*g.BYTES_PER_ELEMENT,M=new Float64Array(g.buffer,b),j(M,c.quaternion));const _=f,w={isDraco:!1,isLegacy:!1,color:e.layouts.some((t=>t.some((t=>"color"===t.name)))),normal:e.needNormals&&e.layouts.some((t=>t.some((t=>"normalCompressed"===t.name)))),uv0:e.layouts.some((t=>t.some((t=>"uv0"===t.name)))),uvRegion:e.layouts.some((t=>t.some((t=>"uvRegion"===t.name)))),featureIndex:_.featureIndex},S=t.process(i,!!e.obb,p,m.byteLength,_,w,y,u,h,d,e.normalReferenceFrame);if(t._free(y),t._free(p),S.error.length>0)throw new Error(`i3s.wasm: ${S.error}`);if(S.discarded)return null;const x=S.componentOffsets.length>0?S.componentOffsets.slice():null,v=S.featureIds.length>0?S.featureIds.slice():null,R=S.anchorIds.length>0?Array.from(S.anchorIds):null,P=S.anchors.length>0?Array.from(S.anchors):null,E=S.interleavedVertedData.slice().buffer,A=S.indicesType===r.Int16?new Uint16Array(S.indices.buffer,S.indices.byteOffset,S.indices.byteLength/2).slice():new Uint32Array(S.indices.buffer,S.indices.byteOffset,S.indices.byteLength/4).slice(),O=S.positions.slice(),B=S.positionIndicesType===r.Int16?new Uint16Array(S.positionIndices.buffer,S.positionIndices.byteOffset,S.positionIndices.byteLength/2).slice():new Uint32Array(S.positionIndices.buffer,S.positionIndices.byteOffset,S.positionIndices.byteLength/4).slice(),C={layout:e.layouts[0],interleavedVertexData:E,indices:A,hasColors:S.hasColors,hasModifications:S.hasModifications,positionData:{data:O,indices:B}};return v&&n.push(v.buffer),x&&n.push(x.buffer),n.push(E),n.push(A.buffer),n.push(O.buffer),n.push(B.buffer),{componentOffsets:x,featureIds:v,anchorIds:R,anchors:P,transformedGeometry:C,obb:S.obb}}function C(t){return 0===t?p.Unmodified:1===t?p.PotentiallyModified:2===t?p.Culled:p.Unknown}function T(t){if(!A)return;const{context:e,buffer:n}=t,r=A._malloc(n.byteLength),i=n.byteLength/Float64Array.BYTES_PER_ELEMENT,o=new Float64Array(A.HEAPU8.buffer,r,i),s=new Float64Array(n);o.set(s),A.filterOBBs(e,r,i),s.set(o),A._free(r)}function N(t){A&&0===A.destroy(t)&&(A=null)}function j(t,e){for(let n=0;n<e.length;++n)t[n]=e[n]}async function I(){A||await z()}function z(){return A?Promise.resolve(A):(E||(E=(h||(h=new Promise((t=>n.e(6710).then(n.bind(n,26710)).then((t=>t.i)).then((({default:e})=>{const n=e({locateFile:f,onRuntimeInitialized:()=>t(n)});delete n.then})))).catch((t=>{throw t}))),h).then((t=>(A=t,E=null,A)))),E)}n(8310),(b=d||(d={}))[b.Unmodified=0]="Unmodified",b[b.Culled=1]="Culled",b[b.NotChecked=2]="NotChecked",function(t){t[t.Unmodified=0]="Unmodified",t[t.PotentiallyModified=1]="PotentiallyModified",t[t.Culled=2]="Culled",t[t.Unknown=3]="Unknown",t[t.NotChecked=4]="NotChecked"}(p||(p={})),function(t){t[t.Unknown=0]="Unknown",t[t.Uncached=1]="Uncached",t[t.Cached=2]="Cached"}(y||(y={})),function(t){t[t.None=0]="None",t[t.MaxScreenThreshold=1]="MaxScreenThreshold",t[t.ScreenSpaceRelative=2]="ScreenSpaceRelative",t[t.RemovedFeatureDiameter=3]="RemovedFeatureDiameter",t[t.DistanceRangeFromDefaultCamera=4]="DistanceRangeFromDefaultCamera"}(m||(m={})),function(t){t[t.Hole=0]="Hole",t[t.Leaf=1]="Leaf"}(g||(g={}));const Z={transform:(t,e)=>A&&B(A,t,e),destroy:N}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[9059,7873,5732,7865],{92835:(e,t,r)=>{r.d(t,{Z:()=>f});var s,i=r(43697),n=r(96674),o=r(35463),a=r(5600),l=(r(75215),r(67676),r(80442),r(71715)),u=r(52011),d=r(30556),c=r(25031);let p=s=class extends n.wq{static get allTime(){return h}static get empty(){return y}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(s.allTime)}get isEmpty(){return this.equals(s.empty)}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new s({end:this.end,start:this.start})}equals(e){if(!e)return!1;const t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,s=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===s&&r===i}expandTo(e,t=c.By){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=(0,o.JE)(r,e,t));let i=this.end;if(i){const r=(0,o.JE)(i,e,t);i=i.getTime()===r.getTime()?r:(0,o.Nm)(r,1,e,t)}return new s({start:r,end:i})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return s.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();const t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,i=e.start?.getTime()??-1/0,n=e.end?.getTime()??1/0;let o,a;if(i>=t&&i<=r?o=i:t>=i&&t<=n&&(o=t),r>=i&&r<=n?a=r:n>=t&&n<=r&&(a=n),null!=o&&null!=a&&!isNaN(o)&&!isNaN(a)){const e=new s;return e.start=o===-1/0?null:new Date(o),e.end=a===1/0?null:new Date(a),e}return s.empty}offset(e,t,r=c.By){if(this.isEmpty||this.isAllTime)return this.clone();const i=new s,{start:n,end:a}=this;return null!=n&&(i.start=(0,o.Nm)(n,e,t,r)),null!=a&&(i.end=(0,o.Nm)(a,e,t,r)),i}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return h.clone();const t=null!=this.start&&null!=e.start?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=null!=this.end&&null!=e.end?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new s({start:t,end:r})}};(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"end",void 0),(0,i._)([(0,l.r)("end")],p.prototype,"readEnd",null),(0,i._)([(0,d.c)("end")],p.prototype,"writeEnd",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isAllTime",null),(0,i._)([(0,a.Cb)({readOnly:!0,json:{read:!1}})],p.prototype,"isEmpty",null),(0,i._)([(0,a.Cb)({type:Date,json:{write:{allowNull:!0}}})],p.prototype,"start",void 0),(0,i._)([(0,l.r)("start")],p.prototype,"readStart",null),(0,i._)([(0,d.c)("start")],p.prototype,"writeStart",null),p=s=(0,i._)([(0,u.j)("esri.TimeExtent")],p);const h=new p,y=new p({start:void 0,end:void 0}),f=p},5732:(e,t,r)=>{r.d(t,{c:()=>s,g:()=>i});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},57435:(e,t,r)=>{r.d(t,{Z:()=>u});var s=r(43697),i=r(46791),n=(r(66643),r(20102),r(92604),r(26258),r(87538)),o=r(5600),a=r(52011);let l=class extends i.Z{constructor(e){super(e),this.getCollections=null}initialize(){this.addHandles((0,n.EH)((()=>this._refresh())))}destroy(){this.getCollections=null}_refresh(){const e=null!=this.getCollections?this.getCollections():null;if(null==e)return void this.removeAll();let t=0;for(const r of e)null!=r&&(t=this._processCollection(t,r));this.splice(t,this.length)}_createNewInstance(e){return new i.Z(e)}_processCollection(e,t){if(!t)return e;const r=this.itemFilterFunction??(e=>!!e);for(const s of t)if(s){if(r(s)){const t=this.indexOf(s,e);t>=0?t!==e&&this.reorder(s,e):this.add(s,e),++e}if(this.getChildrenFunction){const t=this.getChildrenFunction(s);if(Array.isArray(t))for(const r of t)e=this._processCollection(e,r);else e=this._processCollection(e,t)}}return e}};(0,s._)([(0,o.Cb)()],l.prototype,"getCollections",void 0),(0,s._)([(0,o.Cb)()],l.prototype,"getChildrenFunction",void 0),(0,s._)([(0,o.Cb)()],l.prototype,"itemFilterFunction",void 0),l=(0,s._)([(0,a.j)("esri.core.CollectionFlattener")],l);const u=l},10699:(e,t,r)=>{r.d(t,{IG:()=>o,iv:()=>a});var s=r(43697),i=r(52011);let n=0;const o=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:Date.now().toString(16)+"-object-"+n++})}};return t=(0,s._)([(0,i.j)("esri.core.Identifiable")],t),t},a=e=>{let t=class extends e{constructor(...e){super(...e),Object.defineProperty(this,"uid",{writable:!1,configurable:!1,value:n++})}};return t=(0,s._)([(0,i.j)("esri.core.NumericIdentifiable")],t),t};let l=class extends(o(class{})){};l=(0,s._)([(0,i.j)("esri.core.Identifiable")],l)},17445:(e,t,r)=>{r.d(t,{N1:()=>p,YP:()=>l,Z_:()=>f,gx:()=>u,nn:()=>m,on:()=>c,tX:()=>b}),r(66643),r(46791);var s=r(91460),i=r(50758),n=r(70586),o=r(95330),a=r(26258);function l(e,t,r={}){return d(e,t,r,h)}function u(e,t,r={}){return d(e,t,r,y)}function d(e,t,r={},s){let i=null;const o=r.once?(e,r)=>{s(e)&&((0,n.hw)(i),t(e,r))}:(e,r)=>{s(e)&&t(e,r)};if(i=(0,a.aQ)(e,o,r.sync,r.equals),r.initial){const t=e();o(t,t)}return i}function c(e,t,r,o={}){let a=null,u=null,d=null;function c(){a&&u&&(u.remove(),o.onListenerRemove?.(a),a=null,u=null)}function p(e){o.once&&o.once&&(0,n.hw)(d),r(e)}const h=l(e,((e,r)=>{c(),(0,s.vT)(e)&&(a=e,u=(0,s.on)(e,t,p),o.onListenerAdd?.(e))}),{sync:o.sync,initial:!0});return d=(0,i.kB)((()=>{h.remove(),c()})),d}function p(e,t){return function(e,t,r){if((0,o.Hc)(r))return Promise.reject((0,o.zE)());const s=e();if(t?.(s))return Promise.resolve(s);let a=null;function l(){a=(0,n.hw)(a)}return new Promise(((s,n)=>{a=(0,i.AL)([(0,o.fu)(r,(()=>{l(),n((0,o.zE)())})),d(e,(e=>{l(),s(e)}),{sync:!1,once:!0},t??h)])}))}(e,y,t)}function h(e){return!0}function y(e){return!!e}r(87538);const f={sync:!0},m={initial:!0},b={sync:!0,initial:!0}},41123:(e,t,r)=>{r.d(t,{D:()=>i,z:()=>n});const s="randomUUID"in crypto;function i(){if(s)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}function n(){return`{${i()}}`}},40504:(e,t,r)=>{r.r(t),r.d(t,{default:()=>F});var s=r(43697),i=r(57435),n=r(68668),o=r(92604),a=r(16453),l=r(95330),u=r(17445),d=r(5600),c=(r(75215),r(67676),r(80442),r(1153)),p=r(71715),h=r(52011),y=r(30556),f=r(31263),m=r(87085),b=r(71612),v=r(38009),g=r(16859),w=r(72965),_=r(87344),I=r(15235),C=r(46791),P=r(70921);function E(e,t,r){let s,i;if(e)for(let n=0,o=e.length;n<o;n++){if(s=e.at(n),s?.[t]===r)return s;if("group"===s?.type&&(i=E(s.layers,t,r),i))return i}}const S=e=>{let t=class extends e{constructor(...e){super(...e),this.layers=new C.Z;const t=e=>{e.parent=this,this.layerAdded(e),"elevation"!==e.type&&"base-elevation"!==e.type||o.Z.getLogger(this).error(`Layer 'title:${e.title}, id:${e.id}' of type '${e.type}' is not supported as an operational layer and will therefore be ignored.`)},r=e=>{e.parent=null,this.layerRemoved(e)};this.addHandles([this.layers.on("before-add",(e=>(e=>{e.parent&&"remove"in e.parent&&e.parent.remove(e)})(e.item))),this.layers.on("after-add",(e=>t(e.item))),this.layers.on("after-remove",(e=>r(e.item)))])}destroy(){const e=this.layers.toArray();for(const t of e)t.destroy();this.layers.destroy()}set layers(e){this._set("layers",(0,P.Z)(e,this._get("layers")))}add(e,t){const r=this.layers;if(t=r.getNextIndex(t),e instanceof m.Z){const s=e;s.parent===this?this.reorder(s,t):r.add(s,t)}else(0,l.y8)(e)?e.then((e=>{this.destroyed||this.add(e,t)})):o.Z.getLogger(this).error("#add()","The item being added is not a Layer or a Promise that resolves to a Layer.")}addMany(e,t){const r=this.layers;let s=r.getNextIndex(t);e.slice().forEach((e=>{e.parent!==this?(r.add(e,s),s+=1):this.reorder(e,s)}))}findLayerById(e){return E(this.layers,"id",e)}findLayerByUid(e){return E(this.layers,"uid",e)}remove(e){return this.layers.remove(e)}removeMany(e){return this.layers.removeMany(e)}removeAll(){return this.layers.removeAll()}reorder(e,t){return this.layers.reorder(e,t)}layerAdded(e){}layerRemoved(e){}};return(0,s._)([(0,d.Cb)()],t.prototype,"layers",null),t=(0,s._)([(0,h.j)("esri.support.LayersMixin")],t),t};function T(e,t,r){if(e)for(let s=0,i=e.length;s<i;s++){const i=e.at(s);if(i[t]===r)return i;if("group"===i?.type){const e=T(i.tables,t,r);if(e)return e}}}const L=e=>{let t=class extends e{constructor(...e){super(...e),this.tables=new C.Z,this.addHandles([this.tables.on("after-add",(e=>{const t=e.item;t.parent&&t.parent!==this&&"tables"in t.parent&&t.parent.tables.remove(t),t.parent=this,"feature"!==t.type&&o.Z.getLogger(this).error(`Layer 'title:${t.title}, id:${t.id}' of type '${t.type}' is not supported as a table and will therefore be ignored.`)})),this.tables.on("after-remove",(e=>{e.item.parent=null}))])}destroy(){const e=this.tables.toArray();for(const t of e)t.destroy();this.tables.destroy()}set tables(e){this._set("tables",(0,P.Z)(e,this._get("tables")))}findTableById(e){return T(this.tables,"id",e)}findTableByUid(e){return T(this.tables,"uid",e)}};return(0,s._)([(0,d.Cb)()],t.prototype,"tables",null),t=(0,s._)([(0,h.j)("esri.support.TablesMixin")],t),t},A=Symbol("WebScene");var O=r(12259),U=r(35755),x=r(15650);let Z=class extends((0,b.h)((0,w.M)((0,v.q)((0,g.I)(L(S((0,a.R)(m.Z)))))))){constructor(e){var t;super(e),this.allLayers=new i.Z({getCollections:()=>[this.layers],getChildrenFunction:e=>"layers"in e?e.layers:null}),this.allTables=(t=this,new i.Z({getCollections:()=>[t.tables,t.layers],getChildrenFunction:e=>{const t=[];return"tables"in e&&t.push(e.tables),"layers"in e&&t.push(e.layers),t},itemFilterFunction:e=>{const t=e.parent;return!!t&&"tables"in t&&t.tables.includes(e)}})),this.fullExtent=void 0,this.operationalLayerType="GroupLayer",this.spatialReference=void 0,this.type="group",this._debouncedSaveOperations=(0,l.Ds)((async(e,t,s)=>{const{save:i,saveAs:n}=await r.e(821).then(r.bind(r,30821));switch(e){case O.x.SAVE:return i(this,t);case O.x.SAVE_AS:return n(this,s,t)}}))}initialize(){this._enforceVisibility(this.visibilityMode,this.visible),this.addHandles([(0,u.YP)((()=>{let e=this.parent;for(;e&&"parent"in e&&e.parent;)e=e.parent;return e&&A in e}),(e=>{const t="prevent-adding-tables";this.removeHandles(t),e&&(this.tables.removeAll(),this.addHandles((0,u.on)((()=>this.tables),"before-add",(e=>{e.preventDefault(),o.Z.getLogger(this).errorOnce("tables","tables in group layers in a webscene are not supported. Please move the tables from the group layer to the webscene if you want to persist them.")})),t))}),u.tX),(0,u.YP)((()=>this.visible),this._onVisibilityChange.bind(this),u.Z_)])}destroy(){this.allLayers.destroy(),this.allTables.destroy()}get sourceIsPortalItem(){return this.portalItem&&this.originIdOf("portalItem")===f.s3.USER}_writeLayers(e,t,r,s){const i=[];if(!e)return i;e.forEach((e=>{const t=(0,x.Nw)(e,s.webmap?s.webmap.getLayerJSONFromResourceInfo(e):null,s);t?.layerType&&i.push(t)})),t.layers=i}set portalItem(e){this._set("portalItem",e)}readPortalItem(e,t,r){const{itemId:s,layerType:i}=t;if("GroupLayer"===i&&s)return new I.default({id:s,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}set visibilityMode(e){const t=this._get("visibilityMode")!==e;this._set("visibilityMode",e),t&&this._enforceVisibility(e,this.visible)}async beforeSave(){return(0,U.Pl)(this)}load(e){const t=this.loadFromPortal({supportedTypes:["Feature Service","Feature Collection","Group Layer","Scene Service"],layerModuleTypeMap:_.T},e).catch((e=>{if((0,l.r9)(e),this.sourceIsPortalItem)throw e}));return this.addResolvingPromise(t),Promise.resolve(this)}async loadAll(){return(0,n.G)(this,(e=>{e(this.layers,this.tables)}))}async save(e){return this._debouncedSaveOperations(O.x.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(O.x.SAVE_AS,t,e)}layerAdded(e){e.visible&&"exclusive"===this.visibilityMode?this._turnOffOtherLayers(e):"inherited"===this.visibilityMode&&(e.visible=this.visible),this.hasHandles(e.uid)?console.error(`Layer readded to Grouplayer: uid=${e.uid}`):this.addHandles((0,u.YP)((()=>e.visible),(t=>this._onChildVisibilityChange(e,t)),u.Z_),e.uid)}layerRemoved(e){this.removeHandles(e.uid),this._enforceVisibility(this.visibilityMode,this.visible)}_turnOffOtherLayers(e){this.layers.forEach((t=>{t!==e&&(t.visible=!1)}))}_enforceVisibility(e,t){if(!(0,c.vw)(this).initialized)return;const r=this.layers;let s=r.find((e=>e.visible));switch(e){case"exclusive":r.length&&!s&&(s=r.at(0),s.visible=!0),this._turnOffOtherLayers(s);break;case"inherited":r.forEach((e=>{e.visible=t}))}}_onVisibilityChange(e){"inherited"===this.visibilityMode&&this.layers.forEach((t=>{t.visible=e}))}_onChildVisibilityChange(e,t){switch(this.visibilityMode){case"exclusive":t?this._turnOffOtherLayers(e):this._isAnyLayerVisible()||(e.visible=!0);break;case"inherited":e.visible=this.visible}}_isAnyLayerVisible(){return this.layers.some((e=>e.visible))}};(0,s._)([(0,d.Cb)({readOnly:!0,dependsOn:[]})],Z.prototype,"allLayers",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],Z.prototype,"allTables",void 0),(0,s._)([(0,d.Cb)({json:{read:!0,write:!0}})],Z.prototype,"blendMode",void 0),(0,s._)([(0,d.Cb)()],Z.prototype,"fullExtent",void 0),(0,s._)([(0,d.Cb)({readOnly:!0})],Z.prototype,"sourceIsPortalItem",null),(0,s._)([(0,d.Cb)({json:{read:!1,write:{ignoreOrigin:!0}}})],Z.prototype,"layers",void 0),(0,s._)([(0,y.c)("layers")],Z.prototype,"_writeLayers",null),(0,s._)([(0,d.Cb)({type:["GroupLayer"]})],Z.prototype,"operationalLayerType",void 0),(0,s._)([(0,d.Cb)({json:{origins:{"web-map":{read:!1,write:{overridePolicy(e,t,r){return{enabled:"Group Layer"===e?.type&&r?.initiator!==this}}}},"web-scene":{read:!1,write:!1}}}})],Z.prototype,"portalItem",null),(0,s._)([(0,p.r)("web-map","portalItem",["itemId"])],Z.prototype,"readPortalItem",null),(0,s._)([(0,y.c)("web-map","portalItem",{itemId:{type:String}})],Z.prototype,"writePortalItem",null),(0,s._)([(0,d.Cb)()],Z.prototype,"spatialReference",void 0),(0,s._)([(0,d.Cb)({json:{read:!1},readOnly:!0,value:"group"})],Z.prototype,"type",void 0),(0,s._)([(0,d.Cb)({type:["independent","inherited","exclusive"],value:"independent",json:{write:!0,origins:{"web-map":{type:["independent","exclusive"],write:(e,t,r)=>{"inherited"!==e&&(t[r]=e)}}}}})],Z.prototype,"visibilityMode",null),Z=(0,s._)([(0,h.j)("esri.layers.GroupLayer")],Z);const F=Z},87085:(e,t,r)=>{r.d(t,{Z:()=>g});var s=r(43697),i=(r(66577),r(3172)),n=r(20102),o=r(32448),a=r(10699),l=r(83379),u=r(92604),d=r(95330),c=r(17452),p=r(5600),h=(r(75215),r(67676),r(80442),r(52011)),y=r(68773),f=r(6570),m=r(82971);let b=0,v=class extends(o.Z.EventedMixin((0,a.IG)(l.Z))){constructor(){super(...arguments),this.attributionDataUrl=null,this.fullExtent=new f.Z(-180,-90,180,90,m.Z.WGS84),this.id=Date.now().toString(16)+"-layer-"+b++,this.legendEnabled=!0,this.listMode="show",this.opacity=1,this.parent=null,this.persistenceEnabled=!1,this.popupEnabled=!0,this.attributionVisible=!0,this.spatialReference=m.Z.WGS84,this.title=null,this.type=null,this.url=null,this.visible=!0}static async fromArcGISServerUrl(e){const t="string"==typeof e?{url:e}:e;return(await r.e(3529).then(r.bind(r,63529))).fromUrl(t)}static fromPortalItem(e){return async function(e){const t="portalItem"in e?e:{portalItem:e},{fromItem:s}=await r.e(8008).then(r.bind(r,28008));try{return await s(t)}catch(e){const r=t&&t.portalItem,s=r?.id||"unset",i=r&&r.portal&&r.portal.url||y.default.portalUrl;throw u.Z.getLogger("esri.layers.support.fromPortalItem").error("#fromPortalItem()","Failed to create layer from portal item (portal: '"+i+"', id: '"+s+"')",e),e}}(e)}initialize(){this.when().catch((e=>{(0,d.D_)(e)||u.Z.getLogger(this).error("#load()",`Failed to load layer (title: '${this.title??"no title"}', id: '${this.id??"no id"}')`,{error:e})}))}destroy(){const e=this.parent;if(e){const t=this;"layers"in e&&e.layers.includes(t)?e.layers.remove(t):"tables"in e&&e.tables.includes(t)?e.tables.remove(t):"baseLayers"in e&&e.baseLayers.includes(t)?e.baseLayers.remove(t):"referenceLayers"in e&&e.referenceLayers.includes(t)&&e.referenceLayers.remove(t),this._set("parent",null)}}get hasAttributionData(){return null!=this.attributionDataUrl}get parsedUrl(){return(0,c.mN)(this.url)}async fetchAttributionData(){const e=this.attributionDataUrl;if(this.hasAttributionData&&e)return(await(0,i.Z)(e,{query:{f:"json"},responseType:"json"})).data;throw new n.Z("layer:no-attribution-data","Layer does not have attribution data")}};(0,s._)([(0,p.Cb)({type:String})],v.prototype,"attributionDataUrl",void 0),(0,s._)([(0,p.Cb)({type:f.Z})],v.prototype,"fullExtent",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],v.prototype,"hasAttributionData",null),(0,s._)([(0,p.Cb)({type:String,clonable:!1})],v.prototype,"id",void 0),(0,s._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"legendEnabled",void 0),(0,s._)([(0,p.Cb)({type:["show","hide","hide-children"]})],v.prototype,"listMode",void 0),(0,s._)([(0,p.Cb)({type:Number,range:{min:0,max:1},nonNullable:!0})],v.prototype,"opacity",void 0),(0,s._)([(0,p.Cb)({clonable:!1})],v.prototype,"parent",void 0),(0,s._)([(0,p.Cb)({readOnly:!0})],v.prototype,"parsedUrl",null),(0,s._)([(0,p.Cb)({type:Boolean,readOnly:!0})],v.prototype,"persistenceEnabled",void 0),(0,s._)([(0,p.Cb)({type:Boolean})],v.prototype,"popupEnabled",void 0),(0,s._)([(0,p.Cb)({type:Boolean})],v.prototype,"attributionVisible",void 0),(0,s._)([(0,p.Cb)({type:m.Z})],v.prototype,"spatialReference",void 0),(0,s._)([(0,p.Cb)({type:String})],v.prototype,"title",void 0),(0,s._)([(0,p.Cb)({readOnly:!0,json:{read:!1}})],v.prototype,"type",void 0),(0,s._)([(0,p.Cb)()],v.prototype,"url",void 0),(0,s._)([(0,p.Cb)({type:Boolean,nonNullable:!0})],v.prototype,"visible",void 0),v=(0,s._)([(0,h.j)("esri.layers.Layer")],v);const g=v},16859:(e,t,r)=>{r.d(t,{I:()=>I});var s=r(43697),i=r(68773),n=r(40330),o=r(3172),a=r(66643),l=r(20102),u=r(92604),d=r(70586),c=r(95330),p=r(17452),h=r(5600),y=(r(75215),r(67676),r(80442),r(71715)),f=r(52011),m=r(30556),b=r(84230),v=r(48522),g=r(15235),w=r(86082),_=r(14661);const I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0,this.userHasFullEditingPrivileges=!1,this.userHasUpdateItemPrivileges=!1}destroy(){this.portalItem=(0,d.SC)(this.portalItem),this.resourceReferences.portalItem=null,this.resourceReferences.paths.length=0}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r?.portal})}writePortalItem(e,t){e?.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem?.id)try{const{load:s}=await r.e(8062).then(r.bind(r,18062));return(0,c.k_)(t),await s({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData,layerModuleTypeMap:e.layerModuleTypeMap},t)}catch(e){throw(0,c.D_)(e)||u.Z.getLogger(this).warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,c.r9)(e),!0))))}async setUserPrivileges(e,t){if(!i.default.userPrivilegesApplied)return this.finishLoadEditablePortalLayer(t);if(this.url)try{const{features:{edit:r,fullEdit:s},content:{updateItem:i}}=await this._fetchUserPrivileges(e,t);this._set("userHasEditingPrivileges",r),this._set("userHasFullEditingPrivileges",s),this._set("userHasUpdateItemPrivileges",i)}catch(e){(0,c.r9)(e)}}async _fetchUserPrivileges(e,t){let r=this.portalItem;if(!e||!r||!r.loaded||r.sourceUrl)return this._fetchFallbackUserPrivileges(t);const s=e===r.id;if(s&&r.portal.user)return(0,_.Ss)(r);let i,o;if(s)i=r.portal.url;else try{i=await(0,b.oP)(this.url,t)}catch(e){(0,c.r9)(e)}if(!i||!(0,p.Zo)(i,r.portal.url))return this._fetchFallbackUserPrivileges(t);try{const e=null!=t?t.signal:null;o=await(n.id?.getCredential(`${i}/sharing`,{prompt:!1,signal:e}))}catch(e){(0,c.r9)(e)}if(!o)return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}};try{if(s?await r.reload():(r=new g.default({id:e,portal:{url:i}}),await r.load(t)),r.portal.user)return(0,_.Ss)(r)}catch(e){(0,c.r9)(e)}return{features:{edit:!0,fullEdit:!1},content:{updateItem:!1}}}async _fetchFallbackUserPrivileges(e){let t=!0;try{t=await this._fetchUserHasEditingPrivileges(e)}catch(e){(0,c.r9)(e)}return{features:{edit:t,fullEdit:!1},content:{updateItem:!1}}}async _fetchUserHasEditingPrivileges(e){const t=this.url?n.id?.findCredential(this.url):null;if(!t)return!0;const r=C.credential===t?C.user:await this._fetchEditingUser(e);return C.credential=t,C.user=r,null==r?.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){const t=this.portalItem?.portal?.user;if(t)return t;const r=n.id.findServerInfo(this.url??"");if(!r?.owningSystemUrl)return null;const s=`${r.owningSystemUrl}/sharing/rest`,i=v.Z.getDefault();if(i&&i.loaded&&(0,p.Fv)(i.restUrl)===(0,p.Fv)(s))return i.user;const l=`${s}/community/self`,u=null!=e?e.signal:null,d=await(0,a.q6)((0,o.Z)(l,{authMode:"no-prompt",query:{f:"json"},signal:u}));return d.ok?w.Z.fromJSON(d.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t?.portal,s=this.portalItem?.id&&(this.portalItem.portal||v.Z.getDefault());return r&&s&&!(0,p.tm)(s.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save, set layer.portalItem to null or save to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,s._)([(0,h.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,s._)([(0,y.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,s._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,s._)([(0,h.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,s._)([(0,h.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),(0,s._)([(0,h.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasFullEditingPrivileges",void 0),(0,s._)([(0,h.Cb)({type:Boolean,readOnly:!0})],t.prototype,"userHasUpdateItemPrivileges",void 0),t=(0,s._)([(0,f.j)("esri.layers.mixins.PortalLayer")],t),t},C={credential:null,user:null}},97873:(e,t,r)=>{r.d(t,{FO:()=>c,W7:()=>p,addOrUpdateResource:()=>a,fetchResources:()=>o,removeAllResources:()=>u,removeResource:()=>l});var s=r(3172),i=r(20102),n=r(17452);async function o(e,t={},r){await e.load(r);const s=(0,n.v_)(e.itemUrl,"resources"),{start:i=1,num:o=10,sortOrder:a="asc",sortField:l="created"}=t,u={query:{start:i,num:o,sortOrder:a,sortField:l,token:e.apiKey},signal:r?.signal},d=await e.portal.request(s,u);return{total:d.total,nextStart:d.nextStart,resources:d.resources.map((({created:t,size:r,resource:s})=>({created:new Date(t),size:r,resource:e.resourceFromPath(s)})))}}async function a(e,t,r,s){if(!e.hasPath())throw new i.Z(`portal-item-resource-${t}:invalid-path`,"Resource does not have a valid path");const o=e.portalItem;await o.load(s);const a=(0,n.v_)(o.userItemUrl,"add"===t?"addResources":"updateResources"),[l,u]=d(e.path),c=new FormData;return l&&"."!==l&&c.append("resourcesPrefix",l),null!=s&&s.compress&&c.append("compress","true"),c.append("fileName",u),c.append("file",r,u),c.append("f","json"),s?.access&&c.append("access",s.access),await o.portal.request(a,{method:"post",body:c,signal:s?.signal}),e}async function l(e,t,r){if(!t.hasPath())throw new i.Z("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const s=(0,n.v_)(e.userItemUrl,"removeResources");await e.portal.request(s,{method:"post",query:{resource:t.path},signal:r?.signal}),t.portalItem=null}async function u(e,t){await e.load(t);const r=(0,n.v_)(e.userItemUrl,"removeResources");return e.portal.request(r,{method:"post",query:{deleteAll:!0},signal:t?.signal})}function d(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}async function c(e){return"blob"===e.type?e.blob:"json"===e.type?new Blob([e.jsonString],{type:"application/json"}):(await(0,s.Z)(e.url,{responseType:"blob"})).data}function p(e,t){if(!e.hasPath())return null;const[r,,s]=function(e){const[t,r]=function(e){const t=(0,n.Ml)(e);return null==t?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[s,i]=d(t);return[s,i,r]}(e.path);return e.portalItem.resourceFromPath((0,n.v_)(r,t+s))}},12259:(e,t,r)=>{var s;r.d(t,{x:()=>s}),function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(s||(s={}))},35755:(e,t,r)=>{r.d(t,{Hn:()=>l,Pl:()=>y,bx:()=>u});var s=r(66643),i=r(20102),n=r(95330),o=r(41123),a=r(97873);async function l(e,t,r=null){const s=await d(e,t,r);await c(s,t,r)}async function u(e,t,r,s,i=null){const n=await d(r,s,i);await e.update({data:t}),await c(n,s,i)}async function d(e,t,r=null){if(!t?.resources)return;const s=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const l=new Set(t.resources.toKeep.map((e=>e.resource.path))),u=new Set,d=[];l.forEach((t=>{s.delete(t),e.paths.push(t)}));for(const i of t.resources.toUpdate)if(s.delete(i.resource.path),l.has(i.resource.path)||u.has(i.resource.path)){const{resource:t,content:s,finish:n,error:l}=i,u=(0,a.W7)(t,(0,o.D)());e.paths.push(u.path),d.push(p({resource:u,content:s,compress:i.compress,finish:n,error:l},r))}else e.paths.push(i.resource.path),d.push(h(i,r)),u.add(i.resource.path);for(const i of t.resources.toAdd)e.paths.push(i.resource.path),s.has(i.resource.path)?s.delete(i.resource.path):d.push(p(i,r));if(0===d.length)return s;const c=await(0,n.UO)(d);if((0,n.k_)(r),c.length>0)throw new i.Z("save:resources","Failed to save one or more resources",{errors:c});return s}async function c(e,t,r=null){if(!e||!t.portalItem)return;const s=[];for(const i of e){const e=t.portalItem.resourceFromPath(i);s.push(e.portalItem.removeResource(e,r))}await(0,n.as)(s)}async function p(e,t){const r={...null!=t?t:{},compress:e.compress},i=await(0,s.q6)(e.resource.portalItem.addResource(e.resource,await(0,a.FO)(e.content),r));if(!0!==i.ok)throw e.error?.(i.error),i.error;e.finish?.(e.resource)}async function h(e,t){const r=await(0,s.q6)(e.resource.update(await(0,a.FO)(e.content),t));if(!0!==r.ok)throw e.error?.(r.error),r.error;e.finish?.(e.resource)}async function y(e){const t=[];for(const r of e.allLayers)if("beforeSave"in r&&"function"==typeof r.beforeSave){const e=r.beforeSave();e&&t.push(e)}await Promise.allSettled(t)}}}]);
|