@mapsindoors/map-template 1.54.3 → 1.54.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_commonjsHelpers-ba3f0406-a86c34e0.mjs → _commonjsHelpers-ba3f0406-c620b3e7.mjs} +2 -2
- package/dist/{combo-box-item.entry-af0987a3.mjs → combo-box-item.entry-20ff4683.mjs} +2 -2
- package/dist/{icon-b8d01d6f-a0c9a50f.mjs → icon-b8d01d6f-5dea9946.mjs} +2 -2
- package/dist/mapsindoors-react.es.js +1 -1
- package/dist/mapsindoors-react.umd.js +2 -2
- package/dist/mapsindoors-webcomponent.es.js +4 -2
- package/dist/mapsindoors-webcomponent.umd.js +2 -2
- package/dist/{mi-card_2.entry-96494e14.mjs → mi-card_2.entry-0077d978.mjs} +2 -2
- package/dist/{mi-chip.entry-af139979.mjs → mi-chip.entry-164865b0.mjs} +2 -2
- package/dist/{mi-column.entry-402d42d4.mjs → mi-column.entry-cb91af9f.mjs} +2 -2
- package/dist/{mi-combo-box.entry-b6278d92.mjs → mi-combo-box.entry-263005c5.mjs} +4 -4
- package/dist/{mi-data-table.entry-a207e7d2.mjs → mi-data-table.entry-a61ef3e6.mjs} +3 -3
- package/dist/{mi-distance_2.entry-d450426b.mjs → mi-distance_2.entry-7bd70a26.mjs} +3 -3
- package/dist/{mi-dropdown-item.entry-0e69959c.mjs → mi-dropdown-item.entry-75464d86.mjs} +2 -2
- package/dist/{mi-dropdown.entry-de3d3551.mjs → mi-dropdown.entry-6be86f1b.mjs} +4 -4
- package/dist/{mi-floor-selector.entry-d5fcb15c.mjs → mi-floor-selector.entry-ca24084d.mjs} +2 -2
- package/dist/{mi-keyboard.entry-f5e63110.mjs → mi-keyboard.entry-fe2ffa8d.mjs} +3 -3
- package/dist/{mi-list-item-category.entry-04f32995.mjs → mi-list-item-category.entry-6b5bec2d.mjs} +4 -4
- package/dist/{mi-list-item-location.entry-8566e3b4.mjs → mi-list-item-location.entry-c7858b00.mjs} +4 -4
- package/dist/{mi-list.entry-abe19c32.mjs → mi-list.entry-a66642ce.mjs} +2 -2
- package/dist/{mi-location-booking.entry-21cc7851.mjs → mi-location-booking.entry-f22f062f.mjs} +3 -3
- package/dist/{mi-location-info.entry-53318502.mjs → mi-location-info.entry-6d16bcc8.mjs} +2 -2
- package/dist/{mi-map-googlemaps.entry-0b7b4b33.mjs → mi-map-googlemaps.entry-ce44d141.mjs} +3 -3
- package/dist/{mi-map-mapbox.entry-c2e3ca2d.mjs → mi-map-mapbox.entry-a306e6ba.mjs} +3 -3
- package/dist/{mi-metric-card.entry-d6dcd118.mjs → mi-metric-card.entry-b5415afb.mjs} +3 -3
- package/dist/{mi-my-position.entry-86af7ff7.mjs → mi-my-position.entry-16b19c3f.mjs} +3 -3
- package/dist/{mi-notification.entry-f2bd0864.mjs → mi-notification.entry-0ef70e3b.mjs} +2 -2
- package/dist/{mi-route-instructions-heading.entry-f057bae2.mjs → mi-route-instructions-heading.entry-a0ed3d5d.mjs} +4 -4
- package/dist/{mi-route-instructions-maneuver-legacy.entry-a8661cd4.mjs → mi-route-instructions-maneuver-legacy.entry-d948b065.mjs} +3 -3
- package/dist/{mi-route-instructions-maneuver.entry-b39e1331.mjs → mi-route-instructions-maneuver.entry-016e2a72.mjs} +3 -3
- package/dist/{mi-route-instructions-step-legacy.entry-72f6c5bc.mjs → mi-route-instructions-step-legacy.entry-97e6924f.mjs} +4 -4
- package/dist/{mi-route-instructions-step.entry-6cc4e534.mjs → mi-route-instructions-step.entry-93e2c3c0.mjs} +4 -4
- package/dist/{mi-route-instructions.entry-156994ce.mjs → mi-route-instructions.entry-1200089e.mjs} +5 -5
- package/dist/{mi-scroll-buttons.entry-efd18b01.mjs → mi-scroll-buttons.entry-c9232c59.mjs} +2 -2
- package/dist/{mi-search.entry-51d834ed.mjs → mi-search.entry-06eb19b5.mjs} +3 -3
- package/dist/{mi-share-sms.entry-09c597f4.mjs → mi-share-sms.entry-3802bc7d.mjs} +2 -2
- package/dist/{mi-step-switcher.entry-acd064d9.mjs → mi-step-switcher.entry-d48ee021.mjs} +2 -2
- package/dist/{mi-tab-panel.entry-a61464d8.mjs → mi-tab-panel.entry-08da611e.mjs} +2 -2
- package/dist/{mi-tab.entry-e45c9105.mjs → mi-tab.entry-a087b248.mjs} +2 -2
- package/dist/{mi-tabs.entry-10921099.mjs → mi-tabs.entry-29206466.mjs} +2 -2
- package/dist/{mi-time.entry-ee50ae3d.mjs → mi-time.entry-16be7097.mjs} +2 -2
- package/dist/{mi-variables-9a6c8d4d-ae8ef07a.mjs → mi-variables-9a6c8d4d-cb9efe43.mjs} +2 -2
- package/dist/{reactcomponent-1d5d26ea.mjs → reactcomponent-72d27d4a.mjs} +6 -4
- package/dist/{route-travel-mode.enum-7f4ce9c7-c4147e60.mjs → route-travel-mode.enum-7f4ce9c7-f9562dc8.mjs} +2 -2
- package/dist/{sort-order.enum-64ce8998-a3602aa0.mjs → sort-order.enum-64ce8998-95fead6f.mjs} +3 -3
- package/dist/{unit-system.enum-eaefb53e-125d3913.mjs → unit-system.enum-eaefb53e-b269f1f4.mjs} +2 -2
- package/dist/{utils-ae714467-33d0b644.mjs → utils-ae714467-dea3c334.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode(`.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#6b7280;transition:background-color .3s ease}.mi-toggle:disabled{opacity:.48}.mi-toggle:checked{background-color:#22c55e}.mi-toggle:after{content:"";display:inline-block;width:20px;height:20px;transform:translate(0);border-radius:50%;background-color:#fcfcfc;box-shadow:0 2px 2px #0003,0 1px 1px #0003;transition:.3s ease}.mi-toggle:checked:after{transform:translate(24px)}}.mapsindoors-map{--z-index-top: 999999;--z-index-popup: 950;--z-index-modal: 900;--z-index-spinner: 800;--z-index-overlay: 700;--z-index-dropdown: 600;--z-index-toast: 500;--z-index-header: 400;--z-index-sticky: 300;--z-index-mask: 200;--z-index-masked: 100;--z-index-default: 1;--z-index-deep: -999999;--transition-slowly: .6s ease;--transition-quickly: .3s ease;--tailwind-colors-rose-900: #881337;--tailwind-colors-rose-800: #9f1239;--tailwind-colors-rose-700: #be123c;--tailwind-colors-rose-600: #e11d48;--tailwind-colors-rose-500: #f43f5e;--tailwind-colors-rose-400: #fb7185;--tailwind-colors-rose-300: #fda4af;--tailwind-colors-rose-200: #fecdd3;--tailwind-colors-rose-100: #ffe4e6;--tailwind-colors-rose-50: #fff1f2;--tailwind-colors-pink-900: #831843;--tailwind-colors-pink-800: #9d174d;--tailwind-colors-pink-700: #be185d;--tailwind-colors-pink-600: #db2777;--tailwind-colors-pink-500: #ec4899;--tailwind-colors-pink-400: #f472b6;--tailwind-colors-pink-300: #f9a8d4;--tailwind-colors-pink-200: #fbcfe8;--tailwind-colors-pink-100: #fce7f3;--tailwind-colors-pink-50: #fdf2f8;--tailwind-colors-fuchsia-900: #701a75;--tailwind-colors-fuchsia-800: #86198f;--tailwind-colors-fuchsia-700: #a21caf;--tailwind-colors-fuchsia-600: #c026d3;--tailwind-colors-fuchsia-500: #d946ef;--tailwind-colors-fuchsia-400: #e879f9;--tailwind-colors-fuchsia-300: #f0abfc;--tailwind-colors-fuchsia-200: #f5d0fe;--tailwind-colors-fuchsia-100: #fae8ff;--tailwind-colors-fuchsia-50: #fdf4ff;--tailwind-colors-purple-900: #581c87;--tailwind-colors-purple-800: #6b21a8;--tailwind-colors-purple-700: #7e22ce;--tailwind-colors-purple-600: #9333ea;--tailwind-colors-purple-500: #a855f7;--tailwind-colors-purple-400: #c084fc;--tailwind-colors-purple-300: #d8b4fe;--tailwind-colors-purple-200: #e9d5ff;--tailwind-colors-purple-100: #f3e8ff;--tailwind-colors-purple-50: #faf5ff;--tailwind-colors-violet-900: #4c1d95;--tailwind-colors-violet-800: #5b21b6;--tailwind-colors-violet-700: #6d28d9;--tailwind-colors-violet-600: #7c3aed;--tailwind-colors-violet-500: #8b5cf6;--tailwind-colors-violet-400: #a78bfa;--tailwind-colors-violet-300: #c4b5fd;--tailwind-colors-violet-200: #ddd6fe;--tailwind-colors-violet-100: #ede9fe;--tailwind-colors-violet-50: #f5f3ff;--tailwind-colors-indigo-900: #312e81;--tailwind-colors-indigo-800: #3730a3;--tailwind-colors-indigo-700: #4338ca;--tailwind-colors-indigo-600: #4f46e5;--tailwind-colors-indigo-500: #6366f1;--tailwind-colors-indigo-400: #818cf8;--tailwind-colors-indigo-300: #a5b4fc;--tailwind-colors-indigo-200: #c7d2fe;--tailwind-colors-indigo-100: #e0e7ff;--tailwind-colors-indigo-50: #eef2ff;--tailwind-colors-blue-900: #1e3a8a;--tailwind-colors-blue-800: #1e40af;--tailwind-colors-blue-700: #1d4ed8;--tailwind-colors-blue-600: #2563eb;--tailwind-colors-blue-500: #3b82f6;--tailwind-colors-blue-400: #60a5fa;--tailwind-colors-blue-300: #93c5fd;--tailwind-colors-blue-200: #bfdbfe;--tailwind-colors-blue-100: #dbeafe;--tailwind-colors-blue-50: #eff6ff;--tailwind-colors-sky-900: #0c4a6e;--tailwind-colors-sky-800: #075985;--tailwind-colors-sky-700: #0369a1;--tailwind-colors-sky-600: #0284c7;--tailwind-colors-sky-500: #0ea5e9;--tailwind-colors-sky-400: #38bdf8;--tailwind-colors-sky-300: #7dd3fc;--tailwind-colors-sky-200: #bae6fd;--tailwind-colors-sky-100: #e0f2fe;--tailwind-colors-sky-50: #f0f9ff;--tailwind-colors-cyan-900: #164e63;--tailwind-colors-cyan-800: #155e75;--tailwind-colors-cyan-700: #0e7490;--tailwind-colors-cyan-600: #0891b2;--tailwind-colors-cyan-500: #06b6d4;--tailwind-colors-cyan-400: #22d3ee;--tailwind-colors-cyan-300: #67e8f9;--tailwind-colors-cyan-200: #a5f3fc;--tailwind-colors-cyan-100: #cffafe;--tailwind-colors-cyan-50: #ecfeff;--tailwind-colors-teal-900: #134e4a;--tailwind-colors-teal-800: #115e59;--tailwind-colors-teal-700: #0f766e;--tailwind-colors-teal-600: #0d9488;--tailwind-colors-teal-500: #14b8a6;--tailwind-colors-teal-400: #2dd4bf;--tailwind-colors-teal-300: #5eead4;--tailwind-colors-teal-200: #99f6e4;--tailwind-colors-teal-100: #ccfbf1;--tailwind-colors-teal-50: #f0fdfa;--tailwind-colors-emerald-900: #064e3b;--tailwind-colors-emerald-800: #065f46;--tailwind-colors-emerald-700: #047857;--tailwind-colors-emerald-600: #059669;--tailwind-colors-emerald-500: #10b981;--tailwind-colors-emerald-400: #34d399;--tailwind-colors-emerald-300: #6ee7b7;--tailwind-colors-emerald-200: #a7f3d0;--tailwind-colors-emerald-100: #d1fae5;--tailwind-colors-emerald-50: #ecfdf5;--tailwind-colors-green-900: #14532d;--tailwind-colors-green-800: #166534;--tailwind-colors-green-700: #15803d;--tailwind-colors-green-600: #16a34a;--tailwind-colors-green-500: #22c55e;--tailwind-colors-green-400: #4ade80;--tailwind-colors-green-300: #86efac;--tailwind-colors-green-200: #bbf7d0;--tailwind-colors-green-100: #dcfce7;--tailwind-colors-green-50: #f0fdf4;--tailwind-colors-lime-900: #365314;--tailwind-colors-lime-800: #3f6212;--tailwind-colors-lime-700: #4d7c0f;--tailwind-colors-lime-600: #65a30d;--tailwind-colors-lime-500: #84cc16;--tailwind-colors-lime-400: #a3e635;--tailwind-colors-lime-300: #bef264;--tailwind-colors-lime-200: #d9f99d;--tailwind-colors-lime-100: #ecfccb;--tailwind-colors-lime-50: #f7fee7;--tailwind-colors-yellow-900: #713f12;--tailwind-colors-yellow-800: #854d0e;--tailwind-colors-yellow-700: #a16207;--tailwind-colors-yellow-600: #ca8a04;--tailwind-colors-yellow-500: #eab308;--tailwind-colors-yellow-400: #facc15;--tailwind-colors-yellow-300: #fde047;--tailwind-colors-yellow-200: #fef08a;--tailwind-colors-yellow-100: #fef9c3;--tailwind-colors-yellow-50: #fefce8;--tailwind-colors-amber-900: #78350f;--tailwind-colors-amber-800: #92400e;--tailwind-colors-amber-700: #b45309;--tailwind-colors-amber-600: #d97706;--tailwind-colors-amber-500: #f59e0b;--tailwind-colors-amber-400: #fbbf24;--tailwind-colors-amber-300: #fcd34d;--tailwind-colors-amber-200: #fde68a;--tailwind-colors-amber-100: #fef3c7;--tailwind-colors-amber-50: #fffbeb;--tailwind-colors-orange-900: #7c2d12;--tailwind-colors-orange-800: #9a3412;--tailwind-colors-orange-700: #c2410c;--tailwind-colors-orange-600: #ea580c;--tailwind-colors-orange-500: #f97316;--tailwind-colors-orange-400: #fb923c;--tailwind-colors-orange-300: #fdba74;--tailwind-colors-orange-200: #fed7aa;--tailwind-colors-orange-100: #ffedd5;--tailwind-colors-orange-50: #fff7ed;--tailwind-colors-red-900: #7f1d1d;--tailwind-colors-red-800: #991b1b;--tailwind-colors-red-700: #b91c1c;--tailwind-colors-red-600: #dc2626;--tailwind-colors-red-500: #ef4444;--tailwind-colors-red-400: #f87171;--tailwind-colors-red-300: #fca5a5;--tailwind-colors-red-200: #fecaca;--tailwind-colors-red-100: #fee2e2;--tailwind-colors-red-50: #fef2f2;--tailwind-colors-stone-900: #1c1917;--tailwind-colors-stone-800: #292524;--tailwind-colors-stone-700: #44403c;--tailwind-colors-stone-600: #57534e;--tailwind-colors-stone-500: #78716c;--tailwind-colors-stone-400: #a8a29e;--tailwind-colors-stone-300: #d6d3d1;--tailwind-colors-stone-200: #e7e5e4;--tailwind-colors-stone-100: #f5f5f4;--tailwind-colors-stone-50: #fafaf9;--tailwind-colors-neutral-900: #171717;--tailwind-colors-neutral-800: #262626;--tailwind-colors-neutral-700: #404040;--tailwind-colors-neutral-600: #525252;--tailwind-colors-neutral-500: #737373;--tailwind-colors-neutral-400: #a3a3a3;--tailwind-colors-neutral-300: #d4d4d4;--tailwind-colors-neutral-200: #e5e5e5;--tailwind-colors-neutral-100: #f5f5f5;--tailwind-colors-neutral-50: #fafafa;--tailwind-colors-zinc-900: #18181b;--tailwind-colors-zinc-800: #27272a;--tailwind-colors-zinc-700: #3f3f46;--tailwind-colors-zinc-600: #52525b;--tailwind-colors-zinc-500: #71717a;--tailwind-colors-zinc-400: #a1a1aa;--tailwind-colors-zinc-300: #d4d4d8;--tailwind-colors-zinc-200: #e4e4e7;--tailwind-colors-zinc-100: #f4f4f5;--tailwind-colors-zinc-50: #fafafa;--tailwind-colors-gray-900: #111827;--tailwind-colors-gray-800: #1f2937;--tailwind-colors-gray-700: #374151;--tailwind-colors-gray-600: #4b5563;--tailwind-colors-gray-500: #6b7280;--tailwind-colors-gray-400: #9ca3af;--tailwind-colors-gray-300: #d1d5db;--tailwind-colors-gray-200: #e5e7eb;--tailwind-colors-gray-100: #f3f4f6;--tailwind-colors-gray-50: #f9fafb;--tailwind-colors-slate-900: #0f172a;--tailwind-colors-slate-800: #1e293b;--tailwind-colors-slate-700: #334155;--tailwind-colors-slate-600: #475569;--tailwind-colors-slate-500: #64748b;--tailwind-colors-slate-400: #94a3b8;--tailwind-colors-slate-300: #cbd5e1;--tailwind-colors-slate-200: #e2e8f0;--tailwind-colors-slate-100: #f1f5f9;--tailwind-colors-slate-50: #f8fafc;--tailwind-colors-black: #000000;--tailwind-colors-white: #ffffff;--spacing-xxxx-large: 64px;--spacing-xxx-large: 48px;--spacing-xx-large: 40px;--spacing-x-large: 32px;--spacing-large: 24px;--spacing-medium: 16px;--spacing-small: 12px;--spacing-x-small: 8px;--spacing-xx-small: 4px;--spacing-xxx-small: 2px;--rounding-circle: 50%;--rounding-pill: 9999px;--rounding-x-large: 16px;--rounding-large: 8px;--rounding-medium: 4px;--rounding-small: 2px;--rounding-x-small: 1px;--rounding-xx-small: 0px;--opacity-xxx-large: 1;--opacity-xx-large: .88;--opacity-x-large: .72;--opacity-large: .48;--opacity-medium: .24;--opacity-small: .16;--opacity-x-small: .08;--opacity-xx-small: 0;--icon-size-xx-large: 64px;--icon-size-x-large: 48px;--icon-size-large: 32px;--icon-size-medium: 24px;--icon-size-small: 16px;--font-measure-large: 34rem;--font-measure-medium: 30rem;--font-measure-small: 20rem;--font-tracking-x-large: .25rem;--font-tracking-large: .1rem;--font-tracking-medium: normal;--font-tracking-small: -.05rem;--font-weight-xx-large: 700;--font-weight-x-large: 600;--font-weight-large: 500;--font-weight-medium: 400;--font-weight-small: 300;--font-size-xxxx-large: 4.5rem;--font-size-xxx-large: 3rem;--font-size-xx-large: 2.25rem;--font-size-x-large: 1.5rem;--font-size-large: 1.25rem;--font-size-medium: 1rem;--font-size-small: .875rem;--font-size-x-small: .75rem;--font-family-serif: Georgia, Times, Times New Roman, serif;--font-family-monospace: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large: 0px 20px 20px rgba(0, 0, 0, .2), 0px 16px 16px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .16), 0px 8px 8px rgba(0, 0, 0, .12);--elevation-large: 0px 16px 16px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .16), 0px 8px 8px rgba(0, 0, 0, .12);--elevation-medium: 0px 2px 2px rgba(0, 0, 0, .2), 0px 4px 4px rgba(0, 0, 0, .18), 0px 8px 8px rgba(0, 0, 0, .16);--elevation-small: 0px 4px 4px rgba(0, 0, 0, .16), 0px 2px 2px rgba(0, 0, 0, .18), 0px 1px 1px rgba(0, 0, 0, .2);--elevation-x-small: 0px 2px 2px rgba(0, 0, 0, .2), 0px 1px 1px rgba(0, 0, 0, .2);--color-transparent-base: rgba(0, 0, 0, 0);--color-white-base: #fcfcfc;--breakpoints-xx-large: only screen and (min-width: 1220px);--breakpoints-x-large: only screen and (min-width: 1025px);--breakpoints-large: only screen and (min-width: 992px);--breakpoints-medium: only screen and (min-width: 768px);--breakpoints-small: only screen and (min-width: 576px);--breakpoints-x-small: only screen and (max-width: 575px);--breakpoints-xx-small: only screen and (max-width: 360px);--brand-colors-black-100: #000000;--brand-colors-black-80: #323232;--brand-colors-black-60: #666666;--brand-colors-black-40: #999999;--brand-colors-black-20: #cccccc;--brand-colors-white-100: #ffffff;--brand-colors-dark-pine-100: #005655;--brand-colors-dark-pine-80: #327676;--brand-colors-dark-pine-60: #669999;--brand-colors-dark-pine-40: #99bbbb;--brand-colors-dark-pine-20: #ccdddd;--brand-colors-sky-blue-100: #abddff;--brand-colors-sky-blue-80: #c3e5ff;--brand-colors-sky-blue-60: #d2ebff;--brand-colors-sky-blue-40: #e1f2ff;--brand-colors-sky-blue-20: #f0f8ff;--brand-colors-sand-100: #ffefd7;--brand-colors-sand-80: #fff2df;--brand-colors-sand-60: #fff5e7;--brand-colors-brand-lime-100: #cdff00;--brand-colors-brand-lime-80: #d7ff32;--brand-colors-brand-lime-60: #e1ff66;--brand-colors-brand-lime-40: #ebff99;--brand-colors-brand-lime-20: #f5ffcc;--brand-colors-electric-purple-100: #7d49f3;--brand-colors-electric-purple-80: #976df5;--brand-colors-electric-purple-60: #b191f7;--brand-colors-electric-purple-40: #cbb6fa;--brand-colors-electric-purple-20: #e5dafc;--font-family-sans-serif: Figtree, var(--font-family-system);--color-dusk-base: var(--tailwind-colors-violet-500);--color-dusk-100: var(--tailwind-colors-violet-900);--color-dusk-90: var(--tailwind-colors-violet-800);--color-dusk-80: var(--tailwind-colors-violet-700);--color-dusk-70: var(--tailwind-colors-violet-600);--color-dusk-60: var(--tailwind-colors-violet-500);--color-dusk-50: var(--tailwind-colors-violet-400);--color-dusk-40: var(--tailwind-colors-violet-300);--color-dusk-30: var(--tailwind-colors-violet-200);--color-dusk-20: var(--tailwind-colors-violet-100);--color-dusk-10: var(--tailwind-colors-violet-50);--color-slate-base: var(--tailwind-colors-slate-500);--color-slate-100: var(--tailwind-colors-slate-900);--color-slate-90: var(--tailwind-colors-slate-800);--color-slate-80: var(--tailwind-colors-slate-700);--color-slate-70: var(--tailwind-colors-slate-600);--color-slate-60: var(--tailwind-colors-slate-500);--color-slate-50: var(--tailwind-colors-slate-400);--color-slate-40: var(--tailwind-colors-slate-300);--color-slate-30: var(--tailwind-colors-slate-200);--color-slate-20: var(--tailwind-colors-slate-100);--color-slate-10: var(--tailwind-colors-slate-50);--color-teal-base: var(--tailwind-colors-teal-500);--color-teal-100: var(--tailwind-colors-teal-900);--color-teal-90: var(--tailwind-colors-teal-800);--color-teal-80: var(--tailwind-colors-teal-700);--color-teal-70: var(--tailwind-colors-teal-600);--color-teal-60: var(--tailwind-colors-teal-500);--color-teal-50: var(--tailwind-colors-teal-400);--color-teal-40: var(--tailwind-colors-teal-300);--color-teal-30: var(--tailwind-colors-teal-200);--color-teal-20: var(--tailwind-colors-teal-100);--color-teal-10: var(--tailwind-colors-teal-50);--color-sky-base: var(--tailwind-colors-sky-500);--color-sky-100: var(--tailwind-colors-sky-900);--color-sky-90: var(--tailwind-colors-sky-800);--color-sky-80: var(--tailwind-colors-sky-700);--color-sky-70: var(--tailwind-colors-sky-600);--color-sky-60: var(--tailwind-colors-sky-500);--color-sky-50: var(--tailwind-colors-sky-400);--color-sky-40: var(--tailwind-colors-sky-300);--color-sky-30: var(--tailwind-colors-sky-200);--color-sky-20: var(--tailwind-colors-sky-100);--color-sky-10: var(--tailwind-colors-sky-50);--color-indigo-base: var(--tailwind-colors-indigo-500);--color-indigo-100: var(--tailwind-colors-indigo-900);--color-indigo-90: var(--tailwind-colors-indigo-800);--color-indigo-80: var(--tailwind-colors-indigo-700);--color-indigo-70: var(--tailwind-colors-indigo-600);--color-indigo-60: var(--tailwind-colors-indigo-500);--color-indigo-50: var(--tailwind-colors-indigo-400);--color-indigo-40: var(--tailwind-colors-indigo-300);--color-indigo-30: var(--tailwind-colors-indigo-200);--color-indigo-20: var(--tailwind-colors-indigo-100);--color-indigo-10: var(--tailwind-colors-indigo-50);--color-magenta-base: var(--tailwind-colors-pink-500);--color-magenta-100: var(--tailwind-colors-pink-900);--color-magenta-90: var(--tailwind-colors-pink-800);--color-magenta-80: var(--tailwind-colors-pink-700);--color-magenta-70: var(--tailwind-colors-pink-600);--color-magenta-60: var(--tailwind-colors-pink-500);--color-magenta-50: var(--tailwind-colors-pink-400);--color-magenta-40: var(--tailwind-colors-pink-300);--color-magenta-30: var(--tailwind-colors-pink-200);--color-magenta-20: var(--tailwind-colors-pink-100);--color-magenta-10: var(--tailwind-colors-pink-50);--color-purple-base: var(--tailwind-colors-purple-500);--color-purple-100: var(--tailwind-colors-purple-900);--color-purple-90: var(--tailwind-colors-purple-800);--color-purple-80: var(--tailwind-colors-purple-700);--color-purple-70: var(--tailwind-colors-purple-600);--color-purple-60: var(--tailwind-colors-purple-500);--color-purple-50: var(--tailwind-colors-purple-400);--color-purple-40: var(--tailwind-colors-purple-300);--color-purple-30: var(--tailwind-colors-purple-200);--color-purple-20: var(--tailwind-colors-purple-100);--color-purple-10: var(--tailwind-colors-purple-50);--color-bronze-base: var(--tailwind-colors-amber-500);--color-bronze-100: var(--tailwind-colors-amber-900);--color-bronze-90: var(--tailwind-colors-amber-800);--color-bronze-80: var(--tailwind-colors-amber-700);--color-bronze-70: var(--tailwind-colors-amber-600);--color-bronze-60: var(--tailwind-colors-amber-500);--color-bronze-50: var(--tailwind-colors-amber-400);--color-bronze-40: var(--tailwind-colors-amber-300);--color-bronze-30: var(--tailwind-colors-amber-200);--color-bronze-20: var(--tailwind-colors-amber-100);--color-bronze-10: var(--tailwind-colors-amber-50);--color-blue-base: var(--tailwind-colors-blue-500);--color-blue-100: var(--tailwind-colors-blue-900);--color-blue-90: var(--tailwind-colors-blue-800);--color-blue-80: var(--tailwind-colors-blue-700);--color-blue-70: var(--tailwind-colors-blue-600);--color-blue-60: var(--tailwind-colors-blue-500);--color-blue-50: var(--tailwind-colors-blue-400);--color-blue-40: var(--tailwind-colors-blue-300);--color-blue-30: var(--tailwind-colors-blue-200);--color-blue-20: var(--tailwind-colors-blue-100);--color-blue-10: var(--tailwind-colors-blue-50);--color-green-base: var(--tailwind-colors-green-500);--color-green-100: var(--tailwind-colors-green-900);--color-green-90: var(--tailwind-colors-green-800);--color-green-80: var(--tailwind-colors-green-700);--color-green-70: var(--tailwind-colors-green-600);--color-green-60: var(--tailwind-colors-green-500);--color-green-50: var(--tailwind-colors-green-400);--color-green-40: var(--tailwind-colors-green-300);--color-green-30: var(--tailwind-colors-green-200);--color-green-20: var(--tailwind-colors-green-100);--color-green-10: var(--tailwind-colors-green-50);--color-red-base: var(--tailwind-colors-red-500);--color-red-100: var(--tailwind-colors-red-900);--color-red-90: var(--tailwind-colors-red-800);--color-red-80: var(--tailwind-colors-red-700);--color-red-70: var(--tailwind-colors-red-600);--color-red-60: var(--tailwind-colors-red-500);--color-red-50: var(--tailwind-colors-red-400);--color-red-40: var(--tailwind-colors-red-300);--color-red-30: var(--tailwind-colors-red-200);--color-red-20: var(--tailwind-colors-red-100);--color-red-10: var(--tailwind-colors-red-50);--color-gray-base: var(--tailwind-colors-gray-500);--color-gray-100: var(--tailwind-colors-gray-900);--color-gray-90: var(--tailwind-colors-gray-800);--color-gray-80: var(--tailwind-colors-gray-700);--color-gray-70: var(--tailwind-colors-gray-600);--color-gray-60: var(--tailwind-colors-gray-500);--color-gray-50: var(--tailwind-colors-gray-400);--color-gray-40: var(--tailwind-colors-gray-300);--color-gray-30: var(--tailwind-colors-gray-200);--color-gray-20: var(--tailwind-colors-gray-100);--color-gray-10: var(--tailwind-colors-gray-50);--color-hotorchid-base: var(--tailwind-colors-pink-500);--color-white-white: var(--tailwind-colors-white);--color-black-black: var(--tailwind-colors-black);--color-black-base: var(--tailwind-colors-stone-900)}.mapsindoors-map{position:relative;width:100%;height:100%;overflow-y:hidden}.mapsindoors-map *{box-sizing:border-box;font-family:var(--font-family-system)}.mapsindoors-map--show-elements mi-floor-selector{visibility:visible}.mapsindoors-map--show-elements .venue-selector__button,.mapsindoors-map--show-elements .view-mode-switch{display:block}.mapsindoors-map--hide-elements mi-floor-selector{visibility:hidden}.mapsindoors-map--hide-elements .venue-selector__button,.mapsindoors-map--hide-elements .view-mode-switch{display:none}.mapsindoors-map--show-my-position mi-my-position{display:block}.mapsindoors-map--hide-my-position mi-my-position{display:none}.mapsindoors-map--hide-venue-selector .view-mode-switch{margin-top:-68px}@media (max-width: 992px){.mapsindoors-map--hide-venue-selector .view-mode-switch{margin-top:-62px}}.mapsindoors-map .mi-floor-selector__list{box-sizing:unset}.map-container{width:100%;height:100%;position:relative}.map-container #mi_map_logo{z-index:var(--z-index-dropdown)!important}.prevent-scroll{-webkit-overflow-scrolling:touch;overscroll-behavior:none}.gm-style .gmnoprint{right:44px!important}.gm-style .gmnoprint div{border-radius:var(--rounding-large)!important}.mapboxgl-map{font:12px/20px Helvetica Neue,Arial,Helvetica,sans-serif;overflow:hidden;position:relative;-webkit-tap-highlight-color:rgb(0 0 0/0)}.mapboxgl-canvas{left:0;position:absolute;top:0}.mapboxgl-map:-webkit-full-screen{height:100%;width:100%}.mapboxgl-canary{background-color:salmon}.mapboxgl-canvas-container.mapboxgl-interactive,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass{cursor:grab;-webkit-user-select:none;user-select:none}.mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer{cursor:pointer}.mapboxgl-canvas-container.mapboxgl-interactive:active,.mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active{cursor:grabbing}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-canvas-container.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:pinch-zoom}.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,.mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas{touch-action:none}.mapboxgl-ctrl-bottom-left,.mapboxgl-ctrl-bottom-right,.mapboxgl-ctrl-top-left,.mapboxgl-ctrl-top-right{pointer-events:none;position:absolute;z-index:2}.mapboxgl-ctrl-top-left{left:0;top:0}.mapboxgl-ctrl-top-right{right:0;top:0}.mapboxgl-ctrl-bottom-left{bottom:0;left:0}.mapboxgl-ctrl-bottom-right{bottom:0;right:0}.mapboxgl-ctrl{clear:both;pointer-events:auto;transform:translate(0)}.mapboxgl-ctrl-top-left .mapboxgl-ctrl{float:left;margin:10px 0 0 10px}.mapboxgl-ctrl-top-right .mapboxgl-ctrl{float:right;margin:10px 10px 0 0}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl{float:left;margin:0 0 10px 10px}.mapboxgl-ctrl-bottom-right .mapboxgl-ctrl{float:right;margin:0 10px 10px 0}.mapboxgl-ctrl-group{background:#fff;border-radius:4px}.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px #0000001a}@media (-ms-high-contrast:active){.mapboxgl-ctrl-group:not(:empty){box-shadow:0 0 0 2px ButtonText}}.mapboxgl-ctrl-group button{background-color:transparent;border:0;box-sizing:border-box;cursor:pointer;display:block;height:29px;outline:none;overflow:hidden;padding:0;width:29px}.mapboxgl-ctrl-group button+button{border-top:1px solid #ddd}.mapboxgl-ctrl button .mapboxgl-ctrl-icon{background-position:50%;background-repeat:no-repeat;display:block;height:100%;width:100%}@media (-ms-high-contrast:active){.mapboxgl-ctrl-icon{background-color:transparent}.mapboxgl-ctrl-group button+button{border-top:1px solid ButtonText}}.mapboxgl-ctrl-attrib-button:focus,.mapboxgl-ctrl-group button:focus{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl button:disabled{cursor:not-allowed}.mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon{opacity:.25}.mapboxgl-ctrl-group button:first-child{border-radius:4px 4px 0 0}.mapboxgl-ctrl-group button:last-child{border-radius:0 0 4px 4px}.mapboxgl-ctrl-group button:only-child{border-radius:inherit}.mapboxgl-ctrl button:not(:disabled):hover{background-color:#0000000d}.mapboxgl-ctrl-group button:focus:focus-visible{box-shadow:0 0 2px 2px #0096ff}.mapboxgl-ctrl-group button:focus:not(:focus-visible){box-shadow:none}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-out .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10 13c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h9c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-9z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-zoom-in .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M14.5 8.5c-.75 0-1.5.75-1.5 1.5v3h-3c-.75 0-1.5.75-1.5 1.5S9.25 16 10 16h3v3c0 .75.75 1.5 1.5 1.5S16 19.75 16 19v-3h3c.75 0 1.5-.75 1.5-1.5S19.75 13 19 13h-3v-3c0-.75-.75-1.5-1.5-1.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-fullscreen .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M24 16v5.5c0 1.75-.75 2.5-2.5 2.5H16v-1l3-1.5-4-5.5 1-1 5.5 4 1.5-3h1zM6 16l1.5 3 5.5-4 1 1-4 5.5 3 1.5v1H7.5C5.75 24 5 23.25 5 21.5V16h1zm7-11v1l-3 1.5 4 5.5-1 1-5.5-4L6 13H5V7.5C5 5.75 5.75 5 7.5 5H13zm11 2.5c0-1.75-.75-2.5-2.5-2.5H16v1l3 1.5-4 5.5 1 1 5.5-4 1.5 3h1V7.5z'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-shrink .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M18.5 16c-1.75 0-2.5.75-2.5 2.5V24h1l1.5-3 5.5 4 1-1-4-5.5 3-1.5v-1h-5.5zM13 18.5c0-1.75-.75-2.5-2.5-2.5H5v1l3 1.5L4 24l1 1 5.5-4 1.5 3h1v-5.5zm3-8c0 1.75.75 2.5 2.5 2.5H24v-1l-3-1.5L25 5l-1-1-5.5 4L17 5h-1v5.5zM10.5 13c1.75 0 2.5-.75 2.5-2.5V5h-1l-1.5 3L5 4 4 5l4 5.5L5 12v1h5.5z'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23333' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23999'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-compass .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23000' viewBox='0 0 29 29'%3E%3Cpath d='M10.5 14l4-8 4 8h-8z'/%3E%3Cpath id='south' d='M10.5 16l4 8 4-8h-8z' fill='%23ccc'/%3E%3C/svg%3E")}}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23333'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23aaa'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-waiting .mapboxgl-ctrl-icon{animation:mapboxgl-spin 2s linear infinite}@media (-ms-high-contrast:active){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23fff'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23999'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-active-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e58978'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%2333b5e5'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate.mapboxgl-ctrl-geolocate-background-error .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23e54e33'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2' display='none'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23000'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' display='none'/%3E%3C/svg%3E")}.mapboxgl-ctrl button.mapboxgl-ctrl-geolocate:disabled .mapboxgl-ctrl-icon{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill='%23666'%3E%3Cpath d='M10 4C9 4 9 5 9 5v.1A5 5 0 0 0 5.1 9H5s-1 0-1 1 1 1 1 1h.1A5 5 0 0 0 9 14.9v.1s0 1 1 1 1-1 1-1v-.1a5 5 0 0 0 3.9-3.9h.1s1 0 1-1-1-1-1-1h-.1A5 5 0 0 0 11 5.1V5s0-1-1-1zm0 2.5a3.5 3.5 0 1 1 0 7 3.5 3.5 0 1 1 0-7z'/%3E%3Ccircle id='dot' cx='10' cy='10' r='2'/%3E%3Cpath id='stroke' d='M14 5l1 1-9 9-1-1 9-9z' fill='%23f00'/%3E%3C/svg%3E")}}@keyframes mapboxgl-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='0.3' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='0.9' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E");background-repeat:no-repeat;cursor:pointer;display:block;height:23px;margin:0 0 -4px -4px;overflow:hidden;width:88px}a.mapboxgl-ctrl-logo.mapboxgl-compact{width:23px}@media (-ms-high-contrast:active){a.mapboxgl-ctrl-logo{background-color:transparent;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23000' stroke-width='3'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23fff'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}@media (-ms-high-contrast:black-on-white){a.mapboxgl-ctrl-logo{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' fill-rule='evenodd' viewBox='0 0 88 23'%3E%3Cdefs%3E%3Cpath id='logo' d='M11.5 2.25c5.105 0 9.25 4.145 9.25 9.25s-4.145 9.25-9.25 9.25-9.25-4.145-9.25-9.25 4.145-9.25 9.25-9.25zM6.997 15.983c-.051-.338-.828-5.802 2.233-8.873a4.395 4.395 0 013.13-1.28c1.27 0 2.49.51 3.39 1.42.91.9 1.42 2.12 1.42 3.39 0 1.18-.449 2.301-1.28 3.13C12.72 16.93 7 16 7 16l-.003-.017zM15.3 10.5l-2 .8-.8 2-.8-2-2-.8 2-.8.8-2 .8 2 2 .8z'/%3E%3Cpath id='text' d='M50.63 8c.13 0 .23.1.23.23V9c.7-.76 1.7-1.18 2.73-1.18 2.17 0 3.95 1.85 3.95 4.17s-1.77 4.19-3.94 4.19c-1.04 0-2.03-.43-2.74-1.18v3.77c0 .13-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V8.23c0-.12.1-.23.23-.23h1.4zm-3.86.01c.01 0 .01 0 .01-.01.13 0 .22.1.22.22v7.55c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V15c-.7.76-1.69 1.19-2.73 1.19-2.17 0-3.94-1.87-3.94-4.19 0-2.32 1.77-4.19 3.94-4.19 1.03 0 2.02.43 2.73 1.18v-.75c0-.12.1-.23.23-.23h1.4zm26.375-.19a4.24 4.24 0 00-4.16 3.29c-.13.59-.13 1.19 0 1.77a4.233 4.233 0 004.17 3.3c2.35 0 4.26-1.87 4.26-4.19 0-2.32-1.9-4.17-4.27-4.17zM60.63 5c.13 0 .23.1.23.23v3.76c.7-.76 1.7-1.18 2.73-1.18 1.88 0 3.45 1.4 3.84 3.28.13.59.13 1.2 0 1.8-.39 1.88-1.96 3.29-3.84 3.29-1.03 0-2.02-.43-2.73-1.18v.77c0 .12-.1.23-.23.23h-1.4c-.13 0-.23-.1-.23-.23V5.23c0-.12.1-.23.23-.23h1.4zm-34 11h-1.4c-.13 0-.23-.11-.23-.23V8.22c.01-.13.1-.22.23-.22h1.4c.13 0 .22.11.23.22v.68c.5-.68 1.3-1.09 2.16-1.1h.03c1.09 0 2.09.6 2.6 1.55.45-.95 1.4-1.55 2.44-1.56 1.62 0 2.93 1.25 2.9 2.78l.03 5.2c0 .13-.1.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.8 0-1.46.7-1.59 1.62l.01 4.68c0 .13-.11.23-.23.23h-1.41c-.13 0-.23-.11-.23-.23v-4.59c0-.98-.74-1.71-1.62-1.71-.85 0-1.54.79-1.6 1.8v4.5c0 .13-.1.23-.23.23zm53.615 0h-1.61c-.04 0-.08-.01-.12-.03-.09-.06-.13-.19-.06-.28l2.43-3.71-2.39-3.65a.213.213 0 01-.03-.12c0-.12.09-.21.21-.21h1.61c.13 0 .24.06.3.17l1.41 2.37 1.4-2.37a.34.34 0 01.3-.17h1.6c.04 0 .08.01.12.03.09.06.13.19.06.28l-2.37 3.65 2.43 3.7c0 .05.01.09.01.13 0 .12-.09.21-.21.21h-1.61c-.13 0-.24-.06-.3-.17l-1.44-2.42-1.44 2.42a.34.34 0 01-.3.17zm-7.12-1.49c-1.33 0-2.42-1.12-2.42-2.51 0-1.39 1.08-2.52 2.42-2.52 1.33 0 2.42 1.12 2.42 2.51 0 1.39-1.08 2.51-2.42 2.52zm-19.865 0c-1.32 0-2.39-1.11-2.42-2.48v-.07c.02-1.38 1.09-2.49 2.4-2.49 1.32 0 2.41 1.12 2.41 2.51 0 1.39-1.07 2.52-2.39 2.53zm-8.11-2.48c-.01 1.37-1.09 2.47-2.41 2.47s-2.42-1.12-2.42-2.51c0-1.39 1.08-2.52 2.4-2.52 1.33 0 2.39 1.11 2.41 2.48l.02.08zm18.12 2.47c-1.32 0-2.39-1.11-2.41-2.48v-.06c.02-1.38 1.09-2.48 2.41-2.48s2.42 1.12 2.42 2.51c0 1.39-1.09 2.51-2.42 2.51z'/%3E%3C/defs%3E%3Cmask id='clip'%3E%3Crect x='0' y='0' width='100%25' height='100%25' fill='white'/%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/mask%3E%3Cg id='outline' opacity='1' stroke='%23fff' stroke-width='3' fill='%23fff'%3E%3Ccircle mask='url(%23clip)' cx='11.5' cy='11.5' r='9.25'/%3E%3Cuse xlink:href='%23text' mask='url(%23clip)'/%3E%3C/g%3E%3Cg id='fill' opacity='1' fill='%23000'%3E%3Cuse xlink:href='%23logo'/%3E%3Cuse xlink:href='%23text'/%3E%3C/g%3E%3C/svg%3E")}}.mapboxgl-ctrl.mapboxgl-ctrl-attrib{background-color:#ffffff80;margin:0;padding:0 5px}@media screen{.mapboxgl-ctrl-attrib.mapboxgl-compact{background-color:#fff;border-radius:12px;box-sizing:content-box;margin:10px;min-height:20px;padding:2px 24px 2px 0;position:relative}.mapboxgl-ctrl-attrib.mapboxgl-compact-show{padding:2px 28px 2px 8px;visibility:visible}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show,.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact-show{border-radius:12px;padding:2px 8px 2px 28px}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner{display:none}.mapboxgl-ctrl-attrib-button{background-color:#ffffff80;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E");border:0;border-radius:12px;box-sizing:border-box;cursor:pointer;display:none;height:24px;outline:none;position:absolute;right:0;top:0;width:24px}.mapboxgl-ctrl-bottom-left .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-top-left .mapboxgl-ctrl-attrib-button{left:0}.mapboxgl-ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-button,.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-inner{display:block}.mapboxgl-ctrl-attrib.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button{background-color:#0000000d}.mapboxgl-ctrl-bottom-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;right:0}.mapboxgl-ctrl-top-right>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{right:0;top:0}.mapboxgl-ctrl-top-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{left:0;top:0}.mapboxgl-ctrl-bottom-left>.mapboxgl-ctrl-attrib.mapboxgl-compact:after{bottom:0;left:0}}@media screen and (-ms-high-contrast:active){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd' fill='%23fff'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}@media screen and (-ms-high-contrast:black-on-white){.mapboxgl-ctrl-attrib.mapboxgl-compact:after{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg' fill-rule='evenodd'%3E%3Cpath d='M4 10a6 6 0 1 0 12 0 6 6 0 1 0-12 0m5-3a1 1 0 1 0 2 0 1 1 0 1 0-2 0m0 3a1 1 0 1 1 2 0v3a1 1 0 1 1-2 0'/%3E%3C/svg%3E")}}.mapboxgl-ctrl-attrib a{color:#000000bf;text-decoration:none}.mapboxgl-ctrl-attrib a:hover{color:inherit;text-decoration:underline}.mapboxgl-ctrl-attrib .mapbox-improve-map{font-weight:700;margin-left:2px}.mapboxgl-attrib-empty{display:none}.mapboxgl-ctrl-scale{background-color:#ffffffbf;border:2px solid #333;border-top:#333;box-sizing:border-box;color:#333;font-size:10px;padding:0 5px;white-space:nowrap}.mapboxgl-popup{display:flex;left:0;pointer-events:none;position:absolute;top:0;will-change:transform}.mapboxgl-popup-anchor-top,.mapboxgl-popup-anchor-top-left,.mapboxgl-popup-anchor-top-right{flex-direction:column}.mapboxgl-popup-anchor-bottom,.mapboxgl-popup-anchor-bottom-left,.mapboxgl-popup-anchor-bottom-right{flex-direction:column-reverse}.mapboxgl-popup-anchor-left{flex-direction:row}.mapboxgl-popup-anchor-right{flex-direction:row-reverse}.mapboxgl-popup-tip{border:10px solid transparent;height:0;width:0;z-index:1}.mapboxgl-popup-anchor-top .mapboxgl-popup-tip{align-self:center;border-bottom-color:#fff;border-top:none}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom-color:#fff;border-left:none;border-top:none}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom-color:#fff;border-right:none;border-top:none}.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip{align-self:center;border-bottom:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-tip{align-self:flex-start;border-bottom:none;border-left:none;border-top-color:#fff}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-tip{align-self:flex-end;border-bottom:none;border-right:none;border-top-color:#fff}.mapboxgl-popup-anchor-left .mapboxgl-popup-tip{align-self:center;border-left:none;border-right-color:#fff}.mapboxgl-popup-anchor-right .mapboxgl-popup-tip{align-self:center;border-left-color:#fff;border-right:none}.mapboxgl-popup-close-button{background-color:transparent;border:0;border-radius:0 3px 0 0;cursor:pointer;position:absolute;right:0;top:0}.mapboxgl-popup-close-button:hover{background-color:#0000000d}.mapboxgl-popup-content{background:#fff;border-radius:3px;box-shadow:0 1px 2px #0000001a;padding:10px 10px 15px;pointer-events:auto;position:relative}.mapboxgl-popup-anchor-top-left .mapboxgl-popup-content{border-top-left-radius:0}.mapboxgl-popup-anchor-top-right .mapboxgl-popup-content{border-top-right-radius:0}.mapboxgl-popup-anchor-bottom-left .mapboxgl-popup-content{border-bottom-left-radius:0}.mapboxgl-popup-anchor-bottom-right .mapboxgl-popup-content{border-bottom-right-radius:0}.mapboxgl-popup-track-pointer{display:none}.mapboxgl-popup-track-pointer *{pointer-events:none;user-select:none}.mapboxgl-map:hover .mapboxgl-popup-track-pointer{display:flex}.mapboxgl-map:active .mapboxgl-popup-track-pointer{display:none}.mapboxgl-marker{left:0;opacity:1;position:absolute;top:0;transition:opacity .2s;will-change:transform}.mapboxgl-user-location-dot,.mapboxgl-user-location-dot:before{background-color:#1da1f2;border-radius:50%;height:15px;width:15px}.mapboxgl-user-location-dot:before{animation:mapboxgl-user-location-dot-pulse 2s infinite;content:"";position:absolute}.mapboxgl-user-location-dot:after{border:2px solid #fff;border-radius:50%;box-shadow:0 0 3px #00000059;box-sizing:border-box;content:"";height:19px;left:-2px;position:absolute;top:-2px;width:19px}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading{height:0;width:0}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after,.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-bottom:7.5px solid #4aa1eb;content:"";position:absolute}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:before{border-left:7.5px solid transparent;transform:translateY(-28px) skewY(-20deg)}.mapboxgl-user-location-show-heading .mapboxgl-user-location-heading:after{border-right:7.5px solid transparent;transform:translate(7.5px,-28px) skewY(20deg)}@keyframes mapboxgl-user-location-dot-pulse{0%{opacity:1;transform:scale(1)}70%{opacity:0;transform:scale(3)}to{opacity:0;transform:scale(1)}}.mapboxgl-user-location-dot-stale{background-color:#aaa}.mapboxgl-user-location-dot-stale:after{display:none}.mapboxgl-user-location-accuracy-circle{background-color:#1da1f233;border-radius:100%;height:1px;width:1px}.mapboxgl-crosshair,.mapboxgl-crosshair .mapboxgl-interactive,.mapboxgl-crosshair .mapboxgl-interactive:active{cursor:crosshair}.mapboxgl-boxzoom{background:#fff;border:2px dotted #202020;height:0;left:0;opacity:.5;position:absolute;top:0;width:0}@media print{.mapbox-improve-map{display:none}}.mapboxgl-scroll-zoom-blocker,.mapboxgl-touch-pan-blocker{align-items:center;background:rgba(0,0,0,.7);color:#fff;display:flex;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;height:100%;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;text-align:center;top:0;transition:opacity .75s ease-in-out;transition-delay:1s;width:100%}.mapboxgl-scroll-zoom-blocker-show,.mapboxgl-touch-pan-blocker-show{opacity:1;transition:opacity .1s ease-in-out}.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page,.mapboxgl-canvas-container.mapboxgl-touch-pan-blocker-override.mapboxgl-scrollable-page .mapboxgl-canvas{touch-action:pan-x pan-y}.mapboxgl-control-container .mapboxgl-ctrl-group{margin:10px var(--spacing-small) 10px 0!important;border-radius:var(--rounding-large);box-shadow:0 0 0 var(--spacing-xxx-small) #e5e7eb!important}.mapboxgl-control-container .mapboxgl-ctrl-group button{padding:var(--spacing-large)}.mapboxgl-control-container .mapboxgl-ctrl-zoom-in{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuODMzMzQ0IDEwQzAuODMzMzQ0IDEwLjMzMTUgMC45NjUwNCAxMC42NDk1IDEuMTk5NDYgMTAuODgzOUMxLjQzMzg4IDExLjExODMgMS43NTE4MiAxMS4yNSAyLjA4MzM0IDExLjI1SDguNTQxNjhDOC41OTY5MyAxMS4yNSA4LjY0OTkyIDExLjI3MTkgOC42ODg5OSAxMS4zMTFDOC43MjgwNiAxMS4zNTAxIDguNzUwMDEgMTEuNDAzMSA4Ljc1MDAxIDExLjQ1ODNWMTcuOTE2N0M4Ljc1MDAxIDE4LjI0ODIgOC44ODE3MSAxOC41NjYxIDkuMTE2MTMgMTguODAwNUM5LjM1MDU1IDE5LjAzNSA5LjY2ODQ5IDE5LjE2NjcgMTAgMTkuMTY2N0MxMC4zMzE1IDE5LjE2NjcgMTAuNjQ5NSAxOS4wMzUgMTAuODgzOSAxOC44MDA1QzExLjExODMgMTguNTY2MSAxMS4yNSAxOC4yNDgyIDExLjI1IDE3LjkxNjdWMTEuNDU4M0MxMS4yNSAxMS40MDMxIDExLjI3MiAxMS4zNTAxIDExLjMxMSAxMS4zMTFDMTEuMzUwMSAxMS4yNzE5IDExLjQwMzEgMTEuMjUgMTEuNDU4MyAxMS4yNUgxNy45MTY3QzE4LjI0ODIgMTEuMjUgMTguNTY2MSAxMS4xMTgzIDE4LjgwMDYgMTAuODgzOUMxOS4wMzUgMTAuNjQ5NSAxOS4xNjY3IDEwLjMzMTUgMTkuMTY2NyAxMEMxOS4xNjY3IDkuNjY4NDggMTkuMDM1IDkuMzUwNTQgMTguODAwNiA5LjExNjEyQzE4LjU2NjEgOC44ODE2OSAxOC4yNDgyIDguNzUgMTcuOTE2NyA4Ljc1SDExLjQ1ODNDMTEuNDAzMSA4Ljc1IDExLjM1MDEgOC43MjgwNSAxMS4zMTEgOC42ODg5OEMxMS4yNzIgOC42NDk5MSAxMS4yNSA4LjU5NjkyIDExLjI1IDguNTQxNjdWMi4wODMzM0MxMS4yNSAxLjc1MTgxIDExLjExODMgMS40MzM4NyAxMC44ODM5IDEuMTk5NDVDMTAuNjQ5NSAwLjk2NTAyOSAxMC4zMzE1IDAuODMzMzMzIDEwIDAuODMzMzMzQzkuNjY4NDkgMC44MzMzMzMgOS4zNTA1NSAwLjk2NTAyOSA5LjExNjEzIDEuMTk5NDVDOC44ODE3MSAxLjQzMzg3IDguNzUwMDEgMS43NTE4MSA4Ljc1MDAxIDIuMDgzMzNWOC41NDE2N0M4Ljc1MDAxIDguNTk2OTIgOC43MjgwNiA4LjY0OTkxIDguNjg4OTkgOC42ODg5OEM4LjY0OTkyIDguNzI4MDUgOC41OTY5MyA4Ljc1IDguNTQxNjggOC43NUgyLjA4MzM0QzEuNzUxODIgOC43NSAxLjQzMzg4IDguODgxNjkgMS4xOTk0NiA5LjExNjEyQzAuOTY1MDQgOS4zNTA1NCAwLjgzMzM0NCA5LjY2ODQ4IDAuODMzMzQ0IDEwWiIgZmlsbD0iIzc4NzE2QyIvPgo8L3N2Zz4K);background-repeat:no-repeat;background-size:20px 20px;background-position:center center}.mapboxgl-control-container .mapboxgl-ctrl-zoom-out{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDgzMzMgMTEuNjY2N0gxNy45MTY3QzE4LjI0ODIgMTEuNjY2NyAxOC41NjYxIDExLjUzNSAxOC44MDA1IDExLjMwMDZDMTkuMDM1IDExLjA2NjEgMTkuMTY2NyAxMC43NDgyIDE5LjE2NjcgMTAuNDE2N0MxOS4xNjY3IDEwLjA4NTEgMTkuMDM1IDkuNzY3MiAxOC44MDA1IDkuNTMyNzhDMTguNTY2MSA5LjI5ODM2IDE4LjI0ODIgOS4xNjY2NyAxNy45MTY3IDkuMTY2NjdIMi4wODMzM0MxLjc1MTgxIDkuMTY2NjcgMS40MzM4NyA5LjI5ODM2IDEuMTk5NDUgOS41MzI3OEMwLjk2NTAyOSA5Ljc2NzIgMC44MzMzMzMgMTAuMDg1MSAwLjgzMzMzMyAxMC40MTY3QzAuODMzMzMzIDEwLjc0ODIgMC45NjUwMjkgMTEuMDY2MSAxLjE5OTQ1IDExLjMwMDZDMS40MzM4NyAxMS41MzUgMS43NTE4MSAxMS42NjY3IDIuMDgzMzMgMTEuNjY2N1oiIGZpbGw9IiM3ODcxNkMiLz4KPC9zdmc+Cg==);background-repeat:no-repeat;background-size:20px 20px;background-position:center center}.mapboxgl-control-container .mapboxgl-ctrl-icon{background-image:none}.view-mode-switch{display:grid;background-color:#fff;height:fit-content;border-radius:var(--spacing-small);border:1px solid #E6E6E6;gap:var(--spacing-xx-small);padding:var(--spacing-xx-small);position:absolute;z-index:var(--z-index-sticky);top:100px;left:var(--spacing-x-large)}.view-mode-switch__button{border-radius:var(--rounding-large);width:var(--spacing-xx-large);height:var(--spacing-xx-large);display:grid;align-items:center;justify-content:center;border:none}@media (max-width: 992px){.view-mode-switch{top:70px;left:var(--spacing-x-small)}}.splash-screen{will-change:transform,rotate;display:grid;width:100%;height:100%;position:absolute;z-index:var(--z-index-top);background-color:var(--brand-colors-white-100)}.splash-screen__logo{width:100%;max-height:100%}.splash-screen__loader{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);border-radius:50%;position:relative;animation:loader 1s infinite linear}.splash-screen__container{display:grid;justify-self:center;grid-auto-flow:row;grid-auto-rows:300px min-content;align-content:center;grid-template-columns:300px;justify-items:center;align-items:center;gap:var(--spacing-xxx-large);animation:slideIn 1s}@keyframes loader{0%{rotate:0deg}to{rotate:360deg}}@keyframes slideIn{0%{transform:translateY(100%)}to{transform:translateY(0)}}.venue-selector__content{position:absolute;background-color:#fff;z-index:var(--z-index-popup);overflow-y:hidden;display:grid;grid-template-rows:var(--spacing-xxxx-large) 1fr}.venue-selector__content h1{color:var(--color-gray-90);font-size:var(--font-size-small);margin:0;height:calc(var(--spacing-xx-large) + 2 * var(--spacing-small));display:flex;align-items:center;justify-content:center}.venue-selector__content-enter{top:var(--spacing-small);bottom:calc(100% - var(--spacing-xxxx-large));left:var(--spacing-x-small);width:var(--spacing-xx-large);transition:all .4s ease;opacity:0}.venue-selector__content-enter-active,.venue-selector__content-enter-done{top:0;bottom:0;left:0;width:100%;opacity:1}.venue-selector__content-exit{top:var(--spacing-xxxx-large);bottom:0;left:0;width:100%;transition:all .4s ease;opacity:1}.venue-selector__content-exit-active{top:var(--spacing-small);bottom:calc(100% - var(--spacing-xxxx-large));left:var(--spacing-x-small);width:var(--spacing-xx-large);opacity:0}.venue-selector__list{overflow-y:auto}.venue-selector__button{background-color:var(--tailwind-colors-white);border-radius:var(--rounding-large);border:1px solid #E6E6E6;position:absolute;width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);top:var(--spacing-small);left:var(--spacing-x-small);z-index:var(--z-index-sticky)}.venue-selector__button--open{z-index:calc(var(--z-index-popup) + 1)}.venue-selector__button svg{display:block;margin:0 auto}.venue-selector__button:hover{background-color:var(--tailwind-colors-gray-100);border:1px solid var(--tailwind-colors-gray-200)}@media (min-width: 992px){.venue-selector__content{width:568px;left:var(--spacing-large);bottom:var(--spacing-large);top:var(--spacing-large);border-radius:var(--rounding-large)}.venue-selector__button{top:var(--spacing-x-large);left:var(--spacing-x-large)}}.venue{all:unset;width:calc(100% - var(--spacing-medium));margin:0 var(--spacing-x-small) var(--spacing-x-small) var(--spacing-x-small);border-radius:var(--rounding-x-large);color:var(--color-white-base);position:relative;background:linear-gradient(#b8b8b8,#5e5e5e)}.venue__image{position:relative;width:100%;aspect-ratio:16/9;background-repeat:no-repeat;background-size:cover;background-position:50% 50%;border-radius:var(--rounding-x-large)}.venue__image:hover{border:2px solid var(--brand-colors-dark-pine-100)}.venue__content{position:absolute;bottom:0;top:50%;padding:var(--spacing-medium);border-radius:var(--rounding-x-large);font-size:var(--font-size-small);background:linear-gradient(rgba(0,0,0,0),rgba(0,0,0,.6));width:100%;display:flex;align-items:flex-end;justify-content:space-between;gap:var(--spacing-medium)}.venue__current{border:1px solid white;border-radius:var(--rounding-large);padding:var(--spacing-x-small)}@media (min-width: 992px){.venue{margin:0 72px var(--spacing-medium) 72px;width:calc(100% - 144px)}}.sheet{pointer-events:none;opacity:0;transition:all .25s;position:absolute;bottom:0;width:100%;max-height:100%;transform:translateY(100%);background-color:var(--color-white-white);border-top-left-radius:var(--rounding-large);border-top-right-radius:var(--rounding-large)}.sheet:before{position:absolute;content:" ";top:var(--spacing-xx-small);left:50%;transform:translate(-50%);width:28px;height:var(--spacing-xx-small);border-radius:var(--spacing-xx-small);background-color:var(--color-gray-20)}.sheet--active{pointer-events:all;opacity:1;transform:translateY(0)}.sheet--dragging{transition:none}.sheet--dragging *{user-select:none}.sheet__content{height:100%;overflow-y:auto}.bottom-sheets{pointer-events:none;position:absolute;inset:0;z-index:var(--z-index-overlay);overflow:hidden}.location-details{padding:var(--spacing-medium);color:var(--color-black-base);display:grid;height:100%;overflow-y:hidden;grid-template-rows:min-content 1fr 64px}.location-details--content-below{position:relative}.location-details--content-below:before{content:"";position:absolute;bottom:calc(64px + var(--spacing-medium));left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.location-details--content-above{position:relative}.location-details--content-above:after{content:"";position:absolute;top:56px;left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(white,rgba(255,255,255,0))}.location-details__details{display:flex;flex-direction:column;gap:var(--spacing-medium);overflow-y:auto}.location-details__details>*:first-child{margin-top:var(--spacing-medium)}.location-details__image{width:100%;border-radius:var(--rounding-large);object-fit:contain;margin:var(--spacing-medium) 0}.location-details__categories{font-size:var(--font-size-small);margin:0}.location-details__description{white-space:pre-wrap;overflow-wrap:break-word}.location-details__description div{font-size:var(--font-size-small);color:var(--color-gray-70);line-height:1.5;overflow-y:hidden;max-height:var(--spacing-xxxx-large)}.location-details__description button{all:unset;font-size:var(--font-size-small);color:var(--color-blue-base);margin-top:var(--spacing-x-small);cursor:pointer}.location-details__description--full div{max-height:none}.location-details__wayfinding{margin-top:var(--spacing-medium);color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;font-weight:var(--font-weight-x-large)}.location-details__wayfinding:hover{filter:brightness(90%)}.location-details--no-route{opacity:.5;cursor:not-allowed}.location-info{display:grid;align-items:center;font-size:var(--font-size-small);grid-template-columns:min-content 1fr var(--spacing-xx-large);gap:var(--spacing-x-small)}.location-info__icon{margin-right:var(--spacing-medium)}.location-info__icon img{height:var(--spacing-x-large);display:block}.location-info__close{background:none;border:1px solid var(--tailwind-colors-gray-200);margin-left:auto;width:var(--spacing-xx-large);height:var(--spacing-xx-large);border-radius:var(--rounding-large);display:grid;justify-content:center;align-items:center;align-self:start}.location-info__close:hover{background-color:var(--tailwind-colors-gray-50);cursor:pointer}.location-info__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.location-info__content{display:grid;gap:var(--spacing-xx-small)}.wayfinding{color:var(--brand-colors-black-100);display:grid;grid-template-rows:238px min-content;min-height:435px}.wayfinding__directions{background-color:var(--color-gray-20);border-bottom:1px solid var(--color-gray-30);padding:var(--spacing-medium);position:relative;border-radius:var(--rounding-large) var(--rounding-large) 0 0}.wayfinding__title{font-size:var(--font-size-small);text-align:center;font-weight:var(--font-weight-large);color:var(--color-gray-70);padding-bottom:var(--spacing-medium)}.wayfinding__close{position:absolute;top:var(--spacing-x-small);right:var(--spacing-x-small);background-color:var(--tailwind-colors-gray-100);border:1px solid var(--tailwind-colors-gray-200);margin-left:auto;width:var(--spacing-xx-large);height:var(--spacing-xx-large);border-radius:var(--rounding-large);display:grid;justify-content:center;align-items:center}.wayfinding__close:hover{background-color:var(--tailwind-colors-gray-200)}.wayfinding__locations{display:grid;gap:var(--spacing-medium);position:relative}.wayfinding__label{display:grid;gap:var(--spacing-x-small);font-size:var(--font-size-small);color:var(--color-gray-70);font-weight:var(--font-weight-large)}.wayfinding__use-current-position{padding:var(--spacing-medium);font-size:var(--font-size-medium);font-weight:var(--font-weight-large);line-height:1rem;transition:all .3s ease 0s;border-radius:var(--rounding-large);background-color:#f9fafb;display:grid;grid-template-columns:var(--spacing-x-large) 1fr;align-items:center;cursor:pointer;gap:var(--spacing-medium);border:1px solid rgb(229,231,235);margin:var(--spacing-x-small) var(--spacing-x-small) 0 var(--spacing-x-small);height:fit-content;justify-items:start}.wayfinding__use-current-position svg{justify-self:center}.wayfinding__details{padding:var(--spacing-large) var(--spacing-medium) var(--spacing-medium) var(--spacing-medium)}.wayfinding__results{display:grid;gap:var(--spacing-x-small);padding:var(--spacing-x-small);grid-auto-rows:min-content}.wayfinding__results p{text-align:center}.wayfinding__info{display:grid;gap:var(--spacing-x-small)}.wayfinding__distance,.wayfinding__time{display:grid;grid-auto-flow:column;grid-template-columns:20px 1fr 1fr;gap:var(--spacing-x-small);align-items:center;color:var(--color-gray-70);width:fit-content}.wayfinding__distance svg{width:20px;height:20px}.wayfinding__time svg{width:var(--spacing-medium);height:var(--spacing-medium)}.wayfinding__minutes,.wayfinding__meters{font-weight:var(--font-weight-large)}.wayfinding hr{margin:var(--spacing-large) 0 var(--spacing-x-small) 0;background-color:var(--color-gray-30);border:none;height:1px}.wayfinding__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large)}.wayfinding__button:hover{filter:brightness(90%)}.wayfinding__button:disabled{opacity:.3;cursor:not-allowed}.wayfinding__scrollable{overflow:auto}.wayfinding__error{text-align:center}.wayfinding__switch{border:none;background:transparent;position:absolute;right:0;top:80px}.wayfinding__switch:hover{opacity:.8}.wayfinding__google{justify-self:center;width:110px}.wayfinding__settings{display:grid;grid-auto-flow:column;justify-content:space-between;width:100%;align-items:center}.wayfinding mi-dropdown::part(dropdown-container){overflow-y:auto;left:unset;right:var(--spacing-medium);top:unset;bottom:unset;min-width:160px;margin-top:0;margin-bottom:0}.wayfinding mi-dropdown::part(button){border-radius:var(--spacing-x-small);padding:0 var(--spacing-small);height:36px;background:var(--color-gray-10);border:1px solid var(--color-gray-30)}.non-selectable{pointer-events:none;opacity:.5}.tooltip{display:grid;position:relative}.tooltip:hover .tooltip__text{display:block}.tooltip__text{min-width:200px;top:-20px;left:50%;transform:translate(-50%,-100%);padding:0 var(--spacing-medium);color:var(--color-gray-70);background-color:var(--brand-colors-white-100);font-size:var(--font-size-small);border-radius:var(--rounding-large);position:absolute;z-index:10000;box-shadow:0 1px var(--spacing-x-small) #0003;display:none}.tooltip__text i{position:absolute;top:100%;left:50%;margin-left:-12px;width:var(--spacing-large);height:var(--spacing-small);overflow:hidden}.tooltip__text i:after{content:"";position:absolute;width:var(--spacing-small);height:var(--spacing-small);left:50%;transform:translate(-50%,-50%) rotate(45deg);background-color:var(--brand-colors-white-100);box-shadow:0 1px var(--spacing-x-small) #0003}.accessibility{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);align-items:center;width:fit-content}.directions{color:var(--brand-colors-black-100);height:100%;grid-template-rows:1fr}.directions__details{padding:var(--spacing-medium) 0}.directions__cancel,.directions__finish{background-color:var(--tailwind-colors-gray-100);border:none;border-radius:var(--rounding-large);width:100%;height:fit-content;padding:var(--spacing-medium);text-transform:uppercase;font-weight:var(--font-weight-x-large);color:var(--color-gray-70)}.directions__cancel:hover,.directions__finish:hover{background-color:var(--tailwind-colors-gray-200)}.directions__finish{color:var(--color-white-white)}.directions__minutes{font-weight:var(--font-weight-large);color:var(--color-gray-60);position:sticky;top:0;background:var(--color-white-white);z-index:10000;padding-bottom:var(--spacing-medium);padding-top:var(--spacing-medium)}.directions__info{display:flex;align-items:center;font-size:var(--font-size-small)}.directions__icon{margin-right:var(--spacing-medium)}.directions__icon img{height:var(--spacing-x-large);display:block}.directions__name{display:grid;grid-auto-flow:column;gap:var(--spacing-xx-small);font-size:var(--font-size-small)}.directions mi-location-info{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.directions__content{display:grid;gap:var(--spacing-xx-small)}.directions__qr-code{width:fit-content;display:grid;gap:var(--spacing-medium);grid-auto-flow:column;align-items:center;padding:var(--spacing-medium);background-color:var(--tailwind-colors-gray-100);border:none;border-radius:var(--rounding-large);font-weight:var(--font-weight-x-large);color:var(--color-gray-90)}.directions__qr-code:hover{background-color:var(--tailwind-colors-gray-200)}.directions__kiosk{display:grid;grid-auto-flow:column;align-items:center;justify-content:space-between;padding:var(--spacing-x-small) var(--spacing-medium) var(--spacing-medium) var(--spacing-medium)}.directions hr{width:100%;background-color:var(--color-gray-30);height:1px;border:none}.directions__steps{padding:0 var(--spacing-medium)}.directions__actions{padding:0 var(--spacing-medium) var(--spacing-medium) var(--spacing-medium);position:sticky;bottom:0;background:var(--color-white-white);border-top:1px solid var(--color-gray-30)}@media (max-width: 992px){.directions{min-height:273px}}.route-instructions{height:100%;display:grid;grid-template-rows:1fr min-content}.route-instructions__footer{position:sticky;bottom:134px;background:white;padding-bottom:var(--spacing-medium)}.route-instructions__footer:before{content:"";position:absolute;pointer-events:none;bottom:var(--spacing-xx-large);left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.route-instructions__footer--kiosk:before{background:transparent}.route-instructions__actions{display:grid;grid-auto-flow:column;justify-content:space-between;align-items:center}.route-instructions__overview{color:var(--color-gray-90);font-weight:var(--font-weight-large)}.route-instructions__button{display:grid;justify-content:center;background:none;border:none;width:var(--icon-size-medium);height:var(--icon-size-medium);align-content:center}.route-instructions__button--kiosk{border-radius:var(--rounding-large);border:1px solid var(--color-gray-30);padding:18px}.route-instructions button:disabled,.route-instructions button[disabled]{cursor:not-allowed;opacity:.3}.route-instructions mi-route-instructions-step{height:100%}.search{padding:var(--spacing-medium)}.search__error{text-align:center}.search__results{display:grid;gap:var(--spacing-x-small);overflow:auto;flex:1 1 auto;margin-top:var(--spacing-x-small)}.search__results>*{height:fit-content}.search__scroll-buttons{position:fixed;left:calc(50% + 304px);bottom:var(--spacing-x-large)}.search__info{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small)}.search__legend{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);border:1px solid var(--color-gray-30);border-radius:var(--rounding-large);background-color:#fff}@media (max-width: 992px){.search{padding:var(--spacing-medium) var(--spacing-x-small) var(--spacing-medium) var(--spacing-x-small)}}.categories{overflow:auto hidden;flex-shrink:0;display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);margin-top:var(--spacing-x-small);justify-content:space-between}.categories ::-webkit-scrollbar{width:0;height:0;background:transparent}.categories__list{display:grid;grid-auto-flow:column;gap:var(--spacing-x-small);overflow:auto hidden;grid-auto-columns:min-content;scrollbar-width:none}.categories__scroll-button{width:var(--spacing-xxx-large);height:var(--spacing-xxx-large);background-color:var(--brand-colors-white-100);border:1px solid var(--color-gray-30);border-radius:var(--spacing-x-small)}.categories__scroll-button:disabled{cursor:not-allowed;opacity:.3}.locations-list{display:grid;grid-template-rows:50px 1fr;height:100%}.locations-list__header{padding:var(--spacing-medium)}.locations-list__title{font-size:var(--font-size-medium);text-align:center;font-weight:var(--font-weight-large);color:var(--color-gray-90)}.locations-list__close{position:absolute;top:var(--spacing-x-small);right:var(--spacing-x-small);background:none;border:none}.locations-list__list{display:grid;gap:var(--spacing-x-small);overflow:auto;grid-auto-rows:min-content;padding:var(--spacing-x-small)}.locations-list__scrollable{overflow:auto}@media (max-width: 992px){.locations-list{min-height:200px}}.modal{position:absolute;z-index:var(--z-index-overlay);width:568px;left:var(--spacing-x-large);bottom:var(--spacing-x-large);border-radius:var(--spacing-x-small);border:1px solid var(--color-gray-30);background:var(--color-white-white);transform:translateY(calc(100% + var(--spacing-large)));overflow:auto;display:none;max-height:80%}.modal--open{transform:translateY(0);display:block}.modal--full:not(.modal--kiosk){height:100%}.modal--full:not(.modal--kiosk) .modal__content{height:100%}.modal--substeps,.modal--substeps .modal__content{height:100%}.modal--kiosk{left:0;right:0;margin-left:auto;margin-right:auto;max-height:none}.notification{z-index:10000000;min-width:320px}.background{z-index:var(--z-index-spinner);background-color:var(--color-black-black);opacity:.5;position:fixed;width:100%;height:100%;top:0px;left:0px;overflow:hidden}.qr-code{position:absolute;background:white;top:50%;left:50%;transform:translate(-50%,-50%);z-index:100;border-radius:var(--rounding-large);padding:var(--spacing-medium);z-index:var(--z-index-modal);display:grid}.qr-code__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large);text-transform:uppercase}.qr-code__button:hover{filter:brightness(90%)}.qr-code__image{justify-self:center;padding-top:var(--spacing-medium)}.qr-code p{font-weight:var(--font-weight-large)}.legend{position:absolute;background:white;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:var(--rounding-large);padding:var(--spacing-medium);z-index:var(--z-index-modal);display:grid;width:500px}.legend__background{z-index:var(--z-index-spinner);background-color:var(--color-black-black);opacity:.5;position:fixed;width:100%;height:100%;top:0px;left:0px;overflow:hidden}.legend__button{color:var(--color-white-white);border-radius:var(--rounding-large);border:none;font-size:var(--font-size-small);width:100%;height:var(--spacing-xxx-large);position:relative;margin-top:var(--spacing-medium);font-weight:var(--font-weight-x-large);text-transform:uppercase}.legend__button:hover{filter:brightness(90%)}.legend__heading{font-size:var(--spacing-x-large);font-weight:var(--font-weight-xx-large);color:var(--color-gray-90);padding-top:var(--spacing-medium)}.legend__section{display:grid;gap:var(--spacing-medium)}.legend__sections--scrollable:before{content:"";position:absolute;bottom:calc(56px + var(--spacing-small));left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(rgba(255,255,255,0),white)}.legend__sections--scrollable:after{content:"";position:absolute;top:0;left:0;right:0;height:var(--spacing-xx-large);background:linear-gradient(white,rgba(255,255,255,0))}.legend__content{padding-bottom:var(--spacing-medium);word-break:normal;overflow-wrap:break-word}.legend .scroll-buttons{position:fixed;left:520px;bottom:0}`)),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
(function(){try{var Ja=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fc=new Error().stack;Fc&&(Ja._sentryDebugIds=Ja._sentryDebugIds||{},Ja._sentryDebugIds[Fc]="
|
|
2
|
+
(function(){try{var Ja=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fc=new Error().stack;Fc&&(Ja._sentryDebugIds=Ja._sentryDebugIds||{},Ja._sentryDebugIds[Fc]="83732345-b759-4713-8862-c624f3665973",Ja._sentryDebugIdIdentifier="sentry-dbid-83732345-b759-4713-8862-c624f3665973")}catch{}})();(function(Ja,Fc){typeof exports=="object"&&typeof module<"u"?module.exports=Fc():typeof define=="function"&&define.amd?define(Fc):(Ja=typeof globalThis<"u"?globalThis:Ja||self,Ja.MapTemplate=Fc())})(this,function(){"use strict";var Ja=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Ja.SENTRY_RELEASE={id:"4eefe3121a46acf2cdafc0adaefc3686b0f3b018"};var Fc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ef(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var QC={exports:{}},zV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",kV=zV,OV=kV;function HC(){}function YC(){}YC.resetWarningCache=HC;var jV=function(){function e(a,u,p,y,s,_){if(_!==OV){var T=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw T.name="Invariant Violation",T}}e.isRequired=e;function t(){return e}var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:YC,resetWarningCache:HC};return r.PropTypes=r,r};QC.exports=jV();var RV=QC.exports;const ar=ef(RV);var GC={exports:{}},Li={};/**
|
|
3
3
|
* @license React
|
|
4
4
|
* react.production.min.js
|
|
5
5
|
*
|
|
@@ -2308,7 +2308,7 @@ ${v.vertexSource}`;const te=C.createShader(C.FRAGMENT_SHADER);if(C.isContextLost
|
|
|
2308
2308
|
translate(${d.x}px,${d.y}px)
|
|
2309
2309
|
`}_calculateXYTransform(){const l=this._pos,d=this._map,v=this.getPitchAlignment();if(!d||!l||v!=="map")return"";if(!d._showingGlobe()){const k=d.getPitch();return k?`rotateX(${k}deg)`:""}const b=s.b0(s.da(d.transform,this._lngLat)),w=l.sub(s.db(d.transform)),S=Math.abs(w.x)+Math.abs(w.y);if(S===0)return"";const C=b/S;return`rotateX(${-w.y*C}deg) rotateY(${w.x*C}deg)`}_calculateZTransform(){const l=this._pos,d=this._map;if(!d||!l)return"";let v=0;const b=this.getRotationAlignment();if(b==="map")if(d._showingGlobe()){const w=d.project(new s.aI(this._lngLat.lng,this._lngLat.lat+.001)),S=d.project(new s.aI(this._lngLat.lng,this._lngLat.lat-.001)).sub(w);v=s.b0(Math.atan2(S.y,S.x))-90}else v=-d.getBearing();else if(b==="horizon"){const w=s.$(4,6,d.getZoom()),S=s.db(d.transform);S.y+=w*d.transform.height;const C=l.sub(S),k=s.b0(Math.atan2(C.y,C.x));v=(k>90?k-270:k+90)*(1-w)}return v+=this._rotation,v?`rotateZ(${v}deg)`:""}_update(l){cancelAnimationFrame(this._updateFrameId);const d=this._map;d&&(d.transform.renderWorldCopies&&(this._lngLat=Pb(this._lngLat,this._pos,d.transform)),this._pos=d.project(this._lngLat),l===!0?this._updateFrameId=requestAnimationFrame(()=>{this._element&&this._pos&&this._anchor&&(this._pos=this._pos.round(),this._updateDOM())}):this._pos=this._pos.round(),d._requestDomTask(()=>{this._map&&(this._element&&this._pos&&this._anchor&&this._updateDOM(),(d._showingGlobe()||d.getTerrain()||d.getFog())&&!this._fadeTimer&&(this._fadeTimer=setTimeout(this._evaluateOpacity.bind(this),60)))}))}getOffset(){return this._offset}setOffset(l){return this._offset=s.P.convert(l),this._update(),this}addClassName(l){return this._element.classList.add(l),this}removeClassName(l){return this._element.classList.remove(l),this}toggleClassName(l){return this._element.classList.toggle(l)}_onMove(l){const d=this._map;if(!d)return;const v=this._pointerdownPos,b=this._positionDelta;if(v&&b){if(!this._isDragging){const w=this._clickTolerance||d._clickTolerance;if(l.point.dist(v)<w)return;this._isDragging=!0}this._pos=l.point.sub(b),this._lngLat=d.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none",this._state==="pending"&&(this._state="active",this.fire(new s.f("dragstart"))),this.fire(new s.f("drag"))}}_onUp(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1;const l=this._map;l&&(l.off("mousemove",this._onMove),l.off("touchmove",this._onMove)),this._state==="active"&&this.fire(new s.f("dragend")),this._state="inactive"}_addDragHandler(l){const d=this._map,v=this._pos;d&&v&&this._element.contains(l.originalEvent.target)&&(l.preventDefault(),this._positionDelta=l.point.sub(v),this._pointerdownPos=l.point,this._state="pending",d.on("mousemove",this._onMove),d.on("touchmove",this._onMove),d.once("mouseup",this._onUp),d.once("touchend",this._onUp))}setDraggable(l){this._draggable=!!l;const d=this._map;return d&&(l?(d.on("mousedown",this._addDragHandler),d.on("touchstart",this._addDragHandler)):(d.off("mousedown",this._addDragHandler),d.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(l){return this._rotation=l||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(l){return this._rotationAlignment=l||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment==="auto"||this._rotationAlignment==="horizon"&&this._map&&!this._map._showingGlobe()?"viewport":this._rotationAlignment}setPitchAlignment(l){return this._pitchAlignment=l||"auto",this._update(),this}getPitchAlignment(){return this._pitchAlignment==="auto"?this.getRotationAlignment():this._pitchAlignment}setOccludedOpacity(l){return this._occludedOpacity=l||.2,this._update(),this}getOccludedOpacity(){return this._occludedOpacity}}const ry={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},oy=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", ");function sy(g=new s.P(0,0),l="bottom"){if(typeof g=="number"){const d=Math.round(Math.sqrt(.5*Math.pow(g,2)));switch(l){case"top":return new s.P(0,g);case"top-left":return new s.P(d,d);case"top-right":return new s.P(-d,d);case"bottom":return new s.P(0,-g);case"bottom-left":return new s.P(d,-d);case"bottom-right":return new s.P(-d,-d);case"left":return new s.P(g,0);case"right":return new s.P(-g,0)}return new s.P(0,0)}return g instanceof s.P||Array.isArray(g)?s.P.convert(g):s.P.convert(g[l]||[0,0])}class qu{constructor(l){this.jumpTo(l)}getValue(l){if(l<=this._startTime)return this._start;if(l>=this._endTime)return this._end;const d=s.b9((l-this._startTime)/(this._endTime-this._startTime));return this._start*(1-d)+this._end*d}isEasing(l){return l>=this._startTime&&l<=this._endTime}jumpTo(l){this._startTime=-1/0,this._endTime=-1/0,this._start=l,this._end=l}easeTo(l,d,v){this._start=this.getValue(d),this._end=l,this._startTime=d,this._endTime=d+v}}const Ub={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","Map.Title":"Map","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScrollZoomBlocker.CtrlMessage":"Use ctrl + scroll to zoom the map","ScrollZoomBlocker.CmdMessage":"Use ⌘ + scroll to zoom the map","TouchPanBlocker.Message":"Use two fingers to move the map"};class Bb{registerParameter(){}registerButton(){}registerBinding(){}refreshUI(){}}const Fb={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:85,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,cooperativeGestures:!1,performanceMetricsCollection:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,antialias:!1,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,minTileCacheSize:null,maxTileCacheSize:null,localIdeographFontFamily:"sans-serif",localFontFamily:null,transformRequest:null,accessToken:null,fadeDuration:300,respectPrefersReducedMotion:!0,crossSourceCollisions:!0,collectResourceTiming:!1,testMode:!1},ay={showCompass:!0,showZoom:!0,visualizePitch:!1};class Dc{constructor(l,d,v=!1){this._clickTolerance=10,this.element=d,this.mouseRotate=new Y0({clickTolerance:l.dragRotate._mouseRotate._clickTolerance}),this.map=l,v&&(this.mousePitch=new G0({clickTolerance:l.dragRotate._mousePitch._clickTolerance})),s.bp(["mousedown","mousemove","mouseup","touchstart","touchmove","touchend","reset"],this),d.addEventListener("mousedown",this.mousedown),d.addEventListener("touchstart",this.touchstart,{passive:!1}),d.addEventListener("touchmove",this.touchmove),d.addEventListener("touchend",this.touchend),d.addEventListener("touchcancel",this.reset)}down(l,d){this.mouseRotate.mousedown(l,d),this.mousePitch&&this.mousePitch.mousedown(l,d),Y()}move(l,d){const v=this.map,b=this.mouseRotate.mousemoveWindow(l,d),w=b&&b.bearingDelta;if(w&&v.setBearing(v.getBearing()+w),this.mousePitch){const S=this.mousePitch.mousemoveWindow(l,d),C=S&&S.pitchDelta;C&&v.setPitch(v.getPitch()+C)}}off(){const l=this.element;l.removeEventListener("mousedown",this.mousedown),l.removeEventListener("touchstart",this.touchstart,{passive:!1}),l.removeEventListener("touchmove",this.touchmove),l.removeEventListener("touchend",this.touchend),l.removeEventListener("touchcancel",this.reset),this.offTemp()}offTemp(){H(),window.removeEventListener("mousemove",this.mousemove),window.removeEventListener("mouseup",this.mouseup)}mousedown(l){this.down(s.W({},l,{ctrlKey:!0,preventDefault:()=>l.preventDefault()}),ce(this.element,l)),window.addEventListener("mousemove",this.mousemove),window.addEventListener("mouseup",this.mouseup)}mousemove(l){this.move(l,ce(this.element,l))}mouseup(l){this.mouseRotate.mouseupWindow(l),this.mousePitch&&this.mousePitch.mouseupWindow(l),this.offTemp()}touchstart(l){l.targetTouches.length!==1?this.reset():(this._startPos=this._lastPos=pe(this.element,l.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:()=>l.preventDefault()},this._startPos))}touchmove(l){l.targetTouches.length!==1?this.reset():(this._lastPos=pe(this.element,l.targetTouches)[0],this.move({preventDefault:()=>l.preventDefault()},this._lastPos))}touchend(l){l.targetTouches.length===0&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)<this._clickTolerance&&this.element.click(),this.reset()}reset(){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()}}const Vb={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0,showUserHeading:!1},Cc={maxWidth:100,unit:"metric"},$b={kilometer:"km",meter:"m",mile:"mi",foot:"ft","nautical-mile":"nm"};return{version:s.dt,supported:T,setRTLTextPlugin:s.dv,getRTLTextPluginStatus:s.dw,Map:class extends Wu{constructor(g){s.dc.mark(s.dd.create);const l=g;if((g=s.W({},Fb,g)).minZoom!=null&&g.maxZoom!=null&&g.minZoom>g.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(g.minPitch!=null&&g.maxPitch!=null&&g.minPitch>g.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(g.minPitch!=null&&g.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(g.maxPitch!=null&&g.maxPitch>85)throw new Error("maxPitch must be less than or equal to 85");if(g.antialias&&s.de(window)&&(g.antialias=!1,s.w("Antialiasing is disabled for this WebGL context to avoid browser bug: https://github.com/mapbox/mapbox-gl-js/issues/11609")),super(new dr(g.minZoom,g.maxZoom,g.minPitch,g.maxPitch,g.renderWorldCopies),g),this._repaint=!!g.repaint,this._interactive=g.interactive,this._minTileCacheSize=g.minTileCacheSize,this._maxTileCacheSize=g.maxTileCacheSize,this._failIfMajorPerformanceCaveat=g.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=g.preserveDrawingBuffer,this._antialias=g.antialias,this._trackResize=g.trackResize,this._bearingSnap=g.bearingSnap,this._refreshExpiredTiles=g.refreshExpiredTiles,this._fadeDuration=g.fadeDuration,this._isInitialLoad=!0,this._crossSourceCollisions=g.crossSourceCollisions,this._collectResourceTiming=g.collectResourceTiming,this._language=this._parseLanguage(g.language),this._worldview=g.worldview,this._renderTaskQueue=new Rb,this._domRenderTaskQueue=new Rb,this._controls=[],this._markers=[],this._popups=[],this._mapId=s.df(),this._locale=s.W({},Ub,g.locale),this._clickTolerance=g.clickTolerance,this._cooperativeGestures=g.cooperativeGestures,this._performanceMetricsCollection=g.performanceMetricsCollection,this._tessellationStep=g.tessellationStep,this._containerWidth=0,this._containerHeight=0,this._showParseStatus=!0,this._averageElevationLastSampledAt=-1/0,this._averageElevationExaggeration=0,this._averageElevation=new qu(0),this._interactionRange=[1/0,-1/0],this._visibilityHidden=0,this._useExplicitProjection=!1,this._frameId=0,this._lastDirtyFrameId=0,this._requestManager=new s.dg(g.transformRequest,g.accessToken,g.testMode),this._silenceAuthErrors=!!g.testMode,this._contextCreateOptions=g.contextCreateOptions?{...g.contextCreateOptions}:{},typeof g.container=="string"){const d=document.getElementById(g.container);if(!d)throw new Error(`Container '${g.container.toString()}' not found.`);this._container=d}else{if(!(g.container instanceof HTMLElement))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=g.container}if(this._container.childNodes.length>0&&s.w("The map container element should be empty, otherwise the map's interactivity will be negatively impacted. If you want to display a message when WebGL is not supported, use the Mapbox GL Supported plugin instead."),g.maxBounds&&this.setMaxBounds(g.maxBounds),s.bp(["_onWindowOnline","_onWindowResize","_onVisibilityChange","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._tp||(this._tp=new Bb),this._tp.registerParameter(this,["Debug"],"showOverdrawInspector"),this._tp.registerParameter(this,["Debug"],"showTileBoundaries"),this._tp.registerParameter(this,["Debug"],"showParseStatus"),this._tp.registerParameter(this,["Debug"],"repaint"),this._tp.registerParameter(this,["Debug"],"showTileAABBs"),this._tp.registerParameter(this,["Debug"],"showPadding"),this._tp.registerParameter(this,["Debug"],"showCollisionBoxes",{noSave:!0}),this._tp.registerParameter(this.transform,["Debug"],"freezeTileCoverage",{noSave:!0},()=>{this._update()}),this._tp.registerParameter(this,["Debug","Wireframe"],"showTerrainWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers2DWireframe"),this._tp.registerParameter(this,["Debug","Wireframe"],"showLayers3DWireframe"),this._setupPainter(),this.painter===void 0)throw new Error("Failed to initialize WebGL.");if(this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this._fullscreenchangeEvent="onfullscreenchange"in document?"fullscreenchange":"webkitfullscreenchange",window.addEventListener("online",this._onWindowOnline,!1),window.addEventListener("resize",this._onWindowResize,!1),window.addEventListener("orientationchange",this._onWindowResize,!1),window.addEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.addEventListener("visibilitychange",this._onVisibilityChange,!1),this.handlers=new kb(this,g),this._localFontFamily=g.localFontFamily,this._localIdeographFontFamily=g.localIdeographFontFamily,(g.style||!g.testMode)&&this.setStyle(g.style||s.d8.DEFAULT_STYLE,{config:g.config,localFontFamily:this._localFontFamily,localIdeographFontFamily:this._localIdeographFontFamily}),g.projection&&this.setProjection(g.projection),g.hash&&(this._hash=new Sb(typeof g.hash=="string"&&g.hash||void 0).addTo(this)),!this._hash||!this._hash._onHashChange()){l.center==null&&l.zoom==null||(this.transform._unmodified=!1),this.jumpTo({center:g.center,zoom:g.zoom,bearing:g.bearing,pitch:g.pitch});const d=g.bounds;d&&(this.resize(),this.fitBounds(d,s.W({},g.fitBoundsOptions,{duration:0})))}this.resize(),g.attributionControl&&this.addControl(new Ob({customAttribution:g.customAttribution})),this._logoControl=new jb,this.addControl(this._logoControl,g.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet),this._postStyleLoadEvent()}),this.on("data",d=>{this._update(d.dataType==="style"),this.fire(new s.f(`${d.dataType}data`,d))}),this.on("dataloading",d=>{this.fire(new s.f(`${d.dataType}dataloading`,d))})}_getMapId(){return this._mapId}addControl(g,l){if(l===void 0&&(l=g.getDefaultPosition?g.getDefaultPosition():"top-right"),!g||!g.onAdd)return this.fire(new s.d(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));const d=g.onAdd(this);this._controls.push(g);const v=this._controlPositions[l];return l.indexOf("bottom")!==-1?v.insertBefore(d,v.firstChild):v.appendChild(d),this}removeControl(g){if(!g||!g.onRemove)return this.fire(new s.d(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));const l=this._controls.indexOf(g);return l>-1&&this._controls.splice(l,1),g.onRemove(this),this}hasControl(g){return this._controls.indexOf(g)>-1}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}resize(g){if(this._updateContainerDimensions(),this._containerWidth===this.transform.width&&this._containerHeight===this.transform.height)return this;this._resizeCanvas(this._containerWidth,this._containerHeight),this.transform.resize(this._containerWidth,this._containerHeight),this.painter.resize(Math.ceil(this._containerWidth),Math.ceil(this._containerHeight));const l=!this._moving;return l&&this.fire(new s.f("movestart",g)).fire(new s.f("move",g)),this.fire(new s.f("resize",g)),l&&this.fire(new s.f("moveend",g)),this}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()||null}setMaxBounds(g){return this.transform.setMaxBounds(s.ai.convert(g)),this._update()}setMinZoom(g){if((g=g??-2)>=-2&&g<=this.transform.maxZoom)return this.transform.minZoom=g,this._update(),this.getZoom()<g?this.setZoom(g):this.fire(new s.f("zoomstart")).fire(new s.f("zoom")).fire(new s.f("zoomend")),this;throw new Error("minZoom must be between -2 and the current maxZoom, inclusive")}getMinZoom(){return this.transform.minZoom}setMaxZoom(g){if((g=g??22)>=this.transform.minZoom)return this.transform.maxZoom=g,this._update(),this.getZoom()>g?this.setZoom(g):this.fire(new s.f("zoomstart")).fire(new s.f("zoom")).fire(new s.f("zoomend")),this;throw new Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(g){if((g=g??0)<0)throw new Error("minPitch must be greater than or equal to 0");if(g>=0&&g<=this.transform.maxPitch)return this.transform.minPitch=g,this._update(),this.getPitch()<g?this.setPitch(g):this.fire(new s.f("pitchstart")).fire(new s.f("pitch")).fire(new s.f("pitchend")),this;throw new Error("minPitch must be between 0 and the current maxPitch, inclusive")}getMinPitch(){return this.transform.minPitch}setMaxPitch(g){if((g=g??85)>85)throw new Error("maxPitch must be less than or equal to 85");if(g>=this.transform.minPitch)return this.transform.maxPitch=g,this._update(),this.getPitch()>g?this.setPitch(g):this.fire(new s.f("pitchstart")).fire(new s.f("pitch")).fire(new s.f("pitchend")),this;throw new Error("maxPitch must be greater than or equal to minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(g){return this.transform.renderWorldCopies=g,this.transform.renderWorldCopies||this._forceMarkerAndPopupUpdate(!0),this._update()}getLanguage(){return this._language}_parseLanguage(g){return g==="auto"?navigator.language:Array.isArray(g)?g.length===0?void 0:g.map(l=>l==="auto"?navigator.language:l):g}setLanguage(g){const l=this._parseLanguage(g);if(!this.style||l===this._language)return this;this._language=l,this.style.reloadSources();for(const d of this._controls)d._setLanguage&&d._setLanguage(this._language);return this}getWorldview(){return this._worldview}setWorldview(g){return this.style&&g!==this._worldview?(this._worldview=g,this.style.reloadSources(),this):this}getProjection(){return this.transform.mercatorFromTransition?{name:"globe",center:[0,0]}:this.transform.getProjection()}_showingGlobe(){return this.transform.projection.name==="globe"}setProjection(g){return this._lazyInitEmptyStyle(),g?typeof g=="string"&&(g={name:g}):g=null,this._useExplicitProjection=!!g,this._prioritizeAndUpdateProjection(g,this.style.projection)}_updateProjectionTransition(){if(this.getProjection().name!=="globe")return;const g=this.transform,l=g.projection.name;let d;l==="globe"&&g.zoom>=s.aU?(g.setMercatorFromTransition(),d=!0):l==="mercator"&&g.zoom<s.aU&&(g.setProjection({name:"globe"}),d=!0),d&&(this.style.applyProjectionUpdate(),this.style._forceSymbolLayerUpdate())}_prioritizeAndUpdateProjection(g,l){return this._updateProjection(g||l||{name:"mercator"})}_updateProjection(g){let l;return l=g.name==="globe"&&this.transform.zoom>=s.aU?this.transform.setMercatorFromTransition():this.transform.setProjection(g),this.style.applyProjectionUpdate(),l&&(this.painter.clearBackgroundTiles(),this.style.clearSources(),this._update(!0),this._forceMarkerAndPopupUpdate(!0)),this}project(g){return this.transform.locationPoint3D(s.aI.convert(g))}unproject(g){return this.transform.pointLocation3D(s.P.convert(g))}isMoving(){return this._moving||this.handlers&&this.handlers.isMoving()||!1}isZooming(){return this._zooming||this.handlers&&this.handlers.isZooming()||!1}isRotating(){return this._rotating||this.handlers&&this.handlers.isRotating()||!1}_isDragging(){return this.handlers&&this.handlers._isDragging()||!1}_createDelegatedListener(g,l,d){if(g==="mouseenter"||g==="mouseover"){let v=!1;const b=S=>{const C=l.filter(j=>this.getLayer(j)),k=C.length?this.queryRenderedFeatures(S.point,{layers:C}):[];k.length?v||(v=!0,d.call(this,new Wo(g,this,S.originalEvent,{features:k}))):v=!1},w=()=>{v=!1};return{layers:new Set(l),listener:d,delegates:{mousemove:b,mouseout:w}}}if(g==="mouseleave"||g==="mouseout"){let v=!1;const b=S=>{const C=l.filter(k=>this.getLayer(k));(C.length?this.queryRenderedFeatures(S.point,{layers:C}):[]).length?v=!0:v&&(v=!1,d.call(this,new Wo(g,this,S.originalEvent)))},w=S=>{v&&(v=!1,d.call(this,new Wo(g,this,S.originalEvent)))};return{layers:new Set(l),listener:d,delegates:{mousemove:b,mouseout:w}}}{const v=b=>{const w=l.filter(C=>this.getLayer(C)),S=w.length?this.queryRenderedFeatures(b.point,{layers:w}):[];S.length&&(b.features=S,d.call(this,b),delete b.features)};return{layers:new Set(l),listener:d,delegates:{[g]:v}}}}on(g,l,d){if(typeof l=="function"||d===void 0)return super.on(g,l);if(Array.isArray(l)||(l=[l]),l){for(const b of l)if(!this._isValidId(b))return this}const v=this._createDelegatedListener(g,l,d);this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[g]=this._delegatedListeners[g]||[],this._delegatedListeners[g].push(v);for(const b in v.delegates)this.on(b,v.delegates[b]);return this}once(g,l,d){if(typeof l=="function"||d===void 0)return super.once(g,l);if(Array.isArray(l)||(l=[l]),l){for(const b of l)if(!this._isValidId(b))return this}const v=this._createDelegatedListener(g,l,d);for(const b in v.delegates)this.once(b,v.delegates[b]);return this}off(g,l,d){if(typeof l=="function"||d===void 0)return super.off(g,l);const v=new Set(Array.isArray(l)?l:[l]);for(const S of v)if(!this._isValidId(S))return this;const b=(S,C)=>{if(S.size!==C.size)return!1;for(const k of S)if(!C.has(k))return!1;return!0},w=this._delegatedListeners?this._delegatedListeners[g]:void 0;return w&&(S=>{for(let C=0;C<S.length;C++){const k=S[C];if(k.listener===d&&b(k.layers,v)){for(const j in k.delegates)this.off(j,k.delegates[j]);return S.splice(C,1),this}}})(w),this}queryRenderedFeatures(g,l){if(!this.style)return[];if(l!==void 0||g===void 0||g instanceof s.P||Array.isArray(g)||(l=g,g=void 0),g=g||[[0,0],[this.transform.width,this.transform.height]],(l=l||{}).layers&&Array.isArray(l.layers)){for(const d of l.layers)if(!this._isValidId(d))return[]}return this.style.queryRenderedFeatures(g,l,this.transform)}querySourceFeatures(g,l){return this._isValidId(g)?this.style.querySourceFeatures(g,l):[]}isPointOnSurface(g){const{name:l}=this.transform.projection;return l!=="globe"&&l!=="mercator"&&s.w(`${l} projection does not support isPointOnSurface, this API may behave unexpectedly.`),this.transform.isPointOnSurface(s.P.convert(g))}setStyle(g,l){return l=s.W({},{localIdeographFontFamily:this._localIdeographFontFamily,localFontFamily:this._localFontFamily},l),this.style&&g&&l.diff!==!1&&l.localFontFamily===this._localFontFamily&&l.localIdeographFontFamily===this._localIdeographFontFamily&&!l.config?(this.style._diffStyle(g,(d,v)=>{d?(s.w(`Unable to perform style diff: ${String(d.message||d.error||d)}. Rebuilding the style from scratch.`),this._updateStyle(g,l)):v&&this._update(!0)},()=>{this._postStyleLoadEvent()}),this):(this._localIdeographFontFamily=l.localIdeographFontFamily,this._localFontFamily=l.localFontFamily,this._updateStyle(g,l))}_getUIString(g){const l=this._locale[g];if(l==null)throw new Error(`Missing UI string '${g}'`);return l}_updateStyle(g,l){if(this.style&&(this.style.setEventedParent(null),this.style._remove(),this.style=void 0),g){const d=s.W({},l);l&&l.config&&(d.initialConfig=l.config,delete d.config),this.style=new Ks(this,d).load(g),this.style.setEventedParent(this,{style:this.style})}return this._updateTerrain(),this}_lazyInitEmptyStyle(){this.style||(this.style=new Ks(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():(s.w("There is no style added to the map."),!1)}_isValidId(g){return g==null?(this.fire(new s.d(new Error("IDs can't be empty."))),!1):!s.cV(g)||(this.fire(new s.d(new Error(`IDs can't contain special symbols: "${g}".`))),!1)}addSource(g,l){return this._isValidId(g)?(this._lazyInitEmptyStyle(),this.style.addSource(g,l),this._update(!0)):this}isSourceLoaded(g){return!!this._isValidId(g)&&!!this.style&&this.style._isSourceCacheLoaded(g)}areTilesLoaded(){return this.style.areTilesLoaded()}addSourceType(g,l,d){this._lazyInitEmptyStyle(),this.style.addSourceType(g,l,d)}removeSource(g){return this._isValidId(g)?(this.style.removeSource(g),this._updateTerrain(),this._update(!0)):this}getSource(g){return this._isValidId(g)?this.style.getOwnSource(g):null}addImage(g,l,{pixelRatio:d=1,sdf:v=!1,stretchX:b,stretchY:w,content:S}={}){if(this._lazyInitEmptyStyle(),l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap){const{width:C,height:k,data:j}=s.e.getImageData(l);this.style.addImage(g,{data:new s.i({width:C,height:k},j),pixelRatio:d,stretchX:b,stretchY:w,content:S,sdf:v,version:0})}else if(l.width===void 0||l.height===void 0)this.fire(new s.d(new Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));else{const{width:C,height:k}=l,j=l;this.style.addImage(g,{data:new s.i({width:C,height:k},new Uint8Array(j.data)),pixelRatio:d,stretchX:b,stretchY:w,content:S,sdf:v,version:0,userImage:j}),j.onAdd&&j.onAdd(this,g)}}updateImage(g,l){this._lazyInitEmptyStyle();const d=this.style.getImage(g);if(!d)return void this.fire(new s.d(new Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));const v=l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap?s.e.getImageData(l):l,{width:b,height:w,data:S}=v;if(b===void 0||w===void 0)return void this.fire(new s.d(new Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(b!==d.data.width||w!==d.data.height)return void this.fire(new s.d(new Error(`The width and height of the updated image (${b}, ${w})
|
|
2310
2310
|
must be that same as the previous version of the image
|
|
2311
|
-
(${d.data.width}, ${d.data.height})`)));const C=!(l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap);d.data.replace(S,C),this.style.updateImage(g,d)}hasImage(g){return g?!!this.style&&!!this.style.getImage(g):(this.fire(new s.d(new Error("Missing required image id"))),!1)}removeImage(g){this.style.removeImage(g)}loadImage(g,l){s.h(this._requestManager.transformRequest(g,s.R.Image),(d,v)=>{l(d,v instanceof HTMLImageElement?s.e.getImageData(v):v)})}listImages(){return this.style.listImages()}addModel(g,l){this._lazyInitEmptyStyle(),this.style.addModel(g,l)}hasModel(g){return g?this.style.hasModel(g):(this.fire(new s.d(new Error("Missing required model id"))),!1)}removeModel(g){this.style.removeModel(g)}listModels(){return this.style.listModels()}addLayer(g,l){return this._isValidId(g.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(g,l),this._update(!0)):this}getSlot(g){const l=this.getLayer(g);return l&&l.slot||null}setSlot(g,l){return this.style.setSlot(g,l),this.style.mergeLayers(),this._update(!0)}addImport(g,l){return this.style.addImport(g,l),this}updateImport(g,l){return typeof l!="string"&&l.id!==g?(this.removeImport(g),this.addImport(l)):(this.style.updateImport(g,l),this._update(!0))}removeImport(g){return this.style.removeImport(g),this}moveImport(g,l){return this.style.moveImport(g,l),this._update(!0)}moveLayer(g,l){return this._isValidId(g)?(this.style.moveLayer(g,l),this._update(!0)):this}removeLayer(g){return this._isValidId(g)?(this.style.removeLayer(g),this._update(!0)):this}getLayer(g){if(!this._isValidId(g))return null;const l=this.style.getOwnLayer(g);return l?l.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(g,l,d){return this._isValidId(g)?(this.style.setLayerZoomRange(g,l,d),this._update(!0)):this}setFilter(g,l,d={}){return this._isValidId(g)?(this.style.setFilter(g,l,d),this._update(!0)):this}getFilter(g){return this._isValidId(g)?this.style.getFilter(g):null}setPaintProperty(g,l,d,v={}){return this._isValidId(g)?(this.style.setPaintProperty(g,l,d,v),this._update(!0)):this}getPaintProperty(g,l){return this._isValidId(g)?this.style.getPaintProperty(g,l):null}setLayoutProperty(g,l,d,v={}){return this._isValidId(g)?(this.style.setLayoutProperty(g,l,d,v),this._update(!0)):this}getLayoutProperty(g,l){return this._isValidId(g)?this.style.getLayoutProperty(g,l):null}getSchema(g){return this.style.getSchema(g)}setSchema(g,l){return this.style.setSchema(g,l),this._update(!0)}getConfig(g){return this.style.getConfig(g)}setConfig(g,l){return this.style.setConfig(g,l),this._update(!0)}getConfigProperty(g,l){return this.style.getConfigProperty(g,l)}setConfigProperty(g,l,d){return this.style.setConfigProperty(g,l,d),this._update(!0)}setLights(g){if(this._lazyInitEmptyStyle(),g&&g.length===1&&g[0].type==="flat"){const l=g[0];l.properties?this.style.setFlatLight(l.properties,l.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(g),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const g=this.style.getLights()||[];return g.length===0&&g.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),g}setLight(g,l={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:g}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(g){return this._lazyInitEmptyStyle(),!g&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(g),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(g){return this._lazyInitEmptyStyle(),this.style.setFog(g),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setColorTheme(g){return this._lazyInitEmptyStyle(),this.style.setColorTheme(g),this._update(!0)}setCamera(g){return this.style.setCamera(g),this._triggerCameraUpdate(g)}_triggerCameraUpdate(g){return this._update(this.transform.setOrthographicProjectionAtLowPitch(g["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(g){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(s.aI.convert(g),this.transform):0}setFeatureState(g,l){return this._isValidId(g.source)?(this.style.setFeatureState(g,l),this._update()):this}removeFeatureState(g,l){return this._isValidId(g.source)?(this.style.removeFeatureState(g,l),this._update()):this}getFeatureState(g){return this._isValidId(g.source)?this.style.getFeatureState(g):null}_updateContainerDimensions(){if(!this._container)return;const g=this._container.getBoundingClientRect().width||400,l=this._container.getBoundingClientRect().height||300;let d,v,b,w=this._container;for(;w&&(!v||!b);){const S=window.getComputedStyle(w).transform;S&&S!=="none"&&(d=S.match(/matrix.*\((.+)\)/)[1].split(", "),d[0]&&d[0]!=="0"&&d[0]!=="1"&&(v=d[0]),d[3]&&d[3]!=="0"&&d[3]!=="1"&&(b=d[3])),w=w.parentElement}this._containerWidth=v?Math.abs(g/v):g,this._containerHeight=b?Math.abs(l/b):l}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&s.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const g=this._container;g.classList.add("mapboxgl-map"),(this._missingCSSCanary=N("div","mapboxgl-canary",g)).style.visibility="hidden",this._detectMissingCSS();const l=this._canvasContainer=N("div","mapboxgl-canvas-container",g);this._canvas=N("canvas","mapboxgl-canvas",l),this._interactive&&(l.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const d=this._controlContainer=N("div","mapboxgl-control-container",g),v=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(b=>{v[b]=N("div",`mapboxgl-ctrl-${b}`,d)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(g,l){const d=s.e.devicePixelRatio||1;this._canvas.width=d*Math.ceil(g),this._canvas.height=d*Math.ceil(l),this._canvas.style.width=`${g}px`,this._canvas.style.height=`${l}px`}_addMarker(g){this._markers.push(g)}_removeMarker(g){const l=this._markers.indexOf(g);l!==-1&&this._markers.splice(l,1)}_addPopup(g){this._popups.push(g)}_removePopup(g){const l=this._popups.indexOf(g);l!==-1&&this._popups.splice(l,1)}_setupPainter(){const g=s.W({},T.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),l=this._canvas.getContext("webgl2",g);l?(s.dh(l,!0),this.painter=new ZE(l,this._contextCreateOptions,this.transform,this._tp),this.on("data",d=>{d.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),s.di.testSupport(l)):this.fire(new s.d(new Error("Failed to initialize WebGL")))}_contextLost(g){g.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new s.f("webglcontextlost",{originalEvent:g}))}_contextRestored(g){this._setupPainter(),this.resize(),this._update(),this.fire(new s.f("webglcontextrestored",{originalEvent:g}))}_onMapScroll(g){if(g.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty&&!this._occlusionOpacityChanged&&this._occlusionCriteriaSatisfied()}_update(g){return this.style?(this._styleDirty=this._styleDirty||g,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(g){return this._update(),this._renderTaskQueue.add(g)}_cancelRenderFrame(g){this._renderTaskQueue.remove(g)}_requestDomTask(g){!this.loaded()||this.loaded()&&!this.isMoving()?g():this._domRenderTaskQueue.add(g)}_render(g){let l;this.fire(new s.f("renderstart")),++this._frameId;const d=this.painter.context.extTimerQuery,v=s.e.now(),b=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(l=b.createQuery(),b.beginQuery(d.TIME_ELAPSED_EXT,l)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(g),this._domRenderTaskQueue.run(g),this._removed)return;this._updateProjectionTransition();const w=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const j=this.transform.zoom,B=this.transform.pitch,$=s.e.now(),G=new s.X(j,{now:$,fadeDuration:w,pitch:B,transition:this.style.transition});this.style.update(G)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let S=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),S=this._updateAverageElevation(v),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):S=this._updateAverageElevation(v);const C=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions,this.painter.replacementSource);if(C&&(this._placementDirty=C.needsRerender,this._occlusionOpacityChanged=C.occlusionQueryBasedOpacityChanged),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new s.f("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,s.dc.mark(s.dd.load),this.fire(new s.f("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),l){const j=s.e.now()-v;b.endQuery(d.TIME_ELAPSED_EXT),setTimeout(()=>{const B=b.getQueryParameter(l,b.QUERY_RESULT)/1e6;b.deleteQuery(l),this.fire(new s.f("gpu-timing-frame",{cpuTime:j,gpuTime:B}))},50)}if(this.listens("gpu-timing-layer")){const j=this.painter.collectGpuTimers();setTimeout(()=>{const B=this.painter.queryGpuTimers(j);this.fire(new s.f("gpu-timing-layer",{layerTimes:B}))},50)}if(this.listens("gpu-timing-deferred-render")){const j=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const B=this.painter.queryGpuTimeDeferredRender(j);this.fire(new s.f("gpu-timing-deferred-render",{gpuTime:B}))},50)}const k=this._sourcesDirty||this._styleDirty||this._placementDirty||this._occlusionOpacityChanged||S;if((this._sourcesDirty||this._styleDirty||S||this._occlusionOpacityChanged)&&(this._lastDirtyFrameId=this._frameId),k||this._repaint||!this._occlusionCriteriaSatisfied())this.triggerRepaint();else{const j=!this.isMoving()&&this.loaded();if(j&&(S=this._updateAverageElevation(v,!0)),S)this.triggerRepaint();else if(this._triggerFrame(!1),j&&(this.fire(new s.f("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const B=this._calculateSpeedIndex();this.fire(new s.f("speedindexcompleted",{speedIndex:B})),this.speedIndexTiming=!1}}this._loaded&&!this._fullyLoaded&&!k&&this._occlusionCriteriaSatisfied()&&(this._fullyLoaded=!0,s.dc.mark(s.dd.fullLoad),this._performanceMetricsCollection&&s.dj(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(g){for(const l of this._markers)g&&!this.getRenderWorldCopies()&&(l._lngLat=l._lngLat.wrap()),l._update();for(const l of this._popups)!g||this.getRenderWorldCopies()||l._trackPointer||(l._lngLat=l._lngLat.wrap()),l._update()}_updateAverageElevation(g,l=!1){const d=b=>(this.transform.averageElevation=b,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&d(0);const v=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(v||(l||g-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(g)){const b=this.transform.averageElevation;let w=this.transform.sampleAverageElevation();this.transform.elevation!=null&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(w)?w=0:this._averageElevationLastSampledAt=g;const S=Math.abs(b-w);if(S>1){if(this._isInitialLoad||v)return this._averageElevation.jumpTo(w),d(w);this._averageElevation.easeTo(w,g,300)}else if(S>1e-4)return this._averageElevation.jumpTo(w),d(w)}return!!this._averageElevation.isEasing(g)&&d(this._averageElevation.getValue(g))}_authenticate(){s.dk(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,g=>{if(g&&(g.message===s.dl||g.status===401)){const l=this.painter.context.gl;s.dh(l,!1),this._logoControl instanceof jb&&this._logoControl._updateLogo(),l&&l.clear(l.DEPTH_BUFFER_BIT|l.COLOR_BUFFER_BIT|l.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new s.d(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),s.dm(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&s.dn(this._requestManager._customAccessToken,{map:this,skuToken:this._requestManager._skuToken,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const g=this._isDragging();this.painter.updateTerrain(this.style,g)}_calculateSpeedIndex(){const g=this.painter.canvasCopy(),l=this.painter.getCanvasCopiesAndTimestamps();l.timeStamps.push(performance.now());const d=this.painter.context.gl,v=d.createFramebuffer();function b(w){d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,w,0);const S=new Uint8Array(d.drawingBufferWidth*d.drawingBufferHeight*4);return d.readPixels(0,0,d.drawingBufferWidth,d.drawingBufferHeight,d.RGBA,d.UNSIGNED_BYTE,S),S}return d.bindFramebuffer(d.FRAMEBUFFER,v),this._canvasPixelComparison(b(g),l.canvasCopies.map(b),l.timeStamps)}_canvasPixelComparison(g,l,d){let v=d[1]-d[0];const b=g.length/4;for(let w=0;w<l.length;w++){const S=l[w];let C=0;for(let k=0;k<S.length;k+=4)S[k]===g[k]&&S[k+1]===g[k+1]&&S[k+2]===g[k+2]&&S[k+3]===g[k+3]&&(C+=1);v+=(d[w+2]-d[w+1])*(1-C/b)}return v}remove(){this._hash&&this._hash.remove();for(const l of this._controls)l.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const g=this.painter.context.gl.getExtension("WEBGL_lose_context");g&&g.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),s.dp(this.painter.context.gl),s.dq.remove(),s.dr.remove(),this._removed=!0,this.fire(new s.f("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(g){this._renderNextFrame=this._renderNextFrame||g,this.style&&!this._frame&&(this._frame=s.e.frame(l=>{const d=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,d&&this._render(l)}))}_preloadTiles(g){const l=this.style?this.style.getSourceCaches():[];return s.ds(l,(d,v)=>d._preloadTiles(g,v),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(g){this._trackResize&&this.resize({originalEvent:g})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(g){this._showTileBoundaries!==g&&(this._showTileBoundaries=g,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(g){this._showParseStatus!==g&&(this._showParseStatus=g,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(g){this._showTerrainWireframe!==g&&(this._showTerrainWireframe=g,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(g){this._showLayers2DWireframe!==g&&(this._showLayers2DWireframe=g,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(g){this._showLayers3DWireframe!==g&&(this._showLayers3DWireframe=g,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(g){this._speedIndexTiming!==g&&(this._speedIndexTiming=g,this._update())}get showPadding(){return!!this._showPadding}set showPadding(g){this._showPadding!==g&&(this._showPadding=g,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(g){this._showCollisionBoxes!==g&&(this._showCollisionBoxes=g,this._tp.refreshUI(),g?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(g){this._showOverdrawInspector!==g&&(this._showOverdrawInspector=g,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(g){this._repaint!==g&&(this._repaint=g,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(g){this._vertices=g,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(g){this._showTileAABBs!==g&&(this._showTileAABBs=g,this._tp.refreshUI(),g&&this._update())}_setCacheLimits(g,l){s.du(g,l)}_occlusionCriteriaSatisfied(){const g=this.style&&(this.style.has3DLayers()||this.style.terrain&&!this.style.disableElevatedTerrain);return!(this.style&&this.style.hasSymbolLayers()&&g&&this.painter)||this._frameId-this._lastDirtyFrameId>5+2*this.painter.symbolParams.occlusionQueryFrameWindow}get version(){return s.dt}},NavigationControl:class{constructor(g={}){this.options=s.W({},ay,g),this._container=N("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",l=>l.preventDefault()),this.options.showZoom&&(s.bp(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",l=>{this._map&&this._map.zoomIn({},{originalEvent:l})}),N("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",l=>{this._map&&this._map.zoomOut({},{originalEvent:l})}),N("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(s.bp(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",l=>{const d=this._map;d&&(this.options.visualizePitch?d.resetNorthPitch({},{originalEvent:l}):d.resetNorth({},{originalEvent:l}))}),this._compassIcon=N("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const g=this._map;if(!g)return;const l=g.getZoom(),d=l===g.getMaxZoom(),v=l===g.getMinZoom();this._zoomInButton.disabled=d,this._zoomOutButton.disabled=v,this._zoomInButton.setAttribute("aria-disabled",d.toString()),this._zoomOutButton.setAttribute("aria-disabled",v.toString())}_rotateCompassArrow(){const g=this._map;if(!g)return;const l=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(g.transform.pitch*(Math.PI/180)),.5)}) rotateX(${g.transform.pitch}deg) rotateZ(${g.transform.angle*(180/Math.PI)}deg)`:`rotate(${g.transform.angle*(180/Math.PI)}deg)`;g._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=l)})}onAdd(g){return this._map=g,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),g.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&g.on("pitch",this._rotateCompassArrow),g.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Dc(g,this._compass,this.options.visualizePitch)),this._container}onRemove(){const g=this._map;g&&(this._container.remove(),this.options.showZoom&&g.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&g.off("pitch",this._rotateCompassArrow),g.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(g,l){const d=N("button",g,this._container);return d.type="button",d.addEventListener("click",l),d}_setButtonTitle(g,l){if(!this._map)return;const d=this._map._getUIString(`NavigationControl.${l}`);g.setAttribute("aria-label",d),g.firstElementChild&&g.firstElementChild.setAttribute("title",d)}},GeolocateControl:class extends s.E{constructor(g={}){super();const l=navigator.geolocation;this.options=s.W({geolocation:l},Vb,g),s.bp(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Tb(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(g){return this._map=g,this._container=N("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(g){const l=(d=!!this.options.geolocation)=>{this._supportsGeolocation=d,g(d)};this._supportsGeolocation!==void 0?g(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(d=>l(d.state!=="denied")).catch(()=>l()):l()}_isOutOfMapMaxBounds(g){const l=this._map.getMaxBounds(),d=g.coords;return!!l&&(d.longitude<l.getWest()||d.longitude>l.getEast()||d.latitude<l.getSouth()||d.latitude>l.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(g){if(this._map){if(this._isOutOfMapMaxBounds(g))return this._setErrorState(),this.fire(new s.f("outofmaxbounds",g)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=g,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(g),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(g),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.f("geolocate",g)),this._finish()}}_updateCamera(g){const l=new s.aI(g.coords.longitude,g.coords.latitude),d=g.coords.accuracy,v=this._map.getBearing(),b=s.W({bearing:v},this.options.fitBoundsOptions);this._map.fitBounds(l.toBounds(d),b,{geolocateSource:!0})}_updateMarker(g){if(g){const l=new s.aI(g.coords.longitude,g.coords.latitude);this._accuracyCircleMarker.setLngLat(l).addTo(this._map),this._userLocationDotMarker.setLngLat(l).addTo(this._map),this._accuracy=g.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const g=this._map.transform,l=s.ax(1,g._center.lat)*g.worldSize,d=Math.ceil(2*this._accuracy*l);this._circleElement.style.width=`${d}px`,this._circleElement.style.height=`${d}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(g){if(this._map){if(this.options.trackUserLocation)if(g.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(g.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.f("error",g)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(g){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",l=>l.preventDefault()),this._geolocateButton=N("button","mapboxgl-ctrl-geolocate",this._container),N("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",g===!1){s.w("Geolocation support is not available so the GeolocateControl will be disabled.");const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}else{const l=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=N("div","mapboxgl-user-location"),this._dotElement.appendChild(N("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(N("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new iy({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=N("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new iy({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",l=>{l.geolocateSource||this._watchState!=="ACTIVE_LOCK"||l.originalEvent&&l.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 s.f("trackuserlocationend")))})}}_onDeviceOrientation(g){this._userLocationDotMarker&&(g.webkitCompassHeading?this._heading=g.webkitCompassHeading:g.absolute===!0&&(this._heading=-1*g.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return s.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new s.f("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new s.f("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new s.f("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let g;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(g={maximumAge:6e5,timeout:0},this._noTimeout=!0):(g=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,g),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const g=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(l=>{l==="granted"&&g()}).catch(console.error):g()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Ob,ScaleControl:class{constructor(g={}){this.options=s.W({},Cc,g),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),s.bp(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const g=this.options.maxWidth||100,l=this._map,d=l._containerHeight/2,v=l._containerWidth/2-g/2,b=l.unproject([v,d]),w=l.unproject([v+g,d]),S=b.distanceTo(w);if(this.options.unit==="imperial"){const C=3.2808*S;C>5280?this._setScale(g,C/5280,"mile"):this._setScale(g,C,"foot")}else this.options.unit==="nautical"?this._setScale(g,S/1852,"nautical-mile"):S>=1e3?this._setScale(g,S/1e3,"kilometer"):this._setScale(g,S,"meter")}_setScale(g,l,d){this._map._requestDomTask(()=>{const v=function(w){const S=Math.pow(10,`${Math.floor(w)}`.length-1);let C=w/S;return C=C>=10?10:C>=5?5:C>=3?3:C>=2?2:C>=1?1:function(k){const j=Math.pow(10,Math.ceil(-Math.log(k)/Math.LN10));return Math.round(k*j)/j}(C),S*C}(l),b=v/l;this._container.innerHTML=this._isNumberFormatSupported&&d!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:d}).format(v):`${v} ${$b[d]}`,this._container.style.width=g*b+"px"})}onAdd(g){return this._map=g,this._language=g.getLanguage(),this._container=N("div","mapboxgl-ctrl mapboxgl-ctrl-scale",g.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(g){this._language=g,this._update()}setUnit(g){this.options.unit=g,this._update()}},FullscreenControl:class{constructor(g={}){this._fullscreen=!1,g&&g.container&&(g.container instanceof HTMLElement?this._container=g.container:s.w("Full screen control 'container' must be a DOM element.")),s.bp(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(g){return this._map=g,this._container||(this._container=this._map.getContainer()),this._controlContainer=N("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",s.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const g=this._fullscreenButton=N("button","mapboxgl-ctrl-fullscreen",this._controlContainer);N("span","mapboxgl-ctrl-icon",g).setAttribute("aria-hidden","true"),g.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const g=this._getTitle();this._fullscreenButton.setAttribute("aria-label",g),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",g)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends s.E{constructor(g){super(),this.options=s.W(Object.create(ry),g),s.bp(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(g&&g.className?g.className.trim().split(/\s+/):[])}addTo(g){return this._map&&this.remove(),this._map=g,this.options.closeOnClick&&g.on("preclick",this._onClose),this.options.closeOnMove&&g.on("move",this._onClose),g.on("remove",this.remove),this._update(),g._addPopup(this),this._focusFirstElement(),this._trackPointer?(g.on("mousemove",this._onMouseEvent),g.on("mouseup",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")):g.on("move",this._update),this.fire(new s.f("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const g=this._map;return g&&(g.off("move",this._update),g.off("move",this._onClose),g.off("preclick",this._onClose),g.off("click",this._onClose),g.off("remove",this.remove),g.off("mousemove",this._onMouseEvent),g.off("mouseup",this._onMouseEvent),g.off("drag",this._onMouseEvent),g._canvasContainer&&g._canvasContainer.classList.remove("mapboxgl-track-pointer"),g._removePopup(this),this._map=void 0),this.fire(new s.f("close")),this}getLngLat(){return this._lngLat}setLngLat(g){this._lngLat=s.aI.convert(g),this._pos=null,this._trackPointer=!1,this._update();const l=this._map;return l&&(l.on("move",this._update),l.off("mousemove",this._onMouseEvent),l._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const g=this._map;return g&&(g.off("move",this._update),g.on("mousemove",this._onMouseEvent),g.on("drag",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(g){return this.setDOMContent(document.createTextNode(g))}setHTML(g){const l=document.createDocumentFragment(),d=document.createElement("body");let v;for(d.innerHTML=g;v=d.firstChild,v;)l.appendChild(v);return this.setDOMContent(l)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(g){return this.options.maxWidth=g,this._update(),this}setDOMContent(g){let l=this._content;if(l)for(;l.hasChildNodes();)l.firstChild&&l.removeChild(l.firstChild);else l=this._content=N("div","mapboxgl-popup-content",this._container||void 0);if(l.appendChild(g),this.options.closeButton){const d=this._closeButton=N("button","mapboxgl-popup-close-button",l);d.type="button",d.setAttribute("aria-label","Close popup"),d.setAttribute("aria-hidden","true"),d.innerHTML="×",d.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(g){return this._classList.add(g),this._updateClassList(),this}removeClassName(g){return this._classList.delete(g),this._updateClassList(),this}setOffset(g){return this.options.offset=g,this._update(),this}toggleClassName(g){let l;return this._classList.delete(g)?l=!1:(this._classList.add(g),l=!0),this._updateClassList(),l}_onMouseEvent(g){this._update(g.point)}_getAnchor(g){if(this.options.anchor)return this.options.anchor;const l=this._map,d=this._container,v=this._pos;if(!l||!d||!v)return"bottom";const b=d.offsetWidth,w=d.offsetHeight,S=v.x<b/2,C=v.x>l.transform.width-b/2;if(v.y+g<w)return S?"top-left":C?"top-right":"top";if(v.y>l.transform.height-w){if(S)return"bottom-left";if(C)return"bottom-right"}return S?"left":C?"right":"bottom"}_updateClassList(){const g=this._container;if(!g)return;const l=[...this._classList];l.push("mapboxgl-popup"),this._anchor&&l.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&l.push("mapboxgl-popup-track-pointer"),g.className=l.join(" ")}_update(g){const l=this._map,d=this._content;if(!l||!this._lngLat&&!this._trackPointer||!d)return;let v=this._container;if(v||(v=this._container=N("div","mapboxgl-popup",l.getContainer()),this._tip=N("div","mapboxgl-popup-tip",v),v.appendChild(d)),this.options.maxWidth&&v.style.maxWidth!==this.options.maxWidth&&(v.style.maxWidth=this.options.maxWidth),l.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Pb(this._lngLat,this._pos,l.transform)),!this._trackPointer||g){const b=this._pos=this._trackPointer&&g instanceof s.P?g:l.project(this._lngLat),w=sy(this.options.offset),S=this._anchor=this._getAnchor(w.y),C=sy(this.options.offset,S),k=b.add(C).round();l._requestDomTask(()=>{this._container&&S&&(this._container.style.transform=`${ny[S]} translate(${k.x}px,${k.y}px)`)})}if(!this._marker&&l._showingGlobe()){const b=s.d9(l.transform,this._lngLat)?0:1;this._setOpacity(b)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const g=this._container.querySelector(oy);g&&g.focus()}_onClose(){this.remove()}_setOpacity(g){this._container&&(this._container.style.opacity=`${g}`),this._content&&(this._content.style.pointerEvents=g?"auto":"none")}},Marker:iy,Style:Ks,LngLat:s.aI,LngLatBounds:s.ai,Point:s.P,MercatorCoordinate:s.Y,FreeCameraOptions:qM,Evented:s.E,config:s.d8,prewarm:s.dx,clearPrewarmedResources:s.dy,get accessToken(){return s.d8.ACCESS_TOKEN},set accessToken(g){s.d8.ACCESS_TOKEN=g},get baseApiUrl(){return s.d8.API_URL},set baseApiUrl(g){s.d8.API_URL=g},get workerCount(){return s.dz.workerCount},set workerCount(g){s.dz.workerCount=g},get maxParallelImageRequests(){return s.d8.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){s.d8.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage(g){s.dA(g)},get workerUrl(){return s.dB.workerUrl},set workerUrl(g){s.dB.workerUrl=g},get workerClass(){return s.dB.workerClass},set workerClass(g){s.dB.workerClass=g},get workerParams(){return s.dB.workerParams},set workerParams(g){s.dB.workerParams=g},get dracoUrl(){return s.dC()},set dracoUrl(g){s.dD(g)},get meshoptUrl(){return s.dE()},set meshoptUrl(g){s.dF(g)},setNow:s.e.setNow,restoreNow:s.e.restoreNow}});var y=u;return y})})(L7);var rle=L7.exports;const z7=ef(rle),Jve="",exe="",D1=$n({key:"mapboxAccessToken",default:null});let t2;const ole=new Uint8Array(16);function sle(){if(!t2&&(t2=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t2))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t2(ole)}const Bo=[];for(let e=0;e<256;++e)Bo.push((e+256).toString(16).slice(1));function ale(e,t=0){return Bo[e[t+0]]+Bo[e[t+1]]+Bo[e[t+2]]+Bo[e[t+3]]+"-"+Bo[e[t+4]]+Bo[e[t+5]]+"-"+Bo[e[t+6]]+Bo[e[t+7]]+"-"+Bo[e[t+8]]+Bo[e[t+9]]+"-"+Bo[e[t+10]]+Bo[e[t+11]]+Bo[e[t+12]]+Bo[e[t+13]]+Bo[e[t+14]]+Bo[e[t+15]]}const k7={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function lle(e,t,r){if(k7.randomUUID&&!t&&!e)return k7.randomUUID();e=e||{};const a=e.random||(e.rng||sle)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){r=r||0;for(let u=0;u<16;++u)t[r+u]=a[u];return t}return ale(a)}const O7=$n({key:"miTransitionLevel",default:void 0}),j7=$n({key:"showRoadNames",default:void 0});function n2(e){return e==null}const i2=$n({key:"solution",default:null,dangerouslyAllowMutability:!0}),cle=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"white",style:{fill:"white",fillOpacity:1}}),ke.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ule=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),ke.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hle=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"white",style:{fill:"white",fillOpacity:1}}),ke.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),dle=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),ke.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),DT=$n({key:"mapboxViewMode",default:null}),nxe="",Ho=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),R7=pT({key:"currentPitch",get:({get:e})=>{const t=e(gp),r=e(DT);let a;switch(r){case Ho.initial3D:a=t??45;break;case Ho.clicked3D:a=45;break;case Ho.clicked2D:a=0;break}return a}});function fle({mapView:e}){const t=Zt(i2),r=Zt(ca),[a,u]=vn(DT),[p,y]=ke.useState(!1),s=Zt(R7);return ke.useEffect(()=>{["mapbox","3dwalls","floorplan"].every(_=>t.modules.map(T=>T.toLowerCase()).includes(_))&&(y(!0),u(Ho.initial3D))},[t]),ke.useEffect(()=>{if(e!=null&&e.isReady&&p)switch(a===null&&u(Ho.initial3D),a){case Ho.clicked2D:e.tilt(0,2e3),e.hideFeatures([e.FeatureType.MODEL3D,e.FeatureType.WALLS3D,e.FeatureType.EXTRUSION3D,e.FeatureType.EXTRUDEDBUILDINGS]);break;case Ho.initial3D:e.tilt(s,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break;case Ho.clicked3D:e.tilt(45,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break}},[e==null?void 0:e.isReady,a,p]),tt.jsx(tt.Fragment,{children:p&&tt.jsxs("div",{className:"view-mode-switch",children:[tt.jsx("button",{className:"view-mode-switch__button",onClick:()=>u(Ho.clicked2D),style:{backgroundColor:a===Ho.clicked2D?r:"white"},children:a===Ho.clicked2D?tt.jsx(cle,{}):tt.jsx(ule,{})}),tt.jsx("button",{className:"view-mode-switch__button",onClick:()=>u(Ho.clicked3D),style:{backgroundColor:[Ho.initial3D,Ho.clicked3D].includes(a)?r:"white"},children:[Ho.initial3D,Ho.clicked3D].includes(a)?tt.jsx(hle,{}):tt.jsx(dle,{})})]})})}function ple({onMapView:e,onPositionControl:t}){const r=Zt(D1),[a,u]=ke.useState(),[p,y]=ke.useState(!1),[s,_]=ke.useState(!1),[T,D]=ke.useState(!1),L=Zt(ws),N=Zt(ca),O=Zt(E1),R=Zt(gp),F=sc(),K=Zt(O7),Y=Zt(j7);return ke.useEffect(()=>{window.mapboxgl=z7;const H={accessToken:r,element:document.getElementById("map"),bearing:isNaN(parseInt(O))?0:parseInt(O),pitch:isNaN(parseInt(R))?0:parseInt(R),center:{lat:0,lng:0},zoom:15};K&&!isNaN(parseInt(K))&&(H.mapsIndoorsTransitionLevel=parseInt(K)),n2(Y)||(H.showRoadNameLabels=Y);const Z=new window.mapsindoors.mapView.MapboxV3View(H);u(Z);const J=new window.mapsindoors.directions.MapboxProvider(r);e(Z,J);const ce=lle();sessionStorage.setItem("mapboxPlacesSessionToken",ce)},[]),ke.useEffect(()=>{if(L&&a&&!s){const H=document.createElement("mi-my-position");H.mapsindoors=L,a.getMap().addControl({onAdd:()=>H,onRemove:function(){}},"top-right"),_(!0),t(H)}if(L&&a&&!T&&F&&(a.getMap().addControl(new z7.NavigationControl({showCompass:!1}),"top-right"),D(!0)),L&&a&&!p){const H=document.createElement("mi-floor-selector");H.mapsindoors=L,H.primaryColor=N,a.getMap().addControl({onAdd:()=>H,onRemove:function(){H.parentNode.removeChild(H)}},"top-right"),y(!0)}},[L,a,p,s,T]),tt.jsx("div",{className:"map-container",id:"map","data-sentry-component":"MapboxMap","data-sentry-source-file":"MapboxMap.jsx",children:tt.jsx(fle,{mapView:a,"data-sentry-element":"ViewModeSwitch","data-sentry-source-file":"MapboxMap.jsx"})})}const r2=$n({key:"userPosition",default:null}),CT=$n({key:"directionsService",default:null}),AT=$n({key:"mapType",default:void 0}),NT=$n({key:"apiKey",default:null}),o2=$n({key:"filteredLocations",default:void 0}),s2=$n({key:"filteredLocationsByExternalID",default:void 0}),P7=$n({key:"tileStyle",default:null}),U7=$n({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),LT=$n({key:"notificationMessage",default:null});var Is=63710088e-1,mle={centimeters:Is*100,centimetres:Is*100,degrees:Is/111325,feet:Is*3.28084,inches:Is*39.37,kilometers:Is/1e3,kilometres:Is/1e3,meters:Is,metres:Is,miles:Is/1609.344,millimeters:Is*1e3,millimetres:Is*1e3,nauticalmiles:Is/1852,radians:1,yards:Is*1.0936};function B7(e,t,r){r===void 0&&(r={});var a={type:"Feature"};return(r.id===0||r.id)&&(a.id=r.id),r.bbox&&(a.bbox=r.bbox),a.properties=t||{},a.geometry=e,a}function gle(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!V7(e[0])||!V7(e[1]))throw new Error("coordinates must contain numbers");var a={type:"Point",coordinates:e};return B7(a,t,r)}function yle(e,t,r){r===void 0&&(r={});for(var a=0,u=e;a<u.length;a++){var p=u[a];if(p.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var y=0;y<p[p.length-1].length;y++)if(p[p.length-1][y]!==p[0][y])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:e};return B7(s,t,r)}function _le(e,t){t===void 0&&(t="kilometers");var r=mle[t];if(!r)throw new Error(t+" units is invalid");return e/r}function F7(e){var t=e%(2*Math.PI);return t*180/Math.PI}function zT(e){var t=e%360;return t*Math.PI/180}function V7(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function $7(e,t,r){if(e!==null)for(var a,u,p,y,s,_,T,D=0,L=0,N,O=e.type,R=O==="FeatureCollection",F=O==="Feature",K=R?e.features.length:1,Y=0;Y<K;Y++){T=R?e.features[Y].geometry:F?e.geometry:e,N=T?T.type==="GeometryCollection":!1,s=N?T.geometries.length:1;for(var H=0;H<s;H++){var Z=0,J=0;if(y=N?T.geometries[H]:T,y!==null){_=y.coordinates;var ce=y.type;switch(D=r&&(ce==="Polygon"||ce==="MultiPolygon")?1:0,ce){case null:break;case"Point":if(t(_,L,Y,Z,J)===!1)return!1;L++,Z++;break;case"LineString":case"MultiPoint":for(a=0;a<_.length;a++){if(t(_[a],L,Y,Z,J)===!1)return!1;L++,ce==="MultiPoint"&&Z++}ce==="LineString"&&Z++;break;case"Polygon":case"MultiLineString":for(a=0;a<_.length;a++){for(u=0;u<_[a].length-D;u++){if(t(_[a][u],L,Y,Z,J)===!1)return!1;L++}ce==="MultiLineString"&&Z++,ce==="Polygon"&&J++}ce==="Polygon"&&Z++;break;case"MultiPolygon":for(a=0;a<_.length;a++){for(J=0,u=0;u<_[a].length;u++){for(p=0;p<_[a][u].length-D;p++){if(t(_[a][u][p],L,Y,Z,J)===!1)return!1;L++}J++}Z++}break;case"GeometryCollection":for(a=0;a<y.geometries.length;a++)if($7(y.geometries[a],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function a2(e){var t=[1/0,1/0,-1/0,-1/0];return $7(e,function(r){t[0]>r[0]&&(t[0]=r[0]),t[1]>r[1]&&(t[1]=r[1]),t[2]<r[0]&&(t[2]=r[0]),t[3]<r[1]&&(t[3]=r[1])}),t}a2.default=a2;function vle(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function xle(e,t,r,a){a===void 0&&(a={});var u=vle(e),p=zT(u[0]),y=zT(u[1]),s=zT(r),_=_le(t,a.units),T=Math.asin(Math.sin(y)*Math.cos(_)+Math.cos(y)*Math.sin(_)*Math.cos(s)),D=p+Math.atan2(Math.sin(s)*Math.sin(_)*Math.cos(y),Math.cos(_)-Math.sin(y)*Math.sin(T)),L=F7(D),N=F7(T);return gle([L,N],a.properties)}function Mle(e,t,r){r===void 0&&(r={});for(var a=r.steps||64,u=r.properties?r.properties:!Array.isArray(e)&&e.type==="Feature"&&e.properties?e.properties:{},p=[],y=0;y<a;y++)p.push(xle(e,t,y*-360/a,r).geometry.coordinates);return p.push(p[0]),yle([p],u)}function Q7(e){return(e==null?void 0:e.type)==="Point"?a2(Mle(e,5,{units:"meters",steps:4})):a2(e)}function kT(){return new Promise(e=>{const t=document.querySelector(".modal--open"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-(t==null?void 0:t.offsetTop));else{const a=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(a.disconnect(),e(r.offsetHeight-(u==null?void 0:u.offsetTop)))});a.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const yp=$n({key:"categories",default:[]}),H7=$n({key:"kioskOriginLocationId",default:void 0}),l2=$n({key:"locationId",default:void 0}),Y7=$n({key:"startZoomLevel",default:null}),_p=$n({key:"currentVenueName",default:null}),C1=$n({key:"venues",default:[]}),OT=$n({key:"venueWasSelected",default:!1});function G7(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-t.offsetTop);else{const a=new MutationObserver(()=>{const u=document.querySelector(".sheet--active");u&&(a.disconnect(),e(r.offsetHeight-u.offsetTop))});a.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function jT(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const r=new MutationObserver(()=>{const a=document.querySelector(".modal--open");a&&(r.disconnect(),e((a==null?void 0:a.offsetWidth)+(a==null?void 0:a.offsetLeft)*2))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const RT=$n({key:"isMapReady",default:!1}),Z7=$n({key:"timeout",default:void 0});function W7(){const[e,t]=ke.useState(!1),r=Zt(RT),a=Zt(Z7);return ke.useEffect(()=>{if(!r||!a)return;let u;const p=s=>{t(!1),window.clearTimeout(u),u=window.setTimeout(y,a*1e3)},y=()=>{t(!0)};return u=window.setTimeout(y,a*1e3),window.addEventListener("mousemove",p),window.addEventListener("mousedown",p),window.addEventListener("resize",p),window.addEventListener("keydown",p),window.addEventListener("touchstart",p),window.addEventListener("wheel",p),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("mousedown",p),window.removeEventListener("resize",p),window.removeEventListener("keydown",p),window.removeEventListener("touchstart",p),window.removeEventListener("wheel",p),window.clearTimeout(u)}},[a,r]),e}const ble=()=>{const[e,t]=ke.useState(!1),[r,a]=ke.useState(!1),u=sc(),p=W7(),y=Zt(E1),s=Zt(yp),_=Zt(H7),T=Zt(l2),D=Zt(AT),L=Zt(ws),N=Zt(gp),O=Zt(Y7),R=Zt(_p),F=Zt(C1),K=Zt(R7),Y=Zt(OT),[H,Z]=ke.useState(!1);ke.useEffect(()=>{p&&J()},[p]),ke.useEffect(()=>{J()},[L,R,T,_,N,y,O,s]);function J(){const pe=F.find(fe=>fe.name.toLowerCase()===R.toLowerCase());L&&pe&&(t(!0),_&&u?window.mapsindoors.services.LocationsService.getLocation(_).then(fe=>{if(fe){const be=fe.properties.floor;L.setFloor(be),ce(fe),kT().then(He=>{a(fe.geometry),c2(D,fe.geometry,L,He,0,O,K,y)})}}):T&&!Y?window.mapsindoors.services.LocationsService.getLocation(T).then(fe=>{if(fe){const be=fe.properties.floor;L.setFloor(be),u?jT().then(He=>{a(fe.geometry),c2(D,fe.geometry,L,0,He,O,K,y)}):G7().then(He=>{a(fe.geometry),c2(D,fe.geometry,L,He,0,O,K,y)})}}):pe&&(a(pe.geometry),c2(D,pe.geometry,L,0,0,O,K,y)))}function ce(pe){if(H)return;const fe=L.getDisplayRule(pe);fe.visible=!0,fe.iconSize={width:fe.iconSize.width*2,height:fe.iconSize.height*2},fe.iconVisible=!0,fe.zoomFrom=0,fe.zoomTo=999,fe.clickable=!1,L.setDisplayRule(pe.id,fe),Z(!0)}return[e,r]};function c2(e,t,r,a,u,p,y,s){let _;t.coordinates&&t.type?_=Q7(t):t.west&&t.south&&(_=[t.west,t.south,t.east,t.north]),e===cs.Google?Ile(_,r,a,u,p,y,s):e===cs.Mapbox&&wle(_,r,a,u,p,y,s)}function wle(e,t,r,a,u,p,y){t.getMap().fitBounds(e,{pitch:p||0,bearing:y||0,animate:!1,padding:{top:0,right:0,bottom:r,left:a}}),u&&t.setZoom(u)}function Ile(e,t,r,a,u,p,y){let s={west:e[0],south:e[1],east:e[2],north:e[3]};t.getMapView().fitBounds(s,{top:0,right:0,bottom:r,left:a}),u&&t.setZoom(parseInt(u)),isNaN(parseInt(p))||t.getMapView().tilt(parseInt(p)),isNaN(parseInt(y))||t.getMapView().rotate(parseInt(y))}const q7=$n({key:"hideNonMatches",default:!1});let PT;function Tle({onLocationClick:e,onMapPositionKnown:t,useMapProviderModule:r,onMapPositionInvestigating:a}){const u=Zt(NT),p=Zt(e2),y=Zt(D1),[s,_]=vn(AT),[T,D]=vn(ws),[,L]=vn(r2),[,N]=vn(CT),O=Zt(o2),R=Zt(s2),F=Zt(P7),K=Zt(E1),Y=Zt(gp),[,H]=vn(U7),Z=Zt(i2),[,J]=vn(LT),ce=Zt(q7);ele(u);const[pe,fe]=ble();ke.useEffect(()=>{if(!Z||p===null&&y===null)return;let $e;const lt=Z.modules.map(ct=>ct.toLowerCase()).includes("mapbox");r?lt?y&&($e=cs.Mapbox):p&&($e=cs.Google):y?$e=cs.Mapbox:$e=cs.Google,$e?_($e):(J({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),_(void 0))},[p,y,Z]),ke.useEffect(()=>{pe&&a()},[pe]),ke.useEffect(()=>{fe&&t()},[fe]),ke.useEffect(()=>{if(!T)return;const $e=O||R;if(!$e)return;const lt=$e.map(ct=>ct.id);ce||!T.highlight?T.filter(lt):T.highlight(lt)},[O,R,T,ce]),ke.useEffect(()=>{T&&(isNaN(parseInt(Y))||T.getMapView().tilt(parseInt(Y)),isNaN(parseInt(K))||T.getMapView().rotate(parseInt(K)))},[K,Y,T]);const be=$e=>{He($e)},He=$e=>{if($e&&PT){let lt=$e.getTileURL();if(lt){lt=$e.getTileURL().replace("default",PT);const ct=lt==null?void 0:lt.replace("{floor}",$e.getFloor());$e.getMapView().setMapsIndoorsTileURL(ct)}}},Ce=async($e,lt)=>{const ct=new window.mapsindoors.MapsIndoors({mapView:$e});ct.on("mouseenter",()=>{var Qe;const rt=ct.getHoveredLocation();((Qe=rt==null?void 0:rt.properties.locationSettings)==null?void 0:Qe.selectable)===!1&&ct.unhoverLocation()}),ct.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),ct.on("click",rt=>e(rt)),ct.once("building_changed",()=>be(ct)),ct.on("floor_changed",()=>He(ct)),D(ct),window.mapsIndoorsInstance=ct;const Je=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(Je);const Oe=new window.mapsindoors.services.DirectionsService(lt);N(Oe)},qe=$e=>{$e.nodeName==="MI-MY-POSITION"?$e.addEventListener("position_received",lt=>{lt.detail.accurate===!0&&L(lt.detail.position)}):$e.on("position_received",lt=>{lt.accurate===!0&&L(lt.position)}),H($e)};return ke.useEffect(()=>{PT=F||"default",He(T)},[F]),tt.jsxs(tt.Fragment,{children:[s===cs.Google&&tt.jsx(ile,{onMapView:Ce,onPositionControl:qe}),s===cs.Mapbox&&tt.jsx(ple,{onMapView:Ce,onPositionControl:qe})]})}const ixe="",UT=$n({key:"logo",default:void 0});function Sle(){const e=Zt(ca),t=Zt(UT);return tt.jsx("div",{className:"splash-screen","data-sentry-component":"SplashScreen","data-sentry-source-file":"SplashScreen.jsx",children:tt.jsxs("div",{className:"splash-screen__container",children:[tt.jsx("img",{className:"splash-screen__logo",src:t,alt:"logo"}),tt.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}const Ele=QJ(Sle,{name:"SplashScreen"});function K7(e,t){if(e==null)return{};var r={},a=Object.keys(e),u,p;for(p=0;p<a.length;p++)u=a[p],!(t.indexOf(u)>=0)&&(r[u]=e[u]);return r}function BT(e,t){return BT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},BT(e,t)}function X7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BT(e,t)}function Dle(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Cle(e,t){e.classList?e.classList.add(t):Dle(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function J7(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ale(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=J7(e.className,t):e.setAttribute("class",J7(e.className&&e.className.baseVal||"",t))}const ej={disabled:!1},tj=Pi.createContext(null);var nj=function(t){return t.scrollTop},A1="unmounted",Jh="exited",ed="entering",vp="entered",FT="exiting",ac=function(e){X7(t,e);function t(a,u){var p;p=e.call(this,a,u)||this;var y=u,s=y&&!y.isMounting?a.enter:a.appear,_;return p.appearStatus=null,a.in?s?(_=Jh,p.appearStatus=ed):_=vp:a.unmountOnExit||a.mountOnEnter?_=A1:_=Jh,p.state={status:_},p.nextCallback=null,p}t.getDerivedStateFromProps=function(u,p){var y=u.in;return y&&p.status===A1?{status:Jh}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(u){var p=null;if(u!==this.props){var y=this.state.status;this.props.in?y!==ed&&y!==vp&&(p=ed):(y===ed||y===vp)&&(p=FT)}this.updateStatus(!1,p)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var u=this.props.timeout,p,y,s;return p=y=s=u,u!=null&&typeof u!="number"&&(p=u.exit,y=u.enter,s=u.appear!==void 0?u.appear:y),{exit:p,enter:y,appear:s}},r.updateStatus=function(u,p){if(u===void 0&&(u=!1),p!==null)if(this.cancelNextCallback(),p===ed){if(this.props.unmountOnExit||this.props.mountOnEnter){var y=this.props.nodeRef?this.props.nodeRef.current:Rg.findDOMNode(this);y&&nj(y)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jh&&this.setState({status:A1})},r.performEnter=function(u){var p=this,y=this.props.enter,s=this.context?this.context.isMounting:u,_=this.props.nodeRef?[s]:[Rg.findDOMNode(this),s],T=_[0],D=_[1],L=this.getTimeouts(),N=s?L.appear:L.enter;if(!u&&!y||ej.disabled){this.safeSetState({status:vp},function(){p.props.onEntered(T)});return}this.props.onEnter(T,D),this.safeSetState({status:ed},function(){p.props.onEntering(T,D),p.onTransitionEnd(N,function(){p.safeSetState({status:vp},function(){p.props.onEntered(T,D)})})})},r.performExit=function(){var u=this,p=this.props.exit,y=this.getTimeouts(),s=this.props.nodeRef?void 0:Rg.findDOMNode(this);if(!p||ej.disabled){this.safeSetState({status:Jh},function(){u.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:FT},function(){u.props.onExiting(s),u.onTransitionEnd(y.exit,function(){u.safeSetState({status:Jh},function(){u.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(u,p){p=this.setNextCallback(p),this.setState(u,p)},r.setNextCallback=function(u){var p=this,y=!0;return this.nextCallback=function(s){y&&(y=!1,p.nextCallback=null,u(s))},this.nextCallback.cancel=function(){y=!1},this.nextCallback},r.onTransitionEnd=function(u,p){this.setNextCallback(p);var y=this.props.nodeRef?this.props.nodeRef.current:Rg.findDOMNode(this),s=u==null&&!this.props.addEndListener;if(!y||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var _=this.props.nodeRef?[this.nextCallback]:[y,this.nextCallback],T=_[0],D=_[1];this.props.addEndListener(T,D)}u!=null&&setTimeout(this.nextCallback,u)},r.render=function(){var u=this.state.status;if(u===A1)return null;var p=this.props,y=p.children;p.in,p.mountOnEnter,p.unmountOnExit,p.appear,p.enter,p.exit,p.timeout,p.addEndListener,p.onEnter,p.onEntering,p.onEntered,p.onExit,p.onExiting,p.onExited,p.nodeRef;var s=K7(p,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Pi.createElement(tj.Provider,{value:null},typeof y=="function"?y(u,s):Pi.cloneElement(Pi.Children.only(y),s))},t}(Pi.Component);ac.contextType=tj,ac.propTypes={};function xp(){}ac.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xp,onEntering:xp,onEntered:xp,onExit:xp,onExiting:xp,onExited:xp},ac.UNMOUNTED=A1,ac.EXITED=Jh,ac.ENTERING=ed,ac.ENTERED=vp,ac.EXITING=FT;const Nle=ac;var Lle=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return Cle(t,a)})},VT=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return Ale(t,a)})},$T=function(e){X7(t,e);function t(){for(var a,u=arguments.length,p=new Array(u),y=0;y<u;y++)p[y]=arguments[y];return a=e.call.apply(e,[this].concat(p))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(s,_){var T=a.resolveArguments(s,_),D=T[0],L=T[1];a.removeClasses(D,"exit"),a.addClass(D,L?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(s,_)},a.onEntering=function(s,_){var T=a.resolveArguments(s,_),D=T[0],L=T[1],N=L?"appear":"enter";a.addClass(D,N,"active"),a.props.onEntering&&a.props.onEntering(s,_)},a.onEntered=function(s,_){var T=a.resolveArguments(s,_),D=T[0],L=T[1],N=L?"appear":"enter";a.removeClasses(D,N),a.addClass(D,N,"done"),a.props.onEntered&&a.props.onEntered(s,_)},a.onExit=function(s){var _=a.resolveArguments(s),T=_[0];a.removeClasses(T,"appear"),a.removeClasses(T,"enter"),a.addClass(T,"exit","base"),a.props.onExit&&a.props.onExit(s)},a.onExiting=function(s){var _=a.resolveArguments(s),T=_[0];a.addClass(T,"exit","active"),a.props.onExiting&&a.props.onExiting(s)},a.onExited=function(s){var _=a.resolveArguments(s),T=_[0];a.removeClasses(T,"exit"),a.addClass(T,"exit","done"),a.props.onExited&&a.props.onExited(s)},a.resolveArguments=function(s,_){return a.props.nodeRef?[a.props.nodeRef.current,s]:[s,_]},a.getClassNames=function(s){var _=a.props.classNames,T=typeof _=="string",D=T&&_?_+"-":"",L=T?""+D+s:_[s],N=T?L+"-active":_[s+"Active"],O=T?L+"-done":_[s+"Done"];return{baseClassName:L,activeClassName:N,doneClassName:O}},a}var r=t.prototype;return r.addClass=function(u,p,y){var s=this.getClassNames(p)[y+"ClassName"],_=this.getClassNames("enter"),T=_.doneClassName;p==="appear"&&y==="done"&&T&&(s+=" "+T),y==="active"&&u&&nj(u),s&&(this.appliedClasses[p][y]=s,Lle(u,s))},r.removeClasses=function(u,p){var y=this.appliedClasses[p],s=y.base,_=y.active,T=y.done;this.appliedClasses[p]={},s&&VT(u,s),_&&VT(u,_),T&&VT(u,T)},r.render=function(){var u=this.props;u.classNames;var p=K7(u,["classNames"]);return Pi.createElement(Nle,TT({},p,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Pi.Component);$T.defaultProps={classNames:""},$T.propTypes={};const zle=$T,rxe="",kle=e=>ke.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),u2=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ke.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),oxe="";function Ole({venue:e,isCurrent:t,onVenueClicked:r}){const{t:a}=la(),[u,p]=ke.useState({});return ke.useEffect(()=>{const y={};e.image&&(y.backgroundImage=`url('${e.image}')`),p(y)},[e]),tt.jsxs("button",{className:"venue",onClick:()=>r(),"data-sentry-component":"Venue","data-sentry-source-file":"Venue.jsx",children:[tt.jsx("div",{className:"venue__image",style:u}),tt.jsxs("div",{className:"venue__content",children:[tt.jsx("div",{children:e.venueInfo.name}),t&&tt.jsx("div",{className:"venue__current",children:a("Current")})]})]})}const QT=$n({key:"isLocationClicked",default:!1});function jle({onOpen:e,onClose:t,active:r}){const{t:a}=la(),u=ke.useRef(null),p=Zt(C1),[,y]=vn(OT),[s,_]=vn(_p),[,T]=vn(QT),D=O=>{y(!0),_(O.name),L()},L=()=>{r?t():e()};function N(O){D(O),T(!1)}return tt.jsxs(tt.Fragment,{children:[tt.jsx("button",{className:`venue-selector__button ${r?"venue-selector__button--open":""}`,onClick:()=>L(),"aria-label":a("Venues"),children:r?tt.jsx(u2,{}):tt.jsx(kle,{})}),tt.jsx(zle,{unmountOnExit:!0,in:r,nodeRef:u,timeout:400,classNames:"venue-selector__content","data-sentry-element":"CSSTransition","data-sentry-source-file":"VenueSelector.jsx",children:tt.jsxs("div",{className:"venue-selector__content",ref:u,children:[tt.jsx("h1",{children:a("Select venue")}),tt.jsx("div",{className:"venue-selector__list",children:p.map(O=>tt.jsx(Ole,{isCurrent:(s==null?void 0:s.toLowerCase())===O.name.toLowerCase(),venue:O,onVenueClicked:()=>N(O)},O.id))})]})})]})}const ij=ke.createContext(),Tu=$n({key:"currentLocation",default:null}),Rle="Left",Ple="Right",Ule="Up",Ble="Down",Mp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},HT={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},rj="mousemove",oj="mouseup",Fle="touchend",Vle="touchmove",$le="touchstart";function Qle(e,t,r,a){return e>t?r>0?Ple:Rle:a>0?Ble:Ule}function sj(e,t){if(t===0)return e;const r=Math.PI/180*t,a=e[0]*Math.cos(r)+e[1]*Math.sin(r),u=e[1]*Math.cos(r)-e[0]*Math.sin(r);return[a,u]}function Hle(e,t){const r=D=>{const L="touches"in D;L&&D.touches.length>1||e((N,O)=>{O.trackMouse&&!L&&(document.addEventListener(rj,a),document.addEventListener(oj,y));const{clientX:R,clientY:F}=L?D.touches[0]:D,K=sj([R,F],O.rotationAngle);return O.onTouchStartOrOnMouseDown&&O.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},N),HT),{initial:K.slice(),xy:K,start:D.timeStamp||0})})},a=D=>{e((L,N)=>{const O="touches"in D;if(O&&D.touches.length>1)return L;if(D.timeStamp-L.start>N.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:R,clientY:F}=O?D.touches[0]:D,[K,Y]=sj([R,F],N.rotationAngle),H=K-L.xy[0],Z=Y-L.xy[1],J=Math.abs(H),ce=Math.abs(Z),pe=(D.timeStamp||0)-L.start,fe=Math.sqrt(J*J+ce*ce)/(pe||1),be=[H/(pe||1),Z/(pe||1)],He=Qle(J,ce,H,Z),Ce=typeof N.delta=="number"?N.delta:N.delta[He.toLowerCase()]||Mp.delta;if(J<Ce&&ce<Ce&&!L.swiping)return L;const qe={absX:J,absY:ce,deltaX:H,deltaY:Z,dir:He,event:D,first:L.first,initial:L.initial,velocity:fe,vxvy:be};qe.first&&N.onSwipeStart&&N.onSwipeStart(qe),N.onSwiping&&N.onSwiping(qe);let $e=!1;return(N.onSwiping||N.onSwiped||N[`onSwiped${He}`])&&($e=!0),$e&&N.preventScrollOnSwipe&&N.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:qe,swiping:!0})})},u=D=>{e((L,N)=>{let O;if(L.swiping&&L.eventData){if(D.timeStamp-L.start<N.swipeDuration){O=Object.assign(Object.assign({},L.eventData),{event:D}),N.onSwiped&&N.onSwiped(O);const R=N[`onSwiped${O.dir}`];R&&R(O)}}else N.onTap&&N.onTap({event:D});return N.onTouchEndOrOnMouseUp&&N.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},L),HT),{eventData:O})})},p=()=>{document.removeEventListener(rj,a),document.removeEventListener(oj,y)},y=D=>{p(),u(D)},s=(D,L)=>{let N=()=>{};if(D&&D.addEventListener){const O=Object.assign(Object.assign({},Mp.touchEventOptions),L.touchEventOptions),R=[[$le,r,O],[Vle,a,Object.assign(Object.assign({},O),L.preventScrollOnSwipe?{passive:!1}:{})],[Fle,u,O]];R.forEach(([F,K,Y])=>D.addEventListener(F,K,Y)),N=()=>R.forEach(([F,K])=>D.removeEventListener(F,K))}return N},T={ref:D=>{D!==null&&e((L,N)=>{if(L.el===D)return L;const O={};return L.el&&L.el!==D&&L.cleanUpTouch&&(L.cleanUpTouch(),O.cleanUpTouch=void 0),N.trackTouch&&D&&(O.cleanUpTouch=s(D,N)),Object.assign(Object.assign(Object.assign({},L),{el:D}),O)})}};return t.trackMouse&&(T.onMouseDown=r),[T,s]}function Yle(e,t,r,a){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==r.preventScrollOnSwipe||t.touchEventOptions.passive!==r.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:a(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:a(e.el,t)})}function aj(e){const{trackMouse:t}=e,r=ke.useRef(Object.assign({},HT)),a=ke.useRef(Object.assign({},Mp)),u=ke.useRef(Object.assign({},a.current));u.current=Object.assign({},a.current),a.current=Object.assign(Object.assign({},Mp),e);let p;for(p in Mp)a.current[p]===void 0&&(a.current[p]=Mp[p]);const[y,s]=ke.useMemo(()=>Hle(_=>r.current=_(r.current,a.current),{trackMouse:t}),[t]);return r.current=Yle(r.current,a.current,u.current,s),y}const wr={MIN:1,FIT:2,MAX:3},sxe="",lj=$n({key:"isBottomSheetLoaded",default:!1});let YT;function N1({children:e,isOpen:t,minHeight:r,preferredSizeSnapPoint:a,onSwipedToSnapPoint:u}){const p=ke.useRef(),y=ke.useRef(),[s,_]=ke.useState(wr.FIT),[T,D]=ke.useState(!1),[L,N]=ke.useState(),O=ke.useContext(ij),[R,F]=ke.useState(),[K,Y]=ke.useState({}),[,H]=vn(lj);function Z(pe){pe===wr.MIN&&R<=r||(s===wr.FIT&&(p.current.style.height=`${R}px`),requestAnimationFrame(()=>{switch(pe){case wr.MAX:Y({height:`${O.current.clientHeight}px`});break;case wr.FIT:Y({height:`${R}px`});break;case wr.MIN:Y({height:`${r}px`});break}_(pe)}),typeof u=="function"&&p.current.addEventListener("transitionend",()=>{u(pe)},{once:!0}))}ke.useEffect(()=>{p.current.addEventListener("transitionend",()=>{H(!0)},{once:!0})},[]),ke.useEffect(()=>{a!==void 0&&(p.current.style.height=`${p.current.clientHeight}px`,requestAnimationFrame(()=>{Z(a)}))},[a]);const J=aj({onSwipeStart:pe=>{D(!0),N(pe.dir),YT=p.current.clientHeight},onSwiping:pe=>{const fe=Math.max(YT-pe.deltaY,r);Y({height:`${fe}px`})},onSwiped:pe=>{D(!1);const fe=Math.max(YT-pe.deltaY,r);let be,He;L.toUpperCase()==="DOWN"?(be=R-60,He=O.current.clientHeight-60):(be=parseInt(r)+60,He=R+60);let Ce;fe<=be?Ce=wr.MIN:fe<=He?Ce=wr.FIT:Ce=wr.MAX,Z(Ce)},trackMouse:!0,preventScrollOnSwipe:!0});ke.useEffect(()=>{t===!1?(F(),p.current.style.height=""):F(y.current.clientHeight)},[e.length,t]);const ce=pe=>{J.ref(pe),p.current=pe};return tt.jsx("div",{...J,ref:ce,style:K,className:`sheet ${t?"sheet--active":""} ${T?"sheet--dragging":""}`,"data-sentry-component":"Sheet","data-sentry-source-file":"Sheet.jsx",children:tt.jsx("div",{ref:y,className:"sheet__content",style:K,children:e})})}const axe="",lxe="",Gle=(e,t)=>{const[r,a]=ke.useState(void 0),[u,p]=ke.useState(void 0);return ke.useEffect(()=>{const y=(s=!1)=>{var T,D;const _=((T=t.current)==null?void 0:T.scrollHeight)>((D=t.current)==null?void 0:D.clientHeight);a(_),s===!0&&p(_)};y(!0),t.current&&new ResizeObserver(y).observe(t.current)},[e,t]),[r,u]},bp=()=>aj({onSwiping:({event:e})=>e.stopPropagation()});function cj(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const h2=$n({key:"directionsResponse",default:null}),GT=$n({key:"hasFoundRoute",default:!0}),uj=(e,t,r,a,u)=>{const[p,y]=ke.useState(),[s,_]=ke.useState(),[T,D]=vn(GT),[,L]=vn(h2),[N,O]=ke.useState();return ke.useEffect(()=>{O(!1),e!=null&&e.geometry&&(t!=null&&t.geometry)&&r.getRoute({origin:cj(e),destination:cj(t),travelMode:a,avoidStairs:u}).then(R=>{if(R&&R.legs){const F=R.legs.reduce((Y,H)=>Y+H.distance.value,0),K=R.legs.reduce((Y,H)=>Y+H.duration.value,0);y(F),_(K),L({originLocation:e,destinationLocation:t,totalDistance:F,totalTime:K,directionsResult:R}),O(!0)}else D(!1)},()=>{D(!1)})},[e,t,r,u,a]),[p,s,T,N]},td={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},d2=$n({key:"travelMode",default:td.WALKING}),lc=$n({key:"kioskLocation",default:null}),f2=$n({key:"accessibilityOn",default:!1}),p2=$n({key:"showExternalIDs",default:!1});function hj({onBack:e,onStartWayfinding:t,onSetSize:r,snapPointSwiped:a,onStartDirections:u}){const{t:p}=la(),y=ke.useRef(null),s=ke.useRef(null),_=ke.useRef(null),[T,D]=ke.useState(!1),[L,N]=ke.useState(!1),[O,R]=ke.useState(!1),[F,K]=ke.useState(null),Y=Zt(ws),H=Zt(Tu),[Z,J]=Gle(H,_),ce=bp(),pe=Zt(ca),fe=Zt(lc),be=Zt(CT),[He,Ce]=ke.useState(),[qe,$e]=ke.useState(),lt=sc(),ct=Zt(d2),Je=Zt(f2),[,,Oe]=uj(qe,He,be,ct,Je),rt=Zt(p2);ke.useEffect(()=>{D(!1),N(!1),R(!1),K(null),H&&(y.current.location=H,K(Y.getDisplayRule(H)),Ce(H)),fe&&$e(fe)},[H,Y,fe]);function Qe(Ge){typeof r=="function"&&r(Ge)}ke.useEffect(()=>{a!==void 0&&(D(a===wr.MAX),a===wr.MAX?Ie():De())},[a]);function Xe(){T===!1?(Qe(wr.MAX),Ie()):(Qe(wr.FIT),De())}function Ie(){requestAnimationFrame(()=>{D(!0),le()})}function De(){D(!1),ee()}function le(){requestAnimationFrame(()=>{N(s.current.scrollTop>0),R(s.current.scrollTop<s.current.scrollHeight-s.current.offsetHeight-1)})}function ee(){N(!1),R(!1)}function re(){D(!1),N(!1),R(!1),Qe(wr.FIT),t()}function we(){D(!1),N(!1),R(!1),Qe(wr.FIT),u()}function ve(){D(!1),N(!1),R(!1),Qe(wr.FIT),e()}return tt.jsx("div",{className:`location-details ${L?"location-details--content-above":""} ${O?"location-details--content-below":""}`,"data-sentry-component":"LocationDetails","data-sentry-source-file":"LocationDetails.jsx",children:H&&tt.jsxs(tt.Fragment,{children:[tt.jsxs("div",{className:"location-info",children:[tt.jsx("div",{className:"location-info__icon",children:F&&tt.jsx("img",{alt:"",src:F.icon.src?F.icon.src:F.icon})}),tt.jsxs("div",{className:"location-info__content",children:[tt.jsx("div",{className:"location-info__name",children:H.properties.name}),tt.jsx("mi-location-info",{level:p("Level"),ref:y,"show-external-id":rt})]}),tt.jsx("button",{className:"location-info__close",onClick:()=>ve(),children:tt.jsx(u2,{})})]}),tt.jsxs("div",{ref:s,onScroll:Ge=>le(),className:"location-details__details",children:[H.properties.imageURL&&tt.jsx("img",{alt:"",src:H.properties.imageURL,className:"location-details__image"}),Object.keys(H.properties.categories).length>0&&tt.jsx("p",{className:"location-details__categories",children:Object.values(H.properties.categories).map((Ge,Ae,Ze)=>tt.jsxs(Pi.Fragment,{children:[Ge,Ae<Ze.length-1&&tt.jsx(tt.Fragment,{children:"・"})]},Ge))}),H.properties.description&&!T&&tt.jsxs("section",{className:"location-details__description",children:[tt.jsx("div",{ref:_,children:H.properties.description}),(Z||J)&&tt.jsx("button",{onClick:()=>Xe(),children:p("Read full description")})]}),H.properties.description&&T&&tt.jsxs("section",{className:"location-details__description location-details__description--full prevent-scroll",...ce,children:[tt.jsx("div",{children:H.properties.description}),J&&tt.jsx("button",{onClick:()=>Xe(),children:p("Close")})]})]}),fe&<?tt.jsx("button",{disabled:!Oe,onClick:()=>we(),className:`location-details__wayfinding ${Oe?"":"location-details--no-route"}`,style:{background:pe},children:p(Oe?"Start directions":"Directions not available")}):tt.jsx("button",{onClick:()=>re(),style:{background:pe},className:"location-details__wayfinding",children:p("Start wayfinding")})]})})}const cxe="",Zle=e=>ke.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_1663_3931)"},ke.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_1663_3931"},ke.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),dj=e=>ke.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),ke.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),Wle=e=>ke.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),ke.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),uxe="";function ZT({location:e,locationClicked:t,icon:r,isHovered:a}){const{t:u}=la(),p=ke.useRef(),y=Zt(ws),s=Zt(p2);return ke.useEffect(()=>{var N;const _=O=>t(O.detail),T=()=>{var O;((O=e.properties.locationSettings)==null?void 0:O.selectable)!==!1&&y.hoverLocation(e)},D=()=>{var O;(O=e.properties.locationSettings)!=null&&O.selectable||y.unhoverLocation(e)};((N=e.properties.locationSettings)==null?void 0:N.selectable)===!1&&p.current.classList.add("non-selectable");const{current:L}=p;return L.location=e,L.icon=r||y.getDisplayRule(e).icon,L.addEventListener("locationClicked",_),L.addEventListener("mouseover",T),L.addEventListener("mouseout",D),a?p.current.classList.add("hovered"):p.current.classList.remove("hovered"),()=>{L.removeEventListener("locationClicked",_),L.removeEventListener("mouseover",T),L.removeEventListener("mouseout",D)}},[e,t,a]),tt.jsx("mi-list-item-location",{level:u("Level"),ref:p,"show-external-id":s,"data-sentry-element":"mi-list-item-location","data-sentry-component":"ListItemLocation","data-sentry-source-file":"ListItemLocation.jsx"})}const qle=()=>{const[e,t]=ke.useState(),r=Zt(ws),a=Zt(RT);return ke.useEffect(()=>{function u(){const p=r.getMapView().getCenter();t(p.lat+","+p.lng)}return r&&a?(r.getMapView().addListener("idle",u),u()):r&&r.getMapView().removeListener("idle",u),()=>{r&&r.getMapView().removeListener("idle",u)}},[r,a]),e},wp=$n({key:"language",default:void 0}),WT=$n({key:"searchInput",default:void 0}),m2=$n({key:"searchAllVenues",default:!1}),qT=ke.forwardRef(({placeholder:e,mapsindoors:t,results:r,clicked:a,cleared:u,changed:p,category:y,google:s,mapbox:_,disabled:T=!1},D)=>{const L=ke.useRef(),N=Zt(r2),O=Zt(wp),[,R]=vn(WT),F=sessionStorage.getItem("mapboxPlacesSessionToken"),K={longitude:N==null?void 0:N.coords.longitude,latitude:N==null?void 0:N.coords.latitude},Y=qle(),H=Zt(_p),Z=Zt(m2);return ke.useImperativeHandle(D,()=>({triggerSearch(){L.current.triggerSearch()},getValue(){return L.current.value},setDisplayText(J){L.current.setDisplayText(J)},focusInput(){L.current.focusInput()},clear(){L.current.clear()},getInputField(){return L.current.getInputField().then(J=>R(J))}})),ke.useEffect(()=>{const{current:J}=L;J.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{J.triggerSearch()})},[O]),ke.useEffect(()=>{const J=fe=>r(fe.detail),{current:ce}=L;t===!0&&(ce.mapsindoors="true");function pe(){ce.getValue||ce.focusInput(),u()}return ce.addEventListener("results",J),ce.addEventListener("click",a),ce.addEventListener("cleared",pe),ce.addEventListener("changed",p),()=>{ce.removeEventListener("results",J),ce.removeEventListener("click",a),ce.removeEventListener("cleared",pe),ce.removeEventListener("changed",p)}},[e,t,r,a,u,s,_,p]),tt.jsx("mi-search",{ref:L,"id-attribute":"search",placeholder:e,"session-token":F,"user-position":K.latitude!==void 0&&K.longitude!==void 0?Object.values(K).join(","):null,"mi-near":Y,"mi-categories":y,disabled:T,mapbox:_,google:s,"mi-venue":Z?void 0:H,language:O})});function KT(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:IT("My position"),anchor:t},type:"Feature"}}let XT;function Kle(e){return new Promise((t,r)=>{XT||(XT=new window.google.maps.Geocoder),XT.geocode({placeId:e.properties.placeId},a=>{a.length>0?(e.geometry={type:"Point",coordinates:[a[0].geometry.location.lng(),a[0].geometry.location.lat()]},t(e)):r()})})}const Xle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",fj=e=>ke.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),pj=e=>ke.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_1697_57490)"},ke.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),ke.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),ke.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),ke.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_1697_57490"},ke.createElement("rect",{width:20,height:20,fill:"white"})))),Jle=e=>ke.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_3407_1703)"},ke.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_3407_1703"},ke.createElement("rect",{width:20,height:20,fill:"white"}))));function ece({selectionChanged:e,children:t}){const r=ke.useRef();return ke.useEffect(()=>{const a=p=>e(p.detail),{current:u}=r;return u.addEventListener("change",a),()=>u.removeEventListener("change",a)},[e]),tt.jsx("mi-dropdown",{ref:r,"data-sentry-element":"mi-dropdown","data-sentry-component":"Dropdown","data-sentry-source-file":"Dropdown.jsx",children:t})}function tce(e,t){const r=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((a,u)=>{const p=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${r}&access_token=${t}`;fetch(p).then(y=>y.status!==200?u():y.json()).then(y=>{e.geometry={type:"Point",coordinates:[y.features[0].geometry.coordinates[0],y.features[0].geometry.coordinates[1]]},a(e)}).catch(()=>{u()})})}const nce=pT({key:"unitSystem",get:({get:e})=>e(wp)==="en-US"?"imperial":"metric"}),ice=e=>ke.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_1663_3939)"},ke.createElement("path",{d:"M8.00028 15.1429C11.9452 15.1429 15.1431 11.9449 15.1431 8.00003C15.1431 4.05514 11.9452 0.857178 8.00028 0.857178C4.05539 0.857178 0.857422 4.05514 0.857422 8.00003C0.857422 11.9449 4.05539 15.1429 8.00028 15.1429Z",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ke.createElement("path",{d:"M8.00084 8.51903C8.00084 8.1064 8.33644 7.85329 8.92853 7.45767C9.47773 7.0907 9.76742 6.61467 9.63856 5.96686C9.50971 5.31903 8.97443 4.78376 8.3266 4.65489C7.30969 4.45262 6.33105 5.25576 6.33105 6.29258",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ke.createElement("path",{d:"M8 11.376V11.0903",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_1663_3939"},ke.createElement("rect",{width:16,height:16,fill:"white"})))),hxe="";function rce({text:e}){return tt.jsxs("div",{className:"tooltip","data-sentry-component":"Tooltip","data-sentry-source-file":"Tooltip.jsx",children:[tt.jsx(ice,{"data-sentry-element":"QuestionIcon","data-sentry-source-file":"Tooltip.jsx"}),tt.jsxs("div",{className:"tooltip__text",children:[tt.jsx("p",{children:e}),tt.jsx("i",{})]})]})}const dxe="";function mj({onAccessibilityChanged:e}){const t=Zt(ca),[r,a]=vn(f2);function u(p){a(p.target.checked),e&&e()}return tt.jsxs("div",{className:"accessibility","data-sentry-component":"Accessibility","data-sentry-source-file":"Accessibility.jsx",children:[tt.jsx("input",{className:"mi-toggle",type:"checkbox",checked:r,onChange:p=>u(p),style:{backgroundColor:r?t:""}}),tt.jsx("div",{children:IT("Accessibility")}),tt.jsx(rce,{text:IT("Turn on Accessibility to get directions that avoid stairs and escalators."),"data-sentry-element":"Tooltip","data-sentry-source-file":"Accessibility.jsx"})]})}const po={TO:"TO",FROM:"FROM"},oce="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";function gj({onStartDirections:e,onBack:t,directionsToLocation:r,directionsFromLocation:a,onSetSize:u,isActive:p}){const{t:y}=la(),s=ke.useRef(),_=ke.useRef(),T=ke.useRef(),D=ke.useRef(),L=Zt(CT),N=Zt(r2),O=Zt(Tu),R=Zt(AT),F=Zt(ca),[K,Y]=ke.useState(),[,H]=vn(GT),[Z,J]=ke.useState(!0),[ce,pe]=ke.useState(!1),[fe,be]=ke.useState([]),[He,Ce]=ke.useState(),[qe,$e]=ke.useState(),lt=Zt(f2),ct=bp(),[Je,Oe]=ke.useState(!1),[rt,Qe]=vn(d2),[Xe,Ie]=ke.useState(!1),De=Zt(D1),le=Zt(nce),[ee,re,we,ve]=uj(qe,He,L,rt,lt);function Ge(Tt){return R===cs.Google&&Tt.properties.type==="google_places"?Kle(Tt):R===cs.Mapbox&&Tt.properties.type==="mapbox_places"?tce(Tt,De):Promise.resolve(Tt)}function Ae(Tt){K===po.TO?Ge(Tt).then(gn=>{Ce(gn),T.current.setDisplayText(gn.properties.name)},()=>H(!1)):K===po.FROM&&Ge(Tt).then(gn=>{$e(gn),D.current.setDisplayText(gn.properties.name)},()=>H(!1)),Oe(!1),pe(!1),be([]),Ie(!1)}function Ze(Tt,gn){if(Y(gn),H(!0),Tt.length===0)J(!1),Oe(!1),be([]);else{J(!0),be(Tt);const xn=Tt.filter(Nn=>Nn.properties.type==="google_places").length>0;Oe(xn)}}function Ke(Tt){typeof u=="function"&&u(Tt)}function xt(){const Tt=KT(N);K===po.TO?(T.current.setDisplayText(Tt.properties.name),Ce(Tt)):K===po.FROM&&(D.current.setDisplayText(Tt.properties.name),$e(Tt)),be([]),H(!0),J(!0),Oe(!1),pe(!1),Ie(!1)}function Ft(Tt){(qe==null?void 0:qe.id)==="USER_POSITION"&&Tt===po.TO||(He==null?void 0:He.id)==="USER_POSITION"&&Tt===po.FROM?Ie(!1):Ie(!0)}function mt(Tt){Ft(Tt)}function ut(Tt){Y(Tt),on(Tt),H(!0),Oe(!1),Ft(Tt)}function Nt(Tt){Ie(!0),Y(Tt),jt(Tt),be([]),H(!0),Oe(!1),J(!0)}function jt(Tt){Tt===po.TO?Ce():Tt===po.FROM&&$e()}function on(Tt){Tt===po.TO?(be([]),T.current.getValue()&&(pe(!0),T.current.triggerSearch())):Tt===po.FROM&&(be([]),D.current.getValue()&&(pe(!0),D.current.triggerSearch()))}function kn(){(He||qe)&&(qe?T.current.setDisplayText(qe.properties.name):T.current.clear(),He?D.current.setDisplayText(He.properties.name):D.current.clear(),Ce(qe),$e(He))}function Ot(){$e(),D.current.setDisplayText(""),t()}return ke.useEffect(()=>{var gn;Ke(wr.MAX);let Tt=!1;if((a==null?void 0:a.id)==="USER_POSITION"&&(r==null?void 0:r.id)==="USER_POSITION"&&(r=void 0),r!=null&&r.properties&&!O&&(T.current.setDisplayText(r.properties.name),Ce(r)),a!=null&&a.properties?qe||(D.current.setDisplayText(a.properties.name),$e(a),Tt=!0):Y(po.FROM),p&&!((gn=D.current)!=null&&gn.getValue())){const xn=s.current.closest(".sheet");if(xn?xn.addEventListener("transitionend",()=>{a!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput()},{once:!0}):a!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput(),N&&!qe&&(r==null?void 0:r.id)!=="USER_POSITION"&&!Tt){const Nn=KT(N);D.current.setDisplayText(Nn.properties.name),$e(Nn),H(!0),J(!0),be([])}}},[p,r,a]),ke.useEffect(()=>{R===cs.Mapbox&&(Oe(!1),be(fe.filter(Tt=>Tt.properties.type!=="google_places")))},[R]),ke.useEffect(()=>{O&&(Ce(O),T.current.setDisplayText(O.properties.name))},[O]),tt.jsxs("div",{className:"wayfinding",ref:s,"data-sentry-component":"Wayfinding","data-sentry-source-file":"Wayfinding.jsx",children:[tt.jsxs("div",{className:"wayfinding__directions",children:[tt.jsx("div",{className:"wayfinding__title",children:y("Start wayfinding")}),tt.jsx("button",{className:"wayfinding__close",onClick:()=>Ot(),"aria-label":"Close",children:tt.jsx(u2,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"Wayfinding.jsx"})}),tt.jsxs("div",{className:"wayfinding__locations",children:[tt.jsxs("label",{className:"wayfinding__label",children:[y("From").toUpperCase(),tt.jsx(qT,{ref:D,mapsindoors:!0,google:R===cs.Google,mapbox:R===cs.Mapbox,placeholder:y("Search by name, category, building..."),results:Tt=>Ze(Tt,po.FROM),clicked:()=>ut(po.FROM),cleared:()=>Nt(po.FROM),changed:()=>mt(po.FROM),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]}),tt.jsx("button",{onClick:()=>kn(),"aria-label":y("Switch"),className:"wayfinding__switch",children:tt.jsx(Wle,{"data-sentry-element":"SwitchIcon","data-sentry-source-file":"Wayfinding.jsx"})}),tt.jsxs("label",{className:"wayfinding__label",children:[y("To").toUpperCase(),tt.jsx(qT,{ref:T,mapsindoors:!0,google:R===cs.Google,mapbox:R===cs.Mapbox,placeholder:y("Search by name, category, building..."),results:Tt=>Ze(Tt,po.TO),clicked:()=>ut(po.TO),cleared:()=>Nt(po.TO),changed:()=>mt(po.TO),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]})]})]}),!we&&tt.jsx("p",{className:"wayfinding__error",children:y("No route found")}),!Z&&!Xe&&tt.jsx("p",{className:"wayfinding__error",children:y("Nothing was found")}),N&&Xe&&tt.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>xt(),children:[tt.jsx(Jle,{}),y("My position")]}),fe.length>0&&tt.jsx("div",{className:"wayfinding__scrollable",...ct,children:tt.jsxs("div",{className:"wayfinding__results",children:[fe.map(Tt=>tt.jsx(ZT,{icon:Tt.properties.type==="google_places"||Tt.properties.type==="mapbox_places"?oce:void 0,location:Tt,locationClicked:gn=>Ae(gn)},Tt.id)),Je&&tt.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:Xle})]})}),!ce&&!Xe&&we&&!Je&&qe&&He&&tt.jsxs("div",{className:"wayfinding__details",ref:_,children:[tt.jsxs("div",{className:"wayfinding__settings",children:[tt.jsx(mj,{}),tt.jsx("div",{className:"wayfinding__travel",children:tt.jsxs(ece,{selectionChanged:Tt=>Qe(Tt[0].value),children:[tt.jsxs("mi-dropdown-item",{selected:!0,value:td.WALKING,children:[tt.jsx(dj,{}),y("Walk")]}),tt.jsxs("mi-dropdown-item",{value:td.DRIVING,children:[tt.jsx(fj,{}),y("Drive")]}),tt.jsxs("mi-dropdown-item",{value:td.BICYCLING,children:[tt.jsx(pj,{}),y("Bike")]})]})})]}),tt.jsx("hr",{}),tt.jsxs("div",{className:"wayfinding__info",children:[tt.jsxs("div",{className:"wayfinding__distance",children:[rt===td.WALKING&&tt.jsx(dj,{}),rt===td.DRIVING&&tt.jsx(fj,{}),rt===td.BICYCLING&&tt.jsx(pj,{}),tt.jsxs("div",{children:[y("Distance"),":"]}),tt.jsx("div",{className:"wayfinding__meters",children:ee&&ve&&tt.jsx("mi-distance",{unit:le,meters:ee})})]}),tt.jsxs("div",{className:"wayfinding__time",children:[tt.jsx(Zle,{}),tt.jsxs("div",{children:[y("Estimated time"),":"]}),tt.jsx("div",{className:"wayfinding__minutes",children:re&&ve&&tt.jsx("mi-time",{translations:JSON.stringify({days:y("d"),hours:y("h"),minutes:y("min")}),seconds:re})})]})]}),tt.jsx("button",{className:"wayfinding__button",style:{background:F},onClick:()=>e(),disabled:!ve,children:y("Go!")})]})]})}const fxe="",sce=e=>ke.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{opacity:.12},ke.createElement("path",{d:"M16.3335 5.36667C16.3335 4.71327 16.3335 4.38657 16.4607 4.13701C16.5725 3.91749 16.7509 3.73901 16.9705 3.62715C17.22 3.5 17.5467 3.5 18.2002 3.5H22.6335C23.2869 3.5 23.6136 3.5 23.8632 3.62715C24.0827 3.73901 24.2611 3.91749 24.373 4.13701C24.5002 4.38657 24.5002 4.71327 24.5002 5.36667V9.8C24.5002 10.4534 24.5002 10.7801 24.373 11.0297C24.2611 11.2492 24.0827 11.4277 23.8632 11.5395C23.6136 11.6667 23.2869 11.6667 22.6335 11.6667H18.2002C17.5467 11.6667 17.22 11.6667 16.9705 11.5395C16.7509 11.4277 16.5725 11.2492 16.4607 11.0297C16.3335 10.7801 16.3335 10.4534 16.3335 9.8V5.36667Z",fill:"#1F2937"}),ke.createElement("path",{d:"M3.5 5.36667C3.5 4.71327 3.5 4.38657 3.62715 4.13701C3.73901 3.91749 3.91749 3.73901 4.13701 3.62715C4.38657 3.5 4.71327 3.5 5.36667 3.5H9.8C10.4534 3.5 10.7801 3.5 11.0297 3.62715C11.2492 3.73901 11.4277 3.91749 11.5395 4.13701C11.6667 4.38657 11.6667 4.71327 11.6667 5.36667V9.8C11.6667 10.4534 11.6667 10.7801 11.5395 11.0297C11.4277 11.2492 11.2492 11.4277 11.0297 11.5395C10.7801 11.6667 10.4534 11.6667 9.8 11.6667H5.36667C4.71327 11.6667 4.38657 11.6667 4.13701 11.5395C3.91749 11.4277 3.73901 11.2492 3.62715 11.0297C3.5 10.7801 3.5 10.4534 3.5 9.8V5.36667Z",fill:"#1F2937"}),ke.createElement("path",{d:"M3.5 18.2C3.5 17.5466 3.5 17.2199 3.62715 16.9704C3.73901 16.7508 3.91749 16.5724 4.13701 16.4605C4.38657 16.3334 4.71327 16.3334 5.36667 16.3334H9.8C10.4534 16.3334 10.7801 16.3334 11.0297 16.4605C11.2492 16.5724 11.4277 16.7508 11.5395 16.9704C11.6667 17.2199 11.6667 17.5466 11.6667 18.2V22.6334C11.6667 23.2868 11.6667 23.6135 11.5395 23.863C11.4277 24.0826 11.2492 24.261 11.0297 24.3729C10.7801 24.5 10.4534 24.5 9.8 24.5H5.36667C4.71327 24.5 4.38657 24.5 4.13701 24.3729C3.91749 24.261 3.73901 24.0826 3.62715 23.863C3.5 23.6135 3.5 23.2868 3.5 22.6334V18.2Z",fill:"#1F2937"})),ke.createElement("path",{d:"M7.58333 7.58333H7.595M20.4167 7.58333H20.4283M7.58333 20.4167H7.595M15.1667 15.1667H15.1783M20.4167 20.4167H20.4283M19.8333 24.5H24.5V19.8333M16.3333 19.25V24.5M24.5 16.3333H19.25M18.2 11.6667H22.6333C23.2868 11.6667 23.6134 11.6667 23.863 11.5395C24.0826 11.4277 24.261 11.2492 24.3728 11.0297C24.5 10.7801 24.5 10.4534 24.5 9.8V5.36667C24.5 4.71327 24.5 4.38657 24.3728 4.13701C24.261 3.91749 24.0826 3.73901 23.863 3.62715C23.6134 3.5 23.2868 3.5 22.6333 3.5H18.2C17.5465 3.5 17.2199 3.5 16.9703 3.62715C16.7508 3.73901 16.5724 3.91749 16.4605 4.13701C16.3333 4.38657 16.3333 4.71327 16.3333 5.36667V9.8C16.3333 10.4534 16.3333 10.7801 16.4605 11.0297C16.5724 11.2492 16.7508 11.4277 16.9703 11.5395C17.2199 11.6667 17.5465 11.6667 18.2 11.6667ZM5.36667 11.6667H9.8C10.4534 11.6667 10.7801 11.6667 11.0297 11.5395C11.2492 11.4277 11.4277 11.2492 11.5395 11.0297C11.6667 10.7801 11.6667 10.4534 11.6667 9.8V5.36667C11.6667 4.71327 11.6667 4.38657 11.5395 4.13701C11.4277 3.91749 11.2492 3.73901 11.0297 3.62715C10.7801 3.5 10.4534 3.5 9.8 3.5H5.36667C4.71327 3.5 4.38657 3.5 4.13701 3.62715C3.91749 3.73901 3.73901 3.91749 3.62715 4.13701C3.5 4.38657 3.5 4.71327 3.5 5.36667V9.8C3.5 10.4534 3.5 10.7801 3.62715 11.0297C3.73901 11.2492 3.91749 11.4277 4.13701 11.5395C4.38657 11.6667 4.71327 11.6667 5.36667 11.6667ZM5.36667 24.5H9.8C10.4534 24.5 10.7801 24.5 11.0297 24.3728C11.2492 24.261 11.4277 24.0826 11.5395 23.863C11.6667 23.6134 11.6667 23.2868 11.6667 22.6333V18.2C11.6667 17.5465 11.6667 17.2199 11.5395 16.9703C11.4277 16.7508 11.2492 16.5724 11.0297 16.4605C10.7801 16.3333 10.4534 16.3333 9.8 16.3333H5.36667C4.71327 16.3333 4.38657 16.3333 4.13701 16.4605C3.91749 16.5724 3.73901 16.7508 3.62715 16.9703C3.5 17.2199 3.5 17.5465 3.5 18.2V22.6333C3.5 23.2868 3.5 23.6134 3.62715 23.863C3.73901 24.0826 3.91749 24.261 4.13701 24.3728C4.38657 24.5 4.71327 24.5 5.36667 24.5Z",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),pxe="",ace=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),lce=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),JT=$n({key:"activeStep",default:0}),L1=$n({key:"substepsToggled",default:!1}),cce=$n({key:"triggerSubsteps",default:!1}),z1=()=>{const e=Zt(lc),t=sc();return!(!e||e&&!t)},uce=ke.forwardRef(({totalSteps:e,activeStep:t,previous:r,originLocation:a,directions:u},p)=>{var O;const y=ke.useRef(),{t:s}=la(),[_,T]=vn(L1),[,D]=vn(cce),L=z1();ke.useImperativeHandle(p,()=>({openSubsteps(){y.current.openSubsteps()},closeSubsteps(){y.current.closeSubsteps()}}));const N={walk:s("Walk"),bike:s("Bike"),transit:s("Transit"),drive:s("Drive"),destination:s("You have arrived"),leave:s("Leave"),from:s("From"),park:s("Park"),at:s("at"),building:s("Building"),venue:s("Venue"),takeStaircaseToLevel:s("Take staircase to level"),takeLadderToLevel:s("Take the ladder to level"),takeElevatorToLevel:s("Take elevator to level"),takeEscalatorToLevel:s("Take escalator to level"),takeWheelchairLiftToLevel:s("Take wheelchair lift to level"),takeWheelchairRampToLevel:s("Take wheelchair ramp to level"),exit:s("Exit"),enter:s("Enter"),stops:s("stops"),andContinue:s("and continue"),continueStraightAhead:s("Continue straight ahead"),goLeft:s("Go left"),goSharpLeft:s("Go sharp left"),goSlightLeft:s("Go slight left"),goRight:s("Go right"),goSharpRight:s("Go sharp right"),goSlightRight:s("Go slight right"),turnAround:s("Turn around"),days:s("d"),hours:s("h"),minutes:s("min")};return ke.useEffect(()=>{const{current:R}=y;function F(){D(!0),T(!_)}return R.addEventListener("substepsToggled",F),()=>{R.removeEventListener("substepsToggled",F)}},[_]),tt.jsx("mi-route-instructions-step",{ref:y,"show-toggle-button":!L,step:JSON.stringify(e[t]),translations:JSON.stringify(N),"destination-location":u==null?void 0:u.destinationLocation.properties.name,"from-travel-mode":(r==null?void 0:r.travel_mode)??"","from-route-context":(r==null?void 0:r.route_context)??((O=a==null?void 0:a.properties)==null?void 0:O.name)??""})}),hce=()=>{const e=Zt(ws),t=Zt(i2);return()=>{if(e&&t){const a=t.modules.map(u=>u.toLowerCase()).includes("z22");e.setZoom(a?22:21)}}},yj=$n({key:"isDestinationStep",default:!1});function dce({steps:e,onNextStep:t,onPreviousStep:r,originLocation:a,isOpen:u,onFitCurrentDirections:p}){const{t:y}=la(),s=bp(),_=ke.useRef(),[T,D]=ke.useState(),[L,N]=vn(JT),[O,R]=ke.useState(),F=Zt(h2),K=Zt(ws),Y=Zt(L1),[,H]=vn(yj),Z=hce(),J=z1();ke.useEffect(()=>{const be={...e[e.length-1]};be.travel_mode="DESTINATION",be.steps=null,e.push(be),R(e)},[e]),ke.useEffect(()=>{var fe,be;if(u){if(L===(O==null?void 0:O.length)-1&&(F!=null&&F.destinationLocation)){H(!0);const He=F==null?void 0:F.destinationLocation,Ce=(He==null?void 0:He.geometry.type)==="Point"?He==null?void 0:He.geometry.coordinates:He==null?void 0:He.properties.anchor.coordinates;K.getMapView().setCenter({lat:Ce[1],lng:Ce[0]}),Z()}else H(!1);Y===!1?(fe=_.current)==null||fe.closeSubsteps():Y===!0&&((be=_.current)==null||be.openSubsteps())}},[u,L,O,Y]);function ce(){D(O[L]),N(L+1),t()}function pe(){D(O[L-2]),N(L-1),L===(O==null?void 0:O.length)-1?p():r()}return tt.jsx("div",{className:"route-instructions prevent-scroll",...s,"data-sentry-component":"RouteInstructions","data-sentry-source-file":"RouteInstructions.jsx",children:O&&tt.jsxs(tt.Fragment,{children:[tt.jsx(uce,{totalSteps:O,activeStep:L,previous:T,directions:F,originLocation:a,ref:_}),tt.jsx("div",{className:`route-instructions__footer ${J?"route-instructions__footer--kiosk":""}`,children:tt.jsxs("div",{className:"route-instructions__actions",children:[tt.jsx("button",{className:`route-instructions__button ${J?"route-instructions__button--kiosk":""}`,onClick:()=>pe(),"aria-label":y("Previous"),disabled:L===0,children:tt.jsx(lce,{})}),tt.jsx("div",{className:"route-instructions__overview",children:y("StepYofX",{activeStep:L+1,totalSteps:O.length})}),tt.jsx("button",{className:`route-instructions__button ${J?"route-instructions__button--kiosk":""}`,onClick:()=>ce(),"aria-label":y("Next"),disabled:L===O.length-1,children:tt.jsx(ace,{})})]})})]})})}const g2=$n({key:"showQRCodeDialog",default:!1});let ro;function _j({isOpen:e,onBack:t,onSetSize:r,snapPointSwiped:a,onRouteFinished:u}){const{t:p}=la(),[y,s]=ke.useState(null),_=ke.useRef(null),[T,D]=ke.useState(),L=Zt(ws),N=Zt(d2),O=Zt(h2),[,R]=vn(JT),[F,K]=vn(L1),Y=Zt(lc),H=sc(),[,Z]=vn(g2),J=Zt(yj),ce=Zt(ca),pe=z1(),fe=Zt(p2);ke.useEffect(()=>{if(s(null),e&&O){D(O.totalTime);const Qe=Math.min(window.innerHeight,window.innerWidth)*.06;ro==null||ro.setRoute(null),ro=null,Promise.all([be(Qe),He(Qe)]).then(([Xe,Ie])=>{ro=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:L,fitBoundsPadding:{top:Qe,bottom:Xe,left:Ie,right:Qe}}),ro.setRoute(O.directionsResult),ro.setStepIndex(0),_.current.location=O.destinationLocation,O.destinationLocation.id==="USER_POSITION"?s(null):s(L.getDisplayRule(O.destinationLocation))})}},[e,O,L,N]);function be(Qe){return new Promise(Xe=>{if(H)Y?kT().then(Ie=>Xe(Ie)):Xe(Qe);else return G7().then(Ie=>Xe(Ie))})}function He(Qe){return new Promise(Xe=>{H?Y?Xe(Qe):jT().then(Ie=>Xe(Ie)):Xe(Qe)})}ke.useEffect(()=>{!e&&ro&&ct()},[e]);function Ce(){return O?O.directionsResult.legs.reduce((Qe,Xe)=>{for(const Ie in Xe.steps){const De=Xe.steps[Ie];Qe.push(De)}return Qe},[]):[]}function qe(){ro&&ro.nextStep()}function $e(){ro&&ro.previousStep()}function lt(){ro&&ro.setStepIndex(ro.getStepIndex(),ro.getLegIndex())}function ct(){ro==null||ro.setRoute(null),ro=null}function Je(){R(0),K(!1),rt(wr.FIT)}function Oe(){Je(),ct(),t()}function rt(Qe){typeof r=="function"&&r(Qe)}return ke.useEffect(()=>{rt(F?wr.MAX:wr.FIT)},[F]),ke.useEffect(()=>{e&&a&&K(a===wr.MAX)},[e,a]),tt.jsxs("div",{className:"directions",style:{display:pe?"block":"grid"},"data-sentry-component":"Directions","data-sentry-source-file":"Directions.jsx",children:[tt.jsxs("div",{className:"directions__steps",children:[tt.jsx("div",{className:"directions__minutes",children:T&&tt.jsx("mi-time",{translations:JSON.stringify({days:p("d"),hours:p("h"),minutes:p("min")}),seconds:T})}),tt.jsx(dce,{steps:Ce(),originLocation:O==null?void 0:O.originLocation,onNextStep:()=>qe(),isOpen:e,onPreviousStep:()=>$e(),onFitCurrentDirections:()=>lt(),"data-sentry-element":"RouteInstructions","data-sentry-source-file":"Directions.jsx"})]}),pe&&tt.jsxs(tt.Fragment,{children:[tt.jsx("hr",{}),tt.jsxs("div",{className:"directions__kiosk",children:[tt.jsx(mj,{onAccessibilityChanged:()=>Je()}),tt.jsxs("button",{className:"directions__qr-code",onClick:()=>Z(!0),children:[tt.jsx(sce,{}),p("Scan QR code")]})]})]}),tt.jsxs("div",{className:"directions__actions",children:[tt.jsx("div",{className:"directions__details",children:(O==null?void 0:O.destinationLocation)&&tt.jsxs("div",{className:"directions__info",children:[y&&O.destinationLocation.id!=="USER_POSITION"&&tt.jsx("div",{className:"directions__icon",children:tt.jsx("img",{alt:"",src:y.icon.src?y.icon.src:y.icon})}),tt.jsxs("div",{className:"directions__content",children:[tt.jsx("div",{className:"directions__name",children:O==null?void 0:O.destinationLocation.properties.name}),tt.jsx("mi-location-info",{ref:_,"show-external-id":fe})]})]})}),J?tt.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:ce},children:p("Finish route")}):tt.jsx("button",{className:"directions__cancel",onClick:()=>Oe(),children:p("Cancel route")})]})]})}const mxe="";function fce(e,t,r,a,u,p,y){const s=Q7(e.geometry);let _={west:s[0],south:s[1],east:s[2],north:s[3]};t.getMapView().fitBounds(_,{top:0,right:0,bottom:r,left:a}).then(()=>{u&&t.setZoom(parseInt(u)),isNaN(parseInt(p))||t.getMapView().tilt(parseInt(p)),isNaN(parseInt(y))||t.getMapView().rotate(parseInt(y))})}const vj=$n({key:"useKeyboard",default:!1}),pce=ke.forwardRef(({searchInputElement:e},t)=>{const r=ke.useRef(),a=Zt(wp);return ke.useImperativeHandle(t,()=>({clearInputField(){r.current.clearInputField()}})),ke.useEffect(()=>{const{current:u}=r;e&&(u.inputElement=e)},[e]),tt.jsx("mi-keyboard",{language:a,ref:r})}),y2=$n({key:"searchResults",default:[]}),eS=$n({key:"selectedCategory",default:void 0}),gxe="",mce=e=>ke.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),gce=e=>ke.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));function yce(){return new Promise(e=>{const t=document.querySelector(".chip--active");if(t)e(t);else{const r=new MutationObserver(()=>{const a=document.querySelector(".chip--active");a&&(r.disconnect(),e(a))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const xj=$n({key:"category",default:void 0});function _ce({onSetSize:e,getFilteredLocations:t,searchFieldRef:r}){const a=ke.useRef(),u=Zt(yp),p=sc(),[y,s]=ke.useState(!0),[_,T]=ke.useState(!1),D=Zt(ca),[L,N]=vn(eS),[,O]=vn(y2),[,R]=vn(o2),F=bp(),[K,Y]=ke.useState(),H=Zt(lj),Z=Zt(xj);function J(be){typeof e=="function"&&e(be)}function ce(be){N(be),J(wr.MAX),L===be?(O([]),N(null),R([]),r.current.getValue()&&r.current.triggerSearch()):r.current.getValue()?r.current.triggerSearch():t(be)}function pe(){const{scrollLeft:be,scrollWidth:He,clientWidth:Ce}=(a==null?void 0:a.current)||{};be===0?s(!0):y&&s(!1),He-be===Ce?T(!0):He-be>Ce&&T(!1)}function fe(be){a==null||a.current.scroll({left:(a==null?void 0:a.current.scrollLeft)+be,behavior:"smooth"})}return ke.useEffect(()=>{const be=()=>{pe()};a.current&&(new ResizeObserver(be).observe(a.current),a.current.addEventListener("scroll",pe))},[]),ke.useEffect(()=>{L&&(yce().then(be=>Y(be)),J(wr.MAX))},[L]),ke.useEffect(()=>{K&&Z!==void 0&&(p||!p&&H)&&K.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[K,Z,H]),tt.jsx("div",{className:"categories prevent-scroll",...F,"data-sentry-component":"Categories","data-sentry-source-file":"Categories.jsx",children:u.length>0&&tt.jsxs(tt.Fragment,{children:[p&&tt.jsx("button",{className:"categories__scroll-button",onClick:()=>fe(-300),disabled:y,children:tt.jsx(gce,{})}),tt.jsx("div",{ref:a,className:"categories__list",children:u==null?void 0:u.map(([be,He])=>tt.jsx("mi-chip",{icon:He.iconUrl,"background-color":D,content:He.displayName,active:L===be,onClick:()=>ce(be)},be))}),p&&tt.jsx("button",{className:"categories__scroll-button",onClick:()=>fe(300),disabled:_,children:tt.jsx(mce,{})})]})})}const vce=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),ke.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_2=$n({key:"isLegendDialogVisible",default:!1}),Mj=pT({key:"legendFields",get:({get:e})=>{const t=e(lc);if(!(t!=null&&t.properties.fields))return;const r=[];for(const u of Object.keys(t.properties.fields)){const p=parseInt(u.charAt(0));if(!Number.isInteger(p))continue;const y=r.find(T=>T.index===p),s=u.toLowerCase().includes("legendheading"),_=u.toLowerCase().includes("legendcontent");if(y)s?y.heading=t.properties.fields[u].value:_&&(y.content=t.properties.fields[u].value);else{const T={index:p,heading:s?t.properties.fields[u].value:null,content:_?t.properties.fields[u].value:null};r.push(T)}}return r.sort((u,p)=>u.index-p.index)}}),tS=$n({key:"initialVenueName",default:null});function bj({onSetSize:e,isOpen:t}){const{t:r}=la(),a=ke.useRef(),u=ke.useRef(),p=ke.useRef(),y=ke.useRef(),[s,_]=ke.useState(!0),[T,D]=vn(y2),L=Zt(yp),N=Zt(vj),[O,R]=ke.useState(!1),[F,K]=vn(eS),Y=bp(),[H,Z]=ke.useState(),J=Zt(ws),[,ce]=vn(o2),[,pe]=vn(Tu),[,fe]=vn(QT),[be,He]=vn(_p),Ce=Zt(wp),qe=sc(),$e=Zt(lc),[lt,ct]=ke.useState(!1),Je=Zt(WT),Oe=z1(),[,rt]=vn(_2),[Qe,Xe]=ke.useState(!1),Ie=Zt(Mj),De=Zt(m2),le=Zt(C1),ee=Zt(tS);function re(ut){var Nt;window.mapsindoors.services.LocationsService.getLocations({categories:ut,venue:De||(Nt=le.find(jt=>jt.name.toLowerCase()===be.toLowerCase()))==null?void 0:Nt.name}).then(ve)}function we(ut){typeof e=="function"&&e(ut)}function ve(ut){D(ut),ce(ut),R(ut.length===0)}function Ge(){D([]),R(!1),F&&re(F),ce([]),n2(y.current)||y.current.clearInputField()}function Ae(){we(wr.MAX),_(!1),p.current.getInputField();const ut=a.current.closest(".sheet");ut?ut.addEventListener("transitionend",()=>{p.current.focusInput()},{once:!0}):p.current.focusInput()}function Ze(ut){Z(ut)}function Ke(ut){pe(ut),ut.properties.venueId.toLowerCase()!==be.toLowerCase()&&(He(ut.properties.venueId),fe(!0));const Nt=J.getFloor(),jt=ut.properties.floor;jt!==Nt&&J.setFloor(jt),Promise.all([xt(),Ft()]).then(([on,kn])=>{fce(ut,J,on,kn)})}function xt(){return new Promise(ut=>{qe?$e?kT().then(Nt=>ut(Nt)):ut(0):ut(200)})}function Ft(){return new Promise(ut=>{qe?$e?ut(0):jT().then(Nt=>ut(Nt)):ut(0)})}function mt(){if(T.length>0){let ut;return qe?ut=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":ut="100%",{display:"flex",flexDirection:"column",maxHeight:ut,overflow:"hidden"}}else return{minHeight:L.length>0?"136px":"80px"}}return ke.useEffect(()=>{F&&be!==ee&&(D([]),K(null))},[be]),ke.useEffect(()=>{F&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{p.current.triggerSearch()})},[Ce]),ke.useEffect(()=>(J.on("mouseenter",Ze),()=>{J.off("mouseenter",Ze)})),ke.useEffect(()=>{if(t&&Oe&&T.length>0){const ut=document.querySelector(".mapsindoors-map .search__results");u.current.scrollContainerElementRef=ut}},[T,t]),ke.useEffect(()=>{if(N){const ut=Nt=>{Nt.target.closest("mi-keyboard")||Nt.target.tagName.toUpperCase()==="MI-SEARCH"||Nt.target.tagName.toUpperCase()==="INPUT"?ct(!0):ct(!1)};return window.addEventListener("click",ut,!1),()=>{window.removeEventListener("click",ut,!1)}}},[N]),ke.useEffect(()=>{F&&re(F)},[F]),ke.useEffect(()=>{$e&&Xe(Ie.length>0)},[$e]),tt.jsxs("div",{className:"search",ref:a,style:mt(),"data-sentry-component":"Search","data-sentry-source-file":"Search.jsx",children:[tt.jsxs("div",{className:"search__info",style:{gridTemplateColumns:Oe&&Qe?"min-content 1fr":"auto"},children:[Oe&&Qe&&tt.jsx("button",{className:"search__legend",onClick:()=>rt(!0),children:tt.jsx(vce,{})}),tt.jsx(qT,{ref:p,mapsindoors:!0,placeholder:r("Search by name, category, building..."),results:ut=>ve(ut),clicked:()=>Ae(),cleared:()=>Ge(),category:F,disabled:s,"data-sentry-element":"SearchField","data-sentry-source-file":"Search.jsx"})]}),L.length>0&&tt.jsx(_ce,{onSetSize:e,searchFieldRef:p,getFilteredLocations:ut=>re(ut)}),O&&tt.jsxs("p",{className:"search__error",children:[" ",r("Nothing was found")]}),T.length>0&&tt.jsx("div",{className:"search__results prevent-scroll",...Y,children:T.map(ut=>tt.jsx(ZT,{location:ut,locationClicked:()=>Ke(ut),isHovered:(ut==null?void 0:ut.id)===(H==null?void 0:H.id)},ut.id))}),lt&&qe&&tt.jsx(pce,{ref:y,searchInputElement:Je}),t&&Oe&&T.length>0&&l5.createPortal(tt.jsx("div",{className:"search__scroll-buttons",children:tt.jsx("mi-scroll-buttons",{ref:u})}),document.querySelector(".mapsindoors-map"))]})}const yxe="";function wj({onBack:e,onLocationClick:t,locations:r,onSetSize:a}){const{t:u}=la(),p=bp();function y(s){typeof a=="function"&&a(s)}return ke.useEffect(()=>{y(wr.FIT)},[]),tt.jsxs("div",{className:"locations-list","data-sentry-component":"LocationsList","data-sentry-source-file":"LocationsList.jsx",children:[tt.jsxs("div",{className:"locations-list__header",children:[tt.jsxs("div",{className:"locations-list__title",children:[r==null?void 0:r.length," ",u("Locations")]}),tt.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":u("Close"),children:tt.jsx(u2,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"LocationsList.jsx"})})]}),tt.jsx("div",{className:"locations-list__scrollable prevent-scroll",...p,children:tt.jsx("div",{className:"locations-list__list",children:r==null?void 0:r.map(s=>tt.jsx(ZT,{location:s,locationClicked:_=>t(_)},s.id))})})]})}function xce({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:a,appViews:u,onRouteFinished:p}){const y=ke.useRef(),[s,_]=ke.useState(),[T,D]=ke.useState(),[L,N]=ke.useState(),[O,R]=ke.useState(),[F,K]=ke.useState(),[Y,H]=ke.useState(),[Z,J]=ke.useState(),ce=Zt(yp),[pe,fe]=vn(Tu),[be,He]=vn(s2),[,Ce]=vn(l2);ke.useEffect(()=>{e&&t&&a===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):pe?r(u.LOCATION_DETAILS,pe):(be==null?void 0:be.length)>1?r(u.EXTERNALIDS):(be==null?void 0:be.length)===1?(fe(be[0]),Ce(be[0].id)):r(u.SEARCH))},[pe,e,t,be]);function qe(){(be==null?void 0:be.length)>1?(r(u.EXTERNALIDS),fe()):(be==null?void 0:be.length)===1?(r(u.SEARCH),fe(),He([])):(r(u.SEARCH),fe())}function $e(){r(u.SEARCH),fe(),He([])}const lt=[tt.jsx(N1,{minHeight:ce.length>0?"136":"80",preferredSizeSnapPoint:Y,isOpen:a===u.SEARCH,children:tt.jsx(bj,{onSetSize:ct=>H(ct)})},"A"),tt.jsx(N1,{minHeight:"200",isOpen:a===u.EXTERNALIDS,preferredSizeSnapPoint:Z,children:tt.jsx(wj,{onSetSize:ct=>J(ct),onBack:()=>$e(),locations:be,onLocationClick:ct=>fe(ct),onLocationsFiltered:ct=>He(ct)})},"B"),tt.jsx(N1,{minHeight:"128",preferredSizeSnapPoint:s,isOpen:a===u.LOCATION_DETAILS,onSwipedToSnapPoint:ct=>D(ct),children:tt.jsx(hj,{onSetSize:ct=>_(ct),onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>qe(),snapPointSwiped:T,onStartDirections:()=>r(u.DIRECTIONS)})},"C"),tt.jsx(N1,{minHeight:"238",isOpen:a===u.WAYFINDING,preferredSizeSnapPoint:F,children:tt.jsx(gj,{onSetSize:ct=>K(ct),onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(pe?u.LOCATION_DETAILS:u.SEARCH),isActive:a===u.WAYFINDING})},"D"),tt.jsx(N1,{minHeight:"220",isOpen:a===u.DIRECTIONS,preferredSizeSnapPoint:L,onSwipedToSnapPoint:ct=>R(ct),children:tt.jsx(_j,{onSetSize:ct=>N(ct),isOpen:a===u.DIRECTIONS,onBack:()=>r(u.WAYFINDING),snapPointSwiped:O,onRouteFinished:()=>p()})},"E")];return tt.jsx("div",{ref:y,className:"bottom-sheets","data-sentry-component":"BottomSheet","data-sentry-source-file":"BottomSheet.jsx",children:tt.jsx(ij.Provider,{value:y,"data-sentry-element":"unknown","data-sentry-source-file":"BottomSheet.jsx",children:lt})})}const Mce={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},bce=()=>{const[e,t]=ke.useState(void 0),[r,a]=ke.useState(),[u,p]=ke.useState(null);ke.useEffect(()=>{function T(D){var L,N;t((L=D.state)==null?void 0:L.value),a((N=D.state)==null?void 0:N.payload)}return window.addEventListener("popstate",T),()=>{window.removeEventListener("popstate",T)}},[]);const y=(T,D)=>{window.history.pushState({value:T,payload:D},""),t(T),u===null&&p({value:T,payload:D})};return[y,()=>{window.history.back()},e,r,Mce,()=>{y(u.value,u.payload)}]};function wce(){const e=Zt(tS),[,t]=vn(_p),r=bs(JT),a=bs(Tu),u=bs(h2),p=bs(GT),y=bs(QT),s=bs(LT),_=bs(g2),T=bs(L1),D=bs(d2),L=bs(y2),N=bs(f2),O=bs(_2),R=bs(DT),F=bs(OT);return()=>{r(),a(),u(),p(),y(),s(),_(),T(),D(),L(),N(),O(),R(),F(),e&&t(e)}}const _xe="";function k1({children:e,isOpen:t}){const[r,a]=ke.useState(!1),u=Zt(L1),p=Zt(lc),y=ke.useRef(),s=ke.useRef();return ke.useEffect(()=>{if(!s)return;const _=new MutationObserver(()=>{var L;const T=s.current.clientHeight,D=(L=y.current)==null?void 0:L.clientHeight;a(T>D)});return _.observe(s.current,{childList:!0,subtree:!0}),()=>{_.disconnect()}},[s]),tt.jsx("div",{ref:y,className:`modal ${t?"modal--open":""} ${r?"modal--full":""} ${u?"modal--substeps":""} ${p?"modal--kiosk":""}`,"data-sentry-component":"Modal","data-sentry-source-file":"Modal.jsx",children:tt.jsx("div",{ref:s,className:"modal__content",children:e})})}function Ice({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:a,appViews:u,onRouteFinished:p}){const[y,s]=vn(Tu),[_,T]=vn(s2),[,D]=vn(l2),L=Zt(lc);ke.useEffect(()=>{e&&t&&a===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):y?r(u.LOCATION_DETAILS,y):(_==null?void 0:_.length)>1?r(u.EXTERNALIDS):(_==null?void 0:_.length)===1?(s(_[0]),D(_[0].id)):r(u.SEARCH))},[y,e,t,_]);function N(){(_==null?void 0:_.length)>1?(r(u.EXTERNALIDS),s()):(_==null?void 0:_.length)===1?(r(u.SEARCH),s(),T([])):(r(u.SEARCH),s())}function O(){r(u.SEARCH),s(),T([])}function R(){r(L?u.LOCATION_DETAILS:u.WAYFINDING)}const F=[tt.jsx(k1,{isOpen:a===u.SEARCH,children:tt.jsx(bj,{isOpen:a===u.SEARCH})},"A"),tt.jsx(k1,{isOpen:a===u.EXTERNALIDS,children:tt.jsx(wj,{onBack:()=>O(),locations:_,onLocationClick:K=>s(K),onLocationsFiltered:K=>T(K)})},"B"),tt.jsx(k1,{isOpen:a===u.LOCATION_DETAILS,children:tt.jsx(hj,{onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>N(),onStartDirections:()=>r(u.DIRECTIONS)})},"C"),tt.jsx(k1,{isOpen:a===u.WAYFINDING,children:tt.jsx(gj,{onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(y?u.LOCATION_DETAILS:u.SEARCH),isActive:a===u.WAYFINDING})},"D"),tt.jsx(k1,{isOpen:a===u.DIRECTIONS,children:tt.jsx(_j,{isOpen:a===u.DIRECTIONS,onBack:()=>R(),onRouteFinished:()=>p()})},"E")];return tt.jsx("div",{"data-sentry-component":"Sidebar","data-sentry-source-file":"Sidebar.jsx",children:F})}const Ij=e=>{const[t,r]=ke.useState(),a=Zt(r2),u=Zt(U7);return ke.useEffect(()=>{u&&e&&(e==="USER_POSITION"&&!a?(r("USER_POSITION_PENDING"),u.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(p=>r(p)),a&&e==="USER_POSITION"&&r(KT(a)))},[e,a,u]),t},vxe="";function Tce(){const e=Zt(LT),t=ke.useRef();return ke.useEffect(()=>{var r;(r=t.current)==null||r.classList.add("notification"),e?t.current.push(e.text,e.type,!0):t.current.clearAll()},[e]),tt.jsx("mi-notification",{ref:t,position:"top-center","data-sentry-element":"mi-notification","data-sentry-component":"Notification","data-sentry-source-file":"Notification.jsx"})}const xxe="";var O1={},Sce=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Tj={},Qs={};let nS;const Ece=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Qs.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},Qs.getSymbolTotalCodewords=function(t){return Ece[t]},Qs.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},Qs.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');nS=t},Qs.isKanjiModeEnabled=function(){return typeof nS<"u"},Qs.toSJIS=function(t){return nS(t)};var v2={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},e.from=function(a,u){if(e.isValid(a))return a;try{return t(a)}catch{return u}}})(v2);function Sj(){this.buffer=[],this.length=0}Sj.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Dce=Sj;function j1(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}j1.prototype.set=function(e,t,r,a){const u=e*this.size+t;this.data[u]=r,a&&(this.reservedBit[u]=!0)},j1.prototype.get=function(e,t){return this.data[e*this.size+t]},j1.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},j1.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Cce=j1,Ej={};(function(e){const t=Qs.getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const u=Math.floor(a/7)+2,p=t(a),y=p===145?26:Math.ceil((p-13)/(2*u-2))*2,s=[p-7];for(let _=1;_<u-1;_++)s[_]=s[_-1]-y;return s.push(6),s.reverse()},e.getPositions=function(a){const u=[],p=e.getRowColCoords(a),y=p.length;for(let s=0;s<y;s++)for(let _=0;_<y;_++)s===0&&_===0||s===0&&_===y-1||s===y-1&&_===0||u.push([p[s],p[_]]);return u}})(Ej);var Dj={};const Ace=Qs.getSymbolSize,Cj=7;Dj.getPositions=function(t){const r=Ace(t);return[[0,0],[r-Cj,0],[0,r-Cj]]};var Aj={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(u){return u!=null&&u!==""&&!isNaN(u)&&u>=0&&u<=7},e.from=function(u){return e.isValid(u)?parseInt(u,10):void 0},e.getPenaltyN1=function(u){const p=u.size;let y=0,s=0,_=0,T=null,D=null;for(let L=0;L<p;L++){s=_=0,T=D=null;for(let N=0;N<p;N++){let O=u.get(L,N);O===T?s++:(s>=5&&(y+=t.N1+(s-5)),T=O,s=1),O=u.get(N,L),O===D?_++:(_>=5&&(y+=t.N1+(_-5)),D=O,_=1)}s>=5&&(y+=t.N1+(s-5)),_>=5&&(y+=t.N1+(_-5))}return y},e.getPenaltyN2=function(u){const p=u.size;let y=0;for(let s=0;s<p-1;s++)for(let _=0;_<p-1;_++){const T=u.get(s,_)+u.get(s,_+1)+u.get(s+1,_)+u.get(s+1,_+1);(T===4||T===0)&&y++}return y*t.N2},e.getPenaltyN3=function(u){const p=u.size;let y=0,s=0,_=0;for(let T=0;T<p;T++){s=_=0;for(let D=0;D<p;D++)s=s<<1&2047|u.get(T,D),D>=10&&(s===1488||s===93)&&y++,_=_<<1&2047|u.get(D,T),D>=10&&(_===1488||_===93)&&y++}return y*t.N3},e.getPenaltyN4=function(u){let p=0;const y=u.data.length;for(let _=0;_<y;_++)p+=u.data[_];return Math.abs(Math.ceil(p*100/y/5)-10)*t.N4};function r(a,u,p){switch(a){case e.Patterns.PATTERN000:return(u+p)%2===0;case e.Patterns.PATTERN001:return u%2===0;case e.Patterns.PATTERN010:return p%3===0;case e.Patterns.PATTERN011:return(u+p)%3===0;case e.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(p/3))%2===0;case e.Patterns.PATTERN101:return u*p%2+u*p%3===0;case e.Patterns.PATTERN110:return(u*p%2+u*p%3)%2===0;case e.Patterns.PATTERN111:return(u*p%3+(u+p)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(u,p){const y=p.size;for(let s=0;s<y;s++)for(let _=0;_<y;_++)p.isReserved(_,s)||p.xor(_,s,r(u,_,s))},e.getBestMask=function(u,p){const y=Object.keys(e.Patterns).length;let s=0,_=1/0;for(let T=0;T<y;T++){p(T),e.applyMask(T,u);const D=e.getPenaltyN1(u)+e.getPenaltyN2(u)+e.getPenaltyN3(u)+e.getPenaltyN4(u);e.applyMask(T,u),D<_&&(_=D,s=T)}return s}})(Aj);var x2={};const Su=v2,M2=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],b2=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];x2.getBlocksCount=function(t,r){switch(r){case Su.L:return M2[(t-1)*4+0];case Su.M:return M2[(t-1)*4+1];case Su.Q:return M2[(t-1)*4+2];case Su.H:return M2[(t-1)*4+3];default:return}},x2.getTotalCodewordsCount=function(t,r){switch(r){case Su.L:return b2[(t-1)*4+0];case Su.M:return b2[(t-1)*4+1];case Su.Q:return b2[(t-1)*4+2];case Su.H:return b2[(t-1)*4+3];default:return}};var Nj={},w2={};const R1=new Uint8Array(512),I2=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)R1[r]=t,I2[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)R1[r]=R1[r-255]})(),w2.log=function(t){if(t<1)throw new Error("log("+t+")");return I2[t]},w2.exp=function(t){return R1[t]},w2.mul=function(t,r){return t===0||r===0?0:R1[I2[t]+I2[r]]},function(e){const t=w2;e.mul=function(a,u){const p=new Uint8Array(a.length+u.length-1);for(let y=0;y<a.length;y++)for(let s=0;s<u.length;s++)p[y+s]^=t.mul(a[y],u[s]);return p},e.mod=function(a,u){let p=new Uint8Array(a);for(;p.length-u.length>=0;){const y=p[0];for(let _=0;_<u.length;_++)p[_]^=t.mul(u[_],y);let s=0;for(;s<p.length&&p[s]===0;)s++;p=p.slice(s)}return p},e.generateECPolynomial=function(a){let u=new Uint8Array([1]);for(let p=0;p<a;p++)u=e.mul(u,new Uint8Array([1,t.exp(p)]));return u}}(Nj);const Lj=Nj;function iS(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}iS.prototype.initialize=function(t){this.degree=t,this.genPoly=Lj.generateECPolynomial(this.degree)},iS.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const a=Lj.mod(r,this.genPoly),u=this.degree-a.length;if(u>0){const p=new Uint8Array(this.degree);return p.set(a,u),p}return a};var Nce=iS,zj={},Eu={},rS={};rS.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var yl={};const kj="[0-9]+",Lce="[A-Z $%*+\\-./:]+";let P1="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";P1=P1.replace(/u/g,"\\u");const zce="(?:(?![A-Z0-9 $%*+\\-./:]|"+P1+`)(?:.|[\r
|
|
2311
|
+
(${d.data.width}, ${d.data.height})`)));const C=!(l instanceof HTMLImageElement||ImageBitmap&&l instanceof ImageBitmap);d.data.replace(S,C),this.style.updateImage(g,d)}hasImage(g){return g?!!this.style&&!!this.style.getImage(g):(this.fire(new s.d(new Error("Missing required image id"))),!1)}removeImage(g){this.style.removeImage(g)}loadImage(g,l){s.h(this._requestManager.transformRequest(g,s.R.Image),(d,v)=>{l(d,v instanceof HTMLImageElement?s.e.getImageData(v):v)})}listImages(){return this.style.listImages()}addModel(g,l){this._lazyInitEmptyStyle(),this.style.addModel(g,l)}hasModel(g){return g?this.style.hasModel(g):(this.fire(new s.d(new Error("Missing required model id"))),!1)}removeModel(g){this.style.removeModel(g)}listModels(){return this.style.listModels()}addLayer(g,l){return this._isValidId(g.id)?(this._lazyInitEmptyStyle(),this.style.addLayer(g,l),this._update(!0)):this}getSlot(g){const l=this.getLayer(g);return l&&l.slot||null}setSlot(g,l){return this.style.setSlot(g,l),this.style.mergeLayers(),this._update(!0)}addImport(g,l){return this.style.addImport(g,l),this}updateImport(g,l){return typeof l!="string"&&l.id!==g?(this.removeImport(g),this.addImport(l)):(this.style.updateImport(g,l),this._update(!0))}removeImport(g){return this.style.removeImport(g),this}moveImport(g,l){return this.style.moveImport(g,l),this._update(!0)}moveLayer(g,l){return this._isValidId(g)?(this.style.moveLayer(g,l),this._update(!0)):this}removeLayer(g){return this._isValidId(g)?(this.style.removeLayer(g),this._update(!0)):this}getLayer(g){if(!this._isValidId(g))return null;const l=this.style.getOwnLayer(g);return l?l.serialize():void 0}getSlots(){return this.style.getSlots()}setLayerZoomRange(g,l,d){return this._isValidId(g)?(this.style.setLayerZoomRange(g,l,d),this._update(!0)):this}setFilter(g,l,d={}){return this._isValidId(g)?(this.style.setFilter(g,l,d),this._update(!0)):this}getFilter(g){return this._isValidId(g)?this.style.getFilter(g):null}setPaintProperty(g,l,d,v={}){return this._isValidId(g)?(this.style.setPaintProperty(g,l,d,v),this._update(!0)):this}getPaintProperty(g,l){return this._isValidId(g)?this.style.getPaintProperty(g,l):null}setLayoutProperty(g,l,d,v={}){return this._isValidId(g)?(this.style.setLayoutProperty(g,l,d,v),this._update(!0)):this}getLayoutProperty(g,l){return this._isValidId(g)?this.style.getLayoutProperty(g,l):null}getSchema(g){return this.style.getSchema(g)}setSchema(g,l){return this.style.setSchema(g,l),this._update(!0)}getConfig(g){return this.style.getConfig(g)}setConfig(g,l){return this.style.setConfig(g,l),this._update(!0)}getConfigProperty(g,l){return this.style.getConfigProperty(g,l)}setConfigProperty(g,l,d){return this.style.setConfigProperty(g,l,d),this._update(!0)}setLights(g){if(this._lazyInitEmptyStyle(),g&&g.length===1&&g[0].type==="flat"){const l=g[0];l.properties?this.style.setFlatLight(l.properties,l.id,{}):this.style.setFlatLight({},"flat")}else this.style.setLights(g),this.painter.terrain&&(this.painter.terrain.invalidateRenderCache=!0);return this._update(!0)}getLights(){const g=this.style.getLights()||[];return g.length===0&&g.push({id:this.style.light.id,type:"flat",properties:this.style.getFlatLight()}),g}setLight(g,l={}){return console.log("The `map.setLight` function is deprecated, prefer using `map.setLights` with `flat` light type instead."),this.setLights([{id:"flat",type:"flat",properties:g}])}getLight(){return console.log("The `map.getLight` function is deprecated, prefer using `map.getLights` instead."),this.style.getFlatLight()}setTerrain(g){return this._lazyInitEmptyStyle(),!g&&this.transform.projection.requiresDraping?this.style.setTerrainForDraping():this.style.setTerrain(g),this._averageElevationLastSampledAt=-1/0,this._update(!0)}getTerrain(){return this.style?this.style.getTerrain():null}setFog(g){return this._lazyInitEmptyStyle(),this.style.setFog(g),this._update(!0)}getFog(){return this.style?this.style.getFog():null}setColorTheme(g){return this._lazyInitEmptyStyle(),this.style.setColorTheme(g),this._update(!0)}setCamera(g){return this.style.setCamera(g),this._triggerCameraUpdate(g)}_triggerCameraUpdate(g){return this._update(this.transform.setOrthographicProjectionAtLowPitch(g["camera-projection"]==="orthographic"))}getCamera(){return this.style.camera}_queryFogOpacity(g){return this.style&&this.style.fog?this.style.fog.getOpacityAtLatLng(s.aI.convert(g),this.transform):0}setFeatureState(g,l){return this._isValidId(g.source)?(this.style.setFeatureState(g,l),this._update()):this}removeFeatureState(g,l){return this._isValidId(g.source)?(this.style.removeFeatureState(g,l),this._update()):this}getFeatureState(g){return this._isValidId(g.source)?this.style.getFeatureState(g):null}_updateContainerDimensions(){if(!this._container)return;const g=this._container.getBoundingClientRect().width||400,l=this._container.getBoundingClientRect().height||300;let d,v,b,w=this._container;for(;w&&(!v||!b);){const S=window.getComputedStyle(w).transform;S&&S!=="none"&&(d=S.match(/matrix.*\((.+)\)/)[1].split(", "),d[0]&&d[0]!=="0"&&d[0]!=="1"&&(v=d[0]),d[3]&&d[3]!=="0"&&d[3]!=="1"&&(b=d[3])),w=w.parentElement}this._containerWidth=v?Math.abs(g/v):g,this._containerHeight=b?Math.abs(l/b):l}_detectMissingCSS(){window.getComputedStyle(this._missingCSSCanary).getPropertyValue("background-color")!=="rgb(250, 128, 114)"&&s.w("This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.")}_setupContainer(){const g=this._container;g.classList.add("mapboxgl-map"),(this._missingCSSCanary=N("div","mapboxgl-canary",g)).style.visibility="hidden",this._detectMissingCSS();const l=this._canvasContainer=N("div","mapboxgl-canvas-container",g);this._canvas=N("canvas","mapboxgl-canvas",l),this._interactive&&(l.classList.add("mapboxgl-interactive"),this._canvas.setAttribute("tabindex","0")),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("aria-label",this._getUIString("Map.Title")),this._canvas.setAttribute("role","region"),this._updateContainerDimensions(),this._resizeCanvas(this._containerWidth,this._containerHeight);const d=this._controlContainer=N("div","mapboxgl-control-container",g),v=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(b=>{v[b]=N("div",`mapboxgl-ctrl-${b}`,d)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_resizeCanvas(g,l){const d=s.e.devicePixelRatio||1;this._canvas.width=d*Math.ceil(g),this._canvas.height=d*Math.ceil(l),this._canvas.style.width=`${g}px`,this._canvas.style.height=`${l}px`}_addMarker(g){this._markers.push(g)}_removeMarker(g){const l=this._markers.indexOf(g);l!==-1&&this._markers.splice(l,1)}_addPopup(g){this._popups.push(g)}_removePopup(g){const l=this._popups.indexOf(g);l!==-1&&this._popups.splice(l,1)}_setupPainter(){const g=s.W({},T.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),l=this._canvas.getContext("webgl2",g);l?(s.dh(l,!0),this.painter=new ZE(l,this._contextCreateOptions,this.transform,this._tp),this.on("data",d=>{d.dataType==="source"&&this.painter.setTileLoadedFlag(!0)}),s.di.testSupport(l)):this.fire(new s.d(new Error("Failed to initialize WebGL")))}_contextLost(g){g.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new s.f("webglcontextlost",{originalEvent:g}))}_contextRestored(g){this._setupPainter(),this.resize(),this._update(),this.fire(new s.f("webglcontextrestored",{originalEvent:g}))}_onMapScroll(g){if(g.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}frameReady(){return this.loaded()&&!this._placementDirty&&!this._occlusionOpacityChanged&&this._occlusionCriteriaSatisfied()}_update(g){return this.style?(this._styleDirty=this._styleDirty||g,this._sourcesDirty=!0,this.triggerRepaint(),this):this}_requestRenderFrame(g){return this._update(),this._renderTaskQueue.add(g)}_cancelRenderFrame(g){this._renderTaskQueue.remove(g)}_requestDomTask(g){!this.loaded()||this.loaded()&&!this.isMoving()?g():this._domRenderTaskQueue.add(g)}_render(g){let l;this.fire(new s.f("renderstart")),++this._frameId;const d=this.painter.context.extTimerQuery,v=s.e.now(),b=this.painter.context.gl;if(this.listens("gpu-timing-frame")&&(l=b.createQuery(),b.beginQuery(d.TIME_ELAPSED_EXT,l)),this.painter.context.setDirty(),this.painter.setBaseState(),(this.isMoving()||this.isRotating()||this.isZooming())&&(this._interactionRange[0]=Math.min(this._interactionRange[0],performance.now()),this._interactionRange[1]=Math.max(this._interactionRange[1],performance.now())),this._renderTaskQueue.run(g),this._domRenderTaskQueue.run(g),this._removed)return;this._updateProjectionTransition();const w=this._isInitialLoad?0:this._fadeDuration;if(this.style&&this._styleDirty){this._styleDirty=!1;const j=this.transform.zoom,B=this.transform.pitch,$=s.e.now(),G=new s.X(j,{now:$,fadeDuration:w,pitch:B,transition:this.style.transition});this.style.update(G)}this.style&&this.style.hasFogTransition()&&(this.style._markersNeedUpdate=!0,this._sourcesDirty=!0);let S=!1;this.style&&this._sourcesDirty?(this._sourcesDirty=!1,this.painter._updateFog(this.style),this._updateTerrain(),S=this._updateAverageElevation(v),this.style.updateSources(this.transform),this._forceMarkerAndPopupUpdate()):S=this._updateAverageElevation(v);const C=this.style&&this.style._updatePlacement(this.painter,this.painter.transform,this.showCollisionBoxes,w,this._crossSourceCollisions,this.painter.replacementSource);if(C&&(this._placementDirty=C.needsRerender,this._occlusionOpacityChanged=C.occlusionQueryBasedOpacityChanged),this.style&&this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showParseStatus:this.showParseStatus,wireframe:{terrain:this.showTerrainWireframe,layers2D:this.showLayers2DWireframe,layers3D:this.showLayers3DWireframe},showOverdrawInspector:this._showOverdrawInspector,showQueryGeometry:!!this._showQueryGeometry,showTileAABBs:this.showTileAABBs,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:w,isInitialLoad:this._isInitialLoad,showPadding:this.showPadding,gpuTiming:!!this.listens("gpu-timing-layer"),gpuTimingDeferredRender:!!this.listens("gpu-timing-deferred-render"),speedIndexTiming:this.speedIndexTiming}),this.fire(new s.f("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,s.dc.mark(s.dd.load),this.fire(new s.f("load"))),this.style&&this.style.hasTransitions()&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles(),l){const j=s.e.now()-v;b.endQuery(d.TIME_ELAPSED_EXT),setTimeout(()=>{const B=b.getQueryParameter(l,b.QUERY_RESULT)/1e6;b.deleteQuery(l),this.fire(new s.f("gpu-timing-frame",{cpuTime:j,gpuTime:B}))},50)}if(this.listens("gpu-timing-layer")){const j=this.painter.collectGpuTimers();setTimeout(()=>{const B=this.painter.queryGpuTimers(j);this.fire(new s.f("gpu-timing-layer",{layerTimes:B}))},50)}if(this.listens("gpu-timing-deferred-render")){const j=this.painter.collectDeferredRenderGpuQueries();setTimeout(()=>{const B=this.painter.queryGpuTimeDeferredRender(j);this.fire(new s.f("gpu-timing-deferred-render",{gpuTime:B}))},50)}const k=this._sourcesDirty||this._styleDirty||this._placementDirty||this._occlusionOpacityChanged||S;if((this._sourcesDirty||this._styleDirty||S||this._occlusionOpacityChanged)&&(this._lastDirtyFrameId=this._frameId),k||this._repaint||!this._occlusionCriteriaSatisfied())this.triggerRepaint();else{const j=!this.isMoving()&&this.loaded();if(j&&(S=this._updateAverageElevation(v,!0)),S)this.triggerRepaint();else if(this._triggerFrame(!1),j&&(this.fire(new s.f("idle")),this._isInitialLoad=!1,this.speedIndexTiming)){const B=this._calculateSpeedIndex();this.fire(new s.f("speedindexcompleted",{speedIndex:B})),this.speedIndexTiming=!1}}this._loaded&&!this._fullyLoaded&&!k&&this._occlusionCriteriaSatisfied()&&(this._fullyLoaded=!0,s.dc.mark(s.dd.fullLoad),this._performanceMetricsCollection&&s.dj(this._requestManager._customAccessToken,{width:this.painter.width,height:this.painter.height,interactionRange:this._interactionRange,visibilityHidden:this._visibilityHidden,terrainEnabled:!!this.painter.style.getTerrain(),fogEnabled:!!this.painter.style.getFog(),projection:this.getProjection().name,zoom:this.transform.zoom,renderer:this.painter.context.renderer,vendor:this.painter.context.vendor}),this._authenticate())}_forceMarkerAndPopupUpdate(g){for(const l of this._markers)g&&!this.getRenderWorldCopies()&&(l._lngLat=l._lngLat.wrap()),l._update();for(const l of this._popups)!g||this.getRenderWorldCopies()||l._trackPointer||(l._lngLat=l._lngLat.wrap()),l._update()}_updateAverageElevation(g,l=!1){const d=b=>(this.transform.averageElevation=b,this._update(!1),!0);if(!this.painter.averageElevationNeedsEasing())return this.transform.averageElevation!==0&&d(0);const v=this.transform.elevation&&this.transform.elevation.exaggeration()!==this._averageElevationExaggeration;if(v||(l||g-this._averageElevationLastSampledAt>500)&&!this._averageElevation.isEasing(g)){const b=this.transform.averageElevation;let w=this.transform.sampleAverageElevation();this.transform.elevation!=null&&(this._averageElevationExaggeration=this.transform.elevation.exaggeration()),isNaN(w)?w=0:this._averageElevationLastSampledAt=g;const S=Math.abs(b-w);if(S>1){if(this._isInitialLoad||v)return this._averageElevation.jumpTo(w),d(w);this._averageElevation.easeTo(w,g,300)}else if(S>1e-4)return this._averageElevation.jumpTo(w),d(w)}return!!this._averageElevation.isEasing(g)&&d(this._averageElevation.getValue(g))}_authenticate(){s.dk(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,g=>{if(g&&(g.message===s.dl||g.status===401)){const l=this.painter.context.gl;s.dh(l,!1),this._logoControl instanceof jb&&this._logoControl._updateLogo(),l&&l.clear(l.DEPTH_BUFFER_BIT|l.COLOR_BUFFER_BIT|l.STENCIL_BUFFER_BIT),this._silenceAuthErrors||this.fire(new s.d(new Error("A valid Mapbox access token is required to use Mapbox GL JS. To create an account or a new access token, visit https://account.mapbox.com/")))}}),s.dm(this._getMapId(),this._requestManager._skuToken,this._requestManager._customAccessToken,()=>{})}_postStyleLoadEvent(){this.style.globalId&&s.dn(this._requestManager._customAccessToken,{map:this,skuToken:this._requestManager._skuToken,style:this.style.globalId,importedStyles:this.style.getImportGlobalIds()})}_updateTerrain(){const g=this._isDragging();this.painter.updateTerrain(this.style,g)}_calculateSpeedIndex(){const g=this.painter.canvasCopy(),l=this.painter.getCanvasCopiesAndTimestamps();l.timeStamps.push(performance.now());const d=this.painter.context.gl,v=d.createFramebuffer();function b(w){d.framebufferTexture2D(d.FRAMEBUFFER,d.COLOR_ATTACHMENT0,d.TEXTURE_2D,w,0);const S=new Uint8Array(d.drawingBufferWidth*d.drawingBufferHeight*4);return d.readPixels(0,0,d.drawingBufferWidth,d.drawingBufferHeight,d.RGBA,d.UNSIGNED_BYTE,S),S}return d.bindFramebuffer(d.FRAMEBUFFER,v),this._canvasPixelComparison(b(g),l.canvasCopies.map(b),l.timeStamps)}_canvasPixelComparison(g,l,d){let v=d[1]-d[0];const b=g.length/4;for(let w=0;w<l.length;w++){const S=l[w];let C=0;for(let k=0;k<S.length;k+=4)S[k]===g[k]&&S[k+1]===g[k+1]&&S[k+2]===g[k+2]&&S[k+3]===g[k+3]&&(C+=1);v+=(d[w+2]-d[w+1])*(1-C/b)}return v}remove(){this._hash&&this._hash.remove();for(const l of this._controls)l.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this._domRenderTaskQueue.clear(),this.style&&this.style.destroy(),this.painter.destroy(),this.handlers&&this.handlers.destroy(),this.handlers=void 0,this.setStyle(null),window.removeEventListener("resize",this._onWindowResize,!1),window.removeEventListener("orientationchange",this._onWindowResize,!1),window.removeEventListener(this._fullscreenchangeEvent,this._onWindowResize,!1),window.removeEventListener("online",this._onWindowOnline,!1),window.removeEventListener("visibilitychange",this._onVisibilityChange,!1);const g=this.painter.context.gl.getExtension("WEBGL_lose_context");g&&g.loseContext(),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvasContainer.remove(),this._controlContainer.remove(),this._missingCSSCanary.remove(),this._canvas=void 0,this._canvasContainer=void 0,this._controlContainer=void 0,this._missingCSSCanary=void 0,this._container.classList.remove("mapboxgl-map"),this._container.removeEventListener("scroll",this._onMapScroll,!1),s.dp(this.painter.context.gl),s.dq.remove(),s.dr.remove(),this._removed=!0,this.fire(new s.f("remove"))}triggerRepaint(){this._triggerFrame(!0)}_triggerFrame(g){this._renderNextFrame=this._renderNextFrame||g,this.style&&!this._frame&&(this._frame=s.e.frame(l=>{const d=!!this._renderNextFrame;this._frame=null,this._renderNextFrame=null,d&&this._render(l)}))}_preloadTiles(g){const l=this.style?this.style.getSourceCaches():[];return s.ds(l,(d,v)=>d._preloadTiles(g,v),()=>{this.triggerRepaint()}),this}_onWindowOnline(){this._update()}_onWindowResize(g){this._trackResize&&this.resize({originalEvent:g})._update()}_onVisibilityChange(){document.visibilityState==="hidden"&&this._visibilityHidden++}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(g){this._showTileBoundaries!==g&&(this._showTileBoundaries=g,this._tp.refreshUI(),this._update())}get showParseStatus(){return!!this._showParseStatus}set showParseStatus(g){this._showParseStatus!==g&&(this._showParseStatus=g,this._tp.refreshUI(),this._update())}get showTerrainWireframe(){return!!this._showTerrainWireframe}set showTerrainWireframe(g){this._showTerrainWireframe!==g&&(this._showTerrainWireframe=g,this._tp.refreshUI(),this._update())}get showLayers2DWireframe(){return!!this._showLayers2DWireframe}set showLayers2DWireframe(g){this._showLayers2DWireframe!==g&&(this._showLayers2DWireframe=g,this._tp.refreshUI(),this._update())}get showLayers3DWireframe(){return!!this._showLayers3DWireframe}set showLayers3DWireframe(g){this._showLayers3DWireframe!==g&&(this._showLayers3DWireframe=g,this._tp.refreshUI(),this._update())}get speedIndexTiming(){return!!this._speedIndexTiming}set speedIndexTiming(g){this._speedIndexTiming!==g&&(this._speedIndexTiming=g,this._update())}get showPadding(){return!!this._showPadding}set showPadding(g){this._showPadding!==g&&(this._showPadding=g,this._tp.refreshUI(),this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(g){this._showCollisionBoxes!==g&&(this._showCollisionBoxes=g,this._tp.refreshUI(),g?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(g){this._showOverdrawInspector!==g&&(this._showOverdrawInspector=g,this._tp.refreshUI(),this._update())}get repaint(){return!!this._repaint}set repaint(g){this._repaint!==g&&(this._repaint=g,this._tp.refreshUI(),this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(g){this._vertices=g,this._update()}get showTileAABBs(){return!!this._showTileAABBs}set showTileAABBs(g){this._showTileAABBs!==g&&(this._showTileAABBs=g,this._tp.refreshUI(),g&&this._update())}_setCacheLimits(g,l){s.du(g,l)}_occlusionCriteriaSatisfied(){const g=this.style&&(this.style.has3DLayers()||this.style.terrain&&!this.style.disableElevatedTerrain);return!(this.style&&this.style.hasSymbolLayers()&&g&&this.painter)||this._frameId-this._lastDirtyFrameId>5+2*this.painter.symbolParams.occlusionQueryFrameWindow}get version(){return s.dt}},NavigationControl:class{constructor(g={}){this.options=s.W({},ay,g),this._container=N("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._container.addEventListener("contextmenu",l=>l.preventDefault()),this.options.showZoom&&(s.bp(["_setButtonTitle","_updateZoomButtons"],this),this._zoomInButton=this._createButton("mapboxgl-ctrl-zoom-in",l=>{this._map&&this._map.zoomIn({},{originalEvent:l})}),N("span","mapboxgl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("mapboxgl-ctrl-zoom-out",l=>{this._map&&this._map.zoomOut({},{originalEvent:l})}),N("span","mapboxgl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(s.bp(["_rotateCompassArrow"],this),this._compass=this._createButton("mapboxgl-ctrl-compass",l=>{const d=this._map;d&&(this.options.visualizePitch?d.resetNorthPitch({},{originalEvent:l}):d.resetNorth({},{originalEvent:l}))}),this._compassIcon=N("span","mapboxgl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}_updateZoomButtons(){const g=this._map;if(!g)return;const l=g.getZoom(),d=l===g.getMaxZoom(),v=l===g.getMinZoom();this._zoomInButton.disabled=d,this._zoomOutButton.disabled=v,this._zoomInButton.setAttribute("aria-disabled",d.toString()),this._zoomOutButton.setAttribute("aria-disabled",v.toString())}_rotateCompassArrow(){const g=this._map;if(!g)return;const l=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(g.transform.pitch*(Math.PI/180)),.5)}) rotateX(${g.transform.pitch}deg) rotateZ(${g.transform.angle*(180/Math.PI)}deg)`:`rotate(${g.transform.angle*(180/Math.PI)}deg)`;g._requestDomTask(()=>{this._compassIcon&&(this._compassIcon.style.transform=l)})}onAdd(g){return this._map=g,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),g.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&g.on("pitch",this._rotateCompassArrow),g.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Dc(g,this._compass,this.options.visualizePitch)),this._container}onRemove(){const g=this._map;g&&(this._container.remove(),this.options.showZoom&&g.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&g.off("pitch",this._rotateCompassArrow),g.off("rotate",this._rotateCompassArrow),this._handler&&this._handler.off(),this._handler=void 0),this._map=void 0)}_createButton(g,l){const d=N("button",g,this._container);return d.type="button",d.addEventListener("click",l),d}_setButtonTitle(g,l){if(!this._map)return;const d=this._map._getUIString(`NavigationControl.${l}`);g.setAttribute("aria-label",d),g.firstElementChild&&g.firstElementChild.setAttribute("title",d)}},GeolocateControl:class extends s.E{constructor(g={}){super();const l=navigator.geolocation;this.options=s.W({geolocation:l},Vb,g),s.bp(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker","_updateMarkerRotation","_onDeviceOrientation"],this),this._updateMarkerRotationThrottled=Tb(this._updateMarkerRotation,20),this._numberOfWatches=0}onAdd(g){return this._map=g,this._container=N("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkGeolocationSupport(this._setupUI),this._container}onRemove(){this._geolocationWatchID!==void 0&&(this.options.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),this._container.remove(),this._map.off("zoom",this._onZoom),this._map=void 0,this._numberOfWatches=0,this._noTimeout=!1}_checkGeolocationSupport(g){const l=(d=!!this.options.geolocation)=>{this._supportsGeolocation=d,g(d)};this._supportsGeolocation!==void 0?g(this._supportsGeolocation):navigator.permissions!==void 0?navigator.permissions.query({name:"geolocation"}).then(d=>l(d.state!=="denied")).catch(()=>l()):l()}_isOutOfMapMaxBounds(g){const l=this._map.getMaxBounds(),d=g.coords;return!!l&&(d.longitude<l.getWest()||d.longitude>l.getEast()||d.latitude<l.getSouth()||d.latitude>l.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}}_onSuccess(g){if(this._map){if(this._isOutOfMapMaxBounds(g))return this._setErrorState(),this.fire(new s.f("outofmaxbounds",g)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=g,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&this._watchState!=="OFF"&&this._updateMarker(g),this.options.trackUserLocation&&this._watchState!=="ACTIVE_LOCK"||this._updateCamera(g),this.options.showUserLocation&&this._userLocationDotMarker.removeClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.f("geolocate",g)),this._finish()}}_updateCamera(g){const l=new s.aI(g.coords.longitude,g.coords.latitude),d=g.coords.accuracy,v=this._map.getBearing(),b=s.W({bearing:v},this.options.fitBoundsOptions);this._map.fitBounds(l.toBounds(d),b,{geolocateSource:!0})}_updateMarker(g){if(g){const l=new s.aI(g.coords.longitude,g.coords.latitude);this._accuracyCircleMarker.setLngLat(l).addTo(this._map),this._userLocationDotMarker.setLngLat(l).addTo(this._map),this._accuracy=g.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()}_updateCircleRadius(){const g=this._map.transform,l=s.ax(1,g._center.lat)*g.worldSize,d=Math.ceil(2*this._accuracy*l);this._circleElement.style.width=`${d}px`,this._circleElement.style.height=`${d}px`}_onZoom(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}_updateMarkerRotation(){this._userLocationDotMarker&&typeof this._heading=="number"?(this._userLocationDotMarker.setRotation(this._heading),this._userLocationDotMarker.addClassName("mapboxgl-user-location-show-heading")):(this._userLocationDotMarker.removeClassName("mapboxgl-user-location-show-heading"),this._userLocationDotMarker.setRotation(0))}_onError(g){if(this._map){if(this.options.trackUserLocation)if(g.code===1){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l),this._geolocationWatchID!==void 0&&this._clearWatch()}else{if(g.code===3&&this._noTimeout)return;this._setErrorState()}this._watchState!=="OFF"&&this.options.showUserLocation&&this._userLocationDotMarker.addClassName("mapboxgl-user-location-dot-stale"),this.fire(new s.f("error",g)),this._finish()}}_finish(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0}_setupUI(g){if(this._map!==void 0){if(this._container.addEventListener("contextmenu",l=>l.preventDefault()),this._geolocateButton=N("button","mapboxgl-ctrl-geolocate",this._container),N("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",g===!1){s.w("Geolocation support is not available so the GeolocateControl will be disabled.");const l=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}else{const l=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.setAttribute("aria-label",l),this._geolocateButton.firstElementChild&&this._geolocateButton.firstElementChild.setAttribute("title",l)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=N("div","mapboxgl-user-location"),this._dotElement.appendChild(N("div","mapboxgl-user-location-dot")),this._dotElement.appendChild(N("div","mapboxgl-user-location-heading")),this._userLocationDotMarker=new iy({element:this._dotElement,rotationAlignment:"map",pitchAlignment:"map"}),this._circleElement=N("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new iy({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",l=>{l.geolocateSource||this._watchState!=="ACTIVE_LOCK"||l.originalEvent&&l.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 s.f("trackuserlocationend")))})}}_onDeviceOrientation(g){this._userLocationDotMarker&&(g.webkitCompassHeading?this._heading=g.webkitCompassHeading:g.absolute===!0&&(this._heading=-1*g.alpha),this._updateMarkerRotationThrottled())}trigger(){if(!this._setup)return s.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new s.f("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":this._numberOfWatches--,this._noTimeout=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new s.f("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new s.f("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if(this._watchState==="OFF"&&this._geolocationWatchID!==void 0)this._clearWatch();else if(this._geolocationWatchID===void 0){let g;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),this._numberOfWatches++,this._numberOfWatches>1?(g={maximumAge:6e5,timeout:0},this._noTimeout=!0):(g=this.options.positionOptions,this._noTimeout=!1),this._geolocationWatchID=this.options.geolocation.watchPosition(this._onSuccess,this._onError,g),this.options.showUserHeading&&this._addDeviceOrientationListener()}}else this.options.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_addDeviceOrientationListener(){const g=()=>{"ondeviceorientationabsolute"in window?window.addEventListener("deviceorientationabsolute",this._onDeviceOrientation):window.addEventListener("deviceorientation",this._onDeviceOrientation)};typeof DeviceMotionEvent<"u"&&typeof DeviceMotionEvent.requestPermission=="function"?DeviceOrientationEvent.requestPermission().then(l=>{l==="granted"&&g()}).catch(console.error):g()}_clearWatch(){this.options.geolocation.clearWatch(this._geolocationWatchID),window.removeEventListener("deviceorientation",this._onDeviceOrientation),window.removeEventListener("deviceorientationabsolute",this._onDeviceOrientation),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},AttributionControl:Ob,ScaleControl:class{constructor(g={}){this.options=s.W({},Cc,g),this._isNumberFormatSupported=function(){try{return new Intl.NumberFormat("en",{style:"unit",unitDisplay:"short",unit:"meter"}),!0}catch{return!1}}(),s.bp(["_update","_setScale","setUnit"],this)}getDefaultPosition(){return"bottom-left"}_update(){const g=this.options.maxWidth||100,l=this._map,d=l._containerHeight/2,v=l._containerWidth/2-g/2,b=l.unproject([v,d]),w=l.unproject([v+g,d]),S=b.distanceTo(w);if(this.options.unit==="imperial"){const C=3.2808*S;C>5280?this._setScale(g,C/5280,"mile"):this._setScale(g,C,"foot")}else this.options.unit==="nautical"?this._setScale(g,S/1852,"nautical-mile"):S>=1e3?this._setScale(g,S/1e3,"kilometer"):this._setScale(g,S,"meter")}_setScale(g,l,d){this._map._requestDomTask(()=>{const v=function(w){const S=Math.pow(10,`${Math.floor(w)}`.length-1);let C=w/S;return C=C>=10?10:C>=5?5:C>=3?3:C>=2?2:C>=1?1:function(k){const j=Math.pow(10,Math.ceil(-Math.log(k)/Math.LN10));return Math.round(k*j)/j}(C),S*C}(l),b=v/l;this._container.innerHTML=this._isNumberFormatSupported&&d!=="nautical-mile"?new Intl.NumberFormat(this._language,{style:"unit",unitDisplay:"short",unit:d}).format(v):`${v} ${$b[d]}`,this._container.style.width=g*b+"px"})}onAdd(g){return this._map=g,this._language=g.getLanguage(),this._container=N("div","mapboxgl-ctrl mapboxgl-ctrl-scale",g.getContainer()),this._container.dir="auto",this._map.on("move",this._update),this._update(),this._container}onRemove(){this._container.remove(),this._map.off("move",this._update),this._map=void 0}_setLanguage(g){this._language=g,this._update()}setUnit(g){this.options.unit=g,this._update()}},FullscreenControl:class{constructor(g={}){this._fullscreen=!1,g&&g.container&&(g.container instanceof HTMLElement?this._container=g.container:s.w("Full screen control 'container' must be a DOM element.")),s.bp(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onwebkitfullscreenchange"in document&&(this._fullscreenchange="webkitfullscreenchange")}onAdd(g){return this._map=g,this._container||(this._container=this._map.getContainer()),this._controlContainer=N("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",s.w("This device does not support fullscreen mode.")),this._controlContainer}onRemove(){this._controlContainer.remove(),this._map=null,document.removeEventListener(this._fullscreenchange,this._changeIcon)}_checkFullscreenSupport(){return!(!document.fullscreenEnabled&&!document.webkitFullscreenEnabled)}_setupUI(){const g=this._fullscreenButton=N("button","mapboxgl-ctrl-fullscreen",this._controlContainer);N("span","mapboxgl-ctrl-icon",g).setAttribute("aria-hidden","true"),g.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),document.addEventListener(this._fullscreenchange,this._changeIcon)}_updateTitle(){const g=this._getTitle();this._fullscreenButton.setAttribute("aria-label",g),this._fullscreenButton.firstElementChild&&this._fullscreenButton.firstElementChild.setAttribute("title",g)}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_changeIcon(){(document.fullscreenElement||document.webkitFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())}_onClickFullscreen(){this._isFullscreen()?document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()}},Popup:class extends s.E{constructor(g){super(),this.options=s.W(Object.create(ry),g),s.bp(["_update","_onClose","remove","_onMouseEvent"],this),this._classList=new Set(g&&g.className?g.className.trim().split(/\s+/):[])}addTo(g){return this._map&&this.remove(),this._map=g,this.options.closeOnClick&&g.on("preclick",this._onClose),this.options.closeOnMove&&g.on("move",this._onClose),g.on("remove",this.remove),this._update(),g._addPopup(this),this._focusFirstElement(),this._trackPointer?(g.on("mousemove",this._onMouseEvent),g.on("mouseup",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")):g.on("move",this._update),this.fire(new s.f("open")),this}isOpen(){return!!this._map}remove(){this._content&&this._content.remove(),this._container&&(this._container.remove(),this._container=void 0);const g=this._map;return g&&(g.off("move",this._update),g.off("move",this._onClose),g.off("preclick",this._onClose),g.off("click",this._onClose),g.off("remove",this.remove),g.off("mousemove",this._onMouseEvent),g.off("mouseup",this._onMouseEvent),g.off("drag",this._onMouseEvent),g._canvasContainer&&g._canvasContainer.classList.remove("mapboxgl-track-pointer"),g._removePopup(this),this._map=void 0),this.fire(new s.f("close")),this}getLngLat(){return this._lngLat}setLngLat(g){this._lngLat=s.aI.convert(g),this._pos=null,this._trackPointer=!1,this._update();const l=this._map;return l&&(l.on("move",this._update),l.off("mousemove",this._onMouseEvent),l._canvasContainer.classList.remove("mapboxgl-track-pointer")),this}trackPointer(){this._trackPointer=!0,this._pos=null,this._update();const g=this._map;return g&&(g.off("move",this._update),g.on("mousemove",this._onMouseEvent),g.on("drag",this._onMouseEvent),g._canvasContainer.classList.add("mapboxgl-track-pointer")),this}getElement(){return this._container}setText(g){return this.setDOMContent(document.createTextNode(g))}setHTML(g){const l=document.createDocumentFragment(),d=document.createElement("body");let v;for(d.innerHTML=g;v=d.firstChild,v;)l.appendChild(v);return this.setDOMContent(l)}getMaxWidth(){return this._container&&this._container.style.maxWidth}setMaxWidth(g){return this.options.maxWidth=g,this._update(),this}setDOMContent(g){let l=this._content;if(l)for(;l.hasChildNodes();)l.firstChild&&l.removeChild(l.firstChild);else l=this._content=N("div","mapboxgl-popup-content",this._container||void 0);if(l.appendChild(g),this.options.closeButton){const d=this._closeButton=N("button","mapboxgl-popup-close-button",l);d.type="button",d.setAttribute("aria-label","Close popup"),d.setAttribute("aria-hidden","true"),d.innerHTML="×",d.addEventListener("click",this._onClose)}return this._update(),this._focusFirstElement(),this}addClassName(g){return this._classList.add(g),this._updateClassList(),this}removeClassName(g){return this._classList.delete(g),this._updateClassList(),this}setOffset(g){return this.options.offset=g,this._update(),this}toggleClassName(g){let l;return this._classList.delete(g)?l=!1:(this._classList.add(g),l=!0),this._updateClassList(),l}_onMouseEvent(g){this._update(g.point)}_getAnchor(g){if(this.options.anchor)return this.options.anchor;const l=this._map,d=this._container,v=this._pos;if(!l||!d||!v)return"bottom";const b=d.offsetWidth,w=d.offsetHeight,S=v.x<b/2,C=v.x>l.transform.width-b/2;if(v.y+g<w)return S?"top-left":C?"top-right":"top";if(v.y>l.transform.height-w){if(S)return"bottom-left";if(C)return"bottom-right"}return S?"left":C?"right":"bottom"}_updateClassList(){const g=this._container;if(!g)return;const l=[...this._classList];l.push("mapboxgl-popup"),this._anchor&&l.push(`mapboxgl-popup-anchor-${this._anchor}`),this._trackPointer&&l.push("mapboxgl-popup-track-pointer"),g.className=l.join(" ")}_update(g){const l=this._map,d=this._content;if(!l||!this._lngLat&&!this._trackPointer||!d)return;let v=this._container;if(v||(v=this._container=N("div","mapboxgl-popup",l.getContainer()),this._tip=N("div","mapboxgl-popup-tip",v),v.appendChild(d)),this.options.maxWidth&&v.style.maxWidth!==this.options.maxWidth&&(v.style.maxWidth=this.options.maxWidth),l.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=Pb(this._lngLat,this._pos,l.transform)),!this._trackPointer||g){const b=this._pos=this._trackPointer&&g instanceof s.P?g:l.project(this._lngLat),w=sy(this.options.offset),S=this._anchor=this._getAnchor(w.y),C=sy(this.options.offset,S),k=b.add(C).round();l._requestDomTask(()=>{this._container&&S&&(this._container.style.transform=`${ny[S]} translate(${k.x}px,${k.y}px)`)})}if(!this._marker&&l._showingGlobe()){const b=s.d9(l.transform,this._lngLat)?0:1;this._setOpacity(b)}this._updateClassList()}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;const g=this._container.querySelector(oy);g&&g.focus()}_onClose(){this.remove()}_setOpacity(g){this._container&&(this._container.style.opacity=`${g}`),this._content&&(this._content.style.pointerEvents=g?"auto":"none")}},Marker:iy,Style:Ks,LngLat:s.aI,LngLatBounds:s.ai,Point:s.P,MercatorCoordinate:s.Y,FreeCameraOptions:qM,Evented:s.E,config:s.d8,prewarm:s.dx,clearPrewarmedResources:s.dy,get accessToken(){return s.d8.ACCESS_TOKEN},set accessToken(g){s.d8.ACCESS_TOKEN=g},get baseApiUrl(){return s.d8.API_URL},set baseApiUrl(g){s.d8.API_URL=g},get workerCount(){return s.dz.workerCount},set workerCount(g){s.dz.workerCount=g},get maxParallelImageRequests(){return s.d8.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(g){s.d8.MAX_PARALLEL_IMAGE_REQUESTS=g},clearStorage(g){s.dA(g)},get workerUrl(){return s.dB.workerUrl},set workerUrl(g){s.dB.workerUrl=g},get workerClass(){return s.dB.workerClass},set workerClass(g){s.dB.workerClass=g},get workerParams(){return s.dB.workerParams},set workerParams(g){s.dB.workerParams=g},get dracoUrl(){return s.dC()},set dracoUrl(g){s.dD(g)},get meshoptUrl(){return s.dE()},set meshoptUrl(g){s.dF(g)},setNow:s.e.setNow,restoreNow:s.e.restoreNow}});var y=u;return y})})(L7);var rle=L7.exports;const z7=ef(rle),Jve="",exe="",D1=$n({key:"mapboxAccessToken",default:null});let t2;const ole=new Uint8Array(16);function sle(){if(!t2&&(t2=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t2))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t2(ole)}const Bo=[];for(let e=0;e<256;++e)Bo.push((e+256).toString(16).slice(1));function ale(e,t=0){return Bo[e[t+0]]+Bo[e[t+1]]+Bo[e[t+2]]+Bo[e[t+3]]+"-"+Bo[e[t+4]]+Bo[e[t+5]]+"-"+Bo[e[t+6]]+Bo[e[t+7]]+"-"+Bo[e[t+8]]+Bo[e[t+9]]+"-"+Bo[e[t+10]]+Bo[e[t+11]]+Bo[e[t+12]]+Bo[e[t+13]]+Bo[e[t+14]]+Bo[e[t+15]]}const k7={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function lle(e,t,r){if(k7.randomUUID&&!t&&!e)return k7.randomUUID();e=e||{};const a=e.random||(e.rng||sle)();if(a[6]=a[6]&15|64,a[8]=a[8]&63|128,t){r=r||0;for(let u=0;u<16;++u)t[r+u]=a[u];return t}return ale(a)}const O7=$n({key:"miTransitionLevel",default:void 0}),j7=$n({key:"showRoadNames",default:void 0});function n2(e){return e==null}const i2=$n({key:"solution",default:null,dangerouslyAllowMutability:!0}),cle=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"white",style:{fill:"white",fillOpacity:1}}),ke.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ule=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),ke.createElement("path",{d:"M12.3578 7.17895C12.2266 7.11336 12.161 7.08056 12.0922 7.06766C12.0313 7.05622 11.9687 7.05622 11.9078 7.06766C11.839 7.08056 11.7734 7.11336 11.6422 7.17895L2 12.0001L11.6422 16.8212C11.7734 16.8868 11.839 16.9196 11.9078 16.9325C11.9687 16.9439 12.0313 16.9439 12.0922 16.9325C12.161 16.9196 12.2266 16.8868 12.3578 16.8212L22 12.0001L12.3578 7.17895Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hle=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"white",style:{fill:"white",fillOpacity:1}}),ke.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),dle=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M12 12L21 7V16.0586C21 16.4012 21 16.5725 20.9495 16.7253C20.9049 16.8605 20.8318 16.9846 20.7354 17.0893C20.6263 17.2076 20.4766 17.2908 20.177 17.4572L12.777 21.5683C12.4934 21.7259 12.3516 21.8047 12.2015 21.8355C12.0685 21.8629 11.9315 21.8629 11.7986 21.8355C11.6484 21.8047 11.5066 21.7259 11.223 21.5683L3.82297 17.4572C3.52345 17.2908 3.37369 17.2076 3.26463 17.0893C3.16816 16.9846 3.09515 16.8605 3.05048 16.7253C3 16.5725 3 16.4012 3 16.0586V7L12 12Z",fill:"#6B7280",style:{fill:"#6B7280",fill:"color(display-p3 0.4196 0.4471 0.5020)",fillOpacity:1}}),ke.createElement("path",{d:"M20.5 7.27783L12 12.0001M12 12.0001L3.49997 7.27783M12 12.0001V21.5001M21 16.0586V7.94153C21 7.59889 21 7.42757 20.9495 7.27477C20.9049 7.13959 20.8318 7.01551 20.7354 6.91082C20.6263 6.79248 20.4766 6.70928 20.177 6.54288L12.777 2.43177C12.4934 2.27421 12.3516 2.19543 12.2015 2.16454C12.0685 2.13721 11.9315 2.13721 11.7986 2.16454C11.6484 2.19543 11.5066 2.27421 11.223 2.43177L3.82297 6.54288C3.52345 6.70928 3.37369 6.79248 3.26463 6.91082C3.16816 7.01551 3.09515 7.13959 3.05048 7.27477C3 7.42757 3 7.59889 3 7.94153V16.0586C3 16.4013 3 16.5726 3.05048 16.7254C3.09515 16.8606 3.16816 16.9847 3.26463 17.0893C3.37369 17.2077 3.52345 17.2909 3.82297 17.4573L11.223 21.5684C11.5066 21.726 11.6484 21.8047 11.7986 21.8356C11.9315 21.863 12.0685 21.863 12.2015 21.8356C12.3516 21.8047 12.4934 21.726 12.777 21.5684L20.177 17.4573C20.4766 17.2909 20.6263 17.2077 20.7354 17.0893C20.8318 16.9847 20.9049 16.8606 20.9495 16.7254C21 16.5726 21 16.4013 21 16.0586Z",stroke:"#6B7280",style:{stroke:"#6B7280",stroke:"color(display-p3 0.4196 0.4471 0.5020)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),DT=$n({key:"mapboxViewMode",default:null}),nxe="",Ho=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),R7=pT({key:"currentPitch",get:({get:e})=>{const t=e(gp),r=e(DT);let a;switch(r){case Ho.initial3D:a=t??45;break;case Ho.clicked3D:a=45;break;case Ho.clicked2D:a=0;break;default:a=t}return a}});function fle({mapView:e}){const t=Zt(i2),r=Zt(ca),[a,u]=vn(DT),[p,y]=ke.useState(!1),s=Zt(R7);return ke.useEffect(()=>{["mapbox","3dwalls","floorplan"].every(_=>t.modules.map(T=>T.toLowerCase()).includes(_))&&(y(!0),u(Ho.initial3D))},[t]),ke.useEffect(()=>{if(e!=null&&e.isReady&&p)switch(a===null&&u(Ho.initial3D),a){case Ho.clicked2D:e.tilt(0,2e3),e.hideFeatures([e.FeatureType.MODEL3D,e.FeatureType.WALLS3D,e.FeatureType.EXTRUSION3D,e.FeatureType.EXTRUDEDBUILDINGS]);break;case Ho.initial3D:e.tilt(s,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break;case Ho.clicked3D:e.tilt(45,2e3),e.hideFeatures([e.FeatureType.MODEL2D,e.FeatureType.WALLS2D]);break}},[e==null?void 0:e.isReady,a,p]),tt.jsx(tt.Fragment,{children:p&&tt.jsxs("div",{className:"view-mode-switch",children:[tt.jsx("button",{className:"view-mode-switch__button",onClick:()=>u(Ho.clicked2D),style:{backgroundColor:a===Ho.clicked2D?r:"white"},children:a===Ho.clicked2D?tt.jsx(cle,{}):tt.jsx(ule,{})}),tt.jsx("button",{className:"view-mode-switch__button",onClick:()=>u(Ho.clicked3D),style:{backgroundColor:[Ho.initial3D,Ho.clicked3D].includes(a)?r:"white"},children:[Ho.initial3D,Ho.clicked3D].includes(a)?tt.jsx(hle,{}):tt.jsx(dle,{})})]})})}function ple({onMapView:e,onPositionControl:t}){const r=Zt(D1),[a,u]=ke.useState(),[p,y]=ke.useState(!1),[s,_]=ke.useState(!1),[T,D]=ke.useState(!1),L=Zt(ws),N=Zt(ca),O=Zt(E1),R=Zt(gp),F=sc(),K=Zt(O7),Y=Zt(j7);return ke.useEffect(()=>{window.mapboxgl=z7;const H={accessToken:r,element:document.getElementById("map"),bearing:isNaN(parseInt(O))?0:parseInt(O),pitch:isNaN(parseInt(R))?0:parseInt(R),center:{lat:0,lng:0},zoom:15};K&&!isNaN(parseInt(K))&&(H.mapsIndoorsTransitionLevel=parseInt(K)),n2(Y)||(H.showRoadNameLabels=Y);const Z=new window.mapsindoors.mapView.MapboxV3View(H);u(Z);const J=new window.mapsindoors.directions.MapboxProvider(r);e(Z,J);const ce=lle();sessionStorage.setItem("mapboxPlacesSessionToken",ce)},[]),ke.useEffect(()=>{if(L&&a&&!s){const H=document.createElement("mi-my-position");H.mapsindoors=L,a.getMap().addControl({onAdd:()=>H,onRemove:function(){}},"top-right"),_(!0),t(H)}if(L&&a&&!T&&F&&(a.getMap().addControl(new z7.NavigationControl({showCompass:!1}),"top-right"),D(!0)),L&&a&&!p){const H=document.createElement("mi-floor-selector");H.mapsindoors=L,H.primaryColor=N,a.getMap().addControl({onAdd:()=>H,onRemove:function(){H.parentNode.removeChild(H)}},"top-right"),y(!0)}},[L,a,p,s,T]),tt.jsx("div",{className:"map-container",id:"map","data-sentry-component":"MapboxMap","data-sentry-source-file":"MapboxMap.jsx",children:tt.jsx(fle,{mapView:a,"data-sentry-element":"ViewModeSwitch","data-sentry-source-file":"MapboxMap.jsx"})})}const r2=$n({key:"userPosition",default:null}),CT=$n({key:"directionsService",default:null}),AT=$n({key:"mapType",default:void 0}),NT=$n({key:"apiKey",default:null}),o2=$n({key:"filteredLocations",default:void 0}),s2=$n({key:"filteredLocationsByExternalID",default:void 0}),P7=$n({key:"tileStyle",default:null}),U7=$n({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),LT=$n({key:"notificationMessage",default:null});var Is=63710088e-1,mle={centimeters:Is*100,centimetres:Is*100,degrees:Is/111325,feet:Is*3.28084,inches:Is*39.37,kilometers:Is/1e3,kilometres:Is/1e3,meters:Is,metres:Is,miles:Is/1609.344,millimeters:Is*1e3,millimetres:Is*1e3,nauticalmiles:Is/1852,radians:1,yards:Is*1.0936};function B7(e,t,r){r===void 0&&(r={});var a={type:"Feature"};return(r.id===0||r.id)&&(a.id=r.id),r.bbox&&(a.bbox=r.bbox),a.properties=t||{},a.geometry=e,a}function gle(e,t,r){if(r===void 0&&(r={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!V7(e[0])||!V7(e[1]))throw new Error("coordinates must contain numbers");var a={type:"Point",coordinates:e};return B7(a,t,r)}function yle(e,t,r){r===void 0&&(r={});for(var a=0,u=e;a<u.length;a++){var p=u[a];if(p.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var y=0;y<p[p.length-1].length;y++)if(p[p.length-1][y]!==p[0][y])throw new Error("First and last Position are not equivalent.")}var s={type:"Polygon",coordinates:e};return B7(s,t,r)}function _le(e,t){t===void 0&&(t="kilometers");var r=mle[t];if(!r)throw new Error(t+" units is invalid");return e/r}function F7(e){var t=e%(2*Math.PI);return t*180/Math.PI}function zT(e){var t=e%360;return t*Math.PI/180}function V7(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function $7(e,t,r){if(e!==null)for(var a,u,p,y,s,_,T,D=0,L=0,N,O=e.type,R=O==="FeatureCollection",F=O==="Feature",K=R?e.features.length:1,Y=0;Y<K;Y++){T=R?e.features[Y].geometry:F?e.geometry:e,N=T?T.type==="GeometryCollection":!1,s=N?T.geometries.length:1;for(var H=0;H<s;H++){var Z=0,J=0;if(y=N?T.geometries[H]:T,y!==null){_=y.coordinates;var ce=y.type;switch(D=r&&(ce==="Polygon"||ce==="MultiPolygon")?1:0,ce){case null:break;case"Point":if(t(_,L,Y,Z,J)===!1)return!1;L++,Z++;break;case"LineString":case"MultiPoint":for(a=0;a<_.length;a++){if(t(_[a],L,Y,Z,J)===!1)return!1;L++,ce==="MultiPoint"&&Z++}ce==="LineString"&&Z++;break;case"Polygon":case"MultiLineString":for(a=0;a<_.length;a++){for(u=0;u<_[a].length-D;u++){if(t(_[a][u],L,Y,Z,J)===!1)return!1;L++}ce==="MultiLineString"&&Z++,ce==="Polygon"&&J++}ce==="Polygon"&&Z++;break;case"MultiPolygon":for(a=0;a<_.length;a++){for(J=0,u=0;u<_[a].length;u++){for(p=0;p<_[a][u].length-D;p++){if(t(_[a][u][p],L,Y,Z,J)===!1)return!1;L++}J++}Z++}break;case"GeometryCollection":for(a=0;a<y.geometries.length;a++)if($7(y.geometries[a],t,r)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function a2(e){var t=[1/0,1/0,-1/0,-1/0];return $7(e,function(r){t[0]>r[0]&&(t[0]=r[0]),t[1]>r[1]&&(t[1]=r[1]),t[2]<r[0]&&(t[2]=r[0]),t[3]<r[1]&&(t[3]=r[1])}),t}a2.default=a2;function vle(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function xle(e,t,r,a){a===void 0&&(a={});var u=vle(e),p=zT(u[0]),y=zT(u[1]),s=zT(r),_=_le(t,a.units),T=Math.asin(Math.sin(y)*Math.cos(_)+Math.cos(y)*Math.sin(_)*Math.cos(s)),D=p+Math.atan2(Math.sin(s)*Math.sin(_)*Math.cos(y),Math.cos(_)-Math.sin(y)*Math.sin(T)),L=F7(D),N=F7(T);return gle([L,N],a.properties)}function Mle(e,t,r){r===void 0&&(r={});for(var a=r.steps||64,u=r.properties?r.properties:!Array.isArray(e)&&e.type==="Feature"&&e.properties?e.properties:{},p=[],y=0;y<a;y++)p.push(xle(e,t,y*-360/a,r).geometry.coordinates);return p.push(p[0]),yle([p],u)}function Q7(e){return(e==null?void 0:e.type)==="Point"?a2(Mle(e,5,{units:"meters",steps:4})):a2(e)}function kT(){return new Promise(e=>{const t=document.querySelector(".modal--open"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-(t==null?void 0:t.offsetTop));else{const a=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(a.disconnect(),e(r.offsetHeight-(u==null?void 0:u.offsetTop)))});a.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const yp=$n({key:"categories",default:[]}),H7=$n({key:"kioskOriginLocationId",default:void 0}),l2=$n({key:"locationId",default:void 0}),Y7=$n({key:"startZoomLevel",default:null}),_p=$n({key:"currentVenueName",default:null}),C1=$n({key:"venues",default:[]}),OT=$n({key:"venueWasSelected",default:!1});function G7(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),r=document.querySelector(".mapsindoors-map");if(t)e(r.offsetHeight-t.offsetTop);else{const a=new MutationObserver(()=>{const u=document.querySelector(".sheet--active");u&&(a.disconnect(),e(r.offsetHeight-u.offsetTop))});a.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function jT(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const r=new MutationObserver(()=>{const a=document.querySelector(".modal--open");a&&(r.disconnect(),e((a==null?void 0:a.offsetWidth)+(a==null?void 0:a.offsetLeft)*2))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const RT=$n({key:"isMapReady",default:!1}),Z7=$n({key:"timeout",default:void 0});function W7(){const[e,t]=ke.useState(!1),r=Zt(RT),a=Zt(Z7);return ke.useEffect(()=>{if(!r||!a)return;let u;const p=s=>{t(!1),window.clearTimeout(u),u=window.setTimeout(y,a*1e3)},y=()=>{t(!0)};return u=window.setTimeout(y,a*1e3),window.addEventListener("mousemove",p),window.addEventListener("mousedown",p),window.addEventListener("resize",p),window.addEventListener("keydown",p),window.addEventListener("touchstart",p),window.addEventListener("wheel",p),()=>{window.removeEventListener("mousemove",p),window.removeEventListener("mousedown",p),window.removeEventListener("resize",p),window.removeEventListener("keydown",p),window.removeEventListener("touchstart",p),window.removeEventListener("wheel",p),window.clearTimeout(u)}},[a,r]),e}const ble=()=>{const[e,t]=ke.useState(!1),[r,a]=ke.useState(!1),u=sc(),p=W7(),y=Zt(E1),s=Zt(yp),_=Zt(H7),T=Zt(l2),D=Zt(AT),L=Zt(ws),N=Zt(gp),O=Zt(Y7),R=Zt(_p),F=Zt(C1),K=Zt(R7),Y=Zt(OT),[H,Z]=ke.useState(!1);ke.useEffect(()=>{p&&J()},[p]),ke.useEffect(()=>{J()},[L,R,T,_,N,y,O,s]);function J(){const pe=F.find(fe=>fe.name.toLowerCase()===R.toLowerCase());L&&pe&&(t(!0),_&&u?window.mapsindoors.services.LocationsService.getLocation(_).then(fe=>{if(fe){const be=fe.properties.floor;L.setFloor(be),ce(fe),kT().then(He=>{a(fe.geometry),c2(D,fe.geometry,L,He,0,O,K,y)})}}):T&&!Y?window.mapsindoors.services.LocationsService.getLocation(T).then(fe=>{if(fe){const be=fe.properties.floor;L.setFloor(be),u?jT().then(He=>{a(fe.geometry),c2(D,fe.geometry,L,0,He,O,K,y)}):G7().then(He=>{a(fe.geometry),c2(D,fe.geometry,L,He,0,O,K,y)})}}):pe&&(a(pe.geometry),c2(D,pe.geometry,L,0,0,O,K,y)))}function ce(pe){if(H)return;const fe=L.getDisplayRule(pe);fe.visible=!0,fe.iconSize={width:fe.iconSize.width*2,height:fe.iconSize.height*2},fe.iconVisible=!0,fe.zoomFrom=0,fe.zoomTo=999,fe.clickable=!1,L.setDisplayRule(pe.id,fe),Z(!0)}return[e,r]};function c2(e,t,r,a,u,p,y,s){let _;t.coordinates&&t.type?_=Q7(t):t.west&&t.south&&(_=[t.west,t.south,t.east,t.north]),e===cs.Google?Ile(_,r,a,u,p,y,s):e===cs.Mapbox&&wle(_,r,a,u,p,y,s)}function wle(e,t,r,a,u,p,y){t.getMap().fitBounds(e,{pitch:p||0,bearing:y||0,animate:!1,padding:{top:0,right:0,bottom:r,left:a}}),u&&t.setZoom(u)}function Ile(e,t,r,a,u,p,y){let s={west:e[0],south:e[1],east:e[2],north:e[3]};t.getMapView().fitBounds(s,{top:0,right:0,bottom:r,left:a}),u&&t.setZoom(parseInt(u)),isNaN(parseInt(p))||t.getMapView().tilt(parseInt(p)),isNaN(parseInt(y))||t.getMapView().rotate(parseInt(y))}const q7=$n({key:"hideNonMatches",default:!1});let PT;function Tle({onLocationClick:e,onMapPositionKnown:t,useMapProviderModule:r,onMapPositionInvestigating:a}){const u=Zt(NT),p=Zt(e2),y=Zt(D1),[s,_]=vn(AT),[T,D]=vn(ws),[,L]=vn(r2),[,N]=vn(CT),O=Zt(o2),R=Zt(s2),F=Zt(P7),K=Zt(E1),Y=Zt(gp),[,H]=vn(U7),Z=Zt(i2),[,J]=vn(LT),ce=Zt(q7);ele(u);const[pe,fe]=ble();ke.useEffect(()=>{if(!Z||p===null&&y===null)return;let $e;const lt=Z.modules.map(ct=>ct.toLowerCase()).includes("mapbox");r?lt?y&&($e=cs.Mapbox):p&&($e=cs.Google):y?$e=cs.Mapbox:$e=cs.Google,$e?_($e):(J({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),_(void 0))},[p,y,Z]),ke.useEffect(()=>{pe&&a()},[pe]),ke.useEffect(()=>{fe&&t()},[fe]),ke.useEffect(()=>{if(!T)return;const $e=O||R;if(!$e)return;const lt=$e.map(ct=>ct.id);ce||!T.highlight?T.filter(lt):T.highlight(lt)},[O,R,T,ce]),ke.useEffect(()=>{T&&(isNaN(parseInt(Y))||T.getMapView().tilt(parseInt(Y)),isNaN(parseInt(K))||T.getMapView().rotate(parseInt(K)))},[K,Y,T]);const be=$e=>{He($e)},He=$e=>{if($e&&PT){let lt=$e.getTileURL();if(lt){lt=$e.getTileURL().replace("default",PT);const ct=lt==null?void 0:lt.replace("{floor}",$e.getFloor());$e.getMapView().setMapsIndoorsTileURL(ct)}}},Ce=async($e,lt)=>{const ct=new window.mapsindoors.MapsIndoors({mapView:$e});ct.on("mouseenter",()=>{var Qe;const rt=ct.getHoveredLocation();((Qe=rt==null?void 0:rt.properties.locationSettings)==null?void 0:Qe.selectable)===!1&&ct.unhoverLocation()}),ct.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),ct.on("click",rt=>e(rt)),ct.once("building_changed",()=>be(ct)),ct.on("floor_changed",()=>He(ct)),D(ct),window.mapsIndoorsInstance=ct;const Je=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(Je);const Oe=new window.mapsindoors.services.DirectionsService(lt);N(Oe)},qe=$e=>{$e.nodeName==="MI-MY-POSITION"?$e.addEventListener("position_received",lt=>{lt.detail.accurate===!0&&L(lt.detail.position)}):$e.on("position_received",lt=>{lt.accurate===!0&&L(lt.position)}),H($e)};return ke.useEffect(()=>{PT=F||"default",He(T)},[F]),tt.jsxs(tt.Fragment,{children:[s===cs.Google&&tt.jsx(ile,{onMapView:Ce,onPositionControl:qe}),s===cs.Mapbox&&tt.jsx(ple,{onMapView:Ce,onPositionControl:qe})]})}const ixe="",UT=$n({key:"logo",default:void 0});function Sle(){const e=Zt(ca),t=Zt(UT);return tt.jsx("div",{className:"splash-screen","data-sentry-component":"SplashScreen","data-sentry-source-file":"SplashScreen.jsx",children:tt.jsxs("div",{className:"splash-screen__container",children:[tt.jsx("img",{className:"splash-screen__logo",src:t,alt:"logo"}),tt.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}const Ele=QJ(Sle,{name:"SplashScreen"});function K7(e,t){if(e==null)return{};var r={},a=Object.keys(e),u,p;for(p=0;p<a.length;p++)u=a[p],!(t.indexOf(u)>=0)&&(r[u]=e[u]);return r}function BT(e,t){return BT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,u){return a.__proto__=u,a},BT(e,t)}function X7(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,BT(e,t)}function Dle(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Cle(e,t){e.classList?e.classList.add(t):Dle(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function J7(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function Ale(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=J7(e.className,t):e.setAttribute("class",J7(e.className&&e.className.baseVal||"",t))}const ej={disabled:!1},tj=Pi.createContext(null);var nj=function(t){return t.scrollTop},A1="unmounted",Jh="exited",ed="entering",vp="entered",FT="exiting",ac=function(e){X7(t,e);function t(a,u){var p;p=e.call(this,a,u)||this;var y=u,s=y&&!y.isMounting?a.enter:a.appear,_;return p.appearStatus=null,a.in?s?(_=Jh,p.appearStatus=ed):_=vp:a.unmountOnExit||a.mountOnEnter?_=A1:_=Jh,p.state={status:_},p.nextCallback=null,p}t.getDerivedStateFromProps=function(u,p){var y=u.in;return y&&p.status===A1?{status:Jh}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(u){var p=null;if(u!==this.props){var y=this.state.status;this.props.in?y!==ed&&y!==vp&&(p=ed):(y===ed||y===vp)&&(p=FT)}this.updateStatus(!1,p)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var u=this.props.timeout,p,y,s;return p=y=s=u,u!=null&&typeof u!="number"&&(p=u.exit,y=u.enter,s=u.appear!==void 0?u.appear:y),{exit:p,enter:y,appear:s}},r.updateStatus=function(u,p){if(u===void 0&&(u=!1),p!==null)if(this.cancelNextCallback(),p===ed){if(this.props.unmountOnExit||this.props.mountOnEnter){var y=this.props.nodeRef?this.props.nodeRef.current:Rg.findDOMNode(this);y&&nj(y)}this.performEnter(u)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jh&&this.setState({status:A1})},r.performEnter=function(u){var p=this,y=this.props.enter,s=this.context?this.context.isMounting:u,_=this.props.nodeRef?[s]:[Rg.findDOMNode(this),s],T=_[0],D=_[1],L=this.getTimeouts(),N=s?L.appear:L.enter;if(!u&&!y||ej.disabled){this.safeSetState({status:vp},function(){p.props.onEntered(T)});return}this.props.onEnter(T,D),this.safeSetState({status:ed},function(){p.props.onEntering(T,D),p.onTransitionEnd(N,function(){p.safeSetState({status:vp},function(){p.props.onEntered(T,D)})})})},r.performExit=function(){var u=this,p=this.props.exit,y=this.getTimeouts(),s=this.props.nodeRef?void 0:Rg.findDOMNode(this);if(!p||ej.disabled){this.safeSetState({status:Jh},function(){u.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:FT},function(){u.props.onExiting(s),u.onTransitionEnd(y.exit,function(){u.safeSetState({status:Jh},function(){u.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(u,p){p=this.setNextCallback(p),this.setState(u,p)},r.setNextCallback=function(u){var p=this,y=!0;return this.nextCallback=function(s){y&&(y=!1,p.nextCallback=null,u(s))},this.nextCallback.cancel=function(){y=!1},this.nextCallback},r.onTransitionEnd=function(u,p){this.setNextCallback(p);var y=this.props.nodeRef?this.props.nodeRef.current:Rg.findDOMNode(this),s=u==null&&!this.props.addEndListener;if(!y||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var _=this.props.nodeRef?[this.nextCallback]:[y,this.nextCallback],T=_[0],D=_[1];this.props.addEndListener(T,D)}u!=null&&setTimeout(this.nextCallback,u)},r.render=function(){var u=this.state.status;if(u===A1)return null;var p=this.props,y=p.children;p.in,p.mountOnEnter,p.unmountOnExit,p.appear,p.enter,p.exit,p.timeout,p.addEndListener,p.onEnter,p.onEntering,p.onEntered,p.onExit,p.onExiting,p.onExited,p.nodeRef;var s=K7(p,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Pi.createElement(tj.Provider,{value:null},typeof y=="function"?y(u,s):Pi.cloneElement(Pi.Children.only(y),s))},t}(Pi.Component);ac.contextType=tj,ac.propTypes={};function xp(){}ac.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xp,onEntering:xp,onEntered:xp,onExit:xp,onExiting:xp,onExited:xp},ac.UNMOUNTED=A1,ac.EXITED=Jh,ac.ENTERING=ed,ac.ENTERED=vp,ac.EXITING=FT;const Nle=ac;var Lle=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return Cle(t,a)})},VT=function(t,r){return t&&r&&r.split(" ").forEach(function(a){return Ale(t,a)})},$T=function(e){X7(t,e);function t(){for(var a,u=arguments.length,p=new Array(u),y=0;y<u;y++)p[y]=arguments[y];return a=e.call.apply(e,[this].concat(p))||this,a.appliedClasses={appear:{},enter:{},exit:{}},a.onEnter=function(s,_){var T=a.resolveArguments(s,_),D=T[0],L=T[1];a.removeClasses(D,"exit"),a.addClass(D,L?"appear":"enter","base"),a.props.onEnter&&a.props.onEnter(s,_)},a.onEntering=function(s,_){var T=a.resolveArguments(s,_),D=T[0],L=T[1],N=L?"appear":"enter";a.addClass(D,N,"active"),a.props.onEntering&&a.props.onEntering(s,_)},a.onEntered=function(s,_){var T=a.resolveArguments(s,_),D=T[0],L=T[1],N=L?"appear":"enter";a.removeClasses(D,N),a.addClass(D,N,"done"),a.props.onEntered&&a.props.onEntered(s,_)},a.onExit=function(s){var _=a.resolveArguments(s),T=_[0];a.removeClasses(T,"appear"),a.removeClasses(T,"enter"),a.addClass(T,"exit","base"),a.props.onExit&&a.props.onExit(s)},a.onExiting=function(s){var _=a.resolveArguments(s),T=_[0];a.addClass(T,"exit","active"),a.props.onExiting&&a.props.onExiting(s)},a.onExited=function(s){var _=a.resolveArguments(s),T=_[0];a.removeClasses(T,"exit"),a.addClass(T,"exit","done"),a.props.onExited&&a.props.onExited(s)},a.resolveArguments=function(s,_){return a.props.nodeRef?[a.props.nodeRef.current,s]:[s,_]},a.getClassNames=function(s){var _=a.props.classNames,T=typeof _=="string",D=T&&_?_+"-":"",L=T?""+D+s:_[s],N=T?L+"-active":_[s+"Active"],O=T?L+"-done":_[s+"Done"];return{baseClassName:L,activeClassName:N,doneClassName:O}},a}var r=t.prototype;return r.addClass=function(u,p,y){var s=this.getClassNames(p)[y+"ClassName"],_=this.getClassNames("enter"),T=_.doneClassName;p==="appear"&&y==="done"&&T&&(s+=" "+T),y==="active"&&u&&nj(u),s&&(this.appliedClasses[p][y]=s,Lle(u,s))},r.removeClasses=function(u,p){var y=this.appliedClasses[p],s=y.base,_=y.active,T=y.done;this.appliedClasses[p]={},s&&VT(u,s),_&&VT(u,_),T&&VT(u,T)},r.render=function(){var u=this.props;u.classNames;var p=K7(u,["classNames"]);return Pi.createElement(Nle,TT({},p,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Pi.Component);$T.defaultProps={classNames:""},$T.propTypes={};const zle=$T,rxe="",kle=e=>ke.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),u2=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ke.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),oxe="";function Ole({venue:e,isCurrent:t,onVenueClicked:r}){const{t:a}=la(),[u,p]=ke.useState({});return ke.useEffect(()=>{const y={};e.image&&(y.backgroundImage=`url('${e.image}')`),p(y)},[e]),tt.jsxs("button",{className:"venue",onClick:()=>r(),"data-sentry-component":"Venue","data-sentry-source-file":"Venue.jsx",children:[tt.jsx("div",{className:"venue__image",style:u}),tt.jsxs("div",{className:"venue__content",children:[tt.jsx("div",{children:e.venueInfo.name}),t&&tt.jsx("div",{className:"venue__current",children:a("Current")})]})]})}const QT=$n({key:"isLocationClicked",default:!1});function jle({onOpen:e,onClose:t,active:r}){const{t:a}=la(),u=ke.useRef(null),p=Zt(C1),[,y]=vn(OT),[s,_]=vn(_p),[,T]=vn(QT),D=O=>{y(!0),_(O.name),L()},L=()=>{r?t():e()};function N(O){D(O),T(!1)}return tt.jsxs(tt.Fragment,{children:[tt.jsx("button",{className:`venue-selector__button ${r?"venue-selector__button--open":""}`,onClick:()=>L(),"aria-label":a("Venues"),children:r?tt.jsx(u2,{}):tt.jsx(kle,{})}),tt.jsx(zle,{unmountOnExit:!0,in:r,nodeRef:u,timeout:400,classNames:"venue-selector__content","data-sentry-element":"CSSTransition","data-sentry-source-file":"VenueSelector.jsx",children:tt.jsxs("div",{className:"venue-selector__content",ref:u,children:[tt.jsx("h1",{children:a("Select venue")}),tt.jsx("div",{className:"venue-selector__list",children:p.map(O=>tt.jsx(Ole,{isCurrent:(s==null?void 0:s.toLowerCase())===O.name.toLowerCase(),venue:O,onVenueClicked:()=>N(O)},O.id))})]})})]})}const ij=ke.createContext(),Tu=$n({key:"currentLocation",default:null}),Rle="Left",Ple="Right",Ule="Up",Ble="Down",Mp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},HT={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},rj="mousemove",oj="mouseup",Fle="touchend",Vle="touchmove",$le="touchstart";function Qle(e,t,r,a){return e>t?r>0?Ple:Rle:a>0?Ble:Ule}function sj(e,t){if(t===0)return e;const r=Math.PI/180*t,a=e[0]*Math.cos(r)+e[1]*Math.sin(r),u=e[1]*Math.cos(r)-e[0]*Math.sin(r);return[a,u]}function Hle(e,t){const r=D=>{const L="touches"in D;L&&D.touches.length>1||e((N,O)=>{O.trackMouse&&!L&&(document.addEventListener(rj,a),document.addEventListener(oj,y));const{clientX:R,clientY:F}=L?D.touches[0]:D,K=sj([R,F],O.rotationAngle);return O.onTouchStartOrOnMouseDown&&O.onTouchStartOrOnMouseDown({event:D}),Object.assign(Object.assign(Object.assign({},N),HT),{initial:K.slice(),xy:K,start:D.timeStamp||0})})},a=D=>{e((L,N)=>{const O="touches"in D;if(O&&D.touches.length>1)return L;if(D.timeStamp-L.start>N.swipeDuration)return L.swiping?Object.assign(Object.assign({},L),{swiping:!1}):L;const{clientX:R,clientY:F}=O?D.touches[0]:D,[K,Y]=sj([R,F],N.rotationAngle),H=K-L.xy[0],Z=Y-L.xy[1],J=Math.abs(H),ce=Math.abs(Z),pe=(D.timeStamp||0)-L.start,fe=Math.sqrt(J*J+ce*ce)/(pe||1),be=[H/(pe||1),Z/(pe||1)],He=Qle(J,ce,H,Z),Ce=typeof N.delta=="number"?N.delta:N.delta[He.toLowerCase()]||Mp.delta;if(J<Ce&&ce<Ce&&!L.swiping)return L;const qe={absX:J,absY:ce,deltaX:H,deltaY:Z,dir:He,event:D,first:L.first,initial:L.initial,velocity:fe,vxvy:be};qe.first&&N.onSwipeStart&&N.onSwipeStart(qe),N.onSwiping&&N.onSwiping(qe);let $e=!1;return(N.onSwiping||N.onSwiped||N[`onSwiped${He}`])&&($e=!0),$e&&N.preventScrollOnSwipe&&N.trackTouch&&D.cancelable&&D.preventDefault(),Object.assign(Object.assign({},L),{first:!1,eventData:qe,swiping:!0})})},u=D=>{e((L,N)=>{let O;if(L.swiping&&L.eventData){if(D.timeStamp-L.start<N.swipeDuration){O=Object.assign(Object.assign({},L.eventData),{event:D}),N.onSwiped&&N.onSwiped(O);const R=N[`onSwiped${O.dir}`];R&&R(O)}}else N.onTap&&N.onTap({event:D});return N.onTouchEndOrOnMouseUp&&N.onTouchEndOrOnMouseUp({event:D}),Object.assign(Object.assign(Object.assign({},L),HT),{eventData:O})})},p=()=>{document.removeEventListener(rj,a),document.removeEventListener(oj,y)},y=D=>{p(),u(D)},s=(D,L)=>{let N=()=>{};if(D&&D.addEventListener){const O=Object.assign(Object.assign({},Mp.touchEventOptions),L.touchEventOptions),R=[[$le,r,O],[Vle,a,Object.assign(Object.assign({},O),L.preventScrollOnSwipe?{passive:!1}:{})],[Fle,u,O]];R.forEach(([F,K,Y])=>D.addEventListener(F,K,Y)),N=()=>R.forEach(([F,K])=>D.removeEventListener(F,K))}return N},T={ref:D=>{D!==null&&e((L,N)=>{if(L.el===D)return L;const O={};return L.el&&L.el!==D&&L.cleanUpTouch&&(L.cleanUpTouch(),O.cleanUpTouch=void 0),N.trackTouch&&D&&(O.cleanUpTouch=s(D,N)),Object.assign(Object.assign(Object.assign({},L),{el:D}),O)})}};return t.trackMouse&&(T.onMouseDown=r),[T,s]}function Yle(e,t,r,a){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==r.preventScrollOnSwipe||t.touchEventOptions.passive!==r.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:a(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:a(e.el,t)})}function aj(e){const{trackMouse:t}=e,r=ke.useRef(Object.assign({},HT)),a=ke.useRef(Object.assign({},Mp)),u=ke.useRef(Object.assign({},a.current));u.current=Object.assign({},a.current),a.current=Object.assign(Object.assign({},Mp),e);let p;for(p in Mp)a.current[p]===void 0&&(a.current[p]=Mp[p]);const[y,s]=ke.useMemo(()=>Hle(_=>r.current=_(r.current,a.current),{trackMouse:t}),[t]);return r.current=Yle(r.current,a.current,u.current,s),y}const wr={MIN:1,FIT:2,MAX:3},sxe="",lj=$n({key:"isBottomSheetLoaded",default:!1});let YT;function N1({children:e,isOpen:t,minHeight:r,preferredSizeSnapPoint:a,onSwipedToSnapPoint:u}){const p=ke.useRef(),y=ke.useRef(),[s,_]=ke.useState(wr.FIT),[T,D]=ke.useState(!1),[L,N]=ke.useState(),O=ke.useContext(ij),[R,F]=ke.useState(),[K,Y]=ke.useState({}),[,H]=vn(lj);function Z(pe){pe===wr.MIN&&R<=r||(s===wr.FIT&&(p.current.style.height=`${R}px`),requestAnimationFrame(()=>{switch(pe){case wr.MAX:Y({height:`${O.current.clientHeight}px`});break;case wr.FIT:Y({height:`${R}px`});break;case wr.MIN:Y({height:`${r}px`});break}_(pe)}),typeof u=="function"&&p.current.addEventListener("transitionend",()=>{u(pe)},{once:!0}))}ke.useEffect(()=>{p.current.addEventListener("transitionend",()=>{H(!0)},{once:!0})},[]),ke.useEffect(()=>{a!==void 0&&(p.current.style.height=`${p.current.clientHeight}px`,requestAnimationFrame(()=>{Z(a)}))},[a]);const J=aj({onSwipeStart:pe=>{D(!0),N(pe.dir),YT=p.current.clientHeight},onSwiping:pe=>{const fe=Math.max(YT-pe.deltaY,r);Y({height:`${fe}px`})},onSwiped:pe=>{D(!1);const fe=Math.max(YT-pe.deltaY,r);let be,He;L.toUpperCase()==="DOWN"?(be=R-60,He=O.current.clientHeight-60):(be=parseInt(r)+60,He=R+60);let Ce;fe<=be?Ce=wr.MIN:fe<=He?Ce=wr.FIT:Ce=wr.MAX,Z(Ce)},trackMouse:!0,preventScrollOnSwipe:!0});ke.useEffect(()=>{t===!1?(F(),p.current.style.height=""):F(y.current.clientHeight)},[e.length,t]);const ce=pe=>{J.ref(pe),p.current=pe};return tt.jsx("div",{...J,ref:ce,style:K,className:`sheet ${t?"sheet--active":""} ${T?"sheet--dragging":""}`,"data-sentry-component":"Sheet","data-sentry-source-file":"Sheet.jsx",children:tt.jsx("div",{ref:y,className:"sheet__content",style:K,children:e})})}const axe="",lxe="",Gle=(e,t)=>{const[r,a]=ke.useState(void 0),[u,p]=ke.useState(void 0);return ke.useEffect(()=>{const y=(s=!1)=>{var T,D;const _=((T=t.current)==null?void 0:T.scrollHeight)>((D=t.current)==null?void 0:D.clientHeight);a(_),s===!0&&p(_)};y(!0),t.current&&new ResizeObserver(y).observe(t.current)},[e,t]),[r,u]},bp=()=>aj({onSwiping:({event:e})=>e.stopPropagation()});function cj(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const h2=$n({key:"directionsResponse",default:null}),GT=$n({key:"hasFoundRoute",default:!0}),uj=(e,t,r,a,u)=>{const[p,y]=ke.useState(),[s,_]=ke.useState(),[T,D]=vn(GT),[,L]=vn(h2),[N,O]=ke.useState();return ke.useEffect(()=>{O(!1),e!=null&&e.geometry&&(t!=null&&t.geometry)&&r.getRoute({origin:cj(e),destination:cj(t),travelMode:a,avoidStairs:u}).then(R=>{if(R&&R.legs){const F=R.legs.reduce((Y,H)=>Y+H.distance.value,0),K=R.legs.reduce((Y,H)=>Y+H.duration.value,0);y(F),_(K),L({originLocation:e,destinationLocation:t,totalDistance:F,totalTime:K,directionsResult:R}),O(!0)}else D(!1)},()=>{D(!1)})},[e,t,r,u,a]),[p,s,T,N]},td={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},d2=$n({key:"travelMode",default:td.WALKING}),lc=$n({key:"kioskLocation",default:null}),f2=$n({key:"accessibilityOn",default:!1}),p2=$n({key:"showExternalIDs",default:!1});function hj({onBack:e,onStartWayfinding:t,onSetSize:r,snapPointSwiped:a,onStartDirections:u}){const{t:p}=la(),y=ke.useRef(null),s=ke.useRef(null),_=ke.useRef(null),[T,D]=ke.useState(!1),[L,N]=ke.useState(!1),[O,R]=ke.useState(!1),[F,K]=ke.useState(null),Y=Zt(ws),H=Zt(Tu),[Z,J]=Gle(H,_),ce=bp(),pe=Zt(ca),fe=Zt(lc),be=Zt(CT),[He,Ce]=ke.useState(),[qe,$e]=ke.useState(),lt=sc(),ct=Zt(d2),Je=Zt(f2),[,,Oe]=uj(qe,He,be,ct,Je),rt=Zt(p2);ke.useEffect(()=>{D(!1),N(!1),R(!1),K(null),H&&(y.current.location=H,K(Y.getDisplayRule(H)),Ce(H)),fe&&$e(fe)},[H,Y,fe]);function Qe(Ge){typeof r=="function"&&r(Ge)}ke.useEffect(()=>{a!==void 0&&(D(a===wr.MAX),a===wr.MAX?Ie():De())},[a]);function Xe(){T===!1?(Qe(wr.MAX),Ie()):(Qe(wr.FIT),De())}function Ie(){requestAnimationFrame(()=>{D(!0),le()})}function De(){D(!1),ee()}function le(){requestAnimationFrame(()=>{N(s.current.scrollTop>0),R(s.current.scrollTop<s.current.scrollHeight-s.current.offsetHeight-1)})}function ee(){N(!1),R(!1)}function re(){D(!1),N(!1),R(!1),Qe(wr.FIT),t()}function we(){D(!1),N(!1),R(!1),Qe(wr.FIT),u()}function ve(){D(!1),N(!1),R(!1),Qe(wr.FIT),e()}return tt.jsx("div",{className:`location-details ${L?"location-details--content-above":""} ${O?"location-details--content-below":""}`,"data-sentry-component":"LocationDetails","data-sentry-source-file":"LocationDetails.jsx",children:H&&tt.jsxs(tt.Fragment,{children:[tt.jsxs("div",{className:"location-info",children:[tt.jsx("div",{className:"location-info__icon",children:F&&tt.jsx("img",{alt:"",src:F.icon.src?F.icon.src:F.icon})}),tt.jsxs("div",{className:"location-info__content",children:[tt.jsx("div",{className:"location-info__name",children:H.properties.name}),tt.jsx("mi-location-info",{level:p("Level"),ref:y,"show-external-id":rt})]}),tt.jsx("button",{className:"location-info__close",onClick:()=>ve(),children:tt.jsx(u2,{})})]}),tt.jsxs("div",{ref:s,onScroll:Ge=>le(),className:"location-details__details",children:[H.properties.imageURL&&tt.jsx("img",{alt:"",src:H.properties.imageURL,className:"location-details__image"}),Object.keys(H.properties.categories).length>0&&tt.jsx("p",{className:"location-details__categories",children:Object.values(H.properties.categories).map((Ge,Ae,Ze)=>tt.jsxs(Pi.Fragment,{children:[Ge,Ae<Ze.length-1&&tt.jsx(tt.Fragment,{children:"・"})]},Ge))}),H.properties.description&&!T&&tt.jsxs("section",{className:"location-details__description",children:[tt.jsx("div",{ref:_,children:H.properties.description}),(Z||J)&&tt.jsx("button",{onClick:()=>Xe(),children:p("Read full description")})]}),H.properties.description&&T&&tt.jsxs("section",{className:"location-details__description location-details__description--full prevent-scroll",...ce,children:[tt.jsx("div",{children:H.properties.description}),J&&tt.jsx("button",{onClick:()=>Xe(),children:p("Close")})]})]}),fe&<?tt.jsx("button",{disabled:!Oe,onClick:()=>we(),className:`location-details__wayfinding ${Oe?"":"location-details--no-route"}`,style:{background:pe},children:p(Oe?"Start directions":"Directions not available")}):tt.jsx("button",{onClick:()=>re(),style:{background:pe},className:"location-details__wayfinding",children:p("Start wayfinding")})]})})}const cxe="",Zle=e=>ke.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_1663_3931)"},ke.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_1663_3931"},ke.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),dj=e=>ke.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),ke.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),Wle=e=>ke.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),ke.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),uxe="";function ZT({location:e,locationClicked:t,icon:r,isHovered:a}){const{t:u}=la(),p=ke.useRef(),y=Zt(ws),s=Zt(p2);return ke.useEffect(()=>{var N;const _=O=>t(O.detail),T=()=>{var O;((O=e.properties.locationSettings)==null?void 0:O.selectable)!==!1&&y.hoverLocation(e)},D=()=>{var O;(O=e.properties.locationSettings)!=null&&O.selectable||y.unhoverLocation(e)};((N=e.properties.locationSettings)==null?void 0:N.selectable)===!1&&p.current.classList.add("non-selectable");const{current:L}=p;return L.location=e,L.icon=r||y.getDisplayRule(e).icon,L.addEventListener("locationClicked",_),L.addEventListener("mouseover",T),L.addEventListener("mouseout",D),a?p.current.classList.add("hovered"):p.current.classList.remove("hovered"),()=>{L.removeEventListener("locationClicked",_),L.removeEventListener("mouseover",T),L.removeEventListener("mouseout",D)}},[e,t,a]),tt.jsx("mi-list-item-location",{level:u("Level"),ref:p,"show-external-id":s,"data-sentry-element":"mi-list-item-location","data-sentry-component":"ListItemLocation","data-sentry-source-file":"ListItemLocation.jsx"})}const qle=()=>{const[e,t]=ke.useState(),r=Zt(ws),a=Zt(RT);return ke.useEffect(()=>{function u(){const p=r.getMapView().getCenter();t(p.lat+","+p.lng)}return r&&a?(r.getMapView().addListener("idle",u),u()):r&&r.getMapView().removeListener("idle",u),()=>{r&&r.getMapView().removeListener("idle",u)}},[r,a]),e},wp=$n({key:"language",default:void 0}),WT=$n({key:"searchInput",default:void 0}),m2=$n({key:"searchAllVenues",default:!1}),qT=ke.forwardRef(({placeholder:e,mapsindoors:t,results:r,clicked:a,cleared:u,changed:p,category:y,google:s,mapbox:_,disabled:T=!1},D)=>{const L=ke.useRef(),N=Zt(r2),O=Zt(wp),[,R]=vn(WT),F=sessionStorage.getItem("mapboxPlacesSessionToken"),K={longitude:N==null?void 0:N.coords.longitude,latitude:N==null?void 0:N.coords.latitude},Y=qle(),H=Zt(_p),Z=Zt(m2);return ke.useImperativeHandle(D,()=>({triggerSearch(){L.current.triggerSearch()},getValue(){return L.current.value},setDisplayText(J){L.current.setDisplayText(J)},focusInput(){L.current.focusInput()},clear(){L.current.clear()},getInputField(){return L.current.getInputField().then(J=>R(J))}})),ke.useEffect(()=>{const{current:J}=L;J.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{J.triggerSearch()})},[O]),ke.useEffect(()=>{const J=fe=>r(fe.detail),{current:ce}=L;t===!0&&(ce.mapsindoors="true");function pe(){ce.getValue||ce.focusInput(),u()}return ce.addEventListener("results",J),ce.addEventListener("click",a),ce.addEventListener("cleared",pe),ce.addEventListener("changed",p),()=>{ce.removeEventListener("results",J),ce.removeEventListener("click",a),ce.removeEventListener("cleared",pe),ce.removeEventListener("changed",p)}},[e,t,r,a,u,s,_,p]),tt.jsx("mi-search",{ref:L,"id-attribute":"search",placeholder:e,"session-token":F,"user-position":K.latitude!==void 0&&K.longitude!==void 0?Object.values(K).join(","):null,"mi-near":Y,"mi-categories":y,disabled:T,mapbox:_,google:s,"mi-venue":Z?void 0:H,language:O})});function KT(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:IT("My position"),anchor:t},type:"Feature"}}let XT;function Kle(e){return new Promise((t,r)=>{XT||(XT=new window.google.maps.Geocoder),XT.geocode({placeId:e.properties.placeId},a=>{a.length>0?(e.geometry={type:"Point",coordinates:[a[0].geometry.location.lng(),a[0].geometry.location.lat()]},t(e)):r()})})}const Xle="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",fj=e=>ke.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),pj=e=>ke.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_1697_57490)"},ke.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),ke.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),ke.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),ke.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_1697_57490"},ke.createElement("rect",{width:20,height:20,fill:"white"})))),Jle=e=>ke.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_3407_1703)"},ke.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_3407_1703"},ke.createElement("rect",{width:20,height:20,fill:"white"}))));function ece({selectionChanged:e,children:t}){const r=ke.useRef();return ke.useEffect(()=>{const a=p=>e(p.detail),{current:u}=r;return u.addEventListener("change",a),()=>u.removeEventListener("change",a)},[e]),tt.jsx("mi-dropdown",{ref:r,"data-sentry-element":"mi-dropdown","data-sentry-component":"Dropdown","data-sentry-source-file":"Dropdown.jsx",children:t})}function tce(e,t){const r=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((a,u)=>{const p=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${r}&access_token=${t}`;fetch(p).then(y=>y.status!==200?u():y.json()).then(y=>{e.geometry={type:"Point",coordinates:[y.features[0].geometry.coordinates[0],y.features[0].geometry.coordinates[1]]},a(e)}).catch(()=>{u()})})}const nce=pT({key:"unitSystem",get:({get:e})=>e(wp)==="en-US"?"imperial":"metric"}),ice=e=>ke.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{clipPath:"url(#clip0_1663_3939)"},ke.createElement("path",{d:"M8.00028 15.1429C11.9452 15.1429 15.1431 11.9449 15.1431 8.00003C15.1431 4.05514 11.9452 0.857178 8.00028 0.857178C4.05539 0.857178 0.857422 4.05514 0.857422 8.00003C0.857422 11.9449 4.05539 15.1429 8.00028 15.1429Z",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ke.createElement("path",{d:"M8.00084 8.51903C8.00084 8.1064 8.33644 7.85329 8.92853 7.45767C9.47773 7.0907 9.76742 6.61467 9.63856 5.96686C9.50971 5.31903 8.97443 4.78376 8.3266 4.65489C7.30969 4.45262 6.33105 5.25576 6.33105 6.29258",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ke.createElement("path",{d:"M8 11.376V11.0903",stroke:"black",strokeOpacity:.5,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ke.createElement("defs",null,ke.createElement("clipPath",{id:"clip0_1663_3939"},ke.createElement("rect",{width:16,height:16,fill:"white"})))),hxe="";function rce({text:e}){return tt.jsxs("div",{className:"tooltip","data-sentry-component":"Tooltip","data-sentry-source-file":"Tooltip.jsx",children:[tt.jsx(ice,{"data-sentry-element":"QuestionIcon","data-sentry-source-file":"Tooltip.jsx"}),tt.jsxs("div",{className:"tooltip__text",children:[tt.jsx("p",{children:e}),tt.jsx("i",{})]})]})}const dxe="";function mj({onAccessibilityChanged:e}){const t=Zt(ca),[r,a]=vn(f2);function u(p){a(p.target.checked),e&&e()}return tt.jsxs("div",{className:"accessibility","data-sentry-component":"Accessibility","data-sentry-source-file":"Accessibility.jsx",children:[tt.jsx("input",{className:"mi-toggle",type:"checkbox",checked:r,onChange:p=>u(p),style:{backgroundColor:r?t:""}}),tt.jsx("div",{children:IT("Accessibility")}),tt.jsx(rce,{text:IT("Turn on Accessibility to get directions that avoid stairs and escalators."),"data-sentry-element":"Tooltip","data-sentry-source-file":"Accessibility.jsx"})]})}const po={TO:"TO",FROM:"FROM"},oce="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";function gj({onStartDirections:e,onBack:t,directionsToLocation:r,directionsFromLocation:a,onSetSize:u,isActive:p}){const{t:y}=la(),s=ke.useRef(),_=ke.useRef(),T=ke.useRef(),D=ke.useRef(),L=Zt(CT),N=Zt(r2),O=Zt(Tu),R=Zt(AT),F=Zt(ca),[K,Y]=ke.useState(),[,H]=vn(GT),[Z,J]=ke.useState(!0),[ce,pe]=ke.useState(!1),[fe,be]=ke.useState([]),[He,Ce]=ke.useState(),[qe,$e]=ke.useState(),lt=Zt(f2),ct=bp(),[Je,Oe]=ke.useState(!1),[rt,Qe]=vn(d2),[Xe,Ie]=ke.useState(!1),De=Zt(D1),le=Zt(nce),[ee,re,we,ve]=uj(qe,He,L,rt,lt);function Ge(Tt){return R===cs.Google&&Tt.properties.type==="google_places"?Kle(Tt):R===cs.Mapbox&&Tt.properties.type==="mapbox_places"?tce(Tt,De):Promise.resolve(Tt)}function Ae(Tt){K===po.TO?Ge(Tt).then(gn=>{Ce(gn),T.current.setDisplayText(gn.properties.name)},()=>H(!1)):K===po.FROM&&Ge(Tt).then(gn=>{$e(gn),D.current.setDisplayText(gn.properties.name)},()=>H(!1)),Oe(!1),pe(!1),be([]),Ie(!1)}function Ze(Tt,gn){if(Y(gn),H(!0),Tt.length===0)J(!1),Oe(!1),be([]);else{J(!0),be(Tt);const xn=Tt.filter(Nn=>Nn.properties.type==="google_places").length>0;Oe(xn)}}function Ke(Tt){typeof u=="function"&&u(Tt)}function xt(){const Tt=KT(N);K===po.TO?(T.current.setDisplayText(Tt.properties.name),Ce(Tt)):K===po.FROM&&(D.current.setDisplayText(Tt.properties.name),$e(Tt)),be([]),H(!0),J(!0),Oe(!1),pe(!1),Ie(!1)}function Ft(Tt){(qe==null?void 0:qe.id)==="USER_POSITION"&&Tt===po.TO||(He==null?void 0:He.id)==="USER_POSITION"&&Tt===po.FROM?Ie(!1):Ie(!0)}function mt(Tt){Ft(Tt)}function ut(Tt){Y(Tt),on(Tt),H(!0),Oe(!1),Ft(Tt)}function Nt(Tt){Ie(!0),Y(Tt),jt(Tt),be([]),H(!0),Oe(!1),J(!0)}function jt(Tt){Tt===po.TO?Ce():Tt===po.FROM&&$e()}function on(Tt){Tt===po.TO?(be([]),T.current.getValue()&&(pe(!0),T.current.triggerSearch())):Tt===po.FROM&&(be([]),D.current.getValue()&&(pe(!0),D.current.triggerSearch()))}function kn(){(He||qe)&&(qe?T.current.setDisplayText(qe.properties.name):T.current.clear(),He?D.current.setDisplayText(He.properties.name):D.current.clear(),Ce(qe),$e(He))}function Ot(){$e(),D.current.setDisplayText(""),t()}return ke.useEffect(()=>{var gn;Ke(wr.MAX);let Tt=!1;if((a==null?void 0:a.id)==="USER_POSITION"&&(r==null?void 0:r.id)==="USER_POSITION"&&(r=void 0),r!=null&&r.properties&&!O&&(T.current.setDisplayText(r.properties.name),Ce(r)),a!=null&&a.properties?qe||(D.current.setDisplayText(a.properties.name),$e(a),Tt=!0):Y(po.FROM),p&&!((gn=D.current)!=null&&gn.getValue())){const xn=s.current.closest(".sheet");if(xn?xn.addEventListener("transitionend",()=>{a!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput()},{once:!0}):a!=="USER_POSITION_PENDING"&&(r==null?void 0:r.id)!=="USER_POSITION"&&D.current.focusInput(),N&&!qe&&(r==null?void 0:r.id)!=="USER_POSITION"&&!Tt){const Nn=KT(N);D.current.setDisplayText(Nn.properties.name),$e(Nn),H(!0),J(!0),be([])}}},[p,r,a]),ke.useEffect(()=>{R===cs.Mapbox&&(Oe(!1),be(fe.filter(Tt=>Tt.properties.type!=="google_places")))},[R]),ke.useEffect(()=>{O&&(Ce(O),T.current.setDisplayText(O.properties.name))},[O]),tt.jsxs("div",{className:"wayfinding",ref:s,"data-sentry-component":"Wayfinding","data-sentry-source-file":"Wayfinding.jsx",children:[tt.jsxs("div",{className:"wayfinding__directions",children:[tt.jsx("div",{className:"wayfinding__title",children:y("Start wayfinding")}),tt.jsx("button",{className:"wayfinding__close",onClick:()=>Ot(),"aria-label":"Close",children:tt.jsx(u2,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"Wayfinding.jsx"})}),tt.jsxs("div",{className:"wayfinding__locations",children:[tt.jsxs("label",{className:"wayfinding__label",children:[y("From").toUpperCase(),tt.jsx(qT,{ref:D,mapsindoors:!0,google:R===cs.Google,mapbox:R===cs.Mapbox,placeholder:y("Search by name, category, building..."),results:Tt=>Ze(Tt,po.FROM),clicked:()=>ut(po.FROM),cleared:()=>Nt(po.FROM),changed:()=>mt(po.FROM),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]}),tt.jsx("button",{onClick:()=>kn(),"aria-label":y("Switch"),className:"wayfinding__switch",children:tt.jsx(Wle,{"data-sentry-element":"SwitchIcon","data-sentry-source-file":"Wayfinding.jsx"})}),tt.jsxs("label",{className:"wayfinding__label",children:[y("To").toUpperCase(),tt.jsx(qT,{ref:T,mapsindoors:!0,google:R===cs.Google,mapbox:R===cs.Mapbox,placeholder:y("Search by name, category, building..."),results:Tt=>Ze(Tt,po.TO),clicked:()=>ut(po.TO),cleared:()=>Nt(po.TO),changed:()=>mt(po.TO),"data-sentry-element":"SearchField","data-sentry-source-file":"Wayfinding.jsx"})]})]})]}),!we&&tt.jsx("p",{className:"wayfinding__error",children:y("No route found")}),!Z&&!Xe&&tt.jsx("p",{className:"wayfinding__error",children:y("Nothing was found")}),N&&Xe&&tt.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>xt(),children:[tt.jsx(Jle,{}),y("My position")]}),fe.length>0&&tt.jsx("div",{className:"wayfinding__scrollable",...ct,children:tt.jsxs("div",{className:"wayfinding__results",children:[fe.map(Tt=>tt.jsx(ZT,{icon:Tt.properties.type==="google_places"||Tt.properties.type==="mapbox_places"?oce:void 0,location:Tt,locationClicked:gn=>Ae(gn)},Tt.id)),Je&&tt.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:Xle})]})}),!ce&&!Xe&&we&&!Je&&qe&&He&&tt.jsxs("div",{className:"wayfinding__details",ref:_,children:[tt.jsxs("div",{className:"wayfinding__settings",children:[tt.jsx(mj,{}),tt.jsx("div",{className:"wayfinding__travel",children:tt.jsxs(ece,{selectionChanged:Tt=>Qe(Tt[0].value),children:[tt.jsxs("mi-dropdown-item",{selected:!0,value:td.WALKING,children:[tt.jsx(dj,{}),y("Walk")]}),tt.jsxs("mi-dropdown-item",{value:td.DRIVING,children:[tt.jsx(fj,{}),y("Drive")]}),tt.jsxs("mi-dropdown-item",{value:td.BICYCLING,children:[tt.jsx(pj,{}),y("Bike")]})]})})]}),tt.jsx("hr",{}),tt.jsxs("div",{className:"wayfinding__info",children:[tt.jsxs("div",{className:"wayfinding__distance",children:[rt===td.WALKING&&tt.jsx(dj,{}),rt===td.DRIVING&&tt.jsx(fj,{}),rt===td.BICYCLING&&tt.jsx(pj,{}),tt.jsxs("div",{children:[y("Distance"),":"]}),tt.jsx("div",{className:"wayfinding__meters",children:ee&&ve&&tt.jsx("mi-distance",{unit:le,meters:ee})})]}),tt.jsxs("div",{className:"wayfinding__time",children:[tt.jsx(Zle,{}),tt.jsxs("div",{children:[y("Estimated time"),":"]}),tt.jsx("div",{className:"wayfinding__minutes",children:re&&ve&&tt.jsx("mi-time",{translations:JSON.stringify({days:y("d"),hours:y("h"),minutes:y("min")}),seconds:re})})]})]}),tt.jsx("button",{className:"wayfinding__button",style:{background:F},onClick:()=>e(),disabled:!ve,children:y("Go!")})]})]})}const fxe="",sce=e=>ke.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("g",{opacity:.12},ke.createElement("path",{d:"M16.3335 5.36667C16.3335 4.71327 16.3335 4.38657 16.4607 4.13701C16.5725 3.91749 16.7509 3.73901 16.9705 3.62715C17.22 3.5 17.5467 3.5 18.2002 3.5H22.6335C23.2869 3.5 23.6136 3.5 23.8632 3.62715C24.0827 3.73901 24.2611 3.91749 24.373 4.13701C24.5002 4.38657 24.5002 4.71327 24.5002 5.36667V9.8C24.5002 10.4534 24.5002 10.7801 24.373 11.0297C24.2611 11.2492 24.0827 11.4277 23.8632 11.5395C23.6136 11.6667 23.2869 11.6667 22.6335 11.6667H18.2002C17.5467 11.6667 17.22 11.6667 16.9705 11.5395C16.7509 11.4277 16.5725 11.2492 16.4607 11.0297C16.3335 10.7801 16.3335 10.4534 16.3335 9.8V5.36667Z",fill:"#1F2937"}),ke.createElement("path",{d:"M3.5 5.36667C3.5 4.71327 3.5 4.38657 3.62715 4.13701C3.73901 3.91749 3.91749 3.73901 4.13701 3.62715C4.38657 3.5 4.71327 3.5 5.36667 3.5H9.8C10.4534 3.5 10.7801 3.5 11.0297 3.62715C11.2492 3.73901 11.4277 3.91749 11.5395 4.13701C11.6667 4.38657 11.6667 4.71327 11.6667 5.36667V9.8C11.6667 10.4534 11.6667 10.7801 11.5395 11.0297C11.4277 11.2492 11.2492 11.4277 11.0297 11.5395C10.7801 11.6667 10.4534 11.6667 9.8 11.6667H5.36667C4.71327 11.6667 4.38657 11.6667 4.13701 11.5395C3.91749 11.4277 3.73901 11.2492 3.62715 11.0297C3.5 10.7801 3.5 10.4534 3.5 9.8V5.36667Z",fill:"#1F2937"}),ke.createElement("path",{d:"M3.5 18.2C3.5 17.5466 3.5 17.2199 3.62715 16.9704C3.73901 16.7508 3.91749 16.5724 4.13701 16.4605C4.38657 16.3334 4.71327 16.3334 5.36667 16.3334H9.8C10.4534 16.3334 10.7801 16.3334 11.0297 16.4605C11.2492 16.5724 11.4277 16.7508 11.5395 16.9704C11.6667 17.2199 11.6667 17.5466 11.6667 18.2V22.6334C11.6667 23.2868 11.6667 23.6135 11.5395 23.863C11.4277 24.0826 11.2492 24.261 11.0297 24.3729C10.7801 24.5 10.4534 24.5 9.8 24.5H5.36667C4.71327 24.5 4.38657 24.5 4.13701 24.3729C3.91749 24.261 3.73901 24.0826 3.62715 23.863C3.5 23.6135 3.5 23.2868 3.5 22.6334V18.2Z",fill:"#1F2937"})),ke.createElement("path",{d:"M7.58333 7.58333H7.595M20.4167 7.58333H20.4283M7.58333 20.4167H7.595M15.1667 15.1667H15.1783M20.4167 20.4167H20.4283M19.8333 24.5H24.5V19.8333M16.3333 19.25V24.5M24.5 16.3333H19.25M18.2 11.6667H22.6333C23.2868 11.6667 23.6134 11.6667 23.863 11.5395C24.0826 11.4277 24.261 11.2492 24.3728 11.0297C24.5 10.7801 24.5 10.4534 24.5 9.8V5.36667C24.5 4.71327 24.5 4.38657 24.3728 4.13701C24.261 3.91749 24.0826 3.73901 23.863 3.62715C23.6134 3.5 23.2868 3.5 22.6333 3.5H18.2C17.5465 3.5 17.2199 3.5 16.9703 3.62715C16.7508 3.73901 16.5724 3.91749 16.4605 4.13701C16.3333 4.38657 16.3333 4.71327 16.3333 5.36667V9.8C16.3333 10.4534 16.3333 10.7801 16.4605 11.0297C16.5724 11.2492 16.7508 11.4277 16.9703 11.5395C17.2199 11.6667 17.5465 11.6667 18.2 11.6667ZM5.36667 11.6667H9.8C10.4534 11.6667 10.7801 11.6667 11.0297 11.5395C11.2492 11.4277 11.4277 11.2492 11.5395 11.0297C11.6667 10.7801 11.6667 10.4534 11.6667 9.8V5.36667C11.6667 4.71327 11.6667 4.38657 11.5395 4.13701C11.4277 3.91749 11.2492 3.73901 11.0297 3.62715C10.7801 3.5 10.4534 3.5 9.8 3.5H5.36667C4.71327 3.5 4.38657 3.5 4.13701 3.62715C3.91749 3.73901 3.73901 3.91749 3.62715 4.13701C3.5 4.38657 3.5 4.71327 3.5 5.36667V9.8C3.5 10.4534 3.5 10.7801 3.62715 11.0297C3.73901 11.2492 3.91749 11.4277 4.13701 11.5395C4.38657 11.6667 4.71327 11.6667 5.36667 11.6667ZM5.36667 24.5H9.8C10.4534 24.5 10.7801 24.5 11.0297 24.3728C11.2492 24.261 11.4277 24.0826 11.5395 23.863C11.6667 23.6134 11.6667 23.2868 11.6667 22.6333V18.2C11.6667 17.5465 11.6667 17.2199 11.5395 16.9703C11.4277 16.7508 11.2492 16.5724 11.0297 16.4605C10.7801 16.3333 10.4534 16.3333 9.8 16.3333H5.36667C4.71327 16.3333 4.38657 16.3333 4.13701 16.4605C3.91749 16.5724 3.73901 16.7508 3.62715 16.9703C3.5 17.2199 3.5 17.5465 3.5 18.2V22.6333C3.5 23.2868 3.5 23.6134 3.62715 23.863C3.73901 24.0826 3.91749 24.261 4.13701 24.3728C4.38657 24.5 4.71327 24.5 5.36667 24.5Z",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),pxe="",ace=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),lce=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),JT=$n({key:"activeStep",default:0}),L1=$n({key:"substepsToggled",default:!1}),cce=$n({key:"triggerSubsteps",default:!1}),z1=()=>{const e=Zt(lc),t=sc();return!(!e||e&&!t)},uce=ke.forwardRef(({totalSteps:e,activeStep:t,previous:r,originLocation:a,directions:u},p)=>{var O;const y=ke.useRef(),{t:s}=la(),[_,T]=vn(L1),[,D]=vn(cce),L=z1();ke.useImperativeHandle(p,()=>({openSubsteps(){y.current.openSubsteps()},closeSubsteps(){y.current.closeSubsteps()}}));const N={walk:s("Walk"),bike:s("Bike"),transit:s("Transit"),drive:s("Drive"),destination:s("You have arrived"),leave:s("Leave"),from:s("From"),park:s("Park"),at:s("at"),building:s("Building"),venue:s("Venue"),takeStaircaseToLevel:s("Take staircase to level"),takeLadderToLevel:s("Take the ladder to level"),takeElevatorToLevel:s("Take elevator to level"),takeEscalatorToLevel:s("Take escalator to level"),takeWheelchairLiftToLevel:s("Take wheelchair lift to level"),takeWheelchairRampToLevel:s("Take wheelchair ramp to level"),exit:s("Exit"),enter:s("Enter"),stops:s("stops"),andContinue:s("and continue"),continueStraightAhead:s("Continue straight ahead"),goLeft:s("Go left"),goSharpLeft:s("Go sharp left"),goSlightLeft:s("Go slight left"),goRight:s("Go right"),goSharpRight:s("Go sharp right"),goSlightRight:s("Go slight right"),turnAround:s("Turn around"),days:s("d"),hours:s("h"),minutes:s("min")};return ke.useEffect(()=>{const{current:R}=y;function F(){D(!0),T(!_)}return R.addEventListener("substepsToggled",F),()=>{R.removeEventListener("substepsToggled",F)}},[_]),tt.jsx("mi-route-instructions-step",{ref:y,"show-toggle-button":!L,step:JSON.stringify(e[t]),translations:JSON.stringify(N),"destination-location":u==null?void 0:u.destinationLocation.properties.name,"from-travel-mode":(r==null?void 0:r.travel_mode)??"","from-route-context":(r==null?void 0:r.route_context)??((O=a==null?void 0:a.properties)==null?void 0:O.name)??""})}),hce=()=>{const e=Zt(ws),t=Zt(i2);return()=>{if(e&&t){const a=t.modules.map(u=>u.toLowerCase()).includes("z22");e.setZoom(a?22:21)}}},yj=$n({key:"isDestinationStep",default:!1});function dce({steps:e,onNextStep:t,onPreviousStep:r,originLocation:a,isOpen:u,onFitCurrentDirections:p}){const{t:y}=la(),s=bp(),_=ke.useRef(),[T,D]=ke.useState(),[L,N]=vn(JT),[O,R]=ke.useState(),F=Zt(h2),K=Zt(ws),Y=Zt(L1),[,H]=vn(yj),Z=hce(),J=z1();ke.useEffect(()=>{const be={...e[e.length-1]};be.travel_mode="DESTINATION",be.steps=null,e.push(be),R(e)},[e]),ke.useEffect(()=>{var fe,be;if(u){if(L===(O==null?void 0:O.length)-1&&(F!=null&&F.destinationLocation)){H(!0);const He=F==null?void 0:F.destinationLocation,Ce=(He==null?void 0:He.geometry.type)==="Point"?He==null?void 0:He.geometry.coordinates:He==null?void 0:He.properties.anchor.coordinates;K.getMapView().setCenter({lat:Ce[1],lng:Ce[0]}),Z()}else H(!1);Y===!1?(fe=_.current)==null||fe.closeSubsteps():Y===!0&&((be=_.current)==null||be.openSubsteps())}},[u,L,O,Y]);function ce(){D(O[L]),N(L+1),t()}function pe(){D(O[L-2]),N(L-1),L===(O==null?void 0:O.length)-1?p():r()}return tt.jsx("div",{className:"route-instructions prevent-scroll",...s,"data-sentry-component":"RouteInstructions","data-sentry-source-file":"RouteInstructions.jsx",children:O&&tt.jsxs(tt.Fragment,{children:[tt.jsx(uce,{totalSteps:O,activeStep:L,previous:T,directions:F,originLocation:a,ref:_}),tt.jsx("div",{className:`route-instructions__footer ${J?"route-instructions__footer--kiosk":""}`,children:tt.jsxs("div",{className:"route-instructions__actions",children:[tt.jsx("button",{className:`route-instructions__button ${J?"route-instructions__button--kiosk":""}`,onClick:()=>pe(),"aria-label":y("Previous"),disabled:L===0,children:tt.jsx(lce,{})}),tt.jsx("div",{className:"route-instructions__overview",children:y("StepYofX",{activeStep:L+1,totalSteps:O.length})}),tt.jsx("button",{className:`route-instructions__button ${J?"route-instructions__button--kiosk":""}`,onClick:()=>ce(),"aria-label":y("Next"),disabled:L===O.length-1,children:tt.jsx(ace,{})})]})})]})})}const g2=$n({key:"showQRCodeDialog",default:!1});let ro;function _j({isOpen:e,onBack:t,onSetSize:r,snapPointSwiped:a,onRouteFinished:u}){const{t:p}=la(),[y,s]=ke.useState(null),_=ke.useRef(null),[T,D]=ke.useState(),L=Zt(ws),N=Zt(d2),O=Zt(h2),[,R]=vn(JT),[F,K]=vn(L1),Y=Zt(lc),H=sc(),[,Z]=vn(g2),J=Zt(yj),ce=Zt(ca),pe=z1(),fe=Zt(p2);ke.useEffect(()=>{if(s(null),e&&O){D(O.totalTime);const Qe=Math.min(window.innerHeight,window.innerWidth)*.06;ro==null||ro.setRoute(null),ro=null,Promise.all([be(Qe),He(Qe)]).then(([Xe,Ie])=>{ro=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:L,fitBoundsPadding:{top:Qe,bottom:Xe,left:Ie,right:Qe}}),ro.setRoute(O.directionsResult),ro.setStepIndex(0),_.current.location=O.destinationLocation,O.destinationLocation.id==="USER_POSITION"?s(null):s(L.getDisplayRule(O.destinationLocation))})}},[e,O,L,N]);function be(Qe){return new Promise(Xe=>{if(H)Y?kT().then(Ie=>Xe(Ie)):Xe(Qe);else return G7().then(Ie=>Xe(Ie))})}function He(Qe){return new Promise(Xe=>{H?Y?Xe(Qe):jT().then(Ie=>Xe(Ie)):Xe(Qe)})}ke.useEffect(()=>{!e&&ro&&ct()},[e]);function Ce(){return O?O.directionsResult.legs.reduce((Qe,Xe)=>{for(const Ie in Xe.steps){const De=Xe.steps[Ie];Qe.push(De)}return Qe},[]):[]}function qe(){ro&&ro.nextStep()}function $e(){ro&&ro.previousStep()}function lt(){ro&&ro.setStepIndex(ro.getStepIndex(),ro.getLegIndex())}function ct(){ro==null||ro.setRoute(null),ro=null}function Je(){R(0),K(!1),rt(wr.FIT)}function Oe(){Je(),ct(),t()}function rt(Qe){typeof r=="function"&&r(Qe)}return ke.useEffect(()=>{rt(F?wr.MAX:wr.FIT)},[F]),ke.useEffect(()=>{e&&a&&K(a===wr.MAX)},[e,a]),tt.jsxs("div",{className:"directions",style:{display:pe?"block":"grid"},"data-sentry-component":"Directions","data-sentry-source-file":"Directions.jsx",children:[tt.jsxs("div",{className:"directions__steps",children:[tt.jsx("div",{className:"directions__minutes",children:T&&tt.jsx("mi-time",{translations:JSON.stringify({days:p("d"),hours:p("h"),minutes:p("min")}),seconds:T})}),tt.jsx(dce,{steps:Ce(),originLocation:O==null?void 0:O.originLocation,onNextStep:()=>qe(),isOpen:e,onPreviousStep:()=>$e(),onFitCurrentDirections:()=>lt(),"data-sentry-element":"RouteInstructions","data-sentry-source-file":"Directions.jsx"})]}),pe&&tt.jsxs(tt.Fragment,{children:[tt.jsx("hr",{}),tt.jsxs("div",{className:"directions__kiosk",children:[tt.jsx(mj,{onAccessibilityChanged:()=>Je()}),tt.jsxs("button",{className:"directions__qr-code",onClick:()=>Z(!0),children:[tt.jsx(sce,{}),p("Scan QR code")]})]})]}),tt.jsxs("div",{className:"directions__actions",children:[tt.jsx("div",{className:"directions__details",children:(O==null?void 0:O.destinationLocation)&&tt.jsxs("div",{className:"directions__info",children:[y&&O.destinationLocation.id!=="USER_POSITION"&&tt.jsx("div",{className:"directions__icon",children:tt.jsx("img",{alt:"",src:y.icon.src?y.icon.src:y.icon})}),tt.jsxs("div",{className:"directions__content",children:[tt.jsx("div",{className:"directions__name",children:O==null?void 0:O.destinationLocation.properties.name}),tt.jsx("mi-location-info",{ref:_,"show-external-id":fe})]})]})}),J?tt.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:ce},children:p("Finish route")}):tt.jsx("button",{className:"directions__cancel",onClick:()=>Oe(),children:p("Cancel route")})]})]})}const mxe="";function fce(e,t,r,a,u,p,y){const s=Q7(e.geometry);let _={west:s[0],south:s[1],east:s[2],north:s[3]};t.getMapView().fitBounds(_,{top:0,right:0,bottom:r,left:a}).then(()=>{u&&t.setZoom(parseInt(u)),isNaN(parseInt(p))||t.getMapView().tilt(parseInt(p)),isNaN(parseInt(y))||t.getMapView().rotate(parseInt(y))})}const vj=$n({key:"useKeyboard",default:!1}),pce=ke.forwardRef(({searchInputElement:e},t)=>{const r=ke.useRef(),a=Zt(wp);return ke.useImperativeHandle(t,()=>({clearInputField(){r.current.clearInputField()}})),ke.useEffect(()=>{const{current:u}=r;e&&(u.inputElement=e)},[e]),tt.jsx("mi-keyboard",{language:a,ref:r})}),y2=$n({key:"searchResults",default:[]}),eS=$n({key:"selectedCategory",default:void 0}),gxe="",mce=e=>ke.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),gce=e=>ke.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));function yce(){return new Promise(e=>{const t=document.querySelector(".chip--active");if(t)e(t);else{const r=new MutationObserver(()=>{const a=document.querySelector(".chip--active");a&&(r.disconnect(),e(a))});r.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const xj=$n({key:"category",default:void 0});function _ce({onSetSize:e,getFilteredLocations:t,searchFieldRef:r}){const a=ke.useRef(),u=Zt(yp),p=sc(),[y,s]=ke.useState(!0),[_,T]=ke.useState(!1),D=Zt(ca),[L,N]=vn(eS),[,O]=vn(y2),[,R]=vn(o2),F=bp(),[K,Y]=ke.useState(),H=Zt(lj),Z=Zt(xj);function J(be){typeof e=="function"&&e(be)}function ce(be){N(be),J(wr.MAX),L===be?(O([]),N(null),R([]),r.current.getValue()&&r.current.triggerSearch()):r.current.getValue()?r.current.triggerSearch():t(be)}function pe(){const{scrollLeft:be,scrollWidth:He,clientWidth:Ce}=(a==null?void 0:a.current)||{};be===0?s(!0):y&&s(!1),He-be===Ce?T(!0):He-be>Ce&&T(!1)}function fe(be){a==null||a.current.scroll({left:(a==null?void 0:a.current.scrollLeft)+be,behavior:"smooth"})}return ke.useEffect(()=>{const be=()=>{pe()};a.current&&(new ResizeObserver(be).observe(a.current),a.current.addEventListener("scroll",pe))},[]),ke.useEffect(()=>{L&&(yce().then(be=>Y(be)),J(wr.MAX))},[L]),ke.useEffect(()=>{K&&Z!==void 0&&(p||!p&&H)&&K.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[K,Z,H]),tt.jsx("div",{className:"categories prevent-scroll",...F,"data-sentry-component":"Categories","data-sentry-source-file":"Categories.jsx",children:u.length>0&&tt.jsxs(tt.Fragment,{children:[p&&tt.jsx("button",{className:"categories__scroll-button",onClick:()=>fe(-300),disabled:y,children:tt.jsx(gce,{})}),tt.jsx("div",{ref:a,className:"categories__list",children:u==null?void 0:u.map(([be,He])=>tt.jsx("mi-chip",{icon:He.iconUrl,"background-color":D,content:He.displayName,active:L===be,onClick:()=>ce(be)},be))}),p&&tt.jsx("button",{className:"categories__scroll-button",onClick:()=>fe(300),disabled:_,children:tt.jsx(mce,{})})]})})}const vce=e=>ke.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ke.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),ke.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_2=$n({key:"isLegendDialogVisible",default:!1}),Mj=pT({key:"legendFields",get:({get:e})=>{const t=e(lc);if(!(t!=null&&t.properties.fields))return;const r=[];for(const u of Object.keys(t.properties.fields)){const p=parseInt(u.charAt(0));if(!Number.isInteger(p))continue;const y=r.find(T=>T.index===p),s=u.toLowerCase().includes("legendheading"),_=u.toLowerCase().includes("legendcontent");if(y)s?y.heading=t.properties.fields[u].value:_&&(y.content=t.properties.fields[u].value);else{const T={index:p,heading:s?t.properties.fields[u].value:null,content:_?t.properties.fields[u].value:null};r.push(T)}}return r.sort((u,p)=>u.index-p.index)}}),tS=$n({key:"initialVenueName",default:null});function bj({onSetSize:e,isOpen:t}){const{t:r}=la(),a=ke.useRef(),u=ke.useRef(),p=ke.useRef(),y=ke.useRef(),[s,_]=ke.useState(!0),[T,D]=vn(y2),L=Zt(yp),N=Zt(vj),[O,R]=ke.useState(!1),[F,K]=vn(eS),Y=bp(),[H,Z]=ke.useState(),J=Zt(ws),[,ce]=vn(o2),[,pe]=vn(Tu),[,fe]=vn(QT),[be,He]=vn(_p),Ce=Zt(wp),qe=sc(),$e=Zt(lc),[lt,ct]=ke.useState(!1),Je=Zt(WT),Oe=z1(),[,rt]=vn(_2),[Qe,Xe]=ke.useState(!1),Ie=Zt(Mj),De=Zt(m2),le=Zt(C1),ee=Zt(tS);function re(ut){var Nt;window.mapsindoors.services.LocationsService.getLocations({categories:ut,venue:De||(Nt=le.find(jt=>jt.name.toLowerCase()===be.toLowerCase()))==null?void 0:Nt.name}).then(ve)}function we(ut){typeof e=="function"&&e(ut)}function ve(ut){D(ut),ce(ut),R(ut.length===0)}function Ge(){D([]),R(!1),F&&re(F),ce([]),n2(y.current)||y.current.clearInputField()}function Ae(){we(wr.MAX),_(!1),p.current.getInputField();const ut=a.current.closest(".sheet");ut?ut.addEventListener("transitionend",()=>{p.current.focusInput()},{once:!0}):p.current.focusInput()}function Ze(ut){Z(ut)}function Ke(ut){pe(ut),ut.properties.venueId.toLowerCase()!==be.toLowerCase()&&(He(ut.properties.venueId),fe(!0));const Nt=J.getFloor(),jt=ut.properties.floor;jt!==Nt&&J.setFloor(jt),Promise.all([xt(),Ft()]).then(([on,kn])=>{fce(ut,J,on,kn)})}function xt(){return new Promise(ut=>{qe?$e?kT().then(Nt=>ut(Nt)):ut(0):ut(200)})}function Ft(){return new Promise(ut=>{qe?$e?ut(0):jT().then(Nt=>ut(Nt)):ut(0)})}function mt(){if(T.length>0){let ut;return qe?ut=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":ut="100%",{display:"flex",flexDirection:"column",maxHeight:ut,overflow:"hidden"}}else return{minHeight:L.length>0?"136px":"80px"}}return ke.useEffect(()=>{F&&be!==ee&&(D([]),K(null))},[be]),ke.useEffect(()=>{F&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{p.current.triggerSearch()})},[Ce]),ke.useEffect(()=>(J.on("mouseenter",Ze),()=>{J.off("mouseenter",Ze)})),ke.useEffect(()=>{if(t&&Oe&&T.length>0){const ut=document.querySelector(".mapsindoors-map .search__results");u.current.scrollContainerElementRef=ut}},[T,t]),ke.useEffect(()=>{if(N){const ut=Nt=>{Nt.target.closest("mi-keyboard")||Nt.target.tagName.toUpperCase()==="MI-SEARCH"||Nt.target.tagName.toUpperCase()==="INPUT"?ct(!0):ct(!1)};return window.addEventListener("click",ut,!1),()=>{window.removeEventListener("click",ut,!1)}}},[N]),ke.useEffect(()=>{F&&re(F)},[F]),ke.useEffect(()=>{$e&&Xe(Ie.length>0)},[$e]),tt.jsxs("div",{className:"search",ref:a,style:mt(),"data-sentry-component":"Search","data-sentry-source-file":"Search.jsx",children:[tt.jsxs("div",{className:"search__info",style:{gridTemplateColumns:Oe&&Qe?"min-content 1fr":"auto"},children:[Oe&&Qe&&tt.jsx("button",{className:"search__legend",onClick:()=>rt(!0),children:tt.jsx(vce,{})}),tt.jsx(qT,{ref:p,mapsindoors:!0,placeholder:r("Search by name, category, building..."),results:ut=>ve(ut),clicked:()=>Ae(),cleared:()=>Ge(),category:F,disabled:s,"data-sentry-element":"SearchField","data-sentry-source-file":"Search.jsx"})]}),L.length>0&&tt.jsx(_ce,{onSetSize:e,searchFieldRef:p,getFilteredLocations:ut=>re(ut)}),O&&tt.jsxs("p",{className:"search__error",children:[" ",r("Nothing was found")]}),T.length>0&&tt.jsx("div",{className:"search__results prevent-scroll",...Y,children:T.map(ut=>tt.jsx(ZT,{location:ut,locationClicked:()=>Ke(ut),isHovered:(ut==null?void 0:ut.id)===(H==null?void 0:H.id)},ut.id))}),lt&&qe&&tt.jsx(pce,{ref:y,searchInputElement:Je}),t&&Oe&&T.length>0&&l5.createPortal(tt.jsx("div",{className:"search__scroll-buttons",children:tt.jsx("mi-scroll-buttons",{ref:u})}),document.querySelector(".mapsindoors-map"))]})}const yxe="";function wj({onBack:e,onLocationClick:t,locations:r,onSetSize:a}){const{t:u}=la(),p=bp();function y(s){typeof a=="function"&&a(s)}return ke.useEffect(()=>{y(wr.FIT)},[]),tt.jsxs("div",{className:"locations-list","data-sentry-component":"LocationsList","data-sentry-source-file":"LocationsList.jsx",children:[tt.jsxs("div",{className:"locations-list__header",children:[tt.jsxs("div",{className:"locations-list__title",children:[r==null?void 0:r.length," ",u("Locations")]}),tt.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":u("Close"),children:tt.jsx(u2,{"data-sentry-element":"CloseIcon","data-sentry-source-file":"LocationsList.jsx"})})]}),tt.jsx("div",{className:"locations-list__scrollable prevent-scroll",...p,children:tt.jsx("div",{className:"locations-list__list",children:r==null?void 0:r.map(s=>tt.jsx(ZT,{location:s,locationClicked:_=>t(_)},s.id))})})]})}function xce({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:a,appViews:u,onRouteFinished:p}){const y=ke.useRef(),[s,_]=ke.useState(),[T,D]=ke.useState(),[L,N]=ke.useState(),[O,R]=ke.useState(),[F,K]=ke.useState(),[Y,H]=ke.useState(),[Z,J]=ke.useState(),ce=Zt(yp),[pe,fe]=vn(Tu),[be,He]=vn(s2),[,Ce]=vn(l2);ke.useEffect(()=>{e&&t&&a===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):pe?r(u.LOCATION_DETAILS,pe):(be==null?void 0:be.length)>1?r(u.EXTERNALIDS):(be==null?void 0:be.length)===1?(fe(be[0]),Ce(be[0].id)):r(u.SEARCH))},[pe,e,t,be]);function qe(){(be==null?void 0:be.length)>1?(r(u.EXTERNALIDS),fe()):(be==null?void 0:be.length)===1?(r(u.SEARCH),fe(),He([])):(r(u.SEARCH),fe())}function $e(){r(u.SEARCH),fe(),He([])}const lt=[tt.jsx(N1,{minHeight:ce.length>0?"136":"80",preferredSizeSnapPoint:Y,isOpen:a===u.SEARCH,children:tt.jsx(bj,{onSetSize:ct=>H(ct)})},"A"),tt.jsx(N1,{minHeight:"200",isOpen:a===u.EXTERNALIDS,preferredSizeSnapPoint:Z,children:tt.jsx(wj,{onSetSize:ct=>J(ct),onBack:()=>$e(),locations:be,onLocationClick:ct=>fe(ct),onLocationsFiltered:ct=>He(ct)})},"B"),tt.jsx(N1,{minHeight:"128",preferredSizeSnapPoint:s,isOpen:a===u.LOCATION_DETAILS,onSwipedToSnapPoint:ct=>D(ct),children:tt.jsx(hj,{onSetSize:ct=>_(ct),onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>qe(),snapPointSwiped:T,onStartDirections:()=>r(u.DIRECTIONS)})},"C"),tt.jsx(N1,{minHeight:"238",isOpen:a===u.WAYFINDING,preferredSizeSnapPoint:F,children:tt.jsx(gj,{onSetSize:ct=>K(ct),onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(pe?u.LOCATION_DETAILS:u.SEARCH),isActive:a===u.WAYFINDING})},"D"),tt.jsx(N1,{minHeight:"220",isOpen:a===u.DIRECTIONS,preferredSizeSnapPoint:L,onSwipedToSnapPoint:ct=>R(ct),children:tt.jsx(_j,{onSetSize:ct=>N(ct),isOpen:a===u.DIRECTIONS,onBack:()=>r(u.WAYFINDING),snapPointSwiped:O,onRouteFinished:()=>p()})},"E")];return tt.jsx("div",{ref:y,className:"bottom-sheets","data-sentry-component":"BottomSheet","data-sentry-source-file":"BottomSheet.jsx",children:tt.jsx(ij.Provider,{value:y,"data-sentry-element":"unknown","data-sentry-source-file":"BottomSheet.jsx",children:lt})})}const Mce={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},bce=()=>{const[e,t]=ke.useState(void 0),[r,a]=ke.useState(),[u,p]=ke.useState(null);ke.useEffect(()=>{function T(D){var L,N;t((L=D.state)==null?void 0:L.value),a((N=D.state)==null?void 0:N.payload)}return window.addEventListener("popstate",T),()=>{window.removeEventListener("popstate",T)}},[]);const y=(T,D)=>{window.history.pushState({value:T,payload:D},""),t(T),u===null&&p({value:T,payload:D})};return[y,()=>{window.history.back()},e,r,Mce,()=>{y(u.value,u.payload)}]};function wce(){const e=Zt(tS),[,t]=vn(_p),r=bs(JT),a=bs(Tu),u=bs(h2),p=bs(GT),y=bs(QT),s=bs(LT),_=bs(g2),T=bs(L1),D=bs(d2),L=bs(y2),N=bs(f2),O=bs(_2),R=bs(DT),F=bs(OT);return()=>{r(),a(),u(),p(),y(),s(),_(),T(),D(),L(),N(),O(),R(),F(),e&&t(e)}}const _xe="";function k1({children:e,isOpen:t}){const[r,a]=ke.useState(!1),u=Zt(L1),p=Zt(lc),y=ke.useRef(),s=ke.useRef();return ke.useEffect(()=>{if(!s)return;const _=new MutationObserver(()=>{var L;const T=s.current.clientHeight,D=(L=y.current)==null?void 0:L.clientHeight;a(T>D)});return _.observe(s.current,{childList:!0,subtree:!0}),()=>{_.disconnect()}},[s]),tt.jsx("div",{ref:y,className:`modal ${t?"modal--open":""} ${r?"modal--full":""} ${u?"modal--substeps":""} ${p?"modal--kiosk":""}`,"data-sentry-component":"Modal","data-sentry-source-file":"Modal.jsx",children:tt.jsx("div",{ref:s,className:"modal__content",children:e})})}function Ice({directionsFromLocation:e,directionsToLocation:t,pushAppView:r,currentAppView:a,appViews:u,onRouteFinished:p}){const[y,s]=vn(Tu),[_,T]=vn(s2),[,D]=vn(l2),L=Zt(lc);ke.useEffect(()=>{e&&t&&a===u.DIRECTIONS||(e&&t||e?r(u.WAYFINDING):y?r(u.LOCATION_DETAILS,y):(_==null?void 0:_.length)>1?r(u.EXTERNALIDS):(_==null?void 0:_.length)===1?(s(_[0]),D(_[0].id)):r(u.SEARCH))},[y,e,t,_]);function N(){(_==null?void 0:_.length)>1?(r(u.EXTERNALIDS),s()):(_==null?void 0:_.length)===1?(r(u.SEARCH),s(),T([])):(r(u.SEARCH),s())}function O(){r(u.SEARCH),s(),T([])}function R(){r(L?u.LOCATION_DETAILS:u.WAYFINDING)}const F=[tt.jsx(k1,{isOpen:a===u.SEARCH,children:tt.jsx(bj,{isOpen:a===u.SEARCH})},"A"),tt.jsx(k1,{isOpen:a===u.EXTERNALIDS,children:tt.jsx(wj,{onBack:()=>O(),locations:_,onLocationClick:K=>s(K),onLocationsFiltered:K=>T(K)})},"B"),tt.jsx(k1,{isOpen:a===u.LOCATION_DETAILS,children:tt.jsx(hj,{onStartWayfinding:()=>r(u.WAYFINDING),onBack:()=>N(),onStartDirections:()=>r(u.DIRECTIONS)})},"C"),tt.jsx(k1,{isOpen:a===u.WAYFINDING,children:tt.jsx(gj,{onStartDirections:()=>r(u.DIRECTIONS),directionsToLocation:t,directionsFromLocation:e,onBack:()=>r(y?u.LOCATION_DETAILS:u.SEARCH),isActive:a===u.WAYFINDING})},"D"),tt.jsx(k1,{isOpen:a===u.DIRECTIONS,children:tt.jsx(_j,{isOpen:a===u.DIRECTIONS,onBack:()=>R(),onRouteFinished:()=>p()})},"E")];return tt.jsx("div",{"data-sentry-component":"Sidebar","data-sentry-source-file":"Sidebar.jsx",children:F})}const Ij=e=>{const[t,r]=ke.useState(),a=Zt(r2),u=Zt(U7);return ke.useEffect(()=>{u&&e&&(e==="USER_POSITION"&&!a?(r("USER_POSITION_PENDING"),u.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(p=>r(p)),a&&e==="USER_POSITION"&&r(KT(a)))},[e,a,u]),t},vxe="";function Tce(){const e=Zt(LT),t=ke.useRef();return ke.useEffect(()=>{var r;(r=t.current)==null||r.classList.add("notification"),e?t.current.push(e.text,e.type,!0):t.current.clearAll()},[e]),tt.jsx("mi-notification",{ref:t,position:"top-center","data-sentry-element":"mi-notification","data-sentry-component":"Notification","data-sentry-source-file":"Notification.jsx"})}const xxe="";var O1={},Sce=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Tj={},Qs={};let nS;const Ece=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];Qs.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17},Qs.getSymbolTotalCodewords=function(t){return Ece[t]},Qs.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t},Qs.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');nS=t},Qs.isKanjiModeEnabled=function(){return typeof nS<"u"},Qs.toSJIS=function(t){return nS(t)};var v2={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+r)}}e.isValid=function(a){return a&&typeof a.bit<"u"&&a.bit>=0&&a.bit<4},e.from=function(a,u){if(e.isValid(a))return a;try{return t(a)}catch{return u}}})(v2);function Sj(){this.buffer=[],this.length=0}Sj.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var Dce=Sj;function j1(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}j1.prototype.set=function(e,t,r,a){const u=e*this.size+t;this.data[u]=r,a&&(this.reservedBit[u]=!0)},j1.prototype.get=function(e,t){return this.data[e*this.size+t]},j1.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},j1.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var Cce=j1,Ej={};(function(e){const t=Qs.getSymbolSize;e.getRowColCoords=function(a){if(a===1)return[];const u=Math.floor(a/7)+2,p=t(a),y=p===145?26:Math.ceil((p-13)/(2*u-2))*2,s=[p-7];for(let _=1;_<u-1;_++)s[_]=s[_-1]-y;return s.push(6),s.reverse()},e.getPositions=function(a){const u=[],p=e.getRowColCoords(a),y=p.length;for(let s=0;s<y;s++)for(let _=0;_<y;_++)s===0&&_===0||s===0&&_===y-1||s===y-1&&_===0||u.push([p[s],p[_]]);return u}})(Ej);var Dj={};const Ace=Qs.getSymbolSize,Cj=7;Dj.getPositions=function(t){const r=Ace(t);return[[0,0],[r-Cj,0],[0,r-Cj]]};var Aj={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(u){return u!=null&&u!==""&&!isNaN(u)&&u>=0&&u<=7},e.from=function(u){return e.isValid(u)?parseInt(u,10):void 0},e.getPenaltyN1=function(u){const p=u.size;let y=0,s=0,_=0,T=null,D=null;for(let L=0;L<p;L++){s=_=0,T=D=null;for(let N=0;N<p;N++){let O=u.get(L,N);O===T?s++:(s>=5&&(y+=t.N1+(s-5)),T=O,s=1),O=u.get(N,L),O===D?_++:(_>=5&&(y+=t.N1+(_-5)),D=O,_=1)}s>=5&&(y+=t.N1+(s-5)),_>=5&&(y+=t.N1+(_-5))}return y},e.getPenaltyN2=function(u){const p=u.size;let y=0;for(let s=0;s<p-1;s++)for(let _=0;_<p-1;_++){const T=u.get(s,_)+u.get(s,_+1)+u.get(s+1,_)+u.get(s+1,_+1);(T===4||T===0)&&y++}return y*t.N2},e.getPenaltyN3=function(u){const p=u.size;let y=0,s=0,_=0;for(let T=0;T<p;T++){s=_=0;for(let D=0;D<p;D++)s=s<<1&2047|u.get(T,D),D>=10&&(s===1488||s===93)&&y++,_=_<<1&2047|u.get(D,T),D>=10&&(_===1488||_===93)&&y++}return y*t.N3},e.getPenaltyN4=function(u){let p=0;const y=u.data.length;for(let _=0;_<y;_++)p+=u.data[_];return Math.abs(Math.ceil(p*100/y/5)-10)*t.N4};function r(a,u,p){switch(a){case e.Patterns.PATTERN000:return(u+p)%2===0;case e.Patterns.PATTERN001:return u%2===0;case e.Patterns.PATTERN010:return p%3===0;case e.Patterns.PATTERN011:return(u+p)%3===0;case e.Patterns.PATTERN100:return(Math.floor(u/2)+Math.floor(p/3))%2===0;case e.Patterns.PATTERN101:return u*p%2+u*p%3===0;case e.Patterns.PATTERN110:return(u*p%2+u*p%3)%2===0;case e.Patterns.PATTERN111:return(u*p%3+(u+p)%2)%2===0;default:throw new Error("bad maskPattern:"+a)}}e.applyMask=function(u,p){const y=p.size;for(let s=0;s<y;s++)for(let _=0;_<y;_++)p.isReserved(_,s)||p.xor(_,s,r(u,_,s))},e.getBestMask=function(u,p){const y=Object.keys(e.Patterns).length;let s=0,_=1/0;for(let T=0;T<y;T++){p(T),e.applyMask(T,u);const D=e.getPenaltyN1(u)+e.getPenaltyN2(u)+e.getPenaltyN3(u)+e.getPenaltyN4(u);e.applyMask(T,u),D<_&&(_=D,s=T)}return s}})(Aj);var x2={};const Su=v2,M2=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],b2=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];x2.getBlocksCount=function(t,r){switch(r){case Su.L:return M2[(t-1)*4+0];case Su.M:return M2[(t-1)*4+1];case Su.Q:return M2[(t-1)*4+2];case Su.H:return M2[(t-1)*4+3];default:return}},x2.getTotalCodewordsCount=function(t,r){switch(r){case Su.L:return b2[(t-1)*4+0];case Su.M:return b2[(t-1)*4+1];case Su.Q:return b2[(t-1)*4+2];case Su.H:return b2[(t-1)*4+3];default:return}};var Nj={},w2={};const R1=new Uint8Array(512),I2=new Uint8Array(256);(function(){let t=1;for(let r=0;r<255;r++)R1[r]=t,I2[t]=r,t<<=1,t&256&&(t^=285);for(let r=255;r<512;r++)R1[r]=R1[r-255]})(),w2.log=function(t){if(t<1)throw new Error("log("+t+")");return I2[t]},w2.exp=function(t){return R1[t]},w2.mul=function(t,r){return t===0||r===0?0:R1[I2[t]+I2[r]]},function(e){const t=w2;e.mul=function(a,u){const p=new Uint8Array(a.length+u.length-1);for(let y=0;y<a.length;y++)for(let s=0;s<u.length;s++)p[y+s]^=t.mul(a[y],u[s]);return p},e.mod=function(a,u){let p=new Uint8Array(a);for(;p.length-u.length>=0;){const y=p[0];for(let _=0;_<u.length;_++)p[_]^=t.mul(u[_],y);let s=0;for(;s<p.length&&p[s]===0;)s++;p=p.slice(s)}return p},e.generateECPolynomial=function(a){let u=new Uint8Array([1]);for(let p=0;p<a;p++)u=e.mul(u,new Uint8Array([1,t.exp(p)]));return u}}(Nj);const Lj=Nj;function iS(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}iS.prototype.initialize=function(t){this.degree=t,this.genPoly=Lj.generateECPolynomial(this.degree)},iS.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const r=new Uint8Array(t.length+this.degree);r.set(t);const a=Lj.mod(r,this.genPoly),u=this.degree-a.length;if(u>0){const p=new Uint8Array(this.degree);return p.set(a,u),p}return a};var Nce=iS,zj={},Eu={},rS={};rS.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var yl={};const kj="[0-9]+",Lce="[A-Z $%*+\\-./:]+";let P1="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";P1=P1.replace(/u/g,"\\u");const zce="(?:(?![A-Z0-9 $%*+\\-./:]|"+P1+`)(?:.|[\r
|
|
2312
2312
|
]))+`;yl.KANJI=new RegExp(P1,"g"),yl.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),yl.BYTE=new RegExp(zce,"g"),yl.NUMERIC=new RegExp(kj,"g"),yl.ALPHANUMERIC=new RegExp(Lce,"g");const kce=new RegExp("^"+P1+"$"),Oce=new RegExp("^"+kj+"$"),jce=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");yl.testKanji=function(t){return kce.test(t)},yl.testNumeric=function(t){return Oce.test(t)},yl.testAlphanumeric=function(t){return jce.test(t)},function(e){const t=rS,r=yl;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(p,y){if(!p.ccBits)throw new Error("Invalid mode: "+p);if(!t.isValid(y))throw new Error("Invalid version: "+y);return y>=1&&y<10?p.ccBits[0]:y<27?p.ccBits[1]:p.ccBits[2]},e.getBestModeForData=function(p){return r.testNumeric(p)?e.NUMERIC:r.testAlphanumeric(p)?e.ALPHANUMERIC:r.testKanji(p)?e.KANJI:e.BYTE},e.toString=function(p){if(p&&p.id)return p.id;throw new Error("Invalid mode")},e.isValid=function(p){return p&&p.bit&&p.ccBits};function a(u){if(typeof u!="string")throw new Error("Param is not a string");switch(u.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+u)}}e.from=function(p,y){if(e.isValid(p))return p;try{return a(p)}catch{return y}}}(Eu),function(e){const t=Qs,r=x2,a=v2,u=Eu,p=rS,y=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,s=t.getBCHDigit(y);function _(N,O,R){for(let F=1;F<=40;F++)if(O<=e.getCapacity(F,R,N))return F}function T(N,O){return u.getCharCountIndicator(N,O)+4}function D(N,O){let R=0;return N.forEach(function(F){const K=T(F.mode,O);R+=K+F.getBitsLength()}),R}function L(N,O){for(let R=1;R<=40;R++)if(D(N,R)<=e.getCapacity(R,O,u.MIXED))return R}e.from=function(O,R){return p.isValid(O)?parseInt(O,10):R},e.getCapacity=function(O,R,F){if(!p.isValid(O))throw new Error("Invalid QR Code version");typeof F>"u"&&(F=u.BYTE);const K=t.getSymbolTotalCodewords(O),Y=r.getTotalCodewordsCount(O,R),H=(K-Y)*8;if(F===u.MIXED)return H;const Z=H-T(F,O);switch(F){case u.NUMERIC:return Math.floor(Z/10*3);case u.ALPHANUMERIC:return Math.floor(Z/11*2);case u.KANJI:return Math.floor(Z/13);case u.BYTE:default:return Math.floor(Z/8)}},e.getBestVersionForData=function(O,R){let F;const K=a.from(R,a.M);if(Array.isArray(O)){if(O.length>1)return L(O,K);if(O.length===0)return 1;F=O[0]}else F=O;return _(F.mode,F.getLength(),K)},e.getEncodedBits=function(O){if(!p.isValid(O)||O<7)throw new Error("Invalid QR Code version");let R=O<<12;for(;t.getBCHDigit(R)-s>=0;)R^=y<<t.getBCHDigit(R)-s;return O<<12|R}}(zj);var Oj={};const oS=Qs,jj=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,Rce=1<<14|1<<12|1<<10|1<<4|1<<1,Rj=oS.getBCHDigit(jj);Oj.getEncodedBits=function(t,r){const a=t.bit<<3|r;let u=a<<10;for(;oS.getBCHDigit(u)-Rj>=0;)u^=jj<<oS.getBCHDigit(u)-Rj;return(a<<10|u)^Rce};var Pj={};const Pce=Eu;function Ip(e){this.mode=Pce.NUMERIC,this.data=e.toString()}Ip.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},Ip.prototype.getLength=function(){return this.data.length},Ip.prototype.getBitsLength=function(){return Ip.getBitsLength(this.data.length)},Ip.prototype.write=function(t){let r,a,u;for(r=0;r+3<=this.data.length;r+=3)a=this.data.substr(r,3),u=parseInt(a,10),t.put(u,10);const p=this.data.length-r;p>0&&(a=this.data.substr(r),u=parseInt(a,10),t.put(u,p*3+1))};var Uce=Ip;const Bce=Eu,sS=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Tp(e){this.mode=Bce.ALPHANUMERIC,this.data=e}Tp.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},Tp.prototype.getLength=function(){return this.data.length},Tp.prototype.getBitsLength=function(){return Tp.getBitsLength(this.data.length)},Tp.prototype.write=function(t){let r;for(r=0;r+2<=this.data.length;r+=2){let a=sS.indexOf(this.data[r])*45;a+=sS.indexOf(this.data[r+1]),t.put(a,11)}this.data.length%2&&t.put(sS.indexOf(this.data[r]),6)};var Fce=Tp,Vce=function(t){for(var r=[],a=t.length,u=0;u<a;u++){var p=t.charCodeAt(u);if(p>=55296&&p<=56319&&a>u+1){var y=t.charCodeAt(u+1);y>=56320&&y<=57343&&(p=(p-55296)*1024+y-56320+65536,u+=1)}if(p<128){r.push(p);continue}if(p<2048){r.push(p>>6|192),r.push(p&63|128);continue}if(p<55296||p>=57344&&p<65536){r.push(p>>12|224),r.push(p>>6&63|128),r.push(p&63|128);continue}if(p>=65536&&p<=1114111){r.push(p>>18|240),r.push(p>>12&63|128),r.push(p>>6&63|128),r.push(p&63|128);continue}r.push(239,191,189)}return new Uint8Array(r).buffer};const $ce=Vce,Qce=Eu;function Sp(e){this.mode=Qce.BYTE,typeof e=="string"&&(e=$ce(e)),this.data=new Uint8Array(e)}Sp.getBitsLength=function(t){return t*8},Sp.prototype.getLength=function(){return this.data.length},Sp.prototype.getBitsLength=function(){return Sp.getBitsLength(this.data.length)},Sp.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)};var Hce=Sp;const Yce=Eu,Gce=Qs;function Ep(e){this.mode=Yce.KANJI,this.data=e}Ep.getBitsLength=function(t){return t*13},Ep.prototype.getLength=function(){return this.data.length},Ep.prototype.getBitsLength=function(){return Ep.getBitsLength(this.data.length)},Ep.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=Gce.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
|
|
2313
2313
|
Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var Zce=Ep,Uj={exports:{}};(function(e){var t={single_source_shortest_paths:function(r,a,u){var p={},y={};y[a]=0;var s=t.PriorityQueue.make();s.push(a,0);for(var _,T,D,L,N,O,R,F,K;!s.empty();){_=s.pop(),T=_.value,L=_.cost,N=r[T]||{};for(D in N)N.hasOwnProperty(D)&&(O=N[D],R=L+O,F=y[D],K=typeof y[D]>"u",(K||F>R)&&(y[D]=R,s.push(D,R),p[D]=T))}if(typeof u<"u"&&typeof y[u]>"u"){var Y=["Could not find a path from ",a," to ",u,"."].join("");throw new Error(Y)}return p},extract_shortest_path_from_predecessor_list:function(r,a){for(var u=[],p=a;p;)u.push(p),r[p],p=r[p];return u.reverse(),u},find_path:function(r,a,u){var p=t.single_source_shortest_paths(r,a,u);return t.extract_shortest_path_from_predecessor_list(p,u)},PriorityQueue:{make:function(r){var a=t.PriorityQueue,u={},p;r=r||{};for(p in a)a.hasOwnProperty(p)&&(u[p]=a[p]);return u.queue=[],u.sorter=r.sorter||a.default_sorter,u},default_sorter:function(r,a){return r.cost-a.cost},push:function(r,a){var u={value:r,cost:a};this.queue.push(u),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Uj);var Wce=Uj.exports;(function(e){const t=Eu,r=Uce,a=Fce,u=Hce,p=Zce,y=yl,s=Qs,_=Wce;function T(Y){return unescape(encodeURIComponent(Y)).length}function D(Y,H,Z){const J=[];let ce;for(;(ce=Y.exec(Z))!==null;)J.push({data:ce[0],index:ce.index,mode:H,length:ce[0].length});return J}function L(Y){const H=D(y.NUMERIC,t.NUMERIC,Y),Z=D(y.ALPHANUMERIC,t.ALPHANUMERIC,Y);let J,ce;return s.isKanjiModeEnabled()?(J=D(y.BYTE,t.BYTE,Y),ce=D(y.KANJI,t.KANJI,Y)):(J=D(y.BYTE_KANJI,t.BYTE,Y),ce=[]),H.concat(Z,J,ce).sort(function(fe,be){return fe.index-be.index}).map(function(fe){return{data:fe.data,mode:fe.mode,length:fe.length}})}function N(Y,H){switch(H){case t.NUMERIC:return r.getBitsLength(Y);case t.ALPHANUMERIC:return a.getBitsLength(Y);case t.KANJI:return p.getBitsLength(Y);case t.BYTE:return u.getBitsLength(Y)}}function O(Y){return Y.reduce(function(H,Z){const J=H.length-1>=0?H[H.length-1]:null;return J&&J.mode===Z.mode?(H[H.length-1].data+=Z.data,H):(H.push(Z),H)},[])}function R(Y){const H=[];for(let Z=0;Z<Y.length;Z++){const J=Y[Z];switch(J.mode){case t.NUMERIC:H.push([J,{data:J.data,mode:t.ALPHANUMERIC,length:J.length},{data:J.data,mode:t.BYTE,length:J.length}]);break;case t.ALPHANUMERIC:H.push([J,{data:J.data,mode:t.BYTE,length:J.length}]);break;case t.KANJI:H.push([J,{data:J.data,mode:t.BYTE,length:T(J.data)}]);break;case t.BYTE:H.push([{data:J.data,mode:t.BYTE,length:T(J.data)}])}}return H}function F(Y,H){const Z={},J={start:{}};let ce=["start"];for(let pe=0;pe<Y.length;pe++){const fe=Y[pe],be=[];for(let He=0;He<fe.length;He++){const Ce=fe[He],qe=""+pe+He;be.push(qe),Z[qe]={node:Ce,lastCount:0},J[qe]={};for(let $e=0;$e<ce.length;$e++){const lt=ce[$e];Z[lt]&&Z[lt].node.mode===Ce.mode?(J[lt][qe]=N(Z[lt].lastCount+Ce.length,Ce.mode)-N(Z[lt].lastCount,Ce.mode),Z[lt].lastCount+=Ce.length):(Z[lt]&&(Z[lt].lastCount=Ce.length),J[lt][qe]=N(Ce.length,Ce.mode)+4+t.getCharCountIndicator(Ce.mode,H))}}ce=be}for(let pe=0;pe<ce.length;pe++)J[ce[pe]].end=0;return{map:J,table:Z}}function K(Y,H){let Z;const J=t.getBestModeForData(Y);if(Z=t.from(H,J),Z!==t.BYTE&&Z.bit<J.bit)throw new Error('"'+Y+'" cannot be encoded with mode '+t.toString(Z)+`.
|
|
2314
2314
|
Suggested mode is: `+t.toString(J));switch(Z===t.KANJI&&!s.isKanjiModeEnabled()&&(Z=t.BYTE),Z){case t.NUMERIC:return new r(Y);case t.ALPHANUMERIC:return new a(Y);case t.KANJI:return new p(Y);case t.BYTE:return new u(Y)}}e.fromArray=function(H){return H.reduce(function(Z,J){return typeof J=="string"?Z.push(K(J,null)):J.data&&Z.push(K(J.data,J.mode)),Z},[])},e.fromString=function(H,Z){const J=L(H,s.isKanjiModeEnabled()),ce=R(J),pe=F(ce,Z),fe=_.find_path(pe.map,"start","end"),be=[];for(let He=1;He<fe.length-1;He++)be.push(pe.table[fe[He]].node);return e.fromArray(O(be))},e.rawSplit=function(H){return e.fromArray(L(H,s.isKanjiModeEnabled()))}})(Pj);const T2=Qs,aS=v2,qce=Dce,Kce=Cce,Xce=Ej,Jce=Dj,lS=Aj,cS=x2,eue=Nce,S2=zj,tue=Oj,nue=Eu,uS=Pj;function iue(e,t){const r=e.size,a=Jce.getPositions(t);for(let u=0;u<a.length;u++){const p=a[u][0],y=a[u][1];for(let s=-1;s<=7;s++)if(!(p+s<=-1||r<=p+s))for(let _=-1;_<=7;_++)y+_<=-1||r<=y+_||(s>=0&&s<=6&&(_===0||_===6)||_>=0&&_<=6&&(s===0||s===6)||s>=2&&s<=4&&_>=2&&_<=4?e.set(p+s,y+_,!0,!0):e.set(p+s,y+_,!1,!0))}}function rue(e){const t=e.size;for(let r=8;r<t-8;r++){const a=r%2===0;e.set(r,6,a,!0),e.set(6,r,a,!0)}}function oue(e,t){const r=Xce.getPositions(t);for(let a=0;a<r.length;a++){const u=r[a][0],p=r[a][1];for(let y=-2;y<=2;y++)for(let s=-2;s<=2;s++)y===-2||y===2||s===-2||s===2||y===0&&s===0?e.set(u+y,p+s,!0,!0):e.set(u+y,p+s,!1,!0)}}function sue(e,t){const r=e.size,a=S2.getEncodedBits(t);let u,p,y;for(let s=0;s<18;s++)u=Math.floor(s/3),p=s%3+r-8-3,y=(a>>s&1)===1,e.set(u,p,y,!0),e.set(p,u,y,!0)}function hS(e,t,r){const a=e.size,u=tue.getEncodedBits(t,r);let p,y;for(p=0;p<15;p++)y=(u>>p&1)===1,p<6?e.set(p,8,y,!0):p<8?e.set(p+1,8,y,!0):e.set(a-15+p,8,y,!0),p<8?e.set(8,a-p-1,y,!0):p<9?e.set(8,15-p-1+1,y,!0):e.set(8,15-p-1,y,!0);e.set(a-8,8,1,!0)}function aue(e,t){const r=e.size;let a=-1,u=r-1,p=7,y=0;for(let s=r-1;s>0;s-=2)for(s===6&&s--;;){for(let _=0;_<2;_++)if(!e.isReserved(u,s-_)){let T=!1;y<t.length&&(T=(t[y]>>>p&1)===1),e.set(u,s-_,T),p--,p===-1&&(y++,p=7)}if(u+=a,u<0||r<=u){u-=a,a=-a;break}}}function lue(e,t,r){const a=new qce;r.forEach(function(_){a.put(_.mode.bit,4),a.put(_.getLength(),nue.getCharCountIndicator(_.mode,e)),_.write(a)});const u=T2.getSymbolTotalCodewords(e),p=cS.getTotalCodewordsCount(e,t),y=(u-p)*8;for(a.getLengthInBits()+4<=y&&a.put(0,4);a.getLengthInBits()%8!==0;)a.putBit(0);const s=(y-a.getLengthInBits())/8;for(let _=0;_<s;_++)a.put(_%2?17:236,8);return cue(a,e,t)}function cue(e,t,r){const a=T2.getSymbolTotalCodewords(t),u=cS.getTotalCodewordsCount(t,r),p=a-u,y=cS.getBlocksCount(t,r),s=a%y,_=y-s,T=Math.floor(a/y),D=Math.floor(p/y),L=D+1,N=T-D,O=new eue(N);let R=0;const F=new Array(y),K=new Array(y);let Y=0;const H=new Uint8Array(e.buffer);for(let fe=0;fe<y;fe++){const be=fe<_?D:L;F[fe]=H.slice(R,R+be),K[fe]=O.encode(F[fe]),R+=be,Y=Math.max(Y,be)}const Z=new Uint8Array(a);let J=0,ce,pe;for(ce=0;ce<Y;ce++)for(pe=0;pe<y;pe++)ce<F[pe].length&&(Z[J++]=F[pe][ce]);for(ce=0;ce<N;ce++)for(pe=0;pe<y;pe++)Z[J++]=K[pe][ce];return Z}function uue(e,t,r,a){let u;if(Array.isArray(e))u=uS.fromArray(e);else if(typeof e=="string"){let T=t;if(!T){const D=uS.rawSplit(e);T=S2.getBestVersionForData(D,r)}u=uS.fromString(e,T||40)}else throw new Error("Invalid data");const p=S2.getBestVersionForData(u,r);if(!p)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=p;else if(t<p)throw new Error(`
|