@mapsindoors/map-template 1.44.2 → 1.44.3

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.
Files changed (50) hide show
  1. package/dist/{_commonjsHelpers-ba3f0406-1b43c1be.mjs → _commonjsHelpers-ba3f0406-b365bfe7.mjs} +2 -2
  2. package/dist/combo-box-item.entry-345c20a3.mjs +22 -0
  3. package/dist/{icon-b8d01d6f-706e205a.mjs → icon-b8d01d6f-900d5034.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +1 -1
  5. package/dist/mapsindoors-react.umd.js +4 -4
  6. package/dist/mapsindoors-webcomponent.es.js +13 -13
  7. package/dist/mapsindoors-webcomponent.umd.js +4 -4
  8. package/dist/{mi-card_2.entry-c26b382b.mjs → mi-card_2.entry-6bc4ff53.mjs} +2 -2
  9. package/dist/{mi-chip.entry-75dd30a9.mjs → mi-chip.entry-b2169d4c.mjs} +2 -2
  10. package/dist/{mi-column.entry-9f727037.mjs → mi-column.entry-b02f82da.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-f7ef9c45.mjs → mi-combo-box.entry-2343a50f.mjs} +4 -4
  12. package/dist/{mi-data-table.entry-ee80a9b0.mjs → mi-data-table.entry-ac669645.mjs} +3 -3
  13. package/dist/{mi-distance_2.entry-393cf3d1.mjs → mi-distance_2.entry-f33b390a.mjs} +3 -3
  14. package/dist/mi-dropdown-item.entry-3951b56f.mjs +22 -0
  15. package/dist/{mi-dropdown.entry-60f99b89.mjs → mi-dropdown.entry-b3313e7a.mjs} +33 -33
  16. package/dist/{mi-floor-selector.entry-7ea03e26.mjs → mi-floor-selector.entry-dff357ee.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-882b206f.mjs → mi-keyboard.entry-acea57cd.mjs} +3 -3
  18. package/dist/{mi-list-item-category.entry-e5898ac7.mjs → mi-list-item-category.entry-bd936263.mjs} +4 -4
  19. package/dist/{mi-list-item-location.entry-6973b0f7.mjs → mi-list-item-location.entry-e2d33c66.mjs} +4 -4
  20. package/dist/{mi-list.entry-7e44aa9c.mjs → mi-list.entry-12493f9a.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-9f5b3bd1.mjs → mi-location-booking.entry-393d6ad0.mjs} +3 -3
  22. package/dist/{mi-location-info.entry-e7dc52bf.mjs → mi-location-info.entry-5cbf7cb6.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-b9f27e6c.mjs → mi-map-googlemaps.entry-8d8748ea.mjs} +3 -3
  24. package/dist/{mi-map-mapbox.entry-4f03ccd2.mjs → mi-map-mapbox.entry-d4d21c4f.mjs} +3 -3
  25. package/dist/{mi-metric-card.entry-e07f13ee.mjs → mi-metric-card.entry-b3489f25.mjs} +3 -3
  26. package/dist/{mi-my-position.entry-55a9ef1f.mjs → mi-my-position.entry-f825c9f3.mjs} +3 -3
  27. package/dist/{mi-notification.entry-25c9848c.mjs → mi-notification.entry-2668b6a1.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-0e294bd2.mjs → mi-route-instructions-heading.entry-51c1c131.mjs} +4 -4
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-963d825e.mjs → mi-route-instructions-maneuver-legacy.entry-658fed67.mjs} +3 -3
  30. package/dist/{mi-route-instructions-maneuver.entry-6448a6c3.mjs → mi-route-instructions-maneuver.entry-982b0460.mjs} +3 -3
  31. package/dist/{mi-route-instructions-step-legacy.entry-334c9f25.mjs → mi-route-instructions-step-legacy.entry-b201f44a.mjs} +4 -4
  32. package/dist/{mi-route-instructions-step.entry-f9e5400b.mjs → mi-route-instructions-step.entry-d4679ab2.mjs} +4 -4
  33. package/dist/{mi-route-instructions.entry-409fe31f.mjs → mi-route-instructions.entry-ae234dd1.mjs} +5 -5
  34. package/dist/{mi-scroll-buttons.entry-243df826.mjs → mi-scroll-buttons.entry-83f7ff88.mjs} +2 -2
  35. package/dist/{mi-search.entry-c4186039.mjs → mi-search.entry-3faadaa8.mjs} +3 -3
  36. package/dist/{mi-share-sms.entry-fbf1284f.mjs → mi-share-sms.entry-9aa23447.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-60c2ee91.mjs → mi-step-switcher.entry-a378c371.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-78a58653.mjs → mi-tab-panel.entry-c7153f7d.mjs} +2 -2
  39. package/dist/{mi-tab.entry-448065dd.mjs → mi-tab.entry-2ffe9d3e.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-354cd598.mjs → mi-tabs.entry-128bca6f.mjs} +2 -2
  41. package/dist/{mi-time.entry-04f92ae6.mjs → mi-time.entry-37dce0ae.mjs} +2 -2
  42. package/dist/{mi-variables-9a6c8d4d-31b02b92.mjs → mi-variables-9a6c8d4d-80303e34.mjs} +2 -2
  43. package/dist/{reactcomponent-06b957e9.mjs → reactcomponent-ac813731.mjs} +6 -6
  44. package/dist/{route-travel-mode.enum-7f4ce9c7-2aa97bf4.mjs → route-travel-mode.enum-7f4ce9c7-2a4bbdbf.mjs} +2 -2
  45. package/dist/{sort-order.enum-64ce8998-6fc39032.mjs → sort-order.enum-64ce8998-7c3905bd.mjs} +3 -3
  46. package/dist/{unit-system.enum-eaefb53e-351965d0.mjs → unit-system.enum-eaefb53e-a912c4b5.mjs} +2 -2
  47. package/dist/{utils-ae714467-27d525da.mjs → utils-ae714467-a47ae5a0.mjs} +2 -2
  48. package/package.json +1 -1
  49. package/dist/combo-box-item.entry-9294ada5.mjs +0 -22
  50. package/dist/mi-dropdown-item.entry-d78bf191.mjs +0 -22
@@ -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{display:block}.mapsindoors-map--hide-elements mi-floor-selector{visibility:hidden}.mapsindoors-map--hide-elements .venue-selector__button{display:none}.mapsindoors-map--show-my-position mi-my-position{display:block}.mapsindoors-map--hide-my-position mi-my-position{display:none}.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}.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-xx-large);height:var(--spacing-xx-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__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)}.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);word-break:break-all}.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)}.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 Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lc=new Error().stack;Lc&&(Ga._sentryDebugIds=Ga._sentryDebugIds||{},Ga._sentryDebugIds[Lc]="9583ba9b-e1b7-4da5-80f7-059648eeacd9",Ga._sentryDebugIdIdentifier="sentry-dbid-9583ba9b-e1b7-4da5-80f7-059648eeacd9")}catch{}})();(function(Ga,Lc){typeof exports=="object"&&typeof module<"u"?module.exports=Lc():typeof define=="function"&&define.amd?define(Lc):(Ga=typeof globalThis<"u"?globalThis:Ga||self,Ga.MapTemplate=Lc())})(this,function(){"use strict";var Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Ga.SENTRY_RELEASE={id:"94efb75c530ddd057846bf4c65442e9c6012f329"};var Lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PD={exports:{}},rV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oV=rV,sV=oV;function UD(){}function BD(){}BD.resetWarningCache=UD;var aV=function(){function e(s,u,f,m,a,v){if(v!==sV){var S=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 S.name="Invariant Violation",S}}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:BD,resetWarningCache:UD};return r.PropTypes=r,r};PD.exports=aV();var lV=PD.exports;const Tr=Rd(lV);var FD={exports:{}},Bi={};/**
2
+ (function(){try{var Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Lc=new Error().stack;Lc&&(Ga._sentryDebugIds=Ga._sentryDebugIds||{},Ga._sentryDebugIds[Lc]="2b5cc887-9fdf-484a-8697-8eb370297ba3",Ga._sentryDebugIdIdentifier="sentry-dbid-2b5cc887-9fdf-484a-8697-8eb370297ba3")}catch{}})();(function(Ga,Lc){typeof exports=="object"&&typeof module<"u"?module.exports=Lc():typeof define=="function"&&define.amd?define(Lc):(Ga=typeof globalThis<"u"?globalThis:Ga||self,Ga.MapTemplate=Lc())})(this,function(){"use strict";var Ga=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};Ga.SENTRY_RELEASE={id:"c75bc9ed00c4491767d8ca0aa604b2ed6d7e8e86"};var Lc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Rd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var PD={exports:{}},rV="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",oV=rV,sV=oV;function UD(){}function BD(){}BD.resetWarningCache=UD;var aV=function(){function e(s,u,f,m,a,v){if(v!==sV){var S=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 S.name="Invariant Violation",S}}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:BD,resetWarningCache:UD};return r.PropTypes=r,r};PD.exports=aV();var lV=PD.exports;const Tr=Rd(lV);var FD={exports:{}},Bi={};/**
3
3
  * @license React
4
4
  * react.production.min.js
5
5
  *
@@ -79,7 +79,7 @@ Sentry.init({ replaysOnErrorSampleRate: ${D} })`),this._initialOptions.errorSamp
79
79
  * LICENSE file in the root directory of this source tree.
80
80
  */var Eo=typeof Symbol=="function"&&Symbol.for,R5=Eo?Symbol.for("react.element"):60103,P5=Eo?Symbol.for("react.portal"):60106,Ev=Eo?Symbol.for("react.fragment"):60107,Dv=Eo?Symbol.for("react.strict_mode"):60108,Av=Eo?Symbol.for("react.profiler"):60114,Cv=Eo?Symbol.for("react.provider"):60109,Nv=Eo?Symbol.for("react.context"):60110,U5=Eo?Symbol.for("react.async_mode"):60111,Lv=Eo?Symbol.for("react.concurrent_mode"):60111,zv=Eo?Symbol.for("react.forward_ref"):60112,kv=Eo?Symbol.for("react.suspense"):60113,qX=Eo?Symbol.for("react.suspense_list"):60120,Ov=Eo?Symbol.for("react.memo"):60115,jv=Eo?Symbol.for("react.lazy"):60116,KX=Eo?Symbol.for("react.block"):60121,XX=Eo?Symbol.for("react.fundamental"):60117,JX=Eo?Symbol.for("react.responder"):60118,eJ=Eo?Symbol.for("react.scope"):60119;function Fs(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case R5:switch(e=e.type,e){case U5:case Lv:case Ev:case Av:case Dv:case kv:return e;default:switch(e=e&&e.$$typeof,e){case Nv:case zv:case jv:case Ov:case Cv:return e;default:return t}}case P5:return t}}}function Fz(e){return Fs(e)===Lv}hr.AsyncMode=U5,hr.ConcurrentMode=Lv,hr.ContextConsumer=Nv,hr.ContextProvider=Cv,hr.Element=R5,hr.ForwardRef=zv,hr.Fragment=Ev,hr.Lazy=jv,hr.Memo=Ov,hr.Portal=P5,hr.Profiler=Av,hr.StrictMode=Dv,hr.Suspense=kv,hr.isAsyncMode=function(e){return Fz(e)||Fs(e)===U5},hr.isConcurrentMode=Fz,hr.isContextConsumer=function(e){return Fs(e)===Nv},hr.isContextProvider=function(e){return Fs(e)===Cv},hr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===R5},hr.isForwardRef=function(e){return Fs(e)===zv},hr.isFragment=function(e){return Fs(e)===Ev},hr.isLazy=function(e){return Fs(e)===jv},hr.isMemo=function(e){return Fs(e)===Ov},hr.isPortal=function(e){return Fs(e)===P5},hr.isProfiler=function(e){return Fs(e)===Av},hr.isStrictMode=function(e){return Fs(e)===Dv},hr.isSuspense=function(e){return Fs(e)===kv},hr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ev||e===Lv||e===Av||e===Dv||e===kv||e===qX||typeof e=="object"&&e!==null&&(e.$$typeof===jv||e.$$typeof===Ov||e.$$typeof===Cv||e.$$typeof===Nv||e.$$typeof===zv||e.$$typeof===XX||e.$$typeof===JX||e.$$typeof===eJ||e.$$typeof===KX)},hr.typeOf=Fs,Bz.exports=hr;var tJ=Bz.exports,B5=tJ,nJ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},iJ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rJ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Vz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},F5={};F5[B5.ForwardRef]=rJ,F5[B5.Memo]=Vz;function $z(e){return B5.isMemo(e)?Vz:F5[e.$$typeof]||nJ}var oJ=Object.defineProperty,sJ=Object.getOwnPropertyNames,Qz=Object.getOwnPropertySymbols,aJ=Object.getOwnPropertyDescriptor,lJ=Object.getPrototypeOf,Hz=Object.prototype;function Yz(e,t,r){if(typeof t!="string"){if(Hz){var s=lJ(t);s&&s!==Hz&&Yz(e,s,r)}var u=sJ(t);Qz&&(u=u.concat(Qz(t)));for(var f=$z(e),m=$z(t),a=0;a<u.length;++a){var v=u[a];if(!iJ[v]&&!(r&&r[v])&&!(m&&m[v])&&!(f&&f[v])){var S=aJ(t,v);try{oJ(e,v,S)}catch{}}}}return e}var cJ=Yz;const uJ=Rd(cJ),hJ="ui.react.render",dJ="ui.react.update",fJ="ui.react.mount",Gz="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/profiler.tsx",pJ="unknown";class Zz extends Oe.Component{static __initStatic(){this.defaultProps={disabled:!1,includeRender:!0,includeUpdates:!0}}constructor(t){super(t);const{name:r,disabled:s=!1}=this.props;s||(this._mountSpan=dg({name:`<${r}>`,onlyIfParent:!0,op:fJ,origin:"auto.ui.react.profiler",attributes:{"ui.component_name":r}}))}componentDidMount(){this._mountSpan&&this._mountSpan.end()}shouldComponentUpdate({updateProps:t,includeUpdates:r=!0}){if(r&&this._mountSpan&&t!==this.props.updateProps){const s=Object.keys(t).filter(u=>t[u]!==this.props.updateProps[u]);if(s.length>0){const u=wh();this._updateSpan=aL(this._mountSpan,()=>dg({name:`<${this.props.name}>`,onlyIfParent:!0,op:dJ,origin:"auto.ui.react.profiler",startTimestamp:u,attributes:{"ui.component_name":this.props.name,"ui.react.changed_props":s}}))}}return!0}componentDidUpdate(){this._updateSpan&&(this._updateSpan.end(),this._updateSpan=void 0)}componentWillUnmount(){const t=wh(),{name:r,includeRender:s=!0}=this.props;if(this._mountSpan&&s){const u=Yr(this._mountSpan).timestamp;aL(this._mountSpan,()=>{const f=dg({onlyIfParent:!0,name:`<${r}>`,op:hJ,origin:"auto.ui.react.profiler",startTimestamp:u,attributes:{"ui.component_name":r}});f&&f.end(t)})}}render(){return this.props.children}}Zz.__initStatic();function mJ(e,t){const r=t&&t.name||e.displayName||e.name||pJ,s=u=>Oe.createElement(Zz,{...t,name:r,updateProps:u,__self:this,__source:{fileName:Gz,lineNumber:159}},Oe.createElement(e,{...u,__self:this,__source:{fileName:Gz,lineNumber:160}}));return s.displayName=`profiler(${r})`,uJ(s,e),s}function gJ(e){const t=vZ({...e,instrumentPageLoad:!1,instrumentNavigation:!1}),{useEffect:r,useLocation:s,useNavigationType:u,createRoutesFromChildren:f,matchRoutes:m,stripBasename:a,instrumentPageLoad:v=!0,instrumentNavigation:S=!0}=e;return{...t,afterAllSetup(D){t.afterAllSetup(D);const N=ir&&ir.location&&ir.location.pathname;v&&N&&s8(D,{name:N,attributes:{[nl]:"url",[fg]:"pageload",[Sh]:"auto.pageload.react.reactrouter_v6"}})}}}function yJ(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var _J=yJ,Li=_J;function vJ(e){return!!e&&typeof e.then=="function"}var Dr=vJ;function xJ(e,t){if(e!=null)return e;throw Li(t??"Got unexpected null or undefined")}var zr=xJ;function Ai(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}class Rv{getValue(){throw Li("BaseLoadable")}toPromise(){throw Li("BaseLoadable")}valueMaybe(){throw Li("BaseLoadable")}valueOrThrow(){throw Li(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Li("BaseLoadable")}promiseOrThrow(){throw Li(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Li("BaseLoadable")}errorOrThrow(){throw Li(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Li("BaseLoadable")}}class bJ extends Rv{constructor(t){super(),Ai(this,"state","hasValue"),Ai(this,"contents",void 0),this.contents=t}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(t){try{const r=t(this.contents);return Dr(r)?Dh(r):Uf(r)?r:Cg(r)}catch(r){return Dr(r)?Dh(r.next(()=>this.map(t))):Pv(r)}}}class MJ extends Rv{constructor(t){super(),Ai(this,"state","hasError"),Ai(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(t){return this}}class Wz extends Rv{constructor(t){super(),Ai(this,"state","loading"),Ai(this,"contents",void 0),this.contents=t}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(t){return Dh(this.contents.then(r=>{const s=t(r);if(Uf(s)){const u=s;switch(u.state){case"hasValue":return u.contents;case"hasError":throw u.contents;case"loading":return u.contents}}return s}).catch(r=>{if(Dr(r))return r.then(()=>this.map(t).contents);throw r}))}}function Cg(e){return Object.freeze(new bJ(e))}function Pv(e){return Object.freeze(new MJ(e))}function Dh(e){return Object.freeze(new Wz(e))}function qz(){return Object.freeze(new Wz(new Promise(()=>{})))}function wJ(e){return e.every(t=>t.state==="hasValue")?Cg(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Pv(zr(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Dh(Promise.all(e.map(t=>t.contents)))}function Kz(e){const r=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(u=>e[u])).map(u=>Uf(u)?u:Dr(u)?Dh(u):Cg(u)),s=wJ(r);return Array.isArray(e)?s:s.map(u=>Object.getOwnPropertyNames(e).reduce((f,m,a)=>({...f,[m]:u[a]}),{}))}function Uf(e){return e instanceof Rv}var Ah={loadableWithValue:Cg,loadableWithError:Pv,loadableWithPromise:Dh,loadableLoading:qz,loadableAll:Kz,isLoadable:Uf,RecoilLoadable:{of:e=>Dr(e)?Dh(e):Uf(e)?e:Cg(e),error:e=>Pv(e),loading:()=>qz(),all:Kz,isLoadable:Uf}},IJ=Ah.loadableWithValue,TJ=Ah.loadableWithError,SJ=Ah.loadableWithPromise,EJ=Ah.loadableLoading,DJ=Ah.loadableAll,AJ=Ah.isLoadable,CJ=Ah.RecoilLoadable,Ng=Object.freeze({__proto__:null,loadableWithValue:IJ,loadableWithError:TJ,loadableWithPromise:SJ,loadableLoading:EJ,loadableAll:DJ,isLoadable:AJ,RecoilLoadable:CJ});const V5={RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED:!0,RECOIL_GKS_ENABLED:new Set(["recoil_hamt_2020","recoil_sync_external_store","recoil_suppress_rerender_in_callback","recoil_memory_managament_2020"])};function NJ(e,t){var r,s;const u=(r=process.env[e])===null||r===void 0||(s=r.toLowerCase())===null||s===void 0?void 0:s.trim();if(u==null||u==="")return;if(!["true","false"].includes(u))throw Li(`process.env.${e} value must be 'true', 'false', or empty: ${u}`);t(u==="true")}function LJ(e,t){var r;const s=(r=process.env[e])===null||r===void 0?void 0:r.trim();s==null||s===""||t(s.split(/\s*,\s*|\s+/))}function zJ(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(NJ("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{V5.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),LJ("RECOIL_GKS_ENABLED",t=>{t.forEach(r=>{V5.RECOIL_GKS_ENABLED.add(r)})}))}zJ();var Bf=V5;function Uv(e){return Bf.RECOIL_GKS_ENABLED.has(e)}Uv.setPass=e=>{Bf.RECOIL_GKS_ENABLED.add(e)},Uv.setFail=e=>{Bf.RECOIL_GKS_ENABLED.delete(e)},Uv.clear=()=>{Bf.RECOIL_GKS_ENABLED.clear()};var vr=Uv;function kJ(e,t,{error:r}={}){return null}var OJ=kJ,$5=OJ,Q5,H5,Y5;const jJ=(Q5=Vi.createMutableSource)!==null&&Q5!==void 0?Q5:Vi.unstable_createMutableSource,Xz=(H5=Vi.useMutableSource)!==null&&H5!==void 0?H5:Vi.unstable_useMutableSource,Jz=(Y5=Vi.useSyncExternalStore)!==null&&Y5!==void 0?Y5:Vi.unstable_useSyncExternalStore;function RJ(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:r}=Vi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:r.currentDispatcher).useSyncExternalStore!=null}function PJ(){return vr("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:vr("recoil_sync_external_store")&&Jz!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:vr("recoil_mutable_source")&&Xz!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?vr("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:vr("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function UJ(){return!1}var Lg={createMutableSource:jJ,useMutableSource:Xz,useSyncExternalStore:Jz,currentRendererSupportsUseSyncExternalStore:RJ,reactMode:PJ,isFastRefreshEnabled:UJ};class G5{constructor(t){Ai(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class ek extends G5{}class tk extends G5{}function BJ(e){return e instanceof ek||e instanceof tk}var Bv={AbstractRecoilValue:G5,RecoilState:ek,RecoilValueReadOnly:tk,isRecoilValue:BJ},FJ=Bv.AbstractRecoilValue,VJ=Bv.RecoilState,$J=Bv.RecoilValueReadOnly,QJ=Bv.isRecoilValue,Ff=Object.freeze({__proto__:null,AbstractRecoilValue:FJ,RecoilState:VJ,RecoilValueReadOnly:$J,isRecoilValue:QJ});function HJ(e,t){return function*(){let r=0;for(const s of e)yield t(s,r++)}()}var Fv=HJ;class nk{}const YJ=new nk,Ch=new Map,Z5=new Map;function GJ(e){return Fv(e,t=>zr(Z5.get(t)))}function ZJ(e){if(Ch.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
81
81
  production. But it is safe to ignore this warning if it occurred because of
82
- hot module replacement.`;console.warn(t)}}function WJ(e){Bf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&ZJ(e.key),Ch.set(e.key,e);const t=e.set==null?new Ff.RecoilValueReadOnly(e.key):new Ff.RecoilState(e.key);return Z5.set(e.key,t),t}class ik extends Error{}function qJ(e){const t=Ch.get(e);if(t==null)throw new ik(`Missing definition for RecoilValue: "${e}""`);return t}function KJ(e){return Ch.get(e)}const Vv=new Map;function XJ(e){var t;if(!vr("recoil_memory_managament_2020"))return;const r=Ch.get(e);if(r!=null&&(t=r.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(r)){var s;Ch.delete(e),(s=rk(e))===null||s===void 0||s(),Vv.delete(e)}}function JJ(e,t){vr("recoil_memory_managament_2020")&&(t===void 0?Vv.delete(e):Vv.set(e,t))}function rk(e){return Vv.get(e)}var vs={nodes:Ch,recoilValues:Z5,registerNode:WJ,getNode:qJ,getNodeMaybe:KJ,deleteNodeConfigIfPossible:XJ,setConfigDeletionHandler:JJ,getConfigDeletionHandler:rk,recoilValuesForKeys:GJ,NodeMissingError:ik,DefaultValue:nk,DEFAULT_VALUE:YJ};function eee(e,t){t()}var tee={enqueueExecution:eee};function nee(e,t){return t={exports:{}},e(t,t.exports),t.exports}var iee=nee(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},r={},s=5,u=Math.pow(2,s),f=u-1,m=u/2,a=u/4,v={},S=function(Pe){return function(){return Pe}},D=r.hash=function(Fe){var Pe=typeof Fe>"u"?"undefined":t(Fe);if(Pe==="number")return Fe;Pe!=="string"&&(Fe+="");for(var St=0,Xt=0,Dt=Fe.length;Xt<Dt;++Xt){var kt=Fe.charCodeAt(Xt);St=(St<<5)-St+kt|0}return St},N=function(Pe){return Pe-=Pe>>1&1431655765,Pe=(Pe&858993459)+(Pe>>2&858993459),Pe=Pe+(Pe>>4)&252645135,Pe+=Pe>>8,Pe+=Pe>>16,Pe&127},C=function(Pe,St){return St>>>Pe&f},O=function(Pe){return 1<<Pe},R=function(Pe,St){return N(Pe&St-1)},V=function(Pe,St,Xt,Dt){var kt=Dt;if(!Pe){var Ft=Dt.length;kt=new Array(Ft);for(var Vt=0;Vt<Ft;++Vt)kt[Vt]=Dt[Vt]}return kt[St]=Xt,kt},q=function(Pe,St,Xt){var Dt=Xt.length-1,kt=0,Ft=0,Vt=Xt;if(Pe)kt=Ft=St;else for(Vt=new Array(Dt);kt<St;)Vt[Ft++]=Xt[kt++];for(++kt;kt<=Dt;)Vt[Ft++]=Xt[kt++];return Pe&&(Vt.length=Dt),Vt},H=function(Pe,St,Xt,Dt){var kt=Dt.length;if(Pe){for(var Ft=kt;Ft>=St;)Dt[Ft--]=Dt[Ft];return Dt[St]=Xt,Dt}for(var Vt=0,tn=0,Sn=new Array(kt+1);Vt<St;)Sn[tn++]=Dt[Vt++];for(Sn[St]=Xt;Vt<kt;)Sn[++tn]=Dt[Vt++];return Sn},Y=1,W=2,ee=3,fe=4,pe={__hamt_isEmpty:!0},he=function(Pe){return Pe===pe||Pe&&Pe.__hamt_isEmpty},oe=function(Pe,St,Xt,Dt){return{type:Y,edit:Pe,hash:St,key:Xt,value:Dt,_modify:Ye}},Ve=function(Pe,St,Xt){return{type:W,edit:Pe,hash:St,children:Xt,_modify:qe}},De=function(Pe,St,Xt){return{type:ee,edit:Pe,mask:St,children:Xt,_modify:Ie}},Ae=function(Pe,St,Xt){return{type:fe,edit:Pe,size:St,children:Xt,_modify:Te}},Ge=function(Pe){return Pe===pe||Pe.type===Y||Pe.type===W},it=function(Pe,St,Xt,Dt,kt){for(var Ft=[],Vt=Dt,tn=0,Sn=0;Vt;++Sn)Vt&1&&(Ft[Sn]=kt[tn++]),Vt>>>=1;return Ft[St]=Xt,Ae(Pe,tn+1,Ft)},Ee=function(Pe,St,Xt,Dt){for(var kt=new Array(St-1),Ft=0,Vt=0,tn=0,Sn=Dt.length;tn<Sn;++tn)if(tn!==Xt){var Xn=Dt[tn];Xn&&!he(Xn)&&(kt[Ft++]=Xn,Vt|=1<<tn)}return De(Pe,Vt,kt)},Ze=function Fe(Pe,St,Xt,Dt,kt,Ft){if(Xt===kt)return Ve(Pe,Xt,[Ft,Dt]);var Vt=C(St,Xt),tn=C(St,kt);return De(Pe,O(Vt)|O(tn),Vt===tn?[Fe(Pe,St+s,Xt,Dt,kt,Ft)]:Vt<tn?[Dt,Ft]:[Ft,Dt])},ze=function(Pe,St,Xt,Dt,kt,Ft,Vt,tn){for(var Sn=kt.length,Xn=0;Xn<Sn;++Xn){var ai=kt[Xn];if(Xt(Vt,ai.key)){var Ei=ai.value,Wi=Ft(Ei);return Wi===Ei?kt:Wi===v?(--tn.value,q(Pe,Xn,kt)):V(Pe,Xn,oe(St,Dt,Vt,Wi),kt)}}var qi=Ft();return qi===v?kt:(++tn.value,V(Pe,Sn,oe(St,Dt,Vt,qi),kt))},Le=function(Pe,St){return Pe===St.edit},Ye=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(St(Ft,this.key)){var tn=Dt(this.value);return tn===this.value?this:tn===v?(--Vt.value,pe):Le(Pe,this)?(this.value=tn,this):oe(Pe,kt,Ft,tn)}var Sn=Dt();return Sn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Sn)))},qe=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(kt===this.hash){var tn=Le(Pe,this),Sn=ze(tn,Pe,St,this.hash,this.children,Dt,Ft,Vt);return Sn===this.children?this:Sn.length>1?Ve(Pe,this.hash,Sn):Sn[0]}var Xn=Dt();return Xn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Xn)))},Ie=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.mask,Sn=this.children,Xn=C(Xt,kt),ai=O(Xn),Ei=R(tn,ai),Wi=tn&ai,qi=Wi?Sn[Ei]:pe,Zn=qi._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(qi===Zn)return this;var Ki=Le(Pe,this),Mt=tn,It=void 0;if(Wi&&he(Zn)){if(Mt&=~ai,!Mt)return pe;if(Sn.length<=2&&Ge(Sn[Ei^1]))return Sn[Ei^1];It=q(Ki,Ei,Sn)}else if(!Wi&&!he(Zn)){if(Sn.length>=m)return it(Pe,Xn,Zn,tn,Sn);Mt|=ai,It=H(Ki,Ei,Zn,Sn)}else It=V(Ki,Ei,Zn,Sn);return Ki?(this.mask=Mt,this.children=It,this):De(Pe,Mt,It)},Te=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.size,Sn=this.children,Xn=C(Xt,kt),ai=Sn[Xn],Ei=(ai||pe)._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(ai===Ei)return this;var Wi=Le(Pe,this),qi=void 0;if(he(ai)&&!he(Ei))++tn,qi=V(Wi,Xn,Ei,Sn);else if(!he(ai)&&he(Ei)){if(--tn,tn<=a)return Ee(Pe,tn,Xn,Sn);qi=V(Wi,Xn,pe,Sn)}else qi=V(Wi,Xn,Ei,Sn);return Wi?(this.size=tn,this.children=qi,this):Ae(Pe,tn,qi)};pe._modify=function(Fe,Pe,St,Xt,Dt,kt,Ft){var Vt=Xt();return Vt===v?pe:(++Ft.value,oe(Fe,Dt,kt,Vt))};function le(Fe,Pe,St,Xt,Dt){this._editable=Fe,this._edit=Pe,this._config=St,this._root=Xt,this._size=Dt}le.prototype.setTree=function(Fe,Pe){return this._editable?(this._root=Fe,this._size=Pe,this):Fe===this._root?this:new le(this._editable,this._edit,this._config,Fe,Pe)};var X=r.tryGetHash=function(Fe,Pe,St,Xt){for(var Dt=Xt._root,kt=0,Ft=Xt._config.keyEq;;)switch(Dt.type){case Y:return Ft(St,Dt.key)?Dt.value:Fe;case W:{if(Pe===Dt.hash)for(var Vt=Dt.children,tn=0,Sn=Vt.length;tn<Sn;++tn){var Xn=Vt[tn];if(Ft(St,Xn.key))return Xn.value}return Fe}case ee:{var ai=C(kt,Pe),Ei=O(ai);if(Dt.mask&Ei){Dt=Dt.children[R(Dt.mask,Ei)],kt+=s;break}return Fe}case fe:{if(Dt=Dt.children[C(kt,Pe)],Dt){kt+=s;break}return Fe}default:return Fe}};le.prototype.tryGetHash=function(Fe,Pe,St){return X(Fe,Pe,St,this)};var ie=r.tryGet=function(Fe,Pe,St){return X(Fe,St._config.hash(Pe),Pe,St)};le.prototype.tryGet=function(Fe,Pe){return ie(Fe,Pe,this)};var Me=r.getHash=function(Fe,Pe,St){return X(void 0,Fe,Pe,St)};le.prototype.getHash=function(Fe,Pe){return Me(Fe,Pe,this)},r.get=function(Fe,Pe){return X(void 0,Pe._config.hash(Fe),Fe,Pe)},le.prototype.get=function(Fe,Pe){return ie(Pe,Fe,this)};var xe=r.has=function(Fe,Pe,St){return X(v,Fe,Pe,St)!==v};le.prototype.hasHash=function(Fe,Pe){return xe(Fe,Pe,this)};var $e=r.has=function(Fe,Pe){return xe(Pe._config.hash(Fe),Fe,Pe)};le.prototype.has=function(Fe){return $e(Fe,this)};var He=function(Pe,St){return Pe===St};r.make=function(Fe){return new le(0,0,{keyEq:Fe&&Fe.keyEq||He,hash:Fe&&Fe.hash||D},pe,0)},r.empty=r.make();var Ue=r.isEmpty=function(Fe){return Fe&&!!he(Fe._root)};le.prototype.isEmpty=function(){return Ue(this)};var Xe=r.modifyHash=function(Fe,Pe,St,Xt){var Dt={value:Xt._size},kt=Xt._root._modify(Xt._editable?Xt._edit:NaN,Xt._config.keyEq,0,Fe,Pe,St,Dt);return Xt.setTree(kt,Dt.value)};le.prototype.modifyHash=function(Fe,Pe,St){return Xe(St,Fe,Pe,this)};var ut=r.modify=function(Fe,Pe,St){return Xe(Fe,St._config.hash(Pe),Pe,St)};le.prototype.modify=function(Fe,Pe){return ut(Pe,Fe,this)};var _t=r.setHash=function(Fe,Pe,St,Xt){return Xe(S(St),Fe,Pe,Xt)};le.prototype.setHash=function(Fe,Pe,St){return _t(Fe,Pe,St,this)};var et=r.set=function(Fe,Pe,St){return _t(St._config.hash(Fe),Fe,Pe,St)};le.prototype.set=function(Fe,Pe){return et(Fe,Pe,this)};var bt=S(v),Ot=r.removeHash=function(Fe,Pe,St){return Xe(bt,Fe,Pe,St)};le.prototype.removeHash=le.prototype.deleteHash=function(Fe,Pe){return Ot(Fe,Pe,this)};var Rt=r.remove=function(Fe,Pe){return Ot(Pe._config.hash(Fe),Fe,Pe)};le.prototype.remove=le.prototype.delete=function(Fe){return Rt(Fe,this)};var dn=r.beginMutation=function(Fe){return new le(Fe._editable+1,Fe._edit+1,Fe._config,Fe._root,Fe._size)};le.prototype.beginMutation=function(){return dn(this)};var Bn=r.endMutation=function(Fe){return Fe._editable=Fe._editable&&Fe._editable-1,Fe};le.prototype.endMutation=function(){return Bn(this)};var Tt=r.mutate=function(Fe,Pe){var St=dn(Pe);return Fe(St),Bn(St)};le.prototype.mutate=function(Fe){return Tt(Fe,this)};var kn=function(Pe){return Pe&&An(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4])},An=function(Pe,St,Xt,Dt,kt){for(;Xt<Pe;){var Ft=St[Xt++];if(Ft&&!he(Ft))return Cn(Ft,Dt,[Pe,St,Xt,Dt,kt])}return kn(kt)},Cn=function(Pe,St,Xt){switch(Pe.type){case Y:return{value:St(Pe),rest:Xt};case W:case fe:case ee:var Dt=Pe.children;return An(Dt.length,Dt,0,St,Xt);default:return kn(Xt)}},$n={done:!0};function ni(Fe){this.v=Fe}ni.prototype.next=function(){if(!this.v)return $n;var Fe=this.v;return this.v=kn(Fe.rest),Fe},ni.prototype[Symbol.iterator]=function(){return this};var st=function(Pe,St){return new ni(Cn(Pe._root,St))},se=function(Pe){return[Pe.key,Pe.value]},ce=r.entries=function(Fe){return st(Fe,se)};le.prototype.entries=le.prototype[Symbol.iterator]=function(){return ce(this)};var Ne=function(Pe){return Pe.key},ht=r.keys=function(Fe){return st(Fe,Ne)};le.prototype.keys=function(){return ht(this)};var vt=function(Pe){return Pe.value},pt=r.values=le.prototype.values=function(Fe){return st(Fe,vt)};le.prototype.values=function(){return pt(this)};var Ct=r.fold=function(Fe,Pe,St){var Xt=St._root;if(Xt.type===Y)return Fe(Pe,Xt.value,Xt.key);for(var Dt=[Xt.children],kt=void 0;kt=Dt.pop();)for(var Ft=0,Vt=kt.length;Ft<Vt;){var tn=kt[Ft++];tn&&tn.type&&(tn.type===Y?Pe=Fe(Pe,tn.value,tn.key):Dt.push(tn.children))}return Pe};le.prototype.fold=function(Fe,Pe){return Ct(Fe,Pe,this)};var mt=r.forEach=function(Fe,Pe){return Ct(function(St,Xt,Dt){return Fe(Xt,Dt,Pe)},null,Pe)};le.prototype.forEach=function(Fe){return mt(Fe,this)};var an=r.count=function(Fe){return Fe._size};le.prototype.count=function(){return an(this)},Object.defineProperty(le.prototype,"size",{get:le.prototype.count}),e.exports?e.exports=r:(void 0).hamt=r});class ree{constructor(t){Ai(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,r){return this._map.set(t,r),this}delete(t){return this._map.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._map)}}class W5{constructor(t){if(Ai(this,"_hamt",iee.empty.beginMutation()),t instanceof W5){const r=t._hamt.endMutation();t._hamt=r.beginMutation(),this._hamt=r.beginMutation()}else if(t)for(const[r,s]of t.entries())this._hamt.set(r,s)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,r){return this._hamt.set(t,r),this}delete(t){return this._hamt.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._hamt)}}function q5(e){return vr("recoil_hamt_2020")?new W5(e):new ree(e)}var oee={persistentMap:q5},see=oee.persistentMap,aee=Object.freeze({__proto__:null,persistentMap:see});function lee(e,...t){const r=new Set;e:for(const s of e){for(const u of t)if(u.has(s))continue e;r.add(s)}return r}var zg=lee;function cee(e,t){const r=new Map;return e.forEach((s,u)=>{r.set(u,t(s,u))}),r}var $v=cee;function uee(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function hee(e){return{nodeDeps:$v(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:$v(e.nodeToNodeSubscriptions,t=>new Set(t))}}function K5(e,t,r,s){const{nodeDeps:u,nodeToNodeSubscriptions:f}=r,m=u.get(e);if(m&&s&&m!==s.nodeDeps.get(e))return;u.set(e,t);const a=m==null?t:zg(t,m);for(const v of a)f.has(v)||f.set(v,new Set),zr(f.get(v)).add(e);if(m){const v=zg(m,t);for(const S of v){if(!f.has(S))return;const D=zr(f.get(S));D.delete(e),D.size===0&&f.delete(S)}}}function dee(e,t,r,s){var u,f,m,a;const v=r.getState();s===v.currentTree.version||s===((u=v.nextTree)===null||u===void 0?void 0:u.version)||((f=v.previousTree)===null||f===void 0||f.version);const S=r.getGraph(s);if(K5(e,t,S),s===((m=v.previousTree)===null||m===void 0?void 0:m.version)){const N=r.getGraph(v.currentTree.version);K5(e,t,N,S)}if(s===((a=v.previousTree)===null||a===void 0?void 0:a.version)||s===v.currentTree.version){var D;const N=(D=v.nextTree)===null||D===void 0?void 0:D.version;if(N!==void 0){const C=r.getGraph(N);K5(e,t,C,S)}}}var kg={cloneGraph:hee,graph:uee,saveDepsToStore:dee};let fee=0;const pee=()=>fee++;let mee=0;const gee=()=>mee++;let yee=0;var Qv={getNextTreeStateVersion:pee,getNextStoreID:gee,getNextComponentID:()=>yee++};const{persistentMap:ok}=aee,{graph:_ee}=kg,{getNextTreeStateVersion:sk}=Qv;function ak(){const e=sk();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ok(),nonvalidatedAtoms:ok()}}function vee(){const e=ak();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,_ee()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var lk={makeEmptyTreeState:ak,makeEmptyStoreState:vee,getNextTreeStateVersion:sk};class ck{}function xee(){return new ck}var Hv={RetentionZone:ck,retentionZone:xee};function bee(e,t){const r=new Set(e);return r.add(t),r}function Mee(e,t){const r=new Set(e);return r.delete(t),r}function wee(e,t,r){const s=new Map(e);return s.set(t,r),s}function Iee(e,t,r){const s=new Map(e);return s.set(t,r(s.get(t))),s}function Tee(e,t){const r=new Map(e);return r.delete(t),r}function See(e,t){const r=new Map(e);return t.forEach(s=>r.delete(s)),r}var uk={setByAddingToSet:bee,setByDeletingFromSet:Mee,mapBySettingInMap:wee,mapByUpdatingInMap:Iee,mapByDeletingFromMap:Tee,mapByDeletingMultipleFromMap:See};function*Eee(e,t){let r=0;for(const s of e)t(s,r++)&&(yield s)}var X5=Eee;function Dee(e,t){return new Proxy(e,{get:(s,u)=>(!(u in s)&&u in t&&(s[u]=t[u]()),s[u]),ownKeys:s=>Object.keys(s)})}var hk=Dee;const{getNode:Og,getNodeMaybe:Aee,recoilValuesForKeys:dk}=vs,{RetentionZone:fk}=Hv,{setByAddingToSet:Cee}=uk,Nee=Object.freeze(new Set);class Lee extends Error{}function zee(e,t,r){if(!vr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:s}=e.getState().retention;function u(f){let m=s.get(f);m||s.set(f,m=new Set),m.add(t)}if(r instanceof fk)u(r);else if(Array.isArray(r))for(const f of r)u(f);return()=>{if(!vr("recoil_memory_managament_2020"))return;const{retention:f}=e.getState();function m(a){const v=f.nodesRetainedByZone.get(a);v==null||v.delete(t),v&&v.size===0&&f.nodesRetainedByZone.delete(a)}if(r instanceof fk)m(r);else if(Array.isArray(r))for(const a of r)m(a)}}function J5(e,t,r,s){const u=e.getState();if(u.nodeCleanupFunctions.has(r))return;const f=Og(r),m=zee(e,r,f.retainedBy),a=f.init(e,t,s);u.nodeCleanupFunctions.set(r,()=>{a(),m()})}function kee(e,t,r){J5(e,e.getState().currentTree,t,r)}function Oee(e,t){var r;const s=e.getState();(r=s.nodeCleanupFunctions.get(t))===null||r===void 0||r(),s.nodeCleanupFunctions.delete(t)}function jee(e,t,r){return J5(e,t,r,"get"),Og(r).get(e,t)}function pk(e,t,r){return Og(r).peek(e,t)}function Ree(e,t,r){var s;const u=Aee(t);return u==null||(s=u.invalidate)===null||s===void 0||s.call(u,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,r),dirtyAtoms:Cee(e.dirtyAtoms,t)}}function Pee(e,t,r,s){const u=Og(r);if(u.set==null)throw new Lee(`Attempt to set read-only RecoilValue: ${r}`);const f=u.set;return J5(e,t,r,"set"),f(e,t,s)}function Uee(e,t,r){const s=e.getState(),u=e.getGraph(t.version),f=Og(r).nodeType;return hk({type:f},{loadable:()=>pk(e,t,r),isActive:()=>s.knownAtoms.has(r)||s.knownSelectors.has(r),isSet:()=>f==="selector"?!1:t.atomValues.has(r),isModified:()=>t.dirtyAtoms.has(r),deps:()=>{var m;return dk((m=u.nodeDeps.get(r))!==null&&m!==void 0?m:[])},subscribers:()=>{var m,a;return{nodes:dk(X5(mk(e,t,new Set([r])),v=>v!==r)),components:Fv((m=(a=s.nodeToComponentSubscriptions.get(r))===null||a===void 0?void 0:a.values())!==null&&m!==void 0?m:[],([v])=>({name:v}))}}})}function mk(e,t,r){const s=new Set,u=Array.from(r),f=e.getGraph(t.version);for(let a=u.pop();a;a=u.pop()){var m;s.add(a);const v=(m=f.nodeToNodeSubscriptions.get(a))!==null&&m!==void 0?m:Nee;for(const S of v)s.has(S)||u.push(S)}return s}var du={getNodeLoadable:jee,peekNodeLoadable:pk,setNodeValue:Pee,initializeNode:kee,cleanUpNode:Oee,setUnvalidatedAtomValue_DEPRECATED:Ree,peekNodeInfo:Uee,getDownstreamNodes:mk};let gk=null;function Bee(e){gk=e}function Fee(){var e;(e=gk)===null||e===void 0||e()}var yk={setInvalidateMemoizedSnapshot:Bee,invalidateMemoizedSnapshot:Fee};const{getDownstreamNodes:Vee,getNodeLoadable:_k,setNodeValue:$ee}=du,{getNextComponentID:Qee}=Qv,{getNode:Hee,getNodeMaybe:vk}=vs,{DefaultValue:eI}=vs,{reactMode:Yee}=Lg,{AbstractRecoilValue:Gee,RecoilState:Zee,RecoilValueReadOnly:Wee,isRecoilValue:qee}=Ff,{invalidateMemoizedSnapshot:Kee}=yk;function Xee(e,{key:t},r=e.getState().currentTree){var s,u;const f=e.getState();r.version===f.currentTree.version||r.version===((s=f.nextTree)===null||s===void 0?void 0:s.version)||(r.version,(u=f.previousTree)===null||u===void 0||u.version);const m=_k(e,r,t);return m.state==="loading"&&m.contents.catch(()=>{}),m}function Jee(e,t){const r=e.clone();return t.forEach((s,u)=>{s.state==="hasValue"&&s.contents instanceof eI?r.delete(u):r.set(u,s)}),r}function ete(e,t,{key:r},s){if(typeof s=="function"){const u=_k(e,t,r);if(u.state==="loading"){const f=`Tried to set atom or selector "${r}" using an updater function while the current state is pending, this is not currently supported.`;throw Li(f)}else if(u.state==="hasError")throw u.contents;return s(u.contents)}else return s}function tte(e,t,r){if(r.type==="set"){const{recoilValue:u,valueOrUpdater:f}=r,m=ete(e,t,u,f),a=$ee(e,t,u.key,m);for(const[v,S]of a.entries())tI(t,v,S)}else if(r.type==="setLoadable"){const{recoilValue:{key:u},loadable:f}=r;tI(t,u,f)}else if(r.type==="markModified"){const{recoilValue:{key:u}}=r;t.dirtyAtoms.add(u)}else if(r.type==="setUnvalidated"){var s;const{recoilValue:{key:u},unvalidatedValue:f}=r,m=vk(u);m==null||(s=m.invalidate)===null||s===void 0||s.call(m,t),t.atomValues.delete(u),t.nonvalidatedAtoms.set(u,f),t.dirtyAtoms.add(u)}else $5(`Unknown action ${r.type}`)}function tI(e,t,r){r.state==="hasValue"&&r.contents instanceof eI?e.atomValues.delete(t):e.atomValues.set(t,r),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function xk(e,t){e.replaceState(r=>{const s=bk(r);for(const u of t)tte(e,s,u);return Mk(e,s),Kee(),s})}function Yv(e,t){if(jg.length){const r=jg[jg.length-1];let s=r.get(e);s||r.set(e,s=[]),s.push(t)}else xk(e,[t])}const jg=[];function nte(){const e=new Map;return jg.push(e),()=>{for(const[t,r]of e)xk(t,r);jg.pop()}}function bk(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Mk(e,t){const r=Vee(e,t,t.dirtyAtoms);for(const f of r){var s,u;(s=vk(f))===null||s===void 0||(u=s.invalidate)===null||u===void 0||u.call(s,t)}}function wk(e,t,r){Yv(e,{type:"set",recoilValue:t,valueOrUpdater:r})}function ite(e,t,r){if(r instanceof eI)return wk(e,t,r);Yv(e,{type:"setLoadable",recoilValue:t,loadable:r})}function rte(e,t){Yv(e,{type:"markModified",recoilValue:t})}function ote(e,t,r){Yv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:r})}function ste(e,{key:t},r,s=null){const u=Qee(),f=e.getState();f.nodeToComponentSubscriptions.has(t)||f.nodeToComponentSubscriptions.set(t,new Map),zr(f.nodeToComponentSubscriptions.get(t)).set(u,[s??"<not captured>",r]);const m=Yee();if(m.early&&(m.mode==="LEGACY"||m.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&r(a)}return{release:()=>{const a=e.getState(),v=a.nodeToComponentSubscriptions.get(t);v===void 0||!v.has(u)||(v.delete(u),v.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function ate(e,t){var r;const{currentTree:s}=e.getState(),u=Hee(t.key);(r=u.clearCache)===null||r===void 0||r.call(u,e,s)}var al={RecoilValueReadOnly:Wee,AbstractRecoilValue:Gee,RecoilState:Zee,getRecoilValueAsLoadable:Xee,setRecoilValue:wk,setRecoilValueLoadable:ite,markRecoilValueModified:rte,setUnvalidatedRecoilValue:ote,subscribeToRecoilValue:ste,isRecoilValue:qee,applyAtomValueWrites:Jee,batchStart:nte,writeLoadableToTreeState:tI,invalidateDownstreams:Mk,copyTreeState:bk,refreshRecoilValue:ate};function lte(e,t,r){const s=e.entries();let u=s.next();for(;!u.done;){const f=u.value;if(t.call(r,f[1],f[0],e))return!0;u=s.next()}return!1}var cte=lte;const{cleanUpNode:ute}=du,{deleteNodeConfigIfPossible:hte,getNode:Ik}=vs,{RetentionZone:Tk}=Hv,dte=12e4,Sk=new Set;function Ek(e,t){const r=e.getState(),s=r.currentTree;if(r.nextTree)return;const u=new Set;for(const m of t)if(m instanceof Tk)for(const a of gte(r,m))u.add(a);else u.add(m);const f=fte(e,u);for(const m of f)mte(e,s,m)}function fte(e,t){const r=e.getState(),s=r.currentTree,u=e.getGraph(s.version),f=new Set,m=new Set;return a(t),f;function a(v){const S=new Set,D=pte(e,s,v,f,m);for(const R of D){var N;if(Ik(R).retainedBy==="recoilRoot"){m.add(R);continue}if(((N=r.retention.referenceCounts.get(R))!==null&&N!==void 0?N:0)>0){m.add(R);continue}if(Dk(R).some(q=>r.retention.referenceCounts.get(q))){m.add(R);continue}const V=u.nodeToNodeSubscriptions.get(R);if(V&&cte(V,q=>m.has(q))){m.add(R);continue}f.add(R),S.add(R)}const C=new Set;for(const R of S)for(const V of(O=u.nodeDeps.get(R))!==null&&O!==void 0?O:Sk){var O;f.has(V)||C.add(V)}C.size&&a(C)}}function pte(e,t,r,s,u){const f=e.getGraph(t.version),m=[],a=new Set;for(;r.size>0;)v(zr(r.values().next().value));return m;function v(S){if(s.has(S)||u.has(S)){r.delete(S);return}if(a.has(S))return;const D=f.nodeToNodeSubscriptions.get(S);if(D)for(const N of D)v(N);a.add(S),r.delete(S),m.push(S)}}function mte(e,t,r){if(!vr("recoil_memory_managament_2020"))return;ute(e,r);const s=e.getState();s.knownAtoms.delete(r),s.knownSelectors.delete(r),s.nodeTransactionSubscriptions.delete(r),s.retention.referenceCounts.delete(r);const u=Dk(r);for(const v of u){var f;(f=s.retention.nodesRetainedByZone.get(v))===null||f===void 0||f.delete(r)}t.atomValues.delete(r),t.dirtyAtoms.delete(r),t.nonvalidatedAtoms.delete(r);const m=s.graphsByVersion.get(t.version);if(m){const v=m.nodeDeps.get(r);if(v!==void 0){m.nodeDeps.delete(r);for(const S of v){var a;(a=m.nodeToNodeSubscriptions.get(S))===null||a===void 0||a.delete(r)}}m.nodeToNodeSubscriptions.delete(r)}hte(r)}function gte(e,t){var r;return(r=e.retention.nodesRetainedByZone.get(t))!==null&&r!==void 0?r:Sk}function Dk(e){const t=Ik(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Tk?[t]:t}function yte(e,t){const r=e.getState();r.nextTree?r.retention.retainablesToCheckForRelease.add(t):Ek(e,new Set([t]))}function _te(e,t,r){var s;if(!vr("recoil_memory_managament_2020"))return;const u=e.getState().retention.referenceCounts,f=((s=u.get(t))!==null&&s!==void 0?s:0)+r;f===0?Ak(e,t):u.set(t,f)}function Ak(e,t){if(!vr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),yte(e,t)}function vte(e){if(!vr("recoil_memory_managament_2020"))return;const t=e.getState();Ek(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function xte(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:dte,updateRetainCount:_te,updateRetainCountToZero:Ak,releaseScheduledRetainablesNow:vte,retainedByOptionWithDefault:xte};const{unstable_batchedUpdates:bte}=og;var Mte={unstable_batchedUpdates:bte};const{unstable_batchedUpdates:wte}=Mte;var Ite={unstable_batchedUpdates:wte};const{batchStart:Tte}=al,{unstable_batchedUpdates:Ste}=Ite;let nI=Ste||(e=>e());var Gv={getBatcher:()=>nI,setBatcher:e=>{nI=e},batchUpdates:e=>{nI(()=>{let t=()=>{};try{t=Tte(),e()}finally{t()}})}};function*Ete(e){for(const t of e)for(const r of t)yield r}var Ck=Ete;const Nk=typeof Window>"u"||typeof window>"u",Dte=e=>!Nk&&(e===window||e instanceof Window),Ate=typeof navigator<"u"&&navigator.product==="ReactNative";var Zv={isSSR:Nk,isReactNative:Ate,isWindow:Dte};function Cte(e,t){let r;return(...s)=>{r||(r={});const u=t(...s);return Object.hasOwnProperty.call(r,u)||(r[u]=e(...s)),r[u]}}function Nte(e,t){let r,s;return(...u)=>{const f=t(...u);return r===f||(r=f,s=e(...u)),s}}function Lte(e,t){let r,s;return[(...m)=>{const a=t(...m);return r===a||(r=a,s=e(...m)),s},()=>{r=null}]}var zte={memoizeWithArgsHash:Cte,memoizeOneWithArgsHash:Nte,memoizeOneWithArgsHashAndInvalidation:Lte};const{batchUpdates:iI}=Gv,{initializeNode:kte,peekNodeInfo:Ote}=du,{graph:jte}=kg,{getNextStoreID:Rte}=Qv,{DEFAULT_VALUE:Pte,recoilValues:Lk,recoilValuesForKeys:zk}=vs,{AbstractRecoilValue:Ute,getRecoilValueAsLoadable:Bte,setRecoilValue:kk,setUnvalidatedRecoilValue:Fte}=al,{updateRetainCount:Wv}=Nh,{setInvalidateMemoizedSnapshot:Vte}=yk,{getNextTreeStateVersion:$te,makeEmptyStoreState:Qte}=lk,{isSSR:Hte}=Zv,{memoizeOneWithArgsHashAndInvalidation:Yte}=zte;class qv{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_refCount",1),Ai(this,"getLoadable",s=>(this.checkRefCount_INTERNAL(),Bte(this._store,s))),Ai(this,"getPromise",s=>(this.checkRefCount_INTERNAL(),this.getLoadable(s).toPromise())),Ai(this,"getNodes_UNSTABLE",s=>{if(this.checkRefCount_INTERNAL(),(s==null?void 0:s.isModified)===!0){if((s==null?void 0:s.isInitialized)===!1)return[];const m=this._store.getState().currentTree;return zk(m.dirtyAtoms)}const u=this._store.getState().knownAtoms,f=this._store.getState().knownSelectors;return(s==null?void 0:s.isInitialized)==null?Lk.values():s.isInitialized===!0?zk(Ck([u,f])):X5(Lk.values(),({key:m})=>!u.has(m)&&!f.has(m))}),Ai(this,"getInfo_UNSTABLE",({key:s})=>(this.checkRefCount_INTERNAL(),Ote(this._store,this._store.getState().currentTree,s))),Ai(this,"map",s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return s(u),u}),Ai(this,"asyncMap",async s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return u.retain(),await s(u),u.autoRelease_INTERNAL(),u}),this._store={storeID:Rte(),parentStoreID:r,getState:()=>t,replaceState:s=>{t.currentTree=s(t.currentTree)},getGraph:s=>{const u=t.graphsByVersion;if(u.has(s))return zr(u.get(s));const f=jte();return u.set(s,f),f},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Li("Cannot subscribe to Snapshots")}};for(const s of this._store.getState().knownAtoms)kte(this._store,s,"get"),Wv(this._store,s,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Hte||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!vr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){vr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function Ok(e,t,r=!1){const s=e.getState(),u=r?$te():t.version;return{currentTree:{version:r?u:t.version,stateID:r?u:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(s.knownAtoms),knownSelectors:new Set(s.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(u,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Fv(s.nodeCleanupFunctions.entries(),([f])=>[f,()=>{}]))}}function Gte(e){const t=new qv(Qte());return e!=null?t.map(e):t}const[jk,Rk]=Yte((e,t)=>{var r;const s=e.getState(),u=t==="latest"?(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree:zr(s.previousTree);return new qv(Ok(e,u),e.storeID)},(e,t)=>{var r,s;return String(t)+String(e.storeID)+String((r=e.getState().nextTree)===null||r===void 0?void 0:r.version)+String(e.getState().currentTree.version)+String((s=e.getState().previousTree)===null||s===void 0?void 0:s.version)});Vte(Rk);function Zte(e,t="latest"){const r=jk(e,t);return r.isRetained()?r:(Rk(),jk(e,t))}class rI extends qv{constructor(t,r){super(Ok(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Ai(this,"_batch",void 0),Ai(this,"set",(s,u)=>{this.checkRefCount_INTERNAL();const f=this.getStore_INTERNAL();this._batch(()=>{Wv(f,s.key,1),kk(this.getStore_INTERNAL(),s,u)})}),Ai(this,"reset",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();this._batch(()=>{Wv(u,s.key,1),kk(this.getStore_INTERNAL(),s,Pte)})}),Ai(this,"setUnvalidatedAtomValues_DEPRECATED",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();iI(()=>{for(const[f,m]of s.entries())Wv(u,f,1),Fte(u,new Ute(f),m)})}),this._batch=r}}var Kv={Snapshot:qv,MutableSnapshot:rI,freshSnapshot:Gte,cloneSnapshot:Zte},Wte=Kv.Snapshot,qte=Kv.MutableSnapshot,Kte=Kv.freshSnapshot,Xte=Kv.cloneSnapshot,Xv=Object.freeze({__proto__:null,Snapshot:Wte,MutableSnapshot:qte,freshSnapshot:Kte,cloneSnapshot:Xte});function Jte(...e){const t=new Set;for(const r of e)for(const s of r)t.add(s);return t}var ene=Jte;const{useRef:tne}=Vi;function nne(e){const t=tne(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Pk=nne;const{getNextTreeStateVersion:ine,makeEmptyStoreState:Uk}=lk,{cleanUpNode:rne,getDownstreamNodes:one,initializeNode:sne,setNodeValue:ane,setUnvalidatedAtomValue_DEPRECATED:lne}=du,{graph:cne}=kg,{cloneGraph:une}=kg,{getNextStoreID:Bk}=Qv,{createMutableSource:oI,reactMode:Fk}=Lg,{applyAtomValueWrites:hne}=al,{releaseScheduledRetainablesNow:Vk}=Nh,{freshSnapshot:dne}=Xv,{useCallback:fne,useContext:$k,useEffect:sI,useMemo:pne,useRef:mne,useState:gne}=Vi;function Rg(){throw Li("This component must be used inside a <RecoilRoot> component.")}const Qk=Object.freeze({storeID:Bk(),getState:Rg,replaceState:Rg,getGraph:Rg,subscribeToTransactions:Rg,addTransactionMetadata:Rg});let aI=!1;function Hk(e){if(aI)throw Li("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){vr("recoil_memory_managament_2020")&&vr("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Vk(e);const r=t.currentTree.version,s=ine();t.nextTree={...t.currentTree,version:s,stateID:s,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(s,une(zr(t.graphsByVersion.get(r))))}}const Yk=Vi.createContext({current:Qk}),Jv=()=>$k(Yk),Gk=Vi.createContext(null);function yne(){return $k(Gk)}function lI(e,t,r){const s=one(e,r,r.dirtyAtoms);for(const u of s){const f=t.nodeToComponentSubscriptions.get(u);if(f)for(const[m,[a,v]]of f)v(r)}}function Zk(e){const t=e.getState(),r=t.currentTree,s=r.dirtyAtoms;if(s.size){for(const[u,f]of t.nodeTransactionSubscriptions)if(s.has(u))for(const[m,a]of f)a(e);for(const[u,f]of t.transactionSubscriptions)f(e);(!Fk().early||t.suspendedComponentResolvers.size>0)&&(lI(e,t,r),t.suspendedComponentResolvers.forEach(u=>u()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(u=>u(r)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function _ne(e){const t=e.getState();t.commitDepth++;try{const{nextTree:r}=t;if(r==null)return;t.previousTree=t.currentTree,t.currentTree=r,t.nextTree=null,Zk(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):$5("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,vr("recoil_memory_managament_2020")&&r==null&&Vk(e)}finally{t.commitDepth--}}function vne({setNotifyBatcherOfChange:e}){const t=Jv(),[,r]=gne([]);return e(()=>r({})),sI(()=>(e(()=>r({})),()=>{e(()=>{})}),[e]),sI(()=>{tee.enqueueExecution("Batcher",()=>{_ne(t.current)})}),null}function xne(e,t){const r=Uk();return t({set:(s,u)=>{const f=r.currentTree,m=ane(e,f,s.key,u),a=new Set(m.keys()),v=f.nonvalidatedAtoms.clone();for(const S of a)v.delete(S);r.currentTree={...f,dirtyAtoms:ene(f.dirtyAtoms,a),atomValues:hne(f.atomValues,m),nonvalidatedAtoms:v}},setUnvalidatedAtomValues:s=>{s.forEach((u,f)=>{r.currentTree=lne(r.currentTree,f,u)})}}),r}function bne(e){const t=dne(e),r=t.getStore_INTERNAL().getState();return t.retain(),r.nodeCleanupFunctions.forEach(s=>s()),r.nodeCleanupFunctions.clear(),r}let Wk=0;function Mne({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:r,children:s}){let u;const f=O=>{const R=u.current.graphsByVersion;if(R.has(O))return zr(R.get(O));const V=cne();return R.set(O,V),V},m=(O,R)=>{if(R==null){const{transactionSubscriptions:V}=N.current.getState(),q=Wk++;return V.set(q,O),{release:()=>{V.delete(q)}}}else{const{nodeTransactionSubscriptions:V}=N.current.getState();V.has(R)||V.set(R,new Map);const q=Wk++;return zr(V.get(R)).set(q,O),{release:()=>{const H=V.get(R);H&&(H.delete(q),H.size===0&&V.delete(R))}}}},a=O=>{Hk(N.current);for(const R of Object.keys(O))zr(N.current.getState().nextTree).transactionMetadata[R]=O[R]},v=O=>{Hk(N.current);const R=zr(u.current.nextTree);let V;try{aI=!0,V=O(R)}finally{aI=!1}V!==R&&(u.current.nextTree=V,Fk().early&&lI(N.current,u.current,V),zr(S.current)())},S=mne(null),D=fne(O=>{S.current=O},[S]),N=Pk(()=>r??{storeID:Bk(),getState:()=>u.current,replaceState:v,getGraph:f,subscribeToTransactions:m,addTransactionMetadata:a});r!=null&&(N.current=r),u=Pk(()=>e!=null?xne(N.current,e):t!=null?bne(t):Uk());const C=pne(()=>oI==null?void 0:oI(u,()=>u.current.currentTree.version),[u]);return sI(()=>{const O=N.current;for(const R of new Set(O.getState().knownAtoms))sne(O,R,"get");return()=>{for(const R of O.getState().knownAtoms)rne(O,R)}},[N]),Vi.createElement(Yk.Provider,{value:N},Vi.createElement(Gk.Provider,{value:C},Vi.createElement(vne,{setNotifyBatcherOfChange:D}),s))}function wne(e){const{override:t,...r}=e,s=Jv();return t===!1&&s.current!==Qk?e.children:Vi.createElement(Mne,r)}function Ine(){return Jv().current.storeID}var nc={RecoilRoot:wne,useStoreRef:Jv,useRecoilMutableSource:yne,useRecoilStoreID:Ine,notifyComponents_FOR_TESTING:lI,sendEndOfBatchNotifications_FOR_TESTING:Zk};function Tne(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(e[r]!==t[r])return!1;return!0}var Sne=Tne;const{useEffect:Ene,useRef:Dne}=Vi;function Ane(e){const t=Dne();return Ene(()=>{t.current=e}),t.current}var qk=Ane;const{useStoreRef:Cne}=nc,{SUSPENSE_TIMEOUT_MS:Nne}=Nh,{updateRetainCount:Pg}=Nh,{RetentionZone:Lne}=Hv,{useEffect:zne,useRef:kne}=Vi,{isSSR:Kk}=Zv;function One(e){if(vr("recoil_memory_managament_2020"))return jne(e)}function jne(e){const r=(Array.isArray(e)?e:[e]).map(m=>m instanceof Lne?m:m.key),s=Cne();zne(()=>{if(!vr("recoil_memory_managament_2020"))return;const m=s.current;if(u.current&&!Kk)window.clearTimeout(u.current),u.current=null;else for(const a of r)Pg(m,a,1);return()=>{for(const a of r)Pg(m,a,-1)}},[s,...r]);const u=kne(),f=qk(r);if(!Kk&&(f===void 0||!Sne(f,r))){const m=s.current;for(const a of r)Pg(m,a,1);if(f)for(const a of f)Pg(m,a,-1);u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{u.current=null;for(const a of r)Pg(m,a,-1)},Nne)}}var cI=One;function Rne(){return"<component name not available>"}var Ug=Rne;const{batchUpdates:Pne}=Gv,{DEFAULT_VALUE:Xk}=vs,{currentRendererSupportsUseSyncExternalStore:Une,reactMode:Vf,useMutableSource:Bne,useSyncExternalStore:Fne}=Lg,{useRecoilMutableSource:Vne,useStoreRef:ll}=nc,{AbstractRecoilValue:uI,getRecoilValueAsLoadable:Bg,setRecoilValue:ex,setUnvalidatedRecoilValue:$ne,subscribeToRecoilValue:$f}=al,{useCallback:xs,useEffect:Qf,useMemo:Jk,useRef:Fg,useState:hI}=Vi,{setByAddingToSet:Qne}=uk,{isSSR:Hne}=Zv;function dI(e,t,r){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(u=>{const f=r.current.getState().suspendedComponentResolvers;f.add(u),Hne&&Dr(e.contents)&&e.contents.finally(()=>{f.delete(u)})}):e.state==="hasError"?e.contents:Li(`Invalid value of loadable atom "${t.key}"`)}function Yne(){const e=Ug(),t=ll(),[,r]=hI([]),s=Fg(new Set);s.current=new Set;const u=Fg(new Set),f=Fg(new Map),m=xs(v=>{const S=f.current.get(v);S&&(S.release(),f.current.delete(v))},[f]),a=xs((v,S)=>{f.current.has(S)&&r([])},[]);return Qf(()=>{const v=t.current;zg(s.current,u.current).forEach(S=>{if(f.current.has(S))return;const D=$f(v,new uI(S),C=>a(C,S),e);f.current.set(S,D),v.getState().nextTree?v.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(v.getState(),S)}):a(v.getState(),S)}),zg(u.current,s.current).forEach(S=>{m(S)}),u.current=s.current}),Qf(()=>{const v=f.current;return zg(s.current,new Set(v.keys())).forEach(S=>{const D=$f(t.current,new uI(S),N=>a(N,S),e);v.set(S,D)}),()=>v.forEach((S,D)=>m(D))},[e,t,m,a]),Jk(()=>{function v(R){return V=>{ex(t.current,R,V)}}function S(R){return()=>ex(t.current,R,Xk)}function D(R){var V;s.current.has(R.key)||(s.current=Qne(s.current,R.key));const q=t.current.getState();return Bg(t.current,R,Vf().early&&(V=q.nextTree)!==null&&V!==void 0?V:q.currentTree)}function N(R){const V=D(R);return dI(V,R,t)}function C(R){return[N(R),v(R)]}function O(R){return[D(R),v(R)]}return{getRecoilValue:N,getRecoilValueLoadable:D,getRecoilState:C,getRecoilStateLoadable:O,getSetRecoilState:v,getResetRecoilState:S}},[s,t])}const Gne={current:0};function Zne(e){const t=ll(),r=Ug(),s=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return{loadable:Bg(v,e,D),key:e.key}},[t,e]),u=xs(a=>{let v;return()=>{var S,D;const N=a();return(S=v)!==null&&S!==void 0&&S.loadable.is(N.loadable)&&((D=v)===null||D===void 0?void 0:D.key)===N.key?v:(v=N,N)}},[]),f=Jk(()=>u(s),[s,u]),m=xs(a=>{const v=t.current;return $f(v,e,a,r).release},[t,e,r]);return Fne(m,f,f).loadable}function Wne(e){const t=ll(),r=xs(()=>{var S;const D=t.current,N=D.getState(),C=Vf().early&&(S=N.nextTree)!==null&&S!==void 0?S:N.currentTree;return Bg(D,e,C)},[t,e]),s=xs(()=>r(),[r]),u=Ug(),f=xs((S,D)=>{const N=t.current;return $f(N,e,()=>{if(!vr("recoil_suppress_rerender_in_callback"))return D();const O=r();v.current.is(O)||D(),v.current=O},u).release},[t,e,u,r]),m=Vne();if(m==null)throw Li("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=Bne(m,s,f),v=Fg(a);return Qf(()=>{v.current=a}),a}function fI(e){const t=ll(),r=Ug(),s=xs(()=>{var v;const S=t.current,D=S.getState(),N=Vf().early&&(v=D.nextTree)!==null&&v!==void 0?v:D.currentTree;return Bg(S,e,N)},[t,e]),u=xs(()=>({loadable:s(),key:e.key}),[s,e.key]),f=xs(v=>{const S=u();return v.loadable.is(S.loadable)&&v.key===S.key?v:S},[u]);Qf(()=>{const v=$f(t.current,e,S=>{a(f)},r);return a(f),v.release},[r,e,t,f]);const[m,a]=hI(u);return m.key!==e.key?u().loadable:m.loadable}function qne(e){const t=ll(),[,r]=hI([]),s=Ug(),u=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return Bg(v,e,D)},[t,e]),f=u(),m=Fg(f);return Qf(()=>{m.current=f}),Qf(()=>{const a=t.current,v=a.getState(),S=$f(a,e,N=>{var C;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const O=u();(C=m.current)!==null&&C!==void 0&&C.is(O)||r(O),m.current=O},s);if(v.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{m.current=null,r([])});else{var D;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const N=u();(D=m.current)!==null&&D!==void 0&&D.is(N)||r(N),m.current=N}return S.release},[s,u,e,t]),f}function pI(e){return vr("recoil_memory_managament_2020")&&cI(e),{TRANSITION_SUPPORT:fI,SYNC_EXTERNAL_STORE:Une()?Zne:fI,MUTABLE_SOURCE:Wne,LEGACY:qne}[Vf().mode](e)}function e9(e){const t=ll(),r=pI(e);return dI(r,e,t)}function tx(e){const t=ll();return xs(r=>{ex(t.current,e,r)},[t,e])}function Kne(e){const t=ll();return xs(()=>{ex(t.current,e,Xk)},[t,e])}function Xne(e){return[e9(e),tx(e)]}function Jne(e){return[pI(e),tx(e)]}function eie(){const e=ll();return(t,r={})=>{Pne(()=>{e.current.addTransactionMetadata(r),t.forEach((s,u)=>$ne(e.current,new uI(u),s))})}}function t9(e){return vr("recoil_memory_managament_2020")&&cI(e),fI(e)}function n9(e){const t=ll(),r=t9(e);return dI(r,e,t)}function tie(e){return[n9(e),tx(e)]}var nie={recoilComponentGetRecoilValueCount_FOR_TESTING:Gne,useRecoilInterface:Yne,useRecoilState:Xne,useRecoilStateLoadable:Jne,useRecoilValue:e9,useRecoilValueLoadable:pI,useResetRecoilState:Kne,useSetRecoilState:tx,useSetUnvalidatedAtomValues:eie,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:t9,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:n9,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:tie};function iie(e,t){const r=new Map;for(const[s,u]of e)t(u,s)&&r.set(s,u);return r}var rie=iie;function oie(e,t){const r=new Set;for(const s of e)t(s)&&r.add(s);return r}var sie=oie;function aie(...e){const t=new Map;for(let r=0;r<e.length;r++){const s=e[r].keys();let u;for(;!(u=s.next()).done;)t.set(u.value,e[r].get(u.value))}return t}var lie=aie;const{batchUpdates:cie}=Gv,{DEFAULT_VALUE:uie,getNode:i9,nodes:hie}=vs,{useStoreRef:mI}=nc,{AbstractRecoilValue:die,setRecoilValueLoadable:fie}=al,{SUSPENSE_TIMEOUT_MS:pie}=Nh,{cloneSnapshot:nx}=Xv,{useCallback:ix,useEffect:r9,useRef:o9,useState:mie}=Vi,{isSSR:s9}=Zv;function rx(e){const t=mI();r9(()=>t.current.subscribeToTransactions(e).release,[e,t])}function a9(e){const t=e.atomValues.toMap(),r=$v(rie(t,(s,u)=>{const m=i9(u).persistence_UNSTABLE;return m!=null&&m.type!=="none"&&s.state==="hasValue"}),s=>s.contents);return lie(e.nonvalidatedAtoms.toMap(),r)}function gie(e){rx(ix(t=>{let r=t.getState().previousTree;const s=t.getState().currentTree;r||(r=t.getState().currentTree);const u=a9(s),f=a9(r),m=$v(hie,v=>{var S,D,N,C;return{persistence_UNSTABLE:{type:(S=(D=v.persistence_UNSTABLE)===null||D===void 0?void 0:D.type)!==null&&S!==void 0?S:"none",backButton:(N=(C=v.persistence_UNSTABLE)===null||C===void 0?void 0:C.backButton)!==null&&N!==void 0?N:!1}}}),a=sie(s.dirtyAtoms,v=>u.has(v)||f.has(v));e({atomValues:u,previousAtomValues:f,atomInfo:m,modifiedAtoms:a,transactionMetadata:{...s.transactionMetadata}})},[e]))}function yie(e){rx(ix(t=>{const r=nx(t,"latest"),s=nx(t,"previous");e({snapshot:r,previousSnapshot:s})},[e]))}function _ie(){const e=mI(),[t,r]=mie(()=>nx(e.current)),s=qk(t),u=o9(),f=o9();if(rx(ix(a=>r(nx(a)),[])),r9(()=>{const a=t.retain();if(u.current&&!s9){var v;window.clearTimeout(u.current),u.current=null,(v=f.current)===null||v===void 0||v.call(f),f.current=null}return()=>{window.setTimeout(a,10)}},[t]),s!==t&&!s9){if(u.current){var m;window.clearTimeout(u.current),u.current=null,(m=f.current)===null||m===void 0||m.call(f),f.current=null}f.current=t.retain(),u.current=window.setTimeout(()=>{var a;u.current=null,(a=f.current)===null||a===void 0||a.call(f),f.current=null},pie)}return t}function l9(e,t){var r;const s=e.getState(),u=(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree,f=t.getStore_INTERNAL().getState().currentTree;cie(()=>{const m=new Set;for(const S of[u.atomValues.keys(),f.atomValues.keys()])for(const D of S){var a,v;((a=u.atomValues.get(D))===null||a===void 0?void 0:a.contents)!==((v=f.atomValues.get(D))===null||v===void 0?void 0:v.contents)&&i9(D).shouldRestoreFromSnapshots&&m.add(D)}m.forEach(S=>{fie(e,new die(S),f.atomValues.has(S)?zr(f.atomValues.get(S)):uie)}),e.replaceState(S=>({...S,stateID:t.getID()}))})}function vie(){const e=mI();return ix(t=>l9(e.current,t),[e])}var c9={useRecoilSnapshot:_ie,gotoSnapshot:l9,useGotoRecoilSnapshot:vie,useRecoilTransactionObserver:yie,useTransactionObservation_DEPRECATED:gie,useTransactionSubscription_DEPRECATED:rx};const{peekNodeInfo:xie}=du,{useStoreRef:bie}=nc;function Mie(){const e=bie();return({key:t})=>xie(e.current,e.current.getState().currentTree,t)}var wie=Mie;const{reactMode:Iie}=Lg,{RecoilRoot:Tie,useStoreRef:Sie}=nc,{useMemo:Eie}=Vi;function Die(){Iie().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=Sie().current;return Eie(()=>{function t({children:r}){return Vi.createElement(Tie,{store_INTERNAL:e},r)}return t},[e])}var Aie=Die;const{loadableWithValue:Cie}=Ng,{initializeNode:Nie}=du,{DEFAULT_VALUE:Lie,getNode:zie}=vs,{copyTreeState:kie,getRecoilValueAsLoadable:Oie,invalidateDownstreams:jie,writeLoadableToTreeState:Rie}=al;function u9(e){return zie(e.key).nodeType==="atom"}class Pie{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_treeState",void 0),Ai(this,"_changes",void 0),Ai(this,"get",s=>{if(this._changes.has(s.key))return this._changes.get(s.key);if(!u9(s))throw Li("Reading selectors within atomicUpdate is not supported");const u=Oie(this._store,s,this._treeState);if(u.state==="hasValue")return u.contents;throw u.state==="hasError"?u.contents:Li(`Expected Recoil atom ${s.key} to have a value, but it is in a loading state.`)}),Ai(this,"set",(s,u)=>{if(!u9(s))throw Li("Setting selectors within atomicUpdate is not supported");if(typeof u=="function"){const f=this.get(s);this._changes.set(s.key,u(f))}else Nie(this._store,s.key,"set"),this._changes.set(s.key,u)}),Ai(this,"reset",s=>{this.set(s,Lie)}),this._store=t,this._treeState=r,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=kie(this._treeState);for(const[r,s]of this._changes)Rie(t,r,Cie(s));return jie(this._store,t),t}}function Uie(e){return t=>{e.replaceState(r=>{const s=new Pie(e,r);return t(s),s.newTreeState_INTERNAL()})}}var Bie={atomicUpdater:Uie},Fie=Bie.atomicUpdater,h9=Object.freeze({__proto__:null,atomicUpdater:Fie});function Vie(e,t){if(!e)throw new Error(t)}var $ie=Vie,Vg=$ie;const{atomicUpdater:Qie}=h9,{batchUpdates:Hie}=Gv,{DEFAULT_VALUE:Yie}=vs,{useStoreRef:Gie}=nc,{refreshRecoilValue:Zie,setRecoilValue:d9}=al,{cloneSnapshot:Wie}=Xv,{gotoSnapshot:qie}=c9,{useCallback:Kie}=Vi;class f9{}const Xie=new f9;function p9(e,t,r,s){let u=Xie,f;if(Hie(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Li(a);const v=hk({...s??{},set:(D,N)=>d9(e,D,N),reset:D=>d9(e,D,Yie),refresh:D=>Zie(e,D),gotoSnapshot:D=>qie(e,D),transact_UNSTABLE:D=>Qie(e)(D)},{snapshot:()=>{const D=Wie(e);return f=D.retain(),D}}),S=t(v);if(typeof S!="function")throw Li(a);u=S(...r)}),u instanceof f9&&Vg(!1),Dr(u))u=u.finally(()=>{var a;(a=f)===null||a===void 0||a()});else{var m;(m=f)===null||m===void 0||m()}return u}function Jie(e,t){const r=Gie();return Kie((...s)=>p9(r.current,e,s),t!=null?[...t,r]:void 0)}var m9={recoilCallback:p9,useRecoilCallback:Jie};const{useStoreRef:ere}=nc,{refreshRecoilValue:tre}=al,{useCallback:nre}=Vi;function ire(e){const t=ere();return nre(()=>{const r=t.current;tre(r,e)},[e,t])}var rre=ire;const{atomicUpdater:ore}=h9,{useStoreRef:sre}=nc,{useMemo:are}=Vi;function lre(e,t){const r=sre();return are(()=>(...s)=>{ore(r.current)(f=>{e(f)(...s)})},t!=null?[...t,r]:void 0)}var cre=lre;class ure{constructor(t){Ai(this,"value",void 0),this.value=t}}var hre={WrappedValue:ure},dre=hre.WrappedValue,g9=Object.freeze({__proto__:null,WrappedValue:dre});const{isFastRefreshEnabled:fre}=Lg;class y9 extends Error{}class pre{constructor(t){var r,s,u;Ai(this,"_name",void 0),Ai(this,"_numLeafs",void 0),Ai(this,"_root",void 0),Ai(this,"_onHit",void 0),Ai(this,"_onSet",void 0),Ai(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(r=t==null?void 0:t.onHit)!==null&&r!==void 0?r:()=>{},this._onSet=(s=t==null?void 0:t.onSet)!==null&&s!==void 0?s:()=>{},this._mapNodeValue=(u=t==null?void 0:t.mapNodeValue)!==null&&u!==void 0?u:f=>f}size(){return this._numLeafs}root(){return this._root}get(t,r){var s;return(s=this.getLeafNode(t,r))===null||s===void 0?void 0:s.value}getLeafNode(t,r){if(this._root==null)return;let s=this._root;for(;s;){if(r==null||r.onNodeVisit(s),s.type==="leaf")return this._onHit(s),s;const u=this._mapNodeValue(t(s.nodeKey));s=s.branches.get(u)}}set(t,r,s){const u=()=>{var f,m,a,v;let S,D;for(const[q,H]of t){var N,C,O;const Y=this._root;if((Y==null?void 0:Y.type)==="leaf")throw this.invalidCacheError();const W=S;if(S=W?W.branches.get(D):Y,S=(N=S)!==null&&N!==void 0?N:{type:"branch",nodeKey:q,parent:W,branches:new Map,branchKey:D},S.type!=="branch"||S.nodeKey!==q)throw this.invalidCacheError();W==null||W.branches.set(D,S),s==null||(C=s.onNodeVisit)===null||C===void 0||C.call(s,S),D=this._mapNodeValue(H),this._root=(O=this._root)!==null&&O!==void 0?O:S}const R=S?(f=S)===null||f===void 0?void 0:f.branches.get(D):this._root;if(R!=null&&(R.type!=="leaf"||R.branchKey!==D))throw this.invalidCacheError();const V={type:"leaf",value:r,parent:S,branchKey:D};(m=S)===null||m===void 0||m.branches.set(D,V),this._root=(a=this._root)!==null&&a!==void 0?a:V,this._numLeafs++,this._onSet(V),s==null||(v=s.onNodeVisit)===null||v===void 0||v.call(s,V)};try{u()}catch(f){if(f instanceof y9)this.clear(),u();else throw f}}delete(t){const r=this.root();if(!r)return!1;if(t===r)return this._root=null,this._numLeafs=0,!0;let s=t.parent,u=t.branchKey;for(;s;){var f;if(s.branches.delete(u),s===r)return s.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(s.branches.size>0)break;u=(f=s)===null||f===void 0?void 0:f.branchKey,s=s.parent}for(;s!==r;s=s.parent)if(s==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=fre()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw $5(t+(this._name!=null?` - ${this._name}`:"")),new y9}}var mre={TreeCache:pre},gre=mre.TreeCache,_9=Object.freeze({__proto__:null,TreeCache:gre});class yre{constructor(t){var r;Ai(this,"_maxSize",void 0),Ai(this,"_size",void 0),Ai(this,"_head",void 0),Ai(this,"_tail",void 0),Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(r=t.mapKey)!==null&&r!==void 0?r:s=>s}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const r=this._keyMapper(t),s=this._map.get(r);if(s)return this.set(t,s.value),s.value}set(t,r){const s=this._keyMapper(t);this._map.get(s)&&this.delete(t);const f=this.head(),m={key:t,right:f,left:null,value:r};f?f.left=m:this._tail=m,this._map.set(s,m),this._head=m,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const r=this._keyMapper(t);if(!this._size||!this._map.has(r))return;const s=zr(this._map.get(r)),u=s.right,f=s.left;u&&(u.left=s.left),f&&(f.right=s.right),s===this.head()&&(this._head=u),s===this.tail()&&(this._tail=f),this._map.delete(r),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var _re={LRUCache:yre},vre=_re.LRUCache,v9=Object.freeze({__proto__:null,LRUCache:vre});const{LRUCache:xre}=v9,{TreeCache:bre}=_9;function Mre({name:e,maxSize:t,mapNodeValue:r=s=>s}){const s=new xre({maxSize:t}),u=new bre({name:e,mapNodeValue:r,onHit:f=>{s.set(f,!0)},onSet:f=>{const m=s.tail();s.set(f,!0),m&&u.size()>t&&u.delete(m.key)}});return u}var x9=Mre;function Da(e,t,r){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Li("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var s;return(s=JSON.stringify(e))!==null&&s!==void 0?s:""}if(Dr(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((u,f)=>Da(u,t,f.toString()))}]`;if(typeof e.toJSON=="function")return Da(e.toJSON(r),t,r);if(e instanceof Map){const u={};for(const[f,m]of e)u[typeof f=="string"?f:Da(f,t)]=m;return Da(u,t,r)}return e instanceof Set?Da(Array.from(e).sort((u,f)=>Da(u,t).localeCompare(Da(f,t))),t,r):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Da(Array.from(e),t,r):`{${Object.keys(e).filter(u=>e[u]!==void 0).sort().map(u=>`${Da(u,t)}:${Da(e[u],t,u)}`).join(",")}}`}function wre(e,t={allowFunctions:!1}){return Da(e,t)}var ox=wre;const{TreeCache:Ire}=_9,sx={equality:"reference",eviction:"keep-all",maxSize:1/0};function Tre({equality:e=sx.equality,eviction:t=sx.eviction,maxSize:r=sx.maxSize}=sx,s){const u=Sre(e);return Ere(t,r,u,s)}function Sre(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function Ere(e,t,r,s){switch(e){case"keep-all":return new Ire({name:s,mapNodeValue:r});case"lru":return x9({name:s,maxSize:zr(t),mapNodeValue:r});case"most-recent":return x9({name:s,maxSize:1,mapNodeValue:r})}throw Li(`Unrecognized eviction policy ${e}`)}var Dre=Tre;function Are(e){return()=>null}var Cre={startPerfBlock:Are};const{isLoadable:Nre,loadableWithError:ax,loadableWithPromise:Lre,loadableWithValue:gI}=Ng,{WrappedValue:b9}=g9,{getNodeLoadable:lx,peekNodeLoadable:zre,setNodeValue:kre}=du,{saveDepsToStore:Ore}=kg,{DEFAULT_VALUE:jre,getConfigDeletionHandler:Rre,getNode:Pre,registerNode:M9}=vs,{isRecoilValue:Ure}=Ff,{markRecoilValueModified:w9}=al,{retainedByOptionWithDefault:Bre}=Nh,{recoilCallback:Fre}=m9,{startPerfBlock:Vre}=Cre;class I9{}const $g=new I9,Qg=[],cx=new Map,$re=(()=>{let e=0;return()=>e++})();function T9(e){let t=null;const{key:r,get:s,cachePolicy_UNSTABLE:u}=e,f=e.set!=null?e.set:void 0,m=new Set,a=Dre(u??{equality:"reference",eviction:"keep-all"},r),v=Bre(e.retainedBy_UNSTABLE),S=new Map;let D=0;function N(){return!vr("recoil_memory_managament_2020")||D>0}function C(le){return le.getState().knownSelectors.add(r),D++,()=>{D--}}function O(){return Rre(r)!==void 0&&!N()}function R(le,X,ie,Me,xe){ze(X,Me,xe),V(le,ie)}function V(le,X){Ee(le,X)&&it(le),H(X,!0)}function q(le,X){Ee(le,X)&&(zr(De(le)).stateVersions.clear(),H(X,!1))}function H(le,X){const ie=cx.get(le);if(ie!=null){for(const Me of ie)w9(Me,zr(t));X&&cx.delete(le)}}function Y(le,X){let ie=cx.get(X);ie==null&&cx.set(X,ie=new Set),ie.add(le)}function W(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;const Ue=gI(He);return R(le,ie,xe,Ue,Me),He}).catch(He=>{if(!N())throw it(le),$g;if(Dr(He))return ee(le,He,ie,Me,xe,$e);const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function ee(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;$e.loadingDepKey!=null&&$e.loadingDepPromise===X?ie.atomValues.set($e.loadingDepKey,gI(He)):le.getState().knownSelectors.forEach(_t=>{ie.atomValues.delete(_t)});const Ue=he(le,ie);if(Ue&&Ue.state!=="loading"){if((Ee(le,xe)||De(le)==null)&&V(le,xe),Ue.state==="hasValue")return Ue.contents;throw Ue.contents}if(!Ee(le,xe)){const _t=Ve(le,ie);if(_t!=null)return _t.loadingLoadable.contents}const[Xe,ut]=pe(le,ie,xe);if(Xe.state!=="loading"&&R(le,ie,xe,Xe,ut),Xe.state==="hasError")throw Xe.contents;return Xe.contents}).catch(He=>{if(He instanceof I9)throw $g;if(!N())throw it(le),$g;const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function fe(le,X,ie,Me){var xe,$e,He,Ue;if(Ee(le,Me)||X.version===((xe=le.getState())===null||xe===void 0||($e=xe.currentTree)===null||$e===void 0?void 0:$e.version)||X.version===((He=le.getState())===null||He===void 0||(Ue=He.nextTree)===null||Ue===void 0?void 0:Ue.version)){var Xe,ut,_t;Ore(r,ie,le,(Xe=(ut=le.getState())===null||ut===void 0||(_t=ut.nextTree)===null||_t===void 0?void 0:_t.version)!==null&&Xe!==void 0?Xe:le.getState().currentTree.version)}for(const et of ie)m.add(et)}function pe(le,X,ie){const Me=Vre(r);let xe=!0,$e=!0;const He=()=>{Me(),$e=!1};let Ue,Xe=!1,ut;const _t={loadingDepKey:null,loadingDepPromise:null},et=new Map;function bt({key:Rt}){const dn=lx(le,X,Rt);switch(et.set(Rt,dn),xe||(fe(le,X,new Set(et.keys()),ie),q(le,ie)),dn.state){case"hasValue":return dn.contents;case"hasError":throw dn.contents;case"loading":throw _t.loadingDepKey=Rt,_t.loadingDepPromise=dn.contents,dn.contents}throw Li("Invalid Loadable state")}const Ot=Rt=>(...dn)=>{if($e)throw Li("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Vg(!1),Fre(le,Rt,dn,{node:t})};try{Ue=s({get:bt,getCallback:Ot}),Ue=Ure(Ue)?bt(Ue):Ue,Nre(Ue)&&(Ue.state==="hasError"&&(Xe=!0),Ue=Ue.contents),Dr(Ue)?Ue=W(le,Ue,X,et,ie,_t).finally(He):He(),Ue=Ue instanceof b9?Ue.value:Ue}catch(Rt){Ue=Rt,Dr(Ue)?Ue=ee(le,Ue,X,et,ie,_t).finally(He):(Xe=!0,He())}return Xe?ut=ax(Ue):Dr(Ue)?ut=Lre(Ue):ut=gI(Ue),xe=!1,Ge(le,ie,et),fe(le,X,new Set(et.keys()),ie),[ut,et]}function he(le,X){let ie=X.atomValues.get(r);if(ie!=null)return ie;const Me=new Set;try{ie=a.get($e=>(typeof $e!="string"&&Vg(!1),lx(le,X,$e).contents),{onNodeVisit:$e=>{$e.type==="branch"&&$e.nodeKey!==r&&Me.add($e.nodeKey)}})}catch($e){throw Li(`Problem with cache lookup for selector "${r}": ${$e.message}`)}if(ie){var xe;X.atomValues.set(r,ie),fe(le,X,Me,(xe=De(le))===null||xe===void 0?void 0:xe.executionID)}return ie}function oe(le,X){const ie=he(le,X);if(ie!=null)return it(le),ie;const Me=Ve(le,X);if(Me!=null){var xe;return((xe=Me.loadingLoadable)===null||xe===void 0?void 0:xe.state)==="loading"&&Y(le,Me.executionID),Me.loadingLoadable}const $e=$re(),[He,Ue]=pe(le,X,$e);return He.state==="loading"?(Ae(le,$e,He,Ue,X),Y(le,$e)):(it(le),ze(X,He,Ue)),He}function Ve(le,X){const ie=Ck([S.has(le)?[zr(S.get(le))]:[],Fv(X5(S,([xe])=>xe!==le),([,xe])=>xe)]);function Me(xe){for(const[$e,He]of xe)if(!lx(le,X,$e).is(He))return!0;return!1}for(const xe of ie){if(xe.stateVersions.get(X.version)||!Me(xe.depValuesDiscoveredSoFarDuringAsyncWork))return xe.stateVersions.set(X.version,!0),xe;xe.stateVersions.set(X.version,!1)}}function De(le){return S.get(le)}function Ae(le,X,ie,Me,xe){S.set(le,{depValuesDiscoveredSoFarDuringAsyncWork:Me,executionID:X,loadingLoadable:ie,stateVersions:new Map([[xe.version,!0]])})}function Ge(le,X,ie){if(Ee(le,X)){const Me=De(le);Me!=null&&(Me.depValuesDiscoveredSoFarDuringAsyncWork=ie)}}function it(le){S.delete(le)}function Ee(le,X){var ie;return X===((ie=De(le))===null||ie===void 0?void 0:ie.executionID)}function Ze(le){return Array.from(le.entries()).map(([X,ie])=>[X,ie.contents])}function ze(le,X,ie){le.atomValues.set(r,X);try{a.set(Ze(ie),X)}catch(Me){throw Li(`Problem with setting cache for selector "${r}": ${Me.message}`)}}function Le(le){if(Qg.includes(r)){const X=`Recoil selector has circular dependencies: ${Qg.slice(Qg.indexOf(r)).join(" → ")}`;return ax(Li(X))}Qg.push(r);try{return le()}finally{Qg.pop()}}function Ye(le,X){const ie=X.atomValues.get(r);return ie??a.get(Me=>{var xe;return typeof Me!="string"&&Vg(!1),(xe=zre(le,X,Me))===null||xe===void 0?void 0:xe.contents})}function qe(le,X){return Le(()=>oe(le,X))}function Ie(le){le.atomValues.delete(r)}function Te(le,X){t==null&&Vg(!1);for(const Me of m){var ie;const xe=Pre(Me);(ie=xe.clearCache)===null||ie===void 0||ie.call(xe,le,X)}m.clear(),Ie(X),a.clear(),w9(le,t)}return f!=null?t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,set:(X,ie,Me)=>{let xe=!1;const $e=new Map;function He({key:_t}){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const et=lx(X,ie,_t);if(et.state==="hasValue")return et.contents;if(et.state==="loading"){const bt=`Getting value of asynchronous atom or selector "${_t}" in a pending state while setting selector "${r}" is not yet supported.`;throw Li(bt)}else throw et.contents}function Ue(_t,et){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const bt=typeof et=="function"?et(He(_t)):et;kre(X,ie,_t.key,bt).forEach((Rt,dn)=>$e.set(dn,Rt))}function Xe(_t){Ue(_t,jre)}const ut=f({set:Ue,get:He,reset:Xe},Me);if(ut!==void 0)throw Dr(ut)?Li("Recoil: Async selector sets are not currently supported."):Li("Recoil: selector set should be a void function.");return xe=!0,$e},init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v}):t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v})}T9.value=e=>new b9(e);var Hf=T9;const{isLoadable:Qre,loadableWithError:yI,loadableWithPromise:_I,loadableWithValue:Yf}=Ng,{WrappedValue:S9}=g9,{peekNodeInfo:Hre}=du,{DEFAULT_VALUE:Lh,DefaultValue:fu,getConfigDeletionHandler:E9,registerNode:Yre,setConfigDeletionHandler:Gre}=vs,{isRecoilValue:Zre}=Ff,{getRecoilValueAsLoadable:Wre,markRecoilValueModified:qre,setRecoilValue:D9,setRecoilValueLoadable:Kre}=al,{retainedByOptionWithDefault:Xre}=Nh,Hg=e=>e instanceof S9?e.value:e;function Jre(e){const{key:t,persistence_UNSTABLE:r}=e,s=Xre(e.retainedBy_UNSTABLE);let u=0;function f(Y){return _I(Y.then(W=>(m=Yf(W),W)).catch(W=>{throw m=yI(W),W}))}let m=Dr(e.default)?f(e.default):Qre(e.default)?e.default.state==="loading"?f(e.default.contents):e.default:Yf(Hg(e.default));m.contents;let a;const v=new Map;function S(Y){return Y}function D(Y,W){const ee=W.then(fe=>{var pe,he;return((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&D9(Y,H,fe),fe}).catch(fe=>{var pe,he;throw((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&Kre(Y,H,yI(fe)),fe});return ee}function N(Y,W,ee){var fe;u++;const pe=()=>{var De;u--,(De=v.get(Y))===null||De===void 0||De.forEach(Ae=>Ae()),v.delete(Y)};if(Y.getState().knownAtoms.add(t),m.state==="loading"){const De=()=>{var Ae;((Ae=Y.getState().nextTree)!==null&&Ae!==void 0?Ae:Y.getState().currentTree).atomValues.has(t)||qre(Y,H)};m.contents.finally(De)}const he=(fe=e.effects)!==null&&fe!==void 0?fe:e.effects_UNSTABLE;if(he!=null){let Ee=function(Ie){if(Ae&&Ie.key===t){const Te=De;return Te instanceof fu?C(Y,W):Dr(Te)?_I(Te.then(le=>le instanceof fu?m.toPromise():le)):Yf(Te)}return Wre(Y,Ie)},Ze=function(Ie){return Ee(Ie).toPromise()},ze=function(Ie){var Te;const le=Hre(Y,(Te=Y.getState().nextTree)!==null&&Te!==void 0?Te:Y.getState().currentTree,Ie.key);return Ae&&Ie.key===t&&!(De instanceof fu)?{...le,isSet:!0,loadable:Ee(Ie)}:le},De=Lh,Ae=!0,Ge=!1,it=null;const Le=Ie=>Te=>{if(Ae){const le=Ee(H),X=le.state==="hasValue"?le.contents:Lh;De=typeof Te=="function"?Te(X):Te,Dr(De)&&(De=De.then(ie=>(it={effect:Ie,value:ie},ie)))}else{if(Dr(Te))throw Li("Setting atoms to async values is not implemented.");typeof Te!="function"&&(it={effect:Ie,value:Hg(Te)}),D9(Y,H,typeof Te=="function"?le=>{const X=Hg(Te(le));return it={effect:Ie,value:X},X}:Hg(Te))}},Ye=Ie=>()=>Le(Ie)(Lh),qe=Ie=>Te=>{var le;const{release:X}=Y.subscribeToTransactions(ie=>{var Me;let{currentTree:xe,previousTree:$e}=ie.getState();$e||($e=xe);const He=(Me=xe.atomValues.get(t))!==null&&Me!==void 0?Me:m;if(He.state==="hasValue"){var Ue,Xe,ut,_t;const et=He.contents,bt=(Ue=$e.atomValues.get(t))!==null&&Ue!==void 0?Ue:m,Ot=bt.state==="hasValue"?bt.contents:Lh;((Xe=it)===null||Xe===void 0?void 0:Xe.effect)!==Ie||((ut=it)===null||ut===void 0?void 0:ut.value)!==et?Te(et,Ot,!xe.atomValues.has(t)):((_t=it)===null||_t===void 0?void 0:_t.effect)===Ie&&(it=null)}},t);v.set(Y,[...(le=v.get(Y))!==null&&le!==void 0?le:[],X])};for(const Ie of he)try{const Te=Ie({node:H,storeID:Y.storeID,parentStoreID_UNSTABLE:Y.parentStoreID,trigger:ee,setSelf:Le(Ie),resetSelf:Ye(Ie),onSet:qe(Ie),getPromise:Ze,getLoadable:Ee,getInfo_UNSTABLE:ze});if(Te!=null){var oe;v.set(Y,[...(oe=v.get(Y))!==null&&oe!==void 0?oe:[],Te])}}catch(Te){De=Te,Ge=!0}if(Ae=!1,!(De instanceof fu)){var Ve;const Ie=Ge?yI(De):Dr(De)?_I(D(Y,De)):Yf(Hg(De));Ie.contents,W.atomValues.set(t,Ie),(Ve=Y.getState().nextTree)===null||Ve===void 0||Ve.atomValues.set(t,Ie)}}return pe}function C(Y,W){var ee,fe;return(ee=(fe=W.atomValues.get(t))!==null&&fe!==void 0?fe:a)!==null&&ee!==void 0?ee:m}function O(Y,W){if(W.atomValues.has(t))return zr(W.atomValues.get(t));if(W.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(r==null)return m;const ee=W.nonvalidatedAtoms.get(t),fe=r.validator(ee,Lh);return a=fe instanceof fu?m:Yf(fe),a}else return m}function R(){a=void 0}function V(Y,W,ee){if(W.atomValues.has(t)){const fe=zr(W.atomValues.get(t));if(fe.state==="hasValue"&&ee===fe.contents)return new Map}else if(!W.nonvalidatedAtoms.has(t)&&ee instanceof fu)return new Map;return a=void 0,new Map().set(t,Yf(ee))}function q(){return E9(t)!==void 0&&u<=0}const H=Yre({key:t,nodeType:"atom",peek:C,get:O,set:V,init:N,invalidate:R,shouldDeleteConfigOnRelease:q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:s});return H}function vI(e){const{...t}=e,r="default"in e?e.default:new Promise(()=>{});return Zre(r)?eoe({...t,default:r}):Jre({...t,default:r})}function eoe(e){const t=vI({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:s=>s instanceof fu?s:zr(e.persistence_UNSTABLE).validator(s,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),r=Hf({key:`${e.key}__withFallback`,get:({get:s})=>{const u=s(t);return u instanceof fu?e.default:u},set:({set:s},u)=>s(t,u),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Gre(r.key,E9(e.key)),r}vI.value=e=>new S9(e);var A9=vI;class toe{constructor(t){var r;Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(r=t==null?void 0:t.mapKey)!==null&&r!==void 0?r:s=>s}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,r){this._map.set(this._keyMapper(t),r)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var noe={MapCache:toe},ioe=noe.MapCache,roe=Object.freeze({__proto__:null,MapCache:ioe});const{LRUCache:C9}=v9,{MapCache:ooe}=roe,ux={equality:"reference",eviction:"none",maxSize:1/0};function soe({equality:e=ux.equality,eviction:t=ux.eviction,maxSize:r=ux.maxSize}=ux){const s=aoe(e);return loe(t,r,s)}function aoe(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function loe(e,t,r){switch(e){case"keep-all":return new ooe({mapKey:r});case"lru":return new C9({mapKey:r,maxSize:zr(t)});case"most-recent":return new C9({mapKey:r,maxSize:1})}throw Li(`Unrecognized eviction policy ${e}`)}var N9=soe;const{setConfigDeletionHandler:coe}=vs;function uoe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f,m;const a=s.get(u);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:v,...S}=e,D="default"in e?e.default:new Promise(()=>{}),N=A9({...S,key:`${e.key}__${(f=ox(u))!==null&&f!==void 0?f:"void"}`,default:typeof D=="function"?D(u):D,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(u):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(u):(m=e.effects)!==null&&m!==void 0?m:e.effects_UNSTABLE});return s.set(u,N),coe(N.key,()=>{s.delete(u)}),N}}var hoe=uoe;const{setConfigDeletionHandler:doe}=vs;let foe=0;function poe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f;let m;try{m=s.get(u)}catch(C){throw Li(`Problem with cache lookup for selector ${e.key}: ${C.message}`)}if(m!=null)return m;const a=`${e.key}__selectorFamily/${(f=ox(u,{allowFunctions:!0}))!==null&&f!==void 0?f:"void"}/${foe++}`,v=C=>e.get(u)(C),S=e.cachePolicy_UNSTABLE,D=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE;let N;if(e.set!=null){const C=e.set;N=Hf({key:a,get:v,set:(R,V)=>C(u)(R,V),cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D})}else N=Hf({key:a,get:v,cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D});return s.set(u,N),doe(N.key,()=>{s.delete(u)}),N}}var pu=poe;const moe=pu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function goe(e){return moe(e)}var yoe=goe;const _oe=pu({key:"__error",get:e=>()=>{throw Li(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function voe(e){return _oe(e)}var xoe=voe;function boe(e){return e}var Moe=boe;const{loadableWithError:L9,loadableWithPromise:z9,loadableWithValue:k9}=Ng;function hx(e,t){const r=Array(t.length).fill(void 0),s=Array(t.length).fill(void 0);for(const[u,f]of t.entries())try{r[u]=e(f)}catch(m){s[u]=m}return[r,s]}function woe(e){return e!=null&&!Dr(e)}function dx(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function xI(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((r,s,u)=>({...r,[s]:t[u]}),{})}function Gf(e,t,r){const s=r.map((u,f)=>u==null?k9(t[f]):Dr(u)?z9(u):L9(u));return xI(e,s)}function Ioe(e,t){return t.map((r,s)=>r===void 0?e[s]:r)}const Toe=pu({key:"__waitForNone",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return Gf(e,s,u)},dangerouslyAllowMutability:!0}),Soe=pu({key:"__waitForAny",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.some(f=>!Dr(f))?Gf(e,s,u):new Promise(f=>{for(const[m,a]of u.entries())Dr(a)&&a.then(v=>{s[m]=v,u[m]=void 0,f(Gf(e,s,u))}).catch(v=>{u[m]=v,f(Gf(e,s,u))})})},dangerouslyAllowMutability:!0}),Eoe=pu({key:"__waitForAll",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);if(u.every(m=>m==null))return xI(e,s);const f=u.find(woe);if(f!=null)throw f;return Promise.all(u).then(m=>xI(e,Ioe(s,m)))},dangerouslyAllowMutability:!0}),Doe=pu({key:"__waitForAllSettled",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.every(f=>!Dr(f))?Gf(e,s,u):Promise.all(u.map((f,m)=>Dr(f)?f.then(a=>{s[m]=a,u[m]=void 0}).catch(a=>{s[m]=void 0,u[m]=a}):null)).then(()=>Gf(e,s,u))},dangerouslyAllowMutability:!0}),Aoe=pu({key:"__noWait",get:e=>({get:t})=>{try{return Hf.value(k9(t(e)))}catch(r){return Hf.value(Dr(r)?z9(r):L9(r))}},dangerouslyAllowMutability:!0});var Coe={waitForNone:Toe,waitForAny:Soe,waitForAll:Eoe,waitForAllSettled:Doe,noWait:Aoe};const{RecoilLoadable:Noe}=Ng,{DefaultValue:Loe}=vs,{RecoilRoot:zoe,useRecoilStoreID:koe}=nc,{isRecoilValue:Ooe}=Ff,{retentionZone:joe}=Hv,{freshSnapshot:Roe}=Xv,{useRecoilState:Poe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilStateLoadable:Boe,useRecoilValue:Foe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilValueLoadable:$oe,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useResetRecoilState:Hoe,useSetRecoilState:Yoe}=nie,{useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver:Woe}=c9,{useRecoilCallback:qoe}=m9,{noWait:Koe,waitForAll:Xoe,waitForAllSettled:Joe,waitForAny:ese,waitForNone:tse}=Coe;var Zf={DefaultValue:Loe,isRecoilValue:Ooe,RecoilLoadable:Noe,RecoilEnv:Bf,RecoilRoot:zoe,useRecoilStoreID:koe,useRecoilBridgeAcrossReactRoots_UNSTABLE:Aie,atom:A9,selector:Hf,atomFamily:hoe,selectorFamily:pu,constSelector:yoe,errorSelector:xoe,readOnlySelector:Moe,noWait:Koe,waitForNone:tse,waitForAny:ese,waitForAll:Xoe,waitForAllSettled:Joe,useRecoilValue:Foe,useRecoilValueLoadable:$oe,useRecoilState:Poe,useRecoilStateLoadable:Boe,useSetRecoilState:Yoe,useResetRecoilState:Hoe,useGetRecoilValueInfo_UNSTABLE:wie,useRecoilRefresher_UNSTABLE:rre,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilCallback:qoe,useRecoilTransaction_UNSTABLE:cre,useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver_UNSTABLE:Woe,snapshot_UNSTABLE:Roe,useRetain:cI,retentionZone:joe},nse=Zf.RecoilRoot,ui=Zf.atom,O9=Zf.selector,on=Zf.useRecoilValue,zn=Zf.useRecoilState,ca=Zf.useResetRecoilState;const ise=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,u)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(u.bind(null,new Error("Unknown variable dynamic import: "+t)))})},rse="mi-components";let fx,j9,Vs=!1,bI=!1;const ic=(e,t="")=>()=>{},ose=(e,t)=>()=>{},sse="{visibility:hidden}.hydrated{visibility:inherit}",R9="http://www.w3.org/1999/xlink",P9={},ase="http://www.w3.org/2000/svg",lse="http://www.w3.org/1999/xhtml",cse=e=>e!=null,MI=e=>(e=typeof e,e==="object"||e==="function");function U9(e){var t,r,s;return(s=(r=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&s!==void 0?s:void 0}const ke=(e,t,...r)=>{let s=null,u=null,f=!1,m=!1;const a=[],v=D=>{for(let N=0;N<D.length;N++)s=D[N],Array.isArray(s)?v(s):s!=null&&typeof s!="boolean"&&((f=typeof e!="function"&&!MI(s))&&(s=String(s)),f&&m?a[a.length-1].$text$+=s:a.push(f?wI(null,s):s),m=f)};if(v(r),t){t.key&&(u=t.key);{const D=t.className||t.class;D&&(t.class=typeof D!="object"?D:Object.keys(D).filter(N=>D[N]).join(" "))}}const S=wI(e,null);return S.$attrs$=t,a.length>0&&(S.$children$=a),S.$key$=u,S},wI=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},co={},use=e=>e&&e.$tag$===co,hse=(e,t)=>e!=null&&!MI(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,rc=e=>mu(e).$hostElement$,pr=(e,t,r)=>{const s=rc(e);return{emit:u=>B9(s,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:u})}},B9=(e,t,r)=>{const s=Do.ce(t,r);return e.dispatchEvent(s),s},F9=new WeakMap,dse=(e,t,r)=>{let s=yx.get(e);zse&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,yx.set(e,s)},fse=(e,t,r,s)=>{var u;let f=V9(t);const m=yx.get(f);if(e=e.nodeType===11?e:cl,m)if(typeof m=="string"){e=e.head||e;let a=F9.get(e),v;if(a||F9.set(e,a=new Set),!a.has(f)){{v=cl.createElement("style"),v.innerHTML=m;const S=(u=Do.$nonce$)!==null&&u!==void 0?u:U9(cl);S!=null&&v.setAttribute("nonce",S),e.insertBefore(v,e.querySelector("link"))}a&&a.add(f)}}else e.adoptedStyleSheets.includes(m)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,m]);return f},pse=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,u=ic("attachStyles",t.$tagName$),f=fse(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=f,r.classList.add(f+"-h")),u()},V9=(e,t)=>"sc-"+e.$tagName$,$9=(e,t,r,s,u,f)=>{if(r!==s){let m=nO(e,t),a=t.toLowerCase();if(t==="class"){const v=e.classList,S=Q9(r),D=Q9(s);v.remove(...S.filter(N=>N&&!D.includes(N))),v.add(...D.filter(N=>N&&!S.includes(N)))}else if(t==="style"){for(const v in r)(!s||s[v]==null)&&(v.includes("-")?e.style.removeProperty(v):e.style[v]="");for(const v in s)(!r||s[v]!==r[v])&&(v.includes("-")?e.style.setProperty(v,s[v]):e.style[v]=s[v])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!m&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):nO(Yg,a)?t=a.slice(2):t=a[2]+t.slice(3),r&&Do.rel(e,t,r,!1),s&&Do.ael(e,t,s,!1);else{const v=MI(s);if((m||v&&s!==null)&&!u)try{if(e.tagName.includes("-"))e[t]=s;else{const D=s??"";t==="list"?m=!1:(r==null||e[t]!=D)&&(e[t]=D)}}catch{}let S=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,S=!0),s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&(S?e.removeAttributeNS(R9,t):e.removeAttribute(t)):(!m||f&4||u)&&!v&&(s=s===!0?"":s,S?e.setAttributeNS(R9,t,s):e.setAttribute(t,s))}}},mse=/\s/,Q9=e=>e?e.split(mse):[],H9=(e,t,r,s)=>{const u=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,f=e&&e.$attrs$||P9,m=t.$attrs$||P9;for(s in f)s in m||$9(u,s,f[s],void 0,r,t.$flags$);for(s in m)$9(u,s,f[s],m[s],r,t.$flags$)},px=(e,t,r,s)=>{const u=t.$children$[r];let f=0,m,a;if(u.$text$!==null)m=u.$elm$=cl.createTextNode(u.$text$);else{if(Vs||(Vs=u.$tag$==="svg"),m=u.$elm$=cl.createElementNS(Vs?ase:lse,u.$tag$),Vs&&u.$tag$==="foreignObject"&&(Vs=!1),H9(null,u,Vs),cse(fx)&&m["s-si"]!==fx&&m.classList.add(m["s-si"]=fx),u.$children$)for(f=0;f<u.$children$.length;++f)a=px(e,u,f),a&&m.appendChild(a);u.$tag$==="svg"?Vs=!1:m.tagName==="foreignObject"&&(Vs=!0)}return m},Y9=(e,t,r,s,u,f)=>{let m=e,a;for(m.shadowRoot&&m.tagName===j9&&(m=m.shadowRoot);u<=f;++u)s[u]&&(a=px(null,r,u),a&&(s[u].$elm$=a,m.insertBefore(a,t)))},G9=(e,t,r,s,u)=>{for(;t<=r;++t)(s=e[t])&&(u=s.$elm$,Z9(s),u.remove())},gse=(e,t,r,s)=>{let u=0,f=0,m=0,a=0,v=t.length-1,S=t[0],D=t[v],N=s.length-1,C=s[0],O=s[N],R,V;for(;u<=v&&f<=N;)if(S==null)S=t[++u];else if(D==null)D=t[--v];else if(C==null)C=s[++f];else if(O==null)O=s[--N];else if(mx(S,C))Wf(S,C),S=t[++u],C=s[++f];else if(mx(D,O))Wf(D,O),D=t[--v],O=s[--N];else if(mx(S,O))Wf(S,O),e.insertBefore(S.$elm$,D.$elm$.nextSibling),S=t[++u],O=s[--N];else if(mx(D,C))Wf(D,C),e.insertBefore(D.$elm$,S.$elm$),D=t[--v],C=s[++f];else{for(m=-1,a=u;a<=v;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===C.$key$){m=a;break}m>=0?(V=t[m],V.$tag$!==C.$tag$?R=px(t&&t[f],r,m):(Wf(V,C),t[m]=void 0,R=V.$elm$),C=s[++f]):(R=px(t&&t[f],r,f),C=s[++f]),R&&S.$elm$.parentNode.insertBefore(R,S.$elm$)}u>v?Y9(e,s[N+1]==null?null:s[N+1].$elm$,r,s,f,N):f>N&&G9(t,u,v)},mx=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Wf=(e,t)=>{const r=t.$elm$=e.$elm$,s=e.$children$,u=t.$children$,f=t.$tag$,m=t.$text$;m===null?(Vs=f==="svg"?!0:f==="foreignObject"?!1:Vs,f==="slot"||H9(e,t,Vs),s!==null&&u!==null?gse(r,s,t,u):u!==null?(e.$text$!==null&&(r.textContent=""),Y9(r,null,t,u,0,u.length-1)):s!==null&&G9(s,0,s.length-1),Vs&&f==="svg"&&(Vs=!1)):e.$text$!==m&&(r.data=m)},Z9=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Z9)},yse=(e,t)=>{const r=e.$hostElement$,s=e.$cmpMeta$,u=e.$vnode$||wI(null,null),f=use(t)?t:ke(null,null,t);j9=r.tagName,s.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},s.$attrsToReflect$.map(([m,a])=>f.$attrs$[a]=r[m])),f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=u.$elm$=r.shadowRoot||r,fx=r["s-sc"],Wf(u,f)},W9=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},gx=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return W9(e,e.$ancestorComponent$),Ose(()=>_se(e,t))},_se=(e,t)=>{const r=ic("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;let u;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([f,m])=>zh(s,f,m)),e.$queuedListeners$=null),u=zh(s,"componentWillLoad")),u=K9(u,()=>zh(s,"componentWillRender")),r(),K9(u,()=>vse(e,s,t))},vse=async(e,t,r)=>{const s=e.$hostElement$,u=ic("update",e.$cmpMeta$.$tagName$),f=s["s-rc"];r&&pse(e);const m=ic("render",e.$cmpMeta$.$tagName$);xse(e,t),f&&(f.map(a=>a()),s["s-rc"]=void 0),m(),u();{const a=s["s-p"],v=()=>bse(e);a.length===0?v():(Promise.all(a).then(v),e.$flags$|=4,a.length=0)}},xse=(e,t,r)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,yse(e,t)}catch(s){kh(s,e.$hostElement$)}return null},bse=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=ic("postUpdate",t),u=e.$lazyInstance$,f=e.$ancestorComponent$;zh(u,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,X9(r),zh(u,"componentDidLoad"),s(),e.$onReadyResolve$(r),f||q9()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&EI(()=>gx(e,!1)),e.$flags$&=-517},II=e=>{{const t=mu(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&gx(t,!1),r}},q9=e=>{X9(cl.documentElement),EI(()=>B9(Yg,"appload",{detail:{namespace:rse}}))},zh=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){kh(s)}},K9=(e,t)=>e&&e.then?e.then(t):t(),X9=e=>e.classList.add("hydrated"),Mse=(e,t)=>mu(e).$instanceValues$.get(t),wse=(e,t,r,s)=>{const u=mu(e),f=u.$hostElement$,m=u.$instanceValues$.get(t),a=u.$flags$,v=u.$lazyInstance$;r=hse(r,s.$members$[t][0]);const S=Number.isNaN(m)&&Number.isNaN(r),D=r!==m&&!S;if((!(a&8)||m===void 0)&&D&&(u.$instanceValues$.set(t,r),v)){if(s.$watchers$&&a&128){const N=s.$watchers$[t];N&&N.map(C=>{try{v[C](r,m,t)}catch(O){kh(O,f)}})}(a&18)===2&&gx(u,!1)}},J9=(e,t,r)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const s=Object.entries(t.$members$),u=e.prototype;if(s.map(([f,[m]])=>{m&31||r&2&&m&32?Object.defineProperty(u,f,{get(){return Mse(this,f)},set(a){wse(this,f,a,t)},configurable:!0,enumerable:!0}):r&1&&m&64&&Object.defineProperty(u,f,{value(...a){const v=mu(this);return v.$onInstancePromise$.then(()=>v.$lazyInstance$[f](...a))}})}),r&1){const f=new Map;u.attributeChangedCallback=function(m,a,v){Do.jmp(()=>{const S=f.get(m);if(this.hasOwnProperty(S))v=this[S],delete this[S];else if(u.hasOwnProperty(S)&&typeof this[S]=="number"&&this[S]==v)return;this[S]=v===null&&typeof this[S]=="boolean"?!1:v})},e.observedAttributes=s.filter(([m,a])=>a[0]&15).map(([m,a])=>{const v=a[1]||m;return f.set(v,m),a[0]&512&&t.$attrsToReflect$.push([m,v]),v})}}return e},Ise=async(e,t,r,s,u)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,u=Lse(r),u.then){const v=ose();u=await u,v()}u.isProxied||(r.$watchers$=u.watchers,J9(u,r,2),u.isProxied=!0);const a=ic("createInstance",r.$tagName$);t.$flags$|=8;try{new u(t)}catch(v){kh(v)}t.$flags$&=-9,t.$flags$|=128,a(),eO(t.$lazyInstance$)}if(u.style){let a=u.style;const v=V9(r);if(!yx.has(v)){const S=ic("registerStyles",r.$tagName$);dse(v,a,!!(r.$flags$&1)),S()}}}const f=t.$ancestorComponent$,m=()=>gx(t,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()},eO=e=>{zh(e,"connectedCallback")},Tse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$cmpMeta$,s=ic("connectedCallback",r.$tagName$);if(t.$flags$&1)tO(e,t,r.$listeners$),eO(t.$lazyInstance$);else{t.$flags$|=1;{let u=e;for(;u=u.parentNode||u.host;)if(u["s-p"]){W9(t,t.$ancestorComponent$=u);break}}r.$members$&&Object.entries(r.$members$).map(([u,[f]])=>{if(f&31&&e.hasOwnProperty(u)){const m=e[u];delete e[u],e[u]=m}}),Ise(e,t,r)}s()}},Sse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),zh(r,"disconnectedCallback")}},Ese=(e,t={})=>{var r;const s=ic(),u=[],f=t.exclude||[],m=Yg.customElements,a=cl.head,v=a.querySelector("meta[charset]"),S=cl.createElement("style"),D=[];let N,C=!0;Object.assign(Do,t),Do.$resourcesUrl$=new URL(t.resourcesUrl||"./",cl.baseURI).href,e.map(O=>{O[1].map(R=>{const V={$flags$:R[0],$tagName$:R[1],$members$:R[2],$listeners$:R[3]};V.$members$=R[2],V.$listeners$=R[3],V.$attrsToReflect$=[],V.$watchers$={};const q=V.$tagName$,H=class extends HTMLElement{constructor(Y){super(Y),Y=this,Nse(Y,V),V.$flags$&1&&Y.attachShadow({mode:"open"})}connectedCallback(){N&&(clearTimeout(N),N=null),C?D.push(this):Do.jmp(()=>Tse(this))}disconnectedCallback(){Do.jmp(()=>Sse(this))}componentOnReady(){return mu(this).$onReadyPromise$}};V.$lazyBundleId$=O[0],!f.includes(q)&&!m.get(q)&&(u.push(q),m.define(q,J9(H,V,1)))})});{S.innerHTML=u+sse,S.setAttribute("data-styles","");const O=(r=Do.$nonce$)!==null&&r!==void 0?r:U9(cl);O!=null&&S.setAttribute("nonce",O),a.insertBefore(S,v?v.nextSibling:a.firstChild)}C=!1,D.length?D.map(O=>O.connectedCallback()):Do.jmp(()=>N=setTimeout(q9,30)),s()},tO=(e,t,r,s)=>{r&&r.map(([u,f,m])=>{const a=Ase(e,u),v=Dse(t,m),S=Cse(u);Do.ael(a,f,v,S),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Do.rel(a,f,v,S))})},Dse=(e,t)=>r=>{try{e.$flags$&256?e.$lazyInstance$[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(s){kh(s)}},Ase=(e,t)=>t&8?Yg:e,Cse=e=>(e&2)!==0,TI=new WeakMap,mu=e=>TI.get(e),Ri=(e,t)=>TI.set(t.$lazyInstance$=e,t),Nse=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onInstancePromise$=new Promise(s=>r.$onInstanceResolve$=s),r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],tO(e,r,t.$listeners$),TI.set(e,r)},nO=(e,t)=>t in e,kh=(e,t)=>(0,console.error)(e,t),iO=new Map,Lse=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),u=e.$lazyBundleId$,f=iO.get(u);if(f)return f[s];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return ise(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Pce),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Fce),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>$ce),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Qce),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Gce),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>tue),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>rue),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>oue),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>aue),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>cue),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>yue),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>vue),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>bue),"./mi-list.entry.js":()=>Promise.resolve().then(()=>wue),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Zme),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>qme),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Jme),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>ige),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>oge),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>Mge),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>Ige),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Sge),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Dge),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Cge),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Lge),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>kge),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>jge),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Pge),"./mi-search.entry.js":()=>Promise.resolve().then(()=>$ge),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Hge),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Gge),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Wge),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>qge),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Xge),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Jge)}),`./${u}.entry.js`).then(m=>(iO.set(u,m),m[s]),kh)},yx=new Map,Yg=typeof window<"u"?window:{},cl=Yg.document||{head:{}},Do={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},rO=e=>Promise.resolve(e),zse=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),oO=[],sO=[],kse=(e,t)=>r=>{e.push(r),bI||(bI=!0,t&&Do.$flags$&4?EI(SI):Do.raf(SI))},aO=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){kh(r)}e.length=0},SI=()=>{aO(oO),aO(sO),(bI=oO.length>0)&&Do.raf(SI)},EI=e=>rO().then(e),Ose=kse(sO,!0),jse=()=>rO(),Rse=(e,t)=>typeof window>"u"?Promise.resolve():jse().then(()=>Ese([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],destinationLocation:[1,"destination-location"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],disabled:[4],currentItems:[32]},[[0,"focusout","focusOutEventHandler"],[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],positionState:[32],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Pse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class _x{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Pse,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,s,u){return u&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new _x(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new _x(this.logger,t)}}var ul=new _x;class vx{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(s=>{this.observers[s]=this.observers[s]||[],this.observers[s].push(r)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(s=>s!==r)}}emit(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];this.observers[t]&&[].concat(this.observers[t]).forEach(m=>{m(...s)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(m=>{m.apply(m,[t,...s])})}}function Gg(){let e,t;const r=new Promise((s,u)=>{e=s,t=u});return r.resolve=e,r.reject=t,r}function lO(e){return e==null?"":""+e}function Use(e,t,r){e.forEach(s=>{t[s]&&(r[s]=t[s])})}function DI(e,t,r){function s(m){return m&&m.indexOf("###")>-1?m.replace(/###/g,"."):m}function u(){return!e||typeof e=="string"}const f=typeof t!="string"?[].concat(t):t.split(".");for(;f.length>1;){if(u())return{};const m=s(f.shift());!e[m]&&r&&(e[m]=new r),Object.prototype.hasOwnProperty.call(e,m)?e=e[m]:e={}}return u()?{}:{obj:e,k:s(f.shift())}}function cO(e,t,r){const{obj:s,k:u}=DI(e,t,Object);s[u]=r}function Bse(e,t,r,s){const{obj:u,k:f}=DI(e,t,Object);u[f]=u[f]||[],s&&(u[f]=u[f].concat(r)),s||u[f].push(r)}function xx(e,t){const{obj:r,k:s}=DI(e,t);if(r)return r[s]}function Fse(e,t,r){const s=xx(e,r);return s!==void 0?s:xx(t,r)}function uO(e,t,r){for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?typeof e[s]=="string"||e[s]instanceof String||typeof t[s]=="string"||t[s]instanceof String?r&&(e[s]=t[s]):uO(e[s],t[s],r):e[s]=t[s]);return e}function qf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Vse={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $se(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Vse[t]):e}const Qse=[" ",",","?","!",";"];function Hse(e,t,r){t=t||"",r=r||"";const s=Qse.filter(m=>t.indexOf(m)<0&&r.indexOf(m)<0);if(s.length===0)return!0;const u=new RegExp(`(${s.map(m=>m==="?"?"\\?":m).join("|")})`);let f=!u.test(e);if(!f){const m=e.indexOf(r);m>0&&!u.test(e.substring(0,m))&&(f=!0)}return f}function bx(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(r);let u=e;for(let f=0;f<s.length;++f){if(!u||typeof u[s[f]]=="string"&&f+1<s.length)return;if(u[s[f]]===void 0){let m=2,a=s.slice(f,f+m).join(r),v=u[a];for(;v===void 0&&s.length>f+m;)m++,a=s.slice(f,f+m).join(r),v=u[a];if(v===void 0)return;if(v===null)return null;if(t.endsWith(a)){if(typeof v=="string")return v;if(a&&typeof v[a]=="string")return v[a]}const S=s.slice(f+m).join(r);return S?bx(v,S,r):void 0}u=u[s[f]]}return u}function Mx(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class hO extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,m=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,r];s&&typeof s!="string"&&(a=a.concat(s)),s&&typeof s=="string"&&(a=a.concat(f?s.split(f):s)),t.indexOf(".")>-1&&(a=t.split("."));const v=xx(this.data,a);return v||!m||typeof s!="string"?v:bx(this.data&&this.data[t]&&this.data[t][r],s,f)}addResource(t,r,s,u){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const m=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let a=[t,r];s&&(a=a.concat(m?s.split(m):s)),t.indexOf(".")>-1&&(a=t.split("."),u=r,r=a[1]),this.addNamespaces(r),cO(this.data,a,u),f.silent||this.emit("added",t,r,s,u)}addResources(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in s)(typeof s[f]=="string"||Object.prototype.toString.apply(s[f])==="[object Array]")&&this.addResource(t,r,f,s[f],{silent:!0});u.silent||this.emit("added",t,r,s)}addResourceBundle(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),u=s,s=r,r=a[1]),this.addNamespaces(r);let v=xx(this.data,a)||{};u?uO(v,s,f):v={...v,...s},cO(this.data,a,v),m.silent||this.emit("added",t,r,s)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(u=>r[u]&&Object.keys(r[u]).length>0)}toJSON(){return this.data}}var dO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,s,u){return e.forEach(f=>{this.processors[f]&&(t=this.processors[f].process(t,r,s,u))}),t}};const fO={};class wx extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Use(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ul.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,r);return s&&s.res!==void 0}extractFromKey(t,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const u=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const m=s&&t.indexOf(s)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Hse(t,s,u);if(m&&!a){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:f};const S=t.split(s);(s!==u||s===u&&this.options.ns.indexOf(S[0])>-1)&&(f=S.shift()),t=S.join(u)}return typeof f=="string"&&(f=[f]),{key:t,namespaces:f}}translate(t,r,s){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const u=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,f=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:m,namespaces:a}=this.extractFromKey(t[t.length-1],r),v=a[a.length-1],S=r.lng||this.language,D=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S&&S.toLowerCase()==="cimode"){if(D){const ee=r.nsSeparator||this.options.nsSeparator;return u?{res:`${v}${ee}${m}`,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:`${v}${ee}${m}`}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:m}const N=this.resolve(t,r);let C=N&&N.res;const O=N&&N.usedKey||m,R=N&&N.exactUsedKey||m,V=Object.prototype.toString.apply(C),q=["[object Number]","[object Function]","[object RegExp]"],H=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Y&&C&&(typeof C!="string"&&typeof C!="boolean"&&typeof C!="number")&&q.indexOf(V)<0&&!(typeof H=="string"&&V==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,C,{...r,ns:a}):`key '${m} (${this.language})' returned an object instead of string.`;return u?(N.res=ee,N.usedParams=this.getUsedParamsDetails(r),N):ee}if(f){const ee=V==="[object Array]",fe=ee?[]:{},pe=ee?R:O;for(const he in C)if(Object.prototype.hasOwnProperty.call(C,he)){const oe=`${pe}${f}${he}`;fe[he]=this.translate(oe,{...r,joinArrays:!1,ns:a}),fe[he]===oe&&(fe[he]=C[he])}C=fe}}else if(Y&&typeof H=="string"&&V==="[object Array]")C=C.join(H),C&&(C=this.extendTranslation(C,t,r,s));else{let ee=!1,fe=!1;const pe=r.count!==void 0&&typeof r.count!="string",he=wx.hasDefaultValue(r),oe=pe?this.pluralResolver.getSuffix(S,r.count,r):"",Ve=r.ordinal&&pe?this.pluralResolver.getSuffix(S,r.count,{ordinal:!1}):"",De=r[`defaultValue${oe}`]||r[`defaultValue${Ve}`]||r.defaultValue;!this.isValidLookup(C)&&he&&(ee=!0,C=De),this.isValidLookup(C)||(fe=!0,C=m);const Ge=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:C,it=he&&De!==C&&this.options.updateMissing;if(fe||ee||it){if(this.logger.log(it?"updateKey":"missingKey",S,v,m,it?De:C),f){const Le=this.resolve(m,{...r,keySeparator:!1});Le&&Le.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ee=[];const Ze=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ze&&Ze[0])for(let Le=0;Le<Ze.length;Le++)Ee.push(Ze[Le]);else this.options.saveMissingTo==="all"?Ee=this.languageUtils.toResolveHierarchy(r.lng||this.language):Ee.push(r.lng||this.language);const ze=(Le,Ye,qe)=>{const Ie=he&&qe!==C?qe:Ge;this.options.missingKeyHandler?this.options.missingKeyHandler(Le,v,Ye,Ie,it,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Le,v,Ye,Ie,it,r),this.emit("missingKey",Le,v,Ye,C)};this.options.saveMissing&&(this.options.saveMissingPlurals&&pe?Ee.forEach(Le=>{this.pluralResolver.getSuffixes(Le,r).forEach(Ye=>{ze([Le],m+Ye,r[`defaultValue${Ye}`]||De)})}):ze(Ee,m,De))}C=this.extendTranslation(C,t,r,N,s),fe&&C===m&&this.options.appendNamespaceToMissingKey&&(C=`${v}:${m}`),(fe||ee)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?C=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${m}`:m,ee?C:void 0):C=this.options.parseMissingKeyHandler(C))}return u?(N.res=C,N.usedParams=this.getUsedParamsDetails(r),N):C}extendTranslation(t,r,s,u,f){var m=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const S=typeof t=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let D;if(S){const C=t.match(this.interpolator.nestingRegexp);D=C&&C.length}let N=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(N={...this.options.interpolation.defaultVariables,...N}),t=this.interpolator.interpolate(t,N,s.lng||this.language,s),S){const C=t.match(this.interpolator.nestingRegexp),O=C&&C.length;D<O&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&u&&u.res&&(s.lng=u.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var C=arguments.length,O=new Array(C),R=0;R<C;R++)O[R]=arguments[R];return f&&f[0]===O[0]&&!s.context?(m.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${r[0]}`),null):m.translate(...O,r)},s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,v=typeof a=="string"?[a]:a;return t!=null&&v&&v.length&&s.applyPostProcessor!==!1&&(t=dO.handle(v,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,m,a;return typeof t=="string"&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(s))return;const S=this.extractFromKey(v,r),D=S.key;u=D;let N=S.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const C=r.count!==void 0&&typeof r.count!="string",O=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),R=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",V=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);N.forEach(q=>{this.isValidLookup(s)||(a=q,!fO[`${V[0]}-${q}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(fO[`${V[0]}-${q}`]=!0,this.logger.warn(`key "${u}" for languages "${V.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),V.forEach(H=>{if(this.isValidLookup(s))return;m=H;const Y=[D];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Y,D,H,q,r);else{let ee;C&&(ee=this.pluralResolver.getSuffix(H,r.count,r));const fe=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(Y.push(D+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(D+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(D+fe)),R){const he=`${D}${this.options.contextSeparator}${r.context}`;Y.push(he),C&&(Y.push(he+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(he+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(he+fe))}}let W;for(;W=Y.pop();)this.isValidLookup(s)||(f=W,s=this.getResource(H,q,W,r))}))})}),{res:s,usedKey:u,exactUsedKey:f,usedLng:m,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,s,u):this.resourceStore.getResource(t,r,s,u)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&typeof t.replace!="string";let u=s?t.replace:t;if(s&&typeof t.count<"u"&&(u.count=t.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!s){u={...u};for(const f of r)delete u[f]}return u}static hasDefaultValue(t){const r="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&r===s.substring(0,r.length)&&t[s]!==void 0)return!0;return!1}}function AI(e){return e.charAt(0).toUpperCase()+e.slice(1)}class pO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ul.create("languageUtils")}getScriptPartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(u=>u.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase())),r.indexOf(s[2].toLowerCase())>-1&&(s[2]=AI(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(s=>{if(r)return;const u=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(u))&&(r=u)}),!r&&this.options.supportedLngs&&t.forEach(s=>{if(r)return;const u=this.getLanguagePartFromCode(s);if(this.isSupportedCode(u))return r=u;r=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&f.indexOf(u)===0)return f})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let s=t[r];return s||(s=t[this.getScriptPartFromCode(r)]),s||(s=t[this.formatLanguageCode(r)]),s||(s=t[this.getLanguagePartFromCode(r)]),s||(s=t.default),s||[]}toResolveHierarchy(t,r){const s=this.getFallbackCodes(r||this.options.fallbackLng||[],t),u=[],f=m=>{m&&(this.isSupportedCode(m)?u.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(t))):typeof t=="string"&&f(this.formatLanguageCode(t)),s.forEach(m=>{u.indexOf(m)<0&&f(this.formatLanguageCode(m))}),u}}let Yse=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Gse={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Zse=["v1","v2","v3"],Wse=["v4"],mO={zero:0,one:1,two:2,few:3,many:4,other:5};function qse(){const e={};return Yse.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Gse[t.fc]}})}),e}class Kse{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ul.create("pluralResolver"),(!this.options.compatibilityJSON||Wse.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=qse()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mx(t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(u=>`${r}${u}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((u,f)=>mO[u]-mO[f]).map(u=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u}`):s.numbers.map(u=>this.getSuffix(t,u,r)):[]}getSuffix(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=this.getRule(t,s);return u?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${u.select(r)}`:this.getSuffixRetroCompatible(u,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const s=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let u=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));const f=()=>this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString();return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?`_plural_${u.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?f():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!Zse.includes(this.options.compatibilityJSON)}}function gO(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Fse(e,t,r);return!f&&u&&typeof r=="string"&&(f=bx(e,r,s),f===void 0&&(f=bx(t,r,s))),f}class Xse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:$se,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?qf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?qf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?qf(r.nestingPrefix):r.nestingPrefixEscaped||qf("$t("),this.nestingSuffix=r.nestingSuffix?qf(r.nestingSuffix):r.nestingSuffixEscaped||qf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const r=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(r,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(t,r,s,u){let f,m,a;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function S(R){return R.replace(/\$/g,"$$$$")}const D=R=>{if(R.indexOf(this.formatSeparator)<0){const Y=gO(r,v,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Y,void 0,s,{...u,...r,interpolationkey:R}):Y}const V=R.split(this.formatSeparator),q=V.shift().trim(),H=V.join(this.formatSeparator).trim();return this.format(gO(r,v,q,this.options.keySeparator,this.options.ignoreJSONStructure),H,s,{...u,...r,interpolationkey:q})};this.resetRegExp();const N=u&&u.missingInterpolationHandler||this.options.missingInterpolationHandler,C=u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>S(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?S(this.escape(R)):S(R)}].forEach(R=>{for(a=0;f=R.regex.exec(t);){const V=f[1].trim();if(m=D(V),m===void 0)if(typeof N=="function"){const H=N(t,f,u);m=typeof H=="string"?H:""}else if(u&&Object.prototype.hasOwnProperty.call(u,V))m="";else if(C){m=f[0];continue}else this.logger.warn(`missed to pass in variable ${V} for interpolating ${t}`),m="";else typeof m!="string"&&!this.useRawValueToEscape&&(m=lO(m));const q=R.safeValue(m);if(t=t.replace(f[0],q),C?(R.regex.lastIndex+=m.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,f,m;function a(v,S){const D=this.nestingOptionsSeparator;if(v.indexOf(D)<0)return v;const N=v.split(new RegExp(`${D}[ ]*{`));let C=`{${N[1]}`;v=N[0],C=this.interpolate(C,m);const O=C.match(/'/g),R=C.match(/"/g);(O&&O.length%2===0&&!R||R.length%2!==0)&&(C=C.replace(/'/g,'"'));try{m=JSON.parse(C),S&&(m={...S,...m})}catch(V){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,V),`${v}${D}${C}`}return delete m.defaultValue,v}for(;u=this.nestingRegexp.exec(t);){let v=[];m={...s},m=m.replace&&typeof m.replace!="string"?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;let S=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){const D=u[1].split(this.formatSeparator).map(N=>N.trim());u[1]=D.shift(),v=D,S=!0}if(f=r(a.call(this,u[1].trim(),m),m),f&&u[0]===t&&typeof f!="string")return f;typeof f!="string"&&(f=lO(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${t}`),f=""),S&&(f=v.reduce((D,N)=>this.format(D,N,s.lng,{...s,interpolationkey:u[1].trim()}),f.trim())),t=t.replace(u[0],f),this.regexp.lastIndex=0}return t}}function Jse(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const u=s[1].substring(0,s[1].length-1);t==="currency"&&u.indexOf(":")<0?r.currency||(r.currency=u.trim()):t==="relativetime"&&u.indexOf(":")<0?r.range||(r.range=u.trim()):u.split(";").forEach(m=>{if(!m)return;const[a,...v]=m.split(":"),S=v.join(":").trim().replace(/^'+|'+$/g,"");r[a.trim()]||(r[a.trim()]=S),S==="false"&&(r[a.trim()]=!1),S==="true"&&(r[a.trim()]=!0),isNaN(S)||(r[a.trim()]=parseInt(S,10))})}return{formatName:t,formatOptions:r}}function Kf(e){const t={};return function(s,u,f){const m=u+JSON.stringify(f);let a=t[m];return a||(a=e(Mx(u),f),t[m]=a),a(s)}}class eae{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("formatter"),this.options=t,this.formats={number:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s});return f=>u.format(f)}),currency:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s,style:"currency"});return f=>u.format(f)}),datetime:Kf((r,s)=>{const u=new Intl.DateTimeFormat(r,{...s});return f=>u.format(f)}),relativetime:Kf((r,s)=>{const u=new Intl.RelativeTimeFormat(r,{...s});return f=>u.format(f,s.range||"day")}),list:Kf((r,s)=>{const u=new Intl.ListFormat(r,{...s});return f=>u.format(f)})},this.init(t)}init(t){const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Kf(r)}format(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,v)=>{const{formatName:S,formatOptions:D}=Jse(v);if(this.formats[S]){let N=a;try{const C=u&&u.formatParams&&u.formatParams[u.interpolationkey]||{},O=C.locale||C.lng||u.locale||u.lng||s;N=this.formats[S](a,O,{...D,...u,...C})}catch(C){this.logger.warn(C)}return N}else this.logger.warn(`there was no format function for ${S}`);return a},t)}}function tae(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class nae extends vx{constructor(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=u,this.logger=ul.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,u.backend,u)}queueLoad(t,r,s,u){const f={},m={},a={},v={};return t.forEach(S=>{let D=!0;r.forEach(N=>{const C=`${S}|${N}`;!s.reload&&this.store.hasResourceBundle(S,N)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?m[C]===void 0&&(m[C]=!0):(this.state[C]=1,D=!1,m[C]===void 0&&(m[C]=!0),f[C]===void 0&&(f[C]=!0),v[N]===void 0&&(v[N]=!0)))}),D||(a[S]=!0)}),(Object.keys(f).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(m),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(v)}}loaded(t,r,s){const u=t.split("|"),f=u[0],m=u[1];r&&this.emit("failedLoading",f,m,r),s&&this.store.addResourceBundle(f,m,s),this.state[t]=r?-1:2;const a={};this.queue.forEach(v=>{Bse(v.loaded,[f],m),tae(v,t),r&&v.errors.push(r),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(S=>{a[S]||(a[S]={});const D=v.loaded[S];D.length&&D.forEach(N=>{a[S][N]===void 0&&(a[S][N]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(v=>!v.done)}read(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,m=arguments.length>5?arguments[5]:void 0;if(!t.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:s,tried:u,wait:f,callback:m});return}this.readingCalls++;const a=(S,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback)}if(S&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,s,u+1,f*2,m)},f);return}m(S,D)},v=this.backend[s].bind(this.backend);if(v.length===2){try{const S=v(t,r);S&&typeof S.then=="function"?S.then(D=>a(null,D)).catch(a):a(null,S)}catch(S){a(S)}return}return v(t,r,a)}prepareLoading(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const f=this.queueLoad(t,r,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(m=>{this.loadOne(m)})}load(t,r,s){this.prepareLoading(t,r,{},s)}reload(t,r,s){this.prepareLoading(t,r,{reload:!0},s)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,(m,a)=>{m&&this.logger.warn(`${r}loading namespace ${f} for language ${u} failed`,m),!m&&a&&this.logger.log(`${r}loaded namespace ${f} for language ${u}`,a),this.loaded(t,m,a)})}saveMissing(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const v={...m,isUpdate:f},S=this.backend.create.bind(this.backend);if(S.length<6)try{let D;S.length===5?D=S(t,r,s,u,v):D=S(t,r,s,u),D&&typeof D.then=="function"?D.then(N=>a(null,N)).catch(a):a(null,D)}catch(D){a(D)}else S(t,r,s,u,a,v)}!t||!t[0]||this.store.addResource(t[0],r,s,u)}}}function yO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const s=t[3]||t[2];Object.keys(s).forEach(u=>{r[u]=s[u]})}return r},interpolation:{escapeValue:!0,format:(e,t,r,s)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function _O(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ix(){}function iae(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class Zg extends vx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=_O(t),this.services={},this.logger=ul,this.modules={external:[]},iae(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(s=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const u=yO();this.options={...u,...this.options,..._O(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...u.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function f(D){return D?typeof D=="function"?new D:D:null}if(!this.options.isClone){this.modules.logger?ul.init(f(this.modules.logger),this.options):ul.init(null,this.options);let D;this.modules.formatter?D=this.modules.formatter:typeof Intl<"u"&&(D=eae);const N=new pO(this.options);this.store=new hO(this.options.resources,this.options);const C=this.services;C.logger=ul,C.resourceStore=this.store,C.languageUtils=N,C.pluralResolver=new Kse(N,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),D&&(!this.options.interpolation.format||this.options.interpolation.format===u.interpolation.format)&&(C.formatter=f(D),C.formatter.init(C,this.options),this.options.interpolation.format=C.formatter.format.bind(C.formatter)),C.interpolator=new Xse(this.options),C.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},C.backendConnector=new nae(f(this.modules.backend),C.resourceStore,C,this.options),C.backendConnector.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.languageDetector&&(C.languageDetector=f(this.modules.languageDetector),C.languageDetector.init&&C.languageDetector.init(C,this.options.detection,this.options)),this.modules.i18nFormat&&(C.i18nFormat=f(this.modules.i18nFormat),C.i18nFormat.init&&C.i18nFormat.init(this)),this.translator=new wx(this.services,this.options),this.translator.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ix),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const D=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);D.length>0&&D[0]!=="dev"&&(this.options.lng=D[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(D=>{this[D]=function(){return t.store[D](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(D=>{this[D]=function(){return t.store[D](...arguments),t}});const v=Gg(),S=()=>{const D=(N,C)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(C),s(N,C)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return D(null,this.t.bind(this));this.changeLanguage(this.options.lng,D)};return this.options.resources||!this.options.initImmediate?S():setTimeout(S,0),v}loadResources(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const u=typeof t=="string"?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const f=[],m=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(S=>{S!=="cimode"&&f.indexOf(S)<0&&f.push(S)})};u?m(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>m(v)),this.options.preload&&this.options.preload.forEach(a=>m(a)),this.services.backendConnector.load(f,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(a)})}else s(null)}reloadResources(t,r,s){const u=Gg();return t||(t=this.languages),r||(r=this.options.ns),s||(s=Ix),this.services.backendConnector.reload(t,r,f=>{u.resolve(),s(f)}),u}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&dO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,r){var s=this;this.isLanguageChangingTo=t;const u=Gg();this.emit("languageChanging",t);const f=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},m=(v,S)=>{S?(f(S),this.translator.changeLanguage(S),this.isLanguageChangingTo=void 0,this.emit("languageChanged",S),this.logger.log("languageChanged",S)):this.isLanguageChangingTo=void 0,u.resolve(function(){return s.t(...arguments)}),r&&r(v,function(){return s.t(...arguments)})},a=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const S=typeof v=="string"?v:this.services.languageUtils.getBestMatchFromCodes(v);S&&(this.language||f(S),this.translator.language||this.translator.changeLanguage(S),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(S)),this.loadResources(S,D=>{m(D,S)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),u}getFixedT(t,r,s){var u=this;const f=function(m,a){let v;if(typeof a!="object"){for(var S=arguments.length,D=new Array(S>2?S-2:0),N=2;N<S;N++)D[N-2]=arguments[N];v=u.options.overloadTranslationOptionHandler([m,a].concat(D))}else v={...a};v.lng=v.lng||f.lng,v.lngs=v.lngs||f.lngs,v.ns=v.ns||f.ns,v.keyPrefix=v.keyPrefix||s||f.keyPrefix;const C=u.options.keySeparator||".";let O;return v.keyPrefix&&Array.isArray(m)?O=m.map(R=>`${v.keyPrefix}${C}${R}`):O=v.keyPrefix?`${v.keyPrefix}${C}${m}`:m,u.t(O,v)};return typeof t=="string"?f.lng=t:f.lngs=t,f.ns=r,f.keyPrefix=s,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=this.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};if(r.precheck){const a=r.precheck(this,m);if(a!==void 0)return a}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(s,t)&&(!u||m(f,t)))}loadNamespaces(t,r){const s=Gg();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{s.resolve(),r&&r(u)}),s):(r&&r(),Promise.resolve())}loadLanguages(t,r){const s=Gg();typeof t=="string"&&(t=[t]);const u=this.options.preload||[],f=t.filter(m=>u.indexOf(m)<0);return f.length?(this.options.preload=u.concat(f),this.loadResources(m=>{s.resolve(),r&&r(m)}),s):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new pO(yO());return r.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Zg(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const u={...this.options,...t,isClone:!0},f=new Zg(u);return(t.debug!==void 0||t.prefix!==void 0)&&(f.logger=f.logger.clone(t)),["store","services","language"].forEach(a=>{f[a]=this[a]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s&&(f.store=new hO(this.store.data,u),f.services.resourceStore=f.store),f.translator=new wx(f.services,u),f.translator.on("*",function(a){for(var v=arguments.length,S=new Array(v>1?v-1:0),D=1;D<v;D++)S[D-1]=arguments[D];f.emit(a,...S)}),f.init(u,r),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Oo=Zg.createInstance();Oo.createInstance=Zg.createInstance,Oo.createInstance,Oo.dir,Oo.init,Oo.loadResources,Oo.reloadResources,Oo.use,Oo.changeLanguage,Oo.getFixedT;const CI=Oo.t;Oo.exists,Oo.setDefaultNamespace,Oo.hasLoadedNamespace,Oo.loadNamespaces,Oo.loadLanguages;function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},NI.apply(this,arguments)}function rae(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const vO={};function LI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&vO[t[0]]||(typeof t[0]=="string"&&(vO[t[0]]=new Date),rae(...t))}const xO=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function bO(e,t,r){e.loadNamespaces(t,xO(e,r))}function MO(e,t,r,s){typeof r=="string"&&(r=[r]),r.forEach(u=>{e.options.ns.indexOf(u)<0&&e.options.ns.push(u)}),e.loadLanguages(t,xO(e,s))}function oae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=t.languages[0],u=t.options?t.options.fallbackLng:!1,f=t.languages[t.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=t.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!m(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(s,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||m(s,e)&&(!u||m(f,e)))}function sae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(LI("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(u,f)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!f(u.isLanguageChangingTo,e))return!1}}):oae(e,t,r)}const aae=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lae={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},cae=e=>lae[e];let zI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(aae,cae)};function uae(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zI={...zI,...e}}function hae(){return zI}let wO;function dae(e){wO=e}function fae(){return wO}const pae={type:"3rdParty",init(e){uae(e.options.react),dae(e)}},mae=Oe.createContext();class gae{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const yae=(e,t)=>{const r=Oe.useRef();return Oe.useEffect(()=>{r.current=t?r.current:e},[e,t]),r.current};function ua(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:s,defaultNS:u}=Oe.useContext(mae)||{},f=r||s||fae();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new gae),!f){LI("You will need to pass in an i18next instance by using initReactI18next");const W=(fe,pe)=>typeof pe=="string"?pe:pe&&typeof pe=="object"&&typeof pe.defaultValue=="string"?pe.defaultValue:Array.isArray(fe)?fe[fe.length-1]:fe,ee=[W,{},!1];return ee.t=W,ee.i18n={},ee.ready=!1,ee}f.options.react&&f.options.react.wait!==void 0&&LI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...hae(),...f.options.react,...t},{useSuspense:a,keyPrefix:v}=m;let S=e||u||f.options&&f.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(S);const D=(f.isInitialized||f.initializedStoreOnce)&&S.every(W=>sae(W,f,m));function N(){return f.getFixedT(t.lng||null,m.nsMode==="fallback"?S:S[0],v)}const[C,O]=Oe.useState(N);let R=S.join();t.lng&&(R=`${t.lng}${R}`);const V=yae(R),q=Oe.useRef(!0);Oe.useEffect(()=>{const{bindI18n:W,bindI18nStore:ee}=m;q.current=!0,!D&&!a&&(t.lng?MO(f,t.lng,S,()=>{q.current&&O(N)}):bO(f,S,()=>{q.current&&O(N)})),D&&V&&V!==R&&q.current&&O(N);function fe(){q.current&&O(N)}return W&&f&&f.on(W,fe),ee&&f&&f.store.on(ee,fe),()=>{q.current=!1,W&&f&&W.split(" ").forEach(pe=>f.off(pe,fe)),ee&&f&&ee.split(" ").forEach(pe=>f.store.off(pe,fe))}},[f,R]);const H=Oe.useRef(!0);Oe.useEffect(()=>{q.current&&!H.current&&O(N),H.current=!1},[f,v]);const Y=[C,f,D];if(Y.t=C,Y.i18n=f,Y.ready=D,D||!D&&!a)return Y;throw new Promise(W=>{t.lng?MO(f,t.lng,S,()=>W()):bO(f,S,()=>W())})}const _ae={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch",Accessibility:"Accessibility","No route found":"No route found","My position":"My position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Turn on Accessibility to get directions that avoid stairs and escalators.","Go!":"Go!",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route"},vae={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift",Accessibility:"Tilgængelig rute","No route found":"Ingen rute fundet","My position":"Min position","Turn on Accessibility to get directions that avoid stairs and escalators.":'Slå "Tilgængelig rute" til for at få en rutevejledning uden trapper og rulletrapper.',"Go!":"Go!",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten"},xae={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Suche nach Name, Kategorie, Gebäude...","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Öffne vollständige Beschreibung",Locations:"Locations","Directions not available":"Beschreibung nicht verfügbar","Start directions":"Starte Beschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlasse das",Enter:"Gehe in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren",Accessibility:"Barrierefrei","No route found":"Keine Route gefunden","My position":"Meine Position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Schalte Barrierefrei ein, um Treppen und Rolltreppen zu vermeiden.","Go!":"Start!",Venues:"Standorte","Select venue":"Wähle Standort",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden"},bae={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer",Accessibility:"Accessibilité","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Activez l'accessibilité pour obtenir des itinéraires qui évitent les escaliers.","Go!":"C'est parti!",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire"};function Mae(e){Oo.use(pae).init({resources:{en:{translation:_ae},da:{translation:vae},de:{translation:xae},fr:{translation:bae}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const K_e="",ls={Google:"google",Mapbox:"mapbox"},bs=ui({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),wae=e=>{const t=on(bs),r=Oe.useRef(),[s,u]=Oe.useState([]);Oe.useEffect(()=>{(async()=>{if(t&&e){for(const a of s)r.current.disableLiveData(a);r.current=new window.mapsindoors.LiveDataManager(t);const m=await r.current.LiveDataInfo.activeDomainTypes();for(const a of m)await r.current.enableLiveData(a);u(m)}})()},[e,t])},X_e="";var Iae=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var s,u,f;if(Array.isArray(t)){if(s=t.length,s!=r.length)return!1;for(u=s;u--!==0;)if(!e(t[u],r[u]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(f=Object.keys(t),s=f.length,s!==Object.keys(r).length)return!1;for(u=s;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,f[u]))return!1;for(u=s;u--!==0;){var m=f[u];if(!e(t[m],r[m]))return!1}return!0}return t!==t&&r!==r};const IO="__googleMapsScriptId";var Xf;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Xf||(Xf={}));let Tae=class mm{constructor({apiKey:t,authReferrerPolicy:r,channel:s,client:u,id:f=IO,language:m,libraries:a=[],mapIds:v,nonce:S,region:D,retries:N=3,url:C="https://maps.googleapis.com/maps/api/js",version:O}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=r,this.channel=s,this.client=u,this.id=f||IO,this.language=m,this.libraries=a,this.mapIds=v,this.nonce=S,this.region=D,this.retries=N,this.url=C,this.version=O,mm.instance){if(!Iae(this.options,mm.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(mm.instance.options)}`);return mm.instance}mm.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Xf.FAILURE:this.done?Xf.SUCCESS:this.loading?Xf.LOADING:Xf.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,r)=>{this.loadCallback(s=>{s?r(s.error):t(window.google)})})}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const t=this.createUrl(),r=document.createElement("script");r.id=this.id,r.type="text/javascript",r.src=t,r.onerror=this.loadErrorCallback.bind(this),r.defer=!0,r.async=!0,this.nonce&&(r.nonce=this.nonce),document.head.appendChild(r)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const r=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${r} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},r)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};const Tx=ui({key:"gmApiKey",default:null}),Aa=ui({key:"primaryColor",default:"#005655"}),TO=ui({key:"gmMapId",default:null}),Wg=ui({key:"bearing",default:0}),qg=ui({key:"pitch",default:0}),SO=e=>{const[t,r]=Oe.useState(!1);return Oe.useEffect(()=>{const s=window.matchMedia(e);s.matches!==t&&r(s.matches);const u=()=>r(s.matches);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[t,e]),t},oc=()=>SO("(min-width: 992px)");function Sae({onMapView:e,onPositionControl:t}){const r=on(Tx),s=on(TO),[u,f]=Oe.useState(),[m,a]=Oe.useState(),[v,S]=Oe.useState(!1),[D,N]=Oe.useState(!1),[C,O]=Oe.useState(!1),R=on(bs),V=on(Aa),q=on(Wg),H=on(qg),Y=oc();return Oe.useEffect(()=>{new Tae({apiKey:r,version:"quarterly",libraries:["geometry","places"]}).load().then(ee=>{f(ee);const fe={element:document.getElementById("map"),disableDefaultUI:!0,center:{lat:0,lng:0},zoom:21,mapId:s,heading:isNaN(parseInt(q))?0:parseInt(q),tilt:isNaN(parseInt(H))?0:parseInt(H)},pe=new window.mapsindoors.mapView.GoogleMapsView(fe);a(pe);const he=new window.mapsindoors.directions.GoogleMapsProvider;e(pe,he)})},[]),Oe.useEffect(()=>{if(R&&m&&u&&!D){const W=document.createElement("mi-my-position");W.mapsindoors=R,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),N(!0),t(W)}if(R&&m&&u&&!v){const W=document.createElement("mi-floor-selector");W.mapsindoors=R,W.primaryColor=V,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),S(!0)}R&&m&&u&&!C&&Y&&(m.getMap().setOptions({zoomControl:!0,zoomControlOptions:{style:u.maps.ZoomControlStyle.DEFAULT,position:u.maps.ControlPosition.RIGHT_TOP}}),O(!0))},[R,m,u,v,D]),Je.jsx("div",{className:"map-container",id:"map","data-sentry-component":"GoogleMapsMap","data-sentry-source-file":"GoogleMapsMap.jsx"})}var EO={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Lc,function(){var r,s,u;function f(a,v){if(!r)r=v;else if(!s)s=v;else{var S="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+r+")(sharedChunk); ("+s+")(sharedChunk); self.onerror = null;",D={};r(D),u=v(D),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(u.workerUrl=window.URL.createObjectURL(new Blob([S],{type:"text/javascript"})))}}f(["exports"],function(a){var v="3.3.0";let S;const D={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(S==null){const i=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{S=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):i}catch{S=i}}return S},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!D.API_URL)return null;try{const i=new URL(D.API_URL);return i.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":i.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"};function N(i){return D.API_URL_REGEX.test(i)}function C(i){return i.indexOf("mapbox:")===0}function O(i){return D.API_CDN_URL_REGEX.test(i)}function R(i){return D.API_SPRITE_REGEX.test(i)}function V(i){return D.API_STYLE_REGEX.test(i)&&!R(i)}const q={create:"create",load:"load",fullLoad:"fullLoad"};function H(i){const n=i.name.split("?")[0];return O(n)&&n.includes("mapbox-gl.js")?"javascript":O(n)&&n.includes("mapbox-gl.css")?"css":function(o){return D.API_FONTS_REGEX.test(o)}(n)?"fontRange":R(n)?"sprite":V(n)?"style":function(o){return D.API_TILEJSON_REGEX.test(o)}(n)?"tilejson":"other"}function Y(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var W=ee;function ee(i,n,o,c){this.cx=3*i,this.bx=3*(o-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(c-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=n,this.p2x=o,this.p2y=c}ee.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,n){if(n===void 0&&(n=1e-6),i<0)return 0;if(i>1)return 1;for(var o=i,c=0;c<8;c++){var d=this.sampleCurveX(o)-i;if(Math.abs(d)<n)return o;var p=this.sampleCurveDerivativeX(o);if(Math.abs(p)<1e-6)break;o-=d/p}var _=0,b=1;for(o=i,c=0;c<20&&(d=this.sampleCurveX(o),!(Math.abs(d-i)<n));c++)i>d?_=o:b=o,o=.5*(b-_)+_;return o},solve:function(i,n){return this.sampleCurveY(this.solveCurveX(i,n))}};var fe=Y(W),pe=he;function he(i,n){this.x=i,this.y=n}he.prototype={clone:function(){return new he(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,n){return this.clone()._rotateAround(i,n)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var n=i.x-this.x,o=i.y-this.y;return n*n+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,n){return Math.atan2(this.x*n-this.y*i,this.x*i+this.y*n)},_matMult:function(i){var n=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=n,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var n=Math.cos(i),o=Math.sin(i),c=o*this.x+n*this.y;return this.x=n*this.x-o*this.y,this.y=c,this},_rotateAround:function(i,n){var o=Math.cos(i),c=Math.sin(i),d=n.y+c*(this.x-n.x)+o*(this.y-n.y);return this.x=n.x+o*(this.x-n.x)-c*(this.y-n.y),this.y=d,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},he.convert=function(i){return i instanceof he?i:Array.isArray(i)?new he(i[0],i[1]):i};var oe=Y(pe);const Ve=Math.PI/180,De=180/Math.PI;function Ae(i){return i*Ve}function Ge(i){return i*De}const it=[[0,0],[1,0],[1,1],[0,1]];function Ee(i){if(i<=0)return 0;if(i>=1)return 1;const n=i*i,o=n*i;return 4*(i<.5?o:3*(i-n)+o-.75)}function Ze(i,n,o,c){const d=new fe(i,n,o,c);return function(p){return d.solve(p)}}const ze=Ze(.25,.1,.25,1);function Le(i,n,o){return Math.min(o,Math.max(n,i))}function Ye(i,n,o){return(o=Le((o-i)/(n-i),0,1))*o*(3-2*o)}function qe(i,n,o){const c=o-n,d=((i-n)%c+c)%c+n;return d===n?o:d}function Ie(i,n,o){if(!i.length)return o(null,[]);let c=i.length;const d=new Array(i.length);let p=null;i.forEach((_,b)=>{n(_,(w,I)=>{w&&(p=w),d[b]=I,--c==0&&o(p,d)})})}function Te(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}let le=1;function X(){return le++}function ie(){return function i(n){return n?(n^Math.random()*(16>>n/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,i)}()}function Me(i){return i<=1?1:Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function xe(i){return!!i&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i)}function $e(i,n){i.forEach(o=>{n[o]&&(n[o]=n[o].bind(n))})}function He(i,n){return i.indexOf(n,i.length-n.length)!==-1}function Ue(i,n,o){const c={};for(const d in i)c[d]=n.call(o||this,i[d],d,i);return c}function Xe(i,n,o){const c={};for(const d in i)n.call(o||this,i[d],d,i)&&(c[d]=i[d]);return c}function ut(i){return Array.isArray(i)?i.map(ut):typeof i=="object"&&i?Ue(i,ut):i}const _t={};function et(i){_t[i]||(typeof console<"u"&&console.warn(i),_t[i]=!0)}function bt(i,n,o){return(o.y-i.y)*(n.x-i.x)>(n.y-i.y)*(o.x-i.x)}function Ot(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function Rt([i,n,o]){const c=Ae(n+90),d=Ae(o);return{x:i*Math.cos(c)*Math.sin(d),y:i*Math.sin(c)*Math.sin(d),z:i*Math.cos(d),azimuthal:n,polar:o}}function dn(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Bn(i){const n={};if(i.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(o,c,d,p)=>{const _=d||p;return n[c]=!_||_.toLowerCase(),""}),n["max-age"]){const o=parseInt(n["max-age"],10);isNaN(o)?delete n["max-age"]:n["max-age"]=o}return n}let Tt,kn,An,Cn,$n,ni,st=null;function se(i){try{const n=self[i];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch{return!1}}function ce(i,n){return[i[4*n],i[4*n+1],i[4*n+2],i[4*n+3]]}function Ne(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<c?n=d+1:o=d}return n}function ht(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<=c?n=d+1:o=d}return n}function vt(){return Tt==null&&(Tt=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Tt}const pt={now:()=>Cn!==void 0?Cn:performance.now(),setNow(i){Cn=i},restoreNow(){Cn=void 0},frame(i){const n=requestAnimationFrame(i);return{cancel:()=>cancelAnimationFrame(n)}},getImageData(i,n=0){const{width:o,height:c}=i;$n||($n=document.createElement("canvas"));const d=$n.getContext("2d",{willReadFrequently:!0});if(!d)throw new Error("failed to create canvas 2d context");return(o>$n.width||c>$n.height)&&($n.width=o,$n.height=c),d.clearRect(-n,-n,o+2*n,c+2*n),d.drawImage(i,0,0,o,c),d.getImageData(-n,-n,o+2*n,c+2*n)},resolveURL:i=>(kn||(kn=document.createElement("a")),kn.href=i,kn.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(An==null&&(An=window.matchMedia("(prefers-reduced-motion: reduce)")),An.matches)},hasCanvasFingerprintNoise(){if(ni!==void 0)return ni;if(!vt())return ni=!1,!1;const i=new OffscreenCanvas(85,1),n=i.getContext("2d",{willReadFrequently:!0});let o=0;for(let d=0;d<i.width;++d)n.fillStyle=`rgba(${o++},${o++},${o++}, 255)`,n.fillRect(d,0,1,1);const c=n.getImageData(0,0,i.width,i.height);o=0;for(let d=0;d<c.data.length;++d)if(d%4!=3&&o++!==c.data[d])return ni=!0,!0;return ni=!1,!1}},Ct="mapbox-tiles";let mt=500,an=50,Fe,Pe;function St(){try{return caches}catch{}}function Xt(){const i=St();i&&!Fe&&(Fe=i.open(Ct))}function Dt(i){const n=i.indexOf("?");if(n<0)return i;const o=["language","worldview"],c=new URLSearchParams,d=new URLSearchParams(i.slice(n));for(const p of o){const _=d.get(p);_&&c.set(p,_)}return`${i.slice(0,n)}?${c.toString()}`}function kt(i,n){const o=i.indexOf("?");if(o<0)return`${i}?${new URLSearchParams(n).toString()}`;const c=new URLSearchParams(i.slice(o));for(const d in n)c.set(d,n[d]);return`${i.slice(0,o)}?${c.toString()}`}let Ft=1/0;const Vt={supported:!1,testSupport:function(i){!Xn&&Sn&&(ai?Wi(i):tn=i)}};let tn,Sn,Xn=!1,ai=!1;const Ei=typeof self<"u"?self:{};function Wi(i){const n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n);try{if(i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,Sn),i.isContextLost())return;Vt.supported=!0}catch{}i.deleteTexture(n),Xn=!0}Ei.document&&(Sn=Ei.document.createElement("img"),Sn.onload=function(){tn&&Wi(tn),tn=null,ai=!0},Sn.onerror=function(){Xn=!0,tn=null},Sn.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const qi={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(qi);class Zn extends Error{constructor(n,o,c){o===401&&N(c)&&(n+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(n),this.status=o,this.url=c}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ki=dn()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Mt=function(i,n){if(!(/^file:/.test(o=i.url)||/^file:/.test(Ki())&&!/^\w+:/.test(o))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(c,d){const p=new AbortController,_=new Request(c.url,{method:c.method||"GET",body:c.body,credentials:c.credentials,headers:c.headers,referrer:Ki(),referrerPolicy:c.referrerPolicy,signal:p.signal});let b=!1,w=!1;const I=(E=_.url).indexOf("sku=")>0&&N(E);var E;c.type==="json"&&_.headers.set("Accept","application/json");const L=(U,F,$)=>{if(w)return;if(U&&U.message!=="SecurityError"&&et(U.toString()),F&&$)return k(F);const Z=Date.now();fetch(_).then(J=>{if(J.ok){const de=I?J.clone():null;return k(J,de,Z)}return d(new Zn(J.statusText,J.status,c.url))}).catch(J=>{J.name!=="AbortError"&&d(new Error(`${J.message} ${c.url}`))})},k=(U,F,$)=>{(c.type==="arrayBuffer"?U.arrayBuffer():c.type==="json"?U.json():U.text()).then(Z=>{w||(F&&$&&function(J,de,ye){if(Xt(),!Fe)return;const ge=Bn(de.headers.get("Cache-Control")||"");if(ge["no-store"])return;const Se={status:de.status,statusText:de.statusText,headers:new Headers};de.headers.forEach((We,nt)=>Se.headers.set(nt,We)),ge["max-age"]&&Se.headers.set("Expires",new Date(ye+1e3*ge["max-age"]).toUTCString());const we=Se.headers.get("Expires");if(!we||new Date(we).getTime()-ye<42e4)return;let Re=Dt(J.url);if(de.status===206){const We=J.headers.get("Range");if(!We)return;Se.status=200,Re=kt(Re,{range:We})}(function(We,nt){if(Pe===void 0)try{new Response(new ReadableStream),Pe=!0}catch{Pe=!1}Pe?nt(We.body):We.blob().then(nt)})(de,We=>{const nt=new Response(We,Se);Xt(),Fe&&Fe.then(ct=>ct.put(Re,nt)).catch(ct=>et(ct.message))})}(_,F,$),b=!0,d(null,Z,U.headers.get("Cache-Control"),U.headers.get("Expires")))}).catch(Z=>{w||d(new Error(Z.message))})};return I?function(U,F){if(Xt(),!Fe)return F(null);Fe.then($=>{let Z=Dt(U.url);const J=U.headers.get("Range");J&&(Z=kt(Z,{range:J})),$.match(Z).then(de=>{const ye=function(ge){if(!ge)return!1;const Se=new Date(ge.headers.get("Expires")||0),we=Bn(ge.headers.get("Cache-Control")||"");return Se>Date.now()&&!we["no-cache"]}(de);$.delete(Z),ye&&$.put(Z,de.clone()),F(null,de,ye)}).catch(F)}).catch(F)}(_,L):L(null,null),{cancel:()=>{w=!0,b||p.abort()}}}(i,n);if(dn()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,n,void 0,!0)}var o;return function(c,d){const p=new XMLHttpRequest;p.open(c.method||"GET",c.url,!0),c.type==="arrayBuffer"&&(p.responseType="arraybuffer");for(const _ in c.headers)p.setRequestHeader(_,c.headers[_]);return c.type==="json"&&(p.responseType="text",p.setRequestHeader("Accept","application/json")),p.withCredentials=c.credentials==="include",p.onerror=()=>{d(new Error(p.statusText))},p.onload=()=>{if((p.status>=200&&p.status<300||p.status===0)&&p.response!==null){let _=p.response;if(c.type==="json")try{_=JSON.parse(p.response)}catch(b){return d(b)}d(null,_,p.getResponseHeader("Cache-Control"),p.getResponseHeader("Expires"))}else d(new Zn(p.statusText,p.status,c.url))},p.send(c.body),{cancel:()=>p.abort()}}(i,n)},It=function(i,n){return Mt(Te(i,{type:"arrayBuffer"}),n)};function Bt(i){const n=document.createElement("a");return n.href=i,n.protocol===location.protocol&&n.host===location.host}const qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Ht,en;Ht=[],en=0;const nn=function(i,n){if(Vt.supported&&(i.headers||(i.headers={}),i.headers.accept="image/webp,*/*"),en>=D.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:i,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return Ht.push(p),p}en++;let o=!1;const c=()=>{if(!o)for(o=!0,en--;Ht.length&&en<D.MAX_PARALLEL_IMAGE_REQUESTS;){const p=Ht.shift(),{requestParameters:_,callback:b,cancelled:w}=p;w||(p.cancel=nn(_,b).cancel)}},d=It(i,(p,_,b,w)=>{c(),p?n(p):_&&(self.createImageBitmap?function(I,E){const L=new Blob([new Uint8Array(I)],{type:"image/png"});createImageBitmap(L).then(k=>{E(null,k)}).catch(k=>{E(new Error(`Could not load image because of ${k.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(_,(I,E)=>n(I,E,b,w)):function(I,E){const L=new Image;L.onload=()=>{E(null,L),URL.revokeObjectURL(L.src),L.onload=null,requestAnimationFrame(()=>{L.src=qt})},L.onerror=()=>E(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const k=new Blob([new Uint8Array(I)],{type:"image/png"});L.src=I.byteLength?URL.createObjectURL(k):qt}(_,(I,E)=>n(I,E,b,w)))});return{cancel:()=>{d.cancel(),c()}}},Yt="01",ln="NO_ACCESS_TOKEN",Jt=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Gt(i){const n=i.match(Jt);if(!n)throw new Error("Unable to parse URL object");return{protocol:n[1],authority:n[2],path:n[3]||"/",params:n[4]?n[4].split("&"):[]}}function wn(i){const n=i.params.length?`?${i.params.join("&")}`:"";return`${i.protocol}://${i.authority}${i.path}${n}`}const cn="mapbox.eventData";function Di(i){if(!i)return null;const n=i.split(".");if(!n||n.length!==3)return null;try{return JSON.parse(decodeURIComponent(atob(n[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class ji{constructor(n){this.type=n,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(n){const o=Di(D.ACCESS_TOKEN);let c="";return c=o&&o.u?btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(d,p)=>String.fromCharCode(+("0x"+p)))):D.ACCESS_TOKEN||"",n?`${cn}.${n}:${c}`:`${cn}:${c}`}fetchEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{const d=localStorage.getItem(o);d&&(this.eventData=JSON.parse(d));const p=localStorage.getItem(c);p&&(this.anonId=p)}catch{et("Unable to read from LocalStorage")}}saveEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid"),d=this.anonId;if(n&&d)try{localStorage.setItem(c,d),Object.keys(this.eventData).length>=1&&localStorage.setItem(o,JSON.stringify(this.eventData))}catch{et("Unable to write to LocalStorage")}}processRequests(n){}postEvent(n,o,c,d){if(!D.EVENTS_URL)return;const p=Gt(D.EVENTS_URL);p.params.push(`access_token=${d||D.ACCESS_TOKEN||""}`);const _={event:this.type,created:new Date(n).toISOString()},b=o?Te(_,o):_,w={url:wn(p),headers:{"Content-Type":"text/plain"},body:JSON.stringify([b])};this.pendingRequest=function(I,E){return Mt(Te(I,{method:"POST"}),E)}(w,I=>{this.pendingRequest=null,c(I),this.saveEventData(),this.processRequests(d)})}queueRequest(n,o){this.queue.push(n),this.processRequests(o)}}const Ci=new class extends ji{constructor(i){super("appUserTurnstile"),this._customAccessToken=i}postTurnstileEvent(i,n){D.EVENTS_URL&&D.ACCESS_TOKEN&&Array.isArray(i)&&i.some(o=>C(o)||N(o))&&this.queueRequest(Date.now(),n)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=Di(D.ACCESS_TOKEN),o=n?n.u:D.ACCESS_TOKEN;let c=o!==this.eventData.tokenU;xe(this.anonId)||(this.anonId=ie(),c=!0);const d=this.queue.shift();if(this.eventData.lastSuccess){const p=new Date(this.eventData.lastSuccess),_=new Date(d),b=(d-this.eventData.lastSuccess)/864e5;c=c||b>=1||b<-1||p.getDate()!==_.getDate()}else c=!0;c?this.postEvent(d,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,"enabled.telemetry":!1,userId:this.anonId},p=>{p||(this.eventData.lastSuccess=d,this.eventData.tokenU=o)},i):this.processRequests()}},mr=Ci.postTurnstileEvent.bind(Ci),ho=new class extends ji{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(i,n,o,c){this.skuToken=n,this.errorCb=c,D.EVENTS_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),xe(this.anonId)||(this.anonId=ie()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,skuToken:this.skuToken,userId:this.anonId},c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i))}remove(){this.errorCb=null}},bi=ho.postMapLoadEvent.bind(ho),cs=new class extends ji{constructor(){super("gljs.performance")}postPerformanceEvent(i,n){D.EVENTS_URL&&(i||D.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:n},i)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:n,performanceData:o}=this.queue.shift(),c=function(d){const p=performance.getEntriesByType("resource"),_=performance.getEntriesByType("mark"),b=function(U){const F={};if(U){for(const $ in U)if($!=="other")for(const Z of U[$]){const J=`${$}ResolveRangeMin`,de=`${$}ResolveRangeMax`,ye=`${$}RequestCount`,ge=`${$}RequestCachedCount`;F[J]=Math.min(F[J]||1/0,Z.startTime),F[de]=Math.max(F[de]||-1/0,Z.responseEnd);const Se=we=>{F[we]===void 0&&(F[we]=0),++F[we]};Z.transferSize!==void 0&&Z.transferSize===0&&Se(ge),Se(ye)}}return F}(function(U,F){const $={};if(U)for(const Z of U){const J=F(Z);$[J]===void 0&&($[J]=[]),$[J].push(Z)}return $}(p,H)),w=window.devicePixelRatio,I=navigator.connection||navigator.mozConnection||navigator.webkitConnection,E=I?I.effectiveType:void 0,L={counters:[],metadata:[],attributes:[]},k=(U,F,$)=>{$!=null&&U.push({name:F,value:$.toString()})};for(const U in b)k(L.counters,U,b[U]);if(d.interactionRange[0]!==1/0&&d.interactionRange[1]!==-1/0&&(k(L.counters,"interactionRangeMin",d.interactionRange[0]),k(L.counters,"interactionRangeMax",d.interactionRange[1])),_)for(const U of Object.keys(q)){const F=q[U],$=_.find(Z=>Z.name===F);$&&k(L.counters,F,$.startTime)}return k(L.counters,"visibilityHidden",d.visibilityHidden),k(L.attributes,"style",function(U){if(U)for(const F of U){const $=F.name.split("?")[0];if(V($)){const Z=$.split("/").slice(-2);if(Z.length===2)return`mapbox://styles/${Z[0]}/${Z[1]}`}}}(p)),k(L.attributes,"terrainEnabled",d.terrainEnabled?"true":"false"),k(L.attributes,"fogEnabled",d.fogEnabled?"true":"false"),k(L.attributes,"projection",d.projection),k(L.attributes,"zoom",d.zoom),k(L.metadata,"devicePixelRatio",w),k(L.metadata,"connectionEffectiveType",E),k(L.metadata,"navigatorUserAgent",navigator.userAgent),k(L.metadata,"screenWidth",window.screen.width),k(L.metadata,"screenHeight",window.screen.height),k(L.metadata,"windowWidth",window.innerWidth),k(L.metadata,"windowHeight",window.innerHeight),k(L.metadata,"mapWidth",d.width/w),k(L.metadata,"mapHeight",d.height/w),k(L.metadata,"webglRenderer",d.renderer),k(L.metadata,"webglVendor",d.vendor),k(L.metadata,"sdkVersion",v),k(L.metadata,"sdkIdentifier","mapbox-gl-js"),L}(o);for(const d of c.metadata);for(const d of c.counters);for(const d of c.attributes);this.postEvent(n,c,()=>{},i)}},Qs=cs.postPerformanceEvent.bind(cs),fo=new class extends ji{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(i,n,o,c){if(!D.API_URL||!D.SESSION_PATH)return;const d=Gt(D.API_URL+D.SESSION_PATH);d.params.push(`sku=${n||""}`),d.params.push(`access_token=${c||D.ACCESS_TOKEN||""}`);const p={url:wn(d),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(_,b){return Mt(Te(_,{method:"GET"}),b)}(p,_=>{this.pendingRequest=null,o(_),this.saveEventData(),this.processRequests(c)})}getSessionAPI(i,n,o,c){this.skuToken=n,this.errorCb=c,D.SESSION_PATH&&D.API_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||this.getSession(o,this.skuToken,c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i)}remove(){this.errorCb=null}},Fh=fo.getSessionAPI.bind(fo),ml=new Set;function vu(i,n,o){o[i]&&o[i].indexOf(n)!==-1||(o[i]=o[i]||[],o[i].push(n))}function m0(i,n,o){if(o&&o[i]){const c=o[i].indexOf(n);c!==-1&&o[i].splice(c,1)}}class cc{constructor(n,o={}){Te(this,o),this.type=n}}class g0 extends cc{constructor(n,o={}){super("error",Te({error:n},o))}}class xu{on(n,o){return this._listeners=this._listeners||{},vu(n,o,this._listeners),this}off(n,o){return m0(n,o,this._listeners),m0(n,o,this._oneTimeListeners),this}once(n,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},vu(n,o,this._oneTimeListeners),this):new Promise(c=>this.once(n,c))}fire(n,o){typeof n=="string"&&(n=new cc(n,o||{}));const c=n.type;if(this.listens(c)){n.target=this;const d=this._listeners&&this._listeners[c]?this._listeners[c].slice():[];for(const b of d)b.call(this,n);const p=this._oneTimeListeners&&this._oneTimeListeners[c]?this._oneTimeListeners[c].slice():[];for(const b of p)m0(c,b,this._oneTimeListeners),b.call(this,n);const _=this._eventedParent;_&&(Te(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_.fire(n))}else n instanceof g0&&console.error(n.error);return this}listens(n){return!!(this._listeners&&this._listeners[n]&&this._listeners[n].length>0||this._oneTimeListeners&&this._oneTimeListeners[n]&&this._oneTimeListeners[n].length>0||this._eventedParent&&this._eventedParent.listens(n))}setEventedParent(n,o){return this._eventedParent=n,this._eventedParentData=o,this}}a.y=void 0;var hb={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function dp(i){return(i=Math.round(i))<0?0:i>255?255:i}function y0(i){return dp(i[i.length-1]==="%"?parseFloat(i)/100*255:parseInt(i))}function fp(i){return(n=i[i.length-1]==="%"?parseFloat(i)/100:parseFloat(i))<0?0:n>1?1:n;var n}function _0(i,n,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?i+(n-i)*o*6:2*o<1?n:3*o<2?i+(n-i)*(2/3-o)*6:i}try{a.y={}.parseCSSColor=function(i){var n,o=i.replace(/ /g,"").toLowerCase();if(o in hb)return hb[o].slice();if(o[0]==="#")return o.length===4?(n=parseInt(o.substr(1),16))>=0&&n<=4095?[(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1]:null:o.length===7&&(n=parseInt(o.substr(1),16))>=0&&n<=16777215?[(16711680&n)>>16,(65280&n)>>8,255&n,1]:null;var c=o.indexOf("("),d=o.indexOf(")");if(c!==-1&&d+1===o.length){var p=o.substr(0,c),_=o.substr(c+1,d-(c+1)).split(","),b=1;switch(p){case"rgba":if(_.length!==4)return null;b=fp(_.pop());case"rgb":return _.length!==3?null:[y0(_[0]),y0(_[1]),y0(_[2]),b];case"hsla":if(_.length!==4)return null;b=fp(_.pop());case"hsl":if(_.length!==3)return null;var w=(parseFloat(_[0])%360+360)%360/360,I=fp(_[1]),E=fp(_[2]),L=E<=.5?E*(I+1):E+I-E*I,k=2*E-L;return[dp(255*_0(k,L,w+1/3)),dp(255*_0(k,L,w)),dp(255*_0(k,L,w-1/3)),b];default:return null}}return null}}catch{}class Ho{constructor(n,o,c,d=1){this.r=n,this.g=o,this.b=c,this.a=d}static parse(n){if(!n)return;if(n instanceof Ho)return n;if(typeof n!="string")return;const o=a.y(n);return o?new Ho(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3]):void 0}toString(){const[n,o,c,d]=this.toArray();return`rgba(${Math.round(n)},${Math.round(o)},${Math.round(c)},${d})`}toArray(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[255*n/d,255*o/d,255*c/d,d]}toArray01(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[n/d,o/d,c/d,d]}toArray01Scaled(n){const{r:o,g:c,b:d,a:p}=this;return p===0?[0,0,0]:[o/p*n,c/p*n,d/p*n]}toArray01PremultipliedAlpha(){const{r:n,g:o,b:c,a:d}=this;return[n,o,c,d]}toArray01Linear(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[Math.pow(n/d,2.2),Math.pow(o/d,2.2),Math.pow(c/d,2.2),d]}}Ho.black=new Ho(0,0,0,1),Ho.white=new Ho(1,1,1,1),Ho.transparent=new Ho(0,0,0,0),Ho.red=new Ho(1,0,0,1),Ho.blue=new Ho(0,0,1,1);var Cr=Ho;function li(i,n,o){return i*(1-o)+n*o}function db(i,n,o){return i.map((c,d)=>li(c,n[d],o))}var pp=Object.freeze({__proto__:null,array:db,color:function(i,n,o){return new Cr(li(i.r,n.r,o),li(i.g,n.g,o),li(i.b,n.b,o),li(i.a,n.a,o))},number:li});function v0(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}class GS extends Error{constructor(n,o){super(o),this.message=o,this.key=n}}var fa=GS;class x0{constructor(n,o=[]){this.parent=n,this.bindings={};for(const[c,d]of o)this.bindings[c]=d}concat(n){return new x0(this,n)}get(n){if(this.bindings[n])return this.bindings[n];if(this.parent)return this.parent.get(n);throw new Error(`${n} not found in scope.`)}has(n){return!!this.bindings[n]||!!this.parent&&this.parent.has(n)}}var ZS=x0;const bu={kind:"null"},hn={kind:"number"},wi={kind:"string"},Ii={kind:"boolean"},Is={kind:"color"},Mu={kind:"object"},pi={kind:"value"},mp={kind:"collator"},wu={kind:"formatted"},Vh={kind:"resolvedImage"};function Yo(i,n){return{kind:"array",itemType:i,N:n}}function Ir(i){if(i.kind==="array"){const n=Ir(i.itemType);return typeof i.N=="number"?`array<${n}, ${i.N}>`:i.itemType.kind==="value"?"array":`array<${n}>`}return i.kind}const En=[bu,hn,wi,Ii,Is,wu,Mu,Yo(pi),Vh];function uc(i,n){if(n.kind==="error")return null;if(i.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!uc(i.itemType,n.itemType))&&(typeof i.N!="number"||i.N===n.N))return null}else{if(i.kind===n.kind)return null;if(i.kind==="value"){for(const o of En)if(!uc(o,n))return null}}return`Expected ${Ir(i)} but found ${Ir(n)} instead.`}function Rn(i,n){return n.some(o=>o.kind===i.kind)}function gl(i,n){return n.some(o=>o==="null"?i===null:o==="array"?Array.isArray(i):o==="object"?i&&!Array.isArray(i)&&typeof i=="object":o===typeof i)}class Jn{constructor(n,o,c){this.sensitivity=n?o?"variant":"case":o?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(n,o){return this.collator.compare(n,o)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Iu{constructor(n,o,c,d,p){this.text=n.normalize?n.normalize():n,this.image=o,this.scale=c,this.fontStack=d,this.textColor=p}}class po{constructor(n){this.sections=n}static fromString(n){return new po([new Iu(n,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(n=>n.text.length!==0||n.image&&n.image.namePrimary.length!==0)}static factory(n){return n instanceof po?n:po.fromString(n)}toString(){return this.sections.length===0?"":this.sections.map(n=>n.text).join("")}serialize(){const n=["format"];for(const o of this.sections){if(o.image){n.push(["image",o.image.namePrimary]);continue}n.push(o.text);const c={};o.fontStack&&(c["text-font"]=["literal",o.fontStack.split(",")]),o.scale&&(c["font-scale"]=o.scale),o.textColor&&(c["text-color"]=["rgba"].concat(o.textColor.toArray())),n.push(c)}return n}}class Dn{constructor(n){this.namePrimary=n.namePrimary,n.nameSecondary&&(this.nameSecondary=n.nameSecondary),this.available=n.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(n,o){return n?new Dn({namePrimary:n,nameSecondary:o,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function fb(i,n,o,c){return typeof i=="number"&&i>=0&&i<=255&&typeof n=="number"&&n>=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255?c===void 0||typeof c=="number"&&c>=0&&c<=1?null:`Invalid rgba value [${[i,n,o,c].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof c=="number"?[i,n,o,c]:[i,n,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function hc(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof Cr||i instanceof Jn||i instanceof po||i instanceof Dn)return!0;if(Array.isArray(i)){for(const n of i)if(!hc(n))return!1;return!0}if(typeof i=="object"){for(const n in i)if(!hc(i[n]))return!1;return!0}return!1}function kr(i){if(i===null)return bu;if(typeof i=="string")return wi;if(typeof i=="boolean")return Ii;if(typeof i=="number")return hn;if(i instanceof Cr)return Is;if(i instanceof Jn)return mp;if(i instanceof po)return wu;if(i instanceof Dn)return Vh;if(Array.isArray(i)){const n=i.length;let o;for(const c of i){const d=kr(c);if(o){if(o===d)continue;o=pi;break}o=d}return Yo(o||pi,n)}return Mu}function Ts(i){const n=typeof i;return i===null?"":n==="string"||n==="number"||n==="boolean"?String(i):i instanceof Cr||i instanceof po||i instanceof Dn?i.toString():JSON.stringify(i)}class yl{constructor(n,o){this.type=n,this.value=o}static parse(n,o){if(n.length!==2)return o.error(`'literal' expression requires exactly one argument, but found ${n.length-1} instead.`);if(!hc(n[1]))return o.error("invalid value");const c=n[1];let d=kr(c);const p=o.expectedType;return d.kind!=="array"||d.N!==0||!p||p.kind!=="array"||typeof p.N=="number"&&p.N!==0||(d=p),new yl(d,c)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Cr?["rgba"].concat(this.value.toArray()):this.value instanceof po?this.value.serialize():this.value}}var Ca=yl,Or=class{constructor(i){this.name="ExpressionEvaluationError",this.message=i}toJSON(){return this.message}};const b0={string:wi,number:hn,boolean:Ii,object:Mu};class M0{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");let c,d=1;const p=n[0];if(p==="array"){let b,w;if(n.length>2){const I=n[1];if(typeof I!="string"||!(I in b0)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);b=b0[I],d++}else b=pi;if(n.length>3){if(n[2]!==null&&(typeof n[2]!="number"||n[2]<0||n[2]!==Math.floor(n[2])))return o.error('The length argument to "array" must be a positive integer literal',2);w=n[2],d++}c=Yo(b,w)}else c=b0[p];const _=[];for(;d<n.length;d++){const b=o.parse(n[d],d,pi);if(!b)return null;_.push(b)}return new M0(c,_)}evaluate(n){for(let o=0;o<this.args.length;o++){const c=this.args[o].evaluate(n);if(!uc(this.type,kr(c)))return c;if(o===this.args.length-1)throw new Or(`Expected value to be of type ${Ir(this.type)}, but found ${Ir(kr(c))} instead.`)}return null}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=this.type,o=[n.kind];if(n.kind==="array"){const c=n.itemType;if(c.kind==="string"||c.kind==="number"||c.kind==="boolean"){o.push(c.kind);const d=n.N;(typeof d=="number"||this.args.length>1)&&o.push(d)}}return o.concat(this.args.map(c=>c.serialize()))}}var Na=M0;class Tu{constructor(n){this.type=wu,this.sections=n}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[1];if(!Array.isArray(c)&&typeof c=="object")return o.error("First argument must be an image or text section.");const d=[];let p=!1;for(let _=1;_<=n.length-1;++_){const b=n[_];if(p&&typeof b=="object"&&!Array.isArray(b)){p=!1;let w=null;if(b["font-scale"]&&(w=o.parse(b["font-scale"],1,hn),!w))return null;let I=null;if(b["text-font"]&&(I=o.parse(b["text-font"],1,Yo(wi)),!I))return null;let E=null;if(b["text-color"]&&(E=o.parse(b["text-color"],1,Is),!E))return null;const L=d[d.length-1];L.scale=w,L.font=I,L.textColor=E}else{const w=o.parse(n[_],1,pi);if(!w)return null;const I=w.type.kind;if(I!=="string"&&I!=="value"&&I!=="null"&&I!=="resolvedImage")return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");p=!0,d.push({content:w,scale:null,font:null,textColor:null})}}return new Tu(d)}evaluate(n){return new po(this.sections.map(o=>{const c=o.content.evaluate(n);return kr(c)===Vh?new Iu("",c,null,null,null):new Iu(Ts(c),null,o.scale?o.scale.evaluate(n):null,o.font?o.font.evaluate(n).join(","):null,o.textColor?o.textColor.evaluate(n):null)}))}eachChild(n){for(const o of this.sections)n(o.content),o.scale&&n(o.scale),o.font&&n(o.font),o.textColor&&n(o.textColor)}outputDefined(){return!1}serialize(){const n=["format"];for(const o of this.sections){n.push(o.content.serialize());const c={};o.scale&&(c["font-scale"]=o.scale.serialize()),o.font&&(c["text-font"]=o.font.serialize()),o.textColor&&(c["text-color"]=o.textColor.serialize()),n.push(c)}return n}}class dc{constructor(n,o){this.type=Vh,this.inputPrimary=n,this.inputSecondary=o}static parse(n,o){if(n.length<2)return o.error("Expected two or more arguments.");const c=o.parse(n[1],1,wi);if(!c)return o.error("No image name provided.");if(n.length===2)return new dc(c);const d=o.parse(n[2],1,wi);return d?new dc(c,d):o.error("Secondary image variant is not a string.")}evaluate(n){const o=Dn.fromString(this.inputPrimary.evaluate(n),this.inputSecondary?this.inputSecondary.evaluate(n):void 0);return o&&n.availableImages&&(o.available=n.availableImages.indexOf(o.namePrimary)>-1,o.nameSecondary&&o.available&&n.availableImages&&(o.available=n.availableImages.indexOf(o.nameSecondary)>-1)),o}eachChild(n){n(this.inputPrimary),this.inputSecondary&&n(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function Su(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}const Hs={"to-boolean":Ii,"to-color":Is,"to-number":hn,"to-string":wi};class gp{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[0],d=[];let p=bu;if(c==="to-array"){if(!Array.isArray(n[1]))return null;const _=n[1].length;if(o.expectedType){if(o.expectedType.kind!=="array")return o.error(`Expected ${o.expectedType.kind} but found array.`);p=Yo(o.expectedType.itemType,_)}else{if(!(_>0&&hc(n[1][0])))return null;p=Yo(kr(n[1][0]),_)}for(let b=0;b<_;b++){const w=n[1][b];let I;if(Su(w)==="array")I=o.parse(w,void 0,p.itemType);else{const E=Su(w);if(E!==p.itemType.kind)return o.error(`Expected ${p.itemType.kind} but found ${E}.`);I=o.registry.literal.parse(["literal",w===void 0?null:w],o)}if(!I)return null;d.push(I)}}else{if((c==="to-boolean"||c==="to-string")&&n.length!==2)return o.error("Expected one argument.");p=Hs[c];for(let _=1;_<n.length;_++){const b=o.parse(n[_],_,pi);if(!b)return null;d.push(b)}}return new gp(p,d)}evaluate(n){if(this.type.kind==="boolean")return!!this.args[0].evaluate(n);if(this.type.kind==="color"){let o,c;for(const d of this.args){if(o=d.evaluate(n),c=null,o instanceof Cr)return o;if(typeof o=="string"){const p=n.parseColor(o);if(p)return p}else if(Array.isArray(o)&&(c=o.length<3||o.length>4?`Invalid rbga value ${JSON.stringify(o)}: expected an array containing either three or four numeric values.`:fb(o[0],o[1],o[2],o[3]),!c))return new Cr(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new Or(c||`Could not parse color from value '${typeof o=="string"?o:String(JSON.stringify(o))}'`)}if(this.type.kind==="number"){let o=null;for(const c of this.args){if(o=c.evaluate(n),o===null)return 0;const d=Number(o);if(!isNaN(d))return d}throw new Or(`Could not convert ${JSON.stringify(o)} to number.`)}return this.type.kind==="formatted"?po.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="resolvedImage"?Dn.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="array"?this.args.map(o=>o.evaluate(n)):Ts(this.args[0].evaluate(n))}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Tu([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new dc(this.args[0]).serialize();const n=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(o=>{n.push(o.serialize())}),n}}var La=gp;const $h=["Unknown","Point","LineString","Polygon"];var pb=class{constructor(i,n){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=i,this.options=n}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?$h[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(i){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const i=this.featureDistanceData.center,n=this.featureDistanceData.scale,{x:o,y:c}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*n-i[0])+this.featureDistanceData.bearing[1]*(c*n-i[1])}return 0}parseColor(i){let n=this._parseColorCache[i];return n||(n=this._parseColorCache[i]=Cr.parse(i)),n}getConfig(i){return this.options?this.options.get(i):null}};class fc{constructor(n,o,c,d,p){this.name=n,this.type=o,this._evaluate=c,this.args=d,this._overloadIndex=p}evaluate(n){if(!this._evaluate){const o=fc.definitions[this.name];this._evaluate=Array.isArray(o)?o[2]:o.overloads[this._overloadIndex][1]}return this._evaluate(n,this.args)}eachChild(n){this.args.forEach(n)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(n=>n.serialize()))}static parse(n,o){const c=n[0],d=fc.definitions[c];if(!d)return o.error(`Unknown expression "${c}". If you wanted a literal array, use ["literal", [...]].`,0);const p=Array.isArray(d)?d[0]:d.type,_=Array.isArray(d)?[[d[1],d[2]]]:d.overloads,b=[];let w=null,I=-1;for(const[E,L]of _){if(Array.isArray(E)&&E.length!==n.length-1)continue;b.push(E),I++,w=new bb(o.registry,o.path,null,o.scope,void 0,o._scope,o.options);const k=[];let U=!1;for(let F=1;F<n.length;F++){const $=n[F],Z=Array.isArray(E)?E[F-1]:E.type,J=w.parse($,1+k.length,Z);if(!J){U=!0;break}k.push(J)}if(!U)if(Array.isArray(E)&&E.length!==k.length)w.error(`Expected ${E.length} arguments, but found ${k.length} instead.`);else{for(let F=0;F<k.length;F++){const $=Array.isArray(E)?E[F]:E.type,Z=k[F];w.concat(F+1).checkSubtype($,Z.type)}if(w.errors.length===0)return new fc(c,p,L,k,I)}}if(b.length===1)o.errors.push(...w.errors);else{const E=(b.length?b:_.map(([k])=>k)).map(mb).join(" | "),L=[];for(let k=1;k<n.length;k++){const U=o.parse(n[k],1+L.length);if(!U)return null;L.push(Ir(U.type))}o.error(`Expected arguments of type ${E}, but found (${L.join(", ")}) instead.`)}return null}static register(n,o){fc.definitions=o;for(const c in o)n[c]=fc}}function mb(i){return Array.isArray(i)?`(${i.map(Ir).join(", ")})`:`(${Ir(i.type)}...)`}var hi=fc;class Qh{constructor(n,o,c){this.type=mp,this.locale=c,this.caseSensitive=n,this.diacriticSensitive=o}static parse(n,o){if(n.length!==2)return o.error("Expected one argument.");const c=n[1];if(typeof c!="object"||Array.isArray(c))return o.error("Collator options argument must be an object.");const d=o.parse(c["case-sensitive"]!==void 0&&c["case-sensitive"],1,Ii);if(!d)return null;const p=o.parse(c["diacritic-sensitive"]!==void 0&&c["diacritic-sensitive"],1,Ii);if(!p)return null;let _=null;return c.locale&&(_=o.parse(c.locale,1,wi),!_)?null:new Qh(d,p,_)}evaluate(n){return new Jn(this.caseSensitive.evaluate(n),this.diacriticSensitive.evaluate(n),this.locale?this.locale.evaluate(n):null)}eachChild(n){n(this.caseSensitive),n(this.diacriticSensitive),this.locale&&n(this.locale)}outputDefined(){return!1}serialize(){const n={};return n["case-sensitive"]=this.caseSensitive.serialize(),n["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(n.locale=this.locale.serialize()),["collator",n]}}var w0={exports:{}};w0.exports=function(){function i(c,d,p,_,b){for(;_>p;){if(_-p>600){var w=_-p+1,I=d-p+1,E=Math.log(w),L=.5*Math.exp(2*E/3),k=.5*Math.sqrt(E*L*(w-L)/w)*(I-w/2<0?-1:1);i(c,d,Math.max(p,Math.floor(d-I*L/w+k)),Math.min(_,Math.floor(d+(w-I)*L/w+k)),b)}var U=c[d],F=p,$=_;for(n(c,p,d),b(c[_],U)>0&&n(c,p,_);F<$;){for(n(c,F,$),F++,$--;b(c[F],U)<0;)F++;for(;b(c[$],U)>0;)$--}b(c[p],U)===0?n(c,p,$):n(c,++$,_),$<=d&&(p=$+1),d<=$&&(_=$-1)}}function n(c,d,p){var _=c[d];c[d]=c[p],c[p]=_}function o(c,d){return c<d?-1:c>d?1:0}return function(c,d,p,_,b){i(c,d,p||0,_||c.length-1,b||o)}}();var WS=Y(w0.exports);function qS(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function _l(i,n){i[0]=Math.min(i[0],n[0]),i[1]=Math.min(i[1],n[1]),i[2]=Math.max(i[2],n[0]),i[3]=Math.max(i[3],n[1])}function vl(i,n){return!(i[0]<=n[0]||i[2]>=n[2]||i[1]<=n[1]||i[3]>=n[3])}function yp(i,n,o){const c=i[0]-n[0],d=i[1]-n[1],p=i[0]-o[0],_=i[1]-o[1];return c*_-p*d==0&&c*p<=0&&d*_<=0}function Eu(i,n,o=!1){let c=!1;for(let b=0,w=n.length;b<w;b++){const I=n[b];for(let E=0,L=I.length,k=L-1;E<L;k=E++){const U=I[k],F=I[E];if(yp(i,U,F))return o;(p=U)[1]>(d=i)[1]!=(_=F)[1]>d[1]&&d[0]<(_[0]-p[0])*(d[1]-p[1])/(_[1]-p[1])+p[0]&&(c=!c)}}var d,p,_;return c}function I0(i,n,o,c){const d=c[0]-o[0],p=c[1]-o[1],_=(i[0]-o[0])*p-d*(i[1]-o[1]),b=(n[0]-o[0])*p-d*(n[1]-o[1]);return _>0&&b<0||_<0&&b>0}function za(i,n,o,c){return(d=[c[0]-o[0],c[1]-o[1]])[0]*(p=[n[0]-i[0],n[1]-i[1]])[1]-d[1]*p[0]!=0&&!(!I0(i,n,o,c)||!I0(o,c,i,n));var d,p}const xl=8192;function Hh(i,n){const o=(180+i[0])/360,c=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,d=Math.pow(2,n.z);return[Math.round(o*d*xl),Math.round(c*d*xl)]}function T0(i,n){for(let o=0;o<n.length;o++)if(Eu(i,n[o]))return!0;return!1}function S0(i,n,o){for(const c of o)for(let d=0,p=c.length,_=p-1;d<p;_=d++)if(za(i,n,c[_],c[d]))return!0;return!1}function Ss(i,n){for(let o=0;o<i.length;++o)if(!Eu(i[o],n))return!1;for(let o=0;o<i.length-1;++o)if(S0(i[o],i[o+1],n))return!1;return!0}function gb(i,n){for(let o=0;o<n.length;o++)if(Ss(i,n[o]))return!0;return!1}function E0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=[];for(let _=0;_<i[d].length;_++){const b=Hh(i[d][_],o);_l(n,b),p.push(b)}c.push(p)}return c}function D0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=E0(i[d],n,o);c.push(p)}return c}function A0(i,n,o,c){if(i[0]<o[0]||i[0]>o[2]){const d=.5*c;let p=i[0]-o[0]>d?-c:o[0]-i[0]>d?c:0;p===0&&(p=i[0]-o[2]>d?-c:o[2]-i[0]>d?c:0),i[0]+=p}_l(n,i)}function C0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const b of i)for(const w of b){const I=[w.x+p[0],w.y+p[1]];A0(I,n,o,d),_.push(I)}return _}function N0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const w of i){const I=[];for(const E of w){const L=[E.x+p[0],E.y+p[1]];_l(n,L),I.push(L)}_.push(I)}if(n[2]-n[0]<=d/2){(b=n)[0]=b[1]=1/0,b[2]=b[3]=-1/0;for(const w of _)for(const I of w)A0(I,n,o,d)}var b;return _}class Du{constructor(n,o){this.type=Ii,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'within' expression requires exactly one argument, but found ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection")for(let d=0;d<c.features.length;++d){const p=c.features[d].geometry.type;if(p==="Polygon"||p==="MultiPolygon")return new Du(c,c.features[d].geometry)}else if(c.type==="Feature"){const d=c.geometry.type;if(d==="Polygon"||d==="MultiPolygon")return new Du(c,c.geometry)}else if(c.type==="Polygon"||c.type==="MultiPolygon")return new Du(c,c)}return o.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(n){if(n.geometry()!=null&&n.canonicalID()!=null){if(n.geometryType()==="Point")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Eu(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!T0(I,b))return!1}return!0}(n,this.geometries);if(n.geometryType()==="LineString")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Ss(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!gb(I,b))return!1}return!0}(n,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var _p=Du,Yh={exports:{}};Yh.exports=function(){var i={kilometers:1,miles:.621371192237334,nauticalmiles:.5399568034557235,meters:1e3,metres:1e3,yards:1093.6132983377079,feet:3280.839895013123,inches:39370.078740157485},n=1/298.257223563,o=n*(2-n),c=Math.PI/180,d=function(I,E){if(I===void 0)throw new Error("No latitude given.");if(E&&!i[E])throw new Error("Unknown unit "+E+". Use one of: "+Object.keys(i).join(", "));var L=6378.137*c*(E?i[E]:1),k=Math.cos(I*c),U=1/(1-o*(1-k*k)),F=Math.sqrt(U);this.kx=L*F*k,this.ky=L*F*U*(1-o)},p={units:{configurable:!0}};function _(I,E){return I[0]===E[0]&&I[1]===E[1]}function b(I,E,L){var k=w(E[0]-I[0]);return[I[0]+k*L,I[1]+(E[1]-I[1])*L]}function w(I){for(;I<-180;)I+=360;for(;I>180;)I-=360;return I}return d.fromTile=function(I,E,L){var k=Math.PI*(1-2*(I+.5)/Math.pow(2,E)),U=Math.atan(.5*(Math.exp(k)-Math.exp(-k)))/c;return new d(U,L)},p.units.get=function(){return i},d.prototype.distance=function(I,E){var L=w(I[0]-E[0])*this.kx,k=(I[1]-E[1])*this.ky;return Math.sqrt(L*L+k*k)},d.prototype.bearing=function(I,E){var L=w(E[0]-I[0])*this.kx;return Math.atan2(L,(E[1]-I[1])*this.ky)/c},d.prototype.destination=function(I,E,L){var k=L*c;return this.offset(I,Math.sin(k)*E,Math.cos(k)*E)},d.prototype.offset=function(I,E,L){return[I[0]+E/this.kx,I[1]+L/this.ky]},d.prototype.lineDistance=function(I){for(var E=0,L=0;L<I.length-1;L++)E+=this.distance(I[L],I[L+1]);return E},d.prototype.area=function(I){for(var E=0,L=0;L<I.length;L++)for(var k=I[L],U=0,F=k.length,$=F-1;U<F;$=U++)E+=w(k[U][0]-k[$][0])*(k[U][1]+k[$][1])*(L?-1:1);return Math.abs(E)/2*this.kx*this.ky},d.prototype.along=function(I,E){var L=0;if(E<=0)return I[0];for(var k=0;k<I.length-1;k++){var U=I[k],F=I[k+1],$=this.distance(U,F);if((L+=$)>E)return b(U,F,(E-(L-$))/$)}return I[I.length-1]},d.prototype.pointToSegmentDistance=function(I,E,L){var k=E[0],U=E[1],F=w(L[0]-k)*this.kx,$=(L[1]-U)*this.ky,Z=0;return F===0&&$===0||((Z=(w(I[0]-k)*this.kx*F+(I[1]-U)*this.ky*$)/(F*F+$*$))>1?(k=L[0],U=L[1]):Z>0&&(k+=F/this.kx*Z,U+=$/this.ky*Z)),F=w(I[0]-k)*this.kx,$=(I[1]-U)*this.ky,Math.sqrt(F*F+$*$)},d.prototype.pointOnLine=function(I,E){for(var L,k,U,F,$=1/0,Z=0;Z<I.length-1;Z++){var J=I[Z][0],de=I[Z][1],ye=w(I[Z+1][0]-J)*this.kx,ge=(I[Z+1][1]-de)*this.ky,Se=0;ye===0&&ge===0||((Se=(w(E[0]-J)*this.kx*ye+(E[1]-de)*this.ky*ge)/(ye*ye+ge*ge))>1?(J=I[Z+1][0],de=I[Z+1][1]):Se>0&&(J+=ye/this.kx*Se,de+=ge/this.ky*Se));var we=(ye=w(E[0]-J)*this.kx)*ye+(ge=(E[1]-de)*this.ky)*ge;we<$&&($=we,L=J,k=de,U=Z,F=Se)}return{point:[L,k],index:U,t:Math.max(0,Math.min(1,F))}},d.prototype.lineSlice=function(I,E,L){var k=this.pointOnLine(L,I),U=this.pointOnLine(L,E);if(k.index>U.index||k.index===U.index&&k.t>U.t){var F=k;k=U,U=F}var $=[k.point],Z=k.index+1,J=U.index;!_(L[Z],$[0])&&Z<=J&&$.push(L[Z]);for(var de=Z+1;de<=J;de++)$.push(L[de]);return _(L[J],U.point)||$.push(U.point),$},d.prototype.lineSliceAlong=function(I,E,L){for(var k=0,U=[],F=0;F<L.length-1;F++){var $=L[F],Z=L[F+1],J=this.distance($,Z);if((k+=J)>I&&U.length===0&&U.push(b($,Z,(I-(k-J))/J)),k>=E)return U.push(b($,Z,(E-(k-J))/J)),U;k>I&&U.push(Z)}return U},d.prototype.bufferPoint=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[0]+k,I[1]+L]},d.prototype.bufferBBox=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[2]+k,I[3]+L]},d.prototype.insideBBox=function(I,E){return w(I[0]-E[0])>=0&&w(I[0]-E[2])<=0&&I[1]>=E[1]&&I[1]<=E[3]},Object.defineProperties(d,p),d}();var bl=Y(Yh.exports),L0={exports:{}};L0.exports=function(){var i=function(o,c){if(o===void 0&&(o=[]),c===void 0&&(c=n),this.data=o,this.length=this.data.length,this.compare=c,this.length>0)for(var d=(this.length>>1)-1;d>=0;d--)this._down(d)};function n(o,c){return o<c?-1:o>c?1:0}return i.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},i.prototype.pop=function(){if(this.length!==0){var o=this.data[0],c=this.data.pop();return this.length--,this.length>0&&(this.data[0]=c,this._down(0)),o}},i.prototype.peek=function(){return this.data[0]},i.prototype._up=function(o){for(var c=this.data,d=this.compare,p=c[o];o>0;){var _=o-1>>1,b=c[_];if(d(p,b)>=0)break;c[o]=b,o=_}c[o]=p},i.prototype._down=function(o){for(var c=this.data,d=this.compare,p=this.length>>1,_=c[o];o<p;){var b=1+(o<<1),w=c[b],I=b+1;if(I<this.length&&d(c[I],w)<0&&(b=I,w=c[I]),d(w,_)>=0)break;c[o]=w,o=b}c[o]=_},i}();var Es=Y(L0.exports),sn=8192;function vp(i,n){return n.dist-i.dist}const z0=100,Gh=50;function k0(i){const n=[1/0,1/0,-1/0,-1/0];if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++)if(n[o]!==i[o])return!1;return!0}function Ml(i){return i[1]-i[0]+1}function Ys(i,n){const o=i[1]>=i[0]&&i[1]<n;return o||console.warn("Distance Expression: Index is out of range"),o}function O0(i,n){if(i[0]>i[1])return[null,null];const o=Ml(i);if(n){if(o===2)return[i,null];const c=Math.floor(o/2);return[[i[0],i[0]+c],[i[0]+c,i[1]]]}{if(o===1)return[i,null];const c=Math.floor(o/2)-1;return[[i[0],i[0]+c],[i[0]+c+1,i[1]]]}}function pc(i,n){const o=[1/0,1/0,-1/0,-1/0];if(!Ys(n,i.length))return o;for(let c=n[0];c<=n[1];++c)_l(o,i[c]);return o}function xp(i){const n=[1/0,1/0,-1/0,-1/0];for(let o=0;o<i.length;++o)for(let c=0;c<i[o].length;++c)_l(n,i[o][c]);return n}function mc(i,n,o){if(k0(i)||k0(n))return NaN;let c=0,d=0;return i[2]<n[0]&&(c=n[0]-i[2]),i[0]>n[2]&&(c=i[0]-n[2]),i[1]>n[3]&&(d=i[1]-n[3]),i[3]<n[1]&&(d=n[1]-i[3]),o.distance([0,0],[c,d])}function j0(i){return 360*i-180}function KS(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}function Au(i,n){const o=Math.pow(2,n.z),c=(i.y/sn+n.y)/o;return[j0((i.x/sn+n.x)/o),KS(c)]}function XS(i,n){const o=[];for(let c=0;c<i.length;++c)o.push(Au(i[c],n));return o}function yb(i,n,o){const c=o.pointOnLine(n,i).point;return o.distance(i,c)}function _b(i,n,o,c,d){const p=o.slice(c[0],c[1]+1);let _=1/0;for(let b=n[0];b<=n[1];++b)if((_=Math.min(_,yb(i[b],p,d)))===0)return 0;return _}function R0(i,n,o,c,d){const p=Math.min(d.pointToSegmentDistance(i,o,c),d.pointToSegmentDistance(n,o,c)),_=Math.min(d.pointToSegmentDistance(o,i,n),d.pointToSegmentDistance(c,i,n));return Math.min(p,_)}function JS(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<n[1];++_)for(let b=c[0];b<c[1];++b){if(za(i[_],i[_+1],o[b],o[b+1]))return 0;p=Math.min(p,R0(i[_],i[_+1],o[b],o[b+1],d))}return p}function eE(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<=n[1];++_)for(let b=c[0];b<=c[1];++b)if((p=Math.min(p,d.distance(i[_],o[b])))===0)return p;return p}function tE(i,n,o){if(Eu(i,n,!0))return 0;let c=1/0;for(const d of n){const p=d.length;if(p<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(d[0]!==d[p-1]&&(c=Math.min(c,o.pointToSegmentDistance(i,d[p-1],d[0])))===0||(c=Math.min(c,yb(i,d,o)))===0)return c}return c}function vb(i,n,o,c){if(!Ys(n,i.length))return NaN;for(let p=n[0];p<=n[1];++p)if(Eu(i[p],o,!0))return 0;let d=1/0;for(let p=n[0];p<n[1];++p)for(const _ of o)for(let b=0,w=_.length,I=w-1;b<w;I=b++){if(za(i[p],i[p+1],_[I],_[b]))return 0;d=Math.min(d,R0(i[p],i[p+1],_[I],_[b],c))}return d}function Zh(i,n){for(const o of i)for(let c=0;c<=o.length-1;++c)if(Eu(o[c],n,!0))return!0;return!1}function nE(i,n,o,c=1/0){const d=xp(i),p=xp(n);if(c!==1/0&&mc(d,p,o)>=c)return c;if(vl(d,p)){if(Zh(i,n))return 0}else if(Zh(n,i))return 0;let _=c;for(const b of i)for(let w=0,I=b.length,E=I-1;w<I;E=w++)for(const L of n)for(let k=0,U=L.length,F=U-1;k<U;F=k++){if(za(b[E],b[w],L[F],L[k]))return 0;_=Math.min(_,R0(b[E],b[w],L[F],L[k],o))}return _}function bp(i,n,o,c,d,p,_){if(p===null||_===null)return;const b=mc(pc(c,p),pc(d,_),o);b<n&&i.push({dist:b,range1:p,range2:_})}function P0(i,n,o,c,d=1/0){let p=Math.min(c.distance(i[0],o[0][0]),d);if(p===0)return p;const _=new Es([{dist:0,range1:[0,i.length-1],range2:[0,0]}],vp),b=n?Gh:z0,w=xp(o);for(;_.length;){const I=_.pop();if(I.dist>=p)continue;const E=I.range1;if(Ml(E)<=b){if(!Ys(E,i.length))return NaN;if(n){const L=vb(i,E,o,c);if((p=Math.min(p,L))===0)return p}else for(let L=E[0];L<=E[1];++L){const k=tE(i[L],o,c);if((p=Math.min(p,k))===0)return p}}else{const L=O0(E,n);if(L[0]!==null){const k=mc(pc(i,L[0]),w,c);k<p&&_.push({dist:k,range1:L[0],range2:[0,0]})}if(L[1]!==null){const k=mc(pc(i,L[1]),w,c);k<p&&_.push({dist:k,range1:L[1],range2:[0,0]})}}}return p}function xb(i,n,o,c,d,p=1/0){let _=Math.min(p,d.distance(i[0],o[0]));if(_===0)return _;const b=new Es([{dist:0,range1:[0,i.length-1],range2:[0,o.length-1]}],vp),w=n?Gh:z0,I=c?Gh:z0;for(;b.length;){const E=b.pop();if(E.dist>=_)continue;const L=E.range1,k=E.range2;if(Ml(L)<=w&&Ml(k)<=I){if(!Ys(L,i.length)||!Ys(k,o.length))return NaN;if(n&&c?_=Math.min(_,JS(i,L,o,k,d)):n||c?n&&!c?_=Math.min(_,_b(o,k,i,L,d)):!n&&c&&(_=Math.min(_,_b(i,L,o,k,d))):_=Math.min(_,eE(i,L,o,k,d)),_===0)return _}else{const U=O0(L,n),F=O0(k,c);bp(b,_,d,i,o,U[0],F[0]),bp(b,_,d,i,o,U[0],F[1]),bp(b,_,d,i,o,U[1],F[0]),bp(b,_,d,i,o,U[1],F[1])}}return _}function U0(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o)if(!(p!==1/0&&mc(_,pc(b,[0,b.length-1]),c)>=p)&&(p=Math.min(p,xb(i,n,b,!0,c,p)),p===0))return p;return p}function Mp(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o){if(p!==1/0&&mc(_,xp(b),c)>=p)continue;const w=P0(i,n,b,c,p);if(isNaN(w))return w;if((p=Math.min(p,w))===0)return p}return p}function B0(i){return i==="Point"||i==="MultiPoint"||i==="LineString"||i==="MultiLineString"||i==="Polygon"||i==="MultiPolygon"}class gc{constructor(n,o){this.type=hn,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'distance' expression requires either one argument, but found ' ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection"){for(let d=0;d<c.features.length;++d)if(B0(c.features[d].geometry.type))return new gc(c,c.features[d].geometry)}else if(c.type==="Feature"){if(B0(c.geometry.type))return new gc(c,c.geometry)}else if(B0(c.type))return new gc(c,c)}return o.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(n){const o=n.geometry(),c=n.canonicalID();if(o!=null&&c!=null){if(n.geometryType()==="Point")return function(d,p,_){const b=[];for(const I of d)for(const E of I)b.push(Au(E,p));const w=new bl(b[0][1],"meters");return _.type==="Point"||_.type==="MultiPoint"||_.type==="LineString"?xb(b,!1,_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w):_.type==="MultiLineString"?U0(b,!1,_.coordinates,w):_.type==="Polygon"||_.type==="MultiPolygon"?Mp(b,!1,_.type==="Polygon"?[_.coordinates]:_.coordinates,w):null}(o,c,this.geometries);if(n.geometryType()==="LineString")return function(d,p,_){const b=[];for(const I of d){const E=[];for(const L of I)E.push(Au(L,p));b.push(E)}const w=new bl(b[0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return U0(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=U0(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}if(_.type==="Polygon"||_.type==="MultiPolygon"){let I=1/0;for(let E=0;E<b.length;E++){const L=Mp(b[E],!0,_.type==="Polygon"?[_.coordinates]:_.coordinates,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return null}(o,c,this.geometries);if(n.geometryType()==="Polygon")return function(d,p,_){const b=[];for(const I of function(E,L){const k=E.length;if(k<=1)return[E];const U=[];let F,$;for(let Z=0;Z<k;Z++){const J=qS(E[Z]);J!==0&&(E[Z].area=Math.abs(J),$===void 0&&($=J<0),$===J<0?(F&&U.push(F),F=[E[Z]]):F.push(E[Z]))}return F&&U.push(F),U}(d)){const E=[];for(let L=0;L<I.length;++L)E.push(XS(I[L],p));b.push(E)}const w=new bl(b[0][0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return Mp(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=Mp(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return _.type==="Polygon"||_.type==="MultiPolygon"?function(I,E,L){let k=1/0;for(const U of I)for(const F of E){const $=nE(U,F,L,k);if(isNaN($))return $;if((k=Math.min(k,$))===0)return k}return k}(_.type==="Polygon"?[_.coordinates]:_.coordinates,b,w):null}(o,c,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}var wp=gc;function Wh(i,n){switch(i){case"string":return Ts(n);case"number":return+n;case"boolean":return!!n;case"color":return Cr.parse(n);case"formatted":return po.fromString(Ts(n));case"resolvedImage":return Dn.fromString(Ts(n))}return n}function F0(i,n,o,c){return c!==void 0&&(i=c*Math.round(i/c)),n!==void 0&&i<n&&(i=n),o!==void 0&&i>o&&(i=o),i}class qh{constructor(n,o,c){this.type=n,this.key=o,this.scope=c}static parse(n,o){let c=o.expectedType;if(c==null&&(c=pi),n.length<2||n.length>3)return o.error("Invalid number of arguments for 'config' expression.");const d=o.parse(n[1],1);if(!(d instanceof Ca))return o.error("Key name of 'config' expression must be a string literal.");if(n.length>=3){const p=o.parse(n[2],2);return p instanceof Ca?new qh(c,Ts(d.value),Ts(p.value)):o.error("Scope of 'config' expression must be a string literal.")}return new qh(c,Ts(d.value))}evaluate(n){const o=[this.key,this.scope,n.scope].filter(Boolean).join(""),c=n.getConfig(o);if(!c)return null;const{type:d,value:p,values:_,minValue:b,maxValue:w,stepValue:I}=c,E=c.default.evaluate(n);let L=E;if(p){const k=n.scope;n.scope=(k||"").split("").slice(1).join(""),L=p.evaluate(n),n.scope=k}return d&&(L=Wh(d,L)),L===void 0||b===void 0&&w===void 0&&I===void 0||(typeof L=="number"?L=F0(L,b,w,I):Array.isArray(L)&&(L=L.map(k=>typeof k=="number"?F0(k,b,w,I):k))),p!==void 0&&L!==void 0&&_&&!_.includes(L)&&(L=E,d&&(L=Wh(d,L))),(d&&d!==this.type||L!==void 0&&kr(L)!==this.type)&&(L=Wh(this.type.kind,L)),L}eachChild(){}outputDefined(){return!1}serialize(){const n=["config",this.key];return this.scope&&n.concat(this.key),n}}var Cu=qh;function Nu(i){if(i instanceof hi&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof _p||i instanceof wp)return!1;let n=!0;return i.eachChild(o=>{n&&!Nu(o)&&(n=!1)}),n}function Kh(i){if(i instanceof hi&&i.name==="feature-state")return!1;let n=!0;return i.eachChild(o=>{n&&!Kh(o)&&(n=!1)}),n}function Xh(i){if(i instanceof Cu)return!1;let n=!0;return i.eachChild(o=>{n&&!Xh(o)&&(n=!1)}),n}function mo(i,n){if(i instanceof hi&&n.indexOf(i.name)>=0)return!1;let o=!0;return i.eachChild(c=>{o&&!mo(c,n)&&(o=!1)}),o}class wl{constructor(n,o){this.type=o.type,this.name=n,this.boundExpression=o}static parse(n,o){if(n.length!==2||typeof n[1]!="string")return o.error("'var' expression requires exactly one string literal argument.");const c=n[1];return o.scope.has(c)?new wl(c,o.scope.get(c)):o.error(`Unknown variable "${c}". Make sure "${c}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(n){return this.boundExpression.evaluate(n)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ro=wl;class V0{constructor(n,o=[],c,d=new ZS,p=[],_,b){this.registry=n,this.path=o,this.key=o.map(w=>`[${w}]`).join(""),this.scope=d,this.errors=p,this.expectedType=c,this._scope=_,this.options=b}parse(n,o,c,d,p={}){return o||c?this.concat(o,c,d)._parse(n,p):this._parse(n,p)}_parse(n,o){function c(d,p,_){return _==="assert"?new Na(p,[d]):_==="coerce"?new La(p,[d]):d}if(n!==null&&typeof n!="string"&&typeof n!="boolean"&&typeof n!="number"||(n=["literal",n]),Array.isArray(n)){if(n.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const d=typeof n[0]=="string"?this.registry[n[0]]:void 0;if(d){let p=d.parse(n,this);if(!p)return null;if(this.expectedType){const _=this.expectedType,b=p.type;if(_.kind!=="string"&&_.kind!=="number"&&_.kind!=="boolean"&&_.kind!=="object"&&_.kind!=="array"||b.kind!=="value")if(_.kind!=="color"&&_.kind!=="formatted"&&_.kind!=="resolvedImage"||b.kind!=="value"&&b.kind!=="string"){if(this.checkSubtype(_,b))return null}else p=c(p,_,o.typeAnnotation||"coerce");else p=c(p,_,o.typeAnnotation||"assert")}if(!(p instanceof Ca)&&p.type.kind!=="resolvedImage"&&$0(p)){const _=new pb(this._scope,this.options);try{p=new Ca(p.type,p.evaluate(_))}catch(b){return this.error(b.message),null}}return p}return La.parse(["to-array",n],this)}return this.error(n===void 0?"'undefined' value invalid. Use null instead.":typeof n=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof n} instead.`)}concat(n,o,c){const d=typeof n=="number"?this.path.concat(n):this.path,p=c?this.scope.concat(c):this.scope;return new V0(this.registry,d,o||null,p,this.errors,this._scope,this.options)}error(n,...o){const c=`${this.key}${o.map(d=>`[${d}]`).join("")}`;this.errors.push(new fa(c,n))}checkSubtype(n,o){const c=uc(n,o);return c&&this.error(c),c}}var bb=V0;function $0(i){if(i instanceof Ro)return $0(i.boundExpression);if(i instanceof hi&&i.name==="error"||i instanceof Qh||i instanceof _p||i instanceof wp||i instanceof Cu)return!1;const n=i instanceof La||i instanceof Na;let o=!0;return i.eachChild(c=>{o=n?o&&$0(c):o&&c instanceof Ca}),!!o&&Nu(i)&&mo(i,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function yc(i,n){const o=i.length-1;let c,d,p=0,_=o,b=0;for(;p<=_;)if(b=Math.floor((p+_)/2),c=i[b],d=i[b+1],c<=n){if(b===o||n<d)return b;p=b+1}else{if(!(c>n))throw new Or("Input is not a number.");_=b-1}return 0}class Ip{constructor(n,o,c){this.type=n,this.input=o,this.labels=[],this.outputs=[];for(const[d,p]of c)this.labels.push(d),this.outputs.push(p)}static parse(n,o){if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=[];let p=null;o.expectedType&&o.expectedType.kind!=="value"&&(p=o.expectedType);for(let _=1;_<n.length;_+=2){const b=_===1?-1/0:n[_],w=n[_+1],I=_,E=_+1;if(typeof b!="number")return o.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',I);if(d.length&&d[d.length-1][0]>=b)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',I);const L=o.parse(w,E,p);if(!L)return null;p=p||L.type,d.push([b,L])}return new Ip(p,c,d)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;return d>=o[p-1]?c[p-1].evaluate(n):c[yc(o,d)].evaluate(n)}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){const n=["step",this.input.serialize()];for(let o=0;o<this.labels.length;o++)o>0&&n.push(this.labels[o]),n.push(this.outputs[o].serialize());return n}}var Jh=Ip;const Mb=.95047,Il=1.08883,wb=4/29,Lu=6/29,Q0=3*Lu*Lu,Ib=Lu*Lu*Lu,iE=Math.PI/180,Gs=180/Math.PI;function Tp(i){return i>Ib?Math.pow(i,1/3):i/Q0+wb}function Sp(i){return i>Lu?i*i*i:Q0*(i-wb)}function Ep(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Dp(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function H0(i){const n=Dp(i.r),o=Dp(i.g),c=Dp(i.b),d=Tp((.4124564*n+.3575761*o+.1804375*c)/Mb),p=Tp((.2126729*n+.7151522*o+.072175*c)/1);return{l:116*p-16,a:500*(d-p),b:200*(p-Tp((.0193339*n+.119192*o+.9503041*c)/Il)),alpha:i.a}}function Y0(i){let n=(i.l+16)/116,o=isNaN(i.a)?n:n+i.a/500,c=isNaN(i.b)?n:n-i.b/200;return n=1*Sp(n),o=Mb*Sp(o),c=Il*Sp(c),new Cr(Ep(3.2404542*o-1.5371385*n-.4985314*c),Ep(-.969266*o+1.8760108*n+.041556*c),Ep(.0556434*o-.2040259*n+1.0572252*c),i.alpha)}function Tb(i,n,o){const c=n-i;return i+o*(c>180||c<-180?c-360*Math.round(c/360):c)}const zu={forward:H0,reverse:Y0,interpolate:function(i,n,o){return{l:li(i.l,n.l,o),a:li(i.a,n.a,o),b:li(i.b,n.b,o),alpha:li(i.alpha,n.alpha,o)}}},ku={forward:function(i){const{l:n,a:o,b:c}=H0(i),d=Math.atan2(c,o)*Gs;return{h:d<0?d+360:d,c:Math.sqrt(o*o+c*c),l:n,alpha:i.a}},reverse:function(i){const n=i.h*iE,o=i.c;return Y0({l:i.l,a:Math.cos(n)*o,b:Math.sin(n)*o,alpha:i.alpha})},interpolate:function(i,n,o){return{h:Tb(i.h,n.h,o),c:li(i.c,n.c,o),l:li(i.l,n.l,o),alpha:li(i.alpha,n.alpha,o)}}};var G0=Object.freeze({__proto__:null,hcl:ku,lab:zu});class ed{constructor(n,o,c,d,p){this.type=n,this.operator=o,this.interpolation=c,this.input=d,this.labels=[],this.outputs=[];for(const[_,b]of p)this.labels.push(_),this.outputs.push(b)}static interpolationFactor(n,o,c,d){let p=0;if(n.name==="exponential")p=Ou(o,n.base,c,d);else if(n.name==="linear")p=Ou(o,1,c,d);else if(n.name==="cubic-bezier"){const _=n.controlPoints;p=new fe(_[0],_[1],_[2],_[3]).solve(Ou(o,1,c,d))}return p}static parse(n,o){let[c,d,p,..._]=n;if(!Array.isArray(d)||d.length===0)return o.error("Expected an interpolation type expression.",1);if(d[0]==="linear")d={name:"linear"};else if(d[0]==="exponential"){const I=d[1];if(typeof I!="number")return o.error("Exponential interpolation requires a numeric base.",1,1);d={name:"exponential",base:I}}else{if(d[0]!=="cubic-bezier")return o.error(`Unknown interpolation type ${String(d[0])}`,1,0);{const I=d.slice(1);if(I.length!==4||I.some(E=>typeof E!="number"||E<0||E>1))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);d={name:"cubic-bezier",controlPoints:I}}}if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(p=o.parse(p,2,hn),!p)return null;const b=[];let w=null;c==="interpolate-hcl"||c==="interpolate-lab"?w=Is:o.expectedType&&o.expectedType.kind!=="value"&&(w=o.expectedType);for(let I=0;I<_.length;I+=2){const E=_[I],L=_[I+1],k=I+3,U=I+4;if(typeof E!="number")return o.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',k);if(b.length&&b[b.length-1][0]>=E)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const F=o.parse(L,U,w);if(!F)return null;w=w||F.type,b.push([E,F])}return w.kind==="number"||w.kind==="color"||w.kind==="array"&&w.itemType.kind==="number"&&typeof w.N=="number"?new ed(w,c,d,p,b):o.error(`Type ${Ir(w)} is not interpolatable.`)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;if(d>=o[p-1])return c[p-1].evaluate(n);const _=yc(o,d),b=ed.interpolationFactor(this.interpolation,d,o[_],o[_+1]),w=c[_].evaluate(n),I=c[_+1].evaluate(n);return this.operator==="interpolate"?pp[this.type.kind.toLowerCase()](w,I,b):this.operator==="interpolate-hcl"?ku.reverse(ku.interpolate(ku.forward(w),ku.forward(I),b)):zu.reverse(zu.interpolate(zu.forward(w),zu.forward(I),b))}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){let n;n=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const o=[this.operator,n,this.input.serialize()];for(let c=0;c<this.labels.length;c++)o.push(this.labels[c],this.outputs[c].serialize());return o}}function Ou(i,n,o,c){const d=c-o,p=i-o;return d===0?0:n===1?p/d:(Math.pow(n,p)-1)/(Math.pow(n,d)-1)}var us=ed;class ju{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expectected at least one argument.");let c=null;const d=o.expectedType;d&&d.kind!=="value"&&(c=d);const p=[];for(const b of n.slice(1)){const w=o.parse(b,1+p.length,c,void 0,{typeAnnotation:"omit"});if(!w)return null;c=c||w.type,p.push(w)}const _=d&&p.some(b=>uc(d,b.type));return new ju(_?pi:c,p)}evaluate(n){let o,c=null,d=0;for(const p of this.args){if(d++,c=p.evaluate(n),c&&c instanceof Dn&&!c.available&&(o||(o=c),c=null,d===this.args.length))return o;if(c!==null)break}return c}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=["coalesce"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Z0=ju;class Ap{constructor(n,o){this.type=o.type,this.bindings=[].concat(n),this.result=o}evaluate(n){return this.result.evaluate(n)}eachChild(n){for(const o of this.bindings)n(o[1]);n(this.result)}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found ${n.length-1} instead.`);const c=[];for(let p=1;p<n.length-1;p+=2){const _=n[p];if(typeof _!="string")return o.error(`Expected string, but found ${typeof _} instead.`,p);if(/[^a-zA-Z0-9_]/.test(_))return o.error("Variable names must contain only alphanumeric characters or '_'.",p);const b=o.parse(n[p+1],p+1);if(!b)return null;c.push([_,b])}const d=o.parse(n[n.length-1],n.length-1,o.expectedType,c);return d?new Ap(c,d):null}outputDefined(){return this.result.outputDefined()}serialize(){const n=["let"];for(const[o,c]of this.bindings)n.push(o,c.serialize());return n.push(this.result.serialize()),n}}var W0=Ap;class Tl{constructor(n,o,c){this.type=n,this.index=o,this.input=c}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,hn),d=o.parse(n[2],2,Yo(o.expectedType||pi));return c&&d?new Tl(d.type.itemType,c,d):null}evaluate(n){const o=this.index.evaluate(n),c=this.input.evaluate(n);if(o<0)throw new Or(`Array index out of bounds: ${o} < 0.`);if(o>=c.length)throw new Or(`Array index out of bounds: ${o} > ${c.length-1}.`);if(o!==Math.floor(o))throw new Or(`Array index must be an integer, but found ${o} instead.`);return c[o]}eachChild(n){n(this.index),n(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var mi=Tl;class q0{constructor(n,o){this.type=Ii,this.needle=n,this.haystack=o}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);return c&&d?Rn(c.type,[Ii,wi,hn,bu,pi])?new q0(c,d):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`):null}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(c==null)return!1;if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);return c.indexOf(o)>=0}eachChild(n){n(this.needle),n(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var rE=q0;class Cp{constructor(n,o,c){this.type=hn,this.needle=n,this.haystack=o,this.fromIndex=c}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);if(!c||!d)return null;if(!Rn(c.type,[Ii,wi,hn,bu,pi]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new Cp(c,d,p):null}return new Cp(c,d)}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);if(this.fromIndex){const d=this.fromIndex.evaluate(n);return c.indexOf(o,d)}return c.indexOf(o)}eachChild(n){n(this.needle),n(this.haystack),this.fromIndex&&n(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const n=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),n]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Sb=Cp;class K0{constructor(n,o,c,d,p,_){this.inputType=n,this.type=o,this.input=c,this.cases=d,this.outputs=p,this.otherwise=_}static parse(n,o){if(n.length<5)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if(n.length%2!=1)return o.error("Expected an even number of arguments.");let c,d;o.expectedType&&o.expectedType.kind!=="value"&&(d=o.expectedType);const p={},_=[];for(let I=2;I<n.length-1;I+=2){let E=n[I];const L=n[I+1];Array.isArray(E)||(E=[E]);const k=o.concat(I);if(E.length===0)return k.error("Expected at least one branch label.");for(const F of E){if(typeof F!="number"&&typeof F!="string")return k.error("Branch labels must be numbers or strings.");if(typeof F=="number"&&Math.abs(F)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof F=="number"&&Math.floor(F)!==F)return k.error("Numeric branch labels must be integer values.");if(c){if(k.checkSubtype(c,kr(F)))return null}else c=kr(F);if(p[String(F)]!==void 0)return k.error("Branch labels must be unique.");p[String(F)]=_.length}const U=o.parse(L,I,d);if(!U)return null;d=d||U.type,_.push(U)}const b=o.parse(n[1],1,pi);if(!b)return null;const w=o.parse(n[n.length-1],n.length-1,d);return w?b.type.kind!=="value"&&o.concat(1).checkSubtype(c,b.type)?null:new K0(c,d,b,p,_,w):null}evaluate(n){const o=this.input.evaluate(n);return(kr(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(n)}eachChild(n){n(this.input),this.outputs.forEach(n),n(this.otherwise)}outputDefined(){return this.outputs.every(n=>n.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["match",this.input.serialize()],o=Object.keys(this.cases).sort(),c=[],d={};for(const _ of o){const b=d[this.cases[_]];b===void 0?(d[this.cases[_]]=c.length,c.push([this.cases[_],[_]])):c[b][1].push(_)}const p=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,b]of c)n.push(b.length===1?p(b[0]):b.map(p)),n.push(this.outputs[_].serialize());return n.push(this.otherwise.serialize()),n}}var Eb=K0;class Np{constructor(n,o,c){this.type=n,this.branches=o,this.otherwise=c}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found only ${n.length-1}.`);if(n.length%2!=0)return o.error("Expected an odd number of arguments.");let c;o.expectedType&&o.expectedType.kind!=="value"&&(c=o.expectedType);const d=[];for(let _=1;_<n.length-1;_+=2){const b=o.parse(n[_],_,Ii);if(!b)return null;const w=o.parse(n[_+1],_+1,c);if(!w)return null;d.push([b,w]),c=c||w.type}const p=o.parse(n[n.length-1],n.length-1,c);return p?new Np(c,d,p):null}evaluate(n){for(const[o,c]of this.branches)if(o.evaluate(n))return c.evaluate(n);return this.otherwise.evaluate(n)}eachChild(n){for(const[o,c]of this.branches)n(o),n(c);n(this.otherwise)}outputDefined(){return this.branches.every(([n,o])=>o.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["case"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Db=Np;class td{constructor(n,o,c,d){this.type=n,this.input=o,this.beginIndex=c,this.endIndex=d}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,hn);if(!c||!d)return null;if(!Rn(c.type,[Yo(pi),wi,pi]))return o.error(`Expected first argument to be of type array or string, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new td(c.type,c,d,p):null}return new td(c.type,c,d)}evaluate(n){const o=this.input.evaluate(n),c=this.beginIndex.evaluate(n);if(!gl(o,["string","array"]))throw new Or(`Expected first argument to be of type array or string, but found ${Ir(kr(o))} instead.`);if(this.endIndex){const d=this.endIndex.evaluate(n);return o.slice(c,d)}return o.slice(c)}eachChild(n){n(this.input),n(this.beginIndex),this.endIndex&&n(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const n=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),n]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Ru=td;function X0(i,n){return i==="=="||i==="!="?n.kind==="boolean"||n.kind==="string"||n.kind==="number"||n.kind==="null"||n.kind==="value":n.kind==="string"||n.kind==="number"||n.kind==="value"}function J0(i,n,o,c){return c.compare(n,o)===0}function Pu(i,n,o){const c=i!=="=="&&i!=="!=";return class iV{constructor(p,_,b){this.type=Ii,this.lhs=p,this.rhs=_,this.collator=b,this.hasUntypedArgument=p.type.kind==="value"||_.type.kind==="value"}static parse(p,_){if(p.length!==3&&p.length!==4)return _.error("Expected two or three arguments.");const b=p[0];let w=_.parse(p[1],1,pi);if(!w)return null;if(!X0(b,w.type))return _.concat(1).error(`"${b}" comparisons are not supported for type '${Ir(w.type)}'.`);let I=_.parse(p[2],2,pi);if(!I)return null;if(!X0(b,I.type))return _.concat(2).error(`"${b}" comparisons are not supported for type '${Ir(I.type)}'.`);if(w.type.kind!==I.type.kind&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error(`Cannot compare types '${Ir(w.type)}' and '${Ir(I.type)}'.`);c&&(w.type.kind==="value"&&I.type.kind!=="value"?w=new Na(I.type,[w]):w.type.kind!=="value"&&I.type.kind==="value"&&(I=new Na(w.type,[I])));let E=null;if(p.length===4){if(w.type.kind!=="string"&&I.type.kind!=="string"&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(E=_.parse(p[3],3,mp),!E)return null}return new iV(w,I,E)}evaluate(p){const _=this.lhs.evaluate(p),b=this.rhs.evaluate(p);if(c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!==I.kind||w.kind!=="string"&&w.kind!=="number")throw new Or(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${w.kind}, ${I.kind}) instead.`)}if(this.collator&&!c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!=="string"||I.kind!=="string")return n(p,_,b)}return this.collator?o(p,_,b,this.collator.evaluate(p)):n(p,_,b)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[i];return this.eachChild(_=>{p.push(_.serialize())}),p}}}const e1=Pu("==",function(i,n,o){return n===o},J0),t1=Pu("!=",function(i,n,o){return n!==o},function(i,n,o,c){return!J0(0,n,o,c)}),oE=Pu("<",function(i,n,o){return n<o},function(i,n,o,c){return c.compare(n,o)<0}),sE=Pu(">",function(i,n,o){return n>o},function(i,n,o,c){return c.compare(n,o)>0}),Ab=Pu("<=",function(i,n,o){return n<=o},function(i,n,o,c){return c.compare(n,o)<=0}),aE=Pu(">=",function(i,n,o){return n>=o},function(i,n,o,c){return c.compare(n,o)>=0});class n1{constructor(n,o,c,d,p,_){this.type=wi,this.number=n,this.locale=o,this.currency=c,this.unit=d,this.minFractionDigits=p,this.maxFractionDigits=_}static parse(n,o){if(n.length!==3)return o.error("Expected two arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=n[2];if(typeof d!="object"||Array.isArray(d))return o.error("NumberFormat options argument must be an object.");let p=null;if(d.locale&&(p=o.parse(d.locale,1,wi),!p))return null;let _=null;if(d.currency&&(_=o.parse(d.currency,1,wi),!_))return null;let b=null;if(d.unit&&(b=o.parse(d.unit,1,wi),!b))return null;let w=null;if(d["min-fraction-digits"]&&(w=o.parse(d["min-fraction-digits"],1,hn),!w))return null;let I=null;return d["max-fraction-digits"]&&(I=o.parse(d["max-fraction-digits"],1,hn),!I)?null:new n1(c,p,_,b,w,I)}evaluate(n){return new Intl.NumberFormat(this.locale?this.locale.evaluate(n):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(n):void 0,unit:this.unit?this.unit.evaluate(n):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(n):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(n):void 0}).format(this.number.evaluate(n))}eachChild(n){n(this.number),this.locale&&n(this.locale),this.currency&&n(this.currency),this.unit&&n(this.unit),this.minFractionDigits&&n(this.minFractionDigits),this.maxFractionDigits&&n(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const n={};return this.locale&&(n.locale=this.locale.serialize()),this.currency&&(n.currency=this.currency.serialize()),this.unit&&(n.unit=this.unit.serialize()),this.minFractionDigits&&(n["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(n["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),n]}}class i1{constructor(n){this.type=hn,this.input=n}static parse(n,o){if(n.length!==2)return o.error(`Expected 1 argument, but found ${n.length-1} instead.`);const c=o.parse(n[1],1);return c?c.type.kind!=="array"&&c.type.kind!=="string"&&c.type.kind!=="value"?o.error(`Expected argument of type string or array, but found ${Ir(c.type)} instead.`):new i1(c):null}evaluate(n){const o=this.input.evaluate(n);if(typeof o=="string"||Array.isArray(o))return o.length;throw new Or(`Expected value to be of type string or array, but found ${Ir(kr(o))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){const n=["length"];return this.eachChild(o=>{n.push(o.serialize())}),n}}function Cb(i){return function(){i=1831565813+(i|=0)|0;let n=Math.imul(i^i>>>15,1|i);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const r1={"==":e1,"!=":t1,">":sE,"<":oE,">=":aE,"<=":Ab,array:Na,at:mi,boolean:Na,case:Db,coalesce:Z0,collator:Qh,format:Tu,image:dc,in:rE,"index-of":Sb,interpolate:us,"interpolate-hcl":us,"interpolate-lab":us,length:i1,let:W0,literal:Ca,match:Eb,number:Na,"number-format":n1,object:Na,slice:Ru,step:Jh,string:Na,"to-boolean":La,"to-color":La,"to-number":La,"to-string":La,var:Ro,within:_p,distance:wp,config:Cu};function o1(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=fb(n,o,c,p);if(_)throw new Or(_);return new Cr(n/255*p,o/255*p,c/255*p,p)}function Nb(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=function(I,E,L,k){return typeof I=="number"&&I>=0&&I<=360?typeof E=="number"&&E>=0&&E<=100&&typeof L=="number"&&L>=0&&L<=100?k===void 0||typeof k=="number"&&k>=0&&k<=1?null:`Invalid hsla value [${[I,E,L,k].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 'h' must be between 0 and 360.`}(n,o,c,p);if(_)throw new Or(_);const b=`hsla(${n}, ${o}%, ${c}%, ${p})`,w=Cr.parse(b);if(!w)throw new Or(`Failed to parse HSLA color: ${b}`);return w}function s1(i,n){return i in n}function a1(i,n){const o=n[i];return o===void 0?null:o}function _c(i){return{type:i}}hi.register(r1,{error:[{kind:"error"},[wi],(i,[n])=>{throw new Or(n.evaluate(i))}],typeof:[wi,[pi],(i,[n])=>Ir(kr(n.evaluate(i)))],"to-rgba":[Yo(hn,4),[Is],(i,[n])=>n.evaluate(i).toArray()],rgb:[Is,[hn,hn,hn],o1],rgba:[Is,[hn,hn,hn,hn],o1],hsl:[Is,[hn,hn,hn],Nb],hsla:[Is,[hn,hn,hn,hn],Nb],has:{type:Ii,overloads:[[[wi],(i,[n])=>s1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>s1(n.evaluate(i),o.evaluate(i))]]},get:{type:pi,overloads:[[[wi],(i,[n])=>a1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>a1(n.evaluate(i),o.evaluate(i))]]},"feature-state":[pi,[wi],(i,[n])=>a1(n.evaluate(i),i.featureState||{})],properties:[Mu,[],i=>i.properties()],"geometry-type":[wi,[],i=>i.geometryType()],id:[pi,[],i=>i.id()],zoom:[hn,[],i=>i.globals.zoom],pitch:[hn,[],i=>i.globals.pitch||0],"distance-from-center":[hn,[],i=>i.distanceFromCenter()],"measure-light":[hn,[wi],(i,[n])=>i.measureLight(n.evaluate(i))],"heatmap-density":[hn,[],i=>i.globals.heatmapDensity||0],"line-progress":[hn,[],i=>i.globals.lineProgress||0],"raster-value":[hn,[],i=>i.globals.rasterValue||0],"raster-particle-speed":[hn,[],i=>i.globals.rasterParticleSpeed||0],"sky-radial-progress":[hn,[],i=>i.globals.skyRadialProgress||0],accumulated:[pi,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[hn,_c(hn),(i,n)=>{let o=0;for(const c of n)o+=c.evaluate(i);return o}],"*":[hn,_c(hn),(i,n)=>{let o=1;for(const c of n)o*=c.evaluate(i);return o}],"-":{type:hn,overloads:[[[hn,hn],(i,[n,o])=>n.evaluate(i)-o.evaluate(i)],[[hn],(i,[n])=>-n.evaluate(i)]]},"/":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)/o.evaluate(i)],"%":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)%o.evaluate(i)],ln2:[hn,[],()=>Math.LN2],pi:[hn,[],()=>Math.PI],e:[hn,[],()=>Math.E],"^":[hn,[hn,hn],(i,[n,o])=>Math.pow(n.evaluate(i),o.evaluate(i))],sqrt:[hn,[hn],(i,[n])=>Math.sqrt(n.evaluate(i))],log10:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN10],ln:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))],log2:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN2],sin:[hn,[hn],(i,[n])=>Math.sin(n.evaluate(i))],cos:[hn,[hn],(i,[n])=>Math.cos(n.evaluate(i))],tan:[hn,[hn],(i,[n])=>Math.tan(n.evaluate(i))],asin:[hn,[hn],(i,[n])=>Math.asin(n.evaluate(i))],acos:[hn,[hn],(i,[n])=>Math.acos(n.evaluate(i))],atan:[hn,[hn],(i,[n])=>Math.atan(n.evaluate(i))],min:[hn,_c(hn),(i,n)=>Math.min(...n.map(o=>o.evaluate(i)))],max:[hn,_c(hn),(i,n)=>Math.max(...n.map(o=>o.evaluate(i)))],abs:[hn,[hn],(i,[n])=>Math.abs(n.evaluate(i))],round:[hn,[hn],(i,[n])=>{const o=n.evaluate(i);return o<0?-Math.round(-o):Math.round(o)}],floor:[hn,[hn],(i,[n])=>Math.floor(n.evaluate(i))],ceil:[hn,[hn],(i,[n])=>Math.ceil(n.evaluate(i))],"filter-==":[Ii,[wi,pi],(i,[n,o])=>i.properties()[n.value]===o.value],"filter-id-==":[Ii,[pi],(i,[n])=>i.id()===n.value],"filter-type-==":[Ii,[wi],(i,[n])=>i.geometryType()===n.value],"filter-<":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<d}],"filter-id-<":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<c}],"filter->":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>d}],"filter-id->":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>c}],"filter-<=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<=d}],"filter-id-<=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<=c}],"filter->=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>=d}],"filter-id->=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>=c}],"filter-has":[Ii,[pi],(i,[n])=>n.value in i.properties()],"filter-has-id":[Ii,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Ii,[Yo(wi)],(i,[n])=>n.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ii,[Yo(pi)],(i,[n])=>n.value.indexOf(i.id())>=0],"filter-in-small":[Ii,[wi,Yo(pi)],(i,[n,o])=>o.value.indexOf(i.properties()[n.value])>=0],"filter-in-large":[Ii,[wi,Yo(pi)],(i,[n,o])=>function(c,d,p,_){for(;p<=_;){const b=p+_>>1;if(d[b]===c)return!0;d[b]>c?_=b-1:p=b+1}return!1}(i.properties()[n.value],o.value,0,o.value.length-1)],all:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)&&o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(!o.evaluate(i))return!1;return!0}]]},any:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)||o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(o.evaluate(i))return!0;return!1}]]},"!":[Ii,[Ii],(i,[n])=>!n.evaluate(i)],"is-supported-script":[Ii,[wi],(i,[n])=>{const o=i.globals&&i.globals.isSupportedScript;return!o||o(n.evaluate(i))}],upcase:[wi,[wi],(i,[n])=>n.evaluate(i).toUpperCase()],downcase:[wi,[wi],(i,[n])=>n.evaluate(i).toLowerCase()],concat:[wi,_c(pi),(i,n)=>n.map(o=>Ts(o.evaluate(i))).join("")],"resolved-locale":[wi,[mp],(i,[n])=>n.evaluate(i).resolvedLocale()],random:[hn,[hn,hn,pi],(i,n)=>{const[o,c,d]=n.map(_=>_.evaluate(i));if(o>c||o===c)return o;let p;if(typeof d=="string")p=function(_){let b=0;if(_.length===0)return b;for(let w=0;w<_.length;w++)b=(b<<5)-b+_.charCodeAt(w),b|=0;return b}(d);else{if(typeof d!="number")throw new Or(`Invalid seed input: ${d}`);p=d}return o+Cb(p)()*(c-o)}]});var Uu=r1;function l1(i){return{result:"success",value:i}}function vc(i){return{result:"error",value:i}}function Lb(i,n){return!!i&&!!i.parameters&&i.parameters.indexOf(n)>-1}function Lp(i){return i["property-type"]==="data-driven"}function c1(i){return Lb(i.expression,"measure-light")}function zb(i){return Lb(i.expression,"zoom")}function u1(i){return!!i.expression&&i.expression.interpolated}function zp(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function kb(i){return i}function h1(i,n){const o=n.type==="color",c=i.stops&&typeof i.stops[0][0]=="object",d=c||!(c||i.property!==void 0),p=i.type||(u1(n)?"exponential":"interval");if(o&&((i=v0({},i)).stops&&(i.stops=i.stops.map(I=>[I[0],Cr.parse(I[1])])),i.default=Cr.parse(i.default?i.default:n.default)),i.colorSpace&&i.colorSpace!=="rgb"&&!G0[i.colorSpace])throw new Error(`Unknown color space: ${i.colorSpace}`);let _,b,w;if(p==="exponential")_=Ob;else if(p==="interval")_=cE;else if(p==="categorical"){_=lE,b=Object.create(null);for(const I of i.stops)b[I[0]]=I[1];w=typeof i.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);_=jb}if(c){const I={},E=[];for(let U=0;U<i.stops.length;U++){const F=i.stops[U],$=F[0].zoom;I[$]===void 0&&(I[$]={zoom:$,type:i.type,property:i.property,default:i.default,stops:[]},E.push($)),I[$].stops.push([F[0].value,F[1]])}const L=[];for(const U of E)L.push([I[U].zoom,h1(I[U],n)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:us.interpolationFactor.bind(void 0,k),zoomStops:L.map(U=>U[0]),evaluate:({zoom:U},F)=>Ob({stops:L,base:i.base},n,U).evaluate(U,F)}}if(d){const I=p==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:I,interpolationFactor:us.interpolationFactor.bind(void 0,I),zoomStops:i.stops.map(E=>E[0]),evaluate:({zoom:E})=>_(i,n,E,b,w)}}return{kind:"source",evaluate(I,E){const L=E&&E.properties?E.properties[i.property]:void 0;return L===void 0?nd(i.default,n.default):_(i,n,L,b,w)}}}function nd(i,n,o){return i!==void 0?i:n!==void 0?n:o!==void 0?o:void 0}function lE(i,n,o,c,d){return nd(typeof o===d?c[o]:void 0,i.default,n.default)}function cE(i,n,o){if(Su(o)!=="number")return nd(i.default,n.default);const c=i.stops.length;if(c===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[c-1][0])return i.stops[c-1][1];const d=yc(i.stops.map(p=>p[0]),o);return i.stops[d][1]}function Ob(i,n,o){const c=i.base!==void 0?i.base:1;if(Su(o)!=="number")return nd(i.default,n.default);const d=i.stops.length;if(d===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[d-1][0])return i.stops[d-1][1];const p=yc(i.stops.map(E=>E[0]),o),_=function(E,L,k,U){const F=U-k,$=E-k;return F===0?0:L===1?$/F:(Math.pow(L,$)-1)/(Math.pow(L,F)-1)}(o,c,i.stops[p][0],i.stops[p+1][0]),b=i.stops[p][1],w=i.stops[p+1][1];let I=pp[n.type]||kb;if(i.colorSpace&&i.colorSpace!=="rgb"){const E=G0[i.colorSpace];I=(L,k)=>E.reverse(E.interpolate(E.forward(L),E.forward(k),_))}return typeof b.evaluate=="function"?{evaluate(...E){const L=b.evaluate.apply(void 0,E),k=w.evaluate.apply(void 0,E);if(L!==void 0&&k!==void 0)return I(L,k,_)}}:I(b,w,_)}function jb(i,n,o){return n.type==="color"?o=Cr.parse(o):n.type==="formatted"?o=po.fromString(o.toString()):n.type==="resolvedImage"?o=Dn.fromString(o.toString()):Su(o)===n.type||n.type==="enum"&&n.values[o]||(o=void 0),nd(o,i.default,n.default)}class kp{constructor(n,o,c,d){this.expression=n,this._warningHistory={},this._evaluator=new pb(c,d),this._defaultValue=o?function(p){return p.type==="color"&&(zp(p.default)||Array.isArray(p.default))?new Cr(0,0,0,0):p.type==="color"?Cr.parse(p.default)||null:p.default===void 0?null:p.default}(o):null,this._enumValues=o&&o.type==="enum"?o.values:null}evaluateWithoutErrorHandling(n,o,c,d,p,_,b,w){return this._evaluator.globals=n,this._evaluator.feature=o,this._evaluator.featureState=c,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null,this.expression.evaluate(this._evaluator)}evaluate(n,o,c,d,p,_,b,w){this._evaluator.globals=n,this._evaluator.feature=o||null,this._evaluator.featureState=c||null,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_||null,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null;try{const I=this.expression.evaluate(this._evaluator);if(I==null||typeof I=="number"&&I!=I)return this._defaultValue;if(this._enumValues&&!(I in this._enumValues))throw new Or(`Expected value to be one of ${Object.keys(this._enumValues).map(E=>JSON.stringify(E)).join(", ")}, but found ${JSON.stringify(I)} instead.`);return I}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console<"u"&&console.warn(I.message)),this._defaultValue}}}function id(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in Uu}function Op(i,n,o,c){const d=new bb(Uu,[],n?function(_){const b={color:Is,string:wi,number:hn,enum:wi,boolean:Ii,formatted:wu,resolvedImage:Vh};return _.type==="array"?Yo(b[_.value]||pi,_.length):b[_.type]}(n):void 0,void 0,void 0,o,c),p=d.parse(i,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?l1(new kp(p,n,o,c)):vc(d.errors)}class d1{constructor(n,o,c){this.kind=n,this._styleExpression=o,this.isLightConstant=c,this.isStateDependent=n!=="constant"&&!Kh(o.expression),this.isConfigDependent=!Xh(o.expression)}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}}class rd{constructor(n,o,c,d,p){this.kind=n,this.zoomStops=c,this._styleExpression=o,this.isStateDependent=n!=="camera"&&!Kh(o.expression),this.isLightConstant=p,this.isConfigDependent=!Xh(o.expression),this.interpolationType=d}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}interpolationFactor(n,o,c){return this.interpolationType?us.interpolationFactor(this.interpolationType,n,o,c):0}}function jp(i,n,o,c){if((i=Op(i,n,o,c)).result==="error")return i;const d=i.value.expression,p=Nu(d);if(!p&&!Lp(n))return vc([new fa("","data expressions not supported")]);const _=mo(d,["zoom","pitch","distance-from-center"]);if(!_&&!zb(n))return vc([new fa("","zoom expressions not supported")]);const b=mo(d,["measure-light"]);if(!b&&!c1(n))return vc([new fa("","measure-light expression not supported")]);const w=n.expression&&n.expression.relaxZoomRestriction,I=sd(d);return I||_||w?I instanceof fa?vc([I]):I instanceof us&&!u1(n)?vc([new fa("",'"interpolate" expressions cannot be used with this property')]):l1(I?new rd(p?"camera":"composite",i.value,I.labels,I instanceof us?I.interpolation:void 0,b):new d1(p?"constant":"source",i.value,b)):vc([new fa("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class od{constructor(n,o){this._parameters=n,this._specification=o,v0(this,h1(this._parameters,this._specification))}static deserialize(n){return new od(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}}function sd(i){let n=null;if(i instanceof W0)n=sd(i.result);else if(i instanceof Z0){for(const o of i.args)if(n=sd(o),n)break}else(i instanceof Jh||i instanceof us)&&i.input instanceof hi&&i.input.name==="zoom"&&(n=i);return n instanceof fa||i.eachChild(o=>{const c=sd(o);c instanceof fa?n=c:n&&c&&n!==c&&(n=new fa("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}var uE=Ws,Zs=3;function Ws(i,n,o){var c=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var d=new Int32Array(this.arrayBuffer);i=d[0],this.d=(n=d[1])+2*(o=d[2]);for(var p=0;p<this.d*this.d;p++){var _=d[Zs+p],b=d[Zs+p+1];c.push(_===b?null:d.subarray(_,b))}var w=d[Zs+c.length+1];this.keys=d.subarray(d[Zs+c.length],w),this.bboxes=d.subarray(w),this.insert=this._insertReadonly}else{this.d=n+2*o;for(var I=0;I<this.d*this.d;I++)c.push([]);this.keys=[],this.bboxes=[]}this.n=n,this.extent=i,this.padding=o,this.scale=n/i,this.uid=0;var E=o/n*i;this.min=-E,this.max=i+E}Ws.prototype.insert=function(i,n,o,c,d){this._forEachCell(n,o,c,d,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(n),this.bboxes.push(o),this.bboxes.push(c),this.bboxes.push(d)},Ws.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ws.prototype._insertCell=function(i,n,o,c,d,p){this.cells[d].push(p)},Ws.prototype.query=function(i,n,o,c,d){var p=this.min,_=this.max;if(i<=p&&n<=p&&_<=o&&_<=c&&!d)return Array.prototype.slice.call(this.keys);var b=[];return this._forEachCell(i,n,o,c,this._queryCell,b,{},d),b},Ws.prototype._queryCell=function(i,n,o,c,d,p,_,b){var w=this.cells[d];if(w!==null)for(var I=this.keys,E=this.bboxes,L=0;L<w.length;L++){var k=w[L];if(_[k]===void 0){var U=4*k;(b?b(E[U+0],E[U+1],E[U+2],E[U+3]):i<=E[U+2]&&n<=E[U+3]&&o>=E[U+0]&&c>=E[U+1])?(_[k]=!0,p.push(I[k])):_[k]=!1}}},Ws.prototype._forEachCell=function(i,n,o,c,d,p,_,b){for(var w=this._convertToCellCoord(i),I=this._convertToCellCoord(n),E=this._convertToCellCoord(o),L=this._convertToCellCoord(c),k=w;k<=E;k++)for(var U=I;U<=L;U++){var F=this.d*U+k;if((!b||b(this._convertFromCellCoord(k),this._convertFromCellCoord(U),this._convertFromCellCoord(k+1),this._convertFromCellCoord(U+1)))&&d.call(this,i,n,o,c,F,p,_,b))return}},Ws.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},Ws.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},Ws.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,n=Zs+this.cells.length+1+1,o=0,c=0;c<this.cells.length;c++)o+=this.cells[c].length;var d=new Int32Array(n+o+this.keys.length+this.bboxes.length);d[0]=this.extent,d[1]=this.n,d[2]=this.padding;for(var p=n,_=0;_<i.length;_++){var b=i[_];d[Zs+_]=p,d.set(b,p),p+=b.length}return d[Zs+i.length]=p,d.set(this.keys,p),d[Zs+i.length+1]=p+=this.keys.length,d.set(this.bboxes,p),p+=this.bboxes.length,d.buffer};var ka=Y(uE);const ad={};function fn(i,n,o={}){Object.defineProperty(i,"_classRegistryKey",{value:n,writeable:!1}),ad[n]={klass:i,omit:o.omit||[]}}fn(Object,"Object"),ka.serialize=function(i,n){const o=i.toArrayBuffer();return n&&n.add(o),{buffer:o}},ka.deserialize=function(i){return new ka(i.buffer)},Object.defineProperty(ka,"name",{value:"Grid"}),fn(ka,"Grid"),fn(Cr,"Color"),fn(Error,"Error"),fn(po,"Formatted"),fn(Iu,"FormattedSection"),fn(Zn,"AJAXError"),fn(Dn,"ResolvedImage"),fn(od,"StylePropertyFunction"),fn(kp,"StyleExpression",{omit:["_evaluator"]}),fn(rd,"ZoomDependentExpression"),fn(d1,"ZoomConstantExpression"),fn(hi,"CompoundExpression",{omit:["_evaluate"]});for(const i in Uu)ad[Uu[i]._classRegistryKey]||fn(Uu[i],`Expression${i}`);function Rb(i){return i&&typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||i.constructor&&i.constructor.name==="ArrayBuffer")}function Rp(i){return self.ImageBitmap&&i instanceof ImageBitmap}function Sl(i,n){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp)return i;if(Rb(i)||Rp(i))return n&&n.add(i),i;if(ArrayBuffer.isView(i)){const o=i;return n&&n.add(o.buffer),o}if(i instanceof ImageData)return n&&n.add(i.data.buffer),i;if(Array.isArray(i)){const o=[];for(const c of i)o.push(Sl(c,n));return o}if(i instanceof Map){const o={$name:"Map"};for(const[c,d]of i.entries())o[c]=Sl(d);return o}if(typeof i=="object"){const o=i.constructor,c=o._classRegistryKey;if(!c)throw new Error(`can't serialize object of unregistered class ${c}`);const d=o.serialize?o.serialize(i,n):{};if(!o.serialize){for(const p in i)i.hasOwnProperty(p)&&(ad[c].omit.indexOf(p)>=0||(d[p]=Sl(i[p],n)));i instanceof Error&&(d.message=i.message)}if(d.$name)throw new Error("$name property is reserved for worker serialization logic.");return c!=="Object"&&(d.$name=c),d}throw new Error("can't serialize object of type "+typeof i)}function xc(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||Rb(i)||Rp(i)||ArrayBuffer.isView(i)||i instanceof ImageData)return i;if(Array.isArray(i))return i.map(xc);if(typeof i=="object"){const n=i.$name||"Object";if(n==="Map"){const d=new Map;for(const p of Object.keys(i))p!=="$name"&&d.set(p,xc(i[p]));return d}const{klass:o}=ad[n];if(!o)throw new Error(`can't deserialize unregistered class ${n}`);if(o.deserialize)return o.deserialize(i);const c=Object.create(o.prototype);for(const d of Object.keys(i))d!=="$name"&&(c[d]=xc(i[d]));return c}throw new Error("can't deserialize object of type "+typeof i)}const _n={"Latin-1 Supplement":i=>i>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519,"CJK Unified Ideographs Extension B":i=>i>=131072&&i<=173791};function El(i){for(const n of i)if(f1(n.charCodeAt(0)))return!0;return!1}function hE(i){for(const n of i)if(!dE(n.charCodeAt(0)))return!1;return!0}function dE(i){return!(_n.Arabic(i)||_n["Arabic Supplement"](i)||_n["Arabic Extended-A"](i)||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i))}function f1(i){return!(i!==746&&i!==747&&(i<4352||!(_n["Bopomofo Extended"](i)||_n.Bopomofo(i)||_n["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||_n["CJK Compatibility Ideographs"](i)||_n["CJK Compatibility"](i)||_n["CJK Radicals Supplement"](i)||_n["CJK Strokes"](i)||!(!_n["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||_n["CJK Unified Ideographs Extension A"](i)||_n["CJK Unified Ideographs"](i)||_n["Enclosed CJK Letters and Months"](i)||_n["Hangul Compatibility Jamo"](i)||_n["Hangul Jamo Extended-A"](i)||_n["Hangul Jamo Extended-B"](i)||_n["Hangul Jamo"](i)||_n["Hangul Syllables"](i)||_n.Hiragana(i)||_n["Ideographic Description Characters"](i)||_n.Kanbun(i)||_n["Kangxi Radicals"](i)||_n["Katakana Phonetic Extensions"](i)||_n.Katakana(i)&&i!==12540||!(!_n["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!_n["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||_n["Unified Canadian Aboriginal Syllabics"](i)||_n["Unified Canadian Aboriginal Syllabics Extended"](i)||_n["Vertical Forms"](i)||_n["Yijing Hexagram Symbols"](i)||_n["Yi Syllables"](i)||_n["Yi Radicals"](i))))}function Pb(i){return!(f1(i)||function(n){return!!(_n["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||_n["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||_n["Letterlike Symbols"](n)||_n["Number Forms"](n)||_n["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||_n["Control Pictures"](n)&&n!==9251||_n["Optical Character Recognition"](n)||_n["Enclosed Alphanumerics"](n)||_n["Geometric Shapes"](n)||_n["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||_n["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||_n["CJK Symbols and Punctuation"](n)||_n.Katakana(n)||_n["Private Use Area"](n)||_n["CJK Compatibility Forms"](n)||_n["Small Form Variants"](n)||_n["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}(i))}function Ub(i){return i>=1424&&i<=2303||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i)}function Bb(i,n){return!(!n&&Ub(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||_n.Khmer(i))}function p1(i){for(const n of i)if(Ub(n.charCodeAt(0)))return!0;return!1}const m1="deferred",g1="loading",y1="loaded";let _1=null,Go="unavailable",Dl=null;const Fb=function(i){i&&typeof i=="string"&&i.indexOf("NetworkError")>-1&&(Go="error"),_1&&_1(i)};function v1(){x1.fire(new cc("pluginStateChange",{pluginStatus:Go,pluginURL:Dl}))}const x1=new xu,Al=function(){return Go},b1=function(){if(Go!==m1||!Dl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Go=g1,v1(),Dl&&It({url:Dl},i=>{i?Fb(i):(Go=y1,v1())})},hs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Go===y1||hs.applyArabicShaping!=null,isLoading:()=>Go===g1,setState(i){Go=i.pluginStatus,Dl=i.pluginURL},isParsed:()=>hs.applyArabicShaping!=null&&hs.processBidirectionalText!=null&&hs.processStyledBidirectionalText!=null,getPluginURL:()=>Dl};class rr{constructor(n,o){this.zoom=n,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.transition=o.transition,this.pitch=o.pitch,this.brightness=o.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(n){return function(o,c){for(const d of o)if(!Bb(d.charCodeAt(0),c))return!1;return!0}(n,hs.isLoaded())}}class Pp{constructor(n,o,c,d){this.property=n,this.value=o,this.expression=function(p,_,b,w){if(zp(p))return new od(p,_);if(id(p)||Array.isArray(p)&&p.length>0){const I=jp(p,_,b,w);if(I.result==="error")throw new Error(I.value.map(E=>`${E.key}: ${E.message}`).join(", "));return I.value}{let I=p;return typeof p=="string"&&_.type==="color"&&(I=Cr.parse(p)),{kind:"constant",isConfigDependent:!1,evaluate:()=>I}}}(o===void 0?n.specification.default:o,n.specification,c,d)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(n,o,c){return this.property.possiblyEvaluate(this,n,o,c)}}class M1{constructor(n,o,c){this.property=n,this.value=new Pp(n,void 0,o,c)}transitioned(n,o){return new w1(this.property,this.value,o,Te({},n.transition,this.transition),n.now)}untransitioned(){return new w1(this.property,this.value,null,{},0)}}class Oa{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultTransitionablePropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value.value)}setValue(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property,this._scope,this._options)),this._values[n].value=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].value.expression.isConfigDependent}setTransitionOrValue(n,o){o&&(this._options=o);const c=this._properties.properties;if(n)for(const d in n){const p=n[d];if(He(d,"-transition")){const _=d.slice(0,-11);c[_]&&this.setTransition(_,p)}else c[d]&&this.setValue(d,p)}}getTransition(n){return ut(this._values[n].transition)}setTransition(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property)),this._values[n].transition=ut(o)||void 0}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c);const d=this.getTransition(o);d!==void 0&&(n[`${o}-transition`]=d)}return n}transitioned(n,o){const c=new bc(this._properties);for(const d of Object.keys(this._values))c._values[d]=this._values[d].transitioned(n,o._values[d]);return c}untransitioned(){const n=new bc(this._properties);for(const o of Object.keys(this._values))n._values[o]=this._values[o].untransitioned();return n}}class w1{constructor(n,o,c,d,p){const _=d.delay||0,b=d.duration||0;p=p||0,this.property=n,this.value=o,this.begin=p+_,this.end=this.begin+b,n.specification.transition&&(d.delay||d.duration)&&(this.prior=c)}possiblyEvaluate(n,o,c){const d=n.now||0,p=this.value.possiblyEvaluate(n,o,c),_=this.prior;if(_){if(d>this.end)return this.prior=null,p;if(this.value.isDataDriven())return this.prior=null,p;if(d<this.begin)return _.possiblyEvaluate(n,o,c);{const b=(d-this.begin)/(this.end-this.begin);return this.property.interpolate(_.possiblyEvaluate(n,o,c),p,Ee(b))}}return p}}class bc{constructor(n){this._properties=n,this._values=Object.create(n.defaultTransitioningPropertyValues)}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}hasTransition(){for(const n of Object.keys(this._values))if(this._values[n].prior)return!0;return!1}}class fE{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultPropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value)}setValue(n,o){this._values[n]=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].expression.isConfigDependent}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c)}return n}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}}class Bu{constructor(n,o,c){this.property=n,this.value=o,this.parameters=c}isConstant(){return this.value.kind==="constant"}constantOr(n){return this.value.kind==="constant"?this.value.value:n}evaluate(n,o,c,d){return this.property.evaluate(this.value,this.parameters,n,o,c,d)}}class ld{constructor(n){this._properties=n,this._values=Object.create(n.defaultPossiblyEvaluatedValues)}get(n){return this._values[n]}}class Wt{constructor(n){this.specification=n}possiblyEvaluate(n,o){return n.expression.evaluate(o)}interpolate(n,o,c){const d=pp[this.specification.type];return d?d(n,o,c):n}}class In{constructor(n,o){this.specification=n,this.overrides=o}possiblyEvaluate(n,o,c,d){return new Bu(this,n.expression.kind==="constant"||n.expression.kind==="camera"?{kind:"constant",value:n.expression.evaluate(o,null,{},c,d)}:n.expression,o)}interpolate(n,o,c){if(n.value.kind!=="constant"||o.value.kind!=="constant")return n;if(n.value.value===void 0||o.value.value===void 0)return new Bu(this,{kind:"constant",value:void 0},n.parameters);const d=pp[this.specification.type];return d?new Bu(this,{kind:"constant",value:d(n.value.value,o.value.value,c)},n.parameters):n}evaluate(n,o,c,d,p,_){return n.kind==="constant"?n.value:n.evaluate(o,c,d,p,_)}}class Mc{constructor(n){this.specification=n}possiblyEvaluate(n,o,c,d){return!!n.expression.evaluate(o,null,{},c,d)}interpolate(){return!1}}class or{constructor(n){this.properties=n,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const o=new rr(0,{});for(const c in n){const d=n[c];d.specification.overridable&&this.overridableProperties.push(c);const p=this.defaultPropertyValues[c]=new Pp(d,void 0),_=this.defaultTransitionablePropertyValues[c]=new M1(d);this.defaultTransitioningPropertyValues[c]=_.untransitioned(),this.defaultPossiblyEvaluatedValues[c]=p.possiblyEvaluate(o)}}}function cd(i){return i instanceof Number||i instanceof String||i instanceof Boolean?i.valueOf():i}function ud(i){if(Array.isArray(i))return i.map(ud);if(i instanceof Object&&!(i instanceof Number||i instanceof String||i instanceof Boolean)){const n={};for(const o in i)n[o]=ud(i[o]);return n}return cd(i)}fn(In,"DataDrivenProperty"),fn(Wt,"DataConstantProperty"),fn(Mc,"ColorRampProperty");var at=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"expression":{},"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"required":true,"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function I1(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const n of i.slice(1))if(!I1(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function ds(i,n="fill"){if(i==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};I1(i)||(i=hd(i));const o=i;let c=!0;try{c=function(I){if(!Fu(I))return I;let E=ud(I);return T1(E),E=Vb(E),E}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
82
+ hot module replacement.`;console.warn(t)}}function WJ(e){Bf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&ZJ(e.key),Ch.set(e.key,e);const t=e.set==null?new Ff.RecoilValueReadOnly(e.key):new Ff.RecoilState(e.key);return Z5.set(e.key,t),t}class ik extends Error{}function qJ(e){const t=Ch.get(e);if(t==null)throw new ik(`Missing definition for RecoilValue: "${e}""`);return t}function KJ(e){return Ch.get(e)}const Vv=new Map;function XJ(e){var t;if(!vr("recoil_memory_managament_2020"))return;const r=Ch.get(e);if(r!=null&&(t=r.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(r)){var s;Ch.delete(e),(s=rk(e))===null||s===void 0||s(),Vv.delete(e)}}function JJ(e,t){vr("recoil_memory_managament_2020")&&(t===void 0?Vv.delete(e):Vv.set(e,t))}function rk(e){return Vv.get(e)}var vs={nodes:Ch,recoilValues:Z5,registerNode:WJ,getNode:qJ,getNodeMaybe:KJ,deleteNodeConfigIfPossible:XJ,setConfigDeletionHandler:JJ,getConfigDeletionHandler:rk,recoilValuesForKeys:GJ,NodeMissingError:ik,DefaultValue:nk,DEFAULT_VALUE:YJ};function eee(e,t){t()}var tee={enqueueExecution:eee};function nee(e,t){return t={exports:{}},e(t,t.exports),t.exports}var iee=nee(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Fe){return typeof Fe}:function(Fe){return Fe&&typeof Symbol=="function"&&Fe.constructor===Symbol&&Fe!==Symbol.prototype?"symbol":typeof Fe},r={},s=5,u=Math.pow(2,s),f=u-1,m=u/2,a=u/4,v={},S=function(Pe){return function(){return Pe}},D=r.hash=function(Fe){var Pe=typeof Fe>"u"?"undefined":t(Fe);if(Pe==="number")return Fe;Pe!=="string"&&(Fe+="");for(var St=0,Xt=0,Dt=Fe.length;Xt<Dt;++Xt){var kt=Fe.charCodeAt(Xt);St=(St<<5)-St+kt|0}return St},N=function(Pe){return Pe-=Pe>>1&1431655765,Pe=(Pe&858993459)+(Pe>>2&858993459),Pe=Pe+(Pe>>4)&252645135,Pe+=Pe>>8,Pe+=Pe>>16,Pe&127},C=function(Pe,St){return St>>>Pe&f},O=function(Pe){return 1<<Pe},R=function(Pe,St){return N(Pe&St-1)},V=function(Pe,St,Xt,Dt){var kt=Dt;if(!Pe){var Ft=Dt.length;kt=new Array(Ft);for(var Vt=0;Vt<Ft;++Vt)kt[Vt]=Dt[Vt]}return kt[St]=Xt,kt},q=function(Pe,St,Xt){var Dt=Xt.length-1,kt=0,Ft=0,Vt=Xt;if(Pe)kt=Ft=St;else for(Vt=new Array(Dt);kt<St;)Vt[Ft++]=Xt[kt++];for(++kt;kt<=Dt;)Vt[Ft++]=Xt[kt++];return Pe&&(Vt.length=Dt),Vt},H=function(Pe,St,Xt,Dt){var kt=Dt.length;if(Pe){for(var Ft=kt;Ft>=St;)Dt[Ft--]=Dt[Ft];return Dt[St]=Xt,Dt}for(var Vt=0,tn=0,Sn=new Array(kt+1);Vt<St;)Sn[tn++]=Dt[Vt++];for(Sn[St]=Xt;Vt<kt;)Sn[++tn]=Dt[Vt++];return Sn},Y=1,W=2,ee=3,fe=4,pe={__hamt_isEmpty:!0},he=function(Pe){return Pe===pe||Pe&&Pe.__hamt_isEmpty},oe=function(Pe,St,Xt,Dt){return{type:Y,edit:Pe,hash:St,key:Xt,value:Dt,_modify:Ye}},Ve=function(Pe,St,Xt){return{type:W,edit:Pe,hash:St,children:Xt,_modify:qe}},De=function(Pe,St,Xt){return{type:ee,edit:Pe,mask:St,children:Xt,_modify:Ie}},Ae=function(Pe,St,Xt){return{type:fe,edit:Pe,size:St,children:Xt,_modify:Te}},Ge=function(Pe){return Pe===pe||Pe.type===Y||Pe.type===W},it=function(Pe,St,Xt,Dt,kt){for(var Ft=[],Vt=Dt,tn=0,Sn=0;Vt;++Sn)Vt&1&&(Ft[Sn]=kt[tn++]),Vt>>>=1;return Ft[St]=Xt,Ae(Pe,tn+1,Ft)},Ee=function(Pe,St,Xt,Dt){for(var kt=new Array(St-1),Ft=0,Vt=0,tn=0,Sn=Dt.length;tn<Sn;++tn)if(tn!==Xt){var Xn=Dt[tn];Xn&&!he(Xn)&&(kt[Ft++]=Xn,Vt|=1<<tn)}return De(Pe,Vt,kt)},Ze=function Fe(Pe,St,Xt,Dt,kt,Ft){if(Xt===kt)return Ve(Pe,Xt,[Ft,Dt]);var Vt=C(St,Xt),tn=C(St,kt);return De(Pe,O(Vt)|O(tn),Vt===tn?[Fe(Pe,St+s,Xt,Dt,kt,Ft)]:Vt<tn?[Dt,Ft]:[Ft,Dt])},ze=function(Pe,St,Xt,Dt,kt,Ft,Vt,tn){for(var Sn=kt.length,Xn=0;Xn<Sn;++Xn){var ai=kt[Xn];if(Xt(Vt,ai.key)){var Ei=ai.value,Wi=Ft(Ei);return Wi===Ei?kt:Wi===v?(--tn.value,q(Pe,Xn,kt)):V(Pe,Xn,oe(St,Dt,Vt,Wi),kt)}}var qi=Ft();return qi===v?kt:(++tn.value,V(Pe,Sn,oe(St,Dt,Vt,qi),kt))},Le=function(Pe,St){return Pe===St.edit},Ye=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(St(Ft,this.key)){var tn=Dt(this.value);return tn===this.value?this:tn===v?(--Vt.value,pe):Le(Pe,this)?(this.value=tn,this):oe(Pe,kt,Ft,tn)}var Sn=Dt();return Sn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Sn)))},qe=function(Pe,St,Xt,Dt,kt,Ft,Vt){if(kt===this.hash){var tn=Le(Pe,this),Sn=ze(tn,Pe,St,this.hash,this.children,Dt,Ft,Vt);return Sn===this.children?this:Sn.length>1?Ve(Pe,this.hash,Sn):Sn[0]}var Xn=Dt();return Xn===v?this:(++Vt.value,Ze(Pe,Xt,this.hash,this,kt,oe(Pe,kt,Ft,Xn)))},Ie=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.mask,Sn=this.children,Xn=C(Xt,kt),ai=O(Xn),Ei=R(tn,ai),Wi=tn&ai,qi=Wi?Sn[Ei]:pe,Zn=qi._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(qi===Zn)return this;var Ki=Le(Pe,this),Mt=tn,It=void 0;if(Wi&&he(Zn)){if(Mt&=~ai,!Mt)return pe;if(Sn.length<=2&&Ge(Sn[Ei^1]))return Sn[Ei^1];It=q(Ki,Ei,Sn)}else if(!Wi&&!he(Zn)){if(Sn.length>=m)return it(Pe,Xn,Zn,tn,Sn);Mt|=ai,It=H(Ki,Ei,Zn,Sn)}else It=V(Ki,Ei,Zn,Sn);return Ki?(this.mask=Mt,this.children=It,this):De(Pe,Mt,It)},Te=function(Pe,St,Xt,Dt,kt,Ft,Vt){var tn=this.size,Sn=this.children,Xn=C(Xt,kt),ai=Sn[Xn],Ei=(ai||pe)._modify(Pe,St,Xt+s,Dt,kt,Ft,Vt);if(ai===Ei)return this;var Wi=Le(Pe,this),qi=void 0;if(he(ai)&&!he(Ei))++tn,qi=V(Wi,Xn,Ei,Sn);else if(!he(ai)&&he(Ei)){if(--tn,tn<=a)return Ee(Pe,tn,Xn,Sn);qi=V(Wi,Xn,pe,Sn)}else qi=V(Wi,Xn,Ei,Sn);return Wi?(this.size=tn,this.children=qi,this):Ae(Pe,tn,qi)};pe._modify=function(Fe,Pe,St,Xt,Dt,kt,Ft){var Vt=Xt();return Vt===v?pe:(++Ft.value,oe(Fe,Dt,kt,Vt))};function le(Fe,Pe,St,Xt,Dt){this._editable=Fe,this._edit=Pe,this._config=St,this._root=Xt,this._size=Dt}le.prototype.setTree=function(Fe,Pe){return this._editable?(this._root=Fe,this._size=Pe,this):Fe===this._root?this:new le(this._editable,this._edit,this._config,Fe,Pe)};var X=r.tryGetHash=function(Fe,Pe,St,Xt){for(var Dt=Xt._root,kt=0,Ft=Xt._config.keyEq;;)switch(Dt.type){case Y:return Ft(St,Dt.key)?Dt.value:Fe;case W:{if(Pe===Dt.hash)for(var Vt=Dt.children,tn=0,Sn=Vt.length;tn<Sn;++tn){var Xn=Vt[tn];if(Ft(St,Xn.key))return Xn.value}return Fe}case ee:{var ai=C(kt,Pe),Ei=O(ai);if(Dt.mask&Ei){Dt=Dt.children[R(Dt.mask,Ei)],kt+=s;break}return Fe}case fe:{if(Dt=Dt.children[C(kt,Pe)],Dt){kt+=s;break}return Fe}default:return Fe}};le.prototype.tryGetHash=function(Fe,Pe,St){return X(Fe,Pe,St,this)};var ie=r.tryGet=function(Fe,Pe,St){return X(Fe,St._config.hash(Pe),Pe,St)};le.prototype.tryGet=function(Fe,Pe){return ie(Fe,Pe,this)};var Me=r.getHash=function(Fe,Pe,St){return X(void 0,Fe,Pe,St)};le.prototype.getHash=function(Fe,Pe){return Me(Fe,Pe,this)},r.get=function(Fe,Pe){return X(void 0,Pe._config.hash(Fe),Fe,Pe)},le.prototype.get=function(Fe,Pe){return ie(Pe,Fe,this)};var xe=r.has=function(Fe,Pe,St){return X(v,Fe,Pe,St)!==v};le.prototype.hasHash=function(Fe,Pe){return xe(Fe,Pe,this)};var $e=r.has=function(Fe,Pe){return xe(Pe._config.hash(Fe),Fe,Pe)};le.prototype.has=function(Fe){return $e(Fe,this)};var He=function(Pe,St){return Pe===St};r.make=function(Fe){return new le(0,0,{keyEq:Fe&&Fe.keyEq||He,hash:Fe&&Fe.hash||D},pe,0)},r.empty=r.make();var Ue=r.isEmpty=function(Fe){return Fe&&!!he(Fe._root)};le.prototype.isEmpty=function(){return Ue(this)};var Xe=r.modifyHash=function(Fe,Pe,St,Xt){var Dt={value:Xt._size},kt=Xt._root._modify(Xt._editable?Xt._edit:NaN,Xt._config.keyEq,0,Fe,Pe,St,Dt);return Xt.setTree(kt,Dt.value)};le.prototype.modifyHash=function(Fe,Pe,St){return Xe(St,Fe,Pe,this)};var ut=r.modify=function(Fe,Pe,St){return Xe(Fe,St._config.hash(Pe),Pe,St)};le.prototype.modify=function(Fe,Pe){return ut(Pe,Fe,this)};var _t=r.setHash=function(Fe,Pe,St,Xt){return Xe(S(St),Fe,Pe,Xt)};le.prototype.setHash=function(Fe,Pe,St){return _t(Fe,Pe,St,this)};var et=r.set=function(Fe,Pe,St){return _t(St._config.hash(Fe),Fe,Pe,St)};le.prototype.set=function(Fe,Pe){return et(Fe,Pe,this)};var bt=S(v),Ot=r.removeHash=function(Fe,Pe,St){return Xe(bt,Fe,Pe,St)};le.prototype.removeHash=le.prototype.deleteHash=function(Fe,Pe){return Ot(Fe,Pe,this)};var Rt=r.remove=function(Fe,Pe){return Ot(Pe._config.hash(Fe),Fe,Pe)};le.prototype.remove=le.prototype.delete=function(Fe){return Rt(Fe,this)};var dn=r.beginMutation=function(Fe){return new le(Fe._editable+1,Fe._edit+1,Fe._config,Fe._root,Fe._size)};le.prototype.beginMutation=function(){return dn(this)};var Bn=r.endMutation=function(Fe){return Fe._editable=Fe._editable&&Fe._editable-1,Fe};le.prototype.endMutation=function(){return Bn(this)};var Tt=r.mutate=function(Fe,Pe){var St=dn(Pe);return Fe(St),Bn(St)};le.prototype.mutate=function(Fe){return Tt(Fe,this)};var kn=function(Pe){return Pe&&An(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4])},An=function(Pe,St,Xt,Dt,kt){for(;Xt<Pe;){var Ft=St[Xt++];if(Ft&&!he(Ft))return Cn(Ft,Dt,[Pe,St,Xt,Dt,kt])}return kn(kt)},Cn=function(Pe,St,Xt){switch(Pe.type){case Y:return{value:St(Pe),rest:Xt};case W:case fe:case ee:var Dt=Pe.children;return An(Dt.length,Dt,0,St,Xt);default:return kn(Xt)}},$n={done:!0};function ni(Fe){this.v=Fe}ni.prototype.next=function(){if(!this.v)return $n;var Fe=this.v;return this.v=kn(Fe.rest),Fe},ni.prototype[Symbol.iterator]=function(){return this};var st=function(Pe,St){return new ni(Cn(Pe._root,St))},se=function(Pe){return[Pe.key,Pe.value]},ce=r.entries=function(Fe){return st(Fe,se)};le.prototype.entries=le.prototype[Symbol.iterator]=function(){return ce(this)};var Ne=function(Pe){return Pe.key},ht=r.keys=function(Fe){return st(Fe,Ne)};le.prototype.keys=function(){return ht(this)};var vt=function(Pe){return Pe.value},pt=r.values=le.prototype.values=function(Fe){return st(Fe,vt)};le.prototype.values=function(){return pt(this)};var Ct=r.fold=function(Fe,Pe,St){var Xt=St._root;if(Xt.type===Y)return Fe(Pe,Xt.value,Xt.key);for(var Dt=[Xt.children],kt=void 0;kt=Dt.pop();)for(var Ft=0,Vt=kt.length;Ft<Vt;){var tn=kt[Ft++];tn&&tn.type&&(tn.type===Y?Pe=Fe(Pe,tn.value,tn.key):Dt.push(tn.children))}return Pe};le.prototype.fold=function(Fe,Pe){return Ct(Fe,Pe,this)};var mt=r.forEach=function(Fe,Pe){return Ct(function(St,Xt,Dt){return Fe(Xt,Dt,Pe)},null,Pe)};le.prototype.forEach=function(Fe){return mt(Fe,this)};var an=r.count=function(Fe){return Fe._size};le.prototype.count=function(){return an(this)},Object.defineProperty(le.prototype,"size",{get:le.prototype.count}),e.exports?e.exports=r:(void 0).hamt=r});class ree{constructor(t){Ai(this,"_map",void 0),this._map=new Map(t==null?void 0:t.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(t){return this._map.get(t)}has(t){return this._map.has(t)}set(t,r){return this._map.set(t,r),this}delete(t){return this._map.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._map)}}class W5{constructor(t){if(Ai(this,"_hamt",iee.empty.beginMutation()),t instanceof W5){const r=t._hamt.endMutation();t._hamt=r.beginMutation(),this._hamt=r.beginMutation()}else if(t)for(const[r,s]of t.entries())this._hamt.set(r,s)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(t){return this._hamt.get(t)}has(t){return this._hamt.has(t)}set(t,r){return this._hamt.set(t,r),this}delete(t){return this._hamt.delete(t),this}clone(){return q5(this)}toMap(){return new Map(this._hamt)}}function q5(e){return vr("recoil_hamt_2020")?new W5(e):new ree(e)}var oee={persistentMap:q5},see=oee.persistentMap,aee=Object.freeze({__proto__:null,persistentMap:see});function lee(e,...t){const r=new Set;e:for(const s of e){for(const u of t)if(u.has(s))continue e;r.add(s)}return r}var zg=lee;function cee(e,t){const r=new Map;return e.forEach((s,u)=>{r.set(u,t(s,u))}),r}var $v=cee;function uee(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function hee(e){return{nodeDeps:$v(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:$v(e.nodeToNodeSubscriptions,t=>new Set(t))}}function K5(e,t,r,s){const{nodeDeps:u,nodeToNodeSubscriptions:f}=r,m=u.get(e);if(m&&s&&m!==s.nodeDeps.get(e))return;u.set(e,t);const a=m==null?t:zg(t,m);for(const v of a)f.has(v)||f.set(v,new Set),zr(f.get(v)).add(e);if(m){const v=zg(m,t);for(const S of v){if(!f.has(S))return;const D=zr(f.get(S));D.delete(e),D.size===0&&f.delete(S)}}}function dee(e,t,r,s){var u,f,m,a;const v=r.getState();s===v.currentTree.version||s===((u=v.nextTree)===null||u===void 0?void 0:u.version)||((f=v.previousTree)===null||f===void 0||f.version);const S=r.getGraph(s);if(K5(e,t,S),s===((m=v.previousTree)===null||m===void 0?void 0:m.version)){const N=r.getGraph(v.currentTree.version);K5(e,t,N,S)}if(s===((a=v.previousTree)===null||a===void 0?void 0:a.version)||s===v.currentTree.version){var D;const N=(D=v.nextTree)===null||D===void 0?void 0:D.version;if(N!==void 0){const C=r.getGraph(N);K5(e,t,C,S)}}}var kg={cloneGraph:hee,graph:uee,saveDepsToStore:dee};let fee=0;const pee=()=>fee++;let mee=0;const gee=()=>mee++;let yee=0;var Qv={getNextTreeStateVersion:pee,getNextStoreID:gee,getNextComponentID:()=>yee++};const{persistentMap:ok}=aee,{graph:_ee}=kg,{getNextTreeStateVersion:sk}=Qv;function ak(){const e=sk();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:ok(),nonvalidatedAtoms:ok()}}function vee(){const e=ak();return{currentTree:e,nextTree:null,previousTree:null,commitDepth:0,knownAtoms:new Set,knownSelectors:new Set,transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(e.version,_ee()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var lk={makeEmptyTreeState:ak,makeEmptyStoreState:vee,getNextTreeStateVersion:sk};class ck{}function xee(){return new ck}var Hv={RetentionZone:ck,retentionZone:xee};function bee(e,t){const r=new Set(e);return r.add(t),r}function Mee(e,t){const r=new Set(e);return r.delete(t),r}function wee(e,t,r){const s=new Map(e);return s.set(t,r),s}function Iee(e,t,r){const s=new Map(e);return s.set(t,r(s.get(t))),s}function Tee(e,t){const r=new Map(e);return r.delete(t),r}function See(e,t){const r=new Map(e);return t.forEach(s=>r.delete(s)),r}var uk={setByAddingToSet:bee,setByDeletingFromSet:Mee,mapBySettingInMap:wee,mapByUpdatingInMap:Iee,mapByDeletingFromMap:Tee,mapByDeletingMultipleFromMap:See};function*Eee(e,t){let r=0;for(const s of e)t(s,r++)&&(yield s)}var X5=Eee;function Dee(e,t){return new Proxy(e,{get:(s,u)=>(!(u in s)&&u in t&&(s[u]=t[u]()),s[u]),ownKeys:s=>Object.keys(s)})}var hk=Dee;const{getNode:Og,getNodeMaybe:Aee,recoilValuesForKeys:dk}=vs,{RetentionZone:fk}=Hv,{setByAddingToSet:Cee}=uk,Nee=Object.freeze(new Set);class Lee extends Error{}function zee(e,t,r){if(!vr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:s}=e.getState().retention;function u(f){let m=s.get(f);m||s.set(f,m=new Set),m.add(t)}if(r instanceof fk)u(r);else if(Array.isArray(r))for(const f of r)u(f);return()=>{if(!vr("recoil_memory_managament_2020"))return;const{retention:f}=e.getState();function m(a){const v=f.nodesRetainedByZone.get(a);v==null||v.delete(t),v&&v.size===0&&f.nodesRetainedByZone.delete(a)}if(r instanceof fk)m(r);else if(Array.isArray(r))for(const a of r)m(a)}}function J5(e,t,r,s){const u=e.getState();if(u.nodeCleanupFunctions.has(r))return;const f=Og(r),m=zee(e,r,f.retainedBy),a=f.init(e,t,s);u.nodeCleanupFunctions.set(r,()=>{a(),m()})}function kee(e,t,r){J5(e,e.getState().currentTree,t,r)}function Oee(e,t){var r;const s=e.getState();(r=s.nodeCleanupFunctions.get(t))===null||r===void 0||r(),s.nodeCleanupFunctions.delete(t)}function jee(e,t,r){return J5(e,t,r,"get"),Og(r).get(e,t)}function pk(e,t,r){return Og(r).peek(e,t)}function Ree(e,t,r){var s;const u=Aee(t);return u==null||(s=u.invalidate)===null||s===void 0||s.call(u,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,r),dirtyAtoms:Cee(e.dirtyAtoms,t)}}function Pee(e,t,r,s){const u=Og(r);if(u.set==null)throw new Lee(`Attempt to set read-only RecoilValue: ${r}`);const f=u.set;return J5(e,t,r,"set"),f(e,t,s)}function Uee(e,t,r){const s=e.getState(),u=e.getGraph(t.version),f=Og(r).nodeType;return hk({type:f},{loadable:()=>pk(e,t,r),isActive:()=>s.knownAtoms.has(r)||s.knownSelectors.has(r),isSet:()=>f==="selector"?!1:t.atomValues.has(r),isModified:()=>t.dirtyAtoms.has(r),deps:()=>{var m;return dk((m=u.nodeDeps.get(r))!==null&&m!==void 0?m:[])},subscribers:()=>{var m,a;return{nodes:dk(X5(mk(e,t,new Set([r])),v=>v!==r)),components:Fv((m=(a=s.nodeToComponentSubscriptions.get(r))===null||a===void 0?void 0:a.values())!==null&&m!==void 0?m:[],([v])=>({name:v}))}}})}function mk(e,t,r){const s=new Set,u=Array.from(r),f=e.getGraph(t.version);for(let a=u.pop();a;a=u.pop()){var m;s.add(a);const v=(m=f.nodeToNodeSubscriptions.get(a))!==null&&m!==void 0?m:Nee;for(const S of v)s.has(S)||u.push(S)}return s}var du={getNodeLoadable:jee,peekNodeLoadable:pk,setNodeValue:Pee,initializeNode:kee,cleanUpNode:Oee,setUnvalidatedAtomValue_DEPRECATED:Ree,peekNodeInfo:Uee,getDownstreamNodes:mk};let gk=null;function Bee(e){gk=e}function Fee(){var e;(e=gk)===null||e===void 0||e()}var yk={setInvalidateMemoizedSnapshot:Bee,invalidateMemoizedSnapshot:Fee};const{getDownstreamNodes:Vee,getNodeLoadable:_k,setNodeValue:$ee}=du,{getNextComponentID:Qee}=Qv,{getNode:Hee,getNodeMaybe:vk}=vs,{DefaultValue:eI}=vs,{reactMode:Yee}=Lg,{AbstractRecoilValue:Gee,RecoilState:Zee,RecoilValueReadOnly:Wee,isRecoilValue:qee}=Ff,{invalidateMemoizedSnapshot:Kee}=yk;function Xee(e,{key:t},r=e.getState().currentTree){var s,u;const f=e.getState();r.version===f.currentTree.version||r.version===((s=f.nextTree)===null||s===void 0?void 0:s.version)||(r.version,(u=f.previousTree)===null||u===void 0||u.version);const m=_k(e,r,t);return m.state==="loading"&&m.contents.catch(()=>{}),m}function Jee(e,t){const r=e.clone();return t.forEach((s,u)=>{s.state==="hasValue"&&s.contents instanceof eI?r.delete(u):r.set(u,s)}),r}function ete(e,t,{key:r},s){if(typeof s=="function"){const u=_k(e,t,r);if(u.state==="loading"){const f=`Tried to set atom or selector "${r}" using an updater function while the current state is pending, this is not currently supported.`;throw Li(f)}else if(u.state==="hasError")throw u.contents;return s(u.contents)}else return s}function tte(e,t,r){if(r.type==="set"){const{recoilValue:u,valueOrUpdater:f}=r,m=ete(e,t,u,f),a=$ee(e,t,u.key,m);for(const[v,S]of a.entries())tI(t,v,S)}else if(r.type==="setLoadable"){const{recoilValue:{key:u},loadable:f}=r;tI(t,u,f)}else if(r.type==="markModified"){const{recoilValue:{key:u}}=r;t.dirtyAtoms.add(u)}else if(r.type==="setUnvalidated"){var s;const{recoilValue:{key:u},unvalidatedValue:f}=r,m=vk(u);m==null||(s=m.invalidate)===null||s===void 0||s.call(m,t),t.atomValues.delete(u),t.nonvalidatedAtoms.set(u,f),t.dirtyAtoms.add(u)}else $5(`Unknown action ${r.type}`)}function tI(e,t,r){r.state==="hasValue"&&r.contents instanceof eI?e.atomValues.delete(t):e.atomValues.set(t,r),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function xk(e,t){e.replaceState(r=>{const s=bk(r);for(const u of t)tte(e,s,u);return Mk(e,s),Kee(),s})}function Yv(e,t){if(jg.length){const r=jg[jg.length-1];let s=r.get(e);s||r.set(e,s=[]),s.push(t)}else xk(e,[t])}const jg=[];function nte(){const e=new Map;return jg.push(e),()=>{for(const[t,r]of e)xk(t,r);jg.pop()}}function bk(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function Mk(e,t){const r=Vee(e,t,t.dirtyAtoms);for(const f of r){var s,u;(s=vk(f))===null||s===void 0||(u=s.invalidate)===null||u===void 0||u.call(s,t)}}function wk(e,t,r){Yv(e,{type:"set",recoilValue:t,valueOrUpdater:r})}function ite(e,t,r){if(r instanceof eI)return wk(e,t,r);Yv(e,{type:"setLoadable",recoilValue:t,loadable:r})}function rte(e,t){Yv(e,{type:"markModified",recoilValue:t})}function ote(e,t,r){Yv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:r})}function ste(e,{key:t},r,s=null){const u=Qee(),f=e.getState();f.nodeToComponentSubscriptions.has(t)||f.nodeToComponentSubscriptions.set(t,new Map),zr(f.nodeToComponentSubscriptions.get(t)).set(u,[s??"<not captured>",r]);const m=Yee();if(m.early&&(m.mode==="LEGACY"||m.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&r(a)}return{release:()=>{const a=e.getState(),v=a.nodeToComponentSubscriptions.get(t);v===void 0||!v.has(u)||(v.delete(u),v.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function ate(e,t){var r;const{currentTree:s}=e.getState(),u=Hee(t.key);(r=u.clearCache)===null||r===void 0||r.call(u,e,s)}var al={RecoilValueReadOnly:Wee,AbstractRecoilValue:Gee,RecoilState:Zee,getRecoilValueAsLoadable:Xee,setRecoilValue:wk,setRecoilValueLoadable:ite,markRecoilValueModified:rte,setUnvalidatedRecoilValue:ote,subscribeToRecoilValue:ste,isRecoilValue:qee,applyAtomValueWrites:Jee,batchStart:nte,writeLoadableToTreeState:tI,invalidateDownstreams:Mk,copyTreeState:bk,refreshRecoilValue:ate};function lte(e,t,r){const s=e.entries();let u=s.next();for(;!u.done;){const f=u.value;if(t.call(r,f[1],f[0],e))return!0;u=s.next()}return!1}var cte=lte;const{cleanUpNode:ute}=du,{deleteNodeConfigIfPossible:hte,getNode:Ik}=vs,{RetentionZone:Tk}=Hv,dte=12e4,Sk=new Set;function Ek(e,t){const r=e.getState(),s=r.currentTree;if(r.nextTree)return;const u=new Set;for(const m of t)if(m instanceof Tk)for(const a of gte(r,m))u.add(a);else u.add(m);const f=fte(e,u);for(const m of f)mte(e,s,m)}function fte(e,t){const r=e.getState(),s=r.currentTree,u=e.getGraph(s.version),f=new Set,m=new Set;return a(t),f;function a(v){const S=new Set,D=pte(e,s,v,f,m);for(const R of D){var N;if(Ik(R).retainedBy==="recoilRoot"){m.add(R);continue}if(((N=r.retention.referenceCounts.get(R))!==null&&N!==void 0?N:0)>0){m.add(R);continue}if(Dk(R).some(q=>r.retention.referenceCounts.get(q))){m.add(R);continue}const V=u.nodeToNodeSubscriptions.get(R);if(V&&cte(V,q=>m.has(q))){m.add(R);continue}f.add(R),S.add(R)}const C=new Set;for(const R of S)for(const V of(O=u.nodeDeps.get(R))!==null&&O!==void 0?O:Sk){var O;f.has(V)||C.add(V)}C.size&&a(C)}}function pte(e,t,r,s,u){const f=e.getGraph(t.version),m=[],a=new Set;for(;r.size>0;)v(zr(r.values().next().value));return m;function v(S){if(s.has(S)||u.has(S)){r.delete(S);return}if(a.has(S))return;const D=f.nodeToNodeSubscriptions.get(S);if(D)for(const N of D)v(N);a.add(S),r.delete(S),m.push(S)}}function mte(e,t,r){if(!vr("recoil_memory_managament_2020"))return;ute(e,r);const s=e.getState();s.knownAtoms.delete(r),s.knownSelectors.delete(r),s.nodeTransactionSubscriptions.delete(r),s.retention.referenceCounts.delete(r);const u=Dk(r);for(const v of u){var f;(f=s.retention.nodesRetainedByZone.get(v))===null||f===void 0||f.delete(r)}t.atomValues.delete(r),t.dirtyAtoms.delete(r),t.nonvalidatedAtoms.delete(r);const m=s.graphsByVersion.get(t.version);if(m){const v=m.nodeDeps.get(r);if(v!==void 0){m.nodeDeps.delete(r);for(const S of v){var a;(a=m.nodeToNodeSubscriptions.get(S))===null||a===void 0||a.delete(r)}}m.nodeToNodeSubscriptions.delete(r)}hte(r)}function gte(e,t){var r;return(r=e.retention.nodesRetainedByZone.get(t))!==null&&r!==void 0?r:Sk}function Dk(e){const t=Ik(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof Tk?[t]:t}function yte(e,t){const r=e.getState();r.nextTree?r.retention.retainablesToCheckForRelease.add(t):Ek(e,new Set([t]))}function _te(e,t,r){var s;if(!vr("recoil_memory_managament_2020"))return;const u=e.getState().retention.referenceCounts,f=((s=u.get(t))!==null&&s!==void 0?s:0)+r;f===0?Ak(e,t):u.set(t,f)}function Ak(e,t){if(!vr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),yte(e,t)}function vte(e){if(!vr("recoil_memory_managament_2020"))return;const t=e.getState();Ek(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function xte(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:dte,updateRetainCount:_te,updateRetainCountToZero:Ak,releaseScheduledRetainablesNow:vte,retainedByOptionWithDefault:xte};const{unstable_batchedUpdates:bte}=og;var Mte={unstable_batchedUpdates:bte};const{unstable_batchedUpdates:wte}=Mte;var Ite={unstable_batchedUpdates:wte};const{batchStart:Tte}=al,{unstable_batchedUpdates:Ste}=Ite;let nI=Ste||(e=>e());var Gv={getBatcher:()=>nI,setBatcher:e=>{nI=e},batchUpdates:e=>{nI(()=>{let t=()=>{};try{t=Tte(),e()}finally{t()}})}};function*Ete(e){for(const t of e)for(const r of t)yield r}var Ck=Ete;const Nk=typeof Window>"u"||typeof window>"u",Dte=e=>!Nk&&(e===window||e instanceof Window),Ate=typeof navigator<"u"&&navigator.product==="ReactNative";var Zv={isSSR:Nk,isReactNative:Ate,isWindow:Dte};function Cte(e,t){let r;return(...s)=>{r||(r={});const u=t(...s);return Object.hasOwnProperty.call(r,u)||(r[u]=e(...s)),r[u]}}function Nte(e,t){let r,s;return(...u)=>{const f=t(...u);return r===f||(r=f,s=e(...u)),s}}function Lte(e,t){let r,s;return[(...m)=>{const a=t(...m);return r===a||(r=a,s=e(...m)),s},()=>{r=null}]}var zte={memoizeWithArgsHash:Cte,memoizeOneWithArgsHash:Nte,memoizeOneWithArgsHashAndInvalidation:Lte};const{batchUpdates:iI}=Gv,{initializeNode:kte,peekNodeInfo:Ote}=du,{graph:jte}=kg,{getNextStoreID:Rte}=Qv,{DEFAULT_VALUE:Pte,recoilValues:Lk,recoilValuesForKeys:zk}=vs,{AbstractRecoilValue:Ute,getRecoilValueAsLoadable:Bte,setRecoilValue:kk,setUnvalidatedRecoilValue:Fte}=al,{updateRetainCount:Wv}=Nh,{setInvalidateMemoizedSnapshot:Vte}=yk,{getNextTreeStateVersion:$te,makeEmptyStoreState:Qte}=lk,{isSSR:Hte}=Zv,{memoizeOneWithArgsHashAndInvalidation:Yte}=zte;class qv{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_refCount",1),Ai(this,"getLoadable",s=>(this.checkRefCount_INTERNAL(),Bte(this._store,s))),Ai(this,"getPromise",s=>(this.checkRefCount_INTERNAL(),this.getLoadable(s).toPromise())),Ai(this,"getNodes_UNSTABLE",s=>{if(this.checkRefCount_INTERNAL(),(s==null?void 0:s.isModified)===!0){if((s==null?void 0:s.isInitialized)===!1)return[];const m=this._store.getState().currentTree;return zk(m.dirtyAtoms)}const u=this._store.getState().knownAtoms,f=this._store.getState().knownSelectors;return(s==null?void 0:s.isInitialized)==null?Lk.values():s.isInitialized===!0?zk(Ck([u,f])):X5(Lk.values(),({key:m})=>!u.has(m)&&!f.has(m))}),Ai(this,"getInfo_UNSTABLE",({key:s})=>(this.checkRefCount_INTERNAL(),Ote(this._store,this._store.getState().currentTree,s))),Ai(this,"map",s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return s(u),u}),Ai(this,"asyncMap",async s=>{this.checkRefCount_INTERNAL();const u=new rI(this,iI);return u.retain(),await s(u),u.autoRelease_INTERNAL(),u}),this._store={storeID:Rte(),parentStoreID:r,getState:()=>t,replaceState:s=>{t.currentTree=s(t.currentTree)},getGraph:s=>{const u=t.graphsByVersion;if(u.has(s))return zr(u.get(s));const f=jte();return u.set(s,f),f},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Li("Cannot subscribe to Snapshots")}};for(const s of this._store.getState().knownAtoms)kte(this._store,s,"get"),Wv(this._store,s,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){Hte||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(t=>t()),this._store.getState().nodeCleanupFunctions.clear(),!vr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){vr("recoil_memory_managament_2020")&&this._refCount<=0}getStore_INTERNAL(){return this.checkRefCount_INTERNAL(),this._store}getID(){return this.checkRefCount_INTERNAL(),this._store.getState().currentTree.stateID}getStoreID(){return this.checkRefCount_INTERNAL(),this._store.storeID}}function Ok(e,t,r=!1){const s=e.getState(),u=r?$te():t.version;return{currentTree:{version:r?u:t.version,stateID:r?u:t.stateID,transactionMetadata:{...t.transactionMetadata},dirtyAtoms:new Set(t.dirtyAtoms),atomValues:t.atomValues.clone(),nonvalidatedAtoms:t.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(s.knownAtoms),knownSelectors:new Set(s.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(u,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Fv(s.nodeCleanupFunctions.entries(),([f])=>[f,()=>{}]))}}function Gte(e){const t=new qv(Qte());return e!=null?t.map(e):t}const[jk,Rk]=Yte((e,t)=>{var r;const s=e.getState(),u=t==="latest"?(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree:zr(s.previousTree);return new qv(Ok(e,u),e.storeID)},(e,t)=>{var r,s;return String(t)+String(e.storeID)+String((r=e.getState().nextTree)===null||r===void 0?void 0:r.version)+String(e.getState().currentTree.version)+String((s=e.getState().previousTree)===null||s===void 0?void 0:s.version)});Vte(Rk);function Zte(e,t="latest"){const r=jk(e,t);return r.isRetained()?r:(Rk(),jk(e,t))}class rI extends qv{constructor(t,r){super(Ok(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),Ai(this,"_batch",void 0),Ai(this,"set",(s,u)=>{this.checkRefCount_INTERNAL();const f=this.getStore_INTERNAL();this._batch(()=>{Wv(f,s.key,1),kk(this.getStore_INTERNAL(),s,u)})}),Ai(this,"reset",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();this._batch(()=>{Wv(u,s.key,1),kk(this.getStore_INTERNAL(),s,Pte)})}),Ai(this,"setUnvalidatedAtomValues_DEPRECATED",s=>{this.checkRefCount_INTERNAL();const u=this.getStore_INTERNAL();iI(()=>{for(const[f,m]of s.entries())Wv(u,f,1),Fte(u,new Ute(f),m)})}),this._batch=r}}var Kv={Snapshot:qv,MutableSnapshot:rI,freshSnapshot:Gte,cloneSnapshot:Zte},Wte=Kv.Snapshot,qte=Kv.MutableSnapshot,Kte=Kv.freshSnapshot,Xte=Kv.cloneSnapshot,Xv=Object.freeze({__proto__:null,Snapshot:Wte,MutableSnapshot:qte,freshSnapshot:Kte,cloneSnapshot:Xte});function Jte(...e){const t=new Set;for(const r of e)for(const s of r)t.add(s);return t}var ene=Jte;const{useRef:tne}=Vi;function nne(e){const t=tne(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var Pk=nne;const{getNextTreeStateVersion:ine,makeEmptyStoreState:Uk}=lk,{cleanUpNode:rne,getDownstreamNodes:one,initializeNode:sne,setNodeValue:ane,setUnvalidatedAtomValue_DEPRECATED:lne}=du,{graph:cne}=kg,{cloneGraph:une}=kg,{getNextStoreID:Bk}=Qv,{createMutableSource:oI,reactMode:Fk}=Lg,{applyAtomValueWrites:hne}=al,{releaseScheduledRetainablesNow:Vk}=Nh,{freshSnapshot:dne}=Xv,{useCallback:fne,useContext:$k,useEffect:sI,useMemo:pne,useRef:mne,useState:gne}=Vi;function Rg(){throw Li("This component must be used inside a <RecoilRoot> component.")}const Qk=Object.freeze({storeID:Bk(),getState:Rg,replaceState:Rg,getGraph:Rg,subscribeToTransactions:Rg,addTransactionMetadata:Rg});let aI=!1;function Hk(e){if(aI)throw Li("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const t=e.getState();if(t.nextTree===null){vr("recoil_memory_managament_2020")&&vr("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&Vk(e);const r=t.currentTree.version,s=ine();t.nextTree={...t.currentTree,version:s,stateID:s,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(s,une(zr(t.graphsByVersion.get(r))))}}const Yk=Vi.createContext({current:Qk}),Jv=()=>$k(Yk),Gk=Vi.createContext(null);function yne(){return $k(Gk)}function lI(e,t,r){const s=one(e,r,r.dirtyAtoms);for(const u of s){const f=t.nodeToComponentSubscriptions.get(u);if(f)for(const[m,[a,v]]of f)v(r)}}function Zk(e){const t=e.getState(),r=t.currentTree,s=r.dirtyAtoms;if(s.size){for(const[u,f]of t.nodeTransactionSubscriptions)if(s.has(u))for(const[m,a]of f)a(e);for(const[u,f]of t.transactionSubscriptions)f(e);(!Fk().early||t.suspendedComponentResolvers.size>0)&&(lI(e,t,r),t.suspendedComponentResolvers.forEach(u=>u()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(u=>u(r)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function _ne(e){const t=e.getState();t.commitDepth++;try{const{nextTree:r}=t;if(r==null)return;t.previousTree=t.currentTree,t.currentTree=r,t.nextTree=null,Zk(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):$5("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,vr("recoil_memory_managament_2020")&&r==null&&Vk(e)}finally{t.commitDepth--}}function vne({setNotifyBatcherOfChange:e}){const t=Jv(),[,r]=gne([]);return e(()=>r({})),sI(()=>(e(()=>r({})),()=>{e(()=>{})}),[e]),sI(()=>{tee.enqueueExecution("Batcher",()=>{_ne(t.current)})}),null}function xne(e,t){const r=Uk();return t({set:(s,u)=>{const f=r.currentTree,m=ane(e,f,s.key,u),a=new Set(m.keys()),v=f.nonvalidatedAtoms.clone();for(const S of a)v.delete(S);r.currentTree={...f,dirtyAtoms:ene(f.dirtyAtoms,a),atomValues:hne(f.atomValues,m),nonvalidatedAtoms:v}},setUnvalidatedAtomValues:s=>{s.forEach((u,f)=>{r.currentTree=lne(r.currentTree,f,u)})}}),r}function bne(e){const t=dne(e),r=t.getStore_INTERNAL().getState();return t.retain(),r.nodeCleanupFunctions.forEach(s=>s()),r.nodeCleanupFunctions.clear(),r}let Wk=0;function Mne({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:r,children:s}){let u;const f=O=>{const R=u.current.graphsByVersion;if(R.has(O))return zr(R.get(O));const V=cne();return R.set(O,V),V},m=(O,R)=>{if(R==null){const{transactionSubscriptions:V}=N.current.getState(),q=Wk++;return V.set(q,O),{release:()=>{V.delete(q)}}}else{const{nodeTransactionSubscriptions:V}=N.current.getState();V.has(R)||V.set(R,new Map);const q=Wk++;return zr(V.get(R)).set(q,O),{release:()=>{const H=V.get(R);H&&(H.delete(q),H.size===0&&V.delete(R))}}}},a=O=>{Hk(N.current);for(const R of Object.keys(O))zr(N.current.getState().nextTree).transactionMetadata[R]=O[R]},v=O=>{Hk(N.current);const R=zr(u.current.nextTree);let V;try{aI=!0,V=O(R)}finally{aI=!1}V!==R&&(u.current.nextTree=V,Fk().early&&lI(N.current,u.current,V),zr(S.current)())},S=mne(null),D=fne(O=>{S.current=O},[S]),N=Pk(()=>r??{storeID:Bk(),getState:()=>u.current,replaceState:v,getGraph:f,subscribeToTransactions:m,addTransactionMetadata:a});r!=null&&(N.current=r),u=Pk(()=>e!=null?xne(N.current,e):t!=null?bne(t):Uk());const C=pne(()=>oI==null?void 0:oI(u,()=>u.current.currentTree.version),[u]);return sI(()=>{const O=N.current;for(const R of new Set(O.getState().knownAtoms))sne(O,R,"get");return()=>{for(const R of O.getState().knownAtoms)rne(O,R)}},[N]),Vi.createElement(Yk.Provider,{value:N},Vi.createElement(Gk.Provider,{value:C},Vi.createElement(vne,{setNotifyBatcherOfChange:D}),s))}function wne(e){const{override:t,...r}=e,s=Jv();return t===!1&&s.current!==Qk?e.children:Vi.createElement(Mne,r)}function Ine(){return Jv().current.storeID}var nc={RecoilRoot:wne,useStoreRef:Jv,useRecoilMutableSource:yne,useRecoilStoreID:Ine,notifyComponents_FOR_TESTING:lI,sendEndOfBatchNotifications_FOR_TESTING:Zk};function Tne(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let r=0,s=e.length;r<s;r++)if(e[r]!==t[r])return!1;return!0}var Sne=Tne;const{useEffect:Ene,useRef:Dne}=Vi;function Ane(e){const t=Dne();return Ene(()=>{t.current=e}),t.current}var qk=Ane;const{useStoreRef:Cne}=nc,{SUSPENSE_TIMEOUT_MS:Nne}=Nh,{updateRetainCount:Pg}=Nh,{RetentionZone:Lne}=Hv,{useEffect:zne,useRef:kne}=Vi,{isSSR:Kk}=Zv;function One(e){if(vr("recoil_memory_managament_2020"))return jne(e)}function jne(e){const r=(Array.isArray(e)?e:[e]).map(m=>m instanceof Lne?m:m.key),s=Cne();zne(()=>{if(!vr("recoil_memory_managament_2020"))return;const m=s.current;if(u.current&&!Kk)window.clearTimeout(u.current),u.current=null;else for(const a of r)Pg(m,a,1);return()=>{for(const a of r)Pg(m,a,-1)}},[s,...r]);const u=kne(),f=qk(r);if(!Kk&&(f===void 0||!Sne(f,r))){const m=s.current;for(const a of r)Pg(m,a,1);if(f)for(const a of f)Pg(m,a,-1);u.current&&window.clearTimeout(u.current),u.current=window.setTimeout(()=>{u.current=null;for(const a of r)Pg(m,a,-1)},Nne)}}var cI=One;function Rne(){return"<component name not available>"}var Ug=Rne;const{batchUpdates:Pne}=Gv,{DEFAULT_VALUE:Xk}=vs,{currentRendererSupportsUseSyncExternalStore:Une,reactMode:Vf,useMutableSource:Bne,useSyncExternalStore:Fne}=Lg,{useRecoilMutableSource:Vne,useStoreRef:ll}=nc,{AbstractRecoilValue:uI,getRecoilValueAsLoadable:Bg,setRecoilValue:ex,setUnvalidatedRecoilValue:$ne,subscribeToRecoilValue:$f}=al,{useCallback:xs,useEffect:Qf,useMemo:Jk,useRef:Fg,useState:hI}=Vi,{setByAddingToSet:Qne}=uk,{isSSR:Hne}=Zv;function dI(e,t,r){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(u=>{const f=r.current.getState().suspendedComponentResolvers;f.add(u),Hne&&Dr(e.contents)&&e.contents.finally(()=>{f.delete(u)})}):e.state==="hasError"?e.contents:Li(`Invalid value of loadable atom "${t.key}"`)}function Yne(){const e=Ug(),t=ll(),[,r]=hI([]),s=Fg(new Set);s.current=new Set;const u=Fg(new Set),f=Fg(new Map),m=xs(v=>{const S=f.current.get(v);S&&(S.release(),f.current.delete(v))},[f]),a=xs((v,S)=>{f.current.has(S)&&r([])},[]);return Qf(()=>{const v=t.current;zg(s.current,u.current).forEach(S=>{if(f.current.has(S))return;const D=$f(v,new uI(S),C=>a(C,S),e);f.current.set(S,D),v.getState().nextTree?v.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(v.getState(),S)}):a(v.getState(),S)}),zg(u.current,s.current).forEach(S=>{m(S)}),u.current=s.current}),Qf(()=>{const v=f.current;return zg(s.current,new Set(v.keys())).forEach(S=>{const D=$f(t.current,new uI(S),N=>a(N,S),e);v.set(S,D)}),()=>v.forEach((S,D)=>m(D))},[e,t,m,a]),Jk(()=>{function v(R){return V=>{ex(t.current,R,V)}}function S(R){return()=>ex(t.current,R,Xk)}function D(R){var V;s.current.has(R.key)||(s.current=Qne(s.current,R.key));const q=t.current.getState();return Bg(t.current,R,Vf().early&&(V=q.nextTree)!==null&&V!==void 0?V:q.currentTree)}function N(R){const V=D(R);return dI(V,R,t)}function C(R){return[N(R),v(R)]}function O(R){return[D(R),v(R)]}return{getRecoilValue:N,getRecoilValueLoadable:D,getRecoilState:C,getRecoilStateLoadable:O,getSetRecoilState:v,getResetRecoilState:S}},[s,t])}const Gne={current:0};function Zne(e){const t=ll(),r=Ug(),s=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return{loadable:Bg(v,e,D),key:e.key}},[t,e]),u=xs(a=>{let v;return()=>{var S,D;const N=a();return(S=v)!==null&&S!==void 0&&S.loadable.is(N.loadable)&&((D=v)===null||D===void 0?void 0:D.key)===N.key?v:(v=N,N)}},[]),f=Jk(()=>u(s),[s,u]),m=xs(a=>{const v=t.current;return $f(v,e,a,r).release},[t,e,r]);return Fne(m,f,f).loadable}function Wne(e){const t=ll(),r=xs(()=>{var S;const D=t.current,N=D.getState(),C=Vf().early&&(S=N.nextTree)!==null&&S!==void 0?S:N.currentTree;return Bg(D,e,C)},[t,e]),s=xs(()=>r(),[r]),u=Ug(),f=xs((S,D)=>{const N=t.current;return $f(N,e,()=>{if(!vr("recoil_suppress_rerender_in_callback"))return D();const O=r();v.current.is(O)||D(),v.current=O},u).release},[t,e,u,r]),m=Vne();if(m==null)throw Li("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=Bne(m,s,f),v=Fg(a);return Qf(()=>{v.current=a}),a}function fI(e){const t=ll(),r=Ug(),s=xs(()=>{var v;const S=t.current,D=S.getState(),N=Vf().early&&(v=D.nextTree)!==null&&v!==void 0?v:D.currentTree;return Bg(S,e,N)},[t,e]),u=xs(()=>({loadable:s(),key:e.key}),[s,e.key]),f=xs(v=>{const S=u();return v.loadable.is(S.loadable)&&v.key===S.key?v:S},[u]);Qf(()=>{const v=$f(t.current,e,S=>{a(f)},r);return a(f),v.release},[r,e,t,f]);const[m,a]=hI(u);return m.key!==e.key?u().loadable:m.loadable}function qne(e){const t=ll(),[,r]=hI([]),s=Ug(),u=xs(()=>{var a;const v=t.current,S=v.getState(),D=Vf().early&&(a=S.nextTree)!==null&&a!==void 0?a:S.currentTree;return Bg(v,e,D)},[t,e]),f=u(),m=Fg(f);return Qf(()=>{m.current=f}),Qf(()=>{const a=t.current,v=a.getState(),S=$f(a,e,N=>{var C;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const O=u();(C=m.current)!==null&&C!==void 0&&C.is(O)||r(O),m.current=O},s);if(v.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{m.current=null,r([])});else{var D;if(!vr("recoil_suppress_rerender_in_callback"))return r([]);const N=u();(D=m.current)!==null&&D!==void 0&&D.is(N)||r(N),m.current=N}return S.release},[s,u,e,t]),f}function pI(e){return vr("recoil_memory_managament_2020")&&cI(e),{TRANSITION_SUPPORT:fI,SYNC_EXTERNAL_STORE:Une()?Zne:fI,MUTABLE_SOURCE:Wne,LEGACY:qne}[Vf().mode](e)}function e9(e){const t=ll(),r=pI(e);return dI(r,e,t)}function tx(e){const t=ll();return xs(r=>{ex(t.current,e,r)},[t,e])}function Kne(e){const t=ll();return xs(()=>{ex(t.current,e,Xk)},[t,e])}function Xne(e){return[e9(e),tx(e)]}function Jne(e){return[pI(e),tx(e)]}function eie(){const e=ll();return(t,r={})=>{Pne(()=>{e.current.addTransactionMetadata(r),t.forEach((s,u)=>$ne(e.current,new uI(u),s))})}}function t9(e){return vr("recoil_memory_managament_2020")&&cI(e),fI(e)}function n9(e){const t=ll(),r=t9(e);return dI(r,e,t)}function tie(e){return[n9(e),tx(e)]}var nie={recoilComponentGetRecoilValueCount_FOR_TESTING:Gne,useRecoilInterface:Yne,useRecoilState:Xne,useRecoilStateLoadable:Jne,useRecoilValue:e9,useRecoilValueLoadable:pI,useResetRecoilState:Kne,useSetRecoilState:tx,useSetUnvalidatedAtomValues:eie,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:t9,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:n9,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:tie};function iie(e,t){const r=new Map;for(const[s,u]of e)t(u,s)&&r.set(s,u);return r}var rie=iie;function oie(e,t){const r=new Set;for(const s of e)t(s)&&r.add(s);return r}var sie=oie;function aie(...e){const t=new Map;for(let r=0;r<e.length;r++){const s=e[r].keys();let u;for(;!(u=s.next()).done;)t.set(u.value,e[r].get(u.value))}return t}var lie=aie;const{batchUpdates:cie}=Gv,{DEFAULT_VALUE:uie,getNode:i9,nodes:hie}=vs,{useStoreRef:mI}=nc,{AbstractRecoilValue:die,setRecoilValueLoadable:fie}=al,{SUSPENSE_TIMEOUT_MS:pie}=Nh,{cloneSnapshot:nx}=Xv,{useCallback:ix,useEffect:r9,useRef:o9,useState:mie}=Vi,{isSSR:s9}=Zv;function rx(e){const t=mI();r9(()=>t.current.subscribeToTransactions(e).release,[e,t])}function a9(e){const t=e.atomValues.toMap(),r=$v(rie(t,(s,u)=>{const m=i9(u).persistence_UNSTABLE;return m!=null&&m.type!=="none"&&s.state==="hasValue"}),s=>s.contents);return lie(e.nonvalidatedAtoms.toMap(),r)}function gie(e){rx(ix(t=>{let r=t.getState().previousTree;const s=t.getState().currentTree;r||(r=t.getState().currentTree);const u=a9(s),f=a9(r),m=$v(hie,v=>{var S,D,N,C;return{persistence_UNSTABLE:{type:(S=(D=v.persistence_UNSTABLE)===null||D===void 0?void 0:D.type)!==null&&S!==void 0?S:"none",backButton:(N=(C=v.persistence_UNSTABLE)===null||C===void 0?void 0:C.backButton)!==null&&N!==void 0?N:!1}}}),a=sie(s.dirtyAtoms,v=>u.has(v)||f.has(v));e({atomValues:u,previousAtomValues:f,atomInfo:m,modifiedAtoms:a,transactionMetadata:{...s.transactionMetadata}})},[e]))}function yie(e){rx(ix(t=>{const r=nx(t,"latest"),s=nx(t,"previous");e({snapshot:r,previousSnapshot:s})},[e]))}function _ie(){const e=mI(),[t,r]=mie(()=>nx(e.current)),s=qk(t),u=o9(),f=o9();if(rx(ix(a=>r(nx(a)),[])),r9(()=>{const a=t.retain();if(u.current&&!s9){var v;window.clearTimeout(u.current),u.current=null,(v=f.current)===null||v===void 0||v.call(f),f.current=null}return()=>{window.setTimeout(a,10)}},[t]),s!==t&&!s9){if(u.current){var m;window.clearTimeout(u.current),u.current=null,(m=f.current)===null||m===void 0||m.call(f),f.current=null}f.current=t.retain(),u.current=window.setTimeout(()=>{var a;u.current=null,(a=f.current)===null||a===void 0||a.call(f),f.current=null},pie)}return t}function l9(e,t){var r;const s=e.getState(),u=(r=s.nextTree)!==null&&r!==void 0?r:s.currentTree,f=t.getStore_INTERNAL().getState().currentTree;cie(()=>{const m=new Set;for(const S of[u.atomValues.keys(),f.atomValues.keys()])for(const D of S){var a,v;((a=u.atomValues.get(D))===null||a===void 0?void 0:a.contents)!==((v=f.atomValues.get(D))===null||v===void 0?void 0:v.contents)&&i9(D).shouldRestoreFromSnapshots&&m.add(D)}m.forEach(S=>{fie(e,new die(S),f.atomValues.has(S)?zr(f.atomValues.get(S)):uie)}),e.replaceState(S=>({...S,stateID:t.getID()}))})}function vie(){const e=mI();return ix(t=>l9(e.current,t),[e])}var c9={useRecoilSnapshot:_ie,gotoSnapshot:l9,useGotoRecoilSnapshot:vie,useRecoilTransactionObserver:yie,useTransactionObservation_DEPRECATED:gie,useTransactionSubscription_DEPRECATED:rx};const{peekNodeInfo:xie}=du,{useStoreRef:bie}=nc;function Mie(){const e=bie();return({key:t})=>xie(e.current,e.current.getState().currentTree,t)}var wie=Mie;const{reactMode:Iie}=Lg,{RecoilRoot:Tie,useStoreRef:Sie}=nc,{useMemo:Eie}=Vi;function Die(){Iie().mode==="MUTABLE_SOURCE"&&console.warn("Warning: There are known issues using useRecoilBridgeAcrossReactRoots() in recoil_mutable_source rendering mode. Please consider upgrading to recoil_sync_external_store mode.");const e=Sie().current;return Eie(()=>{function t({children:r}){return Vi.createElement(Tie,{store_INTERNAL:e},r)}return t},[e])}var Aie=Die;const{loadableWithValue:Cie}=Ng,{initializeNode:Nie}=du,{DEFAULT_VALUE:Lie,getNode:zie}=vs,{copyTreeState:kie,getRecoilValueAsLoadable:Oie,invalidateDownstreams:jie,writeLoadableToTreeState:Rie}=al;function u9(e){return zie(e.key).nodeType==="atom"}class Pie{constructor(t,r){Ai(this,"_store",void 0),Ai(this,"_treeState",void 0),Ai(this,"_changes",void 0),Ai(this,"get",s=>{if(this._changes.has(s.key))return this._changes.get(s.key);if(!u9(s))throw Li("Reading selectors within atomicUpdate is not supported");const u=Oie(this._store,s,this._treeState);if(u.state==="hasValue")return u.contents;throw u.state==="hasError"?u.contents:Li(`Expected Recoil atom ${s.key} to have a value, but it is in a loading state.`)}),Ai(this,"set",(s,u)=>{if(!u9(s))throw Li("Setting selectors within atomicUpdate is not supported");if(typeof u=="function"){const f=this.get(s);this._changes.set(s.key,u(f))}else Nie(this._store,s.key,"set"),this._changes.set(s.key,u)}),Ai(this,"reset",s=>{this.set(s,Lie)}),this._store=t,this._treeState=r,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=kie(this._treeState);for(const[r,s]of this._changes)Rie(t,r,Cie(s));return jie(this._store,t),t}}function Uie(e){return t=>{e.replaceState(r=>{const s=new Pie(e,r);return t(s),s.newTreeState_INTERNAL()})}}var Bie={atomicUpdater:Uie},Fie=Bie.atomicUpdater,h9=Object.freeze({__proto__:null,atomicUpdater:Fie});function Vie(e,t){if(!e)throw new Error(t)}var $ie=Vie,Vg=$ie;const{atomicUpdater:Qie}=h9,{batchUpdates:Hie}=Gv,{DEFAULT_VALUE:Yie}=vs,{useStoreRef:Gie}=nc,{refreshRecoilValue:Zie,setRecoilValue:d9}=al,{cloneSnapshot:Wie}=Xv,{gotoSnapshot:qie}=c9,{useCallback:Kie}=Vi;class f9{}const Xie=new f9;function p9(e,t,r,s){let u=Xie,f;if(Hie(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof t!="function")throw Li(a);const v=hk({...s??{},set:(D,N)=>d9(e,D,N),reset:D=>d9(e,D,Yie),refresh:D=>Zie(e,D),gotoSnapshot:D=>qie(e,D),transact_UNSTABLE:D=>Qie(e)(D)},{snapshot:()=>{const D=Wie(e);return f=D.retain(),D}}),S=t(v);if(typeof S!="function")throw Li(a);u=S(...r)}),u instanceof f9&&Vg(!1),Dr(u))u=u.finally(()=>{var a;(a=f)===null||a===void 0||a()});else{var m;(m=f)===null||m===void 0||m()}return u}function Jie(e,t){const r=Gie();return Kie((...s)=>p9(r.current,e,s),t!=null?[...t,r]:void 0)}var m9={recoilCallback:p9,useRecoilCallback:Jie};const{useStoreRef:ere}=nc,{refreshRecoilValue:tre}=al,{useCallback:nre}=Vi;function ire(e){const t=ere();return nre(()=>{const r=t.current;tre(r,e)},[e,t])}var rre=ire;const{atomicUpdater:ore}=h9,{useStoreRef:sre}=nc,{useMemo:are}=Vi;function lre(e,t){const r=sre();return are(()=>(...s)=>{ore(r.current)(f=>{e(f)(...s)})},t!=null?[...t,r]:void 0)}var cre=lre;class ure{constructor(t){Ai(this,"value",void 0),this.value=t}}var hre={WrappedValue:ure},dre=hre.WrappedValue,g9=Object.freeze({__proto__:null,WrappedValue:dre});const{isFastRefreshEnabled:fre}=Lg;class y9 extends Error{}class pre{constructor(t){var r,s,u;Ai(this,"_name",void 0),Ai(this,"_numLeafs",void 0),Ai(this,"_root",void 0),Ai(this,"_onHit",void 0),Ai(this,"_onSet",void 0),Ai(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(r=t==null?void 0:t.onHit)!==null&&r!==void 0?r:()=>{},this._onSet=(s=t==null?void 0:t.onSet)!==null&&s!==void 0?s:()=>{},this._mapNodeValue=(u=t==null?void 0:t.mapNodeValue)!==null&&u!==void 0?u:f=>f}size(){return this._numLeafs}root(){return this._root}get(t,r){var s;return(s=this.getLeafNode(t,r))===null||s===void 0?void 0:s.value}getLeafNode(t,r){if(this._root==null)return;let s=this._root;for(;s;){if(r==null||r.onNodeVisit(s),s.type==="leaf")return this._onHit(s),s;const u=this._mapNodeValue(t(s.nodeKey));s=s.branches.get(u)}}set(t,r,s){const u=()=>{var f,m,a,v;let S,D;for(const[q,H]of t){var N,C,O;const Y=this._root;if((Y==null?void 0:Y.type)==="leaf")throw this.invalidCacheError();const W=S;if(S=W?W.branches.get(D):Y,S=(N=S)!==null&&N!==void 0?N:{type:"branch",nodeKey:q,parent:W,branches:new Map,branchKey:D},S.type!=="branch"||S.nodeKey!==q)throw this.invalidCacheError();W==null||W.branches.set(D,S),s==null||(C=s.onNodeVisit)===null||C===void 0||C.call(s,S),D=this._mapNodeValue(H),this._root=(O=this._root)!==null&&O!==void 0?O:S}const R=S?(f=S)===null||f===void 0?void 0:f.branches.get(D):this._root;if(R!=null&&(R.type!=="leaf"||R.branchKey!==D))throw this.invalidCacheError();const V={type:"leaf",value:r,parent:S,branchKey:D};(m=S)===null||m===void 0||m.branches.set(D,V),this._root=(a=this._root)!==null&&a!==void 0?a:V,this._numLeafs++,this._onSet(V),s==null||(v=s.onNodeVisit)===null||v===void 0||v.call(s,V)};try{u()}catch(f){if(f instanceof y9)this.clear(),u();else throw f}}delete(t){const r=this.root();if(!r)return!1;if(t===r)return this._root=null,this._numLeafs=0,!0;let s=t.parent,u=t.branchKey;for(;s;){var f;if(s.branches.delete(u),s===r)return s.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(s.branches.size>0)break;u=(f=s)===null||f===void 0?void 0:f.branchKey,s=s.parent}for(;s!==r;s=s.parent)if(s==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=fre()?"Possible Fast Refresh module reload detected. This may also be caused by an selector returning inconsistent values. Resetting cache.":"Invalid cache values. This happens when selectors do not return consistent values for the same input dependency values. That may also be caused when using Fast Refresh to change a selector implementation. Resetting cache.";throw $5(t+(this._name!=null?` - ${this._name}`:"")),new y9}}var mre={TreeCache:pre},gre=mre.TreeCache,_9=Object.freeze({__proto__:null,TreeCache:gre});class yre{constructor(t){var r;Ai(this,"_maxSize",void 0),Ai(this,"_size",void 0),Ai(this,"_head",void 0),Ai(this,"_tail",void 0),Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(r=t.mapKey)!==null&&r!==void 0?r:s=>s}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(t){return this._map.has(this._keyMapper(t))}get(t){const r=this._keyMapper(t),s=this._map.get(r);if(s)return this.set(t,s.value),s.value}set(t,r){const s=this._keyMapper(t);this._map.get(s)&&this.delete(t);const f=this.head(),m={key:t,right:f,left:null,value:r};f?f.left=m:this._tail=m,this._map.set(s,m),this._head=m,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const r=this._keyMapper(t);if(!this._size||!this._map.has(r))return;const s=zr(this._map.get(r)),u=s.right,f=s.left;u&&(u.left=s.left),f&&(f.right=s.right),s===this.head()&&(this._head=u),s===this.tail()&&(this._tail=f),this._map.delete(r),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var _re={LRUCache:yre},vre=_re.LRUCache,v9=Object.freeze({__proto__:null,LRUCache:vre});const{LRUCache:xre}=v9,{TreeCache:bre}=_9;function Mre({name:e,maxSize:t,mapNodeValue:r=s=>s}){const s=new xre({maxSize:t}),u=new bre({name:e,mapNodeValue:r,onHit:f=>{s.set(f,!0)},onSet:f=>{const m=s.tail();s.set(f,!0),m&&u.size()>t&&u.delete(m.key)}});return u}var x9=Mre;function Da(e,t,r){if(typeof e=="string"&&!e.includes('"')&&!e.includes("\\"))return`"${e}"`;switch(typeof e){case"undefined":return"";case"boolean":return e?"true":"false";case"number":case"symbol":return String(e);case"string":return JSON.stringify(e);case"function":if((t==null?void 0:t.allowFunctions)!==!0)throw Li("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var s;return(s=JSON.stringify(e))!==null&&s!==void 0?s:""}if(Dr(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((u,f)=>Da(u,t,f.toString()))}]`;if(typeof e.toJSON=="function")return Da(e.toJSON(r),t,r);if(e instanceof Map){const u={};for(const[f,m]of e)u[typeof f=="string"?f:Da(f,t)]=m;return Da(u,t,r)}return e instanceof Set?Da(Array.from(e).sort((u,f)=>Da(u,t).localeCompare(Da(f,t))),t,r):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Da(Array.from(e),t,r):`{${Object.keys(e).filter(u=>e[u]!==void 0).sort().map(u=>`${Da(u,t)}:${Da(e[u],t,u)}`).join(",")}}`}function wre(e,t={allowFunctions:!1}){return Da(e,t)}var ox=wre;const{TreeCache:Ire}=_9,sx={equality:"reference",eviction:"keep-all",maxSize:1/0};function Tre({equality:e=sx.equality,eviction:t=sx.eviction,maxSize:r=sx.maxSize}=sx,s){const u=Sre(e);return Ere(t,r,u,s)}function Sre(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function Ere(e,t,r,s){switch(e){case"keep-all":return new Ire({name:s,mapNodeValue:r});case"lru":return x9({name:s,maxSize:zr(t),mapNodeValue:r});case"most-recent":return x9({name:s,maxSize:1,mapNodeValue:r})}throw Li(`Unrecognized eviction policy ${e}`)}var Dre=Tre;function Are(e){return()=>null}var Cre={startPerfBlock:Are};const{isLoadable:Nre,loadableWithError:ax,loadableWithPromise:Lre,loadableWithValue:gI}=Ng,{WrappedValue:b9}=g9,{getNodeLoadable:lx,peekNodeLoadable:zre,setNodeValue:kre}=du,{saveDepsToStore:Ore}=kg,{DEFAULT_VALUE:jre,getConfigDeletionHandler:Rre,getNode:Pre,registerNode:M9}=vs,{isRecoilValue:Ure}=Ff,{markRecoilValueModified:w9}=al,{retainedByOptionWithDefault:Bre}=Nh,{recoilCallback:Fre}=m9,{startPerfBlock:Vre}=Cre;class I9{}const $g=new I9,Qg=[],cx=new Map,$re=(()=>{let e=0;return()=>e++})();function T9(e){let t=null;const{key:r,get:s,cachePolicy_UNSTABLE:u}=e,f=e.set!=null?e.set:void 0,m=new Set,a=Dre(u??{equality:"reference",eviction:"keep-all"},r),v=Bre(e.retainedBy_UNSTABLE),S=new Map;let D=0;function N(){return!vr("recoil_memory_managament_2020")||D>0}function C(le){return le.getState().knownSelectors.add(r),D++,()=>{D--}}function O(){return Rre(r)!==void 0&&!N()}function R(le,X,ie,Me,xe){ze(X,Me,xe),V(le,ie)}function V(le,X){Ee(le,X)&&it(le),H(X,!0)}function q(le,X){Ee(le,X)&&(zr(De(le)).stateVersions.clear(),H(X,!1))}function H(le,X){const ie=cx.get(le);if(ie!=null){for(const Me of ie)w9(Me,zr(t));X&&cx.delete(le)}}function Y(le,X){let ie=cx.get(X);ie==null&&cx.set(X,ie=new Set),ie.add(le)}function W(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;const Ue=gI(He);return R(le,ie,xe,Ue,Me),He}).catch(He=>{if(!N())throw it(le),$g;if(Dr(He))return ee(le,He,ie,Me,xe,$e);const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function ee(le,X,ie,Me,xe,$e){return X.then(He=>{if(!N())throw it(le),$g;$e.loadingDepKey!=null&&$e.loadingDepPromise===X?ie.atomValues.set($e.loadingDepKey,gI(He)):le.getState().knownSelectors.forEach(_t=>{ie.atomValues.delete(_t)});const Ue=he(le,ie);if(Ue&&Ue.state!=="loading"){if((Ee(le,xe)||De(le)==null)&&V(le,xe),Ue.state==="hasValue")return Ue.contents;throw Ue.contents}if(!Ee(le,xe)){const _t=Ve(le,ie);if(_t!=null)return _t.loadingLoadable.contents}const[Xe,ut]=pe(le,ie,xe);if(Xe.state!=="loading"&&R(le,ie,xe,Xe,ut),Xe.state==="hasError")throw Xe.contents;return Xe.contents}).catch(He=>{if(He instanceof I9)throw $g;if(!N())throw it(le),$g;const Ue=ax(He);throw R(le,ie,xe,Ue,Me),He})}function fe(le,X,ie,Me){var xe,$e,He,Ue;if(Ee(le,Me)||X.version===((xe=le.getState())===null||xe===void 0||($e=xe.currentTree)===null||$e===void 0?void 0:$e.version)||X.version===((He=le.getState())===null||He===void 0||(Ue=He.nextTree)===null||Ue===void 0?void 0:Ue.version)){var Xe,ut,_t;Ore(r,ie,le,(Xe=(ut=le.getState())===null||ut===void 0||(_t=ut.nextTree)===null||_t===void 0?void 0:_t.version)!==null&&Xe!==void 0?Xe:le.getState().currentTree.version)}for(const et of ie)m.add(et)}function pe(le,X,ie){const Me=Vre(r);let xe=!0,$e=!0;const He=()=>{Me(),$e=!1};let Ue,Xe=!1,ut;const _t={loadingDepKey:null,loadingDepPromise:null},et=new Map;function bt({key:Rt}){const dn=lx(le,X,Rt);switch(et.set(Rt,dn),xe||(fe(le,X,new Set(et.keys()),ie),q(le,ie)),dn.state){case"hasValue":return dn.contents;case"hasError":throw dn.contents;case"loading":throw _t.loadingDepKey=Rt,_t.loadingDepPromise=dn.contents,dn.contents}throw Li("Invalid Loadable state")}const Ot=Rt=>(...dn)=>{if($e)throw Li("Callbacks from getCallback() should only be called asynchronously after the selector is evalutated. It can be used for selectors to return objects with callbacks that can work with Recoil state without a subscription.");return t==null&&Vg(!1),Fre(le,Rt,dn,{node:t})};try{Ue=s({get:bt,getCallback:Ot}),Ue=Ure(Ue)?bt(Ue):Ue,Nre(Ue)&&(Ue.state==="hasError"&&(Xe=!0),Ue=Ue.contents),Dr(Ue)?Ue=W(le,Ue,X,et,ie,_t).finally(He):He(),Ue=Ue instanceof b9?Ue.value:Ue}catch(Rt){Ue=Rt,Dr(Ue)?Ue=ee(le,Ue,X,et,ie,_t).finally(He):(Xe=!0,He())}return Xe?ut=ax(Ue):Dr(Ue)?ut=Lre(Ue):ut=gI(Ue),xe=!1,Ge(le,ie,et),fe(le,X,new Set(et.keys()),ie),[ut,et]}function he(le,X){let ie=X.atomValues.get(r);if(ie!=null)return ie;const Me=new Set;try{ie=a.get($e=>(typeof $e!="string"&&Vg(!1),lx(le,X,$e).contents),{onNodeVisit:$e=>{$e.type==="branch"&&$e.nodeKey!==r&&Me.add($e.nodeKey)}})}catch($e){throw Li(`Problem with cache lookup for selector "${r}": ${$e.message}`)}if(ie){var xe;X.atomValues.set(r,ie),fe(le,X,Me,(xe=De(le))===null||xe===void 0?void 0:xe.executionID)}return ie}function oe(le,X){const ie=he(le,X);if(ie!=null)return it(le),ie;const Me=Ve(le,X);if(Me!=null){var xe;return((xe=Me.loadingLoadable)===null||xe===void 0?void 0:xe.state)==="loading"&&Y(le,Me.executionID),Me.loadingLoadable}const $e=$re(),[He,Ue]=pe(le,X,$e);return He.state==="loading"?(Ae(le,$e,He,Ue,X),Y(le,$e)):(it(le),ze(X,He,Ue)),He}function Ve(le,X){const ie=Ck([S.has(le)?[zr(S.get(le))]:[],Fv(X5(S,([xe])=>xe!==le),([,xe])=>xe)]);function Me(xe){for(const[$e,He]of xe)if(!lx(le,X,$e).is(He))return!0;return!1}for(const xe of ie){if(xe.stateVersions.get(X.version)||!Me(xe.depValuesDiscoveredSoFarDuringAsyncWork))return xe.stateVersions.set(X.version,!0),xe;xe.stateVersions.set(X.version,!1)}}function De(le){return S.get(le)}function Ae(le,X,ie,Me,xe){S.set(le,{depValuesDiscoveredSoFarDuringAsyncWork:Me,executionID:X,loadingLoadable:ie,stateVersions:new Map([[xe.version,!0]])})}function Ge(le,X,ie){if(Ee(le,X)){const Me=De(le);Me!=null&&(Me.depValuesDiscoveredSoFarDuringAsyncWork=ie)}}function it(le){S.delete(le)}function Ee(le,X){var ie;return X===((ie=De(le))===null||ie===void 0?void 0:ie.executionID)}function Ze(le){return Array.from(le.entries()).map(([X,ie])=>[X,ie.contents])}function ze(le,X,ie){le.atomValues.set(r,X);try{a.set(Ze(ie),X)}catch(Me){throw Li(`Problem with setting cache for selector "${r}": ${Me.message}`)}}function Le(le){if(Qg.includes(r)){const X=`Recoil selector has circular dependencies: ${Qg.slice(Qg.indexOf(r)).join(" → ")}`;return ax(Li(X))}Qg.push(r);try{return le()}finally{Qg.pop()}}function Ye(le,X){const ie=X.atomValues.get(r);return ie??a.get(Me=>{var xe;return typeof Me!="string"&&Vg(!1),(xe=zre(le,X,Me))===null||xe===void 0?void 0:xe.contents})}function qe(le,X){return Le(()=>oe(le,X))}function Ie(le){le.atomValues.delete(r)}function Te(le,X){t==null&&Vg(!1);for(const Me of m){var ie;const xe=Pre(Me);(ie=xe.clearCache)===null||ie===void 0||ie.call(xe,le,X)}m.clear(),Ie(X),a.clear(),w9(le,t)}return f!=null?t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,set:(X,ie,Me)=>{let xe=!1;const $e=new Map;function He({key:_t}){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const et=lx(X,ie,_t);if(et.state==="hasValue")return et.contents;if(et.state==="loading"){const bt=`Getting value of asynchronous atom or selector "${_t}" in a pending state while setting selector "${r}" is not yet supported.`;throw Li(bt)}else throw et.contents}function Ue(_t,et){if(xe)throw Li("Recoil: Async selector sets are not currently supported.");const bt=typeof et=="function"?et(He(_t)):et;kre(X,ie,_t.key,bt).forEach((Rt,dn)=>$e.set(dn,Rt))}function Xe(_t){Ue(_t,jre)}const ut=f({set:Ue,get:He,reset:Xe},Me);if(ut!==void 0)throw Dr(ut)?Li("Recoil: Async selector sets are not currently supported."):Li("Recoil: selector set should be a void function.");return xe=!0,$e},init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v}):t=M9({key:r,nodeType:"selector",peek:Ye,get:qe,init:C,invalidate:Ie,clearCache:Te,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:v})}T9.value=e=>new b9(e);var Hf=T9;const{isLoadable:Qre,loadableWithError:yI,loadableWithPromise:_I,loadableWithValue:Yf}=Ng,{WrappedValue:S9}=g9,{peekNodeInfo:Hre}=du,{DEFAULT_VALUE:Lh,DefaultValue:fu,getConfigDeletionHandler:E9,registerNode:Yre,setConfigDeletionHandler:Gre}=vs,{isRecoilValue:Zre}=Ff,{getRecoilValueAsLoadable:Wre,markRecoilValueModified:qre,setRecoilValue:D9,setRecoilValueLoadable:Kre}=al,{retainedByOptionWithDefault:Xre}=Nh,Hg=e=>e instanceof S9?e.value:e;function Jre(e){const{key:t,persistence_UNSTABLE:r}=e,s=Xre(e.retainedBy_UNSTABLE);let u=0;function f(Y){return _I(Y.then(W=>(m=Yf(W),W)).catch(W=>{throw m=yI(W),W}))}let m=Dr(e.default)?f(e.default):Qre(e.default)?e.default.state==="loading"?f(e.default.contents):e.default:Yf(Hg(e.default));m.contents;let a;const v=new Map;function S(Y){return Y}function D(Y,W){const ee=W.then(fe=>{var pe,he;return((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&D9(Y,H,fe),fe}).catch(fe=>{var pe,he;throw((he=((pe=Y.getState().nextTree)!==null&&pe!==void 0?pe:Y.getState().currentTree).atomValues.get(t))===null||he===void 0?void 0:he.contents)===ee&&Kre(Y,H,yI(fe)),fe});return ee}function N(Y,W,ee){var fe;u++;const pe=()=>{var De;u--,(De=v.get(Y))===null||De===void 0||De.forEach(Ae=>Ae()),v.delete(Y)};if(Y.getState().knownAtoms.add(t),m.state==="loading"){const De=()=>{var Ae;((Ae=Y.getState().nextTree)!==null&&Ae!==void 0?Ae:Y.getState().currentTree).atomValues.has(t)||qre(Y,H)};m.contents.finally(De)}const he=(fe=e.effects)!==null&&fe!==void 0?fe:e.effects_UNSTABLE;if(he!=null){let Ee=function(Ie){if(Ae&&Ie.key===t){const Te=De;return Te instanceof fu?C(Y,W):Dr(Te)?_I(Te.then(le=>le instanceof fu?m.toPromise():le)):Yf(Te)}return Wre(Y,Ie)},Ze=function(Ie){return Ee(Ie).toPromise()},ze=function(Ie){var Te;const le=Hre(Y,(Te=Y.getState().nextTree)!==null&&Te!==void 0?Te:Y.getState().currentTree,Ie.key);return Ae&&Ie.key===t&&!(De instanceof fu)?{...le,isSet:!0,loadable:Ee(Ie)}:le},De=Lh,Ae=!0,Ge=!1,it=null;const Le=Ie=>Te=>{if(Ae){const le=Ee(H),X=le.state==="hasValue"?le.contents:Lh;De=typeof Te=="function"?Te(X):Te,Dr(De)&&(De=De.then(ie=>(it={effect:Ie,value:ie},ie)))}else{if(Dr(Te))throw Li("Setting atoms to async values is not implemented.");typeof Te!="function"&&(it={effect:Ie,value:Hg(Te)}),D9(Y,H,typeof Te=="function"?le=>{const X=Hg(Te(le));return it={effect:Ie,value:X},X}:Hg(Te))}},Ye=Ie=>()=>Le(Ie)(Lh),qe=Ie=>Te=>{var le;const{release:X}=Y.subscribeToTransactions(ie=>{var Me;let{currentTree:xe,previousTree:$e}=ie.getState();$e||($e=xe);const He=(Me=xe.atomValues.get(t))!==null&&Me!==void 0?Me:m;if(He.state==="hasValue"){var Ue,Xe,ut,_t;const et=He.contents,bt=(Ue=$e.atomValues.get(t))!==null&&Ue!==void 0?Ue:m,Ot=bt.state==="hasValue"?bt.contents:Lh;((Xe=it)===null||Xe===void 0?void 0:Xe.effect)!==Ie||((ut=it)===null||ut===void 0?void 0:ut.value)!==et?Te(et,Ot,!xe.atomValues.has(t)):((_t=it)===null||_t===void 0?void 0:_t.effect)===Ie&&(it=null)}},t);v.set(Y,[...(le=v.get(Y))!==null&&le!==void 0?le:[],X])};for(const Ie of he)try{const Te=Ie({node:H,storeID:Y.storeID,parentStoreID_UNSTABLE:Y.parentStoreID,trigger:ee,setSelf:Le(Ie),resetSelf:Ye(Ie),onSet:qe(Ie),getPromise:Ze,getLoadable:Ee,getInfo_UNSTABLE:ze});if(Te!=null){var oe;v.set(Y,[...(oe=v.get(Y))!==null&&oe!==void 0?oe:[],Te])}}catch(Te){De=Te,Ge=!0}if(Ae=!1,!(De instanceof fu)){var Ve;const Ie=Ge?yI(De):Dr(De)?_I(D(Y,De)):Yf(Hg(De));Ie.contents,W.atomValues.set(t,Ie),(Ve=Y.getState().nextTree)===null||Ve===void 0||Ve.atomValues.set(t,Ie)}}return pe}function C(Y,W){var ee,fe;return(ee=(fe=W.atomValues.get(t))!==null&&fe!==void 0?fe:a)!==null&&ee!==void 0?ee:m}function O(Y,W){if(W.atomValues.has(t))return zr(W.atomValues.get(t));if(W.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(r==null)return m;const ee=W.nonvalidatedAtoms.get(t),fe=r.validator(ee,Lh);return a=fe instanceof fu?m:Yf(fe),a}else return m}function R(){a=void 0}function V(Y,W,ee){if(W.atomValues.has(t)){const fe=zr(W.atomValues.get(t));if(fe.state==="hasValue"&&ee===fe.contents)return new Map}else if(!W.nonvalidatedAtoms.has(t)&&ee instanceof fu)return new Map;return a=void 0,new Map().set(t,Yf(ee))}function q(){return E9(t)!==void 0&&u<=0}const H=Yre({key:t,nodeType:"atom",peek:C,get:O,set:V,init:N,invalidate:R,shouldDeleteConfigOnRelease:q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:s});return H}function vI(e){const{...t}=e,r="default"in e?e.default:new Promise(()=>{});return Zre(r)?eoe({...t,default:r}):Jre({...t,default:r})}function eoe(e){const t=vI({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:s=>s instanceof fu?s:zr(e.persistence_UNSTABLE).validator(s,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),r=Hf({key:`${e.key}__withFallback`,get:({get:s})=>{const u=s(t);return u instanceof fu?e.default:u},set:({set:s},u)=>s(t,u),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return Gre(r.key,E9(e.key)),r}vI.value=e=>new S9(e);var A9=vI;class toe{constructor(t){var r;Ai(this,"_map",void 0),Ai(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(r=t==null?void 0:t.mapKey)!==null&&r!==void 0?r:s=>s}size(){return this._map.size}has(t){return this._map.has(this._keyMapper(t))}get(t){return this._map.get(this._keyMapper(t))}set(t,r){this._map.set(this._keyMapper(t),r)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var noe={MapCache:toe},ioe=noe.MapCache,roe=Object.freeze({__proto__:null,MapCache:ioe});const{LRUCache:C9}=v9,{MapCache:ooe}=roe,ux={equality:"reference",eviction:"none",maxSize:1/0};function soe({equality:e=ux.equality,eviction:t=ux.eviction,maxSize:r=ux.maxSize}=ux){const s=aoe(e);return loe(t,r,s)}function aoe(e){switch(e){case"reference":return t=>t;case"value":return t=>ox(t)}throw Li(`Unrecognized equality policy ${e}`)}function loe(e,t,r){switch(e){case"keep-all":return new ooe({mapKey:r});case"lru":return new C9({mapKey:r,maxSize:zr(t)});case"most-recent":return new C9({mapKey:r,maxSize:1})}throw Li(`Unrecognized eviction policy ${e}`)}var N9=soe;const{setConfigDeletionHandler:coe}=vs;function uoe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f,m;const a=s.get(u);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:v,...S}=e,D="default"in e?e.default:new Promise(()=>{}),N=A9({...S,key:`${e.key}__${(f=ox(u))!==null&&f!==void 0?f:"void"}`,default:typeof D=="function"?D(u):D,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(u):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(u):(m=e.effects)!==null&&m!==void 0?m:e.effects_UNSTABLE});return s.set(u,N),coe(N.key,()=>{s.delete(u)}),N}}var hoe=uoe;const{setConfigDeletionHandler:doe}=vs;let foe=0;function poe(e){var t,r;const s=N9({equality:(t=(r=e.cachePolicyForParams_UNSTABLE)===null||r===void 0?void 0:r.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return u=>{var f;let m;try{m=s.get(u)}catch(C){throw Li(`Problem with cache lookup for selector ${e.key}: ${C.message}`)}if(m!=null)return m;const a=`${e.key}__selectorFamily/${(f=ox(u,{allowFunctions:!0}))!==null&&f!==void 0?f:"void"}/${foe++}`,v=C=>e.get(u)(C),S=e.cachePolicy_UNSTABLE,D=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(u):e.retainedBy_UNSTABLE;let N;if(e.set!=null){const C=e.set;N=Hf({key:a,get:v,set:(R,V)=>C(u)(R,V),cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D})}else N=Hf({key:a,get:v,cachePolicy_UNSTABLE:S,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:D});return s.set(u,N),doe(N.key,()=>{s.delete(u)}),N}}var pu=poe;const moe=pu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function goe(e){return moe(e)}var yoe=goe;const _oe=pu({key:"__error",get:e=>()=>{throw Li(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function voe(e){return _oe(e)}var xoe=voe;function boe(e){return e}var Moe=boe;const{loadableWithError:L9,loadableWithPromise:z9,loadableWithValue:k9}=Ng;function hx(e,t){const r=Array(t.length).fill(void 0),s=Array(t.length).fill(void 0);for(const[u,f]of t.entries())try{r[u]=e(f)}catch(m){s[u]=m}return[r,s]}function woe(e){return e!=null&&!Dr(e)}function dx(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function xI(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((r,s,u)=>({...r,[s]:t[u]}),{})}function Gf(e,t,r){const s=r.map((u,f)=>u==null?k9(t[f]):Dr(u)?z9(u):L9(u));return xI(e,s)}function Ioe(e,t){return t.map((r,s)=>r===void 0?e[s]:r)}const Toe=pu({key:"__waitForNone",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return Gf(e,s,u)},dangerouslyAllowMutability:!0}),Soe=pu({key:"__waitForAny",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.some(f=>!Dr(f))?Gf(e,s,u):new Promise(f=>{for(const[m,a]of u.entries())Dr(a)&&a.then(v=>{s[m]=v,u[m]=void 0,f(Gf(e,s,u))}).catch(v=>{u[m]=v,f(Gf(e,s,u))})})},dangerouslyAllowMutability:!0}),Eoe=pu({key:"__waitForAll",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);if(u.every(m=>m==null))return xI(e,s);const f=u.find(woe);if(f!=null)throw f;return Promise.all(u).then(m=>xI(e,Ioe(s,m)))},dangerouslyAllowMutability:!0}),Doe=pu({key:"__waitForAllSettled",get:e=>({get:t})=>{const r=dx(e),[s,u]=hx(t,r);return u.every(f=>!Dr(f))?Gf(e,s,u):Promise.all(u.map((f,m)=>Dr(f)?f.then(a=>{s[m]=a,u[m]=void 0}).catch(a=>{s[m]=void 0,u[m]=a}):null)).then(()=>Gf(e,s,u))},dangerouslyAllowMutability:!0}),Aoe=pu({key:"__noWait",get:e=>({get:t})=>{try{return Hf.value(k9(t(e)))}catch(r){return Hf.value(Dr(r)?z9(r):L9(r))}},dangerouslyAllowMutability:!0});var Coe={waitForNone:Toe,waitForAny:Soe,waitForAll:Eoe,waitForAllSettled:Doe,noWait:Aoe};const{RecoilLoadable:Noe}=Ng,{DefaultValue:Loe}=vs,{RecoilRoot:zoe,useRecoilStoreID:koe}=nc,{isRecoilValue:Ooe}=Ff,{retentionZone:joe}=Hv,{freshSnapshot:Roe}=Xv,{useRecoilState:Poe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilStateLoadable:Boe,useRecoilValue:Foe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilValueLoadable:$oe,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useResetRecoilState:Hoe,useSetRecoilState:Yoe}=nie,{useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver:Woe}=c9,{useRecoilCallback:qoe}=m9,{noWait:Koe,waitForAll:Xoe,waitForAllSettled:Joe,waitForAny:ese,waitForNone:tse}=Coe;var Zf={DefaultValue:Loe,isRecoilValue:Ooe,RecoilLoadable:Noe,RecoilEnv:Bf,RecoilRoot:zoe,useRecoilStoreID:koe,useRecoilBridgeAcrossReactRoots_UNSTABLE:Aie,atom:A9,selector:Hf,atomFamily:hoe,selectorFamily:pu,constSelector:yoe,errorSelector:xoe,readOnlySelector:Moe,noWait:Koe,waitForNone:tse,waitForAny:ese,waitForAll:Xoe,waitForAllSettled:Joe,useRecoilValue:Foe,useRecoilValueLoadable:$oe,useRecoilState:Poe,useRecoilStateLoadable:Boe,useSetRecoilState:Yoe,useResetRecoilState:Hoe,useGetRecoilValueInfo_UNSTABLE:wie,useRecoilRefresher_UNSTABLE:rre,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Qoe,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:Voe,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:Uoe,useRecoilCallback:qoe,useRecoilTransaction_UNSTABLE:cre,useGotoRecoilSnapshot:Goe,useRecoilSnapshot:Zoe,useRecoilTransactionObserver_UNSTABLE:Woe,snapshot_UNSTABLE:Roe,useRetain:cI,retentionZone:joe},nse=Zf.RecoilRoot,ui=Zf.atom,O9=Zf.selector,on=Zf.useRecoilValue,zn=Zf.useRecoilState,ca=Zf.useResetRecoilState;const ise=(e,t)=>{const r=e[t];return r?typeof r=="function"?r():Promise.resolve(r):new Promise((s,u)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(u.bind(null,new Error("Unknown variable dynamic import: "+t)))})},rse="mi-components";let fx,j9,Vs=!1,bI=!1;const ic=(e,t="")=>()=>{},ose=(e,t)=>()=>{},sse="{visibility:hidden}.hydrated{visibility:inherit}",R9="http://www.w3.org/1999/xlink",P9={},ase="http://www.w3.org/2000/svg",lse="http://www.w3.org/1999/xhtml",cse=e=>e!=null,MI=e=>(e=typeof e,e==="object"||e==="function");function U9(e){var t,r,s;return(s=(r=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||r===void 0?void 0:r.getAttribute("content"))!==null&&s!==void 0?s:void 0}const ke=(e,t,...r)=>{let s=null,u=null,f=!1,m=!1;const a=[],v=D=>{for(let N=0;N<D.length;N++)s=D[N],Array.isArray(s)?v(s):s!=null&&typeof s!="boolean"&&((f=typeof e!="function"&&!MI(s))&&(s=String(s)),f&&m?a[a.length-1].$text$+=s:a.push(f?wI(null,s):s),m=f)};if(v(r),t){t.key&&(u=t.key);{const D=t.className||t.class;D&&(t.class=typeof D!="object"?D:Object.keys(D).filter(N=>D[N]).join(" "))}}const S=wI(e,null);return S.$attrs$=t,a.length>0&&(S.$children$=a),S.$key$=u,S},wI=(e,t)=>{const r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return r.$attrs$=null,r.$key$=null,r},co={},use=e=>e&&e.$tag$===co,hse=(e,t)=>e!=null&&!MI(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,rc=e=>mu(e).$hostElement$,pr=(e,t,r)=>{const s=rc(e);return{emit:u=>B9(s,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:u})}},B9=(e,t,r)=>{const s=Do.ce(t,r);return e.dispatchEvent(s),s},F9=new WeakMap,dse=(e,t,r)=>{let s=yx.get(e);zse&&r?(s=s||new CSSStyleSheet,typeof s=="string"?s=t:s.replaceSync(t)):s=t,yx.set(e,s)},fse=(e,t,r,s)=>{var u;let f=V9(t);const m=yx.get(f);if(e=e.nodeType===11?e:cl,m)if(typeof m=="string"){e=e.head||e;let a=F9.get(e),v;if(a||F9.set(e,a=new Set),!a.has(f)){{v=cl.createElement("style"),v.innerHTML=m;const S=(u=Do.$nonce$)!==null&&u!==void 0?u:U9(cl);S!=null&&v.setAttribute("nonce",S),e.insertBefore(v,e.querySelector("link"))}a&&a.add(f)}}else e.adoptedStyleSheets.includes(m)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,m]);return f},pse=e=>{const t=e.$cmpMeta$,r=e.$hostElement$,s=t.$flags$,u=ic("attachStyles",t.$tagName$),f=fse(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);s&10&&(r["s-sc"]=f,r.classList.add(f+"-h")),u()},V9=(e,t)=>"sc-"+e.$tagName$,$9=(e,t,r,s,u,f)=>{if(r!==s){let m=nO(e,t),a=t.toLowerCase();if(t==="class"){const v=e.classList,S=Q9(r),D=Q9(s);v.remove(...S.filter(N=>N&&!D.includes(N))),v.add(...D.filter(N=>N&&!S.includes(N)))}else if(t==="style"){for(const v in r)(!s||s[v]==null)&&(v.includes("-")?e.style.removeProperty(v):e.style[v]="");for(const v in s)(!r||s[v]!==r[v])&&(v.includes("-")?e.style.setProperty(v,s[v]):e.style[v]=s[v])}else if(t!=="key")if(t==="ref")s&&s(e);else if(!m&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):nO(Yg,a)?t=a.slice(2):t=a[2]+t.slice(3),r&&Do.rel(e,t,r,!1),s&&Do.ael(e,t,s,!1);else{const v=MI(s);if((m||v&&s!==null)&&!u)try{if(e.tagName.includes("-"))e[t]=s;else{const D=s??"";t==="list"?m=!1:(r==null||e[t]!=D)&&(e[t]=D)}}catch{}let S=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,S=!0),s==null||s===!1?(s!==!1||e.getAttribute(t)==="")&&(S?e.removeAttributeNS(R9,t):e.removeAttribute(t)):(!m||f&4||u)&&!v&&(s=s===!0?"":s,S?e.setAttributeNS(R9,t,s):e.setAttribute(t,s))}}},mse=/\s/,Q9=e=>e?e.split(mse):[],H9=(e,t,r,s)=>{const u=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,f=e&&e.$attrs$||P9,m=t.$attrs$||P9;for(s in f)s in m||$9(u,s,f[s],void 0,r,t.$flags$);for(s in m)$9(u,s,f[s],m[s],r,t.$flags$)},px=(e,t,r,s)=>{const u=t.$children$[r];let f=0,m,a;if(u.$text$!==null)m=u.$elm$=cl.createTextNode(u.$text$);else{if(Vs||(Vs=u.$tag$==="svg"),m=u.$elm$=cl.createElementNS(Vs?ase:lse,u.$tag$),Vs&&u.$tag$==="foreignObject"&&(Vs=!1),H9(null,u,Vs),cse(fx)&&m["s-si"]!==fx&&m.classList.add(m["s-si"]=fx),u.$children$)for(f=0;f<u.$children$.length;++f)a=px(e,u,f),a&&m.appendChild(a);u.$tag$==="svg"?Vs=!1:m.tagName==="foreignObject"&&(Vs=!0)}return m},Y9=(e,t,r,s,u,f)=>{let m=e,a;for(m.shadowRoot&&m.tagName===j9&&(m=m.shadowRoot);u<=f;++u)s[u]&&(a=px(null,r,u),a&&(s[u].$elm$=a,m.insertBefore(a,t)))},G9=(e,t,r,s,u)=>{for(;t<=r;++t)(s=e[t])&&(u=s.$elm$,Z9(s),u.remove())},gse=(e,t,r,s)=>{let u=0,f=0,m=0,a=0,v=t.length-1,S=t[0],D=t[v],N=s.length-1,C=s[0],O=s[N],R,V;for(;u<=v&&f<=N;)if(S==null)S=t[++u];else if(D==null)D=t[--v];else if(C==null)C=s[++f];else if(O==null)O=s[--N];else if(mx(S,C))Wf(S,C),S=t[++u],C=s[++f];else if(mx(D,O))Wf(D,O),D=t[--v],O=s[--N];else if(mx(S,O))Wf(S,O),e.insertBefore(S.$elm$,D.$elm$.nextSibling),S=t[++u],O=s[--N];else if(mx(D,C))Wf(D,C),e.insertBefore(D.$elm$,S.$elm$),D=t[--v],C=s[++f];else{for(m=-1,a=u;a<=v;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===C.$key$){m=a;break}m>=0?(V=t[m],V.$tag$!==C.$tag$?R=px(t&&t[f],r,m):(Wf(V,C),t[m]=void 0,R=V.$elm$),C=s[++f]):(R=px(t&&t[f],r,f),C=s[++f]),R&&S.$elm$.parentNode.insertBefore(R,S.$elm$)}u>v?Y9(e,s[N+1]==null?null:s[N+1].$elm$,r,s,f,N):f>N&&G9(t,u,v)},mx=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Wf=(e,t)=>{const r=t.$elm$=e.$elm$,s=e.$children$,u=t.$children$,f=t.$tag$,m=t.$text$;m===null?(Vs=f==="svg"?!0:f==="foreignObject"?!1:Vs,f==="slot"||H9(e,t,Vs),s!==null&&u!==null?gse(r,s,t,u):u!==null?(e.$text$!==null&&(r.textContent=""),Y9(r,null,t,u,0,u.length-1)):s!==null&&G9(s,0,s.length-1),Vs&&f==="svg"&&(Vs=!1)):e.$text$!==m&&(r.data=m)},Z9=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(Z9)},yse=(e,t)=>{const r=e.$hostElement$,s=e.$cmpMeta$,u=e.$vnode$||wI(null,null),f=use(t)?t:ke(null,null,t);j9=r.tagName,s.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},s.$attrsToReflect$.map(([m,a])=>f.$attrs$[a]=r[m])),f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=u.$elm$=r.shadowRoot||r,fx=r["s-sc"],Wf(u,f)},W9=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},gx=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return W9(e,e.$ancestorComponent$),Ose(()=>_se(e,t))},_se=(e,t)=>{const r=ic("scheduleUpdate",e.$cmpMeta$.$tagName$),s=e.$lazyInstance$;let u;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([f,m])=>zh(s,f,m)),e.$queuedListeners$=null),u=zh(s,"componentWillLoad")),u=K9(u,()=>zh(s,"componentWillRender")),r(),K9(u,()=>vse(e,s,t))},vse=async(e,t,r)=>{const s=e.$hostElement$,u=ic("update",e.$cmpMeta$.$tagName$),f=s["s-rc"];r&&pse(e);const m=ic("render",e.$cmpMeta$.$tagName$);xse(e,t),f&&(f.map(a=>a()),s["s-rc"]=void 0),m(),u();{const a=s["s-p"],v=()=>bse(e);a.length===0?v():(Promise.all(a).then(v),e.$flags$|=4,a.length=0)}},xse=(e,t,r)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,yse(e,t)}catch(s){kh(s,e.$hostElement$)}return null},bse=e=>{const t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,s=ic("postUpdate",t),u=e.$lazyInstance$,f=e.$ancestorComponent$;zh(u,"componentDidRender"),e.$flags$&64?s():(e.$flags$|=64,X9(r),zh(u,"componentDidLoad"),s(),e.$onReadyResolve$(r),f||q9()),e.$onInstanceResolve$(r),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&EI(()=>gx(e,!1)),e.$flags$&=-517},II=e=>{{const t=mu(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&gx(t,!1),r}},q9=e=>{X9(cl.documentElement),EI(()=>B9(Yg,"appload",{detail:{namespace:rse}}))},zh=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(s){kh(s)}},K9=(e,t)=>e&&e.then?e.then(t):t(),X9=e=>e.classList.add("hydrated"),Mse=(e,t)=>mu(e).$instanceValues$.get(t),wse=(e,t,r,s)=>{const u=mu(e),f=u.$hostElement$,m=u.$instanceValues$.get(t),a=u.$flags$,v=u.$lazyInstance$;r=hse(r,s.$members$[t][0]);const S=Number.isNaN(m)&&Number.isNaN(r),D=r!==m&&!S;if((!(a&8)||m===void 0)&&D&&(u.$instanceValues$.set(t,r),v)){if(s.$watchers$&&a&128){const N=s.$watchers$[t];N&&N.map(C=>{try{v[C](r,m,t)}catch(O){kh(O,f)}})}(a&18)===2&&gx(u,!1)}},J9=(e,t,r)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const s=Object.entries(t.$members$),u=e.prototype;if(s.map(([f,[m]])=>{m&31||r&2&&m&32?Object.defineProperty(u,f,{get(){return Mse(this,f)},set(a){wse(this,f,a,t)},configurable:!0,enumerable:!0}):r&1&&m&64&&Object.defineProperty(u,f,{value(...a){const v=mu(this);return v.$onInstancePromise$.then(()=>v.$lazyInstance$[f](...a))}})}),r&1){const f=new Map;u.attributeChangedCallback=function(m,a,v){Do.jmp(()=>{const S=f.get(m);if(this.hasOwnProperty(S))v=this[S],delete this[S];else if(u.hasOwnProperty(S)&&typeof this[S]=="number"&&this[S]==v)return;this[S]=v===null&&typeof this[S]=="boolean"?!1:v})},e.observedAttributes=s.filter(([m,a])=>a[0]&15).map(([m,a])=>{const v=a[1]||m;return f.set(v,m),a[0]&512&&t.$attrsToReflect$.push([m,v]),v})}}return e},Ise=async(e,t,r,s,u)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,u=Lse(r),u.then){const v=ose();u=await u,v()}u.isProxied||(r.$watchers$=u.watchers,J9(u,r,2),u.isProxied=!0);const a=ic("createInstance",r.$tagName$);t.$flags$|=8;try{new u(t)}catch(v){kh(v)}t.$flags$&=-9,t.$flags$|=128,a(),eO(t.$lazyInstance$)}if(u.style){let a=u.style;const v=V9(r);if(!yx.has(v)){const S=ic("registerStyles",r.$tagName$);dse(v,a,!!(r.$flags$&1)),S()}}}const f=t.$ancestorComponent$,m=()=>gx(t,!0);f&&f["s-rc"]?f["s-rc"].push(m):m()},eO=e=>{zh(e,"connectedCallback")},Tse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$cmpMeta$,s=ic("connectedCallback",r.$tagName$);if(t.$flags$&1)tO(e,t,r.$listeners$),eO(t.$lazyInstance$);else{t.$flags$|=1;{let u=e;for(;u=u.parentNode||u.host;)if(u["s-p"]){W9(t,t.$ancestorComponent$=u);break}}r.$members$&&Object.entries(r.$members$).map(([u,[f]])=>{if(f&31&&e.hasOwnProperty(u)){const m=e[u];delete e[u],e[u]=m}}),Ise(e,t,r)}s()}},Sse=e=>{if(!(Do.$flags$&1)){const t=mu(e),r=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(s=>s()),t.$rmListeners$=void 0),zh(r,"disconnectedCallback")}},Ese=(e,t={})=>{var r;const s=ic(),u=[],f=t.exclude||[],m=Yg.customElements,a=cl.head,v=a.querySelector("meta[charset]"),S=cl.createElement("style"),D=[];let N,C=!0;Object.assign(Do,t),Do.$resourcesUrl$=new URL(t.resourcesUrl||"./",cl.baseURI).href,e.map(O=>{O[1].map(R=>{const V={$flags$:R[0],$tagName$:R[1],$members$:R[2],$listeners$:R[3]};V.$members$=R[2],V.$listeners$=R[3],V.$attrsToReflect$=[],V.$watchers$={};const q=V.$tagName$,H=class extends HTMLElement{constructor(Y){super(Y),Y=this,Nse(Y,V),V.$flags$&1&&Y.attachShadow({mode:"open"})}connectedCallback(){N&&(clearTimeout(N),N=null),C?D.push(this):Do.jmp(()=>Tse(this))}disconnectedCallback(){Do.jmp(()=>Sse(this))}componentOnReady(){return mu(this).$onReadyPromise$}};V.$lazyBundleId$=O[0],!f.includes(q)&&!m.get(q)&&(u.push(q),m.define(q,J9(H,V,1)))})});{S.innerHTML=u+sse,S.setAttribute("data-styles","");const O=(r=Do.$nonce$)!==null&&r!==void 0?r:U9(cl);O!=null&&S.setAttribute("nonce",O),a.insertBefore(S,v?v.nextSibling:a.firstChild)}C=!1,D.length?D.map(O=>O.connectedCallback()):Do.jmp(()=>N=setTimeout(q9,30)),s()},tO=(e,t,r,s)=>{r&&r.map(([u,f,m])=>{const a=Ase(e,u),v=Dse(t,m),S=Cse(u);Do.ael(a,f,v,S),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Do.rel(a,f,v,S))})},Dse=(e,t)=>r=>{try{e.$flags$&256?e.$lazyInstance$[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r])}catch(s){kh(s)}},Ase=(e,t)=>t&8?Yg:e,Cse=e=>(e&2)!==0,TI=new WeakMap,mu=e=>TI.get(e),Ri=(e,t)=>TI.set(t.$lazyInstance$=e,t),Nse=(e,t)=>{const r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onInstancePromise$=new Promise(s=>r.$onInstanceResolve$=s),r.$onReadyPromise$=new Promise(s=>r.$onReadyResolve$=s),e["s-p"]=[],e["s-rc"]=[],tO(e,r,t.$listeners$),TI.set(e,r)},nO=(e,t)=>t in e,kh=(e,t)=>(0,console.error)(e,t),iO=new Map,Lse=(e,t,r)=>{const s=e.$tagName$.replace(/-/g,"_"),u=e.$lazyBundleId$,f=iO.get(u);if(f)return f[s];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return ise(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Pce),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Fce),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>$ce),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Qce),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Gce),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>tue),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>rue),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>oue),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>aue),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>cue),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>yue),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>vue),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>bue),"./mi-list.entry.js":()=>Promise.resolve().then(()=>wue),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Zme),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>qme),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Jme),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>ige),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>oge),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>Mge),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>Ige),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Sge),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Dge),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Cge),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Lge),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>kge),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>jge),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Pge),"./mi-search.entry.js":()=>Promise.resolve().then(()=>$ge),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Hge),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Gge),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Wge),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>qge),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Xge),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Jge)}),`./${u}.entry.js`).then(m=>(iO.set(u,m),m[s]),kh)},yx=new Map,Yg=typeof window<"u"?window:{},cl=Yg.document||{head:{}},Do={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,r,s)=>e.addEventListener(t,r,s),rel:(e,t,r,s)=>e.removeEventListener(t,r,s),ce:(e,t)=>new CustomEvent(e,t)},rO=e=>Promise.resolve(e),zse=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),oO=[],sO=[],kse=(e,t)=>r=>{e.push(r),bI||(bI=!0,t&&Do.$flags$&4?EI(SI):Do.raf(SI))},aO=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){kh(r)}e.length=0},SI=()=>{aO(oO),aO(sO),(bI=oO.length>0)&&Do.raf(SI)},EI=e=>rO().then(e),Ose=kse(sO,!0),jse=()=>rO(),Rse=(e,t)=>typeof window>"u"?Promise.resolve():jse().then(()=>Ese([["mi-route-instructions",[[1,"mi-route-instructions",{activeStep:[1040],unit:[1],route:[16],hideIndoorSubsteps:[4,"hide-indoor-substeps"],travelMode:[1,"travel-mode"],originLocation:[16],originName:[1,"origin-name"],destinationLocation:[16],destinationName:[1,"destination-name"],translations:[16]}]]],["mi-route-instructions-step",[[1,"mi-route-instructions-step",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],destinationLocation:[1,"destination-location"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],disabled:[4],currentItems:[32]},[[0,"focusout","focusOutEventHandler"],[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],positionState:[32],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Pse={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class _x{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,r)}init(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||Pse,this.options=r,this.debug=r.debug}log(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"log","",!0)}warn(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","",!0)}error(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"error","")}deprecate(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}forward(t,r,s,u){return u&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${s}${this.prefix} ${t[0]}`),this.logger[r](t))}create(t){return new _x(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new _x(this.logger,t)}}var ul=new _x;class vx{constructor(){this.observers={}}on(t,r){return t.split(" ").forEach(s=>{this.observers[s]=this.observers[s]||[],this.observers[s].push(r)}),this}off(t,r){if(this.observers[t]){if(!r){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(s=>s!==r)}}emit(t){for(var r=arguments.length,s=new Array(r>1?r-1:0),u=1;u<r;u++)s[u-1]=arguments[u];this.observers[t]&&[].concat(this.observers[t]).forEach(m=>{m(...s)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(m=>{m.apply(m,[t,...s])})}}function Gg(){let e,t;const r=new Promise((s,u)=>{e=s,t=u});return r.resolve=e,r.reject=t,r}function lO(e){return e==null?"":""+e}function Use(e,t,r){e.forEach(s=>{t[s]&&(r[s]=t[s])})}function DI(e,t,r){function s(m){return m&&m.indexOf("###")>-1?m.replace(/###/g,"."):m}function u(){return!e||typeof e=="string"}const f=typeof t!="string"?[].concat(t):t.split(".");for(;f.length>1;){if(u())return{};const m=s(f.shift());!e[m]&&r&&(e[m]=new r),Object.prototype.hasOwnProperty.call(e,m)?e=e[m]:e={}}return u()?{}:{obj:e,k:s(f.shift())}}function cO(e,t,r){const{obj:s,k:u}=DI(e,t,Object);s[u]=r}function Bse(e,t,r,s){const{obj:u,k:f}=DI(e,t,Object);u[f]=u[f]||[],s&&(u[f]=u[f].concat(r)),s||u[f].push(r)}function xx(e,t){const{obj:r,k:s}=DI(e,t);if(r)return r[s]}function Fse(e,t,r){const s=xx(e,r);return s!==void 0?s:xx(t,r)}function uO(e,t,r){for(const s in t)s!=="__proto__"&&s!=="constructor"&&(s in e?typeof e[s]=="string"||e[s]instanceof String||typeof t[s]=="string"||t[s]instanceof String?r&&(e[s]=t[s]):uO(e[s],t[s],r):e[s]=t[s]);return e}function qf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Vse={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function $se(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Vse[t]):e}const Qse=[" ",",","?","!",";"];function Hse(e,t,r){t=t||"",r=r||"";const s=Qse.filter(m=>t.indexOf(m)<0&&r.indexOf(m)<0);if(s.length===0)return!0;const u=new RegExp(`(${s.map(m=>m==="?"?"\\?":m).join("|")})`);let f=!u.test(e);if(!f){const m=e.indexOf(r);m>0&&!u.test(e.substring(0,m))&&(f=!0)}return f}function bx(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const s=t.split(r);let u=e;for(let f=0;f<s.length;++f){if(!u||typeof u[s[f]]=="string"&&f+1<s.length)return;if(u[s[f]]===void 0){let m=2,a=s.slice(f,f+m).join(r),v=u[a];for(;v===void 0&&s.length>f+m;)m++,a=s.slice(f,f+m).join(r),v=u[a];if(v===void 0)return;if(v===null)return null;if(t.endsWith(a)){if(typeof v=="string")return v;if(a&&typeof v[a]=="string")return v[a]}const S=s.slice(f+m).join(r);return S?bx(v,S,r):void 0}u=u[s[f]]}return u}function Mx(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class hO extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const r=this.options.ns.indexOf(t);r>-1&&this.options.ns.splice(r,1)}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,m=u.ignoreJSONStructure!==void 0?u.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[t,r];s&&typeof s!="string"&&(a=a.concat(s)),s&&typeof s=="string"&&(a=a.concat(f?s.split(f):s)),t.indexOf(".")>-1&&(a=t.split("."));const v=xx(this.data,a);return v||!m||typeof s!="string"?v:bx(this.data&&this.data[t]&&this.data[t][r],s,f)}addResource(t,r,s,u){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const m=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let a=[t,r];s&&(a=a.concat(m?s.split(m):s)),t.indexOf(".")>-1&&(a=t.split("."),u=r,r=a[1]),this.addNamespaces(r),cO(this.data,a,u),f.silent||this.emit("added",t,r,s,u)}addResources(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in s)(typeof s[f]=="string"||Object.prototype.toString.apply(s[f])==="[object Array]")&&this.addResource(t,r,f,s[f],{silent:!0});u.silent||this.emit("added",t,r,s)}addResourceBundle(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[t,r];t.indexOf(".")>-1&&(a=t.split("."),u=s,s=r,r=a[1]),this.addNamespaces(r);let v=xx(this.data,a)||{};u?uO(v,s,f):v={...v,...s},cO(this.data,a,v),m.silent||this.emit("added",t,r,s)}removeResourceBundle(t,r){this.hasResourceBundle(t,r)&&delete this.data[t][r],this.removeNamespaces(r),this.emit("removed",t,r)}hasResourceBundle(t,r){return this.getResource(t,r)!==void 0}getResourceBundle(t,r){return r||(r=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,r)}:this.getResource(t,r)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const r=this.getDataByLanguage(t);return!!(r&&Object.keys(r)||[]).find(u=>r[u]&&Object.keys(r[u]).length>0)}toJSON(){return this.data}}var dO={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,r,s,u){return e.forEach(f=>{this.processors[f]&&(t=this.processors[f].process(t,r,s,u))}),t}};const fO={};class wx extends vx{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Use(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=r,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ul.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const s=this.resolve(t,r);return s&&s.res!==void 0}extractFromKey(t,r){let s=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");const u=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator;let f=r.ns||this.options.defaultNS||[];const m=s&&t.indexOf(s)>-1,a=!this.options.userDefinedKeySeparator&&!r.keySeparator&&!this.options.userDefinedNsSeparator&&!r.nsSeparator&&!Hse(t,s,u);if(m&&!a){const v=t.match(this.interpolator.nestingRegexp);if(v&&v.length>0)return{key:t,namespaces:f};const S=t.split(s);(s!==u||s===u&&this.options.ns.indexOf(S[0])>-1)&&(f=S.shift()),t=S.join(u)}return typeof f=="string"&&(f=[f]),{key:t,namespaces:f}}translate(t,r,s){if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const u=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,f=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:m,namespaces:a}=this.extractFromKey(t[t.length-1],r),v=a[a.length-1],S=r.lng||this.language,D=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(S&&S.toLowerCase()==="cimode"){if(D){const ee=r.nsSeparator||this.options.nsSeparator;return u?{res:`${v}${ee}${m}`,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:`${v}${ee}${m}`}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:S,usedNS:v,usedParams:this.getUsedParamsDetails(r)}:m}const N=this.resolve(t,r);let C=N&&N.res;const O=N&&N.usedKey||m,R=N&&N.exactUsedKey||m,V=Object.prototype.toString.apply(C),q=["[object Number]","[object Function]","[object RegExp]"],H=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,Y=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Y&&C&&(typeof C!="string"&&typeof C!="boolean"&&typeof C!="number")&&q.indexOf(V)<0&&!(typeof H=="string"&&V==="[object Array]")){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const ee=this.options.returnedObjectHandler?this.options.returnedObjectHandler(O,C,{...r,ns:a}):`key '${m} (${this.language})' returned an object instead of string.`;return u?(N.res=ee,N.usedParams=this.getUsedParamsDetails(r),N):ee}if(f){const ee=V==="[object Array]",fe=ee?[]:{},pe=ee?R:O;for(const he in C)if(Object.prototype.hasOwnProperty.call(C,he)){const oe=`${pe}${f}${he}`;fe[he]=this.translate(oe,{...r,joinArrays:!1,ns:a}),fe[he]===oe&&(fe[he]=C[he])}C=fe}}else if(Y&&typeof H=="string"&&V==="[object Array]")C=C.join(H),C&&(C=this.extendTranslation(C,t,r,s));else{let ee=!1,fe=!1;const pe=r.count!==void 0&&typeof r.count!="string",he=wx.hasDefaultValue(r),oe=pe?this.pluralResolver.getSuffix(S,r.count,r):"",Ve=r.ordinal&&pe?this.pluralResolver.getSuffix(S,r.count,{ordinal:!1}):"",De=r[`defaultValue${oe}`]||r[`defaultValue${Ve}`]||r.defaultValue;!this.isValidLookup(C)&&he&&(ee=!0,C=De),this.isValidLookup(C)||(fe=!0,C=m);const Ge=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&fe?void 0:C,it=he&&De!==C&&this.options.updateMissing;if(fe||ee||it){if(this.logger.log(it?"updateKey":"missingKey",S,v,m,it?De:C),f){const Le=this.resolve(m,{...r,keySeparator:!1});Le&&Le.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ee=[];const Ze=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Ze&&Ze[0])for(let Le=0;Le<Ze.length;Le++)Ee.push(Ze[Le]);else this.options.saveMissingTo==="all"?Ee=this.languageUtils.toResolveHierarchy(r.lng||this.language):Ee.push(r.lng||this.language);const ze=(Le,Ye,qe)=>{const Ie=he&&qe!==C?qe:Ge;this.options.missingKeyHandler?this.options.missingKeyHandler(Le,v,Ye,Ie,it,r):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Le,v,Ye,Ie,it,r),this.emit("missingKey",Le,v,Ye,C)};this.options.saveMissing&&(this.options.saveMissingPlurals&&pe?Ee.forEach(Le=>{this.pluralResolver.getSuffixes(Le,r).forEach(Ye=>{ze([Le],m+Ye,r[`defaultValue${Ye}`]||De)})}):ze(Ee,m,De))}C=this.extendTranslation(C,t,r,N,s),fe&&C===m&&this.options.appendNamespaceToMissingKey&&(C=`${v}:${m}`),(fe||ee)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?C=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${v}:${m}`:m,ee?C:void 0):C=this.options.parseMissingKeyHandler(C))}return u?(N.res=C,N.usedParams=this.getUsedParamsDetails(r),N):C}extendTranslation(t,r,s,u,f){var m=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||u.usedLng,u.usedNS,u.usedKey,{resolved:u});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init({...s,interpolation:{...this.options.interpolation,...s.interpolation}});const S=typeof t=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let D;if(S){const C=t.match(this.interpolator.nestingRegexp);D=C&&C.length}let N=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(N={...this.options.interpolation.defaultVariables,...N}),t=this.interpolator.interpolate(t,N,s.lng||this.language,s),S){const C=t.match(this.interpolator.nestingRegexp),O=C&&C.length;D<O&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&u&&u.res&&(s.lng=u.usedLng),s.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var C=arguments.length,O=new Array(C),R=0;R<C;R++)O[R]=arguments[R];return f&&f[0]===O[0]&&!s.context?(m.logger.warn(`It seems you are nesting recursively key: ${O[0]} in key: ${r[0]}`),null):m.translate(...O,r)},s)),s.interpolation&&this.interpolator.reset()}const a=s.postProcess||this.options.postProcess,v=typeof a=="string"?[a]:a;return t!=null&&v&&v.length&&s.applyPostProcessor!==!1&&(t=dO.handle(v,t,r,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...u,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),t}resolve(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s,u,f,m,a;return typeof t=="string"&&(t=[t]),t.forEach(v=>{if(this.isValidLookup(s))return;const S=this.extractFromKey(v,r),D=S.key;u=D;let N=S.namespaces;this.options.fallbackNS&&(N=N.concat(this.options.fallbackNS));const C=r.count!==void 0&&typeof r.count!="string",O=C&&!r.ordinal&&r.count===0&&this.pluralResolver.shouldUseIntlApi(),R=r.context!==void 0&&(typeof r.context=="string"||typeof r.context=="number")&&r.context!=="",V=r.lngs?r.lngs:this.languageUtils.toResolveHierarchy(r.lng||this.language,r.fallbackLng);N.forEach(q=>{this.isValidLookup(s)||(a=q,!fO[`${V[0]}-${q}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(fO[`${V[0]}-${q}`]=!0,this.logger.warn(`key "${u}" for languages "${V.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),V.forEach(H=>{if(this.isValidLookup(s))return;m=H;const Y=[D];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Y,D,H,q,r);else{let ee;C&&(ee=this.pluralResolver.getSuffix(H,r.count,r));const fe=`${this.options.pluralSeparator}zero`,pe=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(C&&(Y.push(D+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(D+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(D+fe)),R){const he=`${D}${this.options.contextSeparator}${r.context}`;Y.push(he),C&&(Y.push(he+ee),r.ordinal&&ee.indexOf(pe)===0&&Y.push(he+ee.replace(pe,this.options.pluralSeparator)),O&&Y.push(he+fe))}}let W;for(;W=Y.pop();)this.isValidLookup(s)||(f=W,s=this.getResource(H,q,W,r))}))})}),{res:s,usedKey:u,exactUsedKey:f,usedLng:m,usedNS:a}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,r,s,u):this.resourceStore.getResource(t,r,s,u)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const r=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],s=t.replace&&typeof t.replace!="string";let u=s?t.replace:t;if(s&&typeof t.count<"u"&&(u.count=t.count),this.options.interpolation.defaultVariables&&(u={...this.options.interpolation.defaultVariables,...u}),!s){u={...u};for(const f of r)delete u[f]}return u}static hasDefaultValue(t){const r="defaultValue";for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&r===s.substring(0,r.length)&&t[s]!==void 0)return!0;return!1}}function AI(e){return e.charAt(0).toUpperCase()+e.slice(1)}class pO{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ul.create("languageUtils")}getScriptPartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return null;const r=t.split("-");return r.length===2||(r.pop(),r[r.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(r.join("-"))}getLanguagePartFromCode(t){if(t=Mx(t),!t||t.indexOf("-")<0)return t;const r=t.split("-");return this.formatLanguageCode(r[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const r=["hans","hant","latn","cyrl","cans","mong","arab"];let s=t.split("-");return this.options.lowerCaseLng?s=s.map(u=>u.toLowerCase()):s.length===2?(s[0]=s[0].toLowerCase(),s[1]=s[1].toUpperCase(),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase()))):s.length===3&&(s[0]=s[0].toLowerCase(),s[1].length===2&&(s[1]=s[1].toUpperCase()),s[0]!=="sgn"&&s[2].length===2&&(s[2]=s[2].toUpperCase()),r.indexOf(s[1].toLowerCase())>-1&&(s[1]=AI(s[1].toLowerCase())),r.indexOf(s[2].toLowerCase())>-1&&(s[2]=AI(s[2].toLowerCase()))),s.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let r;return t.forEach(s=>{if(r)return;const u=this.formatLanguageCode(s);(!this.options.supportedLngs||this.isSupportedCode(u))&&(r=u)}),!r&&this.options.supportedLngs&&t.forEach(s=>{if(r)return;const u=this.getLanguagePartFromCode(s);if(this.isSupportedCode(u))return r=u;r=this.options.supportedLngs.find(f=>{if(f===u)return f;if(!(f.indexOf("-")<0&&u.indexOf("-")<0)&&f.indexOf(u)===0)return f})}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r}getFallbackCodes(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];let s=t[r];return s||(s=t[this.getScriptPartFromCode(r)]),s||(s=t[this.formatLanguageCode(r)]),s||(s=t[this.getLanguagePartFromCode(r)]),s||(s=t.default),s||[]}toResolveHierarchy(t,r){const s=this.getFallbackCodes(r||this.options.fallbackLng||[],t),u=[],f=m=>{m&&(this.isSupportedCode(m)?u.push(m):this.logger.warn(`rejecting language code not found in supportedLngs: ${m}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(t))):typeof t=="string"&&f(this.formatLanguageCode(t)),s.forEach(m=>{u.indexOf(m)<0&&f(this.formatLanguageCode(m))}),u}}let Yse=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Gse={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const Zse=["v1","v2","v3"],Wse=["v4"],mO={zero:0,one:1,two:2,few:3,many:4,other:5};function qse(){const e={};return Yse.forEach(t=>{t.lngs.forEach(r=>{e[r]={numbers:t.nr,plurals:Gse[t.fc]}})}),e}class Kse{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=r,this.logger=ul.create("pluralResolver"),(!this.options.compatibilityJSON||Wse.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=qse()}addRule(t,r){this.rules[t]=r}getRule(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Mx(t),{type:r.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return this.shouldUseIntlApi()?s&&s.resolvedOptions().pluralCategories.length>1:s&&s.numbers.length>1}getPluralFormsOfKey(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,s).map(u=>`${r}${u}`)}getSuffixes(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=this.getRule(t,r);return s?this.shouldUseIntlApi()?s.resolvedOptions().pluralCategories.sort((u,f)=>mO[u]-mO[f]).map(u=>`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${u}`):s.numbers.map(u=>this.getSuffix(t,u,r)):[]}getSuffix(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=this.getRule(t,s);return u?this.shouldUseIntlApi()?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${u.select(r)}`:this.getSuffixRetroCompatible(u,r):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,r){const s=t.noAbs?t.plurals(r):t.plurals(Math.abs(r));let u=t.numbers[s];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(u===2?u="plural":u===1&&(u=""));const f=()=>this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString();return this.options.compatibilityJSON==="v1"?u===1?"":typeof u=="number"?`_plural_${u.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?f():this.options.prepend&&s.toString()?this.options.prepend+s.toString():s.toString()}shouldUseIntlApi(){return!Zse.includes(this.options.compatibilityJSON)}}function gO(e,t,r){let s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Fse(e,t,r);return!f&&u&&typeof r=="string"&&(f=bx(e,r,s),f===void 0&&(f=bx(t,r,s))),f}class Xse{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(r=>r),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const r=t.interpolation;this.escape=r.escape!==void 0?r.escape:$se,this.escapeValue=r.escapeValue!==void 0?r.escapeValue:!0,this.useRawValueToEscape=r.useRawValueToEscape!==void 0?r.useRawValueToEscape:!1,this.prefix=r.prefix?qf(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?qf(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?qf(r.nestingPrefix):r.nestingPrefixEscaped||qf("$t("),this.nestingSuffix=r.nestingSuffix?qf(r.nestingSuffix):r.nestingSuffixEscaped||qf(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0?r.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const r=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(r,"g");const s=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(s,"g")}interpolate(t,r,s,u){let f,m,a;const v=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function S(R){return R.replace(/\$/g,"$$$$")}const D=R=>{if(R.indexOf(this.formatSeparator)<0){const Y=gO(r,v,R,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Y,void 0,s,{...u,...r,interpolationkey:R}):Y}const V=R.split(this.formatSeparator),q=V.shift().trim(),H=V.join(this.formatSeparator).trim();return this.format(gO(r,v,q,this.options.keySeparator,this.options.ignoreJSONStructure),H,s,{...u,...r,interpolationkey:q})};this.resetRegExp();const N=u&&u.missingInterpolationHandler||this.options.missingInterpolationHandler,C=u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:R=>S(R)},{regex:this.regexp,safeValue:R=>this.escapeValue?S(this.escape(R)):S(R)}].forEach(R=>{for(a=0;f=R.regex.exec(t);){const V=f[1].trim();if(m=D(V),m===void 0)if(typeof N=="function"){const H=N(t,f,u);m=typeof H=="string"?H:""}else if(u&&Object.prototype.hasOwnProperty.call(u,V))m="";else if(C){m=f[0];continue}else this.logger.warn(`missed to pass in variable ${V} for interpolating ${t}`),m="";else typeof m!="string"&&!this.useRawValueToEscape&&(m=lO(m));const q=R.safeValue(m);if(t=t.replace(f[0],q),C?(R.regex.lastIndex+=m.length,R.regex.lastIndex-=f[0].length):R.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),t}nest(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u,f,m;function a(v,S){const D=this.nestingOptionsSeparator;if(v.indexOf(D)<0)return v;const N=v.split(new RegExp(`${D}[ ]*{`));let C=`{${N[1]}`;v=N[0],C=this.interpolate(C,m);const O=C.match(/'/g),R=C.match(/"/g);(O&&O.length%2===0&&!R||R.length%2!==0)&&(C=C.replace(/'/g,'"'));try{m=JSON.parse(C),S&&(m={...S,...m})}catch(V){return this.logger.warn(`failed parsing options string in nesting for key ${v}`,V),`${v}${D}${C}`}return delete m.defaultValue,v}for(;u=this.nestingRegexp.exec(t);){let v=[];m={...s},m=m.replace&&typeof m.replace!="string"?m.replace:m,m.applyPostProcessor=!1,delete m.defaultValue;let S=!1;if(u[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(u[1])){const D=u[1].split(this.formatSeparator).map(N=>N.trim());u[1]=D.shift(),v=D,S=!0}if(f=r(a.call(this,u[1].trim(),m),m),f&&u[0]===t&&typeof f!="string")return f;typeof f!="string"&&(f=lO(f)),f||(this.logger.warn(`missed to resolve ${u[1]} for nesting ${t}`),f=""),S&&(f=v.reduce((D,N)=>this.format(D,N,s.lng,{...s,interpolationkey:u[1].trim()}),f.trim())),t=t.replace(u[0],f),this.regexp.lastIndex=0}return t}}function Jse(e){let t=e.toLowerCase().trim();const r={};if(e.indexOf("(")>-1){const s=e.split("(");t=s[0].toLowerCase().trim();const u=s[1].substring(0,s[1].length-1);t==="currency"&&u.indexOf(":")<0?r.currency||(r.currency=u.trim()):t==="relativetime"&&u.indexOf(":")<0?r.range||(r.range=u.trim()):u.split(";").forEach(m=>{if(!m)return;const[a,...v]=m.split(":"),S=v.join(":").trim().replace(/^'+|'+$/g,"");r[a.trim()]||(r[a.trim()]=S),S==="false"&&(r[a.trim()]=!1),S==="true"&&(r[a.trim()]=!0),isNaN(S)||(r[a.trim()]=parseInt(S,10))})}return{formatName:t,formatOptions:r}}function Kf(e){const t={};return function(s,u,f){const m=u+JSON.stringify(f);let a=t[m];return a||(a=e(Mx(u),f),t[m]=a),a(s)}}class eae{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=ul.create("formatter"),this.options=t,this.formats={number:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s});return f=>u.format(f)}),currency:Kf((r,s)=>{const u=new Intl.NumberFormat(r,{...s,style:"currency"});return f=>u.format(f)}),datetime:Kf((r,s)=>{const u=new Intl.DateTimeFormat(r,{...s});return f=>u.format(f)}),relativetime:Kf((r,s)=>{const u=new Intl.RelativeTimeFormat(r,{...s});return f=>u.format(f,s.range||"day")}),list:Kf((r,s)=>{const u=new Intl.ListFormat(r,{...s});return f=>u.format(f)})},this.init(t)}init(t){const s=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=s.formatSeparator?s.formatSeparator:s.formatSeparator||","}add(t,r){this.formats[t.toLowerCase().trim()]=r}addCached(t,r){this.formats[t.toLowerCase().trim()]=Kf(r)}format(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return r.split(this.formatSeparator).reduce((a,v)=>{const{formatName:S,formatOptions:D}=Jse(v);if(this.formats[S]){let N=a;try{const C=u&&u.formatParams&&u.formatParams[u.interpolationkey]||{},O=C.locale||C.lng||u.locale||u.lng||s;N=this.formats[S](a,O,{...D,...u,...C})}catch(C){this.logger.warn(C)}return N}else this.logger.warn(`there was no format function for ${S}`);return a},t)}}function tae(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class nae extends vx{constructor(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=r,this.services=s,this.languageUtils=s.languageUtils,this.options=u,this.logger=ul.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=u.maxParallelReads||10,this.readingCalls=0,this.maxRetries=u.maxRetries>=0?u.maxRetries:5,this.retryTimeout=u.retryTimeout>=1?u.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(s,u.backend,u)}queueLoad(t,r,s,u){const f={},m={},a={},v={};return t.forEach(S=>{let D=!0;r.forEach(N=>{const C=`${S}|${N}`;!s.reload&&this.store.hasResourceBundle(S,N)?this.state[C]=2:this.state[C]<0||(this.state[C]===1?m[C]===void 0&&(m[C]=!0):(this.state[C]=1,D=!1,m[C]===void 0&&(m[C]=!0),f[C]===void 0&&(f[C]=!0),v[N]===void 0&&(v[N]=!0)))}),D||(a[S]=!0)}),(Object.keys(f).length||Object.keys(m).length)&&this.queue.push({pending:m,pendingCount:Object.keys(m).length,loaded:{},errors:[],callback:u}),{toLoad:Object.keys(f),pending:Object.keys(m),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(v)}}loaded(t,r,s){const u=t.split("|"),f=u[0],m=u[1];r&&this.emit("failedLoading",f,m,r),s&&this.store.addResourceBundle(f,m,s),this.state[t]=r?-1:2;const a={};this.queue.forEach(v=>{Bse(v.loaded,[f],m),tae(v,t),r&&v.errors.push(r),v.pendingCount===0&&!v.done&&(Object.keys(v.loaded).forEach(S=>{a[S]||(a[S]={});const D=v.loaded[S];D.length&&D.forEach(N=>{a[S][N]===void 0&&(a[S][N]=!0)})}),v.done=!0,v.errors.length?v.callback(v.errors):v.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(v=>!v.done)}read(t,r,s){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,m=arguments.length>5?arguments[5]:void 0;if(!t.length)return m(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:r,fcName:s,tried:u,wait:f,callback:m});return}this.readingCalls++;const a=(S,D)=>{if(this.readingCalls--,this.waitingReads.length>0){const N=this.waitingReads.shift();this.read(N.lng,N.ns,N.fcName,N.tried,N.wait,N.callback)}if(S&&D&&u<this.maxRetries){setTimeout(()=>{this.read.call(this,t,r,s,u+1,f*2,m)},f);return}m(S,D)},v=this.backend[s].bind(this.backend);if(v.length===2){try{const S=v(t,r);S&&typeof S.then=="function"?S.then(D=>a(null,D)).catch(a):a(null,S)}catch(S){a(S)}return}return v(t,r,a)}prepareLoading(t,r){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),u&&u();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof r=="string"&&(r=[r]);const f=this.queueLoad(t,r,s,u);if(!f.toLoad.length)return f.pending.length||u(),null;f.toLoad.forEach(m=>{this.loadOne(m)})}load(t,r,s){this.prepareLoading(t,r,{},s)}reload(t,r,s){this.prepareLoading(t,r,{reload:!0},s)}loadOne(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const s=t.split("|"),u=s[0],f=s[1];this.read(u,f,"read",void 0,void 0,(m,a)=>{m&&this.logger.warn(`${r}loading namespace ${f} for language ${u} failed`,m),!m&&a&&this.logger.log(`${r}loaded namespace ${f} for language ${u}`,a),this.loaded(t,m,a)})}saveMissing(t,r,s,u,f){let m=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(r)){this.logger.warn(`did not save key "${s}" as the namespace "${r}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(s==null||s==="")){if(this.backend&&this.backend.create){const v={...m,isUpdate:f},S=this.backend.create.bind(this.backend);if(S.length<6)try{let D;S.length===5?D=S(t,r,s,u,v):D=S(t,r,s,u),D&&typeof D.then=="function"?D.then(N=>a(null,N)).catch(a):a(null,D)}catch(D){a(D)}else S(t,r,s,u,a,v)}!t||!t[0]||this.store.addResource(t[0],r,s,u)}}}function yO(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let r={};if(typeof t[1]=="object"&&(r=t[1]),typeof t[1]=="string"&&(r.defaultValue=t[1]),typeof t[2]=="string"&&(r.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const s=t[3]||t[2];Object.keys(s).forEach(u=>{r[u]=s[u]})}return r},interpolation:{escapeValue:!0,format:(e,t,r,s)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function _O(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Ix(){}function iae(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(r=>{typeof e[r]=="function"&&(e[r]=e[r].bind(e))})}class Zg extends vx{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(super(),this.options=_O(t),this.services={},this.logger=ul,this.modules={external:[]},iae(this),r&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,r),this;setTimeout(()=>{this.init(t,r)},0)}}init(){var t=this;let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof r=="function"&&(s=r,r={}),!r.defaultNS&&r.defaultNS!==!1&&r.ns&&(typeof r.ns=="string"?r.defaultNS=r.ns:r.ns.indexOf("translation")<0&&(r.defaultNS=r.ns[0]));const u=yO();this.options={...u,...this.options,..._O(r)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...u.interpolation,...this.options.interpolation}),r.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=r.keySeparator),r.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=r.nsSeparator);function f(D){return D?typeof D=="function"?new D:D:null}if(!this.options.isClone){this.modules.logger?ul.init(f(this.modules.logger),this.options):ul.init(null,this.options);let D;this.modules.formatter?D=this.modules.formatter:typeof Intl<"u"&&(D=eae);const N=new pO(this.options);this.store=new hO(this.options.resources,this.options);const C=this.services;C.logger=ul,C.resourceStore=this.store,C.languageUtils=N,C.pluralResolver=new Kse(N,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),D&&(!this.options.interpolation.format||this.options.interpolation.format===u.interpolation.format)&&(C.formatter=f(D),C.formatter.init(C,this.options),this.options.interpolation.format=C.formatter.format.bind(C.formatter)),C.interpolator=new Xse(this.options),C.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},C.backendConnector=new nae(f(this.modules.backend),C.resourceStore,C,this.options),C.backendConnector.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.languageDetector&&(C.languageDetector=f(this.modules.languageDetector),C.languageDetector.init&&C.languageDetector.init(C,this.options.detection,this.options)),this.modules.i18nFormat&&(C.i18nFormat=f(this.modules.i18nFormat),C.i18nFormat.init&&C.i18nFormat.init(this)),this.translator=new wx(this.services,this.options),this.translator.on("*",function(O){for(var R=arguments.length,V=new Array(R>1?R-1:0),q=1;q<R;q++)V[q-1]=arguments[q];t.emit(O,...V)}),this.modules.external.forEach(O=>{O.init&&O.init(this)})}if(this.format=this.options.interpolation.format,s||(s=Ix),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const D=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);D.length>0&&D[0]!=="dev"&&(this.options.lng=D[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(D=>{this[D]=function(){return t.store[D](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(D=>{this[D]=function(){return t.store[D](...arguments),t}});const v=Gg(),S=()=>{const D=(N,C)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),v.resolve(C),s(N,C)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return D(null,this.t.bind(this));this.changeLanguage(this.options.lng,D)};return this.options.resources||!this.options.initImmediate?S():setTimeout(S,0),v}loadResources(t){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const u=typeof t=="string"?t:this.language;if(typeof t=="function"&&(s=t),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return s();const f=[],m=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(S=>{S!=="cimode"&&f.indexOf(S)<0&&f.push(S)})};u?m(u):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(v=>m(v)),this.options.preload&&this.options.preload.forEach(a=>m(a)),this.services.backendConnector.load(f,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),s(a)})}else s(null)}reloadResources(t,r,s){const u=Gg();return t||(t=this.languages),r||(r=this.options.ns),s||(s=Ix),this.services.backendConnector.reload(t,r,f=>{u.resolve(),s(f)}),u}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&dO.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let r=0;r<this.languages.length;r++){const s=this.languages[r];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}}changeLanguage(t,r){var s=this;this.isLanguageChangingTo=t;const u=Gg();this.emit("languageChanging",t);const f=v=>{this.language=v,this.languages=this.services.languageUtils.toResolveHierarchy(v),this.resolvedLanguage=void 0,this.setResolvedLanguage(v)},m=(v,S)=>{S?(f(S),this.translator.changeLanguage(S),this.isLanguageChangingTo=void 0,this.emit("languageChanged",S),this.logger.log("languageChanged",S)):this.isLanguageChangingTo=void 0,u.resolve(function(){return s.t(...arguments)}),r&&r(v,function(){return s.t(...arguments)})},a=v=>{!t&&!v&&this.services.languageDetector&&(v=[]);const S=typeof v=="string"?v:this.services.languageUtils.getBestMatchFromCodes(v);S&&(this.language||f(S),this.translator.language||this.translator.changeLanguage(S),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(S)),this.loadResources(S,D=>{m(D,S)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(t),u}getFixedT(t,r,s){var u=this;const f=function(m,a){let v;if(typeof a!="object"){for(var S=arguments.length,D=new Array(S>2?S-2:0),N=2;N<S;N++)D[N-2]=arguments[N];v=u.options.overloadTranslationOptionHandler([m,a].concat(D))}else v={...a};v.lng=v.lng||f.lng,v.lngs=v.lngs||f.lngs,v.ns=v.ns||f.ns,v.keyPrefix=v.keyPrefix||s||f.keyPrefix;const C=u.options.keySeparator||".";let O;return v.keyPrefix&&Array.isArray(m)?O=m.map(R=>`${v.keyPrefix}${C}${R}`):O=v.keyPrefix?`${v.keyPrefix}${C}${m}`:m,u.t(O,v)};return typeof t=="string"?f.lng=t:f.lngs=t,f.ns=r,f.keyPrefix=s,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const s=r.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=this.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};if(r.precheck){const a=r.precheck(this,m);if(a!==void 0)return a}return!!(this.hasResourceBundle(s,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||m(s,t)&&(!u||m(f,t)))}loadNamespaces(t,r){const s=Gg();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(u=>{this.options.ns.indexOf(u)<0&&this.options.ns.push(u)}),this.loadResources(u=>{s.resolve(),r&&r(u)}),s):(r&&r(),Promise.resolve())}loadLanguages(t,r){const s=Gg();typeof t=="string"&&(t=[t]);const u=this.options.preload||[],f=t.filter(m=>u.indexOf(m)<0);return f.length?(this.options.preload=u.concat(f),this.loadResources(m=>{s.resolve(),r&&r(m)}),s):(r&&r(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const r=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],s=this.services&&this.services.languageUtils||new pO(yO());return r.indexOf(s.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;return new Zg(t,r)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ix;const s=t.forkResourceStore;s&&delete t.forkResourceStore;const u={...this.options,...t,isClone:!0},f=new Zg(u);return(t.debug!==void 0||t.prefix!==void 0)&&(f.logger=f.logger.clone(t)),["store","services","language"].forEach(a=>{f[a]=this[a]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},s&&(f.store=new hO(this.store.data,u),f.services.resourceStore=f.store),f.translator=new wx(f.services,u),f.translator.on("*",function(a){for(var v=arguments.length,S=new Array(v>1?v-1:0),D=1;D<v;D++)S[D-1]=arguments[D];f.emit(a,...S)}),f.init(u,r),f.translator.options=u,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Oo=Zg.createInstance();Oo.createInstance=Zg.createInstance,Oo.createInstance,Oo.dir,Oo.init,Oo.loadResources,Oo.reloadResources,Oo.use,Oo.changeLanguage,Oo.getFixedT;const CI=Oo.t;Oo.exists,Oo.setDefaultNamespace,Oo.hasLoadedNamespace,Oo.loadNamespaces,Oo.loadLanguages;function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s])}return e},NI.apply(this,arguments)}function rae(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const vO={};function LI(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&vO[t[0]]||(typeof t[0]=="string"&&(vO[t[0]]=new Date),rae(...t))}const xO=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function bO(e,t,r){e.loadNamespaces(t,xO(e,r))}function MO(e,t,r,s){typeof r=="string"&&(r=[r]),r.forEach(u=>{e.options.ns.indexOf(u)<0&&e.options.ns.push(u)}),e.loadLanguages(t,xO(e,s))}function oae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const s=t.languages[0],u=t.options?t.options.fallbackLng:!1,f=t.languages[t.languages.length-1];if(s.toLowerCase()==="cimode")return!0;const m=(a,v)=>{const S=t.services.backendConnector.state[`${a}|${v}`];return S===-1||S===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!m(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(s,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||m(s,e)&&(!u||m(f,e)))}function sae(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(LI("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(u,f)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&u.services.backendConnector.backend&&u.isLanguageChangingTo&&!f(u.isLanguageChangingTo,e))return!1}}):oae(e,t,r)}const aae=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,lae={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},cae=e=>lae[e];let zI={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(aae,cae)};function uae(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};zI={...zI,...e}}function hae(){return zI}let wO;function dae(e){wO=e}function fae(){return wO}const pae={type:"3rdParty",init(e){uae(e.options.react),dae(e)}},mae=Oe.createContext();class gae{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const yae=(e,t)=>{const r=Oe.useRef();return Oe.useEffect(()=>{r.current=t?r.current:e},[e,t]),r.current};function ua(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:s,defaultNS:u}=Oe.useContext(mae)||{},f=r||s||fae();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new gae),!f){LI("You will need to pass in an i18next instance by using initReactI18next");const W=(fe,pe)=>typeof pe=="string"?pe:pe&&typeof pe=="object"&&typeof pe.defaultValue=="string"?pe.defaultValue:Array.isArray(fe)?fe[fe.length-1]:fe,ee=[W,{},!1];return ee.t=W,ee.i18n={},ee.ready=!1,ee}f.options.react&&f.options.react.wait!==void 0&&LI("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const m={...hae(),...f.options.react,...t},{useSuspense:a,keyPrefix:v}=m;let S=e||u||f.options&&f.options.defaultNS;S=typeof S=="string"?[S]:S||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(S);const D=(f.isInitialized||f.initializedStoreOnce)&&S.every(W=>sae(W,f,m));function N(){return f.getFixedT(t.lng||null,m.nsMode==="fallback"?S:S[0],v)}const[C,O]=Oe.useState(N);let R=S.join();t.lng&&(R=`${t.lng}${R}`);const V=yae(R),q=Oe.useRef(!0);Oe.useEffect(()=>{const{bindI18n:W,bindI18nStore:ee}=m;q.current=!0,!D&&!a&&(t.lng?MO(f,t.lng,S,()=>{q.current&&O(N)}):bO(f,S,()=>{q.current&&O(N)})),D&&V&&V!==R&&q.current&&O(N);function fe(){q.current&&O(N)}return W&&f&&f.on(W,fe),ee&&f&&f.store.on(ee,fe),()=>{q.current=!1,W&&f&&W.split(" ").forEach(pe=>f.off(pe,fe)),ee&&f&&ee.split(" ").forEach(pe=>f.store.off(pe,fe))}},[f,R]);const H=Oe.useRef(!0);Oe.useEffect(()=>{q.current&&!H.current&&O(N),H.current=!1},[f,v]);const Y=[C,f,D];if(Y.t=C,Y.i18n=f,Y.ready=D,D||!D&&!a)return Y;throw new Promise(W=>{t.lng?MO(f,t.lng,S,()=>W()):bO(f,S,()=>W())})}const _ae={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch",Accessibility:"Accessibility","No route found":"No route found","My position":"My position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Turn on Accessibility to get directions that avoid stairs and escalators.","Go!":"Go!",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route"},vae={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift",Accessibility:"Tilgængelig rute","No route found":"Ingen rute fundet","My position":"Min position","Turn on Accessibility to get directions that avoid stairs and escalators.":'Slå "Tilgængelig rute" til for at få en rutevejledning uden trapper og rulletrapper.',"Go!":"Go!",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten"},xae={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Suche nach Name, Kategorie, Gebäude...","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Öffne vollständige Beschreibung",Locations:"Locations","Directions not available":"Beschreibung nicht verfügbar","Start directions":"Starte Beschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlasse das",Enter:"Gehe in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren",Accessibility:"Barrierefrei","No route found":"Keine Route gefunden","My position":"Meine Position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Schalte Barrierefrei ein, um Treppen und Rolltreppen zu vermeiden.","Go!":"Start!",Venues:"Standorte","Select venue":"Wähle Standort",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden"},bae={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer",Accessibility:"Accessibilité","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Turn on Accessibility to get directions that avoid stairs and escalators.":"Activez l'accessibilité pour obtenir des itinéraires qui évitent les escaliers.","Go!":"C'est parti!",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire"};function Mae(e){Oo.use(pae).init({resources:{en:{translation:_ae},da:{translation:vae},de:{translation:xae},fr:{translation:bae}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const K_e="",ls={Google:"google",Mapbox:"mapbox"},bs=ui({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),wae=e=>{const t=on(bs),r=Oe.useRef(),[s,u]=Oe.useState([]);Oe.useEffect(()=>{(async()=>{if(t&&e){for(const a of s)r.current.disableLiveData(a);r.current=new window.mapsindoors.LiveDataManager(t);const m=await r.current.LiveDataInfo.activeDomainTypes();for(const a of m)await r.current.enableLiveData(a);u(m)}})()},[e,t])},X_e="";var Iae=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var s,u,f;if(Array.isArray(t)){if(s=t.length,s!=r.length)return!1;for(u=s;u--!==0;)if(!e(t[u],r[u]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(f=Object.keys(t),s=f.length,s!==Object.keys(r).length)return!1;for(u=s;u--!==0;)if(!Object.prototype.hasOwnProperty.call(r,f[u]))return!1;for(u=s;u--!==0;){var m=f[u];if(!e(t[m],r[m]))return!1}return!0}return t!==t&&r!==r};const IO="__googleMapsScriptId";var Xf;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(Xf||(Xf={}));let Tae=class mm{constructor({apiKey:t,authReferrerPolicy:r,channel:s,client:u,id:f=IO,language:m,libraries:a=[],mapIds:v,nonce:S,region:D,retries:N=3,url:C="https://maps.googleapis.com/maps/api/js",version:O}){if(this.CALLBACK="__googleMapsCallback",this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=t,this.authReferrerPolicy=r,this.channel=s,this.client=u,this.id=f||IO,this.language=m,this.libraries=a,this.mapIds=v,this.nonce=S,this.region=D,this.retries=N,this.url=C,this.version=O,mm.instance){if(!Iae(this.options,mm.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(mm.instance.options)}`);return mm.instance}mm.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Xf.FAILURE:this.done?Xf.SUCCESS:this.loading?Xf.LOADING:Xf.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let t=this.url;return t+=`?callback=${this.CALLBACK}`,this.apiKey&&(t+=`&key=${this.apiKey}`),this.channel&&(t+=`&channel=${this.channel}`),this.client&&(t+=`&client=${this.client}`),this.libraries.length>0&&(t+=`&libraries=${this.libraries.join(",")}`),this.language&&(t+=`&language=${this.language}`),this.region&&(t+=`&region=${this.region}`),this.version&&(t+=`&v=${this.version}`),this.mapIds&&(t+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(t+=`&auth_referrer_policy=${this.authReferrerPolicy}`),t}deleteScript(){const t=document.getElementById(this.id);t&&t.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((t,r)=>{this.loadCallback(s=>{s?r(s.error):t(window.google)})})}loadCallback(t){this.callbacks.push(t),this.execute()}setScript(){if(document.getElementById(this.id)){this.callback();return}const t=this.createUrl(),r=document.createElement("script");r.id=this.id,r.type="text/javascript",r.src=t,r.onerror=this.loadErrorCallback.bind(this),r.defer=!0,r.async=!0,this.nonce&&(r.nonce=this.nonce),document.head.appendChild(r)}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(t){if(this.errors.push(t),this.errors.length<=this.retries){const r=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${r} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},r)}else this.onerrorEvent=t,this.callback()}setCallback(){window.__googleMapsCallback=this.callback.bind(this)}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(t=>{t(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setCallback(),this.setScript())}}};const Tx=ui({key:"gmApiKey",default:null}),Aa=ui({key:"primaryColor",default:"#005655"}),TO=ui({key:"gmMapId",default:null}),Wg=ui({key:"bearing",default:0}),qg=ui({key:"pitch",default:0}),SO=e=>{const[t,r]=Oe.useState(!1);return Oe.useEffect(()=>{const s=window.matchMedia(e);s.matches!==t&&r(s.matches);const u=()=>r(s.matches);return window.addEventListener("resize",u),()=>window.removeEventListener("resize",u)},[t,e]),t},oc=()=>SO("(min-width: 992px)");function Sae({onMapView:e,onPositionControl:t}){const r=on(Tx),s=on(TO),[u,f]=Oe.useState(),[m,a]=Oe.useState(),[v,S]=Oe.useState(!1),[D,N]=Oe.useState(!1),[C,O]=Oe.useState(!1),R=on(bs),V=on(Aa),q=on(Wg),H=on(qg),Y=oc();return Oe.useEffect(()=>{new Tae({apiKey:r,version:"quarterly",libraries:["geometry","places"]}).load().then(ee=>{f(ee);const fe={element:document.getElementById("map"),disableDefaultUI:!0,center:{lat:0,lng:0},zoom:21,mapId:s,heading:isNaN(parseInt(q))?0:parseInt(q),tilt:isNaN(parseInt(H))?0:parseInt(H)},pe=new window.mapsindoors.mapView.GoogleMapsView(fe);a(pe);const he=new window.mapsindoors.directions.GoogleMapsProvider;e(pe,he)})},[]),Oe.useEffect(()=>{if(R&&m&&u&&!D){const W=document.createElement("mi-my-position");W.mapsindoors=R,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),N(!0),t(W)}if(R&&m&&u&&!v){const W=document.createElement("mi-floor-selector");W.mapsindoors=R,W.primaryColor=V,m.getMap().controls[u.maps.ControlPosition.RIGHT_TOP].push(W),S(!0)}R&&m&&u&&!C&&Y&&(m.getMap().setOptions({zoomControl:!0,zoomControlOptions:{style:u.maps.ZoomControlStyle.DEFAULT,position:u.maps.ControlPosition.RIGHT_TOP}}),O(!0))},[R,m,u,v,D]),Je.jsx("div",{className:"map-container",id:"map","data-sentry-component":"GoogleMapsMap","data-sentry-source-file":"GoogleMapsMap.jsx"})}var EO={exports:{}};(function(e,t){(function(r,s){e.exports=s()})(Lc,function(){var r,s,u;function f(a,v){if(!r)r=v;else if(!s)s=v;else{var S="self.onerror = function() { console.error('An error occurred while parsing the WebWorker bundle. This is most likely due to improper transpilation by Babel; please see https://docs.mapbox.com/mapbox-gl-js/guides/install/#transpiling'); }; var sharedChunk = {}; ("+r+")(sharedChunk); ("+s+")(sharedChunk); self.onerror = null;",D={};r(D),u=v(D),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(u.workerUrl=window.URL.createObjectURL(new Blob([S],{type:"text/javascript"})))}}f(["exports"],function(a){var v="3.3.0";let S;const D={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(S==null){const i=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{S=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):i}catch{S=i}}return S},get API_TILEJSON_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/v[0-9]*\/.*\.json.*$)/i},get API_SPRITE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*\/sprite.*\..*$)/i},get API_FONTS_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/fonts\/v[0-9]*\/)(.*\.pbf.*$)/i},get API_STYLE_REGEX(){return/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/styles\/v[0-9]*\/)(.*$)/i},get API_CDN_URL_REGEX(){return/^((https?:)?\/\/)?api\.mapbox\.c(n|om)(\/mapbox-gl-js\/)(.*$)/i},get EVENTS_URL(){if(!D.API_URL)return null;try{const i=new URL(D.API_URL);return i.hostname==="api.mapbox.cn"?"https://events.mapbox.cn/events/v2":i.hostname==="api.mapbox.com"?"https://events.mapbox.com/events/v2":null}catch{return null}},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",RASTERARRAYS_URL_PREFIX:"rasterarrays/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,DEFAULT_STYLE:"mapbox://styles/mapbox/standard",MAX_PARALLEL_IMAGE_REQUESTS:16,DRACO_URL:"https://api.mapbox.com/mapbox-gl-js/draco_decoder_gltf_v1.5.6.wasm",MESHOPT_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_base_v0.20.wasm",MESHOPT_SIMD_URL:"https://api.mapbox.com/mapbox-gl-js/meshopt_simd_v0.20.wasm",GLYPHS_URL:"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"};function N(i){return D.API_URL_REGEX.test(i)}function C(i){return i.indexOf("mapbox:")===0}function O(i){return D.API_CDN_URL_REGEX.test(i)}function R(i){return D.API_SPRITE_REGEX.test(i)}function V(i){return D.API_STYLE_REGEX.test(i)&&!R(i)}const q={create:"create",load:"load",fullLoad:"fullLoad"};function H(i){const n=i.name.split("?")[0];return O(n)&&n.includes("mapbox-gl.js")?"javascript":O(n)&&n.includes("mapbox-gl.css")?"css":function(o){return D.API_FONTS_REGEX.test(o)}(n)?"fontRange":R(n)?"sprite":V(n)?"style":function(o){return D.API_TILEJSON_REGEX.test(o)}(n)?"tilejson":"other"}function Y(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var W=ee;function ee(i,n,o,c){this.cx=3*i,this.bx=3*(o-i)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*n,this.by=3*(c-n)-this.cy,this.ay=1-this.cy-this.by,this.p1x=i,this.p1y=n,this.p2x=o,this.p2y=c}ee.prototype={sampleCurveX:function(i){return((this.ax*i+this.bx)*i+this.cx)*i},sampleCurveY:function(i){return((this.ay*i+this.by)*i+this.cy)*i},sampleCurveDerivativeX:function(i){return(3*this.ax*i+2*this.bx)*i+this.cx},solveCurveX:function(i,n){if(n===void 0&&(n=1e-6),i<0)return 0;if(i>1)return 1;for(var o=i,c=0;c<8;c++){var d=this.sampleCurveX(o)-i;if(Math.abs(d)<n)return o;var p=this.sampleCurveDerivativeX(o);if(Math.abs(p)<1e-6)break;o-=d/p}var _=0,b=1;for(o=i,c=0;c<20&&(d=this.sampleCurveX(o),!(Math.abs(d-i)<n));c++)i>d?_=o:b=o,o=.5*(b-_)+_;return o},solve:function(i,n){return this.sampleCurveY(this.solveCurveX(i,n))}};var fe=Y(W),pe=he;function he(i,n){this.x=i,this.y=n}he.prototype={clone:function(){return new he(this.x,this.y)},add:function(i){return this.clone()._add(i)},sub:function(i){return this.clone()._sub(i)},multByPoint:function(i){return this.clone()._multByPoint(i)},divByPoint:function(i){return this.clone()._divByPoint(i)},mult:function(i){return this.clone()._mult(i)},div:function(i){return this.clone()._div(i)},rotate:function(i){return this.clone()._rotate(i)},rotateAround:function(i,n){return this.clone()._rotateAround(i,n)},matMult:function(i){return this.clone()._matMult(i)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(i){return this.x===i.x&&this.y===i.y},dist:function(i){return Math.sqrt(this.distSqr(i))},distSqr:function(i){var n=i.x-this.x,o=i.y-this.y;return n*n+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(i){return Math.atan2(this.y-i.y,this.x-i.x)},angleWith:function(i){return this.angleWithSep(i.x,i.y)},angleWithSep:function(i,n){return Math.atan2(this.x*n-this.y*i,this.x*i+this.y*n)},_matMult:function(i){var n=i[2]*this.x+i[3]*this.y;return this.x=i[0]*this.x+i[1]*this.y,this.y=n,this},_add:function(i){return this.x+=i.x,this.y+=i.y,this},_sub:function(i){return this.x-=i.x,this.y-=i.y,this},_mult:function(i){return this.x*=i,this.y*=i,this},_div:function(i){return this.x/=i,this.y/=i,this},_multByPoint:function(i){return this.x*=i.x,this.y*=i.y,this},_divByPoint:function(i){return this.x/=i.x,this.y/=i.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var i=this.y;return this.y=this.x,this.x=-i,this},_rotate:function(i){var n=Math.cos(i),o=Math.sin(i),c=o*this.x+n*this.y;return this.x=n*this.x-o*this.y,this.y=c,this},_rotateAround:function(i,n){var o=Math.cos(i),c=Math.sin(i),d=n.y+c*(this.x-n.x)+o*(this.y-n.y);return this.x=n.x+o*(this.x-n.x)-c*(this.y-n.y),this.y=d,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},he.convert=function(i){return i instanceof he?i:Array.isArray(i)?new he(i[0],i[1]):i};var oe=Y(pe);const Ve=Math.PI/180,De=180/Math.PI;function Ae(i){return i*Ve}function Ge(i){return i*De}const it=[[0,0],[1,0],[1,1],[0,1]];function Ee(i){if(i<=0)return 0;if(i>=1)return 1;const n=i*i,o=n*i;return 4*(i<.5?o:3*(i-n)+o-.75)}function Ze(i,n,o,c){const d=new fe(i,n,o,c);return function(p){return d.solve(p)}}const ze=Ze(.25,.1,.25,1);function Le(i,n,o){return Math.min(o,Math.max(n,i))}function Ye(i,n,o){return(o=Le((o-i)/(n-i),0,1))*o*(3-2*o)}function qe(i,n,o){const c=o-n,d=((i-n)%c+c)%c+n;return d===n?o:d}function Ie(i,n,o){if(!i.length)return o(null,[]);let c=i.length;const d=new Array(i.length);let p=null;i.forEach((_,b)=>{n(_,(w,I)=>{w&&(p=w),d[b]=I,--c==0&&o(p,d)})})}function Te(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}let le=1;function X(){return le++}function ie(){return function i(n){return n?(n^Math.random()*(16>>n/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,i)}()}function Me(i){return i<=1?1:Math.pow(2,Math.ceil(Math.log(i)/Math.LN2))}function xe(i){return!!i&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(i)}function $e(i,n){i.forEach(o=>{n[o]&&(n[o]=n[o].bind(n))})}function He(i,n){return i.indexOf(n,i.length-n.length)!==-1}function Ue(i,n,o){const c={};for(const d in i)c[d]=n.call(o||this,i[d],d,i);return c}function Xe(i,n,o){const c={};for(const d in i)n.call(o||this,i[d],d,i)&&(c[d]=i[d]);return c}function ut(i){return Array.isArray(i)?i.map(ut):typeof i=="object"&&i?Ue(i,ut):i}const _t={};function et(i){_t[i]||(typeof console<"u"&&console.warn(i),_t[i]=!0)}function bt(i,n,o){return(o.y-i.y)*(n.x-i.x)>(n.y-i.y)*(o.x-i.x)}function Ot(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function Rt([i,n,o]){const c=Ae(n+90),d=Ae(o);return{x:i*Math.cos(c)*Math.sin(d),y:i*Math.sin(c)*Math.sin(d),z:i*Math.cos(d),azimuthal:n,polar:o}}function dn(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function Bn(i){const n={};if(i.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(o,c,d,p)=>{const _=d||p;return n[c]=!_||_.toLowerCase(),""}),n["max-age"]){const o=parseInt(n["max-age"],10);isNaN(o)?delete n["max-age"]:n["max-age"]=o}return n}let Tt,kn,An,Cn,$n,ni,st=null;function se(i){try{const n=self[i];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch{return!1}}function ce(i,n){return[i[4*n],i[4*n+1],i[4*n+2],i[4*n+3]]}function Ne(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<c?n=d+1:o=d}return n}function ht(i,n,o,c){for(;n<o;){const d=n+o>>1;i[d]<=c?n=d+1:o=d}return n}function vt(){return Tt==null&&(Tt=self.OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&typeof self.createImageBitmap=="function"),Tt}const pt={now:()=>Cn!==void 0?Cn:performance.now(),setNow(i){Cn=i},restoreNow(){Cn=void 0},frame(i){const n=requestAnimationFrame(i);return{cancel:()=>cancelAnimationFrame(n)}},getImageData(i,n=0){const{width:o,height:c}=i;$n||($n=document.createElement("canvas"));const d=$n.getContext("2d",{willReadFrequently:!0});if(!d)throw new Error("failed to create canvas 2d context");return(o>$n.width||c>$n.height)&&($n.width=o,$n.height=c),d.clearRect(-n,-n,o+2*n,c+2*n),d.drawImage(i,0,0,o,c),d.getImageData(-n,-n,o+2*n,c+2*n)},resolveURL:i=>(kn||(kn=document.createElement("a")),kn.href=i,kn.href),get devicePixelRatio(){return window.devicePixelRatio},get prefersReducedMotion(){return!!window.matchMedia&&(An==null&&(An=window.matchMedia("(prefers-reduced-motion: reduce)")),An.matches)},hasCanvasFingerprintNoise(){if(ni!==void 0)return ni;if(!vt())return ni=!1,!1;const i=new OffscreenCanvas(85,1),n=i.getContext("2d",{willReadFrequently:!0});let o=0;for(let d=0;d<i.width;++d)n.fillStyle=`rgba(${o++},${o++},${o++}, 255)`,n.fillRect(d,0,1,1);const c=n.getImageData(0,0,i.width,i.height);o=0;for(let d=0;d<c.data.length;++d)if(d%4!=3&&o++!==c.data[d])return ni=!0,!0;return ni=!1,!1}},Ct="mapbox-tiles";let mt=500,an=50,Fe,Pe;function St(){try{return caches}catch{}}function Xt(){const i=St();i&&!Fe&&(Fe=i.open(Ct))}function Dt(i){const n=i.indexOf("?");if(n<0)return i;const o=["language","worldview"],c=new URLSearchParams,d=new URLSearchParams(i.slice(n));for(const p of o){const _=d.get(p);_&&c.set(p,_)}return`${i.slice(0,n)}?${c.toString()}`}function kt(i,n){const o=i.indexOf("?");if(o<0)return`${i}?${new URLSearchParams(n).toString()}`;const c=new URLSearchParams(i.slice(o));for(const d in n)c.set(d,n[d]);return`${i.slice(0,o)}?${c.toString()}`}let Ft=1/0;const Vt={supported:!1,testSupport:function(i){!Xn&&Sn&&(ai?Wi(i):tn=i)}};let tn,Sn,Xn=!1,ai=!1;const Ei=typeof self<"u"?self:{};function Wi(i){const n=i.createTexture();i.bindTexture(i.TEXTURE_2D,n);try{if(i.texImage2D(i.TEXTURE_2D,0,i.RGBA,i.RGBA,i.UNSIGNED_BYTE,Sn),i.isContextLost())return;Vt.supported=!0}catch{}i.deleteTexture(n),Xn=!0}Ei.document&&(Sn=Ei.document.createElement("img"),Sn.onload=function(){tn&&Wi(tn),tn=null,ai=!0},Sn.onerror=function(){Xn=!0,tn=null},Sn.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const qi={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image",Model:"Model"};typeof Object.freeze=="function"&&Object.freeze(qi);class Zn extends Error{constructor(n,o,c){o===401&&N(c)&&(n+=": you may have provided an invalid Mapbox access token. See https://docs.mapbox.com/api/overview/#access-tokens-and-token-scopes"),super(n),this.status=o,this.url=c}toString(){return`${this.name}: ${this.message} (${this.status}): ${this.url}`}}const Ki=dn()?()=>self.worker&&self.worker.referrer:()=>(location.protocol==="blob:"?parent:self).location.href,Mt=function(i,n){if(!(/^file:/.test(o=i.url)||/^file:/.test(Ki())&&!/^\w+:/.test(o))){if(self.fetch&&self.Request&&self.AbortController&&Request.prototype.hasOwnProperty("signal"))return function(c,d){const p=new AbortController,_=new Request(c.url,{method:c.method||"GET",body:c.body,credentials:c.credentials,headers:c.headers,referrer:Ki(),referrerPolicy:c.referrerPolicy,signal:p.signal});let b=!1,w=!1;const I=(E=_.url).indexOf("sku=")>0&&N(E);var E;c.type==="json"&&_.headers.set("Accept","application/json");const L=(U,F,$)=>{if(w)return;if(U&&U.message!=="SecurityError"&&et(U.toString()),F&&$)return k(F);const Z=Date.now();fetch(_).then(J=>{if(J.ok){const de=I?J.clone():null;return k(J,de,Z)}return d(new Zn(J.statusText,J.status,c.url))}).catch(J=>{J.name!=="AbortError"&&d(new Error(`${J.message} ${c.url}`))})},k=(U,F,$)=>{(c.type==="arrayBuffer"?U.arrayBuffer():c.type==="json"?U.json():U.text()).then(Z=>{w||(F&&$&&function(J,de,ye){if(Xt(),!Fe)return;const ge=Bn(de.headers.get("Cache-Control")||"");if(ge["no-store"])return;const Se={status:de.status,statusText:de.statusText,headers:new Headers};de.headers.forEach((We,nt)=>Se.headers.set(nt,We)),ge["max-age"]&&Se.headers.set("Expires",new Date(ye+1e3*ge["max-age"]).toUTCString());const we=Se.headers.get("Expires");if(!we||new Date(we).getTime()-ye<42e4)return;let Re=Dt(J.url);if(de.status===206){const We=J.headers.get("Range");if(!We)return;Se.status=200,Re=kt(Re,{range:We})}(function(We,nt){if(Pe===void 0)try{new Response(new ReadableStream),Pe=!0}catch{Pe=!1}Pe?nt(We.body):We.blob().then(nt)})(de,We=>{const nt=new Response(We,Se);Xt(),Fe&&Fe.then(ct=>ct.put(Re,nt)).catch(ct=>et(ct.message))})}(_,F,$),b=!0,d(null,Z,U.headers.get("Cache-Control"),U.headers.get("Expires")))}).catch(Z=>{w||d(new Error(Z.message))})};return I?function(U,F){if(Xt(),!Fe)return F(null);Fe.then($=>{let Z=Dt(U.url);const J=U.headers.get("Range");J&&(Z=kt(Z,{range:J})),$.match(Z).then(de=>{const ye=function(ge){if(!ge)return!1;const Se=new Date(ge.headers.get("Expires")||0),we=Bn(ge.headers.get("Cache-Control")||"");return Se>Date.now()&&!we["no-cache"]}(de);$.delete(Z),ye&&$.put(Z,de.clone()),F(null,de,ye)}).catch(F)}).catch(F)}(_,L):L(null,null),{cancel:()=>{w=!0,b||p.abort()}}}(i,n);if(dn()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",i,n,void 0,!0)}var o;return function(c,d){const p=new XMLHttpRequest;p.open(c.method||"GET",c.url,!0),c.type==="arrayBuffer"&&(p.responseType="arraybuffer");for(const _ in c.headers)p.setRequestHeader(_,c.headers[_]);return c.type==="json"&&(p.responseType="text",p.setRequestHeader("Accept","application/json")),p.withCredentials=c.credentials==="include",p.onerror=()=>{d(new Error(p.statusText))},p.onload=()=>{if((p.status>=200&&p.status<300||p.status===0)&&p.response!==null){let _=p.response;if(c.type==="json")try{_=JSON.parse(p.response)}catch(b){return d(b)}d(null,_,p.getResponseHeader("Cache-Control"),p.getResponseHeader("Expires"))}else d(new Zn(p.statusText,p.status,c.url))},p.send(c.body),{cancel:()=>p.abort()}}(i,n)},It=function(i,n){return Mt(Te(i,{type:"arrayBuffer"}),n)};function Bt(i){const n=document.createElement("a");return n.href=i,n.protocol===location.protocol&&n.host===location.host}const qt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Ht,en;Ht=[],en=0;const nn=function(i,n){if(Vt.supported&&(i.headers||(i.headers={}),i.headers.accept="image/webp,*/*"),en>=D.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:i,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return Ht.push(p),p}en++;let o=!1;const c=()=>{if(!o)for(o=!0,en--;Ht.length&&en<D.MAX_PARALLEL_IMAGE_REQUESTS;){const p=Ht.shift(),{requestParameters:_,callback:b,cancelled:w}=p;w||(p.cancel=nn(_,b).cancel)}},d=It(i,(p,_,b,w)=>{c(),p?n(p):_&&(self.createImageBitmap?function(I,E){const L=new Blob([new Uint8Array(I)],{type:"image/png"});createImageBitmap(L).then(k=>{E(null,k)}).catch(k=>{E(new Error(`Could not load image because of ${k.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})}(_,(I,E)=>n(I,E,b,w)):function(I,E){const L=new Image;L.onload=()=>{E(null,L),URL.revokeObjectURL(L.src),L.onload=null,requestAnimationFrame(()=>{L.src=qt})},L.onerror=()=>E(new Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));const k=new Blob([new Uint8Array(I)],{type:"image/png"});L.src=I.byteLength?URL.createObjectURL(k):qt}(_,(I,E)=>n(I,E,b,w)))});return{cancel:()=>{d.cancel(),c()}}},Yt="01",ln="NO_ACCESS_TOKEN",Jt=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Gt(i){const n=i.match(Jt);if(!n)throw new Error("Unable to parse URL object");return{protocol:n[1],authority:n[2],path:n[3]||"/",params:n[4]?n[4].split("&"):[]}}function wn(i){const n=i.params.length?`?${i.params.join("&")}`:"";return`${i.protocol}://${i.authority}${i.path}${n}`}const cn="mapbox.eventData";function Di(i){if(!i)return null;const n=i.split(".");if(!n||n.length!==3)return null;try{return JSON.parse(decodeURIComponent(atob(n[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class ji{constructor(n){this.type=n,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(n){const o=Di(D.ACCESS_TOKEN);let c="";return c=o&&o.u?btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(d,p)=>String.fromCharCode(+("0x"+p)))):D.ACCESS_TOKEN||"",n?`${cn}.${n}:${c}`:`${cn}:${c}`}fetchEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{const d=localStorage.getItem(o);d&&(this.eventData=JSON.parse(d));const p=localStorage.getItem(c);p&&(this.anonId=p)}catch{et("Unable to read from LocalStorage")}}saveEventData(){const n=se("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid"),d=this.anonId;if(n&&d)try{localStorage.setItem(c,d),Object.keys(this.eventData).length>=1&&localStorage.setItem(o,JSON.stringify(this.eventData))}catch{et("Unable to write to LocalStorage")}}processRequests(n){}postEvent(n,o,c,d){if(!D.EVENTS_URL)return;const p=Gt(D.EVENTS_URL);p.params.push(`access_token=${d||D.ACCESS_TOKEN||""}`);const _={event:this.type,created:new Date(n).toISOString()},b=o?Te(_,o):_,w={url:wn(p),headers:{"Content-Type":"text/plain"},body:JSON.stringify([b])};this.pendingRequest=function(I,E){return Mt(Te(I,{method:"POST"}),E)}(w,I=>{this.pendingRequest=null,c(I),this.saveEventData(),this.processRequests(d)})}queueRequest(n,o){this.queue.push(n),this.processRequests(o)}}const Ci=new class extends ji{constructor(i){super("appUserTurnstile"),this._customAccessToken=i}postTurnstileEvent(i,n){D.EVENTS_URL&&D.ACCESS_TOKEN&&Array.isArray(i)&&i.some(o=>C(o)||N(o))&&this.queueRequest(Date.now(),n)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=Di(D.ACCESS_TOKEN),o=n?n.u:D.ACCESS_TOKEN;let c=o!==this.eventData.tokenU;xe(this.anonId)||(this.anonId=ie(),c=!0);const d=this.queue.shift();if(this.eventData.lastSuccess){const p=new Date(this.eventData.lastSuccess),_=new Date(d),b=(d-this.eventData.lastSuccess)/864e5;c=c||b>=1||b<-1||p.getDate()!==_.getDate()}else c=!0;c?this.postEvent(d,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,"enabled.telemetry":!1,userId:this.anonId},p=>{p||(this.eventData.lastSuccess=d,this.eventData.tokenU=o)},i):this.processRequests()}},mr=Ci.postTurnstileEvent.bind(Ci),ho=new class extends ji{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(i,n,o,c){this.skuToken=n,this.errorCb=c,D.EVENTS_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),xe(this.anonId)||(this.anonId=ie()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:v,skuId:Yt,skuToken:this.skuToken,userId:this.anonId},c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i))}remove(){this.errorCb=null}},bi=ho.postMapLoadEvent.bind(ho),cs=new class extends ji{constructor(){super("gljs.performance")}postPerformanceEvent(i,n){D.EVENTS_URL&&(i||D.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:n},i)}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:n,performanceData:o}=this.queue.shift(),c=function(d){const p=performance.getEntriesByType("resource"),_=performance.getEntriesByType("mark"),b=function(U){const F={};if(U){for(const $ in U)if($!=="other")for(const Z of U[$]){const J=`${$}ResolveRangeMin`,de=`${$}ResolveRangeMax`,ye=`${$}RequestCount`,ge=`${$}RequestCachedCount`;F[J]=Math.min(F[J]||1/0,Z.startTime),F[de]=Math.max(F[de]||-1/0,Z.responseEnd);const Se=we=>{F[we]===void 0&&(F[we]=0),++F[we]};Z.transferSize!==void 0&&Z.transferSize===0&&Se(ge),Se(ye)}}return F}(function(U,F){const $={};if(U)for(const Z of U){const J=F(Z);$[J]===void 0&&($[J]=[]),$[J].push(Z)}return $}(p,H)),w=window.devicePixelRatio,I=navigator.connection||navigator.mozConnection||navigator.webkitConnection,E=I?I.effectiveType:void 0,L={counters:[],metadata:[],attributes:[]},k=(U,F,$)=>{$!=null&&U.push({name:F,value:$.toString()})};for(const U in b)k(L.counters,U,b[U]);if(d.interactionRange[0]!==1/0&&d.interactionRange[1]!==-1/0&&(k(L.counters,"interactionRangeMin",d.interactionRange[0]),k(L.counters,"interactionRangeMax",d.interactionRange[1])),_)for(const U of Object.keys(q)){const F=q[U],$=_.find(Z=>Z.name===F);$&&k(L.counters,F,$.startTime)}return k(L.counters,"visibilityHidden",d.visibilityHidden),k(L.attributes,"style",function(U){if(U)for(const F of U){const $=F.name.split("?")[0];if(V($)){const Z=$.split("/").slice(-2);if(Z.length===2)return`mapbox://styles/${Z[0]}/${Z[1]}`}}}(p)),k(L.attributes,"terrainEnabled",d.terrainEnabled?"true":"false"),k(L.attributes,"fogEnabled",d.fogEnabled?"true":"false"),k(L.attributes,"projection",d.projection),k(L.attributes,"zoom",d.zoom),k(L.metadata,"devicePixelRatio",w),k(L.metadata,"connectionEffectiveType",E),k(L.metadata,"navigatorUserAgent",navigator.userAgent),k(L.metadata,"screenWidth",window.screen.width),k(L.metadata,"screenHeight",window.screen.height),k(L.metadata,"windowWidth",window.innerWidth),k(L.metadata,"windowHeight",window.innerHeight),k(L.metadata,"mapWidth",d.width/w),k(L.metadata,"mapHeight",d.height/w),k(L.metadata,"webglRenderer",d.renderer),k(L.metadata,"webglVendor",d.vendor),k(L.metadata,"sdkVersion",v),k(L.metadata,"sdkIdentifier","mapbox-gl-js"),L}(o);for(const d of c.metadata);for(const d of c.counters);for(const d of c.attributes);this.postEvent(n,c,()=>{},i)}},Qs=cs.postPerformanceEvent.bind(cs),fo=new class extends ji{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(i,n,o,c){if(!D.API_URL||!D.SESSION_PATH)return;const d=Gt(D.API_URL+D.SESSION_PATH);d.params.push(`sku=${n||""}`),d.params.push(`access_token=${c||D.ACCESS_TOKEN||""}`);const p={url:wn(d),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(_,b){return Mt(Te(_,{method:"GET"}),b)}(p,_=>{this.pendingRequest=null,o(_),this.saveEventData(),this.processRequests(c)})}getSessionAPI(i,n,o,c){this.skuToken=n,this.errorCb=c,D.SESSION_PATH&&D.API_URL&&(o||D.ACCESS_TOKEN?this.queueRequest({id:i,timestamp:Date.now()},o):this.errorCb(new Error(ln)))}processRequests(i){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||this.getSession(o,this.skuToken,c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},i)}remove(){this.errorCb=null}},Fh=fo.getSessionAPI.bind(fo),ml=new Set;function vu(i,n,o){o[i]&&o[i].indexOf(n)!==-1||(o[i]=o[i]||[],o[i].push(n))}function m0(i,n,o){if(o&&o[i]){const c=o[i].indexOf(n);c!==-1&&o[i].splice(c,1)}}class cc{constructor(n,o={}){Te(this,o),this.type=n}}class g0 extends cc{constructor(n,o={}){super("error",Te({error:n},o))}}class xu{on(n,o){return this._listeners=this._listeners||{},vu(n,o,this._listeners),this}off(n,o){return m0(n,o,this._listeners),m0(n,o,this._oneTimeListeners),this}once(n,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},vu(n,o,this._oneTimeListeners),this):new Promise(c=>this.once(n,c))}fire(n,o){typeof n=="string"&&(n=new cc(n,o||{}));const c=n.type;if(this.listens(c)){n.target=this;const d=this._listeners&&this._listeners[c]?this._listeners[c].slice():[];for(const b of d)b.call(this,n);const p=this._oneTimeListeners&&this._oneTimeListeners[c]?this._oneTimeListeners[c].slice():[];for(const b of p)m0(c,b,this._oneTimeListeners),b.call(this,n);const _=this._eventedParent;_&&(Te(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_.fire(n))}else n instanceof g0&&console.error(n.error);return this}listens(n){return!!(this._listeners&&this._listeners[n]&&this._listeners[n].length>0||this._oneTimeListeners&&this._oneTimeListeners[n]&&this._oneTimeListeners[n].length>0||this._eventedParent&&this._eventedParent.listens(n))}setEventedParent(n,o){return this._eventedParent=n,this._eventedParentData=o,this}}a.y=void 0;var hb={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function dp(i){return(i=Math.round(i))<0?0:i>255?255:i}function y0(i){return dp(i[i.length-1]==="%"?parseFloat(i)/100*255:parseInt(i))}function fp(i){return(n=i[i.length-1]==="%"?parseFloat(i)/100:parseFloat(i))<0?0:n>1?1:n;var n}function _0(i,n,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?i+(n-i)*o*6:2*o<1?n:3*o<2?i+(n-i)*(2/3-o)*6:i}try{a.y={}.parseCSSColor=function(i){var n,o=i.replace(/ /g,"").toLowerCase();if(o in hb)return hb[o].slice();if(o[0]==="#")return o.length===4?(n=parseInt(o.substr(1),16))>=0&&n<=4095?[(3840&n)>>4|(3840&n)>>8,240&n|(240&n)>>4,15&n|(15&n)<<4,1]:null:o.length===7&&(n=parseInt(o.substr(1),16))>=0&&n<=16777215?[(16711680&n)>>16,(65280&n)>>8,255&n,1]:null;var c=o.indexOf("("),d=o.indexOf(")");if(c!==-1&&d+1===o.length){var p=o.substr(0,c),_=o.substr(c+1,d-(c+1)).split(","),b=1;switch(p){case"rgba":if(_.length!==4)return null;b=fp(_.pop());case"rgb":return _.length!==3?null:[y0(_[0]),y0(_[1]),y0(_[2]),b];case"hsla":if(_.length!==4)return null;b=fp(_.pop());case"hsl":if(_.length!==3)return null;var w=(parseFloat(_[0])%360+360)%360/360,I=fp(_[1]),E=fp(_[2]),L=E<=.5?E*(I+1):E+I-E*I,k=2*E-L;return[dp(255*_0(k,L,w+1/3)),dp(255*_0(k,L,w)),dp(255*_0(k,L,w-1/3)),b];default:return null}}return null}}catch{}class Ho{constructor(n,o,c,d=1){this.r=n,this.g=o,this.b=c,this.a=d}static parse(n){if(!n)return;if(n instanceof Ho)return n;if(typeof n!="string")return;const o=a.y(n);return o?new Ho(o[0]/255*o[3],o[1]/255*o[3],o[2]/255*o[3],o[3]):void 0}toString(){const[n,o,c,d]=this.toArray();return`rgba(${Math.round(n)},${Math.round(o)},${Math.round(c)},${d})`}toArray(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[255*n/d,255*o/d,255*c/d,d]}toArray01(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[n/d,o/d,c/d,d]}toArray01Scaled(n){const{r:o,g:c,b:d,a:p}=this;return p===0?[0,0,0]:[o/p*n,c/p*n,d/p*n]}toArray01PremultipliedAlpha(){const{r:n,g:o,b:c,a:d}=this;return[n,o,c,d]}toArray01Linear(){const{r:n,g:o,b:c,a:d}=this;return d===0?[0,0,0,0]:[Math.pow(n/d,2.2),Math.pow(o/d,2.2),Math.pow(c/d,2.2),d]}}Ho.black=new Ho(0,0,0,1),Ho.white=new Ho(1,1,1,1),Ho.transparent=new Ho(0,0,0,0),Ho.red=new Ho(1,0,0,1),Ho.blue=new Ho(0,0,1,1);var Cr=Ho;function li(i,n,o){return i*(1-o)+n*o}function db(i,n,o){return i.map((c,d)=>li(c,n[d],o))}var pp=Object.freeze({__proto__:null,array:db,color:function(i,n,o){return new Cr(li(i.r,n.r,o),li(i.g,n.g,o),li(i.b,n.b,o),li(i.a,n.a,o))},number:li});function v0(i,...n){for(const o of n)for(const c in o)i[c]=o[c];return i}class GS extends Error{constructor(n,o){super(o),this.message=o,this.key=n}}var fa=GS;class x0{constructor(n,o=[]){this.parent=n,this.bindings={};for(const[c,d]of o)this.bindings[c]=d}concat(n){return new x0(this,n)}get(n){if(this.bindings[n])return this.bindings[n];if(this.parent)return this.parent.get(n);throw new Error(`${n} not found in scope.`)}has(n){return!!this.bindings[n]||!!this.parent&&this.parent.has(n)}}var ZS=x0;const bu={kind:"null"},hn={kind:"number"},wi={kind:"string"},Ii={kind:"boolean"},Is={kind:"color"},Mu={kind:"object"},pi={kind:"value"},mp={kind:"collator"},wu={kind:"formatted"},Vh={kind:"resolvedImage"};function Yo(i,n){return{kind:"array",itemType:i,N:n}}function Ir(i){if(i.kind==="array"){const n=Ir(i.itemType);return typeof i.N=="number"?`array<${n}, ${i.N}>`:i.itemType.kind==="value"?"array":`array<${n}>`}return i.kind}const En=[bu,hn,wi,Ii,Is,wu,Mu,Yo(pi),Vh];function uc(i,n){if(n.kind==="error")return null;if(i.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!uc(i.itemType,n.itemType))&&(typeof i.N!="number"||i.N===n.N))return null}else{if(i.kind===n.kind)return null;if(i.kind==="value"){for(const o of En)if(!uc(o,n))return null}}return`Expected ${Ir(i)} but found ${Ir(n)} instead.`}function Rn(i,n){return n.some(o=>o.kind===i.kind)}function gl(i,n){return n.some(o=>o==="null"?i===null:o==="array"?Array.isArray(i):o==="object"?i&&!Array.isArray(i)&&typeof i=="object":o===typeof i)}class Jn{constructor(n,o,c){this.sensitivity=n?o?"variant":"case":o?"accent":"base",this.locale=c,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(n,o){return this.collator.compare(n,o)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class Iu{constructor(n,o,c,d,p){this.text=n.normalize?n.normalize():n,this.image=o,this.scale=c,this.fontStack=d,this.textColor=p}}class po{constructor(n){this.sections=n}static fromString(n){return new po([new Iu(n,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(n=>n.text.length!==0||n.image&&n.image.namePrimary.length!==0)}static factory(n){return n instanceof po?n:po.fromString(n)}toString(){return this.sections.length===0?"":this.sections.map(n=>n.text).join("")}serialize(){const n=["format"];for(const o of this.sections){if(o.image){n.push(["image",o.image.namePrimary]);continue}n.push(o.text);const c={};o.fontStack&&(c["text-font"]=["literal",o.fontStack.split(",")]),o.scale&&(c["font-scale"]=o.scale),o.textColor&&(c["text-color"]=["rgba"].concat(o.textColor.toArray())),n.push(c)}return n}}class Dn{constructor(n){this.namePrimary=n.namePrimary,n.nameSecondary&&(this.nameSecondary=n.nameSecondary),this.available=n.available}toString(){return this.nameSecondary?`[${this.namePrimary},${this.nameSecondary}]`:this.namePrimary}static fromString(n,o){return n?new Dn({namePrimary:n,nameSecondary:o,available:!1}):null}serialize(){return this.nameSecondary?["image",this.namePrimary,this.nameSecondary]:["image",this.namePrimary]}}function fb(i,n,o,c){return typeof i=="number"&&i>=0&&i<=255&&typeof n=="number"&&n>=0&&n<=255&&typeof o=="number"&&o>=0&&o<=255?c===void 0||typeof c=="number"&&c>=0&&c<=1?null:`Invalid rgba value [${[i,n,o,c].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof c=="number"?[i,n,o,c]:[i,n,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function hc(i){if(i===null||typeof i=="string"||typeof i=="boolean"||typeof i=="number"||i instanceof Cr||i instanceof Jn||i instanceof po||i instanceof Dn)return!0;if(Array.isArray(i)){for(const n of i)if(!hc(n))return!1;return!0}if(typeof i=="object"){for(const n in i)if(!hc(i[n]))return!1;return!0}return!1}function kr(i){if(i===null)return bu;if(typeof i=="string")return wi;if(typeof i=="boolean")return Ii;if(typeof i=="number")return hn;if(i instanceof Cr)return Is;if(i instanceof Jn)return mp;if(i instanceof po)return wu;if(i instanceof Dn)return Vh;if(Array.isArray(i)){const n=i.length;let o;for(const c of i){const d=kr(c);if(o){if(o===d)continue;o=pi;break}o=d}return Yo(o||pi,n)}return Mu}function Ts(i){const n=typeof i;return i===null?"":n==="string"||n==="number"||n==="boolean"?String(i):i instanceof Cr||i instanceof po||i instanceof Dn?i.toString():JSON.stringify(i)}class yl{constructor(n,o){this.type=n,this.value=o}static parse(n,o){if(n.length!==2)return o.error(`'literal' expression requires exactly one argument, but found ${n.length-1} instead.`);if(!hc(n[1]))return o.error("invalid value");const c=n[1];let d=kr(c);const p=o.expectedType;return d.kind!=="array"||d.N!==0||!p||p.kind!=="array"||typeof p.N=="number"&&p.N!==0||(d=p),new yl(d,c)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}serialize(){return this.type.kind==="array"||this.type.kind==="object"?["literal",this.value]:this.value instanceof Cr?["rgba"].concat(this.value.toArray()):this.value instanceof po?this.value.serialize():this.value}}var Ca=yl,Or=class{constructor(i){this.name="ExpressionEvaluationError",this.message=i}toJSON(){return this.message}};const b0={string:wi,number:hn,boolean:Ii,object:Mu};class M0{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");let c,d=1;const p=n[0];if(p==="array"){let b,w;if(n.length>2){const I=n[1];if(typeof I!="string"||!(I in b0)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);b=b0[I],d++}else b=pi;if(n.length>3){if(n[2]!==null&&(typeof n[2]!="number"||n[2]<0||n[2]!==Math.floor(n[2])))return o.error('The length argument to "array" must be a positive integer literal',2);w=n[2],d++}c=Yo(b,w)}else c=b0[p];const _=[];for(;d<n.length;d++){const b=o.parse(n[d],d,pi);if(!b)return null;_.push(b)}return new M0(c,_)}evaluate(n){for(let o=0;o<this.args.length;o++){const c=this.args[o].evaluate(n);if(!uc(this.type,kr(c)))return c;if(o===this.args.length-1)throw new Or(`Expected value to be of type ${Ir(this.type)}, but found ${Ir(kr(c))} instead.`)}return null}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=this.type,o=[n.kind];if(n.kind==="array"){const c=n.itemType;if(c.kind==="string"||c.kind==="number"||c.kind==="boolean"){o.push(c.kind);const d=n.N;(typeof d=="number"||this.args.length>1)&&o.push(d)}}return o.concat(this.args.map(c=>c.serialize()))}}var Na=M0;class Tu{constructor(n){this.type=wu,this.sections=n}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[1];if(!Array.isArray(c)&&typeof c=="object")return o.error("First argument must be an image or text section.");const d=[];let p=!1;for(let _=1;_<=n.length-1;++_){const b=n[_];if(p&&typeof b=="object"&&!Array.isArray(b)){p=!1;let w=null;if(b["font-scale"]&&(w=o.parse(b["font-scale"],1,hn),!w))return null;let I=null;if(b["text-font"]&&(I=o.parse(b["text-font"],1,Yo(wi)),!I))return null;let E=null;if(b["text-color"]&&(E=o.parse(b["text-color"],1,Is),!E))return null;const L=d[d.length-1];L.scale=w,L.font=I,L.textColor=E}else{const w=o.parse(n[_],1,pi);if(!w)return null;const I=w.type.kind;if(I!=="string"&&I!=="value"&&I!=="null"&&I!=="resolvedImage")return o.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");p=!0,d.push({content:w,scale:null,font:null,textColor:null})}}return new Tu(d)}evaluate(n){return new po(this.sections.map(o=>{const c=o.content.evaluate(n);return kr(c)===Vh?new Iu("",c,null,null,null):new Iu(Ts(c),null,o.scale?o.scale.evaluate(n):null,o.font?o.font.evaluate(n).join(","):null,o.textColor?o.textColor.evaluate(n):null)}))}eachChild(n){for(const o of this.sections)n(o.content),o.scale&&n(o.scale),o.font&&n(o.font),o.textColor&&n(o.textColor)}outputDefined(){return!1}serialize(){const n=["format"];for(const o of this.sections){n.push(o.content.serialize());const c={};o.scale&&(c["font-scale"]=o.scale.serialize()),o.font&&(c["text-font"]=o.font.serialize()),o.textColor&&(c["text-color"]=o.textColor.serialize()),n.push(c)}return n}}class dc{constructor(n,o){this.type=Vh,this.inputPrimary=n,this.inputSecondary=o}static parse(n,o){if(n.length<2)return o.error("Expected two or more arguments.");const c=o.parse(n[1],1,wi);if(!c)return o.error("No image name provided.");if(n.length===2)return new dc(c);const d=o.parse(n[2],1,wi);return d?new dc(c,d):o.error("Secondary image variant is not a string.")}evaluate(n){const o=Dn.fromString(this.inputPrimary.evaluate(n),this.inputSecondary?this.inputSecondary.evaluate(n):void 0);return o&&n.availableImages&&(o.available=n.availableImages.indexOf(o.namePrimary)>-1,o.nameSecondary&&o.available&&n.availableImages&&(o.available=n.availableImages.indexOf(o.nameSecondary)>-1)),o}eachChild(n){n(this.inputPrimary),this.inputSecondary&&n(this.inputSecondary)}outputDefined(){return!1}serialize(){return this.inputSecondary?["image",this.inputPrimary.serialize(),this.inputSecondary.serialize()]:["image",this.inputPrimary.serialize()]}}function Su(i){return i instanceof Number?"number":i instanceof String?"string":i instanceof Boolean?"boolean":Array.isArray(i)?"array":i===null?"null":typeof i}const Hs={"to-boolean":Ii,"to-color":Is,"to-number":hn,"to-string":wi};class gp{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expected at least one argument.");const c=n[0],d=[];let p=bu;if(c==="to-array"){if(!Array.isArray(n[1]))return null;const _=n[1].length;if(o.expectedType){if(o.expectedType.kind!=="array")return o.error(`Expected ${o.expectedType.kind} but found array.`);p=Yo(o.expectedType.itemType,_)}else{if(!(_>0&&hc(n[1][0])))return null;p=Yo(kr(n[1][0]),_)}for(let b=0;b<_;b++){const w=n[1][b];let I;if(Su(w)==="array")I=o.parse(w,void 0,p.itemType);else{const E=Su(w);if(E!==p.itemType.kind)return o.error(`Expected ${p.itemType.kind} but found ${E}.`);I=o.registry.literal.parse(["literal",w===void 0?null:w],o)}if(!I)return null;d.push(I)}}else{if((c==="to-boolean"||c==="to-string")&&n.length!==2)return o.error("Expected one argument.");p=Hs[c];for(let _=1;_<n.length;_++){const b=o.parse(n[_],_,pi);if(!b)return null;d.push(b)}}return new gp(p,d)}evaluate(n){if(this.type.kind==="boolean")return!!this.args[0].evaluate(n);if(this.type.kind==="color"){let o,c;for(const d of this.args){if(o=d.evaluate(n),c=null,o instanceof Cr)return o;if(typeof o=="string"){const p=n.parseColor(o);if(p)return p}else if(Array.isArray(o)&&(c=o.length<3||o.length>4?`Invalid rbga value ${JSON.stringify(o)}: expected an array containing either three or four numeric values.`:fb(o[0],o[1],o[2],o[3]),!c))return new Cr(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new Or(c||`Could not parse color from value '${typeof o=="string"?o:String(JSON.stringify(o))}'`)}if(this.type.kind==="number"){let o=null;for(const c of this.args){if(o=c.evaluate(n),o===null)return 0;const d=Number(o);if(!isNaN(d))return d}throw new Or(`Could not convert ${JSON.stringify(o)} to number.`)}return this.type.kind==="formatted"?po.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="resolvedImage"?Dn.fromString(Ts(this.args[0].evaluate(n))):this.type.kind==="array"?this.args.map(o=>o.evaluate(n)):Ts(this.args[0].evaluate(n))}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){if(this.type.kind==="formatted")return new Tu([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new dc(this.args[0]).serialize();const n=this.type.kind==="array"?[]:[`to-${this.type.kind}`];return this.eachChild(o=>{n.push(o.serialize())}),n}}var La=gp;const $h=["Unknown","Point","LineString","Polygon"];var pb=class{constructor(i,n){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null,this.featureTileCoord=null,this.featureDistanceData=null,this.scope=i,this.options=n}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?$h[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}measureLight(i){return this.globals.brightness||0}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const i=this.featureDistanceData.center,n=this.featureDistanceData.scale,{x:o,y:c}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*n-i[0])+this.featureDistanceData.bearing[1]*(c*n-i[1])}return 0}parseColor(i){let n=this._parseColorCache[i];return n||(n=this._parseColorCache[i]=Cr.parse(i)),n}getConfig(i){return this.options?this.options.get(i):null}};class fc{constructor(n,o,c,d,p){this.name=n,this.type=o,this._evaluate=c,this.args=d,this._overloadIndex=p}evaluate(n){if(!this._evaluate){const o=fc.definitions[this.name];this._evaluate=Array.isArray(o)?o[2]:o.overloads[this._overloadIndex][1]}return this._evaluate(n,this.args)}eachChild(n){this.args.forEach(n)}outputDefined(){return!1}serialize(){return[this.name].concat(this.args.map(n=>n.serialize()))}static parse(n,o){const c=n[0],d=fc.definitions[c];if(!d)return o.error(`Unknown expression "${c}". If you wanted a literal array, use ["literal", [...]].`,0);const p=Array.isArray(d)?d[0]:d.type,_=Array.isArray(d)?[[d[1],d[2]]]:d.overloads,b=[];let w=null,I=-1;for(const[E,L]of _){if(Array.isArray(E)&&E.length!==n.length-1)continue;b.push(E),I++,w=new bb(o.registry,o.path,null,o.scope,void 0,o._scope,o.options);const k=[];let U=!1;for(let F=1;F<n.length;F++){const $=n[F],Z=Array.isArray(E)?E[F-1]:E.type,J=w.parse($,1+k.length,Z);if(!J){U=!0;break}k.push(J)}if(!U)if(Array.isArray(E)&&E.length!==k.length)w.error(`Expected ${E.length} arguments, but found ${k.length} instead.`);else{for(let F=0;F<k.length;F++){const $=Array.isArray(E)?E[F]:E.type,Z=k[F];w.concat(F+1).checkSubtype($,Z.type)}if(w.errors.length===0)return new fc(c,p,L,k,I)}}if(b.length===1)o.errors.push(...w.errors);else{const E=(b.length?b:_.map(([k])=>k)).map(mb).join(" | "),L=[];for(let k=1;k<n.length;k++){const U=o.parse(n[k],1+L.length);if(!U)return null;L.push(Ir(U.type))}o.error(`Expected arguments of type ${E}, but found (${L.join(", ")}) instead.`)}return null}static register(n,o){fc.definitions=o;for(const c in o)n[c]=fc}}function mb(i){return Array.isArray(i)?`(${i.map(Ir).join(", ")})`:`(${Ir(i.type)}...)`}var hi=fc;class Qh{constructor(n,o,c){this.type=mp,this.locale=c,this.caseSensitive=n,this.diacriticSensitive=o}static parse(n,o){if(n.length!==2)return o.error("Expected one argument.");const c=n[1];if(typeof c!="object"||Array.isArray(c))return o.error("Collator options argument must be an object.");const d=o.parse(c["case-sensitive"]!==void 0&&c["case-sensitive"],1,Ii);if(!d)return null;const p=o.parse(c["diacritic-sensitive"]!==void 0&&c["diacritic-sensitive"],1,Ii);if(!p)return null;let _=null;return c.locale&&(_=o.parse(c.locale,1,wi),!_)?null:new Qh(d,p,_)}evaluate(n){return new Jn(this.caseSensitive.evaluate(n),this.diacriticSensitive.evaluate(n),this.locale?this.locale.evaluate(n):null)}eachChild(n){n(this.caseSensitive),n(this.diacriticSensitive),this.locale&&n(this.locale)}outputDefined(){return!1}serialize(){const n={};return n["case-sensitive"]=this.caseSensitive.serialize(),n["diacritic-sensitive"]=this.diacriticSensitive.serialize(),this.locale&&(n.locale=this.locale.serialize()),["collator",n]}}var w0={exports:{}};w0.exports=function(){function i(c,d,p,_,b){for(;_>p;){if(_-p>600){var w=_-p+1,I=d-p+1,E=Math.log(w),L=.5*Math.exp(2*E/3),k=.5*Math.sqrt(E*L*(w-L)/w)*(I-w/2<0?-1:1);i(c,d,Math.max(p,Math.floor(d-I*L/w+k)),Math.min(_,Math.floor(d+(w-I)*L/w+k)),b)}var U=c[d],F=p,$=_;for(n(c,p,d),b(c[_],U)>0&&n(c,p,_);F<$;){for(n(c,F,$),F++,$--;b(c[F],U)<0;)F++;for(;b(c[$],U)>0;)$--}b(c[p],U)===0?n(c,p,$):n(c,++$,_),$<=d&&(p=$+1),d<=$&&(_=$-1)}}function n(c,d,p){var _=c[d];c[d]=c[p],c[p]=_}function o(c,d){return c<d?-1:c>d?1:0}return function(c,d,p,_,b){i(c,d,p||0,_||c.length-1,b||o)}}();var WS=Y(w0.exports);function qS(i){let n=0;for(let o,c,d=0,p=i.length,_=p-1;d<p;_=d++)o=i[d],c=i[_],n+=(c.x-o.x)*(o.y+c.y);return n}function _l(i,n){i[0]=Math.min(i[0],n[0]),i[1]=Math.min(i[1],n[1]),i[2]=Math.max(i[2],n[0]),i[3]=Math.max(i[3],n[1])}function vl(i,n){return!(i[0]<=n[0]||i[2]>=n[2]||i[1]<=n[1]||i[3]>=n[3])}function yp(i,n,o){const c=i[0]-n[0],d=i[1]-n[1],p=i[0]-o[0],_=i[1]-o[1];return c*_-p*d==0&&c*p<=0&&d*_<=0}function Eu(i,n,o=!1){let c=!1;for(let b=0,w=n.length;b<w;b++){const I=n[b];for(let E=0,L=I.length,k=L-1;E<L;k=E++){const U=I[k],F=I[E];if(yp(i,U,F))return o;(p=U)[1]>(d=i)[1]!=(_=F)[1]>d[1]&&d[0]<(_[0]-p[0])*(d[1]-p[1])/(_[1]-p[1])+p[0]&&(c=!c)}}var d,p,_;return c}function I0(i,n,o,c){const d=c[0]-o[0],p=c[1]-o[1],_=(i[0]-o[0])*p-d*(i[1]-o[1]),b=(n[0]-o[0])*p-d*(n[1]-o[1]);return _>0&&b<0||_<0&&b>0}function za(i,n,o,c){return(d=[c[0]-o[0],c[1]-o[1]])[0]*(p=[n[0]-i[0],n[1]-i[1]])[1]-d[1]*p[0]!=0&&!(!I0(i,n,o,c)||!I0(o,c,i,n));var d,p}const xl=8192;function Hh(i,n){const o=(180+i[0])/360,c=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+i[1]*Math.PI/360)))/360,d=Math.pow(2,n.z);return[Math.round(o*d*xl),Math.round(c*d*xl)]}function T0(i,n){for(let o=0;o<n.length;o++)if(Eu(i,n[o]))return!0;return!1}function S0(i,n,o){for(const c of o)for(let d=0,p=c.length,_=p-1;d<p;_=d++)if(za(i,n,c[_],c[d]))return!0;return!1}function Ss(i,n){for(let o=0;o<i.length;++o)if(!Eu(i[o],n))return!1;for(let o=0;o<i.length-1;++o)if(S0(i[o],i[o+1],n))return!1;return!0}function gb(i,n){for(let o=0;o<n.length;o++)if(Ss(i,n[o]))return!0;return!1}function E0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=[];for(let _=0;_<i[d].length;_++){const b=Hh(i[d][_],o);_l(n,b),p.push(b)}c.push(p)}return c}function D0(i,n,o){const c=[];for(let d=0;d<i.length;d++){const p=E0(i[d],n,o);c.push(p)}return c}function A0(i,n,o,c){if(i[0]<o[0]||i[0]>o[2]){const d=.5*c;let p=i[0]-o[0]>d?-c:o[0]-i[0]>d?c:0;p===0&&(p=i[0]-o[2]>d?-c:o[2]-i[0]>d?c:0),i[0]+=p}_l(n,i)}function C0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const b of i)for(const w of b){const I=[w.x+p[0],w.y+p[1]];A0(I,n,o,d),_.push(I)}return _}function N0(i,n,o,c){const d=Math.pow(2,c.z)*xl,p=[c.x*xl,c.y*xl],_=[];if(!i)return _;for(const w of i){const I=[];for(const E of w){const L=[E.x+p[0],E.y+p[1]];_l(n,L),I.push(L)}_.push(I)}if(n[2]-n[0]<=d/2){(b=n)[0]=b[1]=1/0,b[2]=b[3]=-1/0;for(const w of _)for(const I of w)A0(I,n,o,d)}var b;return _}class Du{constructor(n,o){this.type=Ii,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'within' expression requires exactly one argument, but found ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection")for(let d=0;d<c.features.length;++d){const p=c.features[d].geometry.type;if(p==="Polygon"||p==="MultiPolygon")return new Du(c,c.features[d].geometry)}else if(c.type==="Feature"){const d=c.geometry.type;if(d==="Polygon"||d==="MultiPolygon")return new Du(c,c.geometry)}else if(c.type==="Polygon"||c.type==="MultiPolygon")return new Du(c,c)}return o.error("'within' expression requires valid geojson object that contains polygon geometry type.")}evaluate(n){if(n.geometry()!=null&&n.canonicalID()!=null){if(n.geometryType()==="Point")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Eu(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=C0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!T0(I,b))return!1}return!0}(n,this.geometries);if(n.geometryType()==="LineString")return function(o,c){const d=[1/0,1/0,-1/0,-1/0],p=[1/0,1/0,-1/0,-1/0],_=o.canonicalID();if(!_)return!1;if(c.type==="Polygon"){const b=E0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!Ss(I,b))return!1}if(c.type==="MultiPolygon"){const b=D0(c.coordinates,p,_),w=N0(o.geometry(),d,p,_);if(!vl(d,p))return!1;for(const I of w)if(!gb(I,b))return!1}return!0}(n,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var _p=Du,Yh={exports:{}};Yh.exports=function(){var i={kilometers:1,miles:.621371192237334,nauticalmiles:.5399568034557235,meters:1e3,metres:1e3,yards:1093.6132983377079,feet:3280.839895013123,inches:39370.078740157485},n=1/298.257223563,o=n*(2-n),c=Math.PI/180,d=function(I,E){if(I===void 0)throw new Error("No latitude given.");if(E&&!i[E])throw new Error("Unknown unit "+E+". Use one of: "+Object.keys(i).join(", "));var L=6378.137*c*(E?i[E]:1),k=Math.cos(I*c),U=1/(1-o*(1-k*k)),F=Math.sqrt(U);this.kx=L*F*k,this.ky=L*F*U*(1-o)},p={units:{configurable:!0}};function _(I,E){return I[0]===E[0]&&I[1]===E[1]}function b(I,E,L){var k=w(E[0]-I[0]);return[I[0]+k*L,I[1]+(E[1]-I[1])*L]}function w(I){for(;I<-180;)I+=360;for(;I>180;)I-=360;return I}return d.fromTile=function(I,E,L){var k=Math.PI*(1-2*(I+.5)/Math.pow(2,E)),U=Math.atan(.5*(Math.exp(k)-Math.exp(-k)))/c;return new d(U,L)},p.units.get=function(){return i},d.prototype.distance=function(I,E){var L=w(I[0]-E[0])*this.kx,k=(I[1]-E[1])*this.ky;return Math.sqrt(L*L+k*k)},d.prototype.bearing=function(I,E){var L=w(E[0]-I[0])*this.kx;return Math.atan2(L,(E[1]-I[1])*this.ky)/c},d.prototype.destination=function(I,E,L){var k=L*c;return this.offset(I,Math.sin(k)*E,Math.cos(k)*E)},d.prototype.offset=function(I,E,L){return[I[0]+E/this.kx,I[1]+L/this.ky]},d.prototype.lineDistance=function(I){for(var E=0,L=0;L<I.length-1;L++)E+=this.distance(I[L],I[L+1]);return E},d.prototype.area=function(I){for(var E=0,L=0;L<I.length;L++)for(var k=I[L],U=0,F=k.length,$=F-1;U<F;$=U++)E+=w(k[U][0]-k[$][0])*(k[U][1]+k[$][1])*(L?-1:1);return Math.abs(E)/2*this.kx*this.ky},d.prototype.along=function(I,E){var L=0;if(E<=0)return I[0];for(var k=0;k<I.length-1;k++){var U=I[k],F=I[k+1],$=this.distance(U,F);if((L+=$)>E)return b(U,F,(E-(L-$))/$)}return I[I.length-1]},d.prototype.pointToSegmentDistance=function(I,E,L){var k=E[0],U=E[1],F=w(L[0]-k)*this.kx,$=(L[1]-U)*this.ky,Z=0;return F===0&&$===0||((Z=(w(I[0]-k)*this.kx*F+(I[1]-U)*this.ky*$)/(F*F+$*$))>1?(k=L[0],U=L[1]):Z>0&&(k+=F/this.kx*Z,U+=$/this.ky*Z)),F=w(I[0]-k)*this.kx,$=(I[1]-U)*this.ky,Math.sqrt(F*F+$*$)},d.prototype.pointOnLine=function(I,E){for(var L,k,U,F,$=1/0,Z=0;Z<I.length-1;Z++){var J=I[Z][0],de=I[Z][1],ye=w(I[Z+1][0]-J)*this.kx,ge=(I[Z+1][1]-de)*this.ky,Se=0;ye===0&&ge===0||((Se=(w(E[0]-J)*this.kx*ye+(E[1]-de)*this.ky*ge)/(ye*ye+ge*ge))>1?(J=I[Z+1][0],de=I[Z+1][1]):Se>0&&(J+=ye/this.kx*Se,de+=ge/this.ky*Se));var we=(ye=w(E[0]-J)*this.kx)*ye+(ge=(E[1]-de)*this.ky)*ge;we<$&&($=we,L=J,k=de,U=Z,F=Se)}return{point:[L,k],index:U,t:Math.max(0,Math.min(1,F))}},d.prototype.lineSlice=function(I,E,L){var k=this.pointOnLine(L,I),U=this.pointOnLine(L,E);if(k.index>U.index||k.index===U.index&&k.t>U.t){var F=k;k=U,U=F}var $=[k.point],Z=k.index+1,J=U.index;!_(L[Z],$[0])&&Z<=J&&$.push(L[Z]);for(var de=Z+1;de<=J;de++)$.push(L[de]);return _(L[J],U.point)||$.push(U.point),$},d.prototype.lineSliceAlong=function(I,E,L){for(var k=0,U=[],F=0;F<L.length-1;F++){var $=L[F],Z=L[F+1],J=this.distance($,Z);if((k+=J)>I&&U.length===0&&U.push(b($,Z,(I-(k-J))/J)),k>=E)return U.push(b($,Z,(E-(k-J))/J)),U;k>I&&U.push(Z)}return U},d.prototype.bufferPoint=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[0]+k,I[1]+L]},d.prototype.bufferBBox=function(I,E){var L=E/this.ky,k=E/this.kx;return[I[0]-k,I[1]-L,I[2]+k,I[3]+L]},d.prototype.insideBBox=function(I,E){return w(I[0]-E[0])>=0&&w(I[0]-E[2])<=0&&I[1]>=E[1]&&I[1]<=E[3]},Object.defineProperties(d,p),d}();var bl=Y(Yh.exports),L0={exports:{}};L0.exports=function(){var i=function(o,c){if(o===void 0&&(o=[]),c===void 0&&(c=n),this.data=o,this.length=this.data.length,this.compare=c,this.length>0)for(var d=(this.length>>1)-1;d>=0;d--)this._down(d)};function n(o,c){return o<c?-1:o>c?1:0}return i.prototype.push=function(o){this.data.push(o),this.length++,this._up(this.length-1)},i.prototype.pop=function(){if(this.length!==0){var o=this.data[0],c=this.data.pop();return this.length--,this.length>0&&(this.data[0]=c,this._down(0)),o}},i.prototype.peek=function(){return this.data[0]},i.prototype._up=function(o){for(var c=this.data,d=this.compare,p=c[o];o>0;){var _=o-1>>1,b=c[_];if(d(p,b)>=0)break;c[o]=b,o=_}c[o]=p},i.prototype._down=function(o){for(var c=this.data,d=this.compare,p=this.length>>1,_=c[o];o<p;){var b=1+(o<<1),w=c[b],I=b+1;if(I<this.length&&d(c[I],w)<0&&(b=I,w=c[I]),d(w,_)>=0)break;c[o]=w,o=b}c[o]=_},i}();var Es=Y(L0.exports),sn=8192;function vp(i,n){return n.dist-i.dist}const z0=100,Gh=50;function k0(i){const n=[1/0,1/0,-1/0,-1/0];if(n.length!==i.length)return!1;for(let o=0;o<n.length;o++)if(n[o]!==i[o])return!1;return!0}function Ml(i){return i[1]-i[0]+1}function Ys(i,n){const o=i[1]>=i[0]&&i[1]<n;return o||console.warn("Distance Expression: Index is out of range"),o}function O0(i,n){if(i[0]>i[1])return[null,null];const o=Ml(i);if(n){if(o===2)return[i,null];const c=Math.floor(o/2);return[[i[0],i[0]+c],[i[0]+c,i[1]]]}{if(o===1)return[i,null];const c=Math.floor(o/2)-1;return[[i[0],i[0]+c],[i[0]+c+1,i[1]]]}}function pc(i,n){const o=[1/0,1/0,-1/0,-1/0];if(!Ys(n,i.length))return o;for(let c=n[0];c<=n[1];++c)_l(o,i[c]);return o}function xp(i){const n=[1/0,1/0,-1/0,-1/0];for(let o=0;o<i.length;++o)for(let c=0;c<i[o].length;++c)_l(n,i[o][c]);return n}function mc(i,n,o){if(k0(i)||k0(n))return NaN;let c=0,d=0;return i[2]<n[0]&&(c=n[0]-i[2]),i[0]>n[2]&&(c=i[0]-n[2]),i[1]>n[3]&&(d=i[1]-n[3]),i[3]<n[1]&&(d=n[1]-i[3]),o.distance([0,0],[c,d])}function j0(i){return 360*i-180}function KS(i){return 360/Math.PI*Math.atan(Math.exp((180-360*i)*Math.PI/180))-90}function Au(i,n){const o=Math.pow(2,n.z),c=(i.y/sn+n.y)/o;return[j0((i.x/sn+n.x)/o),KS(c)]}function XS(i,n){const o=[];for(let c=0;c<i.length;++c)o.push(Au(i[c],n));return o}function yb(i,n,o){const c=o.pointOnLine(n,i).point;return o.distance(i,c)}function _b(i,n,o,c,d){const p=o.slice(c[0],c[1]+1);let _=1/0;for(let b=n[0];b<=n[1];++b)if((_=Math.min(_,yb(i[b],p,d)))===0)return 0;return _}function R0(i,n,o,c,d){const p=Math.min(d.pointToSegmentDistance(i,o,c),d.pointToSegmentDistance(n,o,c)),_=Math.min(d.pointToSegmentDistance(o,i,n),d.pointToSegmentDistance(c,i,n));return Math.min(p,_)}function JS(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<n[1];++_)for(let b=c[0];b<c[1];++b){if(za(i[_],i[_+1],o[b],o[b+1]))return 0;p=Math.min(p,R0(i[_],i[_+1],o[b],o[b+1],d))}return p}function eE(i,n,o,c,d){if(!Ys(n,i.length)||!Ys(c,o.length))return NaN;let p=1/0;for(let _=n[0];_<=n[1];++_)for(let b=c[0];b<=c[1];++b)if((p=Math.min(p,d.distance(i[_],o[b])))===0)return p;return p}function tE(i,n,o){if(Eu(i,n,!0))return 0;let c=1/0;for(const d of n){const p=d.length;if(p<2)return console.warn("Distance Expression: Invalid polygon!"),NaN;if(d[0]!==d[p-1]&&(c=Math.min(c,o.pointToSegmentDistance(i,d[p-1],d[0])))===0||(c=Math.min(c,yb(i,d,o)))===0)return c}return c}function vb(i,n,o,c){if(!Ys(n,i.length))return NaN;for(let p=n[0];p<=n[1];++p)if(Eu(i[p],o,!0))return 0;let d=1/0;for(let p=n[0];p<n[1];++p)for(const _ of o)for(let b=0,w=_.length,I=w-1;b<w;I=b++){if(za(i[p],i[p+1],_[I],_[b]))return 0;d=Math.min(d,R0(i[p],i[p+1],_[I],_[b],c))}return d}function Zh(i,n){for(const o of i)for(let c=0;c<=o.length-1;++c)if(Eu(o[c],n,!0))return!0;return!1}function nE(i,n,o,c=1/0){const d=xp(i),p=xp(n);if(c!==1/0&&mc(d,p,o)>=c)return c;if(vl(d,p)){if(Zh(i,n))return 0}else if(Zh(n,i))return 0;let _=c;for(const b of i)for(let w=0,I=b.length,E=I-1;w<I;E=w++)for(const L of n)for(let k=0,U=L.length,F=U-1;k<U;F=k++){if(za(b[E],b[w],L[F],L[k]))return 0;_=Math.min(_,R0(b[E],b[w],L[F],L[k],o))}return _}function bp(i,n,o,c,d,p,_){if(p===null||_===null)return;const b=mc(pc(c,p),pc(d,_),o);b<n&&i.push({dist:b,range1:p,range2:_})}function P0(i,n,o,c,d=1/0){let p=Math.min(c.distance(i[0],o[0][0]),d);if(p===0)return p;const _=new Es([{dist:0,range1:[0,i.length-1],range2:[0,0]}],vp),b=n?Gh:z0,w=xp(o);for(;_.length;){const I=_.pop();if(I.dist>=p)continue;const E=I.range1;if(Ml(E)<=b){if(!Ys(E,i.length))return NaN;if(n){const L=vb(i,E,o,c);if((p=Math.min(p,L))===0)return p}else for(let L=E[0];L<=E[1];++L){const k=tE(i[L],o,c);if((p=Math.min(p,k))===0)return p}}else{const L=O0(E,n);if(L[0]!==null){const k=mc(pc(i,L[0]),w,c);k<p&&_.push({dist:k,range1:L[0],range2:[0,0]})}if(L[1]!==null){const k=mc(pc(i,L[1]),w,c);k<p&&_.push({dist:k,range1:L[1],range2:[0,0]})}}}return p}function xb(i,n,o,c,d,p=1/0){let _=Math.min(p,d.distance(i[0],o[0]));if(_===0)return _;const b=new Es([{dist:0,range1:[0,i.length-1],range2:[0,o.length-1]}],vp),w=n?Gh:z0,I=c?Gh:z0;for(;b.length;){const E=b.pop();if(E.dist>=_)continue;const L=E.range1,k=E.range2;if(Ml(L)<=w&&Ml(k)<=I){if(!Ys(L,i.length)||!Ys(k,o.length))return NaN;if(n&&c?_=Math.min(_,JS(i,L,o,k,d)):n||c?n&&!c?_=Math.min(_,_b(o,k,i,L,d)):!n&&c&&(_=Math.min(_,_b(i,L,o,k,d))):_=Math.min(_,eE(i,L,o,k,d)),_===0)return _}else{const U=O0(L,n),F=O0(k,c);bp(b,_,d,i,o,U[0],F[0]),bp(b,_,d,i,o,U[0],F[1]),bp(b,_,d,i,o,U[1],F[0]),bp(b,_,d,i,o,U[1],F[1])}}return _}function U0(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o)if(!(p!==1/0&&mc(_,pc(b,[0,b.length-1]),c)>=p)&&(p=Math.min(p,xb(i,n,b,!0,c,p)),p===0))return p;return p}function Mp(i,n,o,c,d=1/0){let p=d;const _=pc(i,[0,i.length-1]);for(const b of o){if(p!==1/0&&mc(_,xp(b),c)>=p)continue;const w=P0(i,n,b,c,p);if(isNaN(w))return w;if((p=Math.min(p,w))===0)return p}return p}function B0(i){return i==="Point"||i==="MultiPoint"||i==="LineString"||i==="MultiLineString"||i==="Polygon"||i==="MultiPolygon"}class gc{constructor(n,o){this.type=hn,this.geojson=n,this.geometries=o}static parse(n,o){if(n.length!==2)return o.error(`'distance' expression requires either one argument, but found ' ${n.length-1} instead.`);if(hc(n[1])){const c=n[1];if(c.type==="FeatureCollection"){for(let d=0;d<c.features.length;++d)if(B0(c.features[d].geometry.type))return new gc(c,c.features[d].geometry)}else if(c.type==="Feature"){if(B0(c.geometry.type))return new gc(c,c.geometry)}else if(B0(c.type))return new gc(c,c)}return o.error("'distance' expression needs to be an array with format ['Distance', GeoJSONObj].")}evaluate(n){const o=n.geometry(),c=n.canonicalID();if(o!=null&&c!=null){if(n.geometryType()==="Point")return function(d,p,_){const b=[];for(const I of d)for(const E of I)b.push(Au(E,p));const w=new bl(b[0][1],"meters");return _.type==="Point"||_.type==="MultiPoint"||_.type==="LineString"?xb(b,!1,_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",w):_.type==="MultiLineString"?U0(b,!1,_.coordinates,w):_.type==="Polygon"||_.type==="MultiPolygon"?Mp(b,!1,_.type==="Polygon"?[_.coordinates]:_.coordinates,w):null}(o,c,this.geometries);if(n.geometryType()==="LineString")return function(d,p,_){const b=[];for(const I of d){const E=[];for(const L of I)E.push(Au(L,p));b.push(E)}const w=new bl(b[0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return U0(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=U0(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}if(_.type==="Polygon"||_.type==="MultiPolygon"){let I=1/0;for(let E=0;E<b.length;E++){const L=Mp(b[E],!0,_.type==="Polygon"?[_.coordinates]:_.coordinates,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return null}(o,c,this.geometries);if(n.geometryType()==="Polygon")return function(d,p,_){const b=[];for(const I of function(E,L){const k=E.length;if(k<=1)return[E];const U=[];let F,$;for(let Z=0;Z<k;Z++){const J=qS(E[Z]);J!==0&&(E[Z].area=Math.abs(J),$===void 0&&($=J<0),$===J<0?(F&&U.push(F),F=[E[Z]]):F.push(E[Z]))}return F&&U.push(F),U}(d)){const E=[];for(let L=0;L<I.length;++L)E.push(XS(I[L],p));b.push(E)}const w=new bl(b[0][0][0][1],"meters");if(_.type==="Point"||_.type==="MultiPoint"||_.type==="LineString")return Mp(_.type==="Point"?[_.coordinates]:_.coordinates,_.type==="LineString",b,w);if(_.type==="MultiLineString"){let I=1/0;for(let E=0;E<_.coordinates.length;E++){const L=Mp(_.coordinates[E],!0,b,w,I);if(isNaN(L))return L;if((I=Math.min(I,L))===0)return I}return I}return _.type==="Polygon"||_.type==="MultiPolygon"?function(I,E,L){let k=1/0;for(const U of I)for(const F of E){const $=nE(U,F,L,k);if(isNaN($))return $;if((k=Math.min(k,$))===0)return k}return k}(_.type==="Polygon"?[_.coordinates]:_.coordinates,b,w):null}(o,c,this.geometries);console.warn("Distance Expression: currently only evaluates valid Point/LineString/Polygon geometries.")}else console.warn("Distance Expression: requirs valid feature and canonical information.");return null}eachChild(){}outputDefined(){return!0}serialize(){return["distance",this.geojson]}}var wp=gc;function Wh(i,n){switch(i){case"string":return Ts(n);case"number":return+n;case"boolean":return!!n;case"color":return Cr.parse(n);case"formatted":return po.fromString(Ts(n));case"resolvedImage":return Dn.fromString(Ts(n))}return n}function F0(i,n,o,c){return c!==void 0&&(i=c*Math.round(i/c)),n!==void 0&&i<n&&(i=n),o!==void 0&&i>o&&(i=o),i}class qh{constructor(n,o,c){this.type=n,this.key=o,this.scope=c}static parse(n,o){let c=o.expectedType;if(c==null&&(c=pi),n.length<2||n.length>3)return o.error("Invalid number of arguments for 'config' expression.");const d=o.parse(n[1],1);if(!(d instanceof Ca))return o.error("Key name of 'config' expression must be a string literal.");if(n.length>=3){const p=o.parse(n[2],2);return p instanceof Ca?new qh(c,Ts(d.value),Ts(p.value)):o.error("Scope of 'config' expression must be a string literal.")}return new qh(c,Ts(d.value))}evaluate(n){const o=[this.key,this.scope,n.scope].filter(Boolean).join(""),c=n.getConfig(o);if(!c)return null;const{type:d,value:p,values:_,minValue:b,maxValue:w,stepValue:I}=c,E=c.default.evaluate(n);let L=E;if(p){const k=n.scope;n.scope=(k||"").split("").slice(1).join(""),L=p.evaluate(n),n.scope=k}return d&&(L=Wh(d,L)),L===void 0||b===void 0&&w===void 0&&I===void 0||(typeof L=="number"?L=F0(L,b,w,I):Array.isArray(L)&&(L=L.map(k=>typeof k=="number"?F0(k,b,w,I):k))),p!==void 0&&L!==void 0&&_&&!_.includes(L)&&(L=E,d&&(L=Wh(d,L))),(d&&d!==this.type||L!==void 0&&kr(L)!==this.type)&&(L=Wh(this.type.kind,L)),L}eachChild(){}outputDefined(){return!1}serialize(){const n=["config",this.key];return this.scope&&n.concat(this.key),n}}var Cu=qh;function Nu(i){if(i instanceof hi&&(i.name==="get"&&i.args.length===1||i.name==="feature-state"||i.name==="has"&&i.args.length===1||i.name==="properties"||i.name==="geometry-type"||i.name==="id"||/^filter-/.test(i.name))||i instanceof _p||i instanceof wp)return!1;let n=!0;return i.eachChild(o=>{n&&!Nu(o)&&(n=!1)}),n}function Kh(i){if(i instanceof hi&&i.name==="feature-state")return!1;let n=!0;return i.eachChild(o=>{n&&!Kh(o)&&(n=!1)}),n}function Xh(i){if(i instanceof Cu)return!1;let n=!0;return i.eachChild(o=>{n&&!Xh(o)&&(n=!1)}),n}function mo(i,n){if(i instanceof hi&&n.indexOf(i.name)>=0)return!1;let o=!0;return i.eachChild(c=>{o&&!mo(c,n)&&(o=!1)}),o}class wl{constructor(n,o){this.type=o.type,this.name=n,this.boundExpression=o}static parse(n,o){if(n.length!==2||typeof n[1]!="string")return o.error("'var' expression requires exactly one string literal argument.");const c=n[1];return o.scope.has(c)?new wl(c,o.scope.get(c)):o.error(`Unknown variable "${c}". Make sure "${c}" has been bound in an enclosing "let" expression before using it.`,1)}evaluate(n){return this.boundExpression.evaluate(n)}eachChild(){}outputDefined(){return!1}serialize(){return["var",this.name]}}var Ro=wl;class V0{constructor(n,o=[],c,d=new ZS,p=[],_,b){this.registry=n,this.path=o,this.key=o.map(w=>`[${w}]`).join(""),this.scope=d,this.errors=p,this.expectedType=c,this._scope=_,this.options=b}parse(n,o,c,d,p={}){return o||c?this.concat(o,c,d)._parse(n,p):this._parse(n,p)}_parse(n,o){function c(d,p,_){return _==="assert"?new Na(p,[d]):_==="coerce"?new La(p,[d]):d}if(n!==null&&typeof n!="string"&&typeof n!="boolean"&&typeof n!="number"||(n=["literal",n]),Array.isArray(n)){if(n.length===0)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');const d=typeof n[0]=="string"?this.registry[n[0]]:void 0;if(d){let p=d.parse(n,this);if(!p)return null;if(this.expectedType){const _=this.expectedType,b=p.type;if(_.kind!=="string"&&_.kind!=="number"&&_.kind!=="boolean"&&_.kind!=="object"&&_.kind!=="array"||b.kind!=="value")if(_.kind!=="color"&&_.kind!=="formatted"&&_.kind!=="resolvedImage"||b.kind!=="value"&&b.kind!=="string"){if(this.checkSubtype(_,b))return null}else p=c(p,_,o.typeAnnotation||"coerce");else p=c(p,_,o.typeAnnotation||"assert")}if(!(p instanceof Ca)&&p.type.kind!=="resolvedImage"&&$0(p)){const _=new pb(this._scope,this.options);try{p=new Ca(p.type,p.evaluate(_))}catch(b){return this.error(b.message),null}}return p}return La.parse(["to-array",n],this)}return this.error(n===void 0?"'undefined' value invalid. Use null instead.":typeof n=="object"?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof n} instead.`)}concat(n,o,c){const d=typeof n=="number"?this.path.concat(n):this.path,p=c?this.scope.concat(c):this.scope;return new V0(this.registry,d,o||null,p,this.errors,this._scope,this.options)}error(n,...o){const c=`${this.key}${o.map(d=>`[${d}]`).join("")}`;this.errors.push(new fa(c,n))}checkSubtype(n,o){const c=uc(n,o);return c&&this.error(c),c}}var bb=V0;function $0(i){if(i instanceof Ro)return $0(i.boundExpression);if(i instanceof hi&&i.name==="error"||i instanceof Qh||i instanceof _p||i instanceof wp||i instanceof Cu)return!1;const n=i instanceof La||i instanceof Na;let o=!0;return i.eachChild(c=>{o=n?o&&$0(c):o&&c instanceof Ca}),!!o&&Nu(i)&&mo(i,["zoom","heatmap-density","line-progress","raster-value","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center","measure-light","raster-particle-speed"])}function yc(i,n){const o=i.length-1;let c,d,p=0,_=o,b=0;for(;p<=_;)if(b=Math.floor((p+_)/2),c=i[b],d=i[b+1],c<=n){if(b===o||n<d)return b;p=b+1}else{if(!(c>n))throw new Or("Input is not a number.");_=b-1}return 0}class Ip{constructor(n,o,c){this.type=n,this.input=o,this.labels=[],this.outputs=[];for(const[d,p]of c)this.labels.push(d),this.outputs.push(p)}static parse(n,o){if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=[];let p=null;o.expectedType&&o.expectedType.kind!=="value"&&(p=o.expectedType);for(let _=1;_<n.length;_+=2){const b=_===1?-1/0:n[_],w=n[_+1],I=_,E=_+1;if(typeof b!="number")return o.error('Input/output pairs for "step" expressions must be defined using literal numeric values (not computed expressions) for the input values.',I);if(d.length&&d[d.length-1][0]>=b)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',I);const L=o.parse(w,E,p);if(!L)return null;p=p||L.type,d.push([b,L])}return new Ip(p,c,d)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;return d>=o[p-1]?c[p-1].evaluate(n):c[yc(o,d)].evaluate(n)}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){const n=["step",this.input.serialize()];for(let o=0;o<this.labels.length;o++)o>0&&n.push(this.labels[o]),n.push(this.outputs[o].serialize());return n}}var Jh=Ip;const Mb=.95047,Il=1.08883,wb=4/29,Lu=6/29,Q0=3*Lu*Lu,Ib=Lu*Lu*Lu,iE=Math.PI/180,Gs=180/Math.PI;function Tp(i){return i>Ib?Math.pow(i,1/3):i/Q0+wb}function Sp(i){return i>Lu?i*i*i:Q0*(i-wb)}function Ep(i){return 255*(i<=.0031308?12.92*i:1.055*Math.pow(i,1/2.4)-.055)}function Dp(i){return(i/=255)<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4)}function H0(i){const n=Dp(i.r),o=Dp(i.g),c=Dp(i.b),d=Tp((.4124564*n+.3575761*o+.1804375*c)/Mb),p=Tp((.2126729*n+.7151522*o+.072175*c)/1);return{l:116*p-16,a:500*(d-p),b:200*(p-Tp((.0193339*n+.119192*o+.9503041*c)/Il)),alpha:i.a}}function Y0(i){let n=(i.l+16)/116,o=isNaN(i.a)?n:n+i.a/500,c=isNaN(i.b)?n:n-i.b/200;return n=1*Sp(n),o=Mb*Sp(o),c=Il*Sp(c),new Cr(Ep(3.2404542*o-1.5371385*n-.4985314*c),Ep(-.969266*o+1.8760108*n+.041556*c),Ep(.0556434*o-.2040259*n+1.0572252*c),i.alpha)}function Tb(i,n,o){const c=n-i;return i+o*(c>180||c<-180?c-360*Math.round(c/360):c)}const zu={forward:H0,reverse:Y0,interpolate:function(i,n,o){return{l:li(i.l,n.l,o),a:li(i.a,n.a,o),b:li(i.b,n.b,o),alpha:li(i.alpha,n.alpha,o)}}},ku={forward:function(i){const{l:n,a:o,b:c}=H0(i),d=Math.atan2(c,o)*Gs;return{h:d<0?d+360:d,c:Math.sqrt(o*o+c*c),l:n,alpha:i.a}},reverse:function(i){const n=i.h*iE,o=i.c;return Y0({l:i.l,a:Math.cos(n)*o,b:Math.sin(n)*o,alpha:i.alpha})},interpolate:function(i,n,o){return{h:Tb(i.h,n.h,o),c:li(i.c,n.c,o),l:li(i.l,n.l,o),alpha:li(i.alpha,n.alpha,o)}}};var G0=Object.freeze({__proto__:null,hcl:ku,lab:zu});class ed{constructor(n,o,c,d,p){this.type=n,this.operator=o,this.interpolation=c,this.input=d,this.labels=[],this.outputs=[];for(const[_,b]of p)this.labels.push(_),this.outputs.push(b)}static interpolationFactor(n,o,c,d){let p=0;if(n.name==="exponential")p=Ou(o,n.base,c,d);else if(n.name==="linear")p=Ou(o,1,c,d);else if(n.name==="cubic-bezier"){const _=n.controlPoints;p=new fe(_[0],_[1],_[2],_[3]).solve(Ou(o,1,c,d))}return p}static parse(n,o){let[c,d,p,..._]=n;if(!Array.isArray(d)||d.length===0)return o.error("Expected an interpolation type expression.",1);if(d[0]==="linear")d={name:"linear"};else if(d[0]==="exponential"){const I=d[1];if(typeof I!="number")return o.error("Exponential interpolation requires a numeric base.",1,1);d={name:"exponential",base:I}}else{if(d[0]!=="cubic-bezier")return o.error(`Unknown interpolation type ${String(d[0])}`,1,0);{const I=d.slice(1);if(I.length!==4||I.some(E=>typeof E!="number"||E<0||E>1))return o.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);d={name:"cubic-bezier",controlPoints:I}}}if(n.length-1<4)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if((n.length-1)%2!=0)return o.error("Expected an even number of arguments.");if(p=o.parse(p,2,hn),!p)return null;const b=[];let w=null;c==="interpolate-hcl"||c==="interpolate-lab"?w=Is:o.expectedType&&o.expectedType.kind!=="value"&&(w=o.expectedType);for(let I=0;I<_.length;I+=2){const E=_[I],L=_[I+1],k=I+3,U=I+4;if(typeof E!="number")return o.error('Input/output pairs for "interpolate" expressions must be defined using literal numeric values (not computed expressions) for the input values.',k);if(b.length&&b[b.length-1][0]>=E)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const F=o.parse(L,U,w);if(!F)return null;w=w||F.type,b.push([E,F])}return w.kind==="number"||w.kind==="color"||w.kind==="array"&&w.itemType.kind==="number"&&typeof w.N=="number"?new ed(w,c,d,p,b):o.error(`Type ${Ir(w)} is not interpolatable.`)}evaluate(n){const o=this.labels,c=this.outputs;if(o.length===1)return c[0].evaluate(n);const d=this.input.evaluate(n);if(d<=o[0])return c[0].evaluate(n);const p=o.length;if(d>=o[p-1])return c[p-1].evaluate(n);const _=yc(o,d),b=ed.interpolationFactor(this.interpolation,d,o[_],o[_+1]),w=c[_].evaluate(n),I=c[_+1].evaluate(n);return this.operator==="interpolate"?pp[this.type.kind.toLowerCase()](w,I,b):this.operator==="interpolate-hcl"?ku.reverse(ku.interpolate(ku.forward(w),ku.forward(I),b)):zu.reverse(zu.interpolate(zu.forward(w),zu.forward(I),b))}eachChild(n){n(this.input);for(const o of this.outputs)n(o)}outputDefined(){return this.outputs.every(n=>n.outputDefined())}serialize(){let n;n=this.interpolation.name==="linear"?["linear"]:this.interpolation.name==="exponential"?this.interpolation.base===1?["linear"]:["exponential",this.interpolation.base]:["cubic-bezier"].concat(this.interpolation.controlPoints);const o=[this.operator,n,this.input.serialize()];for(let c=0;c<this.labels.length;c++)o.push(this.labels[c],this.outputs[c].serialize());return o}}function Ou(i,n,o,c){const d=c-o,p=i-o;return d===0?0:n===1?p/d:(Math.pow(n,p)-1)/(Math.pow(n,d)-1)}var us=ed;class ju{constructor(n,o){this.type=n,this.args=o}static parse(n,o){if(n.length<2)return o.error("Expectected at least one argument.");let c=null;const d=o.expectedType;d&&d.kind!=="value"&&(c=d);const p=[];for(const b of n.slice(1)){const w=o.parse(b,1+p.length,c,void 0,{typeAnnotation:"omit"});if(!w)return null;c=c||w.type,p.push(w)}const _=d&&p.some(b=>uc(d,b.type));return new ju(_?pi:c,p)}evaluate(n){let o,c=null,d=0;for(const p of this.args){if(d++,c=p.evaluate(n),c&&c instanceof Dn&&!c.available&&(o||(o=c),c=null,d===this.args.length))return o;if(c!==null)break}return c}eachChild(n){this.args.forEach(n)}outputDefined(){return this.args.every(n=>n.outputDefined())}serialize(){const n=["coalesce"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Z0=ju;class Ap{constructor(n,o){this.type=o.type,this.bindings=[].concat(n),this.result=o}evaluate(n){return this.result.evaluate(n)}eachChild(n){for(const o of this.bindings)n(o[1]);n(this.result)}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found ${n.length-1} instead.`);const c=[];for(let p=1;p<n.length-1;p+=2){const _=n[p];if(typeof _!="string")return o.error(`Expected string, but found ${typeof _} instead.`,p);if(/[^a-zA-Z0-9_]/.test(_))return o.error("Variable names must contain only alphanumeric characters or '_'.",p);const b=o.parse(n[p+1],p+1);if(!b)return null;c.push([_,b])}const d=o.parse(n[n.length-1],n.length-1,o.expectedType,c);return d?new Ap(c,d):null}outputDefined(){return this.result.outputDefined()}serialize(){const n=["let"];for(const[o,c]of this.bindings)n.push(o,c.serialize());return n.push(this.result.serialize()),n}}var W0=Ap;class Tl{constructor(n,o,c){this.type=n,this.index=o,this.input=c}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,hn),d=o.parse(n[2],2,Yo(o.expectedType||pi));return c&&d?new Tl(d.type.itemType,c,d):null}evaluate(n){const o=this.index.evaluate(n),c=this.input.evaluate(n);if(o<0)throw new Or(`Array index out of bounds: ${o} < 0.`);if(o>=c.length)throw new Or(`Array index out of bounds: ${o} > ${c.length-1}.`);if(o!==Math.floor(o))throw new Or(`Array index must be an integer, but found ${o} instead.`);return c[o]}eachChild(n){n(this.index),n(this.input)}outputDefined(){return!1}serialize(){return["at",this.index.serialize(),this.input.serialize()]}}var mi=Tl;class q0{constructor(n,o){this.type=Ii,this.needle=n,this.haystack=o}static parse(n,o){if(n.length!==3)return o.error(`Expected 2 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);return c&&d?Rn(c.type,[Ii,wi,hn,bu,pi])?new q0(c,d):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`):null}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(c==null)return!1;if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);return c.indexOf(o)>=0}eachChild(n){n(this.needle),n(this.haystack)}outputDefined(){return!0}serialize(){return["in",this.needle.serialize(),this.haystack.serialize()]}}var rE=q0;class Cp{constructor(n,o,c){this.type=hn,this.needle=n,this.haystack=o,this.fromIndex=c}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,pi);if(!c||!d)return null;if(!Rn(c.type,[Ii,wi,hn,bu,pi]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new Cp(c,d,p):null}return new Cp(c,d)}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(!gl(o,["boolean","string","number","null"]))throw new Or(`Expected first argument to be of type boolean, string, number or null, but found ${Ir(kr(o))} instead.`);if(!gl(c,["string","array"]))throw new Or(`Expected second argument to be of type array or string, but found ${Ir(kr(c))} instead.`);if(this.fromIndex){const d=this.fromIndex.evaluate(n);return c.indexOf(o,d)}return c.indexOf(o)}eachChild(n){n(this.needle),n(this.haystack),this.fromIndex&&n(this.fromIndex)}outputDefined(){return!1}serialize(){if(this.fromIndex!=null&&this.fromIndex!==void 0){const n=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),n]}return["index-of",this.needle.serialize(),this.haystack.serialize()]}}var Sb=Cp;class K0{constructor(n,o,c,d,p,_){this.inputType=n,this.type=o,this.input=c,this.cases=d,this.outputs=p,this.otherwise=_}static parse(n,o){if(n.length<5)return o.error(`Expected at least 4 arguments, but found only ${n.length-1}.`);if(n.length%2!=1)return o.error("Expected an even number of arguments.");let c,d;o.expectedType&&o.expectedType.kind!=="value"&&(d=o.expectedType);const p={},_=[];for(let I=2;I<n.length-1;I+=2){let E=n[I];const L=n[I+1];Array.isArray(E)||(E=[E]);const k=o.concat(I);if(E.length===0)return k.error("Expected at least one branch label.");for(const F of E){if(typeof F!="number"&&typeof F!="string")return k.error("Branch labels must be numbers or strings.");if(typeof F=="number"&&Math.abs(F)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof F=="number"&&Math.floor(F)!==F)return k.error("Numeric branch labels must be integer values.");if(c){if(k.checkSubtype(c,kr(F)))return null}else c=kr(F);if(p[String(F)]!==void 0)return k.error("Branch labels must be unique.");p[String(F)]=_.length}const U=o.parse(L,I,d);if(!U)return null;d=d||U.type,_.push(U)}const b=o.parse(n[1],1,pi);if(!b)return null;const w=o.parse(n[n.length-1],n.length-1,d);return w?b.type.kind!=="value"&&o.concat(1).checkSubtype(c,b.type)?null:new K0(c,d,b,p,_,w):null}evaluate(n){const o=this.input.evaluate(n);return(kr(o)===this.inputType&&this.outputs[this.cases[o]]||this.otherwise).evaluate(n)}eachChild(n){n(this.input),this.outputs.forEach(n),n(this.otherwise)}outputDefined(){return this.outputs.every(n=>n.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["match",this.input.serialize()],o=Object.keys(this.cases).sort(),c=[],d={};for(const _ of o){const b=d[this.cases[_]];b===void 0?(d[this.cases[_]]=c.length,c.push([this.cases[_],[_]])):c[b][1].push(_)}const p=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,b]of c)n.push(b.length===1?p(b[0]):b.map(p)),n.push(this.outputs[_].serialize());return n.push(this.otherwise.serialize()),n}}var Eb=K0;class Np{constructor(n,o,c){this.type=n,this.branches=o,this.otherwise=c}static parse(n,o){if(n.length<4)return o.error(`Expected at least 3 arguments, but found only ${n.length-1}.`);if(n.length%2!=0)return o.error("Expected an odd number of arguments.");let c;o.expectedType&&o.expectedType.kind!=="value"&&(c=o.expectedType);const d=[];for(let _=1;_<n.length-1;_+=2){const b=o.parse(n[_],_,Ii);if(!b)return null;const w=o.parse(n[_+1],_+1,c);if(!w)return null;d.push([b,w]),c=c||w.type}const p=o.parse(n[n.length-1],n.length-1,c);return p?new Np(c,d,p):null}evaluate(n){for(const[o,c]of this.branches)if(o.evaluate(n))return c.evaluate(n);return this.otherwise.evaluate(n)}eachChild(n){for(const[o,c]of this.branches)n(o),n(c);n(this.otherwise)}outputDefined(){return this.branches.every(([n,o])=>o.outputDefined())&&this.otherwise.outputDefined()}serialize(){const n=["case"];return this.eachChild(o=>{n.push(o.serialize())}),n}}var Db=Np;class td{constructor(n,o,c,d){this.type=n,this.input=o,this.beginIndex=c,this.endIndex=d}static parse(n,o){if(n.length<=2||n.length>=5)return o.error(`Expected 3 or 4 arguments, but found ${n.length-1} instead.`);const c=o.parse(n[1],1,pi),d=o.parse(n[2],2,hn);if(!c||!d)return null;if(!Rn(c.type,[Yo(pi),wi,pi]))return o.error(`Expected first argument to be of type array or string, but found ${Ir(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,hn);return p?new td(c.type,c,d,p):null}return new td(c.type,c,d)}evaluate(n){const o=this.input.evaluate(n),c=this.beginIndex.evaluate(n);if(!gl(o,["string","array"]))throw new Or(`Expected first argument to be of type array or string, but found ${Ir(kr(o))} instead.`);if(this.endIndex){const d=this.endIndex.evaluate(n);return o.slice(c,d)}return o.slice(c)}eachChild(n){n(this.input),n(this.beginIndex),this.endIndex&&n(this.endIndex)}outputDefined(){return!1}serialize(){if(this.endIndex!=null&&this.endIndex!==void 0){const n=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),n]}return["slice",this.input.serialize(),this.beginIndex.serialize()]}}var Ru=td;function X0(i,n){return i==="=="||i==="!="?n.kind==="boolean"||n.kind==="string"||n.kind==="number"||n.kind==="null"||n.kind==="value":n.kind==="string"||n.kind==="number"||n.kind==="value"}function J0(i,n,o,c){return c.compare(n,o)===0}function Pu(i,n,o){const c=i!=="=="&&i!=="!=";return class iV{constructor(p,_,b){this.type=Ii,this.lhs=p,this.rhs=_,this.collator=b,this.hasUntypedArgument=p.type.kind==="value"||_.type.kind==="value"}static parse(p,_){if(p.length!==3&&p.length!==4)return _.error("Expected two or three arguments.");const b=p[0];let w=_.parse(p[1],1,pi);if(!w)return null;if(!X0(b,w.type))return _.concat(1).error(`"${b}" comparisons are not supported for type '${Ir(w.type)}'.`);let I=_.parse(p[2],2,pi);if(!I)return null;if(!X0(b,I.type))return _.concat(2).error(`"${b}" comparisons are not supported for type '${Ir(I.type)}'.`);if(w.type.kind!==I.type.kind&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error(`Cannot compare types '${Ir(w.type)}' and '${Ir(I.type)}'.`);c&&(w.type.kind==="value"&&I.type.kind!=="value"?w=new Na(I.type,[w]):w.type.kind!=="value"&&I.type.kind==="value"&&(I=new Na(w.type,[I])));let E=null;if(p.length===4){if(w.type.kind!=="string"&&I.type.kind!=="string"&&w.type.kind!=="value"&&I.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(E=_.parse(p[3],3,mp),!E)return null}return new iV(w,I,E)}evaluate(p){const _=this.lhs.evaluate(p),b=this.rhs.evaluate(p);if(c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!==I.kind||w.kind!=="string"&&w.kind!=="number")throw new Or(`Expected arguments for "${i}" to be (string, string) or (number, number), but found (${w.kind}, ${I.kind}) instead.`)}if(this.collator&&!c&&this.hasUntypedArgument){const w=kr(_),I=kr(b);if(w.kind!=="string"||I.kind!=="string")return n(p,_,b)}return this.collator?o(p,_,b,this.collator.evaluate(p)):n(p,_,b)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[i];return this.eachChild(_=>{p.push(_.serialize())}),p}}}const e1=Pu("==",function(i,n,o){return n===o},J0),t1=Pu("!=",function(i,n,o){return n!==o},function(i,n,o,c){return!J0(0,n,o,c)}),oE=Pu("<",function(i,n,o){return n<o},function(i,n,o,c){return c.compare(n,o)<0}),sE=Pu(">",function(i,n,o){return n>o},function(i,n,o,c){return c.compare(n,o)>0}),Ab=Pu("<=",function(i,n,o){return n<=o},function(i,n,o,c){return c.compare(n,o)<=0}),aE=Pu(">=",function(i,n,o){return n>=o},function(i,n,o,c){return c.compare(n,o)>=0});class n1{constructor(n,o,c,d,p,_){this.type=wi,this.number=n,this.locale=o,this.currency=c,this.unit=d,this.minFractionDigits=p,this.maxFractionDigits=_}static parse(n,o){if(n.length!==3)return o.error("Expected two arguments.");const c=o.parse(n[1],1,hn);if(!c)return null;const d=n[2];if(typeof d!="object"||Array.isArray(d))return o.error("NumberFormat options argument must be an object.");let p=null;if(d.locale&&(p=o.parse(d.locale,1,wi),!p))return null;let _=null;if(d.currency&&(_=o.parse(d.currency,1,wi),!_))return null;let b=null;if(d.unit&&(b=o.parse(d.unit,1,wi),!b))return null;let w=null;if(d["min-fraction-digits"]&&(w=o.parse(d["min-fraction-digits"],1,hn),!w))return null;let I=null;return d["max-fraction-digits"]&&(I=o.parse(d["max-fraction-digits"],1,hn),!I)?null:new n1(c,p,_,b,w,I)}evaluate(n){return new Intl.NumberFormat(this.locale?this.locale.evaluate(n):[],{style:(this.currency?"currency":this.unit&&"unit")||"decimal",currency:this.currency?this.currency.evaluate(n):void 0,unit:this.unit?this.unit.evaluate(n):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(n):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(n):void 0}).format(this.number.evaluate(n))}eachChild(n){n(this.number),this.locale&&n(this.locale),this.currency&&n(this.currency),this.unit&&n(this.unit),this.minFractionDigits&&n(this.minFractionDigits),this.maxFractionDigits&&n(this.maxFractionDigits)}outputDefined(){return!1}serialize(){const n={};return this.locale&&(n.locale=this.locale.serialize()),this.currency&&(n.currency=this.currency.serialize()),this.unit&&(n.unit=this.unit.serialize()),this.minFractionDigits&&(n["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(n["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),n]}}class i1{constructor(n){this.type=hn,this.input=n}static parse(n,o){if(n.length!==2)return o.error(`Expected 1 argument, but found ${n.length-1} instead.`);const c=o.parse(n[1],1);return c?c.type.kind!=="array"&&c.type.kind!=="string"&&c.type.kind!=="value"?o.error(`Expected argument of type string or array, but found ${Ir(c.type)} instead.`):new i1(c):null}evaluate(n){const o=this.input.evaluate(n);if(typeof o=="string"||Array.isArray(o))return o.length;throw new Or(`Expected value to be of type string or array, but found ${Ir(kr(o))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){const n=["length"];return this.eachChild(o=>{n.push(o.serialize())}),n}}function Cb(i){return function(){i=1831565813+(i|=0)|0;let n=Math.imul(i^i>>>15,1|i);return n=n+Math.imul(n^n>>>7,61|n)^n,((n^n>>>14)>>>0)/4294967296}}const r1={"==":e1,"!=":t1,">":sE,"<":oE,">=":aE,"<=":Ab,array:Na,at:mi,boolean:Na,case:Db,coalesce:Z0,collator:Qh,format:Tu,image:dc,in:rE,"index-of":Sb,interpolate:us,"interpolate-hcl":us,"interpolate-lab":us,length:i1,let:W0,literal:Ca,match:Eb,number:Na,"number-format":n1,object:Na,slice:Ru,step:Jh,string:Na,"to-boolean":La,"to-color":La,"to-number":La,"to-string":La,var:Ro,within:_p,distance:wp,config:Cu};function o1(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=fb(n,o,c,p);if(_)throw new Or(_);return new Cr(n/255*p,o/255*p,c/255*p,p)}function Nb(i,[n,o,c,d]){n=n.evaluate(i),o=o.evaluate(i),c=c.evaluate(i);const p=d?d.evaluate(i):1,_=function(I,E,L,k){return typeof I=="number"&&I>=0&&I<=360?typeof E=="number"&&E>=0&&E<=100&&typeof L=="number"&&L>=0&&L<=100?k===void 0||typeof k=="number"&&k>=0&&k<=1?null:`Invalid hsla value [${[I,E,L,k].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 's', and 'l' must be between 0 and 100.`:`Invalid hsla value [${(typeof k=="number"?[I,E,L,k]:[I,E,L]).join(", ")}]: 'h' must be between 0 and 360.`}(n,o,c,p);if(_)throw new Or(_);const b=`hsla(${n}, ${o}%, ${c}%, ${p})`,w=Cr.parse(b);if(!w)throw new Or(`Failed to parse HSLA color: ${b}`);return w}function s1(i,n){return i in n}function a1(i,n){const o=n[i];return o===void 0?null:o}function _c(i){return{type:i}}hi.register(r1,{error:[{kind:"error"},[wi],(i,[n])=>{throw new Or(n.evaluate(i))}],typeof:[wi,[pi],(i,[n])=>Ir(kr(n.evaluate(i)))],"to-rgba":[Yo(hn,4),[Is],(i,[n])=>n.evaluate(i).toArray()],rgb:[Is,[hn,hn,hn],o1],rgba:[Is,[hn,hn,hn,hn],o1],hsl:[Is,[hn,hn,hn],Nb],hsla:[Is,[hn,hn,hn,hn],Nb],has:{type:Ii,overloads:[[[wi],(i,[n])=>s1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>s1(n.evaluate(i),o.evaluate(i))]]},get:{type:pi,overloads:[[[wi],(i,[n])=>a1(n.evaluate(i),i.properties())],[[wi,Mu],(i,[n,o])=>a1(n.evaluate(i),o.evaluate(i))]]},"feature-state":[pi,[wi],(i,[n])=>a1(n.evaluate(i),i.featureState||{})],properties:[Mu,[],i=>i.properties()],"geometry-type":[wi,[],i=>i.geometryType()],id:[pi,[],i=>i.id()],zoom:[hn,[],i=>i.globals.zoom],pitch:[hn,[],i=>i.globals.pitch||0],"distance-from-center":[hn,[],i=>i.distanceFromCenter()],"measure-light":[hn,[wi],(i,[n])=>i.measureLight(n.evaluate(i))],"heatmap-density":[hn,[],i=>i.globals.heatmapDensity||0],"line-progress":[hn,[],i=>i.globals.lineProgress||0],"raster-value":[hn,[],i=>i.globals.rasterValue||0],"raster-particle-speed":[hn,[],i=>i.globals.rasterParticleSpeed||0],"sky-radial-progress":[hn,[],i=>i.globals.skyRadialProgress||0],accumulated:[pi,[],i=>i.globals.accumulated===void 0?null:i.globals.accumulated],"+":[hn,_c(hn),(i,n)=>{let o=0;for(const c of n)o+=c.evaluate(i);return o}],"*":[hn,_c(hn),(i,n)=>{let o=1;for(const c of n)o*=c.evaluate(i);return o}],"-":{type:hn,overloads:[[[hn,hn],(i,[n,o])=>n.evaluate(i)-o.evaluate(i)],[[hn],(i,[n])=>-n.evaluate(i)]]},"/":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)/o.evaluate(i)],"%":[hn,[hn,hn],(i,[n,o])=>n.evaluate(i)%o.evaluate(i)],ln2:[hn,[],()=>Math.LN2],pi:[hn,[],()=>Math.PI],e:[hn,[],()=>Math.E],"^":[hn,[hn,hn],(i,[n,o])=>Math.pow(n.evaluate(i),o.evaluate(i))],sqrt:[hn,[hn],(i,[n])=>Math.sqrt(n.evaluate(i))],log10:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN10],ln:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))],log2:[hn,[hn],(i,[n])=>Math.log(n.evaluate(i))/Math.LN2],sin:[hn,[hn],(i,[n])=>Math.sin(n.evaluate(i))],cos:[hn,[hn],(i,[n])=>Math.cos(n.evaluate(i))],tan:[hn,[hn],(i,[n])=>Math.tan(n.evaluate(i))],asin:[hn,[hn],(i,[n])=>Math.asin(n.evaluate(i))],acos:[hn,[hn],(i,[n])=>Math.acos(n.evaluate(i))],atan:[hn,[hn],(i,[n])=>Math.atan(n.evaluate(i))],min:[hn,_c(hn),(i,n)=>Math.min(...n.map(o=>o.evaluate(i)))],max:[hn,_c(hn),(i,n)=>Math.max(...n.map(o=>o.evaluate(i)))],abs:[hn,[hn],(i,[n])=>Math.abs(n.evaluate(i))],round:[hn,[hn],(i,[n])=>{const o=n.evaluate(i);return o<0?-Math.round(-o):Math.round(o)}],floor:[hn,[hn],(i,[n])=>Math.floor(n.evaluate(i))],ceil:[hn,[hn],(i,[n])=>Math.ceil(n.evaluate(i))],"filter-==":[Ii,[wi,pi],(i,[n,o])=>i.properties()[n.value]===o.value],"filter-id-==":[Ii,[pi],(i,[n])=>i.id()===n.value],"filter-type-==":[Ii,[wi],(i,[n])=>i.geometryType()===n.value],"filter-<":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<d}],"filter-id-<":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<c}],"filter->":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>d}],"filter-id->":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>c}],"filter-<=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c<=d}],"filter-id-<=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o<=c}],"filter->=":[Ii,[wi,pi],(i,[n,o])=>{const c=i.properties()[n.value],d=o.value;return typeof c==typeof d&&c>=d}],"filter-id->=":[Ii,[pi],(i,[n])=>{const o=i.id(),c=n.value;return typeof o==typeof c&&o>=c}],"filter-has":[Ii,[pi],(i,[n])=>n.value in i.properties()],"filter-has-id":[Ii,[],i=>i.id()!==null&&i.id()!==void 0],"filter-type-in":[Ii,[Yo(wi)],(i,[n])=>n.value.indexOf(i.geometryType())>=0],"filter-id-in":[Ii,[Yo(pi)],(i,[n])=>n.value.indexOf(i.id())>=0],"filter-in-small":[Ii,[wi,Yo(pi)],(i,[n,o])=>o.value.indexOf(i.properties()[n.value])>=0],"filter-in-large":[Ii,[wi,Yo(pi)],(i,[n,o])=>function(c,d,p,_){for(;p<=_;){const b=p+_>>1;if(d[b]===c)return!0;d[b]>c?_=b-1:p=b+1}return!1}(i.properties()[n.value],o.value,0,o.value.length-1)],all:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)&&o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(!o.evaluate(i))return!1;return!0}]]},any:{type:Ii,overloads:[[[Ii,Ii],(i,[n,o])=>n.evaluate(i)||o.evaluate(i)],[_c(Ii),(i,n)=>{for(const o of n)if(o.evaluate(i))return!0;return!1}]]},"!":[Ii,[Ii],(i,[n])=>!n.evaluate(i)],"is-supported-script":[Ii,[wi],(i,[n])=>{const o=i.globals&&i.globals.isSupportedScript;return!o||o(n.evaluate(i))}],upcase:[wi,[wi],(i,[n])=>n.evaluate(i).toUpperCase()],downcase:[wi,[wi],(i,[n])=>n.evaluate(i).toLowerCase()],concat:[wi,_c(pi),(i,n)=>n.map(o=>Ts(o.evaluate(i))).join("")],"resolved-locale":[wi,[mp],(i,[n])=>n.evaluate(i).resolvedLocale()],random:[hn,[hn,hn,pi],(i,n)=>{const[o,c,d]=n.map(_=>_.evaluate(i));if(o>c||o===c)return o;let p;if(typeof d=="string")p=function(_){let b=0;if(_.length===0)return b;for(let w=0;w<_.length;w++)b=(b<<5)-b+_.charCodeAt(w),b|=0;return b}(d);else{if(typeof d!="number")throw new Or(`Invalid seed input: ${d}`);p=d}return o+Cb(p)()*(c-o)}]});var Uu=r1;function l1(i){return{result:"success",value:i}}function vc(i){return{result:"error",value:i}}function Lb(i,n){return!!i&&!!i.parameters&&i.parameters.indexOf(n)>-1}function Lp(i){return i["property-type"]==="data-driven"}function c1(i){return Lb(i.expression,"measure-light")}function zb(i){return Lb(i.expression,"zoom")}function u1(i){return!!i.expression&&i.expression.interpolated}function zp(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)}function kb(i){return i}function h1(i,n){const o=n.type==="color",c=i.stops&&typeof i.stops[0][0]=="object",d=c||!(c||i.property!==void 0),p=i.type||(u1(n)?"exponential":"interval");if(o&&((i=v0({},i)).stops&&(i.stops=i.stops.map(I=>[I[0],Cr.parse(I[1])])),i.default=Cr.parse(i.default?i.default:n.default)),i.colorSpace&&i.colorSpace!=="rgb"&&!G0[i.colorSpace])throw new Error(`Unknown color space: ${i.colorSpace}`);let _,b,w;if(p==="exponential")_=Ob;else if(p==="interval")_=cE;else if(p==="categorical"){_=lE,b=Object.create(null);for(const I of i.stops)b[I[0]]=I[1];w=typeof i.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);_=jb}if(c){const I={},E=[];for(let U=0;U<i.stops.length;U++){const F=i.stops[U],$=F[0].zoom;I[$]===void 0&&(I[$]={zoom:$,type:i.type,property:i.property,default:i.default,stops:[]},E.push($)),I[$].stops.push([F[0].value,F[1]])}const L=[];for(const U of E)L.push([I[U].zoom,h1(I[U],n)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:us.interpolationFactor.bind(void 0,k),zoomStops:L.map(U=>U[0]),evaluate:({zoom:U},F)=>Ob({stops:L,base:i.base},n,U).evaluate(U,F)}}if(d){const I=p==="exponential"?{name:"exponential",base:i.base!==void 0?i.base:1}:null;return{kind:"camera",interpolationType:I,interpolationFactor:us.interpolationFactor.bind(void 0,I),zoomStops:i.stops.map(E=>E[0]),evaluate:({zoom:E})=>_(i,n,E,b,w)}}return{kind:"source",evaluate(I,E){const L=E&&E.properties?E.properties[i.property]:void 0;return L===void 0?nd(i.default,n.default):_(i,n,L,b,w)}}}function nd(i,n,o){return i!==void 0?i:n!==void 0?n:o!==void 0?o:void 0}function lE(i,n,o,c,d){return nd(typeof o===d?c[o]:void 0,i.default,n.default)}function cE(i,n,o){if(Su(o)!=="number")return nd(i.default,n.default);const c=i.stops.length;if(c===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[c-1][0])return i.stops[c-1][1];const d=yc(i.stops.map(p=>p[0]),o);return i.stops[d][1]}function Ob(i,n,o){const c=i.base!==void 0?i.base:1;if(Su(o)!=="number")return nd(i.default,n.default);const d=i.stops.length;if(d===1||o<=i.stops[0][0])return i.stops[0][1];if(o>=i.stops[d-1][0])return i.stops[d-1][1];const p=yc(i.stops.map(E=>E[0]),o),_=function(E,L,k,U){const F=U-k,$=E-k;return F===0?0:L===1?$/F:(Math.pow(L,$)-1)/(Math.pow(L,F)-1)}(o,c,i.stops[p][0],i.stops[p+1][0]),b=i.stops[p][1],w=i.stops[p+1][1];let I=pp[n.type]||kb;if(i.colorSpace&&i.colorSpace!=="rgb"){const E=G0[i.colorSpace];I=(L,k)=>E.reverse(E.interpolate(E.forward(L),E.forward(k),_))}return typeof b.evaluate=="function"?{evaluate(...E){const L=b.evaluate.apply(void 0,E),k=w.evaluate.apply(void 0,E);if(L!==void 0&&k!==void 0)return I(L,k,_)}}:I(b,w,_)}function jb(i,n,o){return n.type==="color"?o=Cr.parse(o):n.type==="formatted"?o=po.fromString(o.toString()):n.type==="resolvedImage"?o=Dn.fromString(o.toString()):Su(o)===n.type||n.type==="enum"&&n.values[o]||(o=void 0),nd(o,i.default,n.default)}class kp{constructor(n,o,c,d){this.expression=n,this._warningHistory={},this._evaluator=new pb(c,d),this._defaultValue=o?function(p){return p.type==="color"&&(zp(p.default)||Array.isArray(p.default))?new Cr(0,0,0,0):p.type==="color"?Cr.parse(p.default)||null:p.default===void 0?null:p.default}(o):null,this._enumValues=o&&o.type==="enum"?o.values:null}evaluateWithoutErrorHandling(n,o,c,d,p,_,b,w){return this._evaluator.globals=n,this._evaluator.feature=o,this._evaluator.featureState=c,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null,this.expression.evaluate(this._evaluator)}evaluate(n,o,c,d,p,_,b,w){this._evaluator.globals=n,this._evaluator.feature=o||null,this._evaluator.featureState=c||null,this._evaluator.canonical=d||null,this._evaluator.availableImages=p||null,this._evaluator.formattedSection=_||null,this._evaluator.featureTileCoord=b||null,this._evaluator.featureDistanceData=w||null;try{const I=this.expression.evaluate(this._evaluator);if(I==null||typeof I=="number"&&I!=I)return this._defaultValue;if(this._enumValues&&!(I in this._enumValues))throw new Or(`Expected value to be one of ${Object.keys(this._enumValues).map(E=>JSON.stringify(E)).join(", ")}, but found ${JSON.stringify(I)} instead.`);return I}catch(I){return this._warningHistory[I.message]||(this._warningHistory[I.message]=!0,typeof console<"u"&&console.warn(I.message)),this._defaultValue}}}function id(i){return Array.isArray(i)&&i.length>0&&typeof i[0]=="string"&&i[0]in Uu}function Op(i,n,o,c){const d=new bb(Uu,[],n?function(_){const b={color:Is,string:wi,number:hn,enum:wi,boolean:Ii,formatted:wu,resolvedImage:Vh};return _.type==="array"?Yo(b[_.value]||pi,_.length):b[_.type]}(n):void 0,void 0,void 0,o,c),p=d.parse(i,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return p?l1(new kp(p,n,o,c)):vc(d.errors)}class d1{constructor(n,o,c){this.kind=n,this._styleExpression=o,this.isLightConstant=c,this.isStateDependent=n!=="constant"&&!Kh(o.expression),this.isConfigDependent=!Xh(o.expression)}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}}class rd{constructor(n,o,c,d,p){this.kind=n,this.zoomStops=c,this._styleExpression=o,this.isStateDependent=n!=="camera"&&!Kh(o.expression),this.isLightConstant=p,this.isConfigDependent=!Xh(o.expression),this.interpolationType=d}evaluateWithoutErrorHandling(n,o,c,d,p,_){return this._styleExpression.evaluateWithoutErrorHandling(n,o,c,d,p,_)}evaluate(n,o,c,d,p,_){return this._styleExpression.evaluate(n,o,c,d,p,_)}interpolationFactor(n,o,c){return this.interpolationType?us.interpolationFactor(this.interpolationType,n,o,c):0}}function jp(i,n,o,c){if((i=Op(i,n,o,c)).result==="error")return i;const d=i.value.expression,p=Nu(d);if(!p&&!Lp(n))return vc([new fa("","data expressions not supported")]);const _=mo(d,["zoom","pitch","distance-from-center"]);if(!_&&!zb(n))return vc([new fa("","zoom expressions not supported")]);const b=mo(d,["measure-light"]);if(!b&&!c1(n))return vc([new fa("","measure-light expression not supported")]);const w=n.expression&&n.expression.relaxZoomRestriction,I=sd(d);return I||_||w?I instanceof fa?vc([I]):I instanceof us&&!u1(n)?vc([new fa("",'"interpolate" expressions cannot be used with this property')]):l1(I?new rd(p?"camera":"composite",i.value,I.labels,I instanceof us?I.interpolation:void 0,b):new d1(p?"constant":"source",i.value,b)):vc([new fa("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression, or in the properties of atmosphere.')])}class od{constructor(n,o){this._parameters=n,this._specification=o,v0(this,h1(this._parameters,this._specification))}static deserialize(n){return new od(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}}function sd(i){let n=null;if(i instanceof W0)n=sd(i.result);else if(i instanceof Z0){for(const o of i.args)if(n=sd(o),n)break}else(i instanceof Jh||i instanceof us)&&i.input instanceof hi&&i.input.name==="zoom"&&(n=i);return n instanceof fa||i.eachChild(o=>{const c=sd(o);c instanceof fa?n=c:n&&c&&n!==c&&(n=new fa("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}var uE=Ws,Zs=3;function Ws(i,n,o){var c=this.cells=[];if(i instanceof ArrayBuffer){this.arrayBuffer=i;var d=new Int32Array(this.arrayBuffer);i=d[0],this.d=(n=d[1])+2*(o=d[2]);for(var p=0;p<this.d*this.d;p++){var _=d[Zs+p],b=d[Zs+p+1];c.push(_===b?null:d.subarray(_,b))}var w=d[Zs+c.length+1];this.keys=d.subarray(d[Zs+c.length],w),this.bboxes=d.subarray(w),this.insert=this._insertReadonly}else{this.d=n+2*o;for(var I=0;I<this.d*this.d;I++)c.push([]);this.keys=[],this.bboxes=[]}this.n=n,this.extent=i,this.padding=o,this.scale=n/i,this.uid=0;var E=o/n*i;this.min=-E,this.max=i+E}Ws.prototype.insert=function(i,n,o,c,d){this._forEachCell(n,o,c,d,this._insertCell,this.uid++),this.keys.push(i),this.bboxes.push(n),this.bboxes.push(o),this.bboxes.push(c),this.bboxes.push(d)},Ws.prototype._insertReadonly=function(){throw"Cannot insert into a GridIndex created from an ArrayBuffer."},Ws.prototype._insertCell=function(i,n,o,c,d,p){this.cells[d].push(p)},Ws.prototype.query=function(i,n,o,c,d){var p=this.min,_=this.max;if(i<=p&&n<=p&&_<=o&&_<=c&&!d)return Array.prototype.slice.call(this.keys);var b=[];return this._forEachCell(i,n,o,c,this._queryCell,b,{},d),b},Ws.prototype._queryCell=function(i,n,o,c,d,p,_,b){var w=this.cells[d];if(w!==null)for(var I=this.keys,E=this.bboxes,L=0;L<w.length;L++){var k=w[L];if(_[k]===void 0){var U=4*k;(b?b(E[U+0],E[U+1],E[U+2],E[U+3]):i<=E[U+2]&&n<=E[U+3]&&o>=E[U+0]&&c>=E[U+1])?(_[k]=!0,p.push(I[k])):_[k]=!1}}},Ws.prototype._forEachCell=function(i,n,o,c,d,p,_,b){for(var w=this._convertToCellCoord(i),I=this._convertToCellCoord(n),E=this._convertToCellCoord(o),L=this._convertToCellCoord(c),k=w;k<=E;k++)for(var U=I;U<=L;U++){var F=this.d*U+k;if((!b||b(this._convertFromCellCoord(k),this._convertFromCellCoord(U),this._convertFromCellCoord(k+1),this._convertFromCellCoord(U+1)))&&d.call(this,i,n,o,c,F,p,_,b))return}},Ws.prototype._convertFromCellCoord=function(i){return(i-this.padding)/this.scale},Ws.prototype._convertToCellCoord=function(i){return Math.max(0,Math.min(this.d-1,Math.floor(i*this.scale)+this.padding))},Ws.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var i=this.cells,n=Zs+this.cells.length+1+1,o=0,c=0;c<this.cells.length;c++)o+=this.cells[c].length;var d=new Int32Array(n+o+this.keys.length+this.bboxes.length);d[0]=this.extent,d[1]=this.n,d[2]=this.padding;for(var p=n,_=0;_<i.length;_++){var b=i[_];d[Zs+_]=p,d.set(b,p),p+=b.length}return d[Zs+i.length]=p,d.set(this.keys,p),d[Zs+i.length+1]=p+=this.keys.length,d.set(this.bboxes,p),p+=this.bboxes.length,d.buffer};var ka=Y(uE);const ad={};function fn(i,n,o={}){Object.defineProperty(i,"_classRegistryKey",{value:n,writeable:!1}),ad[n]={klass:i,omit:o.omit||[]}}fn(Object,"Object"),ka.serialize=function(i,n){const o=i.toArrayBuffer();return n&&n.add(o),{buffer:o}},ka.deserialize=function(i){return new ka(i.buffer)},Object.defineProperty(ka,"name",{value:"Grid"}),fn(ka,"Grid"),fn(Cr,"Color"),fn(Error,"Error"),fn(po,"Formatted"),fn(Iu,"FormattedSection"),fn(Zn,"AJAXError"),fn(Dn,"ResolvedImage"),fn(od,"StylePropertyFunction"),fn(kp,"StyleExpression",{omit:["_evaluator"]}),fn(rd,"ZoomDependentExpression"),fn(d1,"ZoomConstantExpression"),fn(hi,"CompoundExpression",{omit:["_evaluate"]});for(const i in Uu)ad[Uu[i]._classRegistryKey]||fn(Uu[i],`Expression${i}`);function Rb(i){return i&&typeof ArrayBuffer<"u"&&(i instanceof ArrayBuffer||i.constructor&&i.constructor.name==="ArrayBuffer")}function Rp(i){return self.ImageBitmap&&i instanceof ImageBitmap}function Sl(i,n){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp)return i;if(Rb(i)||Rp(i))return n&&n.add(i),i;if(ArrayBuffer.isView(i)){const o=i;return n&&n.add(o.buffer),o}if(i instanceof ImageData)return n&&n.add(i.data.buffer),i;if(Array.isArray(i)){const o=[];for(const c of i)o.push(Sl(c,n));return o}if(i instanceof Map){const o={$name:"Map"};for(const[c,d]of i.entries())o[c]=Sl(d);return o}if(typeof i=="object"){const o=i.constructor,c=o._classRegistryKey;if(!c)throw new Error(`can't serialize object of unregistered class ${c}`);const d=o.serialize?o.serialize(i,n):{};if(!o.serialize){for(const p in i)i.hasOwnProperty(p)&&(ad[c].omit.indexOf(p)>=0||(d[p]=Sl(i[p],n)));i instanceof Error&&(d.message=i.message)}if(d.$name)throw new Error("$name property is reserved for worker serialization logic.");return c!=="Object"&&(d.$name=c),d}throw new Error("can't serialize object of type "+typeof i)}function xc(i){if(i==null||typeof i=="boolean"||typeof i=="number"||typeof i=="string"||i instanceof Boolean||i instanceof Number||i instanceof String||i instanceof Date||i instanceof RegExp||Rb(i)||Rp(i)||ArrayBuffer.isView(i)||i instanceof ImageData)return i;if(Array.isArray(i))return i.map(xc);if(typeof i=="object"){const n=i.$name||"Object";if(n==="Map"){const d=new Map;for(const p of Object.keys(i))p!=="$name"&&d.set(p,xc(i[p]));return d}const{klass:o}=ad[n];if(!o)throw new Error(`can't deserialize unregistered class ${n}`);if(o.deserialize)return o.deserialize(i);const c=Object.create(o.prototype);for(const d of Object.keys(i))d!=="$name"&&(c[d]=xc(i[d]));return c}throw new Error("can't deserialize object of type "+typeof i)}const _n={"Latin-1 Supplement":i=>i>=128&&i<=255,Arabic:i=>i>=1536&&i<=1791,"Arabic Supplement":i=>i>=1872&&i<=1919,"Arabic Extended-A":i=>i>=2208&&i<=2303,"Hangul Jamo":i=>i>=4352&&i<=4607,"Unified Canadian Aboriginal Syllabics":i=>i>=5120&&i<=5759,Khmer:i=>i>=6016&&i<=6143,"Unified Canadian Aboriginal Syllabics Extended":i=>i>=6320&&i<=6399,"General Punctuation":i=>i>=8192&&i<=8303,"Letterlike Symbols":i=>i>=8448&&i<=8527,"Number Forms":i=>i>=8528&&i<=8591,"Miscellaneous Technical":i=>i>=8960&&i<=9215,"Control Pictures":i=>i>=9216&&i<=9279,"Optical Character Recognition":i=>i>=9280&&i<=9311,"Enclosed Alphanumerics":i=>i>=9312&&i<=9471,"Geometric Shapes":i=>i>=9632&&i<=9727,"Miscellaneous Symbols":i=>i>=9728&&i<=9983,"Miscellaneous Symbols and Arrows":i=>i>=11008&&i<=11263,"CJK Radicals Supplement":i=>i>=11904&&i<=12031,"Kangxi Radicals":i=>i>=12032&&i<=12255,"Ideographic Description Characters":i=>i>=12272&&i<=12287,"CJK Symbols and Punctuation":i=>i>=12288&&i<=12351,Hiragana:i=>i>=12352&&i<=12447,Katakana:i=>i>=12448&&i<=12543,Bopomofo:i=>i>=12544&&i<=12591,"Hangul Compatibility Jamo":i=>i>=12592&&i<=12687,Kanbun:i=>i>=12688&&i<=12703,"Bopomofo Extended":i=>i>=12704&&i<=12735,"CJK Strokes":i=>i>=12736&&i<=12783,"Katakana Phonetic Extensions":i=>i>=12784&&i<=12799,"Enclosed CJK Letters and Months":i=>i>=12800&&i<=13055,"CJK Compatibility":i=>i>=13056&&i<=13311,"CJK Unified Ideographs Extension A":i=>i>=13312&&i<=19903,"Yijing Hexagram Symbols":i=>i>=19904&&i<=19967,"CJK Unified Ideographs":i=>i>=19968&&i<=40959,"Yi Syllables":i=>i>=40960&&i<=42127,"Yi Radicals":i=>i>=42128&&i<=42191,"Hangul Jamo Extended-A":i=>i>=43360&&i<=43391,"Hangul Syllables":i=>i>=44032&&i<=55215,"Hangul Jamo Extended-B":i=>i>=55216&&i<=55295,"Private Use Area":i=>i>=57344&&i<=63743,"CJK Compatibility Ideographs":i=>i>=63744&&i<=64255,"Arabic Presentation Forms-A":i=>i>=64336&&i<=65023,"Vertical Forms":i=>i>=65040&&i<=65055,"CJK Compatibility Forms":i=>i>=65072&&i<=65103,"Small Form Variants":i=>i>=65104&&i<=65135,"Arabic Presentation Forms-B":i=>i>=65136&&i<=65279,"Halfwidth and Fullwidth Forms":i=>i>=65280&&i<=65519,"CJK Unified Ideographs Extension B":i=>i>=131072&&i<=173791};function El(i){for(const n of i)if(f1(n.charCodeAt(0)))return!0;return!1}function hE(i){for(const n of i)if(!dE(n.charCodeAt(0)))return!1;return!0}function dE(i){return!(_n.Arabic(i)||_n["Arabic Supplement"](i)||_n["Arabic Extended-A"](i)||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i))}function f1(i){return!(i!==746&&i!==747&&(i<4352||!(_n["Bopomofo Extended"](i)||_n.Bopomofo(i)||_n["CJK Compatibility Forms"](i)&&!(i>=65097&&i<=65103)||_n["CJK Compatibility Ideographs"](i)||_n["CJK Compatibility"](i)||_n["CJK Radicals Supplement"](i)||_n["CJK Strokes"](i)||!(!_n["CJK Symbols and Punctuation"](i)||i>=12296&&i<=12305||i>=12308&&i<=12319||i===12336)||_n["CJK Unified Ideographs Extension A"](i)||_n["CJK Unified Ideographs"](i)||_n["Enclosed CJK Letters and Months"](i)||_n["Hangul Compatibility Jamo"](i)||_n["Hangul Jamo Extended-A"](i)||_n["Hangul Jamo Extended-B"](i)||_n["Hangul Jamo"](i)||_n["Hangul Syllables"](i)||_n.Hiragana(i)||_n["Ideographic Description Characters"](i)||_n.Kanbun(i)||_n["Kangxi Radicals"](i)||_n["Katakana Phonetic Extensions"](i)||_n.Katakana(i)&&i!==12540||!(!_n["Halfwidth and Fullwidth Forms"](i)||i===65288||i===65289||i===65293||i>=65306&&i<=65310||i===65339||i===65341||i===65343||i>=65371&&i<=65503||i===65507||i>=65512&&i<=65519)||!(!_n["Small Form Variants"](i)||i>=65112&&i<=65118||i>=65123&&i<=65126)||_n["Unified Canadian Aboriginal Syllabics"](i)||_n["Unified Canadian Aboriginal Syllabics Extended"](i)||_n["Vertical Forms"](i)||_n["Yijing Hexagram Symbols"](i)||_n["Yi Syllables"](i)||_n["Yi Radicals"](i))))}function Pb(i){return!(f1(i)||function(n){return!!(_n["Latin-1 Supplement"](n)&&(n===167||n===169||n===174||n===177||n===188||n===189||n===190||n===215||n===247)||_n["General Punctuation"](n)&&(n===8214||n===8224||n===8225||n===8240||n===8241||n===8251||n===8252||n===8258||n===8263||n===8264||n===8265||n===8273)||_n["Letterlike Symbols"](n)||_n["Number Forms"](n)||_n["Miscellaneous Technical"](n)&&(n>=8960&&n<=8967||n>=8972&&n<=8991||n>=8996&&n<=9e3||n===9003||n>=9085&&n<=9114||n>=9150&&n<=9165||n===9167||n>=9169&&n<=9179||n>=9186&&n<=9215)||_n["Control Pictures"](n)&&n!==9251||_n["Optical Character Recognition"](n)||_n["Enclosed Alphanumerics"](n)||_n["Geometric Shapes"](n)||_n["Miscellaneous Symbols"](n)&&!(n>=9754&&n<=9759)||_n["Miscellaneous Symbols and Arrows"](n)&&(n>=11026&&n<=11055||n>=11088&&n<=11097||n>=11192&&n<=11243)||_n["CJK Symbols and Punctuation"](n)||_n.Katakana(n)||_n["Private Use Area"](n)||_n["CJK Compatibility Forms"](n)||_n["Small Form Variants"](n)||_n["Halfwidth and Fullwidth Forms"](n)||n===8734||n===8756||n===8757||n>=9984&&n<=10087||n>=10102&&n<=10131||n===65532||n===65533)}(i))}function Ub(i){return i>=1424&&i<=2303||_n["Arabic Presentation Forms-A"](i)||_n["Arabic Presentation Forms-B"](i)}function Bb(i,n){return!(!n&&Ub(i)||i>=2304&&i<=3583||i>=3840&&i<=4255||_n.Khmer(i))}function p1(i){for(const n of i)if(Ub(n.charCodeAt(0)))return!0;return!1}const m1="deferred",g1="loading",y1="loaded";let _1=null,Go="unavailable",Dl=null;const Fb=function(i){i&&typeof i=="string"&&i.indexOf("NetworkError")>-1&&(Go="error"),_1&&_1(i)};function v1(){x1.fire(new cc("pluginStateChange",{pluginStatus:Go,pluginURL:Dl}))}const x1=new xu,Al=function(){return Go},b1=function(){if(Go!==m1||!Dl)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Go=g1,v1(),Dl&&It({url:Dl},i=>{i?Fb(i):(Go=y1,v1())})},hs={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>Go===y1||hs.applyArabicShaping!=null,isLoading:()=>Go===g1,setState(i){Go=i.pluginStatus,Dl=i.pluginURL},isParsed:()=>hs.applyArabicShaping!=null&&hs.processBidirectionalText!=null&&hs.processStyledBidirectionalText!=null,getPluginURL:()=>Dl};class rr{constructor(n,o){this.zoom=n,o?(this.now=o.now,this.fadeDuration=o.fadeDuration,this.transition=o.transition,this.pitch=o.pitch,this.brightness=o.brightness):(this.now=0,this.fadeDuration=0,this.transition={},this.pitch=0,this.brightness=0)}isSupportedScript(n){return function(o,c){for(const d of o)if(!Bb(d.charCodeAt(0),c))return!1;return!0}(n,hs.isLoaded())}}class Pp{constructor(n,o,c,d){this.property=n,this.value=o,this.expression=function(p,_,b,w){if(zp(p))return new od(p,_);if(id(p)||Array.isArray(p)&&p.length>0){const I=jp(p,_,b,w);if(I.result==="error")throw new Error(I.value.map(E=>`${E.key}: ${E.message}`).join(", "));return I.value}{let I=p;return typeof p=="string"&&_.type==="color"&&(I=Cr.parse(p)),{kind:"constant",isConfigDependent:!1,evaluate:()=>I}}}(o===void 0?n.specification.default:o,n.specification,c,d)}isDataDriven(){return this.expression.kind==="source"||this.expression.kind==="composite"}possiblyEvaluate(n,o,c){return this.property.possiblyEvaluate(this,n,o,c)}}class M1{constructor(n,o,c){this.property=n,this.value=new Pp(n,void 0,o,c)}transitioned(n,o){return new w1(this.property,this.value,o,Te({},n.transition,this.transition),n.now)}untransitioned(){return new w1(this.property,this.value,null,{},0)}}class Oa{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultTransitionablePropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value.value)}setValue(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property,this._scope,this._options)),this._values[n].value=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].value.expression.isConfigDependent}setTransitionOrValue(n,o){o&&(this._options=o);const c=this._properties.properties;if(n)for(const d in n){const p=n[d];if(He(d,"-transition")){const _=d.slice(0,-11);c[_]&&this.setTransition(_,p)}else c[d]&&this.setValue(d,p)}}getTransition(n){return ut(this._values[n].transition)}setTransition(n,o){this._values.hasOwnProperty(n)||(this._values[n]=new M1(this._values[n].property)),this._values[n].transition=ut(o)||void 0}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c);const d=this.getTransition(o);d!==void 0&&(n[`${o}-transition`]=d)}return n}transitioned(n,o){const c=new bc(this._properties);for(const d of Object.keys(this._values))c._values[d]=this._values[d].transitioned(n,o._values[d]);return c}untransitioned(){const n=new bc(this._properties);for(const o of Object.keys(this._values))n._values[o]=this._values[o].untransitioned();return n}}class w1{constructor(n,o,c,d,p){const _=d.delay||0,b=d.duration||0;p=p||0,this.property=n,this.value=o,this.begin=p+_,this.end=this.begin+b,n.specification.transition&&(d.delay||d.duration)&&(this.prior=c)}possiblyEvaluate(n,o,c){const d=n.now||0,p=this.value.possiblyEvaluate(n,o,c),_=this.prior;if(_){if(d>this.end)return this.prior=null,p;if(this.value.isDataDriven())return this.prior=null,p;if(d<this.begin)return _.possiblyEvaluate(n,o,c);{const b=(d-this.begin)/(this.end-this.begin);return this.property.interpolate(_.possiblyEvaluate(n,o,c),p,Ee(b))}}return p}}class bc{constructor(n){this._properties=n,this._values=Object.create(n.defaultTransitioningPropertyValues)}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}hasTransition(){for(const n of Object.keys(this._values))if(this._values[n].prior)return!0;return!1}}class fE{constructor(n,o,c){this._properties=n,this._values=Object.create(n.defaultPropertyValues),this._scope=o,this._options=c,this.isConfigDependent=!1}getValue(n){return ut(this._values[n].value)}setValue(n,o){this._values[n]=new Pp(this._values[n].property,o===null?void 0:ut(o),this._scope,this._options),this.isConfigDependent=this.isConfigDependent||this._values[n].expression.isConfigDependent}serialize(){const n={};for(const o of Object.keys(this._values)){const c=this.getValue(o);c!==void 0&&(n[o]=c)}return n}possiblyEvaluate(n,o,c){const d=new ld(this._properties);for(const p of Object.keys(this._values))d._values[p]=this._values[p].possiblyEvaluate(n,o,c);return d}}class Bu{constructor(n,o,c){this.property=n,this.value=o,this.parameters=c}isConstant(){return this.value.kind==="constant"}constantOr(n){return this.value.kind==="constant"?this.value.value:n}evaluate(n,o,c,d){return this.property.evaluate(this.value,this.parameters,n,o,c,d)}}class ld{constructor(n){this._properties=n,this._values=Object.create(n.defaultPossiblyEvaluatedValues)}get(n){return this._values[n]}}class Wt{constructor(n){this.specification=n}possiblyEvaluate(n,o){return n.expression.evaluate(o)}interpolate(n,o,c){const d=pp[this.specification.type];return d?d(n,o,c):n}}class In{constructor(n,o){this.specification=n,this.overrides=o}possiblyEvaluate(n,o,c,d){return new Bu(this,n.expression.kind==="constant"||n.expression.kind==="camera"?{kind:"constant",value:n.expression.evaluate(o,null,{},c,d)}:n.expression,o)}interpolate(n,o,c){if(n.value.kind!=="constant"||o.value.kind!=="constant")return n;if(n.value.value===void 0||o.value.value===void 0)return new Bu(this,{kind:"constant",value:void 0},n.parameters);const d=pp[this.specification.type];return d?new Bu(this,{kind:"constant",value:d(n.value.value,o.value.value,c)},n.parameters):n}evaluate(n,o,c,d,p,_){return n.kind==="constant"?n.value:n.evaluate(o,c,d,p,_)}}class Mc{constructor(n){this.specification=n}possiblyEvaluate(n,o,c,d){return!!n.expression.evaluate(o,null,{},c,d)}interpolate(){return!1}}class or{constructor(n){this.properties=n,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[];const o=new rr(0,{});for(const c in n){const d=n[c];d.specification.overridable&&this.overridableProperties.push(c);const p=this.defaultPropertyValues[c]=new Pp(d,void 0),_=this.defaultTransitionablePropertyValues[c]=new M1(d);this.defaultTransitioningPropertyValues[c]=_.untransitioned(),this.defaultPossiblyEvaluatedValues[c]=p.possiblyEvaluate(o)}}}function cd(i){return i instanceof Number||i instanceof String||i instanceof Boolean?i.valueOf():i}function ud(i){if(Array.isArray(i))return i.map(ud);if(i instanceof Object&&!(i instanceof Number||i instanceof String||i instanceof Boolean)){const n={};for(const o in i)n[o]=ud(i[o]);return n}return cd(i)}fn(In,"DataDrivenProperty"),fn(Wt,"DataConstantProperty"),fn(Mc,"ColorRampProperty");var at=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"fragment":{"type":"boolean"},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360},"pitch":{"type":"number","default":0},"light":{"type":"light"},"lights":{"required":false,"type":"array","value":"light-3d"},"terrain":{"type":"terrain","optional":true},"fog":{"type":"fog"},"camera":{"type":"camera"},"imports":{"type":"array","value":"import"},"schema":{"type":"schema"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string","default":"mapbox://fonts/mapbox/{fontstack}/{range}.pbf"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"},"models":{"type":"models"}},"model":{"type":"string","required":true},"import":{"id":{"type":"string","required":true},"url":{"type":"string","required":true},"config":{"type":"config"},"data":{"type":"$root"}},"config":{"*":{"type":"*"}},"schema":{"*":{"type":"option"}},"option":{"default":{"type":"*","required":true},"type":{"type":"enum","values":{"string":1,"number":1,"boolean":1,"color":1}},"array":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"stepValue":{"type":"number"},"values":{"type":"array","value":"*"},"metadata":{"type":"*"}},"models":{"*":{"type":"model"}},"light-3d":{"id":{"type":"string","required":true},"properties":{"type":"properties"},"type":{"type":"enum","values":{"ambient":{},"directional":{},"flat":{}}}},"properties":["properties_light_directional","properties_light_ambient","properties_light_flat"],"properties_light_directional":{"direction":{"type":"array","default":[210,30],"minimum":[0,0],"maximum":[360,90],"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"cast-shadows":{"type":"boolean","default":false,"expression":{},"property-type":"data-constant"},"shadow-intensity":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_ambient":{"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"properties_light_flat":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_raster_array","source_geojson","source_video","source_image","source_model"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"attribution":{"type":"string"},"promoteId":{"type":"promoteId"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster":{"type":{"required":true,"type":"enum","values":{"raster":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"scheme":{"type":"enum","values":{"xyz":1,"tms":1},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":1,"mapbox":1},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_array":{"type":{"required":true,"type":"enum","values":{"raster-array":1}},"url":{"type":"string"},"tiles":{"type":"array","value":"string"},"bounds":{"type":"array","value":"number","length":4,"default":[-180,-85.051129,180,85.051129]},"minzoom":{"type":"number","default":0},"maxzoom":{"type":"number","default":22},"tileSize":{"type":"number","default":512},"attribution":{"type":"string"},"rasterLayers":{"type":"*"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":1}},"data":{"type":"*"},"maxzoom":{"type":"number","default":18},"attribution":{"type":"string"},"buffer":{"type":"number","default":128,"maximum":512,"minimum":0},"filter":{"type":"*"},"tolerance":{"type":"number","default":0.375},"cluster":{"type":"boolean","default":false},"clusterRadius":{"type":"number","default":50,"minimum":0},"clusterMaxZoom":{"type":"number"},"clusterMinPoints":{"type":"number"},"clusterProperties":{"type":"*"},"lineMetrics":{"type":"boolean","default":false},"generateId":{"type":"boolean","default":false},"promoteId":{"type":"promoteId"}},"source_video":{"type":{"required":true,"type":"enum","values":{"video":1}},"urls":{"required":true,"type":"array","value":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_image":{"type":{"required":true,"type":"enum","values":{"image":1}},"url":{"required":false,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"source_model":{"type":{"required":true,"type":"enum","values":{"model":1,"batched-model":1}},"maxzoom":{"type":"number","default":18},"minzoom":{"type":"number","default":0},"tiles":{"type":"array","value":"string"}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"raster-particle":{},"hillshade":{},"model":{},"background":{},"sky":{},"slot":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"type":"string"},"slot":{"type":"string"},"minzoom":{"type":"number","minimum":0,"maximum":24},"maxzoom":{"type":"number","minimum":0,"maximum":24},"filter":{"type":"filter"},"layout":{"type":"layout"},"paint":{"type":"paint"}},"layout":["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_raster-particle","layout_hillshade","layout_background","layout_sky","layout_model"],"layout_background":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_model":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"model-id":{"type":"string","default":"","property-type":"data-driven","expression":{"parameters":["zoom","feature"]}}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":1,"round":1,"square":1},"default":"butt","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":1,"round":1,"miter":1},"default":"miter","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":1,"line":1,"line-center":1},"default":"point","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":1,"viewport-y":1,"source":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"symbol-z-elevate":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":1,"width":1,"height":1,"both":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":1,"viewport":1,"auto":1},"default":"auto","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":1,"left":1,"center":1,"right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","default":0,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":1,"left":1,"right":1,"top":1,"bottom":1,"top-left":1,"top-right":1,"bottom-left":1,"bottom-right":1},"default":"center","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":1,"vertical":1},"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":1,"uppercase":1,"lowercase":1},"default":"none","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","length":2,"default":[0,0],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_raster-particle":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":1,"none":1},"default":"visible","expression":{},"property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"property-type":"data-driven","expression":{"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":1,"!=":1,">":1,">=":1,"<":1,"<=":1,"in":1,"!in":1,"all":1,"any":1,"none":1,"has":1,"!has":1}},"geometry_type":{"type":"enum","values":{"Point":1,"LineString":1,"Polygon":1}},"function":{"expression":{"type":"expression"},"stops":{"type":"array","value":"function_stop"},"base":{"type":"number","default":1,"minimum":0},"property":{"type":"string","default":"$zoom"},"type":{"type":"enum","values":{"identity":1,"exponential":1,"interval":1,"categorical":1},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":1,"lab":1,"hcl":1},"default":"rgb"},"default":{"type":"*","required":false}},"function_stop":{"type":"array","minimum":0,"maximum":24,"value":["number","color"],"length":2},"expression":{"type":"array","value":"*","minimum":1},"fog":{"range":{"type":"array","default":[0.5,10],"minimum":-20,"maximum":20,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"horizon-blend":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,0.2,7,0.1],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"star-intensity":{"type":"number","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],5,0.35,6,0],"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true},"transition":true},"vertical-range":{"type":"array","default":[0,0],"minimum":0,"length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"],"relaxZoomRestriction":true}}},"camera":{"camera-projection":{"type":"enum","values":{"perspective":1,"orthographic":1},"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"default":"perspective","property-type":"data-constant"}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":1,"viewport":1},"property-type":"data-constant","expression":{"parameters":["zoom"]}},"position":{"type":"array","default":[1.15,210,30],"length":3,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"intensity":{"type":"number","property-type":"data-constant","default":0.5,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"projection":{"name":{"type":"enum","values":{"albers":1,"equalEarth":1,"equirectangular":1,"lambertConformalConic":1,"mercator":1,"naturalEarth":1,"winkelTripel":1,"globe":1},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90]}},"terrain":{"source":{"type":"string","required":true},"exaggeration":{"type":"number","property-type":"data-constant","default":1,"minimum":0,"maximum":1000,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky","paint_model"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-ambient-occlusion-intensity":{"property-type":"data-constant","type":"number","private":true,"default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-radius":{"property-type":"data-constant","type":"number","private":true,"default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-wall-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-radius":{"property-type":"data-constant","type":"number","default":3,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"fill-extrusion-ambient-occlusion-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-flood-light-color":{"property-type":"data-constant","type":"color","default":"#ffffff","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-intensity":{"property-type":"data-constant","type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]}},"fill-extrusion-flood-light-wall-radius":{"property-type":"data-driven","type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-radius":{"property-type":"data-driven","type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["feature","feature-state"]}},"fill-extrusion-flood-light-ground-attenuation":{"property-type":"data-constant","type":"number","default":0.69,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-vertical-scale":{"property-type":"data-constant","type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"fill-extrusion-rounded-roof":{"property-type":"data-constant","type":"boolean","default":true,"expression":{"parameters":["zoom"]}},"fill-extrusion-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"},"fill-extrusion-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","expression":{"interpolated":true,"parameters":["line-progress"]},"property-type":"color-ramp"},"line-trim-offset":{"type":"array","value":"number","length":2,"default":[0,0],"minimum":[0,0],"maximum":[1,1],"property-type":"constant"},"line-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"line-border-width":{"type":"number","private":true,"default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-border-color":{"type":"color","private":true,"default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-stroke-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"circle-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"heatmap-intensity":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"heatmap-color":{"type":"color","default":["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",0.1,"royalblue",0.3,"cyan",0.5,"lime",0.7,"yellow",1,"red"],"expression":{"interpolated":true,"parameters":["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_symbol":{"icon-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"text-emissive-strength":{"type":"number","default":1,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-image-cross-fade":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"transition":true},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state","measure-light"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"map","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"icon-color-saturation":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{},"property-type":"data-constant"}},"paint_raster":{"raster-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-value"]},"property-type":"color-ramp"},"raster-color-mix":{"type":"array","default":[0.2126,0.7152,0.0722,0],"length":4,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-color-range":{"type":"array","length":2,"value":"number","property-type":"data-constant","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]}},"raster-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{"type":"number","default":0,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-saturation":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-contrast":{"type":"number","default":0,"minimum":-1,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-resampling":{"type":"enum","values":{"linear":1,"nearest":1},"default":"linear","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"raster-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-elevation":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_raster-particle":{"raster-particle-array-band":{"type":"string","required":false,"property-type":"data-constant"},"raster-particle-count":{"type":"number","default":512,"minimum":1,"property-type":"data-constant"},"raster-particle-color":{"type":"color","expression":{"interpolated":true,"parameters":["raster-particle-speed"]},"property-type":"color-ramp"},"raster-particle-max-speed":{"type":"number","default":1,"minimum":1,"property-type":"data-constant"},"raster-particle-speed-factor":{"type":"number","default":0.2,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-fade-opacity-factor":{"type":"number","default":0.98,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"raster-particle-reset-rate-factor":{"type":"number","default":0.8,"minimum":0,"maximum":1,"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":1,"viewport":1},"default":"viewport","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{"type":"number","default":0.5,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"},"hillshade-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"background-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-emissive-strength":{"type":"number","default":0,"minimum":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","measure-light"]},"property-type":"data-constant"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":1,"atmosphere":1},"default":"atmosphere","expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","default":10,"minimum":0,"maximum":100,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","value":"number","default":[0,0],"length":2,"minimum":[0,0],"maximum":[360,180],"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","default":90,"minimum":0,"maximum":180,"expression":{"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","property-type":"data-constant"},"sky-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_model":{"model-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"model-rotation":{"type":"array","value":"number","length":3,"default":[0,0,0],"period":360,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-scale":{"type":"array","value":"number","length":3,"default":[1,1,1],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-translation":{"type":"array","value":"number","length":3,"default":[0,0,0],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","zoom"]},"transition":true},"model-color":{"type":"color","default":"#ffffff","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light","zoom"]},"transition":true},"model-color-mix-intensity":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-type":{"type":"enum","values":{"common-3d":1,"location-indicator":1},"default":"common-3d","property-type":"data-constant"},"model-cast-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-receive-shadows":{"type":"boolean","default":true,"expression":{},"property-type":"data-constant"},"model-ambient-occlusion-intensity":{"type":"number","default":1,"minimum":0,"maximum":1,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant","transition":true},"model-emissive-strength":{"type":"number","property-type":"data-driven","default":0,"minimum":0,"maximum":5,"expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-roughness":{"type":"number","default":1,"minimum":0,"maximum":1,"property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state"]},"transition":true},"model-height-based-emissive-strength-multiplier":{"type":"array","default":[1,1,1,1,0],"length":5,"value":"number","property-type":"data-driven","expression":{"interpolated":true,"parameters":["feature","feature-state","measure-light"]},"transition":true},"model-cutoff-fade-range":{"type":"number","default":0,"minimum":0,"maximum":1,"expression":{},"property-type":"data-constant"}},"transition":{"duration":{"type":"number","default":300,"minimum":0},"delay":{"type":"number","default":0,"minimum":0}},"property-type":{"data-driven":{"type":"property-type"},"color-ramp":{"type":"property-type"},"data-constant":{"type":"property-type"},"constant":{"type":"property-type"}},"promoteId":{"*":{"type":"string"}}}');function I1(i){if(i===!0||i===!1)return!0;if(!Array.isArray(i)||i.length===0)return!1;switch(i[0]){case"has":return i.length>=2&&i[1]!=="$id"&&i[1]!=="$type";case"in":return i.length>=3&&(typeof i[1]!="string"||Array.isArray(i[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return i.length!==3||Array.isArray(i[1])||Array.isArray(i[2]);case"any":case"all":for(const n of i.slice(1))if(!I1(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function ds(i,n="fill"){if(i==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};I1(i)||(i=hd(i));const o=i;let c=!0;try{c=function(I){if(!Fu(I))return I;let E=ud(I);return T1(E),E=Vb(E),E}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
83
83
  This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
84
84
  and paste the contents of this message in the report.
85
85
  Thank you!
@@ -2199,7 +2199,7 @@ Make sure your charset is UTF-8`);r=(r>>>8&255)*192+(r&255),e.put(r,13)}};var fc
2199
2199
  The chosen QR Code version cannot contain this amount of data.
2200
2200
  Minimum version required to store current data is: `+f+`.
2201
2201
  `);const m=Ece(t,r,u),a=Hx.getSymbolSize(t),v=new gce(a);return Mce(v,t),wce(v),Ice(v,t),_T(v,r,0),t>=7&&Tce(v,t),Sce(v,m),isNaN(s)&&(s=mT.getBestMask(v,_T.bind(null,v,r))),mT.applyMask(s,v),_T(v,r,s),{modules:v,version:t,errorCorrectionLevel:r,maskPattern:s,segments:u}}b7.create=function(t,r){if(typeof t>"u"||t==="")throw new Error("No input text");let s=pT.M,u,f;return typeof r<"u"&&(s=pT.from(r.errorCorrectionLevel,pT.M),u=Yx.from(r.version),f=mT.from(r.maskPattern),r.toSJISFunc&&Hx.setToSJISFunction(r.toSJISFunc)),Ace(t,u,s,f)};var j7={},vT={};(function(e){function t(r){if(typeof r=="number"&&(r=r.toString()),typeof r!="string")throw new Error("Color should be defined as hex string");let s=r.slice().replace("#","").split("");if(s.length<3||s.length===5||s.length>8)throw new Error("Invalid hex color: "+r);(s.length===3||s.length===4)&&(s=Array.prototype.concat.apply([],s.map(function(f){return[f,f]}))),s.length===6&&s.push("F","F");const u=parseInt(s.join(""),16);return{r:u>>24&255,g:u>>16&255,b:u>>8&255,a:u&255,hex:"#"+s.slice(0,6).join("")}}e.getOptions=function(s){s||(s={}),s.color||(s.color={});const u=typeof s.margin>"u"||s.margin===null||s.margin<0?4:s.margin,f=s.width&&s.width>=21?s.width:void 0,m=s.scale||4;return{width:f,scale:f?4:m,margin:u,color:{dark:t(s.color.dark||"#000000ff"),light:t(s.color.light||"#ffffffff")},type:s.type,rendererOpts:s.rendererOpts||{}}},e.getScale=function(s,u){return u.width&&u.width>=s+u.margin*2?u.width/(s+u.margin*2):u.scale},e.getImageWidth=function(s,u){const f=e.getScale(s,u);return Math.floor((s+u.margin*2)*f)},e.qrToImageData=function(s,u,f){const m=u.modules.size,a=u.modules.data,v=e.getScale(m,f),S=Math.floor((m+f.margin*2)*v),D=f.margin*v,N=[f.color.light,f.color.dark];for(let C=0;C<S;C++)for(let O=0;O<S;O++){let R=(C*S+O)*4,V=f.color.light;if(C>=D&&O>=D&&C<S-D&&O<S-D){const q=Math.floor((C-D)/v),H=Math.floor((O-D)/v);V=N[a[q*m+H]?1:0]}s[R++]=V.r,s[R++]=V.g,s[R++]=V.b,s[R]=V.a}}})(vT),function(e){const t=vT;function r(u,f,m){u.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=m,f.width=m,f.style.height=m+"px",f.style.width=m+"px"}function s(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(f,m,a){let v=a,S=m;typeof v>"u"&&(!m||!m.getContext)&&(v=m,m=void 0),m||(S=s()),v=t.getOptions(v);const D=t.getImageWidth(f.modules.size,v),N=S.getContext("2d"),C=N.createImageData(D,D);return t.qrToImageData(C.data,f,v),r(N,S,D),N.putImageData(C,0,0),S},e.renderToDataURL=function(f,m,a){let v=a;typeof v>"u"&&(!m||!m.getContext)&&(v=m,m=void 0),v||(v={});const S=e.render(f,m,v),D=v.type||"image/png",N=v.rendererOpts||{};return S.toDataURL(D,N.quality)}}(j7);var R7={};const Cce=vT;function P7(e,t){const r=e.a/255,s=t+'="'+e.hex+'"';return r<1?s+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':s}function xT(e,t,r){let s=e+t;return typeof r<"u"&&(s+=" "+r),s}function Nce(e,t,r){let s="",u=0,f=!1,m=0;for(let a=0;a<e.length;a++){const v=Math.floor(a%t),S=Math.floor(a/t);!v&&!f&&(f=!0),e[a]?(m++,a>0&&v>0&&e[a-1]||(s+=f?xT("M",v+r,.5+S+r):xT("m",u,0),u=0,f=!1),v+1<t&&e[a+1]||(s+=xT("h",m),m=0)):u++}return s}R7.render=function(t,r,s){const u=Cce.getOptions(r),f=t.modules.size,m=t.modules.data,a=f+u.margin*2,v=u.color.light.a?"<path "+P7(u.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",S="<path "+P7(u.color.dark,"stroke")+' d="'+Nce(m,f,u.margin)+'"/>',D='viewBox="0 0 '+a+" "+a+'"',C='<svg xmlns="http://www.w3.org/2000/svg" '+(u.width?'width="'+u.width+'" height="'+u.width+'" ':"")+D+' shape-rendering="crispEdges">'+v+S+`</svg>
2202
- `;return typeof s=="function"&&s(null,C),C};const Lce=Hle,bT=b7,U7=j7,zce=R7;function MT(e,t,r,s,u){const f=[].slice.call(arguments,1),m=f.length,a=typeof f[m-1]=="function";if(!a&&!Lce())throw new Error("Callback required as last argument");if(a){if(m<2)throw new Error("Too few arguments provided");m===2?(u=r,r=t,t=s=void 0):m===3&&(t.getContext&&typeof u>"u"?(u=s,s=void 0):(u=s,s=r,r=t,t=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(r=t,t=s=void 0):m===2&&!t.getContext&&(s=r,r=t,t=void 0),new Promise(function(v,S){try{const D=bT.create(r,s);v(e(D,t,s))}catch(D){S(D)}})}try{const v=bT.create(r,s);u(null,e(v,t,s))}catch(v){u(v)}}o0.create=bT.create,o0.toCanvas=MT.bind(null,U7.render),o0.toDataURL=MT.bind(null,U7.renderToDataURL),o0.toString=MT.bind(null,function(e,t,r){return zce.render(e,r)});function kce(){const{t:e}=ua(),[,t]=zn(Rx),r=Oe.useRef(),s=on(Aa),u=on(jI),f=on(YI),m=on(Tx),a=on(Kg),v=on(ac),S=on(gu);return Oe.useEffect(()=>{if(v&&S){let D=window.location.origin+window.location.pathname.replace(/\/$/,"");const N=new URLSearchParams(window.location.search),C=new URLSearchParams;[["gmApiKey",m],["mapboxAccessToken",a],["apiKey",u],["primaryColor",s],["logo",f]].forEach(([q,H])=>{if(N.has(q)){const Y=N.get(q);C.append(q,Y)}else H&&(H===s?C.append(q,s.replace("#","")):C.append(q,H))});const O=C.toString();let R=`${D}/?${O}&directionsFrom=${v.id}&directionsTo=${S.id}`;const V={errorCorrectionLevel:"L",margin:0,width:"225"};o0.toDataURL(R,V).then(q=>{r.current.src=q})}},[v,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"background"}),Je.jsxs("div",{className:"qr-code",children:[Je.jsx("img",{alt:"",className:"qr-code__image",ref:r}),Je.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Je.jsx("button",{className:"qr-code__button",style:{background:s},onClick:()=>t(!1),children:e("Done")})]})]})}const Oce=ui({key:"supportsUrlParameters",default:!1}),xve="";function jce(){const{t:e}=ua(),t=on(Aa),r=on(y7),s=i0(),u=Oe.useRef(),f=Oe.useRef(),m=Oe.useRef(),[a,v]=zn(Px),[S,D]=Oe.useState(!1),N=Oe.useRef();let C=700;return Oe.useEffect(()=>{a&&s&&D(N.current.clientHeight>C)},[a,s]),Oe.useEffect(()=>{if(a&&s&&S){const O=document.querySelector(".legend__sections");m.current.scrollContainerElementRef=O}},[a,r,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"legend__background"}),Je.jsxs("div",{className:"legend",ref:u,children:[r.length>0&&Je.jsx("div",{className:`legend__sections ${S?"legend__sections--scrollable":""}`,ref:N,style:{maxHeight:S?`${C}px`:"auto",overflowY:S?"scroll":"auto"},children:r.map((O,R)=>Je.jsxs("div",{className:"legend__section",ref:f,children:[Je.jsx("div",{className:"legend__heading",children:O.heading}),Je.jsx("div",{className:"legend__content",children:O.content})]},R))}),Je.jsx("button",{className:"legend__button",style:{background:t},onClick:()=>v(!1),children:e("Close")}),s&&a&&S&&Je.jsx("div",{className:"scroll-buttons",children:Je.jsx("mi-scroll-buttons",{ref:m})})]})]})}Rse();function Rce({apiKey:e,gmApiKey:t,mapboxAccessToken:r,venue:s,locationId:u,primaryColor:f,logo:m,appUserRoles:a,directionsFrom:v,directionsTo:S,externalIDs:D,tileStyle:N,startZoomLevel:C,bearing:O,pitch:R,gmMapId:V,useMapProviderModule:q,kioskOriginLocationId:H,language:Y,supportsUrlParameters:W,useKeyboard:ee,timeout:fe,miTransitionLevel:pe,category:he,searchAllVenues:oe}){const[,Ve]=zn(jI),[,De]=zn(Tx),[,Ae]=zn(Kg),[Ge,it]=zn($I),[Ee,Ze]=zn(FI),[,ze]=zn(BO),[Le,Ye]=zn(gu),[qe,Ie]=zn(Xg),[,Te]=zn(Nx),[,le]=zn(Aa),[,X]=zn(YI),[,ie]=zn(TO),Me=on(bs),[xe,$e]=zn(t0),[,He]=zn(ac),[,Ue]=zn(PO),[,Xe]=zn(VO),ut=$O(),[,_t]=zn(Oce),[,et]=zn(m7),[,bt]=zn(CO),[,Ot]=zn(lT),[,Rt]=zn(nT),[,dn]=zn(g7),[Bn,Tt]=Oe.useState(!0),[kn,An]=Oe.useState(!0),Cn=x7(v),$n=x7(S),[ni,st]=Oe.useState(!1),[,se]=zn(Ax),[ce,Ne]=zn(Dx),[ht,vt]=Oe.useState(),[pt,Ct]=Oe.useState(),[,mt]=zn(RI),[,an]=zn(NO),[,Fe]=zn(UO),[,Pe]=zn(Wg),[,St]=zn(qg),Xt=oc(),Dt=SO("(max-width: 991px)"),kt=Vle(),Ft=QI(),Vt=on(Oh),[tn,Sn,Xn,ai,Ei,Wi]=Fle(),qi=Oe.useRef(),[Zn,Ki]=Oe.useState(!1),Mt=on(Rx),It=on(Px),[Bt,qt]=Oe.useState(0);function Ht(){return new Promise(Gt=>{if(window.mapsindoors!==void 0)return Gt();const wn=document.createElement("script");wn.setAttribute("type","text/javascript"),wn.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.32.0/mapsindoors-4.32.0.js.gz"),wn.setAttribute("integrity","sha384-pobsiCLAduarZklerr0Y1Yj0gkSVov1spL2XwAMLQ1lm3t6USIXIBAAMeJqiWXSc"),wn.setAttribute("crossorigin","anonymous"),document.body.appendChild(wn),wn.onload=()=>{Gt()}})}Oe.useEffect(()=>{ut&&ln()},[ut]),Oe.useEffect(()=>{Ht().then(()=>{Ki(!0)})},[]),Oe.useEffect(()=>{if(Zn){const Gt=Y||navigator.language;window.mapsindoors.MapsIndoors.setLanguage(Gt),window.mapsindoors.services.LocationsService.once("update_completed",()=>{qe.length>0&&Yt(s),Ee.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(wn=>{wn=wn.map(cn=>(cn.image=pt.venueImages[cn.name.toLowerCase()],cn)),Ze(wn)}),Le&&window.mapsindoors.services.LocationsService.getLocation(Le.id).then(wn=>Ye(wn))}),xe?Oo.changeLanguage(Gt):Mae(Gt),$e(Gt)}},[Y,Zn]),Oe.useEffect(()=>{Zn&&(Ve(e),it(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then(Gt=>(Ct(Gt),Gt)),window.mapsindoors.services.SolutionsService.getSolution().then(Gt=>(mt(Gt),Gt)),new Promise(Gt=>setTimeout(Gt,3e3))]).then(([Gt,wn])=>{Gt=Gt.map(cn=>(cn.image=wn.venueImages[cn.name.toLowerCase()],cn)),Ze(Gt)}),it(!1))},[e,Zn]),Oe.useEffect(()=>{var Gt,wn;Zn&&pt&&(Ae(r||((Gt=pt.appSettings)==null?void 0:Gt.mapboxAccessToken)),De(t||((wn=pt.appSettings)==null?void 0:wn.gmKey)))},[t,r,Zn,pt]),Oe.useEffect(()=>{Zn&&window.mapsindoors.services.SolutionsService.getUserRoles().then(Gt=>{const wn=Gt.filter(cn=>a==null?void 0:a.includes(cn.name));window.mapsindoors.MapsIndoors.setUserRoles(wn)})},[a,Zn]),Oe.useEffect(()=>{Zn&&(D?window.mapsindoors.services.LocationsService.getLocationsByExternalId(D).then(Gt=>{se(Gt)}):se([]))},[D,Zn]),Oe.useEffect(()=>{Zn&&(Te(u),u&&window.mapsindoors.services.LocationsService.getLocation(u).then(Gt=>{Gt&&(Ft(Gt.properties.venueId),Ye(Gt))}))},[u,Zn,Bt]),Oe.useEffect(()=>{Zn&&ie(V)},[V,Zn]),Oe.useEffect(()=>{Xn===Ei.LOCATION_DETAILS&&ai&&!Le&&Ye(ai),qi.current=Xn===Ei.DIRECTIONS,qi.current?(vt(ce),Ne([])):Ne(ht)},[Xn]),Oe.useEffect(()=>{ze(s),Ft(s)},[s]),Oe.useEffect(()=>{an(N)},[N]),Oe.useEffect(()=>{le(f)},[f]),Oe.useEffect(()=>{Fe(C)},[C]),Oe.useEffect(()=>{St(R)},[R]),Oe.useEffect(()=>{Pe(O)},[O]),Oe.useEffect(()=>{X(m)},[m]),Oe.useEffect(()=>{bt(pe)},[pe]),Oe.useEffect(()=>{Le&&Le.id!==H?Me!=null&&Me.selectLocation&&Me.selectLocation(Le):Me!=null&&Me.deselectLocation&&Me.deselectLocation()},[Le]),Oe.useEffect(()=>{Zn&&(Ue(H),H?window.mapsindoors.services.LocationsService.getLocation(H).then(Gt=>{Ft(Gt.properties.venueId),He(Gt)}):He(),H&&Xt?(Tt(!1),An(!1)):(Tt(!0),An(!0)))},[H,Zn]),Oe.useEffect(()=>{Xe(fe)},[fe]),Oe.useEffect(()=>{_t(W)},[W]),Oe.useEffect(()=>{Zn&&ee&&H&&et(ee)},[ee,H,Zn]),Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&Ot(he)},[he,qe,Zn]),Oe.useEffect(()=>{Zn&&oe&&Rt(oe)},[oe,Zn]),Oe.useEffect(()=>{Zn&&Vt&&Yt(Vt)},[Vt,Zn]);function en(Gt){Ge===!1&&it(!0),Yt(Gt.name)}function nn(Gt){qi.current!==!0&&Gt.id!==H&&Ye(Gt)}function Yt(Gt){window.mapsindoors.services.LocationsService.getLocations({}).then(wn=>{const cn=wn.filter(Di=>Di.properties.venueId===Gt);Jt(cn)})}function ln(){kt(),Wi(),qt(Gt=>Gt+1)}function Jt(Gt){let wn=new Map;for(const cn of Gt){const Di=Object.keys(cn.properties.categories);for(const ji of Di){const Ci=pt==null?void 0:pt.menuInfo.mainmenu.find(mr=>mr.categoryKey===ji);if(wn.has(ji)){let mr=wn.get(ji).count;wn.set(ji,{count:++mr,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}else wn.set(ji,{count:1,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}}wn=Array.from(wn).sort((cn,Di)=>Di[1].count-cn[1].count),Ie(wn)}return Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&(Ot(he),dn(he))},[he,qe,Zn]),Je.jsxs("div",{className:`mapsindoors-map ${qi.current?"mapsindoors-map--hide-elements":"mapsindoors-map--show-elements"} ${kn?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}`,"data-sentry-component":"MapTemplate","data-sentry-source-file":"MapTemplate.jsx",children:[Je.jsx(Qle,{"data-sentry-element":"Notification","data-sentry-source-file":"MapTemplate.jsx"}),!Ge&&Je.jsx(Gae,{}),Ee.length>1&&Bn&&Je.jsx(nle,{onOpen:()=>tn(Ei.VENUE_SELECTOR),onClose:()=>Sn(),active:Xn===Ei.VENUE_SELECTOR}),Mt&&Je.jsx(kce,{}),It&&Je.jsx(jce,{}),ni&&Je.jsxs(Oe.Fragment,{children:[Xt&&Je.jsx($le,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()}),Dt&&Je.jsx(Ule,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()})]},Bt),Je.jsx(Hae,{useMapProviderModule:q,onVenueChangedOnMap:Gt=>en(Gt),onMapPositionKnown:()=>st(!0),onLocationClick:Gt=>nn(Gt),"data-sentry-element":"MIMap","data-sentry-source-file":"MapTemplate.jsx"})]})}function B7(e){const[t,r]=Oe.useState();return Oe.useEffect(()=>{var Ee,Ze;const s=window.location.search,u=new URLSearchParams(s),f={apiKey:"mapspeople3d",venue:"AUSTINOFFICE",logo:"https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg",primaryColor:"#005655",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1},m=u.get("apiKey"),a=u.get("venue"),v=u.get("locationId"),S=u.get("logo"),D=u.get("directionsFrom"),N=u.get("directionsTo"),C=u.get("tileStyle"),O=u.get("startZoomLevel"),R=u.get("pitch"),V=u.get("bearing"),q=u.get("gmApiKey"),H=u.get("mapboxAccessToken"),Y=u.get("primaryColor"),W=(Ee=u.get("appUserRoles"))==null?void 0:Ee.split(","),ee=(Ze=u.get("externalIDs"))==null?void 0:Ze.split(","),fe=u.get("gmMapId"),pe=wT(u.get("useMapProviderModule")),he=u.get("kioskOriginLocationId"),oe=u.get("timeout"),Ve=u.get("language"),De=wT(u.get("useKeyboard")),Ae=u.get("miTransitionLevel"),Ge=u.get("category"),it=wT(u.get("searchAllVenues"));r({apiKey:e.supportsUrlParameters&&m?m:e.apiKey||f.apiKey,venue:e.supportsUrlParameters&&a?a:e.venue||f.venue,locationId:e.supportsUrlParameters&&v?v:e.locationId,logo:e.supportsUrlParameters&&S?S:e.logo||f.logo,directionsFrom:e.supportsUrlParameters&&D?D:e.directionsFrom,directionsTo:e.supportsUrlParameters&&N?N:e.directionsTo,tileStyle:e.supportsUrlParameters&&C?C:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&O?O:e.startZoomLevel,pitch:e.supportsUrlParameters&&R?R:e.pitch,bearing:e.supportsUrlParameters&&V?V:e.bearing,gmApiKey:e.supportsUrlParameters&&q?q:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&H?H:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&Y?"#"+Y:e.primaryColor||f.primaryColor,appUserRoles:e.supportsUrlParameters&&W?W:e.appUserRoles,externalIDs:e.supportsUrlParameters&&ee?ee:e.externalIDs,gmMapId:e.supportsUrlParameters&&fe?fe:e.gmMapId,useMapProviderModule:e.supportsUrlParameters&&pe?pe:e.useMapProviderModule||f.useMapProviderModule,kioskOriginLocationId:e.supportsUrlParameters&&he?he:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&oe?oe:e.timeout,language:e.supportsUrlParameters&&Ve?Ve:e.language,supportsUrlParameters:e.supportsUrlParameters,useKeyboard:e.supportsUrlParameters&&De?De:e.useKeyboard||f.useKeyboard,miTransitionLevel:e.supportsUrlParameters&&Ae?Ae:e.miTransitionLevel,category:e.supportsUrlParameters&&Ge?Ge:e.category,searchAllVenues:e.supportsUrlParameters&&it?it:e.searchAllVenues||f.searchAllVenues})},[e]),Je.jsx(nse,{"data-sentry-element":"RecoilRoot","data-sentry-component":"MapsIndoorsMap","data-sentry-source-file":"MapsIndoorsMap.jsx",children:t&&Je.jsx(Rce,{...t})})}WX({dsn:"https://0ee7fa162023d958c96db25e99c8ff6c@o351128.ingest.sentry.io/4506851619831808",environment:window.location.hostname==="localhost"?"localhost":"production",integrations:[gJ({useEffect:Vi.useEffect,useLocation:rh.useLocation,useNavigationType:rh.useNavigationType,createRoutesFromChildren:rh.createRoutesFromChildren,matchRoutes:rh.matchRoutes}),GX()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/api\.mapsindoors\.com/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1});function wT(e){return e==="true"}B7.propTypes={apiKey:Tr.string.isRequired,gmApiKey:Tr.string,mapboxAccessToken:Tr.string,venue:Tr.string,locationId:Tr.string,primaryColor:Tr.string,logo:Tr.string,appUserRoles:Tr.string,directionsFrom:Tr.string,directionsTo:Tr.string,externalIDs:Tr.array,tileStyle:Tr.string,startZoomLevel:Tr.number,gmMapId:Tr.string,supportsUrlParameters:Tr.bool,bearing:Tr.number,pitch:Tr.number,kioskOriginLocationId:Tr.string,useMapProviderModule:Tr.bool,timeout:Tr.number,miTransitionLevel:Tr.number,category:Tr.string,language:Tr.string,searchAllVenues:Tr.bool,useKeyboard:Tr.bool};const F7=AQ(B7,Vi,rh);window.customElements.define("mapsindoors-map",F7);const Pce=Object.freeze(Object.defineProperty({__proto__:null,combo_box_item:class{constructor(e){Ri(this,e),this.selected=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),Uce=':host{box-sizing:border-box;display:block;font-family:Figtree, -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";background-color:#ffffff;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:8px;padding-top:32px;padding-bottom:32px;padding-left:32px;padding-right:32px;margin:24px}',V7=class{constructor(e){Ri(this,e)}render(){return ke("slot",null)}};V7.style=Uce;const Bce=".spinner{display:flex;justify-content:center;align-items:center}.spinner>div{width:16px;height:16px;background-color:#6b7280;margin:4px;border-radius:100%;display:inline-block;animation:bouncedelay 1.4s infinite ease-in-out both}.spinner.inverse>div{background-color:#ffffff}.spinner .bounce1{animation-delay:-0.32s}.spinner .bounce2{animation-delay:-0.16s}@keyframes bouncedelay{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}",$7=class{constructor(e){Ri(this,e),this.inverse=!1}render(){return ke(co,null,ke("div",{class:`spinner ${this.inverse?"inverse":""}`},ke("div",{class:"bounce1"}),ke("div",{class:"bounce2"}),ke("div",{class:"bounce3"})))}};$7.style=Bce;const Fce=Object.freeze(Object.defineProperty({__proto__:null,mi_card:V7,mi_spinner:$7},Symbol.toStringTag,{value:"Module"})),Vce=':root{--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:600ms ease;--transition-quickly:300ms 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:0.88;--opacity-x-large:0.72;--opacity-large:0.48;--opacity-medium:0.24;--opacity-small:0.16;--opacity-x-small:0.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:0.875rem;--font-size-x-small:0.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, 0.2), 0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-large:0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-medium:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);--elevation-small:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);--elevation-x-small:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 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)}.chip{display:flex;background-color:var(--tailwind-colors-gray-50);border:1px solid var(--tailwind-colors-gray-200);padding:0 var(--spacing-xx-small);border-radius:var(--spacing-x-small);align-items:center;color:var(--tailwind-colors-neutral-500);font-family:var(--font-family-system);font-size:var(--font-size-medium);height:var(--spacing-xxx-large);width:-moz-fit-content;width:fit-content;cursor:default}.chip:hover{background-color:var(--tailwind-colors-gray-100)}.chip--active{color:var(--brand-colors-white-100)}.chip--active:hover{filter:brightness(90%)}.chip__content{padding:0 var(--spacing-small);white-space:nowrap}.chip__icon{width:var(--spacing-x-large);height:var(--spacing-x-large)}',Q7=class{constructor(e){Ri(this,e),this.icon=void 0,this.content=void 0,this.backgroundColor="#005655",this.active=!1}render(){const e={background:this.active?this.backgroundColor:""};return ke("div",{style:e,class:`chip ${this.active?"chip--active":""}`},this.icon&&ke("img",{class:"chip__icon",src:this.icon}),ke("div",{class:"chip__content"},this.content))}};Q7.style=Vce;const $ce=Object.freeze(Object.defineProperty({__proto__:null,mi_chip:Q7},Symbol.toStringTag,{value:"Module"})),Qce=Object.freeze(Object.defineProperty({__proto__:null,mi_column:class{constructor(e){Ri(this,e),this.clicked=pr(this,"clicked",7),this.monospace=!1,this.alignContent="left",this.label=void 0,this.sortable=void 0,this.sort=void 0,this.binding=void 0,this.fitContent=!1,this.width="auto"}cellContentClickedHandler(e){this.clicked.emit(e.detail)}render(){}}},Symbol.toStringTag,{value:"Module"}));var IT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c0(e,t,r){return r={path:t,exports:{},require:function(s,u){return Hce()}},e(r,r.exports),r.exports}function Hce(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Y7=c0(function(e){((t,r)=>{e.exports?e.exports=r():t.fuzzysort=r()})(IT,t=>{var r=(Ze,ze)=>{if(Ze=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!Ze||!ze)return Ge;var Le=D(Ze);oe(ze)||(ze=S(ze));var Ye=Le.bitflags;return(Ye&ze._bitflags)!==Ye?Ge:C(Le,ze)},s=(Ze,ze,Le)=>{if(Ze=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:ze?ze[0]:Ge}];if(!Ze)return Le&&Le.all?N(Ze,ze,Le):Ae;var Ye=D(Ze),qe=Ye.bitflags,Ie=Le&&Le.threshold||De,Te=Le&&Le.limit||Ve,le=0,X=0,ie=ze.length;if(Le&&Le.key)for(var Me=Le.key,xe=0;xe<ie;++xe){var $e=ze[xe],He=he($e,Me);if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(Ue={target:Ue.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:Ue.score,_indexes:Ue._indexes,obj:$e},le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}else if(Le&&Le.keys)for(var Xe=Le.scoreFn||pe,ut=Le.keys,_t=ut.length,xe=0;xe<ie;++xe){for(var $e=ze[xe],et=new Array(_t),bt=0;bt<_t;++bt){var Me=ut[bt],He=he($e,Me);if(!He){et[bt]=Ge;continue}oe(He)||(He=S(He)),(qe&He._bitflags)!==qe?et[bt]=Ge:et[bt]=C(Ye,He)}et.obj=$e;var Ot=Xe(et);Ot!==Ge&&(Ot<Ie||(et.score=Ot,le<Te?(Ee.add(et),++le):(++X,Ot>Ee.peek().score&&Ee.replaceTop(et))))}else for(var xe=0;xe<ie;++xe){var He=ze[xe];if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}if(le===0)return Ae;for(var Rt=new Array(le),xe=le-1;xe>=0;--xe)Rt[xe]=Ee.poll();return Rt.total=le+X,Rt},u=(Ze,ze,Le)=>{if(typeof ze=="function")return f(Ze,ze);if(Ze===Ge)return Ge;ze===void 0&&(ze="<b>"),Le===void 0&&(Le="</b>");var Ye="",qe=0,Ie=!1,Te=Ze.target,le=Te.length,X=Ze._indexes;X=X.slice(0,X.len).sort((xe,$e)=>xe-$e);for(var ie=0;ie<le;++ie){var Me=Te[ie];if(X[qe]===ie){if(++qe,Ie||(Ie=!0,Ye+=ze),qe===X.length){Ye+=Me+Le+Te.substr(ie+1);break}}else Ie&&(Ie=!1,Ye+=Le);Ye+=Me}return Ye},f=(ie,ze)=>{if(ie===Ge)return Ge;var Le=ie.target,Ye=Le.length,qe=ie._indexes;qe=qe.slice(0,qe.len).sort(($e,He)=>$e-He);for(var Ie="",Te=0,le=0,X=!1,ie=[],Me=0;Me<Ye;++Me){var xe=Le[Me];if(qe[le]===Me){if(++le,X||(X=!0,ie.push(Ie),Ie=""),le===qe.length){Ie+=xe,ie.push(ze(Ie,Te++)),Ie="",ie.push(Le.substr(Me+1));break}}else X&&(X=!1,ie.push(ze(Ie,Te++)),Ie="");Ie+=xe}return ie},m=Ze=>Ze._indexes.slice(0,Ze._indexes.len).sort((ze,Le)=>ze-Le),a=Ze=>{typeof Ze!="string"&&(Ze="");var ze=R(Ze);return{target:Ze,_targetLower:ze._lower,_targetLowerCodes:ze.lowerCodes,_nextBeginningIndexes:Ge,_bitflags:ze.bitflags,score:Ge,_indexes:[0],obj:Ge}},v=Ze=>{typeof Ze!="string"&&(Ze=""),Ze=Ze.trim();var ze=R(Ze),Le=[];if(ze.containsSpace){var Ye=Ze.split(/\s+/);Ye=[...new Set(Ye)];for(var qe=0;qe<Ye.length;qe++)if(Ye[qe]!==""){var Ie=R(Ye[qe]);Le.push({lowerCodes:Ie.lowerCodes,_lower:Ye[qe].toLowerCase(),containsSpace:!1})}}return{lowerCodes:ze.lowerCodes,bitflags:ze.bitflags,containsSpace:ze.containsSpace,_lower:ze._lower,spaceSearches:Le}},S=Ze=>{if(Ze.length>999)return a(Ze);var ze=Y.get(Ze);return ze!==void 0||(ze=a(Ze),Y.set(Ze,ze)),ze},D=Ze=>{if(Ze.length>999)return v(Ze);var ze=W.get(Ze);return ze!==void 0||(ze=v(Ze),W.set(Ze,ze)),ze},N=(Ze,ze,Le)=>{var Ye=[];Ye.total=ze.length;var qe=Le&&Le.limit||Ve;if(Le&&Le.key)for(var Ie=0;Ie<ze.length;Ie++){var Te=ze[Ie],le=he(Te,Le.key);if(le){oe(le)||(le=S(le)),le.score=De,le._indexes.len=0;var X=le;if(X={target:X.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:le.score,_indexes:Ge,obj:Te},Ye.push(X),Ye.length>=qe)return Ye}}else if(Le&&Le.keys)for(var Ie=0;Ie<ze.length;Ie++){for(var Te=ze[Ie],ie=new Array(Le.keys.length),Me=Le.keys.length-1;Me>=0;--Me){var le=he(Te,Le.keys[Me]);if(!le){ie[Me]=Ge;continue}oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,ie[Me]=le}if(ie.obj=Te,ie.score=De,Ye.push(ie),Ye.length>=qe)return Ye}else for(var Ie=0;Ie<ze.length;Ie++){var le=ze[Ie];if(le&&(oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,Ye.push(le),Ye.length>=qe))return Ye}return Ye},C=(Ze,ze,Le=!1)=>{if(Le===!1&&Ze.containsSpace)return O(Ze,ze);for(var Ye=Ze._lower,qe=Ze.lowerCodes,Ie=qe[0],Te=ze._targetLowerCodes,le=qe.length,X=Te.length,$e=0,ie=0,Me=0;;){var xe=Ie===Te[ie];if(xe){if(ee[Me++]=ie,++$e,$e===le)break;Ie=qe[$e]}if(++ie,ie>=X)return Ge}var $e=0,He=!1,Ue=0,Xe=ze._nextBeginningIndexes;Xe===Ge&&(Xe=ze._nextBeginningIndexes=q(ze.target)),ie=ee[0]===0?0:Xe[ee[0]-1];var ut=0;if(ie!==X)for(;;)if(ie>=X){if($e<=0||(++ut,ut>200))break;--$e;var _t=fe[--Ue];ie=Xe[_t]}else{var xe=qe[$e]===Te[ie];if(xe){if(fe[Ue++]=ie,++$e,$e===le){He=!0;break}++ie}else ie=Xe[ie]}var et=ze._targetLower.indexOf(Ye,ee[0]),bt=~et;if(bt&&!He)for(var Ot=0;Ot<Me;++Ot)ee[Ot]=et+Ot;var Rt=!1;bt&&(Rt=ze._nextBeginningIndexes[et-1]===et);{if(He)var dn=fe,Bn=Ue;else var dn=ee,Bn=Me;for(var Tt=0,kn=0,Ot=1;Ot<le;++Ot)dn[Ot]-dn[Ot-1]!==1&&(Tt-=dn[Ot],++kn);var An=dn[le-1]-dn[0]-(le-1);if(Tt-=(12+An)*kn,dn[0]!==0&&(Tt-=dn[0]*dn[0]*.2),!He)Tt*=1e3;else{for(var Cn=1,Ot=Xe[0];Ot<X;Ot=Xe[Ot])++Cn;Cn>24&&(Tt*=(Cn-24)*10)}bt&&(Tt/=1+le*le*1),Rt&&(Tt/=1+le*le*1),Tt-=X-le,ze.score=Tt;for(var Ot=0;Ot<Bn;++Ot)ze._indexes[Ot]=dn[Ot];return ze._indexes.len=Bn,ze}},O=(Ze,ze)=>{for(var Le=new Set,Ye=0,qe=Ge,Ie=0,Te=Ze.spaceSearches,Me=0;Me<Te.length;++Me){var le=Te[Me];if(qe=C(le,ze),qe===Ge)return Ge;Ye+=qe.score,qe._indexes[0]<Ie&&(Ye-=Ie-qe._indexes[0]),Ie=qe._indexes[0];for(var X=0;X<qe._indexes.len;++X)Le.add(qe._indexes[X])}var ie=C(Ze,ze,!0);if(ie!==Ge&&ie.score>Ye)return ie;qe.score=Ye;var Me=0;for(let xe of Le)qe._indexes[Me++]=xe;return qe._indexes.len=Me,qe},R=Ze=>{for(var ze=Ze.length,Le=Ze.toLowerCase(),Ye=[],qe=0,Ie=!1,Te=0;Te<ze;++Te){var le=Ye[Te]=Le.charCodeAt(Te);if(le===32){Ie=!0;continue}var X=le>=97&&le<=122?le-97:le>=48&&le<=57?26:le<=127?30:31;qe|=1<<X}return{lowerCodes:Ye,bitflags:qe,containsSpace:Ie,_lower:Le}},V=Ze=>{for(var ze=Ze.length,Le=[],Ye=0,qe=!1,Ie=!1,Te=0;Te<ze;++Te){var le=Ze.charCodeAt(Te),X=le>=65&&le<=90,ie=X||le>=97&&le<=122||le>=48&&le<=57,Me=X&&!qe||!Ie||!ie;qe=X,Ie=ie,Me&&(Le[Ye++]=Te)}return Le},q=Ze=>{for(var ze=Ze.length,Le=V(Ze),Ye=[],qe=Le[0],Ie=0,Te=0;Te<ze;++Te)qe>Te?Ye[Te]=qe:(qe=Le[++Ie],Ye[Te]=qe===void 0?ze:qe);return Ye},H=()=>{Y.clear(),W.clear(),ee=[],fe=[]},Y=new Map,W=new Map,ee=[],fe=[],pe=Ze=>{for(var ze=De,Le=Ze.length,Ye=0;Ye<Le;++Ye){var qe=Ze[Ye];if(qe!==Ge){var Ie=qe.score;Ie>ze&&(ze=Ie)}}return ze===De?Ge:ze},he=(Ze,ze)=>{var Le=Ze[ze];if(Le!==void 0)return Le;var Ye=ze;Array.isArray(ze)||(Ye=ze.split("."));for(var qe=Ye.length,Ie=-1;Ze&&++Ie<qe;)Ze=Ze[Ye[Ie]];return Ze},oe=Ze=>typeof Ze=="object",Ve=1/0,De=-Ve,Ae=[];Ae.total=0;var Ge=null,it=Ze=>{var ze=[],Le=0,Ye={},qe=Ie=>{for(var Te=0,le=ze[Te],X=1;X<Le;){var ie=X+1;Te=X,ie<Le&&ze[ie].score<ze[X].score&&(Te=ie),ze[Te-1>>1]=ze[Te],X=1+(Te<<1)}for(var Me=Te-1>>1;Te>0&&le.score<ze[Me].score;Me=(Te=Me)-1>>1)ze[Te]=ze[Me];ze[Te]=le};return Ye.add=Ie=>{var Te=Le;ze[Le++]=Ie;for(var le=Te-1>>1;Te>0&&Ie.score<ze[le].score;le=(Te=le)-1>>1)ze[Te]=ze[le];ze[Te]=Ie},Ye.poll=Ie=>{if(Le!==0){var Te=ze[0];return ze[0]=ze[--Le],qe(),Te}},Ye.peek=Ie=>{if(Le!==0)return ze[0]},Ye.replaceTop=Ie=>{ze[0]=Ie,qe()},Ye},Ee=it();return{single:r,go:s,highlight:u,prepare:a,indexes:m,cleanup:H}})}),ap;(function(e){e.Asc="asc",e.Desc="desc"})(ap||(ap={}));const Yce=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}combo-box-item{display:none}:host{display:inline-block;position:relative;font-family:Figtree, -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"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg{transform:rotate(180deg)}.input{position:relative;display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem;padding-right:40px;padding-left:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input__svg{margin-left:auto;position:absolute;top:50%;right:-42px}.input__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input__label--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.input:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var dl;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(dl||(dl={}));const G7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.filterable=!1,this.selected=[],this.noResultsMessage="No results found",this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="combo-box-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.filterable){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}checkForClickOutside(e){var t;!this.hostElement.contains(e.target)&&this.noResultsMessage&&(this.clearFilter(),this.filterElement.value=(t=this.selected[0])===null||t===void 0?void 0:t.text,this.open=!1)}onClickExists(e){this.open=!0,e.target.type="text",this.filterElement.select()}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting===!0&&this.filterElement.blur()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===dl.ArrowDown||t.key===dl.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.filterable||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("combo-box-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.filterable){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===dl.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.filterable)switch(e.key){case(dl.ArrowDown||dl.ArrowUp):this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===dl.Esc&&(this.filterable||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}onSelect(e){this.filterable||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.filterable&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.currentItems=[...this.items];const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){var e;this.filterElement&&(this.filterElement.value=(e=this.selected[0])===null||e===void 0?void 0:e.text,this.filterElement.blur(),this.currentItems=this.items)}render(){var e;const t=ke("ul",{class:"list"},this.currentItems.map((r,s)=>this.renderListItem(r,s,this.filterable)));return ke(co,{class:{open:this.open}},ke("input",{type:"text",class:"input",onFocus:r=>this.onClickExists(r),ref:r=>this.filterElement=r,onInput:()=>this.filter(),tabIndex:0,value:(e=this.selected[0])===null||e===void 0?void 0:e.text}),ke("svg",{role:"button",class:"input__svg",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg",onClick:()=>this.toggleContentWindow()},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"})),ke("section",{ref:r=>this.listElement=r,part:"dropdown-container",class:"content"},this.currentItems.length===0?this.renderNoResultsTemplate():t))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};G7.style=Yce;const Gce=Object.freeze(Object.defineProperty({__proto__:null,mi_combo_box:G7},Symbol.toStringTag,{value:"Module"}));function Z7(e){return e!==null&&e>""&&!isNaN(Number(e))}function Zce(e){return Number(e).toLocaleString(void 0,{minimumFractionDigits:0})}function Gx(e){return e==null}function Zx(){return!!(navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g))}function Wce(e){try{return new URL(e),!0}catch{return!1}}function TT(e,t){if(Wce(e)===!1)return;const r=new URL(e),s=r.hostname;if(s==="image.mapsindoors.com"){const u=Math.max(2,window.devicePixelRatio||1),f=t*u,m=t*u;r.searchParams.set("width",f.toString()),r.searchParams.set("height",m.toString()),r.searchParams.set("fitMode","cover")}return["app.mapsindoors.com","v2.mapsindoors.com"].includes(s)&&r.searchParams.set("scale","2"),r.toString()}const qce=`a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -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";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-select{display:block;padding-top:8px;padding-bottom:8px;padding-left:8px;padding-right:32px;border-radius:4px;border-width:1px;border-style:solid;border-color:#c8d0e0;color:#1e2025;font-size:1rem;font-weight:500;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#f5f7fa, #ebeff5)}.mi-select:disabled{opacity:0.48;cursor:not-allowed}.mi-select:not(:disabled):hover{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-select:not(:disabled):active{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#dee3ed, #ebeff5)}.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:#8d98aa;transition:background-color 300ms ease}.mi-toggle:disabled{opacity:0.48}.mi-toggle:checked{background-color:#2a844e}.mi-toggle::after{content:"";display:inline-block;width:20px;height:20px;transform:translateX(0px);border-radius:50%;background-color:#fcfcfc;box-shadow:0 1px 1px rgba(0, 0, 0, 0.125), 0 2px 2px rgba(0, 0, 0, 0.125);transition:300ms ease}.mi-toggle:checked::after{transform:translateX(24px)}}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}*{box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-family:Figtree, -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";background-color:#ffffff;border-style:solid;border-width:1px;border-color:#d1d5db;border-top:none}.table__header-cell{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:48px;font-weight:500;font-size:1rem;line-height:1.25rem;color:#ffffff;background-color:#374151;padding-top:16px;padding-bottom:16px;padding-left:8px;padding-right:8px}.table__header-cell::before,.table__header-cell::after{content:"";display:block;position:absolute;right:16px;top:50%;border:7px solid transparent}.table__header-cell::before{border-bottom-color:#6b7280;margin-top:-15px}.table__header-cell::after{border-top-color:#6b7280;margin-top:3px}.table__header-cell.desc::after{border-top-color:#f9fafb}.table__header-cell.asc::before{border-bottom-color:#f9fafb}.table__header-cell--no-sort::before,.table__header-cell--no-sort::after{border:none}.table__header-cell:not(.table__header-cell--no-sort){padding-right:46px;cursor:pointer}.table__header-cell--fit-content{white-space:nowrap;width:1px}.table__header-cell--align-left{text-align:left}.table__header-cell--align-center{text-align:center}.table__header-cell--align-right{text-align:right}.table__header-cell--sticky{position:sticky;top:0;z-index:1}.table__row:nth-child(even):hover{background-color:#f3f4f6}.table__row:nth-child(odd){background-color:#f9fafb}.table__row:nth-child(odd):hover{background-color:#f3f4f6}.table__data{font-size:1rem;padding-left:8px;padding-right:8px;height:56px;border-right:1px solid #d1d5db}.table__data:last-child{border-right:none}.table__data--fit-content{white-space:nowrap;width:1px}.table__data--align-left{text-align:left}.table__data--align-center{text-align:center}.table__data--align-right{text-align:right}.table__data--monospace-font{font-family:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace}.empty-page{display:flex;align-items:center;flex-direction:column;margin-top:72px;height:345px}.empty-page>*{margin:0}.empty-page__header{font-size:2.25rem}.empty-page__subheader{margin-top:32px;font-size:1.5rem}`,W7=class{constructor(e){Ri(this,e),this.selectionChanged=pr(this,"selectionChanged",7),this.columns=[],this.numberOfSelectedRows=void 0,this.rows=[],this.maxRows=void 0,this.page=void 0,this.selectable=!1,this.selected=new Set,this.emptyPageHeader="No results found",this.emptyPageSubheader=void 0,this.isHeaderSticky=!0,this.tableRows=[],this.currentPage=1,this.sortByColumn=null}onSelectionChangedHandler(){this.selectionChanged.emit(this.selected)}onRowsChangedHandler(){this.tableRows=Array.from(this.rows),this.setHeaderCheckboxState()}onPageChangedHandler(){this.currentPage=this.page,this.renderTableContent()}connectedCallback(){const e=this.el.querySelectorAll("mi-column");this.columns=Array.from(e).map(t=>{const r={alignContent:t.alignContent,monospace:t.monospace,label:Gx(t.label)?t.binding:t.label,binding:t.binding||null,sortable:t.sortable,fitContent:!!t.fitContent,template:t.innerHTML.replace(/<!--[\s\S]*?-->/g,""),columnElement:t,width:t.width};return t.sort&&!this.sortByColumn&&(this.sortByColumn={column:r,sortOrder:t.sort==="asc"?"asc":"desc"}),r})}columnHeaderClickHandler(e,t){var r,s;if(!Gx(t.sortable)){let u="asc";t===((r=this.sortByColumn)===null||r===void 0?void 0:r.column)&&(u=((s=this.sortByColumn)===null||s===void 0?void 0:s.sortOrder)==="asc"?"desc":"asc"),this.sortByColumn={column:t,sortOrder:u}}}sortTableRows(){var e,t,r;if(this.tableRows.length>0&&this.sortByColumn){let s;const u=(e=this.sortByColumn)===null||e===void 0?void 0:e.column,f=(t=this.sortByColumn)===null||t===void 0?void 0:t.sortOrder;if(u&&f)return((r=u.sortable)===null||r===void 0?void 0:r.toLowerCase())==="date"?s=f==="desc"?eue(u.binding):Jce(u.binding):s=f==="desc"?Xce(u.binding):Kce(u.binding),[...this.tableRows.sort(s)]}return this.tableRows}replaceVars(e,t){return e.replace(/\{(.*?)\}/g,(r,s)=>s.split(".").reduce((f,m)=>f?f[m]:null,t))}removeFalseBooleanAttributes(e,t){return e.replace(/ (checked|disabled|hidden|selected)="\{(.*?)\}"/,(r,s,u)=>t[u]===!1?"":s)}tableRowClicked(e,t){var r;const s=e.target,u=s.closest("td").cellIndex,f=this.selectable?u-1:u;if(s.tagName.toLowerCase()!=="td"&&this.columns[f]){const m={detail:t};(r=this.columns[f])===null||r===void 0||r.columnElement.dispatchEvent(new CustomEvent("cellContentClicked",m))}}async componentWillLoad(){this.rows.length>0&&(this.tableRows=Array.from(this.rows))}render(){return ke(co,null,ke("table",{class:"table"},ke("thead",null,ke("tr",null,this.renderSelectHeader(),this.columns.map(e=>{var t;const r=e.fitContent?"":e.width||"auto",s=((t=this.sortByColumn)===null||t===void 0?void 0:t.column)===e?this.sortByColumn.sortOrder:null;return ke("th",{"data-binding":e.binding,style:{width:r,"max-width":r,"min-width":r},onClick:u=>this.columnHeaderClickHandler(u,e),class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} ${Gx(e.sortable)?"table__header-cell--no-sort":""} ${Gx(s)?"":s} ${e.fitContent?"table__header-cell--fit-content":""}`},e.label)}))),ke("tbody",null,this.renderTableContent())),this.tableRows.length===0?this.renderEmptyPage():null)}renderSelectHeader(){if(this.selectable)return ke("th",{class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} table__header-cell--fit-content table__header-cell--no-sort table__header-cell--align-center`},ke("input",{type:"checkbox",class:"mi-input",ref:e=>this.selectAllCheckbox=e,onChange:()=>this.selectHeaderOnChangeHandler()}))}renderSelectRow(e){if(this.selectable)return ke("td",{class:"table__data table__data--align-center"},ke("input",{class:"mi-input",type:"checkbox",checked:this.selected.has(e),onChange:t=>this.selectOnChangeHandler(t,e)}))}renderTableContent(){let e=this.sortTableRows();return e=Z7(this.maxRows)&&this.maxRows>0?e.slice(this.maxRows*(this.currentPage-1),this.maxRows*this.currentPage):e,e.map(t=>this.renderTableRow(t))}renderTableRow(e){const t=[];for(const r of this.columns){let s=r.template;s>""?(s=this.removeFalseBooleanAttributes(s,e),s=this.replaceVars(s,e),t.push(s)):t.push(e[r.binding])}return ke("tr",{class:"table__row",onClick:r=>this.tableRowClicked(r,e)},this.renderSelectRow(e),t.map((r,s)=>ke("td",{class:`table__data ${this.columns[s].fitContent?"table__data--fit-content":""} table__data--align-${this.columns[s].alignContent||"left"} ${this.columns[s].monospace?"table__data--monospace-font":""}`,innerHTML:r})))}renderEmptyPage(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.emptyPageHeader),ke("p",{class:"empty-page__subheader"},this.emptyPageSubheader))}selectOnChangeHandler(e,t){e.target.checked?this.selected.add(t):this.selected.delete(t),this.setHeaderCheckboxState(),this.numberOfSelectedRows=this.selected.size,e.stopPropagation()}setHeaderCheckboxState(){this.selectAllCheckbox&&this.selectable&&(this.selectAllCheckbox.checked=this.selected.size===this.rows.length,this.selectAllCheckbox.indeterminate=this.selected.size>0&&this.selected.size<this.rows.length)}selectHeaderOnChangeHandler(){this.selected.size>0&&this.selected.size<=this.rows.length?(this.selected.clear(),this.selectAllCheckbox.checked=!1):(this.rows.forEach(e=>this.selected.add(e)),this.selectAllCheckbox.checked=!0),this.numberOfSelectedRows=this.selected.size}get el(){return rc(this)}static get watchers(){return{numberOfSelectedRows:["onSelectionChangedHandler"],rows:["onRowsChangedHandler"],page:["onPageChangedHandler"]}}},Kce=e=>(t,r)=>`${t[e]||""}`.localeCompare(`${r[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Xce=e=>(t,r)=>`${r[e]||""}`.localeCompare(`${t[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Jce=e=>(t,r)=>{const s=Date.parse(t[e]),u=Date.parse(r[e]);return s>u?1:s<u?-1:0},eue=e=>(t,r)=>{const s=Date.parse(r[e]),u=Date.parse(t[e]);return s>u?1:s<u?-1:0};W7.style=qce;const tue=Object.freeze(Object.defineProperty({__proto__:null,mi_data_table:W7},Symbol.toStringTag,{value:"Module"}));var ha;(function(e){e.Imperial="imperial",e.Metric="metric"})(ha||(ha={}));const nue=class{constructor(e){Ri(this,e),this.meters=void 0,this.unit=navigator.language==="en-US"?ha.Imperial:ha.Metric}getMetricDisplayString(e){return Math.abs(e)<1e3?Math.round(e)>0?`${Math.round(e)} m`:"1 m":`${(e/1e3).toFixed(1)} km`}getImperialDisplayString(e){if(Math.abs(e)<1609.344){const s=e*3.28084;return Math.round(s)>0?`${Math.round(s)} ft`:"1 ft"}return`${(e/1609.344).toFixed(1)} mi`}render(){return this.meters>=0?this.renderDistance():null}renderDistance(){return ke("span",null,this.unit===ha.Metric?this.getMetricDisplayString(this.meters):this.getImperialDisplayString(this.meters))}},iue=`/* Tool for generating the mask css from SVG: https://yoksel.github.io/url-encoder/ */
2202
+ `;return typeof s=="function"&&s(null,C),C};const Lce=Hle,bT=b7,U7=j7,zce=R7;function MT(e,t,r,s,u){const f=[].slice.call(arguments,1),m=f.length,a=typeof f[m-1]=="function";if(!a&&!Lce())throw new Error("Callback required as last argument");if(a){if(m<2)throw new Error("Too few arguments provided");m===2?(u=r,r=t,t=s=void 0):m===3&&(t.getContext&&typeof u>"u"?(u=s,s=void 0):(u=s,s=r,r=t,t=void 0))}else{if(m<1)throw new Error("Too few arguments provided");return m===1?(r=t,t=s=void 0):m===2&&!t.getContext&&(s=r,r=t,t=void 0),new Promise(function(v,S){try{const D=bT.create(r,s);v(e(D,t,s))}catch(D){S(D)}})}try{const v=bT.create(r,s);u(null,e(v,t,s))}catch(v){u(v)}}o0.create=bT.create,o0.toCanvas=MT.bind(null,U7.render),o0.toDataURL=MT.bind(null,U7.renderToDataURL),o0.toString=MT.bind(null,function(e,t,r){return zce.render(e,r)});function kce(){const{t:e}=ua(),[,t]=zn(Rx),r=Oe.useRef(),s=on(Aa),u=on(jI),f=on(YI),m=on(Tx),a=on(Kg),v=on(ac),S=on(gu);return Oe.useEffect(()=>{if(v&&S){let D=window.location.origin+window.location.pathname.replace(/\/$/,"");const N=new URLSearchParams(window.location.search),C=new URLSearchParams;[["gmApiKey",m],["mapboxAccessToken",a],["apiKey",u],["primaryColor",s],["logo",f]].forEach(([q,H])=>{if(N.has(q)){const Y=N.get(q);C.append(q,Y)}else H&&(H===s?C.append(q,s.replace("#","")):C.append(q,H))});const O=C.toString();let R=`${D}?${O}&directionsFrom=${v.id}&directionsTo=${S.id}`;const V={errorCorrectionLevel:"L",margin:0,width:"225"};o0.toDataURL(R,V).then(q=>{r.current.src=q})}},[v,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"background"}),Je.jsxs("div",{className:"qr-code",children:[Je.jsx("img",{alt:"",className:"qr-code__image",ref:r}),Je.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Je.jsx("button",{className:"qr-code__button",style:{background:s},onClick:()=>t(!1),children:e("Done")})]})]})}const Oce=ui({key:"supportsUrlParameters",default:!1}),xve="";function jce(){const{t:e}=ua(),t=on(Aa),r=on(y7),s=i0(),u=Oe.useRef(),f=Oe.useRef(),m=Oe.useRef(),[a,v]=zn(Px),[S,D]=Oe.useState(!1),N=Oe.useRef();let C=700;return Oe.useEffect(()=>{a&&s&&D(N.current.clientHeight>C)},[a,s]),Oe.useEffect(()=>{if(a&&s&&S){const O=document.querySelector(".legend__sections");m.current.scrollContainerElementRef=O}},[a,r,S]),Je.jsxs(Je.Fragment,{children:[Je.jsx("div",{className:"legend__background"}),Je.jsxs("div",{className:"legend",ref:u,children:[r.length>0&&Je.jsx("div",{className:`legend__sections ${S?"legend__sections--scrollable":""}`,ref:N,style:{maxHeight:S?`${C}px`:"auto",overflowY:S?"scroll":"auto"},children:r.map((O,R)=>Je.jsxs("div",{className:"legend__section",ref:f,children:[Je.jsx("div",{className:"legend__heading",children:O.heading}),Je.jsx("div",{className:"legend__content",children:O.content})]},R))}),Je.jsx("button",{className:"legend__button",style:{background:t},onClick:()=>v(!1),children:e("Close")}),s&&a&&S&&Je.jsx("div",{className:"scroll-buttons",children:Je.jsx("mi-scroll-buttons",{ref:m})})]})]})}Rse();function Rce({apiKey:e,gmApiKey:t,mapboxAccessToken:r,venue:s,locationId:u,primaryColor:f,logo:m,appUserRoles:a,directionsFrom:v,directionsTo:S,externalIDs:D,tileStyle:N,startZoomLevel:C,bearing:O,pitch:R,gmMapId:V,useMapProviderModule:q,kioskOriginLocationId:H,language:Y,supportsUrlParameters:W,useKeyboard:ee,timeout:fe,miTransitionLevel:pe,category:he,searchAllVenues:oe}){const[,Ve]=zn(jI),[,De]=zn(Tx),[,Ae]=zn(Kg),[Ge,it]=zn($I),[Ee,Ze]=zn(FI),[,ze]=zn(BO),[Le,Ye]=zn(gu),[qe,Ie]=zn(Xg),[,Te]=zn(Nx),[,le]=zn(Aa),[,X]=zn(YI),[,ie]=zn(TO),Me=on(bs),[xe,$e]=zn(t0),[,He]=zn(ac),[,Ue]=zn(PO),[,Xe]=zn(VO),ut=$O(),[,_t]=zn(Oce),[,et]=zn(m7),[,bt]=zn(CO),[,Ot]=zn(lT),[,Rt]=zn(nT),[,dn]=zn(g7),[Bn,Tt]=Oe.useState(!0),[kn,An]=Oe.useState(!0),Cn=x7(v),$n=x7(S),[ni,st]=Oe.useState(!1),[,se]=zn(Ax),[ce,Ne]=zn(Dx),[ht,vt]=Oe.useState(),[pt,Ct]=Oe.useState(),[,mt]=zn(RI),[,an]=zn(NO),[,Fe]=zn(UO),[,Pe]=zn(Wg),[,St]=zn(qg),Xt=oc(),Dt=SO("(max-width: 991px)"),kt=Vle(),Ft=QI(),Vt=on(Oh),[tn,Sn,Xn,ai,Ei,Wi]=Fle(),qi=Oe.useRef(),[Zn,Ki]=Oe.useState(!1),Mt=on(Rx),It=on(Px),[Bt,qt]=Oe.useState(0);function Ht(){return new Promise(Gt=>{if(window.mapsindoors!==void 0)return Gt();const wn=document.createElement("script");wn.setAttribute("type","text/javascript"),wn.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.32.0/mapsindoors-4.32.0.js.gz"),wn.setAttribute("integrity","sha384-pobsiCLAduarZklerr0Y1Yj0gkSVov1spL2XwAMLQ1lm3t6USIXIBAAMeJqiWXSc"),wn.setAttribute("crossorigin","anonymous"),document.body.appendChild(wn),wn.onload=()=>{Gt()}})}Oe.useEffect(()=>{ut&&ln()},[ut]),Oe.useEffect(()=>{Ht().then(()=>{Ki(!0)})},[]),Oe.useEffect(()=>{if(Zn){const Gt=Y||navigator.language;window.mapsindoors.MapsIndoors.setLanguage(Gt),window.mapsindoors.services.LocationsService.once("update_completed",()=>{qe.length>0&&Yt(s),Ee.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(wn=>{wn=wn.map(cn=>(cn.image=pt.venueImages[cn.name.toLowerCase()],cn)),Ze(wn)}),Le&&window.mapsindoors.services.LocationsService.getLocation(Le.id).then(wn=>Ye(wn))}),xe?Oo.changeLanguage(Gt):Mae(Gt),$e(Gt)}},[Y,Zn]),Oe.useEffect(()=>{Zn&&(Ve(e),it(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then(Gt=>(Ct(Gt),Gt)),window.mapsindoors.services.SolutionsService.getSolution().then(Gt=>(mt(Gt),Gt)),new Promise(Gt=>setTimeout(Gt,3e3))]).then(([Gt,wn])=>{Gt=Gt.map(cn=>(cn.image=wn.venueImages[cn.name.toLowerCase()],cn)),Ze(Gt)}),it(!1))},[e,Zn]),Oe.useEffect(()=>{var Gt,wn;Zn&&pt&&(Ae(r||((Gt=pt.appSettings)==null?void 0:Gt.mapboxAccessToken)),De(t||((wn=pt.appSettings)==null?void 0:wn.gmKey)))},[t,r,Zn,pt]),Oe.useEffect(()=>{Zn&&window.mapsindoors.services.SolutionsService.getUserRoles().then(Gt=>{const wn=Gt.filter(cn=>a==null?void 0:a.includes(cn.name));window.mapsindoors.MapsIndoors.setUserRoles(wn)})},[a,Zn]),Oe.useEffect(()=>{Zn&&(D?window.mapsindoors.services.LocationsService.getLocationsByExternalId(D).then(Gt=>{se(Gt)}):se([]))},[D,Zn]),Oe.useEffect(()=>{Zn&&(Te(u),u&&window.mapsindoors.services.LocationsService.getLocation(u).then(Gt=>{Gt&&(Ft(Gt.properties.venueId),Ye(Gt))}))},[u,Zn,Bt]),Oe.useEffect(()=>{Zn&&ie(V)},[V,Zn]),Oe.useEffect(()=>{Xn===Ei.LOCATION_DETAILS&&ai&&!Le&&Ye(ai),qi.current=Xn===Ei.DIRECTIONS,qi.current?(vt(ce),Ne([])):Ne(ht)},[Xn]),Oe.useEffect(()=>{ze(s),Ft(s)},[s]),Oe.useEffect(()=>{an(N)},[N]),Oe.useEffect(()=>{le(f)},[f]),Oe.useEffect(()=>{Fe(C)},[C]),Oe.useEffect(()=>{St(R)},[R]),Oe.useEffect(()=>{Pe(O)},[O]),Oe.useEffect(()=>{X(m)},[m]),Oe.useEffect(()=>{bt(pe)},[pe]),Oe.useEffect(()=>{Le&&Le.id!==H?Me!=null&&Me.selectLocation&&Me.selectLocation(Le):Me!=null&&Me.deselectLocation&&Me.deselectLocation()},[Le]),Oe.useEffect(()=>{Zn&&(Ue(H),H?window.mapsindoors.services.LocationsService.getLocation(H).then(Gt=>{Ft(Gt.properties.venueId),He(Gt)}):He(),H&&Xt?(Tt(!1),An(!1)):(Tt(!0),An(!0)))},[H,Zn]),Oe.useEffect(()=>{Xe(fe)},[fe]),Oe.useEffect(()=>{_t(W)},[W]),Oe.useEffect(()=>{Zn&&ee&&H&&et(ee)},[ee,H,Zn]),Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&Ot(he)},[he,qe,Zn]),Oe.useEffect(()=>{Zn&&oe&&Rt(oe)},[oe,Zn]),Oe.useEffect(()=>{Zn&&Vt&&Yt(Vt)},[Vt,Zn]);function en(Gt){Ge===!1&&it(!0),Yt(Gt.name)}function nn(Gt){qi.current!==!0&&Gt.id!==H&&Ye(Gt)}function Yt(Gt){window.mapsindoors.services.LocationsService.getLocations({}).then(wn=>{const cn=wn.filter(Di=>Di.properties.venueId===Gt);Jt(cn)})}function ln(){kt(),Wi(),qt(Gt=>Gt+1)}function Jt(Gt){let wn=new Map;for(const cn of Gt){const Di=Object.keys(cn.properties.categories);for(const ji of Di){const Ci=pt==null?void 0:pt.menuInfo.mainmenu.find(mr=>mr.categoryKey===ji);if(wn.has(ji)){let mr=wn.get(ji).count;wn.set(ji,{count:++mr,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}else wn.set(ji,{count:1,displayName:cn.properties.categories[ji],iconUrl:Ci==null?void 0:Ci.iconUrl})}}wn=Array.from(wn).sort((cn,Di)=>Di[1].count-cn[1].count),Ie(wn)}return Oe.useEffect(()=>{Zn&&he&&qe.find(Gt=>Gt[0]===he)&&(Ot(he),dn(he))},[he,qe,Zn]),Je.jsxs("div",{className:`mapsindoors-map ${qi.current?"mapsindoors-map--hide-elements":"mapsindoors-map--show-elements"} ${kn?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}`,"data-sentry-component":"MapTemplate","data-sentry-source-file":"MapTemplate.jsx",children:[Je.jsx(Qle,{"data-sentry-element":"Notification","data-sentry-source-file":"MapTemplate.jsx"}),!Ge&&Je.jsx(Gae,{}),Ee.length>1&&Bn&&Je.jsx(nle,{onOpen:()=>tn(Ei.VENUE_SELECTOR),onClose:()=>Sn(),active:Xn===Ei.VENUE_SELECTOR}),Mt&&Je.jsx(kce,{}),It&&Je.jsx(jce,{}),ni&&Je.jsxs(Oe.Fragment,{children:[Xt&&Je.jsx($le,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()}),Dt&&Je.jsx(Ule,{directionsFromLocation:Cn,directionsToLocation:$n,pushAppView:tn,currentAppView:Xn,appViews:Ei,onRouteFinished:()=>ln()})]},Bt),Je.jsx(Hae,{useMapProviderModule:q,onVenueChangedOnMap:Gt=>en(Gt),onMapPositionKnown:()=>st(!0),onLocationClick:Gt=>nn(Gt),"data-sentry-element":"MIMap","data-sentry-source-file":"MapTemplate.jsx"})]})}function B7(e){const[t,r]=Oe.useState();return Oe.useEffect(()=>{var Ee,Ze;const s=window.location.search,u=new URLSearchParams(s),f={apiKey:"mapspeople3d",venue:"AUSTINOFFICE",logo:"https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg",primaryColor:"#005655",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1},m=u.get("apiKey"),a=u.get("venue"),v=u.get("locationId"),S=u.get("logo"),D=u.get("directionsFrom"),N=u.get("directionsTo"),C=u.get("tileStyle"),O=u.get("startZoomLevel"),R=u.get("pitch"),V=u.get("bearing"),q=u.get("gmApiKey"),H=u.get("mapboxAccessToken"),Y=u.get("primaryColor"),W=(Ee=u.get("appUserRoles"))==null?void 0:Ee.split(","),ee=(Ze=u.get("externalIDs"))==null?void 0:Ze.split(","),fe=u.get("gmMapId"),pe=wT(u.get("useMapProviderModule")),he=u.get("kioskOriginLocationId"),oe=u.get("timeout"),Ve=u.get("language"),De=wT(u.get("useKeyboard")),Ae=u.get("miTransitionLevel"),Ge=u.get("category"),it=wT(u.get("searchAllVenues"));r({apiKey:e.supportsUrlParameters&&m?m:e.apiKey||f.apiKey,venue:e.supportsUrlParameters&&a?a:e.venue||f.venue,locationId:e.supportsUrlParameters&&v?v:e.locationId,logo:e.supportsUrlParameters&&S?S:e.logo||f.logo,directionsFrom:e.supportsUrlParameters&&D?D:e.directionsFrom,directionsTo:e.supportsUrlParameters&&N?N:e.directionsTo,tileStyle:e.supportsUrlParameters&&C?C:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&O?O:e.startZoomLevel,pitch:e.supportsUrlParameters&&R?R:e.pitch,bearing:e.supportsUrlParameters&&V?V:e.bearing,gmApiKey:e.supportsUrlParameters&&q?q:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&H?H:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&Y?"#"+Y:e.primaryColor||f.primaryColor,appUserRoles:e.supportsUrlParameters&&W?W:e.appUserRoles,externalIDs:e.supportsUrlParameters&&ee?ee:e.externalIDs,gmMapId:e.supportsUrlParameters&&fe?fe:e.gmMapId,useMapProviderModule:e.supportsUrlParameters&&pe?pe:e.useMapProviderModule||f.useMapProviderModule,kioskOriginLocationId:e.supportsUrlParameters&&he?he:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&oe?oe:e.timeout,language:e.supportsUrlParameters&&Ve?Ve:e.language,supportsUrlParameters:e.supportsUrlParameters,useKeyboard:e.supportsUrlParameters&&De?De:e.useKeyboard||f.useKeyboard,miTransitionLevel:e.supportsUrlParameters&&Ae?Ae:e.miTransitionLevel,category:e.supportsUrlParameters&&Ge?Ge:e.category,searchAllVenues:e.supportsUrlParameters&&it?it:e.searchAllVenues||f.searchAllVenues})},[e]),Je.jsx(nse,{"data-sentry-element":"RecoilRoot","data-sentry-component":"MapsIndoorsMap","data-sentry-source-file":"MapsIndoorsMap.jsx",children:t&&Je.jsx(Rce,{...t})})}WX({dsn:"https://0ee7fa162023d958c96db25e99c8ff6c@o351128.ingest.sentry.io/4506851619831808",environment:window.location.hostname==="localhost"?"localhost":"production",integrations:[gJ({useEffect:Vi.useEffect,useLocation:rh.useLocation,useNavigationType:rh.useNavigationType,createRoutesFromChildren:rh.createRoutesFromChildren,matchRoutes:rh.matchRoutes}),GX()],tracesSampleRate:1,tracePropagationTargets:["localhost",/^https:\/\/api\.mapsindoors\.com/],replaysSessionSampleRate:0,replaysOnErrorSampleRate:1});function wT(e){return e==="true"}B7.propTypes={apiKey:Tr.string.isRequired,gmApiKey:Tr.string,mapboxAccessToken:Tr.string,venue:Tr.string,locationId:Tr.string,primaryColor:Tr.string,logo:Tr.string,appUserRoles:Tr.string,directionsFrom:Tr.string,directionsTo:Tr.string,externalIDs:Tr.array,tileStyle:Tr.string,startZoomLevel:Tr.number,gmMapId:Tr.string,supportsUrlParameters:Tr.bool,bearing:Tr.number,pitch:Tr.number,kioskOriginLocationId:Tr.string,useMapProviderModule:Tr.bool,timeout:Tr.number,miTransitionLevel:Tr.number,category:Tr.string,language:Tr.string,searchAllVenues:Tr.bool,useKeyboard:Tr.bool};const F7=AQ(B7,Vi,rh);window.customElements.define("mapsindoors-map",F7);const Pce=Object.freeze(Object.defineProperty({__proto__:null,combo_box_item:class{constructor(e){Ri(this,e),this.selected=!1,this.disabled=!1,this.excludefromall=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),Uce=':host{box-sizing:border-box;display:block;font-family:Figtree, -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";background-color:#ffffff;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:8px;padding-top:32px;padding-bottom:32px;padding-left:32px;padding-right:32px;margin:24px}',V7=class{constructor(e){Ri(this,e)}render(){return ke("slot",null)}};V7.style=Uce;const Bce=".spinner{display:flex;justify-content:center;align-items:center}.spinner>div{width:16px;height:16px;background-color:#6b7280;margin:4px;border-radius:100%;display:inline-block;animation:bouncedelay 1.4s infinite ease-in-out both}.spinner.inverse>div{background-color:#ffffff}.spinner .bounce1{animation-delay:-0.32s}.spinner .bounce2{animation-delay:-0.16s}@keyframes bouncedelay{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}",$7=class{constructor(e){Ri(this,e),this.inverse=!1}render(){return ke(co,null,ke("div",{class:`spinner ${this.inverse?"inverse":""}`},ke("div",{class:"bounce1"}),ke("div",{class:"bounce2"}),ke("div",{class:"bounce3"})))}};$7.style=Bce;const Fce=Object.freeze(Object.defineProperty({__proto__:null,mi_card:V7,mi_spinner:$7},Symbol.toStringTag,{value:"Module"})),Vce=':root{--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:600ms ease;--transition-quickly:300ms 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:0.88;--opacity-x-large:0.72;--opacity-large:0.48;--opacity-medium:0.24;--opacity-small:0.16;--opacity-x-small:0.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:0.875rem;--font-size-x-small:0.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, 0.2), 0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-large:0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-medium:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);--elevation-small:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);--elevation-x-small:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 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)}.chip{display:flex;background-color:var(--tailwind-colors-gray-50);border:1px solid var(--tailwind-colors-gray-200);padding:0 var(--spacing-xx-small);border-radius:var(--spacing-x-small);align-items:center;color:var(--tailwind-colors-neutral-500);font-family:var(--font-family-system);font-size:var(--font-size-medium);height:var(--spacing-xxx-large);width:-moz-fit-content;width:fit-content;cursor:default}.chip:hover{background-color:var(--tailwind-colors-gray-100)}.chip--active{color:var(--brand-colors-white-100)}.chip--active:hover{filter:brightness(90%)}.chip__content{padding:0 var(--spacing-small);white-space:nowrap}.chip__icon{width:var(--spacing-x-large);height:var(--spacing-x-large)}',Q7=class{constructor(e){Ri(this,e),this.icon=void 0,this.content=void 0,this.backgroundColor="#005655",this.active=!1}render(){const e={background:this.active?this.backgroundColor:""};return ke("div",{style:e,class:`chip ${this.active?"chip--active":""}`},this.icon&&ke("img",{class:"chip__icon",src:this.icon}),ke("div",{class:"chip__content"},this.content))}};Q7.style=Vce;const $ce=Object.freeze(Object.defineProperty({__proto__:null,mi_chip:Q7},Symbol.toStringTag,{value:"Module"})),Qce=Object.freeze(Object.defineProperty({__proto__:null,mi_column:class{constructor(e){Ri(this,e),this.clicked=pr(this,"clicked",7),this.monospace=!1,this.alignContent="left",this.label=void 0,this.sortable=void 0,this.sort=void 0,this.binding=void 0,this.fitContent=!1,this.width="auto"}cellContentClickedHandler(e){this.clicked.emit(e.detail)}render(){}}},Symbol.toStringTag,{value:"Module"}));var IT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function H7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function c0(e,t,r){return r={path:t,exports:{},require:function(s,u){return Hce()}},e(r,r.exports),r.exports}function Hce(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Y7=c0(function(e){((t,r)=>{e.exports?e.exports=r():t.fuzzysort=r()})(IT,t=>{var r=(Ze,ze)=>{if(Ze=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!Ze||!ze)return Ge;var Le=D(Ze);oe(ze)||(ze=S(ze));var Ye=Le.bitflags;return(Ye&ze._bitflags)!==Ye?Ge:C(Le,ze)},s=(Ze,ze,Le)=>{if(Ze=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:ze?ze[0]:Ge}];if(!Ze)return Le&&Le.all?N(Ze,ze,Le):Ae;var Ye=D(Ze),qe=Ye.bitflags,Ie=Le&&Le.threshold||De,Te=Le&&Le.limit||Ve,le=0,X=0,ie=ze.length;if(Le&&Le.key)for(var Me=Le.key,xe=0;xe<ie;++xe){var $e=ze[xe],He=he($e,Me);if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(Ue={target:Ue.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:Ue.score,_indexes:Ue._indexes,obj:$e},le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}else if(Le&&Le.keys)for(var Xe=Le.scoreFn||pe,ut=Le.keys,_t=ut.length,xe=0;xe<ie;++xe){for(var $e=ze[xe],et=new Array(_t),bt=0;bt<_t;++bt){var Me=ut[bt],He=he($e,Me);if(!He){et[bt]=Ge;continue}oe(He)||(He=S(He)),(qe&He._bitflags)!==qe?et[bt]=Ge:et[bt]=C(Ye,He)}et.obj=$e;var Ot=Xe(et);Ot!==Ge&&(Ot<Ie||(et.score=Ot,le<Te?(Ee.add(et),++le):(++X,Ot>Ee.peek().score&&Ee.replaceTop(et))))}else for(var xe=0;xe<ie;++xe){var He=ze[xe];if(He&&(oe(He)||(He=S(He)),(qe&He._bitflags)===qe)){var Ue=C(Ye,He);Ue!==Ge&&(Ue.score<Ie||(le<Te?(Ee.add(Ue),++le):(++X,Ue.score>Ee.peek().score&&Ee.replaceTop(Ue))))}}if(le===0)return Ae;for(var Rt=new Array(le),xe=le-1;xe>=0;--xe)Rt[xe]=Ee.poll();return Rt.total=le+X,Rt},u=(Ze,ze,Le)=>{if(typeof ze=="function")return f(Ze,ze);if(Ze===Ge)return Ge;ze===void 0&&(ze="<b>"),Le===void 0&&(Le="</b>");var Ye="",qe=0,Ie=!1,Te=Ze.target,le=Te.length,X=Ze._indexes;X=X.slice(0,X.len).sort((xe,$e)=>xe-$e);for(var ie=0;ie<le;++ie){var Me=Te[ie];if(X[qe]===ie){if(++qe,Ie||(Ie=!0,Ye+=ze),qe===X.length){Ye+=Me+Le+Te.substr(ie+1);break}}else Ie&&(Ie=!1,Ye+=Le);Ye+=Me}return Ye},f=(ie,ze)=>{if(ie===Ge)return Ge;var Le=ie.target,Ye=Le.length,qe=ie._indexes;qe=qe.slice(0,qe.len).sort(($e,He)=>$e-He);for(var Ie="",Te=0,le=0,X=!1,ie=[],Me=0;Me<Ye;++Me){var xe=Le[Me];if(qe[le]===Me){if(++le,X||(X=!0,ie.push(Ie),Ie=""),le===qe.length){Ie+=xe,ie.push(ze(Ie,Te++)),Ie="",ie.push(Le.substr(Me+1));break}}else X&&(X=!1,ie.push(ze(Ie,Te++)),Ie="");Ie+=xe}return ie},m=Ze=>Ze._indexes.slice(0,Ze._indexes.len).sort((ze,Le)=>ze-Le),a=Ze=>{typeof Ze!="string"&&(Ze="");var ze=R(Ze);return{target:Ze,_targetLower:ze._lower,_targetLowerCodes:ze.lowerCodes,_nextBeginningIndexes:Ge,_bitflags:ze.bitflags,score:Ge,_indexes:[0],obj:Ge}},v=Ze=>{typeof Ze!="string"&&(Ze=""),Ze=Ze.trim();var ze=R(Ze),Le=[];if(ze.containsSpace){var Ye=Ze.split(/\s+/);Ye=[...new Set(Ye)];for(var qe=0;qe<Ye.length;qe++)if(Ye[qe]!==""){var Ie=R(Ye[qe]);Le.push({lowerCodes:Ie.lowerCodes,_lower:Ye[qe].toLowerCase(),containsSpace:!1})}}return{lowerCodes:ze.lowerCodes,bitflags:ze.bitflags,containsSpace:ze.containsSpace,_lower:ze._lower,spaceSearches:Le}},S=Ze=>{if(Ze.length>999)return a(Ze);var ze=Y.get(Ze);return ze!==void 0||(ze=a(Ze),Y.set(Ze,ze)),ze},D=Ze=>{if(Ze.length>999)return v(Ze);var ze=W.get(Ze);return ze!==void 0||(ze=v(Ze),W.set(Ze,ze)),ze},N=(Ze,ze,Le)=>{var Ye=[];Ye.total=ze.length;var qe=Le&&Le.limit||Ve;if(Le&&Le.key)for(var Ie=0;Ie<ze.length;Ie++){var Te=ze[Ie],le=he(Te,Le.key);if(le){oe(le)||(le=S(le)),le.score=De,le._indexes.len=0;var X=le;if(X={target:X.target,_targetLower:"",_targetLowerCodes:Ge,_nextBeginningIndexes:Ge,_bitflags:0,score:le.score,_indexes:Ge,obj:Te},Ye.push(X),Ye.length>=qe)return Ye}}else if(Le&&Le.keys)for(var Ie=0;Ie<ze.length;Ie++){for(var Te=ze[Ie],ie=new Array(Le.keys.length),Me=Le.keys.length-1;Me>=0;--Me){var le=he(Te,Le.keys[Me]);if(!le){ie[Me]=Ge;continue}oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,ie[Me]=le}if(ie.obj=Te,ie.score=De,Ye.push(ie),Ye.length>=qe)return Ye}else for(var Ie=0;Ie<ze.length;Ie++){var le=ze[Ie];if(le&&(oe(le)||(le=S(le)),le.score=De,le._indexes.len=0,Ye.push(le),Ye.length>=qe))return Ye}return Ye},C=(Ze,ze,Le=!1)=>{if(Le===!1&&Ze.containsSpace)return O(Ze,ze);for(var Ye=Ze._lower,qe=Ze.lowerCodes,Ie=qe[0],Te=ze._targetLowerCodes,le=qe.length,X=Te.length,$e=0,ie=0,Me=0;;){var xe=Ie===Te[ie];if(xe){if(ee[Me++]=ie,++$e,$e===le)break;Ie=qe[$e]}if(++ie,ie>=X)return Ge}var $e=0,He=!1,Ue=0,Xe=ze._nextBeginningIndexes;Xe===Ge&&(Xe=ze._nextBeginningIndexes=q(ze.target)),ie=ee[0]===0?0:Xe[ee[0]-1];var ut=0;if(ie!==X)for(;;)if(ie>=X){if($e<=0||(++ut,ut>200))break;--$e;var _t=fe[--Ue];ie=Xe[_t]}else{var xe=qe[$e]===Te[ie];if(xe){if(fe[Ue++]=ie,++$e,$e===le){He=!0;break}++ie}else ie=Xe[ie]}var et=ze._targetLower.indexOf(Ye,ee[0]),bt=~et;if(bt&&!He)for(var Ot=0;Ot<Me;++Ot)ee[Ot]=et+Ot;var Rt=!1;bt&&(Rt=ze._nextBeginningIndexes[et-1]===et);{if(He)var dn=fe,Bn=Ue;else var dn=ee,Bn=Me;for(var Tt=0,kn=0,Ot=1;Ot<le;++Ot)dn[Ot]-dn[Ot-1]!==1&&(Tt-=dn[Ot],++kn);var An=dn[le-1]-dn[0]-(le-1);if(Tt-=(12+An)*kn,dn[0]!==0&&(Tt-=dn[0]*dn[0]*.2),!He)Tt*=1e3;else{for(var Cn=1,Ot=Xe[0];Ot<X;Ot=Xe[Ot])++Cn;Cn>24&&(Tt*=(Cn-24)*10)}bt&&(Tt/=1+le*le*1),Rt&&(Tt/=1+le*le*1),Tt-=X-le,ze.score=Tt;for(var Ot=0;Ot<Bn;++Ot)ze._indexes[Ot]=dn[Ot];return ze._indexes.len=Bn,ze}},O=(Ze,ze)=>{for(var Le=new Set,Ye=0,qe=Ge,Ie=0,Te=Ze.spaceSearches,Me=0;Me<Te.length;++Me){var le=Te[Me];if(qe=C(le,ze),qe===Ge)return Ge;Ye+=qe.score,qe._indexes[0]<Ie&&(Ye-=Ie-qe._indexes[0]),Ie=qe._indexes[0];for(var X=0;X<qe._indexes.len;++X)Le.add(qe._indexes[X])}var ie=C(Ze,ze,!0);if(ie!==Ge&&ie.score>Ye)return ie;qe.score=Ye;var Me=0;for(let xe of Le)qe._indexes[Me++]=xe;return qe._indexes.len=Me,qe},R=Ze=>{for(var ze=Ze.length,Le=Ze.toLowerCase(),Ye=[],qe=0,Ie=!1,Te=0;Te<ze;++Te){var le=Ye[Te]=Le.charCodeAt(Te);if(le===32){Ie=!0;continue}var X=le>=97&&le<=122?le-97:le>=48&&le<=57?26:le<=127?30:31;qe|=1<<X}return{lowerCodes:Ye,bitflags:qe,containsSpace:Ie,_lower:Le}},V=Ze=>{for(var ze=Ze.length,Le=[],Ye=0,qe=!1,Ie=!1,Te=0;Te<ze;++Te){var le=Ze.charCodeAt(Te),X=le>=65&&le<=90,ie=X||le>=97&&le<=122||le>=48&&le<=57,Me=X&&!qe||!Ie||!ie;qe=X,Ie=ie,Me&&(Le[Ye++]=Te)}return Le},q=Ze=>{for(var ze=Ze.length,Le=V(Ze),Ye=[],qe=Le[0],Ie=0,Te=0;Te<ze;++Te)qe>Te?Ye[Te]=qe:(qe=Le[++Ie],Ye[Te]=qe===void 0?ze:qe);return Ye},H=()=>{Y.clear(),W.clear(),ee=[],fe=[]},Y=new Map,W=new Map,ee=[],fe=[],pe=Ze=>{for(var ze=De,Le=Ze.length,Ye=0;Ye<Le;++Ye){var qe=Ze[Ye];if(qe!==Ge){var Ie=qe.score;Ie>ze&&(ze=Ie)}}return ze===De?Ge:ze},he=(Ze,ze)=>{var Le=Ze[ze];if(Le!==void 0)return Le;var Ye=ze;Array.isArray(ze)||(Ye=ze.split("."));for(var qe=Ye.length,Ie=-1;Ze&&++Ie<qe;)Ze=Ze[Ye[Ie]];return Ze},oe=Ze=>typeof Ze=="object",Ve=1/0,De=-Ve,Ae=[];Ae.total=0;var Ge=null,it=Ze=>{var ze=[],Le=0,Ye={},qe=Ie=>{for(var Te=0,le=ze[Te],X=1;X<Le;){var ie=X+1;Te=X,ie<Le&&ze[ie].score<ze[X].score&&(Te=ie),ze[Te-1>>1]=ze[Te],X=1+(Te<<1)}for(var Me=Te-1>>1;Te>0&&le.score<ze[Me].score;Me=(Te=Me)-1>>1)ze[Te]=ze[Me];ze[Te]=le};return Ye.add=Ie=>{var Te=Le;ze[Le++]=Ie;for(var le=Te-1>>1;Te>0&&Ie.score<ze[le].score;le=(Te=le)-1>>1)ze[Te]=ze[le];ze[Te]=Ie},Ye.poll=Ie=>{if(Le!==0){var Te=ze[0];return ze[0]=ze[--Le],qe(),Te}},Ye.peek=Ie=>{if(Le!==0)return ze[0]},Ye.replaceTop=Ie=>{ze[0]=Ie,qe()},Ye},Ee=it();return{single:r,go:s,highlight:u,prepare:a,indexes:m,cleanup:H}})}),ap;(function(e){e.Asc="asc",e.Desc="desc"})(ap||(ap={}));const Yce=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}combo-box-item{display:none}:host{display:inline-block;position:relative;font-family:Figtree, -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"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg{transform:rotate(180deg)}.input{position:relative;display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem;padding-right:40px;padding-left:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input__svg{margin-left:auto;position:absolute;top:50%;right:-42px}.input__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input__label--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.input:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var dl;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(dl||(dl={}));const G7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.filterable=!1,this.selected=[],this.noResultsMessage="No results found",this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="combo-box-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.filterable){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}checkForClickOutside(e){var t;!this.hostElement.contains(e.target)&&this.noResultsMessage&&(this.clearFilter(),this.filterElement.value=(t=this.selected[0])===null||t===void 0?void 0:t.text,this.open=!1)}onClickExists(e){this.open=!0,e.target.type="text",this.filterElement.select()}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver(t=>{t.forEach(r=>{r.isIntersecting===!0&&this.filterElement.blur()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===dl.ArrowDown||t.key===dl.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.filterable||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("combo-box-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.filterable){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===dl.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.filterable)switch(e.key){case(dl.ArrowDown||dl.ArrowUp):this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case dl.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===dl.Esc&&(this.filterable||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}onSelect(e){this.filterable||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.filterable&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.currentItems=[...this.items];const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){var e;this.filterElement&&(this.filterElement.value=(e=this.selected[0])===null||e===void 0?void 0:e.text,this.filterElement.blur(),this.currentItems=this.items)}render(){var e;const t=ke("ul",{class:"list"},this.currentItems.map((r,s)=>this.renderListItem(r,s,this.filterable)));return ke(co,{class:{open:this.open}},ke("input",{type:"text",class:"input",onFocus:r=>this.onClickExists(r),ref:r=>this.filterElement=r,onInput:()=>this.filter(),tabIndex:0,value:(e=this.selected[0])===null||e===void 0?void 0:e.text}),ke("svg",{role:"button",class:"input__svg",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg",onClick:()=>this.toggleContentWindow()},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"})),ke("section",{ref:r=>this.listElement=r,part:"dropdown-container",class:"content"},this.currentItems.length===0?this.renderNoResultsTemplate():t))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};G7.style=Yce;const Gce=Object.freeze(Object.defineProperty({__proto__:null,mi_combo_box:G7},Symbol.toStringTag,{value:"Module"}));function Z7(e){return e!==null&&e>""&&!isNaN(Number(e))}function Zce(e){return Number(e).toLocaleString(void 0,{minimumFractionDigits:0})}function Gx(e){return e==null}function Zx(){return!!(navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g))}function Wce(e){try{return new URL(e),!0}catch{return!1}}function TT(e,t){if(Wce(e)===!1)return;const r=new URL(e),s=r.hostname;if(s==="image.mapsindoors.com"){const u=Math.max(2,window.devicePixelRatio||1),f=t*u,m=t*u;r.searchParams.set("width",f.toString()),r.searchParams.set("height",m.toString()),r.searchParams.set("fitMode","cover")}return["app.mapsindoors.com","v2.mapsindoors.com"].includes(s)&&r.searchParams.set("scale","2"),r.toString()}const qce=`a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -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";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-select{display:block;padding-top:8px;padding-bottom:8px;padding-left:8px;padding-right:32px;border-radius:4px;border-width:1px;border-style:solid;border-color:#c8d0e0;color:#1e2025;font-size:1rem;font-weight:500;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#f5f7fa, #ebeff5)}.mi-select:disabled{opacity:0.48;cursor:not-allowed}.mi-select:not(:disabled):hover{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-select:not(:disabled):active{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#dee3ed, #ebeff5)}.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:#8d98aa;transition:background-color 300ms ease}.mi-toggle:disabled{opacity:0.48}.mi-toggle:checked{background-color:#2a844e}.mi-toggle::after{content:"";display:inline-block;width:20px;height:20px;transform:translateX(0px);border-radius:50%;background-color:#fcfcfc;box-shadow:0 1px 1px rgba(0, 0, 0, 0.125), 0 2px 2px rgba(0, 0, 0, 0.125);transition:300ms ease}.mi-toggle:checked::after{transform:translateX(24px)}}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}*{box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-family:Figtree, -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";background-color:#ffffff;border-style:solid;border-width:1px;border-color:#d1d5db;border-top:none}.table__header-cell{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:48px;font-weight:500;font-size:1rem;line-height:1.25rem;color:#ffffff;background-color:#374151;padding-top:16px;padding-bottom:16px;padding-left:8px;padding-right:8px}.table__header-cell::before,.table__header-cell::after{content:"";display:block;position:absolute;right:16px;top:50%;border:7px solid transparent}.table__header-cell::before{border-bottom-color:#6b7280;margin-top:-15px}.table__header-cell::after{border-top-color:#6b7280;margin-top:3px}.table__header-cell.desc::after{border-top-color:#f9fafb}.table__header-cell.asc::before{border-bottom-color:#f9fafb}.table__header-cell--no-sort::before,.table__header-cell--no-sort::after{border:none}.table__header-cell:not(.table__header-cell--no-sort){padding-right:46px;cursor:pointer}.table__header-cell--fit-content{white-space:nowrap;width:1px}.table__header-cell--align-left{text-align:left}.table__header-cell--align-center{text-align:center}.table__header-cell--align-right{text-align:right}.table__header-cell--sticky{position:sticky;top:0;z-index:1}.table__row:nth-child(even):hover{background-color:#f3f4f6}.table__row:nth-child(odd){background-color:#f9fafb}.table__row:nth-child(odd):hover{background-color:#f3f4f6}.table__data{font-size:1rem;padding-left:8px;padding-right:8px;height:56px;border-right:1px solid #d1d5db}.table__data:last-child{border-right:none}.table__data--fit-content{white-space:nowrap;width:1px}.table__data--align-left{text-align:left}.table__data--align-center{text-align:center}.table__data--align-right{text-align:right}.table__data--monospace-font{font-family:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace}.empty-page{display:flex;align-items:center;flex-direction:column;margin-top:72px;height:345px}.empty-page>*{margin:0}.empty-page__header{font-size:2.25rem}.empty-page__subheader{margin-top:32px;font-size:1.5rem}`,W7=class{constructor(e){Ri(this,e),this.selectionChanged=pr(this,"selectionChanged",7),this.columns=[],this.numberOfSelectedRows=void 0,this.rows=[],this.maxRows=void 0,this.page=void 0,this.selectable=!1,this.selected=new Set,this.emptyPageHeader="No results found",this.emptyPageSubheader=void 0,this.isHeaderSticky=!0,this.tableRows=[],this.currentPage=1,this.sortByColumn=null}onSelectionChangedHandler(){this.selectionChanged.emit(this.selected)}onRowsChangedHandler(){this.tableRows=Array.from(this.rows),this.setHeaderCheckboxState()}onPageChangedHandler(){this.currentPage=this.page,this.renderTableContent()}connectedCallback(){const e=this.el.querySelectorAll("mi-column");this.columns=Array.from(e).map(t=>{const r={alignContent:t.alignContent,monospace:t.monospace,label:Gx(t.label)?t.binding:t.label,binding:t.binding||null,sortable:t.sortable,fitContent:!!t.fitContent,template:t.innerHTML.replace(/<!--[\s\S]*?-->/g,""),columnElement:t,width:t.width};return t.sort&&!this.sortByColumn&&(this.sortByColumn={column:r,sortOrder:t.sort==="asc"?"asc":"desc"}),r})}columnHeaderClickHandler(e,t){var r,s;if(!Gx(t.sortable)){let u="asc";t===((r=this.sortByColumn)===null||r===void 0?void 0:r.column)&&(u=((s=this.sortByColumn)===null||s===void 0?void 0:s.sortOrder)==="asc"?"desc":"asc"),this.sortByColumn={column:t,sortOrder:u}}}sortTableRows(){var e,t,r;if(this.tableRows.length>0&&this.sortByColumn){let s;const u=(e=this.sortByColumn)===null||e===void 0?void 0:e.column,f=(t=this.sortByColumn)===null||t===void 0?void 0:t.sortOrder;if(u&&f)return((r=u.sortable)===null||r===void 0?void 0:r.toLowerCase())==="date"?s=f==="desc"?eue(u.binding):Jce(u.binding):s=f==="desc"?Xce(u.binding):Kce(u.binding),[...this.tableRows.sort(s)]}return this.tableRows}replaceVars(e,t){return e.replace(/\{(.*?)\}/g,(r,s)=>s.split(".").reduce((f,m)=>f?f[m]:null,t))}removeFalseBooleanAttributes(e,t){return e.replace(/ (checked|disabled|hidden|selected)="\{(.*?)\}"/,(r,s,u)=>t[u]===!1?"":s)}tableRowClicked(e,t){var r;const s=e.target,u=s.closest("td").cellIndex,f=this.selectable?u-1:u;if(s.tagName.toLowerCase()!=="td"&&this.columns[f]){const m={detail:t};(r=this.columns[f])===null||r===void 0||r.columnElement.dispatchEvent(new CustomEvent("cellContentClicked",m))}}async componentWillLoad(){this.rows.length>0&&(this.tableRows=Array.from(this.rows))}render(){return ke(co,null,ke("table",{class:"table"},ke("thead",null,ke("tr",null,this.renderSelectHeader(),this.columns.map(e=>{var t;const r=e.fitContent?"":e.width||"auto",s=((t=this.sortByColumn)===null||t===void 0?void 0:t.column)===e?this.sortByColumn.sortOrder:null;return ke("th",{"data-binding":e.binding,style:{width:r,"max-width":r,"min-width":r},onClick:u=>this.columnHeaderClickHandler(u,e),class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} ${Gx(e.sortable)?"table__header-cell--no-sort":""} ${Gx(s)?"":s} ${e.fitContent?"table__header-cell--fit-content":""}`},e.label)}))),ke("tbody",null,this.renderTableContent())),this.tableRows.length===0?this.renderEmptyPage():null)}renderSelectHeader(){if(this.selectable)return ke("th",{class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} table__header-cell--fit-content table__header-cell--no-sort table__header-cell--align-center`},ke("input",{type:"checkbox",class:"mi-input",ref:e=>this.selectAllCheckbox=e,onChange:()=>this.selectHeaderOnChangeHandler()}))}renderSelectRow(e){if(this.selectable)return ke("td",{class:"table__data table__data--align-center"},ke("input",{class:"mi-input",type:"checkbox",checked:this.selected.has(e),onChange:t=>this.selectOnChangeHandler(t,e)}))}renderTableContent(){let e=this.sortTableRows();return e=Z7(this.maxRows)&&this.maxRows>0?e.slice(this.maxRows*(this.currentPage-1),this.maxRows*this.currentPage):e,e.map(t=>this.renderTableRow(t))}renderTableRow(e){const t=[];for(const r of this.columns){let s=r.template;s>""?(s=this.removeFalseBooleanAttributes(s,e),s=this.replaceVars(s,e),t.push(s)):t.push(e[r.binding])}return ke("tr",{class:"table__row",onClick:r=>this.tableRowClicked(r,e)},this.renderSelectRow(e),t.map((r,s)=>ke("td",{class:`table__data ${this.columns[s].fitContent?"table__data--fit-content":""} table__data--align-${this.columns[s].alignContent||"left"} ${this.columns[s].monospace?"table__data--monospace-font":""}`,innerHTML:r})))}renderEmptyPage(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.emptyPageHeader),ke("p",{class:"empty-page__subheader"},this.emptyPageSubheader))}selectOnChangeHandler(e,t){e.target.checked?this.selected.add(t):this.selected.delete(t),this.setHeaderCheckboxState(),this.numberOfSelectedRows=this.selected.size,e.stopPropagation()}setHeaderCheckboxState(){this.selectAllCheckbox&&this.selectable&&(this.selectAllCheckbox.checked=this.selected.size===this.rows.length,this.selectAllCheckbox.indeterminate=this.selected.size>0&&this.selected.size<this.rows.length)}selectHeaderOnChangeHandler(){this.selected.size>0&&this.selected.size<=this.rows.length?(this.selected.clear(),this.selectAllCheckbox.checked=!1):(this.rows.forEach(e=>this.selected.add(e)),this.selectAllCheckbox.checked=!0),this.numberOfSelectedRows=this.selected.size}get el(){return rc(this)}static get watchers(){return{numberOfSelectedRows:["onSelectionChangedHandler"],rows:["onRowsChangedHandler"],page:["onPageChangedHandler"]}}},Kce=e=>(t,r)=>`${t[e]||""}`.localeCompare(`${r[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Xce=e=>(t,r)=>`${r[e]||""}`.localeCompare(`${t[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Jce=e=>(t,r)=>{const s=Date.parse(t[e]),u=Date.parse(r[e]);return s>u?1:s<u?-1:0},eue=e=>(t,r)=>{const s=Date.parse(r[e]),u=Date.parse(t[e]);return s>u?1:s<u?-1:0};W7.style=qce;const tue=Object.freeze(Object.defineProperty({__proto__:null,mi_data_table:W7},Symbol.toStringTag,{value:"Module"}));var ha;(function(e){e.Imperial="imperial",e.Metric="metric"})(ha||(ha={}));const nue=class{constructor(e){Ri(this,e),this.meters=void 0,this.unit=navigator.language==="en-US"?ha.Imperial:ha.Metric}getMetricDisplayString(e){return Math.abs(e)<1e3?Math.round(e)>0?`${Math.round(e)} m`:"1 m":`${(e/1e3).toFixed(1)} km`}getImperialDisplayString(e){if(Math.abs(e)<1609.344){const s=e*3.28084;return Math.round(s)>0?`${Math.round(s)} ft`:"1 ft"}return`${(e/1609.344).toFixed(1)} mi`}render(){return this.meters>=0?this.renderDistance():null}renderDistance(){return ke("span",null,this.unit===ha.Metric?this.getMetricDisplayString(this.meters):this.getImperialDisplayString(this.meters))}},iue=`/* Tool for generating the mask css from SVG: https://yoksel.github.io/url-encoder/ */
2203
2203
  :host {
2204
2204
  display: block;
2205
2205
  }
@@ -2481,7 +2481,7 @@ Minimum version required to store current data is: `+f+`.
2481
2481
  -webkit-mask-position: center center;
2482
2482
  mask-position: center center;
2483
2483
  background-color: black;
2484
- }`,q7=class{constructor(e){Ri(this,e),this.iconName=void 0}render(){return ke(co,{class:`icon-${this.iconName.toLowerCase()}`})}};q7.style=iue;const rue=Object.freeze(Object.defineProperty({__proto__:null,mi_distance:nue,mi_icon:q7},Symbol.toStringTag,{value:"Module"})),oue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown_item:class{constructor(e){Ri(this,e),this.selected=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),sue=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}mi-dropdown-item{display:none}:host{display:inline-block;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:Figtree, -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"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg.arrow{transform:rotate(180deg)}.button{display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);padding:0;padding-left:16px;padding-right:16px;border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem}.button__left-icon{height:20px;width:20px;margin-right:8px}.button svg{margin-left:auto}.button__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.button__label--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.button:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .filter{margin-bottom:16px;padding-left:8px;padding-right:8px;display:flex;position:relative}.content .filter__input{width:100%}.content .filter__clear{width:20px;height:20px;padding:0;border-width:0;display:flex;align-items:center;justify-content:center;position:absolute;right:14px;top:50%;transform:translateY(-50%);background-color:#1f2937;border-radius:50%}.content .filter__clear:focus{outline:0}.content .filter__clear--hidden{opacity:0;pointer-events:none}.content .filter__clear svg{fill:#fcfcfc;width:10px;height:10px}.content .options{margin-bottom:16px;padding-left:16px;padding-right:16px}.content .options__item{padding:0;color:#3b82f6;font-size:0.75rem;font-weight:500;font-family:inherit;background-color:transparent;border:transparent}.content .options__item:hover{text-decoration:underline}.content .options__item:first-child{margin-right:16px}.content .options__item:disabled{color:rgba(48, 113, 217, 0.72);cursor:not-allowed;text-decoration:none}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var lc;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(lc||(lc={}));const K7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isClearButtonVisible=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.label=void 0,this.filterable=!1,this.multiple=!1,this.selected=[],this.noResultsMessage="No results found",this.iconSrc=void 0,this.iconAlt=void 0,this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="mi-dropdown-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.multiple){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}focusOutEventHandler(e){const t=e.relatedTarget;(!t||!this.hostElement.contains(t))&&(this.open=!1)}checkForClickOutside(e){this.hostElement.contains(e.target)||(this.open=!1)}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver((t,r)=>{t.forEach(s=>{s.isIntersecting===!0&&this.filterElement.focus()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===lc.ArrowDown||t.key===lc.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.multiple||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("mi-dropdown-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.multiple){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===lc.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.multiple)switch(e.key){case lc.ArrowDown:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===lc.Esc&&(this.multiple||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}selectAll(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!0;this.onChangedHandler()}selectNone(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!1;this.onChangedHandler()}onSelect(e){this.multiple||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.multiple&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.isClearButtonVisible=!1,this.currentItems=[...this.items];this.isClearButtonVisible=!0;const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){this.filterElement&&(this.filterElement.value="",this.filterElement.focus(),this.currentItems=this.items),this.isClearButtonVisible=!1}render(){const e=this.filterable?this.renderFiltering():null,t=this.multiple?this.renderMultipleOptions():null,r=this.iconSrc?this.renderLeftSideIcon():null,s=ke("ul",{class:"list"},this.currentItems.map((u,f)=>this.renderListItem(u,f,!!t)));return ke(co,{class:{open:this.open}},ke("button",{part:"button",class:"button",disabled:this.disabled||this.items.length===0,onClick:()=>this.toggleContentWindow()},r,this.renderButtonLabel(),ke("svg",{class:"arrow",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"}))),ke("section",{ref:u=>this.listElement=u,part:"dropdown-container",class:"content"},e,t,this.currentItems.length===0?this.renderNoResultsTemplate():s))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderButtonLabel(){var e,t,r,s;return this.multiple?ke("div",{part:"button-label",class:"button__label"},this.label):!((t=(e=this.selected)===null||e===void 0?void 0:e[0])===null||t===void 0)&&t.text?ke("div",{part:"button-label",class:"button__label"},this.selected[0].text):!((s=(r=this.selected)===null||r===void 0?void 0:r[0])===null||s===void 0)&&s.innerHTML?ke("div",{part:"button-label",class:"button__label button__label--from-inner-html",innerHTML:this.selected[0].innerHTML}):ke("div",{part:"button-label",class:"button__label"})}renderLeftSideIcon(){return ke("img",{part:"button-icon",class:"button__left-icon",src:this.iconSrc,alt:this.iconAlt?this.iconAlt:""})}renderFiltering(){return ke("div",{class:"filter"},ke("input",{type:"text",class:"mi-input filter__input",placeholder:"Type to filter",ref:e=>this.filterElement=e,onInput:()=>{this.filter()},tabIndex:this.open?0:-1}),ke("button",{ref:e=>this.clearButtonElement=e,tabindex:this.isClearButtonVisible?0:-1,type:"button",onClick:()=>this.clearFilter(),class:`filter__clear ${this.isClearButtonVisible===!1?"filter__clear--hidden":""}`,"aria-label":"Clear"},ke("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"}))))}renderMultipleOptions(){return ke("div",{class:"options"},ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectAll()},"Select all"),ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectNone()},"Select none"))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};K7.style=sue;const aue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown:K7},Symbol.toStringTag,{value:"Module"})),lue='.mi-floor-selector{width:-moz-min-content;width:min-content;display:flex;align-items:flex-start;position:relative;margin:10px;overflow:hidden;animation-duration:0.15s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:auto;border-radius:56px;border-width:1px;font-family:Figtree, -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";font-size:0.875rem;border-color:#e5e7eb;border-style:solid;background-color:#fcfcfc}.mi-floor-selector--hidden{display:none}.mi-floor-selector__button{position:absolute;z-index:4;top:4px;right:4px;left:4px;background-position:center;background-repeat:no-repeat;border-width:1px;background-color:#f9fafb;border-color:#e5e7eb;border-style:solid;border-radius:50%;width:40px;height:40px}.mi-floor-selector__button:hover{background-color:#f3f4f6}.mi-floor-selector__button--open{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMTUwNDUgNi4wODk5OEM3LjEzODUgNi4wNzg3NiA3LjEyODk3IDYuMDY1MjEgNy4xMjI0NSA2LjA1MDE2QzcuMTE1OTQgNi4wMzUxMSA3LjExMjU3IDYuMDE4ODggNy4xMTI1NyA2LjAwMjQ4QzcuMTEyNTcgNS45ODYwOCA3LjExNTk0IDUuOTY5ODYgNy4xMjI0NSA1Ljk1NDgxQzcuMTI4OTcgNS45Mzk3NiA3LjEzODUgNS45MjYyIDcuMTUwNDUgNS45MTQ5OEwxMS43ODA1IDEuMjc5OThDMTEuODUwNiAxLjIxMDY5IDExLjkwNjMgMS4xMjgxNiAxMS45NDQzIDEuMDM3MThDMTEuOTgyMyAwLjk0NjIwMSAxMi4wMDE5IDAuODQ4NTgyIDEyLjAwMTkgMC43NDk5ODJDMTIuMDAxOSAwLjY1MTM4MiAxMS45ODIzIDAuNTUzNzYzIDExLjk0NDMgMC40NjI3ODRDMTEuOTA2MyAwLjM3MTgwNSAxMS44NTA2IDAuMjg5Mjc2IDExLjc4MDUgMC4yMTk5ODJDMTEuNjM5MiAwLjA4MDc0MTkgMTEuNDQ4OCAwLjAwMjY4NTU1IDExLjI1MDUgMC4wMDI2ODU1NUMxMS4wNTIxIDAuMDAyNjg1NTUgMTAuODYxNyAwLjA4MDc0MTkgMTAuNzIwNSAwLjIxOTk4Mkw2LjA5MDQ1IDQuODQ5OThDNi4wNzg3OSA0Ljg2MjA4IDYuMDY0ODEgNC44NzE3IDYuMDQ5MzUgNC44NzgyN0M2LjAzMzg5IDQuODg0ODUgNi4wMTcyNiA0Ljg4ODI0IDYuMDAwNDUgNC44ODgyNEM1Ljk4MzY1IDQuODg4MjQgNS45NjcwMiA0Ljg4NDg1IDUuOTUxNTYgNC44NzgyN0M1LjkzNjA5IDQuODcxNyA1LjkyMjExIDQuODYyMDggNS45MTA0NSA0Ljg0OTk4TDEuMjgwNDUgMC4yMTk5ODJDMS4xMzkxOSAwLjA4MDc0MTkgMC45NDg4MDUgMC4wMDI2ODU1NSAwLjc1MDQ1NCAwLjAwMjY4NTU1QzAuNTUyMTAyIDAuMDAyNjg1NTUgMC4zNjE3MTggMC4wODA3NDE5IDAuMjIwNDU0IDAuMjE5OTgyQzAuMTUwMzA5IDAuMjg5Mjc2IDAuMDk0NjE2OSAwLjM3MTgwNSAwLjA1NjYwNjQgMC40NjI3ODRDMC4wMTg1OTYgMC41NTM3NjMgLTAuMDAwOTc2NTYyIDAuNjUxMzgyIC0wLjAwMDk3NjU2MiAwLjc0OTk4MkMtMC4wMDA5NzY1NjIgMC44NDg1ODIgMC4wMTg1OTYgMC45NDYyMDEgMC4wNTY2MDY0IDEuMDM3MThDMC4wOTQ2MTY5IDEuMTI4MTYgMC4xNTAzMDkgMS4yMTA2OSAwLjIyMDQ1NCAxLjI3OTk4TDQuODUwNDUgNS45MTQ5OEM0Ljg2MjQxIDUuOTI2MiA0Ljg3MTk0IDUuOTM5NzYgNC44Nzg0NiA1Ljk1NDgxQzQuODg0OTcgNS45Njk4NiA0Ljg4ODMzIDUuOTg2MDggNC44ODgzMyA2LjAwMjQ4QzQuODg4MzMgNi4wMTg4OCA0Ljg4NDk3IDYuMDM1MTEgNC44Nzg0NiA2LjA1MDE2QzQuODcxOTQgNi4wNjUyMSA0Ljg2MjQxIDYuMDc4NzYgNC44NTA0NSA2LjA4OTk4TDAuMjIwNDU0IDEwLjcyQzAuMTUwMzA5IDEwLjc4OTMgMC4wOTQ2MTY5IDEwLjg3MTggMC4wNTY2MDY0IDEwLjk2MjhDMC4wMTg1OTYgMTEuMDUzOCAtMC4wMDA5NzY1NjIgMTEuMTUxNCAtMC4wMDA5NzY1NjIgMTEuMjVDLTAuMDAwOTc2NTYyIDExLjM0ODYgMC4wMTg1OTYgMTEuNDQ2MiAwLjA1NjYwNjQgMTEuNTM3MkMwLjA5NDYxNjkgMTEuNjI4MiAwLjE1MDMwOSAxMS43MTA3IDAuMjIwNDU0IDExLjc4QzAuMzYxNzE4IDExLjkxOTIgMC41NTIxMDIgMTEuOTk3MyAwLjc1MDQ1NCAxMS45OTczQzAuOTQ4ODA1IDExLjk5NzMgMS4xMzkxOSAxMS45MTkyIDEuMjgwNDUgMTEuNzhMNS45MTA0NSA3LjE0OTk4QzUuOTIyMTEgNy4xMzc4OCA1LjkzNjA5IDcuMTI4MjYgNS45NTE1NiA3LjEyMTY5QzUuOTY3MDIgNy4xMTUxMiA1Ljk4MzY1IDcuMTExNzMgNi4wMDA0NSA3LjExMTczQzYuMDE3MjYgNy4xMTE3MyA2LjAzMzg5IDcuMTE1MTIgNi4wNDkzNSA3LjEyMTY5QzYuMDY0ODEgNy4xMjgyNiA2LjA3ODc5IDcuMTM3ODggNi4wOTA0NSA3LjE0OTk4TDEwLjcyMDUgMTEuNzhDMTAuODYxNyAxMS45MTkyIDExLjA1MjEgMTEuOTk3MyAxMS4yNTA1IDExLjk5NzNDMTEuNDQ4OCAxMS45OTczIDExLjYzOTIgMTEuOTE5MiAxMS43ODA1IDExLjc4QzExLjg1MDYgMTEuNzEwNyAxMS45MDYzIDExLjYyODIgMTEuOTQ0MyAxMS41MzcyQzExLjk4MjMgMTEuNDQ2MiAxMi4wMDE5IDExLjM0ODYgMTIuMDAxOSAxMS4yNUMxMi4wMDE5IDExLjE1MTQgMTEuOTgyMyAxMS4wNTM4IDExLjk0NDMgMTAuOTYyOEMxMS45MDYzIDEwLjg3MTggMTEuODUwNiAxMC43ODkzIDExLjc4MDUgMTAuNzJMNy4xNTA0NSA2LjA4OTk4WiIgZmlsbD0iIzcwNzA3MCIvPgo8L3N2Zz4K)}.mi-floor-selector__button--open+.mi-floor-selector__list{max-height:300px;overflow:auto;flex-wrap:unset}.mi-floor-selector__button--closed{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuOTY3Mzc0IDYuMTY2NjRMOS4wMDA3MSA5LjY1ODMxQzkuMzE2MTIgOS43OTU5NiA5LjY1NjU2IDkuODY3MDIgMTAuMDAwNyA5Ljg2NzAyQzEwLjM0NDkgOS44NjcwMiAxMC42ODUzIDkuNzk1OTYgMTEuMDAwNyA5LjY1ODMxTDE5LjA0MjQgNi4xNjY2NEMxOS4yNjczIDYuMDY2MTcgMTkuNDU4IDUuOTAyMjkgMTkuNTkxMiA1LjY5NTA4QzE5LjcyNDUgNS40ODc4NiAxOS43OTQzIDUuMjQ2MyAxOS43OTI0IDQuOTk5OTdDMTkuNzkzMSA0Ljc1NjAxIDE5LjcyMTQgNC41MTczMiAxOS41ODY0IDQuMzE0MUMxOS40NTE0IDQuMTEwODggMTkuMjU5MiAzLjk1MjI2IDE5LjAzNCAzLjg1ODMxTDExLjAwMDcgMC4zNzQ5NzJDMTAuNjg1MyAwLjIzNzMxNCAxMC4zNDQ5IDAuMTY2MjYgMTAuMDAwNyAwLjE2NjI2QzkuNjU2NTYgMC4xNjYyNiA5LjMxNjEyIDAuMjM3MzE0IDkuMDAwNzEgMC4zNzQ5NzJMMC45NjczNzQgMy44NzQ5N0MwLjc0NDgzNiAzLjk2NzgzIDAuNTU0Mzk4IDQuMTIzODggMC40MTk2MTggNC4zMjM4M0MwLjI4NDgzNyA0LjUyMzc4IDAuMjExNjI2IDQuNzU4ODUgMC4yMDkwNDEgNC45OTk5N0MwLjIwNjY5OCA1LjI0NzQ2IDAuMjc3MzkxIDUuNDkwMTUgMC40MTIyNzYgNS42OTc2NkMwLjU0NzE2MSA1LjkwNTE4IDAuNzQwMjQ3IDYuMDY4MzEgMC45NjczNzQgNi4xNjY2NFoiIGZpbGw9IiM3MDcwNzAiLz4KPHBhdGggZD0iTTE5LjAzMzYgOC44NzQ5MUwxOC4wMDAzIDguNDI0OTFDMTcuODk5MiA4LjM3NDE5IDE3Ljc4ODggOC4zNDQ2IDE3LjY3NTkgOC4zMzc5NEMxNy41NjI5IDguMzMxMjcgMTcuNDQ5OCA4LjM0NzY3IDE3LjM0MzQgOC4zODYxNEMxNy4yMzcgOC40MjQ2IDE3LjEzOTYgOC40ODQzMyAxNy4wNTcgOC41NjE2N0MxNi45NzQ1IDguNjM5MDIgMTYuOTA4NSA4LjczMjM3IDE2Ljg2MzIgOC44MzYwM0MxNi44MTc5IDguOTM5NjkgMTYuNzk0MSA5LjA1MTQ5IDE2Ljc5MzQgOS4xNjQ2MkMxNi43OTI3IDkuMjc3NzUgMTYuODE1MSA5LjM4OTgzIDE2Ljg1OTEgOS40OTQwNUMxNi45MDMxIDkuNTk4MjcgMTYuOTY3OSA5LjY5MjQzIDE3LjA0OTUgOS43NzA4MUMxNy4xMzExIDkuODQ5MTggMTcuMjI3NyA5LjkxMDEyIDE3LjMzMzYgOS45NDk5MUwxNy41MDAzIDkuOTk5OTFMMTAuMzMzNiAxMy4xMzMyQzEwLjIyODUgMTMuMTc5MSAxMC4xMTUgMTMuMjAyOCAxMC4wMDAzIDEzLjIwMjhDOS44ODU2IDEzLjIwMjggOS43NzIxMiAxMy4xNzkxIDkuNjY2OTggMTMuMTMzMkwyLjUwMDMxIDkuOTk5OTFMMi42NTg2NSA5LjkzMzI0QzIuNzY0NTUgOS44OTM0NSAyLjg2MTI0IDkuODMyNTEgMi45NDI4MyA5Ljc1NDE0QzMuMDI0NDIgOS42NzU3NyAzLjA4OTE5IDkuNTgxNiAzLjEzMzIxIDkuNDc3MzlDMy4xNzcyMiA5LjM3MzE3IDMuMTk5NTYgOS4yNjEwOCAzLjE5ODg1IDkuMTQ3OTVDMy4xOTgxNSA5LjAzNDgyIDMuMTc0NDEgOC45MjMwMiAzLjEyOTEgOC44MTkzNkMzLjA4Mzc4IDguNzE1NyAzLjAxNzgzIDguNjIyMzUgMi45MzUyNyA4LjU0NTAxQzIuODUyNzEgOC40Njc2NiAyLjc1NTI3IDguNDA3OTQgMi42NDg4NyA4LjM2OTQ3QzIuNTQyNDggOC4zMzEwMSAyLjQyOTM3IDguMzE0NjEgMi4zMTY0NCA4LjMyMTI3QzIuMjAzNSA4LjMyNzk0IDIuMDkzMTEgOC4zNTc1MyAxLjk5MTk4IDguNDA4MjRMMC45NTg2NDcgOC44NTgyNEMwLjczMjU2MSA4Ljk1MjYyIDAuNTM5NDQ5IDkuMTExNzggMC40MDM2MTkgOS4zMTU2N0MwLjI2Nzc4OSA5LjUxOTU2IDAuMTk1MzEzIDkuNzU5MDggMC4xOTUzMTIgMTAuMDA0MUMwLjE5NTMxMyAxMC4yNDkxIDAuMjY3Nzg5IDEwLjQ4ODYgMC40MDM2MTkgMTAuNjkyNUMwLjUzOTQ0OSAxMC44OTY0IDAuNzMyNTYxIDExLjA1NTUgMC45NTg2NDcgMTEuMTQ5OUw4Ljk5MTk4IDE0LjY0MTZDOS4zMDczOSAxNC43NzkyIDkuNjQ3ODMgMTQuODUwMyA5Ljk5MTk4IDE0Ljg1MDNDMTAuMzM2MSAxNC44NTAzIDEwLjY3NjYgMTQuNzc5MiAxMC45OTIgMTQuNjQxNkwxOS4wMjUzIDExLjE0OTlDMTkuMjUxNCAxMS4wNTQgMTkuNDQ0NCAxMC44OTM5IDE5LjU4MDcgMTAuNjg5NkMxOS43MTY5IDEwLjQ4NTIgMTkuNzkwNCAxMC4yNDU1IDE5Ljc5MiA5Ljk5OTkxQzE5Ljc4OTQgOS43NTg3OSAxOS43MTYyIDkuNTIzNzEgMTkuNTgxNCA5LjMyMzc3QzE5LjQ0NjYgOS4xMjM4MiAxOS4yNTYyIDguOTY3NzYgMTkuMDMzNiA4Ljg3NDkxWiIgZmlsbD0iIzcwNzA3MCIvPgo8cGF0aCBkPSJNMTkuMDM0IDEzLjgzMzRMMTguMDAwNyAxMy4zODM0QzE3LjkgMTMuMzM5MyAxNy43OTE3IDEzLjMxNTUgMTcuNjgxOCAxMy4zMTM0QzE3LjU3MTkgMTMuMzExMyAxNy40NjI3IDEzLjMzMSAxNy4zNjA1IDEzLjM3MTJDMTcuMjU4MyAxMy40MTE1IDE3LjE2NSAxMy40NzE2IDE3LjA4NjEgMTMuNTQ4MUMxNy4wMDcyIDEzLjYyNDUgMTYuOTQ0MSAxMy43MTU4IDE2LjkwMDcgMTMuODE2N0MxNi44MTQxIDE0LjAxOTEgMTYuODExMSAxNC4yNDc0IDE2Ljg5MjMgMTQuNDUxOUMxNi45NzM1IDE0LjY1NjQgMTcuMTMyMyAxNC44MjA1IDE3LjMzNCAxNC45MDg0TDE3LjUwMDcgMTUuMDAwMUwxMC4zMzQgMTguMDkxN0MxMC4yMjg5IDE4LjEzNzYgMTAuMTE1NCAxOC4xNjEzIDEwLjAwMDcgMTguMTYxM0M5Ljg4NTk0IDE4LjE2MTMgOS43NzI0NiAxOC4xMzc2IDkuNjY3MzIgMTguMDkxN0wyLjUwMDY2IDE1LjAwMDFMMi42NTg5OSAxNC45MjUxQzIuODYwNzEgMTQuODM3MiAzLjAxOTQ5IDE0LjY3MzEgMy4xMDA2NyAxNC40Njg2QzMuMTgxODUgMTQuMjY0IDMuMTc4ODUgMTQuMDM1NyAzLjA5MjMyIDEzLjgzMzRDMy4wNDg4MyAxMy43MzI1IDIuOTg1ODEgMTMuNjQxMiAyLjkwNjg5IDEzLjU2NDdDMi44Mjc5NyAxMy40ODgzIDIuNzM0NzEgMTMuNDI4MiAyLjYzMjQ4IDEzLjM4NzlDMi41MzAyNCAxMy4zNDc2IDIuNDIxMDUgMTMuMzI4IDIuMzExMTggMTMuMzMwMUMyLjIwMTMyIDEzLjMzMjEgMi4wOTI5NSAxMy4zNTU5IDEuOTkyMzIgMTMuNDAwMUwwLjk1ODk4OSAxMy44NTAxQzAuNzM2MDMzIDEzLjk0ODUgMC41NDY0NyAxNC4xMDk2IDAuNDEzMzI5IDE0LjMxMzhDMC4yODAxODggMTQuNTE3OSAwLjIwOTIgMTQuNzU2MyAwLjIwODk4OSAxNS4wMDAxQzAuMjA4MzAzIDE1LjI0NCAwLjI3OTk4NSAxNS40ODI3IDAuNDE0OTcgMTUuNjg1OUMwLjU0OTk1NSAxNS44ODkyIDAuNzQyMTc3IDE2LjA0NzggMC45NjczMjMgMTYuMTQxN0w5LjAwMDY2IDE5LjY0MTdDOS4zMTYwNyAxOS43Nzk0IDkuNjU2NTEgMTkuODUwNSAxMC4wMDA3IDE5Ljg1MDVDMTAuMzQ0OCAxOS44NTA1IDEwLjY4NTIgMTkuNzc5NCAxMS4wMDA3IDE5LjY0MTdMMTkuMDM0IDE2LjE0MTdDMTkuMjU5MSAxNi4wNDc4IDE5LjQ1MTQgMTUuODg5MiAxOS41ODYzIDE1LjY4NTlDMTkuNzIxMyAxNS40ODI3IDE5Ljc5MyAxNS4yNDQgMTkuNzkyMyAxNS4wMDAxQzE5Ljc5NDcgMTQuNzUyNiAxOS43MjQgMTQuNTA5OSAxOS41ODkxIDE0LjMwMjRDMTkuNDU0MiAxNC4wOTQ5IDE5LjI2MTEgMTMuOTMxNyAxOS4wMzQgMTMuODMzNFoiIGZpbGw9IiM3MDcwNzAiLz4KPC9zdmc+Cg==)}.mi-floor-selector__button span{position:none}.mi-floor-selector__list{box-sizing:unset;display:flex;flex-direction:column;gap:4px;overflow-y:hidden;transition:max-height 0.25s;scroll-behavior:smooth;z-index:0;border-radius:9999px;padding:4px;padding-top:48px;max-height:40px}.mi-floor-selector__list::before,.mi-floor-selector__list::after{content:"";height:100%;position:absolute;pointer-events:none;z-index:3;left:-1px;right:-1px;transition:opacity 0.1s;opacity:0}.mi-floor-selector__list--fade-top::before{opacity:1;top:-1px;background:linear-gradient(180deg, white 39px, rgba(255, 255, 255, 0) 86px)}.mi-floor-selector__list--fade-bottom::after{opacity:1;bottom:-1px;background:linear-gradient(0deg, white 4px, rgba(255, 255, 255, 0) 40px)}.mi-floor-selector__list::-webkit-scrollbar{width:4px}.mi-floor-selector__list::-webkit-scrollbar-track{background:none}.mi-floor-selector__list::-webkit-scrollbar-thumb{background:#8D98AA;border-radius:5px}.mi-floor-selector__floor{position:relative;order:1;flex-shrink:0;margin-top:-1px;z-index:0;float:none;text-align:center;background:none;transition:translateY 0.25s;transform:translateY(0px);color:#666666;border-radius:50%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-style:none;width:40px;height:40px}.mi-floor-selector__floor:hover{z-index:2;background-color:#d1d5db}.mi-floor-selector__floor--active{z-index:2;transform:translateY(0px);color:#fcfcfc}.mi-floor-selector__floor-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:4px;padding-right:4px}',X7=class{constructor(e){Ri(this,e),this.maxListHeight=300,this.mapsindoors=void 0,this.primaryColor="#005655",this.floors=new Array,this.currentFloor=void 0,this.floorSelectorClosed=!0,this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1}scrollToSelectedFloor(){const e=this.floorSelectorElement.clientHeight,t=this.floorListElement.scrollHeight,r=this.currentFloorElement.offsetTop,s=this.currentFloorElement.offsetHeight;let u;t>e?(u=r-e/2+s/2,u=Math.max(0,u),u=Math.min(u,t-e)):u=0,this.floorListElement.scrollTop=u}animateTranslateY(e,t,r){const s=[{transform:`translateY(${t}px)`}];e.animate(s,{duration:r,fill:"forwards"})}animateFloorSelector(){const e=this.el.querySelectorAll(".mi-floor-selector__floor"),t=[];for(let r=0;r<e.length&&e[r].getAttribute("data-floor")!==this.currentFloor;r++)t.push(e[r]);if(this.floorSelectorClosed){const r=this.floorListElement.scrollTop,s=parseInt(window.getComputedStyle(this.floorListElement).getPropertyValue("padding-top")),f=-(this.currentFloorElement.offsetTop-this.floorListElement.offsetTop-r-s);this.animateTranslateY(this.currentFloorElement,f,250),this.floorListElement.scrollTop>0?e.forEach(m=>{m.getAttribute("data-floor")!==this.currentFloor&&(t.indexOf(m)>-1?this.animateTranslateY(m,m.offsetTop+this.floorListElement.scrollTop,250):this.animateTranslateY(m,this.floorListElement.scrollTop,250))}):t.forEach(m=>{this.animateTranslateY(m,m.offsetTop,250)})}else this.animateTranslateY(this.currentFloorElement,0,250),e.forEach(r=>{r.getAttribute("data-floor")!==this.currentFloor&&this.animateTranslateY(r,0,250)})}onToggleFloorSelector(){this.floorSelectorClosed=!this.floorSelectorClosed,this.animateFloorSelector(),this.floorListElement.addEventListener("transitionend",()=>{this.floorSelectorClosed||this.scrollToSelectedFloor(),this.onScrollStyle()},{once:!0})}onScrollStyle(){const e=this.floorListElement.scrollHeight-this.floorListElement.clientHeight;if(this.floorSelectorClosed){this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1;return}this.maxListHeight>this.floorListElement.clientHeight-48||(this.fadeFloorSelectorOnTop=this.floorListElement.scrollTop>0,this.fadeFloorSelectorOnBottom=this.floorListElement.scrollTop!==e)}onSelectFloor(e,t){this.mapsindoors.setFloor(t),this.currentFloor=this.mapsindoors.getFloor().toString(),this.currentFloorElement=e.currentTarget}connectedCallback(){this.mapsindoors.addListener("building_changed",()=>{this.floors=[];const e=this.mapsindoors.getBuilding();if(e){const t=()=>{this.currentFloor=this.mapsindoors.getFloor().toString(),this.mapsindoors.removeListener("floor_changed",t)};this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.mapsindoors.addListener("floor_changed",t):this.currentFloor=this.mapsindoors.getFloor().toString(),Object.keys(e.floors).sort((r,s)=>s-r).forEach(r=>{e.floors[r].index=r,this.floors.push(e.floors[r])})}}),this.mapsindoors.addListener("floor_changed",()=>{this.currentFloor=this.mapsindoors.getFloor().toString()})}componentDidRender(){!this.mapsindoors.getBuilding()||this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.floorSelectorElement.classList.add("mi-floor-selector--hidden"):this.floorSelectorElement.classList.remove("mi-floor-selector--hidden"),this.currentFloorElement=this.el.querySelector(".mi-floor-selector__floor--active"),this.currentFloorElement&&this.currentFloor&&this.animateFloorSelector()}render(){return ke(co,null,ke("div",{class:"mi-floor-selector",ref:e=>this.floorSelectorElement=e},ke("button",{class:`mi-floor-selector__button mi-floor-selector__button--${this.floorSelectorClosed?"closed":"open"}`,onClick:()=>this.onToggleFloorSelector()}),ke("div",{class:`mi-floor-selector__list ${this.fadeFloorSelectorOnTop?"mi-floor-selector__list--fade-top":""} ${this.fadeFloorSelectorOnBottom?"mi-floor-selector__list--fade-bottom":""}`,ref:e=>this.floorListElement=e,onScroll:()=>this.onScrollStyle()},this.floors.map(e=>ke("button",{"data-floor":e.index,style:this.currentFloor===e.index?{backgroundColor:this.primaryColor}:{},class:`mi-floor-selector__floor ${this.currentFloor===e.index?"mi-floor-selector__floor--active":""}`,onClick:t=>this.onSelectFloor(t,e.index)},ke("span",null,e.name))))))}get el(){return rc(this)}};X7.style=lue;const cue=Object.freeze(Object.defineProperty({__proto__:null,mi_floor_selector:X7},Symbol.toStringTag,{value:"Module"}));var uue=c0(function(e,t){/*!
2484
+ }`,q7=class{constructor(e){Ri(this,e),this.iconName=void 0}render(){return ke(co,{class:`icon-${this.iconName.toLowerCase()}`})}};q7.style=iue;const rue=Object.freeze(Object.defineProperty({__proto__:null,mi_distance:nue,mi_icon:q7},Symbol.toStringTag,{value:"Module"})),oue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown_item:class{constructor(e){Ri(this,e),this.selected=!1,this.disabled=!1,this.excludefromall=!1,this.value=void 0,this.text=void 0}get el(){return rc(this)}}},Symbol.toStringTag,{value:"Module"})),sue=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}mi-dropdown-item{display:none}:host{display:inline-block;position:relative;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-family:Figtree, -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"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg.arrow{transform:rotate(180deg)}.button{display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);padding:0;padding-left:16px;padding-right:16px;border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem}.button__left-icon{height:20px;width:20px;margin-right:8px}.button svg{margin-left:auto}.button__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.button__label--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.button:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .filter{margin-bottom:16px;padding-left:8px;padding-right:8px;display:flex;position:relative}.content .filter__input{width:100%}.content .filter__clear{width:20px;height:20px;padding:0;border-width:0;display:flex;align-items:center;justify-content:center;position:absolute;right:14px;top:50%;transform:translateY(-50%);background-color:#1f2937;border-radius:50%}.content .filter__clear:focus{outline:0}.content .filter__clear--hidden{opacity:0;pointer-events:none}.content .filter__clear svg{fill:#fcfcfc;width:10px;height:10px}.content .options{margin-bottom:16px;padding-left:16px;padding-right:16px}.content .options__item{padding:0;color:#3b82f6;font-size:0.75rem;font-weight:500;font-family:inherit;background-color:transparent;border:transparent}.content .options__item:hover{text-decoration:underline}.content .options__item:first-child{margin-right:16px}.content .options__item:disabled{color:rgba(48, 113, 217, 0.72);cursor:not-allowed;text-decoration:none}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:grid;grid-auto-flow:column;grid-template-columns:24px 1fr;gap:8px;place-items:center}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var lc;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(lc||(lc={}));const K7=class{constructor(e){Ri(this,e),this.change=pr(this,"change",3),this.isFilterSelectionDisabled=!1,this.isClearButtonVisible=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.label=void 0,this.filterable=!1,this.multiple=!1,this.selected=[],this.noResultsMessage="No results found",this.iconSrc=void 0,this.iconAlt=void 0,this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(t=>t.tagName.toLowerCase()!=="mi-dropdown-item"))throw new Error("Items contains unknown element(s).");if(Object.values(ap).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.multiple){const t=this.currentItems.findIndex(r=>r.selected);this.currentItemIndex=t>-1?t:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((t,r)=>{t.dataset.index=r.toString(),t.dataset.excludefromall=`${t.excludefromall}`}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}focusOutEventHandler(e){const t=e.relatedTarget;(!t||!this.hostElement.contains(t))&&(this.open=!1)}checkForClickOutside(e){this.hostElement.contains(e.target)||(this.open=!1)}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const t=e.target;(!t||!this.hostElement.contains(t))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver((t,r)=>{t.forEach(s=>{s.isIntersecting===!0&&this.filterElement.focus()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",t=>{(t.key===lc.ArrowDown||t.key===lc.ArrowUp)&&t.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.multiple||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("mi-dropdown-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.multiple){const t=(e=this.items)===null||e===void 0?void 0:e.findIndex(r=>r.selected);this.selected=[this.items[t>-1?t:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===lc.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.multiple)switch(e.key){case lc.ArrowDown:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case lc.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===lc.Esc&&(this.multiple||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,t=!1){var r,s;const u=this.hostElement.shadowRoot.querySelectorAll(".list__item");u.forEach(f=>{f.classList.remove(this.highlightedItemClassName)}),(r=u[e])===null||r===void 0||r.classList.add(this.highlightedItemClassName),t&&((s=u[e])===null||s===void 0||s.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===ap.Asc?e.sort((t,r)=>(t.text||t.innerText).trimStart().toLowerCase().localeCompare((r.text||r.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((t,r)=>(r.text||r.innerText).trimStart().toLowerCase().localeCompare((t.text||t.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}selectAll(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!(`${t.dataset.excludefromall}`=="true"||t.disabled);this.onChangedHandler()}selectNone(){const e=Array.from(this.currentItems);for(const t of e)t.selected=!1;this.onChangedHandler()}onSelect(e){this.multiple||(this.open=!1,Array.from(this.items).forEach(r=>{r.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.multiple&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,t=this.items.map(m=>m.text||m.innerText),r=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.isClearButtonVisible=!1,this.currentItems=[...this.items];this.isClearButtonVisible=!0;const s={limit:50,allowTypo:!1,threshold:-1e4},f=Y7.go(e,t,s).map(m=>this.items.find(a=>(a.text||a.innerText)===m.target));this.currentItems=f,r!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){this.filterElement&&(this.filterElement.value="",this.filterElement.focus(),this.currentItems=this.items),this.isClearButtonVisible=!1}render(){const e=this.filterable?this.renderFiltering():null,t=this.multiple?this.renderMultipleOptions():null,r=this.iconSrc?this.renderLeftSideIcon():null,s=ke("ul",{class:"list"},this.currentItems.map((u,f)=>this.renderListItem(u,f,!!t)));return ke(co,{class:{open:this.open}},ke("button",{part:"button",class:"button",disabled:this.disabled||this.items.length===0,onClick:()=>this.toggleContentWindow()},r,this.renderButtonLabel(),ke("svg",{class:"arrow",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"}))),ke("section",{ref:u=>this.listElement=u,part:"dropdown-container",class:"content"},e,t,this.currentItems.length===0?this.renderNoResultsTemplate():s))}renderNoResultsTemplate(){return ke("div",{class:"empty-page"},ke("p",{class:"empty-page__header"},this.noResultsMessage))}renderButtonLabel(){var e,t,r,s;return this.multiple?ke("div",{part:"button-label",class:"button__label"},this.label):!((t=(e=this.selected)===null||e===void 0?void 0:e[0])===null||t===void 0)&&t.text?ke("div",{part:"button-label",class:"button__label"},this.selected[0].text):!((s=(r=this.selected)===null||r===void 0?void 0:r[0])===null||s===void 0)&&s.innerHTML?ke("div",{part:"button-label",class:"button__label button__label--from-inner-html",innerHTML:this.selected[0].innerHTML}):ke("div",{part:"button-label",class:"button__label"})}renderLeftSideIcon(){return ke("img",{part:"button-icon",class:"button__left-icon",src:this.iconSrc,alt:this.iconAlt?this.iconAlt:""})}renderFiltering(){return ke("div",{class:"filter"},ke("input",{type:"text",class:"mi-input filter__input",placeholder:"Type to filter",ref:e=>this.filterElement=e,onInput:()=>{this.filter()},tabIndex:this.open?0:-1}),ke("button",{ref:e=>this.clearButtonElement=e,tabindex:this.isClearButtonVisible?0:-1,type:"button",onClick:()=>this.clearFilter(),class:`filter__clear ${this.isClearButtonVisible===!1?"filter__clear--hidden":""}`,"aria-label":"Clear"},ke("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ke("path",{d:"M14 1.41L12.59 0L7 5.59L1.41 0L0 1.41L5.59 7L0 12.59L1.41 14L7 8.41L12.59 14L14 12.59L8.41 7L14 1.41Z"}))))}renderMultipleOptions(){return ke("div",{class:"options"},ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectAll()},"Select all"),ke("button",{class:"options__item",disabled:this.isFilterSelectionDisabled,onClick:()=>this.selectNone()},"Select none"))}renderListItem(e,t,r){let s;const u=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?s=ke("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):s=ke("div",{class:"label__item",innerHTML:e.text}),ke("li",{class:"list__item",title:u,onMouseOver:()=>{this.onMouseOver(t)}},ke("label",{class:"mi-label label",tabindex:"-1"},ke("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!r,"mi-input":!0},type:"checkbox",value:t,checked:e.selected,disabled:e.disabled,"data-excludefromall":e.excludefromall,onChange:()=>this.onSelect(e)}),s))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:t}=document.documentElement,r=this.hostElement.getBoundingClientRect(),s=this.listElement.getBoundingClientRect(),u=t-r.bottom,f=r.top,m=580,a=12;e<=s.width||r.right-s.width<0&&s.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):s.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-r.right}px`):(this.listElement.style.left=`${r.left}px`,this.listElement.style.right="unset"),f>u?(this.listElement.style.maxHeight=`${Math.min(f,m)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${t-r.top}px`):(this.listElement.style.top=`${r.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(u-a*2,m)}px`)}get hostElement(){return rc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};K7.style=sue;const aue=Object.freeze(Object.defineProperty({__proto__:null,mi_dropdown:K7},Symbol.toStringTag,{value:"Module"})),lue='.mi-floor-selector{width:-moz-min-content;width:min-content;display:flex;align-items:flex-start;position:relative;margin:10px;overflow:hidden;animation-duration:0.15s;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:auto;border-radius:56px;border-width:1px;font-family:Figtree, -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";font-size:0.875rem;border-color:#e5e7eb;border-style:solid;background-color:#fcfcfc}.mi-floor-selector--hidden{display:none}.mi-floor-selector__button{position:absolute;z-index:4;top:4px;right:4px;left:4px;background-position:center;background-repeat:no-repeat;border-width:1px;background-color:#f9fafb;border-color:#e5e7eb;border-style:solid;border-radius:50%;width:40px;height:40px}.mi-floor-selector__button:hover{background-color:#f3f4f6}.mi-floor-selector__button--open{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuMTUwNDUgNi4wODk5OEM3LjEzODUgNi4wNzg3NiA3LjEyODk3IDYuMDY1MjEgNy4xMjI0NSA2LjA1MDE2QzcuMTE1OTQgNi4wMzUxMSA3LjExMjU3IDYuMDE4ODggNy4xMTI1NyA2LjAwMjQ4QzcuMTEyNTcgNS45ODYwOCA3LjExNTk0IDUuOTY5ODYgNy4xMjI0NSA1Ljk1NDgxQzcuMTI4OTcgNS45Mzk3NiA3LjEzODUgNS45MjYyIDcuMTUwNDUgNS45MTQ5OEwxMS43ODA1IDEuMjc5OThDMTEuODUwNiAxLjIxMDY5IDExLjkwNjMgMS4xMjgxNiAxMS45NDQzIDEuMDM3MThDMTEuOTgyMyAwLjk0NjIwMSAxMi4wMDE5IDAuODQ4NTgyIDEyLjAwMTkgMC43NDk5ODJDMTIuMDAxOSAwLjY1MTM4MiAxMS45ODIzIDAuNTUzNzYzIDExLjk0NDMgMC40NjI3ODRDMTEuOTA2MyAwLjM3MTgwNSAxMS44NTA2IDAuMjg5Mjc2IDExLjc4MDUgMC4yMTk5ODJDMTEuNjM5MiAwLjA4MDc0MTkgMTEuNDQ4OCAwLjAwMjY4NTU1IDExLjI1MDUgMC4wMDI2ODU1NUMxMS4wNTIxIDAuMDAyNjg1NTUgMTAuODYxNyAwLjA4MDc0MTkgMTAuNzIwNSAwLjIxOTk4Mkw2LjA5MDQ1IDQuODQ5OThDNi4wNzg3OSA0Ljg2MjA4IDYuMDY0ODEgNC44NzE3IDYuMDQ5MzUgNC44NzgyN0M2LjAzMzg5IDQuODg0ODUgNi4wMTcyNiA0Ljg4ODI0IDYuMDAwNDUgNC44ODgyNEM1Ljk4MzY1IDQuODg4MjQgNS45NjcwMiA0Ljg4NDg1IDUuOTUxNTYgNC44NzgyN0M1LjkzNjA5IDQuODcxNyA1LjkyMjExIDQuODYyMDggNS45MTA0NSA0Ljg0OTk4TDEuMjgwNDUgMC4yMTk5ODJDMS4xMzkxOSAwLjA4MDc0MTkgMC45NDg4MDUgMC4wMDI2ODU1NSAwLjc1MDQ1NCAwLjAwMjY4NTU1QzAuNTUyMTAyIDAuMDAyNjg1NTUgMC4zNjE3MTggMC4wODA3NDE5IDAuMjIwNDU0IDAuMjE5OTgyQzAuMTUwMzA5IDAuMjg5Mjc2IDAuMDk0NjE2OSAwLjM3MTgwNSAwLjA1NjYwNjQgMC40NjI3ODRDMC4wMTg1OTYgMC41NTM3NjMgLTAuMDAwOTc2NTYyIDAuNjUxMzgyIC0wLjAwMDk3NjU2MiAwLjc0OTk4MkMtMC4wMDA5NzY1NjIgMC44NDg1ODIgMC4wMTg1OTYgMC45NDYyMDEgMC4wNTY2MDY0IDEuMDM3MThDMC4wOTQ2MTY5IDEuMTI4MTYgMC4xNTAzMDkgMS4yMTA2OSAwLjIyMDQ1NCAxLjI3OTk4TDQuODUwNDUgNS45MTQ5OEM0Ljg2MjQxIDUuOTI2MiA0Ljg3MTk0IDUuOTM5NzYgNC44Nzg0NiA1Ljk1NDgxQzQuODg0OTcgNS45Njk4NiA0Ljg4ODMzIDUuOTg2MDggNC44ODgzMyA2LjAwMjQ4QzQuODg4MzMgNi4wMTg4OCA0Ljg4NDk3IDYuMDM1MTEgNC44Nzg0NiA2LjA1MDE2QzQuODcxOTQgNi4wNjUyMSA0Ljg2MjQxIDYuMDc4NzYgNC44NTA0NSA2LjA4OTk4TDAuMjIwNDU0IDEwLjcyQzAuMTUwMzA5IDEwLjc4OTMgMC4wOTQ2MTY5IDEwLjg3MTggMC4wNTY2MDY0IDEwLjk2MjhDMC4wMTg1OTYgMTEuMDUzOCAtMC4wMDA5NzY1NjIgMTEuMTUxNCAtMC4wMDA5NzY1NjIgMTEuMjVDLTAuMDAwOTc2NTYyIDExLjM0ODYgMC4wMTg1OTYgMTEuNDQ2MiAwLjA1NjYwNjQgMTEuNTM3MkMwLjA5NDYxNjkgMTEuNjI4MiAwLjE1MDMwOSAxMS43MTA3IDAuMjIwNDU0IDExLjc4QzAuMzYxNzE4IDExLjkxOTIgMC41NTIxMDIgMTEuOTk3MyAwLjc1MDQ1NCAxMS45OTczQzAuOTQ4ODA1IDExLjk5NzMgMS4xMzkxOSAxMS45MTkyIDEuMjgwNDUgMTEuNzhMNS45MTA0NSA3LjE0OTk4QzUuOTIyMTEgNy4xMzc4OCA1LjkzNjA5IDcuMTI4MjYgNS45NTE1NiA3LjEyMTY5QzUuOTY3MDIgNy4xMTUxMiA1Ljk4MzY1IDcuMTExNzMgNi4wMDA0NSA3LjExMTczQzYuMDE3MjYgNy4xMTE3MyA2LjAzMzg5IDcuMTE1MTIgNi4wNDkzNSA3LjEyMTY5QzYuMDY0ODEgNy4xMjgyNiA2LjA3ODc5IDcuMTM3ODggNi4wOTA0NSA3LjE0OTk4TDEwLjcyMDUgMTEuNzhDMTAuODYxNyAxMS45MTkyIDExLjA1MjEgMTEuOTk3MyAxMS4yNTA1IDExLjk5NzNDMTEuNDQ4OCAxMS45OTczIDExLjYzOTIgMTEuOTE5MiAxMS43ODA1IDExLjc4QzExLjg1MDYgMTEuNzEwNyAxMS45MDYzIDExLjYyODIgMTEuOTQ0MyAxMS41MzcyQzExLjk4MjMgMTEuNDQ2MiAxMi4wMDE5IDExLjM0ODYgMTIuMDAxOSAxMS4yNUMxMi4wMDE5IDExLjE1MTQgMTEuOTgyMyAxMS4wNTM4IDExLjk0NDMgMTAuOTYyOEMxMS45MDYzIDEwLjg3MTggMTEuODUwNiAxMC43ODkzIDExLjc4MDUgMTAuNzJMNy4xNTA0NSA2LjA4OTk4WiIgZmlsbD0iIzcwNzA3MCIvPgo8L3N2Zz4K)}.mi-floor-selector__button--open+.mi-floor-selector__list{max-height:300px;overflow:auto;flex-wrap:unset}.mi-floor-selector__button--closed{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuOTY3Mzc0IDYuMTY2NjRMOS4wMDA3MSA5LjY1ODMxQzkuMzE2MTIgOS43OTU5NiA5LjY1NjU2IDkuODY3MDIgMTAuMDAwNyA5Ljg2NzAyQzEwLjM0NDkgOS44NjcwMiAxMC42ODUzIDkuNzk1OTYgMTEuMDAwNyA5LjY1ODMxTDE5LjA0MjQgNi4xNjY2NEMxOS4yNjczIDYuMDY2MTcgMTkuNDU4IDUuOTAyMjkgMTkuNTkxMiA1LjY5NTA4QzE5LjcyNDUgNS40ODc4NiAxOS43OTQzIDUuMjQ2MyAxOS43OTI0IDQuOTk5OTdDMTkuNzkzMSA0Ljc1NjAxIDE5LjcyMTQgNC41MTczMiAxOS41ODY0IDQuMzE0MUMxOS40NTE0IDQuMTEwODggMTkuMjU5MiAzLjk1MjI2IDE5LjAzNCAzLjg1ODMxTDExLjAwMDcgMC4zNzQ5NzJDMTAuNjg1MyAwLjIzNzMxNCAxMC4zNDQ5IDAuMTY2MjYgMTAuMDAwNyAwLjE2NjI2QzkuNjU2NTYgMC4xNjYyNiA5LjMxNjEyIDAuMjM3MzE0IDkuMDAwNzEgMC4zNzQ5NzJMMC45NjczNzQgMy44NzQ5N0MwLjc0NDgzNiAzLjk2NzgzIDAuNTU0Mzk4IDQuMTIzODggMC40MTk2MTggNC4zMjM4M0MwLjI4NDgzNyA0LjUyMzc4IDAuMjExNjI2IDQuNzU4ODUgMC4yMDkwNDEgNC45OTk5N0MwLjIwNjY5OCA1LjI0NzQ2IDAuMjc3MzkxIDUuNDkwMTUgMC40MTIyNzYgNS42OTc2NkMwLjU0NzE2MSA1LjkwNTE4IDAuNzQwMjQ3IDYuMDY4MzEgMC45NjczNzQgNi4xNjY2NFoiIGZpbGw9IiM3MDcwNzAiLz4KPHBhdGggZD0iTTE5LjAzMzYgOC44NzQ5MUwxOC4wMDAzIDguNDI0OTFDMTcuODk5MiA4LjM3NDE5IDE3Ljc4ODggOC4zNDQ2IDE3LjY3NTkgOC4zMzc5NEMxNy41NjI5IDguMzMxMjcgMTcuNDQ5OCA4LjM0NzY3IDE3LjM0MzQgOC4zODYxNEMxNy4yMzcgOC40MjQ2IDE3LjEzOTYgOC40ODQzMyAxNy4wNTcgOC41NjE2N0MxNi45NzQ1IDguNjM5MDIgMTYuOTA4NSA4LjczMjM3IDE2Ljg2MzIgOC44MzYwM0MxNi44MTc5IDguOTM5NjkgMTYuNzk0MSA5LjA1MTQ5IDE2Ljc5MzQgOS4xNjQ2MkMxNi43OTI3IDkuMjc3NzUgMTYuODE1MSA5LjM4OTgzIDE2Ljg1OTEgOS40OTQwNUMxNi45MDMxIDkuNTk4MjcgMTYuOTY3OSA5LjY5MjQzIDE3LjA0OTUgOS43NzA4MUMxNy4xMzExIDkuODQ5MTggMTcuMjI3NyA5LjkxMDEyIDE3LjMzMzYgOS45NDk5MUwxNy41MDAzIDkuOTk5OTFMMTAuMzMzNiAxMy4xMzMyQzEwLjIyODUgMTMuMTc5MSAxMC4xMTUgMTMuMjAyOCAxMC4wMDAzIDEzLjIwMjhDOS44ODU2IDEzLjIwMjggOS43NzIxMiAxMy4xNzkxIDkuNjY2OTggMTMuMTMzMkwyLjUwMDMxIDkuOTk5OTFMMi42NTg2NSA5LjkzMzI0QzIuNzY0NTUgOS44OTM0NSAyLjg2MTI0IDkuODMyNTEgMi45NDI4MyA5Ljc1NDE0QzMuMDI0NDIgOS42NzU3NyAzLjA4OTE5IDkuNTgxNiAzLjEzMzIxIDkuNDc3MzlDMy4xNzcyMiA5LjM3MzE3IDMuMTk5NTYgOS4yNjEwOCAzLjE5ODg1IDkuMTQ3OTVDMy4xOTgxNSA5LjAzNDgyIDMuMTc0NDEgOC45MjMwMiAzLjEyOTEgOC44MTkzNkMzLjA4Mzc4IDguNzE1NyAzLjAxNzgzIDguNjIyMzUgMi45MzUyNyA4LjU0NTAxQzIuODUyNzEgOC40Njc2NiAyLjc1NTI3IDguNDA3OTQgMi42NDg4NyA4LjM2OTQ3QzIuNTQyNDggOC4zMzEwMSAyLjQyOTM3IDguMzE0NjEgMi4zMTY0NCA4LjMyMTI3QzIuMjAzNSA4LjMyNzk0IDIuMDkzMTEgOC4zNTc1MyAxLjk5MTk4IDguNDA4MjRMMC45NTg2NDcgOC44NTgyNEMwLjczMjU2MSA4Ljk1MjYyIDAuNTM5NDQ5IDkuMTExNzggMC40MDM2MTkgOS4zMTU2N0MwLjI2Nzc4OSA5LjUxOTU2IDAuMTk1MzEzIDkuNzU5MDggMC4xOTUzMTIgMTAuMDA0MUMwLjE5NTMxMyAxMC4yNDkxIDAuMjY3Nzg5IDEwLjQ4ODYgMC40MDM2MTkgMTAuNjkyNUMwLjUzOTQ0OSAxMC44OTY0IDAuNzMyNTYxIDExLjA1NTUgMC45NTg2NDcgMTEuMTQ5OUw4Ljk5MTk4IDE0LjY0MTZDOS4zMDczOSAxNC43NzkyIDkuNjQ3ODMgMTQuODUwMyA5Ljk5MTk4IDE0Ljg1MDNDMTAuMzM2MSAxNC44NTAzIDEwLjY3NjYgMTQuNzc5MiAxMC45OTIgMTQuNjQxNkwxOS4wMjUzIDExLjE0OTlDMTkuMjUxNCAxMS4wNTQgMTkuNDQ0NCAxMC44OTM5IDE5LjU4MDcgMTAuNjg5NkMxOS43MTY5IDEwLjQ4NTIgMTkuNzkwNCAxMC4yNDU1IDE5Ljc5MiA5Ljk5OTkxQzE5Ljc4OTQgOS43NTg3OSAxOS43MTYyIDkuNTIzNzEgMTkuNTgxNCA5LjMyMzc3QzE5LjQ0NjYgOS4xMjM4MiAxOS4yNTYyIDguOTY3NzYgMTkuMDMzNiA4Ljg3NDkxWiIgZmlsbD0iIzcwNzA3MCIvPgo8cGF0aCBkPSJNMTkuMDM0IDEzLjgzMzRMMTguMDAwNyAxMy4zODM0QzE3LjkgMTMuMzM5MyAxNy43OTE3IDEzLjMxNTUgMTcuNjgxOCAxMy4zMTM0QzE3LjU3MTkgMTMuMzExMyAxNy40NjI3IDEzLjMzMSAxNy4zNjA1IDEzLjM3MTJDMTcuMjU4MyAxMy40MTE1IDE3LjE2NSAxMy40NzE2IDE3LjA4NjEgMTMuNTQ4MUMxNy4wMDcyIDEzLjYyNDUgMTYuOTQ0MSAxMy43MTU4IDE2LjkwMDcgMTMuODE2N0MxNi44MTQxIDE0LjAxOTEgMTYuODExMSAxNC4yNDc0IDE2Ljg5MjMgMTQuNDUxOUMxNi45NzM1IDE0LjY1NjQgMTcuMTMyMyAxNC44MjA1IDE3LjMzNCAxNC45MDg0TDE3LjUwMDcgMTUuMDAwMUwxMC4zMzQgMTguMDkxN0MxMC4yMjg5IDE4LjEzNzYgMTAuMTE1NCAxOC4xNjEzIDEwLjAwMDcgMTguMTYxM0M5Ljg4NTk0IDE4LjE2MTMgOS43NzI0NiAxOC4xMzc2IDkuNjY3MzIgMTguMDkxN0wyLjUwMDY2IDE1LjAwMDFMMi42NTg5OSAxNC45MjUxQzIuODYwNzEgMTQuODM3MiAzLjAxOTQ5IDE0LjY3MzEgMy4xMDA2NyAxNC40Njg2QzMuMTgxODUgMTQuMjY0IDMuMTc4ODUgMTQuMDM1NyAzLjA5MjMyIDEzLjgzMzRDMy4wNDg4MyAxMy43MzI1IDIuOTg1ODEgMTMuNjQxMiAyLjkwNjg5IDEzLjU2NDdDMi44Mjc5NyAxMy40ODgzIDIuNzM0NzEgMTMuNDI4MiAyLjYzMjQ4IDEzLjM4NzlDMi41MzAyNCAxMy4zNDc2IDIuNDIxMDUgMTMuMzI4IDIuMzExMTggMTMuMzMwMUMyLjIwMTMyIDEzLjMzMjEgMi4wOTI5NSAxMy4zNTU5IDEuOTkyMzIgMTMuNDAwMUwwLjk1ODk4OSAxMy44NTAxQzAuNzM2MDMzIDEzLjk0ODUgMC41NDY0NyAxNC4xMDk2IDAuNDEzMzI5IDE0LjMxMzhDMC4yODAxODggMTQuNTE3OSAwLjIwOTIgMTQuNzU2MyAwLjIwODk4OSAxNS4wMDAxQzAuMjA4MzAzIDE1LjI0NCAwLjI3OTk4NSAxNS40ODI3IDAuNDE0OTcgMTUuNjg1OUMwLjU0OTk1NSAxNS44ODkyIDAuNzQyMTc3IDE2LjA0NzggMC45NjczMjMgMTYuMTQxN0w5LjAwMDY2IDE5LjY0MTdDOS4zMTYwNyAxOS43Nzk0IDkuNjU2NTEgMTkuODUwNSAxMC4wMDA3IDE5Ljg1MDVDMTAuMzQ0OCAxOS44NTA1IDEwLjY4NTIgMTkuNzc5NCAxMS4wMDA3IDE5LjY0MTdMMTkuMDM0IDE2LjE0MTdDMTkuMjU5MSAxNi4wNDc4IDE5LjQ1MTQgMTUuODg5MiAxOS41ODYzIDE1LjY4NTlDMTkuNzIxMyAxNS40ODI3IDE5Ljc5MyAxNS4yNDQgMTkuNzkyMyAxNS4wMDAxQzE5Ljc5NDcgMTQuNzUyNiAxOS43MjQgMTQuNTA5OSAxOS41ODkxIDE0LjMwMjRDMTkuNDU0MiAxNC4wOTQ5IDE5LjI2MTEgMTMuOTMxNyAxOS4wMzQgMTMuODMzNFoiIGZpbGw9IiM3MDcwNzAiLz4KPC9zdmc+Cg==)}.mi-floor-selector__button span{position:none}.mi-floor-selector__list{box-sizing:unset;display:flex;flex-direction:column;gap:4px;overflow-y:hidden;transition:max-height 0.25s;scroll-behavior:smooth;z-index:0;border-radius:9999px;padding:4px;padding-top:48px;max-height:40px}.mi-floor-selector__list::before,.mi-floor-selector__list::after{content:"";height:100%;position:absolute;pointer-events:none;z-index:3;left:-1px;right:-1px;transition:opacity 0.1s;opacity:0}.mi-floor-selector__list--fade-top::before{opacity:1;top:-1px;background:linear-gradient(180deg, white 39px, rgba(255, 255, 255, 0) 86px)}.mi-floor-selector__list--fade-bottom::after{opacity:1;bottom:-1px;background:linear-gradient(0deg, white 4px, rgba(255, 255, 255, 0) 40px)}.mi-floor-selector__list::-webkit-scrollbar{width:4px}.mi-floor-selector__list::-webkit-scrollbar-track{background:none}.mi-floor-selector__list::-webkit-scrollbar-thumb{background:#8D98AA;border-radius:5px}.mi-floor-selector__floor{position:relative;order:1;flex-shrink:0;margin-top:-1px;z-index:0;float:none;text-align:center;background:none;transition:translateY 0.25s;transform:translateY(0px);color:#666666;border-radius:50%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;border-style:none;width:40px;height:40px}.mi-floor-selector__floor:hover{z-index:2;background-color:#d1d5db}.mi-floor-selector__floor--active{z-index:2;transform:translateY(0px);color:#fcfcfc}.mi-floor-selector__floor-text{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding-left:4px;padding-right:4px}',X7=class{constructor(e){Ri(this,e),this.maxListHeight=300,this.mapsindoors=void 0,this.primaryColor="#005655",this.floors=new Array,this.currentFloor=void 0,this.floorSelectorClosed=!0,this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1}scrollToSelectedFloor(){const e=this.floorSelectorElement.clientHeight,t=this.floorListElement.scrollHeight,r=this.currentFloorElement.offsetTop,s=this.currentFloorElement.offsetHeight;let u;t>e?(u=r-e/2+s/2,u=Math.max(0,u),u=Math.min(u,t-e)):u=0,this.floorListElement.scrollTop=u}animateTranslateY(e,t,r){const s=[{transform:`translateY(${t}px)`}];e.animate(s,{duration:r,fill:"forwards"})}animateFloorSelector(){const e=this.el.querySelectorAll(".mi-floor-selector__floor"),t=[];for(let r=0;r<e.length&&e[r].getAttribute("data-floor")!==this.currentFloor;r++)t.push(e[r]);if(this.floorSelectorClosed){const r=this.floorListElement.scrollTop,s=parseInt(window.getComputedStyle(this.floorListElement).getPropertyValue("padding-top")),f=-(this.currentFloorElement.offsetTop-this.floorListElement.offsetTop-r-s);this.animateTranslateY(this.currentFloorElement,f,250),this.floorListElement.scrollTop>0?e.forEach(m=>{m.getAttribute("data-floor")!==this.currentFloor&&(t.indexOf(m)>-1?this.animateTranslateY(m,m.offsetTop+this.floorListElement.scrollTop,250):this.animateTranslateY(m,this.floorListElement.scrollTop,250))}):t.forEach(m=>{this.animateTranslateY(m,m.offsetTop,250)})}else this.animateTranslateY(this.currentFloorElement,0,250),e.forEach(r=>{r.getAttribute("data-floor")!==this.currentFloor&&this.animateTranslateY(r,0,250)})}onToggleFloorSelector(){this.floorSelectorClosed=!this.floorSelectorClosed,this.animateFloorSelector(),this.floorListElement.addEventListener("transitionend",()=>{this.floorSelectorClosed||this.scrollToSelectedFloor(),this.onScrollStyle()},{once:!0})}onScrollStyle(){const e=this.floorListElement.scrollHeight-this.floorListElement.clientHeight;if(this.floorSelectorClosed){this.fadeFloorSelectorOnTop=!1,this.fadeFloorSelectorOnBottom=!1;return}this.maxListHeight>this.floorListElement.clientHeight-48||(this.fadeFloorSelectorOnTop=this.floorListElement.scrollTop>0,this.fadeFloorSelectorOnBottom=this.floorListElement.scrollTop!==e)}onSelectFloor(e,t){this.mapsindoors.setFloor(t),this.currentFloor=this.mapsindoors.getFloor().toString(),this.currentFloorElement=e.currentTarget}connectedCallback(){this.mapsindoors.addListener("building_changed",()=>{this.floors=[];const e=this.mapsindoors.getBuilding();if(e){const t=()=>{this.currentFloor=this.mapsindoors.getFloor().toString(),this.mapsindoors.removeListener("floor_changed",t)};this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.mapsindoors.addListener("floor_changed",t):this.currentFloor=this.mapsindoors.getFloor().toString(),Object.keys(e.floors).sort((r,s)=>s-r).forEach(r=>{e.floors[r].index=r,this.floors.push(e.floors[r])})}}),this.mapsindoors.addListener("floor_changed",()=>{this.currentFloor=this.mapsindoors.getFloor().toString()})}componentDidRender(){!this.mapsindoors.getBuilding()||this.mapsindoors.getFloor()===null||this.mapsindoors.getFloor()===void 0?this.floorSelectorElement.classList.add("mi-floor-selector--hidden"):this.floorSelectorElement.classList.remove("mi-floor-selector--hidden"),this.currentFloorElement=this.el.querySelector(".mi-floor-selector__floor--active"),this.currentFloorElement&&this.currentFloor&&this.animateFloorSelector()}render(){return ke(co,null,ke("div",{class:"mi-floor-selector",ref:e=>this.floorSelectorElement=e},ke("button",{class:`mi-floor-selector__button mi-floor-selector__button--${this.floorSelectorClosed?"closed":"open"}`,onClick:()=>this.onToggleFloorSelector()}),ke("div",{class:`mi-floor-selector__list ${this.fadeFloorSelectorOnTop?"mi-floor-selector__list--fade-top":""} ${this.fadeFloorSelectorOnBottom?"mi-floor-selector__list--fade-bottom":""}`,ref:e=>this.floorListElement=e,onScroll:()=>this.onScrollStyle()},this.floors.map(e=>ke("button",{"data-floor":e.index,style:this.currentFloor===e.index?{backgroundColor:this.primaryColor}:{},class:`mi-floor-selector__floor ${this.currentFloor===e.index?"mi-floor-selector__floor--active":""}`,onClick:t=>this.onSelectFloor(t,e.index)},ke("span",null,e.name))))))}get el(){return rc(this)}};X7.style=lue;const cue=Object.freeze(Object.defineProperty({__proto__:null,mi_floor_selector:X7},Symbol.toStringTag,{value:"Module"}));var uue=c0(function(e,t){/*!
2485
2485
  *
2486
2486
  * simple-keyboard v3.7.27
2487
2487
  * https://github.com/hodgef/simple-keyboard