@anov/gis 1.7.6 → 1.8.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/.claude/settings.local.json +37 -0
- package/CHANGELOG.md +82 -0
- package/README.md +338 -127
- package/dist/index.css +1 -1
- package/dist/index.js +18012 -58
- package/dist/resources/Assets/approximateTerrainHeights.json +1 -1
- package/dist/resources/ThirdParty/Workers/package.json +1 -0
- package/dist/resources/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/dist/resources/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/resources/ThirdParty/zip-module.wasm +0 -0
- package/dist/resources/Widgets/Animation/Animation.css +127 -1
- package/dist/resources/Widgets/Animation/lighter.css +70 -1
- package/dist/resources/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -1
- package/dist/resources/Widgets/BaseLayerPicker/lighter.css +22 -1
- package/dist/resources/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -1
- package/dist/resources/Widgets/CesiumInspector/CesiumInspector.css +113 -1
- package/dist/resources/Widgets/CesiumWidget/CesiumWidget.css +119 -1
- package/dist/resources/Widgets/CesiumWidget/lighter.css +14 -1
- package/dist/resources/Widgets/FullscreenButton/FullscreenButton.css +8 -1
- package/dist/resources/Widgets/Geocoder/Geocoder.css +70 -1
- package/dist/resources/Widgets/Geocoder/lighter.css +17 -1
- package/dist/resources/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/resources/Widgets/InfoBox/InfoBox.css +92 -1
- package/dist/resources/Widgets/InfoBox/InfoBoxDescription.css +178 -1
- package/dist/resources/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -1
- package/dist/resources/Widgets/NavigationHelpButton/lighter.css +38 -1
- package/dist/resources/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -1
- package/dist/resources/Widgets/ProjectionPicker/ProjectionPicker.css +38 -1
- package/dist/resources/Widgets/SceneModePicker/SceneModePicker.css +56 -1
- package/dist/resources/Widgets/SelectionIndicator/SelectionIndicator.css +20 -1
- package/dist/resources/Widgets/Timeline/Timeline.css +103 -1
- package/dist/resources/Widgets/Timeline/lighter.css +23 -1
- package/dist/resources/Widgets/VRButton/VRButton.css +8 -1
- package/dist/resources/Widgets/Viewer/Viewer.css +107 -1
- package/dist/resources/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/resources/Widgets/lighter.css +237 -1
- package/dist/resources/Widgets/lighterShared.css +46 -1
- package/dist/resources/Widgets/shared.css +103 -1
- package/dist/resources/Widgets/widgets.css +1342 -1
- package/dist/resources/Workers/chunk-2AIOP76V.js +25 -0
- package/dist/resources/Workers/chunk-37ETYCYM.js +25 -0
- package/dist/resources/Workers/chunk-3E7FIXV7.js +25 -0
- package/dist/resources/Workers/chunk-3N6OW3OY.js +25 -0
- package/dist/resources/Workers/{ArcType-de5d8777.js → chunk-3VUCSHGU.js} +2 -2
- package/dist/resources/Workers/chunk-4KY4VMEH.js +25 -0
- package/dist/resources/Workers/chunk-4WQ4VT5S.js +25 -0
- package/dist/resources/Workers/chunk-5AAMOBJK.js +25 -0
- package/dist/resources/Workers/chunk-5DGDPBQU.js +25 -0
- package/dist/resources/Workers/chunk-5VFNV3LW.js +25 -0
- package/dist/resources/Workers/chunk-5Z36UAB7.js +25 -0
- package/dist/resources/Workers/chunk-6AEO73KW.js +25 -0
- package/dist/resources/Workers/chunk-6DLS2UKD.js +25 -0
- package/dist/resources/Workers/{GeometryAttributes-734a3446.js → chunk-6EINM7EY.js} +2 -2
- package/dist/resources/Workers/chunk-6W2XFGWI.js +25 -0
- package/dist/resources/Workers/chunk-7GCQCPLT.js +25 -0
- package/dist/resources/Workers/chunk-7TN3TOVQ.js +25 -0
- package/dist/resources/Workers/chunk-A4I25VN7.js +25 -0
- package/dist/resources/Workers/{GeometryOffsetAttribute-59b14f45.js → chunk-AJH5KBOO.js} +2 -2
- package/dist/resources/Workers/chunk-AKELQO2L.js +25 -0
- package/dist/resources/Workers/chunk-ALIHIWSS.js +25 -0
- package/dist/resources/Workers/chunk-ATKJRN2G.js +25 -0
- package/dist/resources/Workers/chunk-BDWA46XV.js +25 -0
- package/dist/resources/Workers/chunk-BKIYVF74.js +25 -0
- package/dist/resources/Workers/chunk-BPABSUDY.js +25 -0
- package/dist/resources/Workers/chunk-D3TVNJ6W.js +25 -0
- package/dist/resources/Workers/chunk-DM7KUSL2.js +25 -0
- package/dist/resources/Workers/chunk-E7EKLP3B.js +25 -0
- package/dist/resources/Workers/{GeometryInstance-4bfcfe78.js → chunk-G2QPRBZU.js} +2 -2
- package/dist/resources/Workers/chunk-G3GDHHWO.js +25 -0
- package/dist/resources/Workers/chunk-G72JFEXW.js +25 -0
- package/dist/resources/Workers/chunk-IAE6APK2.js +25 -0
- package/dist/resources/Workers/chunk-IEITL4VO.js +25 -0
- package/dist/resources/Workers/chunk-LHBFSFJE.js +25 -0
- package/dist/resources/Workers/chunk-LN2UT4R3.js +25 -0
- package/dist/resources/Workers/chunk-LNJEJFV5.js +66 -0
- package/dist/resources/Workers/{defaultValue-97284df2.js → chunk-ML6MR2RA.js} +2 -2
- package/dist/resources/Workers/chunk-MOHWP7VV.js +25 -0
- package/dist/resources/Workers/chunk-NZBME2JK.js +25 -0
- package/dist/resources/Workers/chunk-P5EFSOUF.js +25 -0
- package/dist/resources/Workers/chunk-P7N43FDO.js +25 -0
- package/dist/resources/Workers/{combine-d11b1f00.js → chunk-PEDE2P3Q.js} +2 -2
- package/dist/resources/Workers/chunk-PSIOCLX7.js +25 -0
- package/dist/resources/Workers/chunk-PYMQNHFO.js +25 -0
- package/dist/resources/Workers/chunk-QJTXFT4R.js +25 -0
- package/dist/resources/Workers/chunk-QNPYEODC.js +25 -0
- package/dist/resources/Workers/chunk-QS7V5G6Y.js +25 -0
- package/dist/resources/Workers/chunk-RDX4QSUS.js +25 -0
- package/dist/resources/Workers/chunk-RESOCDYZ.js +25 -0
- package/dist/resources/Workers/chunk-SRA5MBUT.js +25 -0
- package/dist/resources/Workers/chunk-TCOMWBL2.js +25 -0
- package/dist/resources/Workers/chunk-UA7PAMQQ.js +25 -0
- package/dist/resources/Workers/chunk-W5OEMTMB.js +25 -0
- package/dist/resources/Workers/chunk-WGIRJIIK.js +25 -0
- package/dist/resources/Workers/{CylinderGeometryLibrary-24ad1484.js → chunk-XRJOFXJF.js} +2 -2
- package/dist/resources/Workers/chunk-YP4SXJYZ.js +25 -0
- package/dist/resources/Workers/chunk-Z7Q4J7AE.js +25 -0
- package/dist/resources/Workers/combineGeometry.js +2 -2
- package/dist/resources/Workers/createBoxGeometry.js +2 -2
- package/dist/resources/Workers/createBoxOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCircleGeometry.js +2 -2
- package/dist/resources/Workers/createCircleOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCorridorGeometry.js +2 -2
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createCylinderGeometry.js +2 -2
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createEllipseGeometry.js +2 -2
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createEllipsoidGeometry.js +2 -2
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createFrustumGeometry.js +2 -2
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createGeometry.js +2 -2
- package/dist/resources/Workers/createGroundPolylineGeometry.js +2 -2
- package/dist/resources/Workers/createPlaneGeometry.js +2 -2
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createPolygonGeometry.js +2 -2
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +2 -2
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createRectangleGeometry.js +2 -2
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createSimplePolylineGeometry.js +2 -2
- package/dist/resources/Workers/createSphereGeometry.js +2 -2
- package/dist/resources/Workers/createSphereOutlineGeometry.js +2 -2
- package/dist/resources/Workers/createTaskProcessorWorker.js +2 -2
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +2 -2
- package/dist/resources/Workers/createVectorTileGeometries.js +2 -2
- package/dist/resources/Workers/createVectorTilePoints.js +2 -2
- package/dist/resources/Workers/createVectorTilePolygons.js +2 -2
- package/dist/resources/Workers/createVectorTilePolylines.js +2 -2
- package/dist/resources/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -0
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2 -4
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/dist/resources/Workers/createWallGeometry.js +2 -2
- package/dist/resources/Workers/createWallOutlineGeometry.js +2 -2
- package/dist/resources/Workers/decodeDraco.js +2 -2
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/dist/resources/Workers/decodeI3S.js +25 -0
- package/dist/resources/Workers/gaussianSplatSorter.js +25 -0
- package/dist/resources/Workers/{_commonjsHelpers-3aae1032-65601a27.js → gaussianSplatTextureGenerator.js} +2 -2
- package/dist/resources/Workers/incrementallyBuildTerrainPicker.js +25 -0
- package/dist/resources/Workers/transcodeKTX2.js +2 -2
- package/dist/resources/Workers/transferTypedArrayTest.js +25 -1
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/dist/resources/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -0
- package/dist/resources/static/js/viewerCesiumNavigationMixin.js +1 -1
- package/package.json +13 -13
- package/scripts/release.js +323 -0
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +0 -1
- package/dist/resources/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +0 -1
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +0 -1
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +0 -1
- package/dist/resources/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/dist/resources/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/dist/resources/Workers/AttributeCompression-5744d52e.js +0 -25
- package/dist/resources/Workers/AxisAlignedBoundingBox-b1c095aa.js +0 -25
- package/dist/resources/Workers/BoundingRectangle-2b0ebbdd.js +0 -25
- package/dist/resources/Workers/BoxGeometry-acd0c697.js +0 -25
- package/dist/resources/Workers/Color-c7fd1307.js +0 -25
- package/dist/resources/Workers/ComponentDatatype-e7fbe225.js +0 -25
- package/dist/resources/Workers/CoplanarPolygonGeometryLibrary-edaba606.js +0 -25
- package/dist/resources/Workers/CorridorGeometryLibrary-ab3e6481.js +0 -25
- package/dist/resources/Workers/CylinderGeometry-679e50b4.js +0 -25
- package/dist/resources/Workers/EllipseGeometry-e6f948bb.js +0 -25
- package/dist/resources/Workers/EllipseGeometryLibrary-0adcaeed.js +0 -25
- package/dist/resources/Workers/EllipseOutlineGeometry-418492dc.js +0 -25
- package/dist/resources/Workers/EllipsoidGeodesic-ed8a0e40.js +0 -25
- package/dist/resources/Workers/EllipsoidGeometry-539fb9e2.js +0 -25
- package/dist/resources/Workers/EllipsoidOutlineGeometry-6c13760b.js +0 -25
- package/dist/resources/Workers/EllipsoidRhumbLine-60f14314.js +0 -25
- package/dist/resources/Workers/EllipsoidTangentPlane-7ae496b2.js +0 -25
- package/dist/resources/Workers/EncodedCartesian3-a9a8a281.js +0 -25
- package/dist/resources/Workers/FrustumGeometry-be9b9578.js +0 -25
- package/dist/resources/Workers/GeometryAttribute-fd1d7e90.js +0 -25
- package/dist/resources/Workers/GeometryPipeline-a847e31f.js +0 -25
- package/dist/resources/Workers/IndexDatatype-65271ba3.js +0 -25
- package/dist/resources/Workers/IntersectionTests-33ace2d6.js +0 -25
- package/dist/resources/Workers/Matrix2-73789715.js +0 -25
- package/dist/resources/Workers/OrientedBoundingBox-ee3011f6.js +0 -25
- package/dist/resources/Workers/Plane-e916220d.js +0 -25
- package/dist/resources/Workers/PolygonGeometryLibrary-0f0c78d4.js +0 -25
- package/dist/resources/Workers/PolygonPipeline-00dc0c6e.js +0 -25
- package/dist/resources/Workers/PolylinePipeline-ebd42f23.js +0 -25
- package/dist/resources/Workers/PolylineVolumeGeometryLibrary-a4b92b4e.js +0 -25
- package/dist/resources/Workers/PrimitivePipeline-42d69f96.js +0 -25
- package/dist/resources/Workers/RectangleGeometryLibrary-cff60d30.js +0 -25
- package/dist/resources/Workers/RuntimeError-4f8ec8a2.js +0 -25
- package/dist/resources/Workers/TerrainEncoding-080f16eb.js +0 -25
- package/dist/resources/Workers/Transforms-d3d3b2a9.js +0 -66
- package/dist/resources/Workers/VertexFormat-9886cb81.js +0 -25
- package/dist/resources/Workers/WallGeometryLibrary-27f90b78.js +0 -25
- package/dist/resources/Workers/WebGLConstants-6da700a2.js +0 -25
- package/dist/resources/Workers/WebMercatorProjection-04ef6bc3.js +0 -25
- package/dist/resources/Workers/arrayRemoveDuplicates-6f91355d.js +0 -25
- package/dist/resources/Workers/cesiumWorkerBootstrapper.js +0 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.143.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -22,4 +22,4 @@
|
|
|
22
22
|
* Portions licensed separately.
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
import{a as w}from"./chunk-3E7FIXV7.js";var C={computePositions:function(t,o,a,r,n){let s,e=.5*t,i=-e,c=r+r,u=new Float64Array(3*(n?2*c:c)),f=0,h=0,l=n?3*c:0,m=n?3*(c+r):3*r;for(s=0;s<r;s++){let t=s/r*w.TWO_PI,c=Math.cos(t),p=Math.sin(t),C=c*a,F=p*a,I=c*o,M=p*o;u[h+l]=C,u[h+l+1]=F,u[h+l+2]=i,u[h+m]=I,u[h+m+1]=M,u[h+m+2]=e,h+=3,n&&(u[f++]=C,u[f++]=F,u[f++]=i,u[f++]=I,u[f++]=M,u[f++]=e)}return u}},Y=C;export{Y as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as F}from"./chunk-ML6MR2RA.js";import{a as Z}from"./chunk-4WQ4VT5S.js";import{a as X}from"./chunk-6EINM7EY.js";import{b as K,c as Q,d as U}from"./chunk-A4I25VN7.js";import{c as H}from"./chunk-D3TVNJ6W.js";import{a as y}from"./chunk-ATKJRN2G.js";import{c as J}from"./chunk-2AIOP76V.js";import{a as r,c as V}from"./chunk-IAE6APK2.js";import{a as N}from"./chunk-3E7FIXV7.js";import{a as b}from"./chunk-NZBME2JK.js";import{f as R}from"./chunk-6DLS2UKD.js";var ii=new r(1,1,1),B=Math.cos,S=Math.sin;function v(i){let t=(i=i??V.EMPTY_OBJECT).radii??ii,o=i.innerRadii??t,e=i.minimumClock??0,n=i.maximumClock??N.TWO_PI,a=i.minimumCone??0,s=i.maximumCone??N.PI,m=Math.round(i.stackPartitions??10),u=Math.round(i.slicePartitions??8),f=Math.round(i.subdivisions??128);if(m<1)throw new b("options.stackPartitions cannot be less than 1");if(u<0)throw new b("options.slicePartitions cannot be less than 0");if(f<0)throw new b("options.subdivisions must be greater than or equal to zero.");if(R(i.offsetAttribute)&&i.offsetAttribute===F.TOP)throw new b("GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry.");this._radii=r.clone(t),this._innerRadii=r.clone(o),this._minimumClock=e,this._maximumClock=n,this._minimumCone=a,this._maximumCone=s,this._stackPartitions=m,this._slicePartitions=u,this._subdivisions=f,this._offsetAttribute=i.offsetAttribute,this._workerName="createEllipsoidOutlineGeometry"}v.packedLength=2*r.packedLength+8,v.pack=function(i,t,o){if(!R(i))throw new b("value is required");if(!R(t))throw new b("array is required");return o=o??0,r.pack(i._radii,t,o),o+=r.packedLength,r.pack(i._innerRadii,t,o),o+=r.packedLength,t[o++]=i._minimumClock,t[o++]=i._maximumClock,t[o++]=i._minimumCone,t[o++]=i._maximumCone,t[o++]=i._stackPartitions,t[o++]=i._slicePartitions,t[o++]=i._subdivisions,t[o]=i._offsetAttribute??-1,t};var $=new r,G=new r,l={radii:$,innerRadii:G,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0,offsetAttribute:void 0};v.unpack=function(i,t,o){if(!R(i))throw new b("array is required");t=t??0;let e=r.unpack(i,t,$);t+=r.packedLength;let n=r.unpack(i,t,G);t+=r.packedLength;let a=i[t++],s=i[t++],m=i[t++],u=i[t++],f=i[t++],c=i[t++],h=i[t++],d=i[t];return R(o)?(o._radii=r.clone(e,o._radii),o._innerRadii=r.clone(n,o._innerRadii),o._minimumClock=a,o._maximumClock=s,o._minimumCone=m,o._maximumCone=u,o._stackPartitions=f,o._slicePartitions=c,o._subdivisions=h,o._offsetAttribute=-1===d?void 0:d,o):(l.minimumClock=a,l.maximumClock=s,l.minimumCone=m,l.maximumCone=u,l.stackPartitions=f,l.slicePartitions=c,l.subdivisions=h,l.offsetAttribute=-1===d?void 0:d,new v(l))},v.createGeometry=function(i){let t=i._radii;if(t.x<=0||t.y<=0||t.z<=0)return;let r=i._innerRadii;if(r.x<=0||r.y<=0||r.z<=0)return;let o=i._minimumClock,e=i._maximumClock,n=i._minimumCone,a=i._maximumCone,s=i._subdivisions,m=J.fromCartesian3(t),u=i._slicePartitions+1,f=i._stackPartitions+1;u=Math.round(u*Math.abs(e-o)/N.TWO_PI),f=Math.round(f*Math.abs(a-n)/N.PI),u<2&&(u=2),f<2&&(f=2);let c=0,l=1,h=r.x!==t.x||r.y!==t.y||r.z!==t.z,d=!1,_=!1;h&&(l=2,n>0&&(d=!0,c+=u),a<Math.PI&&(_=!0,c+=u));let k,p,b,v,C=s*l*(f+u),w=new Float64Array(3*C),A=2*(C+c-(u+f)*l),P=Z.createTypedArray(C,A),x=0,M=new Array(f),g=new Array(f);for(k=0;k<f;k++)v=n+k*(a-n)/(f-1),M[k]=S(v),g[k]=B(v);let E=new Array(s),I=new Array(s);for(k=0;k<s;k++)b=o+k*(e-o)/(s-1),E[k]=S(b),I[k]=B(b);for(k=0;k<f;k++)for(p=0;p<s;p++)w[x++]=t.x*M[k]*I[p],w[x++]=t.y*M[k]*E[p],w[x++]=t.z*g[k];if(h)for(k=0;k<f;k++)for(p=0;p<s;p++)w[x++]=r.x*M[k]*I[p],w[x++]=r.y*M[k]*E[p],w[x++]=r.z*g[k];for(M.length=s,g.length=s,k=0;k<s;k++)v=n+k*(a-n)/(s-1),M[k]=S(v),g[k]=B(v);for(E.length=u,I.length=u,k=0;k<u;k++)b=o+k*(e-o)/(u-1),E[k]=S(b),I[k]=B(b);for(k=0;k<s;k++)for(p=0;p<u;p++)w[x++]=t.x*M[k]*I[p],w[x++]=t.y*M[k]*E[p],w[x++]=t.z*g[k];if(h)for(k=0;k<s;k++)for(p=0;p<u;p++)w[x++]=r.x*M[k]*I[p],w[x++]=r.y*M[k]*E[p],w[x++]=r.z*g[k];for(x=0,k=0;k<f*l;k++){let i=k*s;for(p=0;p<s-1;p++)P[x++]=i+p,P[x++]=i+p+1}let T=f*s*l;for(k=0;k<u;k++)for(p=0;p<s-1;p++)P[x++]=T+k+p*u,P[x++]=T+k+(p+1)*u;if(h)for(T=f*s*l+u*s,k=0;k<u;k++)for(p=0;p<s-1;p++)P[x++]=T+k+p*u,P[x++]=T+k+(p+1)*u;if(h){let i=f*s*l,t=i+s*u;if(d)for(k=0;k<u;k++)P[x++]=i+k,P[x++]=t+k;if(_)for(i+=s*u-u,t+=s*u-u,k=0;k<u;k++)P[x++]=i+k,P[x++]=t+k}let j=new X({position:new U({componentDatatype:y.DOUBLE,componentsPerAttribute:3,values:w})});if(R(i._offsetAttribute)){let t=w.length,r=i._offsetAttribute===F.NONE?0:1,o=new Uint8Array(t/3).fill(r);j.applyOffset=new U({componentDatatype:y.UNSIGNED_BYTE,componentsPerAttribute:1,values:o})}return new Q({attributes:j,indices:P,primitiveType:K.LINES,boundingSphere:H.fromEllipsoid(m),offsetAttribute:i._offsetAttribute})};var Ci=v;export{Ci as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as y}from"./chunk-G72JFEXW.js";import{c as W}from"./chunk-D3TVNJ6W.js";import{j as k}from"./chunk-LNJEJFV5.js";import{b as h}from"./chunk-BPABSUDY.js";import{a as A}from"./chunk-ATKJRN2G.js";import{a as F,b as T,c as w}from"./chunk-2AIOP76V.js";import{a as s}from"./chunk-IAE6APK2.js";import{a as _}from"./chunk-3E7FIXV7.js";import{a as I,b as r}from"./chunk-NZBME2JK.js";import{f as l}from"./chunk-6DLS2UKD.js";function b(e,t){r.typeOf.object("ellipsoid",e),this._ellipsoid=e,this._cameraPosition=new s,this._cameraPositionInScaledSpace=new s,this._distanceToLimbInScaledSpaceSquared=0,l(t)&&(this.cameraPosition=t)}Object.defineProperties(b.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},cameraPosition:{get:function(){return this._cameraPosition},set:function(e){let t=this._ellipsoid.transformPositionToScaledSpace(e,this._cameraPositionInScaledSpace),i=s.magnitudeSquared(t)-1;s.clone(e,this._cameraPosition),this._cameraPositionInScaledSpace=t,this._distanceToLimbInScaledSpaceSquared=i}}});var L=new s;b.prototype.isPointVisible=function(e){return D(this._ellipsoid.transformPositionToScaledSpace(e,L),this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)},b.prototype.isScaledSpacePointVisible=function(e){return D(e,this._cameraPositionInScaledSpace,this._distanceToLimbInScaledSpaceSquared)};var et=new s;b.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid=function(e,t){let i,r,o=this._ellipsoid;return l(t)&&t<0&&o.minimumRadius>-t?(r=et,r.x=this._cameraPosition.x/(o.radii.x+t),r.y=this._cameraPosition.y/(o.radii.y+t),r.z=this._cameraPosition.z/(o.radii.z+t),i=r.x*r.x+r.y*r.y+r.z*r.z-1):(r=this._cameraPositionInScaledSpace,i=this._distanceToLimbInScaledSpaceSquared),D(e,r,i)},b.prototype.computeHorizonCullingPoint=function(e,t,i){return Q(this._ellipsoid,e,t,i)};var U=w.clone(w.UNIT_SPHERE);b.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid=function(e,t,i,r){return Q(v(this._ellipsoid,i,U),e,t,r)},b.prototype.computeHorizonCullingPointFromVertices=function(e,t,i,r,o){return Z(this._ellipsoid,e,t,i,r,o)},b.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid=function(e,t,i,r,o,s){return Z(v(this._ellipsoid,o,U),e,t,i,r,s)};var ot=[];b.prototype.computeHorizonCullingPointFromRectangle=function(e,t,i){r.typeOf.object("rectangle",e);let o=k.subsample(e,t,0,ot),n=W.fromPoints(o);if(!(s.magnitude(n.center)<.1*t.minimumRadius))return this.computeHorizonCullingPoint(n.center,o,i)};var it=new s;function v(e,t,i){if(l(t)&&t<0&&e.minimumRadius>-t){let r=s.fromElements(e.radii.x+t,e.radii.y+t,e.radii.z+t,it);e=w.fromCartesian3(r,i)}return e}function Q(e,t,i,o){r.typeOf.object("directionToPoint",t),r.defined("positions",i),l(o)||(o=new s);let n=K(e,t),a=0;for(let t=0,r=i.length;t<r;++t){let r=B(e,i[t],n);if(r<0)return;a=Math.max(a,r)}return J(n,a,o)}var q=new s;function Z(e,t,i,o,n,a){r.typeOf.object("directionToPoint",t),r.defined("vertices",i),r.typeOf.number("stride",o),l(a)||(a=new s),o=o??3,n=n??s.ZERO;let c=K(e,t),u=0;for(let t=0,r=i.length;t<r;t+=o){q.x=i[t]+n.x,q.y=i[t+1]+n.y,q.z=i[t+2]+n.z;let r=B(e,q,c);if(r<0)return;u=Math.max(u,r)}return J(c,u,a)}function D(e,t,i){let r=t,o=i,n=s.subtract(e,r,L),a=-s.dot(n,r);return!(o<0?a>0:a>o&&a*a/s.magnitudeSquared(n)>o)}var nt=new s,at=new s;function B(e,t,i){let r=e.transformPositionToScaledSpace(t,nt),o=s.magnitudeSquared(r),n=Math.sqrt(o),a=s.divideByScalar(r,n,at);o=Math.max(1,o),n=Math.max(1,n);let c=1/n;return 1/(s.dot(a,i)*c-s.magnitude(s.cross(a,i,a))*(Math.sqrt(o-1)*c))}function J(e,t,i){if(!(t<=0||t===1/0||t!=t))return s.multiplyByScalar(e,t,i)}var R=new s;function K(e,t){return s.equals(t,s.ZERO)?t:(e.transformPositionToScaledSpace(t,R),s.normalize(R,R))}var Nt=b,j={getHeight:function(e,t,i){if(!Number.isFinite(t))throw new I("scale must be a finite number.");if(!Number.isFinite(i))throw new I("relativeHeight must be a finite number.");return(e-i)*t+i}},st=new F;j.getPosition=function(e,t,i,r,o){let n=t.cartesianToCartographic(e,st);if(!l(n))return s.clone(e,o);let a=j.getHeight(n.height,i,r);return s.fromRadians(n.longitude,n.latitude,a,t,o)};var X=j,Y={NONE:0,BITS12:1};Object.freeze(Y);var g=Y,C=new s,ct=new s,N=new T,rt=new h,mt=new h,dt=Math.pow(2,12);function p(e,t,i,r,o,n,a,c,u,m){let f,d,p=g.NONE;if(l(t)&&l(i)&&l(r)&&l(o)){let n=t.minimum,a=t.maximum,c=s.subtract(a,n,ct),l=r-i;p=Math.max(s.maximumComponent(c),l)<dt-1?g.BITS12:g.NONE;let u=h.fromScale(c,rt);u=h.setTranslation(u,n,u);let m=h.fromScale(s.fromElements(1/c.x,1/c.y,1/c.z,C),mt);m=h.multiplyByTranslation(m,s.negate(n,C),m),d=h.clone(o,new h);let y=h.getTranslation(o,C);y=s.subtract(y,e,C),d=h.setTranslation(d,y,d),d=h.multiply(d,u,d),f=h.inverseTransformation(o,new h),f=h.multiply(m,f,f),o=h.multiply(o,u,new h)}this.quantization=p,this.minimumHeight=i,this.maximumHeight=r,this.center=s.clone(e),this.toScaledENU=f,this.fromScaledENU=o,this.matrix=d,this.hasVertexNormals=n??!1,this.hasWebMercatorT=a??!1,this.hasGeodeticSurfaceNormals=c??!1,this.exaggeration=u??1,this.exaggerationRelativeHeight=m??0,this.stride=0,this._offsetGeodeticSurfaceNormal=0,this._offsetVertexNormal=0,this._calculateStrideAndOffsets()}p.prototype.encode=function(e,t,i,o,s,n,a,c){r.typeOf.object("vertexBuffer",e),r.typeOf.number("bufferIndex",t),r.typeOf.object("position",i),r.typeOf.object("uv",o),r.typeOf.number("height",s);let l=o.x,u=o.y;if(this.quantization===g.BITS12){(i=h.multiplyByPoint(this.toScaledENU,i,C)).x=_.clamp(i.x,0,1),i.y=_.clamp(i.y,0,1),i.z=_.clamp(i.z,0,1);let r=this.maximumHeight-this.minimumHeight,o=_.clamp((s-this.minimumHeight)/r,0,1);T.fromElements(i.x,i.y,N);let n=y.compressTextureCoordinates(N);T.fromElements(i.z,o,N);let c=y.compressTextureCoordinates(N);T.fromElements(l,u,N);let m=y.compressTextureCoordinates(N);if(e[t++]=n,e[t++]=c,e[t++]=m,this.hasWebMercatorT){T.fromElements(a,0,N);let i=y.compressTextureCoordinates(N);e[t++]=i}}else e[t++]=i.x-this.center.x,e[t++]=i.y-this.center.y,e[t++]=i.z-this.center.z,e[t++]=s,e[t++]=l,e[t++]=u,this.hasWebMercatorT&&(e[t++]=a);return this.hasVertexNormals&&(e[t++]=y.octPackFloat(n)),this.hasGeodeticSurfaceNormals&&(e[t++]=c.x,e[t++]=c.y,e[t++]=c.z),t};var ht=new s,$=new s;p.prototype.addGeodeticSurfaceNormals=function(e,t,i){if(r.typeOf.object("oldBuffer",e),r.typeOf.object("newBuffer",t),r.typeOf.object("ellipsoid",i),this.hasGeodeticSurfaceNormals)return;let o=this.stride,s=e.length/o;this.hasGeodeticSurfaceNormals=!0,this._calculateStrideAndOffsets();let n=this.stride;for(let r=0;r<s;r++){for(let i=0;i<o;i++){let s=r*o+i;t[r*n+i]=e[s]}let s=this.decodePosition(t,r,ht),a=i.geodeticSurfaceNormal(s,$),c=r*n+this._offsetGeodeticSurfaceNormal;t[c]=a.x,t[c+1]=a.y,t[c+2]=a.z}},p.prototype.removeGeodeticSurfaceNormals=function(e,t){if(r.typeOf.object("oldBuffer",e),r.typeOf.object("newBuffer",t),!this.hasGeodeticSurfaceNormals)return;let i=this.stride,o=e.length/i;this.hasGeodeticSurfaceNormals=!1,this._calculateStrideAndOffsets();let s=this.stride;for(let r=0;r<o;r++)for(let o=0;o<s;o++){let n=r*i+o;t[r*s+o]=e[n]}},p.prototype.decodePosition=function(e,t,i){if(r.typeOf.object("buffer",e),r.typeOf.number("index",t),l(i)||(i=new s),t*=this.stride,this.quantization===g.BITS12){let r=y.decompressTextureCoordinates(e[t],N);i.x=r.x,i.y=r.y;let o=y.decompressTextureCoordinates(e[t+1],N);return i.z=o.x,h.multiplyByPoint(this.fromScaledENU,i,i)}return i.x=e[t],i.y=e[t+1],i.z=e[t+2],s.add(i,this.center,i)},p.prototype.getExaggeratedPosition=function(e,t,i){i=this.decodePosition(e,t,i);let r=this.exaggeration,o=this.exaggerationRelativeHeight;if(1!==r&&this.hasGeodeticSurfaceNormals){let s=this.decodeGeodeticSurfaceNormal(e,t,$),n=this.decodeHeight(e,t),a=X.getHeight(n,r,o)-n;i.x+=s.x*a,i.y+=s.y*a,i.z+=s.z*a}return i},p.prototype.decodeTextureCoordinates=function(e,t,i){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),l(i)||(i=new T),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+2],i):T.fromElements(e[t+4],e[t+5],i)},p.prototype.decodeHeight=function(e,t){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+1],N).y*(this.maximumHeight-this.minimumHeight)+this.minimumHeight:e[t+3]},p.prototype.decodeWebMercatorT=function(e,t){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),t*=this.stride,this.quantization===g.BITS12?y.decompressTextureCoordinates(e[t+3],N).x:e[t+6]},p.prototype.getOctEncodedNormal=function(e,t,i){r.typeOf.object("buffer",e),r.typeOf.number("index",t);let o=e[t=t*this.stride+this._offsetVertexNormal]/256,s=Math.floor(o),n=256*(o-s);return T.fromElements(s,n,i)},p.prototype.decodeNormal=function(e,t,i){r.typeOf.object("buffer",e),r.typeOf.number("index",t),r.typeOf.object("result",i);let o=t=t*this.stride+this._offsetVertexNormal;return y.octDecodeFloat(e[o],i)},p.prototype.decodeGeodeticSurfaceNormal=function(e,t,i){return r.typeOf.object("buffer",e),r.typeOf.number("index",t),r.typeOf.object("result",i),t=t*this.stride+this._offsetGeodeticSurfaceNormal,i.x=e[t],i.y=e[t+1],i.z=e[t+2],i},p.prototype._calculateStrideAndOffsets=function(){let e=0;this.quantization===g.BITS12?e+=3:e+=6,this.hasWebMercatorT&&(e+=1),this.hasVertexNormals&&(this._offsetVertexNormal=e,e+=1),this.hasGeodeticSurfaceNormals&&(this._offsetGeodeticSurfaceNormal=e,e+=3),this.stride=e};var M={position3DAndHeight:0,textureCoordAndEncodedNormals:1,geodeticSurfaceNormal:2},V={compressed0:0,compressed1:1,geodeticSurfaceNormal:2};p.prototype.getAttributes=function(e){r.typeOf.object("buffer",e);let t=A.FLOAT,i=A.getSizeInBytes(t),o=this.stride*i,s=0,n=[];function a(r,a){n.push({index:r,vertexBuffer:e,componentDatatype:t,componentsPerAttribute:a,offsetInBytes:s,strideInBytes:o}),s+=a*i}if(this.quantization===g.NONE){a(M.position3DAndHeight,4);let e=2;e+=this.hasWebMercatorT?1:0,e+=this.hasVertexNormals?1:0,a(M.textureCoordAndEncodedNormals,e),this.hasGeodeticSurfaceNormals&&a(M.geodeticSurfaceNormal,3)}else{let e=this.hasWebMercatorT||this.hasVertexNormals,t=this.hasWebMercatorT&&this.hasVertexNormals;a(V.compressed0,e?4:3),t&&a(V.compressed1,1),this.hasGeodeticSurfaceNormals&&a(V.geodeticSurfaceNormal,3)}return n},p.prototype.getAttributeLocations=function(){return this.quantization===g.NONE?M:V},p.clone=function(e,t){if(l(e))return l(t)||(t=new p),t.quantization=e.quantization,t.minimumHeight=e.minimumHeight,t.maximumHeight=e.maximumHeight,t.center=s.clone(e.center),t.toScaledENU=h.clone(e.toScaledENU),t.fromScaledENU=h.clone(e.fromScaledENU),t.matrix=h.clone(e.matrix),t.hasVertexNormals=e.hasVertexNormals,t.hasWebMercatorT=e.hasWebMercatorT,t.hasGeodeticSurfaceNormals=e.hasGeodeticSurfaceNormals,t.exaggeration=e.exaggeration,t.exaggerationRelativeHeight=e.exaggerationRelativeHeight,t._calculateStrideAndOffsets(),t};var At=p;export{Nt as a,X as b,At as c};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{d as j}from"./chunk-2AIOP76V.js";import{c as g}from"./chunk-IAE6APK2.js";import{a as i}from"./chunk-3E7FIXV7.js";import{b as C}from"./chunk-NZBME2JK.js";import{f as O}from"./chunk-6DLS2UKD.js";function a(e,r,t){return t<0&&(t+=1),t>1&&(t-=1),6*t<1?e+6*(r-e)*t:2*t<1?r:3*t<2?e+(r-e)*(2/3-t)*6:e}var l,A,m,e=class e{constructor(e,r,t,o){this.red=e??1,this.green=r??1,this.blue=t??1,this.alpha=o??1}static fromCartesian4(r,t){return C.typeOf.object("cartesian",r),O(t)?(t.red=r.x,t.green=r.y,t.blue=r.z,t.alpha=r.w,t):new e(r.x,r.y,r.z,r.w)}static fromBytes(r,t,o,s,C){return r=e.byteToFloat(r??255),t=e.byteToFloat(t??255),o=e.byteToFloat(o??255),s=e.byteToFloat(s??255),O(C)?(C.red=r,C.green=t,C.blue=o,C.alpha=s,C):new e(r,t,o,s)}static fromAlpha(r,t,o){return C.typeOf.object("color",r),C.typeOf.number("alpha",t),O(o)?(o.red=r.red,o.green=r.green,o.blue=r.blue,o.alpha=t,o):new e(r.red,r.green,r.blue,t)}static fromRgba(r,t){return A[0]=r,e.fromBytes(m[0],m[1],m[2],m[3],t)}static fromHsl(r,t,o,s,C){r=(r??0)%1,s=s??1;let f=o=o??0,l=o,n=o;if(0!==(t=t??0)){let e;e=o<.5?o*(1+t):o+t-o*t;let s=2*o-e;f=a(s,e,r+1/3),l=a(s,e,r),n=a(s,e,r-1/3)}return O(C)?(C.red=f,C.green=l,C.blue=n,C.alpha=s,C):new e(f,l,n,s)}static fromRandom(r,t){let o=(r=r??g.EMPTY_OBJECT).red;if(!O(o)){let e=r.minimumRed??0,t=r.maximumRed??1;C.typeOf.number.lessThanOrEquals("minimumRed",e,t),o=e+i.nextRandomNumber()*(t-e)}let s=r.green;if(!O(s)){let e=r.minimumGreen??0,t=r.maximumGreen??1;C.typeOf.number.lessThanOrEquals("minimumGreen",e,t),s=e+i.nextRandomNumber()*(t-e)}let f=r.blue;if(!O(f)){let e=r.minimumBlue??0,t=r.maximumBlue??1;C.typeOf.number.lessThanOrEquals("minimumBlue",e,t),f=e+i.nextRandomNumber()*(t-e)}let l=r.alpha;if(!O(l)){let e=r.minimumAlpha??0,t=r.maximumAlpha??1;C.typeOf.number.lessThanOrEquals("minimumAlpha",e,t),l=e+i.nextRandomNumber()*(t-e)}return O(t)?(t.red=o,t.green=s,t.blue=f,t.alpha=l,t):new e(o,s,f,l)}static fromCssColorString(r,t){C.typeOf.string("color",r),O(t)||(t=new e),r=r.trim();let o=e[r.toUpperCase()];if(O(o))return e.clone(o,t),t;let s=z.exec(r);return null!==s?(t.red=parseInt(s[1],16)/15,t.green=parseInt(s[2],16)/15,t.blue=parseInt(s[3],16)/15,t.alpha=parseInt(s[4]??"f",16)/15,t):(s=R.exec(r),null!==s?(t.red=parseInt(s[1],16)/255,t.green=parseInt(s[2],16)/255,t.blue=parseInt(s[3],16)/255,t.alpha=parseInt(s[4]??"ff",16)/255,t):(s=D.exec(r),null!==s?(t.red=parseFloat(s[1])/("%"===s[1].substr(-1)?100:255),t.green=parseFloat(s[2])/("%"===s[2].substr(-1)?100:255),t.blue=parseFloat(s[3])/("%"===s[3].substr(-1)?100:255),t.alpha=parseFloat(s[4]??"1.0"),t):(s=p.exec(r),null!==s?e.fromHsl(parseFloat(s[1])/360,parseFloat(s[2])/100,parseFloat(s[3])/100,parseFloat(s[4]??"1.0"),t):t=void 0)))}static pack(e,r,t){return C.typeOf.object("value",e),C.defined("array",r),t=t??0,r[t++]=e.red,r[t++]=e.green,r[t++]=e.blue,r[t]=e.alpha,r}static unpack(r,t,o){return C.defined("array",r),t=t??0,O(o)||(o=new e),o.red=r[t++],o.green=r[t++],o.blue=r[t++],o.alpha=r[t],o}static byteToFloat(e){return e/255}static floatToByte(e){return 1===e?255:256*e|0}static clone(r,t){if(O(r))return O(t)?(t.red=r.red,t.green=r.green,t.blue=r.blue,t.alpha=r.alpha,t):new e(r.red,r.green,r.blue,r.alpha)}static equals(e,r){return e===r||O(e)&&O(r)&&e.red===r.red&&e.green===r.green&&e.blue===r.blue&&e.alpha===r.alpha}static equalsArray(e,r,t){return e.red===r[t]&&e.green===r[t+1]&&e.blue===r[t+2]&&e.alpha===r[t+3]}clone(r){return e.clone(this,r)}equals(r){return e.equals(this,r)}equalsEpsilon(e,r){return this===e||O(e)&&Math.abs(this.red-e.red)<=r&&Math.abs(this.green-e.green)<=r&&Math.abs(this.blue-e.blue)<=r&&Math.abs(this.alpha-e.alpha)<=r}toString(){return`(${this.red}, ${this.green}, ${this.blue}, ${this.alpha})`}toCssColorString(){let r=e.floatToByte(this.red),t=e.floatToByte(this.green),o=e.floatToByte(this.blue);return 1===this.alpha?`rgb(${r},${t},${o})`:`rgba(${r},${t},${o},${this.alpha})`}toCssHexString(){let r=e.floatToByte(this.red).toString(16);r.length<2&&(r=`0${r}`);let t=e.floatToByte(this.green).toString(16);t.length<2&&(t=`0${t}`);let o=e.floatToByte(this.blue).toString(16);if(o.length<2&&(o=`0${o}`),this.alpha<1){let s=e.floatToByte(this.alpha).toString(16);return s.length<2&&(s=`0${s}`),`#${r}${t}${o}${s}`}return`#${r}${t}${o}`}toBytes(r){let t=e.floatToByte(this.red),o=e.floatToByte(this.green),s=e.floatToByte(this.blue),C=e.floatToByte(this.alpha);return O(r)?(r[0]=t,r[1]=o,r[2]=s,r[3]=C,r):[t,o,s,C]}static bytesToRgba(e,r,t,o){return m[0]=e,m[1]=r,m[2]=t,m[3]=o,A[0]}toRgba(){return e.bytesToRgba(e.floatToByte(this.red),e.floatToByte(this.green),e.floatToByte(this.blue),e.floatToByte(this.alpha))}brighten(e,r){return C.typeOf.number("magnitude",e),C.typeOf.number.greaterThanOrEquals("magnitude",e,0),C.typeOf.object("result",r),e=1-e,r.red=1-(1-this.red)*e,r.green=1-(1-this.green)*e,r.blue=1-(1-this.blue)*e,r.alpha=this.alpha,r}darken(e,r){return C.typeOf.number("magnitude",e),C.typeOf.number.greaterThanOrEquals("magnitude",e,0),C.typeOf.object("result",r),e=1-e,r.red=this.red*e,r.green=this.green*e,r.blue=this.blue*e,r.alpha=this.alpha,r}withAlpha(r,t){return e.fromAlpha(this,r,t)}static add(e,r,t){return C.typeOf.object("left",e),C.typeOf.object("right",r),C.typeOf.object("result",t),t.red=e.red+r.red,t.green=e.green+r.green,t.blue=e.blue+r.blue,t.alpha=e.alpha+r.alpha,t}static subtract(e,r,t){return C.typeOf.object("left",e),C.typeOf.object("right",r),C.typeOf.object("result",t),t.red=e.red-r.red,t.green=e.green-r.green,t.blue=e.blue-r.blue,t.alpha=e.alpha-r.alpha,t}static multiply(e,r,t){return C.typeOf.object("left",e),C.typeOf.object("right",r),C.typeOf.object("result",t),t.red=e.red*r.red,t.green=e.green*r.green,t.blue=e.blue*r.blue,t.alpha=e.alpha*r.alpha,t}static divide(e,r,t){return C.typeOf.object("left",e),C.typeOf.object("right",r),C.typeOf.object("result",t),t.red=e.red/r.red,t.green=e.green/r.green,t.blue=e.blue/r.blue,t.alpha=e.alpha/r.alpha,t}static mod(e,r,t){return C.typeOf.object("left",e),C.typeOf.object("right",r),C.typeOf.object("result",t),t.red=e.red%r.red,t.green=e.green%r.green,t.blue=e.blue%r.blue,t.alpha=e.alpha%r.alpha,t}static lerp(e,r,t,o){return C.typeOf.object("start",e),C.typeOf.object("end",r),C.typeOf.number("t",t),C.typeOf.object("result",o),o.red=i.lerp(e.red,r.red,t),o.green=i.lerp(e.green,r.green,t),o.blue=i.lerp(e.blue,r.blue,t),o.alpha=i.lerp(e.alpha,r.alpha,t),o}static multiplyByScalar(e,r,t){return C.typeOf.object("color",e),C.typeOf.number("scalar",r),C.typeOf.object("result",t),t.red=e.red*r,t.green=e.green*r,t.blue=e.blue*r,t.alpha=e.alpha*r,t}static divideByScalar(e,r,t){return C.typeOf.object("color",e),C.typeOf.number("scalar",r),C.typeOf.object("result",t),t.red=e.red/r,t.green=e.green/r,t.blue=e.blue/r,t.alpha=e.alpha/r,t}};j.supportsTypedArrays()&&(l=new ArrayBuffer(4),A=new Uint32Array(l),m=new Uint8Array(l));var z=/^#([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,R=/^#([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})([0-9a-f]{2})?$/i,D=/^rgba?\s*\(\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)\s*[,\s]+\s*([0-9.]+%?)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i,p=/^hsla?\s*\(\s*([0-9.]+)\s*[,\s]+\s*([0-9.]+%)\s*[,\s]+\s*([0-9.]+%)(?:\s*[,\s/]+\s*([0-9.]+))?\s*\)$/i;e.packedLength=4,e.ALICEBLUE=Object.freeze(e.fromCssColorString("#F0F8FF")),e.ANTIQUEWHITE=Object.freeze(e.fromCssColorString("#FAEBD7")),e.AQUA=Object.freeze(e.fromCssColorString("#00FFFF")),e.AQUAMARINE=Object.freeze(e.fromCssColorString("#7FFFD4")),e.AZURE=Object.freeze(e.fromCssColorString("#F0FFFF")),e.BEIGE=Object.freeze(e.fromCssColorString("#F5F5DC")),e.BISQUE=Object.freeze(e.fromCssColorString("#FFE4C4")),e.BLACK=Object.freeze(e.fromCssColorString("#000000")),e.BLANCHEDALMOND=Object.freeze(e.fromCssColorString("#FFEBCD")),e.BLUE=Object.freeze(e.fromCssColorString("#0000FF")),e.BLUEVIOLET=Object.freeze(e.fromCssColorString("#8A2BE2")),e.BROWN=Object.freeze(e.fromCssColorString("#A52A2A")),e.BURLYWOOD=Object.freeze(e.fromCssColorString("#DEB887")),e.CADETBLUE=Object.freeze(e.fromCssColorString("#5F9EA0")),e.CHARTREUSE=Object.freeze(e.fromCssColorString("#7FFF00")),e.CHOCOLATE=Object.freeze(e.fromCssColorString("#D2691E")),e.CORAL=Object.freeze(e.fromCssColorString("#FF7F50")),e.CORNFLOWERBLUE=Object.freeze(e.fromCssColorString("#6495ED")),e.CORNSILK=Object.freeze(e.fromCssColorString("#FFF8DC")),e.CRIMSON=Object.freeze(e.fromCssColorString("#DC143C")),e.CYAN=Object.freeze(e.fromCssColorString("#00FFFF")),e.DARKBLUE=Object.freeze(e.fromCssColorString("#00008B")),e.DARKCYAN=Object.freeze(e.fromCssColorString("#008B8B")),e.DARKGOLDENROD=Object.freeze(e.fromCssColorString("#B8860B")),e.DARKGRAY=Object.freeze(e.fromCssColorString("#A9A9A9")),e.DARKGREEN=Object.freeze(e.fromCssColorString("#006400")),e.DARKGREY=e.DARKGRAY,e.DARKKHAKI=Object.freeze(e.fromCssColorString("#BDB76B")),e.DARKMAGENTA=Object.freeze(e.fromCssColorString("#8B008B")),e.DARKOLIVEGREEN=Object.freeze(e.fromCssColorString("#556B2F")),e.DARKORANGE=Object.freeze(e.fromCssColorString("#FF8C00")),e.DARKORCHID=Object.freeze(e.fromCssColorString("#9932CC")),e.DARKRED=Object.freeze(e.fromCssColorString("#8B0000")),e.DARKSALMON=Object.freeze(e.fromCssColorString("#E9967A")),e.DARKSEAGREEN=Object.freeze(e.fromCssColorString("#8FBC8F")),e.DARKSLATEBLUE=Object.freeze(e.fromCssColorString("#483D8B")),e.DARKSLATEGRAY=Object.freeze(e.fromCssColorString("#2F4F4F")),e.DARKSLATEGREY=e.DARKSLATEGRAY,e.DARKTURQUOISE=Object.freeze(e.fromCssColorString("#00CED1")),e.DARKVIOLET=Object.freeze(e.fromCssColorString("#9400D3")),e.DEEPPINK=Object.freeze(e.fromCssColorString("#FF1493")),e.DEEPSKYBLUE=Object.freeze(e.fromCssColorString("#00BFFF")),e.DIMGRAY=Object.freeze(e.fromCssColorString("#696969")),e.DIMGREY=e.DIMGRAY,e.DODGERBLUE=Object.freeze(e.fromCssColorString("#1E90FF")),e.FIREBRICK=Object.freeze(e.fromCssColorString("#B22222")),e.FLORALWHITE=Object.freeze(e.fromCssColorString("#FFFAF0")),e.FORESTGREEN=Object.freeze(e.fromCssColorString("#228B22")),e.FUCHSIA=Object.freeze(e.fromCssColorString("#FF00FF")),e.GAINSBORO=Object.freeze(e.fromCssColorString("#DCDCDC")),e.GHOSTWHITE=Object.freeze(e.fromCssColorString("#F8F8FF")),e.GOLD=Object.freeze(e.fromCssColorString("#FFD700")),e.GOLDENROD=Object.freeze(e.fromCssColorString("#DAA520")),e.GRAY=Object.freeze(e.fromCssColorString("#808080")),e.GREEN=Object.freeze(e.fromCssColorString("#008000")),e.GREENYELLOW=Object.freeze(e.fromCssColorString("#ADFF2F")),e.GREY=e.GRAY,e.HONEYDEW=Object.freeze(e.fromCssColorString("#F0FFF0")),e.HOTPINK=Object.freeze(e.fromCssColorString("#FF69B4")),e.INDIANRED=Object.freeze(e.fromCssColorString("#CD5C5C")),e.INDIGO=Object.freeze(e.fromCssColorString("#4B0082")),e.IVORY=Object.freeze(e.fromCssColorString("#FFFFF0")),e.KHAKI=Object.freeze(e.fromCssColorString("#F0E68C")),e.LAVENDER=Object.freeze(e.fromCssColorString("#E6E6FA")),e.LAVENDAR_BLUSH=Object.freeze(e.fromCssColorString("#FFF0F5")),e.LAWNGREEN=Object.freeze(e.fromCssColorString("#7CFC00")),e.LEMONCHIFFON=Object.freeze(e.fromCssColorString("#FFFACD")),e.LIGHTBLUE=Object.freeze(e.fromCssColorString("#ADD8E6")),e.LIGHTCORAL=Object.freeze(e.fromCssColorString("#F08080")),e.LIGHTCYAN=Object.freeze(e.fromCssColorString("#E0FFFF")),e.LIGHTGOLDENRODYELLOW=Object.freeze(e.fromCssColorString("#FAFAD2")),e.LIGHTGRAY=Object.freeze(e.fromCssColorString("#D3D3D3")),e.LIGHTGREEN=Object.freeze(e.fromCssColorString("#90EE90")),e.LIGHTGREY=e.LIGHTGRAY,e.LIGHTPINK=Object.freeze(e.fromCssColorString("#FFB6C1")),e.LIGHTSEAGREEN=Object.freeze(e.fromCssColorString("#20B2AA")),e.LIGHTSKYBLUE=Object.freeze(e.fromCssColorString("#87CEFA")),e.LIGHTSLATEGRAY=Object.freeze(e.fromCssColorString("#778899")),e.LIGHTSLATEGREY=e.LIGHTSLATEGRAY,e.LIGHTSTEELBLUE=Object.freeze(e.fromCssColorString("#B0C4DE")),e.LIGHTYELLOW=Object.freeze(e.fromCssColorString("#FFFFE0")),e.LIME=Object.freeze(e.fromCssColorString("#00FF00")),e.LIMEGREEN=Object.freeze(e.fromCssColorString("#32CD32")),e.LINEN=Object.freeze(e.fromCssColorString("#FAF0E6")),e.MAGENTA=Object.freeze(e.fromCssColorString("#FF00FF")),e.MAROON=Object.freeze(e.fromCssColorString("#800000")),e.MEDIUMAQUAMARINE=Object.freeze(e.fromCssColorString("#66CDAA")),e.MEDIUMBLUE=Object.freeze(e.fromCssColorString("#0000CD")),e.MEDIUMORCHID=Object.freeze(e.fromCssColorString("#BA55D3")),e.MEDIUMPURPLE=Object.freeze(e.fromCssColorString("#9370DB")),e.MEDIUMSEAGREEN=Object.freeze(e.fromCssColorString("#3CB371")),e.MEDIUMSLATEBLUE=Object.freeze(e.fromCssColorString("#7B68EE")),e.MEDIUMSPRINGGREEN=Object.freeze(e.fromCssColorString("#00FA9A")),e.MEDIUMTURQUOISE=Object.freeze(e.fromCssColorString("#48D1CC")),e.MEDIUMVIOLETRED=Object.freeze(e.fromCssColorString("#C71585")),e.MIDNIGHTBLUE=Object.freeze(e.fromCssColorString("#191970")),e.MINTCREAM=Object.freeze(e.fromCssColorString("#F5FFFA")),e.MISTYROSE=Object.freeze(e.fromCssColorString("#FFE4E1")),e.MOCCASIN=Object.freeze(e.fromCssColorString("#FFE4B5")),e.NAVAJOWHITE=Object.freeze(e.fromCssColorString("#FFDEAD")),e.NAVY=Object.freeze(e.fromCssColorString("#000080")),e.OLDLACE=Object.freeze(e.fromCssColorString("#FDF5E6")),e.OLIVE=Object.freeze(e.fromCssColorString("#808000")),e.OLIVEDRAB=Object.freeze(e.fromCssColorString("#6B8E23")),e.ORANGE=Object.freeze(e.fromCssColorString("#FFA500")),e.ORANGERED=Object.freeze(e.fromCssColorString("#FF4500")),e.ORCHID=Object.freeze(e.fromCssColorString("#DA70D6")),e.PALEGOLDENROD=Object.freeze(e.fromCssColorString("#EEE8AA")),e.PALEGREEN=Object.freeze(e.fromCssColorString("#98FB98")),e.PALETURQUOISE=Object.freeze(e.fromCssColorString("#AFEEEE")),e.PALEVIOLETRED=Object.freeze(e.fromCssColorString("#DB7093")),e.PAPAYAWHIP=Object.freeze(e.fromCssColorString("#FFEFD5")),e.PEACHPUFF=Object.freeze(e.fromCssColorString("#FFDAB9")),e.PERU=Object.freeze(e.fromCssColorString("#CD853F")),e.PINK=Object.freeze(e.fromCssColorString("#FFC0CB")),e.PLUM=Object.freeze(e.fromCssColorString("#DDA0DD")),e.POWDERBLUE=Object.freeze(e.fromCssColorString("#B0E0E6")),e.PURPLE=Object.freeze(e.fromCssColorString("#800080")),e.RED=Object.freeze(e.fromCssColorString("#FF0000")),e.ROSYBROWN=Object.freeze(e.fromCssColorString("#BC8F8F")),e.ROYALBLUE=Object.freeze(e.fromCssColorString("#4169E1")),e.SADDLEBROWN=Object.freeze(e.fromCssColorString("#8B4513")),e.SALMON=Object.freeze(e.fromCssColorString("#FA8072")),e.SANDYBROWN=Object.freeze(e.fromCssColorString("#F4A460")),e.SEAGREEN=Object.freeze(e.fromCssColorString("#2E8B57")),e.SEASHELL=Object.freeze(e.fromCssColorString("#FFF5EE")),e.SIENNA=Object.freeze(e.fromCssColorString("#A0522D")),e.SILVER=Object.freeze(e.fromCssColorString("#C0C0C0")),e.SKYBLUE=Object.freeze(e.fromCssColorString("#87CEEB")),e.SLATEBLUE=Object.freeze(e.fromCssColorString("#6A5ACD")),e.SLATEGRAY=Object.freeze(e.fromCssColorString("#708090")),e.SLATEGREY=e.SLATEGRAY,e.SNOW=Object.freeze(e.fromCssColorString("#FFFAFA")),e.SPRINGGREEN=Object.freeze(e.fromCssColorString("#00FF7F")),e.STEELBLUE=Object.freeze(e.fromCssColorString("#4682B4")),e.TAN=Object.freeze(e.fromCssColorString("#D2B48C")),e.TEAL=Object.freeze(e.fromCssColorString("#008080")),e.THISTLE=Object.freeze(e.fromCssColorString("#D8BFD8")),e.TOMATO=Object.freeze(e.fromCssColorString("#FF6347")),e.TURQUOISE=Object.freeze(e.fromCssColorString("#40E0D0")),e.VIOLET=Object.freeze(e.fromCssColorString("#EE82EE")),e.WHEAT=Object.freeze(e.fromCssColorString("#F5DEB3")),e.WHITE=Object.freeze(e.fromCssColorString("#FFFFFF")),e.WHITESMOKE=Object.freeze(e.fromCssColorString("#F5F5F5")),e.YELLOW=Object.freeze(e.fromCssColorString("#FFFF00")),e.YELLOWGREEN=Object.freeze(e.fromCssColorString("#9ACD32")),e.TRANSPARENT=Object.freeze(new e(0,0,0,0));var N=e;export{N as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as tt}from"./chunk-G72JFEXW.js";import{a as jt}from"./chunk-6W2XFGWI.js";import{b as Lt}from"./chunk-SRA5MBUT.js";import{a as Et}from"./chunk-5AAMOBJK.js";import{a as j}from"./chunk-4WQ4VT5S.js";import{a as dt,b as D,c as B,d as U}from"./chunk-A4I25VN7.js";import{a as _t,c as ot}from"./chunk-D3TVNJ6W.js";import{a as Ut}from"./chunk-3VUCSHGU.js";import{a as pt,b as H}from"./chunk-BPABSUDY.js";import{a as F}from"./chunk-ATKJRN2G.js";import{a as Mt,b as V}from"./chunk-2AIOP76V.js";import{a as r,b as gt,c as Ot}from"./chunk-IAE6APK2.js";import{a as N}from"./chunk-3E7FIXV7.js";import{a as I,b as ft}from"./chunk-NZBME2JK.js";import{f}from"./chunk-6DLS2UKD.js";var Yt=new r,Zt=new r,Xt=new r;function pe(e,t,i,n,o){let s,a,u,l,p,c,m,y;if(ft.defined("point",e),ft.defined("p0",t),ft.defined("p1",i),ft.defined("p2",n),f(o)||(o=new r),f(t.z)){if(r.equalsEpsilon(e,t,N.EPSILON14))return r.clone(r.UNIT_X,o);if(r.equalsEpsilon(e,i,N.EPSILON14))return r.clone(r.UNIT_Y,o);if(r.equalsEpsilon(e,n,N.EPSILON14))return r.clone(r.UNIT_Z,o);s=r.subtract(i,t,Yt),a=r.subtract(n,t,Zt),u=r.subtract(e,t,Xt),l=r.dot(s,s),p=r.dot(s,a),c=r.dot(s,u),m=r.dot(a,a),y=r.dot(a,u)}else{if(V.equalsEpsilon(e,t,N.EPSILON14))return r.clone(r.UNIT_X,o);if(V.equalsEpsilon(e,i,N.EPSILON14))return r.clone(r.UNIT_Y,o);if(V.equalsEpsilon(e,n,N.EPSILON14))return r.clone(r.UNIT_Z,o);s=V.subtract(i,t,Yt),a=V.subtract(n,t,Zt),u=V.subtract(e,t,Xt),l=V.dot(s,s),p=V.dot(s,a),c=V.dot(s,u),m=V.dot(a,a),y=V.dot(a,u)}o.y=m*c-p*y,o.z=l*y-p*c;let h=l*m-p*p;if(0!==h)return o.y/=h,o.z/=h,o.x=1-o.y-o.z,o}var Ht=pe,Nt={calculateACMR:function(e){let t=(e=e??Ot.EMPTY_OBJECT).indices,r=e.maximumIndex,i=e.cacheSize??24;if(!f(t))throw new I("indices is required.");let n=t.length;if(n<3||n%3!=0)throw new I("indices length must be a multiple of three.");if(r<=0)throw new I("maximumIndex must be greater than zero.");if(i<3)throw new I("cacheSize must be greater than two.");if(!f(r)){r=0;let e=0,i=t[e];for(;e<n;)i>r&&(r=i),++e,i=t[e]}let o=[];for(let e=0;e<r+1;e++)o[e]=0;let s=i+1;for(let e=0;e<n;++e)s-o[t[e]]>i&&(o[t[e]]=s,++s);return(s-i+1)/(n/3)}};Nt.tipsify=function(e){let t,r=(e=e??Ot.EMPTY_OBJECT).indices,i=e.maximumIndex,n=e.cacheSize??24;function o(e,r,i,n,o,s,a){let u,l=-1,f=-1,p=0;for(;p<i.length;){let e=i[p];n[e].numLiveTriangles&&(u=0,o-n[e].timeStamp+2*n[e].numLiveTriangles<=r&&(u=o-n[e].timeStamp),(u>f||-1===f)&&(f=u,l=e)),++p}return-1===l?function(e,r,i,n){for(;r.length>=1;){let t=r[r.length-1];if(r.splice(r.length-1,1),e[t].numLiveTriangles>0)return t}for(;t<n;){if(e[t].numLiveTriangles>0)return++t,t-1;++t}return-1}(n,s,0,a):l}if(!f(r))throw new I("indices is required.");let s=r.length;if(s<3||s%3!=0)throw new I("indices length must be a multiple of three.");if(i<=0)throw new I("maximumIndex must be greater than zero.");if(n<3)throw new I("cacheSize must be greater than two.");let a=0,u=0,l=r[u],p=s;if(f(i))a=i+1;else{for(;u<p;)l>a&&(a=l),++u,l=r[u];if(-1===a)return 0;++a}let c,m=[];for(c=0;c<a;c++)m[c]={numLiveTriangles:0,timeStamp:0,vertexTriangles:[]};u=0;let y=0;for(;u<p;)m[r[u]].vertexTriangles.push(y),++m[r[u]].numLiveTriangles,m[r[u+1]].vertexTriangles.push(y),++m[r[u+1]].numLiveTriangles,m[r[u+2]].vertexTriangles.push(y),++m[r[u+2]].numLiveTriangles,++y,u+=3;let h=0,d=n+1;t=1;let v,b,w,g,T=[],A=[],N=0,x=[],S=s/3,P=[];for(c=0;c<S;c++)P[c]=!1;for(;-1!==h;){T=[],b=m[h],g=b.vertexTriangles.length;for(let e=0;e<g;++e)if(y=b.vertexTriangles[e],!P[y]){P[y]=!0,u=y+y+y;for(let e=0;e<3;++e)w=r[u],T.push(w),A.push(w),x[N]=w,++N,v=m[w],--v.numLiveTriangles,d-v.timeStamp>n&&(v.timeStamp=d,++d),++u}h=o(0,n,T,m,d,A,a)}return x};var Wt=Nt,k={};function It(e,t,r,i,n){e[t++]=r,e[t++]=i,e[t++]=i,e[t++]=n,e[t++]=n,e[t]=r}function de(e){let t=e.length,r=t/3*6,i=j.createTypedArray(t,r),n=0;for(let r=0;r<t;r+=3,n+=6)It(i,n,e[r],e[r+1],e[r+2]);return i}function me(e){let t=e.length;if(t>=3){let r=6*(t-2),i=j.createTypedArray(t,r);It(i,0,e[0],e[1],e[2]);let n=6;for(let r=3;r<t;++r,n+=6)It(i,n,e[r-1],e[r],e[r-2]);return i}return new Uint16Array}function he(e){if(e.length>0){let t=e.length-1,r=6*(t-1),i=j.createTypedArray(t,r),n=e[0],o=0;for(let r=1;r<t;++r,o+=6)It(i,o,n,e[r],e[r+1]);return i}return new Uint16Array}function $t(e){let t={};for(let r in e)if(e.hasOwnProperty(r)&&f(e[r])&&f(e[r].values)){let i=e[r];t[r]=new U({componentDatatype:i.componentDatatype,componentsPerAttribute:i.componentsPerAttribute,normalize:i.normalize,values:[]})}return t}function be(e,t,r){for(let i in t)if(t.hasOwnProperty(i)&&f(t[i])&&f(t[i].values)){let n=t[i];for(let t=0;t<n.componentsPerAttribute;++t)e[i].values.push(n.values[r*n.componentsPerAttribute+t])}}k.toWireframe=function(e){if(!f(e))throw new I("geometry is required.");let t=e.indices;if(f(t)){switch(e.primitiveType){case D.TRIANGLES:e.indices=de(t);break;case D.TRIANGLE_STRIP:e.indices=me(t);break;case D.TRIANGLE_FAN:e.indices=he(t);break;default:throw new I("geometry.primitiveType must be TRIANGLES, TRIANGLE_STRIP, or TRIANGLE_FAN.")}e.primitiveType=D.LINES}return e},k.createLineSegmentsForVectors=function(e,t,r){if(t=t??"normal",!f(e))throw new I("geometry is required.");if(!f(e.attributes.position))throw new I("geometry.attributes.position is required.");if(!f(e.attributes[t]))throw new I(`geometry.attributes must have an attribute with the same name as the attributeName parameter, ${t}.`);r=r??1e4;let i=e.attributes.position.values,n=e.attributes[t].values,o=i.length,s=new Float64Array(2*o),a=0;for(let e=0;e<o;e+=3)s[a++]=i[e],s[a++]=i[e+1],s[a++]=i[e+2],s[a++]=i[e]+n[e]*r,s[a++]=i[e+1]+n[e+1]*r,s[a++]=i[e+2]+n[e+2]*r;let u,l=e.boundingSphere;return f(l)&&(u=new ot(l.center,l.radius+r)),new B({attributes:{position:new U({componentDatatype:F.DOUBLE,componentsPerAttribute:3,values:s})},primitiveType:D.LINES,boundingSphere:u})},k.createAttributeLocations=function(e){if(!f(e))throw new I("geometry is required.");let t,r=["position","positionHigh","positionLow","position3DHigh","position3DLow","position2DHigh","position2DLow","pickColor","normal","st","tangent","bitangent","extrudeDirection","compressedAttributes"],i=e.attributes,n={},o=0,s=r.length;for(t=0;t<s;++t){let e=r[t];f(i[e])&&(n[e]=o++)}for(let e in i)i.hasOwnProperty(e)&&!f(n[e])&&(n[e]=o++);return n},k.reorderForPreVertexCache=function(e){if(!f(e))throw new I("geometry is required.");let t=B.computeNumberOfVertices(e),r=e.indices;if(f(r)){let i=new Int32Array(t);for(let e=0;e<t;e++)i[e]=-1;let n,o=r,s=o.length,a=j.createTypedArray(t,s),u=0,l=0,p=0;for(;u<s;)n=i[o[u]],-1!==n?a[l]=n:(n=o[u],i[n]=p,a[l]=p,++p),++u,++l;e.indices=a;let c=e.attributes;for(let e in c)if(c.hasOwnProperty(e)&&f(c[e])&&f(c[e].values)){let r=c[e],n=r.values,o=0,s=r.componentsPerAttribute,a=F.createTypedArray(r.componentDatatype,p*s);for(;o<t;){let e=i[o];if(-1!==e)for(let t=0;t<s;t++)a[s*e+t]=n[s*o+t];++o}r.values=a}}return e},k.reorderForPostVertexCache=function(e,t){if(!f(e))throw new I("geometry is required.");let r=e.indices;if(e.primitiveType===D.TRIANGLES&&f(r)){let i=r.length,n=0;for(let e=0;e<i;e++)r[e]>n&&(n=r[e]);e.indices=Wt.tipsify({indices:r,maximumIndex:n,cacheSize:t})}return e},k.fitToUnsignedShortIndices=function(e){if(!f(e))throw new I("geometry is required.");if(f(e.indices)&&e.primitiveType!==D.TRIANGLES&&e.primitiveType!==D.LINES&&e.primitiveType!==D.POINTS)throw new I("geometry.primitiveType must equal to PrimitiveType.TRIANGLES, PrimitiveType.LINES, or PrimitiveType.POINTS.");let t=[],r=B.computeNumberOfVertices(e);if(f(e.indices)&&r>=N.SIXTY_FOUR_KILOBYTES){let r,i=[],n=[],o=0,s=$t(e.attributes),a=e.indices,u=a.length;e.primitiveType===D.TRIANGLES?r=3:e.primitiveType===D.LINES?r=2:e.primitiveType===D.POINTS&&(r=1);for(let l=0;l<u;l+=r){for(let t=0;t<r;++t){let r=a[l+t],u=i[r];f(u)||(u=o++,i[r]=u,be(s,e.attributes,r)),n.push(u)}o+r>=N.SIXTY_FOUR_KILOBYTES&&(t.push(new B({attributes:s,indices:n,primitiveType:e.primitiveType,boundingSphere:e.boundingSphere,boundingSphereCV:e.boundingSphereCV})),i=[],n=[],o=0,s=$t(e.attributes))}0!==n.length&&t.push(new B({attributes:s,indices:n,primitiveType:e.primitiveType,boundingSphere:e.boundingSphere,boundingSphereCV:e.boundingSphereCV}))}else t.push(e);return t};var Jt=new r,we=new Mt;k.projectTo2D=function(e,t,i,n,o){if(!f(e))throw new I("geometry is required.");if(!f(t))throw new I("attributeName is required.");if(!f(i))throw new I("attributeName3D is required.");if(!f(n))throw new I("attributeName2D is required.");if(!f(e.attributes[t]))throw new I(`geometry must have attribute matching the attributeName argument: ${t}.`);if(e.attributes[t].componentDatatype!==F.DOUBLE)throw new I("The attribute componentDatatype must be ComponentDatatype.DOUBLE.");let s=e.attributes[t],a=(o=f(o)?o:new _t).ellipsoid,u=s.values,l=new Float64Array(u.length),p=0;for(let e=0;e<u.length;e+=3){let t=r.fromArray(u,e,Jt),i=a.cartesianToCartographic(t,we);if(!f(i))throw new I(`Could not project point (${t.x}, ${t.y}, ${t.z}) to 2D.`);let n=o.project(i,Jt);l[p++]=n.x,l[p++]=n.y,l[p++]=n.z}return e.attributes[i]=s,e.attributes[n]=new U({componentDatatype:F.DOUBLE,componentsPerAttribute:3,values:l}),delete e.attributes[t],e};var zt={high:0,low:0};k.encodeAttribute=function(e,t,r,i){if(!f(e))throw new I("geometry is required.");if(!f(t))throw new I("attributeName is required.");if(!f(r))throw new I("attributeHighName is required.");if(!f(i))throw new I("attributeLowName is required.");if(!f(e.attributes[t]))throw new I(`geometry must have attribute matching the attributeName argument: ${t}.`);if(e.attributes[t].componentDatatype!==F.DOUBLE)throw new I("The attribute componentDatatype must be ComponentDatatype.DOUBLE.");let n=e.attributes[t],o=n.values,s=o.length,a=new Float32Array(s),u=new Float32Array(s);for(let e=0;e<s;++e)jt.encode(o[e],zt),a[e]=zt.high,u[e]=zt.low;let l=n.componentsPerAttribute;return e.attributes[r]=new U({componentDatatype:F.FLOAT,componentsPerAttribute:l,values:a}),e.attributes[i]=new U({componentDatatype:F.FLOAT,componentsPerAttribute:l,values:u}),delete e.attributes[t],e};var $=new r;function Dt(e,t){if(f(t)){let i=t.values,n=i.length;for(let t=0;t<n;t+=3)r.unpack(i,t,$),H.multiplyByPoint(e,$,$),r.pack($,i,t)}}function qt(e,t){if(f(t)){let i=t.values,n=i.length;for(let t=0;t<n;t+=3)r.unpack(i,t,$),gt.multiplyByVector(e,$,$),$=r.normalize($,$),r.pack($,i,t)}}var wt=new H,vt=new gt;function ve(e,t){let r,i=e.length,n={},o=e[0][t].attributes;for(r in o)if(o.hasOwnProperty(r)&&f(o[r])&&f(o[r].values)){let s=o[r],a=s.values.length,u=!0;for(let n=1;n<i;++n){let i=e[n][t].attributes[r];if(!f(i)||s.componentDatatype!==i.componentDatatype||s.componentsPerAttribute!==i.componentsPerAttribute||s.normalize!==i.normalize){u=!1;break}a+=i.values.length}u&&(n[r]=new U({componentDatatype:s.componentDatatype,componentsPerAttribute:s.componentsPerAttribute,normalize:s.normalize,values:F.createTypedArray(s.componentDatatype,a)}))}return n}k.transformToWorldCoordinates=function(e){if(!f(e))throw new I("instance is required.");let t=e.modelMatrix;if(H.equals(t,H.IDENTITY))return e;let r=e.geometry.attributes;Dt(t,r.position),Dt(t,r.prevPosition),Dt(t,r.nextPosition),(f(r.normal)||f(r.tangent)||f(r.bitangent))&&(H.inverse(t,wt),H.transpose(wt,wt),H.getMatrix3(wt,vt),qt(vt,r.normal),qt(vt,r.tangent),qt(vt,r.bitangent));let i=e.geometry.boundingSphere;return f(i)&&(e.geometry.boundingSphere=ot.transform(i,t,i)),e.modelMatrix=H.clone(H.IDENTITY),e};var ye=new r;function Rt(e,t){let i,n,o,s,a=e.length,u=e[0].modelMatrix,l=f(e[0][t].indices),p=e[0][t].primitiveType;for(n=1;n<a;++n){if(!H.equals(e[n].modelMatrix,u))throw new I("All instances must have the same modelMatrix.");if(f(e[n][t].indices)!==l)throw new I("All instance geometries must have an indices or not have one.");if(e[n][t].primitiveType!==p)throw new I("All instance geometries must have the same primitiveType.")}let c,m,y,h,d=ve(e,t);for(i in d)if(d.hasOwnProperty(i))for(c=d[i].values,s=0,n=0;n<a;++n)for(m=e[n][t].attributes[i].values,y=m.length,o=0;o<y;++o)c[s++]=m[o];if(l){let r=0;for(n=0;n<a;++n)r+=e[n][t].indices.length;let i=B.computeNumberOfVertices(new B({attributes:d,primitiveType:D.POINTS})),o=j.createTypedArray(i,r),u=0,l=0;for(n=0;n<a;++n){let r=e[n][t].indices,i=r.length;for(s=0;s<i;++s)o[u++]=l+r[s];l+=B.computeNumberOfVertices(e[n][t])}h=o}let v,b=new r,w=0;for(n=0;n<a;++n){if(v=e[n][t].boundingSphere,!f(v)){b=void 0;break}r.add(v.center,b,b)}if(f(b))for(r.divideByScalar(b,a,b),n=0;n<a;++n){v=e[n][t].boundingSphere;let i=r.magnitude(r.subtract(v.center,b,ye))+v.radius;i>w&&(w=i)}return new B({attributes:d,indices:h,primitiveType:p,boundingSphere:f(b)?new ot(b,w):void 0})}k.combineInstances=function(e){if(!f(e)||e.length<1)throw new I("instances is required and must have length greater than zero.");let t=[],r=[],i=e.length;for(let n=0;n<i;++n){let i=e[n];f(i.geometry)?t.push(i):f(i.westHemisphereGeometry)&&f(i.eastHemisphereGeometry)&&r.push(i)}let n=[];return t.length>0&&n.push(Rt(t,"geometry")),r.length>0&&(n.push(Rt(r,"westHemisphereGeometry")),n.push(Rt(r,"eastHemisphereGeometry"))),n};var Z=new r,mt=new r,rt=new r,ct=new r;k.computeNormal=function(e){if(!f(e))throw new I("geometry is required.");if(!f(e.attributes.position)||!f(e.attributes.position.values))throw new I("geometry.attributes.position.values is required.");if(!f(e.indices))throw new I("geometry.indices is required.");if(e.indices.length<2||e.indices.length%3!=0)throw new I("geometry.indices length must be greater than 0 and be a multiple of 3.");if(e.primitiveType!==D.TRIANGLES)throw new I("geometry.primitiveType must be PrimitiveType.TRIANGLES.");let t,i=e.indices,n=e.attributes,o=n.position.values,s=n.position.values.length/3,a=i.length,u=new Array(s),l=new Array(a/3),p=new Array(a);for(t=0;t<s;t++)u[t]={indexOffset:0,count:0,currentCount:0};let c=0;for(t=0;t<a;t+=3){let e=i[t],n=i[t+1],s=i[t+2],a=3*e,f=3*n,p=3*s;mt.x=o[a],mt.y=o[a+1],mt.z=o[a+2],rt.x=o[f],rt.y=o[f+1],rt.z=o[f+2],ct.x=o[p],ct.y=o[p+1],ct.z=o[p+2],u[e].count++,u[n].count++,u[s].count++,r.subtract(rt,mt,rt),r.subtract(ct,mt,ct),l[c]=r.cross(rt,ct,new r),c++}let m,y=0;for(t=0;t<s;t++)u[t].indexOffset+=y,y+=u[t].count;for(c=0,t=0;t<a;t+=3){m=u[i[t]];let e=m.indexOffset+m.currentCount;p[e]=c,m.currentCount++,m=u[i[t+1]],e=m.indexOffset+m.currentCount,p[e]=c,m.currentCount++,m=u[i[t+2]],e=m.indexOffset+m.currentCount,p[e]=c,m.currentCount++,c++}let h=new Float32Array(3*s);for(t=0;t<s;t++){let e=3*t;if(m=u[t],r.clone(r.ZERO,Z),m.count>0){for(c=0;c<m.count;c++)r.add(Z,l[p[m.indexOffset+c]],Z);r.equalsEpsilon(r.ZERO,Z,N.EPSILON10)&&r.clone(l[p[m.indexOffset]],Z)}r.equalsEpsilon(r.ZERO,Z,N.EPSILON10)&&(Z.z=1),r.normalize(Z,Z),h[e]=Z.x,h[e+1]=Z.y,h[e+2]=Z.z}return e.attributes.normal=new U({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:h}),e};var xe=new r,Kt=new r,Te=new r;k.computeTangentAndBitangent=function(e){if(!f(e))throw new I("geometry is required.");let t=e.attributes,i=e.indices;if(!f(t.position)||!f(t.position.values))throw new I("geometry.attributes.position.values is required.");if(!f(t.normal)||!f(t.normal.values))throw new I("geometry.attributes.normal.values is required.");if(!f(t.st)||!f(t.st.values))throw new I("geometry.attributes.st.values is required.");if(!f(i))throw new I("geometry.indices is required.");if(i.length<2||i.length%3!=0)throw new I("geometry.indices length must be greater than 0 and be a multiple of 3.");if(e.primitiveType!==D.TRIANGLES)throw new I("geometry.primitiveType must be PrimitiveType.TRIANGLES.");let n,o,s,a,u=e.attributes.position.values,l=e.attributes.normal.values,p=e.attributes.st.values,c=e.attributes.position.values.length/3,m=i.length,y=new Array(3*c);for(n=0;n<y.length;n++)y[n]=0;for(n=0;n<m;n+=3){let e=i[n],t=i[n+1],r=i[n+2];o=3*e,s=3*t,a=3*r;let l=2*e,f=2*t,c=2*r,m=u[o],h=u[o+1],d=u[o+2],v=p[l],b=p[l+1],w=p[f+1]-b,g=p[c+1]-b,I=1/((p[f]-v)*g-(p[c]-v)*w),T=(g*(u[s]-m)-w*(u[a]-m))*I,A=(g*(u[s+1]-h)-w*(u[a+1]-h))*I,N=(g*(u[s+2]-d)-w*(u[a+2]-d))*I;y[o]+=T,y[o+1]+=A,y[o+2]+=N,y[s]+=T,y[s+1]+=A,y[s+2]+=N,y[a]+=T,y[a+1]+=A,y[a+2]+=N}let h=new Float32Array(3*c),d=new Float32Array(3*c);for(n=0;n<c;n++){o=3*n,s=o+1,a=o+2;let e=r.fromArray(l,o,xe),t=r.fromArray(y,o,Te),i=r.dot(e,t);r.multiplyByScalar(e,i,Kt),r.normalize(r.subtract(t,Kt,t),t),h[o]=t.x,h[s]=t.y,h[a]=t.z,r.normalize(r.cross(e,t,t),t),d[o]=t.x,d[s]=t.y,d[a]=t.z}return e.attributes.tangent=new U({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:h}),e.attributes.bitangent=new U({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:d}),e};var ht=new V,W=new r,Qt=new r,te=new r,yt=new V;function Ae(e){if(f(e.indices))return e;let t=B.computeNumberOfVertices(e);if(t<3)throw new I("The number of vertices must be at least three.");if(t%3!=0)throw new I("The number of vertices must be a multiple of three.");let r=j.createTypedArray(t,t);for(let e=0;e<t;++e)r[e]=e;return e.indices=r,e}function Ie(e){let t=B.computeNumberOfVertices(e);if(t<3)throw new I("The number of vertices must be at least three.");let r=j.createTypedArray(t,3*(t-2));r[0]=1,r[1]=0,r[2]=2;let i=3;for(let e=3;e<t;++e)r[i++]=e-1,r[i++]=0,r[i++]=e;return e.indices=r,e.primitiveType=D.TRIANGLES,e}function Se(e){let t=B.computeNumberOfVertices(e);if(t<3)throw new I("The number of vertices must be at least 3.");let r=j.createTypedArray(t,3*(t-2));r[0]=0,r[1]=1,r[2]=2,t>3&&(r[3]=0,r[4]=2,r[5]=3);let i=6;for(let e=3;e<t-1;e+=2)r[i++]=e,r[i++]=e-1,r[i++]=e+1,e+2<t&&(r[i++]=e,r[i++]=e+1,r[i++]=e+2);return e.indices=r,e.primitiveType=D.TRIANGLES,e}function Pe(e){if(f(e.indices))return e;let t=B.computeNumberOfVertices(e);if(t<2)throw new I("The number of vertices must be at least two.");if(t%2!=0)throw new I("The number of vertices must be a multiple of 2.");let r=j.createTypedArray(t,t);for(let e=0;e<t;++e)r[e]=e;return e.indices=r,e}function ge(e){let t=B.computeNumberOfVertices(e);if(t<2)throw new I("The number of vertices must be at least two.");let r=j.createTypedArray(t,2*(t-1));r[0]=0,r[1]=1;let i=2;for(let e=2;e<t;++e)r[i++]=e-1,r[i++]=e;return e.indices=r,e.primitiveType=D.LINES,e}function Oe(e){let t=B.computeNumberOfVertices(e);if(t<2)throw new I("The number of vertices must be at least two.");let r=j.createTypedArray(t,2*t);r[0]=0,r[1]=1;let i=2;for(let e=2;e<t;++e)r[i++]=e-1,r[i++]=e;return r[i++]=t-1,r[i]=0,e.indices=r,e.primitiveType=D.LINES,e}function Le(e){switch(e.primitiveType){case D.TRIANGLE_FAN:return Ie(e);case D.TRIANGLE_STRIP:return Se(e);case D.TRIANGLES:return Ae(e);case D.LINE_STRIP:return ge(e);case D.LINE_LOOP:return Oe(e);case D.LINES:return Pe(e)}return e}function Q(e,t){Math.abs(e.y)<N.EPSILON6&&(e.y=t?-N.EPSILON6:N.EPSILON6)}function Ee(e,t,r){if(0!==e.y&&0!==t.y&&0!==r.y)return Q(e,e.y<0),Q(t,t.y<0),void Q(r,r.y<0);let i,n=Math.abs(e.y),o=Math.abs(t.y),s=Math.abs(r.y);i=n>o?n>s?N.sign(e.y):N.sign(r.y):o>s?N.sign(t.y):N.sign(r.y);let a=i<0;Q(e,a),Q(t,a),Q(r,a)}k.compressVertices=function(e){if(!f(e))throw new I("geometry is required.");let t,i,n=e.attributes.extrudeDirection;if(f(n)){let o=n.values;i=o.length/3;let s=new Float32Array(2*i),a=0;for(t=0;t<i;++t)r.fromArray(o,3*t,W),r.equals(W,r.ZERO)?a+=2:(yt=tt.octEncodeInRange(W,65535,yt),s[a++]=yt.x,s[a++]=yt.y);return e.attributes.compressedAttributes=new U({componentDatatype:F.FLOAT,componentsPerAttribute:2,values:s}),delete e.attributes.extrudeDirection,e}let o=e.attributes.normal,s=e.attributes.st,a=f(o),u=f(s);if(!a&&!u)return e;let l,p,c,m,y=e.attributes.tangent,h=e.attributes.bitangent,d=f(y),v=f(h);a&&(l=o.values),u&&(p=s.values),d&&(c=y.values),v&&(m=h.values),i=(a?l.length:p.length)/(a?3:2);let b=i,w=u&&a?2:1;w+=d||v?1:0,b*=w;let g=new Float32Array(b),T=0;for(t=0;t<i;++t){u&&(V.fromArray(p,2*t,ht),g[T++]=tt.compressTextureCoordinates(ht));let e=3*t;a&&f(c)&&f(m)?(r.fromArray(l,e,W),r.fromArray(c,e,Qt),r.fromArray(m,e,te),tt.octPack(W,Qt,te,ht),g[T++]=ht.x,g[T++]=ht.y):(a&&(r.fromArray(l,e,W),g[T++]=tt.octEncodeFloat(W)),d&&(r.fromArray(c,e,W),g[T++]=tt.octEncodeFloat(W)),v&&(r.fromArray(m,e,W),g[T++]=tt.octEncodeFloat(W)))}return e.attributes.compressedAttributes=new U({componentDatatype:F.FLOAT,componentsPerAttribute:w,values:g}),a&&delete e.attributes.normal,u&&delete e.attributes.st,v&&delete e.attributes.bitangent,d&&delete e.attributes.tangent,e};var ee=new r;function X(e,t,i,n){r.add(e,r.multiplyByScalar(r.subtract(t,e,ee),e.y/(e.y-t.y),ee),i),r.clone(i,n),Q(i,!0),Q(n,!1)}var et=new r,nt=new r,it=new r,st=new r,Vt={positions:new Array(7),indices:new Array(9)};function Ne(e,t,r){if(e.x>=0||t.x>=0||r.x>=0)return;Ee(e,t,r);let i=e.y<0,n=t.y<0,o=r.y<0,s=0;s+=i?1:0,s+=n?1:0,s+=o?1:0;let a=Vt.indices;1===s?(a[1]=3,a[2]=4,a[5]=6,a[7]=6,a[8]=5,i?(X(e,t,et,it),X(e,r,nt,st),a[0]=0,a[3]=1,a[4]=2,a[6]=1):n?(X(t,r,et,it),X(t,e,nt,st),a[0]=1,a[3]=2,a[4]=0,a[6]=2):o&&(X(r,e,et,it),X(r,t,nt,st),a[0]=2,a[3]=0,a[4]=1,a[6]=0)):2===s&&(a[2]=4,a[4]=4,a[5]=3,a[7]=5,a[8]=6,i?n?o||(X(r,e,et,it),X(r,t,nt,st),a[0]=0,a[1]=1,a[3]=0,a[6]=2):(X(t,r,et,it),X(t,e,nt,st),a[0]=2,a[1]=0,a[3]=2,a[6]=1):(X(e,t,et,it),X(e,r,nt,st),a[0]=1,a[1]=2,a[3]=1,a[6]=0));let u=Vt.positions;return u[0]=e,u[1]=t,u[2]=r,u.length=3,(1===s||2===s)&&(u[3]=et,u[4]=nt,u[5]=it,u[6]=st,u.length=7),Vt}function ne(e,t){let r=e.attributes;if(0===r.position.values.length)return;for(let e in r)if(r.hasOwnProperty(e)&&f(r[e])&&f(r[e].values)){let t=r[e];t.values=F.createTypedArray(t.componentDatatype,t.values)}let i=B.computeNumberOfVertices(e);return e.indices=j.createTypedArray(i,e.indices),t&&(e.boundingSphere=ot.fromVertices(r.position.values)),e}function ut(e){let t=e.attributes,r={};for(let e in t)if(t.hasOwnProperty(e)&&f(t[e])&&f(t[e].values)){let i=t[e];r[e]=new U({componentDatatype:i.componentDatatype,componentsPerAttribute:i.componentsPerAttribute,normalize:i.normalize,values:[]})}return new B({attributes:r,indices:[],primitiveType:e.primitiveType})}function Ft(e,t,r){let i=f(e.geometry.boundingSphere);t=ne(t,i),r=ne(r,i),f(r)&&!f(t)?e.geometry=r:!f(r)&&f(t)?e.geometry=t:(e.westHemisphereGeometry=t,e.eastHemisphereGeometry=r,e.geometry=void 0)}function kt(e,t){let r=new e,i=new e,n=new e;return function(o,s,a,u,l,f,p,c){let m=e.fromArray(l,o*t,r),y=e.fromArray(l,s*t,i),h=e.fromArray(l,a*t,n);e.multiplyByScalar(m,u.x,m),e.multiplyByScalar(y,u.y,y),e.multiplyByScalar(h,u.z,h);let d=e.add(m,y,m);e.add(d,h,d),c&&e.normalize(d,d),e.pack(d,f,p*t)}}var ze=kt(pt,4),At=kt(r,3),ae=kt(V,2),De=function(e,t,r,i,n,o,s){let a=n[e]*i.x,u=n[t]*i.y,l=n[r]*i.z;o[s]=a+u+l>N.EPSILON6?1:0},bt=new r,Gt=new r,Ct=new r,qe=new r;function xt(e,t,i,n,o,s,a,u,l,p,c,m,y,h,d,v){if(!(f(s)||f(a)||f(u)||f(l)||f(p)||0!==h))return;let b=r.fromArray(o,3*e,bt),w=r.fromArray(o,3*t,Gt),g=r.fromArray(o,3*i,Ct),I=Ht(n,b,w,g,qe);if(f(I)){if(f(s)&&At(e,t,i,I,s,m.normal.values,v,!0),f(p)){let n,o=r.fromArray(p,3*e,bt),s=r.fromArray(p,3*t,Gt),a=r.fromArray(p,3*i,Ct);r.multiplyByScalar(o,I.x,o),r.multiplyByScalar(s,I.y,s),r.multiplyByScalar(a,I.z,a),r.equals(o,r.ZERO)&&r.equals(s,r.ZERO)&&r.equals(a,r.ZERO)?(n=bt,n.x=0,n.y=0,n.z=0):(n=r.add(o,s,o),r.add(n,a,n),r.normalize(n,n)),r.pack(n,m.extrudeDirection.values,3*v)}if(f(c)&&De(e,t,i,I,c,m.applyOffset.values,v),f(a)&&At(e,t,i,I,a,m.tangent.values,v,!0),f(u)&&At(e,t,i,I,u,m.bitangent.values,v,!0),f(l)&&ae(e,t,i,I,l,m.st.values,v),h>0)for(let r=0;r<h;r++){let n=y[r];Re(e,t,i,I,v,d[n],m[n])}}}function Re(e,t,r,i,n,o,s){let a=o.componentsPerAttribute,u=o.values,l=s.values;switch(a){case 4:ze(e,t,r,i,u,l,n,!1);break;case 3:At(e,t,r,i,u,l,n,!1);break;case 2:ae(e,t,r,i,u,l,n,!1);break;default:l[n]=u[e]*i.x+u[t]*i.y+u[r]*i.z}}function K(e,t,r,i,n,o){let s=e.position.values.length/3;if(-1!==n){let a=i[n],u=r[a];return-1===u?(r[a]=s,e.position.values.push(o.x,o.y,o.z),t.push(s),s):(t.push(u),u)}return e.position.values.push(o.x,o.y,o.z),t.push(s),s}var Ve={position:!0,normal:!0,bitangent:!0,tangent:!0,st:!0,extrudeDirection:!0,applyOffset:!0};function ie(e){let t=e.geometry,i=t.attributes,n=i.position.values,o=f(i.normal)?i.normal.values:void 0,s=f(i.bitangent)?i.bitangent.values:void 0,a=f(i.tangent)?i.tangent.values:void 0,u=f(i.st)?i.st.values:void 0,l=f(i.extrudeDirection)?i.extrudeDirection.values:void 0,p=f(i.applyOffset)?i.applyOffset.values:void 0,c=t.indices,m=[];for(let e in i)i.hasOwnProperty(e)&&!Ve[e]&&f(i[e])&&m.push(e);let y,h,d,v,b,w=m.length,g=ut(t),I=ut(t),T=[];T.length=n.length/3;let A=[];for(A.length=n.length/3,b=0;b<T.length;++b)T[b]=-1,A[b]=-1;let N=c.length;for(b=0;b<N;b+=3){let e=c[b],t=c[b+1],N=c[b+2],x=r.fromArray(n,3*e),S=r.fromArray(n,3*t),P=r.fromArray(n,3*N),E=Ne(x,S,P);if(f(E)&&E.positions.length>3){let r=E.positions,f=E.indices,x=f.length;for(let S=0;S<x;++S){let x=f[S],P=r[x];P.y<0?(y=I.attributes,h=I.indices,d=T):(y=g.attributes,h=g.indices,d=A),v=K(y,h,d,c,x<3?b+x:-1,P),xt(e,t,N,P,n,o,a,s,u,l,p,y,m,w,i,v)}}else f(E)&&(x=E.positions[0],S=E.positions[1],P=E.positions[2]),x.y<0?(y=I.attributes,h=I.indices,d=T):(y=g.attributes,h=g.indices,d=A),v=K(y,h,d,c,b,x),xt(e,t,N,x,n,o,a,s,u,l,p,y,m,w,i,v),v=K(y,h,d,c,b+1,S),xt(e,t,N,S,n,o,a,s,u,l,p,y,m,w,i,v),v=K(y,h,d,c,b+2,P),xt(e,t,N,P,n,o,a,s,u,l,p,y,m,w,i,v)}Ft(e,I,g)}var ue=Et.fromPointNormal(r.ZERO,r.UNIT_Y),Ge=new r,Ce=new r;function at(e,t,i,n,o,s,a){if(!f(a))return;let u=r.fromArray(n,3*e,bt);r.equalsEpsilon(u,i,N.EPSILON10)?s.applyOffset.values[o]=a[e]:s.applyOffset.values[o]=a[t]}function se(e){let t,i=e.geometry,n=i.attributes,o=n.position.values,s=f(n.applyOffset)?n.applyOffset.values:void 0,a=i.indices,u=ut(i),l=ut(i),p=a.length,c=[];c.length=o.length/3;let m=[];for(m.length=o.length/3,t=0;t<c.length;++t)c[t]=-1,m[t]=-1;for(t=0;t<p;t+=2){let e,i=a[t],n=a[t+1],p=r.fromArray(o,3*i,bt),y=r.fromArray(o,3*n,Gt);Math.abs(p.y)<N.EPSILON6&&(p.y<0?p.y=-N.EPSILON6:p.y=N.EPSILON6),Math.abs(y.y)<N.EPSILON6&&(y.y<0?y.y=-N.EPSILON6:y.y=N.EPSILON6);let h=u.attributes,d=u.indices,v=m,b=l.attributes,w=l.indices,g=c,I=Lt.lineSegmentPlane(p,y,ue,Ct);if(f(I)){let f=r.multiplyByScalar(r.UNIT_Y,5*N.EPSILON9,Ge);p.y<0&&(r.negate(f,f),h=l.attributes,d=l.indices,v=c,b=u.attributes,w=u.indices,g=m);let T=r.add(I,f,Ce);e=K(h,d,v,a,t,p),at(i,n,p,o,e,h,s),e=K(h,d,v,a,-1,T),at(i,n,T,o,e,h,s),r.negate(f,f),r.add(I,f,T),e=K(b,w,g,a,-1,T),at(i,n,T,o,e,b,s),e=K(b,w,g,a,t+1,y),at(i,n,y,o,e,b,s)}else{let r,f,h;p.y<0?(r=l.attributes,f=l.indices,h=c):(r=u.attributes,f=u.indices,h=m),e=K(r,f,h,a,t,p),at(i,n,p,o,e,r,s),e=K(r,f,h,a,t+1,y),at(i,n,y,o,e,r,s)}}Ft(e,l,u)}var oe=new V,Be=new V,le=new r,fe=new r,Bt=new r,Fe=new r,ke=new r,Me=new r,re=new pt;function ce(e){let t=e.attributes,i=t.position.values,n=t.prevPosition.values,o=t.nextPosition.values,s=i.length;for(let e=0;e<s;e+=3){let t=r.unpack(i,e,le);if(t.x>0)continue;let a=r.unpack(n,e,fe);(t.y<0&&a.y>0||t.y>0&&a.y<0)&&(e-3>0?(n[e]=i[e-3],n[e+1]=i[e-2],n[e+2]=i[e-1]):r.pack(t,n,e));let u=r.unpack(o,e,Bt);(t.y<0&&u.y>0||t.y>0&&u.y<0)&&(e+3<s?(o[e]=i[e+3],o[e+1]=i[e+4],o[e+2]=i[e+5]):r.pack(t,o,e))}}var _e=5*N.EPSILON9,Tt=N.EPSILON6;function Ue(e){let t,i,n,o=e.geometry,s=o.attributes,a=s.position.values,u=s.prevPosition.values,l=s.nextPosition.values,p=s.expandAndWidth.values,c=f(s.st)?s.st.values:void 0,m=f(s.color)?s.color.values:void 0,y=ut(o),h=ut(o),d=!1,v=a.length/3;for(t=0;t<v;t+=4){let e=t,o=t+2,s=r.fromArray(a,3*e,le),v=r.fromArray(a,3*o,fe);if(Math.abs(s.y)<Tt)for(s.y=Tt*(v.y<0?-1:1),a[3*t+1]=s.y,a[3*(t+1)+1]=s.y,i=3*e;i<3*e+12;i+=3)u[i]=a[3*t],u[i+1]=a[3*t+1],u[i+2]=a[3*t+2];if(Math.abs(v.y)<Tt)for(v.y=Tt*(s.y<0?-1:1),a[3*(t+2)+1]=v.y,a[3*(t+3)+1]=v.y,i=3*e;i<3*e+12;i+=3)l[i]=a[3*(t+2)],l[i+1]=a[3*(t+2)+1],l[i+2]=a[3*(t+2)+2];let b=y.attributes,w=y.indices,g=h.attributes,I=h.indices,T=Lt.lineSegmentPlane(s,v,ue,Fe);if(f(T)){d=!0;let a=r.multiplyByScalar(r.UNIT_Y,_e,ke);s.y<0&&(r.negate(a,a),b=h.attributes,w=h.indices,g=y.attributes,I=y.indices);let A=r.add(T,a,Me);b.position.values.push(s.x,s.y,s.z,s.x,s.y,s.z),b.position.values.push(A.x,A.y,A.z),b.position.values.push(A.x,A.y,A.z),b.prevPosition.values.push(u[3*e],u[3*e+1],u[3*e+2]),b.prevPosition.values.push(u[3*e+3],u[3*e+4],u[3*e+5]),b.prevPosition.values.push(s.x,s.y,s.z,s.x,s.y,s.z),b.nextPosition.values.push(A.x,A.y,A.z),b.nextPosition.values.push(A.x,A.y,A.z),b.nextPosition.values.push(A.x,A.y,A.z),b.nextPosition.values.push(A.x,A.y,A.z),r.negate(a,a),r.add(T,a,A),g.position.values.push(A.x,A.y,A.z),g.position.values.push(A.x,A.y,A.z),g.position.values.push(v.x,v.y,v.z,v.x,v.y,v.z),g.prevPosition.values.push(A.x,A.y,A.z),g.prevPosition.values.push(A.x,A.y,A.z),g.prevPosition.values.push(A.x,A.y,A.z),g.prevPosition.values.push(A.x,A.y,A.z),g.nextPosition.values.push(v.x,v.y,v.z,v.x,v.y,v.z),g.nextPosition.values.push(l[3*o],l[3*o+1],l[3*o+2]),g.nextPosition.values.push(l[3*o+3],l[3*o+4],l[3*o+5]);let x=V.fromArray(p,2*e,oe),S=Math.abs(x.y);b.expandAndWidth.values.push(-1,S,1,S),b.expandAndWidth.values.push(-1,-S,1,-S),g.expandAndWidth.values.push(-1,S,1,S),g.expandAndWidth.values.push(-1,-S,1,-S);let P=r.magnitudeSquared(r.subtract(T,s,Bt));if(P/=r.magnitudeSquared(r.subtract(v,s,Bt)),f(m)){let t=pt.fromArray(m,4*e,re),r=pt.fromArray(m,4*o,re),n=N.lerp(t.x,r.x,P),s=N.lerp(t.y,r.y,P),a=N.lerp(t.z,r.z,P),u=N.lerp(t.w,r.w,P);for(i=4*e;i<4*e+8;++i)b.color.values.push(m[i]);for(b.color.values.push(n,s,a,u),b.color.values.push(n,s,a,u),g.color.values.push(n,s,a,u),g.color.values.push(n,s,a,u),i=4*o;i<4*o+8;++i)g.color.values.push(m[i])}if(f(c)){let r=V.fromArray(c,2*e,oe),n=V.fromArray(c,2*(t+3),Be),s=N.lerp(r.x,n.x,P);for(i=2*e;i<2*e+4;++i)b.st.values.push(c[i]);for(b.st.values.push(s,r.y),b.st.values.push(s,n.y),g.st.values.push(s,r.y),g.st.values.push(s,n.y),i=2*o;i<2*o+4;++i)g.st.values.push(c[i])}n=b.position.values.length/3-4,w.push(n,n+2,n+1),w.push(n+1,n+2,n+3),n=g.position.values.length/3-4,I.push(n,n+2,n+1),I.push(n+1,n+2,n+3)}else{let e,r;for(s.y<0?(e=h.attributes,r=h.indices):(e=y.attributes,r=y.indices),e.position.values.push(s.x,s.y,s.z),e.position.values.push(s.x,s.y,s.z),e.position.values.push(v.x,v.y,v.z),e.position.values.push(v.x,v.y,v.z),i=3*t;i<3*t+12;++i)e.prevPosition.values.push(u[i]),e.nextPosition.values.push(l[i]);for(i=2*t;i<2*t+8;++i)e.expandAndWidth.values.push(p[i]),f(c)&&e.st.values.push(c[i]);if(f(m))for(i=4*t;i<4*t+16;++i)e.color.values.push(m[i]);n=e.position.values.length/3-4,r.push(n,n+2,n+1),r.push(n+1,n+2,n+3)}}d&&(ce(h),ce(y)),Ft(e,h,y)}k.splitLongitude=function(e){if(!f(e))throw new I("instance is required.");let t=e.geometry,r=t.boundingSphere;if(f(r)&&(r.center.x-r.radius>0||ot.intersectPlane(r,Et.ORIGIN_ZX_PLANE)!==Ut.INTERSECTING))return e;if(t.geometryType!==dt.NONE)switch(t.geometryType){case dt.POLYLINES:Ue(e);break;case dt.TRIANGLES:ie(e);break;case dt.LINES:se(e)}else Le(t),t.primitiveType===D.TRIANGLES?ie(e):t.primitiveType===D.LINES&&se(e);return e};var Pn=k;export{Pn as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as L}from"./chunk-P7N43FDO.js";import{a as S}from"./chunk-ML6MR2RA.js";import{a as D}from"./chunk-4WQ4VT5S.js";import{a as H}from"./chunk-6EINM7EY.js";import{b as T,c as B,d as x}from"./chunk-A4I25VN7.js";import{c as E}from"./chunk-D3TVNJ6W.js";import{a as O}from"./chunk-ATKJRN2G.js";import{c as d}from"./chunk-2AIOP76V.js";import{a as c,c as V}from"./chunk-IAE6APK2.js";import{a as w}from"./chunk-3E7FIXV7.js";import{a as A}from"./chunk-NZBME2JK.js";import{f as a}from"./chunk-6DLS2UKD.js";var q=new c,g=new c;function U(e){let t=e.center;g=c.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,g),e.height,g),g=c.add(t,g,g);let i=new E(g,e.semiMajorAxis),r=L.computeEllipsePositions(e,!1,!0).outerPositions,n=new H({position:new x({componentDatatype:O.DOUBLE,componentsPerAttribute:3,values:L.raisePositionsToHeight(r,e,!1)})}),o=r.length/3,s=D.createTypedArray(o,2*o),a=0;for(let e=0;e<o;++e)s[a++]=e,s[a++]=(e+1)%o;return{boundingSphere:i,attributes:n,indices:s}}var j=new E,N=new E;function R(e){let t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,n=c.multiplyByScalar(i.geodeticSurfaceNormal(t,q),e.height,q);j.center=c.add(t,n,j.center),j.radius=r,n=c.multiplyByScalar(i.geodeticSurfaceNormal(t,n),e.extrudedHeight,n),N.center=c.add(t,n,N.center),N.radius=r;let o=L.computeEllipsePositions(e,!1,!0).outerPositions,s=new H({position:new x({componentDatatype:O.DOUBLE,componentsPerAttribute:3,values:L.raisePositionsToHeight(o,e,!0)})});o=s.position.values;let u=E.union(j,N),l=o.length/3;if(a(e.offsetAttribute)){let t=new Uint8Array(l);if(e.offsetAttribute===S.TOP)t=t.fill(1,0,l/2);else{let i=e.offsetAttribute===S.NONE?0:1;t=t.fill(i)}s.applyOffset=new x({componentDatatype:O.UNSIGNED_BYTE,componentsPerAttribute:1,values:t})}let d=e.numberOfVerticalLines??16;d=w.clamp(d,0,l/2);let f=D.createTypedArray(l,2*l+2*d);l/=2;let h,m,p=0;for(h=0;h<l;++h)f[p++]=h,f[p++]=(h+1)%l,f[p++]=h+l,f[p++]=(h+1)%l+l;if(d>0){let e=Math.min(d,l);m=Math.round(l/e);let t=Math.min(m*d,l);for(h=0;h<t;h+=m)f[p++]=h,f[p++]=h+l}return{boundingSphere:u,attributes:s,indices:f}}function M(e){let t=(e=e??V.EMPTY_OBJECT).center,i=e.ellipsoid??d.default,r=e.semiMajorAxis,n=e.semiMinorAxis,o=e.granularity??w.RADIANS_PER_DEGREE;if(!a(t))throw new A("center is required.");if(!a(r))throw new A("semiMajorAxis is required.");if(!a(n))throw new A("semiMinorAxis is required.");if(r<n)throw new A("semiMajorAxis must be greater than or equal to the semiMinorAxis.");if(o<=0)throw new A("granularity must be greater than zero.");let s=e.height??0,u=e.extrudedHeight??s;this._center=c.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=n,this._ellipsoid=d.clone(i),this._rotation=e.rotation??0,this._height=Math.max(u,s),this._granularity=o,this._extrudedHeight=Math.min(u,s),this._numberOfVerticalLines=Math.max(e.numberOfVerticalLines??16,0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}M.packedLength=c.packedLength+d.packedLength+8,M.pack=function(e,t,i){if(!a(e))throw new A("value is required");if(!a(t))throw new A("array is required");return i=i??0,c.pack(e._center,t,i),i+=c.packedLength,d.pack(e._ellipsoid,t,i),i+=d.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=e._offsetAttribute??-1,t};var y=new c,C=new d,_={center:y,ellipsoid:C,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};M.unpack=function(e,t,i){if(!a(e))throw new A("array is required");t=t??0;let r=c.unpack(e,t,y);t+=c.packedLength;let n=d.unpack(e,t,C);t+=d.packedLength;let o=e[t++],s=e[t++],u=e[t++],l=e[t++],f=e[t++],h=e[t++],m=e[t++],p=e[t];return a(i)?(i._center=c.clone(r,i._center),i._ellipsoid=d.clone(n,i._ellipsoid),i._semiMajorAxis=o,i._semiMinorAxis=s,i._rotation=u,i._height=l,i._granularity=f,i._extrudedHeight=h,i._numberOfVerticalLines=m,i._offsetAttribute=-1===p?void 0:p,i):(_.height=l,_.extrudedHeight=h,_.granularity=f,_.rotation=u,_.semiMajorAxis=o,_.semiMinorAxis=s,_.numberOfVerticalLines=m,_.offsetAttribute=-1===p?void 0:p,new M(_))},M.createGeometry=function(e){if(e._semiMajorAxis<=0||e._semiMinorAxis<=0)return;let t=e._height,i=e._extrudedHeight,r=!w.equalsEpsilon(t,i,0,w.EPSILON2);e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center);let n,o={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:t,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines};if(r)o.extrudedHeight=i,o.offsetAttribute=e._offsetAttribute,n=R(o);else if(n=U(o),a(e._offsetAttribute)){let t=n.attributes.position.values.length,i=e._offsetAttribute===S.NONE?0:1,r=new Uint8Array(t/3).fill(i);n.attributes.applyOffset=new x({componentDatatype:O.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})}return new B({attributes:n.attributes,indices:n.indices,primitiveType:T.LINES,boundingSphere:n.boundingSphere,offsetAttribute:e._offsetAttribute})};var ie=M;export{ie as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
var E={DEPTH_BUFFER_BIT:256,STENCIL_BUFFER_BIT:1024,COLOR_BUFFER_BIT:16384,POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6,ZERO:0,ONE:1,SRC_COLOR:768,ONE_MINUS_SRC_COLOR:769,SRC_ALPHA:770,ONE_MINUS_SRC_ALPHA:771,DST_ALPHA:772,ONE_MINUS_DST_ALPHA:773,DST_COLOR:774,ONE_MINUS_DST_COLOR:775,SRC_ALPHA_SATURATE:776,FUNC_ADD:32774,BLEND_EQUATION:32777,BLEND_EQUATION_RGB:32777,BLEND_EQUATION_ALPHA:34877,FUNC_SUBTRACT:32778,FUNC_REVERSE_SUBTRACT:32779,BLEND_DST_RGB:32968,BLEND_SRC_RGB:32969,BLEND_DST_ALPHA:32970,BLEND_SRC_ALPHA:32971,CONSTANT_COLOR:32769,ONE_MINUS_CONSTANT_COLOR:32770,CONSTANT_ALPHA:32771,ONE_MINUS_CONSTANT_ALPHA:32772,BLEND_COLOR:32773,ARRAY_BUFFER:34962,ELEMENT_ARRAY_BUFFER:34963,ARRAY_BUFFER_BINDING:34964,ELEMENT_ARRAY_BUFFER_BINDING:34965,STREAM_DRAW:35040,STATIC_DRAW:35044,DYNAMIC_DRAW:35048,BUFFER_SIZE:34660,BUFFER_USAGE:34661,CURRENT_VERTEX_ATTRIB:34342,FRONT:1028,BACK:1029,FRONT_AND_BACK:1032,CULL_FACE:2884,BLEND:3042,DITHER:3024,STENCIL_TEST:2960,DEPTH_TEST:2929,SCISSOR_TEST:3089,POLYGON_OFFSET_FILL:32823,SAMPLE_ALPHA_TO_COVERAGE:32926,SAMPLE_COVERAGE:32928,NO_ERROR:0,INVALID_ENUM:1280,INVALID_VALUE:1281,INVALID_OPERATION:1282,OUT_OF_MEMORY:1285,CW:2304,CCW:2305,LINE_WIDTH:2849,ALIASED_POINT_SIZE_RANGE:33901,ALIASED_LINE_WIDTH_RANGE:33902,CULL_FACE_MODE:2885,FRONT_FACE:2886,DEPTH_RANGE:2928,DEPTH_WRITEMASK:2930,DEPTH_CLEAR_VALUE:2931,DEPTH_FUNC:2932,STENCIL_CLEAR_VALUE:2961,STENCIL_FUNC:2962,STENCIL_FAIL:2964,STENCIL_PASS_DEPTH_FAIL:2965,STENCIL_PASS_DEPTH_PASS:2966,STENCIL_REF:2967,STENCIL_VALUE_MASK:2963,STENCIL_WRITEMASK:2968,STENCIL_BACK_FUNC:34816,STENCIL_BACK_FAIL:34817,STENCIL_BACK_PASS_DEPTH_FAIL:34818,STENCIL_BACK_PASS_DEPTH_PASS:34819,STENCIL_BACK_REF:36003,STENCIL_BACK_VALUE_MASK:36004,STENCIL_BACK_WRITEMASK:36005,VIEWPORT:2978,SCISSOR_BOX:3088,COLOR_CLEAR_VALUE:3106,COLOR_WRITEMASK:3107,UNPACK_ALIGNMENT:3317,PACK_ALIGNMENT:3333,MAX_TEXTURE_SIZE:3379,MAX_VIEWPORT_DIMS:3386,SUBPIXEL_BITS:3408,RED_BITS:3410,GREEN_BITS:3411,BLUE_BITS:3412,ALPHA_BITS:3413,DEPTH_BITS:3414,STENCIL_BITS:3415,POLYGON_OFFSET_UNITS:10752,POLYGON_OFFSET_FACTOR:32824,TEXTURE_BINDING_2D:32873,SAMPLE_BUFFERS:32936,SAMPLES:32937,SAMPLE_COVERAGE_VALUE:32938,SAMPLE_COVERAGE_INVERT:32939,COMPRESSED_TEXTURE_FORMATS:34467,DONT_CARE:4352,FASTEST:4353,NICEST:4354,GENERATE_MIPMAP_HINT:33170,BYTE:5120,UNSIGNED_BYTE:5121,SHORT:5122,UNSIGNED_SHORT:5123,INT:5124,UNSIGNED_INT:5125,FLOAT:5126,DEPTH_COMPONENT:6402,ALPHA:6406,RGB:6407,RGBA:6408,LUMINANCE:6409,LUMINANCE_ALPHA:6410,UNSIGNED_SHORT_4_4_4_4:32819,UNSIGNED_SHORT_5_5_5_1:32820,UNSIGNED_SHORT_5_6_5:33635,FRAGMENT_SHADER:35632,VERTEX_SHADER:35633,MAX_VERTEX_ATTRIBS:34921,MAX_VERTEX_UNIFORM_VECTORS:36347,MAX_VARYING_VECTORS:36348,MAX_COMBINED_TEXTURE_IMAGE_UNITS:35661,MAX_VERTEX_TEXTURE_IMAGE_UNITS:35660,MAX_TEXTURE_IMAGE_UNITS:34930,MAX_FRAGMENT_UNIFORM_VECTORS:36349,SHADER_TYPE:35663,DELETE_STATUS:35712,LINK_STATUS:35714,VALIDATE_STATUS:35715,ATTACHED_SHADERS:35717,ACTIVE_UNIFORMS:35718,ACTIVE_ATTRIBUTES:35721,SHADING_LANGUAGE_VERSION:35724,CURRENT_PROGRAM:35725,NEVER:512,LESS:513,EQUAL:514,LEQUAL:515,GREATER:516,NOTEQUAL:517,GEQUAL:518,ALWAYS:519,KEEP:7680,REPLACE:7681,INCR:7682,DECR:7683,INVERT:5386,INCR_WRAP:34055,DECR_WRAP:34056,VENDOR:7936,RENDERER:7937,VERSION:7938,NEAREST:9728,LINEAR:9729,NEAREST_MIPMAP_NEAREST:9984,LINEAR_MIPMAP_NEAREST:9985,NEAREST_MIPMAP_LINEAR:9986,LINEAR_MIPMAP_LINEAR:9987,TEXTURE_MAG_FILTER:10240,TEXTURE_MIN_FILTER:10241,TEXTURE_WRAP_S:10242,TEXTURE_WRAP_T:10243,TEXTURE_2D:3553,TEXTURE:5890,TEXTURE_CUBE_MAP:34067,TEXTURE_BINDING_CUBE_MAP:34068,TEXTURE_CUBE_MAP_POSITIVE_X:34069,TEXTURE_CUBE_MAP_NEGATIVE_X:34070,TEXTURE_CUBE_MAP_POSITIVE_Y:34071,TEXTURE_CUBE_MAP_NEGATIVE_Y:34072,TEXTURE_CUBE_MAP_POSITIVE_Z:34073,TEXTURE_CUBE_MAP_NEGATIVE_Z:34074,MAX_CUBE_MAP_TEXTURE_SIZE:34076,TEXTURE0:33984,TEXTURE1:33985,TEXTURE2:33986,TEXTURE3:33987,TEXTURE4:33988,TEXTURE5:33989,TEXTURE6:33990,TEXTURE7:33991,TEXTURE8:33992,TEXTURE9:33993,TEXTURE10:33994,TEXTURE11:33995,TEXTURE12:33996,TEXTURE13:33997,TEXTURE14:33998,TEXTURE15:33999,TEXTURE16:34e3,TEXTURE17:34001,TEXTURE18:34002,TEXTURE19:34003,TEXTURE20:34004,TEXTURE21:34005,TEXTURE22:34006,TEXTURE23:34007,TEXTURE24:34008,TEXTURE25:34009,TEXTURE26:34010,TEXTURE27:34011,TEXTURE28:34012,TEXTURE29:34013,TEXTURE30:34014,TEXTURE31:34015,ACTIVE_TEXTURE:34016,REPEAT:10497,CLAMP_TO_EDGE:33071,MIRRORED_REPEAT:33648,FLOAT_VEC2:35664,FLOAT_VEC3:35665,FLOAT_VEC4:35666,INT_VEC2:35667,INT_VEC3:35668,INT_VEC4:35669,BOOL:35670,BOOL_VEC2:35671,BOOL_VEC3:35672,BOOL_VEC4:35673,FLOAT_MAT2:35674,FLOAT_MAT3:35675,FLOAT_MAT4:35676,SAMPLER_2D:35678,SAMPLER_CUBE:35680,VERTEX_ATTRIB_ARRAY_ENABLED:34338,VERTEX_ATTRIB_ARRAY_SIZE:34339,VERTEX_ATTRIB_ARRAY_STRIDE:34340,VERTEX_ATTRIB_ARRAY_TYPE:34341,VERTEX_ATTRIB_ARRAY_NORMALIZED:34922,VERTEX_ATTRIB_ARRAY_POINTER:34373,VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:34975,IMPLEMENTATION_COLOR_READ_TYPE:35738,IMPLEMENTATION_COLOR_READ_FORMAT:35739,COMPILE_STATUS:35713,LOW_FLOAT:36336,MEDIUM_FLOAT:36337,HIGH_FLOAT:36338,LOW_INT:36339,MEDIUM_INT:36340,HIGH_INT:36341,FRAMEBUFFER:36160,RENDERBUFFER:36161,RGBA4:32854,RGB5_A1:32855,RGB565:36194,DEPTH_COMPONENT16:33189,STENCIL_INDEX:6401,STENCIL_INDEX8:36168,DEPTH_STENCIL:34041,RENDERBUFFER_WIDTH:36162,RENDERBUFFER_HEIGHT:36163,RENDERBUFFER_INTERNAL_FORMAT:36164,RENDERBUFFER_RED_SIZE:36176,RENDERBUFFER_GREEN_SIZE:36177,RENDERBUFFER_BLUE_SIZE:36178,RENDERBUFFER_ALPHA_SIZE:36179,RENDERBUFFER_DEPTH_SIZE:36180,RENDERBUFFER_STENCIL_SIZE:36181,FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE:36048,FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:36049,FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL:36050,FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE:36051,COLOR_ATTACHMENT0:36064,DEPTH_ATTACHMENT:36096,STENCIL_ATTACHMENT:36128,DEPTH_STENCIL_ATTACHMENT:33306,NONE:0,FRAMEBUFFER_COMPLETE:36053,FRAMEBUFFER_INCOMPLETE_ATTACHMENT:36054,FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT:36055,FRAMEBUFFER_INCOMPLETE_DIMENSIONS:36057,FRAMEBUFFER_UNSUPPORTED:36061,FRAMEBUFFER_BINDING:36006,RENDERBUFFER_BINDING:36007,MAX_RENDERBUFFER_SIZE:34024,INVALID_FRAMEBUFFER_OPERATION:1286,UNPACK_FLIP_Y_WEBGL:37440,UNPACK_PREMULTIPLY_ALPHA_WEBGL:37441,CONTEXT_LOST_WEBGL:37442,UNPACK_COLORSPACE_CONVERSION_WEBGL:37443,BROWSER_DEFAULT_WEBGL:37444,COMPRESSED_RGB_S3TC_DXT1_EXT:33776,COMPRESSED_RGBA_S3TC_DXT1_EXT:33777,COMPRESSED_RGBA_S3TC_DXT3_EXT:33778,COMPRESSED_RGBA_S3TC_DXT5_EXT:33779,COMPRESSED_RGB_PVRTC_4BPPV1_IMG:35840,COMPRESSED_RGB_PVRTC_2BPPV1_IMG:35841,COMPRESSED_RGBA_PVRTC_4BPPV1_IMG:35842,COMPRESSED_RGBA_PVRTC_2BPPV1_IMG:35843,COMPRESSED_RGBA_ASTC_4x4_WEBGL:37808,COMPRESSED_RGB_ETC1_WEBGL:36196,COMPRESSED_RGBA_BPTC_UNORM:36492,HALF_FLOAT_OES:36193,DOUBLE:5130,READ_BUFFER:3074,UNPACK_ROW_LENGTH:3314,UNPACK_SKIP_ROWS:3315,UNPACK_SKIP_PIXELS:3316,PACK_ROW_LENGTH:3330,PACK_SKIP_ROWS:3331,PACK_SKIP_PIXELS:3332,COLOR:6144,DEPTH:6145,STENCIL:6146,RED:6403,RGB8:32849,RGBA8:32856,RGB10_A2:32857,TEXTURE_BINDING_3D:32874,UNPACK_SKIP_IMAGES:32877,UNPACK_IMAGE_HEIGHT:32878,TEXTURE_3D:32879,TEXTURE_WRAP_R:32882,MAX_3D_TEXTURE_SIZE:32883,UNSIGNED_INT_2_10_10_10_REV:33640,MAX_ELEMENTS_VERTICES:33e3,MAX_ELEMENTS_INDICES:33001,TEXTURE_MIN_LOD:33082,TEXTURE_MAX_LOD:33083,TEXTURE_BASE_LEVEL:33084,TEXTURE_MAX_LEVEL:33085,MIN:32775,MAX:32776,DEPTH_COMPONENT24:33190,MAX_TEXTURE_LOD_BIAS:34045,TEXTURE_COMPARE_MODE:34892,TEXTURE_COMPARE_FUNC:34893,CURRENT_QUERY:34917,QUERY_RESULT:34918,QUERY_RESULT_AVAILABLE:34919,STREAM_READ:35041,STREAM_COPY:35042,STATIC_READ:35045,STATIC_COPY:35046,DYNAMIC_READ:35049,DYNAMIC_COPY:35050,MAX_DRAW_BUFFERS:34852,DRAW_BUFFER0:34853,DRAW_BUFFER1:34854,DRAW_BUFFER2:34855,DRAW_BUFFER3:34856,DRAW_BUFFER4:34857,DRAW_BUFFER5:34858,DRAW_BUFFER6:34859,DRAW_BUFFER7:34860,DRAW_BUFFER8:34861,DRAW_BUFFER9:34862,DRAW_BUFFER10:34863,DRAW_BUFFER11:34864,DRAW_BUFFER12:34865,DRAW_BUFFER13:34866,DRAW_BUFFER14:34867,DRAW_BUFFER15:34868,MAX_FRAGMENT_UNIFORM_COMPONENTS:35657,MAX_VERTEX_UNIFORM_COMPONENTS:35658,SAMPLER_3D:35679,SAMPLER_2D_SHADOW:35682,FRAGMENT_SHADER_DERIVATIVE_HINT:35723,PIXEL_PACK_BUFFER:35051,PIXEL_UNPACK_BUFFER:35052,PIXEL_PACK_BUFFER_BINDING:35053,PIXEL_UNPACK_BUFFER_BINDING:35055,FLOAT_MAT2x3:35685,FLOAT_MAT2x4:35686,FLOAT_MAT3x2:35687,FLOAT_MAT3x4:35688,FLOAT_MAT4x2:35689,FLOAT_MAT4x3:35690,SRGB:35904,SRGB8:35905,SRGB8_ALPHA8:35907,COMPARE_REF_TO_TEXTURE:34894,RGBA32F:34836,RGB32F:34837,RGBA16F:34842,RGB16F:34843,VERTEX_ATTRIB_ARRAY_INTEGER:35069,MAX_ARRAY_TEXTURE_LAYERS:35071,MIN_PROGRAM_TEXEL_OFFSET:35076,MAX_PROGRAM_TEXEL_OFFSET:35077,MAX_VARYING_COMPONENTS:35659,TEXTURE_2D_ARRAY:35866,TEXTURE_BINDING_2D_ARRAY:35869,R11F_G11F_B10F:35898,UNSIGNED_INT_10F_11F_11F_REV:35899,RGB9_E5:35901,UNSIGNED_INT_5_9_9_9_REV:35902,TRANSFORM_FEEDBACK_BUFFER_MODE:35967,MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS:35968,TRANSFORM_FEEDBACK_VARYINGS:35971,TRANSFORM_FEEDBACK_BUFFER_START:35972,TRANSFORM_FEEDBACK_BUFFER_SIZE:35973,TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN:35976,RASTERIZER_DISCARD:35977,MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS:35978,MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS:35979,INTERLEAVED_ATTRIBS:35980,SEPARATE_ATTRIBS:35981,TRANSFORM_FEEDBACK_BUFFER:35982,TRANSFORM_FEEDBACK_BUFFER_BINDING:35983,RGBA32UI:36208,RGB32UI:36209,RGBA16UI:36214,RGB16UI:36215,RGBA8UI:36220,RGB8UI:36221,RGBA32I:36226,RGB32I:36227,RGBA16I:36232,RGB16I:36233,RGBA8I:36238,RGB8I:36239,RED_INTEGER:36244,RGB_INTEGER:36248,RGBA_INTEGER:36249,SAMPLER_2D_ARRAY:36289,SAMPLER_2D_ARRAY_SHADOW:36292,SAMPLER_CUBE_SHADOW:36293,UNSIGNED_INT_VEC2:36294,UNSIGNED_INT_VEC3:36295,UNSIGNED_INT_VEC4:36296,INT_SAMPLER_2D:36298,INT_SAMPLER_3D:36299,INT_SAMPLER_CUBE:36300,INT_SAMPLER_2D_ARRAY:36303,UNSIGNED_INT_SAMPLER_2D:36306,UNSIGNED_INT_SAMPLER_3D:36307,UNSIGNED_INT_SAMPLER_CUBE:36308,UNSIGNED_INT_SAMPLER_2D_ARRAY:36311,DEPTH_COMPONENT32F:36012,DEPTH32F_STENCIL8:36013,FLOAT_32_UNSIGNED_INT_24_8_REV:36269,FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING:33296,FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE:33297,FRAMEBUFFER_ATTACHMENT_RED_SIZE:33298,FRAMEBUFFER_ATTACHMENT_GREEN_SIZE:33299,FRAMEBUFFER_ATTACHMENT_BLUE_SIZE:33300,FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE:33301,FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE:33302,FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE:33303,FRAMEBUFFER_DEFAULT:33304,UNSIGNED_INT_24_8:34042,DEPTH24_STENCIL8:35056,UNSIGNED_NORMALIZED:35863,DRAW_FRAMEBUFFER_BINDING:36006,READ_FRAMEBUFFER:36008,DRAW_FRAMEBUFFER:36009,READ_FRAMEBUFFER_BINDING:36010,RENDERBUFFER_SAMPLES:36011,FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER:36052,MAX_COLOR_ATTACHMENTS:36063,COLOR_ATTACHMENT1:36065,COLOR_ATTACHMENT2:36066,COLOR_ATTACHMENT3:36067,COLOR_ATTACHMENT4:36068,COLOR_ATTACHMENT5:36069,COLOR_ATTACHMENT6:36070,COLOR_ATTACHMENT7:36071,COLOR_ATTACHMENT8:36072,COLOR_ATTACHMENT9:36073,COLOR_ATTACHMENT10:36074,COLOR_ATTACHMENT11:36075,COLOR_ATTACHMENT12:36076,COLOR_ATTACHMENT13:36077,COLOR_ATTACHMENT14:36078,COLOR_ATTACHMENT15:36079,FRAMEBUFFER_INCOMPLETE_MULTISAMPLE:36182,MAX_SAMPLES:36183,HALF_FLOAT:5131,RG:33319,RG_INTEGER:33320,R8:33321,RG8:33323,R16F:33325,R32F:33326,RG16F:33327,RG32F:33328,R8I:33329,R8UI:33330,R16I:33331,R16UI:33332,R32I:33333,R32UI:33334,RG8I:33335,RG8UI:33336,RG16I:33337,RG16UI:33338,RG32I:33339,RG32UI:33340,VERTEX_ARRAY_BINDING:34229,R8_SNORM:36756,RG8_SNORM:36757,RGB8_SNORM:36758,RGBA8_SNORM:36759,SIGNED_NORMALIZED:36764,COPY_READ_BUFFER:36662,COPY_WRITE_BUFFER:36663,COPY_READ_BUFFER_BINDING:36662,COPY_WRITE_BUFFER_BINDING:36663,UNIFORM_BUFFER:35345,UNIFORM_BUFFER_BINDING:35368,UNIFORM_BUFFER_START:35369,UNIFORM_BUFFER_SIZE:35370,MAX_VERTEX_UNIFORM_BLOCKS:35371,MAX_FRAGMENT_UNIFORM_BLOCKS:35373,MAX_COMBINED_UNIFORM_BLOCKS:35374,MAX_UNIFORM_BUFFER_BINDINGS:35375,MAX_UNIFORM_BLOCK_SIZE:35376,MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS:35377,MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS:35379,UNIFORM_BUFFER_OFFSET_ALIGNMENT:35380,ACTIVE_UNIFORM_BLOCKS:35382,UNIFORM_TYPE:35383,UNIFORM_SIZE:35384,UNIFORM_BLOCK_INDEX:35386,UNIFORM_OFFSET:35387,UNIFORM_ARRAY_STRIDE:35388,UNIFORM_MATRIX_STRIDE:35389,UNIFORM_IS_ROW_MAJOR:35390,UNIFORM_BLOCK_BINDING:35391,UNIFORM_BLOCK_DATA_SIZE:35392,UNIFORM_BLOCK_ACTIVE_UNIFORMS:35394,UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES:35395,UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER:35396,UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER:35398,INVALID_INDEX:4294967295,MAX_VERTEX_OUTPUT_COMPONENTS:37154,MAX_FRAGMENT_INPUT_COMPONENTS:37157,MAX_SERVER_WAIT_TIMEOUT:37137,OBJECT_TYPE:37138,SYNC_CONDITION:37139,SYNC_STATUS:37140,SYNC_FLAGS:37141,SYNC_FENCE:37142,SYNC_GPU_COMMANDS_COMPLETE:37143,UNSIGNALED:37144,SIGNALED:37145,ALREADY_SIGNALED:37146,TIMEOUT_EXPIRED:37147,CONDITION_SATISFIED:37148,WAIT_FAILED:37149,SYNC_FLUSH_COMMANDS_BIT:1,VERTEX_ATTRIB_ARRAY_DIVISOR:35070,ANY_SAMPLES_PASSED:35887,ANY_SAMPLES_PASSED_CONSERVATIVE:36202,SAMPLER_BINDING:35097,RGB10_A2UI:36975,INT_2_10_10_10_REV:36255,TRANSFORM_FEEDBACK:36386,TRANSFORM_FEEDBACK_PAUSED:36387,TRANSFORM_FEEDBACK_ACTIVE:36388,TRANSFORM_FEEDBACK_BINDING:36389,COMPRESSED_R11_EAC:37488,COMPRESSED_SIGNED_R11_EAC:37489,COMPRESSED_RG11_EAC:37490,COMPRESSED_SIGNED_RG11_EAC:37491,COMPRESSED_RGB8_ETC2:37492,COMPRESSED_SRGB8_ETC2:37493,COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2:37494,COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2:37495,COMPRESSED_RGBA8_ETC2_EAC:37496,COMPRESSED_SRGB8_ALPHA8_ETC2_EAC:37497,TEXTURE_IMMUTABLE_FORMAT:37167,MAX_ELEMENT_INDEX:36203,TEXTURE_IMMUTABLE_LEVELS:33503,MAX_TEXTURE_MAX_ANISOTROPY_EXT:34047};Object.freeze(E);var _=E;export{_ as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{a as fn,c as Tn}from"./chunk-6DLS2UKD.js";var Dn=Tn(((t,e)=>{var r=r||{};r.scope={},r.arrayIteratorImpl=function(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}},r.arrayIterator=function(t){return{next:r.arrayIteratorImpl(t)}},r.makeIterator=function(t){var e=typeof Symbol<"u"&&Symbol.iterator&&t[Symbol.iterator];return e?e.call(t):r.arrayIterator(t)},r.ASSUME_ES5=!1,r.ASSUME_NO_NATIVE_MAP=!1,r.ASSUME_NO_NATIVE_SET=!1,r.SIMPLE_FROUND_POLYFILL=!1,r.ISOLATE_POLYFILLS=!1,r.FORCE_POLYFILL_PROMISE=!1,r.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,r.getGlobal=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var r=t[e];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")},r.global=r.getGlobal(t),r.defineProperty=r.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(t,e,r){return t==Array.prototype||t==Object.prototype||(t[e]=r.value),t},r.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),r.TRUST_ES6_POLYFILLS=!r.ISOLATE_POLYFILLS||r.IS_SYMBOL_NATIVE,r.polyfills={},r.propertyToPolyfillSymbol={},r.POLYFILL_PREFIX="$jscp$",r.polyfill=function(t,e,n,o){e&&(r.ISOLATE_POLYFILLS?r.polyfillIsolated(t,e,n,o):r.polyfillUnisolated(t,e,n,o))},r.polyfillUnisolated=function(t,e,n,o){for(n=r.global,t=t.split("."),o=0;o<t.length-1;o++){var _=t[o];if(!(_ in n))return;n=n[_]}(e=e(o=n[t=t[t.length-1]]))!=o&&null!=e&&r.defineProperty(n,t,{configurable:!0,writable:!0,value:e})},r.polyfillIsolated=function(t,e,n,o){var _=t.split(".");t=1===_.length,o=_[0],o=!t&&o in r.polyfills?r.polyfills:r.global;for(var i=0;i<_.length-1;i++){var p=_[i];if(!(p in o))return;o=o[p]}_=_[_.length-1],null!=(e=e(n=r.IS_SYMBOL_NATIVE&&"es6"===n?o[_]:null))&&(t?r.defineProperty(r.polyfills,_,{configurable:!0,writable:!0,value:e}):e!==n&&(void 0===r.propertyToPolyfillSymbol[_]&&(n=1e9*Math.random()>>>0,r.propertyToPolyfillSymbol[_]=r.IS_SYMBOL_NATIVE?r.global.Symbol(_):r.POLYFILL_PREFIX+n+"$"+_),r.defineProperty(o,r.propertyToPolyfillSymbol[_],{configurable:!0,writable:!0,value:e})))},r.polyfill("Promise",(function(t){function e(){this.batch_=null}function n(t){return t instanceof _?t:new _((function(e,r){e(t)}))}if(t&&(!(r.FORCE_POLYFILL_PROMISE||r.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION&&typeof r.global.PromiseRejectionEvent>"u")||!r.global.Promise||-1===r.global.Promise.toString().indexOf("[native code]")))return t;e.prototype.asyncExecute=function(t){if(null==this.batch_){this.batch_=[];var e=this;this.asyncExecuteFunction((function(){e.executeBatch_()}))}this.batch_.push(t)};var o=r.global.setTimeout;e.prototype.asyncExecuteFunction=function(t){o(t,0)},e.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var t=this.batch_;this.batch_=[];for(var e=0;e<t.length;++e){var r=t[e];t[e]=null;try{r()}catch(t){this.asyncThrow_(t)}}}this.batch_=null},e.prototype.asyncThrow_=function(t){this.asyncExecuteFunction((function(){throw t}))};var _=function(t){this.state_=0,this.result_=void 0,this.onSettledCallbacks_=[],this.isRejectionHandled_=!1;var e=this.createResolveAndReject_();try{t(e.resolve,e.reject)}catch(t){e.reject(t)}};_.prototype.createResolveAndReject_=function(){function t(t){return function(n){r||(r=!0,t.call(e,n))}}var e=this,r=!1;return{resolve:t(this.resolveTo_),reject:t(this.reject_)}},_.prototype.resolveTo_=function(t){if(t===this)this.reject_(new TypeError("A Promise cannot resolve to itself"));else if(t instanceof _)this.settleSameAsPromise_(t);else{t:switch(typeof t){case"object":var e=null!=t;break t;case"function":e=!0;break t;default:e=!1}e?this.resolveToNonPromiseObj_(t):this.fulfill_(t)}},_.prototype.resolveToNonPromiseObj_=function(t){var e=void 0;try{e=t.then}catch(t){return void this.reject_(t)}"function"==typeof e?this.settleSameAsThenable_(e,t):this.fulfill_(t)},_.prototype.reject_=function(t){this.settle_(2,t)},_.prototype.fulfill_=function(t){this.settle_(1,t)},_.prototype.settle_=function(t,e){if(0!=this.state_)throw Error("Cannot settle("+t+", "+e+"): Promise already settled in state"+this.state_);this.state_=t,this.result_=e,2===this.state_&&this.scheduleUnhandledRejectionCheck_(),this.executeOnSettledCallbacks_()},_.prototype.scheduleUnhandledRejectionCheck_=function(){var t=this;o((function(){if(t.notifyUnhandledRejection_()){var e=r.global.console;typeof e<"u"&&e.error(t.result_)}}),1)},_.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var t=r.global.CustomEvent,e=r.global.Event,n=r.global.dispatchEvent;return typeof n>"u"||("function"==typeof t?t=new t("unhandledrejection",{cancelable:!0}):"function"==typeof e?t=new e("unhandledrejection",{cancelable:!0}):(t=r.global.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,t),t.promise=this,t.reason=this.result_,n(t))},_.prototype.executeOnSettledCallbacks_=function(){if(null!=this.onSettledCallbacks_){for(var t=0;t<this.onSettledCallbacks_.length;++t)i.asyncExecute(this.onSettledCallbacks_[t]);this.onSettledCallbacks_=null}};var i=new e;return _.prototype.settleSameAsPromise_=function(t){var e=this.createResolveAndReject_();t.callWhenSettled_(e.resolve,e.reject)},_.prototype.settleSameAsThenable_=function(t,e){var r=this.createResolveAndReject_();try{t.call(e,r.resolve,r.reject)}catch(t){r.reject(t)}},_.prototype.then=function(t,e){function r(t,e){return"function"==typeof t?function(e){try{n(t(e))}catch(t){o(t)}}:e}var n,o,i=new _((function(t,e){n=t,o=e}));return this.callWhenSettled_(r(t,n),r(e,o)),i},_.prototype.catch=function(t){return this.then(void 0,t)},_.prototype.callWhenSettled_=function(t,e){function r(){switch(n.state_){case 1:t(n.result_);break;case 2:e(n.result_);break;default:throw Error("Unexpected state: "+n.state_)}}var n=this;null==this.onSettledCallbacks_?i.asyncExecute(r):this.onSettledCallbacks_.push(r),this.isRejectionHandled_=!0},_.resolve=n,_.reject=function(t){return new _((function(e,r){r(t)}))},_.race=function(t){return new _((function(e,o){for(var _=r.makeIterator(t),i=_.next();!i.done;i=_.next())n(i.value).callWhenSettled_(e,o)}))},_.all=function(t){var e=r.makeIterator(t),o=e.next();return o.done?n([]):new _((function(t,r){function _(e){return function(r){i[e]=r,0==--p&&t(i)}}var i=[],p=0;do{i.push(void 0),p++,n(o.value).callWhenSettled_(_(i.length-1),r),o=e.next()}while(!o.done)}))},_}),"es6","es3"),r.owns=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.assign=r.TRUST_ES6_POLYFILLS&&"function"==typeof Object.assign?Object.assign:function(t,e){for(var n=1;n<arguments.length;n++){var o=arguments[n];if(o)for(var _ in o)r.owns(o,_)&&(t[_]=o[_])}return t},r.polyfill("Object.assign",(function(t){return t||r.assign}),"es6","es3"),r.checkStringArgs=function(t,e,r){if(null==t)throw new TypeError("The 'this' value for String.prototype."+r+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+r+" must not be a regular expression");return t+""},r.polyfill("String.prototype.startsWith",(function(t){return t||function(t,e){var n=r.checkStringArgs(this,t,"startsWith");t+="";var o=n.length,_=t.length;e=Math.max(0,Math.min(0|e,n.length));for(var i=0;i<_&&e<o;)if(n[e++]!=t[i++])return!1;return i>=_}}),"es6","es3"),r.polyfill("Array.prototype.copyWithin",(function(t){function e(t){return(t=Number(t))===1/0||t===-1/0?t:0|t}return t||function(t,r,n){var o=this.length;if(t=e(t),r=e(r),n=void 0===n?o:e(n),t=0>t?Math.max(o+t,0):Math.min(t,o),r=0>r?Math.max(o+r,0):Math.min(r,o),n=0>n?Math.max(o+n,0):Math.min(n,o),t<r)for(;r<n;)r in this?this[t++]=this[r++]:(delete this[t++],r++);else for(t+=(n=Math.min(n,o+r-t))-r;n>r;)--n in this?this[--t]=this[n]:delete this[--t];return this}}),"es6","es3"),r.typedArrayCopyWithin=function(t){return t||Array.prototype.copyWithin},r.polyfill("Int8Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Uint8Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Uint8ClampedArray.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Int16Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Uint16Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Int32Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Uint32Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Float32Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5"),r.polyfill("Float64Array.prototype.copyWithin",r.typedArrayCopyWithin,"es6","es5");var n,o=(n=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0,typeof __filename<"u"&&(n=n||__filename),function(t){function e(t,e,r){var n=e+r;for(r=e;t[r]&&!(r>=n);)++r;if(16<r-e&&t.buffer&&it)return it.decode(t.subarray(e,r));for(n="";e<r;){var o=t[e++];if(128&o){var _=63&t[e++];if(192==(224&o))n+=String.fromCharCode((31&o)<<6|_);else{var i=63&t[e++];65536>(o=224==(240&o)?(15&o)<<12|_<<6|i:(7&o)<<18|_<<12|i<<6|63&t[e++])?n+=String.fromCharCode(o):(o-=65536,n+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else n+=String.fromCharCode(o)}return n}function r(t,r){return t?e(et,t,r):""}function o(){var t=$.buffer;C.HEAP8=tt=new Int8Array(t),C.HEAP16=new Int16Array(t),C.HEAP32=rt=new Int32Array(t),C.HEAPU8=et=new Uint8Array(t),C.HEAPU16=new Uint16Array(t),C.HEAPU32=nt=new Uint32Array(t),C.HEAPF32=new Float32Array(t),C.HEAPF64=new Float64Array(t)}function _(t){throw C.onAbort&&C.onAbort(t),Z(t="Aborted("+t+")"),_t=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),L(t),t}function i(t){try{if(t==ft&&X)return new Uint8Array(X);if(q)return q(t);throw"both async and sync fetching of the wasm failed"}catch(t){_(t)}}function p(t){for(;0<t.length;)t.shift()(C)}function a(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){nt[this.ptr+4>>2]=t},this.get_type=function(){return nt[this.ptr+4>>2]},this.set_destructor=function(t){nt[this.ptr+8>>2]=t},this.get_destructor=function(){return nt[this.ptr+8>>2]},this.set_refcount=function(t){rt[this.ptr>>2]=t},this.set_caught=function(t){tt[this.ptr+12>>0]=t?1:0},this.get_caught=function(){return 0!=tt[this.ptr+12>>0]},this.set_rethrown=function(t){tt[this.ptr+13>>0]=t?1:0},this.get_rethrown=function(){return 0!=tt[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){rt[this.ptr>>2]+=1},this.release_ref=function(){var t=rt[this.ptr>>2];return rt[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){nt[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return nt[this.ptr+16>>2]},this.get_exception_ptr=function(){if($r(this.get_type()))return nt[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}function c(){function t(){if(!Zr&&(Zr=!0,C.calledRun=!0,!_t)){if(ut=!0,p(at),F(C),C.onRuntimeInitialized&&C.onRuntimeInitialized(),C.postRun)for("function"==typeof C.postRun&&(C.postRun=[C.postRun]);C.postRun.length;)ct.unshift(C.postRun.shift());p(ct)}}if(!(0<st)){if(C.preRun)for("function"==typeof C.preRun&&(C.preRun=[C.preRun]);C.preRun.length;)pt.unshift(C.preRun.shift());p(pt),0<st||(C.setStatus?(C.setStatus("Running..."),setTimeout((function(){setTimeout((function(){C.setStatus("")}),1),t()}),1)):t())}}function u(){}function s(t){return(t||u).__cache__}function y(t,e){var r=s(e),n=r[t];return n||((n=Object.create((e||u).prototype)).ptr=t,r[t]=n)}function l(t){if("string"==typeof t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);127>=n?e++:2047>=n?e+=2:55296<=n&&57343>=n?(e+=4,++r):e+=3}if(r=0,0<(n=(e=Array(e+1)).length)){n=r+n-1;for(var o=0;o<t.length;++o){var _=t.charCodeAt(o);if(55296<=_&&57343>=_&&(_=65536+((1023&_)<<10)|1023&t.charCodeAt(++o)),127>=_){if(r>=n)break;e[r++]=_}else{if(2047>=_){if(r+1>=n)break;e[r++]=192|_>>6}else{if(65535>=_){if(r+2>=n)break;e[r++]=224|_>>12}else{if(r+3>=n)break;e[r++]=240|_>>18,e[r++]=128|_>>12&63}e[r++]=128|_>>6&63}e[r++]=128|63&_}}e[r]=0}return t=tn.alloc(e,tt),tn.copy(e,tt,t),t}return t}function f(t){if("object"==typeof t){var e=tn.alloc(t,tt);return tn.copy(t,tt,e),e}return t}function d(){throw"cannot construct a VoidPtr, no constructor in IDL"}function m(){this.ptr=ht(),s(m)[this.ptr]=this}function b(){this.ptr=Dt(),s(b)[this.ptr]=this}function h(){this.ptr=Gt(),s(h)[this.ptr]=this}function A(){this.ptr=vt(),s(A)[this.ptr]=this}function T(){this.ptr=Ct(),s(T)[this.ptr]=this}function D(){this.ptr=kt(),s(D)[this.ptr]=this}function I(){this.ptr=Ht(),s(I)[this.ptr]=this}function E(){this.ptr=Jt(),s(E)[this.ptr]=this}function G(){this.ptr=re(),s(G)[this.ptr]=this}function O(){throw"cannot construct a Status, no constructor in IDL"}function v(){this.ptr=ae(),s(v)[this.ptr]=this}function j(){this.ptr=ye(),s(j)[this.ptr]=this}function P(){this.ptr=me(),s(P)[this.ptr]=this}function R(){this.ptr=Te(),s(R)[this.ptr]=this}function S(){this.ptr=Ge(),s(S)[this.ptr]=this}function N(){this.ptr=Pe(),s(N)[this.ptr]=this}function M(){this.ptr=Me(),s(M)[this.ptr]=this}function U(){this.ptr=Le(),s(U)[this.ptr]=this}function g(){this.ptr=xe(),s(g)[this.ptr]=this}var F,L,C=typeof(t=void 0===t?{}:t)<"u"?t:{};C.ready=new Promise((function(t,e){F=t,L=e}));var w=!1,z=!1;C.onRuntimeInitialized=function(){w=!0,z&&"function"==typeof C.onModuleLoaded&&C.onModuleLoaded(C)},C.onModuleParsed=function(){z=!0,w&&"function"==typeof C.onModuleLoaded&&C.onModuleLoaded(C)},C.isVersionSupported=function(t){return"string"==typeof t&&!(2>(t=t.split(".")).length||3<t.length)&&(1==t[0]&&0<=t[1]&&5>=t[1]||!(0!=t[0]||10<t[1]))};var V=Object.assign({},C),B="object"==typeof window,W="function"==typeof importScripts,k="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,Q="";if(k){var x=fn("fs"),Y=fn("path");Q=W?Y.dirname(Q)+"/":__dirname+"/";var H=function(t,e){return t=t.startsWith("file://")?new URL(t):Y.normalize(t),x.readFileSync(t,e?void 0:"utf8")},q=function(t){return(t=H(t,!0)).buffer||(t=new Uint8Array(t)),t},K=function(t,e,r){t=t.startsWith("file://")?new URL(t):Y.normalize(t),x.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))};1<process.argv.length&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),C.inspect=function(){return"[Emscripten Module object]"}}else(B||W)&&(W?Q=self.location.href:typeof document<"u"&&document.currentScript&&(Q=document.currentScript.src),n&&(Q=n),Q=0!==Q.indexOf("blob:")?Q.substr(0,Q.replace(/[?#].*/,"").lastIndexOf("/")+1):"",H=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},W&&(q=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),K=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var X,J=C.print||console.log.bind(console),Z=C.printErr||console.warn.bind(console);Object.assign(C,V),V=null,C.wasmBinary&&(X=C.wasmBinary),"object"!=typeof WebAssembly&&_("no native wasm support detected");var $,tt,et,rt,nt,ot,_t=!1,it=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,pt=[],at=[],ct=[],ut=!1,st=0,yt=null,lt=null,ft="draco_decoder.wasm";ft.startsWith("data:application/octet-stream;base64,")||(ot=ft,ft=C.locateFile?C.locateFile(ot,Q):Q+ot);var dt=[null,[],[]],mt={b:function(t,e,r){throw new a(t).init(e,r),t},a:function(){_("")},g:function(t,e,r){et.copyWithin(t,e,e+r)},e:function(t){var e=et.length;if(2147483648<(t>>>=0))return!1;for(var r=1;4>=r;r*=2){var n=e*(1+.2/r);n=Math.min(n,t+100663296);var _=Math;n=Math.max(t,n),_=_.min.call(_,2147483648,n+(65536-n%65536)%65536);t:{n=$.buffer;try{$.grow(_-n.byteLength+65535>>>16),o();var i=1;break t}catch{}i=void 0}if(i)return!0}return!1},f:function(t){return 52},d:function(t,e,r,n,o){return 70},c:function(t,r,n,o){for(var _=0,i=0;i<n;i++){var p=nt[r>>2],a=nt[r+4>>2];r+=8;for(var c=0;c<a;c++){var u=et[p+c],s=dt[t];0===u||10===u?((1===t?J:Z)(e(s,0)),s.length=0):s.push(u)}_+=a}return nt[o>>2]=_,0}};!function(){function t(t,e){C.asm=t.exports,$=C.asm.h,o(),at.unshift(C.asm.i),st--,C.monitorRunDependencies&&C.monitorRunDependencies(st),0==st&&(null!==yt&&(clearInterval(yt),yt=null),lt&&(t=lt,lt=null,t()))}function e(e){t(e.instance)}function r(t){return function(){if(!X&&(B||W)){if("function"==typeof fetch&&!ft.startsWith("file://"))return fetch(ft,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+ft+"'";return t.arrayBuffer()})).catch((function(){return i(ft)}));if(K)return new Promise((function(t,e){K(ft,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return i(ft)}))}().then((function(t){return WebAssembly.instantiate(t,n)})).then((function(t){return t})).then(t,(function(t){Z("failed to asynchronously prepare wasm: "+t),_(t)}))}var n={a:mt};if(st++,C.monitorRunDependencies&&C.monitorRunDependencies(st),C.instantiateWasm)try{return C.instantiateWasm(n,t)}catch(t){Z("Module.instantiateWasm callback failed with error: "+t),L(t)}(X||"function"!=typeof WebAssembly.instantiateStreaming||ft.startsWith("data:application/octet-stream;base64,")||ft.startsWith("file://")||k||"function"!=typeof fetch?r(e):fetch(ft,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,n).then(e,(function(t){return Z("wasm streaming compile failed: "+t),Z("falling back to ArrayBuffer instantiation"),r(e)}))}))).catch(L)}();var bt=C._emscripten_bind_VoidPtr___destroy___0=function(){return(bt=C._emscripten_bind_VoidPtr___destroy___0=C.asm.k).apply(null,arguments)},ht=C._emscripten_bind_DecoderBuffer_DecoderBuffer_0=function(){return(ht=C._emscripten_bind_DecoderBuffer_DecoderBuffer_0=C.asm.l).apply(null,arguments)},At=C._emscripten_bind_DecoderBuffer_Init_2=function(){return(At=C._emscripten_bind_DecoderBuffer_Init_2=C.asm.m).apply(null,arguments)},Tt=C._emscripten_bind_DecoderBuffer___destroy___0=function(){return(Tt=C._emscripten_bind_DecoderBuffer___destroy___0=C.asm.n).apply(null,arguments)},Dt=C._emscripten_bind_AttributeTransformData_AttributeTransformData_0=function(){return(Dt=C._emscripten_bind_AttributeTransformData_AttributeTransformData_0=C.asm.o).apply(null,arguments)},It=C._emscripten_bind_AttributeTransformData_transform_type_0=function(){return(It=C._emscripten_bind_AttributeTransformData_transform_type_0=C.asm.p).apply(null,arguments)},Et=C._emscripten_bind_AttributeTransformData___destroy___0=function(){return(Et=C._emscripten_bind_AttributeTransformData___destroy___0=C.asm.q).apply(null,arguments)},Gt=C._emscripten_bind_GeometryAttribute_GeometryAttribute_0=function(){return(Gt=C._emscripten_bind_GeometryAttribute_GeometryAttribute_0=C.asm.r).apply(null,arguments)},Ot=C._emscripten_bind_GeometryAttribute___destroy___0=function(){return(Ot=C._emscripten_bind_GeometryAttribute___destroy___0=C.asm.s).apply(null,arguments)},vt=C._emscripten_bind_PointAttribute_PointAttribute_0=function(){return(vt=C._emscripten_bind_PointAttribute_PointAttribute_0=C.asm.t).apply(null,arguments)},jt=C._emscripten_bind_PointAttribute_size_0=function(){return(jt=C._emscripten_bind_PointAttribute_size_0=C.asm.u).apply(null,arguments)},Pt=C._emscripten_bind_PointAttribute_GetAttributeTransformData_0=function(){return(Pt=C._emscripten_bind_PointAttribute_GetAttributeTransformData_0=C.asm.v).apply(null,arguments)},Rt=C._emscripten_bind_PointAttribute_attribute_type_0=function(){return(Rt=C._emscripten_bind_PointAttribute_attribute_type_0=C.asm.w).apply(null,arguments)},St=C._emscripten_bind_PointAttribute_data_type_0=function(){return(St=C._emscripten_bind_PointAttribute_data_type_0=C.asm.x).apply(null,arguments)},Nt=C._emscripten_bind_PointAttribute_num_components_0=function(){return(Nt=C._emscripten_bind_PointAttribute_num_components_0=C.asm.y).apply(null,arguments)},Mt=C._emscripten_bind_PointAttribute_normalized_0=function(){return(Mt=C._emscripten_bind_PointAttribute_normalized_0=C.asm.z).apply(null,arguments)},Ut=C._emscripten_bind_PointAttribute_byte_stride_0=function(){return(Ut=C._emscripten_bind_PointAttribute_byte_stride_0=C.asm.A).apply(null,arguments)},gt=C._emscripten_bind_PointAttribute_byte_offset_0=function(){return(gt=C._emscripten_bind_PointAttribute_byte_offset_0=C.asm.B).apply(null,arguments)},Ft=C._emscripten_bind_PointAttribute_unique_id_0=function(){return(Ft=C._emscripten_bind_PointAttribute_unique_id_0=C.asm.C).apply(null,arguments)},Lt=C._emscripten_bind_PointAttribute___destroy___0=function(){return(Lt=C._emscripten_bind_PointAttribute___destroy___0=C.asm.D).apply(null,arguments)},Ct=C._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=function(){return(Ct=C._emscripten_bind_AttributeQuantizationTransform_AttributeQuantizationTransform_0=C.asm.E).apply(null,arguments)},wt=C._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=function(){return(wt=C._emscripten_bind_AttributeQuantizationTransform_InitFromAttribute_1=C.asm.F).apply(null,arguments)},zt=C._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=function(){return(zt=C._emscripten_bind_AttributeQuantizationTransform_quantization_bits_0=C.asm.G).apply(null,arguments)},Vt=C._emscripten_bind_AttributeQuantizationTransform_min_value_1=function(){return(Vt=C._emscripten_bind_AttributeQuantizationTransform_min_value_1=C.asm.H).apply(null,arguments)},Bt=C._emscripten_bind_AttributeQuantizationTransform_range_0=function(){return(Bt=C._emscripten_bind_AttributeQuantizationTransform_range_0=C.asm.I).apply(null,arguments)},Wt=C._emscripten_bind_AttributeQuantizationTransform___destroy___0=function(){return(Wt=C._emscripten_bind_AttributeQuantizationTransform___destroy___0=C.asm.J).apply(null,arguments)},kt=C._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=function(){return(kt=C._emscripten_bind_AttributeOctahedronTransform_AttributeOctahedronTransform_0=C.asm.K).apply(null,arguments)},Qt=C._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=function(){return(Qt=C._emscripten_bind_AttributeOctahedronTransform_InitFromAttribute_1=C.asm.L).apply(null,arguments)},xt=C._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=function(){return(xt=C._emscripten_bind_AttributeOctahedronTransform_quantization_bits_0=C.asm.M).apply(null,arguments)},Yt=C._emscripten_bind_AttributeOctahedronTransform___destroy___0=function(){return(Yt=C._emscripten_bind_AttributeOctahedronTransform___destroy___0=C.asm.N).apply(null,arguments)},Ht=C._emscripten_bind_PointCloud_PointCloud_0=function(){return(Ht=C._emscripten_bind_PointCloud_PointCloud_0=C.asm.O).apply(null,arguments)},qt=C._emscripten_bind_PointCloud_num_attributes_0=function(){return(qt=C._emscripten_bind_PointCloud_num_attributes_0=C.asm.P).apply(null,arguments)},Kt=C._emscripten_bind_PointCloud_num_points_0=function(){return(Kt=C._emscripten_bind_PointCloud_num_points_0=C.asm.Q).apply(null,arguments)},Xt=C._emscripten_bind_PointCloud___destroy___0=function(){return(Xt=C._emscripten_bind_PointCloud___destroy___0=C.asm.R).apply(null,arguments)},Jt=C._emscripten_bind_Mesh_Mesh_0=function(){return(Jt=C._emscripten_bind_Mesh_Mesh_0=C.asm.S).apply(null,arguments)},Zt=C._emscripten_bind_Mesh_num_faces_0=function(){return(Zt=C._emscripten_bind_Mesh_num_faces_0=C.asm.T).apply(null,arguments)},$t=C._emscripten_bind_Mesh_num_attributes_0=function(){return($t=C._emscripten_bind_Mesh_num_attributes_0=C.asm.U).apply(null,arguments)},te=C._emscripten_bind_Mesh_num_points_0=function(){return(te=C._emscripten_bind_Mesh_num_points_0=C.asm.V).apply(null,arguments)},ee=C._emscripten_bind_Mesh___destroy___0=function(){return(ee=C._emscripten_bind_Mesh___destroy___0=C.asm.W).apply(null,arguments)},re=C._emscripten_bind_Metadata_Metadata_0=function(){return(re=C._emscripten_bind_Metadata_Metadata_0=C.asm.X).apply(null,arguments)},ne=C._emscripten_bind_Metadata___destroy___0=function(){return(ne=C._emscripten_bind_Metadata___destroy___0=C.asm.Y).apply(null,arguments)},oe=C._emscripten_bind_Status_code_0=function(){return(oe=C._emscripten_bind_Status_code_0=C.asm.Z).apply(null,arguments)},_e=C._emscripten_bind_Status_ok_0=function(){return(_e=C._emscripten_bind_Status_ok_0=C.asm._).apply(null,arguments)},ie=C._emscripten_bind_Status_error_msg_0=function(){return(ie=C._emscripten_bind_Status_error_msg_0=C.asm.$).apply(null,arguments)},pe=C._emscripten_bind_Status___destroy___0=function(){return(pe=C._emscripten_bind_Status___destroy___0=C.asm.aa).apply(null,arguments)},ae=C._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=function(){return(ae=C._emscripten_bind_DracoFloat32Array_DracoFloat32Array_0=C.asm.ba).apply(null,arguments)},ce=C._emscripten_bind_DracoFloat32Array_GetValue_1=function(){return(ce=C._emscripten_bind_DracoFloat32Array_GetValue_1=C.asm.ca).apply(null,arguments)},ue=C._emscripten_bind_DracoFloat32Array_size_0=function(){return(ue=C._emscripten_bind_DracoFloat32Array_size_0=C.asm.da).apply(null,arguments)},se=C._emscripten_bind_DracoFloat32Array___destroy___0=function(){return(se=C._emscripten_bind_DracoFloat32Array___destroy___0=C.asm.ea).apply(null,arguments)},ye=C._emscripten_bind_DracoInt8Array_DracoInt8Array_0=function(){return(ye=C._emscripten_bind_DracoInt8Array_DracoInt8Array_0=C.asm.fa).apply(null,arguments)},le=C._emscripten_bind_DracoInt8Array_GetValue_1=function(){return(le=C._emscripten_bind_DracoInt8Array_GetValue_1=C.asm.ga).apply(null,arguments)},fe=C._emscripten_bind_DracoInt8Array_size_0=function(){return(fe=C._emscripten_bind_DracoInt8Array_size_0=C.asm.ha).apply(null,arguments)},de=C._emscripten_bind_DracoInt8Array___destroy___0=function(){return(de=C._emscripten_bind_DracoInt8Array___destroy___0=C.asm.ia).apply(null,arguments)},me=C._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=function(){return(me=C._emscripten_bind_DracoUInt8Array_DracoUInt8Array_0=C.asm.ja).apply(null,arguments)},be=C._emscripten_bind_DracoUInt8Array_GetValue_1=function(){return(be=C._emscripten_bind_DracoUInt8Array_GetValue_1=C.asm.ka).apply(null,arguments)},he=C._emscripten_bind_DracoUInt8Array_size_0=function(){return(he=C._emscripten_bind_DracoUInt8Array_size_0=C.asm.la).apply(null,arguments)},Ae=C._emscripten_bind_DracoUInt8Array___destroy___0=function(){return(Ae=C._emscripten_bind_DracoUInt8Array___destroy___0=C.asm.ma).apply(null,arguments)},Te=C._emscripten_bind_DracoInt16Array_DracoInt16Array_0=function(){return(Te=C._emscripten_bind_DracoInt16Array_DracoInt16Array_0=C.asm.na).apply(null,arguments)},De=C._emscripten_bind_DracoInt16Array_GetValue_1=function(){return(De=C._emscripten_bind_DracoInt16Array_GetValue_1=C.asm.oa).apply(null,arguments)},Ie=C._emscripten_bind_DracoInt16Array_size_0=function(){return(Ie=C._emscripten_bind_DracoInt16Array_size_0=C.asm.pa).apply(null,arguments)},Ee=C._emscripten_bind_DracoInt16Array___destroy___0=function(){return(Ee=C._emscripten_bind_DracoInt16Array___destroy___0=C.asm.qa).apply(null,arguments)},Ge=C._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=function(){return(Ge=C._emscripten_bind_DracoUInt16Array_DracoUInt16Array_0=C.asm.ra).apply(null,arguments)},Oe=C._emscripten_bind_DracoUInt16Array_GetValue_1=function(){return(Oe=C._emscripten_bind_DracoUInt16Array_GetValue_1=C.asm.sa).apply(null,arguments)},ve=C._emscripten_bind_DracoUInt16Array_size_0=function(){return(ve=C._emscripten_bind_DracoUInt16Array_size_0=C.asm.ta).apply(null,arguments)},je=C._emscripten_bind_DracoUInt16Array___destroy___0=function(){return(je=C._emscripten_bind_DracoUInt16Array___destroy___0=C.asm.ua).apply(null,arguments)},Pe=C._emscripten_bind_DracoInt32Array_DracoInt32Array_0=function(){return(Pe=C._emscripten_bind_DracoInt32Array_DracoInt32Array_0=C.asm.va).apply(null,arguments)},Re=C._emscripten_bind_DracoInt32Array_GetValue_1=function(){return(Re=C._emscripten_bind_DracoInt32Array_GetValue_1=C.asm.wa).apply(null,arguments)},Se=C._emscripten_bind_DracoInt32Array_size_0=function(){return(Se=C._emscripten_bind_DracoInt32Array_size_0=C.asm.xa).apply(null,arguments)},Ne=C._emscripten_bind_DracoInt32Array___destroy___0=function(){return(Ne=C._emscripten_bind_DracoInt32Array___destroy___0=C.asm.ya).apply(null,arguments)},Me=C._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=function(){return(Me=C._emscripten_bind_DracoUInt32Array_DracoUInt32Array_0=C.asm.za).apply(null,arguments)},Ue=C._emscripten_bind_DracoUInt32Array_GetValue_1=function(){return(Ue=C._emscripten_bind_DracoUInt32Array_GetValue_1=C.asm.Aa).apply(null,arguments)},ge=C._emscripten_bind_DracoUInt32Array_size_0=function(){return(ge=C._emscripten_bind_DracoUInt32Array_size_0=C.asm.Ba).apply(null,arguments)},Fe=C._emscripten_bind_DracoUInt32Array___destroy___0=function(){return(Fe=C._emscripten_bind_DracoUInt32Array___destroy___0=C.asm.Ca).apply(null,arguments)},Le=C._emscripten_bind_MetadataQuerier_MetadataQuerier_0=function(){return(Le=C._emscripten_bind_MetadataQuerier_MetadataQuerier_0=C.asm.Da).apply(null,arguments)},Ce=C._emscripten_bind_MetadataQuerier_HasEntry_2=function(){return(Ce=C._emscripten_bind_MetadataQuerier_HasEntry_2=C.asm.Ea).apply(null,arguments)},we=C._emscripten_bind_MetadataQuerier_GetIntEntry_2=function(){return(we=C._emscripten_bind_MetadataQuerier_GetIntEntry_2=C.asm.Fa).apply(null,arguments)},ze=C._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=function(){return(ze=C._emscripten_bind_MetadataQuerier_GetIntEntryArray_3=C.asm.Ga).apply(null,arguments)},Ve=C._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=function(){return(Ve=C._emscripten_bind_MetadataQuerier_GetDoubleEntry_2=C.asm.Ha).apply(null,arguments)},Be=C._emscripten_bind_MetadataQuerier_GetStringEntry_2=function(){return(Be=C._emscripten_bind_MetadataQuerier_GetStringEntry_2=C.asm.Ia).apply(null,arguments)},We=C._emscripten_bind_MetadataQuerier_NumEntries_1=function(){return(We=C._emscripten_bind_MetadataQuerier_NumEntries_1=C.asm.Ja).apply(null,arguments)},ke=C._emscripten_bind_MetadataQuerier_GetEntryName_2=function(){return(ke=C._emscripten_bind_MetadataQuerier_GetEntryName_2=C.asm.Ka).apply(null,arguments)},Qe=C._emscripten_bind_MetadataQuerier___destroy___0=function(){return(Qe=C._emscripten_bind_MetadataQuerier___destroy___0=C.asm.La).apply(null,arguments)},xe=C._emscripten_bind_Decoder_Decoder_0=function(){return(xe=C._emscripten_bind_Decoder_Decoder_0=C.asm.Ma).apply(null,arguments)},Ye=C._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=function(){return(Ye=C._emscripten_bind_Decoder_DecodeArrayToPointCloud_3=C.asm.Na).apply(null,arguments)},He=C._emscripten_bind_Decoder_DecodeArrayToMesh_3=function(){return(He=C._emscripten_bind_Decoder_DecodeArrayToMesh_3=C.asm.Oa).apply(null,arguments)},qe=C._emscripten_bind_Decoder_GetAttributeId_2=function(){return(qe=C._emscripten_bind_Decoder_GetAttributeId_2=C.asm.Pa).apply(null,arguments)},Ke=C._emscripten_bind_Decoder_GetAttributeIdByName_2=function(){return(Ke=C._emscripten_bind_Decoder_GetAttributeIdByName_2=C.asm.Qa).apply(null,arguments)},Xe=C._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=function(){return(Xe=C._emscripten_bind_Decoder_GetAttributeIdByMetadataEntry_3=C.asm.Ra).apply(null,arguments)},Je=C._emscripten_bind_Decoder_GetAttribute_2=function(){return(Je=C._emscripten_bind_Decoder_GetAttribute_2=C.asm.Sa).apply(null,arguments)},Ze=C._emscripten_bind_Decoder_GetAttributeByUniqueId_2=function(){return(Ze=C._emscripten_bind_Decoder_GetAttributeByUniqueId_2=C.asm.Ta).apply(null,arguments)},$e=C._emscripten_bind_Decoder_GetMetadata_1=function(){return($e=C._emscripten_bind_Decoder_GetMetadata_1=C.asm.Ua).apply(null,arguments)},tr=C._emscripten_bind_Decoder_GetAttributeMetadata_2=function(){return(tr=C._emscripten_bind_Decoder_GetAttributeMetadata_2=C.asm.Va).apply(null,arguments)},er=C._emscripten_bind_Decoder_GetFaceFromMesh_3=function(){return(er=C._emscripten_bind_Decoder_GetFaceFromMesh_3=C.asm.Wa).apply(null,arguments)},rr=C._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=function(){return(rr=C._emscripten_bind_Decoder_GetTriangleStripsFromMesh_2=C.asm.Xa).apply(null,arguments)},nr=C._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=function(){return(nr=C._emscripten_bind_Decoder_GetTrianglesUInt16Array_3=C.asm.Ya).apply(null,arguments)},or=C._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=function(){return(or=C._emscripten_bind_Decoder_GetTrianglesUInt32Array_3=C.asm.Za).apply(null,arguments)},_r=C._emscripten_bind_Decoder_GetAttributeFloat_3=function(){return(_r=C._emscripten_bind_Decoder_GetAttributeFloat_3=C.asm._a).apply(null,arguments)},ir=C._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=function(){return(ir=C._emscripten_bind_Decoder_GetAttributeFloatForAllPoints_3=C.asm.$a).apply(null,arguments)},pr=C._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=function(){return(pr=C._emscripten_bind_Decoder_GetAttributeIntForAllPoints_3=C.asm.ab).apply(null,arguments)},ar=C._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=function(){return(ar=C._emscripten_bind_Decoder_GetAttributeInt8ForAllPoints_3=C.asm.bb).apply(null,arguments)},cr=C._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=function(){return(cr=C._emscripten_bind_Decoder_GetAttributeUInt8ForAllPoints_3=C.asm.cb).apply(null,arguments)},ur=C._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=function(){return(ur=C._emscripten_bind_Decoder_GetAttributeInt16ForAllPoints_3=C.asm.db).apply(null,arguments)},sr=C._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=function(){return(sr=C._emscripten_bind_Decoder_GetAttributeUInt16ForAllPoints_3=C.asm.eb).apply(null,arguments)},yr=C._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=function(){return(yr=C._emscripten_bind_Decoder_GetAttributeInt32ForAllPoints_3=C.asm.fb).apply(null,arguments)},lr=C._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=function(){return(lr=C._emscripten_bind_Decoder_GetAttributeUInt32ForAllPoints_3=C.asm.gb).apply(null,arguments)},fr=C._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=function(){return(fr=C._emscripten_bind_Decoder_GetAttributeDataArrayForAllPoints_5=C.asm.hb).apply(null,arguments)},dr=C._emscripten_bind_Decoder_SkipAttributeTransform_1=function(){return(dr=C._emscripten_bind_Decoder_SkipAttributeTransform_1=C.asm.ib).apply(null,arguments)},mr=C._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=function(){return(mr=C._emscripten_bind_Decoder_GetEncodedGeometryType_Deprecated_1=C.asm.jb).apply(null,arguments)},br=C._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=function(){return(br=C._emscripten_bind_Decoder_DecodeBufferToPointCloud_2=C.asm.kb).apply(null,arguments)},hr=C._emscripten_bind_Decoder_DecodeBufferToMesh_2=function(){return(hr=C._emscripten_bind_Decoder_DecodeBufferToMesh_2=C.asm.lb).apply(null,arguments)},Ar=C._emscripten_bind_Decoder___destroy___0=function(){return(Ar=C._emscripten_bind_Decoder___destroy___0=C.asm.mb).apply(null,arguments)},Tr=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=function(){return(Tr=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_INVALID_TRANSFORM=C.asm.nb).apply(null,arguments)},Dr=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=function(){return(Dr=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_NO_TRANSFORM=C.asm.ob).apply(null,arguments)},Ir=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=function(){return(Ir=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_QUANTIZATION_TRANSFORM=C.asm.pb).apply(null,arguments)},Er=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=function(){return(Er=C._emscripten_enum_draco_AttributeTransformType_ATTRIBUTE_OCTAHEDRON_TRANSFORM=C.asm.qb).apply(null,arguments)},Gr=C._emscripten_enum_draco_GeometryAttribute_Type_INVALID=function(){return(Gr=C._emscripten_enum_draco_GeometryAttribute_Type_INVALID=C.asm.rb).apply(null,arguments)},Or=C._emscripten_enum_draco_GeometryAttribute_Type_POSITION=function(){return(Or=C._emscripten_enum_draco_GeometryAttribute_Type_POSITION=C.asm.sb).apply(null,arguments)},vr=C._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=function(){return(vr=C._emscripten_enum_draco_GeometryAttribute_Type_NORMAL=C.asm.tb).apply(null,arguments)},jr=C._emscripten_enum_draco_GeometryAttribute_Type_COLOR=function(){return(jr=C._emscripten_enum_draco_GeometryAttribute_Type_COLOR=C.asm.ub).apply(null,arguments)},Pr=C._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=function(){return(Pr=C._emscripten_enum_draco_GeometryAttribute_Type_TEX_COORD=C.asm.vb).apply(null,arguments)},Rr=C._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=function(){return(Rr=C._emscripten_enum_draco_GeometryAttribute_Type_GENERIC=C.asm.wb).apply(null,arguments)},Sr=C._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=function(){return(Sr=C._emscripten_enum_draco_EncodedGeometryType_INVALID_GEOMETRY_TYPE=C.asm.xb).apply(null,arguments)},Nr=C._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=function(){return(Nr=C._emscripten_enum_draco_EncodedGeometryType_POINT_CLOUD=C.asm.yb).apply(null,arguments)},Mr=C._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=function(){return(Mr=C._emscripten_enum_draco_EncodedGeometryType_TRIANGULAR_MESH=C.asm.zb).apply(null,arguments)},Ur=C._emscripten_enum_draco_DataType_DT_INVALID=function(){return(Ur=C._emscripten_enum_draco_DataType_DT_INVALID=C.asm.Ab).apply(null,arguments)},gr=C._emscripten_enum_draco_DataType_DT_INT8=function(){return(gr=C._emscripten_enum_draco_DataType_DT_INT8=C.asm.Bb).apply(null,arguments)},Fr=C._emscripten_enum_draco_DataType_DT_UINT8=function(){return(Fr=C._emscripten_enum_draco_DataType_DT_UINT8=C.asm.Cb).apply(null,arguments)},Lr=C._emscripten_enum_draco_DataType_DT_INT16=function(){return(Lr=C._emscripten_enum_draco_DataType_DT_INT16=C.asm.Db).apply(null,arguments)},Cr=C._emscripten_enum_draco_DataType_DT_UINT16=function(){return(Cr=C._emscripten_enum_draco_DataType_DT_UINT16=C.asm.Eb).apply(null,arguments)},wr=C._emscripten_enum_draco_DataType_DT_INT32=function(){return(wr=C._emscripten_enum_draco_DataType_DT_INT32=C.asm.Fb).apply(null,arguments)},zr=C._emscripten_enum_draco_DataType_DT_UINT32=function(){return(zr=C._emscripten_enum_draco_DataType_DT_UINT32=C.asm.Gb).apply(null,arguments)},Vr=C._emscripten_enum_draco_DataType_DT_INT64=function(){return(Vr=C._emscripten_enum_draco_DataType_DT_INT64=C.asm.Hb).apply(null,arguments)},Br=C._emscripten_enum_draco_DataType_DT_UINT64=function(){return(Br=C._emscripten_enum_draco_DataType_DT_UINT64=C.asm.Ib).apply(null,arguments)},Wr=C._emscripten_enum_draco_DataType_DT_FLOAT32=function(){return(Wr=C._emscripten_enum_draco_DataType_DT_FLOAT32=C.asm.Jb).apply(null,arguments)},kr=C._emscripten_enum_draco_DataType_DT_FLOAT64=function(){return(kr=C._emscripten_enum_draco_DataType_DT_FLOAT64=C.asm.Kb).apply(null,arguments)},Qr=C._emscripten_enum_draco_DataType_DT_BOOL=function(){return(Qr=C._emscripten_enum_draco_DataType_DT_BOOL=C.asm.Lb).apply(null,arguments)},xr=C._emscripten_enum_draco_DataType_DT_TYPES_COUNT=function(){return(xr=C._emscripten_enum_draco_DataType_DT_TYPES_COUNT=C.asm.Mb).apply(null,arguments)},Yr=C._emscripten_enum_draco_StatusCode_OK=function(){return(Yr=C._emscripten_enum_draco_StatusCode_OK=C.asm.Nb).apply(null,arguments)},Hr=C._emscripten_enum_draco_StatusCode_DRACO_ERROR=function(){return(Hr=C._emscripten_enum_draco_StatusCode_DRACO_ERROR=C.asm.Ob).apply(null,arguments)},qr=C._emscripten_enum_draco_StatusCode_IO_ERROR=function(){return(qr=C._emscripten_enum_draco_StatusCode_IO_ERROR=C.asm.Pb).apply(null,arguments)},Kr=C._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=function(){return(Kr=C._emscripten_enum_draco_StatusCode_INVALID_PARAMETER=C.asm.Qb).apply(null,arguments)},Xr=C._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=function(){return(Xr=C._emscripten_enum_draco_StatusCode_UNSUPPORTED_VERSION=C.asm.Rb).apply(null,arguments)},Jr=C._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=function(){return(Jr=C._emscripten_enum_draco_StatusCode_UNKNOWN_VERSION=C.asm.Sb).apply(null,arguments)};C._malloc=function(){return(C._malloc=C.asm.Tb).apply(null,arguments)},C._free=function(){return(C._free=C.asm.Ub).apply(null,arguments)};var Zr,$r=function(){return($r=C.asm.Vb).apply(null,arguments)};if(C.___start_em_js=15856,C.___stop_em_js=15954,lt=function t(){Zr||c(),Zr||(lt=t)},C.preInit)for("function"==typeof C.preInit&&(C.preInit=[C.preInit]);0<C.preInit.length;)C.preInit.pop()();c(),u.prototype=Object.create(u.prototype),u.prototype.constructor=u,u.prototype.__class__=u,u.__cache__={},C.WrapperObject=u,C.getCache=s,C.wrapPointer=y,C.castObject=function(t,e){return y(t.ptr,e)},C.NULL=y(0),C.destroy=function(t){if(!t.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";t.__destroy__(),delete s(t.__class__)[t.ptr]},C.compare=function(t,e){return t.ptr===e.ptr},C.getPointer=function(t){return t.ptr},C.getClass=function(t){return t.__class__};var tn={buffer:0,size:0,pos:0,temps:[],needed:0,prepare:function(){if(tn.needed){for(var t=0;t<tn.temps.length;t++)C._free(tn.temps[t]);tn.temps.length=0,C._free(tn.buffer),tn.buffer=0,tn.size+=tn.needed,tn.needed=0}tn.buffer||(tn.size+=128,tn.buffer=C._malloc(tn.size),tn.buffer||_(void 0)),tn.pos=0},alloc:function(t,e){return tn.buffer||_(void 0),t=7+(t=t.length*e.BYTES_PER_ELEMENT)&-8,tn.pos+t>=tn.size?(0<t||_(void 0),tn.needed+=t,e=C._malloc(t),tn.temps.push(e)):(e=tn.buffer+tn.pos,tn.pos+=t),e},copy:function(t,e,r){switch(r>>>=0,e.BYTES_PER_ELEMENT){case 2:r>>>=1;break;case 4:r>>>=2;break;case 8:r>>>=3}for(var n=0;n<t.length;n++)e[r+n]=t[n]}};return d.prototype=Object.create(u.prototype),d.prototype.constructor=d,d.prototype.__class__=d,d.__cache__={},C.VoidPtr=d,d.prototype.__destroy__=d.prototype.__destroy__=function(){bt(this.ptr)},m.prototype=Object.create(u.prototype),m.prototype.constructor=m,m.prototype.__class__=m,m.__cache__={},C.DecoderBuffer=m,m.prototype.Init=m.prototype.Init=function(t,e){var r=this.ptr;tn.prepare(),"object"==typeof t&&(t=f(t)),e&&"object"==typeof e&&(e=e.ptr),At(r,t,e)},m.prototype.__destroy__=m.prototype.__destroy__=function(){Tt(this.ptr)},b.prototype=Object.create(u.prototype),b.prototype.constructor=b,b.prototype.__class__=b,b.__cache__={},C.AttributeTransformData=b,b.prototype.transform_type=b.prototype.transform_type=function(){return It(this.ptr)},b.prototype.__destroy__=b.prototype.__destroy__=function(){Et(this.ptr)},h.prototype=Object.create(u.prototype),h.prototype.constructor=h,h.prototype.__class__=h,h.__cache__={},C.GeometryAttribute=h,h.prototype.__destroy__=h.prototype.__destroy__=function(){Ot(this.ptr)},A.prototype=Object.create(u.prototype),A.prototype.constructor=A,A.prototype.__class__=A,A.__cache__={},C.PointAttribute=A,A.prototype.size=A.prototype.size=function(){return jt(this.ptr)},A.prototype.GetAttributeTransformData=A.prototype.GetAttributeTransformData=function(){return y(Pt(this.ptr),b)},A.prototype.attribute_type=A.prototype.attribute_type=function(){return Rt(this.ptr)},A.prototype.data_type=A.prototype.data_type=function(){return St(this.ptr)},A.prototype.num_components=A.prototype.num_components=function(){return Nt(this.ptr)},A.prototype.normalized=A.prototype.normalized=function(){return!!Mt(this.ptr)},A.prototype.byte_stride=A.prototype.byte_stride=function(){return Ut(this.ptr)},A.prototype.byte_offset=A.prototype.byte_offset=function(){return gt(this.ptr)},A.prototype.unique_id=A.prototype.unique_id=function(){return Ft(this.ptr)},A.prototype.__destroy__=A.prototype.__destroy__=function(){Lt(this.ptr)},T.prototype=Object.create(u.prototype),T.prototype.constructor=T,T.prototype.__class__=T,T.__cache__={},C.AttributeQuantizationTransform=T,T.prototype.InitFromAttribute=T.prototype.InitFromAttribute=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!wt(e,t)},T.prototype.quantization_bits=T.prototype.quantization_bits=function(){return zt(this.ptr)},T.prototype.min_value=T.prototype.min_value=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Vt(e,t)},T.prototype.range=T.prototype.range=function(){return Bt(this.ptr)},T.prototype.__destroy__=T.prototype.__destroy__=function(){Wt(this.ptr)},D.prototype=Object.create(u.prototype),D.prototype.constructor=D,D.prototype.__class__=D,D.__cache__={},C.AttributeOctahedronTransform=D,D.prototype.InitFromAttribute=D.prototype.InitFromAttribute=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),!!Qt(e,t)},D.prototype.quantization_bits=D.prototype.quantization_bits=function(){return xt(this.ptr)},D.prototype.__destroy__=D.prototype.__destroy__=function(){Yt(this.ptr)},I.prototype=Object.create(u.prototype),I.prototype.constructor=I,I.prototype.__class__=I,I.__cache__={},C.PointCloud=I,I.prototype.num_attributes=I.prototype.num_attributes=function(){return qt(this.ptr)},I.prototype.num_points=I.prototype.num_points=function(){return Kt(this.ptr)},I.prototype.__destroy__=I.prototype.__destroy__=function(){Xt(this.ptr)},E.prototype=Object.create(u.prototype),E.prototype.constructor=E,E.prototype.__class__=E,E.__cache__={},C.Mesh=E,E.prototype.num_faces=E.prototype.num_faces=function(){return Zt(this.ptr)},E.prototype.num_attributes=E.prototype.num_attributes=function(){return $t(this.ptr)},E.prototype.num_points=E.prototype.num_points=function(){return te(this.ptr)},E.prototype.__destroy__=E.prototype.__destroy__=function(){ee(this.ptr)},G.prototype=Object.create(u.prototype),G.prototype.constructor=G,G.prototype.__class__=G,G.__cache__={},C.Metadata=G,G.prototype.__destroy__=G.prototype.__destroy__=function(){ne(this.ptr)},O.prototype=Object.create(u.prototype),O.prototype.constructor=O,O.prototype.__class__=O,O.__cache__={},C.Status=O,O.prototype.code=O.prototype.code=function(){return oe(this.ptr)},O.prototype.ok=O.prototype.ok=function(){return!!_e(this.ptr)},O.prototype.error_msg=O.prototype.error_msg=function(){return r(ie(this.ptr))},O.prototype.__destroy__=O.prototype.__destroy__=function(){pe(this.ptr)},v.prototype=Object.create(u.prototype),v.prototype.constructor=v,v.prototype.__class__=v,v.__cache__={},C.DracoFloat32Array=v,v.prototype.GetValue=v.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),ce(e,t)},v.prototype.size=v.prototype.size=function(){return ue(this.ptr)},v.prototype.__destroy__=v.prototype.__destroy__=function(){se(this.ptr)},j.prototype=Object.create(u.prototype),j.prototype.constructor=j,j.prototype.__class__=j,j.__cache__={},C.DracoInt8Array=j,j.prototype.GetValue=j.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),le(e,t)},j.prototype.size=j.prototype.size=function(){return fe(this.ptr)},j.prototype.__destroy__=j.prototype.__destroy__=function(){de(this.ptr)},P.prototype=Object.create(u.prototype),P.prototype.constructor=P,P.prototype.__class__=P,P.__cache__={},C.DracoUInt8Array=P,P.prototype.GetValue=P.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),be(e,t)},P.prototype.size=P.prototype.size=function(){return he(this.ptr)},P.prototype.__destroy__=P.prototype.__destroy__=function(){Ae(this.ptr)},R.prototype=Object.create(u.prototype),R.prototype.constructor=R,R.prototype.__class__=R,R.__cache__={},C.DracoInt16Array=R,R.prototype.GetValue=R.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),De(e,t)},R.prototype.size=R.prototype.size=function(){return Ie(this.ptr)},R.prototype.__destroy__=R.prototype.__destroy__=function(){Ee(this.ptr)},S.prototype=Object.create(u.prototype),S.prototype.constructor=S,S.prototype.__class__=S,S.__cache__={},C.DracoUInt16Array=S,S.prototype.GetValue=S.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Oe(e,t)},S.prototype.size=S.prototype.size=function(){return ve(this.ptr)},S.prototype.__destroy__=S.prototype.__destroy__=function(){je(this.ptr)},N.prototype=Object.create(u.prototype),N.prototype.constructor=N,N.prototype.__class__=N,N.__cache__={},C.DracoInt32Array=N,N.prototype.GetValue=N.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Re(e,t)},N.prototype.size=N.prototype.size=function(){return Se(this.ptr)},N.prototype.__destroy__=N.prototype.__destroy__=function(){Ne(this.ptr)},M.prototype=Object.create(u.prototype),M.prototype.constructor=M,M.prototype.__class__=M,M.__cache__={},C.DracoUInt32Array=M,M.prototype.GetValue=M.prototype.GetValue=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),Ue(e,t)},M.prototype.size=M.prototype.size=function(){return ge(this.ptr)},M.prototype.__destroy__=M.prototype.__destroy__=function(){Fe(this.ptr)},U.prototype=Object.create(u.prototype),U.prototype.constructor=U,U.prototype.__class__=U,U.__cache__={},C.MetadataQuerier=U,U.prototype.HasEntry=U.prototype.HasEntry=function(t,e){var r=this.ptr;return tn.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:l(e),!!Ce(r,t,e)},U.prototype.GetIntEntry=U.prototype.GetIntEntry=function(t,e){var r=this.ptr;return tn.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:l(e),we(r,t,e)},U.prototype.GetIntEntryArray=U.prototype.GetIntEntryArray=function(t,e,r){var n=this.ptr;tn.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:l(e),r&&"object"==typeof r&&(r=r.ptr),ze(n,t,e,r)},U.prototype.GetDoubleEntry=U.prototype.GetDoubleEntry=function(t,e){var r=this.ptr;return tn.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:l(e),Ve(r,t,e)},U.prototype.GetStringEntry=U.prototype.GetStringEntry=function(t,e){var n=this.ptr;return tn.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:l(e),r(Be(n,t,e))},U.prototype.NumEntries=U.prototype.NumEntries=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),We(e,t)},U.prototype.GetEntryName=U.prototype.GetEntryName=function(t,e){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r(ke(n,t,e))},U.prototype.__destroy__=U.prototype.__destroy__=function(){Qe(this.ptr)},g.prototype=Object.create(u.prototype),g.prototype.constructor=g,g.prototype.__class__=g,g.__cache__={},C.Decoder=g,g.prototype.DecodeArrayToPointCloud=g.prototype.DecodeArrayToPointCloud=function(t,e,r){var n=this.ptr;return tn.prepare(),"object"==typeof t&&(t=f(t)),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),y(Ye(n,t,e,r),O)},g.prototype.DecodeArrayToMesh=g.prototype.DecodeArrayToMesh=function(t,e,r){var n=this.ptr;return tn.prepare(),"object"==typeof t&&(t=f(t)),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),y(He(n,t,e,r),O)},g.prototype.GetAttributeId=g.prototype.GetAttributeId=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),qe(r,t,e)},g.prototype.GetAttributeIdByName=g.prototype.GetAttributeIdByName=function(t,e){var r=this.ptr;return tn.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:l(e),Ke(r,t,e)},g.prototype.GetAttributeIdByMetadataEntry=g.prototype.GetAttributeIdByMetadataEntry=function(t,e,r){var n=this.ptr;return tn.prepare(),t&&"object"==typeof t&&(t=t.ptr),e=e&&"object"==typeof e?e.ptr:l(e),r=r&&"object"==typeof r?r.ptr:l(r),Xe(n,t,e,r)},g.prototype.GetAttribute=g.prototype.GetAttribute=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(Je(r,t,e),A)},g.prototype.GetAttributeByUniqueId=g.prototype.GetAttributeByUniqueId=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(Ze(r,t,e),A)},g.prototype.GetMetadata=g.prototype.GetMetadata=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),y($e(e,t),G)},g.prototype.GetAttributeMetadata=g.prototype.GetAttributeMetadata=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(tr(r,t,e),G)},g.prototype.GetFaceFromMesh=g.prototype.GetFaceFromMesh=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!er(n,t,e,r)},g.prototype.GetTriangleStripsFromMesh=g.prototype.GetTriangleStripsFromMesh=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),rr(r,t,e)},g.prototype.GetTrianglesUInt16Array=g.prototype.GetTrianglesUInt16Array=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!nr(n,t,e,r)},g.prototype.GetTrianglesUInt32Array=g.prototype.GetTrianglesUInt32Array=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!or(n,t,e,r)},g.prototype.GetAttributeFloat=g.prototype.GetAttributeFloat=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!_r(n,t,e,r)},g.prototype.GetAttributeFloatForAllPoints=g.prototype.GetAttributeFloatForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ir(n,t,e,r)},g.prototype.GetAttributeIntForAllPoints=g.prototype.GetAttributeIntForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!pr(n,t,e,r)},g.prototype.GetAttributeInt8ForAllPoints=g.prototype.GetAttributeInt8ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ar(n,t,e,r)},g.prototype.GetAttributeUInt8ForAllPoints=g.prototype.GetAttributeUInt8ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!cr(n,t,e,r)},g.prototype.GetAttributeInt16ForAllPoints=g.prototype.GetAttributeInt16ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!ur(n,t,e,r)},g.prototype.GetAttributeUInt16ForAllPoints=g.prototype.GetAttributeUInt16ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!sr(n,t,e,r)},g.prototype.GetAttributeInt32ForAllPoints=g.prototype.GetAttributeInt32ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!yr(n,t,e,r)},g.prototype.GetAttributeUInt32ForAllPoints=g.prototype.GetAttributeUInt32ForAllPoints=function(t,e,r){var n=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),!!lr(n,t,e,r)},g.prototype.GetAttributeDataArrayForAllPoints=g.prototype.GetAttributeDataArrayForAllPoints=function(t,e,r,n,o){var _=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),r&&"object"==typeof r&&(r=r.ptr),n&&"object"==typeof n&&(n=n.ptr),o&&"object"==typeof o&&(o=o.ptr),!!fr(_,t,e,r,n,o)},g.prototype.SkipAttributeTransform=g.prototype.SkipAttributeTransform=function(t){var e=this.ptr;t&&"object"==typeof t&&(t=t.ptr),dr(e,t)},g.prototype.GetEncodedGeometryType_Deprecated=g.prototype.GetEncodedGeometryType_Deprecated=function(t){var e=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),mr(e,t)},g.prototype.DecodeBufferToPointCloud=g.prototype.DecodeBufferToPointCloud=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(br(r,t,e),O)},g.prototype.DecodeBufferToMesh=g.prototype.DecodeBufferToMesh=function(t,e){var r=this.ptr;return t&&"object"==typeof t&&(t=t.ptr),e&&"object"==typeof e&&(e=e.ptr),y(hr(r,t,e),O)},g.prototype.__destroy__=g.prototype.__destroy__=function(){Ar(this.ptr)},function(){function t(){C.ATTRIBUTE_INVALID_TRANSFORM=Tr(),C.ATTRIBUTE_NO_TRANSFORM=Dr(),C.ATTRIBUTE_QUANTIZATION_TRANSFORM=Ir(),C.ATTRIBUTE_OCTAHEDRON_TRANSFORM=Er(),C.INVALID=Gr(),C.POSITION=Or(),C.NORMAL=vr(),C.COLOR=jr(),C.TEX_COORD=Pr(),C.GENERIC=Rr(),C.INVALID_GEOMETRY_TYPE=Sr(),C.POINT_CLOUD=Nr(),C.TRIANGULAR_MESH=Mr(),C.DT_INVALID=Ur(),C.DT_INT8=gr(),C.DT_UINT8=Fr(),C.DT_INT16=Lr(),C.DT_UINT16=Cr(),C.DT_INT32=wr(),C.DT_UINT32=zr(),C.DT_INT64=Vr(),C.DT_UINT64=Br(),C.DT_FLOAT32=Wr(),C.DT_FLOAT64=kr(),C.DT_BOOL=Qr(),C.DT_TYPES_COUNT=xr(),C.OK=Yr(),C.DRACO_ERROR=Hr(),C.IO_ERROR=qr(),C.INVALID_PARAMETER=Kr(),C.UNSUPPORTED_VERSION=Xr(),C.UNKNOWN_VERSION=Jr()}ut?t():at.unshift(t)}(),"function"==typeof C.onModuleParsed&&C.onModuleParsed(),C.Decoder.prototype.GetEncodedGeometryType=function(t){if(t.__class__&&t.__class__===C.DecoderBuffer)return C.Decoder.prototype.GetEncodedGeometryType_Deprecated(t);if(8>t.byteLength)return C.INVALID_GEOMETRY_TYPE;switch(t[7]){case 0:return C.POINT_CLOUD;case 1:return C.TRIANGULAR_MESH;default:return C.INVALID_GEOMETRY_TYPE}},t.ready});"object"==typeof t&&"object"==typeof e?e.exports=o:"function"==typeof define&&define.amd?define([],(function(){return o})):"object"==typeof t&&(t.DracoDecoderModule=o)}));export{Dn as a};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
import{b as U}from"./chunk-D3TVNJ6W.js";import{a as ft}from"./chunk-2AIOP76V.js";import{a as i,b}from"./chunk-IAE6APK2.js";import{a as y}from"./chunk-3E7FIXV7.js";import{a as w,b as $}from"./chunk-NZBME2JK.js";import{f as g}from"./chunk-6DLS2UKD.js";var tt={};function mt(t,e,i){let r=t+e;return y.sign(t)!==y.sign(e)&&Math.abs(r/Math.max(Math.abs(t),Math.abs(e)))<i?0:r}tt.computeDiscriminant=function(t,e,i){if("number"!=typeof t)throw new w("a is a required number.");if("number"!=typeof e)throw new w("b is a required number.");if("number"!=typeof i)throw new w("c is a required number.");return e*e-4*t*i},tt.computeRealRoots=function(t,e,i){if("number"!=typeof t)throw new w("a is a required number.");if("number"!=typeof e)throw new w("b is a required number.");if("number"!=typeof i)throw new w("c is a required number.");let r;if(0===t)return 0===e?[]:[-i/e];if(0===e){if(0===i)return[0,0];let e=Math.abs(i),n=Math.abs(t);if(e<n&&e/n<y.EPSILON14)return[0,0];if(e>n&&n/e<y.EPSILON14)return[];if(r=-i/t,r<0)return[];let o=Math.sqrt(r);return[-o,o]}if(0===i)return r=-e/t,r<0?[r,0]:[0,r];let n=mt(e*e,-(4*t*i),y.EPSILON14);if(n<0)return[];let o=-.5*mt(e,y.sign(e)*Math.sqrt(n),y.EPSILON14);return e>0?[o/t,i/o]:[i/o,o/t]};var z=tt,et={};function nt(t,e,i,r){let n,o,a=t,s=e/3,u=i/3,l=r,w=a*u,f=s*l,c=s*s,m=u*u,h=a*u-c,d=a*l-s*u,p=s*l-m,g=4*h*p-d*d;if(g<0){let t,e,i;c*f>=w*m?(t=a,e=h,i=-2*s*h+a*d):(t=l,e=p,i=-l*d+2*u*p);let r=-(i<0?-1:1)*Math.abs(t)*Math.sqrt(-g);o=-i+r;let b=o/2,y=b<0?-Math.pow(-b,1/3):Math.pow(b,1/3),q=o===r?-y:-e/y;return n=e<=0?y+q:-i/(y*y+q*q+e),c*f>=w*m?[(n-s)/a]:[-l/(n+u)]}let b=h,y=-2*s*h+a*d,q=p,O=-l*d+2*u*p,M=Math.sqrt(g),S=Math.sqrt(3)/2,R=Math.abs(Math.atan2(a*M,-y)/3);n=2*Math.sqrt(-b);let P=Math.cos(R);o=n*P;let N=n*(-P/2-S*Math.sin(R)),E=o+N>2*s?o-s:N-s,L=a,z=E/L;R=Math.abs(Math.atan2(l*M,-O)/3),n=2*Math.sqrt(-q),P=Math.cos(R),o=n*P,N=n*(-P/2-S*Math.sin(R));let x=-l,I=o+N<2*u?o+u:N+u,U=x/I,v=-E*I-L*x,C=(u*v-s*(E*x))/(-s*v+u*(L*I));return z<=C?z<=U?C<=U?[z,C,U]:[z,U,C]:[U,z,C]:z<=U?[C,z,U]:C<=U?[C,U,z]:[U,C,z]}et.computeDiscriminant=function(t,e,i,r){if("number"!=typeof t)throw new w("a is a required number.");if("number"!=typeof e)throw new w("b is a required number.");if("number"!=typeof i)throw new w("c is a required number.");if("number"!=typeof r)throw new w("d is a required number.");let n=e*e,o=i*i;return 18*t*e*i*r+n*o-27*(t*t)*(r*r)-4*(t*o*i+n*e*r)},et.computeRealRoots=function(t,e,i,r){if("number"!=typeof t)throw new w("a is a required number.");if("number"!=typeof e)throw new w("b is a required number.");if("number"!=typeof i)throw new w("c is a required number.");if("number"!=typeof r)throw new w("d is a required number.");let n,o;if(0===t)return z.computeRealRoots(e,i,r);if(0===e){if(0===i){if(0===r)return[0,0,0];o=-r/t;let e=o<0?-Math.pow(-o,1/3):Math.pow(o,1/3);return[e,e,e]}return 0===r?(n=z.computeRealRoots(t,0,i),0===n.Length?[0]:[n[0],0,n[1]]):nt(t,0,i,r)}return 0===i?0===r?(o=-e/t,o<0?[o,0,0]:[0,0,o]):nt(t,e,0,r):0===r?(n=z.computeRealRoots(t,e,i),0===n.length?[0]:n[1]<=0?[n[0],n[1],0]:n[0]>=0?[0,n[0],n[1]]:[n[0],0,n[1]]):nt(t,e,i,r)};var H=et,rt={};function T(t,e,i,r){let n=t*t,o=e-3*n/8,a=i-e*t/2+n*t/8,s=r-i*t/4+e*n/16-3*n*n/256,u=H.computeRealRoots(1,2*o,o*o-4*s,-a*a);if(u.length>0){let e=-t/4,i=u[u.length-1];if(Math.abs(i)<y.EPSILON14){let t=z.computeRealRoots(1,o,s);if(2===t.length){let i,r=t[0],n=t[1];if(r>=0&&n>=0){let t=Math.sqrt(r),i=Math.sqrt(n);return[e-i,e-t,e+t,e+i]}if(r>=0&&n<0)return i=Math.sqrt(r),[e-i,e+i];if(r<0&&n>=0)return i=Math.sqrt(n),[e-i,e+i]}return[]}if(i>0){let t=Math.sqrt(i),r=(o+i-a/t)/2,n=(o+i+a/t)/2,s=z.computeRealRoots(1,t,r),u=z.computeRealRoots(1,-t,n);return 0!==s.length?(s[0]+=e,s[1]+=e,0!==u.length?(u[0]+=e,u[1]+=e,s[1]<=u[0]?[s[0],s[1],u[0],u[1]]:u[1]<=s[0]?[u[0],u[1],s[0],s[1]]:s[0]>=u[0]&&s[1]<=u[1]?[u[0],s[0],s[1],u[1]]:u[0]>=s[0]&&u[1]<=s[1]?[s[0],u[0],u[1],s[1]]:s[0]>u[0]&&s[0]<u[1]?[u[0],s[0],u[1],s[1]]:[s[0],u[0],s[1],u[1]]):s):0!==u.length?(u[0]+=e,u[1]+=e,u):[]}}return[]}function j(t,e,i,r){let n=t*t,o=-2*e,a=i*t+e*e-4*r,s=n*r-i*e*t+i*i,u=H.computeRealRoots(1,o,a,s);if(u.length>0){let o,a,s,l,w,f,c=u[0],m=e-c,h=m*m,d=t/2,p=m/2,g=h-4*r,b=h+4*Math.abs(r),q=n-4*c,O=n+4*Math.abs(c);if(c<0||g*O<q*b){let e=Math.sqrt(q);o=e/2,a=0===e?0:(t*p-i)/e}else{let e=Math.sqrt(g);o=0===e?0:(t*p-i)/e,a=e/2}0===d&&0===o?(s=0,l=0):y.sign(d)===y.sign(o)?(s=d+o,l=c/s):(l=d-o,s=c/l),0===p&&0===a?(w=0,f=0):y.sign(p)===y.sign(a)?(w=p+a,f=r/w):(f=p-a,w=r/f);let M=z.computeRealRoots(1,s,w),S=z.computeRealRoots(1,l,f);if(0!==M.length)return 0!==S.length?M[1]<=S[0]?[M[0],M[1],S[0],S[1]]:S[1]<=M[0]?[S[0],S[1],M[0],M[1]]:M[0]>=S[0]&&M[1]<=S[1]?[S[0],M[0],M[1],S[1]]:S[0]>=M[0]&&S[1]<=M[1]?[M[0],S[0],S[1],M[1]]:M[0]>S[0]&&M[0]<S[1]?[S[0],M[0],S[1],M[1]]:[M[0],S[0],M[1],S[1]]:M;if(0!==S.length)return S}return[]}rt.computeDiscriminant=function(t,e,i,r,n){if("number"!=typeof t)throw new w("a is a required number.");if("number"!=typeof e)throw new w("b is a required number.");if("number"!=typeof i)throw new w("c is a required number.");if("number"!=typeof r)throw new w("d is a required number.");if("number"!=typeof n)throw new w("e is a required number.");let o=t*t,a=e*e,s=a*e,u=i*i,l=u*i,f=r*r,c=f*r,m=n*n;return a*u*f-4*s*c-4*t*l*f+18*t*e*i*c-27*o*f*f+256*(o*t)*(m*n)+n*(18*s*i*r-4*a*l+16*t*u*u-80*t*e*u*r-6*t*a*f+144*o*i*f)+m*(144*t*a*i-27*a*a-128*o*u-192*o*e*r)},rt.computeRealRoots=function(t,e,i,r,n){if("number"!=typeof t)throw new w("a is a required number.");if("number"!=typeof e)throw new w("b is a required number.");if("number"!=typeof i)throw new w("c is a required number.");if("number"!=typeof r)throw new w("d is a required number.");if("number"!=typeof n)throw new w("e is a required number.");if(Math.abs(t)<y.EPSILON15)return H.computeRealRoots(e,i,r,n);let o=e/t,a=i/t,s=r/t,u=n/t,l=o<0?1:0;switch(l+=a<0?l+1:l,l+=s<0?l+1:l,l+=u<0?l+1:l,l){case 0:case 3:case 4:case 6:case 7:case 9:case 10:case 12:case 13:case 14:case 15:return T(o,a,s,u);case 1:case 2:case 5:case 8:case 11:return j(o,a,s,u);default:return}};var dt=rt,ot=class t{constructor(t,e){e=i.clone(e??i.ZERO),i.equals(e,i.ZERO)||i.normalize(e,e),this.origin=i.clone(t??i.ZERO),this.direction=e}static clone(e,r){if(g(e))return g(r)?(r.origin=i.clone(e.origin),r.direction=i.clone(e.direction),r):new t(e.origin,e.direction)}static getPoint(t,e,r){return $.typeOf.object("ray",t),$.typeOf.number("t",e),g(r)||(r=new i),r=i.multiplyByScalar(t.direction,e,r),i.add(t.origin,r,r)}},it=ot,O={rayPlane:function(t,e,r){if(!g(t))throw new w("ray is required.");if(!g(e))throw new w("plane is required.");g(r)||(r=new i);let n=t.origin,o=t.direction,a=e.normal,s=i.dot(a,o);if(Math.abs(s)<y.EPSILON15)return;let u=(-e.distance-i.dot(a,n))/s;return u<0?void 0:(r=i.multiplyByScalar(o,u,r),i.add(n,r,r))}},Ot=new i,Pt=new i,Mt=new i,ht=new i,lt=new i;O.rayTriangleParametric=function(t,e,r,n,o){if(!g(t))throw new w("ray is required.");if(!g(e))throw new w("p0 is required.");if(!g(r))throw new w("p1 is required.");if(!g(n))throw new w("p2 is required.");o=o??!1;let a,s,u,l,f,c=t.origin,m=t.direction,h=i.subtract(r,e,Ot),d=i.subtract(n,e,Pt),p=i.cross(m,d,Mt),b=i.dot(h,p);if(o){if(b<y.EPSILON6||(a=i.subtract(c,e,ht),u=i.dot(a,p),u<0||u>b)||(s=i.cross(a,h,lt),l=i.dot(m,s),l<0||u+l>b))return;f=i.dot(d,s)/b}else{if(Math.abs(b)<y.EPSILON6)return;let t=1/b;if(a=i.subtract(c,e,ht),u=i.dot(a,p)*t,u<0||u>1||(s=i.cross(a,h,lt),l=i.dot(m,s)*t,l<0||u+l>1))return;f=i.dot(d,s)*t}return f},O.rayTriangle=function(t,e,r,n,o,a){let s=O.rayTriangleParametric(t,e,r,n,o);if(g(s)&&!(s<0))return g(a)||(a=new i),i.multiplyByScalar(t.direction,s,a),i.add(t.origin,a,a)};var Et=new it;function Ct(t,e,i,r){let n=e*e-4*t*i;if(n<0)return;if(n>0){let i=1/(2*t),o=Math.sqrt(n),a=(-e+o)*i,s=(-e-o)*i;return a<s?(r.root0=a,r.root1=s):(r.root0=s,r.root1=a),r}let o=-e/(2*t);return 0!==o?(r.root0=r.root1=o,r):void 0}O.lineSegmentTriangle=function(t,e,r,n,o,a,s){if(!g(t))throw new w("v0 is required.");if(!g(e))throw new w("v1 is required.");if(!g(r))throw new w("p0 is required.");if(!g(n))throw new w("p1 is required.");if(!g(o))throw new w("p2 is required.");let u=Et;i.clone(t,u.origin),i.subtract(e,t,u.direction),i.normalize(u.direction,u.direction);let l=O.rayTriangleParametric(u,r,n,o,a);if(!(!g(l)||l<0||l>i.distance(t,e)))return g(s)||(s=new i),i.multiplyByScalar(u.direction,l,s),i.add(u.origin,s,s)};var Nt={root0:0,root1:0};function yt(t,e,r){g(r)||(r=new U);let n=t.origin,o=t.direction,a=e.center,s=e.radius*e.radius,u=i.subtract(n,a,Mt),l=Ct(i.dot(o,o),2*i.dot(o,u),i.magnitudeSquared(u)-s,Nt);if(g(l))return r.start=l.root0,r.stop=l.root1,r}O.raySphere=function(t,e,i){if(!g(t))throw new w("ray is required.");if(!g(e))throw new w("sphere is required.");if(i=yt(t,e,i),g(i)&&!(i.stop<0))return i.start=Math.max(i.start,0),i};var Lt=new it;O.lineSegmentSphere=function(t,e,r,n){if(!g(t))throw new w("p0 is required.");if(!g(e))throw new w("p1 is required.");if(!g(r))throw new w("sphere is required.");let o=Lt;i.clone(t,o.origin);let a=i.subtract(e,t,o.direction),s=i.magnitude(a);if(i.normalize(a,a),n=yt(o,r,n),!(!g(n)||n.stop<0||n.start>s))return n.start=Math.max(n.start,0),n.stop=Math.min(n.stop,s),n};var It=new i,xt=new i;O.rayEllipsoid=function(t,e){if(!g(t))throw new w("ray is required.");if(!g(e))throw new w("ellipsoid is required.");let r,n,o,a,s,u=e.oneOverRadii,l=i.multiplyComponents(u,t.origin,It),f=i.multiplyComponents(u,t.direction,xt),c=i.magnitudeSquared(l),m=i.dot(l,f);if(c>1){if(m>=0)return;let t=m*m;if(r=c-1,n=i.magnitudeSquared(f),o=n*r,t<o)return;if(t>o){a=m*m-o,s=-m+Math.sqrt(a);let t=s/n,e=r/s;return t<e?new U(t,e):{start:e,stop:t}}let e=Math.sqrt(r/n);return new U(e,e)}return c<1?(r=c-1,n=i.magnitudeSquared(f),o=n*r,a=m*m-o,s=-m+Math.sqrt(a),new U(0,s/n)):m<0?(n=i.magnitudeSquared(f),new U(0,-m/n)):void 0};var Bt=new U,Dt=new U,zt=new U;function st(t,e,i,r,n){if(n.start=(i-t)/e,n.stop=(r-t)/e,n.stop<n.start){let t=n.stop;n.stop=n.start,n.start=t}return n}function Q(t,e,i){let r=t+e;return y.sign(t)!==y.sign(e)&&Math.abs(r/Math.max(Math.abs(t),Math.abs(e)))<i?0:r}O.rayAxisAlignedBoundingBox=function(t,e,i){if(!g(t))throw new w("ray is required.");if(!g(e))throw new w("box is required.");g(i)||(i=new U);let r=st(t.origin.x,t.direction.x,e.minimum.x,e.maximum.x,Bt),n=st(t.origin.y,t.direction.y,e.minimum.y,e.maximum.y,Dt),o=st(t.origin.z,t.direction.z,e.minimum.z,e.maximum.z,zt);if(i.start=r.start>n.start?r.start:n.start,i.stop=r.stop<n.stop?r.stop:n.stop,!(r.start>n.stop||n.start>r.stop||i.start>o.stop||o.start>i.stop))return o.start>i.start&&(i.start=o.start),o.stop<i.stop&&(i.stop=o.stop),i},O.quadraticVectorExpression=function(t,e,r,n,o){let a,s=n*n,u=o*o,l=(t[b.COLUMN1ROW1]-t[b.COLUMN2ROW2])*u,w=o*(n*Q(t[b.COLUMN1ROW0],t[b.COLUMN0ROW1],y.EPSILON15)+e.y),f=t[b.COLUMN0ROW0]*s+t[b.COLUMN2ROW2]*u+n*e.x+r,c=u*Q(t[b.COLUMN2ROW1],t[b.COLUMN1ROW2],y.EPSILON15),m=o*(n*Q(t[b.COLUMN2ROW0],t[b.COLUMN0ROW2])+e.z),h=[];if(0===m&&0===c){if(a=z.computeRealRoots(l,w,f),0===a.length)return h;let t=a[0],e=Math.sqrt(Math.max(1-t*t,0));if(h.push(new i(n,o*t,o*-e)),h.push(new i(n,o*t,o*e)),2===a.length){let t=a[1],e=Math.sqrt(Math.max(1-t*t,0));h.push(new i(n,o*t,o*-e)),h.push(new i(n,o*t,o*e))}return h}let d=m*m,p=c*c,g=m*c,q=l*l+p,O=2*(w*l+g),M=2*f*l+w*w-p+d,S=2*(f*w-g),R=f*f-d;if(0===q&&0===O&&0===M&&0===S)return h;a=dt.computeRealRoots(q,O,M,S,R);let P=a.length;if(0===P)return h;for(let t=0;t<P;++t){let e,r=a[t],s=r*r,u=Math.max(1-s,0),d=Math.sqrt(u);e=y.sign(l)===y.sign(f)?Q(l*s+f,w*r,y.EPSILON12):y.sign(f)===y.sign(w*r)?Q(l*s,w*r+f,y.EPSILON12):Q(l*s+w*r,f,y.EPSILON12);let p=e*Q(c*r,m,y.EPSILON15);p<0?h.push(new i(n,o*r,o*d)):p>0?h.push(new i(n,o*r,o*-d)):0!==d?(h.push(new i(n,o*r,o*-d)),h.push(new i(n,o*r,o*d)),++t):h.push(new i(n,o*r,o*d))}return h};var ct=new i,wt=new i,qt=new i,X=new i,Tt=new i,vt=new b,Wt=new b,At=new b,Ut=new b,Vt=new b,gt=new b,pt=new b,St=new i,Qt=new i,Zt=new ft;O.grazingAltitudeLocation=function(t,e){if(!g(t))throw new w("ray is required.");if(!g(e))throw new w("ellipsoid is required.");let r=t.origin,n=t.direction;if(!i.equals(r,i.ZERO)){let t=e.geodeticSurfaceNormal(r,ct);if(i.dot(n,t)>=0)return r}let o=g(this.rayEllipsoid(t,e)),a=e.transformPositionToScaledSpace(n,ct),s=i.normalize(a,a),u=i.mostOrthogonalAxis(a,X),l=i.normalize(i.cross(u,s,wt),wt),f=i.normalize(i.cross(s,l,qt),qt),c=vt;c[0]=s.x,c[1]=s.y,c[2]=s.z,c[3]=l.x,c[4]=l.y,c[5]=l.z,c[6]=f.x,c[7]=f.y,c[8]=f.z;let m=b.transpose(c,Wt),h=b.fromScale(e.radii,At),d=b.fromScale(e.oneOverRadii,Ut),p=Vt;p[0]=0,p[1]=-n.z,p[2]=n.y,p[3]=n.z,p[4]=0,p[5]=-n.x,p[6]=-n.y,p[7]=n.x,p[8]=0;let q,M,S=b.multiply(b.multiply(m,d,gt),p,gt),R=b.multiply(b.multiply(S,h,pt),c,pt),P=b.multiplyByVector(S,r,Tt),N=O.quadraticVectorExpression(R,i.negate(P,ct),0,0,1),E=N.length;if(E>0){let t=i.clone(i.ZERO,Qt),a=Number.NEGATIVE_INFINITY;for(let e=0;e<E;++e){q=b.multiplyByVector(h,b.multiplyByVector(c,N[e],St),St);let o=i.normalize(i.subtract(q,r,X),X),s=i.dot(o,n);s>a&&(a=s,t=i.clone(q,t))}let s=e.cartesianToCartographic(t,Zt);return a=y.clamp(a,0,1),M=i.magnitude(i.subtract(t,r,X))*Math.sqrt(1-a*a),M=o?-M:M,s.height=M,e.cartographicToCartesian(s,new i)}};var kt=new i;O.lineSegmentPlane=function(t,e,r,n){if(!g(t))throw new w("endPoint0 is required.");if(!g(e))throw new w("endPoint1 is required.");if(!g(r))throw new w("plane is required.");g(n)||(n=new i);let o=i.subtract(e,t,kt),a=r.normal,s=i.dot(a,o);if(Math.abs(s)<y.EPSILON6)return;let u=i.dot(a,t),l=-(r.distance+u)/s;return l<0||l>1?void 0:(i.multiplyByScalar(o,l,n),i.add(t,n,n),n)},O.trianglePlaneIntersection=function(t,e,r,n){if(!(g(t)&&g(e)&&g(r)&&g(n)))throw new w("p0, p1, p2, and plane are required.");let o,a,s=n.normal,u=n.distance,l=i.dot(s,t)+u<0,f=i.dot(s,e)+u<0,c=i.dot(s,r)+u<0,m=0;if(m+=l?1:0,m+=f?1:0,m+=c?1:0,(1===m||2===m)&&(o=new i,a=new i),1===m){if(l)return O.lineSegmentPlane(t,e,n,o),O.lineSegmentPlane(t,r,n,a),{positions:[t,e,r,o,a],indices:[0,3,4,1,2,4,1,4,3]};if(f)return O.lineSegmentPlane(e,r,n,o),O.lineSegmentPlane(e,t,n,a),{positions:[t,e,r,o,a],indices:[1,3,4,2,0,4,2,4,3]};if(c)return O.lineSegmentPlane(r,t,n,o),O.lineSegmentPlane(r,e,n,a),{positions:[t,e,r,o,a],indices:[2,3,4,0,1,4,0,4,3]}}else if(2===m){if(!l)return O.lineSegmentPlane(e,t,n,o),O.lineSegmentPlane(r,t,n,a),{positions:[t,e,r,o,a],indices:[1,2,4,1,4,3,0,3,4]};if(!f)return O.lineSegmentPlane(r,e,n,o),O.lineSegmentPlane(t,e,n,a),{positions:[t,e,r,o,a],indices:[2,0,4,2,4,3,1,3,4]};if(!c)return O.lineSegmentPlane(t,r,n,o),O.lineSegmentPlane(e,r,n,a),{positions:[t,e,r,o,a],indices:[0,1,4,0,4,3,2,3,4]}}};var gn=O;export{it as a,gn as b};
|