@expofp/floorplan 3.0.0-alpha.9 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/Debug-b2YI2Uxo.js +40 -0
- package/dist/browser/Demo-aEKqZbJJ.js +47 -0
- package/dist/browser/Free-BGr4o53R.js +51 -0
- package/dist/browser/Gallery-C9n64fhu.js +71 -0
- package/dist/browser/GpsLoader-ChxBR2EI.js +140 -0
- package/dist/browser/KioskStore-DkCSeq5I.js +225 -0
- package/dist/browser/Mapbox-Cl0Wxz2h.js +118 -0
- package/dist/browser/{SetKioskMode-C3fGoJPj.js → SetKioskMode-D3EJeF9c.js} +92 -83
- package/dist/browser/{ShowKiosk-D-477yKH.js → ShowKiosk-Bs5q-1RZ.js} +28 -19
- package/dist/browser/{ThreeComponent-Z1K-qX4i.js → ThreeComponent-CSsqNYDu.js} +181 -172
- package/dist/browser/ViewerMenuPanel-BMmB1p03.js +77 -0
- package/dist/browser/boolean-editor-DpnmndKH.js +157 -0
- package/dist/browser/bundle.json +34 -31
- package/dist/browser/{client-D6zJdOh6.js → client-CN_I7kK8.js} +848 -839
- package/dist/browser/compat-helper.js +5 -0
- package/dist/browser/{data-C6uYuLvP.js → data-CIAMSGsv.js} +278 -269
- package/dist/browser/{debug-overlay-BcmbSeG3.js → debug-overlay-DjmA0D2r.js} +100 -91
- package/dist/browser/debug-ui-D1QGTN8V.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-BpTKNfwa.js} +11 -2
- package/dist/browser/fetch-retry.umd-B8hV1FNr.js +123 -0
- package/dist/browser/{flex-DA2yhKLl.js → flex-09atkOGP.js} +76 -67
- package/dist/browser/{floorplan.ready-DEdtWjzo.js → floorplan.ready-BQetaqdP.js} +20976 -22750
- package/dist/browser/fonts/efp-symbols.woff +0 -0
- package/dist/browser/{index-DSULYUX0.js → index-Bw6xZlSd.js} +46 -37
- package/dist/browser/{index-BAvspl75.js → index-C71k7nSe.js} +333 -324
- package/dist/browser/index-CWLY6XdC.js +92 -0
- package/dist/browser/index-D9pdVw-U.js +882 -0
- package/dist/browser/index-DPSQIIUy.js +57 -0
- package/dist/browser/index-jp-Zhdyp.js +54 -0
- package/dist/browser/index.html +1 -0
- package/dist/browser/index.js +12495 -2
- package/dist/browser/jsx-runtime-CoKhM3tL.js +40 -0
- package/dist/browser/locales/ar.json +56 -5
- package/dist/browser/locales/de.json +56 -5
- package/dist/browser/locales/es.json +56 -5
- package/dist/browser/locales/fr.json +56 -5
- package/dist/browser/locales/he.json +56 -5
- package/dist/browser/locales/it.json +56 -5
- package/dist/browser/locales/kk.json +56 -5
- package/dist/browser/locales/ko.json +56 -5
- package/dist/browser/locales/mn.json +56 -5
- package/dist/browser/locales/nl.json +56 -5
- package/dist/browser/locales/pl.json +57 -6
- package/dist/browser/locales/pt.json +55 -4
- package/dist/browser/locales/ru.json +57 -6
- package/dist/browser/locales/sv.json +56 -5
- package/dist/browser/locales/th.json +56 -5
- package/dist/browser/locales/tr.json +56 -5
- package/dist/browser/locales/uk.json +56 -5
- package/dist/browser/locales/vi.json +56 -5
- package/dist/browser/locales/zh.json +56 -5
- package/dist/browser/{main-CD9JioNt.js → main-DxaHLbma.js} +24 -15
- package/dist/browser/{particles.min-DcpKrPn3.js → particles.min-CsHbc6cO.js} +40 -31
- package/dist/esm/RouteCutIn.d.ts +0 -1
- package/dist/esm/RouteCutIn.js +1 -1
- package/dist/esm/_misc_to_move/manifest.d.ts +13 -0
- package/dist/esm/_misc_to_move/ref.d.ts +6 -0
- package/dist/esm/_misc_to_move/ref.js +1 -0
- package/dist/esm/components/Alert.d.ts +2 -0
- package/dist/esm/components/Alert.js +1 -1
- package/dist/esm/components/Badge.d.ts +3 -2
- package/dist/esm/components/Badge.js +1 -1
- package/dist/esm/components/Bookmarks.js +1 -1
- package/dist/esm/components/Booth/BoothOnHold.d.ts +2 -2
- package/dist/esm/components/Booth/BoothOnHold.js +1 -1
- package/dist/esm/components/Booth/BoothReserved.d.ts +2 -1
- package/dist/esm/components/Booth/BoothReserved.js +1 -1
- package/dist/esm/components/Booth/BoothWithoutExhibitor.d.ts +2 -2
- package/dist/esm/components/Booth/BoothWithoutExhibitor.js +1 -1
- package/dist/esm/components/CookieConsent.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.d.ts +2 -2
- package/dist/esm/components/Gallery/GalleryControls/GalleryControls.js +1 -1
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.d.ts +2 -2
- package/dist/esm/components/Gallery/GalleryModal/GalleryModal.js +1 -1
- package/dist/esm/components/Kiosk/KioskStore.d.ts +3 -3
- package/dist/esm/components/Kiosk/KioskStore.js +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.d.ts +1 -1
- package/dist/esm/components/Kiosk/SetKiosk/storage.js +1 -1
- package/dist/esm/components/Kiosk/ShowKiosk.js +1 -1
- package/dist/esm/components/Kiosk/integrateKiosk.js +1 -1
- package/dist/esm/components/Language.js +1 -1
- package/dist/esm/components/LanguageRow.d.ts +0 -1
- package/dist/esm/components/LanguageRow.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/List.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/Map.d.ts +0 -23
- package/dist/esm/components/Map/Map.js +1 -1
- package/dist/esm/components/Map/booth-by-xy.js +1 -1
- package/dist/esm/components/Map/drawing/config/TextFitter.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/config-all.d.ts +2 -3
- package/dist/esm/components/Map/drawing/config/config-all.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-bg.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/config-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +9 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -0
- package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +5 -5
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.d.ts +5 -5
- package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-border.d.ts +3 -3
- package/dist/esm/components/Map/drawing/config/config-booth-border.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.d.ts +6 -6
- package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
- package/dist/esm/components/Map/drawing/config/config-booth-labels.d.ts +5 -5
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-scaled.d.ts +3 -3
- package/dist/esm/components/Map/drawing/config/config-booth-scaled.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booths.d.ts +2 -2
- package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +2 -2
- package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-markers.d.ts +2 -3
- package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-wf.d.ts +2 -5
- package/dist/esm/components/Map/drawing/config/config-wf.js +1 -1
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.d.ts +2 -3
- package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/snapPositionToRoute.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/snapPositionToRoute.js +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/splitRouteByPoint.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/splitRouteByPoint.js +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/types.d.ts +1 -1
- package/dist/esm/components/Map/drawing/config/route-snapping/utils.d.ts +1 -1
- package/dist/esm/components/Map/traffic/useBuildRoute.d.ts +3 -5
- package/dist/esm/components/Map/traffic/useBuildRoute.js +6 -6
- package/dist/esm/components/Map/traffic/useManageTraffic.d.ts +3 -5
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/components/MarketMaterialList.d.ts +3 -3
- package/dist/esm/components/MarketMaterialList.js +1 -1
- package/dist/esm/components/Menu.js +1 -2
- package/dist/esm/components/MobileToggleButton.js +1 -1
- package/dist/esm/components/MultiSelectGroups.d.ts +2 -2
- package/dist/esm/components/MultiSelectGroups.js +1 -1
- package/dist/esm/components/Overlay.d.ts +2 -0
- package/dist/esm/components/Overlay.js +1 -1
- package/dist/esm/components/OverlayContainer.js +1 -1
- package/dist/esm/components/QrCode.d.ts +46 -0
- package/dist/esm/components/QrCode.js +1 -0
- package/dist/esm/components/RebookingNotes.d.ts +2 -2
- package/dist/esm/components/RebookingNotes.js +1 -1
- package/dist/esm/components/RebookingRadioGroup.d.ts +2 -2
- package/dist/esm/components/RebookingRadioGroup.js +1 -1
- package/dist/esm/components/RoutePlanner/RoutePlanner.d.ts +4 -0
- package/dist/esm/components/RoutePlanner/RoutePlanner.js +1 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.d.ts +4 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerHeader.js +1 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStartPoint.js +1 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.d.ts +9 -0
- package/dist/esm/components/RoutePlanner/RoutePlannerStopItem.js +1 -0
- package/dist/esm/components/RouteQR.d.ts +2 -2
- package/dist/esm/components/RouteQR.js +1 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/SearchBox.js +1 -1
- package/dist/esm/components/Sessions.js +1 -1
- package/dist/esm/components/Share.d.ts +2 -2
- package/dist/esm/components/Share.js +1 -1
- package/dist/esm/components/SidebarActions.d.ts +3 -0
- package/dist/esm/components/SidebarActions.js +1 -1
- package/dist/esm/components/SpeakersFiltersModal.js +1 -1
- package/dist/esm/components/ViewerMenuPanel.d.ts +5 -0
- package/dist/esm/components/ViewerMenuPanel.js +1 -0
- package/dist/esm/components/Wayfinding.d.ts +2 -2
- package/dist/esm/components/Wayfinding.js +1 -1
- package/dist/esm/components/WayfindingTemplate.d.ts +2 -2
- package/dist/esm/components/WayfindingTemplate.js +1 -1
- package/dist/esm/components/gps/GpsPermissionRequest.d.ts +4 -2
- package/dist/esm/components/gps/GpsPermissionRequest.js +1 -1
- package/dist/esm/components/index.d.ts +1 -3
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/constants.d.ts +7 -0
- package/dist/esm/constants.js +1 -1
- package/dist/esm/data/tours.json +114 -0
- package/dist/esm/floorplan.loader.d.ts +5 -0
- package/dist/esm/floorplan.loader.js +1 -1
- package/dist/esm/floorplan.ready.d.ts +6 -3
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/load.d.ts +4 -1
- package/dist/esm/load.js +2 -2
- package/dist/esm/offline/offlineManager.js +1 -1
- package/dist/esm/renderer/HandlerRegistry.d.ts +18 -0
- package/dist/esm/renderer/HandlerRegistry.js +1 -0
- package/dist/esm/renderer/RendererService.d.ts +26 -0
- package/dist/esm/renderer/RendererService.js +1 -0
- package/dist/esm/renderer/engine-core/animation.d.ts +7 -0
- package/dist/esm/renderer/engine-core/animation.js +1 -0
- package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/canvases.d.ts +1 -1
- package/dist/esm/renderer/engine-core/canvases.js +1 -0
- package/dist/esm/renderer/engine-core/fonts.js +1 -0
- package/dist/esm/renderer/engine-core/types.js +1 -0
- package/dist/esm/{components/Map/drawing/config/engine-core → renderer}/index.d.ts +10 -10
- package/dist/esm/renderer/index.js +1 -0
- package/dist/esm/services/routing.js +1 -1
- package/dist/esm/store/BookmarksStore.d.ts +12 -0
- package/dist/esm/store/BookmarksStore.js +2 -0
- package/dist/esm/store/FuzzySearchEngineStore.d.ts +7 -3
- package/dist/esm/store/FuzzySearchEngineStore.js +1 -1
- package/dist/esm/store/LayerStore.d.ts +1 -0
- package/dist/esm/store/LayerStore.js +1 -1
- package/dist/esm/store/RootStore.d.ts +10 -10
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/RoutePlannerStore.d.ts +58 -0
- package/dist/esm/store/RoutePlannerStore.js +1 -0
- package/dist/esm/store/RouteStore.d.ts +1 -1
- package/dist/esm/store/RouteStore.js +1 -1
- package/dist/esm/store/SearchStore.d.ts +2 -0
- package/dist/esm/store/SearchStore.js +1 -1
- package/dist/esm/store/ToursStore.js +1 -1
- package/dist/esm/store/UIState.d.ts +10 -7
- package/dist/esm/store/UIState.js +1 -1
- package/dist/esm/store/init/index.js +1 -1
- package/dist/esm/store/init/init-bookmarks.d.ts +7 -0
- package/dist/esm/store/init/init-bookmarks.js +1 -0
- package/dist/esm/store/init/init-events.d.ts +1 -1
- package/dist/esm/store/init/init-events.js +1 -1
- package/dist/esm/store/init/init-exhibitors.d.ts +1 -1
- package/dist/esm/store/init/init-exhibitors.js +1 -1
- package/dist/esm/store/init/init-layers.js +1 -1
- package/dist/esm/store/init/init-speakers.d.ts +1 -1
- package/dist/esm/store/init/init-speakers.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
- package/dist/esm/store/types.d.ts +11 -3
- package/dist/esm/tools/base-runtime-url.js +1 -1
- package/dist/esm/tools/sentry.js +1 -1
- package/dist/esm/tools/telemetry.d.ts +35 -0
- package/dist/esm/tools/telemetry.js +1 -0
- package/dist/esm/tools/track-event.d.ts +3 -1
- package/dist/esm/tools/track-event.js +1 -1
- package/dist/esm/utils/buildOptimizedRoute.d.ts +11 -0
- package/dist/esm/utils/buildOptimizedRoute.js +1 -0
- package/dist/esm/utils/geometry.d.ts +2 -0
- package/dist/esm/utils/geometry.js +1 -0
- package/dist/esm/utils/i18n.d.ts +6 -4
- package/dist/esm/utils/i18n.js +1 -1
- package/dist/esm/utils/loadCustomCss.d.ts +1 -1
- package/dist/esm/utils/loadCustomCss.js +1 -1
- package/dist/esm/utils/mapEntity.js +1 -1
- package/dist/esm/utils/math.d.ts +7 -0
- package/dist/esm/utils/math.js +1 -0
- package/dist/esm/utils/shortenName.js +1 -1
- package/dist/esm/utils/use-shadow.d.ts +1 -1
- package/dist/esm/utils/use-shadow.js +1 -1
- package/dist/esm/utils/useRenderTarget.js +1 -1
- package/dist/esm/wayfinding/_PLAN-public-api.d.ts +220 -0
- package/dist/esm/wayfinding/_PLAN-public-api.js +1 -0
- package/dist/esm/{utils/wayfinding.d.ts → wayfinding/__integration__/legacy/legacyWayfinding.d.ts} +5 -15
- package/dist/esm/wayfinding/__integration__/legacy/legacyWayfinding.js +1 -0
- package/dist/esm/wayfinding/__tests__/helpers.d.ts +21 -0
- package/dist/esm/wayfinding/__tests__/helpers.js +1 -0
- package/dist/esm/wayfinding/adapters/boothToWaypoint.d.ts +12 -0
- package/dist/esm/wayfinding/adapters/boothToWaypoint.js +1 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.d.ts +3 -0
- package/dist/esm/wayfinding/adapters/graphDataSource.js +1 -0
- package/dist/esm/wayfinding/graph/buildGraph.d.ts +3 -0
- package/dist/esm/wayfinding/graph/buildGraph.js +1 -0
- package/dist/esm/wayfinding/graph/buildNGraph.d.ts +9 -0
- package/dist/esm/wayfinding/graph/buildNGraph.js +1 -0
- package/dist/esm/wayfinding/graph/constants.d.ts +3 -0
- package/dist/esm/wayfinding/graph/constants.js +1 -0
- package/dist/esm/wayfinding/graph/findShortestPath.d.ts +14 -0
- package/dist/esm/wayfinding/graph/findShortestPath.js +1 -0
- package/dist/esm/wayfinding/graph/graphCache.d.ts +6 -0
- package/dist/esm/wayfinding/graph/graphCache.js +1 -0
- package/dist/esm/wayfinding/graph/graphHelpers.d.ts +8 -0
- package/dist/esm/wayfinding/graph/graphHelpers.js +1 -0
- package/dist/esm/wayfinding/graph/linkCost.d.ts +4 -0
- package/dist/esm/wayfinding/graph/linkCost.js +1 -0
- package/dist/esm/wayfinding/graph/pathfinder/aStarPathFinder.d.ts +3 -0
- package/dist/esm/wayfinding/graph/pathfinder/aStarPathFinder.js +1 -0
- package/dist/esm/wayfinding/graph/pathfinder/parseNodeId.d.ts +9 -0
- package/dist/esm/wayfinding/graph/pathfinder/parseNodeId.js +1 -0
- package/dist/esm/wayfinding/index.d.ts +18 -0
- package/dist/esm/wayfinding/index.js +1 -0
- package/dist/esm/wayfinding/rendering/computeTransitionPoints.d.ts +31 -0
- package/dist/esm/wayfinding/rendering/computeTransitionPoints.js +1 -0
- package/dist/esm/wayfinding/rendering/normalizeRouteDirection.d.ts +19 -0
- package/dist/esm/wayfinding/rendering/normalizeRouteDirection.js +1 -0
- package/dist/esm/wayfinding/rendering/routeGeometry.d.ts +16 -0
- package/dist/esm/wayfinding/rendering/routeGeometry.js +1 -0
- package/dist/esm/wayfinding/routing/buildMultiPointRoute.d.ts +11 -0
- package/dist/esm/wayfinding/routing/buildMultiPointRoute.js +1 -0
- package/dist/esm/wayfinding/routing/buildRoute.d.ts +9 -0
- package/dist/esm/wayfinding/routing/buildRoute.js +1 -0
- package/dist/esm/wayfinding/routing/findNearestGraphPoint.d.ts +21 -0
- package/dist/esm/wayfinding/routing/findNearestGraphPoint.js +1 -0
- package/dist/esm/wayfinding/routing/getGraphLines.d.ts +14 -0
- package/dist/esm/wayfinding/routing/getGraphLines.js +1 -0
- package/dist/esm/wayfinding/routing/getRouteLength.d.ts +3 -0
- package/dist/esm/wayfinding/routing/getRouteLength.js +1 -0
- package/dist/esm/wayfinding/routing/routeResult.d.ts +4 -0
- package/dist/esm/wayfinding/routing/routeResult.js +1 -0
- package/dist/esm/wayfinding/types.d.ts +76 -0
- package/dist/esm/wayfinding/types.js +1 -0
- package/package.json +4 -8
- package/dist/browser/Debug-k5RKtjZM.js +0 -31
- package/dist/browser/Demo-CgMWCXus.js +0 -38
- package/dist/browser/Free-D7jT727E.js +0 -42
- package/dist/browser/Gallery-xjcSyY62.js +0 -279
- package/dist/browser/GpsLoader-_4iMtlKj.js +0 -131
- package/dist/browser/KioskStore-P8qIruSD.js +0 -216
- package/dist/browser/Mapbox-C7QZjYtQ.js +0 -109
- package/dist/browser/boolean-editor-C56suuE-.js +0 -148
- package/dist/browser/debug-ui-xTxa_Css.js +0 -58
- package/dist/browser/fetch-retry.umd-D12eSIuK.js +0 -114
- package/dist/browser/index-04R_J8Na.js +0 -45
- package/dist/browser/index-1HPoYB-N.js +0 -12526
- package/dist/browser/index-D1Nh_Rku.js +0 -48
- package/dist/browser/index-DmIJrF5Z.js +0 -83
- package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
- package/dist/browser/sw.js +0 -2
- package/dist/esm/components/BoothRow.d.ts +0 -8
- package/dist/esm/components/BoothRow.js +0 -1
- package/dist/esm/components/ExhibitorRow.d.ts +0 -9
- package/dist/esm/components/ExhibitorRow.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/animation.d.ts +0 -3
- package/dist/esm/components/Map/drawing/config/engine-core/animation.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/canvases.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/fonts.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/index.js +0 -1
- package/dist/esm/components/Map/drawing/config/engine-core/renderer.d.ts +0 -4
- package/dist/esm/components/Map/drawing/config/engine-core/renderer.js +0 -1
- package/dist/esm/components/ScheduleRow.d.ts +0 -8
- package/dist/esm/components/ScheduleRow.js +0 -1
- package/dist/esm/expofp-debug.d.ts +0 -5
- package/dist/esm/expofp-debug.js +0 -1
- package/dist/esm/offline/sw.d.ts +0 -2
- package/dist/esm/offline/sw.js +0 -1
- package/dist/esm/store/LanguageStore.d.ts +0 -19
- package/dist/esm/store/LanguageStore.js +0 -1
- package/dist/esm/store/init/init-language.d.ts +0 -3
- package/dist/esm/store/init/init-language.js +0 -1
- package/dist/esm/utils/toRadians.d.ts +0 -3
- package/dist/esm/utils/toRadians.js +0 -1
- package/dist/esm/utils/wayfinding.js +0 -1
- package/dist/stats.html +0 -4950
- /package/dist/esm/{components/Map/drawing/config/engine-core/types.js → _misc_to_move/manifest.js} +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/defs.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/defs.js +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/fonts.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/settings.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/settings.js +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/types.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/update-def.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/update-def.js +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/utils/rotation.d.ts +0 -0
- /package/dist/esm/{components/Map/drawing/config → renderer}/engine-core/utils/rotation.js +0 -0
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
function __vite_inject_css__(css, id
|
|
2
|
-
import { a as ws, a6 as Bg, a8 as yi, s as Aa, a9 as lc, J as vd, aa as Ru, R as Bu, d as gd, ab as om, ac as Og, ad as Fg, ae as Qf } from "./floorplan.ready-
|
|
3
|
-
import {
|
|
1
|
+
function __vite_inject_css__(css, id){ if (typeof document==='undefined') return; var parent=(typeof window!=='undefined'&&window.__efpShadowDOMStyleParent)||document.head; var s=document.createElement('style'); s.setAttribute('data-chunk-style', id); s.appendChild(document.createTextNode(css)); parent.appendChild(s);}
|
|
2
|
+
import { a as ws, a6 as Bg, a8 as yi, s as Aa, a9 as lc, J as vd, aa as Ru, R as Bu, d as gd, ab as om, ac as Og, ad as Fg, ae as Qf } from "./floorplan.ready-BQetaqdP.js";
|
|
3
|
+
import { k as Ug } from "./index.js";
|
|
4
|
+
(function() {
|
|
5
|
+
try {
|
|
6
|
+
var Oe = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
7
|
+
Oe.SENTRY_RELEASE = { id: "3.0.1" };
|
|
8
|
+
var qe = new Oe.Error().stack;
|
|
9
|
+
qe && (Oe._sentryDebugIds = Oe._sentryDebugIds || {}, Oe._sentryDebugIds[qe] = "ec6ff3b1-bb98-46c1-931d-6cfd0edce31e", Oe._sentryDebugIdIdentifier = "sentry-dbid-ec6ff3b1-bb98-46c1-931d-6cfd0edce31e");
|
|
10
|
+
} catch {
|
|
11
|
+
}
|
|
12
|
+
})();
|
|
4
13
|
var Ou = { exports: {} }, Vg = Ou.exports, em;
|
|
5
14
|
function Ng() {
|
|
6
|
-
return em || (em = 1, (function(
|
|
15
|
+
return em || (em = 1, (function(Oe, qe) {
|
|
7
16
|
(function(De, bt) {
|
|
8
|
-
|
|
17
|
+
Oe.exports = bt();
|
|
9
18
|
})(Vg, (function() {
|
|
10
19
|
var De, bt, At;
|
|
11
20
|
function Et(a, fe) {
|
|
@@ -799,7 +808,7 @@ function Ng() {
|
|
|
799
808
|
}
|
|
800
809
|
}
|
|
801
810
|
var hc = Ra;
|
|
802
|
-
const Jn = { kind: "null" },
|
|
811
|
+
const Jn = { kind: "null" }, Ue = { kind: "number" }, ft = { kind: "string" }, ut = { kind: "boolean" }, Wi = { kind: "color" }, ur = { kind: "object" }, ht = { kind: "value" }, Xi = { kind: "collator" }, Oo = { kind: "formatted" }, En = { kind: "resolvedImage" };
|
|
803
812
|
function Ji(t, e) {
|
|
804
813
|
return { kind: "array", itemType: t, N: e };
|
|
805
814
|
}
|
|
@@ -810,7 +819,7 @@ function Ng() {
|
|
|
810
819
|
}
|
|
811
820
|
return t.kind;
|
|
812
821
|
}
|
|
813
|
-
const dc = [Jn,
|
|
822
|
+
const dc = [Jn, Ue, ft, ut, Wi, Oo, ur, Ji(ht), En];
|
|
814
823
|
function Lr(t, e) {
|
|
815
824
|
if (e.kind === "error") return null;
|
|
816
825
|
if (t.kind === "array") {
|
|
@@ -981,7 +990,7 @@ function Ng() {
|
|
|
981
990
|
if (t === null) return Jn;
|
|
982
991
|
if (typeof t == "string") return ft;
|
|
983
992
|
if (typeof t == "boolean") return ut;
|
|
984
|
-
if (typeof t == "number") return
|
|
993
|
+
if (typeof t == "number") return Ue;
|
|
985
994
|
if (t instanceof ii) return Wi;
|
|
986
995
|
if (t instanceof Oa) return Xi;
|
|
987
996
|
if (t instanceof Fi) return Oo;
|
|
@@ -1038,7 +1047,7 @@ function Ng() {
|
|
|
1038
1047
|
return this.message;
|
|
1039
1048
|
}
|
|
1040
1049
|
};
|
|
1041
|
-
const Va = { string: ft, number:
|
|
1050
|
+
const Va = { string: ft, number: Ue, boolean: ut, object: ur };
|
|
1042
1051
|
class Na {
|
|
1043
1052
|
constructor(e, i) {
|
|
1044
1053
|
this.type = e, this.args = i;
|
|
@@ -1111,7 +1120,7 @@ function Ng() {
|
|
|
1111
1120
|
if (c && typeof p == "object" && !Array.isArray(p)) {
|
|
1112
1121
|
c = !1;
|
|
1113
1122
|
let m = null;
|
|
1114
|
-
if (p["font-scale"] && (m = i.parse(p["font-scale"], 1,
|
|
1123
|
+
if (p["font-scale"] && (m = i.parse(p["font-scale"], 1, Ue), !m)) return null;
|
|
1115
1124
|
let _ = null;
|
|
1116
1125
|
if (p["text-font"] && (_ = i.parse(p["text-font"], 1, Ji(ft)), !_)) return null;
|
|
1117
1126
|
let x = null;
|
|
@@ -1173,7 +1182,7 @@ function Ng() {
|
|
|
1173
1182
|
return ["image", this.input.serialize()];
|
|
1174
1183
|
}
|
|
1175
1184
|
}
|
|
1176
|
-
const Uu = { "to-boolean": ut, "to-color": Wi, "to-number":
|
|
1185
|
+
const Uu = { "to-boolean": ut, "to-color": Wi, "to-number": Ue, "to-string": ft };
|
|
1177
1186
|
class ja {
|
|
1178
1187
|
constructor(e, i) {
|
|
1179
1188
|
this.type = e, this.args = i;
|
|
@@ -1648,7 +1657,7 @@ function Ng() {
|
|
|
1648
1657
|
static parse(e, i) {
|
|
1649
1658
|
if (e.length - 1 < 4) return i.error(`Expected at least 4 arguments, but found only ${e.length - 1}.`);
|
|
1650
1659
|
if ((e.length - 1) % 2 != 0) return i.error("Expected an even number of arguments.");
|
|
1651
|
-
const n = i.parse(e[1], 1,
|
|
1660
|
+
const n = i.parse(e[1], 1, Ue);
|
|
1652
1661
|
if (!n) return null;
|
|
1653
1662
|
const s = [];
|
|
1654
1663
|
let c = null;
|
|
@@ -1763,7 +1772,7 @@ function Ng() {
|
|
|
1763
1772
|
}
|
|
1764
1773
|
if (e.length - 1 < 4) return i.error(`Expected at least 4 arguments, but found only ${e.length - 1}.`);
|
|
1765
1774
|
if ((e.length - 1) % 2 != 0) return i.error("Expected an even number of arguments.");
|
|
1766
|
-
if (c = i.parse(c, 2,
|
|
1775
|
+
if (c = i.parse(c, 2, Ue), !c) return null;
|
|
1767
1776
|
const p = [];
|
|
1768
1777
|
let m = null;
|
|
1769
1778
|
n === "interpolate-hcl" || n === "interpolate-lab" ? m = Wi : i.expectedType && i.expectedType.kind !== "value" && (m = i.expectedType);
|
|
@@ -1888,7 +1897,7 @@ function Ng() {
|
|
|
1888
1897
|
}
|
|
1889
1898
|
static parse(e, i) {
|
|
1890
1899
|
if (e.length !== 3) return i.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
|
|
1891
|
-
const n = i.parse(e[1], 1,
|
|
1900
|
+
const n = i.parse(e[1], 1, Ue), s = i.parse(e[2], 2, Ji(i.expectedType || ht));
|
|
1892
1901
|
return n && s ? new sl(s.type.itemType, n, s) : null;
|
|
1893
1902
|
}
|
|
1894
1903
|
evaluate(e) {
|
|
@@ -1916,7 +1925,7 @@ function Ng() {
|
|
|
1916
1925
|
static parse(e, i) {
|
|
1917
1926
|
if (e.length !== 3) return i.error(`Expected 2 arguments, but found ${e.length - 1} instead.`);
|
|
1918
1927
|
const n = i.parse(e[1], 1, ht), s = i.parse(e[2], 2, ht);
|
|
1919
|
-
return n && s ? Fo(n.type, [ut, ft,
|
|
1928
|
+
return n && s ? Fo(n.type, [ut, ft, Ue, Jn, ht]) ? new al(n, s) : i.error(`Expected first argument to be of type boolean, string, number or null, but found ${$t(n.type)} instead`) : null;
|
|
1920
1929
|
}
|
|
1921
1930
|
evaluate(e) {
|
|
1922
1931
|
const i = this.needle.evaluate(e), n = this.haystack.evaluate(e);
|
|
@@ -1938,15 +1947,15 @@ function Ng() {
|
|
|
1938
1947
|
var js = al;
|
|
1939
1948
|
class Ko {
|
|
1940
1949
|
constructor(e, i, n) {
|
|
1941
|
-
this.type =
|
|
1950
|
+
this.type = Ue, this.needle = e, this.haystack = i, this.fromIndex = n;
|
|
1942
1951
|
}
|
|
1943
1952
|
static parse(e, i) {
|
|
1944
1953
|
if (e.length <= 2 || e.length >= 5) return i.error(`Expected 3 or 4 arguments, but found ${e.length - 1} instead.`);
|
|
1945
1954
|
const n = i.parse(e[1], 1, ht), s = i.parse(e[2], 2, ht);
|
|
1946
1955
|
if (!n || !s) return null;
|
|
1947
|
-
if (!Fo(n.type, [ut, ft,
|
|
1956
|
+
if (!Fo(n.type, [ut, ft, Ue, Jn, ht])) return i.error(`Expected first argument to be of type boolean, string, number or null, but found ${$t(n.type)} instead`);
|
|
1948
1957
|
if (e.length === 4) {
|
|
1949
|
-
const c = i.parse(e[3], 3,
|
|
1958
|
+
const c = i.parse(e[3], 3, Ue);
|
|
1950
1959
|
return c ? new Ko(n, s, c) : null;
|
|
1951
1960
|
}
|
|
1952
1961
|
return new Ko(n, s);
|
|
@@ -2078,11 +2087,11 @@ function Ng() {
|
|
|
2078
2087
|
}
|
|
2079
2088
|
static parse(e, i) {
|
|
2080
2089
|
if (e.length <= 2 || e.length >= 5) return i.error(`Expected 3 or 4 arguments, but found ${e.length - 1} instead.`);
|
|
2081
|
-
const n = i.parse(e[1], 1, ht), s = i.parse(e[2], 2,
|
|
2090
|
+
const n = i.parse(e[1], 1, ht), s = i.parse(e[2], 2, Ue);
|
|
2082
2091
|
if (!n || !s) return null;
|
|
2083
2092
|
if (!Fo(n.type, [Ji(ht), ft, ht])) return i.error(`Expected first argument to be of type array or string, but found ${$t(n.type)} instead`);
|
|
2084
2093
|
if (e.length === 4) {
|
|
2085
|
-
const c = i.parse(e[3], 3,
|
|
2094
|
+
const c = i.parse(e[3], 3, Ue);
|
|
2086
2095
|
return c ? new Yo(n.type, n, s, c) : null;
|
|
2087
2096
|
}
|
|
2088
2097
|
return new Yo(n.type, n, s);
|
|
@@ -2196,7 +2205,7 @@ function Ng() {
|
|
|
2196
2205
|
}
|
|
2197
2206
|
static parse(e, i) {
|
|
2198
2207
|
if (e.length !== 3) return i.error("Expected two arguments.");
|
|
2199
|
-
const n = i.parse(e[1], 1,
|
|
2208
|
+
const n = i.parse(e[1], 1, Ue);
|
|
2200
2209
|
if (!n) return null;
|
|
2201
2210
|
const s = e[2];
|
|
2202
2211
|
if (typeof s != "object" || Array.isArray(s)) return i.error("NumberFormat options argument must be an object.");
|
|
@@ -2207,9 +2216,9 @@ function Ng() {
|
|
|
2207
2216
|
let p = null;
|
|
2208
2217
|
if (s.unit && (p = i.parse(s.unit, 1, ft), !p)) return null;
|
|
2209
2218
|
let m = null;
|
|
2210
|
-
if (s["min-fraction-digits"] && (m = i.parse(s["min-fraction-digits"], 1,
|
|
2219
|
+
if (s["min-fraction-digits"] && (m = i.parse(s["min-fraction-digits"], 1, Ue), !m)) return null;
|
|
2211
2220
|
let _ = null;
|
|
2212
|
-
return s["max-fraction-digits"] && (_ = i.parse(s["max-fraction-digits"], 1,
|
|
2221
|
+
return s["max-fraction-digits"] && (_ = i.parse(s["max-fraction-digits"], 1, Ue), !_) ? null : new $s(n, c, h, p, m, _);
|
|
2213
2222
|
}
|
|
2214
2223
|
evaluate(e) {
|
|
2215
2224
|
return new Intl.NumberFormat(this.locale ? this.locale.evaluate(e) : [], { style: (this.currency ? "currency" : this.unit && "unit") || "decimal", currency: this.currency ? this.currency.evaluate(e) : void 0, unit: this.unit ? this.unit.evaluate(e) : void 0, minimumFractionDigits: this.minFractionDigits ? this.minFractionDigits.evaluate(e) : void 0, maximumFractionDigits: this.maxFractionDigits ? this.maxFractionDigits.evaluate(e) : void 0 }).format(this.number.evaluate(e));
|
|
@@ -2227,7 +2236,7 @@ function Ng() {
|
|
|
2227
2236
|
}
|
|
2228
2237
|
class ao {
|
|
2229
2238
|
constructor(e) {
|
|
2230
|
-
this.type =
|
|
2239
|
+
this.type = Ue, this.input = e;
|
|
2231
2240
|
}
|
|
2232
2241
|
static parse(e, i) {
|
|
2233
2242
|
if (e.length !== 2) return i.error(`Expected 1 argument, but found ${e.length - 1} instead.`);
|
|
@@ -2271,18 +2280,18 @@ function Ng() {
|
|
|
2271
2280
|
}
|
|
2272
2281
|
Br.register(Cc, { error: [{ kind: "error" }, [ft], (t, [e]) => {
|
|
2273
2282
|
throw new Ai(e.evaluate(t));
|
|
2274
|
-
}], typeof: [ft, [ht], (t, [e]) => $t(Qt(e.evaluate(t)))], "to-rgba": [Ji(
|
|
2283
|
+
}], typeof: [ft, [ht], (t, [e]) => $t(Qt(e.evaluate(t)))], "to-rgba": [Ji(Ue, 4), [Wi], (t, [e]) => e.evaluate(t).toArray()], rgb: [Wi, [Ue, Ue, Ue], zc], rgba: [Wi, [Ue, Ue, Ue, Ue], zc], has: { type: ut, overloads: [[[ft], (t, [e]) => Ur(e.evaluate(t), t.properties())], [[ft, ur], (t, [e, i]) => Ur(e.evaluate(t), i.evaluate(t))]] }, get: { type: ht, overloads: [[[ft], (t, [e]) => Zs(e.evaluate(t), t.properties())], [[ft, ur], (t, [e, i]) => Zs(e.evaluate(t), i.evaluate(t))]] }, "feature-state": [ht, [ft], (t, [e]) => Zs(e.evaluate(t), t.featureState || {})], properties: [ur, [], (t) => t.properties()], "geometry-type": [ft, [], (t) => t.geometryType()], id: [ht, [], (t) => t.id()], zoom: [Ue, [], (t) => t.globals.zoom], pitch: [Ue, [], (t) => t.globals.pitch || 0], "distance-from-center": [Ue, [], (t) => t.distanceFromCenter()], "heatmap-density": [Ue, [], (t) => t.globals.heatmapDensity || 0], "line-progress": [Ue, [], (t) => t.globals.lineProgress || 0], "sky-radial-progress": [Ue, [], (t) => t.globals.skyRadialProgress || 0], accumulated: [ht, [], (t) => t.globals.accumulated === void 0 ? null : t.globals.accumulated], "+": [Ue, er(Ue), (t, e) => {
|
|
2275
2284
|
let i = 0;
|
|
2276
2285
|
for (const n of e) i += n.evaluate(t);
|
|
2277
2286
|
return i;
|
|
2278
|
-
}], "*": [
|
|
2287
|
+
}], "*": [Ue, er(Ue), (t, e) => {
|
|
2279
2288
|
let i = 1;
|
|
2280
2289
|
for (const n of e) i *= n.evaluate(t);
|
|
2281
2290
|
return i;
|
|
2282
|
-
}], "-": { type:
|
|
2291
|
+
}], "-": { type: Ue, overloads: [[[Ue, Ue], (t, [e, i]) => e.evaluate(t) - i.evaluate(t)], [[Ue], (t, [e]) => -e.evaluate(t)]] }, "/": [Ue, [Ue, Ue], (t, [e, i]) => e.evaluate(t) / i.evaluate(t)], "%": [Ue, [Ue, Ue], (t, [e, i]) => e.evaluate(t) % i.evaluate(t)], ln2: [Ue, [], () => Math.LN2], pi: [Ue, [], () => Math.PI], e: [Ue, [], () => Math.E], "^": [Ue, [Ue, Ue], (t, [e, i]) => Math.pow(e.evaluate(t), i.evaluate(t))], sqrt: [Ue, [Ue], (t, [e]) => Math.sqrt(e.evaluate(t))], log10: [Ue, [Ue], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN10], ln: [Ue, [Ue], (t, [e]) => Math.log(e.evaluate(t))], log2: [Ue, [Ue], (t, [e]) => Math.log(e.evaluate(t)) / Math.LN2], sin: [Ue, [Ue], (t, [e]) => Math.sin(e.evaluate(t))], cos: [Ue, [Ue], (t, [e]) => Math.cos(e.evaluate(t))], tan: [Ue, [Ue], (t, [e]) => Math.tan(e.evaluate(t))], asin: [Ue, [Ue], (t, [e]) => Math.asin(e.evaluate(t))], acos: [Ue, [Ue], (t, [e]) => Math.acos(e.evaluate(t))], atan: [Ue, [Ue], (t, [e]) => Math.atan(e.evaluate(t))], min: [Ue, er(Ue), (t, e) => Math.min(...e.map(((i) => i.evaluate(t))))], max: [Ue, er(Ue), (t, e) => Math.max(...e.map(((i) => i.evaluate(t))))], abs: [Ue, [Ue], (t, [e]) => Math.abs(e.evaluate(t))], round: [Ue, [Ue], (t, [e]) => {
|
|
2283
2292
|
const i = e.evaluate(t);
|
|
2284
2293
|
return i < 0 ? -Math.round(-i) : Math.round(i);
|
|
2285
|
-
}], floor: [
|
|
2294
|
+
}], floor: [Ue, [Ue], (t, [e]) => Math.floor(e.evaluate(t))], ceil: [Ue, [Ue], (t, [e]) => Math.ceil(e.evaluate(t))], "filter-==": [ut, [ft, ht], (t, [e, i]) => t.properties()[e.value] === i.value], "filter-id-==": [ut, [ht], (t, [e]) => t.id() === e.value], "filter-type-==": [ut, [ft], (t, [e]) => t.geometryType() === e.value], "filter-<": [ut, [ft, ht], (t, [e, i]) => {
|
|
2286
2295
|
const n = t.properties()[e.value], s = i.value;
|
|
2287
2296
|
return typeof n == typeof s && n < s;
|
|
2288
2297
|
}], "filter-id-<": [ut, [ht], (t, [e]) => {
|
|
@@ -2445,7 +2454,7 @@ function Ng() {
|
|
|
2445
2454
|
}
|
|
2446
2455
|
function ho(t, e) {
|
|
2447
2456
|
const i = new Ha(Jo, [], e ? (function(s) {
|
|
2448
|
-
const c = { color: Wi, string: ft, number:
|
|
2457
|
+
const c = { color: Wi, string: ft, number: Ue, enum: ft, boolean: ut, formatted: Oo, resolvedImage: En };
|
|
2449
2458
|
return s.type === "array" ? Ji(c[s.value] || ht, s.length) : c[s.type];
|
|
2450
2459
|
})(e) : void 0), n = i.parse(t, void 0, void 0, void 0, e && e.type === "string" ? { typeAnnotation: "coerce" } : void 0);
|
|
2451
2460
|
return n ? Pc(new Ks(n, e)) : Cn(i.errors);
|
|
@@ -2506,7 +2515,7 @@ function Ng() {
|
|
|
2506
2515
|
n instanceof yr ? e = n : !e && n ? e = new yr("", '"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.') : e && n && e !== n && (e = new yr("", 'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'));
|
|
2507
2516
|
})), e;
|
|
2508
2517
|
}
|
|
2509
|
-
class
|
|
2518
|
+
class Ve {
|
|
2510
2519
|
constructor(e, i, n, s) {
|
|
2511
2520
|
this.message = (e ? `${e}: ` : "") + n, s && (this.identifier = s), i != null && i.__line__ && (this.line = i.__line__);
|
|
2512
2521
|
}
|
|
@@ -2515,20 +2524,20 @@ function Ng() {
|
|
|
2515
2524
|
const e = t.key, i = t.value, n = t.valueSpec || {}, s = t.objectElementValidators || {}, c = t.style, h = t.styleSpec;
|
|
2516
2525
|
let p = [];
|
|
2517
2526
|
const m = xt(i);
|
|
2518
|
-
if (m !== "object") return [new
|
|
2527
|
+
if (m !== "object") return [new Ve(e, i, `object expected, ${m} found`)];
|
|
2519
2528
|
for (const _ in i) {
|
|
2520
2529
|
const x = _.split(".")[0];
|
|
2521
2530
|
let b;
|
|
2522
|
-
s[x] ? b = s[x] : n[x] ? b = Pi : s["*"] ? b = s["*"] : n["*"] && (b = Pi), b ? p = p.concat(b({ key: (e && `${e}.`) + _, value: i[_], valueSpec: n[x] || n["*"], style: c, styleSpec: h, object: i, objectKey: _ }, i)) : p.push(new
|
|
2531
|
+
s[x] ? b = s[x] : n[x] ? b = Pi : s["*"] ? b = s["*"] : n["*"] && (b = Pi), b ? p = p.concat(b({ key: (e && `${e}.`) + _, value: i[_], valueSpec: n[x] || n["*"], style: c, styleSpec: h, object: i, objectKey: _ }, i)) : p.push(new Ve(e, i[_], `unknown property "${_}"`));
|
|
2523
2532
|
}
|
|
2524
|
-
for (const _ in n) s[_] || n[_].required && n[_].default === void 0 && i[_] === void 0 && p.push(new
|
|
2533
|
+
for (const _ in n) s[_] || n[_].required && n[_].default === void 0 && i[_] === void 0 && p.push(new Ve(e, i, `missing required property "${_}"`));
|
|
2525
2534
|
return p;
|
|
2526
2535
|
}
|
|
2527
2536
|
function Rc(t) {
|
|
2528
2537
|
const e = t.value, i = t.valueSpec, n = t.style, s = t.styleSpec, c = t.key, h = t.arrayElementValidator || Pi;
|
|
2529
|
-
if (xt(e) !== "array") return [new
|
|
2530
|
-
if (i.length && e.length !== i.length) return [new
|
|
2531
|
-
if (i["min-length"] && e.length < i["min-length"]) return [new
|
|
2538
|
+
if (xt(e) !== "array") return [new Ve(c, e, `array expected, ${xt(e)} found`)];
|
|
2539
|
+
if (i.length && e.length !== i.length) return [new Ve(c, e, `array length ${i.length} expected, length ${e.length} found`)];
|
|
2540
|
+
if (i["min-length"] && e.length < i["min-length"]) return [new Ve(c, e, `array length at least ${i["min-length"]} expected, length ${e.length} found`)];
|
|
2532
2541
|
let p = { type: i.value, values: i.values, minimum: i.minimum, maximum: i.maximum, function: void 0 };
|
|
2533
2542
|
s.$version < 7 && (p.function = i.function), xt(i.value) === "object" && (p = i.value);
|
|
2534
2543
|
let m = [];
|
|
@@ -2538,14 +2547,14 @@ function Ng() {
|
|
|
2538
2547
|
function is(t) {
|
|
2539
2548
|
const e = t.key, i = t.value, n = t.valueSpec;
|
|
2540
2549
|
let s = xt(i);
|
|
2541
|
-
if (s === "number" && i != i && (s = "NaN"), s !== "number") return [new
|
|
2550
|
+
if (s === "number" && i != i && (s = "NaN"), s !== "number") return [new Ve(e, i, `number expected, ${s} found`)];
|
|
2542
2551
|
if ("minimum" in n) {
|
|
2543
2552
|
let c = n.minimum;
|
|
2544
|
-
if (xt(n.minimum) === "array" && (c = n.minimum[t.arrayIndex]), i < c) return [new
|
|
2553
|
+
if (xt(n.minimum) === "array" && (c = n.minimum[t.arrayIndex]), i < c) return [new Ve(e, i, `${i} is less than the minimum value ${c}`)];
|
|
2545
2554
|
}
|
|
2546
2555
|
if ("maximum" in n) {
|
|
2547
2556
|
let c = n.maximum;
|
|
2548
|
-
if (xt(n.maximum) === "array" && (c = n.maximum[t.arrayIndex]), i > c) return [new
|
|
2557
|
+
if (xt(n.maximum) === "array" && (c = n.maximum[t.arrayIndex]), i > c) return [new Ve(e, i, `${i} is greater than the maximum value ${c}`)];
|
|
2549
2558
|
}
|
|
2550
2559
|
return [];
|
|
2551
2560
|
}
|
|
@@ -2553,53 +2562,53 @@ function Ng() {
|
|
|
2553
2562
|
const e = t.valueSpec, i = ai(t.value.type);
|
|
2554
2563
|
let n, s, c, h = {};
|
|
2555
2564
|
const p = i !== "categorical" && t.value.property === void 0, m = !p, _ = xt(t.value.stops) === "array" && xt(t.value.stops[0]) === "array" && xt(t.value.stops[0][0]) === "object", x = hr({ key: t.key, value: t.value, valueSpec: t.styleSpec.function, style: t.style, styleSpec: t.styleSpec, objectElementValidators: { stops: function(S) {
|
|
2556
|
-
if (i === "identity") return [new
|
|
2565
|
+
if (i === "identity") return [new Ve(S.key, S.value, 'identity function may not have a "stops" property')];
|
|
2557
2566
|
let M = [];
|
|
2558
2567
|
const C = S.value;
|
|
2559
|
-
return M = M.concat(Rc({ key: S.key, value: C, valueSpec: S.valueSpec, style: S.style, styleSpec: S.styleSpec, arrayElementValidator: b })), xt(C) === "array" && C.length === 0 && M.push(new
|
|
2568
|
+
return M = M.concat(Rc({ key: S.key, value: C, valueSpec: S.valueSpec, style: S.style, styleSpec: S.styleSpec, arrayElementValidator: b })), xt(C) === "array" && C.length === 0 && M.push(new Ve(S.key, C, "array must have at least one stop")), M;
|
|
2560
2569
|
}, default: function(S) {
|
|
2561
2570
|
return Pi({ key: S.key, value: S.value, valueSpec: e, style: S.style, styleSpec: S.styleSpec });
|
|
2562
2571
|
} } });
|
|
2563
|
-
return i === "identity" && p && x.push(new
|
|
2572
|
+
return i === "identity" && p && x.push(new Ve(t.key, t.value, 'missing required property "property"')), i === "identity" || t.value.stops || x.push(new Ve(t.key, t.value, 'missing required property "stops"')), i === "exponential" && t.valueSpec.expression && !Ws(t.valueSpec) && x.push(new Ve(t.key, t.value, "exponential functions not supported")), t.styleSpec.$version >= 8 && (m && !lo(t.valueSpec) ? x.push(new Ve(t.key, t.value, "property functions not supported")) : p && !qs(t.valueSpec) && x.push(new Ve(t.key, t.value, "zoom functions not supported"))), i !== "categorical" && !_ || t.value.property !== void 0 || x.push(new Ve(t.key, t.value, '"property" property is required')), x;
|
|
2564
2573
|
function b(S) {
|
|
2565
2574
|
let M = [];
|
|
2566
2575
|
const C = S.value, k = S.key;
|
|
2567
|
-
if (xt(C) !== "array") return [new
|
|
2568
|
-
if (C.length !== 2) return [new
|
|
2576
|
+
if (xt(C) !== "array") return [new Ve(k, C, `array expected, ${xt(C)} found`)];
|
|
2577
|
+
if (C.length !== 2) return [new Ve(k, C, `array length 2 expected, length ${C.length} found`)];
|
|
2569
2578
|
if (_) {
|
|
2570
|
-
if (xt(C[0]) !== "object") return [new
|
|
2571
|
-
if (C[0].zoom === void 0) return [new
|
|
2572
|
-
if (C[0].value === void 0) return [new
|
|
2579
|
+
if (xt(C[0]) !== "object") return [new Ve(k, C, `object expected, ${xt(C[0])} found`)];
|
|
2580
|
+
if (C[0].zoom === void 0) return [new Ve(k, C, "object stop key must have zoom")];
|
|
2581
|
+
if (C[0].value === void 0) return [new Ve(k, C, "object stop key must have value")];
|
|
2573
2582
|
const U = ai(C[0].zoom);
|
|
2574
|
-
if (typeof U != "number") return [new
|
|
2575
|
-
if (c && c > U) return [new
|
|
2583
|
+
if (typeof U != "number") return [new Ve(k, C[0].zoom, "stop zoom values must be numbers")];
|
|
2584
|
+
if (c && c > U) return [new Ve(k, C[0].zoom, "stop zoom values must appear in ascending order")];
|
|
2576
2585
|
U !== c && (c = U, s = void 0, h = {}), M = M.concat(hr({ key: `${k}[0]`, value: C[0], valueSpec: { zoom: {} }, style: S.style, styleSpec: S.styleSpec, objectElementValidators: { zoom: is, value: w } }));
|
|
2577
2586
|
} else M = M.concat(w({ key: `${k}[0]`, value: C[0], style: S.style, styleSpec: S.styleSpec }, C));
|
|
2578
|
-
return uo(wi(C[1])) ? M.concat([new
|
|
2587
|
+
return uo(wi(C[1])) ? M.concat([new Ve(`${k}[1]`, C[1], "expressions are not allowed in function stops.")]) : M.concat(Pi({ key: `${k}[1]`, value: C[1], valueSpec: e, style: S.style, styleSpec: S.styleSpec }));
|
|
2579
2588
|
}
|
|
2580
2589
|
function w(S, M) {
|
|
2581
2590
|
const C = xt(S.value), k = ai(S.value), U = S.value !== null ? S.value : M;
|
|
2582
2591
|
if (n) {
|
|
2583
|
-
if (C !== n) return [new
|
|
2592
|
+
if (C !== n) return [new Ve(S.key, U, `${C} stop domain type must match previous stop domain type ${n}`)];
|
|
2584
2593
|
} else n = C;
|
|
2585
|
-
if (C !== "number" && C !== "string" && C !== "boolean" && typeof k != "number" && typeof k != "string" && typeof k != "boolean") return [new
|
|
2594
|
+
if (C !== "number" && C !== "string" && C !== "boolean" && typeof k != "number" && typeof k != "string" && typeof k != "boolean") return [new Ve(S.key, U, "stop domain value must be a number, string, or boolean")];
|
|
2586
2595
|
if (C !== "number" && i !== "categorical") {
|
|
2587
2596
|
let q = `number expected, ${C} found`;
|
|
2588
|
-
return lo(e) && i === void 0 && (q += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new
|
|
2597
|
+
return lo(e) && i === void 0 && (q += '\nIf you intended to use a categorical function, specify `"type": "categorical"`.'), [new Ve(S.key, U, q)];
|
|
2589
2598
|
}
|
|
2590
|
-
return i !== "categorical" || C !== "number" || typeof k == "number" && isFinite(k) && Math.floor(k) === k ? i !== "categorical" && C === "number" && typeof k == "number" && typeof s == "number" && s !== void 0 && k < s ? [new
|
|
2599
|
+
return i !== "categorical" || C !== "number" || typeof k == "number" && isFinite(k) && Math.floor(k) === k ? i !== "categorical" && C === "number" && typeof k == "number" && typeof s == "number" && s !== void 0 && k < s ? [new Ve(S.key, U, "stop domain values must appear in ascending order")] : (s = k, i === "categorical" && k in h ? [new Ve(S.key, U, "stop domain values must be unique")] : (h[k] = !0, [])) : [new Ve(S.key, U, `integer expected, found ${String(k)}`)];
|
|
2591
2600
|
}
|
|
2592
2601
|
}
|
|
2593
2602
|
function Ti(t) {
|
|
2594
2603
|
const e = (t.expressionContext === "property" ? ts : ho)(wi(t.value), t.valueSpec);
|
|
2595
|
-
if (e.result === "error") return e.value.map(((n) => new
|
|
2604
|
+
if (e.result === "error") return e.value.map(((n) => new Ve(`${t.key}${n.key}`, t.value, n.message)));
|
|
2596
2605
|
const i = e.value.expression || e.value._styleExpression.expression;
|
|
2597
|
-
if (t.expressionContext === "property" && t.propertyKey === "text-font" && !i.outputDefined()) return [new
|
|
2598
|
-
if (t.expressionContext === "property" && t.propertyType === "layout" && !Fr(i)) return [new
|
|
2606
|
+
if (t.expressionContext === "property" && t.propertyKey === "text-font" && !i.outputDefined()) return [new Ve(t.key, t.value, `Invalid data expression for "${t.propertyKey}". Output values must be contained as literals within the expression.`)];
|
|
2607
|
+
if (t.expressionContext === "property" && t.propertyType === "layout" && !Fr(i)) return [new Ve(t.key, t.value, '"feature-state" data expressions are not supported with layout properties.')];
|
|
2599
2608
|
if (t.expressionContext === "filter") return ns(i, t);
|
|
2600
2609
|
if (t.expressionContext && t.expressionContext.indexOf("cluster") === 0) {
|
|
2601
|
-
if (!An(i, ["zoom", "feature-state"])) return [new
|
|
2602
|
-
if (t.expressionContext === "cluster-initial" && !no(i)) return [new
|
|
2610
|
+
if (!An(i, ["zoom", "feature-state"])) return [new Ve(t.key, t.value, '"zoom" and "feature-state" expressions are not supported with cluster properties.')];
|
|
2611
|
+
if (t.expressionContext === "cluster-initial" && !no(i)) return [new Ve(t.key, t.value, "Feature data expressions are not supported with initial expression part of cluster properties.")];
|
|
2603
2612
|
}
|
|
2604
2613
|
return [];
|
|
2605
2614
|
}
|
|
@@ -2608,13 +2617,13 @@ function Ng() {
|
|
|
2608
2617
|
if (e.valueSpec && e.valueSpec.expression) for (const s of e.valueSpec.expression.parameters) i.delete(s);
|
|
2609
2618
|
if (i.size === 0) return [];
|
|
2610
2619
|
const n = [];
|
|
2611
|
-
return t instanceof Br && i.has(t.name) ? [new
|
|
2620
|
+
return t instanceof Br && i.has(t.name) ? [new Ve(e.key, e.value, `["${t.name}"] expression is not supported in a filter for a ${e.object.type} layer with id: ${e.object.id}`)] : (t.eachChild(((s) => {
|
|
2612
2621
|
n.push(...ns(s, e));
|
|
2613
2622
|
})), n);
|
|
2614
2623
|
}
|
|
2615
2624
|
function Qs(t) {
|
|
2616
2625
|
const e = t.key, i = t.value, n = t.valueSpec, s = [];
|
|
2617
|
-
return Array.isArray(n.values) ? n.values.indexOf(ai(i)) === -1 && s.push(new
|
|
2626
|
+
return Array.isArray(n.values) ? n.values.indexOf(ai(i)) === -1 && s.push(new Ve(e, i, `expected one of [${n.values.join(", ")}], ${JSON.stringify(i)} found`)) : Object.keys(n.values).indexOf(ai(i)) === -1 && s.push(new Ve(e, i, `expected one of [${Object.keys(n.values).join(", ")}], ${JSON.stringify(i)} found`)), s;
|
|
2618
2627
|
}
|
|
2619
2628
|
function hl(t) {
|
|
2620
2629
|
if (t === !0 || t === !1) return !0;
|
|
@@ -2764,23 +2773,23 @@ ${JSON.stringify(i, null, 2)}
|
|
|
2764
2773
|
}
|
|
2765
2774
|
function ss(t) {
|
|
2766
2775
|
const e = t.value, i = t.key;
|
|
2767
|
-
if (xt(e) !== "array") return [new
|
|
2776
|
+
if (xt(e) !== "array") return [new Ve(i, e, `array expected, ${xt(e)} found`)];
|
|
2768
2777
|
const n = t.styleSpec;
|
|
2769
2778
|
let s, c = [];
|
|
2770
|
-
if (e.length < 1) return [new
|
|
2779
|
+
if (e.length < 1) return [new Ve(i, e, "filter array must have at least 1 element")];
|
|
2771
2780
|
switch (c = c.concat(Qs({ key: `${i}[0]`, value: e[0], valueSpec: n.filter_operator, style: t.style, styleSpec: t.styleSpec })), ai(e[0])) {
|
|
2772
2781
|
case "<":
|
|
2773
2782
|
case "<=":
|
|
2774
2783
|
case ">":
|
|
2775
2784
|
case ">=":
|
|
2776
|
-
e.length >= 2 && ai(e[1]) === "$type" && c.push(new
|
|
2785
|
+
e.length >= 2 && ai(e[1]) === "$type" && c.push(new Ve(i, e, `"$type" cannot be use with operator "${e[0]}"`));
|
|
2777
2786
|
case "==":
|
|
2778
2787
|
case "!=":
|
|
2779
|
-
e.length !== 3 && c.push(new
|
|
2788
|
+
e.length !== 3 && c.push(new Ve(i, e, `filter array for operator "${e[0]}" must have 3 elements`));
|
|
2780
2789
|
case "in":
|
|
2781
2790
|
case "!in":
|
|
2782
|
-
e.length >= 2 && (s = xt(e[1]), s !== "string" && c.push(new
|
|
2783
|
-
for (let h = 2; h < e.length; h++) s = xt(e[h]), ai(e[1]) === "$type" ? c = c.concat(Qs({ key: `${i}[${h}]`, value: e[h], valueSpec: n.geometry_type, style: t.style, styleSpec: t.styleSpec })) : s !== "string" && s !== "number" && s !== "boolean" && c.push(new
|
|
2791
|
+
e.length >= 2 && (s = xt(e[1]), s !== "string" && c.push(new Ve(`${i}[1]`, e[1], `string expected, ${s} found`)));
|
|
2792
|
+
for (let h = 2; h < e.length; h++) s = xt(e[h]), ai(e[1]) === "$type" ? c = c.concat(Qs({ key: `${i}[${h}]`, value: e[h], valueSpec: n.geometry_type, style: t.style, styleSpec: t.styleSpec })) : s !== "string" && s !== "number" && s !== "boolean" && c.push(new Ve(`${i}[${h}]`, e[h], `string, number, or boolean expected, ${s} found`));
|
|
2784
2793
|
break;
|
|
2785
2794
|
case "any":
|
|
2786
2795
|
case "all":
|
|
@@ -2789,10 +2798,10 @@ ${JSON.stringify(i, null, 2)}
|
|
|
2789
2798
|
break;
|
|
2790
2799
|
case "has":
|
|
2791
2800
|
case "!has":
|
|
2792
|
-
s = xt(e[1]), e.length !== 2 ? c.push(new
|
|
2801
|
+
s = xt(e[1]), e.length !== 2 ? c.push(new Ve(i, e, `filter array for "${e[0]}" operator must have 2 elements`)) : s !== "string" && c.push(new Ve(`${i}[1]`, e[1], `string expected, ${s} found`));
|
|
2793
2802
|
break;
|
|
2794
2803
|
case "within":
|
|
2795
|
-
s = xt(e[1]), e.length !== 2 ? c.push(new
|
|
2804
|
+
s = xt(e[1]), e.length !== 2 ? c.push(new Ve(i, e, `filter array for "${e[0]}" operator must have 2 elements`)) : s !== "object" && c.push(new Ve(`${i}[1]`, e[1], `object expected, ${s} found`));
|
|
2796
2805
|
}
|
|
2797
2806
|
return c;
|
|
2798
2807
|
}
|
|
@@ -2802,15 +2811,15 @@ ${JSON.stringify(i, null, 2)}
|
|
|
2802
2811
|
const m = h.match(/^(.*)-transition$/);
|
|
2803
2812
|
if (e === "paint" && m && p[m[1]] && p[m[1]].transition) return Pi({ key: i, value: c, valueSpec: s.transition, style: n, styleSpec: s });
|
|
2804
2813
|
const _ = t.valueSpec || p[h];
|
|
2805
|
-
if (!_) return [new
|
|
2814
|
+
if (!_) return [new Ve(i, c, `unknown property "${h}"`)];
|
|
2806
2815
|
let x;
|
|
2807
2816
|
if (xt(c) === "string" && lo(_) && !_.tokens && (x = /^{([^}]+)}$/.exec(c))) {
|
|
2808
2817
|
const w = `\`{ "type": "identity", "property": ${x ? JSON.stringify(x[1]) : '"_"'} }\``;
|
|
2809
|
-
return [new
|
|
2818
|
+
return [new Ve(i, c, `"${h}" does not support interpolation syntax
|
|
2810
2819
|
Use an identity property function instead: ${w}.`)];
|
|
2811
2820
|
}
|
|
2812
2821
|
const b = [];
|
|
2813
|
-
return t.layerType === "symbol" && (h === "text-field" && n && !n.glyphs && b.push(new
|
|
2822
|
+
return t.layerType === "symbol" && (h === "text-field" && n && !n.glyphs && b.push(new Ve(i, c, 'use of "text-field" requires a style "glyphs" property')), h === "text-font" && Qo(wi(c)) && ai(c.type) === "identity" && b.push(new Ve(i, c, '"text-font" does not support identity functions'))), b.concat(Pi({ key: t.key, value: c, valueSpec: _, style: n, styleSpec: s, expressionContext: "property", propertyType: e, propertyKey: h }));
|
|
2814
2823
|
}
|
|
2815
2824
|
function Fc(t) {
|
|
2816
2825
|
return _l(t, "paint");
|
|
@@ -2821,32 +2830,32 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2821
2830
|
function Uc(t) {
|
|
2822
2831
|
let e = [];
|
|
2823
2832
|
const i = t.value, n = t.key, s = t.style, c = t.styleSpec;
|
|
2824
|
-
i.type || i.ref || e.push(new
|
|
2833
|
+
i.type || i.ref || e.push(new Ve(n, i, 'either "type" or "ref" is required'));
|
|
2825
2834
|
let h = ai(i.type);
|
|
2826
2835
|
const p = ai(i.ref);
|
|
2827
2836
|
if (i.id) {
|
|
2828
2837
|
const m = ai(i.id);
|
|
2829
2838
|
for (let _ = 0; _ < t.arrayIndex; _++) {
|
|
2830
2839
|
const x = s.layers[_];
|
|
2831
|
-
ai(x.id) === m && e.push(new
|
|
2840
|
+
ai(x.id) === m && e.push(new Ve(n, i.id, `duplicate layer id "${i.id}", previously used at line ${x.id.__line__}`));
|
|
2832
2841
|
}
|
|
2833
2842
|
}
|
|
2834
2843
|
if ("ref" in i) {
|
|
2835
2844
|
let m;
|
|
2836
2845
|
["type", "source", "source-layer", "filter", "layout"].forEach(((_) => {
|
|
2837
|
-
_ in i && e.push(new
|
|
2846
|
+
_ in i && e.push(new Ve(n, i[_], `"${_}" is prohibited for ref layers`));
|
|
2838
2847
|
})), s.layers.forEach(((_) => {
|
|
2839
2848
|
ai(_.id) === p && (m = _);
|
|
2840
|
-
})), m ? m.ref ? e.push(new
|
|
2849
|
+
})), m ? m.ref ? e.push(new Ve(n, i.ref, "ref cannot reference another ref layer")) : h = ai(m.type) : typeof p == "string" && e.push(new Ve(n, i.ref, `ref layer "${p}" not found`));
|
|
2841
2850
|
} else if (h !== "background" && h !== "sky") if (i.source) {
|
|
2842
2851
|
const m = s.sources && s.sources[i.source], _ = m && ai(m.type);
|
|
2843
|
-
m ? _ === "vector" && h === "raster" ? e.push(new
|
|
2844
|
-
} else e.push(new
|
|
2852
|
+
m ? _ === "vector" && h === "raster" ? e.push(new Ve(n, i.source, `layer "${i.id}" requires a raster source`)) : _ === "raster" && h !== "raster" ? e.push(new Ve(n, i.source, `layer "${i.id}" requires a vector source`)) : _ !== "vector" || i["source-layer"] ? _ === "raster-dem" && h !== "hillshade" ? e.push(new Ve(n, i.source, "raster-dem source can only be used with layer type 'hillshade'.")) : h !== "line" || !i.paint || !i.paint["line-gradient"] && !i.paint["line-trim-offset"] || _ === "geojson" && m.lineMetrics || e.push(new Ve(n, i, `layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)) : e.push(new Ve(n, i, `layer "${i.id}" must specify a "source-layer"`)) : e.push(new Ve(n, i.source, `source "${i.source}" not found`));
|
|
2853
|
+
} else e.push(new Ve(n, i, 'missing required property "source"'));
|
|
2845
2854
|
return e = e.concat(hr({ key: n, value: i, valueSpec: c.layer, style: t.style, styleSpec: t.styleSpec, objectElementValidators: { "*": () => [], type: () => Pi({ key: `${n}.type`, value: i.type, valueSpec: c.layer.type, style: t.style, styleSpec: t.styleSpec, object: i, objectKey: "type" }), filter: (m) => os(kr({ layerType: h }, m)), layout: (m) => hr({ layer: i, key: m.key, value: m.value, valueSpec: {}, style: m.style, styleSpec: m.styleSpec, objectElementValidators: { "*": (_) => gl(kr({ layerType: h }, _)) } }), paint: (m) => hr({ layer: i, key: m.key, value: m.value, valueSpec: {}, style: m.style, styleSpec: m.styleSpec, objectElementValidators: { "*": (_) => Fc(kr({ layerType: h }, _)) } }) } })), e;
|
|
2846
2855
|
}
|
|
2847
2856
|
function on(t) {
|
|
2848
2857
|
const e = t.value, i = t.key, n = xt(e);
|
|
2849
|
-
return n !== "string" ? [new
|
|
2858
|
+
return n !== "string" ? [new Ve(i, e, `string expected, ${n} found`)] : [];
|
|
2850
2859
|
}
|
|
2851
2860
|
const Vc = { promoteId: function({ key: t, value: e }) {
|
|
2852
2861
|
if (xt(e) === "string") return on({ key: t, value: e });
|
|
@@ -2858,7 +2867,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2858
2867
|
} };
|
|
2859
2868
|
function Nc(t) {
|
|
2860
2869
|
const e = t.value, i = t.key, n = t.styleSpec, s = t.style;
|
|
2861
|
-
if (!e.type) return [new
|
|
2870
|
+
if (!e.type) return [new Ve(i, e, '"type" is required')];
|
|
2862
2871
|
const c = ai(e.type);
|
|
2863
2872
|
let h;
|
|
2864
2873
|
switch (c) {
|
|
@@ -2877,7 +2886,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2877
2886
|
case "image":
|
|
2878
2887
|
return hr({ key: i, value: e, valueSpec: n.source_image, style: s, styleSpec: n });
|
|
2879
2888
|
case "canvas":
|
|
2880
|
-
return [new
|
|
2889
|
+
return [new Ve(i, null, "Please use runtime APIs to add canvas sources, rather than including them in stylesheets.", "source.canvas")];
|
|
2881
2890
|
default:
|
|
2882
2891
|
return Qs({ key: `${i}.type`, value: e.type, valueSpec: { values: Qu(n) } });
|
|
2883
2892
|
}
|
|
@@ -2893,10 +2902,10 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2893
2902
|
let c = [];
|
|
2894
2903
|
const h = xt(e);
|
|
2895
2904
|
if (e === void 0) return c;
|
|
2896
|
-
if (h !== "object") return c = c.concat([new
|
|
2905
|
+
if (h !== "object") return c = c.concat([new Ve("light", e, `object expected, ${h} found`)]), c;
|
|
2897
2906
|
for (const p in e) {
|
|
2898
2907
|
const m = p.match(/^(.*)-transition$/);
|
|
2899
|
-
c = c.concat(m && n[m[1]] && n[m[1]].transition ? Pi({ key: p, value: e[p], valueSpec: i.transition, style: s, styleSpec: i }) : n[p] ? Pi({ key: p, value: e[p], valueSpec: n[p], style: s, styleSpec: i }) : [new
|
|
2908
|
+
c = c.concat(m && n[m[1]] && n[m[1]].transition ? Pi({ key: p, value: e[p], valueSpec: i.transition, style: s, styleSpec: i }) : n[p] ? Pi({ key: p, value: e[p], valueSpec: n[p], style: s, styleSpec: i }) : [new Ve(p, e[p], `unknown property "${p}"`)]);
|
|
2900
2909
|
}
|
|
2901
2910
|
return c;
|
|
2902
2911
|
}
|
|
@@ -2905,15 +2914,15 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2905
2914
|
let h = [];
|
|
2906
2915
|
const p = xt(e);
|
|
2907
2916
|
if (e === void 0) return h;
|
|
2908
|
-
if (p !== "object") return h = h.concat([new
|
|
2917
|
+
if (p !== "object") return h = h.concat([new Ve("terrain", e, `object expected, ${p} found`)]), h;
|
|
2909
2918
|
for (const m in e) {
|
|
2910
2919
|
const _ = m.match(/^(.*)-transition$/);
|
|
2911
|
-
h = h.concat(_ && c[_[1]] && c[_[1]].transition ? Pi({ key: m, value: e[m], valueSpec: s.transition, style: n, styleSpec: s }) : c[m] ? Pi({ key: m, value: e[m], valueSpec: c[m], style: n, styleSpec: s }) : [new
|
|
2920
|
+
h = h.concat(_ && c[_[1]] && c[_[1]].transition ? Pi({ key: m, value: e[m], valueSpec: s.transition, style: n, styleSpec: s }) : c[m] ? Pi({ key: m, value: e[m], valueSpec: c[m], style: n, styleSpec: s }) : [new Ve(m, e[m], `unknown property "${m}"`)]);
|
|
2912
2921
|
}
|
|
2913
2922
|
if (e.source) {
|
|
2914
2923
|
const m = n.sources && n.sources[e.source], _ = m && ai(m.type);
|
|
2915
|
-
m ? _ !== "raster-dem" && h.push(new
|
|
2916
|
-
} else h.push(new
|
|
2924
|
+
m ? _ !== "raster-dem" && h.push(new Ve(i, e.source, `terrain cannot be used with a source of type ${String(_)}, it only be used with a "raster-dem" source type`)) : h.push(new Ve(i, e.source, `source "${e.source}" not found`));
|
|
2925
|
+
} else h.push(new Ve(i, e, 'terrain is missing required property "source"'));
|
|
2917
2926
|
return h;
|
|
2918
2927
|
}
|
|
2919
2928
|
function Gc(t) {
|
|
@@ -2921,19 +2930,19 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2921
2930
|
let c = [];
|
|
2922
2931
|
const h = xt(e);
|
|
2923
2932
|
if (e === void 0) return c;
|
|
2924
|
-
if (h !== "object") return c = c.concat([new
|
|
2933
|
+
if (h !== "object") return c = c.concat([new Ve("fog", e, `object expected, ${h} found`)]), c;
|
|
2925
2934
|
for (const p in e) {
|
|
2926
2935
|
const m = p.match(/^(.*)-transition$/);
|
|
2927
|
-
c = c.concat(m && s[m[1]] && s[m[1]].transition ? Pi({ key: p, value: e[p], valueSpec: n.transition, style: i, styleSpec: n }) : s[p] ? Pi({ key: p, value: e[p], valueSpec: s[p], style: i, styleSpec: n }) : [new
|
|
2936
|
+
c = c.concat(m && s[m[1]] && s[m[1]].transition ? Pi({ key: p, value: e[p], valueSpec: n.transition, style: i, styleSpec: n }) : s[p] ? Pi({ key: p, value: e[p], valueSpec: s[p], style: i, styleSpec: n }) : [new Ve(p, e[p], `unknown property "${p}"`)]);
|
|
2928
2937
|
}
|
|
2929
2938
|
return c;
|
|
2930
2939
|
}
|
|
2931
2940
|
const $c = { "*": () => [], array: Rc, boolean: function(t) {
|
|
2932
2941
|
const e = t.value, i = t.key, n = xt(e);
|
|
2933
|
-
return n !== "boolean" ? [new
|
|
2942
|
+
return n !== "boolean" ? [new Ve(i, e, `boolean expected, ${n} found`)] : [];
|
|
2934
2943
|
}, number: is, color: function(t) {
|
|
2935
2944
|
const e = t.key, i = t.value, n = xt(i);
|
|
2936
|
-
return n !== "string" ? [new
|
|
2945
|
+
return n !== "string" ? [new Ve(e, i, `color expected, ${n} found`)] : Ba(i) === null ? [new Ve(e, i, `color expected, "${i}" found`)] : [];
|
|
2937
2946
|
}, enum: Qs, filter: os, function: rs, layer: Uc, object: hr, source: Nc, light: jc, terrain: yl, fog: Gc, string: on, formatted: function(t) {
|
|
2938
2947
|
return on(t).length === 0 ? [] : Ti(t);
|
|
2939
2948
|
}, resolvedImage: function(t) {
|
|
@@ -2943,7 +2952,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2943
2952
|
let c = [];
|
|
2944
2953
|
const h = xt(e);
|
|
2945
2954
|
if (h === "object") for (const p in e) c = c.concat(Pi({ key: p, value: e[p], valueSpec: n[p], style: s, styleSpec: i }));
|
|
2946
|
-
else h !== "string" && (c = c.concat([new
|
|
2955
|
+
else h !== "string" && (c = c.concat([new Ve("projection", e, `object or string expected, ${h} found`)]));
|
|
2947
2956
|
return c;
|
|
2948
2957
|
} };
|
|
2949
2958
|
function Pi(t) {
|
|
@@ -2952,7 +2961,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
2952
2961
|
}
|
|
2953
2962
|
function eh(t) {
|
|
2954
2963
|
const e = t.value, i = t.key, n = on(t);
|
|
2955
|
-
return n.length || (e.indexOf("{fontstack}") === -1 && n.push(new
|
|
2964
|
+
return n.length || (e.indexOf("{fontstack}") === -1 && n.push(new Ve(i, e, '"glyphs" url must include a "{fontstack}" token')), e.indexOf("{range}") === -1 && n.push(new Ve(i, e, '"glyphs" url must include a "{range}" token'))), n;
|
|
2956
2965
|
}
|
|
2957
2966
|
function Zc(t, e = me) {
|
|
2958
2967
|
return tr(Pi({ key: "", value: t, valueSpec: e.$root, styleSpec: e, style: t, objectElementValidators: { glyphs: eh, "*": () => [] } }));
|
|
@@ -3085,7 +3094,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
3085
3094
|
}
|
|
3086
3095
|
throw new Error("can't deserialize object of type " + typeof t);
|
|
3087
3096
|
}
|
|
3088
|
-
const
|
|
3097
|
+
const Fe = { "Latin-1 Supplement": (t) => t >= 128 && t <= 255, Arabic: (t) => t >= 1536 && t <= 1791, "Arabic Supplement": (t) => t >= 1872 && t <= 1919, "Arabic Extended-A": (t) => t >= 2208 && t <= 2303, "Hangul Jamo": (t) => t >= 4352 && t <= 4607, "Unified Canadian Aboriginal Syllabics": (t) => t >= 5120 && t <= 5759, Khmer: (t) => t >= 6016 && t <= 6143, "Unified Canadian Aboriginal Syllabics Extended": (t) => t >= 6320 && t <= 6399, "General Punctuation": (t) => t >= 8192 && t <= 8303, "Letterlike Symbols": (t) => t >= 8448 && t <= 8527, "Number Forms": (t) => t >= 8528 && t <= 8591, "Miscellaneous Technical": (t) => t >= 8960 && t <= 9215, "Control Pictures": (t) => t >= 9216 && t <= 9279, "Optical Character Recognition": (t) => t >= 9280 && t <= 9311, "Enclosed Alphanumerics": (t) => t >= 9312 && t <= 9471, "Geometric Shapes": (t) => t >= 9632 && t <= 9727, "Miscellaneous Symbols": (t) => t >= 9728 && t <= 9983, "Miscellaneous Symbols and Arrows": (t) => t >= 11008 && t <= 11263, "CJK Radicals Supplement": (t) => t >= 11904 && t <= 12031, "Kangxi Radicals": (t) => t >= 12032 && t <= 12255, "Ideographic Description Characters": (t) => t >= 12272 && t <= 12287, "CJK Symbols and Punctuation": (t) => t >= 12288 && t <= 12351, Hiragana: (t) => t >= 12352 && t <= 12447, Katakana: (t) => t >= 12448 && t <= 12543, Bopomofo: (t) => t >= 12544 && t <= 12591, "Hangul Compatibility Jamo": (t) => t >= 12592 && t <= 12687, Kanbun: (t) => t >= 12688 && t <= 12703, "Bopomofo Extended": (t) => t >= 12704 && t <= 12735, "CJK Strokes": (t) => t >= 12736 && t <= 12783, "Katakana Phonetic Extensions": (t) => t >= 12784 && t <= 12799, "Enclosed CJK Letters and Months": (t) => t >= 12800 && t <= 13055, "CJK Compatibility": (t) => t >= 13056 && t <= 13311, "CJK Unified Ideographs Extension A": (t) => t >= 13312 && t <= 19903, "Yijing Hexagram Symbols": (t) => t >= 19904 && t <= 19967, "CJK Unified Ideographs": (t) => t >= 19968 && t <= 40959, "Yi Syllables": (t) => t >= 40960 && t <= 42127, "Yi Radicals": (t) => t >= 42128 && t <= 42191, "Hangul Jamo Extended-A": (t) => t >= 43360 && t <= 43391, "Hangul Syllables": (t) => t >= 44032 && t <= 55215, "Hangul Jamo Extended-B": (t) => t >= 55216 && t <= 55295, "Private Use Area": (t) => t >= 57344 && t <= 63743, "CJK Compatibility Ideographs": (t) => t >= 63744 && t <= 64255, "Arabic Presentation Forms-A": (t) => t >= 64336 && t <= 65023, "Vertical Forms": (t) => t >= 65040 && t <= 65055, "CJK Compatibility Forms": (t) => t >= 65072 && t <= 65103, "Small Form Variants": (t) => t >= 65104 && t <= 65135, "Arabic Presentation Forms-B": (t) => t >= 65136 && t <= 65279, "Halfwidth and Fullwidth Forms": (t) => t >= 65280 && t <= 65519 };
|
|
3089
3098
|
function bl(t) {
|
|
3090
3099
|
for (const e of t) if (wl(e.charCodeAt(0))) return !0;
|
|
3091
3100
|
return !1;
|
|
@@ -3095,21 +3104,21 @@ Use an identity property function instead: ${w}.`)];
|
|
|
3095
3104
|
return !0;
|
|
3096
3105
|
}
|
|
3097
3106
|
function Wc(t) {
|
|
3098
|
-
return !(
|
|
3107
|
+
return !(Fe.Arabic(t) || Fe["Arabic Supplement"](t) || Fe["Arabic Extended-A"](t) || Fe["Arabic Presentation Forms-A"](t) || Fe["Arabic Presentation Forms-B"](t));
|
|
3099
3108
|
}
|
|
3100
3109
|
function wl(t) {
|
|
3101
|
-
return !(t !== 746 && t !== 747 && (t < 4352 || !(
|
|
3110
|
+
return !(t !== 746 && t !== 747 && (t < 4352 || !(Fe["Bopomofo Extended"](t) || Fe.Bopomofo(t) || Fe["CJK Compatibility Forms"](t) && !(t >= 65097 && t <= 65103) || Fe["CJK Compatibility Ideographs"](t) || Fe["CJK Compatibility"](t) || Fe["CJK Radicals Supplement"](t) || Fe["CJK Strokes"](t) || !(!Fe["CJK Symbols and Punctuation"](t) || t >= 12296 && t <= 12305 || t >= 12308 && t <= 12319 || t === 12336) || Fe["CJK Unified Ideographs Extension A"](t) || Fe["CJK Unified Ideographs"](t) || Fe["Enclosed CJK Letters and Months"](t) || Fe["Hangul Compatibility Jamo"](t) || Fe["Hangul Jamo Extended-A"](t) || Fe["Hangul Jamo Extended-B"](t) || Fe["Hangul Jamo"](t) || Fe["Hangul Syllables"](t) || Fe.Hiragana(t) || Fe["Ideographic Description Characters"](t) || Fe.Kanbun(t) || Fe["Kangxi Radicals"](t) || Fe["Katakana Phonetic Extensions"](t) || Fe.Katakana(t) && t !== 12540 || !(!Fe["Halfwidth and Fullwidth Forms"](t) || t === 65288 || t === 65289 || t === 65293 || t >= 65306 && t <= 65310 || t === 65339 || t === 65341 || t === 65343 || t >= 65371 && t <= 65503 || t === 65507 || t >= 65512 && t <= 65519) || !(!Fe["Small Form Variants"](t) || t >= 65112 && t <= 65118 || t >= 65123 && t <= 65126) || Fe["Unified Canadian Aboriginal Syllabics"](t) || Fe["Unified Canadian Aboriginal Syllabics Extended"](t) || Fe["Vertical Forms"](t) || Fe["Yijing Hexagram Symbols"](t) || Fe["Yi Syllables"](t) || Fe["Yi Radicals"](t))));
|
|
3102
3111
|
}
|
|
3103
3112
|
function Xc(t) {
|
|
3104
3113
|
return !(wl(t) || (function(e) {
|
|
3105
|
-
return !!(
|
|
3114
|
+
return !!(Fe["Latin-1 Supplement"](e) && (e === 167 || e === 169 || e === 174 || e === 177 || e === 188 || e === 189 || e === 190 || e === 215 || e === 247) || Fe["General Punctuation"](e) && (e === 8214 || e === 8224 || e === 8225 || e === 8240 || e === 8241 || e === 8251 || e === 8252 || e === 8258 || e === 8263 || e === 8264 || e === 8265 || e === 8273) || Fe["Letterlike Symbols"](e) || Fe["Number Forms"](e) || Fe["Miscellaneous Technical"](e) && (e >= 8960 && e <= 8967 || e >= 8972 && e <= 8991 || e >= 8996 && e <= 9e3 || e === 9003 || e >= 9085 && e <= 9114 || e >= 9150 && e <= 9165 || e === 9167 || e >= 9169 && e <= 9179 || e >= 9186 && e <= 9215) || Fe["Control Pictures"](e) && e !== 9251 || Fe["Optical Character Recognition"](e) || Fe["Enclosed Alphanumerics"](e) || Fe["Geometric Shapes"](e) || Fe["Miscellaneous Symbols"](e) && !(e >= 9754 && e <= 9759) || Fe["Miscellaneous Symbols and Arrows"](e) && (e >= 11026 && e <= 11055 || e >= 11088 && e <= 11097 || e >= 11192 && e <= 11243) || Fe["CJK Symbols and Punctuation"](e) || Fe.Katakana(e) || Fe["Private Use Area"](e) || Fe["CJK Compatibility Forms"](e) || Fe["Small Form Variants"](e) || Fe["Halfwidth and Fullwidth Forms"](e) || e === 8734 || e === 8756 || e === 8757 || e >= 9984 && e <= 10087 || e >= 10102 && e <= 10131 || e === 65532 || e === 65533);
|
|
3106
3115
|
})(t));
|
|
3107
3116
|
}
|
|
3108
3117
|
function Hc(t) {
|
|
3109
|
-
return t >= 1424 && t <= 2303 ||
|
|
3118
|
+
return t >= 1424 && t <= 2303 || Fe["Arabic Presentation Forms-A"](t) || Fe["Arabic Presentation Forms-B"](t);
|
|
3110
3119
|
}
|
|
3111
3120
|
function oh(t, e) {
|
|
3112
|
-
return !(!e && Hc(t) || t >= 2304 && t <= 3583 || t >= 3840 && t <= 4255 ||
|
|
3121
|
+
return !(!e && Hc(t) || t >= 2304 && t <= 3583 || t >= 3840 && t <= 4255 || Fe.Khmer(t));
|
|
3113
3122
|
}
|
|
3114
3123
|
function sh(t) {
|
|
3115
3124
|
for (const e of t) if (Hc(e.charCodeAt(0))) return !0;
|
|
@@ -4522,7 +4531,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
4522
4531
|
}
|
|
4523
4532
|
}
|
|
4524
4533
|
ci.MAX_VERTEX_ARRAY_LENGTH = Math.pow(2, 16) - 1, Ne(ci, "SegmentVector");
|
|
4525
|
-
var
|
|
4534
|
+
var Xe = 8192;
|
|
4526
4535
|
class xo {
|
|
4527
4536
|
constructor(e, i) {
|
|
4528
4537
|
e && (i ? this.setSouthWest(e).setNorthEast(i) : e.length === 4 ? this.setSouthWest([e[0], e[1]]).setNorthEast([e[2], e[3]]) : this.setSouthWest(e[0]).setNorthEast(e[1]));
|
|
@@ -4835,7 +4844,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
4835
4844
|
return 1;
|
|
4836
4845
|
}
|
|
4837
4846
|
}
|
|
4838
|
-
const yh = 5, $d = 6, an =
|
|
4847
|
+
const yh = 5, $d = 6, an = Xe / Math.PI / 2, Tm = 16383, ps = 64, Rl = [ps, 32, 16], Er = -an, Sr = an, Em = [new Ni([Er, Er, Er], [Sr, Sr, Sr]), new Ni([Er, Er, Er], [0, 0, Sr]), new Ni([0, Er, Er], [Sr, 0, Sr]), new Ni([Er, 0, Er], [0, Sr, Sr]), new Ni([0, 0, Er], [Sr, Sr, Sr])];
|
|
4839
4848
|
function tu(t) {
|
|
4840
4849
|
return t * an / Fl;
|
|
4841
4850
|
}
|
|
@@ -4916,9 +4925,9 @@ Use an identity property function instead: ${w}.`)];
|
|
|
4916
4925
|
if (ce > 0) {
|
|
4917
4926
|
const se = (function({ x: Se, y: he, z: xe }, ve, we, Ce, pe) {
|
|
4918
4927
|
const Le = 1 / (1 << xe);
|
|
4919
|
-
let Ge = Se * Le, Be = Ge + Le, Qe = he * Le, ze = Qe + Le,
|
|
4928
|
+
let Ge = Se * Le, Be = Ge + Le, Qe = he * Le, ze = Qe + Le, We = 0;
|
|
4920
4929
|
const et = (Ge + Be) / 2 - Ce;
|
|
4921
|
-
return et > 0.5 ?
|
|
4930
|
+
return et > 0.5 ? We = -1 : et < -0.5 && (We = 1), Ge = ((Ge + We) * ve - (Ce *= ve)) * we + Ce, Be = ((Be + We) * ve - Ce) * we + Ce, Qe = (Qe * ve - (pe *= ve)) * we + pe, ze = (ze * ve - pe) * we + pe, [[Ge, ze, 0], [Be, ze, 0], [Be, Qe, 0], [Ge, Qe, 0]];
|
|
4922
4931
|
})(i, e, t._pixelsPerMercatorPixel, M, C);
|
|
4923
4932
|
for (let Se = 0; Se < h.length; Se++) fs(h[Se], se[Se], ce);
|
|
4924
4933
|
const _e = Bn([], se[q], se[(q + 1) % 4]);
|
|
@@ -4942,8 +4951,8 @@ Use an identity property function instead: ${w}.`)];
|
|
|
4942
4951
|
return la(Math.cos(mt(t)), Math.sin(mt(t)), e, i);
|
|
4943
4952
|
}
|
|
4944
4953
|
function Bl(t, e, i, n) {
|
|
4945
|
-
const s = 1 << i.z, c = (t /
|
|
4946
|
-
return ca(ki((e /
|
|
4954
|
+
const s = 1 << i.z, c = (t / Xe + i.x) / s;
|
|
4955
|
+
return ca(ki((e / Xe + i.y) / s), fr(c), n);
|
|
4947
4956
|
}
|
|
4948
4957
|
function ru({ min: t, max: e }) {
|
|
4949
4958
|
return Tm / Math.max(e[0] - t[0], e[1] - t[1], e[2] - t[2]);
|
|
@@ -4962,7 +4971,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
4962
4971
|
}
|
|
4963
4972
|
function Hd(t, e, i, n, s) {
|
|
4964
4973
|
const c = (function(m) {
|
|
4965
|
-
const _ =
|
|
4974
|
+
const _ = Xe / (2 * Math.PI);
|
|
4966
4975
|
return m / (2 * Math.PI) / _;
|
|
4967
4976
|
})(i), h = [t, e, -i / (2 * Math.PI)], p = $r(new Float64Array(16));
|
|
4968
4977
|
return Il(p, p, h), hs(p, p, [c, c, c]), hh(p, p, mt(-s)), eu(p, p, mt(-n)), p;
|
|
@@ -5101,7 +5110,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
5101
5110
|
return t.x = pt(i, ip, Mh), t.y = pt(n, ip, Mh), (i < t.x || i > t.x + 1 || n < t.y || n > t.y + 1) && Wt("Geometry exceeds allowed extent, reduce your vector tile buffer size"), t;
|
|
5102
5111
|
}
|
|
5103
5112
|
function On(t, e, i) {
|
|
5104
|
-
const n = t.loadGeometry(), s = t.extent, c =
|
|
5113
|
+
const n = t.loadGeometry(), s = t.extent, c = Xe / s;
|
|
5105
5114
|
if (e && i && i.projection.isReprojectedInTileSpace) {
|
|
5106
5115
|
const h = 1 << e.z, { scale: p, x: m, y: _, projection: x } = i, b = (w) => {
|
|
5107
5116
|
const S = fr((e.x + w.x / s) / h), M = ki((e.y + w.y / s) / h), C = x.project(S, M);
|
|
@@ -5166,7 +5175,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
5166
5175
|
addFeature(e, i, n, s, c, h) {
|
|
5167
5176
|
for (const p of i) for (const m of p) {
|
|
5168
5177
|
const _ = m.x, x = m.y;
|
|
5169
|
-
if (_ < 0 || _ >=
|
|
5178
|
+
if (_ < 0 || _ >= Xe || x < 0 || x >= Xe) continue;
|
|
5170
5179
|
if (h) {
|
|
5171
5180
|
const S = h.projectTilePoint(_, x, c), M = h.upVector(c, _, x), C = this.globeExtVertexArray;
|
|
5172
5181
|
ou(C, S, M), ou(C, S, M), ou(C, S, M), ou(C, S, M);
|
|
@@ -5291,7 +5300,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
5291
5300
|
}
|
|
5292
5301
|
const k = c ? S : Om(C.x, C.y, C.z, n), U = c ? t.tilespaceRays.map(((V) => Um(V, M))) : t.queryGeometry.screenGeometry, q = ds([], [C.x, C.y, C.z, 1], n);
|
|
5293
5302
|
if (!h && c ? m *= q[3] / i.cameraToCenterDistance : h && !c && (m *= i.cameraToCenterDistance / q[3]), c) {
|
|
5294
|
-
const V = ki((w.y /
|
|
5303
|
+
const V = ki((w.y / Xe + _.y) / (1 << _.z));
|
|
5295
5304
|
m /= i.projection.pixelsPerMeter(V, 1) / qr(1, V);
|
|
5296
5305
|
}
|
|
5297
5306
|
if (Pm(U, k, m)) return !0;
|
|
@@ -5871,7 +5880,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
5871
5880
|
append(e, i) {
|
|
5872
5881
|
this.currentPolyCount.edges++, this.acc._add(e);
|
|
5873
5882
|
const n = this.min, s = this.max;
|
|
5874
|
-
e.x < n.x ? n.x = e.x : e.x > s.x && (s.x = e.x), e.y < n.y ? n.y = e.y : e.y > s.y && (s.y = e.y), ((e.x === 0 || e.x ===
|
|
5883
|
+
e.x < n.x ? n.x = e.x : e.x > s.x && (s.x = e.x), e.y < n.y ? n.y = e.y : e.y > s.y && (s.y = e.y), ((e.x === 0 || e.x === Xe) && e.x === i.x) != ((e.y === 0 || e.y === Xe) && e.y === i.y) && this.processBorderOverlap(e, i), i.x < 0 != e.x < 0 && this.addBorderIntersection(0, yt(i.y, e.y, (0 - i.x) / (e.x - i.x))), i.x > Xe != e.x > Xe && this.addBorderIntersection(1, yt(i.y, e.y, (Xe - i.x) / (e.x - i.x))), i.y < 0 != e.y < 0 && this.addBorderIntersection(2, yt(i.x, e.x, (0 - i.y) / (e.y - i.y))), i.y > Xe != e.y > Xe && this.addBorderIntersection(3, yt(i.x, e.x, (Xe - i.y) / (e.y - i.y)));
|
|
5875
5884
|
}
|
|
5876
5885
|
addBorderIntersection(e, i) {
|
|
5877
5886
|
this.borders || (this.borders = [[Number.MAX_VALUE, -Number.MAX_VALUE], [Number.MAX_VALUE, -Number.MAX_VALUE], [Number.MAX_VALUE, -Number.MAX_VALUE], [Number.MAX_VALUE, -Number.MAX_VALUE]]);
|
|
@@ -5906,7 +5915,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
5906
5915
|
populate(e, i, n, s) {
|
|
5907
5916
|
this.features = [], this.hasPattern = Fh("fill-extrusion", this.layers, i), this.featuresOnBorder = [], this.borders = [[], [], [], []], this.borderDoneWithNeighborZ = [-1, -1, -1, -1], this.tileToMeter = (function(c) {
|
|
5908
5917
|
const h = Math.exp(Math.PI * (1 - c.y / (1 << c.z) * 2));
|
|
5909
|
-
return 80150034 * h / (h * h + 1) /
|
|
5918
|
+
return 80150034 * h / (h * h + 1) / Xe / (1 << c.z);
|
|
5910
5919
|
})(n), this.edgeRadius = this.layers[0].layout.get("fill-extrusion-edge-radius") / this.tileToMeter;
|
|
5911
5920
|
for (const { feature: c, id: h, index: p, sourceLayerIndex: m } of e) {
|
|
5912
5921
|
const _ = this.layers[0]._featureFilter.needGeometry, x = ms(c, _);
|
|
@@ -5942,12 +5951,12 @@ Use an identity property function instead: ${w}.`)];
|
|
|
5942
5951
|
this.layoutVertexBuffer && (this.layoutVertexBuffer.destroy(), this.centroidVertexBuffer && this.centroidVertexBuffer.destroy(), this.layoutVertexExtBuffer && this.layoutVertexExtBuffer.destroy(), this.indexBuffer.destroy(), this.programConfigurations.destroy(), this.segments.destroy());
|
|
5943
5952
|
}
|
|
5944
5953
|
addFeature(e, i, n, s, c, h, p) {
|
|
5945
|
-
const m = [new Re(0, 0), new Re(
|
|
5954
|
+
const m = [new Re(0, 0), new Re(Xe, Xe)], _ = p.projection, x = _.name === "globe", b = this.enableTerrain && !x ? new Tp() : null, w = m_[e.type] === "Polygon";
|
|
5946
5955
|
x && !this.layoutVertexExtArray && (this.layoutVertexExtArray = new Me());
|
|
5947
5956
|
const S = Oh(i, 500);
|
|
5948
5957
|
for (let U = S.length - 1; U >= 0; U--) {
|
|
5949
5958
|
const q = S[U];
|
|
5950
|
-
(q.length === 0 || (M = q[0]).every(((V) => V.x <= 0)) || M.every(((V) => V.x >=
|
|
5959
|
+
(q.length === 0 || (M = q[0]).every(((V) => V.x <= 0)) || M.every(((V) => V.x >= Xe)) || M.every(((V) => V.y <= 0)) || M.every(((V) => V.y >= Xe))) && S.splice(U, 1);
|
|
5951
5960
|
}
|
|
5952
5961
|
var M;
|
|
5953
5962
|
let C;
|
|
@@ -6002,13 +6011,13 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6002
6011
|
const Ke = pe.sub(Ce)._unit();
|
|
6003
6012
|
Ce = Ce.add(Ke.mult(he))._round(), pe = pe.add(Ke.mult(-tt))._round(), he = tt, se = _e;
|
|
6004
6013
|
}
|
|
6005
|
-
const
|
|
6014
|
+
const We = X.vertexLength, et = W.length > 4 && Ap(Ce, pe, Le);
|
|
6006
6015
|
let vt = Ip(we, Se, xe);
|
|
6007
|
-
if (Gl(this.layoutVertexArray, Ce.x, Ce.y, Be, Qe, 0, 0, vt), Gl(this.layoutVertexArray, Ce.x, Ce.y, Be, Qe, 0, 1, vt), we += ze, vt = Ip(we, et, !xe), Se = et, Gl(this.layoutVertexArray, pe.x, pe.y, Be, Qe, 0, 0, vt), Gl(this.layoutVertexArray, pe.x, pe.y, Be, Qe, 0, 1, vt), X.vertexLength += 4, this.indexArray.emplaceBack(
|
|
6016
|
+
if (Gl(this.layoutVertexArray, Ce.x, Ce.y, Be, Qe, 0, 0, vt), Gl(this.layoutVertexArray, Ce.x, Ce.y, Be, Qe, 0, 1, vt), we += ze, vt = Ip(we, et, !xe), Se = et, Gl(this.layoutVertexArray, pe.x, pe.y, Be, Qe, 0, 0, vt), Gl(this.layoutVertexArray, pe.x, pe.y, Be, Qe, 0, 1, vt), X.vertexLength += 4, this.indexArray.emplaceBack(We + 0, We + 1, We + 2), this.indexArray.emplaceBack(We + 1, We + 3, We + 2), X.primitiveLength += 2, k) {
|
|
6008
6017
|
const tt = V + (ve === 1 ? W.length - 2 : ve - 2), Ke = ve === 1 ? V : tt + 1;
|
|
6009
|
-
if (this.indexArray.emplaceBack(
|
|
6018
|
+
if (this.indexArray.emplaceBack(We + 1, tt, We + 3), this.indexArray.emplaceBack(tt, Ke, We + 3), X.primitiveLength += 2, ce === void 0 && (ce = We), !Mp(Le, W[ve], q)) {
|
|
6010
6019
|
const jt = ve === W.length - 1 ? ce : X.vertexLength;
|
|
6011
|
-
this.indexArray.emplaceBack(
|
|
6020
|
+
this.indexArray.emplaceBack(We + 2, We + 3, jt), this.indexArray.emplaceBack(We + 3, jt + 1, jt), this.indexArray.emplaceBack(We + 3, Ke, jt + 1), X.primitiveLength += 3;
|
|
6012
6021
|
}
|
|
6013
6022
|
xe = !xe;
|
|
6014
6023
|
}
|
|
@@ -6064,7 +6073,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6064
6073
|
return t.x < i[0].x && e.x < i[0].x || t.x > i[1].x && e.x > i[1].x || t.y < i[0].y && e.y < i[0].y || t.y > i[1].y && e.y > i[1].y;
|
|
6065
6074
|
}
|
|
6066
6075
|
function Ap(t, e, i) {
|
|
6067
|
-
if (t.x < 0 || t.x >=
|
|
6076
|
+
if (t.x < 0 || t.x >= Xe || e.x < 0 || e.x >= Xe || i.x < 0 || i.x >= Xe) return !1;
|
|
6068
6077
|
const n = i.sub(e), s = n.perp(), c = t.sub(e);
|
|
6069
6078
|
return (n.x * c.x + n.y * c.y) / Math.sqrt((n.x * n.x + n.y * n.y) * (c.x * c.x + c.y * c.y)) > -0.866 && s.x * c.x + s.y * c.y < 0;
|
|
6070
6079
|
}
|
|
@@ -6104,8 +6113,8 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6104
6113
|
})(t, e, Math.ceil((c - s) / 11.25), Math.ceil((h - p) / 11.25), 1, ((m, _, x) => {
|
|
6105
6114
|
if (m === 0) return 0.5 * (_ + x);
|
|
6106
6115
|
{
|
|
6107
|
-
const b = ki((i.y + _ /
|
|
6108
|
-
return (un(0.5 * (ki((i.y + x /
|
|
6116
|
+
const b = ki((i.y + _ / Xe) / n);
|
|
6117
|
+
return (un(0.5 * (ki((i.y + x / Xe) / n) + b)) * n - i.y) * Xe;
|
|
6109
6118
|
}
|
|
6110
6119
|
}));
|
|
6111
6120
|
}
|
|
@@ -6324,7 +6333,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6324
6333
|
for (; _ < m - 1 && e[_].equals(e[_ + 1]); ) _++;
|
|
6325
6334
|
if (m < (p ? 3 : 2)) return;
|
|
6326
6335
|
n === "bevel" && (c = 1.05);
|
|
6327
|
-
const x = this.overscaling <= 16 ? 15 *
|
|
6336
|
+
const x = this.overscaling <= 16 ? 15 * Xe / (512 * this.overscaling) : 0, b = this.segments.prepareSegment(10 * m, this.layoutVertexArray, this.indexArray);
|
|
6328
6337
|
let w, S, M, C, k;
|
|
6329
6338
|
this.e1 = this.e2 = -1, p && (w = e[m - 2], k = e[_].sub(w)._unit()._perp());
|
|
6330
6339
|
for (let U = _; U < m; U++) {
|
|
@@ -6928,11 +6937,11 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6928
6937
|
let k = [];
|
|
6929
6938
|
const U = (function(W, ce, se, _e, Se, he) {
|
|
6930
6939
|
if (!W) return [];
|
|
6931
|
-
const xe = [], ve = (function(Le, Ge, Be, Qe, ze,
|
|
6940
|
+
const xe = [], ve = (function(Le, Ge, Be, Qe, ze, We) {
|
|
6932
6941
|
let et = 0;
|
|
6933
6942
|
for (let vt = 0; vt < Le.length(); vt++) {
|
|
6934
6943
|
const tt = Le.getSection(vt);
|
|
6935
|
-
et += Hp(Le.getCharCode(vt), tt, Qe, ze, Ge,
|
|
6944
|
+
et += Hp(Le.getCharCode(vt), tt, Qe, ze, Ge, We);
|
|
6936
6945
|
}
|
|
6937
6946
|
return et / Math.max(1, Math.ceil(et / Be));
|
|
6938
6947
|
})(W, ce, se, _e, Se, he), we = W.text.indexOf("") >= 0;
|
|
@@ -6940,7 +6949,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6940
6949
|
for (let Le = 0; Le < W.length(); Le++) {
|
|
6941
6950
|
const Ge = W.getSection(Le), Be = W.getCharCode(Le);
|
|
6942
6951
|
if (vu[Be] || (Ce += Hp(Be, Ge, _e, Se, ce, he)), Le < W.length() - 1) {
|
|
6943
|
-
const Qe = !((pe = Be) < 11904 || !(
|
|
6952
|
+
const Qe = !((pe = Be) < 11904 || !(Fe["Bopomofo Extended"](pe) || Fe.Bopomofo(pe) || Fe["CJK Compatibility Forms"](pe) || Fe["CJK Compatibility Ideographs"](pe) || Fe["CJK Compatibility"](pe) || Fe["CJK Radicals Supplement"](pe) || Fe["CJK Strokes"](pe) || Fe["CJK Symbols and Punctuation"](pe) || Fe["CJK Unified Ideographs Extension A"](pe) || Fe["CJK Unified Ideographs"](pe) || Fe["Enclosed CJK Letters and Months"](pe) || Fe["Halfwidth and Fullwidth Forms"](pe) || Fe.Hiragana(pe) || Fe["Ideographic Description Characters"](pe) || Fe["Kangxi Radicals"](pe) || Fe["Katakana Phonetic Extensions"](pe) || Fe.Katakana(pe) || Fe["Vertical Forms"](pe) || Fe["Yi Radicals"](pe) || Fe["Yi Syllables"](pe)));
|
|
6944
6953
|
(H_[Be] || Qe || Ge.imageName) && xe.push(Yp(Le + 1, Ce, ve, xe, K_(Be, W.getCharCode(Le + 1), Qe && we), !1));
|
|
6945
6954
|
}
|
|
6946
6955
|
}
|
|
@@ -6971,15 +6980,15 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6971
6980
|
return (function(W, ce, se, _e, Se, he, xe, ve, we, Ce, pe, Le) {
|
|
6972
6981
|
let Ge = 0, Be = 0, Qe = 0;
|
|
6973
6982
|
const ze = ve === "right" ? 1 : ve === "left" ? 0 : 0.5;
|
|
6974
|
-
let
|
|
6983
|
+
let We = !1;
|
|
6975
6984
|
for (const nt of Se) {
|
|
6976
6985
|
const ot = nt.getSections();
|
|
6977
6986
|
for (const Lt of ot) {
|
|
6978
6987
|
if (Lt.imageName) continue;
|
|
6979
6988
|
const Ft = ce[Lt.fontStack];
|
|
6980
|
-
if (Ft && (
|
|
6989
|
+
if (Ft && (We = Ft.ascender !== void 0 && Ft.descender !== void 0, !We)) break;
|
|
6981
6990
|
}
|
|
6982
|
-
if (!
|
|
6991
|
+
if (!We) break;
|
|
6983
6992
|
}
|
|
6984
6993
|
let et = 0;
|
|
6985
6994
|
for (const nt of Se) {
|
|
@@ -6996,13 +7005,13 @@ Use an identity property function instead: ${w}.`)];
|
|
|
6996
7005
|
for (let Bt = 0; Bt < nt.length(); Bt++) {
|
|
6997
7006
|
const _i = nt.getSection(Bt), di = nt.getSectionIndex(Bt), Kt = nt.getCharCode(Bt);
|
|
6998
7007
|
let Tt = _i.scale, pi = null, Vt = null, Gi = null, fi = Ii, Ci = 0;
|
|
6999
|
-
const Si = !(we === mr.horizontal || !pe && !wl(Kt) || pe && (vu[Kt] || (vt = Kt,
|
|
7008
|
+
const Si = !(we === mr.horizontal || !pe && !wl(Kt) || pe && (vu[Kt] || (vt = Kt, Fe.Arabic(vt) || Fe["Arabic Supplement"](vt) || Fe["Arabic Extended-A"](vt) || Fe["Arabic Presentation Forms-A"](vt) || Fe["Arabic Presentation Forms-B"](vt))));
|
|
7000
7009
|
if (_i.imageName) {
|
|
7001
7010
|
const $i = _e[_i.imageName];
|
|
7002
7011
|
if (!$i) continue;
|
|
7003
7012
|
Gi = _i.imageName, W.iconsInText = W.iconsInText || !0, Vt = $i.paddedRect;
|
|
7004
7013
|
const Mi = $i.displaySize;
|
|
7005
|
-
Tt = Tt * Ii / Le, pi = { width: Mi[0], height: Mi[1], left: Hi, top: -qp, advance: Si ? Mi[1] : Mi[0], localGlyph: !1 }, Ci =
|
|
7014
|
+
Tt = Tt * Ii / Le, pi = { width: Mi[0], height: Mi[1], left: Hi, top: -qp, advance: Si ? Mi[1] : Mi[0], localGlyph: !1 }, Ci = We ? -pi.height * Tt : Xp + ot * Ii - Mi[1] * Tt, fi = pi.advance;
|
|
7006
7015
|
const Kr = (Si ? Mi[0] : Mi[1]) * Tt - Ii * ot;
|
|
7007
7016
|
Kr > 0 && Kr > Rt && (Rt = Kr);
|
|
7008
7017
|
} else {
|
|
@@ -7013,14 +7022,14 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7013
7022
|
if (!Mi) continue;
|
|
7014
7023
|
const Kr = Mi.glyphs[Kt];
|
|
7015
7024
|
if (!Kr) continue;
|
|
7016
|
-
if (pi = Kr.metrics, fi = Kt !== 8203 ? Ii : 0,
|
|
7025
|
+
if (pi = Kr.metrics, fi = Kt !== 8203 ? Ii : 0, We) {
|
|
7017
7026
|
const Ma = Mi.ascender !== void 0 ? Math.abs(Mi.ascender) : 0, oc = Mi.descender !== void 0 ? Math.abs(Mi.descender) : 0, sc = (Ma + oc) * Tt;
|
|
7018
7027
|
Ht < sc && (Ht = sc, ei = (Ma - oc) / 2 * Tt), Ci = -Ma * Tt;
|
|
7019
7028
|
} else Ci = Xp + (ot - Tt) * Ii;
|
|
7020
7029
|
}
|
|
7021
7030
|
Si ? (W.verticalizable = !0, Ut.push({ glyph: Kt, imageName: Gi, x: Ge, y: Be + Ci, vertical: Si, scale: Tt, localGlyph: pi.localGlyph, fontStack: _i.fontStack, sectionIndex: di, metrics: pi, rect: Vt }), Ge += fi * Tt + Ce) : (Ut.push({ glyph: Kt, imageName: Gi, x: Ge, y: Be + Ci, vertical: Si, scale: Tt, localGlyph: pi.localGlyph, fontStack: _i.fontStack, sectionIndex: di, metrics: pi, rect: Vt }), Ge += pi.advance * Tt + Ce);
|
|
7022
7031
|
}
|
|
7023
|
-
Ut.length !== 0 && (Qe = Math.max(Ge - Ce, Qe),
|
|
7032
|
+
Ut.length !== 0 && (Qe = Math.max(Ge - Ce, Qe), We ? Qp(Ut, ze, Rt, ei, he * ot / 2) : Qp(Ut, ze, Rt, 0, he / 2)), Ge = 0;
|
|
7024
7033
|
const hi = he * ot + Rt;
|
|
7025
7034
|
Ft.lineOffset = Math.max(Rt, Lt), Be += hi, ++et;
|
|
7026
7035
|
}
|
|
@@ -7029,7 +7038,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7029
7038
|
(function(nt, ot, Lt, Ft, Ut, Rt) {
|
|
7030
7039
|
const Ht = (ot - Lt) * Ut, ei = -Rt * Ft;
|
|
7031
7040
|
for (const hi of nt) for (const Bt of hi.positionedGlyphs) Bt.x += Ht, Bt.y += ei;
|
|
7032
|
-
})(W.positionedLines, ze, Ke, jt, Qe, tt), W.top += -jt * tt, W.bottom = W.top + tt, W.left += -Ke * Qe, W.right = W.left + Qe, W.hasBaseline =
|
|
7041
|
+
})(W.positionedLines, ze, Ke, jt, Qe, tt), W.top += -jt * tt, W.bottom = W.top + tt, W.left += -Ke * Qe, W.right = W.left + Qe, W.hasBaseline = We;
|
|
7033
7042
|
})(X, e, i, n, k, h, p, m, b, _, w, M), !(function(W) {
|
|
7034
7043
|
for (const ce of W) if (ce.positionedGlyphs.length !== 0) return !1;
|
|
7035
7044
|
return !0;
|
|
@@ -7263,7 +7272,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7263
7272
|
}));
|
|
7264
7273
|
}
|
|
7265
7274
|
_doesCharSupportLocalGlyph(e) {
|
|
7266
|
-
return this.localGlyphMode !== Xh.none && (this.localGlyphMode === Xh.all ? !!this.localFontFamily : !!this.localFontFamily && (
|
|
7275
|
+
return this.localGlyphMode !== Xh.none && (this.localGlyphMode === Xh.all ? !!this.localFontFamily : !!this.localFontFamily && (Fe["CJK Unified Ideographs"](e) || Fe["Hangul Syllables"](e) || Fe.Hiragana(e) || Fe.Katakana(e) || Fe["CJK Symbols and Punctuation"](e)));
|
|
7267
7276
|
}
|
|
7268
7277
|
_tinySDF(e, i, n) {
|
|
7269
7278
|
const s = this.localFontFamily;
|
|
@@ -7334,7 +7343,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7334
7343
|
q = bu(b, 0, he[0]), $ = bu(w, 0, he[1]), V = bu(b, he[0], he[2]), X = bu(w, he[1], he[3]), W = he[0] - q, se = he[1] - $, ce = he[2] - he[0] - V, _e = he[3] - he[1] - X;
|
|
7335
7344
|
}
|
|
7336
7345
|
const Se = (he, xe, ve, we) => {
|
|
7337
|
-
const Ce = wu(he.stretch - q, V, _, t.left), pe = Tu(he.fixed - W, ce, he.stretch, M), Le = wu(xe.stretch - $, X, x, t.top), Ge = Tu(xe.fixed - se, _e, xe.stretch, C), Be = wu(ve.stretch - q, V, _, t.left), Qe = Tu(ve.fixed - W, ce, ve.stretch, M), ze = wu(we.stretch - $, X, x, t.top),
|
|
7346
|
+
const Ce = wu(he.stretch - q, V, _, t.left), pe = Tu(he.fixed - W, ce, he.stretch, M), Le = wu(xe.stretch - $, X, x, t.top), Ge = Tu(xe.fixed - se, _e, xe.stretch, C), Be = wu(ve.stretch - q, V, _, t.left), Qe = Tu(ve.fixed - W, ce, ve.stretch, M), ze = wu(we.stretch - $, X, x, t.top), We = Tu(we.fixed - se, _e, we.stretch, C), et = new Re(Ce, Le), vt = new Re(Be, Le), tt = new Re(Be, ze), Ke = new Re(Ce, ze), jt = new Re(pe / h, Ge / h), nt = new Re(Qe / h, We / h), ot = e * Math.PI / 180;
|
|
7338
7347
|
if (ot) {
|
|
7339
7348
|
const Ut = Math.sin(ot), Rt = Math.cos(ot), Ht = [Rt, -Ut, Ut, Rt];
|
|
7340
7349
|
et._matMult(Ht), vt._matMult(Ht), Ke._matMult(Ht), tt._matMult(Ht);
|
|
@@ -7520,7 +7529,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7520
7529
|
return [n, s];
|
|
7521
7530
|
}
|
|
7522
7531
|
function sg(t, e, i, n, s, c, h, p, m, _) {
|
|
7523
|
-
t.createArrays(), t.tilePixelRatio =
|
|
7532
|
+
t.createArrays(), t.tilePixelRatio = Xe / (512 * t.overscaling), t.compareText = {}, t.iconsNeedLinear = !1;
|
|
7524
7533
|
const x = t.layers[0].layout, b = t.layers[0]._unevaluatedLayout._values, w = {};
|
|
7525
7534
|
if (t.textSizeData.kind === "composite") {
|
|
7526
7535
|
const { minZoom: C, maxZoom: k } = t.textSizeData;
|
|
@@ -7549,11 +7558,11 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7549
7558
|
const Be = Ce === "auto" ? we.map(((ze) => Kh(ze))) : [Ce];
|
|
7550
7559
|
let Qe = !1;
|
|
7551
7560
|
for (let ze = 0; ze < Be.length; ze++) {
|
|
7552
|
-
const
|
|
7553
|
-
if (!V.horizontal[
|
|
7561
|
+
const We = Be[ze];
|
|
7562
|
+
if (!V.horizontal[We]) if (Qe) V.horizontal[We] = V.horizontal[0];
|
|
7554
7563
|
else {
|
|
7555
|
-
const et = qh($, e, i, s, k, Le, he, "center",
|
|
7556
|
-
et && (V.horizontal[
|
|
7564
|
+
const et = qh($, e, i, s, k, Le, he, "center", We, xe, W, mr.horizontal, !1, q, U);
|
|
7565
|
+
et && (V.horizontal[We] = et, Qe = et.positionedLines.length === 1);
|
|
7557
7566
|
}
|
|
7558
7567
|
}
|
|
7559
7568
|
Ge("left");
|
|
@@ -7591,56 +7600,56 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7591
7600
|
function ag(t, e, i, n, s, c, h, p, m, _, x, b, w) {
|
|
7592
7601
|
let S = c.textMaxSize.evaluate(e, {}, b);
|
|
7593
7602
|
S === void 0 && (S = h);
|
|
7594
|
-
const M = t.layers[0].layout, C = M.get("icon-offset").evaluate(e, {}, b), k = ff(i.horizontal) || i.vertical, U = w.name === "globe", q = Ii, V = h / q, $ = t.tilePixelRatio * S / q, X = (ve = t.overscaling, t.zoom > 18 && ve > 2 && (ve >>= 1), Math.max(
|
|
7603
|
+
const M = t.layers[0].layout, C = M.get("icon-offset").evaluate(e, {}, b), k = ff(i.horizontal) || i.vertical, U = w.name === "globe", q = Ii, V = h / q, $ = t.tilePixelRatio * S / q, X = (ve = t.overscaling, t.zoom > 18 && ve > 2 && (ve >>= 1), Math.max(Xe / (512 * ve), 1) * M.get("symbol-spacing")), W = M.get("text-padding") * t.tilePixelRatio, ce = M.get("icon-padding") * t.tilePixelRatio, se = mt(M.get("text-max-angle")), _e = M.get("text-rotation-alignment") === "map" && M.get("symbol-placement") !== "point", Se = M.get("icon-rotation-alignment") === "map" && M.get("symbol-placement") !== "point", he = M.get("symbol-placement"), xe = X / 2;
|
|
7595
7604
|
var ve;
|
|
7596
7605
|
const we = M.get("icon-text-fit");
|
|
7597
7606
|
let Ce;
|
|
7598
7607
|
n && we !== "none" && (t.allowVerticalPlacement && i.vertical && (Ce = ef(n, i.vertical, we, M.get("icon-text-fit-padding"), C, V)), k && (n = ef(n, k, we, M.get("icon-text-fit-padding"), C, V)));
|
|
7599
7608
|
const pe = (Le, Ge, Be) => {
|
|
7600
|
-
if (Ge.x < 0 || Ge.x >=
|
|
7609
|
+
if (Ge.x < 0 || Ge.x >= Xe || Ge.y < 0 || Ge.y >= Xe) return;
|
|
7601
7610
|
let Qe = null;
|
|
7602
7611
|
if (U) {
|
|
7603
|
-
const { x: ze, y:
|
|
7604
|
-
Qe = { anchor: new Vn(ze,
|
|
7612
|
+
const { x: ze, y: We, z: et } = w.projectTilePoint(Ge.x, Ge.y, Be);
|
|
7613
|
+
Qe = { anchor: new Vn(ze, We, et, 0, void 0), up: w.upVector(Be, Ge.x, Ge.y) };
|
|
7605
7614
|
}
|
|
7606
|
-
(function(ze,
|
|
7607
|
-
const Ci = ze.addToLineVertexArray(
|
|
7615
|
+
(function(ze, We, et, vt, tt, Ke, jt, nt, ot, Lt, Ft, Ut, Rt, Ht, ei, hi, Bt, _i, di, Kt, Tt, pi, Vt, Gi, fi) {
|
|
7616
|
+
const Ci = ze.addToLineVertexArray(We, vt);
|
|
7608
7617
|
let Si, $i, Mi, Kr, Ma, oc, sc, Wf = 0, Xf = 0, Hf = 0, Kf = 0, hd = -1, dd = -1;
|
|
7609
7618
|
const fn = {};
|
|
7610
7619
|
let Yf = ah("");
|
|
7611
|
-
const vs = et ? et.anchor :
|
|
7620
|
+
const vs = et ? et.anchor : We;
|
|
7612
7621
|
let pd = 0, fd = 0;
|
|
7613
7622
|
if (ot._unevaluatedLayout.getValue("text-radial-offset") === void 0 ? [pd, fd] = ot.layout.get("text-offset").evaluate(Tt, {}, fi).map(((or) => or * Ii)) : (pd = ot.layout.get("text-radial-offset").evaluate(Tt, {}, fi) * Ii, fd = Hh), ze.allowVerticalPlacement && tt.vertical) {
|
|
7614
7623
|
const or = tt.vertical;
|
|
7615
7624
|
if (ei) oc = Yh(or), nt && (sc = Yh(nt));
|
|
7616
7625
|
else {
|
|
7617
7626
|
const sr = ot.layout.get("text-rotate").evaluate(Tt, {}, fi) + 90;
|
|
7618
|
-
Mi = Eu(Lt, vs,
|
|
7627
|
+
Mi = Eu(Lt, vs, We, Ft, Ut, Rt, or, Ht, sr, hi), nt && (Kr = Eu(Lt, vs, We, Ft, Ut, Rt, nt, _i, sr));
|
|
7619
7628
|
}
|
|
7620
7629
|
}
|
|
7621
7630
|
if (Ke) {
|
|
7622
7631
|
const or = ot.layout.get("icon-rotate").evaluate(Tt, {}, fi), sr = ot.layout.get("icon-text-fit") !== "none", ac = uf(Ke, or, Vt, sr), _d = nt ? uf(nt, or, Vt, sr) : void 0;
|
|
7623
|
-
$i = Eu(Lt, vs,
|
|
7632
|
+
$i = Eu(Lt, vs, We, Ft, Ut, Rt, Ke, _i, or), Wf = 4 * ac.length;
|
|
7624
7633
|
const Jf = ze.iconSizeData;
|
|
7625
7634
|
let bs = null;
|
|
7626
|
-
Jf.kind === "source" ? (bs = [Wr * ot.layout.get("icon-size").evaluate(Tt, {}, fi)], bs[0] > bo && Wt(`${ze.layerIds[0]}: Value for "icon-size" is >= ${Yl}. Reduce your "icon-size".`)) : Jf.kind === "composite" && (bs = [Wr * pi.compositeIconSizes[0].evaluate(Tt, {}, fi), Wr * pi.compositeIconSizes[1].evaluate(Tt, {}, fi)], (bs[0] > bo || bs[1] > bo) && Wt(`${ze.layerIds[0]}: Value for "icon-size" is >= ${Yl}. Reduce your "icon-size".`)), ze.addSymbols(ze.icon, ac, bs, Kt, di, Tt, !1, et,
|
|
7635
|
+
Jf.kind === "source" ? (bs = [Wr * ot.layout.get("icon-size").evaluate(Tt, {}, fi)], bs[0] > bo && Wt(`${ze.layerIds[0]}: Value for "icon-size" is >= ${Yl}. Reduce your "icon-size".`)) : Jf.kind === "composite" && (bs = [Wr * pi.compositeIconSizes[0].evaluate(Tt, {}, fi), Wr * pi.compositeIconSizes[1].evaluate(Tt, {}, fi)], (bs[0] > bo || bs[1] > bo) && Wt(`${ze.layerIds[0]}: Value for "icon-size" is >= ${Yl}. Reduce your "icon-size".`)), ze.addSymbols(ze.icon, ac, bs, Kt, di, Tt, !1, et, We, Ci.lineStartIndex, Ci.lineLength, -1, Gi, fi), hd = ze.icon.placedSymbolArray.length - 1, _d && (Xf = 4 * _d.length, ze.addSymbols(ze.icon, _d, bs, Kt, di, Tt, mr.vertical, et, We, Ci.lineStartIndex, Ci.lineLength, -1, Gi, fi), dd = ze.icon.placedSymbolArray.length - 1);
|
|
7627
7636
|
}
|
|
7628
7637
|
for (const or in tt.horizontal) {
|
|
7629
7638
|
const sr = tt.horizontal[or];
|
|
7630
|
-
Si || (Yf = ah(sr.text), ei ? Ma = Yh(sr) : Si = Eu(Lt, vs,
|
|
7639
|
+
Si || (Yf = ah(sr.text), ei ? Ma = Yh(sr) : Si = Eu(Lt, vs, We, Ft, Ut, Rt, sr, Ht, ot.layout.get("text-rotate").evaluate(Tt, {}, fi), hi));
|
|
7631
7640
|
const ac = sr.positionedLines.length === 1;
|
|
7632
|
-
if (Hf += pf(ze, et,
|
|
7641
|
+
if (Hf += pf(ze, et, We, sr, jt, ot, ei, Tt, hi, Ci, tt.vertical ? mr.horizontal : mr.horizontalOnly, ac ? Object.keys(tt.horizontal) : [or], fn, hd, pi, Gi, fi), ac) break;
|
|
7633
7642
|
}
|
|
7634
|
-
tt.vertical && (Kf += pf(ze, et,
|
|
7643
|
+
tt.vertical && (Kf += pf(ze, et, We, tt.vertical, jt, ot, ei, Tt, hi, Ci, mr.vertical, ["vertical"], fn, dd, pi, Gi, fi));
|
|
7635
7644
|
let Ao = -1;
|
|
7636
7645
|
const md = (or, sr) => or ? Math.max(or, sr) : sr;
|
|
7637
7646
|
Ao = md(Ma, Ao), Ao = md(oc, Ao), Ao = md(sc, Ao);
|
|
7638
7647
|
const Rg = Ao > -1 ? 1 : 0;
|
|
7639
|
-
ze.glyphOffsetArray.length >= To.MAX_GLYPHS && Wt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Tt.sortKey !== void 0 && ze.addToSortKeyRanges(ze.symbolInstances.length, Tt.sortKey), ze.symbolInstances.emplaceBack(vs.x, vs.y, vs.z,
|
|
7648
|
+
ze.glyphOffsetArray.length >= To.MAX_GLYPHS && Wt("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"), Tt.sortKey !== void 0 && ze.addToSortKeyRanges(ze.symbolInstances.length, Tt.sortKey), ze.symbolInstances.emplaceBack(vs.x, vs.y, vs.z, We.x, We.y, fn.right >= 0 ? fn.right : -1, fn.center >= 0 ? fn.center : -1, fn.left >= 0 ? fn.left : -1, fn.vertical >= 0 ? fn.vertical : -1, hd, dd, Yf, Si !== void 0 ? Si : ze.collisionBoxArray.length, Si !== void 0 ? Si + 1 : ze.collisionBoxArray.length, Mi !== void 0 ? Mi : ze.collisionBoxArray.length, Mi !== void 0 ? Mi + 1 : ze.collisionBoxArray.length, $i !== void 0 ? $i : ze.collisionBoxArray.length, $i !== void 0 ? $i + 1 : ze.collisionBoxArray.length, Kr || ze.collisionBoxArray.length, Kr ? Kr + 1 : ze.collisionBoxArray.length, Ft, Hf, Kf, Wf, Xf, Rg, 0, pd, fd, Ao);
|
|
7640
7649
|
})(t, Ge, Qe, Le, i, n, s, Ce, t.layers[0], t.collisionBoxArray, e.index, e.sourceLayerIndex, t.index, W, _e, m, 0, ce, Se, C, e, c, _, x, b);
|
|
7641
7650
|
};
|
|
7642
|
-
if (he === "line") for (const Le of af(e.geometry, 0, 0,
|
|
7643
|
-
const Ge = Q_(Le, X, se, i.vertical || k, n, q, $, t.overscaling,
|
|
7651
|
+
if (he === "line") for (const Le of af(e.geometry, 0, 0, Xe, Xe)) {
|
|
7652
|
+
const Ge = Q_(Le, X, se, i.vertical || k, n, q, $, t.overscaling, Xe);
|
|
7644
7653
|
for (const Be of Ge) k && lg(t, k.text, xe, Be) || pe(Le, Be, b);
|
|
7645
7654
|
}
|
|
7646
7655
|
else if (he === "line-center") {
|
|
@@ -7661,8 +7670,8 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7661
7670
|
const xe = [];
|
|
7662
7671
|
if (X.positionedLines.length === 0) return xe;
|
|
7663
7672
|
const ve = ce.layout.get("text-rotate").evaluate(_e, {}) * Math.PI / 180, we = (function(Be) {
|
|
7664
|
-
const Qe = Be[0], ze = Be[1],
|
|
7665
|
-
return
|
|
7673
|
+
const Qe = Be[0], ze = Be[1], We = Qe * ze;
|
|
7674
|
+
return We > 0 ? [Qe, -ze] : We < 0 ? [-Qe, ze] : Qe === 0 ? [ze, Qe] : [ze, -Qe];
|
|
7666
7675
|
})(W);
|
|
7667
7676
|
let Ce = Math.abs(X.top - X.bottom);
|
|
7668
7677
|
for (const Be of X.positionedLines) Ce -= Be.lineOffset;
|
|
@@ -7673,7 +7682,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7673
7682
|
Ge = eg(X, Le, Ge, Be);
|
|
7674
7683
|
for (const ze of Qe.positionedGlyphs) {
|
|
7675
7684
|
if (!ze.rect) continue;
|
|
7676
|
-
const
|
|
7685
|
+
const We = ze.rect || {};
|
|
7677
7686
|
let et = qp + 1, vt = !0, tt = 1, Ke = 0;
|
|
7678
7687
|
if (ze.imageName) {
|
|
7679
7688
|
const Vt = Se[ze.imageName];
|
|
@@ -7706,7 +7715,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7706
7715
|
Vt = se ? new Re(0, 0) : Ht ? new Re(we[0], we[1]) : new Re(W[0], W[1]), Bt._rotateAround(ve, Vt), _i._rotateAround(ve, Vt), di._rotateAround(ve, Vt), Kt._rotateAround(ve, Vt);
|
|
7707
7716
|
}
|
|
7708
7717
|
const Tt = new Re(0, 0), pi = new Re(0, 0);
|
|
7709
|
-
xe.push({ tl: Bt, tr: _i, bl: di, br: Kt, tex:
|
|
7718
|
+
xe.push({ tl: Bt, tr: _i, bl: di, br: Kt, tex: We, writingMode: X.writingMode, glyphOffset: Ft, sectionIndex: ze.sectionIndex, isSDF: vt, pixelOffsetTL: Tt, pixelOffsetBR: pi, minFontScaleX: 0, minFontScaleY: 0 });
|
|
7710
7719
|
}
|
|
7711
7720
|
}
|
|
7712
7721
|
return xe;
|
|
@@ -7813,7 +7822,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7813
7822
|
const _ = ys(p, this);
|
|
7814
7823
|
s = 1, c = _.x + n.wrap * _.scale, h = _.y, hs(m, m, [s / _.scale, s / _.scale, e.pixelsPerMeter / i]);
|
|
7815
7824
|
} else s = i / e.zoomScale(p.z), c = (p.x + Math.pow(2, p.z) * n.wrap) * s, h = p.y * s;
|
|
7816
|
-
return Il(m, m, [c, h, 0]), hs(m, m, [s /
|
|
7825
|
+
return Il(m, m, [c, h, 0]), hs(m, m, [s / Xe, s / Xe, 1]), m;
|
|
7817
7826
|
}
|
|
7818
7827
|
upVector(e, i, n) {
|
|
7819
7828
|
return [0, 0, 1];
|
|
@@ -7971,7 +7980,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
7971
7980
|
}
|
|
7972
7981
|
locationPoint(e, i) {
|
|
7973
7982
|
const n = ca(i.lat, i.lng), s = Vi([], n), c = e.elevation ? e.elevation.getAtPointOrZero(e.locationCoordinate(i), e._centerAltitude) : e._centerAltitude;
|
|
7974
|
-
Dl(n, n, s, qr(1, 0) *
|
|
7983
|
+
Dl(n, n, s, qr(1, 0) * Xe * c);
|
|
7975
7984
|
const h = $r(new Float64Array(16));
|
|
7976
7985
|
return us(h, e.pixelMatrix, e.globeMatrix), ri(n, n, h), new Re(n[0], n[1]);
|
|
7977
7986
|
}
|
|
@@ -8205,8 +8214,8 @@ Use an identity property function instead: ${w}.`)];
|
|
|
8205
8214
|
addSymbols(e, i, n, s, c, h, p, m, _, x, b, w, S, M) {
|
|
8206
8215
|
const C = e.indexArray, k = e.layoutVertexArray, U = e.globeExtVertexArray, q = e.segments.prepareSegment(4 * i.length, k, C, this.canOverlap ? h.sortKey : void 0), V = this.glyphOffsetArray.length, $ = q.vertexLength, X = this.allowVerticalPlacement && p === mr.vertical ? Math.PI / 2 : 0, W = h.text && h.text.sections;
|
|
8207
8216
|
for (let se = 0; se < i.length; se++) {
|
|
8208
|
-
const { tl: _e, tr: Se, bl: he, br: xe, tex: ve, pixelOffsetTL: we, pixelOffsetBR: Ce, minFontScaleX: pe, minFontScaleY: Le, glyphOffset: Ge, isSDF: Be, sectionIndex: Qe } = i[se], ze = q.vertexLength,
|
|
8209
|
-
if (Au(k, _.x, _.y, _e.x,
|
|
8217
|
+
const { tl: _e, tr: Se, bl: he, br: xe, tex: ve, pixelOffsetTL: we, pixelOffsetBR: Ce, minFontScaleX: pe, minFontScaleY: Le, glyphOffset: Ge, isSDF: Be, sectionIndex: Qe } = i[se], ze = q.vertexLength, We = Ge[1];
|
|
8218
|
+
if (Au(k, _.x, _.y, _e.x, We + _e.y, ve.x, ve.y, n, Be, we.x, we.y, pe, Le), Au(k, _.x, _.y, Se.x, We + Se.y, ve.x + ve.w, ve.y, n, Be, Ce.x, we.y, pe, Le), Au(k, _.x, _.y, he.x, We + he.y, ve.x, ve.y + ve.h, n, Be, we.x, Ce.y, pe, Le), Au(k, _.x, _.y, xe.x, We + xe.y, ve.x + ve.w, ve.y + ve.h, n, Be, Ce.x, Ce.y, pe, Le), m) {
|
|
8210
8219
|
const { x: et, y: vt, z: tt } = m.anchor, [Ke, jt, nt] = m.up;
|
|
8211
8220
|
Iu(U, et, vt, tt, Ke, jt, nt), Iu(U, et, vt, tt, Ke, jt, nt), Iu(U, et, vt, tt, Ke, jt, nt), Iu(U, et, vt, tt, Ke, jt, nt), Cu(e.dynamicLayoutVertexArray, et, vt, tt, X);
|
|
8212
8221
|
} else Cu(e.dynamicLayoutVertexArray, _.x, _.y, _.z, X);
|
|
@@ -8590,9 +8599,9 @@ Use an identity property function instead: ${w}.`)];
|
|
|
8590
8599
|
X < $.length && (w[0] = $.geta_centroid_pos0(X), w[1] = $.geta_centroid_pos1(X));
|
|
8591
8600
|
}
|
|
8592
8601
|
if (w[0] === 0 && w[1] === 1) return !1;
|
|
8593
|
-
c.projection.name === "globe" && (n = zp([n], [new Re(0, 0), new Re(
|
|
8602
|
+
c.projection.name === "globe" && (n = zp([n], [new Re(0, 0), new Re(Xe, Xe)], t.tileID.canonical).map((($) => $.polygon)).flat());
|
|
8594
8603
|
const k = S ? p : null, [U, q] = (function($, X, W, ce, se, _e, Se, he, xe, ve, we) {
|
|
8595
|
-
return $.projection.name === "globe" ? (function(Ce, pe, Le, Ge, Be, Qe, ze,
|
|
8604
|
+
return $.projection.name === "globe" ? (function(Ce, pe, Le, Ge, Be, Qe, ze, We, et, vt, tt) {
|
|
8596
8605
|
const Ke = [], jt = [], nt = Ce.projection.upVectorScale(tt, Ce.center.lat, Ce.worldSize).metersToTile, ot = [0, 0, 0, 1], Lt = [0, 0, 0, 1], Ft = (Rt, Ht, ei, hi) => {
|
|
8597
8606
|
Rt[0] = Ht, Rt[1] = ei, Rt[2] = hi, Rt[3] = 1;
|
|
8598
8607
|
}, Ut = Cp();
|
|
@@ -8603,7 +8612,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
8603
8612
|
const Bt = hi.x + Be.x, _i = hi.y + Be.y, di = Ce.projection.projectTilePoint(Bt, _i, tt), Kt = Ce.projection.upVector(tt, hi.x, hi.y);
|
|
8604
8613
|
let Tt = Le, pi = Ge;
|
|
8605
8614
|
if (ze) {
|
|
8606
|
-
const Vt = Lp(Bt, _i, Le, Ge, ze,
|
|
8615
|
+
const Vt = Lp(Bt, _i, Le, Ge, ze, We, et, vt);
|
|
8607
8616
|
Tt += Vt.base, pi += Vt.top;
|
|
8608
8617
|
}
|
|
8609
8618
|
Le !== 0 ? Ft(ot, di.x + Kt[0] * nt * Tt, di.y + Kt[1] * nt * Tt, di.z + Kt[2] * nt * Tt) : Ft(ot, di.x, di.y, di.z), Ft(Lt, di.x + Kt[0] * nt * pi, di.y + Kt[1] * nt * pi, di.z + Kt[2] * nt * pi), ri(ot, ot, Qe), ri(Lt, Lt, Qe), Ht.push(new ma(ot[0], ot[1], ot[2])), ei.push(new ma(Lt[0], Lt[1], Lt[2]));
|
|
@@ -8611,12 +8620,12 @@ Use an identity property function instead: ${w}.`)];
|
|
|
8611
8620
|
Ke.push(Ht), jt.push(ei);
|
|
8612
8621
|
}
|
|
8613
8622
|
return [Ke, jt];
|
|
8614
|
-
})($, X, W, ce, se, _e, Se, he, xe, ve, we) : Se ? (function(Ce, pe, Le, Ge, Be, Qe, ze,
|
|
8623
|
+
})($, X, W, ce, se, _e, Se, he, xe, ve, we) : Se ? (function(Ce, pe, Le, Ge, Be, Qe, ze, We, et) {
|
|
8615
8624
|
const vt = [], tt = [], Ke = [0, 0, 0, 1];
|
|
8616
8625
|
for (const jt of Ce) {
|
|
8617
8626
|
const nt = [], ot = [];
|
|
8618
8627
|
for (const Lt of jt) {
|
|
8619
|
-
const Ft = Lt.x + Ge.x, Ut = Lt.y + Ge.y, Rt = Lp(Ft, Ut, pe, Le, Qe, ze,
|
|
8628
|
+
const Ft = Lt.x + Ge.x, Ut = Lt.y + Ge.y, Rt = Lp(Ft, Ut, pe, Le, Qe, ze, We, et);
|
|
8620
8629
|
Ke[0] = Ft, Ke[1] = Ut, Ke[2] = Rt.base, Ke[3] = 1, ds(Ke, Ke, Be), Ke[3] = Math.max(Ke[3], 1e-5);
|
|
8621
8630
|
const Ht = new ma(Ke[0] / Ke[3], Ke[1] / Ke[3], Ke[2] / Ke[3]);
|
|
8622
8631
|
Ke[0] = Ft, Ke[1] = Ut, Ke[2] = Rt.top, Ke[3] = 1, ds(Ke, Ke, Be), Ke[3] = Math.max(Ke[3], 1e-5);
|
|
@@ -8627,11 +8636,11 @@ Use an identity property function instead: ${w}.`)];
|
|
|
8627
8636
|
}
|
|
8628
8637
|
return [vt, tt];
|
|
8629
8638
|
})(X, W, ce, se, _e, Se, he, xe, ve) : (function(Ce, pe, Le, Ge, Be) {
|
|
8630
|
-
const Qe = [], ze = [],
|
|
8639
|
+
const Qe = [], ze = [], We = Be[8] * pe, et = Be[9] * pe, vt = Be[10] * pe, tt = Be[11] * pe, Ke = Be[8] * Le, jt = Be[9] * Le, nt = Be[10] * Le, ot = Be[11] * Le;
|
|
8631
8640
|
for (const Lt of Ce) {
|
|
8632
8641
|
const Ft = [], Ut = [];
|
|
8633
8642
|
for (const Rt of Lt) {
|
|
8634
|
-
const Ht = Rt.x + Ge.x, ei = Rt.y + Ge.y, hi = Be[0] * Ht + Be[4] * ei + Be[12], Bt = Be[1] * Ht + Be[5] * ei + Be[13], _i = Be[2] * Ht + Be[6] * ei + Be[14], di = Be[3] * Ht + Be[7] * ei + Be[15], Kt = hi +
|
|
8643
|
+
const Ht = Rt.x + Ge.x, ei = Rt.y + Ge.y, hi = Be[0] * Ht + Be[4] * ei + Be[12], Bt = Be[1] * Ht + Be[5] * ei + Be[13], _i = Be[2] * Ht + Be[6] * ei + Be[14], di = Be[3] * Ht + Be[7] * ei + Be[15], Kt = hi + We, Tt = Bt + et, pi = _i + vt, Vt = Math.max(di + tt, 1e-5), Gi = hi + Ke, fi = Bt + jt, Ci = _i + nt, Si = Math.max(di + ot, 1e-5);
|
|
8635
8644
|
Ft.push(new ma(Kt / Vt, Tt / Vt, pi / Vt)), Ut.push(new ma(Gi / Si, fi / Si, Ci / Si));
|
|
8636
8645
|
}
|
|
8637
8646
|
Qe.push(Ft), ze.push(Ut);
|
|
@@ -8895,7 +8904,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
8895
8904
|
return t === 0 ? -0.03125 : t === 32 ? 0.03125 : 0;
|
|
8896
8905
|
}
|
|
8897
8906
|
var Sf = te([{ name: "a_pos", type: "Int16", components: 2 }, { name: "a_texture_pos", type: "Int16", components: 2 }]);
|
|
8898
|
-
const Mf = { type: 2, extent:
|
|
8907
|
+
const Mf = { type: 2, extent: Xe, loadGeometry: () => [[new Re(0, 0), new Re(Xe + 1, 0), new Re(Xe + 1, Xe + 1), new Re(0, Xe + 1), new Re(0, 0)]] };
|
|
8899
8908
|
class id {
|
|
8900
8909
|
constructor(e, i, n, s, c) {
|
|
8901
8910
|
this.tileID = e, this.uid = $n(), this.uses = 0, this.tileSize = i, this.tileZoom = n, this.buckets = {}, this.expirationTime = null, this.queryPadding = 0, this.hasSymbolBuckets = !1, this.hasRTLText = !1, this.dependencies = {}, this.isRaster = c, this.expiredRequestCount = 0, this.state = "loading", s && s.transform && (this.projection = s.transform.projection);
|
|
@@ -9078,7 +9087,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
9078
9087
|
const _ = ys(p, m), x = Math.pow(2, p.z);
|
|
9079
9088
|
for (let k = 0; k < hn; k++) for (let U = 0; U < hn; U++) {
|
|
9080
9089
|
const q = fr((p.x + (U + Ef(U)) / Mr) / x), V = ki((p.y + (k + Ef(k)) / Mr) / x), $ = m.project(q, V), X = k * hn + U;
|
|
9081
|
-
dn[2 * X + 0] = Math.round(($.x * _.scale - _.x) *
|
|
9090
|
+
dn[2 * X + 0] = Math.round(($.x * _.scale - _.x) * Xe), dn[2 * X + 1] = Math.round(($.y * _.scale - _.y) * Xe);
|
|
9082
9091
|
}
|
|
9083
9092
|
So.fill(0), Pu.fill(0);
|
|
9084
9093
|
for (let k = 2045; k >= 0; k--) {
|
|
@@ -9089,7 +9098,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
9089
9098
|
let S = 0;
|
|
9090
9099
|
function M(k, U) {
|
|
9091
9100
|
const q = U * hn + k;
|
|
9092
|
-
return Pu[q] === 0 && (b.emplaceBack(dn[2 * q + 0], dn[2 * q + 1], k *
|
|
9101
|
+
return Pu[q] === 0 && (b.emplaceBack(dn[2 * q + 0], dn[2 * q + 1], k * Xe / Mr, U * Xe / Mr), Pu[q] = ++S), Pu[q] - 1;
|
|
9093
9102
|
}
|
|
9094
9103
|
function C(k, U, q, V, $, X) {
|
|
9095
9104
|
const W = k + q >> 1, ce = U + V >> 1;
|
|
@@ -9123,7 +9132,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
9123
9132
|
const _ = 1 << n.z, x = cn(s.center.lng), b = un(s.center.lat), w = (n.x + 0.5) / _ - x;
|
|
9124
9133
|
let S = 0;
|
|
9125
9134
|
w > 0.5 ? S = -1 : w < -0.5 && (S = 1);
|
|
9126
|
-
let M = (e /
|
|
9135
|
+
let M = (e / Xe + n.x) / _ + S, C = (i / Xe + n.y) / _;
|
|
9127
9136
|
M = (M - x) * s._pixelsPerMercatorPixel + x, C = (C - b) * s._pixelsPerMercatorPixel + b;
|
|
9128
9137
|
const k = [M * s.worldSize, C * s.worldSize, 0];
|
|
9129
9138
|
ri(k, k, h), m = fs(m, k, p);
|
|
@@ -9139,11 +9148,11 @@ Use an identity property function instead: ${w}.`)];
|
|
|
9139
9148
|
const ce = this._globePoint(X, W, i, n, s, c, h);
|
|
9140
9149
|
_.emplaceBack(ce[0], ce[1], ce[2]), m.emplaceBack(V + $);
|
|
9141
9150
|
}
|
|
9142
|
-
}, b =
|
|
9151
|
+
}, b = Xe;
|
|
9143
9152
|
x(0, 0, b, 0, 16), x(b, 0, b, b, 16), x(b, b, 0, b, 16), x(0, b, 0, 0, 16), this._tileDebugIndexBuffer = e.createIndexBuffer(m), this._tileDebugBuffer = e.createVertexBuffer(p, Ll.members), this._globeTileDebugBorderBuffer = e.createVertexBuffer(_, Gd.members), this._tileDebugSegments = ci.simpleSegment(0, 0, p.length, m.length);
|
|
9144
9153
|
}
|
|
9145
9154
|
_makeGlobeTileDebugTextBuffer(e, i, n, s, c, h) {
|
|
9146
|
-
const p =
|
|
9155
|
+
const p = Xe / 4, m = new Ee(), _ = new $e(), x = new oe(), b = 25;
|
|
9147
9156
|
_.reserve(32), m.reserve(b), x.reserve(b);
|
|
9148
9157
|
const w = (S, M) => b * S + M;
|
|
9149
9158
|
for (let S = 0; S < b; S++) {
|
|
@@ -9887,7 +9896,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
9887
9896
|
const s = n || e.findDEMTileFor(i);
|
|
9888
9897
|
if (!s || !s.dem) return;
|
|
9889
9898
|
const c = s.dem, h = s.tileID, p = 1 << i.canonical.z - h.canonical.z;
|
|
9890
|
-
return new ku(s, s.tileSize /
|
|
9899
|
+
return new ku(s, s.tileSize / Xe / p, [(i.canonical.x / p - h.canonical.x) * c.dim, (i.canonical.y / p - h.canonical.y) * c.dim]);
|
|
9891
9900
|
}
|
|
9892
9901
|
tileCoordToPixel(e, i) {
|
|
9893
9902
|
const n = i * this._scale + this._offset[1], s = Math.floor(e * this._scale + this._offset[0]), c = Math.floor(n);
|
|
@@ -9906,7 +9915,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
9906
9915
|
}
|
|
9907
9916
|
class Of {
|
|
9908
9917
|
constructor(e, i) {
|
|
9909
|
-
this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new zn(
|
|
9918
|
+
this.tileID = e, this.x = e.canonical.x, this.y = e.canonical.y, this.z = e.canonical.z, this.grid = new zn(Xe, 16, 0), this.featureIndexArray = new as(), this.promoteId = i;
|
|
9910
9919
|
}
|
|
9911
9920
|
insert(e, i, n, s, c, h = 0) {
|
|
9912
9921
|
const p = this.featureIndexArray.length;
|
|
@@ -9918,7 +9927,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
9918
9927
|
const S = x[w];
|
|
9919
9928
|
b[0] = Math.min(b[0], S.x), b[1] = Math.min(b[1], S.y), b[2] = Math.max(b[2], S.x), b[3] = Math.max(b[3], S.y);
|
|
9920
9929
|
}
|
|
9921
|
-
b[0] <
|
|
9930
|
+
b[0] < Xe && b[1] < Xe && b[2] >= 0 && b[3] >= 0 && m.insert(p, b[0], b[1], b[2], b[3]);
|
|
9922
9931
|
}
|
|
9923
9932
|
}
|
|
9924
9933
|
loadVTLayers() {
|
|
@@ -10343,7 +10352,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
10343
10352
|
remove() {
|
|
10344
10353
|
this.scheduler.remove(), this.target.removeEventListener("message", this.receive, !1);
|
|
10345
10354
|
}
|
|
10346
|
-
}, a.CanonicalTileID = mu, a.Color = ii, a.ColorMode = pn, a.CullFaceMode = Hr, a.DEMData = Du, a.DataConstantProperty = I, a.DedupedRequest = jf, a.DepthMode = Sa, a.EXTENT =
|
|
10355
|
+
}, a.CanonicalTileID = mu, a.Color = ii, a.ColorMode = pn, a.CullFaceMode = Hr, a.DEMData = Du, a.DataConstantProperty = I, a.DedupedRequest = jf, a.DepthMode = Sa, a.EXTENT = Xe, a.Elevation = class {
|
|
10347
10356
|
isDataAvailableAtPoint(t) {
|
|
10348
10357
|
const e = this._source();
|
|
10349
10358
|
if (this.isUsingMockSource() || !e || t.y < 0 || t.y > 1) return !1;
|
|
@@ -10365,7 +10374,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
10365
10374
|
}
|
|
10366
10375
|
getAtTileOffset(t, e, i) {
|
|
10367
10376
|
const n = 1 << t.canonical.z;
|
|
10368
|
-
return this.getAtPointOrZero(new ha(t.wrap + (t.canonical.x + e /
|
|
10377
|
+
return this.getAtPointOrZero(new ha(t.wrap + (t.canonical.x + e / Xe) / n, (t.canonical.y + i / Xe) / n));
|
|
10369
10378
|
}
|
|
10370
10379
|
getAtTileOffsetFunc(t, e, i, n) {
|
|
10371
10380
|
return (s) => {
|
|
@@ -10635,7 +10644,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
10635
10644
|
}
|
|
10636
10645
|
}
|
|
10637
10646
|
}
|
|
10638
|
-
}, a.UnwrappedTileID = Dp, a.ValidationError =
|
|
10647
|
+
}, a.UnwrappedTileID = Dp, a.ValidationError = Ve, a.VectorTileFeature = pu, a.VectorTileWorkerSource = class extends Bo {
|
|
10639
10648
|
constructor(t, e, i, n, s) {
|
|
10640
10649
|
super(), this.actor = t, this.layerIndex = e, this.availableImages = i, this.loadVectorData = s || Gf, this.loading = {}, this.loaded = {}, this.deduped = new jf(t.scheduler), this.isSpriteLoaded = n, this.scheduler = t.scheduler;
|
|
10641
10650
|
}
|
|
@@ -10771,9 +10780,9 @@ Use an identity property function instead: ${w}.`)];
|
|
|
10771
10780
|
const i = Math.pow(Math.abs(Math.sin(mt(t))), 3);
|
|
10772
10781
|
return Math.round(i * (Rl.length - 1));
|
|
10773
10782
|
}, a.getMapSessionAPI = bi, a.getPerformanceMeasurement = Pa, a.getProjection = vf, a.getRTLTextPluginStatus = f, a.getReferrer = bn, a.getTilePoint = function(t, { x: e, y: i }, n = 0) {
|
|
10774
|
-
return new Re(((e - n) * t.scale - t.x) *
|
|
10783
|
+
return new Re(((e - n) * t.scale - t.x) * Xe, (i * t.scale - t.y) * Xe);
|
|
10775
10784
|
}, a.getTileVec3 = function(t, e, i = 0) {
|
|
10776
|
-
return aa(((e.x - i) * t.scale - t.x) *
|
|
10785
|
+
return aa(((e.x - i) * t.scale - t.x) * Xe, (e.y * t.scale - t.y) * Xe, Qd(e.z, e.y));
|
|
10777
10786
|
}, a.getVideo = function(t, e) {
|
|
10778
10787
|
const i = fe.document.createElement("video");
|
|
10779
10788
|
i.muted = !0, i.onloadstart = function() {
|
|
@@ -10792,7 +10801,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
10792
10801
|
const i = [0, 0, 0];
|
|
10793
10802
|
return ri(i, i, Ol(ln(e.canonical))), ri(i, i, t), i;
|
|
10794
10803
|
}, a.globeMetersToEcef = tu, a.globeNormalizeECEF = Ol, a.globePixelsToTileUnits = function(t, e) {
|
|
10795
|
-
return
|
|
10804
|
+
return Xe / (512 * Math.pow(2, t)) * ru(ln(e));
|
|
10796
10805
|
}, a.globePoleMatrixForTile = function(t, e, i) {
|
|
10797
10806
|
const n = $r(new Float64Array(16)), s = (e / (1 << t) - 0.5) * Math.PI * 2;
|
|
10798
10807
|
return eu(n, i.globeMatrix, s), Float32Array.from(n);
|
|
@@ -13459,8 +13468,8 @@ Use an identity property function instead: ${w}.`)];
|
|
|
13459
13468
|
continue;
|
|
13460
13469
|
}
|
|
13461
13470
|
let be = {};
|
|
13462
|
-
const Ae = g ? null : v, Ze =
|
|
13463
|
-
K = Ze.useVertical, Ae && Ze.needsFlipping && (be = {}), (Ze.notEnoughRoom || K || Ze.needsFlipping &&
|
|
13471
|
+
const Ae = g ? null : v, Ze = Ue(Y, ge, !1, y, r, d, f, l.glyphOffsetArray, I, B, F, Me, le, be, N, Ae, T.projection, E, g);
|
|
13472
|
+
K = Ze.useVertical, Ae && Ze.needsFlipping && (be = {}), (Ze.notEnoughRoom || K || Ze.needsFlipping && Ue(Y, ge, !0, y, r, d, f, l.glyphOffsetArray, I, B, F, Me, le, be, N, Ae, T.projection, E, g).notEnoughRoom) && ur(ie, B);
|
|
13464
13473
|
}
|
|
13465
13474
|
u ? (l.text.dynamicLayoutVertexBuffer.updateData(B), F && l.text.globeExtVertexBuffer.updateData(F)) : (l.icon.dynamicLayoutVertexBuffer.updateData(B), F && l.icon.globeExtVertexBuffer.updateData(F));
|
|
13466
13475
|
}
|
|
@@ -13475,7 +13484,7 @@ Use an identity property function instead: ${w}.`)];
|
|
|
13475
13484
|
return d === 0 || Math.abs(f / d) > Bo;
|
|
13476
13485
|
})(o, u) ? r === Dr.flipRequired ? { needsFlipping: !0 } : null : o < 0 ? { needsFlipping: !0 } : null;
|
|
13477
13486
|
}
|
|
13478
|
-
function
|
|
13487
|
+
function Ue(l, r, o, u, d, f, g, y, v, E, T, A, D, R, O, B, F, I, L) {
|
|
13479
13488
|
const N = r / 24, j = l.lineOffsetX * N, K = l.lineOffsetY * N, { lineStartIndex: J, glyphStartIndex: Y, numGlyphs: ie, segment: te, writingMode: le, flipState: Ee } = l, oe = J + l.lineLength, ye = (ue) => {
|
|
13480
13489
|
if (T) {
|
|
13481
13490
|
const [Me, be, Ae] = ue.up, Ze = E.length;
|
|
@@ -18882,7 +18891,7 @@ precision highp float;
|
|
|
18882
18891
|
let T = r ? `/${g}/${y}/${u}` : `${u}/${y}/${g}`;
|
|
18883
18892
|
return (v || E) && (T += "/" + Math.round(10 * v) / 10), E && (T += `/${Math.round(E)}`), T;
|
|
18884
18893
|
}
|
|
18885
|
-
const ts = { linearity: 0.3, easing: a.bezier(0, 0, 0.3, 1) }, Ys = a.extend({ deceleration: 2500, maxSpeed: 1400 }, ts), Js = a.extend({ deceleration: 20, maxSpeed: 1400 }, ts),
|
|
18894
|
+
const ts = { linearity: 0.3, easing: a.bezier(0, 0, 0.3, 1) }, Ys = a.extend({ deceleration: 2500, maxSpeed: 1400 }, ts), Js = a.extend({ deceleration: 20, maxSpeed: 1400 }, ts), Ve = a.extend({ deceleration: 1e3, maxSpeed: 360 }, ts), hr = a.extend({ deceleration: 1e3, maxSpeed: 90 }, ts);
|
|
18886
18895
|
class Rc {
|
|
18887
18896
|
constructor(r) {
|
|
18888
18897
|
this._map = r, this.clear();
|
|
@@ -18911,7 +18920,7 @@ precision highp float;
|
|
|
18911
18920
|
d.zoom = this._map.transform.zoom + f.amount, is(d, f);
|
|
18912
18921
|
}
|
|
18913
18922
|
if (o.bearing) {
|
|
18914
|
-
const f = rs(o.bearing, u,
|
|
18923
|
+
const f = rs(o.bearing, u, Ve);
|
|
18915
18924
|
d.bearing = this._map.transform.bearing + a.clamp(f.amount, -179, 179), is(d, f);
|
|
18916
18925
|
}
|
|
18917
18926
|
if (o.pitch) {
|
|
@@ -20371,7 +20380,7 @@ precision highp float;
|
|
|
20371
20380
|
return l;
|
|
20372
20381
|
}
|
|
20373
20382
|
const Pn = { center: "translate(-50%,-50%)", top: "translate(-50%,0)", "top-left": "translate(0,0)", "top-right": "translate(-100%,0)", bottom: "translate(-50%,-100%)", "bottom-left": "translate(0,-100%)", "bottom-right": "translate(-100%,-100%)", left: "translate(0,-50%)", right: "translate(-100%,-50%)" };
|
|
20374
|
-
class
|
|
20383
|
+
class Fe extends a.Evented {
|
|
20375
20384
|
constructor(r, o) {
|
|
20376
20385
|
if (super(), (r instanceof a.window.HTMLElement || o) && (r = a.extend({ element: r }, o)), a.bindAll(["_update", "_onMove", "_onUp", "_addDragHandler", "_onMapClick", "_onKeyPress", "_clearFadeTimer"], this), this._anchor = r && r.anchor || "center", this._color = r && r.color || "#3FB1CE", this._scale = r && r.scale || 1, this._draggable = r && r.draggable || !1, this._clickTolerance = r && r.clickTolerance || 0, this._isDragging = !1, this._state = "inactive", this._rotation = r && r.rotation || 0, this._rotationAlignment = r && r.rotationAlignment || "auto", this._pitchAlignment = r && r.pitchAlignment && r.pitchAlignment || "auto", this._updateMoving = () => this._update(!0), this._occludedOpacity = r && r.occludedOpacity || 0.2, r && r.element) this._element = r.element, this._offset = a.Point.convert(r && r.offset || [0, 0]);
|
|
20377
20386
|
else {
|
|
@@ -21437,7 +21446,7 @@ precision highp float;
|
|
|
21437
21446
|
const r = this._map._getUIString("GeolocateControl.FindMyLocation");
|
|
21438
21447
|
this._geolocateButton.setAttribute("aria-label", r), this._geolocateButton.firstElementChild && this._geolocateButton.firstElementChild.setAttribute("title", r);
|
|
21439
21448
|
}
|
|
21440
|
-
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = st("div", "mapboxgl-user-location"), this._dotElement.appendChild(st("div", "mapboxgl-user-location-dot")), this._dotElement.appendChild(st("div", "mapboxgl-user-location-heading")), this._userLocationDotMarker = new
|
|
21449
|
+
this.options.trackUserLocation && (this._geolocateButton.setAttribute("aria-pressed", "false"), this._watchState = "OFF"), this.options.showUserLocation && (this._dotElement = st("div", "mapboxgl-user-location"), this._dotElement.appendChild(st("div", "mapboxgl-user-location-dot")), this._dotElement.appendChild(st("div", "mapboxgl-user-location-heading")), this._userLocationDotMarker = new Fe({ element: this._dotElement, rotationAlignment: "map", pitchAlignment: "map" }), this._circleElement = st("div", "mapboxgl-user-location-accuracy-circle"), this._accuracyCircleMarker = new Fe({ element: this._circleElement, pitchAlignment: "map" }), this.options.trackUserLocation && (this._watchState = "OFF"), this._map.on("zoom", this._onZoom)), this._geolocateButton.addEventListener("click", this.trigger.bind(this)), this._setup = !0, this.options.trackUserLocation && this._map.on("movestart", ((r) => {
|
|
21441
21450
|
r.geolocateSource || this._watchState !== "ACTIVE_LOCK" || r.originalEvent && r.originalEvent.type === "resize" || (this._watchState = "BACKGROUND", this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"), this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"), this.fire(new a.Event("trackuserlocationend")));
|
|
21442
21451
|
}));
|
|
21443
21452
|
}
|
|
@@ -21691,7 +21700,7 @@ precision highp float;
|
|
|
21691
21700
|
_setOpacity(l) {
|
|
21692
21701
|
this._container && (this._container.style.opacity = `${l}`), this._content && (this._content.style.pointerEvents = l ? "auto" : "none");
|
|
21693
21702
|
}
|
|
21694
|
-
}, Marker:
|
|
21703
|
+
}, Marker: Fe, Style: xr, LngLat: a.LngLat, LngLatBounds: a.LngLatBounds, Point: a.Point, MercatorCoordinate: a.MercatorCoordinate, FreeCameraOptions: Dc, Evented: a.Evented, config: a.config, prewarm: function() {
|
|
21695
21704
|
Yn().acquire(_r);
|
|
21696
21705
|
}, clearPrewarmedResources: function() {
|
|
21697
21706
|
const l = Ri;
|
|
@@ -21727,15 +21736,15 @@ const Gg = /* @__PURE__ */ Ug(jg);
|
|
|
21727
21736
|
function tm() {
|
|
21728
21737
|
var bt, At, Et, Nt;
|
|
21729
21738
|
if (!yi) return 0;
|
|
21730
|
-
var
|
|
21731
|
-
if (!
|
|
21732
|
-
var
|
|
21733
|
-
let De =
|
|
21739
|
+
var Oe = (At = (bt = yi) == null ? void 0 : bt.properties) == null ? void 0 : At.mpViewbox;
|
|
21740
|
+
if (!Oe || Oe.length < 4) return 0;
|
|
21741
|
+
var qe = (Nt = (Et = yi) == null ? void 0 : Et.properties) == null ? void 0 : Nt.bearing;
|
|
21742
|
+
let De = qe != null ? qe : -1 * Fg(Oe[1], Oe[0], Oe[3], Oe[2]) - 90;
|
|
21734
21743
|
return Math.abs(De) >= 360 && (De = 180), De;
|
|
21735
21744
|
}
|
|
21736
21745
|
function $g() {
|
|
21737
21746
|
var qt, Yt;
|
|
21738
|
-
var
|
|
21747
|
+
var Oe = 1e3, qe = 1e3, De = -1e3, bt = -1e3, At = yi;
|
|
21739
21748
|
if (!yi || !At.features) return Bu.fromXywh(0, 0, 100, 100);
|
|
21740
21749
|
var Et = At.features.filter(
|
|
21741
21750
|
(Ye) => Ye.properties.type === "booth"
|
|
@@ -21745,35 +21754,35 @@ function $g() {
|
|
|
21745
21754
|
var st = Ye.geometry.coordinates[0] || [];
|
|
21746
21755
|
for (let ti = 1; ti < st.length; ti++) {
|
|
21747
21756
|
const Jt = st[ti];
|
|
21748
|
-
Jt[0] <
|
|
21757
|
+
Jt[0] < Oe && (Oe = Jt[0]), Jt[1] < qe && (qe = Jt[1]), Jt[0] > De && (De = Jt[0]), Jt[1] > bt && (bt = Jt[1]);
|
|
21749
21758
|
}
|
|
21750
|
-
}),
|
|
21759
|
+
}), Oe === 1e3) {
|
|
21751
21760
|
var Nt = (Yt = (qt = yi) == null ? void 0 : qt.properties) == null ? void 0 : Yt.mpViewbox, a = [Nt[0], Nt[2], Nt[4]], fe = [Nt[1], Nt[3], Nt[5]];
|
|
21752
21761
|
return Bu.fromX1y1x2y2(Math.min(...a), Math.min(...fe), Math.max(...a), Math.max(...fe));
|
|
21753
21762
|
}
|
|
21754
|
-
return Bu.fromX1y1x2y2(
|
|
21763
|
+
return Bu.fromX1y1x2y2(Oe, qe, De, bt);
|
|
21755
21764
|
}
|
|
21756
21765
|
function Zg() {
|
|
21757
|
-
var
|
|
21758
|
-
return ((
|
|
21766
|
+
var Oe, qe;
|
|
21767
|
+
return ((qe = (Oe = yi) == null ? void 0 : Oe.properties) == null ? void 0 : qe.style) || "light-v10";
|
|
21759
21768
|
}
|
|
21760
|
-
function am(
|
|
21761
|
-
let
|
|
21762
|
-
if (
|
|
21763
|
-
|
|
21764
|
-
else if (
|
|
21769
|
+
function am(Oe) {
|
|
21770
|
+
let qe;
|
|
21771
|
+
if (Oe instanceof om)
|
|
21772
|
+
qe = Oe.color || vd.colors.booths.empty;
|
|
21773
|
+
else if (Oe instanceof Og) {
|
|
21765
21774
|
const De = vd.colors.booths;
|
|
21766
|
-
|
|
21775
|
+
Oe.onHold ? qe = Oe.holdColor || Oe.soldColor || De.default : Oe.exhibitors.length || Oe.reserved ? qe = Oe.soldColor || De.default : qe = Oe.availColor || De.empty;
|
|
21767
21776
|
}
|
|
21768
|
-
return (
|
|
21777
|
+
return (qe === "#666" || qe === "#666666") && (qe = "rgba(0,0,0,0.172)"), qe;
|
|
21769
21778
|
}
|
|
21770
|
-
function qg(
|
|
21779
|
+
function qg(Oe) {
|
|
21771
21780
|
var De;
|
|
21772
|
-
return
|
|
21781
|
+
return Oe.noLabels ? null : Oe instanceof om ? Oe.title || Oe.name : ((De = ((Qf.hideExhibitors ? [] : Qf.onlyFeaturedExhibitors ? Oe.exhibitors.filter((bt) => bt.featured) : Oe.exhibitors) || [])[0]) == null ? void 0 : De.name) || Oe.title || Oe.name;
|
|
21773
21782
|
}
|
|
21774
|
-
function yd(
|
|
21775
|
-
var
|
|
21776
|
-
return
|
|
21783
|
+
function yd(Oe) {
|
|
21784
|
+
var qe = parseInt(Oe).toString(16);
|
|
21785
|
+
return qe.length === 1 ? "0" + qe : qe;
|
|
21777
21786
|
}
|
|
21778
21787
|
const mn = {
|
|
21779
21788
|
token: "pk.eyJ1Ijoicm9kaW9ubmlrb2xhZXYiLCJhIjoiY2wwanE5aXB4MDM2NTNibGExd3k4bHhsaiJ9.wdpy8dJ1qktQXGtZYDNH3w",
|
|
@@ -21791,27 +21800,27 @@ const mn = {
|
|
|
21791
21800
|
let xd = {}, ni;
|
|
21792
21801
|
const bd = document.createElement("canvas");
|
|
21793
21802
|
var Lu = bd.getContext("2d");
|
|
21794
|
-
function Hg(
|
|
21803
|
+
function Hg(Oe) {
|
|
21795
21804
|
const {
|
|
21796
|
-
width:
|
|
21805
|
+
width: qe,
|
|
21797
21806
|
height: De
|
|
21798
|
-
} =
|
|
21799
|
-
return bd.width =
|
|
21807
|
+
} = Oe;
|
|
21808
|
+
return bd.width = qe, bd.height = De, Lu.fillStyle = "white", Lu.fillRect(0, 0, qe, De), Lu.drawImage(Oe, 0, 0), Lu.getImageData(0, 0, qe, De);
|
|
21800
21809
|
}
|
|
21801
|
-
async function ey(
|
|
21802
|
-
const
|
|
21803
|
-
return
|
|
21810
|
+
async function ey(Oe) {
|
|
21811
|
+
const qe = (await Bg(Oe)).filter((De) => !!De);
|
|
21812
|
+
return qe.forEach((De) => ni.addImage(De.name, Hg(De.htmlImage))), qe;
|
|
21804
21813
|
}
|
|
21805
|
-
function ty(
|
|
21806
|
-
ni =
|
|
21814
|
+
function ty(Oe) {
|
|
21815
|
+
ni = Oe;
|
|
21807
21816
|
}
|
|
21808
|
-
function im(
|
|
21809
|
-
return lc(
|
|
21817
|
+
function im(Oe, qe) {
|
|
21818
|
+
return lc(Oe, qe, yi.properties.config);
|
|
21810
21819
|
}
|
|
21811
|
-
function rm(
|
|
21820
|
+
function rm(Oe, qe = 200, De = 1e3, bt = mn.initPitch, At = mn.initBearing) {
|
|
21812
21821
|
if (!ni) return;
|
|
21813
|
-
const Et =
|
|
21814
|
-
var Nt = im(
|
|
21822
|
+
const Et = qe / 100 * Math.max(Math.abs(Oe.x2 - Oe.x1), Math.abs(Oe.y2 - Oe.y1)) || 0;
|
|
21823
|
+
var Nt = im(Oe.x1 - Et, Oe.y1 - Et), a = im(Oe.x2 + Et, Oe.y2 + Et);
|
|
21815
21824
|
ni.fitBounds([Nt, a], {
|
|
21816
21825
|
essential: !0,
|
|
21817
21826
|
duration: De,
|
|
@@ -21819,7 +21828,7 @@ function rm(Ve, Xe = 200, De = 1e3, bt = mn.initPitch, At = mn.initBearing) {
|
|
|
21819
21828
|
bearing: At
|
|
21820
21829
|
}), ws.moveToRect = null;
|
|
21821
21830
|
}
|
|
21822
|
-
function iy(
|
|
21831
|
+
function iy(Oe = 1e3, qe = mn.initPitch, De = mn.initBearing) {
|
|
21823
21832
|
const bt = Aa.routeStore.currentPosition, {
|
|
21824
21833
|
lng: At,
|
|
21825
21834
|
lat: Et,
|
|
@@ -21831,33 +21840,33 @@ function iy(Ve = 1e3, Xe = mn.initPitch, De = mn.initBearing) {
|
|
|
21831
21840
|
ni.flyTo({
|
|
21832
21841
|
center: [fe, qt],
|
|
21833
21842
|
essential: !0,
|
|
21834
|
-
duration:
|
|
21835
|
-
pitch:
|
|
21843
|
+
duration: Oe,
|
|
21844
|
+
pitch: qe,
|
|
21836
21845
|
bearing: De
|
|
21837
21846
|
}), ni.once("moveend", () => {
|
|
21838
21847
|
ws.moveToLocation = !1;
|
|
21839
21848
|
});
|
|
21840
21849
|
}
|
|
21841
|
-
function ry(
|
|
21850
|
+
function ry(Oe) {
|
|
21842
21851
|
ni.flyTo({
|
|
21843
|
-
zoom: ni.getZoom() + (
|
|
21852
|
+
zoom: ni.getZoom() + (Oe ? 0.5 : -0.5),
|
|
21844
21853
|
animate: !0,
|
|
21845
21854
|
duration: 500,
|
|
21846
21855
|
essential: !0
|
|
21847
21856
|
});
|
|
21848
21857
|
}
|
|
21849
|
-
function ny(
|
|
21850
|
-
let
|
|
21851
|
-
|
|
21858
|
+
function ny(Oe) {
|
|
21859
|
+
let qe = 1200;
|
|
21860
|
+
Oe ? ws.selectedBooths.size ? rm(Bu.fromMultiple([...ws.selectedBooths].map((De) => De.rect))) : ws.moveToRect = Aa.layerStore.rectangle || gd : (ws.moveToRect = Aa.layerStore.rectangle || gd, rm(gd, 0, qe, 0, mn.bearing)), Aa.mapboxStore.mapBoxSelected = Oe;
|
|
21852
21861
|
}
|
|
21853
|
-
function oy(
|
|
21862
|
+
function oy(Oe, qe) {
|
|
21854
21863
|
return yi.features.forEach((De) => {
|
|
21855
21864
|
var Nt, a;
|
|
21856
21865
|
if (De.properties.id = (Nt = De.properties.id) == null ? void 0 : Nt.substring(1), De.properties.height = mn.extrusion[De.properties.type] || mn.extrusion.booths, De.properties.type === "booth") {
|
|
21857
|
-
let fe =
|
|
21866
|
+
let fe = Oe.filter((qt) => qt.name === De.properties.id)[0];
|
|
21858
21867
|
if (fe) {
|
|
21859
21868
|
De.properties.color = am(fe), De.properties.description = qg(fe);
|
|
21860
|
-
const qt =
|
|
21869
|
+
const qt = qe.find((Yt) => (Yt == null ? void 0 : Yt.name) === fe.slug);
|
|
21861
21870
|
if (qt) {
|
|
21862
21871
|
var bt = Math.max(fe.rect.w, fe.rect.h), At = bt / qt.htmlImage.width;
|
|
21863
21872
|
De.properties.scale = Math.max(0.08, At / 5), De.properties.scale1 = 5 * De.properties.scale;
|
|
@@ -21874,31 +21883,31 @@ function oy(Ve, Xe) {
|
|
|
21874
21883
|
data: yi
|
|
21875
21884
|
});
|
|
21876
21885
|
}
|
|
21877
|
-
function sy(
|
|
21886
|
+
function sy(Oe, qe) {
|
|
21878
21887
|
var De;
|
|
21879
21888
|
yi.features.forEach((bt) => {
|
|
21880
21889
|
if (bt.properties.type === "booth") {
|
|
21881
|
-
var At =
|
|
21882
|
-
|
|
21890
|
+
var At = qe.find((Et) => Et.name === bt.properties.id);
|
|
21891
|
+
Oe.indexOf(At) > -1 ? bt.properties.height = 4 * mn.extrusion.booths : bt.properties.height = mn.extrusion.booths;
|
|
21883
21892
|
}
|
|
21884
21893
|
}), (De = ni.getSource("data")) == null || De.setData(yi);
|
|
21885
21894
|
}
|
|
21886
|
-
function Kg(
|
|
21895
|
+
function Kg(Oe, qe) {
|
|
21887
21896
|
var De;
|
|
21888
21897
|
yi.features.forEach((bt) => {
|
|
21889
21898
|
if (bt.properties.type === "booth") {
|
|
21890
|
-
const At =
|
|
21891
|
-
|
|
21899
|
+
const At = qe.find((Nt) => Nt.name === bt.properties.id), Et = am(At);
|
|
21900
|
+
Oe.length ? bt.properties.color = Oe.indexOf(At) === -1 ? Ru(Et).darken(0.7).hex() : "#f03b55" : bt.properties.color = Et;
|
|
21892
21901
|
}
|
|
21893
21902
|
}), (De = ni.getSource("data")) == null || De.setData(yi);
|
|
21894
21903
|
}
|
|
21895
|
-
function ay(
|
|
21896
|
-
const
|
|
21897
|
-
return
|
|
21904
|
+
function ay(Oe) {
|
|
21905
|
+
const qe = [];
|
|
21906
|
+
return Oe.forEach((De) => {
|
|
21898
21907
|
var At, Et;
|
|
21899
21908
|
((Et = (At = yi.images) == null ? void 0 : At.filter((Nt) => Nt.layer === De.name)) != null ? Et : []).forEach((Nt, a) => {
|
|
21900
21909
|
const fe = De.name + "--bg_" + a;
|
|
21901
|
-
|
|
21910
|
+
qe.push(fe), ni.addSource(fe, {
|
|
21902
21911
|
type: "image",
|
|
21903
21912
|
url: Nt.data,
|
|
21904
21913
|
coordinates: Nt.points
|
|
@@ -21910,7 +21919,7 @@ function ay(Ve) {
|
|
|
21910
21919
|
visibility: De.visible ? "visible" : "none"
|
|
21911
21920
|
}
|
|
21912
21921
|
});
|
|
21913
|
-
}),
|
|
21922
|
+
}), qe.push(De.name + "--other"), ni.addLayer({
|
|
21914
21923
|
id: De.name + "--other",
|
|
21915
21924
|
type: "fill",
|
|
21916
21925
|
source: "data",
|
|
@@ -21926,7 +21935,7 @@ function ay(Ve) {
|
|
|
21926
21935
|
paint: {
|
|
21927
21936
|
"fill-color": ["get", "color"]
|
|
21928
21937
|
}
|
|
21929
|
-
}),
|
|
21938
|
+
}), qe.push(De.name + "--other-3D"), ni.addLayer({
|
|
21930
21939
|
id: De.name + "--other-3D",
|
|
21931
21940
|
type: "fill-extrusion",
|
|
21932
21941
|
source: "data",
|
|
@@ -21944,9 +21953,9 @@ function ay(Ve) {
|
|
|
21944
21953
|
"fill-extrusion-height": ["get", "height"]
|
|
21945
21954
|
}
|
|
21946
21955
|
});
|
|
21947
|
-
}),
|
|
21956
|
+
}), Oe.forEach((De) => {
|
|
21948
21957
|
var bt = yi.features.filter((At) => At.properties.type === "booth" && At.properties.layer === De.name);
|
|
21949
|
-
bt.length && (
|
|
21958
|
+
bt.length && (qe.push(De.name), qe.push(De.name + "--labels"), qe.push(De.name + "--logos"), ni.addLayer({
|
|
21950
21959
|
id: De.name,
|
|
21951
21960
|
type: "fill-extrusion",
|
|
21952
21961
|
source: "data",
|
|
@@ -22008,7 +22017,7 @@ function ay(Ve) {
|
|
|
22008
22017
|
visibility: De.visible ? "visible" : "none"
|
|
22009
22018
|
}
|
|
22010
22019
|
}));
|
|
22011
|
-
}),
|
|
22020
|
+
}), qe;
|
|
22012
22021
|
}
|
|
22013
22022
|
function ly() {
|
|
22014
22023
|
ni.addLayer({
|
|
@@ -22029,21 +22038,21 @@ function ly() {
|
|
|
22029
22038
|
}
|
|
22030
22039
|
});
|
|
22031
22040
|
}
|
|
22032
|
-
function nm(
|
|
22033
|
-
var De = xd[
|
|
22034
|
-
if (!
|
|
22035
|
-
De == null || De.remove(), xd[
|
|
22041
|
+
function nm(Oe, qe) {
|
|
22042
|
+
var De = xd[Oe];
|
|
22043
|
+
if (!qe) {
|
|
22044
|
+
De == null || De.remove(), xd[Oe] = null;
|
|
22036
22045
|
return;
|
|
22037
22046
|
}
|
|
22038
22047
|
const {
|
|
22039
22048
|
x: bt,
|
|
22040
22049
|
y: At
|
|
22041
|
-
} =
|
|
22050
|
+
} = qe, Et = qe.lat && qe.lng ? [qe.lng, qe.lat] : lc(bt, At, yi.properties.config);
|
|
22042
22051
|
if (!De) {
|
|
22043
22052
|
var Nt = document.createElement("div");
|
|
22044
|
-
Nt.className = `marker ${
|
|
22045
|
-
rotationAlignment:
|
|
22046
|
-
}).setLngLat(Et), De.addTo(ni), xd[
|
|
22053
|
+
Nt.className = `marker ${Oe}`, De = new Gg.Marker(Nt, {
|
|
22054
|
+
rotationAlignment: Oe !== "to" && Oe !== "yah" ? "map" : "auto"
|
|
22055
|
+
}).setLngLat(Et), De.addTo(ni), xd[Oe] = De;
|
|
22047
22056
|
}
|
|
22048
22057
|
De.setLngLat(Et);
|
|
22049
22058
|
}
|
|
@@ -22069,11 +22078,11 @@ function Yg() {
|
|
|
22069
22078
|
}
|
|
22070
22079
|
});
|
|
22071
22080
|
}
|
|
22072
|
-
function cy(
|
|
22081
|
+
function cy(Oe) {
|
|
22073
22082
|
var a, fe;
|
|
22074
|
-
var
|
|
22075
|
-
|
|
22076
|
-
var De =
|
|
22083
|
+
var qe = ni.getSource("wfData");
|
|
22084
|
+
qe || (Yg(), qe = ni.getSource("wfData"));
|
|
22085
|
+
var De = Oe.routeLines.filter((qt) => {
|
|
22077
22086
|
var Ye, st;
|
|
22078
22087
|
let Yt = (st = (Ye = Aa.layerStore.layers.find((ti) => ti.name === qt.p0.layer)) == null ? void 0 : Ye.visible) != null ? st : !0;
|
|
22079
22088
|
return !qt.virtual && Yt;
|
|
@@ -22090,7 +22099,7 @@ function cy(Ve) {
|
|
|
22090
22099
|
}
|
|
22091
22100
|
}]
|
|
22092
22101
|
};
|
|
22093
|
-
|
|
22102
|
+
qe.setData(Nt), nm("from", At), nm("to", bt);
|
|
22094
22103
|
}
|
|
22095
22104
|
export {
|
|
22096
22105
|
rm as a,
|
|
@@ -22113,4 +22122,4 @@ export {
|
|
|
22113
22122
|
};
|
|
22114
22123
|
|
|
22115
22124
|
;/* vite-per-chunk-css */
|
|
22116
|
-
__vite_inject_css__(".map-container{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#ebebeb;opacity:1;visibility:visible;transition:opacity 1s ease-out,visibility 1s}.map-container.hidden{opacity:0;visibility:hidden}.map-container .fa-home,.map-container .fa-expand-arrows-alt{width:29px;height:29px;color:#000}.map-wrapper{width:100%;height:100%}.marker{width:40px;height:120px}.marker.yah{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDQyNi41MTQgNTkzLjUyOSI+PGcgZGF0YS1pcy1lZGl0YWJsZT0iZmFsc2UiIGZpbGw9IiNFNzQ3ODQiPjxwYXRoIGQ9Ik0yMDQuNTc5LDI3Mi43NkMyNDcuNTcsMjcyLjc2LDI4Mi4zMzMsMjM3Ljk5MiwyODIuMzMzLDE5NS4xMzZDMjgyLjMzMywxNTIuMiwyNDcuNTcsMTE3LjQ2NiwyMDQuNTc5LDExNy40NjZDMTYxLjY0NSwxMTcuNDY2LDEyNi44MjUsMTUyLjIsMTI2LjgyNSwxOTUuMTM2QzEyNi44MjUsMjM3Ljk5MiwxNjEuNjQ1LDI3Mi43NiwyMDQuNTc5LDI3Mi43NloiIGRhdGEtaXMtZWRpdGFibGU9ImZhbHNlIiBmaWxsPSIjRTc0Nzg0Ij48L3BhdGg+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNzguOTkyLDQ0LjIyMUMzODYuOTMxLDg2LjgwNiw0MjYuNTE0LDIxNi4zMDEsMzc0LjA1NCwzMTUuNTA2QzM3My42NTIsMzE2LjYzMiwzNzMuMjU0LDMxNy43NjUsMzcyLjUzLDMxOC45MjNDMzIxLjQ4Niw0MDcuMzU4LDI3MC40MTksNDk1LjE4NiwyMTguNzUzLDU4My43NTRDMjEzLjI3Miw1OTMuNTI5LDE5Ny44MTksNTkzLjUyOSwxOTIuMjk1LDU4My43NTRDMTc4LjY0Miw1NTkuODg5LDE2NC43NjQsNTM2LjEwMiwxNTAuOTg0LDUxMi4yMTZMMTUwLjk3MSw1MTIuMjE2QzEyOC44MzQsNDcz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wYXRoIGQ9Ik0wLDQwMEMwLDYyMC45MTQsMTc5LjA4Niw4MDAsNDAwLDgwMEM2MjAuOTE0LDgwMCw4MDAsNjIwLjkxNCw4MDAsNDAwQzgwMCwxNzkuMDg2LDYyMC45MTQsMCw0MDAsMEMxNzkuMDg2LDAsMCwxNzkuMDg2LDAsNDAwIiBkYXRhLWlzLWVkaXRhYmxlPSJmYWxzZSIgY2xhc3M9IiIgZmlsbD0iI0ZGRkZGRiI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDAsMzk5Ljk5NEMxMDAsNTY1LjY4MywyMzQuMzIyLDcwMC4wMDQsMzk5Ljk5NCw3MDAuMDA0QzU2NS42ODMsNzAwLjAwNCw3MDAuMDA0LDU2NS42ODMsNzAwLjAwNCwzOTkuOTk0QzcwMC4wMDQsMjM0LjMyMiw1NjUuNjgzLDEwMCwzOTkuOTk0LDEwMEMyMzQuMzIyLDEwMCwxMDAsMjM0LjMyMiwxMDAsMzk5Ljk5NCIgZGF0YS1pcy1lZGl0YWJsZT0iZmFsc2UiIGZpbGw9IiM0MUI2RTciIGNsYXNzPSIiPjwvcGF0aD48L2c+PC9zdmc+)}.mapboxgl-ctrl-top-left{top:70px!important}\n/*$vite$:1*/", "data.css"
|
|
22125
|
+
__vite_inject_css__(".map-container{position:absolute;top:0;right:0;bottom:0;left:0;background-color:#ebebeb;opacity:1;visibility:visible;transition:opacity 1s ease-out,visibility 1s}.map-container.hidden{opacity:0;visibility:hidden}.map-container .fa-home,.map-container .fa-expand-arrows-alt{width:29px;height:29px;color:#000}.map-wrapper{width:100%;height:100%}.marker{width:40px;height:120px}.marker.yah{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgdmlld0JveD0iMCAwIDQyNi41MTQgNTkzLjUyOSI+PGcgZGF0YS1pcy1lZGl0YWJsZT0iZmFsc2UiIGZpbGw9IiNFNzQ3ODQiPjxwYX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