@mapsindoors/map-template 1.12.0 → 1.12.2

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 (77) hide show
  1. package/dist/{combo-box-item.entry-bacd907e.mjs → combo-box-item.entry-4655f8f1.mjs} +1 -1
  2. package/dist/{combo-box-item.entry-77c80135.mjs → combo-box-item.entry-dcac1d11.mjs} +1 -1
  3. package/dist/mapsindoors-react.es.js +1 -1
  4. package/dist/mapsindoors-react.umd.js +1 -1
  5. package/dist/mapsindoors-webcomponent.es.js +1 -1
  6. package/dist/mapsindoors-webcomponent.umd.js +1 -1
  7. package/dist/{mi-card_2.entry-1164b737.mjs → mi-card_2.entry-17d9ff30.mjs} +1 -1
  8. package/dist/{mi-card_2.entry-e0d0d87d.mjs → mi-card_2.entry-5cb85a93.mjs} +1 -1
  9. package/dist/{mi-chip.entry-5f57e71c.mjs → mi-chip.entry-484688ce.mjs} +1 -1
  10. package/dist/{mi-chip.entry-dc71c49d.mjs → mi-chip.entry-4ba142dd.mjs} +1 -1
  11. package/dist/{mi-column.entry-fd0490a6.mjs → mi-column.entry-09ed81f4.mjs} +1 -1
  12. package/dist/{mi-column.entry-fe5212e3.mjs → mi-column.entry-93c03933.mjs} +1 -1
  13. package/dist/{mi-combo-box.entry-3530ed61.mjs → mi-combo-box.entry-7e1046c0.mjs} +1 -1
  14. package/dist/{mi-combo-box.entry-3ee6e418.mjs → mi-combo-box.entry-b0575521.mjs} +1 -1
  15. package/dist/{mi-data-table.entry-06650e96.mjs → mi-data-table.entry-b2d55259.mjs} +1 -1
  16. package/dist/{mi-data-table.entry-0a5cd0ce.mjs → mi-data-table.entry-d4817a92.mjs} +1 -1
  17. package/dist/{mi-distance_2.entry-3fae4169.mjs → mi-distance_2.entry-77b218a1.mjs} +1 -1
  18. package/dist/{mi-distance_2.entry-f83608c7.mjs → mi-distance_2.entry-8ce9be00.mjs} +1 -1
  19. package/dist/{mi-dropdown-item.entry-6ded2ee5.mjs → mi-dropdown-item.entry-88a68a2b.mjs} +1 -1
  20. package/dist/{mi-dropdown-item.entry-8979468f.mjs → mi-dropdown-item.entry-8fa8f062.mjs} +1 -1
  21. package/dist/{mi-dropdown.entry-ff88e9d8.mjs → mi-dropdown.entry-1e4014fb.mjs} +1 -1
  22. package/dist/{mi-dropdown.entry-e1db1b2f.mjs → mi-dropdown.entry-4bea8114.mjs} +1 -1
  23. package/dist/{mi-floor-selector.entry-2e376330.mjs → mi-floor-selector.entry-356fa866.mjs} +1 -1
  24. package/dist/{mi-floor-selector.entry-25915e6f.mjs → mi-floor-selector.entry-9b2fc40d.mjs} +1 -1
  25. package/dist/{mi-keyboard.entry-bc699e75.mjs → mi-keyboard.entry-8a720d68.mjs} +1 -1
  26. package/dist/{mi-keyboard.entry-173450cc.mjs → mi-keyboard.entry-d0d70e33.mjs} +1 -1
  27. package/dist/{mi-list-item-category.entry-dbef7e35.mjs → mi-list-item-category.entry-41cb4553.mjs} +1 -1
  28. package/dist/{mi-list-item-category.entry-e8069e41.mjs → mi-list-item-category.entry-943ce998.mjs} +1 -1
  29. package/dist/{mi-list-item-location.entry-c5cda4ca.mjs → mi-list-item-location.entry-71d1bf05.mjs} +1 -1
  30. package/dist/{mi-list-item-location.entry-19680f21.mjs → mi-list-item-location.entry-ca98fc53.mjs} +1 -1
  31. package/dist/{mi-list.entry-7126271f.mjs → mi-list.entry-420bf0a5.mjs} +1 -1
  32. package/dist/{mi-list.entry-63f68584.mjs → mi-list.entry-bde89f5c.mjs} +1 -1
  33. package/dist/{mi-location-booking.entry-9c5c44ac.mjs → mi-location-booking.entry-002b7462.mjs} +1 -1
  34. package/dist/{mi-location-booking.entry-e497a20e.mjs → mi-location-booking.entry-dfbebd4b.mjs} +1 -1
  35. package/dist/{mi-location-info.entry-5def39bc.mjs → mi-location-info.entry-b99e22bf.mjs} +1 -1
  36. package/dist/{mi-location-info.entry-d60b36c6.mjs → mi-location-info.entry-ca78bc84.mjs} +1 -1
  37. package/dist/{mi-map-googlemaps.entry-f4414f7e.mjs → mi-map-googlemaps.entry-4da59771.mjs} +1 -1
  38. package/dist/{mi-map-googlemaps.entry-88758c5d.mjs → mi-map-googlemaps.entry-c77fe5a0.mjs} +1 -1
  39. package/dist/{mi-map-mapbox.entry-fb13275f.mjs → mi-map-mapbox.entry-507ce95c.mjs} +1 -1
  40. package/dist/{mi-map-mapbox.entry-b5853879.mjs → mi-map-mapbox.entry-a7b4df9b.mjs} +1 -1
  41. package/dist/{mi-metric-card.entry-70517b62.mjs → mi-metric-card.entry-679bf2c7.mjs} +1 -1
  42. package/dist/{mi-metric-card.entry-bb758c43.mjs → mi-metric-card.entry-d31f0a25.mjs} +1 -1
  43. package/dist/{mi-my-position.entry-03c8f712.mjs → mi-my-position.entry-6daf40a2.mjs} +2 -2
  44. package/dist/{mi-my-position.entry-29dea178.mjs → mi-my-position.entry-d84af6a2.mjs} +2 -2
  45. package/dist/{mi-notification.entry-93b18008.mjs → mi-notification.entry-0d7bdbb1.mjs} +1 -1
  46. package/dist/{mi-notification.entry-3399c382.mjs → mi-notification.entry-c9e293bf.mjs} +1 -1
  47. package/dist/{mi-route-instructions-heading.entry-229e8b72.mjs → mi-route-instructions-heading.entry-b86d1b6c.mjs} +1 -1
  48. package/dist/{mi-route-instructions-heading.entry-827e736e.mjs → mi-route-instructions-heading.entry-baf2425e.mjs} +1 -1
  49. package/dist/{mi-route-instructions-maneuver-legacy.entry-87770e56.mjs → mi-route-instructions-maneuver-legacy.entry-4acf60a7.mjs} +1 -1
  50. package/dist/{mi-route-instructions-maneuver-legacy.entry-6e593a3c.mjs → mi-route-instructions-maneuver-legacy.entry-9dd59039.mjs} +1 -1
  51. package/dist/{mi-route-instructions-maneuver.entry-b39f4ad6.mjs → mi-route-instructions-maneuver.entry-21f575cc.mjs} +1 -1
  52. package/dist/{mi-route-instructions-maneuver.entry-4807bc67.mjs → mi-route-instructions-maneuver.entry-6c92a08d.mjs} +1 -1
  53. package/dist/{mi-route-instructions-step-legacy.entry-ea0a5303.mjs → mi-route-instructions-step-legacy.entry-5c911766.mjs} +1 -1
  54. package/dist/{mi-route-instructions-step-legacy.entry-952a5c0b.mjs → mi-route-instructions-step-legacy.entry-be803c68.mjs} +1 -1
  55. package/dist/{mi-route-instructions-step.entry-dff81020.mjs → mi-route-instructions-step.entry-b6f39d0e.mjs} +1 -1
  56. package/dist/{mi-route-instructions-step.entry-40bf0df8.mjs → mi-route-instructions-step.entry-fd14125a.mjs} +1 -1
  57. package/dist/{mi-route-instructions.entry-324ebad1.mjs → mi-route-instructions.entry-211eb42b.mjs} +1 -1
  58. package/dist/{mi-route-instructions.entry-d38585d6.mjs → mi-route-instructions.entry-37265ab3.mjs} +1 -1
  59. package/dist/{mi-scroll-buttons.entry-02b66445.mjs → mi-scroll-buttons.entry-7144a298.mjs} +1 -1
  60. package/dist/{mi-scroll-buttons.entry-fad1b475.mjs → mi-scroll-buttons.entry-f1b4cf38.mjs} +1 -1
  61. package/dist/{mi-search.entry-cc6b2332.mjs → mi-search.entry-9fc2fc23.mjs} +1 -1
  62. package/dist/{mi-search.entry-b0773d99.mjs → mi-search.entry-de77598b.mjs} +1 -1
  63. package/dist/{mi-share-sms.entry-28ee50b1.mjs → mi-share-sms.entry-89b5caca.mjs} +1 -1
  64. package/dist/{mi-share-sms.entry-ab707d58.mjs → mi-share-sms.entry-c761ad8e.mjs} +1 -1
  65. package/dist/{mi-step-switcher.entry-78ed037f.mjs → mi-step-switcher.entry-2fb02910.mjs} +1 -1
  66. package/dist/{mi-step-switcher.entry-3233106c.mjs → mi-step-switcher.entry-3b1caa0d.mjs} +1 -1
  67. package/dist/{mi-tab-panel.entry-eee99299.mjs → mi-tab-panel.entry-6e80af77.mjs} +1 -1
  68. package/dist/{mi-tab-panel.entry-fe762ef5.mjs → mi-tab-panel.entry-f9e97e14.mjs} +1 -1
  69. package/dist/{mi-tab.entry-3268902d.mjs → mi-tab.entry-0dbb3768.mjs} +1 -1
  70. package/dist/{mi-tab.entry-617aef9d.mjs → mi-tab.entry-25defe0e.mjs} +1 -1
  71. package/dist/{mi-tabs.entry-0056816a.mjs → mi-tabs.entry-3a926bed.mjs} +1 -1
  72. package/dist/{mi-tabs.entry-25ce0ba5.mjs → mi-tabs.entry-e75381c1.mjs} +1 -1
  73. package/dist/{mi-time.entry-529935a7.mjs → mi-time.entry-0a1c1532.mjs} +1 -1
  74. package/dist/{mi-time.entry-4b104467.mjs → mi-time.entry-2b06bb79.mjs} +1 -1
  75. package/dist/{reactcomponent-d95a230f.mjs → reactcomponent-ef91671b.mjs} +2 -2
  76. package/dist/{webcomponent-742e8715.mjs → webcomponent-5671058a.mjs} +2 -2
  77. package/package.json +1 -1
@@ -40,7 +40,7 @@ Error generating stack: `+v.message+`
40
40
  * LICENSE file in the root directory of this source tree.
41
41
  */var m9=Xe,y9=Symbol.for("react.element"),_9=Symbol.for("react.fragment"),v9=Object.prototype.hasOwnProperty,x9=m9.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,M9={key:!0,ref:!0,__self:!0,__source:!0};function l5(e,t,i){var l,h={},v=null,y=null;i!==void 0&&(v=""+i),t.key!==void 0&&(v=""+t.key),t.ref!==void 0&&(y=t.ref);for(l in t)v9.call(t,l)&&!M9.hasOwnProperty(l)&&(h[l]=t[l]);if(e&&e.defaultProps)for(l in t=e.defaultProps,t)h[l]===void 0&&(h[l]=t[l]);return{$$typeof:y9,type:e,key:v,ref:y,props:h,_owner:x9.current}}Pg.Fragment=_9,Pg.jsx=l5,Pg.jsxs=l5,a5.exports=Pg;var Ve=a5.exports;function w9(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var b9=w9,Bn=b9;function I9(e){return!!e&&typeof e.then=="function"}var zi=I9;function D9(e,t){if(e!=null)return e;throw Bn(t??"Got unexpected null or undefined")}var ki=D9;function kn(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class Rg{getValue(){throw Bn("BaseLoadable")}toPromise(){throw Bn("BaseLoadable")}valueMaybe(){throw Bn("BaseLoadable")}valueOrThrow(){throw Bn(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw Bn("BaseLoadable")}promiseOrThrow(){throw Bn(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw Bn("BaseLoadable")}errorOrThrow(){throw Bn(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw Bn("BaseLoadable")}}class T9 extends Rg{constructor(t){super(),kn(this,"state","hasValue"),kn(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 i=t(this.contents);return zi(i)?Pl(i):du(i)?i:Id(i)}catch(i){return zi(i)?Pl(i.next(()=>this.map(t))):Ug(i)}}}class A9 extends Rg{constructor(t){super(),kn(this,"state","hasError"),kn(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 c5 extends Rg{constructor(t){super(),kn(this,"state","loading"),kn(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 Pl(this.contents.then(i=>{const l=t(i);if(du(l)){const h=l;switch(h.state){case"hasValue":return h.contents;case"hasError":throw h.contents;case"loading":return h.contents}}return l}).catch(i=>{if(zi(i))return i.then(()=>this.map(t).contents);throw i}))}}function Id(e){return Object.freeze(new T9(e))}function Ug(e){return Object.freeze(new A9(e))}function Pl(e){return Object.freeze(new c5(e))}function u5(){return Object.freeze(new c5(new Promise(()=>{})))}function N9(e){return e.every(t=>t.state==="hasValue")?Id(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?Ug(ki(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Pl(Promise.all(e.map(t=>t.contents)))}function h5(e){const i=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(h=>e[h])).map(h=>du(h)?h:zi(h)?Pl(h):Id(h)),l=N9(i);return Array.isArray(e)?l:l.map(h=>Object.getOwnPropertyNames(e).reduce((v,y,a)=>({...v,[y]:h[a]}),{}))}function du(e){return e instanceof Rg}var Rl={loadableWithValue:Id,loadableWithError:Ug,loadableWithPromise:Pl,loadableLoading:u5,loadableAll:h5,isLoadable:du,RecoilLoadable:{of:e=>zi(e)?Pl(e):du(e)?e:Id(e),error:e=>Ug(e),loading:()=>u5(),all:h5,isLoadable:du}},E9=Rl.loadableWithValue,C9=Rl.loadableWithError,S9=Rl.loadableWithPromise,z9=Rl.loadableLoading,j9=Rl.loadableAll,L9=Rl.isLoadable,O9=Rl.RecoilLoadable,Dd=Object.freeze({__proto__:null,loadableWithValue:E9,loadableWithError:C9,loadableWithPromise:S9,loadableLoading:z9,loadableAll:j9,isLoadable:L9,RecoilLoadable:O9});const kv={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 k9(e,t){var i,l;const h=(i=process.env[e])===null||i===void 0||(l=i.toLowerCase())===null||l===void 0?void 0:l.trim();if(h==null||h==="")return;if(!["true","false"].includes(h))throw Bn(`process.env.${e} value must be 'true', 'false', or empty: ${h}`);t(h==="true")}function P9(e,t){var i;const l=(i=process.env[e])===null||i===void 0?void 0:i.trim();l==null||l===""||t(l.split(/\s*,\s*|\s+/))}function R9(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(k9("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{kv.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),P9("RECOIL_GKS_ENABLED",t=>{t.forEach(i=>{kv.RECOIL_GKS_ENABLED.add(i)})}))}R9();var fu=kv;function Bg(e){return fu.RECOIL_GKS_ENABLED.has(e)}Bg.setPass=e=>{fu.RECOIL_GKS_ENABLED.add(e)},Bg.setFail=e=>{fu.RECOIL_GKS_ENABLED.delete(e)},Bg.clear=()=>{fu.RECOIL_GKS_ENABLED.clear()};var Ii=Bg;function U9(e,t,{error:i}={}){return null}var B9=U9,Pv=B9,Rv,Uv,Bv;const F9=(Rv=ii.createMutableSource)!==null&&Rv!==void 0?Rv:ii.unstable_createMutableSource,d5=(Uv=ii.useMutableSource)!==null&&Uv!==void 0?Uv:ii.unstable_useMutableSource,f5=(Bv=ii.useSyncExternalStore)!==null&&Bv!==void 0?Bv:ii.unstable_useSyncExternalStore;function Q9(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:i}=ii.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=t==null?void 0:t.current)!==null&&e!==void 0?e:i.currentDispatcher).useSyncExternalStore!=null}function V9(){return Ii("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:Ii("recoil_sync_external_store")&&f5!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:Ii("recoil_mutable_source")&&d5!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?Ii("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:Ii("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function Y9(){return!1}var Td={createMutableSource:F9,useMutableSource:d5,useSyncExternalStore:f5,currentRendererSupportsUseSyncExternalStore:Q9,reactMode:V9,isFastRefreshEnabled:Y9};class Fv{constructor(t){kn(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class p5 extends Fv{}class g5 extends Fv{}function $9(e){return e instanceof p5||e instanceof g5}var Fg={AbstractRecoilValue:Fv,RecoilState:p5,RecoilValueReadOnly:g5,isRecoilValue:$9},Z9=Fg.AbstractRecoilValue,H9=Fg.RecoilState,G9=Fg.RecoilValueReadOnly,W9=Fg.isRecoilValue,pu=Object.freeze({__proto__:null,AbstractRecoilValue:Z9,RecoilState:H9,RecoilValueReadOnly:G9,isRecoilValue:W9});function q9(e,t){return function*(){let i=0;for(const l of e)yield t(l,i++)}()}var Qg=q9;class m5{}const X9=new m5,Ul=new Map,Qv=new Map;function K9(e){return Qg(e,t=>ki(Qv.get(t)))}function J9(e){if(Ul.has(e)){const t=`Duplicate atom key "${e}". This is a FATAL ERROR in
42
42
  production. But it is safe to ignore this warning if it occurred because of
43
- hot module replacement.`;console.warn(t)}}function ez(e){fu.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&J9(e.key),Ul.set(e.key,e);const t=e.set==null?new pu.RecoilValueReadOnly(e.key):new pu.RecoilState(e.key);return Qv.set(e.key,t),t}class y5 extends Error{}function tz(e){const t=Ul.get(e);if(t==null)throw new y5(`Missing definition for RecoilValue: "${e}""`);return t}function nz(e){return Ul.get(e)}const Vg=new Map;function iz(e){var t;if(!Ii("recoil_memory_managament_2020"))return;const i=Ul.get(e);if(i!=null&&(t=i.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(i)){var l;Ul.delete(e),(l=_5(e))===null||l===void 0||l(),Vg.delete(e)}}function rz(e,t){Ii("recoil_memory_managament_2020")&&(t===void 0?Vg.delete(e):Vg.set(e,t))}function _5(e){return Vg.get(e)}var ao={nodes:Ul,recoilValues:Qv,registerNode:ez,getNode:tz,getNodeMaybe:nz,deleteNodeConfigIfPossible:iz,setConfigDeletionHandler:rz,getConfigDeletionHandler:_5,recoilValuesForKeys:K9,NodeMissingError:y5,DefaultValue:m5,DEFAULT_VALUE:X9};function oz(e,t){t()}var sz={enqueueExecution:oz};function az(e,t){return t={exports:{}},e(t,t.exports),t.exports}var lz=az(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},i={},l=5,h=Math.pow(2,l),v=h-1,y=h/2,a=h/4,m={},D=function(Pe){return function(){return Pe}},C=i.hash=function(Fe){var Pe=typeof Fe>"u"?"undefined":t(Fe);if(Pe==="number")return Fe;Pe!=="string"&&(Fe+="");for(var Mt=0,zt=0,Ut=Fe.length;zt<Ut;++zt){var Kt=Fe.charCodeAt(zt);Mt=(Mt<<5)-Mt+Kt|0}return Mt},E=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},A=function(Pe,Mt){return Mt>>>Pe&v},O=function(Pe){return 1<<Pe},L=function(Pe,Mt){return E(Pe&Mt-1)},U=function(Pe,Mt,zt,Ut){var Kt=Ut;if(!Pe){var un=Ut.length;Kt=new Array(un);for(var yn=0;yn<un;++yn)Kt[yn]=Ut[yn]}return Kt[Mt]=zt,Kt},q=function(Pe,Mt,zt){var Ut=zt.length-1,Kt=0,un=0,yn=zt;if(Pe)Kt=un=Mt;else for(yn=new Array(Ut);Kt<Mt;)yn[un++]=zt[Kt++];for(++Kt;Kt<=Ut;)yn[un++]=zt[Kt++];return Pe&&(yn.length=Ut),yn},H=function(Pe,Mt,zt,Ut){var Kt=Ut.length;if(Pe){for(var un=Kt;un>=Mt;)Ut[un--]=Ut[un];return Ut[Mt]=zt,Ut}for(var yn=0,vn=0,Dn=new Array(Kt+1);yn<Mt;)Dn[vn++]=Ut[yn++];for(Dn[Mt]=zt;yn<Kt;)Dn[++vn]=Ut[yn++];return Dn},V=1,G=2,ee=3,K=4,_e={__hamt_isEmpty:!0},xe=function(Pe){return Pe===_e||Pe&&Pe.__hamt_isEmpty},Ne=function(Pe,Mt,zt,Ut){return{type:V,edit:Pe,hash:Mt,key:zt,value:Ut,_modify:Ye}},Me=function(Pe,Mt,zt){return{type:G,edit:Pe,hash:Mt,children:zt,_modify:Ze}},ze=function(Pe,Mt,zt){return{type:ee,edit:Pe,mask:Mt,children:zt,_modify:ae}},Ge=function(Pe,Mt,zt){return{type:K,edit:Pe,size:Mt,children:zt,_modify:de}},He=function(Pe){return Pe===_e||Pe.type===V||Pe.type===G},ct=function(Pe,Mt,zt,Ut,Kt){for(var un=[],yn=Ut,vn=0,Dn=0;yn;++Dn)yn&1&&(un[Dn]=Kt[vn++]),yn>>>=1;return un[Mt]=zt,Ge(Pe,vn+1,un)},ft=function(Pe,Mt,zt,Ut){for(var Kt=new Array(Mt-1),un=0,yn=0,vn=0,Dn=Ut.length;vn<Dn;++vn)if(vn!==zt){var Jn=Ut[vn];Jn&&!xe(Jn)&&(Kt[un++]=Jn,yn|=1<<vn)}return ze(Pe,yn,Kt)},Ae=function Fe(Pe,Mt,zt,Ut,Kt,un){if(zt===Kt)return Me(Pe,zt,[un,Ut]);var yn=A(Mt,zt),vn=A(Mt,Kt);return ze(Pe,O(yn)|O(vn),yn===vn?[Fe(Pe,Mt+l,zt,Ut,Kt,un)]:yn<vn?[Ut,un]:[un,Ut])},Re=function(Pe,Mt,zt,Ut,Kt,un,yn,vn){for(var Dn=Kt.length,Jn=0;Jn<Dn;++Jn){var Zi=Kt[Jn];if(zt(yn,Zi.key)){var ci=Zi.value,Hi=un(ci);return Hi===ci?Kt:Hi===m?(--vn.value,q(Pe,Jn,Kt)):U(Pe,Jn,Ne(Mt,Ut,yn,Hi),Kt)}}var dr=un();return dr===m?Kt:(++vn.value,U(Pe,Dn,Ne(Mt,Ut,yn,dr),Kt))},Je=function(Pe,Mt){return Pe===Mt.edit},Ye=function(Pe,Mt,zt,Ut,Kt,un,yn){if(Mt(un,this.key)){var vn=Ut(this.value);return vn===this.value?this:vn===m?(--yn.value,_e):Je(Pe,this)?(this.value=vn,this):Ne(Pe,Kt,un,vn)}var Dn=Ut();return Dn===m?this:(++yn.value,Ae(Pe,zt,this.hash,this,Kt,Ne(Pe,Kt,un,Dn)))},Ze=function(Pe,Mt,zt,Ut,Kt,un,yn){if(Kt===this.hash){var vn=Je(Pe,this),Dn=Re(vn,Pe,Mt,this.hash,this.children,Ut,un,yn);return Dn===this.children?this:Dn.length>1?Me(Pe,this.hash,Dn):Dn[0]}var Jn=Ut();return Jn===m?this:(++yn.value,Ae(Pe,zt,this.hash,this,Kt,Ne(Pe,Kt,un,Jn)))},ae=function(Pe,Mt,zt,Ut,Kt,un,yn){var vn=this.mask,Dn=this.children,Jn=A(zt,Kt),Zi=O(Jn),ci=L(vn,Zi),Hi=vn&Zi,dr=Hi?Dn[ci]:_e,pe=dr._modify(Pe,Mt,zt+l,Ut,Kt,un,yn);if(dr===pe)return this;var Y=Je(Pe,this),X=vn,he=void 0;if(Hi&&xe(pe)){if(X&=~Zi,!X)return _e;if(Dn.length<=2&&He(Dn[ci^1]))return Dn[ci^1];he=q(Y,ci,Dn)}else if(!Hi&&!xe(pe)){if(Dn.length>=y)return ct(Pe,Jn,pe,vn,Dn);X|=Zi,he=H(Y,ci,pe,Dn)}else he=U(Y,ci,pe,Dn);return Y?(this.mask=X,this.children=he,this):ze(Pe,X,he)},de=function(Pe,Mt,zt,Ut,Kt,un,yn){var vn=this.size,Dn=this.children,Jn=A(zt,Kt),Zi=Dn[Jn],ci=(Zi||_e)._modify(Pe,Mt,zt+l,Ut,Kt,un,yn);if(Zi===ci)return this;var Hi=Je(Pe,this),dr=void 0;if(xe(Zi)&&!xe(ci))++vn,dr=U(Hi,Jn,ci,Dn);else if(!xe(Zi)&&xe(ci)){if(--vn,vn<=a)return ft(Pe,vn,Jn,Dn);dr=U(Hi,Jn,_e,Dn)}else dr=U(Hi,Jn,ci,Dn);return Hi?(this.size=vn,this.children=dr,this):Ge(Pe,vn,dr)};_e._modify=function(Fe,Pe,Mt,zt,Ut,Kt,un){var yn=zt();return yn===m?_e:(++un.value,Ne(Fe,Ut,Kt,yn))};function J(Fe,Pe,Mt,zt,Ut){this._editable=Fe,this._edit=Pe,this._config=Mt,this._root=zt,this._size=Ut}J.prototype.setTree=function(Fe,Pe){return this._editable?(this._root=Fe,this._size=Pe,this):Fe===this._root?this:new J(this._editable,this._edit,this._config,Fe,Pe)};var F=i.tryGetHash=function(Fe,Pe,Mt,zt){for(var Ut=zt._root,Kt=0,un=zt._config.keyEq;;)switch(Ut.type){case V:return un(Mt,Ut.key)?Ut.value:Fe;case G:{if(Pe===Ut.hash)for(var yn=Ut.children,vn=0,Dn=yn.length;vn<Dn;++vn){var Jn=yn[vn];if(un(Mt,Jn.key))return Jn.value}return Fe}case ee:{var Zi=A(Kt,Pe),ci=O(Zi);if(Ut.mask&ci){Ut=Ut.children[L(Ut.mask,ci)],Kt+=l;break}return Fe}case K:{if(Ut=Ut.children[A(Kt,Pe)],Ut){Kt+=l;break}return Fe}default:return Fe}};J.prototype.tryGetHash=function(Fe,Pe,Mt){return F(Fe,Pe,Mt,this)};var Z=i.tryGet=function(Fe,Pe,Mt){return F(Fe,Mt._config.hash(Pe),Pe,Mt)};J.prototype.tryGet=function(Fe,Pe){return Z(Fe,Pe,this)};var ie=i.getHash=function(Fe,Pe,Mt){return F(void 0,Fe,Pe,Mt)};J.prototype.getHash=function(Fe,Pe){return ie(Fe,Pe,this)},i.get=function(Fe,Pe){return F(void 0,Pe._config.hash(Fe),Fe,Pe)},J.prototype.get=function(Fe,Pe){return Z(Pe,Fe,this)};var ne=i.has=function(Fe,Pe,Mt){return F(m,Fe,Pe,Mt)!==m};J.prototype.hasHash=function(Fe,Pe){return ne(Fe,Pe,this)};var De=i.has=function(Fe,Pe){return ne(Pe._config.hash(Fe),Fe,Pe)};J.prototype.has=function(Fe){return De(Fe,this)};var Oe=function(Pe,Mt){return Pe===Mt};i.make=function(Fe){return new J(0,0,{keyEq:Fe&&Fe.keyEq||Oe,hash:Fe&&Fe.hash||C},_e,0)},i.empty=i.make();var we=i.isEmpty=function(Fe){return Fe&&!!xe(Fe._root)};J.prototype.isEmpty=function(){return we(this)};var Qe=i.modifyHash=function(Fe,Pe,Mt,zt){var Ut={value:zt._size},Kt=zt._root._modify(zt._editable?zt._edit:NaN,zt._config.keyEq,0,Fe,Pe,Mt,Ut);return zt.setTree(Kt,Ut.value)};J.prototype.modifyHash=function(Fe,Pe,Mt){return Qe(Mt,Fe,Pe,this)};var et=i.modify=function(Fe,Pe,Mt){return Qe(Fe,Mt._config.hash(Pe),Pe,Mt)};J.prototype.modify=function(Fe,Pe){return et(Pe,Fe,this)};var it=i.setHash=function(Fe,Pe,Mt,zt){return Qe(D(Mt),Fe,Pe,zt)};J.prototype.setHash=function(Fe,Pe,Mt){return it(Fe,Pe,Mt,this)};var Ue=i.set=function(Fe,Pe,Mt){return it(Mt._config.hash(Fe),Fe,Pe,Mt)};J.prototype.set=function(Fe,Pe){return Ue(Fe,Pe,this)};var rt=D(m),Tt=i.removeHash=function(Fe,Pe,Mt){return Qe(rt,Fe,Pe,Mt)};J.prototype.removeHash=J.prototype.deleteHash=function(Fe,Pe){return Tt(Fe,Pe,this)};var ut=i.remove=function(Fe,Pe){return Tt(Pe._config.hash(Fe),Fe,Pe)};J.prototype.remove=J.prototype.delete=function(Fe){return ut(Fe,this)};var Lt=i.beginMutation=function(Fe){return new J(Fe._editable+1,Fe._edit+1,Fe._config,Fe._root,Fe._size)};J.prototype.beginMutation=function(){return Lt(this)};var Zt=i.endMutation=function(Fe){return Fe._editable=Fe._editable&&Fe._editable-1,Fe};J.prototype.endMutation=function(){return Zt(this)};var Xt=i.mutate=function(Fe,Pe){var Mt=Lt(Pe);return Fe(Mt),Zt(Mt)};J.prototype.mutate=function(Fe){return Xt(Fe,this)};var _n=function(Pe){return Pe&&li(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4])},li=function(Pe,Mt,zt,Ut,Kt){for(;zt<Pe;){var un=Mt[zt++];if(un&&!xe(un))return bn(un,Ut,[Pe,Mt,zt,Ut,Kt])}return _n(Kt)},bn=function(Pe,Mt,zt){switch(Pe.type){case V:return{value:Mt(Pe),rest:zt};case G:case K:case ee:var Ut=Pe.children;return li(Ut.length,Ut,0,Mt,zt);default:return _n(zt)}},Pn={done:!0};function Mn(Fe){this.v=Fe}Mn.prototype.next=function(){if(!this.v)return Pn;var Fe=this.v;return this.v=_n(Fe.rest),Fe},Mn.prototype[Symbol.iterator]=function(){return this};var cn=function(Pe,Mt){return new Mn(bn(Pe._root,Mt))},mn=function(Pe){return[Pe.key,Pe.value]},kt=i.entries=function(Fe){return cn(Fe,mn)};J.prototype.entries=J.prototype[Symbol.iterator]=function(){return kt(this)};var Tn=function(Pe){return Pe.key},Gn=i.keys=function(Fe){return cn(Fe,Tn)};J.prototype.keys=function(){return Gn(this)};var Un=function(Pe){return Pe.value},wn=i.values=J.prototype.values=function(Fe){return cn(Fe,Un)};J.prototype.values=function(){return wn(this)};var sn=i.fold=function(Fe,Pe,Mt){var zt=Mt._root;if(zt.type===V)return Fe(Pe,zt.value,zt.key);for(var Ut=[zt.children],Kt=void 0;Kt=Ut.pop();)for(var un=0,yn=Kt.length;un<yn;){var vn=Kt[un++];vn&&vn.type&&(vn.type===V?Pe=Fe(Pe,vn.value,vn.key):Ut.push(vn.children))}return Pe};J.prototype.fold=function(Fe,Pe){return sn(Fe,Pe,this)};var yi=i.forEach=function(Fe,Pe){return sn(function(Mt,zt,Ut){return Fe(zt,Ut,Pe)},null,Pe)};J.prototype.forEach=function(Fe){return yi(Fe,this)};var Pi=i.count=function(Fe){return Fe._size};J.prototype.count=function(){return Pi(this)},Object.defineProperty(J.prototype,"size",{get:J.prototype.count}),e.exports?e.exports=i:(void 0).hamt=i});class cz{constructor(t){kn(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,i){return this._map.set(t,i),this}delete(t){return this._map.delete(t),this}clone(){return Yv(this)}toMap(){return new Map(this._map)}}class Vv{constructor(t){if(kn(this,"_hamt",lz.empty.beginMutation()),t instanceof Vv){const i=t._hamt.endMutation();t._hamt=i.beginMutation(),this._hamt=i.beginMutation()}else if(t)for(const[i,l]of t.entries())this._hamt.set(i,l)}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,i){return this._hamt.set(t,i),this}delete(t){return this._hamt.delete(t),this}clone(){return Yv(this)}toMap(){return new Map(this._hamt)}}function Yv(e){return Ii("recoil_hamt_2020")?new Vv(e):new cz(e)}var uz={persistentMap:Yv},hz=uz.persistentMap,dz=Object.freeze({__proto__:null,persistentMap:hz});function fz(e,...t){const i=new Set;e:for(const l of e){for(const h of t)if(h.has(l))continue e;i.add(l)}return i}var Ad=fz;function pz(e,t){const i=new Map;return e.forEach((l,h)=>{i.set(h,t(l,h))}),i}var Yg=pz;function gz(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function mz(e){return{nodeDeps:Yg(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Yg(e.nodeToNodeSubscriptions,t=>new Set(t))}}function $v(e,t,i,l){const{nodeDeps:h,nodeToNodeSubscriptions:v}=i,y=h.get(e);if(y&&l&&y!==l.nodeDeps.get(e))return;h.set(e,t);const a=y==null?t:Ad(t,y);for(const m of a)v.has(m)||v.set(m,new Set),ki(v.get(m)).add(e);if(y){const m=Ad(y,t);for(const D of m){if(!v.has(D))return;const C=ki(v.get(D));C.delete(e),C.size===0&&v.delete(D)}}}function yz(e,t,i,l){var h,v,y,a;const m=i.getState();l===m.currentTree.version||l===((h=m.nextTree)===null||h===void 0?void 0:h.version)||((v=m.previousTree)===null||v===void 0||v.version);const D=i.getGraph(l);if($v(e,t,D),l===((y=m.previousTree)===null||y===void 0?void 0:y.version)){const E=i.getGraph(m.currentTree.version);$v(e,t,E,D)}if(l===((a=m.previousTree)===null||a===void 0?void 0:a.version)||l===m.currentTree.version){var C;const E=(C=m.nextTree)===null||C===void 0?void 0:C.version;if(E!==void 0){const A=i.getGraph(E);$v(e,t,A,D)}}}var Nd={cloneGraph:mz,graph:gz,saveDepsToStore:yz};let _z=0;const vz=()=>_z++;let xz=0;const Mz=()=>xz++;let wz=0;var $g={getNextTreeStateVersion:vz,getNextStoreID:Mz,getNextComponentID:()=>wz++};const{persistentMap:v5}=dz,{graph:bz}=Nd,{getNextTreeStateVersion:x5}=$g;function M5(){const e=x5();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:v5(),nonvalidatedAtoms:v5()}}function Iz(){const e=M5();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,bz()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var w5={makeEmptyTreeState:M5,makeEmptyStoreState:Iz,getNextTreeStateVersion:x5};class b5{}function Dz(){return new b5}var Zg={RetentionZone:b5,retentionZone:Dz};function Tz(e,t){const i=new Set(e);return i.add(t),i}function Az(e,t){const i=new Set(e);return i.delete(t),i}function Nz(e,t,i){const l=new Map(e);return l.set(t,i),l}function Ez(e,t,i){const l=new Map(e);return l.set(t,i(l.get(t))),l}function Cz(e,t){const i=new Map(e);return i.delete(t),i}function Sz(e,t){const i=new Map(e);return t.forEach(l=>i.delete(l)),i}var I5={setByAddingToSet:Tz,setByDeletingFromSet:Az,mapBySettingInMap:Nz,mapByUpdatingInMap:Ez,mapByDeletingFromMap:Cz,mapByDeletingMultipleFromMap:Sz};function*zz(e,t){let i=0;for(const l of e)t(l,i++)&&(yield l)}var Zv=zz;function jz(e,t){return new Proxy(e,{get:(l,h)=>(!(h in l)&&h in t&&(l[h]=t[h]()),l[h]),ownKeys:l=>Object.keys(l)})}var D5=jz;const{getNode:Ed,getNodeMaybe:Lz,recoilValuesForKeys:T5}=ao,{RetentionZone:A5}=Zg,{setByAddingToSet:Oz}=I5,kz=Object.freeze(new Set);class Pz extends Error{}function Rz(e,t,i){if(!Ii("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:l}=e.getState().retention;function h(v){let y=l.get(v);y||l.set(v,y=new Set),y.add(t)}if(i instanceof A5)h(i);else if(Array.isArray(i))for(const v of i)h(v);return()=>{if(!Ii("recoil_memory_managament_2020"))return;const{retention:v}=e.getState();function y(a){const m=v.nodesRetainedByZone.get(a);m==null||m.delete(t),m&&m.size===0&&v.nodesRetainedByZone.delete(a)}if(i instanceof A5)y(i);else if(Array.isArray(i))for(const a of i)y(a)}}function Hv(e,t,i,l){const h=e.getState();if(h.nodeCleanupFunctions.has(i))return;const v=Ed(i),y=Rz(e,i,v.retainedBy),a=v.init(e,t,l);h.nodeCleanupFunctions.set(i,()=>{a(),y()})}function Uz(e,t,i){Hv(e,e.getState().currentTree,t,i)}function Bz(e,t){var i;const l=e.getState();(i=l.nodeCleanupFunctions.get(t))===null||i===void 0||i(),l.nodeCleanupFunctions.delete(t)}function Fz(e,t,i){return Hv(e,t,i,"get"),Ed(i).get(e,t)}function N5(e,t,i){return Ed(i).peek(e,t)}function Qz(e,t,i){var l;const h=Lz(t);return h==null||(l=h.invalidate)===null||l===void 0||l.call(h,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,i),dirtyAtoms:Oz(e.dirtyAtoms,t)}}function Vz(e,t,i,l){const h=Ed(i);if(h.set==null)throw new Pz(`Attempt to set read-only RecoilValue: ${i}`);const v=h.set;return Hv(e,t,i,"set"),v(e,t,l)}function Yz(e,t,i){const l=e.getState(),h=e.getGraph(t.version),v=Ed(i).nodeType;return D5({type:v},{loadable:()=>N5(e,t,i),isActive:()=>l.knownAtoms.has(i)||l.knownSelectors.has(i),isSet:()=>v==="selector"?!1:t.atomValues.has(i),isModified:()=>t.dirtyAtoms.has(i),deps:()=>{var y;return T5((y=h.nodeDeps.get(i))!==null&&y!==void 0?y:[])},subscribers:()=>{var y,a;return{nodes:T5(Zv(E5(e,t,new Set([i])),m=>m!==i)),components:Qg((y=(a=l.nodeToComponentSubscriptions.get(i))===null||a===void 0?void 0:a.values())!==null&&y!==void 0?y:[],([m])=>({name:m}))}}})}function E5(e,t,i){const l=new Set,h=Array.from(i),v=e.getGraph(t.version);for(let a=h.pop();a;a=h.pop()){var y;l.add(a);const m=(y=v.nodeToNodeSubscriptions.get(a))!==null&&y!==void 0?y:kz;for(const D of m)l.has(D)||h.push(D)}return l}var Za={getNodeLoadable:Fz,peekNodeLoadable:N5,setNodeValue:Vz,initializeNode:Uz,cleanUpNode:Bz,setUnvalidatedAtomValue_DEPRECATED:Qz,peekNodeInfo:Yz,getDownstreamNodes:E5};let C5=null;function $z(e){C5=e}function Zz(){var e;(e=C5)===null||e===void 0||e()}var S5={setInvalidateMemoizedSnapshot:$z,invalidateMemoizedSnapshot:Zz};const{getDownstreamNodes:Hz,getNodeLoadable:z5,setNodeValue:Gz}=Za,{getNextComponentID:Wz}=$g,{getNode:qz,getNodeMaybe:j5}=ao,{DefaultValue:Gv}=ao,{reactMode:Xz}=Td,{AbstractRecoilValue:Kz,RecoilState:Jz,RecoilValueReadOnly:e8,isRecoilValue:t8}=pu,{invalidateMemoizedSnapshot:n8}=S5;function i8(e,{key:t},i=e.getState().currentTree){var l,h;const v=e.getState();i.version===v.currentTree.version||i.version===((l=v.nextTree)===null||l===void 0?void 0:l.version)||(i.version,(h=v.previousTree)===null||h===void 0||h.version);const y=z5(e,i,t);return y.state==="loading"&&y.contents.catch(()=>{}),y}function r8(e,t){const i=e.clone();return t.forEach((l,h)=>{l.state==="hasValue"&&l.contents instanceof Gv?i.delete(h):i.set(h,l)}),i}function o8(e,t,{key:i},l){if(typeof l=="function"){const h=z5(e,t,i);if(h.state==="loading"){const v=`Tried to set atom or selector "${i}" using an updater function while the current state is pending, this is not currently supported.`;throw Bn(v)}else if(h.state==="hasError")throw h.contents;return l(h.contents)}else return l}function s8(e,t,i){if(i.type==="set"){const{recoilValue:h,valueOrUpdater:v}=i,y=o8(e,t,h,v),a=Gz(e,t,h.key,y);for(const[m,D]of a.entries())Wv(t,m,D)}else if(i.type==="setLoadable"){const{recoilValue:{key:h},loadable:v}=i;Wv(t,h,v)}else if(i.type==="markModified"){const{recoilValue:{key:h}}=i;t.dirtyAtoms.add(h)}else if(i.type==="setUnvalidated"){var l;const{recoilValue:{key:h},unvalidatedValue:v}=i,y=j5(h);y==null||(l=y.invalidate)===null||l===void 0||l.call(y,t),t.atomValues.delete(h),t.nonvalidatedAtoms.set(h,v),t.dirtyAtoms.add(h)}else Pv(`Unknown action ${i.type}`)}function Wv(e,t,i){i.state==="hasValue"&&i.contents instanceof Gv?e.atomValues.delete(t):e.atomValues.set(t,i),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function L5(e,t){e.replaceState(i=>{const l=O5(i);for(const h of t)s8(e,l,h);return k5(e,l),n8(),l})}function Hg(e,t){if(Cd.length){const i=Cd[Cd.length-1];let l=i.get(e);l||i.set(e,l=[]),l.push(t)}else L5(e,[t])}const Cd=[];function a8(){const e=new Map;return Cd.push(e),()=>{for(const[t,i]of e)L5(t,i);Cd.pop()}}function O5(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function k5(e,t){const i=Hz(e,t,t.dirtyAtoms);for(const v of i){var l,h;(l=j5(v))===null||l===void 0||(h=l.invalidate)===null||h===void 0||h.call(l,t)}}function P5(e,t,i){Hg(e,{type:"set",recoilValue:t,valueOrUpdater:i})}function l8(e,t,i){if(i instanceof Gv)return P5(e,t,i);Hg(e,{type:"setLoadable",recoilValue:t,loadable:i})}function c8(e,t){Hg(e,{type:"markModified",recoilValue:t})}function u8(e,t,i){Hg(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:i})}function h8(e,{key:t},i,l=null){const h=Wz(),v=e.getState();v.nodeToComponentSubscriptions.has(t)||v.nodeToComponentSubscriptions.set(t,new Map),ki(v.nodeToComponentSubscriptions.get(t)).set(h,[l??"<not captured>",i]);const y=Xz();if(y.early&&(y.mode==="LEGACY"||y.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&i(a)}return{release:()=>{const a=e.getState(),m=a.nodeToComponentSubscriptions.get(t);m===void 0||!m.has(h)||(m.delete(h),m.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function d8(e,t){var i;const{currentTree:l}=e.getState(),h=qz(t.key);(i=h.clearCache)===null||i===void 0||i.call(h,e,l)}var bs={RecoilValueReadOnly:e8,AbstractRecoilValue:Kz,RecoilState:Jz,getRecoilValueAsLoadable:i8,setRecoilValue:P5,setRecoilValueLoadable:l8,markRecoilValueModified:c8,setUnvalidatedRecoilValue:u8,subscribeToRecoilValue:h8,isRecoilValue:t8,applyAtomValueWrites:r8,batchStart:a8,writeLoadableToTreeState:Wv,invalidateDownstreams:k5,copyTreeState:O5,refreshRecoilValue:d8};function f8(e,t,i){const l=e.entries();let h=l.next();for(;!h.done;){const v=h.value;if(t.call(i,v[1],v[0],e))return!0;h=l.next()}return!1}var p8=f8;const{cleanUpNode:g8}=Za,{deleteNodeConfigIfPossible:m8,getNode:R5}=ao,{RetentionZone:U5}=Zg,y8=12e4,B5=new Set;function F5(e,t){const i=e.getState(),l=i.currentTree;if(i.nextTree)return;const h=new Set;for(const y of t)if(y instanceof U5)for(const a of M8(i,y))h.add(a);else h.add(y);const v=_8(e,h);for(const y of v)x8(e,l,y)}function _8(e,t){const i=e.getState(),l=i.currentTree,h=e.getGraph(l.version),v=new Set,y=new Set;return a(t),v;function a(m){const D=new Set,C=v8(e,l,m,v,y);for(const L of C){var E;if(R5(L).retainedBy==="recoilRoot"){y.add(L);continue}if(((E=i.retention.referenceCounts.get(L))!==null&&E!==void 0?E:0)>0){y.add(L);continue}if(Q5(L).some(q=>i.retention.referenceCounts.get(q))){y.add(L);continue}const U=h.nodeToNodeSubscriptions.get(L);if(U&&p8(U,q=>y.has(q))){y.add(L);continue}v.add(L),D.add(L)}const A=new Set;for(const L of D)for(const U of(O=h.nodeDeps.get(L))!==null&&O!==void 0?O:B5){var O;v.has(U)||A.add(U)}A.size&&a(A)}}function v8(e,t,i,l,h){const v=e.getGraph(t.version),y=[],a=new Set;for(;i.size>0;)m(ki(i.values().next().value));return y;function m(D){if(l.has(D)||h.has(D)){i.delete(D);return}if(a.has(D))return;const C=v.nodeToNodeSubscriptions.get(D);if(C)for(const E of C)m(E);a.add(D),i.delete(D),y.push(D)}}function x8(e,t,i){if(!Ii("recoil_memory_managament_2020"))return;g8(e,i);const l=e.getState();l.knownAtoms.delete(i),l.knownSelectors.delete(i),l.nodeTransactionSubscriptions.delete(i),l.retention.referenceCounts.delete(i);const h=Q5(i);for(const m of h){var v;(v=l.retention.nodesRetainedByZone.get(m))===null||v===void 0||v.delete(i)}t.atomValues.delete(i),t.dirtyAtoms.delete(i),t.nonvalidatedAtoms.delete(i);const y=l.graphsByVersion.get(t.version);if(y){const m=y.nodeDeps.get(i);if(m!==void 0){y.nodeDeps.delete(i);for(const D of m){var a;(a=y.nodeToNodeSubscriptions.get(D))===null||a===void 0||a.delete(i)}}y.nodeToNodeSubscriptions.delete(i)}m8(i)}function M8(e,t){var i;return(i=e.retention.nodesRetainedByZone.get(t))!==null&&i!==void 0?i:B5}function Q5(e){const t=R5(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof U5?[t]:t}function w8(e,t){const i=e.getState();i.nextTree?i.retention.retainablesToCheckForRelease.add(t):F5(e,new Set([t]))}function b8(e,t,i){var l;if(!Ii("recoil_memory_managament_2020"))return;const h=e.getState().retention.referenceCounts,v=((l=h.get(t))!==null&&l!==void 0?l:0)+i;v===0?V5(e,t):h.set(t,v)}function V5(e,t){if(!Ii("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),w8(e,t)}function I8(e){if(!Ii("recoil_memory_managament_2020"))return;const t=e.getState();F5(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function D8(e){return e===void 0?"recoilRoot":e}var Bl={SUSPENSE_TIMEOUT_MS:y8,updateRetainCount:b8,updateRetainCountToZero:V5,releaseScheduledRetainablesNow:I8,retainedByOptionWithDefault:D8};const{unstable_batchedUpdates:T8}=bd;var A8={unstable_batchedUpdates:T8};const{unstable_batchedUpdates:N8}=A8;var E8={unstable_batchedUpdates:N8};const{batchStart:C8}=bs,{unstable_batchedUpdates:S8}=E8;let qv=S8||(e=>e());var Gg={getBatcher:()=>qv,setBatcher:e=>{qv=e},batchUpdates:e=>{qv(()=>{let t=()=>{};try{t=C8(),e()}finally{t()}})}};function*z8(e){for(const t of e)for(const i of t)yield i}var Y5=z8;const $5=typeof Window>"u"||typeof window>"u",j8=e=>!$5&&(e===window||e instanceof Window),L8=typeof navigator<"u"&&navigator.product==="ReactNative";var Wg={isSSR:$5,isReactNative:L8,isWindow:j8};function O8(e,t){let i;return(...l)=>{i||(i={});const h=t(...l);return Object.hasOwnProperty.call(i,h)||(i[h]=e(...l)),i[h]}}function k8(e,t){let i,l;return(...h)=>{const v=t(...h);return i===v||(i=v,l=e(...h)),l}}function P8(e,t){let i,l;return[(...y)=>{const a=t(...y);return i===a||(i=a,l=e(...y)),l},()=>{i=null}]}var R8={memoizeWithArgsHash:O8,memoizeOneWithArgsHash:k8,memoizeOneWithArgsHashAndInvalidation:P8};const{batchUpdates:Xv}=Gg,{initializeNode:U8,peekNodeInfo:B8}=Za,{graph:F8}=Nd,{getNextStoreID:Q8}=$g,{DEFAULT_VALUE:V8,recoilValues:Z5,recoilValuesForKeys:H5}=ao,{AbstractRecoilValue:Y8,getRecoilValueAsLoadable:$8,setRecoilValue:G5,setUnvalidatedRecoilValue:Z8}=bs,{updateRetainCount:qg}=Bl,{setInvalidateMemoizedSnapshot:H8}=S5,{getNextTreeStateVersion:G8,makeEmptyStoreState:W8}=w5,{isSSR:q8}=Wg,{memoizeOneWithArgsHashAndInvalidation:X8}=R8;class Xg{constructor(t,i){kn(this,"_store",void 0),kn(this,"_refCount",1),kn(this,"getLoadable",l=>(this.checkRefCount_INTERNAL(),$8(this._store,l))),kn(this,"getPromise",l=>(this.checkRefCount_INTERNAL(),this.getLoadable(l).toPromise())),kn(this,"getNodes_UNSTABLE",l=>{if(this.checkRefCount_INTERNAL(),(l==null?void 0:l.isModified)===!0){if((l==null?void 0:l.isInitialized)===!1)return[];const y=this._store.getState().currentTree;return H5(y.dirtyAtoms)}const h=this._store.getState().knownAtoms,v=this._store.getState().knownSelectors;return(l==null?void 0:l.isInitialized)==null?Z5.values():l.isInitialized===!0?H5(Y5([h,v])):Zv(Z5.values(),({key:y})=>!h.has(y)&&!v.has(y))}),kn(this,"getInfo_UNSTABLE",({key:l})=>(this.checkRefCount_INTERNAL(),B8(this._store,this._store.getState().currentTree,l))),kn(this,"map",l=>{this.checkRefCount_INTERNAL();const h=new Kv(this,Xv);return l(h),h}),kn(this,"asyncMap",async l=>{this.checkRefCount_INTERNAL();const h=new Kv(this,Xv);return h.retain(),await l(h),h.autoRelease_INTERNAL(),h}),this._store={storeID:Q8(),parentStoreID:i,getState:()=>t,replaceState:l=>{t.currentTree=l(t.currentTree)},getGraph:l=>{const h=t.graphsByVersion;if(h.has(l))return ki(h.get(l));const v=F8();return h.set(l,v),v},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Bn("Cannot subscribe to Snapshots")}};for(const l of this._store.getState().knownAtoms)U8(this._store,l,"get"),qg(this._store,l,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){q8||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(),!Ii("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Ii("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 W5(e,t,i=!1){const l=e.getState(),h=i?G8():t.version;return{currentTree:{version:i?h:t.version,stateID:i?h: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(l.knownAtoms),knownSelectors:new Set(l.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(h,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Qg(l.nodeCleanupFunctions.entries(),([v])=>[v,()=>{}]))}}function K8(e){const t=new Xg(W8());return e!=null?t.map(e):t}const[q5,X5]=X8((e,t)=>{var i;const l=e.getState(),h=t==="latest"?(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree:ki(l.previousTree);return new Xg(W5(e,h),e.storeID)},(e,t)=>{var i,l;return String(t)+String(e.storeID)+String((i=e.getState().nextTree)===null||i===void 0?void 0:i.version)+String(e.getState().currentTree.version)+String((l=e.getState().previousTree)===null||l===void 0?void 0:l.version)});H8(X5);function J8(e,t="latest"){const i=q5(e,t);return i.isRetained()?i:(X5(),q5(e,t))}class Kv extends Xg{constructor(t,i){super(W5(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),kn(this,"_batch",void 0),kn(this,"set",(l,h)=>{this.checkRefCount_INTERNAL();const v=this.getStore_INTERNAL();this._batch(()=>{qg(v,l.key,1),G5(this.getStore_INTERNAL(),l,h)})}),kn(this,"reset",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();this._batch(()=>{qg(h,l.key,1),G5(this.getStore_INTERNAL(),l,V8)})}),kn(this,"setUnvalidatedAtomValues_DEPRECATED",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();Xv(()=>{for(const[v,y]of l.entries())qg(h,v,1),Z8(h,new Y8(v),y)})}),this._batch=i}}var Kg={Snapshot:Xg,MutableSnapshot:Kv,freshSnapshot:K8,cloneSnapshot:J8},ej=Kg.Snapshot,tj=Kg.MutableSnapshot,nj=Kg.freshSnapshot,ij=Kg.cloneSnapshot,Jg=Object.freeze({__proto__:null,Snapshot:ej,MutableSnapshot:tj,freshSnapshot:nj,cloneSnapshot:ij});function rj(...e){const t=new Set;for(const i of e)for(const l of i)t.add(l);return t}var oj=rj;const{useRef:sj}=ii;function aj(e){const t=sj(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var K5=aj;const{getNextTreeStateVersion:lj,makeEmptyStoreState:J5}=w5,{cleanUpNode:cj,getDownstreamNodes:uj,initializeNode:hj,setNodeValue:dj,setUnvalidatedAtomValue_DEPRECATED:fj}=Za,{graph:pj}=Nd,{cloneGraph:gj}=Nd,{getNextStoreID:eI}=$g,{createMutableSource:Jv,reactMode:tI}=Td,{applyAtomValueWrites:mj}=bs,{releaseScheduledRetainablesNow:nI}=Bl,{freshSnapshot:yj}=Jg,{useCallback:_j,useContext:iI,useEffect:e2,useMemo:vj,useRef:xj,useState:Mj}=ii;function Sd(){throw Bn("This component must be used inside a <RecoilRoot> component.")}const rI=Object.freeze({storeID:eI(),getState:Sd,replaceState:Sd,getGraph:Sd,subscribeToTransactions:Sd,addTransactionMetadata:Sd});let t2=!1;function oI(e){if(t2)throw Bn("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){Ii("recoil_memory_managament_2020")&&Ii("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&nI(e);const i=t.currentTree.version,l=lj();t.nextTree={...t.currentTree,version:l,stateID:l,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(l,gj(ki(t.graphsByVersion.get(i))))}}const sI=ii.createContext({current:rI}),em=()=>iI(sI),aI=ii.createContext(null);function wj(){return iI(aI)}function n2(e,t,i){const l=uj(e,i,i.dirtyAtoms);for(const h of l){const v=t.nodeToComponentSubscriptions.get(h);if(v)for(const[y,[a,m]]of v)m(i)}}function lI(e){const t=e.getState(),i=t.currentTree,l=i.dirtyAtoms;if(l.size){for(const[h,v]of t.nodeTransactionSubscriptions)if(l.has(h))for(const[y,a]of v)a(e);for(const[h,v]of t.transactionSubscriptions)v(e);(!tI().early||t.suspendedComponentResolvers.size>0)&&(n2(e,t,i),t.suspendedComponentResolvers.forEach(h=>h()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(h=>h(i)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function bj(e){const t=e.getState();t.commitDepth++;try{const{nextTree:i}=t;if(i==null)return;t.previousTree=t.currentTree,t.currentTree=i,t.nextTree=null,lI(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Pv("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ii("recoil_memory_managament_2020")&&i==null&&nI(e)}finally{t.commitDepth--}}function Ij({setNotifyBatcherOfChange:e}){const t=em(),[,i]=Mj([]);return e(()=>i({})),e2(()=>(e(()=>i({})),()=>{e(()=>{})}),[e]),e2(()=>{sz.enqueueExecution("Batcher",()=>{bj(t.current)})}),null}function Dj(e,t){const i=J5();return t({set:(l,h)=>{const v=i.currentTree,y=dj(e,v,l.key,h),a=new Set(y.keys()),m=v.nonvalidatedAtoms.clone();for(const D of a)m.delete(D);i.currentTree={...v,dirtyAtoms:oj(v.dirtyAtoms,a),atomValues:mj(v.atomValues,y),nonvalidatedAtoms:m}},setUnvalidatedAtomValues:l=>{l.forEach((h,v)=>{i.currentTree=fj(i.currentTree,v,h)})}}),i}function Tj(e){const t=yj(e),i=t.getStore_INTERNAL().getState();return t.retain(),i.nodeCleanupFunctions.forEach(l=>l()),i.nodeCleanupFunctions.clear(),i}let cI=0;function Aj({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:i,children:l}){let h;const v=O=>{const L=h.current.graphsByVersion;if(L.has(O))return ki(L.get(O));const U=pj();return L.set(O,U),U},y=(O,L)=>{if(L==null){const{transactionSubscriptions:U}=E.current.getState(),q=cI++;return U.set(q,O),{release:()=>{U.delete(q)}}}else{const{nodeTransactionSubscriptions:U}=E.current.getState();U.has(L)||U.set(L,new Map);const q=cI++;return ki(U.get(L)).set(q,O),{release:()=>{const H=U.get(L);H&&(H.delete(q),H.size===0&&U.delete(L))}}}},a=O=>{oI(E.current);for(const L of Object.keys(O))ki(E.current.getState().nextTree).transactionMetadata[L]=O[L]},m=O=>{oI(E.current);const L=ki(h.current.nextTree);let U;try{t2=!0,U=O(L)}finally{t2=!1}U!==L&&(h.current.nextTree=U,tI().early&&n2(E.current,h.current,U),ki(D.current)())},D=xj(null),C=_j(O=>{D.current=O},[D]),E=K5(()=>i??{storeID:eI(),getState:()=>h.current,replaceState:m,getGraph:v,subscribeToTransactions:y,addTransactionMetadata:a});i!=null&&(E.current=i),h=K5(()=>e!=null?Dj(E.current,e):t!=null?Tj(t):J5());const A=vj(()=>Jv==null?void 0:Jv(h,()=>h.current.currentTree.version),[h]);return e2(()=>{const O=E.current;for(const L of new Set(O.getState().knownAtoms))hj(O,L,"get");return()=>{for(const L of O.getState().knownAtoms)cj(O,L)}},[E]),ii.createElement(sI.Provider,{value:E},ii.createElement(aI.Provider,{value:A},ii.createElement(Ij,{setNotifyBatcherOfChange:C}),l))}function Nj(e){const{override:t,...i}=e,l=em();return t===!1&&l.current!==rI?e.children:ii.createElement(Aj,i)}function Ej(){return em().current.storeID}var na={RecoilRoot:Nj,useStoreRef:em,useRecoilMutableSource:wj,useRecoilStoreID:Ej,notifyComponents_FOR_TESTING:n2,sendEndOfBatchNotifications_FOR_TESTING:lI};function Cj(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0,l=e.length;i<l;i++)if(e[i]!==t[i])return!1;return!0}var Sj=Cj;const{useEffect:zj,useRef:jj}=ii;function Lj(e){const t=jj();return zj(()=>{t.current=e}),t.current}var uI=Lj;const{useStoreRef:Oj}=na,{SUSPENSE_TIMEOUT_MS:kj}=Bl,{updateRetainCount:zd}=Bl,{RetentionZone:Pj}=Zg,{useEffect:Rj,useRef:Uj}=ii,{isSSR:hI}=Wg;function Bj(e){if(Ii("recoil_memory_managament_2020"))return Fj(e)}function Fj(e){const i=(Array.isArray(e)?e:[e]).map(y=>y instanceof Pj?y:y.key),l=Oj();Rj(()=>{if(!Ii("recoil_memory_managament_2020"))return;const y=l.current;if(h.current&&!hI)window.clearTimeout(h.current),h.current=null;else for(const a of i)zd(y,a,1);return()=>{for(const a of i)zd(y,a,-1)}},[l,...i]);const h=Uj(),v=uI(i);if(!hI&&(v===void 0||!Sj(v,i))){const y=l.current;for(const a of i)zd(y,a,1);if(v)for(const a of v)zd(y,a,-1);h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null;for(const a of i)zd(y,a,-1)},kj)}}var i2=Bj;function Qj(){return"<component name not available>"}var jd=Qj;const{batchUpdates:Vj}=Gg,{DEFAULT_VALUE:dI}=ao,{currentRendererSupportsUseSyncExternalStore:Yj,reactMode:gu,useMutableSource:$j,useSyncExternalStore:Zj}=Td,{useRecoilMutableSource:Hj,useStoreRef:Is}=na,{AbstractRecoilValue:r2,getRecoilValueAsLoadable:Ld,setRecoilValue:tm,setUnvalidatedRecoilValue:Gj,subscribeToRecoilValue:mu}=bs,{useCallback:lo,useEffect:yu,useMemo:fI,useRef:Od,useState:o2}=ii,{setByAddingToSet:Wj}=I5,{isSSR:qj}=Wg;function s2(e,t,i){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(h=>{const v=i.current.getState().suspendedComponentResolvers;v.add(h),qj&&zi(e.contents)&&e.contents.finally(()=>{v.delete(h)})}):e.state==="hasError"?e.contents:Bn(`Invalid value of loadable atom "${t.key}"`)}function Xj(){const e=jd(),t=Is(),[,i]=o2([]),l=Od(new Set);l.current=new Set;const h=Od(new Set),v=Od(new Map),y=lo(m=>{const D=v.current.get(m);D&&(D.release(),v.current.delete(m))},[v]),a=lo((m,D)=>{v.current.has(D)&&i([])},[]);return yu(()=>{const m=t.current;Ad(l.current,h.current).forEach(D=>{if(v.current.has(D))return;const C=mu(m,new r2(D),A=>a(A,D),e);v.current.set(D,C),m.getState().nextTree?m.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(m.getState(),D)}):a(m.getState(),D)}),Ad(h.current,l.current).forEach(D=>{y(D)}),h.current=l.current}),yu(()=>{const m=v.current;return Ad(l.current,new Set(m.keys())).forEach(D=>{const C=mu(t.current,new r2(D),E=>a(E,D),e);m.set(D,C)}),()=>m.forEach((D,C)=>y(C))},[e,t,y,a]),fI(()=>{function m(L){return U=>{tm(t.current,L,U)}}function D(L){return()=>tm(t.current,L,dI)}function C(L){var U;l.current.has(L.key)||(l.current=Wj(l.current,L.key));const q=t.current.getState();return Ld(t.current,L,gu().early&&(U=q.nextTree)!==null&&U!==void 0?U:q.currentTree)}function E(L){const U=C(L);return s2(U,L,t)}function A(L){return[E(L),m(L)]}function O(L){return[C(L),m(L)]}return{getRecoilValue:E,getRecoilValueLoadable:C,getRecoilState:A,getRecoilStateLoadable:O,getSetRecoilState:m,getResetRecoilState:D}},[l,t])}const Kj={current:0};function Jj(e){const t=Is(),i=jd(),l=lo(()=>{var a;const m=t.current,D=m.getState(),C=gu().early&&(a=D.nextTree)!==null&&a!==void 0?a:D.currentTree;return{loadable:Ld(m,e,C),key:e.key}},[t,e]),h=lo(a=>{let m;return()=>{var D,C;const E=a();return(D=m)!==null&&D!==void 0&&D.loadable.is(E.loadable)&&((C=m)===null||C===void 0?void 0:C.key)===E.key?m:(m=E,E)}},[]),v=fI(()=>h(l),[l,h]),y=lo(a=>{const m=t.current;return mu(m,e,a,i).release},[t,e,i]);return Zj(y,v,v).loadable}function e7(e){const t=Is(),i=lo(()=>{var D;const C=t.current,E=C.getState(),A=gu().early&&(D=E.nextTree)!==null&&D!==void 0?D:E.currentTree;return Ld(C,e,A)},[t,e]),l=lo(()=>i(),[i]),h=jd(),v=lo((D,C)=>{const E=t.current;return mu(E,e,()=>{if(!Ii("recoil_suppress_rerender_in_callback"))return C();const O=i();m.current.is(O)||C(),m.current=O},h).release},[t,e,h,i]),y=Hj();if(y==null)throw Bn("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=$j(y,l,v),m=Od(a);return yu(()=>{m.current=a}),a}function a2(e){const t=Is(),i=jd(),l=lo(()=>{var m;const D=t.current,C=D.getState(),E=gu().early&&(m=C.nextTree)!==null&&m!==void 0?m:C.currentTree;return Ld(D,e,E)},[t,e]),h=lo(()=>({loadable:l(),key:e.key}),[l,e.key]),v=lo(m=>{const D=h();return m.loadable.is(D.loadable)&&m.key===D.key?m:D},[h]);yu(()=>{const m=mu(t.current,e,D=>{a(v)},i);return a(v),m.release},[i,e,t,v]);const[y,a]=o2(h);return y.key!==e.key?h().loadable:y.loadable}function t7(e){const t=Is(),[,i]=o2([]),l=jd(),h=lo(()=>{var a;const m=t.current,D=m.getState(),C=gu().early&&(a=D.nextTree)!==null&&a!==void 0?a:D.currentTree;return Ld(m,e,C)},[t,e]),v=h(),y=Od(v);return yu(()=>{y.current=v}),yu(()=>{const a=t.current,m=a.getState(),D=mu(a,e,E=>{var A;if(!Ii("recoil_suppress_rerender_in_callback"))return i([]);const O=h();(A=y.current)!==null&&A!==void 0&&A.is(O)||i(O),y.current=O},l);if(m.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{y.current=null,i([])});else{var C;if(!Ii("recoil_suppress_rerender_in_callback"))return i([]);const E=h();(C=y.current)!==null&&C!==void 0&&C.is(E)||i(E),y.current=E}return D.release},[l,h,e,t]),v}function l2(e){return Ii("recoil_memory_managament_2020")&&i2(e),{TRANSITION_SUPPORT:a2,SYNC_EXTERNAL_STORE:Yj()?Jj:a2,MUTABLE_SOURCE:e7,LEGACY:t7}[gu().mode](e)}function pI(e){const t=Is(),i=l2(e);return s2(i,e,t)}function nm(e){const t=Is();return lo(i=>{tm(t.current,e,i)},[t,e])}function n7(e){const t=Is();return lo(()=>{tm(t.current,e,dI)},[t,e])}function i7(e){return[pI(e),nm(e)]}function r7(e){return[l2(e),nm(e)]}function o7(){const e=Is();return(t,i={})=>{Vj(()=>{e.current.addTransactionMetadata(i),t.forEach((l,h)=>Gj(e.current,new r2(h),l))})}}function gI(e){return Ii("recoil_memory_managament_2020")&&i2(e),a2(e)}function mI(e){const t=Is(),i=gI(e);return s2(i,e,t)}function s7(e){return[mI(e),nm(e)]}var a7={recoilComponentGetRecoilValueCount_FOR_TESTING:Kj,useRecoilInterface:Xj,useRecoilState:i7,useRecoilStateLoadable:r7,useRecoilValue:pI,useRecoilValueLoadable:l2,useResetRecoilState:n7,useSetRecoilState:nm,useSetUnvalidatedAtomValues:o7,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:gI,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:mI,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:s7};function l7(e,t){const i=new Map;for(const[l,h]of e)t(h,l)&&i.set(l,h);return i}var c7=l7;function u7(e,t){const i=new Set;for(const l of e)t(l)&&i.add(l);return i}var h7=u7;function d7(...e){const t=new Map;for(let i=0;i<e.length;i++){const l=e[i].keys();let h;for(;!(h=l.next()).done;)t.set(h.value,e[i].get(h.value))}return t}var f7=d7;const{batchUpdates:p7}=Gg,{DEFAULT_VALUE:g7,getNode:yI,nodes:m7}=ao,{useStoreRef:c2}=na,{AbstractRecoilValue:y7,setRecoilValueLoadable:_7}=bs,{SUSPENSE_TIMEOUT_MS:v7}=Bl,{cloneSnapshot:im}=Jg,{useCallback:rm,useEffect:_I,useRef:vI,useState:x7}=ii,{isSSR:xI}=Wg;function om(e){const t=c2();_I(()=>t.current.subscribeToTransactions(e).release,[e,t])}function MI(e){const t=e.atomValues.toMap(),i=Yg(c7(t,(l,h)=>{const y=yI(h).persistence_UNSTABLE;return y!=null&&y.type!=="none"&&l.state==="hasValue"}),l=>l.contents);return f7(e.nonvalidatedAtoms.toMap(),i)}function M7(e){om(rm(t=>{let i=t.getState().previousTree;const l=t.getState().currentTree;i||(i=t.getState().currentTree);const h=MI(l),v=MI(i),y=Yg(m7,m=>{var D,C,E,A;return{persistence_UNSTABLE:{type:(D=(C=m.persistence_UNSTABLE)===null||C===void 0?void 0:C.type)!==null&&D!==void 0?D:"none",backButton:(E=(A=m.persistence_UNSTABLE)===null||A===void 0?void 0:A.backButton)!==null&&E!==void 0?E:!1}}}),a=h7(l.dirtyAtoms,m=>h.has(m)||v.has(m));e({atomValues:h,previousAtomValues:v,atomInfo:y,modifiedAtoms:a,transactionMetadata:{...l.transactionMetadata}})},[e]))}function w7(e){om(rm(t=>{const i=im(t,"latest"),l=im(t,"previous");e({snapshot:i,previousSnapshot:l})},[e]))}function b7(){const e=c2(),[t,i]=x7(()=>im(e.current)),l=uI(t),h=vI(),v=vI();if(om(rm(a=>i(im(a)),[])),_I(()=>{const a=t.retain();if(h.current&&!xI){var m;window.clearTimeout(h.current),h.current=null,(m=v.current)===null||m===void 0||m.call(v),v.current=null}return()=>{window.setTimeout(a,10)}},[t]),l!==t&&!xI){if(h.current){var y;window.clearTimeout(h.current),h.current=null,(y=v.current)===null||y===void 0||y.call(v),v.current=null}v.current=t.retain(),h.current=window.setTimeout(()=>{var a;h.current=null,(a=v.current)===null||a===void 0||a.call(v),v.current=null},v7)}return t}function wI(e,t){var i;const l=e.getState(),h=(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree,v=t.getStore_INTERNAL().getState().currentTree;p7(()=>{const y=new Set;for(const D of[h.atomValues.keys(),v.atomValues.keys()])for(const C of D){var a,m;((a=h.atomValues.get(C))===null||a===void 0?void 0:a.contents)!==((m=v.atomValues.get(C))===null||m===void 0?void 0:m.contents)&&yI(C).shouldRestoreFromSnapshots&&y.add(C)}y.forEach(D=>{_7(e,new y7(D),v.atomValues.has(D)?ki(v.atomValues.get(D)):g7)}),e.replaceState(D=>({...D,stateID:t.getID()}))})}function I7(){const e=c2();return rm(t=>wI(e.current,t),[e])}var bI={useRecoilSnapshot:b7,gotoSnapshot:wI,useGotoRecoilSnapshot:I7,useRecoilTransactionObserver:w7,useTransactionObservation_DEPRECATED:M7,useTransactionSubscription_DEPRECATED:om};const{peekNodeInfo:D7}=Za,{useStoreRef:T7}=na;function A7(){const e=T7();return({key:t})=>D7(e.current,e.current.getState().currentTree,t)}var N7=A7;const{reactMode:E7}=Td,{RecoilRoot:C7,useStoreRef:S7}=na,{useMemo:z7}=ii;function j7(){E7().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=S7().current;return z7(()=>{function t({children:i}){return ii.createElement(C7,{store_INTERNAL:e},i)}return t},[e])}var L7=j7;const{loadableWithValue:O7}=Dd,{initializeNode:k7}=Za,{DEFAULT_VALUE:P7,getNode:R7}=ao,{copyTreeState:U7,getRecoilValueAsLoadable:B7,invalidateDownstreams:F7,writeLoadableToTreeState:Q7}=bs;function II(e){return R7(e.key).nodeType==="atom"}class V7{constructor(t,i){kn(this,"_store",void 0),kn(this,"_treeState",void 0),kn(this,"_changes",void 0),kn(this,"get",l=>{if(this._changes.has(l.key))return this._changes.get(l.key);if(!II(l))throw Bn("Reading selectors within atomicUpdate is not supported");const h=B7(this._store,l,this._treeState);if(h.state==="hasValue")return h.contents;throw h.state==="hasError"?h.contents:Bn(`Expected Recoil atom ${l.key} to have a value, but it is in a loading state.`)}),kn(this,"set",(l,h)=>{if(!II(l))throw Bn("Setting selectors within atomicUpdate is not supported");if(typeof h=="function"){const v=this.get(l);this._changes.set(l.key,h(v))}else k7(this._store,l.key,"set"),this._changes.set(l.key,h)}),kn(this,"reset",l=>{this.set(l,P7)}),this._store=t,this._treeState=i,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=U7(this._treeState);for(const[i,l]of this._changes)Q7(t,i,O7(l));return F7(this._store,t),t}}function Y7(e){return t=>{e.replaceState(i=>{const l=new V7(e,i);return t(l),l.newTreeState_INTERNAL()})}}var $7={atomicUpdater:Y7},Z7=$7.atomicUpdater,DI=Object.freeze({__proto__:null,atomicUpdater:Z7});function H7(e,t){if(!e)throw new Error(t)}var G7=H7,kd=G7;const{atomicUpdater:W7}=DI,{batchUpdates:q7}=Gg,{DEFAULT_VALUE:X7}=ao,{useStoreRef:K7}=na,{refreshRecoilValue:J7,setRecoilValue:TI}=bs,{cloneSnapshot:eL}=Jg,{gotoSnapshot:tL}=bI,{useCallback:nL}=ii;class AI{}const iL=new AI;function NI(e,t,i,l){let h=iL,v;if(q7(()=>{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 Bn(a);const m=D5({...l??{},set:(C,E)=>TI(e,C,E),reset:C=>TI(e,C,X7),refresh:C=>J7(e,C),gotoSnapshot:C=>tL(e,C),transact_UNSTABLE:C=>W7(e)(C)},{snapshot:()=>{const C=eL(e);return v=C.retain(),C}}),D=t(m);if(typeof D!="function")throw Bn(a);h=D(...i)}),h instanceof AI&&kd(!1),zi(h))h=h.finally(()=>{var a;(a=v)===null||a===void 0||a()});else{var y;(y=v)===null||y===void 0||y()}return h}function rL(e,t){const i=K7();return nL((...l)=>NI(i.current,e,l),t!=null?[...t,i]:void 0)}var EI={recoilCallback:NI,useRecoilCallback:rL};const{useStoreRef:oL}=na,{refreshRecoilValue:sL}=bs,{useCallback:aL}=ii;function lL(e){const t=oL();return aL(()=>{const i=t.current;sL(i,e)},[e,t])}var cL=lL;const{atomicUpdater:uL}=DI,{useStoreRef:hL}=na,{useMemo:dL}=ii;function fL(e,t){const i=hL();return dL(()=>(...l)=>{uL(i.current)(v=>{e(v)(...l)})},t!=null?[...t,i]:void 0)}var pL=fL;class gL{constructor(t){kn(this,"value",void 0),this.value=t}}var mL={WrappedValue:gL},yL=mL.WrappedValue,CI=Object.freeze({__proto__:null,WrappedValue:yL});const{isFastRefreshEnabled:_L}=Td;class SI extends Error{}class vL{constructor(t){var i,l,h;kn(this,"_name",void 0),kn(this,"_numLeafs",void 0),kn(this,"_root",void 0),kn(this,"_onHit",void 0),kn(this,"_onSet",void 0),kn(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(i=t==null?void 0:t.onHit)!==null&&i!==void 0?i:()=>{},this._onSet=(l=t==null?void 0:t.onSet)!==null&&l!==void 0?l:()=>{},this._mapNodeValue=(h=t==null?void 0:t.mapNodeValue)!==null&&h!==void 0?h:v=>v}size(){return this._numLeafs}root(){return this._root}get(t,i){var l;return(l=this.getLeafNode(t,i))===null||l===void 0?void 0:l.value}getLeafNode(t,i){if(this._root==null)return;let l=this._root;for(;l;){if(i==null||i.onNodeVisit(l),l.type==="leaf")return this._onHit(l),l;const h=this._mapNodeValue(t(l.nodeKey));l=l.branches.get(h)}}set(t,i,l){const h=()=>{var v,y,a,m;let D,C;for(const[q,H]of t){var E,A,O;const V=this._root;if((V==null?void 0:V.type)==="leaf")throw this.invalidCacheError();const G=D;if(D=G?G.branches.get(C):V,D=(E=D)!==null&&E!==void 0?E:{type:"branch",nodeKey:q,parent:G,branches:new Map,branchKey:C},D.type!=="branch"||D.nodeKey!==q)throw this.invalidCacheError();G==null||G.branches.set(C,D),l==null||(A=l.onNodeVisit)===null||A===void 0||A.call(l,D),C=this._mapNodeValue(H),this._root=(O=this._root)!==null&&O!==void 0?O:D}const L=D?(v=D)===null||v===void 0?void 0:v.branches.get(C):this._root;if(L!=null&&(L.type!=="leaf"||L.branchKey!==C))throw this.invalidCacheError();const U={type:"leaf",value:i,parent:D,branchKey:C};(y=D)===null||y===void 0||y.branches.set(C,U),this._root=(a=this._root)!==null&&a!==void 0?a:U,this._numLeafs++,this._onSet(U),l==null||(m=l.onNodeVisit)===null||m===void 0||m.call(l,U)};try{h()}catch(v){if(v instanceof SI)this.clear(),h();else throw v}}delete(t){const i=this.root();if(!i)return!1;if(t===i)return this._root=null,this._numLeafs=0,!0;let l=t.parent,h=t.branchKey;for(;l;){var v;if(l.branches.delete(h),l===i)return l.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(l.branches.size>0)break;h=(v=l)===null||v===void 0?void 0:v.branchKey,l=l.parent}for(;l!==i;l=l.parent)if(l==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=_L()?"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 Pv(t+(this._name!=null?` - ${this._name}`:"")),new SI}}var xL={TreeCache:vL},ML=xL.TreeCache,zI=Object.freeze({__proto__:null,TreeCache:ML});class wL{constructor(t){var i;kn(this,"_maxSize",void 0),kn(this,"_size",void 0),kn(this,"_head",void 0),kn(this,"_tail",void 0),kn(this,"_map",void 0),kn(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(i=t.mapKey)!==null&&i!==void 0?i:l=>l}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 i=this._keyMapper(t),l=this._map.get(i);if(l)return this.set(t,l.value),l.value}set(t,i){const l=this._keyMapper(t);this._map.get(l)&&this.delete(t);const v=this.head(),y={key:t,right:v,left:null,value:i};v?v.left=y:this._tail=y,this._map.set(l,y),this._head=y,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const i=this._keyMapper(t);if(!this._size||!this._map.has(i))return;const l=ki(this._map.get(i)),h=l.right,v=l.left;h&&(h.left=l.left),v&&(v.right=l.right),l===this.head()&&(this._head=h),l===this.tail()&&(this._tail=v),this._map.delete(i),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var bL={LRUCache:wL},IL=bL.LRUCache,jI=Object.freeze({__proto__:null,LRUCache:IL});const{LRUCache:DL}=jI,{TreeCache:TL}=zI;function AL({name:e,maxSize:t,mapNodeValue:i=l=>l}){const l=new DL({maxSize:t}),h=new TL({name:e,mapNodeValue:i,onHit:v=>{l.set(v,!0)},onSet:v=>{const y=l.tail();l.set(v,!0),y&&h.size()>t&&h.delete(y.key)}});return h}var LI=AL;function ss(e,t,i){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 Bn("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var l;return(l=JSON.stringify(e))!==null&&l!==void 0?l:""}if(zi(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((h,v)=>ss(h,t,v.toString()))}]`;if(typeof e.toJSON=="function")return ss(e.toJSON(i),t,i);if(e instanceof Map){const h={};for(const[v,y]of e)h[typeof v=="string"?v:ss(v,t)]=y;return ss(h,t,i)}return e instanceof Set?ss(Array.from(e).sort((h,v)=>ss(h,t).localeCompare(ss(v,t))),t,i):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?ss(Array.from(e),t,i):`{${Object.keys(e).filter(h=>e[h]!==void 0).sort().map(h=>`${ss(h,t)}:${ss(e[h],t,h)}`).join(",")}}`}function NL(e,t={allowFunctions:!1}){return ss(e,t)}var sm=NL;const{TreeCache:EL}=zI,am={equality:"reference",eviction:"keep-all",maxSize:1/0};function CL({equality:e=am.equality,eviction:t=am.eviction,maxSize:i=am.maxSize}=am,l){const h=SL(e);return zL(t,i,h,l)}function SL(e){switch(e){case"reference":return t=>t;case"value":return t=>sm(t)}throw Bn(`Unrecognized equality policy ${e}`)}function zL(e,t,i,l){switch(e){case"keep-all":return new EL({name:l,mapNodeValue:i});case"lru":return LI({name:l,maxSize:ki(t),mapNodeValue:i});case"most-recent":return LI({name:l,maxSize:1,mapNodeValue:i})}throw Bn(`Unrecognized eviction policy ${e}`)}var jL=CL;function LL(e){return()=>null}var OL={startPerfBlock:LL};const{isLoadable:kL,loadableWithError:lm,loadableWithPromise:PL,loadableWithValue:u2}=Dd,{WrappedValue:OI}=CI,{getNodeLoadable:cm,peekNodeLoadable:RL,setNodeValue:UL}=Za,{saveDepsToStore:BL}=Nd,{DEFAULT_VALUE:FL,getConfigDeletionHandler:QL,getNode:VL,registerNode:kI}=ao,{isRecoilValue:YL}=pu,{markRecoilValueModified:PI}=bs,{retainedByOptionWithDefault:$L}=Bl,{recoilCallback:ZL}=EI,{startPerfBlock:HL}=OL;class RI{}const Pd=new RI,Rd=[],um=new Map,GL=(()=>{let e=0;return()=>e++})();function UI(e){let t=null;const{key:i,get:l,cachePolicy_UNSTABLE:h}=e,v=e.set!=null?e.set:void 0,y=new Set,a=jL(h??{equality:"reference",eviction:"keep-all"},i),m=$L(e.retainedBy_UNSTABLE),D=new Map;let C=0;function E(){return!Ii("recoil_memory_managament_2020")||C>0}function A(J){return J.getState().knownSelectors.add(i),C++,()=>{C--}}function O(){return QL(i)!==void 0&&!E()}function L(J,F,Z,ie,ne){Re(F,ie,ne),U(J,Z)}function U(J,F){ft(J,F)&&ct(J),H(F,!0)}function q(J,F){ft(J,F)&&(ki(ze(J)).stateVersions.clear(),H(F,!1))}function H(J,F){const Z=um.get(J);if(Z!=null){for(const ie of Z)PI(ie,ki(t));F&&um.delete(J)}}function V(J,F){let Z=um.get(F);Z==null&&um.set(F,Z=new Set),Z.add(J)}function G(J,F,Z,ie,ne,De){return F.then(Oe=>{if(!E())throw ct(J),Pd;const we=u2(Oe);return L(J,Z,ne,we,ie),Oe}).catch(Oe=>{if(!E())throw ct(J),Pd;if(zi(Oe))return ee(J,Oe,Z,ie,ne,De);const we=lm(Oe);throw L(J,Z,ne,we,ie),Oe})}function ee(J,F,Z,ie,ne,De){return F.then(Oe=>{if(!E())throw ct(J),Pd;De.loadingDepKey!=null&&De.loadingDepPromise===F?Z.atomValues.set(De.loadingDepKey,u2(Oe)):J.getState().knownSelectors.forEach(it=>{Z.atomValues.delete(it)});const we=xe(J,Z);if(we&&we.state!=="loading"){if((ft(J,ne)||ze(J)==null)&&U(J,ne),we.state==="hasValue")return we.contents;throw we.contents}if(!ft(J,ne)){const it=Me(J,Z);if(it!=null)return it.loadingLoadable.contents}const[Qe,et]=_e(J,Z,ne);if(Qe.state!=="loading"&&L(J,Z,ne,Qe,et),Qe.state==="hasError")throw Qe.contents;return Qe.contents}).catch(Oe=>{if(Oe instanceof RI)throw Pd;if(!E())throw ct(J),Pd;const we=lm(Oe);throw L(J,Z,ne,we,ie),Oe})}function K(J,F,Z,ie){var ne,De,Oe,we;if(ft(J,ie)||F.version===((ne=J.getState())===null||ne===void 0||(De=ne.currentTree)===null||De===void 0?void 0:De.version)||F.version===((Oe=J.getState())===null||Oe===void 0||(we=Oe.nextTree)===null||we===void 0?void 0:we.version)){var Qe,et,it;BL(i,Z,J,(Qe=(et=J.getState())===null||et===void 0||(it=et.nextTree)===null||it===void 0?void 0:it.version)!==null&&Qe!==void 0?Qe:J.getState().currentTree.version)}for(const Ue of Z)y.add(Ue)}function _e(J,F,Z){const ie=HL(i);let ne=!0,De=!0;const Oe=()=>{ie(),De=!1};let we,Qe=!1,et;const it={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function rt({key:ut}){const Lt=cm(J,F,ut);switch(Ue.set(ut,Lt),ne||(K(J,F,new Set(Ue.keys()),Z),q(J,Z)),Lt.state){case"hasValue":return Lt.contents;case"hasError":throw Lt.contents;case"loading":throw it.loadingDepKey=ut,it.loadingDepPromise=Lt.contents,Lt.contents}throw Bn("Invalid Loadable state")}const Tt=ut=>(...Lt)=>{if(De)throw Bn("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&&kd(!1),ZL(J,ut,Lt,{node:t})};try{we=l({get:rt,getCallback:Tt}),we=YL(we)?rt(we):we,kL(we)&&(we.state==="hasError"&&(Qe=!0),we=we.contents),zi(we)?we=G(J,we,F,Ue,Z,it).finally(Oe):Oe(),we=we instanceof OI?we.value:we}catch(ut){we=ut,zi(we)?we=ee(J,we,F,Ue,Z,it).finally(Oe):(Qe=!0,Oe())}return Qe?et=lm(we):zi(we)?et=PL(we):et=u2(we),ne=!1,He(J,Z,Ue),K(J,F,new Set(Ue.keys()),Z),[et,Ue]}function xe(J,F){let Z=F.atomValues.get(i);if(Z!=null)return Z;const ie=new Set;try{Z=a.get(De=>(typeof De!="string"&&kd(!1),cm(J,F,De).contents),{onNodeVisit:De=>{De.type==="branch"&&De.nodeKey!==i&&ie.add(De.nodeKey)}})}catch(De){throw Bn(`Problem with cache lookup for selector "${i}": ${De.message}`)}if(Z){var ne;F.atomValues.set(i,Z),K(J,F,ie,(ne=ze(J))===null||ne===void 0?void 0:ne.executionID)}return Z}function Ne(J,F){const Z=xe(J,F);if(Z!=null)return ct(J),Z;const ie=Me(J,F);if(ie!=null){var ne;return((ne=ie.loadingLoadable)===null||ne===void 0?void 0:ne.state)==="loading"&&V(J,ie.executionID),ie.loadingLoadable}const De=GL(),[Oe,we]=_e(J,F,De);return Oe.state==="loading"?(Ge(J,De,Oe,we,F),V(J,De)):(ct(J),Re(F,Oe,we)),Oe}function Me(J,F){const Z=Y5([D.has(J)?[ki(D.get(J))]:[],Qg(Zv(D,([ne])=>ne!==J),([,ne])=>ne)]);function ie(ne){for(const[De,Oe]of ne)if(!cm(J,F,De).is(Oe))return!0;return!1}for(const ne of Z){if(ne.stateVersions.get(F.version)||!ie(ne.depValuesDiscoveredSoFarDuringAsyncWork))return ne.stateVersions.set(F.version,!0),ne;ne.stateVersions.set(F.version,!1)}}function ze(J){return D.get(J)}function Ge(J,F,Z,ie,ne){D.set(J,{depValuesDiscoveredSoFarDuringAsyncWork:ie,executionID:F,loadingLoadable:Z,stateVersions:new Map([[ne.version,!0]])})}function He(J,F,Z){if(ft(J,F)){const ie=ze(J);ie!=null&&(ie.depValuesDiscoveredSoFarDuringAsyncWork=Z)}}function ct(J){D.delete(J)}function ft(J,F){var Z;return F===((Z=ze(J))===null||Z===void 0?void 0:Z.executionID)}function Ae(J){return Array.from(J.entries()).map(([F,Z])=>[F,Z.contents])}function Re(J,F,Z){J.atomValues.set(i,F);try{a.set(Ae(Z),F)}catch(ie){throw Bn(`Problem with setting cache for selector "${i}": ${ie.message}`)}}function Je(J){if(Rd.includes(i)){const F=`Recoil selector has circular dependencies: ${Rd.slice(Rd.indexOf(i)).join(" → ")}`;return lm(Bn(F))}Rd.push(i);try{return J()}finally{Rd.pop()}}function Ye(J,F){const Z=F.atomValues.get(i);return Z??a.get(ie=>{var ne;return typeof ie!="string"&&kd(!1),(ne=RL(J,F,ie))===null||ne===void 0?void 0:ne.contents})}function Ze(J,F){return Je(()=>Ne(J,F))}function ae(J){J.atomValues.delete(i)}function de(J,F){t==null&&kd(!1);for(const ie of y){var Z;const ne=VL(ie);(Z=ne.clearCache)===null||Z===void 0||Z.call(ne,J,F)}y.clear(),ae(F),a.clear(),PI(J,t)}return v!=null?t=kI({key:i,nodeType:"selector",peek:Ye,get:Ze,set:(F,Z,ie)=>{let ne=!1;const De=new Map;function Oe({key:it}){if(ne)throw Bn("Recoil: Async selector sets are not currently supported.");const Ue=cm(F,Z,it);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const rt=`Getting value of asynchronous atom or selector "${it}" in a pending state while setting selector "${i}" is not yet supported.`;throw Bn(rt)}else throw Ue.contents}function we(it,Ue){if(ne)throw Bn("Recoil: Async selector sets are not currently supported.");const rt=typeof Ue=="function"?Ue(Oe(it)):Ue;UL(F,Z,it.key,rt).forEach((ut,Lt)=>De.set(Lt,ut))}function Qe(it){we(it,FL)}const et=v({set:we,get:Oe,reset:Qe},ie);if(et!==void 0)throw zi(et)?Bn("Recoil: Async selector sets are not currently supported."):Bn("Recoil: selector set should be a void function.");return ne=!0,De},init:A,invalidate:ae,clearCache:de,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:m}):t=kI({key:i,nodeType:"selector",peek:Ye,get:Ze,init:A,invalidate:ae,clearCache:de,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:m})}UI.value=e=>new OI(e);var _u=UI;const{isLoadable:WL,loadableWithError:h2,loadableWithPromise:d2,loadableWithValue:vu}=Dd,{WrappedValue:BI}=CI,{peekNodeInfo:qL}=Za,{DEFAULT_VALUE:Fl,DefaultValue:Ha,getConfigDeletionHandler:FI,registerNode:XL,setConfigDeletionHandler:KL}=ao,{isRecoilValue:JL}=pu,{getRecoilValueAsLoadable:eO,markRecoilValueModified:tO,setRecoilValue:QI,setRecoilValueLoadable:nO}=bs,{retainedByOptionWithDefault:iO}=Bl,Ud=e=>e instanceof BI?e.value:e;function rO(e){const{key:t,persistence_UNSTABLE:i}=e,l=iO(e.retainedBy_UNSTABLE);let h=0;function v(V){return d2(V.then(G=>(y=vu(G),G)).catch(G=>{throw y=h2(G),G}))}let y=zi(e.default)?v(e.default):WL(e.default)?e.default.state==="loading"?v(e.default.contents):e.default:vu(Ud(e.default));y.contents;let a;const m=new Map;function D(V){return V}function C(V,G){const ee=G.then(K=>{var _e,xe;return((xe=((_e=V.getState().nextTree)!==null&&_e!==void 0?_e:V.getState().currentTree).atomValues.get(t))===null||xe===void 0?void 0:xe.contents)===ee&&QI(V,H,K),K}).catch(K=>{var _e,xe;throw((xe=((_e=V.getState().nextTree)!==null&&_e!==void 0?_e:V.getState().currentTree).atomValues.get(t))===null||xe===void 0?void 0:xe.contents)===ee&&nO(V,H,h2(K)),K});return ee}function E(V,G,ee){var K;h++;const _e=()=>{var ze;h--,(ze=m.get(V))===null||ze===void 0||ze.forEach(Ge=>Ge()),m.delete(V)};if(V.getState().knownAtoms.add(t),y.state==="loading"){const ze=()=>{var Ge;((Ge=V.getState().nextTree)!==null&&Ge!==void 0?Ge:V.getState().currentTree).atomValues.has(t)||tO(V,H)};y.contents.finally(ze)}const xe=(K=e.effects)!==null&&K!==void 0?K:e.effects_UNSTABLE;if(xe!=null){let ft=function(ae){if(Ge&&ae.key===t){const de=ze;return de instanceof Ha?A(V,G):zi(de)?d2(de.then(J=>J instanceof Ha?y.toPromise():J)):vu(de)}return eO(V,ae)},Ae=function(ae){return ft(ae).toPromise()},Re=function(ae){var de;const J=qL(V,(de=V.getState().nextTree)!==null&&de!==void 0?de:V.getState().currentTree,ae.key);return Ge&&ae.key===t&&!(ze instanceof Ha)?{...J,isSet:!0,loadable:ft(ae)}:J},ze=Fl,Ge=!0,He=!1,ct=null;const Je=ae=>de=>{if(Ge){const J=ft(H),F=J.state==="hasValue"?J.contents:Fl;ze=typeof de=="function"?de(F):de,zi(ze)&&(ze=ze.then(Z=>(ct={effect:ae,value:Z},Z)))}else{if(zi(de))throw Bn("Setting atoms to async values is not implemented.");typeof de!="function"&&(ct={effect:ae,value:Ud(de)}),QI(V,H,typeof de=="function"?J=>{const F=Ud(de(J));return ct={effect:ae,value:F},F}:Ud(de))}},Ye=ae=>()=>Je(ae)(Fl),Ze=ae=>de=>{var J;const{release:F}=V.subscribeToTransactions(Z=>{var ie;let{currentTree:ne,previousTree:De}=Z.getState();De||(De=ne);const Oe=(ie=ne.atomValues.get(t))!==null&&ie!==void 0?ie:y;if(Oe.state==="hasValue"){var we,Qe,et,it;const Ue=Oe.contents,rt=(we=De.atomValues.get(t))!==null&&we!==void 0?we:y,Tt=rt.state==="hasValue"?rt.contents:Fl;((Qe=ct)===null||Qe===void 0?void 0:Qe.effect)!==ae||((et=ct)===null||et===void 0?void 0:et.value)!==Ue?de(Ue,Tt,!ne.atomValues.has(t)):((it=ct)===null||it===void 0?void 0:it.effect)===ae&&(ct=null)}},t);m.set(V,[...(J=m.get(V))!==null&&J!==void 0?J:[],F])};for(const ae of xe)try{const de=ae({node:H,storeID:V.storeID,parentStoreID_UNSTABLE:V.parentStoreID,trigger:ee,setSelf:Je(ae),resetSelf:Ye(ae),onSet:Ze(ae),getPromise:Ae,getLoadable:ft,getInfo_UNSTABLE:Re});if(de!=null){var Ne;m.set(V,[...(Ne=m.get(V))!==null&&Ne!==void 0?Ne:[],de])}}catch(de){ze=de,He=!0}if(Ge=!1,!(ze instanceof Ha)){var Me;const ae=He?h2(ze):zi(ze)?d2(C(V,ze)):vu(Ud(ze));ae.contents,G.atomValues.set(t,ae),(Me=V.getState().nextTree)===null||Me===void 0||Me.atomValues.set(t,ae)}}return _e}function A(V,G){var ee,K;return(ee=(K=G.atomValues.get(t))!==null&&K!==void 0?K:a)!==null&&ee!==void 0?ee:y}function O(V,G){if(G.atomValues.has(t))return ki(G.atomValues.get(t));if(G.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(i==null)return y;const ee=G.nonvalidatedAtoms.get(t),K=i.validator(ee,Fl);return a=K instanceof Ha?y:vu(K),a}else return y}function L(){a=void 0}function U(V,G,ee){if(G.atomValues.has(t)){const K=ki(G.atomValues.get(t));if(K.state==="hasValue"&&ee===K.contents)return new Map}else if(!G.nonvalidatedAtoms.has(t)&&ee instanceof Ha)return new Map;return a=void 0,new Map().set(t,vu(ee))}function q(){return FI(t)!==void 0&&h<=0}const H=XL({key:t,nodeType:"atom",peek:A,get:O,set:U,init:E,invalidate:L,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:l});return H}function f2(e){const{...t}=e,i="default"in e?e.default:new Promise(()=>{});return JL(i)?oO({...t,default:i}):rO({...t,default:i})}function oO(e){const t=f2({...e,default:Fl,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:l=>l instanceof Ha?l:ki(e.persistence_UNSTABLE).validator(l,Fl)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),i=_u({key:`${e.key}__withFallback`,get:({get:l})=>{const h=l(t);return h instanceof Ha?e.default:h},set:({set:l},h)=>l(t,h),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return KL(i.key,FI(e.key)),i}f2.value=e=>new BI(e);var VI=f2;class sO{constructor(t){var i;kn(this,"_map",void 0),kn(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(i=t==null?void 0:t.mapKey)!==null&&i!==void 0?i:l=>l}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,i){this._map.set(this._keyMapper(t),i)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var aO={MapCache:sO},lO=aO.MapCache,cO=Object.freeze({__proto__:null,MapCache:lO});const{LRUCache:YI}=jI,{MapCache:uO}=cO,hm={equality:"reference",eviction:"none",maxSize:1/0};function hO({equality:e=hm.equality,eviction:t=hm.eviction,maxSize:i=hm.maxSize}=hm){const l=dO(e);return fO(t,i,l)}function dO(e){switch(e){case"reference":return t=>t;case"value":return t=>sm(t)}throw Bn(`Unrecognized equality policy ${e}`)}function fO(e,t,i){switch(e){case"keep-all":return new uO({mapKey:i});case"lru":return new YI({mapKey:i,maxSize:ki(t)});case"most-recent":return new YI({mapKey:i,maxSize:1})}throw Bn(`Unrecognized eviction policy ${e}`)}var $I=hO;const{setConfigDeletionHandler:pO}=ao;function gO(e){var t,i;const l=$I({equality:(t=(i=e.cachePolicyForParams_UNSTABLE)===null||i===void 0?void 0:i.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return h=>{var v,y;const a=l.get(h);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:m,...D}=e,C="default"in e?e.default:new Promise(()=>{}),E=VI({...D,key:`${e.key}__${(v=sm(h))!==null&&v!==void 0?v:"void"}`,default:typeof C=="function"?C(h):C,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(h):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(h):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(h):(y=e.effects)!==null&&y!==void 0?y:e.effects_UNSTABLE});return l.set(h,E),pO(E.key,()=>{l.delete(h)}),E}}var mO=gO;const{setConfigDeletionHandler:yO}=ao;let _O=0;function vO(e){var t,i;const l=$I({equality:(t=(i=e.cachePolicyForParams_UNSTABLE)===null||i===void 0?void 0:i.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return h=>{var v;let y;try{y=l.get(h)}catch(A){throw Bn(`Problem with cache lookup for selector ${e.key}: ${A.message}`)}if(y!=null)return y;const a=`${e.key}__selectorFamily/${(v=sm(h,{allowFunctions:!0}))!==null&&v!==void 0?v:"void"}/${_O++}`,m=A=>e.get(h)(A),D=e.cachePolicy_UNSTABLE,C=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(h):e.retainedBy_UNSTABLE;let E;if(e.set!=null){const A=e.set;E=_u({key:a,get:m,set:(L,U)=>A(h)(L,U),cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:C})}else E=_u({key:a,get:m,cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:C});return l.set(h,E),yO(E.key,()=>{l.delete(h)}),E}}var Ga=vO;const xO=Ga({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function MO(e){return xO(e)}var wO=MO;const bO=Ga({key:"__error",get:e=>()=>{throw Bn(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function IO(e){return bO(e)}var DO=IO;function TO(e){return e}var AO=TO;const{loadableWithError:ZI,loadableWithPromise:HI,loadableWithValue:GI}=Dd;function dm(e,t){const i=Array(t.length).fill(void 0),l=Array(t.length).fill(void 0);for(const[h,v]of t.entries())try{i[h]=e(v)}catch(y){l[h]=y}return[i,l]}function NO(e){return e!=null&&!zi(e)}function fm(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function p2(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((i,l,h)=>({...i,[l]:t[h]}),{})}function xu(e,t,i){const l=i.map((h,v)=>h==null?GI(t[v]):zi(h)?HI(h):ZI(h));return p2(e,l)}function EO(e,t){return t.map((i,l)=>i===void 0?e[l]:i)}const CO=Ga({key:"__waitForNone",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);return xu(e,l,h)},dangerouslyAllowMutability:!0}),SO=Ga({key:"__waitForAny",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);return h.some(v=>!zi(v))?xu(e,l,h):new Promise(v=>{for(const[y,a]of h.entries())zi(a)&&a.then(m=>{l[y]=m,h[y]=void 0,v(xu(e,l,h))}).catch(m=>{h[y]=m,v(xu(e,l,h))})})},dangerouslyAllowMutability:!0}),zO=Ga({key:"__waitForAll",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);if(h.every(y=>y==null))return p2(e,l);const v=h.find(NO);if(v!=null)throw v;return Promise.all(h).then(y=>p2(e,EO(l,y)))},dangerouslyAllowMutability:!0}),jO=Ga({key:"__waitForAllSettled",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);return h.every(v=>!zi(v))?xu(e,l,h):Promise.all(h.map((v,y)=>zi(v)?v.then(a=>{l[y]=a,h[y]=void 0}).catch(a=>{l[y]=void 0,h[y]=a}):null)).then(()=>xu(e,l,h))},dangerouslyAllowMutability:!0}),LO=Ga({key:"__noWait",get:e=>({get:t})=>{try{return _u.value(GI(t(e)))}catch(i){return _u.value(zi(i)?HI(i):ZI(i))}},dangerouslyAllowMutability:!0});var OO={waitForNone:CO,waitForAny:SO,waitForAll:zO,waitForAllSettled:jO,noWait:LO};const{RecoilLoadable:kO}=Dd,{DefaultValue:PO}=ao,{RecoilRoot:RO,useRecoilStoreID:UO}=na,{isRecoilValue:BO}=pu,{retentionZone:FO}=Zg,{freshSnapshot:QO}=Jg,{useRecoilState:VO,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:YO,useRecoilStateLoadable:$O,useRecoilValue:ZO,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:HO,useRecoilValueLoadable:GO,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:WO,useResetRecoilState:qO,useSetRecoilState:XO}=a7,{useGotoRecoilSnapshot:KO,useRecoilSnapshot:JO,useRecoilTransactionObserver:ek}=bI,{useRecoilCallback:tk}=EI,{noWait:nk,waitForAll:ik,waitForAllSettled:rk,waitForAny:ok,waitForNone:sk}=OO;var pm={DefaultValue:PO,isRecoilValue:BO,RecoilLoadable:kO,RecoilEnv:fu,RecoilRoot:RO,useRecoilStoreID:UO,useRecoilBridgeAcrossReactRoots_UNSTABLE:L7,atom:VI,selector:_u,atomFamily:mO,selectorFamily:Ga,constSelector:wO,errorSelector:DO,readOnlySelector:AO,noWait:nk,waitForNone:sk,waitForAny:ok,waitForAll:ik,waitForAllSettled:rk,useRecoilValue:ZO,useRecoilValueLoadable:GO,useRecoilState:VO,useRecoilStateLoadable:$O,useSetRecoilState:XO,useResetRecoilState:qO,useGetRecoilValueInfo_UNSTABLE:N7,useRecoilRefresher_UNSTABLE:cL,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:WO,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:HO,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:YO,useRecoilCallback:tk,useRecoilTransaction_UNSTABLE:pL,useGotoRecoilSnapshot:KO,useRecoilSnapshot:JO,useRecoilTransactionObserver_UNSTABLE:ek,snapshot_UNSTABLE:QO,useRetain:i2,retentionZone:FO},ak=pm.RecoilRoot,Ei=pm.atom,Nn=pm.useRecoilValue,Kn=pm.useRecoilState;const lk=(e,t)=>{const i=e[t];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((l,h)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(h.bind(null,new Error("Unknown variable dynamic import: "+t)))})},ck="mi-components";let gm,WI,Do=!1,g2=!1;const ia=(e,t="")=>()=>{},uk=(e,t)=>()=>{},hk="{visibility:hidden}.hydrated{visibility:inherit}",qI="http://www.w3.org/1999/xlink",XI={},dk="http://www.w3.org/2000/svg",fk="http://www.w3.org/1999/xhtml",pk=e=>e!=null,m2=e=>(e=typeof e,e==="object"||e==="function");function KI(e){var t,i,l;return(l=(i=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||i===void 0?void 0:i.getAttribute("content"))!==null&&l!==void 0?l:void 0}const ye=(e,t,...i)=>{let l=null,h=null,v=!1,y=!1;const a=[],m=C=>{for(let E=0;E<C.length;E++)l=C[E],Array.isArray(l)?m(l):l!=null&&typeof l!="boolean"&&((v=typeof e!="function"&&!m2(l))&&(l=String(l)),v&&y?a[a.length-1].$text$+=l:a.push(v?y2(null,l):l),y=v)};if(m(i),t){t.key&&(h=t.key);{const C=t.className||t.class;C&&(t.class=typeof C!="object"?C:Object.keys(C).filter(E=>C[E]).join(" "))}}const D=y2(e,null);return D.$attrs$=t,a.length>0&&(D.$children$=a),D.$key$=h,D},y2=(e,t)=>{const i={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return i.$attrs$=null,i.$key$=null,i},ar={},gk=e=>e&&e.$tag$===ar,mk=(e,t)=>e!=null&&!m2(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ra=e=>Wa(e).$hostElement$,Di=(e,t,i)=>{const l=ra(e);return{emit:h=>JI(l,t,{bubbles:!!(i&4),composed:!!(i&2),cancelable:!!(i&1),detail:h})}},JI=(e,t,i)=>{const l=wr.ce(t,i);return e.dispatchEvent(l),l},eD=new WeakMap,yk=(e,t,i)=>{let l=vm.get(e);Rk&&i?(l=l||new CSSStyleSheet,typeof l=="string"?l=t:l.replaceSync(t)):l=t,vm.set(e,l)},_k=(e,t,i,l)=>{var h;let v=tD(t);const y=vm.get(v);if(e=e.nodeType===11?e:Ds,y)if(typeof y=="string"){e=e.head||e;let a=eD.get(e),m;if(a||eD.set(e,a=new Set),!a.has(v)){{m=Ds.createElement("style"),m.innerHTML=y;const D=(h=wr.$nonce$)!==null&&h!==void 0?h:KI(Ds);D!=null&&m.setAttribute("nonce",D),e.insertBefore(m,e.querySelector("link"))}a&&a.add(v)}}else e.adoptedStyleSheets.includes(y)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,y]);return v},vk=e=>{const t=e.$cmpMeta$,i=e.$hostElement$,l=t.$flags$,h=ia("attachStyles",t.$tagName$),v=_k(i.shadowRoot?i.shadowRoot:i.getRootNode(),t);l&10&&(i["s-sc"]=v,i.classList.add(v+"-h")),h()},tD=(e,t)=>"sc-"+e.$tagName$,nD=(e,t,i,l,h,v)=>{if(i!==l){let y=gD(e,t),a=t.toLowerCase();if(t==="class"){const m=e.classList,D=iD(i),C=iD(l);m.remove(...D.filter(E=>E&&!C.includes(E))),m.add(...C.filter(E=>E&&!D.includes(E)))}else if(t==="style"){for(const m in i)(!l||l[m]==null)&&(m.includes("-")?e.style.removeProperty(m):e.style[m]="");for(const m in l)(!i||l[m]!==i[m])&&(m.includes("-")?e.style.setProperty(m,l[m]):e.style[m]=l[m])}else if(t!=="key")if(t==="ref")l&&l(e);else if(!y&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):gD(Bd,a)?t=a.slice(2):t=a[2]+t.slice(3),i&&wr.rel(e,t,i,!1),l&&wr.ael(e,t,l,!1);else{const m=m2(l);if((y||m&&l!==null)&&!h)try{if(e.tagName.includes("-"))e[t]=l;else{const C=l??"";t==="list"?y=!1:(i==null||e[t]!=C)&&(e[t]=C)}}catch{}let D=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,D=!0),l==null||l===!1?(l!==!1||e.getAttribute(t)==="")&&(D?e.removeAttributeNS(qI,t):e.removeAttribute(t)):(!y||v&4||h)&&!m&&(l=l===!0?"":l,D?e.setAttributeNS(qI,t,l):e.setAttribute(t,l))}}},xk=/\s/,iD=e=>e?e.split(xk):[],rD=(e,t,i,l)=>{const h=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,v=e&&e.$attrs$||XI,y=t.$attrs$||XI;for(l in v)l in y||nD(h,l,v[l],void 0,i,t.$flags$);for(l in y)nD(h,l,v[l],y[l],i,t.$flags$)},mm=(e,t,i,l)=>{const h=t.$children$[i];let v=0,y,a;if(h.$text$!==null)y=h.$elm$=Ds.createTextNode(h.$text$);else{if(Do||(Do=h.$tag$==="svg"),y=h.$elm$=Ds.createElementNS(Do?dk:fk,h.$tag$),Do&&h.$tag$==="foreignObject"&&(Do=!1),rD(null,h,Do),pk(gm)&&y["s-si"]!==gm&&y.classList.add(y["s-si"]=gm),h.$children$)for(v=0;v<h.$children$.length;++v)a=mm(e,h,v),a&&y.appendChild(a);h.$tag$==="svg"?Do=!1:y.tagName==="foreignObject"&&(Do=!0)}return y},oD=(e,t,i,l,h,v)=>{let y=e,a;for(y.shadowRoot&&y.tagName===WI&&(y=y.shadowRoot);h<=v;++h)l[h]&&(a=mm(null,i,h),a&&(l[h].$elm$=a,y.insertBefore(a,t)))},sD=(e,t,i,l,h)=>{for(;t<=i;++t)(l=e[t])&&(h=l.$elm$,aD(l),h.remove())},Mk=(e,t,i,l)=>{let h=0,v=0,y=0,a=0,m=t.length-1,D=t[0],C=t[m],E=l.length-1,A=l[0],O=l[E],L,U;for(;h<=m&&v<=E;)if(D==null)D=t[++h];else if(C==null)C=t[--m];else if(A==null)A=l[++v];else if(O==null)O=l[--E];else if(ym(D,A))Mu(D,A),D=t[++h],A=l[++v];else if(ym(C,O))Mu(C,O),C=t[--m],O=l[--E];else if(ym(D,O))Mu(D,O),e.insertBefore(D.$elm$,C.$elm$.nextSibling),D=t[++h],O=l[--E];else if(ym(C,A))Mu(C,A),e.insertBefore(C.$elm$,D.$elm$),C=t[--m],A=l[++v];else{for(y=-1,a=h;a<=m;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===A.$key$){y=a;break}y>=0?(U=t[y],U.$tag$!==A.$tag$?L=mm(t&&t[v],i,y):(Mu(U,A),t[y]=void 0,L=U.$elm$),A=l[++v]):(L=mm(t&&t[v],i,v),A=l[++v]),L&&D.$elm$.parentNode.insertBefore(L,D.$elm$)}h>m?oD(e,l[E+1]==null?null:l[E+1].$elm$,i,l,v,E):v>E&&sD(t,h,m)},ym=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Mu=(e,t)=>{const i=t.$elm$=e.$elm$,l=e.$children$,h=t.$children$,v=t.$tag$,y=t.$text$;y===null?(Do=v==="svg"?!0:v==="foreignObject"?!1:Do,v==="slot"||rD(e,t,Do),l!==null&&h!==null?Mk(i,l,t,h):h!==null?(e.$text$!==null&&(i.textContent=""),oD(i,null,t,h,0,h.length-1)):l!==null&&sD(l,0,l.length-1),Do&&v==="svg"&&(Do=!1)):e.$text$!==y&&(i.data=y)},aD=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(aD)},wk=(e,t)=>{const i=e.$hostElement$,l=e.$cmpMeta$,h=e.$vnode$||y2(null,null),v=gk(t)?t:ye(null,null,t);WI=i.tagName,l.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},l.$attrsToReflect$.map(([y,a])=>v.$attrs$[a]=i[y])),v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=h.$elm$=i.shadowRoot||i,gm=i["s-sc"],Mu(h,v)},lD=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(i=>e.$onRenderResolve$=i))},_m=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return lD(e,e.$ancestorComponent$),Bk(()=>bk(e,t))},bk=(e,t)=>{const i=ia("scheduleUpdate",e.$cmpMeta$.$tagName$),l=e.$lazyInstance$;let h;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([v,y])=>Ql(l,v,y)),e.$queuedListeners$=null),h=Ql(l,"componentWillLoad")),h=uD(h,()=>Ql(l,"componentWillRender")),i(),uD(h,()=>Ik(e,l,t))},Ik=async(e,t,i)=>{const l=e.$hostElement$,h=ia("update",e.$cmpMeta$.$tagName$),v=l["s-rc"];i&&vk(e);const y=ia("render",e.$cmpMeta$.$tagName$);Dk(e,t),v&&(v.map(a=>a()),l["s-rc"]=void 0),y(),h();{const a=l["s-p"],m=()=>Tk(e);a.length===0?m():(Promise.all(a).then(m),e.$flags$|=4,a.length=0)}},Dk=(e,t,i)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,wk(e,t)}catch(l){Vl(l,e.$hostElement$)}return null},Tk=e=>{const t=e.$cmpMeta$.$tagName$,i=e.$hostElement$,l=ia("postUpdate",t),h=e.$lazyInstance$,v=e.$ancestorComponent$;Ql(h,"componentDidRender"),e.$flags$&64?l():(e.$flags$|=64,hD(i),Ql(h,"componentDidLoad"),l(),e.$onReadyResolve$(i),v||cD()),e.$onInstanceResolve$(i),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&M2(()=>_m(e,!1)),e.$flags$&=-517},_2=e=>{{const t=Wa(e),i=t.$hostElement$.isConnected;return i&&(t.$flags$&18)===2&&_m(t,!1),i}},cD=e=>{hD(Ds.documentElement),M2(()=>JI(Bd,"appload",{detail:{namespace:ck}}))},Ql=(e,t,i)=>{if(e&&e[t])try{return e[t](i)}catch(l){Vl(l)}},uD=(e,t)=>e&&e.then?e.then(t):t(),hD=e=>e.classList.add("hydrated"),Ak=(e,t)=>Wa(e).$instanceValues$.get(t),Nk=(e,t,i,l)=>{const h=Wa(e),v=h.$hostElement$,y=h.$instanceValues$.get(t),a=h.$flags$,m=h.$lazyInstance$;i=mk(i,l.$members$[t][0]);const D=Number.isNaN(y)&&Number.isNaN(i),C=i!==y&&!D;if((!(a&8)||y===void 0)&&C&&(h.$instanceValues$.set(t,i),m)){if(l.$watchers$&&a&128){const E=l.$watchers$[t];E&&E.map(A=>{try{m[A](i,y,t)}catch(O){Vl(O,v)}})}(a&18)===2&&_m(h,!1)}},dD=(e,t,i)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const l=Object.entries(t.$members$),h=e.prototype;if(l.map(([v,[y]])=>{y&31||i&2&&y&32?Object.defineProperty(h,v,{get(){return Ak(this,v)},set(a){Nk(this,v,a,t)},configurable:!0,enumerable:!0}):i&1&&y&64&&Object.defineProperty(h,v,{value(...a){const m=Wa(this);return m.$onInstancePromise$.then(()=>m.$lazyInstance$[v](...a))}})}),i&1){const v=new Map;h.attributeChangedCallback=function(y,a,m){wr.jmp(()=>{const D=v.get(y);if(this.hasOwnProperty(D))m=this[D],delete this[D];else if(h.hasOwnProperty(D)&&typeof this[D]=="number"&&this[D]==m)return;this[D]=m===null&&typeof this[D]=="boolean"?!1:m})},e.observedAttributes=l.filter(([y,a])=>a[0]&15).map(([y,a])=>{const m=a[1]||y;return v.set(m,y),a[0]&512&&t.$attrsToReflect$.push([y,m]),m})}}return e},Ek=async(e,t,i,l,h)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,h=Pk(i),h.then){const m=uk();h=await h,m()}h.isProxied||(i.$watchers$=h.watchers,dD(h,i,2),h.isProxied=!0);const a=ia("createInstance",i.$tagName$);t.$flags$|=8;try{new h(t)}catch(m){Vl(m)}t.$flags$&=-9,t.$flags$|=128,a(),fD(t.$lazyInstance$)}if(h.style){let a=h.style;const m=tD(i);if(!vm.has(m)){const D=ia("registerStyles",i.$tagName$);yk(m,a,!!(i.$flags$&1)),D()}}}const v=t.$ancestorComponent$,y=()=>_m(t,!0);v&&v["s-rc"]?v["s-rc"].push(y):y()},fD=e=>{Ql(e,"connectedCallback")},Ck=e=>{if(!(wr.$flags$&1)){const t=Wa(e),i=t.$cmpMeta$,l=ia("connectedCallback",i.$tagName$);if(t.$flags$&1)pD(e,t,i.$listeners$),fD(t.$lazyInstance$);else{t.$flags$|=1;{let h=e;for(;h=h.parentNode||h.host;)if(h["s-p"]){lD(t,t.$ancestorComponent$=h);break}}i.$members$&&Object.entries(i.$members$).map(([h,[v]])=>{if(v&31&&e.hasOwnProperty(h)){const y=e[h];delete e[h],e[h]=y}}),Ek(e,t,i)}l()}},Sk=e=>{if(!(wr.$flags$&1)){const t=Wa(e),i=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(l=>l()),t.$rmListeners$=void 0),Ql(i,"disconnectedCallback")}},zk=(e,t={})=>{var i;const l=ia(),h=[],v=t.exclude||[],y=Bd.customElements,a=Ds.head,m=a.querySelector("meta[charset]"),D=Ds.createElement("style"),C=[];let E,A=!0;Object.assign(wr,t),wr.$resourcesUrl$=new URL(t.resourcesUrl||"./",Ds.baseURI).href,e.map(O=>{O[1].map(L=>{const U={$flags$:L[0],$tagName$:L[1],$members$:L[2],$listeners$:L[3]};U.$members$=L[2],U.$listeners$=L[3],U.$attrsToReflect$=[],U.$watchers$={};const q=U.$tagName$,H=class extends HTMLElement{constructor(V){super(V),V=this,kk(V,U),U.$flags$&1&&V.attachShadow({mode:"open"})}connectedCallback(){E&&(clearTimeout(E),E=null),A?C.push(this):wr.jmp(()=>Ck(this))}disconnectedCallback(){wr.jmp(()=>Sk(this))}componentOnReady(){return Wa(this).$onReadyPromise$}};U.$lazyBundleId$=O[0],!v.includes(q)&&!y.get(q)&&(h.push(q),y.define(q,dD(H,U,1)))})});{D.innerHTML=h+hk,D.setAttribute("data-styles","");const O=(i=wr.$nonce$)!==null&&i!==void 0?i:KI(Ds);O!=null&&D.setAttribute("nonce",O),a.insertBefore(D,m?m.nextSibling:a.firstChild)}A=!1,C.length?C.map(O=>O.connectedCallback()):wr.jmp(()=>E=setTimeout(cD,30)),l()},pD=(e,t,i,l)=>{i&&i.map(([h,v,y])=>{const a=Lk(e,h),m=jk(t,y),D=Ok(h);wr.ael(a,v,m,D),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>wr.rel(a,v,m,D))})},jk=(e,t)=>i=>{try{e.$flags$&256?e.$lazyInstance$[t](i):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,i])}catch(l){Vl(l)}},Lk=(e,t)=>t&8?Bd:e,Ok=e=>(e&2)!==0,v2=new WeakMap,Wa=e=>v2.get(e),$n=(e,t)=>v2.set(t.$lazyInstance$=e,t),kk=(e,t)=>{const i={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return i.$onInstancePromise$=new Promise(l=>i.$onInstanceResolve$=l),i.$onReadyPromise$=new Promise(l=>i.$onReadyResolve$=l),e["s-p"]=[],e["s-rc"]=[],pD(e,i,t.$listeners$),v2.set(e,i)},gD=(e,t)=>t in e,Vl=(e,t)=>(0,console.error)(e,t),mD=new Map,Pk=(e,t,i)=>{const l=e.$tagName$.replace(/-/g,"_"),h=e.$lazyBundleId$,v=mD.get(h);if(v)return v[l];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return lk(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>RP),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>FP),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>VP),"./mi-column.entry.js":()=>Promise.resolve().then(()=>YP),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>HP),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>tR),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>rR),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>oR),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>aR),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>cR),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>yR),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>vR),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>MR),"./mi-list.entry.js":()=>Promise.resolve().then(()=>bR),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>GV),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>qV),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>JV),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>iY),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>oY),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>wY),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>IY),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>TY),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>NY),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>CY),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>zY),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>LY),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>kY),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>RY),"./mi-search.entry.js":()=>Promise.resolve().then(()=>VY),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>$Y),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>HY),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>WY),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>qY),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>KY),"./mi-time.entry.js":()=>Promise.resolve().then(()=>JY)}),`./${h}.entry.js`).then(y=>(mD.set(h,y),y[l]),Vl)},vm=new Map,Bd=typeof window<"u"?window:{},Ds=Bd.document||{head:{}},wr={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,l)=>e.addEventListener(t,i,l),rel:(e,t,i,l)=>e.removeEventListener(t,i,l),ce:(e,t)=>new CustomEvent(e,t)},yD=e=>Promise.resolve(e),Rk=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),_D=[],vD=[],Uk=(e,t)=>i=>{e.push(i),g2||(g2=!0,t&&wr.$flags$&4?M2(x2):wr.raf(x2))},xD=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){Vl(i)}e.length=0},x2=()=>{xD(_D),xD(vD),(g2=_D.length>0)&&wr.raf(x2)},M2=e=>yD().then(e),Bk=Uk(vD,!0),Fk=()=>yD(),Qk=(e,t)=>typeof window>"u"?Promise.resolve():Fk().then(()=>zk([["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],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-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[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-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["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"],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[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]}]]],["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],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],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[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-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtonsState:[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)),zH="",qa={Google:"google",Mapbox:"mapbox"},oa=Ei({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),Vk=e=>{const t=Nn(oa),i=Xe.useRef(),[l,h]=Xe.useState([]);Xe.useEffect(()=>{(async()=>{if(t&&e){for(const a of l)i.current.disableLiveData(a);i.current=new window.mapsindoors.LiveDataManager(t);const y=await i.current.LiveDataInfo.activeDomainTypes();for(const a of y)await i.current.enableLiveData(a);h(y)}})()},[e,t])},w2=Ei({key:"venues",default:[]});var Yk=function e(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var l,h,v;if(Array.isArray(t)){if(l=t.length,l!=i.length)return!1;for(h=l;h--!==0;)if(!e(t[h],i[h]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(v=Object.keys(t),l=v.length,l!==Object.keys(i).length)return!1;for(h=l;h--!==0;)if(!Object.prototype.hasOwnProperty.call(i,v[h]))return!1;for(h=l;h--!==0;){var y=v[h];if(!e(t[y],i[y]))return!1}return!0}return t!==t&&i!==i};const MD="__googleMapsScriptId";var wu;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(wu||(wu={}));let $k=class zh{constructor({apiKey:t,authReferrerPolicy:i,channel:l,client:h,id:v=MD,language:y,libraries:a=[],mapIds:m,nonce:D,region:C,retries:E=3,url:A="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=i,this.channel=l,this.client=h,this.id=v||MD,this.language=y,this.libraries=a,this.mapIds=m,this.nonce=D,this.region=C,this.retries=E,this.url=A,this.version=O,zh.instance){if(!Yk(this.options,zh.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(zh.instance.options)}`);return zh.instance}zh.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?wu.FAILURE:this.done?wu.SUCCESS:this.loading?wu.LOADING:wu.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,i)=>{this.loadCallback(l=>{l?i(l.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(),i=document.createElement("script");i.id=this.id,i.type="text/javascript",i.src=t,i.onerror=this.loadErrorCallback.bind(this),i.defer=!0,i.async=!0,this.nonce&&(i.nonce=this.nonce),document.head.appendChild(i)}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 i=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${i} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},i)}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 b2=Ei({key:"gmApiKey",default:null}),Yl=Ei({key:"primaryColor",default:"#005655"}),wD=Ei({key:"gmMapId",default:null});function Zk({onMapView:e,onPositionControl:t}){const i=Nn(b2),l=Nn(wD),[h,v]=Xe.useState(),[y,a]=Xe.useState(),[m,D]=Xe.useState(!1),[C,E]=Xe.useState(!1),A=Nn(oa),O=Nn(Yl);return Xe.useEffect(()=>{new $k({apiKey:i,version:"quarterly",libraries:["geometry","places"]}).load().then(U=>{v(U);const q={element:document.getElementById("map"),disableDefaultUI:!0,center:{lat:0,lng:0},zoom:21,mapId:l},H=new window.mapsindoors.mapView.GoogleMapsView(q);a(H);const V=new window.mapsindoors.directions.GoogleMapsProvider;e(H,V)})},[]),Xe.useEffect(()=>{if(A&&y&&h&&!C){const L=document.createElement("mi-my-position");L.mapsindoors=A,y.getMap().controls[h.maps.ControlPosition.RIGHT_TOP].push(L),E(!0),t(L)}if(A&&y&&h&&!m){const L=document.createElement("mi-floor-selector");L.mapsindoors=A,L.primaryColor=O,y.getMap().controls[h.maps.ControlPosition.RIGHT_TOP].push(L),D(!0)}},[A,y,h,m,C]),Ve.jsx("div",{className:"map-container",id:"map"})}var bD={exports:{}};(function(e,t){(function(i,l){e.exports=l()})(jh,function(){var i,l,h;function v(a,m){if(!i)i=m;else if(!l)l=m;else{var D="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 = {}; ("+i+")(sharedChunk); ("+l+")(sharedChunk); self.onerror = null;",C={};i(C),h=m(C),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(h.workerUrl=window.URL.createObjectURL(new Blob([D],{type:"text/javascript"})))}}v(["exports"],function(a){var m=typeof self<"u"?self:{},D="2.12.1";let C;const E={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(C==null){const r=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{C=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):r}catch{C=r}}return C},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(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},A={supported:!1,testSupport:function(r){!U&&L&&(q?H(r):O=r)}};let O,L,U=!1,q=!1;function H(r){const n=r.createTexture();r.bindTexture(r.TEXTURE_2D,n);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,L),r.isContextLost())return;A.supported=!0}catch{}r.deleteTexture(n),U=!0}m.document&&(L=m.document.createElement("img"),L.onload=function(){O&&H(O),O=null,q=!0},L.onerror=function(){U=!0,O=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const V="01";var G=ee;function ee(r,n,o,c){this.cx=3*r,this.bx=3*(o-r)-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=r,this.p1y=n,this.p2x=o,this.p2y=c}ee.prototype={sampleCurveX:function(r){return((this.ax*r+this.bx)*r+this.cx)*r},sampleCurveY:function(r){return((this.ay*r+this.by)*r+this.cy)*r},sampleCurveDerivativeX:function(r){return(3*this.ax*r+2*this.bx)*r+this.cx},solveCurveX:function(r,n){if(n===void 0&&(n=1e-6),r<0)return 0;if(r>1)return 1;for(var o=r,c=0;c<8;c++){var d=this.sampleCurveX(o)-r;if(Math.abs(d)<n)return o;var p=this.sampleCurveDerivativeX(o);if(Math.abs(p)<1e-6)break;o-=d/p}var _=0,M=1;for(o=r,c=0;c<20&&(d=this.sampleCurveX(o),!(Math.abs(d-r)<n));c++)r>d?_=o:M=o,o=.5*(M-_)+_;return o},solve:function(r,n){return this.sampleCurveY(this.solveCurveX(r,n))}};var K=_e;function _e(r,n){this.x=r,this.y=n}_e.prototype={clone:function(){return new _e(this.x,this.y)},add:function(r){return this.clone()._add(r)},sub:function(r){return this.clone()._sub(r)},multByPoint:function(r){return this.clone()._multByPoint(r)},divByPoint:function(r){return this.clone()._divByPoint(r)},mult:function(r){return this.clone()._mult(r)},div:function(r){return this.clone()._div(r)},rotate:function(r){return this.clone()._rotate(r)},rotateAround:function(r,n){return this.clone()._rotateAround(r,n)},matMult:function(r){return this.clone()._matMult(r)},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(r){return this.x===r.x&&this.y===r.y},dist:function(r){return Math.sqrt(this.distSqr(r))},distSqr:function(r){var n=r.x-this.x,o=r.y-this.y;return n*n+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(r){return Math.atan2(this.y-r.y,this.x-r.x)},angleWith:function(r){return this.angleWithSep(r.x,r.y)},angleWithSep:function(r,n){return Math.atan2(this.x*n-this.y*r,this.x*r+this.y*n)},_matMult:function(r){var n=r[2]*this.x+r[3]*this.y;return this.x=r[0]*this.x+r[1]*this.y,this.y=n,this},_add:function(r){return this.x+=r.x,this.y+=r.y,this},_sub:function(r){return this.x-=r.x,this.y-=r.y,this},_mult:function(r){return this.x*=r,this.y*=r,this},_div:function(r){return this.x/=r,this.y/=r,this},_multByPoint:function(r){return this.x*=r.x,this.y*=r.y,this},_divByPoint:function(r){return this.x/=r.x,this.y/=r.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var r=this.y;return this.y=this.x,this.x=-r,this},_rotate:function(r){var n=Math.cos(r),o=Math.sin(r),c=o*this.x+n*this.y;return this.x=n*this.x-o*this.y,this.y=c,this},_rotateAround:function(r,n){var o=Math.cos(r),c=Math.sin(r),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}},_e.convert=function(r){return r instanceof _e?r:Array.isArray(r)?new _e(r[0],r[1]):r};const xe=Math.PI/180,Ne=180/Math.PI;function Me(r){return r*xe}function ze(r){return r*Ne}const Ge=[[0,0],[1,0],[1,1],[0,1]];function He(r){if(r<=0)return 0;if(r>=1)return 1;const n=r*r,o=n*r;return 4*(r<.5?o:3*(r-n)+o-.75)}function ct(r,n,o,c){const d=new G(r,n,o,c);return function(p){return d.solve(p)}}const ft=ct(.25,.1,.25,1);function Ae(r,n,o){return Math.min(o,Math.max(n,r))}function Re(r,n,o){return(o=Ae((o-r)/(n-r),0,1))*o*(3-2*o)}function Je(r,n,o){const c=o-n,d=((r-n)%c+c)%c+n;return d===n?o:d}function Ye(r,n,o){if(!r.length)return o(null,[]);let c=r.length;const d=new Array(r.length);let p=null;r.forEach((_,M)=>{n(_,(b,I)=>{b&&(p=b),d[M]=I,--c==0&&o(p,d)})})}function Ze(r){const n=[];for(const o in r)n.push(r[o]);return n}function ae(r,...n){for(const o of n)for(const c in o)r[c]=o[c];return r}let de=1;function J(){return de++}function F(){return function r(n){return n?(n^Math.random()*(16>>n/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,r)}()}function Z(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function ie(r){return!!r&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)}function ne(r,n){r.forEach(o=>{n[o]&&(n[o]=n[o].bind(n))})}function De(r,n){return r.indexOf(n,r.length-n.length)!==-1}function Oe(r,n,o){const c={};for(const d in r)c[d]=n.call(o||this,r[d],d,r);return c}function we(r,n,o){const c={};for(const d in r)n.call(o||this,r[d],d,r)&&(c[d]=r[d]);return c}function Qe(r){return Array.isArray(r)?r.map(Qe):typeof r=="object"&&r?Oe(r,Qe):r}const et={};function it(r){et[r]||(typeof console<"u"&&console.warn(r),et[r]=!0)}function Ue(r,n,o){return(o.y-r.y)*(n.x-r.x)>(n.y-r.y)*(o.x-r.x)}function rt(r){let n=0;for(let o,c,d=0,p=r.length,_=p-1;d<p;_=d++)o=r[d],c=r[_],n+=(c.x-o.x)*(o.y+c.y);return n}function Tt(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function ut(r){const n={};if(r.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 Lt=null;function Zt(r){if(Lt==null){const n=r.navigator?r.navigator.userAgent:null;Lt=!!r.safari||!(!n||!(/\b(iPad|iPhone|iPod)\b/.test(n)||n.match("Safari")&&!n.match("Chrome")))}return Lt}function Xt(r){try{const n=m[r];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch{return!1}}function _n(r,n){return[r[4*n],r[4*n+1],r[4*n+2],r[4*n+3]]}const li="mapbox-tiles";let bn,Pn,Mn=500,cn=50;function mn(){try{return m.caches}catch{}}function kt(){mn()&&!bn&&(bn=m.caches.open(li))}function Tn(r){const n=r.indexOf("?");if(n<0)return r;const o=function(d){const p=d.indexOf("?");return p>0?d.slice(p+1).split("&"):[]}(r),c=o.filter(d=>{const p=d.split("=");return p[0]==="language"||p[0]==="worldview"});return c.length?`${r.slice(0,n)}?${c.join("&")}`:r.slice(0,n)}let Gn=1/0;const Un={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Un);class wn extends Error{constructor(n,o,c){o===401&&yn(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 sn=Tt()?()=>self.worker&&self.worker.referrer:()=>(m.location.protocol==="blob:"?m.parent:m).location.href,yi=function(r,n){if(!(/^file:/.test(o=r.url)||/^file:/.test(sn())&&!/^\w+:/.test(o))){if(m.fetch&&m.Request&&m.AbortController&&m.Request.prototype.hasOwnProperty("signal"))return function(c,d){const p=new m.AbortController,_=new m.Request(c.url,{method:c.method||"GET",body:c.body,credentials:c.credentials,headers:c.headers,referrer:sn(),signal:p.signal});let M=!1,b=!1;const I=(S=_.url).indexOf("sku=")>0&&yn(S);var S;c.type==="json"&&_.headers.set("Accept","application/json");const j=(B,Q,W)=>{if(b)return;if(B&&B.message!=="SecurityError"&&it(B),Q&&W)return k(Q);const re=Date.now();m.fetch(_).then(ve=>{if(ve.ok){const Ee=I?ve.clone():null;return k(ve,Ee,re)}return d(new wn(ve.statusText,ve.status,c.url))}).catch(ve=>{ve.code!==20&&d(new Error(ve.message))})},k=(B,Q,W)=>{(c.type==="arrayBuffer"?B.arrayBuffer():c.type==="json"?B.json():B.text()).then(re=>{b||(Q&&W&&function(ve,Ee,me){if(kt(),!bn)return;const Te={status:Ee.status,statusText:Ee.statusText,headers:new m.Headers};Ee.headers.forEach((lt,at)=>Te.headers.set(at,lt));const je=ut(Ee.headers.get("Cache-Control")||"");if(je["no-store"])return;je["max-age"]&&Te.headers.set("Expires",new Date(me+1e3*je["max-age"]).toUTCString());const Ce=Te.headers.get("Expires");Ce&&(new Date(Ce).getTime()-me<42e4||function(lt,at){if(Pn===void 0)try{new Response(new ReadableStream),Pn=!0}catch{Pn=!1}Pn?at(lt.body):lt.blob().then(at)}(Ee,lt=>{const at=new m.Response(lt,Te);kt(),bn&&bn.then(_t=>_t.put(Tn(ve.url),at)).catch(_t=>it(_t.message))}))}(_,Q,W),M=!0,d(null,re,B.headers.get("Cache-Control"),B.headers.get("Expires")))}).catch(re=>{b||d(new Error(re.message))})};return I?function(B,Q){if(kt(),!bn)return Q(null);const W=Tn(B.url);bn.then(re=>{re.match(W).then(ve=>{const Ee=function(me){if(!me)return!1;const Te=new Date(me.headers.get("Expires")||0),je=ut(me.headers.get("Cache-Control")||"");return Te>Date.now()&&!je["no-cache"]}(ve);re.delete(W),Ee&&re.put(W,ve.clone()),Q(null,ve,Ee)}).catch(Q)}).catch(Q)}(_,j):j(null,null),{cancel:()=>{b=!0,M||p.abort()}}}(r,n);if(Tt()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",r,n,void 0,!0)}var o;return function(c,d){const p=new m.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(M){return d(M)}d(null,_,p.getResponseHeader("Cache-Control"),p.getResponseHeader("Expires"))}else d(new wn(p.statusText,p.status,c.url))},p.send(c.body),{cancel:()=>p.abort()}}(r,n)},Pi=function(r,n){return yi(ae(r,{type:"arrayBuffer"}),n)};function Fe(r){const n=m.document.createElement("a");return n.href=r,n.protocol===m.document.location.protocol&&n.host===m.document.location.host}const Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Mt,zt;Mt=[],zt=0;const Ut=function(r,n){if(A.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),zt>=E.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:r,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return Mt.push(p),p}zt++;let o=!1;const c=()=>{if(!o)for(o=!0,zt--;Mt.length&&zt<E.MAX_PARALLEL_IMAGE_REQUESTS;){const p=Mt.shift(),{requestParameters:_,callback:M,cancelled:b}=p;b||(p.cancel=Ut(_,M).cancel)}},d=Pi(r,(p,_,M,b)=>{c(),p?n(p):_&&(m.createImageBitmap?function(I,S){const j=new m.Blob([new Uint8Array(I)],{type:"image/png"});m.createImageBitmap(j).then(k=>{S(null,k)}).catch(k=>{S(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,S)=>n(I,S,M,b)):function(I,S){const j=new m.Image,k=m.URL;j.onload=()=>{S(null,j),k.revokeObjectURL(j.src),j.onload=null,m.requestAnimationFrame(()=>{j.src=Pe})},j.onerror=()=>S(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 B=new m.Blob([new Uint8Array(I)],{type:"image/png"});j.src=I.byteLength?k.createObjectURL(B):Pe}(_,(I,S)=>n(I,S,M,b)))});return{cancel:()=>{d.cancel(),c()}}},Kt="NO_ACCESS_TOKEN";function un(r){return r.indexOf("mapbox:")===0}function yn(r){return E.API_URL_REGEX.test(r)}function vn(r){return E.API_CDN_URL_REGEX.test(r)}function Dn(r){return E.API_STYLE_REGEX.test(r)&&!Jn(r)}function Jn(r){return E.API_SPRITE_REGEX.test(r)}const Zi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ci(r){const n=r.match(Zi);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 Hi(r){const n=r.params.length?`?${r.params.join("&")}`:"";return`${r.protocol}://${r.authority}${r.path}${n}`}function dr(r){if(!r)return null;const n=r.split(".");if(!n||n.length!==3)return null;try{return JSON.parse(decodeURIComponent(m.atob(n[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class pe{constructor(n){this.type=n,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(n){const o=dr(E.ACCESS_TOKEN);let c="";return c=o&&o.u?m.btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(d,p)=>String.fromCharCode(+("0x"+p)))):E.ACCESS_TOKEN||"",n?`mapbox.eventData.${n}:${c}`:`mapbox.eventData:${c}`}fetchEventData(){const n=Xt("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{const d=m.localStorage.getItem(o);d&&(this.eventData=JSON.parse(d));const p=m.localStorage.getItem(c);p&&(this.anonId=p)}catch{it("Unable to read from LocalStorage")}}saveEventData(){const n=Xt("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{m.localStorage.setItem(c,this.anonId),Object.keys(this.eventData).length>=1&&m.localStorage.setItem(o,JSON.stringify(this.eventData))}catch{it("Unable to write to LocalStorage")}}processRequests(n){}postEvent(n,o,c,d){if(!E.EVENTS_URL)return;const p=ci(E.EVENTS_URL);p.params.push(`access_token=${d||E.ACCESS_TOKEN||""}`);const _={event:this.type,created:new Date(n).toISOString()},M=o?ae(_,o):_,b={url:Hi(p),headers:{"Content-Type":"text/plain"},body:JSON.stringify([M])};this.pendingRequest=function(I,S){return yi(ae(I,{method:"POST"}),S)}(b,I=>{this.pendingRequest=null,c(I),this.saveEventData(),this.processRequests(d)})}queueRequest(n,o){this.queue.push(n),this.processRequests(o)}}const Y=new class extends pe{constructor(r){super("appUserTurnstile"),this._customAccessToken=r}postTurnstileEvent(r,n){E.EVENTS_URL&&E.ACCESS_TOKEN&&Array.isArray(r)&&r.some(o=>un(o)||yn(o))&&this.queueRequest(Date.now(),n)}processRequests(r){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=dr(E.ACCESS_TOKEN),o=n?n.u:E.ACCESS_TOKEN;let c=o!==this.eventData.tokenU;ie(this.anonId)||(this.anonId=F(),c=!0);const d=this.queue.shift();if(this.eventData.lastSuccess){const p=new Date(this.eventData.lastSuccess),_=new Date(d),M=(d-this.eventData.lastSuccess)/864e5;c=c||M>=1||M<-1||p.getDate()!==_.getDate()}else c=!0;c?this.postEvent(d,{sdkIdentifier:"mapbox-gl-js",sdkVersion:D,skuId:V,"enabled.telemetry":!1,userId:this.anonId},p=>{p||(this.eventData.lastSuccess=d,this.eventData.tokenU=o)},r):this.processRequests()}},X=Y.postTurnstileEvent.bind(Y),he=new class extends pe{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(r,n,o,c){this.skuToken=n,this.errorCb=c,E.EVENTS_URL&&(o||E.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(Kt)))}processRequests(r){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),ie(this.anonId)||(this.anonId=F()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:D,skuId:V,skuToken:this.skuToken,userId:this.anonId},c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},r))}},Ie=he.postMapLoadEvent.bind(he),ke=new class extends pe{constructor(){super("gljs.performance")}postPerformanceEvent(r,n){E.EVENTS_URL&&(r||E.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:n},r)}processRequests(r){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:n,performanceData:o}=this.queue.shift(),c=function(d){const p=m.performance.getEntriesByType("resource"),_=m.performance.getEntriesByType("mark"),M=function(k){const B={};if(k){for(const Q in k)if(Q!=="other")for(const W of k[Q]){const re=`${Q}ResolveRangeMin`,ve=`${Q}ResolveRangeMax`,Ee=`${Q}RequestCount`,me=`${Q}RequestCachedCount`;B[re]=Math.min(B[re]||1/0,W.startTime),B[ve]=Math.max(B[ve]||-1/0,W.responseEnd);const Te=je=>{B[je]===void 0&&(B[je]=0),++B[je]};W.transferSize!==void 0&&W.transferSize===0&&Te(me),Te(Ee)}}return B}(function(k,B){const Q={};if(k)for(const W of k){const re=B(W);Q[re]===void 0&&(Q[re]=[]),Q[re].push(W)}return Q}(p,Et)),b=m.devicePixelRatio,I=m.navigator.connection||m.navigator.mozConnection||m.navigator.webkitConnection,S={counters:[],metadata:[],attributes:[]},j=(k,B,Q)=>{Q!=null&&k.push({name:B,value:Q.toString()})};for(const k in M)j(S.counters,k,M[k]);if(d.interactionRange[0]!==1/0&&d.interactionRange[1]!==-1/0&&(j(S.counters,"interactionRangeMin",d.interactionRange[0]),j(S.counters,"interactionRangeMax",d.interactionRange[1])),_)for(const k of Object.keys(Dt)){const B=Dt[k],Q=_.find(W=>W.name===B);Q&&j(S.counters,B,Q.startTime)}return j(S.counters,"visibilityHidden",d.visibilityHidden),j(S.attributes,"style",function(k){if(k)for(const B of k){const Q=B.name.split("?")[0];if(Dn(Q)){const W=Q.split("/").slice(-2);if(W.length===2)return`mapbox://styles/${W[0]}/${W[1]}`}}}(p)),j(S.attributes,"terrainEnabled",d.terrainEnabled?"true":"false"),j(S.attributes,"fogEnabled",d.fogEnabled?"true":"false"),j(S.attributes,"projection",d.projection),j(S.attributes,"zoom",d.zoom),j(S.metadata,"devicePixelRatio",b),j(S.metadata,"connectionEffectiveType",I?I.effectiveType:void 0),j(S.metadata,"navigatorUserAgent",m.navigator.userAgent),j(S.metadata,"screenWidth",m.screen.width),j(S.metadata,"screenHeight",m.screen.height),j(S.metadata,"windowWidth",m.innerWidth),j(S.metadata,"windowHeight",m.innerHeight),j(S.metadata,"mapWidth",d.width/b),j(S.metadata,"mapHeight",d.height/b),j(S.metadata,"webglRenderer",d.renderer),j(S.metadata,"webglVendor",d.vendor),j(S.metadata,"sdkVersion",D),j(S.metadata,"sdkIdentifier","mapbox-gl-js"),S}(o);for(const d of c.metadata);for(const d of c.counters);for(const d of c.attributes);this.postEvent(n,c,()=>{},r)}},tt=ke.postPerformanceEvent.bind(ke),Ke=new class extends pe{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(r,n,o,c){if(!E.API_URL||!E.SESSION_PATH)return;const d=ci(E.API_URL+E.SESSION_PATH);d.params.push(`sku=${n||""}`),d.params.push(`access_token=${c||E.ACCESS_TOKEN||""}`);const p={url:Hi(d),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(_,M){return yi(ae(_,{method:"GET"}),M)}(p,_=>{this.pendingRequest=null,o(_),this.saveEventData(),this.processRequests(c)})}getSessionAPI(r,n,o,c){this.skuToken=n,this.errorCb=c,E.SESSION_PATH&&E.API_URL&&(o||E.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(Kt)))}processRequests(r){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)},r)}},Be=Ke.getSessionAPI.bind(Ke),ot=new Set,Dt={create:"create",load:"load",fullLoad:"fullLoad"},Qt={mark(r){m.performance.mark(r)},measure(r,n,o){m.performance.measure(r,n,o)}};function Et(r){const n=r.name.split("?")[0];return vn(n)&&n.includes("mapbox-gl.js")?"javascript":vn(n)&&n.includes("mapbox-gl.css")?"css":function(o){return E.API_FONTS_REGEX.test(o)}(n)?"fontRange":Jn(n)?"sprite":Dn(n)?"style":function(o){return E.API_TILEJSON_REGEX.test(o)}(n)?"tilejson":"other"}const an=m.performance;function on(r){const n=r?r.url.toString():void 0;return an.getEntriesByName(n)}let Jt,gn,Sn,Wn;const en={now:()=>Sn!==void 0?Sn:m.performance.now(),setNow(r){Sn=r},restoreNow(){Sn=void 0},frame(r){const n=m.requestAnimationFrame(r);return{cancel:()=>m.cancelAnimationFrame(n)}},getImageData(r,n=0){const{width:o,height:c}=r;Wn||(Wn=m.document.createElement("canvas"));const d=Wn.getContext("2d",{willReadFrequently:!0});if(!d)throw new Error("failed to create canvas 2d context");return(o>Wn.width||c>Wn.height)&&(Wn.width=o,Wn.height=c),d.clearRect(-n,-n,o+2*n,c+2*n),d.drawImage(r,0,0,o,c),d.getImageData(-n,-n,o+2*n,c+2*n)},resolveURL:r=>(Jt||(Jt=m.document.createElement("a")),Jt.href=r,Jt.href),get devicePixelRatio(){return m.devicePixelRatio},get prefersReducedMotion(){return!!m.matchMedia&&(gn==null&&(gn=m.matchMedia("(prefers-reduced-motion: reduce)")),gn.matches)}};function ui(r,n,o){o[r]&&o[r].indexOf(n)!==-1||(o[r]=o[r]||[],o[r].push(n))}function _i(r,n,o){if(o&&o[r]){const c=o[r].indexOf(n);c!==-1&&o[r].splice(c,1)}}class Uo{constructor(n,o={}){ae(this,o),this.type=n}}class Cs extends Uo{constructor(n,o={}){super("error",ae({error:n},o))}}class uo{on(n,o){return this._listeners=this._listeners||{},ui(n,o,this._listeners),this}off(n,o){return _i(n,o,this._listeners),_i(n,o,this._oneTimeListeners),this}once(n,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},ui(n,o,this._oneTimeListeners),this):new Promise(c=>this.once(n,c))}fire(n,o){typeof n=="string"&&(n=new Uo(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 M of d)M.call(this,n);const p=this._oneTimeListeners&&this._oneTimeListeners[c]?this._oneTimeListeners[c].slice():[];for(const M of p)_i(c,M,this._oneTimeListeners),M.call(this,n);const _=this._eventedParent;_&&(ae(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_.fire(n))}else n instanceof Cs&&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}}var xt=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"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":{},"tms":{}},"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":{}}},"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,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"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,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"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":{}}},"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":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"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_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"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":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"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"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"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"]},"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"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"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":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"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,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"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"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"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,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"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,"requires":["fill-extrusion-edge-radius"]}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"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],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"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"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"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"],"transition":false,"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,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"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-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","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":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"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"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"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"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"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"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"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 as(r,...n){for(const o of n)for(const c in o)r[c]=o[c];return r}function Ki(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function ls(r){if(Array.isArray(r))return r.map(ls);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const n={};for(const o in r)n[o]=ls(r[o]);return n}return Ki(r)}class pM extends Error{constructor(n,o){super(o),this.message=o,this.key=n}}var Jr=pM;class Su{constructor(n,o=[]){this.parent=n,this.bindings={};for(const[c,d]of o)this.bindings[c]=d}concat(n){return new Su(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 F1=Su;const jr={kind:"null"},Vt={kind:"number"},Rn={kind:"string"},zn={kind:"boolean"},Ao={kind:"color"},la={kind:"object"},En={kind:"value"},Wl={kind:"collator"},Xa={kind:"formatted"},Ss={kind:"resolvedImage"};function fr(r,n){return{kind:"array",itemType:r,N:n}}function Ti(r){if(r.kind==="array"){const n=Ti(r.itemType);return typeof r.N=="number"?`array<${n}, ${r.N}>`:r.itemType.kind==="value"?"array":`array<${n}>`}return r.kind}const Bo=[jr,Vt,Rn,zn,Ao,Xa,la,fr(En),Ss];function ql(r,n){if(n.kind==="error")return null;if(r.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!ql(r.itemType,n.itemType))&&(typeof r.N!="number"||r.N===n.N))return null}else{if(r.kind===n.kind)return null;if(r.kind==="value"){for(const o of Bo)if(!ql(o,n))return null}}return`Expected ${Ti(r)} but found ${Ti(n)} instead.`}function Xl(r,n){return n.some(o=>o.kind===r.kind)}function Kl(r,n){return n.some(o=>o==="null"?r===null:o==="array"?Array.isArray(r):o==="object"?r&&!Array.isArray(r)&&typeof r=="object":o===typeof r)}var Jl,Jd={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 zs(r){return(r=Math.round(r))<0?0:r>255?255:r}function ec(r){return zs(r[r.length-1]==="%"?parseFloat(r)/100*255:parseInt(r))}function zu(r){return(n=r[r.length-1]==="%"?parseFloat(r)/100:parseFloat(r))<0?0:n>1?1:n;var n}function ef(r,n,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?r+(n-r)*o*6:2*o<1?n:3*o<2?r+(n-r)*(2/3-o)*6:r}try{Jl={}.parseCSSColor=function(r){var n,o=r.replace(/ /g,"").toLowerCase();if(o in Jd)return Jd[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(","),M=1;switch(p){case"rgba":if(_.length!==4)return null;M=zu(_.pop());case"rgb":return _.length!==3?null:[ec(_[0]),ec(_[1]),ec(_[2]),M];case"hsla":if(_.length!==4)return null;M=zu(_.pop());case"hsl":if(_.length!==3)return null;var b=(parseFloat(_[0])%360+360)%360/360,I=zu(_[1]),S=zu(_[2]),j=S<=.5?S*(I+1):S+I-S*I,k=2*S-j;return[zs(255*ef(k,j,b+1/3)),zs(255*ef(k,j,b)),zs(255*ef(k,j,b-1/3)),M];default:return null}}return null}}catch{}class Fr{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 Fr)return n;if(typeof n!="string")return;const o=Jl(n);return o?new Fr(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]}toArray01PremultipliedAlpha(){const{r:n,g:o,b:c,a:d}=this;return[n,o,c,d]}}Fr.black=new Fr(0,0,0,1),Fr.white=new Fr(1,1,1,1),Fr.transparent=new Fr(0,0,0,0),Fr.red=new Fr(1,0,0,1),Fr.blue=new Fr(0,0,1,1);var ji=Fr;class tc{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 tf{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 pr{constructor(n){this.sections=n}static fromString(n){return new pr([new tf(n,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(n=>n.text.length!==0||n.image&&n.image.name.length!==0)}static factory(n){return n instanceof pr?n:pr.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.name]);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 ho{constructor(n){this.name=n.name,this.available=n.available}toString(){return this.name}static fromString(n){return n?new ho({name:n,available:!1}):null}serialize(){return["image",this.name]}}function Q1(r,n,o,c){return typeof r=="number"&&r>=0&&r<=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 [${[r,n,o,c].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof c=="number"?[r,n,o,c]:[r,n,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ju(r){if(r===null||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||r instanceof ji||r instanceof tc||r instanceof pr||r instanceof ho)return!0;if(Array.isArray(r)){for(const n of r)if(!ju(n))return!1;return!0}if(typeof r=="object"){for(const n in r)if(!ju(r[n]))return!1;return!0}return!1}function Ji(r){if(r===null)return jr;if(typeof r=="string")return Rn;if(typeof r=="boolean")return zn;if(typeof r=="number")return Vt;if(r instanceof ji)return Ao;if(r instanceof tc)return Wl;if(r instanceof pr)return Xa;if(r instanceof ho)return Ss;if(Array.isArray(r)){const n=r.length;let o;for(const c of r){const d=Ji(c);if(o){if(o===d)continue;o=En;break}o=d}return fr(o||En,n)}return la}function nc(r){const n=typeof r;return r===null?"":n==="string"||n==="number"||n==="boolean"?String(r):r instanceof ji||r instanceof pr||r instanceof ho?r.toString():JSON.stringify(r)}class nf{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(!ju(n[1]))return o.error("invalid value");const c=n[1];let d=Ji(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 nf(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 ji?["rgba"].concat(this.value.toArray()):this.value instanceof pr?this.value.serialize():this.value}}var ic=nf,lr=class{constructor(r){this.name="ExpressionEvaluationError",this.message=r}toJSON(){return this.message}};const Ka={string:Rn,number:Vt,boolean:zn,object:la};class rf{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 M,b;if(n.length>2){const I=n[1];if(typeof I!="string"||!(I in Ka)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);M=Ka[I],d++}else M=En;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);b=n[2],d++}c=fr(M,b)}else c=Ka[p];const _=[];for(;d<n.length;d++){const M=o.parse(n[d],d,En);if(!M)return null;_.push(M)}return new rf(c,_)}evaluate(n){for(let o=0;o<this.args.length;o++){const c=this.args[o].evaluate(n);if(!ql(this.type,Ji(c)))return c;if(o===this.args.length-1)throw new lr(`Expected value to be of type ${Ti(this.type)}, but found ${Ti(Ji(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 cs=rf;class rc{constructor(n){this.type=Xa,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 M=n[_];if(p&&typeof M=="object"&&!Array.isArray(M)){p=!1;let b=null;if(M["font-scale"]&&(b=o.parse(M["font-scale"],1,Vt),!b))return null;let I=null;if(M["text-font"]&&(I=o.parse(M["text-font"],1,fr(Rn)),!I))return null;let S=null;if(M["text-color"]&&(S=o.parse(M["text-color"],1,Ao),!S))return null;const j=d[d.length-1];j.scale=b,j.font=I,j.textColor=S}else{const b=o.parse(n[_],1,En);if(!b)return null;const I=b.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:b,scale:null,font:null,textColor:null})}}return new rc(d)}evaluate(n){return new pr(this.sections.map(o=>{const c=o.content.evaluate(n);return Ji(c)===Ss?new tf("",c,null,null,null):new tf(nc(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 Lu{constructor(n){this.type=Ss,this.input=n}static parse(n,o){if(n.length!==2)return o.error("Expected two arguments.");const c=o.parse(n[1],1,Rn);return c?new Lu(c):o.error("No image name provided.")}evaluate(n){const o=this.input.evaluate(n),c=ho.fromString(o);return c&&n.availableImages&&(c.available=n.availableImages.indexOf(o)>-1),c}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const gM={"to-boolean":zn,"to-color":Ao,"to-number":Vt,"to-string":Rn};class of{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];if((c==="to-boolean"||c==="to-string")&&n.length!==2)return o.error("Expected one argument.");const d=gM[c],p=[];for(let _=1;_<n.length;_++){const M=o.parse(n[_],_,En);if(!M)return null;p.push(M)}return new of(d,p)}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 ji)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.`:Q1(o[0],o[1],o[2],o[3]),!c))return new ji(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new lr(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 lr(`Could not convert ${JSON.stringify(o)} to number.`)}return this.type.kind==="formatted"?pr.fromString(nc(this.args[0].evaluate(n))):this.type.kind==="resolvedImage"?ho.fromString(nc(this.args[0].evaluate(n))):nc(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 rc([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Lu(this.args[0]).serialize();const n=[`to-${this.type.kind}`];return this.eachChild(o=>{n.push(o.serialize())}),n}}var ca=of;const Ou=["Unknown","Point","LineString","Polygon"];var V1=class{constructor(){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}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ou[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||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const r=this.featureDistanceData.center,n=this.featureDistanceData.scale,{x:o,y:c}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*n-r[0])+this.featureDistanceData.bearing[1]*(c*n-r[1])}return 0}parseColor(r){let n=this._parseColorCache[r];return n||(n=this._parseColorCache[r]=ji.parse(r)),n}};class Ja{constructor(n,o,c,d){this.name=n,this.type=o,this._evaluate=c,this.args=d}evaluate(n){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=Ja.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,M=_.filter(([I])=>!Array.isArray(I)||I.length===n.length-1);let b=null;for(const[I,S]of M){b=new ha(o.registry,o.path,null,o.scope);const j=[];let k=!1;for(let B=1;B<n.length;B++){const Q=n[B],W=Array.isArray(I)?I[B-1]:I.type,re=b.parse(Q,1+j.length,W);if(!re){k=!0;break}j.push(re)}if(!k)if(Array.isArray(I)&&I.length!==j.length)b.error(`Expected ${I.length} arguments, but found ${j.length} instead.`);else{for(let B=0;B<j.length;B++){const Q=Array.isArray(I)?I[B]:I.type,W=j[B];b.concat(B+1).checkSubtype(Q,W.type)}if(b.errors.length===0)return new Ja(c,p,S,j)}}if(M.length===1)o.errors.push(...b.errors);else{const I=(M.length?M:_).map(([j])=>{return k=j,Array.isArray(k)?`(${k.map(Ti).join(", ")})`:`(${Ti(k.type)}...)`;var k}).join(" | "),S=[];for(let j=1;j<n.length;j++){const k=o.parse(n[j],1+S.length);if(!k)return null;S.push(Ti(k.type))}o.error(`Expected arguments of type ${I}, but found (${S.join(", ")}) instead.`)}return null}static register(n,o){Ja.definitions=o;for(const c in o)n[c]=Ja}}var js=Ja;class ku{constructor(n,o,c){this.type=Wl,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,zn);if(!d)return null;const p=o.parse(c["diacritic-sensitive"]!==void 0&&c["diacritic-sensitive"],1,zn);if(!p)return null;let _=null;return c.locale&&(_=o.parse(c.locale,1,Rn),!_)?null:new ku(d,p,_)}evaluate(n){return new tc(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]}}const gr=8192;function Pu(r,n){r[0]=Math.min(r[0],n[0]),r[1]=Math.min(r[1],n[1]),r[2]=Math.max(r[2],n[0]),r[3]=Math.max(r[3],n[1])}function oc(r,n){return!(r[0]<=n[0]||r[2]>=n[2]||r[1]<=n[1]||r[3]>=n[3])}function Y1(r,n){const o=(180+r[0])/360,c=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,d=Math.pow(2,n.z);return[Math.round(o*d*gr),Math.round(c*d*gr)]}function $1(r,n,o){const c=r[0]-n[0],d=r[1]-n[1],p=r[0]-o[0],_=r[1]-o[1];return c*_-p*d==0&&c*p<=0&&d*_<=0}function Ru(r,n){let o=!1;for(let _=0,M=n.length;_<M;_++){const b=n[_];for(let I=0,S=b.length;I<S-1;I++){if($1(r,b[I],b[I+1]))return!1;(d=b[I])[1]>(c=r)[1]!=(p=b[I+1])[1]>c[1]&&c[0]<(p[0]-d[0])*(c[1]-d[1])/(p[1]-d[1])+d[0]&&(o=!o)}}var c,d,p;return o}function Z1(r,n){for(let o=0;o<n.length;o++)if(Ru(r,n[o]))return!0;return!1}function Uu(r,n,o,c){const d=c[0]-o[0],p=c[1]-o[1],_=(r[0]-o[0])*p-d*(r[1]-o[1]),M=(n[0]-o[0])*p-d*(n[1]-o[1]);return _>0&&M<0||_<0&&M>0}function sc(r,n,o){for(const I of o)for(let S=0;S<I.length-1;++S)if((M=[(_=I[S+1])[0]-(p=I[S])[0],_[1]-p[1]])[0]*(b=[(d=n)[0]-(c=r)[0],d[1]-c[1]])[1]-M[1]*b[0]!=0&&Uu(c,d,p,_)&&Uu(p,_,c,d))return!0;var c,d,p,_,M,b;return!1}function sf(r,n){for(let o=0;o<r.length;++o)if(!Ru(r[o],n))return!1;for(let o=0;o<r.length-1;++o)if(sc(r[o],r[o+1],n))return!1;return!0}function H1(r,n){for(let o=0;o<n.length;o++)if(sf(r,n[o]))return!0;return!1}function ac(r,n,o){const c=[];for(let d=0;d<r.length;d++){const p=[];for(let _=0;_<r[d].length;_++){const M=Y1(r[d][_],o);Pu(n,M),p.push(M)}c.push(p)}return c}function af(r,n,o){const c=[];for(let d=0;d<r.length;d++){const p=ac(r[d],n,o);c.push(p)}return c}function ua(r,n,o,c){if(r[0]<o[0]||r[0]>o[2]){const d=.5*c;let p=r[0]-o[0]>d?-c:o[0]-r[0]>d?c:0;p===0&&(p=r[0]-o[2]>d?-c:o[2]-r[0]>d?c:0),r[0]+=p}Pu(n,r)}function qn(r,n,o,c){const d=Math.pow(2,c.z)*gr,p=[c.x*gr,c.y*gr],_=[];if(!r)return _;for(const M of r)for(const b of M){const I=[b.x+p[0],b.y+p[1]];ua(I,n,o,d),_.push(I)}return _}function G1(r,n,o,c){const d=Math.pow(2,c.z)*gr,p=[c.x*gr,c.y*gr],_=[];if(!r)return _;for(const b of r){const I=[];for(const S of b){const j=[S.x+p[0],S.y+p[1]];Pu(n,j),I.push(j)}_.push(I)}if(n[2]-n[0]<=d/2){(M=n)[0]=M[1]=1/0,M[2]=M[3]=-1/0;for(const b of _)for(const I of b)ua(I,n,o,d)}var M;return _}class lc{constructor(n,o){this.type=zn,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(ju(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 lc(c,c.features[d].geometry)}else if(c.type==="Feature"){const d=c.geometry.type;if(d==="Polygon"||d==="MultiPolygon")return new lc(c,c.geometry)}else if(c.type==="Polygon"||c.type==="MultiPolygon")return new lc(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 M=ac(c.coordinates,p,_),b=qn(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!Ru(I,M))return!1}if(c.type==="MultiPolygon"){const M=af(c.coordinates,p,_),b=qn(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!Z1(I,M))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 M=ac(c.coordinates,p,_),b=G1(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!sf(I,M))return!1}if(c.type==="MultiPolygon"){const M=af(c.coordinates,p,_),b=G1(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!H1(I,M))return!1}return!0}(n,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var lf=lc;function el(r){if(r instanceof js&&(r.name==="get"&&r.args.length===1||r.name==="feature-state"||r.name==="has"&&r.args.length===1||r.name==="properties"||r.name==="geometry-type"||r.name==="id"||/^filter-/.test(r.name))||r instanceof lf)return!1;let n=!0;return r.eachChild(o=>{n&&!el(o)&&(n=!1)}),n}function Bu(r){if(r instanceof js&&r.name==="feature-state")return!1;let n=!0;return r.eachChild(o=>{n&&!Bu(o)&&(n=!1)}),n}function cc(r,n){if(r instanceof js&&n.indexOf(r.name)>=0)return!1;let o=!0;return r.eachChild(c=>{o&&!cc(c,n)&&(o=!1)}),o}class Fu{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 Fu(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 cf=Fu;class Qu{constructor(n,o=[],c,d=new F1,p=[]){this.registry=n,this.path=o,this.key=o.map(_=>`[${_}]`).join(""),this.scope=d,this.errors=p,this.expectedType=c}parse(n,o,c,d,p={}){return o?this.concat(o,c,d)._parse(n,p):this._parse(n,p)}_parse(n,o){function c(d,p,_){return _==="assert"?new cs(p,[d]):_==="coerce"?new ca(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=n[0];if(typeof d!="string")return this.error(`Expression name must be a string, but found ${typeof d} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const p=this.registry[d];if(p){let _=p.parse(n,this);if(!_)return null;if(this.expectedType){const M=this.expectedType,b=_.type;if(M.kind!=="string"&&M.kind!=="number"&&M.kind!=="boolean"&&M.kind!=="object"&&M.kind!=="array"||b.kind!=="value")if(M.kind!=="color"&&M.kind!=="formatted"&&M.kind!=="resolvedImage"||b.kind!=="value"&&b.kind!=="string"){if(this.checkSubtype(M,b))return null}else _=c(_,M,o.typeAnnotation||"coerce");else _=c(_,M,o.typeAnnotation||"assert")}if(!(_ instanceof ic)&&_.type.kind!=="resolvedImage"&&tl(_)){const M=new V1;try{_=new ic(_.type,_.evaluate(M))}catch(b){return this.error(b.message),null}}return _}return this.error(`Unknown expression "${d}". If you wanted a literal array, use ["literal", [...]].`,0)}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 Qu(this.registry,d,o||null,p,this.errors)}error(n,...o){const c=`${this.key}${o.map(d=>`[${d}]`).join("")}`;this.errors.push(new Jr(c,n))}checkSubtype(n,o){const c=ql(n,o);return c&&this.error(c),c}}var ha=Qu;function tl(r){if(r instanceof cf)return tl(r.boundExpression);if(r instanceof js&&r.name==="error"||r instanceof ku||r instanceof lf)return!1;const n=r instanceof ca||r instanceof cs;let o=!0;return r.eachChild(c=>{o=n?o&&tl(c):o&&c instanceof ic}),!!o&&el(r)&&cc(r,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function Vu(r,n){const o=r.length-1;let c,d,p=0,_=o,M=0;for(;p<=_;)if(M=Math.floor((p+_)/2),c=r[M],d=r[M+1],c<=n){if(M===o||n<d)return M;p=M+1}else{if(!(c>n))throw new lr("Input is not a number.");_=M-1}return 0}class uc{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,Vt);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 M=_===1?-1/0:n[_],b=n[_+1],I=_,S=_+1;if(typeof M!="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]>=M)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',I);const j=o.parse(b,S,p);if(!j)return null;p=p||j.type,d.push([M,j])}return new uc(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[Vu(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 Yu=uc;function Qn(r,n,o){return r*(1-o)+n*o}var $u=Object.freeze({__proto__:null,number:Qn,color:function(r,n,o){return new ji(Qn(r.r,n.r,o),Qn(r.g,n.g,o),Qn(r.b,n.b,o),Qn(r.a,n.a,o))},array:function(r,n,o){return r.map((c,d)=>Qn(c,n[d],o))}});const uf=.95047,W1=1.08883,hf=4/29,Zu=6/29,q1=3*Zu*Zu,X1=Math.PI/180,mM=180/Math.PI;function Hu(r){return r>.008856451679035631?Math.pow(r,1/3):r/q1+hf}function Gu(r){return r>Zu?r*r*r:q1*(r-hf)}function df(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function ff(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function K1(r){const n=ff(r.r),o=ff(r.g),c=ff(r.b),d=Hu((.4124564*n+.3575761*o+.1804375*c)/uf),p=Hu((.2126729*n+.7151522*o+.072175*c)/1);return{l:116*p-16,a:500*(d-p),b:200*(p-Hu((.0193339*n+.119192*o+.9503041*c)/W1)),alpha:r.a}}function J1(r){let n=(r.l+16)/116,o=isNaN(r.a)?n:n+r.a/500,c=isNaN(r.b)?n:n-r.b/200;return n=1*Gu(n),o=uf*Gu(o),c=W1*Gu(c),new ji(df(3.2404542*o-1.5371385*n-.4985314*c),df(-.969266*o+1.8760108*n+.041556*c),df(.0556434*o-.2040259*n+1.0572252*c),r.alpha)}function yM(r,n,o){const c=n-r;return r+o*(c>180||c<-180?c-360*Math.round(c/360):c)}const hc={forward:K1,reverse:J1,interpolate:function(r,n,o){return{l:Qn(r.l,n.l,o),a:Qn(r.a,n.a,o),b:Qn(r.b,n.b,o),alpha:Qn(r.alpha,n.alpha,o)}}},nl={forward:function(r){const{l:n,a:o,b:c}=K1(r),d=Math.atan2(c,o)*mM;return{h:d<0?d+360:d,c:Math.sqrt(o*o+c*c),l:n,alpha:r.a}},reverse:function(r){const n=r.h*X1,o=r.c;return J1({l:r.l,a:Math.cos(n)*o,b:Math.sin(n)*o,alpha:r.alpha})},interpolate:function(r,n,o){return{h:yM(r.h,n.h,o),c:Qn(r.c,n.c,o),l:Qn(r.l,n.l,o),alpha:Qn(r.alpha,n.alpha,o)}}};var e0=Object.freeze({__proto__:null,lab:hc,hcl:nl});class Wu{constructor(n,o,c,d,p){this.type=n,this.operator=o,this.interpolation=c,this.input=d,this.labels=[],this.outputs=[];for(const[_,M]of p)this.labels.push(_),this.outputs.push(M)}static interpolationFactor(n,o,c,d){let p=0;if(n.name==="exponential")p=pf(o,n.base,c,d);else if(n.name==="linear")p=pf(o,1,c,d);else if(n.name==="cubic-bezier"){const _=n.controlPoints;p=new G(_[0],_[1],_[2],_[3]).solve(pf(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(S=>typeof S!="number"||S<0||S>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,Vt),!p)return null;const M=[];let b=null;c==="interpolate-hcl"||c==="interpolate-lab"?b=Ao:o.expectedType&&o.expectedType.kind!=="value"&&(b=o.expectedType);for(let I=0;I<_.length;I+=2){const S=_[I],j=_[I+1],k=I+3,B=I+4;if(typeof S!="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(M.length&&M[M.length-1][0]>=S)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const Q=o.parse(j,B,b);if(!Q)return null;b=b||Q.type,M.push([S,Q])}return b.kind==="number"||b.kind==="color"||b.kind==="array"&&b.itemType.kind==="number"&&typeof b.N=="number"?new Wu(b,c,d,p,M):o.error(`Type ${Ti(b)} 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 _=Vu(o,d),M=Wu.interpolationFactor(this.interpolation,d,o[_],o[_+1]),b=c[_].evaluate(n),I=c[_+1].evaluate(n);return this.operator==="interpolate"?$u[this.type.kind.toLowerCase()](b,I,M):this.operator==="interpolate-hcl"?nl.reverse(nl.interpolate(nl.forward(b),nl.forward(I),M)):hc.reverse(hc.interpolate(hc.forward(b),hc.forward(I),M))}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 pf(r,n,o,c){const d=c-o,p=r-o;return d===0?0:n===1?p/d:(Math.pow(n,p)-1)/(Math.pow(n,d)-1)}var Fo=Wu;class qu{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 M of n.slice(1)){const b=o.parse(M,1+p.length,c,void 0,{typeAnnotation:"omit"});if(!b)return null;c=c||b.type,p.push(b)}const _=d&&p.some(M=>ql(d,M.type));return new qu(_?En: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 ho&&!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 gf=qu;class Xu{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 M=o.parse(n[p+1],p+1);if(!M)return null;c.push([_,M])}const d=o.parse(n[n.length-1],n.length-1,o.expectedType,c);return d?new Xu(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 t0=Xu;class mf{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,Vt),d=o.parse(n[2],2,fr(o.expectedType||En));return c&&d?new mf(d.type.itemType,c,d):null}evaluate(n){const o=this.index.evaluate(n),c=this.input.evaluate(n);if(o<0)throw new lr(`Array index out of bounds: ${o} < 0.`);if(o>=c.length)throw new lr(`Array index out of bounds: ${o} > ${c.length-1}.`);if(o!==Math.floor(o))throw new lr(`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 n0=mf;class Ku{constructor(n,o){this.type=zn,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,En),d=o.parse(n[2],2,En);return c&&d?Xl(c.type,[zn,Rn,Vt,jr,En])?new Ku(c,d):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(c.type)} instead`):null}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(c==null)return!1;if(!Kl(o,["boolean","string","number","null"]))throw new lr(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(Ji(o))} instead.`);if(!Kl(c,["string","array"]))throw new lr(`Expected second argument to be of type array or string, but found ${Ti(Ji(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 i0=Ku;class Ju{constructor(n,o,c){this.type=Vt,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,En),d=o.parse(n[2],2,En);if(!c||!d)return null;if(!Xl(c.type,[zn,Rn,Vt,jr,En]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,Vt);return p?new Ju(c,d,p):null}return new Ju(c,d)}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(!Kl(o,["boolean","string","number","null"]))throw new lr(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(Ji(o))} instead.`);if(!Kl(c,["string","array"]))throw new lr(`Expected second argument to be of type array or string, but found ${Ti(Ji(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 _M=Ju;class yf{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 S=n[I];const j=n[I+1];Array.isArray(S)||(S=[S]);const k=o.concat(I);if(S.length===0)return k.error("Expected at least one branch label.");for(const Q of S){if(typeof Q!="number"&&typeof Q!="string")return k.error("Branch labels must be numbers or strings.");if(typeof Q=="number"&&Math.abs(Q)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Q=="number"&&Math.floor(Q)!==Q)return k.error("Numeric branch labels must be integer values.");if(c){if(k.checkSubtype(c,Ji(Q)))return null}else c=Ji(Q);if(p[String(Q)]!==void 0)return k.error("Branch labels must be unique.");p[String(Q)]=_.length}const B=o.parse(j,I,d);if(!B)return null;d=d||B.type,_.push(B)}const M=o.parse(n[1],1,En);if(!M)return null;const b=o.parse(n[n.length-1],n.length-1,d);return b?M.type.kind!=="value"&&o.concat(1).checkSubtype(c,M.type)?null:new yf(c,d,M,p,_,b):null}evaluate(n){const o=this.input.evaluate(n);return(Ji(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 M=d[this.cases[_]];M===void 0?(d[this.cases[_]]=c.length,c.push([this.cases[_],[_]])):c[M][1].push(_)}const p=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,M]of c)n.push(M.length===1?p(M[0]):M.map(p)),n.push(this.outputs[_].serialize());return n.push(this.otherwise.serialize()),n}}var vM=yf;class il{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 M=o.parse(n[_],_,zn);if(!M)return null;const b=o.parse(n[_+1],_+1,c);if(!b)return null;d.push([M,b]),c=c||b.type}const p=o.parse(n[n.length-1],n.length-1,c);return p?new il(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 r0=il;class dc{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,En),d=o.parse(n[2],2,Vt);if(!c||!d)return null;if(!Xl(c.type,[fr(En),Rn,En]))return o.error(`Expected first argument to be of type array or string, but found ${Ti(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,Vt);return p?new dc(c.type,c,d,p):null}return new dc(c.type,c,d)}evaluate(n){const o=this.input.evaluate(n),c=this.beginIndex.evaluate(n);if(!Kl(o,["string","array"]))throw new lr(`Expected first argument to be of type array or string, but found ${Ti(Ji(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 xM=dc;function o0(r,n){return r==="=="||r==="!="?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 s0(r,n,o,c){return c.compare(n,o)===0}function da(r,n,o){const c=r!=="=="&&r!=="!=";return class VE{constructor(p,_,M){this.type=zn,this.lhs=p,this.rhs=_,this.collator=M,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 M=p[0];let b=_.parse(p[1],1,En);if(!b)return null;if(!o0(M,b.type))return _.concat(1).error(`"${M}" comparisons are not supported for type '${Ti(b.type)}'.`);let I=_.parse(p[2],2,En);if(!I)return null;if(!o0(M,I.type))return _.concat(2).error(`"${M}" comparisons are not supported for type '${Ti(I.type)}'.`);if(b.type.kind!==I.type.kind&&b.type.kind!=="value"&&I.type.kind!=="value")return _.error(`Cannot compare types '${Ti(b.type)}' and '${Ti(I.type)}'.`);c&&(b.type.kind==="value"&&I.type.kind!=="value"?b=new cs(I.type,[b]):b.type.kind!=="value"&&I.type.kind==="value"&&(I=new cs(b.type,[I])));let S=null;if(p.length===4){if(b.type.kind!=="string"&&I.type.kind!=="string"&&b.type.kind!=="value"&&I.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(S=_.parse(p[3],3,Wl),!S)return null}return new VE(b,I,S)}evaluate(p){const _=this.lhs.evaluate(p),M=this.rhs.evaluate(p);if(c&&this.hasUntypedArgument){const b=Ji(_),I=Ji(M);if(b.kind!==I.kind||b.kind!=="string"&&b.kind!=="number")throw new lr(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${b.kind}, ${I.kind}) instead.`)}if(this.collator&&!c&&this.hasUntypedArgument){const b=Ji(_),I=Ji(M);if(b.kind!=="string"||I.kind!=="string")return n(p,_,M)}return this.collator?o(p,_,M,this.collator.evaluate(p)):n(p,_,M)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[r];return this.eachChild(_=>{p.push(_.serialize())}),p}}}const a0=da("==",function(r,n,o){return n===o},s0),l0=da("!=",function(r,n,o){return n!==o},function(r,n,o,c){return!s0(0,n,o,c)}),_f=da("<",function(r,n,o){return n<o},function(r,n,o,c){return c.compare(n,o)<0}),MM=da(">",function(r,n,o){return n>o},function(r,n,o,c){return c.compare(n,o)>0}),wM=da("<=",function(r,n,o){return n<=o},function(r,n,o,c){return c.compare(n,o)<=0}),bM=da(">=",function(r,n,o){return n>=o},function(r,n,o,c){return c.compare(n,o)>=0});class vf{constructor(n,o,c,d,p,_){this.type=Rn,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,Vt);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,Rn),!p))return null;let _=null;if(d.currency&&(_=o.parse(d.currency,1,Rn),!_))return null;let M=null;if(d.unit&&(M=o.parse(d.unit,1,Rn),!M))return null;let b=null;if(d["min-fraction-digits"]&&(b=o.parse(d["min-fraction-digits"],1,Vt),!b))return null;let I=null;return d["max-fraction-digits"]&&(I=o.parse(d["max-fraction-digits"],1,Vt),!I)?null:new vf(c,p,_,M,b,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 xf{constructor(n){this.type=Vt,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 ${Ti(c.type)} instead.`):new xf(c):null}evaluate(n){const o=this.input.evaluate(n);if(typeof o=="string"||Array.isArray(o))return o.length;throw new lr(`Expected value to be of type string or array, but found ${Ti(Ji(o))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){const n=["length"];return this.eachChild(o=>{n.push(o.serialize())}),n}}const c0={"==":a0,"!=":l0,">":MM,"<":_f,">=":bM,"<=":wM,array:cs,at:n0,boolean:cs,case:r0,coalesce:gf,collator:ku,format:rc,image:Lu,in:i0,"index-of":_M,interpolate:Fo,"interpolate-hcl":Fo,"interpolate-lab":Fo,length:xf,let:t0,literal:ic,match:vM,number:cs,"number-format":vf,object:cs,slice:xM,step:Yu,string:cs,"to-boolean":ca,"to-color":ca,"to-number":ca,"to-string":ca,var:cf,within:lf};function u0(r,[n,o,c,d]){n=n.evaluate(r),o=o.evaluate(r),c=c.evaluate(r);const p=d?d.evaluate(r):1,_=Q1(n,o,c,p);if(_)throw new lr(_);return new ji(n/255*p,o/255*p,c/255*p,p)}function Mf(r,n){return r in n}function eh(r,n){const o=n[r];return o===void 0?null:o}function Qo(r){return{type:r}}js.register(c0,{error:[{kind:"error"},[Rn],(r,[n])=>{throw new lr(n.evaluate(r))}],typeof:[Rn,[En],(r,[n])=>Ti(Ji(n.evaluate(r)))],"to-rgba":[fr(Vt,4),[Ao],(r,[n])=>n.evaluate(r).toArray()],rgb:[Ao,[Vt,Vt,Vt],u0],rgba:[Ao,[Vt,Vt,Vt,Vt],u0],has:{type:zn,overloads:[[[Rn],(r,[n])=>Mf(n.evaluate(r),r.properties())],[[Rn,la],(r,[n,o])=>Mf(n.evaluate(r),o.evaluate(r))]]},get:{type:En,overloads:[[[Rn],(r,[n])=>eh(n.evaluate(r),r.properties())],[[Rn,la],(r,[n,o])=>eh(n.evaluate(r),o.evaluate(r))]]},"feature-state":[En,[Rn],(r,[n])=>eh(n.evaluate(r),r.featureState||{})],properties:[la,[],r=>r.properties()],"geometry-type":[Rn,[],r=>r.geometryType()],id:[En,[],r=>r.id()],zoom:[Vt,[],r=>r.globals.zoom],pitch:[Vt,[],r=>r.globals.pitch||0],"distance-from-center":[Vt,[],r=>r.distanceFromCenter()],"heatmap-density":[Vt,[],r=>r.globals.heatmapDensity||0],"line-progress":[Vt,[],r=>r.globals.lineProgress||0],"sky-radial-progress":[Vt,[],r=>r.globals.skyRadialProgress||0],accumulated:[En,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],"+":[Vt,Qo(Vt),(r,n)=>{let o=0;for(const c of n)o+=c.evaluate(r);return o}],"*":[Vt,Qo(Vt),(r,n)=>{let o=1;for(const c of n)o*=c.evaluate(r);return o}],"-":{type:Vt,overloads:[[[Vt,Vt],(r,[n,o])=>n.evaluate(r)-o.evaluate(r)],[[Vt],(r,[n])=>-n.evaluate(r)]]},"/":[Vt,[Vt,Vt],(r,[n,o])=>n.evaluate(r)/o.evaluate(r)],"%":[Vt,[Vt,Vt],(r,[n,o])=>n.evaluate(r)%o.evaluate(r)],ln2:[Vt,[],()=>Math.LN2],pi:[Vt,[],()=>Math.PI],e:[Vt,[],()=>Math.E],"^":[Vt,[Vt,Vt],(r,[n,o])=>Math.pow(n.evaluate(r),o.evaluate(r))],sqrt:[Vt,[Vt],(r,[n])=>Math.sqrt(n.evaluate(r))],log10:[Vt,[Vt],(r,[n])=>Math.log(n.evaluate(r))/Math.LN10],ln:[Vt,[Vt],(r,[n])=>Math.log(n.evaluate(r))],log2:[Vt,[Vt],(r,[n])=>Math.log(n.evaluate(r))/Math.LN2],sin:[Vt,[Vt],(r,[n])=>Math.sin(n.evaluate(r))],cos:[Vt,[Vt],(r,[n])=>Math.cos(n.evaluate(r))],tan:[Vt,[Vt],(r,[n])=>Math.tan(n.evaluate(r))],asin:[Vt,[Vt],(r,[n])=>Math.asin(n.evaluate(r))],acos:[Vt,[Vt],(r,[n])=>Math.acos(n.evaluate(r))],atan:[Vt,[Vt],(r,[n])=>Math.atan(n.evaluate(r))],min:[Vt,Qo(Vt),(r,n)=>Math.min(...n.map(o=>o.evaluate(r)))],max:[Vt,Qo(Vt),(r,n)=>Math.max(...n.map(o=>o.evaluate(r)))],abs:[Vt,[Vt],(r,[n])=>Math.abs(n.evaluate(r))],round:[Vt,[Vt],(r,[n])=>{const o=n.evaluate(r);return o<0?-Math.round(-o):Math.round(o)}],floor:[Vt,[Vt],(r,[n])=>Math.floor(n.evaluate(r))],ceil:[Vt,[Vt],(r,[n])=>Math.ceil(n.evaluate(r))],"filter-==":[zn,[Rn,En],(r,[n,o])=>r.properties()[n.value]===o.value],"filter-id-==":[zn,[En],(r,[n])=>r.id()===n.value],"filter-type-==":[zn,[Rn],(r,[n])=>r.geometryType()===n.value],"filter-<":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c<d}],"filter-id-<":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o<c}],"filter->":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c>d}],"filter-id->":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o>c}],"filter-<=":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c<=d}],"filter-id-<=":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o<=c}],"filter->=":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c>=d}],"filter-id->=":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o>=c}],"filter-has":[zn,[En],(r,[n])=>n.value in r.properties()],"filter-has-id":[zn,[],r=>r.id()!==null&&r.id()!==void 0],"filter-type-in":[zn,[fr(Rn)],(r,[n])=>n.value.indexOf(r.geometryType())>=0],"filter-id-in":[zn,[fr(En)],(r,[n])=>n.value.indexOf(r.id())>=0],"filter-in-small":[zn,[Rn,fr(En)],(r,[n,o])=>o.value.indexOf(r.properties()[n.value])>=0],"filter-in-large":[zn,[Rn,fr(En)],(r,[n,o])=>function(c,d,p,_){for(;p<=_;){const M=p+_>>1;if(d[M]===c)return!0;d[M]>c?_=M-1:p=M+1}return!1}(r.properties()[n.value],o.value,0,o.value.length-1)],all:{type:zn,overloads:[[[zn,zn],(r,[n,o])=>n.evaluate(r)&&o.evaluate(r)],[Qo(zn),(r,n)=>{for(const o of n)if(!o.evaluate(r))return!1;return!0}]]},any:{type:zn,overloads:[[[zn,zn],(r,[n,o])=>n.evaluate(r)||o.evaluate(r)],[Qo(zn),(r,n)=>{for(const o of n)if(o.evaluate(r))return!0;return!1}]]},"!":[zn,[zn],(r,[n])=>!n.evaluate(r)],"is-supported-script":[zn,[Rn],(r,[n])=>{const o=r.globals&&r.globals.isSupportedScript;return!o||o(n.evaluate(r))}],upcase:[Rn,[Rn],(r,[n])=>n.evaluate(r).toUpperCase()],downcase:[Rn,[Rn],(r,[n])=>n.evaluate(r).toLowerCase()],concat:[Rn,Qo(En),(r,n)=>n.map(o=>nc(o.evaluate(r))).join("")],"resolved-locale":[Rn,[Wl],(r,[n])=>n.evaluate(r).resolvedLocale()]});var fc=c0;function h0(r){return{result:"success",value:r}}function eo(r){return{result:"error",value:r}}function fa(r){return r["property-type"]==="data-driven"}function pa(r){return!!r.expression&&r.expression.parameters.indexOf("zoom")>-1}function wf(r){return!!r.expression&&r.expression.interpolated}function Xn(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":r===null?"null":typeof r}function pc(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function IM(r){return r}function th(r,n){const o=n.type==="color",c=r.stops&&typeof r.stops[0][0]=="object",d=c||!(c||r.property!==void 0),p=r.type||(wf(n)?"exponential":"interval");if(o&&((r=as({},r)).stops&&(r.stops=r.stops.map(I=>[I[0],ji.parse(I[1])])),r.default=ji.parse(r.default?r.default:n.default)),r.colorSpace&&r.colorSpace!=="rgb"&&!e0[r.colorSpace])throw new Error(`Unknown color space: ${r.colorSpace}`);let _,M,b;if(p==="exponential")_=If;else if(p==="interval")_=d0;else if(p==="categorical"){_=bf,M=Object.create(null);for(const I of r.stops)M[I[0]]=I[1];b=typeof r.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);_=Df}if(c){const I={},S=[];for(let B=0;B<r.stops.length;B++){const Q=r.stops[B],W=Q[0].zoom;I[W]===void 0&&(I[W]={zoom:W,type:r.type,property:r.property,default:r.default,stops:[]},S.push(W)),I[W].stops.push([Q[0].value,Q[1]])}const j=[];for(const B of S)j.push([I[B].zoom,th(I[B],n)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:Fo.interpolationFactor.bind(void 0,k),zoomStops:j.map(B=>B[0]),evaluate:({zoom:B},Q)=>If({stops:j,base:r.base},n,B).evaluate(B,Q)}}if(d){const I=p==="exponential"?{name:"exponential",base:r.base!==void 0?r.base:1}:null;return{kind:"camera",interpolationType:I,interpolationFactor:Fo.interpolationFactor.bind(void 0,I),zoomStops:r.stops.map(S=>S[0]),evaluate:({zoom:S})=>_(r,n,S,M,b)}}return{kind:"source",evaluate(I,S){const j=S&&S.properties?S.properties[r.property]:void 0;return j===void 0?rl(r.default,n.default):_(r,n,j,M,b)}}}function rl(r,n,o){return r!==void 0?r:n!==void 0?n:o!==void 0?o:void 0}function bf(r,n,o,c,d){return rl(typeof o===d?c[o]:void 0,r.default,n.default)}function d0(r,n,o){if(Xn(o)!=="number")return rl(r.default,n.default);const c=r.stops.length;if(c===1||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[c-1][0])return r.stops[c-1][1];const d=Vu(r.stops.map(p=>p[0]),o);return r.stops[d][1]}function If(r,n,o){const c=r.base!==void 0?r.base:1;if(Xn(o)!=="number")return rl(r.default,n.default);const d=r.stops.length;if(d===1||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[d-1][0])return r.stops[d-1][1];const p=Vu(r.stops.map(S=>S[0]),o),_=function(S,j,k,B){const Q=B-k,W=S-k;return Q===0?0:j===1?W/Q:(Math.pow(j,W)-1)/(Math.pow(j,Q)-1)}(o,c,r.stops[p][0],r.stops[p+1][0]),M=r.stops[p][1],b=r.stops[p+1][1];let I=$u[n.type]||IM;if(r.colorSpace&&r.colorSpace!=="rgb"){const S=e0[r.colorSpace];I=(j,k)=>S.reverse(S.interpolate(S.forward(j),S.forward(k),_))}return typeof M.evaluate=="function"?{evaluate(...S){const j=M.evaluate.apply(void 0,S),k=b.evaluate.apply(void 0,S);if(j!==void 0&&k!==void 0)return I(j,k,_)}}:I(M,b,_)}function Df(r,n,o){return n.type==="color"?o=ji.parse(o):n.type==="formatted"?o=pr.fromString(o.toString()):n.type==="resolvedImage"?o=ho.fromString(o.toString()):Xn(o)===n.type||n.type==="enum"&&n.values[o]||(o=void 0),rl(o,r.default,n.default)}class nh{constructor(n,o){this.expression=n,this._warningHistory={},this._evaluator=new V1,this._defaultValue=o?function(c){return c.type==="color"&&(pc(c.default)||Array.isArray(c.default))?new ji(0,0,0,0):c.type==="color"?ji.parse(c.default)||null:c.default===void 0?null:c.default}(o):null,this._enumValues=o&&o.type==="enum"?o.values:null}evaluateWithoutErrorHandling(n,o,c,d,p,_,M,b){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=M||null,this._evaluator.featureDistanceData=b||null,this.expression.evaluate(this._evaluator)}evaluate(n,o,c,d,p,_,M,b){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=M||null,this._evaluator.featureDistanceData=b||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 lr(`Expected value to be one of ${Object.keys(this._enumValues).map(S=>JSON.stringify(S)).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 gc(r){return Array.isArray(r)&&r.length>0&&typeof r[0]=="string"&&r[0]in fc}function Ls(r,n){const o=new ha(fc,[],n?function(d){const p={color:Ao,string:Rn,number:Vt,enum:Rn,boolean:zn,formatted:Xa,resolvedImage:Ss};return d.type==="array"?fr(p[d.value]||En,d.length):p[d.type]}(n):void 0),c=o.parse(r,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return c?h0(new nh(c,n)):eo(o.errors)}class Os{constructor(n,o){this.kind=n,this._styleExpression=o,this.isStateDependent=n!=="constant"&&!Bu(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 ih{constructor(n,o,c,d){this.kind=n,this.zoomStops=c,this._styleExpression=o,this.isStateDependent=n!=="camera"&&!Bu(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?Fo.interpolationFactor(this.interpolationType,n,o,c):0}}function Tf(r,n){if((r=Ls(r,n)).result==="error")return r;const o=r.value.expression,c=el(o);if(!c&&!fa(n))return eo([new Jr("","data expressions not supported")]);const d=cc(o,["zoom","pitch","distance-from-center"]);if(!d&&!pa(n))return eo([new Jr("","zoom expressions not supported")]);const p=mc(o);return p||d?p instanceof Jr?eo([p]):p instanceof Fo&&!wf(n)?eo([new Jr("",'"interpolate" expressions cannot be used with this property')]):h0(p?new ih(c?"camera":"composite",r.value,p.labels,p instanceof Fo?p.interpolation:void 0):new Os(c?"constant":"source",r.value)):eo([new Jr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class ol{constructor(n,o){this._parameters=n,this._specification=o,as(this,th(this._parameters,this._specification))}static deserialize(n){return new ol(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}}function mc(r){let n=null;if(r instanceof t0)n=mc(r.result);else if(r instanceof gf){for(const o of r.args)if(n=mc(o),n)break}else(r instanceof Yu||r instanceof Fo)&&r.input instanceof js&&r.input.name==="zoom"&&(n=r);return n instanceof Jr||r.eachChild(o=>{const c=mc(o);c instanceof Jr?n=c:!n&&c?n=new Jr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&c&&n!==c&&(n=new Jr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}class Yt{constructor(n,o,c,d){this.message=(n?`${n}: `:"")+c,d&&(this.identifier=d),o!=null&&o.__line__&&(this.line=o.__line__)}}function fo(r){const n=r.key,o=r.value,c=r.valueSpec||{},d=r.objectElementValidators||{},p=r.style,_=r.styleSpec;let M=[];const b=Xn(o);if(b!=="object")return[new Yt(n,o,`object expected, ${b} found`)];for(const I in o){const S=I.split(".")[0],j=c[S]||c["*"];let k;d[S]?k=d[S]:c[S]?k=Dr:d["*"]?k=d["*"]:c["*"]&&(k=Dr),k?M=M.concat(k({key:(n&&`${n}.`)+I,value:o[I],valueSpec:j,style:p,styleSpec:_,object:o,objectKey:I},o)):M.push(new Yt(n,o[I],`unknown property "${I}"`))}for(const I in c)d[I]||c[I].required&&c[I].default===void 0&&o[I]===void 0&&M.push(new Yt(n,o,`missing required property "${I}"`));return M}function yc(r){const n=r.value,o=r.valueSpec,c=r.style,d=r.styleSpec,p=r.key,_=r.arrayElementValidator||Dr;if(Xn(n)!=="array")return[new Yt(p,n,`array expected, ${Xn(n)} found`)];if(o.length&&n.length!==o.length)return[new Yt(p,n,`array length ${o.length} expected, length ${n.length} found`)];if(o["min-length"]&&n.length<o["min-length"])return[new Yt(p,n,`array length at least ${o["min-length"]} expected, length ${n.length} found`)];let M={type:o.value,values:o.values,minimum:o.minimum,maximum:o.maximum,function:void 0};d.$version<7&&(M.function=o.function),Xn(o.value)==="object"&&(M=o.value);let b=[];for(let I=0;I<n.length;I++)b=b.concat(_({array:n,arrayIndex:I,value:n[I],valueSpec:M,style:c,styleSpec:d,key:`${p}[${I}]`}));return b}function f0(r){const n=r.key,o=r.value,c=r.valueSpec;let d=Xn(o);if(d==="number"&&o!=o&&(d="NaN"),d!=="number")return[new Yt(n,o,`number expected, ${d} found`)];if("minimum"in c){let p=c.minimum;if(Xn(c.minimum)==="array"&&(p=c.minimum[r.arrayIndex]),o<p)return[new Yt(n,o,`${o} is less than the minimum value ${p}`)]}if("maximum"in c){let p=c.maximum;if(Xn(c.maximum)==="array"&&(p=c.maximum[r.arrayIndex]),o>p)return[new Yt(n,o,`${o} is greater than the maximum value ${p}`)]}return[]}function p0(r){const n=r.valueSpec,o=Ki(r.value.type);let c,d,p,_={};const M=o!=="categorical"&&r.value.property===void 0,b=!M,I=Xn(r.value.stops)==="array"&&Xn(r.value.stops[0])==="array"&&Xn(r.value.stops[0][0])==="object",S=fo({key:r.key,value:r.value,valueSpec:r.styleSpec.function,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{stops:function(B){if(o==="identity")return[new Yt(B.key,B.value,'identity function may not have a "stops" property')];let Q=[];const W=B.value;return Q=Q.concat(yc({key:B.key,value:W,valueSpec:B.valueSpec,style:B.style,styleSpec:B.styleSpec,arrayElementValidator:j})),Xn(W)==="array"&&W.length===0&&Q.push(new Yt(B.key,W,"array must have at least one stop")),Q},default:function(B){return Dr({key:B.key,value:B.value,valueSpec:n,style:B.style,styleSpec:B.styleSpec})}}});return o==="identity"&&M&&S.push(new Yt(r.key,r.value,'missing required property "property"')),o==="identity"||r.value.stops||S.push(new Yt(r.key,r.value,'missing required property "stops"')),o==="exponential"&&r.valueSpec.expression&&!wf(r.valueSpec)&&S.push(new Yt(r.key,r.value,"exponential functions not supported")),r.styleSpec.$version>=8&&(b&&!fa(r.valueSpec)?S.push(new Yt(r.key,r.value,"property functions not supported")):M&&!pa(r.valueSpec)&&S.push(new Yt(r.key,r.value,"zoom functions not supported"))),o!=="categorical"&&!I||r.value.property!==void 0||S.push(new Yt(r.key,r.value,'"property" property is required')),S;function j(B){let Q=[];const W=B.value,re=B.key;if(Xn(W)!=="array")return[new Yt(re,W,`array expected, ${Xn(W)} found`)];if(W.length!==2)return[new Yt(re,W,`array length 2 expected, length ${W.length} found`)];if(I){if(Xn(W[0])!=="object")return[new Yt(re,W,`object expected, ${Xn(W[0])} found`)];if(W[0].zoom===void 0)return[new Yt(re,W,"object stop key must have zoom")];if(W[0].value===void 0)return[new Yt(re,W,"object stop key must have value")];const ve=Ki(W[0].zoom);if(typeof ve!="number")return[new Yt(re,W[0].zoom,"stop zoom values must be numbers")];if(p&&p>ve)return[new Yt(re,W[0].zoom,"stop zoom values must appear in ascending order")];ve!==p&&(p=ve,d=void 0,_={}),Q=Q.concat(fo({key:`${re}[0]`,value:W[0],valueSpec:{zoom:{}},style:B.style,styleSpec:B.styleSpec,objectElementValidators:{zoom:f0,value:k}}))}else Q=Q.concat(k({key:`${re}[0]`,value:W[0],valueSpec:{},style:B.style,styleSpec:B.styleSpec},W));return gc(ls(W[1]))?Q.concat([new Yt(`${re}[1]`,W[1],"expressions are not allowed in function stops.")]):Q.concat(Dr({key:`${re}[1]`,value:W[1],valueSpec:n,style:B.style,styleSpec:B.styleSpec}))}function k(B,Q){const W=Xn(B.value),re=Ki(B.value),ve=B.value!==null?B.value:Q;if(c){if(W!==c)return[new Yt(B.key,ve,`${W} stop domain type must match previous stop domain type ${c}`)]}else c=W;if(W!=="number"&&W!=="string"&&W!=="boolean"&&typeof re!="number"&&typeof re!="string"&&typeof re!="boolean")return[new Yt(B.key,ve,"stop domain value must be a number, string, or boolean")];if(W!=="number"&&o!=="categorical"){let Ee=`number expected, ${W} found`;return fa(n)&&o===void 0&&(Ee+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Yt(B.key,ve,Ee)]}return o!=="categorical"||W!=="number"||typeof re=="number"&&isFinite(re)&&Math.floor(re)===re?o!=="categorical"&&W==="number"&&typeof re=="number"&&typeof d=="number"&&d!==void 0&&re<d?[new Yt(B.key,ve,"stop domain values must appear in ascending order")]:(d=re,o==="categorical"&&re in _?[new Yt(B.key,ve,"stop domain values must be unique")]:(_[re]=!0,[])):[new Yt(B.key,ve,`integer expected, found ${String(re)}`)]}}function sl(r){const n=(r.expressionContext==="property"?Tf:Ls)(ls(r.value),r.valueSpec);if(n.result==="error")return n.value.map(c=>new Yt(`${r.key}${c.key}`,r.value,c.message));const o=n.value.expression||n.value._styleExpression.expression;if(r.expressionContext==="property"&&r.propertyKey==="text-font"&&!o.outputDefined())return[new Yt(r.key,r.value,`Invalid data expression for "${r.propertyKey}". Output values must be contained as literals within the expression.`)];if(r.expressionContext==="property"&&r.propertyType==="layout"&&!Bu(o))return[new Yt(r.key,r.value,'"feature-state" data expressions are not supported with layout properties.')];if(r.expressionContext==="filter")return g0(o,r);if(r.expressionContext&&r.expressionContext.indexOf("cluster")===0){if(!cc(o,["zoom","feature-state"]))return[new Yt(r.key,r.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(r.expressionContext==="cluster-initial"&&!el(o))return[new Yt(r.key,r.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function g0(r,n){const o=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(n.valueSpec&&n.valueSpec.expression)for(const d of n.valueSpec.expression.parameters)o.delete(d);if(o.size===0)return[];const c=[];return r instanceof js&&o.has(r.name)?[new Yt(n.key,n.value,`["${r.name}"] expression is not supported in a filter for a ${n.object.type} layer with id: ${n.object.id}`)]:(r.eachChild(d=>{c.push(...g0(d,n))}),c)}function rh(r){const n=r.key,o=r.value,c=r.valueSpec,d=[];return Array.isArray(c.values)?c.values.indexOf(Ki(o))===-1&&d.push(new Yt(n,o,`expected one of [${c.values.join(", ")}], ${JSON.stringify(o)} found`)):Object.keys(c.values).indexOf(Ki(o))===-1&&d.push(new Yt(n,o,`expected one of [${Object.keys(c.values).join(", ")}], ${JSON.stringify(o)} found`)),d}function al(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case"has":return r.length>=2&&r[1]!=="$id"&&r[1]!=="$type";case"in":return r.length>=3&&(typeof r[1]!="string"||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const n of r.slice(1))if(!al(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function ga(r,n="fill"){if(r==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};al(r)||(r=cl(r));const o=r;let c=!0;try{c=function(I){if(!ll(I))return I;let S=ls(I);return _c(S),S=Qr(S),S}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
43
+ hot module replacement.`;console.warn(t)}}function ez(e){fu.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&J9(e.key),Ul.set(e.key,e);const t=e.set==null?new pu.RecoilValueReadOnly(e.key):new pu.RecoilState(e.key);return Qv.set(e.key,t),t}class y5 extends Error{}function tz(e){const t=Ul.get(e);if(t==null)throw new y5(`Missing definition for RecoilValue: "${e}""`);return t}function nz(e){return Ul.get(e)}const Vg=new Map;function iz(e){var t;if(!Ii("recoil_memory_managament_2020"))return;const i=Ul.get(e);if(i!=null&&(t=i.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(i)){var l;Ul.delete(e),(l=_5(e))===null||l===void 0||l(),Vg.delete(e)}}function rz(e,t){Ii("recoil_memory_managament_2020")&&(t===void 0?Vg.delete(e):Vg.set(e,t))}function _5(e){return Vg.get(e)}var ao={nodes:Ul,recoilValues:Qv,registerNode:ez,getNode:tz,getNodeMaybe:nz,deleteNodeConfigIfPossible:iz,setConfigDeletionHandler:rz,getConfigDeletionHandler:_5,recoilValuesForKeys:K9,NodeMissingError:y5,DefaultValue:m5,DEFAULT_VALUE:X9};function oz(e,t){t()}var sz={enqueueExecution:oz};function az(e,t){return t={exports:{}},e(t,t.exports),t.exports}var lz=az(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},i={},l=5,h=Math.pow(2,l),v=h-1,y=h/2,a=h/4,m={},D=function(Pe){return function(){return Pe}},C=i.hash=function(Fe){var Pe=typeof Fe>"u"?"undefined":t(Fe);if(Pe==="number")return Fe;Pe!=="string"&&(Fe+="");for(var Mt=0,zt=0,Ut=Fe.length;zt<Ut;++zt){var Kt=Fe.charCodeAt(zt);Mt=(Mt<<5)-Mt+Kt|0}return Mt},E=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},A=function(Pe,Mt){return Mt>>>Pe&v},O=function(Pe){return 1<<Pe},L=function(Pe,Mt){return E(Pe&Mt-1)},U=function(Pe,Mt,zt,Ut){var Kt=Ut;if(!Pe){var un=Ut.length;Kt=new Array(un);for(var yn=0;yn<un;++yn)Kt[yn]=Ut[yn]}return Kt[Mt]=zt,Kt},q=function(Pe,Mt,zt){var Ut=zt.length-1,Kt=0,un=0,yn=zt;if(Pe)Kt=un=Mt;else for(yn=new Array(Ut);Kt<Mt;)yn[un++]=zt[Kt++];for(++Kt;Kt<=Ut;)yn[un++]=zt[Kt++];return Pe&&(yn.length=Ut),yn},H=function(Pe,Mt,zt,Ut){var Kt=Ut.length;if(Pe){for(var un=Kt;un>=Mt;)Ut[un--]=Ut[un];return Ut[Mt]=zt,Ut}for(var yn=0,vn=0,Dn=new Array(Kt+1);yn<Mt;)Dn[vn++]=Ut[yn++];for(Dn[Mt]=zt;yn<Kt;)Dn[++vn]=Ut[yn++];return Dn},V=1,G=2,ee=3,K=4,_e={__hamt_isEmpty:!0},xe=function(Pe){return Pe===_e||Pe&&Pe.__hamt_isEmpty},Ne=function(Pe,Mt,zt,Ut){return{type:V,edit:Pe,hash:Mt,key:zt,value:Ut,_modify:Ye}},Me=function(Pe,Mt,zt){return{type:G,edit:Pe,hash:Mt,children:zt,_modify:Ze}},ze=function(Pe,Mt,zt){return{type:ee,edit:Pe,mask:Mt,children:zt,_modify:ae}},Ge=function(Pe,Mt,zt){return{type:K,edit:Pe,size:Mt,children:zt,_modify:de}},He=function(Pe){return Pe===_e||Pe.type===V||Pe.type===G},ct=function(Pe,Mt,zt,Ut,Kt){for(var un=[],yn=Ut,vn=0,Dn=0;yn;++Dn)yn&1&&(un[Dn]=Kt[vn++]),yn>>>=1;return un[Mt]=zt,Ge(Pe,vn+1,un)},ft=function(Pe,Mt,zt,Ut){for(var Kt=new Array(Mt-1),un=0,yn=0,vn=0,Dn=Ut.length;vn<Dn;++vn)if(vn!==zt){var Jn=Ut[vn];Jn&&!xe(Jn)&&(Kt[un++]=Jn,yn|=1<<vn)}return ze(Pe,yn,Kt)},Ae=function Fe(Pe,Mt,zt,Ut,Kt,un){if(zt===Kt)return Me(Pe,zt,[un,Ut]);var yn=A(Mt,zt),vn=A(Mt,Kt);return ze(Pe,O(yn)|O(vn),yn===vn?[Fe(Pe,Mt+l,zt,Ut,Kt,un)]:yn<vn?[Ut,un]:[un,Ut])},Re=function(Pe,Mt,zt,Ut,Kt,un,yn,vn){for(var Dn=Kt.length,Jn=0;Jn<Dn;++Jn){var Zi=Kt[Jn];if(zt(yn,Zi.key)){var ci=Zi.value,Hi=un(ci);return Hi===ci?Kt:Hi===m?(--vn.value,q(Pe,Jn,Kt)):U(Pe,Jn,Ne(Mt,Ut,yn,Hi),Kt)}}var dr=un();return dr===m?Kt:(++vn.value,U(Pe,Dn,Ne(Mt,Ut,yn,dr),Kt))},Je=function(Pe,Mt){return Pe===Mt.edit},Ye=function(Pe,Mt,zt,Ut,Kt,un,yn){if(Mt(un,this.key)){var vn=Ut(this.value);return vn===this.value?this:vn===m?(--yn.value,_e):Je(Pe,this)?(this.value=vn,this):Ne(Pe,Kt,un,vn)}var Dn=Ut();return Dn===m?this:(++yn.value,Ae(Pe,zt,this.hash,this,Kt,Ne(Pe,Kt,un,Dn)))},Ze=function(Pe,Mt,zt,Ut,Kt,un,yn){if(Kt===this.hash){var vn=Je(Pe,this),Dn=Re(vn,Pe,Mt,this.hash,this.children,Ut,un,yn);return Dn===this.children?this:Dn.length>1?Me(Pe,this.hash,Dn):Dn[0]}var Jn=Ut();return Jn===m?this:(++yn.value,Ae(Pe,zt,this.hash,this,Kt,Ne(Pe,Kt,un,Jn)))},ae=function(Pe,Mt,zt,Ut,Kt,un,yn){var vn=this.mask,Dn=this.children,Jn=A(zt,Kt),Zi=O(Jn),ci=L(vn,Zi),Hi=vn&Zi,dr=Hi?Dn[ci]:_e,pe=dr._modify(Pe,Mt,zt+l,Ut,Kt,un,yn);if(dr===pe)return this;var Y=Je(Pe,this),X=vn,he=void 0;if(Hi&&xe(pe)){if(X&=~Zi,!X)return _e;if(Dn.length<=2&&He(Dn[ci^1]))return Dn[ci^1];he=q(Y,ci,Dn)}else if(!Hi&&!xe(pe)){if(Dn.length>=y)return ct(Pe,Jn,pe,vn,Dn);X|=Zi,he=H(Y,ci,pe,Dn)}else he=U(Y,ci,pe,Dn);return Y?(this.mask=X,this.children=he,this):ze(Pe,X,he)},de=function(Pe,Mt,zt,Ut,Kt,un,yn){var vn=this.size,Dn=this.children,Jn=A(zt,Kt),Zi=Dn[Jn],ci=(Zi||_e)._modify(Pe,Mt,zt+l,Ut,Kt,un,yn);if(Zi===ci)return this;var Hi=Je(Pe,this),dr=void 0;if(xe(Zi)&&!xe(ci))++vn,dr=U(Hi,Jn,ci,Dn);else if(!xe(Zi)&&xe(ci)){if(--vn,vn<=a)return ft(Pe,vn,Jn,Dn);dr=U(Hi,Jn,_e,Dn)}else dr=U(Hi,Jn,ci,Dn);return Hi?(this.size=vn,this.children=dr,this):Ge(Pe,vn,dr)};_e._modify=function(Fe,Pe,Mt,zt,Ut,Kt,un){var yn=zt();return yn===m?_e:(++un.value,Ne(Fe,Ut,Kt,yn))};function J(Fe,Pe,Mt,zt,Ut){this._editable=Fe,this._edit=Pe,this._config=Mt,this._root=zt,this._size=Ut}J.prototype.setTree=function(Fe,Pe){return this._editable?(this._root=Fe,this._size=Pe,this):Fe===this._root?this:new J(this._editable,this._edit,this._config,Fe,Pe)};var F=i.tryGetHash=function(Fe,Pe,Mt,zt){for(var Ut=zt._root,Kt=0,un=zt._config.keyEq;;)switch(Ut.type){case V:return un(Mt,Ut.key)?Ut.value:Fe;case G:{if(Pe===Ut.hash)for(var yn=Ut.children,vn=0,Dn=yn.length;vn<Dn;++vn){var Jn=yn[vn];if(un(Mt,Jn.key))return Jn.value}return Fe}case ee:{var Zi=A(Kt,Pe),ci=O(Zi);if(Ut.mask&ci){Ut=Ut.children[L(Ut.mask,ci)],Kt+=l;break}return Fe}case K:{if(Ut=Ut.children[A(Kt,Pe)],Ut){Kt+=l;break}return Fe}default:return Fe}};J.prototype.tryGetHash=function(Fe,Pe,Mt){return F(Fe,Pe,Mt,this)};var Z=i.tryGet=function(Fe,Pe,Mt){return F(Fe,Mt._config.hash(Pe),Pe,Mt)};J.prototype.tryGet=function(Fe,Pe){return Z(Fe,Pe,this)};var ie=i.getHash=function(Fe,Pe,Mt){return F(void 0,Fe,Pe,Mt)};J.prototype.getHash=function(Fe,Pe){return ie(Fe,Pe,this)},i.get=function(Fe,Pe){return F(void 0,Pe._config.hash(Fe),Fe,Pe)},J.prototype.get=function(Fe,Pe){return Z(Pe,Fe,this)};var ne=i.has=function(Fe,Pe,Mt){return F(m,Fe,Pe,Mt)!==m};J.prototype.hasHash=function(Fe,Pe){return ne(Fe,Pe,this)};var De=i.has=function(Fe,Pe){return ne(Pe._config.hash(Fe),Fe,Pe)};J.prototype.has=function(Fe){return De(Fe,this)};var Oe=function(Pe,Mt){return Pe===Mt};i.make=function(Fe){return new J(0,0,{keyEq:Fe&&Fe.keyEq||Oe,hash:Fe&&Fe.hash||C},_e,0)},i.empty=i.make();var we=i.isEmpty=function(Fe){return Fe&&!!xe(Fe._root)};J.prototype.isEmpty=function(){return we(this)};var Qe=i.modifyHash=function(Fe,Pe,Mt,zt){var Ut={value:zt._size},Kt=zt._root._modify(zt._editable?zt._edit:NaN,zt._config.keyEq,0,Fe,Pe,Mt,Ut);return zt.setTree(Kt,Ut.value)};J.prototype.modifyHash=function(Fe,Pe,Mt){return Qe(Mt,Fe,Pe,this)};var et=i.modify=function(Fe,Pe,Mt){return Qe(Fe,Mt._config.hash(Pe),Pe,Mt)};J.prototype.modify=function(Fe,Pe){return et(Pe,Fe,this)};var it=i.setHash=function(Fe,Pe,Mt,zt){return Qe(D(Mt),Fe,Pe,zt)};J.prototype.setHash=function(Fe,Pe,Mt){return it(Fe,Pe,Mt,this)};var Ue=i.set=function(Fe,Pe,Mt){return it(Mt._config.hash(Fe),Fe,Pe,Mt)};J.prototype.set=function(Fe,Pe){return Ue(Fe,Pe,this)};var rt=D(m),Tt=i.removeHash=function(Fe,Pe,Mt){return Qe(rt,Fe,Pe,Mt)};J.prototype.removeHash=J.prototype.deleteHash=function(Fe,Pe){return Tt(Fe,Pe,this)};var ut=i.remove=function(Fe,Pe){return Tt(Pe._config.hash(Fe),Fe,Pe)};J.prototype.remove=J.prototype.delete=function(Fe){return ut(Fe,this)};var Lt=i.beginMutation=function(Fe){return new J(Fe._editable+1,Fe._edit+1,Fe._config,Fe._root,Fe._size)};J.prototype.beginMutation=function(){return Lt(this)};var Zt=i.endMutation=function(Fe){return Fe._editable=Fe._editable&&Fe._editable-1,Fe};J.prototype.endMutation=function(){return Zt(this)};var Xt=i.mutate=function(Fe,Pe){var Mt=Lt(Pe);return Fe(Mt),Zt(Mt)};J.prototype.mutate=function(Fe){return Xt(Fe,this)};var _n=function(Pe){return Pe&&li(Pe[0],Pe[1],Pe[2],Pe[3],Pe[4])},li=function(Pe,Mt,zt,Ut,Kt){for(;zt<Pe;){var un=Mt[zt++];if(un&&!xe(un))return bn(un,Ut,[Pe,Mt,zt,Ut,Kt])}return _n(Kt)},bn=function(Pe,Mt,zt){switch(Pe.type){case V:return{value:Mt(Pe),rest:zt};case G:case K:case ee:var Ut=Pe.children;return li(Ut.length,Ut,0,Mt,zt);default:return _n(zt)}},Pn={done:!0};function Mn(Fe){this.v=Fe}Mn.prototype.next=function(){if(!this.v)return Pn;var Fe=this.v;return this.v=_n(Fe.rest),Fe},Mn.prototype[Symbol.iterator]=function(){return this};var cn=function(Pe,Mt){return new Mn(bn(Pe._root,Mt))},mn=function(Pe){return[Pe.key,Pe.value]},kt=i.entries=function(Fe){return cn(Fe,mn)};J.prototype.entries=J.prototype[Symbol.iterator]=function(){return kt(this)};var Tn=function(Pe){return Pe.key},Gn=i.keys=function(Fe){return cn(Fe,Tn)};J.prototype.keys=function(){return Gn(this)};var Un=function(Pe){return Pe.value},wn=i.values=J.prototype.values=function(Fe){return cn(Fe,Un)};J.prototype.values=function(){return wn(this)};var sn=i.fold=function(Fe,Pe,Mt){var zt=Mt._root;if(zt.type===V)return Fe(Pe,zt.value,zt.key);for(var Ut=[zt.children],Kt=void 0;Kt=Ut.pop();)for(var un=0,yn=Kt.length;un<yn;){var vn=Kt[un++];vn&&vn.type&&(vn.type===V?Pe=Fe(Pe,vn.value,vn.key):Ut.push(vn.children))}return Pe};J.prototype.fold=function(Fe,Pe){return sn(Fe,Pe,this)};var yi=i.forEach=function(Fe,Pe){return sn(function(Mt,zt,Ut){return Fe(zt,Ut,Pe)},null,Pe)};J.prototype.forEach=function(Fe){return yi(Fe,this)};var Pi=i.count=function(Fe){return Fe._size};J.prototype.count=function(){return Pi(this)},Object.defineProperty(J.prototype,"size",{get:J.prototype.count}),e.exports?e.exports=i:(void 0).hamt=i});class cz{constructor(t){kn(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,i){return this._map.set(t,i),this}delete(t){return this._map.delete(t),this}clone(){return Yv(this)}toMap(){return new Map(this._map)}}class Vv{constructor(t){if(kn(this,"_hamt",lz.empty.beginMutation()),t instanceof Vv){const i=t._hamt.endMutation();t._hamt=i.beginMutation(),this._hamt=i.beginMutation()}else if(t)for(const[i,l]of t.entries())this._hamt.set(i,l)}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,i){return this._hamt.set(t,i),this}delete(t){return this._hamt.delete(t),this}clone(){return Yv(this)}toMap(){return new Map(this._hamt)}}function Yv(e){return Ii("recoil_hamt_2020")?new Vv(e):new cz(e)}var uz={persistentMap:Yv},hz=uz.persistentMap,dz=Object.freeze({__proto__:null,persistentMap:hz});function fz(e,...t){const i=new Set;e:for(const l of e){for(const h of t)if(h.has(l))continue e;i.add(l)}return i}var Ad=fz;function pz(e,t){const i=new Map;return e.forEach((l,h)=>{i.set(h,t(l,h))}),i}var Yg=pz;function gz(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function mz(e){return{nodeDeps:Yg(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:Yg(e.nodeToNodeSubscriptions,t=>new Set(t))}}function $v(e,t,i,l){const{nodeDeps:h,nodeToNodeSubscriptions:v}=i,y=h.get(e);if(y&&l&&y!==l.nodeDeps.get(e))return;h.set(e,t);const a=y==null?t:Ad(t,y);for(const m of a)v.has(m)||v.set(m,new Set),ki(v.get(m)).add(e);if(y){const m=Ad(y,t);for(const D of m){if(!v.has(D))return;const C=ki(v.get(D));C.delete(e),C.size===0&&v.delete(D)}}}function yz(e,t,i,l){var h,v,y,a;const m=i.getState();l===m.currentTree.version||l===((h=m.nextTree)===null||h===void 0?void 0:h.version)||((v=m.previousTree)===null||v===void 0||v.version);const D=i.getGraph(l);if($v(e,t,D),l===((y=m.previousTree)===null||y===void 0?void 0:y.version)){const E=i.getGraph(m.currentTree.version);$v(e,t,E,D)}if(l===((a=m.previousTree)===null||a===void 0?void 0:a.version)||l===m.currentTree.version){var C;const E=(C=m.nextTree)===null||C===void 0?void 0:C.version;if(E!==void 0){const A=i.getGraph(E);$v(e,t,A,D)}}}var Nd={cloneGraph:mz,graph:gz,saveDepsToStore:yz};let _z=0;const vz=()=>_z++;let xz=0;const Mz=()=>xz++;let wz=0;var $g={getNextTreeStateVersion:vz,getNextStoreID:Mz,getNextComponentID:()=>wz++};const{persistentMap:v5}=dz,{graph:bz}=Nd,{getNextTreeStateVersion:x5}=$g;function M5(){const e=x5();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:v5(),nonvalidatedAtoms:v5()}}function Iz(){const e=M5();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,bz()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var w5={makeEmptyTreeState:M5,makeEmptyStoreState:Iz,getNextTreeStateVersion:x5};class b5{}function Dz(){return new b5}var Zg={RetentionZone:b5,retentionZone:Dz};function Tz(e,t){const i=new Set(e);return i.add(t),i}function Az(e,t){const i=new Set(e);return i.delete(t),i}function Nz(e,t,i){const l=new Map(e);return l.set(t,i),l}function Ez(e,t,i){const l=new Map(e);return l.set(t,i(l.get(t))),l}function Cz(e,t){const i=new Map(e);return i.delete(t),i}function Sz(e,t){const i=new Map(e);return t.forEach(l=>i.delete(l)),i}var I5={setByAddingToSet:Tz,setByDeletingFromSet:Az,mapBySettingInMap:Nz,mapByUpdatingInMap:Ez,mapByDeletingFromMap:Cz,mapByDeletingMultipleFromMap:Sz};function*zz(e,t){let i=0;for(const l of e)t(l,i++)&&(yield l)}var Zv=zz;function jz(e,t){return new Proxy(e,{get:(l,h)=>(!(h in l)&&h in t&&(l[h]=t[h]()),l[h]),ownKeys:l=>Object.keys(l)})}var D5=jz;const{getNode:Ed,getNodeMaybe:Lz,recoilValuesForKeys:T5}=ao,{RetentionZone:A5}=Zg,{setByAddingToSet:Oz}=I5,kz=Object.freeze(new Set);class Pz extends Error{}function Rz(e,t,i){if(!Ii("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:l}=e.getState().retention;function h(v){let y=l.get(v);y||l.set(v,y=new Set),y.add(t)}if(i instanceof A5)h(i);else if(Array.isArray(i))for(const v of i)h(v);return()=>{if(!Ii("recoil_memory_managament_2020"))return;const{retention:v}=e.getState();function y(a){const m=v.nodesRetainedByZone.get(a);m==null||m.delete(t),m&&m.size===0&&v.nodesRetainedByZone.delete(a)}if(i instanceof A5)y(i);else if(Array.isArray(i))for(const a of i)y(a)}}function Hv(e,t,i,l){const h=e.getState();if(h.nodeCleanupFunctions.has(i))return;const v=Ed(i),y=Rz(e,i,v.retainedBy),a=v.init(e,t,l);h.nodeCleanupFunctions.set(i,()=>{a(),y()})}function Uz(e,t,i){Hv(e,e.getState().currentTree,t,i)}function Bz(e,t){var i;const l=e.getState();(i=l.nodeCleanupFunctions.get(t))===null||i===void 0||i(),l.nodeCleanupFunctions.delete(t)}function Fz(e,t,i){return Hv(e,t,i,"get"),Ed(i).get(e,t)}function N5(e,t,i){return Ed(i).peek(e,t)}function Qz(e,t,i){var l;const h=Lz(t);return h==null||(l=h.invalidate)===null||l===void 0||l.call(h,e),{...e,atomValues:e.atomValues.clone().delete(t),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(t,i),dirtyAtoms:Oz(e.dirtyAtoms,t)}}function Vz(e,t,i,l){const h=Ed(i);if(h.set==null)throw new Pz(`Attempt to set read-only RecoilValue: ${i}`);const v=h.set;return Hv(e,t,i,"set"),v(e,t,l)}function Yz(e,t,i){const l=e.getState(),h=e.getGraph(t.version),v=Ed(i).nodeType;return D5({type:v},{loadable:()=>N5(e,t,i),isActive:()=>l.knownAtoms.has(i)||l.knownSelectors.has(i),isSet:()=>v==="selector"?!1:t.atomValues.has(i),isModified:()=>t.dirtyAtoms.has(i),deps:()=>{var y;return T5((y=h.nodeDeps.get(i))!==null&&y!==void 0?y:[])},subscribers:()=>{var y,a;return{nodes:T5(Zv(E5(e,t,new Set([i])),m=>m!==i)),components:Qg((y=(a=l.nodeToComponentSubscriptions.get(i))===null||a===void 0?void 0:a.values())!==null&&y!==void 0?y:[],([m])=>({name:m}))}}})}function E5(e,t,i){const l=new Set,h=Array.from(i),v=e.getGraph(t.version);for(let a=h.pop();a;a=h.pop()){var y;l.add(a);const m=(y=v.nodeToNodeSubscriptions.get(a))!==null&&y!==void 0?y:kz;for(const D of m)l.has(D)||h.push(D)}return l}var Za={getNodeLoadable:Fz,peekNodeLoadable:N5,setNodeValue:Vz,initializeNode:Uz,cleanUpNode:Bz,setUnvalidatedAtomValue_DEPRECATED:Qz,peekNodeInfo:Yz,getDownstreamNodes:E5};let C5=null;function $z(e){C5=e}function Zz(){var e;(e=C5)===null||e===void 0||e()}var S5={setInvalidateMemoizedSnapshot:$z,invalidateMemoizedSnapshot:Zz};const{getDownstreamNodes:Hz,getNodeLoadable:z5,setNodeValue:Gz}=Za,{getNextComponentID:Wz}=$g,{getNode:qz,getNodeMaybe:j5}=ao,{DefaultValue:Gv}=ao,{reactMode:Xz}=Td,{AbstractRecoilValue:Kz,RecoilState:Jz,RecoilValueReadOnly:e8,isRecoilValue:t8}=pu,{invalidateMemoizedSnapshot:n8}=S5;function i8(e,{key:t},i=e.getState().currentTree){var l,h;const v=e.getState();i.version===v.currentTree.version||i.version===((l=v.nextTree)===null||l===void 0?void 0:l.version)||(i.version,(h=v.previousTree)===null||h===void 0||h.version);const y=z5(e,i,t);return y.state==="loading"&&y.contents.catch(()=>{}),y}function r8(e,t){const i=e.clone();return t.forEach((l,h)=>{l.state==="hasValue"&&l.contents instanceof Gv?i.delete(h):i.set(h,l)}),i}function o8(e,t,{key:i},l){if(typeof l=="function"){const h=z5(e,t,i);if(h.state==="loading"){const v=`Tried to set atom or selector "${i}" using an updater function while the current state is pending, this is not currently supported.`;throw Bn(v)}else if(h.state==="hasError")throw h.contents;return l(h.contents)}else return l}function s8(e,t,i){if(i.type==="set"){const{recoilValue:h,valueOrUpdater:v}=i,y=o8(e,t,h,v),a=Gz(e,t,h.key,y);for(const[m,D]of a.entries())Wv(t,m,D)}else if(i.type==="setLoadable"){const{recoilValue:{key:h},loadable:v}=i;Wv(t,h,v)}else if(i.type==="markModified"){const{recoilValue:{key:h}}=i;t.dirtyAtoms.add(h)}else if(i.type==="setUnvalidated"){var l;const{recoilValue:{key:h},unvalidatedValue:v}=i,y=j5(h);y==null||(l=y.invalidate)===null||l===void 0||l.call(y,t),t.atomValues.delete(h),t.nonvalidatedAtoms.set(h,v),t.dirtyAtoms.add(h)}else Pv(`Unknown action ${i.type}`)}function Wv(e,t,i){i.state==="hasValue"&&i.contents instanceof Gv?e.atomValues.delete(t):e.atomValues.set(t,i),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function L5(e,t){e.replaceState(i=>{const l=O5(i);for(const h of t)s8(e,l,h);return k5(e,l),n8(),l})}function Hg(e,t){if(Cd.length){const i=Cd[Cd.length-1];let l=i.get(e);l||i.set(e,l=[]),l.push(t)}else L5(e,[t])}const Cd=[];function a8(){const e=new Map;return Cd.push(e),()=>{for(const[t,i]of e)L5(t,i);Cd.pop()}}function O5(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function k5(e,t){const i=Hz(e,t,t.dirtyAtoms);for(const v of i){var l,h;(l=j5(v))===null||l===void 0||(h=l.invalidate)===null||h===void 0||h.call(l,t)}}function P5(e,t,i){Hg(e,{type:"set",recoilValue:t,valueOrUpdater:i})}function l8(e,t,i){if(i instanceof Gv)return P5(e,t,i);Hg(e,{type:"setLoadable",recoilValue:t,loadable:i})}function c8(e,t){Hg(e,{type:"markModified",recoilValue:t})}function u8(e,t,i){Hg(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:i})}function h8(e,{key:t},i,l=null){const h=Wz(),v=e.getState();v.nodeToComponentSubscriptions.has(t)||v.nodeToComponentSubscriptions.set(t,new Map),ki(v.nodeToComponentSubscriptions.get(t)).set(h,[l??"<not captured>",i]);const y=Xz();if(y.early&&(y.mode==="LEGACY"||y.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(t)&&i(a)}return{release:()=>{const a=e.getState(),m=a.nodeToComponentSubscriptions.get(t);m===void 0||!m.has(h)||(m.delete(h),m.size===0&&a.nodeToComponentSubscriptions.delete(t))}}}function d8(e,t){var i;const{currentTree:l}=e.getState(),h=qz(t.key);(i=h.clearCache)===null||i===void 0||i.call(h,e,l)}var bs={RecoilValueReadOnly:e8,AbstractRecoilValue:Kz,RecoilState:Jz,getRecoilValueAsLoadable:i8,setRecoilValue:P5,setRecoilValueLoadable:l8,markRecoilValueModified:c8,setUnvalidatedRecoilValue:u8,subscribeToRecoilValue:h8,isRecoilValue:t8,applyAtomValueWrites:r8,batchStart:a8,writeLoadableToTreeState:Wv,invalidateDownstreams:k5,copyTreeState:O5,refreshRecoilValue:d8};function f8(e,t,i){const l=e.entries();let h=l.next();for(;!h.done;){const v=h.value;if(t.call(i,v[1],v[0],e))return!0;h=l.next()}return!1}var p8=f8;const{cleanUpNode:g8}=Za,{deleteNodeConfigIfPossible:m8,getNode:R5}=ao,{RetentionZone:U5}=Zg,y8=12e4,B5=new Set;function F5(e,t){const i=e.getState(),l=i.currentTree;if(i.nextTree)return;const h=new Set;for(const y of t)if(y instanceof U5)for(const a of M8(i,y))h.add(a);else h.add(y);const v=_8(e,h);for(const y of v)x8(e,l,y)}function _8(e,t){const i=e.getState(),l=i.currentTree,h=e.getGraph(l.version),v=new Set,y=new Set;return a(t),v;function a(m){const D=new Set,C=v8(e,l,m,v,y);for(const L of C){var E;if(R5(L).retainedBy==="recoilRoot"){y.add(L);continue}if(((E=i.retention.referenceCounts.get(L))!==null&&E!==void 0?E:0)>0){y.add(L);continue}if(Q5(L).some(q=>i.retention.referenceCounts.get(q))){y.add(L);continue}const U=h.nodeToNodeSubscriptions.get(L);if(U&&p8(U,q=>y.has(q))){y.add(L);continue}v.add(L),D.add(L)}const A=new Set;for(const L of D)for(const U of(O=h.nodeDeps.get(L))!==null&&O!==void 0?O:B5){var O;v.has(U)||A.add(U)}A.size&&a(A)}}function v8(e,t,i,l,h){const v=e.getGraph(t.version),y=[],a=new Set;for(;i.size>0;)m(ki(i.values().next().value));return y;function m(D){if(l.has(D)||h.has(D)){i.delete(D);return}if(a.has(D))return;const C=v.nodeToNodeSubscriptions.get(D);if(C)for(const E of C)m(E);a.add(D),i.delete(D),y.push(D)}}function x8(e,t,i){if(!Ii("recoil_memory_managament_2020"))return;g8(e,i);const l=e.getState();l.knownAtoms.delete(i),l.knownSelectors.delete(i),l.nodeTransactionSubscriptions.delete(i),l.retention.referenceCounts.delete(i);const h=Q5(i);for(const m of h){var v;(v=l.retention.nodesRetainedByZone.get(m))===null||v===void 0||v.delete(i)}t.atomValues.delete(i),t.dirtyAtoms.delete(i),t.nonvalidatedAtoms.delete(i);const y=l.graphsByVersion.get(t.version);if(y){const m=y.nodeDeps.get(i);if(m!==void 0){y.nodeDeps.delete(i);for(const D of m){var a;(a=y.nodeToNodeSubscriptions.get(D))===null||a===void 0||a.delete(i)}}y.nodeToNodeSubscriptions.delete(i)}m8(i)}function M8(e,t){var i;return(i=e.retention.nodesRetainedByZone.get(t))!==null&&i!==void 0?i:B5}function Q5(e){const t=R5(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof U5?[t]:t}function w8(e,t){const i=e.getState();i.nextTree?i.retention.retainablesToCheckForRelease.add(t):F5(e,new Set([t]))}function b8(e,t,i){var l;if(!Ii("recoil_memory_managament_2020"))return;const h=e.getState().retention.referenceCounts,v=((l=h.get(t))!==null&&l!==void 0?l:0)+i;v===0?V5(e,t):h.set(t,v)}function V5(e,t){if(!Ii("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),w8(e,t)}function I8(e){if(!Ii("recoil_memory_managament_2020"))return;const t=e.getState();F5(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function D8(e){return e===void 0?"recoilRoot":e}var Bl={SUSPENSE_TIMEOUT_MS:y8,updateRetainCount:b8,updateRetainCountToZero:V5,releaseScheduledRetainablesNow:I8,retainedByOptionWithDefault:D8};const{unstable_batchedUpdates:T8}=bd;var A8={unstable_batchedUpdates:T8};const{unstable_batchedUpdates:N8}=A8;var E8={unstable_batchedUpdates:N8};const{batchStart:C8}=bs,{unstable_batchedUpdates:S8}=E8;let qv=S8||(e=>e());var Gg={getBatcher:()=>qv,setBatcher:e=>{qv=e},batchUpdates:e=>{qv(()=>{let t=()=>{};try{t=C8(),e()}finally{t()}})}};function*z8(e){for(const t of e)for(const i of t)yield i}var Y5=z8;const $5=typeof Window>"u"||typeof window>"u",j8=e=>!$5&&(e===window||e instanceof Window),L8=typeof navigator<"u"&&navigator.product==="ReactNative";var Wg={isSSR:$5,isReactNative:L8,isWindow:j8};function O8(e,t){let i;return(...l)=>{i||(i={});const h=t(...l);return Object.hasOwnProperty.call(i,h)||(i[h]=e(...l)),i[h]}}function k8(e,t){let i,l;return(...h)=>{const v=t(...h);return i===v||(i=v,l=e(...h)),l}}function P8(e,t){let i,l;return[(...y)=>{const a=t(...y);return i===a||(i=a,l=e(...y)),l},()=>{i=null}]}var R8={memoizeWithArgsHash:O8,memoizeOneWithArgsHash:k8,memoizeOneWithArgsHashAndInvalidation:P8};const{batchUpdates:Xv}=Gg,{initializeNode:U8,peekNodeInfo:B8}=Za,{graph:F8}=Nd,{getNextStoreID:Q8}=$g,{DEFAULT_VALUE:V8,recoilValues:Z5,recoilValuesForKeys:H5}=ao,{AbstractRecoilValue:Y8,getRecoilValueAsLoadable:$8,setRecoilValue:G5,setUnvalidatedRecoilValue:Z8}=bs,{updateRetainCount:qg}=Bl,{setInvalidateMemoizedSnapshot:H8}=S5,{getNextTreeStateVersion:G8,makeEmptyStoreState:W8}=w5,{isSSR:q8}=Wg,{memoizeOneWithArgsHashAndInvalidation:X8}=R8;class Xg{constructor(t,i){kn(this,"_store",void 0),kn(this,"_refCount",1),kn(this,"getLoadable",l=>(this.checkRefCount_INTERNAL(),$8(this._store,l))),kn(this,"getPromise",l=>(this.checkRefCount_INTERNAL(),this.getLoadable(l).toPromise())),kn(this,"getNodes_UNSTABLE",l=>{if(this.checkRefCount_INTERNAL(),(l==null?void 0:l.isModified)===!0){if((l==null?void 0:l.isInitialized)===!1)return[];const y=this._store.getState().currentTree;return H5(y.dirtyAtoms)}const h=this._store.getState().knownAtoms,v=this._store.getState().knownSelectors;return(l==null?void 0:l.isInitialized)==null?Z5.values():l.isInitialized===!0?H5(Y5([h,v])):Zv(Z5.values(),({key:y})=>!h.has(y)&&!v.has(y))}),kn(this,"getInfo_UNSTABLE",({key:l})=>(this.checkRefCount_INTERNAL(),B8(this._store,this._store.getState().currentTree,l))),kn(this,"map",l=>{this.checkRefCount_INTERNAL();const h=new Kv(this,Xv);return l(h),h}),kn(this,"asyncMap",async l=>{this.checkRefCount_INTERNAL();const h=new Kv(this,Xv);return h.retain(),await l(h),h.autoRelease_INTERNAL(),h}),this._store={storeID:Q8(),parentStoreID:i,getState:()=>t,replaceState:l=>{t.currentTree=l(t.currentTree)},getGraph:l=>{const h=t.graphsByVersion;if(h.has(l))return ki(h.get(l));const v=F8();return h.set(l,v),v},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw Bn("Cannot subscribe to Snapshots")}};for(const l of this._store.getState().knownAtoms)U8(this._store,l,"get"),qg(this._store,l,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){q8||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(),!Ii("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){Ii("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 W5(e,t,i=!1){const l=e.getState(),h=i?G8():t.version;return{currentTree:{version:i?h:t.version,stateID:i?h: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(l.knownAtoms),knownSelectors:new Set(l.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(h,e.getGraph(t.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(Qg(l.nodeCleanupFunctions.entries(),([v])=>[v,()=>{}]))}}function K8(e){const t=new Xg(W8());return e!=null?t.map(e):t}const[q5,X5]=X8((e,t)=>{var i;const l=e.getState(),h=t==="latest"?(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree:ki(l.previousTree);return new Xg(W5(e,h),e.storeID)},(e,t)=>{var i,l;return String(t)+String(e.storeID)+String((i=e.getState().nextTree)===null||i===void 0?void 0:i.version)+String(e.getState().currentTree.version)+String((l=e.getState().previousTree)===null||l===void 0?void 0:l.version)});H8(X5);function J8(e,t="latest"){const i=q5(e,t);return i.isRetained()?i:(X5(),q5(e,t))}class Kv extends Xg{constructor(t,i){super(W5(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),kn(this,"_batch",void 0),kn(this,"set",(l,h)=>{this.checkRefCount_INTERNAL();const v=this.getStore_INTERNAL();this._batch(()=>{qg(v,l.key,1),G5(this.getStore_INTERNAL(),l,h)})}),kn(this,"reset",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();this._batch(()=>{qg(h,l.key,1),G5(this.getStore_INTERNAL(),l,V8)})}),kn(this,"setUnvalidatedAtomValues_DEPRECATED",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();Xv(()=>{for(const[v,y]of l.entries())qg(h,v,1),Z8(h,new Y8(v),y)})}),this._batch=i}}var Kg={Snapshot:Xg,MutableSnapshot:Kv,freshSnapshot:K8,cloneSnapshot:J8},ej=Kg.Snapshot,tj=Kg.MutableSnapshot,nj=Kg.freshSnapshot,ij=Kg.cloneSnapshot,Jg=Object.freeze({__proto__:null,Snapshot:ej,MutableSnapshot:tj,freshSnapshot:nj,cloneSnapshot:ij});function rj(...e){const t=new Set;for(const i of e)for(const l of i)t.add(l);return t}var oj=rj;const{useRef:sj}=ii;function aj(e){const t=sj(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var K5=aj;const{getNextTreeStateVersion:lj,makeEmptyStoreState:J5}=w5,{cleanUpNode:cj,getDownstreamNodes:uj,initializeNode:hj,setNodeValue:dj,setUnvalidatedAtomValue_DEPRECATED:fj}=Za,{graph:pj}=Nd,{cloneGraph:gj}=Nd,{getNextStoreID:eI}=$g,{createMutableSource:Jv,reactMode:tI}=Td,{applyAtomValueWrites:mj}=bs,{releaseScheduledRetainablesNow:nI}=Bl,{freshSnapshot:yj}=Jg,{useCallback:_j,useContext:iI,useEffect:e2,useMemo:vj,useRef:xj,useState:Mj}=ii;function Sd(){throw Bn("This component must be used inside a <RecoilRoot> component.")}const rI=Object.freeze({storeID:eI(),getState:Sd,replaceState:Sd,getGraph:Sd,subscribeToTransactions:Sd,addTransactionMetadata:Sd});let t2=!1;function oI(e){if(t2)throw Bn("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){Ii("recoil_memory_managament_2020")&&Ii("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&nI(e);const i=t.currentTree.version,l=lj();t.nextTree={...t.currentTree,version:l,stateID:l,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(l,gj(ki(t.graphsByVersion.get(i))))}}const sI=ii.createContext({current:rI}),em=()=>iI(sI),aI=ii.createContext(null);function wj(){return iI(aI)}function n2(e,t,i){const l=uj(e,i,i.dirtyAtoms);for(const h of l){const v=t.nodeToComponentSubscriptions.get(h);if(v)for(const[y,[a,m]]of v)m(i)}}function lI(e){const t=e.getState(),i=t.currentTree,l=i.dirtyAtoms;if(l.size){for(const[h,v]of t.nodeTransactionSubscriptions)if(l.has(h))for(const[y,a]of v)a(e);for(const[h,v]of t.transactionSubscriptions)v(e);(!tI().early||t.suspendedComponentResolvers.size>0)&&(n2(e,t,i),t.suspendedComponentResolvers.forEach(h=>h()),t.suspendedComponentResolvers.clear())}t.queuedComponentCallbacks_DEPRECATED.forEach(h=>h(i)),t.queuedComponentCallbacks_DEPRECATED.splice(0,t.queuedComponentCallbacks_DEPRECATED.length)}function bj(e){const t=e.getState();t.commitDepth++;try{const{nextTree:i}=t;if(i==null)return;t.previousTree=t.currentTree,t.currentTree=i,t.nextTree=null,lI(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):Pv("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,Ii("recoil_memory_managament_2020")&&i==null&&nI(e)}finally{t.commitDepth--}}function Ij({setNotifyBatcherOfChange:e}){const t=em(),[,i]=Mj([]);return e(()=>i({})),e2(()=>(e(()=>i({})),()=>{e(()=>{})}),[e]),e2(()=>{sz.enqueueExecution("Batcher",()=>{bj(t.current)})}),null}function Dj(e,t){const i=J5();return t({set:(l,h)=>{const v=i.currentTree,y=dj(e,v,l.key,h),a=new Set(y.keys()),m=v.nonvalidatedAtoms.clone();for(const D of a)m.delete(D);i.currentTree={...v,dirtyAtoms:oj(v.dirtyAtoms,a),atomValues:mj(v.atomValues,y),nonvalidatedAtoms:m}},setUnvalidatedAtomValues:l=>{l.forEach((h,v)=>{i.currentTree=fj(i.currentTree,v,h)})}}),i}function Tj(e){const t=yj(e),i=t.getStore_INTERNAL().getState();return t.retain(),i.nodeCleanupFunctions.forEach(l=>l()),i.nodeCleanupFunctions.clear(),i}let cI=0;function Aj({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:i,children:l}){let h;const v=O=>{const L=h.current.graphsByVersion;if(L.has(O))return ki(L.get(O));const U=pj();return L.set(O,U),U},y=(O,L)=>{if(L==null){const{transactionSubscriptions:U}=E.current.getState(),q=cI++;return U.set(q,O),{release:()=>{U.delete(q)}}}else{const{nodeTransactionSubscriptions:U}=E.current.getState();U.has(L)||U.set(L,new Map);const q=cI++;return ki(U.get(L)).set(q,O),{release:()=>{const H=U.get(L);H&&(H.delete(q),H.size===0&&U.delete(L))}}}},a=O=>{oI(E.current);for(const L of Object.keys(O))ki(E.current.getState().nextTree).transactionMetadata[L]=O[L]},m=O=>{oI(E.current);const L=ki(h.current.nextTree);let U;try{t2=!0,U=O(L)}finally{t2=!1}U!==L&&(h.current.nextTree=U,tI().early&&n2(E.current,h.current,U),ki(D.current)())},D=xj(null),C=_j(O=>{D.current=O},[D]),E=K5(()=>i??{storeID:eI(),getState:()=>h.current,replaceState:m,getGraph:v,subscribeToTransactions:y,addTransactionMetadata:a});i!=null&&(E.current=i),h=K5(()=>e!=null?Dj(E.current,e):t!=null?Tj(t):J5());const A=vj(()=>Jv==null?void 0:Jv(h,()=>h.current.currentTree.version),[h]);return e2(()=>{const O=E.current;for(const L of new Set(O.getState().knownAtoms))hj(O,L,"get");return()=>{for(const L of O.getState().knownAtoms)cj(O,L)}},[E]),ii.createElement(sI.Provider,{value:E},ii.createElement(aI.Provider,{value:A},ii.createElement(Ij,{setNotifyBatcherOfChange:C}),l))}function Nj(e){const{override:t,...i}=e,l=em();return t===!1&&l.current!==rI?e.children:ii.createElement(Aj,i)}function Ej(){return em().current.storeID}var na={RecoilRoot:Nj,useStoreRef:em,useRecoilMutableSource:wj,useRecoilStoreID:Ej,notifyComponents_FOR_TESTING:n2,sendEndOfBatchNotifications_FOR_TESTING:lI};function Cj(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let i=0,l=e.length;i<l;i++)if(e[i]!==t[i])return!1;return!0}var Sj=Cj;const{useEffect:zj,useRef:jj}=ii;function Lj(e){const t=jj();return zj(()=>{t.current=e}),t.current}var uI=Lj;const{useStoreRef:Oj}=na,{SUSPENSE_TIMEOUT_MS:kj}=Bl,{updateRetainCount:zd}=Bl,{RetentionZone:Pj}=Zg,{useEffect:Rj,useRef:Uj}=ii,{isSSR:hI}=Wg;function Bj(e){if(Ii("recoil_memory_managament_2020"))return Fj(e)}function Fj(e){const i=(Array.isArray(e)?e:[e]).map(y=>y instanceof Pj?y:y.key),l=Oj();Rj(()=>{if(!Ii("recoil_memory_managament_2020"))return;const y=l.current;if(h.current&&!hI)window.clearTimeout(h.current),h.current=null;else for(const a of i)zd(y,a,1);return()=>{for(const a of i)zd(y,a,-1)}},[l,...i]);const h=Uj(),v=uI(i);if(!hI&&(v===void 0||!Sj(v,i))){const y=l.current;for(const a of i)zd(y,a,1);if(v)for(const a of v)zd(y,a,-1);h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null;for(const a of i)zd(y,a,-1)},kj)}}var i2=Bj;function Qj(){return"<component name not available>"}var jd=Qj;const{batchUpdates:Vj}=Gg,{DEFAULT_VALUE:dI}=ao,{currentRendererSupportsUseSyncExternalStore:Yj,reactMode:gu,useMutableSource:$j,useSyncExternalStore:Zj}=Td,{useRecoilMutableSource:Hj,useStoreRef:Is}=na,{AbstractRecoilValue:r2,getRecoilValueAsLoadable:Ld,setRecoilValue:tm,setUnvalidatedRecoilValue:Gj,subscribeToRecoilValue:mu}=bs,{useCallback:lo,useEffect:yu,useMemo:fI,useRef:Od,useState:o2}=ii,{setByAddingToSet:Wj}=I5,{isSSR:qj}=Wg;function s2(e,t,i){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(h=>{const v=i.current.getState().suspendedComponentResolvers;v.add(h),qj&&zi(e.contents)&&e.contents.finally(()=>{v.delete(h)})}):e.state==="hasError"?e.contents:Bn(`Invalid value of loadable atom "${t.key}"`)}function Xj(){const e=jd(),t=Is(),[,i]=o2([]),l=Od(new Set);l.current=new Set;const h=Od(new Set),v=Od(new Map),y=lo(m=>{const D=v.current.get(m);D&&(D.release(),v.current.delete(m))},[v]),a=lo((m,D)=>{v.current.has(D)&&i([])},[]);return yu(()=>{const m=t.current;Ad(l.current,h.current).forEach(D=>{if(v.current.has(D))return;const C=mu(m,new r2(D),A=>a(A,D),e);v.current.set(D,C),m.getState().nextTree?m.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(m.getState(),D)}):a(m.getState(),D)}),Ad(h.current,l.current).forEach(D=>{y(D)}),h.current=l.current}),yu(()=>{const m=v.current;return Ad(l.current,new Set(m.keys())).forEach(D=>{const C=mu(t.current,new r2(D),E=>a(E,D),e);m.set(D,C)}),()=>m.forEach((D,C)=>y(C))},[e,t,y,a]),fI(()=>{function m(L){return U=>{tm(t.current,L,U)}}function D(L){return()=>tm(t.current,L,dI)}function C(L){var U;l.current.has(L.key)||(l.current=Wj(l.current,L.key));const q=t.current.getState();return Ld(t.current,L,gu().early&&(U=q.nextTree)!==null&&U!==void 0?U:q.currentTree)}function E(L){const U=C(L);return s2(U,L,t)}function A(L){return[E(L),m(L)]}function O(L){return[C(L),m(L)]}return{getRecoilValue:E,getRecoilValueLoadable:C,getRecoilState:A,getRecoilStateLoadable:O,getSetRecoilState:m,getResetRecoilState:D}},[l,t])}const Kj={current:0};function Jj(e){const t=Is(),i=jd(),l=lo(()=>{var a;const m=t.current,D=m.getState(),C=gu().early&&(a=D.nextTree)!==null&&a!==void 0?a:D.currentTree;return{loadable:Ld(m,e,C),key:e.key}},[t,e]),h=lo(a=>{let m;return()=>{var D,C;const E=a();return(D=m)!==null&&D!==void 0&&D.loadable.is(E.loadable)&&((C=m)===null||C===void 0?void 0:C.key)===E.key?m:(m=E,E)}},[]),v=fI(()=>h(l),[l,h]),y=lo(a=>{const m=t.current;return mu(m,e,a,i).release},[t,e,i]);return Zj(y,v,v).loadable}function e7(e){const t=Is(),i=lo(()=>{var D;const C=t.current,E=C.getState(),A=gu().early&&(D=E.nextTree)!==null&&D!==void 0?D:E.currentTree;return Ld(C,e,A)},[t,e]),l=lo(()=>i(),[i]),h=jd(),v=lo((D,C)=>{const E=t.current;return mu(E,e,()=>{if(!Ii("recoil_suppress_rerender_in_callback"))return C();const O=i();m.current.is(O)||C(),m.current=O},h).release},[t,e,h,i]),y=Hj();if(y==null)throw Bn("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=$j(y,l,v),m=Od(a);return yu(()=>{m.current=a}),a}function a2(e){const t=Is(),i=jd(),l=lo(()=>{var m;const D=t.current,C=D.getState(),E=gu().early&&(m=C.nextTree)!==null&&m!==void 0?m:C.currentTree;return Ld(D,e,E)},[t,e]),h=lo(()=>({loadable:l(),key:e.key}),[l,e.key]),v=lo(m=>{const D=h();return m.loadable.is(D.loadable)&&m.key===D.key?m:D},[h]);yu(()=>{const m=mu(t.current,e,D=>{a(v)},i);return a(v),m.release},[i,e,t,v]);const[y,a]=o2(h);return y.key!==e.key?h().loadable:y.loadable}function t7(e){const t=Is(),[,i]=o2([]),l=jd(),h=lo(()=>{var a;const m=t.current,D=m.getState(),C=gu().early&&(a=D.nextTree)!==null&&a!==void 0?a:D.currentTree;return Ld(m,e,C)},[t,e]),v=h(),y=Od(v);return yu(()=>{y.current=v}),yu(()=>{const a=t.current,m=a.getState(),D=mu(a,e,E=>{var A;if(!Ii("recoil_suppress_rerender_in_callback"))return i([]);const O=h();(A=y.current)!==null&&A!==void 0&&A.is(O)||i(O),y.current=O},l);if(m.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{y.current=null,i([])});else{var C;if(!Ii("recoil_suppress_rerender_in_callback"))return i([]);const E=h();(C=y.current)!==null&&C!==void 0&&C.is(E)||i(E),y.current=E}return D.release},[l,h,e,t]),v}function l2(e){return Ii("recoil_memory_managament_2020")&&i2(e),{TRANSITION_SUPPORT:a2,SYNC_EXTERNAL_STORE:Yj()?Jj:a2,MUTABLE_SOURCE:e7,LEGACY:t7}[gu().mode](e)}function pI(e){const t=Is(),i=l2(e);return s2(i,e,t)}function nm(e){const t=Is();return lo(i=>{tm(t.current,e,i)},[t,e])}function n7(e){const t=Is();return lo(()=>{tm(t.current,e,dI)},[t,e])}function i7(e){return[pI(e),nm(e)]}function r7(e){return[l2(e),nm(e)]}function o7(){const e=Is();return(t,i={})=>{Vj(()=>{e.current.addTransactionMetadata(i),t.forEach((l,h)=>Gj(e.current,new r2(h),l))})}}function gI(e){return Ii("recoil_memory_managament_2020")&&i2(e),a2(e)}function mI(e){const t=Is(),i=gI(e);return s2(i,e,t)}function s7(e){return[mI(e),nm(e)]}var a7={recoilComponentGetRecoilValueCount_FOR_TESTING:Kj,useRecoilInterface:Xj,useRecoilState:i7,useRecoilStateLoadable:r7,useRecoilValue:pI,useRecoilValueLoadable:l2,useResetRecoilState:n7,useSetRecoilState:nm,useSetUnvalidatedAtomValues:o7,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:gI,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:mI,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:s7};function l7(e,t){const i=new Map;for(const[l,h]of e)t(h,l)&&i.set(l,h);return i}var c7=l7;function u7(e,t){const i=new Set;for(const l of e)t(l)&&i.add(l);return i}var h7=u7;function d7(...e){const t=new Map;for(let i=0;i<e.length;i++){const l=e[i].keys();let h;for(;!(h=l.next()).done;)t.set(h.value,e[i].get(h.value))}return t}var f7=d7;const{batchUpdates:p7}=Gg,{DEFAULT_VALUE:g7,getNode:yI,nodes:m7}=ao,{useStoreRef:c2}=na,{AbstractRecoilValue:y7,setRecoilValueLoadable:_7}=bs,{SUSPENSE_TIMEOUT_MS:v7}=Bl,{cloneSnapshot:im}=Jg,{useCallback:rm,useEffect:_I,useRef:vI,useState:x7}=ii,{isSSR:xI}=Wg;function om(e){const t=c2();_I(()=>t.current.subscribeToTransactions(e).release,[e,t])}function MI(e){const t=e.atomValues.toMap(),i=Yg(c7(t,(l,h)=>{const y=yI(h).persistence_UNSTABLE;return y!=null&&y.type!=="none"&&l.state==="hasValue"}),l=>l.contents);return f7(e.nonvalidatedAtoms.toMap(),i)}function M7(e){om(rm(t=>{let i=t.getState().previousTree;const l=t.getState().currentTree;i||(i=t.getState().currentTree);const h=MI(l),v=MI(i),y=Yg(m7,m=>{var D,C,E,A;return{persistence_UNSTABLE:{type:(D=(C=m.persistence_UNSTABLE)===null||C===void 0?void 0:C.type)!==null&&D!==void 0?D:"none",backButton:(E=(A=m.persistence_UNSTABLE)===null||A===void 0?void 0:A.backButton)!==null&&E!==void 0?E:!1}}}),a=h7(l.dirtyAtoms,m=>h.has(m)||v.has(m));e({atomValues:h,previousAtomValues:v,atomInfo:y,modifiedAtoms:a,transactionMetadata:{...l.transactionMetadata}})},[e]))}function w7(e){om(rm(t=>{const i=im(t,"latest"),l=im(t,"previous");e({snapshot:i,previousSnapshot:l})},[e]))}function b7(){const e=c2(),[t,i]=x7(()=>im(e.current)),l=uI(t),h=vI(),v=vI();if(om(rm(a=>i(im(a)),[])),_I(()=>{const a=t.retain();if(h.current&&!xI){var m;window.clearTimeout(h.current),h.current=null,(m=v.current)===null||m===void 0||m.call(v),v.current=null}return()=>{window.setTimeout(a,10)}},[t]),l!==t&&!xI){if(h.current){var y;window.clearTimeout(h.current),h.current=null,(y=v.current)===null||y===void 0||y.call(v),v.current=null}v.current=t.retain(),h.current=window.setTimeout(()=>{var a;h.current=null,(a=v.current)===null||a===void 0||a.call(v),v.current=null},v7)}return t}function wI(e,t){var i;const l=e.getState(),h=(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree,v=t.getStore_INTERNAL().getState().currentTree;p7(()=>{const y=new Set;for(const D of[h.atomValues.keys(),v.atomValues.keys()])for(const C of D){var a,m;((a=h.atomValues.get(C))===null||a===void 0?void 0:a.contents)!==((m=v.atomValues.get(C))===null||m===void 0?void 0:m.contents)&&yI(C).shouldRestoreFromSnapshots&&y.add(C)}y.forEach(D=>{_7(e,new y7(D),v.atomValues.has(D)?ki(v.atomValues.get(D)):g7)}),e.replaceState(D=>({...D,stateID:t.getID()}))})}function I7(){const e=c2();return rm(t=>wI(e.current,t),[e])}var bI={useRecoilSnapshot:b7,gotoSnapshot:wI,useGotoRecoilSnapshot:I7,useRecoilTransactionObserver:w7,useTransactionObservation_DEPRECATED:M7,useTransactionSubscription_DEPRECATED:om};const{peekNodeInfo:D7}=Za,{useStoreRef:T7}=na;function A7(){const e=T7();return({key:t})=>D7(e.current,e.current.getState().currentTree,t)}var N7=A7;const{reactMode:E7}=Td,{RecoilRoot:C7,useStoreRef:S7}=na,{useMemo:z7}=ii;function j7(){E7().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=S7().current;return z7(()=>{function t({children:i}){return ii.createElement(C7,{store_INTERNAL:e},i)}return t},[e])}var L7=j7;const{loadableWithValue:O7}=Dd,{initializeNode:k7}=Za,{DEFAULT_VALUE:P7,getNode:R7}=ao,{copyTreeState:U7,getRecoilValueAsLoadable:B7,invalidateDownstreams:F7,writeLoadableToTreeState:Q7}=bs;function II(e){return R7(e.key).nodeType==="atom"}class V7{constructor(t,i){kn(this,"_store",void 0),kn(this,"_treeState",void 0),kn(this,"_changes",void 0),kn(this,"get",l=>{if(this._changes.has(l.key))return this._changes.get(l.key);if(!II(l))throw Bn("Reading selectors within atomicUpdate is not supported");const h=B7(this._store,l,this._treeState);if(h.state==="hasValue")return h.contents;throw h.state==="hasError"?h.contents:Bn(`Expected Recoil atom ${l.key} to have a value, but it is in a loading state.`)}),kn(this,"set",(l,h)=>{if(!II(l))throw Bn("Setting selectors within atomicUpdate is not supported");if(typeof h=="function"){const v=this.get(l);this._changes.set(l.key,h(v))}else k7(this._store,l.key,"set"),this._changes.set(l.key,h)}),kn(this,"reset",l=>{this.set(l,P7)}),this._store=t,this._treeState=i,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=U7(this._treeState);for(const[i,l]of this._changes)Q7(t,i,O7(l));return F7(this._store,t),t}}function Y7(e){return t=>{e.replaceState(i=>{const l=new V7(e,i);return t(l),l.newTreeState_INTERNAL()})}}var $7={atomicUpdater:Y7},Z7=$7.atomicUpdater,DI=Object.freeze({__proto__:null,atomicUpdater:Z7});function H7(e,t){if(!e)throw new Error(t)}var G7=H7,kd=G7;const{atomicUpdater:W7}=DI,{batchUpdates:q7}=Gg,{DEFAULT_VALUE:X7}=ao,{useStoreRef:K7}=na,{refreshRecoilValue:J7,setRecoilValue:TI}=bs,{cloneSnapshot:eL}=Jg,{gotoSnapshot:tL}=bI,{useCallback:nL}=ii;class AI{}const iL=new AI;function NI(e,t,i,l){let h=iL,v;if(q7(()=>{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 Bn(a);const m=D5({...l??{},set:(C,E)=>TI(e,C,E),reset:C=>TI(e,C,X7),refresh:C=>J7(e,C),gotoSnapshot:C=>tL(e,C),transact_UNSTABLE:C=>W7(e)(C)},{snapshot:()=>{const C=eL(e);return v=C.retain(),C}}),D=t(m);if(typeof D!="function")throw Bn(a);h=D(...i)}),h instanceof AI&&kd(!1),zi(h))h=h.finally(()=>{var a;(a=v)===null||a===void 0||a()});else{var y;(y=v)===null||y===void 0||y()}return h}function rL(e,t){const i=K7();return nL((...l)=>NI(i.current,e,l),t!=null?[...t,i]:void 0)}var EI={recoilCallback:NI,useRecoilCallback:rL};const{useStoreRef:oL}=na,{refreshRecoilValue:sL}=bs,{useCallback:aL}=ii;function lL(e){const t=oL();return aL(()=>{const i=t.current;sL(i,e)},[e,t])}var cL=lL;const{atomicUpdater:uL}=DI,{useStoreRef:hL}=na,{useMemo:dL}=ii;function fL(e,t){const i=hL();return dL(()=>(...l)=>{uL(i.current)(v=>{e(v)(...l)})},t!=null?[...t,i]:void 0)}var pL=fL;class gL{constructor(t){kn(this,"value",void 0),this.value=t}}var mL={WrappedValue:gL},yL=mL.WrappedValue,CI=Object.freeze({__proto__:null,WrappedValue:yL});const{isFastRefreshEnabled:_L}=Td;class SI extends Error{}class vL{constructor(t){var i,l,h;kn(this,"_name",void 0),kn(this,"_numLeafs",void 0),kn(this,"_root",void 0),kn(this,"_onHit",void 0),kn(this,"_onSet",void 0),kn(this,"_mapNodeValue",void 0),this._name=t==null?void 0:t.name,this._numLeafs=0,this._root=null,this._onHit=(i=t==null?void 0:t.onHit)!==null&&i!==void 0?i:()=>{},this._onSet=(l=t==null?void 0:t.onSet)!==null&&l!==void 0?l:()=>{},this._mapNodeValue=(h=t==null?void 0:t.mapNodeValue)!==null&&h!==void 0?h:v=>v}size(){return this._numLeafs}root(){return this._root}get(t,i){var l;return(l=this.getLeafNode(t,i))===null||l===void 0?void 0:l.value}getLeafNode(t,i){if(this._root==null)return;let l=this._root;for(;l;){if(i==null||i.onNodeVisit(l),l.type==="leaf")return this._onHit(l),l;const h=this._mapNodeValue(t(l.nodeKey));l=l.branches.get(h)}}set(t,i,l){const h=()=>{var v,y,a,m;let D,C;for(const[q,H]of t){var E,A,O;const V=this._root;if((V==null?void 0:V.type)==="leaf")throw this.invalidCacheError();const G=D;if(D=G?G.branches.get(C):V,D=(E=D)!==null&&E!==void 0?E:{type:"branch",nodeKey:q,parent:G,branches:new Map,branchKey:C},D.type!=="branch"||D.nodeKey!==q)throw this.invalidCacheError();G==null||G.branches.set(C,D),l==null||(A=l.onNodeVisit)===null||A===void 0||A.call(l,D),C=this._mapNodeValue(H),this._root=(O=this._root)!==null&&O!==void 0?O:D}const L=D?(v=D)===null||v===void 0?void 0:v.branches.get(C):this._root;if(L!=null&&(L.type!=="leaf"||L.branchKey!==C))throw this.invalidCacheError();const U={type:"leaf",value:i,parent:D,branchKey:C};(y=D)===null||y===void 0||y.branches.set(C,U),this._root=(a=this._root)!==null&&a!==void 0?a:U,this._numLeafs++,this._onSet(U),l==null||(m=l.onNodeVisit)===null||m===void 0||m.call(l,U)};try{h()}catch(v){if(v instanceof SI)this.clear(),h();else throw v}}delete(t){const i=this.root();if(!i)return!1;if(t===i)return this._root=null,this._numLeafs=0,!0;let l=t.parent,h=t.branchKey;for(;l;){var v;if(l.branches.delete(h),l===i)return l.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(l.branches.size>0)break;h=(v=l)===null||v===void 0?void 0:v.branchKey,l=l.parent}for(;l!==i;l=l.parent)if(l==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const t=_L()?"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 Pv(t+(this._name!=null?` - ${this._name}`:"")),new SI}}var xL={TreeCache:vL},ML=xL.TreeCache,zI=Object.freeze({__proto__:null,TreeCache:ML});class wL{constructor(t){var i;kn(this,"_maxSize",void 0),kn(this,"_size",void 0),kn(this,"_head",void 0),kn(this,"_tail",void 0),kn(this,"_map",void 0),kn(this,"_keyMapper",void 0),this._maxSize=t.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(i=t.mapKey)!==null&&i!==void 0?i:l=>l}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 i=this._keyMapper(t),l=this._map.get(i);if(l)return this.set(t,l.value),l.value}set(t,i){const l=this._keyMapper(t);this._map.get(l)&&this.delete(t);const v=this.head(),y={key:t,right:v,left:null,value:i};v?v.left=y:this._tail=y,this._map.set(l,y),this._head=y,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const t=this.tail();t&&this.delete(t.key)}delete(t){const i=this._keyMapper(t);if(!this._size||!this._map.has(i))return;const l=ki(this._map.get(i)),h=l.right,v=l.left;h&&(h.left=l.left),v&&(v.right=l.right),l===this.head()&&(this._head=h),l===this.tail()&&(this._tail=v),this._map.delete(i),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var bL={LRUCache:wL},IL=bL.LRUCache,jI=Object.freeze({__proto__:null,LRUCache:IL});const{LRUCache:DL}=jI,{TreeCache:TL}=zI;function AL({name:e,maxSize:t,mapNodeValue:i=l=>l}){const l=new DL({maxSize:t}),h=new TL({name:e,mapNodeValue:i,onHit:v=>{l.set(v,!0)},onSet:v=>{const y=l.tail();l.set(v,!0),y&&h.size()>t&&h.delete(y.key)}});return h}var LI=AL;function ss(e,t,i){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 Bn("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var l;return(l=JSON.stringify(e))!==null&&l!==void 0?l:""}if(zi(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((h,v)=>ss(h,t,v.toString()))}]`;if(typeof e.toJSON=="function")return ss(e.toJSON(i),t,i);if(e instanceof Map){const h={};for(const[v,y]of e)h[typeof v=="string"?v:ss(v,t)]=y;return ss(h,t,i)}return e instanceof Set?ss(Array.from(e).sort((h,v)=>ss(h,t).localeCompare(ss(v,t))),t,i):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?ss(Array.from(e),t,i):`{${Object.keys(e).filter(h=>e[h]!==void 0).sort().map(h=>`${ss(h,t)}:${ss(e[h],t,h)}`).join(",")}}`}function NL(e,t={allowFunctions:!1}){return ss(e,t)}var sm=NL;const{TreeCache:EL}=zI,am={equality:"reference",eviction:"keep-all",maxSize:1/0};function CL({equality:e=am.equality,eviction:t=am.eviction,maxSize:i=am.maxSize}=am,l){const h=SL(e);return zL(t,i,h,l)}function SL(e){switch(e){case"reference":return t=>t;case"value":return t=>sm(t)}throw Bn(`Unrecognized equality policy ${e}`)}function zL(e,t,i,l){switch(e){case"keep-all":return new EL({name:l,mapNodeValue:i});case"lru":return LI({name:l,maxSize:ki(t),mapNodeValue:i});case"most-recent":return LI({name:l,maxSize:1,mapNodeValue:i})}throw Bn(`Unrecognized eviction policy ${e}`)}var jL=CL;function LL(e){return()=>null}var OL={startPerfBlock:LL};const{isLoadable:kL,loadableWithError:lm,loadableWithPromise:PL,loadableWithValue:u2}=Dd,{WrappedValue:OI}=CI,{getNodeLoadable:cm,peekNodeLoadable:RL,setNodeValue:UL}=Za,{saveDepsToStore:BL}=Nd,{DEFAULT_VALUE:FL,getConfigDeletionHandler:QL,getNode:VL,registerNode:kI}=ao,{isRecoilValue:YL}=pu,{markRecoilValueModified:PI}=bs,{retainedByOptionWithDefault:$L}=Bl,{recoilCallback:ZL}=EI,{startPerfBlock:HL}=OL;class RI{}const Pd=new RI,Rd=[],um=new Map,GL=(()=>{let e=0;return()=>e++})();function UI(e){let t=null;const{key:i,get:l,cachePolicy_UNSTABLE:h}=e,v=e.set!=null?e.set:void 0,y=new Set,a=jL(h??{equality:"reference",eviction:"keep-all"},i),m=$L(e.retainedBy_UNSTABLE),D=new Map;let C=0;function E(){return!Ii("recoil_memory_managament_2020")||C>0}function A(J){return J.getState().knownSelectors.add(i),C++,()=>{C--}}function O(){return QL(i)!==void 0&&!E()}function L(J,F,Z,ie,ne){Re(F,ie,ne),U(J,Z)}function U(J,F){ft(J,F)&&ct(J),H(F,!0)}function q(J,F){ft(J,F)&&(ki(ze(J)).stateVersions.clear(),H(F,!1))}function H(J,F){const Z=um.get(J);if(Z!=null){for(const ie of Z)PI(ie,ki(t));F&&um.delete(J)}}function V(J,F){let Z=um.get(F);Z==null&&um.set(F,Z=new Set),Z.add(J)}function G(J,F,Z,ie,ne,De){return F.then(Oe=>{if(!E())throw ct(J),Pd;const we=u2(Oe);return L(J,Z,ne,we,ie),Oe}).catch(Oe=>{if(!E())throw ct(J),Pd;if(zi(Oe))return ee(J,Oe,Z,ie,ne,De);const we=lm(Oe);throw L(J,Z,ne,we,ie),Oe})}function ee(J,F,Z,ie,ne,De){return F.then(Oe=>{if(!E())throw ct(J),Pd;De.loadingDepKey!=null&&De.loadingDepPromise===F?Z.atomValues.set(De.loadingDepKey,u2(Oe)):J.getState().knownSelectors.forEach(it=>{Z.atomValues.delete(it)});const we=xe(J,Z);if(we&&we.state!=="loading"){if((ft(J,ne)||ze(J)==null)&&U(J,ne),we.state==="hasValue")return we.contents;throw we.contents}if(!ft(J,ne)){const it=Me(J,Z);if(it!=null)return it.loadingLoadable.contents}const[Qe,et]=_e(J,Z,ne);if(Qe.state!=="loading"&&L(J,Z,ne,Qe,et),Qe.state==="hasError")throw Qe.contents;return Qe.contents}).catch(Oe=>{if(Oe instanceof RI)throw Pd;if(!E())throw ct(J),Pd;const we=lm(Oe);throw L(J,Z,ne,we,ie),Oe})}function K(J,F,Z,ie){var ne,De,Oe,we;if(ft(J,ie)||F.version===((ne=J.getState())===null||ne===void 0||(De=ne.currentTree)===null||De===void 0?void 0:De.version)||F.version===((Oe=J.getState())===null||Oe===void 0||(we=Oe.nextTree)===null||we===void 0?void 0:we.version)){var Qe,et,it;BL(i,Z,J,(Qe=(et=J.getState())===null||et===void 0||(it=et.nextTree)===null||it===void 0?void 0:it.version)!==null&&Qe!==void 0?Qe:J.getState().currentTree.version)}for(const Ue of Z)y.add(Ue)}function _e(J,F,Z){const ie=HL(i);let ne=!0,De=!0;const Oe=()=>{ie(),De=!1};let we,Qe=!1,et;const it={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function rt({key:ut}){const Lt=cm(J,F,ut);switch(Ue.set(ut,Lt),ne||(K(J,F,new Set(Ue.keys()),Z),q(J,Z)),Lt.state){case"hasValue":return Lt.contents;case"hasError":throw Lt.contents;case"loading":throw it.loadingDepKey=ut,it.loadingDepPromise=Lt.contents,Lt.contents}throw Bn("Invalid Loadable state")}const Tt=ut=>(...Lt)=>{if(De)throw Bn("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&&kd(!1),ZL(J,ut,Lt,{node:t})};try{we=l({get:rt,getCallback:Tt}),we=YL(we)?rt(we):we,kL(we)&&(we.state==="hasError"&&(Qe=!0),we=we.contents),zi(we)?we=G(J,we,F,Ue,Z,it).finally(Oe):Oe(),we=we instanceof OI?we.value:we}catch(ut){we=ut,zi(we)?we=ee(J,we,F,Ue,Z,it).finally(Oe):(Qe=!0,Oe())}return Qe?et=lm(we):zi(we)?et=PL(we):et=u2(we),ne=!1,He(J,Z,Ue),K(J,F,new Set(Ue.keys()),Z),[et,Ue]}function xe(J,F){let Z=F.atomValues.get(i);if(Z!=null)return Z;const ie=new Set;try{Z=a.get(De=>(typeof De!="string"&&kd(!1),cm(J,F,De).contents),{onNodeVisit:De=>{De.type==="branch"&&De.nodeKey!==i&&ie.add(De.nodeKey)}})}catch(De){throw Bn(`Problem with cache lookup for selector "${i}": ${De.message}`)}if(Z){var ne;F.atomValues.set(i,Z),K(J,F,ie,(ne=ze(J))===null||ne===void 0?void 0:ne.executionID)}return Z}function Ne(J,F){const Z=xe(J,F);if(Z!=null)return ct(J),Z;const ie=Me(J,F);if(ie!=null){var ne;return((ne=ie.loadingLoadable)===null||ne===void 0?void 0:ne.state)==="loading"&&V(J,ie.executionID),ie.loadingLoadable}const De=GL(),[Oe,we]=_e(J,F,De);return Oe.state==="loading"?(Ge(J,De,Oe,we,F),V(J,De)):(ct(J),Re(F,Oe,we)),Oe}function Me(J,F){const Z=Y5([D.has(J)?[ki(D.get(J))]:[],Qg(Zv(D,([ne])=>ne!==J),([,ne])=>ne)]);function ie(ne){for(const[De,Oe]of ne)if(!cm(J,F,De).is(Oe))return!0;return!1}for(const ne of Z){if(ne.stateVersions.get(F.version)||!ie(ne.depValuesDiscoveredSoFarDuringAsyncWork))return ne.stateVersions.set(F.version,!0),ne;ne.stateVersions.set(F.version,!1)}}function ze(J){return D.get(J)}function Ge(J,F,Z,ie,ne){D.set(J,{depValuesDiscoveredSoFarDuringAsyncWork:ie,executionID:F,loadingLoadable:Z,stateVersions:new Map([[ne.version,!0]])})}function He(J,F,Z){if(ft(J,F)){const ie=ze(J);ie!=null&&(ie.depValuesDiscoveredSoFarDuringAsyncWork=Z)}}function ct(J){D.delete(J)}function ft(J,F){var Z;return F===((Z=ze(J))===null||Z===void 0?void 0:Z.executionID)}function Ae(J){return Array.from(J.entries()).map(([F,Z])=>[F,Z.contents])}function Re(J,F,Z){J.atomValues.set(i,F);try{a.set(Ae(Z),F)}catch(ie){throw Bn(`Problem with setting cache for selector "${i}": ${ie.message}`)}}function Je(J){if(Rd.includes(i)){const F=`Recoil selector has circular dependencies: ${Rd.slice(Rd.indexOf(i)).join(" → ")}`;return lm(Bn(F))}Rd.push(i);try{return J()}finally{Rd.pop()}}function Ye(J,F){const Z=F.atomValues.get(i);return Z??a.get(ie=>{var ne;return typeof ie!="string"&&kd(!1),(ne=RL(J,F,ie))===null||ne===void 0?void 0:ne.contents})}function Ze(J,F){return Je(()=>Ne(J,F))}function ae(J){J.atomValues.delete(i)}function de(J,F){t==null&&kd(!1);for(const ie of y){var Z;const ne=VL(ie);(Z=ne.clearCache)===null||Z===void 0||Z.call(ne,J,F)}y.clear(),ae(F),a.clear(),PI(J,t)}return v!=null?t=kI({key:i,nodeType:"selector",peek:Ye,get:Ze,set:(F,Z,ie)=>{let ne=!1;const De=new Map;function Oe({key:it}){if(ne)throw Bn("Recoil: Async selector sets are not currently supported.");const Ue=cm(F,Z,it);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const rt=`Getting value of asynchronous atom or selector "${it}" in a pending state while setting selector "${i}" is not yet supported.`;throw Bn(rt)}else throw Ue.contents}function we(it,Ue){if(ne)throw Bn("Recoil: Async selector sets are not currently supported.");const rt=typeof Ue=="function"?Ue(Oe(it)):Ue;UL(F,Z,it.key,rt).forEach((ut,Lt)=>De.set(Lt,ut))}function Qe(it){we(it,FL)}const et=v({set:we,get:Oe,reset:Qe},ie);if(et!==void 0)throw zi(et)?Bn("Recoil: Async selector sets are not currently supported."):Bn("Recoil: selector set should be a void function.");return ne=!0,De},init:A,invalidate:ae,clearCache:de,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:m}):t=kI({key:i,nodeType:"selector",peek:Ye,get:Ze,init:A,invalidate:ae,clearCache:de,shouldDeleteConfigOnRelease:O,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:m})}UI.value=e=>new OI(e);var _u=UI;const{isLoadable:WL,loadableWithError:h2,loadableWithPromise:d2,loadableWithValue:vu}=Dd,{WrappedValue:BI}=CI,{peekNodeInfo:qL}=Za,{DEFAULT_VALUE:Fl,DefaultValue:Ha,getConfigDeletionHandler:FI,registerNode:XL,setConfigDeletionHandler:KL}=ao,{isRecoilValue:JL}=pu,{getRecoilValueAsLoadable:eO,markRecoilValueModified:tO,setRecoilValue:QI,setRecoilValueLoadable:nO}=bs,{retainedByOptionWithDefault:iO}=Bl,Ud=e=>e instanceof BI?e.value:e;function rO(e){const{key:t,persistence_UNSTABLE:i}=e,l=iO(e.retainedBy_UNSTABLE);let h=0;function v(V){return d2(V.then(G=>(y=vu(G),G)).catch(G=>{throw y=h2(G),G}))}let y=zi(e.default)?v(e.default):WL(e.default)?e.default.state==="loading"?v(e.default.contents):e.default:vu(Ud(e.default));y.contents;let a;const m=new Map;function D(V){return V}function C(V,G){const ee=G.then(K=>{var _e,xe;return((xe=((_e=V.getState().nextTree)!==null&&_e!==void 0?_e:V.getState().currentTree).atomValues.get(t))===null||xe===void 0?void 0:xe.contents)===ee&&QI(V,H,K),K}).catch(K=>{var _e,xe;throw((xe=((_e=V.getState().nextTree)!==null&&_e!==void 0?_e:V.getState().currentTree).atomValues.get(t))===null||xe===void 0?void 0:xe.contents)===ee&&nO(V,H,h2(K)),K});return ee}function E(V,G,ee){var K;h++;const _e=()=>{var ze;h--,(ze=m.get(V))===null||ze===void 0||ze.forEach(Ge=>Ge()),m.delete(V)};if(V.getState().knownAtoms.add(t),y.state==="loading"){const ze=()=>{var Ge;((Ge=V.getState().nextTree)!==null&&Ge!==void 0?Ge:V.getState().currentTree).atomValues.has(t)||tO(V,H)};y.contents.finally(ze)}const xe=(K=e.effects)!==null&&K!==void 0?K:e.effects_UNSTABLE;if(xe!=null){let ft=function(ae){if(Ge&&ae.key===t){const de=ze;return de instanceof Ha?A(V,G):zi(de)?d2(de.then(J=>J instanceof Ha?y.toPromise():J)):vu(de)}return eO(V,ae)},Ae=function(ae){return ft(ae).toPromise()},Re=function(ae){var de;const J=qL(V,(de=V.getState().nextTree)!==null&&de!==void 0?de:V.getState().currentTree,ae.key);return Ge&&ae.key===t&&!(ze instanceof Ha)?{...J,isSet:!0,loadable:ft(ae)}:J},ze=Fl,Ge=!0,He=!1,ct=null;const Je=ae=>de=>{if(Ge){const J=ft(H),F=J.state==="hasValue"?J.contents:Fl;ze=typeof de=="function"?de(F):de,zi(ze)&&(ze=ze.then(Z=>(ct={effect:ae,value:Z},Z)))}else{if(zi(de))throw Bn("Setting atoms to async values is not implemented.");typeof de!="function"&&(ct={effect:ae,value:Ud(de)}),QI(V,H,typeof de=="function"?J=>{const F=Ud(de(J));return ct={effect:ae,value:F},F}:Ud(de))}},Ye=ae=>()=>Je(ae)(Fl),Ze=ae=>de=>{var J;const{release:F}=V.subscribeToTransactions(Z=>{var ie;let{currentTree:ne,previousTree:De}=Z.getState();De||(De=ne);const Oe=(ie=ne.atomValues.get(t))!==null&&ie!==void 0?ie:y;if(Oe.state==="hasValue"){var we,Qe,et,it;const Ue=Oe.contents,rt=(we=De.atomValues.get(t))!==null&&we!==void 0?we:y,Tt=rt.state==="hasValue"?rt.contents:Fl;((Qe=ct)===null||Qe===void 0?void 0:Qe.effect)!==ae||((et=ct)===null||et===void 0?void 0:et.value)!==Ue?de(Ue,Tt,!ne.atomValues.has(t)):((it=ct)===null||it===void 0?void 0:it.effect)===ae&&(ct=null)}},t);m.set(V,[...(J=m.get(V))!==null&&J!==void 0?J:[],F])};for(const ae of xe)try{const de=ae({node:H,storeID:V.storeID,parentStoreID_UNSTABLE:V.parentStoreID,trigger:ee,setSelf:Je(ae),resetSelf:Ye(ae),onSet:Ze(ae),getPromise:Ae,getLoadable:ft,getInfo_UNSTABLE:Re});if(de!=null){var Ne;m.set(V,[...(Ne=m.get(V))!==null&&Ne!==void 0?Ne:[],de])}}catch(de){ze=de,He=!0}if(Ge=!1,!(ze instanceof Ha)){var Me;const ae=He?h2(ze):zi(ze)?d2(C(V,ze)):vu(Ud(ze));ae.contents,G.atomValues.set(t,ae),(Me=V.getState().nextTree)===null||Me===void 0||Me.atomValues.set(t,ae)}}return _e}function A(V,G){var ee,K;return(ee=(K=G.atomValues.get(t))!==null&&K!==void 0?K:a)!==null&&ee!==void 0?ee:y}function O(V,G){if(G.atomValues.has(t))return ki(G.atomValues.get(t));if(G.nonvalidatedAtoms.has(t)){if(a!=null)return a;if(i==null)return y;const ee=G.nonvalidatedAtoms.get(t),K=i.validator(ee,Fl);return a=K instanceof Ha?y:vu(K),a}else return y}function L(){a=void 0}function U(V,G,ee){if(G.atomValues.has(t)){const K=ki(G.atomValues.get(t));if(K.state==="hasValue"&&ee===K.contents)return new Map}else if(!G.nonvalidatedAtoms.has(t)&&ee instanceof Ha)return new Map;return a=void 0,new Map().set(t,vu(ee))}function q(){return FI(t)!==void 0&&h<=0}const H=XL({key:t,nodeType:"atom",peek:A,get:O,set:U,init:E,invalidate:L,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:l});return H}function f2(e){const{...t}=e,i="default"in e?e.default:new Promise(()=>{});return JL(i)?oO({...t,default:i}):rO({...t,default:i})}function oO(e){const t=f2({...e,default:Fl,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:l=>l instanceof Ha?l:ki(e.persistence_UNSTABLE).validator(l,Fl)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),i=_u({key:`${e.key}__withFallback`,get:({get:l})=>{const h=l(t);return h instanceof Ha?e.default:h},set:({set:l},h)=>l(t,h),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return KL(i.key,FI(e.key)),i}f2.value=e=>new BI(e);var VI=f2;class sO{constructor(t){var i;kn(this,"_map",void 0),kn(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(i=t==null?void 0:t.mapKey)!==null&&i!==void 0?i:l=>l}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,i){this._map.set(this._keyMapper(t),i)}delete(t){this._map.delete(this._keyMapper(t))}clear(){this._map.clear()}}var aO={MapCache:sO},lO=aO.MapCache,cO=Object.freeze({__proto__:null,MapCache:lO});const{LRUCache:YI}=jI,{MapCache:uO}=cO,hm={equality:"reference",eviction:"none",maxSize:1/0};function hO({equality:e=hm.equality,eviction:t=hm.eviction,maxSize:i=hm.maxSize}=hm){const l=dO(e);return fO(t,i,l)}function dO(e){switch(e){case"reference":return t=>t;case"value":return t=>sm(t)}throw Bn(`Unrecognized equality policy ${e}`)}function fO(e,t,i){switch(e){case"keep-all":return new uO({mapKey:i});case"lru":return new YI({mapKey:i,maxSize:ki(t)});case"most-recent":return new YI({mapKey:i,maxSize:1})}throw Bn(`Unrecognized eviction policy ${e}`)}var $I=hO;const{setConfigDeletionHandler:pO}=ao;function gO(e){var t,i;const l=$I({equality:(t=(i=e.cachePolicyForParams_UNSTABLE)===null||i===void 0?void 0:i.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return h=>{var v,y;const a=l.get(h);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:m,...D}=e,C="default"in e?e.default:new Promise(()=>{}),E=VI({...D,key:`${e.key}__${(v=sm(h))!==null&&v!==void 0?v:"void"}`,default:typeof C=="function"?C(h):C,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(h):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(h):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(h):(y=e.effects)!==null&&y!==void 0?y:e.effects_UNSTABLE});return l.set(h,E),pO(E.key,()=>{l.delete(h)}),E}}var mO=gO;const{setConfigDeletionHandler:yO}=ao;let _O=0;function vO(e){var t,i;const l=$I({equality:(t=(i=e.cachePolicyForParams_UNSTABLE)===null||i===void 0?void 0:i.equality)!==null&&t!==void 0?t:"value",eviction:"keep-all"});return h=>{var v;let y;try{y=l.get(h)}catch(A){throw Bn(`Problem with cache lookup for selector ${e.key}: ${A.message}`)}if(y!=null)return y;const a=`${e.key}__selectorFamily/${(v=sm(h,{allowFunctions:!0}))!==null&&v!==void 0?v:"void"}/${_O++}`,m=A=>e.get(h)(A),D=e.cachePolicy_UNSTABLE,C=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(h):e.retainedBy_UNSTABLE;let E;if(e.set!=null){const A=e.set;E=_u({key:a,get:m,set:(L,U)=>A(h)(L,U),cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:C})}else E=_u({key:a,get:m,cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:C});return l.set(h,E),yO(E.key,()=>{l.delete(h)}),E}}var Ga=vO;const xO=Ga({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function MO(e){return xO(e)}var wO=MO;const bO=Ga({key:"__error",get:e=>()=>{throw Bn(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function IO(e){return bO(e)}var DO=IO;function TO(e){return e}var AO=TO;const{loadableWithError:ZI,loadableWithPromise:HI,loadableWithValue:GI}=Dd;function dm(e,t){const i=Array(t.length).fill(void 0),l=Array(t.length).fill(void 0);for(const[h,v]of t.entries())try{i[h]=e(v)}catch(y){l[h]=y}return[i,l]}function NO(e){return e!=null&&!zi(e)}function fm(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function p2(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((i,l,h)=>({...i,[l]:t[h]}),{})}function xu(e,t,i){const l=i.map((h,v)=>h==null?GI(t[v]):zi(h)?HI(h):ZI(h));return p2(e,l)}function EO(e,t){return t.map((i,l)=>i===void 0?e[l]:i)}const CO=Ga({key:"__waitForNone",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);return xu(e,l,h)},dangerouslyAllowMutability:!0}),SO=Ga({key:"__waitForAny",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);return h.some(v=>!zi(v))?xu(e,l,h):new Promise(v=>{for(const[y,a]of h.entries())zi(a)&&a.then(m=>{l[y]=m,h[y]=void 0,v(xu(e,l,h))}).catch(m=>{h[y]=m,v(xu(e,l,h))})})},dangerouslyAllowMutability:!0}),zO=Ga({key:"__waitForAll",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);if(h.every(y=>y==null))return p2(e,l);const v=h.find(NO);if(v!=null)throw v;return Promise.all(h).then(y=>p2(e,EO(l,y)))},dangerouslyAllowMutability:!0}),jO=Ga({key:"__waitForAllSettled",get:e=>({get:t})=>{const i=fm(e),[l,h]=dm(t,i);return h.every(v=>!zi(v))?xu(e,l,h):Promise.all(h.map((v,y)=>zi(v)?v.then(a=>{l[y]=a,h[y]=void 0}).catch(a=>{l[y]=void 0,h[y]=a}):null)).then(()=>xu(e,l,h))},dangerouslyAllowMutability:!0}),LO=Ga({key:"__noWait",get:e=>({get:t})=>{try{return _u.value(GI(t(e)))}catch(i){return _u.value(zi(i)?HI(i):ZI(i))}},dangerouslyAllowMutability:!0});var OO={waitForNone:CO,waitForAny:SO,waitForAll:zO,waitForAllSettled:jO,noWait:LO};const{RecoilLoadable:kO}=Dd,{DefaultValue:PO}=ao,{RecoilRoot:RO,useRecoilStoreID:UO}=na,{isRecoilValue:BO}=pu,{retentionZone:FO}=Zg,{freshSnapshot:QO}=Jg,{useRecoilState:VO,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:YO,useRecoilStateLoadable:$O,useRecoilValue:ZO,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:HO,useRecoilValueLoadable:GO,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:WO,useResetRecoilState:qO,useSetRecoilState:XO}=a7,{useGotoRecoilSnapshot:KO,useRecoilSnapshot:JO,useRecoilTransactionObserver:ek}=bI,{useRecoilCallback:tk}=EI,{noWait:nk,waitForAll:ik,waitForAllSettled:rk,waitForAny:ok,waitForNone:sk}=OO;var pm={DefaultValue:PO,isRecoilValue:BO,RecoilLoadable:kO,RecoilEnv:fu,RecoilRoot:RO,useRecoilStoreID:UO,useRecoilBridgeAcrossReactRoots_UNSTABLE:L7,atom:VI,selector:_u,atomFamily:mO,selectorFamily:Ga,constSelector:wO,errorSelector:DO,readOnlySelector:AO,noWait:nk,waitForNone:sk,waitForAny:ok,waitForAll:ik,waitForAllSettled:rk,useRecoilValue:ZO,useRecoilValueLoadable:GO,useRecoilState:VO,useRecoilStateLoadable:$O,useSetRecoilState:XO,useResetRecoilState:qO,useGetRecoilValueInfo_UNSTABLE:N7,useRecoilRefresher_UNSTABLE:cL,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:WO,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:HO,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:YO,useRecoilCallback:tk,useRecoilTransaction_UNSTABLE:pL,useGotoRecoilSnapshot:KO,useRecoilSnapshot:JO,useRecoilTransactionObserver_UNSTABLE:ek,snapshot_UNSTABLE:QO,useRetain:i2,retentionZone:FO},ak=pm.RecoilRoot,Ei=pm.atom,Nn=pm.useRecoilValue,Kn=pm.useRecoilState;const lk=(e,t)=>{const i=e[t];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((l,h)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(h.bind(null,new Error("Unknown variable dynamic import: "+t)))})},ck="mi-components";let gm,WI,Do=!1,g2=!1;const ia=(e,t="")=>()=>{},uk=(e,t)=>()=>{},hk="{visibility:hidden}.hydrated{visibility:inherit}",qI="http://www.w3.org/1999/xlink",XI={},dk="http://www.w3.org/2000/svg",fk="http://www.w3.org/1999/xhtml",pk=e=>e!=null,m2=e=>(e=typeof e,e==="object"||e==="function");function KI(e){var t,i,l;return(l=(i=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||i===void 0?void 0:i.getAttribute("content"))!==null&&l!==void 0?l:void 0}const ye=(e,t,...i)=>{let l=null,h=null,v=!1,y=!1;const a=[],m=C=>{for(let E=0;E<C.length;E++)l=C[E],Array.isArray(l)?m(l):l!=null&&typeof l!="boolean"&&((v=typeof e!="function"&&!m2(l))&&(l=String(l)),v&&y?a[a.length-1].$text$+=l:a.push(v?y2(null,l):l),y=v)};if(m(i),t){t.key&&(h=t.key);{const C=t.className||t.class;C&&(t.class=typeof C!="object"?C:Object.keys(C).filter(E=>C[E]).join(" "))}}const D=y2(e,null);return D.$attrs$=t,a.length>0&&(D.$children$=a),D.$key$=h,D},y2=(e,t)=>{const i={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return i.$attrs$=null,i.$key$=null,i},ar={},gk=e=>e&&e.$tag$===ar,mk=(e,t)=>e!=null&&!m2(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,ra=e=>Wa(e).$hostElement$,Di=(e,t,i)=>{const l=ra(e);return{emit:h=>JI(l,t,{bubbles:!!(i&4),composed:!!(i&2),cancelable:!!(i&1),detail:h})}},JI=(e,t,i)=>{const l=wr.ce(t,i);return e.dispatchEvent(l),l},eD=new WeakMap,yk=(e,t,i)=>{let l=vm.get(e);Rk&&i?(l=l||new CSSStyleSheet,typeof l=="string"?l=t:l.replaceSync(t)):l=t,vm.set(e,l)},_k=(e,t,i,l)=>{var h;let v=tD(t);const y=vm.get(v);if(e=e.nodeType===11?e:Ds,y)if(typeof y=="string"){e=e.head||e;let a=eD.get(e),m;if(a||eD.set(e,a=new Set),!a.has(v)){{m=Ds.createElement("style"),m.innerHTML=y;const D=(h=wr.$nonce$)!==null&&h!==void 0?h:KI(Ds);D!=null&&m.setAttribute("nonce",D),e.insertBefore(m,e.querySelector("link"))}a&&a.add(v)}}else e.adoptedStyleSheets.includes(y)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,y]);return v},vk=e=>{const t=e.$cmpMeta$,i=e.$hostElement$,l=t.$flags$,h=ia("attachStyles",t.$tagName$),v=_k(i.shadowRoot?i.shadowRoot:i.getRootNode(),t);l&10&&(i["s-sc"]=v,i.classList.add(v+"-h")),h()},tD=(e,t)=>"sc-"+e.$tagName$,nD=(e,t,i,l,h,v)=>{if(i!==l){let y=gD(e,t),a=t.toLowerCase();if(t==="class"){const m=e.classList,D=iD(i),C=iD(l);m.remove(...D.filter(E=>E&&!C.includes(E))),m.add(...C.filter(E=>E&&!D.includes(E)))}else if(t==="style"){for(const m in i)(!l||l[m]==null)&&(m.includes("-")?e.style.removeProperty(m):e.style[m]="");for(const m in l)(!i||l[m]!==i[m])&&(m.includes("-")?e.style.setProperty(m,l[m]):e.style[m]=l[m])}else if(t!=="key")if(t==="ref")l&&l(e);else if(!y&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):gD(Bd,a)?t=a.slice(2):t=a[2]+t.slice(3),i&&wr.rel(e,t,i,!1),l&&wr.ael(e,t,l,!1);else{const m=m2(l);if((y||m&&l!==null)&&!h)try{if(e.tagName.includes("-"))e[t]=l;else{const C=l??"";t==="list"?y=!1:(i==null||e[t]!=C)&&(e[t]=C)}}catch{}let D=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,D=!0),l==null||l===!1?(l!==!1||e.getAttribute(t)==="")&&(D?e.removeAttributeNS(qI,t):e.removeAttribute(t)):(!y||v&4||h)&&!m&&(l=l===!0?"":l,D?e.setAttributeNS(qI,t,l):e.setAttribute(t,l))}}},xk=/\s/,iD=e=>e?e.split(xk):[],rD=(e,t,i,l)=>{const h=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,v=e&&e.$attrs$||XI,y=t.$attrs$||XI;for(l in v)l in y||nD(h,l,v[l],void 0,i,t.$flags$);for(l in y)nD(h,l,v[l],y[l],i,t.$flags$)},mm=(e,t,i,l)=>{const h=t.$children$[i];let v=0,y,a;if(h.$text$!==null)y=h.$elm$=Ds.createTextNode(h.$text$);else{if(Do||(Do=h.$tag$==="svg"),y=h.$elm$=Ds.createElementNS(Do?dk:fk,h.$tag$),Do&&h.$tag$==="foreignObject"&&(Do=!1),rD(null,h,Do),pk(gm)&&y["s-si"]!==gm&&y.classList.add(y["s-si"]=gm),h.$children$)for(v=0;v<h.$children$.length;++v)a=mm(e,h,v),a&&y.appendChild(a);h.$tag$==="svg"?Do=!1:y.tagName==="foreignObject"&&(Do=!0)}return y},oD=(e,t,i,l,h,v)=>{let y=e,a;for(y.shadowRoot&&y.tagName===WI&&(y=y.shadowRoot);h<=v;++h)l[h]&&(a=mm(null,i,h),a&&(l[h].$elm$=a,y.insertBefore(a,t)))},sD=(e,t,i,l,h)=>{for(;t<=i;++t)(l=e[t])&&(h=l.$elm$,aD(l),h.remove())},Mk=(e,t,i,l)=>{let h=0,v=0,y=0,a=0,m=t.length-1,D=t[0],C=t[m],E=l.length-1,A=l[0],O=l[E],L,U;for(;h<=m&&v<=E;)if(D==null)D=t[++h];else if(C==null)C=t[--m];else if(A==null)A=l[++v];else if(O==null)O=l[--E];else if(ym(D,A))Mu(D,A),D=t[++h],A=l[++v];else if(ym(C,O))Mu(C,O),C=t[--m],O=l[--E];else if(ym(D,O))Mu(D,O),e.insertBefore(D.$elm$,C.$elm$.nextSibling),D=t[++h],O=l[--E];else if(ym(C,A))Mu(C,A),e.insertBefore(C.$elm$,D.$elm$),C=t[--m],A=l[++v];else{for(y=-1,a=h;a<=m;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===A.$key$){y=a;break}y>=0?(U=t[y],U.$tag$!==A.$tag$?L=mm(t&&t[v],i,y):(Mu(U,A),t[y]=void 0,L=U.$elm$),A=l[++v]):(L=mm(t&&t[v],i,v),A=l[++v]),L&&D.$elm$.parentNode.insertBefore(L,D.$elm$)}h>m?oD(e,l[E+1]==null?null:l[E+1].$elm$,i,l,v,E):v>E&&sD(t,h,m)},ym=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,Mu=(e,t)=>{const i=t.$elm$=e.$elm$,l=e.$children$,h=t.$children$,v=t.$tag$,y=t.$text$;y===null?(Do=v==="svg"?!0:v==="foreignObject"?!1:Do,v==="slot"||rD(e,t,Do),l!==null&&h!==null?Mk(i,l,t,h):h!==null?(e.$text$!==null&&(i.textContent=""),oD(i,null,t,h,0,h.length-1)):l!==null&&sD(l,0,l.length-1),Do&&v==="svg"&&(Do=!1)):e.$text$!==y&&(i.data=y)},aD=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(aD)},wk=(e,t)=>{const i=e.$hostElement$,l=e.$cmpMeta$,h=e.$vnode$||y2(null,null),v=gk(t)?t:ye(null,null,t);WI=i.tagName,l.$attrsToReflect$&&(v.$attrs$=v.$attrs$||{},l.$attrsToReflect$.map(([y,a])=>v.$attrs$[a]=i[y])),v.$tag$=null,v.$flags$|=4,e.$vnode$=v,v.$elm$=h.$elm$=i.shadowRoot||i,gm=i["s-sc"],Mu(h,v)},lD=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(i=>e.$onRenderResolve$=i))},_m=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return lD(e,e.$ancestorComponent$),Bk(()=>bk(e,t))},bk=(e,t)=>{const i=ia("scheduleUpdate",e.$cmpMeta$.$tagName$),l=e.$lazyInstance$;let h;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([v,y])=>Ql(l,v,y)),e.$queuedListeners$=null),h=Ql(l,"componentWillLoad")),h=uD(h,()=>Ql(l,"componentWillRender")),i(),uD(h,()=>Ik(e,l,t))},Ik=async(e,t,i)=>{const l=e.$hostElement$,h=ia("update",e.$cmpMeta$.$tagName$),v=l["s-rc"];i&&vk(e);const y=ia("render",e.$cmpMeta$.$tagName$);Dk(e,t),v&&(v.map(a=>a()),l["s-rc"]=void 0),y(),h();{const a=l["s-p"],m=()=>Tk(e);a.length===0?m():(Promise.all(a).then(m),e.$flags$|=4,a.length=0)}},Dk=(e,t,i)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,wk(e,t)}catch(l){Vl(l,e.$hostElement$)}return null},Tk=e=>{const t=e.$cmpMeta$.$tagName$,i=e.$hostElement$,l=ia("postUpdate",t),h=e.$lazyInstance$,v=e.$ancestorComponent$;Ql(h,"componentDidRender"),e.$flags$&64?l():(e.$flags$|=64,hD(i),Ql(h,"componentDidLoad"),l(),e.$onReadyResolve$(i),v||cD()),e.$onInstanceResolve$(i),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&M2(()=>_m(e,!1)),e.$flags$&=-517},_2=e=>{{const t=Wa(e),i=t.$hostElement$.isConnected;return i&&(t.$flags$&18)===2&&_m(t,!1),i}},cD=e=>{hD(Ds.documentElement),M2(()=>JI(Bd,"appload",{detail:{namespace:ck}}))},Ql=(e,t,i)=>{if(e&&e[t])try{return e[t](i)}catch(l){Vl(l)}},uD=(e,t)=>e&&e.then?e.then(t):t(),hD=e=>e.classList.add("hydrated"),Ak=(e,t)=>Wa(e).$instanceValues$.get(t),Nk=(e,t,i,l)=>{const h=Wa(e),v=h.$hostElement$,y=h.$instanceValues$.get(t),a=h.$flags$,m=h.$lazyInstance$;i=mk(i,l.$members$[t][0]);const D=Number.isNaN(y)&&Number.isNaN(i),C=i!==y&&!D;if((!(a&8)||y===void 0)&&C&&(h.$instanceValues$.set(t,i),m)){if(l.$watchers$&&a&128){const E=l.$watchers$[t];E&&E.map(A=>{try{m[A](i,y,t)}catch(O){Vl(O,v)}})}(a&18)===2&&_m(h,!1)}},dD=(e,t,i)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const l=Object.entries(t.$members$),h=e.prototype;if(l.map(([v,[y]])=>{y&31||i&2&&y&32?Object.defineProperty(h,v,{get(){return Ak(this,v)},set(a){Nk(this,v,a,t)},configurable:!0,enumerable:!0}):i&1&&y&64&&Object.defineProperty(h,v,{value(...a){const m=Wa(this);return m.$onInstancePromise$.then(()=>m.$lazyInstance$[v](...a))}})}),i&1){const v=new Map;h.attributeChangedCallback=function(y,a,m){wr.jmp(()=>{const D=v.get(y);if(this.hasOwnProperty(D))m=this[D],delete this[D];else if(h.hasOwnProperty(D)&&typeof this[D]=="number"&&this[D]==m)return;this[D]=m===null&&typeof this[D]=="boolean"?!1:m})},e.observedAttributes=l.filter(([y,a])=>a[0]&15).map(([y,a])=>{const m=a[1]||y;return v.set(m,y),a[0]&512&&t.$attrsToReflect$.push([y,m]),m})}}return e},Ek=async(e,t,i,l,h)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,h=Pk(i),h.then){const m=uk();h=await h,m()}h.isProxied||(i.$watchers$=h.watchers,dD(h,i,2),h.isProxied=!0);const a=ia("createInstance",i.$tagName$);t.$flags$|=8;try{new h(t)}catch(m){Vl(m)}t.$flags$&=-9,t.$flags$|=128,a(),fD(t.$lazyInstance$)}if(h.style){let a=h.style;const m=tD(i);if(!vm.has(m)){const D=ia("registerStyles",i.$tagName$);yk(m,a,!!(i.$flags$&1)),D()}}}const v=t.$ancestorComponent$,y=()=>_m(t,!0);v&&v["s-rc"]?v["s-rc"].push(y):y()},fD=e=>{Ql(e,"connectedCallback")},Ck=e=>{if(!(wr.$flags$&1)){const t=Wa(e),i=t.$cmpMeta$,l=ia("connectedCallback",i.$tagName$);if(t.$flags$&1)pD(e,t,i.$listeners$),fD(t.$lazyInstance$);else{t.$flags$|=1;{let h=e;for(;h=h.parentNode||h.host;)if(h["s-p"]){lD(t,t.$ancestorComponent$=h);break}}i.$members$&&Object.entries(i.$members$).map(([h,[v]])=>{if(v&31&&e.hasOwnProperty(h)){const y=e[h];delete e[h],e[h]=y}}),Ek(e,t,i)}l()}},Sk=e=>{if(!(wr.$flags$&1)){const t=Wa(e),i=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(l=>l()),t.$rmListeners$=void 0),Ql(i,"disconnectedCallback")}},zk=(e,t={})=>{var i;const l=ia(),h=[],v=t.exclude||[],y=Bd.customElements,a=Ds.head,m=a.querySelector("meta[charset]"),D=Ds.createElement("style"),C=[];let E,A=!0;Object.assign(wr,t),wr.$resourcesUrl$=new URL(t.resourcesUrl||"./",Ds.baseURI).href,e.map(O=>{O[1].map(L=>{const U={$flags$:L[0],$tagName$:L[1],$members$:L[2],$listeners$:L[3]};U.$members$=L[2],U.$listeners$=L[3],U.$attrsToReflect$=[],U.$watchers$={};const q=U.$tagName$,H=class extends HTMLElement{constructor(V){super(V),V=this,kk(V,U),U.$flags$&1&&V.attachShadow({mode:"open"})}connectedCallback(){E&&(clearTimeout(E),E=null),A?C.push(this):wr.jmp(()=>Ck(this))}disconnectedCallback(){wr.jmp(()=>Sk(this))}componentOnReady(){return Wa(this).$onReadyPromise$}};U.$lazyBundleId$=O[0],!v.includes(q)&&!y.get(q)&&(h.push(q),y.define(q,dD(H,U,1)))})});{D.innerHTML=h+hk,D.setAttribute("data-styles","");const O=(i=wr.$nonce$)!==null&&i!==void 0?i:KI(Ds);O!=null&&D.setAttribute("nonce",O),a.insertBefore(D,m?m.nextSibling:a.firstChild)}A=!1,C.length?C.map(O=>O.connectedCallback()):wr.jmp(()=>E=setTimeout(cD,30)),l()},pD=(e,t,i,l)=>{i&&i.map(([h,v,y])=>{const a=Lk(e,h),m=jk(t,y),D=Ok(h);wr.ael(a,v,m,D),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>wr.rel(a,v,m,D))})},jk=(e,t)=>i=>{try{e.$flags$&256?e.$lazyInstance$[t](i):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,i])}catch(l){Vl(l)}},Lk=(e,t)=>t&8?Bd:e,Ok=e=>(e&2)!==0,v2=new WeakMap,Wa=e=>v2.get(e),$n=(e,t)=>v2.set(t.$lazyInstance$=e,t),kk=(e,t)=>{const i={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return i.$onInstancePromise$=new Promise(l=>i.$onInstanceResolve$=l),i.$onReadyPromise$=new Promise(l=>i.$onReadyResolve$=l),e["s-p"]=[],e["s-rc"]=[],pD(e,i,t.$listeners$),v2.set(e,i)},gD=(e,t)=>t in e,Vl=(e,t)=>(0,console.error)(e,t),mD=new Map,Pk=(e,t,i)=>{const l=e.$tagName$.replace(/-/g,"_"),h=e.$lazyBundleId$,v=mD.get(h);if(v)return v[l];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return lk(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>RP),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>FP),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>VP),"./mi-column.entry.js":()=>Promise.resolve().then(()=>YP),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>HP),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>tR),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>rR),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>oR),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>aR),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>cR),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>yR),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>vR),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>MR),"./mi-list.entry.js":()=>Promise.resolve().then(()=>bR),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>GV),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>qV),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>JV),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>iY),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>oY),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>wY),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>IY),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>TY),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>NY),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>CY),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>zY),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>LY),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>kY),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>RY),"./mi-search.entry.js":()=>Promise.resolve().then(()=>VY),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>$Y),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>HY),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>WY),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>qY),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>KY),"./mi-time.entry.js":()=>Promise.resolve().then(()=>JY)}),`./${h}.entry.js`).then(y=>(mD.set(h,y),y[l]),Vl)},vm=new Map,Bd=typeof window<"u"?window:{},Ds=Bd.document||{head:{}},wr={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,i,l)=>e.addEventListener(t,i,l),rel:(e,t,i,l)=>e.removeEventListener(t,i,l),ce:(e,t)=>new CustomEvent(e,t)},yD=e=>Promise.resolve(e),Rk=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),_D=[],vD=[],Uk=(e,t)=>i=>{e.push(i),g2||(g2=!0,t&&wr.$flags$&4?M2(x2):wr.raf(x2))},xD=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){Vl(i)}e.length=0},x2=()=>{xD(_D),xD(vD),(g2=_D.length>0)&&wr.raf(x2)},M2=e=>yD().then(e),Bk=Uk(vD,!0),Fk=()=>yD(),Qk=(e,t)=>typeof window>"u"?Promise.resolve():Fk().then(()=>zk([["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],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-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[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-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["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"],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[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],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],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[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-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtonsState:[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)),zH="",qa={Google:"google",Mapbox:"mapbox"},oa=Ei({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),Vk=e=>{const t=Nn(oa),i=Xe.useRef(),[l,h]=Xe.useState([]);Xe.useEffect(()=>{(async()=>{if(t&&e){for(const a of l)i.current.disableLiveData(a);i.current=new window.mapsindoors.LiveDataManager(t);const y=await i.current.LiveDataInfo.activeDomainTypes();for(const a of y)await i.current.enableLiveData(a);h(y)}})()},[e,t])},w2=Ei({key:"venues",default:[]});var Yk=function e(t,i){if(t===i)return!0;if(t&&i&&typeof t=="object"&&typeof i=="object"){if(t.constructor!==i.constructor)return!1;var l,h,v;if(Array.isArray(t)){if(l=t.length,l!=i.length)return!1;for(h=l;h--!==0;)if(!e(t[h],i[h]))return!1;return!0}if(t.constructor===RegExp)return t.source===i.source&&t.flags===i.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===i.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===i.toString();if(v=Object.keys(t),l=v.length,l!==Object.keys(i).length)return!1;for(h=l;h--!==0;)if(!Object.prototype.hasOwnProperty.call(i,v[h]))return!1;for(h=l;h--!==0;){var y=v[h];if(!e(t[y],i[y]))return!1}return!0}return t!==t&&i!==i};const MD="__googleMapsScriptId";var wu;(function(e){e[e.INITIALIZED=0]="INITIALIZED",e[e.LOADING=1]="LOADING",e[e.SUCCESS=2]="SUCCESS",e[e.FAILURE=3]="FAILURE"})(wu||(wu={}));let $k=class zh{constructor({apiKey:t,authReferrerPolicy:i,channel:l,client:h,id:v=MD,language:y,libraries:a=[],mapIds:m,nonce:D,region:C,retries:E=3,url:A="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=i,this.channel=l,this.client=h,this.id=v||MD,this.language=y,this.libraries=a,this.mapIds=m,this.nonce=D,this.region=C,this.retries=E,this.url=A,this.version=O,zh.instance){if(!Yk(this.options,zh.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(zh.instance.options)}`);return zh.instance}zh.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?wu.FAILURE:this.done?wu.SUCCESS:this.loading?wu.LOADING:wu.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,i)=>{this.loadCallback(l=>{l?i(l.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(),i=document.createElement("script");i.id=this.id,i.type="text/javascript",i.src=t,i.onerror=this.loadErrorCallback.bind(this),i.defer=!0,i.async=!0,this.nonce&&(i.nonce=this.nonce),document.head.appendChild(i)}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 i=this.errors.length*Math.pow(2,this.errors.length);console.log(`Failed to load Google Maps script, retrying in ${i} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},i)}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 b2=Ei({key:"gmApiKey",default:null}),Yl=Ei({key:"primaryColor",default:"#005655"}),wD=Ei({key:"gmMapId",default:null});function Zk({onMapView:e,onPositionControl:t}){const i=Nn(b2),l=Nn(wD),[h,v]=Xe.useState(),[y,a]=Xe.useState(),[m,D]=Xe.useState(!1),[C,E]=Xe.useState(!1),A=Nn(oa),O=Nn(Yl);return Xe.useEffect(()=>{new $k({apiKey:i,version:"quarterly",libraries:["geometry","places"]}).load().then(U=>{v(U);const q={element:document.getElementById("map"),disableDefaultUI:!0,center:{lat:0,lng:0},zoom:21,mapId:l},H=new window.mapsindoors.mapView.GoogleMapsView(q);a(H);const V=new window.mapsindoors.directions.GoogleMapsProvider;e(H,V)})},[]),Xe.useEffect(()=>{if(A&&y&&h&&!C){const L=document.createElement("mi-my-position");L.mapsindoors=A,y.getMap().controls[h.maps.ControlPosition.RIGHT_TOP].push(L),E(!0),t(L)}if(A&&y&&h&&!m){const L=document.createElement("mi-floor-selector");L.mapsindoors=A,L.primaryColor=O,y.getMap().controls[h.maps.ControlPosition.RIGHT_TOP].push(L),D(!0)}},[A,y,h,m,C]),Ve.jsx("div",{className:"map-container",id:"map"})}var bD={exports:{}};(function(e,t){(function(i,l){e.exports=l()})(jh,function(){var i,l,h;function v(a,m){if(!i)i=m;else if(!l)l=m;else{var D="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 = {}; ("+i+")(sharedChunk); ("+l+")(sharedChunk); self.onerror = null;",C={};i(C),h=m(C),typeof window<"u"&&window&&window.URL&&window.URL.createObjectURL&&(h.workerUrl=window.URL.createObjectURL(new Blob([D],{type:"text/javascript"})))}}v(["exports"],function(a){var m=typeof self<"u"?self:{},D="2.12.1";let C;const E={API_URL:"https://api.mapbox.com",get API_URL_REGEX(){if(C==null){const r=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;try{C=process.env.API_URL_REGEX!=null?new RegExp(process.env.API_URL_REGEX):r}catch{C=r}}return C},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(){return this.API_URL?this.API_URL.indexOf("https://api.mapbox.cn")===0?"https://events.mapbox.cn/events/v2":this.API_URL.indexOf("https://api.mapbox.com")===0?"https://events.mapbox.com/events/v2":null:null},SESSION_PATH:"/map-sessions/v1",FEEDBACK_URL:"https://apps.mapbox.com/feedback",TILE_URL_VERSION:"v4",RASTER_URL_PREFIX:"raster/v1",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},A={supported:!1,testSupport:function(r){!U&&L&&(q?H(r):O=r)}};let O,L,U=!1,q=!1;function H(r){const n=r.createTexture();r.bindTexture(r.TEXTURE_2D,n);try{if(r.texImage2D(r.TEXTURE_2D,0,r.RGBA,r.RGBA,r.UNSIGNED_BYTE,L),r.isContextLost())return;A.supported=!0}catch{}r.deleteTexture(n),U=!0}m.document&&(L=m.document.createElement("img"),L.onload=function(){O&&H(O),O=null,q=!0},L.onerror=function(){U=!0,O=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");const V="01";var G=ee;function ee(r,n,o,c){this.cx=3*r,this.bx=3*(o-r)-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=r,this.p1y=n,this.p2x=o,this.p2y=c}ee.prototype={sampleCurveX:function(r){return((this.ax*r+this.bx)*r+this.cx)*r},sampleCurveY:function(r){return((this.ay*r+this.by)*r+this.cy)*r},sampleCurveDerivativeX:function(r){return(3*this.ax*r+2*this.bx)*r+this.cx},solveCurveX:function(r,n){if(n===void 0&&(n=1e-6),r<0)return 0;if(r>1)return 1;for(var o=r,c=0;c<8;c++){var d=this.sampleCurveX(o)-r;if(Math.abs(d)<n)return o;var p=this.sampleCurveDerivativeX(o);if(Math.abs(p)<1e-6)break;o-=d/p}var _=0,M=1;for(o=r,c=0;c<20&&(d=this.sampleCurveX(o),!(Math.abs(d-r)<n));c++)r>d?_=o:M=o,o=.5*(M-_)+_;return o},solve:function(r,n){return this.sampleCurveY(this.solveCurveX(r,n))}};var K=_e;function _e(r,n){this.x=r,this.y=n}_e.prototype={clone:function(){return new _e(this.x,this.y)},add:function(r){return this.clone()._add(r)},sub:function(r){return this.clone()._sub(r)},multByPoint:function(r){return this.clone()._multByPoint(r)},divByPoint:function(r){return this.clone()._divByPoint(r)},mult:function(r){return this.clone()._mult(r)},div:function(r){return this.clone()._div(r)},rotate:function(r){return this.clone()._rotate(r)},rotateAround:function(r,n){return this.clone()._rotateAround(r,n)},matMult:function(r){return this.clone()._matMult(r)},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(r){return this.x===r.x&&this.y===r.y},dist:function(r){return Math.sqrt(this.distSqr(r))},distSqr:function(r){var n=r.x-this.x,o=r.y-this.y;return n*n+o*o},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(r){return Math.atan2(this.y-r.y,this.x-r.x)},angleWith:function(r){return this.angleWithSep(r.x,r.y)},angleWithSep:function(r,n){return Math.atan2(this.x*n-this.y*r,this.x*r+this.y*n)},_matMult:function(r){var n=r[2]*this.x+r[3]*this.y;return this.x=r[0]*this.x+r[1]*this.y,this.y=n,this},_add:function(r){return this.x+=r.x,this.y+=r.y,this},_sub:function(r){return this.x-=r.x,this.y-=r.y,this},_mult:function(r){return this.x*=r,this.y*=r,this},_div:function(r){return this.x/=r,this.y/=r,this},_multByPoint:function(r){return this.x*=r.x,this.y*=r.y,this},_divByPoint:function(r){return this.x/=r.x,this.y/=r.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var r=this.y;return this.y=this.x,this.x=-r,this},_rotate:function(r){var n=Math.cos(r),o=Math.sin(r),c=o*this.x+n*this.y;return this.x=n*this.x-o*this.y,this.y=c,this},_rotateAround:function(r,n){var o=Math.cos(r),c=Math.sin(r),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}},_e.convert=function(r){return r instanceof _e?r:Array.isArray(r)?new _e(r[0],r[1]):r};const xe=Math.PI/180,Ne=180/Math.PI;function Me(r){return r*xe}function ze(r){return r*Ne}const Ge=[[0,0],[1,0],[1,1],[0,1]];function He(r){if(r<=0)return 0;if(r>=1)return 1;const n=r*r,o=n*r;return 4*(r<.5?o:3*(r-n)+o-.75)}function ct(r,n,o,c){const d=new G(r,n,o,c);return function(p){return d.solve(p)}}const ft=ct(.25,.1,.25,1);function Ae(r,n,o){return Math.min(o,Math.max(n,r))}function Re(r,n,o){return(o=Ae((o-r)/(n-r),0,1))*o*(3-2*o)}function Je(r,n,o){const c=o-n,d=((r-n)%c+c)%c+n;return d===n?o:d}function Ye(r,n,o){if(!r.length)return o(null,[]);let c=r.length;const d=new Array(r.length);let p=null;r.forEach((_,M)=>{n(_,(b,I)=>{b&&(p=b),d[M]=I,--c==0&&o(p,d)})})}function Ze(r){const n=[];for(const o in r)n.push(r[o]);return n}function ae(r,...n){for(const o of n)for(const c in o)r[c]=o[c];return r}let de=1;function J(){return de++}function F(){return function r(n){return n?(n^Math.random()*(16>>n/4)).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,r)}()}function Z(r){return r<=1?1:Math.pow(2,Math.ceil(Math.log(r)/Math.LN2))}function ie(r){return!!r&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(r)}function ne(r,n){r.forEach(o=>{n[o]&&(n[o]=n[o].bind(n))})}function De(r,n){return r.indexOf(n,r.length-n.length)!==-1}function Oe(r,n,o){const c={};for(const d in r)c[d]=n.call(o||this,r[d],d,r);return c}function we(r,n,o){const c={};for(const d in r)n.call(o||this,r[d],d,r)&&(c[d]=r[d]);return c}function Qe(r){return Array.isArray(r)?r.map(Qe):typeof r=="object"&&r?Oe(r,Qe):r}const et={};function it(r){et[r]||(typeof console<"u"&&console.warn(r),et[r]=!0)}function Ue(r,n,o){return(o.y-r.y)*(n.x-r.x)>(n.y-r.y)*(o.x-r.x)}function rt(r){let n=0;for(let o,c,d=0,p=r.length,_=p-1;d<p;_=d++)o=r[d],c=r[_],n+=(c.x-o.x)*(o.y+c.y);return n}function Tt(){return typeof WorkerGlobalScope<"u"&&typeof self<"u"&&self instanceof WorkerGlobalScope}function ut(r){const n={};if(r.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 Lt=null;function Zt(r){if(Lt==null){const n=r.navigator?r.navigator.userAgent:null;Lt=!!r.safari||!(!n||!(/\b(iPad|iPhone|iPod)\b/.test(n)||n.match("Safari")&&!n.match("Chrome")))}return Lt}function Xt(r){try{const n=m[r];return n.setItem("_mapbox_test_",1),n.removeItem("_mapbox_test_"),!0}catch{return!1}}function _n(r,n){return[r[4*n],r[4*n+1],r[4*n+2],r[4*n+3]]}const li="mapbox-tiles";let bn,Pn,Mn=500,cn=50;function mn(){try{return m.caches}catch{}}function kt(){mn()&&!bn&&(bn=m.caches.open(li))}function Tn(r){const n=r.indexOf("?");if(n<0)return r;const o=function(d){const p=d.indexOf("?");return p>0?d.slice(p+1).split("&"):[]}(r),c=o.filter(d=>{const p=d.split("=");return p[0]==="language"||p[0]==="worldview"});return c.length?`${r.slice(0,n)}?${c.join("&")}`:r.slice(0,n)}let Gn=1/0;const Un={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};typeof Object.freeze=="function"&&Object.freeze(Un);class wn extends Error{constructor(n,o,c){o===401&&yn(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 sn=Tt()?()=>self.worker&&self.worker.referrer:()=>(m.location.protocol==="blob:"?m.parent:m).location.href,yi=function(r,n){if(!(/^file:/.test(o=r.url)||/^file:/.test(sn())&&!/^\w+:/.test(o))){if(m.fetch&&m.Request&&m.AbortController&&m.Request.prototype.hasOwnProperty("signal"))return function(c,d){const p=new m.AbortController,_=new m.Request(c.url,{method:c.method||"GET",body:c.body,credentials:c.credentials,headers:c.headers,referrer:sn(),signal:p.signal});let M=!1,b=!1;const I=(S=_.url).indexOf("sku=")>0&&yn(S);var S;c.type==="json"&&_.headers.set("Accept","application/json");const j=(B,Q,W)=>{if(b)return;if(B&&B.message!=="SecurityError"&&it(B),Q&&W)return k(Q);const re=Date.now();m.fetch(_).then(ve=>{if(ve.ok){const Ee=I?ve.clone():null;return k(ve,Ee,re)}return d(new wn(ve.statusText,ve.status,c.url))}).catch(ve=>{ve.code!==20&&d(new Error(ve.message))})},k=(B,Q,W)=>{(c.type==="arrayBuffer"?B.arrayBuffer():c.type==="json"?B.json():B.text()).then(re=>{b||(Q&&W&&function(ve,Ee,me){if(kt(),!bn)return;const Te={status:Ee.status,statusText:Ee.statusText,headers:new m.Headers};Ee.headers.forEach((lt,at)=>Te.headers.set(at,lt));const je=ut(Ee.headers.get("Cache-Control")||"");if(je["no-store"])return;je["max-age"]&&Te.headers.set("Expires",new Date(me+1e3*je["max-age"]).toUTCString());const Ce=Te.headers.get("Expires");Ce&&(new Date(Ce).getTime()-me<42e4||function(lt,at){if(Pn===void 0)try{new Response(new ReadableStream),Pn=!0}catch{Pn=!1}Pn?at(lt.body):lt.blob().then(at)}(Ee,lt=>{const at=new m.Response(lt,Te);kt(),bn&&bn.then(_t=>_t.put(Tn(ve.url),at)).catch(_t=>it(_t.message))}))}(_,Q,W),M=!0,d(null,re,B.headers.get("Cache-Control"),B.headers.get("Expires")))}).catch(re=>{b||d(new Error(re.message))})};return I?function(B,Q){if(kt(),!bn)return Q(null);const W=Tn(B.url);bn.then(re=>{re.match(W).then(ve=>{const Ee=function(me){if(!me)return!1;const Te=new Date(me.headers.get("Expires")||0),je=ut(me.headers.get("Cache-Control")||"");return Te>Date.now()&&!je["no-cache"]}(ve);re.delete(W),Ee&&re.put(W,ve.clone()),Q(null,ve,Ee)}).catch(Q)}).catch(Q)}(_,j):j(null,null),{cancel:()=>{b=!0,M||p.abort()}}}(r,n);if(Tt()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",r,n,void 0,!0)}var o;return function(c,d){const p=new m.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(M){return d(M)}d(null,_,p.getResponseHeader("Cache-Control"),p.getResponseHeader("Expires"))}else d(new wn(p.statusText,p.status,c.url))},p.send(c.body),{cancel:()=>p.abort()}}(r,n)},Pi=function(r,n){return yi(ae(r,{type:"arrayBuffer"}),n)};function Fe(r){const n=m.document.createElement("a");return n.href=r,n.protocol===m.document.location.protocol&&n.host===m.document.location.host}const Pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";let Mt,zt;Mt=[],zt=0;const Ut=function(r,n){if(A.supported&&(r.headers||(r.headers={}),r.headers.accept="image/webp,*/*"),zt>=E.MAX_PARALLEL_IMAGE_REQUESTS){const p={requestParameters:r,callback:n,cancelled:!1,cancel(){this.cancelled=!0}};return Mt.push(p),p}zt++;let o=!1;const c=()=>{if(!o)for(o=!0,zt--;Mt.length&&zt<E.MAX_PARALLEL_IMAGE_REQUESTS;){const p=Mt.shift(),{requestParameters:_,callback:M,cancelled:b}=p;b||(p.cancel=Ut(_,M).cancel)}},d=Pi(r,(p,_,M,b)=>{c(),p?n(p):_&&(m.createImageBitmap?function(I,S){const j=new m.Blob([new Uint8Array(I)],{type:"image/png"});m.createImageBitmap(j).then(k=>{S(null,k)}).catch(k=>{S(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,S)=>n(I,S,M,b)):function(I,S){const j=new m.Image,k=m.URL;j.onload=()=>{S(null,j),k.revokeObjectURL(j.src),j.onload=null,m.requestAnimationFrame(()=>{j.src=Pe})},j.onerror=()=>S(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 B=new m.Blob([new Uint8Array(I)],{type:"image/png"});j.src=I.byteLength?k.createObjectURL(B):Pe}(_,(I,S)=>n(I,S,M,b)))});return{cancel:()=>{d.cancel(),c()}}},Kt="NO_ACCESS_TOKEN";function un(r){return r.indexOf("mapbox:")===0}function yn(r){return E.API_URL_REGEX.test(r)}function vn(r){return E.API_CDN_URL_REGEX.test(r)}function Dn(r){return E.API_STYLE_REGEX.test(r)&&!Jn(r)}function Jn(r){return E.API_SPRITE_REGEX.test(r)}const Zi=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function ci(r){const n=r.match(Zi);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 Hi(r){const n=r.params.length?`?${r.params.join("&")}`:"";return`${r.protocol}://${r.authority}${r.path}${n}`}function dr(r){if(!r)return null;const n=r.split(".");if(!n||n.length!==3)return null;try{return JSON.parse(decodeURIComponent(m.atob(n[1]).split("").map(o=>"%"+("00"+o.charCodeAt(0).toString(16)).slice(-2)).join("")))}catch{return null}}class pe{constructor(n){this.type=n,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null}getStorageKey(n){const o=dr(E.ACCESS_TOKEN);let c="";return c=o&&o.u?m.btoa(encodeURIComponent(o.u).replace(/%([0-9A-F]{2})/g,(d,p)=>String.fromCharCode(+("0x"+p)))):E.ACCESS_TOKEN||"",n?`mapbox.eventData.${n}:${c}`:`mapbox.eventData:${c}`}fetchEventData(){const n=Xt("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{const d=m.localStorage.getItem(o);d&&(this.eventData=JSON.parse(d));const p=m.localStorage.getItem(c);p&&(this.anonId=p)}catch{it("Unable to read from LocalStorage")}}saveEventData(){const n=Xt("localStorage"),o=this.getStorageKey(),c=this.getStorageKey("uuid");if(n)try{m.localStorage.setItem(c,this.anonId),Object.keys(this.eventData).length>=1&&m.localStorage.setItem(o,JSON.stringify(this.eventData))}catch{it("Unable to write to LocalStorage")}}processRequests(n){}postEvent(n,o,c,d){if(!E.EVENTS_URL)return;const p=ci(E.EVENTS_URL);p.params.push(`access_token=${d||E.ACCESS_TOKEN||""}`);const _={event:this.type,created:new Date(n).toISOString()},M=o?ae(_,o):_,b={url:Hi(p),headers:{"Content-Type":"text/plain"},body:JSON.stringify([M])};this.pendingRequest=function(I,S){return yi(ae(I,{method:"POST"}),S)}(b,I=>{this.pendingRequest=null,c(I),this.saveEventData(),this.processRequests(d)})}queueRequest(n,o){this.queue.push(n),this.processRequests(o)}}const Y=new class extends pe{constructor(r){super("appUserTurnstile"),this._customAccessToken=r}postTurnstileEvent(r,n){E.EVENTS_URL&&E.ACCESS_TOKEN&&Array.isArray(r)&&r.some(o=>un(o)||yn(o))&&this.queueRequest(Date.now(),n)}processRequests(r){if(this.pendingRequest||this.queue.length===0)return;this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();const n=dr(E.ACCESS_TOKEN),o=n?n.u:E.ACCESS_TOKEN;let c=o!==this.eventData.tokenU;ie(this.anonId)||(this.anonId=F(),c=!0);const d=this.queue.shift();if(this.eventData.lastSuccess){const p=new Date(this.eventData.lastSuccess),_=new Date(d),M=(d-this.eventData.lastSuccess)/864e5;c=c||M>=1||M<-1||p.getDate()!==_.getDate()}else c=!0;c?this.postEvent(d,{sdkIdentifier:"mapbox-gl-js",sdkVersion:D,skuId:V,"enabled.telemetry":!1,userId:this.anonId},p=>{p||(this.eventData.lastSuccess=d,this.eventData.tokenU=o)},r):this.processRequests()}},X=Y.postTurnstileEvent.bind(Y),he=new class extends pe{constructor(){super("map.load"),this.success={},this.skuToken=""}postMapLoadEvent(r,n,o,c){this.skuToken=n,this.errorCb=c,E.EVENTS_URL&&(o||E.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(Kt)))}processRequests(r){if(this.pendingRequest||this.queue.length===0)return;const{id:n,timestamp:o}=this.queue.shift();n&&this.success[n]||(this.anonId||this.fetchEventData(),ie(this.anonId)||(this.anonId=F()),this.postEvent(o,{sdkIdentifier:"mapbox-gl-js",sdkVersion:D,skuId:V,skuToken:this.skuToken,userId:this.anonId},c=>{c?this.errorCb(c):n&&(this.success[n]=!0)},r))}},Ie=he.postMapLoadEvent.bind(he),ke=new class extends pe{constructor(){super("gljs.performance")}postPerformanceEvent(r,n){E.EVENTS_URL&&(r||E.ACCESS_TOKEN)&&this.queueRequest({timestamp:Date.now(),performanceData:n},r)}processRequests(r){if(this.pendingRequest||this.queue.length===0)return;const{timestamp:n,performanceData:o}=this.queue.shift(),c=function(d){const p=m.performance.getEntriesByType("resource"),_=m.performance.getEntriesByType("mark"),M=function(k){const B={};if(k){for(const Q in k)if(Q!=="other")for(const W of k[Q]){const re=`${Q}ResolveRangeMin`,ve=`${Q}ResolveRangeMax`,Ee=`${Q}RequestCount`,me=`${Q}RequestCachedCount`;B[re]=Math.min(B[re]||1/0,W.startTime),B[ve]=Math.max(B[ve]||-1/0,W.responseEnd);const Te=je=>{B[je]===void 0&&(B[je]=0),++B[je]};W.transferSize!==void 0&&W.transferSize===0&&Te(me),Te(Ee)}}return B}(function(k,B){const Q={};if(k)for(const W of k){const re=B(W);Q[re]===void 0&&(Q[re]=[]),Q[re].push(W)}return Q}(p,Et)),b=m.devicePixelRatio,I=m.navigator.connection||m.navigator.mozConnection||m.navigator.webkitConnection,S={counters:[],metadata:[],attributes:[]},j=(k,B,Q)=>{Q!=null&&k.push({name:B,value:Q.toString()})};for(const k in M)j(S.counters,k,M[k]);if(d.interactionRange[0]!==1/0&&d.interactionRange[1]!==-1/0&&(j(S.counters,"interactionRangeMin",d.interactionRange[0]),j(S.counters,"interactionRangeMax",d.interactionRange[1])),_)for(const k of Object.keys(Dt)){const B=Dt[k],Q=_.find(W=>W.name===B);Q&&j(S.counters,B,Q.startTime)}return j(S.counters,"visibilityHidden",d.visibilityHidden),j(S.attributes,"style",function(k){if(k)for(const B of k){const Q=B.name.split("?")[0];if(Dn(Q)){const W=Q.split("/").slice(-2);if(W.length===2)return`mapbox://styles/${W[0]}/${W[1]}`}}}(p)),j(S.attributes,"terrainEnabled",d.terrainEnabled?"true":"false"),j(S.attributes,"fogEnabled",d.fogEnabled?"true":"false"),j(S.attributes,"projection",d.projection),j(S.attributes,"zoom",d.zoom),j(S.metadata,"devicePixelRatio",b),j(S.metadata,"connectionEffectiveType",I?I.effectiveType:void 0),j(S.metadata,"navigatorUserAgent",m.navigator.userAgent),j(S.metadata,"screenWidth",m.screen.width),j(S.metadata,"screenHeight",m.screen.height),j(S.metadata,"windowWidth",m.innerWidth),j(S.metadata,"windowHeight",m.innerHeight),j(S.metadata,"mapWidth",d.width/b),j(S.metadata,"mapHeight",d.height/b),j(S.metadata,"webglRenderer",d.renderer),j(S.metadata,"webglVendor",d.vendor),j(S.metadata,"sdkVersion",D),j(S.metadata,"sdkIdentifier","mapbox-gl-js"),S}(o);for(const d of c.metadata);for(const d of c.counters);for(const d of c.attributes);this.postEvent(n,c,()=>{},r)}},tt=ke.postPerformanceEvent.bind(ke),Ke=new class extends pe{constructor(){super("map.auth"),this.success={},this.skuToken=""}getSession(r,n,o,c){if(!E.API_URL||!E.SESSION_PATH)return;const d=ci(E.API_URL+E.SESSION_PATH);d.params.push(`sku=${n||""}`),d.params.push(`access_token=${c||E.ACCESS_TOKEN||""}`);const p={url:Hi(d),headers:{"Content-Type":"text/plain"}};this.pendingRequest=function(_,M){return yi(ae(_,{method:"GET"}),M)}(p,_=>{this.pendingRequest=null,o(_),this.saveEventData(),this.processRequests(c)})}getSessionAPI(r,n,o,c){this.skuToken=n,this.errorCb=c,E.SESSION_PATH&&E.API_URL&&(o||E.ACCESS_TOKEN?this.queueRequest({id:r,timestamp:Date.now()},o):this.errorCb(new Error(Kt)))}processRequests(r){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)},r)}},Be=Ke.getSessionAPI.bind(Ke),ot=new Set,Dt={create:"create",load:"load",fullLoad:"fullLoad"},Qt={mark(r){m.performance.mark(r)},measure(r,n,o){m.performance.measure(r,n,o)}};function Et(r){const n=r.name.split("?")[0];return vn(n)&&n.includes("mapbox-gl.js")?"javascript":vn(n)&&n.includes("mapbox-gl.css")?"css":function(o){return E.API_FONTS_REGEX.test(o)}(n)?"fontRange":Jn(n)?"sprite":Dn(n)?"style":function(o){return E.API_TILEJSON_REGEX.test(o)}(n)?"tilejson":"other"}const an=m.performance;function on(r){const n=r?r.url.toString():void 0;return an.getEntriesByName(n)}let Jt,gn,Sn,Wn;const en={now:()=>Sn!==void 0?Sn:m.performance.now(),setNow(r){Sn=r},restoreNow(){Sn=void 0},frame(r){const n=m.requestAnimationFrame(r);return{cancel:()=>m.cancelAnimationFrame(n)}},getImageData(r,n=0){const{width:o,height:c}=r;Wn||(Wn=m.document.createElement("canvas"));const d=Wn.getContext("2d",{willReadFrequently:!0});if(!d)throw new Error("failed to create canvas 2d context");return(o>Wn.width||c>Wn.height)&&(Wn.width=o,Wn.height=c),d.clearRect(-n,-n,o+2*n,c+2*n),d.drawImage(r,0,0,o,c),d.getImageData(-n,-n,o+2*n,c+2*n)},resolveURL:r=>(Jt||(Jt=m.document.createElement("a")),Jt.href=r,Jt.href),get devicePixelRatio(){return m.devicePixelRatio},get prefersReducedMotion(){return!!m.matchMedia&&(gn==null&&(gn=m.matchMedia("(prefers-reduced-motion: reduce)")),gn.matches)}};function ui(r,n,o){o[r]&&o[r].indexOf(n)!==-1||(o[r]=o[r]||[],o[r].push(n))}function _i(r,n,o){if(o&&o[r]){const c=o[r].indexOf(n);c!==-1&&o[r].splice(c,1)}}class Uo{constructor(n,o={}){ae(this,o),this.type=n}}class Cs extends Uo{constructor(n,o={}){super("error",ae({error:n},o))}}class uo{on(n,o){return this._listeners=this._listeners||{},ui(n,o,this._listeners),this}off(n,o){return _i(n,o,this._listeners),_i(n,o,this._oneTimeListeners),this}once(n,o){return o?(this._oneTimeListeners=this._oneTimeListeners||{},ui(n,o,this._oneTimeListeners),this):new Promise(c=>this.once(n,c))}fire(n,o){typeof n=="string"&&(n=new Uo(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 M of d)M.call(this,n);const p=this._oneTimeListeners&&this._oneTimeListeners[c]?this._oneTimeListeners[c].slice():[];for(const M of p)_i(c,M,this._oneTimeListeners),M.call(this,n);const _=this._eventedParent;_&&(ae(n,typeof this._eventedParentData=="function"?this._eventedParentData():this._eventedParentData),_.fire(n))}else n instanceof Cs&&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}}var xt=JSON.parse('{"$version":8,"$root":{"version":{"required":true,"type":"enum","values":[8]},"name":{"type":"string"},"metadata":{"type":"*"},"center":{"type":"array","value":"number"},"zoom":{"type":"number"},"bearing":{"type":"number","default":0,"period":360,"units":"degrees"},"pitch":{"type":"number","default":0,"units":"degrees"},"light":{"type":"light"},"terrain":{"type":"terrain"},"fog":{"type":"fog"},"sources":{"required":true,"type":"sources"},"sprite":{"type":"string"},"glyphs":{"type":"string"},"transition":{"type":"transition"},"projection":{"type":"projection"},"layers":{"required":true,"type":"array","value":"layer"}},"sources":{"*":{"type":"source"}},"source":["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],"source_vector":{"type":{"required":true,"type":"enum","values":{"vector":{}}},"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":{},"tms":{}},"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":{}}},"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,"units":"pixels"},"scheme":{"type":"enum","values":{"xyz":{},"tms":{}},"default":"xyz"},"attribution":{"type":"string"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_raster_dem":{"type":{"required":true,"type":"enum","values":{"raster-dem":{}}},"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,"units":"pixels"},"attribution":{"type":"string"},"encoding":{"type":"enum","values":{"terrarium":{},"mapbox":{}},"default":"mapbox"},"volatile":{"type":"boolean","default":false},"*":{"type":"*"}},"source_geojson":{"type":{"required":true,"type":"enum","values":{"geojson":{}}},"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":{}}},"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":{}}},"url":{"required":true,"type":"string"},"coordinates":{"required":true,"type":"array","length":4,"value":{"type":"array","length":2,"value":"number"}}},"layer":{"id":{"type":"string","required":true},"type":{"type":"enum","values":{"fill":{},"line":{},"symbol":{},"circle":{},"heatmap":{},"fill-extrusion":{},"raster":{},"hillshade":{},"background":{},"sky":{}},"required":true},"metadata":{"type":"*"},"source":{"type":"string"},"source-layer":{"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_hillshade","layout_background","layout_sky"],"layout_background":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_sky":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill":{"fill-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_circle":{"circle-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_heatmap":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_fill-extrusion":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"},"fill-extrusion-edge-radius":{"type":"number","private":true,"default":0,"minimum":0,"maximum":1,"property-type":"constant"}},"layout_line":{"line-cap":{"type":"enum","values":{"butt":{},"round":{},"square":{}},"default":"butt","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-join":{"type":"enum","values":{"bevel":{},"round":{},"miter":{}},"default":"miter","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{"type":"number","default":2,"requires":[{"line-join":"miter"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-round-limit":{"type":"number","default":1.05,"requires":[{"line-join":"round"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_symbol":{"symbol-placement":{"type":"enum","values":{"point":{},"line":{},"line-center":{}},"default":"point","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-spacing":{"type":"number","default":250,"minimum":1,"units":"pixels","requires":[{"symbol-placement":"line"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{"type":"boolean","default":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{"type":"number","expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{"type":"enum","values":{"auto":{},"viewport-y":{},"source":{}},"default":"auto","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{"type":"boolean","default":false,"requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-optional":{"type":"boolean","default":false,"requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-size":{"type":"number","default":1,"minimum":0,"units":"factor of the original icon size","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{"type":"enum","values":{"none":{},"width":{},"height":{},"both":{}},"default":"none","requires":["icon-image","text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{"type":"array","value":"number","length":4,"default":[0,0,0,0],"units":"pixels","requires":["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-image":{"type":"resolvedImage","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{"type":"boolean","default":false,"requires":["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"icon-offset":{"type":"array","value":"number","length":2,"default":[0,0],"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{"type":"enum","values":{"map":{},"viewport":{},"auto":{}},"default":"auto","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-field":{"type":"formatted","default":"","tokens":true,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-font":{"type":"array","value":"string","default":["Open Sans Regular","Arial Unicode MS Regular"],"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-size":{"type":"number","default":16,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{"type":"number","default":10,"minimum":0,"units":"ems","requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{"type":"number","default":1.2,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-letter-spacing":{"type":"number","default":0,"units":"ems","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-justify":{"type":"enum","values":{"auto":{},"left":{},"center":{},"right":{}},"default":"center","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{"type":"number","units":"ems","default":0,"requires":["text-field"],"property-type":"data-driven","expression":{"interpolated":true,"parameters":["zoom","feature"]}},"text-variable-anchor":{"type":"array","value":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"requires":["text-field",{"symbol-placement":["point"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-anchor":{"type":"enum","values":{"center":{},"left":{},"right":{},"top":{},"bottom":{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},"default":"center","requires":["text-field",{"!":"text-variable-anchor"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{"type":"number","default":45,"units":"degrees","requires":["text-field",{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-writing-mode":{"type":"array","value":"enum","values":{"horizontal":{},"vertical":{}},"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-rotate":{"type":"number","default":0,"period":360,"units":"degrees","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-padding":{"type":"number","default":2,"minimum":0,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-keep-upright":{"type":"boolean","default":true,"requires":["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-transform":{"type":"enum","values":{"none":{},"uppercase":{},"lowercase":{}},"default":"none","requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-offset":{"type":"array","value":"number","units":"ems","length":2,"default":[0,0],"requires":["text-field",{"!":"text-radial-offset"}],"expression":{"interpolated":true,"parameters":["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{"type":"boolean","default":false,"requires":["text-field"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-optional":{"type":"boolean","default":false,"requires":["text-field","icon-image"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_raster":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"layout_hillshade":{"visibility":{"type":"enum","values":{"visible":{},"none":{}},"default":"visible","property-type":"constant"}},"filter":{"type":"array","value":"*"},"filter_symbol":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature","pitch","distance-from-center"]}},"filter_fill":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_line":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_circle":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_fill-extrusion":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_heatmap":{"type":"boolean","default":false,"transition":false,"property-type":"data-driven","expression":{"interpolated":false,"parameters":["zoom","feature"]}},"filter_operator":{"type":"enum","values":{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},"in":{},"!in":{},"all":{},"any":{},"none":{},"has":{},"!has":{},"within":{}}},"geometry_type":{"type":"enum","values":{"Point":{},"LineString":{},"Polygon":{}}},"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":{},"exponential":{},"interval":{},"categorical":{}},"default":"exponential"},"colorSpace":{"type":"enum","values":{"rgb":{},"lab":{},"hcl":{}},"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"]}},"color":{"type":"color","property-type":"data-constant","default":"#ffffff","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"high-color":{"type":"color","property-type":"data-constant","default":"#245cdf","expression":{"interpolated":true,"parameters":["zoom"]},"transition":true},"space-color":{"type":"color","property-type":"data-constant","default":["interpolate",["linear"],["zoom"],4,"#010b19",7,"#367ab9"],"expression":{"interpolated":true,"parameters":["zoom"]},"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"]},"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"]},"transition":true}},"light":{"anchor":{"type":"enum","default":"viewport","values":{"map":{},"viewport":{}},"property-type":"data-constant","transition":false,"expression":{"interpolated":false,"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":{},"equalEarth":{},"equirectangular":{},"lambertConformalConic":{},"mercator":{},"naturalEarth":{},"winkelTripel":{},"globe":{}},"default":"mercator","required":true},"center":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-180,-90],"maximum":[180,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]},"parallels":{"type":"array","length":2,"value":"number","property-type":"data-constant","minimum":[-90,-90],"maximum":[90,90],"transition":false,"requires":[{"name":["albers","lambertConformalConic"]}]}},"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,"requires":["source"]}},"paint":["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background","paint_sky"],"paint_fill":{"fill-antialias":{"type":"boolean","default":true,"expression":{"interpolated":false,"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"]},"property-type":"data-driven"},"fill-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"fill-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{"type":"color","transition":true,"requires":[{"!":"fill-pattern"},{"fill-antialias":true}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"}},"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,"requires":[{"!":"fill-extrusion-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["fill-extrusion-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"fill-extrusion-height":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{"type":"number","default":0,"minimum":0,"units":"meters","transition":true,"requires":["fill-extrusion-height"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{"type":"boolean","default":true,"transition":false,"expression":{"interpolated":false,"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,"requires":["fill-extrusion-edge-radius"]}},"paint_line":{"line-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"line-pattern"}],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["line-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"line-width":{"type":"number","default":1,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{"type":"number","default":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{"type":"array","value":"number","minimum":0,"transition":false,"units":"line widths","requires":[{"!":"line-pattern"}],"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"parameters":["zoom","feature"]},"property-type":"data-driven"},"line-gradient":{"type":"color","transition":false,"requires":[{"!":"line-pattern"},{"source":"geojson","has":{"lineMetrics":true}}],"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],"transition":false,"requires":[{"source":"geojson","has":{"lineMetrics":true}}],"property-type":"constant"}},"paint_circle":{"circle-radius":{"type":"number","default":5,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{"type":"number","default":0,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["circle-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"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"]},"property-type":"data-driven"}},"paint_heatmap":{"heatmap-radius":{"type":"number","default":30,"minimum":1,"transition":true,"units":"pixels","expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{"type":"number","default":1,"minimum":0,"transition":false,"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"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"],"transition":false,"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,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{"type":"color","default":"#000000","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["icon-image"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["icon-image","icon-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"text-opacity":{"type":"number","default":1,"minimum":0,"maximum":1,"transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{"type":"color","default":"#000000","transition":true,"overridable":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{"type":"color","default":"rgba(0, 0, 0, 0)","transition":true,"requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{"type":"number","default":0,"minimum":0,"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{"type":"array","value":"number","length":2,"default":[0,0],"transition":true,"units":"pixels","requires":["text-field"],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"map","requires":["text-field","text-translate"],"expression":{"interpolated":false,"parameters":["zoom"]},"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-hue-rotate":{"type":"number","default":0,"period":360,"transition":true,"units":"degrees","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":{},"nearest":{}},"default":"linear","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{"type":"number","default":300,"minimum":0,"transition":false,"units":"milliseconds","expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_hillshade":{"hillshade-illumination-direction":{"type":"number","default":335,"minimum":0,"maximum":359,"transition":false,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{"type":"enum","values":{"map":{},"viewport":{}},"default":"viewport","expression":{"interpolated":false,"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"]},"property-type":"data-constant"},"hillshade-highlight-color":{"type":"color","default":"#FFFFFF","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{"type":"color","default":"#000000","transition":true,"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"}},"paint_background":{"background-color":{"type":"color","default":"#000000","transition":true,"requires":[{"!":"background-pattern"}],"expression":{"interpolated":true,"parameters":["zoom"]},"property-type":"data-constant"},"background-pattern":{"type":"resolvedImage","transition":false,"expression":{"interpolated":false,"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"}},"paint_sky":{"sky-type":{"type":"enum","values":{"gradient":{},"atmosphere":{}},"default":"atmosphere","expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun":{"type":"array","value":"number","length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"requires":[{"sky-type":"atmosphere"}],"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-atmosphere-sun-intensity":{"type":"number","requires":[{"sky-type":"atmosphere"}],"default":10,"minimum":0,"maximum":100,"transition":false,"property-type":"data-constant"},"sky-gradient-center":{"type":"array","requires":[{"sky-type":"gradient"}],"value":"number","default":[0,0],"length":2,"units":"degrees","minimum":[0,0],"maximum":[360,180],"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient-radius":{"type":"number","requires":[{"sky-type":"gradient"}],"default":90,"minimum":0,"maximum":180,"transition":false,"expression":{"interpolated":false,"parameters":["zoom"]},"property-type":"data-constant"},"sky-gradient":{"type":"color","default":["interpolate",["linear"],["sky-radial-progress"],0.8,"#87ceeb",1,"white"],"transition":false,"requires":[{"sky-type":"gradient"}],"expression":{"interpolated":true,"parameters":["sky-radial-progress"]},"property-type":"color-ramp"},"sky-atmosphere-halo-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"property-type":"data-constant"},"sky-atmosphere-color":{"type":"color","default":"white","transition":false,"requires":[{"sky-type":"atmosphere"}],"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"}},"transition":{"duration":{"type":"number","default":300,"minimum":0,"units":"milliseconds"},"delay":{"type":"number","default":0,"minimum":0,"units":"milliseconds"}},"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 as(r,...n){for(const o of n)for(const c in o)r[c]=o[c];return r}function Ki(r){return r instanceof Number||r instanceof String||r instanceof Boolean?r.valueOf():r}function ls(r){if(Array.isArray(r))return r.map(ls);if(r instanceof Object&&!(r instanceof Number||r instanceof String||r instanceof Boolean)){const n={};for(const o in r)n[o]=ls(r[o]);return n}return Ki(r)}class pM extends Error{constructor(n,o){super(o),this.message=o,this.key=n}}var Jr=pM;class Su{constructor(n,o=[]){this.parent=n,this.bindings={};for(const[c,d]of o)this.bindings[c]=d}concat(n){return new Su(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 F1=Su;const jr={kind:"null"},Vt={kind:"number"},Rn={kind:"string"},zn={kind:"boolean"},Ao={kind:"color"},la={kind:"object"},En={kind:"value"},Wl={kind:"collator"},Xa={kind:"formatted"},Ss={kind:"resolvedImage"};function fr(r,n){return{kind:"array",itemType:r,N:n}}function Ti(r){if(r.kind==="array"){const n=Ti(r.itemType);return typeof r.N=="number"?`array<${n}, ${r.N}>`:r.itemType.kind==="value"?"array":`array<${n}>`}return r.kind}const Bo=[jr,Vt,Rn,zn,Ao,Xa,la,fr(En),Ss];function ql(r,n){if(n.kind==="error")return null;if(r.kind==="array"){if(n.kind==="array"&&(n.N===0&&n.itemType.kind==="value"||!ql(r.itemType,n.itemType))&&(typeof r.N!="number"||r.N===n.N))return null}else{if(r.kind===n.kind)return null;if(r.kind==="value"){for(const o of Bo)if(!ql(o,n))return null}}return`Expected ${Ti(r)} but found ${Ti(n)} instead.`}function Xl(r,n){return n.some(o=>o.kind===r.kind)}function Kl(r,n){return n.some(o=>o==="null"?r===null:o==="array"?Array.isArray(r):o==="object"?r&&!Array.isArray(r)&&typeof r=="object":o===typeof r)}var Jl,Jd={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 zs(r){return(r=Math.round(r))<0?0:r>255?255:r}function ec(r){return zs(r[r.length-1]==="%"?parseFloat(r)/100*255:parseInt(r))}function zu(r){return(n=r[r.length-1]==="%"?parseFloat(r)/100:parseFloat(r))<0?0:n>1?1:n;var n}function ef(r,n,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?r+(n-r)*o*6:2*o<1?n:3*o<2?r+(n-r)*(2/3-o)*6:r}try{Jl={}.parseCSSColor=function(r){var n,o=r.replace(/ /g,"").toLowerCase();if(o in Jd)return Jd[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(","),M=1;switch(p){case"rgba":if(_.length!==4)return null;M=zu(_.pop());case"rgb":return _.length!==3?null:[ec(_[0]),ec(_[1]),ec(_[2]),M];case"hsla":if(_.length!==4)return null;M=zu(_.pop());case"hsl":if(_.length!==3)return null;var b=(parseFloat(_[0])%360+360)%360/360,I=zu(_[1]),S=zu(_[2]),j=S<=.5?S*(I+1):S+I-S*I,k=2*S-j;return[zs(255*ef(k,j,b+1/3)),zs(255*ef(k,j,b)),zs(255*ef(k,j,b-1/3)),M];default:return null}}return null}}catch{}class Fr{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 Fr)return n;if(typeof n!="string")return;const o=Jl(n);return o?new Fr(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]}toArray01PremultipliedAlpha(){const{r:n,g:o,b:c,a:d}=this;return[n,o,c,d]}}Fr.black=new Fr(0,0,0,1),Fr.white=new Fr(1,1,1,1),Fr.transparent=new Fr(0,0,0,0),Fr.red=new Fr(1,0,0,1),Fr.blue=new Fr(0,0,1,1);var ji=Fr;class tc{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 tf{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 pr{constructor(n){this.sections=n}static fromString(n){return new pr([new tf(n,null,null,null,null)])}isEmpty(){return this.sections.length===0||!this.sections.some(n=>n.text.length!==0||n.image&&n.image.name.length!==0)}static factory(n){return n instanceof pr?n:pr.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.name]);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 ho{constructor(n){this.name=n.name,this.available=n.available}toString(){return this.name}static fromString(n){return n?new ho({name:n,available:!1}):null}serialize(){return["image",this.name]}}function Q1(r,n,o,c){return typeof r=="number"&&r>=0&&r<=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 [${[r,n,o,c].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${(typeof c=="number"?[r,n,o,c]:[r,n,o]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ju(r){if(r===null||typeof r=="string"||typeof r=="boolean"||typeof r=="number"||r instanceof ji||r instanceof tc||r instanceof pr||r instanceof ho)return!0;if(Array.isArray(r)){for(const n of r)if(!ju(n))return!1;return!0}if(typeof r=="object"){for(const n in r)if(!ju(r[n]))return!1;return!0}return!1}function Ji(r){if(r===null)return jr;if(typeof r=="string")return Rn;if(typeof r=="boolean")return zn;if(typeof r=="number")return Vt;if(r instanceof ji)return Ao;if(r instanceof tc)return Wl;if(r instanceof pr)return Xa;if(r instanceof ho)return Ss;if(Array.isArray(r)){const n=r.length;let o;for(const c of r){const d=Ji(c);if(o){if(o===d)continue;o=En;break}o=d}return fr(o||En,n)}return la}function nc(r){const n=typeof r;return r===null?"":n==="string"||n==="number"||n==="boolean"?String(r):r instanceof ji||r instanceof pr||r instanceof ho?r.toString():JSON.stringify(r)}class nf{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(!ju(n[1]))return o.error("invalid value");const c=n[1];let d=Ji(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 nf(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 ji?["rgba"].concat(this.value.toArray()):this.value instanceof pr?this.value.serialize():this.value}}var ic=nf,lr=class{constructor(r){this.name="ExpressionEvaluationError",this.message=r}toJSON(){return this.message}};const Ka={string:Rn,number:Vt,boolean:zn,object:la};class rf{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 M,b;if(n.length>2){const I=n[1];if(typeof I!="string"||!(I in Ka)||I==="object")return o.error('The item type argument of "array" must be one of string, number, boolean',1);M=Ka[I],d++}else M=En;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);b=n[2],d++}c=fr(M,b)}else c=Ka[p];const _=[];for(;d<n.length;d++){const M=o.parse(n[d],d,En);if(!M)return null;_.push(M)}return new rf(c,_)}evaluate(n){for(let o=0;o<this.args.length;o++){const c=this.args[o].evaluate(n);if(!ql(this.type,Ji(c)))return c;if(o===this.args.length-1)throw new lr(`Expected value to be of type ${Ti(this.type)}, but found ${Ti(Ji(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 cs=rf;class rc{constructor(n){this.type=Xa,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 M=n[_];if(p&&typeof M=="object"&&!Array.isArray(M)){p=!1;let b=null;if(M["font-scale"]&&(b=o.parse(M["font-scale"],1,Vt),!b))return null;let I=null;if(M["text-font"]&&(I=o.parse(M["text-font"],1,fr(Rn)),!I))return null;let S=null;if(M["text-color"]&&(S=o.parse(M["text-color"],1,Ao),!S))return null;const j=d[d.length-1];j.scale=b,j.font=I,j.textColor=S}else{const b=o.parse(n[_],1,En);if(!b)return null;const I=b.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:b,scale:null,font:null,textColor:null})}}return new rc(d)}evaluate(n){return new pr(this.sections.map(o=>{const c=o.content.evaluate(n);return Ji(c)===Ss?new tf("",c,null,null,null):new tf(nc(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 Lu{constructor(n){this.type=Ss,this.input=n}static parse(n,o){if(n.length!==2)return o.error("Expected two arguments.");const c=o.parse(n[1],1,Rn);return c?new Lu(c):o.error("No image name provided.")}evaluate(n){const o=this.input.evaluate(n),c=ho.fromString(o);return c&&n.availableImages&&(c.available=n.availableImages.indexOf(o)>-1),c}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){return["image",this.input.serialize()]}}const gM={"to-boolean":zn,"to-color":Ao,"to-number":Vt,"to-string":Rn};class of{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];if((c==="to-boolean"||c==="to-string")&&n.length!==2)return o.error("Expected one argument.");const d=gM[c],p=[];for(let _=1;_<n.length;_++){const M=o.parse(n[_],_,En);if(!M)return null;p.push(M)}return new of(d,p)}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 ji)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.`:Q1(o[0],o[1],o[2],o[3]),!c))return new ji(o[0]/255,o[1]/255,o[2]/255,o[3])}throw new lr(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 lr(`Could not convert ${JSON.stringify(o)} to number.`)}return this.type.kind==="formatted"?pr.fromString(nc(this.args[0].evaluate(n))):this.type.kind==="resolvedImage"?ho.fromString(nc(this.args[0].evaluate(n))):nc(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 rc([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(this.type.kind==="resolvedImage")return new Lu(this.args[0]).serialize();const n=[`to-${this.type.kind}`];return this.eachChild(o=>{n.push(o.serialize())}),n}}var ca=of;const Ou=["Unknown","Point","LineString","Polygon"];var V1=class{constructor(){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}id(){return this.feature&&this.feature.id!==void 0?this.feature.id:null}geometryType(){return this.feature?typeof this.feature.type=="number"?Ou[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||{}}distanceFromCenter(){if(this.featureTileCoord&&this.featureDistanceData){const r=this.featureDistanceData.center,n=this.featureDistanceData.scale,{x:o,y:c}=this.featureTileCoord;return this.featureDistanceData.bearing[0]*(o*n-r[0])+this.featureDistanceData.bearing[1]*(c*n-r[1])}return 0}parseColor(r){let n=this._parseColorCache[r];return n||(n=this._parseColorCache[r]=ji.parse(r)),n}};class Ja{constructor(n,o,c,d){this.name=n,this.type=o,this._evaluate=c,this.args=d}evaluate(n){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=Ja.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,M=_.filter(([I])=>!Array.isArray(I)||I.length===n.length-1);let b=null;for(const[I,S]of M){b=new ha(o.registry,o.path,null,o.scope);const j=[];let k=!1;for(let B=1;B<n.length;B++){const Q=n[B],W=Array.isArray(I)?I[B-1]:I.type,re=b.parse(Q,1+j.length,W);if(!re){k=!0;break}j.push(re)}if(!k)if(Array.isArray(I)&&I.length!==j.length)b.error(`Expected ${I.length} arguments, but found ${j.length} instead.`);else{for(let B=0;B<j.length;B++){const Q=Array.isArray(I)?I[B]:I.type,W=j[B];b.concat(B+1).checkSubtype(Q,W.type)}if(b.errors.length===0)return new Ja(c,p,S,j)}}if(M.length===1)o.errors.push(...b.errors);else{const I=(M.length?M:_).map(([j])=>{return k=j,Array.isArray(k)?`(${k.map(Ti).join(", ")})`:`(${Ti(k.type)}...)`;var k}).join(" | "),S=[];for(let j=1;j<n.length;j++){const k=o.parse(n[j],1+S.length);if(!k)return null;S.push(Ti(k.type))}o.error(`Expected arguments of type ${I}, but found (${S.join(", ")}) instead.`)}return null}static register(n,o){Ja.definitions=o;for(const c in o)n[c]=Ja}}var js=Ja;class ku{constructor(n,o,c){this.type=Wl,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,zn);if(!d)return null;const p=o.parse(c["diacritic-sensitive"]!==void 0&&c["diacritic-sensitive"],1,zn);if(!p)return null;let _=null;return c.locale&&(_=o.parse(c.locale,1,Rn),!_)?null:new ku(d,p,_)}evaluate(n){return new tc(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]}}const gr=8192;function Pu(r,n){r[0]=Math.min(r[0],n[0]),r[1]=Math.min(r[1],n[1]),r[2]=Math.max(r[2],n[0]),r[3]=Math.max(r[3],n[1])}function oc(r,n){return!(r[0]<=n[0]||r[2]>=n[2]||r[1]<=n[1]||r[3]>=n[3])}function Y1(r,n){const o=(180+r[0])/360,c=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r[1]*Math.PI/360)))/360,d=Math.pow(2,n.z);return[Math.round(o*d*gr),Math.round(c*d*gr)]}function $1(r,n,o){const c=r[0]-n[0],d=r[1]-n[1],p=r[0]-o[0],_=r[1]-o[1];return c*_-p*d==0&&c*p<=0&&d*_<=0}function Ru(r,n){let o=!1;for(let _=0,M=n.length;_<M;_++){const b=n[_];for(let I=0,S=b.length;I<S-1;I++){if($1(r,b[I],b[I+1]))return!1;(d=b[I])[1]>(c=r)[1]!=(p=b[I+1])[1]>c[1]&&c[0]<(p[0]-d[0])*(c[1]-d[1])/(p[1]-d[1])+d[0]&&(o=!o)}}var c,d,p;return o}function Z1(r,n){for(let o=0;o<n.length;o++)if(Ru(r,n[o]))return!0;return!1}function Uu(r,n,o,c){const d=c[0]-o[0],p=c[1]-o[1],_=(r[0]-o[0])*p-d*(r[1]-o[1]),M=(n[0]-o[0])*p-d*(n[1]-o[1]);return _>0&&M<0||_<0&&M>0}function sc(r,n,o){for(const I of o)for(let S=0;S<I.length-1;++S)if((M=[(_=I[S+1])[0]-(p=I[S])[0],_[1]-p[1]])[0]*(b=[(d=n)[0]-(c=r)[0],d[1]-c[1]])[1]-M[1]*b[0]!=0&&Uu(c,d,p,_)&&Uu(p,_,c,d))return!0;var c,d,p,_,M,b;return!1}function sf(r,n){for(let o=0;o<r.length;++o)if(!Ru(r[o],n))return!1;for(let o=0;o<r.length-1;++o)if(sc(r[o],r[o+1],n))return!1;return!0}function H1(r,n){for(let o=0;o<n.length;o++)if(sf(r,n[o]))return!0;return!1}function ac(r,n,o){const c=[];for(let d=0;d<r.length;d++){const p=[];for(let _=0;_<r[d].length;_++){const M=Y1(r[d][_],o);Pu(n,M),p.push(M)}c.push(p)}return c}function af(r,n,o){const c=[];for(let d=0;d<r.length;d++){const p=ac(r[d],n,o);c.push(p)}return c}function ua(r,n,o,c){if(r[0]<o[0]||r[0]>o[2]){const d=.5*c;let p=r[0]-o[0]>d?-c:o[0]-r[0]>d?c:0;p===0&&(p=r[0]-o[2]>d?-c:o[2]-r[0]>d?c:0),r[0]+=p}Pu(n,r)}function qn(r,n,o,c){const d=Math.pow(2,c.z)*gr,p=[c.x*gr,c.y*gr],_=[];if(!r)return _;for(const M of r)for(const b of M){const I=[b.x+p[0],b.y+p[1]];ua(I,n,o,d),_.push(I)}return _}function G1(r,n,o,c){const d=Math.pow(2,c.z)*gr,p=[c.x*gr,c.y*gr],_=[];if(!r)return _;for(const b of r){const I=[];for(const S of b){const j=[S.x+p[0],S.y+p[1]];Pu(n,j),I.push(j)}_.push(I)}if(n[2]-n[0]<=d/2){(M=n)[0]=M[1]=1/0,M[2]=M[3]=-1/0;for(const b of _)for(const I of b)ua(I,n,o,d)}var M;return _}class lc{constructor(n,o){this.type=zn,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(ju(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 lc(c,c.features[d].geometry)}else if(c.type==="Feature"){const d=c.geometry.type;if(d==="Polygon"||d==="MultiPolygon")return new lc(c,c.geometry)}else if(c.type==="Polygon"||c.type==="MultiPolygon")return new lc(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 M=ac(c.coordinates,p,_),b=qn(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!Ru(I,M))return!1}if(c.type==="MultiPolygon"){const M=af(c.coordinates,p,_),b=qn(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!Z1(I,M))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 M=ac(c.coordinates,p,_),b=G1(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!sf(I,M))return!1}if(c.type==="MultiPolygon"){const M=af(c.coordinates,p,_),b=G1(o.geometry(),d,p,_);if(!oc(d,p))return!1;for(const I of b)if(!H1(I,M))return!1}return!0}(n,this.geometries)}return!1}eachChild(){}outputDefined(){return!0}serialize(){return["within",this.geojson]}}var lf=lc;function el(r){if(r instanceof js&&(r.name==="get"&&r.args.length===1||r.name==="feature-state"||r.name==="has"&&r.args.length===1||r.name==="properties"||r.name==="geometry-type"||r.name==="id"||/^filter-/.test(r.name))||r instanceof lf)return!1;let n=!0;return r.eachChild(o=>{n&&!el(o)&&(n=!1)}),n}function Bu(r){if(r instanceof js&&r.name==="feature-state")return!1;let n=!0;return r.eachChild(o=>{n&&!Bu(o)&&(n=!1)}),n}function cc(r,n){if(r instanceof js&&n.indexOf(r.name)>=0)return!1;let o=!0;return r.eachChild(c=>{o&&!cc(c,n)&&(o=!1)}),o}class Fu{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 Fu(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 cf=Fu;class Qu{constructor(n,o=[],c,d=new F1,p=[]){this.registry=n,this.path=o,this.key=o.map(_=>`[${_}]`).join(""),this.scope=d,this.errors=p,this.expectedType=c}parse(n,o,c,d,p={}){return o?this.concat(o,c,d)._parse(n,p):this._parse(n,p)}_parse(n,o){function c(d,p,_){return _==="assert"?new cs(p,[d]):_==="coerce"?new ca(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=n[0];if(typeof d!="string")return this.error(`Expression name must be a string, but found ${typeof d} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;const p=this.registry[d];if(p){let _=p.parse(n,this);if(!_)return null;if(this.expectedType){const M=this.expectedType,b=_.type;if(M.kind!=="string"&&M.kind!=="number"&&M.kind!=="boolean"&&M.kind!=="object"&&M.kind!=="array"||b.kind!=="value")if(M.kind!=="color"&&M.kind!=="formatted"&&M.kind!=="resolvedImage"||b.kind!=="value"&&b.kind!=="string"){if(this.checkSubtype(M,b))return null}else _=c(_,M,o.typeAnnotation||"coerce");else _=c(_,M,o.typeAnnotation||"assert")}if(!(_ instanceof ic)&&_.type.kind!=="resolvedImage"&&tl(_)){const M=new V1;try{_=new ic(_.type,_.evaluate(M))}catch(b){return this.error(b.message),null}}return _}return this.error(`Unknown expression "${d}". If you wanted a literal array, use ["literal", [...]].`,0)}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 Qu(this.registry,d,o||null,p,this.errors)}error(n,...o){const c=`${this.key}${o.map(d=>`[${d}]`).join("")}`;this.errors.push(new Jr(c,n))}checkSubtype(n,o){const c=ql(n,o);return c&&this.error(c),c}}var ha=Qu;function tl(r){if(r instanceof cf)return tl(r.boundExpression);if(r instanceof js&&r.name==="error"||r instanceof ku||r instanceof lf)return!1;const n=r instanceof ca||r instanceof cs;let o=!0;return r.eachChild(c=>{o=n?o&&tl(c):o&&c instanceof ic}),!!o&&el(r)&&cc(r,["zoom","heatmap-density","line-progress","sky-radial-progress","accumulated","is-supported-script","pitch","distance-from-center"])}function Vu(r,n){const o=r.length-1;let c,d,p=0,_=o,M=0;for(;p<=_;)if(M=Math.floor((p+_)/2),c=r[M],d=r[M+1],c<=n){if(M===o||n<d)return M;p=M+1}else{if(!(c>n))throw new lr("Input is not a number.");_=M-1}return 0}class uc{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,Vt);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 M=_===1?-1/0:n[_],b=n[_+1],I=_,S=_+1;if(typeof M!="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]>=M)return o.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',I);const j=o.parse(b,S,p);if(!j)return null;p=p||j.type,d.push([M,j])}return new uc(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[Vu(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 Yu=uc;function Qn(r,n,o){return r*(1-o)+n*o}var $u=Object.freeze({__proto__:null,number:Qn,color:function(r,n,o){return new ji(Qn(r.r,n.r,o),Qn(r.g,n.g,o),Qn(r.b,n.b,o),Qn(r.a,n.a,o))},array:function(r,n,o){return r.map((c,d)=>Qn(c,n[d],o))}});const uf=.95047,W1=1.08883,hf=4/29,Zu=6/29,q1=3*Zu*Zu,X1=Math.PI/180,mM=180/Math.PI;function Hu(r){return r>.008856451679035631?Math.pow(r,1/3):r/q1+hf}function Gu(r){return r>Zu?r*r*r:q1*(r-hf)}function df(r){return 255*(r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055)}function ff(r){return(r/=255)<=.04045?r/12.92:Math.pow((r+.055)/1.055,2.4)}function K1(r){const n=ff(r.r),o=ff(r.g),c=ff(r.b),d=Hu((.4124564*n+.3575761*o+.1804375*c)/uf),p=Hu((.2126729*n+.7151522*o+.072175*c)/1);return{l:116*p-16,a:500*(d-p),b:200*(p-Hu((.0193339*n+.119192*o+.9503041*c)/W1)),alpha:r.a}}function J1(r){let n=(r.l+16)/116,o=isNaN(r.a)?n:n+r.a/500,c=isNaN(r.b)?n:n-r.b/200;return n=1*Gu(n),o=uf*Gu(o),c=W1*Gu(c),new ji(df(3.2404542*o-1.5371385*n-.4985314*c),df(-.969266*o+1.8760108*n+.041556*c),df(.0556434*o-.2040259*n+1.0572252*c),r.alpha)}function yM(r,n,o){const c=n-r;return r+o*(c>180||c<-180?c-360*Math.round(c/360):c)}const hc={forward:K1,reverse:J1,interpolate:function(r,n,o){return{l:Qn(r.l,n.l,o),a:Qn(r.a,n.a,o),b:Qn(r.b,n.b,o),alpha:Qn(r.alpha,n.alpha,o)}}},nl={forward:function(r){const{l:n,a:o,b:c}=K1(r),d=Math.atan2(c,o)*mM;return{h:d<0?d+360:d,c:Math.sqrt(o*o+c*c),l:n,alpha:r.a}},reverse:function(r){const n=r.h*X1,o=r.c;return J1({l:r.l,a:Math.cos(n)*o,b:Math.sin(n)*o,alpha:r.alpha})},interpolate:function(r,n,o){return{h:yM(r.h,n.h,o),c:Qn(r.c,n.c,o),l:Qn(r.l,n.l,o),alpha:Qn(r.alpha,n.alpha,o)}}};var e0=Object.freeze({__proto__:null,lab:hc,hcl:nl});class Wu{constructor(n,o,c,d,p){this.type=n,this.operator=o,this.interpolation=c,this.input=d,this.labels=[],this.outputs=[];for(const[_,M]of p)this.labels.push(_),this.outputs.push(M)}static interpolationFactor(n,o,c,d){let p=0;if(n.name==="exponential")p=pf(o,n.base,c,d);else if(n.name==="linear")p=pf(o,1,c,d);else if(n.name==="cubic-bezier"){const _=n.controlPoints;p=new G(_[0],_[1],_[2],_[3]).solve(pf(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(S=>typeof S!="number"||S<0||S>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,Vt),!p)return null;const M=[];let b=null;c==="interpolate-hcl"||c==="interpolate-lab"?b=Ao:o.expectedType&&o.expectedType.kind!=="value"&&(b=o.expectedType);for(let I=0;I<_.length;I+=2){const S=_[I],j=_[I+1],k=I+3,B=I+4;if(typeof S!="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(M.length&&M[M.length-1][0]>=S)return o.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',k);const Q=o.parse(j,B,b);if(!Q)return null;b=b||Q.type,M.push([S,Q])}return b.kind==="number"||b.kind==="color"||b.kind==="array"&&b.itemType.kind==="number"&&typeof b.N=="number"?new Wu(b,c,d,p,M):o.error(`Type ${Ti(b)} 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 _=Vu(o,d),M=Wu.interpolationFactor(this.interpolation,d,o[_],o[_+1]),b=c[_].evaluate(n),I=c[_+1].evaluate(n);return this.operator==="interpolate"?$u[this.type.kind.toLowerCase()](b,I,M):this.operator==="interpolate-hcl"?nl.reverse(nl.interpolate(nl.forward(b),nl.forward(I),M)):hc.reverse(hc.interpolate(hc.forward(b),hc.forward(I),M))}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 pf(r,n,o,c){const d=c-o,p=r-o;return d===0?0:n===1?p/d:(Math.pow(n,p)-1)/(Math.pow(n,d)-1)}var Fo=Wu;class qu{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 M of n.slice(1)){const b=o.parse(M,1+p.length,c,void 0,{typeAnnotation:"omit"});if(!b)return null;c=c||b.type,p.push(b)}const _=d&&p.some(M=>ql(d,M.type));return new qu(_?En: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 ho&&!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 gf=qu;class Xu{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 M=o.parse(n[p+1],p+1);if(!M)return null;c.push([_,M])}const d=o.parse(n[n.length-1],n.length-1,o.expectedType,c);return d?new Xu(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 t0=Xu;class mf{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,Vt),d=o.parse(n[2],2,fr(o.expectedType||En));return c&&d?new mf(d.type.itemType,c,d):null}evaluate(n){const o=this.index.evaluate(n),c=this.input.evaluate(n);if(o<0)throw new lr(`Array index out of bounds: ${o} < 0.`);if(o>=c.length)throw new lr(`Array index out of bounds: ${o} > ${c.length-1}.`);if(o!==Math.floor(o))throw new lr(`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 n0=mf;class Ku{constructor(n,o){this.type=zn,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,En),d=o.parse(n[2],2,En);return c&&d?Xl(c.type,[zn,Rn,Vt,jr,En])?new Ku(c,d):o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(c.type)} instead`):null}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(c==null)return!1;if(!Kl(o,["boolean","string","number","null"]))throw new lr(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(Ji(o))} instead.`);if(!Kl(c,["string","array"]))throw new lr(`Expected second argument to be of type array or string, but found ${Ti(Ji(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 i0=Ku;class Ju{constructor(n,o,c){this.type=Vt,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,En),d=o.parse(n[2],2,En);if(!c||!d)return null;if(!Xl(c.type,[zn,Rn,Vt,jr,En]))return o.error(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,Vt);return p?new Ju(c,d,p):null}return new Ju(c,d)}evaluate(n){const o=this.needle.evaluate(n),c=this.haystack.evaluate(n);if(!Kl(o,["boolean","string","number","null"]))throw new lr(`Expected first argument to be of type boolean, string, number or null, but found ${Ti(Ji(o))} instead.`);if(!Kl(c,["string","array"]))throw new lr(`Expected second argument to be of type array or string, but found ${Ti(Ji(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 _M=Ju;class yf{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 S=n[I];const j=n[I+1];Array.isArray(S)||(S=[S]);const k=o.concat(I);if(S.length===0)return k.error("Expected at least one branch label.");for(const Q of S){if(typeof Q!="number"&&typeof Q!="string")return k.error("Branch labels must be numbers or strings.");if(typeof Q=="number"&&Math.abs(Q)>Number.MAX_SAFE_INTEGER)return k.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if(typeof Q=="number"&&Math.floor(Q)!==Q)return k.error("Numeric branch labels must be integer values.");if(c){if(k.checkSubtype(c,Ji(Q)))return null}else c=Ji(Q);if(p[String(Q)]!==void 0)return k.error("Branch labels must be unique.");p[String(Q)]=_.length}const B=o.parse(j,I,d);if(!B)return null;d=d||B.type,_.push(B)}const M=o.parse(n[1],1,En);if(!M)return null;const b=o.parse(n[n.length-1],n.length-1,d);return b?M.type.kind!=="value"&&o.concat(1).checkSubtype(c,M.type)?null:new yf(c,d,M,p,_,b):null}evaluate(n){const o=this.input.evaluate(n);return(Ji(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 M=d[this.cases[_]];M===void 0?(d[this.cases[_]]=c.length,c.push([this.cases[_],[_]])):c[M][1].push(_)}const p=_=>this.inputType.kind==="number"?Number(_):_;for(const[_,M]of c)n.push(M.length===1?p(M[0]):M.map(p)),n.push(this.outputs[_].serialize());return n.push(this.otherwise.serialize()),n}}var vM=yf;class il{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 M=o.parse(n[_],_,zn);if(!M)return null;const b=o.parse(n[_+1],_+1,c);if(!b)return null;d.push([M,b]),c=c||b.type}const p=o.parse(n[n.length-1],n.length-1,c);return p?new il(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 r0=il;class dc{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,En),d=o.parse(n[2],2,Vt);if(!c||!d)return null;if(!Xl(c.type,[fr(En),Rn,En]))return o.error(`Expected first argument to be of type array or string, but found ${Ti(c.type)} instead`);if(n.length===4){const p=o.parse(n[3],3,Vt);return p?new dc(c.type,c,d,p):null}return new dc(c.type,c,d)}evaluate(n){const o=this.input.evaluate(n),c=this.beginIndex.evaluate(n);if(!Kl(o,["string","array"]))throw new lr(`Expected first argument to be of type array or string, but found ${Ti(Ji(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 xM=dc;function o0(r,n){return r==="=="||r==="!="?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 s0(r,n,o,c){return c.compare(n,o)===0}function da(r,n,o){const c=r!=="=="&&r!=="!=";return class VE{constructor(p,_,M){this.type=zn,this.lhs=p,this.rhs=_,this.collator=M,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 M=p[0];let b=_.parse(p[1],1,En);if(!b)return null;if(!o0(M,b.type))return _.concat(1).error(`"${M}" comparisons are not supported for type '${Ti(b.type)}'.`);let I=_.parse(p[2],2,En);if(!I)return null;if(!o0(M,I.type))return _.concat(2).error(`"${M}" comparisons are not supported for type '${Ti(I.type)}'.`);if(b.type.kind!==I.type.kind&&b.type.kind!=="value"&&I.type.kind!=="value")return _.error(`Cannot compare types '${Ti(b.type)}' and '${Ti(I.type)}'.`);c&&(b.type.kind==="value"&&I.type.kind!=="value"?b=new cs(I.type,[b]):b.type.kind!=="value"&&I.type.kind==="value"&&(I=new cs(b.type,[I])));let S=null;if(p.length===4){if(b.type.kind!=="string"&&I.type.kind!=="string"&&b.type.kind!=="value"&&I.type.kind!=="value")return _.error("Cannot use collator to compare non-string types.");if(S=_.parse(p[3],3,Wl),!S)return null}return new VE(b,I,S)}evaluate(p){const _=this.lhs.evaluate(p),M=this.rhs.evaluate(p);if(c&&this.hasUntypedArgument){const b=Ji(_),I=Ji(M);if(b.kind!==I.kind||b.kind!=="string"&&b.kind!=="number")throw new lr(`Expected arguments for "${r}" to be (string, string) or (number, number), but found (${b.kind}, ${I.kind}) instead.`)}if(this.collator&&!c&&this.hasUntypedArgument){const b=Ji(_),I=Ji(M);if(b.kind!=="string"||I.kind!=="string")return n(p,_,M)}return this.collator?o(p,_,M,this.collator.evaluate(p)):n(p,_,M)}eachChild(p){p(this.lhs),p(this.rhs),this.collator&&p(this.collator)}outputDefined(){return!0}serialize(){const p=[r];return this.eachChild(_=>{p.push(_.serialize())}),p}}}const a0=da("==",function(r,n,o){return n===o},s0),l0=da("!=",function(r,n,o){return n!==o},function(r,n,o,c){return!s0(0,n,o,c)}),_f=da("<",function(r,n,o){return n<o},function(r,n,o,c){return c.compare(n,o)<0}),MM=da(">",function(r,n,o){return n>o},function(r,n,o,c){return c.compare(n,o)>0}),wM=da("<=",function(r,n,o){return n<=o},function(r,n,o,c){return c.compare(n,o)<=0}),bM=da(">=",function(r,n,o){return n>=o},function(r,n,o,c){return c.compare(n,o)>=0});class vf{constructor(n,o,c,d,p,_){this.type=Rn,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,Vt);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,Rn),!p))return null;let _=null;if(d.currency&&(_=o.parse(d.currency,1,Rn),!_))return null;let M=null;if(d.unit&&(M=o.parse(d.unit,1,Rn),!M))return null;let b=null;if(d["min-fraction-digits"]&&(b=o.parse(d["min-fraction-digits"],1,Vt),!b))return null;let I=null;return d["max-fraction-digits"]&&(I=o.parse(d["max-fraction-digits"],1,Vt),!I)?null:new vf(c,p,_,M,b,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 xf{constructor(n){this.type=Vt,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 ${Ti(c.type)} instead.`):new xf(c):null}evaluate(n){const o=this.input.evaluate(n);if(typeof o=="string"||Array.isArray(o))return o.length;throw new lr(`Expected value to be of type string or array, but found ${Ti(Ji(o))} instead.`)}eachChild(n){n(this.input)}outputDefined(){return!1}serialize(){const n=["length"];return this.eachChild(o=>{n.push(o.serialize())}),n}}const c0={"==":a0,"!=":l0,">":MM,"<":_f,">=":bM,"<=":wM,array:cs,at:n0,boolean:cs,case:r0,coalesce:gf,collator:ku,format:rc,image:Lu,in:i0,"index-of":_M,interpolate:Fo,"interpolate-hcl":Fo,"interpolate-lab":Fo,length:xf,let:t0,literal:ic,match:vM,number:cs,"number-format":vf,object:cs,slice:xM,step:Yu,string:cs,"to-boolean":ca,"to-color":ca,"to-number":ca,"to-string":ca,var:cf,within:lf};function u0(r,[n,o,c,d]){n=n.evaluate(r),o=o.evaluate(r),c=c.evaluate(r);const p=d?d.evaluate(r):1,_=Q1(n,o,c,p);if(_)throw new lr(_);return new ji(n/255*p,o/255*p,c/255*p,p)}function Mf(r,n){return r in n}function eh(r,n){const o=n[r];return o===void 0?null:o}function Qo(r){return{type:r}}js.register(c0,{error:[{kind:"error"},[Rn],(r,[n])=>{throw new lr(n.evaluate(r))}],typeof:[Rn,[En],(r,[n])=>Ti(Ji(n.evaluate(r)))],"to-rgba":[fr(Vt,4),[Ao],(r,[n])=>n.evaluate(r).toArray()],rgb:[Ao,[Vt,Vt,Vt],u0],rgba:[Ao,[Vt,Vt,Vt,Vt],u0],has:{type:zn,overloads:[[[Rn],(r,[n])=>Mf(n.evaluate(r),r.properties())],[[Rn,la],(r,[n,o])=>Mf(n.evaluate(r),o.evaluate(r))]]},get:{type:En,overloads:[[[Rn],(r,[n])=>eh(n.evaluate(r),r.properties())],[[Rn,la],(r,[n,o])=>eh(n.evaluate(r),o.evaluate(r))]]},"feature-state":[En,[Rn],(r,[n])=>eh(n.evaluate(r),r.featureState||{})],properties:[la,[],r=>r.properties()],"geometry-type":[Rn,[],r=>r.geometryType()],id:[En,[],r=>r.id()],zoom:[Vt,[],r=>r.globals.zoom],pitch:[Vt,[],r=>r.globals.pitch||0],"distance-from-center":[Vt,[],r=>r.distanceFromCenter()],"heatmap-density":[Vt,[],r=>r.globals.heatmapDensity||0],"line-progress":[Vt,[],r=>r.globals.lineProgress||0],"sky-radial-progress":[Vt,[],r=>r.globals.skyRadialProgress||0],accumulated:[En,[],r=>r.globals.accumulated===void 0?null:r.globals.accumulated],"+":[Vt,Qo(Vt),(r,n)=>{let o=0;for(const c of n)o+=c.evaluate(r);return o}],"*":[Vt,Qo(Vt),(r,n)=>{let o=1;for(const c of n)o*=c.evaluate(r);return o}],"-":{type:Vt,overloads:[[[Vt,Vt],(r,[n,o])=>n.evaluate(r)-o.evaluate(r)],[[Vt],(r,[n])=>-n.evaluate(r)]]},"/":[Vt,[Vt,Vt],(r,[n,o])=>n.evaluate(r)/o.evaluate(r)],"%":[Vt,[Vt,Vt],(r,[n,o])=>n.evaluate(r)%o.evaluate(r)],ln2:[Vt,[],()=>Math.LN2],pi:[Vt,[],()=>Math.PI],e:[Vt,[],()=>Math.E],"^":[Vt,[Vt,Vt],(r,[n,o])=>Math.pow(n.evaluate(r),o.evaluate(r))],sqrt:[Vt,[Vt],(r,[n])=>Math.sqrt(n.evaluate(r))],log10:[Vt,[Vt],(r,[n])=>Math.log(n.evaluate(r))/Math.LN10],ln:[Vt,[Vt],(r,[n])=>Math.log(n.evaluate(r))],log2:[Vt,[Vt],(r,[n])=>Math.log(n.evaluate(r))/Math.LN2],sin:[Vt,[Vt],(r,[n])=>Math.sin(n.evaluate(r))],cos:[Vt,[Vt],(r,[n])=>Math.cos(n.evaluate(r))],tan:[Vt,[Vt],(r,[n])=>Math.tan(n.evaluate(r))],asin:[Vt,[Vt],(r,[n])=>Math.asin(n.evaluate(r))],acos:[Vt,[Vt],(r,[n])=>Math.acos(n.evaluate(r))],atan:[Vt,[Vt],(r,[n])=>Math.atan(n.evaluate(r))],min:[Vt,Qo(Vt),(r,n)=>Math.min(...n.map(o=>o.evaluate(r)))],max:[Vt,Qo(Vt),(r,n)=>Math.max(...n.map(o=>o.evaluate(r)))],abs:[Vt,[Vt],(r,[n])=>Math.abs(n.evaluate(r))],round:[Vt,[Vt],(r,[n])=>{const o=n.evaluate(r);return o<0?-Math.round(-o):Math.round(o)}],floor:[Vt,[Vt],(r,[n])=>Math.floor(n.evaluate(r))],ceil:[Vt,[Vt],(r,[n])=>Math.ceil(n.evaluate(r))],"filter-==":[zn,[Rn,En],(r,[n,o])=>r.properties()[n.value]===o.value],"filter-id-==":[zn,[En],(r,[n])=>r.id()===n.value],"filter-type-==":[zn,[Rn],(r,[n])=>r.geometryType()===n.value],"filter-<":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c<d}],"filter-id-<":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o<c}],"filter->":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c>d}],"filter-id->":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o>c}],"filter-<=":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c<=d}],"filter-id-<=":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o<=c}],"filter->=":[zn,[Rn,En],(r,[n,o])=>{const c=r.properties()[n.value],d=o.value;return typeof c==typeof d&&c>=d}],"filter-id->=":[zn,[En],(r,[n])=>{const o=r.id(),c=n.value;return typeof o==typeof c&&o>=c}],"filter-has":[zn,[En],(r,[n])=>n.value in r.properties()],"filter-has-id":[zn,[],r=>r.id()!==null&&r.id()!==void 0],"filter-type-in":[zn,[fr(Rn)],(r,[n])=>n.value.indexOf(r.geometryType())>=0],"filter-id-in":[zn,[fr(En)],(r,[n])=>n.value.indexOf(r.id())>=0],"filter-in-small":[zn,[Rn,fr(En)],(r,[n,o])=>o.value.indexOf(r.properties()[n.value])>=0],"filter-in-large":[zn,[Rn,fr(En)],(r,[n,o])=>function(c,d,p,_){for(;p<=_;){const M=p+_>>1;if(d[M]===c)return!0;d[M]>c?_=M-1:p=M+1}return!1}(r.properties()[n.value],o.value,0,o.value.length-1)],all:{type:zn,overloads:[[[zn,zn],(r,[n,o])=>n.evaluate(r)&&o.evaluate(r)],[Qo(zn),(r,n)=>{for(const o of n)if(!o.evaluate(r))return!1;return!0}]]},any:{type:zn,overloads:[[[zn,zn],(r,[n,o])=>n.evaluate(r)||o.evaluate(r)],[Qo(zn),(r,n)=>{for(const o of n)if(o.evaluate(r))return!0;return!1}]]},"!":[zn,[zn],(r,[n])=>!n.evaluate(r)],"is-supported-script":[zn,[Rn],(r,[n])=>{const o=r.globals&&r.globals.isSupportedScript;return!o||o(n.evaluate(r))}],upcase:[Rn,[Rn],(r,[n])=>n.evaluate(r).toUpperCase()],downcase:[Rn,[Rn],(r,[n])=>n.evaluate(r).toLowerCase()],concat:[Rn,Qo(En),(r,n)=>n.map(o=>nc(o.evaluate(r))).join("")],"resolved-locale":[Rn,[Wl],(r,[n])=>n.evaluate(r).resolvedLocale()]});var fc=c0;function h0(r){return{result:"success",value:r}}function eo(r){return{result:"error",value:r}}function fa(r){return r["property-type"]==="data-driven"}function pa(r){return!!r.expression&&r.expression.parameters.indexOf("zoom")>-1}function wf(r){return!!r.expression&&r.expression.interpolated}function Xn(r){return r instanceof Number?"number":r instanceof String?"string":r instanceof Boolean?"boolean":Array.isArray(r)?"array":r===null?"null":typeof r}function pc(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)}function IM(r){return r}function th(r,n){const o=n.type==="color",c=r.stops&&typeof r.stops[0][0]=="object",d=c||!(c||r.property!==void 0),p=r.type||(wf(n)?"exponential":"interval");if(o&&((r=as({},r)).stops&&(r.stops=r.stops.map(I=>[I[0],ji.parse(I[1])])),r.default=ji.parse(r.default?r.default:n.default)),r.colorSpace&&r.colorSpace!=="rgb"&&!e0[r.colorSpace])throw new Error(`Unknown color space: ${r.colorSpace}`);let _,M,b;if(p==="exponential")_=If;else if(p==="interval")_=d0;else if(p==="categorical"){_=bf,M=Object.create(null);for(const I of r.stops)M[I[0]]=I[1];b=typeof r.stops[0][0]}else{if(p!=="identity")throw new Error(`Unknown function type "${p}"`);_=Df}if(c){const I={},S=[];for(let B=0;B<r.stops.length;B++){const Q=r.stops[B],W=Q[0].zoom;I[W]===void 0&&(I[W]={zoom:W,type:r.type,property:r.property,default:r.default,stops:[]},S.push(W)),I[W].stops.push([Q[0].value,Q[1]])}const j=[];for(const B of S)j.push([I[B].zoom,th(I[B],n)]);const k={name:"linear"};return{kind:"composite",interpolationType:k,interpolationFactor:Fo.interpolationFactor.bind(void 0,k),zoomStops:j.map(B=>B[0]),evaluate:({zoom:B},Q)=>If({stops:j,base:r.base},n,B).evaluate(B,Q)}}if(d){const I=p==="exponential"?{name:"exponential",base:r.base!==void 0?r.base:1}:null;return{kind:"camera",interpolationType:I,interpolationFactor:Fo.interpolationFactor.bind(void 0,I),zoomStops:r.stops.map(S=>S[0]),evaluate:({zoom:S})=>_(r,n,S,M,b)}}return{kind:"source",evaluate(I,S){const j=S&&S.properties?S.properties[r.property]:void 0;return j===void 0?rl(r.default,n.default):_(r,n,j,M,b)}}}function rl(r,n,o){return r!==void 0?r:n!==void 0?n:o!==void 0?o:void 0}function bf(r,n,o,c,d){return rl(typeof o===d?c[o]:void 0,r.default,n.default)}function d0(r,n,o){if(Xn(o)!=="number")return rl(r.default,n.default);const c=r.stops.length;if(c===1||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[c-1][0])return r.stops[c-1][1];const d=Vu(r.stops.map(p=>p[0]),o);return r.stops[d][1]}function If(r,n,o){const c=r.base!==void 0?r.base:1;if(Xn(o)!=="number")return rl(r.default,n.default);const d=r.stops.length;if(d===1||o<=r.stops[0][0])return r.stops[0][1];if(o>=r.stops[d-1][0])return r.stops[d-1][1];const p=Vu(r.stops.map(S=>S[0]),o),_=function(S,j,k,B){const Q=B-k,W=S-k;return Q===0?0:j===1?W/Q:(Math.pow(j,W)-1)/(Math.pow(j,Q)-1)}(o,c,r.stops[p][0],r.stops[p+1][0]),M=r.stops[p][1],b=r.stops[p+1][1];let I=$u[n.type]||IM;if(r.colorSpace&&r.colorSpace!=="rgb"){const S=e0[r.colorSpace];I=(j,k)=>S.reverse(S.interpolate(S.forward(j),S.forward(k),_))}return typeof M.evaluate=="function"?{evaluate(...S){const j=M.evaluate.apply(void 0,S),k=b.evaluate.apply(void 0,S);if(j!==void 0&&k!==void 0)return I(j,k,_)}}:I(M,b,_)}function Df(r,n,o){return n.type==="color"?o=ji.parse(o):n.type==="formatted"?o=pr.fromString(o.toString()):n.type==="resolvedImage"?o=ho.fromString(o.toString()):Xn(o)===n.type||n.type==="enum"&&n.values[o]||(o=void 0),rl(o,r.default,n.default)}class nh{constructor(n,o){this.expression=n,this._warningHistory={},this._evaluator=new V1,this._defaultValue=o?function(c){return c.type==="color"&&(pc(c.default)||Array.isArray(c.default))?new ji(0,0,0,0):c.type==="color"?ji.parse(c.default)||null:c.default===void 0?null:c.default}(o):null,this._enumValues=o&&o.type==="enum"?o.values:null}evaluateWithoutErrorHandling(n,o,c,d,p,_,M,b){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=M||null,this._evaluator.featureDistanceData=b||null,this.expression.evaluate(this._evaluator)}evaluate(n,o,c,d,p,_,M,b){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=M||null,this._evaluator.featureDistanceData=b||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 lr(`Expected value to be one of ${Object.keys(this._enumValues).map(S=>JSON.stringify(S)).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 gc(r){return Array.isArray(r)&&r.length>0&&typeof r[0]=="string"&&r[0]in fc}function Ls(r,n){const o=new ha(fc,[],n?function(d){const p={color:Ao,string:Rn,number:Vt,enum:Rn,boolean:zn,formatted:Xa,resolvedImage:Ss};return d.type==="array"?fr(p[d.value]||En,d.length):p[d.type]}(n):void 0),c=o.parse(r,void 0,void 0,void 0,n&&n.type==="string"?{typeAnnotation:"coerce"}:void 0);return c?h0(new nh(c,n)):eo(o.errors)}class Os{constructor(n,o){this.kind=n,this._styleExpression=o,this.isStateDependent=n!=="constant"&&!Bu(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 ih{constructor(n,o,c,d){this.kind=n,this.zoomStops=c,this._styleExpression=o,this.isStateDependent=n!=="camera"&&!Bu(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?Fo.interpolationFactor(this.interpolationType,n,o,c):0}}function Tf(r,n){if((r=Ls(r,n)).result==="error")return r;const o=r.value.expression,c=el(o);if(!c&&!fa(n))return eo([new Jr("","data expressions not supported")]);const d=cc(o,["zoom","pitch","distance-from-center"]);if(!d&&!pa(n))return eo([new Jr("","zoom expressions not supported")]);const p=mc(o);return p||d?p instanceof Jr?eo([p]):p instanceof Fo&&!wf(n)?eo([new Jr("",'"interpolate" expressions cannot be used with this property')]):h0(p?new ih(c?"camera":"composite",r.value,p.labels,p instanceof Fo?p.interpolation:void 0):new Os(c?"constant":"source",r.value)):eo([new Jr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class ol{constructor(n,o){this._parameters=n,this._specification=o,as(this,th(this._parameters,this._specification))}static deserialize(n){return new ol(n._parameters,n._specification)}static serialize(n){return{_parameters:n._parameters,_specification:n._specification}}}function mc(r){let n=null;if(r instanceof t0)n=mc(r.result);else if(r instanceof gf){for(const o of r.args)if(n=mc(o),n)break}else(r instanceof Yu||r instanceof Fo)&&r.input instanceof js&&r.input.name==="zoom"&&(n=r);return n instanceof Jr||r.eachChild(o=>{const c=mc(o);c instanceof Jr?n=c:!n&&c?n=new Jr("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):n&&c&&n!==c&&(n=new Jr("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),n}class Yt{constructor(n,o,c,d){this.message=(n?`${n}: `:"")+c,d&&(this.identifier=d),o!=null&&o.__line__&&(this.line=o.__line__)}}function fo(r){const n=r.key,o=r.value,c=r.valueSpec||{},d=r.objectElementValidators||{},p=r.style,_=r.styleSpec;let M=[];const b=Xn(o);if(b!=="object")return[new Yt(n,o,`object expected, ${b} found`)];for(const I in o){const S=I.split(".")[0],j=c[S]||c["*"];let k;d[S]?k=d[S]:c[S]?k=Dr:d["*"]?k=d["*"]:c["*"]&&(k=Dr),k?M=M.concat(k({key:(n&&`${n}.`)+I,value:o[I],valueSpec:j,style:p,styleSpec:_,object:o,objectKey:I},o)):M.push(new Yt(n,o[I],`unknown property "${I}"`))}for(const I in c)d[I]||c[I].required&&c[I].default===void 0&&o[I]===void 0&&M.push(new Yt(n,o,`missing required property "${I}"`));return M}function yc(r){const n=r.value,o=r.valueSpec,c=r.style,d=r.styleSpec,p=r.key,_=r.arrayElementValidator||Dr;if(Xn(n)!=="array")return[new Yt(p,n,`array expected, ${Xn(n)} found`)];if(o.length&&n.length!==o.length)return[new Yt(p,n,`array length ${o.length} expected, length ${n.length} found`)];if(o["min-length"]&&n.length<o["min-length"])return[new Yt(p,n,`array length at least ${o["min-length"]} expected, length ${n.length} found`)];let M={type:o.value,values:o.values,minimum:o.minimum,maximum:o.maximum,function:void 0};d.$version<7&&(M.function=o.function),Xn(o.value)==="object"&&(M=o.value);let b=[];for(let I=0;I<n.length;I++)b=b.concat(_({array:n,arrayIndex:I,value:n[I],valueSpec:M,style:c,styleSpec:d,key:`${p}[${I}]`}));return b}function f0(r){const n=r.key,o=r.value,c=r.valueSpec;let d=Xn(o);if(d==="number"&&o!=o&&(d="NaN"),d!=="number")return[new Yt(n,o,`number expected, ${d} found`)];if("minimum"in c){let p=c.minimum;if(Xn(c.minimum)==="array"&&(p=c.minimum[r.arrayIndex]),o<p)return[new Yt(n,o,`${o} is less than the minimum value ${p}`)]}if("maximum"in c){let p=c.maximum;if(Xn(c.maximum)==="array"&&(p=c.maximum[r.arrayIndex]),o>p)return[new Yt(n,o,`${o} is greater than the maximum value ${p}`)]}return[]}function p0(r){const n=r.valueSpec,o=Ki(r.value.type);let c,d,p,_={};const M=o!=="categorical"&&r.value.property===void 0,b=!M,I=Xn(r.value.stops)==="array"&&Xn(r.value.stops[0])==="array"&&Xn(r.value.stops[0][0])==="object",S=fo({key:r.key,value:r.value,valueSpec:r.styleSpec.function,style:r.style,styleSpec:r.styleSpec,objectElementValidators:{stops:function(B){if(o==="identity")return[new Yt(B.key,B.value,'identity function may not have a "stops" property')];let Q=[];const W=B.value;return Q=Q.concat(yc({key:B.key,value:W,valueSpec:B.valueSpec,style:B.style,styleSpec:B.styleSpec,arrayElementValidator:j})),Xn(W)==="array"&&W.length===0&&Q.push(new Yt(B.key,W,"array must have at least one stop")),Q},default:function(B){return Dr({key:B.key,value:B.value,valueSpec:n,style:B.style,styleSpec:B.styleSpec})}}});return o==="identity"&&M&&S.push(new Yt(r.key,r.value,'missing required property "property"')),o==="identity"||r.value.stops||S.push(new Yt(r.key,r.value,'missing required property "stops"')),o==="exponential"&&r.valueSpec.expression&&!wf(r.valueSpec)&&S.push(new Yt(r.key,r.value,"exponential functions not supported")),r.styleSpec.$version>=8&&(b&&!fa(r.valueSpec)?S.push(new Yt(r.key,r.value,"property functions not supported")):M&&!pa(r.valueSpec)&&S.push(new Yt(r.key,r.value,"zoom functions not supported"))),o!=="categorical"&&!I||r.value.property!==void 0||S.push(new Yt(r.key,r.value,'"property" property is required')),S;function j(B){let Q=[];const W=B.value,re=B.key;if(Xn(W)!=="array")return[new Yt(re,W,`array expected, ${Xn(W)} found`)];if(W.length!==2)return[new Yt(re,W,`array length 2 expected, length ${W.length} found`)];if(I){if(Xn(W[0])!=="object")return[new Yt(re,W,`object expected, ${Xn(W[0])} found`)];if(W[0].zoom===void 0)return[new Yt(re,W,"object stop key must have zoom")];if(W[0].value===void 0)return[new Yt(re,W,"object stop key must have value")];const ve=Ki(W[0].zoom);if(typeof ve!="number")return[new Yt(re,W[0].zoom,"stop zoom values must be numbers")];if(p&&p>ve)return[new Yt(re,W[0].zoom,"stop zoom values must appear in ascending order")];ve!==p&&(p=ve,d=void 0,_={}),Q=Q.concat(fo({key:`${re}[0]`,value:W[0],valueSpec:{zoom:{}},style:B.style,styleSpec:B.styleSpec,objectElementValidators:{zoom:f0,value:k}}))}else Q=Q.concat(k({key:`${re}[0]`,value:W[0],valueSpec:{},style:B.style,styleSpec:B.styleSpec},W));return gc(ls(W[1]))?Q.concat([new Yt(`${re}[1]`,W[1],"expressions are not allowed in function stops.")]):Q.concat(Dr({key:`${re}[1]`,value:W[1],valueSpec:n,style:B.style,styleSpec:B.styleSpec}))}function k(B,Q){const W=Xn(B.value),re=Ki(B.value),ve=B.value!==null?B.value:Q;if(c){if(W!==c)return[new Yt(B.key,ve,`${W} stop domain type must match previous stop domain type ${c}`)]}else c=W;if(W!=="number"&&W!=="string"&&W!=="boolean"&&typeof re!="number"&&typeof re!="string"&&typeof re!="boolean")return[new Yt(B.key,ve,"stop domain value must be a number, string, or boolean")];if(W!=="number"&&o!=="categorical"){let Ee=`number expected, ${W} found`;return fa(n)&&o===void 0&&(Ee+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new Yt(B.key,ve,Ee)]}return o!=="categorical"||W!=="number"||typeof re=="number"&&isFinite(re)&&Math.floor(re)===re?o!=="categorical"&&W==="number"&&typeof re=="number"&&typeof d=="number"&&d!==void 0&&re<d?[new Yt(B.key,ve,"stop domain values must appear in ascending order")]:(d=re,o==="categorical"&&re in _?[new Yt(B.key,ve,"stop domain values must be unique")]:(_[re]=!0,[])):[new Yt(B.key,ve,`integer expected, found ${String(re)}`)]}}function sl(r){const n=(r.expressionContext==="property"?Tf:Ls)(ls(r.value),r.valueSpec);if(n.result==="error")return n.value.map(c=>new Yt(`${r.key}${c.key}`,r.value,c.message));const o=n.value.expression||n.value._styleExpression.expression;if(r.expressionContext==="property"&&r.propertyKey==="text-font"&&!o.outputDefined())return[new Yt(r.key,r.value,`Invalid data expression for "${r.propertyKey}". Output values must be contained as literals within the expression.`)];if(r.expressionContext==="property"&&r.propertyType==="layout"&&!Bu(o))return[new Yt(r.key,r.value,'"feature-state" data expressions are not supported with layout properties.')];if(r.expressionContext==="filter")return g0(o,r);if(r.expressionContext&&r.expressionContext.indexOf("cluster")===0){if(!cc(o,["zoom","feature-state"]))return[new Yt(r.key,r.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if(r.expressionContext==="cluster-initial"&&!el(o))return[new Yt(r.key,r.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function g0(r,n){const o=new Set(["zoom","feature-state","pitch","distance-from-center"]);if(n.valueSpec&&n.valueSpec.expression)for(const d of n.valueSpec.expression.parameters)o.delete(d);if(o.size===0)return[];const c=[];return r instanceof js&&o.has(r.name)?[new Yt(n.key,n.value,`["${r.name}"] expression is not supported in a filter for a ${n.object.type} layer with id: ${n.object.id}`)]:(r.eachChild(d=>{c.push(...g0(d,n))}),c)}function rh(r){const n=r.key,o=r.value,c=r.valueSpec,d=[];return Array.isArray(c.values)?c.values.indexOf(Ki(o))===-1&&d.push(new Yt(n,o,`expected one of [${c.values.join(", ")}], ${JSON.stringify(o)} found`)):Object.keys(c.values).indexOf(Ki(o))===-1&&d.push(new Yt(n,o,`expected one of [${Object.keys(c.values).join(", ")}], ${JSON.stringify(o)} found`)),d}function al(r){if(r===!0||r===!1)return!0;if(!Array.isArray(r)||r.length===0)return!1;switch(r[0]){case"has":return r.length>=2&&r[1]!=="$id"&&r[1]!=="$type";case"in":return r.length>=3&&(typeof r[1]!="string"||Array.isArray(r[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return r.length!==3||Array.isArray(r[1])||Array.isArray(r[2]);case"any":case"all":for(const n of r.slice(1))if(!al(n)&&typeof n!="boolean")return!1;return!0;default:return!0}}function ga(r,n="fill"){if(r==null)return{filter:()=>!0,needGeometry:!1,needFeature:!1};al(r)||(r=cl(r));const o=r;let c=!0;try{c=function(I){if(!ll(I))return I;let S=ls(I);return _c(S),S=Qr(S),S}(o)}catch{console.warn(`Failed to extract static filter. Filter will continue working, but at higher memory usage and slower framerate.
44
44
  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
45
45
  and paste the contents of this message in the report.
46
46
  Thank you!