@anov/gis 1.7.7 → 1.8.5
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 +95 -0
- package/README.md +297 -85
- 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 +88 -84
- 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
|
@@ -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 _}from"./chunk-6AEO73KW.js";import{a as te}from"./chunk-BDWA46XV.js";import{h as Z,i as fe}from"./chunk-LNJEJFV5.js";import{a as ie,b as j}from"./chunk-BPABSUDY.js";import{a as se,b as ee}from"./chunk-2AIOP76V.js";import{a as e,b as O}from"./chunk-IAE6APK2.js";import{a as Q}from"./chunk-3E7FIXV7.js";import{a as le}from"./chunk-NZBME2JK.js";import{f as $}from"./chunk-6DLS2UKD.js";var me={ROUNDED:0,MITERED:1,BEVELED:2};Object.freeze(me);var G=me,ue={};function P(e,t){if(!$(e))throw new le("identifier is required.");$(ue[e])||(ue[e]=!0,console.warn(t??e))}P.geometryOutlines="Entity geometry outlines are unsupported on terrain. Outlines will be disabled. To enable outlines, disable geometry terrain clamping by explicitly setting height to 0.",P.geometryZIndex="Entity geometry with zIndex are unsupported when height or extrudedHeight are defined. zIndex will be ignored",P.geometryHeightReference="Entity corridor, ellipse, polygon or rectangle with heightReference must also have a defined height. heightReference will be ignored",P.geometryExtrudedHeightReference="Entity corridor, ellipse, polygon or rectangle with extrudedHeightReference must also have a defined extrudedHeight. extrudedHeightReference will be ignored";var he=P,w=[new e,new e],Se=new e,Te=new e,Be=new e,Ce=new e,ze=new e,Ae=new e,be=new e,Oe=new e,ve=new e,I=new e,W=new e,R={},re=new se;function De(e,t){let n=new Array(e.length);for(let r=0;r<e.length;r++){let o=e[r];re=t.cartesianToCartographic(o,re),n[r]=re.height,e[r]=t.scaleToGeodeticSurface(o,o)}return n}function ne(t,n,r,o){let a,l=t[0],i=t[1],c=e.angleBetween(l,i),s=Math.ceil(c/o),u=new Array(s);if(n===r){for(a=0;a<s;a++)u[a]=n;return u.push(r),u}let d=(r-n)/s;for(a=1;a<s;a++){let e=n+a*d;u[a]=e}return u[0]=n,u.push(r),u}var X=new e,Y=new e;function je(t,n,r,o){let a=new te(r,o),l=a.projectPointOntoPlane(e.add(r,t,X),X),i=a.projectPointOntoPlane(e.add(r,n,Y),Y),c=ee.angleBetween(l,i);return i.x*l.y-i.y*l.x>=0?-c:c}var He=new e(-1,0,0),H=new j,Me=new j,oe=new O,Ne=O.IDENTITY.clone(),Ve=new e,Fe=new ie,de=new e;function v(t,n,r,o,a,l,i,c){let s=Ve,u=Fe;H=fe.eastNorthUpToFixedFrame(t,a,H),s=j.multiplyByPointAsVector(H,He,s),s=e.normalize(s,s);let d=je(s,n,t,a);oe=O.fromRotationZ(d,oe),de.z=l,H=j.multiplyTransformation(H,j.fromRotationTranslation(oe,de,Me),H);let w=Ne;w[0]=i;for(let t=0;t<c;t++)for(let t=0;t<r.length;t+=3)u=e.fromArray(r,t,u),u=O.multiplyByVector(w,u,u),u=j.multiplyByPoint(H,u,u),o.push(u.x,u.y,u.z);return o}var Ge=new e;function ce(t,n,r,o,a,l,i){for(let c=0;c<t.length;c+=3){o=v(e.fromArray(t,c,Ge),n,r,o,a,l[c/3],i,1)}return o}function Ie(e,t){let n=e.length,r=new Array(6*n),o=0,a=t.x+t.width/2,l=t.y+t.height/2,i=e[0];r[o++]=i.x-a,r[o++]=0,r[o++]=i.y-l;for(let t=1;t<n;t++){i=e[t];let n=i.x-a,c=i.y-l;r[o++]=n,r[o++]=0,r[o++]=c,r[o++]=n,r[o++]=0,r[o++]=c}return i=e[0],r[o++]=i.x-a,r[o++]=0,r[o++]=i.y-l,r}function ge(e,t){let n=e.length,r=new Array(3*n),o=0,a=t.x+t.width/2,l=t.y+t.height/2;for(let t=0;t<n;t++)r[o++]=e[t].x-a,r[o++]=0,r[o++]=e[t].y-l;return r}var ye=new Z,we=new e,pe=new O;function xe(t,n,r,o,a,l,i,c,s,u){let d,w,m,h=e.angleBetween(e.subtract(n,t,I),e.subtract(r,t,W)),g=o===G.BEVELED?0:Math.ceil(h/Q.toRadians(5));if(d=a?O.fromQuaternion(Z.fromAxisAngle(e.negate(t,I),h/(g+1),ye),pe):O.fromQuaternion(Z.fromAxisAngle(t,h/(g+1),ye),pe),n=e.clone(n,we),g>0){let r=u?2:1;for(let o=0;o<g;o++)n=O.multiplyByVector(d,n,n),w=e.subtract(n,t,I),w=e.normalize(w,w),a||(w=e.negate(w,w)),m=l.scaleToGeodeticSurface(n,W),i=v(m,w,c,i,l,s,1,r)}else w=e.subtract(n,t,I),w=e.normalize(w,w),a||(w=e.negate(w,w)),m=l.scaleToGeodeticSurface(n,W),i=v(m,w,c,i,l,s,1,1),r=e.clone(r,we),w=e.subtract(r,t,I),w=e.normalize(w,w),a||(w=e.negate(w,w)),m=l.scaleToGeodeticSurface(r,W),i=v(m,w,c,i,l,s,1,1);return i}R.removeDuplicatesFromShape=function(e){let t=e.length,n=[];for(let r=t-1,o=0;o<t;r=o++){let t=e[r],a=e[o];ee.equals(t,a)||n.push(a)}return n},R.angleIsGreaterThanPi=function(t,n,r,o){let a=new te(r,o),l=a.projectPointOntoPlane(e.add(r,t,X),X),i=a.projectPointOntoPlane(e.add(r,n,Y),Y);return i.x*l.y-i.y*l.x>=0};var Le=new e,qe=new e;R.computePositions=function(t,n,r,o,a){let l=o._ellipsoid,i=De(t,l),c=o._granularity,s=o._cornerType,u=a?Ie(n,r):ge(n,r),d=a?ge(n,r):void 0,m=r.height/2,h=r.width/2,g=t.length,f=[],y=a?[]:void 0,p=Se,E=Te,x=Be,b=Ce,B=ze,O=Ae,P=be,j=Oe,A=ve,z=t[0],S=t[1];b=l.geodeticSurfaceNormal(z,b),p=e.subtract(S,z,p),p=e.normalize(p,p),j=e.cross(b,p,j),j=e.normalize(j,j);let D,T,H=i[0],V=i[1];a&&(y=v(z,j,d,y,l,H+m,1,1)),A=e.clone(z,A),z=S,E=e.negate(p,E);for(let n=1;n<g-1;n++){let r=a?2:1;if(S=t[n+1],z.equals(S)){he("Positions are too close and are considered equivalent with rounding error.");continue}p=e.subtract(S,z,p),p=e.normalize(p,p),b=l.geodeticSurfaceNormal(z,b);let o=e.multiplyByScalar(b,e.dot(p,b),Le);e.subtract(p,o,o),e.normalize(o,o);let d=e.multiplyByScalar(b,e.dot(E,b),qe);if(e.subtract(E,d,d),e.normalize(d,d),Q.equalsEpsilon(Math.abs(e.dot(o,d)),1,Q.EPSILON7))f=v(A,j,u,f,l,H+m,1,1),A=z;else{x=e.add(p,E,x),x=e.normalize(x,x),x=e.cross(x,b,x),x=e.cross(b,x,x),x=e.normalize(x,x);let t=1/Math.max(.25,e.magnitude(e.cross(x,E,I))),n=R.angleIsGreaterThanPi(p,E,z,l);n?(B=e.add(z,e.multiplyByScalar(x,t*h,x),B),O=e.add(B,e.multiplyByScalar(j,h,O),O),w[0]=e.clone(A,w[0]),w[1]=e.clone(O,w[1]),D=ne(w,H+m,V+m,c),T=_.generateArc({positions:w,granularity:c,ellipsoid:l}),f=ce(T,j,u,f,l,D,1),j=e.cross(b,p,j),j=e.normalize(j,j),P=e.add(B,e.multiplyByScalar(j,h,P),P),s===G.ROUNDED||s===G.BEVELED?xe(B,O,P,s,n,l,f,u,V+m,a):(x=e.negate(x,x),f=v(z,x,u,f,l,V+m,t,r)),A=e.clone(P,A)):(B=e.add(z,e.multiplyByScalar(x,t*h,x),B),O=e.add(B,e.multiplyByScalar(j,-h,O),O),w[0]=e.clone(A,w[0]),w[1]=e.clone(O,w[1]),D=ne(w,H+m,V+m,c),T=_.generateArc({positions:w,granularity:c,ellipsoid:l}),f=ce(T,j,u,f,l,D,1),j=e.cross(b,p,j),j=e.normalize(j,j),P=e.add(B,e.multiplyByScalar(j,-h,P),P),s===G.ROUNDED||s===G.BEVELED?xe(B,O,P,s,n,l,f,u,V+m,a):f=v(z,x,u,f,l,V+m,t,r),A=e.clone(P,A)),E=e.negate(p,E)}H=V,V=i[n+1],z=S}w[0]=e.clone(A,w[0]),w[1]=e.clone(z,w[1]),D=ne(w,H+m,V+m,c),T=_.generateArc({positions:w,granularity:c,ellipsoid:l}),f=ce(T,j,u,f,l,D,1),a&&(y=v(z,j,d,y,l,V+m,1,1)),g=f.length;let N=a?g+y.length:g,k=new Float64Array(N);return k.set(f),a&&k.set(y,g),k};var ct=R;export{G as a,he as b,ct 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{a as c,c as x}from"./chunk-2AIOP76V.js";import{a as h}from"./chunk-IAE6APK2.js";import{a as u}from"./chunk-3E7FIXV7.js";import{a as d}from"./chunk-NZBME2JK.js";import{f as n}from"./chunk-6DLS2UKD.js";var s=class t{constructor(t){this._ellipsoid=t??x.WGS84,this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}get ellipsoid(){return this._ellipsoid}static mercatorAngleToGeodeticLatitude(t){return u.PI_OVER_TWO-2*Math.atan(Math.exp(-t))}static geodeticLatitudeToMercatorAngle(e){e>t.MaximumLatitude?e=t.MaximumLatitude:e<-t.MaximumLatitude&&(e=-t.MaximumLatitude);let i=Math.sin(e);return.5*Math.log((1+i)/(1-i))}project(e,i){let a=this._semimajorAxis,r=e.longitude*a,o=t.geodeticLatitudeToMercatorAngle(e.latitude)*a,s=e.height;return n(i)?(i.x=r,i.y=o,i.z=s,i):new h(r,o,s)}unproject(e,i){if(!n(e))throw new d("cartesian is required");let a=this._oneOverSemimajorAxis,r=e.x*a,o=t.mercatorAngleToGeodeticLatitude(e.y*a),s=e.z;return n(i)?(i.longitude=r,i.latitude=o,i.height=s,i):new c(r,o,s)}};s.MaximumLatitude=s.mercatorAngleToGeodeticLatitude(Math.PI);var L=s;export{L as a};
|
|
@@ -0,0 +1,66 @@
|
|
|
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 mt,b as N}from"./chunk-BPABSUDY.js";import{a as de}from"./chunk-G3GDHHWO.js";import{a as ve,b as se,c as Ce,d as nt}from"./chunk-2AIOP76V.js";import{a as v,b as k,c as we}from"./chunk-IAE6APK2.js";import{a as _}from"./chunk-3E7FIXV7.js";import{a as T,b as l}from"./chunk-NZBME2JK.js";import{a as dt,c as pt,d as We,f as h}from"./chunk-6DLS2UKD.js";var Sn=pt(((e,t)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */!function(r){var n="object"==typeof e&&e&&!e.nodeType&&e,o="object"==typeof t&&t&&!t.nodeType&&t,s="object"==typeof global&&global;(s.global===s||s.window===s||s.self===s)&&(r=s);var a,i,u=2147483647,l=36,c=1,h=26,p=38,f=700,d=72,m=128,y="-",g=/^xn--/,v=/[^\x20-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,O={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},_=l-c,b=Math.floor,E=String.fromCharCode;function T(e){throw new RangeError(O[e])}function x(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function q(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+x((e=e.replace(w,".")).split("."),t).join(".")}function A(e){for(var t,r,n=[],o=0,s=e.length;o<s;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<s?56320==(64512&(r=e.charCodeAt(o++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),o--):n.push(t);return n}function S(e){return x(e,(function(e){var t="";return e>65535&&(t+=E((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=E(e)})).join("")}function I(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:l}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function R(e,t,r){var n=0;for(e=r?b(e/f):e>>1,e+=b(e/t);e>_*h>>1;n+=l)e=b(e/_);return b(n+(_+1)*e/(e+p))}function C(e){var t,r,n,o,s,a,i,p,f,g,v=[],w=e.length,O=0,_=m,E=d;for((r=e.lastIndexOf(y))<0&&(r=0),n=0;n<r;++n)e.charCodeAt(n)>=128&&T("not-basic"),v.push(e.charCodeAt(n));for(o=r>0?r+1:0;o<w;){for(s=O,a=1,i=l;o>=w&&T("invalid-input"),((p=I(e.charCodeAt(o++)))>=l||p>b((u-O)/a))&&T("overflow"),O+=p*a,!(p<(f=i<=E?c:i>=E+h?h:i-E));i+=l)a>b(u/(g=l-f))&&T("overflow"),a*=g;E=R(O-s,t=v.length+1,0==s),b(O/t)>u-_&&T("overflow"),_+=b(O/t),O%=t,v.splice(O++,0,_)}return S(v)}function M(e){var t,r,n,o,s,a,i,p,f,g,v,w,O,_,x,q=[];for(w=(e=A(e)).length,t=m,r=0,s=d,a=0;a<w;++a)(v=e[a])<128&&q.push(E(v));for(n=o=q.length,o&&q.push(y);n<w;){for(i=u,a=0;a<w;++a)(v=e[a])>=t&&v<i&&(i=v);for(i-t>b((u-r)/(O=n+1))&&T("overflow"),r+=(i-t)*O,t=i,a=0;a<w;++a)if((v=e[a])<t&&++r>u&&T("overflow"),v==t){for(p=r,f=l;!(p<(g=f<=s?c:f>=s+h?h:f-s));f+=l)x=p-g,_=l-g,q.push(E(P(g+x%_,0))),p=b(x/_);q.push(E(P(p,0))),s=R(r,O,n==o),r=0,++n}++r,++t}return q.join("")}if(a={version:"1.3.2",ucs2:{decode:A,encode:S},decode:C,encode:M,toASCII:function(e){return q(e,(function(e){return v.test(e)?"xn--"+M(e):e}))},toUnicode:function(e){return q(e,(function(e){return g.test(e)?C(e.slice(4).toLowerCase()):e}))}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",(function(){return a}));else if(n&&o)if(t.exports==n)o.exports=a;else for(i in a)a.hasOwnProperty(i)&&(n[i]=a[i]);else r.punycode=a}(e)})),En=pt(((e,t)=>{
|
|
26
|
+
/*!
|
|
27
|
+
* URI.js - Mutating URLs
|
|
28
|
+
* IPv6 Support
|
|
29
|
+
*
|
|
30
|
+
* Version: 1.19.11
|
|
31
|
+
*
|
|
32
|
+
* Author: Rodney Rehm
|
|
33
|
+
* Web: http://medialize.github.io/URI.js/
|
|
34
|
+
*
|
|
35
|
+
* Licensed under
|
|
36
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
37
|
+
*
|
|
38
|
+
*/
|
|
39
|
+
!function(e,r){"use strict";"object"==typeof t&&t.exports?t.exports=r():"function"==typeof define&&define.amd?define(r):e.IPv6=r(e)}(e,(function(e){"use strict";var t=e&&e.IPv6;return{best:function(e){var t,r=e.toLowerCase().split(":"),n=r.length,o=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[n-1]&&""===r[n-2]&&r.pop(),-1!==r[(n=r.length)-1].indexOf(".")&&(o=7),t=0;t<n&&""!==r[t];t++);if(t<o)for(r.splice(t,1,"0000");r.length<o;)r.splice(t,0,"0000");for(var s,a=0;a<o;a++){s=r[a].split("");for(var i=0;i<3&&"0"===s[0]&&s.length>1;i++)s.splice(0,1);r[a]=s.join("")}var u=-1,l=0,c=0,h=-1,p=!1;for(a=0;a<o;a++)p?"0"===r[a]?c+=1:(p=!1,c>l&&(u=h,l=c)):"0"===r[a]&&(p=!0,h=a,c=1);c>l&&(u=h,l=c),l>1&&r.splice(u,l,""),n=r.length;var f="";for(""===r[0]&&(f=":"),a=0;a<n&&(f+=r[a],a!==n-1);a++)f+=":";return""===r[n-1]&&(f+=":"),f},noConflict:function(){return e.IPv6===this&&(e.IPv6=t),this}}}))})),xn=pt(((e,t)=>{
|
|
40
|
+
/*!
|
|
41
|
+
* URI.js - Mutating URLs
|
|
42
|
+
* Second Level Domain (SLD) Support
|
|
43
|
+
*
|
|
44
|
+
* Version: 1.19.11
|
|
45
|
+
*
|
|
46
|
+
* Author: Rodney Rehm
|
|
47
|
+
* Web: http://medialize.github.io/URI.js/
|
|
48
|
+
*
|
|
49
|
+
* Licensed under
|
|
50
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
51
|
+
*
|
|
52
|
+
*/
|
|
53
|
+
!function(e,r){"use strict";"object"==typeof t&&t.exports?t.exports=r():"function"==typeof define&&define.amd?define(r):e.SecondLevelDomains=r(e)}(e,(function(e){"use strict";var t=e&&e.SecondLevelDomains,r={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return!1;var o=r.list[e.slice(t+1)];return!!o&&o.indexOf(" "+e.slice(n+1,t)+" ")>=0},is:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return!1;if(e.lastIndexOf(".",t-1)>=0)return!1;var n=r.list[e.slice(t+1)];return!!n&&n.indexOf(" "+e.slice(0,t)+" ")>=0},get:function(e){var t=e.lastIndexOf(".");if(t<=0||t>=e.length-1)return null;var n=e.lastIndexOf(".",t-1);if(n<=0||n>=t-1)return null;var o=r.list[e.slice(t+1)];return!o||o.indexOf(" "+e.slice(n+1,t)+" ")<0?null:e.slice(n+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return r}))})),Ne=pt(((e,t)=>{
|
|
54
|
+
/*!
|
|
55
|
+
* URI.js - Mutating URLs
|
|
56
|
+
*
|
|
57
|
+
* Version: 1.19.11
|
|
58
|
+
*
|
|
59
|
+
* Author: Rodney Rehm
|
|
60
|
+
* Web: http://medialize.github.io/URI.js/
|
|
61
|
+
*
|
|
62
|
+
* Licensed under
|
|
63
|
+
* MIT License http://www.opensource.org/licenses/mit-license
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
!function(e,r){"use strict";"object"==typeof t&&t.exports?t.exports=r(Sn(),En(),xn()):"function"==typeof define&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],r):e.URI=r(e.punycode,e.IPv6,e.SecondLevelDomains,e)}(e,(function(e,t,r,n){"use strict";var o=n&&n.URI;function s(e,t){var r=arguments.length>=1;if(!(this instanceof s))return r?arguments.length>=2?new s(e,t):new s(e):new s;if(void 0===e){if(r)throw new TypeError("undefined is not a valid argument for URI");e=typeof location<"u"?location.href+"":""}if(null===e&&r)throw new TypeError("null is not a valid argument for URI");return this.href(e),void 0!==t?this.absoluteTo(t):this}s.version="1.19.11";var a=s.prototype,i=Object.prototype.hasOwnProperty;function u(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(e){return void 0===e?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function c(e){return"Array"===l(e)}function h(e,t){var r,n,o={};if("RegExp"===l(t))o=null;else if(c(t))for(r=0,n=t.length;r<n;r++)o[t[r]]=!0;else o[t]=!0;for(r=0,n=e.length;r<n;r++){(o&&void 0!==o[e[r]]||!o&&t.test(e[r]))&&(e.splice(r,1),n--,r--)}return e}function p(e,t){var r,n;if(c(t)){for(r=0,n=t.length;r<n;r++)if(!p(e,t[r]))return!1;return!0}var o=l(t);for(r=0,n=e.length;r<n;r++)if("RegExp"===o){if("string"==typeof e[r]&&e[r].match(t))return!0}else if(e[r]===t)return!0;return!1}function f(e,t){if(!c(e)||!c(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,n=e.length;r<n;r++)if(e[r]!==t[r])return!1;return!0}function d(e){return e.replace(/^\/+|\/+$/g,"")}function m(e){return escape(e)}function y(e){return encodeURIComponent(e).replace(/[!'()*]/g,m).replace(/\*/g,"%2A")}s._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:s.preventInvalidHostname,duplicateQueryParameters:s.duplicateQueryParameters,escapeQuerySpace:s.escapeQuerySpace}},s.preventInvalidHostname=!1,s.duplicateQueryParameters=!1,s.escapeQuerySpace=!0,s.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,s.idn_expression=/[^a-z0-9\._-]/i,s.punycode_expression=/(xn--)/i,s.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,s.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,s.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,s.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},s.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,s.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},s.hostProtocols=["http","https"],s.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,s.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},s.getDomAttribute=function(e){if(e&&e.nodeName){var t=e.nodeName.toLowerCase();if("input"!==t||"image"===e.type)return s.domAttributes[t]}},s.encode=y,s.decode=decodeURIComponent,s.iso8859=function(){s.encode=escape,s.decode=unescape},s.unicode=function(){s.encode=y,s.decode=decodeURIComponent},s.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},s.encodeQuery=function(e,t){var r=s.encode(e+"");return void 0===t&&(t=s.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},s.decodeQuery=function(e,t){e+="",void 0===t&&(t=s.escapeQuerySpace);try{return s.decode(t?e.replace(/\+/g,"%20"):e)}catch{return e}};var g,v={encode:"encode",decode:"decode"},w=function(e,t){return function(r){try{return s[t](r+"").replace(s.characters[e][t].expression,(function(r){return s.characters[e][t].map[r]}))}catch{return r}}};for(g in v)s[g+"PathSegment"]=w("pathname",v[g]),s[g+"UrnPathSegment"]=w("urnpath",v[g]);var O=function(e,t,r){return function(n){var o;o=r?function(e){return s[t](s[r](e))}:s[t];for(var a=(n+"").split(e),i=0,u=a.length;i<u;i++)a[i]=o(a[i]);return a.join(e)}};function _(e){return function(t,r){return void 0===t?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}}function b(e,t){return function(r,n){return void 0===r?this._parts[e]||"":(null!==r&&((r+="").charAt(0)===t&&(r=r.substring(1))),this._parts[e]=r,this.build(!n),this)}}s.decodePath=O("/","decodePathSegment"),s.decodeUrnPath=O(":","decodeUrnPathSegment"),s.recodePath=O("/","encodePathSegment","decode"),s.recodeUrnPath=O(":","encodeUrnPathSegment","decode"),s.encodeReserved=w("reserved","encode"),s.parse=function(e,t){var r;return t||(t={preventInvalidHostname:s.preventInvalidHostname}),(r=(e=(e=e.replace(s.leading_whitespace_expression,"")).replace(s.ascii_tab_whitespace,"")).indexOf("#"))>-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),(r=e.indexOf("?"))>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),"//"===(e=(e=e.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://")).replace(/^[/\\]{2,}/i,"//")).substring(0,2)?(t.protocol=null,e=e.substring(2),e=s.parseAuthority(e,t)):(r=e.indexOf(":"))>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(s.protocol_expression)?t.protocol=void 0:"//"===e.substring(r+1,r+3).replace(/\\/g,"/")?(e=e.substring(r+3),e=s.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0)),t.path=e,t},s.parseHost=function(e,t){e||(e="");var r,n,o=(e=e.replace(/\\/g,"/")).indexOf("/");if(-1===o&&(o=e.length),"["===e.charAt(0))r=e.indexOf("]"),t.hostname=e.substring(1,r)||null,t.port=e.substring(r+2,o)||null,"/"===t.port&&(t.port=null);else{var a=e.indexOf(":"),i=e.indexOf("/"),u=e.indexOf(":",a+1);-1!==u&&(-1===i||u<i)?(t.hostname=e.substring(0,o)||null,t.port=null):(n=e.substring(0,o).split(":"),t.hostname=n[0]||null,t.port=n[1]||null)}return t.hostname&&"/"!==e.substring(o).charAt(0)&&(o++,e="/"+e),t.preventInvalidHostname&&s.ensureValidHostname(t.hostname,t.protocol),t.port&&s.ensureValidPort(t.port),e.substring(o)||"/"},s.parseAuthority=function(e,t){return e=s.parseUserinfo(e,t),s.parseHost(e,t)},s.parseUserinfo=function(e,t){var r=e;-1!==e.indexOf("\\")&&(e=e.replace(/\\/g,"/"));var n,o=e.indexOf("/"),a=e.lastIndexOf("@",o>-1?o:e.length-1);return a>-1&&(-1===o||a<o)?(n=e.substring(0,a).split(":"),t.username=n[0]?s.decode(n[0]):null,n.shift(),t.password=n[0]?s.decode(n.join(":")):null,e=r.substring(a+1)):(t.username=null,t.password=null),e},s.parseQuery=function(e,t){if(!e)return{};if(!(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var r,n,o,a={},u=e.split("&"),l=u.length,c=0;c<l;c++)r=u[c].split("="),n=s.decodeQuery(r.shift(),t),o=r.length?s.decodeQuery(r.join("="),t):null,"__proto__"!==n&&(i.call(a,n)?(("string"==typeof a[n]||null===a[n])&&(a[n]=[a[n]]),a[n].push(o)):a[n]=o);return a},s.build=function(e){var t="",r=!1;return e.protocol&&(t+=e.protocol+":"),!e.urn&&(t||e.hostname)&&(t+="//",r=!0),t+=s.buildAuthority(e)||"","string"==typeof e.path&&("/"!==e.path.charAt(0)&&r&&(t+="/"),t+=e.path),"string"==typeof e.query&&e.query&&(t+="?"+e.query),"string"==typeof e.fragment&&e.fragment&&(t+="#"+e.fragment),t},s.buildHost=function(e){var t="";return e.hostname?(s.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname,e.port&&(t+=":"+e.port),t):""},s.buildAuthority=function(e){return s.buildUserinfo(e)+s.buildHost(e)},s.buildUserinfo=function(e){var t="";return e.username&&(t+=s.encode(e.username)),e.password&&(t+=":"+s.encode(e.password)),t&&(t+="@"),t},s.buildQuery=function(e,t,r){var n,o,a,u,l="";for(o in e)if("__proto__"!==o&&i.call(e,o))if(c(e[o]))for(n={},a=0,u=e[o].length;a<u;a++)void 0!==e[o][a]&&void 0===n[e[o][a]+""]&&(l+="&"+s.buildQueryParameter(o,e[o][a],r),!0!==t&&(n[e[o][a]+""]=!0));else void 0!==e[o]&&(l+="&"+s.buildQueryParameter(o,e[o],r));return l.substring(1)},s.buildQueryParameter=function(e,t,r){return s.encodeQuery(e,r)+(null!==t?"="+s.encodeQuery(t,r):"")},s.addQuery=function(e,t,r){if("object"==typeof t)for(var n in t)i.call(t,n)&&s.addQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===e[t])return void(e[t]=r);"string"==typeof e[t]&&(e[t]=[e[t]]),c(r)||(r=[r]),e[t]=(e[t]||[]).concat(r)}},s.setQuery=function(e,t,r){if("object"==typeof t)for(var n in t)i.call(t,n)&&s.setQuery(e,n,t[n]);else{if("string"!=typeof t)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");e[t]=void 0===r?null:r}},s.removeQuery=function(e,t,r){var n,o,a;if(c(t))for(n=0,o=t.length;n<o;n++)e[t[n]]=void 0;else if("RegExp"===l(t))for(a in e)t.test(a)&&(e[a]=void 0);else if("object"==typeof t)for(a in t)i.call(t,a)&&s.removeQuery(e,a,t[a]);else{if("string"!=typeof t)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==r?"RegExp"===l(r)?!c(e[t])&&r.test(e[t])?e[t]=void 0:e[t]=h(e[t],r):e[t]!==String(r)||c(r)&&1!==r.length?c(e[t])&&(e[t]=h(e[t],r)):e[t]=void 0:e[t]=void 0}},s.hasQuery=function(e,t,r,n){switch(l(t)){case"String":break;case"RegExp":for(var o in e)if(i.call(e,o)&&t.test(o)&&(void 0===r||s.hasQuery(e,o,r)))return!0;return!1;case"Object":for(var a in t)if(i.call(t,a)&&!s.hasQuery(e,a,t[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(l(r)){case"Undefined":return t in e;case"Boolean":return r===!!(c(e[t])?e[t].length:e[t]);case"Function":return!!r(e[t],t,e);case"Array":return!!c(e[t])&&(n?p:f)(e[t],r);case"RegExp":return c(e[t])?!!n&&p(e[t],r):!(!e[t]||!e[t].match(r));case"Number":r=String(r);case"String":return c(e[t])?!!n&&p(e[t],r):e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},s.joinPaths=function(){for(var e=[],t=[],r=0,n=0;n<arguments.length;n++){var o=new s(arguments[n]);e.push(o);for(var a=o.segment(),i=0;i<a.length;i++)"string"==typeof a[i]&&t.push(a[i]),a[i]&&r++}if(!t.length||!r)return new s("");var u=new s("").segment(t);return(""===e[0].path()||"/"===e[0].path().slice(0,1))&&u.path("/"+u.path()),u.normalize()},s.commonPath=function(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r++)if(e.charAt(r)!==t.charAt(r)){r--;break}return r<1?e.charAt(0)===t.charAt(0)&&"/"===e.charAt(0)?"/":"":(("/"!==e.charAt(r)||"/"!==t.charAt(r))&&(r=e.substring(0,r).lastIndexOf("/")),e.substring(0,r+1))},s.withinString=function(e,t,r){r||(r={});var n=r.start||s.findUri.start,o=r.end||s.findUri.end,a=r.trim||s.findUri.trim,i=r.parens||s.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(n.lastIndex=0;;){var l=n.exec(e);if(!l)break;var c=l.index;if(r.ignoreHtml){var h=e.slice(Math.max(c-3,0),c);if(h&&u.test(h))continue}for(var p=c+e.slice(c).search(o),f=e.slice(c,p),d=-1;;){var m=i.exec(f);if(!m)break;var y=m.index+m[0].length;d=Math.max(d,y)}if(!((f=d>-1?f.slice(0,d)+f.slice(d).replace(a,""):f.replace(a,"")).length<=l[0].length||r.ignore&&r.ignore.test(f))){var g=t(f,c,p=c+f.length,e);if(void 0===g){n.lastIndex=p;continue}g=String(g),e=e.slice(0,c)+g+e.slice(p),n.lastIndex=c+g.length}}return n.lastIndex=0,e},s.ensureValidHostname=function(t,r){var n=!!t,o=!1;if(!!r&&(o=p(s.hostProtocols,r)),o&&!n)throw new TypeError("Hostname cannot be empty, if protocol is "+r);if(t&&t.match(s.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(t).match(s.invalid_hostname_characters))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-:_]')}},s.ensureValidPort=function(e){if(e){var t=Number(e);if(!(function(e){return/^[0-9]+$/.test(e)}(t)&&t>0&&t<65536))throw new TypeError('Port "'+e+'" is not a valid port')}},s.noConflict=function(e){if(e){var t={URI:this.noConflict()};return n.URITemplate&&"function"==typeof n.URITemplate.noConflict&&(t.URITemplate=n.URITemplate.noConflict()),n.IPv6&&"function"==typeof n.IPv6.noConflict&&(t.IPv6=n.IPv6.noConflict()),n.SecondLevelDomains&&"function"==typeof n.SecondLevelDomains.noConflict&&(t.SecondLevelDomains=n.SecondLevelDomains.noConflict()),t}return n.URI===this&&(n.URI=o),this},a.build=function(e){return!0===e?this._deferred_build=!0:(void 0===e||this._deferred_build)&&(this._string=s.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new s(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=_("protocol"),a.username=_("username"),a.password=_("password"),a.hostname=_("hostname"),a.port=_("port"),a.query=b("query","?"),a.fragment=b("fragment","#"),a.search=function(e,t){var r=this.query(e,t);return"string"==typeof r&&r.length?"?"+r:r},a.hash=function(e,t){var r=this.fragment(e,t);return"string"==typeof r&&r.length?"#"+r:r},a.pathname=function(e,t){if(void 0===e||!0===e){var r=this._parts.path||(this._parts.hostname?"/":"");return e?(this._parts.urn?s.decodeUrnPath:s.decodePath)(r):r}return this._parts.urn?this._parts.path=e?s.recodeUrnPath(e):"":this._parts.path=e?s.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var r;if(void 0===e)return this.toString();this._string="",this._parts=s._parts();var n=e instanceof s,o="object"==typeof e&&(e.hostname||e.path||e.pathname);e.nodeName&&(e=e[s.getDomAttribute(e)]||"",o=!1);if(!n&&o&&void 0!==e.pathname&&(e=e.toString()),"string"==typeof e||e instanceof String)this._parts=s.parse(String(e),this._parts);else{if(!n&&!o)throw new TypeError("invalid input");var a=n?e._parts:e;for(r in a)"query"!==r&&i.call(this._parts,r)&&(this._parts[r]=a[r]);a.query&&this.query(a.query,!1)}return this.build(!t),this},a.is=function(e){var t=!1,n=!1,o=!1,a=!1,i=!1,u=!1,l=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,n=s.ip4_expression.test(this._parts.hostname),o=s.ip6_expression.test(this._parts.hostname),i=(a=!(t=n||o))&&r&&r.has(this._parts.hostname),u=a&&s.idn_expression.test(this._parts.hostname),l=a&&s.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return i;case"ip":return t;case"ip4":case"ipv4":case"inet4":return n;case"ip6":case"ipv6":case"inet6":return o;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var E=a.protocol,T=a.port,x=a.hostname;a.protocol=function(e,t){if(e&&!(e=e.replace(/:(\/\/)?$/,"")).match(s.protocol_expression))throw new TypeError('Protocol "'+e+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return E.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){return this._parts.urn?void 0===e?"":this:(void 0!==e&&(0===e&&(e=null),e&&(":"===(e+="").charAt(0)&&(e=e.substring(1)),s.ensureValidPort(e))),T.call(this,e,t))},a.hostname=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0!==e){var r={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==s.parseHost(e,r))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');e=r.hostname,this._parts.preventInvalidHostname&&s.ensureValidHostname(e,this._parts.protocol)}return x.call(this,e,t)},a.origin=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=this.protocol();return this.authority()?(r?r+"://":"")+this.authority():""}var n=s(e);return this.protocol(n.protocol()).authority(n.authority()).build(!t),this},a.host=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?s.buildHost(this._parts):"";if("/"!==s.parseHost(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.authority=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e)return this._parts.hostname?s.buildAuthority(this._parts):"";if("/"!==s.parseAuthority(e,this._parts))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]');return this.build(!t),this},a.userinfo=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){var r=s.buildUserinfo(this._parts);return r&&r.substring(0,r.length-1)}return"@"!==e[e.length-1]&&(e+="@"),s.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var r;return void 0===e?this.path()+this.search()+this.hash():(r=s.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}var n=this._parts.hostname.length-this.domain().length,o=this._parts.hostname.substring(0,n),a=new RegExp("^"+u(o));if(e&&"."!==e.charAt(e.length-1)&&(e+="."),-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");return e&&s.ensureValidHostname(e,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,e),this.build(!t),this},a.domain=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var n=this._parts.hostname.length-this.tld(t).length-1;return n=this._parts.hostname.lastIndexOf(".",n-1)+1,this._parts.hostname.substring(n)||""}if(!e)throw new TypeError("cannot set domain empty");if(-1!==e.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(s.ensureValidHostname(e,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var o=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(o,e)}return this.build(!t),this},a.tld=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("boolean"==typeof e&&(t=e,e=void 0),void 0===e){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.lastIndexOf("."),o=this._parts.hostname.substring(n+1);return!0!==t&&r&&r.list[o.toLowerCase()]&&r.get(this._parts.hostname)||o}var s;if(!e)throw new TypeError("cannot set TLD empty");if(e.match(/[^a-zA-Z0-9-]/)){if(!r||!r.is(e))throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');s=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,e)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");s=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,e)}return this.build(!t),this},a.directory=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var r=this._parts.path.length-this.filename().length-1,n=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?s.decodePath(n):n}var o=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,o),i=new RegExp("^"+u(a));return this.is("relative")||(e||(e="/"),"/"!==e.charAt(0)&&(e="/"+e)),e&&"/"!==e.charAt(e.length-1)&&(e+="/"),e=s.recodePath(e),this._parts.path=this._parts.path.replace(i,e),this.build(!t),this},a.filename=function(e,t){if(this._parts.urn)return void 0===e?"":this;if("string"!=typeof e){if(!this._parts.path||"/"===this._parts.path)return"";var r=this._parts.path.lastIndexOf("/"),n=this._parts.path.substring(r+1);return e?s.decodePathSegment(n):n}var o=!1;"/"===e.charAt(0)&&(e=e.substring(1)),e.match(/\.?\//)&&(o=!0);var a=new RegExp(u(this.filename())+"$");return e=s.recodePath(e),this._parts.path=this._parts.path.replace(a,e),o?this.normalizePath(t):this.build(!t),this},a.suffix=function(e,t){if(this._parts.urn)return void 0===e?"":this;if(void 0===e||!0===e){if(!this._parts.path||"/"===this._parts.path)return"";var r,n,o=this.filename(),a=o.lastIndexOf(".");return-1===a?"":(r=o.substring(a+1),n=/^[a-z0-9%]+$/i.test(r)?r:"",e?s.decodePathSegment(n):n)}"."===e.charAt(0)&&(e=e.substring(1));var i,l=this.suffix();if(l)i=e?new RegExp(u(l)+"$"):new RegExp(u("."+l)+"$");else{if(!e)return this;this._parts.path+="."+s.recodePath(e)}return i&&(e=s.recodePath(e),this._parts.path=this._parts.path.replace(i,e)),this.build(!t),this},a.segment=function(e,t,r){var n=this._parts.urn?":":"/",o=this.path(),s="/"===o.substring(0,1),a=o.split(n);if(void 0!==e&&"number"!=typeof e&&(r=t,t=e,e=void 0),void 0!==e&&"number"!=typeof e)throw new Error('Bad segment "'+e+'", must be 0-based integer');if(s&&a.shift(),e<0&&(e=Math.max(a.length+e,0)),void 0===t)return void 0===e?a:a[e];if(null===e||void 0===a[e])if(c(t)){a=[];for(var i=0,u=t.length;i<u;i++)!t[i].length&&(!a.length||!a[a.length-1].length)||(a.length&&!a[a.length-1].length&&a.pop(),a.push(d(t[i])))}else(t||"string"==typeof t)&&(t=d(t),""===a[a.length-1]?a[a.length-1]=t:a.push(t));else t?a[e]=d(t):a.splice(e,1);return s&&a.unshift(""),this.path(a.join(n),r)},a.segmentCoded=function(e,t,r){var n,o,a;if("number"!=typeof e&&(r=t,t=e,e=void 0),void 0===t){if(c(n=this.segment(e,t,r)))for(o=0,a=n.length;o<a;o++)n[o]=s.decode(n[o]);else n=void 0!==n?s.decode(n):void 0;return n}if(c(t))for(o=0,a=t.length;o<a;o++)t[o]=s.encode(t[o]);else t="string"==typeof t||t instanceof String?s.encode(t):t;return this.segment(e,t,r)};var q=a.query;return a.query=function(e,t){if(!0===e)return s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof e){var r=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace),n=e.call(this,r);return this._parts.query=s.buildQuery(n||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}return void 0!==e&&"string"!=typeof e?(this._parts.query=s.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):q.call(this,e,t)},a.setQuery=function(e,t,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof e||e instanceof String)n[e]=void 0!==t?t:null;else{if("object"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var o in e)i.call(e,o)&&(n[o]=e[o])}return this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.addQuery=function(e,t,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.addQuery(n,e,void 0===t?null:t),this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.removeQuery=function(e,t,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.removeQuery(n,e,t),this._parts.query=s.buildQuery(n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof e&&(r=t),this.build(!r),this},a.hasQuery=function(e,t,r){var n=s.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return s.hasQuery(n,e,t,r)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(e){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},a.normalizeHostname=function(r){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!r)),this},a.normalizePort=function(e){return"string"==typeof this._parts.protocol&&this._parts.port===s.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},a.normalizePath=function(e){var t=this._parts.path;if(!t)return this;if(this._parts.urn)return this._parts.path=s.recodeUrnPath(this._parts.path),this.build(!e),this;if("/"===this._parts.path)return this;var r,n,o,a="";for("/"!==(t=s.recodePath(t)).charAt(0)&&(r=!0,t="/"+t),("/.."===t.slice(-3)||"/."===t.slice(-2))&&(t+="/"),t=t.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),r&&((a=t.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]));-1!==(n=t.search(/\/\.\.(\/|$)/));)0!==n?(-1===(o=t.substring(0,n).lastIndexOf("/"))&&(o=n),t=t.substring(0,o)+t.substring(n+3)):t=t.substring(3);return r&&this.is("relative")&&(t=a+t.substring(1)),this._parts.path=t,this.build(!e),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(e){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(s.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},a.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var e=s.encode,t=s.decode;s.encode=escape,s.decode=decodeURIComponent;try{this.normalize()}finally{s.encode=e,s.decode=t}return this},a.unicode=function(){var e=s.encode,t=s.decode;s.encode=y,s.decode=unescape;try{this.normalize()}finally{s.encode=e,s.decode=t}return this},a.readable=function(){var t=this.clone();t.username("").password("").normalize();var r="";if(t._parts.protocol&&(r+=t._parts.protocol+"://"),t._parts.hostname&&(t.is("punycode")&&e?(r+=e.toUnicode(t._parts.hostname),t._parts.port&&(r+=":"+t._parts.port)):r+=t.host()),t._parts.hostname&&t._parts.path&&"/"!==t._parts.path.charAt(0)&&(r+="/"),r+=t.path(!0),t._parts.query){for(var n="",o=0,a=t._parts.query.split("&"),i=a.length;o<i;o++){var u=(a[o]||"").split("=");n+="&"+s.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(n+="="+s.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}r+="?"+n.substring(1)}return r+=s.decodeQuery(t.hash(),!0)},a.absoluteTo=function(e){var t,r,n,o=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof s||(e=new s(e)),o._parts.protocol||(o._parts.protocol=e._parts.protocol,this._parts.hostname))return o;for(r=0;n=a[r];r++)o._parts[n]=e._parts[n];return o._parts.path?(".."===o._parts.path.substring(-2)&&(o._parts.path+="/"),"/"!==o.path().charAt(0)&&(t=(t=e.directory())||(0===e.path().indexOf("/")?"/":""),o._parts.path=(t?t+"/":"")+o._parts.path,o.normalizePath())):(o._parts.path=e._parts.path,o._parts.query||(o._parts.query=e._parts.query)),o.build(),o},a.relativeTo=function(e){var t,r,n,o,a,i=this.clone().normalize();if(i._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new s(e).normalize(),t=i._parts,r=e._parts,o=i.path(),a=e.path(),"/"!==o.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(t.protocol===r.protocol&&(t.protocol=null),t.username!==r.username||t.password!==r.password||null!==t.protocol||null!==t.username||null!==t.password)return i.build();if(t.hostname!==r.hostname||t.port!==r.port)return i.build();if(t.hostname=null,t.port=null,o===a)return t.path="",i.build();if(!(n=s.commonPath(o,a)))return i.build();var u=r.path.substring(n.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return t.path=u+t.path.substring(n.length)||"./",i.build()},a.equals=function(e){var t,r,n,o,a,u=this.clone(),l=new s(e),h={};if(u.normalize(),l.normalize(),u.toString()===l.toString())return!0;if(n=u.query(),o=l.query(),u.query(""),l.query(""),u.toString()!==l.toString()||n.length!==o.length)return!1;for(a in t=s.parseQuery(n,this._parts.escapeQuerySpace),r=s.parseQuery(o,this._parts.escapeQuerySpace),t)if(i.call(t,a)){if(c(t[a])){if(!f(t[a],r[a]))return!1}else if(t[a]!==r[a])return!1;h[a]=!0}for(a in r)if(i.call(r,a)&&!h[a])return!1;return!0},a.preventInvalidHostname=function(e){return this._parts.preventInvalidHostname=!!e,this},a.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},a.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},s}))}));function yn(e,t,r){r=r??!1;let n,o,s,a={},i=h(e),u=h(t);if(i)for(n in e)e.hasOwnProperty(n)&&(o=e[n],u&&r&&"object"==typeof o&&t.hasOwnProperty(n)?(s=t[n],a[n]="object"==typeof s?yn(o,s,r):o):a[n]=o);if(u)for(n in t)t.hasOwnProperty(n)&&!a.hasOwnProperty(n)&&(s=t[n],a[n]=s);return a}var Re=yn;function Er(e,t,r){l.defined("array",e),l.defined("itemToFind",t),l.defined("comparator",r);let n,o,s=0,a=e.length-1;for(;s<=a;)if(n=~~((s+a)/2),o=r(e[n],t),o<0)s=n+1;else{if(!(o>0))return n;a=n-1}return~(a+1)}var je=Er;function Tr(e,t,r,n,o){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=r,this.yPoleOffset=n,this.ut1MinusUtc=o}var rt=Tr;function xr(e){if(null===e||isNaN(e))throw new T("year is required and must be a number.");return e%4==0&&e%100!=0||e%400==0}var ot=xr,gn=[31,28,31,30,31,30,31,31,30,31,30,31];function Ar(e,t,r,n,o,s,a,i){e=e??1,t=t??1,r=r??1,n=n??0,o=o??0,s=s??0,a=a??0,i=i??!1,l.typeOf.number.greaterThanOrEquals("Year",e,1),l.typeOf.number.lessThanOrEquals("Year",e,9999),l.typeOf.number.greaterThanOrEquals("Month",t,1),l.typeOf.number.lessThanOrEquals("Month",t,12),l.typeOf.number.greaterThanOrEquals("Day",r,1),l.typeOf.number.lessThanOrEquals("Day",r,31),l.typeOf.number.greaterThanOrEquals("Hour",n,0),l.typeOf.number.lessThanOrEquals("Hour",n,23),l.typeOf.number.greaterThanOrEquals("Minute",o,0),l.typeOf.number.lessThanOrEquals("Minute",o,59),l.typeOf.bool("IsLeapSecond",i),l.typeOf.number.greaterThanOrEquals("Second",s,0),l.typeOf.number.lessThanOrEquals("Second",s,i?60:59),l.typeOf.number.greaterThanOrEquals("Millisecond",a,0),l.typeOf.number.lessThan("Millisecond",a,1e3),function(){let n=2===t&&ot(e)?gn[t-1]+1:gn[t-1];if(r>n)throw new T("Month and Day represents invalid date")}(),this.year=e,this.month=t,this.day=r,this.hour=n,this.minute=o,this.second=s,this.millisecond=a,this.isLeapSecond=i}var yt=Ar;function Cr(e,t){this.julianDate=e,this.offset=t}var B=Cr,wn={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:2400000.5};Object.freeze(wn);var W=wn,bn={UTC:0,TAI:1};Object.freeze(bn);var q=bn,On=new yt,gt=[31,28,31,30,31,30,31,31,30,31,30,31],wt=29;function Wt(e,t){return U.compare(e.julianDate,t.julianDate)}var $e=new B;function bt(e){$e.julianDate=e;let t=U.leapSeconds,r=je(t,$e,Wt);r<0&&(r=~r),r>=t.length&&(r=t.length-1);let n=t[r].offset;r>0&&U.secondsDifference(t[r].julianDate,e)>n&&(r--,n=t[r].offset),U.addSeconds(e,n,e)}function _n(e,t){$e.julianDate=e;let r=U.leapSeconds,n=je(r,$e,Wt);if(n<0&&(n=~n),0===n)return U.addSeconds(e,-r[0].offset,t);if(n>=r.length)return U.addSeconds(e,-r[n-1].offset,t);let o=U.secondsDifference(r[n].julianDate,e);return 0===o?U.addSeconds(e,-r[n].offset,t):o<=1?void 0:U.addSeconds(e,-r[--n].offset,t)}function Pe(e,t,r){let n=t/W.SECONDS_PER_DAY|0;return e+=n,(t-=W.SECONDS_PER_DAY*n)<0&&(e--,t+=W.SECONDS_PER_DAY),r.dayNumber=e,r.secondsOfDay=t,r}function Ht(e,t,r,n,o,s,a){let i=(t-14)/12|0,u=e+4800+i,l=(1461*u/4|0)+(367*(t-2-12*i)/12|0)-(3*((u+100)/100|0)/4|0)+r-32075;(n-=12)<0&&(n+=24);let c=s+(n*W.SECONDS_PER_HOUR+o*W.SECONDS_PER_MINUTE+a*W.SECONDS_PER_MILLISECOND);return c>=43200&&(l-=1),[l,c]}var Rr=/^(\d{4})$/,Pr=/^(\d{4})-(\d{2})$/,Ir=/^(\d{4})-?(\d{3})$/,Ur=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,Mr=/^(\d{4})-?(\d{2})-?(\d{2})$/,$t=/([Z+\-])?(\d{2})?:?(\d{2})?$/,Dr=/^(\d{2})(\.\d+)?/.source+$t.source,qr=/^(\d{2}):?(\d{2})(\.\d+)?/.source+$t.source,kr=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+$t.source,pe="Invalid ISO 8601 date.",U=class e{constructor(e,t,r){this.dayNumber=void 0,this.secondsOfDay=void 0,e=e??0,t=t??0,r=r??q.UTC;let n=0|e;Pe(n,t+=(e-n)*W.SECONDS_PER_DAY,this),r===q.UTC&&bt(this)}static fromGregorianDate(t,r){if(!(t instanceof yt))throw new T("date must be a valid GregorianDate.");let n=Ht(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond);return h(r)?(Pe(n[0],n[1],r),bt(r),r):new e(n[0],n[1],q.UTC)}static fromDate(t,r){if(!(t instanceof Date)||isNaN(t.getTime()))throw new T("date must be a valid JavaScript Date.");let n=Ht(t.getUTCFullYear(),t.getUTCMonth()+1,t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds());return h(r)?(Pe(n[0],n[1],r),bt(r),r):new e(n[0],n[1],q.UTC)}static fromIso8601(t,r){if("string"!=typeof t)throw new T(pe);let n,o,s,a,i,u=(t=t.replace(",",".")).split("T"),l=1,c=1,p=0,f=0,d=0,m=0,y=u[0],g=u[1];if(!h(y))throw new T(pe);if(u=y.match(Mr),null!==u){if(a=y.split("-").length-1,a>0&&2!==a)throw new T(pe);n=+u[1],l=+u[2],c=+u[3]}else if(u=y.match(Pr),null!==u)n=+u[1],l=+u[2];else if(u=y.match(Rr),null!==u)n=+u[1];else{let e;if(u=y.match(Ir),null!==u){if(n=+u[1],e=+u[2],s=ot(n),e<1||s&&e>366||!s&&e>365)throw new T(pe)}else{if(u=y.match(Ur),null===u)throw new T(pe);{n=+u[1];let t=+u[2],r=+u[3]||0;if(a=y.split("-").length-1,a>0&&(!h(u[3])&&1!==a||h(u[3])&&2!==a))throw new T(pe);e=7*t+r-new Date(Date.UTC(n,0,4)).getUTCDay()-3}}o=new Date(Date.UTC(n,0,1)),o.setUTCDate(e),l=o.getUTCMonth()+1,c=o.getUTCDate()}if(s=ot(n),l<1||l>12||c<1||(2!==l||!s)&&c>gt[l-1]||s&&2===l&&c>wt)throw new T(pe);if(h(g)){if(u=g.match(kr),null!==u){if(a=g.split(":").length-1,a>0&&2!==a&&3!==a)throw new T(pe);p=+u[1],f=+u[2],d=+u[3],m=1e3*+(u[4]||0),i=5}else if(u=g.match(qr),null!==u){if(a=g.split(":").length-1,a>2)throw new T(pe);p=+u[1],f=+u[2],d=60*+(u[3]||0),i=4}else{if(u=g.match(Dr),null===u)throw new T(pe);p=+u[1],f=60*+(u[2]||0),i=3}if(f>=60||d>=61||p>24||24===p&&(f>0||d>0||m>0))throw new T(pe);let e=u[i],t=+u[i+1],r=+(u[i+2]||0);switch(e){case"+":p-=t,f-=r;break;case"-":p+=t,f+=r;break;case"Z":break;default:f+=new Date(Date.UTC(n,l-1,c,p,f)).getTimezoneOffset()}}let v=60===d;for(v&&d--;f>=60;)f-=60,p++;for(;p>=24;)p-=24,c++;for(o=s&&2===l?wt:gt[l-1];c>o;)c-=o,l++,l>12&&(l-=12,n++),o=s&&2===l?wt:gt[l-1];for(;f<0;)f+=60,p--;for(;p<0;)p+=24,c--;for(;c<1;)l--,l<1&&(l+=12,n--),o=s&&2===l?wt:gt[l-1],c+=o;let w=Ht(n,l,c,p,f,d,m);return h(r)?(Pe(w[0],w[1],r),bt(r)):r=new e(w[0],w[1],q.UTC),v&&e.addSeconds(r,1,r),r}static now(t){return e.fromDate(new Date,t)}static toGregorianDate(t,r){if(!h(t))throw new T("julianDate is required.");let n=!1,o=_n(t,Ot);h(o)||(e.addSeconds(t,-1,Ot),o=_n(Ot,Ot),n=!0);let s=o.dayNumber,a=o.secondsOfDay;a>=43200&&(s+=1);let i=s+68569|0,u=4*i/146097|0;i=i-((146097*u+3)/4|0)|0;let l=4e3*(i+1)/1461001|0;i=i-(1461*l/4|0)+31|0;let c=80*i/2447|0,p=i-(2447*c/80|0)|0;i=c/11|0;let f=c+2-12*i|0,d=100*(u-49)+l+i|0,m=a/W.SECONDS_PER_HOUR|0,y=a-m*W.SECONDS_PER_HOUR,g=y/W.SECONDS_PER_MINUTE|0;y-=g*W.SECONDS_PER_MINUTE;let v=0|y,w=(y-v)/W.SECONDS_PER_MILLISECOND;return m+=12,m>23&&(m-=24),n&&(v+=1),h(r)?(r.year=d,r.month=f,r.day=p,r.hour=m,r.minute=g,r.second=v,r.millisecond=w,r.isLeapSecond=n,r):new yt(d,f,p,m,g,v,w,n)}static toDate(t){if(!h(t))throw new T("julianDate is required.");let r=e.toGregorianDate(t,On),n=r.second;return r.isLeapSecond&&(n-=1),new Date(Date.UTC(r.year,r.month-1,r.day,r.hour,r.minute,n,r.millisecond))}static toIso8601(t,r){if(!h(t))throw new T("julianDate is required.");let n,o=e.toGregorianDate(t,On),s=o.year,a=o.month,i=o.day,u=o.hour,l=o.minute,c=o.second,p=o.millisecond;if(1e4===s&&1===a&&1===i&&0===u&&0===l&&0===c&&0===p&&(s=9999,a=12,i=31,u=24),!h(r)&&0!==p){let e=.01*p;return n=e<1e-6?e.toFixed(20).replace(".","").replace(/0+$/,""):e.toString().replace(".",""),`${s.toString().padStart(4,"0")}-${a.toString().padStart(2,"0")}-${i.toString().padStart(2,"0")}T${u.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${n}Z`}return h(r)&&0!==r?(n=(.01*p).toFixed(r).replace(".","").slice(0,r),`${s.toString().padStart(4,"0")}-${a.toString().padStart(2,"0")}-${i.toString().padStart(2,"0")}T${u.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}.${n}Z`):`${s.toString().padStart(4,"0")}-${a.toString().padStart(2,"0")}-${i.toString().padStart(2,"0")}T${u.toString().padStart(2,"0")}:${l.toString().padStart(2,"0")}:${c.toString().padStart(2,"0")}Z`}static clone(t,r){if(h(t))return h(r)?(r.dayNumber=t.dayNumber,r.secondsOfDay=t.secondsOfDay,r):new e(t.dayNumber,t.secondsOfDay,q.TAI)}static compare(e,t){if(!h(e))throw new T("left is required.");if(!h(t))throw new T("right is required.");let r=e.dayNumber-t.dayNumber;return 0!==r?r:e.secondsOfDay-t.secondsOfDay}static equals(e,t){return e===t||h(e)&&h(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay}static equalsEpsilon(t,r,n){return n=n??0,t===r||h(t)&&h(r)&&Math.abs(e.secondsDifference(t,r))<=n}static totalDays(e){if(!h(e))throw new T("julianDate is required.");return e.dayNumber+e.secondsOfDay/W.SECONDS_PER_DAY}static secondsDifference(e,t){if(!h(e))throw new T("left is required.");if(!h(t))throw new T("right is required.");return(e.dayNumber-t.dayNumber)*W.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)}static daysDifference(e,t){if(!h(e))throw new T("left is required.");if(!h(t))throw new T("right is required.");return e.dayNumber-t.dayNumber+(e.secondsOfDay-t.secondsOfDay)/W.SECONDS_PER_DAY}static computeTaiMinusUtc(t){$e.julianDate=t;let r=e.leapSeconds,n=je(r,$e,Wt);return n<0&&(n=~n,--n,n<0&&(n=0)),r[n].offset}static addSeconds(e,t,r){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("seconds is required.");if(!h(r))throw new T("result is required.");return Pe(e.dayNumber,e.secondsOfDay+t,r)}static addMinutes(e,t,r){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("minutes is required.");if(!h(r))throw new T("result is required.");let n=e.secondsOfDay+t*W.SECONDS_PER_MINUTE;return Pe(e.dayNumber,n,r)}static addHours(e,t,r){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("hours is required.");if(!h(r))throw new T("result is required.");let n=e.secondsOfDay+t*W.SECONDS_PER_HOUR;return Pe(e.dayNumber,n,r)}static addDays(e,t,r){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("days is required.");if(!h(r))throw new T("result is required.");return Pe(e.dayNumber+t,e.secondsOfDay,r)}static lessThan(t,r){return e.compare(t,r)<0}static lessThanOrEquals(t,r){return e.compare(t,r)<=0}static greaterThan(t,r){return e.compare(t,r)>0}static greaterThanOrEquals(t,r){return e.compare(t,r)>=0}clone(t){return e.clone(this,t)}equals(t){return e.equals(this,t)}equalsEpsilon(t,r){return e.equalsEpsilon(this,t,r)}toString(){return e.toIso8601(this)}},Ot=new U(0,0,q.TAI);U.leapSeconds=[new B(new U(2441317,43210,q.TAI),10),new B(new U(2441499,43211,q.TAI),11),new B(new U(2441683,43212,q.TAI),12),new B(new U(2442048,43213,q.TAI),13),new B(new U(2442413,43214,q.TAI),14),new B(new U(2442778,43215,q.TAI),15),new B(new U(2443144,43216,q.TAI),16),new B(new U(2443509,43217,q.TAI),17),new B(new U(2443874,43218,q.TAI),18),new B(new U(2444239,43219,q.TAI),19),new B(new U(2444786,43220,q.TAI),20),new B(new U(2445151,43221,q.TAI),21),new B(new U(2445516,43222,q.TAI),22),new B(new U(2446247,43223,q.TAI),23),new B(new U(2447161,43224,q.TAI),24),new B(new U(2447892,43225,q.TAI),25),new B(new U(2448257,43226,q.TAI),26),new B(new U(2448804,43227,q.TAI),27),new B(new U(2449169,43228,q.TAI),28),new B(new U(2449534,43229,q.TAI),29),new B(new U(2450083,43230,q.TAI),30),new B(new U(2450630,43231,q.TAI),31),new B(new U(2451179,43232,q.TAI),32),new B(new U(2453736,43233,q.TAI),33),new B(new U(2454832,43234,q.TAI),34),new B(new U(2456109,43235,q.TAI),35),new B(new U(2457204,43236,q.TAI),36),new B(new U(2457754,43237,q.TAI),37)];var K=U,Kn=We(Ne(),1);function jr(e){return(0===e.length||"/"!==e[e.length-1])&&(e=`${e}/`),e}var Cn=jr;function Rn(e,t){if(null===e||"object"!=typeof e)return e;t=t??!1;let r=new e.constructor;for(let n in e)if(e.hasOwnProperty(n)){let o=e[n];t&&(o=Rn(o,t)),r[n]=o}return r}var Xe=Rn;function Nr(){let e,t,r=new Promise((function(r,n){e=r,t=n}));return{resolve:e,reject:t,promise:r}}var ze=Nr,Pn=We(Ne(),1);function Vt(e,t){let r;return typeof document<"u"&&(r=document),Vt._implementation(e,t,r)}Vt._implementation=function(e,t,r){if(!h(e))throw new T("relative uri is required.");if(!h(t)){if(typeof r>"u")return e;t=r.baseURI??r.location.href}let n=new Pn.default(e);return""!==n.scheme()?n.toString():n.absoluteTo(t).toString()};var it=Vt,In=We(Ne(),1);function zr(e,t){if(!h(e))throw new T("uri is required.");let r="",n=e.lastIndexOf("/");return-1!==n&&(r=e.substring(0,n+1)),t&&(0!==(e=new In.default(e)).query().length&&(r+=`?${e.query()}`),0!==e.fragment().length&&(r+=`#${e.fragment()}`)),r}var Un=zr,Mn=We(Ne(),1);function Fr(e){if(!h(e))throw new T("uri is required.");let t=new Mn.default(e);t.normalize();let r=t.path(),n=r.lastIndexOf("/");return-1!==n&&(r=r.substr(n+1)),n=r.lastIndexOf("."),r=-1===n?"":r.substr(n+1),r}var Dn=Fr,qn={};function Lr(e,t,r){h(t)||(t=e.width),h(r)||(r=e.height);let n=qn[t];h(n)||(n={},qn[t]=n);let o=n[r];if(!h(o)){let e=document.createElement("canvas");e.width=t,e.height=r,o=e.getContext("2d",{willReadFrequently:!0}),o.globalCompositeOperation="copy",n[r]=o}return o.drawImage(e,0,0,t,r),o.getImageData(0,0,t,r).data}var Yt=Lr,Br=/^blob:/i;function Qr(e){return l.typeOf.string("uri",e),Br.test(e)}var be,Et=Qr;function Hr(e){h(be)||(be=document.createElement("a")),be.href=window.location.href;let t=be.host,r=be.protocol;return be.href=e,be.href=be.href,r!==be.protocol||t!==be.host}var kn=Hr,Wr=/^data:/i;function $r(e){return l.typeOf.string("uri",e),Wr.test(e)}var Tt=$r;function Vr(e){let t=document.createElement("script");return t.async=!0,t.src=e,new Promise(((e,r)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");let n=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,n.removeChild(t),e()},t.onerror=function(e){r(e)},n.appendChild(t)}))}var jn=Vr;function Yr(e){if(!h(e))throw new T("obj is required.");let t="";for(let r in e)if(e.hasOwnProperty(r)){let n=e[r],o=`${encodeURIComponent(r)}=`;if(Array.isArray(n))for(let e=0,r=n.length;e<r;++e)t+=`${o+encodeURIComponent(n[e])}&`;else t+=`${o+encodeURIComponent(n)}&`}return t=t.slice(0,-1),t}var Nn=Yr;function Xr(e){if(!h(e))throw new T("queryString is required.");let t={};if(""===e)return t;let r=e.replace(/\+/g,"%20").split(/[&;]/);for(let e=0,n=r.length;e<n;++e){let n=r[e].split("="),o=decodeURIComponent(n[0]),s=n[1];s=h(s)?decodeURIComponent(s):"";let a=t[o];"string"==typeof a?t[o]=[a,s]:Array.isArray(a)?a.push(s):t[o]=s}return t}var zn=Xr,Fn={UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5};Object.freeze(Fn);var V=Fn,Ln={TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3};Object.freeze(Ln);var Bn=Ln;function xt(e){let t=(e=e??we.EMPTY_OBJECT).throttleByServer??!1,r=e.throttle??!1;this.url=e.url,this.requestFunction=e.requestFunction,this.cancelFunction=e.cancelFunction,this.priorityFunction=e.priorityFunction,this.priority=e.priority??0,this.throttle=r,this.throttleByServer=t,this.type=e.type??Bn.OTHER,this.serverKey=e.serverKey,this.state=V.UNISSUED,this.deferred=void 0,this.cancelled=!1}xt.prototype.cancel=function(){this.cancelled=!0},xt.prototype.clone=function(e){return h(e)?(e.url=this.url,e.requestFunction=this.requestFunction,e.cancelFunction=this.cancelFunction,e.priorityFunction=this.priorityFunction,e.priority=this.priority,e.throttle=this.throttle,e.throttleByServer=this.throttleByServer,e.type=this.type,e.serverKey=this.serverKey,e.state=V.UNISSUED,e.deferred=void 0,e.cancelled=!1,e):new xt(this)};var Qn=xt;function Zr(e){let t={};if(!e)return t;let r=e.split("\r\n");for(let e=0;e<r.length;++e){let n=r[e],o=n.indexOf(": ");if(o>0){let e=n.substring(0,o),r=n.substring(o+2);t[e]=r}}return t}var Hn=Zr;function Wn(e,t,r){this.statusCode=e,this.response=t,this.responseHeaders=r,"string"==typeof this.responseHeaders&&(this.responseHeaders=Hn(this.responseHeaders))}Wn.prototype.toString=function(){let e="Request has failed.";return h(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};var st=Wn,At=We(Ne(),1);function at(){this._listeners=new Map,this._toRemove=new Map,this._toAdd=new Map,this._invokingListeners=!1,this._listenerCount=0}function Zt(e,t,r,n){t.has(r)||t.set(r,new Set);let o=t.get(r);return!o.has(n)&&(o.add(n),!0)}function Xt(e,t,r,n){let o=t.get(r);if(!o||!o.has(n))return!1;if(e._invokingListeners){if(!Zt(e,e._toRemove,r,n))return!1}else o.delete(n),0===o.size&&t.delete(r);return!0}Object.defineProperties(at.prototype,{numberOfListeners:{get:function(){return this._listenerCount}}}),at.prototype.addEventListener=function(e,t){l.typeOf.func("listener",e);let r=this;return Zt(this,r._invokingListeners?r._toAdd:r._listeners,e,t)&&r._listenerCount++,function(){r.removeEventListener(e,t)}},at.prototype.removeEventListener=function(e,t){l.typeOf.func("listener",e);let r=Xt(this,this._listeners,e,t),n=Xt(this,this._toAdd,e,t),o=r||n;return o&&this._listenerCount--,o},at.prototype.raiseEvent=function(){this._invokingListeners=!0;for(let[e,t]of this._listeners.entries())if(h(e))for(let r of t)e.apply(r,arguments);this._invokingListeners=!1;for(let[e,t]of this._toAdd.entries())for(let r of t)Zt(this,this._listeners,e,r);this._toAdd.clear();for(let[e,t]of this._toRemove.entries())for(let r of t)Xt(this,this._listeners,e,r);this._toRemove.clear()};var $n=at;function Fe(e){l.typeOf.object("options",e),l.defined("options.comparator",e.comparator),this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}function Jt(e,t,r){let n=e[t];e[t]=e[r],e[r]=n}Object.defineProperties(Fe.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){l.typeOf.number.greaterThanOrEquals("maximumLength",e,0);let t=this._length;if(e<t){let r=this._array;for(let n=e;n<t;++n)r[n]=void 0;this._length=e,r.length=e}this._maximumLength=e}},comparator:{get:function(){return this._comparator}}}),Fe.prototype.reserve=function(e){e=e??this._length,this._array.length=e},Fe.prototype.heapify=function(e){e=e??0;let t=this._length,r=this._comparator,n=this._array,o=-1,s=!0;for(;s;){let a=2*(e+1),i=a-1;o=i<t&&r(n[i],n[e])<0?i:e,a<t&&r(n[a],n[o])<0&&(o=a),o!==e?(Jt(n,o,e),e=o):s=!1}},Fe.prototype.resort=function(){let e=this._length;for(let t=Math.ceil(e/2);t>=0;--t)this.heapify(t)},Fe.prototype.insert=function(e){l.defined("element",e);let t,r=this._array,n=this._comparator,o=this._maximumLength,s=this._length++;for(s<r.length?r[s]=e:r.push(e);0!==s;){let e=Math.floor((s-1)/2);if(!(n(r[s],r[e])<0))break;Jt(r,s,e),s=e}return h(o)&&this._length>o&&(t=r[o],this._length=o),t},Fe.prototype.pop=function(e){if(e=e??0,0===this._length)return;l.typeOf.number.lessThan("index",e,this._length);let t=this._array,r=t[e];return Jt(t,e,--this._length),this.heapify(e),t[this._length]=void 0,r};var Vn=Fe;function Jr(e,t){return e.priority-t.priority}var L={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0},Ze=20,ne=new Vn({comparator:Jr});ne.maximumLength=Ze,ne.reserve(Ze);var Oe=[],Ee={},Gr=typeof document<"u"?new At.default(document.location.href):new At.default,Ct=new $n;function $(){}function Yn(e){h(e.priorityFunction)&&(e.priority=e.priorityFunction())}function Xn(e){return e.state===V.UNISSUED&&(e.state=V.ISSUED,e.deferred=ze()),e.deferred.promise}function Kr(e){return function(t){if(e.state===V.CANCELLED)return;let r=e.deferred;--L.numberOfActiveRequests,--Ee[e.serverKey],Ct.raiseEvent(),e.state=V.RECEIVED,e.deferred=void 0,r.resolve(t)}}function eo(e){return function(t){e.state!==V.CANCELLED&&(++L.numberOfFailedRequests,--L.numberOfActiveRequests,--Ee[e.serverKey],Ct.raiseEvent(t),e.state=V.FAILED,e.deferred.reject(t))}}function Zn(e){let t=Xn(e);return e.state=V.ACTIVE,Oe.push(e),++L.numberOfActiveRequests,++L.numberOfActiveRequestsEver,++Ee[e.serverKey],e.requestFunction().then(Kr(e)).catch(eo(e)),t}function Le(e){let t=e.state===V.ACTIVE;if(e.state=V.CANCELLED,++L.numberOfCancelledRequests,h(e.deferred)){let t=e.deferred;t.promise.catch((()=>{})),e.deferred=void 0,t.reject(new de(`Request cancelled: "${e.url}"`))}t&&(--L.numberOfActiveRequests,--Ee[e.serverKey],++L.numberOfCancelledActiveRequests),h(e.cancelFunction)&&e.cancelFunction()}function to(){$.debugShowStatistics&&(0===L.numberOfActiveRequests&&L.lastNumberOfActiveRequests>0&&(L.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${L.numberOfAttemptedRequests}`),L.numberOfAttemptedRequests=0),L.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${L.numberOfCancelledRequests}`),L.numberOfCancelledRequests=0),L.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${L.numberOfCancelledActiveRequests}`),L.numberOfCancelledActiveRequests=0),L.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${L.numberOfFailedRequests}`),L.numberOfFailedRequests=0)),L.lastNumberOfActiveRequests=L.numberOfActiveRequests)}$.maximumRequests=50,$.maximumRequestsPerServer=18,$.requestsByServer={},$.throttleRequests=!0,$.debugShowStatistics=!1,$.requestCompletedEvent=Ct,Object.defineProperties($,{statistics:{get:function(){return L}},priorityHeapLength:{get:function(){return Ze},set:function(e){if(e<Ze)for(;ne.length>e;){Le(ne.pop())}Ze=e,ne.maximumLength=e,ne.reserve(e)}}}),$.serverHasOpenSlots=function(e,t){t=t??1;let r=$.requestsByServer[e]??$.maximumRequestsPerServer;return Ee[e]+t<=r},$.heapHasOpenSlots=function(e){return ne.length+e<=Ze},$.update=function(){let e,t,r=0,n=Oe.length;for(e=0;e<n;++e)t=Oe[e],t.cancelled&&Le(t),t.state===V.ACTIVE?r>0&&(Oe[e-r]=t):++r;Oe.length-=r;let o=ne.internalArray,s=ne.length;for(e=0;e<s;++e)Yn(o[e]);ne.resort();let a=Math.max($.maximumRequests-Oe.length,0),i=0;for(;i<a&&ne.length>0;)t=ne.pop(),t.cancelled?Le(t):!t.throttleByServer||$.serverHasOpenSlots(t.serverKey)?(Zn(t),++i):Le(t);to()},$.getServerKey=function(e){l.typeOf.string("url",e);let t=new At.default(e);""===t.scheme()&&(t=t.absoluteTo(Gr),t.normalize());let r=t.authority();/:/.test(r)||(r=`${r}:${"https"===t.scheme()?"443":"80"}`);let n=Ee[r];return h(n)||(Ee[r]=0),r},$.request=function(e){if(l.typeOf.object("request",e),l.typeOf.string("request.url",e.url),l.typeOf.func("request.requestFunction",e.requestFunction),Tt(e.url)||Et(e.url))return Ct.raiseEvent(),e.state=V.RECEIVED,e.requestFunction();if(++L.numberOfAttemptedRequests,h(e.serverKey)||(e.serverKey=$.getServerKey(e.url)),$.throttleRequests&&e.throttleByServer&&!$.serverHasOpenSlots(e.serverKey))return;if(!$.throttleRequests||!e.throttle)return Zn(e);if(Oe.length>=$.maximumRequests)return;Yn(e);let t=ne.insert(e);if(h(t)){if(t===e)return;Le(t)}return Xn(e)},$.clearForSpecs=function(){for(;ne.length>0;){Le(ne.pop())}let e=Oe.length;for(let t=0;t<e;++t)Le(Oe[t]);Oe.length=0,Ee={},L.numberOfAttemptedRequests=0,L.numberOfActiveRequests=0,L.numberOfCancelledRequests=0,L.numberOfCancelledActiveRequests=0,L.numberOfFailedRequests=0,L.numberOfActiveRequestsEver=0,L.lastNumberOfActiveRequests=0},$.numberOfActiveRequestsByServer=function(e){return Ee[e]},$.requestHeap=ne;var Rt=$,Jn=We(Ne(),1),ct={},Je={};function no(e){let t=new Jn.default(e);t.normalize();let r=t.authority();if(0!==r.length){if(t.authority(r),-1!==r.indexOf("@")&&(r=r.split("@")[1]),-1===r.indexOf(":")){let e=t.scheme();if(0===e.length&&(e=window.location.protocol,e=e.substring(0,e.length-1)),"http"===e)r+=":80";else{if("https"!==e)return;r+=":443"}}return r}}ct.add=function(e,t){if(!h(e))throw new T("host is required.");if(!h(t)||t<=0)throw new T("port is required to be greater than 0.");let r=`${e.toLowerCase()}:${t}`;h(Je[r])||(Je[r]=!0)},ct.remove=function(e,t){if(!h(e))throw new T("host is required.");if(!h(t)||t<=0)throw new T("port is required to be greater than 0.");let r=`${e.toLowerCase()}:${t}`;h(Je[r])&&delete Je[r]},ct.contains=function(e){if(!h(e))throw new T("url is required.");let t=no(e);return!(!h(t)||!h(Je[t]))},ct.clear=function(){Je={}};var Ge,Gt=ct,er=function(){try{let e=new XMLHttpRequest;return e.open("GET","#",!0),e.responseType="blob","blob"===e.responseType}catch{return!1}}();function E(e){"string"==typeof(e=e??we.EMPTY_OBJECT)&&(e={url:e}),l.typeOf.string("options.url",e.url),this._url=void 0,this._templateValues=_e(e.templateValues,{}),this._queryParameters=_e(e.queryParameters,{}),this.headers=_e(e.headers,{}),this.request=e.request??new Qn,this.proxy=e.proxy,this.retryCallback=e.retryCallback,this.retryAttempts=e.retryAttempts??0,this._retryCount=0,e.parseUrl??1?this.parseUrl(e.url,!0,!0):this._url=e.url,this._credits=e.credits}function _e(e,t){return h(e)?Xe(e):t}function ro(e){return 0===e.length?{}:-1===e.indexOf("=")?{[e]:void 0}:zn(e)}function It(e,t,r){if(!r)return Re(e,t);let n=Xe(e,!0);for(let e in t)if(t.hasOwnProperty(e)){let r=n[e],o=t[e];h(r)?(Array.isArray(r)||(r=n[e]=[r]),n[e]=r.concat(o)):n[e]=Array.isArray(o)?o.slice():o}return n}function oo(e){let t=Object.keys(e);return 0===t.length?"":1!==t.length||h(e[t[0]])?`?${Nn(e)}`:`?${t[0]}`}function tr(e,t,r){let n={};n[t]=r,e.setQueryParameters(n);let o=e.request,s=e.url;o.url=s,o.requestFunction=function(){let e=ze();return window[r]=function(t){e.resolve(t);try{delete window[r]}catch{window[r]=void 0}},E._Implementations.loadAndExecuteScript(s,r,e),e.promise};let a=Rt.request(o);if(h(a))return a.catch((function(n){return o.state!==V.FAILED?Promise.reject(n):e.retryOnError(n).then((function(s){return s?(o.state=V.UNISSUED,o.deferred=void 0,tr(e,t,r)):Promise.reject(n)}))}))}function Kt(e){if(e.state===V.ISSUED||e.state===V.ACTIVE)throw new de("The Resource is already being fetched.");e.state=V.UNISSUED,e.deferred=void 0}E.createIfNeeded=function(e){return e instanceof E?e.getDerivedResource({request:e.request}):"string"!=typeof e?e:new E({url:e})},E.supportsImageBitmapOptions=function(){return h(Ge)?Ge:"function"!=typeof createImageBitmap?Ge=Promise.resolve(!1):Ge=E.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAAE4g3rEiDgAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADElEQVQI12Ng6GAAAAEUAIngE3ZiAAAAAElFTkSuQmCC"}).then((function(e){return Promise.all([createImageBitmap(e,{imageOrientation:"flipY",premultiplyAlpha:"none",colorSpaceConversion:"none"}),createImageBitmap(e)])})).then((function(e){let t=Yt(e[0]),r=Yt(e[1]);return t[1]!==r[1]})).catch((function(){return!1}))},Object.defineProperties(E,{isBlobSupported:{get:function(){return er}}}),Object.defineProperties(E.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(e){this.parseUrl(e,!1,!1)}},extension:{get:function(){return Dn(this._url)}},isDataUri:{get:function(){return Tt(this._url)}},isBlobUri:{get:function(){return Et(this._url)}},isCrossOriginUrl:{get:function(){return kn(this._url)}},hasHeaders:{get:function(){return Object.keys(this.headers).length>0}},credits:{get:function(){return this._credits}}}),E.prototype.toString=function(){return this.getUrlComponent(!0,!0)},E.prototype.parseUrl=function(e,t,r,n){let o=new Kn.default(e),s=ro(o.query());this._queryParameters=t?It(s,this.queryParameters,r):s,o.search(""),o.fragment(""),h(n)&&""===o.scheme()&&(o=o.absoluteTo(it(n))),this._url=o.toString()},E.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;let r=this._url;e&&(r=`${r}${oo(this.queryParameters)}`),r=r.replace(/%7B/g,"{").replace(/%7D/g,"}");let n=this._templateValues;return Object.keys(n).length>0&&(r=r.replace(/{(.*?)}/g,(function(e,t){let r=n[t];return h(r)?encodeURIComponent(r):e}))),t&&h(this.proxy)&&(r=this.proxy.getURL(r)),r},E.prototype.setQueryParameters=function(e,t){this._queryParameters=t?It(this._queryParameters,e,!1):It(e,this._queryParameters,!1)},E.prototype.appendQueryParameters=function(e){this._queryParameters=It(e,this._queryParameters,!0)},E.prototype.setTemplateValues=function(e,t){this._templateValues=t?Re(this._templateValues,e):Re(e,this._templateValues)},E.prototype.getDerivedResource=function(e){let t=this.clone();if(t._retryCount=0,h(e.url)){let r=e.preserveQueryParameters??!1;t.parseUrl(e.url,!0,r,this._url)}return h(e.queryParameters)&&(t._queryParameters=Re(e.queryParameters,t.queryParameters)),h(e.templateValues)&&(t._templateValues=Re(e.templateValues,t.templateValues)),h(e.headers)&&(t.headers=Re(e.headers,t.headers)),h(e.proxy)&&(t.proxy=e.proxy),h(e.request)&&(t.request=e.request),h(e.retryCallback)&&(t.retryCallback=e.retryCallback),h(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t},E.prototype.retryOnError=function(e){let t=this.retryCallback;if("function"!=typeof t||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);let r=this;return Promise.resolve(t(this,e)).then((function(e){return++r._retryCount,e}))},E.prototype.clone=function(e){return h(e)?(e._url=this._url,e._queryParameters=Xe(this._queryParameters),e._templateValues=Xe(this._templateValues),e.headers=Xe(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e):new E({url:this._url,queryParameters:this.queryParameters,templateValues:this.templateValues,headers:this.headers,proxy:this.proxy,retryCallback:this.retryCallback,retryAttempts:this.retryAttempts,request:this.request.clone(),parseUrl:!1,credits:h(this.credits)?this.credits.slice():void 0})},E.prototype.getBaseUri=function(e){return Un(this.getUrlComponent(e),e)},E.prototype.appendForwardSlash=function(){this._url=Cn(this._url)},E.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})},E.fetchArrayBuffer=function(e){return new E(e).fetchArrayBuffer()},E.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})},E.fetchBlob=function(e){return new E(e).fetchBlob()},E.prototype.fetchImage=function(e){let t=(e=e??we.EMPTY_OBJECT).preferImageBitmap??!1,r=e.preferBlob??!1,n=e.flipY??!1,o=e.skipColorSpaceConversion??!1;if(Kt(this.request),!er||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!r)return this._fetchImage({resource:this,flipY:n,skipColorSpaceConversion:o,preferImageBitmap:t});let s,a,i,u,l=this.fetchBlob();return h(l)?E.supportsImageBitmapOptions().then((function(e){return s=e,a=s&&t,l})).then((function(e){if(!h(e))return;if(u=e,a)return E.createImageBitmapFromBlob(e,{flipY:n,premultiplyAlpha:!1,skipColorSpaceConversion:o});let t=window.URL.createObjectURL(e);return i=new E({url:t}),i._fetchImage({flipY:n,skipColorSpaceConversion:o,preferImageBitmap:!1})})).then((function(e){if(h(e))return e.blob=u,a||window.URL.revokeObjectURL(i.url),e})).catch((function(e){return h(i)&&window.URL.revokeObjectURL(i.url),e.blob=u,Promise.reject(e)})):void 0},E.prototype._fetchImage=function(e){let t=this,r=e.flipY,n=e.skipColorSpaceConversion,o=e.preferImageBitmap,s=t.request;s.url=t.url,s.requestFunction=function(){let e=!1;!t.isDataUri&&!t.isBlobUri&&(e=t.isCrossOriginUrl);let a=ze();return E._Implementations.createImage(s,e,a,r,n,o),a.promise};let a=Rt.request(s);if(h(a))return a.catch((function(e){return s.state!==V.FAILED?Promise.reject(e):t.retryOnError(e).then((function(a){return a?(s.state=V.UNISSUED,s.deferred=void 0,t._fetchImage({flipY:r,skipColorSpaceConversion:n,preferImageBitmap:o})):Promise.reject(e)}))}))},E.fetchImage=function(e){return new E(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})},E.prototype.fetchText=function(){return this.fetch({responseType:"text"})},E.fetchText=function(e){return new E(e).fetchText()},E.prototype.fetchJson=function(){let e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(h(e))return e.then((function(e){if(h(e))return JSON.parse(e)}))},E.fetchJson=function(e){return new E(e).fetchJson()},E.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})},E.fetchXML=function(e){return new E(e).fetchXML()},E.prototype.fetchJsonp=function(e){let t;e=e??"callback",Kt(this.request);do{t=`loadJsonp${_.nextRandomNumber().toString().substring(2,8)}`}while(h(window[t]));return tr(this,e,t)},E.fetchJsonp=function(e){return new E(e).fetchJsonp(e.callbackParameterName)},E.prototype._makeRequest=function(e){let t=this;Kt(t.request);let r=t.request,n=t.url;r.url=n,r.requestFunction=function(){let o=e.responseType,s=Re(e.headers,t.headers),a=e.overrideMimeType,i=e.method,u=e.data,l=ze(),c=E._Implementations.loadWithXhr(n,o,i,u,s,l,a);return h(c)&&h(c.abort)&&(r.cancelFunction=function(){c.abort()}),l.promise};let o=Rt.request(r);if(h(o))return o.then((function(e){return r.cancelFunction=void 0,e})).catch((function(n){return r.cancelFunction=void 0,r.state!==V.FAILED?Promise.reject(n):t.retryOnError(n).then((function(o){return o?(r.state=V.UNISSUED,r.deferred=void 0,t.fetch(e)):Promise.reject(n)}))}))};var io=/^data:(.*?)(;base64)?,(.*)$/;function Pt(e,t){let r=decodeURIComponent(t);return e?atob(r):r}function Gn(e,t){let r=Pt(e,t),n=new ArrayBuffer(r.length),o=new Uint8Array(n);for(let e=0;e<r.length;e++)o[e]=r.charCodeAt(e);return n}function so(e,t){t=t??"";let r,n,o=e[1],s=!!e[2],a=e[3];switch(t){case"":case"text":return Pt(s,a);case"arraybuffer":return Gn(s,a);case"blob":return r=Gn(s,a),new Blob([r],{type:o});case"document":return n=new DOMParser,n.parseFromString(Pt(s,a),o);case"json":return JSON.parse(Pt(s,a));default:throw new T(`Unhandled responseType: ${t}`)}}function ao(e,t,r,n,o,s,a){fetch(e,{method:r,headers:o}).then((async e=>{if(!e.ok){let t={};return e.headers.forEach(((e,r)=>{t[r]=e})),void s.reject(new st(e.status,e,t))}switch(t){case"text":s.resolve(e.text());break;case"json":s.resolve(e.json());break;default:s.resolve(new Uint8Array(await e.arrayBuffer()).buffer)}})).catch((()=>{s.reject(new st)}))}E.prototype.fetch=function(e){return(e=_e(e,{})).method="GET",this._makeRequest(e)},E.fetch=function(e){return new E(e).fetch({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},E.prototype.delete=function(e){return(e=_e(e,{})).method="DELETE",this._makeRequest(e)},E.delete=function(e){return new E(e).delete({responseType:e.responseType,overrideMimeType:e.overrideMimeType,data:e.data})},E.prototype.head=function(e){return(e=_e(e,{})).method="HEAD",this._makeRequest(e)},E.head=function(e){return new E(e).head({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},E.prototype.options=function(e){return(e=_e(e,{})).method="OPTIONS",this._makeRequest(e)},E.options=function(e){return new E(e).options({responseType:e.responseType,overrideMimeType:e.overrideMimeType})},E.prototype.post=function(e,t){return l.defined("data",e),(t=_e(t,{})).method="POST",t.data=e,this._makeRequest(t)},E.post=function(e){return new E(e).post(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},E.prototype.put=function(e,t){return l.defined("data",e),(t=_e(t,{})).method="PUT",t.data=e,this._makeRequest(t)},E.put=function(e){return new E(e).put(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},E.prototype.patch=function(e,t){return l.defined("data",e),(t=_e(t,{})).method="PATCH",t.data=e,this._makeRequest(t)},E.patch=function(e){return new E(e).patch(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})},E._Implementations={},E._Implementations.loadImageElement=function(e,t,r){let n=new Image;n.onload=function(){0===n.naturalWidth&&0===n.naturalHeight&&0===n.width&&0===n.height&&(n.width=300,n.height=150),r.resolve(n)},n.onerror=function(e){r.reject(e)},t&&(Gt.contains(e)?n.crossOrigin="use-credentials":n.crossOrigin=""),n.src=e},E._Implementations.createImage=function(e,t,r,n,o,s,a){let i=e.url;E.supportsImageBitmapOptions().then((function(u){if(!u||!s)return void E._Implementations.loadImageElement(i,t,r);let l=ze(),c=E._Implementations.loadWithXhr(i,"blob","GET",void 0,a,l,void 0,void 0,void 0);return h(c)&&h(c.abort)&&(e.cancelFunction=function(){c.abort()}),l.promise.then((function(e){if(h(e))return E.createImageBitmapFromBlob(e,{flipY:n,premultiplyAlpha:!1,skipColorSpaceConversion:o});r.reject(new de(`Successfully retrieved ${i} but it contained no content.`))})).then((function(e){r.resolve(e)}))})).catch((function(e){r.reject(e)}))},E.createImageBitmapFromBlob=function(e,t){return l.defined("options",t),l.typeOf.bool("options.flipY",t.flipY),l.typeOf.bool("options.premultiplyAlpha",t.premultiplyAlpha),l.typeOf.bool("options.skipColorSpaceConversion",t.skipColorSpaceConversion),createImageBitmap(e,{imageOrientation:t.flipY?"flipY":"none",premultiplyAlpha:t.premultiplyAlpha?"premultiply":"none",colorSpaceConversion:t.skipColorSpaceConversion?"none":"default"})};var co=typeof XMLHttpRequest>"u";E._Implementations.loadWithXhr=function(e,t,r,n,o,s,a){let i=io.exec(e);if(null!==i)return void s.resolve(so(i,t));if(co)return void ao(e,t,r,n,o,s,a);let u=new XMLHttpRequest;if(Gt.contains(e)&&(u.withCredentials=!0),u.open(r,e,!0),h(a)&&h(u.overrideMimeType)&&u.overrideMimeType(a),h(o))for(let e in o)o.hasOwnProperty(e)&&u.setRequestHeader(e,o[e]);h(t)&&(u.responseType=t);let l=!1;return"string"==typeof e&&(l=0===e.indexOf("file://")||typeof window<"u"&&"file://"===window.location.origin),u.onload=function(){if((u.status<200||u.status>=300)&&(!l||0!==u.status))return void s.reject(new st(u.status,u.response,u.getAllResponseHeaders()));let e=u.response,n=u.responseType;if("HEAD"===r||"OPTIONS"===r){let e=u.getAllResponseHeaders().trim().split(/[\r\n]+/),t={};return e.forEach((function(e){let r=e.split(": "),n=r.shift();t[n]=r.join(": ")})),void s.resolve(t)}if(204===u.status)s.resolve(void 0);else if(!h(e)||h(t)&&n!==t)if("json"===t&&"string"==typeof e)try{s.resolve(JSON.parse(e))}catch(e){s.reject(e)}else(""===n||"document"===n)&&h(u.responseXML)&&u.responseXML.hasChildNodes()?s.resolve(u.responseXML):""!==n&&"text"!==n||!h(u.responseText)?s.reject(new de("Invalid XMLHttpRequest response type.")):s.resolve(u.responseText);else s.resolve(e)},u.onerror=function(e){s.reject(new st)},u.send(n),u},E._Implementations.loadAndExecuteScript=function(e,t,r){return jn(e,t).catch((function(e){r.reject(e)}))},E._DefaultImplementations={},E._DefaultImplementations.createImage=E._Implementations.createImage,E._DefaultImplementations.loadWithXhr=E._Implementations.loadWithXhr,E._DefaultImplementations.loadAndExecuteScript=E._Implementations.loadAndExecuteScript,E.DEFAULT=Object.freeze(new E({url:typeof document>"u"?"":document.location.href.split("?")[0]}));var Ie=E;function ft(e){e=e??we.EMPTY_OBJECT,this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=e.addNewLeapSeconds??!0,h(e.data)?nr(this,e.data):nr(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}function uo(e,t){return K.compare(e.julianDate,t)}function nr(e,t){if(!h(t.columnNames))throw new de("Error in loaded EOP data: The columnNames property is required.");if(!h(t.samples))throw new de("Error in loaded EOP data: The samples property is required.");let r=t.columnNames.indexOf("modifiedJulianDateUtc"),n=t.columnNames.indexOf("xPoleWanderRadians"),o=t.columnNames.indexOf("yPoleWanderRadians"),s=t.columnNames.indexOf("ut1MinusUtcSeconds"),a=t.columnNames.indexOf("xCelestialPoleOffsetRadians"),i=t.columnNames.indexOf("yCelestialPoleOffsetRadians"),u=t.columnNames.indexOf("taiMinusUtcSeconds");if(r<0||n<0||o<0||s<0||a<0||i<0||u<0)throw new de("Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns");let l=e._samples=t.samples,c=e._dates=[];e._dateColumn=r,e._xPoleWanderRadiansColumn=n,e._yPoleWanderRadiansColumn=o,e._ut1MinusUtcSecondsColumn=s,e._xCelestialPoleOffsetRadiansColumn=a,e._yCelestialPoleOffsetRadiansColumn=i,e._taiMinusUtcSecondsColumn=u,e._columnCount=t.columnNames.length,e._lastIndex=void 0;let p,f=e._addNewLeapSeconds;for(let t=0,n=l.length;t<n;t+=e._columnCount){let e=l[t+r],n=l[t+u],o=e+W.MODIFIED_JULIAN_DATE_DIFFERENCE,s=new K(o,n,q.TAI);if(c.push(s),f){if(n!==p&&h(p)){let e=K.leapSeconds,t=je(e,s,uo);if(t<0){let r=new B(s,n);e.splice(~t,0,r)}}p=n}}}function rr(e,t,r,n,o){let s=r*n;o.xPoleWander=t[s+e._xPoleWanderRadiansColumn],o.yPoleWander=t[s+e._yPoleWanderRadiansColumn],o.xPoleOffset=t[s+e._xCelestialPoleOffsetRadiansColumn],o.yPoleOffset=t[s+e._yCelestialPoleOffsetRadiansColumn],o.ut1MinusUtc=t[s+e._ut1MinusUtcSecondsColumn]}function ut(e,t,r){return t+e*(r-t)}function or(e,t,r,n,o,s,a){let i=e._columnCount;if(s>t.length-1)return a.xPoleWander=0,a.yPoleWander=0,a.xPoleOffset=0,a.yPoleOffset=0,a.ut1MinusUtc=0,a;let u=t[o],l=t[s];if(u.equals(l)||n.equals(u))return rr(e,r,o,i,a),a;if(n.equals(l))return rr(e,r,s,i,a),a;let c=K.secondsDifference(n,u)/K.secondsDifference(l,u),h=o*i,p=s*i,f=r[h+e._ut1MinusUtcSecondsColumn],d=r[p+e._ut1MinusUtcSecondsColumn],m=d-f;if(m>.5||m<-.5){let t=r[h+e._taiMinusUtcSecondsColumn],o=r[p+e._taiMinusUtcSecondsColumn];t!==o&&(l.equals(n)?f=d:d-=o-t)}return a.xPoleWander=ut(c,r[h+e._xPoleWanderRadiansColumn],r[p+e._xPoleWanderRadiansColumn]),a.yPoleWander=ut(c,r[h+e._yPoleWanderRadiansColumn],r[p+e._yPoleWanderRadiansColumn]),a.xPoleOffset=ut(c,r[h+e._xCelestialPoleOffsetRadiansColumn],r[p+e._xCelestialPoleOffsetRadiansColumn]),a.yPoleOffset=ut(c,r[h+e._yCelestialPoleOffsetRadiansColumn],r[p+e._yCelestialPoleOffsetRadiansColumn]),a.ut1MinusUtc=ut(c,f,d),a}ft.fromUrl=async function(e,t){l.defined("url",e),t=t??we.EMPTY_OBJECT;let r,n=Ie.createIfNeeded(e);try{r=await n.fetchJson()}catch{throw new de(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new ft({addNewLeapSeconds:t.addNewLeapSeconds,data:r})},ft.NONE=Object.freeze({compute:function(e,t){return h(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new rt(0,0,0,0,0),t}}),ft.prototype.compute=function(e,t){if(!h(this._samples))return;if(h(t)||(t=new rt(0,0,0,0,0)),0===this._samples.length)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;let r=this._dates,n=this._lastIndex,o=0,s=0;if(h(n)){let a=r[n],i=r[n+1],u=K.lessThanOrEquals(a,e),l=!h(i),c=l||K.greaterThanOrEquals(i,e);if(u&&c)return o=n,!l&&i.equals(e)&&++o,s=o+1,or(this,r,this._samples,e,o,s,t),t}let a=je(r,e,K.compare,this._dateColumn);return a>=0?(a<r.length-1&&r[a+1].equals(e)&&++a,o=a,s=a):(s=~a,o=s-1,o<0&&(o=0)),this._lastIndex=o,or(this,r,this._samples,e,o,s,t),t};var ir=ft;function re(e,t,r){this.heading=e??0,this.pitch=t??0,this.roll=r??0}re.fromQuaternion=function(e,t){if(!h(e))throw new T("quaternion is required");h(t)||(t=new re);let r=2*(e.w*e.y-e.z*e.x),n=1-2*(e.x*e.x+e.y*e.y),o=2*(e.w*e.x+e.y*e.z),s=1-2*(e.y*e.y+e.z*e.z),a=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(a,s),t.roll=Math.atan2(o,n),t.pitch=-_.asinClamped(r),t},re.fromDegrees=function(e,t,r,n){if(!h(e))throw new T("heading is required");if(!h(t))throw new T("pitch is required");if(!h(r))throw new T("roll is required");return h(n)||(n=new re),n.heading=e*_.RADIANS_PER_DEGREE,n.pitch=t*_.RADIANS_PER_DEGREE,n.roll=r*_.RADIANS_PER_DEGREE,n},re.clone=function(e,t){if(h(e))return h(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new re(e.heading,e.pitch,e.roll)},re.equals=function(e,t){return e===t||h(e)&&h(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll},re.equalsEpsilon=function(e,t,r,n){return e===t||h(e)&&h(t)&&_.equalsEpsilon(e.heading,t.heading,r,n)&&_.equalsEpsilon(e.pitch,t.pitch,r,n)&&_.equalsEpsilon(e.roll,t.roll,r,n)},re.prototype.clone=function(e){return re.clone(this,e)},re.prototype.equals=function(e){return re.equals(this,e)},re.prototype.equalsEpsilon=function(e,t,r){return re.equalsEpsilon(this,e,t,r)},re.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};var Mt,Be,Dt,Ut=re,sr=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function fo(){let e=document.getElementsByTagName("script");for(let t=0,r=e.length;t<r;++t){let r=e[t].getAttribute("src"),n=sr.exec(r);if(null!==n)return n[1]}}function ar(e){return typeof document>"u"?e:(h(Mt)||(Mt=document.createElement("a")),Mt.href=e,Mt.href)}function cr(){if(h(Be))return Be;let e;if(e=typeof CESIUM_BASE_URL<"u"?CESIUM_BASE_URL:h(import.meta?.url)?it(".",import.meta.url):"object"==typeof define&&h(define.amd)&&!define.amd.toUrlUndefined&&h(dt.toUrl)?it("..",Qe("Core/buildModuleUrl.js")):fo(),!h(e))throw new T("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return(Be=new Ie({url:ar(e)})).appendForwardSlash(),Be}function ho(e){return ar(dt.toUrl(`../${e}`))}function ur(e){return cr().getDerivedResource({url:e}).url}function Qe(e){return h(Dt)||(Dt="object"==typeof define&&h(define.amd)&&!define.amd.toUrlUndefined&&h(dt.toUrl)?ho:ur),Dt(e)}Qe._cesiumScriptRegex=sr,Qe._buildModuleUrlFromBaseUrl=ur,Qe._clearBaseResource=function(){Be=void 0},Qe.setBaseUrl=function(e){Be=Ie.DEFAULT.getDerivedResource({url:e})},Qe.getCesiumBaseUrl=cr;var fr=Qe;function lo(e,t,r){this.x=e,this.y=t,this.s=r}var qt=lo;function kt(e){e=e??we.EMPTY_OBJECT,this._xysFileUrlTemplate=Ie.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=e.interpolationOrder??9,this._sampleZeroJulianEphemerisDate=e.sampleZeroJulianEphemerisDate??2442396.5,this._sampleZeroDateTT=new K(this._sampleZeroJulianEphemerisDate,0,q.TAI),this._stepSizeDays=e.stepSizeDays??1,this._samplesPerXysFile=e.samplesPerXysFile??1e3,this._totalSamples=e.totalSamples??27426,this._samples=new Array(3*this._totalSamples),this._chunkDownloadsInProgress=[];let t=this._interpolationOrder,r=this._denominators=new Array(t+1),n=this._xTable=new Array(t+1),o=Math.pow(this._stepSizeDays,t);for(let e=0;e<=t;++e){r[e]=o,n[e]=e*this._stepSizeDays;for(let n=0;n<=t;++n)n!==e&&(r[e]*=e-n);r[e]=1/r[e]}this._work=new Array(t+1),this._coef=new Array(t+1)}var po=new K(0,0,q.TAI);function en(e,t,r){let n=po;return n.dayNumber=t,n.secondsOfDay=r,K.daysDifference(n,e._sampleZeroDateTT)}async function mo(e,t,r){try{let n=await e.fetchJson();r._updateChunkData(t,n)}catch{}}function tn(e,t){if(h(e._chunkDownloadsInProgress[t]))return e._chunkDownloadsInProgress[t];let r,n=e._xysFileUrlTemplate;r=h(n)?n.getDerivedResource({templateValues:{0:t}}):new Ie({url:fr(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});let o=mo(r,t,e);return e._chunkDownloadsInProgress[t]=o,o}kt.prototype.preload=function(e,t,r,n){let o=en(this,e,t),s=en(this,r,n),a=o/this._stepSizeDays-this._interpolationOrder/2|0;a<0&&(a=0);let i=s/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;i>=this._totalSamples&&(i=this._totalSamples-1);let u=a/this._samplesPerXysFile|0,l=i/this._samplesPerXysFile|0,c=[];for(let e=u;e<=l;++e)c.push(tn(this,e));return Promise.all(c)},kt.prototype.computeXysRadians=function(e,t,r){let n=en(this,e,t);if(n<0)return;let o=n/this._stepSizeDays|0;if(o>=this._totalSamples)return;let s=this._interpolationOrder,a=o-(s/2|0);a<0&&(a=0);let i=a+s;i>=this._totalSamples&&(i=this._totalSamples-1,a=i-s,a<0&&(a=0));let u=!1,l=this._samples;if(h(l[3*a])||(tn(this,a/this._samplesPerXysFile|0),u=!0),h(l[3*i])||(tn(this,i/this._samplesPerXysFile|0),u=!0),u)return;h(r)?(r.x=0,r.y=0,r.s=0):r=new qt(0,0,0);let c,p,f=n-a*this._stepSizeDays,d=this._work,m=this._denominators,y=this._coef,g=this._xTable;for(c=0;c<=s;++c)d[c]=f-g[c];for(c=0;c<=s;++c){for(y[c]=1,p=0;p<=s;++p)p!==c&&(y[c]*=d[p]);y[c]*=m[c];let e=3*(a+c);r.x+=y[c]*l[e++],r.y+=y[c]*l[e++],r.s+=y[c]*l[e]}return r},kt.prototype._updateChunkData=function(e,{samples:t}){this._chunkDownloadsInProgress[e]=void 0;let r=e*this._samplesPerXysFile*3;for(let e=0;e<t.length;++e)this._samples[r+e]=t[e]};var hr=kt;function O(e,t,r,n){this.x=e??0,this.y=t??0,this.z=r??0,this.w=n??0}var ht=new v;O.fromAxisAngle=function(e,t,r){l.typeOf.object("axis",e),l.typeOf.number("angle",t);let n=t/2,o=Math.sin(n),s=(ht=v.normalize(e,ht)).x*o,a=ht.y*o,i=ht.z*o,u=Math.cos(n);return h(r)?(r.x=s,r.y=a,r.z=i,r.w=u,r):new O(s,a,i,u)};var yo=[1,2,0],go=new Array(3);O.fromRotationMatrix=function(e,t){l.typeOf.object("matrix",e);let r,n,o,s,a,i=e[k.COLUMN0ROW0],u=e[k.COLUMN1ROW1],c=e[k.COLUMN2ROW2],p=i+u+c;if(p>0)r=Math.sqrt(p+1),a=.5*r,r=.5/r,n=(e[k.COLUMN1ROW2]-e[k.COLUMN2ROW1])*r,o=(e[k.COLUMN2ROW0]-e[k.COLUMN0ROW2])*r,s=(e[k.COLUMN0ROW1]-e[k.COLUMN1ROW0])*r;else{let t=yo,l=0;u>i&&(l=1),c>i&&c>u&&(l=2);let h=t[l],p=t[h];r=Math.sqrt(e[k.getElementIndex(l,l)]-e[k.getElementIndex(h,h)]-e[k.getElementIndex(p,p)]+1);let f=go;f[l]=.5*r,r=.5/r,a=(e[k.getElementIndex(p,h)]-e[k.getElementIndex(h,p)])*r,f[h]=(e[k.getElementIndex(h,l)]+e[k.getElementIndex(l,h)])*r,f[p]=(e[k.getElementIndex(p,l)]+e[k.getElementIndex(l,p)])*r,n=-f[0],o=-f[1],s=-f[2]}return h(t)?(t.x=n,t.y=o,t.z=s,t.w=a,t):new O(n,o,s,a)};var lr=new O,dr=new O,nn=new O,pr=new O;O.fromHeadingPitchRoll=function(e,t){return l.typeOf.object("headingPitchRoll",e),pr=O.fromAxisAngle(v.UNIT_X,e.roll,lr),nn=O.fromAxisAngle(v.UNIT_Y,-e.pitch,t),t=O.multiply(nn,pr,nn),dr=O.fromAxisAngle(v.UNIT_Z,-e.heading,lr),O.multiply(dr,t,t)};var jt=new v,rn=new v,me=new O,mr=new O,Nt=new O;O.packedLength=4,O.pack=function(e,t,r){return l.typeOf.object("value",e),l.defined("array",t),r=r??0,t[r++]=e.x,t[r++]=e.y,t[r++]=e.z,t[r]=e.w,t},O.unpack=function(e,t,r){return l.defined("array",e),t=t??0,h(r)||(r=new O),r.x=e[t],r.y=e[t+1],r.z=e[t+2],r.w=e[t+3],r},O.packedInterpolationLength=3,O.convertPackedArrayForInterpolation=function(e,t,r,n){O.unpack(e,4*r,Nt),O.conjugate(Nt,Nt);for(let o=0,s=r-t+1;o<s;o++){let r=3*o;O.unpack(e,4*(t+o),me),O.multiply(me,Nt,me),me.w<0&&O.negate(me,me),O.computeAxis(me,jt);let s=O.computeAngle(me);h(n)||(n=[]),n[r]=jt.x*s,n[r+1]=jt.y*s,n[r+2]=jt.z*s}},O.unpackInterpolationResult=function(e,t,r,n,o){h(o)||(o=new O),v.fromArray(e,0,rn);let s=v.magnitude(rn);return O.unpack(t,4*n,mr),0===s?O.clone(O.IDENTITY,me):O.fromAxisAngle(rn,s,me),O.multiply(me,mr,o)},O.clone=function(e,t){if(h(e))return h(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new O(e.x,e.y,e.z,e.w)},O.conjugate=function(e,t){return l.typeOf.object("quaternion",e),l.typeOf.object("result",t),t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=e.w,t},O.magnitudeSquared=function(e){return l.typeOf.object("quaternion",e),e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w},O.magnitude=function(e){return Math.sqrt(O.magnitudeSquared(e))},O.normalize=function(e,t){l.typeOf.object("result",t);let r=1/O.magnitude(e),n=e.x*r,o=e.y*r,s=e.z*r,a=e.w*r;return t.x=n,t.y=o,t.z=s,t.w=a,t},O.inverse=function(e,t){l.typeOf.object("result",t);let r=O.magnitudeSquared(e);return t=O.conjugate(e,t),O.multiplyByScalar(t,1/r,t)},O.add=function(e,t,r){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",r),r.x=e.x+t.x,r.y=e.y+t.y,r.z=e.z+t.z,r.w=e.w+t.w,r},O.subtract=function(e,t,r){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",r),r.x=e.x-t.x,r.y=e.y-t.y,r.z=e.z-t.z,r.w=e.w-t.w,r},O.negate=function(e,t){return l.typeOf.object("quaternion",e),l.typeOf.object("result",t),t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t},O.dot=function(e,t){return l.typeOf.object("left",e),l.typeOf.object("right",t),e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w},O.multiply=function(e,t,r){l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",r);let n=e.x,o=e.y,s=e.z,a=e.w,i=t.x,u=t.y,c=t.z,h=t.w,p=a*i+n*h+o*c-s*u,f=a*u-n*c+o*h+s*i,d=a*c+n*u-o*i+s*h,m=a*h-n*i-o*u-s*c;return r.x=p,r.y=f,r.z=d,r.w=m,r},O.multiplyByScalar=function(e,t,r){return l.typeOf.object("quaternion",e),l.typeOf.number("scalar",t),l.typeOf.object("result",r),r.x=e.x*t,r.y=e.y*t,r.z=e.z*t,r.w=e.w*t,r},O.divideByScalar=function(e,t,r){return l.typeOf.object("quaternion",e),l.typeOf.number("scalar",t),l.typeOf.object("result",r),r.x=e.x/t,r.y=e.y/t,r.z=e.z/t,r.w=e.w/t,r},O.computeAxis=function(e,t){l.typeOf.object("quaternion",e),l.typeOf.object("result",t);let r=e.w;if(Math.abs(r-1)<_.EPSILON6||Math.abs(r+1)<_.EPSILON6)return t.x=1,t.y=t.z=0,t;let n=1/Math.sqrt(1-r*r);return t.x=e.x*n,t.y=e.y*n,t.z=e.z*n,t},O.computeAngle=function(e){return l.typeOf.object("quaternion",e),Math.abs(e.w-1)<_.EPSILON6?0:2*Math.acos(e.w)};var on=new O;O.lerp=function(e,t,r,n){return l.typeOf.object("start",e),l.typeOf.object("end",t),l.typeOf.number("t",r),l.typeOf.object("result",n),on=O.multiplyByScalar(t,r,on),n=O.multiplyByScalar(e,1-r,n),O.add(on,n,n)};var yr=new O,sn=new O,an=new O;O.slerp=function(e,t,r,n){l.typeOf.object("start",e),l.typeOf.object("end",t),l.typeOf.number("t",r),l.typeOf.object("result",n);let o=O.dot(e,t),s=t;if(o<0&&(o=-o,s=yr=O.negate(t,yr)),1-o<_.EPSILON6)return O.lerp(e,s,r,n);let a=Math.acos(o);return sn=O.multiplyByScalar(e,Math.sin((1-r)*a),sn),an=O.multiplyByScalar(s,Math.sin(r*a),an),n=O.add(sn,an,n),O.multiplyByScalar(n,1/Math.sin(a),n)},O.log=function(e,t){l.typeOf.object("quaternion",e),l.typeOf.object("result",t);let r=_.acosClamped(e.w),n=0;return 0!==r&&(n=r/Math.sin(r)),v.multiplyByScalar(e,n,t)},O.exp=function(e,t){l.typeOf.object("cartesian",e),l.typeOf.object("result",t);let r=v.magnitude(e),n=0;return 0!==r&&(n=Math.sin(r)/r),t.x=e.x*n,t.y=e.y*n,t.z=e.z*n,t.w=Math.cos(r),t};var wo=new v,bo=new v,lt=new O,Ke=new O;O.computeInnerQuadrangle=function(e,t,r,n){l.typeOf.object("q0",e),l.typeOf.object("q1",t),l.typeOf.object("q2",r),l.typeOf.object("result",n);let o=O.conjugate(t,lt);O.multiply(o,r,Ke);let s=O.log(Ke,wo);O.multiply(o,e,Ke);let a=O.log(Ke,bo);return v.add(s,a,s),v.multiplyByScalar(s,.25,s),v.negate(s,s),O.exp(s,lt),O.multiply(t,lt,n)},O.squad=function(e,t,r,n,o,s){l.typeOf.object("q0",e),l.typeOf.object("q1",t),l.typeOf.object("s0",r),l.typeOf.object("s1",n),l.typeOf.number("t",o),l.typeOf.object("result",s);let a=O.slerp(e,t,o,lt),i=O.slerp(r,n,o,Ke);return O.slerp(a,i,2*o*(1-o),s)};var Oo=new O,gr=1.9011074535173003,zt=nt.supportsTypedArrays()?new Float32Array(8):[],Ft=nt.supportsTypedArrays()?new Float32Array(8):[],Te=nt.supportsTypedArrays()?new Float32Array(8):[],xe=nt.supportsTypedArrays()?new Float32Array(8):[];for(let e=0;e<7;++e){let t=e+1,r=2*t+1;zt[e]=1/(t*r),Ft[e]=t/r}zt[7]=gr/136,Ft[7]=8*gr/17,O.fastSlerp=function(e,t,r,n){l.typeOf.object("start",e),l.typeOf.object("end",t),l.typeOf.number("t",r),l.typeOf.object("result",n);let o,s=O.dot(e,t);s>=0?o=1:(o=-1,s=-s);let a=s-1,i=1-r,u=r*r,c=i*i;for(let e=7;e>=0;--e)Te[e]=(zt[e]*u-Ft[e])*a,xe[e]=(zt[e]*c-Ft[e])*a;let h=o*r*(1+Te[0]*(1+Te[1]*(1+Te[2]*(1+Te[3]*(1+Te[4]*(1+Te[5]*(1+Te[6]*(1+Te[7])))))))),p=i*(1+xe[0]*(1+xe[1]*(1+xe[2]*(1+xe[3]*(1+xe[4]*(1+xe[5]*(1+xe[6]*(1+xe[7])))))))),f=O.multiplyByScalar(e,p,Oo);return O.multiplyByScalar(t,h,n),O.add(f,n,n)},O.fastSquad=function(e,t,r,n,o,s){l.typeOf.object("q0",e),l.typeOf.object("q1",t),l.typeOf.object("s0",r),l.typeOf.object("s1",n),l.typeOf.number("t",o),l.typeOf.object("result",s);let a=O.fastSlerp(e,t,o,lt),i=O.fastSlerp(r,n,o,Ke);return O.fastSlerp(a,i,2*o*(1-o),s)},O.equals=function(e,t){return e===t||h(e)&&h(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w},O.equalsEpsilon=function(e,t,r){return r=r??0,e===t||h(e)&&h(t)&&Math.abs(e.x-t.x)<=r&&Math.abs(e.y-t.y)<=r&&Math.abs(e.z-t.z)<=r&&Math.abs(e.w-t.w)<=r},O.ZERO=Object.freeze(new O(0,0,0,0)),O.IDENTITY=Object.freeze(new O(0,0,0,1)),O.prototype.clone=function(e){return O.clone(this,e)},O.prototype.equals=function(e){return O.equals(this,e)},O.prototype.equalsEpsilon=function(e,t){return O.equalsEpsilon(this,e,t)},O.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};var He=O,M={},cn={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},et={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},un={},ce={east:new v,north:new v,up:new v,west:new v,south:new v,down:new v},Ue=new v,Me=new v,De=new v;M.localFrameToFixedFrameGenerator=function(e,t){if(!cn.hasOwnProperty(e)||!cn[e].hasOwnProperty(t))throw new T("firstAxis and secondAxis must be east, north, up, west, south or down.");let r,n=cn[e][t],o=e+t;return h(un[o])?r=un[o]:(r=function(r,o,s){if(!h(r))throw new T("origin is required.");if(isNaN(r.x)||isNaN(r.y)||isNaN(r.z))throw new T("origin has a NaN component");if(h(s)||(s=new N),v.equalsEpsilon(r,v.ZERO,_.EPSILON14))v.unpack(et[e],0,Ue),v.unpack(et[t],0,Me),v.unpack(et[n],0,De);else if(_.equalsEpsilon(r.x,0,_.EPSILON14)&&_.equalsEpsilon(r.y,0,_.EPSILON14)){let o=_.sign(r.z);v.unpack(et[e],0,Ue),"east"!==e&&"west"!==e&&v.multiplyByScalar(Ue,o,Ue),v.unpack(et[t],0,Me),"east"!==t&&"west"!==t&&v.multiplyByScalar(Me,o,Me),v.unpack(et[n],0,De),"east"!==n&&"west"!==n&&v.multiplyByScalar(De,o,De)}else{(o=o??Ce.default).geodeticSurfaceNormal(r,ce.up);let s=ce.up,a=ce.east;a.x=-r.y,a.y=r.x,a.z=0,v.normalize(a,ce.east),v.cross(s,a,ce.north),v.multiplyByScalar(ce.up,-1,ce.down),v.multiplyByScalar(ce.east,-1,ce.west),v.multiplyByScalar(ce.north,-1,ce.south),Ue=ce[e],Me=ce[t],De=ce[n]}return s[0]=Ue.x,s[1]=Ue.y,s[2]=Ue.z,s[3]=0,s[4]=Me.x,s[5]=Me.y,s[6]=Me.z,s[7]=0,s[8]=De.x,s[9]=De.y,s[10]=De.z,s[11]=0,s[12]=r.x,s[13]=r.y,s[14]=r.z,s[15]=1,s},un[o]=r),r},M.eastNorthUpToFixedFrame=M.localFrameToFixedFrameGenerator("east","north"),M.northEastDownToFixedFrame=M.localFrameToFixedFrameGenerator("north","east"),M.northUpEastToFixedFrame=M.localFrameToFixedFrameGenerator("north","up"),M.northWestUpToFixedFrame=M.localFrameToFixedFrameGenerator("north","west");var _o=new He,So=new v(1,1,1),vo=new N;M.headingPitchRollToFixedFrame=function(e,t,r,n,o){l.typeOf.object("HeadingPitchRoll",t),n=n??M.eastNorthUpToFixedFrame;let s=He.fromHeadingPitchRoll(t,_o),a=N.fromTranslationQuaternionRotationScale(v.ZERO,s,So,vo);return o=n(e,r,o),N.multiply(o,a,o)};var Eo=new N,To=new k;M.headingPitchRollQuaternion=function(e,t,r,n,o){l.typeOf.object("HeadingPitchRoll",t);let s=M.headingPitchRollToFixedFrame(e,t,r,n,Eo),a=N.getMatrix3(s,To);return He.fromRotationMatrix(a,o)};var xo=new v(1,1,1),Ao=new v,wr=new N,Co=new N,Ro=new k,Po=new He;M.fixedFrameToHeadingPitchRoll=function(e,t,r,n){l.defined("transform",e),t=t??Ce.default,r=r??M.eastNorthUpToFixedFrame,h(n)||(n=new Ut);let o=N.getTranslation(e,Ao);if(v.equals(o,v.ZERO))return n.heading=0,n.pitch=0,n.roll=0,n;let s=N.inverseTransformation(r(o,t,wr),wr),a=N.setScale(e,xo,Co);a=N.setTranslation(a,v.ZERO,a),s=N.multiply(s,a,s);let i=He.fromRotationMatrix(N.getMatrix3(s,Ro),Po);return i=He.normalize(i,i),Ut.fromQuaternion(i,n)};var Io=24110.54841,Uo=8640184.812866,Mo=.093104,Do=-62e-7,qo=11772758384668e-32,ko=72921158553e-15,jo=_.TWO_PI/86400,Lt=new K;M.computeIcrfToCentralBodyFixedMatrix=function(e,t){let r=M.computeIcrfToFixedMatrix(e,t);return h(r)||(r=M.computeTemeToPseudoFixedMatrix(e,t)),r},M.computeTemeToPseudoFixedMatrix=function(e,t){if(!h(e))throw new T("date is required.");let r,n=(Lt=K.addSeconds(e,-K.computeTaiMinusUtc(e),Lt)).dayNumber,o=Lt.secondsOfDay,s=n-2451545;r=o>=43200?(s+.5)/W.DAYS_PER_JULIAN_CENTURY:(s-.5)/W.DAYS_PER_JULIAN_CENTURY;let a=(Io+r*(Uo+r*(Mo+r*Do)))*jo%_.TWO_PI+(ko+qo*(n-2451545.5))*((o+.5*W.SECONDS_PER_DAY)%W.SECONDS_PER_DAY),i=Math.cos(a),u=Math.sin(a);return h(t)?(t[0]=i,t[1]=-u,t[2]=0,t[3]=u,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new k(i,u,0,-u,i,0,0,0,1)},M.iau2006XysData=new hr,M.earthOrientationParameters=ir.NONE;var ln=32.184,No=2451545;M.preloadIcrfFixed=function(e){let t=e.start.dayNumber,r=e.start.secondsOfDay+ln,n=e.stop.dayNumber,o=e.stop.secondsOfDay+ln;return M.iau2006XysData.preload(t,r,n,o)},M.computeIcrfToFixedMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let r=M.computeFixedToIcrfMatrix(e,t);if(h(r))return k.transpose(r,t)};var zo=32.184,Fo=2451545,Bt=new Ut,Lo=new k,Bo=new K;M.computeMoonFixedToIcrfMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let r=K.addSeconds(e,zo,Bo),n=K.totalDays(r)-Fo,o=_.toRadians(12.112)-_.toRadians(.052992)*n,s=_.toRadians(24.224)-_.toRadians(.105984)*n,a=_.toRadians(227.645)+_.toRadians(13.012)*n,i=_.toRadians(261.105)+_.toRadians(13.340716)*n,u=_.toRadians(358)+_.toRadians(.9856)*n;return Bt.pitch=_.toRadians(180)-_.toRadians(3.878)*Math.sin(o)-_.toRadians(.12)*Math.sin(s)+_.toRadians(.07)*Math.sin(a)-_.toRadians(.017)*Math.sin(i),Bt.roll=_.toRadians(-23.47)+_.toRadians(1.543)*Math.cos(o)+_.toRadians(.24)*Math.cos(s)-_.toRadians(.028)*Math.cos(a)+_.toRadians(.007)*Math.cos(i),Bt.heading=_.toRadians(154.375)+_.toRadians(13.17635831)*n+_.toRadians(3.558)*Math.sin(o)+_.toRadians(.121)*Math.sin(s)-_.toRadians(.064)*Math.sin(a)+_.toRadians(.016)*Math.sin(i)+_.toRadians(.025)*Math.sin(u),k.fromHeadingPitchRoll(Bt,Lo)},M.computeIcrfToMoonFixedMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let r=M.computeMoonFixedToIcrfMatrix(e,t);if(h(r))return k.transpose(r,t)};var Qo=new qt(0,0,0),Ho=new rt(0,0,0,0,0,0),fn=new k,hn=new k;M.computeFixedToIcrfMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let r=M.earthOrientationParameters.compute(e,Ho);if(!h(r))return;let n=e.dayNumber,o=e.secondsOfDay+ln,s=M.iau2006XysData.computeXysRadians(n,o,Qo);if(!h(s))return;let a=s.x+r.xPoleOffset,i=s.y+r.yPoleOffset,u=1/(1+Math.sqrt(1-a*a-i*i)),l=fn;l[0]=1-u*a*a,l[3]=-u*a*i,l[6]=a,l[1]=-u*a*i,l[4]=1-u*i*i,l[7]=i,l[2]=-a,l[5]=-i,l[8]=1-u*(a*a+i*i);let c=k.fromRotationZ(-s.s,hn),p=k.multiply(l,c,fn),f=e.dayNumber-2451545,d=(e.secondsOfDay-K.computeTaiMinusUtc(e)+r.ut1MinusUtc)/W.SECONDS_PER_DAY,m=.779057273264+d+.00273781191135448*(f+d);m=m%1*_.TWO_PI;let y=k.fromRotationZ(m,hn),g=k.multiply(p,y,fn),v=Math.cos(r.xPoleWander),w=Math.cos(r.yPoleWander),O=Math.sin(r.xPoleWander),b=Math.sin(r.yPoleWander),E=n-No+o/W.SECONDS_PER_DAY;E/=36525;let x=-47e-6*E*_.RADIANS_PER_DEGREE/3600,q=Math.cos(x),A=Math.sin(x),S=hn;return S[0]=v*q,S[1]=v*A,S[2]=O,S[3]=-w*A+b*O*q,S[4]=w*q+b*O*A,S[5]=-b*v,S[6]=-b*A-w*O*q,S[7]=b*q-w*O*A,S[8]=w*v,k.multiply(g,S,t)};var Wo=new mt;M.pointToWindowCoordinates=function(e,t,r,n){return(n=M.pointToGLWindowCoordinates(e,t,r,n)).y=2*t[5]-n.y,n},M.pointToGLWindowCoordinates=function(e,t,r,n){if(!h(e))throw new T("modelViewProjectionMatrix is required.");if(!h(t))throw new T("viewportTransformation is required.");if(!h(r))throw new T("point is required.");h(n)||(n=new se);let o=Wo;return N.multiplyByVector(e,mt.fromElements(r.x,r.y,r.z,1,o),o),mt.multiplyByScalar(o,1/o.w,o),N.multiplyByVector(t,o,o),se.fromCartesian4(o,n)};var $o=new v,Vo=new v,Yo=new v;M.rotationMatrixFromPositionVelocity=function(e,t,r,n){if(!h(e))throw new T("position is required.");if(!h(t))throw new T("velocity is required.");let o=(r??Ce.default).geodeticSurfaceNormal(e,$o),s=v.cross(t,o,Vo);v.equalsEpsilon(s,v.ZERO,_.EPSILON6)&&(s=v.clone(v.UNIT_X,s));let a=v.cross(s,t,Yo);return v.normalize(a,a),v.cross(t,a,s),v.negate(s,s),v.normalize(s,s),h(n)||(n=new k),n[0]=t.x,n[1]=t.y,n[2]=t.z,n[3]=s.x,n[4]=s.y,n[5]=s.z,n[6]=a.x,n[7]=a.y,n[8]=a.z,n},M.SWIZZLE_3D_TO_2D_MATRIX=Object.freeze(new N(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1));var br=new ve,dn=new v,Xo=new v,Zo=new k,pn=new N,Or=new N;M.basisTo2D=function(e,t,r){if(!h(e))throw new T("projection is required.");if(!h(t))throw new T("matrix is required.");if(!h(r))throw new T("result is required.");let n,o=N.getTranslation(t,Xo),s=e.ellipsoid;if(v.equals(o,v.ZERO))n=v.clone(v.ZERO,dn);else{let t=s.cartesianToCartographic(o,br);n=e.project(t,dn),v.fromElements(n.z,n.x,n.y,n)}let a=M.eastNorthUpToFixedFrame(o,s,pn),i=N.inverseTransformation(a,Or),u=N.getMatrix3(t,Zo),l=N.multiplyByMatrix3(i,u,r);return N.multiply(M.SWIZZLE_3D_TO_2D_MATRIX,l,r),N.setTranslation(r,n,r),r},M.ellipsoidTo2DModelMatrix=function(e,t,r){if(!h(e))throw new T("projection is required.");if(!h(t))throw new T("center is required.");if(!h(r))throw new T("result is required.");let n=e.ellipsoid,o=M.eastNorthUpToFixedFrame(t,n,pn),s=N.inverseTransformation(o,Or),a=n.cartesianToCartographic(t,br),i=e.project(a,dn);v.fromElements(i.z,i.x,i.y,i);let u=N.fromTranslation(i,pn);return N.multiply(M.SWIZZLE_3D_TO_2D_MATRIX,s,r),N.multiply(u,r,r),r};var _r=M,tt=class e{constructor(e,t,r,n){this.west=e??0,this.south=t??0,this.east=r??0,this.north=n??0}get width(){return e.computeWidth(this)}get height(){return e.computeHeight(this)}static pack(e,t,r){return l.typeOf.object("value",e),l.defined("array",t),r=r??0,t[r++]=e.west,t[r++]=e.south,t[r++]=e.east,t[r]=e.north,t}static unpack(t,r,n){return l.defined("array",t),r=r??0,h(n)||(n=new e),n.west=t[r++],n.south=t[r++],n.east=t[r++],n.north=t[r],n}static computeWidth(e){l.typeOf.object("rectangle",e);let t=e.east,r=e.west;return t<r&&(t+=_.TWO_PI),t-r}static computeHeight(e){return l.typeOf.object("rectangle",e),e.north-e.south}static fromDegrees(t,r,n,o,s){return t=_.toRadians(t??0),r=_.toRadians(r??0),n=_.toRadians(n??0),o=_.toRadians(o??0),h(s)?(s.west=t,s.south=r,s.east=n,s.north=o,s):new e(t,r,n,o)}static fromRadians(t,r,n,o,s){return h(s)?(s.west=t??0,s.south=r??0,s.east=n??0,s.north=o??0,s):new e(t,r,n,o)}static fromCartographicArray(t,r){l.defined("cartographics",t);let n=Number.MAX_VALUE,o=-Number.MAX_VALUE,s=Number.MAX_VALUE,a=-Number.MAX_VALUE,i=Number.MAX_VALUE,u=-Number.MAX_VALUE;for(let e=0,r=t.length;e<r;e++){let r=t[e];n=Math.min(n,r.longitude),o=Math.max(o,r.longitude),i=Math.min(i,r.latitude),u=Math.max(u,r.latitude);let l=r.longitude>=0?r.longitude:r.longitude+_.TWO_PI;s=Math.min(s,l),a=Math.max(a,l)}return o-n>a-s&&(n=s,o=a,o>_.PI&&(o-=_.TWO_PI),n>_.PI&&(n-=_.TWO_PI)),h(r)?(r.west=n,r.south=i,r.east=o,r.north=u,r):new e(n,i,o,u)}static fromCartesianArray(t,r,n){l.defined("cartesians",t),r=r??Ce.default;let o=Number.MAX_VALUE,s=-Number.MAX_VALUE,a=Number.MAX_VALUE,i=-Number.MAX_VALUE,u=Number.MAX_VALUE,c=-Number.MAX_VALUE;for(let e=0,n=t.length;e<n;e++){let n=r.cartesianToCartographic(t[e]);o=Math.min(o,n.longitude),s=Math.max(s,n.longitude),u=Math.min(u,n.latitude),c=Math.max(c,n.latitude);let l=n.longitude>=0?n.longitude:n.longitude+_.TWO_PI;a=Math.min(a,l),i=Math.max(i,l)}return s-o>i-a&&(o=a,s=i,s>_.PI&&(s-=_.TWO_PI),o>_.PI&&(o-=_.TWO_PI)),h(n)?(n.west=o,n.south=u,n.east=s,n.north=c,n):new e(o,u,s,c)}static fromBoundingSphere(t,r,n){l.typeOf.object("boundingSphere",t);let o=t.center,s=t.radius;if(h(r)||(r=Ce.default),h(n)||(n=new e),v.equals(o,v.ZERO))return e.clone(e.MAX_VALUE,n),n;let a=_r.eastNorthUpToFixedFrame(o,r,Jo),i=N.multiplyByPointAsVector(a,v.UNIT_X,Go);v.normalize(i,i);let u=N.multiplyByPointAsVector(a,v.UNIT_Y,Ko);v.normalize(u,u),v.multiplyByScalar(u,s,u),v.multiplyByScalar(i,s,i);let c=v.negate(u,ti),p=v.negate(i,ei),f=mn,d=f[0];return v.add(o,u,d),d=f[1],v.add(o,p,d),d=f[2],v.add(o,c,d),d=f[3],v.add(o,i,d),f[4]=o,e.fromCartesianArray(f,r,n)}static clone(t,r){if(h(t))return h(r)?(r.west=t.west,r.south=t.south,r.east=t.east,r.north=t.north,r):new e(t.west,t.south,t.east,t.north)}static equalsEpsilon(e,t,r){return r=r??0,e===t||h(e)&&h(t)&&Math.abs(e.west-t.west)<=r&&Math.abs(e.south-t.south)<=r&&Math.abs(e.east-t.east)<=r&&Math.abs(e.north-t.north)<=r}clone(t){return e.clone(this,t)}equals(t){return e.equals(this,t)}static equals(e,t){return e===t||h(e)&&h(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north}equalsEpsilon(t,r){return e.equalsEpsilon(this,t,r)}static _validate(e){l.typeOf.object("rectangle",e);let t=e.north;l.typeOf.number.greaterThanOrEquals("north",t,-_.PI_OVER_TWO),l.typeOf.number.lessThanOrEquals("north",t,_.PI_OVER_TWO);let r=e.south;l.typeOf.number.greaterThanOrEquals("south",r,-_.PI_OVER_TWO),l.typeOf.number.lessThanOrEquals("south",r,_.PI_OVER_TWO);let n=e.west;l.typeOf.number.greaterThanOrEquals("west",n,-Math.PI),l.typeOf.number.lessThanOrEquals("west",n,Math.PI);let o=e.east;l.typeOf.number.greaterThanOrEquals("east",o,-Math.PI),l.typeOf.number.lessThanOrEquals("east",o,Math.PI)}static southwest(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new ve(e.west,e.south)}static northwest(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new ve(e.west,e.north)}static northeast(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new ve(e.east,e.north)}static southeast(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new ve(e.east,e.south)}static center(e,t){l.typeOf.object("rectangle",e);let r=e.east,n=e.west;r<n&&(r+=_.TWO_PI);let o=_.negativePiToPi(.5*(n+r)),s=.5*(e.south+e.north);return h(t)?(t.longitude=o,t.latitude=s,t.height=0,t):new ve(o,s)}static intersection(t,r,n){l.typeOf.object("rectangle",t),l.typeOf.object("otherRectangle",r);let o=t.east,s=t.west,a=r.east,i=r.west;o<s&&a>0?o+=_.TWO_PI:a<i&&o>0&&(a+=_.TWO_PI),o<s&&i<0?i+=_.TWO_PI:a<i&&s<0&&(s+=_.TWO_PI);let u=_.negativePiToPi(Math.max(s,i)),c=_.negativePiToPi(Math.min(o,a));if((t.west<t.east||r.west<r.east)&&c<=u)return;let p=Math.max(t.south,r.south),f=Math.min(t.north,r.north);return p>=f?void 0:h(n)?(n.west=u,n.south=p,n.east=c,n.north=f,n):new e(u,p,c,f)}static simpleIntersection(t,r,n){l.typeOf.object("rectangle",t),l.typeOf.object("otherRectangle",r);let o=Math.max(t.west,r.west),s=Math.max(t.south,r.south),a=Math.min(t.east,r.east),i=Math.min(t.north,r.north);if(!(s>=i||o>=a))return h(n)?(n.west=o,n.south=s,n.east=a,n.north=i,n):new e(o,s,a,i)}static union(t,r,n){l.typeOf.object("rectangle",t),l.typeOf.object("otherRectangle",r),h(n)||(n=new e);let o=t.east,s=t.west,a=r.east,i=r.west;o<s&&a>0?o+=_.TWO_PI:a<i&&o>0&&(a+=_.TWO_PI),o<s&&i<0?i+=_.TWO_PI:a<i&&s<0&&(s+=_.TWO_PI);let u=_.negativePiToPi(Math.min(s,i)),c=_.negativePiToPi(Math.max(o,a));return n.west=u,n.south=Math.min(t.south,r.south),n.east=c,n.north=Math.max(t.north,r.north),n}static expand(t,r,n){return l.typeOf.object("rectangle",t),l.typeOf.object("cartographic",r),h(n)||(n=new e),n.west=Math.min(t.west,r.longitude),n.south=Math.min(t.south,r.latitude),n.east=Math.max(t.east,r.longitude),n.north=Math.max(t.north,r.latitude),n}static contains(e,t){l.typeOf.object("rectangle",e),l.typeOf.object("cartographic",t);let r=t.longitude,n=t.latitude,o=e.west,s=e.east;return s<o&&(s+=_.TWO_PI,r<0&&(r+=_.TWO_PI)),(r>o||_.equalsEpsilon(r,o,_.EPSILON14))&&(r<s||_.equalsEpsilon(r,s,_.EPSILON14))&&n>=e.south&&n<=e.north}static subsample(t,r,n,o){l.typeOf.object("rectangle",t),r=r??Ce.default,n=n??0,h(o)||(o=[]);let s=0,a=t.north,i=t.south,u=t.east,c=t.west,p=ni;p.height=n,p.longitude=c,p.latitude=a,o[s]=r.cartographicToCartesian(p,o[s]),s++,p.longitude=u,o[s]=r.cartographicToCartesian(p,o[s]),s++,p.latitude=i,o[s]=r.cartographicToCartesian(p,o[s]),s++,p.longitude=c,o[s]=r.cartographicToCartesian(p,o[s]),s++,p.latitude=a<0?a:i>0?i:0;for(let n=1;n<8;++n)p.longitude=-Math.PI+n*_.PI_OVER_TWO,e.contains(t,p)&&(o[s]=r.cartographicToCartesian(p,o[s]),s++);return 0===p.latitude&&(p.longitude=c,o[s]=r.cartographicToCartesian(p,o[s]),s++,p.longitude=u,o[s]=r.cartographicToCartesian(p,o[s]),s++),o.length=s,o}static subsection(t,r,n,o,s,a){if(l.typeOf.object("rectangle",t),l.typeOf.number.greaterThanOrEquals("westLerp",r,0),l.typeOf.number.lessThanOrEquals("westLerp",r,1),l.typeOf.number.greaterThanOrEquals("southLerp",n,0),l.typeOf.number.lessThanOrEquals("southLerp",n,1),l.typeOf.number.greaterThanOrEquals("eastLerp",o,0),l.typeOf.number.lessThanOrEquals("eastLerp",o,1),l.typeOf.number.greaterThanOrEquals("northLerp",s,0),l.typeOf.number.lessThanOrEquals("northLerp",s,1),l.typeOf.number.lessThanOrEquals("westLerp",r,o),l.typeOf.number.lessThanOrEquals("southLerp",n,s),h(a)||(a=new e),t.west<=t.east){let e=t.east-t.west;a.west=t.west+r*e,a.east=t.west+o*e}else{let e=_.TWO_PI+t.east-t.west;a.west=_.negativePiToPi(t.west+r*e),a.east=_.negativePiToPi(t.west+o*e)}let i=t.north-t.south;return a.south=t.south+n*i,a.north=t.south+s*i,1===r&&(a.west=t.east),1===o&&(a.east=t.east),1===n&&(a.south=t.north),1===s&&(a.north=t.north),a}};tt.packedLength=4;var Jo=new N,Go=new v,Ko=new v,ei=new v,ti=new v,mn=new Array(5);for(let e=0;e<mn.length;++e)mn[e]=new v;var ni=new ve;tt.MAX_VALUE=Object.freeze(new tt(-Math.PI,-_.PI_OVER_TWO,Math.PI,_.PI_OVER_TWO));var gc=tt,ue=class e{constructor(e,t,r,n){this[0]=e??0,this[1]=r??0,this[2]=t??0,this[3]=n??0}static pack(e,t,r){return l.typeOf.object("value",e),l.defined("array",t),r=r??0,t[r++]=e[0],t[r++]=e[1],t[r++]=e[2],t[r++]=e[3],t}static unpack(t,r,n){return l.defined("array",t),r=r??0,h(n)||(n=new e),n[0]=t[r++],n[1]=t[r++],n[2]=t[r++],n[3]=t[r++],n}static packArray(t,r){l.defined("array",t);let n=t.length,o=4*n;if(h(r)){if(!Array.isArray(r)&&r.length!==o)throw new T("If result is a typed array, it must have exactly array.length * 4 elements");r.length!==o&&(r.length=o)}else r=new Array(o);for(let o=0;o<n;++o)e.pack(t[o],r,4*o);return r}static unpackArray(t,r){if(l.defined("array",t),l.typeOf.number.greaterThanOrEquals("array.length",t.length,4),t.length%4!=0)throw new T("array length must be a multiple of 4.");let n=t.length;h(r)?r.length=n/4:r=new Array(n/4);for(let o=0;o<n;o+=4){let n=o/4;r[n]=e.unpack(t,o,r[n])}return r}static clone(t,r){if(h(t))return h(r)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r):new e(t[0],t[2],t[1],t[3])}static fromColumnMajorArray(t,r){return l.defined("values",t),e.clone(t,r)}static fromRowMajorArray(t,r){return l.defined("values",t),h(r)?(r[0]=t[0],r[1]=t[2],r[2]=t[1],r[3]=t[3],r):new e(t[0],t[1],t[2],t[3])}static fromScale(t,r){return l.typeOf.object("scale",t),h(r)?(r[0]=t.x,r[1]=0,r[2]=0,r[3]=t.y,r):new e(t.x,0,0,t.y)}static fromUniformScale(t,r){return l.typeOf.number("scale",t),h(r)?(r[0]=t,r[1]=0,r[2]=0,r[3]=t,r):new e(t,0,0,t)}static fromRotation(t,r){l.typeOf.number("angle",t);let n=Math.cos(t),o=Math.sin(t);return h(r)?(r[0]=n,r[1]=o,r[2]=-o,r[3]=n,r):new e(n,-o,o,n)}static toArray(e,t){return l.typeOf.object("matrix",e),h(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):[e[0],e[1],e[2],e[3]]}static getElementIndex(e,t){return l.typeOf.number.greaterThanOrEquals("row",t,0),l.typeOf.number.lessThanOrEquals("row",t,1),l.typeOf.number.greaterThanOrEquals("column",e,0),l.typeOf.number.lessThanOrEquals("column",e,1),2*e+t}static getColumn(e,t,r){l.typeOf.object("matrix",e),l.typeOf.number.greaterThanOrEquals("index",t,0),l.typeOf.number.lessThanOrEquals("index",t,1),l.typeOf.object("result",r);let n=2*t,o=e[n],s=e[n+1];return r.x=o,r.y=s,r}static setColumn(t,r,n,o){l.typeOf.object("matrix",t),l.typeOf.number.greaterThanOrEquals("index",r,0),l.typeOf.number.lessThanOrEquals("index",r,1),l.typeOf.object("cartesian",n),l.typeOf.object("result",o);let s=2*r;return(o=e.clone(t,o))[s]=n.x,o[s+1]=n.y,o}static getRow(e,t,r){l.typeOf.object("matrix",e),l.typeOf.number.greaterThanOrEquals("index",t,0),l.typeOf.number.lessThanOrEquals("index",t,1),l.typeOf.object("result",r);let n=e[t],o=e[t+2];return r.x=n,r.y=o,r}static setRow(t,r,n,o){return l.typeOf.object("matrix",t),l.typeOf.number.greaterThanOrEquals("index",r,0),l.typeOf.number.lessThanOrEquals("index",r,1),l.typeOf.object("cartesian",n),l.typeOf.object("result",o),(o=e.clone(t,o))[r]=n.x,o[r+2]=n.y,o}static setScale(t,r,n){l.typeOf.object("matrix",t),l.typeOf.object("scale",r),l.typeOf.object("result",n);let o=e.getScale(t,ri),s=r.x/o.x,a=r.y/o.y;return n[0]=t[0]*s,n[1]=t[1]*s,n[2]=t[2]*a,n[3]=t[3]*a,n}static setUniformScale(t,r,n){l.typeOf.object("matrix",t),l.typeOf.number("scale",r),l.typeOf.object("result",n);let o=e.getScale(t,oi),s=r/o.x,a=r/o.y;return n[0]=t[0]*s,n[1]=t[1]*s,n[2]=t[2]*a,n[3]=t[3]*a,n}static getScale(e,t){return l.typeOf.object("matrix",e),l.typeOf.object("result",t),t.x=se.magnitude(se.fromElements(e[0],e[1],Sr)),t.y=se.magnitude(se.fromElements(e[2],e[3],Sr)),t}static getMaximumScale(t){return e.getScale(t,vr),se.maximumComponent(vr)}static setRotation(t,r,n){l.typeOf.object("matrix",t),l.typeOf.object("result",n);let o=e.getScale(t,ii);return n[0]=r[0]*o.x,n[1]=r[1]*o.x,n[2]=r[2]*o.y,n[3]=r[3]*o.y,n}static getRotation(t,r){l.typeOf.object("matrix",t),l.typeOf.object("result",r);let n=e.getScale(t,si);return r[0]=t[0]/n.x,r[1]=t[1]/n.x,r[2]=t[2]/n.y,r[3]=t[3]/n.y,r}static multiply(e,t,r){l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",r);let n=e[0]*t[0]+e[2]*t[1],o=e[0]*t[2]+e[2]*t[3],s=e[1]*t[0]+e[3]*t[1],a=e[1]*t[2]+e[3]*t[3];return r[0]=n,r[1]=s,r[2]=o,r[3]=a,r}static add(e,t,r){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",r),r[0]=e[0]+t[0],r[1]=e[1]+t[1],r[2]=e[2]+t[2],r[3]=e[3]+t[3],r}static subtract(e,t,r){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",r),r[0]=e[0]-t[0],r[1]=e[1]-t[1],r[2]=e[2]-t[2],r[3]=e[3]-t[3],r}static multiplyByVector(e,t,r){l.typeOf.object("matrix",e),l.typeOf.object("cartesian",t),l.typeOf.object("result",r);let n=e[0]*t.x+e[2]*t.y,o=e[1]*t.x+e[3]*t.y;return r.x=n,r.y=o,r}static multiplyByScalar(e,t,r){return l.typeOf.object("matrix",e),l.typeOf.number("scalar",t),l.typeOf.object("result",r),r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r}static multiplyByScale(e,t,r){return l.typeOf.object("matrix",e),l.typeOf.object("scale",t),l.typeOf.object("result",r),r[0]=e[0]*t.x,r[1]=e[1]*t.x,r[2]=e[2]*t.y,r[3]=e[3]*t.y,r}static multiplyByUniformScale(e,t,r){return l.typeOf.object("matrix",e),l.typeOf.number("scale",t),l.typeOf.object("result",r),r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t,r[3]=e[3]*t,r}static negate(e,t){return l.typeOf.object("matrix",e),l.typeOf.object("result",t),t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}static transpose(e,t){l.typeOf.object("matrix",e),l.typeOf.object("result",t);let r=e[0],n=e[2],o=e[1],s=e[3];return t[0]=r,t[1]=n,t[2]=o,t[3]=s,t}static abs(e,t){return l.typeOf.object("matrix",e),l.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t}static equals(e,t){return e===t||h(e)&&h(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]}static equalsArray(e,t,r){return e[0]===t[r]&&e[1]===t[r+1]&&e[2]===t[r+2]&&e[3]===t[r+3]}static equalsEpsilon(e,t,r){return r=r??0,e===t||h(e)&&h(t)&&Math.abs(e[0]-t[0])<=r&&Math.abs(e[1]-t[1])<=r&&Math.abs(e[2]-t[2])<=r&&Math.abs(e[3]-t[3])<=r}get length(){return e.packedLength}clone(t){return e.clone(this,t)}equals(t){return e.equals(this,t)}equalsEpsilon(t,r){return e.equalsEpsilon(this,t,r)}toString(){return`(${this[0]}, ${this[2]})\n(${this[1]}, ${this[3]})`}};ue.packedLength=4,ue.fromArray=ue.unpack,ue.IDENTITY=Object.freeze(new ue(1,0,0,1)),ue.ZERO=Object.freeze(new ue(0,0,0,0)),ue.COLUMN0ROW0=0,ue.COLUMN0ROW1=1,ue.COLUMN1ROW0=2,ue.COLUMN1ROW1=3;var ri=new se,oi=new se,Sr=new se,vr=new se,ii=new se,si=new se,vc=ue;export{je as a,Ne as b,Re as c,kn as d,$n as e,Ie as f,fr as g,He as h,_r as i,gc as j,vc as k};
|
|
@@ -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
|
+
var e={NONE:0,TOP:1,ALL:2};Object.freeze(e);var t=e;export{t 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 h}from"./chunk-P5EFSOUF.js";import{b as y}from"./chunk-2AIOP76V.js";import{a as n,b as a}from"./chunk-IAE6APK2.js";import{b as f}from"./chunk-NZBME2JK.js";var x={},b=new n,P=new n,B=new n,M=new n,w=new h;function z(e,t,o,r,i){let u=n.subtract(e,t,b),a=n.dot(o,u),m=n.dot(r,u);return y.fromElements(a,m,i)}x.validOutline=function(e){f.defined("positions",e);let t=h.fromPoints(e,w).halfAxes,o=a.getColumn(t,0,P),r=a.getColumn(t,1,B),i=a.getColumn(t,2,M),u=n.magnitude(o),m=n.magnitude(r),s=n.magnitude(i);return!(0===u&&(0===m||0===s)||0===m&&0===s)},x.computeProjectTo2DArguments=function(e,t,o,r){f.defined("positions",e),f.defined("centerResult",t),f.defined("planeAxis1Result",o),f.defined("planeAxis2Result",r);let i,u,m=h.fromPoints(e,w),s=m.halfAxes,l=a.getColumn(s,0,P),c=a.getColumn(s,1,B),d=a.getColumn(s,2,M),g=n.magnitude(l),x=n.magnitude(c),p=n.magnitude(d),A=Math.min(g,x,p);return(0!==g||0!==x&&0!==p)&&(0!==x||0!==p)&&((A===x||A===p)&&(i=l),A===g?i=c:A===p&&(u=c),(A===g||A===x)&&(u=d),n.normalize(i,o),n.normalize(u,r),n.clone(m.center,t),!0)},x.createProjectPointsTo2DFunction=function(n,e,t){return function(o){let r=new Array(o.length);for(let i=0;i<o.length;i++)r[i]=z(o[i],n,e,t);return r}},x.createProjectPointTo2DFunction=function(n,e,t){return function(o,r){return z(o,n,e,t,r)}};var O=x;export{O 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{f as u}from"./chunk-6DLS2UKD.js";function f(t){let e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}u(Object.create)&&(f.prototype=Object.create(Error.prototype),f.prototype.constructor=f),f.prototype.toString=function(){let t=`${this.name}: ${this.message}`;return u(this.stack)&&(t+=`\n${this.stack.toString()}`),t},f.throwInstantiationError=function(){throw new f("This function defines an interface and should not be called directly.")};var r=f,n={};function c(t){return`${t} is required, actual value was undefined`}function a(t,e,n){return`Expected ${n} to be typeof ${e}, actual typeof was ${t}`}n.typeOf={},n.defined=function(t,e){if(!u(e))throw new r(c(t))},n.typeOf.func=function(t,e){if("function"!=typeof e)throw new r(a(typeof e,"function",t))},n.typeOf.string=function(t,e){if("string"!=typeof e)throw new r(a(typeof e,"string",t))},n.typeOf.number=function(t,e){if("number"!=typeof e)throw new r(a(typeof e,"number",t))},n.typeOf.number.lessThan=function(t,e,o){if(n.typeOf.number(t,e),e>=o)throw new r(`Expected ${t} to be less than ${o}, actual value was ${e}`)},n.typeOf.number.lessThanOrEquals=function(t,e,o){if(n.typeOf.number(t,e),e>o)throw new r(`Expected ${t} to be less than or equal to ${o}, actual value was ${e}`)},n.typeOf.number.greaterThan=function(t,e,o){if(n.typeOf.number(t,e),e<=o)throw new r(`Expected ${t} to be greater than ${o}, actual value was ${e}`)},n.typeOf.number.greaterThanOrEquals=function(t,e,o){if(n.typeOf.number(t,e),e<o)throw new r(`Expected ${t} to be greater than or equal to ${o}, actual value was ${e}`)},n.typeOf.object=function(t,e){if("object"!=typeof e)throw new r(a(typeof e,"object",t))},n.typeOf.bool=function(t,e){if("boolean"!=typeof e)throw new r(a(typeof e,"boolean",t))},n.typeOf.bigint=function(t,e){if("bigint"!=typeof e)throw new r(a(typeof e,"bigint",t))},n.typeOf.number.equals=function(t,e,o,f){if(n.typeOf.number(t,o),n.typeOf.number(e,f),o!==f)throw new r(`${t} must be equal to ${e}, the actual values are ${o} and ${f}`)};var l=n;export{r as a,l as b};
|
|
@@ -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 J}from"./chunk-BDWA46XV.js";import{a as I}from"./chunk-5AAMOBJK.js";import{b as G,c as k}from"./chunk-D3TVNJ6W.js";import{a as B}from"./chunk-3VUCSHGU.js";import{j as X}from"./chunk-LNJEJFV5.js";import{b as j}from"./chunk-BPABSUDY.js";import{a as S,b as z,c as F}from"./chunk-2AIOP76V.js";import{a as t,b as d}from"./chunk-IAE6APK2.js";import{a as g}from"./chunk-3E7FIXV7.js";import{a as b,b as W}from"./chunk-NZBME2JK.js";import{f as p}from"./chunk-6DLS2UKD.js";function w(e,n){this.center=t.clone(e??t.ZERO),this.halfAxes=d.clone(n??d.ZERO)}w.packedLength=t.packedLength+d.packedLength,w.pack=function(e,n,a){return W.typeOf.object("value",e),W.defined("array",n),a=a??0,t.pack(e.center,n,a),d.pack(e.halfAxes,n,a+t.packedLength),n},w.unpack=function(e,n,a){return W.defined("array",e),n=n??0,p(a)||(a=new w),t.unpack(e,n,a.center),d.unpack(e,n+t.packedLength,a.halfAxes),a};var pt=new t,Ct=new t,ut=new t,Pt=new t,xt=new t,yt=new t,At=new d,Nt={unitary:new d,diagonal:new d};w.fromPoints=function(e,n){if(p(n)||(n=new w),!p(e)||0===e.length)return n.halfAxes=d.ZERO,n.center=t.ZERO,n;let a,r=e.length,o=t.clone(e[0],pt);for(a=1;a<r;a++)t.add(o,e[a],o);let i=1/r;t.multiplyByScalar(o,i,o);let s,c=0,u=0,l=0,h=0,m=0,f=0;for(a=0;a<r;a++)s=t.subtract(e[a],o,Ct),c+=s.x*s.x,u+=s.x*s.y,l+=s.x*s.z,h+=s.y*s.y,m+=s.y*s.z,f+=s.z*s.z;c*=i,u*=i,l*=i,h*=i,m*=i,f*=i;let b=At;b[0]=c,b[1]=u,b[2]=l,b[3]=u,b[4]=h,b[5]=m,b[6]=l,b[7]=m,b[8]=f;let x=d.computeEigenDecomposition(b,Nt),g=d.clone(x.unitary,n.halfAxes),y=d.getColumn(g,0,Pt),M=d.getColumn(g,1,xt),O=d.getColumn(g,2,yt),A=-Number.MAX_VALUE,N=-Number.MAX_VALUE,I=-Number.MAX_VALUE,T=Number.MAX_VALUE,S=Number.MAX_VALUE,C=Number.MAX_VALUE;for(a=0;a<r;a++)s=e[a],A=Math.max(t.dot(y,s),A),N=Math.max(t.dot(M,s),N),I=Math.max(t.dot(O,s),I),T=Math.min(t.dot(y,s),T),S=Math.min(t.dot(M,s),S),C=Math.min(t.dot(O,s),C);y=t.multiplyByScalar(y,.5*(T+A),y),M=t.multiplyByScalar(M,.5*(S+N),M),O=t.multiplyByScalar(O,.5*(C+I),O);let P=t.add(y,M,n.center);t.add(P,O,P);let E=ut;return E.x=A-T,E.y=N-S,E.z=I-C,t.multiplyByScalar(E,.5,E),d.multiplyByScale(n.halfAxes,E,n.halfAxes),n};var et=new t,Mt=new t;function K(e,n,a,r,o,i,s,c,u,l,h){if(!(p(o)&&p(i)&&p(s)&&p(c)&&p(u)&&p(l)))throw new b("all extents (minimum/maximum X/Y/Z) are required.");p(h)||(h=new w);let m=h.halfAxes;d.setColumn(m,0,n,m),d.setColumn(m,1,a,m),d.setColumn(m,2,r,m);let f=et;f.x=(o+i)/2,f.y=(s+c)/2,f.z=(u+l)/2;let x=Mt;x.x=(i-o)/2,x.y=(c-s)/2,x.z=(l-u)/2;let g=h.center;return f=d.multiplyByVector(m,f,f),t.add(e,f,g),d.multiplyByScale(m,x,m),h}var Q=new S,Ot=new t,bt=new S,Tt=new S,St=new S,gt=new S,Et=new S,Rt=new t,$=new t,Wt=new t,H=new t,zt=new t,It=new z,Lt=new z,Ut=new z,qt=new z,jt=new z,Bt=new t,vt=new t,_t=new t,Vt=new t,Dt=new z,Xt=new t,kt=new t,Zt=new t,Yt=new I(t.UNIT_X,0);w.fromRectangle=function(e,n,a,r,o){if(!p(e))throw new b("rectangle is required");if(e.width<0||e.width>g.TWO_PI)throw new b("Rectangle width must be between 0 and 2 * pi");if(e.height<0||e.height>g.PI)throw new b("Rectangle height must be between 0 and pi");if(p(r)&&!g.equalsEpsilon(r.radii.x,r.radii.y,g.EPSILON15))throw new b("Ellipsoid must be an ellipsoid of revolution (radii.x == radii.y)");let i,s,c,d,u,l,w;if(n=n??0,a=a??0,r=r??F.default,e.width<=g.PI){let t=X.center(e,Q),h=r.cartographicToCartesian(t,Ot),m=new J(h,r);w=m.plane;let p=t.longitude,f=e.south<0&&e.north>0?0:t.latitude,b=S.fromRadians(p,e.north,a,bt),x=S.fromRadians(e.west,e.north,a,Tt),g=S.fromRadians(e.west,f,a,St),y=S.fromRadians(e.west,e.south,a,gt),M=S.fromRadians(p,e.south,a,Et),O=r.cartographicToCartesian(b,Rt),A=r.cartographicToCartesian(x,$),N=r.cartographicToCartesian(g,Wt),T=r.cartographicToCartesian(y,H),C=r.cartographicToCartesian(M,zt),P=m.projectPointToNearestOnPlane(O,It),E=m.projectPointToNearestOnPlane(A,Lt),R=m.projectPointToNearestOnPlane(N,Ut),U=m.projectPointToNearestOnPlane(T,qt),j=m.projectPointToNearestOnPlane(C,jt);return i=Math.min(E.x,R.x,U.x),s=-i,d=Math.max(E.y,P.y),c=Math.min(U.y,j.y),x.height=y.height=n,A=r.cartographicToCartesian(x,$),T=r.cartographicToCartesian(y,H),u=Math.min(I.getPointDistance(w,A),I.getPointDistance(w,T)),l=a,K(m.origin,m.xAxis,m.yAxis,m.zAxis,i,s,c,d,u,l,o)}let h=e.south>0,m=e.north<0,f=h?e.south:m?e.north:0,x=X.center(e,Q).longitude,y=t.fromRadians(x,f,a,r,Bt);y.z=0;let M=Math.abs(y.x)<g.EPSILON10&&Math.abs(y.y)<g.EPSILON10?t.UNIT_X:t.normalize(y,vt),O=t.UNIT_Z,A=t.cross(M,O,_t);w=I.fromPointNormal(y,M,Yt);let N=t.fromRadians(x+g.PI_OVER_TWO,f,a,r,Vt);s=t.dot(I.projectPointOntoPlane(w,N,Dt),A),i=-s,d=t.fromRadians(0,e.north,m?n:a,r,Xt).z,c=t.fromRadians(0,e.south,h?n:a,r,kt).z;let T=t.fromRadians(e.east,f,a,r,Zt);return u=I.getPointDistance(w,T),l=0,K(y,A,O,M,i,s,c,d,u,l,o)},w.fromTransformation=function(t,e){return W.typeOf.object("transformation",t),p(e)||(e=new w),e.center=j.getTranslation(t,e.center),e.halfAxes=j.getMatrix3(t,e.halfAxes),e.halfAxes=d.multiplyByScalar(e.halfAxes,.5,e.halfAxes),e},w.clone=function(e,n){if(p(e))return p(n)?(t.clone(e.center,n.center),d.clone(e.halfAxes,n.halfAxes),n):new w(e.center,e.halfAxes)},w.intersectPlane=function(e,n){if(!p(e))throw new b("box is required.");if(!p(n))throw new b("plane is required.");let a=e.center,r=n.normal,o=e.halfAxes,i=r.x,s=r.y,c=r.z,u=Math.abs(i*o[d.COLUMN0ROW0]+s*o[d.COLUMN0ROW1]+c*o[d.COLUMN0ROW2])+Math.abs(i*o[d.COLUMN1ROW0]+s*o[d.COLUMN1ROW1]+c*o[d.COLUMN1ROW2])+Math.abs(i*o[d.COLUMN2ROW0]+s*o[d.COLUMN2ROW1]+c*o[d.COLUMN2ROW2]),l=t.dot(r,a)+n.distance;return l<=-u?B.OUTSIDE:l>=u?B.INSIDE:B.INTERSECTING};var nt=new t,at=new t,ct=new t,Ft=new t,tt=new t,Gt=new t;w.distanceSquaredTo=function(e,n){if(!p(e))throw new b("box is required.");if(!p(n))throw new b("cartesian is required.");let a=t.subtract(n,e.center,et),r=e.halfAxes,o=d.getColumn(r,0,nt),i=d.getColumn(r,1,at),s=d.getColumn(r,2,ct),c=t.magnitude(o),u=t.magnitude(i),l=t.magnitude(s),w=!0,h=!0,m=!0;c>0?t.divideByScalar(o,c,o):w=!1,u>0?t.divideByScalar(i,u,i):h=!1,l>0?t.divideByScalar(s,l,s):m=!1;let f,x,y,M=!w+!h+!m;if(1===M){let e=o;f=i,x=s,h?m||(e=s,x=o):(e=i,f=o),y=t.cross(f,x,tt),e===o?o=y:e===i?i=y:e===s&&(s=y)}else if(2===M){f=o,h?f=i:m&&(f=s);let e=t.UNIT_Y;e.equalsEpsilon(f,g.EPSILON3)&&(e=t.UNIT_X),x=t.cross(f,e,Ft),t.normalize(x,x),y=t.cross(f,x,tt),t.normalize(y,y),f===o?(i=x,s=y):f===i?(s=x,o=y):f===s&&(o=x,i=y)}else 3===M&&(o=t.UNIT_X,i=t.UNIT_Y,s=t.UNIT_Z);let O=Gt;O.x=t.dot(a,o),O.y=t.dot(a,i),O.z=t.dot(a,s);let A,N=0;return O.x<-c?(A=O.x+c,N+=A*A):O.x>c&&(A=O.x-c,N+=A*A),O.y<-u?(A=O.y+u,N+=A*A):O.y>u&&(A=O.y-u,N+=A*A),O.z<-l?(A=O.z+l,N+=A*A):O.z>l&&(A=O.z-l,N+=A*A),N};var Jt=new t,Kt=new t;w.computePlaneDistances=function(e,n,a,r){if(!p(e))throw new b("box is required.");if(!p(n))throw new b("position is required.");if(!p(a))throw new b("direction is required.");p(r)||(r=new G);let o=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY,s=e.center,c=e.halfAxes,u=d.getColumn(c,0,nt),l=d.getColumn(c,1,at),w=d.getColumn(c,2,ct),h=t.add(u,l,Jt);t.add(h,w,h),t.add(h,s,h);let m=t.subtract(h,n,Kt),f=t.dot(a,m);return o=Math.min(f,o),i=Math.max(f,i),t.add(s,u,h),t.add(h,l,h),t.subtract(h,w,h),t.subtract(h,n,m),f=t.dot(a,m),o=Math.min(f,o),i=Math.max(f,i),t.add(s,u,h),t.subtract(h,l,h),t.add(h,w,h),t.subtract(h,n,m),f=t.dot(a,m),o=Math.min(f,o),i=Math.max(f,i),t.add(s,u,h),t.subtract(h,l,h),t.subtract(h,w,h),t.subtract(h,n,m),f=t.dot(a,m),o=Math.min(f,o),i=Math.max(f,i),t.subtract(s,u,h),t.add(h,l,h),t.add(h,w,h),t.subtract(h,n,m),f=t.dot(a,m),o=Math.min(f,o),i=Math.max(f,i),t.subtract(s,u,h),t.add(h,l,h),t.subtract(h,w,h),t.subtract(h,n,m),f=t.dot(a,m),o=Math.min(f,o),i=Math.max(f,i),t.subtract(s,u,h),t.subtract(h,l,h),t.add(h,w,h),t.subtract(h,n,m),f=t.dot(a,m),o=Math.min(f,o),i=Math.max(f,i),t.subtract(s,u,h),t.subtract(h,l,h),t.subtract(h,w,h),t.subtract(h,n,m),f=t.dot(a,m),o=Math.min(f,o),i=Math.max(f,i),r.start=o,r.stop=i,r};var Qt=new t,$t=new t,Ht=new t;w.computeCorners=function(e,n){W.typeOf.object("box",e),p(n)||(n=[new t,new t,new t,new t,new t,new t,new t,new t]);let a=e.center,r=e.halfAxes,o=d.getColumn(r,0,Qt),i=d.getColumn(r,1,$t),s=d.getColumn(r,2,Ht);return t.clone(a,n[0]),t.subtract(n[0],o,n[0]),t.subtract(n[0],i,n[0]),t.subtract(n[0],s,n[0]),t.clone(a,n[1]),t.subtract(n[1],o,n[1]),t.subtract(n[1],i,n[1]),t.add(n[1],s,n[1]),t.clone(a,n[2]),t.subtract(n[2],o,n[2]),t.add(n[2],i,n[2]),t.subtract(n[2],s,n[2]),t.clone(a,n[3]),t.subtract(n[3],o,n[3]),t.add(n[3],i,n[3]),t.add(n[3],s,n[3]),t.clone(a,n[4]),t.add(n[4],o,n[4]),t.subtract(n[4],i,n[4]),t.subtract(n[4],s,n[4]),t.clone(a,n[5]),t.add(n[5],o,n[5]),t.subtract(n[5],i,n[5]),t.add(n[5],s,n[5]),t.clone(a,n[6]),t.add(n[6],o,n[6]),t.add(n[6],i,n[6]),t.subtract(n[6],s,n[6]),t.clone(a,n[7]),t.add(n[7],o,n[7]),t.add(n[7],i,n[7]),t.add(n[7],s,n[7]),n};var te=new d;w.computeTransformation=function(t,e){W.typeOf.object("box",t),p(e)||(e=new j);let n=t.center,a=d.multiplyByUniformScale(t.halfAxes,2,te);return j.fromRotationTranslation(a,n,e)};var ee=new k;w.isOccluded=function(t,e){if(!p(t))throw new b("box is required.");if(!p(e))throw new b("occluder is required.");let n=k.fromOrientedBoundingBox(t,ee);return!e.isBoundingSphereVisible(n)},w.prototype.intersectPlane=function(t){return w.intersectPlane(this,t)},w.prototype.distanceSquaredTo=function(t){return w.distanceSquaredTo(this,t)},w.prototype.computePlaneDistances=function(t,e,n){return w.computePlaneDistances(this,t,e,n)},w.prototype.computeCorners=function(t){return w.computeCorners(this,t)},w.prototype.computeTransformation=function(t){return w.computeTransformation(this,t)},w.prototype.isOccluded=function(t){return w.isOccluded(this,t)},w.equals=function(e,n){return e===n||p(e)&&p(n)&&t.equals(e.center,n.center)&&d.equals(e.halfAxes,n.halfAxes)},w.prototype.clone=function(t){return w.clone(this,t)},w.prototype.equals=function(t){return w.equals(this,t)};var Pe=w;export{Pe 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{h as C}from"./chunk-LNJEJFV5.js";import{a as n,b}from"./chunk-IAE6APK2.js";import{a as w}from"./chunk-3E7FIXV7.js";var j={},q=new n,L=new n,Q=new C,G=new b;function W(t,e,r,a,o,i,l,s,y,c){let m=t+e;n.multiplyByScalar(a,Math.cos(m),q),n.multiplyByScalar(r,Math.sin(m),L),n.add(q,L,q);let u=Math.cos(t);u*=u;let w=Math.sin(t);w*=w;let h=i/Math.sqrt(l*u+o*w)/s;return C.fromAxisAngle(q,h,Q),b.fromQuaternion(Q,G),b.multiplyByVector(G,y,c),n.normalize(c,c),n.multiplyByScalar(c,s,c),c}var U=new n,Z=new n,N=new n,v=new n;j.raisePositionsToHeight=function(t,e,r){let a=e.ellipsoid,o=e.height,i=e.extrudedHeight,l=r?t.length/3*2:t.length/3,s=new Float64Array(3*l),y=t.length,c=r?y:0;for(let e=0;e<y;e+=3){let l=e+1,y=e+2,m=n.fromArray(t,e,U);a.scaleToGeodeticSurface(m,m);let u=n.clone(m,Z),w=a.geodeticSurfaceNormal(m,v),h=n.multiplyByScalar(w,o,N);n.add(m,h,m),r&&(n.multiplyByScalar(w,i,h),n.add(u,h,u),s[e+c]=u.x,s[l+c]=u.y,s[y+c]=u.z),s[e]=m.x,s[l]=m.y,s[y]=m.z}return s};var D=new n,J=new n,K=new n;j.computeEllipsePositions=function(t,e,r){let a=t.semiMinorAxis,o=t.semiMajorAxis,i=t.rotation,l=t.center,s=8*t.granularity,y=a*a,c=o*o,m=o*a,u=n.magnitude(l),h=n.normalize(l,D),x=n.cross(n.UNIT_Z,l,J);x=n.normalize(x,x);let z=n.cross(h,x,K),f=1+Math.ceil(w.PI_OVER_TWO/s),_=w.PI_OVER_TWO/(f-1),p=w.PI_OVER_TWO-f*_;p<0&&(f-=Math.ceil(Math.abs(p)/_));let O,P,d,I,E,M=e?new Array(3*(f*(f+2)*2)):void 0,T=0,V=U,g=Z,A=4*f*3,j=A-1,v=0,R=r?new Array(A):void 0;for(p=w.PI_OVER_TWO,V=W(p,i,z,x,y,m,c,u,h,V),e&&(M[T++]=V.x,M[T++]=V.y,M[T++]=V.z),r&&(R[j--]=V.z,R[j--]=V.y,R[j--]=V.x),p=w.PI_OVER_TWO-_,O=1;O<f+1;++O){if(V=W(p,i,z,x,y,m,c,u,h,V),g=W(Math.PI-p,i,z,x,y,m,c,u,h,g),e){for(M[T++]=V.x,M[T++]=V.y,M[T++]=V.z,d=2*O+2,P=1;P<d-1;++P)I=P/(d-1),E=n.lerp(V,g,I,N),M[T++]=E.x,M[T++]=E.y,M[T++]=E.z;M[T++]=g.x,M[T++]=g.y,M[T++]=g.z}r&&(R[j--]=V.z,R[j--]=V.y,R[j--]=V.x,R[v++]=g.x,R[v++]=g.y,R[v++]=g.z),p=w.PI_OVER_TWO-(O+1)*_}for(O=f;O>1;--O){if(p=w.PI_OVER_TWO-(O-1)*_,V=W(-p,i,z,x,y,m,c,u,h,V),g=W(p+Math.PI,i,z,x,y,m,c,u,h,g),e){for(M[T++]=V.x,M[T++]=V.y,M[T++]=V.z,d=2*(O-1)+2,P=1;P<d-1;++P)I=P/(d-1),E=n.lerp(V,g,I,N),M[T++]=E.x,M[T++]=E.y,M[T++]=E.z;M[T++]=g.x,M[T++]=g.y,M[T++]=g.z}r&&(R[j--]=V.z,R[j--]=V.y,R[j--]=V.x,R[v++]=g.x,R[v++]=g.y,R[v++]=g.z)}p=w.PI_OVER_TWO,V=W(-p,i,z,x,y,m,c,u,h,V);let S={};return e&&(M[T++]=V.x,M[T++]=V.y,M[T++]=V.z,S.positions=M,S.numPts=f),r&&(R[j--]=V.z,R[j--]=V.y,R[j--]=V.x,S.outerPositions=R),S};var tt=j;export{tt as a};
|