@mapgis/cesium 17.6.8 → 17.6.9

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.
@@ -92,7 +92,7 @@ var Cesium=(()=>{var GXe=Object.create;var D3=Object.defineProperty;var EXe=Obje
92
92
  See https://github.com/richtr/NoSleep.js/issues/15 for more details.
93
93
  `),this.noSleepTimer=window.setInterval(()=>{document.hidden||(window.location.href=window.location.href.split("#")[0],window.setTimeout(window.stop,0))},15e3),this.enabled=!0,Promise.resolve()):this.noSleepVideo.play().then(n=>(this.enabled=!0,n)).catch(n=>{throw this.enabled=!1,n})}disable(){Coe()?(this._wakeLock&&this._wakeLock.release(),this._wakeLock=null):Soe()?this.noSleepTimer&&(console.warn(`
94
94
  NoSleep now disabled for older iOS devices.
95
- `),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}};dXe.exports=Loe});var Z5t={};wXe(Z5t,{AlphaMode:()=>jm,AlphaPipelineStage:()=>CP,AnchorPointDirect:()=>GW,AnchorPointIndirect:()=>EW,Animation:()=>HD,AnimationViewModel:()=>JD,Appearance:()=>uo,ApproximateTerrainHeights:()=>Ui,ArcGISTiledElevationTerrainProvider:()=>oQ,ArcGisBaseMapType:()=>af,ArcGisMapServerImageryProvider:()=>sg,ArcGisMapService:()=>mm,ArcType:()=>Xn,ArticulationStageType:()=>rl,AssociativeArray:()=>zt,Atmosphere:()=>T5,AtmospherePipelineStage:()=>tP,AttributeCompression:()=>xn,AttributeSurfacePrimitive:()=>Die,AttributeType:()=>kt,AutoExposure:()=>_5,AutomaticUniforms:()=>Ab,Axis:()=>In,AxisAlignedBoundingBox:()=>Ag,B3dmLoader:()=>zW,B3dmParser:()=>hS,BaseLayerPicker:()=>t3,BaseLayerPickerViewModel:()=>e3,BatchTable:()=>V1,BatchTableHierarchy:()=>ey,BatchTexture:()=>ad,BatchTexturePipelineStage:()=>LP,Billboard:()=>sr,BillboardCollection:()=>Ou,BillboardGraphics:()=>fl,BillboardVisualizer:()=>HE,BingMapsGeocoderService:()=>sQ,BingMapsImageryProvider:()=>C5,BingMapsStyle:()=>zR,BlendEquation:()=>vc,BlendFunction:()=>Vr,BlendOption:()=>Gr,BlendingState:()=>Gn,BoundingRectangle:()=>$e,BoundingSphere:()=>de,BoundingSphereState:()=>Wt,BoundingVolumeSemantics:()=>ay,BoxEmitter:()=>cte,BoxGeometry:()=>sl,BoxGeometryUpdater:()=>Fw,BoxGraphics:()=>M1,BoxOutlineGeometry:()=>$h,BrdfLutGenerator:()=>Z5,Buffer:()=>nt,BufferLoader:()=>oS,BufferUsage:()=>Me,CPUStylingPipelineStage:()=>GP,CallbackPositionProperty:()=>Aw,CallbackProperty:()=>gp,Camera:()=>Ai,CameraEventAggregator:()=>H5,CameraEventType:()=>Io,CameraFlightPath:()=>B5,Cartesian2:()=>B,Cartesian3:()=>h,Cartesian4:()=>re,Cartographic:()=>me,CartographicGeocoderService:()=>dQ,CatmullRomSpline:()=>uQ,Cesium3DContentGroup:()=>qb,Cesium3DTile:()=>fh,Cesium3DTileBatchTable:()=>ty,Cesium3DTileColorBlendMode:()=>_l,Cesium3DTileContent:()=>Tte,Cesium3DTileContentFactory:()=>c0,Cesium3DTileContentState:()=>bi,Cesium3DTileContentType:()=>Go,Cesium3DTileCustomContent:()=>Gq,Cesium3DTileFeature:()=>Ba,Cesium3DTileFeatureTable:()=>ma,Cesium3DTileOptimizationHint:()=>Jd,Cesium3DTileOptimizations:()=>cT,Cesium3DTilePass:()=>ro,Cesium3DTilePassState:()=>Eh,Cesium3DTilePointFeature:()=>Uy,Cesium3DTileRefine:()=>zo,Cesium3DTileStyle:()=>TC,Cesium3DTileStyleEngine:()=>IS,Cesium3DTilesInspector:()=>$D,Cesium3DTilesInspectorViewModel:()=>qD,Cesium3DTilesVoxelProvider:()=>Rte,Cesium3DTileset:()=>ta,Cesium3DTilesetBaseTraversal:()=>wS,Cesium3DTilesetCache:()=>GS,Cesium3DTilesetGraphics:()=>A1,Cesium3DTilesetHeatmap:()=>ES,Cesium3DTilesetMetadata:()=>Gy,Cesium3DTilesetMostDetailedTraversal:()=>MS,Cesium3DTilesetSkipTraversal:()=>WS,Cesium3DTilesetStatistics:()=>md,Cesium3DTilesetTraversal:()=>Qa,Cesium3DTilesetVisualizer:()=>QN,CesiumInspector:()=>s3,CesiumInspectorViewModel:()=>r3,CesiumTerrainProvider:()=>W_,CesiumWidget:()=>ED,Check:()=>ao,CheckerboardMaterialProperty:()=>BZ,CircleEmitter:()=>$5,CircleGeometry:()=>vQ,CircleOutlineGeometry:()=>NQ,ClassificationModelDrawCommand:()=>Mv,ClassificationPipelineStage:()=>VP,ClassificationPrimitive:()=>UV,ClassificationType:()=>ei,ClearCommand:()=>ai,ClipFillUtil:()=>Av,ClippingGeometry:()=>Uie,ClippingGeometryFS:()=>XD,ClippingGeometryType:()=>xf,ClippingGeometryVS:()=>MD,ClippingGltfFS:()=>wD,ClippingGltfVS:()=>WD,ClippingPlane:()=>ly,ClippingPlaneCollection:()=>Zr,ClippingPolygon:()=>nZ,ClippingPolygonCollection:()=>jd,ClippingType:()=>LN,Clock:()=>op,ClockRange:()=>Xs,ClockStep:()=>dr,ClockViewModel:()=>YD,CloudCollection:()=>wte,CloudType:()=>JR,Color:()=>z,ColorBlendMode:()=>Cl,ColorCorrection:()=>uD,ColorCurrection:()=>FA,ColorGeometryInstanceAttribute:()=>cn,ColorMaterialProperty:()=>mn,Command:()=>coe,ComponentDatatype:()=>H,Composite3DTileContent:()=>Tp,CompositeEntityCollection:()=>wq,CompositeMaterialProperty:()=>KZ,CompositePositionProperty:()=>xc,CompositeProperty:()=>Ml,CompressedTextureBuffer:()=>I2,ComputeCommand:()=>Sp,ComputeEngine:()=>b5,ConditionsExpression:()=>J5,ConeEmitter:()=>vte,Config:()=>n2,ConstantPositionProperty:()=>rd,ConstantProperty:()=>Fi,ConstantSpline:()=>X2,ContentMetadata:()=>Yw,Context:()=>EN,ContextLimits:()=>qt,CoplanarPolygonGeometry:()=>A2,CoplanarPolygonGeometryLibrary:()=>xb,CoplanarPolygonOutlineGeometry:()=>Pm,CornerType:()=>Vo,CorrelationGroup:()=>IW,CorridorGeometry:()=>zf,CorridorGeometryLibrary:()=>vo,CorridorGeometryUpdater:()=>qN,CorridorGraphics:()=>W1,CorridorOutlineGeometry:()=>O2,Credit:()=>Ot,CreditDisplay:()=>pF,CubeMap:()=>Nc,CubeMapFace:()=>tI,CubicRealPolynomial:()=>R_,CullFace:()=>_i,CullingVolume:()=>Hr,CumulusCloud:()=>pm,CustomDataSource:()=>o9,CustomHeightmapTerrainProvider:()=>rj,CustomShader:()=>eL,CustomShaderMode:()=>_y,CustomShaderPipelineStage:()=>PP,CustomShaderTranslucencyMode:()=>Qx,CuttingFilterUtil:()=>MN,CylinderGeometry:()=>Yf,CylinderGeometryLibrary:()=>K_,CylinderGeometryUpdater:()=>r9,CylinderGraphics:()=>P1,CylinderOutlineGeometry:()=>J2,CzmlDataSource:()=>m9,DataSource:()=>Us,DataSourceClock:()=>zp,DataSourceCollection:()=>h9,DataSourceDisplay:()=>W9,DebugAppearance:()=>Kte,DebugCameraPrimitive:()=>z0,DebugInspector:()=>yF,DebugModelMatrixPrimitive:()=>gF,DefaultProxy:()=>uj,DepthFunction:()=>gl,DepthPlane:()=>CF,DequantizationPipelineStage:()=>NP,DerivedCommand:()=>fu,DeveloperError:()=>be,DeviceOrientationCameraController:()=>LF,DirectionalLight:()=>Qte,DiscardEmptyTileImagePolicy:()=>YR,DiscardMissingTileImagePolicy:()=>g5,DistanceDisplayCondition:()=>nn,DistanceDisplayConditionGeometryInstanceAttribute:()=>Li,DoubleEndedPriorityQueue:()=>J_,DoublyLinkedList:()=>tE,DracoLoader:()=>Lp,DrawCommand:()=>Je,DynamicAtmosphereLightingType:()=>yC,DynamicGeometryBatch:()=>eC,DynamicGeometryUpdater:()=>Hi,EarthOrientationParameters:()=>a2,EarthOrientationParametersSample:()=>Rg,EasingFunction:()=>ws,EllipseGeometry:()=>$l,EllipseGeometryLibrary:()=>Ad,EllipseGeometryUpdater:()=>f9,EllipseGraphics:()=>v1,EllipseOutlineGeometry:()=>Vu,Ellipsoid:()=>oe,EllipsoidGeodesic:()=>Sb,EllipsoidGeometry:()=>ys,EllipsoidGeometryUpdater:()=>y9,EllipsoidGraphics:()=>N1,EllipsoidOutlineGeometry:()=>al,EllipsoidPrimitive:()=>VF,EllipsoidRhumbLine:()=>Xc,EllipsoidSurfaceAppearance:()=>Xh,EllipsoidSurfaceVoxelAppearance:()=>XZ,EllipsoidSurfaceVoxelAppearanceFS:()=>sN,EllipsoidSurfaceVoxelAppearanceVS:()=>rN,EllipsoidTangentPlane:()=>bs,EllipsoidTerrainProvider:()=>Of,EllipsoidalOccluder:()=>hb,Empty3DTileContent:()=>Au,EncodedCartesian3:()=>Ti,Entity:()=>jr,EntityCluster:()=>ju,EntityCollection:()=>$a,EntityView:()=>v9,Event:()=>Se,EventHelper:()=>Ws,Expression:()=>dh,ExpressionNodeType:()=>Dt,ExtrapolationType:()=>Gu,FeatureDetection:()=>bn,FeatureIdPipelineStage:()=>Jx,FlattenTool:()=>Kie,Fog:()=>GF,ForEach:()=>De,FrameBufferType:()=>x0,FrameRateMonitor:()=>EF,FrameState:()=>IF,Framebuffer:()=>Jo,FramebufferManager:()=>zi,FrustumCommands:()=>XF,FrustumGeometry:()=>j_,FrustumOutlineGeometry:()=>rE,Fullscreen:()=>fs,FullscreenButton:()=>c3,FullscreenButtonViewModel:()=>a3,GeoJsonDataSource:()=>e5,GeoJsonLoader:()=>YW,GeocodeType:()=>sx,Geocoder:()=>d3,GeocoderService:()=>bV,GeocoderViewModel:()=>l3,GeographicProjection:()=>So,GeographicTilingScheme:()=>Uo,Geometry:()=>It,Geometry3DTileContent:()=>wN,GeometryAttribute:()=>Ee,GeometryAttributes:()=>An,GeometryFactory:()=>Tj,GeometryInstance:()=>wt,GeometryInstanceAttribute:()=>cl,GeometryOffsetAttribute:()=>vn,GeometryPipeline:()=>fi,GeometryPipelineStage:()=>zP,GeometryType:()=>Mm,GeometryUpdater:()=>Ji,GeometryUpdaterSet:()=>iC,GeometryVisualizer:()=>L9,GetFeatureInfoFormat:()=>ZC,Globe:()=>QF,GlobeDepth:()=>jF,GlobeEffect:()=>zie,GlobeSurfaceShaderSet:()=>vF,GlobeSurfaceTile:()=>Mh,GlobeSurfaceTileProvider:()=>DF,GlobeTranslucency:()=>UF,GlobeTranslucencyFramebuffer:()=>qF,GlobeTranslucencyState:()=>$F,GltfBufferViewLoader:()=>oZ,GltfDracoLoader:()=>rZ,GltfGpmLoader:()=>MW,GltfGpmLocal:()=>fZ,GltfImageLoader:()=>sZ,GltfIndexBufferLoader:()=>aZ,GltfJsonLoader:()=>lZ,GltfLoader:()=>zc,GltfLoaderUtil:()=>$d,GltfMeshPrimitiveGpmLoader:()=>vW,GltfStructuralMetadataLoader:()=>ZW,GltfTextureLoader:()=>dZ,GltfVertexBufferLoader:()=>uZ,GoogleEarthEnterpriseImageryProvider:()=>yne,GoogleEarthEnterpriseMapsProvider:()=>aF,GoogleEarthEnterpriseMetadata:()=>Ib,GoogleEarthEnterpriseTerrainData:()=>yV,GoogleEarthEnterpriseTerrainProvider:()=>Gj,GoogleEarthEnterpriseTileInformation:()=>aE,GoogleMaps:()=>$_,GpxDataSource:()=>o5,GregorianDate:()=>ob,GridImageryProvider:()=>gne,GridMaterialProperty:()=>qZ,GroundGeometryUpdater:()=>Gi,GroundPolylineGeometry:()=>e1,GroundPolylinePrimitive:()=>hp,GroundPrimitive:()=>ka,GroundPrimitiveRectangleGenerater:()=>Bie,GroupMetadata:()=>WZ,HashMap:()=>nh,HeadingPitchRange:()=>dl,HeadingPitchRoll:()=>Gs,Heap:()=>e2,HeightReference:()=>rt,HeightmapEncoding:()=>Gm,HeightmapTerrainData:()=>Gc,HeightmapTessellator:()=>NL,HermitePolynomialApproximation:()=>lE,HermiteSpline:()=>Yg,HilbertOrder:()=>gV,HomeButton:()=>m3,HomeButtonViewModel:()=>u3,HorizontalOrigin:()=>po,I3SBuildingSceneLayerExplorer:()=>yoe,I3SBuildingSceneLayerExplorerViewModel:()=>h3,I3SDataProvider:()=>ff,I3SDecoder:()=>eA,I3SFeature:()=>tA,I3SField:()=>nA,I3SGeometry:()=>mG,I3SLayer:()=>vC,I3SNode:()=>hG,I3SStatistics:()=>rA,I3SSublayer:()=>aA,I3SSymbology:()=>oA,I3dmLoader:()=>BW,I3dmParser:()=>fS,Iau2000Orientation:()=>uE,Iau2006XysData:()=>c2,Iau2006XysSample:()=>V_,IauOrientationAxes:()=>mE,IauOrientationParameters:()=>dE,ImageBasedLighting:()=>Qb,ImageBasedLightingPipelineStage:()=>iP,ImageMaterialProperty:()=>Gx,Imagery:()=>rG,ImageryLayer:()=>Ys,ImageryLayerCollection:()=>kF,ImageryLayerFeatureInfo:()=>cf,ImageryProvider:()=>_d,ImageryState:()=>qi,Implicit3DTileContent:()=>DZ,ImplicitAvailabilityBitstream:()=>FZ,ImplicitMetadataView:()=>AZ,ImplicitSubdivisionScheme:()=>ea,ImplicitSubtree:()=>YS,ImplicitSubtreeCache:()=>j5,ImplicitSubtreeMetadata:()=>WN,ImplicitTileCoordinates:()=>Iy,ImplicitTileset:()=>Ey,IndexDatatype:()=>qe,InfoBox:()=>f3,InfoBoxViewModel:()=>p3,InspectorShared:()=>jc,InstanceAttributeSemantic:()=>kr,InstancingPipelineStage:()=>xP,InterceptorsUtil:()=>VL,InterpolationAlgorithm:()=>Uj,InterpolationType:()=>lp,Intersect:()=>Qt,IntersectionTests:()=>Wi,Intersections2D:()=>pb,Interval:()=>Wa,InvertClassification:()=>fG,Ion:()=>ep,IonGeocoderService:()=>fE,IonImageryProvider:()=>lg,IonResource:()=>jl,IonWorldImageryStyle:()=>dg,Iso8601:()=>tt,JobScheduler:()=>cA,JobType:()=>kc,JsonMetadataTable:()=>uy,JulianDate:()=>ee,KTX2Transcoder:()=>bE,KeyboardEventModifier:()=>Da,KeyframeNode:()=>Qo,KmlCamera:()=>r5,KmlDataSource:()=>m5,KmlLookAt:()=>s5,KmlTour:()=>a5,KmlTourFlyTo:()=>c5,KmlTourWait:()=>l5,Label:()=>uT,LabelCollection:()=>ah,LabelGraphics:()=>fp,LabelStyle:()=>Yr,LabelVisualizer:()=>V9,LagrangePolynomialApproximation:()=>yE,LeapSecond:()=>Do,Light:()=>Sne,LightManager:()=>q0,LightingMode:()=>Sd,LightingModel:()=>h0,LightingPipelineStage:()=>BP,LinearApproximation:()=>t1,LinearSpline:()=>zg,M3D10MetadataTable:()=>Jv,M3D20MetadataTable:()=>Kv,M3D21MetadataTable:()=>Xx,M3DAttContentFactory:()=>kw,M3DAttParser:()=>r0,M3DB3dmLoader:()=>jv,M3DContentFactory:()=>rT,M3DContentType:()=>Vy,M3DDataLoader:()=>iN,M3DDataParser:()=>nN,M3DGltfLoader:()=>Qv,M3DGltfParser:()=>Bv,M3DI3dmLoader:()=>qv,M3DPntsLoader:()=>tN,M3DPntsParser:()=>$v,M3DTidParser:()=>Kw,M3DTree:()=>eoe,MAPGIS_VERSION:()=>V5t,ManagedArray:()=>wc,MapGISM3D:()=>ZS,MapGISM3DSet:()=>Il,MapGISM3DTileContent:()=>wx,MapGISM3DVoxelContent:()=>lN,MapGISVoxelPrimitive:()=>VS,MapMode2D:()=>uu,MapProjection:()=>Oj,MapboxImageryProvider:()=>cF,MapboxStyleImageryProvider:()=>Cne,Material:()=>Pi,MaterialAppearance:()=>rr,MaterialPipelineStage:()=>KP,MaterialProperty:()=>Qr,Math:()=>M,Matrix2:()=>Po,Matrix3:()=>$,Matrix4:()=>P,Megatexture:()=>yG,MeshPrimitiveGpmLocal:()=>PW,MetadataClass:()=>ua,MetadataClassProperty:()=>d0,MetadataComponentType:()=>pn,MetadataEntity:()=>ci,MetadataEnum:()=>SW,MetadataEnumValue:()=>_W,MetadataPicking:()=>lA,MetadataPickingPipelineStage:()=>zu,MetadataPipelineStage:()=>eh,MetadataSchema:()=>Rl,MetadataSchemaLoader:()=>mZ,MetadataSemantic:()=>BS,MetadataTable:()=>Vl,MetadataTableProperty:()=>iZ,MetadataType:()=>Jt,MipmapHint:()=>$f,Model:()=>Ka,Model3DTileContent:()=>El,ModelAlphaOptions:()=>xv,ModelAnimation:()=>KW,ModelAnimationChannel:()=>OW,ModelAnimationCollection:()=>HW,ModelAnimationLoop:()=>Qd,ModelAnimationState:()=>Ip,ModelArticulation:()=>rP,ModelArticulationStage:()=>oP,ModelClippingGeometryPipelineStage:()=>dP,ModelClippingPlanesPipelineStage:()=>cP,ModelClippingPolygonsPipelineStage:()=>hP,ModelColorPipelineStage:()=>Hx,ModelComponents:()=>hn,ModelDrawCommand:()=>wv,ModelDrawCommands:()=>vv,ModelExplosion:()=>ioe,ModelExplosionPipelineStage:()=>hv,ModelFeature:()=>JW,ModelFeatureTable:()=>jW,ModelFlattenPipelineStage:()=>bv,ModelGraphics:()=>Ob,ModelLightingOptions:()=>Ev,ModelMatrixUpdateStage:()=>TP,ModelNode:()=>pP,ModelPMPipelineStage:()=>pv,ModelRenderResources:()=>Sv,ModelRuntimeNode:()=>SP,ModelRuntimePrimitive:()=>yv,ModelSceneGraph:()=>Uv,ModelSilhouettePipelineStage:()=>Vv,ModelSkin:()=>gv,ModelSplitterPipelineStage:()=>Rv,ModelStatistics:()=>kv,ModelStretchPipelineStage:()=>uv,ModelSwipePipelineStage:()=>Fv,ModelType:()=>xr,ModelUtility:()=>fn,ModelVisualizer:()=>Z9,Moon:()=>uA,MorphTargetsPipelineStage:()=>JP,MorphWeightSpline:()=>Qj,MortonOrder:()=>dx,Multiple3DTileContent:()=>H1,MultisampleFramebuffer:()=>NW,NavigationHelpButton:()=>y3,NavigationHelpButtonViewModel:()=>b3,NearFarScalar:()=>sn,NetCDFLoader:()=>aN,NeverTileDiscardPolicy:()=>Vne,NodeRenderResources:()=>Gv,NodeStatisticsPipelineStage:()=>_P,NodeTransformationProperty:()=>F1,OIDTexturePipelineStage:()=>lv,OIT:()=>hA,Occluder:()=>xE,OffsetGeometryInstanceAttribute:()=>Ho,OpenCageGeocoderService:()=>t8,OpenStreetMapImageryProvider:()=>bg,OrderedGroundPrimitiveCollection:()=>p9,OrientedBoundingBox:()=>Hn,OrthographicFrustum:()=>En,OrthographicOffCenterFrustum:()=>Ps,OutlineForOid:()=>BA,OutlineForPrimitives:()=>OA,OutlineRenderMode:()=>wp,Packable:()=>n8,PackableForInterpolation:()=>i8,ParallelLight:()=>EG,Particle:()=>xG,ParticleBurst:()=>Ine,ParticleEmitter:()=>Xne,ParticleSystem:()=>Mne,Pass:()=>Ze,PassState:()=>Er,PathGraphics:()=>Kb,PathVisualizer:()=>R9,PeliasGeocoderService:()=>pE,PerInstanceColorAppearance:()=>Wn,PerformanceDisplay:()=>yg,PerformanceWatchdog:()=>x3,PerformanceWatchdogViewModel:()=>g3,PerspectiveFrustum:()=>ki,PerspectiveOffCenterFrustum:()=>nd,PickDepth:()=>fA,PickDepthFramebuffer:()=>yA,PickFramebuffer:()=>xA,PickedMetadataInfo:()=>gA,Picking:()=>SA,PickingPipelineStage:()=>QP,PinBuilder:()=>Wb,PixelDatatype:()=>ke,PixelFormat:()=>Ye,Plane:()=>Vn,PlaneGeometry:()=>r1,PlaneGeometryUpdater:()=>g9,PlaneGraphics:()=>Xw,PlaneOutlineGeometry:()=>CE,PntsLoader:()=>Yv,PntsParser:()=>_S,PointCloud:()=>LA,PointCloudEyeDomeLighting:()=>Gp,PointCloudShading:()=>$m,PointCloudStylingPipelineStage:()=>qP,PointGraphics:()=>D1,PointLight:()=>GG,PointPrimitive:()=>Ga,PointPrimitiveCollection:()=>JZ,PointVisualizer:()=>E9,PolygonGeometry:()=>Wc,PolygonGeometryLibrary:()=>Ci,PolygonGeometryUpdater:()=>x9,PolygonGraphics:()=>bp,PolygonHierarchy:()=>la,PolygonOutlineGeometry:()=>LE,PolygonPipeline:()=>Ki,PolygonSwiperCullingCommand:()=>cD,Polyline:()=>mh,PolylineArrowMaterialProperty:()=>eR,PolylineCollection:()=>Np,PolylineColorAppearance:()=>qs,PolylineDashMaterialProperty:()=>nR,PolylineGeometry:()=>Pb,PolylineGeometryUpdater:()=>X9,PolylineGlowMaterialProperty:()=>oR,PolylineGraphics:()=>xl,PolylineMaterialAppearance:()=>hc,PolylineOutlineMaterialProperty:()=>CT,PolylinePipeline:()=>Zo,PolylineVisualizer:()=>w9,PolylineVolumeAnimationGeometry:()=>UG,PolylineVolumeGeometry:()=>od,PolylineVolumeGeometryLibrary:()=>rp,PolylineVolumeGeometryUpdater:()=>T9,PolylineVolumeGraphics:()=>U1,PolylineVolumeOutlineGeometry:()=>IE,PositionProperty:()=>pp,PositionPropertyArray:()=>Oy,PostProcessStage:()=>Ko,PostProcessStageCollection:()=>JA,PostProcessStageComposite:()=>Vd,PostProcessStageLibrary:()=>xu,PostProcessStageSampleMode:()=>gm,PostProcessStageTextureCache:()=>HC,PpeMetadata:()=>WW,PpeSource:()=>ooe,PpeTexture:()=>wW,Primitive:()=>Un,PrimitiveCollection:()=>yd,PrimitiveLoadPlan:()=>mS,PrimitiveOutlineGenerator:()=>uS,PrimitiveOutlinePipelineStage:()=>tv,PrimitivePipeline:()=>Z1,PrimitiveRenderResources:()=>Iv,PrimitiveState:()=>Ts,PrimitiveStatisticsPipelineStage:()=>nv,PrimitiveType:()=>Fe,ProjectionPicker:()=>_3,ProjectionPickerViewModel:()=>T3,Property:()=>Q,PropertyArray:()=>sR,PropertyAttribute:()=>hy,PropertyAttributeProperty:()=>nW,PropertyBag:()=>Kd,PropertyTable:()=>ls,PropertyTexture:()=>my,PropertyTextureProperty:()=>tW,ProviderViewModel:()=>ra,Proxy:()=>s8,QuadraticRealPolynomial:()=>Hl,QuadtreeOccluders:()=>zF,QuadtreePrimitive:()=>JF,QuadtreeTile:()=>YF,QuadtreeTileLoadState:()=>nc,QuadtreeTileProvider:()=>Jne,QuantizedMeshTerrainData:()=>w_,QuarticRealPolynomial:()=>_2,Quaternion:()=>Be,QuaternionSpline:()=>XE,Queue:()=>jg,Ray:()=>Dn,Rectangle:()=>he,RectangleCollisionChecker:()=>l1,RectangleGeometry:()=>Iu,RectangleGeometryLibrary:()=>Ca,RectangleGeometryUpdater:()=>_9,RectangleGraphics:()=>yp,RectangleOutlineGeometry:()=>d1,ReferenceFrame:()=>No,ReferenceProperty:()=>Ky,RenderDebug:()=>Hie,RenderState:()=>Ne,Renderbuffer:()=>ku,RenderbufferFormat:()=>ld,Request:()=>Mr,RequestErrorEvent:()=>Vf,RequestScheduler:()=>rc,RequestState:()=>Xi,RequestType:()=>Rs,Resource:()=>Xe,ResourceCache:()=>ji,ResourceCacheKey:()=>eu,ResourceCacheStatistics:()=>VW,ResourceLoader:()=>vi,ResourceLoaderState:()=>Xt,Rotation:()=>yh,RuntimeError:()=>le,S2Cell:()=>vb,SDFSettings:()=>Ja,SampledPositionProperty:()=>Tc,SampledProperty:()=>em,Sampler:()=>un,ScaledPositionProperty:()=>Z0,Scene:()=>hD,SceneFramebuffer:()=>AC,SceneMode:()=>ae,SceneMode2DPipelineStage:()=>iv,SceneModePicker:()=>C3,SceneModePickerViewModel:()=>S3,SceneProjectorEx:()=>Fie,SceneProjectorExFS:()=>ID,SceneProjectorSourceType:()=>Bs,SceneTransforms:()=>yo,SceneTransitioner:()=>jA,ScreenSpaceCameraController:()=>eD,ScreenSpaceEventHandler:()=>Mu,ScreenSpaceEventType:()=>jn,SectionCylinderGeometry:()=>AS,SectionFrameBuffer:()=>VN,SectionPlaneGeometry:()=>ja,SectionPolygonGeometry:()=>Cg,SectionRender:()=>XN,SectionRenderUtil:()=>Dv,SelectedFeatureIdPipelineStage:()=>jx,SelectionIndicator:()=>Z3,SelectionIndicatorViewModel:()=>V3,SensorVolumePortionToDisplay:()=>dR,ShaderBuilder:()=>xS,ShaderCache:()=>ZN,ShaderDestination:()=>xe,ShaderFunction:()=>_v,ShaderProgram:()=>Yt,ShaderSource:()=>Oe,ShaderStruct:()=>Tv,ShadowMap:()=>bf,ShadowMapShader:()=>H0,ShadowMode:()=>On,ShadowVolumeAppearance:()=>Pu,ShowGeometryInstanceAttribute:()=>qn,Simon1994PlanetaryPositions:()=>gx,SimplePolylineGeometry:()=>G8,SingleTileImageryProvider:()=>VC,SkinningPipelineStage:()=>rv,SkyAtmosphere:()=>bD,SkyBox:()=>iL,SpatialNode:()=>rD,Spdcf:()=>XW,SpecularEnvironmentCubeMap:()=>xp,SphereEmitter:()=>Rie,SphereGeometry:()=>E8,SphereOutlineGeometry:()=>Nb,Spherical:()=>NE,Spline:()=>nr,SplitDirection:()=>cs,Splitter:()=>_G,SpotLight:()=>IG,StaticGeometryColorBatch:()=>_h,StaticGeometryPerMaterialBatch:()=>Ch,StaticGroundGeometryColorBatch:()=>xR,StaticGroundGeometryPerMaterialBatch:()=>C9,StaticGroundPolylinePerMaterialBatch:()=>M9,StaticOutlineGeometryBatch:()=>_R,StencilConstants:()=>an,StencilFunction:()=>Vi,StencilOperation:()=>Nt,SteppedSpline:()=>FE,Stereographic:()=>ml,StorageType:()=>zx,StripeMaterialProperty:()=>cR,StripeOrientation:()=>Bp,StructuralMetadata:()=>mr,StyleCommandsNeeded:()=>Xp,StyleExpression:()=>Gie,Sun:()=>VD,SunLight:()=>vy,SunPostProcess:()=>iD,SupportedImageFormats:()=>RW,SvgPathBindingHandler:()=>kD,SwipeModeType:()=>Kn,SwiperCullingFramebuffer:()=>lD,TaskProcessor:()=>oo,Terrain:()=>ZD,TerrainData:()=>jh,TerrainEncoding:()=>ol,TerrainFillMesh:()=>lG,TerrainMesh:()=>Im,TerrainOffsetProperty:()=>k1,TerrainProvider:()=>Js,TerrainQuantization:()=>Na,TerrainState:()=>cr,Texture:()=>it,Texture3D:()=>cN,TextureAtlas:()=>dT,TextureCache:()=>RN,TextureMagnificationFilter:()=>Ri,TextureManager:()=>sD,TextureMinificationFilter:()=>gn,TextureUniform:()=>Jie,TextureWrap:()=>Nn,TileAvailability:()=>qh,TileBoundingRegion:()=>fc,TileBoundingS2Cell:()=>q1,TileBoundingSphere:()=>Ac,TileBoundingVolume:()=>Eie,TileCoordinatesImageryProvider:()=>GD,TileDiscardPolicy:()=>Xie,TileEdge:()=>Jn,TileImagery:()=>sG,TileMapServiceImageryProvider:()=>HT,TileMetadata:()=>Bw,TileOrientedBoundingBox:()=>Dc,TileProviderError:()=>Lr,TileReplacementQueue:()=>BF,TileSelectionResult:()=>Ni,TileState:()=>Mie,Tileset3DTileContent:()=>PN,TilesetMetadata:()=>dN,TilesetPipelineStage:()=>qW,TilingScheme:()=>I8,TimeConstants:()=>wi,TimeDynamicImagery:()=>RC,TimeDynamicPointCloud:()=>FG,TimeInterval:()=>$n,TimeIntervalCollection:()=>Fs,TimeIntervalCollectionPositionProperty:()=>Hy,TimeIntervalCollectionProperty:()=>Jy,TimeStandard:()=>Ei,Timeline:()=>E3,TimelineHighlightRange:()=>R3,TimelineTrack:()=>G3,Tipsify:()=>Z2,ToggleButtonViewModel:()=>s_,Tonemapper:()=>xg,Transforms:()=>Zt,TranslationRotationScale:()=>_x,TranslucentTileClassification:()=>_A,TridiagonalSystemSolver:()=>zL,TrustedServers:()=>LL,TweenCollection:()=>QC,UniformState:()=>GN,UniformType:()=>VG,UrlTemplateImageryProvider:()=>Jc,UrlUtil:()=>T4,Util:()=>mT,VERSION:()=>L5t,VRButton:()=>X3,VRButtonViewModel:()=>I3,VRTheWorldTerrainProvider:()=>P8,VaryingType:()=>Qie,Vector3DTileBatch:()=>o0,Vector3DTileClampedPolylines:()=>HN,Vector3DTileContent:()=>JN,Vector3DTileGeometry:()=>Fy,Vector3DTilePoints:()=>UN,Vector3DTilePolygons:()=>kN,Vector3DTilePolylines:()=>KS,Vector3DTilePrimitive:()=>kS,VelocityOrientationProperty:()=>a9,VelocityVectorProperty:()=>qS,VertexArray:()=>Yn,VertexArrayFacade:()=>Xy,VertexAttributeSemantic:()=>ut,VertexFormat:()=>ve,VerticalExaggeration:()=>or,VerticalExaggerationPipelineStage:()=>av,VerticalOrigin:()=>ui,VideoSynchronizer:()=>W8,View:()=>kC,Viewer:()=>Zoe,ViewportQuad:()=>RG,ViewshedAnalysis:()=>Aie,Visibility:()=>as,VisualAnalysisManager:()=>p5,Visualizer:()=>ite,VoxelBoxShape:()=>D0,VoxelCell:()=>CG,VoxelContent:()=>q5,VoxelCylinderShape:()=>U0,VoxelEllipsoidShape:()=>_C,VoxelInspector:()=>W3,VoxelInspectorViewModel:()=>w3,VoxelPrimitive:()=>i_,VoxelProvider:()=>vie,VoxelRenderResources:()=>U5,VoxelShape:()=>Nie,VoxelShapeType:()=>Xo,VoxelTraversal:()=>LG,VulkanConstants:()=>v8,WallGeometry:()=>zE,WallGeometryLibrary:()=>y1,WallGeometryUpdater:()=>S9,WallGraphics:()=>Hb,WallOutlineGeometry:()=>BE,WebGLConstants:()=>te,WebMapServiceImageryProvider:()=>dF,WebMapTileServiceImageryProvider:()=>mF,WebMercatorProjection:()=>Lo,WebMercatorTilingScheme:()=>Qs,WindingOrder:()=>da,WireframeIndexGenerator:()=>PV,WireframePipelineStage:()=>cv,_shadersAcesTonemappingStage:()=>VA,_shadersAdditiveBlend:()=>tD,_shadersAdjustTranslucentFS:()=>gG,_shadersAllMaterialAppearanceFS:()=>JE,_shadersAllMaterialAppearanceVS:()=>QE,_shadersAmbientOcclusionGenerate:()=>ZA,_shadersAmbientOcclusionModulate:()=>RA,_shadersAspectRampMaterial:()=>iI,_shadersAtmosphereCommon:()=>mg,_shadersAtmosphereStageFS:()=>$W,_shadersAtmosphereStageVS:()=>eP,_shadersBasicMaterialAppearanceFS:()=>jE,_shadersBasicMaterialAppearanceVS:()=>qE,_shadersBillboardCollectionFS:()=>hN,_shadersBillboardCollectionVS:()=>pN,_shadersBlackAndWhite:()=>GA,_shadersBloomComposite:()=>EA,_shadersBrdfLutGeneratorFS:()=>L5,_shadersBrightPass:()=>nD,_shadersBrightness:()=>IA,_shadersBumpMapMaterial:()=>oI,_shadersCPUStylingStageFS:()=>RP,_shadersCPUStylingStageVS:()=>ZP,_shadersCheckerboardMaterial:()=>rI,_shadersCloudCollectionFS:()=>eF,_shadersCloudCollectionVS:()=>tF,_shadersCloudNoiseFS:()=>nF,_shadersCloudNoiseVS:()=>iF,_shadersCompareAndPackTranslucentDepth:()=>TA,_shadersCompositeOITFS:()=>mA,_shadersCompositeTranslucentClassification:()=>UC,_shadersContrastBias:()=>XA,_shadersCustomShaderStageFS:()=>IP,_shadersCustomShaderStageVS:()=>EP,_shadersCzmBuiltins:()=>L1,_shadersDepthOfField:()=>MA,_shadersDepthPlaneFS:()=>xF,_shadersDepthPlaneVS:()=>TF,_shadersDepthView:()=>wA,_shadersDepthViewPacked:()=>qie,_shadersDotMaterial:()=>sI,_shadersEdgeDetection:()=>WA,_shadersElevationBandMaterial:()=>aI,_shadersElevationContourMaterial:()=>cI,_shadersElevationRampMaterial:()=>lI,_shadersEllipsoidFS:()=>tG,_shadersEllipsoidSurfaceAppearanceFS:()=>ZF,_shadersEllipsoidSurfaceAppearanceVS:()=>RF,_shadersEllipsoidVS:()=>nG,_shadersFXAA:()=>NA,_shadersFXAA3_11:()=>YA,_shadersFadeMaterial:()=>dI,_shadersFeatureIdStageFS:()=>XP,_shadersFeatureIdStageVS:()=>MP,_shadersFilmicTonemapping:()=>PA,_shadersGaussianBlur1D:()=>t_,_shadersGeometryStageFS:()=>FP,_shadersGeometryStageVS:()=>AP,_shadersGlobeFS:()=>WF,_shadersGlobeVS:()=>PF,_shadersGridMaterial:()=>uI,_shadersGroundAtmosphere:()=>iG,_shadersHSBToRGB:()=>sM,_shadersHSLToRGB:()=>aM,_shadersImageBasedLightingStageFS:()=>nP,_shadersInstancingStageCommon:()=>fP,_shadersInstancingStageVS:()=>bP,_shadersIntersectBox:()=>w5,_shadersIntersectClippingPlanes:()=>M5,_shadersIntersectCylinder:()=>W5,_shadersIntersectDepth:()=>X5,_shadersIntersectEllipsoid:()=>P5,_shadersIntersectLongitude:()=>BR,_shadersIntersection:()=>xC,_shadersIntersectionUtils:()=>I5,_shadersLegacyInstancingStageVS:()=>yP,_shadersLensFlare:()=>AA,_shadersLightingStageFS:()=>YP,_shadersMaterialStageFS:()=>OP,_shadersMegatexture:()=>D5,_shadersMetadataStageFS:()=>wP,_shadersMetadataStageVS:()=>WP,_shadersModelClippingGeometryStageFS:()=>lP,_shadersModelClippingPlanesStageFS:()=>aP,_shadersModelClippingPolygonsStageFS:()=>mP,_shadersModelClippingPolygonsStageVS:()=>uP,_shadersModelColorStageFS:()=>sP,_shadersModelExplosionStageVS:()=>mv,_shadersModelFS:()=>Pv,_shadersModelFlattenStageVS:()=>fv,_shadersModelSilhouetteStageFS:()=>Cv,_shadersModelSilhouetteStageVS:()=>Lv,_shadersModelSplitterStageFS:()=>Zv,_shadersModelStretchStageVS:()=>dv,_shadersModelSwipePipelineStageFS:()=>Nv,_shadersModelVS:()=>Wv,_shadersModifiedReinhardTonemapping:()=>DA,_shadersMorphTargetsStageVS:()=>HP,_shadersNightVision:()=>UA,_shadersNormalMapMaterial:()=>mI,_shadersOctree:()=>A5,_shadersPassThrough:()=>yu,_shadersPassThroughDepth:()=>QT,_shadersPbrNeutralTonemapping:()=>vA,_shadersPerInstanceColorAppearanceFS:()=>CI,_shadersPerInstanceColorAppearanceVS:()=>LI,_shadersPerInstanceFlatColorAppearanceFS:()=>S1,_shadersPerInstanceFlatColorAppearanceVS:()=>VI,_shadersPointCloudEyeDomeLighting:()=>AW,_shadersPointCloudStylingStageVS:()=>jP,_shadersPointPrimitiveCollectionFS:()=>ST,_shadersPointPrimitiveCollectionVS:()=>$N,_shadersPolygonSignedDistanceFS:()=>Hw,_shadersPolylineArrowMaterial:()=>hI,_shadersPolylineColorAppearanceVS:()=>gw,_shadersPolylineCommon:()=>vu,_shadersPolylineDashMaterial:()=>pI,_shadersPolylineFS:()=>I1,_shadersPolylineGlowMaterial:()=>fI,_shadersPolylineMaterialAppearanceVS:()=>xw,_shadersPolylineOutlineMaterial:()=>bI,_shadersPolylineShadowVolumeFS:()=>pw,_shadersPolylineShadowVolumeMorphFS:()=>fw,_shadersPolylineShadowVolumeMorphVS:()=>bw,_shadersPolylineShadowVolumeVS:()=>yw,_shadersPolylineVS:()=>vN,_shadersPrimitiveOutlineStageFS:()=>ev,_shadersPrimitiveOutlineStageVS:()=>$P,_shadersRGBToHSB:()=>wM,_shadersRGBToHSL:()=>WM,_shadersRGBToXYZ:()=>PM,_shadersReinhardTonemapping:()=>kA,_shadersReprojectWebMercatorFS:()=>NF,_shadersReprojectWebMercatorVS:()=>FF,_shadersRimLightingMaterial:()=>yI,_shadersSelectedFeatureIdStageCommon:()=>jie,_shadersSelectedFeatureIdStageFS:()=>DP,_shadersSelectedFeatureIdStageVS:()=>UP,_shadersShadowVolumeAppearanceFS:()=>AV,_shadersShadowVolumeAppearanceVS:()=>dw,_shadersShadowVolumeFS:()=>Rx,_shadersSilhouette:()=>zA,_shadersSkinningStageVS:()=>ov,_shadersSkyAtmosphereCommon:()=>XG,_shadersSkyAtmosphereFS:()=>pD,_shadersSkyAtmosphereVS:()=>fD,_shadersSkyBoxFS:()=>yD,_shadersSkyBoxVS:()=>gD,_shadersSlopeRampMaterial:()=>gI,_shadersStripeMaterial:()=>xI,_shadersSunFS:()=>TD,_shadersSunTextureFS:()=>_D,_shadersSunVS:()=>SD,_shadersTexturedMaterialAppearanceFS:()=>$E,_shadersTexturedMaterialAppearanceVS:()=>eI,_shadersVector3DTileClampedPolylinesFS:()=>ON,_shadersVector3DTileClampedPolylinesVS:()=>BN,_shadersVector3DTilePolylinesVS:()=>zN,_shadersVectorTileVS:()=>HV,_shadersVerticalExaggerationStageVS:()=>sv,_shadersViewportQuadFS:()=>dD,_shadersViewportQuadVS:()=>vS,_shadersVoxelFS:()=>G5,_shadersVoxelUtils:()=>R5,_shadersVoxelVS:()=>E5,_shadersWater:()=>_I,_shadersWaterMaskMaterial:()=>TI,_shadersXYZToRGB:()=>cw,_shadersacesTonemapping:()=>SX,_shadersalphaWeight:()=>CX,_shadersantialias:()=>LX,_shadersapplyColorCorrection:()=>VX,_shadersapplyHSBShift:()=>ZX,_shadersapproximateSphericalCoordinates:()=>RX,_shadersapproximateTanh:()=>GX,_shadersbackFacing:()=>EX,_shadersbranchFreeTernary:()=>IX,_shaderscascadeColor:()=>XX,_shaderscascadeDistance:()=>MX,_shaderscascadeMatrix:()=>wX,_shaderscascadeWeights:()=>WX,_shadersclipPolygons:()=>PX,_shaderscolumbusViewMorph:()=>vX,_shaderscomputeAtmosphereColor:()=>NX,_shaderscomputeGroundAtmosphereScattering:()=>FX,_shaderscomputePosition:()=>AX,_shaderscomputeScattering:()=>DX,_shadersconvertUvToBox:()=>v5,_shadersconvertUvToCylinder:()=>N5,_shadersconvertUvToEllipsoid:()=>F5,_shaderscosineAndSine:()=>UX,_shaderscreateTranslationMatrix:()=>hX,_shadersdecompressTextureCoordinates:()=>kX,_shadersdegreesPerRadian:()=>EI,_shadersdepthClamp:()=>zX,_shadersdepthRange:()=>II,_shadersdepthRangeStruct:()=>pX,_shaderseastNorthUpToEyeCoordinates:()=>YX,_shadersellipsoidContainsPoint:()=>BX,_shadersellipsoidTextureCoordinates:()=>OX,_shadersepsilon1:()=>XI,_shadersepsilon2:()=>MI,_shadersepsilon3:()=>wI,_shadersepsilon4:()=>WI,_shadersepsilon5:()=>PI,_shadersepsilon6:()=>vI,_shadersepsilon7:()=>NI,_shadersequalsEpsilon:()=>KX,_shaderseyeOffset:()=>HX,_shaderseyeToWindowCoordinates:()=>JX,_shadersfastApproximateAtan:()=>QX,_shadersfog:()=>jX,_shadersgammaCorrect:()=>qX,_shadersgeodeticSurfaceNormal:()=>$X,_shadersgeometryClip:()=>eM,_shadersgetDefaultMaterial:()=>tM,_shadersgetDynamicAtmosphereLightDirection:()=>nM,_shadersgetLambertDiffuse:()=>iM,_shadersgetSpecular:()=>oM,_shadersgetWaterNoise:()=>rM,_shadershue:()=>cM,_shadersinfinity:()=>FI,_shadersinverseGamma:()=>lM,_shadersisEmpty:()=>dM,_shadersisFull:()=>uM,_shaderslatitudeToWebMercatorFraction:()=>mM,_shaderslineDistance:()=>pM,_shaderslinearToSrgb:()=>hM,_shadersluminance:()=>fM,_shadersmaterial:()=>fX,_shadersmaterialInput:()=>bX,_shadersmaximumComponent:()=>bM,_shadersmetersPerPixel:()=>yM,_shadersmodelMaterial:()=>yX,_shadersmodelToWindowCoordinates:()=>gM,_shadersmodelVertexOutput:()=>gX,_shadersmultiplyWithColorBalance:()=>xM,_shadersnearFarScalar:()=>TM,_shadersoctDecode:()=>_M,_shadersoneOverPi:()=>AI,_shadersoneOverTwoPi:()=>DI,_shaderspackDepth:()=>SM,_shaderspassCesium3DTile:()=>UI,_shaderspassCesium3DTileClassification:()=>kI,_shaderspassCesium3DTileClassificationIgnoreShow:()=>zI,_shaderspassClassification:()=>YI,_shaderspassCompute:()=>BI,_shaderspassEnvironment:()=>OI,_shaderspassGlobe:()=>KI,_shaderspassOpaque:()=>HI,_shaderspassOverlay:()=>JI,_shaderspassTerrainClassification:()=>QI,_shaderspassTranslucent:()=>jI,_shaderspassVoxels:()=>qI,_shaderspbrLighting:()=>CM,_shaderspbrNeutralTonemapping:()=>LM,_shadersphong:()=>VM,_shaderspi:()=>$I,_shaderspiOverFour:()=>eX,_shaderspiOverSix:()=>tX,_shaderspiOverThree:()=>nX,_shaderspiOverTwo:()=>iX,_shadersplaneDistance:()=>ZM,_shaderspointAlongRay:()=>RM,_shadersradiansPerDegree:()=>oX,_shadersray:()=>xX,_shadersrayEllipsoidIntersectionInterval:()=>GM,_shadersraySegment:()=>TX,_shadersraySphereIntersectionInterval:()=>EM,_shadersreadDepth:()=>IM,_shadersreadNonPerspective:()=>XM,_shadersreverseLogDepth:()=>MM,_shadersrollerShutter:()=>vM,_shadersrollerShutterPolygon:()=>NM,_shadersrollerShutterSpyglass:()=>FM,_shadersround:()=>AM,_shaderssaturation:()=>DM,_shaderssceneMode2D:()=>rX,_shaderssceneMode3D:()=>sX,_shaderssceneModeColumbusView:()=>aX,_shaderssceneModeMorphing:()=>cX,_shadersshadowDepthCompare:()=>UM,_shadersshadowParameters:()=>_X,_shadersshadowVisibility:()=>kM,_shaderssignNotZero:()=>zM,_shaderssolarRadius:()=>lX,_shaderssphericalHarmonics:()=>YM,_shaderssrgbToLinear:()=>BM,_shaderstangentToEyeSpaceMatrix:()=>OM,_shaderstextureCube:()=>KM,_shadersthreePiOver2:()=>dX,_shaderstransformPlane:()=>HM,_shaderstranslateRelativeToEye:()=>JM,_shaderstranslucentPhong:()=>QM,_shaderstranspose:()=>jM,_shaderstwoPi:()=>uX,_shadersunpackClippingExtents:()=>qM,_shadersunpackDepth:()=>$M,_shadersunpackFloat:()=>ew,_shadersunpackUint:()=>tw,_shadersvalueTransform:()=>nw,_shadersvertexLogDepth:()=>iw,_shaderswebMercatorMaxLatitude:()=>mX,_shaderswindowToEyeCoordinates:()=>ow,_shaderswriteDepthClamp:()=>rw,_shaderswriteLogDepth:()=>sw,_shaderswriteNonPerspective:()=>aw,addBuffer:()=>bW,addDefaults:()=>cW,addExtensionsRequired:()=>hW,addExtensionsUsed:()=>qm,addPipelineExtras:()=>Fx,addToArray:()=>Va,appendForwardSlash:()=>KG,arrayRemoveDuplicates:()=>gr,barycentricCoordinates:()=>M_,binarySearch:()=>Xr,buildModuleUrl:()=>Sn,buildVoxelDrawCommands:()=>z5,clone:()=>Ue,combine:()=>Tt,computeFlyToLocationForRectangle:()=>CC,createBillboardPointCallback:()=>OS,createCommand:()=>ti,createDefaultImageryProviderViewModels:()=>n3,createDefaultTerrainProviderViewModels:()=>i3,createElevationBandMaterial:()=>Nte,createGooglePhotorealistic3DTileset:()=>Fte,createGuid:()=>Qn,createMaterialPropertyDescriptor:()=>Wr,createOsmBuildingsAsync:()=>Ate,createPropertyDescriptor:()=>ge,createRawPropertyDescriptor:()=>Od,createTangentSpaceDebugPrimitive:()=>Dte,createTaskProcessorWorker:()=>roe,createUUID:()=>rW,createUniform:()=>RI,createUniformArray:()=>GI,createWorldBathymetryAsync:()=>K2,createWorldImageryAsync:()=>ug,createWorldTerrainAsync:()=>O_,decodeGoogleEarthEnterpriseData:()=>Q2,decodeVectorPolylinePositions:()=>j2,defaultValue:()=>g,defer:()=>Xd,defined:()=>d,demodernizeShader:()=>lw,deprecationWarning:()=>lr,destroyObject:()=>fe,exportKml:()=>lee,findAccessorMinMax:()=>cS,findContentMetadata:()=>oy,findGroupMetadata:()=>ry,findTileMetadata:()=>K1,forEachTextureInMaterial:()=>cZ,formatError:()=>Nf,freezeRenderState:()=>k8,getAbsoluteUri:()=>Cf,getAccessorByteStride:()=>qd,getBaseUri:()=>jG,getBinaryAccessor:()=>Tl,getClipAndStyleCode:()=>MF,getClippingFunction:()=>ag,getComponentReader:()=>dy,getElement:()=>li,getExtensionFromUri:()=>h_,getFilenameFromUri:()=>Eb,getImageFromTypedArray:()=>sE,getImagePixels:()=>Kh,getJsonFromTypedArray:()=>mo,getMagic:()=>Mc,getMetadataClassProperty:()=>wF,getStringFromTypedArray:()=>wr,getTimestamp:()=>ho,hasExtension:()=>Zi,heightReferenceOnEntityPropertyChanged:()=>Jb,isBitSet:()=>ll,isBlobUri:()=>p_,isCrossOriginUrl:()=>Eg,isDataUri:()=>rb,isLeapYear:()=>Oh,knockout:()=>Re,knockout_3_5_1:()=>dL,knockout_es5:()=>UD,loadAndExecuteScript:()=>f_,loadCubeMap:()=>y5,loadImageFromTypedArray:()=>n1,loadKTX2:()=>Yd,mergeSort:()=>wb,moveTechniqueRenderStates:()=>mW,moveTechniquesToExtension:()=>pW,numberOfComponentsForType:()=>Du,objectToQuery:()=>b_,oneTimeWarning:()=>Ft,pako_inflate:()=>B1,parseAttBatchTable:()=>Bu,parseBatchTable:()=>Ep,parseFeatureMetadataLegacy:()=>aW,parseGlb:()=>dW,parseResponseHeaders:()=>qG,parseStructuralMetadata:()=>sW,parseVoxelStyles:()=>sT,pickModel:()=>RZ,pointInsideTriangle:()=>o8,preprocess3DTileContent:()=>a0,preprocessM3DContent:()=>oN,processVoxelProperties:()=>k5,queryToObject:()=>Cu,readAccessorPacked:()=>yW,removeExtension:()=>lS,removeExtensionsRequired:()=>lW,removeExtensionsUsed:()=>aS,removePipelineExtras:()=>uW,removeUnusedElements:()=>fW,resizeImageToNextPowerOfTwo:()=>hx,sampleTerrain:()=>wE,sampleTerrainMostDetailed:()=>m1,scaleToGeodeticSurface:()=>m_,srgbToLinear:()=>f1,subdivideArray:()=>AE,subscribeAndEvaluate:()=>Zc,updateAccessorComponentTypes:()=>gW,updateVersion:()=>xW,usesExtension:()=>ds,viewerCesium3DTilesInspectorMixin:()=>Roe,viewerCesiumInspectorMixin:()=>Goe,viewerDragDropMixin:()=>Ioe,viewerPerformanceWatchdogMixin:()=>Xoe,viewerVoxelInspectorMixin:()=>Moe,webGLConstantToGlslType:()=>F8,wrapFunction:()=>OE,writeTextToCanvas:()=>o1,zlib_min:()=>Oie});var qsr=S(C(),1);var NNo=S(C(),1);var X5t=S(C(),1);function PXe(e){return(e.length===0||e[e.length-1]!=="/")&&(e=`${e}/`),e}var KG=PXe;var uYt=S(C(),1);var zzt=S(C(),1);var q5t=S(C(),1);var D5t=S(C(),1);var w5t=S(C(),1);function vXe(e){return e!=null}var d=vXe;var v5t=S(C(),1);function u_(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}d(Object.create)&&(u_.prototype=Object.create(Error.prototype),u_.prototype.constructor=u_);u_.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return d(this.stack)&&(e+=`
95
+ `),window.clearInterval(this.noSleepTimer),this.noSleepTimer=null):this.noSleepVideo.pause(),this.enabled=!1}};dXe.exports=Loe});var Z5t={};wXe(Z5t,{AlphaMode:()=>jm,AlphaPipelineStage:()=>CP,AnchorPointDirect:()=>GW,AnchorPointIndirect:()=>EW,Animation:()=>HD,AnimationViewModel:()=>JD,Appearance:()=>uo,ApproximateTerrainHeights:()=>Ui,ArcGISTiledElevationTerrainProvider:()=>oQ,ArcGisBaseMapType:()=>af,ArcGisMapServerImageryProvider:()=>sg,ArcGisMapService:()=>mm,ArcType:()=>Xn,ArticulationStageType:()=>rl,AssociativeArray:()=>zt,Atmosphere:()=>T5,AtmospherePipelineStage:()=>tP,AttributeCompression:()=>xn,AttributeSurfacePrimitive:()=>Die,AttributeType:()=>kt,AutoExposure:()=>_5,AutomaticUniforms:()=>Ab,Axis:()=>In,AxisAlignedBoundingBox:()=>Ag,B3dmLoader:()=>zW,B3dmParser:()=>hS,BaseLayerPicker:()=>jD,BaseLayerPickerViewModel:()=>QD,BatchTable:()=>V1,BatchTableHierarchy:()=>ey,BatchTexture:()=>ad,BatchTexturePipelineStage:()=>LP,Billboard:()=>sr,BillboardCollection:()=>Ou,BillboardGraphics:()=>fl,BillboardVisualizer:()=>HE,BingMapsGeocoderService:()=>sQ,BingMapsImageryProvider:()=>C5,BingMapsStyle:()=>zR,BlendEquation:()=>vc,BlendFunction:()=>Vr,BlendOption:()=>Gr,BlendingState:()=>Gn,BoundingRectangle:()=>$e,BoundingSphere:()=>de,BoundingSphereState:()=>Wt,BoundingVolumeSemantics:()=>ay,BoxEmitter:()=>cte,BoxGeometry:()=>sl,BoxGeometryUpdater:()=>Fw,BoxGraphics:()=>M1,BoxOutlineGeometry:()=>$h,BrdfLutGenerator:()=>Z5,Buffer:()=>nt,BufferLoader:()=>oS,BufferUsage:()=>Me,CPUStylingPipelineStage:()=>GP,CallbackPositionProperty:()=>Aw,CallbackProperty:()=>gp,Camera:()=>Ai,CameraEventAggregator:()=>H5,CameraEventType:()=>Io,CameraFlightPath:()=>B5,Cartesian2:()=>B,Cartesian3:()=>h,Cartesian4:()=>re,Cartographic:()=>me,CartographicGeocoderService:()=>dQ,CatmullRomSpline:()=>uQ,Cesium3DContentGroup:()=>qb,Cesium3DTile:()=>fh,Cesium3DTileBatchTable:()=>ty,Cesium3DTileColorBlendMode:()=>_l,Cesium3DTileContent:()=>Tte,Cesium3DTileContentFactory:()=>c0,Cesium3DTileContentState:()=>bi,Cesium3DTileContentType:()=>Go,Cesium3DTileCustomContent:()=>Gq,Cesium3DTileFeature:()=>Ba,Cesium3DTileFeatureTable:()=>ma,Cesium3DTileOptimizationHint:()=>Jd,Cesium3DTileOptimizations:()=>cT,Cesium3DTilePass:()=>ro,Cesium3DTilePassState:()=>Eh,Cesium3DTilePointFeature:()=>Uy,Cesium3DTileRefine:()=>zo,Cesium3DTileStyle:()=>TC,Cesium3DTileStyleEngine:()=>IS,Cesium3DTilesInspector:()=>i3,Cesium3DTilesInspectorViewModel:()=>n3,Cesium3DTilesVoxelProvider:()=>Rte,Cesium3DTileset:()=>ta,Cesium3DTilesetBaseTraversal:()=>wS,Cesium3DTilesetCache:()=>GS,Cesium3DTilesetGraphics:()=>A1,Cesium3DTilesetHeatmap:()=>ES,Cesium3DTilesetMetadata:()=>Gy,Cesium3DTilesetMostDetailedTraversal:()=>MS,Cesium3DTilesetSkipTraversal:()=>WS,Cesium3DTilesetStatistics:()=>md,Cesium3DTilesetTraversal:()=>Qa,Cesium3DTilesetVisualizer:()=>QN,CesiumInspector:()=>s3,CesiumInspectorViewModel:()=>r3,CesiumTerrainProvider:()=>W_,CesiumWidget:()=>ED,Check:()=>ao,CheckerboardMaterialProperty:()=>BZ,CircleEmitter:()=>$5,CircleGeometry:()=>vQ,CircleOutlineGeometry:()=>NQ,ClassificationModelDrawCommand:()=>Mv,ClassificationPipelineStage:()=>VP,ClassificationPrimitive:()=>UV,ClassificationType:()=>ei,ClearCommand:()=>ai,ClipFillUtil:()=>Av,ClippingGeometry:()=>Uie,ClippingGeometryFS:()=>XD,ClippingGeometryType:()=>xf,ClippingGeometryVS:()=>MD,ClippingGltfFS:()=>wD,ClippingGltfVS:()=>WD,ClippingPlane:()=>ly,ClippingPlaneCollection:()=>Zr,ClippingPolygon:()=>nZ,ClippingPolygonCollection:()=>jd,ClippingType:()=>LN,Clock:()=>op,ClockRange:()=>Xs,ClockStep:()=>dr,ClockViewModel:()=>YD,CloudCollection:()=>wte,CloudType:()=>JR,Color:()=>z,ColorBlendMode:()=>Cl,ColorCorrection:()=>uD,ColorCurrection:()=>FA,ColorGeometryInstanceAttribute:()=>cn,ColorMaterialProperty:()=>mn,Command:()=>coe,ComponentDatatype:()=>H,Composite3DTileContent:()=>Tp,CompositeEntityCollection:()=>wq,CompositeMaterialProperty:()=>KZ,CompositePositionProperty:()=>xc,CompositeProperty:()=>Ml,CompressedTextureBuffer:()=>I2,ComputeCommand:()=>Sp,ComputeEngine:()=>b5,ConditionsExpression:()=>J5,ConeEmitter:()=>vte,Config:()=>n2,ConstantPositionProperty:()=>rd,ConstantProperty:()=>Fi,ConstantSpline:()=>X2,ContentMetadata:()=>Yw,Context:()=>EN,ContextLimits:()=>qt,CoplanarPolygonGeometry:()=>A2,CoplanarPolygonGeometryLibrary:()=>xb,CoplanarPolygonOutlineGeometry:()=>Pm,CornerType:()=>Vo,CorrelationGroup:()=>IW,CorridorGeometry:()=>zf,CorridorGeometryLibrary:()=>vo,CorridorGeometryUpdater:()=>qN,CorridorGraphics:()=>W1,CorridorOutlineGeometry:()=>O2,Credit:()=>Ot,CreditDisplay:()=>pF,CubeMap:()=>Nc,CubeMapFace:()=>tI,CubicRealPolynomial:()=>R_,CullFace:()=>_i,CullingVolume:()=>Hr,CumulusCloud:()=>pm,CustomDataSource:()=>o9,CustomHeightmapTerrainProvider:()=>rj,CustomShader:()=>eL,CustomShaderMode:()=>_y,CustomShaderPipelineStage:()=>PP,CustomShaderTranslucencyMode:()=>Qx,CuttingFilterUtil:()=>MN,CylinderGeometry:()=>Yf,CylinderGeometryLibrary:()=>K_,CylinderGeometryUpdater:()=>r9,CylinderGraphics:()=>P1,CylinderOutlineGeometry:()=>J2,CzmlDataSource:()=>m9,DataSource:()=>Us,DataSourceClock:()=>zp,DataSourceCollection:()=>h9,DataSourceDisplay:()=>W9,DebugAppearance:()=>Kte,DebugCameraPrimitive:()=>z0,DebugInspector:()=>yF,DebugModelMatrixPrimitive:()=>gF,DefaultProxy:()=>uj,DepthFunction:()=>gl,DepthPlane:()=>CF,DequantizationPipelineStage:()=>NP,DerivedCommand:()=>fu,DeveloperError:()=>be,DeviceOrientationCameraController:()=>LF,DirectionalLight:()=>Qte,DiscardEmptyTileImagePolicy:()=>YR,DiscardMissingTileImagePolicy:()=>g5,DistanceDisplayCondition:()=>nn,DistanceDisplayConditionGeometryInstanceAttribute:()=>Li,DoubleEndedPriorityQueue:()=>J_,DoublyLinkedList:()=>tE,DracoLoader:()=>Lp,DrawCommand:()=>Je,DynamicAtmosphereLightingType:()=>yC,DynamicGeometryBatch:()=>eC,DynamicGeometryUpdater:()=>Hi,EarthOrientationParameters:()=>a2,EarthOrientationParametersSample:()=>Rg,EasingFunction:()=>ws,EllipseGeometry:()=>$l,EllipseGeometryLibrary:()=>Ad,EllipseGeometryUpdater:()=>f9,EllipseGraphics:()=>v1,EllipseOutlineGeometry:()=>Vu,Ellipsoid:()=>oe,EllipsoidGeodesic:()=>Sb,EllipsoidGeometry:()=>ys,EllipsoidGeometryUpdater:()=>y9,EllipsoidGraphics:()=>N1,EllipsoidOutlineGeometry:()=>al,EllipsoidPrimitive:()=>VF,EllipsoidRhumbLine:()=>Xc,EllipsoidSurfaceAppearance:()=>Xh,EllipsoidSurfaceVoxelAppearance:()=>XZ,EllipsoidSurfaceVoxelAppearanceFS:()=>sN,EllipsoidSurfaceVoxelAppearanceVS:()=>rN,EllipsoidTangentPlane:()=>bs,EllipsoidTerrainProvider:()=>Of,EllipsoidalOccluder:()=>hb,Empty3DTileContent:()=>Au,EncodedCartesian3:()=>Ti,Entity:()=>jr,EntityCluster:()=>ju,EntityCollection:()=>$a,EntityView:()=>v9,Event:()=>Se,EventHelper:()=>Ws,Expression:()=>dh,ExpressionNodeType:()=>Dt,ExtrapolationType:()=>Gu,FeatureDetection:()=>bn,FeatureIdPipelineStage:()=>Jx,FlattenTool:()=>Kie,Fog:()=>GF,ForEach:()=>De,FrameBufferType:()=>x0,FrameRateMonitor:()=>EF,FrameState:()=>IF,Framebuffer:()=>Jo,FramebufferManager:()=>zi,FrustumCommands:()=>XF,FrustumGeometry:()=>j_,FrustumOutlineGeometry:()=>rE,Fullscreen:()=>fs,FullscreenButton:()=>c3,FullscreenButtonViewModel:()=>a3,GeoJsonDataSource:()=>e5,GeoJsonLoader:()=>YW,GeocodeType:()=>sx,Geocoder:()=>d3,GeocoderService:()=>bV,GeocoderViewModel:()=>l3,GeographicProjection:()=>So,GeographicTilingScheme:()=>Uo,Geometry:()=>It,Geometry3DTileContent:()=>wN,GeometryAttribute:()=>Ee,GeometryAttributes:()=>An,GeometryFactory:()=>Tj,GeometryInstance:()=>wt,GeometryInstanceAttribute:()=>cl,GeometryOffsetAttribute:()=>vn,GeometryPipeline:()=>fi,GeometryPipelineStage:()=>zP,GeometryType:()=>Mm,GeometryUpdater:()=>Ji,GeometryUpdaterSet:()=>iC,GeometryVisualizer:()=>L9,GetFeatureInfoFormat:()=>ZC,Globe:()=>QF,GlobeDepth:()=>jF,GlobeEffect:()=>zie,GlobeSurfaceShaderSet:()=>vF,GlobeSurfaceTile:()=>Mh,GlobeSurfaceTileProvider:()=>DF,GlobeTranslucency:()=>UF,GlobeTranslucencyFramebuffer:()=>qF,GlobeTranslucencyState:()=>$F,GltfBufferViewLoader:()=>oZ,GltfDracoLoader:()=>rZ,GltfGpmLoader:()=>MW,GltfGpmLocal:()=>fZ,GltfImageLoader:()=>sZ,GltfIndexBufferLoader:()=>aZ,GltfJsonLoader:()=>lZ,GltfLoader:()=>zc,GltfLoaderUtil:()=>$d,GltfMeshPrimitiveGpmLoader:()=>vW,GltfStructuralMetadataLoader:()=>ZW,GltfTextureLoader:()=>dZ,GltfVertexBufferLoader:()=>uZ,GoogleEarthEnterpriseImageryProvider:()=>yne,GoogleEarthEnterpriseMapsProvider:()=>aF,GoogleEarthEnterpriseMetadata:()=>Ib,GoogleEarthEnterpriseTerrainData:()=>yV,GoogleEarthEnterpriseTerrainProvider:()=>Gj,GoogleEarthEnterpriseTileInformation:()=>aE,GoogleMaps:()=>$_,GpxDataSource:()=>o5,GregorianDate:()=>ob,GridImageryProvider:()=>gne,GridMaterialProperty:()=>qZ,GroundGeometryUpdater:()=>Gi,GroundPolylineGeometry:()=>e1,GroundPolylinePrimitive:()=>hp,GroundPrimitive:()=>ka,GroundPrimitiveRectangleGenerater:()=>Bie,GroupMetadata:()=>WZ,HashMap:()=>nh,HeadingPitchRange:()=>dl,HeadingPitchRoll:()=>Gs,Heap:()=>e2,HeightReference:()=>rt,HeightmapEncoding:()=>Gm,HeightmapTerrainData:()=>Gc,HeightmapTessellator:()=>NL,HermitePolynomialApproximation:()=>lE,HermiteSpline:()=>Yg,HilbertOrder:()=>gV,HomeButton:()=>m3,HomeButtonViewModel:()=>u3,HorizontalOrigin:()=>po,I3SBuildingSceneLayerExplorer:()=>yoe,I3SBuildingSceneLayerExplorerViewModel:()=>h3,I3SDataProvider:()=>ff,I3SDecoder:()=>eA,I3SFeature:()=>tA,I3SField:()=>nA,I3SGeometry:()=>mG,I3SLayer:()=>vC,I3SNode:()=>hG,I3SStatistics:()=>rA,I3SSublayer:()=>aA,I3SSymbology:()=>oA,I3dmLoader:()=>BW,I3dmParser:()=>fS,Iau2000Orientation:()=>uE,Iau2006XysData:()=>c2,Iau2006XysSample:()=>V_,IauOrientationAxes:()=>mE,IauOrientationParameters:()=>dE,ImageBasedLighting:()=>Qb,ImageBasedLightingPipelineStage:()=>iP,ImageMaterialProperty:()=>Gx,Imagery:()=>rG,ImageryLayer:()=>Ys,ImageryLayerCollection:()=>kF,ImageryLayerFeatureInfo:()=>cf,ImageryProvider:()=>_d,ImageryState:()=>qi,Implicit3DTileContent:()=>DZ,ImplicitAvailabilityBitstream:()=>FZ,ImplicitMetadataView:()=>AZ,ImplicitSubdivisionScheme:()=>ea,ImplicitSubtree:()=>YS,ImplicitSubtreeCache:()=>j5,ImplicitSubtreeMetadata:()=>WN,ImplicitTileCoordinates:()=>Iy,ImplicitTileset:()=>Ey,IndexDatatype:()=>qe,InfoBox:()=>f3,InfoBoxViewModel:()=>p3,InspectorShared:()=>jc,InstanceAttributeSemantic:()=>kr,InstancingPipelineStage:()=>xP,InterceptorsUtil:()=>VL,InterpolationAlgorithm:()=>Uj,InterpolationType:()=>lp,Intersect:()=>Qt,IntersectionTests:()=>Wi,Intersections2D:()=>pb,Interval:()=>Wa,InvertClassification:()=>fG,Ion:()=>ep,IonGeocoderService:()=>fE,IonImageryProvider:()=>lg,IonResource:()=>jl,IonWorldImageryStyle:()=>dg,Iso8601:()=>tt,JobScheduler:()=>cA,JobType:()=>kc,JsonMetadataTable:()=>uy,JulianDate:()=>ee,KTX2Transcoder:()=>bE,KeyboardEventModifier:()=>Da,KeyframeNode:()=>Qo,KmlCamera:()=>r5,KmlDataSource:()=>m5,KmlLookAt:()=>s5,KmlTour:()=>a5,KmlTourFlyTo:()=>c5,KmlTourWait:()=>l5,Label:()=>uT,LabelCollection:()=>ah,LabelGraphics:()=>fp,LabelStyle:()=>Yr,LabelVisualizer:()=>V9,LagrangePolynomialApproximation:()=>yE,LeapSecond:()=>Do,Light:()=>Sne,LightManager:()=>q0,LightingMode:()=>Sd,LightingModel:()=>h0,LightingPipelineStage:()=>BP,LinearApproximation:()=>t1,LinearSpline:()=>zg,M3D10MetadataTable:()=>Jv,M3D20MetadataTable:()=>Kv,M3D21MetadataTable:()=>Xx,M3DAttContentFactory:()=>kw,M3DAttParser:()=>r0,M3DB3dmLoader:()=>jv,M3DContentFactory:()=>rT,M3DContentType:()=>Vy,M3DDataLoader:()=>iN,M3DDataParser:()=>nN,M3DGltfLoader:()=>Qv,M3DGltfParser:()=>Bv,M3DI3dmLoader:()=>qv,M3DPntsLoader:()=>tN,M3DPntsParser:()=>$v,M3DTidParser:()=>Kw,M3DTree:()=>eoe,MAPGIS_VERSION:()=>V5t,ManagedArray:()=>wc,MapGISM3D:()=>ZS,MapGISM3DSet:()=>Il,MapGISM3DTileContent:()=>wx,MapGISM3DVoxelContent:()=>lN,MapGISVoxelPrimitive:()=>VS,MapMode2D:()=>uu,MapProjection:()=>Oj,MapboxImageryProvider:()=>cF,MapboxStyleImageryProvider:()=>Cne,Material:()=>Pi,MaterialAppearance:()=>rr,MaterialPipelineStage:()=>KP,MaterialProperty:()=>Qr,Math:()=>M,Matrix2:()=>Po,Matrix3:()=>$,Matrix4:()=>P,Megatexture:()=>yG,MeshPrimitiveGpmLocal:()=>PW,MetadataClass:()=>ua,MetadataClassProperty:()=>d0,MetadataComponentType:()=>pn,MetadataEntity:()=>ci,MetadataEnum:()=>SW,MetadataEnumValue:()=>_W,MetadataPicking:()=>lA,MetadataPickingPipelineStage:()=>zu,MetadataPipelineStage:()=>eh,MetadataSchema:()=>Rl,MetadataSchemaLoader:()=>mZ,MetadataSemantic:()=>BS,MetadataTable:()=>Vl,MetadataTableProperty:()=>iZ,MetadataType:()=>Jt,MipmapHint:()=>$f,Model:()=>Ka,Model3DTileContent:()=>El,ModelAlphaOptions:()=>xv,ModelAnimation:()=>KW,ModelAnimationChannel:()=>OW,ModelAnimationCollection:()=>HW,ModelAnimationLoop:()=>Qd,ModelAnimationState:()=>Ip,ModelArticulation:()=>rP,ModelArticulationStage:()=>oP,ModelClippingGeometryPipelineStage:()=>dP,ModelClippingPlanesPipelineStage:()=>cP,ModelClippingPolygonsPipelineStage:()=>hP,ModelColorPipelineStage:()=>Hx,ModelComponents:()=>hn,ModelDrawCommand:()=>wv,ModelDrawCommands:()=>vv,ModelExplosion:()=>ioe,ModelExplosionPipelineStage:()=>hv,ModelFeature:()=>JW,ModelFeatureTable:()=>jW,ModelFlattenPipelineStage:()=>bv,ModelGraphics:()=>Ob,ModelLightingOptions:()=>Ev,ModelMatrixUpdateStage:()=>TP,ModelNode:()=>pP,ModelPMPipelineStage:()=>pv,ModelRenderResources:()=>Sv,ModelRuntimeNode:()=>SP,ModelRuntimePrimitive:()=>yv,ModelSceneGraph:()=>Uv,ModelSilhouettePipelineStage:()=>Vv,ModelSkin:()=>gv,ModelSplitterPipelineStage:()=>Rv,ModelStatistics:()=>kv,ModelStretchPipelineStage:()=>uv,ModelSwipePipelineStage:()=>Fv,ModelType:()=>xr,ModelUtility:()=>fn,ModelVisualizer:()=>Z9,Moon:()=>uA,MorphTargetsPipelineStage:()=>JP,MorphWeightSpline:()=>Qj,MortonOrder:()=>dx,Multiple3DTileContent:()=>H1,MultisampleFramebuffer:()=>NW,NavigationHelpButton:()=>y3,NavigationHelpButtonViewModel:()=>b3,NearFarScalar:()=>sn,NetCDFLoader:()=>aN,NeverTileDiscardPolicy:()=>Vne,NodeRenderResources:()=>Gv,NodeStatisticsPipelineStage:()=>_P,NodeTransformationProperty:()=>F1,OIDTexturePipelineStage:()=>lv,OIT:()=>hA,Occluder:()=>xE,OffsetGeometryInstanceAttribute:()=>Ho,OpenCageGeocoderService:()=>t8,OpenStreetMapImageryProvider:()=>bg,OrderedGroundPrimitiveCollection:()=>p9,OrientedBoundingBox:()=>Hn,OrthographicFrustum:()=>En,OrthographicOffCenterFrustum:()=>Ps,OutlineForOid:()=>BA,OutlineForPrimitives:()=>OA,OutlineRenderMode:()=>wp,Packable:()=>n8,PackableForInterpolation:()=>i8,ParallelLight:()=>EG,Particle:()=>xG,ParticleBurst:()=>Ine,ParticleEmitter:()=>Xne,ParticleSystem:()=>Mne,Pass:()=>Ze,PassState:()=>Er,PathGraphics:()=>Kb,PathVisualizer:()=>R9,PeliasGeocoderService:()=>pE,PerInstanceColorAppearance:()=>Wn,PerformanceDisplay:()=>yg,PerformanceWatchdog:()=>x3,PerformanceWatchdogViewModel:()=>g3,PerspectiveFrustum:()=>ki,PerspectiveOffCenterFrustum:()=>nd,PickDepth:()=>fA,PickDepthFramebuffer:()=>yA,PickFramebuffer:()=>xA,PickedMetadataInfo:()=>gA,Picking:()=>SA,PickingPipelineStage:()=>QP,PinBuilder:()=>Wb,PixelDatatype:()=>ke,PixelFormat:()=>Ye,Plane:()=>Vn,PlaneGeometry:()=>r1,PlaneGeometryUpdater:()=>g9,PlaneGraphics:()=>Xw,PlaneOutlineGeometry:()=>CE,PntsLoader:()=>Yv,PntsParser:()=>_S,PointCloud:()=>LA,PointCloudEyeDomeLighting:()=>Gp,PointCloudShading:()=>$m,PointCloudStylingPipelineStage:()=>qP,PointGraphics:()=>D1,PointLight:()=>GG,PointPrimitive:()=>Ga,PointPrimitiveCollection:()=>JZ,PointVisualizer:()=>E9,PolygonGeometry:()=>Wc,PolygonGeometryLibrary:()=>Ci,PolygonGeometryUpdater:()=>x9,PolygonGraphics:()=>bp,PolygonHierarchy:()=>la,PolygonOutlineGeometry:()=>LE,PolygonPipeline:()=>Ki,PolygonSwiperCullingCommand:()=>cD,Polyline:()=>mh,PolylineArrowMaterialProperty:()=>eR,PolylineCollection:()=>Np,PolylineColorAppearance:()=>qs,PolylineDashMaterialProperty:()=>nR,PolylineGeometry:()=>Pb,PolylineGeometryUpdater:()=>X9,PolylineGlowMaterialProperty:()=>oR,PolylineGraphics:()=>xl,PolylineMaterialAppearance:()=>hc,PolylineOutlineMaterialProperty:()=>CT,PolylinePipeline:()=>Zo,PolylineVisualizer:()=>w9,PolylineVolumeAnimationGeometry:()=>UG,PolylineVolumeGeometry:()=>od,PolylineVolumeGeometryLibrary:()=>rp,PolylineVolumeGeometryUpdater:()=>T9,PolylineVolumeGraphics:()=>U1,PolylineVolumeOutlineGeometry:()=>IE,PositionProperty:()=>pp,PositionPropertyArray:()=>Oy,PostProcessStage:()=>Ko,PostProcessStageCollection:()=>JA,PostProcessStageComposite:()=>Vd,PostProcessStageLibrary:()=>xu,PostProcessStageSampleMode:()=>gm,PostProcessStageTextureCache:()=>HC,PpeMetadata:()=>WW,PpeSource:()=>ooe,PpeTexture:()=>wW,Primitive:()=>Un,PrimitiveCollection:()=>yd,PrimitiveLoadPlan:()=>mS,PrimitiveOutlineGenerator:()=>uS,PrimitiveOutlinePipelineStage:()=>tv,PrimitivePipeline:()=>Z1,PrimitiveRenderResources:()=>Iv,PrimitiveState:()=>Ts,PrimitiveStatisticsPipelineStage:()=>nv,PrimitiveType:()=>Fe,ProjectionPicker:()=>_3,ProjectionPickerViewModel:()=>T3,Property:()=>Q,PropertyArray:()=>sR,PropertyAttribute:()=>hy,PropertyAttributeProperty:()=>nW,PropertyBag:()=>Kd,PropertyTable:()=>ls,PropertyTexture:()=>my,PropertyTextureProperty:()=>tW,ProviderViewModel:()=>ra,Proxy:()=>s8,QuadraticRealPolynomial:()=>Hl,QuadtreeOccluders:()=>zF,QuadtreePrimitive:()=>JF,QuadtreeTile:()=>YF,QuadtreeTileLoadState:()=>nc,QuadtreeTileProvider:()=>Jne,QuantizedMeshTerrainData:()=>w_,QuarticRealPolynomial:()=>_2,Quaternion:()=>Be,QuaternionSpline:()=>XE,Queue:()=>jg,Ray:()=>Dn,Rectangle:()=>he,RectangleCollisionChecker:()=>l1,RectangleGeometry:()=>Iu,RectangleGeometryLibrary:()=>Ca,RectangleGeometryUpdater:()=>_9,RectangleGraphics:()=>yp,RectangleOutlineGeometry:()=>d1,ReferenceFrame:()=>No,ReferenceProperty:()=>Ky,RenderDebug:()=>Hie,RenderState:()=>Ne,Renderbuffer:()=>ku,RenderbufferFormat:()=>ld,Request:()=>Mr,RequestErrorEvent:()=>Vf,RequestScheduler:()=>rc,RequestState:()=>Xi,RequestType:()=>Rs,Resource:()=>Xe,ResourceCache:()=>ji,ResourceCacheKey:()=>eu,ResourceCacheStatistics:()=>VW,ResourceLoader:()=>vi,ResourceLoaderState:()=>Xt,Rotation:()=>yh,RuntimeError:()=>le,S2Cell:()=>vb,SDFSettings:()=>Ja,SampledPositionProperty:()=>Tc,SampledProperty:()=>em,Sampler:()=>un,ScaledPositionProperty:()=>Z0,Scene:()=>hD,SceneFramebuffer:()=>AC,SceneMode:()=>ae,SceneMode2DPipelineStage:()=>iv,SceneModePicker:()=>C3,SceneModePickerViewModel:()=>S3,SceneProjectorEx:()=>Fie,SceneProjectorExFS:()=>ID,SceneProjectorSourceType:()=>Bs,SceneTransforms:()=>yo,SceneTransitioner:()=>jA,ScreenSpaceCameraController:()=>eD,ScreenSpaceEventHandler:()=>Mu,ScreenSpaceEventType:()=>jn,SectionCylinderGeometry:()=>AS,SectionFrameBuffer:()=>VN,SectionPlaneGeometry:()=>ja,SectionPolygonGeometry:()=>Cg,SectionRender:()=>XN,SectionRenderUtil:()=>Dv,SelectedFeatureIdPipelineStage:()=>jx,SelectionIndicator:()=>Z3,SelectionIndicatorViewModel:()=>V3,SensorVolumePortionToDisplay:()=>dR,ShaderBuilder:()=>xS,ShaderCache:()=>ZN,ShaderDestination:()=>xe,ShaderFunction:()=>_v,ShaderProgram:()=>Yt,ShaderSource:()=>Oe,ShaderStruct:()=>Tv,ShadowMap:()=>bf,ShadowMapShader:()=>H0,ShadowMode:()=>On,ShadowVolumeAppearance:()=>Pu,ShowGeometryInstanceAttribute:()=>qn,Simon1994PlanetaryPositions:()=>gx,SimplePolylineGeometry:()=>G8,SingleTileImageryProvider:()=>VC,SkinningPipelineStage:()=>rv,SkyAtmosphere:()=>bD,SkyBox:()=>iL,SpatialNode:()=>rD,Spdcf:()=>XW,SpecularEnvironmentCubeMap:()=>xp,SphereEmitter:()=>Rie,SphereGeometry:()=>E8,SphereOutlineGeometry:()=>Nb,Spherical:()=>NE,Spline:()=>nr,SplitDirection:()=>cs,Splitter:()=>_G,SpotLight:()=>IG,StaticGeometryColorBatch:()=>_h,StaticGeometryPerMaterialBatch:()=>Ch,StaticGroundGeometryColorBatch:()=>xR,StaticGroundGeometryPerMaterialBatch:()=>C9,StaticGroundPolylinePerMaterialBatch:()=>M9,StaticOutlineGeometryBatch:()=>_R,StencilConstants:()=>an,StencilFunction:()=>Vi,StencilOperation:()=>Nt,SteppedSpline:()=>FE,Stereographic:()=>ml,StorageType:()=>zx,StripeMaterialProperty:()=>cR,StripeOrientation:()=>Bp,StructuralMetadata:()=>mr,StyleCommandsNeeded:()=>Xp,StyleExpression:()=>Gie,Sun:()=>VD,SunLight:()=>vy,SunPostProcess:()=>iD,SupportedImageFormats:()=>RW,SvgPathBindingHandler:()=>kD,SwipeModeType:()=>Kn,SwiperCullingFramebuffer:()=>lD,TaskProcessor:()=>oo,Terrain:()=>ZD,TerrainData:()=>jh,TerrainEncoding:()=>ol,TerrainFillMesh:()=>lG,TerrainMesh:()=>Im,TerrainOffsetProperty:()=>k1,TerrainProvider:()=>Js,TerrainQuantization:()=>Na,TerrainState:()=>cr,Texture:()=>it,Texture3D:()=>cN,TextureAtlas:()=>dT,TextureCache:()=>RN,TextureMagnificationFilter:()=>Ri,TextureManager:()=>sD,TextureMinificationFilter:()=>gn,TextureUniform:()=>Jie,TextureWrap:()=>Nn,TileAvailability:()=>qh,TileBoundingRegion:()=>fc,TileBoundingS2Cell:()=>q1,TileBoundingSphere:()=>Ac,TileBoundingVolume:()=>Eie,TileCoordinatesImageryProvider:()=>GD,TileDiscardPolicy:()=>Xie,TileEdge:()=>Jn,TileImagery:()=>sG,TileMapServiceImageryProvider:()=>HT,TileMetadata:()=>Bw,TileOrientedBoundingBox:()=>Dc,TileProviderError:()=>Lr,TileReplacementQueue:()=>BF,TileSelectionResult:()=>Ni,TileState:()=>Mie,Tileset3DTileContent:()=>PN,TilesetMetadata:()=>dN,TilesetPipelineStage:()=>qW,TilingScheme:()=>I8,TimeConstants:()=>wi,TimeDynamicImagery:()=>RC,TimeDynamicPointCloud:()=>FG,TimeInterval:()=>$n,TimeIntervalCollection:()=>Fs,TimeIntervalCollectionPositionProperty:()=>Hy,TimeIntervalCollectionProperty:()=>Jy,TimeStandard:()=>Ei,Timeline:()=>E3,TimelineHighlightRange:()=>R3,TimelineTrack:()=>G3,Tipsify:()=>Z2,ToggleButtonViewModel:()=>s_,Tonemapper:()=>xg,Transforms:()=>Zt,TranslationRotationScale:()=>_x,TranslucentTileClassification:()=>_A,TridiagonalSystemSolver:()=>zL,TrustedServers:()=>LL,TweenCollection:()=>QC,UniformState:()=>GN,UniformType:()=>VG,UrlTemplateImageryProvider:()=>Jc,UrlUtil:()=>T4,Util:()=>mT,VERSION:()=>L5t,VRButton:()=>X3,VRButtonViewModel:()=>I3,VRTheWorldTerrainProvider:()=>P8,VaryingType:()=>Qie,Vector3DTileBatch:()=>o0,Vector3DTileClampedPolylines:()=>HN,Vector3DTileContent:()=>JN,Vector3DTileGeometry:()=>Fy,Vector3DTilePoints:()=>UN,Vector3DTilePolygons:()=>kN,Vector3DTilePolylines:()=>KS,Vector3DTilePrimitive:()=>kS,VelocityOrientationProperty:()=>a9,VelocityVectorProperty:()=>qS,VertexArray:()=>Yn,VertexArrayFacade:()=>Xy,VertexAttributeSemantic:()=>ut,VertexFormat:()=>ve,VerticalExaggeration:()=>or,VerticalExaggerationPipelineStage:()=>av,VerticalOrigin:()=>ui,VideoSynchronizer:()=>W8,View:()=>kC,Viewer:()=>Zoe,ViewportQuad:()=>RG,ViewshedAnalysis:()=>Aie,Visibility:()=>as,VisualAnalysisManager:()=>p5,Visualizer:()=>ite,VoxelBoxShape:()=>D0,VoxelCell:()=>CG,VoxelContent:()=>q5,VoxelCylinderShape:()=>U0,VoxelEllipsoidShape:()=>_C,VoxelInspector:()=>W3,VoxelInspectorViewModel:()=>w3,VoxelPrimitive:()=>i_,VoxelProvider:()=>vie,VoxelRenderResources:()=>U5,VoxelShape:()=>Nie,VoxelShapeType:()=>Xo,VoxelTraversal:()=>LG,VulkanConstants:()=>v8,WallGeometry:()=>zE,WallGeometryLibrary:()=>y1,WallGeometryUpdater:()=>S9,WallGraphics:()=>Hb,WallOutlineGeometry:()=>BE,WebGLConstants:()=>te,WebMapServiceImageryProvider:()=>dF,WebMapTileServiceImageryProvider:()=>mF,WebMercatorProjection:()=>Lo,WebMercatorTilingScheme:()=>Qs,WindingOrder:()=>da,WireframeIndexGenerator:()=>PV,WireframePipelineStage:()=>cv,_shadersAcesTonemappingStage:()=>VA,_shadersAdditiveBlend:()=>tD,_shadersAdjustTranslucentFS:()=>gG,_shadersAllMaterialAppearanceFS:()=>JE,_shadersAllMaterialAppearanceVS:()=>QE,_shadersAmbientOcclusionGenerate:()=>ZA,_shadersAmbientOcclusionModulate:()=>RA,_shadersAspectRampMaterial:()=>iI,_shadersAtmosphereCommon:()=>mg,_shadersAtmosphereStageFS:()=>$W,_shadersAtmosphereStageVS:()=>eP,_shadersBasicMaterialAppearanceFS:()=>jE,_shadersBasicMaterialAppearanceVS:()=>qE,_shadersBillboardCollectionFS:()=>hN,_shadersBillboardCollectionVS:()=>pN,_shadersBlackAndWhite:()=>GA,_shadersBloomComposite:()=>EA,_shadersBrdfLutGeneratorFS:()=>L5,_shadersBrightPass:()=>nD,_shadersBrightness:()=>IA,_shadersBumpMapMaterial:()=>oI,_shadersCPUStylingStageFS:()=>RP,_shadersCPUStylingStageVS:()=>ZP,_shadersCheckerboardMaterial:()=>rI,_shadersCloudCollectionFS:()=>eF,_shadersCloudCollectionVS:()=>tF,_shadersCloudNoiseFS:()=>nF,_shadersCloudNoiseVS:()=>iF,_shadersCompareAndPackTranslucentDepth:()=>TA,_shadersCompositeOITFS:()=>mA,_shadersCompositeTranslucentClassification:()=>UC,_shadersContrastBias:()=>XA,_shadersCustomShaderStageFS:()=>IP,_shadersCustomShaderStageVS:()=>EP,_shadersCzmBuiltins:()=>L1,_shadersDepthOfField:()=>MA,_shadersDepthPlaneFS:()=>xF,_shadersDepthPlaneVS:()=>TF,_shadersDepthView:()=>wA,_shadersDepthViewPacked:()=>qie,_shadersDotMaterial:()=>sI,_shadersEdgeDetection:()=>WA,_shadersElevationBandMaterial:()=>aI,_shadersElevationContourMaterial:()=>cI,_shadersElevationRampMaterial:()=>lI,_shadersEllipsoidFS:()=>tG,_shadersEllipsoidSurfaceAppearanceFS:()=>ZF,_shadersEllipsoidSurfaceAppearanceVS:()=>RF,_shadersEllipsoidVS:()=>nG,_shadersFXAA:()=>NA,_shadersFXAA3_11:()=>YA,_shadersFadeMaterial:()=>dI,_shadersFeatureIdStageFS:()=>XP,_shadersFeatureIdStageVS:()=>MP,_shadersFilmicTonemapping:()=>PA,_shadersGaussianBlur1D:()=>t_,_shadersGeometryStageFS:()=>FP,_shadersGeometryStageVS:()=>AP,_shadersGlobeFS:()=>WF,_shadersGlobeVS:()=>PF,_shadersGridMaterial:()=>uI,_shadersGroundAtmosphere:()=>iG,_shadersHSBToRGB:()=>sM,_shadersHSLToRGB:()=>aM,_shadersImageBasedLightingStageFS:()=>nP,_shadersInstancingStageCommon:()=>fP,_shadersInstancingStageVS:()=>bP,_shadersIntersectBox:()=>w5,_shadersIntersectClippingPlanes:()=>M5,_shadersIntersectCylinder:()=>W5,_shadersIntersectDepth:()=>X5,_shadersIntersectEllipsoid:()=>P5,_shadersIntersectLongitude:()=>BR,_shadersIntersection:()=>xC,_shadersIntersectionUtils:()=>I5,_shadersLegacyInstancingStageVS:()=>yP,_shadersLensFlare:()=>AA,_shadersLightingStageFS:()=>YP,_shadersMaterialStageFS:()=>OP,_shadersMegatexture:()=>D5,_shadersMetadataStageFS:()=>wP,_shadersMetadataStageVS:()=>WP,_shadersModelClippingGeometryStageFS:()=>lP,_shadersModelClippingPlanesStageFS:()=>aP,_shadersModelClippingPolygonsStageFS:()=>mP,_shadersModelClippingPolygonsStageVS:()=>uP,_shadersModelColorStageFS:()=>sP,_shadersModelExplosionStageVS:()=>mv,_shadersModelFS:()=>Pv,_shadersModelFlattenStageVS:()=>fv,_shadersModelSilhouetteStageFS:()=>Cv,_shadersModelSilhouetteStageVS:()=>Lv,_shadersModelSplitterStageFS:()=>Zv,_shadersModelStretchStageVS:()=>dv,_shadersModelSwipePipelineStageFS:()=>Nv,_shadersModelVS:()=>Wv,_shadersModifiedReinhardTonemapping:()=>DA,_shadersMorphTargetsStageVS:()=>HP,_shadersNightVision:()=>UA,_shadersNormalMapMaterial:()=>mI,_shadersOctree:()=>A5,_shadersPassThrough:()=>yu,_shadersPassThroughDepth:()=>QT,_shadersPbrNeutralTonemapping:()=>vA,_shadersPerInstanceColorAppearanceFS:()=>CI,_shadersPerInstanceColorAppearanceVS:()=>LI,_shadersPerInstanceFlatColorAppearanceFS:()=>S1,_shadersPerInstanceFlatColorAppearanceVS:()=>VI,_shadersPointCloudEyeDomeLighting:()=>AW,_shadersPointCloudStylingStageVS:()=>jP,_shadersPointPrimitiveCollectionFS:()=>ST,_shadersPointPrimitiveCollectionVS:()=>$N,_shadersPolygonSignedDistanceFS:()=>Hw,_shadersPolylineArrowMaterial:()=>hI,_shadersPolylineColorAppearanceVS:()=>gw,_shadersPolylineCommon:()=>vu,_shadersPolylineDashMaterial:()=>pI,_shadersPolylineFS:()=>I1,_shadersPolylineGlowMaterial:()=>fI,_shadersPolylineMaterialAppearanceVS:()=>xw,_shadersPolylineOutlineMaterial:()=>bI,_shadersPolylineShadowVolumeFS:()=>pw,_shadersPolylineShadowVolumeMorphFS:()=>fw,_shadersPolylineShadowVolumeMorphVS:()=>bw,_shadersPolylineShadowVolumeVS:()=>yw,_shadersPolylineVS:()=>vN,_shadersPrimitiveOutlineStageFS:()=>ev,_shadersPrimitiveOutlineStageVS:()=>$P,_shadersRGBToHSB:()=>wM,_shadersRGBToHSL:()=>WM,_shadersRGBToXYZ:()=>PM,_shadersReinhardTonemapping:()=>kA,_shadersReprojectWebMercatorFS:()=>NF,_shadersReprojectWebMercatorVS:()=>FF,_shadersRimLightingMaterial:()=>yI,_shadersSelectedFeatureIdStageCommon:()=>jie,_shadersSelectedFeatureIdStageFS:()=>DP,_shadersSelectedFeatureIdStageVS:()=>UP,_shadersShadowVolumeAppearanceFS:()=>AV,_shadersShadowVolumeAppearanceVS:()=>dw,_shadersShadowVolumeFS:()=>Rx,_shadersSilhouette:()=>zA,_shadersSkinningStageVS:()=>ov,_shadersSkyAtmosphereCommon:()=>XG,_shadersSkyAtmosphereFS:()=>pD,_shadersSkyAtmosphereVS:()=>fD,_shadersSkyBoxFS:()=>yD,_shadersSkyBoxVS:()=>gD,_shadersSlopeRampMaterial:()=>gI,_shadersStripeMaterial:()=>xI,_shadersSunFS:()=>TD,_shadersSunTextureFS:()=>_D,_shadersSunVS:()=>SD,_shadersTexturedMaterialAppearanceFS:()=>$E,_shadersTexturedMaterialAppearanceVS:()=>eI,_shadersVector3DTileClampedPolylinesFS:()=>ON,_shadersVector3DTileClampedPolylinesVS:()=>BN,_shadersVector3DTilePolylinesVS:()=>zN,_shadersVectorTileVS:()=>HV,_shadersVerticalExaggerationStageVS:()=>sv,_shadersViewportQuadFS:()=>dD,_shadersViewportQuadVS:()=>vS,_shadersVoxelFS:()=>G5,_shadersVoxelUtils:()=>R5,_shadersVoxelVS:()=>E5,_shadersWater:()=>_I,_shadersWaterMaskMaterial:()=>TI,_shadersXYZToRGB:()=>cw,_shadersacesTonemapping:()=>SX,_shadersalphaWeight:()=>CX,_shadersantialias:()=>LX,_shadersapplyColorCorrection:()=>VX,_shadersapplyHSBShift:()=>ZX,_shadersapproximateSphericalCoordinates:()=>RX,_shadersapproximateTanh:()=>GX,_shadersbackFacing:()=>EX,_shadersbranchFreeTernary:()=>IX,_shaderscascadeColor:()=>XX,_shaderscascadeDistance:()=>MX,_shaderscascadeMatrix:()=>wX,_shaderscascadeWeights:()=>WX,_shadersclipPolygons:()=>PX,_shaderscolumbusViewMorph:()=>vX,_shaderscomputeAtmosphereColor:()=>NX,_shaderscomputeGroundAtmosphereScattering:()=>FX,_shaderscomputePosition:()=>AX,_shaderscomputeScattering:()=>DX,_shadersconvertUvToBox:()=>v5,_shadersconvertUvToCylinder:()=>N5,_shadersconvertUvToEllipsoid:()=>F5,_shaderscosineAndSine:()=>UX,_shaderscreateTranslationMatrix:()=>hX,_shadersdecompressTextureCoordinates:()=>kX,_shadersdegreesPerRadian:()=>EI,_shadersdepthClamp:()=>zX,_shadersdepthRange:()=>II,_shadersdepthRangeStruct:()=>pX,_shaderseastNorthUpToEyeCoordinates:()=>YX,_shadersellipsoidContainsPoint:()=>BX,_shadersellipsoidTextureCoordinates:()=>OX,_shadersepsilon1:()=>XI,_shadersepsilon2:()=>MI,_shadersepsilon3:()=>wI,_shadersepsilon4:()=>WI,_shadersepsilon5:()=>PI,_shadersepsilon6:()=>vI,_shadersepsilon7:()=>NI,_shadersequalsEpsilon:()=>KX,_shaderseyeOffset:()=>HX,_shaderseyeToWindowCoordinates:()=>JX,_shadersfastApproximateAtan:()=>QX,_shadersfog:()=>jX,_shadersgammaCorrect:()=>qX,_shadersgeodeticSurfaceNormal:()=>$X,_shadersgeometryClip:()=>eM,_shadersgetDefaultMaterial:()=>tM,_shadersgetDynamicAtmosphereLightDirection:()=>nM,_shadersgetLambertDiffuse:()=>iM,_shadersgetSpecular:()=>oM,_shadersgetWaterNoise:()=>rM,_shadershue:()=>cM,_shadersinfinity:()=>FI,_shadersinverseGamma:()=>lM,_shadersisEmpty:()=>dM,_shadersisFull:()=>uM,_shaderslatitudeToWebMercatorFraction:()=>mM,_shaderslineDistance:()=>pM,_shaderslinearToSrgb:()=>hM,_shadersluminance:()=>fM,_shadersmaterial:()=>fX,_shadersmaterialInput:()=>bX,_shadersmaximumComponent:()=>bM,_shadersmetersPerPixel:()=>yM,_shadersmodelMaterial:()=>yX,_shadersmodelToWindowCoordinates:()=>gM,_shadersmodelVertexOutput:()=>gX,_shadersmultiplyWithColorBalance:()=>xM,_shadersnearFarScalar:()=>TM,_shadersoctDecode:()=>_M,_shadersoneOverPi:()=>AI,_shadersoneOverTwoPi:()=>DI,_shaderspackDepth:()=>SM,_shaderspassCesium3DTile:()=>UI,_shaderspassCesium3DTileClassification:()=>kI,_shaderspassCesium3DTileClassificationIgnoreShow:()=>zI,_shaderspassClassification:()=>YI,_shaderspassCompute:()=>BI,_shaderspassEnvironment:()=>OI,_shaderspassGlobe:()=>KI,_shaderspassOpaque:()=>HI,_shaderspassOverlay:()=>JI,_shaderspassTerrainClassification:()=>QI,_shaderspassTranslucent:()=>jI,_shaderspassVoxels:()=>qI,_shaderspbrLighting:()=>CM,_shaderspbrNeutralTonemapping:()=>LM,_shadersphong:()=>VM,_shaderspi:()=>$I,_shaderspiOverFour:()=>eX,_shaderspiOverSix:()=>tX,_shaderspiOverThree:()=>nX,_shaderspiOverTwo:()=>iX,_shadersplaneDistance:()=>ZM,_shaderspointAlongRay:()=>RM,_shadersradiansPerDegree:()=>oX,_shadersray:()=>xX,_shadersrayEllipsoidIntersectionInterval:()=>GM,_shadersraySegment:()=>TX,_shadersraySphereIntersectionInterval:()=>EM,_shadersreadDepth:()=>IM,_shadersreadNonPerspective:()=>XM,_shadersreverseLogDepth:()=>MM,_shadersrollerShutter:()=>vM,_shadersrollerShutterPolygon:()=>NM,_shadersrollerShutterSpyglass:()=>FM,_shadersround:()=>AM,_shaderssaturation:()=>DM,_shaderssceneMode2D:()=>rX,_shaderssceneMode3D:()=>sX,_shaderssceneModeColumbusView:()=>aX,_shaderssceneModeMorphing:()=>cX,_shadersshadowDepthCompare:()=>UM,_shadersshadowParameters:()=>_X,_shadersshadowVisibility:()=>kM,_shaderssignNotZero:()=>zM,_shaderssolarRadius:()=>lX,_shaderssphericalHarmonics:()=>YM,_shaderssrgbToLinear:()=>BM,_shaderstangentToEyeSpaceMatrix:()=>OM,_shaderstextureCube:()=>KM,_shadersthreePiOver2:()=>dX,_shaderstransformPlane:()=>HM,_shaderstranslateRelativeToEye:()=>JM,_shaderstranslucentPhong:()=>QM,_shaderstranspose:()=>jM,_shaderstwoPi:()=>uX,_shadersunpackClippingExtents:()=>qM,_shadersunpackDepth:()=>$M,_shadersunpackFloat:()=>ew,_shadersunpackUint:()=>tw,_shadersvalueTransform:()=>nw,_shadersvertexLogDepth:()=>iw,_shaderswebMercatorMaxLatitude:()=>mX,_shaderswindowToEyeCoordinates:()=>ow,_shaderswriteDepthClamp:()=>rw,_shaderswriteLogDepth:()=>sw,_shaderswriteNonPerspective:()=>aw,addBuffer:()=>bW,addDefaults:()=>cW,addExtensionsRequired:()=>hW,addExtensionsUsed:()=>qm,addPipelineExtras:()=>Fx,addToArray:()=>Va,appendForwardSlash:()=>KG,arrayRemoveDuplicates:()=>gr,barycentricCoordinates:()=>M_,binarySearch:()=>Xr,buildModuleUrl:()=>Sn,buildVoxelDrawCommands:()=>z5,clone:()=>Ue,combine:()=>Tt,computeFlyToLocationForRectangle:()=>CC,createBillboardPointCallback:()=>OS,createCommand:()=>ti,createDefaultImageryProviderViewModels:()=>qD,createDefaultTerrainProviderViewModels:()=>$D,createElevationBandMaterial:()=>Nte,createGooglePhotorealistic3DTileset:()=>Fte,createGuid:()=>Qn,createMaterialPropertyDescriptor:()=>Wr,createOsmBuildingsAsync:()=>Ate,createPropertyDescriptor:()=>ge,createRawPropertyDescriptor:()=>Od,createTangentSpaceDebugPrimitive:()=>Dte,createTaskProcessorWorker:()=>roe,createUUID:()=>rW,createUniform:()=>RI,createUniformArray:()=>GI,createWorldBathymetryAsync:()=>K2,createWorldImageryAsync:()=>ug,createWorldTerrainAsync:()=>O_,decodeGoogleEarthEnterpriseData:()=>Q2,decodeVectorPolylinePositions:()=>j2,defaultValue:()=>g,defer:()=>Xd,defined:()=>d,demodernizeShader:()=>lw,deprecationWarning:()=>lr,destroyObject:()=>fe,exportKml:()=>lee,findAccessorMinMax:()=>cS,findContentMetadata:()=>oy,findGroupMetadata:()=>ry,findTileMetadata:()=>K1,forEachTextureInMaterial:()=>cZ,formatError:()=>Nf,freezeRenderState:()=>k8,getAbsoluteUri:()=>Cf,getAccessorByteStride:()=>qd,getBaseUri:()=>jG,getBinaryAccessor:()=>Tl,getClipAndStyleCode:()=>MF,getClippingFunction:()=>ag,getComponentReader:()=>dy,getElement:()=>li,getExtensionFromUri:()=>h_,getFilenameFromUri:()=>Eb,getImageFromTypedArray:()=>sE,getImagePixels:()=>Kh,getJsonFromTypedArray:()=>mo,getMagic:()=>Mc,getMetadataClassProperty:()=>wF,getStringFromTypedArray:()=>wr,getTimestamp:()=>ho,hasExtension:()=>Zi,heightReferenceOnEntityPropertyChanged:()=>Jb,isBitSet:()=>ll,isBlobUri:()=>p_,isCrossOriginUrl:()=>Eg,isDataUri:()=>rb,isLeapYear:()=>Oh,knockout:()=>Re,knockout_3_5_1:()=>dL,knockout_es5:()=>UD,loadAndExecuteScript:()=>f_,loadCubeMap:()=>y5,loadImageFromTypedArray:()=>n1,loadKTX2:()=>Yd,mergeSort:()=>wb,moveTechniqueRenderStates:()=>mW,moveTechniquesToExtension:()=>pW,numberOfComponentsForType:()=>Du,objectToQuery:()=>b_,oneTimeWarning:()=>Ft,pako_inflate:()=>B1,parseAttBatchTable:()=>Bu,parseBatchTable:()=>Ep,parseFeatureMetadataLegacy:()=>aW,parseGlb:()=>dW,parseResponseHeaders:()=>qG,parseStructuralMetadata:()=>sW,parseVoxelStyles:()=>sT,pickModel:()=>RZ,pointInsideTriangle:()=>o8,preprocess3DTileContent:()=>a0,preprocessM3DContent:()=>oN,processVoxelProperties:()=>k5,queryToObject:()=>Cu,readAccessorPacked:()=>yW,removeExtension:()=>lS,removeExtensionsRequired:()=>lW,removeExtensionsUsed:()=>aS,removePipelineExtras:()=>uW,removeUnusedElements:()=>fW,resizeImageToNextPowerOfTwo:()=>hx,sampleTerrain:()=>wE,sampleTerrainMostDetailed:()=>m1,scaleToGeodeticSurface:()=>m_,srgbToLinear:()=>f1,subdivideArray:()=>AE,subscribeAndEvaluate:()=>Zc,updateAccessorComponentTypes:()=>gW,updateVersion:()=>xW,usesExtension:()=>ds,viewerCesium3DTilesInspectorMixin:()=>Roe,viewerCesiumInspectorMixin:()=>Goe,viewerDragDropMixin:()=>Ioe,viewerPerformanceWatchdogMixin:()=>Xoe,viewerVoxelInspectorMixin:()=>Moe,webGLConstantToGlslType:()=>F8,wrapFunction:()=>OE,writeTextToCanvas:()=>o1,zlib_min:()=>Oie});var qsr=S(C(),1);var NNo=S(C(),1);var X5t=S(C(),1);function PXe(e){return(e.length===0||e[e.length-1]!=="/")&&(e=`${e}/`),e}var KG=PXe;var uYt=S(C(),1);var zzt=S(C(),1);var q5t=S(C(),1);var D5t=S(C(),1);var w5t=S(C(),1);function vXe(e){return e!=null}var d=vXe;var v5t=S(C(),1);function u_(e){this.name="DeveloperError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}d(Object.create)&&(u_.prototype=Object.create(Error.prototype),u_.prototype.constructor=u_);u_.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return d(this.stack)&&(e+=`
96
96
  ${this.stack.toString()}`),e};u_.throwInstantiationError=function(){throw new u_("This function defines an interface and should not be called directly.")};var be=u_;var _a={};_a.typeOf={};function NXe(e){return`${e} is required, actual value was undefined`}function fL(e,t,n){return`Expected ${n} to be typeof ${t}, actual typeof was ${e}`}_a.defined=function(e,t){if(!d(t))throw new be(NXe(e))};_a.typeOf.func=function(e,t){if(typeof t!="function")throw new be(fL(typeof t,"function",e))};_a.typeOf.string=function(e,t){if(typeof t!="string")throw new be(fL(typeof t,"string",e))};_a.typeOf.number=function(e,t){if(typeof t!="number")throw new be(fL(typeof t,"number",e))};_a.typeOf.number.lessThan=function(e,t,n){if(_a.typeOf.number(e,t),t>=n)throw new be(`Expected ${e} to be less than ${n}, actual value was ${t}`)};_a.typeOf.number.lessThanOrEquals=function(e,t,n){if(_a.typeOf.number(e,t),t>n)throw new be(`Expected ${e} to be less than or equal to ${n}, actual value was ${t}`)};_a.typeOf.number.greaterThan=function(e,t,n){if(_a.typeOf.number(e,t),t<=n)throw new be(`Expected ${e} to be greater than ${n}, actual value was ${t}`)};_a.typeOf.number.greaterThanOrEquals=function(e,t,n){if(_a.typeOf.number(e,t),t<n)throw new be(`Expected ${e} to be greater than or equal to ${n}, actual value was ${t}`)};_a.typeOf.object=function(e,t){if(typeof t!="object")throw new be(fL(typeof t,"object",e))};_a.typeOf.bool=function(e,t){if(typeof t!="boolean")throw new be(fL(typeof t,"boolean",e))};_a.typeOf.bigint=function(e,t){if(typeof t!="bigint")throw new be(fL(typeof t,"bigint",e))};_a.typeOf.number.equals=function(e,t,n,i){if(_a.typeOf.number(e,n),_a.typeOf.number(t,i),n!==i)throw new be(`${e} must be equal to ${t}, the actual values are ${n} and ${i}`)};var ao=_a;var k5t=S(C(),1);function Noe(e,t){return e??t}Noe.EMPTY_OBJECT=Object.freeze({});var g=Noe;var K5t=S(C(),1),s4=S(HG(),1);var Gt={};Gt.EPSILON1=.1;Gt.EPSILON2=.01;Gt.EPSILON3=.001;Gt.EPSILON4=1e-4;Gt.EPSILON5=1e-5;Gt.EPSILON6=1e-6;Gt.EPSILON7=1e-7;Gt.EPSILON8=1e-8;Gt.EPSILON9=1e-9;Gt.EPSILON10=1e-10;Gt.EPSILON11=1e-11;Gt.EPSILON12=1e-12;Gt.EPSILON13=1e-13;Gt.EPSILON14=1e-14;Gt.EPSILON15=1e-15;Gt.EPSILON16=1e-16;Gt.EPSILON17=1e-17;Gt.EPSILON18=1e-18;Gt.EPSILON19=1e-19;Gt.EPSILON20=1e-20;Gt.EPSILON21=1e-21;Gt.GRAVITATIONALPARAMETER=3986004418e5;Gt.SOLAR_RADIUS=6955e5;Gt.LUNAR_RADIUS=1737400;Gt.SIXTY_FOUR_KILOBYTES=64*1024;Gt.FOUR_GIGABYTES=4*1024*1024*1024;Gt.sign=g(Math.sign,function(t){return t=+t,t===0||t!==t?t:t>0?1:-1});Gt.signNotZero=function(e){return e<0?-1:1};Gt.toSNorm=function(e,t){return t=g(t,255),Math.round((Gt.clamp(e,-1,1)*.5+.5)*t)};Gt.fromSNorm=function(e,t){return t=g(t,255),Gt.clamp(e,0,t)/t*2-1};Gt.normalize=function(e,t,n){return n=Math.max(n-t,0),n===0?0:Gt.clamp((e-t)/n,0,1)};Gt.sinh=g(Math.sinh,function(t){return(Math.exp(t)-Math.exp(-t))/2});Gt.cosh=g(Math.cosh,function(t){return(Math.exp(t)+Math.exp(-t))/2});Gt.lerp=function(e,t,n){return(1-n)*e+n*t};Gt.PI=Math.PI;Gt.ONE_OVER_PI=1/Math.PI;Gt.PI_OVER_TWO=Math.PI/2;Gt.PI_OVER_THREE=Math.PI/3;Gt.PI_OVER_FOUR=Math.PI/4;Gt.PI_OVER_SIX=Math.PI/6;Gt.THREE_PI_OVER_TWO=3*Math.PI/2;Gt.TWO_PI=2*Math.PI;Gt.ONE_OVER_TWO_PI=1/(2*Math.PI);Gt.RADIANS_PER_DEGREE=Math.PI/180;Gt.DEGREES_PER_RADIAN=180/Math.PI;Gt.RADIANS_PER_ARCSECOND=Gt.RADIANS_PER_DEGREE/3600;Gt.toRadians=function(e){return e*Gt.RADIANS_PER_DEGREE};Gt.toDegrees=function(e){return e*Gt.DEGREES_PER_RADIAN};Gt.convertLongitudeRange=function(e){let t=Gt.TWO_PI,n=e-Math.floor(e/t)*t;return n<-Math.PI?n+t:n>=Math.PI?n-t:n};Gt.clampToLatitudeRange=function(e){return Gt.clamp(e,-1*Gt.PI_OVER_TWO,Gt.PI_OVER_TWO)};Gt.negativePiToPi=function(e){return e>=-Gt.PI&&e<=Gt.PI?e:Gt.zeroToTwoPi(e+Gt.PI)-Gt.PI};Gt.zeroToTwoPi=function(e){if(e>=0&&e<=Gt.TWO_PI)return e;let t=Gt.mod(e,Gt.TWO_PI);return Math.abs(t)<Gt.EPSILON14&&Math.abs(e)>Gt.EPSILON14?Gt.TWO_PI:t};Gt.mod=function(e,t){return Gt.sign(e)===Gt.sign(t)&&Math.abs(e)<Math.abs(t)?e:(e%t+t)%t};Gt.equalsEpsilon=function(e,t,n,i){n=g(n,0),i=g(i,n);let o=Math.abs(e-t);return o<=i||o<=n*Math.max(Math.abs(e),Math.abs(t))};Gt.lessThan=function(e,t,n){return e-t<-n};Gt.lessThanOrEquals=function(e,t,n){return e-t<n};Gt.greaterThan=function(e,t,n){return e-t>n};Gt.greaterThanOrEquals=function(e,t,n){return e-t>-n};var U3=[1];Gt.factorial=function(e){let t=U3.length;if(e>=t){let n=U3[t-1];for(let i=t;i<=e;i++){let o=n*i;U3.push(o),n=o}}return U3[e]};Gt.incrementWrap=function(e,t,n){return n=g(n,0),++e,e>t&&(e=n),e};Gt.isPowerOfTwo=function(e){return e!==0&&(e&e-1)===0};Gt.nextPowerOfTwo=function(e){return--e,e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,++e,e};Gt.previousPowerOfTwo=function(e){return e|=e>>1,e|=e>>2,e|=e>>4,e|=e>>8,e|=e>>16,e|=e>>32,e=(e>>>0)-(e>>>1),e};Gt.clamp=function(e,t,n){return e<t?t:e>n?n:e};var Aoe=new s4.default;Gt.setRandomNumberSeed=function(e){Aoe=new s4.default(e)};Gt.nextRandomNumber=function(){return Aoe.random()};Gt.randomBetween=function(e,t){return Gt.nextRandomNumber()*(t-e)+e};Gt.acosClamped=function(e){return Math.acos(Gt.clamp(e,-1,1))};Gt.asinClamped=function(e){return Math.asin(Gt.clamp(e,-1,1))};Gt.chordLength=function(e,t){return 2*t*Math.sin(e*.5)};Gt.logBase=function(e,t){return Math.log(e)/Math.log(t)};Gt.cbrt=g(Math.cbrt,function(t){let n=Math.pow(Math.abs(t),.3333333333333333);return t<0?-n:n});Gt.log2=g(Math.log2,function(t){return Math.log(t)*Math.LOG2E});Gt.fog=function(e,t){let n=e*t;return 1-Math.exp(-(n*n))};Gt.fastApproximateAtan=function(e){return e*(-.1784*Math.abs(e)-.0663*e*e+1.0301)};Gt.fastApproximateAtan2=function(e,t){let n,i=Math.abs(e);n=Math.abs(t);let o=Math.max(i,n);n=Math.min(i,n);let r=n/o;return i=Gt.fastApproximateAtan(r),i=Math.abs(t)>Math.abs(e)?Gt.PI_OVER_TWO-i:i,i=e<0?Gt.PI-i:i,i=t<0?-i:i,i};var M=Gt;function bt(e,t,n){this.x=g(e,0),this.y=g(t,0),this.z=g(n,0)}bt.fromSpherical=function(e,t){d(t)||(t=new bt);let n=e.clock,i=e.cone,o=g(e.magnitude,1),r=o*Math.sin(i);return t.x=r*Math.cos(n),t.y=r*Math.sin(n),t.z=o*Math.cos(i),t};bt.fromElements=function(e,t,n,i){return d(i)?(i.x=e,i.y=t,i.z=n,i):new bt(e,t,n)};bt.clone=function(e,t){if(d(e))return d(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t):new bt(e.x,e.y,e.z)};bt.fromCartesian4=bt.clone;bt.packedLength=3;bt.pack=function(e,t,n){return n=g(n,0),t[n++]=e.x,t[n++]=e.y,t[n]=e.z,t};bt.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new bt),n.x=e[t++],n.y=e[t++],n.z=e[t],n};bt.packArray=function(e,t){let n=e.length,i=n*3;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)bt.pack(e[o],t,o*3);return t};bt.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/3:t=new Array(n/3);for(let i=0;i<n;i+=3){let o=i/3;t[o]=bt.unpack(e,i,t[o])}return t};bt.fromArray=bt.unpack;bt.maximumComponent=function(e){return Math.max(e.x,e.y,e.z)};bt.minimumComponent=function(e){return Math.min(e.x,e.y,e.z)};bt.minimumByComponent=function(e,t,n){return n.x=Math.min(e.x,t.x),n.y=Math.min(e.y,t.y),n.z=Math.min(e.z,t.z),n};bt.maximumByComponent=function(e,t,n){return n.x=Math.max(e.x,t.x),n.y=Math.max(e.y,t.y),n.z=Math.max(e.z,t.z),n};bt.clamp=function(e,t,n,i){let o=M.clamp(e.x,t.x,n.x),r=M.clamp(e.y,t.y,n.y),s=M.clamp(e.z,t.z,n.z);return i.x=o,i.y=r,i.z=s,i};bt.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z};bt.magnitude=function(e){return Math.sqrt(bt.magnitudeSquared(e))};var z3=new bt;bt.distance=function(e,t){return bt.subtract(e,t,z3),bt.magnitude(z3)};bt.distanceSquared=function(e,t){return bt.subtract(e,t,z3),bt.magnitudeSquared(z3)};bt.normalize=function(e,t){let n=bt.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t.z=e.z/n,t};bt.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z};bt.multiplyComponents=function(e,t,n){return n.x=e.x*t.x,n.y=e.y*t.y,n.z=e.z*t.z,n};bt.divideComponents=function(e,t,n){return n.x=e.x/t.x,n.y=e.y/t.y,n.z=e.z/t.z,n};bt.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n};bt.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n};bt.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n};bt.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n};bt.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t};bt.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t};var Doe=new bt;bt.lerp=function(e,t,n,i){return bt.multiplyByScalar(t,n,Doe),i=bt.multiplyByScalar(e,1-n,i),bt.add(Doe,i,i)};var k3=new bt,a4=new bt;bt.angleBetween=function(e,t){bt.normalize(e,k3),bt.normalize(t,a4);let n=bt.dot(k3,a4),i=bt.magnitude(bt.cross(k3,a4,k3));return Math.atan2(i,n)};var FXe=new bt;bt.mostOrthogonalAxis=function(e,t){let n=bt.normalize(e,FXe);return bt.abs(n,n),n.x<=n.y?n.x<=n.z?t=bt.clone(bt.UNIT_X,t):t=bt.clone(bt.UNIT_Z,t):n.y<=n.z?t=bt.clone(bt.UNIT_Y,t):t=bt.clone(bt.UNIT_Z,t),t};bt.projectVector=function(e,t,n){let i=bt.dot(e,t)/bt.dot(t,t);return bt.multiplyByScalar(t,i,n)};bt.equals=function(e,t){return e===t||d(e)&&d(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z};bt.equalsArray=function(e,t,n){return e.x===t[n]&&e.y===t[n+1]&&e.z===t[n+2]};bt.equalsEpsilon=function(e,t,n,i){return e===t||d(e)&&d(t)&&M.equalsEpsilon(e.x,t.x,n,i)&&M.equalsEpsilon(e.y,t.y,n,i)&&M.equalsEpsilon(e.z,t.z,n,i)};bt.cross=function(e,t,n){let i=e.x,o=e.y,r=e.z,s=t.x,a=t.y,c=t.z,l=o*c-r*a,u=r*s-i*c,m=i*a-o*s;return n.x=l,n.y=u,n.z=m,n};bt.midpoint=function(e,t,n){return n.x=(e.x+t.x)*.5,n.y=(e.y+t.y)*.5,n.z=(e.z+t.z)*.5,n};bt.fromDegrees=function(e,t,n,i,o){return e=M.toRadians(e),t=M.toRadians(t),bt.fromRadians(e,t,n,i,o)};var Lm=new bt,bL=new bt;bt._ellipsoidRadiiSquared=new bt(6378137*6378137,6378137*6378137,6356752314245179e-9*6356752314245179e-9);bt.fromRadians=function(e,t,n,i,o){n=g(n,0);let r=d(i)?i.radiiSquared:bt._ellipsoidRadiiSquared,s=Math.cos(t);Lm.x=s*Math.cos(e),Lm.y=s*Math.sin(e),Lm.z=Math.sin(t),Lm=bt.normalize(Lm,Lm),bt.multiplyComponents(r,Lm,bL);let a=Math.sqrt(bt.dot(Lm,bL));return bL=bt.divideByScalar(bL,a,bL),Lm=bt.multiplyByScalar(Lm,n,Lm),d(o)||(o=new bt),bt.add(bL,Lm,o)};bt.fromDegreesArray=function(e,t,n){let i=e.length;d(n)?n.length=i/2:n=new Array(i/2);for(let o=0;o<i;o+=2){let r=e[o],s=e[o+1],a=o/2;n[a]=bt.fromDegrees(r,s,0,t,n[a])}return n};bt.fromRadiansArray=function(e,t,n){let i=e.length;d(n)?n.length=i/2:n=new Array(i/2);for(let o=0;o<i;o+=2){let r=e[o],s=e[o+1],a=o/2;n[a]=bt.fromRadians(r,s,0,t,n[a])}return n};bt.fromDegreesArrayHeights=function(e,t,n){let i=e.length;d(n)?n.length=i/3:n=new Array(i/3);for(let o=0;o<i;o+=3){let r=e[o],s=e[o+1],a=e[o+2],c=o/3;n[c]=bt.fromDegrees(r,s,a,t,n[c])}return n};bt.fromRadiansArrayHeights=function(e,t,n){let i=e.length;d(n)?n.length=i/3:n=new Array(i/3);for(let o=0;o<i;o+=3){let r=e[o],s=e[o+1],a=e[o+2],c=o/3;n[c]=bt.fromRadians(r,s,a,t,n[c])}return n};bt.ZERO=Object.freeze(new bt(0,0,0));bt.ONE=Object.freeze(new bt(1,1,1));bt.UNIT_X=Object.freeze(new bt(1,0,0));bt.UNIT_Y=Object.freeze(new bt(0,1,0));bt.UNIT_Z=Object.freeze(new bt(0,0,1));bt.prototype.clone=function(e){return bt.clone(this,e)};bt.prototype.equals=function(e){return bt.equals(this,e)};bt.prototype.equalsEpsilon=function(e,t,n){return bt.equalsEpsilon(this,e,t,n)};bt.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z})`};var h=bt;var dFt=S(C(),1);var iFt=S(C(),1);var AXe=new h,DXe=new h;function UXe(e,t,n,i,o){let r=e.x,s=e.y,a=e.z,c=t.x,l=t.y,u=t.z,m=r*r*c*c,f=s*s*l*l,b=a*a*u*u,p=m+f+b,x=Math.sqrt(1/p),T=h.multiplyByScalar(e,x,AXe);if(p<i)return isFinite(x)?h.clone(T,o):void 0;let _=n.x,L=n.y,V=n.z,Z=DXe;Z.x=T.x*_*2,Z.y=T.y*L*2,Z.z=T.z*V*2;let G=(1-x)*h.magnitude(e)/(.5*h.magnitude(Z)),I=0,w,W,v,N,y,R,E,X,F,A,Y;do{G-=I,v=1/(1+G*_),N=1/(1+G*L),y=1/(1+G*V),R=v*v,E=N*N,X=y*y,F=R*v,A=E*N,Y=X*y,w=m*R+f*E+b*X-1,W=m*F*_+f*A*L+b*Y*V;let U=-2*W;I=w/U}while(Math.abs(w)>M.EPSILON12);return d(o)?(o.x=r*v,o.y=s*N,o.z=a*y,o):new h(r*v,s*N,a*y)}var m_=UXe;function Ar(e,t,n){this.longitude=g(e,0),this.latitude=g(t,0),this.height=g(n,0)}Ar.fromRadians=function(e,t,n,i){return n=g(n,0),d(i)?(i.longitude=e,i.latitude=t,i.height=n,i):new Ar(e,t,n)};Ar.fromDegrees=function(e,t,n,i){return e=M.toRadians(e),t=M.toRadians(t),Ar.fromRadians(e,t,n,i)};var kXe=new h,zXe=new h,YXe=new h;Ar._ellipsoidOneOverRadii=new h(1/6378137,1/6378137,1/6356752314245179e-9);Ar._ellipsoidOneOverRadiiSquared=new h(1/(6378137*6378137),1/(6378137*6378137),1/(6356752314245179e-9*6356752314245179e-9));Ar._ellipsoidCenterToleranceSquared=M.EPSILON1;Ar.fromCartesian=function(e,t,n){let i=d(t)?t.oneOverRadii:Ar._ellipsoidOneOverRadii,o=d(t)?t.oneOverRadiiSquared:Ar._ellipsoidOneOverRadiiSquared,r=d(t)?t._centerToleranceSquared:Ar._ellipsoidCenterToleranceSquared,s=m_(e,i,o,r,zXe);if(!d(s))return;let a=h.multiplyComponents(s,o,kXe);a=h.normalize(a,a);let c=h.subtract(e,s,YXe),l=Math.atan2(a.y,a.x),u=Math.asin(a.z),m=M.sign(h.dot(c,e))*h.magnitude(c);return d(n)?(n.longitude=l,n.latitude=u,n.height=m,n):new Ar(l,u,m)};Ar.toCartesian=function(e,t,n){return h.fromRadians(e.longitude,e.latitude,e.height,t,n)};Ar.clone=function(e,t){if(d(e))return d(t)?(t.longitude=e.longitude,t.latitude=e.latitude,t.height=e.height,t):new Ar(e.longitude,e.latitude,e.height)};Ar.equals=function(e,t){return e===t||d(e)&&d(t)&&e.longitude===t.longitude&&e.latitude===t.latitude&&e.height===t.height};Ar.equalsEpsilon=function(e,t,n){return n=g(n,0),e===t||d(e)&&d(t)&&Math.abs(e.longitude-t.longitude)<=n&&Math.abs(e.latitude-t.latitude)<=n&&Math.abs(e.height-t.height)<=n};Ar.ZERO=Object.freeze(new Ar(0,0,0));Ar.prototype.clone=function(e){return Ar.clone(this,e)};Ar.prototype.equals=function(e){return Ar.equals(this,e)};Ar.prototype.equalsEpsilon=function(e,t){return Ar.equalsEpsilon(this,e,t)};Ar.prototype.toString=function(){return`(${this.longitude}, ${this.latitude}, ${this.height})`};var me=Ar;var LFt=S(C(),1);var fFt=S(C(),1);function rn(e,t){this.x=g(e,0),this.y=g(t,0)}rn.fromElements=function(e,t,n){return d(n)?(n.x=e,n.y=t,n):new rn(e,t)};rn.clone=function(e,t){if(d(e))return d(t)?(t.x=e.x,t.y=e.y,t):new rn(e.x,e.y)};rn.fromCartesian3=rn.clone;rn.fromCartesian4=rn.clone;rn.packedLength=2;rn.pack=function(e,t,n){return n=g(n,0),t[n++]=e.x,t[n]=e.y,t};rn.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new rn),n.x=e[t++],n.y=e[t],n};rn.packArray=function(e,t){let n=e.length,i=n*2;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)rn.pack(e[o],t,o*2);return t};rn.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/2:t=new Array(n/2);for(let i=0;i<n;i+=2){let o=i/2;t[o]=rn.unpack(e,i,t[o])}return t};rn.fromArray=rn.unpack;rn.maximumComponent=function(e){return Math.max(e.x,e.y)};rn.minimumComponent=function(e){return Math.min(e.x,e.y)};rn.minimumByComponent=function(e,t,n){return n.x=Math.min(e.x,t.x),n.y=Math.min(e.y,t.y),n};rn.maximumByComponent=function(e,t,n){return n.x=Math.max(e.x,t.x),n.y=Math.max(e.y,t.y),n};rn.clamp=function(e,t,n,i){let o=M.clamp(e.x,t.x,n.x),r=M.clamp(e.y,t.y,n.y);return i.x=o,i.y=r,i};rn.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y};rn.magnitude=function(e){return Math.sqrt(rn.magnitudeSquared(e))};var Y3=new rn;rn.distance=function(e,t){return rn.subtract(e,t,Y3),rn.magnitude(Y3)};rn.distanceSquared=function(e,t){return rn.subtract(e,t,Y3),rn.magnitudeSquared(Y3)};rn.normalize=function(e,t){let n=rn.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t};rn.dot=function(e,t){return e.x*t.x+e.y*t.y};rn.cross=function(e,t){return e.x*t.y-e.y*t.x};rn.multiplyComponents=function(e,t,n){return n.x=e.x*t.x,n.y=e.y*t.y,n};rn.divideComponents=function(e,t,n){return n.x=e.x/t.x,n.y=e.y/t.y,n};rn.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n};rn.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n};rn.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n};rn.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n};rn.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t};rn.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t};var Uoe=new rn;rn.lerp=function(e,t,n,i){return rn.multiplyByScalar(t,n,Uoe),i=rn.multiplyByScalar(e,1-n,i),rn.add(Uoe,i,i)};var koe=new rn,zoe=new rn;rn.angleBetween=function(e,t){return rn.normalize(e,koe),rn.normalize(t,zoe),M.acosClamped(rn.dot(koe,zoe))};var BXe=new rn;rn.mostOrthogonalAxis=function(e,t){let n=rn.normalize(e,BXe);return rn.abs(n,n),n.x<=n.y?t=rn.clone(rn.UNIT_X,t):t=rn.clone(rn.UNIT_Y,t),t};rn.equals=function(e,t){return e===t||d(e)&&d(t)&&e.x===t.x&&e.y===t.y};rn.equalsArray=function(e,t,n){return e.x===t[n]&&e.y===t[n+1]};rn.equalsEpsilon=function(e,t,n,i){return e===t||d(e)&&d(t)&&M.equalsEpsilon(e.x,t.x,n,i)&&M.equalsEpsilon(e.y,t.y,n,i)};rn.ZERO=Object.freeze(new rn(0,0));rn.ONE=Object.freeze(new rn(1,1));rn.UNIT_X=Object.freeze(new rn(1,0));rn.UNIT_Y=Object.freeze(new rn(0,1));rn.prototype.clone=function(e){return rn.clone(this,e)};rn.prototype.equals=function(e){return rn.equals(this,e)};rn.prototype.equalsEpsilon=function(e,t,n){return rn.equalsEpsilon(this,e,t,n)};rn.prototype.toString=function(){return`(${this.x}, ${this.y})`};var B=rn;function Boe(e,t,n,i){t=g(t,0),n=g(n,0),i=g(i,0),e._radii=new h(t,n,i),e._radiiSquared=new h(t*t,n*n,i*i),e._radiiToTheFourth=new h(t*t*t*t,n*n*n*n,i*i*i*i),e._oneOverRadii=new h(t===0?0:1/t,n===0?0:1/n,i===0?0:1/i),e._oneOverRadiiSquared=new h(t===0?0:1/(t*t),n===0?0:1/(n*n),i===0?0:1/(i*i)),e._minimumRadius=Math.min(t,n,i),e._maximumRadius=Math.max(t,n,i),e._centerToleranceSquared=M.EPSILON1,e._radiiSquared.z!==0&&(e._squaredXOverSquaredZ=e._radiiSquared.x/e._radiiSquared.z)}function io(e,t,n){this._radii=void 0,this._radiiSquared=void 0,this._radiiToTheFourth=void 0,this._oneOverRadii=void 0,this._oneOverRadiiSquared=void 0,this._minimumRadius=void 0,this._maximumRadius=void 0,this._centerToleranceSquared=void 0,this._squaredXOverSquaredZ=void 0,Boe(this,e,t,n)}Object.defineProperties(io.prototype,{radii:{get:function(){return this._radii}},radiiSquared:{get:function(){return this._radiiSquared}},radiiToTheFourth:{get:function(){return this._radiiToTheFourth}},oneOverRadii:{get:function(){return this._oneOverRadii}},oneOverRadiiSquared:{get:function(){return this._oneOverRadiiSquared}},minimumRadius:{get:function(){return this._minimumRadius}},maximumRadius:{get:function(){return this._maximumRadius}}});io.clone=function(e,t){if(!d(e))return;let n=e._radii;return d(t)?(h.clone(n,t._radii),h.clone(e._radiiSquared,t._radiiSquared),h.clone(e._radiiToTheFourth,t._radiiToTheFourth),h.clone(e._oneOverRadii,t._oneOverRadii),h.clone(e._oneOverRadiiSquared,t._oneOverRadiiSquared),t._minimumRadius=e._minimumRadius,t._maximumRadius=e._maximumRadius,t._centerToleranceSquared=e._centerToleranceSquared,t):new io(n.x,n.y,n.z)};io.fromCartesian3=function(e,t){return d(t)||(t=new io),d(e)&&Boe(t,e.x,e.y,e.z),t};io.WGS84=Object.freeze(new io(6378137,6378137,6356752314245179e-9));io.CGCS2000=Object.freeze(new io(6378137,6378137,6356752314140356e-9));io.UNIT_SPHERE=Object.freeze(new io(1,1,1));io.MOON=Object.freeze(new io(M.LUNAR_RADIUS,M.LUNAR_RADIUS,M.LUNAR_RADIUS));io._default=io.WGS84;Object.defineProperties(io,{default:{get:function(){return io._default},set:function(e){io._default=e,h._ellipsoidRadiiSquared=e.radiiSquared,me._ellipsoidOneOverRadii=e.oneOverRadii,me._ellipsoidOneOverRadiiSquared=e.oneOverRadiiSquared,me._ellipsoidCenterToleranceSquared=e._centerToleranceSquared}}});io.prototype.clone=function(e){return io.clone(this,e)};io.packedLength=h.packedLength;io.pack=function(e,t,n){return n=g(n,0),h.pack(e._radii,t,n),t};io.unpack=function(e,t,n){t=g(t,0);let i=h.unpack(e,t);return io.fromCartesian3(i,n)};io.prototype.geocentricSurfaceNormal=h.normalize;io.prototype.geodeticSurfaceNormalCartographic=function(e,t){let n=e.longitude,i=e.latitude,o=Math.cos(i),r=o*Math.cos(n),s=o*Math.sin(n),a=Math.sin(i);return d(t)||(t=new h),t.x=r,t.y=s,t.z=a,h.normalize(t,t)};io.prototype.geodeticSurfaceNormal=function(e,t){if(!h.equalsEpsilon(e,h.ZERO,M.EPSILON14))return d(t)||(t=new h),t=h.multiplyComponents(e,this._oneOverRadiiSquared,t),h.normalize(t,t)};var OXe=new h,KXe=new h;io.prototype.cartographicToCartesian=function(e,t){let n=OXe,i=KXe;this.geodeticSurfaceNormalCartographic(e,n),h.multiplyComponents(this._radiiSquared,n,i);let o=Math.sqrt(h.dot(n,i));return h.divideByScalar(i,o,i),h.multiplyByScalar(n,e.height,n),d(t)||(t=new h),h.add(i,n,t)};io.prototype.cartographicArrayToCartesianArray=function(e,t){let n=e.length;d(t)?t.length=n:t=new Array(n);for(let i=0;i<n;i++)t[i]=this.cartographicToCartesian(e[i],t[i]);return t};var HXe=new h,JXe=new h,QXe=new h;io.prototype.cartesianToCartographic=function(e,t){let n=this.scaleToGeodeticSurface(e,JXe);if(!d(n))return;let i=this.geodeticSurfaceNormal(n,HXe),o=h.subtract(e,n,QXe),r=Math.atan2(i.y,i.x),s=Math.asin(i.z),a=M.sign(h.dot(o,e))*h.magnitude(o);return d(t)?(t.longitude=r,t.latitude=s,t.height=a,t):new me(r,s,a)};io.prototype.cartesianArrayToCartographicArray=function(e,t){let n=e.length;d(t)?t.length=n:t=new Array(n);for(let i=0;i<n;++i)t[i]=this.cartesianToCartographic(e[i],t[i]);return t};io.prototype.scaleToGeodeticSurface=function(e,t){return m_(e,this._oneOverRadii,this._oneOverRadiiSquared,this._centerToleranceSquared,t)};io.prototype.scaleToGeocentricSurface=function(e,t){d(t)||(t=new h);let n=e.x,i=e.y,o=e.z,r=this._oneOverRadiiSquared,s=1/Math.sqrt(n*n*r.x+i*i*r.y+o*o*r.z);return h.multiplyByScalar(e,s,t)};io.prototype.transformPositionToScaledSpace=function(e,t){return d(t)||(t=new h),h.multiplyComponents(e,this._oneOverRadii,t)};io.prototype.transformPositionFromScaledSpace=function(e,t){return d(t)||(t=new h),h.multiplyComponents(e,this._radii,t)};io.prototype.equals=function(e){return this===e||d(e)&&h.equals(this._radii,e._radii)};io.prototype.toString=function(){return this._radii.toString()};io.prototype.getSurfaceNormalIntersectionWithZAxis=function(e,t,n){t=g(t,0);let i=this._squaredXOverSquaredZ;if(d(n)||(n=new h),n.x=0,n.y=0,n.z=e.z*(1-i),!(Math.abs(n.z)>=this._radii.z-t))return n};var jXe=new h;io.prototype.getLocalCurvature=function(e,t){d(t)||(t=new B);let n=this.getSurfaceNormalIntersectionWithZAxis(e,0,jXe),i=h.distance(e,n),o=this.minimumRadius*i/this.maximumRadius**2,r=i*o**2;return B.fromElements(1/i,1/r,t)};var qXe=[.14887433898163,.43339539412925,.67940956829902,.86506336668898,.97390652851717,0],$Xe=[.29552422471475,.26926671930999,.21908636251598,.14945134915058,.066671344308684,0];function Yoe(e,t,n){let i=.5*(t+e),o=.5*(t-e),r=0;for(let s=0;s<5;s++){let a=o*qXe[s];r+=$Xe[s]*(n(i+a)+n(i-a))}return r*=o,r}io.prototype.surfaceArea=function(e){let t=e.west,n=e.east,i=e.south,o=e.north;for(;n<t;)n+=M.TWO_PI;let r=this._radiiSquared,s=r.x,a=r.y,c=r.z,l=s*a;return Yoe(i,o,function(u){let m=Math.cos(u),f=Math.sin(u);return Math.cos(u)*Yoe(t,n,function(b){let p=Math.cos(b),x=Math.sin(b);return Math.sqrt(l*f*f+c*(a*p*p+s*x*x)*m*m)})})};var oe=io;var XFt=S(C(),1);function B3(e){this._ellipsoid=g(e,oe.default),this._semimajorAxis=this._ellipsoid.maximumRadius,this._oneOverSemimajorAxis=1/this._semimajorAxis}Object.defineProperties(B3.prototype,{ellipsoid:{get:function(){return this._ellipsoid}}});B3.prototype.project=function(e,t){let n=this._semimajorAxis,i=e.longitude*n,o=e.latitude*n,r=e.height;return d(t)?(t.x=i,t.y=o,t.z=r,t):new h(i,o,r)};B3.prototype.unproject=function(e,t){let n=this._oneOverSemimajorAxis,i=e.x*n,o=e.y*n,r=e.z;return d(t)?(t.longitude=i,t.latitude=o,t.height=r,t):new me(i,o,r)};var So=B3;var wFt=S(C(),1),eMe={OUTSIDE:-1,INTERSECTING:0,INSIDE:1},Qt=Object.freeze(eMe);var vFt=S(C(),1);function tMe(e,t){this.start=g(e,0),this.stop=g(t,0)}var Wa=tMe;var kFt=S(C(),1);function xt(e,t,n,i,o,r,s,a,c){this[0]=g(e,0),this[1]=g(i,0),this[2]=g(s,0),this[3]=g(t,0),this[4]=g(o,0),this[5]=g(a,0),this[6]=g(n,0),this[7]=g(r,0),this[8]=g(c,0)}xt.packedLength=9;xt.pack=function(e,t,n){return n=g(n,0),t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t[n++]=e[4],t[n++]=e[5],t[n++]=e[6],t[n++]=e[7],t[n++]=e[8],t};xt.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new xt),n[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n[4]=e[t++],n[5]=e[t++],n[6]=e[t++],n[7]=e[t++],n[8]=e[t++],n};xt.packArray=function(e,t){let n=e.length,i=n*9;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)xt.pack(e[o],t,o*9);return t};xt.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/9:t=new Array(n/9);for(let i=0;i<n;i+=9){let o=i/9;t[o]=xt.unpack(e,i,t[o])}return t};xt.clone=function(e,t){if(d(e))return d(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):new xt(e[0],e[3],e[6],e[1],e[4],e[7],e[2],e[5],e[8])};xt.fromArray=xt.unpack;xt.fromColumnMajorArray=function(e,t){return xt.clone(e,t)};xt.fromRowMajorArray=function(e,t){return d(t)?(t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],t):new xt(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8])};xt.fromQuaternion=function(e,t){let n=e.x*e.x,i=e.x*e.y,o=e.x*e.z,r=e.x*e.w,s=e.y*e.y,a=e.y*e.z,c=e.y*e.w,l=e.z*e.z,u=e.z*e.w,m=e.w*e.w,f=n-s-l+m,b=2*(i-u),p=2*(o+c),x=2*(i+u),T=-n+s-l+m,_=2*(a-r),L=2*(o-c),V=2*(a+r),Z=-n-s+l+m;return d(t)?(t[0]=f,t[1]=x,t[2]=L,t[3]=b,t[4]=T,t[5]=V,t[6]=p,t[7]=_,t[8]=Z,t):new xt(f,b,p,x,T,_,L,V,Z)};xt.fromHeadingPitchRoll=function(e,t){let n=Math.cos(-e.pitch),i=Math.cos(-e.heading),o=Math.cos(e.roll),r=Math.sin(-e.pitch),s=Math.sin(-e.heading),a=Math.sin(e.roll),c=n*i,l=-o*s+a*r*i,u=a*s+o*r*i,m=n*s,f=o*i+a*r*s,b=-a*i+o*r*s,p=-r,x=a*n,T=o*n;return d(t)?(t[0]=c,t[1]=m,t[2]=p,t[3]=l,t[4]=f,t[5]=x,t[6]=u,t[7]=b,t[8]=T,t):new xt(c,l,u,m,f,b,p,x,T)};xt.fromScale=function(e,t){return d(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=0,t[4]=e.y,t[5]=0,t[6]=0,t[7]=0,t[8]=e.z,t):new xt(e.x,0,0,0,e.y,0,0,0,e.z)};xt.fromUniformScale=function(e,t){return d(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=0,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=e,t):new xt(e,0,0,0,e,0,0,0,e)};xt.fromCrossProduct=function(e,t){return d(t)?(t[0]=0,t[1]=e.z,t[2]=-e.y,t[3]=-e.z,t[4]=0,t[5]=e.x,t[6]=e.y,t[7]=-e.x,t[8]=0,t):new xt(0,-e.z,e.y,e.z,0,-e.x,-e.y,e.x,0)};xt.fromRotationX=function(e,t){let n=Math.cos(e),i=Math.sin(e);return d(t)?(t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=n,t[5]=i,t[6]=0,t[7]=-i,t[8]=n,t):new xt(1,0,0,0,n,-i,0,i,n)};xt.fromRotationY=function(e,t){let n=Math.cos(e),i=Math.sin(e);return d(t)?(t[0]=n,t[1]=0,t[2]=-i,t[3]=0,t[4]=1,t[5]=0,t[6]=i,t[7]=0,t[8]=n,t):new xt(n,0,i,0,1,0,-i,0,n)};xt.fromRotationZ=function(e,t){let n=Math.cos(e),i=Math.sin(e);return d(t)?(t[0]=n,t[1]=i,t[2]=0,t[3]=-i,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new xt(n,-i,0,i,n,0,0,0,1)};xt.toArray=function(e,t){return d(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t):[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8]]};xt.getElementIndex=function(e,t){return e*3+t};xt.getColumn=function(e,t,n){let i=t*3,o=e[i],r=e[i+1],s=e[i+2];return n.x=o,n.y=r,n.z=s,n};xt.setColumn=function(e,t,n,i){i=xt.clone(e,i);let o=t*3;return i[o]=n.x,i[o+1]=n.y,i[o+2]=n.z,i};xt.getRow=function(e,t,n){let i=e[t],o=e[t+3],r=e[t+6];return n.x=i,n.y=o,n.z=r,n};xt.setRow=function(e,t,n,i){return i=xt.clone(e,i),i[t]=n.x,i[t+3]=n.y,i[t+6]=n.z,i};var nMe=new h;xt.setScale=function(e,t,n){let i=xt.getScale(e,nMe),o=t.x/i.x,r=t.y/i.y,s=t.z/i.z;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=e[3]*r,n[4]=e[4]*r,n[5]=e[5]*r,n[6]=e[6]*s,n[7]=e[7]*s,n[8]=e[8]*s,n};var iMe=new h;xt.setUniformScale=function(e,t,n){let i=xt.getScale(e,iMe),o=t/i.x,r=t/i.y,s=t/i.z;return n[0]=e[0]*o,n[1]=e[1]*o,n[2]=e[2]*o,n[3]=e[3]*r,n[4]=e[4]*r,n[5]=e[5]*r,n[6]=e[6]*s,n[7]=e[7]*s,n[8]=e[8]*s,n};var c4=new h;xt.getScale=function(e,t){return t.x=h.magnitude(h.fromElements(e[0],e[1],e[2],c4)),t.y=h.magnitude(h.fromElements(e[3],e[4],e[5],c4)),t.z=h.magnitude(h.fromElements(e[6],e[7],e[8],c4)),t};var Ooe=new h;xt.getMaximumScale=function(e){return xt.getScale(e,Ooe),h.maximumComponent(Ooe)};var oMe=new h;xt.setRotation=function(e,t,n){let i=xt.getScale(e,oMe);return n[0]=t[0]*i.x,n[1]=t[1]*i.x,n[2]=t[2]*i.x,n[3]=t[3]*i.y,n[4]=t[4]*i.y,n[5]=t[5]*i.y,n[6]=t[6]*i.z,n[7]=t[7]*i.z,n[8]=t[8]*i.z,n};var rMe=new h;xt.getRotation=function(e,t){let n=xt.getScale(e,rMe);return t[0]=e[0]/n.x,t[1]=e[1]/n.x,t[2]=e[2]/n.x,t[3]=e[3]/n.y,t[4]=e[4]/n.y,t[5]=e[5]/n.y,t[6]=e[6]/n.z,t[7]=e[7]/n.z,t[8]=e[8]/n.z,t};xt.multiply=function(e,t,n){let i=e[0]*t[0]+e[3]*t[1]+e[6]*t[2],o=e[1]*t[0]+e[4]*t[1]+e[7]*t[2],r=e[2]*t[0]+e[5]*t[1]+e[8]*t[2],s=e[0]*t[3]+e[3]*t[4]+e[6]*t[5],a=e[1]*t[3]+e[4]*t[4]+e[7]*t[5],c=e[2]*t[3]+e[5]*t[4]+e[8]*t[5],l=e[0]*t[6]+e[3]*t[7]+e[6]*t[8],u=e[1]*t[6]+e[4]*t[7]+e[7]*t[8],m=e[2]*t[6]+e[5]*t[7]+e[8]*t[8];return n[0]=i,n[1]=o,n[2]=r,n[3]=s,n[4]=a,n[5]=c,n[6]=l,n[7]=u,n[8]=m,n};xt.add=function(e,t,n){return n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n[4]=e[4]+t[4],n[5]=e[5]+t[5],n[6]=e[6]+t[6],n[7]=e[7]+t[7],n[8]=e[8]+t[8],n};xt.subtract=function(e,t,n){return n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n[4]=e[4]-t[4],n[5]=e[5]-t[5],n[6]=e[6]-t[6],n[7]=e[7]-t[7],n[8]=e[8]-t[8],n};xt.multiplyByVector=function(e,t,n){let i=t.x,o=t.y,r=t.z,s=e[0]*i+e[3]*o+e[6]*r,a=e[1]*i+e[4]*o+e[7]*r,c=e[2]*i+e[5]*o+e[8]*r;return n.x=s,n.y=a,n.z=c,n};xt.multiplyByScalar=function(e,t,n){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n};xt.multiplyByScale=function(e,t,n){return n[0]=e[0]*t.x,n[1]=e[1]*t.x,n[2]=e[2]*t.x,n[3]=e[3]*t.y,n[4]=e[4]*t.y,n[5]=e[5]*t.y,n[6]=e[6]*t.z,n[7]=e[7]*t.z,n[8]=e[8]*t.z,n};xt.multiplyByUniformScale=function(e,t,n){return n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n[4]=e[4]*t,n[5]=e[5]*t,n[6]=e[6]*t,n[7]=e[7]*t,n[8]=e[8]*t,n};xt.negate=function(e,t){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=-e[7],t[8]=-e[8],t};xt.transpose=function(e,t){let n=e[0],i=e[3],o=e[6],r=e[1],s=e[4],a=e[7],c=e[2],l=e[5],u=e[8];return t[0]=n,t[1]=i,t[2]=o,t[3]=r,t[4]=s,t[5]=a,t[6]=c,t[7]=l,t[8]=u,t};function sMe(e){let t=0;for(let n=0;n<9;++n){let i=e[n];t+=i*i}return Math.sqrt(t)}var l4=[1,0,0],d4=[2,2,1];function aMe(e){let t=0;for(let n=0;n<3;++n){let i=e[xt.getElementIndex(d4[n],l4[n])];t+=2*i*i}return Math.sqrt(t)}function cMe(e,t){let n=M.EPSILON15,i=0,o=1;for(let l=0;l<3;++l){let u=Math.abs(e[xt.getElementIndex(d4[l],l4[l])]);u>i&&(o=l,i=u)}let r=1,s=0,a=l4[o],c=d4[o];if(Math.abs(e[xt.getElementIndex(c,a)])>n){let l=e[xt.getElementIndex(c,c)],u=e[xt.getElementIndex(a,a)],m=e[xt.getElementIndex(c,a)],f=(l-u)/2/m,b;f<0?b=-1/(-f+Math.sqrt(1+f*f)):b=1/(f+Math.sqrt(1+f*f)),r=1/Math.sqrt(1+b*b),s=b*r}return t=xt.clone(xt.IDENTITY,t),t[xt.getElementIndex(a,a)]=t[xt.getElementIndex(c,c)]=r,t[xt.getElementIndex(c,a)]=s,t[xt.getElementIndex(a,c)]=-s,t}var O3=new xt,Koe=new xt;xt.computeEigenDecomposition=function(e,t){let n=M.EPSILON20,i=10,o=0,r=0;d(t)||(t={});let s=t.unitary=xt.clone(xt.IDENTITY,t.unitary),a=t.diagonal=xt.clone(e,t.diagonal),c=n*sMe(a);for(;r<i&&aMe(a)>c;)cMe(a,O3),xt.transpose(O3,Koe),xt.multiply(a,O3,a),xt.multiply(Koe,a,a),xt.multiply(s,O3,s),++o>2&&(++r,o=0);return t};xt.abs=function(e,t){return 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[4]=Math.abs(e[4]),t[5]=Math.abs(e[5]),t[6]=Math.abs(e[6]),t[7]=Math.abs(e[7]),t[8]=Math.abs(e[8]),t};xt.determinant=function(e){let t=e[0],n=e[3],i=e[6],o=e[1],r=e[4],s=e[7],a=e[2],c=e[5],l=e[8];return t*(r*l-c*s)+o*(c*i-n*l)+a*(n*s-r*i)};xt.inverse=function(e,t){let n=e[0],i=e[1],o=e[2],r=e[3],s=e[4],a=e[5],c=e[6],l=e[7],u=e[8],m=xt.determinant(e);t[0]=s*u-l*a,t[1]=l*o-i*u,t[2]=i*a-s*o,t[3]=c*a-r*u,t[4]=n*u-c*o,t[5]=r*o-n*a,t[6]=r*l-c*s,t[7]=c*i-n*l,t[8]=n*s-r*i;let f=1/m;return xt.multiplyByScalar(t,f,t)};var lMe=new xt;xt.inverseTranspose=function(e,t){return xt.inverse(xt.transpose(e,lMe),t)};xt.equals=function(e,t){return e===t||d(e)&&d(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]};xt.equalsEpsilon=function(e,t,n){return n=g(n,0),e===t||d(e)&&d(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n&&Math.abs(e[4]-t[4])<=n&&Math.abs(e[5]-t[5])<=n&&Math.abs(e[6]-t[6])<=n&&Math.abs(e[7]-t[7])<=n&&Math.abs(e[8]-t[8])<=n};xt.IDENTITY=Object.freeze(new xt(1,0,0,0,1,0,0,0,1));xt.ZERO=Object.freeze(new xt(0,0,0,0,0,0,0,0,0));xt.COLUMN0ROW0=0;xt.COLUMN0ROW1=1;xt.COLUMN0ROW2=2;xt.COLUMN1ROW0=3;xt.COLUMN1ROW1=4;xt.COLUMN1ROW2=5;xt.COLUMN2ROW0=6;xt.COLUMN2ROW1=7;xt.COLUMN2ROW2=8;Object.defineProperties(xt.prototype,{length:{get:function(){return xt.packedLength}}});xt.prototype.clone=function(e){return xt.clone(this,e)};xt.prototype.equals=function(e){return xt.equals(this,e)};xt.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]&&e[4]===t[n+4]&&e[5]===t[n+5]&&e[6]===t[n+6]&&e[7]===t[n+7]&&e[8]===t[n+8]};xt.prototype.equalsEpsilon=function(e,t){return xt.equalsEpsilon(this,e,t)};xt.prototype.toString=function(){return`(${this[0]}, ${this[3]}, ${this[6]})
97
97
  (${this[1]}, ${this[4]}, ${this[7]})
98
98
  (${this[2]}, ${this[5]}, ${this[8]})`};var $=xt;var rAt=S(C(),1);var KFt=S(C(),1);function Bt(e,t,n,i){this.x=g(e,0),this.y=g(t,0),this.z=g(n,0),this.w=g(i,0)}Bt.fromElements=function(e,t,n,i,o){return d(o)?(o.x=e,o.y=t,o.z=n,o.w=i,o):new Bt(e,t,n,i)};Bt.fromColor=function(e,t){return d(t)?(t.x=e.red,t.y=e.green,t.z=e.blue,t.w=e.alpha,t):new Bt(e.red,e.green,e.blue,e.alpha)};Bt.clone=function(e,t){if(d(e))return d(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new Bt(e.x,e.y,e.z,e.w)};Bt.packedLength=4;Bt.pack=function(e,t,n){return n=g(n,0),t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};Bt.unpack=function(e,t,n){return t=g(t,0),d(n)||(n=new Bt),n.x=e[t++],n.y=e[t++],n.z=e[t++],n.w=e[t],n};Bt.packArray=function(e,t){let n=e.length,i=n*4;d(t)?!Array.isArray(t)&&t.length!==i||t.length!==i&&(t.length=i):t=new Array(i);for(let o=0;o<n;++o)Bt.pack(e[o],t,o*4);return t};Bt.unpackArray=function(e,t){let n=e.length;d(t)?t.length=n/4:t=new Array(n/4);for(let i=0;i<n;i+=4){let o=i/4;t[o]=Bt.unpack(e,i,t[o])}return t};Bt.fromArray=Bt.unpack;Bt.maximumComponent=function(e){return Math.max(e.x,e.y,e.z,e.w)};Bt.minimumComponent=function(e){return Math.min(e.x,e.y,e.z,e.w)};Bt.minimumByComponent=function(e,t,n){return n.x=Math.min(e.x,t.x),n.y=Math.min(e.y,t.y),n.z=Math.min(e.z,t.z),n.w=Math.min(e.w,t.w),n};Bt.maximumByComponent=function(e,t,n){return n.x=Math.max(e.x,t.x),n.y=Math.max(e.y,t.y),n.z=Math.max(e.z,t.z),n.w=Math.max(e.w,t.w),n};Bt.clamp=function(e,t,n,i){let o=M.clamp(e.x,t.x,n.x),r=M.clamp(e.y,t.y,n.y),s=M.clamp(e.z,t.z,n.z),a=M.clamp(e.w,t.w,n.w);return i.x=o,i.y=r,i.z=s,i.w=a,i};Bt.magnitudeSquared=function(e){return e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w};Bt.magnitude=function(e){return Math.sqrt(Bt.magnitudeSquared(e))};var K3=new Bt;Bt.distance=function(e,t){return Bt.subtract(e,t,K3),Bt.magnitude(K3)};Bt.distanceSquared=function(e,t){return Bt.subtract(e,t,K3),Bt.magnitudeSquared(K3)};Bt.normalize=function(e,t){let n=Bt.magnitude(e);return t.x=e.x/n,t.y=e.y/n,t.z=e.z/n,t.w=e.w/n,t};Bt.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w};Bt.multiplyComponents=function(e,t,n){return n.x=e.x*t.x,n.y=e.y*t.y,n.z=e.z*t.z,n.w=e.w*t.w,n};Bt.divideComponents=function(e,t,n){return n.x=e.x/t.x,n.y=e.y/t.y,n.z=e.z/t.z,n.w=e.w/t.w,n};Bt.add=function(e,t,n){return n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n.w=e.w+t.w,n};Bt.subtract=function(e,t,n){return n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n.w=e.w-t.w,n};Bt.multiplyByScalar=function(e,t,n){return n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n.w=e.w*t,n};Bt.divideByScalar=function(e,t,n){return n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n.w=e.w/t,n};Bt.negate=function(e,t){return t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t};Bt.abs=function(e,t){return t.x=Math.abs(e.x),t.y=Math.abs(e.y),t.z=Math.abs(e.z),t.w=Math.abs(e.w),t};var Hoe=new Bt;Bt.lerp=function(e,t,n,i){return Bt.multiplyByScalar(t,n,Hoe),i=Bt.multiplyByScalar(e,1-n,i),Bt.add(Hoe,i,i)};var dMe=new Bt;Bt.mostOrthogonalAxis=function(e,t){let n=Bt.normalize(e,dMe);return Bt.abs(n,n),n.x<=n.y?n.x<=n.z?n.x<=n.w?t=Bt.clone(Bt.UNIT_X,t):t=Bt.clone(Bt.UNIT_W,t):n.z<=n.w?t=Bt.clone(Bt.UNIT_Z,t):t=Bt.clone(Bt.UNIT_W,t):n.y<=n.z?n.y<=n.w?t=Bt.clone(Bt.UNIT_Y,t):t=Bt.clone(Bt.UNIT_W,t):n.z<=n.w?t=Bt.clone(Bt.UNIT_Z,t):t=Bt.clone(Bt.UNIT_W,t),t};Bt.equals=function(e,t){return e===t||d(e)&&d(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};Bt.equalsArray=function(e,t,n){return e.x===t[n]&&e.y===t[n+1]&&e.z===t[n+2]&&e.w===t[n+3]};Bt.equalsEpsilon=function(e,t,n,i){return e===t||d(e)&&d(t)&&M.equalsEpsilon(e.x,t.x,n,i)&&M.equalsEpsilon(e.y,t.y,n,i)&&M.equalsEpsilon(e.z,t.z,n,i)&&M.equalsEpsilon(e.w,t.w,n,i)};Bt.ZERO=Object.freeze(new Bt(0,0,0,0));Bt.ONE=Object.freeze(new Bt(1,1,1,1));Bt.UNIT_X=Object.freeze(new Bt(1,0,0,0));Bt.UNIT_Y=Object.freeze(new Bt(0,1,0,0));Bt.UNIT_Z=Object.freeze(new Bt(0,0,1,0));Bt.UNIT_W=Object.freeze(new Bt(0,0,0,1));Bt.prototype.clone=function(e){return Bt.clone(this,e)};Bt.prototype.equals=function(e){return Bt.equals(this,e)};Bt.prototype.equalsEpsilon=function(e,t,n){return Bt.equalsEpsilon(this,e,t,n)};Bt.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};var u4=new Float32Array(1),qc=new Uint8Array(u4.buffer),uMe=new Uint32Array([287454020]),mMe=new Uint8Array(uMe.buffer),Joe=mMe[0]===68;Bt.packFloat=function(e,t){return d(t)||(t=new Bt),u4[0]=e,Joe?(t.x=qc[0],t.y=qc[1],t.z=qc[2],t.w=qc[3]):(t.x=qc[3],t.y=qc[2],t.z=qc[1],t.w=qc[0]),t};Bt.unpackFloat=function(e){return Joe?(qc[0]=e.x,qc[1]=e.y,qc[2]=e.z,qc[3]=e.w):(qc[0]=e.w,qc[1]=e.z,qc[2]=e.y,qc[3]=e.x),u4[0]};var re=Bt;var QFt=S(C(),1);function JG(e){this.name="RuntimeError",this.message=e;let t;try{throw new Error}catch(n){t=n.stack}this.stack=t}d(Object.create)&&(JG.prototype=Object.create(Error.prototype),JG.prototype.constructor=JG);JG.prototype.toString=function(){let e=`${this.name}: ${this.message}`;return d(this.stack)&&(e+=`
@@ -6866,7 +6866,7 @@ ${n.stack}`),n};Px.prototype.isDestroyed=function(){return!1};Px.prototype.destr
6866
6866
  ${n.message}`);let o=new le(i);return d(n)&&(o.stack=`Original stack:
6867
6867
  ${n.stack}
6868
6868
  Handler stack:
6869
- ${o.stack}`),o};Zl.getNodeTransform=function(e){return d(e.matrix)?e.matrix:P.fromTranslationQuaternionRotationScale(d(e.translation)?e.translation:h.ZERO,d(e.rotation)?e.rotation:Be.IDENTITY,d(e.scale)?e.scale:h.ONE)};Zl.getAttributeBySemantic=function(e,t,n){let i=e.attributes,o=i.length;for(let r=0;r<o;++r){let s=i[r],a=d(n)?s.setIndex===n:!0;if(s.semantic===t&&a)return s}};Zl.getAttributeByName=function(e,t){let n=e.attributes,i=n.length;for(let o=0;o<i;++o){let r=n[o];if(r.name===t)return r}};Zl.getFeatureIdsByLabel=function(e,t){for(let n=0;n<e.length;n++){let i=e[n];if(i.positionalLabel===t||i.label===t)return i}};Zl.hasQuantizedAttributes=function(e){if(!d(e))return!1;for(let t=0;t<e.length;t++){let n=e[t];if(d(n.quantization))return!0}return!1};Zl.getAttributeInfo=function(e){let t=e.semantic,n=e.setIndex,i,o=!1;d(t)?(i=ut.getVariableName(t,n),o=!0):(i=e.name,i=i.replace(/^_/,""),i=i.toLowerCase());let r=/^color_\d+$/.test(i),s=e.type,a=kt.getGlslType(s);r&&(a="vec4");let c=d(e.quantization),l;return c&&(l=r?"vec4":kt.getGlslType(e.quantization.type)),{attribute:e,isQuantized:c,variableName:i,hasSemantic:o,glslType:a,quantizedGlslType:l}};var O8e=new h,K8e=new h;Zl.getPositionMinMax=function(e,t,n){let i=Zl.getAttributeBySemantic(e,"POSITION"),o=i.max,r=i.min;return d(n)&&d(t)&&(r=h.add(r,t,K8e),o=h.add(o,n,O8e)),{min:r,max:o}};Zl.getAxisCorrectionMatrix=function(e,t,n){return n=P.clone(P.IDENTITY,n),e===In.Y?n=P.clone(In.Y_UP_TO_Z_UP,n):e===In.X&&(n=P.clone(In.X_UP_TO_Z_UP,n)),t===In.Z&&(n=P.multiplyTransformation(n,In.Z_UP_TO_X_UP,n)),n};var H8e=new $;Zl.getCullFace=function(e,t){if(!Fe.isTriangles(t))return _i.BACK;let n=P.getMatrix3(e,H8e);return $.determinant(n)<0?_i.FRONT:_i.BACK};Zl.sanitizeGlslIdentifier=function(e){let t=e.replaceAll(/[^A-Za-z0-9]+/g,"_");return t=t.replace(/^gl_/,""),/^\d/.test(t)&&(t=`_${t}`),t};Zl.supportedExtensions={AGI_articulations:!0,CESIUM_primitive_outline:!0,CESIUM_RTC:!0,EXT_feature_metadata:!0,EXT_instance_features:!0,EXT_mesh_features:!0,EXT_mesh_gpu_instancing:!0,EXT_meshopt_compression:!0,EXT_structural_metadata:!0,EXT_texture_webp:!0,KHR_blend:!0,KHR_draco_mesh_compression:!0,KHR_techniques_webgl:!0,KHR_materials_common:!0,KHR_materials_pbrSpecularGlossiness:!0,KHR_materials_specular:!0,KHR_materials_anisotropy:!0,KHR_materials_clearcoat:!0,KHR_materials_unlit:!0,KHR_mesh_quantization:!0,KHR_texture_basisu:!0,KHR_texture_transform:!0,WEB3D_quantized_attributes:!0};Zl.checkSupportedExtensions=function(e){let t=e.length;for(let n=0;n<t;n++){let i=e[n];if(!Zl.supportedExtensions[i])throw new le(`Unsupported glTF Extension: ${i}`)}};var fn=Zl;function Ax(e){e=g(e,g.EMPTY_OBJECT);let t=e.resourceCache,n=e.gltfResource,i=e.baseResource,o=e.typedArray,r=e.gltfJson,s=e.cacheKey;this._resourceCache=t,this._gltfResource=n,this._baseResource=i,this._typedArray=o,this._gltfJson=r,this._cacheKey=s,this._gltf=void 0,this._bufferLoaders=[],this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Ax.prototype=Object.create(vi.prototype),Ax.prototype.constructor=Ax);Object.defineProperties(Ax.prototype,{cacheKey:{get:function(){return this._cacheKey}},gltf:{get:function(){return this._gltf}}});Ax.prototype.load=async function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,d(this._gltfJson)?(this._promise=Ube(this,this._gltfJson),this._promise):d(this._typedArray)?(this._promise=kbe(this,this._typedArray),this._promise):(this._promise=J8e(this),this._promise))};async function J8e(e){let t;try{let n=await e._fetchGltf();if(e.isDestroyed())return;t=new Uint8Array(n)}catch(n){if(e.isDestroyed())return;A7(e,n)}return kbe(e,t)}function A7(e,t){e.unload(),e._state=Xt.FAILED;let n=`Failed to load glTF: ${e._gltfResource.url}`;throw e.getError(n,t)}async function Q8e(e,t){if(d(t.asset)&&t.asset.version==="2.0"&&!ds(t,"KHR_techniques_webgl")&&!ds(t,"KHR_materials_common"))return Promise.resolve();let n=[];De.buffer(t,function(i){if(!d(i.extras._pipeline.source)&&d(i.uri)){let o=e._baseResource.getDerivedResource({url:i.uri}),s=e._resourceCache.getExternalBufferLoader({resource:o});e._bufferLoaders.push(s),n.push(s.load().then(function(){s.isDestroyed()||(i.extras._pipeline.source=s.typedArray)}))}}),await Promise.all(n),xW(t)}function j8e(e){let t=[];return De.buffer(e,function(n){let i=n.uri;!d(n.extras._pipeline.source)&&d(i)&&rb(i)&&(delete n.uri,t.push(Xe.fetchArrayBuffer(i).then(function(o){n.extras._pipeline.source=new Uint8Array(o)})))}),Promise.all(t)}function q8e(e,t){let n=[];return De.buffer(t,function(i,o){let r=i.extras._pipeline.source;if(d(r)&&!d(i.uri)){let a=e._resourceCache.getEmbeddedBufferLoader({parentResource:e._gltfResource,bufferId:o,typedArray:r});e._bufferLoaders.push(a),n.push(a.load())}}),Promise.all(n)}async function Ube(e,t){try{Fx(t),await j8e(t),await Q8e(e,t),cW(t),await q8e(e,t),uW(t);let n=t.asset.version;if(n!=="1.0"&&n!=="2.0")throw new le(`Unsupported glTF version: ${n}`);let i=t.extensionsRequired;return d(i)&&fn.checkSupportedExtensions(i),e._gltf=t,e._state=Xt.READY,e}catch(n){if(e.isDestroyed())return;A7(e,n)}}async function kbe(e,t){let n;try{Mc(t)==="glTF"?n=dW(t):n=mo(t)}catch(i){if(e.isDestroyed())return;A7(e,i)}return Ube(e,n)}Ax.prototype.unload=function(){let e=this._bufferLoaders,t=e.length;for(let n=0;n<t;++n)e[n]=!e[n].isDestroyed()&&this._resourceCache.unload(e[n]);this._bufferLoaders.length=0,this._gltf=void 0};Ax.prototype._fetchGltf=function(){return this._gltfResource.fetchArrayBuffer()};var lZ=Ax;var jKn=S(C(),1);function Dx(e){e=g(e,g.EMPTY_OBJECT);let t=e.resourceCache,n=e.gltf,i=e.textureInfo,o=e.gltfResource,r=e.baseResource,s=e.supportedImageFormats,a=e.cacheKey,c=g(e.asynchronous,!0),l=i.index,u=$d.getImageIdFromTexture({gltf:n,textureId:l,supportedImageFormats:s});this._resourceCache=t,this._gltf=n,this._textureInfo=i,this._imageId=u,this._gltfResource=o,this._baseResource=r,this._cacheKey=a,this._asynchronous=c,this._imageLoader=void 0,this._image=void 0,this._mipLevels=void 0,this._texture=void 0,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Dx.prototype=Object.create(vi.prototype),Dx.prototype.constructor=Dx);Object.defineProperties(Dx.prototype,{cacheKey:{get:function(){return this._cacheKey}},texture:{get:function(){return this._texture}}});var $8e=new D7;async function e7e(e){let t=e._resourceCache;try{let n=t.getImageLoader({gltf:e._gltf,imageId:e._imageId,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._imageLoader=n,await n.load(),e.isDestroyed()?void 0:(e._image=n.image,e._mipLevels=n.mipLevels,e._state=Xt.LOADED,e)}catch(n){if(e.isDestroyed())return;throw e.unload(),e._state=Xt.FAILED,e.getError("Failed to load texture",n)}}Dx.prototype.load=async function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,this._promise=e7e(this),this._promise)};function D7(){this.gltf=void 0,this.textureInfo=void 0,this.image=void 0,this.context=void 0,this.texture=void 0}D7.prototype.set=function(e,t,n,i,o){this.gltf=e,this.textureInfo=t,this.image=n,this.mipLevels=i,this.context=o};D7.prototype.execute=function(){this.texture=zbe(this.gltf,this.textureInfo,this.image,this.mipLevels,this.context)};function zbe(e,t,n,i,o){let r=n.internalFormat,s=!1;Ye.isCompressedFormat(r)&&!d(i)&&(s=!0);let a=$d.createSampler({gltf:e,textureInfo:t,compressedTextureNoMipmap:s}),c=a.minificationFilter,l=a.wrapS,u=a.wrapT,m=c===gn.NEAREST_MIPMAP_NEAREST||c===gn.NEAREST_MIPMAP_LINEAR||c===gn.LINEAR_MIPMAP_NEAREST||c===gn.LINEAR_MIPMAP_LINEAR,f=!d(r)&&m,b=f||l===Nn.REPEAT||l===Nn.MIRRORED_REPEAT||u===Nn.REPEAT||u===Nn.MIRRORED_REPEAT,p=!M.isPowerOfTwo(n.width)||!M.isPowerOfTwo(n.height),x=b&&p,T;return d(r)?(!o.webgl2&&Ye.isCompressedFormat(r)&&p&&b&&console.warn("Compressed texture uses REPEAT or MIRRORED_REPEAT texture wrap mode and dimensions are not powers of two. The texture may be rendered incorrectly."),T=it.create({context:o,source:{arrayBufferView:n.bufferView,mipLevels:i},width:n.width,height:n.height,pixelFormat:n.internalFormat,sampler:a})):(x&&(n=hx(n)),T=it.create({context:o,source:n,sampler:a,flipY:!1,skipColorSpaceConversion:!0})),f&&T.generateMipmap(),T}Dx.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED&&this._state!==Xt.PROCESSING||d(this._texture)||!d(this._image))return!1;this._state=Xt.PROCESSING;let t;if(this._asynchronous){let n=$8e;if(n.set(this._gltf,this._textureInfo,this._image,this._mipLevels,e.context),!e.jobScheduler.execute(n,kc.TEXTURE))return;t=n.texture}else t=zbe(this._gltf,this._textureInfo,this._image,this._mipLevels,e.context);return this.unload(),this._texture=t,this._state=Xt.READY,this._resourceCache.statistics.addTextureLoader(this),!0};Dx.prototype.unload=function(){d(this._texture)&&this._texture.destroy(),d(this._imageLoader)&&!this._imageLoader.isDestroyed()&&this._resourceCache.unload(this._imageLoader),this._imageLoader=void 0,this._image=void 0,this._mipLevels=void 0,this._texture=void 0,this._gltf=void 0};var dZ=Dx;var cHn=S(C(),1);function Ux(e){e=g(e,g.EMPTY_OBJECT);let t=e.resourceCache,n=e.gltf,i=e.gltfResource,o=e.baseResource,r=e.bufferViewId,s=e.draco,a=e.attributeSemantic,c=e.accessorId,l=e.cacheKey,u=g(e.asynchronous,!0),m=g(e.loadBuffer,!1),f=g(e.loadTypedArray,!1);this._resourceCache=t,this._gltfResource=i,this._baseResource=o,this._gltf=n,this._bufferViewId=r,this._draco=s,this._attributeSemantic=a,this._accessorId=c,this._cacheKey=l,this._asynchronous=u,this._loadBuffer=m,this._loadTypedArray=f,this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._quantization=void 0,this._typedArray=void 0,this._buffer=void 0,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Ux.prototype=Object.create(vi.prototype),Ux.prototype.constructor=Ux);Object.defineProperties(Ux.prototype,{cacheKey:{get:function(){return this._cacheKey}},buffer:{get:function(){return this._buffer}},typedArray:{get:function(){return this._typedArray}},quantization:{get:function(){return this._quantization}}});function t7e(e,t){return d(e)&&d(e.attributes)&&d(e.attributes[t])}Ux.prototype.load=async function(){return d(this._promise)?this._promise:t7e(this._draco,this._attributeSemantic)?(this._promise=i7e(this),this._promise):(this._promise=r7e(this),this._promise)};function n7e(e,t,n,i){let r=(1<<e.quantizationBits)-1,s=1/r,a=new hn.Quantization;if(a.componentDatatype=t,a.octEncoded=e.octEncoded,a.octEncodedZXY=!0,a.type=i,a.octEncoded)a.type=kt.VEC2,a.normalizationRange=r;else{let c=kt.getMathType(i);if(c===Number){let l=e.range;a.quantizedVolumeOffset=e.minValues[0],a.quantizedVolumeDimensions=l,a.normalizationRange=r,a.quantizedVolumeStepSize=l*s}else{a.quantizedVolumeOffset=c.unpack(e.minValues),a.normalizationRange=c.unpack(new Array(n).fill(r));let l=new Array(n).fill(e.range);a.quantizedVolumeDimensions=c.unpack(l);let u=l.map(function(m){return m*s});a.quantizedVolumeStepSize=c.unpack(u)}}return a}async function i7e(e){e._state=Xt.LOADING;let t=e._resourceCache;try{let n=t.getDracoLoader({gltf:e._gltf,draco:e._draco,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._dracoLoader=n,await n.load(),e.isDestroyed()?void 0:(e._state=Xt.LOADED,e)}catch{if(e.isDestroyed())return;U7(e)}}function o7e(e){e._state=Xt.PROCESSING;let n=e._dracoLoader.decodedData.vertexAttributes,i=e._attributeSemantic,o=n[i],r=e._accessorId,a=e._gltf.accessors[r].type,c=o.array,l=o.data.quantization;d(l)&&(e._quantization=n7e(l,o.data.componentDatatype,o.data.componentsPerAttribute,a)),e._typedArray=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)}async function r7e(e){e._state=Xt.LOADING;let t=e._resourceCache;try{let n=t.getBufferViewLoader({gltf:e._gltf,bufferViewId:e._bufferViewId,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._bufferViewLoader=n,await n.load(),e.isDestroyed()?void 0:(e._typedArray=n.typedArray,e._state=Xt.PROCESSING,e)}catch(n){if(e.isDestroyed())return;U7(e,n)}}function U7(e,t){throw e.unload(),e._state=Xt.FAILED,e.getError("Failed to load vertex buffer",t)}function k7(){this.typedArray=void 0,this.context=void 0,this.buffer=void 0}k7.prototype.set=function(e,t){this.typedArray=e,this.context=t};k7.prototype.execute=function(){this.buffer=Ybe(this.typedArray,this.context)};function Ybe(e,t){let n=nt.createVertexBuffer({typedArray:e,context:t,usage:Me.STATIC_DRAW});return n.vertexArrayDestroyable=!1,n}var s7e=new k7;Ux.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED&&this._state!==Xt.PROCESSING)return!1;if(d(this._dracoLoader)){try{if(!this._dracoLoader.process(e))return!1}catch(i){U7(this,i)}o7e(this)}let t,n=this._typedArray;if(this._loadBuffer&&this._asynchronous){let i=s7e;if(i.set(n,e.context),!e.jobScheduler.execute(i,kc.BUFFER))return!1;t=i.buffer}else this._loadBuffer&&(t=Ybe(n,e.context));return this.unload(),this._buffer=t,this._typedArray=this._loadTypedArray?n:void 0,this._state=Xt.READY,this._resourceCache.statistics.addGeometryLoader(this),!0};Ux.prototype.unload=function(){d(this._buffer)&&this._buffer.destroy();let e=this._resourceCache;d(this._bufferViewLoader)&&!this._bufferViewLoader.isDestroyed()&&e.unload(this._bufferViewLoader),d(this._dracoLoader)&&e.unload(this._dracoLoader),this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._typedArray=void 0,this._buffer=void 0,this._gltf=void 0};var uZ=Ux;var FHn=S(C(),1);var XHn=S(C(),1);var pHn=S(C(),1);function TW(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=g(e.properties,{}),i={};for(let o in n)if(n.hasOwnProperty(o)){let r=n[o];d(r.semantic)&&(i[r.semantic]=r)}this._id=t,this._name=e.name,this._description=e.description,this._properties=n,this._propertiesBySemantic=i,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}TW.fromJson=function(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=e.class,i={};for(let o in n.properties)if(n.properties.hasOwnProperty(o)){let r=d0.fromJson({id:o,property:n.properties[o],enums:e.enums});i[o]=r}return new TW({id:t,name:n.name,description:n.description,properties:i,extras:n.extras,extensions:n.extensions})};Object.defineProperties(TW.prototype,{properties:{get:function(){return this._properties}},propertiesBySemantic:{get:function(){return this._propertiesBySemantic}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});TW.BATCH_TABLE_CLASS_NAME="_batchTable";var ua=TW;var LHn=S(C(),1);var gHn=S(C(),1);function pY(e){e=g(e,g.EMPTY_OBJECT);let t=e.value,n=e.name;this._value=t,this._name=n,this._description=e.description,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}pY.fromJson=function(e){return new pY({value:e.value,name:e.name,description:e.description,extras:e.extras,extensions:e.extensions})};Object.defineProperties(pY.prototype,{value:{get:function(){return this._value}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});var _W=pY;function fY(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=e.values,i={},o={},r=n.length;for(let a=0;a<r;++a){let c=n[a];i[c.value]=c.name,o[c.name]=c.value}let s=g(e.valueType,pn.UINT16);this._values=n,this._namesByValue=i,this._valuesByName=o,this._valueType=s,this._id=t,this._name=e.name,this._description=e.description,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}fY.fromJson=function(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=e.enum,i=n.values.map(function(o){return _W.fromJson(o)});return new fY({id:t,values:i,valueType:pn[n.valueType],name:n.name,description:n.description,extras:n.extras,extensions:n.extensions})};Object.defineProperties(fY.prototype,{values:{get:function(){return this._values}},namesByValue:{get:function(){return this._namesByValue}},valuesByName:{get:function(){return this._valuesByName}},valueType:{get:function(){return this._valueType}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});var SW=fY;function bY(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.classes,{}),n=g(e.enums,{});this._classes=t,this._enums=n,this._id=e.id,this._name=e.name,this._description=e.description,this._version=e.version,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}bY.fromJson=function(e){let t={};if(d(e.enums))for(let i in e.enums)e.enums.hasOwnProperty(i)&&(t[i]=SW.fromJson({id:i,enum:e.enums[i]}));let n={};if(d(e.classes))for(let i in e.classes)e.classes.hasOwnProperty(i)&&(n[i]=ua.fromJson({id:i,class:e.classes[i],enums:t}));return new bY({id:e.id,name:e.name,description:e.description,version:e.version,classes:n,enums:t,extras:e.extras,extensions:e.extensions})};Object.defineProperties(bY.prototype,{classes:{get:function(){return this._classes}},enums:{get:function(){return this._enums}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},version:{get:function(){return this._version}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});var Rl=bY;function dS(e){e=g(e,g.EMPTY_OBJECT);let t=e.schema,n=e.resource,i=e.cacheKey;this._schema=d(t)?Rl.fromJson(t):void 0,this._resource=n,this._cacheKey=i,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(dS.prototype=Object.create(vi.prototype),dS.prototype.constructor=dS);Object.defineProperties(dS.prototype,{cacheKey:{get:function(){return this._cacheKey}},schema:{get:function(){return this._schema}}});dS.prototype.load=async function(){return d(this._promise)?this._promise:d(this._schema)?(this._promise=Promise.resolve(this),this._promise):(this._promise=a7e(this),this._promise)};async function a7e(e){let t=e._resource;e._state=Xt.LOADING;try{let n=await t.fetchJson();return e.isDestroyed()?void 0:(e._schema=Rl.fromJson(n),e._state=Xt.READY,e)}catch(n){if(e.isDestroyed())return;e._state=Xt.FAILED;let i=`Failed to load schema: ${t.url}`;throw e.getError(i,n)}}dS.prototype.unload=function(){this._schema=void 0};var mZ=dS;var BHn=S(C(),1);var Vp={};function hZ(e){return Cf(e.url)}function yY(e){let{byteOffset:t,byteLength:n}=e;if(Zi(e,"EXT_meshopt_compression")){let i=e.extensions.EXT_meshopt_compression;t=g(i.byteOffset,0),n=i.byteLength}return`${t}-${t+n}`}function c7e(e,t){let n=t.byteOffset+e.byteOffset,{componentType:i,type:o,count:r}=e;return`${n}-${i}-${o}-${r}`}function Bbe(e,t){return`${hZ(e)}-buffer-id-${t}`}function CW(e,t,n,i){if(d(e.uri)){let o=i.getDerivedResource({url:e.uri});return hZ(o)}return Bbe(n,t)}function z7(e,t,n,i){let o=t.bufferView,r=e.bufferViews[o],s=r.buffer,a=e.buffers[s],c=CW(a,s,n,i),l=yY(r);return`${c}-range-${l}`}function Obe(e,t,n,i){let o=e.images[t],r=o.bufferView,s=o.uri;if(d(s)){let f=i.getDerivedResource({url:s});return hZ(f)}let a=e.bufferViews[r],c=a.buffer,l=e.buffers[c],u=CW(l,c,n,i),m=yY(a);return`${u}-range-${m}`}function l7e(e,t){let n=$d.createSampler({gltf:e,textureInfo:t});return`${n.wrapS}-${n.wrapT}-${n.minificationFilter}-${n.magnificationFilter}`}Vp.getSchemaCacheKey=function(e){let{schema:t,resource:n}=e;return d(t)?`embedded-schema:${JSON.stringify(t)}`:`external-schema:${hZ(n)}`};Vp.getExternalBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{resource:t}=e;return`external-buffer:${hZ(t)}`};Vp.getEmbeddedBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{parentResource:t,bufferId:n}=e;return`embedded-buffer:${Bbe(t,n)}`};Vp.getGltfCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltfResource:t}=e;return`gltf:${hZ(t)}`};Vp.getBufferViewCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,bufferViewId:n,gltfResource:i,baseResource:o}=e,r=t.bufferViews[n],s=r.buffer,a=t.buffers[s];Zi(r,"EXT_meshopt_compression")&&(s=r.extensions.EXT_meshopt_compression.buffer);let c=CW(a,s,i,o),l=yY(r);return`buffer-view:${c}-range-${l}`};Vp.getDracoCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,draco:n,gltfResource:i,baseResource:o}=e;return`draco:${z7(t,n,i,o)}`};Vp.getVertexBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,gltfResource:n,baseResource:i,frameState:o,bufferViewId:r,draco:s,attributeSemantic:a,dequantize:c=!1,loadBuffer:l=!1,loadTypedArray:u=!1}=e,m="";if(c&&(m+="-dequantize"),l&&(m+="-buffer",m+=`-context-${o.context.id}`),u&&(m+="-typed-array"),d(s))return`vertex-buffer:${z7(t,s,n,i)}-draco-${a}${m}`;let f=t.bufferViews[r],b=f.buffer,p=t.buffers[b],x=CW(p,b,n,i),T=yY(f);return`vertex-buffer:${x}-range-${T}${m}`};Vp.getIndexBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,accessorId:n,gltfResource:i,baseResource:o,frameState:r,draco:s,loadBuffer:a=!1,loadTypedArray:c=!1}=e,l="";if(a&&(l+="-buffer",l+=`-context-${r.context.id}`),c&&(l+="-typed-array"),d(s))return`index-buffer:${z7(t,s,i,o)}-draco${l}`;let u=t.accessors[n],m=u.bufferView,f=t.bufferViews[m],b=f.buffer,p=t.buffers[b],x=CW(p,b,i,o),T=c7e(u,f);return`index-buffer:${x}-accessor-${T}${l}`};Vp.getImageCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,imageId:n,gltfResource:i,baseResource:o}=e;return`image:${Obe(t,n,i,o)}`};Vp.getTextureCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s}=e,a=n.index,c=$d.getImageIdFromTexture({gltf:t,textureId:a,supportedImageFormats:r}),l=Obe(t,c,i,o),u=l7e(t,n);return`texture:${l}-sampler-${u}-context-${s.context.id}`};var eu=Vp;var HHn=S(C(),1);function LW(){this.geometryByteLength=0,this.texturesByteLength=0,this._geometrySizes={},this._textureSizes={}}LW.prototype.clear=function(){this.geometryByteLength=0,this.texturesByteLength=0,this._geometrySizes={},this._textureSizes={}};LW.prototype.addGeometryLoader=function(e){let t=e.cacheKey;if(this._geometrySizes.hasOwnProperty(t))return;this._geometrySizes[t]=0;let n=e.buffer,i=e.typedArray,o=0;d(n)&&(o+=n.sizeInBytes),d(i)&&(o+=i.byteLength),this.geometryByteLength+=o,this._geometrySizes[t]=o};LW.prototype.addTextureLoader=function(e){let t=e.cacheKey;if(this._textureSizes.hasOwnProperty(t))return;this._textureSizes[t]=0;let n=e.texture.sizeInBytes;this.texturesByteLength+=e.texture.sizeInBytes,this._textureSizes[t]=n};LW.prototype.removeLoader=function(e){let t=e.cacheKey,n=this._geometrySizes[t];delete this._geometrySizes[t],d(n)&&(this.geometryByteLength-=n);let i=this._textureSizes[t];delete this._textureSizes[t],d(i)&&(this.texturesByteLength-=i)};var VW=LW;function yi(){}yi.cacheEntries={};yi.statistics=new VW;function d7e(e){this.referenceCount=1,this.resourceLoader=e,this._statisticsPromise=void 0}yi.get=function(e){let t=yi.cacheEntries[e];if(d(t))return++t.referenceCount,t.resourceLoader};yi.add=function(e){let t=e.cacheKey;return yi.cacheEntries[t]=new d7e(e),e};yi.unload=function(e){let t=e.cacheKey,n=yi.cacheEntries[t];--n.referenceCount,n.referenceCount===0&&(yi.statistics.removeLoader(e),e.destroy(),delete yi.cacheEntries[t])};yi.getSchemaLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{schema:t,resource:n}=e,i=eu.getSchemaCacheKey({schema:t,resource:n}),o=yi.get(i);return d(o)?o:(o=new mZ({schema:t,resource:n,cacheKey:i}),yi.add(o))};yi.getEmbeddedBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{parentResource:t,bufferId:n,typedArray:i}=e,o=eu.getEmbeddedBufferCacheKey({parentResource:t,bufferId:n}),r=yi.get(o);return d(r)?r:(r=new oS({typedArray:i,cacheKey:o}),yi.add(r))};yi.getExternalBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{resource:t}=e,n=eu.getExternalBufferCacheKey({resource:t}),i=yi.get(n);return d(i)?i:(i=new oS({resource:t,cacheKey:n}),yi.add(i))};yi.getGltfJsonLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltfResource:t,baseResource:n,typedArray:i,gltfJson:o}=e,r=eu.getGltfCacheKey({gltfResource:t}),s=yi.get(r);return d(s)?s:(s=new lZ({resourceCache:yi,gltfResource:t,baseResource:n,typedArray:i,gltfJson:o,cacheKey:r}),yi.add(s))};yi.getBufferViewLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,bufferViewId:n,gltfResource:i,baseResource:o}=e,r=eu.getBufferViewCacheKey({gltf:t,bufferViewId:n,gltfResource:i,baseResource:o}),s=yi.get(r);return d(s)?s:(s=new oZ({resourceCache:yi,gltf:t,bufferViewId:n,gltfResource:i,baseResource:o,cacheKey:r}),yi.add(s))};yi.getDracoLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,draco:n,gltfResource:i,baseResource:o}=e,r=eu.getDracoCacheKey({gltf:t,draco:n,gltfResource:i,baseResource:o}),s=yi.get(r);return d(s)?s:(s=new rZ({resourceCache:yi,gltf:t,draco:n,gltfResource:i,baseResource:o,cacheKey:r}),yi.add(s))};yi.getVertexBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,gltfResource:n,baseResource:i,frameState:o,bufferViewId:r,draco:s,attributeSemantic:a,accessorId:c,asynchronous:l=!0,dequantize:u=!1,loadBuffer:m=!1,loadTypedArray:f=!1}=e,b=eu.getVertexBufferCacheKey({gltf:t,gltfResource:n,baseResource:i,frameState:o,bufferViewId:r,draco:s,attributeSemantic:a,dequantize:u,loadBuffer:m,loadTypedArray:f}),p=yi.get(b);return d(p)?p:(p=new uZ({resourceCache:yi,gltf:t,gltfResource:n,baseResource:i,bufferViewId:r,draco:s,attributeSemantic:a,accessorId:c,cacheKey:b,asynchronous:l,dequantize:u,loadBuffer:m,loadTypedArray:f}),yi.add(p))};yi.getIndexBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,accessorId:n,gltfResource:i,baseResource:o,frameState:r,draco:s,asynchronous:a=!0,loadBuffer:c=!1,loadTypedArray:l=!1}=e,u=eu.getIndexBufferCacheKey({gltf:t,accessorId:n,gltfResource:i,baseResource:o,frameState:r,draco:s,loadBuffer:c,loadTypedArray:l}),m=yi.get(u);return d(m)?m:(m=new aZ({resourceCache:yi,gltf:t,accessorId:n,gltfResource:i,baseResource:o,draco:s,cacheKey:u,asynchronous:a,loadBuffer:c,loadTypedArray:l}),yi.add(m))};yi.getImageLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,imageId:n,gltfResource:i,baseResource:o}=e,r=eu.getImageCacheKey({gltf:t,imageId:n,gltfResource:i,baseResource:o}),s=yi.get(r);return d(s)?s:(s=new sZ({resourceCache:yi,gltf:t,imageId:n,gltfResource:i,baseResource:o,cacheKey:r}),yi.add(s))};yi.getTextureLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s,asynchronous:a=!0}=e,c=eu.getTextureCacheKey({gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s}),l=yi.get(c);return d(l)?l:(l=new dZ({resourceCache:yi,gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,cacheKey:c,asynchronous:a}),yi.add(l))};yi.clearForSpecs=function(){let e=[uZ,aZ,rZ,dZ,sZ,oZ,oS,mZ,lZ],t,n=yi.cacheEntries,i=[];for(t in n)n.hasOwnProperty(t)&&i.push(n[t]);i.sort(function(r,s){let a=e.indexOf(r.resourceLoader.constructor),c=e.indexOf(s.resourceLoader.constructor);return a-c});let o=i.length;for(let r=0;r<o;++r){let s=i[r];t=s.resourceLoader.cacheKey,d(n[t])&&(s.resourceLoader.destroy(),delete n[t])}yi.statistics.clear()};var ji=yi;function kx(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,extension:n,extensionLegacy:i,gltfResource:o,baseResource:r,supportedImageFormats:s,frameState:a,cacheKey:c,asynchronous:l=!0,generateUniqueId:u}=e;this._gltfResource=o,this._baseResource=r,this._gltf=t,this._extension=n,this._extensionLegacy=i,this._supportedImageFormats=s,this._frameState=a,this._cacheKey=c,this._asynchronous=l,this._bufferViewLoaders=[],this._bufferViewIds=[],this._textureLoaders=[],this._textureIds=[],this._schemaLoader=void 0,this._structuralMetadata=void 0,this._state=Xt.UNLOADED,this._promise=void 0,this._generateUniqueId=u}d(Object.create)&&(kx.prototype=Object.create(vi.prototype),kx.prototype.constructor=kx);Object.defineProperties(kx.prototype,{cacheKey:{get:function(){return this._cacheKey}},structuralMetadata:{get:function(){return this._structuralMetadata}}});async function u7e(e){try{let t=b7e(e),n=_7e(e),i=S7e(e);return await Promise.all([t,n,i]),e.isDestroyed()?void 0:(e._gltf=void 0,e._state=Xt.LOADED,e)}catch(t){if(e.isDestroyed())return;throw e.unload(),e._state=Xt.FAILED,e.getError("Failed to load structural metadata",t)}}kx.prototype.load=function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,this._promise=u7e(this),this._promise)};function m7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o=i.values,r=i.arrayOffsets,s=i.stringOffsets;d(o)&&(t[o]=!0),d(r)&&(t[r]=!0),d(s)&&(t[s]=!0)}}function h7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o=i.bufferView,r=i.arrayOffsetBufferView,s=i.stringOffsetBufferView;d(o)&&(t[o]=!0),d(r)&&(t[r]=!0),d(s)&&(t[s]=!0)}}function p7e(e){let t=e.propertyTables,n={};if(d(t))for(let i=0;i<t.length;i++){let o=t[i];m7e(o.properties,n)}return n}function f7e(e){let t=e.featureTables,n={};if(d(t)){for(let i in t)if(t.hasOwnProperty(i)){let r=t[i].properties;d(r)&&h7e(r,n)}}return n}async function b7e(e){let t;d(e._extension)?t=p7e(e._extension):t=f7e(e._extensionLegacy);let n=[];for(let i in t)if(t.hasOwnProperty(i)){let o=ji.getBufferViewLoader({gltf:e._gltf,bufferViewId:parseInt(i),gltfResource:e._gltfResource,baseResource:e._baseResource});e._bufferViewLoaders.push(o),e._bufferViewIds.push(i),n.push(o.load())}return Promise.all(n)}function y7e(e){let t={},n=e.propertyTextures;if(d(n))for(let i=0;i<n.length;i++){let r=n[i].properties;d(r)&&g7e(r,t)}return t}function g7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t[i.index]=i}}function x7e(e){let t={},n=e.featureTextures;if(d(n)){for(let i in n)if(n.hasOwnProperty(i)){let r=n[i].properties;d(r)&&T7e(r,t)}}return t}function T7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let o=e[n].texture;t[o.index]=o}}function _7e(e){let t;d(e._extension)?t=y7e(e._extension):t=x7e(e._extensionLegacy);let n=e._gltf,i=e._gltfResource,o=e._baseResource,r=e._supportedImageFormats,s=e._frameState,a=e._asynchronous,c=[];for(let l in t)if(t.hasOwnProperty(l)){let u=ji.getTextureLoader({gltf:n,textureInfo:t[l],gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s,asynchronous:a});e._textureLoaders.push(u),e._textureIds.push(l),c.push(u.load())}return Promise.all(c)}async function S7e(e){let t=g(e._extension,e._extensionLegacy),n;if(d(t.schemaUri)){let i=e._baseResource.getDerivedResource({url:t.schemaUri});n=ji.getSchemaLoader({resource:i})}else n=ji.getSchemaLoader({schema:t.schema});if(e._schemaLoader=n,await n.load(),!n.isDestroyed())return n.schema}kx.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED)return!1;let t=this._textureLoaders,n=t.length,i=!0;for(let a=0;a<n;++a){let l=t[a].process(e);i=i&&l}if(!i)return!1;let o=this._schemaLoader.schema,r={};for(let a=0;a<this._bufferViewIds.length;++a){let c=this._bufferViewIds[a],l=this._bufferViewLoaders[a];if(!l.isDestroyed()){let u=new Uint8Array(l.typedArray);r[c]=u}}let s={};for(let a=0;a<this._textureIds.length;++a){let c=this._textureIds[a],l=t[a];l.isDestroyed()||(s[c]=l.texture)}return d(this._extension)?this._structuralMetadata=sW({extension:this._extension,schema:o,bufferViews:r,textures:s,generateUniqueId:this._generateUniqueId}):this._structuralMetadata=aW({extension:this._extensionLegacy,schema:o,bufferViews:r,textures:s}),Kbe(this),this._state=Xt.READY,!0};function Kbe(e){let t=e._bufferViewLoaders,n=t.length;for(let i=0;i<n;++i)ji.unload(t[i]);e._bufferViewLoaders.length=0,e._bufferViewIds.length=0}function C7e(e){let t=e._textureLoaders,n=t.length;for(let i=0;i<n;++i)ji.unload(t[i]);e._textureLoaders.length=0,e._textureIds.length=0}kx.prototype.unload=function(){Kbe(this),C7e(this),d(this._schemaLoader)&&ji.unload(this._schemaLoader),this._schemaLoader=void 0,this._structuralMetadata=void 0};var ZW=kx;var T4n=S(C(),1);var pZ={TRANSLATION:"TRANSLATION",ROTATION:"ROTATION",SCALE:"SCALE",FEATURE_ID:"_FEATURE_ID"};pZ.fromGltfSemantic=function(e){let t=e,i=/^(\w+)_\d+$/.exec(e);switch(i!==null&&(t=i[1]),t){case"TRANSLATION":return pZ.TRANSLATION;case"ROTATION":return pZ.ROTATION;case"SCALE":return pZ.SCALE;case"_FEATURE_ID":return pZ.FEATURE_ID}};var kr=Object.freeze(pZ);var U4n=S(C(),1);var X4n=S(C(),1);var L7e=65534,V7e=255;function gY(e){e=g(e,g.EMPTY_OBJECT);let t=e.triangleIndices,n=e.outlineIndices,i=e.originalVertexCount;this._triangleIndices=t,this._originalVertexCount=i,this._edges=new Qbe(n,i),this._outlineCoordinatesTypedArray=void 0,this._extraVertices=[],Z7e(this)}Object.defineProperties(gY.prototype,{updatedTriangleIndices:{get:function(){return this._triangleIndices}},outlineCoordinates:{get:function(){return this._outlineCoordinatesTypedArray}}});function Z7e(e){let t=e._triangleIndices,n=e._edges,i=[],o=e._extraVertices,r=e._originalVertexCount,s={};for(let a=0;a<t.length;a+=3){let c=t[a],l=t[a+1],u=t[a+2],m=!1,f=m||n.hasEdge(c,l),b=m||n.hasEdge(l,u),p=m||n.hasEdge(u,c),x=Hbe(i,c,l,u,f,b,p);for(;d(x);){let T=s[x];if(!d(T)){T=r+o.length;let _=x;for(;_>=r;)_=o[_-r];o.push(_),s[x]=T}T>L7e&&(t instanceof Uint16Array||t instanceof Uint8Array)?t=new Uint32Array(t):T>V7e&&t instanceof Uint8Array&&(t=new Uint16Array(t)),x===c?(c=T,t[a]=T):x===l?(l=T,t[a+1]=T):(u=T,t[a+2]=T),x=Hbe(i,c,l,u,f,b,p)}}e._triangleIndices=t,e._outlineCoordinatesTypedArray=new Float32Array(i)}function Hbe(e,t,n,i,o,r,s){let a=s?1:0,c=o?1:0,l=0,u=Y7(e,t,a,c,l);if(u===0)return t;let m=0,f=o?1:0,b=r?1:0,p=Y7(e,n,m,f,b);if(p===0)return n;let x=s?1:0,T=0,_=r?1:0,L=Y7(e,i,x,T,_);if(L===0)return i;let V=u&p&L,Z,G,I;if(V&1)Z=0,G=1,I=2;else if(V&2)Z=0,I=1,G=2;else if(V&4)G=0,Z=1,I=2;else if(V&8)G=0,I=1,Z=2;else if(V&16)I=0,Z=1,G=2;else if(V&32)I=0,G=1,Z=2;else{let N=B7(u),y=B7(p),R=B7(L);return N<y&&N<R?t:y<R?n:i}let w=t*3;e[w+Z]=a,e[w+G]=c,e[w+I]=l;let W=n*3;e[W+Z]=m,e[W+G]=f,e[W+I]=b;let v=i*3;e[v+Z]=x,e[v+G]=T,e[v+I]=_}function Y7(e,t,n,i,o){let r=t*3,s=e[r],a=e[r+1],c=e[r+2];return d(s)?(s===n&&a===i&&c===o)<<0|(s===n&&a===o&&c===i)<<1|(s===i&&a===n&&c===o)<<2|(s===i&&a===o&&c===n)<<3|(s===o&&a===n&&c===i)<<4|(s===o&&a===i&&c===n)<<5:63}function B7(e){return(e&1)+(e>>1&1)+(e>>2&1)+(e>>3&1)+(e>>4&1)+(e>>5&1)}gY.prototype.updateAttribute=function(e){let t=this._extraVertices,n=e.length,i=n/this._originalVertexCount,o=t.length,r=e.constructor,s=new r(e.length+o*i);s.set(e);for(let a=0;a<o;a++){let c=t[a]*i,l=n+a*i;for(let u=0;u<i;u++)s[l+u]=s[c+u]}return s};gY.createTexture=function(e){let t=e.cache.modelOutliningCache;if(d(t)||(t=e.cache.modelOutliningCache={}),d(t.outlineTexture))return t.outlineTexture;let n=Math.min(4096,qt.maximumTextureSize),i=n,o=Jbe(i),r=[];for(;i>1;)i>>=1,r.push(Jbe(i));let s=new it({context:e,source:{arrayBufferView:o,mipLevels:r},width:n,height:1,pixelFormat:Ye.LUMINANCE,sampler:new un({wrapS:Nn.CLAMP_TO_EDGE,wrapT:Nn.CLAMP_TO_EDGE,minificationFilter:gn.LINEAR_MIPMAP_LINEAR,magnificationFilter:Ri.LINEAR})});return t.outlineTexture=s,s};function Jbe(e){let t=new Uint8Array(e);return t[e-1]=192,e===8?t[e-1]=96:e===4?t[e-1]=48:e===2?t[e-1]=24:e===1&&(t[e-1]=12),t}function Qbe(e,t){this._originalVertexCount=t,this._edges=new Set;for(let n=0;n<e.length;n+=2){let i=e[n],o=e[n+1],r=Math.min(i,o),s=Math.max(i,o),a=r*this._originalVertexCount+s;this._edges.add(a)}}Qbe.prototype.hasEdge=function(e,t){let n=Math.min(e,t),i=Math.max(e,t),o=n*this._originalVertexCount+i;return this._edges.has(o)};var uS=gY;function jbe(e){this.attribute=e,this.loadBuffer=!1,this.loadTypedArray=!1}function R7e(e){this.indices=e,this.loadBuffer=!1,this.loadTypedArray=!1}function xY(e){this.primitive=e,this.attributePlans=[],this.indicesPlan=void 0,this.needsOutlines=!1,this.outlineIndices=void 0}xY.prototype.postProcess=function(e){this.needsOutlines&&(G7e(this),I7e(this,e))};function G7e(e){let t=e.primitive,n=t.indices,i=t.attributes[0].count,o=new uS({triangleIndices:n.typedArray,outlineIndices:e.outlineIndices,originalVertexCount:i});n.typedArray=o.updatedTriangleIndices,n.indexDatatype=qe.fromTypedArray(n.typedArray);let r=E7e(o.outlineCoordinates),s=new jbe(r);s.loadBuffer=!0,s.loadTypedArray=!1,e.attributePlans.push(s),t.outlineCoordinates=s.attribute;let a=e.attributePlans,c=e.attributePlans.length;for(let l=0;l<c;l++){let u=a[l].attribute;u.typedArray=o.updateAttribute(u.typedArray)}}function E7e(e){let t=new hn.Attribute;return t.name="_OUTLINE_COORDINATES",t.typedArray=e,t.componentDatatype=H.FLOAT,t.type=kt.VEC3,t.normalized=!1,t.count=e.length/3,t}function I7e(e,t){X7e(e.attributePlans,t),d(e.indicesPlan)&&M7e(e.indicesPlan,t)}function X7e(e,t){let n=e.length;for(let i=0;i<n;i++){let o=e[i],r=o.attribute,s=r.typedArray;if(o.loadBuffer){let a=nt.createVertexBuffer({typedArray:s,context:t,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,r.buffer=a}o.loadTypedArray||(r.typedArray=void 0)}}function M7e(e,t){let n=e.indices;if(e.loadBuffer){let i=nt.createIndexBuffer({typedArray:n.typedArray,context:t,usage:Me.STATIC_DRAW,indexDatatype:n.indexDatatype});n.buffer=i,i.vertexArrayDestroyable=!1}e.loadTypedArray||(n.typedArray=void 0)}xY.AttributeLoadPlan=jbe;xY.IndicesLoadPlan=R7e;var mS=xY;var Y4n=S(C(),1);function w7e(e){e=g(e,g.EMPTY_OBJECT),this.webp=g(e.webp,!1),this.basis=g(e.basis,!1)}var RW=w7e;var hJn=S(C(),1);var O4n=S(C(),1);function qbe(e){this._position=e.position,this._adjustmentParams=e.adjustmentParams}Object.defineProperties(qbe.prototype,{position:{get:function(){return this._position}},adjustmentParams:{get:function(){return this._adjustmentParams}}});var GW=qbe;var H4n=S(C(),1);function $be(e){this._position=e.position,this._adjustmentParams=e.adjustmentParams,this._covarianceMatrix=e.covarianceMatrix}Object.defineProperties($be.prototype,{position:{get:function(){return this._position}},adjustmentParams:{get:function(){return this._adjustmentParams}},covarianceMatrix:{get:function(){return this._covarianceMatrix}}});var EW=$be;var Q4n=S(C(),1);function eye(e){this._groupFlags=e.groupFlags,this._rotationThetas=e.rotationThetas,this._params=e.params}Object.defineProperties(eye.prototype,{groupFlags:{get:function(){return this._groupFlags}},rotationThetas:{get:function(){return this._rotationThetas}},params:{get:function(){return this._params}}});var IW=eye;var eJn=S(C(),1);var q4n=S(C(),1),W7e={Direct:"Direct",Indirect:"Indirect"},zx=Object.freeze(W7e);function tye(e){this._storageType=e.storageType,this._anchorPointsIndirect=e.anchorPointsIndirect,this._anchorPointsDirect=e.anchorPointsDirect,this._intraTileCorrelationGroups=e.intraTileCorrelationGroups,this._covarianceDirect=e.covarianceDirect}Object.defineProperties(tye.prototype,{storageType:{get:function(){return this._storageType}},anchorPointsIndirect:{get:function(){return this._anchorPointsIndirect}},anchorPointsDirect:{get:function(){return this._anchorPointsDirect}},intraTileCorrelationGroups:{get:function(){return this._intraTileCorrelationGroups}},covarianceDirect:{get:function(){return this._covarianceDirect}}});var fZ=tye;var nJn=S(C(),1);function nye(e){this._A=e.A,this._alpha=e.alpha,this._beta=e.beta,this._T=e.T}Object.defineProperties(nye.prototype,{A:{get:function(){return this._A}},alpha:{get:function(){return this._alpha}},beta:{get:function(){return this._beta}},T:{get:function(){return this._T}}});var XW=nye;function bZ(){}function iye(e){return new $(e[0],e[1],e[3],e[1],e[2],e[4],e[3],e[4],e[5])}function P7e(e){let t=h.fromArray(e.position,0,new h),n=h.fromArray(e.adjustmentParams,0,new h);return new GW({position:t,adjustmentParams:n})}function v7e(e){let t=h.fromArray(e.position,0,new h),n=h.fromArray(e.adjustmentParams,0,new h),i=iye(e.covarianceMatrix);return new EW({position:t,adjustmentParams:n,covarianceMatrix:i})}function N7e(e){let t=e.groupFlags,n=h.fromArray(e.rotationThetas,0,new h),i=[];for(let r of e.params){let s=new XW({A:r.A,alpha:r.alpha,beta:r.beta,T:r.T});i.push(s)}return new IW({groupFlags:t,rotationThetas:n,params:i})}bZ.load=function(e){let t=e.storageType;if(t===zx.Direct)return bZ.loadDirect(e);if(t===zx.Indirect)return bZ.loadIndirect(e);throw new le(`Invalid storage type in NGA_gpm_local - expected 'Direct' or 'Indirect', but found ${t}`)};bZ.loadDirect=function(e){let t=[],n=e.anchorPointsDirect;for(let r of n){let s=P7e(r);t.push(s)}let i=iye(e.covarianceDirectUpperTriangle);return new fZ({storageType:zx.Direct,anchorPointsDirect:t,covarianceDirect:i})};bZ.loadIndirect=function(e){let t=[],n=e.anchorPointsIndirect;for(let s of n){let a=v7e(s);t.push(a)}let i=e.intraTileCorrelationGroups,o=[];for(let s of i){let a=N7e(s);o.push(a)}return new fZ({storageType:zx.Indirect,anchorPointsIndirect:t,intraTileCorrelationGroups:o})};var MW=bZ;var MJn=S(C(),1);var fJn=S(C(),1);function oye(e){this._traits=e.traits,this._noData=e.noData,this._offset=e.offset,this._scale=e.scale,this._index=e.index,this._texCoord=e.texCoord}Object.defineProperties(oye.prototype,{traits:{get:function(){return this._traits}},noData:{get:function(){return this._noData}},offset:{get:function(){return this._offset}},scale:{get:function(){return this._scale}},index:{get:function(){return this._index}},texCoord:{get:function(){return this._texCoord}}});var wW=oye;var yJn=S(C(),1);function rye(e){this._min=e.min,this._max=e.max,this._source=e.source}Object.defineProperties(rye.prototype,{min:{get:function(){return this._min}},max:{get:function(){return this._max}},source:{get:function(){return this._source}}});var WW=rye;var xJn=S(C(),1);function sye(e){this._ppeTextures=e}Object.defineProperties(sye.prototype,{ppeTextures:{get:function(){return this._ppeTextures}}});var PW=sye;function Ss(e){e=g(e,g.EMPTY_OBJECT);let t=e.gltf,n=e.extension,i=e.gltfResource,o=e.baseResource,r=e.supportedImageFormats,s=e.frameState,a=e.cacheKey,c=g(e.asynchronous,!0);this._gltfResource=i,this._baseResource=o,this._gltf=t,this._extension=n,this._supportedImageFormats=r,this._frameState=s,this._cacheKey=a,this._asynchronous=c,this._textureLoaders=[],this._textureIds=[],this._meshPrimitiveGpmLocal=void 0,this._structuralMetadata=void 0,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Ss.prototype=Object.create(vi.prototype),Ss.prototype.constructor=Ss);Object.defineProperties(Ss.prototype,{cacheKey:{get:function(){return this._cacheKey}},meshPrimitiveGpmLocal:{get:function(){return this._meshPrimitiveGpmLocal}},structuralMetadata:{get:function(){return this._structuralMetadata}}});Ss.prototype._loadResources=async function(){try{return await this._loadTextures(),this.isDestroyed()?void 0:(this._gltf=void 0,this._state=Xt.LOADED,this)}catch(e){if(this.isDestroyed())return;throw this.unload(),this._state=Xt.FAILED,this.getError("Failed to load GPM data",e)}};Ss.prototype.load=function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,this._promise=this._loadResources(this),this._promise)};function F7e(e){let t={},n=e.ppeTextures;if(d(n))for(let i=0;i<n.length;i++){let o=n[i];t[o.index]=o}return t}Ss.prototype._loadTextures=function(){let e;d(this._extension)&&(e=F7e(this._extension));let t=this._gltf,n=this._gltfResource,i=this._baseResource,o=this._supportedImageFormats,r=this._frameState,s=this._asynchronous,a=[];for(let c in e)if(e.hasOwnProperty(c)){let l=ji.getTextureLoader({gltf:t,textureInfo:e[c],gltfResource:n,baseResource:i,supportedImageFormats:o,frameState:r,asynchronous:s});this._textureLoaders.push(l),this._textureIds.push(c),a.push(l.load())}return Promise.all(a)};Ss.ppeTexturesMetadataSchemaCache=new Map;Ss._createPpeTextureClassJson=function(e,t){let n=e.traits,i=n.source;return{name:`PPE texture class ${t}`,properties:{[i]:{name:"PPE",type:"SCALAR",componentType:"UINT8",normalized:!0,min:n.min,max:n.max}}}};Ss._obtainPpeTexturesMetadataSchema=function(e){let n=Ss._collectPpeTexturePropertyIdentifiers(e).toString(),i=Ss.ppeTexturesMetadataSchemaCache.get(n);if(d(i))return i;let r={id:`PPE_TEXTURE_SCHEMA_${Ss.ppeTexturesMetadataSchemaCache.size}`,classes:{}},s=e.ppeTextures;for(let a=0;a<s.length;a++){let c=s[a],l=`ppeTexture_${a}`,u=Ss._createPpeTextureClassJson(c,a);r.classes[l]=u}return i=Rl.fromJson(r),Ss.ppeTexturesMetadataSchemaCache.set(n,i),i};Ss._collectPpeTexturePropertyIdentifiers=function(e){let t=[],n=e.ppeTextures;for(let i=0;i<n.length;i++){let o=n[i],r=Ss._createPpeTextureClassJson(o,i),s=JSON.stringify(r);t.push(s)}return t};Ss._convertToStructuralMetadata=function(e,t){let n=[],i=Ss._obtainPpeTexturesMetadataSchema(e),o=e.ppeTextures;for(let s=0;s<o.length;s++){let a=o[s],c=`ppeTexture_${s}`,u=a.traits.source,m=i.classes[c],f=(a.scale??1)*255,b={class:c,properties:{[u]:{index:a.index,texCoord:a.texCoord,offset:a.offset,scale:f}}};n.push(new my({id:s,name:a.name,propertyTexture:b,class:m,textures:t}))}return new mr({schema:i,propertyTables:[],propertyTextures:n,propertyAttributes:[]})};Ss.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED)return!1;let t=this._textureLoaders,n=t.length,i=!0;for(let l=0;l<n;++l){let m=t[l].process(e);i=i&&m}if(!i)return!1;let o={};for(let l=0;l<this._textureIds.length;++l){let u=this._textureIds[l],m=t[l];m.isDestroyed()||(o[u]=m.texture)}let r=[],s=this._extension;if(d(s.ppeTextures)){let l=s.ppeTextures;for(let u of l){let m=u.traits,f=new WW({min:m.min,max:m.max,source:m.source}),b=new wW({traits:f,noData:u.noData,offset:u.offset,scale:u.scale,index:u.index,texCoord:u.texCoord});r.push(b)}}let a=new PW(r);this._meshPrimitiveGpmLocal=a;let c=Ss._convertToStructuralMetadata(a,o);return this._structuralMetadata=c,this._state=Xt.READY,!0};Ss.prototype._unloadTextures=function(){let e=this._textureLoaders,t=e.length;for(let n=0;n<t;++n)ji.unload(e[n]);this._textureLoaders.length=0,this._textureIds.length=0};Ss.prototype.unload=function(){this._unloadTextures(),this._gltf=void 0,this._extension=void 0,this._structuralMetadata=void 0};var vW=Ss;var{Attribute:A7e,Indices:D7e,FeatureIdAttribute:H7,FeatureIdTexture:aye,FeatureIdImplicitRange:cye,MorphTarget:U7e,Primitive:k7e,Instances:z7e,Skin:Y7e,Node:B7e,AnimatedPropertyType:O7e,AnimationSampler:K7e,AnimationTarget:H7e,AnimationChannel:J7e,Animation:Q7e,ArticulationStage:j7e,Articulation:q7e,Asset:$7e,Scene:e6e,Components:t6e,MetallicRoughness:n6e,SpecularGlossiness:i6e,Specular:o6e,Anisotropy:O7,Clearcoat:K7,Material:r6e}=hn,Pr={NOT_LOADED:0,LOADING:1,LOADED:2,PROCESSING:3,POST_PROCESSING:4,PROCESSED:5,READY:6,FAILED:7,UNLOADED:8};function Zp(e){e=g(e,g.EMPTY_OBJECT);let{gltfResource:t,typedArray:n,releaseGltfJson:i=!1,asynchronous:o=!0,incrementallyLoadTextures:r=!0,upAxis:s=In.Y,forwardAxis:a=In.Z,loadAttributesAsTypedArray:c=!1,loadAttributesFor2D:l=!1,enablePick:u=!1,loadIndicesForWireframe:m=!1,loadPrimitiveOutline:f=!0,loadForClassification:b=!1,renameBatchIdSemantic:p=!1,tilesetVersion:x,fillClip:T,hasSectionGeometry:_,generateUniqueId:L}=e,{baseResource:V=t.clone()}=e;this._gltfJson=e.gltfJson,this._gltfResource=t,this._baseResource=V,this._typedArray=n,this._releaseGltfJson=i,this._asynchronous=o,this._incrementallyLoadTextures=r,this._upAxis=s,this._forwardAxis=a,this._loadAttributesAsTypedArray=c,this._loadAttributesFor2D=l,this._enablePick=u,this._loadIndicesForWireframe=m,this._loadPrimitiveOutline=f,this._loadForClassification=b,this._renameBatchIdSemantic=p,this._tilesetVersion=x,this._fillClip=T,this._hasSectionGeometry=_,this._generateUniqueId=L,this._sortedPropertyTableIds=void 0,this._sortedFeatureTextureIds=void 0,this._gltfJsonLoader=void 0,this._state=Pr.NOT_LOADED,this._textureState=Pr.NOT_LOADED,this._promise=void 0,this._processError=void 0,this._textureErrors=[],this._primitiveLoadPlans=[],this._loaderPromises=[],this._textureLoaders=[],this._texturesPromises=[],this._textureCallbacks=[],this._bufferViewLoaders=[],this._geometryLoaders=[],this._geometryCallbacks=[],this._structuralMetadataLoader=void 0,this._meshPrimitiveGpmLoader=void 0,this._loadResourcesPromise=void 0,this._resourcesLoaded=!1,this._texturesLoaded=!1,this._supportedImageFormats=void 0,this._postProcessBuffers=[],this._components=void 0}d(Object.create)&&(Zp.prototype=Object.create(vi.prototype),Zp.prototype.constructor=Zp);Object.defineProperties(Zp.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},gltfJson:{get:function(){return d(this._gltfJsonLoader)?this._gltfJsonLoader.gltf:this._gltfJson}},incrementallyLoadTextures:{get:function(){return this._incrementallyLoadTextures}},texturesLoaded:{get:function(){return this._texturesLoaded}}});async function s6e(e){e._state=Pr.LOADING,e._textureState=Pr.LOADING;try{let t=ji.getGltfJsonLoader({gltfResource:e._gltfResource,baseResource:e._baseResource,typedArray:e._typedArray,gltfJson:e._gltfJson});return e._gltfJsonLoader=t,await t.load(),e.isDestroyed()||e.isUnloaded()||t.isDestroyed()?void 0:(e._state=Pr.LOADED,e._textureState=Pr.LOADED,e)}catch(t){if(e.isDestroyed())return;e._state=Pr.FAILED,e._textureState=Pr.FAILED,TY(e,t)}}async function a6e(e,t){bn.supportsWebP.initialized||await bn.supportsWebP.initialize(),e._supportedImageFormats=new RW({webp:bn.supportsWebP(),basis:t.context.supportsBasis});let n=dqe(e,t);return e._state=Pr.PROCESSING,e._textureState=Pr.PROCESSING,d(e._gltfJsonLoader)&&e._releaseGltfJson&&(ji.unload(e._gltfJsonLoader),e._gltfJsonLoader=void 0),n}Zp.prototype.load=async function(){return d(this._promise)?this._promise:(this._promise=s6e(this),this._promise)};function TY(e,t){throw e.unload(),e.getError("Failed to load glTF",t)}function c6e(e,t){let n=!0,i=e._geometryLoaders;for(let s=0;s<i.length;++s){let a=i[s].process(t);a&&d(e._geometryCallbacks[s])&&(e._geometryCallbacks[s](),e._geometryCallbacks[s]=void 0),n=n&&a}let o=e._structuralMetadataLoader;if(d(o)){let s=o.process(t);s&&(e._components.structuralMetadata=o.structuralMetadata),n=n&&s}let r=e._meshPrimitiveGpmLoader;if(d(r)){let s=r.process(t);s&&(d(e._components.structuralMetadata)&&Ft("structural-metadata-gpm","The model defines both the 'EXT_structural_metadata' extension and the 'NGA_gpm_local' extension. The data from the 'EXT_structural_metadata' extension will be replaced with the data from the 'NGA_gpm_local' extension, and will no longer be available for styling and picking."),e._components.structuralMetadata=r.structuralMetadata),n=n&&s}n&&(e._state=Pr.POST_PROCESSING)}function l6e(e,t){let n=e._primitiveLoadPlans;for(let i=0;i<n.length;i++){let o=n[i];o.postProcess(t),o.needsOutlines&&d6e(e,o)}}function d6e(e,t){let n=e._postProcessBuffers,i=t.primitive,o=i.outlineCoordinates;d(o)&&n.push(o.buffer);let r=i.attributes;for(let a=0;a<r.length;a++){let c=r[a];d(c.buffer)&&n.push(c.buffer)}let s=i.indices;d(s)&&d(s.buffer)&&n.push(s.buffer)}Zp.prototype._process=function(e){return this._state===Pr.READY?!0:(this._state===Pr.PROCESSING&&c6e(this,e),this._resourcesLoaded&&this._state===Pr.POST_PROCESSING&&(l6e(this,e.context),this._state=Pr.PROCESSED),this._resourcesLoaded&&this._state===Pr.PROCESSED?(yye(this),this._typedArray=void 0,this._state=Pr.READY,!0):!1)};Zp.prototype._processTextures=function(e){if(this._textureState===Pr.READY)return!0;if(this._textureState!==Pr.PROCESSING)return!1;let t=!0,n=this._textureLoaders;for(let i=0;i<n.length;++i){let o=n[i].process(e);o&&d(this._textureCallbacks[i])&&(this._textureCallbacks[i](),this._textureCallbacks[i]=void 0),t=t&&o}return t?(this._textureState=Pr.READY,this._texturesLoaded=!0,!0):!1};Zp.prototype.process=function(e){if(this._state===Pr.LOADED&&!d(this._loadResourcesPromise)&&(this._loadResourcesPromise=a6e(this,e).then(()=>{this._resourcesLoaded=!0}).catch(o=>{this._processError=o})),d(this._processError)){this._state=Pr.FAILED;let o=this._processError;this._processError=void 0,TY(this,o)}let t=this._textureErrors.pop();if(d(t)){let o=this.getError("Failed to load glTF texture",t);throw o.name="TextureError",o}if(this._state===Pr.FAILED)return!1;let n=!1;try{n=this._process(e)}catch(o){this._state=Pr.FAILED,TY(this,o)}let i=!1;try{i=this._processTextures(e)}catch(o){this._textureState=Pr.FAILED,TY(this,o)}return this._incrementallyLoadTextures?n:n&&i};function u6e(e,t,n,i,o,r,s){let a=e.gltfJson,l=a.accessors[t].bufferView;return ji.getVertexBufferLoader({gltf:a,gltfResource:e._gltfResource,baseResource:e._baseResource,frameState:s,bufferViewId:l,draco:i,attributeSemantic:n,accessorId:t,asynchronous:e._asynchronous,loadBuffer:o,loadTypedArray:r})}function m6e(e,t,n,i,o,r){return ji.getIndexBufferLoader({gltf:e.gltfJson,accessorId:t,gltfResource:e._gltfResource,baseResource:e._baseResource,frameState:r,draco:n,asynchronous:e._asynchronous,loadBuffer:i,loadTypedArray:o})}function h6e(e,t){let n=ji.getBufferViewLoader({gltf:e.gltfJson,bufferViewId:t,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._bufferViewLoaders.push(n),n}function lye(e,t,n){let i=t.byteOffset,o=qd(e,t),r=t.count,s=Du(t.type),a=t.componentType,c=H.getSizeInBytes(a),l=c*s,u=r*s;if(o===l)return n=new Uint8Array(n),H.createArrayBufferView(a,n.buffer,n.byteOffset+i,u);let m=H.createTypedArray(a,u),f=new DataView(n.buffer),b=new Array(s),p=dy(t.componentType);i=n.byteOffset+i;for(let x=0;x<r;++x){p(f,i,s,c,b);for(let T=0;T<s;++T)m[x*s+T]=b[T];i+=o}return m}function p6e(e,t){let n=e.type;if(n===kt.SCALAR)return t.fill(0);let i=kt.getMathType(n);return t.fill(i.clone(i.ZERO))}function f6e(e,t,n,i){let o=e.type,r=e.count;if(o===kt.SCALAR)for(let s=0;s<r;s++)n[s]=t[s];else if(o===kt.VEC4&&i)for(let s=0;s<r;s++)n[s]=Be.unpack(t,s*4);else{let s=kt.getMathType(o),a=kt.getNumberOfComponents(o);for(let c=0;c<r;c++)n[c]=s.unpack(t,c*a)}return n}async function b6e(e,t,n,i,o){let{gltfJson:r}=e;if(await t.load(),e.isDestroyed())return;let s=lye(r,n,t.typedArray);i=g(i,!1),f6e(n,s,o,i)}function _Y(e,t,n){let i=new Array(t.count),o=t.bufferView;if(d(o)){let r=h6e(e,o),s=b6e(e,r,t,n,i);return e._loaderPromises.push(s),i}return p6e(t,i)}function Uu(e,t){if(d(t))return e===Number?t[0]:e.unpack(t)}function y6e(e){return e===Number?0:new e}function g6e(e){switch(e){case H.BYTE:return 127;case H.UNSIGNED_BYTE:return 255;case H.SHORT:return 32767;case H.UNSIGNED_SHORT:return 65535;default:return 1}}var x6e={VEC2:new B(-1,-1),VEC3:new h(-1,-1,-1),VEC4:new re(-1,-1,-1,-1)};function T6e(e,t){let n=g6e(e.componentDatatype),i=x6e[e.type],o=e.min;d(o)&&(o=t.divideByScalar(o,n,o),o=t.maximumByComponent(o,i,o));let r=e.max;d(r)&&(r=t.divideByScalar(r,n,r),r=t.maximumByComponent(r,i,r)),e.min=o,e.max=r}function _6e(e,t,n){let i=e.decodeMatrix,o=Uu(n,e.decodedMin),r=Uu(n,e.decodedMax);d(o)&&d(r)&&(t.min=o,t.max=r);let s=new hn.Quantization;s.componentDatatype=t.componentDatatype,s.type=t.type,i.length===4?(s.quantizedVolumeOffset=i[2],s.quantizedVolumeStepSize=i[0]):i.length===9?(s.quantizedVolumeOffset=new B(i[6],i[7]),s.quantizedVolumeStepSize=new B(i[0],i[4])):i.length===16?(s.quantizedVolumeOffset=new h(i[12],i[13],i[14]),s.quantizedVolumeStepSize=new h(i[0],i[5],i[10])):i.length===25&&(s.quantizedVolumeOffset=new re(i[20],i[21],i[22],i[23]),s.quantizedVolumeStepSize=new re(i[0],i[6],i[12],i[18])),t.quantization=s}function S6e(e,t,n,i,o){let r=e.accessors[t],s=kt.getMathType(r.type),a=g(r.normalized,!1),c=new A7e;c.name=n,c.semantic=i,c.setIndex=o,c.constant=y6e(s),c.componentDatatype=r.componentType,c.normalized=a,c.count=r.count,c.type=r.type,c.min=Uu(s,r.min),c.max=Uu(s,r.max),c.byteOffset=r.byteOffset,c.byteStride=qd(e,r),Zi(r,"WEB3D_quantized_attributes")&&_6e(r.extensions.WEB3D_quantized_attributes,c,s);let l=c.semantic===ut.POSITION||c.semantic===ut.NORMAL||c.semantic===ut.TANGENT||c.semantic===ut.TEXCOORD;return e.extensionsRequired?.includes("KHR_mesh_quantization")&&a&&l&&T6e(c,s),c}function dye(e){let n=/^\w+_(\d+)$/.exec(e);if(n!==null)return parseInt(n[1])}var C6e={gltfSemantic:void 0,renamedSemantic:void 0,modelSemantic:void 0};function J7(e,t,n){let i=n;(e._renameBatchIdSemantic&&(n==="_BATCHID"||n==="BATCHID")||n==="_OID")&&(i="_FEATURE_ID_0");let o=t.fromGltfSemantic(i),r=C6e;return r.gltfSemantic=n,r.renamedSemantic=i,r.modelSemantic=o,r}function L6e(e){let t=e===ut.POSITION,n=e===ut.FEATURE_ID,i=e===ut.TEXCOORD;return t||n||i}function V6e(e,t,n,i){if(e.byteOffset=0,e.byteStride=void 0,e.quantization=t.quantization,n&&(e.buffer=t.buffer),i){let o=d(t.quantization)?t.quantization.componentDatatype:e.componentDatatype;e.typedArray=H.createArrayBufferView(o,t.typedArray.buffer)}}function Z6e(e,t,n,i,o,r){if(o&&(n.buffer=i.buffer),r){let s=i.typedArray;n.typedArray=lye(e,t,s),o||(n.byteOffset=0,n.byteStride=void 0)}}function uye(e,t,n,i,o,r,s){(e._fillClip||e._hasSectionGeometry)&&(r=!0);let a=e.gltfJson,c=a.accessors[t],l=c.bufferView,u=n.gltfSemantic,m=n.renamedSemantic,f=n.modelSemantic,b=d(f)?dye(m):void 0,x=S6e(a,t,u,f,b);if(!d(i)&&!d(l))return x;let T=u6e(e,t,u,i,o,r,s),_=e._geometryLoaders.length;e._geometryLoaders.push(T);let L=T.load();return e._loaderPromises.push(L),e._geometryCallbacks[_]=()=>{d(i)&&d(i.attributes)&&d(i.attributes[u])?V6e(x,T,o,r):Z6e(a,c,x,T,o,r)},x}function mye(e,t,n,i,o,r,s){let a=n.modelSemantic,c=a===ut.POSITION,l=a===ut.FEATURE_ID,u=c&&!o&&e._loadAttributesFor2D&&!s.scene3DOnly,m=c&&e._enablePick&&!s.context.webgl2,f=e._loadForClassification&&l,b=e._loadAttributesAsTypedArray,p=!b,x=b||u||m||f,L=uye(e,t,n,i,r?!1:p,r?!0:x,s),V=new mS.AttributeLoadPlan(L);return V.loadBuffer=p,V.loadTypedArray=x,V}function R6e(e,t,n,i,o){let r=e.gltfJson.accessors,s=d(n.ROTATION),a=d(n.TRANSLATION)&&d(r[n.TRANSLATION].min)&&d(r[n.TRANSLATION].max),c=J7(e,kr,i),l=c.modelSemantic,u=l===kr.TRANSLATION||l===kr.ROTATION||l===kr.SCALE,m=l===kr.TRANSLATION,f=e._loadAttributesAsTypedArray||s&&u||!o.context.instancedArrays,b=e._enablePick&&!o.context.webgl2,p=!f,x=e._loadAttributesFor2D&&!o.scene3DOnly;return uye(e,t,c,void 0,p,f||m&&(!a||x||b),o)}function G6e(e,t,n,i,o,r){let s=e.gltfJson.accessors[t],a=s.bufferView;if(!d(n)&&!d(a))return;let c=new D7e;c.count=s.count;let l=e._loadAttributesAsTypedArray,u=(e._loadIndicesForWireframe||e._enablePick)&&!r.context.webgl2,m=e._loadForClassification&&i,b=!l,p=l||u||m,_=m6e(e,t,n,o?!1:b,o?!0:p,r),L=e._geometryLoaders.length;e._geometryLoaders.push(_);let V=_.load();e._loaderPromises.push(V),e._geometryCallbacks[L]=()=>{c.indexDatatype=_.indexDatatype,c.buffer=_.buffer,c.typedArray=_.typedArray};let Z=new mS.IndicesLoadPlan(c);return Z.loadBuffer=b,Z.loadTypedArray=p,Z}function cd(e,t,n,i){let o=e.gltfJson,r=$d.getImageIdFromTexture({gltf:o,textureId:t.index,supportedImageFormats:e._supportedImageFormats});if(!d(r))return;let s=ji.getTextureLoader({gltf:o,textureInfo:t,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:e._supportedImageFormats,frameState:n,asynchronous:e._asynchronous}),a=$d.createModelTextureReader({textureInfo:t}),c=e._textureLoaders.length;e._textureLoaders.push(s);let l=s.load().catch(u=>{if(!e.isDestroyed()){if(!e._incrementallyLoadTextures)throw u;e._textureState=Pr.FAILED,e._textureErrors.push(u)}});return e._texturesPromises.push(l),e._textureCallbacks[c]=()=>{a.texture=s.texture,d(i)&&(a.texture.sampler=i)},a}function E6e(e,t,n){let{diffuseTexture:i,specularGlossinessTexture:o,diffuseFactor:r,specularFactor:s,glossinessFactor:a}=t,c=new i6e;return d(i)&&(c.diffuseTexture=cd(e,i,n)),d(o)&&(c.specularGlossinessTexture=cd(e,o,n)),c.diffuseFactor=Uu(re,r),c.specularFactor=Uu(h,s),c.glossinessFactor=a,c}function I6e(e,t,n){let{baseColorTexture:i,metallicRoughnessTexture:o,baseColorFactor:r,metallicFactor:s,roughnessFactor:a}=t,c=new n6e;return d(i)&&(c.baseColorTexture=cd(e,i,n)),d(o)&&(c.metallicRoughnessTexture=cd(e,o,n)),c.baseColorFactor=Uu(re,r),c.metallicFactor=s,c.roughnessFactor=a,c}function X6e(e,t,n){let{specularFactor:i,specularTexture:o,specularColorFactor:r,specularColorTexture:s}=t,a=new o6e;return d(o)&&(a.specularTexture=cd(e,o,n)),d(s)&&(a.specularColorTexture=cd(e,s,n)),a.specularFactor=i,a.specularColorFactor=Uu(h,r),a}function M6e(e,t,n){let{anisotropyStrength:i=O7.DEFAULT_ANISOTROPY_STRENGTH,anisotropyRotation:o=O7.DEFAULT_ANISOTROPY_ROTATION,anisotropyTexture:r}=t,s=new O7;return d(r)&&(s.anisotropyTexture=cd(e,r,n)),s.anisotropyStrength=i,s.anisotropyRotation=o,s}function w6e(e,t,n){let{clearcoatFactor:i=K7.DEFAULT_CLEARCOAT_FACTOR,clearcoatTexture:o,clearcoatRoughnessFactor:r=K7.DEFAULT_CLEARCOAT_ROUGHNESS_FACTOR,clearcoatRoughnessTexture:s,clearcoatNormalTexture:a}=t,c=new K7;return d(o)&&(c.clearcoatTexture=cd(e,o,n)),d(s)&&(c.clearcoatRoughnessTexture=cd(e,s,n)),d(a)&&(c.clearcoatNormalTexture=cd(e,a,n)),c.clearcoatFactor=i,c.clearcoatRoughnessFactor=r,c}function W6e(e,t,n){let i=new r6e,o=g(t.extensions,g.EMPTY_OBJECT),r=o.KHR_materials_pbrSpecularGlossiness,s=o.KHR_materials_specular,a=o.KHR_materials_anisotropy,c=o.KHR_materials_clearcoat,l=t.pbrMetallicRoughness;return i.unlit=d(o.KHR_materials_unlit),d(r)?i.specularGlossiness=E6e(e,r,n):(d(l)&&(i.metallicRoughness=I6e(e,l,n)),d(s)&&!i.unlit&&(i.specular=X6e(e,s,n)),d(a)&&!i.unlit&&(i.anisotropy=M6e(e,a,n)),d(c)&&!i.unlit&&(i.clearcoat=w6e(e,c,n))),d(t.emissiveTexture)&&(i.emissiveTexture=cd(e,t.emissiveTexture,n)),d(t.normalTexture)&&!e._loadForClassification&&(i.normalTexture=cd(e,t.normalTexture,n)),d(t.occlusionTexture)&&(i.occlusionTexture=cd(e,t.occlusionTexture,n)),i.emissiveFactor=Uu(h,t.emissiveFactor),i.alphaMode=t.alphaMode,i.alphaCutoff=t.alphaCutoff,i.doubleSided=t.doubleSided,i}function hye(e,t){let n=new H7;return n.featureCount=e.featureCount,n.nullFeatureId=e.nullFeatureId,n.propertyTableId=e.propertyTable,n.setIndex=e.attribute,n.label=e.label,n.positionalLabel=t,n}function pye(e,t,n,i){let o=new H7,r=e.featureIds;return o.featureCount=n,o.propertyTableId=t,o.setIndex=dye(r.attribute),o.positionalLabel=i,o}function fye(e,t){let n=new cye;return n.propertyTableId=e.propertyTable,n.featureCount=e.featureCount,n.nullFeatureId=e.nullFeatureId,n.label=e.label,n.positionalLabel=t,n.offset=0,n.repeat=1,n}function bye(e,t,n,i){let o=new cye,r=e.featureIds;o.propertyTableId=t,o.featureCount=n,o.offset=g(r.constant,0);let s=g(r.divisor,0);return o.repeat=s===0?void 0:s,o.positionalLabel=i,o}function P6e(e,t,n,i){let o=new aye;o.featureCount=t.featureCount,o.nullFeatureId=t.nullFeatureId,o.propertyTableId=t.propertyTable,o.label=t.label,o.positionalLabel=i;let r=t.texture;o.textureReader=cd(e,r,n,un.NEAREST);let a=(d(r.channels)?r.channels:[0]).map(function(c){return"rgba".charAt(c)}).join("");return o.textureReader.channels=a,o}function v6e(e,t,n,i,o,r){let s=new aye,a=t.featureIds,c=a.texture;return s.featureCount=o,s.propertyTableId=n,s.textureReader=cd(e,c,i,un.NEAREST),s.textureReader.channels=a.channels,s.positionalLabel=r,s}function N6e(e,t,n,i,o){let r=new U7e,s=void 0,a=!1;for(let c in t){if(!t.hasOwnProperty(c))continue;let l=t[c],u=J7(e,ut,c),m=mye(e,l,u,s,a,n,o);r.attributes.push(m.attribute),i.attributePlans.push(m)}return r}function F6e(e,t,n,i){let o=new k7e,r=new mS(o);e._primitiveLoadPlans.push(r);let s=t.material;d(s)&&(o.material=W6e(e,e.gltfJson.materials[s],i));let a=g(t.extensions,g.EMPTY_OBJECT),c=!1,l=a.CESIUM_primitive_outline;e._loadPrimitiveOutline&&d(l)&&(c=!0,r.needsOutlines=!0,r.outlineIndices=A6e(e,l,r));let u=e._loadForClassification,m=a.KHR_draco_mesh_compression,f=!1,b=t.attributes;if(d(b))for(let G in b){if(!b.hasOwnProperty(G))continue;let I=b[G];if(e._tilesetVersion==="2.0"&&(G==="_BATCHID"||G==="BATCHID"))continue;let w=J7(e,ut,G),W=w.modelSemantic;if(u&&!L6e(W))continue;W===ut.FEATURE_ID&&(f=!0);let v=mye(e,I,w,m,n,c,i);r.attributePlans.push(v),o.attributes.push(v.attribute)}let p=t.targets;if(d(p)&&!u)for(let G=0;G<p.length;++G)o.morphTargets.push(N6e(e,p[G],c,r,i));let x=t.indices;if(d(x)){let G=G6e(e,x,m,f,c,i);d(G)&&(r.indicesPlan=G,o.indices=G.indices)}let T=a.EXT_structural_metadata,_=a.EXT_mesh_features,L=a.EXT_feature_metadata,V=d(L);d(_)?D6e(e,o,_,i):V&&U6e(e,o,L,i),d(T)?k6e(o,T):V&&z6e(e,o,L);let Z=t.mode;if(u&&Z!==Fe.TRIANGLES)throw new le("Only triangle meshes can be used for classification.");return o.primitiveType=Z,o}function A6e(e,t){let n=t.indices,i=e.gltfJson.accessors[n];return _Y(e,i,!1)}function D6e(e,t,n,i){let o;d(n)&&d(n.featureIds)?o=n.featureIds:o=[];for(let r=0;r<o.length;r++){let s=o[r],a=`featureId_${r}`,c;d(s.texture)?c=P6e(e,s,i,a):d(s.attribute)?c=hye(s,a):c=fye(s,a),t.featureIds.push(c)}}function U6e(e,t,n,i){let{featureTables:o}=e.gltfJson.extensions.EXT_feature_metadata,r=0,s=n.featureIdAttributes;if(d(s))for(let c=0;c<s.length;++c){let l=s[c],u=l.featureTable,m=e._sortedPropertyTableIds.indexOf(u),f=o[u].count,b=`featureId_${r}`;r++;let p;d(l.featureIds.attribute)?p=pye(l,m,f,b):p=bye(l,m,f,b),t.featureIds.push(p)}let a=n.featureIdTextures;if(d(a))for(let c=0;c<a.length;++c){let l=a[c],u=l.featureTable,m=e._sortedPropertyTableIds.indexOf(u),f=o[u].count,b=`featureId_${r}`;r++;let p=v6e(e,l,m,i,f,b);t.featureIds.push(p)}}function k6e(e,t){d(t)&&(d(t.propertyTextures)&&(e.propertyTextureIds=t.propertyTextures),d(t.propertyAttributes)&&(e.propertyAttributeIds=t.propertyAttributes))}function z6e(e,t,n){d(n.featureTextures)&&(t.propertyTextureIds=n.featureTextures.map(function(i){return e._sortedFeatureTextureIds.indexOf(i)}))}function Y6e(e,t,n){let i=t.EXT_mesh_gpu_instancing,o=new z7e,r=i.attributes;if(d(r))for(let l in r){if(!r.hasOwnProperty(l))continue;let u=r[l];o.attributes.push(R6e(e,u,r,l,n))}let s=g(i.extensions,g.EMPTY_OBJECT),a=t.EXT_instance_features,c=s.EXT_feature_metadata;if(e._tilesetVersion==="2.2"&&d(i)){let l=new H7;l.propertyTableId=0,l.setIndex=0,l.positionalLabel="instanceFeatureId_0",o.featureIds.push(l)}return d(a)?B6e(o,a):d(c)&&O6e(e.gltfJson,o,c,e._sortedPropertyTableIds),o}function B6e(e,t){let n=t.featureIds;for(let i=0;i<n.length;i++){let o=n[i],r=`instanceFeatureId_${i}`,s;d(o.attribute)?s=hye(o,r):s=fye(o,r),e.featureIds.push(s)}}function O6e(e,t,n,i){let o=e.extensions.EXT_feature_metadata.featureTables,r=n.featureIdAttributes;if(d(r))for(let s=0;s<r.length;++s){let a=r[s],c=a.featureTable,l=i.indexOf(c),u=o[c].count,m=`instanceFeatureId_${s}`,f;d(a.featureIds.attribute)?f=pye(a,l,u,m):f=bye(a,l,u,m),t.featureIds.push(f)}}function K6e(e,t,n){let i=new B7e;i.name=t.name,i.matrix=Uu(P,t.matrix),i.translation=Uu(h,t.translation),i.rotation=Uu(Be,t.rotation),i.scale=Uu(h,t.scale);let o=g(t.extensions,g.EMPTY_OBJECT),r=o.EXT_mesh_gpu_instancing,s=o.AGI_articulations;if(d(r)){if(e._loadForClassification)throw new le("Models with the EXT_mesh_gpu_instancing extension cannot be used for classification.");i.instances=Y6e(e,o,n)}d(s)&&(i.articulationName=s.articulationName);let a=t.mesh;if(d(a)){let c=e.gltfJson.meshes[a],l=c.primitives;for(let f=0;f<l.length;++f)i.primitives.push(F6e(e,l[f],d(i.instances),n));let u=g(t.weights,c.weights),m=i.primitives[0].morphTargets;i.morphWeights=d(u)?u.slice():new Array(m.length).fill(0)}return i}function H6e(e,t){let n=e.gltfJson.nodes;if(!d(n))return[];let i=n.map(function(o,r){let s=K6e(e,o,t);return s.index=r,s});for(let o=0;o<i.length;++o){let r=n[o].children;if(d(r))for(let s=0;s<r.length;++s)i[o].children.push(i[r[s]])}return i}function J6e(e,t,n){let i=new Y7e,o=t.joints;i.joints=o.map(s=>n[s]);let r=t.inverseBindMatrices;if(d(r)){let s=e.gltfJson.accessors[r];i.inverseBindMatrices=_Y(e,s)}else i.inverseBindMatrices=new Array(o.length).fill(P.IDENTITY);return i}function Q6e(e,t){let n=e.gltfJson.skins;if(e._loadForClassification||!d(n))return[];let i=n.map(function(r,s){let a=J6e(e,r,t);return a.index=s,a}),o=e.gltfJson.nodes;for(let r=0;r<t.length;++r){let s=o[r].skin;d(s)&&(t[r].skin=i[s])}return i}async function j6e(e,t,n,i){let o=new ZW({gltf:e.gltfJson,extension:t,extensionLegacy:n,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:e._supportedImageFormats,frameState:i,asynchronous:e._asynchronous,generateUniqueId:e._generateUniqueId});return e._structuralMetadataLoader=o,o.load()}async function q6e(e,t,n,i){let o=new vW({gltf:t,extension:n,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:e._supportedImageFormats,frameState:i,asynchronous:e._asynchronous});return e._meshPrimitiveGpmLoader=o,o.load()}function $6e(e,t){let n=new K7e,i=e.gltfJson.accessors,o=i[t.input];n.input=_Y(e,o);let r=t.interpolation;n.interpolation=g(lp[r],lp.LINEAR);let s=i[t.output];return n.output=_Y(e,s,!0),n}function eqe(e,t){let n=new H7e,i=e.node;if(!d(i))return;n.node=t[i];let o=e.path.toUpperCase();return n.path=O7e[o],n}function tqe(e,t,n){let i=new J7e,o=e.sampler;return i.sampler=t[o],i.target=eqe(e.target,n),i}function nqe(e,t,n){let i=new Q7e;i.name=t.name;let o=t.samplers.map(function(s,a){let c=$6e(e,s);return c.index=a,c}),r=t.channels.map(function(s){return tqe(s,o,n)});return i.samplers=o,i.channels=r,i}function iqe(e,t){let n=e.gltfJson.animations;return e._loadForClassification||!d(n)?[]:n.map(function(o,r){let s=nqe(e,o,t);return s.index=r,s})}function oqe(e){let t=new j7e;t.name=e.name;let n=e.type.toUpperCase();return t.type=rl[n],t.minimumValue=e.minimumValue,t.maximumValue=e.maximumValue,t.initialValue=e.initialValue,t}function rqe(e){let t=new q7e;return t.name=e.name,t.stages=e.stages.map(oqe),t}function sqe(e){let n=g(e.extensions,g.EMPTY_OBJECT).AGI_articulations?.articulations;return d(n)?n.map(rqe):[]}function aqe(e){let t;return d(e.scenes)&&d(e.scene)&&(t=e.scenes[e.scene].nodes),t=g(t,e.nodes),t=d(t)?t:[],t}function cqe(e,t){let n=new e6e,i=aqe(e);return n.nodes=i.map(function(o){return t[o]}),n}var lqe=new h;function dqe(e,t){let n=e.gltfJson,i=g(n.extensions,g.EMPTY_OBJECT),o=i.EXT_structural_metadata,r=i.EXT_feature_metadata,s=i.CESIUM_RTC;if(d(r)){let L=r.featureTables,V=r.featureTextures,Z=d(L)?L:[],G=d(V)?V:[];e._sortedPropertyTableIds=Object.keys(Z).sort(),e._sortedFeatureTextureIds=Object.keys(G).sort()}let a=H6e(e,t),c=Q6e(e,a),l=iqe(e,a),u=sqe(n),m=cqe(n,a),f=new t6e,b=new $7e,p=n.asset.copyright;if(d(p)){let L=p.split(";").map(function(V){return new Ot(V.trim())});b.credits=L}if(f.asset=b,f.scene=m,f.nodes=a,f.skins=c,f.animations=l,f.articulations=u,f.upAxis=e._upAxis,f.forwardAxis=e._forwardAxis,d(s)){let L=h.fromArray(s.center,0,lqe);f.transform=P.fromTranslation(L,f.transform)}if(e._components=f,d(o)||d(r)){let L=j6e(e,o,r,t);e._loaderPromises.push(L)}let x=i.NGA_gpm_local;if(d(x)){let L=MW.load(x);e._components.extensions.NGA_gpm_local=L}let T=n.meshes;if(d(T))for(let L of T){let V=L.primitives;if(d(V))for(let Z of V){let G=Z.extensions;if(d(G)){let I=G.NGA_gpm_local;if(d(I)){let w=q6e(e,n,I,t);e._loaderPromises.push(w)}}}}let _=[];return _.push.apply(_,e._loaderPromises),e._incrementallyLoadTextures||_.push.apply(_,e._texturesPromises),Promise.all(_)}function uqe(e){let t=e._textureLoaders;for(let n=0;n<t.length;++n)t[n]=!t[n].isDestroyed()&&ji.unload(t[n]);e._textureLoaders.length=0}function yye(e){let t=e._bufferViewLoaders;for(let n=0;n<t.length;++n)t[n]=!t[n].isDestroyed()&&ji.unload(t[n]);e._bufferViewLoaders.length=0}function mqe(e){let t=e._geometryLoaders;for(let n=0;n<t.length;++n)t[n]=!t[n].isDestroyed()&&ji.unload(t[n]);e._geometryLoaders.length=0}function hqe(e){let t=e._postProcessBuffers;for(let n=0;n<t.length;n++){let i=t[n];i.isDestroyed()||i.destroy()}t.length=0}function pqe(e){d(e._structuralMetadataLoader)&&!e._structuralMetadataLoader.isDestroyed()&&(e._structuralMetadataLoader.destroy(),e._structuralMetadataLoader=void 0)}function fqe(e){d(e._meshPrimitiveGpmLoader)&&!e._meshPrimitiveGpmLoader.isDestroyed()&&(e._meshPrimitiveGpmLoader.destroy(),e._meshPrimitiveGpmLoader=void 0)}Zp.prototype.isUnloaded=function(){return this._state===Pr.UNLOADED};Zp.prototype.unload=function(){d(this._gltfJsonLoader)&&!this._gltfJsonLoader.isDestroyed()&&ji.unload(this._gltfJsonLoader),this._gltfJsonLoader=void 0,uqe(this),yye(this),mqe(this),hqe(this),pqe(this),fqe(this),this._components=void 0,this._typedArray=void 0,this._state=Pr.UNLOADED};var zc=Zp;var bjn=S(C(),1);var mjn=S(C(),1);var HQn=S(C(),1);var xQn=S(C(),1);function Q7(e,t,n){let i=e._gl;i.framebufferTexture2D(i.FRAMEBUFFER,t,n._target,n._texture,0)}function SY(e,t,n){let i=e._gl;i.framebufferRenderbuffer(i.FRAMEBUFFER,t,i.RENDERBUFFER,n._getRenderbuffer())}function Rp(e){e=g(e,g.EMPTY_OBJECT);let n=e.context._gl,i=qt.maximumColorAttachments;if(this._gl=n,this._framebuffer=n.createFramebuffer(),this._colorTextures=[],this._colorRenderbuffers=[],this._activeColorAttachments=[],this._depthTexture=void 0,this._depthRenderbuffer=void 0,this._stencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthStencilRenderbuffer=void 0,this.destroyAttachments=g(e.destroyAttachments,!0),this._bind(),d(e.colorTextures)){let o=e.colorTextures,r=this._colorTextures.length=this._activeColorAttachments.length=o.length;for(let s=0;s<r;++s){let a=o[s],c=this._gl.COLOR_ATTACHMENT0+s;Q7(this,c,a),this._activeColorAttachments[s]=c,this._colorTextures[s]=a}}if(d(e.colorRenderbuffers)){let o=e.colorRenderbuffers,r=this._colorRenderbuffers.length=this._activeColorAttachments.length=o.length;for(let s=0;s<r;++s){let a=o[s],c=this._gl.COLOR_ATTACHMENT0+s;SY(this,c,a),this._activeColorAttachments[s]=c,this._colorRenderbuffers[s]=a}}if(d(e.depthTexture)){let o=e.depthTexture;Q7(this,this._gl.DEPTH_ATTACHMENT,o),this._depthTexture=o}if(d(e.depthRenderbuffer)){let o=e.depthRenderbuffer;SY(this,this._gl.DEPTH_ATTACHMENT,o),this._depthRenderbuffer=o}if(d(e.stencilRenderbuffer)){let o=e.stencilRenderbuffer;SY(this,this._gl.STENCIL_ATTACHMENT,o),this._stencilRenderbuffer=o}if(d(e.depthStencilTexture)){let o=e.depthStencilTexture;Q7(this,this._gl.DEPTH_STENCIL_ATTACHMENT,o),this._depthStencilTexture=o}if(d(e.depthStencilRenderbuffer)){let o=e.depthStencilRenderbuffer;SY(this,this._gl.DEPTH_STENCIL_ATTACHMENT,o),this._depthStencilRenderbuffer=o}this._unBind()}Object.defineProperties(Rp.prototype,{status:{get:function(){this._bind();let e=this._gl.checkFramebufferStatus(this._gl.FRAMEBUFFER);return this._unBind(),e}},numberOfColorAttachments:{get:function(){return this._activeColorAttachments.length}},depthTexture:{get:function(){return this._depthTexture}},depthRenderbuffer:{get:function(){return this._depthRenderbuffer}},stencilRenderbuffer:{get:function(){return this._stencilRenderbuffer}},depthStencilTexture:{get:function(){return this._depthStencilTexture}},depthStencilRenderbuffer:{get:function(){return this._depthStencilRenderbuffer}},hasDepthAttachment:{get:function(){return!!(this.depthTexture||this.depthRenderbuffer||this.depthStencilTexture||this.depthStencilRenderbuffer)}}});Rp.prototype._bind=function(){let e=this._gl;e.bindFramebuffer(e.FRAMEBUFFER,this._framebuffer)};Rp.prototype._unBind=function(){let e=this._gl;e.bindFramebuffer(e.FRAMEBUFFER,null)};Rp.prototype.bindDraw=function(){let e=this._gl;e.bindFramebuffer(e.DRAW_FRAMEBUFFER,this._framebuffer)};Rp.prototype.bindRead=function(){let e=this._gl;e.bindFramebuffer(e.READ_FRAMEBUFFER,this._framebuffer)};Rp.prototype._getActiveColorAttachments=function(){return this._activeColorAttachments};Rp.prototype.getColorTexture=function(e){return this._colorTextures[e]};Rp.prototype.getColorRenderbuffer=function(e){return this._colorRenderbuffers[e]};Rp.prototype.isDestroyed=function(){return!1};Rp.prototype.destroy=function(){if(this.destroyAttachments){let e=this._colorTextures;for(let n=0;n<e.length;++n){let i=e[n];d(i)&&i.destroy()}let t=this._colorRenderbuffers;for(let n=0;n<t.length;++n){let i=t[n];d(i)&&i.destroy()}this._depthTexture=this._depthTexture&&this._depthTexture.destroy(),this._depthRenderbuffer=this._depthRenderbuffer&&this._depthRenderbuffer.destroy(),this._stencilRenderbuffer=this._stencilRenderbuffer&&this._stencilRenderbuffer.destroy(),this._depthStencilTexture=this._depthStencilTexture&&this._depthStencilTexture.destroy(),this._depthStencilRenderbuffer=this._depthStencilRenderbuffer&&this._depthStencilRenderbuffer.destroy()}return this._gl.deleteFramebuffer(this._framebuffer),fe(this)};var Jo=Rp;var ZQn=S(C(),1);function yZ(e){e=g(e,g.EMPTY_OBJECT);let{context:t,width:n,height:i,colorRenderbuffers:o,colorTextures:r,depthStencilRenderbuffer:s,depthStencilTexture:a,destroyAttachments:c}=e;if(this._width=n,this._height=i,d(o)!==d(r))throw new be("Both color renderbuffer and texture attachments must be provided.");if(d(s)!==d(a))throw new be("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new Jo({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:c}),this._colorFramebuffer=new Jo({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:c})}yZ.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};yZ.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};yZ.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();let n=e._gl,i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),d(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};yZ.prototype.isDestroyed=function(){return!1};yZ.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),fe(this)};var NW=yZ;var vQn=S(C(),1);var EQn=S(C(),1);var tu={RGBA4:te.RGBA4,RGBA8:te.RGBA8,RGBA16F:te.RGBA16F,RGBA32F:te.RGBA32F,RGB5_A1:te.RGB5_A1,RGB565:te.RGB565,DEPTH_COMPONENT16:te.DEPTH_COMPONENT16,STENCIL_INDEX8:te.STENCIL_INDEX8,DEPTH_STENCIL:te.DEPTH_STENCIL,DEPTH24_STENCIL8:te.DEPTH24_STENCIL8,validate:function(e){return e===tu.RGBA4||e===tu.RGBA8||e===tu.RGBA16F||e===tu.RGBA32F||e===tu.RGB5_A1||e===tu.RGB565||e===tu.DEPTH_COMPONENT16||e===tu.STENCIL_INDEX8||e===tu.DEPTH_STENCIL||e===tu.DEPTH24_STENCIL8},getColorFormat:function(e){return e===te.FLOAT?tu.RGBA32F:e===te.HALF_FLOAT_OES?tu.RGBA16F:tu.RGBA8}},ld=Object.freeze(tu);function FW(e){e=g(e,g.EMPTY_OBJECT);let n=e.context._gl,i=qt.maximumRenderbufferSize,o=g(e.format,ld.RGBA4),r=d(e.width)?e.width:n.drawingBufferWidth,s=d(e.height)?e.height:n.drawingBufferHeight,a=g(e.numSamples,1);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(FW.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});FW.prototype._getRenderbuffer=function(){return this._renderbuffer};FW.prototype.isDestroyed=function(){return!1};FW.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),fe(this)};var ku=FW;function Za(e){e=g(e,g.EMPTY_OBJECT),this._numSamples=g(e.numSamples,1),this._colorAttachmentsLength=g(e.colorAttachmentsLength,1),this._color=g(e.color,!0),this._depth=g(e.depth,!1),this._depthStencil=g(e.depthStencil,!1),this._supportsDepthTexture=g(e.supportsDepthTexture,!1),this._createColorAttachments=g(e.createColorAttachments,!0),this._createDepthAttachments=g(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(Za.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});Za.prototype.isDirty=function(e,t,n,i,o){n=g(n,1);let r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=d(i)&&this._pixelDatatype!==i||d(o)&&this._pixelFormat!==o,c=n===1?d(this._framebuffer):d(this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!d(this._colorTextures[0])};Za.prototype.update=function(e,t,n,i,o,r){if(i=e.msaa?g(i,1):1,o=g(o,this._color?g(this._pixelDatatype,ke.UNSIGNED_BYTE):void 0),r=g(r,this._color?g(this._pixelFormat,Ye.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s<this._colorAttachmentsLength;++s)if(this._colorTextures[s]=new it({context:e,width:t,height:n,pixelFormat:r,pixelDatatype:o,sampler:un.NEAREST}),this._numSamples>1){let a=ld.getColorFormat(o);this._colorRenderbuffers[s]=new ku({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new it({context:e,width:t,height:n,pixelFormat:Ye.DEPTH_STENCIL,pixelDatatype:ke.UNSIGNED_INT_24_8,sampler:un.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new ku({context:e,width:t,height:n,format:ld.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new ku({context:e,width:t,height:n,format:ld.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new it({context:e,width:t,height:n,pixelFormat:Ye.DEPTH_COMPONENT,pixelDatatype:ke.UNSIGNED_INT,sampler:un.NEAREST}):this._depthRenderbuffer=new ku({context:e,width:t,height:n,format:ld.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new NW({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new Jo({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};Za.prototype.getColorTexture=function(e){return e=g(e,0),this._colorTextures[e]};Za.prototype.setColorTexture=function(e,t){t=g(t,0),this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};Za.prototype.getColorRenderbuffer=function(e){return e=g(e,0),this._colorRenderbuffers[e]};Za.prototype.setColorRenderbuffer=function(e,t){t=g(t,0),this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};Za.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};Za.prototype.setDepthRenderbuffer=function(e){this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};Za.prototype.getDepthTexture=function(){return this._depthTexture};Za.prototype.setDepthTexture=function(e){this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};Za.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};Za.prototype.setDepthStencilRenderbuffer=function(e){this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};Za.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};Za.prototype.setDepthStencilTexture=function(e){this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};Za.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};Za.prototype.clear=function(e,t,n){let i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};Za.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};Za.prototype.destroy=function(){if(this._color){let e=this._colorTextures,t=this._colorRenderbuffers;for(let n=0;n<e.length;++n){let i=e[n];this._createColorAttachments&&d(i)&&!i.isDestroyed()&&i.destroy(),d(i)&&i.isDestroyed()&&(e[n]=void 0);let o=t[n];this._createColorAttachments&&d(o)&&!o.isDestroyed()&&o.destroy(),d(o)&&o.isDestroyed()&&(t[n]=void 0)}}this._depthStencil&&(this._createDepthAttachments&&(this._depthStencilTexture=this._depthStencilTexture&&this._depthStencilTexture.destroy(),this._depthStencilRenderbuffer=this._depthStencilRenderbuffer&&this._depthStencilRenderbuffer.destroy()),d(this._depthStencilTexture)&&this._depthStencilTexture.isDestroyed()&&(this._depthStencilTexture=void 0),d(this._depthStencilRenderbuffer)&&this._depthStencilRenderbuffer.isDestroyed()&&(this._depthStencilRenderbuffer=void 0)),this._depth&&(this._createDepthAttachments&&(this._depthTexture=this._depthTexture&&this._depthTexture.destroy(),this._depthRenderbuffer=this._depthRenderbuffer&&this._depthRenderbuffer.destroy()),d(this._depthTexture)&&this._depthTexture.isDestroyed()&&(this._depthTexture=void 0),d(this._depthRenderbuffer)&&this._depthRenderbuffer.isDestroyed()&&(this._depthRenderbuffer=void 0)),this.destroyFramebuffer()};var zi=Za;var QQn=S(C(),1),AW=`uniform sampler2D u_pointCloud_colorGBuffer;
6869
+ ${o.stack}`),o};Zl.getNodeTransform=function(e){return d(e.matrix)?e.matrix:P.fromTranslationQuaternionRotationScale(d(e.translation)?e.translation:h.ZERO,d(e.rotation)?e.rotation:Be.IDENTITY,d(e.scale)?e.scale:h.ONE)};Zl.getAttributeBySemantic=function(e,t,n){let i=e.attributes,o=i.length;for(let r=0;r<o;++r){let s=i[r],a=d(n)?s.setIndex===n:!0;if(s.semantic===t&&a)return s}};Zl.getAttributeByName=function(e,t){let n=e.attributes,i=n.length;for(let o=0;o<i;++o){let r=n[o];if(r.name===t)return r}};Zl.getFeatureIdsByLabel=function(e,t){for(let n=0;n<e.length;n++){let i=e[n];if(i.positionalLabel===t||i.label===t)return i}};Zl.hasQuantizedAttributes=function(e){if(!d(e))return!1;for(let t=0;t<e.length;t++){let n=e[t];if(d(n.quantization))return!0}return!1};Zl.getAttributeInfo=function(e){let t=e.semantic,n=e.setIndex,i,o=!1;d(t)?(i=ut.getVariableName(t,n),o=!0):(i=e.name,i=i.replace(/^_/,""),i=i.toLowerCase());let r=/^color_\d+$/.test(i),s=e.type,a=kt.getGlslType(s);r&&(a="vec4");let c=d(e.quantization),l;return c&&(l=r?"vec4":kt.getGlslType(e.quantization.type)),{attribute:e,isQuantized:c,variableName:i,hasSemantic:o,glslType:a,quantizedGlslType:l}};var O8e=new h,K8e=new h;Zl.getPositionMinMax=function(e,t,n){let i=Zl.getAttributeBySemantic(e,"POSITION"),o=i.max,r=i.min;return d(n)&&d(t)&&(r=h.add(r,t,K8e),o=h.add(o,n,O8e)),{min:r,max:o}};Zl.getAxisCorrectionMatrix=function(e,t,n){return n=P.clone(P.IDENTITY,n),e===In.Y?n=P.clone(In.Y_UP_TO_Z_UP,n):e===In.X&&(n=P.clone(In.X_UP_TO_Z_UP,n)),t===In.Z&&(n=P.multiplyTransformation(n,In.Z_UP_TO_X_UP,n)),n};var H8e=new $;Zl.getCullFace=function(e,t){if(!Fe.isTriangles(t))return _i.BACK;let n=P.getMatrix3(e,H8e);return $.determinant(n)<0?_i.FRONT:_i.BACK};Zl.sanitizeGlslIdentifier=function(e){let t=e.replaceAll(/[^A-Za-z0-9]+/g,"_");return t=t.replace(/^gl_/,""),/^\d/.test(t)&&(t=`_${t}`),t};Zl.supportedExtensions={AGI_articulations:!0,CESIUM_primitive_outline:!0,CESIUM_RTC:!0,EXT_feature_metadata:!0,EXT_instance_features:!0,EXT_mesh_features:!0,EXT_mesh_gpu_instancing:!0,EXT_meshopt_compression:!0,EXT_structural_metadata:!0,EXT_texture_webp:!0,KHR_blend:!0,KHR_draco_mesh_compression:!0,KHR_techniques_webgl:!0,KHR_materials_common:!0,KHR_materials_pbrSpecularGlossiness:!0,KHR_materials_specular:!0,KHR_materials_anisotropy:!0,KHR_materials_clearcoat:!0,KHR_materials_unlit:!0,KHR_mesh_quantization:!0,KHR_texture_basisu:!0,KHR_texture_transform:!0,WEB3D_quantized_attributes:!0};Zl.checkSupportedExtensions=function(e){let t=e.length;for(let n=0;n<t;n++){let i=e[n];if(!Zl.supportedExtensions[i])throw new le(`Unsupported glTF Extension: ${i}`)}};var fn=Zl;function Ax(e){e=g(e,g.EMPTY_OBJECT);let t=e.resourceCache,n=e.gltfResource,i=e.baseResource,o=e.typedArray,r=e.gltfJson,s=e.cacheKey;this._resourceCache=t,this._gltfResource=n,this._baseResource=i,this._typedArray=o,this._gltfJson=r,this._cacheKey=s,this._gltf=void 0,this._bufferLoaders=[],this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Ax.prototype=Object.create(vi.prototype),Ax.prototype.constructor=Ax);Object.defineProperties(Ax.prototype,{cacheKey:{get:function(){return this._cacheKey}},gltf:{get:function(){return this._gltf}}});Ax.prototype.load=async function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,d(this._gltfJson)?(this._promise=Ube(this,this._gltfJson),this._promise):d(this._typedArray)?(this._promise=kbe(this,this._typedArray),this._promise):(this._promise=J8e(this),this._promise))};async function J8e(e){let t;try{let n=await e._fetchGltf();if(e.isDestroyed())return;t=new Uint8Array(n)}catch(n){if(e.isDestroyed())return;A7(e,n)}return kbe(e,t)}function A7(e,t){e.unload(),e._state=Xt.FAILED;let n=`Failed to load glTF: ${e._gltfResource.url}`;throw e.getError(n,t)}async function Q8e(e,t){if(d(t.asset)&&t.asset.version==="2.0"&&!ds(t,"KHR_techniques_webgl")&&!ds(t,"KHR_materials_common"))return Promise.resolve();let n=[];De.buffer(t,function(i){if(!d(i.extras._pipeline.source)&&d(i.uri)){let o=e._baseResource.getDerivedResource({url:i.uri}),s=e._resourceCache.getExternalBufferLoader({resource:o});e._bufferLoaders.push(s),n.push(s.load().then(function(){s.isDestroyed()||(i.extras._pipeline.source=s.typedArray)}))}}),await Promise.all(n),xW(t)}function j8e(e){let t=[];return De.buffer(e,function(n){let i=n.uri;!d(n.extras._pipeline.source)&&d(i)&&rb(i)&&(delete n.uri,t.push(Xe.fetchArrayBuffer(i).then(function(o){n.extras._pipeline.source=new Uint8Array(o)})))}),Promise.all(t)}function q8e(e,t){let n=[];return De.buffer(t,function(i,o){let r=i.extras._pipeline.source;if(d(r)&&!d(i.uri)){let a=e._resourceCache.getEmbeddedBufferLoader({parentResource:e._gltfResource,bufferId:o,typedArray:r});e._bufferLoaders.push(a),n.push(a.load())}}),Promise.all(n)}async function Ube(e,t){try{Fx(t),await j8e(t),await Q8e(e,t),cW(t),await q8e(e,t),uW(t);let n=t.asset.version;if(n!=="1.0"&&n!=="2.0")throw new le(`Unsupported glTF version: ${n}`);let i=t.extensionsRequired;return d(i)&&fn.checkSupportedExtensions(i),e._gltf=t,e._state=Xt.READY,e}catch(n){if(e.isDestroyed())return;A7(e,n)}}async function kbe(e,t){let n;try{Mc(t)==="glTF"?n=dW(t):n=mo(t)}catch(i){if(e.isDestroyed())return;A7(e,i)}return Ube(e,n)}Ax.prototype.unload=function(){let e=this._bufferLoaders,t=e.length;for(let n=0;n<t;++n)e[n]=!e[n].isDestroyed()&&this._resourceCache.unload(e[n]);this._bufferLoaders.length=0,this._gltf=void 0};Ax.prototype._fetchGltf=function(){return this._gltfResource.fetchArrayBuffer()};var lZ=Ax;var jKn=S(C(),1);function Dx(e){e=g(e,g.EMPTY_OBJECT);let t=e.resourceCache,n=e.gltf,i=e.textureInfo,o=e.gltfResource,r=e.baseResource,s=e.supportedImageFormats,a=e.cacheKey,c=g(e.asynchronous,!0),l=i.index,u=$d.getImageIdFromTexture({gltf:n,textureId:l,supportedImageFormats:s});this._resourceCache=t,this._gltf=n,this._textureInfo=i,this._imageId=u,this._gltfResource=o,this._baseResource=r,this._cacheKey=a,this._asynchronous=c,this._imageLoader=void 0,this._image=void 0,this._mipLevels=void 0,this._texture=void 0,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Dx.prototype=Object.create(vi.prototype),Dx.prototype.constructor=Dx);Object.defineProperties(Dx.prototype,{cacheKey:{get:function(){return this._cacheKey}},texture:{get:function(){return this._texture}}});var $8e=new D7;async function e7e(e){let t=e._resourceCache;try{let n=t.getImageLoader({gltf:e._gltf,imageId:e._imageId,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._imageLoader=n,await n.load(),e.isDestroyed()?void 0:(e._image=n.image,e._mipLevels=n.mipLevels,e._state=Xt.LOADED,e)}catch(n){if(e.isDestroyed())return;throw e.unload(),e._state=Xt.FAILED,e.getError("Failed to load texture",n)}}Dx.prototype.load=async function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,this._promise=e7e(this),this._promise)};function D7(){this.gltf=void 0,this.textureInfo=void 0,this.image=void 0,this.context=void 0,this.texture=void 0}D7.prototype.set=function(e,t,n,i,o){this.gltf=e,this.textureInfo=t,this.image=n,this.mipLevels=i,this.context=o};D7.prototype.execute=function(){this.texture=zbe(this.gltf,this.textureInfo,this.image,this.mipLevels,this.context)};function zbe(e,t,n,i,o){let r=n.internalFormat,s=!1;Ye.isCompressedFormat(r)&&!d(i)&&(s=!0);let a=$d.createSampler({gltf:e,textureInfo:t,compressedTextureNoMipmap:s}),c=a.minificationFilter,l=a.wrapS,u=a.wrapT,m=c===gn.NEAREST_MIPMAP_NEAREST||c===gn.NEAREST_MIPMAP_LINEAR||c===gn.LINEAR_MIPMAP_NEAREST||c===gn.LINEAR_MIPMAP_LINEAR,f=!d(r)&&m,b=f||l===Nn.REPEAT||l===Nn.MIRRORED_REPEAT||u===Nn.REPEAT||u===Nn.MIRRORED_REPEAT,p=!M.isPowerOfTwo(n.width)||!M.isPowerOfTwo(n.height),x=b&&p,T;return d(r)?(!o.webgl2&&Ye.isCompressedFormat(r)&&p&&b&&console.warn("Compressed texture uses REPEAT or MIRRORED_REPEAT texture wrap mode and dimensions are not powers of two. The texture may be rendered incorrectly."),T=it.create({context:o,source:{arrayBufferView:n.bufferView,mipLevels:i},width:n.width,height:n.height,pixelFormat:n.internalFormat,sampler:a})):(x&&(n=hx(n)),T=it.create({context:o,source:n,sampler:a,flipY:!1,skipColorSpaceConversion:!0})),f&&T.generateMipmap(),T}Dx.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED&&this._state!==Xt.PROCESSING||d(this._texture)||!d(this._image))return!1;this._state=Xt.PROCESSING;let t;if(this._asynchronous){let n=$8e;if(n.set(this._gltf,this._textureInfo,this._image,this._mipLevels,e.context),!e.jobScheduler.execute(n,kc.TEXTURE))return;t=n.texture}else t=zbe(this._gltf,this._textureInfo,this._image,this._mipLevels,e.context);return this.unload(),this._texture=t,this._state=Xt.READY,this._resourceCache.statistics.addTextureLoader(this),!0};Dx.prototype.unload=function(){d(this._texture)&&this._texture.destroy(),d(this._imageLoader)&&!this._imageLoader.isDestroyed()&&this._resourceCache.unload(this._imageLoader),this._imageLoader=void 0,this._image=void 0,this._mipLevels=void 0,this._texture=void 0,this._gltf=void 0};var dZ=Dx;var cHn=S(C(),1);function Ux(e){e=g(e,g.EMPTY_OBJECT);let t=e.resourceCache,n=e.gltf,i=e.gltfResource,o=e.baseResource,r=e.bufferViewId,s=e.draco,a=e.attributeSemantic,c=e.accessorId,l=e.cacheKey,u=g(e.asynchronous,!0),m=g(e.loadBuffer,!1),f=g(e.loadTypedArray,!1);this._resourceCache=t,this._gltfResource=i,this._baseResource=o,this._gltf=n,this._bufferViewId=r,this._draco=s,this._attributeSemantic=a,this._accessorId=c,this._cacheKey=l,this._asynchronous=u,this._loadBuffer=m,this._loadTypedArray=f,this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._quantization=void 0,this._typedArray=void 0,this._buffer=void 0,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Ux.prototype=Object.create(vi.prototype),Ux.prototype.constructor=Ux);Object.defineProperties(Ux.prototype,{cacheKey:{get:function(){return this._cacheKey}},buffer:{get:function(){return this._buffer}},typedArray:{get:function(){return this._typedArray}},quantization:{get:function(){return this._quantization}}});function t7e(e,t){return d(e)&&d(e.attributes)&&d(e.attributes[t])}Ux.prototype.load=async function(){return d(this._promise)?this._promise:t7e(this._draco,this._attributeSemantic)?(this._promise=i7e(this),this._promise):(this._promise=r7e(this),this._promise)};function n7e(e,t,n,i){let r=(1<<e.quantizationBits)-1,s=1/r,a=new hn.Quantization;if(a.componentDatatype=t,a.octEncoded=e.octEncoded,a.octEncodedZXY=!0,a.type=i,a.octEncoded)a.type=kt.VEC2,a.normalizationRange=r;else{let c=kt.getMathType(i);if(c===Number){let l=e.range;a.quantizedVolumeOffset=e.minValues[0],a.quantizedVolumeDimensions=l,a.normalizationRange=r,a.quantizedVolumeStepSize=l*s}else{a.quantizedVolumeOffset=c.unpack(e.minValues),a.normalizationRange=c.unpack(new Array(n).fill(r));let l=new Array(n).fill(e.range);a.quantizedVolumeDimensions=c.unpack(l);let u=l.map(function(m){return m*s});a.quantizedVolumeStepSize=c.unpack(u)}}return a}async function i7e(e){e._state=Xt.LOADING;let t=e._resourceCache;try{let n=t.getDracoLoader({gltf:e._gltf,draco:e._draco,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._dracoLoader=n,await n.load(),e.isDestroyed()?void 0:(e._state=Xt.LOADED,e)}catch{if(e.isDestroyed())return;U7(e)}}function o7e(e){e._state=Xt.PROCESSING;let n=e._dracoLoader.decodedData.vertexAttributes,i=e._attributeSemantic,o=n[i],r=e._accessorId,a=e._gltf.accessors[r].type,c=o.array,l=o.data.quantization;d(l)&&(e._quantization=n7e(l,o.data.componentDatatype,o.data.componentsPerAttribute,a)),e._typedArray=new Uint8Array(c.buffer,c.byteOffset,c.byteLength)}async function r7e(e){e._state=Xt.LOADING;let t=e._resourceCache;try{let n=t.getBufferViewLoader({gltf:e._gltf,bufferViewId:e._bufferViewId,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._bufferViewLoader=n,await n.load(),e.isDestroyed()?void 0:(e._typedArray=n.typedArray,e._state=Xt.PROCESSING,e)}catch(n){if(e.isDestroyed())return;U7(e,n)}}function U7(e,t){throw e.unload(),e._state=Xt.FAILED,e.getError("Failed to load vertex buffer",t)}function k7(){this.typedArray=void 0,this.context=void 0,this.buffer=void 0}k7.prototype.set=function(e,t){this.typedArray=e,this.context=t};k7.prototype.execute=function(){this.buffer=Ybe(this.typedArray,this.context)};function Ybe(e,t){let n=nt.createVertexBuffer({typedArray:e,context:t,usage:Me.STATIC_DRAW});return n.vertexArrayDestroyable=!1,n}var s7e=new k7;Ux.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED&&this._state!==Xt.PROCESSING)return!1;if(d(this._dracoLoader)){try{if(!this._dracoLoader.process(e))return!1}catch(i){U7(this,i)}o7e(this)}let t,n=this._typedArray;if(this._loadBuffer&&this._asynchronous){let i=s7e;if(i.set(n,e.context),!e.jobScheduler.execute(i,kc.BUFFER))return!1;t=i.buffer}else this._loadBuffer&&(t=Ybe(n,e.context));return this.unload(),this._buffer=t,this._typedArray=this._loadTypedArray?n:void 0,this._state=Xt.READY,this._resourceCache.statistics.addGeometryLoader(this),!0};Ux.prototype.unload=function(){d(this._buffer)&&this._buffer.destroy();let e=this._resourceCache;d(this._bufferViewLoader)&&!this._bufferViewLoader.isDestroyed()&&e.unload(this._bufferViewLoader),d(this._dracoLoader)&&e.unload(this._dracoLoader),this._bufferViewLoader=void 0,this._dracoLoader=void 0,this._typedArray=void 0,this._buffer=void 0,this._gltf=void 0};var uZ=Ux;var FHn=S(C(),1);var XHn=S(C(),1);var pHn=S(C(),1);function TW(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=g(e.properties,{}),i={};for(let o in n)if(n.hasOwnProperty(o)){let r=n[o];d(r.semantic)&&(i[r.semantic]=r)}this._id=t,this._name=e.name,this._description=e.description,this._properties=n,this._propertiesBySemantic=i,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}TW.fromJson=function(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=e.class,i={};for(let o in n.properties)if(n.properties.hasOwnProperty(o)){let r=d0.fromJson({id:o,property:n.properties[o],enums:e.enums});i[o]=r}return new TW({id:t,name:n.name,description:n.description,properties:i,extras:n.extras,extensions:n.extensions})};Object.defineProperties(TW.prototype,{properties:{get:function(){return this._properties}},propertiesBySemantic:{get:function(){return this._propertiesBySemantic}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});TW.BATCH_TABLE_CLASS_NAME="_batchTable";var ua=TW;var LHn=S(C(),1);var gHn=S(C(),1);function pY(e){e=g(e,g.EMPTY_OBJECT);let t=e.value,n=e.name;this._value=t,this._name=n,this._description=e.description,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}pY.fromJson=function(e){return new pY({value:e.value,name:e.name,description:e.description,extras:e.extras,extensions:e.extensions})};Object.defineProperties(pY.prototype,{value:{get:function(){return this._value}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});var _W=pY;function fY(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=e.values,i={},o={},r=n.length;for(let a=0;a<r;++a){let c=n[a];i[c.value]=c.name,o[c.name]=c.value}let s=g(e.valueType,pn.UINT16);this._values=n,this._namesByValue=i,this._valuesByName=o,this._valueType=s,this._id=t,this._name=e.name,this._description=e.description,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}fY.fromJson=function(e){e=g(e,g.EMPTY_OBJECT);let t=e.id,n=e.enum,i=n.values.map(function(o){return _W.fromJson(o)});return new fY({id:t,values:i,valueType:pn[n.valueType],name:n.name,description:n.description,extras:n.extras,extensions:n.extensions})};Object.defineProperties(fY.prototype,{values:{get:function(){return this._values}},namesByValue:{get:function(){return this._namesByValue}},valuesByName:{get:function(){return this._valuesByName}},valueType:{get:function(){return this._valueType}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});var SW=fY;function bY(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.classes,{}),n=g(e.enums,{});this._classes=t,this._enums=n,this._id=e.id,this._name=e.name,this._description=e.description,this._version=e.version,this._extras=Ue(e.extras,!0),this._extensions=Ue(e.extensions,!0)}bY.fromJson=function(e){let t={};if(d(e.enums))for(let i in e.enums)e.enums.hasOwnProperty(i)&&(t[i]=SW.fromJson({id:i,enum:e.enums[i]}));let n={};if(d(e.classes))for(let i in e.classes)e.classes.hasOwnProperty(i)&&(n[i]=ua.fromJson({id:i,class:e.classes[i],enums:t}));return new bY({id:e.id,name:e.name,description:e.description,version:e.version,classes:n,enums:t,extras:e.extras,extensions:e.extensions})};Object.defineProperties(bY.prototype,{classes:{get:function(){return this._classes}},enums:{get:function(){return this._enums}},id:{get:function(){return this._id}},name:{get:function(){return this._name}},description:{get:function(){return this._description}},version:{get:function(){return this._version}},extras:{get:function(){return this._extras}},extensions:{get:function(){return this._extensions}}});var Rl=bY;function dS(e){e=g(e,g.EMPTY_OBJECT);let t=e.schema,n=e.resource,i=e.cacheKey;this._schema=d(t)?Rl.fromJson(t):void 0,this._resource=n,this._cacheKey=i,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(dS.prototype=Object.create(vi.prototype),dS.prototype.constructor=dS);Object.defineProperties(dS.prototype,{cacheKey:{get:function(){return this._cacheKey}},schema:{get:function(){return this._schema}}});dS.prototype.load=async function(){return d(this._promise)?this._promise:d(this._schema)?(this._promise=Promise.resolve(this),this._promise):(this._promise=a7e(this),this._promise)};async function a7e(e){let t=e._resource;e._state=Xt.LOADING;try{let n=await t.fetchJson();return e.isDestroyed()?void 0:(e._schema=Rl.fromJson(n),e._state=Xt.READY,e)}catch(n){if(e.isDestroyed())return;e._state=Xt.FAILED;let i=`Failed to load schema: ${t.url}`;throw e.getError(i,n)}}dS.prototype.unload=function(){this._schema=void 0};var mZ=dS;var BHn=S(C(),1);var Vp={};function hZ(e){return Cf(e.url)}function yY(e){let{byteOffset:t,byteLength:n}=e;if(Zi(e,"EXT_meshopt_compression")){let i=e.extensions.EXT_meshopt_compression;t=g(i.byteOffset,0),n=i.byteLength}return`${t}-${t+n}`}function c7e(e,t){let n=t.byteOffset+e.byteOffset,{componentType:i,type:o,count:r}=e;return`${n}-${i}-${o}-${r}`}function Bbe(e,t){return`${hZ(e)}-buffer-id-${t}`}function CW(e,t,n,i){if(d(e.uri)){let o=i.getDerivedResource({url:e.uri});return hZ(o)}return Bbe(n,t)}function z7(e,t,n,i){let o=t.bufferView,r=e.bufferViews[o],s=r.buffer,a=e.buffers[s],c=CW(a,s,n,i),l=yY(r);return`${c}-range-${l}`}function Obe(e,t,n,i){let o=e.images[t],r=o.bufferView,s=o.uri;if(d(s)){let f=i.getDerivedResource({url:s});return hZ(f)}let a=e.bufferViews[r],c=a.buffer,l=e.buffers[c],u=CW(l,c,n,i),m=yY(a);return`${u}-range-${m}`}function l7e(e,t){let n=$d.createSampler({gltf:e,textureInfo:t});return`${n.wrapS}-${n.wrapT}-${n.minificationFilter}-${n.magnificationFilter}`}Vp.getSchemaCacheKey=function(e){let{schema:t,resource:n}=e;return d(t)?`embedded-schema:${JSON.stringify(t)}`:`external-schema:${hZ(n)}`};Vp.getExternalBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{resource:t}=e;return`external-buffer:${hZ(t)}`};Vp.getEmbeddedBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{parentResource:t,bufferId:n}=e;return`embedded-buffer:${Bbe(t,n)}`};Vp.getGltfCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltfResource:t}=e;return`gltf:${hZ(t)}`};Vp.getBufferViewCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,bufferViewId:n,gltfResource:i,baseResource:o}=e,r=t.bufferViews[n],s=r.buffer,a=t.buffers[s];Zi(r,"EXT_meshopt_compression")&&(s=r.extensions.EXT_meshopt_compression.buffer);let c=CW(a,s,i,o),l=yY(r);return`buffer-view:${c}-range-${l}`};Vp.getDracoCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,draco:n,gltfResource:i,baseResource:o}=e;return`draco:${z7(t,n,i,o)}`};Vp.getVertexBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,gltfResource:n,baseResource:i,frameState:o,bufferViewId:r,draco:s,attributeSemantic:a,dequantize:c=!1,loadBuffer:l=!1,loadTypedArray:u=!1}=e,m="";if(c&&(m+="-dequantize"),l&&(m+="-buffer",m+=`-context-${o.context.id}`),u&&(m+="-typed-array"),d(s))return`vertex-buffer:${z7(t,s,n,i)}-draco-${a}${m}`;let f=t.bufferViews[r],b=f.buffer,p=t.buffers[b],x=CW(p,b,n,i),T=yY(f);return`vertex-buffer:${x}-range-${T}${m}`};Vp.getIndexBufferCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,accessorId:n,gltfResource:i,baseResource:o,frameState:r,draco:s,loadBuffer:a=!1,loadTypedArray:c=!1}=e,l="";if(a&&(l+="-buffer",l+=`-context-${r.context.id}`),c&&(l+="-typed-array"),d(s))return`index-buffer:${z7(t,s,i,o)}-draco${l}`;let u=t.accessors[n],m=u.bufferView,f=t.bufferViews[m],b=f.buffer,p=t.buffers[b],x=CW(p,b,i,o),T=c7e(u,f);return`index-buffer:${x}-accessor-${T}${l}`};Vp.getImageCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,imageId:n,gltfResource:i,baseResource:o}=e;return`image:${Obe(t,n,i,o)}`};Vp.getTextureCacheKey=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s}=e,a=n.index,c=$d.getImageIdFromTexture({gltf:t,textureId:a,supportedImageFormats:r}),l=Obe(t,c,i,o),u=l7e(t,n);return`texture:${l}-sampler-${u}-context-${s.context.id}`};var eu=Vp;var HHn=S(C(),1);function LW(){this.geometryByteLength=0,this.texturesByteLength=0,this._geometrySizes={},this._textureSizes={}}LW.prototype.clear=function(){this.geometryByteLength=0,this.texturesByteLength=0,this._geometrySizes={},this._textureSizes={}};LW.prototype.addGeometryLoader=function(e){let t=e.cacheKey;if(this._geometrySizes.hasOwnProperty(t))return;this._geometrySizes[t]=0;let n=e.buffer,i=e.typedArray,o=0;d(n)&&(o+=n.sizeInBytes),d(i)&&(o+=i.byteLength),this.geometryByteLength+=o,this._geometrySizes[t]=o};LW.prototype.addTextureLoader=function(e){let t=e.cacheKey;if(this._textureSizes.hasOwnProperty(t))return;this._textureSizes[t]=0;let n=e.texture.sizeInBytes;this.texturesByteLength+=e.texture.sizeInBytes,this._textureSizes[t]=n};LW.prototype.removeLoader=function(e){let t=e.cacheKey,n=this._geometrySizes[t];delete this._geometrySizes[t],d(n)&&(this.geometryByteLength-=n);let i=this._textureSizes[t];delete this._textureSizes[t],d(i)&&(this.texturesByteLength-=i)};var VW=LW;function yi(){}yi.cacheEntries={};yi.statistics=new VW;function d7e(e){this.referenceCount=1,this.resourceLoader=e,this._statisticsPromise=void 0}yi.get=function(e){let t=yi.cacheEntries[e];if(d(t))return++t.referenceCount,t.resourceLoader};yi.add=function(e){let t=e.cacheKey;return yi.cacheEntries[t]=new d7e(e),e};yi.unload=function(e){let t=e.cacheKey,n=yi.cacheEntries[t];--n.referenceCount,n.referenceCount===0&&(yi.statistics.removeLoader(e),e.destroy(),delete yi.cacheEntries[t])};yi.getSchemaLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{schema:t,resource:n}=e,i=eu.getSchemaCacheKey({schema:t,resource:n}),o=yi.get(i);return d(o)?o:(o=new mZ({schema:t,resource:n,cacheKey:i}),yi.add(o))};yi.getEmbeddedBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{parentResource:t,bufferId:n,typedArray:i}=e,o=eu.getEmbeddedBufferCacheKey({parentResource:t,bufferId:n}),r=yi.get(o);return d(r)?r:(r=new oS({typedArray:i,cacheKey:o}),yi.add(r))};yi.getExternalBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{resource:t}=e,n=eu.getExternalBufferCacheKey({resource:t}),i=yi.get(n);return d(i)?i:(i=new oS({resource:t,cacheKey:n}),yi.add(i))};yi.getGltfJsonLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltfResource:t,baseResource:n,typedArray:i,gltfJson:o}=e,r=eu.getGltfCacheKey({gltfResource:t}),s=yi.get(r);return d(s)?s:(s=new lZ({resourceCache:yi,gltfResource:t,baseResource:n,typedArray:i,gltfJson:o,cacheKey:r}),yi.add(s))};yi.getBufferViewLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,bufferViewId:n,gltfResource:i,baseResource:o}=e,r=eu.getBufferViewCacheKey({gltf:t,bufferViewId:n,gltfResource:i,baseResource:o}),s=yi.get(r);return d(s)?s:(s=new oZ({resourceCache:yi,gltf:t,bufferViewId:n,gltfResource:i,baseResource:o,cacheKey:r}),yi.add(s))};yi.getDracoLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,draco:n,gltfResource:i,baseResource:o}=e,r=eu.getDracoCacheKey({gltf:t,draco:n,gltfResource:i,baseResource:o}),s=yi.get(r);return d(s)?s:(s=new rZ({resourceCache:yi,gltf:t,draco:n,gltfResource:i,baseResource:o,cacheKey:r}),yi.add(s))};yi.getVertexBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,gltfResource:n,baseResource:i,frameState:o,bufferViewId:r,draco:s,attributeSemantic:a,accessorId:c,asynchronous:l=!0,dequantize:u=!1,loadBuffer:m=!1,loadTypedArray:f=!1}=e,b=eu.getVertexBufferCacheKey({gltf:t,gltfResource:n,baseResource:i,frameState:o,bufferViewId:r,draco:s,attributeSemantic:a,dequantize:u,loadBuffer:m,loadTypedArray:f}),p=yi.get(b);return d(p)?p:(p=new uZ({resourceCache:yi,gltf:t,gltfResource:n,baseResource:i,bufferViewId:r,draco:s,attributeSemantic:a,accessorId:c,cacheKey:b,asynchronous:l,dequantize:u,loadBuffer:m,loadTypedArray:f}),yi.add(p))};yi.getIndexBufferLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,accessorId:n,gltfResource:i,baseResource:o,frameState:r,draco:s,asynchronous:a=!0,loadBuffer:c=!1,loadTypedArray:l=!1}=e,u=eu.getIndexBufferCacheKey({gltf:t,accessorId:n,gltfResource:i,baseResource:o,frameState:r,draco:s,loadBuffer:c,loadTypedArray:l}),m=yi.get(u);return d(m)?m:(m=new aZ({resourceCache:yi,gltf:t,accessorId:n,gltfResource:i,baseResource:o,draco:s,cacheKey:u,asynchronous:a,loadBuffer:c,loadTypedArray:l}),yi.add(m))};yi.getImageLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,imageId:n,gltfResource:i,baseResource:o}=e,r=eu.getImageCacheKey({gltf:t,imageId:n,gltfResource:i,baseResource:o}),s=yi.get(r);return d(s)?s:(s=new sZ({resourceCache:yi,gltf:t,imageId:n,gltfResource:i,baseResource:o,cacheKey:r}),yi.add(s))};yi.getTextureLoader=function(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s,asynchronous:a=!0}=e,c=eu.getTextureCacheKey({gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s}),l=yi.get(c);return d(l)?l:(l=new dZ({resourceCache:yi,gltf:t,textureInfo:n,gltfResource:i,baseResource:o,supportedImageFormats:r,cacheKey:c,asynchronous:a}),yi.add(l))};yi.clearForSpecs=function(){let e=[uZ,aZ,rZ,dZ,sZ,oZ,oS,mZ,lZ],t,n=yi.cacheEntries,i=[];for(t in n)n.hasOwnProperty(t)&&i.push(n[t]);i.sort(function(r,s){let a=e.indexOf(r.resourceLoader.constructor),c=e.indexOf(s.resourceLoader.constructor);return a-c});let o=i.length;for(let r=0;r<o;++r){let s=i[r];t=s.resourceLoader.cacheKey,d(n[t])&&(s.resourceLoader.destroy(),delete n[t])}yi.statistics.clear()};var ji=yi;function kx(e){e=g(e,g.EMPTY_OBJECT);let{gltf:t,extension:n,extensionLegacy:i,gltfResource:o,baseResource:r,supportedImageFormats:s,frameState:a,cacheKey:c,asynchronous:l=!0,generateUniqueId:u}=e;this._gltfResource=o,this._baseResource=r,this._gltf=t,this._extension=n,this._extensionLegacy=i,this._supportedImageFormats=s,this._frameState=a,this._cacheKey=c,this._asynchronous=l,this._bufferViewLoaders=[],this._bufferViewIds=[],this._textureLoaders=[],this._textureIds=[],this._schemaLoader=void 0,this._structuralMetadata=void 0,this._state=Xt.UNLOADED,this._promise=void 0,this._generateUniqueId=u}d(Object.create)&&(kx.prototype=Object.create(vi.prototype),kx.prototype.constructor=kx);Object.defineProperties(kx.prototype,{cacheKey:{get:function(){return this._cacheKey}},structuralMetadata:{get:function(){return this._structuralMetadata}}});async function u7e(e){try{let t=b7e(e),n=_7e(e),i=S7e(e);return await Promise.all([t,n,i]),e.isDestroyed()?void 0:(e._gltf=void 0,e._state=Xt.LOADED,e)}catch(t){if(e.isDestroyed())return;throw e.unload(),e._state=Xt.FAILED,e.getError("Failed to load structural metadata",t)}}kx.prototype.load=function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,this._promise=u7e(this),this._promise)};function m7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o=i.values,r=i.arrayOffsets,s=i.stringOffsets;d(o)&&(t[o]=!0),d(r)&&(t[r]=!0),d(s)&&(t[s]=!0)}}function h7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let i=e[n],o=i.bufferView,r=i.arrayOffsetBufferView,s=i.stringOffsetBufferView;d(o)&&(t[o]=!0),d(r)&&(t[r]=!0),d(s)&&(t[s]=!0)}}function p7e(e){let t=e.propertyTables,n={};if(d(t))for(let i=0;i<t.length;i++){let o=t[i];m7e(o.properties,n)}return n}function f7e(e){let t=e.featureTables,n={};if(d(t)){for(let i in t)if(t.hasOwnProperty(i)){let r=t[i].properties;d(r)&&h7e(r,n)}}return n}async function b7e(e){let t;d(e._extension)?t=p7e(e._extension):t=f7e(e._extensionLegacy);let n=[];for(let i in t)if(t.hasOwnProperty(i)){let o=ji.getBufferViewLoader({gltf:e._gltf,bufferViewId:parseInt(i),gltfResource:e._gltfResource,baseResource:e._baseResource});e._bufferViewLoaders.push(o),e._bufferViewIds.push(i),n.push(o.load())}return Promise.all(n)}function y7e(e){let t={},n=e.propertyTextures;if(d(n))for(let i=0;i<n.length;i++){let r=n[i].properties;d(r)&&g7e(r,t)}return t}function g7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];t[i.index]=i}}function x7e(e){let t={},n=e.featureTextures;if(d(n)){for(let i in n)if(n.hasOwnProperty(i)){let r=n[i].properties;d(r)&&T7e(r,t)}}return t}function T7e(e,t){for(let n in e)if(e.hasOwnProperty(n)){let o=e[n].texture;t[o.index]=o}}function _7e(e){let t;d(e._extension)?t=y7e(e._extension):t=x7e(e._extensionLegacy);let n=e._gltf,i=e._gltfResource,o=e._baseResource,r=e._supportedImageFormats,s=e._frameState,a=e._asynchronous,c=[];for(let l in t)if(t.hasOwnProperty(l)){let u=ji.getTextureLoader({gltf:n,textureInfo:t[l],gltfResource:i,baseResource:o,supportedImageFormats:r,frameState:s,asynchronous:a});e._textureLoaders.push(u),e._textureIds.push(l),c.push(u.load())}return Promise.all(c)}async function S7e(e){let t=g(e._extension,e._extensionLegacy),n;if(d(t.schemaUri)){let i=e._baseResource.getDerivedResource({url:t.schemaUri});n=ji.getSchemaLoader({resource:i})}else n=ji.getSchemaLoader({schema:t.schema});if(e._schemaLoader=n,await n.load(),!n.isDestroyed())return n.schema}kx.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED)return!1;let t=this._textureLoaders,n=t.length,i=!0;for(let a=0;a<n;++a){let l=t[a].process(e);i=i&&l}if(!i)return!1;let o=this._schemaLoader.schema,r={};for(let a=0;a<this._bufferViewIds.length;++a){let c=this._bufferViewIds[a],l=this._bufferViewLoaders[a];if(!l.isDestroyed()){let u=new Uint8Array(l.typedArray);r[c]=u}}let s={};for(let a=0;a<this._textureIds.length;++a){let c=this._textureIds[a],l=t[a];l.isDestroyed()||(s[c]=l.texture)}return d(this._extension)?this._structuralMetadata=sW({extension:this._extension,schema:o,bufferViews:r,textures:s,generateUniqueId:this._generateUniqueId}):this._structuralMetadata=aW({extension:this._extensionLegacy,schema:o,bufferViews:r,textures:s}),Kbe(this),this._state=Xt.READY,!0};function Kbe(e){let t=e._bufferViewLoaders,n=t.length;for(let i=0;i<n;++i)ji.unload(t[i]);e._bufferViewLoaders.length=0,e._bufferViewIds.length=0}function C7e(e){let t=e._textureLoaders,n=t.length;for(let i=0;i<n;++i)ji.unload(t[i]);e._textureLoaders.length=0,e._textureIds.length=0}kx.prototype.unload=function(){Kbe(this),C7e(this),d(this._schemaLoader)&&ji.unload(this._schemaLoader),this._schemaLoader=void 0,this._structuralMetadata=void 0};var ZW=kx;var T4n=S(C(),1);var pZ={TRANSLATION:"TRANSLATION",ROTATION:"ROTATION",SCALE:"SCALE",FEATURE_ID:"_FEATURE_ID"};pZ.fromGltfSemantic=function(e){let t=e,i=/^(\w+)_\d+$/.exec(e);switch(i!==null&&(t=i[1]),t){case"TRANSLATION":return pZ.TRANSLATION;case"ROTATION":return pZ.ROTATION;case"SCALE":return pZ.SCALE;case"_FEATURE_ID":return pZ.FEATURE_ID}};var kr=Object.freeze(pZ);var U4n=S(C(),1);var X4n=S(C(),1);var L7e=65534,V7e=255;function gY(e){e=g(e,g.EMPTY_OBJECT);let t=e.triangleIndices,n=e.outlineIndices,i=e.originalVertexCount;this._triangleIndices=t,this._originalVertexCount=i,this._edges=new Qbe(n,i),this._outlineCoordinatesTypedArray=void 0,this._extraVertices=[],Z7e(this)}Object.defineProperties(gY.prototype,{updatedTriangleIndices:{get:function(){return this._triangleIndices}},outlineCoordinates:{get:function(){return this._outlineCoordinatesTypedArray}}});function Z7e(e){let t=e._triangleIndices,n=e._edges,i=[],o=e._extraVertices,r=e._originalVertexCount,s={};for(let a=0;a<t.length;a+=3){let c=t[a],l=t[a+1],u=t[a+2],m=!1,f=m||n.hasEdge(c,l),b=m||n.hasEdge(l,u),p=m||n.hasEdge(u,c),x=Hbe(i,c,l,u,f,b,p);for(;d(x);){let T=s[x];if(!d(T)){T=r+o.length;let _=x;for(;_>=r;)_=o[_-r];o.push(_),s[x]=T}T>L7e&&(t instanceof Uint16Array||t instanceof Uint8Array)?t=new Uint32Array(t):T>V7e&&t instanceof Uint8Array&&(t=new Uint16Array(t)),x===c?(c=T,t[a]=T):x===l?(l=T,t[a+1]=T):(u=T,t[a+2]=T),x=Hbe(i,c,l,u,f,b,p)}}e._triangleIndices=t,e._outlineCoordinatesTypedArray=new Float32Array(i)}function Hbe(e,t,n,i,o,r,s){let a=s?1:0,c=o?1:0,l=0,u=Y7(e,t,a,c,l);if(u===0)return t;let m=0,f=o?1:0,b=r?1:0,p=Y7(e,n,m,f,b);if(p===0)return n;let x=s?1:0,T=0,_=r?1:0,L=Y7(e,i,x,T,_);if(L===0)return i;let V=u&p&L,Z,G,I;if(V&1)Z=0,G=1,I=2;else if(V&2)Z=0,I=1,G=2;else if(V&4)G=0,Z=1,I=2;else if(V&8)G=0,I=1,Z=2;else if(V&16)I=0,Z=1,G=2;else if(V&32)I=0,G=1,Z=2;else{let N=B7(u),y=B7(p),R=B7(L);return N<y&&N<R?t:y<R?n:i}let w=t*3;e[w+Z]=a,e[w+G]=c,e[w+I]=l;let W=n*3;e[W+Z]=m,e[W+G]=f,e[W+I]=b;let v=i*3;e[v+Z]=x,e[v+G]=T,e[v+I]=_}function Y7(e,t,n,i,o){let r=t*3,s=e[r],a=e[r+1],c=e[r+2];return d(s)?(s===n&&a===i&&c===o)<<0|(s===n&&a===o&&c===i)<<1|(s===i&&a===n&&c===o)<<2|(s===i&&a===o&&c===n)<<3|(s===o&&a===n&&c===i)<<4|(s===o&&a===i&&c===n)<<5:63}function B7(e){return(e&1)+(e>>1&1)+(e>>2&1)+(e>>3&1)+(e>>4&1)+(e>>5&1)}gY.prototype.updateAttribute=function(e){let t=this._extraVertices,n=e.length,i=n/this._originalVertexCount,o=t.length,r=e.constructor,s=new r(e.length+o*i);s.set(e);for(let a=0;a<o;a++){let c=t[a]*i,l=n+a*i;for(let u=0;u<i;u++)s[l+u]=s[c+u]}return s};gY.createTexture=function(e){let t=e.cache.modelOutliningCache;if(d(t)||(t=e.cache.modelOutliningCache={}),d(t.outlineTexture))return t.outlineTexture;let n=Math.min(4096,qt.maximumTextureSize),i=n,o=Jbe(i),r=[];for(;i>1;)i>>=1,r.push(Jbe(i));let s=new it({context:e,source:{arrayBufferView:o,mipLevels:r},width:n,height:1,pixelFormat:Ye.LUMINANCE,sampler:new un({wrapS:Nn.CLAMP_TO_EDGE,wrapT:Nn.CLAMP_TO_EDGE,minificationFilter:gn.LINEAR_MIPMAP_LINEAR,magnificationFilter:Ri.LINEAR})});return t.outlineTexture=s,s};function Jbe(e){let t=new Uint8Array(e);return t[e-1]=192,e===8?t[e-1]=96:e===4?t[e-1]=48:e===2?t[e-1]=24:e===1&&(t[e-1]=12),t}function Qbe(e,t){this._originalVertexCount=t,this._edges=new Set;for(let n=0;n<e.length;n+=2){let i=e[n],o=e[n+1],r=Math.min(i,o),s=Math.max(i,o),a=r*this._originalVertexCount+s;this._edges.add(a)}}Qbe.prototype.hasEdge=function(e,t){let n=Math.min(e,t),i=Math.max(e,t),o=n*this._originalVertexCount+i;return this._edges.has(o)};var uS=gY;function jbe(e){this.attribute=e,this.loadBuffer=!1,this.loadTypedArray=!1}function R7e(e){this.indices=e,this.loadBuffer=!1,this.loadTypedArray=!1}function xY(e){this.primitive=e,this.attributePlans=[],this.indicesPlan=void 0,this.needsOutlines=!1,this.outlineIndices=void 0}xY.prototype.postProcess=function(e){this.needsOutlines&&(G7e(this),I7e(this,e))};function G7e(e){let t=e.primitive,n=t.indices,i=t.attributes[0].count,o=new uS({triangleIndices:n.typedArray,outlineIndices:e.outlineIndices,originalVertexCount:i});n.typedArray=o.updatedTriangleIndices,n.indexDatatype=qe.fromTypedArray(n.typedArray);let r=E7e(o.outlineCoordinates),s=new jbe(r);s.loadBuffer=!0,s.loadTypedArray=!1,e.attributePlans.push(s),t.outlineCoordinates=s.attribute;let a=e.attributePlans,c=e.attributePlans.length;for(let l=0;l<c;l++){let u=a[l].attribute;u.typedArray=o.updateAttribute(u.typedArray)}}function E7e(e){let t=new hn.Attribute;return t.name="_OUTLINE_COORDINATES",t.typedArray=e,t.componentDatatype=H.FLOAT,t.type=kt.VEC3,t.normalized=!1,t.count=e.length/3,t}function I7e(e,t){X7e(e.attributePlans,t),d(e.indicesPlan)&&M7e(e.indicesPlan,t)}function X7e(e,t){let n=e.length;for(let i=0;i<n;i++){let o=e[i],r=o.attribute,s=r.typedArray;if(o.loadBuffer){let a=nt.createVertexBuffer({typedArray:s,context:t,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,r.buffer=a}o.loadTypedArray||(r.typedArray=void 0)}}function M7e(e,t){let n=e.indices;if(e.loadBuffer){let i=nt.createIndexBuffer({typedArray:n.typedArray,context:t,usage:Me.STATIC_DRAW,indexDatatype:n.indexDatatype});n.buffer=i,i.vertexArrayDestroyable=!1}e.loadTypedArray||(n.typedArray=void 0)}xY.AttributeLoadPlan=jbe;xY.IndicesLoadPlan=R7e;var mS=xY;var Y4n=S(C(),1);function w7e(e){e=g(e,g.EMPTY_OBJECT),this.webp=g(e.webp,!1),this.basis=g(e.basis,!1)}var RW=w7e;var hJn=S(C(),1);var O4n=S(C(),1);function qbe(e){this._position=e.position,this._adjustmentParams=e.adjustmentParams}Object.defineProperties(qbe.prototype,{position:{get:function(){return this._position}},adjustmentParams:{get:function(){return this._adjustmentParams}}});var GW=qbe;var H4n=S(C(),1);function $be(e){this._position=e.position,this._adjustmentParams=e.adjustmentParams,this._covarianceMatrix=e.covarianceMatrix}Object.defineProperties($be.prototype,{position:{get:function(){return this._position}},adjustmentParams:{get:function(){return this._adjustmentParams}},covarianceMatrix:{get:function(){return this._covarianceMatrix}}});var EW=$be;var Q4n=S(C(),1);function eye(e){this._groupFlags=e.groupFlags,this._rotationThetas=e.rotationThetas,this._params=e.params}Object.defineProperties(eye.prototype,{groupFlags:{get:function(){return this._groupFlags}},rotationThetas:{get:function(){return this._rotationThetas}},params:{get:function(){return this._params}}});var IW=eye;var eJn=S(C(),1);var q4n=S(C(),1),W7e={Direct:"Direct",Indirect:"Indirect"},zx=Object.freeze(W7e);function tye(e){this._storageType=e.storageType,this._anchorPointsIndirect=e.anchorPointsIndirect,this._anchorPointsDirect=e.anchorPointsDirect,this._intraTileCorrelationGroups=e.intraTileCorrelationGroups,this._covarianceDirect=e.covarianceDirect}Object.defineProperties(tye.prototype,{storageType:{get:function(){return this._storageType}},anchorPointsIndirect:{get:function(){return this._anchorPointsIndirect}},anchorPointsDirect:{get:function(){return this._anchorPointsDirect}},intraTileCorrelationGroups:{get:function(){return this._intraTileCorrelationGroups}},covarianceDirect:{get:function(){return this._covarianceDirect}}});var fZ=tye;var nJn=S(C(),1);function nye(e){this._A=e.A,this._alpha=e.alpha,this._beta=e.beta,this._T=e.T}Object.defineProperties(nye.prototype,{A:{get:function(){return this._A}},alpha:{get:function(){return this._alpha}},beta:{get:function(){return this._beta}},T:{get:function(){return this._T}}});var XW=nye;function bZ(){}function iye(e){return new $(e[0],e[1],e[3],e[1],e[2],e[4],e[3],e[4],e[5])}function P7e(e){let t=h.fromArray(e.position,0,new h),n=h.fromArray(e.adjustmentParams,0,new h);return new GW({position:t,adjustmentParams:n})}function v7e(e){let t=h.fromArray(e.position,0,new h),n=h.fromArray(e.adjustmentParams,0,new h),i=iye(e.covarianceMatrix);return new EW({position:t,adjustmentParams:n,covarianceMatrix:i})}function N7e(e){let t=e.groupFlags,n=h.fromArray(e.rotationThetas,0,new h),i=[];for(let r of e.params){let s=new XW({A:r.A,alpha:r.alpha,beta:r.beta,T:r.T});i.push(s)}return new IW({groupFlags:t,rotationThetas:n,params:i})}bZ.load=function(e){let t=e.storageType;if(t===zx.Direct)return bZ.loadDirect(e);if(t===zx.Indirect)return bZ.loadIndirect(e);throw new le(`Invalid storage type in NGA_gpm_local - expected 'Direct' or 'Indirect', but found ${t}`)};bZ.loadDirect=function(e){let t=[],n=e.anchorPointsDirect;for(let r of n){let s=P7e(r);t.push(s)}let i=iye(e.covarianceDirectUpperTriangle);return new fZ({storageType:zx.Direct,anchorPointsDirect:t,covarianceDirect:i})};bZ.loadIndirect=function(e){let t=[],n=e.anchorPointsIndirect;for(let s of n){let a=v7e(s);t.push(a)}let i=e.intraTileCorrelationGroups,o=[];for(let s of i){let a=N7e(s);o.push(a)}return new fZ({storageType:zx.Indirect,anchorPointsIndirect:t,intraTileCorrelationGroups:o})};var MW=bZ;var MJn=S(C(),1);var fJn=S(C(),1);function oye(e){this._traits=e.traits,this._noData=e.noData,this._offset=e.offset,this._scale=e.scale,this._index=e.index,this._texCoord=e.texCoord}Object.defineProperties(oye.prototype,{traits:{get:function(){return this._traits}},noData:{get:function(){return this._noData}},offset:{get:function(){return this._offset}},scale:{get:function(){return this._scale}},index:{get:function(){return this._index}},texCoord:{get:function(){return this._texCoord}}});var wW=oye;var yJn=S(C(),1);function rye(e){this._min=e.min,this._max=e.max,this._source=e.source}Object.defineProperties(rye.prototype,{min:{get:function(){return this._min}},max:{get:function(){return this._max}},source:{get:function(){return this._source}}});var WW=rye;var xJn=S(C(),1);function sye(e){this._ppeTextures=e}Object.defineProperties(sye.prototype,{ppeTextures:{get:function(){return this._ppeTextures}}});var PW=sye;function Ss(e){e=g(e,g.EMPTY_OBJECT);let t=e.gltf,n=e.extension,i=e.gltfResource,o=e.baseResource,r=e.supportedImageFormats,s=e.frameState,a=e.cacheKey,c=g(e.asynchronous,!0);this._gltfResource=i,this._baseResource=o,this._gltf=t,this._extension=n,this._supportedImageFormats=r,this._frameState=s,this._cacheKey=a,this._asynchronous=c,this._textureLoaders=[],this._textureIds=[],this._meshPrimitiveGpmLocal=void 0,this._structuralMetadata=void 0,this._state=Xt.UNLOADED,this._promise=void 0}d(Object.create)&&(Ss.prototype=Object.create(vi.prototype),Ss.prototype.constructor=Ss);Object.defineProperties(Ss.prototype,{cacheKey:{get:function(){return this._cacheKey}},meshPrimitiveGpmLocal:{get:function(){return this._meshPrimitiveGpmLocal}},structuralMetadata:{get:function(){return this._structuralMetadata}}});Ss.prototype._loadResources=async function(){try{return await this._loadTextures(),this.isDestroyed()?void 0:(this._gltf=void 0,this._state=Xt.LOADED,this)}catch(e){if(this.isDestroyed())return;throw this.unload(),this._state=Xt.FAILED,this.getError("Failed to load GPM data",e)}};Ss.prototype.load=function(){return d(this._promise)?this._promise:(this._state=Xt.LOADING,this._promise=this._loadResources(this),this._promise)};function F7e(e){let t={},n=e.ppeTextures;if(d(n))for(let i=0;i<n.length;i++){let o=n[i];t[o.index]=o}return t}Ss.prototype._loadTextures=function(){let e;d(this._extension)&&(e=F7e(this._extension));let t=this._gltf,n=this._gltfResource,i=this._baseResource,o=this._supportedImageFormats,r=this._frameState,s=this._asynchronous,a=[];for(let c in e)if(e.hasOwnProperty(c)){let l=ji.getTextureLoader({gltf:t,textureInfo:e[c],gltfResource:n,baseResource:i,supportedImageFormats:o,frameState:r,asynchronous:s});this._textureLoaders.push(l),this._textureIds.push(c),a.push(l.load())}return Promise.all(a)};Ss.ppeTexturesMetadataSchemaCache=new Map;Ss._createPpeTextureClassJson=function(e,t){let n=e.traits,i=n.source;return{name:`PPE texture class ${t}`,properties:{[i]:{name:"PPE",type:"SCALAR",componentType:"UINT8",normalized:!0,min:n.min,max:n.max}}}};Ss._obtainPpeTexturesMetadataSchema=function(e){let n=Ss._collectPpeTexturePropertyIdentifiers(e).toString(),i=Ss.ppeTexturesMetadataSchemaCache.get(n);if(d(i))return i;let r={id:`PPE_TEXTURE_SCHEMA_${Ss.ppeTexturesMetadataSchemaCache.size}`,classes:{}},s=e.ppeTextures;for(let a=0;a<s.length;a++){let c=s[a],l=`ppeTexture_${a}`,u=Ss._createPpeTextureClassJson(c,a);r.classes[l]=u}return i=Rl.fromJson(r),Ss.ppeTexturesMetadataSchemaCache.set(n,i),i};Ss._collectPpeTexturePropertyIdentifiers=function(e){let t=[],n=e.ppeTextures;for(let i=0;i<n.length;i++){let o=n[i],r=Ss._createPpeTextureClassJson(o,i),s=JSON.stringify(r);t.push(s)}return t};Ss._convertToStructuralMetadata=function(e,t){let n=[],i=Ss._obtainPpeTexturesMetadataSchema(e),o=e.ppeTextures;for(let s=0;s<o.length;s++){let a=o[s],c=`ppeTexture_${s}`,u=a.traits.source,m=i.classes[c],f=(a.scale??1)*255,b={class:c,properties:{[u]:{index:a.index,texCoord:a.texCoord,offset:a.offset,scale:f}}};n.push(new my({id:s,name:a.name,propertyTexture:b,class:m,textures:t}))}return new mr({schema:i,propertyTables:[],propertyTextures:n,propertyAttributes:[]})};Ss.prototype.process=function(e){if(this._state===Xt.READY)return!0;if(this._state!==Xt.LOADED)return!1;let t=this._textureLoaders,n=t.length,i=!0;for(let l=0;l<n;++l){let m=t[l].process(e);i=i&&m}if(!i)return!1;let o={};for(let l=0;l<this._textureIds.length;++l){let u=this._textureIds[l],m=t[l];m.isDestroyed()||(o[u]=m.texture)}let r=[],s=this._extension;if(d(s.ppeTextures)){let l=s.ppeTextures;for(let u of l){let m=u.traits,f=new WW({min:m.min,max:m.max,source:m.source}),b=new wW({traits:f,noData:u.noData,offset:u.offset,scale:u.scale,index:u.index,texCoord:u.texCoord});r.push(b)}}let a=new PW(r);this._meshPrimitiveGpmLocal=a;let c=Ss._convertToStructuralMetadata(a,o);return this._structuralMetadata=c,this._state=Xt.READY,!0};Ss.prototype._unloadTextures=function(){let e=this._textureLoaders,t=e.length;for(let n=0;n<t;++n)ji.unload(e[n]);this._textureLoaders.length=0,this._textureIds.length=0};Ss.prototype.unload=function(){this._unloadTextures(),this._gltf=void 0,this._extension=void 0,this._structuralMetadata=void 0};var vW=Ss;var{Attribute:A7e,Indices:D7e,FeatureIdAttribute:H7,FeatureIdTexture:aye,FeatureIdImplicitRange:cye,MorphTarget:U7e,Primitive:k7e,Instances:z7e,Skin:Y7e,Node:B7e,AnimatedPropertyType:O7e,AnimationSampler:K7e,AnimationTarget:H7e,AnimationChannel:J7e,Animation:Q7e,ArticulationStage:j7e,Articulation:q7e,Asset:$7e,Scene:e6e,Components:t6e,MetallicRoughness:n6e,SpecularGlossiness:i6e,Specular:o6e,Anisotropy:O7,Clearcoat:K7,Material:r6e}=hn,Pr={NOT_LOADED:0,LOADING:1,LOADED:2,PROCESSING:3,POST_PROCESSING:4,PROCESSED:5,READY:6,FAILED:7,UNLOADED:8};function Zp(e){e=g(e,g.EMPTY_OBJECT);let{gltfResource:t,typedArray:n,releaseGltfJson:i=!1,asynchronous:o=!0,incrementallyLoadTextures:r=!0,upAxis:s=In.Y,forwardAxis:a=In.Z,loadAttributesAsTypedArray:c=!1,loadAttributesFor2D:l=!1,enablePick:u=!1,loadIndicesForWireframe:m=!1,loadPrimitiveOutline:f=!0,loadForClassification:b=!1,renameBatchIdSemantic:p=!1,tilesetVersion:x,fillClip:T,hasSectionGeometry:_,generateUniqueId:L,batchLength:V}=e,{baseResource:Z=t.clone()}=e;this._gltfJson=e.gltfJson,this._gltfResource=t,this._baseResource=Z,this._typedArray=n,this._releaseGltfJson=i,this._asynchronous=o,this._incrementallyLoadTextures=r,this._upAxis=s,this._forwardAxis=a,this._loadAttributesAsTypedArray=c,this._loadAttributesFor2D=l,this._enablePick=u,this._loadIndicesForWireframe=m,this._loadPrimitiveOutline=f,this._loadForClassification=b,this._renameBatchIdSemantic=p,this._tilesetVersion=x,this._fillClip=T,this._hasSectionGeometry=_,this._generateUniqueId=L,this._batchLength=V??0,this._sortedPropertyTableIds=void 0,this._sortedFeatureTextureIds=void 0,this._gltfJsonLoader=void 0,this._state=Pr.NOT_LOADED,this._textureState=Pr.NOT_LOADED,this._promise=void 0,this._processError=void 0,this._textureErrors=[],this._primitiveLoadPlans=[],this._loaderPromises=[],this._textureLoaders=[],this._texturesPromises=[],this._textureCallbacks=[],this._bufferViewLoaders=[],this._geometryLoaders=[],this._geometryCallbacks=[],this._structuralMetadataLoader=void 0,this._meshPrimitiveGpmLoader=void 0,this._loadResourcesPromise=void 0,this._resourcesLoaded=!1,this._texturesLoaded=!1,this._supportedImageFormats=void 0,this._postProcessBuffers=[],this._components=void 0}d(Object.create)&&(Zp.prototype=Object.create(vi.prototype),Zp.prototype.constructor=Zp);Object.defineProperties(Zp.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},gltfJson:{get:function(){return d(this._gltfJsonLoader)?this._gltfJsonLoader.gltf:this._gltfJson}},incrementallyLoadTextures:{get:function(){return this._incrementallyLoadTextures}},texturesLoaded:{get:function(){return this._texturesLoaded}}});async function s6e(e){e._state=Pr.LOADING,e._textureState=Pr.LOADING;try{let t=ji.getGltfJsonLoader({gltfResource:e._gltfResource,baseResource:e._baseResource,typedArray:e._typedArray,gltfJson:e._gltfJson});return e._gltfJsonLoader=t,await t.load(),e.isDestroyed()||e.isUnloaded()||t.isDestroyed()?void 0:(e._state=Pr.LOADED,e._textureState=Pr.LOADED,e)}catch(t){if(e.isDestroyed())return;e._state=Pr.FAILED,e._textureState=Pr.FAILED,TY(e,t)}}async function a6e(e,t){bn.supportsWebP.initialized||await bn.supportsWebP.initialize(),e._supportedImageFormats=new RW({webp:bn.supportsWebP(),basis:t.context.supportsBasis});let n=dqe(e,t);return e._state=Pr.PROCESSING,e._textureState=Pr.PROCESSING,d(e._gltfJsonLoader)&&e._releaseGltfJson&&(ji.unload(e._gltfJsonLoader),e._gltfJsonLoader=void 0),n}Zp.prototype.load=async function(){return d(this._promise)?this._promise:(this._promise=s6e(this),this._promise)};function TY(e,t){throw e.unload(),e.getError("Failed to load glTF",t)}function c6e(e,t){let n=!0,i=e._geometryLoaders;for(let s=0;s<i.length;++s){let a=i[s].process(t);a&&d(e._geometryCallbacks[s])&&(e._geometryCallbacks[s](),e._geometryCallbacks[s]=void 0),n=n&&a}let o=e._structuralMetadataLoader;if(d(o)){let s=o.process(t);s&&(e._components.structuralMetadata=o.structuralMetadata),n=n&&s}let r=e._meshPrimitiveGpmLoader;if(d(r)){let s=r.process(t);s&&(d(e._components.structuralMetadata)&&Ft("structural-metadata-gpm","The model defines both the 'EXT_structural_metadata' extension and the 'NGA_gpm_local' extension. The data from the 'EXT_structural_metadata' extension will be replaced with the data from the 'NGA_gpm_local' extension, and will no longer be available for styling and picking."),e._components.structuralMetadata=r.structuralMetadata),n=n&&s}n&&(e._state=Pr.POST_PROCESSING)}function l6e(e,t){let n=e._primitiveLoadPlans;for(let i=0;i<n.length;i++){let o=n[i];o.postProcess(t),o.needsOutlines&&d6e(e,o)}}function d6e(e,t){let n=e._postProcessBuffers,i=t.primitive,o=i.outlineCoordinates;d(o)&&n.push(o.buffer);let r=i.attributes;for(let a=0;a<r.length;a++){let c=r[a];d(c.buffer)&&n.push(c.buffer)}let s=i.indices;d(s)&&d(s.buffer)&&n.push(s.buffer)}Zp.prototype._process=function(e){return this._state===Pr.READY?!0:(this._state===Pr.PROCESSING&&c6e(this,e),this._resourcesLoaded&&this._state===Pr.POST_PROCESSING&&(l6e(this,e.context),this._state=Pr.PROCESSED),this._resourcesLoaded&&this._state===Pr.PROCESSED?(yye(this),this._typedArray=void 0,this._state=Pr.READY,!0):!1)};Zp.prototype._processTextures=function(e){if(this._textureState===Pr.READY)return!0;if(this._textureState!==Pr.PROCESSING)return!1;let t=!0,n=this._textureLoaders;for(let i=0;i<n.length;++i){let o=n[i].process(e);o&&d(this._textureCallbacks[i])&&(this._textureCallbacks[i](),this._textureCallbacks[i]=void 0),t=t&&o}return t?(this._textureState=Pr.READY,this._texturesLoaded=!0,!0):!1};Zp.prototype.process=function(e){if(this._state===Pr.LOADED&&!d(this._loadResourcesPromise)&&(this._loadResourcesPromise=a6e(this,e).then(()=>{this._resourcesLoaded=!0}).catch(o=>{this._processError=o})),d(this._processError)){this._state=Pr.FAILED;let o=this._processError;this._processError=void 0,TY(this,o)}let t=this._textureErrors.pop();if(d(t)){let o=this.getError("Failed to load glTF texture",t);throw o.name="TextureError",o}if(this._state===Pr.FAILED)return!1;let n=!1;try{n=this._process(e)}catch(o){this._state=Pr.FAILED,TY(this,o)}let i=!1;try{i=this._processTextures(e)}catch(o){this._textureState=Pr.FAILED,TY(this,o)}return this._incrementallyLoadTextures?n:n&&i};function u6e(e,t,n,i,o,r,s){let a=e.gltfJson,l=a.accessors[t].bufferView;return ji.getVertexBufferLoader({gltf:a,gltfResource:e._gltfResource,baseResource:e._baseResource,frameState:s,bufferViewId:l,draco:i,attributeSemantic:n,accessorId:t,asynchronous:e._asynchronous,loadBuffer:o,loadTypedArray:r})}function m6e(e,t,n,i,o,r){return ji.getIndexBufferLoader({gltf:e.gltfJson,accessorId:t,gltfResource:e._gltfResource,baseResource:e._baseResource,frameState:r,draco:n,asynchronous:e._asynchronous,loadBuffer:i,loadTypedArray:o})}function h6e(e,t){let n=ji.getBufferViewLoader({gltf:e.gltfJson,bufferViewId:t,gltfResource:e._gltfResource,baseResource:e._baseResource});return e._bufferViewLoaders.push(n),n}function lye(e,t,n){let i=t.byteOffset,o=qd(e,t),r=t.count,s=Du(t.type),a=t.componentType,c=H.getSizeInBytes(a),l=c*s,u=r*s;if(o===l)return n=new Uint8Array(n),H.createArrayBufferView(a,n.buffer,n.byteOffset+i,u);let m=H.createTypedArray(a,u),f=new DataView(n.buffer),b=new Array(s),p=dy(t.componentType);i=n.byteOffset+i;for(let x=0;x<r;++x){p(f,i,s,c,b);for(let T=0;T<s;++T)m[x*s+T]=b[T];i+=o}return m}function p6e(e,t){let n=e.type;if(n===kt.SCALAR)return t.fill(0);let i=kt.getMathType(n);return t.fill(i.clone(i.ZERO))}function f6e(e,t,n,i){let o=e.type,r=e.count;if(o===kt.SCALAR)for(let s=0;s<r;s++)n[s]=t[s];else if(o===kt.VEC4&&i)for(let s=0;s<r;s++)n[s]=Be.unpack(t,s*4);else{let s=kt.getMathType(o),a=kt.getNumberOfComponents(o);for(let c=0;c<r;c++)n[c]=s.unpack(t,c*a)}return n}async function b6e(e,t,n,i,o){let{gltfJson:r}=e;if(await t.load(),e.isDestroyed())return;let s=lye(r,n,t.typedArray);i=g(i,!1),f6e(n,s,o,i)}function _Y(e,t,n){let i=new Array(t.count),o=t.bufferView;if(d(o)){let r=h6e(e,o),s=b6e(e,r,t,n,i);return e._loaderPromises.push(s),i}return p6e(t,i)}function Uu(e,t){if(d(t))return e===Number?t[0]:e.unpack(t)}function y6e(e){return e===Number?0:new e}function g6e(e){switch(e){case H.BYTE:return 127;case H.UNSIGNED_BYTE:return 255;case H.SHORT:return 32767;case H.UNSIGNED_SHORT:return 65535;default:return 1}}var x6e={VEC2:new B(-1,-1),VEC3:new h(-1,-1,-1),VEC4:new re(-1,-1,-1,-1)};function T6e(e,t){let n=g6e(e.componentDatatype),i=x6e[e.type],o=e.min;d(o)&&(o=t.divideByScalar(o,n,o),o=t.maximumByComponent(o,i,o));let r=e.max;d(r)&&(r=t.divideByScalar(r,n,r),r=t.maximumByComponent(r,i,r)),e.min=o,e.max=r}function _6e(e,t,n){let i=e.decodeMatrix,o=Uu(n,e.decodedMin),r=Uu(n,e.decodedMax);d(o)&&d(r)&&(t.min=o,t.max=r);let s=new hn.Quantization;s.componentDatatype=t.componentDatatype,s.type=t.type,i.length===4?(s.quantizedVolumeOffset=i[2],s.quantizedVolumeStepSize=i[0]):i.length===9?(s.quantizedVolumeOffset=new B(i[6],i[7]),s.quantizedVolumeStepSize=new B(i[0],i[4])):i.length===16?(s.quantizedVolumeOffset=new h(i[12],i[13],i[14]),s.quantizedVolumeStepSize=new h(i[0],i[5],i[10])):i.length===25&&(s.quantizedVolumeOffset=new re(i[20],i[21],i[22],i[23]),s.quantizedVolumeStepSize=new re(i[0],i[6],i[12],i[18])),t.quantization=s}function S6e(e,t,n,i,o){let r=e.accessors[t],s=kt.getMathType(r.type),a=g(r.normalized,!1),c=new A7e;c.name=n,c.semantic=i,c.setIndex=o,c.constant=y6e(s),c.componentDatatype=r.componentType,c.normalized=a,c.count=r.count,c.type=r.type,c.min=Uu(s,r.min),c.max=Uu(s,r.max),c.byteOffset=r.byteOffset,c.byteStride=qd(e,r),Zi(r,"WEB3D_quantized_attributes")&&_6e(r.extensions.WEB3D_quantized_attributes,c,s);let l=c.semantic===ut.POSITION||c.semantic===ut.NORMAL||c.semantic===ut.TANGENT||c.semantic===ut.TEXCOORD;return e.extensionsRequired?.includes("KHR_mesh_quantization")&&a&&l&&T6e(c,s),c}function dye(e){let n=/^\w+_(\d+)$/.exec(e);if(n!==null)return parseInt(n[1])}var C6e={gltfSemantic:void 0,renamedSemantic:void 0,modelSemantic:void 0};function J7(e,t,n){let i=n;(e._renameBatchIdSemantic&&(n==="_BATCHID"||n==="BATCHID")||n==="_OID")&&(i="_FEATURE_ID_0");let o=t.fromGltfSemantic(i),r=C6e;return r.gltfSemantic=n,r.renamedSemantic=i,r.modelSemantic=o,r}function L6e(e){let t=e===ut.POSITION,n=e===ut.FEATURE_ID,i=e===ut.TEXCOORD;return t||n||i}function V6e(e,t,n,i){if(e.byteOffset=0,e.byteStride=void 0,e.quantization=t.quantization,n&&(e.buffer=t.buffer),i){let o=d(t.quantization)?t.quantization.componentDatatype:e.componentDatatype;e.typedArray=H.createArrayBufferView(o,t.typedArray.buffer)}}function Z6e(e,t,n,i,o,r){if(o&&(n.buffer=i.buffer),r){let s=i.typedArray;n.typedArray=lye(e,t,s),o||(n.byteOffset=0,n.byteStride=void 0)}}function uye(e,t,n,i,o,r,s){(e._fillClip||e._hasSectionGeometry)&&(r=!0);let a=e.gltfJson,c=a.accessors[t],l=c.bufferView,u=n.gltfSemantic,m=n.renamedSemantic,f=n.modelSemantic,b=d(f)?dye(m):void 0,x=S6e(a,t,u,f,b);if(!d(i)&&!d(l))return x;let T=u6e(e,t,u,i,o,r,s),_=e._geometryLoaders.length;e._geometryLoaders.push(T);let L=T.load();return e._loaderPromises.push(L),e._geometryCallbacks[_]=()=>{d(i)&&d(i.attributes)&&d(i.attributes[u])?V6e(x,T,o,r):Z6e(a,c,x,T,o,r)},x}function mye(e,t,n,i,o,r,s){let a=n.modelSemantic,c=a===ut.POSITION,l=a===ut.FEATURE_ID,u=c&&!o&&e._loadAttributesFor2D&&!s.scene3DOnly,m=c&&e._enablePick&&!s.context.webgl2,f=e._loadForClassification&&l,b=e._loadAttributesAsTypedArray,p=!b,x=b||u||m||f,L=uye(e,t,n,i,r?!1:p,r?!0:x,s),V=new mS.AttributeLoadPlan(L);return V.loadBuffer=p,V.loadTypedArray=x,V}function R6e(e,t,n,i,o){let r=e.gltfJson.accessors,s=d(n.ROTATION),a=d(n.TRANSLATION)&&d(r[n.TRANSLATION].min)&&d(r[n.TRANSLATION].max),c=J7(e,kr,i),l=c.modelSemantic,u=l===kr.TRANSLATION||l===kr.ROTATION||l===kr.SCALE,m=l===kr.TRANSLATION,f=e._loadAttributesAsTypedArray||s&&u||!o.context.instancedArrays,b=e._enablePick&&!o.context.webgl2,p=!f,x=e._loadAttributesFor2D&&!o.scene3DOnly;return uye(e,t,c,void 0,p,f||m&&(!a||x||b),o)}function G6e(e,t,n,i,o,r){let s=e.gltfJson.accessors[t],a=s.bufferView;if(!d(n)&&!d(a))return;let c=new D7e;c.count=s.count;let l=e._loadAttributesAsTypedArray,u=(e._loadIndicesForWireframe||e._enablePick)&&!r.context.webgl2,m=e._loadForClassification&&i,b=!l,p=l||u||m,_=m6e(e,t,n,o?!1:b,o?!0:p,r),L=e._geometryLoaders.length;e._geometryLoaders.push(_);let V=_.load();e._loaderPromises.push(V),e._geometryCallbacks[L]=()=>{c.indexDatatype=_.indexDatatype,c.buffer=_.buffer,c.typedArray=_.typedArray};let Z=new mS.IndicesLoadPlan(c);return Z.loadBuffer=b,Z.loadTypedArray=p,Z}function cd(e,t,n,i){let o=e.gltfJson,r=$d.getImageIdFromTexture({gltf:o,textureId:t.index,supportedImageFormats:e._supportedImageFormats});if(!d(r))return;let s=ji.getTextureLoader({gltf:o,textureInfo:t,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:e._supportedImageFormats,frameState:n,asynchronous:e._asynchronous}),a=$d.createModelTextureReader({textureInfo:t}),c=e._textureLoaders.length;e._textureLoaders.push(s);let l=s.load().catch(u=>{if(!e.isDestroyed()){if(!e._incrementallyLoadTextures)throw u;e._textureState=Pr.FAILED,e._textureErrors.push(u)}});return e._texturesPromises.push(l),e._textureCallbacks[c]=()=>{a.texture=s.texture,d(i)&&(a.texture.sampler=i)},a}function E6e(e,t,n){let{diffuseTexture:i,specularGlossinessTexture:o,diffuseFactor:r,specularFactor:s,glossinessFactor:a}=t,c=new i6e;return d(i)&&(c.diffuseTexture=cd(e,i,n)),d(o)&&(c.specularGlossinessTexture=cd(e,o,n)),c.diffuseFactor=Uu(re,r),c.specularFactor=Uu(h,s),c.glossinessFactor=a,c}function I6e(e,t,n){let{baseColorTexture:i,metallicRoughnessTexture:o,baseColorFactor:r,metallicFactor:s,roughnessFactor:a}=t,c=new n6e;return d(i)&&(c.baseColorTexture=cd(e,i,n)),d(o)&&(c.metallicRoughnessTexture=cd(e,o,n)),c.baseColorFactor=Uu(re,r),c.metallicFactor=s,c.roughnessFactor=a,c}function X6e(e,t,n){let{specularFactor:i,specularTexture:o,specularColorFactor:r,specularColorTexture:s}=t,a=new o6e;return d(o)&&(a.specularTexture=cd(e,o,n)),d(s)&&(a.specularColorTexture=cd(e,s,n)),a.specularFactor=i,a.specularColorFactor=Uu(h,r),a}function M6e(e,t,n){let{anisotropyStrength:i=O7.DEFAULT_ANISOTROPY_STRENGTH,anisotropyRotation:o=O7.DEFAULT_ANISOTROPY_ROTATION,anisotropyTexture:r}=t,s=new O7;return d(r)&&(s.anisotropyTexture=cd(e,r,n)),s.anisotropyStrength=i,s.anisotropyRotation=o,s}function w6e(e,t,n){let{clearcoatFactor:i=K7.DEFAULT_CLEARCOAT_FACTOR,clearcoatTexture:o,clearcoatRoughnessFactor:r=K7.DEFAULT_CLEARCOAT_ROUGHNESS_FACTOR,clearcoatRoughnessTexture:s,clearcoatNormalTexture:a}=t,c=new K7;return d(o)&&(c.clearcoatTexture=cd(e,o,n)),d(s)&&(c.clearcoatRoughnessTexture=cd(e,s,n)),d(a)&&(c.clearcoatNormalTexture=cd(e,a,n)),c.clearcoatFactor=i,c.clearcoatRoughnessFactor=r,c}function W6e(e,t,n){let i=new r6e,o=g(t.extensions,g.EMPTY_OBJECT),r=o.KHR_materials_pbrSpecularGlossiness,s=o.KHR_materials_specular,a=o.KHR_materials_anisotropy,c=o.KHR_materials_clearcoat,l=t.pbrMetallicRoughness;return i.unlit=d(o.KHR_materials_unlit),d(r)?i.specularGlossiness=E6e(e,r,n):(d(l)&&(i.metallicRoughness=I6e(e,l,n)),d(s)&&!i.unlit&&(i.specular=X6e(e,s,n)),d(a)&&!i.unlit&&(i.anisotropy=M6e(e,a,n)),d(c)&&!i.unlit&&(i.clearcoat=w6e(e,c,n))),d(t.emissiveTexture)&&(i.emissiveTexture=cd(e,t.emissiveTexture,n)),d(t.normalTexture)&&!e._loadForClassification&&(i.normalTexture=cd(e,t.normalTexture,n)),d(t.occlusionTexture)&&(i.occlusionTexture=cd(e,t.occlusionTexture,n)),i.emissiveFactor=Uu(h,t.emissiveFactor),i.alphaMode=t.alphaMode,i.alphaCutoff=t.alphaCutoff,i.doubleSided=t.doubleSided,i}function hye(e,t){let n=new H7;return n.featureCount=e.featureCount,n.nullFeatureId=e.nullFeatureId,n.propertyTableId=e.propertyTable,n.setIndex=e.attribute,n.label=e.label,n.positionalLabel=t,n}function pye(e,t,n,i){let o=new H7,r=e.featureIds;return o.featureCount=n,o.propertyTableId=t,o.setIndex=dye(r.attribute),o.positionalLabel=i,o}function fye(e,t){let n=new cye;return n.propertyTableId=e.propertyTable,n.featureCount=e.featureCount,n.nullFeatureId=e.nullFeatureId,n.label=e.label,n.positionalLabel=t,n.offset=0,n.repeat=1,n}function bye(e,t,n,i){let o=new cye,r=e.featureIds;o.propertyTableId=t,o.featureCount=n,o.offset=g(r.constant,0);let s=g(r.divisor,0);return o.repeat=s===0?void 0:s,o.positionalLabel=i,o}function P6e(e,t,n,i){let o=new aye;o.featureCount=t.featureCount,o.nullFeatureId=t.nullFeatureId,o.propertyTableId=t.propertyTable,o.label=t.label,o.positionalLabel=i;let r=t.texture;o.textureReader=cd(e,r,n,un.NEAREST);let a=(d(r.channels)?r.channels:[0]).map(function(c){return"rgba".charAt(c)}).join("");return o.textureReader.channels=a,o}function v6e(e,t,n,i,o,r){let s=new aye,a=t.featureIds,c=a.texture;return s.featureCount=o,s.propertyTableId=n,s.textureReader=cd(e,c,i,un.NEAREST),s.textureReader.channels=a.channels,s.positionalLabel=r,s}function N6e(e,t,n,i,o){let r=new U7e,s=void 0,a=!1;for(let c in t){if(!t.hasOwnProperty(c))continue;let l=t[c],u=J7(e,ut,c),m=mye(e,l,u,s,a,n,o);r.attributes.push(m.attribute),i.attributePlans.push(m)}return r}function F6e(e,t,n,i){let o=new k7e,r=new mS(o);e._primitiveLoadPlans.push(r);let s=t.material;d(s)&&(o.material=W6e(e,e.gltfJson.materials[s],i));let a=g(t.extensions,g.EMPTY_OBJECT),c=!1,l=a.CESIUM_primitive_outline;e._loadPrimitiveOutline&&d(l)&&(c=!0,r.needsOutlines=!0,r.outlineIndices=A6e(e,l,r));let u=e._loadForClassification,m=a.KHR_draco_mesh_compression,f=!1,b=t.attributes;if(d(b))for(let G in b){if(!b.hasOwnProperty(G))continue;let I=b[G];if(e._tilesetVersion==="2.0"&&(G==="_BATCHID"||G==="BATCHID"))continue;let w=J7(e,ut,G),W=w.modelSemantic;if(u&&!L6e(W))continue;W===ut.FEATURE_ID&&(f=!0);let v=mye(e,I,w,m,n,c,i);r.attributePlans.push(v),o.attributes.push(v.attribute)}let p=t.targets;if(d(p)&&!u)for(let G=0;G<p.length;++G)o.morphTargets.push(N6e(e,p[G],c,r,i));let x=t.indices;if(d(x)){let G=G6e(e,x,m,f,c,i);d(G)&&(r.indicesPlan=G,o.indices=G.indices)}let T=a.EXT_structural_metadata,_=a.EXT_mesh_features,L=a.EXT_feature_metadata,V=d(L);d(_)?D6e(e,o,_,i):V&&U6e(e,o,L,i),d(T)?k6e(o,T):V&&z6e(e,o,L);let Z=t.mode;if(u&&Z!==Fe.TRIANGLES)throw new le("Only triangle meshes can be used for classification.");return o.primitiveType=Z,o}function A6e(e,t){let n=t.indices,i=e.gltfJson.accessors[n];return _Y(e,i,!1)}function D6e(e,t,n,i){let o;d(n)&&d(n.featureIds)?o=n.featureIds:o=[];for(let r=0;r<o.length;r++){let s=o[r],a=`featureId_${r}`,c;d(s.texture)?c=P6e(e,s,i,a):d(s.attribute)?c=hye(s,a):c=fye(s,a),t.featureIds.push(c)}}function U6e(e,t,n,i){let{featureTables:o}=e.gltfJson.extensions.EXT_feature_metadata,r=0,s=n.featureIdAttributes;if(d(s))for(let c=0;c<s.length;++c){let l=s[c],u=l.featureTable,m=e._sortedPropertyTableIds.indexOf(u),f=o[u].count,b=`featureId_${r}`;r++;let p;d(l.featureIds.attribute)?p=pye(l,m,f,b):p=bye(l,m,f,b),t.featureIds.push(p)}let a=n.featureIdTextures;if(d(a))for(let c=0;c<a.length;++c){let l=a[c],u=l.featureTable,m=e._sortedPropertyTableIds.indexOf(u),f=o[u].count,b=`featureId_${r}`;r++;let p=v6e(e,l,m,i,f,b);t.featureIds.push(p)}}function k6e(e,t){d(t)&&(d(t.propertyTextures)&&(e.propertyTextureIds=t.propertyTextures),d(t.propertyAttributes)&&(e.propertyAttributeIds=t.propertyAttributes))}function z6e(e,t,n){d(n.featureTextures)&&(t.propertyTextureIds=n.featureTextures.map(function(i){return e._sortedFeatureTextureIds.indexOf(i)}))}function Y6e(e,t,n){let i=t.EXT_mesh_gpu_instancing,o=new z7e,r=i.attributes;if(d(r))for(let l in r){if(!r.hasOwnProperty(l))continue;let u=r[l];o.attributes.push(R6e(e,u,r,l,n))}let s=g(i.extensions,g.EMPTY_OBJECT),a=t.EXT_instance_features,c=s.EXT_feature_metadata;if(e._tilesetVersion==="2.2"&&e._batchLength>0&&d(i)){let l=new H7;l.propertyTableId=0,l.setIndex=0,l.positionalLabel="instanceFeatureId_0",o.featureIds.push(l)}return d(a)?B6e(o,a):d(c)&&O6e(e.gltfJson,o,c,e._sortedPropertyTableIds),o}function B6e(e,t){let n=t.featureIds;for(let i=0;i<n.length;i++){let o=n[i],r=`instanceFeatureId_${i}`,s;d(o.attribute)?s=hye(o,r):s=fye(o,r),e.featureIds.push(s)}}function O6e(e,t,n,i){let o=e.extensions.EXT_feature_metadata.featureTables,r=n.featureIdAttributes;if(d(r))for(let s=0;s<r.length;++s){let a=r[s],c=a.featureTable,l=i.indexOf(c),u=o[c].count,m=`instanceFeatureId_${s}`,f;d(a.featureIds.attribute)?f=pye(a,l,u,m):f=bye(a,l,u,m),t.featureIds.push(f)}}function K6e(e,t,n){let i=new B7e;i.name=t.name,i.matrix=Uu(P,t.matrix),i.translation=Uu(h,t.translation),i.rotation=Uu(Be,t.rotation),i.scale=Uu(h,t.scale);let o=g(t.extensions,g.EMPTY_OBJECT),r=o.EXT_mesh_gpu_instancing,s=o.AGI_articulations;if(d(r)){if(e._loadForClassification)throw new le("Models with the EXT_mesh_gpu_instancing extension cannot be used for classification.");i.instances=Y6e(e,o,n)}d(s)&&(i.articulationName=s.articulationName);let a=t.mesh;if(d(a)){let c=e.gltfJson.meshes[a],l=c.primitives;for(let f=0;f<l.length;++f)i.primitives.push(F6e(e,l[f],d(i.instances),n));let u=g(t.weights,c.weights),m=i.primitives[0].morphTargets;i.morphWeights=d(u)?u.slice():new Array(m.length).fill(0)}return i}function H6e(e,t){let n=e.gltfJson.nodes;if(!d(n))return[];let i=n.map(function(o,r){let s=K6e(e,o,t);return s.index=r,s});for(let o=0;o<i.length;++o){let r=n[o].children;if(d(r))for(let s=0;s<r.length;++s)i[o].children.push(i[r[s]])}return i}function J6e(e,t,n){let i=new Y7e,o=t.joints;i.joints=o.map(s=>n[s]);let r=t.inverseBindMatrices;if(d(r)){let s=e.gltfJson.accessors[r];i.inverseBindMatrices=_Y(e,s)}else i.inverseBindMatrices=new Array(o.length).fill(P.IDENTITY);return i}function Q6e(e,t){let n=e.gltfJson.skins;if(e._loadForClassification||!d(n))return[];let i=n.map(function(r,s){let a=J6e(e,r,t);return a.index=s,a}),o=e.gltfJson.nodes;for(let r=0;r<t.length;++r){let s=o[r].skin;d(s)&&(t[r].skin=i[s])}return i}async function j6e(e,t,n,i){let o=new ZW({gltf:e.gltfJson,extension:t,extensionLegacy:n,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:e._supportedImageFormats,frameState:i,asynchronous:e._asynchronous,generateUniqueId:e._generateUniqueId});return e._structuralMetadataLoader=o,o.load()}async function q6e(e,t,n,i){let o=new vW({gltf:t,extension:n,gltfResource:e._gltfResource,baseResource:e._baseResource,supportedImageFormats:e._supportedImageFormats,frameState:i,asynchronous:e._asynchronous});return e._meshPrimitiveGpmLoader=o,o.load()}function $6e(e,t){let n=new K7e,i=e.gltfJson.accessors,o=i[t.input];n.input=_Y(e,o);let r=t.interpolation;n.interpolation=g(lp[r],lp.LINEAR);let s=i[t.output];return n.output=_Y(e,s,!0),n}function eqe(e,t){let n=new H7e,i=e.node;if(!d(i))return;n.node=t[i];let o=e.path.toUpperCase();return n.path=O7e[o],n}function tqe(e,t,n){let i=new J7e,o=e.sampler;return i.sampler=t[o],i.target=eqe(e.target,n),i}function nqe(e,t,n){let i=new Q7e;i.name=t.name;let o=t.samplers.map(function(s,a){let c=$6e(e,s);return c.index=a,c}),r=t.channels.map(function(s){return tqe(s,o,n)});return i.samplers=o,i.channels=r,i}function iqe(e,t){let n=e.gltfJson.animations;return e._loadForClassification||!d(n)?[]:n.map(function(o,r){let s=nqe(e,o,t);return s.index=r,s})}function oqe(e){let t=new j7e;t.name=e.name;let n=e.type.toUpperCase();return t.type=rl[n],t.minimumValue=e.minimumValue,t.maximumValue=e.maximumValue,t.initialValue=e.initialValue,t}function rqe(e){let t=new q7e;return t.name=e.name,t.stages=e.stages.map(oqe),t}function sqe(e){let n=g(e.extensions,g.EMPTY_OBJECT).AGI_articulations?.articulations;return d(n)?n.map(rqe):[]}function aqe(e){let t;return d(e.scenes)&&d(e.scene)&&(t=e.scenes[e.scene].nodes),t=g(t,e.nodes),t=d(t)?t:[],t}function cqe(e,t){let n=new e6e,i=aqe(e);return n.nodes=i.map(function(o){return t[o]}),n}var lqe=new h;function dqe(e,t){let n=e.gltfJson,i=g(n.extensions,g.EMPTY_OBJECT),o=i.EXT_structural_metadata,r=i.EXT_feature_metadata,s=i.CESIUM_RTC;if(d(r)){let L=r.featureTables,V=r.featureTextures,Z=d(L)?L:[],G=d(V)?V:[];e._sortedPropertyTableIds=Object.keys(Z).sort(),e._sortedFeatureTextureIds=Object.keys(G).sort()}let a=H6e(e,t),c=Q6e(e,a),l=iqe(e,a),u=sqe(n),m=cqe(n,a),f=new t6e,b=new $7e,p=n.asset.copyright;if(d(p)){let L=p.split(";").map(function(V){return new Ot(V.trim())});b.credits=L}if(f.asset=b,f.scene=m,f.nodes=a,f.skins=c,f.animations=l,f.articulations=u,f.upAxis=e._upAxis,f.forwardAxis=e._forwardAxis,d(s)){let L=h.fromArray(s.center,0,lqe);f.transform=P.fromTranslation(L,f.transform)}if(e._components=f,d(o)||d(r)){let L=j6e(e,o,r,t);e._loaderPromises.push(L)}let x=i.NGA_gpm_local;if(d(x)){let L=MW.load(x);e._components.extensions.NGA_gpm_local=L}let T=n.meshes;if(d(T))for(let L of T){let V=L.primitives;if(d(V))for(let Z of V){let G=Z.extensions;if(d(G)){let I=G.NGA_gpm_local;if(d(I)){let w=q6e(e,n,I,t);e._loaderPromises.push(w)}}}}let _=[];return _.push.apply(_,e._loaderPromises),e._incrementallyLoadTextures||_.push.apply(_,e._texturesPromises),Promise.all(_)}function uqe(e){let t=e._textureLoaders;for(let n=0;n<t.length;++n)t[n]=!t[n].isDestroyed()&&ji.unload(t[n]);e._textureLoaders.length=0}function yye(e){let t=e._bufferViewLoaders;for(let n=0;n<t.length;++n)t[n]=!t[n].isDestroyed()&&ji.unload(t[n]);e._bufferViewLoaders.length=0}function mqe(e){let t=e._geometryLoaders;for(let n=0;n<t.length;++n)t[n]=!t[n].isDestroyed()&&ji.unload(t[n]);e._geometryLoaders.length=0}function hqe(e){let t=e._postProcessBuffers;for(let n=0;n<t.length;n++){let i=t[n];i.isDestroyed()||i.destroy()}t.length=0}function pqe(e){d(e._structuralMetadataLoader)&&!e._structuralMetadataLoader.isDestroyed()&&(e._structuralMetadataLoader.destroy(),e._structuralMetadataLoader=void 0)}function fqe(e){d(e._meshPrimitiveGpmLoader)&&!e._meshPrimitiveGpmLoader.isDestroyed()&&(e._meshPrimitiveGpmLoader.destroy(),e._meshPrimitiveGpmLoader=void 0)}Zp.prototype.isUnloaded=function(){return this._state===Pr.UNLOADED};Zp.prototype.unload=function(){d(this._gltfJsonLoader)&&!this._gltfJsonLoader.isDestroyed()&&ji.unload(this._gltfJsonLoader),this._gltfJsonLoader=void 0,uqe(this),yye(this),mqe(this),hqe(this),pqe(this),fqe(this),this._components=void 0,this._typedArray=void 0,this._state=Pr.UNLOADED};var zc=Zp;var bjn=S(C(),1);var mjn=S(C(),1);var HQn=S(C(),1);var xQn=S(C(),1);function Q7(e,t,n){let i=e._gl;i.framebufferTexture2D(i.FRAMEBUFFER,t,n._target,n._texture,0)}function SY(e,t,n){let i=e._gl;i.framebufferRenderbuffer(i.FRAMEBUFFER,t,i.RENDERBUFFER,n._getRenderbuffer())}function Rp(e){e=g(e,g.EMPTY_OBJECT);let n=e.context._gl,i=qt.maximumColorAttachments;if(this._gl=n,this._framebuffer=n.createFramebuffer(),this._colorTextures=[],this._colorRenderbuffers=[],this._activeColorAttachments=[],this._depthTexture=void 0,this._depthRenderbuffer=void 0,this._stencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthStencilRenderbuffer=void 0,this.destroyAttachments=g(e.destroyAttachments,!0),this._bind(),d(e.colorTextures)){let o=e.colorTextures,r=this._colorTextures.length=this._activeColorAttachments.length=o.length;for(let s=0;s<r;++s){let a=o[s],c=this._gl.COLOR_ATTACHMENT0+s;Q7(this,c,a),this._activeColorAttachments[s]=c,this._colorTextures[s]=a}}if(d(e.colorRenderbuffers)){let o=e.colorRenderbuffers,r=this._colorRenderbuffers.length=this._activeColorAttachments.length=o.length;for(let s=0;s<r;++s){let a=o[s],c=this._gl.COLOR_ATTACHMENT0+s;SY(this,c,a),this._activeColorAttachments[s]=c,this._colorRenderbuffers[s]=a}}if(d(e.depthTexture)){let o=e.depthTexture;Q7(this,this._gl.DEPTH_ATTACHMENT,o),this._depthTexture=o}if(d(e.depthRenderbuffer)){let o=e.depthRenderbuffer;SY(this,this._gl.DEPTH_ATTACHMENT,o),this._depthRenderbuffer=o}if(d(e.stencilRenderbuffer)){let o=e.stencilRenderbuffer;SY(this,this._gl.STENCIL_ATTACHMENT,o),this._stencilRenderbuffer=o}if(d(e.depthStencilTexture)){let o=e.depthStencilTexture;Q7(this,this._gl.DEPTH_STENCIL_ATTACHMENT,o),this._depthStencilTexture=o}if(d(e.depthStencilRenderbuffer)){let o=e.depthStencilRenderbuffer;SY(this,this._gl.DEPTH_STENCIL_ATTACHMENT,o),this._depthStencilRenderbuffer=o}this._unBind()}Object.defineProperties(Rp.prototype,{status:{get:function(){this._bind();let e=this._gl.checkFramebufferStatus(this._gl.FRAMEBUFFER);return this._unBind(),e}},numberOfColorAttachments:{get:function(){return this._activeColorAttachments.length}},depthTexture:{get:function(){return this._depthTexture}},depthRenderbuffer:{get:function(){return this._depthRenderbuffer}},stencilRenderbuffer:{get:function(){return this._stencilRenderbuffer}},depthStencilTexture:{get:function(){return this._depthStencilTexture}},depthStencilRenderbuffer:{get:function(){return this._depthStencilRenderbuffer}},hasDepthAttachment:{get:function(){return!!(this.depthTexture||this.depthRenderbuffer||this.depthStencilTexture||this.depthStencilRenderbuffer)}}});Rp.prototype._bind=function(){let e=this._gl;e.bindFramebuffer(e.FRAMEBUFFER,this._framebuffer)};Rp.prototype._unBind=function(){let e=this._gl;e.bindFramebuffer(e.FRAMEBUFFER,null)};Rp.prototype.bindDraw=function(){let e=this._gl;e.bindFramebuffer(e.DRAW_FRAMEBUFFER,this._framebuffer)};Rp.prototype.bindRead=function(){let e=this._gl;e.bindFramebuffer(e.READ_FRAMEBUFFER,this._framebuffer)};Rp.prototype._getActiveColorAttachments=function(){return this._activeColorAttachments};Rp.prototype.getColorTexture=function(e){return this._colorTextures[e]};Rp.prototype.getColorRenderbuffer=function(e){return this._colorRenderbuffers[e]};Rp.prototype.isDestroyed=function(){return!1};Rp.prototype.destroy=function(){if(this.destroyAttachments){let e=this._colorTextures;for(let n=0;n<e.length;++n){let i=e[n];d(i)&&i.destroy()}let t=this._colorRenderbuffers;for(let n=0;n<t.length;++n){let i=t[n];d(i)&&i.destroy()}this._depthTexture=this._depthTexture&&this._depthTexture.destroy(),this._depthRenderbuffer=this._depthRenderbuffer&&this._depthRenderbuffer.destroy(),this._stencilRenderbuffer=this._stencilRenderbuffer&&this._stencilRenderbuffer.destroy(),this._depthStencilTexture=this._depthStencilTexture&&this._depthStencilTexture.destroy(),this._depthStencilRenderbuffer=this._depthStencilRenderbuffer&&this._depthStencilRenderbuffer.destroy()}return this._gl.deleteFramebuffer(this._framebuffer),fe(this)};var Jo=Rp;var ZQn=S(C(),1);function yZ(e){e=g(e,g.EMPTY_OBJECT);let{context:t,width:n,height:i,colorRenderbuffers:o,colorTextures:r,depthStencilRenderbuffer:s,depthStencilTexture:a,destroyAttachments:c}=e;if(this._width=n,this._height=i,d(o)!==d(r))throw new be("Both color renderbuffer and texture attachments must be provided.");if(d(s)!==d(a))throw new be("Both depth-stencil renderbuffer and texture attachments must be provided.");this._renderFramebuffer=new Jo({context:t,colorRenderbuffers:o,depthStencilRenderbuffer:s,destroyAttachments:c}),this._colorFramebuffer=new Jo({context:t,colorTextures:r,depthStencilTexture:a,destroyAttachments:c})}yZ.prototype.getRenderFramebuffer=function(){return this._renderFramebuffer};yZ.prototype.getColorFramebuffer=function(){return this._colorFramebuffer};yZ.prototype.blitFramebuffers=function(e,t){this._renderFramebuffer.bindRead(),this._colorFramebuffer.bindDraw();let n=e._gl,i=0;this._colorFramebuffer._colorTextures.length>0&&(i|=n.COLOR_BUFFER_BIT),d(this._colorFramebuffer.depthStencilTexture)&&(i|=n.DEPTH_BUFFER_BIT|(t?n.STENCIL_BUFFER_BIT:0)),n.blitFramebuffer(0,0,this._width,this._height,0,0,this._width,this._height,i,n.NEAREST),n.bindFramebuffer(n.READ_FRAMEBUFFER,null),n.bindFramebuffer(n.DRAW_FRAMEBUFFER,null)};yZ.prototype.isDestroyed=function(){return!1};yZ.prototype.destroy=function(){return this._renderFramebuffer.destroy(),this._colorFramebuffer.destroy(),fe(this)};var NW=yZ;var vQn=S(C(),1);var EQn=S(C(),1);var tu={RGBA4:te.RGBA4,RGBA8:te.RGBA8,RGBA16F:te.RGBA16F,RGBA32F:te.RGBA32F,RGB5_A1:te.RGB5_A1,RGB565:te.RGB565,DEPTH_COMPONENT16:te.DEPTH_COMPONENT16,STENCIL_INDEX8:te.STENCIL_INDEX8,DEPTH_STENCIL:te.DEPTH_STENCIL,DEPTH24_STENCIL8:te.DEPTH24_STENCIL8,validate:function(e){return e===tu.RGBA4||e===tu.RGBA8||e===tu.RGBA16F||e===tu.RGBA32F||e===tu.RGB5_A1||e===tu.RGB565||e===tu.DEPTH_COMPONENT16||e===tu.STENCIL_INDEX8||e===tu.DEPTH_STENCIL||e===tu.DEPTH24_STENCIL8},getColorFormat:function(e){return e===te.FLOAT?tu.RGBA32F:e===te.HALF_FLOAT_OES?tu.RGBA16F:tu.RGBA8}},ld=Object.freeze(tu);function FW(e){e=g(e,g.EMPTY_OBJECT);let n=e.context._gl,i=qt.maximumRenderbufferSize,o=g(e.format,ld.RGBA4),r=d(e.width)?e.width:n.drawingBufferWidth,s=d(e.height)?e.height:n.drawingBufferHeight,a=g(e.numSamples,1);this._gl=n,this._format=o,this._width=r,this._height=s,this._renderbuffer=this._gl.createRenderbuffer(),n.bindRenderbuffer(n.RENDERBUFFER,this._renderbuffer),a>1?n.renderbufferStorageMultisample(n.RENDERBUFFER,a,o,r,s):n.renderbufferStorage(n.RENDERBUFFER,o,r,s),n.bindRenderbuffer(n.RENDERBUFFER,null)}Object.defineProperties(FW.prototype,{format:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}}});FW.prototype._getRenderbuffer=function(){return this._renderbuffer};FW.prototype.isDestroyed=function(){return!1};FW.prototype.destroy=function(){return this._gl.deleteRenderbuffer(this._renderbuffer),fe(this)};var ku=FW;function Za(e){e=g(e,g.EMPTY_OBJECT),this._numSamples=g(e.numSamples,1),this._colorAttachmentsLength=g(e.colorAttachmentsLength,1),this._color=g(e.color,!0),this._depth=g(e.depth,!1),this._depthStencil=g(e.depthStencil,!1),this._supportsDepthTexture=g(e.supportsDepthTexture,!1),this._createColorAttachments=g(e.createColorAttachments,!0),this._createDepthAttachments=g(e.createDepthAttachments,!0),this._pixelDatatype=e.pixelDatatype,this._pixelFormat=e.pixelFormat,this._width=void 0,this._height=void 0,this._framebuffer=void 0,this._multisampleFramebuffer=void 0,this._colorTextures=void 0,this._color&&(this._colorTextures=new Array(this._colorAttachmentsLength),this._colorRenderbuffers=new Array(this._colorAttachmentsLength)),this._colorRenderbuffer=void 0,this._depthStencilRenderbuffer=void 0,this._depthStencilTexture=void 0,this._depthRenderbuffer=void 0,this._depthTexture=void 0,this._attachmentsDirty=!1}Object.defineProperties(Za.prototype,{framebuffer:{get:function(){return this._numSamples>1?this._multisampleFramebuffer.getRenderFramebuffer():this._framebuffer}},numSamples:{get:function(){return this._numSamples}},status:{get:function(){return this.framebuffer.status}}});Za.prototype.isDirty=function(e,t,n,i,o){n=g(n,1);let r=this._width!==e||this._height!==t,s=this._numSamples!==n,a=d(i)&&this._pixelDatatype!==i||d(o)&&this._pixelFormat!==o,c=n===1?d(this._framebuffer):d(this._multisampleFramebuffer);return this._attachmentsDirty||r||s||a||!c||this._color&&!d(this._colorTextures[0])};Za.prototype.update=function(e,t,n,i,o,r){if(i=e.msaa?g(i,1):1,o=g(o,this._color?g(this._pixelDatatype,ke.UNSIGNED_BYTE):void 0),r=g(r,this._color?g(this._pixelFormat,Ye.RGBA):void 0),this.isDirty(t,n,i,o,r)){if(this.destroy(),this._width=t,this._height=n,this._numSamples=i,this._pixelDatatype=o,this._pixelFormat=r,this._attachmentsDirty=!1,this._color&&this._createColorAttachments){for(let s=0;s<this._colorAttachmentsLength;++s)if(this._colorTextures[s]=new it({context:e,width:t,height:n,pixelFormat:r,pixelDatatype:o,sampler:un.NEAREST}),this._numSamples>1){let a=ld.getColorFormat(o);this._colorRenderbuffers[s]=new ku({context:e,width:t,height:n,format:a,numSamples:this._numSamples})}}this._depthStencil&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?(this._depthStencilTexture=new it({context:e,width:t,height:n,pixelFormat:Ye.DEPTH_STENCIL,pixelDatatype:ke.UNSIGNED_INT_24_8,sampler:un.NEAREST}),this._numSamples>1&&(this._depthStencilRenderbuffer=new ku({context:e,width:t,height:n,format:ld.DEPTH24_STENCIL8,numSamples:this._numSamples}))):this._depthStencilRenderbuffer=new ku({context:e,width:t,height:n,format:ld.DEPTH_STENCIL})),this._depth&&this._createDepthAttachments&&(this._supportsDepthTexture&&e.depthTexture?this._depthTexture=new it({context:e,width:t,height:n,pixelFormat:Ye.DEPTH_COMPONENT,pixelDatatype:ke.UNSIGNED_INT,sampler:un.NEAREST}):this._depthRenderbuffer=new ku({context:e,width:t,height:n,format:ld.DEPTH_COMPONENT16})),this._numSamples>1?this._multisampleFramebuffer=new NW({context:e,width:this._width,height:this._height,colorTextures:this._colorTextures,colorRenderbuffers:this._colorRenderbuffers,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1}):this._framebuffer=new Jo({context:e,colorTextures:this._colorTextures,depthTexture:this._depthTexture,depthRenderbuffer:this._depthRenderbuffer,depthStencilTexture:this._depthStencilTexture,depthStencilRenderbuffer:this._depthStencilRenderbuffer,destroyAttachments:!1})}};Za.prototype.getColorTexture=function(e){return e=g(e,0),this._colorTextures[e]};Za.prototype.setColorTexture=function(e,t){t=g(t,0),this._attachmentsDirty=e!==this._colorTextures[t],this._colorTextures[t]=e};Za.prototype.getColorRenderbuffer=function(e){return e=g(e,0),this._colorRenderbuffers[e]};Za.prototype.setColorRenderbuffer=function(e,t){t=g(t,0),this._attachmentsDirty=e!==this._colorRenderbuffers[t],this._colorRenderbuffers[t]=e};Za.prototype.getDepthRenderbuffer=function(){return this._depthRenderbuffer};Za.prototype.setDepthRenderbuffer=function(e){this._attachmentsDirty=e!==this._depthRenderbuffer,this._depthRenderbuffer=e};Za.prototype.getDepthTexture=function(){return this._depthTexture};Za.prototype.setDepthTexture=function(e){this._attachmentsDirty=e!==this._depthTexture,this._depthTexture=e};Za.prototype.getDepthStencilRenderbuffer=function(){return this._depthStencilRenderbuffer};Za.prototype.setDepthStencilRenderbuffer=function(e){this._attachmentsDirty=e!==this._depthStencilRenderbuffer,this._depthStencilRenderbuffer=e};Za.prototype.getDepthStencilTexture=function(){return this._depthStencilTexture};Za.prototype.setDepthStencilTexture=function(e){this._attachmentsDirty=e!==this._depthStencilTexture,this._depthStencilTexture=e};Za.prototype.prepareTextures=function(e,t){this._numSamples>1&&this._multisampleFramebuffer.blitFramebuffers(e,t)};Za.prototype.clear=function(e,t,n){let i=t.framebuffer;t.framebuffer=this.framebuffer,t.execute(e,n),t.framebuffer=i};Za.prototype.destroyFramebuffer=function(){this._framebuffer=this._framebuffer&&this._framebuffer.destroy(),this._multisampleFramebuffer=this._multisampleFramebuffer&&this._multisampleFramebuffer.destroy()};Za.prototype.destroy=function(){if(this._color){let e=this._colorTextures,t=this._colorRenderbuffers;for(let n=0;n<e.length;++n){let i=e[n];this._createColorAttachments&&d(i)&&!i.isDestroyed()&&i.destroy(),d(i)&&i.isDestroyed()&&(e[n]=void 0);let o=t[n];this._createColorAttachments&&d(o)&&!o.isDestroyed()&&o.destroy(),d(o)&&o.isDestroyed()&&(t[n]=void 0)}}this._depthStencil&&(this._createDepthAttachments&&(this._depthStencilTexture=this._depthStencilTexture&&this._depthStencilTexture.destroy(),this._depthStencilRenderbuffer=this._depthStencilRenderbuffer&&this._depthStencilRenderbuffer.destroy()),d(this._depthStencilTexture)&&this._depthStencilTexture.isDestroyed()&&(this._depthStencilTexture=void 0),d(this._depthStencilRenderbuffer)&&this._depthStencilRenderbuffer.isDestroyed()&&(this._depthStencilRenderbuffer=void 0)),this._depth&&(this._createDepthAttachments&&(this._depthTexture=this._depthTexture&&this._depthTexture.destroy(),this._depthRenderbuffer=this._depthRenderbuffer&&this._depthRenderbuffer.destroy()),d(this._depthTexture)&&this._depthTexture.isDestroyed()&&(this._depthTexture=void 0),d(this._depthRenderbuffer)&&this._depthRenderbuffer.isDestroyed()&&(this._depthRenderbuffer=void 0)),this.destroyFramebuffer()};var zi=Za;var QQn=S(C(),1),AW=`uniform sampler2D u_pointCloud_colorGBuffer;
6870
6870
  uniform sampler2D u_pointCloud_depthGBuffer;
6871
6871
  uniform vec2 u_distanceAndEdlStrength;
6872
6872
  in vec2 v_textureCoordinates;
@@ -9617,7 +9617,7 @@ void main()
9617
9617
  }
9618
9618
  return clipAmount;
9619
9619
  }
9620
- `}gi.prototype.destroy=function(){this._clipFillCommandMap.clear()};function Wnt(e,t){return gi._clipFillDiffuseUrl!==e&&(gi._clipFillDiffuseUrl=e,gi._clipFillDiffuseImage=new Image,gi._clipFillDiffuseImage.crossOrigin="anonymous",gi._clipFillDiffuseImage.onload=function(n){gi._clipFillDiffuseTexture=new it({context:t,width:gi._clipFillDiffuseImage.width,height:gi._clipFillDiffuseImage.height,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:gi._clipFillDiffuseImage})},gi._clipFillDiffuseImage.src=e,gi._clipFillDiffuseTexture=new it({context:t,width:1,height:1,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:{arrayBufferView:new Uint8Array([200,200,200,255])}})),function(){return gi._clipFillDiffuseTexture}}var Av=gi;var qci=S(C(),1);function Pnt(e,t){let n={},i=e.primitive?.attributes,o;for(let s=0;s<i.length;s++)i[s].name==="TEXCOORD_0"&&(o={vertexCoordDisAC:1,texCoordDisAC:1});let r=t.content?.tileset._version;if(r==="2.0"){let s;for(let l=0;l<i.length;l++)i[l].name==="_OID"&&(s=i[l].typedArray);let a=new Uint32Array(s.length/4);a.fill(s[0]);let c={};for(let l=0;l<a.length;l++){let u=vnt(a[l]),m=new z(u[3]/255,u[2]/255,u[1]/255,u[0]/255);c[a[l]]={pickID:m,textureParam:o}}n=c}else if(r==="2.1"||r==="2.2"){let s;for(let c=0;c<i.length;c++)i[c].name==="_BATCHID"&&(s=i[c].typedArray);let a={};for(let c=0;c<s.length;c++)a[s[c]]={textureParam:o};n=a}return n}function vnt(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e),new Uint8Array(t)}var Dv=Pnt;function Yu(e){e=g(e,g.EMPTY_OBJECT);let t=e.modelComponents;this._model=e.model,this._components=t,this._pipelineStages=[],this._updateStages=[],this._runtimeNodes=[],this._rootNodes=[],this._skinnedNodes=[],this._runtimeSkins=[],this.modelPipelineStages=[],this._boundingSphere=void 0,this._boundingSphere2D=void 0,this._computedModelMatrix=P.clone(P.IDENTITY),this._computedModelMatrix2D=P.clone(P.IDENTITY),this._axisCorrectionMatrix=fn.getAxisCorrectionMatrix(t.upAxis,t.forwardAxis,new P),this._runtimeArticulations={},Nnt(this)}Object.defineProperties(Yu.prototype,{components:{get:function(){return this._components}},computedModelMatrix:{get:function(){return this._computedModelMatrix}},axisCorrectionMatrix:{get:function(){return this._axisCorrectionMatrix}},boundingSphere:{get:function(){return this._boundingSphere}}});function Nnt(e){let t=e._components,n=t.scene,o=e._model.modelMatrix;nxe(e,o);let r=t.articulations,s=r.length,a=e._runtimeArticulations;for(let L=0;L<s;L++){let V=r[L],Z=new rP({articulation:V,sceneGraph:e}),G=Z.name;a[G]=Z}let c=t.nodes,l=c.length;e._runtimeNodes=new Array(l);let m=n.nodes.length,f=P.IDENTITY;for(let L=0;L<m;L++){let V=n.nodes[L],Z=ixe(e,V,f);e._rootNodes.push(Z)}let b=t.skins,p=e._runtimeSkins,x=b.length;for(let L=0;L<x;L++){let V=b[L];p.push(new gv({skin:V,sceneGraph:e}))}let T=e._skinnedNodes,_=T.length;for(let L=0;L<_;L++){let V=T[L],Z=e._runtimeNodes[V],I=c[V].skin.index;Z._runtimeSkin=p[I],Z.updateJointMatrices()}e.applyArticulations()}function nxe(e,t){let n=e._components,i=e._model;e._computedModelMatrix=P.multiplyTransformation(t,n.transform,e._computedModelMatrix),e._computedModelMatrix=P.multiplyTransformation(e._computedModelMatrix,e._axisCorrectionMatrix,e._computedModelMatrix),e._computedModelMatrix=P.multiplyByUniformScale(e._computedModelMatrix,i.computedScale,e._computedModelMatrix)}var Fnt=new h;function Ant(e,t){let n=e._computedModelMatrix,i=P.getTranslation(n,Fnt);if(!h.equals(i,h.ZERO))e._computedModelMatrix2D=Zt.basisTo2D(t.mapProjection,n,e._computedModelMatrix2D);else{let o=e.boundingSphere.center,r=Zt.ellipsoidTo2DModelMatrix(t.mapProjection,o,e._computedModelMatrix2D);e._computedModelMatrix2D=P.multiply(r,n,e._computedModelMatrix2D)}e._boundingSphere2D=de.transform(e._boundingSphere,e._computedModelMatrix2D,e._boundingSphere2D)}function ixe(e,t,n){let i=[],o=fn.getNodeTransform(t),r=t.children.length;for(let u=0;u<r;u++){let m=t.children[u],f=P.multiplyTransformation(n,o,new P),b=ixe(e,m,f);i.push(b)}let s=new SP({node:t,transform:o,transformToRoot:n,children:i,sceneGraph:e}),a=t.primitives.length;for(let u=0;u<a;u++)s.runtimePrimitives.push(new yv({primitive:t.primitives[u],node:t,model:e._model}));let c=t.index;e._runtimeNodes[c]=s,d(t.skin)&&e._skinnedNodes.push(c);let l=t.name;if(d(l)){let u=e._model,m=new pP(u,s);u._nodesByName[l]=m}return c}var Dnt=new h,Unt=new h,knt=new h,znt=new h;Yu.prototype.buildDrawCommands=function(e){let t=this._model,n=new Sv(t);t.statistics.clear(),this.configurePipeline(e);let i=this.modelPipelineStages,o,r,s;for(o=0;o<i.length;o++)i[o].process(n,t,e);let a=h.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Dnt),c=h.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,Unt),l=[];for(o=0;o<this._runtimeNodes.length;o++){let u=this._runtimeNodes[o];if(!d(u))continue;u.configurePipeline();let m=u.pipelineStages,f=new Gv(n,u);for(r=0;r<m.length;r++)m[r].process(f,u.node,e);let b=u.computedTransform;for(r=0;r<u.runtimePrimitives.length;r++){let p=u.runtimePrimitives[r];p.configurePipeline(e);let x=p.pipelineStages,T=new Iv(f,p);for(s=0;s<x.length;s++)x[s].process(T,p.primitive,e);p.boundingSphere=de.clone(T.boundingSphere,new de);let _=P.multiplyByPoint(b,T.positionMin,knt),L=P.multiplyByPoint(b,T.positionMax,znt);h.minimumByComponent(a,_,a),h.maximumByComponent(c,L,c);let V=vv.buildModelDrawCommand(T,e);p.drawCommand=V,d(t._clipFillUtil)&&t._clipFillUtil.destroy(),t._fillClip&&(d(t._clipFillUtil)||(t._clipFillUtil=new Av({model:t})),t._clipFillUtil.parsePrimitiveInfo(p,V,!1)),t._hasSectionGeometry&&(V.primitiveInfo=Dv(p,t)),l.push(V)}}t._nodeCommands=l,this._boundingSphere=de.fromCornerPoints(a,c,new de),this._boundingSphere=de.transformWithoutScale(this._boundingSphere,this._axisCorrectionMatrix,this._boundingSphere),this._boundingSphere=de.transform(this._boundingSphere,this._components.transform,this._boundingSphere),t._boundingSphere=de.transform(this._boundingSphere,t.modelMatrix,t._boundingSphere),t._initialRadius=t._boundingSphere.radius,t._boundingSphere.radius*=t._clampedScale};Yu.prototype.configurePipeline=function(e){let t=this.modelPipelineStages;t.length=0;let n=this._model,i=e.fog.enabled&&e.fog.renderable;d(n.color)&&t.push(Hx),!d(n.classificationType)&&(n.imageBasedLighting.enabled&&t.push(iP),n.isClippingEnabled()&&t.push(cP),n.isGeometryClipEnabled()&&t.push(dP),n.isClippingPolygonsEnabled()&&t.push(hP),n.hasSilhouette(e)&&t.push(Vv),d(n.splitDirection)&&n.splitDirection!==cs.NONE&&t.push(Rv),d(n.swiper)&&n.swiper.swipeEnabled===!0&&t.push(Fv),xr.is3DTiles(n.type)&&t.push(qW),i&&t.push(tP))};Yu.prototype.update=function(e,t){let n,i,o;for(n=0;n<this._runtimeNodes.length;n++){let r=this._runtimeNodes[n];if(!d(r))continue;for(i=0;i<r.updateStages.length;i++)r.updateStages[i].update(r,this,e);let s=e.mode!==ae.SCENE3D&&this._model._projectTo2D;for(t&&!s&&this.updateJointMatrices(),i=0;i<r.runtimePrimitives.length;i++){let a=r.runtimePrimitives[i];for(o=0;o<a.updateStages.length;o++)a.updateStages[o].update(a,this)}}};Yu.prototype.updateModelMatrix=function(e,t){nxe(this,e),t.mode!==ae.SCENE3D&&Ant(this,t);let n=this._rootNodes;for(let i=0;i<n.length;i++){let o=this._runtimeNodes[n[i]];o._transformDirty=!0}};Yu.prototype.updateJointMatrices=function(){let e=this._skinnedNodes,t=e.length;for(let n=0;n<t;n++){let i=e[n];this._runtimeNodes[i].updateJointMatrices()}};function oxe(e,t,n,i,o){if(n&&!t.show)return;let r=t.children.length;for(let c=0;c<r;c++){let l=t.getChild(c);oxe(e,l,n,i,o)}let s=t.runtimePrimitives,a=s.length;for(let c=0;c<a;c++){let l=s[c];i(l,o)}}function PY(e,t,n,i){let o=e._rootNodes,r=o.length;for(let s=0;s<r;s++){let a=o[s],c=e._runtimeNodes[a];oxe(e,c,t,n,i)}}var Ynt={backFaceCulling:void 0};Yu.prototype.updateBackFaceCulling=function(e){let t=Ynt;t.backFaceCulling=e,PY(this,!1,Bnt,t)};function Bnt(e,t){let n=e.drawCommand;n.backFaceCulling=t.backFaceCulling}var Ont={shadowMode:void 0};Yu.prototype.updateShadows=function(e){let t=Ont;t.shadowMode=e,PY(this,!1,Knt,t)};function Knt(e,t){let n=e.drawCommand;n.shadows=t.shadowMode}var Hnt={debugShowBoundingVolume:void 0};Yu.prototype.updateShowBoundingVolume=function(e){let t=Hnt;t.debugShowBoundingVolume=e,PY(this,!1,Jnt,t)};function Jnt(e,t){let n=e.drawCommand;n.debugShowBoundingVolume=t.debugShowBoundingVolume}var rxe=[],Qnt={frameState:void 0,hasSilhouette:void 0};Yu.prototype.pushDrawCommands=function(e){let t=rxe;t.length=0;let n=Qnt;n.hasSilhouette=this._model.hasSilhouette(e),n.frameState=e,PY(this,!0,jnt,n),e.commandList.push.apply(e.commandList,t)};function jnt(e,t){let n=t.frameState,i=t.hasSilhouette,o=n.passes,r=rxe,s=e.drawCommand;s.pushCommands(n,n.commandList),i&&!o.pick&&s.pushSilhouetteCommands(n,r)}Yu.prototype.setArticulationStage=function(e,t){let n=e.split(" ");if(n.length!==2)return;let i=n[0],o=n[1],r=this._runtimeArticulations[i];d(r)&&r.setArticulationStage(o,t)};Yu.prototype.applyArticulations=function(){let e=this._runtimeArticulations;for(let t in e)e.hasOwnProperty(t)&&e[t].apply()};var Uv=Yu;var Wli=S(C(),1);function ZZ(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap=new zt}Object.defineProperties(ZZ.prototype,{batchTexturesByteLength:{get:function(){let e=this._batchTextureIdMap.length,t=this._batchTextureIdMap.values,n=0;for(let i=0;i<e;i++)n+=t[i].byteLength;return n}}});ZZ.prototype.clear=function(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap.removeAll()};ZZ.prototype.addBuffer=function(e,t){if(!this._bufferIdSet.hasOwnProperty(e._id)){let n=t?2:1;this.geometryByteLength+=e.sizeInBytes*n}this._bufferIdSet[e._id]=!0};ZZ.prototype.addTexture=function(e){this._textureIdSet.hasOwnProperty(e._id)||(this.texturesByteLength+=e.sizeInBytes),this._textureIdSet[e._id]=!0};ZZ.prototype.addBatchTexture=function(e){this._batchTextureIdMap.contains(e._id)||this._batchTextureIdMap.set(e._id,e)};var kv=ZZ;var ydi=S(C(),1);var lxe=S(HG(),1);var Kli=S(C(),1);var sxe={},TS=Uint32Array.BYTES_PER_ELEMENT;sxe.parse=function(e,t){t=g(t,0);let n=new Uint8Array(e),i=new DataView(e);t+=TS;let o=i.getUint32(t,!0);if(o!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${o} is not.`);t+=TS,t+=TS;let r=i.getUint32(t,!0);if(r===0)throw new le("Feature table must have a byte length greater than zero");t+=TS;let s=i.getUint32(t,!0);t+=TS;let a=i.getUint32(t,!0);t+=TS;let c=i.getUint32(t,!0);t+=TS;let l=mo(n,t,r);t+=r;let u=new Uint8Array(e,t,s);t+=s;let m,f;a>0&&(m=mo(n,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=qnt(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=$nt(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=tit(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=eit(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=nit(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T};function qnt(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:Tt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function $nt(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:kt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:kt.VEC3}}}function eit(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:kt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:s}}}function tit(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:kt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:kt.VEC3}}function nit(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:kt.SCALAR}}}var _S=sxe;var iit=hn.Components,oit=hn.Scene,rit=hn.Node,sit=hn.Primitive,ait=hn.Attribute,axe=hn.Quantization,cit=hn.FeatureIdAttribute,lit=hn.Material,dit=hn.MetallicRoughness;function qx(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._generateUniqueId=e.generateUniqueId}d(Object.create)&&(qx.prototype=Object.create(vi.prototype),qx.prototype.constructor=qx);Object.defineProperties(qx.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});qx.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=_S.parse(this._arrayBuffer,this._byteOffset),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};qx.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=uit(this,e.context)}return!1};function uit(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=Lp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&mit(e,i,r),Cit(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function mit(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=kt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=kt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:kt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:hit(l.componentsPerAttribute),componentType:pit(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function hit(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function pit(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function zv(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new axe,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new axe;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new ait;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var cxe,vY;function fit(e){if(!d(vY)){cxe=new lxe.default(0),vY=new Array(e);for(let t=0;t<e;++t)vY[t]=cxe.random()}return vY}var bit=new h,yit=new h,git=new h;function xit(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=fit(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,bit),l=h.fromElements(a,a,a,yit),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,git),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var Tit={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:!1};function _it(e,t,n){let i=[],o,r=t.positions;return d(r)&&(xit(r),o=zv(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=zv(e,t.normals,n),i.push(o)),d(t.colors)?(o=zv(e,t.colors,n),i.push(o)):(o=zv(e,Tit,n),i.push(o)),d(t.batchIds)&&(o=zv(e,t.batchIds,n),i.push(o)),i}function Sit(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable){let a=g(i,o);return Ep({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,generateUniqueId:n})}return new mr({schema:{},propertyTables:[]})}function Cit(e,t){let n=e._parsedContent,i=new dit;i.metallicFactor=0,i.roughnessFactor=.9;let o=new lit;o.metallicRoughness=i;let r=n.colors;d(r)&&r.isTranslucent&&(o.alphaMode=jm.BLEND);let s=!d(n.normals);o.unlit=s;let a=new sit;if(a.attributes=_it(e,n,t),a.primitiveType=Fe.POINTS,a.material=o,d(n.batchIds)){let b=new cit;b.propertyTableId=0,b.setIndex=0,b.positionalLabel="featureId_0",a.featureIds.push(b)}let c=new rit;c.index=0,c.primitives=[a];let l=new oit;l.nodes=[c],l.upAxis=In.Z,l.forwardAxis=In.X;let u=new iit;u.scene=l,u.nodes=[c];let m=[];u.structuralMetadata=Sit(n,m,e._generateUniqueId),m.length>0&&Lit(e,a,m,t),d(n.rtcCenter)&&(u.transform=P.multiplyByTranslation(u.transform,n.rtcCenter,u.transform));let f=n.positions;d(f)&&f.isQuantized&&(u.transform=P.multiplyByTranslation(u.transform,f.quantizedVolumeOffset,u.transform)),e._components=u,e._parsedContent=void 0,e._arrayBuffer=void 0}function Lit(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}qx.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var Yv=qx;var Ndi=S(C(),1);var Vit=new h,Zit=new h,Rit=new h,Git=new P,Eit=new P,Iit=new P,Xit=new me,Mit=new de;function RZ(e,t,n,i,o,r,s){if(!e._ready||n.mode===ae.MORPHING)return;let a=Number.MAX_VALUE,c=e.sceneGraph,l=c._runtimeNodes;for(let u=0;u<l.length;u++){let m=l[u],f=m.node,b=P.clone(m.computedTransform,Git),p=P.clone(c.computedModelMatrix,Eit),x=f.instances;d(x)&&x.transformInWorldSpace&&(p=P.multiplyTransformation(e.modelMatrix,c.components.transform,p),b=P.multiplyTransformation(c.axisCorrectionMatrix,m.computedTransform,b));let T=P.multiplyTransformation(p,b,Iit);n.mode!==ae.SCENE3D&&(T=Zt.basisTo2D(n.mapProjection,T,T));let _=[];if(d(x)){let V=x.attributes[0].count,Z=x.attributes[0].componentDatatype,G=12,I=m.transformsTypedArray;if(!d(I)){let w=m.instancingTransformsBuffer;d(w)&&n.context.webgl2&&(I=H.createTypedArray(Z,V*G),w.getBufferData(I))}if(d(I))for(let w=0;w<V;w++){let W=w*G,v=new P(I[W],I[W+1],I[W+2],I[W+3],I[W+4],I[W+5],I[W+6],I[W+7],I[W+8],I[W+9],I[W+10],I[W+11],0,0,0,1);x.transformInWorldSpace?(P.multiplyTransformation(v,b,v),P.multiplyTransformation(p,v,v)):P.multiplyTransformation(v,T,v),_.push(v)}}_.length===0&&_.push(T);let L=m.runtimePrimitives.length;for(let V=0;V<L;V++){let Z=m.runtimePrimitives[V],G=Z.primitive;if(d(Z.boundingSphere)&&!d(x)){let K=de.transform(Z.boundingSphere,T,Mit),j=Wi.raySphere(t,K);if(!d(j))continue}let I=fn.getAttributeBySemantic(G,ut.POSITION),w=I.byteOffset,W=I.byteStride,v=I.count;if(!d(G.indices))continue;let N=G.indices.typedArray;if(!d(N)){let K=G.indices.buffer,j=G.indices.count,J=G.indices.indexDatatype;d(K)&&n.context.webgl2&&(J===qe.UNSIGNED_BYTE?N=new Uint8Array(j):J===qe.UNSIGNED_SHORT?N=new Uint16Array(j):J===qe.UNSIGNED_INT&&(N=new Uint32Array(j)),K.getBufferData(N))}let y=I.typedArray,R=I.componentDatatype,E=I.type,X=I.quantization;d(X)&&(R=I.quantization.componentDatatype,E=I.quantization.type);let F=kt.getNumberOfComponents(E),A=H.getSizeInBytes(R),Y=!d(y)&&d(W)&&W!==F*A,U=F,k=0;Y&&(U=W/A,k=w/A);let D=v*U;if(!d(y)){let K=I.buffer;d(K)&&n.context.webgl2&&(y=H.createTypedArray(R,D),K.getBufferData(y,Y?0:w,0,D)),X&&I.normalized&&(y=xn.dequantize(y,R,E,v))}if(!d(N)||!d(y))return;r=g(r,oe.default),i=g(i,1),o=g(o,0);let O=N.length;for(let K=0;K<O;K+=3){let j=N[K],J=N[K+1],ne=N[K+2];for(let q of _){let ye=Z6(y,j,k,U,X,q,i,o,r,Vit),_e=Z6(y,J,k,U,X,q,i,o,r,Zit),ue=Z6(y,ne,k,U,X,q,i,o,r,Rit),Ce=Wi.rayTriangleParametric(t,ye,_e,ue,g(e.backFaceCulling,!0));d(Ce)&&Ce<a&&Ce>=0&&(a=Ce)}}}}if(a!==Number.MAX_VALUE){if(s=Dn.getPoint(t,a,s),n.mode!==ae.SCENE3D){h.fromElements(s.y,s.z,s.x,s);let u=n.mapProjection,m=u.ellipsoid,f=u.unproject(s,Xit);m.cartographicToCartesian(f,s)}return s}}function Z6(e,t,n,i,o,r,s,a,c,l){let u=n+t*i;if(l.x=e[u],l.y=e[u+1],l.z=e[u+2],d(o))if(o.octEncoded){if(l=xn.octDecodeInRange(l,o.normalizationRange,l),o.octEncodedZXY){let m=l.x;l.x=l.z,l.z=l.y,l.y=m}}else l=h.multiplyComponents(l,o.quantizedVolumeStepSize,l),l=h.add(l,o.quantizedVolumeOffset,l);return l=P.multiplyByPoint(r,l,l),s!==1&&or.getPosition(l,c,s,a,l),l}var Fui=S(C(),1);var kdi=S(C(),1);var GZ={};GZ._deprecationWarning=lr;var dxe=Uint32Array.BYTES_PER_ELEMENT;GZ.parse=function(e,t){t=g(t,0);let i=0,o=0,r=0,s=0,a;r>=570425344?(t-=dxe*2,a=i,r=o,s=0,i=0,o=0,GZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):s>=570425344&&(t-=dxe,a=r,r=i,s=o,i=0,o=0,GZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let c;i===0?c={BATCH_LENGTH:g(a,0)}:(c=mo(uint8Array,t,i),t+=i);let l=new Uint8Array(e,t,o);t+=o;let u,m;r>0&&(u=mo(uint8Array,t,r),t+=r,s>0&&(m=new Uint8Array(e,t,s),m=new Uint8Array(m),t+=s));let f=e.byteLength,b;return t%4===0?b=new Uint8Array(e,t,f):(GZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),b=new Uint8Array(uint8Array.subarray(t,t+f))),{batchLength:a,featureTableJson:c,featureTableBinary:l,batchTableJson:u,batchTableBinary:m,gltf:b}};var Bv=GZ;var xui=S(C(),1);var Kdi=S(C(),1);var wit={};function Ov(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}Ov.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,wit)};Ov.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};Ov.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};Ov.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var Kv=Ov;var qdi=S(C(),1);var Wit={};function Hv(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}Hv.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,Wit)};Hv.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};Hv.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};Hv.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var Jv=Hv;function NY(e){let t=e.count,n=e.binaryBody,i=e.batchTable,o=e.binaryBody,r=e.tilesetVersion,s=g(e.parseAsPropertyAttributes,!1),a=e.customAttributeOutput,c={jsonProperties:i,binaryProperties:o},l;(r==="2.1"||r==="2.2")&&d(c.jsonProperties)?l=new Xx({count:t,properties:i,batchTableJson:i,batchTableBinary:o}):r==="2.0"&&d(c.jsonProperties)?l=new Kv({count:t,properties:i,batchTableJson:i}):r==="1.0"&&d(c.jsonProperties)&&(l=new Jv({count:t,properties:i,batchTableJson:i}));let u;d(c.hierarchy)&&(u=new ey({extension:c.hierarchy,binaryBody:n}));let m=ua.BATCH_TABLE_CLASS_NAME,f=c.binaryProperties,b,p,x;if(s){let L=vit(t,m,f,n,a);x=L.transcodedSchema,p=[new hy({propertyAttribute:L.propertyAttributeJson,class:L.transcodedClass})]}else{let L=Pit(t,m,f,n);x=L.transcodedSchema;let V=L.featureTableJson;b=new Vl({count:V.count,properties:V.properties,class:L.transcodedClass,bufferViews:L.bufferViewsTypedArrays}),p=[]}let T=[];if(d(b)||d(l)||d(u)){let L=new ls({id:0,name:"Batch Table",count:t,metadataTable:b,jsonMetadataTable:l,batchTableHierarchy:u});T.push(L)}let _={schema:x,propertyTables:T,propertyAttributes:p,extensions:c.extensions,extras:c.extras};return new mr(_)}function Pit(e,t,n,i){let o={},r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;if(!d(i))throw new le(`Property ${m} requires a batch table binary.`);let f=n[m],b=Tl(f);r[m]={bufferView:a},o[m]=uxe(f),s[a]=b.createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e),a++}let c={classes:{}};c.classes[t]={properties:o};let l=Rl.fromJson(c);return{featureTableJson:{class:t,count:e,properties:r},bufferViewsTypedArrays:s,transcodedSchema:l,transcodedClass:l.classes[t]}}function vit(e,t,n,i,o){let r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;let f=n[m];if(!d(i)&&!d(f.typedArray))throw new le(`Property ${m} requires a batch table binary.`);let b=fn.sanitizeGlslIdentifier(m);(b===""||r.hasOwnProperty(b))&&(b=`property_${a}`,a++);let p=uxe(f);p.name=m,r[b]=p;let x=b.toUpperCase();x.startsWith("_")||(x=`_${x}`);let T=f.typedArray;d(T)||(T=Tl(f).createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e));let _=new hn.Attribute;_.name=x,_.count=e,_.type=f.type;let L=H.fromTypedArray(T);(L===H.INT||L===H.UNSIGNED_INT||L===H.DOUBLE)&&(NY._oneTimeWarning("Cast pnts property to floats",`Point cloud property "${x}" will be cast to a float array because INT, UNSIGNED_INT, and DOUBLE are not valid WebGL vertex attribute types. Some precision may be lost.`),T=new Float32Array(T)),_.componentDatatype=H.fromTypedArray(T),_.typedArray=T,o.push(_),s[b]={attribute:x}}let c={classes:{}};c.classes[t]={properties:r};let l=Rl.fromJson(c);return{class:t,propertyAttributeJson:{properties:s},transcodedSchema:l,transcodedClass:l.classes[t]}}function uxe(e){let t=Nit(e.componentType);return{type:e.type,componentType:t}}function Nit(e){switch(e){case"BYTE":return"INT8";case"UNSIGNED_BYTE":return"UINT8";case"SHORT":return"INT16";case"UNSIGNED_SHORT":return"UINT16";case"INT":return"INT32";case"UNSIGNED_INT":return"UINT32";case"FLOAT":return"FLOAT32";case"DOUBLE":return"FLOAT64"}}NY._deprecationWarning=lr;NY._oneTimeWarning=Ft;var Bu=NY;var SS={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},Fit=hn.FeatureIdAttribute;function $x(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=SS.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&($x.prototype=Object.create(vi.prototype),$x.prototype.constructor=$x);Object.defineProperties($x.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});$x.prototype.load=function(){if(d(this._promise))return this._promise;let e=Bv.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=new ma(t,n);this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2"?this._batchLength=this._attBatchTable?.batchTableJson?.tid?.tidsLength:this._tilesetVersion==="2.0"&&d(this._attBatchTable)&&(this._batchLength=this._attBatchTable?.batchTableJson?.OID?.length),d(this._batchLength)||(this._batchLength=0);let o=i.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(o)&&(this._transform=P.fromTranslation(h.fromArray(o))),d(this._attBatchTable)&&(this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary});let r=new zc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,tilesetVersion:this._tilesetVersion,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=r,this._state=SS.LOADING;let s=this;return this._promise=r.load().then(function(){if(!s.isDestroyed())return s._state=SS.PROCESSING,s}).catch(function(a){if(!s.isDestroyed())return Ait(s,a)}),this._promise};function Ait(e,t){return e.unload(),e._state=SS.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}$x.prototype.process=function(e){if(this._state===SS.READY)return!0;if(this._state!==SS.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),Dit(this,n),this._components=n,this._arrayBuffer=void 0,this._state=SS.READY,!0};function Dit(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)mxe(s[c]);t.structuralMetadata=r}function mxe(e){let t=e.children.length;for(let i=0;i<t;i++)mxe(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new Fit;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}$x.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var Qv=$x;var imi=S(C(),1);var CS={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},Uit=hn.FeatureIdAttribute;function eT(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=CS.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(eT.prototype=Object.create(vi.prototype),eT.prototype.constructor=eT);Object.defineProperties(eT.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});eT.prototype.load=function(){if(d(this._promise))return this._promise;let e=hS.parse(this._arrayBuffer,this._byteOffset),t=e.batchLength,n=e.featureTableJson,i=e.featureTableBinary,o=new ma(n,i);t=o.getGlobalProperty("BATCH_LENGTH"),this._batchLength=t;let r=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(r)&&(this._transform=P.fromTranslation(h.fromArray(r))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let s=new zc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=s,this._state=CS.LOADING;let a=this;return this._promise=s.load().then(function(){if(!a.isDestroyed())return a._state=CS.PROCESSING,a}).catch(function(c){if(!a.isDestroyed())return kit(a,c)}),this._promise};function kit(e,t){return e.unload(),e._state=CS.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}eT.prototype.process=function(e){if(this._state===CS.READY)return!0;if(this._state!==CS.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),zit(this,n),this._components=n,this._arrayBuffer=void 0,this._state=CS.READY,!0};function zit(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)hxe(s[c]);t.structuralMetadata=r}function hxe(e){let t=e.children.length;for(let i=0;i<t;i++)hxe(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new Uit;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}eT.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var jv=eT;var wmi=S(C(),1);var Cy={NOT_LOADED:0,LOADING:1,PROCESSING:2,POST_PROCESSING:3,READY:4,FAILED:5,UNLOADED:6},FY=hn.Attribute,Yit=hn.FeatureIdAttribute,fxe=hn.Instances;function Ly(e){e=g(e,g.EMPTY_OBJECT);let t=e.i3dmResource,n=e.arrayBuffer,i=e.baseResource,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadIndicesForWireframe,!1),f=g(e.loadPrimitiveOutline,!0),b=g(e.enablePick,!1);i=d(i)?i:t.clone(),this._i3dmResource=t,this._baseResource=i,this._arrayBuffer=n,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadIndicesForWireframe=m,this._loadPrimitiveOutline=f,this._enablePick=b,this._state=Cy.NOT_LOADED,this._promise=void 0,this._gltfLoader=void 0,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._batchTable=void 0,this._featureTable=void 0,this._instancesLength=0,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(Ly.prototype=Object.create(vi.prototype),Ly.prototype.constructor=Ly);Object.defineProperties(Ly.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Ly.prototype.load=function(){if(d(this._promise))return this._promise;let e=fS.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=e.gltfFormat,o=new ma(t,n);this._featureTable=o;let r=o.getGlobalProperty("INSTANCES_LENGTH");if(o.featuresLength=r,!d(r))throw new le("Feature table global property: INSTANCES_LENGTH must be defined");this._instancesLength=r;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let a={upAxis:this._upAxis,forwardAxis:this._forwardAxis,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry};if(i===0){let l=wr(e.gltf);l=l.replace(/[\s\0]+$/,"");let u=this._baseResource.getDerivedResource({url:l});a.gltfResource=u,a.baseResource=u}else a.gltfResource=this._i3dmResource,a.typedArray=e.gltf;let c=new zc(a);return this._gltfLoader=c,this._state=Cy.LOADING,this._promise=c.load().then(()=>{if(!this.isDestroyed())return this._state=Cy.PROCESSING,this}).catch(l=>{if(!this.isDestroyed())throw Bit(this,l)}),this._promise};function Bit(e,t){return e.unload(),e._state=Cy.FAILED,e.getError("Failed to load i3dm",t)}Ly.prototype.process=function(e){if(this._state===Cy.READY)return!0;let t=this._gltfLoader,n=!1;if(this._state===Cy.PROCESSING&&(n=t.process(e)),!n)return!1;let i=t.components;return i.transform=P.multiplyTransformation(this._transform,i.transform,i.transform),Hit(this,i,e),Oit(this,i),this._components=i,this._arrayBuffer=void 0,this._state=Cy.READY,!0};function Oit(e,t){let n=e._batchTable,i=e._instancesLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let s=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[s]})}t.structuralMetadata=r}var AY=new h,R6=new Array(4),Kit=new P;function Hit(e,t,n){let i,o=e._featureTable,r=e._instancesLength;if(r===0)return;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3),a=o.getGlobalProperty("EAST_NORTH_UP"),c=o.hasProperty("NORMAL_UP")||o.hasProperty("NORMAL_UP_OCT32P")||a,l=o.hasProperty("SCALE")||o.hasProperty("SCALE_NON_UNIFORM"),u=Qit(o,r),m;c&&(m=new Float32Array(4*r));let f;l&&(f=new Float32Array(3*r));let b=new Float32Array(r),p=h.unpackArray(u),x=new h,T=new h,_=new h,L=new h,V=new $,Z=new Be,G=new Array(4),I=new h,w=new Array(3),W=new P;if(!d(s)||h.equals(h.unpack(s),h.ZERO)){let U=de.fromPoints(p);for(i=0;i<p.length;i++)h.subtract(p[i],U.center,AY),u[3*i+0]=AY.x,u[3*i+1]=AY.y,u[3*i+2]=AY.z;let k=P.fromTranslation(U.center,Kit);t.transform=P.multiplyTransformation(k,t.transform,t.transform)}for(i=0;i<r;i++){x=h.clone(p[i]),d(s)&&h.add(x,h.unpack(s),x),c&&(jit(o,a,i,Z,x,_,T,L,V,W),Be.pack(Z,G,0),m[4*i+0]=G[0],m[4*i+1]=G[1],m[4*i+2]=G[2],m[4*i+3]=G[3]),l&&(qit(o,i,I),h.pack(I,w,0),f[3*i+0]=w[0],f[3*i+1]=w[1],f[3*i+2]=w[2]);let U=o.getProperty("BATCH_ID",H.UNSIGNED_SHORT,1,i);d(U)||(U=i),b[i]=U}let v=new fxe;v.transformInWorldSpace=!0;let N=e._buffers,y=new FY;if(y.name="Instance Translation",y.semantic=kr.TRANSLATION,y.componentDatatype=H.FLOAT,y.type=kt.VEC3,y.count=r,y.typedArray=u,!c){let U=nt.createVertexBuffer({context:n.context,typedArray:u,usage:Me.STATIC_DRAW});U.vertexArrayDestroyable=!1,N.push(U),y.buffer=U}if(v.attributes.push(y),c){let U=new FY;U.name="Instance Rotation",U.semantic=kr.ROTATION,U.componentDatatype=H.FLOAT,U.type=kt.VEC4,U.count=r,U.typedArray=m,v.attributes.push(U)}if(l){let U=new FY;if(U.name="Instance Scale",U.semantic=kr.SCALE,U.componentDatatype=H.FLOAT,U.type=kt.VEC3,U.count=r,c)U.typedArray=f;else{let k=nt.createVertexBuffer({context:n.context,typedArray:f,usage:Me.STATIC_DRAW});k.vertexArrayDestroyable=!1,N.push(k),U.buffer=k}v.attributes.push(U)}let R=new FY;R.name="Instance Feature ID",R.setIndex=0,R.semantic=kr.FEATURE_ID,R.componentDatatype=H.FLOAT,R.type=kt.SCALAR,R.count=r;let E=nt.createVertexBuffer({context:n.context,typedArray:b,usage:Me.STATIC_DRAW});E.vertexArrayDestroyable=!1,N.push(E),R.buffer=E,v.attributes.push(R);let X=new Yit;X.propertyTableId=0,X.setIndex=0,X.positionalLabel="instanceFeatureId_0",v.featureIds.push(X);let F=t.nodes,A=F.length,Y=!1;for(i=0;i<A;i++){let U=F[i];U.primitives.length>0&&(U.instances=Y?Jit(v):v,Y=!0)}}function Jit(e){let t=new fxe;t.transformInWorldSpace=e.transformInWorldSpace;let n=e.attributes,i=n.length;for(let o=0;o<i;o++){let r=Ue(n[o],!1);t.attributes.push(r)}return t.featureIds=e.featureIds,t}function Qit(e,t){if(e.hasProperty("POSITION"))return e.getPropertyArray("POSITION",H.FLOAT,3);if(e.hasProperty("POSITION_QUANTIZED")){let n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3),i=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");let o=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(o))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=new Float32Array(n.length);for(let s=0;s<n.length/3;s++)for(let a=0;a<3;a++){let c=3*s+a;r[c]=n[c]/65535*o[a]+i[a]}return r}else throw new le("Either POSITION or POSITION_QUANTIZED must be defined for each instance.")}var pxe=new Array(4);function jit(e,t,n,i,o,r,s,a,c,l){let u=e.getProperty("NORMAL_UP",H.FLOAT,3,n,R6),m=e.getProperty("NORMAL_RIGHT",H.FLOAT,3,n,pxe),f=!1;if(d(u)){if(!d(m))throw new le("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");h.unpack(u,0,r),h.unpack(m,0,s),f=!0}else{let b=e.getProperty("NORMAL_UP_OCT32P",H.UNSIGNED_SHORT,2,n,R6),p=e.getProperty("NORMAL_RIGHT_OCT32P",H.UNSIGNED_SHORT,2,n,pxe);if(d(b)){if(!d(p))throw new le("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");xn.octDecodeInRange(b[0],b[1],65535,r),xn.octDecodeInRange(p[0],p[1],65535,s),f=!0}else t?(Zt.eastNorthUpToFixedFrame(o,oe.WGS84,l),P.getMatrix3(l,c)):$.clone($.IDENTITY,c)}f&&(h.cross(s,r,a),h.normalize(a,a),$.setColumn(c,0,s,c),$.setColumn(c,1,r,c),$.setColumn(c,2,a,c)),Be.fromRotationMatrix(c,i)}function qit(e,t,n){n=h.fromElements(1,1,1,n);let i=e.getProperty("SCALE",H.FLOAT,1,t);d(i)&&h.multiplyByScalar(n,i,n);let o=e.getProperty("SCALE_NON_UNIFORM",H.FLOAT,3,t,R6);d(o)&&(n.x*=o[0],n.y*=o[1],n.z*=o[2])}function $it(e){let t=e._buffers,n=t.length;for(let i=0;i<n;i++){let o=t[i];o.isDestroyed()||o.destroy()}t.length=0}Ly.prototype.isUnloaded=function(){return this._state===Cy.UNLOADED};Ly.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),$it(this),this._components=void 0,this._arrayBuffer=void 0,this._state=Cy.UNLOADED};var qv=Ly;var ghi=S(C(),1);var xxe=S(HG(),1);var Kmi=S(C(),1);var bxe={},Mp=Uint32Array.BYTES_PER_ELEMENT;bxe.parse=function(e,t,n,i,o){t=g(t,0);let r=new Uint8Array(e),s=new DataView(e),a=0,c=0,l,u;if(n.version==="1.0"||n.version==="0.0"){let _=s.getUint32(t,!0);t+=Mp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Mp;let V=s.getUint32(t,!0);if(t+=Mp,c=s.getUint32(t,!0),t+=Mp,_>0){let G=wr(r,t,_),I=JSON.parse(G);n.loadChildTileSet(o,I,i)}t+=_;let Z=wr(r,t,L);l=JSON.parse(Z),t+=L,u=new Uint8Array(e,t,V),t+=V}else{t+=Mp;let _=s.getUint32(t,!0);if(_!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${_} is not.`);t+=Mp,t+=Mp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Mp;let V=s.getUint32(t,!0);t+=Mp,a=s.getUint32(t,!0),t+=Mp,c=s.getUint32(t,!0),t+=Mp,l=mo(r,t,L),t+=L,u=new Uint8Array(e,t,V),t+=V}let m,f;a>0&&(m=mo(r,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=eot(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=tot(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=iot(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=not(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=oot(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T.batchTableJson=m,T};function eot(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:Tt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function tot(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:kt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:kt.VEC3}}}function not(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:kt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:s}}}function iot(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:kt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:kt.VEC3}}function oot(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:kt.SCALAR}}}var $v=bxe;var rot=hn.Components,sot=hn.Scene,aot=hn.Node,cot=hn.Primitive,lot=hn.Attribute,yxe=hn.Quantization,dot=hn.FeatureIdAttribute,uot=hn.Material,mot=hn.MetallicRoughness;function tT(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._tileset=e.tileset,this._tile=e.tile,this._resource=e.resource}d(Object.create)&&(tT.prototype=Object.create(vi.prototype),tT.prototype.constructor=tT);Object.defineProperties(tT.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});tT.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=$v.parse(this._arrayBuffer,this._byteOffset,this._tileset,this._tile,this._resource),(this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2")&&(this._parsedContent.batchTableJson=this._attBatchTable?.batchTableJson,this._parsedContent.batchTableBinary=this._attBatchTable?.batchTableBinary),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};tT.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=hot(this,e.context)}return!1};function hot(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=Lp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&pot(e,i,r),Vot(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function pot(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=kt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=kt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:kt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:fot(l.componentsPerAttribute),componentType:bot(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function fot(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function bot(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function eN(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new yxe,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new yxe;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new lot;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var gxe,DY;function yot(e){if(!d(DY)){gxe=new xxe.default(0),DY=new Array(e);for(let t=0;t<e;++t)DY[t]=gxe.random()}return DY}var got=new h,xot=new h,Tot=new h;function _ot(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=yot(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,got),l=h.fromElements(a,a,a,xot),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,Tot),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var Sot={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:!1};function Cot(e,t,n){let i=[],o,r=t.positions;return d(r)&&(_ot(r),o=eN(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=eN(e,t.normals,n),i.push(o)),d(t.colors)?(o=eN(e,t.colors,n),i.push(o)):(o=eN(e,Sot,n),i.push(o)),d(t.batchIds)&&(o=eN(e,t.batchIds,n),i.push(o)),i}function Lot(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable||e.batchTableJson){let a=g(i,o);if(n==="2.1"||n==="2.2")return Bu({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,tilesetVersion:n});if(n==="2.0")return Ep({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t})}return new mr({schema:{},propertyTables:[]})}function Vot(e,t){let n=e._parsedContent,i=e._tilesetVersion,o=new mot;o.metallicFactor=0,o.roughnessFactor=.9;let r=new uot;r.metallicRoughness=o;let s=n.colors;d(s)&&s.isTranslucent&&(r.alphaMode=jm.BLEND);let a=!d(n.normals);r.unlit=a;let c=new cot;if(c.attributes=Cot(e,n,t),c.primitiveType=Fe.POINTS,c.material=r,d(n.batchIds)){let p=new dot;p.propertyTableId=0,p.setIndex=0,p.positionalLabel="featureId_0",c.featureIds.push(p)}let l=new aot;l.index=0,l.primitives=[c];let u=new sot;u.nodes=[l],u.upAxis=In.Z,u.forwardAxis=In.X;let m=new rot;m.scene=u,m.nodes=[l];let f=[];m.structuralMetadata=Lot(n,f,i),f.length>0&&Zot(e,c,f,t),d(n.rtcCenter)&&(m.transform=P.multiplyByTranslation(m.transform,n.rtcCenter,m.transform));let b=n.positions;d(b)&&b.isQuantized&&(m.transform=P.multiplyByTranslation(m.transform,b.quantizedVolumeOffset,m.transform)),e._components=m,e._parsedContent=void 0,e._arrayBuffer=void 0}function Zot(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}tT.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var tN=tT;var zhi=S(C(),1);var Lhi=S(C(),1);var EZ={};EZ._deprecationWarning=lr;var nT=Uint32Array.BYTES_PER_ELEMENT;EZ.parse=function(e,t,n,i){t=g(t,0);let r=new DataView(e),s=new Uint8Array(e),a=0,c=0,l=0,u=0,m=r.getUint32(t,!0);t+=nT;let f;if(m>0){let Z=wr(s,t,m);t+=m,f=JSON.parse(Z),i.tileset.loadChildTileSet(n,f,i)}t+=nT,a=r.getUint32(t,!0),t+=nT,c=r.getUint32(t,!0),t+=nT,l=r.getUint32(t,!0),t+=nT,u=r.getUint32(t,!0),t+=nT;let b;m=r.getUint32(t,!0),l>=570425344?(t-=nT*2,b=a,l=c,u=0,a=0,c=0,EZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):u>=570425344&&(t-=nT,b=l,l=a,u=c,a=0,c=0,EZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let p;a===0?p={BATCH_LENGTH:g(b,0)}:(p=mo(s,t,a),t+=a);let x=new Uint8Array(e,t,c);t+=c;let T,_;l>0&&(T=mo(s,t,l),t+=l,u>0&&(_=new Uint8Array(e,t,u),_=new Uint8Array(_),t+=u));let L=e.byteLength-t,V;return t%4===0?V=new Uint8Array(e,t,L):(EZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),V=new Uint8Array(s.subarray(t,t+L))),{batchLength:b,featureTableJson:p,featureTableBinary:x,batchTableJson:T,batchTableBinary:_,gltf:V}};var nN=EZ;var LS={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},Rot=hn.FeatureIdAttribute;function iT(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=LS.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._tilesetVersion=e.tilesetVersion,this._tile=e.tile,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(iT.prototype=Object.create(vi.prototype),iT.prototype.constructor=iT);Object.defineProperties(iT.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});iT.prototype.load=function(){if(d(this._promise))return this._promise;let e=nN.parse(this._arrayBuffer,this._byteOffset,this._baseResource,this._tile),t=e.featureTableJson,n=e.featureTableBinary,i=e.batchTableJson,o=e.batchTableBinary,r=new ma(t,n);this._tilesetVersion==="1.0"&&(this._batchLength=r.getGlobalProperty("BATCH_LENGTH"));let s=r.getGlobalProperty("RTC_CENTER",H.FLOAT,3);if(d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),d(i)){if(i.hasOwnProperty("name")){i.OID=[];let l=i.name;for(let u=0;u<l.length;u++){let m=l[u].split("_"),f=parseInt(m[2]);i.OID.push(f)}}this._batchTable={json:i,binary:o}}let a=new zc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=a,this._state=LS.LOADING;let c=this;return this._promise=a.load().then(function(){if(!c.isDestroyed())return c._state=LS.PROCESSING,c}).catch(function(l){if(!c.isDestroyed())return Got(c,l)}),this._promise};function Got(e,t){return e.unload(),e._state=LS.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}iT.prototype.process=function(e){if(this._state===LS.READY)return!0;if(this._state!==LS.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),Eot(this,n),this._components=n,this._arrayBuffer=void 0,this._state=LS.READY,!0};function Eot(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)Txe(s[c]);t.structuralMetadata=r}function Txe(e){let t=e.children.length;for(let i=0;i<t;i++)Txe(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new Rot;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}iT.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var iN=iT;var Bhi=S(C(),1),Iot={FILL:0,SILHOUETTE:1,ALL:2},wp=Object.freeze(Iot);function Yi(e){e=g(e,g.EMPTY_OBJECT),this._loader=e.loader,this._resource=e.resource,this.type=g(e.type,xr.GLTF),this.modelMatrix=P.clone(g(e.modelMatrix,P.IDENTITY)),this._modelMatrix=P.clone(this.modelMatrix),this._scale=g(e.scale,1),this._minimumPixelSize=g(e.minimumPixelSize,0),this._maximumScale=e.maximumScale,this._clampedScale=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,this._computedScale=this._clampedScale,this._updateModelMatrix=!1,this.referenceMatrix=void 0,this._iblReferenceFrameMatrix=$.clone($.IDENTITY),this._resourcesLoaded=!1,this._drawCommandsBuilt=!1,this._ready=!1,this._customShader=e.customShader,this._content=e.content,this._texturesLoaded=!1,this._defaultTexture=void 0,this._activeAnimations=new HW(this),this._clampAnimations=g(e.clampAnimations,!0),this._userAnimationDirty=!1,this._id=e.id,this._idDirty=!1,this._color=z.clone(e.color),this._backupColor=z.clone(e.color),this._colorBlendMode=g(e.colorBlendMode,Cl.HIGHLIGHT),this._colorBlendAmount=g(e.colorBlendAmount,.5);let t=g(e.silhouetteColor,z.RED);this._silhouetteColor=z.clone(t),this._silhouetteSize=g(e.silhouetteSize,0),this._silhouetteDirty=!1,this._silhouetteId=void 0,this._cull=g(e.cull,!0),this._opaquePass=g(e.opaquePass,Ze.OPAQUE),this._allowPicking=g(e.allowPicking,!0),this._show=g(e.show,!0),this._style=void 0,this._styleDirty=!1,this._styleCommandsNeeded=void 0;let n=g(e.featureIdLabel,"featureId_0");typeof n=="number"&&(n=`featureId_${n}`),this._featureIdLabel=n;let i=g(e.instanceFeatureIdLabel,"instanceFeatureId_0");typeof i=="number"&&(i=`instanceFeatureId_${i}`),this._instanceFeatureIdLabel=i,this._featureTables=[],this._featureTableId=void 0,this._featureTableIdDirty=!0,this._pipelineResources=[],this._modelResources=[],this._pickIds=[],this._boundingSphere=new de,this._initialRadius=void 0,this._heightReference=g(e.heightReference,rt.NONE),this._heightDirty=this._heightReference!==rt.NONE,this._removeUpdateHeightCallback=void 0,this._enableVerticalExaggeration=g(e.enableVerticalExaggeration,!0),this._hasVerticalExaggeration=!1,this._clampedModelMatrix=void 0;let o=e.scene;d(o)&&d(o.terrainProviderChanged)&&(this._terrainProviderChangedCallback=o.terrainProviderChanged.addEventListener(()=>{this._heightDirty=!0})),this._scene=o,this._distanceDisplayCondition=e.distanceDisplayCondition;let r=new $m(e.pointCloudShading);this._pointCloudShading=r,this._attenuation=r.attenuation,this._pointCloudBackFaceCulling=r.backFaceCulling;let s=e.clippingPlanes;d(s)&&s.owner===void 0?Zr.setOwner(s,this,"_clippingPlanes"):this._clippingPlanes=s,this._clippingPlanesState=0,this._clippingPlanesMatrix=P.clone(P.IDENTITY);let a=e.clippingPolygons;d(a)&&a.owner===void 0?jd.setOwner(a,this,"_clippingPolygons"):this._clippingPolygons=a,this._clippingPolygonsState=0,this._lightColor=h.clone(e.lightColor),this._imageBasedLighting=d(e.imageBasedLighting)?e.imageBasedLighting:new Qb,this._shouldDestroyImageBasedLighting=!d(e.imageBasedLighting),this._backFaceCulling=g(e.backFaceCulling,!0),this._backFaceCullingDirty=!1,this._shadows=g(e.shadows,On.ENABLED),this._shadowsDirty=!1,this._debugShowBoundingVolumeDirty=!1,this._debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this._enableDebugWireframe=g(e.enableDebugWireframe,!1),this._enableShowOutline=g(e.enableShowOutline,!0),this._debugWireframe=g(e.debugWireframe,!1),this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltf, otherwise debugWireframe will be ignored.");let c=e.credit;typeof c=="string"&&(c=new Ot(c)),this._credits=[],this._credit=c,this._resourceCredits=[],this._gltfCredits=[],this._showCreditsOnScreen=g(e.showCreditsOnScreen,!1),this._showCreditsOnScreenDirty=!0,this._splitDirection=g(e.splitDirection,cs.NONE),this._swipeInverse=!1,this._swiper={},this._enableShowOutline=g(e.enableShowOutline,!0),this.showOutline=g(e.showOutline,!0),this.outlineColor=g(e.outlineColor,z.BLACK),this._classificationType=e.classificationType,this._statistics=new kv,this._sceneMode=void 0,this._projectTo2D=g(e.projectTo2D,!1),this._enablePick=g(e.enablePick,!1),this._fogRenderable=void 0,this._skipLevelOfDetail=!1,this._ignoreCommands=g(e.ignoreCommands,!1),this._errorEvent=new Se,this._readyEvent=new Se,this._texturesReadyEvent=new Se,this._sceneGraph=void 0,this._nodesByName={},this.pickObject=e.pickObject,this._fillClip=g(e.fillClip,!1),this._hasSectionGeometry=g(e.hasSectionGeometry,!1),this._clippingFillImage=g(e.clippingFillImage,void 0),this._lightState={pointLightNum:0,directionalLigthNum:0,spotLightNum:0},this._renderMode=g(e.renderMode,wp.FILL),this._deleteVerticalPlane=g(e.deleteVerticalPlane,!1),this._hasSectionGeometry=this.content?.tileset._hasSectionGeometry,this._clippingGeometries=e.clippingGeometries,this._brightness=0,this._modelUpAxis=In.Y,this._exposure=0,this._contrast=1,this._hue=0,this._saturation=0,this._gamma=1,this._nodeCommands=[]}function G6(e,t){if(e._errorEvent.numberOfListeners>0){e._errorEvent.raiseEvent(t);return}console.log(t)}function Xot(e,t){let n=e._featureTables,i=t.propertyTables,o=i.length;for(let r=0;r<o;r++){let s=i[r],a=new jW({model:e,propertyTable:s});n.push(a)}return n}function Mot(e,t){let n=t._featureIdLabel,i=t._instanceFeatureIdLabel,o,r,s,a;for(o=0;o<e.nodes.length;o++)if(a=e.nodes[o],d(a.instances)&&(s=fn.getFeatureIdsByLabel(a.instances.featureIds,i),d(s)&&d(s.propertyTableId)))return s.propertyTableId;for(o=0;o<e.nodes.length;o++)for(a=e.nodes[o],r=0;r<a.primitives.length;r++){let c=a.primitives[r],l=fn.getFeatureIdsByLabel(c.featureIds,n);if(d(l))return l.propertyTableId}if(t._featureTables.length===1)return 0}function X6(e,t){if(!d(e)&&!d(t))return!1;if(d(e)!==d(t))return!0;let n=e.alpha,i=t.alpha;return Math.floor(n)!==Math.floor(i)||Math.ceil(n)!==Math.ceil(i)}Object.defineProperties(Yi.prototype,{ready:{get:function(){return this._ready}},errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},incrementallyLoadTextures:{get:function(){return g(this._loader.incrementallyLoadTextures,!1)}},texturesReadyEvent:{get:function(){return this._texturesReadyEvent}},loader:{get:function(){return this._loader}},statistics:{get:function(){return this._statistics}},activeAnimations:{get:function(){return this._activeAnimations}},clampAnimations:{get:function(){return this._clampAnimations},set:function(e){this._clampAnimations=e}},cull:{get:function(){return this._cull}},opaquePass:{get:function(){return this._opaquePass}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){e!==this._pointCloudShading&&this.resetDrawCommands(),this._pointCloudShading=e}},customShader:{get:function(){return this._customShader},set:function(e){e!==this._customShader&&this.resetDrawCommands(),this._customShader=e}},sceneGraph:{get:function(){return this._sceneGraph}},content:{get:function(){return this._content}},heightReference:{get:function(){return this._heightReference},set:function(e){e!==this._heightReference&&(this._heightDirty=!0),this._heightReference=e}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){this._distanceDisplayCondition=nn.clone(e,this._distanceDisplayCondition)}},structuralMetadata:{get:function(){return this._sceneGraph.components.structuralMetadata}},featureTableId:{get:function(){return this._featureTableId},set:function(e){this._featureTableId=e}},featureTables:{get:function(){return this._featureTables},set:function(e){this._featureTables=e}},id:{get:function(){return this._id},set:function(e){e!==this._id&&(this._idDirty=!0),this._id=e}},allowPicking:{get:function(){return this._allowPicking}},style:{get:function(){return this._style},set:function(e){this._style=e,this._styleDirty=!0}},color:{get:function(){return this._color},set:function(e){X6(e,this._color)&&this.resetDrawCommands(),this._color=z.clone(e,this._color)}},colorBlendMode:{get:function(){return this._colorBlendMode},set:function(e){this._colorBlendMode=e}},colorBlendAmount:{get:function(){return this._colorBlendAmount},set:function(e){this._colorBlendAmount=e}},silhouetteColor:{get:function(){return this._silhouetteColor},set:function(e){if(!z.equals(e,this._silhouetteColor)){let t=X6(e,this._silhouetteColor);this._silhouetteDirty=this._silhouetteDirty||t}this._silhouetteColor=z.clone(e,this._silhouetteColor)}},silhouetteSize:{get:function(){return this._silhouetteSize},set:function(e){if(e!==this._silhouetteSize){let t=this._silhouetteSize,n=e>0&&t===0||e===0&&t>0;this._silhouetteDirty=this._silhouetteDirty||n,this._backFaceCullingDirty=this._backFaceCullingDirty||n}this._silhouetteSize=e}},boundingSphere:{get:function(){let e=d(this._clampedModelMatrix)?this._clampedModelMatrix:this.modelMatrix;return Cxe(this,e),this._boundingSphere}},localBoundingSphere:{get:function(){let e=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,t=this._boundingSphere.clone();return t.center=h.multiplyByScalar(this._sceneGraph.boundingSphere.center,e,t.center),t.radius=this._initialRadius*this._clampedScale,t}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolumeDirty=!0),this._debugShowBoundingVolume=e}},debugWireframe:{get:function(){return this._debugWireframe},set:function(e){this._debugWireframe!==e&&this.resetDrawCommands(),this._debugWireframe=e,this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltfAsync, otherwise debugWireframe will be ignored.")}},show:{get:function(){return this._show},set:function(e){this._show=e}},featureIdLabel:{get:function(){return this._featureIdLabel},set:function(e){typeof e=="number"&&(e=`featureId_${e}`),e!==this._featureIdLabel&&(this._featureTableIdDirty=!0),this._featureIdLabel=e}},instanceFeatureIdLabel:{get:function(){return this._instanceFeatureIdLabel},set:function(e){typeof e=="number"&&(e=`instanceFeatureId_${e}`),e!==this._instanceFeatureIdLabel&&(this._featureTableIdDirty=!0),this._instanceFeatureIdLabel=e}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){e!==this._clippingPlanes&&(Zr.setOwner(e,this,"_clippingPlanes"),this.resetDrawCommands())}},clippingGeometries:{get:function(){return this._clippingGeometries},set:function(e){this._clippingGeometries!==e&&(this._clippingGeometries=e,this.resetDrawCommands())}},clippingPolygons:{get:function(){return this._clippingPolygons},set:function(e){e!==this._clippingPolygons&&(jd.setOwner(e,this,"_clippingPolygons"),this.resetDrawCommands())}},enableVerticalExaggeration:{get:function(){return this._enableVerticalExaggeration},set:function(e){e!==this._enableVerticalExaggeration&&this.resetDrawCommands(),this._enableVerticalExaggeration=e}},hasVerticalExaggeration:{get:function(){return this._hasVerticalExaggeration}},lightColor:{get:function(){return this._lightColor},set:function(e){d(e)!==d(this._lightColor)&&this.resetDrawCommands(),this._lightColor=h.clone(e,this._lightColor)}},imageBasedLighting:{get:function(){return this._imageBasedLighting},set:function(e){e!==this._imageBasedLighting&&(this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=e,this._shouldDestroyImageBasedLighting=!1,this.resetDrawCommands())}},backFaceCulling:{get:function(){return this._backFaceCulling},set:function(e){e!==this._backFaceCulling&&(this._backFaceCullingDirty=!0),this._backFaceCulling=e}},scale:{get:function(){return this._scale},set:function(e){e!==this._scale&&(this._updateModelMatrix=!0),this._scale=e}},computedScale:{get:function(){return this._computedScale}},renderMode:{get:function(){return this._renderMode},set:function(e){this._renderMode=e}},minimumPixelSize:{get:function(){return this._minimumPixelSize},set:function(e){e!==this._minimumPixelSize&&(this._updateModelMatrix=!0),this._minimumPixelSize=e}},maximumScale:{get:function(){return this._maximumScale},set:function(e){e!==this._maximumScale&&(this._updateModelMatrix=!0),this._maximumScale=e}},shadows:{get:function(){return this._shadows},set:function(e){e!==this._shadows&&(this._shadowsDirty=!0),this._shadows=e}},credit:{get:function(){return this._credit}},showCreditsOnScreen:{get:function(){return this._showCreditsOnScreen},set:function(e){this._showCreditsOnScreen!==e&&(this._showCreditsOnScreenDirty=!0),this._showCreditsOnScreen=e}},splitDirection:{get:function(){return this._splitDirection},set:function(e){this._splitDirection!==e&&this.resetDrawCommands(),this._splitDirection=e}},rollerShutterRegion:{get:function(){return this._rollerShutterRegion},set:function(e){this._rollerShutterRegion=e}},rollerShutterSpyglassRegion:{get:function(){return this._rollerShutterSpyglassRegion},set:function(e){this._rollerShutterSpyglassRegion=e}},rollerShutterPolygonRegion:{get:function(){return this._rollerShutterPolygonRegion},set:function(e){this._rollerShutterPolygonRegion=e}},swipeInverse:{get:function(){return this._swipeInverse},set:function(e){this._swipeInverse=e}},swiper:{get:function(){return this._swiper},set:function(e){this._swiper=e}},classificationType:{get:function(){return this._classificationType}},pickIds:{get:function(){return this._pickIds}},styleCommandsNeeded:{get:function(){return this._styleCommandsNeeded}}});Yi.prototype.getNode=function(e){return this._nodesByName[e]};Yi.prototype.setArticulationStage=function(e,t){this._sceneGraph.setArticulationStage(e,t)};Yi.prototype.applyArticulations=function(){this._sceneGraph.applyArticulations()};Yi.prototype.getExtension=function(e){return this._loader.components.extensions[e]};Yi.prototype.makeStyleDirty=function(){this._styleDirty=!0};Yi.prototype.resetDrawCommands=function(){this._drawCommandsBuilt=!1};var wot=new P,Wot=new $,Pot=new P;Yi.prototype.update=function(e){let t=!1;try{t=vot(this,e)}catch(n){if(!this._loader.incrementallyLoadTextures&&n.name==="TextureError")G6(this,n);else{let i=fn.getError("model",this._resource,n);G6(this,i)}}if(Not(this,e),Fot(this,e),!this._resourcesLoaded&&t){this._resourcesLoaded=!0;let n=this._loader.components;if(!d(n)){if(this._loader.isUnloaded())return;let r=fn.getError("model",this._resource,new le("Failed to load model."));G6(r),this._rejectLoad=this._rejectLoad&&this._rejectLoad(r)}let i=n.structuralMetadata;d(i)&&i.propertyTableCount>0&&Xot(this,i);let o=new Uv({model:this,modelComponents:n});this._sceneGraph=o,this._gltfCredits=o.components.asset.credits}if(!(!this._resourcesLoaded||e.mode===ae.MORPHING)){if(Aot(this),Dot(this),Uot(this,e),kot(this),zot(this,e),Yot(this,e),Bot(this,e),Oot(this,e),Kot(this,e),Hot(this,e),Jot(this,e),qot(this,e),$ot(this,e),ert(this,e),nrt(this,e),trt(this,e),irt(this,e),ort(this,e),this._defaultTexture=e.context.defaultTexture,rrt(this,e),srt(this,e),art(this),crt(this,e),mrt(this,e),jot(this,e),!this._ready){e.afterRender.push(()=>{this._ready=!0,this._readyEvent.raiseEvent(this)});return}this._loader.incrementallyLoadTextures&&!this._texturesLoaded&&this._loader.texturesLoaded&&(this.resetDrawCommands(),this._texturesLoaded=!0,this._texturesReadyEvent.raiseEvent(this)),drt(this),hrt(this,e),prt(this),Qot(this,e),frt(this,e)}};function vot(e,t){return!e._resourcesLoaded||e._loader.incrementallyLoadTextures&&!e._texturesLoaded?(t.afterRender.push(()=>!0),e._loader.process(t)):!0}function Not(e,t){d(e._customShader)&&e._customShader.update(t)}function Fot(e,t){e._imageBasedLighting.update(t),e._imageBasedLighting.shouldRegenerateShaders&&e.resetDrawCommands()}function Aot(e){if(!e._featureTableIdDirty)return;e._featureTableIdDirty=!1;let t=e._sceneGraph.components,n=t.structuralMetadata;d(n)&&n.propertyTableCount>0&&(e.featureTableId=Mot(t,e),e._styleDirty=!0,e.resetDrawCommands())}function Dot(e){e._styleDirty&&(e.applyStyle(e._style),e._styleDirty=!1)}function Uot(e,t){let n=e._featureTables,i=n.length,o=!1;for(let r=0;r<i;r++)e._content&&e._content.tileset&&e.isFlatten&&n[r].applyFlatten(e._content.tileset._flattenOIds,e._content.tileset.version,t),n[r].update(t),n[r].styleCommandsNeededDirty&&(o=!0);o&&Sxe(e)}function Sxe(e){let t=e.featureTables[e.featureTableId];e._styleCommandsNeeded=Xp.getStyleCommandsNeeded(t.featuresLength,t.batchTexture.translucentFeaturesLength)}function kot(e){let t=e.pointCloudShading;t.attenuation!==e._attenuation&&(e.resetDrawCommands(),e._attenuation=t.attenuation),t.backFaceCulling!==e._pointCloudBackFaceCulling&&(e.resetDrawCommands(),e._pointCloudBackFaceCulling=t.backFaceCulling)}function zot(e,t){e._silhouetteDirty&&(Lxe(t)&&e.resetDrawCommands(),e._silhouetteDirty=!1)}function Yot(e,t){let n=e.hasSkipLevelOfDetail(t);n!==e._skipLevelOfDetail&&(e.resetDrawCommands(),e._skipLevelOfDetail=n)}function Bot(e,t){let n=0;e.isClippingEnabled()&&(e._clippingPlanes.owner===e&&e._clippingPlanes.update(t),n=e._clippingPlanes.clippingPlanesState),n!==e._clippingPlanesState&&(e.resetDrawCommands(),e._clippingPlanesState=n,e._clipFillUtil=void 0)}function Oot(e,t){let n=0;e.isClippingPolygonsEnabled()&&(e._clippingPolygons.owner===e&&(e._clippingPolygons.update(t),e._clippingPolygons.queueCommands(t)),n=e._clippingPolygons.clippingPolygonsState),n!==e._clippingPolygonsState&&(e.resetDrawCommands(),e._clippingPolygonsState=n)}function Kot(e,t){t.mode!==e._sceneMode&&(e._projectTo2D?e.resetDrawCommands():e._updateModelMatrix=!0,e._sceneMode=t.mode)}function Hot(e,t){let n=t.fog.enabled&&t.fog.renderable;n!==e._fogRenderable&&(e.resetDrawCommands(),e._fogRenderable=n)}function Jot(e,t){if(e.enableVerticalExaggeration){let n=t.verticalExaggeration!==1;e.hasVerticalExaggeration!==n&&(e.resetDrawCommands(),e._hasVerticalExaggeration=n)}else e.hasVerticalExaggeration&&(e.resetDrawCommands(),e._hasVerticalExaggeration=!1)}function Qot(e,t){e._clippingFillImage=e?.content?.tileset?.clippingFillImage,e._fillClip&&d(e._clipFillUtil)&&(e.isClippingEnabled()||e.isGeometryClipEnabled())&&e._clipFillUtil.update(t)}function jot(e,t){let n=e?.content?.tileset?._sectionRenders;if(d(n))for(let i=0;i<n.length;i++)n[i].updateModel(t,e)}function qot(e,t){let n=e?.content?.tileset;d(n)&&d(n._explosionTextureData)&&d(n._explosionIdTexture)&&d(n._explosionDirectionTexture)&&e.resetDrawCommands()}function $ot(e,t){let n=t.lightManager,i=!1;e._lightState.pointLightNum!==n.pointLights.length&&(i=!0,e._lightState.pointLightNum=n.pointLights.length),e._lightState.directionalLigthNum!==n.directionalLights.length&&(i=!0,e._lightState.directionalLigthNum=n.directionalLights.length),e._lightState.spotLightNum!==n.spotLights.length&&(i=!0,e._lightState.spotLightNum=n.spotLights.length),i&&e.resetDrawCommands()}function ert(e,t){let n=e?.content?.tileset;d(n)&&n._enableStretch&&n._stretchFactor!==1&&e.resetDrawCommands()}function trt(e,t){let n=e?.content?.tileset;d(n)&&n._deleteVerticalPlane&&(e._deleteVerticalPlane=n._deleteVerticalPlane,e.resetDrawCommands(),n._deleteVerticalPlaneChanged=!1)}function nrt(e,t){let n=e?.content?.tileset;d(n)&&n.swipeEnabled&&e.resetDrawCommands()}function irt(e,t){let n=e?.content?.tileset;d(n)&&n.isFlatten&&(e._flattenWithId=!!(n._flattenOIds&&n._flattenOIds.length>0),e._modelUpAxis=n._modelUpAxis,e.resetDrawCommands())}function ort(e,t){let n=e?.content?.tileset;if(n?.version==="2.0"){let o=e?.content?.tile;d(o.nodeColor)&&n._changeNodeColor?z.equals(e._color,o.nodeColor)||(e._color=o.nodeColor,e.resetDrawCommands()):d(e._color)&&!n._changeNodeColor&&!d(e._style)&&(e._color=void 0,e.resetDrawCommands())}}function rrt(e,t){e._drawCommandsBuilt||(e.destroyPipelineResources(),e._sceneGraph.buildDrawCommands(t),e._drawCommandsBuilt=!0)}function srt(e,t){P.equals(e.modelMatrix,e._modelMatrix)||(e._updateModelMatrix=!0,e._modelMatrix=P.clone(e.modelMatrix,e._modelMatrix))}var oT=new h,E6=new me;function art(e){if(!e._updateModelMatrix&&!e._heightDirty&&e._minimumPixelSize===0)return;d(e._removeUpdateHeightCallback)&&(e._removeUpdateHeightCallback(),e._removeUpdateHeightCallback=void 0);let t=e._scene;if(!d(t)||e.heightReference===rt.NONE){e._clampedModelMatrix=void 0;return}let n=g(t.ellipsoid,oe.default),i=e.modelMatrix;oT.x=i[12],oT.y=i[13],oT.z=i[14];let o=n.cartesianToCartographic(oT);d(e._clampedModelMatrix)||(e._clampedModelMatrix=P.clone(i,new P)),e._removeUpdateHeightCallback=t.updateHeight(o,_xe(e,n,o),e.heightReference);let r=t.getHeight(o,e.heightReference);if(d(r)){let s=_xe(e,n,o);me.clone(o,E6),E6.height=r,s(E6)}e._heightDirty=!1,e._updateModelMatrix=!0}function crt(e,t){if(!e._updateModelMatrix&&e._minimumPixelSize===0)return;let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;Cxe(e,n),lrt(e,n,t)}function Cxe(e,t){e._clampedScale=d(e._maximumScale)?Math.min(e._scale,e._maximumScale):e._scale,e._boundingSphere.center=h.multiplyByScalar(e._sceneGraph.boundingSphere.center,e._clampedScale,e._boundingSphere.center),e._boundingSphere.radius=e._initialRadius*e._clampedScale,e._boundingSphere=de.transform(e._boundingSphere,t,e._boundingSphere)}function lrt(e,t,n){let i=e.scale;if(e.minimumPixelSize!==0&&!e._projectTo2D){let o=n.context,r=Math.max(o.drawingBufferWidth,o.drawingBufferHeight);P.getTranslation(t,oT),e._sceneMode!==ae.SCENE3D&&yo.computeActualEllipsoidPosition(n,oT,oT);let s=e._boundingSphere.radius,a=brt(oT,s,n),c=1/a;Math.min(c*(2*s),r)<e.minimumPixelSize&&(i=e.minimumPixelSize*a/(2*e._initialRadius))}e._computedScale=d(e.maximumScale)?Math.min(e.maximumScale,i):i}function drt(e){if(!e._idDirty)return;e._idDirty=!1;let t=e._id,n=e._pickIds,i=n.length;for(let o=0;o<i;++o)n[o].object.id=t}var urt=new $(1,0,0,0,0,1,0,-1,0);function mrt(e,t){let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix,i=g(e.referenceMatrix,n),o=t.context,r=e._imageBasedLighting;if(r.useSphericalHarmonicCoefficients||r.useSpecularEnvironmentMaps){let s=Wot,a=wot;a=P.multiply(o.uniformState.view3D,i,a),s=P.getRotation(a,s),s=$.transpose(s,s),e._iblReferenceFrameMatrix=$.multiply(urt,s,e._iblReferenceFrameMatrix)}if(e.isClippingEnabled()){let s=Pot;s=P.multiply(o.uniformState.view3D,i,s),s=P.multiply(s,e._clippingPlanes.modelMatrix,s),e._clippingPlanesMatrix=P.inverseTranspose(s,e._clippingPlanesMatrix)}}function hrt(e,t){let n=e._sceneGraph;if(e._updateModelMatrix||e._minimumPixelSize!==0){let o=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;n.updateModelMatrix(o,t),e._updateModelMatrix=!1}e._backFaceCullingDirty&&(n.updateBackFaceCulling(e._backFaceCulling),e._backFaceCullingDirty=!1),e._shadowsDirty&&(n.updateShadows(e._shadows),e._shadowsDirty=!1),e._debugShowBoundingVolumeDirty&&(n.updateShowBoundingVolume(e._debugShowBoundingVolume),e._debugShowBoundingVolumeDirty=!1);let i=!1;d(e.classificationType)||(i=e._userAnimationDirty||e._activeAnimations.update(t)),n.update(t,i),e._userAnimationDirty=!1}function prt(e){if(!e._showCreditsOnScreenDirty)return;e._showCreditsOnScreenDirty=!1,e._credits.length=0;let t=e._showCreditsOnScreen;if(d(e._credit)){let s=Ot.clone(e._credit);s.showOnScreen=s.showOnScreen||t,e._credits.push(s)}let n=e._resourceCredits,i=n.length;for(let s=0;s<i;s++){let a=Ot.clone(n[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}let o=e._gltfCredits,r=o.length;for(let s=0;s<r;s++){let a=Ot.clone(o[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}}function frt(e,t){let n=grt(e,t),i=e.isInvisible(),o=e.hasSilhouette(t),r=e._show&&e._computedScale!==0&&n&&(!i||o),s=t.passes,a=s.render||s.pick&&e.allowPicking,c=e.content?.tileset._sectionOnly;r&&!e._ignoreCommands&&a&&!c&&(xrt(e,t),e._sceneGraph.pushDrawCommands(t))}var I6=new de;function brt(e,t,n){return I6.center=e,I6.radius=t,n.camera.getPixelSize(I6,n.context.drawingBufferWidth,n.context.drawingBufferHeight)}var UY=new h;function _xe(e,t,n){return function(i){vV(e.heightReference)&&(i.height+=n.height),t.cartographicToCartesian(i,UY);let o=e._clampedModelMatrix;P.clone(e.modelMatrix,o),o[12]=UY.x,o[13]=UY.y,o[14]=UY.z,e._heightDirty=!0}}var yrt=new h;function grt(e,t){let n=e.distanceDisplayCondition;if(!d(n))return!0;let i=n.near*n.near,o=n.far*n.far,r;if(t.mode===ae.SCENE2D){let a=(t.camera.frustum.right-t.camera.frustum.left)*.5;r=a*a}else{let s=P.getTranslation(e.modelMatrix,yrt);yo.computeActualEllipsoidPosition(t,s,s),r=h.distanceSquared(s,t.camera.positionWC)}return r>=i&&r<=o}function xrt(e,t){let n=t.creditDisplay,i=e._credits,o=i.length;for(let r=0;r<o;r++)n.addCreditToNextFrame(i[r])}Yi.prototype.isTranslucent=function(){let e=this.color;return d(e)&&e.alpha>0&&e.alpha<1};Yi.prototype.isInvisible=function(){let e=this.color;return d(e)&&e.alpha===0};function Lxe(e){return e.context.stencilBuffer}Yi.prototype.hasSilhouette=function(e){return Lxe(e)&&this._silhouetteSize>0&&this._silhouetteColor.alpha>0&&!d(this._classificationType)};Yi.prototype.hasSkipLevelOfDetail=function(e){if(!xr.is3DTiles(this.type))return!1;let t=e.context.stencilBuffer,n=this._content.tileset;return t&&n.isSkippingLevelOfDetail};Yi.prototype.isClippingEnabled=function(){let e=this._clippingPlanes;return d(e)&&e.enabled&&e.length!==0};Yi.prototype.isGeometryClipEnabled=function(){let e=this._clippingGeometries;return d(e)};Yi.prototype.pick=function(e,t,n,i,o){return RZ(this,e,t,n,i,o)};Yi.prototype.isClippingPolygonsEnabled=function(){let e=this._clippingPolygons;return d(e)&&e.enabled&&e.length!==0};Yi.prototype.isDestroyed=function(){return!1};Yi.prototype.destroy=function(){let e=this._loader;d(e)&&e.destroy();let t=this._featureTables;if(d(t)){let r=t.length;for(let s=0;s<r;s++)t[s].destroy()}this.destroyPipelineResources(),this.destroyModelResources(),d(this._removeUpdateHeightCallback)&&(this._removeUpdateHeightCallback(),this._removeUpdateHeightCallback=void 0),d(this._terrainProviderChangedCallback)&&(this._terrainProviderChangedCallback(),this._terrainProviderChangedCallback=void 0);let n=this._clippingPlanes;d(n)&&!n.isDestroyed()&&n.owner===this&&n.destroy(),this._clippingPlanes=void 0;let i=this._clippingPolygons;d(i)&&!i.isDestroyed()&&i.owner===this&&i.destroy(),this._clippingPolygons=void 0,this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=void 0;let o=this._nodeCommands;for(let r=0;r<o.length;++r){let s=o[r],a=s.stencilCommand;d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy()),a=s.sectionCommand,d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy())}fe(this)};Yi.prototype.destroyPipelineResources=function(){let e=this._pipelineResources;for(let t=0;t<e.length;t++)e[t].destroy();this._pipelineResources.length=0,this._pickIds.length=0};Yi.prototype.destroyModelResources=function(){let e=this._modelResources;for(let t=0;t<e.length;t++)e[t].destroy();this._modelResources.length=0};Yi.fromGltfAsync=async function(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.url,e.gltf),n={releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},i=g(e.basePath,""),o=Xe.createIfNeeded(i);d(t.asset)?(n.gltfJson=t,n.baseResource=o,n.gltfResource=o):t instanceof Uint8Array?(n.typedArray=t,n.baseResource=o,n.gltfResource=o):n.gltfResource=Xe.createIfNeeded(t);let r=new zc(n),a=d(e.content)?xr.TILE_GLTF:xr.GLTF,c=n.gltfResource,l=p0(r,a,e);l.resource=c;try{await r.load()}catch(b){throw r.destroy(),fn.getError("model",c,b)}let u=e.gltfCallback;d(u)&&u(r.gltfJson);let m=new Yi(l),f=m._resource.credits;if(d(f)){let b=f.length;for(let p=0;p<b;p++)m._resourceCredits.push(Ot.clone(f[p]))}return m};Yi.fromM3DData=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,tile:e.tile,hasSectionGeometry:e.hasSectionGeometry},n=new iN(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DGltf=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new Qv(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new jv(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new qv(t);try{await n.load();let i=p0(n,xr.TILE_I3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,tileset:e.tileset,tile:e.tile,resource:e.resource},n=new tN(t);try{await n.load();let i=p0(n,xr.TILE_PNTS,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},n=new zW(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,generateUniqueId:e.generateUniqueId},n=new Yv(t);try{await n.load();let i=p0(n,xr.TILE_PNTS,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,generateUniqueId:e.generateUniqueId},n=new BW(t);try{await n.load();let i=p0(n,xr.TILE_I3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromGeoJson=async function(e){let t={geoJson:e.geoJson},n=new YW(t),i=p0(n,xr.TILE_GEOJSON,e);return new Yi(i)};var Trt=new z;Yi.prototype.applyColorAndShow=function(e){let t=z.clone(this._color,Trt),n=d(e)&&d(e.color),i=d(e)&&d(e.show);this._color=n?e.color.evaluateColor(void 0,this._color):z.clone(z.WHITE,this._color),this._show=i?e.show.evaluate(void 0):!0,X6(t,this._color)&&this.resetDrawCommands()};Yi.prototype.applyStyle=function(e){let t=this.type===xr.TILE_PNTS,n=d(this.featureTableId)&&this.featureTables[this.featureTableId].featuresLength>0,i=d(this.structuralMetadata)?this.structuralMetadata.propertyAttributes:void 0,o=d(i)&&d(i[0]);if(t&&(!n||o)){this.resetDrawCommands();return}n?(this.featureTables[this.featureTableId].applyStyle(e),Sxe(this,e)):(this.applyColorAndShow(e),this._styleCommandsNeeded=void 0)};function p0(e,t,n){return{loader:e,type:t,resource:n.resource,show:n.show,modelMatrix:n.modelMatrix,scale:n.scale,enableVerticalExaggeration:n.enableVerticalExaggeration,minimumPixelSize:n.minimumPixelSize,maximumScale:n.maximumScale,id:n.id,allowPicking:n.allowPicking,clampAnimations:n.clampAnimations,shadows:n.shadows,debugShowBoundingVolume:n.debugShowBoundingVolume,enableDebugWireframe:n.enableDebugWireframe,debugWireframe:n.debugWireframe,cull:n.cull,opaquePass:n.opaquePass,customShader:n.customShader,content:n.content,heightReference:n.heightReference,scene:n.scene,distanceDisplayCondition:n.distanceDisplayCondition,color:n.color,colorBlendAmount:n.colorBlendAmount,colorBlendMode:n.colorBlendMode,silhouetteColor:n.silhouetteColor,silhouetteSize:n.silhouetteSize,enableShowOutline:n.enableShowOutline,showOutline:n.showOutline,outlineColor:n.outlineColor,clippingPlanes:n.clippingPlanes,clippingPolygons:n.clippingPolygons,lightColor:n.lightColor,imageBasedLighting:n.imageBasedLighting,backFaceCulling:n.backFaceCulling,credit:n.credit,showCreditsOnScreen:n.showCreditsOnScreen,splitDirection:n.splitDirection,projectTo2D:n.projectTo2D,enablePick:n.enablePick,featureIdLabel:n.featureIdLabel,instanceFeatureIdLabel:n.instanceFeatureIdLabel,pointCloudShading:n.pointCloudShading,classificationType:n.classificationType,pickObject:n.pickObject,fillClip:n.fillClip,clippingFillImage:n.clippingFillImage}}var Ka=Yi;function hr(e,t,n){this._tileset=e,this._tile=t,this._resource=n,this._model=void 0,this._metadata=void 0,this._group=void 0,this._ready=!1}Object.defineProperties(hr.prototype,{featuresLength:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;return d(t)&&d(t[n])?t[n].featuresLength:0}},pointsLength:{get:function(){return this._model.statistics.pointsLength}},trianglesLength:{get:function(){return this._model.statistics.trianglesLength}},geometryByteLength:{get:function(){return this._model.statistics.geometryByteLength}},texturesByteLength:{get:function(){return this._model.statistics.texturesByteLength}},batchTableByteLength:{get:function(){let e=this._model.statistics;return e.propertyTablesByteLength+e.batchTexturesByteLength}},innerContents:{get:function(){}},ready:{get:function(){return this._ready}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;if(d(t)&&d(t[n]))return t[n]}},metadata:{get:function(){return this._metadata},set:function(e){this._metadata=e}},group:{get:function(){return this._group},set:function(e){this._group=e}}});hr.prototype.getExtension=function(e){return this._model.getExtension(e)};hr.prototype.getFeature=function(e){let t=this._model,n=t.featureTableId;return t.featureTables[n].getFeature(e)};hr.prototype.hasProperty=function(e,t){let n=this._model,i=n.featureTableId;return d(i)?n.featureTables[i].hasProperty(e,t):!1};hr.prototype.applyDebugSettings=function(e,t){t=e?t:z.WHITE,this.featuresLength===0?this._model.color=t:d(this.batchTable)&&this.batchTable.setAllColor(t)};hr.prototype.applyStyle=function(e){this._model.style=e};hr.prototype.update=function(e,t){let n=this._model,i=this._tile;if(n.colorBlendAmount=e.colorBlendAmount,n.colorBlendMode=e.colorBlendMode,n.modelMatrix=i.computedTransform,n.customShader=e.customShader,n.featureIdLabel=e.featureIdLabel,n.instanceFeatureIdLabel=e.instanceFeatureIdLabel,n.lightColor=e.lightColor,n.imageBasedLighting=e.imageBasedLighting,n.backFaceCulling=e.backFaceCulling,n.shadows=e.shadows,n.showCreditsOnScreen=e.showCreditsOnScreen,n.splitDirection=e.splitDirection,n.debugWireframe=e.debugWireframe,n.rollerShutterRegion=new re(0,0,0,0),n.rollerShutterSpyglassRegion=void 0,n.rollerShutterPolygonRegion=void 0,(n.swiper.type!==t.swiper.type||n.swiper.swipeEnabled!==e.swipeEnabled)&&(n._shouldRegenerateShaders=!0),n.swiper=Ue(t.swiper),n.swiper.swipeEnabled=e.swipeEnabled,e.swipeEnabled){let s=t.swiper.type;s===Kn.HORIZONTAL||s===Kn.VERTICAL||s===Kn.RECTANGLE?n.rollerShutterRegion=t.context.uniformState._swipeRegion:s===Kn.SPYGLASS?n.rollerShutterSpyglassRegion=t.context.uniformState._swipeRegion:s===Kn.POLYGON&&(n.rollerShutterPolygonRegion=t.context.uniformState._swipeRegion),n.swipeInverse=e.swipeInverse===0?t.swiper.inverse:e.swipeInverse}n.showOutline=e.showOutline,n.outlineColor=e.outlineColor,n.pointCloudShading=e.pointCloudShading,n.textureCoordScale=e.textureCoordScale,n.clippingGeometries=e._clippingGeometries;let o=e.clippingPlanes;n.referenceMatrix=e.clippingPlanesOriginMatrix,d(o)&&i.clippingPlanesDirty&&(n._clippingPlanes=o.enabled&&i._isClipped?o:void 0,o.enabled&&i._isClipped&&(n._clippingPlanesState=0)),d(o)&&d(n._clippingPlanes)&&n._clippingPlanes!==o&&(n._clippingPlanes=o,n._clippingPlanesState=0);let r=e.clippingPolygons;if(d(r)&&i.clippingPolygonsDirty&&(n._clippingPolygons=r.enabled&&i._isClippedByPolygon?r:void 0),d(r)&&d(n._clippingPolygons)&&n._clippingPolygons!==r&&(n._clippingPolygons=r,n._clippingPolygonsState=0),n.enableExplosion=e.enableExplosion,n.enableCuttingFilter=e.enableCuttingFilter,n.enableExplosion||n.enableCuttingFilter){n.explosionIdTexture=e._explosionIdTexture,n.explosionDirectionTexture=e._explosionDirectionTexture,d(e._explosionTextureData)&&Array.isArray(e._explosionTextureData)?n.explosionTextureDataLength=e._explosionTextureData.length:n.explosionTextureDataLength=0;let s=0;if(e._version==="2.0"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.OID;d(a)&&(s=a.length)}else if(e._version==="2.1"||e._version==="2.2"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.tid;if(d(a)&&(s=a.tids.length,!d(n.explosionIdTableTexture))){let c=a.tids.map(u=>[u,0,0]),l=Float32Array.from(c.flat());n.explosionIdTableTexture=new it({context:t.context,source:{arrayBufferView:l,width:l.length/3,height:1},pixelFormat:Ye.RGB,pixelDatatype:ke.FLOAT})}}n.explosionIdCount=s}n.deleteVerticalPlane=e._deleteVerticalPlane,n.isFlatten=e._isFlatten,n.flattenHeight=e._flattenHeight,n.positionArray=e._positionArray,n.arrayLength=e._positionArray?.length,d(e._brightness)&&(n._brightness=e._brightness),d(e._exposure)&&(n._exposure=e._exposure),d(e._contrast)&&(n._contrast=e._contrast),d(e._hue)&&(n._hue=e._hue),d(e._saturation)&&(n._saturation=e._saturation),d(e._gamma)&&(n._gamma=e._gamma),n.update(t),!this._ready&&n.ready&&(n.activeAnimations.addAll({loop:Qd.REPEAT}),this._ready=!0)};hr.prototype.isDestroyed=function(){return!1};hr.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),fe(this)};hr.fromGltf=async function(e,t,n,i){let o=new hr(e,t,n),s=f0(e,t,o,{gltf:i,basePath:n}),a=e.vectorClassificationOnly?void 0:e.classificationType;s.classificationType=a,s.generateUniqueId=e._generateUniqueId;let c=await Ka.fromGltfAsync(s);return o._model=c,o};hr.fromM3DData=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.tilesetVersion=e._version,a.tile=t,a.fillClip=e._fillClip,a.hasSectionGeometry=e._hasSectionGeometry,a.clippingFillImage=e._clippingFillImage,a.clippingGeometries=e._clippingGeometries;let l=await Ka.fromM3DData(a);return r._model=l,r};hr.fromM3DGltf=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ka.fromM3DGltf(c);return s._model=u,s};hr.fromM3DB3dm=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ka.fromM3DB3dm(c);return s._model=u,s};hr.fromM3DI3dm=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let l=await Ka.fromM3DI3dm(c);return s._model=l,s};hr.fromM3DPnts=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.tileset=e,c.tile=t,c.resource=s._resource;let l=await Ka.fromM3DPnts(c);return s._model=l,s};hr.fromB3dm=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.generateUniqueId=e._generateUniqueId;let l=await Ka.fromB3dm(a);return r._model=l,r};hr.fromI3dm=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ka.fromI3dm(a);return r._model=c,r};hr.fromPnts=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ka.fromPnts(a);return r._model=c,r};hr.fromGeoJson=async function(e,t,n,i){let o=new hr(e,t,n),s=f0(e,t,o,{geoJson:i,resource:n}),a=await Ka.fromGeoJson(s);return o._model=a,o};hr.prototype.pick=function(e,t,n){if(!d(this._model)||!this._ready)return;let i=t.verticalExaggeration,o=t.verticalExaggerationRelativeHeight;return this._model.pick(e,t,i,o,oe.WGS84,n)};function f0(e,t,n,i){let o={cull:!1,releaseGltfJson:!0,opaquePass:Ze.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._modelUpAxis,forwardAxis:e._modelForwardAxis,incrementallyLoadTextures:!1,customShader:e.customShader,content:n,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount,lightColor:e.lightColor,imageBasedLighting:e.imageBasedLighting,featureIdLabel:e.featureIdLabel,instanceFeatureIdLabel:e.instanceFeatureIdLabel,pointCloudShading:e.pointCloudShading,clippingPlanes:e.clippingPlanes,backFaceCulling:e.backFaceCulling,shadows:e.shadows,showCreditsOnScreen:e.showCreditsOnScreen,splitDirection:e.splitDirection,enableDebugWireframe:e._enableDebugWireframe,debugWireframe:e.debugWireframe,projectTo2D:e._projectTo2D,enablePick:e._enablePick,enableShowOutline:e._enableShowOutline,showOutline:e.showOutline,outlineColor:e.outlineColor};return Tt(i,o)}var El=hr;var Vxe={M3DData:function(e,t,n,i,o){return El.fromM3DData(e,t,n,i,o)},M3DGltf:function(e,t,n,i,o,r){return El.fromM3DGltf(e,t,n,i,o,r)},M3DCmpt:function(e,t,n,i,o,r){return Tp.fromM3DTileType(e,t,n,i,o,Vxe,r)},M3DB3dm:function(e,t,n,i,o,r){return El.fromM3DB3dm(e,t,n,i,o,r)},M3DI3dm:function(e,t,n,i,o,r){return El.fromM3DI3dm(e,t,n,i,o,r)},M3DPnts:function(e,t,n,i,o,r){return El.fromM3DPnts(e,t,n,i,o,r)}},rT=Vxe;var ffi=S(C(),1);var cfi=S(C(),1),Zxe={JSON:`{
9620
+ `}gi.prototype.destroy=function(){this._clipFillCommandMap.clear()};function Wnt(e,t){return gi._clipFillDiffuseUrl!==e&&(gi._clipFillDiffuseUrl=e,gi._clipFillDiffuseImage=new Image,gi._clipFillDiffuseImage.crossOrigin="anonymous",gi._clipFillDiffuseImage.onload=function(n){gi._clipFillDiffuseTexture=new it({context:t,width:gi._clipFillDiffuseImage.width,height:gi._clipFillDiffuseImage.height,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:gi._clipFillDiffuseImage})},gi._clipFillDiffuseImage.src=e,gi._clipFillDiffuseTexture=new it({context:t,width:1,height:1,pixelFormat:Ye.RGBA,pixelDatatype:ke.UNSIGNED_BYTE,source:{arrayBufferView:new Uint8Array([200,200,200,255])}})),function(){return gi._clipFillDiffuseTexture}}var Av=gi;var qci=S(C(),1);function Pnt(e,t){let n={},i=e.primitive?.attributes,o;for(let s=0;s<i.length;s++)i[s].name==="TEXCOORD_0"&&(o={vertexCoordDisAC:1,texCoordDisAC:1});let r=t.content?.tileset._version;if(r==="2.0"){let s;for(let l=0;l<i.length;l++)i[l].name==="_OID"&&(s=i[l].typedArray);let a=new Uint32Array(s.length/4);a.fill(s[0]);let c={};for(let l=0;l<a.length;l++){let u=vnt(a[l]),m=new z(u[3]/255,u[2]/255,u[1]/255,u[0]/255);c[a[l]]={pickID:m,textureParam:o}}n=c}else if(r==="2.1"||r==="2.2"){let s;for(let c=0;c<i.length;c++)i[c].name==="_BATCHID"&&(s=i[c].typedArray);let a={};for(let c=0;c<s.length;c++)a[s[c]]={textureParam:o};n=a}return n}function vnt(e){let t=new ArrayBuffer(4);return new DataView(t).setUint32(0,e),new Uint8Array(t)}var Dv=Pnt;function Yu(e){e=g(e,g.EMPTY_OBJECT);let t=e.modelComponents;this._model=e.model,this._components=t,this._pipelineStages=[],this._updateStages=[],this._runtimeNodes=[],this._rootNodes=[],this._skinnedNodes=[],this._runtimeSkins=[],this.modelPipelineStages=[],this._boundingSphere=void 0,this._boundingSphere2D=void 0,this._computedModelMatrix=P.clone(P.IDENTITY),this._computedModelMatrix2D=P.clone(P.IDENTITY),this._axisCorrectionMatrix=fn.getAxisCorrectionMatrix(t.upAxis,t.forwardAxis,new P),this._runtimeArticulations={},Nnt(this)}Object.defineProperties(Yu.prototype,{components:{get:function(){return this._components}},computedModelMatrix:{get:function(){return this._computedModelMatrix}},axisCorrectionMatrix:{get:function(){return this._axisCorrectionMatrix}},boundingSphere:{get:function(){return this._boundingSphere}}});function Nnt(e){let t=e._components,n=t.scene,o=e._model.modelMatrix;nxe(e,o);let r=t.articulations,s=r.length,a=e._runtimeArticulations;for(let L=0;L<s;L++){let V=r[L],Z=new rP({articulation:V,sceneGraph:e}),G=Z.name;a[G]=Z}let c=t.nodes,l=c.length;e._runtimeNodes=new Array(l);let m=n.nodes.length,f=P.IDENTITY;for(let L=0;L<m;L++){let V=n.nodes[L],Z=ixe(e,V,f);e._rootNodes.push(Z)}let b=t.skins,p=e._runtimeSkins,x=b.length;for(let L=0;L<x;L++){let V=b[L];p.push(new gv({skin:V,sceneGraph:e}))}let T=e._skinnedNodes,_=T.length;for(let L=0;L<_;L++){let V=T[L],Z=e._runtimeNodes[V],I=c[V].skin.index;Z._runtimeSkin=p[I],Z.updateJointMatrices()}e.applyArticulations()}function nxe(e,t){let n=e._components,i=e._model;e._computedModelMatrix=P.multiplyTransformation(t,n.transform,e._computedModelMatrix),e._computedModelMatrix=P.multiplyTransformation(e._computedModelMatrix,e._axisCorrectionMatrix,e._computedModelMatrix),e._computedModelMatrix=P.multiplyByUniformScale(e._computedModelMatrix,i.computedScale,e._computedModelMatrix)}var Fnt=new h;function Ant(e,t){let n=e._computedModelMatrix,i=P.getTranslation(n,Fnt);if(!h.equals(i,h.ZERO))e._computedModelMatrix2D=Zt.basisTo2D(t.mapProjection,n,e._computedModelMatrix2D);else{let o=e.boundingSphere.center,r=Zt.ellipsoidTo2DModelMatrix(t.mapProjection,o,e._computedModelMatrix2D);e._computedModelMatrix2D=P.multiply(r,n,e._computedModelMatrix2D)}e._boundingSphere2D=de.transform(e._boundingSphere,e._computedModelMatrix2D,e._boundingSphere2D)}function ixe(e,t,n){let i=[],o=fn.getNodeTransform(t),r=t.children.length;for(let u=0;u<r;u++){let m=t.children[u],f=P.multiplyTransformation(n,o,new P),b=ixe(e,m,f);i.push(b)}let s=new SP({node:t,transform:o,transformToRoot:n,children:i,sceneGraph:e}),a=t.primitives.length;for(let u=0;u<a;u++)s.runtimePrimitives.push(new yv({primitive:t.primitives[u],node:t,model:e._model}));let c=t.index;e._runtimeNodes[c]=s,d(t.skin)&&e._skinnedNodes.push(c);let l=t.name;if(d(l)){let u=e._model,m=new pP(u,s);u._nodesByName[l]=m}return c}var Dnt=new h,Unt=new h,knt=new h,znt=new h;Yu.prototype.buildDrawCommands=function(e){let t=this._model,n=new Sv(t);t.statistics.clear(),this.configurePipeline(e);let i=this.modelPipelineStages,o,r,s;for(o=0;o<i.length;o++)i[o].process(n,t,e);let a=h.fromElements(Number.MAX_VALUE,Number.MAX_VALUE,Number.MAX_VALUE,Dnt),c=h.fromElements(-Number.MAX_VALUE,-Number.MAX_VALUE,-Number.MAX_VALUE,Unt),l=[];for(o=0;o<this._runtimeNodes.length;o++){let u=this._runtimeNodes[o];if(!d(u))continue;u.configurePipeline();let m=u.pipelineStages,f=new Gv(n,u);for(r=0;r<m.length;r++)m[r].process(f,u.node,e);let b=u.computedTransform;for(r=0;r<u.runtimePrimitives.length;r++){let p=u.runtimePrimitives[r];p.configurePipeline(e);let x=p.pipelineStages,T=new Iv(f,p);for(s=0;s<x.length;s++)x[s].process(T,p.primitive,e);p.boundingSphere=de.clone(T.boundingSphere,new de);let _=P.multiplyByPoint(b,T.positionMin,knt),L=P.multiplyByPoint(b,T.positionMax,znt);h.minimumByComponent(a,_,a),h.maximumByComponent(c,L,c);let V=vv.buildModelDrawCommand(T,e);p.drawCommand=V,d(t._clipFillUtil)&&t._clipFillUtil.destroy(),t._fillClip&&(d(t._clipFillUtil)||(t._clipFillUtil=new Av({model:t})),t._clipFillUtil.parsePrimitiveInfo(p,V,!1)),t._hasSectionGeometry&&(V.primitiveInfo=Dv(p,t)),l.push(V)}}t._nodeCommands=l,this._boundingSphere=de.fromCornerPoints(a,c,new de),this._boundingSphere=de.transformWithoutScale(this._boundingSphere,this._axisCorrectionMatrix,this._boundingSphere),this._boundingSphere=de.transform(this._boundingSphere,this._components.transform,this._boundingSphere),t._boundingSphere=de.transform(this._boundingSphere,t.modelMatrix,t._boundingSphere),t._initialRadius=t._boundingSphere.radius,t._boundingSphere.radius*=t._clampedScale};Yu.prototype.configurePipeline=function(e){let t=this.modelPipelineStages;t.length=0;let n=this._model,i=e.fog.enabled&&e.fog.renderable;d(n.color)&&t.push(Hx),!d(n.classificationType)&&(n.imageBasedLighting.enabled&&t.push(iP),n.isClippingEnabled()&&t.push(cP),n.isGeometryClipEnabled()&&t.push(dP),n.isClippingPolygonsEnabled()&&t.push(hP),n.hasSilhouette(e)&&t.push(Vv),d(n.splitDirection)&&n.splitDirection!==cs.NONE&&t.push(Rv),d(n.swiper)&&n.swiper.swipeEnabled===!0&&t.push(Fv),xr.is3DTiles(n.type)&&t.push(qW),i&&t.push(tP))};Yu.prototype.update=function(e,t){let n,i,o;for(n=0;n<this._runtimeNodes.length;n++){let r=this._runtimeNodes[n];if(!d(r))continue;for(i=0;i<r.updateStages.length;i++)r.updateStages[i].update(r,this,e);let s=e.mode!==ae.SCENE3D&&this._model._projectTo2D;for(t&&!s&&this.updateJointMatrices(),i=0;i<r.runtimePrimitives.length;i++){let a=r.runtimePrimitives[i];for(o=0;o<a.updateStages.length;o++)a.updateStages[o].update(a,this)}}};Yu.prototype.updateModelMatrix=function(e,t){nxe(this,e),t.mode!==ae.SCENE3D&&Ant(this,t);let n=this._rootNodes;for(let i=0;i<n.length;i++){let o=this._runtimeNodes[n[i]];o._transformDirty=!0}};Yu.prototype.updateJointMatrices=function(){let e=this._skinnedNodes,t=e.length;for(let n=0;n<t;n++){let i=e[n];this._runtimeNodes[i].updateJointMatrices()}};function oxe(e,t,n,i,o){if(n&&!t.show)return;let r=t.children.length;for(let c=0;c<r;c++){let l=t.getChild(c);oxe(e,l,n,i,o)}let s=t.runtimePrimitives,a=s.length;for(let c=0;c<a;c++){let l=s[c];i(l,o)}}function PY(e,t,n,i){let o=e._rootNodes,r=o.length;for(let s=0;s<r;s++){let a=o[s],c=e._runtimeNodes[a];oxe(e,c,t,n,i)}}var Ynt={backFaceCulling:void 0};Yu.prototype.updateBackFaceCulling=function(e){let t=Ynt;t.backFaceCulling=e,PY(this,!1,Bnt,t)};function Bnt(e,t){let n=e.drawCommand;n.backFaceCulling=t.backFaceCulling}var Ont={shadowMode:void 0};Yu.prototype.updateShadows=function(e){let t=Ont;t.shadowMode=e,PY(this,!1,Knt,t)};function Knt(e,t){let n=e.drawCommand;n.shadows=t.shadowMode}var Hnt={debugShowBoundingVolume:void 0};Yu.prototype.updateShowBoundingVolume=function(e){let t=Hnt;t.debugShowBoundingVolume=e,PY(this,!1,Jnt,t)};function Jnt(e,t){let n=e.drawCommand;n.debugShowBoundingVolume=t.debugShowBoundingVolume}var rxe=[],Qnt={frameState:void 0,hasSilhouette:void 0};Yu.prototype.pushDrawCommands=function(e){let t=rxe;t.length=0;let n=Qnt;n.hasSilhouette=this._model.hasSilhouette(e),n.frameState=e,PY(this,!0,jnt,n),e.commandList.push.apply(e.commandList,t)};function jnt(e,t){let n=t.frameState,i=t.hasSilhouette,o=n.passes,r=rxe,s=e.drawCommand;s.pushCommands(n,n.commandList),i&&!o.pick&&s.pushSilhouetteCommands(n,r)}Yu.prototype.setArticulationStage=function(e,t){let n=e.split(" ");if(n.length!==2)return;let i=n[0],o=n[1],r=this._runtimeArticulations[i];d(r)&&r.setArticulationStage(o,t)};Yu.prototype.applyArticulations=function(){let e=this._runtimeArticulations;for(let t in e)e.hasOwnProperty(t)&&e[t].apply()};var Uv=Yu;var Wli=S(C(),1);function ZZ(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap=new zt}Object.defineProperties(ZZ.prototype,{batchTexturesByteLength:{get:function(){let e=this._batchTextureIdMap.length,t=this._batchTextureIdMap.values,n=0;for(let i=0;i<e;i++)n+=t[i].byteLength;return n}}});ZZ.prototype.clear=function(){this.pointsLength=0,this.trianglesLength=0,this.geometryByteLength=0,this.texturesByteLength=0,this.propertyTablesByteLength=0,this._bufferIdSet={},this._textureIdSet={},this._batchTextureIdMap.removeAll()};ZZ.prototype.addBuffer=function(e,t){if(!this._bufferIdSet.hasOwnProperty(e._id)){let n=t?2:1;this.geometryByteLength+=e.sizeInBytes*n}this._bufferIdSet[e._id]=!0};ZZ.prototype.addTexture=function(e){this._textureIdSet.hasOwnProperty(e._id)||(this.texturesByteLength+=e.sizeInBytes),this._textureIdSet[e._id]=!0};ZZ.prototype.addBatchTexture=function(e){this._batchTextureIdMap.contains(e._id)||this._batchTextureIdMap.set(e._id,e)};var kv=ZZ;var ydi=S(C(),1);var lxe=S(HG(),1);var Kli=S(C(),1);var sxe={},TS=Uint32Array.BYTES_PER_ELEMENT;sxe.parse=function(e,t){t=g(t,0);let n=new Uint8Array(e),i=new DataView(e);t+=TS;let o=i.getUint32(t,!0);if(o!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${o} is not.`);t+=TS,t+=TS;let r=i.getUint32(t,!0);if(r===0)throw new le("Feature table must have a byte length greater than zero");t+=TS;let s=i.getUint32(t,!0);t+=TS;let a=i.getUint32(t,!0);t+=TS;let c=i.getUint32(t,!0);t+=TS;let l=mo(n,t,r);t+=r;let u=new Uint8Array(e,t,s);t+=s;let m,f;a>0&&(m=mo(n,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=qnt(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=$nt(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=tit(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=eit(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=nit(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T};function qnt(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:Tt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function $nt(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:kt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:kt.VEC3}}}function eit(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:kt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:s}}}function tit(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:kt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:kt.VEC3}}function nit(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:kt.SCALAR}}}var _S=sxe;var iit=hn.Components,oit=hn.Scene,rit=hn.Node,sit=hn.Primitive,ait=hn.Attribute,axe=hn.Quantization,cit=hn.FeatureIdAttribute,lit=hn.Material,dit=hn.MetallicRoughness;function qx(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._generateUniqueId=e.generateUniqueId}d(Object.create)&&(qx.prototype=Object.create(vi.prototype),qx.prototype.constructor=qx);Object.defineProperties(qx.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});qx.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=_S.parse(this._arrayBuffer,this._byteOffset),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};qx.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=uit(this,e.context)}return!1};function uit(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=Lp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&mit(e,i,r),Cit(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function mit(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=kt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=kt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:kt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:hit(l.componentsPerAttribute),componentType:pit(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function hit(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function pit(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function zv(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new axe,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new axe;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new ait;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var cxe,vY;function fit(e){if(!d(vY)){cxe=new lxe.default(0),vY=new Array(e);for(let t=0;t<e;++t)vY[t]=cxe.random()}return vY}var bit=new h,yit=new h,git=new h;function xit(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=fit(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,bit),l=h.fromElements(a,a,a,yit),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,git),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var Tit={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:!1};function _it(e,t,n){let i=[],o,r=t.positions;return d(r)&&(xit(r),o=zv(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=zv(e,t.normals,n),i.push(o)),d(t.colors)?(o=zv(e,t.colors,n),i.push(o)):(o=zv(e,Tit,n),i.push(o)),d(t.batchIds)&&(o=zv(e,t.batchIds,n),i.push(o)),i}function Sit(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable){let a=g(i,o);return Ep({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,generateUniqueId:n})}return new mr({schema:{},propertyTables:[]})}function Cit(e,t){let n=e._parsedContent,i=new dit;i.metallicFactor=0,i.roughnessFactor=.9;let o=new lit;o.metallicRoughness=i;let r=n.colors;d(r)&&r.isTranslucent&&(o.alphaMode=jm.BLEND);let s=!d(n.normals);o.unlit=s;let a=new sit;if(a.attributes=_it(e,n,t),a.primitiveType=Fe.POINTS,a.material=o,d(n.batchIds)){let b=new cit;b.propertyTableId=0,b.setIndex=0,b.positionalLabel="featureId_0",a.featureIds.push(b)}let c=new rit;c.index=0,c.primitives=[a];let l=new oit;l.nodes=[c],l.upAxis=In.Z,l.forwardAxis=In.X;let u=new iit;u.scene=l,u.nodes=[c];let m=[];u.structuralMetadata=Sit(n,m,e._generateUniqueId),m.length>0&&Lit(e,a,m,t),d(n.rtcCenter)&&(u.transform=P.multiplyByTranslation(u.transform,n.rtcCenter,u.transform));let f=n.positions;d(f)&&f.isQuantized&&(u.transform=P.multiplyByTranslation(u.transform,f.quantizedVolumeOffset,u.transform)),e._components=u,e._parsedContent=void 0,e._arrayBuffer=void 0}function Lit(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}qx.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var Yv=qx;var Ndi=S(C(),1);var Vit=new h,Zit=new h,Rit=new h,Git=new P,Eit=new P,Iit=new P,Xit=new me,Mit=new de;function RZ(e,t,n,i,o,r,s){if(!e._ready||n.mode===ae.MORPHING)return;let a=Number.MAX_VALUE,c=e.sceneGraph,l=c._runtimeNodes;for(let u=0;u<l.length;u++){let m=l[u],f=m.node,b=P.clone(m.computedTransform,Git),p=P.clone(c.computedModelMatrix,Eit),x=f.instances;d(x)&&x.transformInWorldSpace&&(p=P.multiplyTransformation(e.modelMatrix,c.components.transform,p),b=P.multiplyTransformation(c.axisCorrectionMatrix,m.computedTransform,b));let T=P.multiplyTransformation(p,b,Iit);n.mode!==ae.SCENE3D&&(T=Zt.basisTo2D(n.mapProjection,T,T));let _=[];if(d(x)){let V=x.attributes[0].count,Z=x.attributes[0].componentDatatype,G=12,I=m.transformsTypedArray;if(!d(I)){let w=m.instancingTransformsBuffer;d(w)&&n.context.webgl2&&(I=H.createTypedArray(Z,V*G),w.getBufferData(I))}if(d(I))for(let w=0;w<V;w++){let W=w*G,v=new P(I[W],I[W+1],I[W+2],I[W+3],I[W+4],I[W+5],I[W+6],I[W+7],I[W+8],I[W+9],I[W+10],I[W+11],0,0,0,1);x.transformInWorldSpace?(P.multiplyTransformation(v,b,v),P.multiplyTransformation(p,v,v)):P.multiplyTransformation(v,T,v),_.push(v)}}_.length===0&&_.push(T);let L=m.runtimePrimitives.length;for(let V=0;V<L;V++){let Z=m.runtimePrimitives[V],G=Z.primitive;if(d(Z.boundingSphere)&&!d(x)){let K=de.transform(Z.boundingSphere,T,Mit),j=Wi.raySphere(t,K);if(!d(j))continue}let I=fn.getAttributeBySemantic(G,ut.POSITION),w=I.byteOffset,W=I.byteStride,v=I.count;if(!d(G.indices))continue;let N=G.indices.typedArray;if(!d(N)){let K=G.indices.buffer,j=G.indices.count,J=G.indices.indexDatatype;d(K)&&n.context.webgl2&&(J===qe.UNSIGNED_BYTE?N=new Uint8Array(j):J===qe.UNSIGNED_SHORT?N=new Uint16Array(j):J===qe.UNSIGNED_INT&&(N=new Uint32Array(j)),K.getBufferData(N))}let y=I.typedArray,R=I.componentDatatype,E=I.type,X=I.quantization;d(X)&&(R=I.quantization.componentDatatype,E=I.quantization.type);let F=kt.getNumberOfComponents(E),A=H.getSizeInBytes(R),Y=!d(y)&&d(W)&&W!==F*A,U=F,k=0;Y&&(U=W/A,k=w/A);let D=v*U;if(!d(y)){let K=I.buffer;d(K)&&n.context.webgl2&&(y=H.createTypedArray(R,D),K.getBufferData(y,Y?0:w,0,D)),X&&I.normalized&&(y=xn.dequantize(y,R,E,v))}if(!d(N)||!d(y))return;r=g(r,oe.default),i=g(i,1),o=g(o,0);let O=N.length;for(let K=0;K<O;K+=3){let j=N[K],J=N[K+1],ne=N[K+2];for(let q of _){let ye=Z6(y,j,k,U,X,q,i,o,r,Vit),_e=Z6(y,J,k,U,X,q,i,o,r,Zit),ue=Z6(y,ne,k,U,X,q,i,o,r,Rit),Ce=Wi.rayTriangleParametric(t,ye,_e,ue,g(e.backFaceCulling,!0));d(Ce)&&Ce<a&&Ce>=0&&(a=Ce)}}}}if(a!==Number.MAX_VALUE){if(s=Dn.getPoint(t,a,s),n.mode!==ae.SCENE3D){h.fromElements(s.y,s.z,s.x,s);let u=n.mapProjection,m=u.ellipsoid,f=u.unproject(s,Xit);m.cartographicToCartesian(f,s)}return s}}function Z6(e,t,n,i,o,r,s,a,c,l){let u=n+t*i;if(l.x=e[u],l.y=e[u+1],l.z=e[u+2],d(o))if(o.octEncoded){if(l=xn.octDecodeInRange(l,o.normalizationRange,l),o.octEncodedZXY){let m=l.x;l.x=l.z,l.z=l.y,l.y=m}}else l=h.multiplyComponents(l,o.quantizedVolumeStepSize,l),l=h.add(l,o.quantizedVolumeOffset,l);return l=P.multiplyByPoint(r,l,l),s!==1&&or.getPosition(l,c,s,a,l),l}var Fui=S(C(),1);var kdi=S(C(),1);var GZ={};GZ._deprecationWarning=lr;var dxe=Uint32Array.BYTES_PER_ELEMENT;GZ.parse=function(e,t){t=g(t,0);let i=0,o=0,r=0,s=0,a;r>=570425344?(t-=dxe*2,a=i,r=o,s=0,i=0,o=0,GZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):s>=570425344&&(t-=dxe,a=r,r=i,s=o,i=0,o=0,GZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let c;i===0?c={BATCH_LENGTH:g(a,0)}:(c=mo(uint8Array,t,i),t+=i);let l=new Uint8Array(e,t,o);t+=o;let u,m;r>0&&(u=mo(uint8Array,t,r),t+=r,s>0&&(m=new Uint8Array(e,t,s),m=new Uint8Array(m),t+=s));let f=e.byteLength,b;return t%4===0?b=new Uint8Array(e,t,f):(GZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),b=new Uint8Array(uint8Array.subarray(t,t+f))),{batchLength:a,featureTableJson:c,featureTableBinary:l,batchTableJson:u,batchTableBinary:m,gltf:b}};var Bv=GZ;var xui=S(C(),1);var Kdi=S(C(),1);var wit={};function Ov(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}Ov.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,wit)};Ov.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};Ov.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};Ov.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var Kv=Ov;var qdi=S(C(),1);var Wit={};function Hv(e){this._count=e.count,this._properties=e.properties,this._batchTableJson=e.batchTableJson}Hv.prototype.hasProperty=function(e){return ci.hasProperty(e,this._properties,Wit)};Hv.prototype.getPropertyIds=function(e,t){e=d(e)?e:[],e.length=0;let n=Object.keys(this._properties);return e.push.apply(e,n),e};Hv.prototype.getProperty=function(e,t){let n=this._properties[t];if(d(n))return Ue(n[e],!0)};Hv.prototype.setProperty=function(e,t,n){let i=this._properties[t];d(i)||(i=new Array(this._count),this._properties[t]=i),i[e]=Ue(n,!0)};var Jv=Hv;function NY(e){let t=e.count,n=e.binaryBody,i=e.batchTable,o=e.binaryBody,r=e.tilesetVersion,s=g(e.parseAsPropertyAttributes,!1),a=e.customAttributeOutput,c={jsonProperties:i,binaryProperties:o},l;(r==="2.1"||r==="2.2")&&d(c.jsonProperties)?l=new Xx({count:t,properties:i,batchTableJson:i,batchTableBinary:o}):r==="2.0"&&d(c.jsonProperties)?l=new Kv({count:t,properties:i,batchTableJson:i}):r==="1.0"&&d(c.jsonProperties)&&(l=new Jv({count:t,properties:i,batchTableJson:i}));let u;d(c.hierarchy)&&(u=new ey({extension:c.hierarchy,binaryBody:n}));let m=ua.BATCH_TABLE_CLASS_NAME,f=c.binaryProperties,b,p,x;if(s){let L=vit(t,m,f,n,a);x=L.transcodedSchema,p=[new hy({propertyAttribute:L.propertyAttributeJson,class:L.transcodedClass})]}else{let L=Pit(t,m,f,n);x=L.transcodedSchema;let V=L.featureTableJson;b=new Vl({count:V.count,properties:V.properties,class:L.transcodedClass,bufferViews:L.bufferViewsTypedArrays}),p=[]}let T=[];if(d(b)||d(l)||d(u)){let L=new ls({id:0,name:"Batch Table",count:t,metadataTable:b,jsonMetadataTable:l,batchTableHierarchy:u});T.push(L)}let _={schema:x,propertyTables:T,propertyAttributes:p,extensions:c.extensions,extras:c.extras};return new mr(_)}function Pit(e,t,n,i){let o={},r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;if(!d(i))throw new le(`Property ${m} requires a batch table binary.`);let f=n[m],b=Tl(f);r[m]={bufferView:a},o[m]=uxe(f),s[a]=b.createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e),a++}let c={classes:{}};c.classes[t]={properties:o};let l=Rl.fromJson(c);return{featureTableJson:{class:t,count:e,properties:r},bufferViewsTypedArrays:s,transcodedSchema:l,transcodedClass:l.classes[t]}}function vit(e,t,n,i,o){let r={},s={},a=0;for(let m in n){if(!n.hasOwnProperty(m))continue;let f=n[m];if(!d(i)&&!d(f.typedArray))throw new le(`Property ${m} requires a batch table binary.`);let b=fn.sanitizeGlslIdentifier(m);(b===""||r.hasOwnProperty(b))&&(b=`property_${a}`,a++);let p=uxe(f);p.name=m,r[b]=p;let x=b.toUpperCase();x.startsWith("_")||(x=`_${x}`);let T=f.typedArray;d(T)||(T=Tl(f).createArrayBufferView(i.buffer,i.byteOffset+f.byteOffset,e));let _=new hn.Attribute;_.name=x,_.count=e,_.type=f.type;let L=H.fromTypedArray(T);(L===H.INT||L===H.UNSIGNED_INT||L===H.DOUBLE)&&(NY._oneTimeWarning("Cast pnts property to floats",`Point cloud property "${x}" will be cast to a float array because INT, UNSIGNED_INT, and DOUBLE are not valid WebGL vertex attribute types. Some precision may be lost.`),T=new Float32Array(T)),_.componentDatatype=H.fromTypedArray(T),_.typedArray=T,o.push(_),s[b]={attribute:x}}let c={classes:{}};c.classes[t]={properties:r};let l=Rl.fromJson(c);return{class:t,propertyAttributeJson:{properties:s},transcodedSchema:l,transcodedClass:l.classes[t]}}function uxe(e){let t=Nit(e.componentType);return{type:e.type,componentType:t}}function Nit(e){switch(e){case"BYTE":return"INT8";case"UNSIGNED_BYTE":return"UINT8";case"SHORT":return"INT16";case"UNSIGNED_SHORT":return"UINT16";case"INT":return"INT32";case"UNSIGNED_INT":return"UINT32";case"FLOAT":return"FLOAT32";case"DOUBLE":return"FLOAT64"}}NY._deprecationWarning=lr;NY._oneTimeWarning=Ft;var Bu=NY;var SS={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},Fit=hn.FeatureIdAttribute;function $x(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=SS.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&($x.prototype=Object.create(vi.prototype),$x.prototype.constructor=$x);Object.defineProperties($x.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});$x.prototype.load=function(){if(d(this._promise))return this._promise;let e=Bv.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=new ma(t,n);this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2"?this._batchLength=this._attBatchTable?.batchTableJson?.tid?.tidsLength:this._tilesetVersion==="2.0"&&d(this._attBatchTable)&&(this._batchLength=this._attBatchTable?.batchTableJson?.OID?.length),d(this._batchLength)||(this._batchLength=0);let o=i.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(o)&&(this._transform=P.fromTranslation(h.fromArray(o))),d(this._attBatchTable)&&(this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary});let r=new zc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,tilesetVersion:this._tilesetVersion,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry,batchLength:this._batchLength});this._gltfLoader=r,this._state=SS.LOADING;let s=this;return this._promise=r.load().then(function(){if(!s.isDestroyed())return s._state=SS.PROCESSING,s}).catch(function(a){if(!s.isDestroyed())return Ait(s,a)}),this._promise};function Ait(e,t){return e.unload(),e._state=SS.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}$x.prototype.process=function(e){if(this._state===SS.READY)return!0;if(this._state!==SS.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),Dit(this,n),this._components=n,this._arrayBuffer=void 0,this._state=SS.READY,!0};function Dit(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)mxe(s[c]);t.structuralMetadata=r}function mxe(e){let t=e.children.length;for(let i=0;i<t;i++)mxe(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new Fit;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}$x.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var Qv=$x;var imi=S(C(),1);var CS={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},Uit=hn.FeatureIdAttribute;function eT(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=CS.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(eT.prototype=Object.create(vi.prototype),eT.prototype.constructor=eT);Object.defineProperties(eT.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});eT.prototype.load=function(){if(d(this._promise))return this._promise;let e=hS.parse(this._arrayBuffer,this._byteOffset),t=e.batchLength,n=e.featureTableJson,i=e.featureTableBinary,o=new ma(n,i);t=o.getGlobalProperty("BATCH_LENGTH"),this._batchLength=t;let r=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(r)&&(this._transform=P.fromTranslation(h.fromArray(r))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let s=new zc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=s,this._state=CS.LOADING;let a=this;return this._promise=s.load().then(function(){if(!a.isDestroyed())return a._state=CS.PROCESSING,a}).catch(function(c){if(!a.isDestroyed())return kit(a,c)}),this._promise};function kit(e,t){return e.unload(),e._state=CS.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}eT.prototype.process=function(e){if(this._state===CS.READY)return!0;if(this._state!==CS.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),zit(this,n),this._components=n,this._arrayBuffer=void 0,this._state=CS.READY,!0};function zit(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)hxe(s[c]);t.structuralMetadata=r}function hxe(e){let t=e.children.length;for(let i=0;i<t;i++)hxe(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new Uit;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}eT.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var jv=eT;var wmi=S(C(),1);var Cy={NOT_LOADED:0,LOADING:1,PROCESSING:2,POST_PROCESSING:3,READY:4,FAILED:5,UNLOADED:6},FY=hn.Attribute,Yit=hn.FeatureIdAttribute,fxe=hn.Instances;function Ly(e){e=g(e,g.EMPTY_OBJECT);let t=e.i3dmResource,n=e.arrayBuffer,i=e.baseResource,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadIndicesForWireframe,!1),f=g(e.loadPrimitiveOutline,!0),b=g(e.enablePick,!1);i=d(i)?i:t.clone(),this._i3dmResource=t,this._baseResource=i,this._arrayBuffer=n,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadIndicesForWireframe=m,this._loadPrimitiveOutline=f,this._enablePick=b,this._state=Cy.NOT_LOADED,this._promise=void 0,this._gltfLoader=void 0,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._batchTable=void 0,this._featureTable=void 0,this._instancesLength=0,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(Ly.prototype=Object.create(vi.prototype),Ly.prototype.constructor=Ly);Object.defineProperties(Ly.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});Ly.prototype.load=function(){if(d(this._promise))return this._promise;let e=fS.parse(this._arrayBuffer,this._byteOffset),t=e.featureTableJson,n=e.featureTableBinary,i=e.gltfFormat,o=new ma(t,n);this._featureTable=o;let r=o.getGlobalProperty("INSTANCES_LENGTH");if(o.featuresLength=r,!d(r))throw new le("Feature table global property: INSTANCES_LENGTH must be defined");this._instancesLength=r;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),this._batchTable={json:this._attBatchTable.batchTableJson,binary:this._attBatchTable.batchTableBinary};let a={upAxis:this._upAxis,forwardAxis:this._forwardAxis,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry};if(i===0){let l=wr(e.gltf);l=l.replace(/[\s\0]+$/,"");let u=this._baseResource.getDerivedResource({url:l});a.gltfResource=u,a.baseResource=u}else a.gltfResource=this._i3dmResource,a.typedArray=e.gltf;let c=new zc(a);return this._gltfLoader=c,this._state=Cy.LOADING,this._promise=c.load().then(()=>{if(!this.isDestroyed())return this._state=Cy.PROCESSING,this}).catch(l=>{if(!this.isDestroyed())throw Bit(this,l)}),this._promise};function Bit(e,t){return e.unload(),e._state=Cy.FAILED,e.getError("Failed to load i3dm",t)}Ly.prototype.process=function(e){if(this._state===Cy.READY)return!0;let t=this._gltfLoader,n=!1;if(this._state===Cy.PROCESSING&&(n=t.process(e)),!n)return!1;let i=t.components;return i.transform=P.multiplyTransformation(this._transform,i.transform,i.transform),Hit(this,i,e),Oit(this,i),this._components=i,this._arrayBuffer=void 0,this._state=Cy.READY,!0};function Oit(e,t){let n=e._batchTable,i=e._instancesLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let s=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[s]})}t.structuralMetadata=r}var AY=new h,R6=new Array(4),Kit=new P;function Hit(e,t,n){let i,o=e._featureTable,r=e._instancesLength;if(r===0)return;let s=o.getGlobalProperty("RTC_CENTER",H.FLOAT,3),a=o.getGlobalProperty("EAST_NORTH_UP"),c=o.hasProperty("NORMAL_UP")||o.hasProperty("NORMAL_UP_OCT32P")||a,l=o.hasProperty("SCALE")||o.hasProperty("SCALE_NON_UNIFORM"),u=Qit(o,r),m;c&&(m=new Float32Array(4*r));let f;l&&(f=new Float32Array(3*r));let b=new Float32Array(r),p=h.unpackArray(u),x=new h,T=new h,_=new h,L=new h,V=new $,Z=new Be,G=new Array(4),I=new h,w=new Array(3),W=new P;if(!d(s)||h.equals(h.unpack(s),h.ZERO)){let U=de.fromPoints(p);for(i=0;i<p.length;i++)h.subtract(p[i],U.center,AY),u[3*i+0]=AY.x,u[3*i+1]=AY.y,u[3*i+2]=AY.z;let k=P.fromTranslation(U.center,Kit);t.transform=P.multiplyTransformation(k,t.transform,t.transform)}for(i=0;i<r;i++){x=h.clone(p[i]),d(s)&&h.add(x,h.unpack(s),x),c&&(jit(o,a,i,Z,x,_,T,L,V,W),Be.pack(Z,G,0),m[4*i+0]=G[0],m[4*i+1]=G[1],m[4*i+2]=G[2],m[4*i+3]=G[3]),l&&(qit(o,i,I),h.pack(I,w,0),f[3*i+0]=w[0],f[3*i+1]=w[1],f[3*i+2]=w[2]);let U=o.getProperty("BATCH_ID",H.UNSIGNED_SHORT,1,i);d(U)||(U=i),b[i]=U}let v=new fxe;v.transformInWorldSpace=!0;let N=e._buffers,y=new FY;if(y.name="Instance Translation",y.semantic=kr.TRANSLATION,y.componentDatatype=H.FLOAT,y.type=kt.VEC3,y.count=r,y.typedArray=u,!c){let U=nt.createVertexBuffer({context:n.context,typedArray:u,usage:Me.STATIC_DRAW});U.vertexArrayDestroyable=!1,N.push(U),y.buffer=U}if(v.attributes.push(y),c){let U=new FY;U.name="Instance Rotation",U.semantic=kr.ROTATION,U.componentDatatype=H.FLOAT,U.type=kt.VEC4,U.count=r,U.typedArray=m,v.attributes.push(U)}if(l){let U=new FY;if(U.name="Instance Scale",U.semantic=kr.SCALE,U.componentDatatype=H.FLOAT,U.type=kt.VEC3,U.count=r,c)U.typedArray=f;else{let k=nt.createVertexBuffer({context:n.context,typedArray:f,usage:Me.STATIC_DRAW});k.vertexArrayDestroyable=!1,N.push(k),U.buffer=k}v.attributes.push(U)}let R=new FY;R.name="Instance Feature ID",R.setIndex=0,R.semantic=kr.FEATURE_ID,R.componentDatatype=H.FLOAT,R.type=kt.SCALAR,R.count=r;let E=nt.createVertexBuffer({context:n.context,typedArray:b,usage:Me.STATIC_DRAW});E.vertexArrayDestroyable=!1,N.push(E),R.buffer=E,v.attributes.push(R);let X=new Yit;X.propertyTableId=0,X.setIndex=0,X.positionalLabel="instanceFeatureId_0",v.featureIds.push(X);let F=t.nodes,A=F.length,Y=!1;for(i=0;i<A;i++){let U=F[i];U.primitives.length>0&&(U.instances=Y?Jit(v):v,Y=!0)}}function Jit(e){let t=new fxe;t.transformInWorldSpace=e.transformInWorldSpace;let n=e.attributes,i=n.length;for(let o=0;o<i;o++){let r=Ue(n[o],!1);t.attributes.push(r)}return t.featureIds=e.featureIds,t}function Qit(e,t){if(e.hasProperty("POSITION"))return e.getPropertyArray("POSITION",H.FLOAT,3);if(e.hasProperty("POSITION_QUANTIZED")){let n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3),i=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");let o=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(o))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let r=new Float32Array(n.length);for(let s=0;s<n.length/3;s++)for(let a=0;a<3;a++){let c=3*s+a;r[c]=n[c]/65535*o[a]+i[a]}return r}else throw new le("Either POSITION or POSITION_QUANTIZED must be defined for each instance.")}var pxe=new Array(4);function jit(e,t,n,i,o,r,s,a,c,l){let u=e.getProperty("NORMAL_UP",H.FLOAT,3,n,R6),m=e.getProperty("NORMAL_RIGHT",H.FLOAT,3,n,pxe),f=!1;if(d(u)){if(!d(m))throw new le("To define a custom orientation, both NORMAL_UP and NORMAL_RIGHT must be defined.");h.unpack(u,0,r),h.unpack(m,0,s),f=!0}else{let b=e.getProperty("NORMAL_UP_OCT32P",H.UNSIGNED_SHORT,2,n,R6),p=e.getProperty("NORMAL_RIGHT_OCT32P",H.UNSIGNED_SHORT,2,n,pxe);if(d(b)){if(!d(p))throw new le("To define a custom orientation with oct-encoded vectors, both NORMAL_UP_OCT32P and NORMAL_RIGHT_OCT32P must be defined.");xn.octDecodeInRange(b[0],b[1],65535,r),xn.octDecodeInRange(p[0],p[1],65535,s),f=!0}else t?(Zt.eastNorthUpToFixedFrame(o,oe.WGS84,l),P.getMatrix3(l,c)):$.clone($.IDENTITY,c)}f&&(h.cross(s,r,a),h.normalize(a,a),$.setColumn(c,0,s,c),$.setColumn(c,1,r,c),$.setColumn(c,2,a,c)),Be.fromRotationMatrix(c,i)}function qit(e,t,n){n=h.fromElements(1,1,1,n);let i=e.getProperty("SCALE",H.FLOAT,1,t);d(i)&&h.multiplyByScalar(n,i,n);let o=e.getProperty("SCALE_NON_UNIFORM",H.FLOAT,3,t,R6);d(o)&&(n.x*=o[0],n.y*=o[1],n.z*=o[2])}function $it(e){let t=e._buffers,n=t.length;for(let i=0;i<n;i++){let o=t[i];o.isDestroyed()||o.destroy()}t.length=0}Ly.prototype.isUnloaded=function(){return this._state===Cy.UNLOADED};Ly.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),$it(this),this._components=void 0,this._arrayBuffer=void 0,this._state=Cy.UNLOADED};var qv=Ly;var ghi=S(C(),1);var xxe=S(HG(),1);var Kmi=S(C(),1);var bxe={},Mp=Uint32Array.BYTES_PER_ELEMENT;bxe.parse=function(e,t,n,i,o){t=g(t,0);let r=new Uint8Array(e),s=new DataView(e),a=0,c=0,l,u;if(n.version==="1.0"||n.version==="0.0"){let _=s.getUint32(t,!0);t+=Mp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Mp;let V=s.getUint32(t,!0);if(t+=Mp,c=s.getUint32(t,!0),t+=Mp,_>0){let G=wr(r,t,_),I=JSON.parse(G);n.loadChildTileSet(o,I,i)}t+=_;let Z=wr(r,t,L);l=JSON.parse(Z),t+=L,u=new Uint8Array(e,t,V),t+=V}else{t+=Mp;let _=s.getUint32(t,!0);if(_!==1)throw new le(`Only Point Cloud tile version 1 is supported. Version ${_} is not.`);t+=Mp,t+=Mp;let L=s.getUint32(t,!0);if(L===0)throw new le("Feature table must have a byte length greater than zero");t+=Mp;let V=s.getUint32(t,!0);t+=Mp,a=s.getUint32(t,!0),t+=Mp,c=s.getUint32(t,!0),t+=Mp,l=mo(r,t,L),t+=L,u=new Uint8Array(e,t,V),t+=V}let m,f;a>0&&(m=mo(r,t,a),t+=a,c>0&&(f=new Uint8Array(e,t,c),t+=c));let b=new ma(l,u),p=b.getGlobalProperty("POINTS_LENGTH");if(b.featuresLength=p,!d(p))throw new le("Feature table global property: POINTS_LENGTH must be defined");let x=b.getGlobalProperty("RTC_CENTER",H.FLOAT,3);d(x)&&(x=h.unpack(x));let T=eot(b,m);if(T.rtcCenter=x,T.pointsLength=p,!T.hasPositions){let _=tot(b);T.positions=_,T.hasPositions=T.hasPositions||d(_)}if(!T.hasPositions)throw new le("Either POSITION or POSITION_QUANTIZED must be defined.");if(!T.hasNormals){let _=iot(b);T.normals=_,T.hasNormals=T.hasNormals||d(_)}if(!T.hasColors){let _=not(b);T.colors=_,T.hasColors=T.hasColors||d(_),T.hasConstantColor=d(T.constantColor),T.isTranslucent=d(_)&&_.isTranslucent}if(!T.hasBatchIds){let _=oot(b);T.batchIds=_,T.hasBatchIds=T.hasBatchIds||d(_)}if(T.hasBatchIds){let _=b.getGlobalProperty("BATCH_LENGTH");if(!d(_))throw new le("Global property: BATCH_LENGTH must be defined when BATCH_ID is defined.");T.batchLength=_}return d(f)&&(f=new Uint8Array(f),T.batchTableJson=m,T.batchTableBinary=f),T.batchTableJson=m,T};function eot(e,t){let n=e.json,i,o,r,s=d(n.extensions)?n.extensions["3DTILES_draco_point_compression"]:void 0,a=d(t)&&d(t.extensions)?t.extensions["3DTILES_draco_point_compression"]:void 0;d(a)&&(r=a.properties);let c,l,u,m,f;if(d(s)){o=s.properties;let p=s.byteOffset,x=s.byteLength;if(!d(o)||!d(p)||!d(x))throw new le("Draco properties, byteOffset, and byteLength must be defined");i=e.buffer.slice(p,p+x),c=d(o.POSITION),l=d(o.RGB)||d(o.RGBA),u=d(o.NORMAL),m=d(o.BATCH_ID),f=d(o.RGBA)}let b;return d(i)&&(b={buffer:i,featureTableProperties:o,batchTableProperties:r,properties:Tt(o,r),dequantizeInShader:!0}),{draco:b,hasPositions:c,hasColors:l,isTranslucent:f,hasNormals:u,hasBatchIds:m}}function tot(e){let t=e.json,n;if(d(t.POSITION))return n=e.getPropertyArray("POSITION",H.FLOAT,3),{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.POSITION_QUANTIZED)){n=e.getPropertyArray("POSITION_QUANTIZED",H.UNSIGNED_SHORT,3);let i=e.getGlobalProperty("QUANTIZED_VOLUME_SCALE",H.FLOAT,3);if(!d(i))throw new le("Global property: QUANTIZED_VOLUME_SCALE must be defined for quantized positions.");let o=65535,r=e.getGlobalProperty("QUANTIZED_VOLUME_OFFSET",H.FLOAT,3);if(!d(r))throw new le("Global property: QUANTIZED_VOLUME_OFFSET must be defined for quantized positions.");return{name:ut.POSITION,semantic:ut.POSITION,typedArray:n,isQuantized:!0,componentDatatype:H.FLOAT,type:kt.VEC3,quantizedRange:o,quantizedVolumeOffset:h.unpack(r),quantizedVolumeScale:h.unpack(i),quantizedComponentDatatype:H.UNSIGNED_SHORT,quantizedType:kt.VEC3}}}function not(e){let t=e.json,n;if(d(t.RGBA))return n=e.getPropertyArray("RGBA",H.UNSIGNED_BYTE,4),{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isRGB565:!1,isTranslucent:!0};if(d(t.RGB))return n=e.getPropertyArray("RGB",H.UNSIGNED_BYTE,3),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isRGB565:!1,isTranslucent:!1};if(d(t.RGB565))return n=e.getPropertyArray("RGB565",H.UNSIGNED_SHORT,1),{name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n,componentDatatype:H.FLOAT,type:kt.VEC3,normalized:!1,isRGB565:!0,isTranslucent:!1};if(d(t.CONSTANT_RGBA)){let i=e.getGlobalProperty("CONSTANT_RGBA",H.UNSIGNED_BYTE,4),o=i[3],r=z.fromBytes(i[0],i[1],i[2],o),s=o<255;return{name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:r,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:s}}}function iot(e){let t=e.json,n;if(d(t.NORMAL))return n=e.getPropertyArray("NORMAL",H.FLOAT,3),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!1,octEncodedZXY:!1,componentDatatype:H.FLOAT,type:kt.VEC3};if(d(t.NORMAL_OCT16P))return n=e.getPropertyArray("NORMAL_OCT16P",H.UNSIGNED_BYTE,2),{name:ut.NORMAL,semantic:ut.NORMAL,typedArray:n,octEncoded:!0,octEncodedZXY:!1,quantizedRange:(1<<8)-1,quantizedType:kt.VEC2,quantizedComponentDatatype:H.UNSIGNED_BYTE,componentDatatype:H.FLOAT,type:kt.VEC3}}function oot(e){let t=e.json;if(d(t.BATCH_ID)){let n=e.getPropertyArray("BATCH_ID",H.UNSIGNED_SHORT,1);return{name:ut.FEATURE_ID,semantic:ut.FEATURE_ID,setIndex:0,typedArray:n,componentDatatype:H.fromTypedArray(n),type:kt.SCALAR}}}var $v=bxe;var rot=hn.Components,sot=hn.Scene,aot=hn.Node,cot=hn.Primitive,lot=hn.Attribute,yxe=hn.Quantization,dot=hn.FeatureIdAttribute,uot=hn.Material,mot=hn.MetallicRoughness;function tT(e){e=g(e,g.EMPTY_OBJECT);let t=e.arrayBuffer,n=g(e.byteOffset,0);this._arrayBuffer=t,this._byteOffset=n,this._loadAttributesFor2D=g(e.loadAttributesFor2D,!1),this._parsedContent=void 0,this._decodePromise=void 0,this._decodedAttributes=void 0,this._promise=void 0,this._error=void 0,this._state=Xt.UNLOADED,this._buffers=[],this._components=void 0,this._transform=P.IDENTITY,this._attBatchTable=e.attBatchTable,this._tilesetVersion=e.tilesetVersion,this._tileset=e.tileset,this._tile=e.tile,this._resource=e.resource}d(Object.create)&&(tT.prototype=Object.create(vi.prototype),tT.prototype.constructor=tT);Object.defineProperties(tT.prototype,{cacheKey:{get:function(){}},components:{get:function(){return this._components}},transform:{get:function(){return this._transform}}});tT.prototype.load=function(){if(d(this._promise))return this._promise;this._parsedContent=$v.parse(this._arrayBuffer,this._byteOffset,this._tileset,this._tile,this._resource),(this._tilesetVersion==="2.1"||this._tilesetVersion==="2.2")&&(this._parsedContent.batchTableJson=this._attBatchTable?.batchTableJson,this._parsedContent.batchTableBinary=this._attBatchTable?.batchTableBinary),this._state=Xt.PROCESSING,this._promise=Promise.resolve(this)};tT.prototype.process=function(e){if(d(this._error)){let t=this._error;throw this._error=void 0,t}if(this._state===Xt.READY)return!0;if(this._state===Xt.PROCESSING){if(d(this._decodePromise))return!1;this._decodePromise=hot(this,e.context)}return!1};function hot(e,t){let i=e._parsedContent.draco,o;if(d(i)?o=Lp.decodePointCloud(i,t):o=Promise.resolve(),!!d(o))return e._decodePromise=o,o.then(function(r){if(!e.isDestroyed())return d(r)&&pot(e,i,r),Vot(e,t),e._state=Xt.READY,e}).catch(function(r){e.unload(),e._state=Xt.FAILED;let s="Failed to load Draco pnts";e._error=e.getError(s,r)})}function pot(e,t,n){e._state=Xt.READY;let i=e._parsedContent,o;if(d(n.POSITION)){if(o={name:"POSITION",semantic:ut.POSITION,typedArray:n.POSITION.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1},d(n.POSITION.data.quantization)){let a=n.POSITION.data.quantization,c=a.range,l=h.fromElements(c,c,c),u=h.unpack(a.minValues),m=(1<<a.quantizationBits)-1;o.isQuantized=!0,o.quantizedRange=m,o.quantizedVolumeOffset=u,o.quantizedVolumeScale=l,o.quantizedComponentDatatype=m<=255?H.UNSIGNED_BYTE:H.UNSIGNED_SHORT,o.quantizedType=kt.VEC3}i.positions=o}if(d(n.NORMAL)){if(o={name:"NORMAL",semantic:ut.NORMAL,typedArray:n.NORMAL.array,componentDatatype:H.FLOAT,type:kt.VEC3,isQuantized:!1,octEncoded:!1,octEncodedZXY:!1},d(n.NORMAL.data.quantization)){let a=(1<<n.NORMAL.data.quantization.quantizationBits)-1;o.quantizedRange=a,o.octEncoded=!0,o.octEncodedZXY=!0,o.quantizedComponentDatatype=H.UNSIGNED_BYTE,o.quantizedType=kt.VEC2}i.normals=o}if(d(n.RGBA)?i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGBA.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC4,normalized:!0,isTranslucent:!0}:d(n.RGB)&&(i.colors={name:"COLOR",semantic:ut.COLOR,setIndex:0,typedArray:n.RGB.array,componentDatatype:H.UNSIGNED_BYTE,type:kt.VEC3,normalized:!0,isTranslucent:!1}),d(n.BATCH_ID)){let a=n.BATCH_ID.array;i.batchIds={name:"_FEATURE_ID",semantic:ut.FEATURE_ID,setIndex:0,typedArray:a,componentDatatype:H.fromTypedArray(a),type:kt.SCALAR}}let r=i.batchTableJson,s=t.batchTableProperties;for(let a in s)if(s.hasOwnProperty(a)){let c=n[a];d(r)||(r={}),i.hasDracoBatchTable=!0;let l=c.data;r[a]={byteOffset:l.byteOffset,type:fot(l.componentsPerAttribute),componentType:bot(l.componentDatatype),typedArray:c.array}}i.batchTableJson=r}function fot(e){switch(e){case 1:return"SCALAR";case 2:return"VEC2";case 3:return"VEC3";case 4:return"VEC4"}}function bot(e){switch(e){case te.BYTE:return"BYTE";case te.UNSIGNED_BYTE:return"UNSIGNED_BYTE";case te.SHORT:return"SHORT";case te.UNSIGNED_SHORT:return"UNSIGNED_SHORT";case te.INT:return"INT";case te.UNSIGNED_INT:return"UNSIGNED_INT";case te.DOUBLE:return"DOUBLE";case te.FLOAT:return"FLOAT"}}function eN(e,t,n){let i=t.typedArray,o;if(t.octEncoded&&(o=new yxe,o.octEncoded=t.octEncoded,o.octEncodedZXY=t.octEncodedZXY,o.normalizationRange=t.quantizedRange,o.type=t.quantizedType,o.componentDatatype=t.quantizedComponentDatatype),t.isQuantized){o=new yxe;let a=t.quantizedRange;o.normalizationRange=a,o.quantizedVolumeOffset=h.ZERO;let c=t.quantizedVolumeScale;o.quantizedVolumeDimensions=c,o.quantizedVolumeStepSize=h.divideByScalar(c,a,new h),o.componentDatatype=t.quantizedComponentDatatype,o.type=t.quantizedType}let r=new lot;if(r.name=t.name,r.semantic=t.semantic,r.setIndex=t.setIndex,r.componentDatatype=t.componentDatatype,r.type=t.type,r.normalized=g(t.normalized,!1),r.min=t.min,r.max=t.max,r.quantization=o,t.isRGB565&&(i=xn.decodeRGB565(i)),d(t.constantColor)){let a=new Array(4);r.constant=z.pack(t.constantColor,a)}else{let a=nt.createVertexBuffer({typedArray:i,context:n,usage:Me.STATIC_DRAW});a.vertexArrayDestroyable=!1,e._buffers.push(a),r.buffer=a}let s=e._loadAttributesFor2D;return r.semantic===ut.POSITION&&s&&(r.typedArray=i),r}var gxe,DY;function yot(e){if(!d(DY)){gxe=new xxe.default(0),DY=new Array(e);for(let t=0;t<e;++t)DY[t]=gxe.random()}return DY}var got=new h,xot=new h,Tot=new h;function _ot(e){let t=e.typedArray,n=20,i=t.length/3,o=Math.min(i,n),r=yot(n),s=Number.MAX_VALUE,a=-Number.MAX_VALUE,c=h.fromElements(s,s,s,got),l=h.fromElements(a,a,a,xot),u,m,f;if(e.isQuantized)c=h.ZERO,l=e.quantizedVolumeScale;else for(u=0;u<o;++u)m=Math.floor(r[u]*i),f=h.unpack(t,m*3,Tot),h.minimumByComponent(c,f,c),h.maximumByComponent(l,f,l);e.min=h.clone(c),e.max=h.clone(l)}var Sot={name:ut.COLOR,semantic:ut.COLOR,setIndex:0,constantColor:z.DARKGRAY,componentDatatype:H.FLOAT,type:kt.VEC4,isQuantized:!1,isTranslucent:!1};function Cot(e,t,n){let i=[],o,r=t.positions;return d(r)&&(_ot(r),o=eN(e,r,n),o.count=t.pointsLength,i.push(o)),d(t.normals)&&(o=eN(e,t.normals,n),i.push(o)),d(t.colors)?(o=eN(e,t.colors,n),i.push(o)):(o=eN(e,Sot,n),i.push(o)),d(t.batchIds)&&(o=eN(e,t.batchIds,n),i.push(o)),i}function Lot(e,t,n){let i=e.batchLength,o=e.pointsLength,r=e.batchTableBinary,s=!d(e.batchIds);if(d(r)||e.hasDracoBatchTable||e.batchTableJson){let a=g(i,o);if(n==="2.1"||n==="2.2")return Bu({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t,tilesetVersion:n});if(n==="2.0")return Ep({count:a,batchTable:e.batchTableJson,binaryBody:r,parseAsPropertyAttributes:s,customAttributeOutput:t})}return new mr({schema:{},propertyTables:[]})}function Vot(e,t){let n=e._parsedContent,i=e._tilesetVersion,o=new mot;o.metallicFactor=0,o.roughnessFactor=.9;let r=new uot;r.metallicRoughness=o;let s=n.colors;d(s)&&s.isTranslucent&&(r.alphaMode=jm.BLEND);let a=!d(n.normals);r.unlit=a;let c=new cot;if(c.attributes=Cot(e,n,t),c.primitiveType=Fe.POINTS,c.material=r,d(n.batchIds)){let p=new dot;p.propertyTableId=0,p.setIndex=0,p.positionalLabel="featureId_0",c.featureIds.push(p)}let l=new aot;l.index=0,l.primitives=[c];let u=new sot;u.nodes=[l],u.upAxis=In.Z,u.forwardAxis=In.X;let m=new rot;m.scene=u,m.nodes=[l];let f=[];m.structuralMetadata=Lot(n,f,i),f.length>0&&Zot(e,c,f,t),d(n.rtcCenter)&&(m.transform=P.multiplyByTranslation(m.transform,n.rtcCenter,m.transform));let b=n.positions;d(b)&&b.isQuantized&&(m.transform=P.multiplyByTranslation(m.transform,b.quantizedVolumeOffset,m.transform)),e._components=m,e._parsedContent=void 0,e._arrayBuffer=void 0}function Zot(e,t,n,i){let o=t.attributes,r=n.length;for(let s=0;s<r;s++){let a=n[s],c=nt.createVertexBuffer({typedArray:a.typedArray,context:i,usage:Me.STATIC_DRAW});c.vertexArrayDestroyable=!1,e._buffers.push(c),a.buffer=c,a.typedArray=void 0,o.push(a)}t.propertyAttributeIds=[0]}tT.prototype.unload=function(){let e=this._buffers;for(let t=0;t<e.length;t++)e[t].destroy();e.length=0,this._components=void 0,this._parsedContent=void 0,this._arrayBuffer=void 0};var tN=tT;var zhi=S(C(),1);var Lhi=S(C(),1);var EZ={};EZ._deprecationWarning=lr;var nT=Uint32Array.BYTES_PER_ELEMENT;EZ.parse=function(e,t,n,i){t=g(t,0);let r=new DataView(e),s=new Uint8Array(e),a=0,c=0,l=0,u=0,m=r.getUint32(t,!0);t+=nT;let f;if(m>0){let Z=wr(s,t,m);t+=m,f=JSON.parse(Z),i.tileset.loadChildTileSet(n,f,i)}t+=nT,a=r.getUint32(t,!0),t+=nT,c=r.getUint32(t,!0),t+=nT,l=r.getUint32(t,!0),t+=nT,u=r.getUint32(t,!0),t+=nT;let b;m=r.getUint32(t,!0),l>=570425344?(t-=nT*2,b=a,l=c,u=0,a=0,c=0,EZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchLength] [batchTableByteLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel.")):u>=570425344&&(t-=nT,b=l,l=a,u=c,a=0,c=0,EZ._deprecationWarning("b3dm-legacy-header","This b3dm header is using the legacy format [batchTableJsonByteLength] [batchTableBinaryByteLength] [batchLength]. The new format is [featureTableJsonByteLength] [featureTableBinaryByteLength] [batchTableJsonByteLength] [batchTableBinaryByteLength] from https://github.com/CesiumGS/3d-tiles/tree/main/specification/TileFormats/Batched3DModel."));let p;a===0?p={BATCH_LENGTH:g(b,0)}:(p=mo(s,t,a),t+=a);let x=new Uint8Array(e,t,c);t+=c;let T,_;l>0&&(T=mo(s,t,l),t+=l,u>0&&(_=new Uint8Array(e,t,u),_=new Uint8Array(_),t+=u));let L=e.byteLength-t,V;return t%4===0?V=new Uint8Array(e,t,L):(EZ._deprecationWarning("b3dm-glb-unaligned","The embedded glb is not aligned to a 4-byte boundary."),V=new Uint8Array(s.subarray(t,t+L))),{batchLength:b,featureTableJson:p,featureTableBinary:x,batchTableJson:T,batchTableBinary:_,gltf:V}};var nN=EZ;var LS={UNLOADED:0,LOADING:1,PROCESSING:2,READY:3,FAILED:4},Rot=hn.FeatureIdAttribute;function iT(e){e=g(e,g.EMPTY_OBJECT);let t=e.b3dmResource,n=e.baseResource,i=e.arrayBuffer,o=g(e.byteOffset,0),r=g(e.releaseGltfJson,!1),s=g(e.asynchronous,!0),a=g(e.incrementallyLoadTextures,!0),c=g(e.upAxis,In.Y),l=g(e.forwardAxis,In.X),u=g(e.loadAttributesAsTypedArray,!1),m=g(e.loadAttributesFor2D,!1),f=g(e.enablePick,!1),b=g(e.loadIndicesForWireframe,!1),p=g(e.loadPrimitiveOutline,!0),x=g(e.loadForClassification,!1);n=d(n)?n:t.clone(),this._b3dmResource=t,this._baseResource=n,this._arrayBuffer=i,this._byteOffset=o,this._releaseGltfJson=r,this._asynchronous=s,this._incrementallyLoadTextures=a,this._upAxis=c,this._forwardAxis=l,this._loadAttributesAsTypedArray=u,this._loadAttributesFor2D=m,this._enablePick=f,this._loadIndicesForWireframe=b,this._loadPrimitiveOutline=p,this._loadForClassification=x,this._state=LS.UNLOADED,this._promise=void 0,this._gltfLoader=void 0,this._batchLength=0,this._propertyTable=void 0,this._batchTable=void 0,this._components=void 0,this._transform=P.IDENTITY,this._tilesetVersion=e.tilesetVersion,this._tile=e.tile,this._fillClip=e.fillClip,this._hasSectionGeometry=e.hasSectionGeometry}d(Object.create)&&(iT.prototype=Object.create(vi.prototype),iT.prototype.constructor=iT);Object.defineProperties(iT.prototype,{texturesLoaded:{get:function(){return this._gltfLoader?.texturesLoaded}},cacheKey:{get:function(){}},components:{get:function(){return this._components}}});iT.prototype.load=function(){if(d(this._promise))return this._promise;let e=nN.parse(this._arrayBuffer,this._byteOffset,this._baseResource,this._tile),t=e.featureTableJson,n=e.featureTableBinary,i=e.batchTableJson,o=e.batchTableBinary,r=new ma(t,n);this._tilesetVersion==="1.0"&&(this._batchLength=r.getGlobalProperty("BATCH_LENGTH"));let s=r.getGlobalProperty("RTC_CENTER",H.FLOAT,3);if(d(s)&&(this._transform=P.fromTranslation(h.fromArray(s))),d(i)){if(i.hasOwnProperty("name")){i.OID=[];let l=i.name;for(let u=0;u<l.length;u++){let m=l[u].split("_"),f=parseInt(m[2]);i.OID.push(f)}}this._batchTable={json:i,binary:o}}let a=new zc({typedArray:e.gltf,upAxis:this._upAxis,forwardAxis:this._forwardAxis,gltfResource:this._b3dmResource,baseResource:this._baseResource,releaseGltfJson:this._releaseGltfJson,incrementallyLoadTextures:this._incrementallyLoadTextures,loadAttributesAsTypedArray:this._loadAttributesAsTypedArray,loadAttributesFor2D:this._loadAttributesFor2D,enablePick:this._enablePick,loadIndicesForWireframe:this._loadIndicesForWireframe,loadPrimitiveOutline:this._loadPrimitiveOutline,loadForClassification:this._loadForClassification,renameBatchIdSemantic:!0,fillClip:this._fillClip,hasSectionGeometry:this._hasSectionGeometry});this._gltfLoader=a,this._state=LS.LOADING;let c=this;return this._promise=a.load().then(function(){if(!c.isDestroyed())return c._state=LS.PROCESSING,c}).catch(function(l){if(!c.isDestroyed())return Got(c,l)}),this._promise};function Got(e,t){return e.unload(),e._state=LS.FAILED,t=e.getError("Failed to load b3dm",t),Promise.reject(t)}iT.prototype.process=function(e){if(this._state===LS.READY)return!0;if(this._state!==LS.PROCESSING||!this._gltfLoader.process(e))return!1;let n=this._gltfLoader.components;return n.transform=P.multiplyTransformation(this._transform,n.transform,n.transform),Eot(this,n),this._components=n,this._arrayBuffer=void 0,this._state=LS.READY,!0};function Eot(e,t){let n=e._batchTable,i=e._batchLength,o=e._tilesetVersion;if(i===0)return;let r;if(d(n?.json))r=Bu({count:i,batchTable:n.json,binaryBody:n.binary,tilesetVersion:o});else{let c=new ls({name:ua.BATCH_TABLE_CLASS_NAME,count:i});r=new mr({schema:{},propertyTables:[c]})}let s=t.scene.nodes,a=s.length;for(let c=0;c<a;c++)Txe(s[c]);t.structuralMetadata=r}function Txe(e){let t=e.children.length;for(let i=0;i<t;i++)Txe(e.children[i]);let n=e.primitives.length;for(let i=0;i<n;i++){let o=e.primitives[i],r=fn.getAttributeBySemantic(o,ut.FEATURE_ID);if(d(r)){r.setIndex=0;let s=new Rot;s.propertyTableId=0,s.setIndex=0,s.positionalLabel="featureId_0",o.featureIds.push(s)}}}iT.prototype.unload=function(){d(this._gltfLoader)&&!this._gltfLoader.isDestroyed()&&this._gltfLoader.unload(),this._components=void 0,this._arrayBuffer=void 0};var iN=iT;var Bhi=S(C(),1),Iot={FILL:0,SILHOUETTE:1,ALL:2},wp=Object.freeze(Iot);function Yi(e){e=g(e,g.EMPTY_OBJECT),this._loader=e.loader,this._resource=e.resource,this.type=g(e.type,xr.GLTF),this.modelMatrix=P.clone(g(e.modelMatrix,P.IDENTITY)),this._modelMatrix=P.clone(this.modelMatrix),this._scale=g(e.scale,1),this._minimumPixelSize=g(e.minimumPixelSize,0),this._maximumScale=e.maximumScale,this._clampedScale=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,this._computedScale=this._clampedScale,this._updateModelMatrix=!1,this.referenceMatrix=void 0,this._iblReferenceFrameMatrix=$.clone($.IDENTITY),this._resourcesLoaded=!1,this._drawCommandsBuilt=!1,this._ready=!1,this._customShader=e.customShader,this._content=e.content,this._texturesLoaded=!1,this._defaultTexture=void 0,this._activeAnimations=new HW(this),this._clampAnimations=g(e.clampAnimations,!0),this._userAnimationDirty=!1,this._id=e.id,this._idDirty=!1,this._color=z.clone(e.color),this._backupColor=z.clone(e.color),this._colorBlendMode=g(e.colorBlendMode,Cl.HIGHLIGHT),this._colorBlendAmount=g(e.colorBlendAmount,.5);let t=g(e.silhouetteColor,z.RED);this._silhouetteColor=z.clone(t),this._silhouetteSize=g(e.silhouetteSize,0),this._silhouetteDirty=!1,this._silhouetteId=void 0,this._cull=g(e.cull,!0),this._opaquePass=g(e.opaquePass,Ze.OPAQUE),this._allowPicking=g(e.allowPicking,!0),this._show=g(e.show,!0),this._style=void 0,this._styleDirty=!1,this._styleCommandsNeeded=void 0;let n=g(e.featureIdLabel,"featureId_0");typeof n=="number"&&(n=`featureId_${n}`),this._featureIdLabel=n;let i=g(e.instanceFeatureIdLabel,"instanceFeatureId_0");typeof i=="number"&&(i=`instanceFeatureId_${i}`),this._instanceFeatureIdLabel=i,this._featureTables=[],this._featureTableId=void 0,this._featureTableIdDirty=!0,this._pipelineResources=[],this._modelResources=[],this._pickIds=[],this._boundingSphere=new de,this._initialRadius=void 0,this._heightReference=g(e.heightReference,rt.NONE),this._heightDirty=this._heightReference!==rt.NONE,this._removeUpdateHeightCallback=void 0,this._enableVerticalExaggeration=g(e.enableVerticalExaggeration,!0),this._hasVerticalExaggeration=!1,this._clampedModelMatrix=void 0;let o=e.scene;d(o)&&d(o.terrainProviderChanged)&&(this._terrainProviderChangedCallback=o.terrainProviderChanged.addEventListener(()=>{this._heightDirty=!0})),this._scene=o,this._distanceDisplayCondition=e.distanceDisplayCondition;let r=new $m(e.pointCloudShading);this._pointCloudShading=r,this._attenuation=r.attenuation,this._pointCloudBackFaceCulling=r.backFaceCulling;let s=e.clippingPlanes;d(s)&&s.owner===void 0?Zr.setOwner(s,this,"_clippingPlanes"):this._clippingPlanes=s,this._clippingPlanesState=0,this._clippingPlanesMatrix=P.clone(P.IDENTITY);let a=e.clippingPolygons;d(a)&&a.owner===void 0?jd.setOwner(a,this,"_clippingPolygons"):this._clippingPolygons=a,this._clippingPolygonsState=0,this._lightColor=h.clone(e.lightColor),this._imageBasedLighting=d(e.imageBasedLighting)?e.imageBasedLighting:new Qb,this._shouldDestroyImageBasedLighting=!d(e.imageBasedLighting),this._backFaceCulling=g(e.backFaceCulling,!0),this._backFaceCullingDirty=!1,this._shadows=g(e.shadows,On.ENABLED),this._shadowsDirty=!1,this._debugShowBoundingVolumeDirty=!1,this._debugShowBoundingVolume=g(e.debugShowBoundingVolume,!1),this._enableDebugWireframe=g(e.enableDebugWireframe,!1),this._enableShowOutline=g(e.enableShowOutline,!0),this._debugWireframe=g(e.debugWireframe,!1),this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltf, otherwise debugWireframe will be ignored.");let c=e.credit;typeof c=="string"&&(c=new Ot(c)),this._credits=[],this._credit=c,this._resourceCredits=[],this._gltfCredits=[],this._showCreditsOnScreen=g(e.showCreditsOnScreen,!1),this._showCreditsOnScreenDirty=!0,this._splitDirection=g(e.splitDirection,cs.NONE),this._swipeInverse=!1,this._swiper={},this._enableShowOutline=g(e.enableShowOutline,!0),this.showOutline=g(e.showOutline,!0),this.outlineColor=g(e.outlineColor,z.BLACK),this._classificationType=e.classificationType,this._statistics=new kv,this._sceneMode=void 0,this._projectTo2D=g(e.projectTo2D,!1),this._enablePick=g(e.enablePick,!1),this._fogRenderable=void 0,this._skipLevelOfDetail=!1,this._ignoreCommands=g(e.ignoreCommands,!1),this._errorEvent=new Se,this._readyEvent=new Se,this._texturesReadyEvent=new Se,this._sceneGraph=void 0,this._nodesByName={},this.pickObject=e.pickObject,this._fillClip=g(e.fillClip,!1),this._hasSectionGeometry=g(e.hasSectionGeometry,!1),this._clippingFillImage=g(e.clippingFillImage,void 0),this._lightState={pointLightNum:0,directionalLigthNum:0,spotLightNum:0},this._renderMode=g(e.renderMode,wp.FILL),this._deleteVerticalPlane=g(e.deleteVerticalPlane,!1),this._hasSectionGeometry=this.content?.tileset._hasSectionGeometry,this._clippingGeometries=e.clippingGeometries,this._brightness=0,this._modelUpAxis=In.Y,this._exposure=0,this._contrast=1,this._hue=0,this._saturation=0,this._gamma=1,this._nodeCommands=[]}function G6(e,t){if(e._errorEvent.numberOfListeners>0){e._errorEvent.raiseEvent(t);return}console.log(t)}function Xot(e,t){let n=e._featureTables,i=t.propertyTables,o=i.length;for(let r=0;r<o;r++){let s=i[r],a=new jW({model:e,propertyTable:s});n.push(a)}return n}function Mot(e,t){let n=t._featureIdLabel,i=t._instanceFeatureIdLabel,o,r,s,a;for(o=0;o<e.nodes.length;o++)if(a=e.nodes[o],d(a.instances)&&(s=fn.getFeatureIdsByLabel(a.instances.featureIds,i),d(s)&&d(s.propertyTableId)))return s.propertyTableId;for(o=0;o<e.nodes.length;o++)for(a=e.nodes[o],r=0;r<a.primitives.length;r++){let c=a.primitives[r],l=fn.getFeatureIdsByLabel(c.featureIds,n);if(d(l))return l.propertyTableId}if(t._featureTables.length===1)return 0}function X6(e,t){if(!d(e)&&!d(t))return!1;if(d(e)!==d(t))return!0;let n=e.alpha,i=t.alpha;return Math.floor(n)!==Math.floor(i)||Math.ceil(n)!==Math.ceil(i)}Object.defineProperties(Yi.prototype,{ready:{get:function(){return this._ready}},errorEvent:{get:function(){return this._errorEvent}},readyEvent:{get:function(){return this._readyEvent}},incrementallyLoadTextures:{get:function(){return g(this._loader.incrementallyLoadTextures,!1)}},texturesReadyEvent:{get:function(){return this._texturesReadyEvent}},loader:{get:function(){return this._loader}},statistics:{get:function(){return this._statistics}},activeAnimations:{get:function(){return this._activeAnimations}},clampAnimations:{get:function(){return this._clampAnimations},set:function(e){this._clampAnimations=e}},cull:{get:function(){return this._cull}},opaquePass:{get:function(){return this._opaquePass}},pointCloudShading:{get:function(){return this._pointCloudShading},set:function(e){e!==this._pointCloudShading&&this.resetDrawCommands(),this._pointCloudShading=e}},customShader:{get:function(){return this._customShader},set:function(e){e!==this._customShader&&this.resetDrawCommands(),this._customShader=e}},sceneGraph:{get:function(){return this._sceneGraph}},content:{get:function(){return this._content}},heightReference:{get:function(){return this._heightReference},set:function(e){e!==this._heightReference&&(this._heightDirty=!0),this._heightReference=e}},distanceDisplayCondition:{get:function(){return this._distanceDisplayCondition},set:function(e){this._distanceDisplayCondition=nn.clone(e,this._distanceDisplayCondition)}},structuralMetadata:{get:function(){return this._sceneGraph.components.structuralMetadata}},featureTableId:{get:function(){return this._featureTableId},set:function(e){this._featureTableId=e}},featureTables:{get:function(){return this._featureTables},set:function(e){this._featureTables=e}},id:{get:function(){return this._id},set:function(e){e!==this._id&&(this._idDirty=!0),this._id=e}},allowPicking:{get:function(){return this._allowPicking}},style:{get:function(){return this._style},set:function(e){this._style=e,this._styleDirty=!0}},color:{get:function(){return this._color},set:function(e){X6(e,this._color)&&this.resetDrawCommands(),this._color=z.clone(e,this._color)}},colorBlendMode:{get:function(){return this._colorBlendMode},set:function(e){this._colorBlendMode=e}},colorBlendAmount:{get:function(){return this._colorBlendAmount},set:function(e){this._colorBlendAmount=e}},silhouetteColor:{get:function(){return this._silhouetteColor},set:function(e){if(!z.equals(e,this._silhouetteColor)){let t=X6(e,this._silhouetteColor);this._silhouetteDirty=this._silhouetteDirty||t}this._silhouetteColor=z.clone(e,this._silhouetteColor)}},silhouetteSize:{get:function(){return this._silhouetteSize},set:function(e){if(e!==this._silhouetteSize){let t=this._silhouetteSize,n=e>0&&t===0||e===0&&t>0;this._silhouetteDirty=this._silhouetteDirty||n,this._backFaceCullingDirty=this._backFaceCullingDirty||n}this._silhouetteSize=e}},boundingSphere:{get:function(){let e=d(this._clampedModelMatrix)?this._clampedModelMatrix:this.modelMatrix;return Cxe(this,e),this._boundingSphere}},localBoundingSphere:{get:function(){let e=d(this._maximumScale)?Math.min(this._scale,this._maximumScale):this._scale,t=this._boundingSphere.clone();return t.center=h.multiplyByScalar(this._sceneGraph.boundingSphere.center,e,t.center),t.radius=this._initialRadius*this._clampedScale,t}},debugShowBoundingVolume:{get:function(){return this._debugShowBoundingVolume},set:function(e){this._debugShowBoundingVolume!==e&&(this._debugShowBoundingVolumeDirty=!0),this._debugShowBoundingVolume=e}},debugWireframe:{get:function(){return this._debugWireframe},set:function(e){this._debugWireframe!==e&&this.resetDrawCommands(),this._debugWireframe=e,this._debugWireframe===!0&&this._enableDebugWireframe===!1&&this.type===xr.GLTF&&Ft("model-debug-wireframe-ignored","enableDebugWireframe must be set to true in Model.fromGltfAsync, otherwise debugWireframe will be ignored.")}},show:{get:function(){return this._show},set:function(e){this._show=e}},featureIdLabel:{get:function(){return this._featureIdLabel},set:function(e){typeof e=="number"&&(e=`featureId_${e}`),e!==this._featureIdLabel&&(this._featureTableIdDirty=!0),this._featureIdLabel=e}},instanceFeatureIdLabel:{get:function(){return this._instanceFeatureIdLabel},set:function(e){typeof e=="number"&&(e=`instanceFeatureId_${e}`),e!==this._instanceFeatureIdLabel&&(this._featureTableIdDirty=!0),this._instanceFeatureIdLabel=e}},clippingPlanes:{get:function(){return this._clippingPlanes},set:function(e){e!==this._clippingPlanes&&(Zr.setOwner(e,this,"_clippingPlanes"),this.resetDrawCommands())}},clippingGeometries:{get:function(){return this._clippingGeometries},set:function(e){this._clippingGeometries!==e&&(this._clippingGeometries=e,this.resetDrawCommands())}},clippingPolygons:{get:function(){return this._clippingPolygons},set:function(e){e!==this._clippingPolygons&&(jd.setOwner(e,this,"_clippingPolygons"),this.resetDrawCommands())}},enableVerticalExaggeration:{get:function(){return this._enableVerticalExaggeration},set:function(e){e!==this._enableVerticalExaggeration&&this.resetDrawCommands(),this._enableVerticalExaggeration=e}},hasVerticalExaggeration:{get:function(){return this._hasVerticalExaggeration}},lightColor:{get:function(){return this._lightColor},set:function(e){d(e)!==d(this._lightColor)&&this.resetDrawCommands(),this._lightColor=h.clone(e,this._lightColor)}},imageBasedLighting:{get:function(){return this._imageBasedLighting},set:function(e){e!==this._imageBasedLighting&&(this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=e,this._shouldDestroyImageBasedLighting=!1,this.resetDrawCommands())}},backFaceCulling:{get:function(){return this._backFaceCulling},set:function(e){e!==this._backFaceCulling&&(this._backFaceCullingDirty=!0),this._backFaceCulling=e}},scale:{get:function(){return this._scale},set:function(e){e!==this._scale&&(this._updateModelMatrix=!0),this._scale=e}},computedScale:{get:function(){return this._computedScale}},renderMode:{get:function(){return this._renderMode},set:function(e){this._renderMode=e}},minimumPixelSize:{get:function(){return this._minimumPixelSize},set:function(e){e!==this._minimumPixelSize&&(this._updateModelMatrix=!0),this._minimumPixelSize=e}},maximumScale:{get:function(){return this._maximumScale},set:function(e){e!==this._maximumScale&&(this._updateModelMatrix=!0),this._maximumScale=e}},shadows:{get:function(){return this._shadows},set:function(e){e!==this._shadows&&(this._shadowsDirty=!0),this._shadows=e}},credit:{get:function(){return this._credit}},showCreditsOnScreen:{get:function(){return this._showCreditsOnScreen},set:function(e){this._showCreditsOnScreen!==e&&(this._showCreditsOnScreenDirty=!0),this._showCreditsOnScreen=e}},splitDirection:{get:function(){return this._splitDirection},set:function(e){this._splitDirection!==e&&this.resetDrawCommands(),this._splitDirection=e}},rollerShutterRegion:{get:function(){return this._rollerShutterRegion},set:function(e){this._rollerShutterRegion=e}},rollerShutterSpyglassRegion:{get:function(){return this._rollerShutterSpyglassRegion},set:function(e){this._rollerShutterSpyglassRegion=e}},rollerShutterPolygonRegion:{get:function(){return this._rollerShutterPolygonRegion},set:function(e){this._rollerShutterPolygonRegion=e}},swipeInverse:{get:function(){return this._swipeInverse},set:function(e){this._swipeInverse=e}},swiper:{get:function(){return this._swiper},set:function(e){this._swiper=e}},classificationType:{get:function(){return this._classificationType}},pickIds:{get:function(){return this._pickIds}},styleCommandsNeeded:{get:function(){return this._styleCommandsNeeded}}});Yi.prototype.getNode=function(e){return this._nodesByName[e]};Yi.prototype.setArticulationStage=function(e,t){this._sceneGraph.setArticulationStage(e,t)};Yi.prototype.applyArticulations=function(){this._sceneGraph.applyArticulations()};Yi.prototype.getExtension=function(e){return this._loader.components.extensions[e]};Yi.prototype.makeStyleDirty=function(){this._styleDirty=!0};Yi.prototype.resetDrawCommands=function(){this._drawCommandsBuilt=!1};var wot=new P,Wot=new $,Pot=new P;Yi.prototype.update=function(e){let t=!1;try{t=vot(this,e)}catch(n){if(!this._loader.incrementallyLoadTextures&&n.name==="TextureError")G6(this,n);else{let i=fn.getError("model",this._resource,n);G6(this,i)}}if(Not(this,e),Fot(this,e),!this._resourcesLoaded&&t){this._resourcesLoaded=!0;let n=this._loader.components;if(!d(n)){if(this._loader.isUnloaded())return;let r=fn.getError("model",this._resource,new le("Failed to load model."));G6(r),this._rejectLoad=this._rejectLoad&&this._rejectLoad(r)}let i=n.structuralMetadata;d(i)&&i.propertyTableCount>0&&Xot(this,i);let o=new Uv({model:this,modelComponents:n});this._sceneGraph=o,this._gltfCredits=o.components.asset.credits}if(!(!this._resourcesLoaded||e.mode===ae.MORPHING)){if(Aot(this),Dot(this),Uot(this,e),kot(this),zot(this,e),Yot(this,e),Bot(this,e),Oot(this,e),Kot(this,e),Hot(this,e),Jot(this,e),qot(this,e),$ot(this,e),ert(this,e),nrt(this,e),trt(this,e),irt(this,e),ort(this,e),this._defaultTexture=e.context.defaultTexture,rrt(this,e),srt(this,e),art(this),crt(this,e),mrt(this,e),jot(this,e),!this._ready){e.afterRender.push(()=>{this._ready=!0,this._readyEvent.raiseEvent(this)});return}this._loader.incrementallyLoadTextures&&!this._texturesLoaded&&this._loader.texturesLoaded&&(this.resetDrawCommands(),this._texturesLoaded=!0,this._texturesReadyEvent.raiseEvent(this)),drt(this),hrt(this,e),prt(this),Qot(this,e),frt(this,e)}};function vot(e,t){return!e._resourcesLoaded||e._loader.incrementallyLoadTextures&&!e._texturesLoaded?(t.afterRender.push(()=>!0),e._loader.process(t)):!0}function Not(e,t){d(e._customShader)&&e._customShader.update(t)}function Fot(e,t){e._imageBasedLighting.update(t),e._imageBasedLighting.shouldRegenerateShaders&&e.resetDrawCommands()}function Aot(e){if(!e._featureTableIdDirty)return;e._featureTableIdDirty=!1;let t=e._sceneGraph.components,n=t.structuralMetadata;d(n)&&n.propertyTableCount>0&&(e.featureTableId=Mot(t,e),e._styleDirty=!0,e.resetDrawCommands())}function Dot(e){e._styleDirty&&(e.applyStyle(e._style),e._styleDirty=!1)}function Uot(e,t){let n=e._featureTables,i=n.length,o=!1;for(let r=0;r<i;r++)e._content&&e._content.tileset&&e.isFlatten&&n[r].applyFlatten(e._content.tileset._flattenOIds,e._content.tileset.version,t),n[r].update(t),n[r].styleCommandsNeededDirty&&(o=!0);o&&Sxe(e)}function Sxe(e){let t=e.featureTables[e.featureTableId];e._styleCommandsNeeded=Xp.getStyleCommandsNeeded(t.featuresLength,t.batchTexture.translucentFeaturesLength)}function kot(e){let t=e.pointCloudShading;t.attenuation!==e._attenuation&&(e.resetDrawCommands(),e._attenuation=t.attenuation),t.backFaceCulling!==e._pointCloudBackFaceCulling&&(e.resetDrawCommands(),e._pointCloudBackFaceCulling=t.backFaceCulling)}function zot(e,t){e._silhouetteDirty&&(Lxe(t)&&e.resetDrawCommands(),e._silhouetteDirty=!1)}function Yot(e,t){let n=e.hasSkipLevelOfDetail(t);n!==e._skipLevelOfDetail&&(e.resetDrawCommands(),e._skipLevelOfDetail=n)}function Bot(e,t){let n=0;e.isClippingEnabled()&&(e._clippingPlanes.owner===e&&e._clippingPlanes.update(t),n=e._clippingPlanes.clippingPlanesState),n!==e._clippingPlanesState&&(e.resetDrawCommands(),e._clippingPlanesState=n,e._clipFillUtil=void 0)}function Oot(e,t){let n=0;e.isClippingPolygonsEnabled()&&(e._clippingPolygons.owner===e&&(e._clippingPolygons.update(t),e._clippingPolygons.queueCommands(t)),n=e._clippingPolygons.clippingPolygonsState),n!==e._clippingPolygonsState&&(e.resetDrawCommands(),e._clippingPolygonsState=n)}function Kot(e,t){t.mode!==e._sceneMode&&(e._projectTo2D?e.resetDrawCommands():e._updateModelMatrix=!0,e._sceneMode=t.mode)}function Hot(e,t){let n=t.fog.enabled&&t.fog.renderable;n!==e._fogRenderable&&(e.resetDrawCommands(),e._fogRenderable=n)}function Jot(e,t){if(e.enableVerticalExaggeration){let n=t.verticalExaggeration!==1;e.hasVerticalExaggeration!==n&&(e.resetDrawCommands(),e._hasVerticalExaggeration=n)}else e.hasVerticalExaggeration&&(e.resetDrawCommands(),e._hasVerticalExaggeration=!1)}function Qot(e,t){e._clippingFillImage=e?.content?.tileset?.clippingFillImage,e._fillClip&&d(e._clipFillUtil)&&(e.isClippingEnabled()||e.isGeometryClipEnabled())&&e._clipFillUtil.update(t)}function jot(e,t){let n=e?.content?.tileset?._sectionRenders;if(d(n))for(let i=0;i<n.length;i++)n[i].updateModel(t,e)}function qot(e,t){let n=e?.content?.tileset;d(n)&&d(n._explosionTextureData)&&d(n._explosionIdTexture)&&d(n._explosionDirectionTexture)&&e.resetDrawCommands()}function $ot(e,t){let n=t.lightManager,i=!1;e._lightState.pointLightNum!==n.pointLights.length&&(i=!0,e._lightState.pointLightNum=n.pointLights.length),e._lightState.directionalLigthNum!==n.directionalLights.length&&(i=!0,e._lightState.directionalLigthNum=n.directionalLights.length),e._lightState.spotLightNum!==n.spotLights.length&&(i=!0,e._lightState.spotLightNum=n.spotLights.length),i&&e.resetDrawCommands()}function ert(e,t){let n=e?.content?.tileset;d(n)&&n._enableStretch&&n._stretchFactor!==1&&e.resetDrawCommands()}function trt(e,t){let n=e?.content?.tileset;d(n)&&n._deleteVerticalPlane&&(e._deleteVerticalPlane=n._deleteVerticalPlane,e.resetDrawCommands(),n._deleteVerticalPlaneChanged=!1)}function nrt(e,t){let n=e?.content?.tileset;d(n)&&n.swipeEnabled&&e.resetDrawCommands()}function irt(e,t){let n=e?.content?.tileset;d(n)&&n.isFlatten&&(e._flattenWithId=!!(n._flattenOIds&&n._flattenOIds.length>0),e._modelUpAxis=n._modelUpAxis,e.resetDrawCommands())}function ort(e,t){let n=e?.content?.tileset;if(n?.version==="2.0"){let o=e?.content?.tile;d(o.nodeColor)&&n._changeNodeColor?z.equals(e._color,o.nodeColor)||(e._color=o.nodeColor,e.resetDrawCommands()):d(e._color)&&!n._changeNodeColor&&!d(e._style)&&(e._color=void 0,e.resetDrawCommands())}}function rrt(e,t){e._drawCommandsBuilt||(e.destroyPipelineResources(),e._sceneGraph.buildDrawCommands(t),e._drawCommandsBuilt=!0)}function srt(e,t){P.equals(e.modelMatrix,e._modelMatrix)||(e._updateModelMatrix=!0,e._modelMatrix=P.clone(e.modelMatrix,e._modelMatrix))}var oT=new h,E6=new me;function art(e){if(!e._updateModelMatrix&&!e._heightDirty&&e._minimumPixelSize===0)return;d(e._removeUpdateHeightCallback)&&(e._removeUpdateHeightCallback(),e._removeUpdateHeightCallback=void 0);let t=e._scene;if(!d(t)||e.heightReference===rt.NONE){e._clampedModelMatrix=void 0;return}let n=g(t.ellipsoid,oe.default),i=e.modelMatrix;oT.x=i[12],oT.y=i[13],oT.z=i[14];let o=n.cartesianToCartographic(oT);d(e._clampedModelMatrix)||(e._clampedModelMatrix=P.clone(i,new P)),e._removeUpdateHeightCallback=t.updateHeight(o,_xe(e,n,o),e.heightReference);let r=t.getHeight(o,e.heightReference);if(d(r)){let s=_xe(e,n,o);me.clone(o,E6),E6.height=r,s(E6)}e._heightDirty=!1,e._updateModelMatrix=!0}function crt(e,t){if(!e._updateModelMatrix&&e._minimumPixelSize===0)return;let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;Cxe(e,n),lrt(e,n,t)}function Cxe(e,t){e._clampedScale=d(e._maximumScale)?Math.min(e._scale,e._maximumScale):e._scale,e._boundingSphere.center=h.multiplyByScalar(e._sceneGraph.boundingSphere.center,e._clampedScale,e._boundingSphere.center),e._boundingSphere.radius=e._initialRadius*e._clampedScale,e._boundingSphere=de.transform(e._boundingSphere,t,e._boundingSphere)}function lrt(e,t,n){let i=e.scale;if(e.minimumPixelSize!==0&&!e._projectTo2D){let o=n.context,r=Math.max(o.drawingBufferWidth,o.drawingBufferHeight);P.getTranslation(t,oT),e._sceneMode!==ae.SCENE3D&&yo.computeActualEllipsoidPosition(n,oT,oT);let s=e._boundingSphere.radius,a=brt(oT,s,n),c=1/a;Math.min(c*(2*s),r)<e.minimumPixelSize&&(i=e.minimumPixelSize*a/(2*e._initialRadius))}e._computedScale=d(e.maximumScale)?Math.min(e.maximumScale,i):i}function drt(e){if(!e._idDirty)return;e._idDirty=!1;let t=e._id,n=e._pickIds,i=n.length;for(let o=0;o<i;++o)n[o].object.id=t}var urt=new $(1,0,0,0,0,1,0,-1,0);function mrt(e,t){let n=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix,i=g(e.referenceMatrix,n),o=t.context,r=e._imageBasedLighting;if(r.useSphericalHarmonicCoefficients||r.useSpecularEnvironmentMaps){let s=Wot,a=wot;a=P.multiply(o.uniformState.view3D,i,a),s=P.getRotation(a,s),s=$.transpose(s,s),e._iblReferenceFrameMatrix=$.multiply(urt,s,e._iblReferenceFrameMatrix)}if(e.isClippingEnabled()){let s=Pot;s=P.multiply(o.uniformState.view3D,i,s),s=P.multiply(s,e._clippingPlanes.modelMatrix,s),e._clippingPlanesMatrix=P.inverseTranspose(s,e._clippingPlanesMatrix)}}function hrt(e,t){let n=e._sceneGraph;if(e._updateModelMatrix||e._minimumPixelSize!==0){let o=d(e._clampedModelMatrix)?e._clampedModelMatrix:e.modelMatrix;n.updateModelMatrix(o,t),e._updateModelMatrix=!1}e._backFaceCullingDirty&&(n.updateBackFaceCulling(e._backFaceCulling),e._backFaceCullingDirty=!1),e._shadowsDirty&&(n.updateShadows(e._shadows),e._shadowsDirty=!1),e._debugShowBoundingVolumeDirty&&(n.updateShowBoundingVolume(e._debugShowBoundingVolume),e._debugShowBoundingVolumeDirty=!1);let i=!1;d(e.classificationType)||(i=e._userAnimationDirty||e._activeAnimations.update(t)),n.update(t,i),e._userAnimationDirty=!1}function prt(e){if(!e._showCreditsOnScreenDirty)return;e._showCreditsOnScreenDirty=!1,e._credits.length=0;let t=e._showCreditsOnScreen;if(d(e._credit)){let s=Ot.clone(e._credit);s.showOnScreen=s.showOnScreen||t,e._credits.push(s)}let n=e._resourceCredits,i=n.length;for(let s=0;s<i;s++){let a=Ot.clone(n[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}let o=e._gltfCredits,r=o.length;for(let s=0;s<r;s++){let a=Ot.clone(o[s]);a.showOnScreen=a.showOnScreen||t,e._credits.push(a)}}function frt(e,t){let n=grt(e,t),i=e.isInvisible(),o=e.hasSilhouette(t),r=e._show&&e._computedScale!==0&&n&&(!i||o),s=t.passes,a=s.render||s.pick&&e.allowPicking,c=e.content?.tileset._sectionOnly;r&&!e._ignoreCommands&&a&&!c&&(xrt(e,t),e._sceneGraph.pushDrawCommands(t))}var I6=new de;function brt(e,t,n){return I6.center=e,I6.radius=t,n.camera.getPixelSize(I6,n.context.drawingBufferWidth,n.context.drawingBufferHeight)}var UY=new h;function _xe(e,t,n){return function(i){vV(e.heightReference)&&(i.height+=n.height),t.cartographicToCartesian(i,UY);let o=e._clampedModelMatrix;P.clone(e.modelMatrix,o),o[12]=UY.x,o[13]=UY.y,o[14]=UY.z,e._heightDirty=!0}}var yrt=new h;function grt(e,t){let n=e.distanceDisplayCondition;if(!d(n))return!0;let i=n.near*n.near,o=n.far*n.far,r;if(t.mode===ae.SCENE2D){let a=(t.camera.frustum.right-t.camera.frustum.left)*.5;r=a*a}else{let s=P.getTranslation(e.modelMatrix,yrt);yo.computeActualEllipsoidPosition(t,s,s),r=h.distanceSquared(s,t.camera.positionWC)}return r>=i&&r<=o}function xrt(e,t){let n=t.creditDisplay,i=e._credits,o=i.length;for(let r=0;r<o;r++)n.addCreditToNextFrame(i[r])}Yi.prototype.isTranslucent=function(){let e=this.color;return d(e)&&e.alpha>0&&e.alpha<1};Yi.prototype.isInvisible=function(){let e=this.color;return d(e)&&e.alpha===0};function Lxe(e){return e.context.stencilBuffer}Yi.prototype.hasSilhouette=function(e){return Lxe(e)&&this._silhouetteSize>0&&this._silhouetteColor.alpha>0&&!d(this._classificationType)};Yi.prototype.hasSkipLevelOfDetail=function(e){if(!xr.is3DTiles(this.type))return!1;let t=e.context.stencilBuffer,n=this._content.tileset;return t&&n.isSkippingLevelOfDetail};Yi.prototype.isClippingEnabled=function(){let e=this._clippingPlanes;return d(e)&&e.enabled&&e.length!==0};Yi.prototype.isGeometryClipEnabled=function(){let e=this._clippingGeometries;return d(e)};Yi.prototype.pick=function(e,t,n,i,o){return RZ(this,e,t,n,i,o)};Yi.prototype.isClippingPolygonsEnabled=function(){let e=this._clippingPolygons;return d(e)&&e.enabled&&e.length!==0};Yi.prototype.isDestroyed=function(){return!1};Yi.prototype.destroy=function(){let e=this._loader;d(e)&&e.destroy();let t=this._featureTables;if(d(t)){let r=t.length;for(let s=0;s<r;s++)t[s].destroy()}this.destroyPipelineResources(),this.destroyModelResources(),d(this._removeUpdateHeightCallback)&&(this._removeUpdateHeightCallback(),this._removeUpdateHeightCallback=void 0),d(this._terrainProviderChangedCallback)&&(this._terrainProviderChangedCallback(),this._terrainProviderChangedCallback=void 0);let n=this._clippingPlanes;d(n)&&!n.isDestroyed()&&n.owner===this&&n.destroy(),this._clippingPlanes=void 0;let i=this._clippingPolygons;d(i)&&!i.isDestroyed()&&i.owner===this&&i.destroy(),this._clippingPolygons=void 0,this._shouldDestroyImageBasedLighting&&!this._imageBasedLighting.isDestroyed()&&this._imageBasedLighting.destroy(),this._imageBasedLighting=void 0;let o=this._nodeCommands;for(let r=0;r<o.length;++r){let s=o[r],a=s.stencilCommand;d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy()),a=s.sectionCommand,d(a)&&d(a.shaderProgram)&&!a.shaderProgram.isDestroyed()&&(a.shaderProgram=a.shaderProgram.destroy())}fe(this)};Yi.prototype.destroyPipelineResources=function(){let e=this._pipelineResources;for(let t=0;t<e.length;t++)e[t].destroy();this._pipelineResources.length=0,this._pickIds.length=0};Yi.prototype.destroyModelResources=function(){let e=this._modelResources;for(let t=0;t<e.length;t++)e[t].destroy();this._modelResources.length=0};Yi.fromGltfAsync=async function(e){e=g(e,g.EMPTY_OBJECT);let t=g(e.url,e.gltf),n={releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},i=g(e.basePath,""),o=Xe.createIfNeeded(i);d(t.asset)?(n.gltfJson=t,n.baseResource=o,n.gltfResource=o):t instanceof Uint8Array?(n.typedArray=t,n.baseResource=o,n.gltfResource=o):n.gltfResource=Xe.createIfNeeded(t);let r=new zc(n),a=d(e.content)?xr.TILE_GLTF:xr.GLTF,c=n.gltfResource,l=p0(r,a,e);l.resource=c;try{await r.load()}catch(b){throw r.destroy(),fn.getError("model",c,b)}let u=e.gltfCallback;d(u)&&u(r.gltfJson);let m=new Yi(l),f=m._resource.credits;if(d(f)){let b=f.length;for(let p=0;p<b;p++)m._resourceCredits.push(Ot.clone(f[p]))}return m};Yi.fromM3DData=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,tile:e.tile,hasSectionGeometry:e.hasSectionGeometry},n=new iN(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DGltf=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new Qv(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new jv(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,fillClip:e.fillClip,hasSectionGeometry:e.hasSectionGeometry},n=new qv(t);try{await n.load();let i=p0(n,xr.TILE_I3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromM3DPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,attBatchTable:e.attBatchTable,tilesetVersion:e.tilesetVersion,tileset:e.tileset,tile:e.tile,resource:e.resource},n=new tN(t);try{await n.load();let i=p0(n,xr.TILE_PNTS,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromB3dm=async function(e){let t={b3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,loadForClassification:d(e.classificationType),generateUniqueId:e.generateUniqueId},n=new zW(t);try{await n.load();let i=p0(n,xr.TILE_B3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromPnts=async function(e){let t={arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,loadAttributesFor2D:e.projectTo2D,generateUniqueId:e.generateUniqueId},n=new Yv(t);try{await n.load();let i=p0(n,xr.TILE_PNTS,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromI3dm=async function(e){let t={i3dmResource:e.resource,arrayBuffer:e.arrayBuffer,byteOffset:e.byteOffset,releaseGltfJson:e.releaseGltfJson,asynchronous:e.asynchronous,incrementallyLoadTextures:e.incrementallyLoadTextures,upAxis:e.upAxis,forwardAxis:e.forwardAxis,loadAttributesFor2D:e.projectTo2D,enablePick:e.enablePick,loadIndicesForWireframe:e.enableDebugWireframe,loadPrimitiveOutline:e.enableShowOutline,generateUniqueId:e.generateUniqueId},n=new BW(t);try{await n.load();let i=p0(n,xr.TILE_I3DM,e);return new Yi(i)}catch(i){throw n.destroy(),i}};Yi.fromGeoJson=async function(e){let t={geoJson:e.geoJson},n=new YW(t),i=p0(n,xr.TILE_GEOJSON,e);return new Yi(i)};var Trt=new z;Yi.prototype.applyColorAndShow=function(e){let t=z.clone(this._color,Trt),n=d(e)&&d(e.color),i=d(e)&&d(e.show);this._color=n?e.color.evaluateColor(void 0,this._color):z.clone(z.WHITE,this._color),this._show=i?e.show.evaluate(void 0):!0,X6(t,this._color)&&this.resetDrawCommands()};Yi.prototype.applyStyle=function(e){let t=this.type===xr.TILE_PNTS,n=d(this.featureTableId)&&this.featureTables[this.featureTableId].featuresLength>0,i=d(this.structuralMetadata)?this.structuralMetadata.propertyAttributes:void 0,o=d(i)&&d(i[0]);if(t&&(!n||o)){this.resetDrawCommands();return}n?(this.featureTables[this.featureTableId].applyStyle(e),Sxe(this,e)):(this.applyColorAndShow(e),this._styleCommandsNeeded=void 0)};function p0(e,t,n){return{loader:e,type:t,resource:n.resource,show:n.show,modelMatrix:n.modelMatrix,scale:n.scale,enableVerticalExaggeration:n.enableVerticalExaggeration,minimumPixelSize:n.minimumPixelSize,maximumScale:n.maximumScale,id:n.id,allowPicking:n.allowPicking,clampAnimations:n.clampAnimations,shadows:n.shadows,debugShowBoundingVolume:n.debugShowBoundingVolume,enableDebugWireframe:n.enableDebugWireframe,debugWireframe:n.debugWireframe,cull:n.cull,opaquePass:n.opaquePass,customShader:n.customShader,content:n.content,heightReference:n.heightReference,scene:n.scene,distanceDisplayCondition:n.distanceDisplayCondition,color:n.color,colorBlendAmount:n.colorBlendAmount,colorBlendMode:n.colorBlendMode,silhouetteColor:n.silhouetteColor,silhouetteSize:n.silhouetteSize,enableShowOutline:n.enableShowOutline,showOutline:n.showOutline,outlineColor:n.outlineColor,clippingPlanes:n.clippingPlanes,clippingPolygons:n.clippingPolygons,lightColor:n.lightColor,imageBasedLighting:n.imageBasedLighting,backFaceCulling:n.backFaceCulling,credit:n.credit,showCreditsOnScreen:n.showCreditsOnScreen,splitDirection:n.splitDirection,projectTo2D:n.projectTo2D,enablePick:n.enablePick,featureIdLabel:n.featureIdLabel,instanceFeatureIdLabel:n.instanceFeatureIdLabel,pointCloudShading:n.pointCloudShading,classificationType:n.classificationType,pickObject:n.pickObject,fillClip:n.fillClip,clippingFillImage:n.clippingFillImage}}var Ka=Yi;function hr(e,t,n){this._tileset=e,this._tile=t,this._resource=n,this._model=void 0,this._metadata=void 0,this._group=void 0,this._ready=!1}Object.defineProperties(hr.prototype,{featuresLength:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;return d(t)&&d(t[n])?t[n].featuresLength:0}},pointsLength:{get:function(){return this._model.statistics.pointsLength}},trianglesLength:{get:function(){return this._model.statistics.trianglesLength}},geometryByteLength:{get:function(){return this._model.statistics.geometryByteLength}},texturesByteLength:{get:function(){return this._model.statistics.texturesByteLength}},batchTableByteLength:{get:function(){let e=this._model.statistics;return e.propertyTablesByteLength+e.batchTexturesByteLength}},innerContents:{get:function(){}},ready:{get:function(){return this._ready}},tileset:{get:function(){return this._tileset}},tile:{get:function(){return this._tile}},url:{get:function(){return this._resource.getUrlComponent(!0)}},batchTable:{get:function(){let e=this._model,t=e.featureTables,n=e.featureTableId;if(d(t)&&d(t[n]))return t[n]}},metadata:{get:function(){return this._metadata},set:function(e){this._metadata=e}},group:{get:function(){return this._group},set:function(e){this._group=e}}});hr.prototype.getExtension=function(e){return this._model.getExtension(e)};hr.prototype.getFeature=function(e){let t=this._model,n=t.featureTableId;return t.featureTables[n].getFeature(e)};hr.prototype.hasProperty=function(e,t){let n=this._model,i=n.featureTableId;return d(i)?n.featureTables[i].hasProperty(e,t):!1};hr.prototype.applyDebugSettings=function(e,t){t=e?t:z.WHITE,this.featuresLength===0?this._model.color=t:d(this.batchTable)&&this.batchTable.setAllColor(t)};hr.prototype.applyStyle=function(e){this._model.style=e};hr.prototype.update=function(e,t){let n=this._model,i=this._tile;if(n.colorBlendAmount=e.colorBlendAmount,n.colorBlendMode=e.colorBlendMode,n.modelMatrix=i.computedTransform,n.customShader=e.customShader,n.featureIdLabel=e.featureIdLabel,n.instanceFeatureIdLabel=e.instanceFeatureIdLabel,n.lightColor=e.lightColor,n.imageBasedLighting=e.imageBasedLighting,n.backFaceCulling=e.backFaceCulling,n.shadows=e.shadows,n.showCreditsOnScreen=e.showCreditsOnScreen,n.splitDirection=e.splitDirection,n.debugWireframe=e.debugWireframe,n.rollerShutterRegion=new re(0,0,0,0),n.rollerShutterSpyglassRegion=void 0,n.rollerShutterPolygonRegion=void 0,(n.swiper.type!==t.swiper.type||n.swiper.swipeEnabled!==e.swipeEnabled)&&(n._shouldRegenerateShaders=!0),n.swiper=Ue(t.swiper),n.swiper.swipeEnabled=e.swipeEnabled,e.swipeEnabled){let s=t.swiper.type;s===Kn.HORIZONTAL||s===Kn.VERTICAL||s===Kn.RECTANGLE?n.rollerShutterRegion=t.context.uniformState._swipeRegion:s===Kn.SPYGLASS?n.rollerShutterSpyglassRegion=t.context.uniformState._swipeRegion:s===Kn.POLYGON&&(n.rollerShutterPolygonRegion=t.context.uniformState._swipeRegion),n.swipeInverse=e.swipeInverse===0?t.swiper.inverse:e.swipeInverse}n.showOutline=e.showOutline,n.outlineColor=e.outlineColor,n.pointCloudShading=e.pointCloudShading,n.textureCoordScale=e.textureCoordScale,n.clippingGeometries=e._clippingGeometries;let o=e.clippingPlanes;n.referenceMatrix=e.clippingPlanesOriginMatrix,d(o)&&i.clippingPlanesDirty&&(n._clippingPlanes=o.enabled&&i._isClipped?o:void 0,o.enabled&&i._isClipped&&(n._clippingPlanesState=0)),d(o)&&d(n._clippingPlanes)&&n._clippingPlanes!==o&&(n._clippingPlanes=o,n._clippingPlanesState=0);let r=e.clippingPolygons;if(d(r)&&i.clippingPolygonsDirty&&(n._clippingPolygons=r.enabled&&i._isClippedByPolygon?r:void 0),d(r)&&d(n._clippingPolygons)&&n._clippingPolygons!==r&&(n._clippingPolygons=r,n._clippingPolygonsState=0),n.enableExplosion=e.enableExplosion,n.enableCuttingFilter=e.enableCuttingFilter,n.enableExplosion||n.enableCuttingFilter){n.explosionIdTexture=e._explosionIdTexture,n.explosionDirectionTexture=e._explosionDirectionTexture,d(e._explosionTextureData)&&Array.isArray(e._explosionTextureData)?n.explosionTextureDataLength=e._explosionTextureData.length:n.explosionTextureDataLength=0;let s=0;if(e._version==="2.0"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.OID;d(a)&&(s=a.length)}else if(e._version==="2.1"||e._version==="2.2"){let a=n.content.batchTable?._propertyTable._jsonMetadataTable._batchTableJson.tid;if(d(a)&&(s=a.tids.length,!d(n.explosionIdTableTexture))){let c=a.tids.map(u=>[u,0,0]),l=Float32Array.from(c.flat());n.explosionIdTableTexture=new it({context:t.context,source:{arrayBufferView:l,width:l.length/3,height:1},pixelFormat:Ye.RGB,pixelDatatype:ke.FLOAT})}}n.explosionIdCount=s}n.deleteVerticalPlane=e._deleteVerticalPlane,n.isFlatten=e._isFlatten,n.flattenHeight=e._flattenHeight,n.positionArray=e._positionArray,n.arrayLength=e._positionArray?.length,d(e._brightness)&&(n._brightness=e._brightness),d(e._exposure)&&(n._exposure=e._exposure),d(e._contrast)&&(n._contrast=e._contrast),d(e._hue)&&(n._hue=e._hue),d(e._saturation)&&(n._saturation=e._saturation),d(e._gamma)&&(n._gamma=e._gamma),n.update(t),!this._ready&&n.ready&&(n.activeAnimations.addAll({loop:Qd.REPEAT}),this._ready=!0)};hr.prototype.isDestroyed=function(){return!1};hr.prototype.destroy=function(){return this._model=this._model&&this._model.destroy(),fe(this)};hr.fromGltf=async function(e,t,n,i){let o=new hr(e,t,n),s=f0(e,t,o,{gltf:i,basePath:n}),a=e.vectorClassificationOnly?void 0:e.classificationType;s.classificationType=a,s.generateUniqueId=e._generateUniqueId;let c=await Ka.fromGltfAsync(s);return o._model=c,o};hr.fromM3DData=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.tilesetVersion=e._version,a.tile=t,a.fillClip=e._fillClip,a.hasSectionGeometry=e._hasSectionGeometry,a.clippingFillImage=e._clippingFillImage,a.clippingGeometries=e._clippingGeometries;let l=await Ka.fromM3DData(a);return r._model=l,r};hr.fromM3DGltf=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ka.fromM3DGltf(c);return s._model=u,s};hr.fromM3DB3dm=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n}),l=e.vectorClassificationOnly?void 0:e.classificationType;c.classificationType=l,c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let u=await Ka.fromM3DB3dm(c);return s._model=u,s};hr.fromM3DI3dm=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.fillClip=e._fillClip,c.hasSectionGeometry=e._hasSectionGeometry,c.clippingFillImage=e._clippingFillImage,c.clippingGeometries=e._clippingGeometries;let l=await Ka.fromM3DI3dm(c);return s._model=l,s};hr.fromM3DPnts=async function(e,t,n,i,o,r){let s=new hr(e,t,n),c=f0(e,t,s,{arrayBuffer:i,byteOffset:o,resource:n});c.attBatchTable=r,c.tilesetVersion=e._version,c.tileset=e,c.tile=t,c.resource=s._resource;let l=await Ka.fromM3DPnts(c);return s._model=l,s};hr.fromB3dm=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n}),c=e.vectorClassificationOnly?void 0:e.classificationType;a.classificationType=c,a.generateUniqueId=e._generateUniqueId;let l=await Ka.fromB3dm(a);return r._model=l,r};hr.fromI3dm=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ka.fromI3dm(a);return r._model=c,r};hr.fromPnts=async function(e,t,n,i,o){let r=new hr(e,t,n),a=f0(e,t,r,{arrayBuffer:i,byteOffset:o,resource:n});a.generateUniqueId=e._generateUniqueId;let c=await Ka.fromPnts(a);return r._model=c,r};hr.fromGeoJson=async function(e,t,n,i){let o=new hr(e,t,n),s=f0(e,t,o,{geoJson:i,resource:n}),a=await Ka.fromGeoJson(s);return o._model=a,o};hr.prototype.pick=function(e,t,n){if(!d(this._model)||!this._ready)return;let i=t.verticalExaggeration,o=t.verticalExaggerationRelativeHeight;return this._model.pick(e,t,i,o,oe.WGS84,n)};function f0(e,t,n,i){let o={cull:!1,releaseGltfJson:!0,opaquePass:Ze.CESIUM_3D_TILE,modelMatrix:t.computedTransform,upAxis:e._modelUpAxis,forwardAxis:e._modelForwardAxis,incrementallyLoadTextures:!1,customShader:e.customShader,content:n,colorBlendMode:e.colorBlendMode,colorBlendAmount:e.colorBlendAmount,lightColor:e.lightColor,imageBasedLighting:e.imageBasedLighting,featureIdLabel:e.featureIdLabel,instanceFeatureIdLabel:e.instanceFeatureIdLabel,pointCloudShading:e.pointCloudShading,clippingPlanes:e.clippingPlanes,backFaceCulling:e.backFaceCulling,shadows:e.shadows,showCreditsOnScreen:e.showCreditsOnScreen,splitDirection:e.splitDirection,enableDebugWireframe:e._enableDebugWireframe,debugWireframe:e.debugWireframe,projectTo2D:e._projectTo2D,enablePick:e._enablePick,enableShowOutline:e._enableShowOutline,showOutline:e.showOutline,outlineColor:e.outlineColor};return Tt(i,o)}var El=hr;var Vxe={M3DData:function(e,t,n,i,o){return El.fromM3DData(e,t,n,i,o)},M3DGltf:function(e,t,n,i,o,r){return El.fromM3DGltf(e,t,n,i,o,r)},M3DCmpt:function(e,t,n,i,o,r){return Tp.fromM3DTileType(e,t,n,i,o,Vxe,r)},M3DB3dm:function(e,t,n,i,o,r){return El.fromM3DB3dm(e,t,n,i,o,r)},M3DI3dm:function(e,t,n,i,o,r){return El.fromM3DI3dm(e,t,n,i,o,r)},M3DPnts:function(e,t,n,i,o,r){return El.fromM3DPnts(e,t,n,i,o,r)}},rT=Vxe;var ffi=S(C(),1);var cfi=S(C(),1),Zxe={JSON:`{
9621
9621
  `,M3D20:"PK",M3D21:"PK",M3D10_M3D:"m3d\0",M3D10_ZIPX:"zipx"};Zxe.isBinaryFormat=function(e){return!e.includes("{")};var Vy=Object.freeze(Zxe);function _rt(e){let t=new Uint8Array(e),n=Mc(t);if(Vy.isBinaryFormat(n))return{contentType:n,binaryPayload:t};let i=Srt(t);if(d(i))return{contentType:n,binaryPayload:t};throw new le("Invalid tile content.")}function Srt(e){let t;try{t=mo(e)}catch{throw new le("Invalid tile content.")}return t}var oN=_rt;var yfi=S(C(),1);function th(){this._length=0,this._obj={}}Object.defineProperties(th.prototype,{length:{get:function(){return this._length}}});th.prototype.isEmpty=function(){return this.length===0};th.prototype.containsKey=function(e){return e in this._obj};th.prototype.containsValue=function(e){for(let t in this._obj)if(this._obj[t]===e)return!0;return!1};th.prototype.put=function(e,t){this.containsKey(e)||this._length++,this._obj[e]=t};th.prototype.get=function(e){return this.containsKey(e)?this._obj[e]:null};th.prototype.remove=function(e){this.containsKey(e)&&delete this._obj[e]&&this._length--};th.prototype.values=function(){let e=[];for(let t in this._obj)Object.prototype.hasOwnProperty.call(this._obj,t)&&e.push(this._obj[t]);return e};th.prototype.keySet=function(){let e=[];for(let t in this._obj)Object.prototype.hasOwnProperty.call(this._obj,t)&&e.push(t);return e};th.prototype.size=function(){return this._length};th.prototype.clear=function(){this._length=0,this._obj={}};var nh=th;var E0i=S(C(),1);var T0i=S(C(),1);var Gfi=S(C(),1);var xfi=S(C(),1),rN=`in vec3 position3DHigh;
9622
9622
  in vec3 position3DLow;
9623
9623
  in float batchId;
@@ -19000,7 +19000,7 @@ void main()
19000
19000
  out_FragColor = vec4(mix(vec3(0.0), vec3(1.0), scale), 1.0);
19001
19001
  }
19002
19002
  `;var _No=S(C(),1);function Tf(e,t){e=g(e,{}),this._options=g(t,{}),this._url=g(e.url,void 0),this._depth=0,this._index=void 0,this._indexHashMap=new nh,this._resourse=Xe.createIfNeeded(this._url),this._m3dtreeChildren=[],this._m3dtreeParent=g(e.m3dtreeParent,void 0),this._queryResult=void 0,this._attMap=void 0,this._nodeName=void 0,this._init=!1}Object.defineProperties(Tf.prototype,{depth:{get:function(){return this._depth},set:function(e){this._depth=e}},index:{get:function(){return this._index},set:function(e){this._index=e}},indexHashMap:{get:function(){return this._indexHashMap},set:function(e){this._indexHashMap=e}},m3dtreeParent:{get:function(){return this._m3dtreeParent},set:function(e){this._m3dtreeParent=e}},m3dtreeChildren:{get:function(){return this._m3dtreeChildren},set:function(e){this._m3dtreeChildren=e}},attMap:{get:function(){return this._attMap},set:function(e){this._attMap=e}},nodeName:{get:function(){return this._nodeName},set:function(e){this._nodeName=e}}});function XIe(e,t,n){let i=[];if(i=t.children,d(i))for(let o=0;o<i.length;o++){let r=i[o];if(d(r._header.name)){let s=new Tf;if(d(r._content)&&d(r._content._attMap)&&(s.attMap=r._content._attMap),d(n)){if(r._depth<n){let c=r._header.name;s.indexHashMap.containsKey(c)||s.indexHashMap.put(c,r)}}else{let a=r._header.name,c=e.index+"-",l=a.replace(c,"");s.indexHashMap.containsKey(a)||s.indexHashMap.put(a,r),s.depth=r._depth,s.index=a,s.nodeName=l,s.m3dtreeParent=e,e.m3dtreeChildren.push(s),e=s}}XIe(e,r,n)}}Tf.prototype.createM3DTreeByTileset=function(e,t){if(!this._init){if(!d(e))return!1;let n=e.root,i=n._header,o="";return d(i)&&(d(i.dataName)?o=i.dataName:d(i.name)&&(o=i.name)),this.depth=n._depth,this.index=o,this.indexHashMap.containsKey(o)||this.indexHashMap.put(o,n),XIe(this,n,t),this._init=!0,!0}};var EH=!1,MIe;function wIe(e,t){let n=e.indexHashMap;if(n.containsKey(t)){let i=n.get(t);EH=!0,MIe=i}else if(!n.containsKey(t)){let i=e.m3dtreeChildren;if(d(i))for(let o=0;o<i.length;o++)if(EH){if(EH)break}else{let r=i[o];wIe(r,t)}}}Tf.prototype.getM3DByName=function(e){return wIe(this,e),EH=!1,MIe};Tf.prototype.createChildByParentNode=function(e){};Tf.prototype.createM3DTreeByRequest=function(e){$ie(this,e)};Tf.createM3DTree=function(e,t){let n=new Tf(e,t);if(d(n._options.createType)){let i=n._options.createType;i==="ModelLoaded"?n.createM3DTreeByTileset(e):(i==="ModelUrl"||i==="")&&d(n._options.url)&&n.createM3DTreeByRequest(n._options.url)}return n};function $ie(e,t,n,i){let o="";if(d(n)){n=n.replace("./","");let s=t.split("/");for(let a=0;a<s.length-1;a++)o+=s[a]+"/";o+=n}else o=t;new Xe({url:o}).fetchJson().then(function(s){let a;if(d(s.dataName)?a=s.dataName:d(s.name)&&(a=s.name),e.index=a,d(i)){let l=i.index+"-",u=e.index.replace(l,"");e.nodeName=u,e.depth=i.depth+1}else e.nodeName=a;let c="";if(d(s.rootNode)){let l=new Tf;c=s.rootNode.uri,d(i)?l._m3dtreeParent=i:l._m3dtreeParent=e,e._m3dtreeChildren.push(l),$ie(l,o,c,e)}else if(d(s.childrenNode))for(let l=0;l<s.childrenNode.length;l++){let u=new Tf,m=s.childrenNode[l];d(i)&&(e._m3dtreeParent=i),e._m3dtreeChildren.push(u),c=m.uri,$ie(u,o,c,e)}else!d(s.rootNode)&&!d(s.childrenNode)&&d(i)&&(e._m3dtreeParent=i)})}var eoe=Tf;var INo=S(C(),1);function IH(e){this._viewer=e,this._scene=this._viewer.scene,this._intervalId=void 0,this._preRenderHandler=void 0}Object.defineProperties(IH.prototype,{models:{get:function(){return this._models},set:function(e){this._models=e}}});IH.prototype.resetExplosionByField=function(e){if(!Array.isArray(e))throw new le("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let t=0;t<e.length;t++)e[t].enableExplosion=!1};function toe(e,t){if(!Array.isArray(e))throw new le("tilesets\u5FC5\u987B\u662F\u4E00\u4E2A\u6570\u7EC4");for(let n=0;n<e.length;n++){let i=e[n],o;i._version==="2.1"||i._version==="2.2"?o="tid":i._version==="2.0"&&(o="OID"),i.enableExplosion=!0;let r=[],s=g(t.valueGroups,[]),a=g(t.moveDirection,new h(0,0,0)),c=g(t.field,Number.NaN),l=g(t.type,"unique");for(let u=0;u<s.length;u++){let m=s[u];if(m.moveDirection=a,l==="unique")if(c===o)r=AD(m.value,m.value,m,r);else{let f=noe(m.value,m.value,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}else if(l==="range")if(c===o)r=AD(m.start,m.end,m,r);else{let f=noe(m.start,m.end,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}else if(l==="contain"){let f=noe(m.value,m.value,i,c,l);for(let b=0;b<f.length;b++)r=AD(f[b],f[b],m,r)}}i.explosionTextureData=r}}function UNt(e,t,n){if(t<0||t>n)return;let i=e.x*t/n,o=e.y*t/n,r=e.z*t/n;return new h(i,o,r)}function kNt(e,t,n){if(!(t<0||t>n))return e/n*t}IH.prototype.explosionByField=function(e,t){if(t=g(t,g.EMPTY_OBJECT),t.duration>0){let n=0,i=t.valueGroups,o=t.duration;d(this._preRenderHandler)&&this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderTime=new Date().getTime(),this._preRenderHandler=()=>{if(n<=o){let r=[];if(d(t.moveDirection)){for(let a=0;a<i.length;a++)r.push({value:i[a].value,distance:kNt(i[a].distance,n,o)});toe(e,{valueGroups:r,moveDirection:t.moveDirection,type:t.type,field:t.field})}else{for(let a=0;a<i.length;a++)r.push({value:i[a].value,direction:UNt(i[a].direction,n,o)});toe(e,{valueGroups:r,type:t.type,field:t.field})}let s=new Date().getTime();n+=s-this._preRenderTime,this._preRenderTime=s}else{this._scene.preRender.removeEventListener(this._preRenderHandler),this._preRenderHandler=void 0;return}},this._scene.preRender.addEventListener(this._preRenderHandler)}else toe(e,t)};function AD(e,t,n,i){if(i.push(e,t),d(n.distance)){let o=n.moveDirection.x*n.distance,r=n.moveDirection.y*n.distance,s=n.moveDirection.z*n.distance;i.push(o,r,s)}else if(d(n.direction)){let o=n.direction,r=o.x,s=o.y,a=o.z;i.push(r,s,a)}return i}function noe(e,t,n,i,o){let s=[n.root],a=[],c=[],l;for(n._version==="2.1"||n._version==="2.2"?l="tid":n._version==="2.0"&&(l="OID");s.length>0;){let u=s.pop();if(u.children.length>0)for(let m=0;m<u.children.length;m++)s.push(u.children[m]);if(!(u.content instanceof Au||u.content instanceof wx)){u.content instanceof Tp?a=u.content._contents:a=[u.content];for(let m=0;m<a.length;m++){let f=a[m]?.batchTable?._features;if(d(f))for(let b=0;b<f.length;b++){let p=f[b].getProperty(i),x=f[b].getProperty(l);if(o==="unique")p===e&&c.indexOf(x)===-1&&c.push(x);else if(o==="range")p>=e&&p<=t&&c.indexOf(x)===-1&&c.push(x);else if(o==="contain"){if(typeof p!="string"){console.warn(`\u5F53\u524D\u83B7\u53D6\u5230\u7684\u5C5E\u6027\u503C\u7C7B\u578B\u4E3A${typeof p}, \u5305\u542B\u5173\u7CFB\u4EC5\u652F\u6301\u5B57\u7B26\u4E32\u7C7B\u578B\u503C\u7684\u6BD4\u8F83`);continue}p.includes(e)&&c.indexOf(x)===-1&&c.push(x)}}}}}return c}var ioe=IH;var MNo=S(C(),1),zNt={SIGX:"SIGX",SIGY:"SIGY",SIGZ:"SIGZ",VARX:"VARX",VARY:"VARY",VARZ:"VARZ",SIGR:"VARZ"},ooe=Object.freeze(zNt);var PNo=S(C(),1);function YNt(e){async function t({data:i}){let o=[],r={id:i.id,result:void 0,error:void 0};self.CESIUM_BASE_URL=i.baseUrl;try{let s=await e(i.parameters,o);r.result=s}catch(s){s instanceof Error?r.error={name:s.name,message:s.message,stack:s.stack}:r.error=s}i.canTransferArrayBuffer||(o.length=0);try{postMessage(r,o)}catch(s){r.result=void 0,r.error=`postMessage failed with error: ${Nf(s)}
19003
- with responseMessage: ${JSON.stringify(r)}`,postMessage(r)}}function n(i){postMessage({id:i.data?.id,error:`postMessage failed with error: ${JSON.stringify(i)}`})}return self.onmessage=t,self.onmessageerror=n,self}var roe=YNt;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.8";var jrr=S(C(),1);var Zer=S(C(),1);var Ser=S(C(),1);var her=S(C(),1),DD;typeof ko<"u"&&(DD=ko);(function(){/*!
19003
+ with responseMessage: ${JSON.stringify(r)}`,postMessage(r)}}function n(i){postMessage({id:i.data?.id,error:`postMessage failed with error: ${JSON.stringify(i)}`})}return self.onmessage=t,self.onmessageerror=n,self}var roe=YNt;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.9";var jrr=S(C(),1);var Zer=S(C(),1);var Ser=S(C(),1);var her=S(C(),1),DD;typeof ko<"u"&&(DD=ko);(function(){/*!
19004
19004
  * Knockout JavaScript library v3.5.1
19005
19005
  * (c) The Knockout.js team - http://knockoutjs.com/
19006
19006
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
@@ -19014,15 +19014,8 @@ Message: `+ft.message,ft}})}return Pe=et===e,{shouldBindDescendants:Pe,bindingCo
19014
19014
  * Knockout ES5 plugin - https://github.com/SteveSanderson/knockout-es5
19015
19015
  * Copyright (c) Steve Sanderson
19016
19016
  * MIT license
19017
- */var soe="__knockoutObservables",aoe="__knockoutSubscribable";function WIe(e,t){if(!e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,i=PIe(e,!0);return t=t||Object.getOwnPropertyNames(e),t.forEach(function(o){if(!(o===soe||o===aoe)&&!(o in i)){var r=e[o],s=r instanceof Array,a=n.isObservable(r)?r:s?n.observableArray(r):n.observable(r);Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:a,set:n.isWriteableObservable(a)?a:void 0}),i[o]=a,s&&KNt(n,a)}}),e}function PIe(e,t){var n=e[soe];return!n&&t&&(n={},Object.defineProperty(e,soe,{value:n})),n}function ONt(e,t,n){var i=this,o={owner:e,deferEvaluation:!0};if(typeof n=="function")o.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if(typeof n.get!="function")throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');o.read=n.get,o.write=n.set}return e[t]=i.computed(o),WIe.call(i,e,[t]),e}function KNt(e,t){var n=null;e.computed(function(){n&&(n.dispose(),n=null);var i=t();i instanceof Array&&(n=HNt(e,t,i))})}function HNt(e,t,n){var i=JNt(e,n);return i.subscribe(t)}function JNt(e,t){var n=t[aoe];if(!n){n=new e.subscribable,Object.defineProperty(t,aoe,{value:n});var i={};QNt(t,n,i),jNt(e,t,n,i)}return n}function QNt(e,t,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(i){var o=e[i];e[i]=function(){var r=o.apply(this,arguments);return n.pause!==!0&&t.notifySubscribers(this),r}})}function jNt(e,t,n,i){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(o){Object.defineProperty(t,o,{enumerable:!1,value:function(){var r;i.pause=!0;try{r=e.observableArray.fn[o].apply(e.observableArray(t),arguments)}finally{i.pause=!1}return n.notifySubscribers(t),r}})})}function vIe(e,t){if(!e)return null;var n=PIe(e,!1);return n&&n[t]||null}function qNt(e,t){var n=vIe(e,t);n&&n.valueHasMutated()}function $Nt(e){e.track=WIe,e.getObservable=vIe,e.valueHasMutated=qNt,e.defineProperty=ONt}var UD={attachToKo:$Nt};var yer=S(C(),1),NIe="http://www.w3.org/2000/svg",FIe="cesium-svgPath-svg",e9t={register:function(e){e.bindingHandlers.cesiumSvgPath={init:function(t,n){let i=document.createElementNS(NIe,"svg:svg");i.setAttribute("class",FIe);let o=document.createElementNS(NIe,"path");return i.appendChild(o),e.virtualElements.setDomNodeChildren(t,[i]),e.computed({read:function(){let r=e.unwrap(n());o.setAttribute("d",e.unwrap(r.path));let s=e.unwrap(r.width),a=e.unwrap(r.height);i.setAttribute("width",s),i.setAttribute("height",a),i.setAttribute("viewBox",`0 0 ${s} ${a}`),r.css&&i.setAttribute("class",`${FIe} ${e.unwrap(r.css)}`)},disposeWhenNodeIsRemoved:t}),{controlsDescendantBindings:!0}}},e.virtualElements.allowedBindings.cesiumSvgPath=!0}},kD=e9t;UD.attachToKo(dL);kD.register(dL);var Re=dL;function zD(e){d(e)||(e=new op),this._clock=e,this._eventHelper=new Ws,this._eventHelper.add(e.onTick,this.synchronize,this),this.systemTime=Re.observable(ee.now()),this.systemTime.equalityComparer=ee.equals,this.startTime=Re.observable(e.startTime),this.startTime.equalityComparer=ee.equals,this.startTime.subscribe(function(t){e.startTime=t,this.synchronize()},this),this.stopTime=Re.observable(e.stopTime),this.stopTime.equalityComparer=ee.equals,this.stopTime.subscribe(function(t){e.stopTime=t,this.synchronize()},this),this.currentTime=Re.observable(e.currentTime),this.currentTime.equalityComparer=ee.equals,this.currentTime.subscribe(function(t){e.currentTime=t,this.synchronize()},this),this.multiplier=Re.observable(e.multiplier),this.multiplier.subscribe(function(t){e.multiplier=t,this.synchronize()},this),this.clockStep=Re.observable(e.clockStep),this.clockStep.subscribe(function(t){e.clockStep=t,this.synchronize()},this),this.clockRange=Re.observable(e.clockRange),this.clockRange.subscribe(function(t){e.clockRange=t,this.synchronize()},this),this.canAnimate=Re.observable(e.canAnimate),this.canAnimate.subscribe(function(t){e.canAnimate=t,this.synchronize()},this),this.shouldAnimate=Re.observable(e.shouldAnimate),this.shouldAnimate.subscribe(function(t){e.shouldAnimate=t,this.synchronize()},this),Re.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(zD.prototype,{clock:{get:function(){return this._clock}}});zD.prototype.synchronize=function(){let e=this._clock;this.systemTime=ee.now(),this.startTime=e.startTime,this.stopTime=e.stopTime,this.currentTime=e.currentTime,this.multiplier=e.multiplier,this.clockStep=e.clockStep,this.clockRange=e.clockRange,this.canAnimate=e.canAnimate,this.shouldAnimate=e.shouldAnimate};zD.prototype.isDestroyed=function(){return!1};zD.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var YD=zD;var Eer=S(C(),1);function t9t(){this.canExecute=void 0,this.beforeExecute=void 0,this.afterExecute=void 0,be.throwInstantiationError()}var coe=t9t;var Per=S(C(),1);function n9t(e,t){t=g(t,!0);let n=new Se,i=new Se;function o(){let r={args:arguments,cancel:!1},s;return n.raiseEvent(r),r.cancel||(s=e.apply(null,arguments),i.raiseEvent(s)),s}return o.canExecute=t,Re.track(o,["canExecute"]),Object.defineProperties(o,{beforeExecute:{value:n},afterExecute:{value:i}}),o}var ti=n9t;var Aer=S(C(),1);var BD={};BD.createCheckbox=function(e,t,n){let i=document.createElement("div"),o=document.createElement("label"),r=document.createElement("input");r.type="checkbox";let s=`checked: ${t}`;return d(n)&&(s+=`, enable: ${n}`),r.setAttribute("data-bind",s),o.appendChild(r),o.appendChild(document.createTextNode(e)),i.appendChild(o),i};BD.createSection=function(e,t,n,i){let o=document.createElement("div");o.className="cesium-cesiumInspector-section",o.setAttribute("data-bind",`css: { "cesium-cesiumInspector-section-collapsed": !${n} }`),e.appendChild(o);let r=document.createElement("h3");r.className="cesium-cesiumInspector-sectionHeader",r.appendChild(document.createTextNode(t)),r.setAttribute("data-bind",`click: ${i}`),o.appendChild(r);let s=document.createElement("div");return s.className="cesium-cesiumInspector-sectionContent",o.appendChild(s),s};BD.createRangeInput=function(e,t,n,i,o,r){r=g(r,t);let s=document.createElement("input");s.setAttribute("data-bind",`value: ${r}`),s.type="number";let a=document.createElement("input");a.type="range",a.min=n,a.max=i,a.step=g(o,"any"),a.setAttribute("data-bind",`valueUpdate: "input", value: ${t}`);let c=document.createElement("div");c.appendChild(a);let l=document.createElement("div");return l.className="cesium-cesiumInspector-slider",l.appendChild(document.createTextNode(e)),l.appendChild(s),l.appendChild(c),l};BD.createButton=function(e,t,n){let i=document.createElement("button");i.type="button",i.textContent=e,i.className="cesium-cesiumInspector-pickButton";let o=`click: ${t}`;return d(n)&&(o+=`, css: {"cesium-cesiumInspector-pickButtonHighlight" : ${n}}`),i.setAttribute("data-bind",o),i};var jc=BD;var ker=S(C(),1);function i9t(e,t,n,i,o){return n.call(i,e[t]),Re.getObservable(e,t).subscribe(n,i,o)}var Zc=i9t;var Her=S(C(),1);function AIe(e,t){this._command=e,t=g(t,g.EMPTY_OBJECT),this.toggled=g(t.toggled,!1),this.tooltip=g(t.tooltip,""),Re.track(this,["toggled","tooltip"])}Object.defineProperties(AIe.prototype,{command:{get:function(){return this._command}}});var s_=AIe;var $er=S(C(),1);var uL="http://www.w3.org/2000/svg",kIe="http://www.w3.org/1999/xlink",XH,OD=z.fromCssColorString("rgba(247,250,255,0.384)"),MH=z.fromCssColorString("rgba(143,191,255,0.216)"),loe=z.fromCssColorString("rgba(153,197,255,0.098)"),wH=z.fromCssColorString("rgba(255,255,255,0.086)"),o9t=z.fromCssColorString("rgba(255,255,255,0.267)"),r9t=z.fromCssColorString("rgba(255,255,255,0)"),DIe=z.fromCssColorString("rgba(66,67,68,0.3)"),UIe=z.fromCssColorString("rgba(0,0,0,0.5)");function a_(e){return z.fromCssColorString(window.getComputedStyle(e).getPropertyValue("color"))}var KD={animation_pathReset:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z"},animation_pathPause:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M13,5.5,7.5,5.5,7.5,25.5,13,25.5zM24.5,5.5,19,5.5,19,25.5,24.5,25.5z"},animation_pathPlay:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathPlayReverse:{tagName:"path",transform:"translate(16,16) scale(-0.85,0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathLoop:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z"},animation_pathClock:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-15.5)",d:"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z"},animation_pathWingButton:{tagName:"path",d:"m 4.5,0.5 c -2.216,0 -4,1.784 -4,4 l 0,24 c 0,2.216 1.784,4 4,4 l 13.71875,0 C 22.478584,27.272785 27.273681,22.511272 32.5,18.25 l 0,-13.75 c 0,-2.216 -1.784,-4 -4,-4 l -24,0 z"},animation_pathPointer:{tagName:"path",d:"M-15,-65,-15,-55,15,-55,15,-65,0,-95z"},animation_pathSwooshFX:{tagName:"path",d:"m 85,0 c 0,16.617 -4.813944,35.356 -13.131081,48.4508 h 6.099803 c 8.317138,-13.0948 13.13322,-28.5955 13.13322,-45.2124 0,-46.94483 -38.402714,-85.00262 -85.7743869,-85.00262 -1.0218522,0 -2.0373001,0.0241 -3.0506131,0.0589 45.958443,1.59437 82.723058,35.77285 82.723058,81.70532 z"}};function _f(e){let t=document.createElementNS(uL,e.tagName);for(let n in e)if(e.hasOwnProperty(n)&&n!=="tagName")if(n==="children"){let i=e.children.length;for(let o=0;o<i;++o)t.appendChild(_f(e.children[o]))}else n.indexOf("xlink:")===0?t.setAttributeNS(kIe,n.substring(6),e[n]):n==="textContent"?t.textContent=e[n]:t.setAttribute(n,e[n]);return t}function doe(e,t,n){let i=document.createElementNS(uL,"text");i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("class","cesium-animation-svgText");let o=document.createElementNS(uL,"tspan");return o.textContent=n,i.appendChild(o),i}function s9t(e,t,n){e.setAttribute("transform",`translate(100,100) rotate(${n})`),t.setAttribute("transform",`rotate(${n})`)}var WH=new z;function oa(e,t){let n=t.alpha,i=1-n;return WH.red=e.red*i+t.red*n,WH.green=e.green*i+t.green*n,WH.blue=e.blue*i+t.blue*n,WH.toCssColorString()}function uoe(e,t,n){let i=KD[n],o={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{tagName:"rect",class:"cesium-animation-buttonGlow",width:32,height:32,rx:2,ry:2},{tagName:"rect",class:"cesium-animation-buttonMain",width:32,height:32,rx:4,ry:4},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(o)}function a9t(e,t,n){let i=KD[n],o=KD.animation_pathWingButton,r={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{class:"cesium-animation-buttonGlow",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonMain",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(r)}function c9t(e,t){let n=e._viewModel,i=n.shuttleRingDragging;if(!(i&&XH!==e))if(t.type==="mousedown"||i&&t.type==="mousemove"||t.type==="touchstart"&&t.touches.length===1||i&&t.type==="touchmove"&&t.touches.length===1){let o=e._centerX,r=e._centerY,a=e._svgNode.getBoundingClientRect(),c,l;if(t.type==="touchstart"||t.type==="touchmove"?(c=t.touches[0].clientX,l=t.touches[0].clientY):(c=t.clientX,l=t.clientY),!i&&(c>a.right||c<a.left||l<a.top||l>a.bottom))return;let u=e._shuttleRingPointer.getBoundingClientRect(),m=c-o-a.left,f=l-r-a.top,b=Math.atan2(f,m)*180/Math.PI+90;b>180&&(b-=360);let p=n.shuttleRingAngle;i||c<u.right&&c>u.left&&l>u.top&&l<u.bottom?(XH=e,n.shuttleRingDragging=!0,n.shuttleRingAngle=b):b<p?n.slower():b>p&&n.faster(),t.preventDefault()}else e===XH&&(XH=void 0),n.shuttleRingDragging=!1}function Vg(e,t){this._viewModel=t,this.svgElement=e,this._enabled=void 0,this._toggled=void 0;let n=this;this._clickFunction=function(){let i=n._viewModel.command;i.canExecute&&i()},e.addEventListener("click",this._clickFunction,!0),this._subscriptions=[Zc(t,"toggled",this.setToggled,this),Zc(t,"tooltip",this.setTooltip,this),Zc(t.command,"canExecute",this.setEnabled,this)]}Vg.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let e=this._subscriptions;for(let t=0,n=e.length;t<n;t++)e[t].dispose();fe(this)};Vg.prototype.isDestroyed=function(){return!1};Vg.prototype.setEnabled=function(e){if(this._enabled!==e){if(this._enabled=e,!e){this.svgElement.setAttribute("class","cesium-animation-buttonDisabled");return}if(this._toggled){this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled");return}this.svgElement.setAttribute("class","cesium-animation-rectButton")}};Vg.prototype.setToggled=function(e){this._toggled!==e&&(this._toggled=e,this._enabled&&(e?this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled"):this.svgElement.setAttribute("class","cesium-animation-rectButton")))};Vg.prototype.setTooltip=function(e){this.svgElement.getElementsByTagName("title")[0].textContent=e};function YG(e,t){e=li(e),this._viewModel=t,this._container=e,this._centerX=0,this._centerY=0,this._defsElement=void 0,this._svgNode=void 0,this._topG=void 0,this._lastHeight=void 0,this._lastWidth=void 0;let n=e.ownerDocument,i=document.createElement("style");i.textContent=".cesium-animation-rectButton .cesium-animation-buttonGlow { filter: url(#animation_blurred); }.cesium-animation-rectButton .cesium-animation-buttonMain { fill: url(#animation_buttonNormal); }.cesium-animation-buttonToggled .cesium-animation-buttonMain { fill: url(#animation_buttonToggled); }.cesium-animation-rectButton:hover .cesium-animation-buttonMain { fill: url(#animation_buttonHovered); }.cesium-animation-buttonDisabled .cesium-animation-buttonMain { fill: url(#animation_buttonDisabled); }.cesium-animation-shuttleRingG .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshGradient); }.cesium-animation-shuttleRingG:hover .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshHovered); }.cesium-animation-shuttleRingPointer { fill: url(#animation_shuttleRingPointerGradient); }.cesium-animation-shuttleRingPausePointer { fill: url(#animation_shuttleRingPointerPaused); }.cesium-animation-knobOuter { fill: url(#animation_knobOuter); }.cesium-animation-knobInner { fill: url(#animation_knobInner); }",n.head.insertBefore(i,n.head.childNodes[0]);let o=document.createElement("div");o.className="cesium-animation-theme",o.innerHTML='<div class="cesium-animation-themeNormal"></div><div class="cesium-animation-themeHover"></div><div class="cesium-animation-themeSelect"></div><div class="cesium-animation-themeDisabled"></div><div class="cesium-animation-themeKnob"></div><div class="cesium-animation-themePointer"></div><div class="cesium-animation-themeSwoosh"></div><div class="cesium-animation-themeSwooshHover"></div>',this._theme=o,this._themeNormal=o.childNodes[0],this._themeHover=o.childNodes[1],this._themeSelect=o.childNodes[2],this._themeDisabled=o.childNodes[3],this._themeKnob=o.childNodes[4],this._themePointer=o.childNodes[5],this._themeSwoosh=o.childNodes[6],this._themeSwooshHover=o.childNodes[7];let r=document.createElementNS(uL,"svg:svg");this._svgNode=r,r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",kIe);let s=document.createElementNS(uL,"g");this._topG=s,this._realtimeSVG=new Vg(a9t(3,4,"animation_pathClock"),t.playRealtimeViewModel),this._playReverseSVG=new Vg(uoe(44,99,"animation_pathPlayReverse"),t.playReverseViewModel),this._playForwardSVG=new Vg(uoe(124,99,"animation_pathPlay"),t.playForwardViewModel),this._pauseSVG=new Vg(uoe(84,99,"animation_pathPause"),t.pauseViewModel);let a=document.createElementNS(uL,"g");a.appendChild(this._realtimeSVG.svgElement),a.appendChild(this._playReverseSVG.svgElement),a.appendChild(this._playForwardSVG.svgElement),a.appendChild(this._pauseSVG.svgElement);let c=_f({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=c;let l=KD.animation_pathSwooshFX,u=KD.animation_pathPointer,m=_f({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:l.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:l.d},{tagName:l.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:l.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=m,this._shuttleRingPointer=_f({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:u.tagName,d:u.d});let f=_f({tagName:"g",transform:"translate(100,100)"});this._knobOuter=_f({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let b=61,p=_f({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:b});this._knobDate=doe(0,-24,""),this._knobTime=doe(0,-7,""),this._knobStatus=doe(0,-41,"");let x=_f({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:b}),T=document.createElementNS(uL,"g");T.setAttribute("class","cesium-animation-shuttleRingG"),e.appendChild(o),s.appendChild(T),s.appendChild(f),s.appendChild(a),T.appendChild(c),T.appendChild(m),T.appendChild(this._shuttleRingPointer),f.appendChild(this._knobOuter),f.appendChild(p),f.appendChild(this._knobDate),f.appendChild(this._knobTime),f.appendChild(this._knobStatus),f.appendChild(x),r.appendChild(s),e.appendChild(r);let _=this;function L(w){c9t(_,w)}this._mouseCallback=L,c.addEventListener("mousedown",L,!0),c.addEventListener("touchstart",L,!0),m.addEventListener("mousedown",L,!0),m.addEventListener("touchstart",L,!0),n.addEventListener("mousemove",L,!0),n.addEventListener("touchmove",L,!0),n.addEventListener("mouseup",L,!0),n.addEventListener("touchend",L,!0),n.addEventListener("touchcancel",L,!0),this._shuttleRingPointer.addEventListener("mousedown",L,!0),this._shuttleRingPointer.addEventListener("touchstart",L,!0),this._knobOuter.addEventListener("mousedown",L,!0),this._knobOuter.addEventListener("touchstart",L,!0);let V=this._knobTime.childNodes[0],Z=this._knobDate.childNodes[0],G=this._knobStatus.childNodes[0],I;this._subscriptions=[Zc(t.pauseViewModel,"toggled",function(w){I!==w&&(I=w,I?_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))}),Zc(t,"shuttleRingAngle",function(w){s9t(_._shuttleRingPointer,_._knobOuter,w)}),Zc(t,"dateLabel",function(w){Z.textContent!==w&&(Z.textContent=w)}),Zc(t,"timeLabel",function(w){V.textContent!==w&&(V.textContent=w)}),Zc(t,"multiplierLabel",function(w){G.textContent!==w&&(G.textContent=w)})],this.applyThemeChanges(),this.resize()}Object.defineProperties(YG.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});YG.prototype.isDestroyed=function(){return!1};YG.prototype.destroy=function(){d(this._observer)&&(this._observer.disconnect(),this._observer=void 0);let e=this._container.ownerDocument,t=this._mouseCallback;this._shuttleRingBackPanel.removeEventListener("mousedown",t,!0),this._shuttleRingBackPanel.removeEventListener("touchstart",t,!0),this._shuttleRingSwooshG.removeEventListener("mousedown",t,!0),this._shuttleRingSwooshG.removeEventListener("touchstart",t,!0),e.removeEventListener("mousemove",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("mouseup",t,!0),e.removeEventListener("touchend",t,!0),e.removeEventListener("touchcancel",t,!0),this._shuttleRingPointer.removeEventListener("mousedown",t,!0),this._shuttleRingPointer.removeEventListener("touchstart",t,!0),this._knobOuter.removeEventListener("mousedown",t,!0),this._knobOuter.removeEventListener("touchstart",t,!0),this._container.removeChild(this._svgNode),this._container.removeChild(this._theme),this._realtimeSVG.destroy(),this._playReverseSVG.destroy(),this._playForwardSVG.destroy(),this._pauseSVG.destroy();let n=this._subscriptions;for(let i=0,o=n.length;i<o;i++)n[i].dispose();return fe(this)};YG.prototype.resize=function(){let e=this._container.clientWidth,t=this._container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;let n=this._svgNode,i=200,o=132,r=e,s=t;e===0&&t===0?(r=i,s=o):e===0?(s=t,r=i*(t/o)):t===0&&(r=e,s=o*(e/i));let a=r/i,c=s/o;n.style.cssText=`width: ${r}px; height: ${s}px; position: absolute; bottom: 0; left: 0; overflow: hidden;`,n.setAttribute("width",r),n.setAttribute("height",s),n.setAttribute("viewBox",`0 0 ${r} ${s}`),this._topG.setAttribute("transform",`scale(${a},${c})`),this._centerX=Math.max(1,100*a),this._centerY=Math.max(1,100*c),this._lastHeight=e,this._lastWidth=t};YG.prototype.applyThemeChanges=function(){let e=this._container.ownerDocument;if(!e.body.contains(this._container)){if(d(this._observer))return;let u=this;u._observer=new MutationObserver(function(){e.body.contains(u._container)&&(u._observer.disconnect(),u._observer=void 0,u.applyThemeChanges())}),u._observer.observe(e,{childList:!0,subtree:!0});return}let t=a_(this._themeNormal),n=a_(this._themeHover),i=a_(this._themeSelect),o=a_(this._themeDisabled),r=a_(this._themeKnob),s=a_(this._themePointer),a=a_(this._themeSwoosh),c=a_(this._themeSwooshHover),l=_f({tagName:"defs",children:[{id:"animation_buttonNormal",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(t,OD)},{tagName:"stop",offset:"12%","stop-color":oa(t,MH)},{tagName:"stop",offset:"46%","stop-color":oa(t,loe)},{tagName:"stop",offset:"81%","stop-color":oa(t,wH)}]},{id:"animation_buttonHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(n,OD)},{tagName:"stop",offset:"12%","stop-color":oa(n,MH)},{tagName:"stop",offset:"46%","stop-color":oa(n,loe)},{tagName:"stop",offset:"81%","stop-color":oa(n,wH)}]},{id:"animation_buttonToggled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(i,OD)},{tagName:"stop",offset:"12%","stop-color":oa(i,MH)},{tagName:"stop",offset:"46%","stop-color":oa(i,loe)},{tagName:"stop",offset:"81%","stop-color":oa(i,wH)}]},{id:"animation_buttonDisabled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(o,o9t)},{tagName:"stop",offset:"75%","stop-color":oa(o,r9t)}]},{id:"animation_blurred",tagName:"filter",width:"200%",height:"200%",x:"-50%",y:"-50%",children:[{tagName:"feGaussianBlur",stdDeviation:4,in:"SourceGraphic"}]},{id:"animation_shuttleRingSwooshGradient",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":a.toCssColorString()}]},{id:"animation_shuttleRingSwooshHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":c.toCssColorString()}]},{id:"animation_shuttleRingPointerGradient",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"40%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"60%","stop-color":oa(s,UIe)},{tagName:"stop",offset:"100%","stop-color":oa(s,UIe)}]},{id:"animation_shuttleRingPointerPaused",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":"#CCC"},{tagName:"stop",offset:"40%","stop-color":"#CCC"},{tagName:"stop",offset:"60%","stop-color":"#555"},{tagName:"stop",offset:"100%","stop-color":"#555"}]},{id:"animation_knobOuter",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,OD)},{tagName:"stop",offset:"60%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"85%","stop-color":oa(r,MH)}]},{id:"animation_knobInner",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"60%","stop-color":oa(r,OD)},{tagName:"stop",offset:"85%","stop-color":oa(r,wH)}]}]});d(this._defsElement)?this._svgNode.replaceChild(l,this._defsElement):this._svgNode.appendChild(l),this._defsElement=l};var HD=YG;var atr=S(C(),1);var l9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c_=15,BG=105;function zIe(e,t){return e-t}function moe(e,t){let n=Xr(t,e,zIe);return n<0?~n:n}function d9t(e,t){if(Math.abs(e)<=c_)return e/c_;let n=c_,i=BG,o,r=0,s;return e>0?(o=Math.log(t[t.length-1]),s=(o-r)/(i-n),Math.exp(r+s*(e-n))):(o=Math.log(-t[0]),s=(o-r)/(i-n),-Math.exp(r+s*(Math.abs(e)-n)))}function u9t(e,t,n){if(n.clockStep===dr.SYSTEM_CLOCK)return c_;if(Math.abs(e)<=1)return e*c_;let i=t[t.length-1];e>i?e=i:e<-i&&(e=-i);let o=c_,r=BG,s,a=0,c;return e>0?(s=Math.log(i),c=(s-a)/(r-o),(Math.log(e)-a)/c+o):(s=Math.log(-t[0]),c=(s-a)/(r-o),-((Math.log(Math.abs(e))-a)/c+o))}function Fh(e){let t=this;this._clockViewModel=e,this._allShuttleRingTicks=[],this._dateFormatter=Fh.defaultDateFormatter,this._timeFormatter=Fh.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,Re.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(Fh.defaultTicks),this.timeLabel=void 0,Re.defineProperty(this,"timeLabel",function(){return t._timeFormatter(t._clockViewModel.currentTime,t)}),this.dateLabel=void 0,Re.defineProperty(this,"dateLabel",function(){return t._dateFormatter(t._clockViewModel.currentTime,t)}),this.multiplierLabel=void 0,Re.defineProperty(this,"multiplierLabel",function(){let s=t._clockViewModel;if(s.clockStep===dr.SYSTEM_CLOCK)return"Today";let a=s.multiplier;return a%1===0?`${a.toFixed(0)}x`:`${a.toFixed(3).replace(/0{0,3}$/,"")}x`}),this.shuttleRingAngle=void 0,Re.defineProperty(this,"shuttleRingAngle",{get:function(){return u9t(e.multiplier,t._allShuttleRingTicks,e)},set:function(s){s=Math.max(Math.min(s,BG),-BG);let a=t._allShuttleRingTicks,c=t._clockViewModel;if(c.clockStep=dr.SYSTEM_CLOCK_MULTIPLIER,Math.abs(s)===BG){c.multiplier=s>0?a[a.length-1]:a[0];return}let l=d9t(s,a);if(t.snapToTicks)l=a[moe(l,a)];else if(l!==0){let u=Math.abs(l);if(u>100){let m=u.toFixed(0).length-2,f=Math.pow(10,m);l=Math.round(l/f)*f|0}else u>c_?l=Math.round(l):u>1?l=+l.toFixed(1):u>0&&(l=+l.toFixed(2))}c.multiplier=l}}),this._canAnimate=void 0,Re.defineProperty(this,"_canAnimate",function(){let s=t._clockViewModel,a=s.clockRange;if(t.shuttleRingDragging||a===Xs.UNBOUNDED)return!0;let c=s.multiplier,l=s.currentTime,u=s.startTime,m=!1;if(a===Xs.LOOP_STOP)m=ee.greaterThan(l,u)||l.equals(u)&&c>0;else{let f=s.stopTime;m=ee.greaterThan(l,u)&&ee.lessThan(l,f)||l.equals(u)&&c>0||l.equals(f)&&c<0}return m||(s.shouldAnimate=!1),m}),this._isSystemTimeAvailable=void 0,Re.defineProperty(this,"_isSystemTimeAvailable",function(){let s=t._clockViewModel;if(s.clockRange===Xs.UNBOUNDED)return!0;let c=s.systemTime;return ee.greaterThanOrEquals(c,s.startTime)&&ee.lessThanOrEquals(c,s.stopTime)}),this._isAnimating=void 0,Re.defineProperty(this,"_isAnimating",function(){return t._clockViewModel.shouldAnimate&&(t._canAnimate||t.shuttleRingDragging)});let n=ti(function(){let s=t._clockViewModel;s.shouldAnimate?s.shouldAnimate=!1:t._canAnimate&&(s.shouldAnimate=!0)});this._pauseViewModel=new s_(n,{toggled:Re.computed(function(){return!t._isAnimating}),tooltip:"Pause"});let i=ti(function(){let s=t._clockViewModel,a=s.multiplier;a>0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playReverseViewModel=new s_(i,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier<0}),tooltip:"Play Reverse"});let o=ti(function(){let s=t._clockViewModel,a=s.multiplier;a<0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playForwardViewModel=new s_(o,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier>0&&e.clockStep!==dr.SYSTEM_CLOCK}),tooltip:"Play Forward"});let r=ti(function(){t._clockViewModel.clockStep=dr.SYSTEM_CLOCK},Re.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new s_(r,{toggled:Re.computed(function(){return e.clockStep===dr.SYSTEM_CLOCK}),tooltip:Re.computed(function(){return t._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"})}),this._slower=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)-1;l>=0&&(s.multiplier=a[l])}),this._faster=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)+1;l<a.length&&(s.multiplier=a[l])})}Fh.defaultDateFormatter=function(e,t){let n=ee.toGregorianDate(e);return`${l9t[n.month-1]} ${n.day} ${n.year}`};Fh.defaultTicks=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800];Fh.defaultTimeFormatter=function(e,t){let n=ee.toGregorianDate(e),i=Math.round(n.millisecond);return Math.abs(t._clockViewModel.multiplier)<1?`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`:`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")} UTC`};Fh.prototype.getShuttleRingTicks=function(){return this._sortedFilteredPositiveTicks.slice(0)};Fh.prototype.setShuttleRingTicks=function(e){let t,n,i,o={},r=this._sortedFilteredPositiveTicks;for(r.length=0,t=0,n=e.length;t<n;++t)i=e[t],o.hasOwnProperty(i)||(o[i]=!0,r.push(i));r.sort(zIe);let s=[];for(n=r.length,t=n-1;t>=0;--t)i=r[t],i!==0&&s.push(-i);Array.prototype.push.apply(s,r),this._allShuttleRingTicks=s};Object.defineProperties(Fh.prototype,{slower:{get:function(){return this._slower}},faster:{get:function(){return this._faster}},clockViewModel:{get:function(){return this._clockViewModel}},pauseViewModel:{get:function(){return this._pauseViewModel}},playReverseViewModel:{get:function(){return this._playReverseViewModel}},playForwardViewModel:{get:function(){return this._playForwardViewModel}},playRealtimeViewModel:{get:function(){return this._playRealtimeViewModel}},dateFormatter:{get:function(){return this._dateFormatter},set:function(e){this._dateFormatter=e}},timeFormatter:{get:function(){return this._timeFormatter},set:function(e){this._timeFormatter=e}}});Fh._maxShuttleRingAngle=BG;Fh._realtimeShuttleRingAngle=c_;var JD=Fh;var xtr=S(C(),1);var mtr=S(C(),1);function m9t(e){return function(t){let n=e._scene.pick(t.position);d(n)&&(n.primitive instanceof ta||n.primitive instanceof Il)&&(e.tileset=n.primitive),e.pickActive=!1}}function BIe(e,t){t?e._eventHandler.setInputAction(function(n){let i=e._scene.pick(n.endPosition);d(i)&&(i.primitive instanceof ta||i.primitive instanceof Il)&&(e.tileset=i.primitive)},jn.MOUSE_MOVE):(e._eventHandler.removeInputAction(jn.MOUSE_MOVE),e.picking=e.picking)}var h9t={maximumFractionDigits:3};function QD(e){let t=e/1048576;return t<1?t.toLocaleString(void 0,h9t):Math.round(t).toLocaleString()}function jD(e,t){if(!d(e))return"";let n=t?e._statisticsPerPass[ro.PICK]:e._statisticsPerPass[ro.RENDER],i='<ul class="cesium-cesiumInspector-statistics">';return i+=`<li><strong>Visited: </strong>${n.visited.toLocaleString()}</li><li><strong>Selected: </strong>${n.selected.toLocaleString()}</li><li><strong>Commands: </strong>${n.numberOfCommands.toLocaleString()}</li>`,i+="</ul>",t||(i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Requests: </strong>${n.numberOfPendingRequests.toLocaleString()}</li><li><strong>Attempted: </strong>${n.numberOfAttemptedRequests.toLocaleString()}</li><li><strong>Processing: </strong>${n.numberOfTilesProcessing.toLocaleString()}</li><li><strong>Content Ready: </strong>${n.numberOfTilesWithContentReady.toLocaleString()}</li><li><strong>Total: </strong>${n.numberOfTilesTotal.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Features Selected: </strong>${n.numberOfFeaturesSelected.toLocaleString()}</li><li><strong>Features Loaded: </strong>${n.numberOfFeaturesLoaded.toLocaleString()}</li><li><strong>Points Selected: </strong>${n.numberOfPointsSelected.toLocaleString()}</li><li><strong>Points Loaded: </strong>${n.numberOfPointsLoaded.toLocaleString()}</li><li><strong>Triangles Selected: </strong>${n.numberOfTrianglesSelected.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Tiles styled: </strong>${n.numberOfTilesStyled.toLocaleString()}</li><li><strong>Features styled: </strong>${n.numberOfFeaturesStyled.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Children Union Culled: </strong>${n.numberOfTilesCulledWithChildrenUnion.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Geometry Memory (MB): </strong>${QD(n.geometryByteLength)}</li><li><strong>Texture Memory (MB): </strong>${QD(n.texturesByteLength)}</li><li><strong>Batch Table Memory (MB): </strong>${QD(n.batchTableByteLength)}</li>`,i+="</ul>"),i}function OIe(){let e=ji.statistics;return`
19018
- <ul class="cesium-cesiumInspector-statistics">
19019
- <li><strong>Geometry Memory (MB): </strong>${QD(e.geometryByteLength)}</li>
19020
- <li><strong>Texture Memory (MB): </strong>${QD(e.texturesByteLength)}</li>
19021
- </ul>
19022
- `}var p9t=[{text:"Highlight",value:_l.HIGHLIGHT},{text:"Replace",value:_l.REPLACE},{text:"Mix",value:_l.MIX}],YIe=new z(1,1,0,.4),f9t=new z,PH=new z;function Rc(e,t){let n=this,i=e.canvas;this._eventHandler=new Mu(i),this._scene=e,this._performanceContainer=t,this._canvas=i,this._performanceDisplay=new yg({container:t}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,Re.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=Re.observable({}),this.properties=[],Re.defineProperty(this,"properties",function(){let D=[],O=n._properties();for(let K in O)O.hasOwnProperty(K)&&D.push(K);return D});let o=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return o()},set:function(D){o(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceError=D)}}),this.dynamicScreenSpaceError=!1;let r=Re.observable();Re.defineProperty(this,"colorBlendMode",{get:function(){return r()},set:function(D){r(D),d(n._tileset)&&(n._tileset.colorBlendMode=D,n._scene.requestRender())}}),this.colorBlendMode=_l.HIGHLIGHT;let s=Re.observable(),a=Re.observable();Re.defineProperty(this,"picking",{get:function(){return a()},set:function(D){a(D),D?n._eventHandler.setInputAction(function(O){let K=e.pick(O.endPosition);if(K instanceof Ba?(n.feature=K,n.tile=K.content.tile):d(K)&&d(K.content)?(n.feature=void 0,n.tile=K.content.tile):(n.feature=void 0,n.tile=void 0),!!d(n._tileset)){if(s&&d(K)&&d(K.content)){let j;e.pickPositionSupported&&(j=e.pickPosition(O.endPosition),d(j)&&(n._tileset.debugPickPosition=j)),n._tileset.debugPickedTile=K.content.tile}else n._tileset.debugPickedTile=void 0;n._scene.requestRender()}},jn.MOUSE_MOVE):(n.feature=void 0,n.tile=void 0,n._eventHandler.removeInputAction(jn.MOUSE_MOVE))}}),this.picking=!0;let c=Re.observable();Re.defineProperty(this,"colorize",{get:function(){return c()},set:function(D){c(D),d(n._tileset)&&(n._tileset.debugColorizeTiles=D,n._scene.requestRender())}}),this.colorize=!1;let l=Re.observable();Re.defineProperty(this,"wireframe",{get:function(){return l()},set:function(D){l(D),d(n._tileset)&&(n._tileset.debugWireframe=D,n._scene.requestRender())}}),this.wireframe=!1;let u=Re.observable();Re.defineProperty(this,"showBoundingVolumes",{get:function(){return u()},set:function(D){u(D),d(n._tileset)&&(n._tileset.debugShowBoundingVolume=D,n._scene.requestRender())}}),this.showBoundingVolumes=!1;let m=Re.observable();Re.defineProperty(this,"showContentBoundingVolumes",{get:function(){return m()},set:function(D){m(D),d(n._tileset)&&(n._tileset.debugShowContentBoundingVolume=D,n._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let f=Re.observable();Re.defineProperty(this,"showRequestVolumes",{get:function(){return f()},set:function(D){f(D),d(n._tileset)&&(n._tileset.debugShowViewerRequestVolume=D,n._scene.requestRender())}}),this.showRequestVolumes=!1;let b=Re.observable();Re.defineProperty(this,"freezeFrame",{get:function(){return b()},set:function(D){b(D),d(n._tileset)&&(n._tileset.debugFreezeFrame=D,n._scene.debugShowFrustumPlanes=D,n._scene.requestRender())}}),this.freezeFrame=!1,Re.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return s()},set:function(D){s(D),d(n._tileset)&&(n._tileset.debugPickedTileLabelOnly=D,n._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let p=Re.observable();Re.defineProperty(this,"showGeometricError",{get:function(){return p()},set:function(D){p(D),d(n._tileset)&&(n._tileset.debugShowGeometricError=D,n._scene.requestRender())}}),this.showGeometricError=!1;let x=Re.observable();Re.defineProperty(this,"showRenderingStatistics",{get:function(){return x()},set:function(D){x(D),d(n._tileset)&&(n._tileset.debugShowRenderingStatistics=D,n._scene.requestRender())}}),this.showRenderingStatistics=!1;let T=Re.observable();Re.defineProperty(this,"showMemoryUsage",{get:function(){return T()},set:function(D){T(D),d(n._tileset)&&(n._tileset.debugShowMemoryUsage=D,n._scene.requestRender())}}),this.showMemoryUsage=!1;let _=Re.observable();Re.defineProperty(this,"showUrl",{get:function(){return _()},set:function(D){_(D),d(n._tileset)&&(n._tileset.debugShowUrl=D,n._scene.requestRender())}}),this.showUrl=!1;let L=Re.observable();Re.defineProperty(this,"maximumScreenSpaceError",{get:function(){return L()},set:function(D){D=Number(D),isNaN(D)||(L(D),d(n._tileset)&&(n._tileset.maximumScreenSpaceError=D))}}),this.maximumScreenSpaceError=16;let V=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return V()},set:function(D){D=Number(D),isNaN(D)||(V(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=D))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,Re.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(V(),1/6)},set:function(D){let O=Math.pow(D,6);V(O),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=O)}});let Z=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return Z()},set:function(D){D=Number(D),isNaN(D)||(Z(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorFactor=D))}}),this.dynamicScreenSpaceErrorFactor=24;let G=m9t(this),I=Re.observable();Re.defineProperty(this,"pickActive",{get:function(){return I()},set:function(D){I(D),D?n._eventHandler.setInputAction(G,jn.LEFT_CLICK):n._eventHandler.removeInputAction(jn.LEFT_CLICK)}});let w=Re.observable();Re.defineProperty(this,"pointCloudShading",{get:function(){return w()},set:function(D){w(D),d(n._tileset)&&(n._tileset.pointCloudShading.attenuation=D)}}),this.pointCloudShading=!1;let W=Re.observable();Re.defineProperty(this,"geometricErrorScale",{get:function(){return W()},set:function(D){D=Number(D),isNaN(D)||(W(D),d(n._tileset)&&(n._tileset.pointCloudShading.geometricErrorScale=D))}}),this.geometricErrorScale=1;let v=Re.observable();Re.defineProperty(this,"maximumAttenuation",{get:function(){return v()},set:function(D){D=Number(D),isNaN(D)||(v(D),d(n._tileset)&&(n._tileset.pointCloudShading.maximumAttenuation=D===0?void 0:D))}}),this.maximumAttenuation=0;let N=Re.observable();Re.defineProperty(this,"baseResolution",{get:function(){return N()},set:function(D){D=Number(D),isNaN(D)||(N(D),d(n._tileset)&&(n._tileset.pointCloudShading.baseResolution=D===0?void 0:D))}}),this.baseResolution=0;let y=Re.observable();Re.defineProperty(this,"eyeDomeLighting",{get:function(){return y()},set:function(D){y(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLighting=D)}}),this.eyeDomeLighting=!1;let R=Re.observable();Re.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return R()},set:function(D){D=Number(D),isNaN(D)||(R(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingStrength=D))}}),this.eyeDomeLightingStrength=1;let E=Re.observable();Re.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return E()},set:function(D){D=Number(D),isNaN(D)||(E(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingRadius=D))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let X=Re.observable();Re.defineProperty(this,"skipLevelOfDetail",{get:function(){return X()},set:function(D){X(D),d(n._tileset)&&(n._tileset.skipLevelOfDetail=D)}}),this.skipLevelOfDetail=!0;let F=Re.observable();Re.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return F()},set:function(D){D=Number(D),isNaN(D)||(F(D),d(n._tileset)&&(n._tileset.skipScreenSpaceErrorFactor=D))}}),this.skipScreenSpaceErrorFactor=16;let A=Re.observable();Re.defineProperty(this,"baseScreenSpaceError",{get:function(){return A()},set:function(D){D=Number(D),isNaN(D)||(A(D),d(n._tileset)&&(n._tileset.baseScreenSpaceError=D))}}),this.baseScreenSpaceError=1024;let Y=Re.observable();Re.defineProperty(this,"skipLevels",{get:function(){return Y()},set:function(D){D=Number(D),isNaN(D)||(Y(D),d(n._tileset)&&(n._tileset.skipLevels=D))}}),this.skipLevels=1;let U=Re.observable();Re.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return U()},set:function(D){U(D),d(n._tileset)&&(n._tileset.immediatelyLoadDesiredLevelOfDetail=D)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let k=Re.observable();Re.defineProperty(this,"loadSiblings",{get:function(){return k()},set:function(D){k(D),d(n._tileset)&&(n._tileset.loadSiblings=D)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()}),d(this._tileset)||BIe(this,!0)}Object.defineProperties(Rc.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return p9t}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(e){if(this._tileset=e,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,d(e)){this._properties(e.properties);let t=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],n=t.length;for(let o=0;o<n;++o){let r=t[o];this[r]=this[r]}this.maximumScreenSpaceError=e.maximumScreenSpaceError,this.dynamicScreenSpaceError=e.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=e.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=e.dynamicScreenSpaceErrorFactor,this.colorBlendMode=e.colorBlendMode,this.skipLevelOfDetail=e.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=e.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=e.baseScreenSpaceError,this.skipLevels=e.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=e.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=e.loadSiblings,this.hasEnabledWireframe=e._enableDebugWireframe;let i=e.pointCloudShading;this.pointCloudShading=i.attenuation,this.geometricErrorScale=i.geometricErrorScale,this.maximumAttenuation=i.maximumAttenuation?i.maximumAttenuation:0,this.baseResolution=i.baseResolution?i.baseResolution:0,this.eyeDomeLighting=i.eyeDomeLighting,this.eyeDomeLightingStrength=i.eyeDomeLightingStrength,this.eyeDomeLightingRadius=i.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=jD(e,!1),this._pickStatisticsText=jD(e,!0),this._resourceCacheStatisticsText=OIe(),BIe(this,!1)}},feature:{get:function(){return this._feature},set:function(e){if(this._feature===e)return;let t=this._feature;d(t)&&!t.content.isDestroyed()&&(!this.colorize&&d(this._style)?t.color=d(this._style.color)?this._style.color.evaluateColor(t,f9t):z.WHITE:t.color=PH,this._scene.requestRender()),d(e)&&(z.clone(e.color,PH),e.color=YIe,this._scene.requestRender()),this._feature=e}},tile:{get:function(){return this._tile},set:function(e){if(this._tile===e)return;let t=this._tile;d(t)&&!t.isDestroyed()&&!hoe(t.content)&&(t.color=PH,this._scene.requestRender()),d(e)&&!hoe(e.content)&&(z.clone(e.color,PH),e.color=YIe,this._scene.requestRender()),this._tile=e}}});function hoe(e){if(!d(e))return!1;if(e.featuresLength>0)return!0;let t=e.innerContents;if(d(t)){let n=t.length;for(let i=0;i<n;++i)if(!hoe(t[i]))return!1;return!0}return!1}Rc.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};Rc.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Rc.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};Rc.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Rc.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};Rc.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};Rc.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};Rc.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};Rc.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};Rc.prototype.trimTilesCache=function(){d(this._tileset)&&this._tileset.trimLoadedTiles()};Rc.prototype.compileStyle=function(){let e=this._tileset;if(!(!d(e)||this.styleString===JSON.stringify(e.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new TC(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(t){this._editorError=t.toString()}this.feature=this._feature,this.tile=this._tile}};Rc.prototype.styleEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,o=n.selectionEnd,r=o,a=n.value.slice(i,o).split(`
19023
- `),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),r-=2):(a[l]=a[l].substr(1),r-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,r+=2;let u=a.join(`
19024
- `);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileStyle();return!0};Rc.prototype._update=function(){let e=this._tileset;if(this.performance&&this._performanceDisplay.update(),d(e)){if(e.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let t=e.style;this._style!==e.style&&(this._shouldStyle?(e.style=this._style,this._shouldStyle=!1):(this._style=t,this.styleString=JSON.stringify(t.style,null," ")))}this.showStatistics&&(this._statisticsText=jD(e,!1),this._pickStatisticsText=jD(e,!0),this._resourceCacheStatisticsText=OIe())};Rc.prototype.isDestroyed=function(){return!1};Rc.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};Rc.getStatistics=jD;var qD=Rc;function vH(e,t){e=li(e);let n=document.createElement("div"),i=document.createElement("div");i.setAttribute("data-bind","visible: performance");let o=new qD(t,i);this._viewModel=o,this._container=e,this._element=n;let r=document.createElement("div");r.textContent="3D Tiles / M3D Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleInspector"),n.appendChild(r),n.className="cesium-cesiumInspector cesium-3DTilesInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",n.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=jc.createRangeInput,u=jc.createButton,m=a(s,"Tileset","tilesetVisible","toggleTileset"),f=a(s,"Display","displayVisible","toggleDisplay"),b=a(s,"Update","updateVisible","toggleUpdate"),p=a(s,"Logging","loggingVisible","toggleLogging"),x=a(s,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),T=a(s,"Style","styleVisible","toggleStyle"),_=a(s,"Optimization","optimizationVisible","toggleOptimization"),L=document.createElement("div");L.className="field-group";let V=document.createElement("label");V.className="field-label",V.appendChild(document.createTextNode("Properties: "));let Z=document.createElement("div");Z.setAttribute("data-bind","text: properties"),L.appendChild(V),L.appendChild(Z),m.appendChild(L),m.appendChild(u("Pick Tileset","togglePickTileset","pickActive")),m.appendChild(u("Trim Tiles Cache","trimTilesCache")),m.appendChild(c("Enable Picking","picking")),f.appendChild(c("Colorize","colorize"));let G=f.appendChild(c("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),I=document.createElement("p");I.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),I.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),I.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",G.appendChild(I),f.appendChild(c("Bounding Volumes","showBoundingVolumes")),f.appendChild(c("Content Volumes","showContentBoundingVolumes")),f.appendChild(c("Request Volumes","showRequestVolumes")),f.appendChild(c("Point Cloud Shading","pointCloudShading"));let w=document.createElement("div");w.setAttribute("data-bind","visible: pointCloudShading"),w.appendChild(l("Geometric Error Scale","geometricErrorScale",0,2,.01)),w.appendChild(l("Maximum Attenuation","maximumAttenuation",0,32,1)),w.appendChild(l("Base Resolution","baseResolution",0,1,.01)),w.appendChild(c("Eye Dome Lighting (EDL)","eyeDomeLighting")),f.appendChild(w);let W=document.createElement("div");W.setAttribute("data-bind","visible: eyeDomeLighting"),W.appendChild(l("EDL Strength","eyeDomeLightingStrength",0,2,.1)),W.appendChild(l("EDL Radius","eyeDomeLightingRadius",0,4,.1)),w.appendChild(W),b.appendChild(c("Freeze Frame","freezeFrame")),b.appendChild(c("Dynamic Screen Space Error","dynamicScreenSpaceError"));let v=document.createElement("div");v.appendChild(l("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),b.appendChild(v);let N=document.createElement("div");N.setAttribute("data-bind","visible: dynamicScreenSpaceError"),N.appendChild(l("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),N.appendChild(l("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),b.appendChild(N),p.appendChild(c("Performance","performance")),p.appendChild(i),p.appendChild(c("Statistics","showStatistics"));let y=document.createElement("div");y.className="cesium-3dTilesInspector-statistics",y.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),p.appendChild(y),p.appendChild(c("Pick Statistics","showPickStatistics"));let R=document.createElement("div");R.className="cesium-3dTilesInspector-statistics",R.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),p.appendChild(R),p.appendChild(c("Resource Cache Statistics","showResourceCacheStatistics"));let E=document.createElement("div");E.className="cesium-3dTilesInspector-statistics",E.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),p.appendChild(E);let X=document.createElement("div");T.appendChild(X),X.appendChild(document.createTextNode("Color Blend Mode: "));let F=document.createElement("select");F.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),X.appendChild(F);let A=document.createElement("textarea");A.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),X.className="cesium-cesiumInspector-styleEditor",X.appendChild(A);let Y=u("Compile (Ctrl+Enter)","compileStyle");X.appendChild(Y);let U=document.createElement("div");U.className="cesium-cesiumInspector-error",U.setAttribute("data-bind","text: editorError"),X.appendChild(U),x.appendChild(c("Show Picked Only","showOnlyPickedTileDebugLabel")),x.appendChild(c("Geometric Error","showGeometricError")),x.appendChild(c("Rendering Statistics","showRenderingStatistics")),x.appendChild(c("Memory Usage (MB)","showMemoryUsage")),x.appendChild(c("Url","showUrl")),_.appendChild(c("Skip Tile LODs","skipLevelOfDetail"));let k=document.createElement("div");k.appendChild(l("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),_.appendChild(k);let D=document.createElement("div");D.appendChild(l("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),_.appendChild(D);let O=document.createElement("div");O.appendChild(l("Min. levels to skip","skipLevels",0,10,1)),_.appendChild(O),_.appendChild(c("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),_.appendChild(c("Load siblings of visible tiles","loadSiblings")),Re.applyBindings(o,n)}Object.defineProperties(vH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});vH.prototype.isDestroyed=function(){return!1};vH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var $D=vH;var Mtr=S(C(),1);var Vtr=S(C(),1);function KIe(e){e=g(e,g.EMPTY_OBJECT);let t=e.globe,n=g(e.imageryProviderViewModels,[]),i=g(e.terrainProviderViewModels,[]);this._globe=t,this.imageryProviderViewModels=n.slice(0),this.terrainProviderViewModels=i.slice(0),this.dropDownVisible=!1,Re.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);let o=Re.getObservable(this,"imageryProviderViewModels"),r=Re.pureComputed(function(){let m=o(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._imageryProviders=r;let s=Re.getObservable(this,"terrainProviderViewModels"),a=Re.pureComputed(function(){let m=s(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._terrainProviders=a,this.buttonTooltip=void 0,Re.defineProperty(this,"buttonTooltip",function(){let m=this.selectedImagery,f=this.selectedTerrain,b=d(m)?m.name:void 0,p=d(f)?f.name:void 0;return d(b)&&d(p)?`${b}
19025
- ${p}`:d(b)?b:p}),this.buttonImageUrl=void 0,Re.defineProperty(this,"buttonImageUrl",function(){let m=this.selectedImagery;if(d(m))return m.iconUrl}),this.selectedImagery=void 0;let c=Re.observable();this._currentImageryLayers=[],Re.defineProperty(this,"selectedImagery",{get:function(){return c()},set:function(m){if(c()===m){this.dropDownVisible=!1;return}let f,b=this._currentImageryLayers,p=b.length,x=this._globe.imageryLayers,T=!1;for(f=0;f<p;f++){let _=x.length;for(let L=0;L<_;L++){let V=x.get(L);if(V===b[f]){x.remove(V),T=!0;break}}}if(d(m)){let _=m.creationCommand();if(Array.isArray(_)){let L=_.length;for(this._currentImageryLayers=[],f=L-1;f>=0;f--){let V=Ys.fromProviderAsync(_[f]);x.add(V,0),this._currentImageryLayers.push(V)}}else{this._currentImageryLayers=[];let L=Ys.fromProviderAsync(_);if(L.name=m.name,T)x.add(L,0);else{let V=x.get(0);d(V)&&x.remove(V),x.add(L,0)}this._currentImageryLayers.push(L)}}c(m),this.dropDownVisible=!1}}),this.selectedTerrain=void 0;let l=Re.observable();Re.defineProperty(this,"selectedTerrain",{get:function(){return l()},set:function(m){if(l()===m){this.dropDownVisible=!1;return}let f;if(d(m)&&(f=m.creationCommand()),d(f)&&!d(f.then))this._globe.depthTestAgainstTerrain=!(f instanceof Of),this._globe.terrainProvider=f;else if(d(f)){let b=!1,p=this._globe.terrainProviderChanged.addEventListener(()=>{b=!0,p()}),T=new ZD(f).readyEvent.addEventListener(_=>{b||(this._globe.depthTestAgainstTerrain=!(_ instanceof Of),this._globe.terrainProvider=_,T())})}l(m),this.dropDownVisible=!1}});let u=this;this._toggleDropDown=ti(function(){u.dropDownVisible=!u.dropDownVisible}),this.selectedImagery=g(e.selectedImageryProviderViewModel,n[0]),this.selectedTerrain=e.selectedTerrainProviderViewModel}Object.defineProperties(KIe.prototype,{toggleDropDown:{get:function(){return this._toggleDropDown}},globe:{get:function(){return this._globe}}});var e3=KIe;function NH(e,t){e=li(e);let n=new e3(t),i=document.createElement("button");i.type="button",i.className="cesium-button cesium-toolbar-button",i.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),e.appendChild(i);let o=document.createElement("img");o.setAttribute("draggable","false"),o.className="cesium-baseLayerPicker-selected",o.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),i.appendChild(o);let r=document.createElement("div");r.className="cesium-baseLayerPicker-dropDown",r.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-dropDown-visible" : dropDownVisible }'),e.appendChild(r);let s=document.createElement("div");s.className="cesium-baseLayerPicker-sectionTitle",s.setAttribute("data-bind","visible: imageryProviderViewModels.length > 0"),s.innerHTML="Imagery",r.appendChild(s);let a=document.createElement("div");a.className="cesium-baseLayerPicker-section",a.setAttribute("data-bind","foreach: _imageryProviders"),r.appendChild(a);let c=document.createElement("div");c.className="cesium-baseLayerPicker-category",a.appendChild(c);let l=document.createElement("div");l.className="cesium-baseLayerPicker-categoryTitle",l.setAttribute("data-bind","text: name"),c.appendChild(l);let u=document.createElement("div");u.className="cesium-baseLayerPicker-choices",u.setAttribute("data-bind","foreach: providers"),c.appendChild(u);let m=document.createElement("div");m.className="cesium-baseLayerPicker-item",m.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),u.appendChild(m);let f=document.createElement("img");f.className="cesium-baseLayerPicker-itemIcon",f.setAttribute("data-bind","attr: { src: iconUrl }"),f.setAttribute("draggable","false"),m.appendChild(f);let b=document.createElement("div");b.className="cesium-baseLayerPicker-itemLabel",b.setAttribute("data-bind","text: name"),m.appendChild(b);let p=document.createElement("div");p.className="cesium-baseLayerPicker-sectionTitle",p.setAttribute("data-bind","visible: terrainProviderViewModels.length > 0"),p.innerHTML="Terrain",r.appendChild(p);let x=document.createElement("div");x.className="cesium-baseLayerPicker-section",x.setAttribute("data-bind","foreach: _terrainProviders"),r.appendChild(x);let T=document.createElement("div");T.className="cesium-baseLayerPicker-category",x.appendChild(T);let _=document.createElement("div");_.className="cesium-baseLayerPicker-categoryTitle",_.setAttribute("data-bind","text: name"),T.appendChild(_);let L=document.createElement("div");L.className="cesium-baseLayerPicker-choices",L.setAttribute("data-bind","foreach: providers"),T.appendChild(L);let V=document.createElement("div");V.className="cesium-baseLayerPicker-item",V.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedTerrain },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedTerrain = $data; }'),L.appendChild(V);let Z=document.createElement("img");Z.className="cesium-baseLayerPicker-itemIcon",Z.setAttribute("data-bind","attr: { src: iconUrl }"),Z.setAttribute("draggable","false"),V.appendChild(Z);let G=document.createElement("div");G.className="cesium-baseLayerPicker-itemLabel",G.setAttribute("data-bind","text: name"),V.appendChild(G),Re.applyBindings(n,i),Re.applyBindings(n,r),this._viewModel=n,this._container=e,this._element=i,this._dropPanel=r,this._closeDropDown=function(I){i.contains(I.target)||r.contains(I.target)||(n.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(NH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});NH.prototype.isDestroyed=function(){return!1};NH.prototype.destroy=function(){return bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._element),Re.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),fe(this)};var t3=NH;var ktr=S(C(),1);var Ftr=S(C(),1);function HIe(e){let t=e.creationFunction;d(t.canExecute)||(t=ti(t)),this._creationCommand=t,this.name=e.name,this.tooltip=e.tooltip,this.iconUrl=e.iconUrl,this._category=g(e.category,""),Re.track(this,["name","tooltip","iconUrl"])}Object.defineProperties(HIe.prototype,{creationCommand:{get:function(){return this._creationCommand}},category:{get:function(){return this._category}}});var ra=HIe;function b9t(){let e=[],t=devicePixelRatio>=2;return e.push(new ra({name:"Bing Maps Aerial",iconUrl:Sn("Widgets/Images/ImageryProviders/bingAerial.png"),tooltip:"Bing Maps aerial imagery, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.AERIAL})}})),e.push(new ra({name:"Bing Maps Aerial with Labels",iconUrl:Sn("Widgets/Images/ImageryProviders/bingAerialLabels.png"),tooltip:"Bing Maps aerial imagery with labels, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.AERIAL_WITH_LABELS})}})),e.push(new ra({name:"Bing Maps Roads",iconUrl:Sn("Widgets/Images/ImageryProviders/bingRoads.png"),tooltip:"Bing Maps standard road maps, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.ROAD})}})),e.push(new ra({name:"ArcGIS World Imagery",iconUrl:Sn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png"),tooltip:`ArcGIS World Imagery provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide. The map includes 15m TerraColor imagery at small and mid-scales (~1:591M down to ~1:288k) for the world. The map features Maxar imagery at 0.3m resolution for select metropolitan areas around the world, 0.5m resolution across the United States and parts of Western Europe, and 1m resolution imagery across the rest of the world. In addition to commercial sources, the World Imagery map features high-resolution aerial photography contributed by the GIS User Community. This imagery ranges from 0.3m to 0.03m resolution (down to ~1:280 nin select communities). For more information on this map, including the terms of use, visit us online at
19017
+ */var soe="__knockoutObservables",aoe="__knockoutSubscribable";function WIe(e,t){if(!e)throw new Error("When calling ko.track, you must pass an object as the first parameter.");var n=this,i=PIe(e,!0);return t=t||Object.getOwnPropertyNames(e),t.forEach(function(o){if(!(o===soe||o===aoe)&&!(o in i)){var r=e[o],s=r instanceof Array,a=n.isObservable(r)?r:s?n.observableArray(r):n.observable(r);Object.defineProperty(e,o,{configurable:!0,enumerable:!0,get:a,set:n.isWriteableObservable(a)?a:void 0}),i[o]=a,s&&KNt(n,a)}}),e}function PIe(e,t){var n=e[soe];return!n&&t&&(n={},Object.defineProperty(e,soe,{value:n})),n}function ONt(e,t,n){var i=this,o={owner:e,deferEvaluation:!0};if(typeof n=="function")o.read=n;else{if("value"in n)throw new Error('For ko.defineProperty, you must not specify a "value" for the property. You must provide a "get" function.');if(typeof n.get!="function")throw new Error('For ko.defineProperty, the third parameter must be either an evaluator function, or an options object containing a function called "get".');o.read=n.get,o.write=n.set}return e[t]=i.computed(o),WIe.call(i,e,[t]),e}function KNt(e,t){var n=null;e.computed(function(){n&&(n.dispose(),n=null);var i=t();i instanceof Array&&(n=HNt(e,t,i))})}function HNt(e,t,n){var i=JNt(e,n);return i.subscribe(t)}function JNt(e,t){var n=t[aoe];if(!n){n=new e.subscribable,Object.defineProperty(t,aoe,{value:n});var i={};QNt(t,n,i),jNt(e,t,n,i)}return n}function QNt(e,t,n){["pop","push","reverse","shift","sort","splice","unshift"].forEach(function(i){var o=e[i];e[i]=function(){var r=o.apply(this,arguments);return n.pause!==!0&&t.notifySubscribers(this),r}})}function jNt(e,t,n,i){["remove","removeAll","destroy","destroyAll","replace"].forEach(function(o){Object.defineProperty(t,o,{enumerable:!1,value:function(){var r;i.pause=!0;try{r=e.observableArray.fn[o].apply(e.observableArray(t),arguments)}finally{i.pause=!1}return n.notifySubscribers(t),r}})})}function vIe(e,t){if(!e)return null;var n=PIe(e,!1);return n&&n[t]||null}function qNt(e,t){var n=vIe(e,t);n&&n.valueHasMutated()}function $Nt(e){e.track=WIe,e.getObservable=vIe,e.valueHasMutated=qNt,e.defineProperty=ONt}var UD={attachToKo:$Nt};var yer=S(C(),1),NIe="http://www.w3.org/2000/svg",FIe="cesium-svgPath-svg",e9t={register:function(e){e.bindingHandlers.cesiumSvgPath={init:function(t,n){let i=document.createElementNS(NIe,"svg:svg");i.setAttribute("class",FIe);let o=document.createElementNS(NIe,"path");return i.appendChild(o),e.virtualElements.setDomNodeChildren(t,[i]),e.computed({read:function(){let r=e.unwrap(n());o.setAttribute("d",e.unwrap(r.path));let s=e.unwrap(r.width),a=e.unwrap(r.height);i.setAttribute("width",s),i.setAttribute("height",a),i.setAttribute("viewBox",`0 0 ${s} ${a}`),r.css&&i.setAttribute("class",`${FIe} ${e.unwrap(r.css)}`)},disposeWhenNodeIsRemoved:t}),{controlsDescendantBindings:!0}}},e.virtualElements.allowedBindings.cesiumSvgPath=!0}},kD=e9t;UD.attachToKo(dL);kD.register(dL);var Re=dL;function zD(e){d(e)||(e=new op),this._clock=e,this._eventHelper=new Ws,this._eventHelper.add(e.onTick,this.synchronize,this),this.systemTime=Re.observable(ee.now()),this.systemTime.equalityComparer=ee.equals,this.startTime=Re.observable(e.startTime),this.startTime.equalityComparer=ee.equals,this.startTime.subscribe(function(t){e.startTime=t,this.synchronize()},this),this.stopTime=Re.observable(e.stopTime),this.stopTime.equalityComparer=ee.equals,this.stopTime.subscribe(function(t){e.stopTime=t,this.synchronize()},this),this.currentTime=Re.observable(e.currentTime),this.currentTime.equalityComparer=ee.equals,this.currentTime.subscribe(function(t){e.currentTime=t,this.synchronize()},this),this.multiplier=Re.observable(e.multiplier),this.multiplier.subscribe(function(t){e.multiplier=t,this.synchronize()},this),this.clockStep=Re.observable(e.clockStep),this.clockStep.subscribe(function(t){e.clockStep=t,this.synchronize()},this),this.clockRange=Re.observable(e.clockRange),this.clockRange.subscribe(function(t){e.clockRange=t,this.synchronize()},this),this.canAnimate=Re.observable(e.canAnimate),this.canAnimate.subscribe(function(t){e.canAnimate=t,this.synchronize()},this),this.shouldAnimate=Re.observable(e.shouldAnimate),this.shouldAnimate.subscribe(function(t){e.shouldAnimate=t,this.synchronize()},this),Re.track(this,["systemTime","startTime","stopTime","currentTime","multiplier","clockStep","clockRange","canAnimate","shouldAnimate"])}Object.defineProperties(zD.prototype,{clock:{get:function(){return this._clock}}});zD.prototype.synchronize=function(){let e=this._clock;this.systemTime=ee.now(),this.startTime=e.startTime,this.stopTime=e.stopTime,this.currentTime=e.currentTime,this.multiplier=e.multiplier,this.clockStep=e.clockStep,this.clockRange=e.clockRange,this.canAnimate=e.canAnimate,this.shouldAnimate=e.shouldAnimate};zD.prototype.isDestroyed=function(){return!1};zD.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var YD=zD;var Eer=S(C(),1);function t9t(){this.canExecute=void 0,this.beforeExecute=void 0,this.afterExecute=void 0,be.throwInstantiationError()}var coe=t9t;var Per=S(C(),1);function n9t(e,t){t=g(t,!0);let n=new Se,i=new Se;function o(){let r={args:arguments,cancel:!1},s;return n.raiseEvent(r),r.cancel||(s=e.apply(null,arguments),i.raiseEvent(s)),s}return o.canExecute=t,Re.track(o,["canExecute"]),Object.defineProperties(o,{beforeExecute:{value:n},afterExecute:{value:i}}),o}var ti=n9t;var Aer=S(C(),1);var BD={};BD.createCheckbox=function(e,t,n){let i=document.createElement("div"),o=document.createElement("label"),r=document.createElement("input");r.type="checkbox";let s=`checked: ${t}`;return d(n)&&(s+=`, enable: ${n}`),r.setAttribute("data-bind",s),o.appendChild(r),o.appendChild(document.createTextNode(e)),i.appendChild(o),i};BD.createSection=function(e,t,n,i){let o=document.createElement("div");o.className="cesium-cesiumInspector-section",o.setAttribute("data-bind",`css: { "cesium-cesiumInspector-section-collapsed": !${n} }`),e.appendChild(o);let r=document.createElement("h3");r.className="cesium-cesiumInspector-sectionHeader",r.appendChild(document.createTextNode(t)),r.setAttribute("data-bind",`click: ${i}`),o.appendChild(r);let s=document.createElement("div");return s.className="cesium-cesiumInspector-sectionContent",o.appendChild(s),s};BD.createRangeInput=function(e,t,n,i,o,r){r=g(r,t);let s=document.createElement("input");s.setAttribute("data-bind",`value: ${r}`),s.type="number";let a=document.createElement("input");a.type="range",a.min=n,a.max=i,a.step=g(o,"any"),a.setAttribute("data-bind",`valueUpdate: "input", value: ${t}`);let c=document.createElement("div");c.appendChild(a);let l=document.createElement("div");return l.className="cesium-cesiumInspector-slider",l.appendChild(document.createTextNode(e)),l.appendChild(s),l.appendChild(c),l};BD.createButton=function(e,t,n){let i=document.createElement("button");i.type="button",i.textContent=e,i.className="cesium-cesiumInspector-pickButton";let o=`click: ${t}`;return d(n)&&(o+=`, css: {"cesium-cesiumInspector-pickButtonHighlight" : ${n}}`),i.setAttribute("data-bind",o),i};var jc=BD;var ker=S(C(),1);function i9t(e,t,n,i,o){return n.call(i,e[t]),Re.getObservable(e,t).subscribe(n,i,o)}var Zc=i9t;var Her=S(C(),1);function AIe(e,t){this._command=e,t=g(t,g.EMPTY_OBJECT),this.toggled=g(t.toggled,!1),this.tooltip=g(t.tooltip,""),Re.track(this,["toggled","tooltip"])}Object.defineProperties(AIe.prototype,{command:{get:function(){return this._command}}});var s_=AIe;var $er=S(C(),1);var uL="http://www.w3.org/2000/svg",kIe="http://www.w3.org/1999/xlink",XH,OD=z.fromCssColorString("rgba(247,250,255,0.384)"),MH=z.fromCssColorString("rgba(143,191,255,0.216)"),loe=z.fromCssColorString("rgba(153,197,255,0.098)"),wH=z.fromCssColorString("rgba(255,255,255,0.086)"),o9t=z.fromCssColorString("rgba(255,255,255,0.267)"),r9t=z.fromCssColorString("rgba(255,255,255,0)"),DIe=z.fromCssColorString("rgba(66,67,68,0.3)"),UIe=z.fromCssColorString("rgba(0,0,0,0.5)");function a_(e){return z.fromCssColorString(window.getComputedStyle(e).getPropertyValue("color"))}var KD={animation_pathReset:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.316,5.318,9.833,13.682,9.833,5.5,5.5,5.5,5.5,25.5,9.833,25.5,9.833,17.318,24.316,25.682z"},animation_pathPause:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M13,5.5,7.5,5.5,7.5,25.5,13,25.5zM24.5,5.5,19,5.5,19,25.5,24.5,25.5z"},animation_pathPlay:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathPlayReverse:{tagName:"path",transform:"translate(16,16) scale(-0.85,0.85) translate(-16,-16)",d:"M6.684,25.682L24.316,15.5L6.684,5.318V25.682z"},animation_pathLoop:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-16)",d:"M24.249,15.499c-0.009,4.832-3.918,8.741-8.75,8.75c-2.515,0-4.768-1.064-6.365-2.763l2.068-1.442l-7.901-3.703l0.744,8.694l2.193-1.529c2.244,2.594,5.562,4.242,9.26,4.242c6.767,0,12.249-5.482,12.249-12.249H24.249zM15.499,6.75c2.516,0,4.769,1.065,6.367,2.764l-2.068,1.443l7.901,3.701l-0.746-8.693l-2.192,1.529c-2.245-2.594-5.562-4.245-9.262-4.245C8.734,3.25,3.25,8.734,3.249,15.499H6.75C6.758,10.668,10.668,6.758,15.499,6.75z"},animation_pathClock:{tagName:"path",transform:"translate(16,16) scale(0.85) translate(-16,-15.5)",d:"M15.5,2.374C8.251,2.375,2.376,8.251,2.374,15.5C2.376,22.748,8.251,28.623,15.5,28.627c7.249-0.004,13.124-5.879,13.125-13.127C28.624,8.251,22.749,2.375,15.5,2.374zM15.5,25.623C9.909,25.615,5.385,21.09,5.375,15.5C5.385,9.909,9.909,5.384,15.5,5.374c5.59,0.01,10.115,4.535,10.124,10.125C25.615,21.09,21.091,25.615,15.5,25.623zM8.625,15.5c-0.001-0.552-0.448-0.999-1.001-1c-0.553,0-1,0.448-1,1c0,0.553,0.449,1,1,1C8.176,16.5,8.624,16.053,8.625,15.5zM8.179,18.572c-0.478,0.277-0.642,0.889-0.365,1.367c0.275,0.479,0.889,0.641,1.365,0.365c0.479-0.275,0.643-0.887,0.367-1.367C9.27,18.461,8.658,18.297,8.179,18.572zM9.18,10.696c-0.479-0.276-1.09-0.112-1.366,0.366s-0.111,1.09,0.365,1.366c0.479,0.276,1.09,0.113,1.367-0.366C9.821,11.584,9.657,10.973,9.18,10.696zM22.822,12.428c0.478-0.275,0.643-0.888,0.366-1.366c-0.275-0.478-0.89-0.642-1.366-0.366c-0.479,0.278-0.642,0.89-0.366,1.367C21.732,12.54,22.344,12.705,22.822,12.428zM12.062,21.455c-0.478-0.275-1.089-0.111-1.366,0.367c-0.275,0.479-0.111,1.09,0.366,1.365c0.478,0.277,1.091,0.111,1.365-0.365C12.704,22.344,12.54,21.732,12.062,21.455zM12.062,9.545c0.479-0.276,0.642-0.888,0.366-1.366c-0.276-0.478-0.888-0.642-1.366-0.366s-0.642,0.888-0.366,1.366C10.973,9.658,11.584,9.822,12.062,9.545zM22.823,18.572c-0.48-0.275-1.092-0.111-1.367,0.365c-0.275,0.479-0.112,1.092,0.367,1.367c0.477,0.275,1.089,0.113,1.365-0.365C23.464,19.461,23.3,18.848,22.823,18.572zM19.938,7.813c-0.477-0.276-1.091-0.111-1.365,0.366c-0.275,0.48-0.111,1.091,0.366,1.367s1.089,0.112,1.366-0.366C20.581,8.702,20.418,8.089,19.938,7.813zM23.378,14.5c-0.554,0.002-1.001,0.45-1.001,1c0.001,0.552,0.448,1,1.001,1c0.551,0,1-0.447,1-1C24.378,14.949,23.929,14.5,23.378,14.5zM15.501,6.624c-0.552,0-1,0.448-1,1l-0.466,7.343l-3.004,1.96c-0.478,0.277-0.642,0.889-0.365,1.365c0.275,0.479,0.889,0.643,1.365,0.367l3.305-1.676C15.39,16.99,15.444,17,15.501,17c0.828,0,1.5-0.671,1.5-1.5l-0.5-7.876C16.501,7.072,16.053,6.624,15.501,6.624zM15.501,22.377c-0.552,0-1,0.447-1,1s0.448,1,1,1s1-0.447,1-1S16.053,22.377,15.501,22.377zM18.939,21.455c-0.479,0.277-0.643,0.889-0.366,1.367c0.275,0.477,0.888,0.643,1.366,0.365c0.478-0.275,0.642-0.889,0.366-1.365C20.028,21.344,19.417,21.18,18.939,21.455z"},animation_pathWingButton:{tagName:"path",d:"m 4.5,0.5 c -2.216,0 -4,1.784 -4,4 l 0,24 c 0,2.216 1.784,4 4,4 l 13.71875,0 C 22.478584,27.272785 27.273681,22.511272 32.5,18.25 l 0,-13.75 c 0,-2.216 -1.784,-4 -4,-4 l -24,0 z"},animation_pathPointer:{tagName:"path",d:"M-15,-65,-15,-55,15,-55,15,-65,0,-95z"},animation_pathSwooshFX:{tagName:"path",d:"m 85,0 c 0,16.617 -4.813944,35.356 -13.131081,48.4508 h 6.099803 c 8.317138,-13.0948 13.13322,-28.5955 13.13322,-45.2124 0,-46.94483 -38.402714,-85.00262 -85.7743869,-85.00262 -1.0218522,0 -2.0373001,0.0241 -3.0506131,0.0589 45.958443,1.59437 82.723058,35.77285 82.723058,81.70532 z"}};function _f(e){let t=document.createElementNS(uL,e.tagName);for(let n in e)if(e.hasOwnProperty(n)&&n!=="tagName")if(n==="children"){let i=e.children.length;for(let o=0;o<i;++o)t.appendChild(_f(e.children[o]))}else n.indexOf("xlink:")===0?t.setAttributeNS(kIe,n.substring(6),e[n]):n==="textContent"?t.textContent=e[n]:t.setAttribute(n,e[n]);return t}function doe(e,t,n){let i=document.createElementNS(uL,"text");i.setAttribute("x",e),i.setAttribute("y",t),i.setAttribute("class","cesium-animation-svgText");let o=document.createElementNS(uL,"tspan");return o.textContent=n,i.appendChild(o),i}function s9t(e,t,n){e.setAttribute("transform",`translate(100,100) rotate(${n})`),t.setAttribute("transform",`rotate(${n})`)}var WH=new z;function oa(e,t){let n=t.alpha,i=1-n;return WH.red=e.red*i+t.red*n,WH.green=e.green*i+t.green*n,WH.blue=e.blue*i+t.blue*n,WH.toCssColorString()}function uoe(e,t,n){let i=KD[n],o={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{tagName:"rect",class:"cesium-animation-buttonGlow",width:32,height:32,rx:2,ry:2},{tagName:"rect",class:"cesium-animation-buttonMain",width:32,height:32,rx:4,ry:4},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(o)}function a9t(e,t,n){let i=KD[n],o=KD.animation_pathWingButton,r={tagName:"g",class:"cesium-animation-rectButton",transform:`translate(${e},${t})`,children:[{class:"cesium-animation-buttonGlow",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonMain",id:"animation_pathWingButton",tagName:o.tagName,d:o.d},{class:"cesium-animation-buttonPath",id:n,tagName:i.tagName,transform:i.transform,d:i.d},{tagName:"title",textContent:""}]};return _f(r)}function c9t(e,t){let n=e._viewModel,i=n.shuttleRingDragging;if(!(i&&XH!==e))if(t.type==="mousedown"||i&&t.type==="mousemove"||t.type==="touchstart"&&t.touches.length===1||i&&t.type==="touchmove"&&t.touches.length===1){let o=e._centerX,r=e._centerY,a=e._svgNode.getBoundingClientRect(),c,l;if(t.type==="touchstart"||t.type==="touchmove"?(c=t.touches[0].clientX,l=t.touches[0].clientY):(c=t.clientX,l=t.clientY),!i&&(c>a.right||c<a.left||l<a.top||l>a.bottom))return;let u=e._shuttleRingPointer.getBoundingClientRect(),m=c-o-a.left,f=l-r-a.top,b=Math.atan2(f,m)*180/Math.PI+90;b>180&&(b-=360);let p=n.shuttleRingAngle;i||c<u.right&&c>u.left&&l>u.top&&l<u.bottom?(XH=e,n.shuttleRingDragging=!0,n.shuttleRingAngle=b):b<p?n.slower():b>p&&n.faster(),t.preventDefault()}else e===XH&&(XH=void 0),n.shuttleRingDragging=!1}function Vg(e,t){this._viewModel=t,this.svgElement=e,this._enabled=void 0,this._toggled=void 0;let n=this;this._clickFunction=function(){let i=n._viewModel.command;i.canExecute&&i()},e.addEventListener("click",this._clickFunction,!0),this._subscriptions=[Zc(t,"toggled",this.setToggled,this),Zc(t,"tooltip",this.setTooltip,this),Zc(t.command,"canExecute",this.setEnabled,this)]}Vg.prototype.destroy=function(){this.svgElement.removeEventListener("click",this._clickFunction,!0);let e=this._subscriptions;for(let t=0,n=e.length;t<n;t++)e[t].dispose();fe(this)};Vg.prototype.isDestroyed=function(){return!1};Vg.prototype.setEnabled=function(e){if(this._enabled!==e){if(this._enabled=e,!e){this.svgElement.setAttribute("class","cesium-animation-buttonDisabled");return}if(this._toggled){this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled");return}this.svgElement.setAttribute("class","cesium-animation-rectButton")}};Vg.prototype.setToggled=function(e){this._toggled!==e&&(this._toggled=e,this._enabled&&(e?this.svgElement.setAttribute("class","cesium-animation-rectButton cesium-animation-buttonToggled"):this.svgElement.setAttribute("class","cesium-animation-rectButton")))};Vg.prototype.setTooltip=function(e){this.svgElement.getElementsByTagName("title")[0].textContent=e};function YG(e,t){e=li(e),this._viewModel=t,this._container=e,this._centerX=0,this._centerY=0,this._defsElement=void 0,this._svgNode=void 0,this._topG=void 0,this._lastHeight=void 0,this._lastWidth=void 0;let n=e.ownerDocument,i=document.createElement("style");i.textContent=".cesium-animation-rectButton .cesium-animation-buttonGlow { filter: url(#animation_blurred); }.cesium-animation-rectButton .cesium-animation-buttonMain { fill: url(#animation_buttonNormal); }.cesium-animation-buttonToggled .cesium-animation-buttonMain { fill: url(#animation_buttonToggled); }.cesium-animation-rectButton:hover .cesium-animation-buttonMain { fill: url(#animation_buttonHovered); }.cesium-animation-buttonDisabled .cesium-animation-buttonMain { fill: url(#animation_buttonDisabled); }.cesium-animation-shuttleRingG .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshGradient); }.cesium-animation-shuttleRingG:hover .cesium-animation-shuttleRingSwoosh { fill: url(#animation_shuttleRingSwooshHovered); }.cesium-animation-shuttleRingPointer { fill: url(#animation_shuttleRingPointerGradient); }.cesium-animation-shuttleRingPausePointer { fill: url(#animation_shuttleRingPointerPaused); }.cesium-animation-knobOuter { fill: url(#animation_knobOuter); }.cesium-animation-knobInner { fill: url(#animation_knobInner); }",n.head.insertBefore(i,n.head.childNodes[0]);let o=document.createElement("div");o.className="cesium-animation-theme",o.innerHTML='<div class="cesium-animation-themeNormal"></div><div class="cesium-animation-themeHover"></div><div class="cesium-animation-themeSelect"></div><div class="cesium-animation-themeDisabled"></div><div class="cesium-animation-themeKnob"></div><div class="cesium-animation-themePointer"></div><div class="cesium-animation-themeSwoosh"></div><div class="cesium-animation-themeSwooshHover"></div>',this._theme=o,this._themeNormal=o.childNodes[0],this._themeHover=o.childNodes[1],this._themeSelect=o.childNodes[2],this._themeDisabled=o.childNodes[3],this._themeKnob=o.childNodes[4],this._themePointer=o.childNodes[5],this._themeSwoosh=o.childNodes[6],this._themeSwooshHover=o.childNodes[7];let r=document.createElementNS(uL,"svg:svg");this._svgNode=r,r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink",kIe);let s=document.createElementNS(uL,"g");this._topG=s,this._realtimeSVG=new Vg(a9t(3,4,"animation_pathClock"),t.playRealtimeViewModel),this._playReverseSVG=new Vg(uoe(44,99,"animation_pathPlayReverse"),t.playReverseViewModel),this._playForwardSVG=new Vg(uoe(124,99,"animation_pathPlay"),t.playForwardViewModel),this._pauseSVG=new Vg(uoe(84,99,"animation_pathPause"),t.pauseViewModel);let a=document.createElementNS(uL,"g");a.appendChild(this._realtimeSVG.svgElement),a.appendChild(this._playReverseSVG.svgElement),a.appendChild(this._playForwardSVG.svgElement),a.appendChild(this._pauseSVG.svgElement);let c=_f({tagName:"circle",class:"cesium-animation-shuttleRingBack",cx:100,cy:100,r:99});this._shuttleRingBackPanel=c;let l=KD.animation_pathSwooshFX,u=KD.animation_pathPointer,m=_f({tagName:"g",class:"cesium-animation-shuttleRingSwoosh",children:[{tagName:l.tagName,transform:"translate(100,97) scale(-1,1)",id:"animation_pathSwooshFX",d:l.d},{tagName:l.tagName,transform:"translate(100,97)",id:"animation_pathSwooshFX",d:l.d},{tagName:"line",x1:100,y1:8,x2:100,y2:22}]});this._shuttleRingSwooshG=m,this._shuttleRingPointer=_f({class:"cesium-animation-shuttleRingPointer",id:"animation_pathPointer",tagName:u.tagName,d:u.d});let f=_f({tagName:"g",transform:"translate(100,100)"});this._knobOuter=_f({tagName:"circle",class:"cesium-animation-knobOuter",cx:0,cy:0,r:71});let b=61,p=_f({tagName:"circle",class:"cesium-animation-knobInner",cx:0,cy:0,r:b});this._knobDate=doe(0,-24,""),this._knobTime=doe(0,-7,""),this._knobStatus=doe(0,-41,"");let x=_f({tagName:"circle",class:"cesium-animation-blank",cx:0,cy:0,r:b}),T=document.createElementNS(uL,"g");T.setAttribute("class","cesium-animation-shuttleRingG"),e.appendChild(o),s.appendChild(T),s.appendChild(f),s.appendChild(a),T.appendChild(c),T.appendChild(m),T.appendChild(this._shuttleRingPointer),f.appendChild(this._knobOuter),f.appendChild(p),f.appendChild(this._knobDate),f.appendChild(this._knobTime),f.appendChild(this._knobStatus),f.appendChild(x),r.appendChild(s),e.appendChild(r);let _=this;function L(w){c9t(_,w)}this._mouseCallback=L,c.addEventListener("mousedown",L,!0),c.addEventListener("touchstart",L,!0),m.addEventListener("mousedown",L,!0),m.addEventListener("touchstart",L,!0),n.addEventListener("mousemove",L,!0),n.addEventListener("touchmove",L,!0),n.addEventListener("mouseup",L,!0),n.addEventListener("touchend",L,!0),n.addEventListener("touchcancel",L,!0),this._shuttleRingPointer.addEventListener("mousedown",L,!0),this._shuttleRingPointer.addEventListener("touchstart",L,!0),this._knobOuter.addEventListener("mousedown",L,!0),this._knobOuter.addEventListener("touchstart",L,!0);let V=this._knobTime.childNodes[0],Z=this._knobDate.childNodes[0],G=this._knobStatus.childNodes[0],I;this._subscriptions=[Zc(t.pauseViewModel,"toggled",function(w){I!==w&&(I=w,I?_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPausePointer"):_._shuttleRingPointer.setAttribute("class","cesium-animation-shuttleRingPointer"))}),Zc(t,"shuttleRingAngle",function(w){s9t(_._shuttleRingPointer,_._knobOuter,w)}),Zc(t,"dateLabel",function(w){Z.textContent!==w&&(Z.textContent=w)}),Zc(t,"timeLabel",function(w){V.textContent!==w&&(V.textContent=w)}),Zc(t,"multiplierLabel",function(w){G.textContent!==w&&(G.textContent=w)})],this.applyThemeChanges(),this.resize()}Object.defineProperties(YG.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});YG.prototype.isDestroyed=function(){return!1};YG.prototype.destroy=function(){d(this._observer)&&(this._observer.disconnect(),this._observer=void 0);let e=this._container.ownerDocument,t=this._mouseCallback;this._shuttleRingBackPanel.removeEventListener("mousedown",t,!0),this._shuttleRingBackPanel.removeEventListener("touchstart",t,!0),this._shuttleRingSwooshG.removeEventListener("mousedown",t,!0),this._shuttleRingSwooshG.removeEventListener("touchstart",t,!0),e.removeEventListener("mousemove",t,!0),e.removeEventListener("touchmove",t,!0),e.removeEventListener("mouseup",t,!0),e.removeEventListener("touchend",t,!0),e.removeEventListener("touchcancel",t,!0),this._shuttleRingPointer.removeEventListener("mousedown",t,!0),this._shuttleRingPointer.removeEventListener("touchstart",t,!0),this._knobOuter.removeEventListener("mousedown",t,!0),this._knobOuter.removeEventListener("touchstart",t,!0),this._container.removeChild(this._svgNode),this._container.removeChild(this._theme),this._realtimeSVG.destroy(),this._playReverseSVG.destroy(),this._playForwardSVG.destroy(),this._pauseSVG.destroy();let n=this._subscriptions;for(let i=0,o=n.length;i<o;i++)n[i].dispose();return fe(this)};YG.prototype.resize=function(){let e=this._container.clientWidth,t=this._container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;let n=this._svgNode,i=200,o=132,r=e,s=t;e===0&&t===0?(r=i,s=o):e===0?(s=t,r=i*(t/o)):t===0&&(r=e,s=o*(e/i));let a=r/i,c=s/o;n.style.cssText=`width: ${r}px; height: ${s}px; position: absolute; bottom: 0; left: 0; overflow: hidden;`,n.setAttribute("width",r),n.setAttribute("height",s),n.setAttribute("viewBox",`0 0 ${r} ${s}`),this._topG.setAttribute("transform",`scale(${a},${c})`),this._centerX=Math.max(1,100*a),this._centerY=Math.max(1,100*c),this._lastHeight=e,this._lastWidth=t};YG.prototype.applyThemeChanges=function(){let e=this._container.ownerDocument;if(!e.body.contains(this._container)){if(d(this._observer))return;let u=this;u._observer=new MutationObserver(function(){e.body.contains(u._container)&&(u._observer.disconnect(),u._observer=void 0,u.applyThemeChanges())}),u._observer.observe(e,{childList:!0,subtree:!0});return}let t=a_(this._themeNormal),n=a_(this._themeHover),i=a_(this._themeSelect),o=a_(this._themeDisabled),r=a_(this._themeKnob),s=a_(this._themePointer),a=a_(this._themeSwoosh),c=a_(this._themeSwooshHover),l=_f({tagName:"defs",children:[{id:"animation_buttonNormal",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(t,OD)},{tagName:"stop",offset:"12%","stop-color":oa(t,MH)},{tagName:"stop",offset:"46%","stop-color":oa(t,loe)},{tagName:"stop",offset:"81%","stop-color":oa(t,wH)}]},{id:"animation_buttonHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(n,OD)},{tagName:"stop",offset:"12%","stop-color":oa(n,MH)},{tagName:"stop",offset:"46%","stop-color":oa(n,loe)},{tagName:"stop",offset:"81%","stop-color":oa(n,wH)}]},{id:"animation_buttonToggled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(i,OD)},{tagName:"stop",offset:"12%","stop-color":oa(i,MH)},{tagName:"stop",offset:"46%","stop-color":oa(i,loe)},{tagName:"stop",offset:"81%","stop-color":oa(i,wH)}]},{id:"animation_buttonDisabled",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-color":oa(o,o9t)},{tagName:"stop",offset:"75%","stop-color":oa(o,r9t)}]},{id:"animation_blurred",tagName:"filter",width:"200%",height:"200%",x:"-50%",y:"-50%",children:[{tagName:"feGaussianBlur",stdDeviation:4,in:"SourceGraphic"}]},{id:"animation_shuttleRingSwooshGradient",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":a.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":a.toCssColorString()}]},{id:"animation_shuttleRingSwooshHovered",tagName:"linearGradient",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[{tagName:"stop",offset:"0%","stop-opacity":.2,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"85%","stop-opacity":.85,"stop-color":c.toCssColorString()},{tagName:"stop",offset:"95%","stop-opacity":.05,"stop-color":c.toCssColorString()}]},{id:"animation_shuttleRingPointerGradient",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"40%","stop-color":s.toCssColorString()},{tagName:"stop",offset:"60%","stop-color":oa(s,UIe)},{tagName:"stop",offset:"100%","stop-color":oa(s,UIe)}]},{id:"animation_shuttleRingPointerPaused",tagName:"linearGradient",x1:"0%",y1:"50%",x2:"100%",y2:"50%",children:[{tagName:"stop",offset:"0%","stop-color":"#CCC"},{tagName:"stop",offset:"40%","stop-color":"#CCC"},{tagName:"stop",offset:"60%","stop-color":"#555"},{tagName:"stop",offset:"100%","stop-color":"#555"}]},{id:"animation_knobOuter",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,OD)},{tagName:"stop",offset:"60%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"85%","stop-color":oa(r,MH)}]},{id:"animation_knobInner",tagName:"linearGradient",x1:"20%",y1:"0%",x2:"90%",y2:"100%",children:[{tagName:"stop",offset:"5%","stop-color":oa(r,DIe)},{tagName:"stop",offset:"60%","stop-color":oa(r,OD)},{tagName:"stop",offset:"85%","stop-color":oa(r,wH)}]}]});d(this._defsElement)?this._svgNode.replaceChild(l,this._defsElement):this._svgNode.appendChild(l),this._defsElement=l};var HD=YG;var atr=S(C(),1);var l9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c_=15,BG=105;function zIe(e,t){return e-t}function moe(e,t){let n=Xr(t,e,zIe);return n<0?~n:n}function d9t(e,t){if(Math.abs(e)<=c_)return e/c_;let n=c_,i=BG,o,r=0,s;return e>0?(o=Math.log(t[t.length-1]),s=(o-r)/(i-n),Math.exp(r+s*(e-n))):(o=Math.log(-t[0]),s=(o-r)/(i-n),-Math.exp(r+s*(Math.abs(e)-n)))}function u9t(e,t,n){if(n.clockStep===dr.SYSTEM_CLOCK)return c_;if(Math.abs(e)<=1)return e*c_;let i=t[t.length-1];e>i?e=i:e<-i&&(e=-i);let o=c_,r=BG,s,a=0,c;return e>0?(s=Math.log(i),c=(s-a)/(r-o),(Math.log(e)-a)/c+o):(s=Math.log(-t[0]),c=(s-a)/(r-o),-((Math.log(Math.abs(e))-a)/c+o))}function Fh(e){let t=this;this._clockViewModel=e,this._allShuttleRingTicks=[],this._dateFormatter=Fh.defaultDateFormatter,this._timeFormatter=Fh.defaultTimeFormatter,this.shuttleRingDragging=!1,this.snapToTicks=!1,Re.track(this,["_allShuttleRingTicks","_dateFormatter","_timeFormatter","shuttleRingDragging","snapToTicks"]),this._sortedFilteredPositiveTicks=[],this.setShuttleRingTicks(Fh.defaultTicks),this.timeLabel=void 0,Re.defineProperty(this,"timeLabel",function(){return t._timeFormatter(t._clockViewModel.currentTime,t)}),this.dateLabel=void 0,Re.defineProperty(this,"dateLabel",function(){return t._dateFormatter(t._clockViewModel.currentTime,t)}),this.multiplierLabel=void 0,Re.defineProperty(this,"multiplierLabel",function(){let s=t._clockViewModel;if(s.clockStep===dr.SYSTEM_CLOCK)return"Today";let a=s.multiplier;return a%1===0?`${a.toFixed(0)}x`:`${a.toFixed(3).replace(/0{0,3}$/,"")}x`}),this.shuttleRingAngle=void 0,Re.defineProperty(this,"shuttleRingAngle",{get:function(){return u9t(e.multiplier,t._allShuttleRingTicks,e)},set:function(s){s=Math.max(Math.min(s,BG),-BG);let a=t._allShuttleRingTicks,c=t._clockViewModel;if(c.clockStep=dr.SYSTEM_CLOCK_MULTIPLIER,Math.abs(s)===BG){c.multiplier=s>0?a[a.length-1]:a[0];return}let l=d9t(s,a);if(t.snapToTicks)l=a[moe(l,a)];else if(l!==0){let u=Math.abs(l);if(u>100){let m=u.toFixed(0).length-2,f=Math.pow(10,m);l=Math.round(l/f)*f|0}else u>c_?l=Math.round(l):u>1?l=+l.toFixed(1):u>0&&(l=+l.toFixed(2))}c.multiplier=l}}),this._canAnimate=void 0,Re.defineProperty(this,"_canAnimate",function(){let s=t._clockViewModel,a=s.clockRange;if(t.shuttleRingDragging||a===Xs.UNBOUNDED)return!0;let c=s.multiplier,l=s.currentTime,u=s.startTime,m=!1;if(a===Xs.LOOP_STOP)m=ee.greaterThan(l,u)||l.equals(u)&&c>0;else{let f=s.stopTime;m=ee.greaterThan(l,u)&&ee.lessThan(l,f)||l.equals(u)&&c>0||l.equals(f)&&c<0}return m||(s.shouldAnimate=!1),m}),this._isSystemTimeAvailable=void 0,Re.defineProperty(this,"_isSystemTimeAvailable",function(){let s=t._clockViewModel;if(s.clockRange===Xs.UNBOUNDED)return!0;let c=s.systemTime;return ee.greaterThanOrEquals(c,s.startTime)&&ee.lessThanOrEquals(c,s.stopTime)}),this._isAnimating=void 0,Re.defineProperty(this,"_isAnimating",function(){return t._clockViewModel.shouldAnimate&&(t._canAnimate||t.shuttleRingDragging)});let n=ti(function(){let s=t._clockViewModel;s.shouldAnimate?s.shouldAnimate=!1:t._canAnimate&&(s.shouldAnimate=!0)});this._pauseViewModel=new s_(n,{toggled:Re.computed(function(){return!t._isAnimating}),tooltip:"Pause"});let i=ti(function(){let s=t._clockViewModel,a=s.multiplier;a>0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playReverseViewModel=new s_(i,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier<0}),tooltip:"Play Reverse"});let o=ti(function(){let s=t._clockViewModel,a=s.multiplier;a<0&&(s.multiplier=-a),s.shouldAnimate=!0});this._playForwardViewModel=new s_(o,{toggled:Re.computed(function(){return t._isAnimating&&e.multiplier>0&&e.clockStep!==dr.SYSTEM_CLOCK}),tooltip:"Play Forward"});let r=ti(function(){t._clockViewModel.clockStep=dr.SYSTEM_CLOCK},Re.getObservable(this,"_isSystemTimeAvailable"));this._playRealtimeViewModel=new s_(r,{toggled:Re.computed(function(){return e.clockStep===dr.SYSTEM_CLOCK}),tooltip:Re.computed(function(){return t._isSystemTimeAvailable?"Today (real-time)":"Current time not in range"})}),this._slower=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)-1;l>=0&&(s.multiplier=a[l])}),this._faster=ti(function(){let s=t._clockViewModel,a=t._allShuttleRingTicks,c=s.multiplier,l=moe(c,a)+1;l<a.length&&(s.multiplier=a[l])})}Fh.defaultDateFormatter=function(e,t){let n=ee.toGregorianDate(e);return`${l9t[n.month-1]} ${n.day} ${n.year}`};Fh.defaultTicks=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800];Fh.defaultTimeFormatter=function(e,t){let n=ee.toGregorianDate(e),i=Math.round(n.millisecond);return Math.abs(t._clockViewModel.multiplier)<1?`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`:`${n.hour.toString().padStart(2,"0")}:${n.minute.toString().padStart(2,"0")}:${n.second.toString().padStart(2,"0")} UTC`};Fh.prototype.getShuttleRingTicks=function(){return this._sortedFilteredPositiveTicks.slice(0)};Fh.prototype.setShuttleRingTicks=function(e){let t,n,i,o={},r=this._sortedFilteredPositiveTicks;for(r.length=0,t=0,n=e.length;t<n;++t)i=e[t],o.hasOwnProperty(i)||(o[i]=!0,r.push(i));r.sort(zIe);let s=[];for(n=r.length,t=n-1;t>=0;--t)i=r[t],i!==0&&s.push(-i);Array.prototype.push.apply(s,r),this._allShuttleRingTicks=s};Object.defineProperties(Fh.prototype,{slower:{get:function(){return this._slower}},faster:{get:function(){return this._faster}},clockViewModel:{get:function(){return this._clockViewModel}},pauseViewModel:{get:function(){return this._pauseViewModel}},playReverseViewModel:{get:function(){return this._playReverseViewModel}},playForwardViewModel:{get:function(){return this._playForwardViewModel}},playRealtimeViewModel:{get:function(){return this._playRealtimeViewModel}},dateFormatter:{get:function(){return this._dateFormatter},set:function(e){this._dateFormatter=e}},timeFormatter:{get:function(){return this._timeFormatter},set:function(e){this._timeFormatter=e}}});Fh._maxShuttleRingAngle=BG;Fh._realtimeShuttleRingAngle=c_;var JD=Fh;var Ttr=S(C(),1);var htr=S(C(),1);function YIe(e){e=g(e,g.EMPTY_OBJECT);let t=e.globe,n=g(e.imageryProviderViewModels,[]),i=g(e.terrainProviderViewModels,[]);this._globe=t,this.imageryProviderViewModels=n.slice(0),this.terrainProviderViewModels=i.slice(0),this.dropDownVisible=!1,Re.track(this,["imageryProviderViewModels","terrainProviderViewModels","dropDownVisible"]);let o=Re.getObservable(this,"imageryProviderViewModels"),r=Re.pureComputed(function(){let m=o(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._imageryProviders=r;let s=Re.getObservable(this,"terrainProviderViewModels"),a=Re.pureComputed(function(){let m=s(),f={},b;for(b=0;b<m.length;b++){let T=m[b],_=T.category;d(f[_])?f[_].push(T):f[_]=[T]}let p=Object.keys(f),x=[];for(b=0;b<p.length;b++){let T=p[b];x.push({name:T,providers:f[T]})}return x});this._terrainProviders=a,this.buttonTooltip=void 0,Re.defineProperty(this,"buttonTooltip",function(){let m=this.selectedImagery,f=this.selectedTerrain,b=d(m)?m.name:void 0,p=d(f)?f.name:void 0;return d(b)&&d(p)?`${b}
19018
+ ${p}`:d(b)?b:p}),this.buttonImageUrl=void 0,Re.defineProperty(this,"buttonImageUrl",function(){let m=this.selectedImagery;if(d(m))return m.iconUrl}),this.selectedImagery=void 0;let c=Re.observable();this._currentImageryLayers=[],Re.defineProperty(this,"selectedImagery",{get:function(){return c()},set:function(m){if(c()===m){this.dropDownVisible=!1;return}let f,b=this._currentImageryLayers,p=b.length,x=this._globe.imageryLayers,T=!1;for(f=0;f<p;f++){let _=x.length;for(let L=0;L<_;L++){let V=x.get(L);if(V===b[f]){x.remove(V),T=!0;break}}}if(d(m)){let _=m.creationCommand();if(Array.isArray(_)){let L=_.length;for(this._currentImageryLayers=[],f=L-1;f>=0;f--){let V=Ys.fromProviderAsync(_[f]);x.add(V,0),this._currentImageryLayers.push(V)}}else{this._currentImageryLayers=[];let L=Ys.fromProviderAsync(_);if(L.name=m.name,T)x.add(L,0);else{let V=x.get(0);d(V)&&x.remove(V),x.add(L,0)}this._currentImageryLayers.push(L)}}c(m),this.dropDownVisible=!1}}),this.selectedTerrain=void 0;let l=Re.observable();Re.defineProperty(this,"selectedTerrain",{get:function(){return l()},set:function(m){if(l()===m){this.dropDownVisible=!1;return}let f;if(d(m)&&(f=m.creationCommand()),d(f)&&!d(f.then))this._globe.depthTestAgainstTerrain=!(f instanceof Of),this._globe.terrainProvider=f;else if(d(f)){let b=!1,p=this._globe.terrainProviderChanged.addEventListener(()=>{b=!0,p()}),T=new ZD(f).readyEvent.addEventListener(_=>{b||(this._globe.depthTestAgainstTerrain=!(_ instanceof Of),this._globe.terrainProvider=_,T())})}l(m),this.dropDownVisible=!1}});let u=this;this._toggleDropDown=ti(function(){u.dropDownVisible=!u.dropDownVisible}),this.selectedImagery=g(e.selectedImageryProviderViewModel,n[0]),this.selectedTerrain=e.selectedTerrainProviderViewModel}Object.defineProperties(YIe.prototype,{toggleDropDown:{get:function(){return this._toggleDropDown}},globe:{get:function(){return this._globe}}});var QD=YIe;function PH(e,t){e=li(e);let n=new QD(t),i=document.createElement("button");i.type="button",i.className="cesium-button cesium-toolbar-button",i.setAttribute("data-bind","attr: { title: buttonTooltip },click: toggleDropDown"),e.appendChild(i);let o=document.createElement("img");o.setAttribute("draggable","false"),o.className="cesium-baseLayerPicker-selected",o.setAttribute("data-bind","attr: { src: buttonImageUrl }, visible: !!buttonImageUrl"),i.appendChild(o);let r=document.createElement("div");r.className="cesium-baseLayerPicker-dropDown",r.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-dropDown-visible" : dropDownVisible }'),e.appendChild(r);let s=document.createElement("div");s.className="cesium-baseLayerPicker-sectionTitle",s.setAttribute("data-bind","visible: imageryProviderViewModels.length > 0"),s.innerHTML="Imagery",r.appendChild(s);let a=document.createElement("div");a.className="cesium-baseLayerPicker-section",a.setAttribute("data-bind","foreach: _imageryProviders"),r.appendChild(a);let c=document.createElement("div");c.className="cesium-baseLayerPicker-category",a.appendChild(c);let l=document.createElement("div");l.className="cesium-baseLayerPicker-categoryTitle",l.setAttribute("data-bind","text: name"),c.appendChild(l);let u=document.createElement("div");u.className="cesium-baseLayerPicker-choices",u.setAttribute("data-bind","foreach: providers"),c.appendChild(u);let m=document.createElement("div");m.className="cesium-baseLayerPicker-item",m.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedImagery },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedImagery = $data; }'),u.appendChild(m);let f=document.createElement("img");f.className="cesium-baseLayerPicker-itemIcon",f.setAttribute("data-bind","attr: { src: iconUrl }"),f.setAttribute("draggable","false"),m.appendChild(f);let b=document.createElement("div");b.className="cesium-baseLayerPicker-itemLabel",b.setAttribute("data-bind","text: name"),m.appendChild(b);let p=document.createElement("div");p.className="cesium-baseLayerPicker-sectionTitle",p.setAttribute("data-bind","visible: terrainProviderViewModels.length > 0"),p.innerHTML="Terrain",r.appendChild(p);let x=document.createElement("div");x.className="cesium-baseLayerPicker-section",x.setAttribute("data-bind","foreach: _terrainProviders"),r.appendChild(x);let T=document.createElement("div");T.className="cesium-baseLayerPicker-category",x.appendChild(T);let _=document.createElement("div");_.className="cesium-baseLayerPicker-categoryTitle",_.setAttribute("data-bind","text: name"),T.appendChild(_);let L=document.createElement("div");L.className="cesium-baseLayerPicker-choices",L.setAttribute("data-bind","foreach: providers"),T.appendChild(L);let V=document.createElement("div");V.className="cesium-baseLayerPicker-item",V.setAttribute("data-bind",'css: { "cesium-baseLayerPicker-selectedItem" : $data === $parents[1].selectedTerrain },attr: { title: tooltip },visible: creationCommand.canExecute,click: function($data) { $parents[1].selectedTerrain = $data; }'),L.appendChild(V);let Z=document.createElement("img");Z.className="cesium-baseLayerPicker-itemIcon",Z.setAttribute("data-bind","attr: { src: iconUrl }"),Z.setAttribute("draggable","false"),V.appendChild(Z);let G=document.createElement("div");G.className="cesium-baseLayerPicker-itemLabel",G.setAttribute("data-bind","text: name"),V.appendChild(G),Re.applyBindings(n,i),Re.applyBindings(n,r),this._viewModel=n,this._container=e,this._element=i,this._dropPanel=r,this._closeDropDown=function(I){i.contains(I.target)||r.contains(I.target)||(n.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(PH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});PH.prototype.isDestroyed=function(){return!1};PH.prototype.destroy=function(){return bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._element),Re.cleanNode(this._dropPanel),this._container.removeChild(this._element),this._container.removeChild(this._dropPanel),fe(this)};var jD=PH;var Itr=S(C(),1);var Ztr=S(C(),1);function BIe(e){let t=e.creationFunction;d(t.canExecute)||(t=ti(t)),this._creationCommand=t,this.name=e.name,this.tooltip=e.tooltip,this.iconUrl=e.iconUrl,this._category=g(e.category,""),Re.track(this,["name","tooltip","iconUrl"])}Object.defineProperties(BIe.prototype,{creationCommand:{get:function(){return this._creationCommand}},category:{get:function(){return this._category}}});var ra=BIe;function m9t(){let e=[],t=devicePixelRatio>=2;return e.push(new ra({name:"Bing Maps Aerial",iconUrl:Sn("Widgets/Images/ImageryProviders/bingAerial.png"),tooltip:"Bing Maps aerial imagery, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.AERIAL})}})),e.push(new ra({name:"Bing Maps Aerial with Labels",iconUrl:Sn("Widgets/Images/ImageryProviders/bingAerialLabels.png"),tooltip:"Bing Maps aerial imagery with labels, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.AERIAL_WITH_LABELS})}})),e.push(new ra({name:"Bing Maps Roads",iconUrl:Sn("Widgets/Images/ImageryProviders/bingRoads.png"),tooltip:"Bing Maps standard road maps, provided by Cesium ion",category:"Cesium ion",creationFunction:function(){return ug({style:dg.ROAD})}})),e.push(new ra({name:"ArcGIS World Imagery",iconUrl:Sn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png"),tooltip:`ArcGIS World Imagery provides one meter or better satellite and aerial imagery in many parts of the world and lower resolution satellite imagery worldwide. The map includes 15m TerraColor imagery at small and mid-scales (~1:591M down to ~1:288k) for the world. The map features Maxar imagery at 0.3m resolution for select metropolitan areas around the world, 0.5m resolution across the United States and parts of Western Europe, and 1m resolution imagery across the rest of the world. In addition to commercial sources, the World Imagery map features high-resolution aerial photography contributed by the GIS User Community. This imagery ranges from 0.3m to 0.03m resolution (down to ~1:280 nin select communities). For more information on this map, including the terms of use, visit us online at
19026
19019
  https://www.arcgis.com/home/item.html?id=10df2279f9684e4a9f6a7f08febac2a9`,category:"Other",creationFunction:function(){return sg.fromBasemapType(af.SATELLITE,{enablePickFeatures:!1})}})),e.push(new ra({name:"ArcGIS World Hillshade",iconUrl:Sn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png"),tooltip:`ArcGIS World Hillshade map portrays elevation as an artistic hillshade. This map is designed to be used as a backdrop for topographical, soil, hydro, landcover or other outdoor recreational maps. The map was compiled from a variety of sources from several data providers. The basemap has global coverage down to a scale of ~1:72k. In select areas of the United States and Europe, coverage is available down to ~1:9k. For more information on this map, including the terms of use, visit us online at
19027
19020
  https://www.arcgis.com/home/item.html?id=1b243539f4514b6ba35e7d995890db1d`,category:"Other",creationFunction:function(){return sg.fromBasemapType(af.HILLSHADE,{enablePickFeatures:!1})}})),e.push(new ra({name:"Esri World Ocean",iconUrl:Sn("Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png"),tooltip:`ArcGIS World Ocean map is designed to be used as a base map by marine GIS professionals and as a reference map by anyone interested in ocean data. The base map features marine bathymetry. Land features include inland waters and roads overlaid on land cover and shaded relief imagery. The map was compiled from a variety of best available sources from several data providers, including General Bathymetric Chart of the Oceans GEBCO_08 Grid, National Oceanic and Atmospheric Administration (NOAA), and National Geographic, Garmin, HERE, Geonames.org, and Esri, and various other contributors. The base map currently provides coverage for the world down to a scale of ~1:577k, and coverage down to 1:72k in US coastal areas, and various other areas. Coverage down to ~ 1:9k is available limited areas based on regional hydrographic survey data. The base map was designed and developed by Esri. For more information on this map, including our terms of use, visit us online at
19028
19021
  https://www.arcgis.com/home/item.html?id=1e126e7520f9466c9ca28b8f28b5e500`,category:"Other",creationFunction:function(){return sg.fromBasemapType(af.OCEANS,{enablePickFeatures:!1})}})),e.push(new ra({name:"Open\xADStreet\xADMap",iconUrl:Sn("Widgets/Images/ImageryProviders/openStreetMap.png"),tooltip:`OpenStreetMap (OSM) is a collaborative project to create a free editable map of the world.
@@ -19041,7 +19034,14 @@ https://docs.stadiamaps.com/map-styles/alidade-smooth/`,category:"Other",creatio
19041
19034
  https://docs.stadiamaps.com/map-styles/alidade-smooth-dark/`,category:"Other",creationFunction:function(){return new bg({url:"https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/",retinaTiles:t,credit:`&copy; <a href="https://www.stadiamaps.com/" target="_blank">Stadia Maps</a>
19042
19035
  &copy; <a href="https://openmaptiles.org/" target="_blank">OpenMapTiles</a>
19043
19036
  &copy; <a href="https://www.openstreetmap.org/about/" target="_blank">OpenStreetMap contributors</a>`})}})),e.push(new ra({name:"Sentinel-2",iconUrl:Sn("Widgets/Images/ImageryProviders/sentinel-2.png"),tooltip:"Sentinel-2 cloudless by EOX IT Services GmbH (Contains modified Copernicus Sentinel data 2016 and 2017).",category:"Cesium ion",creationFunction:function(){return lg.fromAssetId(3954)}})),e.push(new ra({name:"Blue Marble",iconUrl:Sn("Widgets/Images/ImageryProviders/blueMarble.png"),tooltip:"Blue Marble Next Generation July, 2004 imagery from NASA.",category:"Cesium ion",creationFunction:function(){return lg.fromAssetId(3845)}})),e.push(new ra({name:"Earth at night",iconUrl:Sn("Widgets/Images/ImageryProviders/earthAtNight.png"),tooltip:"The Earth at night, also known as The Black Marble, is a 500 meter resolution global composite imagery layer released by NASA.",category:"Cesium ion",creationFunction:function(){return lg.fromAssetId(3812)}})),e.push(new ra({name:"Natural Earth\xA0II",iconUrl:Sn("Widgets/Images/ImageryProviders/naturalEarthII.png"),tooltip:`Natural Earth II, darkened for contrast.
19044
- http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:function(){return HT.fromUrl(Sn("Assets/Textures/NaturalEarthII"))}})),e}var n3=b9t;var Otr=S(C(),1);function y9t(){let e=[];return e.push(new ra({name:"WGS84 Ellipsoid",iconUrl:Sn("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new Of({ellipsoid:oe.WGS84})}})),e.push(new ra({name:"Cesium World Terrain",iconUrl:Sn("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion",category:"Cesium ion",creationFunction:function(){return O_({requestWaterMask:!0,requestVertexNormals:!0})}})),e}var i3=y9t;var snr=S(C(),1);var qtr=S(C(),1);function g9t(e){let t;if(d(e)){t="Command Statistics";let n=e.commandsInFrustums;for(let i in n)if(n.hasOwnProperty(i)){let o=parseInt(i,10),r;if(o===7)r="1, 2 and 3";else{let s=[];for(let a=2;a>=0;a--){let c=Math.pow(2,a);o>=c&&(s.push(a+1),o-=c)}r=s.reverse().join(" and ")}t+=`<br>&nbsp;&nbsp;&nbsp;&nbsp;${n[i]} in frustum ${r}`}t+=`<br>Total: ${e.totalCommands}`}return t}function poe(e,t,n){let i=Math.min(n,t);return i=Math.max(i,e),i}var x9t=new Dn,T9t=new h;function o3(e,t){let n=this,i=e.canvas,o=new Mu(i);this._eventHandler=o,this._scene=e,this._canvas=i,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=t;let r=this._scene.globe;r.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",Re.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._toggleGeneral=ti(function(){n.generalVisible=!n.generalVisible}),this._togglePrimitives=ti(function(){n.primitivesVisible=!n.primitivesVisible}),this._toggleTerrain=ti(function(){n.terrainVisible=!n.terrainVisible}),this._frustumsSubscription=Re.getObservable(this,"frustums").subscribe(function(l){n._scene.debugShowFrustums=l,n._scene.requestRender()}),this._frustumPlanesSubscription=Re.getObservable(this,"frustumPlanes").subscribe(function(l){n._scene.debugShowFrustumPlanes=l,n._scene.requestRender()}),this._performanceSubscription=Re.getObservable(this,"performance").subscribe(function(l){l?n._performanceDisplay=new yg({container:n._performanceContainer}):n._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=ti(function(){return n._primitive.debugShowBoundingVolume=n.primitiveBoundingSphere,n._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=Re.getObservable(this,"primitiveBoundingSphere").subscribe(function(){n._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=ti(function(){if(n.primitiveReferenceFrame){let l=n._primitive.modelMatrix;n._modelMatrixPrimitive=new gF({modelMatrix:l}),n._scene.primitives.add(n._modelMatrixPrimitive)}else d(n._modelMatrixPrimitive)&&(n._scene.primitives.remove(n._modelMatrixPrimitive),n._modelMatrixPrimitive=void 0);return n._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=Re.getObservable(this,"primitiveReferenceFrame").subscribe(function(){n._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=ti(function(){return n.filterPrimitive?n._scene.debugCommandFilter=function(l){return d(n._modelMatrixPrimitive)&&l.owner===n._modelMatrixPrimitive._primitive?!0:d(n._primitive)?l.owner===n._primitive||l.owner===n._primitive._billboardCollection||l.owner.primitive===n._primitive:!1}:n._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=Re.getObservable(this,"filterPrimitive").subscribe(function(){n._doFilterPrimitive(),n._scene.requestRender()}),this._wireframeSubscription=Re.getObservable(this,"wireframe").subscribe(function(l){r._surface.tileProvider._debug.wireframe=l,n._scene.requestRender()}),this._depthFrustumSubscription=Re.getObservable(this,"depthFrustum").subscribe(function(l){n._scene.debugShowDepthFrustum=l,n._scene.requestRender()}),this._incrementDepthFrustum=ti(function(){let l=n.depthFrustum+1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._decrementDepthFrustum=ti(function(){let l=n.depthFrustum-1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._suspendUpdatesSubscription=Re.getObservable(this,"suspendUpdates").subscribe(function(l){r._surface._debug.suspendLodUpdate=l,l||(n.filterTile=!1)});let s;this._showTileCoordinates=ti(function(){return n.tileCoordinates&&!d(s)?s=e.imageryLayers.addImageryProvider(new GD({tilingScheme:e.terrainProvider.tilingScheme})):!n.tileCoordinates&&d(s)&&(e.imageryLayers.remove(s),s=void 0),!0}),this._tileCoordinatesSubscription=Re.getObservable(this,"tileCoordinates").subscribe(function(){n._showTileCoordinates(),n._scene.requestRender()}),this._tileBoundingSphereSubscription=Re.getObservable(this,"tileBoundingSphere").subscribe(function(){n._showTileBoundingSphere(),n._scene.requestRender()}),this._showTileBoundingSphere=ti(function(){return n.tileBoundingSphere?r._surface.tileProvider._debug.boundingSphereTile=n._tile:r._surface.tileProvider._debug.boundingSphereTile=void 0,n._scene.requestRender(),!0}),this._doFilterTile=ti(function(){return n.filterTile?(n.suspendUpdates=!0,r._surface._tilesToRender=[],d(n._tile)&&n._tile.renderable&&r._surface._tilesToRender.push(n._tile)):n.suspendUpdates=!1,!0}),this._filterTileSubscription=Re.getObservable(this,"filterTile").subscribe(function(){n.doFilterTile(),n._scene.requestRender()});function a(l){let u=n._scene.pick({x:l.position.x,y:l.position.y});d(u)&&(n.primitive=d(u.collection)?u.collection:u.primitive),n._scene.requestRender(),n.pickPrimitiveActive=!1}this._pickPrimitive=ti(function(){n.pickPrimitiveActive=!n.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=Re.getObservable(this,"pickPrimitiveActive").subscribe(function(l){l?o.setInputAction(a,jn.LEFT_CLICK):o.removeInputAction(jn.LEFT_CLICK)});function c(l){let u,m=r.ellipsoid,f=n._scene.camera.getPickRay(l.position,x9t),b=r.pick(f,n._scene,T9t);if(d(b)){let p=m.cartesianToCartographic(b),x=r._surface.tileProvider._tilesToRenderByTextureCount;for(let T=0;!u&&T<x.length;++T){let _=x[T];if(d(_))for(let L=0;!u&&L<_.length;++L){let V=_[L];he.contains(V.rectangle,p)&&(u=V)}}}n.tile=u,n.pickTileActive=!1}this._pickTile=ti(function(){n.pickTileActive=!n.pickTileActive}),this._pickTileActiveSubscription=Re.getObservable(this,"pickTileActive").subscribe(function(l){l?o.setInputAction(c,jn.LEFT_CLICK):o.removeInputAction(jn.LEFT_CLICK)}),this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()})}Object.defineProperties(o3.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let e=this;return ti(function(){e.tile=e.tile.parent})}},selectNW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northwestChild})}},selectNE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northeastChild})}},selectSW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southwestChild})}},selectSE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(e){let t=this._primitive;e!==t&&(this.hasPickedPrimitive=!0,d(t)&&(t.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,d(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=e,e.show=!1,setTimeout(function(){e.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(e){if(d(e)){this.hasPickedTile=!0;let t=this._tile;if(e!==t){this.tileText=`L: ${e.level} X: ${e.x} Y: ${e.y}`,this.tileText+=`<br>SW corner: ${e.rectangle.west}, ${e.rectangle.south}`,this.tileText+=`<br>NE corner: ${e.rectangle.east}, ${e.rectangle.north}`;let n=e.data;d(n)&&d(n.tileBoundingRegion)?this.tileText+=`<br>Min: ${n.tileBoundingRegion.minimumHeight} Max: ${n.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=e,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});o3.prototype._update=function(){this.frustums&&(this.frustumStatisticText=g9t(this._scene.debugFrustumStatistics));let e=this._scene.numberOfFrustums;this._numberOfFrustums=e,this.depthFrustum=poe(1,e,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${e}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};o3.prototype.isDestroyed=function(){return!1};o3.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),fe(this)};var r3=o3;function FH(e,t){e=li(e);let n=document.createElement("div"),i=new r3(t,n);this._viewModel=i,this._container=e;let o=document.createElement("div");this._element=o;let r=document.createElement("div");r.textContent="Cesium Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleDropDown"),o.appendChild(r),o.className="cesium-cesiumInspector",o.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),e.appendChild(this._element);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",o.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=a(s,"General","generalVisible","toggleGeneral"),u=c("Show Frustums","frustums"),m=document.createElement("div");m.className="cesium-cesiumInspector-frustumStatistics",m.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),u.appendChild(m),l.appendChild(u),l.appendChild(c("Show Frustum Planes","frustumPlanes")),l.appendChild(c("Performance Display","performance")),n.className="cesium-cesiumInspector-performanceDisplay",l.appendChild(n);let f=document.createElement("div");f.className="cesium-cesiumInspector-shaderCache",f.setAttribute("data-bind","html: shaderCacheText"),l.appendChild(f);let b=document.createElement("div");l.appendChild(b);let p=document.createElement("span");p.setAttribute("data-bind",'html: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frustum:"'),b.appendChild(p);let x=document.createElement("span");x.setAttribute("data-bind","text: depthFrustumText"),b.appendChild(x);let T=document.createElement("input");T.type="button",T.value="-",T.className="cesium-cesiumInspector-pickButton",T.setAttribute("data-bind","click: decrementDepthFrustum"),b.appendChild(T);let _=document.createElement("input");_.type="button",_.value="+",_.className="cesium-cesiumInspector-pickButton",_.setAttribute("data-bind","click: incrementDepthFrustum"),b.appendChild(_);let L=a(s,"Primitives","primitivesVisible","togglePrimitives"),V=document.createElement("div");V.className="cesium-cesiumInspector-pickSection",L.appendChild(V);let Z=document.createElement("input");Z.type="button",Z.value="Pick a primitive",Z.className="cesium-cesiumInspector-pickButton",Z.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let G=document.createElement("div");G.className="cesium-cesiumInspector-center",G.appendChild(Z),V.appendChild(G),V.appendChild(c("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),V.appendChild(c("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=c("Show only selected","filterPrimitive","hasPickedPrimitive"),V.appendChild(this._primitiveOnly);let I=a(s,"Terrain","terrainVisible","toggleTerrain"),w=document.createElement("div");w.className="cesium-cesiumInspector-pickSection",I.appendChild(w);let W=document.createElement("input");W.type="button",W.value="Pick a tile",W.className="cesium-cesiumInspector-pickButton",W.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),G=document.createElement("div"),G.appendChild(W),G.className="cesium-cesiumInspector-center",w.appendChild(G);let v=document.createElement("div");w.appendChild(v);let N=document.createElement("input");N.type="button",N.value="Parent",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind","click: selectParent");let y=document.createElement("input");y.type="button",y.value="NW",y.className="cesium-cesiumInspector-pickButton",y.setAttribute("data-bind","click: selectNW");let R=document.createElement("input");R.type="button",R.value="NE",R.className="cesium-cesiumInspector-pickButton",R.setAttribute("data-bind","click: selectNE");let E=document.createElement("input");E.type="button",E.value="SW",E.className="cesium-cesiumInspector-pickButton",E.setAttribute("data-bind","click: selectSW");let X=document.createElement("input");X.type="button",X.value="SE",X.className="cesium-cesiumInspector-pickButton",X.setAttribute("data-bind","click: selectSE");let F=document.createElement("div");F.className="cesium-cesiumInspector-tileText",v.className="cesium-cesiumInspector-frustumStatistics",v.appendChild(F),v.setAttribute("data-bind","visible: hasPickedTile"),F.setAttribute("data-bind","html: tileText");let A=document.createElement("div");A.className="cesium-cesiumInspector-relativeText",A.textContent="Select relative:",v.appendChild(A);let Y=document.createElement("table"),U=document.createElement("tr"),k=document.createElement("tr"),D=document.createElement("td");D.appendChild(N);let O=document.createElement("td");O.appendChild(y);let K=document.createElement("td");K.appendChild(R),U.appendChild(D),U.appendChild(O),U.appendChild(K);let j=document.createElement("td"),J=document.createElement("td");J.appendChild(E);let ne=document.createElement("td");ne.appendChild(X),k.appendChild(j),k.appendChild(J),k.appendChild(ne),Y.appendChild(U),Y.appendChild(k),v.appendChild(Y),w.appendChild(c("Show bounding volume","tileBoundingSphere","hasPickedTile")),w.appendChild(c("Show only selected","filterTile","hasPickedTile")),I.appendChild(c("Wireframe","wireframe")),I.appendChild(c("Suspend LOD update","suspendUpdates")),I.appendChild(c("Show tile coordinates","tileCoordinates")),Re.applyBindings(i,this._element)}Object.defineProperties(FH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});FH.prototype.isDestroyed=function(){return!1};FH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var s3=FH;var xnr=S(C(),1);var mnr=S(C(),1);function AH(e,t){d(t)||(t=document.body),t=li(t);let n=this,i=Re.observable(fs.fullscreen),o=Re.observable(fs.enabled),r=t.ownerDocument;this.isFullscreen=void 0,Re.defineProperty(this,"isFullscreen",{get:function(){return i()}}),this.isFullscreenEnabled=void 0,Re.defineProperty(this,"isFullscreenEnabled",{get:function(){return o()},set:function(s){o(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?i()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=ti(function(){fs.fullscreen?fs.exitFullscreen():fs.requestFullscreen(n._fullscreenElement)},Re.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=g(li(e),r.body),this._callback=function(){i(fs.fullscreen)},r.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties(AH.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(e){this._fullscreenElement=e}},command:{get:function(){return this._command}}});AH.prototype.isDestroyed=function(){return!1};AH.prototype.destroy=function(){document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var a3=AH;var _9t="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",S9t="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function DH(e,t){e=li(e);let n=new a3(t,e);n._exitFullScreenPath=S9t,n._enterFullScreenPath=_9t;let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-fullscreenButton",i.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),e.appendChild(i),Re.applyBindings(n,i),this._container=e,this._viewModel=n,this._element=i}Object.defineProperties(DH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});DH.prototype.isDestroyed=function(){return!1};DH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var c3=DH;var Mnr=S(C(),1);var Vnr=S(C(),1);var JIe=1e3;function Ah(e){d(e.geocoderServices)?this._geocoderServices=e.geocoderServices:this._geocoderServices=[new fE({scene:e.scene})],this._viewContainer=e.container,this._scene=e.scene,this._flightDuration=e.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Se,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=jIe,this._handleArrowUp=QIe;let t=this;this._suggestionsVisible=Re.pureComputed(function(){let o=Re.getObservable(t,"_suggestions")().length>0,r=Re.getObservable(t,"_showSuggestions")();return o&&r}),this._searchCommand=ti(function(i){if(i=g(i,sx.SEARCH),t._focusTextbox=!1,d(t._selectedSuggestion))return t.activateSuggestion(t._selectedSuggestion),!1;if(t.hideSuggestions(),t.isSearchInProgress)G9t(t);else return Z9t(t,t._geocoderServices,i)}),this.deselectSuggestion=function(){t._selectedSuggestion=void 0},this.handleKeyDown=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38;return(r||s)&&o.preventDefault(),!0},this.handleKeyUp=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38,a=o.key==="Enter"||o.keyCode===13;return s?QIe(t):r?jIe(t):a&&t._searchCommand(),!0},this.activateSuggestion=function(i){t.hideSuggestions(),t._searchText=i.displayName;let o=i.destination;eXe(t),t.destinationFound(t,o)},this.hideSuggestions=function(){t._showSuggestions=!1,t._selectedSuggestion=void 0},this.showSuggestions=function(){t._showSuggestions=!0},this.handleMouseover=function(i,o){i!==t._selectedSuggestion&&(t._selectedSuggestion=i)},this.keepExpanded=!1,this.autoComplete=g(e.autocomplete,!0),this.destinationFound=g(e.destinationFound,Ah.flyToDestination),this._focusTextbox=!1,Re.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let n=Re.getObservable(this,"_searchText");n.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=n.subscribe(function(){Ah._updateSearchSuggestions(t)}),this.isSearchInProgress=void 0,Re.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,Re.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(i){this._searchText=i}}),this.flightDuration=void 0,Re.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(i){this._flightDuration=i}})}Object.defineProperties(Ah.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});Ah.prototype.destroy=function(){this._suggestionSubscription.dispose()};function QIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.indexOf(e._selectedSuggestion);if(t===-1||t===0){e._selectedSuggestion=void 0;return}let n=t-1;e._selectedSuggestion=e._suggestions[n],Ah._adjustSuggestionsScroll(e,n)}function jIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.length,i=(e._suggestions.indexOf(e._selectedSuggestion)+1)%t;e._selectedSuggestion=e._suggestions[i],Ah._adjustSuggestionsScroll(e,i)}function C9t(e,t){let n=d(t)?t.availability:void 0;return d(n)?m1(t,[e]).then(function(i){return e=i[0],e.height+=JIe,e}):(e.height+=JIe,Promise.resolve(e))}function L9t(e,t){let n=e._scene,i=n.ellipsoid,o=n.camera,r=n.terrainProvider,s=t,a;return t instanceof he?M.equalsEpsilon(t.south,t.north,M.EPSILON7)&&M.equalsEpsilon(t.east,t.west,M.EPSILON7)?t=he.center(t):a=CC(t,n):t=i.cartesianToCartographic(t),d(a)||(a=C9t(t,r)),a.then(function(c){s=i.cartographicToCartesian(c)}).finally(function(){o.flyTo({destination:s,complete:function(){e._complete.raiseEvent()},duration:e._flightDuration,endTransform:P.IDENTITY})})}async function V9t(e,t,n){try{return{state:"fulfilled",value:await e.geocode(t,n),credits:e.credit}}catch(i){return{state:"rejected",reason:i}}}async function Z9t(e,t,n){let i=e._searchText;if($Ie(i)){e.showSuggestions();return}e._isSearchInProgress=!0,e._wasGeocodeCancelled=!1;let o,r;for(o=0;o<t.length;o++){if(e._wasGeocodeCancelled)return;if(r=await V9t(t[o],i,n),d(r)&&r.state==="fulfilled"&&r.value.length>0)break}if(e._wasGeocodeCancelled)return;e._isSearchInProgress=!1,boe(e);let s=r.value;if(r.state==="fulfilled"&&d(s)&&s.length>0){e._searchText=s[0].displayName,e.destinationFound(e,s[0].destination);let a=qIe(e,bV.getCreditsFromResult(s[0]));d(a)||foe(e,t[o].credit);return}e._searchText=`${i} (not found)`}function foe(e,t){d(t)&&!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&(e._scene.frameState.creditDisplay.addStaticCredit(t),e._previousCredits.push(t))}function qIe(e,t){return d(t)&&t.forEach(n=>foe(e,n)),t}function boe(e){!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&e._previousCredits.forEach(t=>{e._scene.frameState.creditDisplay.removeStaticCredit(t)}),e._previousCredits.length=0}function R9t(e,t){let n=li(e._viewContainer),i=n.getElementsByClassName("search-results")[0],r=n.getElementsByTagName("li")[t];if(t===0){i.scrollTop=0;return}let s=r.offsetTop;s+r.clientHeight>i.clientHeight?i.scrollTop=s+r.clientHeight:s<i.scrollTop&&(i.scrollTop=s)}function G9t(e){e._isSearchInProgress&&(e._isSearchInProgress=!1,e._wasGeocodeCancelled=!0)}function $Ie(e){return/^\s*$/.test(e)}function eXe(e){Re.getObservable(e,"_suggestions").removeAll()}async function E9t(e){if(!e.autoComplete)return;let t=e._searchText;if(eXe(e),boe(e),!$Ie(t))for(let n of e._geocoderServices){let i=await n.geocode(t,sx.AUTOCOMPLETE);if(e._suggestions=e._suggestions.concat(i),i.length>0){let o=!0;i.forEach(r=>{let s=bV.getCreditsFromResult(r);o=o&&!d(s),qIe(e,s)}),o&&foe(e,n.credit)}if(e._suggestions.length>=5)return}}Ah.flyToDestination=L9t;Ah._updateSearchSuggestions=E9t;Ah._adjustSuggestionsScroll=R9t;Ah.prototype.isDestroyed=function(){return!1};Ah.prototype.destroy=function(){return boe(this),fe(this)};var l3=Ah;var I9t="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",X9t="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function UH(e){let t=li(e.container),n=new l3(e);n._startSearchPath=I9t,n._stopSearchPath=X9t;let i=document.createElement("form");i.setAttribute("data-bind","submit: search");let o=document.createElement("input");o.type="search",o.className="cesium-geocoder-input",o.setAttribute("placeholder","Enter an address or landmark..."),o.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){o.select()},0)},o.addEventListener("focus",this._onTextBoxFocus,!1),i.appendChild(o),this._textBox=o;let r=document.createElement("span");r.className="cesium-geocoder-searchButton",r.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),i.appendChild(r),t.appendChild(i);let s=document.createElement("div");s.className="search-results",s.setAttribute("data-bind","visible: _suggestionsVisible");let a=document.createElement("ul");a.setAttribute("data-bind","foreach: _suggestions");let c=document.createElement("li");a.appendChild(c),c.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),s.appendChild(a),t.appendChild(s),Re.applyBindings(n,i),Re.applyBindings(n,s),this._container=t,this._searchSuggestionsContainer=s,this._viewModel=n,this._form=i,this._onInputBegin=function(l){let u=l.target;typeof l.composedPath=="function"&&(u=l.composedPath()[0]),t.contains(u)||(n._focusTextbox=!1,n.hideSuggestions())},this._onInputEnd=function(l){n._focusTextbox=!0,n.showSuggestions()},bn.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),t.addEventListener("pointerup",this._onInputEnd,!0),t.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),t.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),t.addEventListener("touchend",this._onInputEnd,!0),t.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(UH.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});UH.prototype.isDestroyed=function(){return!1};UH.prototype.destroy=function(){let e=this._container;return bn.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),e.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),e.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),e.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),Re.cleanNode(this._form),Re.cleanNode(this._searchSuggestionsContainer),e.removeChild(this._form),e.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),fe(this)};var d3=UH;var znr=S(C(),1);var vnr=S(C(),1);function tXe(e,t){this._scene=e,this._duration=t;let n=this;this._command=ti(function(){n._scene.camera.flyHome(n._duration)}),this.tooltip="View Home",Re.track(this,["tooltip"])}Object.defineProperties(tXe.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}}});var u3=tXe;function kH(e,t,n){e=li(e);let i=new u3(t,n);i._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-home-button",o.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(kH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kH.prototype.isDestroyed=function(){return!1};kH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var m3=kH;var $nr=S(C(),1);var Knr=S(C(),1);function M9t(e,t){t.currentTarget.parentElement.parentElement.querySelector(`#${e.name}-expander`).classList.toggle("active"),t.currentTarget.textContent=t.currentTarget.textContent==="+"?"-":"+"}function iXe(e,t){Re.track(e);for(let n=0;n<e.sublayers.length;n++)iXe(e.sublayers[n],t)}function zH(e){return e.modelName==="FullModel"}function oXe(e){return e.modelName==="Overview"}function rXe(e){return oXe(e)||zH(e)}function nXe(e,t){if(rXe(e)){e.visibility=!1;for(let i=0;i<e.sublayers.length;i++)e.sublayers[i].visibility=!0;let n={name:e.name,modelName:e.modelName,disable:Re.observable(!1),index:t.sublayers.length};return t.topLayers.push(n),t.sublayers.push(e),n}}function w9t(e,t){if(rXe(e)){t.sublayers.forEach(i=>i.visibility=!1),t.sublayers[e.index].visibility=!0;let n=document.getElementById("bsl-wrapper");zH(e)?(t.currentLevel=t.selectedLevel,n.style.display="block"):(t.selectedLevel=t.currentLevel,t.currentLevel="All",n.style.display="none")}}async function W9t(e,t){try{let n=e.getAttributeNames();for(let i=0;i<n.length;i++)if(n[i]==="BldgLevel"){let o=e.getAttributeValues(n[i]);for(let r=0;r<o.length;r++)t.push(o[r])}t.sort((i,o)=>i-o),t.unshift("All")}catch(n){console.log(`There was an error getting attributes: ${n}`)}}function P9t(e){let t=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:Re.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:Re.observable(!0),index:-1}],currentLayer:Re.observable(),expandClickHandler:M9t,setOptionDisable:function(i,o){Re.applyBindingsToNode(i,{disable:o.disable},o)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(i){w9t(i,t.viewModel)});let n=e.sublayers;for(let i=0;i<n.length;i++){iXe(n[i],this.viewModel);let o=nXe(n[i],this.viewModel);d(o)&&(oXe(o)||!d(this.viewModel.defaultLayer)&&zH(o))&&(this.viewModel.defaultLayer=o)}if(this.viewModel.topLayers.length===1&&n.length>0){e.show=!1;let i={name:"Full Model",modelName:"FullModel",visibility:e.show,sublayers:e.sublayers};this.viewModel.defaultLayer=nXe(i,this.viewModel),this.viewModel.currentLayer.subscribe(function(o){e.show=zH(o)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return W9t(e,this.levels),this.viewModel.currentLevel.subscribe(function(i){i!=="All"?e.filterByAttributes([{name:"BldgLevel",values:[i]}]):e.filterByAttributes()}),this.viewModel}var h3=P9t;function v9t(e,t){let n=document.getElementById(e),i=document.createElement("div");i.classList.add("cesium-viewer-i3s-explorer"),i.innerHTML=`
19037
+ http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:function(){return HT.fromUrl(Sn("Assets/Textures/NaturalEarthII"))}})),e}var qD=m9t;var Wtr=S(C(),1);function h9t(){let e=[];return e.push(new ra({name:"WGS84 Ellipsoid",iconUrl:Sn("Widgets/Images/TerrainProviders/Ellipsoid.png"),tooltip:"WGS84 standard ellipsoid, also known as EPSG:4326",category:"Cesium ion",creationFunction:function(){return new Of({ellipsoid:oe.WGS84})}})),e.push(new ra({name:"Cesium World Terrain",iconUrl:Sn("Widgets/Images/TerrainProviders/CesiumWorldTerrain.png"),tooltip:"High-resolution global terrain tileset curated from several datasources and hosted by Cesium ion",category:"Cesium ion",creationFunction:function(){return O_({requestWaterMask:!0,requestVertexNormals:!0})}})),e}var $D=h9t;var Otr=S(C(),1);var Atr=S(C(),1);function p9t(e){return function(t){let n=e._scene.pick(t.position);d(n)&&(n.primitive instanceof ta||n.primitive instanceof Il)&&(e.tileset=n.primitive),e.pickActive=!1}}function KIe(e,t){t?e._eventHandler.setInputAction(function(n){let i=e._scene.pick(n.endPosition);d(i)&&(i.primitive instanceof ta||i.primitive instanceof Il)&&(e.tileset=i.primitive)},jn.MOUSE_MOVE):(e._eventHandler.removeInputAction(jn.MOUSE_MOVE),e.picking=e.picking)}var f9t={maximumFractionDigits:3};function e3(e){let t=e/1048576;return t<1?t.toLocaleString(void 0,f9t):Math.round(t).toLocaleString()}function t3(e,t){if(!d(e))return"";let n=t?e._statisticsPerPass[ro.PICK]:e._statisticsPerPass[ro.RENDER],i='<ul class="cesium-cesiumInspector-statistics">';return i+=`<li><strong>Visited: </strong>${n.visited.toLocaleString()}</li><li><strong>Selected: </strong>${n.selected.toLocaleString()}</li><li><strong>Commands: </strong>${n.numberOfCommands.toLocaleString()}</li>`,i+="</ul>",t||(i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Requests: </strong>${n.numberOfPendingRequests.toLocaleString()}</li><li><strong>Attempted: </strong>${n.numberOfAttemptedRequests.toLocaleString()}</li><li><strong>Processing: </strong>${n.numberOfTilesProcessing.toLocaleString()}</li><li><strong>Content Ready: </strong>${n.numberOfTilesWithContentReady.toLocaleString()}</li><li><strong>Total: </strong>${n.numberOfTilesTotal.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Features Selected: </strong>${n.numberOfFeaturesSelected.toLocaleString()}</li><li><strong>Features Loaded: </strong>${n.numberOfFeaturesLoaded.toLocaleString()}</li><li><strong>Points Selected: </strong>${n.numberOfPointsSelected.toLocaleString()}</li><li><strong>Points Loaded: </strong>${n.numberOfPointsLoaded.toLocaleString()}</li><li><strong>Triangles Selected: </strong>${n.numberOfTrianglesSelected.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Tiles styled: </strong>${n.numberOfTilesStyled.toLocaleString()}</li><li><strong>Features styled: </strong>${n.numberOfFeaturesStyled.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Children Union Culled: </strong>${n.numberOfTilesCulledWithChildrenUnion.toLocaleString()}</li>`,i+="</ul>",i+='<ul class="cesium-cesiumInspector-statistics">',i+=`<li><strong>Geometry Memory (MB): </strong>${e3(n.geometryByteLength)}</li><li><strong>Texture Memory (MB): </strong>${e3(n.texturesByteLength)}</li><li><strong>Batch Table Memory (MB): </strong>${e3(n.batchTableByteLength)}</li>`,i+="</ul>"),i}function HIe(){let e=ji.statistics;return`
19038
+ <ul class="cesium-cesiumInspector-statistics">
19039
+ <li><strong>Geometry Memory (MB): </strong>${e3(e.geometryByteLength)}</li>
19040
+ <li><strong>Texture Memory (MB): </strong>${e3(e.texturesByteLength)}</li>
19041
+ </ul>
19042
+ `}var b9t=[{text:"Highlight",value:_l.HIGHLIGHT},{text:"Replace",value:_l.REPLACE},{text:"Mix",value:_l.MIX}],OIe=new z(1,1,0,.4),y9t=new z,vH=new z;function Rc(e,t){let n=this,i=e.canvas;this._eventHandler=new Mu(i),this._scene=e,this._performanceContainer=t,this._canvas=i,this._performanceDisplay=new yg({container:t}),this._statisticsText="",this._pickStatisticsText="",this._resourceCacheStatisticsText="",this._editorError="",this.performance=!1,this.showStatistics=!0,this.showPickStatistics=!0,this.showResourceCacheStatistics=!1,this.inspectorVisible=!0,this.tilesetVisible=!1,this.displayVisible=!1,this.updateVisible=!1,this.loggingVisible=!1,this.styleVisible=!1,this.tileDebugLabelsVisible=!1,this.optimizationVisible=!1,this.styleString="{}",this.hasEnabledWireframe=!1,this._tileset=void 0,this._feature=void 0,this._tile=void 0,Re.track(this,["performance","inspectorVisible","_statisticsText","_pickStatisticsText","_resourceCacheStatisticsText","_editorError","showPickStatistics","showStatistics","showResourceCacheStatistics","tilesetVisible","displayVisible","updateVisible","loggingVisible","styleVisible","optimizationVisible","tileDebugLabelsVisible","styleString","_feature","_tile","_tileset","hasEnabledWireframe"]),this._properties=Re.observable({}),this.properties=[],Re.defineProperty(this,"properties",function(){let D=[],O=n._properties();for(let K in O)O.hasOwnProperty(K)&&D.push(K);return D});let o=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceError",{get:function(){return o()},set:function(D){o(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceError=D)}}),this.dynamicScreenSpaceError=!1;let r=Re.observable();Re.defineProperty(this,"colorBlendMode",{get:function(){return r()},set:function(D){r(D),d(n._tileset)&&(n._tileset.colorBlendMode=D,n._scene.requestRender())}}),this.colorBlendMode=_l.HIGHLIGHT;let s=Re.observable(),a=Re.observable();Re.defineProperty(this,"picking",{get:function(){return a()},set:function(D){a(D),D?n._eventHandler.setInputAction(function(O){let K=e.pick(O.endPosition);if(K instanceof Ba?(n.feature=K,n.tile=K.content.tile):d(K)&&d(K.content)?(n.feature=void 0,n.tile=K.content.tile):(n.feature=void 0,n.tile=void 0),!!d(n._tileset)){if(s&&d(K)&&d(K.content)){let j;e.pickPositionSupported&&(j=e.pickPosition(O.endPosition),d(j)&&(n._tileset.debugPickPosition=j)),n._tileset.debugPickedTile=K.content.tile}else n._tileset.debugPickedTile=void 0;n._scene.requestRender()}},jn.MOUSE_MOVE):(n.feature=void 0,n.tile=void 0,n._eventHandler.removeInputAction(jn.MOUSE_MOVE))}}),this.picking=!0;let c=Re.observable();Re.defineProperty(this,"colorize",{get:function(){return c()},set:function(D){c(D),d(n._tileset)&&(n._tileset.debugColorizeTiles=D,n._scene.requestRender())}}),this.colorize=!1;let l=Re.observable();Re.defineProperty(this,"wireframe",{get:function(){return l()},set:function(D){l(D),d(n._tileset)&&(n._tileset.debugWireframe=D,n._scene.requestRender())}}),this.wireframe=!1;let u=Re.observable();Re.defineProperty(this,"showBoundingVolumes",{get:function(){return u()},set:function(D){u(D),d(n._tileset)&&(n._tileset.debugShowBoundingVolume=D,n._scene.requestRender())}}),this.showBoundingVolumes=!1;let m=Re.observable();Re.defineProperty(this,"showContentBoundingVolumes",{get:function(){return m()},set:function(D){m(D),d(n._tileset)&&(n._tileset.debugShowContentBoundingVolume=D,n._scene.requestRender())}}),this.showContentBoundingVolumes=!1;let f=Re.observable();Re.defineProperty(this,"showRequestVolumes",{get:function(){return f()},set:function(D){f(D),d(n._tileset)&&(n._tileset.debugShowViewerRequestVolume=D,n._scene.requestRender())}}),this.showRequestVolumes=!1;let b=Re.observable();Re.defineProperty(this,"freezeFrame",{get:function(){return b()},set:function(D){b(D),d(n._tileset)&&(n._tileset.debugFreezeFrame=D,n._scene.debugShowFrustumPlanes=D,n._scene.requestRender())}}),this.freezeFrame=!1,Re.defineProperty(this,"showOnlyPickedTileDebugLabel",{get:function(){return s()},set:function(D){s(D),d(n._tileset)&&(n._tileset.debugPickedTileLabelOnly=D,n._scene.requestRender())}}),this.showOnlyPickedTileDebugLabel=!1;let p=Re.observable();Re.defineProperty(this,"showGeometricError",{get:function(){return p()},set:function(D){p(D),d(n._tileset)&&(n._tileset.debugShowGeometricError=D,n._scene.requestRender())}}),this.showGeometricError=!1;let x=Re.observable();Re.defineProperty(this,"showRenderingStatistics",{get:function(){return x()},set:function(D){x(D),d(n._tileset)&&(n._tileset.debugShowRenderingStatistics=D,n._scene.requestRender())}}),this.showRenderingStatistics=!1;let T=Re.observable();Re.defineProperty(this,"showMemoryUsage",{get:function(){return T()},set:function(D){T(D),d(n._tileset)&&(n._tileset.debugShowMemoryUsage=D,n._scene.requestRender())}}),this.showMemoryUsage=!1;let _=Re.observable();Re.defineProperty(this,"showUrl",{get:function(){return _()},set:function(D){_(D),d(n._tileset)&&(n._tileset.debugShowUrl=D,n._scene.requestRender())}}),this.showUrl=!1;let L=Re.observable();Re.defineProperty(this,"maximumScreenSpaceError",{get:function(){return L()},set:function(D){D=Number(D),isNaN(D)||(L(D),d(n._tileset)&&(n._tileset.maximumScreenSpaceError=D))}}),this.maximumScreenSpaceError=16;let V=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorDensity",{get:function(){return V()},set:function(D){D=Number(D),isNaN(D)||(V(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=D))}}),this.dynamicScreenSpaceErrorDensity=2e-4,this.dynamicScreenSpaceErrorDensitySliderValue=void 0,Re.defineProperty(this,"dynamicScreenSpaceErrorDensitySliderValue",{get:function(){return Math.pow(V(),1/6)},set:function(D){let O=Math.pow(D,6);V(O),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorDensity=O)}});let Z=Re.observable();Re.defineProperty(this,"dynamicScreenSpaceErrorFactor",{get:function(){return Z()},set:function(D){D=Number(D),isNaN(D)||(Z(D),d(n._tileset)&&(n._tileset.dynamicScreenSpaceErrorFactor=D))}}),this.dynamicScreenSpaceErrorFactor=24;let G=p9t(this),I=Re.observable();Re.defineProperty(this,"pickActive",{get:function(){return I()},set:function(D){I(D),D?n._eventHandler.setInputAction(G,jn.LEFT_CLICK):n._eventHandler.removeInputAction(jn.LEFT_CLICK)}});let w=Re.observable();Re.defineProperty(this,"pointCloudShading",{get:function(){return w()},set:function(D){w(D),d(n._tileset)&&(n._tileset.pointCloudShading.attenuation=D)}}),this.pointCloudShading=!1;let W=Re.observable();Re.defineProperty(this,"geometricErrorScale",{get:function(){return W()},set:function(D){D=Number(D),isNaN(D)||(W(D),d(n._tileset)&&(n._tileset.pointCloudShading.geometricErrorScale=D))}}),this.geometricErrorScale=1;let v=Re.observable();Re.defineProperty(this,"maximumAttenuation",{get:function(){return v()},set:function(D){D=Number(D),isNaN(D)||(v(D),d(n._tileset)&&(n._tileset.pointCloudShading.maximumAttenuation=D===0?void 0:D))}}),this.maximumAttenuation=0;let N=Re.observable();Re.defineProperty(this,"baseResolution",{get:function(){return N()},set:function(D){D=Number(D),isNaN(D)||(N(D),d(n._tileset)&&(n._tileset.pointCloudShading.baseResolution=D===0?void 0:D))}}),this.baseResolution=0;let y=Re.observable();Re.defineProperty(this,"eyeDomeLighting",{get:function(){return y()},set:function(D){y(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLighting=D)}}),this.eyeDomeLighting=!1;let R=Re.observable();Re.defineProperty(this,"eyeDomeLightingStrength",{get:function(){return R()},set:function(D){D=Number(D),isNaN(D)||(R(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingStrength=D))}}),this.eyeDomeLightingStrength=1;let E=Re.observable();Re.defineProperty(this,"eyeDomeLightingRadius",{get:function(){return E()},set:function(D){D=Number(D),isNaN(D)||(E(D),d(n._tileset)&&(n._tileset.pointCloudShading.eyeDomeLightingRadius=D))}}),this.eyeDomeLightingRadius=1,this.pickActive=!1;let X=Re.observable();Re.defineProperty(this,"skipLevelOfDetail",{get:function(){return X()},set:function(D){X(D),d(n._tileset)&&(n._tileset.skipLevelOfDetail=D)}}),this.skipLevelOfDetail=!0;let F=Re.observable();Re.defineProperty(this,"skipScreenSpaceErrorFactor",{get:function(){return F()},set:function(D){D=Number(D),isNaN(D)||(F(D),d(n._tileset)&&(n._tileset.skipScreenSpaceErrorFactor=D))}}),this.skipScreenSpaceErrorFactor=16;let A=Re.observable();Re.defineProperty(this,"baseScreenSpaceError",{get:function(){return A()},set:function(D){D=Number(D),isNaN(D)||(A(D),d(n._tileset)&&(n._tileset.baseScreenSpaceError=D))}}),this.baseScreenSpaceError=1024;let Y=Re.observable();Re.defineProperty(this,"skipLevels",{get:function(){return Y()},set:function(D){D=Number(D),isNaN(D)||(Y(D),d(n._tileset)&&(n._tileset.skipLevels=D))}}),this.skipLevels=1;let U=Re.observable();Re.defineProperty(this,"immediatelyLoadDesiredLevelOfDetail",{get:function(){return U()},set:function(D){U(D),d(n._tileset)&&(n._tileset.immediatelyLoadDesiredLevelOfDetail=D)}}),this.immediatelyLoadDesiredLevelOfDetail=!1;let k=Re.observable();Re.defineProperty(this,"loadSiblings",{get:function(){return k()},set:function(D){k(D),d(n._tileset)&&(n._tileset.loadSiblings=D)}}),this.loadSiblings=!1,this._style=void 0,this._shouldStyle=!1,this._definedProperties=["properties","dynamicScreenSpaceError","colorBlendMode","picking","colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","maximumScreenSpaceError","dynamicScreenSpaceErrorDensity","baseScreenSpaceError","skipScreenSpaceErrorFactor","skipLevelOfDetail","skipLevels","immediatelyLoadDesiredLevelOfDetail","loadSiblings","dynamicScreenSpaceErrorDensitySliderValue","dynamicScreenSpaceErrorFactor","pickActive","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl","pointCloudShading","geometricErrorScale","maximumAttenuation","baseResolution","eyeDomeLighting","eyeDomeLightingStrength","eyeDomeLightingRadius"],this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()}),d(this._tileset)||KIe(this,!0)}Object.defineProperties(Rc.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},statisticsText:{get:function(){return this._statisticsText}},pickStatisticsText:{get:function(){return this._pickStatisticsText}},resourceCacheStatisticsText:{get:function(){return this._resourceCacheStatisticsText}},colorBlendModes:{get:function(){return b9t}},editorError:{get:function(){return this._editorError}},tileset:{get:function(){return this._tileset},set:function(e){if(this._tileset=e,this._style=void 0,this.styleString="{}",this.feature=void 0,this.tile=void 0,d(e)){this._properties(e.properties);let t=["colorize","wireframe","showBoundingVolumes","showContentBoundingVolumes","showRequestVolumes","freezeFrame","showOnlyPickedTileDebugLabel","showGeometricError","showRenderingStatistics","showMemoryUsage","showUrl"],n=t.length;for(let o=0;o<n;++o){let r=t[o];this[r]=this[r]}this.maximumScreenSpaceError=e.maximumScreenSpaceError,this.dynamicScreenSpaceError=e.dynamicScreenSpaceError,this.dynamicScreenSpaceErrorDensity=e.dynamicScreenSpaceErrorDensity,this.dynamicScreenSpaceErrorFactor=e.dynamicScreenSpaceErrorFactor,this.colorBlendMode=e.colorBlendMode,this.skipLevelOfDetail=e.skipLevelOfDetail,this.skipScreenSpaceErrorFactor=e.skipScreenSpaceErrorFactor,this.baseScreenSpaceError=e.baseScreenSpaceError,this.skipLevels=e.skipLevels,this.immediatelyLoadDesiredLevelOfDetail=e.immediatelyLoadDesiredLevelOfDetail,this.loadSiblings=e.loadSiblings,this.hasEnabledWireframe=e._enableDebugWireframe;let i=e.pointCloudShading;this.pointCloudShading=i.attenuation,this.geometricErrorScale=i.geometricErrorScale,this.maximumAttenuation=i.maximumAttenuation?i.maximumAttenuation:0,this.baseResolution=i.baseResolution?i.baseResolution:0,this.eyeDomeLighting=i.eyeDomeLighting,this.eyeDomeLightingStrength=i.eyeDomeLightingStrength,this.eyeDomeLightingRadius=i.eyeDomeLightingRadius,this._scene.requestRender()}else this._properties({});this._statisticsText=t3(e,!1),this._pickStatisticsText=t3(e,!0),this._resourceCacheStatisticsText=HIe(),KIe(this,!1)}},feature:{get:function(){return this._feature},set:function(e){if(this._feature===e)return;let t=this._feature;d(t)&&!t.content.isDestroyed()&&(!this.colorize&&d(this._style)?t.color=d(this._style.color)?this._style.color.evaluateColor(t,y9t):z.WHITE:t.color=vH,this._scene.requestRender()),d(e)&&(z.clone(e.color,vH),e.color=OIe,this._scene.requestRender()),this._feature=e}},tile:{get:function(){return this._tile},set:function(e){if(this._tile===e)return;let t=this._tile;d(t)&&!t.isDestroyed()&&!hoe(t.content)&&(t.color=vH,this._scene.requestRender()),d(e)&&!hoe(e.content)&&(z.clone(e.color,vH),e.color=OIe,this._scene.requestRender()),this._tile=e}}});function hoe(e){if(!d(e))return!1;if(e.featuresLength>0)return!0;let t=e.innerContents;if(d(t)){let n=t.length;for(let i=0;i<n;++i)if(!hoe(t[i]))return!1;return!0}return!1}Rc.prototype.togglePickTileset=function(){this.pickActive=!this.pickActive};Rc.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Rc.prototype.toggleTileset=function(){this.tilesetVisible=!this.tilesetVisible};Rc.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Rc.prototype.toggleUpdate=function(){this.updateVisible=!this.updateVisible};Rc.prototype.toggleLogging=function(){this.loggingVisible=!this.loggingVisible};Rc.prototype.toggleStyle=function(){this.styleVisible=!this.styleVisible};Rc.prototype.toggleTileDebugLabels=function(){this.tileDebugLabelsVisible=!this.tileDebugLabelsVisible};Rc.prototype.toggleOptimization=function(){this.optimizationVisible=!this.optimizationVisible};Rc.prototype.trimTilesCache=function(){d(this._tileset)&&this._tileset.trimLoadedTiles()};Rc.prototype.compileStyle=function(){let e=this._tileset;if(!(!d(e)||this.styleString===JSON.stringify(e.style))){this._editorError="";try{this.styleString.length===0&&(this.styleString="{}"),this._style=new TC(JSON.parse(this.styleString)),this._shouldStyle=!0,this._scene.requestRender()}catch(t){this._editorError=t.toString()}this.feature=this._feature,this.tile=this._tile}};Rc.prototype.styleEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,o=n.selectionEnd,r=o,a=n.value.slice(i,o).split(`
19043
+ `),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),r-=2):(a[l]=a[l].substr(1),r-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,r+=2;let u=a.join(`
19044
+ `);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileStyle();return!0};Rc.prototype._update=function(){let e=this._tileset;if(this.performance&&this._performanceDisplay.update(),d(e)){if(e.isDestroyed()){this.tile=void 0,this.feature=void 0,this.tileset=void 0;return}let t=e.style;this._style!==e.style&&(this._shouldStyle?(e.style=this._style,this._shouldStyle=!1):(this._style=t,this.styleString=JSON.stringify(t.style,null," ")))}this.showStatistics&&(this._statisticsText=t3(e,!1),this._pickStatisticsText=t3(e,!0),this._resourceCacheStatisticsText=HIe())};Rc.prototype.isDestroyed=function(){return!1};Rc.prototype.destroy=function(){this._eventHandler.destroy(),this._removePostRenderEvent();let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};Rc.getStatistics=t3;var n3=Rc;function NH(e,t){e=li(e);let n=document.createElement("div"),i=document.createElement("div");i.setAttribute("data-bind","visible: performance");let o=new n3(t,i);this._viewModel=o,this._container=e,this._element=n;let r=document.createElement("div");r.textContent="3D Tiles / M3D Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleInspector"),n.appendChild(r),n.className="cesium-cesiumInspector cesium-3DTilesInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",n.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=jc.createRangeInput,u=jc.createButton,m=a(s,"Tileset","tilesetVisible","toggleTileset"),f=a(s,"Display","displayVisible","toggleDisplay"),b=a(s,"Update","updateVisible","toggleUpdate"),p=a(s,"Logging","loggingVisible","toggleLogging"),x=a(s,"Tile Debug Labels","tileDebugLabelsVisible","toggleTileDebugLabels"),T=a(s,"Style","styleVisible","toggleStyle"),_=a(s,"Optimization","optimizationVisible","toggleOptimization"),L=document.createElement("div");L.className="field-group";let V=document.createElement("label");V.className="field-label",V.appendChild(document.createTextNode("Properties: "));let Z=document.createElement("div");Z.setAttribute("data-bind","text: properties"),L.appendChild(V),L.appendChild(Z),m.appendChild(L),m.appendChild(u("Pick Tileset","togglePickTileset","pickActive")),m.appendChild(u("Trim Tiles Cache","trimTilesCache")),m.appendChild(c("Enable Picking","picking")),f.appendChild(c("Colorize","colorize"));let G=f.appendChild(c("Wireframe","wireframe","_tileset === undefined || hasEnabledWireframe")),I=document.createElement("p");I.setAttribute("data-bind","visible: _tileset !== undefined && !hasEnabledWireframe"),I.setAttribute("class","cesium-3DTilesInspector-disabledElementsInfo"),I.innerText="Set enableDebugWireframe to true in the tileset constructor to enable this option.",G.appendChild(I),f.appendChild(c("Bounding Volumes","showBoundingVolumes")),f.appendChild(c("Content Volumes","showContentBoundingVolumes")),f.appendChild(c("Request Volumes","showRequestVolumes")),f.appendChild(c("Point Cloud Shading","pointCloudShading"));let w=document.createElement("div");w.setAttribute("data-bind","visible: pointCloudShading"),w.appendChild(l("Geometric Error Scale","geometricErrorScale",0,2,.01)),w.appendChild(l("Maximum Attenuation","maximumAttenuation",0,32,1)),w.appendChild(l("Base Resolution","baseResolution",0,1,.01)),w.appendChild(c("Eye Dome Lighting (EDL)","eyeDomeLighting")),f.appendChild(w);let W=document.createElement("div");W.setAttribute("data-bind","visible: eyeDomeLighting"),W.appendChild(l("EDL Strength","eyeDomeLightingStrength",0,2,.1)),W.appendChild(l("EDL Radius","eyeDomeLightingRadius",0,4,.1)),w.appendChild(W),b.appendChild(c("Freeze Frame","freezeFrame")),b.appendChild(c("Dynamic Screen Space Error","dynamicScreenSpaceError"));let v=document.createElement("div");v.appendChild(l("Maximum Screen Space Error","maximumScreenSpaceError",0,128,1)),b.appendChild(v);let N=document.createElement("div");N.setAttribute("data-bind","visible: dynamicScreenSpaceError"),N.appendChild(l("Screen Space Error Density","dynamicScreenSpaceErrorDensitySliderValue",0,1,.005,"dynamicScreenSpaceErrorDensity")),N.appendChild(l("Screen Space Error Factor","dynamicScreenSpaceErrorFactor",1,32,.1)),b.appendChild(N),p.appendChild(c("Performance","performance")),p.appendChild(i),p.appendChild(c("Statistics","showStatistics"));let y=document.createElement("div");y.className="cesium-3dTilesInspector-statistics",y.setAttribute("data-bind","html: statisticsText, visible: showStatistics"),p.appendChild(y),p.appendChild(c("Pick Statistics","showPickStatistics"));let R=document.createElement("div");R.className="cesium-3dTilesInspector-statistics",R.setAttribute("data-bind","html: pickStatisticsText, visible: showPickStatistics"),p.appendChild(R),p.appendChild(c("Resource Cache Statistics","showResourceCacheStatistics"));let E=document.createElement("div");E.className="cesium-3dTilesInspector-statistics",E.setAttribute("data-bind","html: resourceCacheStatisticsText, visible: showResourceCacheStatistics"),p.appendChild(E);let X=document.createElement("div");T.appendChild(X),X.appendChild(document.createTextNode("Color Blend Mode: "));let F=document.createElement("select");F.setAttribute("data-bind",'options: colorBlendModes, optionsText: "text", optionsValue: "value", value: colorBlendMode'),X.appendChild(F);let A=document.createElement("textarea");A.setAttribute("data-bind","textInput: styleString, event: { keydown: styleEditorKeyPress }"),X.className="cesium-cesiumInspector-styleEditor",X.appendChild(A);let Y=u("Compile (Ctrl+Enter)","compileStyle");X.appendChild(Y);let U=document.createElement("div");U.className="cesium-cesiumInspector-error",U.setAttribute("data-bind","text: editorError"),X.appendChild(U),x.appendChild(c("Show Picked Only","showOnlyPickedTileDebugLabel")),x.appendChild(c("Geometric Error","showGeometricError")),x.appendChild(c("Rendering Statistics","showRenderingStatistics")),x.appendChild(c("Memory Usage (MB)","showMemoryUsage")),x.appendChild(c("Url","showUrl")),_.appendChild(c("Skip Tile LODs","skipLevelOfDetail"));let k=document.createElement("div");k.appendChild(l("Skip SSE Factor","skipScreenSpaceErrorFactor",1,50,1)),_.appendChild(k);let D=document.createElement("div");D.appendChild(l("SSE before skipping LOD","baseScreenSpaceError",0,4096,1)),_.appendChild(D);let O=document.createElement("div");O.appendChild(l("Min. levels to skip","skipLevels",0,10,1)),_.appendChild(O),_.appendChild(c("Load only tiles that meet the max SSE.","immediatelyLoadDesiredLevelOfDetail")),_.appendChild(c("Load siblings of visible tiles","loadSiblings")),Re.applyBindings(o,n)}Object.defineProperties(NH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});NH.prototype.isDestroyed=function(){return!1};NH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var i3=NH;var snr=S(C(),1);var qtr=S(C(),1);function g9t(e){let t;if(d(e)){t="Command Statistics";let n=e.commandsInFrustums;for(let i in n)if(n.hasOwnProperty(i)){let o=parseInt(i,10),r;if(o===7)r="1, 2 and 3";else{let s=[];for(let a=2;a>=0;a--){let c=Math.pow(2,a);o>=c&&(s.push(a+1),o-=c)}r=s.reverse().join(" and ")}t+=`<br>&nbsp;&nbsp;&nbsp;&nbsp;${n[i]} in frustum ${r}`}t+=`<br>Total: ${e.totalCommands}`}return t}function poe(e,t,n){let i=Math.min(n,t);return i=Math.max(i,e),i}var x9t=new Dn,T9t=new h;function o3(e,t){let n=this,i=e.canvas,o=new Mu(i);this._eventHandler=o,this._scene=e,this._canvas=i,this._primitive=void 0,this._tile=void 0,this._modelMatrixPrimitive=void 0,this._performanceDisplay=void 0,this._performanceContainer=t;let r=this._scene.globe;r.depthTestAgainstTerrain=!0,this.frustums=!1,this.frustumPlanes=!1,this.performance=!1,this.shaderCacheText="",this.primitiveBoundingSphere=!1,this.primitiveReferenceFrame=!1,this.filterPrimitive=!1,this.tileBoundingSphere=!1,this.filterTile=!1,this.wireframe=!1,this.depthFrustum=1,this._numberOfFrustums=1,this.suspendUpdates=!1,this.tileCoordinates=!1,this.frustumStatisticText=!1,this.tileText="",this.hasPickedPrimitive=!1,this.hasPickedTile=!1,this.pickPrimitiveActive=!1,this.pickTileActive=!1,this.dropDownVisible=!0,this.generalVisible=!0,this.primitivesVisible=!1,this.terrainVisible=!1,this.depthFrustumText="",Re.track(this,["frustums","frustumPlanes","performance","shaderCacheText","primitiveBoundingSphere","primitiveReferenceFrame","filterPrimitive","tileBoundingSphere","filterTile","wireframe","depthFrustum","suspendUpdates","tileCoordinates","frustumStatisticText","tileText","hasPickedPrimitive","hasPickedTile","pickPrimitiveActive","pickTileActive","dropDownVisible","generalVisible","primitivesVisible","terrainVisible","depthFrustumText"]),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._toggleGeneral=ti(function(){n.generalVisible=!n.generalVisible}),this._togglePrimitives=ti(function(){n.primitivesVisible=!n.primitivesVisible}),this._toggleTerrain=ti(function(){n.terrainVisible=!n.terrainVisible}),this._frustumsSubscription=Re.getObservable(this,"frustums").subscribe(function(l){n._scene.debugShowFrustums=l,n._scene.requestRender()}),this._frustumPlanesSubscription=Re.getObservable(this,"frustumPlanes").subscribe(function(l){n._scene.debugShowFrustumPlanes=l,n._scene.requestRender()}),this._performanceSubscription=Re.getObservable(this,"performance").subscribe(function(l){l?n._performanceDisplay=new yg({container:n._performanceContainer}):n._performanceContainer.innerHTML=""}),this._showPrimitiveBoundingSphere=ti(function(){return n._primitive.debugShowBoundingVolume=n.primitiveBoundingSphere,n._scene.requestRender(),!0}),this._primitiveBoundingSphereSubscription=Re.getObservable(this,"primitiveBoundingSphere").subscribe(function(){n._showPrimitiveBoundingSphere()}),this._showPrimitiveReferenceFrame=ti(function(){if(n.primitiveReferenceFrame){let l=n._primitive.modelMatrix;n._modelMatrixPrimitive=new gF({modelMatrix:l}),n._scene.primitives.add(n._modelMatrixPrimitive)}else d(n._modelMatrixPrimitive)&&(n._scene.primitives.remove(n._modelMatrixPrimitive),n._modelMatrixPrimitive=void 0);return n._scene.requestRender(),!0}),this._primitiveReferenceFrameSubscription=Re.getObservable(this,"primitiveReferenceFrame").subscribe(function(){n._showPrimitiveReferenceFrame()}),this._doFilterPrimitive=ti(function(){return n.filterPrimitive?n._scene.debugCommandFilter=function(l){return d(n._modelMatrixPrimitive)&&l.owner===n._modelMatrixPrimitive._primitive?!0:d(n._primitive)?l.owner===n._primitive||l.owner===n._primitive._billboardCollection||l.owner.primitive===n._primitive:!1}:n._scene.debugCommandFilter=void 0,!0}),this._filterPrimitiveSubscription=Re.getObservable(this,"filterPrimitive").subscribe(function(){n._doFilterPrimitive(),n._scene.requestRender()}),this._wireframeSubscription=Re.getObservable(this,"wireframe").subscribe(function(l){r._surface.tileProvider._debug.wireframe=l,n._scene.requestRender()}),this._depthFrustumSubscription=Re.getObservable(this,"depthFrustum").subscribe(function(l){n._scene.debugShowDepthFrustum=l,n._scene.requestRender()}),this._incrementDepthFrustum=ti(function(){let l=n.depthFrustum+1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._decrementDepthFrustum=ti(function(){let l=n.depthFrustum-1;return n.depthFrustum=poe(1,n._numberOfFrustums,l),n._scene.requestRender(),!0}),this._suspendUpdatesSubscription=Re.getObservable(this,"suspendUpdates").subscribe(function(l){r._surface._debug.suspendLodUpdate=l,l||(n.filterTile=!1)});let s;this._showTileCoordinates=ti(function(){return n.tileCoordinates&&!d(s)?s=e.imageryLayers.addImageryProvider(new GD({tilingScheme:e.terrainProvider.tilingScheme})):!n.tileCoordinates&&d(s)&&(e.imageryLayers.remove(s),s=void 0),!0}),this._tileCoordinatesSubscription=Re.getObservable(this,"tileCoordinates").subscribe(function(){n._showTileCoordinates(),n._scene.requestRender()}),this._tileBoundingSphereSubscription=Re.getObservable(this,"tileBoundingSphere").subscribe(function(){n._showTileBoundingSphere(),n._scene.requestRender()}),this._showTileBoundingSphere=ti(function(){return n.tileBoundingSphere?r._surface.tileProvider._debug.boundingSphereTile=n._tile:r._surface.tileProvider._debug.boundingSphereTile=void 0,n._scene.requestRender(),!0}),this._doFilterTile=ti(function(){return n.filterTile?(n.suspendUpdates=!0,r._surface._tilesToRender=[],d(n._tile)&&n._tile.renderable&&r._surface._tilesToRender.push(n._tile)):n.suspendUpdates=!1,!0}),this._filterTileSubscription=Re.getObservable(this,"filterTile").subscribe(function(){n.doFilterTile(),n._scene.requestRender()});function a(l){let u=n._scene.pick({x:l.position.x,y:l.position.y});d(u)&&(n.primitive=d(u.collection)?u.collection:u.primitive),n._scene.requestRender(),n.pickPrimitiveActive=!1}this._pickPrimitive=ti(function(){n.pickPrimitiveActive=!n.pickPrimitiveActive}),this._pickPrimitiveActiveSubscription=Re.getObservable(this,"pickPrimitiveActive").subscribe(function(l){l?o.setInputAction(a,jn.LEFT_CLICK):o.removeInputAction(jn.LEFT_CLICK)});function c(l){let u,m=r.ellipsoid,f=n._scene.camera.getPickRay(l.position,x9t),b=r.pick(f,n._scene,T9t);if(d(b)){let p=m.cartesianToCartographic(b),x=r._surface.tileProvider._tilesToRenderByTextureCount;for(let T=0;!u&&T<x.length;++T){let _=x[T];if(d(_))for(let L=0;!u&&L<_.length;++L){let V=_[L];he.contains(V.rectangle,p)&&(u=V)}}}n.tile=u,n.pickTileActive=!1}this._pickTile=ti(function(){n.pickTileActive=!n.pickTileActive}),this._pickTileActiveSubscription=Re.getObservable(this,"pickTileActive").subscribe(function(l){l?o.setInputAction(c,jn.LEFT_CLICK):o.removeInputAction(jn.LEFT_CLICK)}),this._removePostRenderEvent=e.postRender.addEventListener(function(){n._update()})}Object.defineProperties(o3.prototype,{scene:{get:function(){return this._scene}},performanceContainer:{get:function(){return this._performanceContainer}},toggleDropDown:{get:function(){return this._toggleDropDown}},showPrimitiveBoundingSphere:{get:function(){return this._showPrimitiveBoundingSphere}},showPrimitiveReferenceFrame:{get:function(){return this._showPrimitiveReferenceFrame}},doFilterPrimitive:{get:function(){return this._doFilterPrimitive}},incrementDepthFrustum:{get:function(){return this._incrementDepthFrustum}},decrementDepthFrustum:{get:function(){return this._decrementDepthFrustum}},showTileCoordinates:{get:function(){return this._showTileCoordinates}},showTileBoundingSphere:{get:function(){return this._showTileBoundingSphere}},doFilterTile:{get:function(){return this._doFilterTile}},toggleGeneral:{get:function(){return this._toggleGeneral}},togglePrimitives:{get:function(){return this._togglePrimitives}},toggleTerrain:{get:function(){return this._toggleTerrain}},pickPrimitive:{get:function(){return this._pickPrimitive}},pickTile:{get:function(){return this._pickTile}},selectParent:{get:function(){let e=this;return ti(function(){e.tile=e.tile.parent})}},selectNW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northwestChild})}},selectNE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.northeastChild})}},selectSW:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southwestChild})}},selectSE:{get:function(){let e=this;return ti(function(){e.tile=e.tile.southeastChild})}},primitive:{get:function(){return this._primitive},set:function(e){let t=this._primitive;e!==t&&(this.hasPickedPrimitive=!0,d(t)&&(t.debugShowBoundingVolume=!1),this._scene.debugCommandFilter=void 0,d(this._modelMatrixPrimitive)&&(this._scene.primitives.remove(this._modelMatrixPrimitive),this._modelMatrixPrimitive=void 0),this._primitive=e,e.show=!1,setTimeout(function(){e.show=!0},50),this.showPrimitiveBoundingSphere(),this.showPrimitiveReferenceFrame(),this.doFilterPrimitive())}},tile:{get:function(){return this._tile},set:function(e){if(d(e)){this.hasPickedTile=!0;let t=this._tile;if(e!==t){this.tileText=`L: ${e.level} X: ${e.x} Y: ${e.y}`,this.tileText+=`<br>SW corner: ${e.rectangle.west}, ${e.rectangle.south}`,this.tileText+=`<br>NE corner: ${e.rectangle.east}, ${e.rectangle.north}`;let n=e.data;d(n)&&d(n.tileBoundingRegion)?this.tileText+=`<br>Min: ${n.tileBoundingRegion.minimumHeight} Max: ${n.tileBoundingRegion.maximumHeight}`:this.tileText+="<br>(Tile is not loaded)"}this._tile=e,this.showTileBoundingSphere(),this.doFilterTile()}else this.hasPickedTile=!1,this._tile=void 0}}});o3.prototype._update=function(){this.frustums&&(this.frustumStatisticText=g9t(this._scene.debugFrustumStatistics));let e=this._scene.numberOfFrustums;this._numberOfFrustums=e,this.depthFrustum=poe(1,e,this.depthFrustum),this.depthFrustumText=`${this.depthFrustum} of ${e}`,this.performance&&this._performanceDisplay.update(),this.primitiveReferenceFrame&&(this._modelMatrixPrimitive.modelMatrix=this._primitive.modelMatrix),this.shaderCacheText=`Cached shaders: ${this._scene.context.shaderCache.numberOfShaders}`};o3.prototype.isDestroyed=function(){return!1};o3.prototype.destroy=function(){return this._eventHandler.destroy(),this._removePostRenderEvent(),this._frustumsSubscription.dispose(),this._frustumPlanesSubscription.dispose(),this._performanceSubscription.dispose(),this._primitiveBoundingSphereSubscription.dispose(),this._primitiveReferenceFrameSubscription.dispose(),this._filterPrimitiveSubscription.dispose(),this._wireframeSubscription.dispose(),this._depthFrustumSubscription.dispose(),this._suspendUpdatesSubscription.dispose(),this._tileCoordinatesSubscription.dispose(),this._tileBoundingSphereSubscription.dispose(),this._filterTileSubscription.dispose(),this._pickPrimitiveActiveSubscription.dispose(),this._pickTileActiveSubscription.dispose(),fe(this)};var r3=o3;function FH(e,t){e=li(e);let n=document.createElement("div"),i=new r3(t,n);this._viewModel=i,this._container=e;let o=document.createElement("div");this._element=o;let r=document.createElement("div");r.textContent="Cesium Inspector",r.className="cesium-cesiumInspector-button",r.setAttribute("data-bind","click: toggleDropDown"),o.appendChild(r),o.className="cesium-cesiumInspector",o.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : dropDownVisible, "cesium-cesiumInspector-hidden" : !dropDownVisible }'),e.appendChild(this._element);let s=document.createElement("div");s.className="cesium-cesiumInspector-dropDown",o.appendChild(s);let a=jc.createSection,c=jc.createCheckbox,l=a(s,"General","generalVisible","toggleGeneral"),u=c("Show Frustums","frustums"),m=document.createElement("div");m.className="cesium-cesiumInspector-frustumStatistics",m.setAttribute("data-bind","visible: frustums, html: frustumStatisticText"),u.appendChild(m),l.appendChild(u),l.appendChild(c("Show Frustum Planes","frustumPlanes")),l.appendChild(c("Performance Display","performance")),n.className="cesium-cesiumInspector-performanceDisplay",l.appendChild(n);let f=document.createElement("div");f.className="cesium-cesiumInspector-shaderCache",f.setAttribute("data-bind","html: shaderCacheText"),l.appendChild(f);let b=document.createElement("div");l.appendChild(b);let p=document.createElement("span");p.setAttribute("data-bind",'html: "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Frustum:"'),b.appendChild(p);let x=document.createElement("span");x.setAttribute("data-bind","text: depthFrustumText"),b.appendChild(x);let T=document.createElement("input");T.type="button",T.value="-",T.className="cesium-cesiumInspector-pickButton",T.setAttribute("data-bind","click: decrementDepthFrustum"),b.appendChild(T);let _=document.createElement("input");_.type="button",_.value="+",_.className="cesium-cesiumInspector-pickButton",_.setAttribute("data-bind","click: incrementDepthFrustum"),b.appendChild(_);let L=a(s,"Primitives","primitivesVisible","togglePrimitives"),V=document.createElement("div");V.className="cesium-cesiumInspector-pickSection",L.appendChild(V);let Z=document.createElement("input");Z.type="button",Z.value="Pick a primitive",Z.className="cesium-cesiumInspector-pickButton",Z.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickPrimitiveActive}, click: pickPrimitive');let G=document.createElement("div");G.className="cesium-cesiumInspector-center",G.appendChild(Z),V.appendChild(G),V.appendChild(c("Show bounding sphere","primitiveBoundingSphere","hasPickedPrimitive")),V.appendChild(c("Show reference frame","primitiveReferenceFrame","hasPickedPrimitive")),this._primitiveOnly=c("Show only selected","filterPrimitive","hasPickedPrimitive"),V.appendChild(this._primitiveOnly);let I=a(s,"Terrain","terrainVisible","toggleTerrain"),w=document.createElement("div");w.className="cesium-cesiumInspector-pickSection",I.appendChild(w);let W=document.createElement("input");W.type="button",W.value="Pick a tile",W.className="cesium-cesiumInspector-pickButton",W.setAttribute("data-bind",'css: {"cesium-cesiumInspector-pickButtonHighlight" : pickTileActive}, click: pickTile'),G=document.createElement("div"),G.appendChild(W),G.className="cesium-cesiumInspector-center",w.appendChild(G);let v=document.createElement("div");w.appendChild(v);let N=document.createElement("input");N.type="button",N.value="Parent",N.className="cesium-cesiumInspector-pickButton",N.setAttribute("data-bind","click: selectParent");let y=document.createElement("input");y.type="button",y.value="NW",y.className="cesium-cesiumInspector-pickButton",y.setAttribute("data-bind","click: selectNW");let R=document.createElement("input");R.type="button",R.value="NE",R.className="cesium-cesiumInspector-pickButton",R.setAttribute("data-bind","click: selectNE");let E=document.createElement("input");E.type="button",E.value="SW",E.className="cesium-cesiumInspector-pickButton",E.setAttribute("data-bind","click: selectSW");let X=document.createElement("input");X.type="button",X.value="SE",X.className="cesium-cesiumInspector-pickButton",X.setAttribute("data-bind","click: selectSE");let F=document.createElement("div");F.className="cesium-cesiumInspector-tileText",v.className="cesium-cesiumInspector-frustumStatistics",v.appendChild(F),v.setAttribute("data-bind","visible: hasPickedTile"),F.setAttribute("data-bind","html: tileText");let A=document.createElement("div");A.className="cesium-cesiumInspector-relativeText",A.textContent="Select relative:",v.appendChild(A);let Y=document.createElement("table"),U=document.createElement("tr"),k=document.createElement("tr"),D=document.createElement("td");D.appendChild(N);let O=document.createElement("td");O.appendChild(y);let K=document.createElement("td");K.appendChild(R),U.appendChild(D),U.appendChild(O),U.appendChild(K);let j=document.createElement("td"),J=document.createElement("td");J.appendChild(E);let ne=document.createElement("td");ne.appendChild(X),k.appendChild(j),k.appendChild(J),k.appendChild(ne),Y.appendChild(U),Y.appendChild(k),v.appendChild(Y),w.appendChild(c("Show bounding volume","tileBoundingSphere","hasPickedTile")),w.appendChild(c("Show only selected","filterTile","hasPickedTile")),I.appendChild(c("Wireframe","wireframe")),I.appendChild(c("Suspend LOD update","suspendUpdates")),I.appendChild(c("Show tile coordinates","tileCoordinates")),Re.applyBindings(i,this._element)}Object.defineProperties(FH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});FH.prototype.isDestroyed=function(){return!1};FH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};var s3=FH;var xnr=S(C(),1);var mnr=S(C(),1);function AH(e,t){d(t)||(t=document.body),t=li(t);let n=this,i=Re.observable(fs.fullscreen),o=Re.observable(fs.enabled),r=t.ownerDocument;this.isFullscreen=void 0,Re.defineProperty(this,"isFullscreen",{get:function(){return i()}}),this.isFullscreenEnabled=void 0,Re.defineProperty(this,"isFullscreenEnabled",{get:function(){return o()},set:function(s){o(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return this.isFullscreenEnabled?i()?"Exit full screen":"Full screen":"Full screen unavailable"}),this._command=ti(function(){fs.fullscreen?fs.exitFullscreen():fs.requestFullscreen(n._fullscreenElement)},Re.getObservable(this,"isFullscreenEnabled")),this._fullscreenElement=g(li(e),r.body),this._callback=function(){i(fs.fullscreen)},r.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties(AH.prototype,{fullscreenElement:{get:function(){return this._fullscreenElement},set:function(e){this._fullscreenElement=e}},command:{get:function(){return this._command}}});AH.prototype.isDestroyed=function(){return!1};AH.prototype.destroy=function(){document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var a3=AH;var _9t="M 83.96875 17.5625 L 83.96875 17.59375 L 76.65625 24.875 L 97.09375 24.96875 L 76.09375 45.96875 L 81.9375 51.8125 L 102.78125 30.9375 L 102.875 51.15625 L 110.15625 43.875 L 110.1875 17.59375 L 83.96875 17.5625 z M 44.125 17.59375 L 17.90625 17.625 L 17.9375 43.90625 L 25.21875 51.1875 L 25.3125 30.96875 L 46.15625 51.8125 L 52 45.96875 L 31 25 L 51.4375 24.90625 L 44.125 17.59375 z M 46.0625 76.03125 L 25.1875 96.875 L 25.09375 76.65625 L 17.8125 83.9375 L 17.8125 110.21875 L 44 110.25 L 51.3125 102.9375 L 30.90625 102.84375 L 51.875 81.875 L 46.0625 76.03125 z M 82 76.15625 L 76.15625 82 L 97.15625 103 L 76.71875 103.0625 L 84.03125 110.375 L 110.25 110.34375 L 110.21875 84.0625 L 102.9375 76.8125 L 102.84375 97 L 82 76.15625 z",S9t="M 104.34375 17.5625 L 83.5 38.4375 L 83.40625 18.21875 L 76.125 25.5 L 76.09375 51.78125 L 102.3125 51.8125 L 102.3125 51.78125 L 109.625 44.5 L 89.1875 44.40625 L 110.1875 23.40625 L 104.34375 17.5625 z M 23.75 17.59375 L 17.90625 23.4375 L 38.90625 44.4375 L 18.5 44.53125 L 25.78125 51.8125 L 52 51.78125 L 51.96875 25.53125 L 44.6875 18.25 L 44.625 38.46875 L 23.75 17.59375 z M 25.6875 76.03125 L 18.375 83.3125 L 38.78125 83.40625 L 17.8125 104.40625 L 23.625 110.25 L 44.5 89.375 L 44.59375 109.59375 L 51.875 102.3125 L 51.875 76.0625 L 25.6875 76.03125 z M 102.375 76.15625 L 76.15625 76.1875 L 76.1875 102.4375 L 83.46875 109.71875 L 83.5625 89.53125 L 104.40625 110.375 L 110.25 104.53125 L 89.25 83.53125 L 109.6875 83.46875 L 102.375 76.15625 z";function DH(e,t){e=li(e);let n=new a3(t,e);n._exitFullScreenPath=S9t,n._enterFullScreenPath=_9t;let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-fullscreenButton",i.setAttribute("data-bind","attr: { title: tooltip },click: command,enable: isFullscreenEnabled,cesiumSvgPath: { path: isFullscreen ? _exitFullScreenPath : _enterFullScreenPath, width: 128, height: 128 }"),e.appendChild(i),Re.applyBindings(n,i),this._container=e,this._viewModel=n,this._element=i}Object.defineProperties(DH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});DH.prototype.isDestroyed=function(){return!1};DH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var c3=DH;var Mnr=S(C(),1);var Vnr=S(C(),1);var JIe=1e3;function Ah(e){d(e.geocoderServices)?this._geocoderServices=e.geocoderServices:this._geocoderServices=[new fE({scene:e.scene})],this._viewContainer=e.container,this._scene=e.scene,this._flightDuration=e.flightDuration,this._searchText="",this._isSearchInProgress=!1,this._wasGeocodeCancelled=!1,this._previousCredits=[],this._complete=new Se,this._suggestions=[],this._selectedSuggestion=void 0,this._showSuggestions=!0,this._handleArrowDown=jIe,this._handleArrowUp=QIe;let t=this;this._suggestionsVisible=Re.pureComputed(function(){let o=Re.getObservable(t,"_suggestions")().length>0,r=Re.getObservable(t,"_showSuggestions")();return o&&r}),this._searchCommand=ti(function(i){if(i=g(i,sx.SEARCH),t._focusTextbox=!1,d(t._selectedSuggestion))return t.activateSuggestion(t._selectedSuggestion),!1;if(t.hideSuggestions(),t.isSearchInProgress)G9t(t);else return Z9t(t,t._geocoderServices,i)}),this.deselectSuggestion=function(){t._selectedSuggestion=void 0},this.handleKeyDown=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38;return(r||s)&&o.preventDefault(),!0},this.handleKeyUp=function(i,o){let r=o.key==="ArrowDown"||o.key==="Down"||o.keyCode===40,s=o.key==="ArrowUp"||o.key==="Up"||o.keyCode===38,a=o.key==="Enter"||o.keyCode===13;return s?QIe(t):r?jIe(t):a&&t._searchCommand(),!0},this.activateSuggestion=function(i){t.hideSuggestions(),t._searchText=i.displayName;let o=i.destination;eXe(t),t.destinationFound(t,o)},this.hideSuggestions=function(){t._showSuggestions=!1,t._selectedSuggestion=void 0},this.showSuggestions=function(){t._showSuggestions=!0},this.handleMouseover=function(i,o){i!==t._selectedSuggestion&&(t._selectedSuggestion=i)},this.keepExpanded=!1,this.autoComplete=g(e.autocomplete,!0),this.destinationFound=g(e.destinationFound,Ah.flyToDestination),this._focusTextbox=!1,Re.track(this,["_searchText","_isSearchInProgress","keepExpanded","_suggestions","_selectedSuggestion","_showSuggestions","_focusTextbox"]);let n=Re.getObservable(this,"_searchText");n.extend({rateLimit:{timeout:500}}),this._suggestionSubscription=n.subscribe(function(){Ah._updateSearchSuggestions(t)}),this.isSearchInProgress=void 0,Re.defineProperty(this,"isSearchInProgress",{get:function(){return this._isSearchInProgress}}),this.searchText=void 0,Re.defineProperty(this,"searchText",{get:function(){return this.isSearchInProgress?"Searching...":this._searchText},set:function(i){this._searchText=i}}),this.flightDuration=void 0,Re.defineProperty(this,"flightDuration",{get:function(){return this._flightDuration},set:function(i){this._flightDuration=i}})}Object.defineProperties(Ah.prototype,{complete:{get:function(){return this._complete}},scene:{get:function(){return this._scene}},search:{get:function(){return this._searchCommand}},selectedSuggestion:{get:function(){return this._selectedSuggestion}},suggestions:{get:function(){return this._suggestions}}});Ah.prototype.destroy=function(){this._suggestionSubscription.dispose()};function QIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.indexOf(e._selectedSuggestion);if(t===-1||t===0){e._selectedSuggestion=void 0;return}let n=t-1;e._selectedSuggestion=e._suggestions[n],Ah._adjustSuggestionsScroll(e,n)}function jIe(e){if(e._suggestions.length===0)return;let t=e._suggestions.length,i=(e._suggestions.indexOf(e._selectedSuggestion)+1)%t;e._selectedSuggestion=e._suggestions[i],Ah._adjustSuggestionsScroll(e,i)}function C9t(e,t){let n=d(t)?t.availability:void 0;return d(n)?m1(t,[e]).then(function(i){return e=i[0],e.height+=JIe,e}):(e.height+=JIe,Promise.resolve(e))}function L9t(e,t){let n=e._scene,i=n.ellipsoid,o=n.camera,r=n.terrainProvider,s=t,a;return t instanceof he?M.equalsEpsilon(t.south,t.north,M.EPSILON7)&&M.equalsEpsilon(t.east,t.west,M.EPSILON7)?t=he.center(t):a=CC(t,n):t=i.cartesianToCartographic(t),d(a)||(a=C9t(t,r)),a.then(function(c){s=i.cartographicToCartesian(c)}).finally(function(){o.flyTo({destination:s,complete:function(){e._complete.raiseEvent()},duration:e._flightDuration,endTransform:P.IDENTITY})})}async function V9t(e,t,n){try{return{state:"fulfilled",value:await e.geocode(t,n),credits:e.credit}}catch(i){return{state:"rejected",reason:i}}}async function Z9t(e,t,n){let i=e._searchText;if($Ie(i)){e.showSuggestions();return}e._isSearchInProgress=!0,e._wasGeocodeCancelled=!1;let o,r;for(o=0;o<t.length;o++){if(e._wasGeocodeCancelled)return;if(r=await V9t(t[o],i,n),d(r)&&r.state==="fulfilled"&&r.value.length>0)break}if(e._wasGeocodeCancelled)return;e._isSearchInProgress=!1,boe(e);let s=r.value;if(r.state==="fulfilled"&&d(s)&&s.length>0){e._searchText=s[0].displayName,e.destinationFound(e,s[0].destination);let a=qIe(e,bV.getCreditsFromResult(s[0]));d(a)||foe(e,t[o].credit);return}e._searchText=`${i} (not found)`}function foe(e,t){d(t)&&!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&(e._scene.frameState.creditDisplay.addStaticCredit(t),e._previousCredits.push(t))}function qIe(e,t){return d(t)&&t.forEach(n=>foe(e,n)),t}function boe(e){!e._scene.isDestroyed()&&!e._scene.frameState.creditDisplay.isDestroyed()&&e._previousCredits.forEach(t=>{e._scene.frameState.creditDisplay.removeStaticCredit(t)}),e._previousCredits.length=0}function R9t(e,t){let n=li(e._viewContainer),i=n.getElementsByClassName("search-results")[0],r=n.getElementsByTagName("li")[t];if(t===0){i.scrollTop=0;return}let s=r.offsetTop;s+r.clientHeight>i.clientHeight?i.scrollTop=s+r.clientHeight:s<i.scrollTop&&(i.scrollTop=s)}function G9t(e){e._isSearchInProgress&&(e._isSearchInProgress=!1,e._wasGeocodeCancelled=!0)}function $Ie(e){return/^\s*$/.test(e)}function eXe(e){Re.getObservable(e,"_suggestions").removeAll()}async function E9t(e){if(!e.autoComplete)return;let t=e._searchText;if(eXe(e),boe(e),!$Ie(t))for(let n of e._geocoderServices){let i=await n.geocode(t,sx.AUTOCOMPLETE);if(e._suggestions=e._suggestions.concat(i),i.length>0){let o=!0;i.forEach(r=>{let s=bV.getCreditsFromResult(r);o=o&&!d(s),qIe(e,s)}),o&&foe(e,n.credit)}if(e._suggestions.length>=5)return}}Ah.flyToDestination=L9t;Ah._updateSearchSuggestions=E9t;Ah._adjustSuggestionsScroll=R9t;Ah.prototype.isDestroyed=function(){return!1};Ah.prototype.destroy=function(){return boe(this),fe(this)};var l3=Ah;var I9t="M29.772,26.433l-7.126-7.126c0.96-1.583,1.523-3.435,1.524-5.421C24.169,8.093,19.478,3.401,13.688,3.399C7.897,3.401,3.204,8.093,3.204,13.885c0,5.789,4.693,10.481,10.484,10.481c1.987,0,3.839-0.563,5.422-1.523l7.128,7.127L29.772,26.433zM7.203,13.885c0.006-3.582,2.903-6.478,6.484-6.486c3.579,0.008,6.478,2.904,6.484,6.486c-0.007,3.58-2.905,6.476-6.484,6.484C10.106,20.361,7.209,17.465,7.203,13.885z",X9t="M24.778,21.419 19.276,15.917 24.777,10.415 21.949,7.585 16.447,13.087 10.945,7.585 8.117,10.415 13.618,15.917 8.116,21.419 10.946,24.248 16.447,18.746 21.948,24.248z";function UH(e){let t=li(e.container),n=new l3(e);n._startSearchPath=I9t,n._stopSearchPath=X9t;let i=document.createElement("form");i.setAttribute("data-bind","submit: search");let o=document.createElement("input");o.type="search",o.className="cesium-geocoder-input",o.setAttribute("placeholder","Enter an address or landmark..."),o.setAttribute("data-bind",'textInput: searchText,disable: isSearchInProgress,event: { keyup: handleKeyUp, keydown: handleKeyDown, mouseover: deselectSuggestion },css: { "cesium-geocoder-input-wide" : keepExpanded || searchText.length > 0 },hasFocus: _focusTextbox'),this._onTextBoxFocus=function(){setTimeout(function(){o.select()},0)},o.addEventListener("focus",this._onTextBoxFocus,!1),i.appendChild(o),this._textBox=o;let r=document.createElement("span");r.className="cesium-geocoder-searchButton",r.setAttribute("data-bind","click: search,cesiumSvgPath: { path: isSearchInProgress ? _stopSearchPath : _startSearchPath, width: 32, height: 32 }"),i.appendChild(r),t.appendChild(i);let s=document.createElement("div");s.className="search-results",s.setAttribute("data-bind","visible: _suggestionsVisible");let a=document.createElement("ul");a.setAttribute("data-bind","foreach: _suggestions");let c=document.createElement("li");a.appendChild(c),c.setAttribute("data-bind","text: $data.displayName, click: $parent.activateSuggestion, event: { mouseover: $parent.handleMouseover}, css: { active: $data === $parent._selectedSuggestion }"),s.appendChild(a),t.appendChild(s),Re.applyBindings(n,i),Re.applyBindings(n,s),this._container=t,this._searchSuggestionsContainer=s,this._viewModel=n,this._form=i,this._onInputBegin=function(l){let u=l.target;typeof l.composedPath=="function"&&(u=l.composedPath()[0]),t.contains(u)||(n._focusTextbox=!1,n.hideSuggestions())},this._onInputEnd=function(l){n._focusTextbox=!0,n.showSuggestions()},bn.supportsPointerEvents()?(document.addEventListener("pointerdown",this._onInputBegin,!0),t.addEventListener("pointerup",this._onInputEnd,!0),t.addEventListener("pointercancel",this._onInputEnd,!0)):(document.addEventListener("mousedown",this._onInputBegin,!0),t.addEventListener("mouseup",this._onInputEnd,!0),document.addEventListener("touchstart",this._onInputBegin,!0),t.addEventListener("touchend",this._onInputEnd,!0),t.addEventListener("touchcancel",this._onInputEnd,!0))}Object.defineProperties(UH.prototype,{container:{get:function(){return this._container}},searchSuggestionsContainer:{get:function(){return this._searchSuggestionsContainer}},viewModel:{get:function(){return this._viewModel}}});UH.prototype.isDestroyed=function(){return!1};UH.prototype.destroy=function(){let e=this._container;return bn.supportsPointerEvents()?(document.removeEventListener("pointerdown",this._onInputBegin,!0),e.removeEventListener("pointerup",this._onInputEnd,!0)):(document.removeEventListener("mousedown",this._onInputBegin,!0),e.removeEventListener("mouseup",this._onInputEnd,!0),document.removeEventListener("touchstart",this._onInputBegin,!0),e.removeEventListener("touchend",this._onInputEnd,!0)),this._viewModel.destroy(),Re.cleanNode(this._form),Re.cleanNode(this._searchSuggestionsContainer),e.removeChild(this._form),e.removeChild(this._searchSuggestionsContainer),this._textBox.removeEventListener("focus",this._onTextBoxFocus,!1),fe(this)};var d3=UH;var znr=S(C(),1);var vnr=S(C(),1);function tXe(e,t){this._scene=e,this._duration=t;let n=this;this._command=ti(function(){n._scene.camera.flyHome(n._duration)}),this.tooltip="View Home",Re.track(this,["tooltip"])}Object.defineProperties(tXe.prototype,{scene:{get:function(){return this._scene}},command:{get:function(){return this._command}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}}});var u3=tXe;function kH(e,t,n){e=li(e);let i=new u3(t,n);i._svgPath="M14,4l-10,8.75h20l-4.25-3.7188v-4.6562h-2.812v2.1875l-2.938-2.5625zm-7.0938,9.906v10.094h14.094v-10.094h-14.094zm2.1876,2.313h3.3122v4.25h-3.3122v-4.25zm5.8442,1.281h3.406v6.438h-3.406v-6.438z";let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button cesium-home-button",o.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 28, height: 28 }"),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(kH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});kH.prototype.isDestroyed=function(){return!1};kH.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var m3=kH;var $nr=S(C(),1);var Knr=S(C(),1);function M9t(e,t){t.currentTarget.parentElement.parentElement.querySelector(`#${e.name}-expander`).classList.toggle("active"),t.currentTarget.textContent=t.currentTarget.textContent==="+"?"-":"+"}function iXe(e,t){Re.track(e);for(let n=0;n<e.sublayers.length;n++)iXe(e.sublayers[n],t)}function zH(e){return e.modelName==="FullModel"}function oXe(e){return e.modelName==="Overview"}function rXe(e){return oXe(e)||zH(e)}function nXe(e,t){if(rXe(e)){e.visibility=!1;for(let i=0;i<e.sublayers.length;i++)e.sublayers[i].visibility=!0;let n={name:e.name,modelName:e.modelName,disable:Re.observable(!1),index:t.sublayers.length};return t.topLayers.push(n),t.sublayers.push(e),n}}function w9t(e,t){if(rXe(e)){t.sublayers.forEach(i=>i.visibility=!1),t.sublayers[e.index].visibility=!0;let n=document.getElementById("bsl-wrapper");zH(e)?(t.currentLevel=t.selectedLevel,n.style.display="block"):(t.selectedLevel=t.currentLevel,t.currentLevel="All",n.style.display="none")}}async function W9t(e,t){try{let n=e.getAttributeNames();for(let i=0;i<n.length;i++)if(n[i]==="BldgLevel"){let o=e.getAttributeValues(n[i]);for(let r=0;r<o.length;r++)t.push(o[r])}t.sort((i,o)=>i-o),t.unshift("All")}catch(n){console.log(`There was an error getting attributes: ${n}`)}}function P9t(e){let t=this;this.levels=[],this.viewModel={sublayers:[],levels:this.levels,currentLevel:Re.observable(),selectedLevel:"All",topLayers:[{name:"Select a layer to explore...",disable:Re.observable(!0),index:-1}],currentLayer:Re.observable(),expandClickHandler:M9t,setOptionDisable:function(i,o){Re.applyBindingsToNode(i,{disable:o.disable},o)},defaultLayer:void 0},this.viewModel.currentLayer.subscribe(function(i){w9t(i,t.viewModel)});let n=e.sublayers;for(let i=0;i<n.length;i++){iXe(n[i],this.viewModel);let o=nXe(n[i],this.viewModel);d(o)&&(oXe(o)||!d(this.viewModel.defaultLayer)&&zH(o))&&(this.viewModel.defaultLayer=o)}if(this.viewModel.topLayers.length===1&&n.length>0){e.show=!1;let i={name:"Full Model",modelName:"FullModel",visibility:e.show,sublayers:e.sublayers};this.viewModel.defaultLayer=nXe(i,this.viewModel),this.viewModel.currentLayer.subscribe(function(o){e.show=zH(o)})}else this.viewModel.topLayers.length===1&&(this.viewModel.topLayers[0].name="Building layers not found");return W9t(e,this.levels),this.viewModel.currentLevel.subscribe(function(i){i!=="All"?e.filterByAttributes([{name:"BldgLevel",values:[i]}]):e.filterByAttributes()}),this.viewModel}var h3=P9t;function v9t(e,t){let n=document.getElementById(e),i=document.createElement("div");i.classList.add("cesium-viewer-i3s-explorer"),i.innerHTML=`
19045
19045
  <h3>Building explorer</h3>
19046
19046
  <select
19047
19047
  data-bind="options: topLayers, optionsText: 'name', optionsAfterRender: setOptionDisable, value: currentLayer"
@@ -19083,8 +19083,8 @@ http://www.naturalearthdata.com/`,category:"Cesium ion",creationFunction:functio
19083
19083
  </li>
19084
19084
  </ul>
19085
19085
  </ul>
19086
- </div>`,n.appendChild(i);let o=new h3(t);Re.track(o),Re.applyBindings(o,n),d(o.defaultLayer)&&(o.currentLayer=o.defaultLayer)}var yoe=v9t;var dir=S(C(),1);var iir=S(C(),1);var N9t="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",F9t="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function goe(){this._cameraClicked=new Se,this._closeClicked=new Se,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",Re.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,Re.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?F9t:N9t}}),Re.defineProperty(this,"_bodyless",{get:function(){return!d(this.description)||this.description.length===0}})}goe.prototype.maxHeightOffset=function(e){return`${this.maxHeight-e}px`};Object.defineProperties(goe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var p3=goe;function YH(e){e=li(e);let t=document.createElement("div");t.className="cesium-infoBox",t.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),e.appendChild(t);let n=document.createElement("div");n.className="cesium-infoBox-title",n.setAttribute("data-bind","text: titleText"),t.appendChild(n);let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-infoBox-camera",i.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),t.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-infoBox-close",o.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),o.innerHTML="&times;",t.appendChild(o);let r=document.createElement("iframe");r.className="cesium-infoBox-iframe",r.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),r.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),r.setAttribute("allowfullscreen",!0),t.appendChild(r);let s=new p3;Re.applyBindings(s,t),this._container=e,this._element=t,this._frame=r,this._viewModel=s,this._descriptionSubscription=void 0;let a=this;r.addEventListener("load",function(){let c=r.contentDocument,l=c.createElement("link");l.href=Sn("Widgets/InfoBox/InfoBoxDescription.css"),l.rel="stylesheet",l.type="text/css";let u=c.createElement("div");u.className="cesium-infoBox-description",c.head.appendChild(l),c.body.appendChild(u),a._descriptionSubscription=Zc(s,"description",function(m){r.style.height="5px",u.innerHTML=m;let f=null,b=u.firstElementChild;if(b!==null&&u.childNodes.length===1){let x=window.getComputedStyle(b);if(x!==null){let T=x["background-color"],_=z.fromCssColorString(T);d(_)&&_.alpha!==0&&(f=x["background-color"])}}t.style["background-color"]=f;let p=u.getBoundingClientRect().height;r.style.height=`${p}px`})}),r.setAttribute("src","about:blank")}Object.defineProperties(YH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});YH.prototype.isDestroyed=function(){return!1};YH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),d(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),fe(this)};var f3=YH;var _ir=S(C(),1);var pir=S(C(),1);function sXe(){this.showInstructions=!1;let e=this;this._command=ti(function(){e.showInstructions=!e.showInstructions}),this._showClick=ti(function(){e._touch=!1}),this._showTouch=ti(function(){e._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",Re.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(sXe.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var b3=sXe;function BH(e){let t=li(e.container),n=new b3,i=g(e.instructionsInitiallyVisible,!1);n.showInstructions=i,n._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let o=document.createElement("span");o.className="cesium-navigationHelpButton-wrapper",t.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",r.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),o.appendChild(r);let s=document.createElement("div");s.className="cesium-navigation-help",s.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-navigation-button cesium-navigation-button-left",a.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let c=document.createElement("img");c.src=Sn("Widgets/Images/NavigationHelp/Mouse.svg"),c.className="cesium-navigation-button-icon",c.style.width="25px",c.style.height="25px",a.appendChild(c),a.appendChild(document.createTextNode("Mouse"));let l=document.createElement("button");l.type="button",l.className="cesium-navigation-button cesium-navigation-button-right",l.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let u=document.createElement("img");u.src=Sn("Widgets/Images/NavigationHelp/Touch.svg"),u.className="cesium-navigation-button-icon",u.style.width="25px",u.style.height="25px",l.appendChild(u),l.appendChild(document.createTextNode("Touch")),s.appendChild(a),s.appendChild(l);let m=document.createElement("div");m.className="cesium-click-navigation-help cesium-navigation-help-instructions",m.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),m.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">Left click + drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Right click + drag, or</div> <div class="cesium-navigation-help-details">Mouse wheel scroll</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Rotate view</div> <div class="cesium-navigation-help-details">Middle click + drag, or</div> <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div> </td> </tr> </table>`,s.appendChild(m);let f=document.createElement("div");f.className="cesium-touch-navigation-help cesium-navigation-help-instructions",f.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),f.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">One finger drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Two finger pinch</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Tilt view</div> <div class="cesium-navigation-help-details">Two finger drag, same direction</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-tilt">Rotate view</div> <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div> </td> </tr> </table>`,s.appendChild(f),Re.applyBindings(n,o),this._container=t,this._viewModel=n,this._wrapper=o,this._closeInstructions=function(b){o.contains(b.target)||(n.showInstructions=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(BH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});BH.prototype.isDestroyed=function(){return!1};BH.prototype.destroy=function(){return bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var y3=BH;var Pir=S(C(),1);var Gir=S(C(),1);function xoe(e){this._scene=e.scene,this.lowFrameRateMessage=g(e.lowFrameRateMessage,"This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers."),this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,Re.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let t=this;this._dismissMessage=ti(function(){t.showingLowFrameRateMessage=!1,t.lowFrameRateMessageDismissed=!0});let n=EF.fromScene(e.scene);this._unsubscribeLowFrameRate=n.lowFrameRate.addEventListener(function(){t.lowFrameRateMessageDismissed||(t.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=n.nominalFrameRate.addEventListener(function(){t.showingLowFrameRateMessage=!1})}Object.defineProperties(xoe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});xoe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),fe(this)};var g3=xoe;function OH(e){let t=li(e.container),n=new g3(e),i=document.createElement("div");i.className="cesium-performance-watchdog-message-area",i.setAttribute("data-bind","visible: showingLowFrameRateMessage");let o=document.createElement("button");o.setAttribute("type","button"),o.className="cesium-performance-watchdog-message-dismiss",o.innerHTML="&times;",o.setAttribute("data-bind","click: dismissMessage"),i.appendChild(o);let r=document.createElement("div");r.className="cesium-performance-watchdog-message",r.setAttribute("data-bind","html: lowFrameRateMessage"),i.appendChild(r),t.appendChild(i),Re.applyBindings(n,i),this._container=t,this._viewModel=n,this._element=i}Object.defineProperties(OH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});OH.prototype.isDestroyed=function(){return!1};OH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var x3=OH;var Hir=S(C(),1);var Uir=S(C(),1);function KH(e){this._scene=e,this._orthographic=e.camera.frustum instanceof En,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=e.mode,Re.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let t=this;Re.defineProperty(this,"selectedTooltip",function(){return t._orthographic?t.tooltipOrthographic:t.tooltipPerspective}),this._toggleDropDown=ti(function(){t.sceneMode===ae.SCENE2D||t._flightInProgress||(t.dropDownVisible=!t.dropDownVisible)}),this._eventHelper=new Ws,this._eventHelper.add(e.morphComplete,function(n,i,o,r){t.sceneMode=o,t._orthographic=o===ae.SCENE2D||t._scene.camera.frustum instanceof En}),this._eventHelper.add(e.preRender,function(){t._flightInProgress=d(e.camera._currentFlight)}),this._switchToPerspective=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToPerspectiveFrustum(),t._orthographic=!1,t.dropDownVisible=!1)}),this._switchToOrthographic=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToOrthographicFrustum(),t._orthographic=!0,t.dropDownVisible=!1)}),this._sceneMode=ae}Object.defineProperties(KH.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});KH.prototype.isDestroyed=function(){return!1};KH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var T3=KH;var A9t="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",D9t="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function HH(e,t){e=li(e);let n=new T3(t);n._perspectivePath=A9t,n._orthographicPath=D9t;let i=document.createElement("span");i.className="cesium-projectionPicker-wrapper cesium-toolbar-button",e.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button",o.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic, "cesium-projectionPicker-buttonOrthographic": _orthographic, "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress, "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),o.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',i.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",r.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic), "cesium-projectionPicker-none" : !_orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),i.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic), "cesium-projectionPicker-none" : _orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),i.appendChild(s),Re.applyBindings(n,i),this._viewModel=n,this._container=e,this._wrapper=i,this._closeDropDown=function(a){i.contains(a.target)||(n.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(HH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});HH.prototype.isDestroyed=function(){return!1};HH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var _3=HH;var cor=S(C(),1);var tor=S(C(),1);function JH(e,t){this._scene=e;let n=this,i=function(o,r,s,a){n.sceneMode=s,n.dropDownVisible=!1};this._eventHelper=new Ws,this._eventHelper.add(e.morphStart,i),this._duration=g(t,2),this.sceneMode=e.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",Re.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,Re.defineProperty(this,"selectedTooltip",function(){let o=n.sceneMode;return o===ae.SCENE2D?n.tooltip2D:o===ae.SCENE3D?n.tooltip3D:n.tooltipColumbusView}),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._morphTo2D=ti(function(){e.morphTo2D(n._duration)}),this._morphTo3D=ti(function(){e.morphTo3D(n._duration)}),this._morphToColumbusView=ti(function(){e.morphToColumbusView(n._duration)}),this._sceneMode=ae}Object.defineProperties(JH.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});JH.prototype.isDestroyed=function(){return!1};JH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var S3=JH;var U9t="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",k9t="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",z9t="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function QH(e,t,n){e=li(e);let i=new S3(t,n);i._globePath=U9t,i._flatMapPath=k9t,i._columbusViewPath=z9t;let o=document.createElement("span");o.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",e.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button",r.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),r.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',o.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",a.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),o.appendChild(a);let c=document.createElement("button");c.type="button",c.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",c.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),o.appendChild(c),Re.applyBindings(i,o),this._viewModel=i,this._container=e,this._wrapper=o,this._closeDropDown=function(l){o.contains(l.target)||(i.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(QH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});QH.prototype.isDestroyed=function(){return!1};QH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var C3=QH;var _or=S(C(),1);var hor=S(C(),1);var Y9t=new B,jH="-1000px";function L3(e,t,n){this._scene=e,this._screenPositionX=jH,this._screenPositionY=jH,this._tweens=e.tweens,this._container=g(n,document.body),this._selectionIndicatorElement=t,this._scale=1,this.position=void 0,this.showSelection=!1,Re.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,Re.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&d(this.position)}}),Re.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(i,o){return yo.worldToWindowCoordinates(e,i,o)}}L3.prototype.update=function(){if(this.showSelection&&d(this.position)){let e=this.computeScreenSpacePosition(this.position,Y9t);if(!d(e))this._screenPositionX=jH,this._screenPositionY=jH;else{let t=this._container,n=t.parentNode.clientWidth,i=t.parentNode.clientHeight,o=this._selectionIndicatorElement.clientWidth,r=o*.5;e.x=Math.min(Math.max(e.x,-o),n+o)-r,e.y=Math.min(Math.max(e.y,-o),i+o)-r,this._screenPositionX=`${Math.floor(e.x+.25)}px`,this._screenPositionY=`${Math.floor(e.y+.25)}px`}}};L3.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:ws.EXPONENTIAL_OUT})};L3.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:ws.EXPONENTIAL_OUT})};Object.defineProperties(L3.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var V3=L3;function qH(e,t){e=li(e),this._container=e;let n=document.createElement("div");n.className="cesium-selection-wrapper",n.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),e.appendChild(n),this._element=n;let i="http://www.w3.org/2000/svg",o="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",r=document.createElementNS(i,"svg:svg");r.setAttribute("width",160),r.setAttribute("height",160),r.setAttribute("viewBox","0 0 160 160");let s=document.createElementNS(i,"g");s.setAttribute("transform","translate(80,80)"),r.appendChild(s);let a=document.createElementNS(i,"path");a.setAttribute("data-bind","attr: { transform: _transform }"),a.setAttribute("d",o),s.appendChild(a),n.appendChild(r);let c=new V3(t,this._element,this._container);this._viewModel=c,Re.applyBindings(this._viewModel,this._element)}Object.defineProperties(qH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});qH.prototype.isDestroyed=function(){return!1};qH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),fe(this)};var Z3=qH;var wor=S(C(),1);var Lor=S(C(),1);function mL(e,t,n){this._color=e,this._height=t,this._base=g(n,0)}mL.prototype.getHeight=function(){return this._height};mL.prototype.getBase=function(){return this._base};mL.prototype.getStartTime=function(){return this._start};mL.prototype.getStopTime=function(){return this._stop};mL.prototype.setRange=function(e,t){this._start=e,this._stop=t};mL.prototype.render=function(e){let t="";if(this._start&&this._stop&&this._color){let n=ee.secondsDifference(this._start,e.epochJulian),i=Math.round(e.timeBarWidth*e.getAlpha(n)),o=ee.secondsDifference(this._stop,e.epochJulian),r=Math.round(e.timeBarWidth*e.getAlpha(o))-i;i<0&&(r+=i,i=0),i+r>e.timeBarWidth&&(r=e.timeBarWidth-i),r>0&&(t=`<span class="cesium-timeline-highlight" style="left: ${i.toString()}px; width: ${r.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return t};var R3=mL;var Ror=S(C(),1);function aXe(e,t,n,i){this.interval=e,this.height=t,this.color=n||new z(.5,.5,.5,1),this.backgroundColor=i||new z(0,0,0,0)}aXe.prototype.render=function(e,t){let n=this.interval.start,i=this.interval.stop,o=t.startJulian,r=ee.addSeconds(t.startJulian,t.duration,new ee);if(ee.lessThan(n,o)&&ee.greaterThan(i,r))e.fillStyle=this.color.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height);else if(ee.lessThanOrEquals(n,r)&&ee.greaterThanOrEquals(i,o)){let s,a,c;for(s=0;s<t.timeBarWidth;++s){let l=ee.addSeconds(t.startJulian,s/t.timeBarWidth*t.duration,new ee);!d(a)&&ee.greaterThanOrEquals(l,n)?a=s:!d(c)&&ee.greaterThanOrEquals(l,i)&&(c=s)}e.fillStyle=this.backgroundColor.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height),d(a)&&(d(c)||(c=t.timeBarWidth),e.fillStyle=this.color.toCssColorString(),e.fillRect(a,t.y,Math.max(c-a,1),this.height))}};var G3=aXe;var Toe=1e12,Dh={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},Ed={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},l_=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6],B9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Id(e,t){e=li(e);let n=e.ownerDocument;this.container=e;let i=n.createElement("div");i.className="cesium-timeline-main",e.appendChild(i),this._topDiv=i,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=t,this._scrubJulian=t.currentTime,this._mainTicSpan=-1,this._mouseMode=Dh.none,this._touchMode=Ed.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(t.startTime,t.stopTime),this._onMouseDown=O9t(this),this._onMouseUp=K9t(this),this._onMouseMove=H9t(this),this._onMouseWheel=J9t(this),this._onTouchStart=Q9t(this),this._onTouchMove=q9t(this),this._onTouchEnd=j9t(this);let o=this._timeBarEle;n.addEventListener("mouseup",this._onMouseUp,!1),n.addEventListener("mousemove",this._onMouseMove,!1),o.addEventListener("mousedown",this._onMouseDown,!1),o.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),o.addEventListener("mousewheel",this._onMouseWheel,!1),o.addEventListener("touchstart",this._onTouchStart,!1),o.addEventListener("touchmove",this._onTouchMove,!1),o.addEventListener("touchend",this._onTouchEnd,!1),o.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},t.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Id.prototype.addEventListener=function(e,t,n){this._topDiv.addEventListener(e,t,n)};Id.prototype.removeEventListener=function(e,t,n){this._topDiv.removeEventListener(e,t,n)};Id.prototype.isDestroyed=function(){return!1};Id.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let e=this.container.ownerDocument;e.removeEventListener("mouseup",this._onMouseUp,!1),e.removeEventListener("mousemove",this._onMouseMove,!1);let t=this._timeBarEle;t.removeEventListener("mousedown",this._onMouseDown,!1),t.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),t.removeEventListener("mousewheel",this._onMouseWheel,!1),t.removeEventListener("touchstart",this._onTouchStart,!1),t.removeEventListener("touchmove",this._onTouchMove,!1),t.removeEventListener("touchend",this._onTouchEnd,!1),t.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),fe(this)};Id.prototype.addHighlightRange=function(e,t,n){let i=new R3(e,t,n);return this._highlightRanges.push(i),this.resize(),i};Id.prototype.addTrack=function(e,t,n,i){let o=new G3(e,t,n,i);return this._trackList.push(o),this._lastHeight=void 0,this.resize(),o};Id.prototype.zoomTo=function(e,t){if(this._startJulian=e,this._endJulian=t,this._timeBarSecondsSpan=ee.secondsDifference(t,e),this._clock&&this._clock.clockRange!==Xs.UNBOUNDED){let i=this._clock.startTime,o=this._clock.stopTime,r=ee.secondsDifference(o,i),s=ee.secondsDifference(i,this._startJulian),a=ee.secondsDifference(o,this._endJulian);this._timeBarSecondsSpan>=r?(this._timeBarSecondsSpan=r,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):s>0?(this._endJulian=ee.addSeconds(this._endJulian,s,new ee),this._startJulian=i,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian)):a<0&&(this._startJulian=ee.addSeconds(this._startJulian,a,new ee),this._endJulian=o,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let n=document.createEvent("Event");n.initEvent("setzoom",!0,!0),n.startJulian=this._startJulian,n.endJulian=this._endJulian,n.epochJulian=this._epochJulian,n.totalSpan=this._timeBarSecondsSpan,n.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(n)};Id.prototype.zoomFrom=function(e){let t=ee.secondsDifference(this._scrubJulian,this._startJulian);e>1||t<0||t>this._timeBarSecondsSpan?t=this._timeBarSecondsSpan*.5:t+=t-this._timeBarSecondsSpan*.5;let n=this._timeBarSecondsSpan-t;this.zoomTo(ee.addSeconds(this._startJulian,t-t*e,new ee),ee.addSeconds(this._endJulian,n*e-n,new ee))};function _oe(e){return e<10?`0${e.toString()}`:e.toString()}Id.prototype.makeLabel=function(e){let t=ee.toGregorianDate(e),n=t.millisecond,i=" UTC";if(n>0&&this._timeBarSecondsSpan<3600){for(i=Math.floor(n).toString();i.length<3;)i=`0${i}`;i=`.${i}`}return`${B9t[t.month-1]} ${t.day} ${t.year} ${_oe(t.hour)}:${_oe(t.minute)}:${_oe(t.second)}${i}`};Id.prototype.smallestTicInPixels=7;Id.prototype._makeTics=function(){let e=this._timeBarEle,t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan),i=n-8,o,r=this;this._needleEle.style.left=`${n.toString()}px`;let s="",a=.01,c=31536e6,l=1e-10,u=0,m=this._timeBarSecondsSpan;m<a?(m=a,this._timeBarSecondsSpan=a,this._endJulian=ee.addSeconds(this._startJulian,a,new ee)):m>c&&(m=c,this._timeBarSecondsSpan=c,this._endJulian=ee.addSeconds(this._startJulian,c,new ee));let f=this._timeBarEle.clientWidth;f<10&&(f=10);let b=this._startJulian,p=Math.min(m/f*1e-5,.4),x,T=ee.toGregorianDate(b);m>31536e4?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/100)*100,0))):m>31536e3?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/10)*10,0))):m>86400?x=ee.fromDate(new Date(Date.UTC(T.year,0))):x=ee.fromDate(new Date(Date.UTC(T.year,T.month,T.day)));let _=ee.secondsDifference(this._startJulian,ee.addSeconds(x,p,new ee)),L=_+m;this._epochJulian=x;function V(D){return Math.floor(_/D)*D}function Z(D,O){return Math.ceil(D/O+.5)*O}function G(D){return(D-_)/m}function I(D,O){return D-O*Math.round(D/O)}this._rulerEle.innerHTML=this.makeLabel(ee.addSeconds(this._endJulian,-a,new ee));let w=this._rulerEle.offsetWidth+20;w<30&&(w=180);let W=u;u-=l;let v={startTime:_,startJulian:b,epochJulian:x,duration:m,timeBarWidth:f,getAlpha:G};this._highlightRanges.forEach(function(D){s+=D.render(v)});let N=0,y=0,R=0,E=w/f;E>1&&(E=1),E*=this._timeBarSecondsSpan;let X=-1,F=-1,A=l_.length,Y;for(Y=0;Y<A;++Y){let D=l_[Y];if(++X,N=D,D>E&&D>u)break;F<0&&f*(D/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(F=X)}if(X>0){for(;X>0;)if(--X,Math.abs(I(N,l_[X]))<1e-5){l_[X]>=u&&(y=l_[X]);break}if(F>=0)for(;F<X;){if(Math.abs(I(y,l_[F]))<1e-5&&l_[F]>=u){R=l_[F];break}++F}}u=W,u>l&&R<1e-5&&Math.abs(u-N)>l&&(R=u,u<=N+l&&(y=0));let U=-999999,k;if(f*(R/this._timeBarSecondsSpan)>=3)for(o=V(R);o<=L;o=Z(o,R))s+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(y/this._timeBarSecondsSpan)>=3)for(o=V(y);o<=L;o=Z(o,y))s+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(N/this._timeBarSecondsSpan)>=2){this._mainTicSpan=N,L+=N,o=V(N);let D=ee.computeTaiMinusUtc(x);for(;o<=L;){let O=ee.addSeconds(b,o-_,new ee);if(N>2.1){let ne=ee.computeTaiMinusUtc(O);Math.abs(ne-D)>.1&&(o+=ne-D,O=ee.addSeconds(b,o-_,new ee))}let K=Math.round(f*G(o)),j=this.makeLabel(O);this._rulerEle.innerHTML=j,k=this._rulerEle.offsetWidth,k<10&&(k=w);let J=K-(k/2-1);J>U?(U=J+k+5,s+=`<span class="cesium-timeline-ticMain" style="left: ${K.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${J.toString()}px;">${j}</span>`):s+=`<span class="cesium-timeline-ticSub" style="left: ${K.toString()}px;"></span>`,o=Z(o,N)}}else this._mainTicSpan=-1;s+=`<span class="cesium-timeline-icon16" style="left:${i}px;bottom:0;background-position: 0 0;"></span>`,e.innerHTML=s,this._scrubElement=e.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),v.y=0,this._trackList.forEach(function(D){D.render(r._context,v),v.y+=D.height})};Id.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let e=this._scrubElement;if(d(this._scrubElement)){let t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==n&&(this._lastXPos=n,e.style.left=`${n-8}px`,this._needleEle.style.left=`${n}px`)}d(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(ee.addSeconds(this._startJulian,this._timelineDrag,new ee),ee.addSeconds(this._endJulian,this._timelineDrag,new ee)))};Id.prototype._setTimeBarTime=function(e,t){if(e=Math.round(e),this._scrubJulian=ee.addSeconds(this._startJulian,t,new ee),this._scrubElement){let i=e-8;this._scrubElement.style.left=`${i.toString()}px`,this._needleEle.style.left=`${e.toString()}px`}let n=document.createEvent("Event");n.initEvent("settime",!0,!0),n.clientX=e,n.timeSeconds=t,n.timeJulian=this._scrubJulian,n.clock=this._clock,this._topDiv.dispatchEvent(n)};function O9t(e){return function(t){e._mouseMode!==Dh.touchOnly&&(t.button===0?(e._mouseMode=Dh.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition="-16px 0"),e._onMouseMove(t)):(e._mouseX=t.clientX,t.button===2?e._mouseMode=Dh.zoom:e._mouseMode=Dh.slide)),t.preventDefault()}}function K9t(e){return function(t){e._mouseMode=Dh.none,e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0"),e._timelineDrag=0,e._timelineDragLocation=void 0}}function H9t(e){return function(t){let n;if(e._mouseMode===Dh.scrub){t.preventDefault();let i=t.clientX-e._topDiv.getBoundingClientRect().left;i<0?(e._timelineDragLocation=0,e._timelineDrag=-.01*e._timeBarSecondsSpan):i>e._topDiv.clientWidth?(e._timelineDragLocation=e._topDiv.clientWidth,e._timelineDrag=.01*e._timeBarSecondsSpan):(e._timelineDragLocation=void 0,e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))}else if(e._mouseMode===Dh.slide){if(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0){let i=n*e._timeBarSecondsSpan/e._topDiv.clientWidth;e.zoomTo(ee.addSeconds(e._startJulian,i,new ee),ee.addSeconds(e._endJulian,i,new ee))}}else e._mouseMode===Dh.zoom&&(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0&&e.zoomFrom(Math.pow(1.01,n)))}}function J9t(e){return function(t){let n=t.wheelDeltaY||t.wheelDelta||-t.detail;Toe=Math.max(Math.min(Math.abs(n),Toe),1),n/=Toe,e.zoomFrom(Math.pow(1.05,-n))}}function Q9t(e){return function(t){let n=t.touches.length,i,o,r=e._topDiv.getBoundingClientRect().left;t.preventDefault(),e._mouseMode=Dh.touchOnly,n===1?(i=ee.secondsDifference(e._scrubJulian,e._startJulian),o=Math.round(i*e._topDiv.clientWidth/e._timeBarSecondsSpan+r),Math.abs(t.touches[0].clientX-o)<50?(e._touchMode=Ed.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition=n===1?"-16px 0":"0 0")):(e._touchMode=Ed.singleTap,e._touchState.centerX=t.touches[0].clientX-r)):n===2?(e._touchMode=Ed.slideZoom,e._touchState.centerX=(t.touches[0].clientX+t.touches[1].clientX)*.5-r,e._touchState.spanX=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):e._touchMode=Ed.ignore}}function j9t(e){return function(t){let n=t.touches.length,i=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap?(e._touchMode=Ed.scrub,e._onTouchMove(t)):e._touchMode===Ed.scrub&&e._onTouchMove(t),e._mouseMode=Dh.touchOnly,n!==1?e._touchMode=n>0?Ed.ignore:Ed.none:e._touchMode===Ed.slideZoom&&(e._touchState.centerX=t.touches[0].clientX-i),e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0")}}function q9t(e){return function(t){let n,i,o,r,s,a,c=1,l=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap&&(e._touchMode=Ed.slideZoom),e._mouseMode=Dh.touchOnly,e._touchMode===Ed.scrub?(t.preventDefault(),t.changedTouches.length===1&&(i=t.changedTouches[0].clientX-l,i>=0&&i<=e._topDiv.clientWidth&&e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))):e._touchMode===Ed.slideZoom&&(o=t.touches.length,o===2?(r=(t.touches[0].clientX+t.touches[1].clientX)*.5-l,s=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):o===1&&(r=t.touches[0].clientX-l,s=0),d(r)&&(s>0&&e._touchState.spanX>0?(c=e._touchState.spanX/s,a=ee.addSeconds(e._startJulian,(e._touchState.centerX*e._timeBarSecondsSpan-r*e._timeBarSecondsSpan*c)/e._topDiv.clientWidth,new ee)):(n=e._touchState.centerX-r,a=ee.addSeconds(e._startJulian,n*e._timeBarSecondsSpan/e._topDiv.clientWidth,new ee)),e.zoomTo(a,ee.addSeconds(a,e._timeBarSecondsSpan*c,new ee)),e._touchState.centerX=r,e._touchState.spanX=s))}}Id.prototype.resize=function(){let e=this.container.clientWidth,t=this.container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;this._trackContainer.style.height=`${t}px`;let n=1;this._trackList.forEach(function(i){n+=i.height}),this._trackListEle.style.height=`${n.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=n,this._makeTics(),this._lastXPos=void 0,this._lastWidth=e,this._lastHeight=t};var E3=Id;var grr=S(C(),1);var Qor=S(C(),1);var zor=S(C(),1);var mXe=S(uXe(),1);function t5t(e){let t=!1,n=window.screen;return d(n)&&(d(n.lockOrientation)?t=n.lockOrientation(e):d(n.mozLockOrientation)?t=n.mozLockOrientation(e):d(n.msLockOrientation)?t=n.msLockOrientation(e):d(n.orientation&&n.orientation.lock)&&(t=n.orientation.lock(e))),t}function hXe(){let e=window.screen;d(e)&&(d(e.unlockOrientation)?e.unlockOrientation():d(e.mozUnlockOrientation)?e.mozUnlockOrientation():d(e.msUnlockOrientation)?e.msUnlockOrientation():d(e.orientation&&e.orientation.unlock)&&e.orientation.unlock())}function n5t(e,t,n,i){i()||(n()?(t.useWebVR=!1,e._locked&&(hXe(),e._locked=!1),e._noSleep.disable(),fs.exitFullscreen(),n(!1)):(fs.fullscreen||fs.requestFullscreen(e._vrElement),e._noSleep.enable(),e._locked||(e._locked=t5t("landscape")),t.useWebVR=!0,n(!0)))}function $H(e,t){let n=this,i=Re.observable(fs.enabled),o=Re.observable(!1);this.isVRMode=void 0,Re.defineProperty(this,"isVRMode",{get:function(){return o()}}),this.isVREnabled=void 0,Re.defineProperty(this,"isVREnabled",{get:function(){return i()},set:function(s){i(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return i()?o()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let r=Re.observable(!1);this._isOrthographic=void 0,Re.defineProperty(this,"_isOrthographic",{get:function(){return r()}}),this._eventHelper=new Ws,this._eventHelper.add(e.preRender,function(){r(e.camera.frustum instanceof En)}),this._locked=!1,this._noSleep=new mXe.default,this._command=ti(function(){n5t(n,e,o,r)},Re.getObservable(this,"isVREnabled")),this._vrElement=g(li(t),document.body),this._callback=function(){!fs.fullscreen&&o()&&(e.useWebVR=!1,n._locked&&(hXe(),n._locked=!1),n._noSleep.disable(),o(!1))},document.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties($H.prototype,{vrElement:{get:function(){return this._vrElement},set:function(e){this._vrElement=e}},command:{get:function(){return this._command}}});$H.prototype.isDestroyed=function(){return!1};$H.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var I3=$H;var i5t="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",o5t="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function e4(e,t,n){e=li(e);let i=new I3(t,n);i._exitVRPath=o5t,i._enterVRPath=i5t;let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-vrButton",o.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(e4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});e4.prototype.isDestroyed=function(){return!1};e4.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var X3=e4;var d_=new de;function bXe(e){let t=e.clock;t.currentTime=e.timeJulian,t.shouldAnimate=!1}function r5t(e){let t=e.getPropertyIds(),n="";return Array.isArray(t)&&(t.forEach(function(i){let o=e.getProperty(i);d(o)&&(n+=`<tr><th>${i}</th><td>${o}</td></tr>`)}),n.length>0&&(n=`<table class="cesium-infoBox-defaultTable"><tbody>${n}</tbody></table>`)),n}function s5t(e){let t,n=[],i=e.getPropertyIds();for(t=0;t<i.length;t++){let r=i[t];/^name$/i.test(r)?n[0]=e.getProperty(r):/name/i.test(r)?n[1]=e.getProperty(r):/^title$/i.test(r)?n[2]=e.getProperty(r):/^(id|identifier)$/i.test(r)?n[3]=e.getProperty(r):/element/i.test(r)?n[4]=e.getProperty(r):/(id|identifier)$/i.test(r)&&(n[5]=e.getProperty(r))}let o=n.length;for(t=0;t<o;t++){let r=n[t];if(d(r)&&r!=="")return r}return"Unnamed Feature"}function pXe(e,t){let n=e.scene.pick(t.position);if(d(n)){let i=g(n.id,n.primitive.id);if(i instanceof jr)return i;if(n instanceof Ba)return new jr({name:s5t(n),description:r5t(n),feature:n})}if(d(e.scene.globe))return l5t(e,t.position)}var a5t=new ee;function yXe(e,t,n){if(d(n)){let i=n.clock;if(d(i)&&(i.getValue(t),d(e))){let o=i.startTime,r=i.stopTime;ee.equals(o,r)&&(r=ee.addSeconds(o,M.EPSILON2,a5t)),e.updateFromClock(),e.zoomTo(o,r)}}}var c5t=new h;function l5t(e,t){let n=e.scene,i=n.camera.getPickRay(t),o=n.imageryLayers.pickImageryLayerFeatures(i,n);if(!d(o))return;let r=new jr({id:"Loading...",description:"Loading feature information..."});return o.then(function(s){if(e.selectedEntity!==r)return;if(!d(s)||s.length===0){e.selectedEntity=fXe();return}let a=s[0],c=new jr({id:a.name,description:a.description});if(d(a.position)){let l=e.scene.ellipsoid.cartographicToCartesian(a.position,c5t);c.position=new rd(l)}e.selectedEntity=c},function(){e.selectedEntity===r&&(e.selectedEntity=fXe())}),r}function fXe(){return new jr({id:"None",description:"No features found."})}function d5t(e,t){let n=e._geocoder,i=e._homeButton,o=e._sceneModePicker,r=e._projectionPicker,s=e._baseLayerPicker,a=e._animation,c=e._timeline,l=e._fullscreenButton,u=e._infoBox,m=e._selectionIndicator,f=t?"hidden":"visible";if(d(n)&&(n.container.style.visibility=f),d(i)&&(i.container.style.visibility=f),d(o)&&(o.container.style.visibility=f),d(r)&&(r.container.style.visibility=f),d(s)&&(s.container.style.visibility=f),d(a)&&(a.container.style.visibility=f),d(c)&&(c.container.style.visibility=f),d(l)&&l.viewModel.isFullscreenEnabled&&(l.container.style.visibility=f),d(u)&&(u.container.style.visibility=f),d(m)&&(m.container.style.visibility=f),e._container){let b=t||!d(l)?0:l.container.clientWidth;e._vrButton.container.style.right=`${b}px`,e.forceResize()}}function To(e,t){e=li(e),t=g(t,{}),t.selectionIndicator=g(t.selectionIndicator,!1),t.infoBox=g(t.selectionIndicator,!1),t.geocoder=g(t.geocoder,!1),t.homeButton=g(t.homeButton,!1),t.sceneModePicker=g(t.sceneModePicker,!1),t.baseLayerPicker=g(t.baseLayerPicker,!1),t.navigationHelpButton=g(t.navigationHelpButton,!1),t.timeline=g(t.timeline,!1),t.animation=g(t.animation,!1),t.fullscreenButton=g(t.fullscreenButton,!1);let n=(!d(t.globe)||t.globe!==!1)&&(!d(t.baseLayerPicker)||t.baseLayerPicker!==!1),i=this,o=document.createElement("div");o.className="cesium-viewer",e.appendChild(o);let r=document.createElement("div");r.className="cesium-viewer-cesiumWidgetContainer",o.appendChild(r);let s=document.createElement("div");s.className="cesium-viewer-bottom",o.appendChild(s);let a=1;d(t.logoScale)&&(a=parseFloat(t.logoScale)),s.style.display="block",s.style.width="98px",s.style.height="28px",s.style["margin-left"]="5px",s.style["margin-bottom"]="5px",s.style["transform-origin"]="0 100%",s.style.transform=`scale(${a})`;let c=g(t.scene3DOnly,!1),l,u,m=!1;d(t.clockViewModel)?(u=t.clockViewModel,l=u.clock):(l=new op,u=new YD(l),m=!0),d(t.shouldAnimate)&&(l.shouldAnimate=t.shouldAnimate);let f=new ED(r,{baseLayer:n&&d(t.selectedImageryProviderViewModel)||d(t.baseLayer)||d(t.imageryProvider)?!1:void 0,clock:l,skyBox:t.skyBox,skyAtmosphere:t.skyAtmosphere,sceneMode:t.sceneMode,ellipsoid:t.ellipsoid,mapProjection:t.mapProjection,globe:t.globe,orderIndependentTranslucency:t.orderIndependentTranslucency,contextOptions:t.contextOptions,useDefaultRenderLoop:t.useDefaultRenderLoop,targetFrameRate:t.targetFrameRate,showRenderLoopErrors:t.showRenderLoopErrors,useBrowserRecommendedResolution:t.useBrowserRecommendedResolution,creditContainer:d(t.creditContainer)?t.creditContainer:s,creditViewport:t.creditViewport,scene3DOnly:c,logoScale:a,shadows:t.shadows,terrainShadows:t.terrainShadows,mapMode2D:t.mapMode2D,blurActiveElementOnCanvasFocus:t.blurActiveElementOnCanvasFocus,requestRenderMode:t.requestRenderMode,maximumRenderTimeChange:t.maximumRenderTimeChange,depthPlaneEllipsoidOffset:t.depthPlaneEllipsoidOffset,msaaSamples:t.msaaSamples}),b=t.dataSources,p=!1;d(b)||(b=new h9,p=!0);let x=f.scene,T=new W9({scene:x,dataSourceCollection:b}),_=new Ws;_.add(l.onTick,To.prototype._onTick,this),_.add(x.morphStart,To.prototype._clearTrackedObject,this);let L;if(!d(t.selectionIndicator)||t.selectionIndicator!==!1){let j=document.createElement("div");j.className="cesium-viewer-selectionIndicatorContainer",o.appendChild(j),L=new Z3(j,x)}let V;if(!d(t.infoBox)||t.infoBox!==!1){let j=document.createElement("div");j.className="cesium-viewer-infoBoxContainer",o.appendChild(j),V=new f3(j);let J=V.viewModel;_.add(J.cameraClicked,To.prototype._onInfoBoxCameraClicked,this),_.add(J.closeClicked,To.prototype._onInfoBoxClockClicked,this)}let Z=document.createElement("div");Z.className="cesium-viewer-toolbar",o.appendChild(Z);let G;if(!d(t.geocoder)||t.geocoder!==!1){let j=document.createElement("div");j.className="cesium-viewer-geocoderContainer",Z.appendChild(j);let J;d(t.geocoder)&&typeof t.geocoder!="boolean"&&(J=Array.isArray(t.geocoder)?t.geocoder:[t.geocoder]),G=new d3({container:j,geocoderServices:J,scene:x}),_.add(G.viewModel.search.beforeExecute,To.prototype._clearObjects,this)}let I;(!d(t.homeButton)||t.homeButton!==!1)&&(I=new m3(Z,x),d(G)&&_.add(I.viewModel.command.afterExecute,function(){let j=G.viewModel;j.searchText="",j.isSearchInProgress&&j.search()}),_.add(I.viewModel.command.beforeExecute,To.prototype._clearTrackedObject,this));let w;!c&&(!d(t.sceneModePicker)||t.sceneModePicker!==!1)&&(w=new C3(Z,x));let W;t.projectionPicker&&(W=new _3(Z,x));let v,N;if(n){let j=g(t.imageryProviderViewModels,n3()),J=g(t.terrainProviderViewModels,i3());v=new t3(Z,{globe:x.globe,imageryProviderViewModels:j,selectedImageryProviderViewModel:t.selectedImageryProviderViewModel,terrainProviderViewModels:J,selectedTerrainProviderViewModel:t.selectedTerrainProviderViewModel}),N=Z.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}d(t.baseLayer)&&t.baseLayer!==!1&&(n&&(v.viewModel.selectedImagery=void 0),x.imageryLayers.removeAll(),x.imageryLayers.add(t.baseLayer)),d(t.terrainProvider)&&(n&&(v.viewModel.selectedTerrain=void 0),x.terrainProvider=t.terrainProvider),d(t.terrain)&&(n&&(x.globe.depthTestAgainstTerrain=!0),x.setTerrain(t.terrain));let y;if(!d(t.navigationHelpButton)||t.navigationHelpButton!==!1){let j=!0;try{if(d(window.localStorage)){let J=window.localStorage.getItem("cesium-hasSeenNavHelp");d(J)&&J?j=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}y=new y3({container:Z,instructionsInitiallyVisible:g(t.navigationInstructionsInitiallyVisible,j)})}let R;if(!d(t.animation)||t.animation!==!1){let j=document.createElement("div");j.className="cesium-viewer-animationContainer",o.appendChild(j),R=new HD(j,new JD(u))}let E;if(!d(t.timeline)||t.timeline!==!1){let j=document.createElement("div");j.className="cesium-viewer-timelineContainer",o.appendChild(j),E=new E3(j,l),E.addEventListener("settime",bXe,!1),E.zoomTo(l.startTime,l.stopTime)}let X,F,A;(!d(t.fullscreenButton)||t.fullscreenButton!==!1)&&(A=document.createElement("div"),A.className="cesium-viewer-fullscreenContainer",o.appendChild(A),X=new c3(A,t.fullscreenElement),F=Zc(X.viewModel,"isFullscreenEnabled",function(j){A.style.display=j?"block":"none",d(E)&&(E.container.style.right=`${A.clientWidth}px`,E.resize())}));let Y,U,k;if(t.vrButton){let j=document.createElement("div");j.className="cesium-viewer-vrContainer",o.appendChild(j),Y=new X3(j,x,t.fullScreenElement),U=Zc(Y.viewModel,"isVREnabled",function(J){j.style.display=J?"block":"none",d(X)&&(j.style.right=`${A.clientWidth}px`),d(E)&&(E.container.style.right=`${j.clientWidth}px`,E.resize())}),k=Zc(Y.viewModel,"isVRMode",function(J){d5t(i,J)})}this._baseLayerPickerDropDown=N,this._fullscreenSubscription=F,this._vrSubscription=U,this._vrModeSubscription=k,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=g(t.automaticallyTrackDataSourceClocks,!0),this._container=e,this._bottomContainer=s,this._element=o,this._cesiumWidget=f,this._selectionIndicator=L,this._infoBox=V,this._dataSourceCollection=b,this._destroyDataSourceCollection=p,this._dataSourceDisplay=T,this._clockViewModel=u,this._destroyClockViewModel=m,this._toolbar=Z,this._homeButton=I,this._sceneModePicker=w,this._projectionPicker=W,this._baseLayerPicker=v,this._navigationHelpButton=y,this._animation=R,this._timeline=E,this._fullscreenButton=X,this._vrButton=Y,this._geocoder=G,this._eventHelper=_,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=d(V)||d(L),this._clockTrackedDataSource=void 0,this._trackedEntity=void 0,this._needTrackedEntityUpdate=!1,this._selectedEntity=void 0,this._zoomIsFlight=!1,this._zoomTarget=void 0,this._zoomPromise=void 0,this._zoomOptions=void 0,this._selectedEntityChanged=new Se,this._trackedEntityChanged=new Se,Re.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),_.add(b.dataSourceAdded,To.prototype._onDataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._onDataSourceRemoved,this),_.add(x.postUpdate,To.prototype.resize,this),_.add(x.postRender,To.prototype._postRender,this);let D=b.length;for(let j=0;j<D;j++)this._dataSourceAdded(b,b.get(j));this._dataSourceAdded(void 0,T.defaultDataSource),_.add(b.dataSourceAdded,To.prototype._dataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._dataSourceRemoved,this);function O(j){let J=pXe(i,j);d(J)?Q.getValueOrUndefined(J.position,i.clock.currentTime)?i.trackedEntity=J:i.zoomTo(J):d(i.trackedEntity)&&(i.trackedEntity=void 0)}function K(j){i.selectedEntity=pXe(i,j)}f.screenSpaceEventHandler.setInputAction(K,jn.LEFT_CLICK),f.screenSpaceEventHandler.setInputAction(O,jn.LEFT_DOUBLE_CLICK)}Object.defineProperties(To.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._dataSourceDisplay}},entities:{get:function(){return this._dataSourceDisplay.defaultDataSource.entities}},dataSources:{get:function(){return this._dataSourceCollection}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(e){this.scene.shadowMap.enabled=e}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(e){this.scene.globe.shadows=e}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(e){this.scene.terrainProvider=e}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(e){this._cesiumWidget.targetFrameRate=e}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(e){this._cesiumWidget.useDefaultRenderLoop=e}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(e){this._cesiumWidget.resolutionScale=e}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(e){this._cesiumWidget.useBrowserRecommendedResolution=e}},allowDataSourcesToSuspendAnimation:{get:function(){return this._allowDataSourcesToSuspendAnimation},set:function(e){this._allowDataSourcesToSuspendAnimation=e}},trackedEntity:{get:function(){return this._trackedEntity},set:function(e){if(this._trackedEntity!==e){this._trackedEntity=e,Voe(this);let t=this.scene,n=t.mode;!d(e)||!d(e.position)?(this._needTrackedEntityUpdate=!1,(n===ae.COLUMBUS_VIEW||n===ae.SCENE2D)&&(t.screenSpaceCameraController.enableTranslate=!0),(n===ae.COLUMBUS_VIEW||n===ae.SCENE3D)&&(t.screenSpaceCameraController.enableTilt=!0),this._entityView=void 0,this.camera.lookAtTransform(P.IDENTITY)):this._needTrackedEntityUpdate=!0,this._trackedEntityChanged.raiseEvent(e),this.scene.requestRender()}}},selectedEntity:{get:function(){return this._selectedEntity},set:function(e){if(this._selectedEntity!==e){this._selectedEntity=e;let t=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(e)?d(t)&&t.animateAppear():d(t)&&t.animateDepart(),this._selectedEntityChanged.raiseEvent(e)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._clockTrackedDataSource},set:function(e){this._clockTrackedDataSource!==e&&(this._clockTrackedDataSource=e,yXe(this._timeline,this.clock,e))}}});To.prototype.getCurrentTilesLevels=function(){this.scene._globe.depthTestAgainstTerrain=!0;let e=this.scene._globe._surface._tilesToRender,t=this.camera.positionWC,n=this.camera.directionWC,i=new Ray(t,n),o=this.scene.pickFromRay(i,[]);if(o===void 0||o.position===void 0)return;let r=o.position,s=h.distance(r,t),a={};a.centerTileLevel=0,a.maxTileLevel=0,a.minTileLevel=Number.POSITIVE_INFINITY;let c=Number.POSITIVE_INFINITY;for(let l=0,u=e.length;l<u;l++){e[l].level>a.maxTileLevel&&(a.maxTileLevel=e[l].level),e[l].level<a.minTileLevel&&(a.minTileLevel=e[l].level);let m=Math.abs(e[l]._distance-s)<c;m<c&&(c=m,a.centerTileLevel=e[l].level)}return a};To.prototype.extend=function(e,t){e(this,t)};To.prototype.resize=function(){let e=this._cesiumWidget,t=this._container,n=t.clientWidth,i=t.clientHeight,o=d(this._animation),r=d(this._timeline);if(e.resize(),n===this._lastWidth&&i===this._lastHeight)return;let s=i-125,a=this._baseLayerPickerDropDown;if(d(a)&&(a.style.maxHeight=`${s}px`),d(this._geocoder)){let p=this._geocoder.searchSuggestionsContainer;p.style.maxHeight=`${s}px`}d(this._infoBox)&&(this._infoBox.viewModel.maxHeight=s);let c=this._timeline,l,u=0,m=5,f=3,b=0;if(o&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let p=this._lastWidth;l=this._animation.container,n>900?(u=169,p<=900&&(l.style.width="169px",l.style.height="112px",this._animation.resize())):n>=600?(u=136,(p<600||p>900)&&(l.style.width="136px",l.style.height="90px",this._animation.resize())):(u=106,(p>600||p===0)&&(l.style.width="106px",l.style.height="70px",this._animation.resize())),m=u+5}if(r&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let p=this._fullscreenButton,x=this._vrButton,T=c.container,_=T.style;f=T.clientHeight+3,_.left=`${u}px`;let L=0;d(p)&&(L+=p.container.clientWidth),d(x)&&(L+=x.container.clientWidth),_.right=`${L}px`,c.resize()}!r&&d(this._fullscreenButton)&&(b=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${m}px`,this._bottomContainer.style.bottom=`${f}px`,this._bottomContainer.style.right=`${b}px`,this._lastWidth=n,this._lastHeight=i};To.prototype.forceResize=function(){this._lastWidth=0,this.resize()};To.prototype.render=function(){this._cesiumWidget.render()};To.prototype.isDestroyed=function(){return!1};To.prototype.destroy=function(){let e;d(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(jn.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(jn.LEFT_DOUBLE_CLICK));let t=this.dataSources,n=t.length;for(e=0;e<n;e++)this._dataSourceRemoved(t,t.get(e));return this._dataSourceRemoved(void 0,this._dataSourceDisplay.defaultDataSource),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),d(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),d(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),d(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),d(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),d(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),d(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),d(this._timeline)&&(this._timeline.removeEventListener("settime",bXe,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),d(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),d(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),d(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),d(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._dataSourceDisplay=this._dataSourceDisplay.destroy(),this._cesiumWidget=this._cesiumWidget.destroy(),this._destroyDataSourceCollection&&(this._dataSourceCollection=this._dataSourceCollection.destroy()),fe(this)};To.prototype._dataSourceAdded=function(e,t){t.entities.collectionChanged.addEventListener(To.prototype._onEntityCollectionChanged,this)};To.prototype._dataSourceRemoved=function(e,t){let n=t.entities;n.collectionChanged.removeEventListener(To.prototype._onEntityCollectionChanged,this),d(this.trackedEntity)&&n.getById(this.trackedEntity.id)===this.trackedEntity&&(this.trackedEntity=void 0),d(this.selectedEntity)&&n.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};To.prototype._onTick=function(e){let t=e.currentTime,n=this._dataSourceDisplay.update(t);this._allowDataSourcesToSuspendAnimation&&(this._clockViewModel.canAnimate=n);let i=this._entityView;if(d(i)){let u=this._trackedEntity;this._dataSourceDisplay.getBoundingSphere(u,!0,d_)===Wt.DONE&&i.update(t,d_)}let o,r=!1,s=this.selectedEntity,a=d(s)&&this._enableInfoOrSelection;a&&s.isShowing&&s.isAvailable(t)&&(this._dataSourceDisplay.getBoundingSphere(s,!0,d_)!==Wt.FAILED?o=d_.center:d(s.position)&&(o=s.position.getValue(t,o)),r=d(o));let c=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(c)&&(c.position=h.clone(o,c.position),c.showSelection=a&&r,c.update());let l=d(this._infoBox)?this._infoBox.viewModel:void 0;d(l)&&(l.showInfo=a,l.enableCamera=r,l.isCameraTracking=this.trackedEntity===this.selectedEntity,a?(l.titleText=g(s.name,s.id),l.description=Q.getValueOrDefault(s.description,t,"")):(l.titleText="",l.description=""))};To.prototype._onEntityCollectionChanged=function(e,t,n){let i=n.length;for(let o=0;o<i;o++){let r=n[o];this.trackedEntity===r&&(this.trackedEntity=void 0),this.selectedEntity===r&&(this.selectedEntity=void 0)}};To.prototype._onInfoBoxCameraClicked=function(e){if(e.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let n=this.selectedEntity.position;d(n)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};To.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};To.prototype._onInfoBoxClockClicked=function(e){this.selectedEntity=void 0};To.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};To.prototype._onDataSourceChanged=function(e){this.clockTrackedDataSource===e&&yXe(this.timeline,this.clock,e)};To.prototype._onDataSourceAdded=function(e,t){this._automaticallyTrackDataSourceClocks&&(this.clockTrackedDataSource=t);let n=t.entities.id,i=this._eventHelper.add(t.changedEvent,To.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[n]=i};To.prototype._onDataSourceRemoved=function(e,t){let n=this.clockTrackedDataSource===t,i=t.entities.id;if(this._dataSourceChangedListeners[i](),this._dataSourceChangedListeners[i]=void 0,n){let o=e.length;this._automaticallyTrackDataSourceClocks&&o>0?this.clockTrackedDataSource=e.get(o-1):this.clockTrackedDataSource=void 0}};To.prototype.zoomTo=function(e,t){return gXe(this,e,{offset:t},!1)};To.prototype.flyTo=function(e,t){return gXe(this,e,t,!0)};function gXe(e,t,n,i){Voe(e);let o=new Promise(r=>{e._completeZoom=function(s){r(s)}});return e._zoomPromise=o,e._zoomIsFlight=i,e._zoomOptions=n,Promise.resolve(t).then(function(r){if(e._zoomPromise===o){if(r instanceof Ys){let s;d(r.imageryProvider)?s=Promise.resolve(r.getImageryRectangle()):s=new Promise(a=>{let c=r.readyEvent.addEventListener(()=>{c(),a(r.getImageryRectangle())})}),s.then(function(a){return CC(a,e.scene)}).then(function(a){e._zoomPromise===o&&(e._zoomTarget=a)});return}if(r instanceof ta||r instanceof FG||r instanceof i_||r instanceof Il){e._zoomTarget=r;return}if(r.isLoading&&d(r.loadingEvent)){let s=r.loadingEvent.addEventListener(function(){s(),e._zoomPromise===o&&(e._zoomTarget=r.entities.values.slice(0))});return}if(Array.isArray(r)){e._zoomTarget=r.slice(0);return}r=g(r.values,r),d(r.entities)&&(r=r.entities.values),Array.isArray(r)?e._zoomTarget=r.slice(0):e._zoomTarget=[r]}}),e.scene.requestRender(),o}function M3(e){e._zoomPromise=void 0,e._zoomTarget=void 0,e._zoomOptions=void 0}function Voe(e){let t=e._zoomPromise;d(t)&&(M3(e),e._completeZoom(!1))}To.prototype._postRender=function(){u5t(this),m5t(this)};function u5t(e){let t=e._zoomTarget;if(!d(t)||e.scene.mode===ae.MORPHING)return;let n=e.scene,i=n.camera,o=g(e._zoomOptions,{}),r;function s(u){d(o.offset)||(o.offset=new dl(0,-.5,u.radius)),r={offset:o.offset,duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyToBoundingSphere(t.boundingSphere,r):(i.viewBoundingSphere(u,o.offset),i.lookAtTransform(P.IDENTITY),e._completeZoom(!0)),M3(e)}if(t instanceof FG){if(d(t.boundingSphere)){s(t.boundingSphere);return}let u=t.frameChanged.addEventListener(function(m){s(m.boundingSphere),u()});return}if(t instanceof ta||t instanceof i_||t instanceof Il){s(t.boundingSphere);return}if(t instanceof me){r={destination:n.ellipsoid.cartographicToCartesian(t),duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyTo(r):(i.setView(r),e._completeZoom(!0)),M3(e);return}let a=t,c=[];for(let u=0,m=a.length;u<m;u++){let f=e._dataSourceDisplay.getBoundingSphere(a[u],!1,d_);if(f===Wt.PENDING)return;f!==Wt.FAILED&&c.push(de.clone(d_))}if(c.length===0){Voe(e);return}e.trackedEntity=void 0;let l=de.fromBoundingSpheres(c);e._zoomIsFlight?(M3(e),i.flyToBoundingSphere(l,{duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)},offset:o.offset})):(i.viewBoundingSphere(l,o.offset),i.lookAtTransform(P.IDENTITY),M3(e),e._completeZoom(!0))}function m5t(e){if(!e._needTrackedEntityUpdate)return;let t=e._trackedEntity,n=e.clock.currentTime,i=Q.getValueOrUndefined(t.position,n);if(!d(i))return;let o=e.scene,r=e._dataSourceDisplay.getBoundingSphere(t,!1,d_);if(r===Wt.PENDING)return;let s=o.mode;(s===ae.COLUMBUS_VIEW||s===ae.SCENE2D)&&(o.screenSpaceCameraController.enableTranslate=!1),(s===ae.COLUMBUS_VIEW||s===ae.SCENE3D)&&(o.screenSpaceCameraController.enableTilt=!1);let a=r!==Wt.FAILED?d_:void 0;e._entityView=new v9(t,o,o.ellipsoid),e._entityView.update(n,a),e._needTrackedEntityUpdate=!1}var Zoe=To;var _rr=S(C(),1);function h5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesium3DTilesInspectorContainer",e.container.appendChild(t);let n=new $D(t,e.scene);Object.defineProperties(e,{cesium3DTilesInspector:{get:function(){return n}}})}var Roe=h5t;var Lrr=S(C(),1);function p5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesiumInspectorContainer",e.container.appendChild(t);let n=new s3(t,e.scene);Object.defineProperties(e,{cesiumInspector:{get:function(){return n}}})}var Goe=p5t;var Grr=S(C(),1);function f5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=!0,i=g(t.flyToOnDrop,!0),o=new Se,r=g(t.clearOnDrop,!0),s=g(t.dropTarget,e.container),a=g(t.clampToGround,!0),c=t.proxy;s=li(s),Object.defineProperties(e,{dropTarget:{get:function(){return s},set:function(u){xXe(s,l),s=u,Eoe(s,l)}},dropEnabled:{get:function(){return n},set:function(u){u!==n&&(u?Eoe(s,l):xXe(s,l),n=u)}},dropError:{get:function(){return o}},clearOnDrop:{get:function(){return r},set:function(u){r=u}},flyToOnDrop:{get:function(){return i},set:function(u){i=u}},proxy:{get:function(){return c},set:function(u){c=u}},clampToGround:{get:function(){return a},set:function(u){a=u}}});function l(u){hL(u),r&&(e.entities.removeAll(),e.dataSources.removeAll());let m=u.dataTransfer.files,f=m.length;for(let b=0;b<f;b++){let p=m[b],x=new FileReader;x.onload=b5t(e,p,c,a),x.onerror=y5t(e,p),x.readAsText(p)}}Eoe(s,l),e.destroy=OE(e,e.destroy,function(){e.dropEnabled=!1}),e._handleDrop=l}function hL(e){e.stopPropagation(),e.preventDefault()}function xXe(e,t){let n=e;d(n)&&(n.removeEventListener("drop",t,!1),n.removeEventListener("dragenter",hL,!1),n.removeEventListener("dragover",hL,!1),n.removeEventListener("dragexit",hL,!1))}function Eoe(e,t){e.addEventListener("drop",t,!1),e.addEventListener("dragenter",hL,!1),e.addEventListener("dragover",hL,!1),e.addEventListener("dragexit",hL,!1)}function b5t(e,t,n,i){let o=e.scene;return function(r){let s=t.name;try{let a;if(/\.czml$/i.test(s))a=m9.load(JSON.parse(r.target.result),{sourceUri:s});else if(/\.geojson$/i.test(s)||/\.json$/i.test(s)||/\.topojson$/i.test(s))a=e5.load(JSON.parse(r.target.result),{sourceUri:s,clampToGround:i});else if(/\.(kml|kmz)$/i.test(s))a=m5.load(t,{sourceUri:s,proxy:n,camera:o.camera,canvas:o.canvas,clampToGround:i,screenOverlayContainer:e.container});else if(/\.gpx$/i.test(s))a=o5.load(t,{sourceUri:s,proxy:n});else{e.dropError.raiseEvent(e,s,`Unrecognized file: ${s}`);return}d(a)&&e.dataSources.add(a).then(function(c){e.flyToOnDrop&&e.flyTo(c)}).catch(function(c){e.dropError.raiseEvent(e,s,c)})}catch(a){e.dropError.raiseEvent(e,s,a)}}}function y5t(e,t){return function(n){e.dropError.raiseEvent(e,t.name,n.target.error)}}var Ioe=f5t;var Wrr=S(C(),1);function g5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=new x3({scene:e.scene,container:e.bottomContainer,lowFrameRateMessage:t.lowFrameRateMessage});Object.defineProperties(e,{performanceWatchdog:{get:function(){return n}}})}var Xoe=g5t;var Jrr=S(C(),1);var Orr=S(C(),1);var Arr=S(C(),1);function TXe(e){let t=e.split(`
19086
+ </div>`,n.appendChild(i);let o=new h3(t);Re.track(o),Re.applyBindings(o,n),d(o.defaultLayer)&&(o.currentLayer=o.defaultLayer)}var yoe=v9t;var dir=S(C(),1);var iir=S(C(),1);var N9t="M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4853444 22.104033 11.423165 24.0625 13.84375 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 8.975298 28.305952 7.03125 25.875 7.03125 L 13.84375 7.03125 z",F9t="M 27.34375 1.65625 L 5.28125 27.9375 L 8.09375 30.3125 L 30.15625 4.03125 L 27.34375 1.65625 z M 13.84375 7.03125 C 11.412798 7.03125 9.46875 8.975298 9.46875 11.40625 L 9.46875 11.59375 L 2.53125 7.21875 L 2.53125 24.0625 L 9.46875 19.6875 C 9.4724893 20.232036 9.5676108 20.7379 9.75 21.21875 L 21.65625 7.03125 L 13.84375 7.03125 z M 28.21875 7.71875 L 14.53125 24.0625 L 25.875 24.0625 C 28.305952 24.0625 30.28125 22.087202 30.28125 19.65625 L 30.28125 11.40625 C 30.28125 9.8371439 29.456025 8.4902779 28.21875 7.71875 z";function goe(){this._cameraClicked=new Se,this._closeClicked=new Se,this.maxHeight=500,this.enableCamera=!1,this.isCameraTracking=!1,this.showInfo=!1,this.titleText="",this.description="",Re.track(this,["showInfo","titleText","description","maxHeight","enableCamera","isCameraTracking"]),this._loadingIndicatorHtml='<div class="cesium-infoBox-loadingContainer"><span class="cesium-infoBox-loading"></span></div>',this.cameraIconPath=void 0,Re.defineProperty(this,"cameraIconPath",{get:function(){return!this.enableCamera||this.isCameraTracking?F9t:N9t}}),Re.defineProperty(this,"_bodyless",{get:function(){return!d(this.description)||this.description.length===0}})}goe.prototype.maxHeightOffset=function(e){return`${this.maxHeight-e}px`};Object.defineProperties(goe.prototype,{cameraClicked:{get:function(){return this._cameraClicked}},closeClicked:{get:function(){return this._closeClicked}}});var p3=goe;function YH(e){e=li(e);let t=document.createElement("div");t.className="cesium-infoBox",t.setAttribute("data-bind",'css: { "cesium-infoBox-visible" : showInfo, "cesium-infoBox-bodyless" : _bodyless }'),e.appendChild(t);let n=document.createElement("div");n.className="cesium-infoBox-title",n.setAttribute("data-bind","text: titleText"),t.appendChild(n);let i=document.createElement("button");i.type="button",i.className="cesium-button cesium-infoBox-camera",i.setAttribute("data-bind",'attr: { title: "Focus camera on object" },click: function () { cameraClicked.raiseEvent(this); },enable: enableCamera,cesiumSvgPath: { path: cameraIconPath, width: 32, height: 32 }'),t.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-infoBox-close",o.setAttribute("data-bind","click: function () { closeClicked.raiseEvent(this); }"),o.innerHTML="&times;",t.appendChild(o);let r=document.createElement("iframe");r.className="cesium-infoBox-iframe",r.setAttribute("sandbox","allow-same-origin allow-popups allow-forms"),r.setAttribute("data-bind","style : { maxHeight : maxHeightOffset(40) }"),r.setAttribute("allowfullscreen",!0),t.appendChild(r);let s=new p3;Re.applyBindings(s,t),this._container=e,this._element=t,this._frame=r,this._viewModel=s,this._descriptionSubscription=void 0;let a=this;r.addEventListener("load",function(){let c=r.contentDocument,l=c.createElement("link");l.href=Sn("Widgets/InfoBox/InfoBoxDescription.css"),l.rel="stylesheet",l.type="text/css";let u=c.createElement("div");u.className="cesium-infoBox-description",c.head.appendChild(l),c.body.appendChild(u),a._descriptionSubscription=Zc(s,"description",function(m){r.style.height="5px",u.innerHTML=m;let f=null,b=u.firstElementChild;if(b!==null&&u.childNodes.length===1){let x=window.getComputedStyle(b);if(x!==null){let T=x["background-color"],_=z.fromCssColorString(T);d(_)&&_.alpha!==0&&(f=x["background-color"])}}t.style["background-color"]=f;let p=u.getBoundingClientRect().height;r.style.height=`${p}px`})}),r.setAttribute("src","about:blank")}Object.defineProperties(YH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}},frame:{get:function(){return this._frame}}});YH.prototype.isDestroyed=function(){return!1};YH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),d(this._descriptionSubscription)&&this._descriptionSubscription.dispose(),fe(this)};var f3=YH;var _ir=S(C(),1);var pir=S(C(),1);function sXe(){this.showInstructions=!1;let e=this;this._command=ti(function(){e.showInstructions=!e.showInstructions}),this._showClick=ti(function(){e._touch=!1}),this._showTouch=ti(function(){e._touch=!0}),this._touch=!1,this.tooltip="Navigation Instructions",Re.track(this,["tooltip","showInstructions","_touch"])}Object.defineProperties(sXe.prototype,{command:{get:function(){return this._command}},showClick:{get:function(){return this._showClick}},showTouch:{get:function(){return this._showTouch}}});var b3=sXe;function BH(e){let t=li(e.container),n=new b3,i=g(e.instructionsInitiallyVisible,!1);n.showInstructions=i,n._svgPath="M16,1.466C7.973,1.466,1.466,7.973,1.466,16c0,8.027,6.507,14.534,14.534,14.534c8.027,0,14.534-6.507,14.534-14.534C30.534,7.973,24.027,1.466,16,1.466z M17.328,24.371h-2.707v-2.596h2.707V24.371zM17.328,19.003v0.858h-2.707v-1.057c0-3.19,3.63-3.696,3.63-5.963c0-1.034-0.924-1.826-2.134-1.826c-1.254,0-2.354,0.924-2.354,0.924l-1.541-1.915c0,0,1.519-1.584,4.137-1.584c2.487,0,4.796,1.54,4.796,4.136C21.156,16.208,17.328,16.627,17.328,19.003z";let o=document.createElement("span");o.className="cesium-navigationHelpButton-wrapper",t.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-navigation-help-button",r.setAttribute("data-bind","attr: { title: tooltip },click: command,cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }"),o.appendChild(r);let s=document.createElement("div");s.className="cesium-navigation-help",s.setAttribute("data-bind",'css: { "cesium-navigation-help-visible" : showInstructions}'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-navigation-button cesium-navigation-button-left",a.setAttribute("data-bind",'click: showClick, css: {"cesium-navigation-button-selected": !_touch, "cesium-navigation-button-unselected": _touch}');let c=document.createElement("img");c.src=Sn("Widgets/Images/NavigationHelp/Mouse.svg"),c.className="cesium-navigation-button-icon",c.style.width="25px",c.style.height="25px",a.appendChild(c),a.appendChild(document.createTextNode("Mouse"));let l=document.createElement("button");l.type="button",l.className="cesium-navigation-button cesium-navigation-button-right",l.setAttribute("data-bind",'click: showTouch, css: {"cesium-navigation-button-selected": _touch, "cesium-navigation-button-unselected": !_touch}');let u=document.createElement("img");u.src=Sn("Widgets/Images/NavigationHelp/Touch.svg"),u.className="cesium-navigation-button-icon",u.style.width="25px",u.style.height="25px",l.appendChild(u),l.appendChild(document.createTextNode("Touch")),s.appendChild(a),s.appendChild(l);let m=document.createElement("div");m.className="cesium-click-navigation-help cesium-navigation-help-instructions",m.setAttribute("data-bind",'css: { "cesium-click-navigation-help-visible" : !_touch}'),m.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseLeft.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">Left click + drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseRight.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Right click + drag, or</div> <div class="cesium-navigation-help-details">Mouse wheel scroll</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/MouseMiddle.svg")}" width="48" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Rotate view</div> <div class="cesium-navigation-help-details">Middle click + drag, or</div> <div class="cesium-navigation-help-details">CTRL + Left/Right click + drag</div> </td> </tr> </table>`,s.appendChild(m);let f=document.createElement("div");f.className="cesium-touch-navigation-help cesium-navigation-help-instructions",f.setAttribute("data-bind",'css: { "cesium-touch-navigation-help-visible" : _touch}'),f.innerHTML=` <table> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchDrag.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-pan">Pan view</div> <div class="cesium-navigation-help-details">One finger drag</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchZoom.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-zoom">Zoom view</div> <div class="cesium-navigation-help-details">Two finger pinch</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchTilt.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-rotate">Tilt view</div> <div class="cesium-navigation-help-details">Two finger drag, same direction</div> </td> </tr> <tr> <td><img src="${Sn("Widgets/Images/NavigationHelp/TouchRotate.svg")}" width="70" height="48" /></td> <td> <div class="cesium-navigation-help-tilt">Rotate view</div> <div class="cesium-navigation-help-details">Two finger drag, opposite direction</div> </td> </tr> </table>`,s.appendChild(f),Re.applyBindings(n,o),this._container=t,this._viewModel=n,this._wrapper=o,this._closeInstructions=function(b){o.contains(b.target)||(n.showInstructions=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeInstructions,!0):(document.addEventListener("mousedown",this._closeInstructions,!0),document.addEventListener("touchstart",this._closeInstructions,!0))}Object.defineProperties(BH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});BH.prototype.isDestroyed=function(){return!1};BH.prototype.destroy=function(){return bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeInstructions,!0):(document.removeEventListener("mousedown",this._closeInstructions,!0),document.removeEventListener("touchstart",this._closeInstructions,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var y3=BH;var Pir=S(C(),1);var Gir=S(C(),1);function xoe(e){this._scene=e.scene,this.lowFrameRateMessage=g(e.lowFrameRateMessage,"This application appears to be performing poorly on your system. Please try using a different web browser or updating your video drivers."),this.lowFrameRateMessageDismissed=!1,this.showingLowFrameRateMessage=!1,Re.track(this,["lowFrameRateMessage","lowFrameRateMessageDismissed","showingLowFrameRateMessage"]);let t=this;this._dismissMessage=ti(function(){t.showingLowFrameRateMessage=!1,t.lowFrameRateMessageDismissed=!0});let n=EF.fromScene(e.scene);this._unsubscribeLowFrameRate=n.lowFrameRate.addEventListener(function(){t.lowFrameRateMessageDismissed||(t.showingLowFrameRateMessage=!0)}),this._unsubscribeNominalFrameRate=n.nominalFrameRate.addEventListener(function(){t.showingLowFrameRateMessage=!1})}Object.defineProperties(xoe.prototype,{scene:{get:function(){return this._scene}},dismissMessage:{get:function(){return this._dismissMessage}}});xoe.prototype.destroy=function(){return this._unsubscribeLowFrameRate(),this._unsubscribeNominalFrameRate(),fe(this)};var g3=xoe;function OH(e){let t=li(e.container),n=new g3(e),i=document.createElement("div");i.className="cesium-performance-watchdog-message-area",i.setAttribute("data-bind","visible: showingLowFrameRateMessage");let o=document.createElement("button");o.setAttribute("type","button"),o.className="cesium-performance-watchdog-message-dismiss",o.innerHTML="&times;",o.setAttribute("data-bind","click: dismissMessage"),i.appendChild(o);let r=document.createElement("div");r.className="cesium-performance-watchdog-message",r.setAttribute("data-bind","html: lowFrameRateMessage"),i.appendChild(r),t.appendChild(i),Re.applyBindings(n,i),this._container=t,this._viewModel=n,this._element=i}Object.defineProperties(OH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});OH.prototype.isDestroyed=function(){return!1};OH.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var x3=OH;var Hir=S(C(),1);var Uir=S(C(),1);function KH(e){this._scene=e,this._orthographic=e.camera.frustum instanceof En,this._flightInProgress=!1,this.dropDownVisible=!1,this.tooltipPerspective="Perspective Projection",this.tooltipOrthographic="Orthographic Projection",this.selectedTooltip=void 0,this.sceneMode=e.mode,Re.track(this,["_orthographic","_flightInProgress","sceneMode","dropDownVisible","tooltipPerspective","tooltipOrthographic"]);let t=this;Re.defineProperty(this,"selectedTooltip",function(){return t._orthographic?t.tooltipOrthographic:t.tooltipPerspective}),this._toggleDropDown=ti(function(){t.sceneMode===ae.SCENE2D||t._flightInProgress||(t.dropDownVisible=!t.dropDownVisible)}),this._eventHelper=new Ws,this._eventHelper.add(e.morphComplete,function(n,i,o,r){t.sceneMode=o,t._orthographic=o===ae.SCENE2D||t._scene.camera.frustum instanceof En}),this._eventHelper.add(e.preRender,function(){t._flightInProgress=d(e.camera._currentFlight)}),this._switchToPerspective=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToPerspectiveFrustum(),t._orthographic=!1,t.dropDownVisible=!1)}),this._switchToOrthographic=ti(function(){t.sceneMode!==ae.SCENE2D&&(t._scene.camera.switchToOrthographicFrustum(),t._orthographic=!0,t.dropDownVisible=!1)}),this._sceneMode=ae}Object.defineProperties(KH.prototype,{scene:{get:function(){return this._scene}},toggleDropDown:{get:function(){return this._toggleDropDown}},switchToPerspective:{get:function(){return this._switchToPerspective}},switchToOrthographic:{get:function(){return this._switchToOrthographic}},isOrthographicProjection:{get:function(){return this._orthographic}}});KH.prototype.isDestroyed=function(){return!1};KH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var T3=KH;var A9t="M 28.15625,10.4375 9.125,13.21875 13.75,43.25 41.75,55.09375 50.8125,37 54.5,11.9375 z m 0.125,3 19.976451,0.394265 L 43.03125,16.875 22.6875,14.28125 z M 50.971746,15.705477 47.90625,36.03125 42.53125,46 44.84375,19.3125 z M 12.625,16.03125 l 29.15625,3.6875 -2.65625,31 L 16.4375,41.125 z",D9t="m 31.560594,6.5254438 -20.75,12.4687502 0.1875,24.5625 22.28125,11.8125 19.5,-12 0.65625,-0.375 0,-0.75 0.0312,-23.21875 z m 0.0625,3.125 16.65625,9.5000002 -16.125,10.28125 -17.34375,-9.71875 z m 18.96875,11.1875002 0.15625,20.65625 -17.46875,10.59375 0.15625,-20.28125 z m -37.0625,1.25 17.21875,9.625 -0.15625,19.21875 -16.9375,-9 z";function HH(e,t){e=li(e);let n=new T3(t);n._perspectivePath=A9t,n._orthographicPath=D9t;let i=document.createElement("span");i.className="cesium-projectionPicker-wrapper cesium-toolbar-button",e.appendChild(i);let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-toolbar-button",o.setAttribute("data-bind",'css: { "cesium-projectionPicker-buttonPerspective": !_orthographic, "cesium-projectionPicker-buttonOrthographic": _orthographic, "cesium-button-disabled" : sceneMode === _sceneMode.SCENE2D || _flightInProgress, "cesium-projectionPicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),o.innerHTML='<!-- ko cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64, css: "cesium-projectionPicker-iconPerspective" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64, css: "cesium-projectionPicker-iconOrthographic" } --><!-- /ko -->',i.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",r.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && _orthographic), "cesium-projectionPicker-none" : !_orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible },attr: { title: tooltipPerspective },click: switchToPerspective,cesiumSvgPath: { path: _perspectivePath, width: 64, height: 64 }'),i.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-projectionPicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-projectionPicker-visible" : (dropDownVisible && !_orthographic), "cesium-projectionPicker-none" : _orthographic, "cesium-projectionPicker-hidden" : !dropDownVisible},attr: { title: tooltipOrthographic },click: switchToOrthographic,cesiumSvgPath: { path: _orthographicPath, width: 64, height: 64 }'),i.appendChild(s),Re.applyBindings(n,i),this._viewModel=n,this._container=e,this._wrapper=i,this._closeDropDown=function(a){i.contains(a.target)||(n.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(HH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});HH.prototype.isDestroyed=function(){return!1};HH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var _3=HH;var cor=S(C(),1);var tor=S(C(),1);function JH(e,t){this._scene=e;let n=this,i=function(o,r,s,a){n.sceneMode=s,n.dropDownVisible=!1};this._eventHelper=new Ws,this._eventHelper.add(e.morphStart,i),this._duration=g(t,2),this.sceneMode=e.mode,this.dropDownVisible=!1,this.tooltip2D="2D",this.tooltip3D="3D",this.tooltipColumbusView="Columbus View",Re.track(this,["sceneMode","dropDownVisible","tooltip2D","tooltip3D","tooltipColumbusView"]),this.selectedTooltip=void 0,Re.defineProperty(this,"selectedTooltip",function(){let o=n.sceneMode;return o===ae.SCENE2D?n.tooltip2D:o===ae.SCENE3D?n.tooltip3D:n.tooltipColumbusView}),this._toggleDropDown=ti(function(){n.dropDownVisible=!n.dropDownVisible}),this._morphTo2D=ti(function(){e.morphTo2D(n._duration)}),this._morphTo3D=ti(function(){e.morphTo3D(n._duration)}),this._morphToColumbusView=ti(function(){e.morphToColumbusView(n._duration)}),this._sceneMode=ae}Object.defineProperties(JH.prototype,{scene:{get:function(){return this._scene}},duration:{get:function(){return this._duration},set:function(e){this._duration=e}},toggleDropDown:{get:function(){return this._toggleDropDown}},morphTo2D:{get:function(){return this._morphTo2D}},morphTo3D:{get:function(){return this._morphTo3D}},morphToColumbusView:{get:function(){return this._morphToColumbusView}}});JH.prototype.isDestroyed=function(){return!1};JH.prototype.destroy=function(){this._eventHelper.removeAll(),fe(this)};var S3=JH;var U9t="m 32.401392,4.9330437 c -7.087603,0 -14.096095,2.884602 -19.10793,7.8946843 -5.0118352,5.010083 -7.9296167,11.987468 -7.9296167,19.072999 0,7.085531 2.9177815,14.097848 7.9296167,19.107931 4.837653,4.835961 11.541408,7.631372 18.374354,7.82482 0.05712,0.01231 0.454119,0.139729 0.454119,0.139729 l 0.03493,-0.104797 c 0.08246,7.84e-4 0.162033,0.03493 0.244525,0.03493 0.08304,0 0.161515,-0.03414 0.244526,-0.03493 l 0.03493,0.104797 c 0,0 0.309474,-0.129487 0.349323,-0.139729 6.867765,-0.168094 13.582903,-2.965206 18.444218,-7.82482 2.558195,-2.5573 4.551081,-5.638134 5.903547,-8.977584 1.297191,-3.202966 2.02607,-6.661489 2.02607,-10.130347 0,-6.237309 -2.366261,-12.31219 -6.322734,-17.116794 -0.0034,-0.02316 0.0049,-0.04488 0,-0.06986 -0.01733,-0.08745 -0.104529,-0.278855 -0.104797,-0.279458 -5.31e-4,-0.0012 -0.522988,-0.628147 -0.523984,-0.62878 -3.47e-4,-2.2e-4 -0.133444,-0.03532 -0.244525,-0.06987 C 51.944299,13.447603 51.751076,13.104317 51.474391,12.827728 46.462556,7.8176457 39.488996,4.9330437 32.401392,4.9330437 z m -2.130866,3.5281554 0.104797,9.6762289 c -4.111695,-0.08361 -7.109829,-0.423664 -9.257041,-0.943171 1.198093,-2.269271 2.524531,-4.124404 3.91241,-5.414496 2.167498,-2.0147811 3.950145,-2.8540169 5.239834,-3.3185619 z m 2.794579,0 c 1.280302,0.4754953 3.022186,1.3285948 5.065173,3.2486979 1.424667,1.338973 2.788862,3.303645 3.982275,5.728886 -2.29082,0.403367 -5.381258,0.621049 -8.942651,0.698645 L 33.065105,8.4611991 z m 5.728886,0.2445256 c 4.004072,1.1230822 7.793098,3.1481363 10.724195,6.0782083 0.03468,0.03466 0.07033,0.06991 0.104797,0.104797 -0.45375,0.313891 -0.923054,0.663002 -1.956205,1.082899 -0.647388,0.263114 -1.906242,0.477396 -2.829511,0.733577 -1.382296,-2.988132 -3.027146,-5.368585 -4.785716,-7.0213781 -0.422866,-0.397432 -0.835818,-0.6453247 -1.25756,-0.9781032 z m -15.33525,0.7685092 c -0.106753,0.09503 -0.207753,0.145402 -0.31439,0.244526 -1.684973,1.5662541 -3.298068,3.8232211 -4.680919,6.5672591 -0.343797,-0.14942 -1.035052,-0.273198 -1.292493,-0.419186 -0.956528,-0.542427 -1.362964,-1.022024 -1.537018,-1.292493 -0.0241,-0.03745 -0.01868,-0.0401 -0.03493,-0.06986 2.250095,-2.163342 4.948824,-3.869984 7.859752,-5.0302421 z m -9.641296,7.0912431 c 0.464973,0.571618 0.937729,1.169056 1.956205,1.746612 0.349907,0.198425 1.107143,0.335404 1.537018,0.523983 -1.20166,3.172984 -1.998037,7.051901 -2.165798,11.772162 C 14.256557,30.361384 12.934823,30.161483 12.280427,29.90959 10.644437,29.279855 9.6888882,28.674891 9.1714586,28.267775 8.6540289,27.860658 8.6474751,27.778724 8.6474751,27.778724 l -0.069864,0.03493 C 9.3100294,23.691285 11.163248,19.798527 13.817445,16.565477 z m 37.552149,0.523984 c 2.548924,3.289983 4.265057,7.202594 4.890513,11.318043 -0.650428,0.410896 -1.756876,1.001936 -3.563088,1.606882 -1.171552,0.392383 -3.163859,0.759153 -4.960377,1.117832 -0.04367,-4.752703 -0.784809,-8.591423 -1.88634,-11.807094 0.917574,-0.263678 2.170552,-0.486495 2.864443,-0.76851 1.274693,-0.518066 2.003942,-1.001558 2.654849,-1.467153 z m -31.439008,2.619917 c 2.487341,0.672766 5.775813,1.137775 10.479669,1.222628 l 0.104797,10.689263 0,0.03493 0,0.733577 c -5.435005,-0.09059 -9.512219,-0.519044 -12.610536,-1.117831 0.106127,-4.776683 0.879334,-8.55791 2.02607,-11.562569 z m 23.264866,0.31439 c 1.073459,3.067541 1.833795,6.821314 1.816476,11.702298 -3.054474,0.423245 -7.062018,0.648559 -11.702298,0.698644 l 0,-0.838373 -0.104796,-10.654331 c 4.082416,-0.0864 7.404468,-0.403886 9.990618,-0.908238 z M 8.2632205,30.922625 c 0.7558676,0.510548 1.5529563,1.013339 3.0041715,1.57195 0.937518,0.360875 2.612202,0.647642 3.91241,0.978102 0.112814,3.85566 0.703989,7.107756 1.606883,9.920754 -1.147172,-0.324262 -2.644553,-0.640648 -3.423359,-0.978102 -1.516688,-0.657177 -2.386627,-1.287332 -2.864443,-1.71168 -0.477816,-0.424347 -0.489051,-0.489051 -0.489051,-0.489051 L 9.8002387,40.319395 C 8.791691,37.621767 8.1584238,34.769583 8.1584238,31.900727 c 0,-0.330153 0.090589,-0.648169 0.1047967,-0.978102 z m 48.2763445,0.419186 c 0.0047,0.188973 0.06986,0.36991 0.06986,0.558916 0,2.938869 -0.620228,5.873558 -1.676747,8.628261 -0.07435,0.07583 -0.06552,0.07411 -0.454119,0.349323 -0.606965,0.429857 -1.631665,1.042044 -3.318562,1.676747 -1.208528,0.454713 -3.204964,0.850894 -5.135038,1.25756 0.84593,-2.765726 1.41808,-6.005357 1.606883,-9.815957 2.232369,-0.413371 4.483758,-0.840201 5.938479,-1.327425 1.410632,-0.472457 2.153108,-0.89469 2.96924,-1.327425 z m -38.530252,2.864443 c 3.208141,0.56697 7.372279,0.898588 12.575603,0.978103 l 0.174662,9.885821 c -4.392517,-0.06139 -8.106722,-0.320566 -10.863925,-0.803441 -1.051954,-2.664695 -1.692909,-6.043794 -1.88634,-10.060483 z m 26.793022,0.31439 c -0.246298,3.923551 -0.877762,7.263679 -1.816476,9.885822 -2.561957,0.361954 -5.766249,0.560708 -9.431703,0.62878 l -0.174661,-9.815957 c 4.491734,-0.04969 8.334769,-0.293032 11.42284,-0.698645 z M 12.035901,44.860585 c 0.09977,0.04523 0.105535,0.09465 0.209594,0.139729 1.337656,0.579602 3.441099,1.058072 5.589157,1.537018 1.545042,3.399208 3.548524,5.969402 5.589157,7.789888 -3.034411,-1.215537 -5.871615,-3.007978 -8.174142,-5.309699 -1.245911,-1.245475 -2.271794,-2.662961 -3.213766,-4.156936 z m 40.69605,0 c -0.941972,1.493975 -1.967855,2.911461 -3.213765,4.156936 -2.74253,2.741571 -6.244106,4.696717 -9.955686,5.868615 0.261347,-0.241079 0.507495,-0.394491 0.768509,-0.663713 1.674841,-1.727516 3.320792,-4.181056 4.645987,-7.265904 2.962447,-0.503021 5.408965,-1.122293 7.161107,-1.781544 0.284034,-0.106865 0.337297,-0.207323 0.593848,-0.31439 z m -31.404076,2.305527 c 2.645807,0.376448 5.701178,0.649995 9.466635,0.698645 l 0.139729,7.789888 c -1.38739,-0.480844 -3.316218,-1.29837 -5.659022,-3.388427 -1.388822,-1.238993 -2.743668,-3.0113 -3.947342,-5.100106 z m 20.365491,0.104797 c -1.04872,2.041937 -2.174337,3.779068 -3.353494,4.995309 -1.853177,1.911459 -3.425515,2.82679 -4.611055,3.353494 l -0.139729,-7.789887 c 3.13091,-0.05714 5.728238,-0.278725 8.104278,-0.558916 z",k9t="m 2.9825053,17.550598 0,1.368113 0,26.267766 0,1.368113 1.36811,0 54.9981397,0 1.36811,0 0,-1.368113 0,-26.267766 0,-1.368113 -1.36811,0 -54.9981397,0 -1.36811,0 z m 2.73623,2.736226 10.3292497,0 0,10.466063 -10.3292497,0 0,-10.466063 z m 13.0654697,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 11.69737,0 0,10.466063 -11.69737,0 0,-10.466063 z m 14.43359,0 10.32926,0 0,10.466063 -10.32926,0 0,-10.466063 z m -41.9326497,13.202288 10.3292497,0 0,10.329252 -10.3292497,0 0,-10.329252 z m 13.0654697,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 11.69737,0 0,10.329252 -11.69737,0 0,-10.329252 z m 14.43359,0 10.32926,0 0,10.329252 -10.32926,0 0,-10.329252 z",z9t="m 14.723969,17.675598 -0.340489,0.817175 -11.1680536,26.183638 -0.817175,1.872692 2.076986,0 54.7506996,0 2.07698,0 -0.81717,-1.872692 -11.16805,-26.183638 -0.34049,-0.817175 -0.91933,0 -32.414586,0 -0.919322,0 z m 1.838643,2.723916 6.196908,0 -2.928209,10.418977 -7.729111,0 4.460412,-10.418977 z m 9.02297,0 4.903049,0 0,10.418977 -7.831258,0 2.928209,-10.418977 z m 7.626964,0 5.584031,0 2.62176,10.418977 -8.205791,0 0,-10.418977 z m 8.410081,0 5.51593,0 4.46042,10.418977 -7.38863,0 -2.58772,-10.418977 z m -30.678091,13.142892 8.103649,0 -2.89416,10.282782 -9.6018026,0 4.3923136,-10.282782 z m 10.929711,0 8.614384,0 0,10.282782 -11.508544,0 2.89416,-10.282782 z m 11.338299,0 8.852721,0 2.58772,10.282782 -11.440441,0 0,-10.282782 z m 11.678781,0 7.86531,0 4.39231,10.282782 -9.6699,0 -2.58772,-10.282782 z";function QH(e,t,n){e=li(e);let i=new S3(t,n);i._globePath=U9t,i._flatMapPath=k9t,i._columbusViewPath=z9t;let o=document.createElement("span");o.className="cesium-sceneModePicker-wrapper cesium-toolbar-button",e.appendChild(o);let r=document.createElement("button");r.type="button",r.className="cesium-button cesium-toolbar-button",r.setAttribute("data-bind",'css: { "cesium-sceneModePicker-button2D": sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-button3D": sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-buttonColumbusView": sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-selected": dropDownVisible },attr: { title: selectedTooltip },click: toggleDropDown'),r.innerHTML='<!-- ko cesiumSvgPath: { path: _globePath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon3D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-icon2D" } --><!-- /ko --><!-- ko cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64, css: "cesium-sceneModePicker-slide-svg cesium-sceneModePicker-iconColumbusView" } --><!-- /ko -->',o.appendChild(r);let s=document.createElement("button");s.type="button",s.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",s.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE3D)) || (!dropDownVisible && (sceneMode === _sceneMode.SCENE3D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE3D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip3D },click: morphTo3D,cesiumSvgPath: { path: _globePath, width: 64, height: 64 }'),o.appendChild(s);let a=document.createElement("button");a.type="button",a.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",a.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.SCENE2D)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.SCENE2D, "cesium-sceneModePicker-hidden" : !dropDownVisible },attr: { title: tooltip2D },click: morphTo2D,cesiumSvgPath: { path: _flatMapPath, width: 64, height: 64 }'),o.appendChild(a);let c=document.createElement("button");c.type="button",c.className="cesium-button cesium-toolbar-button cesium-sceneModePicker-dropDown-icon",c.setAttribute("data-bind",'css: { "cesium-sceneModePicker-visible" : (dropDownVisible && (sceneMode !== _sceneMode.COLUMBUS_VIEW)) || (!dropDownVisible && (sceneMode === _sceneMode.COLUMBUS_VIEW)), "cesium-sceneModePicker-none" : sceneMode === _sceneMode.COLUMBUS_VIEW, "cesium-sceneModePicker-hidden" : !dropDownVisible},attr: { title: tooltipColumbusView },click: morphToColumbusView,cesiumSvgPath: { path: _columbusViewPath, width: 64, height: 64 }'),o.appendChild(c),Re.applyBindings(i,o),this._viewModel=i,this._container=e,this._wrapper=o,this._closeDropDown=function(l){o.contains(l.target)||(i.dropDownVisible=!1)},bn.supportsPointerEvents()?document.addEventListener("pointerdown",this._closeDropDown,!0):(document.addEventListener("mousedown",this._closeDropDown,!0),document.addEventListener("touchstart",this._closeDropDown,!0))}Object.defineProperties(QH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});QH.prototype.isDestroyed=function(){return!1};QH.prototype.destroy=function(){return this._viewModel.destroy(),bn.supportsPointerEvents()?document.removeEventListener("pointerdown",this._closeDropDown,!0):(document.removeEventListener("mousedown",this._closeDropDown,!0),document.removeEventListener("touchstart",this._closeDropDown,!0)),Re.cleanNode(this._wrapper),this._container.removeChild(this._wrapper),fe(this)};var C3=QH;var _or=S(C(),1);var hor=S(C(),1);var Y9t=new B,jH="-1000px";function L3(e,t,n){this._scene=e,this._screenPositionX=jH,this._screenPositionY=jH,this._tweens=e.tweens,this._container=g(n,document.body),this._selectionIndicatorElement=t,this._scale=1,this.position=void 0,this.showSelection=!1,Re.track(this,["position","_screenPositionX","_screenPositionY","_scale","showSelection"]),this.isVisible=void 0,Re.defineProperty(this,"isVisible",{get:function(){return this.showSelection&&d(this.position)}}),Re.defineProperty(this,"_transform",{get:function(){return`scale(${this._scale})`}}),this.computeScreenSpacePosition=function(i,o){return yo.worldToWindowCoordinates(e,i,o)}}L3.prototype.update=function(){if(this.showSelection&&d(this.position)){let e=this.computeScreenSpacePosition(this.position,Y9t);if(!d(e))this._screenPositionX=jH,this._screenPositionY=jH;else{let t=this._container,n=t.parentNode.clientWidth,i=t.parentNode.clientHeight,o=this._selectionIndicatorElement.clientWidth,r=o*.5;e.x=Math.min(Math.max(e.x,-o),n+o)-r,e.y=Math.min(Math.max(e.y,-o),i+o)-r,this._screenPositionX=`${Math.floor(e.x+.25)}px`,this._screenPositionY=`${Math.floor(e.y+.25)}px`}}};L3.prototype.animateAppear=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:2,stopValue:1,duration:.8,easingFunction:ws.EXPONENTIAL_OUT})};L3.prototype.animateDepart=function(){this._tweens.addProperty({object:this,property:"_scale",startValue:this._scale,stopValue:1.5,duration:.8,easingFunction:ws.EXPONENTIAL_OUT})};Object.defineProperties(L3.prototype,{container:{get:function(){return this._container}},selectionIndicatorElement:{get:function(){return this._selectionIndicatorElement}},scene:{get:function(){return this._scene}}});var V3=L3;function qH(e,t){e=li(e),this._container=e;let n=document.createElement("div");n.className="cesium-selection-wrapper",n.setAttribute("data-bind",'style: { "top" : _screenPositionY, "left" : _screenPositionX },css: { "cesium-selection-wrapper-visible" : isVisible }'),e.appendChild(n),this._element=n;let i="http://www.w3.org/2000/svg",o="M -34 -34 L -34 -11.25 L -30 -15.25 L -30 -30 L -15.25 -30 L -11.25 -34 L -34 -34 z M 11.25 -34 L 15.25 -30 L 30 -30 L 30 -15.25 L 34 -11.25 L 34 -34 L 11.25 -34 z M -34 11.25 L -34 34 L -11.25 34 L -15.25 30 L -30 30 L -30 15.25 L -34 11.25 z M 34 11.25 L 30 15.25 L 30 30 L 15.25 30 L 11.25 34 L 34 34 L 34 11.25 z",r=document.createElementNS(i,"svg:svg");r.setAttribute("width",160),r.setAttribute("height",160),r.setAttribute("viewBox","0 0 160 160");let s=document.createElementNS(i,"g");s.setAttribute("transform","translate(80,80)"),r.appendChild(s);let a=document.createElementNS(i,"path");a.setAttribute("data-bind","attr: { transform: _transform }"),a.setAttribute("d",o),s.appendChild(a),n.appendChild(r);let c=new V3(t,this._element,this._container);this._viewModel=c,Re.applyBindings(this._viewModel,this._element)}Object.defineProperties(qH.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});qH.prototype.isDestroyed=function(){return!1};qH.prototype.destroy=function(){let e=this._container;return Re.cleanNode(this._element),e.removeChild(this._element),fe(this)};var Z3=qH;var wor=S(C(),1);var Lor=S(C(),1);function mL(e,t,n){this._color=e,this._height=t,this._base=g(n,0)}mL.prototype.getHeight=function(){return this._height};mL.prototype.getBase=function(){return this._base};mL.prototype.getStartTime=function(){return this._start};mL.prototype.getStopTime=function(){return this._stop};mL.prototype.setRange=function(e,t){this._start=e,this._stop=t};mL.prototype.render=function(e){let t="";if(this._start&&this._stop&&this._color){let n=ee.secondsDifference(this._start,e.epochJulian),i=Math.round(e.timeBarWidth*e.getAlpha(n)),o=ee.secondsDifference(this._stop,e.epochJulian),r=Math.round(e.timeBarWidth*e.getAlpha(o))-i;i<0&&(r+=i,i=0),i+r>e.timeBarWidth&&(r=e.timeBarWidth-i),r>0&&(t=`<span class="cesium-timeline-highlight" style="left: ${i.toString()}px; width: ${r.toString()}px; bottom: ${this._base.toString()}px; height: ${this._height}px; background-color: ${this._color};"></span>`)}return t};var R3=mL;var Ror=S(C(),1);function aXe(e,t,n,i){this.interval=e,this.height=t,this.color=n||new z(.5,.5,.5,1),this.backgroundColor=i||new z(0,0,0,0)}aXe.prototype.render=function(e,t){let n=this.interval.start,i=this.interval.stop,o=t.startJulian,r=ee.addSeconds(t.startJulian,t.duration,new ee);if(ee.lessThan(n,o)&&ee.greaterThan(i,r))e.fillStyle=this.color.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height);else if(ee.lessThanOrEquals(n,r)&&ee.greaterThanOrEquals(i,o)){let s,a,c;for(s=0;s<t.timeBarWidth;++s){let l=ee.addSeconds(t.startJulian,s/t.timeBarWidth*t.duration,new ee);!d(a)&&ee.greaterThanOrEquals(l,n)?a=s:!d(c)&&ee.greaterThanOrEquals(l,i)&&(c=s)}e.fillStyle=this.backgroundColor.toCssColorString(),e.fillRect(0,t.y,t.timeBarWidth,this.height),d(a)&&(d(c)||(c=t.timeBarWidth),e.fillStyle=this.color.toCssColorString(),e.fillRect(a,t.y,Math.max(c-a,1),this.height))}};var G3=aXe;var Toe=1e12,Dh={none:0,scrub:1,slide:2,zoom:3,touchOnly:4},Ed={none:0,scrub:1,slideZoom:2,singleTap:3,ignore:4},l_=[.001,.002,.005,.01,.02,.05,.1,.25,.5,1,2,5,10,15,30,60,120,300,600,900,1800,3600,7200,14400,21600,43200,86400,172800,345600,604800,1296e3,2592e3,5184e3,7776e3,15552e3,31536e3,63072e3,126144e3,15768e4,31536e4,63072e4,126144e4,15768e5,31536e5,63072e5,126144e5,15768e6,31536e6],B9t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Id(e,t){e=li(e);let n=e.ownerDocument;this.container=e;let i=n.createElement("div");i.className="cesium-timeline-main",e.appendChild(i),this._topDiv=i,this._endJulian=void 0,this._epochJulian=void 0,this._lastXPos=void 0,this._scrubElement=void 0,this._startJulian=void 0,this._timeBarSecondsSpan=void 0,this._clock=t,this._scrubJulian=t.currentTime,this._mainTicSpan=-1,this._mouseMode=Dh.none,this._touchMode=Ed.none,this._touchState={centerX:0,spanX:0},this._mouseX=0,this._timelineDrag=0,this._timelineDragLocation=void 0,this._lastHeight=void 0,this._lastWidth=void 0,this._topDiv.innerHTML='<div class="cesium-timeline-bar"></div><div class="cesium-timeline-trackContainer"><canvas class="cesium-timeline-tracks" width="10" height="1"></canvas></div><div class="cesium-timeline-needle"></div><span class="cesium-timeline-ruler"></span>',this._timeBarEle=this._topDiv.childNodes[0],this._trackContainer=this._topDiv.childNodes[1],this._trackListEle=this._topDiv.childNodes[1].childNodes[0],this._needleEle=this._topDiv.childNodes[2],this._rulerEle=this._topDiv.childNodes[3],this._context=this._trackListEle.getContext("2d"),this._trackList=[],this._highlightRanges=[],this.zoomTo(t.startTime,t.stopTime),this._onMouseDown=O9t(this),this._onMouseUp=K9t(this),this._onMouseMove=H9t(this),this._onMouseWheel=J9t(this),this._onTouchStart=Q9t(this),this._onTouchMove=q9t(this),this._onTouchEnd=j9t(this);let o=this._timeBarEle;n.addEventListener("mouseup",this._onMouseUp,!1),n.addEventListener("mousemove",this._onMouseMove,!1),o.addEventListener("mousedown",this._onMouseDown,!1),o.addEventListener("DOMMouseScroll",this._onMouseWheel,!1),o.addEventListener("mousewheel",this._onMouseWheel,!1),o.addEventListener("touchstart",this._onTouchStart,!1),o.addEventListener("touchmove",this._onTouchMove,!1),o.addEventListener("touchend",this._onTouchEnd,!1),o.addEventListener("touchcancel",this._onTouchEnd,!1),this._topDiv.oncontextmenu=function(){return!1},t.onTick.addEventListener(this.updateFromClock,this),this.updateFromClock()}Id.prototype.addEventListener=function(e,t,n){this._topDiv.addEventListener(e,t,n)};Id.prototype.removeEventListener=function(e,t,n){this._topDiv.removeEventListener(e,t,n)};Id.prototype.isDestroyed=function(){return!1};Id.prototype.destroy=function(){this._clock.onTick.removeEventListener(this.updateFromClock,this);let e=this.container.ownerDocument;e.removeEventListener("mouseup",this._onMouseUp,!1),e.removeEventListener("mousemove",this._onMouseMove,!1);let t=this._timeBarEle;t.removeEventListener("mousedown",this._onMouseDown,!1),t.removeEventListener("DOMMouseScroll",this._onMouseWheel,!1),t.removeEventListener("mousewheel",this._onMouseWheel,!1),t.removeEventListener("touchstart",this._onTouchStart,!1),t.removeEventListener("touchmove",this._onTouchMove,!1),t.removeEventListener("touchend",this._onTouchEnd,!1),t.removeEventListener("touchcancel",this._onTouchEnd,!1),this.container.removeChild(this._topDiv),fe(this)};Id.prototype.addHighlightRange=function(e,t,n){let i=new R3(e,t,n);return this._highlightRanges.push(i),this.resize(),i};Id.prototype.addTrack=function(e,t,n,i){let o=new G3(e,t,n,i);return this._trackList.push(o),this._lastHeight=void 0,this.resize(),o};Id.prototype.zoomTo=function(e,t){if(this._startJulian=e,this._endJulian=t,this._timeBarSecondsSpan=ee.secondsDifference(t,e),this._clock&&this._clock.clockRange!==Xs.UNBOUNDED){let i=this._clock.startTime,o=this._clock.stopTime,r=ee.secondsDifference(o,i),s=ee.secondsDifference(i,this._startJulian),a=ee.secondsDifference(o,this._endJulian);this._timeBarSecondsSpan>=r?(this._timeBarSecondsSpan=r,this._startJulian=this._clock.startTime,this._endJulian=this._clock.stopTime):s>0?(this._endJulian=ee.addSeconds(this._endJulian,s,new ee),this._startJulian=i,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian)):a<0&&(this._startJulian=ee.addSeconds(this._startJulian,a,new ee),this._endJulian=o,this._timeBarSecondsSpan=ee.secondsDifference(this._endJulian,this._startJulian))}this._makeTics();let n=document.createEvent("Event");n.initEvent("setzoom",!0,!0),n.startJulian=this._startJulian,n.endJulian=this._endJulian,n.epochJulian=this._epochJulian,n.totalSpan=this._timeBarSecondsSpan,n.mainTicSpan=this._mainTicSpan,this._topDiv.dispatchEvent(n)};Id.prototype.zoomFrom=function(e){let t=ee.secondsDifference(this._scrubJulian,this._startJulian);e>1||t<0||t>this._timeBarSecondsSpan?t=this._timeBarSecondsSpan*.5:t+=t-this._timeBarSecondsSpan*.5;let n=this._timeBarSecondsSpan-t;this.zoomTo(ee.addSeconds(this._startJulian,t-t*e,new ee),ee.addSeconds(this._endJulian,n*e-n,new ee))};function _oe(e){return e<10?`0${e.toString()}`:e.toString()}Id.prototype.makeLabel=function(e){let t=ee.toGregorianDate(e),n=t.millisecond,i=" UTC";if(n>0&&this._timeBarSecondsSpan<3600){for(i=Math.floor(n).toString();i.length<3;)i=`0${i}`;i=`.${i}`}return`${B9t[t.month-1]} ${t.day} ${t.year} ${_oe(t.hour)}:${_oe(t.minute)}:${_oe(t.second)}${i}`};Id.prototype.smallestTicInPixels=7;Id.prototype._makeTics=function(){let e=this._timeBarEle,t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan),i=n-8,o,r=this;this._needleEle.style.left=`${n.toString()}px`;let s="",a=.01,c=31536e6,l=1e-10,u=0,m=this._timeBarSecondsSpan;m<a?(m=a,this._timeBarSecondsSpan=a,this._endJulian=ee.addSeconds(this._startJulian,a,new ee)):m>c&&(m=c,this._timeBarSecondsSpan=c,this._endJulian=ee.addSeconds(this._startJulian,c,new ee));let f=this._timeBarEle.clientWidth;f<10&&(f=10);let b=this._startJulian,p=Math.min(m/f*1e-5,.4),x,T=ee.toGregorianDate(b);m>31536e4?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/100)*100,0))):m>31536e3?x=ee.fromDate(new Date(Date.UTC(Math.floor(T.year/10)*10,0))):m>86400?x=ee.fromDate(new Date(Date.UTC(T.year,0))):x=ee.fromDate(new Date(Date.UTC(T.year,T.month,T.day)));let _=ee.secondsDifference(this._startJulian,ee.addSeconds(x,p,new ee)),L=_+m;this._epochJulian=x;function V(D){return Math.floor(_/D)*D}function Z(D,O){return Math.ceil(D/O+.5)*O}function G(D){return(D-_)/m}function I(D,O){return D-O*Math.round(D/O)}this._rulerEle.innerHTML=this.makeLabel(ee.addSeconds(this._endJulian,-a,new ee));let w=this._rulerEle.offsetWidth+20;w<30&&(w=180);let W=u;u-=l;let v={startTime:_,startJulian:b,epochJulian:x,duration:m,timeBarWidth:f,getAlpha:G};this._highlightRanges.forEach(function(D){s+=D.render(v)});let N=0,y=0,R=0,E=w/f;E>1&&(E=1),E*=this._timeBarSecondsSpan;let X=-1,F=-1,A=l_.length,Y;for(Y=0;Y<A;++Y){let D=l_[Y];if(++X,N=D,D>E&&D>u)break;F<0&&f*(D/this._timeBarSecondsSpan)>=this.smallestTicInPixels&&(F=X)}if(X>0){for(;X>0;)if(--X,Math.abs(I(N,l_[X]))<1e-5){l_[X]>=u&&(y=l_[X]);break}if(F>=0)for(;F<X;){if(Math.abs(I(y,l_[F]))<1e-5&&l_[F]>=u){R=l_[F];break}++F}}u=W,u>l&&R<1e-5&&Math.abs(u-N)>l&&(R=u,u<=N+l&&(y=0));let U=-999999,k;if(f*(R/this._timeBarSecondsSpan)>=3)for(o=V(R);o<=L;o=Z(o,R))s+=`<span class="cesium-timeline-ticTiny" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(y/this._timeBarSecondsSpan)>=3)for(o=V(y);o<=L;o=Z(o,y))s+=`<span class="cesium-timeline-ticSub" style="left: ${Math.round(f*G(o)).toString()}px;"></span>`;if(f*(N/this._timeBarSecondsSpan)>=2){this._mainTicSpan=N,L+=N,o=V(N);let D=ee.computeTaiMinusUtc(x);for(;o<=L;){let O=ee.addSeconds(b,o-_,new ee);if(N>2.1){let ne=ee.computeTaiMinusUtc(O);Math.abs(ne-D)>.1&&(o+=ne-D,O=ee.addSeconds(b,o-_,new ee))}let K=Math.round(f*G(o)),j=this.makeLabel(O);this._rulerEle.innerHTML=j,k=this._rulerEle.offsetWidth,k<10&&(k=w);let J=K-(k/2-1);J>U?(U=J+k+5,s+=`<span class="cesium-timeline-ticMain" style="left: ${K.toString()}px;"></span><span class="cesium-timeline-ticLabel" style="left: ${J.toString()}px;">${j}</span>`):s+=`<span class="cesium-timeline-ticSub" style="left: ${K.toString()}px;"></span>`,o=Z(o,N)}}else this._mainTicSpan=-1;s+=`<span class="cesium-timeline-icon16" style="left:${i}px;bottom:0;background-position: 0 0;"></span>`,e.innerHTML=s,this._scrubElement=e.lastChild,this._context.clearRect(0,0,this._trackListEle.width,this._trackListEle.height),v.y=0,this._trackList.forEach(function(D){D.render(r._context,v),v.y+=D.height})};Id.prototype.updateFromClock=function(){this._scrubJulian=this._clock.currentTime;let e=this._scrubElement;if(d(this._scrubElement)){let t=ee.secondsDifference(this._scrubJulian,this._startJulian),n=Math.round(t*this._topDiv.clientWidth/this._timeBarSecondsSpan);this._lastXPos!==n&&(this._lastXPos=n,e.style.left=`${n-8}px`,this._needleEle.style.left=`${n}px`)}d(this._timelineDragLocation)&&(this._setTimeBarTime(this._timelineDragLocation,this._timelineDragLocation*this._timeBarSecondsSpan/this._topDiv.clientWidth),this.zoomTo(ee.addSeconds(this._startJulian,this._timelineDrag,new ee),ee.addSeconds(this._endJulian,this._timelineDrag,new ee)))};Id.prototype._setTimeBarTime=function(e,t){if(e=Math.round(e),this._scrubJulian=ee.addSeconds(this._startJulian,t,new ee),this._scrubElement){let i=e-8;this._scrubElement.style.left=`${i.toString()}px`,this._needleEle.style.left=`${e.toString()}px`}let n=document.createEvent("Event");n.initEvent("settime",!0,!0),n.clientX=e,n.timeSeconds=t,n.timeJulian=this._scrubJulian,n.clock=this._clock,this._topDiv.dispatchEvent(n)};function O9t(e){return function(t){e._mouseMode!==Dh.touchOnly&&(t.button===0?(e._mouseMode=Dh.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition="-16px 0"),e._onMouseMove(t)):(e._mouseX=t.clientX,t.button===2?e._mouseMode=Dh.zoom:e._mouseMode=Dh.slide)),t.preventDefault()}}function K9t(e){return function(t){e._mouseMode=Dh.none,e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0"),e._timelineDrag=0,e._timelineDragLocation=void 0}}function H9t(e){return function(t){let n;if(e._mouseMode===Dh.scrub){t.preventDefault();let i=t.clientX-e._topDiv.getBoundingClientRect().left;i<0?(e._timelineDragLocation=0,e._timelineDrag=-.01*e._timeBarSecondsSpan):i>e._topDiv.clientWidth?(e._timelineDragLocation=e._topDiv.clientWidth,e._timelineDrag=.01*e._timeBarSecondsSpan):(e._timelineDragLocation=void 0,e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))}else if(e._mouseMode===Dh.slide){if(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0){let i=n*e._timeBarSecondsSpan/e._topDiv.clientWidth;e.zoomTo(ee.addSeconds(e._startJulian,i,new ee),ee.addSeconds(e._endJulian,i,new ee))}}else e._mouseMode===Dh.zoom&&(n=e._mouseX-t.clientX,e._mouseX=t.clientX,n!==0&&e.zoomFrom(Math.pow(1.01,n)))}}function J9t(e){return function(t){let n=t.wheelDeltaY||t.wheelDelta||-t.detail;Toe=Math.max(Math.min(Math.abs(n),Toe),1),n/=Toe,e.zoomFrom(Math.pow(1.05,-n))}}function Q9t(e){return function(t){let n=t.touches.length,i,o,r=e._topDiv.getBoundingClientRect().left;t.preventDefault(),e._mouseMode=Dh.touchOnly,n===1?(i=ee.secondsDifference(e._scrubJulian,e._startJulian),o=Math.round(i*e._topDiv.clientWidth/e._timeBarSecondsSpan+r),Math.abs(t.touches[0].clientX-o)<50?(e._touchMode=Ed.scrub,e._scrubElement&&(e._scrubElement.style.backgroundPosition=n===1?"-16px 0":"0 0")):(e._touchMode=Ed.singleTap,e._touchState.centerX=t.touches[0].clientX-r)):n===2?(e._touchMode=Ed.slideZoom,e._touchState.centerX=(t.touches[0].clientX+t.touches[1].clientX)*.5-r,e._touchState.spanX=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):e._touchMode=Ed.ignore}}function j9t(e){return function(t){let n=t.touches.length,i=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap?(e._touchMode=Ed.scrub,e._onTouchMove(t)):e._touchMode===Ed.scrub&&e._onTouchMove(t),e._mouseMode=Dh.touchOnly,n!==1?e._touchMode=n>0?Ed.ignore:Ed.none:e._touchMode===Ed.slideZoom&&(e._touchState.centerX=t.touches[0].clientX-i),e._scrubElement&&(e._scrubElement.style.backgroundPosition="0 0")}}function q9t(e){return function(t){let n,i,o,r,s,a,c=1,l=e._topDiv.getBoundingClientRect().left;e._touchMode===Ed.singleTap&&(e._touchMode=Ed.slideZoom),e._mouseMode=Dh.touchOnly,e._touchMode===Ed.scrub?(t.preventDefault(),t.changedTouches.length===1&&(i=t.changedTouches[0].clientX-l,i>=0&&i<=e._topDiv.clientWidth&&e._setTimeBarTime(i,i*e._timeBarSecondsSpan/e._topDiv.clientWidth))):e._touchMode===Ed.slideZoom&&(o=t.touches.length,o===2?(r=(t.touches[0].clientX+t.touches[1].clientX)*.5-l,s=Math.abs(t.touches[0].clientX-t.touches[1].clientX)):o===1&&(r=t.touches[0].clientX-l,s=0),d(r)&&(s>0&&e._touchState.spanX>0?(c=e._touchState.spanX/s,a=ee.addSeconds(e._startJulian,(e._touchState.centerX*e._timeBarSecondsSpan-r*e._timeBarSecondsSpan*c)/e._topDiv.clientWidth,new ee)):(n=e._touchState.centerX-r,a=ee.addSeconds(e._startJulian,n*e._timeBarSecondsSpan/e._topDiv.clientWidth,new ee)),e.zoomTo(a,ee.addSeconds(a,e._timeBarSecondsSpan*c,new ee)),e._touchState.centerX=r,e._touchState.spanX=s))}}Id.prototype.resize=function(){let e=this.container.clientWidth,t=this.container.clientHeight;if(e===this._lastWidth&&t===this._lastHeight)return;this._trackContainer.style.height=`${t}px`;let n=1;this._trackList.forEach(function(i){n+=i.height}),this._trackListEle.style.height=`${n.toString()}px`,this._trackListEle.width=this._trackListEle.clientWidth,this._trackListEle.height=n,this._makeTics(),this._lastXPos=void 0,this._lastWidth=e,this._lastHeight=t};var E3=Id;var grr=S(C(),1);var Qor=S(C(),1);var zor=S(C(),1);var mXe=S(uXe(),1);function t5t(e){let t=!1,n=window.screen;return d(n)&&(d(n.lockOrientation)?t=n.lockOrientation(e):d(n.mozLockOrientation)?t=n.mozLockOrientation(e):d(n.msLockOrientation)?t=n.msLockOrientation(e):d(n.orientation&&n.orientation.lock)&&(t=n.orientation.lock(e))),t}function hXe(){let e=window.screen;d(e)&&(d(e.unlockOrientation)?e.unlockOrientation():d(e.mozUnlockOrientation)?e.mozUnlockOrientation():d(e.msUnlockOrientation)?e.msUnlockOrientation():d(e.orientation&&e.orientation.unlock)&&e.orientation.unlock())}function n5t(e,t,n,i){i()||(n()?(t.useWebVR=!1,e._locked&&(hXe(),e._locked=!1),e._noSleep.disable(),fs.exitFullscreen(),n(!1)):(fs.fullscreen||fs.requestFullscreen(e._vrElement),e._noSleep.enable(),e._locked||(e._locked=t5t("landscape")),t.useWebVR=!0,n(!0)))}function $H(e,t){let n=this,i=Re.observable(fs.enabled),o=Re.observable(!1);this.isVRMode=void 0,Re.defineProperty(this,"isVRMode",{get:function(){return o()}}),this.isVREnabled=void 0,Re.defineProperty(this,"isVREnabled",{get:function(){return i()},set:function(s){i(s&&fs.enabled)}}),this.tooltip=void 0,Re.defineProperty(this,"tooltip",function(){return i()?o()?"Exit VR mode":"Enter VR mode":"VR mode is unavailable"});let r=Re.observable(!1);this._isOrthographic=void 0,Re.defineProperty(this,"_isOrthographic",{get:function(){return r()}}),this._eventHelper=new Ws,this._eventHelper.add(e.preRender,function(){r(e.camera.frustum instanceof En)}),this._locked=!1,this._noSleep=new mXe.default,this._command=ti(function(){n5t(n,e,o,r)},Re.getObservable(this,"isVREnabled")),this._vrElement=g(li(t),document.body),this._callback=function(){!fs.fullscreen&&o()&&(e.useWebVR=!1,n._locked&&(hXe(),n._locked=!1),n._noSleep.disable(),o(!1))},document.addEventListener(fs.changeEventName,this._callback)}Object.defineProperties($H.prototype,{vrElement:{get:function(){return this._vrElement},set:function(e){this._vrElement=e}},command:{get:function(){return this._command}}});$H.prototype.isDestroyed=function(){return!1};$H.prototype.destroy=function(){this._eventHelper.removeAll(),document.removeEventListener(fs.changeEventName,this._callback),fe(this)};var I3=$H;var i5t="M 5.3125 6.375 C 4.008126 6.375 2.96875 7.4141499 2.96875 8.71875 L 2.96875 19.5 C 2.96875 20.8043 4.008126 21.875 5.3125 21.875 L 13.65625 21.875 C 13.71832 20.0547 14.845166 18.59375 16.21875 18.59375 C 17.592088 18.59375 18.71881 20.0552 18.78125 21.875 L 27.09375 21.875 C 28.398125 21.875 29.4375 20.8043 29.4375 19.5 L 29.4375 8.71875 C 29.4375 7.4141499 28.398125 6.375 27.09375 6.375 L 5.3125 6.375 z M 9.625 10.4375 C 11.55989 10.4375 13.125 12.03385 13.125 13.96875 C 13.125 15.90365 11.55989 17.46875 9.625 17.46875 C 7.69011 17.46875 6.125 15.90365 6.125 13.96875 C 6.125 12.03385 7.69011 10.4375 9.625 10.4375 z M 22.46875 10.4375 C 24.40364 10.4375 25.96875 12.03385 25.96875 13.96875 C 25.96875 15.90365 24.40364 17.46875 22.46875 17.46875 C 20.53386 17.46875 18.96875 15.90365 18.96875 13.96875 C 18.96875 12.03385 20.53386 10.4375 22.46875 10.4375 z",o5t="M 25.770585,2.4552065 C 15.72282,13.962707 10.699956,19.704407 8.1768352,22.580207 c -1.261561,1.4379 -1.902282,2.1427 -2.21875,2.5 -0.141624,0.1599 -0.208984,0.2355 -0.25,0.2813 l 0.6875,0.75 c 10e-5,-10e-5 0.679191,0.727 0.6875,0.7187 0.01662,-0.016 0.02451,-0.024 0.03125,-0.031 0.01348,-0.014 0.04013,-0.038 0.0625,-0.062 0.04474,-0.05 0.120921,-0.1315 0.28125,-0.3126 0.320657,-0.3619 0.956139,-1.0921 2.2187499,-2.5312 2.5252219,-2.8781 7.5454589,-8.6169 17.5937499,-20.1250005 l -1.5,-1.3125 z m -20.5624998,3.9063 c -1.304375,0 -2.34375,1.0391 -2.34375,2.3437 l 0,10.8125005 c 0,1.3043 1.039375,2.375 2.34375,2.375 l 2.25,0 c 1.9518039,-2.2246 7.4710958,-8.5584 13.5624998,-15.5312005 l -15.8124998,0 z m 21.1249998,0 c -1.855467,2.1245 -2.114296,2.4005 -3.59375,4.0936995 1.767282,0.1815 3.15625,1.685301 3.15625,3.500001 0,1.9349 -1.56511,3.5 -3.5,3.5 -1.658043,0 -3.043426,-1.1411 -3.40625,-2.6875 -1.089617,1.2461 -2.647139,2.9988 -3.46875,3.9375 0.191501,-0.062 0.388502,-0.094 0.59375,-0.094 1.373338,0 2.50006,1.4614 2.5625,3.2812 l 8.3125,0 c 1.304375,0 2.34375,-1.0707 2.34375,-2.375 l 0,-10.8125005 c 0,-1.3046 -1.039375,-2.3437 -2.34375,-2.3437 l -0.65625,0 z M 9.5518351,10.423906 c 1.9348899,0 3.4999999,1.596401 3.4999999,3.531301 0,1.9349 -1.56511,3.5 -3.4999999,3.5 -1.9348899,0 -3.4999999,-1.5651 -3.4999999,-3.5 0,-1.9349 1.56511,-3.531301 3.4999999,-3.531301 z m 4.2187499,10.312601 c -0.206517,0.2356 -0.844218,0.9428 -1.03125,1.1562 l 0.8125,0 c 0.01392,-0.4081 0.107026,-0.7968 0.21875,-1.1562 z";function e4(e,t,n){e=li(e);let i=new I3(t,n);i._exitVRPath=o5t,i._enterVRPath=i5t;let o=document.createElement("button");o.type="button",o.className="cesium-button cesium-vrButton",o.setAttribute("data-bind",'css: { "cesium-button-disabled" : _isOrthographic }, attr: { title: tooltip },click: command,enable: isVREnabled,cesiumSvgPath: { path: isVRMode ? _exitVRPath : _enterVRPath, width: 32, height: 32 }'),e.appendChild(o),Re.applyBindings(i,o),this._container=e,this._viewModel=i,this._element=o}Object.defineProperties(e4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});e4.prototype.isDestroyed=function(){return!1};e4.prototype.destroy=function(){return this._viewModel.destroy(),Re.cleanNode(this._element),this._container.removeChild(this._element),fe(this)};var X3=e4;var d_=new de;function bXe(e){let t=e.clock;t.currentTime=e.timeJulian,t.shouldAnimate=!1}function r5t(e){let t=e.getPropertyIds(),n="";return Array.isArray(t)&&(t.forEach(function(i){let o=e.getProperty(i);d(o)&&(n+=`<tr><th>${i}</th><td>${o}</td></tr>`)}),n.length>0&&(n=`<table class="cesium-infoBox-defaultTable"><tbody>${n}</tbody></table>`)),n}function s5t(e){let t,n=[],i=e.getPropertyIds();for(t=0;t<i.length;t++){let r=i[t];/^name$/i.test(r)?n[0]=e.getProperty(r):/name/i.test(r)?n[1]=e.getProperty(r):/^title$/i.test(r)?n[2]=e.getProperty(r):/^(id|identifier)$/i.test(r)?n[3]=e.getProperty(r):/element/i.test(r)?n[4]=e.getProperty(r):/(id|identifier)$/i.test(r)&&(n[5]=e.getProperty(r))}let o=n.length;for(t=0;t<o;t++){let r=n[t];if(d(r)&&r!=="")return r}return"Unnamed Feature"}function pXe(e,t){let n=e.scene.pick(t.position);if(d(n)){let i=g(n.id,n.primitive.id);if(i instanceof jr)return i;if(n instanceof Ba)return new jr({name:s5t(n),description:r5t(n),feature:n})}if(d(e.scene.globe))return l5t(e,t.position)}var a5t=new ee;function yXe(e,t,n){if(d(n)){let i=n.clock;if(d(i)&&(i.getValue(t),d(e))){let o=i.startTime,r=i.stopTime;ee.equals(o,r)&&(r=ee.addSeconds(o,M.EPSILON2,a5t)),e.updateFromClock(),e.zoomTo(o,r)}}}var c5t=new h;function l5t(e,t){let n=e.scene,i=n.camera.getPickRay(t),o=n.imageryLayers.pickImageryLayerFeatures(i,n);if(!d(o))return;let r=new jr({id:"Loading...",description:"Loading feature information..."});return o.then(function(s){if(e.selectedEntity!==r)return;if(!d(s)||s.length===0){e.selectedEntity=fXe();return}let a=s[0],c=new jr({id:a.name,description:a.description});if(d(a.position)){let l=e.scene.ellipsoid.cartographicToCartesian(a.position,c5t);c.position=new rd(l)}e.selectedEntity=c},function(){e.selectedEntity===r&&(e.selectedEntity=fXe())}),r}function fXe(){return new jr({id:"None",description:"No features found."})}function d5t(e,t){let n=e._geocoder,i=e._homeButton,o=e._sceneModePicker,r=e._projectionPicker,s=e._baseLayerPicker,a=e._animation,c=e._timeline,l=e._fullscreenButton,u=e._infoBox,m=e._selectionIndicator,f=t?"hidden":"visible";if(d(n)&&(n.container.style.visibility=f),d(i)&&(i.container.style.visibility=f),d(o)&&(o.container.style.visibility=f),d(r)&&(r.container.style.visibility=f),d(s)&&(s.container.style.visibility=f),d(a)&&(a.container.style.visibility=f),d(c)&&(c.container.style.visibility=f),d(l)&&l.viewModel.isFullscreenEnabled&&(l.container.style.visibility=f),d(u)&&(u.container.style.visibility=f),d(m)&&(m.container.style.visibility=f),e._container){let b=t||!d(l)?0:l.container.clientWidth;e._vrButton.container.style.right=`${b}px`,e.forceResize()}}function To(e,t){e=li(e),t=g(t,{}),t.selectionIndicator=g(t.selectionIndicator,!1),t.infoBox=g(t.selectionIndicator,!1),t.geocoder=g(t.geocoder,!1),t.homeButton=g(t.homeButton,!1),t.sceneModePicker=g(t.sceneModePicker,!1),t.baseLayerPicker=g(t.baseLayerPicker,!1),t.navigationHelpButton=g(t.navigationHelpButton,!1),t.timeline=g(t.timeline,!1),t.animation=g(t.animation,!1),t.fullscreenButton=g(t.fullscreenButton,!1);let n=(!d(t.globe)||t.globe!==!1)&&(!d(t.baseLayerPicker)||t.baseLayerPicker!==!1),i=this,o=document.createElement("div");o.className="cesium-viewer",e.appendChild(o);let r=document.createElement("div");r.className="cesium-viewer-cesiumWidgetContainer",o.appendChild(r);let s=document.createElement("div");s.className="cesium-viewer-bottom",o.appendChild(s);let a=1;d(t.logoScale)&&(a=parseFloat(t.logoScale)),s.style.display="block",s.style.width="98px",s.style.height="28px",s.style["margin-left"]="5px",s.style["margin-bottom"]="5px",s.style["transform-origin"]="0 100%",s.style.transform=`scale(${a})`;let c=g(t.scene3DOnly,!1),l,u,m=!1;d(t.clockViewModel)?(u=t.clockViewModel,l=u.clock):(l=new op,u=new YD(l),m=!0),d(t.shouldAnimate)&&(l.shouldAnimate=t.shouldAnimate);let f=new ED(r,{baseLayer:n&&d(t.selectedImageryProviderViewModel)||d(t.baseLayer)||d(t.imageryProvider)?!1:void 0,clock:l,skyBox:t.skyBox,skyAtmosphere:t.skyAtmosphere,sceneMode:t.sceneMode,ellipsoid:t.ellipsoid,mapProjection:t.mapProjection,globe:t.globe,orderIndependentTranslucency:t.orderIndependentTranslucency,contextOptions:t.contextOptions,useDefaultRenderLoop:t.useDefaultRenderLoop,targetFrameRate:t.targetFrameRate,showRenderLoopErrors:t.showRenderLoopErrors,useBrowserRecommendedResolution:t.useBrowserRecommendedResolution,creditContainer:d(t.creditContainer)?t.creditContainer:s,creditViewport:t.creditViewport,scene3DOnly:c,logoScale:a,shadows:t.shadows,terrainShadows:t.terrainShadows,mapMode2D:t.mapMode2D,blurActiveElementOnCanvasFocus:t.blurActiveElementOnCanvasFocus,requestRenderMode:t.requestRenderMode,maximumRenderTimeChange:t.maximumRenderTimeChange,depthPlaneEllipsoidOffset:t.depthPlaneEllipsoidOffset,msaaSamples:t.msaaSamples}),b=t.dataSources,p=!1;d(b)||(b=new h9,p=!0);let x=f.scene,T=new W9({scene:x,dataSourceCollection:b}),_=new Ws;_.add(l.onTick,To.prototype._onTick,this),_.add(x.morphStart,To.prototype._clearTrackedObject,this);let L;if(!d(t.selectionIndicator)||t.selectionIndicator!==!1){let j=document.createElement("div");j.className="cesium-viewer-selectionIndicatorContainer",o.appendChild(j),L=new Z3(j,x)}let V;if(!d(t.infoBox)||t.infoBox!==!1){let j=document.createElement("div");j.className="cesium-viewer-infoBoxContainer",o.appendChild(j),V=new f3(j);let J=V.viewModel;_.add(J.cameraClicked,To.prototype._onInfoBoxCameraClicked,this),_.add(J.closeClicked,To.prototype._onInfoBoxClockClicked,this)}let Z=document.createElement("div");Z.className="cesium-viewer-toolbar",o.appendChild(Z);let G;if(!d(t.geocoder)||t.geocoder!==!1){let j=document.createElement("div");j.className="cesium-viewer-geocoderContainer",Z.appendChild(j);let J;d(t.geocoder)&&typeof t.geocoder!="boolean"&&(J=Array.isArray(t.geocoder)?t.geocoder:[t.geocoder]),G=new d3({container:j,geocoderServices:J,scene:x}),_.add(G.viewModel.search.beforeExecute,To.prototype._clearObjects,this)}let I;(!d(t.homeButton)||t.homeButton!==!1)&&(I=new m3(Z,x),d(G)&&_.add(I.viewModel.command.afterExecute,function(){let j=G.viewModel;j.searchText="",j.isSearchInProgress&&j.search()}),_.add(I.viewModel.command.beforeExecute,To.prototype._clearTrackedObject,this));let w;!c&&(!d(t.sceneModePicker)||t.sceneModePicker!==!1)&&(w=new C3(Z,x));let W;t.projectionPicker&&(W=new _3(Z,x));let v,N;if(n){let j=g(t.imageryProviderViewModels,qD()),J=g(t.terrainProviderViewModels,$D());v=new jD(Z,{globe:x.globe,imageryProviderViewModels:j,selectedImageryProviderViewModel:t.selectedImageryProviderViewModel,terrainProviderViewModels:J,selectedTerrainProviderViewModel:t.selectedTerrainProviderViewModel}),N=Z.getElementsByClassName("cesium-baseLayerPicker-dropDown")[0]}d(t.baseLayer)&&t.baseLayer!==!1&&(n&&(v.viewModel.selectedImagery=void 0),x.imageryLayers.removeAll(),x.imageryLayers.add(t.baseLayer)),d(t.terrainProvider)&&(n&&(v.viewModel.selectedTerrain=void 0),x.terrainProvider=t.terrainProvider),d(t.terrain)&&(n&&(x.globe.depthTestAgainstTerrain=!0),x.setTerrain(t.terrain));let y;if(!d(t.navigationHelpButton)||t.navigationHelpButton!==!1){let j=!0;try{if(d(window.localStorage)){let J=window.localStorage.getItem("cesium-hasSeenNavHelp");d(J)&&J?j=!1:window.localStorage.setItem("cesium-hasSeenNavHelp","true")}}catch{}y=new y3({container:Z,instructionsInitiallyVisible:g(t.navigationInstructionsInitiallyVisible,j)})}let R;if(!d(t.animation)||t.animation!==!1){let j=document.createElement("div");j.className="cesium-viewer-animationContainer",o.appendChild(j),R=new HD(j,new JD(u))}let E;if(!d(t.timeline)||t.timeline!==!1){let j=document.createElement("div");j.className="cesium-viewer-timelineContainer",o.appendChild(j),E=new E3(j,l),E.addEventListener("settime",bXe,!1),E.zoomTo(l.startTime,l.stopTime)}let X,F,A;(!d(t.fullscreenButton)||t.fullscreenButton!==!1)&&(A=document.createElement("div"),A.className="cesium-viewer-fullscreenContainer",o.appendChild(A),X=new c3(A,t.fullscreenElement),F=Zc(X.viewModel,"isFullscreenEnabled",function(j){A.style.display=j?"block":"none",d(E)&&(E.container.style.right=`${A.clientWidth}px`,E.resize())}));let Y,U,k;if(t.vrButton){let j=document.createElement("div");j.className="cesium-viewer-vrContainer",o.appendChild(j),Y=new X3(j,x,t.fullScreenElement),U=Zc(Y.viewModel,"isVREnabled",function(J){j.style.display=J?"block":"none",d(X)&&(j.style.right=`${A.clientWidth}px`),d(E)&&(E.container.style.right=`${j.clientWidth}px`,E.resize())}),k=Zc(Y.viewModel,"isVRMode",function(J){d5t(i,J)})}this._baseLayerPickerDropDown=N,this._fullscreenSubscription=F,this._vrSubscription=U,this._vrModeSubscription=k,this._dataSourceChangedListeners={},this._automaticallyTrackDataSourceClocks=g(t.automaticallyTrackDataSourceClocks,!0),this._container=e,this._bottomContainer=s,this._element=o,this._cesiumWidget=f,this._selectionIndicator=L,this._infoBox=V,this._dataSourceCollection=b,this._destroyDataSourceCollection=p,this._dataSourceDisplay=T,this._clockViewModel=u,this._destroyClockViewModel=m,this._toolbar=Z,this._homeButton=I,this._sceneModePicker=w,this._projectionPicker=W,this._baseLayerPicker=v,this._navigationHelpButton=y,this._animation=R,this._timeline=E,this._fullscreenButton=X,this._vrButton=Y,this._geocoder=G,this._eventHelper=_,this._lastWidth=0,this._lastHeight=0,this._allowDataSourcesToSuspendAnimation=!0,this._entityView=void 0,this._enableInfoOrSelection=d(V)||d(L),this._clockTrackedDataSource=void 0,this._trackedEntity=void 0,this._needTrackedEntityUpdate=!1,this._selectedEntity=void 0,this._zoomIsFlight=!1,this._zoomTarget=void 0,this._zoomPromise=void 0,this._zoomOptions=void 0,this._selectedEntityChanged=new Se,this._trackedEntityChanged=new Se,Re.track(this,["_trackedEntity","_selectedEntity","_clockTrackedDataSource"]),_.add(b.dataSourceAdded,To.prototype._onDataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._onDataSourceRemoved,this),_.add(x.postUpdate,To.prototype.resize,this),_.add(x.postRender,To.prototype._postRender,this);let D=b.length;for(let j=0;j<D;j++)this._dataSourceAdded(b,b.get(j));this._dataSourceAdded(void 0,T.defaultDataSource),_.add(b.dataSourceAdded,To.prototype._dataSourceAdded,this),_.add(b.dataSourceRemoved,To.prototype._dataSourceRemoved,this);function O(j){let J=pXe(i,j);d(J)?Q.getValueOrUndefined(J.position,i.clock.currentTime)?i.trackedEntity=J:i.zoomTo(J):d(i.trackedEntity)&&(i.trackedEntity=void 0)}function K(j){i.selectedEntity=pXe(i,j)}f.screenSpaceEventHandler.setInputAction(K,jn.LEFT_CLICK),f.screenSpaceEventHandler.setInputAction(O,jn.LEFT_DOUBLE_CLICK)}Object.defineProperties(To.prototype,{container:{get:function(){return this._container}},creditDisplay:{get:function(){return this._cesiumWidget.creditDisplay}},bottomContainer:{get:function(){return this._bottomContainer}},cesiumWidget:{get:function(){return this._cesiumWidget}},selectionIndicator:{get:function(){return this._selectionIndicator}},infoBox:{get:function(){return this._infoBox}},geocoder:{get:function(){return this._geocoder}},homeButton:{get:function(){return this._homeButton}},sceneModePicker:{get:function(){return this._sceneModePicker}},projectionPicker:{get:function(){return this._projectionPicker}},baseLayerPicker:{get:function(){return this._baseLayerPicker}},navigationHelpButton:{get:function(){return this._navigationHelpButton}},animation:{get:function(){return this._animation}},timeline:{get:function(){return this._timeline}},fullscreenButton:{get:function(){return this._fullscreenButton}},vrButton:{get:function(){return this._vrButton}},dataSourceDisplay:{get:function(){return this._dataSourceDisplay}},entities:{get:function(){return this._dataSourceDisplay.defaultDataSource.entities}},dataSources:{get:function(){return this._dataSourceCollection}},canvas:{get:function(){return this._cesiumWidget.canvas}},scene:{get:function(){return this._cesiumWidget.scene}},shadows:{get:function(){return this.scene.shadowMap.enabled},set:function(e){this.scene.shadowMap.enabled=e}},terrainShadows:{get:function(){return this.scene.globe.shadows},set:function(e){this.scene.globe.shadows=e}},shadowMap:{get:function(){return this.scene.shadowMap}},imageryLayers:{get:function(){return this.scene.imageryLayers}},terrainProvider:{get:function(){return this.scene.terrainProvider},set:function(e){this.scene.terrainProvider=e}},camera:{get:function(){return this.scene.camera}},ellipsoid:{get:function(){return this._scene.ellipsoid}},postProcessStages:{get:function(){return this.scene.postProcessStages}},clock:{get:function(){return this._clockViewModel.clock}},clockViewModel:{get:function(){return this._clockViewModel}},screenSpaceEventHandler:{get:function(){return this._cesiumWidget.screenSpaceEventHandler}},targetFrameRate:{get:function(){return this._cesiumWidget.targetFrameRate},set:function(e){this._cesiumWidget.targetFrameRate=e}},useDefaultRenderLoop:{get:function(){return this._cesiumWidget.useDefaultRenderLoop},set:function(e){this._cesiumWidget.useDefaultRenderLoop=e}},resolutionScale:{get:function(){return this._cesiumWidget.resolutionScale},set:function(e){this._cesiumWidget.resolutionScale=e}},useBrowserRecommendedResolution:{get:function(){return this._cesiumWidget.useBrowserRecommendedResolution},set:function(e){this._cesiumWidget.useBrowserRecommendedResolution=e}},allowDataSourcesToSuspendAnimation:{get:function(){return this._allowDataSourcesToSuspendAnimation},set:function(e){this._allowDataSourcesToSuspendAnimation=e}},trackedEntity:{get:function(){return this._trackedEntity},set:function(e){if(this._trackedEntity!==e){this._trackedEntity=e,Voe(this);let t=this.scene,n=t.mode;!d(e)||!d(e.position)?(this._needTrackedEntityUpdate=!1,(n===ae.COLUMBUS_VIEW||n===ae.SCENE2D)&&(t.screenSpaceCameraController.enableTranslate=!0),(n===ae.COLUMBUS_VIEW||n===ae.SCENE3D)&&(t.screenSpaceCameraController.enableTilt=!0),this._entityView=void 0,this.camera.lookAtTransform(P.IDENTITY)):this._needTrackedEntityUpdate=!0,this._trackedEntityChanged.raiseEvent(e),this.scene.requestRender()}}},selectedEntity:{get:function(){return this._selectedEntity},set:function(e){if(this._selectedEntity!==e){this._selectedEntity=e;let t=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(e)?d(t)&&t.animateAppear():d(t)&&t.animateDepart(),this._selectedEntityChanged.raiseEvent(e)}}},selectedEntityChanged:{get:function(){return this._selectedEntityChanged}},trackedEntityChanged:{get:function(){return this._trackedEntityChanged}},clockTrackedDataSource:{get:function(){return this._clockTrackedDataSource},set:function(e){this._clockTrackedDataSource!==e&&(this._clockTrackedDataSource=e,yXe(this._timeline,this.clock,e))}}});To.prototype.getCurrentTilesLevels=function(){this.scene._globe.depthTestAgainstTerrain=!0;let e=this.scene._globe._surface._tilesToRender,t=this.camera.positionWC,n=this.camera.directionWC,i=new Ray(t,n),o=this.scene.pickFromRay(i,[]);if(o===void 0||o.position===void 0)return;let r=o.position,s=h.distance(r,t),a={};a.centerTileLevel=0,a.maxTileLevel=0,a.minTileLevel=Number.POSITIVE_INFINITY;let c=Number.POSITIVE_INFINITY;for(let l=0,u=e.length;l<u;l++){e[l].level>a.maxTileLevel&&(a.maxTileLevel=e[l].level),e[l].level<a.minTileLevel&&(a.minTileLevel=e[l].level);let m=Math.abs(e[l]._distance-s)<c;m<c&&(c=m,a.centerTileLevel=e[l].level)}return a};To.prototype.extend=function(e,t){e(this,t)};To.prototype.resize=function(){let e=this._cesiumWidget,t=this._container,n=t.clientWidth,i=t.clientHeight,o=d(this._animation),r=d(this._timeline);if(e.resize(),n===this._lastWidth&&i===this._lastHeight)return;let s=i-125,a=this._baseLayerPickerDropDown;if(d(a)&&(a.style.maxHeight=`${s}px`),d(this._geocoder)){let p=this._geocoder.searchSuggestionsContainer;p.style.maxHeight=`${s}px`}d(this._infoBox)&&(this._infoBox.viewModel.maxHeight=s);let c=this._timeline,l,u=0,m=5,f=3,b=0;if(o&&window.getComputedStyle(this._animation.container).visibility!=="hidden"){let p=this._lastWidth;l=this._animation.container,n>900?(u=169,p<=900&&(l.style.width="169px",l.style.height="112px",this._animation.resize())):n>=600?(u=136,(p<600||p>900)&&(l.style.width="136px",l.style.height="90px",this._animation.resize())):(u=106,(p>600||p===0)&&(l.style.width="106px",l.style.height="70px",this._animation.resize())),m=u+5}if(r&&window.getComputedStyle(this._timeline.container).visibility!=="hidden"){let p=this._fullscreenButton,x=this._vrButton,T=c.container,_=T.style;f=T.clientHeight+3,_.left=`${u}px`;let L=0;d(p)&&(L+=p.container.clientWidth),d(x)&&(L+=x.container.clientWidth),_.right=`${L}px`,c.resize()}!r&&d(this._fullscreenButton)&&(b=this._fullscreenButton.container.clientWidth),this._bottomContainer.style.left=`${m}px`,this._bottomContainer.style.bottom=`${f}px`,this._bottomContainer.style.right=`${b}px`,this._lastWidth=n,this._lastHeight=i};To.prototype.forceResize=function(){this._lastWidth=0,this.resize()};To.prototype.render=function(){this._cesiumWidget.render()};To.prototype.isDestroyed=function(){return!1};To.prototype.destroy=function(){let e;d(this.screenSpaceEventHandler)&&!this.screenSpaceEventHandler.isDestroyed()&&(this.screenSpaceEventHandler.removeInputAction(jn.LEFT_CLICK),this.screenSpaceEventHandler.removeInputAction(jn.LEFT_DOUBLE_CLICK));let t=this.dataSources,n=t.length;for(e=0;e<n;e++)this._dataSourceRemoved(t,t.get(e));return this._dataSourceRemoved(void 0,this._dataSourceDisplay.defaultDataSource),this._container.removeChild(this._element),this._element.removeChild(this._toolbar),this._eventHelper.removeAll(),d(this._geocoder)&&(this._geocoder=this._geocoder.destroy()),d(this._homeButton)&&(this._homeButton=this._homeButton.destroy()),d(this._sceneModePicker)&&(this._sceneModePicker=this._sceneModePicker.destroy()),d(this._projectionPicker)&&(this._projectionPicker=this._projectionPicker.destroy()),d(this._baseLayerPicker)&&(this._baseLayerPicker=this._baseLayerPicker.destroy()),d(this._animation)&&(this._element.removeChild(this._animation.container),this._animation=this._animation.destroy()),d(this._timeline)&&(this._timeline.removeEventListener("settime",bXe,!1),this._element.removeChild(this._timeline.container),this._timeline=this._timeline.destroy()),d(this._fullscreenButton)&&(this._fullscreenSubscription.dispose(),this._element.removeChild(this._fullscreenButton.container),this._fullscreenButton=this._fullscreenButton.destroy()),d(this._vrButton)&&(this._vrSubscription.dispose(),this._vrModeSubscription.dispose(),this._element.removeChild(this._vrButton.container),this._vrButton=this._vrButton.destroy()),d(this._infoBox)&&(this._element.removeChild(this._infoBox.container),this._infoBox=this._infoBox.destroy()),d(this._selectionIndicator)&&(this._element.removeChild(this._selectionIndicator.container),this._selectionIndicator=this._selectionIndicator.destroy()),this._destroyClockViewModel&&(this._clockViewModel=this._clockViewModel.destroy()),this._dataSourceDisplay=this._dataSourceDisplay.destroy(),this._cesiumWidget=this._cesiumWidget.destroy(),this._destroyDataSourceCollection&&(this._dataSourceCollection=this._dataSourceCollection.destroy()),fe(this)};To.prototype._dataSourceAdded=function(e,t){t.entities.collectionChanged.addEventListener(To.prototype._onEntityCollectionChanged,this)};To.prototype._dataSourceRemoved=function(e,t){let n=t.entities;n.collectionChanged.removeEventListener(To.prototype._onEntityCollectionChanged,this),d(this.trackedEntity)&&n.getById(this.trackedEntity.id)===this.trackedEntity&&(this.trackedEntity=void 0),d(this.selectedEntity)&&n.getById(this.selectedEntity.id)===this.selectedEntity&&(this.selectedEntity=void 0)};To.prototype._onTick=function(e){let t=e.currentTime,n=this._dataSourceDisplay.update(t);this._allowDataSourcesToSuspendAnimation&&(this._clockViewModel.canAnimate=n);let i=this._entityView;if(d(i)){let u=this._trackedEntity;this._dataSourceDisplay.getBoundingSphere(u,!0,d_)===Wt.DONE&&i.update(t,d_)}let o,r=!1,s=this.selectedEntity,a=d(s)&&this._enableInfoOrSelection;a&&s.isShowing&&s.isAvailable(t)&&(this._dataSourceDisplay.getBoundingSphere(s,!0,d_)!==Wt.FAILED?o=d_.center:d(s.position)&&(o=s.position.getValue(t,o)),r=d(o));let c=d(this._selectionIndicator)?this._selectionIndicator.viewModel:void 0;d(c)&&(c.position=h.clone(o,c.position),c.showSelection=a&&r,c.update());let l=d(this._infoBox)?this._infoBox.viewModel:void 0;d(l)&&(l.showInfo=a,l.enableCamera=r,l.isCameraTracking=this.trackedEntity===this.selectedEntity,a?(l.titleText=g(s.name,s.id),l.description=Q.getValueOrDefault(s.description,t,"")):(l.titleText="",l.description=""))};To.prototype._onEntityCollectionChanged=function(e,t,n){let i=n.length;for(let o=0;o<i;o++){let r=n[o];this.trackedEntity===r&&(this.trackedEntity=void 0),this.selectedEntity===r&&(this.selectedEntity=void 0)}};To.prototype._onInfoBoxCameraClicked=function(e){if(e.isCameraTracking&&this.trackedEntity===this.selectedEntity)this.trackedEntity=void 0;else{let n=this.selectedEntity.position;d(n)?this.trackedEntity=this.selectedEntity:this.zoomTo(this.selectedEntity)}};To.prototype._clearTrackedObject=function(){this.trackedEntity=void 0};To.prototype._onInfoBoxClockClicked=function(e){this.selectedEntity=void 0};To.prototype._clearObjects=function(){this.trackedEntity=void 0,this.selectedEntity=void 0};To.prototype._onDataSourceChanged=function(e){this.clockTrackedDataSource===e&&yXe(this.timeline,this.clock,e)};To.prototype._onDataSourceAdded=function(e,t){this._automaticallyTrackDataSourceClocks&&(this.clockTrackedDataSource=t);let n=t.entities.id,i=this._eventHelper.add(t.changedEvent,To.prototype._onDataSourceChanged,this);this._dataSourceChangedListeners[n]=i};To.prototype._onDataSourceRemoved=function(e,t){let n=this.clockTrackedDataSource===t,i=t.entities.id;if(this._dataSourceChangedListeners[i](),this._dataSourceChangedListeners[i]=void 0,n){let o=e.length;this._automaticallyTrackDataSourceClocks&&o>0?this.clockTrackedDataSource=e.get(o-1):this.clockTrackedDataSource=void 0}};To.prototype.zoomTo=function(e,t){return gXe(this,e,{offset:t},!1)};To.prototype.flyTo=function(e,t){return gXe(this,e,t,!0)};function gXe(e,t,n,i){Voe(e);let o=new Promise(r=>{e._completeZoom=function(s){r(s)}});return e._zoomPromise=o,e._zoomIsFlight=i,e._zoomOptions=n,Promise.resolve(t).then(function(r){if(e._zoomPromise===o){if(r instanceof Ys){let s;d(r.imageryProvider)?s=Promise.resolve(r.getImageryRectangle()):s=new Promise(a=>{let c=r.readyEvent.addEventListener(()=>{c(),a(r.getImageryRectangle())})}),s.then(function(a){return CC(a,e.scene)}).then(function(a){e._zoomPromise===o&&(e._zoomTarget=a)});return}if(r instanceof ta||r instanceof FG||r instanceof i_||r instanceof Il){e._zoomTarget=r;return}if(r.isLoading&&d(r.loadingEvent)){let s=r.loadingEvent.addEventListener(function(){s(),e._zoomPromise===o&&(e._zoomTarget=r.entities.values.slice(0))});return}if(Array.isArray(r)){e._zoomTarget=r.slice(0);return}r=g(r.values,r),d(r.entities)&&(r=r.entities.values),Array.isArray(r)?e._zoomTarget=r.slice(0):e._zoomTarget=[r]}}),e.scene.requestRender(),o}function M3(e){e._zoomPromise=void 0,e._zoomTarget=void 0,e._zoomOptions=void 0}function Voe(e){let t=e._zoomPromise;d(t)&&(M3(e),e._completeZoom(!1))}To.prototype._postRender=function(){u5t(this),m5t(this)};function u5t(e){let t=e._zoomTarget;if(!d(t)||e.scene.mode===ae.MORPHING)return;let n=e.scene,i=n.camera,o=g(e._zoomOptions,{}),r;function s(u){d(o.offset)||(o.offset=new dl(0,-.5,u.radius)),r={offset:o.offset,duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyToBoundingSphere(t.boundingSphere,r):(i.viewBoundingSphere(u,o.offset),i.lookAtTransform(P.IDENTITY),e._completeZoom(!0)),M3(e)}if(t instanceof FG){if(d(t.boundingSphere)){s(t.boundingSphere);return}let u=t.frameChanged.addEventListener(function(m){s(m.boundingSphere),u()});return}if(t instanceof ta||t instanceof i_||t instanceof Il){s(t.boundingSphere);return}if(t instanceof me){r={destination:n.ellipsoid.cartographicToCartesian(t),duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)}},e._zoomIsFlight?i.flyTo(r):(i.setView(r),e._completeZoom(!0)),M3(e);return}let a=t,c=[];for(let u=0,m=a.length;u<m;u++){let f=e._dataSourceDisplay.getBoundingSphere(a[u],!1,d_);if(f===Wt.PENDING)return;f!==Wt.FAILED&&c.push(de.clone(d_))}if(c.length===0){Voe(e);return}e.trackedEntity=void 0;let l=de.fromBoundingSpheres(c);e._zoomIsFlight?(M3(e),i.flyToBoundingSphere(l,{duration:o.duration,maximumHeight:o.maximumHeight,complete:function(){e._completeZoom(!0)},cancel:function(){e._completeZoom(!1)},offset:o.offset})):(i.viewBoundingSphere(l,o.offset),i.lookAtTransform(P.IDENTITY),M3(e),e._completeZoom(!0))}function m5t(e){if(!e._needTrackedEntityUpdate)return;let t=e._trackedEntity,n=e.clock.currentTime,i=Q.getValueOrUndefined(t.position,n);if(!d(i))return;let o=e.scene,r=e._dataSourceDisplay.getBoundingSphere(t,!1,d_);if(r===Wt.PENDING)return;let s=o.mode;(s===ae.COLUMBUS_VIEW||s===ae.SCENE2D)&&(o.screenSpaceCameraController.enableTranslate=!1),(s===ae.COLUMBUS_VIEW||s===ae.SCENE3D)&&(o.screenSpaceCameraController.enableTilt=!1);let a=r!==Wt.FAILED?d_:void 0;e._entityView=new v9(t,o,o.ellipsoid),e._entityView.update(n,a),e._needTrackedEntityUpdate=!1}var Zoe=To;var _rr=S(C(),1);function h5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesium3DTilesInspectorContainer",e.container.appendChild(t);let n=new i3(t,e.scene);Object.defineProperties(e,{cesium3DTilesInspector:{get:function(){return n}}})}var Roe=h5t;var Lrr=S(C(),1);function p5t(e){let t=document.createElement("div");t.className="cesium-viewer-cesiumInspectorContainer",e.container.appendChild(t);let n=new s3(t,e.scene);Object.defineProperties(e,{cesiumInspector:{get:function(){return n}}})}var Goe=p5t;var Grr=S(C(),1);function f5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=!0,i=g(t.flyToOnDrop,!0),o=new Se,r=g(t.clearOnDrop,!0),s=g(t.dropTarget,e.container),a=g(t.clampToGround,!0),c=t.proxy;s=li(s),Object.defineProperties(e,{dropTarget:{get:function(){return s},set:function(u){xXe(s,l),s=u,Eoe(s,l)}},dropEnabled:{get:function(){return n},set:function(u){u!==n&&(u?Eoe(s,l):xXe(s,l),n=u)}},dropError:{get:function(){return o}},clearOnDrop:{get:function(){return r},set:function(u){r=u}},flyToOnDrop:{get:function(){return i},set:function(u){i=u}},proxy:{get:function(){return c},set:function(u){c=u}},clampToGround:{get:function(){return a},set:function(u){a=u}}});function l(u){hL(u),r&&(e.entities.removeAll(),e.dataSources.removeAll());let m=u.dataTransfer.files,f=m.length;for(let b=0;b<f;b++){let p=m[b],x=new FileReader;x.onload=b5t(e,p,c,a),x.onerror=y5t(e,p),x.readAsText(p)}}Eoe(s,l),e.destroy=OE(e,e.destroy,function(){e.dropEnabled=!1}),e._handleDrop=l}function hL(e){e.stopPropagation(),e.preventDefault()}function xXe(e,t){let n=e;d(n)&&(n.removeEventListener("drop",t,!1),n.removeEventListener("dragenter",hL,!1),n.removeEventListener("dragover",hL,!1),n.removeEventListener("dragexit",hL,!1))}function Eoe(e,t){e.addEventListener("drop",t,!1),e.addEventListener("dragenter",hL,!1),e.addEventListener("dragover",hL,!1),e.addEventListener("dragexit",hL,!1)}function b5t(e,t,n,i){let o=e.scene;return function(r){let s=t.name;try{let a;if(/\.czml$/i.test(s))a=m9.load(JSON.parse(r.target.result),{sourceUri:s});else if(/\.geojson$/i.test(s)||/\.json$/i.test(s)||/\.topojson$/i.test(s))a=e5.load(JSON.parse(r.target.result),{sourceUri:s,clampToGround:i});else if(/\.(kml|kmz)$/i.test(s))a=m5.load(t,{sourceUri:s,proxy:n,camera:o.camera,canvas:o.canvas,clampToGround:i,screenOverlayContainer:e.container});else if(/\.gpx$/i.test(s))a=o5.load(t,{sourceUri:s,proxy:n});else{e.dropError.raiseEvent(e,s,`Unrecognized file: ${s}`);return}d(a)&&e.dataSources.add(a).then(function(c){e.flyToOnDrop&&e.flyTo(c)}).catch(function(c){e.dropError.raiseEvent(e,s,c)})}catch(a){e.dropError.raiseEvent(e,s,a)}}}function y5t(e,t){return function(n){e.dropError.raiseEvent(e,t.name,n.target.error)}}var Ioe=f5t;var Wrr=S(C(),1);function g5t(e,t){t=g(t,g.EMPTY_OBJECT);let n=new x3({scene:e.scene,container:e.bottomContainer,lowFrameRateMessage:t.lowFrameRateMessage});Object.defineProperties(e,{performanceWatchdog:{get:function(){return n}}})}var Xoe=g5t;var Jrr=S(C(),1);var Orr=S(C(),1);var Arr=S(C(),1);function TXe(e){let t=e.split(`
19087
19087
  `),n;for(n=0;n<t.length&&!t[n].match(/\S/);n++);if(n===t.length)return"";let i="",o=/^\s*/,s=t[n].match(o)[0].length;for(let a=n;a<t.length;a++){let c=t[a];c.match(o)[0].length>=s&&(c=c.slice(s)),i+=`${c}
19088
19088
  `}return i}function Uh(e){this._scene=e,this._voxelPrimitive=void 0,this._customShaderCompilationRemoveCallback=void 0,this._definedProperties=[],this._getPrimitiveFunctions=[],this._modelMatrixReady=!1;let t=this;function n(o){let{name:r,initialValue:s}=o;t._definedProperties.push(r);let a=o.setPrimitiveFunction;a===!0&&(a=function(u){t._voxelPrimitive[r]=u});let c=o.getPrimitiveFunction;c===!0&&(c=function(){t[r]=t._voxelPrimitive[r]}),d(c)&&t._getPrimitiveFunctions.push(c);let l=Re.observable();return Re.defineProperty(t,r,{get:function(){return l()},set:function(u){typeof s=="number"&&typeof u=="string"&&(u=Number(u),isNaN(u)&&(u=s)),typeof s=="boolean"&&typeof u=="number"&&(u=u===1),l(u),d(a)&&d(t._voxelPrimitive)&&(a(u),e.requestRender())}}),t[r]=s,l}function i(o,r){return function(s){let a=t._voxelPrimitive[o].clone();a[r]=s,t._voxelPrimitive[o]=a}}n({name:"inspectorVisible",initialValue:!0}),n({name:"displayVisible",initialValue:!1}),n({name:"transformVisible",initialValue:!1}),n({name:"boundsVisible",initialValue:!1}),n({name:"clippingVisible",initialValue:!1}),n({name:"shaderVisible",initialValue:!1}),n({name:"shaderString",initialValue:"",getPrimitiveFunction:function(){let o=t._voxelPrimitive.customShader.fragmentShaderText;t.shaderString=TXe(o)}}),n({name:"shaderCompilationMessage",initialValue:""}),n({name:"shaderCompilationSuccess",initialValue:!0}),n({name:"depthTest",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"show",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"disableUpdate",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"debugDraw",initialValue:!1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"jitter",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"nearestSampling",initialValue:!0,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"screenSpaceError",initialValue:4,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"stepSize",initialValue:1,setPrimitiveFunction:!0,getPrimitiveFunction:!0}),n({name:"shapeIsBox",getPrimitiveFunction:function(){let o=t._voxelPrimitive.shape;t.shapeIsBox=o===Xo.BOX}}),n({name:"shapeIsEllipsoid",getPrimitiveFunction:function(){let o=t._voxelPrimitive.shape;t.shapeIsEllipsoid=o===Xo.ELLIPSOID}}),n({name:"shapeIsCylinder",getPrimitiveFunction:function(){let o=t._voxelPrimitive.shape;t.shapeIsCylinder=o===Xo.CYLINDER}}),n({name:"boundsBoxMaxX",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsBoxMaxX=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsBoxMinX",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsBoxMinX=t._voxelPrimitive.minBounds.x}}),n({name:"boundsBoxMaxY",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsBoxMaxY=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsBoxMinY",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsBoxMinY=t._voxelPrimitive.minBounds.y}}),n({name:"boundsBoxMaxZ",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsBoxMaxZ=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsBoxMinZ",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsBoxMinZ=t._voxelPrimitive.minBounds.z}}),n({name:"boundsEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxLongitude=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsEllipsoidMinLongitude=t._voxelPrimitive.minBounds.x}}),n({name:"boundsEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxLatitude=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsEllipsoidMinLatitude=t._voxelPrimitive.minBounds.y}}),n({name:"boundsEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsEllipsoidMaxHeight=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsEllipsoidMinHeight=t._voxelPrimitive.minBounds.z}}),n({name:"boundsCylinderMaxRadius",initialValue:0,setPrimitiveFunction:i("maxBounds","x"),getPrimitiveFunction:function(){t.boundsCylinderMaxRadius=t._voxelPrimitive.maxBounds.x}}),n({name:"boundsCylinderMinRadius",initialValue:0,setPrimitiveFunction:i("minBounds","x"),getPrimitiveFunction:function(){t.boundsCylinderMinRadius=t._voxelPrimitive.minBounds.x}}),n({name:"boundsCylinderMaxHeight",initialValue:0,setPrimitiveFunction:i("maxBounds","y"),getPrimitiveFunction:function(){t.boundsCylinderMaxHeight=t._voxelPrimitive.maxBounds.y}}),n({name:"boundsCylinderMinHeight",initialValue:0,setPrimitiveFunction:i("minBounds","y"),getPrimitiveFunction:function(){t.boundsCylinderMinHeight=t._voxelPrimitive.minBounds.y}}),n({name:"boundsCylinderMaxAngle",initialValue:0,setPrimitiveFunction:i("maxBounds","z"),getPrimitiveFunction:function(){t.boundsCylinderMaxAngle=t._voxelPrimitive.maxBounds.z}}),n({name:"boundsCylinderMinAngle",initialValue:0,setPrimitiveFunction:i("minBounds","z"),getPrimitiveFunction:function(){t.boundsCylinderMinAngle=t._voxelPrimitive.minBounds.z}}),n({name:"clippingBoxMaxX",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingBoxMaxX=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingBoxMinX",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingBoxMinX=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingBoxMaxY",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingBoxMaxY=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingBoxMinY",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingBoxMinY=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingBoxMaxZ",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingBoxMaxZ=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingBoxMinZ",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingBoxMinZ=t._voxelPrimitive.minClippingBounds.z}}),n({name:"clippingEllipsoidMaxLongitude",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxLongitude=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingEllipsoidMinLongitude",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingEllipsoidMinLongitude=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingEllipsoidMaxLatitude",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxLatitude=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingEllipsoidMinLatitude",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingEllipsoidMinLatitude=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingEllipsoidMaxHeight",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingEllipsoidMaxHeight=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingEllipsoidMinHeight",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingEllipsoidMinHeight=t._voxelPrimitive.minClippingBounds.z}}),n({name:"clippingCylinderMaxRadius",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","x"),getPrimitiveFunction:function(){t.clippingCylinderMaxRadius=t._voxelPrimitive.maxClippingBounds.x}}),n({name:"clippingCylinderMinRadius",initialValue:0,setPrimitiveFunction:i("minClippingBounds","x"),getPrimitiveFunction:function(){t.clippingCylinderMinRadius=t._voxelPrimitive.minClippingBounds.x}}),n({name:"clippingCylinderMaxHeight",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","y"),getPrimitiveFunction:function(){t.clippingCylinderMaxHeight=t._voxelPrimitive.maxClippingBounds.y}}),n({name:"clippingCylinderMinHeight",initialValue:0,setPrimitiveFunction:i("minClippingBounds","y"),getPrimitiveFunction:function(){t.clippingCylinderMinHeight=t._voxelPrimitive.minClippingBounds.y}}),n({name:"clippingCylinderMaxAngle",initialValue:0,setPrimitiveFunction:i("maxClippingBounds","z"),getPrimitiveFunction:function(){t.clippingCylinderMaxAngle=t._voxelPrimitive.maxClippingBounds.z}}),n({name:"clippingCylinderMinAngle",initialValue:0,setPrimitiveFunction:i("minClippingBounds","z"),getPrimitiveFunction:function(){t.clippingCylinderMinAngle=t._voxelPrimitive.minClippingBounds.z}}),n({name:"translationX",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.translationX=P.getTranslation(t._voxelPrimitive.modelMatrix,new h).x}}),n({name:"translationY",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.translationY=P.getTranslation(t._voxelPrimitive.modelMatrix,new h).y}}),n({name:"translationZ",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.translationZ=P.getTranslation(t._voxelPrimitive.modelMatrix,new h).z}}),n({name:"scaleX",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.scaleX=P.getScale(t._voxelPrimitive.modelMatrix,new h).x}}),n({name:"scaleY",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.scaleY=P.getScale(t._voxelPrimitive.modelMatrix,new h).y}}),n({name:"scaleZ",initialValue:1,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)},getPrimitiveFunction:function(){t.scaleZ=P.getScale(t._voxelPrimitive.modelMatrix,new h).z}}),n({name:"angleX",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)}}),n({name:"angleY",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)}}),n({name:"angleZ",initialValue:0,setPrimitiveFunction:function(){t._modelMatrixReady&&tb(t)}})}var x5t=new h,T5t=new h,_5t=new Gs,S5t=new $;function tb(e){let t=h.fromElements(e.translationX,e.translationY,e.translationZ,x5t),n=h.fromElements(e.scaleX,e.scaleY,e.scaleZ,T5t),i=_5t;i.heading=e.angleX,i.pitch=e.angleY,i.roll=e.angleZ;let o=$.fromHeadingPitchRoll(i,S5t),r=$.multiplyByScale(o,n,o);e._voxelPrimitive.modelMatrix=P.fromRotationTranslation(r,t,e._voxelPrimitive.modelMatrix)}Object.defineProperties(Uh.prototype,{scene:{get:function(){return this._scene}},voxelPrimitive:{get:function(){return this._voxelPrimitive},set:function(e){if(d(this._customShaderCompilationRemoveCallback)&&this._customShaderCompilationRemoveCallback(),d(e)){this._voxelPrimitive=e;let t=this;t._customShaderCompilationRemoveCallback=t._voxelPrimitive.customShaderCompilationEvent.addEventListener(function(n){let i=t._voxelPrimitive.customShader.fragmentShaderText;t.shaderString=TXe(i),d(n)?(t.shaderCompilationMessage=n.message,t.shaderCompilationSuccess=!1):(t.shaderCompilationMessage="Shader compiled successfully!",t.shaderCompilationSuccess=!0)}),t._modelMatrixReady=!1;for(let n=0;n<t._getPrimitiveFunctions.length;n++)t._getPrimitiveFunctions[n]();t._modelMatrixReady=!0,tb(t)}}}});Uh.prototype.toggleInspector=function(){this.inspectorVisible=!this.inspectorVisible};Uh.prototype.toggleDisplay=function(){this.displayVisible=!this.displayVisible};Uh.prototype.toggleTransform=function(){this.transformVisible=!this.transformVisible};Uh.prototype.toggleBounds=function(){this.boundsVisible=!this.boundsVisible};Uh.prototype.toggleClipping=function(){this.clippingVisible=!this.clippingVisible};Uh.prototype.toggleShader=function(){this.shaderVisible=!this.shaderVisible};Uh.prototype.compileShader=function(){d(this._voxelPrimitive)&&(this._voxelPrimitive.customShader=new eL({fragmentShaderText:this.shaderString,uniforms:this._voxelPrimitive.customShader.uniforms}))};Uh.prototype.shaderEditorKeyPress=function(e,t){if(t.keyCode===9){t.preventDefault();let n=t.target,i=n.selectionStart,o=n.selectionEnd,r=o,a=n.value.slice(i,o).split(`
19089
19089
  `),c=a.length,l;if(t.shiftKey)for(l=0;l<c;++l)a[l][0]===" "&&(a[l][1]===" "?(a[l]=a[l].substr(2),r-=2):(a[l]=a[l].substr(1),r-=1));else for(l=0;l<c;++l)a[l]=` ${a[l]}`,r+=2;let u=a.join(`
19090
- `);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileShader();return!0};Uh.prototype.isDestroyed=function(){return!1};Uh.prototype.destroy=function(){let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};var w3=Uh;function t4(e,t){e=li(e);let n=document.createElement("div"),i=new w3(t);this._viewModel=i,this._container=e,this._element=n;let o=document.createElement("div");o.textContent="Voxel Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleInspector"),n.appendChild(o),n.className="cesium-cesiumInspector cesium-VoxelInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let r=document.createElement("div");r.className="cesium-cesiumInspector-dropDown",n.appendChild(r);let s=jc.createSection,a=jc.createCheckbox,c=jc.createRangeInput,l=jc.createButton,u=s(r,"Display","displayVisible","toggleDisplay"),m=s(r,"Transform","transformVisible","toggleTransform"),f=s(r,"Bounds","boundsVisible","toggleBounds"),b=s(r,"Clipping","clippingVisible","toggleClipping"),p=s(r,"Shader","shaderVisible","toggleShader");u.appendChild(a("Depth Test","depthTest")),u.appendChild(a("Show","show")),u.appendChild(a("Disable Update","disableUpdate")),u.appendChild(a("Debug Draw","debugDraw")),u.appendChild(a("Jitter","jitter")),u.appendChild(a("Nearest Sampling","nearestSampling")),u.appendChild(c("Screen Space Error","screenSpaceError",0,128)),u.appendChild(c("Step Size","stepSize",0,2));let x=10,T=10,_=M.PI;m.appendChild(c("Translation X","translationX",-x,+x)),m.appendChild(c("Translation Y","translationY",-x,+x)),m.appendChild(c("Translation Z","translationZ",-x,+x)),m.appendChild(c("Scale X","scaleX",0,+T)),m.appendChild(c("Scale Y","scaleY",0,+T)),m.appendChild(c("Scale Z","scaleZ",0,+T)),m.appendChild(c("Heading","angleX",-_,+_)),m.appendChild(c("Pitch","angleY",-_,+_)),m.appendChild(c("Roll","angleZ",-_,+_));let L=Xo.getMinBounds(Xo.BOX),V=Xo.getMaxBounds(Xo.BOX),Z=h.fromElements(Xo.getMinBounds(Xo.ELLIPSOID).x,Xo.getMinBounds(Xo.ELLIPSOID).y,-oe.WGS84.maximumRadius,new h),G=h.fromElements(Xo.getMaxBounds(Xo.ELLIPSOID).x,Xo.getMaxBounds(Xo.ELLIPSOID).y,1e7,new h),I=Xo.getMinBounds(Xo.CYLINDER),w=Xo.getMaxBounds(Xo.CYLINDER);OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","boundsBoxMaxX","boundsBoxMinX","boundsBoxMaxY","boundsBoxMinY","boundsBoxMaxZ","boundsBoxMinZ",L,V,"shapeIsBox",f),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","boundsEllipsoidMaxLongitude","boundsEllipsoidMinLongitude","boundsEllipsoidMaxLatitude","boundsEllipsoidMinLatitude","boundsEllipsoidMaxHeight","boundsEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",f),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","boundsCylinderMaxRadius","boundsCylinderMinRadius","boundsCylinderMaxHeight","boundsCylinderMinHeight","boundsCylinderMaxAngle","boundsCylinderMinAngle",I,w,"shapeIsCylinder",f),OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ",L,V,"shapeIsBox",b),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",b),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxHeight","clippingCylinderMinHeight","clippingCylinderMaxAngle","clippingCylinderMinAngle",I,w,"shapeIsCylinder",b);let W=document.createElement("div");p.appendChild(W);let v=document.createElement("textarea");v.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),W.className="cesium-cesiumInspector-styleEditor",W.appendChild(v);let N=l("Compile (Ctrl+Enter)","compileShader");W.appendChild(N);let y=document.createElement("label");y.style.display="block",y.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),W.appendChild(y),Re.applyBindings(i,n)}Object.defineProperties(t4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});t4.prototype.isDestroyed=function(){return!1};t4.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};function OG(e,t,n,i,o,r,s,a,c,l,u,m,f,b,p,x){let T=jc.createRangeInput,_=f,L=b,V=x.appendChild(document.createElement("div"));V.setAttribute("data-bind",`if: ${p}`),V.appendChild(T(e,s,_.x,L.x)),V.appendChild(T(t,a,_.x,L.x)),V.appendChild(T(n,c,_.y,L.y)),V.appendChild(T(i,l,_.y,L.y)),V.appendChild(T(o,u,_.z,L.z)),V.appendChild(T(r,m,_.z,L.z))}var W3=t4;function C5t(e){let t=document.createElement("div");t.className="cesium-viewer-voxelInspectorContainer",e.container.appendChild(t);let n=new W3(t,e.scene);Object.defineProperties(e,{voxelInspector:{get:function(){return n}}})}var Moe=C5t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.8";var L5t="1.122.0",V5t="17.6.8";return WXe(Z5t);})();
19090
+ `);n.value=n.value.slice(0,i)+u+n.value.slice(o),n.selectionStart=i!==o?i:r,n.selectionEnd=r}else t.ctrlKey&&(t.keyCode===10||t.keyCode===13)&&this.compileShader();return!0};Uh.prototype.isDestroyed=function(){return!1};Uh.prototype.destroy=function(){let e=this;return this._definedProperties.forEach(function(t){Re.getObservable(e,t).dispose()}),fe(this)};var w3=Uh;function t4(e,t){e=li(e);let n=document.createElement("div"),i=new w3(t);this._viewModel=i,this._container=e,this._element=n;let o=document.createElement("div");o.textContent="Voxel Inspector",o.className="cesium-cesiumInspector-button",o.setAttribute("data-bind","click: toggleInspector"),n.appendChild(o),n.className="cesium-cesiumInspector cesium-VoxelInspector",n.setAttribute("data-bind",'css: { "cesium-cesiumInspector-visible" : inspectorVisible, "cesium-cesiumInspector-hidden" : !inspectorVisible}'),e.appendChild(n);let r=document.createElement("div");r.className="cesium-cesiumInspector-dropDown",n.appendChild(r);let s=jc.createSection,a=jc.createCheckbox,c=jc.createRangeInput,l=jc.createButton,u=s(r,"Display","displayVisible","toggleDisplay"),m=s(r,"Transform","transformVisible","toggleTransform"),f=s(r,"Bounds","boundsVisible","toggleBounds"),b=s(r,"Clipping","clippingVisible","toggleClipping"),p=s(r,"Shader","shaderVisible","toggleShader");u.appendChild(a("Depth Test","depthTest")),u.appendChild(a("Show","show")),u.appendChild(a("Disable Update","disableUpdate")),u.appendChild(a("Debug Draw","debugDraw")),u.appendChild(a("Jitter","jitter")),u.appendChild(a("Nearest Sampling","nearestSampling")),u.appendChild(c("Screen Space Error","screenSpaceError",0,128)),u.appendChild(c("Step Size","stepSize",0,2));let x=10,T=10,_=M.PI;m.appendChild(c("Translation X","translationX",-x,+x)),m.appendChild(c("Translation Y","translationY",-x,+x)),m.appendChild(c("Translation Z","translationZ",-x,+x)),m.appendChild(c("Scale X","scaleX",0,+T)),m.appendChild(c("Scale Y","scaleY",0,+T)),m.appendChild(c("Scale Z","scaleZ",0,+T)),m.appendChild(c("Heading","angleX",-_,+_)),m.appendChild(c("Pitch","angleY",-_,+_)),m.appendChild(c("Roll","angleZ",-_,+_));let L=Xo.getMinBounds(Xo.BOX),V=Xo.getMaxBounds(Xo.BOX),Z=h.fromElements(Xo.getMinBounds(Xo.ELLIPSOID).x,Xo.getMinBounds(Xo.ELLIPSOID).y,-oe.WGS84.maximumRadius,new h),G=h.fromElements(Xo.getMaxBounds(Xo.ELLIPSOID).x,Xo.getMaxBounds(Xo.ELLIPSOID).y,1e7,new h),I=Xo.getMinBounds(Xo.CYLINDER),w=Xo.getMaxBounds(Xo.CYLINDER);OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","boundsBoxMaxX","boundsBoxMinX","boundsBoxMaxY","boundsBoxMinY","boundsBoxMaxZ","boundsBoxMinZ",L,V,"shapeIsBox",f),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","boundsEllipsoidMaxLongitude","boundsEllipsoidMinLongitude","boundsEllipsoidMaxLatitude","boundsEllipsoidMinLatitude","boundsEllipsoidMaxHeight","boundsEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",f),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","boundsCylinderMaxRadius","boundsCylinderMinRadius","boundsCylinderMaxHeight","boundsCylinderMinHeight","boundsCylinderMaxAngle","boundsCylinderMinAngle",I,w,"shapeIsCylinder",f),OG("Max X","Min X","Max Y","Min Y","Max Z","Min Z","clippingBoxMaxX","clippingBoxMinX","clippingBoxMaxY","clippingBoxMinY","clippingBoxMaxZ","clippingBoxMinZ",L,V,"shapeIsBox",b),OG("Max Longitude","Min Longitude","Max Latitude","Min Latitude","Max Height","Min Height","clippingEllipsoidMaxLongitude","clippingEllipsoidMinLongitude","clippingEllipsoidMaxLatitude","clippingEllipsoidMinLatitude","clippingEllipsoidMaxHeight","clippingEllipsoidMinHeight",Z,G,"shapeIsEllipsoid",b),OG("Max Radius","Min Radius","Max Height","Min Height","Max Angle","Min Angle","clippingCylinderMaxRadius","clippingCylinderMinRadius","clippingCylinderMaxHeight","clippingCylinderMinHeight","clippingCylinderMaxAngle","clippingCylinderMinAngle",I,w,"shapeIsCylinder",b);let W=document.createElement("div");p.appendChild(W);let v=document.createElement("textarea");v.setAttribute("data-bind","textInput: shaderString, event: { keydown: shaderEditorKeyPress }"),W.className="cesium-cesiumInspector-styleEditor",W.appendChild(v);let N=l("Compile (Ctrl+Enter)","compileShader");W.appendChild(N);let y=document.createElement("label");y.style.display="block",y.setAttribute("data-bind","text: shaderCompilationMessage, style: {color: shaderCompilationSuccess ? 'green' : 'red'}"),W.appendChild(y),Re.applyBindings(i,n)}Object.defineProperties(t4.prototype,{container:{get:function(){return this._container}},viewModel:{get:function(){return this._viewModel}}});t4.prototype.isDestroyed=function(){return!1};t4.prototype.destroy=function(){return Re.cleanNode(this._element),this._container.removeChild(this._element),this.viewModel.destroy(),fe(this)};function OG(e,t,n,i,o,r,s,a,c,l,u,m,f,b,p,x){let T=jc.createRangeInput,_=f,L=b,V=x.appendChild(document.createElement("div"));V.setAttribute("data-bind",`if: ${p}`),V.appendChild(T(e,s,_.x,L.x)),V.appendChild(T(t,a,_.x,L.x)),V.appendChild(T(n,c,_.y,L.y)),V.appendChild(T(i,l,_.y,L.y)),V.appendChild(T(o,u,_.z,L.z)),V.appendChild(T(r,m,_.z,L.z))}var W3=t4;function C5t(e){let t=document.createElement("div");t.className="cesium-viewer-voxelInspectorContainer",e.container.appendChild(t);let n=new W3(t,e.scene);Object.defineProperties(e,{voxelInspector:{get:function(){return n}}})}var Moe=C5t;globalThis.CESIUM_VERSION="1.122.0";globalThis.MAPGIS_VERSION="17.6.9";var L5t="1.122.0",V5t="17.6.9";return WXe(Z5t);})();