@mapsindoors/map-template 1.91.2 → 1.91.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{GoogleMapsMap-f93f3b36.mjs → GoogleMapsMap-d6b5e6fd.mjs} +2 -2
  2. package/dist/{MapboxMap-88d2bbda.mjs → MapboxMap-dcd10bac.mjs} +2 -2
  3. package/dist/{combo-box-item.entry-5847da22.mjs → combo-box-item.entry-47370477.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +1 -1
  5. package/dist/mapsindoors-react.umd.js +1 -1
  6. package/dist/mapsindoors-webcomponent.es.js +7 -7
  7. package/dist/mapsindoors-webcomponent.umd.js +1 -1
  8. package/dist/{mi-card_2.entry-a87250b0.mjs → mi-card_2.entry-8528e81e.mjs} +2 -2
  9. package/dist/{mi-chip.entry-1156a090.mjs → mi-chip.entry-1f22bf66.mjs} +2 -2
  10. package/dist/{mi-column.entry-7fa868ca.mjs → mi-column.entry-54a3e0f5.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-69a88225.mjs → mi-combo-box.entry-b6346fe5.mjs} +2 -2
  12. package/dist/{mi-data-table.entry-2af9d54d.mjs → mi-data-table.entry-bcafaa68.mjs} +2 -2
  13. package/dist/{mi-distance_2.entry-27271846.mjs → mi-distance_2.entry-2b0e71ab.mjs} +2 -2
  14. package/dist/{mi-dropdown-item.entry-86c3e139.mjs → mi-dropdown-item.entry-3c6a25a4.mjs} +2 -2
  15. package/dist/{mi-dropdown.entry-0154e517.mjs → mi-dropdown.entry-40f99767.mjs} +2 -2
  16. package/dist/{mi-floor-selector.entry-973992c6.mjs → mi-floor-selector.entry-818db2e2.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-240f425f.mjs → mi-keyboard.entry-3d4cd664.mjs} +2 -2
  18. package/dist/{mi-list-item-category.entry-491a5627.mjs → mi-list-item-category.entry-8c5a87f5.mjs} +2 -2
  19. package/dist/{mi-list-item-location.entry-ebbff3d7.mjs → mi-list-item-location.entry-52236f2b.mjs} +2 -2
  20. package/dist/{mi-list.entry-0e96c4b9.mjs → mi-list.entry-da7d4e19.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-2df2caeb.mjs → mi-location-booking.entry-907c5fef.mjs} +2 -2
  22. package/dist/{mi-location-info.entry-1ecca2f5.mjs → mi-location-info.entry-896401c2.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-8b701ca9.mjs → mi-map-googlemaps.entry-6ea32d85.mjs} +2 -2
  24. package/dist/{mi-map-mapbox.entry-3820381e.mjs → mi-map-mapbox.entry-40da0b7d.mjs} +2 -2
  25. package/dist/{mi-metric-card.entry-a3f61886.mjs → mi-metric-card.entry-d3fc884b.mjs} +2 -2
  26. package/dist/{mi-my-position.entry-180449cf.mjs → mi-my-position.entry-a681486b.mjs} +2 -2
  27. package/dist/{mi-notification.entry-30a563e1.mjs → mi-notification.entry-b8709703.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-30a87fcf.mjs → mi-route-instructions-heading.entry-d69bf7b9.mjs} +2 -2
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-cea5cf3e.mjs → mi-route-instructions-maneuver-legacy.entry-2129deb7.mjs} +2 -2
  30. package/dist/{mi-route-instructions-maneuver.entry-a7f66ea4.mjs → mi-route-instructions-maneuver.entry-57c412b0.mjs} +2 -2
  31. package/dist/{mi-route-instructions-step-legacy.entry-d3f73e57.mjs → mi-route-instructions-step-legacy.entry-83c57e76.mjs} +2 -2
  32. package/dist/{mi-route-instructions-step.entry-0bb73899.mjs → mi-route-instructions-step.entry-97e40dcd.mjs} +2 -2
  33. package/dist/{mi-route-instructions.entry-14347377.mjs → mi-route-instructions.entry-b737e7a4.mjs} +2 -2
  34. package/dist/{mi-scroll-buttons.entry-cc2607b1.mjs → mi-scroll-buttons.entry-30df17b4.mjs} +2 -2
  35. package/dist/{mi-search.entry-f60178c2.mjs → mi-search.entry-1ae7c1b2.mjs} +2 -2
  36. package/dist/{mi-share-sms.entry-d5ea07d5.mjs → mi-share-sms.entry-ae6eafd5.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-87b4e63a.mjs → mi-step-switcher.entry-e02d33f6.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-618865e5.mjs → mi-tab-panel.entry-5ef45003.mjs} +2 -2
  39. package/dist/{mi-tab.entry-3769513e.mjs → mi-tab.entry-e13a0cb9.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-4eb94ca7.mjs → mi-tabs.entry-2e550708.mjs} +2 -2
  41. package/dist/{mi-time.entry-5ac4eb99.mjs → mi-time.entry-32fdcd75.mjs} +2 -2
  42. package/dist/{reactcomponent-e02cfc96.mjs → reactcomponent-591cbab2.mjs} +496 -496
  43. package/package.json +1 -1
@@ -40,7 +40,7 @@
40
40
  Error generating stack: `+f.message+`
41
41
  `+f.stack}return{value:e,source:t,stack:h,digest:null}}function kM(e,t,i){return{value:e,source:null,stack:i??null,digest:t??null}}function OM(e,t){try{console.error(t.value)}catch(i){setTimeout(function(){throw i})}}var zV=typeof WeakMap=="function"?WeakMap:Map;function WE(e,t,i){i=jc(-1,i),i.tag=3,i.payload={element:null};var l=t.value;return i.callback=function(){V_||(V_=!0,qM=l),OM(e,t)},i}function qE(e,t,i){i=jc(-1,i),i.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var h=t.value;i.payload=function(){return l(h)},i.callback=function(){OM(e,t)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(i.callback=function(){OM(e,t),typeof l!="function"&&(Pu===null?Pu=new Set([this]):Pu.add(this));var _=t.stack;this.componentDidCatch(t.value,{componentStack:_!==null?_:""})}),i}function KE(e,t,i){var l=e.pingCache;if(l===null){l=e.pingCache=new zV;var h=new Set;l.set(t,h)}else h=l.get(t),h===void 0&&(h=new Set,l.set(t,h));h.has(i)||(h.add(i),e=GV.bind(null,e,t,i),t.then(e,e))}function XE(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function JE(e,t,i,l,h){return e.mode&1?(e.flags|=65536,e.lanes=h,e):(e===t?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(t=jc(-1,1),t.tag=2,Ou(i,t,1))),i.lanes|=1),e)}var kV=Ec.ReactCurrentOwner,sa=!1;function Vs(e,t,i,l){t.child=e===null?SE(t,null,i,l):zf(t,e.child,i,l)}function e6(e,t,i,l,h){i=i.render;var f=t.ref;return Lf(t,h),l=DM(e,t,i,l,f,h),i=AM(),e!==null&&!sa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~h,Pc(e,t,h)):(_o&&i&&cM(t),t.flags|=1,Vs(e,t,l,h),t.child)}function t6(e,t,i,l,h){if(e===null){var f=i.type;return typeof f=="function"&&!i4(f)&&f.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(t.tag=15,t.type=f,n6(e,t,f,l,h)):(e=Z_(i.type,null,l,t,t.mode,h),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!(e.lanes&h)){var _=f.memoizedProps;if(i=i.compare,i=i!==null?i:Am,i(_,l)&&e.ref===t.ref)return Pc(e,t,h)}return t.flags|=1,e=Uu(f,l),e.ref=t.ref,e.return=t,t.child=e}function n6(e,t,i,l,h){if(e!==null){var f=e.memoizedProps;if(Am(f,l)&&e.ref===t.ref)if(sa=!1,t.pendingProps=l=f,(e.lanes&h)!==0)e.flags&131072&&(sa=!0);else return t.lanes=e.lanes,Pc(e,t,h)}return jM(e,t,i,l,h)}function i6(e,t,i){var l=t.pendingProps,h=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},oo(Pf,Ma),Ma|=i;else{if(!(i&1073741824))return e=f!==null?f.baseLanes|i:i,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,oo(Pf,Ma),Ma|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:i,oo(Pf,Ma),Ma|=l}else f!==null?(l=f.baseLanes|i,t.memoizedState=null):l=i,oo(Pf,Ma),Ma|=l;return Vs(e,t,h,i),t.child}function r6(e,t){var i=t.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(t.flags|=512,t.flags|=2097152)}function jM(e,t,i,l,h){var f=oa(i)?$h:Ss.current;return f=Cf(t,f),Lf(t,h),i=DM(e,t,i,l,f,h),l=AM(),e!==null&&!sa?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~h,Pc(e,t,h)):(_o&&l&&cM(t),t.flags|=1,Vs(e,t,i,h),t.child)}function o6(e,t,i,l,h){if(oa(i)){var f=!0;v_(t)}else f=!1;if(Lf(t,h),t.stateNode===null)P_(e,t),bE(t,i,l),wM(t,i,l,h),l=!0;else if(e===null){var _=t.stateNode,o=t.memoizedProps;_.props=o;var I=_.context,D=i.contextType;typeof D=="object"&&D!==null?D=Qa(D):(D=oa(i)?$h:Ss.current,D=Cf(t,D));var O=i.getDerivedStateFromProps,P=typeof O=="function"||typeof _.getSnapshotBeforeUpdate=="function";P||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(o!==l||I!==D)&&ME(t,_,l,D),ku=!1;var F=t.memoizedState;_.state=F,C_(t,l,_,h),I=t.memoizedState,o!==l||F!==I||ra.current||ku?(typeof O=="function"&&(xM(t,i,O,l),I=t.memoizedState),(o=ku||wE(t,i,o,l,F,I,D))?(P||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(t.flags|=4194308)):(typeof _.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=I),_.props=l,_.state=I,_.context=D,l=o):(typeof _.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{_=t.stateNode,yE(e,t),o=t.memoizedProps,D=t.type===t.elementType?o:pl(t.type,o),_.props=D,P=t.pendingProps,F=_.context,I=i.contextType,typeof I=="object"&&I!==null?I=Qa(I):(I=oa(i)?$h:Ss.current,I=Cf(t,I));var Q=i.getDerivedStateFromProps;(O=typeof Q=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(o!==P||F!==I)&&ME(t,_,l,I),ku=!1,F=t.memoizedState,_.state=F,C_(t,l,_,h);var J=t.memoizedState;o!==P||F!==J||ra.current||ku?(typeof Q=="function"&&(xM(t,i,Q,l),J=t.memoizedState),(D=ku||wE(t,i,D,l,F,J,I)||!1)?(O||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(l,J,I),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(l,J,I)),typeof _.componentDidUpdate=="function"&&(t.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof _.componentDidUpdate!="function"||o===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=J),_.props=l,_.state=J,_.context=I,l=D):(typeof _.componentDidUpdate!="function"||o===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),l=!1)}return PM(e,t,i,l,f,h)}function PM(e,t,i,l,h,f){r6(e,t);var _=(t.flags&128)!==0;if(!l&&!_)return h&&cE(t,i,!1),Pc(e,t,f);l=t.stateNode,kV.current=t;var o=_&&typeof i.getDerivedStateFromError!="function"?null:l.render();return t.flags|=1,e!==null&&_?(t.child=zf(t,e.child,null,f),t.child=zf(t,null,o,f)):Vs(e,t,o,f),t.memoizedState=l.state,h&&cE(t,i,!0),t.child}function s6(e){var t=e.stateNode;t.pendingContext?aE(e,t.pendingContext,t.pendingContext!==t.context):t.context&&aE(e,t.context,!1),bM(e,t.containerInfo)}function a6(e,t,i,l,h){return Ef(),fM(h),t.flags|=256,Vs(e,t,i,l),t.child}var RM={dehydrated:null,treeContext:null,retryLane:0};function FM(e){return{baseLanes:e,cachePool:null,transitions:null}}function l6(e,t,i){var l=t.pendingProps,h=To.current,f=!1,_=(t.flags&128)!==0,o;if((o=_)||(o=e!==null&&e.memoizedState===null?!1:(h&2)!==0),o?(f=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(h|=1),oo(To,h&1),e===null)return dM(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(_=l.children,e=l.fallback,f?(l=t.mode,f=t.child,_={mode:"hidden",children:_},!(l&1)&&f!==null?(f.childLanes=0,f.pendingProps=_):f=W_(_,l,0,null),e=td(e,l,i,null),f.return=t,e.return=t,f.sibling=e,t.child=f,t.child.memoizedState=FM(i),t.memoizedState=RM,e):BM(t,_));if(h=e.memoizedState,h!==null&&(o=h.dehydrated,o!==null))return OV(e,t,_,l,o,h,i);if(f){f=l.fallback,_=t.mode,h=e.child,o=h.sibling;var I={mode:"hidden",children:l.children};return!(_&1)&&t.child!==h?(l=t.child,l.childLanes=0,l.pendingProps=I,t.deletions=null):(l=Uu(h,I),l.subtreeFlags=h.subtreeFlags&14680064),o!==null?f=Uu(o,f):(f=td(f,_,i,null),f.flags|=2),f.return=t,l.return=t,l.sibling=f,t.child=l,l=f,f=t.child,_=e.child.memoizedState,_=_===null?FM(i):{baseLanes:_.baseLanes|i,cachePool:null,transitions:_.transitions},f.memoizedState=_,f.childLanes=e.childLanes&~i,t.memoizedState=RM,l}return f=e.child,e=f.sibling,l=Uu(f,{mode:"visible",children:l.children}),!(t.mode&1)&&(l.lanes=i),l.return=t,l.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=l,t.memoizedState=null,l}function BM(e,t){return t=W_({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function j_(e,t,i,l){return l!==null&&fM(l),zf(t,e.child,null,i),e=BM(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function OV(e,t,i,l,h,f,_){if(i)return t.flags&256?(t.flags&=-257,l=kM(Error(Xn(422))),j_(e,t,_,l)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(f=l.fallback,h=t.mode,l=W_({mode:"visible",children:l.children},h,0,null),f=td(f,h,_,null),f.flags|=2,l.return=t,f.return=t,l.sibling=f,t.child=l,t.mode&1&&zf(t,e.child,null,_),t.child.memoizedState=FM(_),t.memoizedState=RM,f);if(!(t.mode&1))return j_(e,t,_,null);if(h.data==="$!"){if(l=h.nextSibling&&h.nextSibling.dataset,l)var o=l.dgst;return l=o,f=Error(Xn(419)),l=kM(f,l,void 0),j_(e,t,_,l)}if(o=(_&e.childLanes)!==0,sa||o){if(l=ss,l!==null){switch(_&-_){case 4:h=2;break;case 16:h=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:h=32;break;case 536870912:h=268435456;break;default:h=0}h=h&(l.suspendedLanes|_)?0:h,h!==0&&h!==f.retryLane&&(f.retryLane=h,Oc(e,h),yl(l,e,h,-1))}return n4(),l=kM(Error(Xn(421))),j_(e,t,_,l)}return h.data==="$?"?(t.flags|=128,t.child=e.child,t=ZV.bind(null,e),h._reactRetry=t,null):(e=f.treeContext,ba=Eu(h.nextSibling),wa=t,_o=!0,fl=null,e!==null&&(Va[Ha++]=zc,Va[Ha++]=kc,Va[Ha++]=Yh,zc=e.id,kc=e.overflow,Yh=t),t=BM(t,l.children),t.flags|=4096,t)}function c6(e,t,i){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),yM(e.return,t,i)}function UM(e,t,i,l,h){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:h}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=i,f.tailMode=h)}function u6(e,t,i){var l=t.pendingProps,h=l.revealOrder,f=l.tail;if(Vs(e,t,l.children,i),l=To.current,l&2)l=l&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&c6(e,i,t);else if(e.tag===19)c6(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(oo(To,l),!(t.mode&1))t.memoizedState=null;else switch(h){case"forwards":for(i=t.child,h=null;i!==null;)e=i.alternate,e!==null&&E_(e)===null&&(h=i),i=i.sibling;i=h,i===null?(h=t.child,t.child=null):(h=i.sibling,i.sibling=null),UM(t,!1,h,i,f);break;case"backwards":for(i=null,h=t.child,t.child=null;h!==null;){if(e=h.alternate,e!==null&&E_(e)===null){t.child=h;break}e=h.sibling,h.sibling=i,i=h,h=e}UM(t,!0,i,null,f);break;case"together":UM(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function P_(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Pc(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Kh|=t.lanes,!(i&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Xn(153));if(t.child!==null){for(e=t.child,i=Uu(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=Uu(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function jV(e,t,i){switch(t.tag){case 3:s6(t),Ef();break;case 5:CE(t);break;case 1:oa(t.type)&&v_(t);break;case 4:bM(t,t.stateNode.containerInfo);break;case 10:var l=t.type._context,h=t.memoizedProps.value;oo(I_,l._currentValue),l._currentValue=h;break;case 13:if(l=t.memoizedState,l!==null)return l.dehydrated!==null?(oo(To,To.current&1),t.flags|=128,null):i&t.child.childLanes?l6(e,t,i):(oo(To,To.current&1),e=Pc(e,t,i),e!==null?e.sibling:null);oo(To,To.current&1);break;case 19:if(l=(i&t.childLanes)!==0,e.flags&128){if(l)return u6(e,t,i);t.flags|=128}if(h=t.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),oo(To,To.current),l)break;return null;case 22:case 23:return t.lanes=0,i6(e,t,i)}return Pc(e,t,i)}var h6,VM,d6,f6;h6=function(e,t){for(var i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},VM=function(){},d6=function(e,t,i,l){var h=e.memoizedProps;if(h!==l){e=t.stateNode,Wh(Bl.current);var f=null;switch(i){case"input":h=y3(e,h),l=y3(e,l),f=[];break;case"select":h=Io({},h,{value:void 0}),l=Io({},l,{value:void 0}),f=[];break;case"textarea":h=x3(e,h),l=x3(e,l),f=[];break;default:typeof h.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=m_)}b3(i,l);var _;i=null;for(D in h)if(!l.hasOwnProperty(D)&&h.hasOwnProperty(D)&&h[D]!=null)if(D==="style"){var o=h[D];for(_ in o)o.hasOwnProperty(_)&&(i||(i={}),i[_]="")}else D!=="dangerouslySetInnerHTML"&&D!=="children"&&D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&D!=="autoFocus"&&(lm.hasOwnProperty(D)?f||(f=[]):(f=f||[]).push(D,null));for(D in l){var I=l[D];if(o=h!=null?h[D]:void 0,l.hasOwnProperty(D)&&I!==o&&(I!=null||o!=null))if(D==="style")if(o){for(_ in o)!o.hasOwnProperty(_)||I&&I.hasOwnProperty(_)||(i||(i={}),i[_]="");for(_ in I)I.hasOwnProperty(_)&&o[_]!==I[_]&&(i||(i={}),i[_]=I[_])}else i||(f||(f=[]),f.push(D,i)),i=I;else D==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,o=o?o.__html:void 0,I!=null&&o!==I&&(f=f||[]).push(D,I)):D==="children"?typeof I!="string"&&typeof I!="number"||(f=f||[]).push(D,""+I):D!=="suppressContentEditableWarning"&&D!=="suppressHydrationWarning"&&(lm.hasOwnProperty(D)?(I!=null&&D==="onScroll"&&fo("scroll",e),f||o===I||(f=[])):(f=f||[]).push(D,I))}i&&(f=f||[]).push("style",i);var D=f;(t.updateQueue=D)&&(t.flags|=4)}},f6=function(e,t,i,l){i!==l&&(t.flags|=4)};function Qm(e,t){if(!_o)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Ds(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(t)for(var h=e.child;h!==null;)i|=h.lanes|h.childLanes,l|=h.subtreeFlags&14680064,l|=h.flags&14680064,h.return=e,h=h.sibling;else for(h=e.child;h!==null;)i|=h.lanes|h.childLanes,l|=h.subtreeFlags,l|=h.flags,h.return=e,h=h.sibling;return e.subtreeFlags|=l,e.childLanes=i,t}function PV(e,t,i){var l=t.pendingProps;switch(uM(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ds(t),null;case 1:return oa(t.type)&&__(),Ds(t),null;case 3:return l=t.stateNode,kf(),po(ra),po(Ss),TM(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(M_(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,fl!==null&&(JM(fl),fl=null))),VM(e,t),Ds(t),null;case 5:MM(t);var h=Wh(Fm.current);if(i=t.type,e!==null&&t.stateNode!=null)d6(e,t,i,l,h),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!l){if(t.stateNode===null)throw Error(Xn(166));return Ds(t),null}if(e=Wh(Bl.current),M_(t)){l=t.stateNode,i=t.type;var f=t.memoizedProps;switch(l[Fl]=t,l[km]=f,e=(t.mode&1)!==0,i){case"dialog":fo("cancel",l),fo("close",l);break;case"iframe":case"object":case"embed":fo("load",l);break;case"video":case"audio":for(h=0;h<Nm.length;h++)fo(Nm[h],l);break;case"source":fo("error",l);break;case"img":case"image":case"link":fo("error",l),fo("load",l);break;case"details":fo("toggle",l);break;case"input":YD(l,f),fo("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},fo("invalid",l);break;case"textarea":WD(l,f),fo("invalid",l)}b3(i,f),h=null;for(var _ in f)if(f.hasOwnProperty(_)){var o=f[_];_==="children"?typeof o=="string"?l.textContent!==o&&(f.suppressHydrationWarning!==!0&&g_(l.textContent,o,e),h=["children",o]):typeof o=="number"&&l.textContent!==""+o&&(f.suppressHydrationWarning!==!0&&g_(l.textContent,o,e),h=["children",""+o]):lm.hasOwnProperty(_)&&o!=null&&_==="onScroll"&&fo("scroll",l)}switch(i){case"input":Yy(l),ZD(l,f,!0);break;case"textarea":Yy(l),KD(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=m_)}l=h,t.updateQueue=l,l!==null&&(t.flags|=4)}else{_=h.nodeType===9?h:h.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=XD(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=_.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=_.createElement(i,{is:l.is}):(e=_.createElement(i),i==="select"&&(_=e,l.multiple?_.multiple=!0:l.size&&(_.size=l.size))):e=_.createElementNS(e,i),e[Fl]=t,e[km]=l,h6(e,t,!1,!1),t.stateNode=e;e:{switch(_=M3(i,l),i){case"dialog":fo("cancel",e),fo("close",e),h=l;break;case"iframe":case"object":case"embed":fo("load",e),h=l;break;case"video":case"audio":for(h=0;h<Nm.length;h++)fo(Nm[h],e);h=l;break;case"source":fo("error",e),h=l;break;case"img":case"image":case"link":fo("error",e),fo("load",e),h=l;break;case"details":fo("toggle",e),h=l;break;case"input":YD(e,l),h=y3(e,l),fo("invalid",e);break;case"option":h=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},h=Io({},l,{value:void 0}),fo("invalid",e);break;case"textarea":WD(e,l),h=x3(e,l),fo("invalid",e);break;default:h=l}b3(i,h),o=h;for(f in o)if(o.hasOwnProperty(f)){var I=o[f];f==="style"?tA(e,I):f==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&JD(e,I)):f==="children"?typeof I=="string"?(i!=="textarea"||I!=="")&&dm(e,I):typeof I=="number"&&dm(e,""+I):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(lm.hasOwnProperty(f)?I!=null&&f==="onScroll"&&fo("scroll",e):I!=null&&s3(e,f,I,_))}switch(i){case"input":Yy(e),ZD(e,l,!1);break;case"textarea":Yy(e),KD(e);break;case"option":l.value!=null&&e.setAttribute("value",""+Mu(l.value));break;case"select":e.multiple=!!l.multiple,f=l.value,f!=null?gf(e,!!l.multiple,f,!1):l.defaultValue!=null&&gf(e,!!l.multiple,l.defaultValue,!0);break;default:typeof h.onClick=="function"&&(e.onclick=m_)}switch(i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Ds(t),null;case 6:if(e&&t.stateNode!=null)f6(e,t,e.memoizedProps,l);else{if(typeof l!="string"&&t.stateNode===null)throw Error(Xn(166));if(i=Wh(Fm.current),Wh(Bl.current),M_(t)){if(l=t.stateNode,i=t.memoizedProps,l[Fl]=t,(f=l.nodeValue!==i)&&(e=wa,e!==null))switch(e.tag){case 3:g_(l.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&g_(l.nodeValue,i,(e.mode&1)!==0)}f&&(t.flags|=4)}else l=(i.nodeType===9?i:i.ownerDocument).createTextNode(l),l[Fl]=t,t.stateNode=l}return Ds(t),null;case 13:if(po(To),l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(_o&&ba!==null&&t.mode&1&&!(t.flags&128))gE(),Ef(),t.flags|=98560,f=!1;else if(f=M_(t),l!==null&&l.dehydrated!==null){if(e===null){if(!f)throw Error(Xn(318));if(f=t.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(Xn(317));f[Fl]=t}else Ef(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ds(t),f=!1}else fl!==null&&(JM(fl),fl=null),f=!0;if(!f)return t.flags&65536?t:null}return t.flags&128?(t.lanes=i,t):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(t.child.flags|=8192,t.mode&1&&(e===null||To.current&1?Jo===0&&(Jo=3):n4())),t.updateQueue!==null&&(t.flags|=4),Ds(t),null);case 4:return kf(),VM(e,t),e===null&&Lm(t.stateNode.containerInfo),Ds(t),null;case 10:return mM(t.type._context),Ds(t),null;case 17:return oa(t.type)&&__(),Ds(t),null;case 19:if(po(To),f=t.memoizedState,f===null)return Ds(t),null;if(l=(t.flags&128)!==0,_=f.rendering,_===null)if(l)Qm(f,!1);else{if(Jo!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(_=E_(e),_!==null){for(t.flags|=128,Qm(f,!1),l=_.updateQueue,l!==null&&(t.updateQueue=l,t.flags|=4),t.subtreeFlags=0,l=i,i=t.child;i!==null;)f=i,e=l,f.flags&=14680066,_=f.alternate,_===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=_.childLanes,f.lanes=_.lanes,f.child=_.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=_.memoizedProps,f.memoizedState=_.memoizedState,f.updateQueue=_.updateQueue,f.type=_.type,e=_.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return oo(To,To.current&1|2),t.child}e=e.sibling}f.tail!==null&&jo()>Rf&&(t.flags|=128,l=!0,Qm(f,!1),t.lanes=4194304)}else{if(!l)if(e=E_(_),e!==null){if(t.flags|=128,l=!0,i=e.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),Qm(f,!0),f.tail===null&&f.tailMode==="hidden"&&!_.alternate&&!_o)return Ds(t),null}else 2*jo()-f.renderingStartTime>Rf&&i!==1073741824&&(t.flags|=128,l=!0,Qm(f,!1),t.lanes=4194304);f.isBackwards?(_.sibling=t.child,t.child=_):(i=f.last,i!==null?i.sibling=_:t.child=_,f.last=_)}return f.tail!==null?(t=f.tail,f.rendering=t,f.tail=t.sibling,f.renderingStartTime=jo(),t.sibling=null,i=To.current,oo(To,l?i&1|2:i&1),t):(Ds(t),null);case 22:case 23:return t4(),l=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(t.flags|=8192),l&&t.mode&1?Ma&1073741824&&(Ds(t),t.subtreeFlags&6&&(t.flags|=8192)):Ds(t),null;case 24:return null;case 25:return null}throw Error(Xn(156,t.tag))}function RV(e,t){switch(uM(t),t.tag){case 1:return oa(t.type)&&__(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return kf(),po(ra),po(Ss),TM(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return MM(t),null;case 13:if(po(To),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Xn(340));Ef()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return po(To),null;case 4:return kf(),null;case 10:return mM(t.type._context),null;case 22:case 23:return t4(),null;case 24:return null;default:return null}}var R_=!1,As=!1,FV=typeof WeakSet=="function"?WeakSet:Set,Li=null;function jf(e,t){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(l){No(e,t,l)}else i.current=null}function HM(e,t,i){try{i()}catch(l){No(e,t,l)}}var p6=!1;function BV(e,t){if(tM=r_,e=$A(),G3(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var h=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var _=0,o=-1,I=-1,D=0,O=0,P=e,F=null;t:for(;;){for(var Q;P!==i||h!==0&&P.nodeType!==3||(o=_+h),P!==f||l!==0&&P.nodeType!==3||(I=_+l),P.nodeType===3&&(_+=P.nodeValue.length),(Q=P.firstChild)!==null;)F=P,P=Q;for(;;){if(P===e)break t;if(F===i&&++D===h&&(o=_),F===f&&++O===l&&(I=_),(Q=P.nextSibling)!==null)break;P=F,F=P.parentNode}P=Q}i=o===-1||I===-1?null:{start:o,end:I}}else i=null}i=i||{start:0,end:0}}else i=null;for(nM={focusedElem:e,selectionRange:i},r_=!1,Li=t;Li!==null;)if(t=Li,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Li=e;else for(;Li!==null;){t=Li;try{var J=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(J!==null){var ae=J.memoizedProps,Ne=J.memoizedState,oe=t.stateNode,Z=oe.getSnapshotBeforeUpdate(t.elementType===t.type?ae:pl(t.type,ae),Ne);oe.__reactInternalSnapshotBeforeUpdate=Z}break;case 3:var W=t.stateNode.containerInfo;W.nodeType===1?W.textContent="":W.nodeType===9&&W.documentElement&&W.removeChild(W.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Xn(163))}}catch(se){No(t,t.return,se)}if(e=t.sibling,e!==null){e.return=t.return,Li=e;break}Li=t.return}return J=p6,p6=!1,J}function $m(e,t,i){var l=t.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var h=l=l.next;do{if((h.tag&e)===e){var f=h.destroy;h.destroy=void 0,f!==void 0&&HM(t,i,f)}h=h.next}while(h!==l)}}function F_(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var i=t=t.next;do{if((i.tag&e)===e){var l=i.create;i.destroy=l()}i=i.next}while(i!==t)}}function QM(e){var t=e.ref;if(t!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof t=="function"?t(e):t.current=e}}function g6(e){var t=e.alternate;t!==null&&(e.alternate=null,g6(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Fl],delete t[km],delete t[sM],delete t[bV],delete t[MV])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function m6(e){return e.tag===5||e.tag===3||e.tag===4}function y6(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||m6(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $M(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.nodeType===8?i.parentNode.insertBefore(e,t):i.insertBefore(e,t):(i.nodeType===8?(t=i.parentNode,t.insertBefore(e,i)):(t=i,t.appendChild(e)),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=m_));else if(l!==4&&(e=e.child,e!==null))for($M(e,t,i),e=e.sibling;e!==null;)$M(e,t,i),e=e.sibling}function YM(e,t,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(YM(e,t,i),e=e.sibling;e!==null;)YM(e,t,i),e=e.sibling}var _s=null,gl=!1;function ju(e,t,i){for(i=i.child;i!==null;)_6(e,t,i),i=i.sibling}function _6(e,t,i){if(Rl&&typeof Rl.onCommitFiberUnmount=="function")try{Rl.onCommitFiberUnmount(Xy,i)}catch{}switch(i.tag){case 5:As||jf(i,t);case 6:var l=_s,h=gl;_s=null,ju(e,t,i),_s=l,gl=h,_s!==null&&(gl?(e=_s,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):_s.removeChild(i.stateNode));break;case 18:_s!==null&&(gl?(e=_s,i=i.stateNode,e.nodeType===8?oM(e.parentNode,i):e.nodeType===1&&oM(e,i),Mm(e)):oM(_s,i.stateNode));break;case 4:l=_s,h=gl,_s=i.stateNode.containerInfo,gl=!0,ju(e,t,i),_s=l,gl=h;break;case 0:case 11:case 14:case 15:if(!As&&(l=i.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){h=l=l.next;do{var f=h,_=f.destroy;f=f.tag,_!==void 0&&(f&2||f&4)&&HM(i,t,_),h=h.next}while(h!==l)}ju(e,t,i);break;case 1:if(!As&&(jf(i,t),l=i.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=i.memoizedProps,l.state=i.memoizedState,l.componentWillUnmount()}catch(o){No(i,t,o)}ju(e,t,i);break;case 21:ju(e,t,i);break;case 22:i.mode&1?(As=(l=As)||i.memoizedState!==null,ju(e,t,i),As=l):ju(e,t,i);break;default:ju(e,t,i)}}function v6(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new FV),t.forEach(function(l){var h=WV.bind(null,e,l);i.has(l)||(i.add(l),l.then(h,h))})}}function ml(e,t){var i=t.deletions;if(i!==null)for(var l=0;l<i.length;l++){var h=i[l];try{var f=e,_=t,o=_;e:for(;o!==null;){switch(o.tag){case 5:_s=o.stateNode,gl=!1;break e;case 3:_s=o.stateNode.containerInfo,gl=!0;break e;case 4:_s=o.stateNode.containerInfo,gl=!0;break e}o=o.return}if(_s===null)throw Error(Xn(160));_6(f,_,h),_s=null,gl=!1;var I=h.alternate;I!==null&&(I.return=null),h.return=null}catch(D){No(h,t,D)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)x6(t,e),t=t.sibling}function x6(e,t){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ml(t,e),Vl(e),l&4){try{$m(3,e,e.return),F_(3,e)}catch(ae){No(e,e.return,ae)}try{$m(5,e,e.return)}catch(ae){No(e,e.return,ae)}}break;case 1:ml(t,e),Vl(e),l&512&&i!==null&&jf(i,i.return);break;case 5:if(ml(t,e),Vl(e),l&512&&i!==null&&jf(i,i.return),e.flags&32){var h=e.stateNode;try{dm(h,"")}catch(ae){No(e,e.return,ae)}}if(l&4&&(h=e.stateNode,h!=null)){var f=e.memoizedProps,_=i!==null?i.memoizedProps:f,o=e.type,I=e.updateQueue;if(e.updateQueue=null,I!==null)try{o==="input"&&f.type==="radio"&&f.name!=null&&GD(h,f),M3(o,_);var D=M3(o,f);for(_=0;_<I.length;_+=2){var O=I[_],P=I[_+1];O==="style"?tA(h,P):O==="dangerouslySetInnerHTML"?JD(h,P):O==="children"?dm(h,P):s3(h,O,P,D)}switch(o){case"input":_3(h,f);break;case"textarea":qD(h,f);break;case"select":var F=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!f.multiple;var Q=f.value;Q!=null?gf(h,!!f.multiple,Q,!1):F!==!!f.multiple&&(f.defaultValue!=null?gf(h,!!f.multiple,f.defaultValue,!0):gf(h,!!f.multiple,f.multiple?[]:"",!1))}h[km]=f}catch(ae){No(e,e.return,ae)}}break;case 6:if(ml(t,e),Vl(e),l&4){if(e.stateNode===null)throw Error(Xn(162));h=e.stateNode,f=e.memoizedProps;try{h.nodeValue=f}catch(ae){No(e,e.return,ae)}}break;case 3:if(ml(t,e),Vl(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Mm(t.containerInfo)}catch(ae){No(e,e.return,ae)}break;case 4:ml(t,e),Vl(e);break;case 13:ml(t,e),Vl(e),h=e.child,h.flags&8192&&(f=h.memoizedState!==null,h.stateNode.isHidden=f,!f||h.alternate!==null&&h.alternate.memoizedState!==null||(WM=jo())),l&4&&v6(e);break;case 22:if(O=i!==null&&i.memoizedState!==null,e.mode&1?(As=(D=As)||O,ml(t,e),As=D):ml(t,e),Vl(e),l&8192){if(D=e.memoizedState!==null,(e.stateNode.isHidden=D)&&!O&&e.mode&1)for(Li=e,O=e.child;O!==null;){for(P=Li=O;Li!==null;){switch(F=Li,Q=F.child,F.tag){case 0:case 11:case 14:case 15:$m(4,F,F.return);break;case 1:jf(F,F.return);var J=F.stateNode;if(typeof J.componentWillUnmount=="function"){l=F,i=F.return;try{t=l,J.props=t.memoizedProps,J.state=t.memoizedState,J.componentWillUnmount()}catch(ae){No(l,i,ae)}}break;case 5:jf(F,F.return);break;case 22:if(F.memoizedState!==null){M6(P);continue}}Q!==null?(Q.return=F,Li=Q):M6(P)}O=O.sibling}e:for(O=null,P=e;;){if(P.tag===5){if(O===null){O=P;try{h=P.stateNode,D?(f=h.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(o=P.stateNode,I=P.memoizedProps.style,_=I!=null&&I.hasOwnProperty("display")?I.display:null,o.style.display=eA("display",_))}catch(ae){No(e,e.return,ae)}}}else if(P.tag===6){if(O===null)try{P.stateNode.nodeValue=D?"":P.memoizedProps}catch(ae){No(e,e.return,ae)}}else if((P.tag!==22&&P.tag!==23||P.memoizedState===null||P===e)&&P.child!==null){P.child.return=P,P=P.child;continue}if(P===e)break e;for(;P.sibling===null;){if(P.return===null||P.return===e)break e;O===P&&(O=null),P=P.return}O===P&&(O=null),P.sibling.return=P.return,P=P.sibling}}break;case 19:ml(t,e),Vl(e),l&4&&v6(e);break;case 21:break;default:ml(t,e),Vl(e)}}function Vl(e){var t=e.flags;if(t&2){try{e:{for(var i=e.return;i!==null;){if(m6(i)){var l=i;break e}i=i.return}throw Error(Xn(160))}switch(l.tag){case 5:var h=l.stateNode;l.flags&32&&(dm(h,""),l.flags&=-33);var f=y6(e);YM(e,f,h);break;case 3:case 4:var _=l.stateNode.containerInfo,o=y6(e);$M(e,o,_);break;default:throw Error(Xn(161))}}catch(I){No(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function UV(e,t,i){Li=e,w6(e)}function w6(e,t,i){for(var l=(e.mode&1)!==0;Li!==null;){var h=Li,f=h.child;if(h.tag===22&&l){var _=h.memoizedState!==null||R_;if(!_){var o=h.alternate,I=o!==null&&o.memoizedState!==null||As;o=R_;var D=As;if(R_=_,(As=I)&&!D)for(Li=h;Li!==null;)_=Li,I=_.child,_.tag===22&&_.memoizedState!==null?I6(h):I!==null?(I.return=_,Li=I):I6(h);for(;f!==null;)Li=f,w6(f),f=f.sibling;Li=h,R_=o,As=D}b6(e)}else h.subtreeFlags&8772&&f!==null?(f.return=h,Li=f):b6(e)}}function b6(e){for(;Li!==null;){var t=Li;if(t.flags&8772){var i=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:As||F_(5,t);break;case 1:var l=t.stateNode;if(t.flags&4&&!As)if(i===null)l.componentDidMount();else{var h=t.elementType===t.type?i.memoizedProps:pl(t.type,i.memoizedProps);l.componentDidUpdate(h,i.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=t.updateQueue;f!==null&&vE(t,f,l);break;case 3:var _=t.updateQueue;if(_!==null){if(i=null,t.child!==null)switch(t.child.tag){case 5:i=t.child.stateNode;break;case 1:i=t.child.stateNode}vE(t,_,i)}break;case 5:var o=t.stateNode;if(i===null&&t.flags&4){i=o;var I=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&i.focus();break;case"img":I.src&&(i.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var D=t.alternate;if(D!==null){var O=D.memoizedState;if(O!==null){var P=O.dehydrated;P!==null&&Mm(P)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Xn(163))}As||t.flags&512&&QM(t)}catch(F){No(t,t.return,F)}}if(t===e){Li=null;break}if(i=t.sibling,i!==null){i.return=t.return,Li=i;break}Li=t.return}}function M6(e){for(;Li!==null;){var t=Li;if(t===e){Li=null;break}var i=t.sibling;if(i!==null){i.return=t.return,Li=i;break}Li=t.return}}function I6(e){for(;Li!==null;){var t=Li;try{switch(t.tag){case 0:case 11:case 15:var i=t.return;try{F_(4,t)}catch(I){No(t,i,I)}break;case 1:var l=t.stateNode;if(typeof l.componentDidMount=="function"){var h=t.return;try{l.componentDidMount()}catch(I){No(t,h,I)}}var f=t.return;try{QM(t)}catch(I){No(t,f,I)}break;case 5:var _=t.return;try{QM(t)}catch(I){No(t,_,I)}}}catch(I){No(t,t.return,I)}if(t===e){Li=null;break}var o=t.sibling;if(o!==null){o.return=t.return,Li=o;break}Li=t.return}}var VV=Math.ceil,B_=Ec.ReactCurrentDispatcher,GM=Ec.ReactCurrentOwner,Ya=Ec.ReactCurrentBatchConfig,Br=0,ss=null,Vo=null,vs=0,Ma=0,Pf=Nu(0),Jo=0,Ym=null,Kh=0,U_=0,ZM=0,Gm=null,aa=null,WM=0,Rf=1/0,Rc=null,V_=!1,qM=null,Pu=null,H_=!1,Ru=null,Q_=0,Zm=0,KM=null,$_=-1,Y_=0;function Hs(){return Br&6?jo():$_!==-1?$_:$_=jo()}function Fu(e){return e.mode&1?Br&2&&vs!==0?vs&-vs:TV.transition!==null?(Y_===0&&(Y_=mA()),Y_):(e=Wr,e!==0||(e=window.event,e=e===void 0?16:TA(e.type)),e):1}function yl(e,t,i,l){if(50<Zm)throw Zm=0,KM=null,Error(Xn(185));_m(e,i,l),(!(Br&2)||e!==ss)&&(e===ss&&(!(Br&2)&&(U_|=i),Jo===4&&Bu(e,vs)),la(e,l),i===1&&Br===0&&!(t.mode&1)&&(Rf=jo()+500,x_&&zu()))}function la(e,t){var i=e.callbackNode;TU(e,t);var l=t_(e,e===ss?vs:0);if(l===0)i!==null&&fA(i),e.callbackNode=null,e.callbackPriority=0;else if(t=l&-l,e.callbackPriority!==t){if(i!=null&&fA(i),t===1)e.tag===0?IV(S6.bind(null,e)):uE(S6.bind(null,e)),xV(function(){!(Br&6)&&zu()}),i=null;else{switch(yA(l)){case 1:i=E3;break;case 4:i=pA;break;case 16:i=Ky;break;case 536870912:i=gA;break;default:i=Ky}i=k6(i,T6.bind(null,e))}e.callbackPriority=t,e.callbackNode=i}}function T6(e,t){if($_=-1,Y_=0,Br&6)throw Error(Xn(327));var i=e.callbackNode;if(Ff()&&e.callbackNode!==i)return null;var l=t_(e,e===ss?vs:0);if(l===0)return null;if(l&30||l&e.expiredLanes||t)t=G_(e,l);else{t=l;var h=Br;Br|=2;var f=D6();(ss!==e||vs!==t)&&(Rc=null,Rf=jo()+500,Jh(e,t));do try{$V();break}catch(o){C6(e,o)}while(1);gM(),B_.current=f,Br=h,Vo!==null?t=0:(ss=null,vs=0,t=Jo)}if(t!==0){if(t===2&&(h=N3(e),h!==0&&(l=h,t=XM(e,h))),t===1)throw i=Ym,Jh(e,0),Bu(e,l),la(e,jo()),i;if(t===6)Bu(e,l);else{if(h=e.current.alternate,!(l&30)&&!HV(h)&&(t=G_(e,l),t===2&&(f=N3(e),f!==0&&(l=f,t=XM(e,f))),t===1))throw i=Ym,Jh(e,0),Bu(e,l),la(e,jo()),i;switch(e.finishedWork=h,e.finishedLanes=l,t){case 0:case 1:throw Error(Xn(345));case 2:ed(e,aa,Rc);break;case 3:if(Bu(e,l),(l&130023424)===l&&(t=WM+500-jo(),10<t)){if(t_(e,0)!==0)break;if(h=e.suspendedLanes,(h&l)!==l){Hs(),e.pingedLanes|=e.suspendedLanes&h;break}e.timeoutHandle=rM(ed.bind(null,e,aa,Rc),t);break}ed(e,aa,Rc);break;case 4:if(Bu(e,l),(l&4194240)===l)break;for(t=e.eventTimes,h=-1;0<l;){var _=31-hl(l);f=1<<_,_=t[_],_>h&&(h=_),l&=~f}if(l=h,l=jo()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*VV(l/1960))-l,10<l){e.timeoutHandle=rM(ed.bind(null,e,aa,Rc),l);break}ed(e,aa,Rc);break;case 5:ed(e,aa,Rc);break;default:throw Error(Xn(329))}}}return la(e,jo()),e.callbackNode===i?T6.bind(null,e):null}function XM(e,t){var i=Gm;return e.current.memoizedState.isDehydrated&&(Jh(e,t).flags|=256),e=G_(e,t),e!==2&&(t=aa,aa=i,t!==null&&JM(t)),e}function JM(e){aa===null?aa=e:aa.push.apply(aa,e)}function HV(e){for(var t=e;;){if(t.flags&16384){var i=t.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var l=0;l<i.length;l++){var h=i[l],f=h.getSnapshot;h=h.value;try{if(!dl(f(),h))return!1}catch{return!1}}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Bu(e,t){for(t&=~ZM,t&=~U_,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var i=31-hl(t),l=1<<i;e[i]=-1,t&=~l}}function S6(e){if(Br&6)throw Error(Xn(327));Ff();var t=t_(e,0);if(!(t&1))return la(e,jo()),null;var i=G_(e,t);if(e.tag!==0&&i===2){var l=N3(e);l!==0&&(t=l,i=XM(e,l))}if(i===1)throw i=Ym,Jh(e,0),Bu(e,t),la(e,jo()),i;if(i===6)throw Error(Xn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ed(e,aa,Rc),la(e,jo()),null}function e4(e,t){var i=Br;Br|=1;try{return e(t)}finally{Br=i,Br===0&&(Rf=jo()+500,x_&&zu())}}function Xh(e){Ru!==null&&Ru.tag===0&&!(Br&6)&&Ff();var t=Br;Br|=1;var i=Ya.transition,l=Wr;try{if(Ya.transition=null,Wr=1,e)return e()}finally{Wr=l,Ya.transition=i,Br=t,!(Br&6)&&zu()}}function t4(){Ma=Pf.current,po(Pf)}function Jh(e,t){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,vV(i)),Vo!==null)for(i=Vo.return;i!==null;){var l=i;switch(uM(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&__();break;case 3:kf(),po(ra),po(Ss),TM();break;case 5:MM(l);break;case 4:kf();break;case 13:po(To);break;case 19:po(To);break;case 10:mM(l.type._context);break;case 22:case 23:t4()}i=i.return}if(ss=e,Vo=e=Uu(e.current,null),vs=Ma=t,Jo=0,Ym=null,ZM=U_=Kh=0,aa=Gm=null,Zh!==null){for(t=0;t<Zh.length;t++)if(i=Zh[t],l=i.interleaved,l!==null){i.interleaved=null;var h=l.next,f=i.pending;if(f!==null){var _=f.next;f.next=h,l.next=_}i.pending=l}Zh=null}return e}function C6(e,t){do{var i=Vo;try{if(gM(),N_.current=O_,L_){for(var l=So.memoizedState;l!==null;){var h=l.queue;h!==null&&(h.pending=null),l=l.next}L_=!1}if(qh=0,os=Xo=So=null,Bm=!1,Um=0,GM.current=null,i===null||i.return===null){Jo=1,Ym=t,Vo=null;break}e:{var f=e,_=i.return,o=i,I=t;if(t=vs,o.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var D=I,O=o,P=O.tag;if(!(O.mode&1)&&(P===0||P===11||P===15)){var F=O.alternate;F?(O.updateQueue=F.updateQueue,O.memoizedState=F.memoizedState,O.lanes=F.lanes):(O.updateQueue=null,O.memoizedState=null)}var Q=XE(_);if(Q!==null){Q.flags&=-257,JE(Q,_,o,f,t),Q.mode&1&&KE(f,D,t),t=Q,I=D;var J=t.updateQueue;if(J===null){var ae=new Set;ae.add(I),t.updateQueue=ae}else J.add(I);break e}else{if(!(t&1)){KE(f,D,t),n4();break e}I=Error(Xn(426))}}else if(_o&&o.mode&1){var Ne=XE(_);if(Ne!==null){!(Ne.flags&65536)&&(Ne.flags|=256),JE(Ne,_,o,f,t),fM(Of(I,o));break e}}f=I=Of(I,o),Jo!==4&&(Jo=2),Gm===null?Gm=[f]:Gm.push(f),f=_;do{switch(f.tag){case 3:f.flags|=65536,t&=-t,f.lanes|=t;var oe=WE(f,I,t);_E(f,oe);break e;case 1:o=I;var Z=f.type,W=f.stateNode;if(!(f.flags&128)&&(typeof Z.getDerivedStateFromError=="function"||W!==null&&typeof W.componentDidCatch=="function"&&(Pu===null||!Pu.has(W)))){f.flags|=65536,t&=-t,f.lanes|=t;var se=qE(f,o,t);_E(f,se);break e}}f=f.return}while(f!==null)}E6(i)}catch(ve){t=ve,Vo===i&&i!==null&&(Vo=i=i.return);continue}break}while(1)}function D6(){var e=B_.current;return B_.current=O_,e===null?O_:e}function n4(){(Jo===0||Jo===3||Jo===2)&&(Jo=4),ss===null||!(Kh&268435455)&&!(U_&268435455)||Bu(ss,vs)}function G_(e,t){var i=Br;Br|=2;var l=D6();(ss!==e||vs!==t)&&(Rc=null,Jh(e,t));do try{QV();break}catch(h){C6(e,h)}while(1);if(gM(),Br=i,B_.current=l,Vo!==null)throw Error(Xn(261));return ss=null,vs=0,Jo}function QV(){for(;Vo!==null;)A6(Vo)}function $V(){for(;Vo!==null&&!mU();)A6(Vo)}function A6(e){var t=z6(e.alternate,e,Ma);e.memoizedProps=e.pendingProps,t===null?E6(e):Vo=t,GM.current=null}function E6(e){var t=e;do{var i=t.alternate;if(e=t.return,t.flags&32768){if(i=RV(i,t),i!==null){i.flags&=32767,Vo=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Jo=6,Vo=null;return}}else if(i=PV(i,t,Ma),i!==null){Vo=i;return}if(t=t.sibling,t!==null){Vo=t;return}Vo=t=e}while(t!==null);Jo===0&&(Jo=5)}function ed(e,t,i){var l=Wr,h=Ya.transition;try{Ya.transition=null,Wr=1,YV(e,t,i,l)}finally{Ya.transition=h,Wr=l}return null}function YV(e,t,i,l){do Ff();while(Ru!==null);if(Br&6)throw Error(Xn(327));i=e.finishedWork;var h=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(Xn(177));e.callbackNode=null,e.callbackPriority=0;var f=i.lanes|i.childLanes;if(SU(e,f),e===ss&&(Vo=ss=null,vs=0),!(i.subtreeFlags&2064)&&!(i.flags&2064)||H_||(H_=!0,k6(Ky,function(){return Ff(),null})),f=(i.flags&15990)!==0,i.subtreeFlags&15990||f){f=Ya.transition,Ya.transition=null;var _=Wr;Wr=1;var o=Br;Br|=4,GM.current=null,BV(e,i),x6(i,e),dV(nM),r_=!!tM,nM=tM=null,e.current=i,UV(i),yU(),Br=o,Wr=_,Ya.transition=f}else e.current=i;if(H_&&(H_=!1,Ru=e,Q_=h),f=e.pendingLanes,f===0&&(Pu=null),xU(i.stateNode),la(e,jo()),t!==null)for(l=e.onRecoverableError,i=0;i<t.length;i++)h=t[i],l(h.value,{componentStack:h.stack,digest:h.digest});if(V_)throw V_=!1,e=qM,qM=null,e;return Q_&1&&e.tag!==0&&Ff(),f=e.pendingLanes,f&1?e===KM?Zm++:(Zm=0,KM=e):Zm=0,zu(),null}function Ff(){if(Ru!==null){var e=yA(Q_),t=Ya.transition,i=Wr;try{if(Ya.transition=null,Wr=16>e?16:e,Ru===null)var l=!1;else{if(e=Ru,Ru=null,Q_=0,Br&6)throw Error(Xn(331));var h=Br;for(Br|=4,Li=e.current;Li!==null;){var f=Li,_=f.child;if(Li.flags&16){var o=f.deletions;if(o!==null){for(var I=0;I<o.length;I++){var D=o[I];for(Li=D;Li!==null;){var O=Li;switch(O.tag){case 0:case 11:case 15:$m(8,O,f)}var P=O.child;if(P!==null)P.return=O,Li=P;else for(;Li!==null;){O=Li;var F=O.sibling,Q=O.return;if(g6(O),O===D){Li=null;break}if(F!==null){F.return=Q,Li=F;break}Li=Q}}}var J=f.alternate;if(J!==null){var ae=J.child;if(ae!==null){J.child=null;do{var Ne=ae.sibling;ae.sibling=null,ae=Ne}while(ae!==null)}}Li=f}}if(f.subtreeFlags&2064&&_!==null)_.return=f,Li=_;else e:for(;Li!==null;){if(f=Li,f.flags&2048)switch(f.tag){case 0:case 11:case 15:$m(9,f,f.return)}var oe=f.sibling;if(oe!==null){oe.return=f.return,Li=oe;break e}Li=f.return}}var Z=e.current;for(Li=Z;Li!==null;){_=Li;var W=_.child;if(_.subtreeFlags&2064&&W!==null)W.return=_,Li=W;else e:for(_=Z;Li!==null;){if(o=Li,o.flags&2048)try{switch(o.tag){case 0:case 11:case 15:F_(9,o)}}catch(ve){No(o,o.return,ve)}if(o===_){Li=null;break e}var se=o.sibling;if(se!==null){se.return=o.return,Li=se;break e}Li=o.return}}if(Br=h,zu(),Rl&&typeof Rl.onPostCommitFiberRoot=="function")try{Rl.onPostCommitFiberRoot(Xy,e)}catch{}l=!0}return l}finally{Wr=i,Ya.transition=t}}return!1}function N6(e,t,i){t=Of(i,t),t=WE(e,t,1),e=Ou(e,t,1),t=Hs(),e!==null&&(_m(e,1,t),la(e,t))}function No(e,t,i){if(e.tag===3)N6(e,e,i);else for(;t!==null;){if(t.tag===3){N6(t,e,i);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Pu===null||!Pu.has(l))){e=Of(i,e),e=qE(t,e,1),t=Ou(t,e,1),e=Hs(),t!==null&&(_m(t,1,e),la(t,e));break}}t=t.return}}function GV(e,t,i){var l=e.pingCache;l!==null&&l.delete(t),t=Hs(),e.pingedLanes|=e.suspendedLanes&i,ss===e&&(vs&i)===i&&(Jo===4||Jo===3&&(vs&130023424)===vs&&500>jo()-WM?Jh(e,0):ZM|=i),la(e,t)}function L6(e,t){t===0&&(e.mode&1?(t=e_,e_<<=1,!(e_&130023424)&&(e_=4194304)):t=1);var i=Hs();e=Oc(e,t),e!==null&&(_m(e,t,i),la(e,i))}function ZV(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),L6(e,i)}function WV(e,t){var i=0;switch(e.tag){case 13:var l=e.stateNode,h=e.memoizedState;h!==null&&(i=h.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(Xn(314))}l!==null&&l.delete(t),L6(e,i)}var z6;z6=function(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps||ra.current)sa=!0;else{if(!(e.lanes&i)&&!(t.flags&128))return sa=!1,jV(e,t,i);sa=!!(e.flags&131072)}else sa=!1,_o&&t.flags&1048576&&hE(t,b_,t.index);switch(t.lanes=0,t.tag){case 2:var l=t.type;P_(e,t),e=t.pendingProps;var h=Cf(t,Ss.current);Lf(t,i),h=DM(null,t,l,e,h,i);var f=AM();return t.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,oa(l)?(f=!0,v_(t)):f=!1,t.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,vM(t),h.updater=D_,t.stateNode=h,h._reactInternals=t,wM(t,l,e,i),t=PM(null,t,l,!0,f,i)):(t.tag=0,_o&&f&&cM(t),Vs(null,t,h,i),t=t.child),t;case 16:l=t.elementType;e:{switch(P_(e,t),e=t.pendingProps,h=l._init,l=h(l._payload),t.type=l,h=t.tag=KV(l),e=pl(l,e),h){case 0:t=jM(null,t,l,e,i);break e;case 1:t=o6(null,t,l,e,i);break e;case 11:t=e6(null,t,l,e,i);break e;case 14:t=t6(null,t,l,pl(l.type,e),i);break e}throw Error(Xn(306,l,""))}return t;case 0:return l=t.type,h=t.pendingProps,h=t.elementType===l?h:pl(l,h),jM(e,t,l,h,i);case 1:return l=t.type,h=t.pendingProps,h=t.elementType===l?h:pl(l,h),o6(e,t,l,h,i);case 3:e:{if(s6(t),e===null)throw Error(Xn(387));l=t.pendingProps,f=t.memoizedState,h=f.element,yE(e,t),C_(t,l,null,i);var _=t.memoizedState;if(l=_.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:_.cache,pendingSuspenseBoundaries:_.pendingSuspenseBoundaries,transitions:_.transitions},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){h=Of(Error(Xn(423)),t),t=a6(e,t,l,i,h);break e}else if(l!==h){h=Of(Error(Xn(424)),t),t=a6(e,t,l,i,h);break e}else for(ba=Eu(t.stateNode.containerInfo.firstChild),wa=t,_o=!0,fl=null,i=SE(t,null,l,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Ef(),l===h){t=Pc(e,t,i);break e}Vs(e,t,l,i)}t=t.child}return t;case 5:return CE(t),e===null&&dM(t),l=t.type,h=t.pendingProps,f=e!==null?e.memoizedProps:null,_=h.children,iM(l,h)?_=null:f!==null&&iM(l,f)&&(t.flags|=32),r6(e,t),Vs(e,t,_,i),t.child;case 6:return e===null&&dM(t),null;case 13:return l6(e,t,i);case 4:return bM(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=zf(t,null,l,i):Vs(e,t,l,i),t.child;case 11:return l=t.type,h=t.pendingProps,h=t.elementType===l?h:pl(l,h),e6(e,t,l,h,i);case 7:return Vs(e,t,t.pendingProps,i),t.child;case 8:return Vs(e,t,t.pendingProps.children,i),t.child;case 12:return Vs(e,t,t.pendingProps.children,i),t.child;case 10:e:{if(l=t.type._context,h=t.pendingProps,f=t.memoizedProps,_=h.value,oo(I_,l._currentValue),l._currentValue=_,f!==null)if(dl(f.value,_)){if(f.children===h.children&&!ra.current){t=Pc(e,t,i);break e}}else for(f=t.child,f!==null&&(f.return=t);f!==null;){var o=f.dependencies;if(o!==null){_=f.child;for(var I=o.firstContext;I!==null;){if(I.context===l){if(f.tag===1){I=jc(-1,i&-i),I.tag=2;var D=f.updateQueue;if(D!==null){D=D.shared;var O=D.pending;O===null?I.next=I:(I.next=O.next,O.next=I),D.pending=I}}f.lanes|=i,I=f.alternate,I!==null&&(I.lanes|=i),yM(f.return,i,t),o.lanes|=i;break}I=I.next}}else if(f.tag===10)_=f.type===t.type?null:f.child;else if(f.tag===18){if(_=f.return,_===null)throw Error(Xn(341));_.lanes|=i,o=_.alternate,o!==null&&(o.lanes|=i),yM(_,i,t),_=f.sibling}else _=f.child;if(_!==null)_.return=f;else for(_=f;_!==null;){if(_===t){_=null;break}if(f=_.sibling,f!==null){f.return=_.return,_=f;break}_=_.return}f=_}Vs(e,t,h.children,i),t=t.child}return t;case 9:return h=t.type,l=t.pendingProps.children,Lf(t,i),h=Qa(h),l=l(h),t.flags|=1,Vs(e,t,l,i),t.child;case 14:return l=t.type,h=pl(l,t.pendingProps),h=pl(l.type,h),t6(e,t,l,h,i);case 15:return n6(e,t,t.type,t.pendingProps,i);case 17:return l=t.type,h=t.pendingProps,h=t.elementType===l?h:pl(l,h),P_(e,t),t.tag=1,oa(l)?(e=!0,v_(t)):e=!1,Lf(t,i),bE(t,l,h),wM(t,l,h,i),PM(null,t,l,!0,e,i);case 19:return u6(e,t,i);case 22:return i6(e,t,i)}throw Error(Xn(156,t.tag))};function k6(e,t){return dA(e,t)}function qV(e,t,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ga(e,t,i,l){return new qV(e,t,i,l)}function i4(e){return e=e.prototype,!(!e||!e.isReactComponent)}function KV(e){if(typeof e=="function")return i4(e)?1:0;if(e!=null){if(e=e.$$typeof,e===c3)return 11;if(e===d3)return 14}return 2}function Uu(e,t){var i=e.alternate;return i===null?(i=Ga(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Z_(e,t,i,l,h,f){var _=2;if(l=e,typeof e=="function")i4(e)&&(_=1);else if(typeof e=="string")_=5;else e:switch(e){case pf:return td(i.children,h,f,t);case a3:_=8,h|=8;break;case l3:return e=Ga(12,i,t,h|2),e.elementType=l3,e.lanes=f,e;case u3:return e=Ga(13,i,t,h),e.elementType=u3,e.lanes=f,e;case h3:return e=Ga(19,i,t,h),e.elementType=h3,e.lanes=f,e;case VD:return W_(i,h,f,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case BD:_=10;break e;case UD:_=9;break e;case c3:_=11;break e;case d3:_=14;break e;case bu:_=16,l=null;break e}throw Error(Xn(130,e==null?e:typeof e,""))}return t=Ga(_,i,t,h),t.elementType=e,t.type=l,t.lanes=f,t}function td(e,t,i,l){return e=Ga(7,e,l,t),e.lanes=i,e}function W_(e,t,i,l){return e=Ga(22,e,l,t),e.elementType=VD,e.lanes=i,e.stateNode={isHidden:!1},e}function r4(e,t,i){return e=Ga(6,e,null,t),e.lanes=i,e}function o4(e,t,i){return t=Ga(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function XV(e,t,i,l,h){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=L3(0),this.expirationTimes=L3(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=L3(0),this.identifierPrefix=l,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function s4(e,t,i,l,h,f,_,o,I){return e=new XV(e,t,i,o,I),t===1?(t=1,f===!0&&(t|=8)):t=0,f=Ga(3,null,null,t),e.current=f,f.stateNode=e,f.memoizedState={element:l,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},vM(f),e}function JV(e,t,i){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ff,key:l==null?null:""+l,children:e,containerInfo:t,implementation:i}}function O6(e){if(!e)return Lu;e=e._reactInternals;e:{if(Hh(e)!==e||e.tag!==1)throw Error(Xn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(Xn(171))}if(e.tag===1){var i=e.type;if(oa(i))return lE(e,i,t)}return t}function j6(e,t,i,l,h,f,_,o,I){return e=s4(i,l,!0,e,h,f,_,o,I),e.context=O6(null),i=e.current,l=Hs(),h=Fu(i),f=jc(l,h),f.callback=t??null,Ou(i,f,h),e.current.lanes=h,_m(e,h,l),la(e,l),e}function q_(e,t,i,l){var h=t.current,f=Hs(),_=Fu(h);return i=O6(i),t.context===null?t.context=i:t.pendingContext=i,t=jc(f,_),t.payload={element:e},l=l===void 0?null:l,l!==null&&(t.callback=l),e=Ou(h,t,_),e!==null&&(yl(e,h,_,f),S_(e,h,_)),_}function K_(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function P6(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function a4(e,t){P6(e,t),(e=e.alternate)&&P6(e,t)}function eH(){return null}var R6=typeof reportError=="function"?reportError:function(e){console.error(e)};function l4(e){this._internalRoot=e}X_.prototype.render=l4.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Xn(409));q_(e,t,null,null)},X_.prototype.unmount=l4.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xh(function(){q_(null,e,null,null)}),t[Nc]=null}};function X_(e){this._internalRoot=e}X_.prototype.unstable_scheduleHydration=function(e){if(e){var t=xA();e={blockedOn:null,target:e,priority:t};for(var i=0;i<Cu.length&&t!==0&&t<Cu[i].priority;i++);Cu.splice(i,0,e),i===0&&MA(e)}};function c4(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function J_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function F6(){}function tH(e,t,i,l,h){if(h){if(typeof l=="function"){var f=l;l=function(){var D=K_(_);f.call(D)}}var _=j6(t,l,e,0,null,!1,!1,"",F6);return e._reactRootContainer=_,e[Nc]=_.current,Lm(e.nodeType===8?e.parentNode:e),Xh(),_}for(;h=e.lastChild;)e.removeChild(h);if(typeof l=="function"){var o=l;l=function(){var D=K_(I);o.call(D)}}var I=s4(e,0,!1,null,null,!1,!1,"",F6);return e._reactRootContainer=I,e[Nc]=I.current,Lm(e.nodeType===8?e.parentNode:e),Xh(function(){q_(t,I,i,l)}),I}function ev(e,t,i,l,h){var f=i._reactRootContainer;if(f){var _=f;if(typeof h=="function"){var o=h;h=function(){var I=K_(_);o.call(I)}}q_(t,_,e,h)}else _=tH(i,t,e,h,l);return K_(_)}_A=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var i=ym(t.pendingLanes);i!==0&&(z3(t,i|1),la(t,jo()),!(Br&6)&&(Rf=jo()+500,zu()))}break;case 13:Xh(function(){var l=Oc(e,1);if(l!==null){var h=Hs();yl(l,e,1,h)}}),a4(e,1)}},k3=function(e){if(e.tag===13){var t=Oc(e,134217728);if(t!==null){var i=Hs();yl(t,e,134217728,i)}a4(e,134217728)}},vA=function(e){if(e.tag===13){var t=Fu(e),i=Oc(e,t);if(i!==null){var l=Hs();yl(i,e,t,l)}a4(e,t)}},xA=function(){return Wr},wA=function(e,t){var i=Wr;try{return Wr=e,t()}finally{Wr=i}},S3=function(e,t,i){switch(t){case"input":if(_3(e,i),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<i.length;t++){var l=i[t];if(l!==e&&l.form===e.form){var h=y_(l);if(!h)throw Error(Xn(90));$D(l),_3(l,h)}}}break;case"textarea":qD(e,i);break;case"select":t=i.value,t!=null&&gf(e,!!i.multiple,t,!1)}},oA=e4,sA=Xh;var nH={usingClientEntryPoint:!1,Events:[Om,Tf,y_,iA,rA,e4]},Wm={findFiberByHostInstance:Qh,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},iH={bundleType:Wm.bundleType,version:Wm.version,rendererPackageName:Wm.rendererPackageName,rendererConfig:Wm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ec.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=uA(e),e===null?null:e.stateNode},findFiberByHostInstance:Wm.findFiberByHostInstance||eH,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tv=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tv.isDisabled&&tv.supportsFiber)try{Xy=tv.inject(iH),Rl=tv}catch{}}_a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nH,_a.createPortal=function(e,t){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!c4(t))throw Error(Xn(200));return JV(e,t,null,i)},_a.createRoot=function(e,t){if(!c4(e))throw Error(Xn(299));var i=!1,l="",h=R6;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=s4(e,1,!1,null,null,i,!1,l,h),e[Nc]=t.current,Lm(e.nodeType===8?e.parentNode:e),new l4(t)},_a.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Xn(188)):(e=Object.keys(e).join(","),Error(Xn(268,e)));return e=uA(t),e=e===null?null:e.stateNode,e},_a.flushSync=function(e){return Xh(e)},_a.hydrate=function(e,t,i){if(!J_(t))throw Error(Xn(200));return ev(null,e,t,!0,i)},_a.hydrateRoot=function(e,t,i){if(!c4(e))throw Error(Xn(405));var l=i!=null&&i.hydratedSources||null,h=!1,f="",_=R6;if(i!=null&&(i.unstable_strictMode===!0&&(h=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(_=i.onRecoverableError)),t=j6(t,null,e,1,i??null,h,!1,f,_),e[Nc]=t.current,Lm(e),l)for(e=0;e<l.length;e++)i=l[e],h=i._getVersion,h=h(i._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[i,h]:t.mutableSourceEagerHydrationData.push(i,h);return new X_(t)},_a.render=function(e,t,i){if(!J_(t))throw Error(Xn(200));return ev(null,e,t,!1,i)},_a.unmountComponentAtNode=function(e){if(!J_(e))throw Error(Xn(40));return e._reactRootContainer?(Xh(function(){ev(null,null,e,!1,function(){e._reactRootContainer=null,e[Nc]=null})}),!0):!1},_a.unstable_batchedUpdates=e4,_a.unstable_renderSubtreeIntoContainer=function(e,t,i,l){if(!J_(i))throw Error(Xn(200));if(e==null||e._reactInternals===void 0)throw Error(Xn(38));return ev(e,t,i,!1,l)},_a.version="18.2.0-next-9e3b772b8-20220608";function B6(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B6)}catch(e){console.error(e)}}B6(),zD.exports=_a;var Fc=zD.exports;const qm=ul(Fc);function rH(e){const t=new Error(e);if(t.stack===void 0)try{throw t}catch{}return t}var oH=rH,pr=oH;function sH(e){return!!e&&typeof e.then=="function"}var go=sH;function aH(e,t){if(e!=null)return e;throw pr(t??"Got unexpected null or undefined")}var vo=aH;function cr(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class nv{getValue(){throw pr("BaseLoadable")}toPromise(){throw pr("BaseLoadable")}valueMaybe(){throw pr("BaseLoadable")}valueOrThrow(){throw pr(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw pr("BaseLoadable")}promiseOrThrow(){throw pr(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw pr("BaseLoadable")}errorOrThrow(){throw pr(`Loadable expected error, but in "${this.state}" state`)}is(t){return t.state===this.state&&t.contents===this.contents}map(t){throw pr("BaseLoadable")}}class lH extends nv{constructor(t){super(),cr(this,"state","hasValue"),cr(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 go(i)?nd(i):Bf(i)?i:Km(i)}catch(i){return go(i)?nd(i.next(()=>this.map(t))):iv(i)}}}class cH extends nv{constructor(t){super(),cr(this,"state","hasError"),cr(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 U6 extends nv{constructor(t){super(),cr(this,"state","loading"),cr(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 nd(this.contents.then(i=>{const l=t(i);if(Bf(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(go(i))return i.then(()=>this.map(t).contents);throw i}))}}function Km(e){return Object.freeze(new lH(e))}function iv(e){return Object.freeze(new cH(e))}function nd(e){return Object.freeze(new U6(e))}function V6(){return Object.freeze(new U6(new Promise(()=>{})))}function uH(e){return e.every(t=>t.state==="hasValue")?Km(e.map(t=>t.contents)):e.some(t=>t.state==="hasError")?iv(vo(e.find(t=>t.state==="hasError"),"Invalid loadable passed to loadableAll").contents):nd(Promise.all(e.map(t=>t.contents)))}function H6(e){const i=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(h=>e[h])).map(h=>Bf(h)?h:go(h)?nd(h):Km(h)),l=uH(i);return Array.isArray(e)?l:l.map(h=>Object.getOwnPropertyNames(e).reduce((f,_,o)=>({...f,[_]:h[o]}),{}))}function Bf(e){return e instanceof nv}var id={loadableWithValue:Km,loadableWithError:iv,loadableWithPromise:nd,loadableLoading:V6,loadableAll:H6,isLoadable:Bf,RecoilLoadable:{of:e=>go(e)?nd(e):Bf(e)?e:Km(e),error:e=>iv(e),loading:()=>V6(),all:H6,isLoadable:Bf}},hH=id.loadableWithValue,dH=id.loadableWithError,fH=id.loadableWithPromise,pH=id.loadableLoading,gH=id.loadableAll,mH=id.isLoadable,yH=id.RecoilLoadable,Xm=Object.freeze({__proto__:null,loadableWithValue:hH,loadableWithError:dH,loadableWithPromise:fH,loadableLoading:pH,loadableAll:gH,isLoadable:mH,RecoilLoadable:yH});const u4={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 _H(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 pr(`process.env.${e} value must be 'true', 'false', or empty: ${h}`);t(h==="true")}function vH(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 xH(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(_H("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",t=>{u4.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=t}),vH("RECOIL_GKS_ENABLED",t=>{t.forEach(i=>{u4.RECOIL_GKS_ENABLED.add(i)})}))}xH();var Uf=u4;function rv(e){return Uf.RECOIL_GKS_ENABLED.has(e)}rv.setPass=e=>{Uf.RECOIL_GKS_ENABLED.add(e)},rv.setFail=e=>{Uf.RECOIL_GKS_ENABLED.delete(e)},rv.clear=()=>{Uf.RECOIL_GKS_ENABLED.clear()};var no=rv;function wH(e,t,{error:i}={}){return null}var bH=wH,h4=bH,d4,f4,p4;const MH=(d4=Lr.createMutableSource)!==null&&d4!==void 0?d4:Lr.unstable_createMutableSource,Q6=(f4=Lr.useMutableSource)!==null&&f4!==void 0?f4:Lr.unstable_useMutableSource,$6=(p4=Lr.useSyncExternalStore)!==null&&p4!==void 0?p4:Lr.unstable_useSyncExternalStore;function IH(){var e;const{ReactCurrentDispatcher:t,ReactCurrentOwner:i}=Lr.__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 TH(){return no("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:no("recoil_sync_external_store")&&$6!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:no("recoil_mutable_source")&&Q6!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?no("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:no("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function SH(){return!1}var Jm={createMutableSource:MH,useMutableSource:Q6,useSyncExternalStore:$6,currentRendererSupportsUseSyncExternalStore:IH,reactMode:TH,isFastRefreshEnabled:SH};class g4{constructor(t){cr(this,"key",void 0),this.key=t}toJSON(){return{key:this.key}}}class Y6 extends g4{}class G6 extends g4{}function CH(e){return e instanceof Y6||e instanceof G6}var ov={AbstractRecoilValue:g4,RecoilState:Y6,RecoilValueReadOnly:G6,isRecoilValue:CH},DH=ov.AbstractRecoilValue,AH=ov.RecoilState,EH=ov.RecoilValueReadOnly,NH=ov.isRecoilValue,Vf=Object.freeze({__proto__:null,AbstractRecoilValue:DH,RecoilState:AH,RecoilValueReadOnly:EH,isRecoilValue:NH});function LH(e,t){return function*(){let i=0;for(const l of e)yield t(l,i++)}()}var sv=LH;class Z6{}const zH=new Z6,rd=new Map,m4=new Map;function kH(e){return sv(e,t=>vo(m4.get(t)))}function OH(e){if(rd.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 jH(e){Uf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&OH(e.key),rd.set(e.key,e);const t=e.set==null?new Vf.RecoilValueReadOnly(e.key):new Vf.RecoilState(e.key);return m4.set(e.key,t),t}class W6 extends Error{}function PH(e){const t=rd.get(e);if(t==null)throw new W6(`Missing definition for RecoilValue: "${e}""`);return t}function RH(e){return rd.get(e)}const av=new Map;function FH(e){var t;if(!no("recoil_memory_managament_2020"))return;const i=rd.get(e);if(i!=null&&(t=i.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(i)){var l;rd.delete(e),(l=q6(e))===null||l===void 0||l(),av.delete(e)}}function BH(e,t){no("recoil_memory_managament_2020")&&(t===void 0?av.delete(e):av.set(e,t))}function q6(e){return av.get(e)}var ca={nodes:rd,recoilValues:m4,registerNode:jH,getNode:PH,getNodeMaybe:RH,deleteNodeConfigIfPossible:FH,setConfigDeletionHandler:BH,getConfigDeletionHandler:q6,recoilValuesForKeys:kH,NodeMissingError:W6,DefaultValue:Z6,DEFAULT_VALUE:zH};function UH(e,t){t()}var VH={enqueueExecution:UH};function HH(e,t){return t={exports:{}},e(t,t.exports),t.exports}var QH=HH(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(lt){return typeof lt}:function(lt){return lt&&typeof Symbol=="function"&&lt.constructor===Symbol&&lt!==Symbol.prototype?"symbol":typeof lt},i={},l=5,h=Math.pow(2,l),f=h-1,_=h/2,o=h/4,I={},D=function(it){return function(){return it}},O=i.hash=function(lt){var it=typeof lt>"u"?"undefined":t(lt);if(it==="number")return lt;it!=="string"&&(lt+="");for(var Qt=0,$t=0,tn=lt.length;$t<tn;++$t){var mn=lt.charCodeAt($t);Qt=(Qt<<5)-Qt+mn|0}return Qt},P=function(it){return it-=it>>1&1431655765,it=(it&858993459)+(it>>2&858993459),it=it+(it>>4)&252645135,it+=it>>8,it+=it>>16,it&127},F=function(it,Qt){return Qt>>>it&f},Q=function(it){return 1<<it},J=function(it,Qt){return P(it&Qt-1)},ae=function(it,Qt,$t,tn){var mn=tn;if(!it){var Nn=tn.length;mn=new Array(Nn);for(var Gn=0;Gn<Nn;++Gn)mn[Gn]=tn[Gn]}return mn[Qt]=$t,mn},Ne=function(it,Qt,$t){var tn=$t.length-1,mn=0,Nn=0,Gn=$t;if(it)mn=Nn=Qt;else for(Gn=new Array(tn);mn<Qt;)Gn[Nn++]=$t[mn++];for(++mn;mn<=tn;)Gn[Nn++]=$t[mn++];return it&&(Gn.length=tn),Gn},oe=function(it,Qt,$t,tn){var mn=tn.length;if(it){for(var Nn=mn;Nn>=Qt;)tn[Nn--]=tn[Nn];return tn[Qt]=$t,tn}for(var Gn=0,fi=0,ri=new Array(mn+1);Gn<Qt;)ri[fi++]=tn[Gn++];for(ri[Qt]=$t;Gn<mn;)ri[++fi]=tn[Gn++];return ri},Z=1,W=2,se=3,ve=4,ue={__hamt_isEmpty:!0},Be=function(it){return it===ue||it&&it.__hamt_isEmpty},$e=function(it,Qt,$t,tn){return{type:Z,edit:it,hash:Qt,key:$t,value:tn,_modify:gt}},Ue=function(it,Qt,$t){return{type:W,edit:it,hash:Qt,children:$t,_modify:Rt}},Fe=function(it,Qt,$t){return{type:se,edit:it,mask:Qt,children:$t,_modify:H}},Ke=function(it,Qt,$t){return{type:ve,edit:it,size:Qt,children:$t,_modify:le}},ct=function(it){return it===ue||it.type===Z||it.type===W},yt=function(it,Qt,$t,tn,mn){for(var Nn=[],Gn=tn,fi=0,ri=0;Gn;++ri)Gn&1&&(Nn[ri]=mn[fi++]),Gn>>>=1;return Nn[Qt]=$t,Ke(it,fi+1,Nn)},Ht=function(it,Qt,$t,tn){for(var mn=new Array(Qt-1),Nn=0,Gn=0,fi=0,ri=tn.length;fi<ri;++fi)if(fi!==$t){var Ii=tn[fi];Ii&&!Be(Ii)&&(mn[Nn++]=Ii,Gn|=1<<fi)}return Fe(it,Gn,mn)},_t=function lt(it,Qt,$t,tn,mn,Nn){if($t===mn)return Ue(it,$t,[Nn,tn]);var Gn=F(Qt,$t),fi=F(Qt,mn);return Fe(it,Q(Gn)|Q(fi),Gn===fi?[lt(it,Qt+l,$t,tn,mn,Nn)]:Gn<fi?[tn,Nn]:[Nn,tn])},wt=function(it,Qt,$t,tn,mn,Nn,Gn,fi){for(var ri=mn.length,Ii=0;Ii<ri;++Ii){var Lt=mn[Ii];if($t(Gn,Lt.key)){var Qi=Lt.value,_r=Nn(Qi);return _r===Qi?mn:_r===I?(--fi.value,Ne(it,Ii,mn)):ae(it,Ii,$e(Qt,tn,Gn,_r),mn)}}var br=Nn();return br===I?mn:(++fi.value,ae(it,ri,$e(Qt,tn,Gn,br),mn))},Ft=function(it,Qt){return it===Qt.edit},gt=function(it,Qt,$t,tn,mn,Nn,Gn){if(Qt(Nn,this.key)){var fi=tn(this.value);return fi===this.value?this:fi===I?(--Gn.value,ue):Ft(it,this)?(this.value=fi,this):$e(it,mn,Nn,fi)}var ri=tn();return ri===I?this:(++Gn.value,_t(it,$t,this.hash,this,mn,$e(it,mn,Nn,ri)))},Rt=function(it,Qt,$t,tn,mn,Nn,Gn){if(mn===this.hash){var fi=Ft(it,this),ri=wt(fi,it,Qt,this.hash,this.children,tn,Nn,Gn);return ri===this.children?this:ri.length>1?Ue(it,this.hash,ri):ri[0]}var Ii=tn();return Ii===I?this:(++Gn.value,_t(it,$t,this.hash,this,mn,$e(it,mn,Nn,Ii)))},H=function(it,Qt,$t,tn,mn,Nn,Gn){var fi=this.mask,ri=this.children,Ii=F($t,mn),Lt=Q(Ii),Qi=J(fi,Lt),_r=fi&Lt,br=_r?ri[Qi]:ue,Xe=br._modify(it,Qt,$t+l,tn,mn,Nn,Gn);if(br===Xe)return this;var te=Ft(it,this),de=fi,me=void 0;if(_r&&Be(Xe)){if(de&=~Lt,!de)return ue;if(ri.length<=2&&ct(ri[Qi^1]))return ri[Qi^1];me=Ne(te,Qi,ri)}else if(!_r&&!Be(Xe)){if(ri.length>=_)return yt(it,Ii,Xe,fi,ri);de|=Lt,me=oe(te,Qi,Xe,ri)}else me=ae(te,Qi,Xe,ri);return te?(this.mask=de,this.children=me,this):Fe(it,de,me)},le=function(it,Qt,$t,tn,mn,Nn,Gn){var fi=this.size,ri=this.children,Ii=F($t,mn),Lt=ri[Ii],Qi=(Lt||ue)._modify(it,Qt,$t+l,tn,mn,Nn,Gn);if(Lt===Qi)return this;var _r=Ft(it,this),br=void 0;if(Be(Lt)&&!Be(Qi))++fi,br=ae(_r,Ii,Qi,ri);else if(!Be(Lt)&&Be(Qi)){if(--fi,fi<=o)return Ht(it,fi,Ii,ri);br=ae(_r,Ii,ue,ri)}else br=ae(_r,Ii,Qi,ri);return _r?(this.size=fi,this.children=br,this):Ke(it,fi,br)};ue._modify=function(lt,it,Qt,$t,tn,mn,Nn){var Gn=$t();return Gn===I?ue:(++Nn.value,$e(lt,tn,mn,Gn))};function T(lt,it,Qt,$t,tn){this._editable=lt,this._edit=it,this._config=Qt,this._root=$t,this._size=tn}T.prototype.setTree=function(lt,it){return this._editable?(this._root=lt,this._size=it,this):lt===this._root?this:new T(this._editable,this._edit,this._config,lt,it)};var L=i.tryGetHash=function(lt,it,Qt,$t){for(var tn=$t._root,mn=0,Nn=$t._config.keyEq;;)switch(tn.type){case Z:return Nn(Qt,tn.key)?tn.value:lt;case W:{if(it===tn.hash)for(var Gn=tn.children,fi=0,ri=Gn.length;fi<ri;++fi){var Ii=Gn[fi];if(Nn(Qt,Ii.key))return Ii.value}return lt}case se:{var Lt=F(mn,it),Qi=Q(Lt);if(tn.mask&Qi){tn=tn.children[J(tn.mask,Qi)],mn+=l;break}return lt}case ve:{if(tn=tn.children[F(mn,it)],tn){mn+=l;break}return lt}default:return lt}};T.prototype.tryGetHash=function(lt,it,Qt){return L(lt,it,Qt,this)};var $=i.tryGet=function(lt,it,Qt){return L(lt,Qt._config.hash(it),it,Qt)};T.prototype.tryGet=function(lt,it){return $(lt,it,this)};var Y=i.getHash=function(lt,it,Qt){return L(void 0,lt,it,Qt)};T.prototype.getHash=function(lt,it){return Y(lt,it,this)},i.get=function(lt,it){return L(void 0,it._config.hash(lt),lt,it)},T.prototype.get=function(lt,it){return $(it,lt,this)};var q=i.has=function(lt,it,Qt){return L(I,lt,it,Qt)!==I};T.prototype.hasHash=function(lt,it){return q(lt,it,this)};var ce=i.has=function(lt,it){return q(it._config.hash(lt),lt,it)};T.prototype.has=function(lt){return ce(lt,this)};var pe=function(it,Qt){return it===Qt};i.make=function(lt){return new T(0,0,{keyEq:lt&&lt.keyEq||pe,hash:lt&&lt.hash||O},ue,0)},i.empty=i.make();var fe=i.isEmpty=function(lt){return lt&&!!Be(lt._root)};T.prototype.isEmpty=function(){return fe(this)};var we=i.modifyHash=function(lt,it,Qt,$t){var tn={value:$t._size},mn=$t._root._modify($t._editable?$t._edit:NaN,$t._config.keyEq,0,lt,it,Qt,tn);return $t.setTree(mn,tn.value)};T.prototype.modifyHash=function(lt,it,Qt){return we(Qt,lt,it,this)};var He=i.modify=function(lt,it,Qt){return we(lt,Qt._config.hash(it),it,Qt)};T.prototype.modify=function(lt,it){return He(it,lt,this)};var nt=i.setHash=function(lt,it,Qt,$t){return we(D(Qt),lt,it,$t)};T.prototype.setHash=function(lt,it,Qt){return nt(lt,it,Qt,this)};var Qe=i.set=function(lt,it,Qt){return nt(Qt._config.hash(lt),lt,it,Qt)};T.prototype.set=function(lt,it){return Qe(lt,it,this)};var tt=D(I),Ge=i.removeHash=function(lt,it,Qt){return we(tt,lt,it,Qt)};T.prototype.removeHash=T.prototype.deleteHash=function(lt,it){return Ge(lt,it,this)};var It=i.remove=function(lt,it){return Ge(it._config.hash(lt),lt,it)};T.prototype.remove=T.prototype.delete=function(lt){return It(lt,this)};var Mt=i.beginMutation=function(lt){return new T(lt._editable+1,lt._edit+1,lt._config,lt._root,lt._size)};T.prototype.beginMutation=function(){return Mt(this)};var At=i.endMutation=function(lt){return lt._editable=lt._editable&&lt._editable-1,lt};T.prototype.endMutation=function(){return At(this)};var Nt=i.mutate=function(lt,it){var Qt=Mt(it);return lt(Qt),At(Qt)};T.prototype.mutate=function(lt){return Nt(lt,this)};var hn=function(it){return it&&Jt(it[0],it[1],it[2],it[3],it[4])},Jt=function(it,Qt,$t,tn,mn){for(;$t<it;){var Nn=Qt[$t++];if(Nn&&!Be(Nn))return fn(Nn,tn,[it,Qt,$t,tn,mn])}return hn(mn)},fn=function(it,Qt,$t){switch(it.type){case Z:return{value:Qt(it),rest:$t};case W:case ve:case se:var tn=it.children;return Jt(tn.length,tn,0,Qt,$t);default:return hn($t)}},Xt={done:!0};function xn(lt){this.v=lt}xn.prototype.next=function(){if(!this.v)return Xt;var lt=this.v;return this.v=hn(lt.rest),lt},xn.prototype[Symbol.iterator]=function(){return this};var kn=function(it,Qt){return new xn(fn(it._root,Qt))},vt=function(it){return[it.key,it.value]},ft=i.entries=function(lt){return kn(lt,vt)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return ft(this)};var Sn=function(it){return it.key},In=i.keys=function(lt){return kn(lt,Sn)};T.prototype.keys=function(){return In(this)};var Ln=function(it){return it.value},hi=i.values=T.prototype.values=function(lt){return kn(lt,Ln)};T.prototype.values=function(){return hi(this)};var ci=i.fold=function(lt,it,Qt){var $t=Qt._root;if($t.type===Z)return lt(it,$t.value,$t.key);for(var tn=[$t.children],mn=void 0;mn=tn.pop();)for(var Nn=0,Gn=mn.length;Nn<Gn;){var fi=mn[Nn++];fi&&fi.type&&(fi.type===Z?it=lt(it,fi.value,fi.key):tn.push(fi.children))}return it};T.prototype.fold=function(lt,it){return ci(lt,it,this)};var Wt=i.forEach=function(lt,it){return ci(function(Qt,$t,tn){return lt($t,tn,it)},null,it)};T.prototype.forEach=function(lt){return Wt(lt,this)};var Vn=i.count=function(lt){return lt._size};T.prototype.count=function(){return Vn(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=i:(void 0).hamt=i});class $H{constructor(t){cr(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 _4(this)}toMap(){return new Map(this._map)}}class y4{constructor(t){if(cr(this,"_hamt",QH.empty.beginMutation()),t instanceof y4){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 _4(this)}toMap(){return new Map(this._hamt)}}function _4(e){return no("recoil_hamt_2020")?new y4(e):new $H(e)}var YH={persistentMap:_4},GH=YH.persistentMap,ZH=Object.freeze({__proto__:null,persistentMap:GH});function WH(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 e1=WH;function qH(e,t){const i=new Map;return e.forEach((l,h)=>{i.set(h,t(l,h))}),i}var lv=qH;function KH(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function XH(e){return{nodeDeps:lv(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:lv(e.nodeToNodeSubscriptions,t=>new Set(t))}}function v4(e,t,i,l){const{nodeDeps:h,nodeToNodeSubscriptions:f}=i,_=h.get(e);if(_&&l&&_!==l.nodeDeps.get(e))return;h.set(e,t);const o=_==null?t:e1(t,_);for(const I of o)f.has(I)||f.set(I,new Set),vo(f.get(I)).add(e);if(_){const I=e1(_,t);for(const D of I){if(!f.has(D))return;const O=vo(f.get(D));O.delete(e),O.size===0&&f.delete(D)}}}function JH(e,t,i,l){var h,f,_,o;const I=i.getState();l===I.currentTree.version||l===((h=I.nextTree)===null||h===void 0?void 0:h.version)||((f=I.previousTree)===null||f===void 0||f.version);const D=i.getGraph(l);if(v4(e,t,D),l===((_=I.previousTree)===null||_===void 0?void 0:_.version)){const P=i.getGraph(I.currentTree.version);v4(e,t,P,D)}if(l===((o=I.previousTree)===null||o===void 0?void 0:o.version)||l===I.currentTree.version){var O;const P=(O=I.nextTree)===null||O===void 0?void 0:O.version;if(P!==void 0){const F=i.getGraph(P);v4(e,t,F,D)}}}var t1={cloneGraph:XH,graph:KH,saveDepsToStore:JH};let eQ=0;const tQ=()=>eQ++;let nQ=0;const iQ=()=>nQ++;let rQ=0;var cv={getNextTreeStateVersion:tQ,getNextStoreID:iQ,getNextComponentID:()=>rQ++};const{persistentMap:K6}=ZH,{graph:oQ}=t1,{getNextTreeStateVersion:X6}=cv;function J6(){const e=X6();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:K6(),nonvalidatedAtoms:K6()}}function sQ(){const e=J6();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,oQ()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var eN={makeEmptyTreeState:J6,makeEmptyStoreState:sQ,getNextTreeStateVersion:X6};class tN{}function aQ(){return new tN}var uv={RetentionZone:tN,retentionZone:aQ};function lQ(e,t){const i=new Set(e);return i.add(t),i}function cQ(e,t){const i=new Set(e);return i.delete(t),i}function uQ(e,t,i){const l=new Map(e);return l.set(t,i),l}function hQ(e,t,i){const l=new Map(e);return l.set(t,i(l.get(t))),l}function dQ(e,t){const i=new Map(e);return i.delete(t),i}function fQ(e,t){const i=new Map(e);return t.forEach(l=>i.delete(l)),i}var nN={setByAddingToSet:lQ,setByDeletingFromSet:cQ,mapBySettingInMap:uQ,mapByUpdatingInMap:hQ,mapByDeletingFromMap:dQ,mapByDeletingMultipleFromMap:fQ};function*pQ(e,t){let i=0;for(const l of e)t(l,i++)&&(yield l)}var x4=pQ;function gQ(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 iN=gQ;const{getNode:n1,getNodeMaybe:mQ,recoilValuesForKeys:rN}=ca,{RetentionZone:oN}=uv,{setByAddingToSet:yQ}=nN,_Q=Object.freeze(new Set);class vQ extends Error{}function xQ(e,t,i){if(!no("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:l}=e.getState().retention;function h(f){let _=l.get(f);_||l.set(f,_=new Set),_.add(t)}if(i instanceof oN)h(i);else if(Array.isArray(i))for(const f of i)h(f);return()=>{if(!no("recoil_memory_managament_2020"))return;const{retention:f}=e.getState();function _(o){const I=f.nodesRetainedByZone.get(o);I==null||I.delete(t),I&&I.size===0&&f.nodesRetainedByZone.delete(o)}if(i instanceof oN)_(i);else if(Array.isArray(i))for(const o of i)_(o)}}function w4(e,t,i,l){const h=e.getState();if(h.nodeCleanupFunctions.has(i))return;const f=n1(i),_=xQ(e,i,f.retainedBy),o=f.init(e,t,l);h.nodeCleanupFunctions.set(i,()=>{o(),_()})}function wQ(e,t,i){w4(e,e.getState().currentTree,t,i)}function bQ(e,t){var i;const l=e.getState();(i=l.nodeCleanupFunctions.get(t))===null||i===void 0||i(),l.nodeCleanupFunctions.delete(t)}function MQ(e,t,i){return w4(e,t,i,"get"),n1(i).get(e,t)}function sN(e,t,i){return n1(i).peek(e,t)}function IQ(e,t,i){var l;const h=mQ(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:yQ(e.dirtyAtoms,t)}}function TQ(e,t,i,l){const h=n1(i);if(h.set==null)throw new vQ(`Attempt to set read-only RecoilValue: ${i}`);const f=h.set;return w4(e,t,i,"set"),f(e,t,l)}function SQ(e,t,i){const l=e.getState(),h=e.getGraph(t.version),f=n1(i).nodeType;return iN({type:f},{loadable:()=>sN(e,t,i),isActive:()=>l.knownAtoms.has(i)||l.knownSelectors.has(i),isSet:()=>f==="selector"?!1:t.atomValues.has(i),isModified:()=>t.dirtyAtoms.has(i),deps:()=>{var _;return rN((_=h.nodeDeps.get(i))!==null&&_!==void 0?_:[])},subscribers:()=>{var _,o;return{nodes:rN(x4(aN(e,t,new Set([i])),I=>I!==i)),components:sv((_=(o=l.nodeToComponentSubscriptions.get(i))===null||o===void 0?void 0:o.values())!==null&&_!==void 0?_:[],([I])=>({name:I}))}}})}function aN(e,t,i){const l=new Set,h=Array.from(i),f=e.getGraph(t.version);for(let o=h.pop();o;o=h.pop()){var _;l.add(o);const I=(_=f.nodeToNodeSubscriptions.get(o))!==null&&_!==void 0?_:_Q;for(const D of I)l.has(D)||h.push(D)}return l}var Vu={getNodeLoadable:MQ,peekNodeLoadable:sN,setNodeValue:TQ,initializeNode:wQ,cleanUpNode:bQ,setUnvalidatedAtomValue_DEPRECATED:IQ,peekNodeInfo:SQ,getDownstreamNodes:aN};let lN=null;function CQ(e){lN=e}function DQ(){var e;(e=lN)===null||e===void 0||e()}var cN={setInvalidateMemoizedSnapshot:CQ,invalidateMemoizedSnapshot:DQ};const{getDownstreamNodes:AQ,getNodeLoadable:uN,setNodeValue:EQ}=Vu,{getNextComponentID:NQ}=cv,{getNode:LQ,getNodeMaybe:hN}=ca,{DefaultValue:b4}=ca,{reactMode:zQ}=Jm,{AbstractRecoilValue:kQ,RecoilState:OQ,RecoilValueReadOnly:jQ,isRecoilValue:PQ}=Vf,{invalidateMemoizedSnapshot:RQ}=cN;function FQ(e,{key:t},i=e.getState().currentTree){var l,h;const f=e.getState();i.version===f.currentTree.version||i.version===((l=f.nextTree)===null||l===void 0?void 0:l.version)||(i.version,(h=f.previousTree)===null||h===void 0||h.version);const _=uN(e,i,t);return _.state==="loading"&&_.contents.catch(()=>{}),_}function BQ(e,t){const i=e.clone();return t.forEach((l,h)=>{l.state==="hasValue"&&l.contents instanceof b4?i.delete(h):i.set(h,l)}),i}function UQ(e,t,{key:i},l){if(typeof l=="function"){const h=uN(e,t,i);if(h.state==="loading"){const f=`Tried to set atom or selector "${i}" using an updater function while the current state is pending, this is not currently supported.`;throw pr(f)}else if(h.state==="hasError")throw h.contents;return l(h.contents)}else return l}function VQ(e,t,i){if(i.type==="set"){const{recoilValue:h,valueOrUpdater:f}=i,_=UQ(e,t,h,f),o=EQ(e,t,h.key,_);for(const[I,D]of o.entries())M4(t,I,D)}else if(i.type==="setLoadable"){const{recoilValue:{key:h},loadable:f}=i;M4(t,h,f)}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:f}=i,_=hN(h);_==null||(l=_.invalidate)===null||l===void 0||l.call(_,t),t.atomValues.delete(h),t.nonvalidatedAtoms.set(h,f),t.dirtyAtoms.add(h)}else h4(`Unknown action ${i.type}`)}function M4(e,t,i){i.state==="hasValue"&&i.contents instanceof b4?e.atomValues.delete(t):e.atomValues.set(t,i),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function dN(e,t){e.replaceState(i=>{const l=fN(i);for(const h of t)VQ(e,l,h);return pN(e,l),RQ(),l})}function hv(e,t){if(i1.length){const i=i1[i1.length-1];let l=i.get(e);l||i.set(e,l=[]),l.push(t)}else dN(e,[t])}const i1=[];function HQ(){const e=new Map;return i1.push(e),()=>{for(const[t,i]of e)dN(t,i);i1.pop()}}function fN(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function pN(e,t){const i=AQ(e,t,t.dirtyAtoms);for(const f of i){var l,h;(l=hN(f))===null||l===void 0||(h=l.invalidate)===null||h===void 0||h.call(l,t)}}function gN(e,t,i){hv(e,{type:"set",recoilValue:t,valueOrUpdater:i})}function QQ(e,t,i){if(i instanceof b4)return gN(e,t,i);hv(e,{type:"setLoadable",recoilValue:t,loadable:i})}function $Q(e,t){hv(e,{type:"markModified",recoilValue:t})}function YQ(e,t,i){hv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:i})}function GQ(e,{key:t},i,l=null){const h=NQ(),f=e.getState();f.nodeToComponentSubscriptions.has(t)||f.nodeToComponentSubscriptions.set(t,new Map),vo(f.nodeToComponentSubscriptions.get(t)).set(h,[l??"<not captured>",i]);const _=zQ();if(_.early&&(_.mode==="LEGACY"||_.mode==="MUTABLE_SOURCE")){const o=e.getState().nextTree;o&&o.dirtyAtoms.has(t)&&i(o)}return{release:()=>{const o=e.getState(),I=o.nodeToComponentSubscriptions.get(t);I===void 0||!I.has(h)||(I.delete(h),I.size===0&&o.nodeToComponentSubscriptions.delete(t))}}}function ZQ(e,t){var i;const{currentTree:l}=e.getState(),h=LQ(t.key);(i=h.clearCache)===null||i===void 0||i.call(h,e,l)}var Hl={RecoilValueReadOnly:jQ,AbstractRecoilValue:kQ,RecoilState:OQ,getRecoilValueAsLoadable:FQ,setRecoilValue:gN,setRecoilValueLoadable:QQ,markRecoilValueModified:$Q,setUnvalidatedRecoilValue:YQ,subscribeToRecoilValue:GQ,isRecoilValue:PQ,applyAtomValueWrites:BQ,batchStart:HQ,writeLoadableToTreeState:M4,invalidateDownstreams:pN,copyTreeState:fN,refreshRecoilValue:ZQ};function WQ(e,t,i){const l=e.entries();let h=l.next();for(;!h.done;){const f=h.value;if(t.call(i,f[1],f[0],e))return!0;h=l.next()}return!1}var qQ=WQ;const{cleanUpNode:KQ}=Vu,{deleteNodeConfigIfPossible:XQ,getNode:mN}=ca,{RetentionZone:yN}=uv,JQ=12e4,_N=new Set;function vN(e,t){const i=e.getState(),l=i.currentTree;if(i.nextTree)return;const h=new Set;for(const _ of t)if(_ instanceof yN)for(const o of i$(i,_))h.add(o);else h.add(_);const f=e$(e,h);for(const _ of f)n$(e,l,_)}function e$(e,t){const i=e.getState(),l=i.currentTree,h=e.getGraph(l.version),f=new Set,_=new Set;return o(t),f;function o(I){const D=new Set,O=t$(e,l,I,f,_);for(const J of O){var P;if(mN(J).retainedBy==="recoilRoot"){_.add(J);continue}if(((P=i.retention.referenceCounts.get(J))!==null&&P!==void 0?P:0)>0){_.add(J);continue}if(xN(J).some(Ne=>i.retention.referenceCounts.get(Ne))){_.add(J);continue}const ae=h.nodeToNodeSubscriptions.get(J);if(ae&&qQ(ae,Ne=>_.has(Ne))){_.add(J);continue}f.add(J),D.add(J)}const F=new Set;for(const J of D)for(const ae of(Q=h.nodeDeps.get(J))!==null&&Q!==void 0?Q:_N){var Q;f.has(ae)||F.add(ae)}F.size&&o(F)}}function t$(e,t,i,l,h){const f=e.getGraph(t.version),_=[],o=new Set;for(;i.size>0;)I(vo(i.values().next().value));return _;function I(D){if(l.has(D)||h.has(D)){i.delete(D);return}if(o.has(D))return;const O=f.nodeToNodeSubscriptions.get(D);if(O)for(const P of O)I(P);o.add(D),i.delete(D),_.push(D)}}function n$(e,t,i){if(!no("recoil_memory_managament_2020"))return;KQ(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=xN(i);for(const I of h){var f;(f=l.retention.nodesRetainedByZone.get(I))===null||f===void 0||f.delete(i)}t.atomValues.delete(i),t.dirtyAtoms.delete(i),t.nonvalidatedAtoms.delete(i);const _=l.graphsByVersion.get(t.version);if(_){const I=_.nodeDeps.get(i);if(I!==void 0){_.nodeDeps.delete(i);for(const D of I){var o;(o=_.nodeToNodeSubscriptions.get(D))===null||o===void 0||o.delete(i)}}_.nodeToNodeSubscriptions.delete(i)}XQ(i)}function i$(e,t){var i;return(i=e.retention.nodesRetainedByZone.get(t))!==null&&i!==void 0?i:_N}function xN(e){const t=mN(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof yN?[t]:t}function r$(e,t){const i=e.getState();i.nextTree?i.retention.retainablesToCheckForRelease.add(t):vN(e,new Set([t]))}function o$(e,t,i){var l;if(!no("recoil_memory_managament_2020"))return;const h=e.getState().retention.referenceCounts,f=((l=h.get(t))!==null&&l!==void 0?l:0)+i;f===0?wN(e,t):h.set(t,f)}function wN(e,t){if(!no("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),r$(e,t)}function s$(e){if(!no("recoil_memory_managament_2020"))return;const t=e.getState();vN(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function a$(e){return e===void 0?"recoilRoot":e}var od={SUSPENSE_TIMEOUT_MS:JQ,updateRetainCount:o$,updateRetainCountToZero:wN,releaseScheduledRetainablesNow:s$,retainedByOptionWithDefault:a$};const{unstable_batchedUpdates:l$}=qm;var c$={unstable_batchedUpdates:l$};const{unstable_batchedUpdates:u$}=c$;var h$={unstable_batchedUpdates:u$};const{batchStart:d$}=Hl,{unstable_batchedUpdates:f$}=h$;let I4=f$||(e=>e());var dv={getBatcher:()=>I4,setBatcher:e=>{I4=e},batchUpdates:e=>{I4(()=>{let t=()=>{};try{t=d$(),e()}finally{t()}})}};function*p$(e){for(const t of e)for(const i of t)yield i}var bN=p$;const MN=typeof Window>"u"||typeof window>"u",g$=e=>!MN&&(e===window||e instanceof Window),m$=typeof navigator<"u"&&navigator.product==="ReactNative";var fv={isSSR:MN,isReactNative:m$,isWindow:g$};function y$(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 _$(e,t){let i,l;return(...h)=>{const f=t(...h);return i===f||(i=f,l=e(...h)),l}}function v$(e,t){let i,l;return[(..._)=>{const o=t(..._);return i===o||(i=o,l=e(..._)),l},()=>{i=null}]}var x$={memoizeWithArgsHash:y$,memoizeOneWithArgsHash:_$,memoizeOneWithArgsHashAndInvalidation:v$};const{batchUpdates:T4}=dv,{initializeNode:w$,peekNodeInfo:b$}=Vu,{graph:M$}=t1,{getNextStoreID:I$}=cv,{DEFAULT_VALUE:T$,recoilValues:IN,recoilValuesForKeys:TN}=ca,{AbstractRecoilValue:S$,getRecoilValueAsLoadable:C$,setRecoilValue:SN,setUnvalidatedRecoilValue:D$}=Hl,{updateRetainCount:pv}=od,{setInvalidateMemoizedSnapshot:A$}=cN,{getNextTreeStateVersion:E$,makeEmptyStoreState:N$}=eN,{isSSR:L$}=fv,{memoizeOneWithArgsHashAndInvalidation:z$}=x$;class gv{constructor(t,i){cr(this,"_store",void 0),cr(this,"_refCount",1),cr(this,"getLoadable",l=>(this.checkRefCount_INTERNAL(),C$(this._store,l))),cr(this,"getPromise",l=>(this.checkRefCount_INTERNAL(),this.getLoadable(l).toPromise())),cr(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 _=this._store.getState().currentTree;return TN(_.dirtyAtoms)}const h=this._store.getState().knownAtoms,f=this._store.getState().knownSelectors;return(l==null?void 0:l.isInitialized)==null?IN.values():l.isInitialized===!0?TN(bN([h,f])):x4(IN.values(),({key:_})=>!h.has(_)&&!f.has(_))}),cr(this,"getInfo_UNSTABLE",({key:l})=>(this.checkRefCount_INTERNAL(),b$(this._store,this._store.getState().currentTree,l))),cr(this,"map",l=>{this.checkRefCount_INTERNAL();const h=new S4(this,T4);return l(h),h}),cr(this,"asyncMap",async l=>{this.checkRefCount_INTERNAL();const h=new S4(this,T4);return h.retain(),await l(h),h.autoRelease_INTERNAL(),h}),this._store={storeID:I$(),parentStoreID:i,getState:()=>t,replaceState:l=>{t.currentTree=l(t.currentTree)},getGraph:l=>{const h=t.graphsByVersion;if(h.has(l))return vo(h.get(l));const f=M$();return h.set(l,f),f},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw pr("Cannot subscribe to Snapshots")}};for(const l of this._store.getState().knownAtoms)w$(this._store,l,"get"),pv(this._store,l,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){L$||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(),!no("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){no("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 CN(e,t,i=!1){const l=e.getState(),h=i?E$():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(sv(l.nodeCleanupFunctions.entries(),([f])=>[f,()=>{}]))}}function k$(e){const t=new gv(N$());return e!=null?t.map(e):t}const[DN,AN]=z$((e,t)=>{var i;const l=e.getState(),h=t==="latest"?(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree:vo(l.previousTree);return new gv(CN(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)});A$(AN);function O$(e,t="latest"){const i=DN(e,t);return i.isRetained()?i:(AN(),DN(e,t))}class S4 extends gv{constructor(t,i){super(CN(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),cr(this,"_batch",void 0),cr(this,"set",(l,h)=>{this.checkRefCount_INTERNAL();const f=this.getStore_INTERNAL();this._batch(()=>{pv(f,l.key,1),SN(this.getStore_INTERNAL(),l,h)})}),cr(this,"reset",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();this._batch(()=>{pv(h,l.key,1),SN(this.getStore_INTERNAL(),l,T$)})}),cr(this,"setUnvalidatedAtomValues_DEPRECATED",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();T4(()=>{for(const[f,_]of l.entries())pv(h,f,1),D$(h,new S$(f),_)})}),this._batch=i}}var mv={Snapshot:gv,MutableSnapshot:S4,freshSnapshot:k$,cloneSnapshot:O$},j$=mv.Snapshot,P$=mv.MutableSnapshot,R$=mv.freshSnapshot,F$=mv.cloneSnapshot,yv=Object.freeze({__proto__:null,Snapshot:j$,MutableSnapshot:P$,freshSnapshot:R$,cloneSnapshot:F$});function B$(...e){const t=new Set;for(const i of e)for(const l of i)t.add(l);return t}var U$=B$;const{useRef:V$}=Lr;function H$(e){const t=V$(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var EN=H$;const{getNextTreeStateVersion:Q$,makeEmptyStoreState:NN}=eN,{cleanUpNode:$$,getDownstreamNodes:Y$,initializeNode:G$,setNodeValue:Z$,setUnvalidatedAtomValue_DEPRECATED:W$}=Vu,{graph:q$}=t1,{cloneGraph:K$}=t1,{getNextStoreID:LN}=cv,{createMutableSource:C4,reactMode:zN}=Jm,{applyAtomValueWrites:X$}=Hl,{releaseScheduledRetainablesNow:kN}=od,{freshSnapshot:J$}=yv,{useCallback:eY,useContext:ON,useEffect:D4,useMemo:tY,useRef:nY,useState:iY}=Lr;function r1(){throw pr("This component must be used inside a <RecoilRoot> component.")}const jN=Object.freeze({storeID:LN(),getState:r1,replaceState:r1,getGraph:r1,subscribeToTransactions:r1,addTransactionMetadata:r1});let A4=!1;function PN(e){if(A4)throw pr("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){no("recoil_memory_managament_2020")&&no("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&kN(e);const i=t.currentTree.version,l=Q$();t.nextTree={...t.currentTree,version:l,stateID:l,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(l,K$(vo(t.graphsByVersion.get(i))))}}const RN=Lr.createContext({current:jN}),_v=()=>ON(RN),FN=Lr.createContext(null);function rY(){return ON(FN)}function E4(e,t,i){const l=Y$(e,i,i.dirtyAtoms);for(const h of l){const f=t.nodeToComponentSubscriptions.get(h);if(f)for(const[_,[o,I]]of f)I(i)}}function BN(e){const t=e.getState(),i=t.currentTree,l=i.dirtyAtoms;if(l.size){for(const[h,f]of t.nodeTransactionSubscriptions)if(l.has(h))for(const[_,o]of f)o(e);for(const[h,f]of t.transactionSubscriptions)f(e);(!zN().early||t.suspendedComponentResolvers.size>0)&&(E4(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 oY(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,BN(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):h4("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,no("recoil_memory_managament_2020")&&i==null&&kN(e)}finally{t.commitDepth--}}function sY({setNotifyBatcherOfChange:e}){const t=_v(),[,i]=iY([]);return e(()=>i({})),D4(()=>(e(()=>i({})),()=>{e(()=>{})}),[e]),D4(()=>{VH.enqueueExecution("Batcher",()=>{oY(t.current)})}),null}function aY(e,t){const i=NN();return t({set:(l,h)=>{const f=i.currentTree,_=Z$(e,f,l.key,h),o=new Set(_.keys()),I=f.nonvalidatedAtoms.clone();for(const D of o)I.delete(D);i.currentTree={...f,dirtyAtoms:U$(f.dirtyAtoms,o),atomValues:X$(f.atomValues,_),nonvalidatedAtoms:I}},setUnvalidatedAtomValues:l=>{l.forEach((h,f)=>{i.currentTree=W$(i.currentTree,f,h)})}}),i}function lY(e){const t=J$(e),i=t.getStore_INTERNAL().getState();return t.retain(),i.nodeCleanupFunctions.forEach(l=>l()),i.nodeCleanupFunctions.clear(),i}let UN=0;function cY({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:i,children:l}){let h;const f=Q=>{const J=h.current.graphsByVersion;if(J.has(Q))return vo(J.get(Q));const ae=q$();return J.set(Q,ae),ae},_=(Q,J)=>{if(J==null){const{transactionSubscriptions:ae}=P.current.getState(),Ne=UN++;return ae.set(Ne,Q),{release:()=>{ae.delete(Ne)}}}else{const{nodeTransactionSubscriptions:ae}=P.current.getState();ae.has(J)||ae.set(J,new Map);const Ne=UN++;return vo(ae.get(J)).set(Ne,Q),{release:()=>{const oe=ae.get(J);oe&&(oe.delete(Ne),oe.size===0&&ae.delete(J))}}}},o=Q=>{PN(P.current);for(const J of Object.keys(Q))vo(P.current.getState().nextTree).transactionMetadata[J]=Q[J]},I=Q=>{PN(P.current);const J=vo(h.current.nextTree);let ae;try{A4=!0,ae=Q(J)}finally{A4=!1}ae!==J&&(h.current.nextTree=ae,zN().early&&E4(P.current,h.current,ae),vo(D.current)())},D=nY(null),O=eY(Q=>{D.current=Q},[D]),P=EN(()=>i??{storeID:LN(),getState:()=>h.current,replaceState:I,getGraph:f,subscribeToTransactions:_,addTransactionMetadata:o});i!=null&&(P.current=i),h=EN(()=>e!=null?aY(P.current,e):t!=null?lY(t):NN());const F=tY(()=>C4==null?void 0:C4(h,()=>h.current.currentTree.version),[h]);return D4(()=>{const Q=P.current;for(const J of new Set(Q.getState().knownAtoms))G$(Q,J,"get");return()=>{for(const J of Q.getState().knownAtoms)$$(Q,J)}},[P]),Lr.createElement(RN.Provider,{value:P},Lr.createElement(FN.Provider,{value:F},Lr.createElement(sY,{setNotifyBatcherOfChange:O}),l))}function uY(e){const{override:t,...i}=e,l=_v();return t===!1&&l.current!==jN?e.children:Lr.createElement(cY,i)}function hY(){return _v().current.storeID}var Bc={RecoilRoot:uY,useStoreRef:_v,useRecoilMutableSource:rY,useRecoilStoreID:hY,notifyComponents_FOR_TESTING:E4,sendEndOfBatchNotifications_FOR_TESTING:BN};function dY(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 fY=dY;const{useEffect:pY,useRef:gY}=Lr;function mY(e){const t=gY();return pY(()=>{t.current=e}),t.current}var VN=mY;const{useStoreRef:yY}=Bc,{SUSPENSE_TIMEOUT_MS:_Y}=od,{updateRetainCount:o1}=od,{RetentionZone:vY}=uv,{useEffect:xY,useRef:wY}=Lr,{isSSR:HN}=fv;function bY(e){if(no("recoil_memory_managament_2020"))return MY(e)}function MY(e){const i=(Array.isArray(e)?e:[e]).map(_=>_ instanceof vY?_:_.key),l=yY();xY(()=>{if(!no("recoil_memory_managament_2020"))return;const _=l.current;if(h.current&&!HN)window.clearTimeout(h.current),h.current=null;else for(const o of i)o1(_,o,1);return()=>{for(const o of i)o1(_,o,-1)}},[l,...i]);const h=wY(),f=VN(i);if(!HN&&(f===void 0||!fY(f,i))){const _=l.current;for(const o of i)o1(_,o,1);if(f)for(const o of f)o1(_,o,-1);h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null;for(const o of i)o1(_,o,-1)},_Y)}}var N4=bY;function IY(){return"<component name not available>"}var s1=IY;const{batchUpdates:TY}=dv,{DEFAULT_VALUE:QN}=ca,{currentRendererSupportsUseSyncExternalStore:SY,reactMode:Hf,useMutableSource:CY,useSyncExternalStore:DY}=Jm,{useRecoilMutableSource:AY,useStoreRef:Ql}=Bc,{AbstractRecoilValue:L4,getRecoilValueAsLoadable:a1,setRecoilValue:vv,setUnvalidatedRecoilValue:EY,subscribeToRecoilValue:Qf}=Hl,{useCallback:ua,useEffect:$f,useMemo:$N,useRef:l1,useState:z4}=Lr,{setByAddingToSet:NY}=nN,{isSSR:LY}=fv;function k4(e,t,i){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(h=>{const f=i.current.getState().suspendedComponentResolvers;f.add(h),LY&&go(e.contents)&&e.contents.finally(()=>{f.delete(h)})}):e.state==="hasError"?e.contents:pr(`Invalid value of loadable atom "${t.key}"`)}function zY(){const e=s1(),t=Ql(),[,i]=z4([]),l=l1(new Set);l.current=new Set;const h=l1(new Set),f=l1(new Map),_=ua(I=>{const D=f.current.get(I);D&&(D.release(),f.current.delete(I))},[f]),o=ua((I,D)=>{f.current.has(D)&&i([])},[]);return $f(()=>{const I=t.current;e1(l.current,h.current).forEach(D=>{if(f.current.has(D))return;const O=Qf(I,new L4(D),F=>o(F,D),e);f.current.set(D,O),I.getState().nextTree?I.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{o(I.getState(),D)}):o(I.getState(),D)}),e1(h.current,l.current).forEach(D=>{_(D)}),h.current=l.current}),$f(()=>{const I=f.current;return e1(l.current,new Set(I.keys())).forEach(D=>{const O=Qf(t.current,new L4(D),P=>o(P,D),e);I.set(D,O)}),()=>I.forEach((D,O)=>_(O))},[e,t,_,o]),$N(()=>{function I(J){return ae=>{vv(t.current,J,ae)}}function D(J){return()=>vv(t.current,J,QN)}function O(J){var ae;l.current.has(J.key)||(l.current=NY(l.current,J.key));const Ne=t.current.getState();return a1(t.current,J,Hf().early&&(ae=Ne.nextTree)!==null&&ae!==void 0?ae:Ne.currentTree)}function P(J){const ae=O(J);return k4(ae,J,t)}function F(J){return[P(J),I(J)]}function Q(J){return[O(J),I(J)]}return{getRecoilValue:P,getRecoilValueLoadable:O,getRecoilState:F,getRecoilStateLoadable:Q,getSetRecoilState:I,getResetRecoilState:D}},[l,t])}const kY={current:0};function OY(e){const t=Ql(),i=s1(),l=ua(()=>{var o;const I=t.current,D=I.getState(),O=Hf().early&&(o=D.nextTree)!==null&&o!==void 0?o:D.currentTree;return{loadable:a1(I,e,O),key:e.key}},[t,e]),h=ua(o=>{let I;return()=>{var D,O;const P=o();return(D=I)!==null&&D!==void 0&&D.loadable.is(P.loadable)&&((O=I)===null||O===void 0?void 0:O.key)===P.key?I:(I=P,P)}},[]),f=$N(()=>h(l),[l,h]),_=ua(o=>{const I=t.current;return Qf(I,e,o,i).release},[t,e,i]);return DY(_,f,f).loadable}function jY(e){const t=Ql(),i=ua(()=>{var D;const O=t.current,P=O.getState(),F=Hf().early&&(D=P.nextTree)!==null&&D!==void 0?D:P.currentTree;return a1(O,e,F)},[t,e]),l=ua(()=>i(),[i]),h=s1(),f=ua((D,O)=>{const P=t.current;return Qf(P,e,()=>{if(!no("recoil_suppress_rerender_in_callback"))return O();const Q=i();I.current.is(Q)||O(),I.current=Q},h).release},[t,e,h,i]),_=AY();if(_==null)throw pr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const o=CY(_,l,f),I=l1(o);return $f(()=>{I.current=o}),o}function O4(e){const t=Ql(),i=s1(),l=ua(()=>{var I;const D=t.current,O=D.getState(),P=Hf().early&&(I=O.nextTree)!==null&&I!==void 0?I:O.currentTree;return a1(D,e,P)},[t,e]),h=ua(()=>({loadable:l(),key:e.key}),[l,e.key]),f=ua(I=>{const D=h();return I.loadable.is(D.loadable)&&I.key===D.key?I:D},[h]);$f(()=>{const I=Qf(t.current,e,D=>{o(f)},i);return o(f),I.release},[i,e,t,f]);const[_,o]=z4(h);return _.key!==e.key?h().loadable:_.loadable}function PY(e){const t=Ql(),[,i]=z4([]),l=s1(),h=ua(()=>{var o;const I=t.current,D=I.getState(),O=Hf().early&&(o=D.nextTree)!==null&&o!==void 0?o:D.currentTree;return a1(I,e,O)},[t,e]),f=h(),_=l1(f);return $f(()=>{_.current=f}),$f(()=>{const o=t.current,I=o.getState(),D=Qf(o,e,P=>{var F;if(!no("recoil_suppress_rerender_in_callback"))return i([]);const Q=h();(F=_.current)!==null&&F!==void 0&&F.is(Q)||i(Q),_.current=Q},l);if(I.nextTree)o.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{_.current=null,i([])});else{var O;if(!no("recoil_suppress_rerender_in_callback"))return i([]);const P=h();(O=_.current)!==null&&O!==void 0&&O.is(P)||i(P),_.current=P}return D.release},[l,h,e,t]),f}function j4(e){return no("recoil_memory_managament_2020")&&N4(e),{TRANSITION_SUPPORT:O4,SYNC_EXTERNAL_STORE:SY()?OY:O4,MUTABLE_SOURCE:jY,LEGACY:PY}[Hf().mode](e)}function YN(e){const t=Ql(),i=j4(e);return k4(i,e,t)}function xv(e){const t=Ql();return ua(i=>{vv(t.current,e,i)},[t,e])}function RY(e){const t=Ql();return ua(()=>{vv(t.current,e,QN)},[t,e])}function FY(e){return[YN(e),xv(e)]}function BY(e){return[j4(e),xv(e)]}function UY(){const e=Ql();return(t,i={})=>{TY(()=>{e.current.addTransactionMetadata(i),t.forEach((l,h)=>EY(e.current,new L4(h),l))})}}function GN(e){return no("recoil_memory_managament_2020")&&N4(e),O4(e)}function ZN(e){const t=Ql(),i=GN(e);return k4(i,e,t)}function VY(e){return[ZN(e),xv(e)]}var HY={recoilComponentGetRecoilValueCount_FOR_TESTING:kY,useRecoilInterface:zY,useRecoilState:FY,useRecoilStateLoadable:BY,useRecoilValue:YN,useRecoilValueLoadable:j4,useResetRecoilState:RY,useSetRecoilState:xv,useSetUnvalidatedAtomValues:UY,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:GN,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:ZN,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:VY};function QY(e,t){const i=new Map;for(const[l,h]of e)t(h,l)&&i.set(l,h);return i}var $Y=QY;function YY(e,t){const i=new Set;for(const l of e)t(l)&&i.add(l);return i}var GY=YY;function ZY(...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 WY=ZY;const{batchUpdates:qY}=dv,{DEFAULT_VALUE:KY,getNode:WN,nodes:XY}=ca,{useStoreRef:P4}=Bc,{AbstractRecoilValue:JY,setRecoilValueLoadable:eG}=Hl,{SUSPENSE_TIMEOUT_MS:tG}=od,{cloneSnapshot:wv}=yv,{useCallback:bv,useEffect:qN,useRef:KN,useState:nG}=Lr,{isSSR:XN}=fv;function Mv(e){const t=P4();qN(()=>t.current.subscribeToTransactions(e).release,[e,t])}function JN(e){const t=e.atomValues.toMap(),i=lv($Y(t,(l,h)=>{const _=WN(h).persistence_UNSTABLE;return _!=null&&_.type!=="none"&&l.state==="hasValue"}),l=>l.contents);return WY(e.nonvalidatedAtoms.toMap(),i)}function iG(e){Mv(bv(t=>{let i=t.getState().previousTree;const l=t.getState().currentTree;i||(i=t.getState().currentTree);const h=JN(l),f=JN(i),_=lv(XY,I=>{var D,O,P,F;return{persistence_UNSTABLE:{type:(D=(O=I.persistence_UNSTABLE)===null||O===void 0?void 0:O.type)!==null&&D!==void 0?D:"none",backButton:(P=(F=I.persistence_UNSTABLE)===null||F===void 0?void 0:F.backButton)!==null&&P!==void 0?P:!1}}}),o=GY(l.dirtyAtoms,I=>h.has(I)||f.has(I));e({atomValues:h,previousAtomValues:f,atomInfo:_,modifiedAtoms:o,transactionMetadata:{...l.transactionMetadata}})},[e]))}function rG(e){Mv(bv(t=>{const i=wv(t,"latest"),l=wv(t,"previous");e({snapshot:i,previousSnapshot:l})},[e]))}function oG(){const e=P4(),[t,i]=nG(()=>wv(e.current)),l=VN(t),h=KN(),f=KN();if(Mv(bv(o=>i(wv(o)),[])),qN(()=>{const o=t.retain();if(h.current&&!XN){var I;window.clearTimeout(h.current),h.current=null,(I=f.current)===null||I===void 0||I.call(f),f.current=null}return()=>{window.setTimeout(o,10)}},[t]),l!==t&&!XN){if(h.current){var _;window.clearTimeout(h.current),h.current=null,(_=f.current)===null||_===void 0||_.call(f),f.current=null}f.current=t.retain(),h.current=window.setTimeout(()=>{var o;h.current=null,(o=f.current)===null||o===void 0||o.call(f),f.current=null},tG)}return t}function eL(e,t){var i;const l=e.getState(),h=(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree,f=t.getStore_INTERNAL().getState().currentTree;qY(()=>{const _=new Set;for(const D of[h.atomValues.keys(),f.atomValues.keys()])for(const O of D){var o,I;((o=h.atomValues.get(O))===null||o===void 0?void 0:o.contents)!==((I=f.atomValues.get(O))===null||I===void 0?void 0:I.contents)&&WN(O).shouldRestoreFromSnapshots&&_.add(O)}_.forEach(D=>{eG(e,new JY(D),f.atomValues.has(D)?vo(f.atomValues.get(D)):KY)}),e.replaceState(D=>({...D,stateID:t.getID()}))})}function sG(){const e=P4();return bv(t=>eL(e.current,t),[e])}var tL={useRecoilSnapshot:oG,gotoSnapshot:eL,useGotoRecoilSnapshot:sG,useRecoilTransactionObserver:rG,useTransactionObservation_DEPRECATED:iG,useTransactionSubscription_DEPRECATED:Mv};const{peekNodeInfo:aG}=Vu,{useStoreRef:lG}=Bc;function cG(){const e=lG();return({key:t})=>aG(e.current,e.current.getState().currentTree,t)}var uG=cG;const{reactMode:hG}=Jm,{RecoilRoot:dG,useStoreRef:fG}=Bc,{useMemo:pG}=Lr;function gG(){hG().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=fG().current;return pG(()=>{function t({children:i}){return Lr.createElement(dG,{store_INTERNAL:e},i)}return t},[e])}var mG=gG;const{loadableWithValue:yG}=Xm,{initializeNode:_G}=Vu,{DEFAULT_VALUE:vG,getNode:xG}=ca,{copyTreeState:wG,getRecoilValueAsLoadable:bG,invalidateDownstreams:MG,writeLoadableToTreeState:IG}=Hl;function nL(e){return xG(e.key).nodeType==="atom"}class TG{constructor(t,i){cr(this,"_store",void 0),cr(this,"_treeState",void 0),cr(this,"_changes",void 0),cr(this,"get",l=>{if(this._changes.has(l.key))return this._changes.get(l.key);if(!nL(l))throw pr("Reading selectors within atomicUpdate is not supported");const h=bG(this._store,l,this._treeState);if(h.state==="hasValue")return h.contents;throw h.state==="hasError"?h.contents:pr(`Expected Recoil atom ${l.key} to have a value, but it is in a loading state.`)}),cr(this,"set",(l,h)=>{if(!nL(l))throw pr("Setting selectors within atomicUpdate is not supported");if(typeof h=="function"){const f=this.get(l);this._changes.set(l.key,h(f))}else _G(this._store,l.key,"set"),this._changes.set(l.key,h)}),cr(this,"reset",l=>{this.set(l,vG)}),this._store=t,this._treeState=i,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=wG(this._treeState);for(const[i,l]of this._changes)IG(t,i,yG(l));return MG(this._store,t),t}}function SG(e){return t=>{e.replaceState(i=>{const l=new TG(e,i);return t(l),l.newTreeState_INTERNAL()})}}var CG={atomicUpdater:SG},DG=CG.atomicUpdater,iL=Object.freeze({__proto__:null,atomicUpdater:DG});function AG(e,t){if(!e)throw new Error(t)}var EG=AG,c1=EG;const{atomicUpdater:NG}=iL,{batchUpdates:LG}=dv,{DEFAULT_VALUE:zG}=ca,{useStoreRef:kG}=Bc,{refreshRecoilValue:OG,setRecoilValue:rL}=Hl,{cloneSnapshot:jG}=yv,{gotoSnapshot:PG}=tL,{useCallback:RG}=Lr;class oL{}const FG=new oL;function sL(e,t,i,l){let h=FG,f;if(LG(()=>{const o="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 pr(o);const I=iN({...l??{},set:(O,P)=>rL(e,O,P),reset:O=>rL(e,O,zG),refresh:O=>OG(e,O),gotoSnapshot:O=>PG(e,O),transact_UNSTABLE:O=>NG(e)(O)},{snapshot:()=>{const O=jG(e);return f=O.retain(),O}}),D=t(I);if(typeof D!="function")throw pr(o);h=D(...i)}),h instanceof oL&&c1(!1),go(h))h=h.finally(()=>{var o;(o=f)===null||o===void 0||o()});else{var _;(_=f)===null||_===void 0||_()}return h}function BG(e,t){const i=kG();return RG((...l)=>sL(i.current,e,l),t!=null?[...t,i]:void 0)}var aL={recoilCallback:sL,useRecoilCallback:BG};const{useStoreRef:UG}=Bc,{refreshRecoilValue:VG}=Hl,{useCallback:HG}=Lr;function QG(e){const t=UG();return HG(()=>{const i=t.current;VG(i,e)},[e,t])}var $G=QG;const{atomicUpdater:YG}=iL,{useStoreRef:GG}=Bc,{useMemo:ZG}=Lr;function WG(e,t){const i=GG();return ZG(()=>(...l)=>{YG(i.current)(f=>{e(f)(...l)})},t!=null?[...t,i]:void 0)}var qG=WG;class KG{constructor(t){cr(this,"value",void 0),this.value=t}}var XG={WrappedValue:KG},JG=XG.WrappedValue,lL=Object.freeze({__proto__:null,WrappedValue:JG});const{isFastRefreshEnabled:eZ}=Jm;class cL extends Error{}class tZ{constructor(t){var i,l,h;cr(this,"_name",void 0),cr(this,"_numLeafs",void 0),cr(this,"_root",void 0),cr(this,"_onHit",void 0),cr(this,"_onSet",void 0),cr(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:f=>f}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 f,_,o,I;let D,O;for(const[Ne,oe]of t){var P,F,Q;const Z=this._root;if((Z==null?void 0:Z.type)==="leaf")throw this.invalidCacheError();const W=D;if(D=W?W.branches.get(O):Z,D=(P=D)!==null&&P!==void 0?P:{type:"branch",nodeKey:Ne,parent:W,branches:new Map,branchKey:O},D.type!=="branch"||D.nodeKey!==Ne)throw this.invalidCacheError();W==null||W.branches.set(O,D),l==null||(F=l.onNodeVisit)===null||F===void 0||F.call(l,D),O=this._mapNodeValue(oe),this._root=(Q=this._root)!==null&&Q!==void 0?Q:D}const J=D?(f=D)===null||f===void 0?void 0:f.branches.get(O):this._root;if(J!=null&&(J.type!=="leaf"||J.branchKey!==O))throw this.invalidCacheError();const ae={type:"leaf",value:i,parent:D,branchKey:O};(_=D)===null||_===void 0||_.branches.set(O,ae),this._root=(o=this._root)!==null&&o!==void 0?o:ae,this._numLeafs++,this._onSet(ae),l==null||(I=l.onNodeVisit)===null||I===void 0||I.call(l,ae)};try{h()}catch(f){if(f instanceof cL)this.clear(),h();else throw f}}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 f;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=(f=l)===null||f===void 0?void 0:f.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=eZ()?"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 h4(t+(this._name!=null?` - ${this._name}`:"")),new cL}}var nZ={TreeCache:tZ},iZ=nZ.TreeCache,uL=Object.freeze({__proto__:null,TreeCache:iZ});class rZ{constructor(t){var i;cr(this,"_maxSize",void 0),cr(this,"_size",void 0),cr(this,"_head",void 0),cr(this,"_tail",void 0),cr(this,"_map",void 0),cr(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 f=this.head(),_={key:t,right:f,left:null,value:i};f?f.left=_:this._tail=_,this._map.set(l,_),this._head=_,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=vo(this._map.get(i)),h=l.right,f=l.left;h&&(h.left=l.left),f&&(f.right=l.right),l===this.head()&&(this._head=h),l===this.tail()&&(this._tail=f),this._map.delete(i),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var oZ={LRUCache:rZ},sZ=oZ.LRUCache,hL=Object.freeze({__proto__:null,LRUCache:sZ});const{LRUCache:aZ}=hL,{TreeCache:lZ}=uL;function cZ({name:e,maxSize:t,mapNodeValue:i=l=>l}){const l=new aZ({maxSize:t}),h=new lZ({name:e,mapNodeValue:i,onHit:f=>{l.set(f,!0)},onSet:f=>{const _=l.tail();l.set(f,!0),_&&h.size()>t&&h.delete(_.key)}});return h}var dL=cZ;function _l(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 pr("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(go(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((h,f)=>_l(h,t,f.toString()))}]`;if(typeof e.toJSON=="function")return _l(e.toJSON(i),t,i);if(e instanceof Map){const h={};for(const[f,_]of e)h[typeof f=="string"?f:_l(f,t)]=_;return _l(h,t,i)}return e instanceof Set?_l(Array.from(e).sort((h,f)=>_l(h,t).localeCompare(_l(f,t))),t,i):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?_l(Array.from(e),t,i):`{${Object.keys(e).filter(h=>e[h]!==void 0).sort().map(h=>`${_l(h,t)}:${_l(e[h],t,h)}`).join(",")}}`}function uZ(e,t={allowFunctions:!1}){return _l(e,t)}var Iv=uZ;const{TreeCache:hZ}=uL,Tv={equality:"reference",eviction:"keep-all",maxSize:1/0};function dZ({equality:e=Tv.equality,eviction:t=Tv.eviction,maxSize:i=Tv.maxSize}=Tv,l){const h=fZ(e);return pZ(t,i,h,l)}function fZ(e){switch(e){case"reference":return t=>t;case"value":return t=>Iv(t)}throw pr(`Unrecognized equality policy ${e}`)}function pZ(e,t,i,l){switch(e){case"keep-all":return new hZ({name:l,mapNodeValue:i});case"lru":return dL({name:l,maxSize:vo(t),mapNodeValue:i});case"most-recent":return dL({name:l,maxSize:1,mapNodeValue:i})}throw pr(`Unrecognized eviction policy ${e}`)}var gZ=dZ;function mZ(e){return()=>null}var yZ={startPerfBlock:mZ};const{isLoadable:_Z,loadableWithError:Sv,loadableWithPromise:vZ,loadableWithValue:R4}=Xm,{WrappedValue:fL}=lL,{getNodeLoadable:Cv,peekNodeLoadable:xZ,setNodeValue:wZ}=Vu,{saveDepsToStore:bZ}=t1,{DEFAULT_VALUE:MZ,getConfigDeletionHandler:IZ,getNode:TZ,registerNode:pL}=ca,{isRecoilValue:SZ}=Vf,{markRecoilValueModified:gL}=Hl,{retainedByOptionWithDefault:CZ}=od,{recoilCallback:DZ}=aL,{startPerfBlock:AZ}=yZ;class mL{}const u1=new mL,h1=[],Dv=new Map,EZ=(()=>{let e=0;return()=>e++})();function yL(e){let t=null;const{key:i,get:l,cachePolicy_UNSTABLE:h}=e,f=e.set!=null?e.set:void 0,_=new Set,o=gZ(h??{equality:"reference",eviction:"keep-all"},i),I=CZ(e.retainedBy_UNSTABLE),D=new Map;let O=0;function P(){return!no("recoil_memory_managament_2020")||O>0}function F(T){return T.getState().knownSelectors.add(i),O++,()=>{O--}}function Q(){return IZ(i)!==void 0&&!P()}function J(T,L,$,Y,q){wt(L,Y,q),ae(T,$)}function ae(T,L){Ht(T,L)&&yt(T),oe(L,!0)}function Ne(T,L){Ht(T,L)&&(vo(Fe(T)).stateVersions.clear(),oe(L,!1))}function oe(T,L){const $=Dv.get(T);if($!=null){for(const Y of $)gL(Y,vo(t));L&&Dv.delete(T)}}function Z(T,L){let $=Dv.get(L);$==null&&Dv.set(L,$=new Set),$.add(T)}function W(T,L,$,Y,q,ce){return L.then(pe=>{if(!P())throw yt(T),u1;const fe=R4(pe);return J(T,$,q,fe,Y),pe}).catch(pe=>{if(!P())throw yt(T),u1;if(go(pe))return se(T,pe,$,Y,q,ce);const fe=Sv(pe);throw J(T,$,q,fe,Y),pe})}function se(T,L,$,Y,q,ce){return L.then(pe=>{if(!P())throw yt(T),u1;ce.loadingDepKey!=null&&ce.loadingDepPromise===L?$.atomValues.set(ce.loadingDepKey,R4(pe)):T.getState().knownSelectors.forEach(nt=>{$.atomValues.delete(nt)});const fe=Be(T,$);if(fe&&fe.state!=="loading"){if((Ht(T,q)||Fe(T)==null)&&ae(T,q),fe.state==="hasValue")return fe.contents;throw fe.contents}if(!Ht(T,q)){const nt=Ue(T,$);if(nt!=null)return nt.loadingLoadable.contents}const[we,He]=ue(T,$,q);if(we.state!=="loading"&&J(T,$,q,we,He),we.state==="hasError")throw we.contents;return we.contents}).catch(pe=>{if(pe instanceof mL)throw u1;if(!P())throw yt(T),u1;const fe=Sv(pe);throw J(T,$,q,fe,Y),pe})}function ve(T,L,$,Y){var q,ce,pe,fe;if(Ht(T,Y)||L.version===((q=T.getState())===null||q===void 0||(ce=q.currentTree)===null||ce===void 0?void 0:ce.version)||L.version===((pe=T.getState())===null||pe===void 0||(fe=pe.nextTree)===null||fe===void 0?void 0:fe.version)){var we,He,nt;bZ(i,$,T,(we=(He=T.getState())===null||He===void 0||(nt=He.nextTree)===null||nt===void 0?void 0:nt.version)!==null&&we!==void 0?we:T.getState().currentTree.version)}for(const Qe of $)_.add(Qe)}function ue(T,L,$){const Y=AZ(i);let q=!0,ce=!0;const pe=()=>{Y(),ce=!1};let fe,we=!1,He;const nt={loadingDepKey:null,loadingDepPromise:null},Qe=new Map;function tt({key:It}){const Mt=Cv(T,L,It);switch(Qe.set(It,Mt),q||(ve(T,L,new Set(Qe.keys()),$),Ne(T,$)),Mt.state){case"hasValue":return Mt.contents;case"hasError":throw Mt.contents;case"loading":throw nt.loadingDepKey=It,nt.loadingDepPromise=Mt.contents,Mt.contents}throw pr("Invalid Loadable state")}const Ge=It=>(...Mt)=>{if(ce)throw pr("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&&c1(!1),DZ(T,It,Mt,{node:t})};try{fe=l({get:tt,getCallback:Ge}),fe=SZ(fe)?tt(fe):fe,_Z(fe)&&(fe.state==="hasError"&&(we=!0),fe=fe.contents),go(fe)?fe=W(T,fe,L,Qe,$,nt).finally(pe):pe(),fe=fe instanceof fL?fe.value:fe}catch(It){fe=It,go(fe)?fe=se(T,fe,L,Qe,$,nt).finally(pe):(we=!0,pe())}return we?He=Sv(fe):go(fe)?He=vZ(fe):He=R4(fe),q=!1,ct(T,$,Qe),ve(T,L,new Set(Qe.keys()),$),[He,Qe]}function Be(T,L){let $=L.atomValues.get(i);if($!=null)return $;const Y=new Set;try{$=o.get(ce=>(typeof ce!="string"&&c1(!1),Cv(T,L,ce).contents),{onNodeVisit:ce=>{ce.type==="branch"&&ce.nodeKey!==i&&Y.add(ce.nodeKey)}})}catch(ce){throw pr(`Problem with cache lookup for selector "${i}": ${ce.message}`)}if($){var q;L.atomValues.set(i,$),ve(T,L,Y,(q=Fe(T))===null||q===void 0?void 0:q.executionID)}return $}function $e(T,L){const $=Be(T,L);if($!=null)return yt(T),$;const Y=Ue(T,L);if(Y!=null){var q;return((q=Y.loadingLoadable)===null||q===void 0?void 0:q.state)==="loading"&&Z(T,Y.executionID),Y.loadingLoadable}const ce=EZ(),[pe,fe]=ue(T,L,ce);return pe.state==="loading"?(Ke(T,ce,pe,fe,L),Z(T,ce)):(yt(T),wt(L,pe,fe)),pe}function Ue(T,L){const $=bN([D.has(T)?[vo(D.get(T))]:[],sv(x4(D,([q])=>q!==T),([,q])=>q)]);function Y(q){for(const[ce,pe]of q)if(!Cv(T,L,ce).is(pe))return!0;return!1}for(const q of $){if(q.stateVersions.get(L.version)||!Y(q.depValuesDiscoveredSoFarDuringAsyncWork))return q.stateVersions.set(L.version,!0),q;q.stateVersions.set(L.version,!1)}}function Fe(T){return D.get(T)}function Ke(T,L,$,Y,q){D.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:Y,executionID:L,loadingLoadable:$,stateVersions:new Map([[q.version,!0]])})}function ct(T,L,$){if(Ht(T,L)){const Y=Fe(T);Y!=null&&(Y.depValuesDiscoveredSoFarDuringAsyncWork=$)}}function yt(T){D.delete(T)}function Ht(T,L){var $;return L===(($=Fe(T))===null||$===void 0?void 0:$.executionID)}function _t(T){return Array.from(T.entries()).map(([L,$])=>[L,$.contents])}function wt(T,L,$){T.atomValues.set(i,L);try{o.set(_t($),L)}catch(Y){throw pr(`Problem with setting cache for selector "${i}": ${Y.message}`)}}function Ft(T){if(h1.includes(i)){const L=`Recoil selector has circular dependencies: ${h1.slice(h1.indexOf(i)).join(" → ")}`;return Sv(pr(L))}h1.push(i);try{return T()}finally{h1.pop()}}function gt(T,L){const $=L.atomValues.get(i);return $??o.get(Y=>{var q;return typeof Y!="string"&&c1(!1),(q=xZ(T,L,Y))===null||q===void 0?void 0:q.contents})}function Rt(T,L){return Ft(()=>$e(T,L))}function H(T){T.atomValues.delete(i)}function le(T,L){t==null&&c1(!1);for(const Y of _){var $;const q=TZ(Y);($=q.clearCache)===null||$===void 0||$.call(q,T,L)}_.clear(),H(L),o.clear(),gL(T,t)}return f!=null?t=pL({key:i,nodeType:"selector",peek:gt,get:Rt,set:(L,$,Y)=>{let q=!1;const ce=new Map;function pe({key:nt}){if(q)throw pr("Recoil: Async selector sets are not currently supported.");const Qe=Cv(L,$,nt);if(Qe.state==="hasValue")return Qe.contents;if(Qe.state==="loading"){const tt=`Getting value of asynchronous atom or selector "${nt}" in a pending state while setting selector "${i}" is not yet supported.`;throw pr(tt)}else throw Qe.contents}function fe(nt,Qe){if(q)throw pr("Recoil: Async selector sets are not currently supported.");const tt=typeof Qe=="function"?Qe(pe(nt)):Qe;wZ(L,$,nt.key,tt).forEach((It,Mt)=>ce.set(Mt,It))}function we(nt){fe(nt,MZ)}const He=f({set:fe,get:pe,reset:we},Y);if(He!==void 0)throw go(He)?pr("Recoil: Async selector sets are not currently supported."):pr("Recoil: selector set should be a void function.");return q=!0,ce},init:F,invalidate:H,clearCache:le,shouldDeleteConfigOnRelease:Q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:I}):t=pL({key:i,nodeType:"selector",peek:gt,get:Rt,init:F,invalidate:H,clearCache:le,shouldDeleteConfigOnRelease:Q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:I})}yL.value=e=>new fL(e);var Yf=yL;const{isLoadable:NZ,loadableWithError:F4,loadableWithPromise:B4,loadableWithValue:Gf}=Xm,{WrappedValue:_L}=lL,{peekNodeInfo:LZ}=Vu,{DEFAULT_VALUE:sd,DefaultValue:Hu,getConfigDeletionHandler:vL,registerNode:zZ,setConfigDeletionHandler:kZ}=ca,{isRecoilValue:OZ}=Vf,{getRecoilValueAsLoadable:jZ,markRecoilValueModified:PZ,setRecoilValue:xL,setRecoilValueLoadable:RZ}=Hl,{retainedByOptionWithDefault:FZ}=od,d1=e=>e instanceof _L?e.value:e;function BZ(e){const{key:t,persistence_UNSTABLE:i}=e,l=FZ(e.retainedBy_UNSTABLE);let h=0;function f(Z){return B4(Z.then(W=>(_=Gf(W),W)).catch(W=>{throw _=F4(W),W}))}let _=go(e.default)?f(e.default):NZ(e.default)?e.default.state==="loading"?f(e.default.contents):e.default:Gf(d1(e.default));_.contents;let o;const I=new Map;function D(Z){return Z}function O(Z,W){const se=W.then(ve=>{var ue,Be;return((Be=((ue=Z.getState().nextTree)!==null&&ue!==void 0?ue:Z.getState().currentTree).atomValues.get(t))===null||Be===void 0?void 0:Be.contents)===se&&xL(Z,oe,ve),ve}).catch(ve=>{var ue,Be;throw((Be=((ue=Z.getState().nextTree)!==null&&ue!==void 0?ue:Z.getState().currentTree).atomValues.get(t))===null||Be===void 0?void 0:Be.contents)===se&&RZ(Z,oe,F4(ve)),ve});return se}function P(Z,W,se){var ve;h++;const ue=()=>{var Fe;h--,(Fe=I.get(Z))===null||Fe===void 0||Fe.forEach(Ke=>Ke()),I.delete(Z)};if(Z.getState().knownAtoms.add(t),_.state==="loading"){const Fe=()=>{var Ke;((Ke=Z.getState().nextTree)!==null&&Ke!==void 0?Ke:Z.getState().currentTree).atomValues.has(t)||PZ(Z,oe)};_.contents.finally(Fe)}const Be=(ve=e.effects)!==null&&ve!==void 0?ve:e.effects_UNSTABLE;if(Be!=null){let Ht=function(H){if(Ke&&H.key===t){const le=Fe;return le instanceof Hu?F(Z,W):go(le)?B4(le.then(T=>T instanceof Hu?_.toPromise():T)):Gf(le)}return jZ(Z,H)},_t=function(H){return Ht(H).toPromise()},wt=function(H){var le;const T=LZ(Z,(le=Z.getState().nextTree)!==null&&le!==void 0?le:Z.getState().currentTree,H.key);return Ke&&H.key===t&&!(Fe instanceof Hu)?{...T,isSet:!0,loadable:Ht(H)}:T},Fe=sd,Ke=!0,ct=!1,yt=null;const Ft=H=>le=>{if(Ke){const T=Ht(oe),L=T.state==="hasValue"?T.contents:sd;Fe=typeof le=="function"?le(L):le,go(Fe)&&(Fe=Fe.then($=>(yt={effect:H,value:$},$)))}else{if(go(le))throw pr("Setting atoms to async values is not implemented.");typeof le!="function"&&(yt={effect:H,value:d1(le)}),xL(Z,oe,typeof le=="function"?T=>{const L=d1(le(T));return yt={effect:H,value:L},L}:d1(le))}},gt=H=>()=>Ft(H)(sd),Rt=H=>le=>{var T;const{release:L}=Z.subscribeToTransactions($=>{var Y;let{currentTree:q,previousTree:ce}=$.getState();ce||(ce=q);const pe=(Y=q.atomValues.get(t))!==null&&Y!==void 0?Y:_;if(pe.state==="hasValue"){var fe,we,He,nt;const Qe=pe.contents,tt=(fe=ce.atomValues.get(t))!==null&&fe!==void 0?fe:_,Ge=tt.state==="hasValue"?tt.contents:sd;((we=yt)===null||we===void 0?void 0:we.effect)!==H||((He=yt)===null||He===void 0?void 0:He.value)!==Qe?le(Qe,Ge,!q.atomValues.has(t)):((nt=yt)===null||nt===void 0?void 0:nt.effect)===H&&(yt=null)}},t);I.set(Z,[...(T=I.get(Z))!==null&&T!==void 0?T:[],L])};for(const H of Be)try{const le=H({node:oe,storeID:Z.storeID,parentStoreID_UNSTABLE:Z.parentStoreID,trigger:se,setSelf:Ft(H),resetSelf:gt(H),onSet:Rt(H),getPromise:_t,getLoadable:Ht,getInfo_UNSTABLE:wt});if(le!=null){var $e;I.set(Z,[...($e=I.get(Z))!==null&&$e!==void 0?$e:[],le])}}catch(le){Fe=le,ct=!0}if(Ke=!1,!(Fe instanceof Hu)){var Ue;const H=ct?F4(Fe):go(Fe)?B4(O(Z,Fe)):Gf(d1(Fe));H.contents,W.atomValues.set(t,H),(Ue=Z.getState().nextTree)===null||Ue===void 0||Ue.atomValues.set(t,H)}}return ue}function F(Z,W){var se,ve;return(se=(ve=W.atomValues.get(t))!==null&&ve!==void 0?ve:o)!==null&&se!==void 0?se:_}function Q(Z,W){if(W.atomValues.has(t))return vo(W.atomValues.get(t));if(W.nonvalidatedAtoms.has(t)){if(o!=null)return o;if(i==null)return _;const se=W.nonvalidatedAtoms.get(t),ve=i.validator(se,sd);return o=ve instanceof Hu?_:Gf(ve),o}else return _}function J(){o=void 0}function ae(Z,W,se){if(W.atomValues.has(t)){const ve=vo(W.atomValues.get(t));if(ve.state==="hasValue"&&se===ve.contents)return new Map}else if(!W.nonvalidatedAtoms.has(t)&&se instanceof Hu)return new Map;return o=void 0,new Map().set(t,Gf(se))}function Ne(){return vL(t)!==void 0&&h<=0}const oe=zZ({key:t,nodeType:"atom",peek:F,get:Q,set:ae,init:P,invalidate:J,shouldDeleteConfigOnRelease:Ne,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 oe}function U4(e){const{...t}=e,i="default"in e?e.default:new Promise(()=>{});return OZ(i)?UZ({...t,default:i}):BZ({...t,default:i})}function UZ(e){const t=U4({...e,default:sd,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:l=>l instanceof Hu?l:vo(e.persistence_UNSTABLE).validator(l,sd)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),i=Yf({key:`${e.key}__withFallback`,get:({get:l})=>{const h=l(t);return h instanceof Hu?e.default:h},set:({set:l},h)=>l(t,h),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return kZ(i.key,vL(e.key)),i}U4.value=e=>new _L(e);var wL=U4;class VZ{constructor(t){var i;cr(this,"_map",void 0),cr(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 HZ={MapCache:VZ},QZ=HZ.MapCache,$Z=Object.freeze({__proto__:null,MapCache:QZ});const{LRUCache:bL}=hL,{MapCache:YZ}=$Z,Av={equality:"reference",eviction:"none",maxSize:1/0};function GZ({equality:e=Av.equality,eviction:t=Av.eviction,maxSize:i=Av.maxSize}=Av){const l=ZZ(e);return WZ(t,i,l)}function ZZ(e){switch(e){case"reference":return t=>t;case"value":return t=>Iv(t)}throw pr(`Unrecognized equality policy ${e}`)}function WZ(e,t,i){switch(e){case"keep-all":return new YZ({mapKey:i});case"lru":return new bL({mapKey:i,maxSize:vo(t)});case"most-recent":return new bL({mapKey:i,maxSize:1})}throw pr(`Unrecognized eviction policy ${e}`)}var ML=GZ;const{setConfigDeletionHandler:qZ}=ca;function KZ(e){var t,i;const l=ML({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 f,_;const o=l.get(h);if(o!=null)return o;const{cachePolicyForParams_UNSTABLE:I,...D}=e,O="default"in e?e.default:new Promise(()=>{}),P=wL({...D,key:`${e.key}__${(f=Iv(h))!==null&&f!==void 0?f:"void"}`,default:typeof O=="function"?O(h):O,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):(_=e.effects)!==null&&_!==void 0?_:e.effects_UNSTABLE});return l.set(h,P),qZ(P.key,()=>{l.delete(h)}),P}}var XZ=KZ;const{setConfigDeletionHandler:JZ}=ca;let eW=0;function tW(e){var t,i;const l=ML({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 f;let _;try{_=l.get(h)}catch(F){throw pr(`Problem with cache lookup for selector ${e.key}: ${F.message}`)}if(_!=null)return _;const o=`${e.key}__selectorFamily/${(f=Iv(h,{allowFunctions:!0}))!==null&&f!==void 0?f:"void"}/${eW++}`,I=F=>e.get(h)(F),D=e.cachePolicy_UNSTABLE,O=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(h):e.retainedBy_UNSTABLE;let P;if(e.set!=null){const F=e.set;P=Yf({key:o,get:I,set:(J,ae)=>F(h)(J,ae),cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:O})}else P=Yf({key:o,get:I,cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:O});return l.set(h,P),JZ(P.key,()=>{l.delete(h)}),P}}var Qu=tW;const nW=Qu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function iW(e){return nW(e)}var rW=iW;const oW=Qu({key:"__error",get:e=>()=>{throw pr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function sW(e){return oW(e)}var aW=sW;function lW(e){return e}var cW=lW;const{loadableWithError:IL,loadableWithPromise:TL,loadableWithValue:SL}=Xm;function Ev(e,t){const i=Array(t.length).fill(void 0),l=Array(t.length).fill(void 0);for(const[h,f]of t.entries())try{i[h]=e(f)}catch(_){l[h]=_}return[i,l]}function uW(e){return e!=null&&!go(e)}function Nv(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function V4(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((i,l,h)=>({...i,[l]:t[h]}),{})}function Zf(e,t,i){const l=i.map((h,f)=>h==null?SL(t[f]):go(h)?TL(h):IL(h));return V4(e,l)}function hW(e,t){return t.map((i,l)=>i===void 0?e[l]:i)}const dW=Qu({key:"__waitForNone",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);return Zf(e,l,h)},dangerouslyAllowMutability:!0}),fW=Qu({key:"__waitForAny",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);return h.some(f=>!go(f))?Zf(e,l,h):new Promise(f=>{for(const[_,o]of h.entries())go(o)&&o.then(I=>{l[_]=I,h[_]=void 0,f(Zf(e,l,h))}).catch(I=>{h[_]=I,f(Zf(e,l,h))})})},dangerouslyAllowMutability:!0}),pW=Qu({key:"__waitForAll",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);if(h.every(_=>_==null))return V4(e,l);const f=h.find(uW);if(f!=null)throw f;return Promise.all(h).then(_=>V4(e,hW(l,_)))},dangerouslyAllowMutability:!0}),gW=Qu({key:"__waitForAllSettled",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);return h.every(f=>!go(f))?Zf(e,l,h):Promise.all(h.map((f,_)=>go(f)?f.then(o=>{l[_]=o,h[_]=void 0}).catch(o=>{l[_]=void 0,h[_]=o}):null)).then(()=>Zf(e,l,h))},dangerouslyAllowMutability:!0}),mW=Qu({key:"__noWait",get:e=>({get:t})=>{try{return Yf.value(SL(t(e)))}catch(i){return Yf.value(go(i)?TL(i):IL(i))}},dangerouslyAllowMutability:!0});var yW={waitForNone:dW,waitForAny:fW,waitForAll:pW,waitForAllSettled:gW,noWait:mW};const{RecoilLoadable:_W}=Xm,{DefaultValue:vW}=ca,{RecoilRoot:xW,useRecoilStoreID:wW}=Bc,{isRecoilValue:bW}=Vf,{retentionZone:MW}=uv,{freshSnapshot:IW}=yv,{useRecoilState:TW,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:SW,useRecoilStateLoadable:CW,useRecoilValue:DW,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:AW,useRecoilValueLoadable:EW,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:NW,useResetRecoilState:LW,useSetRecoilState:zW}=HY,{useGotoRecoilSnapshot:kW,useRecoilSnapshot:OW,useRecoilTransactionObserver:jW}=tL,{useRecoilCallback:PW}=aL,{noWait:RW,waitForAll:FW,waitForAllSettled:BW,waitForAny:UW,waitForNone:VW}=yW;var Wf={DefaultValue:vW,isRecoilValue:bW,RecoilLoadable:_W,RecoilEnv:Uf,RecoilRoot:xW,useRecoilStoreID:wW,useRecoilBridgeAcrossReactRoots_UNSTABLE:mG,atom:wL,selector:Yf,atomFamily:XZ,selectorFamily:Qu,constSelector:rW,errorSelector:aW,readOnlySelector:cW,noWait:RW,waitForNone:VW,waitForAny:UW,waitForAll:FW,waitForAllSettled:BW,useRecoilValue:DW,useRecoilValueLoadable:EW,useRecoilState:TW,useRecoilStateLoadable:CW,useSetRecoilState:zW,useResetRecoilState:LW,useGetRecoilValueInfo_UNSTABLE:uG,useRecoilRefresher_UNSTABLE:$G,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:NW,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:AW,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:SW,useRecoilCallback:PW,useRecoilTransaction_UNSTABLE:qG,useGotoRecoilSnapshot:kW,useRecoilSnapshot:OW,useRecoilTransactionObserver_UNSTABLE:jW,snapshot_UNSTABLE:IW,useRetain:N4,retentionZone:MW},HW=Wf.RecoilRoot,ji=Wf.atom,Lv=Wf.selector,Mn=Wf.useRecoilValue,Wn=Wf.useRecoilState,Co=Wf.useResetRecoilState;const QW=(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)))})},$W="mi-components";let zv,CL,Ia=!1,H4=!1;const Uc=(e,t="")=>()=>{},YW=(e,t)=>()=>{},GW="{visibility:hidden}.hydrated{visibility:inherit}",DL="http://www.w3.org/1999/xlink",AL={},ZW="http://www.w3.org/2000/svg",WW="http://www.w3.org/1999/xhtml",qW=e=>e!=null,Q4=e=>(e=typeof e,e==="object"||e==="function");function EL(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 rt=(e,t,...i)=>{let l=null,h=null,f=!1,_=!1;const o=[],I=O=>{for(let P=0;P<O.length;P++)l=O[P],Array.isArray(l)?I(l):l!=null&&typeof l!="boolean"&&((f=typeof e!="function"&&!Q4(l))&&(l=String(l)),f&&_?o[o.length-1].$text$+=l:o.push(f?$4(null,l):l),_=f)};if(I(i),t){t.key&&(h=t.key);{const O=t.className||t.class;O&&(t.class=typeof O!="object"?O:Object.keys(O).filter(P=>O[P]).join(" "))}}const D=$4(e,null);return D.$attrs$=t,o.length>0&&(D.$children$=o),D.$key$=h,D},$4=(e,t)=>{const i={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return i.$attrs$=null,i.$key$=null,i},Ho={},KW=e=>e&&e.$tag$===Ho,XW=(e,t)=>e!=null&&!Q4(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Vc=e=>$u(e).$hostElement$,qr=(e,t,i)=>{const l=Vc(e);return{emit:h=>NL(l,t,{bubbles:!!(i&4),composed:!!(i&2),cancelable:!!(i&1),detail:h})}},NL=(e,t,i)=>{const l=as.ce(t,i);return e.dispatchEvent(l),l},LL=new WeakMap,JW=(e,t,i)=>{let l=Pv.get(e);xq&&i?(l=l||new CSSStyleSheet,typeof l=="string"?l=t:l.replaceSync(t)):l=t,Pv.set(e,l)},eq=(e,t,i,l)=>{var h;let f=zL(t);const _=Pv.get(f);if(e=e.nodeType===11?e:$l,_)if(typeof _=="string"){e=e.head||e;let o=LL.get(e),I;if(o||LL.set(e,o=new Set),!o.has(f)){{I=$l.createElement("style"),I.innerHTML=_;const D=(h=as.$nonce$)!==null&&h!==void 0?h:EL($l);D!=null&&I.setAttribute("nonce",D),e.insertBefore(I,e.querySelector("link"))}o&&o.add(f)}}else e.adoptedStyleSheets.includes(_)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,_]);return f},tq=e=>{const t=e.$cmpMeta$,i=e.$hostElement$,l=t.$flags$,h=Uc("attachStyles",t.$tagName$),f=eq(i.shadowRoot?i.shadowRoot:i.getRootNode(),t);l&10&&(i["s-sc"]=f,i.classList.add(f+"-h")),h()},zL=(e,t)=>"sc-"+e.$tagName$,kL=(e,t,i,l,h,f)=>{if(i!==l){let _=GL(e,t),o=t.toLowerCase();if(t==="class"){const I=e.classList,D=OL(i),O=OL(l);I.remove(...D.filter(P=>P&&!O.includes(P))),I.add(...O.filter(P=>P&&!D.includes(P)))}else if(t==="style"){for(const I in i)(!l||l[I]==null)&&(I.includes("-")?e.style.removeProperty(I):e.style[I]="");for(const I in l)(!i||l[I]!==i[I])&&(I.includes("-")?e.style.setProperty(I,l[I]):e.style[I]=l[I])}else if(t!=="key")if(t==="ref")l&&l(e);else if(!_&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):GL(f1,o)?t=o.slice(2):t=o[2]+t.slice(3),i&&as.rel(e,t,i,!1),l&&as.ael(e,t,l,!1);else{const I=Q4(l);if((_||I&&l!==null)&&!h)try{if(e.tagName.includes("-"))e[t]=l;else{const O=l??"";t==="list"?_=!1:(i==null||e[t]!=O)&&(e[t]=O)}}catch{}let D=!1;o!==(o=o.replace(/^xlink\:?/,""))&&(t=o,D=!0),l==null||l===!1?(l!==!1||e.getAttribute(t)==="")&&(D?e.removeAttributeNS(DL,t):e.removeAttribute(t)):(!_||f&4||h)&&!I&&(l=l===!0?"":l,D?e.setAttributeNS(DL,t,l):e.setAttribute(t,l))}}},nq=/\s/,OL=e=>e?e.split(nq):[],jL=(e,t,i,l)=>{const h=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,f=e&&e.$attrs$||AL,_=t.$attrs$||AL;for(l in f)l in _||kL(h,l,f[l],void 0,i,t.$flags$);for(l in _)kL(h,l,f[l],_[l],i,t.$flags$)},kv=(e,t,i,l)=>{const h=t.$children$[i];let f=0,_,o;if(h.$text$!==null)_=h.$elm$=$l.createTextNode(h.$text$);else{if(Ia||(Ia=h.$tag$==="svg"),_=h.$elm$=$l.createElementNS(Ia?ZW:WW,h.$tag$),Ia&&h.$tag$==="foreignObject"&&(Ia=!1),jL(null,h,Ia),qW(zv)&&_["s-si"]!==zv&&_.classList.add(_["s-si"]=zv),h.$children$)for(f=0;f<h.$children$.length;++f)o=kv(e,h,f),o&&_.appendChild(o);h.$tag$==="svg"?Ia=!1:_.tagName==="foreignObject"&&(Ia=!0)}return _},PL=(e,t,i,l,h,f)=>{let _=e,o;for(_.shadowRoot&&_.tagName===CL&&(_=_.shadowRoot);h<=f;++h)l[h]&&(o=kv(null,i,h),o&&(l[h].$elm$=o,_.insertBefore(o,t)))},RL=(e,t,i,l,h)=>{for(;t<=i;++t)(l=e[t])&&(h=l.$elm$,FL(l),h.remove())},iq=(e,t,i,l)=>{let h=0,f=0,_=0,o=0,I=t.length-1,D=t[0],O=t[I],P=l.length-1,F=l[0],Q=l[P],J,ae;for(;h<=I&&f<=P;)if(D==null)D=t[++h];else if(O==null)O=t[--I];else if(F==null)F=l[++f];else if(Q==null)Q=l[--P];else if(Ov(D,F))qf(D,F),D=t[++h],F=l[++f];else if(Ov(O,Q))qf(O,Q),O=t[--I],Q=l[--P];else if(Ov(D,Q))qf(D,Q),e.insertBefore(D.$elm$,O.$elm$.nextSibling),D=t[++h],Q=l[--P];else if(Ov(O,F))qf(O,F),e.insertBefore(O.$elm$,D.$elm$),O=t[--I],F=l[++f];else{for(_=-1,o=h;o<=I;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===F.$key$){_=o;break}_>=0?(ae=t[_],ae.$tag$!==F.$tag$?J=kv(t&&t[f],i,_):(qf(ae,F),t[_]=void 0,J=ae.$elm$),F=l[++f]):(J=kv(t&&t[f],i,f),F=l[++f]),J&&D.$elm$.parentNode.insertBefore(J,D.$elm$)}h>I?PL(e,l[P+1]==null?null:l[P+1].$elm$,i,l,f,P):f>P&&RL(t,h,I)},Ov=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,qf=(e,t)=>{const i=t.$elm$=e.$elm$,l=e.$children$,h=t.$children$,f=t.$tag$,_=t.$text$;_===null?(Ia=f==="svg"?!0:f==="foreignObject"?!1:Ia,f==="slot"||jL(e,t,Ia),l!==null&&h!==null?iq(i,l,t,h):h!==null?(e.$text$!==null&&(i.textContent=""),PL(i,null,t,h,0,h.length-1)):l!==null&&RL(l,0,l.length-1),Ia&&f==="svg"&&(Ia=!1)):e.$text$!==_&&(i.data=_)},FL=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(FL)},rq=(e,t)=>{const i=e.$hostElement$,l=e.$cmpMeta$,h=e.$vnode$||$4(null,null),f=KW(t)?t:rt(null,null,t);CL=i.tagName,l.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},l.$attrsToReflect$.map(([_,o])=>f.$attrs$[o]=i[_])),f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=h.$elm$=i.shadowRoot||i,zv=i["s-sc"],qf(h,f)},BL=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(i=>e.$onRenderResolve$=i))},jv=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return BL(e,e.$ancestorComponent$),bq(()=>oq(e,t))},oq=(e,t)=>{const i=Uc("scheduleUpdate",e.$cmpMeta$.$tagName$),l=e.$lazyInstance$;let h;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([f,_])=>ad(l,f,_)),e.$queuedListeners$=null),h=ad(l,"componentWillLoad")),h=VL(h,()=>ad(l,"componentWillRender")),i(),VL(h,()=>sq(e,l,t))},sq=async(e,t,i)=>{const l=e.$hostElement$,h=Uc("update",e.$cmpMeta$.$tagName$),f=l["s-rc"];i&&tq(e);const _=Uc("render",e.$cmpMeta$.$tagName$);aq(e,t),f&&(f.map(o=>o()),l["s-rc"]=void 0),_(),h();{const o=l["s-p"],I=()=>lq(e);o.length===0?I():(Promise.all(o).then(I),e.$flags$|=4,o.length=0)}},aq=(e,t,i)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,rq(e,t)}catch(l){ld(l,e.$hostElement$)}return null},lq=e=>{const t=e.$cmpMeta$.$tagName$,i=e.$hostElement$,l=Uc("postUpdate",t),h=e.$lazyInstance$,f=e.$ancestorComponent$;ad(h,"componentDidRender"),e.$flags$&64?l():(e.$flags$|=64,HL(i),ad(h,"componentDidLoad"),l(),e.$onReadyResolve$(i),f||UL()),e.$onInstanceResolve$(i),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&W4(()=>jv(e,!1)),e.$flags$&=-517},Y4=e=>{{const t=$u(e),i=t.$hostElement$.isConnected;return i&&(t.$flags$&18)===2&&jv(t,!1),i}},UL=e=>{HL($l.documentElement),W4(()=>NL(f1,"appload",{detail:{namespace:$W}}))},ad=(e,t,i)=>{if(e&&e[t])try{return e[t](i)}catch(l){ld(l)}},VL=(e,t)=>e&&e.then?e.then(t):t(),HL=e=>e.classList.add("hydrated"),cq=(e,t)=>$u(e).$instanceValues$.get(t),uq=(e,t,i,l)=>{const h=$u(e),f=h.$hostElement$,_=h.$instanceValues$.get(t),o=h.$flags$,I=h.$lazyInstance$;i=XW(i,l.$members$[t][0]);const D=Number.isNaN(_)&&Number.isNaN(i),O=i!==_&&!D;if((!(o&8)||_===void 0)&&O&&(h.$instanceValues$.set(t,i),I)){if(l.$watchers$&&o&128){const P=l.$watchers$[t];P&&P.map(F=>{try{I[F](i,_,t)}catch(Q){ld(Q,f)}})}(o&18)===2&&jv(h,!1)}},QL=(e,t,i)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const l=Object.entries(t.$members$),h=e.prototype;if(l.map(([f,[_]])=>{_&31||i&2&&_&32?Object.defineProperty(h,f,{get(){return cq(this,f)},set(o){uq(this,f,o,t)},configurable:!0,enumerable:!0}):i&1&&_&64&&Object.defineProperty(h,f,{value(...o){const I=$u(this);return I.$onInstancePromise$.then(()=>I.$lazyInstance$[f](...o))}})}),i&1){const f=new Map;h.attributeChangedCallback=function(_,o,I){as.jmp(()=>{const D=f.get(_);if(this.hasOwnProperty(D))I=this[D],delete this[D];else if(h.hasOwnProperty(D)&&typeof this[D]=="number"&&this[D]==I)return;this[D]=I===null&&typeof this[D]=="boolean"?!1:I})},e.observedAttributes=l.filter(([_,o])=>o[0]&15).map(([_,o])=>{const I=o[1]||_;return f.set(I,_),o[0]&512&&t.$attrsToReflect$.push([_,I]),I})}}return e},hq=async(e,t,i,l,h)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,h=vq(i),h.then){const I=YW();h=await h,I()}h.isProxied||(i.$watchers$=h.watchers,QL(h,i,2),h.isProxied=!0);const o=Uc("createInstance",i.$tagName$);t.$flags$|=8;try{new h(t)}catch(I){ld(I)}t.$flags$&=-9,t.$flags$|=128,o(),$L(t.$lazyInstance$)}if(h.style){let o=h.style;const I=zL(i);if(!Pv.has(I)){const D=Uc("registerStyles",i.$tagName$);JW(I,o,!!(i.$flags$&1)),D()}}}const f=t.$ancestorComponent$,_=()=>jv(t,!0);f&&f["s-rc"]?f["s-rc"].push(_):_()},$L=e=>{ad(e,"connectedCallback")},dq=e=>{if(!(as.$flags$&1)){const t=$u(e),i=t.$cmpMeta$,l=Uc("connectedCallback",i.$tagName$);if(t.$flags$&1)YL(e,t,i.$listeners$),$L(t.$lazyInstance$);else{t.$flags$|=1;{let h=e;for(;h=h.parentNode||h.host;)if(h["s-p"]){BL(t,t.$ancestorComponent$=h);break}}i.$members$&&Object.entries(i.$members$).map(([h,[f]])=>{if(f&31&&e.hasOwnProperty(h)){const _=e[h];delete e[h],e[h]=_}}),hq(e,t,i)}l()}},fq=e=>{if(!(as.$flags$&1)){const t=$u(e),i=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(l=>l()),t.$rmListeners$=void 0),ad(i,"disconnectedCallback")}},pq=(e,t={})=>{var i;const l=Uc(),h=[],f=t.exclude||[],_=f1.customElements,o=$l.head,I=o.querySelector("meta[charset]"),D=$l.createElement("style"),O=[];let P,F=!0;Object.assign(as,t),as.$resourcesUrl$=new URL(t.resourcesUrl||"./",$l.baseURI).href,e.map(Q=>{Q[1].map(J=>{const ae={$flags$:J[0],$tagName$:J[1],$members$:J[2],$listeners$:J[3]};ae.$members$=J[2],ae.$listeners$=J[3],ae.$attrsToReflect$=[],ae.$watchers$={};const Ne=ae.$tagName$,oe=class extends HTMLElement{constructor(Z){super(Z),Z=this,_q(Z,ae),ae.$flags$&1&&Z.attachShadow({mode:"open"})}connectedCallback(){P&&(clearTimeout(P),P=null),F?O.push(this):as.jmp(()=>dq(this))}disconnectedCallback(){as.jmp(()=>fq(this))}componentOnReady(){return $u(this).$onReadyPromise$}};ae.$lazyBundleId$=Q[0],!f.includes(Ne)&&!_.get(Ne)&&(h.push(Ne),_.define(Ne,QL(oe,ae,1)))})});{D.innerHTML=h+GW,D.setAttribute("data-styles","");const Q=(i=as.$nonce$)!==null&&i!==void 0?i:EL($l);Q!=null&&D.setAttribute("nonce",Q),o.insertBefore(D,I?I.nextSibling:o.firstChild)}F=!1,O.length?O.map(Q=>Q.connectedCallback()):as.jmp(()=>P=setTimeout(UL,30)),l()},YL=(e,t,i,l)=>{i&&i.map(([h,f,_])=>{const o=mq(e,h),I=gq(t,_),D=yq(h);as.ael(o,f,I,D),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>as.rel(o,f,I,D))})},gq=(e,t)=>i=>{try{e.$flags$&256?e.$lazyInstance$[t](i):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,i])}catch(l){ld(l)}},mq=(e,t)=>t&8?f1:e,yq=e=>(e&2)!==0,G4=new WeakMap,$u=e=>G4.get(e),Sr=(e,t)=>G4.set(t.$lazyInstance$=e,t),_q=(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"]=[],YL(e,i,t.$listeners$),G4.set(e,i)},GL=(e,t)=>t in e,ld=(e,t)=>(0,console.error)(e,t),ZL=new Map,vq=(e,t,i)=>{const l=e.$tagName$.replace(/-/g,"_"),h=e.$lazyBundleId$,f=ZL.get(h);if(f)return f[l];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return QW(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Mae),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Sae),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>Dae),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Aae),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Lae),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>Bae),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Hae),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>Qae),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Xae),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>ele),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>dle),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>ple),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>mle),"./mi-list.entry.js":()=>Promise.resolve().then(()=>_le),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Hfe),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>$fe),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Xfe),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>npe),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>rpe),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>vpe),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>wpe),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Mpe),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Tpe),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Cpe),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Ape),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>Npe),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>zpe),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Ope),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Bpe),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Vpe),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Qpe),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Ype),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>Gpe),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Wpe),"./mi-time.entry.js":()=>Promise.resolve().then(()=>qpe)}),`./${h}.entry.js`).then(_=>(ZL.set(h,_),_[l]),ld)},Pv=new Map,f1=typeof window<"u"?window:{},$l=f1.document||{head:{}},as={$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)},WL=e=>Promise.resolve(e),xq=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),qL=[],KL=[],wq=(e,t)=>i=>{e.push(i),H4||(H4=!0,t&&as.$flags$&4?W4(Z4):as.raf(Z4))},XL=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){ld(i)}e.length=0},Z4=()=>{XL(qL),XL(KL),(H4=qL.length>0)&&as.raf(Z4)},W4=e=>WL().then(e),bq=wq(KL,!0),Mq=()=>WL(),JL=(e,t)=>typeof window>"u"?Promise.resolve():Mq().then(()=>pq([["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"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],customPositionProvider:[16],positionState:[32],setPosition:[64],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtons:[64],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"],showFloor:[4,"show-floor"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Iq={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Rv{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,i)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=t||Iq,this.options=i,this.debug=i.debug}log(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"log","",!0)}warn(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"warn","",!0)}error(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"error","")}deprecate(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,l,h){return h&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${l}${this.prefix} ${t[0]}`),this.logger[i](t))}create(t){return new Rv(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Rv(this.logger,t)}}var Yl=new Rv;class Fv{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(l=>{this.observers[l]=this.observers[l]||[],this.observers[l].push(i)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(l=>l!==i)}}emit(t){for(var i=arguments.length,l=new Array(i>1?i-1:0),h=1;h<i;h++)l[h-1]=arguments[h];this.observers[t]&&[].concat(this.observers[t]).forEach(_=>{_(...l)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(_=>{_.apply(_,[t,...l])})}}function p1(){let e,t;const i=new Promise((l,h)=>{e=l,t=h});return i.resolve=e,i.reject=t,i}function ez(e){return e==null?"":""+e}function Tq(e,t,i){e.forEach(l=>{t[l]&&(i[l]=t[l])})}function q4(e,t,i){function l(_){return _&&_.indexOf("###")>-1?_.replace(/###/g,"."):_}function h(){return!e||typeof e=="string"}const f=typeof t!="string"?[].concat(t):t.split(".");for(;f.length>1;){if(h())return{};const _=l(f.shift());!e[_]&&i&&(e[_]=new i),Object.prototype.hasOwnProperty.call(e,_)?e=e[_]:e={}}return h()?{}:{obj:e,k:l(f.shift())}}function tz(e,t,i){const{obj:l,k:h}=q4(e,t,Object);l[h]=i}function Sq(e,t,i,l){const{obj:h,k:f}=q4(e,t,Object);h[f]=h[f]||[],l&&(h[f]=h[f].concat(i)),l||h[f].push(i)}function Bv(e,t){const{obj:i,k:l}=q4(e,t);if(i)return i[l]}function Cq(e,t,i){const l=Bv(e,i);return l!==void 0?l:Bv(t,i)}function nz(e,t,i){for(const l in t)l!=="__proto__"&&l!=="constructor"&&(l in e?typeof e[l]=="string"||e[l]instanceof String||typeof t[l]=="string"||t[l]instanceof String?i&&(e[l]=t[l]):nz(e[l],t[l],i):e[l]=t[l]);return e}function Kf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Dq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Aq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Dq[t]):e}const Eq=[" ",",","?","!",";"];function Nq(e,t,i){t=t||"",i=i||"";const l=Eq.filter(_=>t.indexOf(_)<0&&i.indexOf(_)<0);if(l.length===0)return!0;const h=new RegExp(`(${l.map(_=>_==="?"?"\\?":_).join("|")})`);let f=!h.test(e);if(!f){const _=e.indexOf(i);_>0&&!h.test(e.substring(0,_))&&(f=!0)}return f}function Uv(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const l=t.split(i);let h=e;for(let f=0;f<l.length;++f){if(!h||typeof h[l[f]]=="string"&&f+1<l.length)return;if(h[l[f]]===void 0){let _=2,o=l.slice(f,f+_).join(i),I=h[o];for(;I===void 0&&l.length>f+_;)_++,o=l.slice(f,f+_).join(i),I=h[o];if(I===void 0)return;if(I===null)return null;if(t.endsWith(o)){if(typeof I=="string")return I;if(o&&typeof I[o]=="string")return I[o]}const D=l.slice(f+_).join(i);return D?Uv(I,D,i):void 0}h=h[l[f]]}return h}function Vv(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class iz extends Fv{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator,_=h.ignoreJSONStructure!==void 0?h.ignoreJSONStructure:this.options.ignoreJSONStructure;let o=[t,i];l&&typeof l!="string"&&(o=o.concat(l)),l&&typeof l=="string"&&(o=o.concat(f?l.split(f):l)),t.indexOf(".")>-1&&(o=t.split("."));const I=Bv(this.data,o);return I||!_||typeof l!="string"?I:Uv(this.data&&this.data[t]&&this.data[t][i],l,f)}addResource(t,i,l,h){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const _=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let o=[t,i];l&&(o=o.concat(_?l.split(_):l)),t.indexOf(".")>-1&&(o=t.split("."),h=i,i=o[1]),this.addNamespaces(i),tz(this.data,o,h),f.silent||this.emit("added",t,i,l,h)}addResources(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in l)(typeof l[f]=="string"||Object.prototype.toString.apply(l[f])==="[object Array]")&&this.addResource(t,i,f,l[f],{silent:!0});h.silent||this.emit("added",t,i,l)}addResourceBundle(t,i,l,h,f){let _=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[t,i];t.indexOf(".")>-1&&(o=t.split("."),h=l,l=i,i=o[1]),this.addNamespaces(i);let I=Bv(this.data,o)||{};h?nz(I,l,f):I={...I,...l},tz(this.data,o,I),_.silent||this.emit("added",t,i,l)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,i)}:this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(h=>i[h]&&Object.keys(i[h]).length>0)}toJSON(){return this.data}}var rz={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,l,h){return e.forEach(f=>{this.processors[f]&&(t=this.processors[f].process(t,i,l,h))}),t}};const oz={};class Hv extends Fv{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Tq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const l=this.resolve(t,i);return l&&l.res!==void 0}extractFromKey(t,i){let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const h=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let f=i.ns||this.options.defaultNS||[];const _=l&&t.indexOf(l)>-1,o=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Nq(t,l,h);if(_&&!o){const I=t.match(this.interpolator.nestingRegexp);if(I&&I.length>0)return{key:t,namespaces:f};const D=t.split(l);(l!==h||l===h&&this.options.ns.indexOf(D[0])>-1)&&(f=D.shift()),t=D.join(h)}return typeof f=="string"&&(f=[f]),{key:t,namespaces:f}}translate(t,i,l){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const h=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:_,namespaces:o}=this.extractFromKey(t[t.length-1],i),I=o[o.length-1],D=i.lng||this.language,O=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(D&&D.toLowerCase()==="cimode"){if(O){const se=i.nsSeparator||this.options.nsSeparator;return h?{res:`${I}${se}${_}`,usedKey:_,exactUsedKey:_,usedLng:D,usedNS:I,usedParams:this.getUsedParamsDetails(i)}:`${I}${se}${_}`}return h?{res:_,usedKey:_,exactUsedKey:_,usedLng:D,usedNS:I,usedParams:this.getUsedParamsDetails(i)}:_}const P=this.resolve(t,i);let F=P&&P.res;const Q=P&&P.usedKey||_,J=P&&P.exactUsedKey||_,ae=Object.prototype.toString.apply(F),Ne=["[object Number]","[object Function]","[object RegExp]"],oe=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,Z=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Z&&F&&(typeof F!="string"&&typeof F!="boolean"&&typeof F!="number")&&Ne.indexOf(ae)<0&&!(typeof oe=="string"&&ae==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const se=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Q,F,{...i,ns:o}):`key '${_} (${this.language})' returned an object instead of string.`;return h?(P.res=se,P.usedParams=this.getUsedParamsDetails(i),P):se}if(f){const se=ae==="[object Array]",ve=se?[]:{},ue=se?J:Q;for(const Be in F)if(Object.prototype.hasOwnProperty.call(F,Be)){const $e=`${ue}${f}${Be}`;ve[Be]=this.translate($e,{...i,joinArrays:!1,ns:o}),ve[Be]===$e&&(ve[Be]=F[Be])}F=ve}}else if(Z&&typeof oe=="string"&&ae==="[object Array]")F=F.join(oe),F&&(F=this.extendTranslation(F,t,i,l));else{let se=!1,ve=!1;const ue=i.count!==void 0&&typeof i.count!="string",Be=Hv.hasDefaultValue(i),$e=ue?this.pluralResolver.getSuffix(D,i.count,i):"",Ue=i.ordinal&&ue?this.pluralResolver.getSuffix(D,i.count,{ordinal:!1}):"",Fe=i[`defaultValue${$e}`]||i[`defaultValue${Ue}`]||i.defaultValue;!this.isValidLookup(F)&&Be&&(se=!0,F=Fe),this.isValidLookup(F)||(ve=!0,F=_);const ct=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ve?void 0:F,yt=Be&&Fe!==F&&this.options.updateMissing;if(ve||se||yt){if(this.logger.log(yt?"updateKey":"missingKey",D,I,_,yt?Fe:F),f){const Ft=this.resolve(_,{...i,keySeparator:!1});Ft&&Ft.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ht=[];const _t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&_t&&_t[0])for(let Ft=0;Ft<_t.length;Ft++)Ht.push(_t[Ft]);else this.options.saveMissingTo==="all"?Ht=this.languageUtils.toResolveHierarchy(i.lng||this.language):Ht.push(i.lng||this.language);const wt=(Ft,gt,Rt)=>{const H=Be&&Rt!==F?Rt:ct;this.options.missingKeyHandler?this.options.missingKeyHandler(Ft,I,gt,H,yt,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ft,I,gt,H,yt,i),this.emit("missingKey",Ft,I,gt,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ue?Ht.forEach(Ft=>{this.pluralResolver.getSuffixes(Ft,i).forEach(gt=>{wt([Ft],_+gt,i[`defaultValue${gt}`]||Fe)})}):wt(Ht,_,Fe))}F=this.extendTranslation(F,t,i,P,l),ve&&F===_&&this.options.appendNamespaceToMissingKey&&(F=`${I}:${_}`),(ve||se)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?F=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${I}:${_}`:_,se?F:void 0):F=this.options.parseMissingKeyHandler(F))}return h?(P.res=F,P.usedParams=this.getUsedParamsDetails(i),P):F}extendTranslation(t,i,l,h,f){var _=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...l},l.lng||this.language||h.usedLng,h.usedNS,h.usedKey,{resolved:h});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init({...l,interpolation:{...this.options.interpolation,...l.interpolation}});const D=typeof t=="string"&&(l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let O;if(D){const F=t.match(this.interpolator.nestingRegexp);O=F&&F.length}let P=l.replace&&typeof l.replace!="string"?l.replace:l;if(this.options.interpolation.defaultVariables&&(P={...this.options.interpolation.defaultVariables,...P}),t=this.interpolator.interpolate(t,P,l.lng||this.language,l),D){const F=t.match(this.interpolator.nestingRegexp),Q=F&&F.length;O<Q&&(l.nest=!1)}!l.lng&&this.options.compatibilityAPI!=="v1"&&h&&h.res&&(l.lng=h.usedLng),l.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var F=arguments.length,Q=new Array(F),J=0;J<F;J++)Q[J]=arguments[J];return f&&f[0]===Q[0]&&!l.context?(_.logger.warn(`It seems you are nesting recursively key: ${Q[0]} in key: ${i[0]}`),null):_.translate(...Q,i)},l)),l.interpolation&&this.interpolator.reset()}const o=l.postProcess||this.options.postProcess,I=typeof o=="string"?[o]:o;return t!=null&&I&&I.length&&l.applyPostProcessor!==!1&&(t=rz.handle(I,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...h,usedParams:this.getUsedParamsDetails(l)},...l}:l,this)),t}resolve(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,h,f,_,o;return typeof t=="string"&&(t=[t]),t.forEach(I=>{if(this.isValidLookup(l))return;const D=this.extractFromKey(I,i),O=D.key;h=O;let P=D.namespaces;this.options.fallbackNS&&(P=P.concat(this.options.fallbackNS));const F=i.count!==void 0&&typeof i.count!="string",Q=F&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),J=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",ae=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);P.forEach(Ne=>{this.isValidLookup(l)||(o=Ne,!oz[`${ae[0]}-${Ne}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(oz[`${ae[0]}-${Ne}`]=!0,this.logger.warn(`key "${h}" for languages "${ae.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ae.forEach(oe=>{if(this.isValidLookup(l))return;_=oe;const Z=[O];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Z,O,oe,Ne,i);else{let se;F&&(se=this.pluralResolver.getSuffix(oe,i.count,i));const ve=`${this.options.pluralSeparator}zero`,ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(F&&(Z.push(O+se),i.ordinal&&se.indexOf(ue)===0&&Z.push(O+se.replace(ue,this.options.pluralSeparator)),Q&&Z.push(O+ve)),J){const Be=`${O}${this.options.contextSeparator}${i.context}`;Z.push(Be),F&&(Z.push(Be+se),i.ordinal&&se.indexOf(ue)===0&&Z.push(Be+se.replace(ue,this.options.pluralSeparator)),Q&&Z.push(Be+ve))}}let W;for(;W=Z.pop();)this.isValidLookup(l)||(f=W,l=this.getResource(oe,Ne,W,i))}))})}),{res:l,usedKey:h,exactUsedKey:f,usedLng:_,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,i,l,h):this.resourceStore.getResource(t,i,l,h)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],l=t.replace&&typeof t.replace!="string";let h=l?t.replace:t;if(l&&typeof t.count<"u"&&(h.count=t.count),this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),!l){h={...h};for(const f of i)delete h[f]}return h}static hasDefaultValue(t){const i="defaultValue";for(const l in t)if(Object.prototype.hasOwnProperty.call(t,l)&&i===l.substring(0,i.length)&&t[l]!==void 0)return!0;return!1}}function K4(e){return e.charAt(0).toUpperCase()+e.slice(1)}class sz{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yl.create("languageUtils")}getScriptPartFromCode(t){if(t=Vv(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=Vv(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const i=["hans","hant","latn","cyrl","cans","mong","arab"];let l=t.split("-");return this.options.lowerCaseLng?l=l.map(h=>h.toLowerCase()):l.length===2?(l[0]=l[0].toLowerCase(),l[1]=l[1].toUpperCase(),i.indexOf(l[1].toLowerCase())>-1&&(l[1]=K4(l[1].toLowerCase()))):l.length===3&&(l[0]=l[0].toLowerCase(),l[1].length===2&&(l[1]=l[1].toUpperCase()),l[0]!=="sgn"&&l[2].length===2&&(l[2]=l[2].toUpperCase()),i.indexOf(l[1].toLowerCase())>-1&&(l[1]=K4(l[1].toLowerCase())),i.indexOf(l[2].toLowerCase())>-1&&(l[2]=K4(l[2].toLowerCase()))),l.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(l=>{if(i)return;const h=this.formatLanguageCode(l);(!this.options.supportedLngs||this.isSupportedCode(h))&&(i=h)}),!i&&this.options.supportedLngs&&t.forEach(l=>{if(i)return;const h=this.getLanguagePartFromCode(l);if(this.isSupportedCode(h))return i=h;i=this.options.supportedLngs.find(f=>{if(f===h)return f;if(!(f.indexOf("-")<0&&h.indexOf("-")<0)&&f.indexOf(h)===0)return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!i)return t.default||[];let l=t[i];return l||(l=t[this.getScriptPartFromCode(i)]),l||(l=t[this.formatLanguageCode(i)]),l||(l=t[this.getLanguagePartFromCode(i)]),l||(l=t.default),l||[]}toResolveHierarchy(t,i){const l=this.getFallbackCodes(i||this.options.fallbackLng||[],t),h=[],f=_=>{_&&(this.isSupportedCode(_)?h.push(_):this.logger.warn(`rejecting language code not found in supportedLngs: ${_}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(t))):typeof t=="string"&&f(this.formatLanguageCode(t)),l.forEach(_=>{h.indexOf(_)<0&&f(this.formatLanguageCode(_))}),h}}let Lq=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zq={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const kq=["v1","v2","v3"],Oq=["v4"],az={zero:0,one:1,two:2,few:3,many:4,other:5};function jq(){const e={};return Lq.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:zq[t.fc]}})}),e}class Pq{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=i,this.logger=Yl.create("pluralResolver"),(!this.options.compatibilityJSON||Oq.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=jq()}addRule(t,i){this.rules[t]=i}getRule(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Vv(t),{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const l=this.getRule(t,i);return this.shouldUseIntlApi()?l&&l.resolvedOptions().pluralCategories.length>1:l&&l.numbers.length>1}getPluralFormsOfKey(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,l).map(h=>`${i}${h}`)}getSuffixes(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const l=this.getRule(t,i);return l?this.shouldUseIntlApi()?l.resolvedOptions().pluralCategories.sort((h,f)=>az[h]-az[f]).map(h=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${h}`):l.numbers.map(h=>this.getSuffix(t,h,i)):[]}getSuffix(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const h=this.getRule(t,l);return h?this.shouldUseIntlApi()?`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${h.select(i)}`:this.getSuffixRetroCompatible(h,i):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,i){const l=t.noAbs?t.plurals(i):t.plurals(Math.abs(i));let h=t.numbers[l];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(h===2?h="plural":h===1&&(h=""));const f=()=>this.options.prepend&&h.toString()?this.options.prepend+h.toString():h.toString();return this.options.compatibilityJSON==="v1"?h===1?"":typeof h=="number"?`_plural_${h.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?f():this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString()}shouldUseIntlApi(){return!kq.includes(this.options.compatibilityJSON)}}function lz(e,t,i){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Cq(e,t,i);return!f&&h&&typeof i=="string"&&(f=Uv(e,i,l),f===void 0&&(f=Uv(t,i,l))),f}class Rq{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(i=>i),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const i=t.interpolation;this.escape=i.escape!==void 0?i.escape:Aq,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?Kf(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?Kf(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?Kf(i.nestingPrefix):i.nestingPrefixEscaped||Kf("$t("),this.nestingSuffix=i.nestingSuffix?Kf(i.nestingSuffix):i.nestingSuffixEscaped||Kf(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const i=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(i,"g");const l=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(l,"g")}interpolate(t,i,l,h){let f,_,o;const I=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function D(J){return J.replace(/\$/g,"$$$$")}const O=J=>{if(J.indexOf(this.formatSeparator)<0){const Z=lz(i,I,J,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Z,void 0,l,{...h,...i,interpolationkey:J}):Z}const ae=J.split(this.formatSeparator),Ne=ae.shift().trim(),oe=ae.join(this.formatSeparator).trim();return this.format(lz(i,I,Ne,this.options.keySeparator,this.options.ignoreJSONStructure),oe,l,{...h,...i,interpolationkey:Ne})};this.resetRegExp();const P=h&&h.missingInterpolationHandler||this.options.missingInterpolationHandler,F=h&&h.interpolation&&h.interpolation.skipOnVariables!==void 0?h.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:J=>D(J)},{regex:this.regexp,safeValue:J=>this.escapeValue?D(this.escape(J)):D(J)}].forEach(J=>{for(o=0;f=J.regex.exec(t);){const ae=f[1].trim();if(_=O(ae),_===void 0)if(typeof P=="function"){const oe=P(t,f,h);_=typeof oe=="string"?oe:""}else if(h&&Object.prototype.hasOwnProperty.call(h,ae))_="";else if(F){_=f[0];continue}else this.logger.warn(`missed to pass in variable ${ae} for interpolating ${t}`),_="";else typeof _!="string"&&!this.useRawValueToEscape&&(_=ez(_));const Ne=J.safeValue(_);if(t=t.replace(f[0],Ne),F?(J.regex.lastIndex+=_.length,J.regex.lastIndex-=f[0].length):J.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,f,_;function o(I,D){const O=this.nestingOptionsSeparator;if(I.indexOf(O)<0)return I;const P=I.split(new RegExp(`${O}[ ]*{`));let F=`{${P[1]}`;I=P[0],F=this.interpolate(F,_);const Q=F.match(/'/g),J=F.match(/"/g);(Q&&Q.length%2===0&&!J||J.length%2!==0)&&(F=F.replace(/'/g,'"'));try{_=JSON.parse(F),D&&(_={...D,..._})}catch(ae){return this.logger.warn(`failed parsing options string in nesting for key ${I}`,ae),`${I}${O}${F}`}return delete _.defaultValue,I}for(;h=this.nestingRegexp.exec(t);){let I=[];_={...l},_=_.replace&&typeof _.replace!="string"?_.replace:_,_.applyPostProcessor=!1,delete _.defaultValue;let D=!1;if(h[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(h[1])){const O=h[1].split(this.formatSeparator).map(P=>P.trim());h[1]=O.shift(),I=O,D=!0}if(f=i(o.call(this,h[1].trim(),_),_),f&&h[0]===t&&typeof f!="string")return f;typeof f!="string"&&(f=ez(f)),f||(this.logger.warn(`missed to resolve ${h[1]} for nesting ${t}`),f=""),D&&(f=I.reduce((O,P)=>this.format(O,P,l.lng,{...l,interpolationkey:h[1].trim()}),f.trim())),t=t.replace(h[0],f),this.regexp.lastIndex=0}return t}}function Fq(e){let t=e.toLowerCase().trim();const i={};if(e.indexOf("(")>-1){const l=e.split("(");t=l[0].toLowerCase().trim();const h=l[1].substring(0,l[1].length-1);t==="currency"&&h.indexOf(":")<0?i.currency||(i.currency=h.trim()):t==="relativetime"&&h.indexOf(":")<0?i.range||(i.range=h.trim()):h.split(";").forEach(_=>{if(!_)return;const[o,...I]=_.split(":"),D=I.join(":").trim().replace(/^'+|'+$/g,"");i[o.trim()]||(i[o.trim()]=D),D==="false"&&(i[o.trim()]=!1),D==="true"&&(i[o.trim()]=!0),isNaN(D)||(i[o.trim()]=parseInt(D,10))})}return{formatName:t,formatOptions:i}}function Xf(e){const t={};return function(l,h,f){const _=h+JSON.stringify(f);let o=t[_];return o||(o=e(Vv(h),f),t[_]=o),o(l)}}class Bq{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yl.create("formatter"),this.options=t,this.formats={number:Xf((i,l)=>{const h=new Intl.NumberFormat(i,{...l});return f=>h.format(f)}),currency:Xf((i,l)=>{const h=new Intl.NumberFormat(i,{...l,style:"currency"});return f=>h.format(f)}),datetime:Xf((i,l)=>{const h=new Intl.DateTimeFormat(i,{...l});return f=>h.format(f)}),relativetime:Xf((i,l)=>{const h=new Intl.RelativeTimeFormat(i,{...l});return f=>h.format(f,l.range||"day")}),list:Xf((i,l)=>{const h=new Intl.ListFormat(i,{...l});return f=>h.format(f)})},this.init(t)}init(t){const l=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=l.formatSeparator?l.formatSeparator:l.formatSeparator||","}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=Xf(i)}format(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return i.split(this.formatSeparator).reduce((o,I)=>{const{formatName:D,formatOptions:O}=Fq(I);if(this.formats[D]){let P=o;try{const F=h&&h.formatParams&&h.formatParams[h.interpolationkey]||{},Q=F.locale||F.lng||h.locale||h.lng||l;P=this.formats[D](o,Q,{...O,...h,...F})}catch(F){this.logger.warn(F)}return P}else this.logger.warn(`there was no format function for ${D}`);return o},t)}}function Uq(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Vq extends Fv{constructor(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=i,this.services=l,this.languageUtils=l.languageUtils,this.options=h,this.logger=Yl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=h.maxParallelReads||10,this.readingCalls=0,this.maxRetries=h.maxRetries>=0?h.maxRetries:5,this.retryTimeout=h.retryTimeout>=1?h.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(l,h.backend,h)}queueLoad(t,i,l,h){const f={},_={},o={},I={};return t.forEach(D=>{let O=!0;i.forEach(P=>{const F=`${D}|${P}`;!l.reload&&this.store.hasResourceBundle(D,P)?this.state[F]=2:this.state[F]<0||(this.state[F]===1?_[F]===void 0&&(_[F]=!0):(this.state[F]=1,O=!1,_[F]===void 0&&(_[F]=!0),f[F]===void 0&&(f[F]=!0),I[P]===void 0&&(I[P]=!0)))}),O||(o[D]=!0)}),(Object.keys(f).length||Object.keys(_).length)&&this.queue.push({pending:_,pendingCount:Object.keys(_).length,loaded:{},errors:[],callback:h}),{toLoad:Object.keys(f),pending:Object.keys(_),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(I)}}loaded(t,i,l){const h=t.split("|"),f=h[0],_=h[1];i&&this.emit("failedLoading",f,_,i),l&&this.store.addResourceBundle(f,_,l),this.state[t]=i?-1:2;const o={};this.queue.forEach(I=>{Sq(I.loaded,[f],_),Uq(I,t),i&&I.errors.push(i),I.pendingCount===0&&!I.done&&(Object.keys(I.loaded).forEach(D=>{o[D]||(o[D]={});const O=I.loaded[D];O.length&&O.forEach(P=>{o[D][P]===void 0&&(o[D][P]=!0)})}),I.done=!0,I.errors.length?I.callback(I.errors):I.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(I=>!I.done)}read(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,_=arguments.length>5?arguments[5]:void 0;if(!t.length)return _(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:l,tried:h,wait:f,callback:_});return}this.readingCalls++;const o=(D,O)=>{if(this.readingCalls--,this.waitingReads.length>0){const P=this.waitingReads.shift();this.read(P.lng,P.ns,P.fcName,P.tried,P.wait,P.callback)}if(D&&O&&h<this.maxRetries){setTimeout(()=>{this.read.call(this,t,i,l,h+1,f*2,_)},f);return}_(D,O)},I=this.backend[l].bind(this.backend);if(I.length===2){try{const D=I(t,i);D&&typeof D.then=="function"?D.then(O=>o(null,O)).catch(o):o(null,D)}catch(D){o(D)}return}return I(t,i,o)}prepareLoading(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),h&&h();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof i=="string"&&(i=[i]);const f=this.queueLoad(t,i,l,h);if(!f.toLoad.length)return f.pending.length||h(),null;f.toLoad.forEach(_=>{this.loadOne(_)})}load(t,i,l){this.prepareLoading(t,i,{},l)}reload(t,i,l){this.prepareLoading(t,i,{reload:!0},l)}loadOne(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const l=t.split("|"),h=l[0],f=l[1];this.read(h,f,"read",void 0,void 0,(_,o)=>{_&&this.logger.warn(`${i}loading namespace ${f} for language ${h} failed`,_),!_&&o&&this.logger.log(`${i}loaded namespace ${f} for language ${h}`,o),this.loaded(t,_,o)})}saveMissing(t,i,l,h,f){let _=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${l}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if(this.backend&&this.backend.create){const I={..._,isUpdate:f},D=this.backend.create.bind(this.backend);if(D.length<6)try{let O;D.length===5?O=D(t,i,l,h,I):O=D(t,i,l,h),O&&typeof O.then=="function"?O.then(P=>o(null,P)).catch(o):o(null,O)}catch(O){o(O)}else D(t,i,l,h,o,I)}!t||!t[0]||this.store.addResource(t[0],i,l,h)}}}function cz(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let i={};if(typeof t[1]=="object"&&(i=t[1]),typeof t[1]=="string"&&(i.defaultValue=t[1]),typeof t[2]=="string"&&(i.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const l=t[3]||t[2];Object.keys(l).forEach(h=>{i[h]=l[h]})}return i},interpolation:{escapeValue:!0,format:(e,t,i,l)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function uz(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Qv(){}function Hq(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})}class g1 extends Fv{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=uz(t),this.services={},this.logger=Yl,this.modules={external:[]},Hq(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(){var t=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(l=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const h=cz();this.options={...h,...this.options,...uz(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...h.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function f(O){return O?typeof O=="function"?new O:O:null}if(!this.options.isClone){this.modules.logger?Yl.init(f(this.modules.logger),this.options):Yl.init(null,this.options);let O;this.modules.formatter?O=this.modules.formatter:typeof Intl<"u"&&(O=Bq);const P=new sz(this.options);this.store=new iz(this.options.resources,this.options);const F=this.services;F.logger=Yl,F.resourceStore=this.store,F.languageUtils=P,F.pluralResolver=new Pq(P,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),O&&(!this.options.interpolation.format||this.options.interpolation.format===h.interpolation.format)&&(F.formatter=f(O),F.formatter.init(F,this.options),this.options.interpolation.format=F.formatter.format.bind(F.formatter)),F.interpolator=new Rq(this.options),F.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},F.backendConnector=new Vq(f(this.modules.backend),F.resourceStore,F,this.options),F.backendConnector.on("*",function(Q){for(var J=arguments.length,ae=new Array(J>1?J-1:0),Ne=1;Ne<J;Ne++)ae[Ne-1]=arguments[Ne];t.emit(Q,...ae)}),this.modules.languageDetector&&(F.languageDetector=f(this.modules.languageDetector),F.languageDetector.init&&F.languageDetector.init(F,this.options.detection,this.options)),this.modules.i18nFormat&&(F.i18nFormat=f(this.modules.i18nFormat),F.i18nFormat.init&&F.i18nFormat.init(this)),this.translator=new Hv(this.services,this.options),this.translator.on("*",function(Q){for(var J=arguments.length,ae=new Array(J>1?J-1:0),Ne=1;Ne<J;Ne++)ae[Ne-1]=arguments[Ne];t.emit(Q,...ae)}),this.modules.external.forEach(Q=>{Q.init&&Q.init(this)})}if(this.format=this.options.interpolation.format,l||(l=Qv),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const O=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);O.length>0&&O[0]!=="dev"&&(this.options.lng=O[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(O=>{this[O]=function(){return t.store[O](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(O=>{this[O]=function(){return t.store[O](...arguments),t}});const I=p1(),D=()=>{const O=(P,F)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),I.resolve(F),l(P,F)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return O(null,this.t.bind(this));this.changeLanguage(this.options.lng,O)};return this.options.resources||!this.options.initImmediate?D():setTimeout(D,0),I}loadResources(t){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qv;const h=typeof t=="string"?t:this.language;if(typeof t=="function"&&(l=t),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return l();const f=[],_=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(D=>{D!=="cimode"&&f.indexOf(D)<0&&f.push(D)})};h?_(h):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(I=>_(I)),this.options.preload&&this.options.preload.forEach(o=>_(o)),this.services.backendConnector.load(f,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),l(o)})}else l(null)}reloadResources(t,i,l){const h=p1();return t||(t=this.languages),i||(i=this.options.ns),l||(l=Qv),this.services.backendConnector.reload(t,i,f=>{h.resolve(),l(f)}),h}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&rz.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let i=0;i<this.languages.length;i++){const l=this.languages[i];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}}changeLanguage(t,i){var l=this;this.isLanguageChangingTo=t;const h=p1();this.emit("languageChanging",t);const f=I=>{this.language=I,this.languages=this.services.languageUtils.toResolveHierarchy(I),this.resolvedLanguage=void 0,this.setResolvedLanguage(I)},_=(I,D)=>{D?(f(D),this.translator.changeLanguage(D),this.isLanguageChangingTo=void 0,this.emit("languageChanged",D),this.logger.log("languageChanged",D)):this.isLanguageChangingTo=void 0,h.resolve(function(){return l.t(...arguments)}),i&&i(I,function(){return l.t(...arguments)})},o=I=>{!t&&!I&&this.services.languageDetector&&(I=[]);const D=typeof I=="string"?I:this.services.languageUtils.getBestMatchFromCodes(I);D&&(this.language||f(D),this.translator.language||this.translator.changeLanguage(D),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(D)),this.loadResources(D,O=>{_(O,D)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),h}getFixedT(t,i,l){var h=this;const f=function(_,o){let I;if(typeof o!="object"){for(var D=arguments.length,O=new Array(D>2?D-2:0),P=2;P<D;P++)O[P-2]=arguments[P];I=h.options.overloadTranslationOptionHandler([_,o].concat(O))}else I={...o};I.lng=I.lng||f.lng,I.lngs=I.lngs||f.lngs,I.ns=I.ns||f.ns,I.keyPrefix=I.keyPrefix||l||f.keyPrefix;const F=h.options.keySeparator||".";let Q;return I.keyPrefix&&Array.isArray(_)?Q=_.map(J=>`${I.keyPrefix}${F}${J}`):Q=I.keyPrefix?`${I.keyPrefix}${F}${_}`:_,h.t(Q,I)};return typeof t=="string"?f.lng=t:f.lngs=t,f.ns=i,f.keyPrefix=l,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const l=i.lng||this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const _=(o,I)=>{const D=this.services.backendConnector.state[`${o}|${I}`];return D===-1||D===2};if(i.precheck){const o=i.precheck(this,_);if(o!==void 0)return o}return!!(this.hasResourceBundle(l,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||_(l,t)&&(!h||_(f,t)))}loadNamespaces(t,i){const l=p1();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(h=>{this.options.ns.indexOf(h)<0&&this.options.ns.push(h)}),this.loadResources(h=>{l.resolve(),i&&i(h)}),l):(i&&i(),Promise.resolve())}loadLanguages(t,i){const l=p1();typeof t=="string"&&(t=[t]);const h=this.options.preload||[],f=t.filter(_=>h.indexOf(_)<0);return f.length?(this.options.preload=h.concat(f),this.loadResources(_=>{l.resolve(),i&&i(_)}),l):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],l=this.services&&this.services.languageUtils||new sz(cz());return i.indexOf(l.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new g1(t,i)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qv;const l=t.forkResourceStore;l&&delete t.forkResourceStore;const h={...this.options,...t,isClone:!0},f=new g1(h);return(t.debug!==void 0||t.prefix!==void 0)&&(f.logger=f.logger.clone(t)),["store","services","language"].forEach(o=>{f[o]=this[o]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},l&&(f.store=new iz(this.store.data,h),f.services.resourceStore=f.store),f.translator=new Hv(f.services,h),f.translator.on("*",function(o){for(var I=arguments.length,D=new Array(I>1?I-1:0),O=1;O<I;O++)D[O-1]=arguments[O];f.emit(o,...D)}),f.init(h,i),f.translator.options=h,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Qo=g1.createInstance();Qo.createInstance=g1.createInstance,Qo.createInstance,Qo.dir,Qo.init,Qo.loadResources,Qo.reloadResources,Qo.use,Qo.changeLanguage,Qo.getFixedT;const hz=Qo.t;Qo.exists,Qo.setDefaultNamespace,Qo.hasLoadedNamespace,Qo.loadNamespaces,Qo.loadLanguages;function X4(){return X4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var l in i)({}).hasOwnProperty.call(i,l)&&(e[l]=i[l])}return e},X4.apply(null,arguments)}function Qq(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const dz={};function J4(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];typeof t[0]=="string"&&dz[t[0]]||(typeof t[0]=="string"&&(dz[t[0]]=new Date),Qq(...t))}const fz=(e,t)=>()=>{if(e.isInitialized)t();else{const i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}};function pz(e,t,i){e.loadNamespaces(t,fz(e,i))}function gz(e,t,i,l){typeof i=="string"&&(i=[i]),i.forEach(h=>{e.options.ns.indexOf(h)<0&&e.options.ns.push(h)}),e.loadLanguages(t,fz(e,l))}function $q(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=t.languages[0],h=t.options?t.options.fallbackLng:!1,f=t.languages[t.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const _=(o,I)=>{const D=t.services.backendConnector.state[`${o}|${I}`];return D===-1||D===2};return i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!_(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(l,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||_(l,e)&&(!h||_(f,e)))}function Yq(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(J4("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:i.lng,precheck:(h,f)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&h.services.backendConnector.backend&&h.isLanguageChangingTo&&!f(h.isLanguageChangingTo,e))return!1}}):$q(e,t,i)}const Gq=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Zq={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Wq=e=>Zq[e];let e5={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Gq,Wq)};function qq(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e5={...e5,...e}}function Kq(){return e5}let mz;function Xq(e){mz=e}function Jq(){return mz}const eK={type:"3rdParty",init(e){qq(e.options.react),Xq(e)}},tK=ye.createContext();class nK{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const iK=(e,t)=>{const i=ye.useRef();return ye.useEffect(()=>{i.current=t?i.current:e},[e,t]),i.current};function $o(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:i}=t,{i18n:l,defaultNS:h}=ye.useContext(tK)||{},f=i||l||Jq();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new nK),!f){J4("You will need to pass in an i18next instance by using initReactI18next");const W=(ve,ue)=>typeof ue=="string"?ue:ue&&typeof ue=="object"&&typeof ue.defaultValue=="string"?ue.defaultValue:Array.isArray(ve)?ve[ve.length-1]:ve,se=[W,{},!1];return se.t=W,se.i18n={},se.ready=!1,se}f.options.react&&f.options.react.wait!==void 0&&J4("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const _={...Kq(),...f.options.react,...t},{useSuspense:o,keyPrefix:I}=_;let D=e||h||f.options&&f.options.defaultNS;D=typeof D=="string"?[D]:D||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(D);const O=(f.isInitialized||f.initializedStoreOnce)&&D.every(W=>Yq(W,f,_));function P(){return f.getFixedT(t.lng||null,_.nsMode==="fallback"?D:D[0],I)}const[F,Q]=ye.useState(P);let J=D.join();t.lng&&(J=`${t.lng}${J}`);const ae=iK(J),Ne=ye.useRef(!0);ye.useEffect(()=>{const{bindI18n:W,bindI18nStore:se}=_;Ne.current=!0,!O&&!o&&(t.lng?gz(f,t.lng,D,()=>{Ne.current&&Q(P)}):pz(f,D,()=>{Ne.current&&Q(P)})),O&&ae&&ae!==J&&Ne.current&&Q(P);function ve(){Ne.current&&Q(P)}return W&&f&&f.on(W,ve),se&&f&&f.store.on(se,ve),()=>{Ne.current=!1,W&&f&&W.split(" ").forEach(ue=>f.off(ue,ve)),se&&f&&se.split(" ").forEach(ue=>f.store.off(ue,ve))}},[f,J]);const oe=ye.useRef(!0);ye.useEffect(()=>{Ne.current&&!oe.current&&Q(P),oe.current=!1},[f,I]);const Z=[F,f,O];if(Z.t=F,Z.i18n=f,Z.ready=O,O||!O&&!o)return Z;throw new Promise(W=>{t.lng?gz(f,t.lng,D,()=>W()):pz(f,D,()=>W())})}const rK={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Show legend":"Show legend","Ask with AI":"Ask with AI","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","Include bus transportation":"Include bus transportation","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route",Share:"Share","Copy link":"Copy link","QR Code":"QR Code",Open:"Open",Closed:"Closed","Expand opening hours":"Expand opening hours","Collapse opening hours":"Collapse opening hours","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language","Increase text size to 200%":"Increase text size to 200%","Decrease text size to 100%":"Decrease text size to 100%","Zoom in":"Zoom in","Zoom out":"Zoom out"},oK={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Show legend":"Vis forklaring","Ask with AI":"Spørg med AI","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","Include bus transportation":"Inkluder bus transport","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten",Share:"Del","Copy link":"Kopiér link","QR Code":"QR-kode",Open:"Åben",Closed:"Lukket","Expand opening hours":"Udvid åbningstider","Collapse opening hours":"Skjul åbningstider","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog","Increase text size to 200%":"Forøg tekststørrelse til 200%","Decrease text size to 100%":"Formindsk tekststørrelse til 100%","Zoom in":"Zoom ind","Zoom out":"Zoom ud"},sK={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Nach Name, Kategorie, Gebäude suchen...","Show legend":"Legende anzeigen","Ask with AI":"Mit KI fragen","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Beschreibung öffnen",Locations:"Locations","Directions not available":"Wegbeschreibung nicht verfügbar","Start directions":"Starte Wegbeschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben Ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlassen Sie das",Enter:"Gehe Sie in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren","Avoid stairs and escalators":"Treppen und Rolltreppen vermeiden","Include bus transportation":"Busverkehr einbeziehen","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Los!",Directions:"Wegbeschreibung","Choose departure":"Startpunkt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Standort wählen",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden",Share:"Teilen","Copy link":"Link kopieren","QR Code":"QR code",Open:"Geöffnet",Closed:"Geschlossen","Expand opening hours":"Öffnungszeiten erweitern","Collapse opening hours":"Öffnungszeiten reduzieren","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen","Increase text size to 200%":"Textgröße auf 200% erhöhen","Decrease text size to 100%":"Textgröße auf 100% verringern","Zoom in":"Vergrößern","Zoom out":"Verkleinern"},aK={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Show legend":"Afficher la légende","Ask with AI":"Demander à l'IA","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","Include bus transportation":"Inclure le transport en bus","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire",Share:"Partager","Copy link":"Copier le lien","QR Code":"Code QR",Open:"Ouvert",Closed:"Fermé","Expand opening hours":"Développer les heures d'ouverture","Collapse opening hours":"Réduire les heures d'ouverture","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue","Increase text size to 200%":"Augmenter la taille du texte à 200%","Decrease text size to 100%":"Réduire la taille du texte à 100%","Zoom in":"Zoom avant","Zoom out":"Zoom arrière"},lK={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Show legend":"Mostra legenda","Ask with AI":"Chiedi all'IA","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","Include bus transportation":"Includi trasporto in autobus","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso",Share:"Condividi","Copy link":"Copia il collegamento","QR Code":"Codice QR",Open:"Aperto",Closed:"Chiuso","Expand opening hours":"Espandi orari di apertura","Collapse opening hours":"Comprimi orari di apertura","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua","Increase text size to 200%":"Aumenta la dimensione del testo al 200%","Decrease text size to 100%":"Riduci la dimensione del testo al 100%","Zoom in":"Ingrandisci","Zoom out":"Riduci"},cK={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Show legend":"Mostrar leyenda","Ask with AI":"Preguntar con IA","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","Include bus transportation":"Incluir transporte en autobús","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta",Share:"Compartir","Copy link":"Copiar link","QR Code":"Código QR",Open:"Abierto",Closed:"Cerrado","Expand opening hours":"Expandir horario de apertura","Collapse opening hours":"Contraer horario de apertura","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma","Increase text size to 200%":"Aumentar el tamaño del texto al 200%","Decrease text size to 100%":"Reducir el tamaño del texto al 100%","Zoom in":"Acercar","Zoom out":"Alejar"},uK={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Show legend":"Legende weergeven","Ask with AI":"Vraag met AI","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","Include bus transportation":"Busvervoer opnemen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien ",Share:"Deel","Copy link":"Link kopiëren","QR Code":"QR code",Open:"Open",Closed:"Gesloten","Expand opening hours":"Openingsuren uitklappen","Collapse opening hours":"Openingsuren inklappen","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal","Increase text size to 200%":"Tekstgrootte verhogen naar 200%","Decrease text size to 100%":"Tekstgrootte verlagen naar 100%","Zoom in":"Inzoomen","Zoom out":"Uitzoomen"},hK={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","Show legend":"显示图例","Ask with AI":"询问 AI","Nothing was found":"未找到任何结果",d:"天",h:"小时",min:"分钟",Walk:"步行",Bike:"骑车",Transit:"公交",Drive:"驾车","Start wayfinding":"开始导航","Read full description":"查看完整描述",Locations:"位置","Directions not available":"导航不可用","Start directions":"开始导航",Previous:"上一步",Next:"下一步",StepYofX:"第 {{activeStep}} 步,共 {{totalSteps}} 步","You have arrived":"您已到达",Leave:"离开",Park:"停车",at:"在",Building:"建筑",Venue:"场所","Take staircase to level":"走楼梯到","Take the ladder to level":"走梯子到","Take elevator to level":"乘电梯到","Take escalator to level":"乘扶梯到","Take wheelchair lift to level":"乘轮椅升降机到","Take wheelchair ramp to level":"走轮椅坡道到",Exit:"离开",Enter:"进入",stops:"站","and continue":"然后继续","Continue straight ahead":"直行","Go left":"向左","Go sharp left":"急转左","Go slight left":"稍向左","Go right":"向右","Go sharp right":"急转右","Go slight right":"稍向右","Turn around":"掉头",Switch:"切换","Avoid stairs and escalators":"避开楼梯和扶梯","Include bus transportation":"包含公交交通","No route found":"未找到路线","My position":"我的位置","Go!":"出发!",Directions:"导航","Choose departure":"选择出发地","Choose destination":"选择目的地",Venues:"场所","Select venue":"选择场所",Current:"当前","Scan QR code":"扫描二维码","Scan the QR code to see the route on your phone":"扫描二维码在手机上查看路线",Done:"完成","Cancel route":"取消路线","Finish route":"完成路线",Share:"分享","Copy link":"复制链接","QR Code":"二维码",Open:"营业中",Closed:"已关闭","Expand opening hours":"展开营业时间","Collapse opening hours":"收起营业时间","Go to view":"定位到","Select language":"选择语言","Increase text size to 200%":"将文本大小增加到 200%","Decrease text size to 100%":"将文本大小减少到 100%","Zoom in":"放大","Zoom out":"缩小"};function dK(e){Qo.use(eK).init({resources:{en:{translation:rK},da:{translation:oK},de:{translation:sK},fr:{translation:aK},it:{translation:lK},es:{translation:cK},nl:{translation:uK},zh:{translation:hK}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const yz=[{code:"en",label:"English"},{code:"da",label:"Dansk"},{code:"de",label:"Deutsch"},{code:"fr",label:"Français"},{code:"it",label:"Italiano"},{code:"es",label:"Español"},{code:"nl",label:"Nederlands"},{code:"zh",label:"中文"}],G0e="",Jf={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var _z={exports:{}},fK="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pK=fK,gK=pK;function vz(){}function xz(){}xz.resetWarningCache=vz;var mK=function(){function e(l,h,f,_,o,I){if(I!==gK){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}}e.isRequired=e;function t(){return e}var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xz,resetWarningCache:vz};return i.PropTypes=i,i};_z.exports=mK();var yK=_z.exports;const at=ul(yK),Z0e="",_K=e=>{const[t,i]=ye.useState(!1);return ye.useEffect(()=>{const l=window.matchMedia(e);l.matches!==t&&i(l.matches);const h=()=>i(l.matches);return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[t,e]),t},t5=()=>_K("(min-width: 992px)");class vK{constructor(t={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:i=100}=t;this._maxAccuracy=i}get currentPosition(){return this._currentPosition}hasValidPosition(){const t=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=t}on(t,i){this._listeners.has(t)||this._listeners.set(t,[]),this._listeners.get(t).push(i)}off(t,i){const l=this._listeners.get(t);l&&this._listeners.set(t,l.filter(h=>h!==i))}setPosition(t){let i;if(t.coords&&t.timestamp)i={coords:{latitude:t.coords.latitude,longitude:t.coords.longitude,accuracy:t.coords.accuracy,altitude:t.coords.altitude??null,altitudeAccuracy:t.coords.altitudeAccuracy??null,heading:t.coords.heading??null,speed:t.coords.speed??null},timestamp:t.timestamp,floorIndex:t.floorIndex??null};else{const h={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:t};return this.emitError(h),!1}return i.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${i.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=i,(this._listeners.get("position_received")||[]).forEach(h=>{h.call(null,{position:i})}),!0)}emitError(t){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",t),(this._listeners.get("position_error")||[]).forEach(l=>{l.call(null,t)})}}const xK=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M0.833344 10C0.833344 10.3315 0.96504 10.6495 1.19946 10.8839C1.43388 11.1183 1.75182 11.25 2.08334 11.25H8.54168C8.59693 11.25 8.64992 11.2719 8.68899 11.311C8.72806 11.3501 8.75001 11.4031 8.75001 11.4583V17.9167C8.75001 18.2482 8.88171 18.5661 9.11613 18.8005C9.35055 19.035 9.66849 19.1667 10 19.1667C10.3315 19.1667 10.6495 19.035 10.8839 18.8005C11.1183 18.5661 11.25 18.2482 11.25 17.9167V11.4583C11.25 11.4031 11.272 11.3501 11.311 11.311C11.3501 11.2719 11.4031 11.25 11.4583 11.25H17.9167C18.2482 11.25 18.5661 11.1183 18.8006 10.8839C19.035 10.6495 19.1667 10.3315 19.1667 10C19.1667 9.66848 19.035 9.35054 18.8006 9.11612C18.5661 8.88169 18.2482 8.75 17.9167 8.75H11.4583C11.4031 8.75 11.3501 8.72805 11.311 8.68898C11.272 8.64991 11.25 8.59692 11.25 8.54167V2.08333C11.25 1.75181 11.1183 1.43387 10.8839 1.19945C10.6495 0.965029 10.3315 0.833333 10 0.833333C9.66849 0.833333 9.35055 0.965029 9.11613 1.19945C8.88171 1.43387 8.75001 1.75181 8.75001 2.08333V8.54167C8.75001 8.59692 8.72806 8.64991 8.68899 8.68898C8.64992 8.72805 8.59693 8.75 8.54168 8.75H2.08334C1.75182 8.75 1.43388 8.88169 1.19946 9.11612C0.96504 9.35054 0.833344 9.66848 0.833344 10Z",fill:"#78716C"})),wK=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M2.08333 11.6667H17.9167C18.2482 11.6667 18.5661 11.535 18.8005 11.3006C19.035 11.0661 19.1667 10.7482 19.1667 10.4167C19.1667 10.0851 19.035 9.7672 18.8005 9.53278C18.5661 9.29836 18.2482 9.16667 17.9167 9.16667H2.08333C1.75181 9.16667 1.43387 9.29836 1.19945 9.53278C0.965029 9.7672 0.833333 10.0851 0.833333 10.4167C0.833333 10.7482 0.965029 11.0661 1.19945 11.3006C1.43387 11.535 1.75181 11.6667 2.08333 11.6667Z",fill:"#78716C"})),W0e="";n5.propTypes={mapType:at.oneOf(["google","mapbox"]).isRequired,mapInstance:at.object.isRequired};function n5({mapType:e,mapInstance:t}){const{t:i}=$o(),l=t5(),h=ye.useCallback(()=>{const _=t==null?void 0:t.getMap();if(_)switch(e){case"mapbox":_.zoomIn();break;case"google":{const o=_.getZoom();_.setZoom(o+1);break}}},[e,t]),f=ye.useCallback(()=>{const _=t==null?void 0:t.getMap();if(_)switch(e){case"mapbox":_.zoomOut();break;case"google":{const o=_.getZoom();_.setZoom(o-1);break}}},[e,t]);return l?Se.jsxs("div",{className:"map-zoom-control",children:[Se.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:h,"aria-label":i("Zoom in"),children:Se.jsx(xK,{})}),Se.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:f,"aria-label":i("Zoom out"),children:Se.jsx(wK,{})})]}):null}const bK=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M10 4C9.44771 4 9 4.44772 9 5C9 5.55228 9.44771 6 10 6H15V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H10Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}}),ye.createElement("path",{d:"M5.92676 20V12H2C1.44772 12 1 11.5523 1 11C1 10.4477 1.44772 10 2 10H6.88216C6.89695 9.99935 6.91181 9.99902 6.92676 9.99902C6.9417 9.99902 6.95657 9.99935 6.97135 10H12C12.5523 10 13 10.4477 13 11C13 11.5523 12.5523 12 12 12H7.92676V20C7.92676 20.5523 7.47904 21 6.92676 21C6.37447 21 5.92676 20.5523 5.92676 20Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}})),q0e="";wz.propTypes={mapsIndoorsInstance:at.object.isRequired};function wz({mapsIndoorsInstance:e}){const{t}=$o(),i=t5(),[l,h]=ye.useState(!1),f=ye.useCallback(o=>{var I,D;o?(document.documentElement.style.fontSize="200%",(I=e==null?void 0:e.getMapView())==null||I.setLabelTextSizeMultiplier(2)):(document.documentElement.style.fontSize="",(D=e==null?void 0:e.getMapView())==null||D.resetLabelTextSize())},[e]);ye.useEffect(()=>(f(l),()=>{f(!1)}),[l,f]);const _=ye.useCallback(()=>{const o=!l;h(o),f(o)},[l,f]);return i?Se.jsx("button",{type:"button",className:`text-size-button ${l?"text-size-button--active":""}`,onClick:_,"aria-label":t(l?"Decrease text size to 100%":"Increase text size to 200%"),"aria-pressed":l,children:Se.jsx(bK,{})}):null}const $v={venueSelector:{key:"venue-selector",className:"venue-selector-portal"},viewSelector:{key:"view-selector",className:"view-selector-portal"},languageSelector:{key:"language-selector",className:"language-selector-portal"},viewModeSwitch:{key:"viewmode-switch",className:"viewmode-switch-portal"},myPosition:{key:"my-position",className:"my-position-element-portal"},floorSelector:{key:"floor-selector",className:"floor-selector-portal"},resetView:{key:"reset-view",className:"reset-view-portal"},chatButton:{key:"chat-button",className:"chat-button-portal"},zoomControls:{key:"zoom-controls",className:null},textSizeButton:{key:"text-size-button",className:null}};bz.propTypes={mapType:at.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:at.object.isRequired,mapInstance:at.object.isRequired,onPositionControl:at.func,brandingColor:at.string,devicePosition:at.object,excludedElements:at.string,isKiosk:at.bool,enableAccessibilityKioskControls:at.bool};function bz({mapType:e,mapsIndoorsInstance:t,mapInstance:i,onPositionControl:l,brandingColor:h,devicePosition:f,excludedElements:_="",isKiosk:o,enableAccessibilityKioskControls:I=!1}){const D=t5(),O=ye.useRef(null),P=ye.useRef(null),F=ye.useCallback(ae=>!_||typeof _!="string"?!0:!_.split(",").map(oe=>oe.trim()).includes(ae),[_]),Q=ye.useMemo(()=>{const ae={};for(const[Ne,oe]of Object.entries($v))ae[Ne]=Se.jsx("div",{className:oe.className},oe.key);return ae},[]),J=ae=>{P.current.customPositionProvider.setPosition(ae)&&P.current.watchPosition()};return ye.useEffect(()=>{if(!(!t||!i)){if(!O.current){const ae=document.createElement("mi-floor-selector");O.current=ae}if(!P.current){const ae=document.createElement("mi-my-position");P.current=ae}O.current.mapsindoors=t,P.current.mapsindoors=t,h&&(O.current.primaryColor=h),l&&P.current&&l(P.current)}},[e,t,i,l,h]),ye.useEffect(()=>{if(P.current){if(P.current.stopListeningForPosition&&typeof P.current.stopListeningForPosition=="function"&&P.current.stopListeningForPosition(),f&&typeof f=="object"){if(P.current.customPositionProvider||(P.current.customPositionProvider=new vK),Object.keys(f).length===0)return;J(f)}return()=>{P.current&&P.current.stopListeningForPosition&&typeof P.current.stopListeningForPosition=="function"&&P.current.stopListeningForPosition()}}},[f]),ye.useEffect(()=>{if(!O.current||!P.current)return;const ae=(Ne,oe)=>{const Z=document.querySelector(`.${oe}`);Z&&!Z.contains(Ne)&&(Ne.remove(),Z.appendChild(Ne))};requestAnimationFrame(()=>{F("floorSelector")&&ae(O.current,$v.floorSelector.className),F("myPosition")&&ae(P.current,$v.myPosition.className)})},[D,o,F]),ye.useEffect(()=>{Object.entries($v).forEach(([ae,Ne])=>{if(!Ne.className)return;const oe=document.querySelector(`.${Ne.className}`);oe&&(F(ae)?oe.style.display="":oe.style.display="none")})},[_,F,D]),o?I?Se.jsxs(Se.Fragment,{children:[Se.jsx("div",{className:"map-controls-container kiosk top-right"}),Se.jsxs("div",{className:"map-controls-container kiosk bottom-right",children:[Q.venueSelector,Q.viewSelector,Q.myPosition,F("zoomControls")&&Se.jsx(n5,{mapType:e,mapInstance:i}),Q.languageSelector,F("textSizeButton")&&Se.jsx(wz,{mapsIndoorsInstance:t}),Q.viewModeSwitch,Q.floorSelector,Q.resetView]})]}):Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"map-controls-container kiosk top-right",children:[Q.venueSelector,Q.viewSelector,Q.languageSelector,Q.viewModeSwitch,Q.myPosition,Q.floorSelector]}),Se.jsx("div",{className:"map-controls-container kiosk bottom-right",children:Q.resetView})]}):D?Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"map-controls-container desktop top-right",children:[Q.venueSelector,Q.viewSelector,Q.languageSelector,Q.viewModeSwitch,Q.myPosition,Q.chatButton,Q.floorSelector]}),Se.jsxs("div",{className:"map-controls-container desktop bottom-right",children:[F("zoomControls")&&Se.jsx(n5,{mapType:e,mapInstance:i}),Q.resetView]})]}):Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"map-controls-left-column mobile-column",children:[Q.venueSelector,Q.viewModeSwitch,Q.viewSelector,Q.languageSelector]}),Se.jsxs("div",{className:"map-controls-right-column mobile-column",children:[Q.myPosition,Q.floorSelector]}),Se.jsx("div",{className:"map-controls-right-bottom mobile-column",children:Q.chatButton})]})}const MK=ye.memo(bz),K0e="",IK=ye.lazy(()=>Promise.resolve().then(()=>ige)),TK=ye.lazy(()=>Promise.resolve().then(()=>lge)),ep={Google:"google",Mapbox:"mapbox"};Mz.propTypes={apiKey:at.string.isRequired,gmApiKey:at.string,mapboxAccessToken:at.string,center:at.object,zoom:at.number,bounds:at.object,bearing:at.number,pitch:at.number,resetUICounter:at.number,mapOptions:at.object,onInitialized:at.func,gmMapId:at.string,devicePosition:at.object,isKiosk:at.bool};function Mz({apiKey:e,gmApiKey:t,mapboxAccessToken:i,center:l,zoom:h,bounds:f,bearing:_,pitch:o,resetUICounter:I,mapOptions:D,onInitialized:O,gmMapId:P,devicePosition:F,isKiosk:Q}){var Ht,_t;const[J,ae]=ye.useState(),[Ne,oe]=ye.useState(),[Z,W]=ye.useState(),[se,ve]=ye.useState(),[ue,Be]=ye.useState(),[$e,Ue]=ye.useState(),[Fe,Ke]=ye.useState(),ct=ye.useMemo(()=>{var wt;return((wt=$e==null?void 0:$e.appSettings)==null?void 0:wt.excludeFromUI)||""},[(Ht=$e==null?void 0:$e.appSettings)==null?void 0:Ht.excludeFromUI]);ye.useEffect(()=>{window.customElements.get("mi-floor-selector")||JL()},[]),ye.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),J===ep.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(wt=>{Be(wt)}),window.mapsindoors.services.AppConfigService.getConfig().then(wt=>{Ue(wt)})))},[e,J]);const yt=wt=>{Ke(wt);const Ft=new window.mapsindoors.MapsIndoors({mapView:wt});Ft.once("building_changed",gt=>{const Rt=Ft.getVenue();gt&&Rt&&gt.venueId!==Rt.id&&Ft.setVenue(gt.venueId)}),Ft.on("mouseenter",()=>{var Rt;const gt=Ft.getHoveredLocation();((Rt=gt==null?void 0:gt.properties.locationSettings)==null?void 0:Rt.selectable)===!1&&Ft.unhoverLocation()}),Ft.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),oe(Ft)};return ye.useEffect(()=>{typeof O=="function"&&Ne&&Z&&typeof se=="boolean"&&O(Ne,Z,se)},[Ne,Z,se]),ye.useEffect(()=>{ue&&J===ep.Mapbox&&["mapbox","3dwalls","floorplan"].every(wt=>ue.modules.map(Ft=>Ft.toLowerCase()).includes(wt))?ve(!0):ve(!1)},[ue,J]),ye.useEffect(()=>{i?ae(ep.Mapbox):t&&ae(ep.Google)},[t,i]),Se.jsxs(Se.Fragment,{children:[J===ep.Google&&Se.jsx(ye.Suspense,{children:Se.jsx(TK,{mapsIndoorsInstance:Ne,apiKey:t,onInitialized:yt,center:l,zoom:h,mapOptions:D,heading:_,tilt:o,bounds:f,gmMapId:P})}),J===ep.Mapbox&&Se.jsx(ye.Suspense,{children:Se.jsx(IK,{mapsIndoorsInstance:Ne,accessToken:i,onInitialized:yt,center:l,zoom:h,mapOptions:D,bearing:_,pitch:o,bounds:f,resetViewMode:I,viewModeSwitchVisible:se,appConfig:$e})}),Ne&&Fe&&J&&Se.jsx(MK,{mapType:J,mapsIndoorsInstance:Ne,mapInstance:Fe,onPositionControl:W,brandingColor:D==null?void 0:D.brandingColor,devicePosition:F,excludedElements:ct,isKiosk:Q,enableAccessibilityKioskControls:!!((_t=$e==null?void 0:$e.appSettings)!=null&&_t.enableAccessibilityKioskControls)})]})}const xs={Google:"google",Mapbox:"mapbox"},Es=ji({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),SK=e=>{const t=Mn(Es),i=ye.useRef(),[l,h]=ye.useState([]);ye.useEffect(()=>{(async()=>{if(t&&e){for(const o of l)i.current.disableLiveData(o);i.current=new window.mapsindoors.LiveDataManager(t);const _=await i.current.LiveDataInfo.activeDomainTypes();for(const o of _)await i.current.enableLiveData(o);h(_)}})()},[e,t])},tp=ji({key:"userPosition",default:null}),Yv=ji({key:"directionsService",default:null}),Gv=ji({key:"mapType",default:void 0}),Zv=ji({key:"apiKey",default:null}),i5=ji({key:"gmApiKey",default:null}),Wv=ji({key:"mapboxAccessToken",default:null}),m1=ji({key:"filteredLocations",default:void 0}),qv=ji({key:"filteredLocationsByExternalID",default:void 0}),Iz=ji({key:"tileStyle",default:null}),Tz=ji({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),r5=ji({key:"bearing",default:0}),Kv=ji({key:"pitch",default:null}),Sz=ji({key:"solution",default:null,dangerouslyAllowMutability:!0}),y1=ji({key:"notificationMessage",default:null});function _1(){return new Promise(e=>{const t=document.querySelector(".modal--open"),i=document.querySelector(".mapsindoors-map");if(t)e(i.offsetHeight-(t==null?void 0:t.offsetTop));else{const l=new MutationObserver(()=>{const h=document.querySelector(".modal--open");h&&(l.disconnect(),e(i.offsetHeight-(h==null?void 0:h.offsetTop)))});l.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const v1=ji({key:"categories",default:[]}),o5=ji({key:"kioskOriginLocationId",default:void 0}),Xv=ji({key:"locationId",default:void 0}),Cz=ji({key:"startZoomLevel",default:null}),vl=ji({key:"currentVenueName",default:null}),x1=ji({key:"venues",default:[]}),s5=ji({key:"venueWasSelected",default:!1}),Jv=ji({key:"isMapReady",default:!1});function np(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),i=document.querySelector(".mapsindoors-map");if(t)e(i.offsetHeight-t.offsetTop);else{const l=new MutationObserver(()=>{const h=document.querySelector(".sheet--active");h&&(l.disconnect(),e(i.offsetHeight-h.offsetTop))});l.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function Yu(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const i=new MutationObserver(()=>{const l=document.querySelector(".modal--open");l&&(i.disconnect(),e((l==null?void 0:l.offsetWidth)+(l==null?void 0:l.offsetLeft)*2))});i.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Dz=ji({key:"timeout",default:void 0});function Az(){const[e,t]=ye.useState(!1),i=Mn(Jv),l=Mn(Dz);return ye.useEffect(()=>{if(!i||!l)return;let h;const f=()=>{t(!1),window.clearTimeout(h),h=window.setTimeout(_,l*1e3)},_=()=>{t(!0)};return h=window.setTimeout(_,l*1e3),window.addEventListener("mousemove",f),window.addEventListener("mousedown",f),window.addEventListener("resize",f),window.addEventListener("keydown",f),window.addEventListener("touchstart",f),window.addEventListener("wheel",f),()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mousedown",f),window.removeEventListener("resize",f),window.removeEventListener("keydown",f),window.removeEventListener("touchstart",f),window.removeEventListener("wheel",f),window.clearTimeout(h)}},[l,i]),e}const CK=e=>{const[t,i]=ye.useState(window.matchMedia(e).matches);return ye.useEffect(()=>{const l=window.matchMedia(e);l.matches!==t&&i(l.matches);const h=()=>i(l.matches);return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[t,e]),t},Qs=()=>CK("(min-width: 992px)"),Ez=ji({key:"mapboxViewMode",default:null}),a5=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),DK=Lv({key:"currentPitch",get:({get:e})=>{const t=e(Kv),i=e(Ez);let l;switch(i){case a5.initial3D:l=t??45;break;case a5.clicked3D:l=45;break;case a5.clicked2D:l=0;break;default:l=t}return l}}),Nz=ji({key:"center",default:null});function Ur(e){return e==null}var Ns=63710088e-1,l5={centimeters:Ns*100,centimetres:Ns*100,degrees:Ns/111325,feet:Ns*3.28084,inches:Ns*39.37,kilometers:Ns/1e3,kilometres:Ns/1e3,meters:Ns,metres:Ns,miles:Ns/1609.344,millimeters:Ns*1e3,millimetres:Ns*1e3,nauticalmiles:Ns/1852,radians:1,yards:Ns*1.0936},AK={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Ns,yards:1.0936133},c5={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Za(e,t,i){i===void 0&&(i={});var l={type:"Feature"};return(i.id===0||i.id)&&(l.id=i.id),i.bbox&&(l.bbox=i.bbox),l.properties=t||{},l.geometry=e,l}function EK(e,t,i){switch(e){case"Point":return xl(t).geometry;case"LineString":return wl(t).geometry;case"Polygon":return u5(t).geometry;case"MultiPoint":return Lz(t).geometry;case"MultiLineString":return h5(t).geometry;case"MultiPolygon":return zz(t).geometry;default:throw new Error(e+" is invalid")}}function xl(e,t,i){if(i===void 0&&(i={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ex(e[0])||!ex(e[1]))throw new Error("coordinates must contain numbers");var l={type:"Point",coordinates:e};return Za(l,t,i)}function NK(e,t,i){return i===void 0&&(i={}),Gu(e.map(function(l){return xl(l,t)}),i)}function u5(e,t,i){i===void 0&&(i={});for(var l=0,h=e;l<h.length;l++){var f=h[l];if(f.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var _=0;_<f[f.length-1].length;_++)if(f[f.length-1][_]!==f[0][_])throw new Error("First and last Position are not equivalent.")}var o={type:"Polygon",coordinates:e};return Za(o,t,i)}function LK(e,t,i){return i===void 0&&(i={}),Gu(e.map(function(l){return u5(l,t)}),i)}function wl(e,t,i){if(i===void 0&&(i={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var l={type:"LineString",coordinates:e};return Za(l,t,i)}function zK(e,t,i){return i===void 0&&(i={}),Gu(e.map(function(l){return wl(l,t)}),i)}function Gu(e,t){t===void 0&&(t={});var i={type:"FeatureCollection"};return t.id&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.features=e,i}function h5(e,t,i){i===void 0&&(i={});var l={type:"MultiLineString",coordinates:e};return Za(l,t,i)}function Lz(e,t,i){i===void 0&&(i={});var l={type:"MultiPoint",coordinates:e};return Za(l,t,i)}function zz(e,t,i){i===void 0&&(i={});var l={type:"MultiPolygon",coordinates:e};return Za(l,t,i)}function kK(e,t,i){i===void 0&&(i={});var l={type:"GeometryCollection",geometries:e};return Za(l,t,i)}function OK(e,t){if(t===void 0&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var i=Math.pow(10,t||0);return Math.round(e*i)/i}function kz(e,t){t===void 0&&(t="kilometers");var i=l5[t];if(!i)throw new Error(t+" units is invalid");return e*i}function d5(e,t){t===void 0&&(t="kilometers");var i=l5[t];if(!i)throw new Error(t+" units is invalid");return e/i}function jK(e,t){return Oz(d5(e,t))}function PK(e){var t=e%360;return t<0&&(t+=360),t}function Oz(e){var t=e%(2*Math.PI);return t*180/Math.PI}function RK(e){var t=e%360;return t*Math.PI/180}function FK(e,t,i){if(t===void 0&&(t="kilometers"),i===void 0&&(i="kilometers"),!(e>=0))throw new Error("length must be a positive number");return kz(d5(e,t),i)}function BK(e,t,i){if(t===void 0&&(t="meters"),i===void 0&&(i="kilometers"),!(e>=0))throw new Error("area must be a positive number");var l=c5[t];if(!l)throw new Error("invalid original units");var h=c5[i];if(!h)throw new Error("invalid final units");return e/l*h}function ex(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function f5(e){return!!e&&e.constructor===Object}function UK(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(t){if(!ex(t))throw new Error("bbox must only contain numbers")})}function VK(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}const HK=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:c5,bearingToAzimuth:PK,convertArea:BK,convertLength:FK,degreesToRadians:RK,earthRadius:Ns,factors:l5,feature:Za,featureCollection:Gu,geometry:EK,geometryCollection:kK,isNumber:ex,isObject:f5,lengthToDegrees:jK,lengthToRadians:d5,lineString:wl,lineStrings:zK,multiLineString:h5,multiPoint:Lz,multiPolygon:zz,point:xl,points:NK,polygon:u5,polygons:LK,radiansToDegrees:Oz,radiansToLength:kz,round:OK,unitsFactors:AK,validateBBox:UK,validateId:VK},Symbol.toStringTag,{value:"Module"}));function ip(e,t,i){if(e!==null)for(var l,h,f,_,o,I,D,O=0,P=0,F,Q=e.type,J=Q==="FeatureCollection",ae=Q==="Feature",Ne=J?e.features.length:1,oe=0;oe<Ne;oe++){D=J?e.features[oe].geometry:ae?e.geometry:e,F=D?D.type==="GeometryCollection":!1,o=F?D.geometries.length:1;for(var Z=0;Z<o;Z++){var W=0,se=0;if(_=F?D.geometries[Z]:D,_!==null){I=_.coordinates;var ve=_.type;switch(O=i&&(ve==="Polygon"||ve==="MultiPolygon")?1:0,ve){case null:break;case"Point":if(t(I,P,oe,W,se)===!1)return!1;P++,W++;break;case"LineString":case"MultiPoint":for(l=0;l<I.length;l++){if(t(I[l],P,oe,W,se)===!1)return!1;P++,ve==="MultiPoint"&&W++}ve==="LineString"&&W++;break;case"Polygon":case"MultiLineString":for(l=0;l<I.length;l++){for(h=0;h<I[l].length-O;h++){if(t(I[l][h],P,oe,W,se)===!1)return!1;P++}ve==="MultiLineString"&&W++,ve==="Polygon"&&se++}ve==="Polygon"&&W++;break;case"MultiPolygon":for(l=0;l<I.length;l++){for(se=0,h=0;h<I[l].length;h++){for(f=0;f<I[l][h].length-O;f++){if(t(I[l][h][f],P,oe,W,se)===!1)return!1;P++}se++}W++}break;case"GeometryCollection":for(l=0;l<_.geometries.length;l++)if(ip(_.geometries[l],t,i)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function QK(e,t,i,l){var h=i;return ip(e,function(f,_,o,I,D){_===0&&i===void 0?h=f:h=t(h,f,_,o,I,D)},l),h}function jz(e,t){var i;switch(e.type){case"FeatureCollection":for(i=0;i<e.features.length&&t(e.features[i].properties,i)!==!1;i++);break;case"Feature":t(e.properties,0);break}}function $K(e,t,i){var l=i;return jz(e,function(h,f){f===0&&i===void 0?l=h:l=t(l,h,f)}),l}function tx(e,t){if(e.type==="Feature")t(e,0);else if(e.type==="FeatureCollection")for(var i=0;i<e.features.length&&t(e.features[i],i)!==!1;i++);}function YK(e,t,i){var l=i;return tx(e,function(h,f){f===0&&i===void 0?l=h:l=t(l,h,f)}),l}function GK(e){var t=[];return ip(e,function(i){t.push(i)}),t}function p5(e,t){var i,l,h,f,_,o,I,D,O,P,F=0,Q=e.type==="FeatureCollection",J=e.type==="Feature",ae=Q?e.features.length:1;for(i=0;i<ae;i++){for(o=Q?e.features[i].geometry:J?e.geometry:e,D=Q?e.features[i].properties:J?e.properties:{},O=Q?e.features[i].bbox:J?e.bbox:void 0,P=Q?e.features[i].id:J?e.id:void 0,I=o?o.type==="GeometryCollection":!1,_=I?o.geometries.length:1,h=0;h<_;h++){if(f=I?o.geometries[h]:o,f===null){if(t(null,F,D,O,P)===!1)return!1;continue}switch(f.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(t(f,F,D,O,P)===!1)return!1;break}case"GeometryCollection":{for(l=0;l<f.geometries.length;l++)if(t(f.geometries[l],F,D,O,P)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}F++}}function ZK(e,t,i){var l=i;return p5(e,function(h,f,_,o,I){f===0&&i===void 0?l=h:l=t(l,h,f,_,o,I)}),l}function Hc(e,t){p5(e,function(i,l,h,f,_){var o=i===null?null:i.type;switch(o){case null:case"Point":case"LineString":case"Polygon":return t(Za(i,h,{bbox:f,id:_}),l,0)===!1?!1:void 0}var I;switch(o){case"MultiPoint":I="Point";break;case"MultiLineString":I="LineString";break;case"MultiPolygon":I="Polygon";break}for(var D=0;D<i.coordinates.length;D++){var O=i.coordinates[D],P={type:I,coordinates:O};if(t(Za(P,h),l,D)===!1)return!1}})}function WK(e,t,i){var l=i;return Hc(e,function(h,f,_){f===0&&_===0&&i===void 0?l=h:l=t(l,h,f,_)}),l}function Pz(e,t){Hc(e,function(i,l,h){var f=0;if(i.geometry){var _=i.geometry.type;if(!(_==="Point"||_==="MultiPoint")){var o,I=0,D=0,O=0;if(ip(i,function(P,F,Q,J,ae){if(o===void 0||l>I||J>D||ae>O){o=P,I=l,D=J,O=ae,f=0;return}var Ne=wl([o,P],i.properties);if(t(Ne,l,h,ae,f)===!1)return!1;f++,o=P})===!1)return!1}}})}function qK(e,t,i){var l=i,h=!1;return Pz(e,function(f,_,o,I,D){h===!1&&i===void 0?l=f:l=t(l,f,_,o,I,D),h=!0}),l}function Rz(e,t){if(!e)throw new Error("geojson is required");Hc(e,function(i,l,h){if(i.geometry!==null){var f=i.geometry.type,_=i.geometry.coordinates;switch(f){case"LineString":if(t(i,l,h,0,0)===!1)return!1;break;case"Polygon":for(var o=0;o<_.length;o++)if(t(wl(_[o],i.properties),l,h,o)===!1)return!1;break}}})}function KK(e,t,i){var l=i;return Rz(e,function(h,f,_,o){f===0&&i===void 0?l=h:l=t(l,h,f,_,o)}),l}function XK(e,t){if(t=t||{},!f5(t))throw new Error("options is invalid");var i=t.featureIndex||0,l=t.multiFeatureIndex||0,h=t.geometryIndex||0,f=t.segmentIndex||0,_=t.properties,o;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),_=_||e.features[i].properties,o=e.features[i].geometry;break;case"Feature":_=_||e.properties,o=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":o=e;break;default:throw new Error("geojson is invalid")}if(o===null)return null;var I=o.coordinates;switch(o.type){case"Point":case"MultiPoint":return null;case"LineString":return f<0&&(f=I.length+f-1),wl([I[f],I[f+1]],_,t);case"Polygon":return h<0&&(h=I.length+h),f<0&&(f=I[h].length+f-1),wl([I[h][f],I[h][f+1]],_,t);case"MultiLineString":return l<0&&(l=I.length+l),f<0&&(f=I[l].length+f-1),wl([I[l][f],I[l][f+1]],_,t);case"MultiPolygon":return l<0&&(l=I.length+l),h<0&&(h=I[l].length+h),f<0&&(f=I[l][h].length-f-1),wl([I[l][h][f],I[l][h][f+1]],_,t)}throw new Error("geojson is invalid")}function JK(e,t){if(t=t||{},!f5(t))throw new Error("options is invalid");var i=t.featureIndex||0,l=t.multiFeatureIndex||0,h=t.geometryIndex||0,f=t.coordIndex||0,_=t.properties,o;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),_=_||e.features[i].properties,o=e.features[i].geometry;break;case"Feature":_=_||e.properties,o=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":o=e;break;default:throw new Error("geojson is invalid")}if(o===null)return null;var I=o.coordinates;switch(o.type){case"Point":return xl(I,_,t);case"MultiPoint":return l<0&&(l=I.length+l),xl(I[l],_,t);case"LineString":return f<0&&(f=I.length+f),xl(I[f],_,t);case"Polygon":return h<0&&(h=I.length+h),f<0&&(f=I[h].length+f),xl(I[h][f],_,t);case"MultiLineString":return l<0&&(l=I.length+l),f<0&&(f=I[l].length+f),xl(I[l][f],_,t);case"MultiPolygon":return l<0&&(l=I.length+l),h<0&&(h=I[l].length+h),f<0&&(f=I[l][h].length-f),xl(I[l][h][f],_,t)}throw new Error("geojson is invalid")}const eX=Object.freeze(Object.defineProperty({__proto__:null,coordAll:GK,coordEach:ip,coordReduce:QK,featureEach:tx,featureReduce:YK,findPoint:JK,findSegment:XK,flattenEach:Hc,flattenReduce:WK,geomEach:p5,geomReduce:ZK,lineEach:Rz,lineReduce:KK,propEach:jz,propReduce:$K,segmentEach:Pz,segmentReduce:qK},Symbol.toStringTag,{value:"Module"}));function nx(e){var t=[1/0,1/0,-1/0,-1/0];return ip(e,function(i){t[0]>i[0]&&(t[0]=i[0]),t[1]>i[1]&&(t[1]=i[1]),t[2]<i[0]&&(t[2]=i[0]),t[3]<i[1]&&(t[3]=i[1])}),t}nx.default=nx;const tX=Object.freeze(Object.defineProperty({__proto__:null,default:nx},Symbol.toStringTag,{value:"Module"}));function nX(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function w1(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function ix(e){return e.type==="Feature"?e.geometry:e}function b1(e,t,i){if(i===void 0&&(i={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var l=nX(e),h=ix(t),f=h.type,_=t.bbox,o=h.coordinates;if(_&&iX(l,_)===!1)return!1;f==="Polygon"&&(o=[o]);for(var I=!1,D=0;D<o.length&&!I;D++)if(Fz(l,o[D][0],i.ignoreBoundary)){for(var O=!1,P=1;P<o[D].length&&!O;)Fz(l,o[D][P],!i.ignoreBoundary)&&(O=!0),P++;O||(I=!0)}return I}function Fz(e,t,i){var l=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var h=0,f=t.length-1;h<t.length;f=h++){var _=t[h][0],o=t[h][1],I=t[f][0],D=t[f][1],O=e[1]*(_-I)+o*(I-e[0])+D*(e[0]-_)===0&&(_-e[0])*(I-e[0])<=0&&(o-e[1])*(D-e[1])<=0;if(O)return!i;var P=o>e[1]!=D>e[1]&&e[0]<(I-_)*(e[1]-o)/(D-o)+_;P&&(l=!l)}return l}function iX(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}function rX(e,t){t===void 0&&(t={});var i=nx(e),l=(i[0]+i[2])/2,h=(i[1]+i[3])/2;return xl([l,h],t.properties,t)}function Bz(e){if(!e)throw new Error("geojson is required");var t=[];return Hc(e,function(i){oX(i,t)}),Gu(t)}function oX(e,t){var i=[],l=e.geometry;if(l!==null){switch(l.type){case"Polygon":i=w1(l);break;case"LineString":i=[w1(l)]}i.forEach(function(h){var f=sX(h,e.properties);f.forEach(function(_){_.id=t.length,t.push(_)})})}}function sX(e,t){var i=[];return e.reduce(function(l,h){var f=wl([l,h],t);return f.bbox=aX(l,h),i.push(f),h}),i}function aX(e,t){var i=e[0],l=e[1],h=t[0],f=t[1],_=i<h?i:h,o=l<f?l:f,I=i>h?i:h,D=l>f?l:f;return[_,o,I,D]}var g5={exports:{}},Uz={exports:{}};(function(e,t){(function(i,l){e.exports=l()})(Pl,function(){function i(Z,W,se,ve,ue){(function Be($e,Ue,Fe,Ke,ct){for(;Ke>Fe;){if(Ke-Fe>600){var yt=Ke-Fe+1,Ht=Ue-Fe+1,_t=Math.log(yt),wt=.5*Math.exp(2*_t/3),Ft=.5*Math.sqrt(_t*wt*(yt-wt)/yt)*(Ht-yt/2<0?-1:1),gt=Math.max(Fe,Math.floor(Ue-Ht*wt/yt+Ft)),Rt=Math.min(Ke,Math.floor(Ue+(yt-Ht)*wt/yt+Ft));Be($e,Ue,gt,Rt,ct)}var H=$e[Ue],le=Fe,T=Ke;for(l($e,Fe,Ue),ct($e[Ke],H)>0&&l($e,Fe,Ke);le<T;){for(l($e,le,T),le++,T--;ct($e[le],H)<0;)le++;for(;ct($e[T],H)>0;)T--}ct($e[Fe],H)===0?l($e,Fe,T):l($e,++T,Ke),T<=Ue&&(Fe=T+1),Ue<=T&&(Ke=T-1)}})(Z,W,se||0,ve||Z.length-1,ue||h)}function l(Z,W,se){var ve=Z[W];Z[W]=Z[se],Z[se]=ve}function h(Z,W){return Z<W?-1:Z>W?1:0}var f=function(Z){Z===void 0&&(Z=9),this._maxEntries=Math.max(4,Z),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function _(Z,W,se){if(!se)return W.indexOf(Z);for(var ve=0;ve<W.length;ve++)if(se(Z,W[ve]))return ve;return-1}function o(Z,W){I(Z,0,Z.children.length,W,Z)}function I(Z,W,se,ve,ue){ue||(ue=Ne(null)),ue.minX=1/0,ue.minY=1/0,ue.maxX=-1/0,ue.maxY=-1/0;for(var Be=W;Be<se;Be++){var $e=Z.children[Be];D(ue,Z.leaf?ve($e):$e)}return ue}function D(Z,W){return Z.minX=Math.min(Z.minX,W.minX),Z.minY=Math.min(Z.minY,W.minY),Z.maxX=Math.max(Z.maxX,W.maxX),Z.maxY=Math.max(Z.maxY,W.maxY),Z}function O(Z,W){return Z.minX-W.minX}function P(Z,W){return Z.minY-W.minY}function F(Z){return(Z.maxX-Z.minX)*(Z.maxY-Z.minY)}function Q(Z){return Z.maxX-Z.minX+(Z.maxY-Z.minY)}function J(Z,W){return Z.minX<=W.minX&&Z.minY<=W.minY&&W.maxX<=Z.maxX&&W.maxY<=Z.maxY}function ae(Z,W){return W.minX<=Z.maxX&&W.minY<=Z.maxY&&W.maxX>=Z.minX&&W.maxY>=Z.minY}function Ne(Z){return{children:Z,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function oe(Z,W,se,ve,ue){for(var Be=[W,se];Be.length;)if(!((se=Be.pop())-(W=Be.pop())<=ve)){var $e=W+Math.ceil((se-W)/ve/2)*ve;i(Z,$e,W,se,ue),Be.push(W,$e,$e,se)}}return f.prototype.all=function(){return this._all(this.data,[])},f.prototype.search=function(Z){var W=this.data,se=[];if(!ae(Z,W))return se;for(var ve=this.toBBox,ue=[];W;){for(var Be=0;Be<W.children.length;Be++){var $e=W.children[Be],Ue=W.leaf?ve($e):$e;ae(Z,Ue)&&(W.leaf?se.push($e):J(Z,Ue)?this._all($e,se):ue.push($e))}W=ue.pop()}return se},f.prototype.collides=function(Z){var W=this.data;if(!ae(Z,W))return!1;for(var se=[];W;){for(var ve=0;ve<W.children.length;ve++){var ue=W.children[ve],Be=W.leaf?this.toBBox(ue):ue;if(ae(Z,Be)){if(W.leaf||J(Z,Be))return!0;se.push(ue)}}W=se.pop()}return!1},f.prototype.load=function(Z){if(!Z||!Z.length)return this;if(Z.length<this._minEntries){for(var W=0;W<Z.length;W++)this.insert(Z[W]);return this}var se=this._build(Z.slice(),0,Z.length-1,0);if(this.data.children.length)if(this.data.height===se.height)this._splitRoot(this.data,se);else{if(this.data.height<se.height){var ve=this.data;this.data=se,se=ve}this._insert(se,this.data.height-se.height-1,!0)}else this.data=se;return this},f.prototype.insert=function(Z){return Z&&this._insert(Z,this.data.height-1),this},f.prototype.clear=function(){return this.data=Ne([]),this},f.prototype.remove=function(Z,W){if(!Z)return this;for(var se,ve,ue,Be=this.data,$e=this.toBBox(Z),Ue=[],Fe=[];Be||Ue.length;){if(Be||(Be=Ue.pop(),ve=Ue[Ue.length-1],se=Fe.pop(),ue=!0),Be.leaf){var Ke=_(Z,Be.children,W);if(Ke!==-1)return Be.children.splice(Ke,1),Ue.push(Be),this._condense(Ue),this}ue||Be.leaf||!J(Be,$e)?ve?(se++,Be=ve.children[se],ue=!1):Be=null:(Ue.push(Be),Fe.push(se),se=0,ve=Be,Be=Be.children[0])}return this},f.prototype.toBBox=function(Z){return Z},f.prototype.compareMinX=function(Z,W){return Z.minX-W.minX},f.prototype.compareMinY=function(Z,W){return Z.minY-W.minY},f.prototype.toJSON=function(){return this.data},f.prototype.fromJSON=function(Z){return this.data=Z,this},f.prototype._all=function(Z,W){for(var se=[];Z;)Z.leaf?W.push.apply(W,Z.children):se.push.apply(se,Z.children),Z=se.pop();return W},f.prototype._build=function(Z,W,se,ve){var ue,Be=se-W+1,$e=this._maxEntries;if(Be<=$e)return o(ue=Ne(Z.slice(W,se+1)),this.toBBox),ue;ve||(ve=Math.ceil(Math.log(Be)/Math.log($e)),$e=Math.ceil(Be/Math.pow($e,ve-1))),(ue=Ne([])).leaf=!1,ue.height=ve;var Ue=Math.ceil(Be/$e),Fe=Ue*Math.ceil(Math.sqrt($e));oe(Z,W,se,Fe,this.compareMinX);for(var Ke=W;Ke<=se;Ke+=Fe){var ct=Math.min(Ke+Fe-1,se);oe(Z,Ke,ct,Ue,this.compareMinY);for(var yt=Ke;yt<=ct;yt+=Ue){var Ht=Math.min(yt+Ue-1,ct);ue.children.push(this._build(Z,yt,Ht,ve-1))}}return o(ue,this.toBBox),ue},f.prototype._chooseSubtree=function(Z,W,se,ve){for(;ve.push(W),!W.leaf&&ve.length-1!==se;){for(var ue=1/0,Be=1/0,$e=void 0,Ue=0;Ue<W.children.length;Ue++){var Fe=W.children[Ue],Ke=F(Fe),ct=(yt=Z,Ht=Fe,(Math.max(Ht.maxX,yt.maxX)-Math.min(Ht.minX,yt.minX))*(Math.max(Ht.maxY,yt.maxY)-Math.min(Ht.minY,yt.minY))-Ke);ct<Be?(Be=ct,ue=Ke<ue?Ke:ue,$e=Fe):ct===Be&&Ke<ue&&(ue=Ke,$e=Fe)}W=$e||W.children[0]}var yt,Ht;return W},f.prototype._insert=function(Z,W,se){var ve=se?Z:this.toBBox(Z),ue=[],Be=this._chooseSubtree(ve,this.data,W,ue);for(Be.children.push(Z),D(Be,ve);W>=0&&ue[W].children.length>this._maxEntries;)this._split(ue,W),W--;this._adjustParentBBoxes(ve,ue,W)},f.prototype._split=function(Z,W){var se=Z[W],ve=se.children.length,ue=this._minEntries;this._chooseSplitAxis(se,ue,ve);var Be=this._chooseSplitIndex(se,ue,ve),$e=Ne(se.children.splice(Be,se.children.length-Be));$e.height=se.height,$e.leaf=se.leaf,o(se,this.toBBox),o($e,this.toBBox),W?Z[W-1].children.push($e):this._splitRoot(se,$e)},f.prototype._splitRoot=function(Z,W){this.data=Ne([Z,W]),this.data.height=Z.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},f.prototype._chooseSplitIndex=function(Z,W,se){for(var ve,ue,Be,$e,Ue,Fe,Ke,ct=1/0,yt=1/0,Ht=W;Ht<=se-W;Ht++){var _t=I(Z,0,Ht,this.toBBox),wt=I(Z,Ht,se,this.toBBox),Ft=(ue=_t,Be=wt,$e=void 0,Ue=void 0,Fe=void 0,Ke=void 0,$e=Math.max(ue.minX,Be.minX),Ue=Math.max(ue.minY,Be.minY),Fe=Math.min(ue.maxX,Be.maxX),Ke=Math.min(ue.maxY,Be.maxY),Math.max(0,Fe-$e)*Math.max(0,Ke-Ue)),gt=F(_t)+F(wt);Ft<ct?(ct=Ft,ve=Ht,yt=gt<yt?gt:yt):Ft===ct&&gt<yt&&(yt=gt,ve=Ht)}return ve||se-W},f.prototype._chooseSplitAxis=function(Z,W,se){var ve=Z.leaf?this.compareMinX:O,ue=Z.leaf?this.compareMinY:P;this._allDistMargin(Z,W,se,ve)<this._allDistMargin(Z,W,se,ue)&&Z.children.sort(ve)},f.prototype._allDistMargin=function(Z,W,se,ve){Z.children.sort(ve);for(var ue=this.toBBox,Be=I(Z,0,W,ue),$e=I(Z,se-W,se,ue),Ue=Q(Be)+Q($e),Fe=W;Fe<se-W;Fe++){var Ke=Z.children[Fe];D(Be,Z.leaf?ue(Ke):Ke),Ue+=Q(Be)}for(var ct=se-W-1;ct>=W;ct--){var yt=Z.children[ct];D($e,Z.leaf?ue(yt):yt),Ue+=Q($e)}return Ue},f.prototype._adjustParentBBoxes=function(Z,W,se){for(var ve=se;ve>=0;ve--)D(W[ve],Z)},f.prototype._condense=function(Z){for(var W=Z.length-1,se=void 0;W>=0;W--)Z[W].children.length===0?W>0?(se=Z[W-1].children).splice(se.indexOf(Z[W]),1):this.clear():o(Z[W],this.toBBox)},f})})(Uz);var lX=Uz.exports;const cX=Kb(HK),uX=Kb(eX),hX=Kb(tX);var Gl=lX,Vz=cX,Hz=uX,rp=hX.default,dX=Hz.featureEach;Hz.coordEach,Vz.polygon;var Qz=Vz.featureCollection;function $z(e){var t=new Gl(e);return t.insert=function(i){if(i.type!=="Feature")throw new Error("invalid feature");return i.bbox=i.bbox?i.bbox:rp(i),Gl.prototype.insert.call(this,i)},t.load=function(i){var l=[];return Array.isArray(i)?i.forEach(function(h){if(h.type!=="Feature")throw new Error("invalid features");h.bbox=h.bbox?h.bbox:rp(h),l.push(h)}):dX(i,function(h){if(h.type!=="Feature")throw new Error("invalid features");h.bbox=h.bbox?h.bbox:rp(h),l.push(h)}),Gl.prototype.load.call(this,l)},t.remove=function(i,l){if(i.type!=="Feature")throw new Error("invalid feature");return i.bbox=i.bbox?i.bbox:rp(i),Gl.prototype.remove.call(this,i,l)},t.clear=function(){return Gl.prototype.clear.call(this)},t.search=function(i){var l=Gl.prototype.search.call(this,this.toBBox(i));return Qz(l)},t.collides=function(i){return Gl.prototype.collides.call(this,this.toBBox(i))},t.all=function(){var i=Gl.prototype.all.call(this);return Qz(i)},t.toJSON=function(){return Gl.prototype.toJSON.call(this)},t.fromJSON=function(i){return Gl.prototype.fromJSON.call(this,i)},t.toBBox=function(i){var l;if(i.bbox)l=i.bbox;else if(Array.isArray(i)&&i.length===4)l=i;else if(Array.isArray(i)&&i.length===6)l=[i[0],i[1],i[3],i[4]];else if(i.type==="Feature")l=rp(i);else if(i.type==="FeatureCollection")l=rp(i);else throw new Error("invalid geojson");return{minX:l[0],minY:l[1],maxX:l[2],maxY:l[3]}},t}g5.exports=$z,g5.exports.default=$z;var fX=g5.exports;const pX=ul(fX);function m5(e,t){var i={},l=[];if(e.type==="LineString"&&(e=Za(e)),t.type==="LineString"&&(t=Za(t)),e.type==="Feature"&&t.type==="Feature"&&e.geometry!==null&&t.geometry!==null&&e.geometry.type==="LineString"&&t.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&t.geometry.coordinates.length===2){var h=Yz(e,t);return h&&l.push(h),Gu(l)}var f=pX();return f.load(Bz(t)),tx(Bz(e),function(_){tx(f.search(_),function(o){var I=Yz(_,o);if(I){var D=w1(I).join(",");i[D]||(i[D]=!0,l.push(I))}})}),Gu(l)}function Yz(e,t){var i=w1(e),l=w1(t);if(i.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(l.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var h=i[0][0],f=i[0][1],_=i[1][0],o=i[1][1],I=l[0][0],D=l[0][1],O=l[1][0],P=l[1][1],F=(P-D)*(_-h)-(O-I)*(o-f),Q=(O-I)*(f-D)-(P-D)*(h-I),J=(_-h)*(f-D)-(o-f)*(h-I);if(F===0)return null;var ae=Q/F,Ne=J/F;if(ae>=0&&ae<=1&&Ne>=0&&Ne<=1){var oe=h+ae*(_-h),Z=f+ae*(o-f);return xl([oe,Z])}return null}function y5(e,t){t===void 0&&(t={});var i=ix(e);switch(!t.properties&&e.type==="Feature"&&(t.properties=e.properties),i.type){case"Polygon":return gX(i,t);case"MultiPolygon":return mX(i,t);default:throw new Error("invalid poly")}}function gX(e,t){t===void 0&&(t={});var i=ix(e),l=i.coordinates,h=t.properties?t.properties:e.type==="Feature"?e.properties:{};return Gz(l,h)}function mX(e,t){t===void 0&&(t={});var i=ix(e),l=i.coordinates,h=t.properties?t.properties:e.type==="Feature"?e.properties:{},f=[];return l.forEach(function(_){f.push(Gz(_,h))}),Gu(f)}function Gz(e,t){return e.length>1?h5(e,t):wl(e[0],t)}function yX(e,t){var i=!0;return Hc(e,function(l){Hc(t,function(h){if(i===!1)return!1;i=_X(l.geometry,h.geometry)})}),i}function _X(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return!bX(e.coordinates,t.coordinates);case"LineString":return!Zz(t,e);case"Polygon":return!b1(e,t)}break;case"LineString":switch(t.type){case"Point":return!Zz(e,t);case"LineString":return!vX(e,t);case"Polygon":return!Wz(t,e)}break;case"Polygon":switch(t.type){case"Point":return!b1(t,e);case"LineString":return!Wz(e,t);case"Polygon":return!xX(t,e)}}return!1}function Zz(e,t){for(var i=0;i<e.coordinates.length-1;i++)if(wX(e.coordinates[i],e.coordinates[i+1],t.coordinates))return!0;return!1}function vX(e,t){var i=m5(e,t);return i.features.length>0}function Wz(e,t){for(var i=0,l=t.coordinates;i<l.length;i++){var h=l[i];if(b1(h,e))return!0}var f=m5(t,y5(e));return f.features.length>0}function xX(e,t){for(var i=0,l=e.coordinates[0];i<l.length;i++){var h=l[i];if(b1(h,t))return!0}for(var f=0,_=t.coordinates[0];f<_.length;f++){var o=_[f];if(b1(o,e))return!0}var I=m5(y5(e),y5(t));return I.features.length>0}function wX(e,t,i){var l=i[0]-e[0],h=i[1]-e[1],f=t[0]-e[0],_=t[1]-e[1],o=l*_-h*f;return o!==0?!1:Math.abs(f)>=Math.abs(_)?f>0?e[0]<=i[0]&&i[0]<=t[0]:t[0]<=i[0]&&i[0]<=e[0]:_>0?e[1]<=i[1]&&i[1]<=t[1]:t[1]<=i[1]&&i[1]<=e[1]}function bX(e,t){return e[0]===t[0]&&e[1]===t[1]}function MX(e,t){var i=!1;return Hc(e,function(l){Hc(t,function(h){if(i===!0)return!0;i=!yX(l.geometry,h.geometry)})}),i}const IX=()=>{const[e,t]=ye.useState(!1),[i,l]=ye.useState(!1),h=Qs(),f=Az(),_=Mn(r5),o=Mn(v1),I=Mn(o5),D=Mn(Xv),O=Mn(Es),P=Mn(Kv),F=Mn(Cz),Q=Mn(x1),J=Mn(DK),ae=Mn(s5),[Ne,oe]=ye.useState(!1),[Z,W]=Wn(vl),se=Wn(Jv),[ve]=Wn(Nz),[ue,Be]=ye.useState({id:null,originalRule:null});ye.useEffect(()=>{f&&$e()},[f]),ye.useEffect(()=>{$e()},[O,Z,D,I,P,_,F,o,ve]);function $e(){const ct=Q.find(yt=>yt.name.toLowerCase()===Z.toLowerCase());if(!I&&ue.id&&O&&Ne&&(window.mapsindoors.services.LocationsService.getLocation(ue.id).then(yt=>{yt&&(O.setDisplayRule(yt.id,ue.originalRule||null),oe(!1))}),Be({id:null,originalRule:null})),O&&ct){if(t(!0),I&&h)Be(yt=>({...yt,id:I})),window.mapsindoors.services.LocationsService.getLocation(I).then(yt=>{if(yt){const Ht=yt.properties.floor;O.setFloor(Ht);const _t=O.getDisplayRule(yt);Be(wt=>({...wt,originalRule:{..._t}})),Ue(yt),_1().then(wt=>{l(yt.geometry),Wa(yt.geometry,O,wt,0,F?Ke(F):void 0,J,_)})}});else if(D&&!ae)Ur(ve)?window.mapsindoors.services.LocationsService.getLocation(D).then(yt=>{if(yt){const Ht=yt.properties.floor;O.setFloor(Ht),h?Yu().then(_t=>{l(yt.geometry),Wa(yt.geometry,O,0,_t,F?Ke(F):void 0,J,_)}):np().then(_t=>{l(yt.geometry),Wa(yt.geometry,O,_t,0,F?Ke(F):void 0,J,_)})}}):window.mapsindoors.services.LocationsService.getLocation(D).then(yt=>{if(yt){const Ht=yt.properties.floor;O.setFloor(Ht),h?Yu().then(_t=>{l(Fe().geometry),Wa(Fe().geometry,O,0,_t,Ke(F),J,_)}):np().then(_t=>{l(Fe().geometry),Wa(Fe().geometry,O,_t,0,Ke(F),J,_)})}});else if(ct)if(ae)h?(l(ct.geometry),Wa(ct.geometry,O,0,0,Ke(F),J,_)):np().then(yt=>{l(ct.geometry),Wa(ct.geometry,O,yt,0,Ke(F),J,_)});else{const yt=Q.find(Ht=>MX(Ht.geometry,Fe().geometry));Ur(ve)?(l(ct.geometry),Wa(ct.geometry,O,0,0,Ke(F),J,_)):Ur(yt)?h?Yu().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,0,Ht,Ke(F),J,_)}):np().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,Ht,0,Ke(F),J,_)}):(h?Yu().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,0,Ht,Ke(F),J,_)}):np().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,Ht,0,Ke(F),J,_)}),se&&W(yt.name))}}}function Ue(ct){if(Ne)return;const yt=O.getDisplayRule(ct);yt.visible=!0,yt.iconSize={width:yt.iconSize.width*2,height:yt.iconSize.height*2},yt.iconVisible=!0,yt.zoomFrom=0,yt.zoomTo=999,yt.clickable=!1,O.setDisplayRule(ct.id,yt),oe(!0)}function Fe(){const[ct,yt]=ve?ve.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[ct,yt]}}}function Ke(ct){return Ur(ct)?18:ct}return[e,i]};function Wa(e,t,i,l,h,f,_){const o=Number(f),I=Number(_),D=h!==void 0?Number(h):void 0;if(D===void 0)t.getMapView().tilt(o||0),t.getMapView().rotate(I||0),t.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:D??22,padding:{top:0,right:0,bottom:i,left:l}});else{const O=rX(e);t.getMapView().setCenter({lat:O.geometry.coordinates[1],lng:O.geometry.coordinates[0]}),t.getMapView().tilt(o||0),t.getMapView().rotate(I||0),t.setZoom(D)}}const qz=ji({key:"hideNonMatches",default:!1}),TX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V5H5V9H3V3ZM15 3H21V9H19V5H15V3ZM5 15V19H9V21H3V15H5ZM21 15V21H15V19H19V15H21Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}}),ye.createElement("rect",{x:9,y:9,width:6,height:6,fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),op=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),X0e="";Kz.propTypes={isViewSelectorDisabled:at.bool,isViewSelectorVisible:at.bool};function Kz({isViewSelectorDisabled:e,isViewSelectorVisible:t}){const{t:i}=$o(),[l,h]=ye.useState(!1),[f,_]=ye.useState([]),[o,I]=ye.useState(null),D=Qs(),O=Mn(Es),P=Mn(vl),F=".view-selector-portal",[Q,J]=ye.useState(null),ae=ye.useRef(null),Ne=ye.useRef(null),oe=6,Z=60;ye.useEffect(()=>{let $e=document.querySelector(F);if($e){J($e);return}const Ue=new MutationObserver(()=>{$e=document.querySelector(F),$e&&(J($e),Ue.disconnect())}),Fe=document.body,Ke={childList:!0,subtree:!0};return Ue.observe(Fe,Ke),()=>{Ue==null||Ue.disconnect()}},[]),ye.useEffect(()=>{const $e=()=>{const Fe=document.querySelector(F);Fe&&J(Fe)},Ue=new ResizeObserver(()=>{$e()});return Ue.observe(document.body),()=>{Ue==null||Ue.disconnect()}},[D]),ye.useEffect(()=>{var $e;if(O&&P){const Ue=($e=O.getVenue())==null?void 0:$e.id;Ue&&I(Ue)}},[O,P]),ye.useEffect(()=>{O&&P&&window.mapsindoors.services.VenuesService.getVenues().then($e=>{const Ue=$e.find(Fe=>Fe.name.toLowerCase()===P.toLowerCase());Ue!=null&&Ue.id&&I(Ue.id)})},[O,P]),ye.useEffect(()=>{o&&window.mapsindoors.services.VenuesService.getBuildings(o).then($e=>{_($e)})},[o]);const W=ye.useMemo(()=>f.map($e=>({id:$e.id,name:$e.buildingInfo.name})),[f]),se=ye.useCallback($e=>{O.fitBuilding($e),h(!1)},[O]);if(ye.useEffect(()=>{if(!(l&&D))return;function $e(Ue){ae.current&&!ae.current.contains(Ue.target)&&Ne.current&&!Ne.current.contains(Ue.target)&&h(!1)}return document.addEventListener("mousedown",$e),()=>{document.removeEventListener("mousedown",$e)}},[l,D]),W.length<=1||t===!1)return null;const ve=()=>Se.jsx("button",{ref:Ne,className:"view-selector__toggle-button",onClick:()=>h(!l),disabled:e,children:Se.jsx(TX,{})}),ue=()=>{const $e=ye.useMemo(()=>D&&W.length>oe?{height:`${oe*Z}px`}:{},[D,W.length]);return Se.jsx("div",{className:"building-list",style:$e,children:W.map(Ue=>Se.jsx("button",{className:"building-list__item",onClick:()=>se(Ue.id),children:Se.jsx("span",{children:Ue.name})},Ue.id))})},Be=Se.jsxs("div",{className:"view-selector",children:[!D&&l&&Se.jsxs("div",{className:"mobile-overlay",children:[Se.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>h(!1)}),Se.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Se.jsxs("div",{className:"mobile-overlay__header",children:[Se.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>h(!1),"aria-label":i("Close view selector"),children:Se.jsx(op,{})}),Se.jsx("span",{children:i("Go to view")})]}),Se.jsx(ue,{})]})]}),D?Se.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[l&&Se.jsx("div",{ref:ae,className:"view-selector__container view-selector__container--desktop",children:Se.jsx(ue,{})}),Se.jsx(ve,{})]}):Se.jsx(ve,{})]});return Q?Fc.createPortal(Be,Q):null}const SX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00177 3V5H13.0018V7H11.3742C11.0618 8.91166 10.4455 10.5244 9.43896 11.8188C10.1899 12.3437 11.1128 12.7471 12.2443 13.0299L13.2145 13.2725L12.7294 15.2128L11.7593 14.9702C10.2984 14.605 9.04252 14.0424 8.00171 13.245C6.96091 14.0424 5.70503 14.6049 4.24428 14.9701L3.27413 15.2127L2.78906 13.2724L3.75921 13.0299C4.89067 12.747 5.81358 12.3436 6.56448 11.8188C5.55798 10.5244 4.94173 8.91163 4.62931 7H3.00177V5H7.00177V3H9.00177ZM6.65973 7C6.92571 8.41424 7.37545 9.52718 8.00174 10.4013C8.62805 9.52718 9.0778 8.41425 9.34379 7H6.65973ZM16.1161 10H17.8874L22.3317 19.481L20.5207 20.3299L19.4286 18H14.5749L13.4828 20.3299L11.6719 19.481L16.1161 10ZM15.5124 16H18.4911L17.0018 12.8227L15.5124 16Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),J0e="";function Xz({toggleButtonRef:e,isExpanded:t,setIsExpanded:i}){return Se.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>i(l=>!l),"aria-haspopup":"listbox","aria-expanded":t,"aria-label":"Select language",children:Se.jsx(SX,{})})}function Jz({supportedLanguages:e,currentLanguage:t,setLanguage:i,setIsExpanded:l}){return Se.jsx("div",{className:"language-selector__list",children:e.map(h=>Se.jsx("button",{className:`language-selector__item${t===h.code?" language-selector__item--selected":""}`,onClick:()=>{i(h.code),l(!1)},children:h.label},h.code))})}function ek({currentLanguage:e,setLanguage:t,isVisible:i}){const{t:l}=$o(),[h,f]=ye.useState(!1),_=ye.useRef(null),o=ye.useRef(null),[I,D]=ye.useState(null),O=Qs(),P=".language-selector-portal";return ye.useEffect(()=>{let F=document.querySelector(P);if(F){D(F);return}const Q=new MutationObserver(()=>{F=document.querySelector(P),F&&(D(F),Q.disconnect())});return Q.observe(document.body,{childList:!0,subtree:!0}),()=>Q.disconnect()},[]),ye.useEffect(()=>{if(!(h&&O))return;function F(Q){_.current&&!_.current.contains(Q.target)&&o.current&&!o.current.contains(Q.target)&&f(!1)}return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[h,O]),!i||!I?null:Fc.createPortal(O?Se.jsxs("div",{className:"language-selector__button-container",children:[h&&Se.jsx("div",{ref:_,className:"language-selector__container",children:Se.jsx(Jz,{supportedLanguages:yz,currentLanguage:e,setLanguage:t,setIsExpanded:f})}),Se.jsx(Xz,{toggleButtonRef:o,isExpanded:h,setIsExpanded:f})]}):Se.jsxs(Se.Fragment,{children:[Se.jsx(Xz,{toggleButtonRef:o,isExpanded:h,setIsExpanded:f}),h&&Se.jsxs("div",{className:"language-selector-overlay",children:[Se.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>f(!1)}),Se.jsxs("div",{className:"language-selector__container",children:[Se.jsxs("div",{className:"language-selector-overlay__header",children:[Se.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>f(!1),"aria-label":"Close language selector",children:"×"}),Se.jsx("span",{children:l("Select language")})]}),Se.jsx(Jz,{supportedLanguages:yz,currentLanguage:e,setLanguage:t,setIsExpanded:f})]})]})]}),I)}ek.propTypes={currentLanguage:at.string,setLanguage:at.func.isRequired,isVisible:at.bool};const Zu=ji({key:"appConfig",default:void 0}),CX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M14.4978 10C14.4978 11.3807 13.3785 12.5 11.9978 12.5C10.6171 12.5 9.4978 11.3807 9.4978 10C9.4978 8.61929 10.6171 7.5 11.9978 7.5C13.3785 7.5 14.4978 8.61929 14.4978 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"}),ye.createElement("path",{d:"M19 10C19 14.8354 14.2437 19.1734 12.5723 20.5484C12.2352 20.8258 11.7648 20.8258 11.4277 20.5484C9.75634 19.1734 5 14.8354 5 10C5 6.13401 8.13401 3 12 3C15.866 3 19 6.13401 19 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"})),eye="",bl=ji({key:"kioskLocation",default:null}),Wu=()=>{const e=Mn(bl),t=Qs();return!(!e||e&&!t)};function tk(){const[e,t]=ye.useState(null),i=".reset-view-portal",l=Wu(),h=Mn(o5),f=Mn(Es),_=Mn(vl),o=Mn(bl),I=Qs();function D(){window.mapsindoors.services.LocationsService.getLocation(h).then(Q=>{Q&&O([Q])}).catch(Q=>{console.error("Error resetting map position:",Q)})}function O(Q){if(!f.goTo)return;const J=Q.find(oe=>oe.id===h);if(J){const oe=J.properties.floor;f.setFloor(oe)}const ae=f.getFloor(),Ne={type:"FeatureCollection",features:Q.filter(oe=>parseInt(oe.properties.floor,10)===parseInt(ae,10)).filter(oe=>_&&oe.properties.venueId.toLowerCase()===_.toLowerCase()).map(oe=>({type:"Feature",geometry:oe.geometry,properties:oe.properties}))};Ne.features.length>0&&Promise.all([P(),F()]).then(([oe,Z])=>{f.goTo(Ne,{maxZoom:22,padding:{bottom:oe,left:Z,top:0,right:0}})})}function P(){return new Promise(Q=>{I?o?_1().then(J=>Q(J)):Q(0):Q(200)})}function F(){return new Promise(Q=>{I?o?Q(0):Yu().then(J=>Q(J)):Q(0)})}return ye.useEffect(()=>{let Q=document.querySelector(i);if(Q){t(Q);return}const J=new MutationObserver(()=>{Q=document.querySelector(i),Q&&(t(Q),J.disconnect())});return J.observe(document.body,{childList:!0,subtree:!0}),()=>J.disconnect()},[]),!l||!e?null:Fc.createPortal(Se.jsx("button",{className:"reset-kiosk-view-button",onClick:D,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Se.jsx(CX,{})}),e)}tk.propTypes={onReset:at.func,isVisible:at.bool},nk.propTypes={onLocationClick:at.func,onMapPositionKnown:at.func.isRequired,useMapProviderModule:at.bool.isRequired,onMapPositionInvestigating:at.func.isRequired,onViewModeSwitchKnown:at.func.isRequired,resetCount:at.number.isRequired,mapOptions:at.object,gmMapId:at.string,isWayfindingOrDirections:at.bool,currentLanguage:at.string,setLanguage:at.func,devicePosition:at.object};let _5;function nk({onLocationClick:e,onMapPositionKnown:t,useMapProviderModule:i,onMapPositionInvestigating:l,onViewModeSwitchKnown:h,resetCount:f,mapOptions:_,gmMapId:o,isWayfindingOrDirections:I,currentLanguage:D,setLanguage:O,devicePosition:P}){const F=Mn(Zv),Q=Mn(i5),J=Mn(Wv),[ae,Ne]=Wn(Gv),[oe,Z]=Wn(Es),[,W]=Wn(tp),[,se]=Wn(Yv),ve=Mn(m1),ue=Mn(qv),Be=Mn(Iz),$e=Mn(r5),Ue=Mn(Kv),[,Fe]=Wn(Tz),Ke=Mn(Sz),[,ct]=Wn(y1),yt=Mn(qz),Ht=Mn(Zu),[_t,wt]=ye.useState(!1),[Ft,gt]=ye.useState(!1),Rt=Wu();SK(F);const[H,le]=IX();ye.useEffect(()=>{if(!Ke||Q===null&&J===null)return;let Y;const q=Ke.modules.map(ce=>ce.toLowerCase()).includes("mapbox");i?q?J&&(Y=xs.Mapbox):Q&&(Y=xs.Google):J?Y=xs.Mapbox:Y=xs.Google,Y?Ne(Y):(ct({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),Ne(void 0))},[Q,J,Ke]),ye.useEffect(()=>{H&&l()},[H]),ye.useEffect(()=>{le&&t()},[le]),ye.useEffect(()=>{if(!oe)return;const Y=ve||ue;if(!Y)return;const q=Y.map(ce=>ce.id);yt||!oe.highlight?oe.filter(q):oe.highlight(q)},[ve,ue,oe,yt]),ye.useEffect(()=>{oe&&(isNaN(parseInt(Ue))||oe.getMapView().tilt(parseInt(Ue)),isNaN(parseInt($e))||oe.getMapView().rotate(parseInt($e)))},[$e,Ue,oe]);const T=Y=>{L(Y)},L=Y=>{if(Y&&_5){let q=Y.getTileURL();if(q){q=Y.getTileURL().replace("default",_5);const ce=q==null?void 0:q.replace("{floor}",Y.getFloor());Y.getMapView().setMapsIndoorsTileURL(ce)}}},$=(Y,q,ce)=>{Y.on("mouseenter",()=>{var nt;const He=Y.getHoveredLocation();((nt=He==null?void 0:He.properties.locationSettings)==null?void 0:nt.selectable)===!1&&Y.unhoverLocation()}),Y.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Y.on("click",He=>e(He)),Y.once("building_changed",()=>T(Y)),Y.on("floor_changed",()=>L(Y)),Z(Y),window.mapsIndoorsInstance=Y;const pe=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(pe);let fe;ae===xs.Google?fe=new window.mapsindoors.directions.GoogleMapsProvider:ae===xs.Mapbox&&(fe=new window.mapsindoors.directions.MapboxProvider(J));const we=new window.mapsindoors.services.DirectionsService(fe);se(we),Z(Y),q.nodeName==="MI-MY-POSITION"?(q.addEventListener("position_received",He=>{He.detail.accurate===!0&&W(He.detail.position)}),q.addEventListener("position_error",()=>{W(null)})):(q.on("position_received",He=>{He.accurate===!0&&W(He.position)}),q.on("position_error",()=>{W(null)})),Fe(q),h(ce)};return ye.useEffect(()=>{_5=Be||"default",L(oe)},[Be]),ye.useEffect(()=>{var Y,q,ce,pe;Ht&&(Ur((Y=Ht==null?void 0:Ht.appSettings)==null?void 0:Y.viewSelector)?wt(!1):wt(((q=Ht==null?void 0:Ht.appSettings)==null?void 0:q.viewSelector.trim().toLowerCase())==="true"),Ur((ce=Ht==null?void 0:Ht.appSettings)==null?void 0:ce.languageSelector)?gt(!1):gt(((pe=Ht==null?void 0:Ht.appSettings)==null?void 0:pe.languageSelector.trim().toLowerCase())==="true"))},[Ht]),Se.jsxs(Se.Fragment,{children:[F&&Se.jsx(Mz,{apiKey:F,mapboxAccessToken:ae===xs.Mapbox?J:void 0,gmApiKey:ae===xs.Google?Q:void 0,onInitialized:$,resetUICounter:f,mapOptions:_,gmMapId:o,devicePosition:P,isKiosk:Rt}),F&&Se.jsxs(Se.Fragment,{children:[Se.jsx(Kz,{isViewSelectorVisible:_t,isViewSelectorDisabled:I}),Se.jsx(ek,{currentLanguage:D,setLanguage:O,isVisible:Ft}),Se.jsx(tk,{})]})]})}const Ta=ji({key:"primaryColor",default:"#005655"}),tye="",v5=ji({key:"logo",default:void 0});function DX(){const e=Mn(Ta),t=Mn(v5);return Se.jsx("div",{className:"splash-screen",children:Se.jsxs("div",{className:"splash-screen__container",children:[Se.jsx("img",{className:"splash-screen__logo "+(t?"splash-screen__logo--visible":""),src:t,alt:""}),Se.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function ik(e,t){if(e==null)return{};var i={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(t.indexOf(l)!==-1)continue;i[l]=e[l]}return i}function x5(e,t){return x5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},x5(e,t)}function rk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x5(e,t)}function AX(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function EX(e,t){e.classList?e.classList.add(t):AX(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ok(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function NX(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ok(e.className,t):e.setAttribute("class",ok(e.className&&e.className.baseVal||"",t))}const sk={disabled:!1},ak=Lr.createContext(null);var lk=function(t){return t.scrollTop},M1="unmounted",cd="exited",ud="entering",sp="entered",w5="exiting",Qc=function(e){rk(t,e);function t(l,h){var f;f=e.call(this,l,h)||this;var _=h,o=_&&!_.isMounting?l.enter:l.appear,I;return f.appearStatus=null,l.in?o?(I=cd,f.appearStatus=ud):I=sp:l.unmountOnExit||l.mountOnEnter?I=M1:I=cd,f.state={status:I},f.nextCallback=null,f}t.getDerivedStateFromProps=function(h,f){var _=h.in;return _&&f.status===M1?{status:cd}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(h){var f=null;if(h!==this.props){var _=this.state.status;this.props.in?_!==ud&&_!==sp&&(f=ud):(_===ud||_===sp)&&(f=w5)}this.updateStatus(!1,f)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var h=this.props.timeout,f,_,o;return f=_=o=h,h!=null&&typeof h!="number"&&(f=h.exit,_=h.enter,o=h.appear!==void 0?h.appear:_),{exit:f,enter:_,appear:o}},i.updateStatus=function(h,f){if(h===void 0&&(h=!1),f!==null)if(this.cancelNextCallback(),f===ud){if(this.props.unmountOnExit||this.props.mountOnEnter){var _=this.props.nodeRef?this.props.nodeRef.current:qm.findDOMNode(this);_&&lk(_)}this.performEnter(h)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cd&&this.setState({status:M1})},i.performEnter=function(h){var f=this,_=this.props.enter,o=this.context?this.context.isMounting:h,I=this.props.nodeRef?[o]:[qm.findDOMNode(this),o],D=I[0],O=I[1],P=this.getTimeouts(),F=o?P.appear:P.enter;if(!h&&!_||sk.disabled){this.safeSetState({status:sp},function(){f.props.onEntered(D)});return}this.props.onEnter(D,O),this.safeSetState({status:ud},function(){f.props.onEntering(D,O),f.onTransitionEnd(F,function(){f.safeSetState({status:sp},function(){f.props.onEntered(D,O)})})})},i.performExit=function(){var h=this,f=this.props.exit,_=this.getTimeouts(),o=this.props.nodeRef?void 0:qm.findDOMNode(this);if(!f||sk.disabled){this.safeSetState({status:cd},function(){h.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:w5},function(){h.props.onExiting(o),h.onTransitionEnd(_.exit,function(){h.safeSetState({status:cd},function(){h.props.onExited(o)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(h,f){f=this.setNextCallback(f),this.setState(h,f)},i.setNextCallback=function(h){var f=this,_=!0;return this.nextCallback=function(o){_&&(_=!1,f.nextCallback=null,h(o))},this.nextCallback.cancel=function(){_=!1},this.nextCallback},i.onTransitionEnd=function(h,f){this.setNextCallback(f);var _=this.props.nodeRef?this.props.nodeRef.current:qm.findDOMNode(this),o=h==null&&!this.props.addEndListener;if(!_||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var I=this.props.nodeRef?[this.nextCallback]:[_,this.nextCallback],D=I[0],O=I[1];this.props.addEndListener(D,O)}h!=null&&setTimeout(this.nextCallback,h)},i.render=function(){var h=this.state.status;if(h===M1)return null;var f=this.props,_=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var o=ik(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Lr.createElement(ak.Provider,{value:null},typeof _=="function"?_(h,o):Lr.cloneElement(Lr.Children.only(_),o))},t}(Lr.Component);Qc.contextType=ak,Qc.propTypes={};function ap(){}Qc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ap,onEntering:ap,onEntered:ap,onExit:ap,onExiting:ap,onExited:ap},Qc.UNMOUNTED=M1,Qc.EXITED=cd,Qc.ENTERING=ud,Qc.ENTERED=sp,Qc.EXITING=w5;const LX=Qc;var zX=function(t,i){return t&&i&&i.split(" ").forEach(function(l){return EX(t,l)})},b5=function(t,i){return t&&i&&i.split(" ").forEach(function(l){return NX(t,l)})},M5=function(e){rk(t,e);function t(){for(var l,h=arguments.length,f=new Array(h),_=0;_<h;_++)f[_]=arguments[_];return l=e.call.apply(e,[this].concat(f))||this,l.appliedClasses={appear:{},enter:{},exit:{}},l.onEnter=function(o,I){var D=l.resolveArguments(o,I),O=D[0],P=D[1];l.removeClasses(O,"exit"),l.addClass(O,P?"appear":"enter","base"),l.props.onEnter&&l.props.onEnter(o,I)},l.onEntering=function(o,I){var D=l.resolveArguments(o,I),O=D[0],P=D[1],F=P?"appear":"enter";l.addClass(O,F,"active"),l.props.onEntering&&l.props.onEntering(o,I)},l.onEntered=function(o,I){var D=l.resolveArguments(o,I),O=D[0],P=D[1],F=P?"appear":"enter";l.removeClasses(O,F),l.addClass(O,F,"done"),l.props.onEntered&&l.props.onEntered(o,I)},l.onExit=function(o){var I=l.resolveArguments(o),D=I[0];l.removeClasses(D,"appear"),l.removeClasses(D,"enter"),l.addClass(D,"exit","base"),l.props.onExit&&l.props.onExit(o)},l.onExiting=function(o){var I=l.resolveArguments(o),D=I[0];l.addClass(D,"exit","active"),l.props.onExiting&&l.props.onExiting(o)},l.onExited=function(o){var I=l.resolveArguments(o),D=I[0];l.removeClasses(D,"exit"),l.addClass(D,"exit","done"),l.props.onExited&&l.props.onExited(o)},l.resolveArguments=function(o,I){return l.props.nodeRef?[l.props.nodeRef.current,o]:[o,I]},l.getClassNames=function(o){var I=l.props.classNames,D=typeof I=="string",O=D&&I?I+"-":"",P=D?""+O+o:I[o],F=D?P+"-active":I[o+"Active"],Q=D?P+"-done":I[o+"Done"];return{baseClassName:P,activeClassName:F,doneClassName:Q}},l}var i=t.prototype;return i.addClass=function(h,f,_){var o=this.getClassNames(f)[_+"ClassName"],I=this.getClassNames("enter"),D=I.doneClassName;f==="appear"&&_==="done"&&D&&(o+=" "+D),_==="active"&&h&&lk(h),o&&(this.appliedClasses[f][_]=o,zX(h,o))},i.removeClasses=function(h,f){var _=this.appliedClasses[f],o=_.base,I=_.active,D=_.done;this.appliedClasses[f]={},o&&b5(h,o),I&&b5(h,I),D&&b5(h,D)},i.render=function(){var h=this.props;h.classNames;var f=ik(h,["classNames"]);return Lr.createElement(LX,X4({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Lr.Component);M5.defaultProps={classNames:""},M5.propTypes={};const kX=M5,nye="",OX=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),iye="";ck.propTypes={venue:at.object.isRequired,isCurrent:at.bool,onVenueClicked:at.func.isRequired};function ck({venue:e,isCurrent:t,onVenueClicked:i}){const{t:l}=$o(),[h,f]=ye.useState({});return ye.useEffect(()=>()=>{f({})},[]),ye.useEffect(()=>{const _={};e.image&&(_.backgroundImage=`url('${e.image}')`),f(_)},[e]),Se.jsxs("button",{className:"venue",onClick:()=>i(),children:[Se.jsx("div",{className:"venue__image",style:h}),Se.jsxs("div",{className:"venue__content",children:[Se.jsx("div",{children:e.venueInfo.name}),t&&Se.jsx("div",{className:"venue__current",children:l("Current")})]})]})}const I1=ji({key:"isLocationClicked",default:!1});uk.propTypes={onOpen:at.func,onClose:at.func,active:at.bool};function uk({onOpen:e,onClose:t,active:i}){const{t:l}=$o(),h=ye.useRef(null),f=Mn(x1),[,_]=Wn(s5),[o,I]=Wn(vl),[,D]=Wn(I1),O=document.querySelector(".venue-selector-portal"),P=J=>{_(!0),I(J.name),F()},F=()=>{i?t():e()};function Q(J){P(J),D(!1)}return Se.jsxs(Se.Fragment,{children:[!i&&O&&Fc.createPortal(Se.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":l("Venues"),children:Se.jsx(OX,{})}),O),Se.jsx(kX,{in:i,nodeRef:h,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Se.jsxs("div",{className:"venue-selector__content",ref:h,children:[Se.jsxs("div",{className:"venue-selector__header",children:[Se.jsx("h1",{children:l("Select venue")}),Se.jsx("button",{className:"venue-selector__button",onClick:()=>t(),"aria-label":l("Close"),children:Se.jsx(op,{})})]}),Se.jsx("div",{className:"venue-selector__list",children:f.map(J=>Se.jsx(ck,{isCurrent:(o==null?void 0:o.toLowerCase())===J.name.toLowerCase(),venue:J,onVenueClicked:()=>Q(J)},J.id))})]})})]})}const hk=ye.createContext(),Zl=ji({key:"currentLocation",default:null}),jX="Left",PX="Right",RX="Up",FX="Down",lp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},I5={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},dk="mousemove",fk="mouseup",BX="touchend",UX="touchmove",VX="touchstart";function HX(e,t,i,l){return e>t?i>0?PX:jX:l>0?FX:RX}function pk(e,t){if(t===0)return e;const i=Math.PI/180*t,l=e[0]*Math.cos(i)+e[1]*Math.sin(i),h=e[1]*Math.cos(i)-e[0]*Math.sin(i);return[l,h]}function QX(e,t){const i=O=>{const P="touches"in O;P&&O.touches.length>1||e((F,Q)=>{Q.trackMouse&&!P&&(document.addEventListener(dk,l),document.addEventListener(fk,_));const{clientX:J,clientY:ae}=P?O.touches[0]:O,Ne=pk([J,ae],Q.rotationAngle);return Q.onTouchStartOrOnMouseDown&&Q.onTouchStartOrOnMouseDown({event:O}),Object.assign(Object.assign(Object.assign({},F),I5),{initial:Ne.slice(),xy:Ne,start:O.timeStamp||0})})},l=O=>{e((P,F)=>{const Q="touches"in O;if(Q&&O.touches.length>1)return P;if(O.timeStamp-P.start>F.swipeDuration)return P.swiping?Object.assign(Object.assign({},P),{swiping:!1}):P;const{clientX:J,clientY:ae}=Q?O.touches[0]:O,[Ne,oe]=pk([J,ae],F.rotationAngle),Z=Ne-P.xy[0],W=oe-P.xy[1],se=Math.abs(Z),ve=Math.abs(W),ue=(O.timeStamp||0)-P.start,Be=Math.sqrt(se*se+ve*ve)/(ue||1),$e=[Z/(ue||1),W/(ue||1)],Ue=HX(se,ve,Z,W),Fe=typeof F.delta=="number"?F.delta:F.delta[Ue.toLowerCase()]||lp.delta;if(se<Fe&&ve<Fe&&!P.swiping)return P;const Ke={absX:se,absY:ve,deltaX:Z,deltaY:W,dir:Ue,event:O,first:P.first,initial:P.initial,velocity:Be,vxvy:$e};Ke.first&&F.onSwipeStart&&F.onSwipeStart(Ke),F.onSwiping&&F.onSwiping(Ke);let ct=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Ue}`])&&(ct=!0),ct&&F.preventScrollOnSwipe&&F.trackTouch&&O.cancelable&&O.preventDefault(),Object.assign(Object.assign({},P),{first:!1,eventData:Ke,swiping:!0})})},h=O=>{e((P,F)=>{let Q;if(P.swiping&&P.eventData){if(O.timeStamp-P.start<F.swipeDuration){Q=Object.assign(Object.assign({},P.eventData),{event:O}),F.onSwiped&&F.onSwiped(Q);const J=F[`onSwiped${Q.dir}`];J&&J(Q)}}else F.onTap&&F.onTap({event:O});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:O}),Object.assign(Object.assign(Object.assign({},P),I5),{eventData:Q})})},f=()=>{document.removeEventListener(dk,l),document.removeEventListener(fk,_)},_=O=>{f(),h(O)},o=(O,P)=>{let F=()=>{};if(O&&O.addEventListener){const Q=Object.assign(Object.assign({},lp.touchEventOptions),P.touchEventOptions),J=[[VX,i,Q],[UX,l,Object.assign(Object.assign({},Q),P.preventScrollOnSwipe?{passive:!1}:{})],[BX,h,Q]];J.forEach(([ae,Ne,oe])=>O.addEventListener(ae,Ne,oe)),F=()=>J.forEach(([ae,Ne])=>O.removeEventListener(ae,Ne))}return F},D={ref:O=>{O!==null&&e((P,F)=>{if(P.el===O)return P;const Q={};return P.el&&P.el!==O&&P.cleanUpTouch&&(P.cleanUpTouch(),Q.cleanUpTouch=void 0),F.trackTouch&&O&&(Q.cleanUpTouch=o(O,F)),Object.assign(Object.assign(Object.assign({},P),{el:O}),Q)})}};return t.trackMouse&&(D.onMouseDown=i),[D,o]}function $X(e,t,i,l){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==i.preventScrollOnSwipe||t.touchEventOptions.passive!==i.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:l(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:l(e.el,t)})}function gk(e){const{trackMouse:t}=e,i=ye.useRef(Object.assign({},I5)),l=ye.useRef(Object.assign({},lp)),h=ye.useRef(Object.assign({},l.current));h.current=Object.assign({},l.current),l.current=Object.assign(Object.assign({},lp),e);let f;for(f in lp)l.current[f]===void 0&&(l.current[f]=lp[f]);const[_,o]=ye.useMemo(()=>QX(I=>i.current=I(i.current,l.current),{trackMouse:t}),[t]);return i.current=$X(i.current,l.current,h.current,o),_}const Xi={MIN:"MIN",FIT:"FIT",MAX:"MAX"},rye="",cp=ye.forwardRef(function({children:t,isOpen:i,initialSnapPoint:l,minimizedHeight:h,disableSwipe:f=!1,disableContentScroll:_=!1},o){const I=ye.useRef(),D=ye.useRef(),O=ye.useRef(),P=ye.useRef(),F=ye.useRef(),[Q,J]=ye.useState({}),[ae,Ne]=ye.useState(!1),[oe,Z]=ye.useState(null),W=ye.useContext(hk),se=ye.useRef();ye.useImperativeHandle(o,()=>({setSnapPoint(ct){ve(ct)}}));function ve(ct){requestAnimationFrame(()=>{switch(ct){case Xi.MAX:J({height:`${W.current.clientHeight}px`}),O.current=W.current.clientHeight;break;case Xi.FIT:{const yt=D.current.children.item(0).clientHeight;yt<h?(J({height:`${h}px`}),O.current=h,ct=Xi.MIN):(J({height:`${yt}px`}),O.current=yt);break}case Xi.MIN:J({height:`${h}px`}),O.current=h;break}}),F.current=ct}ye.useEffect(()=>(i&&F.current===Xi.FIT?ue():Be(),()=>{Be()}),[i,F.current]);function ue(){se.current&&se.current.disconnect(),se.current=new MutationObserver(()=>{ve(Xi.FIT)}),se.current.observe(D.current,{childList:!0,subtree:!0})}function Be(){se.current&&se.current.disconnect()}const $e=gk(f?{onSwipeStart:()=>{},onSwiping:()=>{},onSwiped:()=>{},trackMouse:!1,preventScrollOnSwipe:!1}:{onSwipeStart:()=>{Ne(!0),Z(null),P.current=I.current.clientHeight},onSwiping:ct=>{const yt=Math.max(P.current-ct.deltaY,h);J({height:`${yt}px`})},onSwiped:ct=>{Ne(!1);const yt=YX(ct.dir,ct.deltaY,F.current,h,W.current.clientHeight,D.current.children.item(0));yt&&(ve(yt),Z(yt))},trackMouse:!0,preventScrollOnSwipe:!0});ye.useEffect(()=>{i&&(F.current=l,ve(l))},[h,l,i]);const Ue=ct=>{$e!=null&&$e.ref&&$e.ref(ct),I.current=ct},Fe=Lr.Children.map(t,ct=>ye.cloneElement(ct,{snapPointSwipedByUser:oe})),Ke=`sheet__content ${F.current===Xi.MIN||_?"sheet__content--no-scroll":""}`;return Se.jsx("div",{...$e,ref:Ue,className:`sheet ${i?"sheet--active":""} ${ae?"sheet--dragging":""} ${F.current===Xi.MAX?"sheet--max":""}`,style:Q,children:Se.jsx("div",{ref:D,className:Ke,style:Q,children:Fe})})});cp.propTypes={children:at.node.isRequired,isOpen:at.bool.isRequired,initialSnapPoint:at.string.isRequired,minimizedHeight:at.number.isRequired,disableSwipe:at.bool,disableContentScroll:at.bool};function YX(e,t,i,l,h,f){if(Math.abs(t)<60)return i;let o;return e.toUpperCase()==="DOWN"?i===Xi.MAX?GX(f)?o=Xi.MIN:f.clientHeight<=h&&f.clientHeight>l?o=Xi.FIT:o=Xi.MIN:i===Xi.FIT&&(o=Xi.MIN):e.toUpperCase()==="UP"&&(i===Xi.MIN?f.clientHeight<=l||f.clientHeight>h?o=Xi.MAX:o=Xi.FIT:i===Xi.FIT&&(o=Xi.MAX)),o}function GX(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const t of e.children)if(t.scrollHeight>t.clientHeight)return!0;return!1}const oye="",sye="",ZX=(e,t)=>{const[i,l]=ye.useState(void 0),[h,f]=ye.useState(void 0);return ye.useEffect(()=>{const _=(o=!1)=>{var D,O;const I=((D=t.current)==null?void 0:D.scrollHeight)>((O=t.current)==null?void 0:O.clientHeight);l(I),o===!0&&f(I)};_(!0),t.current&&new ResizeObserver(_).observe(t.current)},[e,t]),[i,h]},up=()=>gk({onSwiping:({event:e})=>e.stopPropagation()});function rx(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const hp=ji({key:"directionsResponse",default:null}),T1=ji({key:"hasFoundRoute",default:!0}),ox=ji({key:"shuttleBusOn",default:!1}),mk=(e,t,i,l,h)=>{const[f,_]=ye.useState(),[o,I]=ye.useState(),[D,O]=Wn(T1),[,P]=Wn(hp),[F,Q]=ye.useState(),J=Mn(ox);return ye.useEffect(()=>{Q(!1);let ae=!0;return e!=null&&e.geometry&&(t!=null&&t.geometry)&&i.getRoute({origin:rx(e),destination:rx(t),travelMode:l,avoidStairs:h,excludeHighwayTypes:J?[]:["busway"]}).then(Ne=>{if(ae)if(Ne&&Ne.legs){const oe=Ne.legs.reduce((W,se)=>W+se.distance.value,0),Z=Ne.legs.reduce((W,se)=>W+se.duration.value,0);_(oe),I(Z),P({originLocation:e,destinationLocation:t,totalDistance:oe,totalTime:Z,directionsResult:Ne}),O(!0),Q(!0)}else O(!1)},()=>{ae&&O(!1)}),()=>{ae=!1}},[e,t,i,h,l,J]),[f,o,D,F]},hd={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},dp=ji({key:"travelMode",default:hd.WALKING}),fp=ji({key:"accessibilityOn",default:!1}),sx=ji({key:"showExternalIDs",default:!1});function yk(e,t){const i=Mn(Gv),[l,h]=ye.useState(!1),f=e.getMap();ye.useEffect(()=>{t&&h(!1)},[t]);function _(I,D,O,P){const F=Q=>{if(!O)return;D.getMap().queryRenderedFeatures(Q.point).length?P(!1):P(!0)};return I.on("click",F),()=>{I.off("click",F)}}function o(I,D,O,P){const F=()=>{O&&P(!1)},Q=()=>{O&&P(!0)};D.addListener("click",F);const J=I.addListener("click",Q);return()=>{D.removeListener("click",F),J.remove()}}return ye.useEffect(()=>{let I;return i===xs.Mapbox&&(I=_(f,e,t,h)),i===xs.Google&&(I=o(f,e,t,h)),()=>I==null?void 0:I()},[e,t]),l}const aye="",WX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M12 7.75V12L14.75 14.75M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M8 10L11.6464 13.6464C11.8417 13.8417 12.1583 13.8417 12.3536 13.6464L16 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),KX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M16 14L12.3536 10.3536C12.1583 10.1583 11.8417 10.1583 11.6464 10.3536L8 14",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),dd=ji({key:"language",default:void 0});_k.propTypes={openingHours:at.object,isMondayFirstDayOfTheWeek:at.bool,onExpand:at.func};function _k({openingHours:e,isMondayFirstDayOfTheWeek:t=!0,onExpand:i}){const{t:l}=$o(),[h,f]=ye.useState(!1),o=Mn(dd)??navigator.language,I=ye.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(o).match(/AM|PM/)!==null,[o]),D=new Date().getDay(),O=ye.useMemo(()=>{const se=[];for(let ve=0;ve<7;ve++)se.push(new Date(2024,0,ve+1));if(!t){const ve=se.pop();se.unshift(ve)}return se},[t]),P=ye.useMemo(()=>t?D===0?6:D-1:D,[D,t]),{standardOpeningHours:F}=e||{},Q=se=>{const[ve,ue]=se.split(":");return new Date(0,0,0,ve,ue).toLocaleTimeString(o,{hour:"2-digit",minute:"2-digit",hour12:I})},J=se=>{const ve=se.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),ue=F==null?void 0:F[ve];return!(ue!=null&&ue.startTime)||!(ue!=null&&ue.endTime)||ue.closedAllDay?{text:l("Closed"),isClosed:!0}:{text:`${Q(ue.startTime)} - ${Q(ue.endTime)}`,isClosed:!1}},ae=ye.useCallback(se=>{if(!se||se.closedAllDay||!se.startTime||!se.endTime)return!1;const ve=new Date,ue=ve.getHours()*60+ve.getMinutes(),[Be,$e]=se.startTime.split(":"),[Ue,Fe]=se.endTime.split(":"),Ke=parseInt(Be,10)*60+parseInt($e,10),ct=parseInt(Ue,10)*60+parseInt(Fe,10);return ue>=Ke&&ue<=ct},[]),oe=ye.useCallback(()=>{const se=O[P].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return ae(F==null?void 0:F[se])?"Open":"Closed"},[F,O,P,ae,l])(),Z=se=>se.charAt(0).toUpperCase()+se.slice(1),W=()=>{f(se=>!se)};return ye.useEffect(()=>{h&&typeof i=="function"&&i()},[h,i]),Se.jsxs("div",{className:"opening-hours",children:[Se.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:W,"aria-label":l(h?"Collapse opening hours":"Expand opening hours"),"aria-expanded":h,children:[Se.jsx("div",{className:"contact-action-button__icon-wrapper",children:Se.jsx(WX,{})}),Se.jsx("div",{className:"contact-action-button__text",children:J(O[P]).text}),Se.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${oe.toLowerCase()}`,children:l(oe)}),h?Se.jsx(KX,{}):Se.jsx(qX,{})]}),h&&Se.jsx("ul",{className:"opening-hours__list",children:O.map(se=>{const ve=J(se);return Se.jsxs("li",{className:"opening-hours__list-item",children:[Se.jsx("span",{className:"opening-hours__day",children:Z(se.toLocaleString(o,{weekday:"long"}))}),Se.jsx("span",{className:`opening-hours__hours ${ve.isClosed?"opening-hours__hours--closed":""}`,children:ve.text})]},se)})})]})}const XX=ye.memo(_k);function T5(e,t,i){return(t=function(l){var h=function(f,_){if(typeof f!="object"||!f)return f;var o=f[Symbol.toPrimitive];if(o!==void 0){var I=o.call(f,_||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(f)}(l,"string");return typeof h=="symbol"?h:h+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var S5={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},vk=function(e){var t=e.children,i=e.onClickAway,l=e.focusEvent,h=l===void 0?"focusin":l,f=e.mouseEvent,_=f===void 0?"click":f,o=e.touchEvent,I=o===void 0?"touchend":o,D=ye.useRef(null),O=ye.useRef(null),P=ye.useRef(!1);ye.useEffect(function(){return setTimeout(function(){P.current=!0},0),function(){P.current=!1}},[]);var F=function(Ne){return function(oe){O.current=oe.target;var Z=t==null?void 0:t.props[Ne];Z&&Z(oe)}};ye.useEffect(function(){var Ne,oe,Z=(Ne=(oe=D.current)===null||oe===void 0?void 0:oe.ownerDocument)!==null&&Ne!==void 0?Ne:document,W=function(se){P.current&&(D.current&&D.current.contains(se.target)||O.current===se.target||!Z.contains(se.target)||i(se))};return Z.addEventListener(_,W),Z.addEventListener(I,W),Z.addEventListener(h,W),function(){Z.removeEventListener(_,W),Z.removeEventListener(I,W),Z.removeEventListener(h,W)}},[h,_,i,I]);var Q=S5[_],J=S5[I],ae=S5[h];return Lr.Children.only(ye.cloneElement(t,T5(T5(T5({ref:function(Ne){D.current=Ne;var oe=t.ref;typeof oe=="function"?oe(Ne):oe&&(oe.current=Ne)}},ae,F(ae)),Q,F(Q)),J,F(J))))};vk.displayName="ClickAwayListener";const ax=ji({key:"searchAllVenues",default:!1}),C5=ji({key:"searchExternalLocations",default:!0}),xk=Lv({key:"baseLink",get:({get:e})=>{const t=e(i5),i=e(Wv),l=e(Zv),h=e(Ta),f=e(dd),_=e(ax),o=e(C5),I=e(v5),D=window.location.origin+window.location.pathname.replace(/\/$/,""),O=new URLSearchParams(window.location.search),P=new URLSearchParams;return[["gmApiKey",t],["mapboxAccessToken",i],["apiKey",l],["primaryColor",h],["language",f],["searchAllVenues",_],["searchExternalLocations",o],["logo",I]].forEach(([F,Q])=>{if(O.has(F)){const J=O.get(F);P.append(F,J)}else Q&&(Q===h?P.append(F,h.replace("#","")):P.append(F,Q))}),`${D}?${P.toString()}`}}),lye="",JX=e=>ye.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8484 4.66738C13.3129 3.20291 15.6872 3.20291 17.1517 4.66737L19.909 7.42474C21.3735 8.8892 21.3735 11.2636 19.909 12.7281L18.2804 14.3568C17.9875 14.6497 17.5126 14.6497 17.2197 14.3568C16.9268 14.0639 16.9268 13.589 17.2197 13.2961L18.8484 11.6674C19.7271 10.7887 19.7271 9.36407 18.8484 8.4854L16.091 5.72803C15.2123 4.84936 13.7877 4.84936 12.909 5.72804L11.2804 7.35672C10.9875 7.64961 10.5126 7.64961 10.2197 7.35672C9.92681 7.06382 9.92681 6.58895 10.2197 6.29606L11.8484 4.66738ZM15.5304 9.04606C15.8233 9.33895 15.8233 9.81382 15.5304 10.1067L9.53036 16.1068C9.23747 16.3997 8.7626 16.3997 8.4697 16.1068C8.17681 15.8139 8.17681 15.339 8.4697 15.0461L14.4697 9.04606C14.7626 8.75316 15.2375 8.75316 15.5304 9.04606ZM6.78036 10.7961C7.07326 11.089 7.07326 11.5639 6.78036 11.8568L5.15169 13.4854C4.27301 14.3641 4.27301 15.7887 5.15169 16.6674L7.90905 19.4248C8.78773 20.3035 10.2123 20.3035 11.091 19.4248L12.7197 17.7961C13.0126 17.5032 13.4875 17.5032 13.7804 17.7961C14.0733 18.089 14.0733 18.5639 13.7804 18.8568L12.1517 20.4854C10.6872 21.9499 8.31285 21.9499 6.84839 20.4854L4.09102 17.7281C2.62656 16.2636 2.62656 13.8893 4.09103 12.4248L5.7197 10.7961C6.0126 10.5032 6.48747 10.5032 6.78036 10.7961Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),wk=e=>ye.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7.32635C3 5.25529 4.67893 3.57635 6.75 3.57635H7.25C9.32107 3.57635 11 5.25529 11 7.32635V7.82635C11 9.89742 9.32107 11.5764 7.25 11.5764H6.75C4.67893 11.5764 3 9.89742 3 7.82635V7.32635ZM6.75 5.07635C5.50736 5.07635 4.5 6.08371 4.5 7.32635V7.82635C4.5 9.06899 5.50736 10.0764 6.75 10.0764H7.25C8.49264 10.0764 9.5 9.06899 9.5 7.82635V7.32635C9.5 6.08371 8.49264 5.07635 7.25 5.07635H6.75ZM13 7.32635C13 5.25529 14.6789 3.57635 16.75 3.57635H17.25C19.3211 3.57635 21 5.25529 21 7.32635V7.82635C21 9.89742 19.3211 11.5764 17.25 11.5764H16.75C14.6789 11.5764 13 9.89742 13 7.82635V7.32635ZM16.75 5.07635C15.5074 5.07635 14.5 6.08371 14.5 7.32635V7.82635C14.5 9.06899 15.5074 10.0764 16.75 10.0764H17.25C18.4926 10.0764 19.5 9.06899 19.5 7.82635V7.32635C19.5 6.08371 18.4926 5.07635 17.25 5.07635H16.75ZM3 17.3264C3 15.2553 4.67893 13.5764 6.75 13.5764H7.25C9.32107 13.5764 11 15.2553 11 17.3264V17.8264C11 19.8975 9.32107 21.5764 7.25 21.5764H6.75C4.67893 21.5764 3 19.8975 3 17.8264V17.3264ZM6.75 15.0764C5.50736 15.0764 4.5 16.0838 4.5 17.3264V17.8264C4.5 19.069 5.50736 20.0764 6.75 20.0764H7.25C8.49264 20.0764 9.5 19.069 9.5 17.8264V17.3264C9.5 16.0838 8.49264 15.0764 7.25 15.0764H6.75Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 13.5764C14.1642 13.5764 14.5 13.9122 14.5 14.3264V16.0764H16.25C16.6642 16.0764 17 16.4122 17 16.8264C17 17.2406 16.6642 17.5764 16.25 17.5764H13.75C13.3358 17.5764 13 17.2406 13 16.8264V14.3264C13 13.9122 13.3358 13.5764 13.75 13.5764ZM17 14.3264C17 13.9122 17.3358 13.5764 17.75 13.5764H20.25C20.6642 13.5764 21 13.9122 21 14.3264C21 14.7406 20.6642 15.0764 20.25 15.0764H17.75C17.3358 15.0764 17 14.7406 17 14.3264ZM17 18.3264C17 17.9122 17.3358 17.5764 17.75 17.5764H20.25C20.6642 17.5764 21 17.9122 21 18.3264C21 18.7406 20.6642 19.0764 20.25 19.0764H18.5V20.8264C18.5 21.2406 18.1642 21.5764 17.75 21.5764C17.3358 21.5764 17 21.2406 17 20.8264V18.3264Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M13 20.5764C13 20.0241 13.4477 19.5764 14 19.5764C14.5523 19.5764 15 20.0241 15 20.5764C15 21.1287 14.5523 21.5764 14 21.5764C13.4477 21.5764 13 21.1287 13 20.5764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M5.5 17.0764C5.5 16.5241 5.94772 16.0764 6.5 16.0764H7.5C8.05228 16.0764 8.5 16.5241 8.5 17.0764V18.0764C8.5 18.6287 8.05228 19.0764 7.5 19.0764H6.5C5.94772 19.0764 5.5 18.6287 5.5 18.0764V17.0764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M5.5 7.07635C5.5 6.52407 5.94772 6.07635 6.5 6.07635H7.5C8.05228 6.07635 8.5 6.52407 8.5 7.07635V8.07635C8.5 8.62863 8.05228 9.07635 7.5 9.07635H6.5C5.94772 9.07635 5.5 8.62863 5.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M15.5 7.07635C15.5 6.52407 15.9477 6.07635 16.5 6.07635H17.5C18.0523 6.07635 18.5 6.52407 18.5 7.07635V8.07635C18.5 8.62863 18.0523 9.07635 17.5 9.07635H16.5C15.9477 9.07635 15.5 8.62863 15.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),eJ=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M8 6L12 2L16 6",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M12 3V13",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M17 10C18.1046 10 19 10.8954 19 12V18C19 19.1046 18.1046 20 17 20H7C5.89543 20 5 19.1046 5 18V12C5 10.8954 5.89543 10 7 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),lx=ji({key:"qrCodeLink",default:null}),bk=ji({key:"supportsUrlParameters",default:!1});Mk.propTypes={location:at.object.isRequired,buttonClassName:at.string};function Mk({location:e,buttonClassName:t}){const{t:i}=$o(),[l,h]=ye.useState(!1),f=Mn(xk),[_,o]=ye.useState(),I=Mn(bk),[D,O]=ye.useState(!1),[P,F]=ye.useState(!1),Q=Mn(bl),[,J]=Wn(lx),ae=Qs();ye.useEffect(()=>{f&&e&&o(f+"&locationId="+e.id)},[f,e]),ye.useEffect(()=>{var W;O(!Q&&I&&ae);const Z=typeof((W=navigator.clipboard)==null?void 0:W.writeText)=="function";F(!Q&&I&&Z)},[I,Q,ae]);const Ne=()=>{navigator.clipboard.writeText(_),h(!1)},oe=()=>{J(_),h(!1)};return(D||P)&&Se.jsxs("div",{className:"share-location-link",children:[Se.jsx("button",{className:t,onClick:()=>h(Z=>!Z),title:i("Share"),"aria-label":i("Share"),children:Se.jsx(eJ,{})}),l&&Se.jsx(vk,{onClickAway:()=>h(!1),children:Se.jsxs("ul",{children:[P&&Se.jsx("li",{children:Se.jsxs("button",{className:t,onClick:()=>Ne(),children:[Se.jsx(JX,{}),i("Copy link")]})}),D&&Se.jsx("li",{children:Se.jsxs("button",{className:t,onClick:()=>oe(),children:[Se.jsx(wk,{}),i("QR Code")]})})]})})]})}const cye="",Ik={email:"email",phone:"phone"};Tk.propTypes={detailType:at.string,active:at.bool,displayText:at.string,value:at.string,icon:at.string};function Tk({detailType:e,active:t,displayText:i,value:l,icon:h}){if(!t||e.toLowerCase()==="openinghours")return null;const f=i!=null&&i.trim()?i:l,_=(o,I)=>{switch(o.toLowerCase()){case Ik.email:return`mailto:${I}`;case Ik.phone:return`tel:${I}`;default:try{return new URL(I),I}catch{return"#"}}};return Se.jsxs("a",{className:"contact-action-button",href:_(e,l),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Se.jsx("div",{className:"contact-action-button__icon-wrapper",children:Se.jsx("img",{alt:"",src:h,className:"contact-action-button__icon"})}),Se.jsx("span",{className:"contact-action-button__text",children:f})]})}D5.propTypes={onBack:at.func,onStartWayfinding:at.func,onSetSize:at.func,snapPointSwiped:at.number,onStartDirections:at.func,isOpen:at.bool,snapPointSwipedByUser:at.string};function D5({onBack:e,onStartWayfinding:t,onSetSize:i,onStartDirections:l,isOpen:h,snapPointSwipedByUser:f}){var At,Nt,hn,Jt;const{t:_}=$o(),o=ye.useRef(null),I=ye.useRef(null),D=ye.useRef(null),O=ye.useRef(null),P=ye.useRef(null),[F,Q]=ye.useState(!1),[J,ae]=ye.useState(!1),[Ne,oe]=ye.useState(!1),Z=ye.useRef(!1),[W,se]=ye.useState(null),ve=Mn(Es),ue=Mn(Zl),Be=(At=ue==null?void 0:ue.properties)==null?void 0:At.additionalDetails,$e=(Nt=Be==null?void 0:Be.find(fn=>fn.key.toLowerCase().includes("openinghours")&&fn.active===!0))==null?void 0:Nt.openingHours,[Ue,Fe]=ZX(ue,D),Ke=up(),ct=Mn(Ta),yt=Mn(bl),Ht=Mn(Yv),[_t,wt]=ye.useState(),[Ft,gt]=ye.useState(),[Rt,H]=ye.useState(!0),le=Qs(),T=Mn(dp),L=Mn(fp),[,,$]=mk(Ft,_t,Ht,T,L),Y=Mn(sx),q=yk(ve,h),ce=Mn(Zu),pe=(Jt=(hn=ce==null?void 0:ce.appSettings)==null?void 0:hn.excludeFromUI)==null?void 0:Jt.includes("wayfindingDisabled");ye.useEffect(()=>{(()=>{if(ve&&ue)try{const Xt=ve.getBuilding();if(Xt&&Xt.floors){const xn=Object.keys(Xt.floors).length;H(xn>1)}else H(!1)}catch{H(!0)}})()},[ve,ue]),ye.useEffect(()=>()=>{se(null),wt(),gt()},[]);const fe=ye.useCallback(()=>{Q(!1),ae(!1),oe(!1),we(Xi.FIT),e()});function we(fn){typeof i=="function"&&i(fn)}function He(){F===!1?(nt(),we(Xi.MAX)):(Qe(),we(Xi.FIT))}function nt(){requestAnimationFrame(()=>{Q(!0),tt(),Z.current=!0})}function Qe(){Q(!1),Ge(),Z.current=!1}function tt(){const fn=requestAnimationFrame(()=>{I.current&&(ae(I.current.scrollTop>0),oe(I.current.scrollTop<I.current.scrollHeight-I.current.offsetHeight-1))});return()=>cancelAnimationFrame(fn)}function Ge(){ae(!1),oe(!1)}function It(){Q(!1),ae(!1),oe(!1),we(Xi.FIT),t()}function Mt(){Q(!1),ae(!1),oe(!1),we(Xi.FIT),l()}return ye.useEffect(()=>{q&&e()},[q]),ye.useEffect(()=>()=>{se(null),wt(),gt()},[]),ye.useEffect(()=>{Q(!1),ae(!1),oe(!1),se(null),ue&&(o.current.location=ue,se(ve.getDisplayRule(ue)),wt(ue)),yt&&gt(yt)},[ue,ve,yt]),ye.useEffect(()=>{const fn=(Be==null?void 0:Be.length)>0;we(ue&&h&&fn?Xi.FIT:Xi.MIN)},[ue,h,Be]),ye.useEffect(()=>{if(!f){Z.current=!1;return}Q(f===Xi.MAX),f===Xi.MAX?nt():Qe()},[f]),ye.useLayoutEffect(()=>{const fn=document.querySelector(".modal.modal--open");if(!fn||!(O!=null&&O.current)||!(I!=null&&I.current))return;const Xt=()=>{const xn=fn.offsetHeight,kn=I.current.offsetHeight;xn>0&&kn>0&&(kn/xn>.9?(fn.style.height="100%",tt()):fn.style.height="auto")};return P.current?P.current.complete?Xt():(P.current.onload=Xt,P.current.onerror=Xt):Xt(),()=>{fn.style.height="",P.current&&(P.current.onload=null,P.current.onerror=null)}},[ue,F,h,Be]),Se.jsx("div",{className:`location-details ${Z.current===!0?"location-details--max-height":""} ${J?"location-details--content-above":""} ${Ne?"location-details--content-below":""}`,children:ue&&Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"location-details__header",children:[Se.jsxs("div",{className:"location-info",children:[Se.jsx("div",{className:"location-info__icon",children:W&&Se.jsx("img",{alt:"",src:W.icon.src?W.icon.src:W.icon})}),Se.jsxs("div",{className:"location-info__content",children:[Se.jsx("div",{className:"location-info__name",children:ue.properties.name}),Se.jsx("mi-location-info",{level:_("Level"),ref:o,"show-external-id":Y,"show-floor":Rt})]}),Se.jsxs("div",{className:"location-info__actions",children:[Se.jsx(Mk,{buttonClassName:"location-info__button",location:ue}),Se.jsx("button",{className:"location-info__button",onClick:()=>fe(),"aria-label":_("Close"),children:Se.jsx(op,{})})]})]}),!pe&&(yt&&le?Se.jsx("button",{disabled:!$,onClick:()=>Mt(),className:`location-details__wayfinding ${$?"":"location-details--no-route"}`,style:{background:ct},children:_($?"Start directions":"Directions not available")}):Se.jsx("button",{onClick:()=>It(),style:{background:ct},className:"location-details__wayfinding",children:_("Start wayfinding")}))]}),Se.jsx("div",{className:"location-details__details prevent-scroll",...Ke,ref:O,children:Se.jsxs("div",{ref:I,onScroll:fn=>tt(),className:"location-details__details-content",children:[ue.properties.imageURL&&Se.jsx("img",{ref:P,alt:"",src:ue.properties.imageURL,className:"location-details__image"}),Object.keys(ue.properties.categories).length>0&&Se.jsx("p",{className:"location-details__categories",children:Object.values(ue.properties.categories).map((fn,Xt,xn)=>Se.jsxs(Lr.Fragment,{children:[fn,Xt<xn.length-1&&Se.jsx(Se.Fragment,{children:"・"})]},fn))}),ue.properties.description&&Se.jsxs("section",{className:`location-details__description ${F?"location-details__description--full":""}`,children:[Se.jsx("div",{ref:D,children:ue.properties.description}),(Ue||Fe||F)&&Se.jsx("button",{onClick:()=>He(),children:_(F?"Close":"Read full description")})]}),Be&&Se.jsxs("div",{className:"contact-action-buttons-container",children:[Be.map(fn=>Se.jsx(Tk,{detailType:fn.detailType,active:fn.active,displayText:fn.displayText,value:fn.value,icon:fn.icon},fn.key)),$e&&Se.jsx(XX,{openingHours:$e,onExpand:()=>tt()})]})]})})]})})}const uye="",tJ=e=>ye.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("g",{clipPath:"url(#clip0_1663_3931)"},ye.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),ye.createElement("defs",null,ye.createElement("clipPath",{id:"clip0_1663_3931"},ye.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),Sk=e=>ye.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),ye.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),nJ=e=>ye.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),ye.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),hye="";S1.propTypes={location:at.object,locationClicked:at.func,icon:at.string,isHovered:at.bool};function S1({location:e,locationClicked:t,icon:i,isHovered:l}){const{t:h}=$o(),f=ye.useRef(),_=Mn(Es),o=Mn(sx);return ye.useEffect(()=>{var F;const I=Q=>t(Q.detail),D=()=>{var Q;((Q=e.properties.locationSettings)==null?void 0:Q.selectable)!==!1&&_.hoverLocation(e)},O=()=>{var Q;(Q=e.properties.locationSettings)!=null&&Q.selectable||_.unhoverLocation(e)};((F=e.properties.locationSettings)==null?void 0:F.selectable)===!1&&f.current.classList.add("non-selectable");const{current:P}=f;return P.location=e,P.icon=i||_.getDisplayRule(e).icon,P.addEventListener("locationClicked",I),P.addEventListener("mouseover",D),P.addEventListener("mouseout",O),l?f.current.classList.add("hovered"):f.current.classList.remove("hovered"),()=>{P.removeEventListener("locationClicked",I),P.removeEventListener("mouseover",D),P.removeEventListener("mouseout",O)}},[e,t,l]),Se.jsx("mi-list-item-location",{level:h("Level"),ref:f,"show-external-id":o})}const iJ=()=>{const[e,t]=ye.useState(),i=Mn(Es),l=Mn(Jv);return ye.useEffect(()=>{function h(){const f=i.getMapView().getCenter();t(f.lat+","+f.lng)}return i&&l?(i.getMapView().addListener("idle",h),h()):i&&i.getMapView().removeListener("idle",h),()=>{i&&i.getMapView().removeListener("idle",h)}},[i,l]),e},A5=ji({key:"searchInput",default:void 0}),cx=ye.forwardRef(function(t,i){const{placeholder:l,mapsindoors:h,results:f,clicked:_,cleared:o,changed:I,category:D,google:O,mapbox:P,disabled:F=!1}=t,Q=ye.useRef(),J=Mn(tp),ae=Mn(dd),[,Ne]=Wn(A5),oe=sessionStorage.getItem("mapboxPlacesSessionToken"),Z={longitude:J==null?void 0:J.coords.longitude,latitude:J==null?void 0:J.coords.latitude},W=iJ(),se=Mn(vl),ve=Mn(ax);return ye.useImperativeHandle(i,()=>({triggerSearch(){Q.current.triggerSearch()},getValue(){return Q.current.value},setDisplayText(ue){Q.current.setDisplayText(ue)},focusInput(){Q.current.focusInput()},clear(){Q.current.clear()},getInputField(){return Q.current.getInputField().then(ue=>Ne(ue))}})),ye.useEffect(()=>{const{current:ue}=Q;ue.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{ue.triggerSearch()})},[ae]),ye.useEffect(()=>{const ue=Ue=>f(Ue.detail),Be=()=>o(),{current:$e}=Q;return h===!0&&($e.mapsindoors="true"),$e.addEventListener("results",ue),$e.addEventListener("click",_),$e.addEventListener("cleared",Be),$e.addEventListener("changed",I),()=>{$e.removeEventListener("results",ue),$e.removeEventListener("click",_),$e.removeEventListener("cleared",Be),$e.removeEventListener("changed",I)}},[l,h,f,_,o,O,P,I]),Se.jsx("mi-search",{ref:Q,"id-attribute":"search",placeholder:l,"session-token":oe,"user-position":Z.latitude!==void 0&&Z.longitude!==void 0?Object.values(Z).join(","):null,"mi-near":W,"mi-categories":D,disabled:F,mapbox:P,google:O,"mi-venue":ve?void 0:se,language:ae})});cx.propTypes={placeholder:at.string,mapsindoors:at.bool,results:at.func,clicked:at.func,cleared:at.func,changed:at.func,category:at.string,preventFocus:at.bool,google:at.bool,mapbox:at.bool,disabled:at.bool};function E5(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:hz("My position"),anchor:t},type:"Feature"}}let N5;function rJ(e){return new Promise((t,i)=>{N5||(N5=new window.google.maps.Geocoder),N5.geocode({placeId:e.properties.placeId},l=>{l.length>0?(e.geometry={type:"Point",coordinates:[l[0].geometry.location.lng(),l[0].geometry.location.lat()]},t(e)):i()})})}const oJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",Ck=e=>ye.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),Dk=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("g",{clipPath:"url(#clip0_1697_57490)"},ye.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),ye.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),ye.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),ye.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),ye.createElement("defs",null,ye.createElement("clipPath",{id:"clip0_1697_57490"},ye.createElement("rect",{width:20,height:20,fill:"white"})))),sJ=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("g",{clipPath:"url(#clip0_3407_1703)"},ye.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),ye.createElement("defs",null,ye.createElement("clipPath",{id:"clip0_3407_1703"},ye.createElement("rect",{width:20,height:20,fill:"white"}))));Ak.propTypes={selectionChanged:at.func,children:at.node};function Ak({selectionChanged:e,children:t}){const i=ye.useRef();return ye.useEffect(()=>{const l=f=>e(f.detail),{current:h}=i;return h.addEventListener("change",l),()=>h.removeEventListener("change",l)},[e]),Se.jsx("mi-dropdown",{ref:i,children:t})}function aJ(e,t){const i=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((l,h)=>{const f=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${i}&access_token=${t}`;fetch(f).then(_=>_.status!==200?h():_.json()).then(_=>{e.geometry={type:"Point",coordinates:[_.features[0].geometry.coordinates[0],_.features[0].geometry.coordinates[1]]},l(e)}).catch(()=>{h()})})}const lJ=Lv({key:"unitSystem",get:({get:e})=>e(dd)==="en-US"?"imperial":"metric"}),dye="";L5.propTypes={onAccessibilityChanged:at.func};function L5({onAccessibilityChanged:e}){const t=Mn(Ta),[i,l]=Wn(fp);function h(f){l(f.target.checked),e&&e()}return Se.jsxs("div",{className:"accessibility",children:[Se.jsx("input",{className:"mi-toggle",type:"checkbox",checked:i,onChange:f=>h(f),style:{backgroundColor:i?t:""}}),Se.jsx("div",{children:hz("Avoid stairs and escalators")})]})}const fye="";function Ek(){var _,o;const{t:e}=$o(),t=Mn(Ta),i=Mn(Zu),[l,h]=Wn(ox);function f(I){h(I.target.checked)}return Se.jsxs("div",{className:"shuttle-bus",children:[Se.jsx("input",{className:"mi-toggle",type:"checkbox",checked:l,onChange:I=>f(I),"aria-label":((_=i==null?void 0:i.appSettings)==null?void 0:_.includeTransitSelectionDescription)||e("Include bus transportation"),style:{backgroundColor:l?t:""}}),Se.jsx("div",{children:((o=i==null?void 0:i.appSettings)==null?void 0:o.includeTransitSelectionDescription)||"Include bus transportation"})]})}const Nk=ji({key:"wayfindingLocation",default:null}),Po={TO:"TO",FROM:"FROM"},cJ="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";z5.propTypes={onStartDirections:at.func.isRequired,onBack:at.func.isRequired,directionsToLocation:at.object,directionsFromLocation:at.object,onSetSize:at.func,isActive:at.bool};function z5({onStartDirections:e,onBack:t,directionsToLocation:i,directionsFromLocation:l,onSetSize:h,isActive:f}){var kn,vt;const{t:_}=$o(),o=ye.useRef(),I=ye.useRef(),D=ye.useRef(),O=ye.useRef(),P=Mn(Yv),F=Mn(tp),Q=Mn(Zl),J=Mn(Gv),ae=Mn(Ta),[Ne,oe]=Wn(Nk),[Z,W]=ye.useState(),[,se]=Wn(T1),[ve,ue]=ye.useState(!0),[Be,$e]=ye.useState(!1),[Ue,Fe]=ye.useState([]),[Ke,ct]=ye.useState(),[yt,Ht]=ye.useState(),_t=Mn(fp),wt=up(),[Ft,gt]=ye.useState(!1),[Rt,H]=Wn(dp),[le,T]=ye.useState(!1),L=Mn(Wv),$=Mn(lJ),[Y,q,ce,pe]=mk(yt,Ke,P,Rt,_t),fe=Mn(C5),we=Mn(Zu);function He(ft){return J===xs.Google&&ft.properties.type==="google_places"?rJ(ft):J===xs.Mapbox&&ft.properties.type==="mapbox_places"?aJ(ft,L):Promise.resolve(ft)}function nt(ft){Z===Po.TO?He(ft).then(Sn=>{ct(Sn),D.current.setDisplayText(Sn.properties.name)},()=>se(!1)):Z===Po.FROM&&He(ft).then(Sn=>{Ht(Sn),O.current.setDisplayText(Sn.properties.name)},()=>se(!1)),gt(!1),$e(!1),Fe([]),T(!1)}function Qe(ft,Sn){if(W(Sn),se(!0),ft.length===0)ue(!1),gt(!1),Fe([]);else{ue(!0),Fe(ft);const In=ft.filter(Ln=>Ln.properties.type==="google_places").length>0;gt(In),tt(Xi.MAX)}}function tt(ft){typeof h=="function"&&h(ft)}function Ge(){const ft=E5(F);Z===Po.TO?(D.current.setDisplayText(ft.properties.name),ct(ft)):Z===Po.FROM&&(O.current.setDisplayText(ft.properties.name),Ht(ft)),Fe([]),se(!0),ue(!0),gt(!1),$e(!1),T(!1)}function It(ft){(yt==null?void 0:yt.id)==="USER_POSITION"&&ft===Po.TO||(Ke==null?void 0:Ke.id)==="USER_POSITION"&&ft===Po.FROM?T(!1):T(!0)}function Mt(ft){It(ft)}function At(ft){W(ft),Jt(ft),se(!0),gt(!1),It(ft)}function Nt(ft){T(!0),W(ft),hn(ft),Fe([]),se(!0),gt(!1),ue(!0)}function hn(ft){ft===Po.TO?ct():ft===Po.FROM&&Ht()}function Jt(ft){ft===Po.TO?(Fe([]),D.current.getValue()&&($e(!0),D.current.triggerSearch())):ft===Po.FROM&&(Fe([]),O.current.getValue()&&($e(!0),O.current.triggerSearch()))}function fn(){(Ke||yt)&&(yt?D.current.setDisplayText(yt.properties.name):D.current.clear(),Ke?O.current.setDisplayText(Ke.properties.name):O.current.clear(),ct(yt),Ht(Ke))}function Xt(){Ht(),O.current.setDisplayText(""),t()}function xn(){Fe([]),$e(!1),gt(!1),T(!1)}return ye.useEffect(()=>()=>{Fe([]),ct(),Ht()},[]),ye.useEffect(()=>{if(Ne){if(Z===Po.FROM)O.current.setDisplayText(Ne.properties.name),Ht(Ne);else if(Z===Po.TO)D.current.setDisplayText(Ne.properties.name),ct(Ne);else return;xn(),oe(null)}},[Ne]),ye.useEffect(()=>{var Sn;tt(Xi.FIT);let ft=!1;if((l==null?void 0:l.id)==="USER_POSITION"&&(i==null?void 0:i.id)==="USER_POSITION"&&(i=void 0),i!=null&&i.properties&&!Q&&(D.current.setDisplayText(i.properties.name),ct(i)),l!=null&&l.properties?yt||(O.current.setDisplayText(l.properties.name),Ht(l),ft=!0):W(Po.FROM),f&&!((Sn=O.current)!=null&&Sn.getValue())&&F&&!yt&&(i==null?void 0:i.id)!=="USER_POSITION"&&!ft){const In=E5(F);O.current.setDisplayText(In.properties.name),Ht(In),se(!0),ue(!0),Fe([])}},[f,i,l]),ye.useEffect(()=>{J===xs.Mapbox&&(gt(!1),Fe(Ue.filter(ft=>ft.properties.type!=="google_places")))},[J]),ye.useEffect(()=>{Q&&(ct(Q),D.current.setDisplayText(Q.properties.name))},[Q]),Se.jsxs("div",{className:"wayfinding",ref:o,children:[Se.jsxs("div",{className:"wayfinding__directions",children:[Se.jsx("div",{className:"wayfinding__title",children:_("Directions")}),Se.jsx("button",{className:"wayfinding__close",onClick:()=>Xt(),"aria-label":"Close",children:Se.jsx(op,{})}),Se.jsxs("div",{className:"wayfinding__locations",children:[Se.jsxs("label",{className:"wayfinding__label",children:[Se.jsx("span",{children:_("Choose departure")}),Se.jsx(cx,{ref:O,mapsindoors:!0,google:J===xs.Google&&fe,mapbox:J===xs.Mapbox&&fe,placeholder:_("Choose departure"),results:ft=>Qe(ft,Po.FROM),clicked:()=>At(Po.FROM),cleared:()=>Nt(Po.FROM),changed:()=>Mt(Po.FROM)})]}),Se.jsx("button",{onClick:()=>fn(),"aria-label":_("Switch"),className:"wayfinding__switch",children:Se.jsx(nJ,{})}),Se.jsxs("label",{className:"wayfinding__label",children:[Se.jsx("span",{children:_("Choose destination")}),Se.jsx(cx,{ref:D,mapsindoors:!0,google:J===xs.Google&&fe,mapbox:J===xs.Mapbox&&fe,placeholder:_("Choose destination"),results:ft=>Qe(ft,Po.TO),clicked:()=>At(Po.TO),cleared:()=>Nt(Po.TO),changed:()=>Mt(Po.TO)})]})]})]}),!ce&&Se.jsx("p",{className:"wayfinding__error",children:_("No route found")}),!ve&&!le&&Se.jsx("p",{className:"wayfinding__error",children:_("Nothing was found")}),F&&le&&Se.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Ge(),children:[Se.jsx(sJ,{}),_("My position")]}),Ue.length>0&&Se.jsx("div",{className:"wayfinding__scrollable",...wt,children:Se.jsxs("div",{className:"wayfinding__results",children:[Ue.map(ft=>Se.jsx(S1,{icon:ft.properties.type==="google_places"||ft.properties.type==="mapbox_places"?cJ:void 0,location:ft,locationClicked:Sn=>nt(Sn)},ft.id)),Ft&&Se.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:oJ})]})}),!Be&&!le&&ce&&!Ft&&yt&&Ke&&Se.jsxs("div",{className:"wayfinding__details",ref:I,children:[Se.jsxs("div",{className:"wayfinding__settings",children:[Se.jsxs("div",{className:"wayfinding__toggles",children:[Se.jsx(L5,{}),((kn=we==null?void 0:we.appSettings)==null?void 0:kn.includeTransitSelection)==="true"&&Se.jsx(Ek,{})]}),Se.jsx("div",{className:"wayfinding__travel",children:((vt=we==null?void 0:we.appSettings)==null?void 0:vt.includeTravelModeSelection)!=="false"&&Se.jsxs(Ak,{selectionChanged:ft=>H(ft[0].value),children:[Se.jsxs("mi-dropdown-item",{selected:!0,value:hd.WALKING,children:[Se.jsx(Sk,{}),_("Walk")]}),Se.jsxs("mi-dropdown-item",{value:hd.DRIVING,children:[Se.jsx(Ck,{}),_("Drive")]}),Se.jsxs("mi-dropdown-item",{value:hd.BICYCLING,children:[Se.jsx(Dk,{}),_("Bike")]})]})})]}),Se.jsx("hr",{}),Se.jsxs("div",{className:"wayfinding__info",children:[Se.jsxs("div",{className:"wayfinding__distance",children:[Rt===hd.WALKING&&Se.jsx(Sk,{}),Rt===hd.DRIVING&&Se.jsx(Ck,{}),Rt===hd.BICYCLING&&Se.jsx(Dk,{}),Se.jsxs("div",{children:[_("Distance"),":"]}),Se.jsx("div",{className:"wayfinding__meters",children:Y&&pe&&Se.jsx("mi-distance",{unit:$,meters:Y})})]}),Se.jsxs("div",{className:"wayfinding__time",children:[Se.jsx(tJ,{}),Se.jsxs("div",{children:[_("Estimated time"),":"]}),Se.jsx("div",{className:"wayfinding__minutes",children:q&&pe&&Se.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:q})})]})]}),Se.jsx("button",{className:"wayfinding__button",style:{background:ae},onClick:()=>e(),disabled:!pe,children:_("Go!")})]})]})}const pye="",gye="",uJ=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hJ=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ux=ji({key:"activeStep",default:0}),hx=ji({key:"substepsToggled",default:!1}),dJ=ji({key:"triggerSubsteps",default:!1}),Lk=ye.forwardRef(function(t,i){var ae;const{totalSteps:l,activeStep:h,previous:f,originLocation:_,directions:o}=t,I=ye.useRef(),{t:D}=$o(),[O,P]=Wn(hx),[,F]=Wn(dJ),Q=Wu();ye.useImperativeHandle(i,()=>({openSubsteps(){I.current.openSubsteps()},closeSubsteps(){I.current.closeSubsteps()}}));const J={walk:D("Walk"),bike:D("Bike"),transit:D("Transit"),drive:D("Drive"),destination:D("You have arrived"),leave:D("Leave"),from:D("From"),park:D("Park"),at:D("at"),building:D("Building"),venue:D("Venue"),takeStaircaseToLevel:D("Take staircase to level"),takeLadderToLevel:D("Take the ladder to level"),takeElevatorToLevel:D("Take elevator to level"),takeEscalatorToLevel:D("Take escalator to level"),takeWheelchairLiftToLevel:D("Take wheelchair lift to level"),takeWheelchairRampToLevel:D("Take wheelchair ramp to level"),exit:D("Exit"),enter:D("Enter"),stops:D("stops"),andContinue:D("and continue"),continueStraightAhead:D("Continue straight ahead"),goLeft:D("Go left"),goSharpLeft:D("Go sharp left"),goSlightLeft:D("Go slight left"),goRight:D("Go right"),goSharpRight:D("Go sharp right"),goSlightRight:D("Go slight right"),turnAround:D("Turn around"),days:D("d"),hours:D("h"),minutes:D("min"),rideTheBus:D("Ride the bus")};return ye.useEffect(()=>{const{current:Ne}=I;function oe(){F(!0),P(!O)}return Ne.addEventListener("substepsToggled",oe),()=>{Ne.removeEventListener("substepsToggled",oe)}},[O]),Se.jsx("mi-route-instructions-step",{ref:I,"show-toggle-button":!Q,step:JSON.stringify(l[h]),translations:JSON.stringify(J),"destination-location":o==null?void 0:o.destinationLocation.properties.name,"from-travel-mode":(f==null?void 0:f.travel_mode)??"","from-route-context":(f==null?void 0:f.route_context)??((ae=_==null?void 0:_.properties)==null?void 0:ae.name)??""})});Lk.propTypes={totalSteps:at.array,activeStep:at.number,previous:at.object,originLocation:at.object,directions:at.object};const zk=ji({key:"isDestinationStep",default:!1});kk.propTypes={steps:at.array,onNextStep:at.func,onPreviousStep:at.func,originLocation:at.object,isOpen:at.bool};function kk({steps:e,onNextStep:t,onPreviousStep:i,originLocation:l,isOpen:h}){const{t:f}=$o(),_=up(),o=ye.useRef(),[I,D]=ye.useState(),[O,P]=Wn(ux),[F,Q]=ye.useState(),J=Mn(hp),ae=Mn(hx),[,Ne]=Wn(zk),oe=Wu();ye.useEffect(()=>{Q(e)},[e]),ye.useEffect(()=>{var se,ve;h&&(O===(F==null?void 0:F.length)-1&&(J!=null&&J.destinationLocation)?Ne(!0):Ne(!1),ae===!1?(se=o.current)==null||se.closeSubsteps():ae===!0&&((ve=o.current)==null||ve.openSubsteps()))},[h,O,F,ae]);function Z(){D(F[O]),P(O+1),t()}function W(){D(F[O-2]),P(O-1),i()}return Se.jsx("div",{className:"route-instructions prevent-scroll",..._,children:F&&Se.jsxs(Se.Fragment,{children:[Se.jsx(Lk,{totalSteps:F,activeStep:O,previous:I,directions:J,originLocation:l,ref:o}),Se.jsx("div",{className:`route-instructions__footer ${oe?"route-instructions__footer--kiosk":""}`,children:Se.jsxs("div",{className:"route-instructions__actions",children:[Se.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>W(),"aria-label":f("Previous"),disabled:O===0,children:Se.jsx(hJ,{})}),Se.jsx("div",{className:"route-instructions__overview",children:f("StepYofX",{activeStep:O+1,totalSteps:F.length})}),Se.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>Z(),"aria-label":f("Next"),disabled:O===F.length-1,children:Se.jsx(uJ,{})})]})})]})})}const k5=Object.freeze({minZoom:10});let es;O5.propTypes={isOpen:at.bool,onBack:at.func,onSetSize:at.func,onRouteFinished:at.func,snapPointSwipedByUser:at.string};function O5({isOpen:e,onBack:t,onSetSize:i,onRouteFinished:l,snapPointSwipedByUser:h}){var Y;const{t:f}=$o(),_=ye.useRef(),[o,I]=ye.useState(null),D=ye.useRef(null),[O,P]=ye.useState(),F=Mn(Es),Q=Mn(dp),J=Mn(hp),[,ae]=Wn(ux),[Ne,oe]=Wn(hx),Z=Mn(bl),W=Qs(),[,se]=Wn(lx),ve=Mn(zk),ue=Mn(Ta),Be=Wu(),$e=Mn(sx),Ue=Mn(xk),Fe=Mn(Zl),Ke=Mn(Gv),ct=Mn(ox),yt=Mn(Zu);ye.useEffect(()=>()=>{I(null)},[]),ye.useEffect(()=>{if(I(null),e&&J){P(J.totalTime);const q=Math.min(window.innerHeight,window.innerWidth)*.06;es==null||es.setRoute(null),es=null,Promise.all([Ht(q),_t(q)]).then(([ce,pe])=>{es=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:F,fitBounds:!Be,fitBoundsPadding:Be?void 0:{top:q,bottom:ce,left:pe,right:q}}),es.setRoute(J.directionsResult).then(()=>{es.setStepIndex(0)}),D.current.location=J.destinationLocation,J.destinationLocation.id==="USER_POSITION"?I(null):I(F.getDisplayRule(J.destinationLocation)),le(null)})}return()=>{es&&(es.setRoute(null),es=null),le(k5.minZoom)}},[e,J,F,Q,ct]);function Ht(q){return new Promise(ce=>{if(W)Z?_1().then(pe=>ce(pe)):ce(q);else return np().then(pe=>ce(pe))})}function _t(q){return new Promise(ce=>{W?Z?ce(q):Yu().then(pe=>ce(pe)):ce(q)})}ye.useEffect(()=>{!e&&es&&(Rt(),le(k5.minZoom))},[e]);function wt(){return J?J.directionsResult.legs.reduce((q,ce)=>{for(const pe in ce.steps){const fe=ce.steps[pe];q.push(fe)}return q},[]):[]}function Ft(){es&&es.nextStep()}function gt(){es&&es.previousStep()}function Rt(){es==null||es.setRoute(null),es=null}function H(){ae(0),oe(!1),L(Xi.FIT)}function le(q){var fe,we;const ce=(fe=F==null?void 0:F.getMapView)==null?void 0:fe.call(F),pe=(we=ce==null?void 0:ce.getMap)==null?void 0:we.call(ce);!F||!ce||!pe||(Ke==="mapbox"?pe.setMinZoom(q):Ke==="google"&&pe.setOptions({minZoom:q}))}function T(){H(),Rt(),t()}function L(q){typeof i=="function"&&i(q)}function $(){const q=`${Ue}&directionsFrom=${Z.id}&directionsTo=${Fe.id}`;se(q)}return ye.useEffect(()=>(_.current=requestAnimationFrame(()=>{L(Ne?Xi.MAX:Xi.FIT)}),()=>{_.current&&cancelAnimationFrame(_.current)}),[Ne]),ye.useEffect(()=>{e&&h&&oe(h===Xi.MAX)},[e,h]),Se.jsxs("div",{className:"directions",style:{display:Be?"block":"grid"},children:[Se.jsxs("div",{className:"directions__steps",children:[Se.jsx("div",{className:"directions__minutes",children:O&&Se.jsx("mi-time",{translations:JSON.stringify({days:f("d"),hours:f("h"),minutes:f("min")}),seconds:O})}),Se.jsx(kk,{steps:wt(),originLocation:J==null?void 0:J.originLocation,onNextStep:()=>Ft(),isOpen:e,onPreviousStep:()=>gt()})]}),Be&&Se.jsxs(Se.Fragment,{children:[Se.jsx("hr",{}),Se.jsxs("div",{className:"directions__kiosk",children:[Se.jsx(L5,{onAccessibilityChanged:()=>H()}),((Y=yt==null?void 0:yt.appSettings)==null?void 0:Y.includeTransitSelection)==="true"&&Se.jsx(Ek,{}),Se.jsxs("button",{className:"directions__qr-code",onClick:()=>$(),"aria-label":f("Scan QR code to view route on phone"),children:[Se.jsx(wk,{}),f("Scan QR code")]})]})]}),Se.jsxs("div",{className:"directions__actions",children:[Se.jsx("div",{className:"directions__details",children:(J==null?void 0:J.destinationLocation)&&Se.jsxs("div",{className:"directions__info",children:[o&&J.destinationLocation.id!=="USER_POSITION"&&Se.jsx("div",{className:"directions__icon",children:Se.jsx("img",{alt:"",src:o.icon.src?o.icon.src:o.icon})}),Se.jsxs("div",{className:"directions__content",children:[Se.jsx("div",{className:"directions__name",children:J==null?void 0:J.destinationLocation.properties.name}),Se.jsx("mi-location-info",{ref:D,"show-external-id":$e})]})]})}),ve?Se.jsx("button",{className:"directions__finish",onClick:()=>l(),style:{background:ue},children:f("Finish route")}):Se.jsx("button",{className:"directions__cancel",onClick:()=>T(),children:f("Cancel route")})]})]})}const mye="";let j5="";const Ok=()=>ye.useRef({getInitialMessage:()=>j5,setInitialMessage:t=>{j5=t||""},clearInitialMessage:()=>{j5=""}}).current,jk=ye.createContext(),dx="http://localhost:4000";function Pk({children:e,enabled:t}){const[i,l]=ye.useState(!1),[h,f]=ye.useState([]),[_,o]=ye.useState(null),I="",D=ye.useRef(null),O=ye.useRef(null),P=ye.useCallback(async ae=>{if(!D.current||O.current!==ae){if(D.current)try{await fetch(`${dx}/api/chat/end/${D.current}`,{method:"DELETE"})}catch(W){console.warn("Error ending previous session:",W)}const oe=await fetch(`${dx}/api/chat/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:ae})});if(!oe.ok){const W=await oe.json().catch(()=>({}));throw new Error(W.error||`Failed to create session: ${oe.status}`)}const{sessionId:Z}=await oe.json();D.current=Z,O.current=ae}return D.current},[]),F=ye.useCallback(async(ae,Ne,oe={})=>{if(t){l(!0),o(null);try{console.log("Generating response for prompt:",Ne);const Z=await P(ae),W=await fetch(`${dx}/api/chat/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:Z,message:Ne,extra:oe})});if(!W.ok){const $e=await W.json().catch(()=>({}));throw new Error($e.error||`HTTP error! status: ${W.status}`)}const{response:se,tools:ve,functionData:ue}=await W.json();let Be=[];if(ue)switch(ue==null?void 0:ue.key){case"single_location":Be=[ue.value];break;case"multiple_locations":Be=ue.value.filter(Boolean);break;case"directions":{const{originLocationId:$e,destinationLocationId:Ue}=ue.value;o({originLocationId:$e,destinationLocationId:Ue});break}default:break}return console.log("Search result IDs:",Be),f(Be),console.log(`Agent tool calls:
43
+ hot module replacement.`;console.warn(t)}}function jH(e){Uf.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&OH(e.key),rd.set(e.key,e);const t=e.set==null?new Vf.RecoilValueReadOnly(e.key):new Vf.RecoilState(e.key);return m4.set(e.key,t),t}class W6 extends Error{}function PH(e){const t=rd.get(e);if(t==null)throw new W6(`Missing definition for RecoilValue: "${e}""`);return t}function RH(e){return rd.get(e)}const av=new Map;function FH(e){var t;if(!no("recoil_memory_managament_2020"))return;const i=rd.get(e);if(i!=null&&(t=i.shouldDeleteConfigOnRelease)!==null&&t!==void 0&&t.call(i)){var l;rd.delete(e),(l=q6(e))===null||l===void 0||l(),av.delete(e)}}function BH(e,t){no("recoil_memory_managament_2020")&&(t===void 0?av.delete(e):av.set(e,t))}function q6(e){return av.get(e)}var ca={nodes:rd,recoilValues:m4,registerNode:jH,getNode:PH,getNodeMaybe:RH,deleteNodeConfigIfPossible:FH,setConfigDeletionHandler:BH,getConfigDeletionHandler:q6,recoilValuesForKeys:kH,NodeMissingError:W6,DefaultValue:Z6,DEFAULT_VALUE:zH};function UH(e,t){t()}var VH={enqueueExecution:UH};function HH(e,t){return t={exports:{}},e(t,t.exports),t.exports}var QH=HH(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(lt){return typeof lt}:function(lt){return lt&&typeof Symbol=="function"&&lt.constructor===Symbol&&lt!==Symbol.prototype?"symbol":typeof lt},i={},l=5,h=Math.pow(2,l),f=h-1,_=h/2,o=h/4,I={},D=function(it){return function(){return it}},O=i.hash=function(lt){var it=typeof lt>"u"?"undefined":t(lt);if(it==="number")return lt;it!=="string"&&(lt+="");for(var Qt=0,$t=0,tn=lt.length;$t<tn;++$t){var mn=lt.charCodeAt($t);Qt=(Qt<<5)-Qt+mn|0}return Qt},P=function(it){return it-=it>>1&1431655765,it=(it&858993459)+(it>>2&858993459),it=it+(it>>4)&252645135,it+=it>>8,it+=it>>16,it&127},F=function(it,Qt){return Qt>>>it&f},Q=function(it){return 1<<it},J=function(it,Qt){return P(it&Qt-1)},ae=function(it,Qt,$t,tn){var mn=tn;if(!it){var Nn=tn.length;mn=new Array(Nn);for(var Gn=0;Gn<Nn;++Gn)mn[Gn]=tn[Gn]}return mn[Qt]=$t,mn},Ne=function(it,Qt,$t){var tn=$t.length-1,mn=0,Nn=0,Gn=$t;if(it)mn=Nn=Qt;else for(Gn=new Array(tn);mn<Qt;)Gn[Nn++]=$t[mn++];for(++mn;mn<=tn;)Gn[Nn++]=$t[mn++];return it&&(Gn.length=tn),Gn},oe=function(it,Qt,$t,tn){var mn=tn.length;if(it){for(var Nn=mn;Nn>=Qt;)tn[Nn--]=tn[Nn];return tn[Qt]=$t,tn}for(var Gn=0,fi=0,ri=new Array(mn+1);Gn<Qt;)ri[fi++]=tn[Gn++];for(ri[Qt]=$t;Gn<mn;)ri[++fi]=tn[Gn++];return ri},Z=1,W=2,se=3,ve=4,ue={__hamt_isEmpty:!0},Be=function(it){return it===ue||it&&it.__hamt_isEmpty},$e=function(it,Qt,$t,tn){return{type:Z,edit:it,hash:Qt,key:$t,value:tn,_modify:gt}},Ue=function(it,Qt,$t){return{type:W,edit:it,hash:Qt,children:$t,_modify:Rt}},Fe=function(it,Qt,$t){return{type:se,edit:it,mask:Qt,children:$t,_modify:H}},Ke=function(it,Qt,$t){return{type:ve,edit:it,size:Qt,children:$t,_modify:le}},ct=function(it){return it===ue||it.type===Z||it.type===W},yt=function(it,Qt,$t,tn,mn){for(var Nn=[],Gn=tn,fi=0,ri=0;Gn;++ri)Gn&1&&(Nn[ri]=mn[fi++]),Gn>>>=1;return Nn[Qt]=$t,Ke(it,fi+1,Nn)},Ht=function(it,Qt,$t,tn){for(var mn=new Array(Qt-1),Nn=0,Gn=0,fi=0,ri=tn.length;fi<ri;++fi)if(fi!==$t){var Ii=tn[fi];Ii&&!Be(Ii)&&(mn[Nn++]=Ii,Gn|=1<<fi)}return Fe(it,Gn,mn)},_t=function lt(it,Qt,$t,tn,mn,Nn){if($t===mn)return Ue(it,$t,[Nn,tn]);var Gn=F(Qt,$t),fi=F(Qt,mn);return Fe(it,Q(Gn)|Q(fi),Gn===fi?[lt(it,Qt+l,$t,tn,mn,Nn)]:Gn<fi?[tn,Nn]:[Nn,tn])},wt=function(it,Qt,$t,tn,mn,Nn,Gn,fi){for(var ri=mn.length,Ii=0;Ii<ri;++Ii){var Lt=mn[Ii];if($t(Gn,Lt.key)){var Qi=Lt.value,_r=Nn(Qi);return _r===Qi?mn:_r===I?(--fi.value,Ne(it,Ii,mn)):ae(it,Ii,$e(Qt,tn,Gn,_r),mn)}}var br=Nn();return br===I?mn:(++fi.value,ae(it,ri,$e(Qt,tn,Gn,br),mn))},Ft=function(it,Qt){return it===Qt.edit},gt=function(it,Qt,$t,tn,mn,Nn,Gn){if(Qt(Nn,this.key)){var fi=tn(this.value);return fi===this.value?this:fi===I?(--Gn.value,ue):Ft(it,this)?(this.value=fi,this):$e(it,mn,Nn,fi)}var ri=tn();return ri===I?this:(++Gn.value,_t(it,$t,this.hash,this,mn,$e(it,mn,Nn,ri)))},Rt=function(it,Qt,$t,tn,mn,Nn,Gn){if(mn===this.hash){var fi=Ft(it,this),ri=wt(fi,it,Qt,this.hash,this.children,tn,Nn,Gn);return ri===this.children?this:ri.length>1?Ue(it,this.hash,ri):ri[0]}var Ii=tn();return Ii===I?this:(++Gn.value,_t(it,$t,this.hash,this,mn,$e(it,mn,Nn,Ii)))},H=function(it,Qt,$t,tn,mn,Nn,Gn){var fi=this.mask,ri=this.children,Ii=F($t,mn),Lt=Q(Ii),Qi=J(fi,Lt),_r=fi&Lt,br=_r?ri[Qi]:ue,Xe=br._modify(it,Qt,$t+l,tn,mn,Nn,Gn);if(br===Xe)return this;var te=Ft(it,this),de=fi,me=void 0;if(_r&&Be(Xe)){if(de&=~Lt,!de)return ue;if(ri.length<=2&&ct(ri[Qi^1]))return ri[Qi^1];me=Ne(te,Qi,ri)}else if(!_r&&!Be(Xe)){if(ri.length>=_)return yt(it,Ii,Xe,fi,ri);de|=Lt,me=oe(te,Qi,Xe,ri)}else me=ae(te,Qi,Xe,ri);return te?(this.mask=de,this.children=me,this):Fe(it,de,me)},le=function(it,Qt,$t,tn,mn,Nn,Gn){var fi=this.size,ri=this.children,Ii=F($t,mn),Lt=ri[Ii],Qi=(Lt||ue)._modify(it,Qt,$t+l,tn,mn,Nn,Gn);if(Lt===Qi)return this;var _r=Ft(it,this),br=void 0;if(Be(Lt)&&!Be(Qi))++fi,br=ae(_r,Ii,Qi,ri);else if(!Be(Lt)&&Be(Qi)){if(--fi,fi<=o)return Ht(it,fi,Ii,ri);br=ae(_r,Ii,ue,ri)}else br=ae(_r,Ii,Qi,ri);return _r?(this.size=fi,this.children=br,this):Ke(it,fi,br)};ue._modify=function(lt,it,Qt,$t,tn,mn,Nn){var Gn=$t();return Gn===I?ue:(++Nn.value,$e(lt,tn,mn,Gn))};function T(lt,it,Qt,$t,tn){this._editable=lt,this._edit=it,this._config=Qt,this._root=$t,this._size=tn}T.prototype.setTree=function(lt,it){return this._editable?(this._root=lt,this._size=it,this):lt===this._root?this:new T(this._editable,this._edit,this._config,lt,it)};var L=i.tryGetHash=function(lt,it,Qt,$t){for(var tn=$t._root,mn=0,Nn=$t._config.keyEq;;)switch(tn.type){case Z:return Nn(Qt,tn.key)?tn.value:lt;case W:{if(it===tn.hash)for(var Gn=tn.children,fi=0,ri=Gn.length;fi<ri;++fi){var Ii=Gn[fi];if(Nn(Qt,Ii.key))return Ii.value}return lt}case se:{var Lt=F(mn,it),Qi=Q(Lt);if(tn.mask&Qi){tn=tn.children[J(tn.mask,Qi)],mn+=l;break}return lt}case ve:{if(tn=tn.children[F(mn,it)],tn){mn+=l;break}return lt}default:return lt}};T.prototype.tryGetHash=function(lt,it,Qt){return L(lt,it,Qt,this)};var $=i.tryGet=function(lt,it,Qt){return L(lt,Qt._config.hash(it),it,Qt)};T.prototype.tryGet=function(lt,it){return $(lt,it,this)};var Y=i.getHash=function(lt,it,Qt){return L(void 0,lt,it,Qt)};T.prototype.getHash=function(lt,it){return Y(lt,it,this)},i.get=function(lt,it){return L(void 0,it._config.hash(lt),lt,it)},T.prototype.get=function(lt,it){return $(it,lt,this)};var q=i.has=function(lt,it,Qt){return L(I,lt,it,Qt)!==I};T.prototype.hasHash=function(lt,it){return q(lt,it,this)};var ce=i.has=function(lt,it){return q(it._config.hash(lt),lt,it)};T.prototype.has=function(lt){return ce(lt,this)};var pe=function(it,Qt){return it===Qt};i.make=function(lt){return new T(0,0,{keyEq:lt&&lt.keyEq||pe,hash:lt&&lt.hash||O},ue,0)},i.empty=i.make();var fe=i.isEmpty=function(lt){return lt&&!!Be(lt._root)};T.prototype.isEmpty=function(){return fe(this)};var we=i.modifyHash=function(lt,it,Qt,$t){var tn={value:$t._size},mn=$t._root._modify($t._editable?$t._edit:NaN,$t._config.keyEq,0,lt,it,Qt,tn);return $t.setTree(mn,tn.value)};T.prototype.modifyHash=function(lt,it,Qt){return we(Qt,lt,it,this)};var He=i.modify=function(lt,it,Qt){return we(lt,Qt._config.hash(it),it,Qt)};T.prototype.modify=function(lt,it){return He(it,lt,this)};var nt=i.setHash=function(lt,it,Qt,$t){return we(D(Qt),lt,it,$t)};T.prototype.setHash=function(lt,it,Qt){return nt(lt,it,Qt,this)};var Qe=i.set=function(lt,it,Qt){return nt(Qt._config.hash(lt),lt,it,Qt)};T.prototype.set=function(lt,it){return Qe(lt,it,this)};var tt=D(I),Ge=i.removeHash=function(lt,it,Qt){return we(tt,lt,it,Qt)};T.prototype.removeHash=T.prototype.deleteHash=function(lt,it){return Ge(lt,it,this)};var It=i.remove=function(lt,it){return Ge(it._config.hash(lt),lt,it)};T.prototype.remove=T.prototype.delete=function(lt){return It(lt,this)};var Mt=i.beginMutation=function(lt){return new T(lt._editable+1,lt._edit+1,lt._config,lt._root,lt._size)};T.prototype.beginMutation=function(){return Mt(this)};var At=i.endMutation=function(lt){return lt._editable=lt._editable&&lt._editable-1,lt};T.prototype.endMutation=function(){return At(this)};var Nt=i.mutate=function(lt,it){var Qt=Mt(it);return lt(Qt),At(Qt)};T.prototype.mutate=function(lt){return Nt(lt,this)};var hn=function(it){return it&&Jt(it[0],it[1],it[2],it[3],it[4])},Jt=function(it,Qt,$t,tn,mn){for(;$t<it;){var Nn=Qt[$t++];if(Nn&&!Be(Nn))return fn(Nn,tn,[it,Qt,$t,tn,mn])}return hn(mn)},fn=function(it,Qt,$t){switch(it.type){case Z:return{value:Qt(it),rest:$t};case W:case ve:case se:var tn=it.children;return Jt(tn.length,tn,0,Qt,$t);default:return hn($t)}},Xt={done:!0};function xn(lt){this.v=lt}xn.prototype.next=function(){if(!this.v)return Xt;var lt=this.v;return this.v=hn(lt.rest),lt},xn.prototype[Symbol.iterator]=function(){return this};var kn=function(it,Qt){return new xn(fn(it._root,Qt))},vt=function(it){return[it.key,it.value]},ft=i.entries=function(lt){return kn(lt,vt)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return ft(this)};var Sn=function(it){return it.key},In=i.keys=function(lt){return kn(lt,Sn)};T.prototype.keys=function(){return In(this)};var Ln=function(it){return it.value},hi=i.values=T.prototype.values=function(lt){return kn(lt,Ln)};T.prototype.values=function(){return hi(this)};var ci=i.fold=function(lt,it,Qt){var $t=Qt._root;if($t.type===Z)return lt(it,$t.value,$t.key);for(var tn=[$t.children],mn=void 0;mn=tn.pop();)for(var Nn=0,Gn=mn.length;Nn<Gn;){var fi=mn[Nn++];fi&&fi.type&&(fi.type===Z?it=lt(it,fi.value,fi.key):tn.push(fi.children))}return it};T.prototype.fold=function(lt,it){return ci(lt,it,this)};var Wt=i.forEach=function(lt,it){return ci(function(Qt,$t,tn){return lt($t,tn,it)},null,it)};T.prototype.forEach=function(lt){return Wt(lt,this)};var Vn=i.count=function(lt){return lt._size};T.prototype.count=function(){return Vn(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=i:(void 0).hamt=i});class $H{constructor(t){cr(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 _4(this)}toMap(){return new Map(this._map)}}class y4{constructor(t){if(cr(this,"_hamt",QH.empty.beginMutation()),t instanceof y4){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 _4(this)}toMap(){return new Map(this._hamt)}}function _4(e){return no("recoil_hamt_2020")?new y4(e):new $H(e)}var YH={persistentMap:_4},GH=YH.persistentMap,ZH=Object.freeze({__proto__:null,persistentMap:GH});function WH(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 e1=WH;function qH(e,t){const i=new Map;return e.forEach((l,h)=>{i.set(h,t(l,h))}),i}var lv=qH;function KH(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function XH(e){return{nodeDeps:lv(e.nodeDeps,t=>new Set(t)),nodeToNodeSubscriptions:lv(e.nodeToNodeSubscriptions,t=>new Set(t))}}function v4(e,t,i,l){const{nodeDeps:h,nodeToNodeSubscriptions:f}=i,_=h.get(e);if(_&&l&&_!==l.nodeDeps.get(e))return;h.set(e,t);const o=_==null?t:e1(t,_);for(const I of o)f.has(I)||f.set(I,new Set),vo(f.get(I)).add(e);if(_){const I=e1(_,t);for(const D of I){if(!f.has(D))return;const O=vo(f.get(D));O.delete(e),O.size===0&&f.delete(D)}}}function JH(e,t,i,l){var h,f,_,o;const I=i.getState();l===I.currentTree.version||l===((h=I.nextTree)===null||h===void 0?void 0:h.version)||((f=I.previousTree)===null||f===void 0||f.version);const D=i.getGraph(l);if(v4(e,t,D),l===((_=I.previousTree)===null||_===void 0?void 0:_.version)){const P=i.getGraph(I.currentTree.version);v4(e,t,P,D)}if(l===((o=I.previousTree)===null||o===void 0?void 0:o.version)||l===I.currentTree.version){var O;const P=(O=I.nextTree)===null||O===void 0?void 0:O.version;if(P!==void 0){const F=i.getGraph(P);v4(e,t,F,D)}}}var t1={cloneGraph:XH,graph:KH,saveDepsToStore:JH};let eQ=0;const tQ=()=>eQ++;let nQ=0;const iQ=()=>nQ++;let rQ=0;var cv={getNextTreeStateVersion:tQ,getNextStoreID:iQ,getNextComponentID:()=>rQ++};const{persistentMap:K6}=ZH,{graph:oQ}=t1,{getNextTreeStateVersion:X6}=cv;function J6(){const e=X6();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:K6(),nonvalidatedAtoms:K6()}}function sQ(){const e=J6();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,oQ()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var eN={makeEmptyTreeState:J6,makeEmptyStoreState:sQ,getNextTreeStateVersion:X6};class tN{}function aQ(){return new tN}var uv={RetentionZone:tN,retentionZone:aQ};function lQ(e,t){const i=new Set(e);return i.add(t),i}function cQ(e,t){const i=new Set(e);return i.delete(t),i}function uQ(e,t,i){const l=new Map(e);return l.set(t,i),l}function hQ(e,t,i){const l=new Map(e);return l.set(t,i(l.get(t))),l}function dQ(e,t){const i=new Map(e);return i.delete(t),i}function fQ(e,t){const i=new Map(e);return t.forEach(l=>i.delete(l)),i}var nN={setByAddingToSet:lQ,setByDeletingFromSet:cQ,mapBySettingInMap:uQ,mapByUpdatingInMap:hQ,mapByDeletingFromMap:dQ,mapByDeletingMultipleFromMap:fQ};function*pQ(e,t){let i=0;for(const l of e)t(l,i++)&&(yield l)}var x4=pQ;function gQ(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 iN=gQ;const{getNode:n1,getNodeMaybe:mQ,recoilValuesForKeys:rN}=ca,{RetentionZone:oN}=uv,{setByAddingToSet:yQ}=nN,_Q=Object.freeze(new Set);class vQ extends Error{}function xQ(e,t,i){if(!no("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:l}=e.getState().retention;function h(f){let _=l.get(f);_||l.set(f,_=new Set),_.add(t)}if(i instanceof oN)h(i);else if(Array.isArray(i))for(const f of i)h(f);return()=>{if(!no("recoil_memory_managament_2020"))return;const{retention:f}=e.getState();function _(o){const I=f.nodesRetainedByZone.get(o);I==null||I.delete(t),I&&I.size===0&&f.nodesRetainedByZone.delete(o)}if(i instanceof oN)_(i);else if(Array.isArray(i))for(const o of i)_(o)}}function w4(e,t,i,l){const h=e.getState();if(h.nodeCleanupFunctions.has(i))return;const f=n1(i),_=xQ(e,i,f.retainedBy),o=f.init(e,t,l);h.nodeCleanupFunctions.set(i,()=>{o(),_()})}function wQ(e,t,i){w4(e,e.getState().currentTree,t,i)}function bQ(e,t){var i;const l=e.getState();(i=l.nodeCleanupFunctions.get(t))===null||i===void 0||i(),l.nodeCleanupFunctions.delete(t)}function MQ(e,t,i){return w4(e,t,i,"get"),n1(i).get(e,t)}function sN(e,t,i){return n1(i).peek(e,t)}function IQ(e,t,i){var l;const h=mQ(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:yQ(e.dirtyAtoms,t)}}function TQ(e,t,i,l){const h=n1(i);if(h.set==null)throw new vQ(`Attempt to set read-only RecoilValue: ${i}`);const f=h.set;return w4(e,t,i,"set"),f(e,t,l)}function SQ(e,t,i){const l=e.getState(),h=e.getGraph(t.version),f=n1(i).nodeType;return iN({type:f},{loadable:()=>sN(e,t,i),isActive:()=>l.knownAtoms.has(i)||l.knownSelectors.has(i),isSet:()=>f==="selector"?!1:t.atomValues.has(i),isModified:()=>t.dirtyAtoms.has(i),deps:()=>{var _;return rN((_=h.nodeDeps.get(i))!==null&&_!==void 0?_:[])},subscribers:()=>{var _,o;return{nodes:rN(x4(aN(e,t,new Set([i])),I=>I!==i)),components:sv((_=(o=l.nodeToComponentSubscriptions.get(i))===null||o===void 0?void 0:o.values())!==null&&_!==void 0?_:[],([I])=>({name:I}))}}})}function aN(e,t,i){const l=new Set,h=Array.from(i),f=e.getGraph(t.version);for(let o=h.pop();o;o=h.pop()){var _;l.add(o);const I=(_=f.nodeToNodeSubscriptions.get(o))!==null&&_!==void 0?_:_Q;for(const D of I)l.has(D)||h.push(D)}return l}var Vu={getNodeLoadable:MQ,peekNodeLoadable:sN,setNodeValue:TQ,initializeNode:wQ,cleanUpNode:bQ,setUnvalidatedAtomValue_DEPRECATED:IQ,peekNodeInfo:SQ,getDownstreamNodes:aN};let lN=null;function CQ(e){lN=e}function DQ(){var e;(e=lN)===null||e===void 0||e()}var cN={setInvalidateMemoizedSnapshot:CQ,invalidateMemoizedSnapshot:DQ};const{getDownstreamNodes:AQ,getNodeLoadable:uN,setNodeValue:EQ}=Vu,{getNextComponentID:NQ}=cv,{getNode:LQ,getNodeMaybe:hN}=ca,{DefaultValue:b4}=ca,{reactMode:zQ}=Jm,{AbstractRecoilValue:kQ,RecoilState:OQ,RecoilValueReadOnly:jQ,isRecoilValue:PQ}=Vf,{invalidateMemoizedSnapshot:RQ}=cN;function FQ(e,{key:t},i=e.getState().currentTree){var l,h;const f=e.getState();i.version===f.currentTree.version||i.version===((l=f.nextTree)===null||l===void 0?void 0:l.version)||(i.version,(h=f.previousTree)===null||h===void 0||h.version);const _=uN(e,i,t);return _.state==="loading"&&_.contents.catch(()=>{}),_}function BQ(e,t){const i=e.clone();return t.forEach((l,h)=>{l.state==="hasValue"&&l.contents instanceof b4?i.delete(h):i.set(h,l)}),i}function UQ(e,t,{key:i},l){if(typeof l=="function"){const h=uN(e,t,i);if(h.state==="loading"){const f=`Tried to set atom or selector "${i}" using an updater function while the current state is pending, this is not currently supported.`;throw pr(f)}else if(h.state==="hasError")throw h.contents;return l(h.contents)}else return l}function VQ(e,t,i){if(i.type==="set"){const{recoilValue:h,valueOrUpdater:f}=i,_=UQ(e,t,h,f),o=EQ(e,t,h.key,_);for(const[I,D]of o.entries())M4(t,I,D)}else if(i.type==="setLoadable"){const{recoilValue:{key:h},loadable:f}=i;M4(t,h,f)}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:f}=i,_=hN(h);_==null||(l=_.invalidate)===null||l===void 0||l.call(_,t),t.atomValues.delete(h),t.nonvalidatedAtoms.set(h,f),t.dirtyAtoms.add(h)}else h4(`Unknown action ${i.type}`)}function M4(e,t,i){i.state==="hasValue"&&i.contents instanceof b4?e.atomValues.delete(t):e.atomValues.set(t,i),e.dirtyAtoms.add(t),e.nonvalidatedAtoms.delete(t)}function dN(e,t){e.replaceState(i=>{const l=fN(i);for(const h of t)VQ(e,l,h);return pN(e,l),RQ(),l})}function hv(e,t){if(i1.length){const i=i1[i1.length-1];let l=i.get(e);l||i.set(e,l=[]),l.push(t)}else dN(e,[t])}const i1=[];function HQ(){const e=new Map;return i1.push(e),()=>{for(const[t,i]of e)dN(t,i);i1.pop()}}function fN(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function pN(e,t){const i=AQ(e,t,t.dirtyAtoms);for(const f of i){var l,h;(l=hN(f))===null||l===void 0||(h=l.invalidate)===null||h===void 0||h.call(l,t)}}function gN(e,t,i){hv(e,{type:"set",recoilValue:t,valueOrUpdater:i})}function QQ(e,t,i){if(i instanceof b4)return gN(e,t,i);hv(e,{type:"setLoadable",recoilValue:t,loadable:i})}function $Q(e,t){hv(e,{type:"markModified",recoilValue:t})}function YQ(e,t,i){hv(e,{type:"setUnvalidated",recoilValue:t,unvalidatedValue:i})}function GQ(e,{key:t},i,l=null){const h=NQ(),f=e.getState();f.nodeToComponentSubscriptions.has(t)||f.nodeToComponentSubscriptions.set(t,new Map),vo(f.nodeToComponentSubscriptions.get(t)).set(h,[l??"<not captured>",i]);const _=zQ();if(_.early&&(_.mode==="LEGACY"||_.mode==="MUTABLE_SOURCE")){const o=e.getState().nextTree;o&&o.dirtyAtoms.has(t)&&i(o)}return{release:()=>{const o=e.getState(),I=o.nodeToComponentSubscriptions.get(t);I===void 0||!I.has(h)||(I.delete(h),I.size===0&&o.nodeToComponentSubscriptions.delete(t))}}}function ZQ(e,t){var i;const{currentTree:l}=e.getState(),h=LQ(t.key);(i=h.clearCache)===null||i===void 0||i.call(h,e,l)}var Hl={RecoilValueReadOnly:jQ,AbstractRecoilValue:kQ,RecoilState:OQ,getRecoilValueAsLoadable:FQ,setRecoilValue:gN,setRecoilValueLoadable:QQ,markRecoilValueModified:$Q,setUnvalidatedRecoilValue:YQ,subscribeToRecoilValue:GQ,isRecoilValue:PQ,applyAtomValueWrites:BQ,batchStart:HQ,writeLoadableToTreeState:M4,invalidateDownstreams:pN,copyTreeState:fN,refreshRecoilValue:ZQ};function WQ(e,t,i){const l=e.entries();let h=l.next();for(;!h.done;){const f=h.value;if(t.call(i,f[1],f[0],e))return!0;h=l.next()}return!1}var qQ=WQ;const{cleanUpNode:KQ}=Vu,{deleteNodeConfigIfPossible:XQ,getNode:mN}=ca,{RetentionZone:yN}=uv,JQ=12e4,_N=new Set;function vN(e,t){const i=e.getState(),l=i.currentTree;if(i.nextTree)return;const h=new Set;for(const _ of t)if(_ instanceof yN)for(const o of i$(i,_))h.add(o);else h.add(_);const f=e$(e,h);for(const _ of f)n$(e,l,_)}function e$(e,t){const i=e.getState(),l=i.currentTree,h=e.getGraph(l.version),f=new Set,_=new Set;return o(t),f;function o(I){const D=new Set,O=t$(e,l,I,f,_);for(const J of O){var P;if(mN(J).retainedBy==="recoilRoot"){_.add(J);continue}if(((P=i.retention.referenceCounts.get(J))!==null&&P!==void 0?P:0)>0){_.add(J);continue}if(xN(J).some(Ne=>i.retention.referenceCounts.get(Ne))){_.add(J);continue}const ae=h.nodeToNodeSubscriptions.get(J);if(ae&&qQ(ae,Ne=>_.has(Ne))){_.add(J);continue}f.add(J),D.add(J)}const F=new Set;for(const J of D)for(const ae of(Q=h.nodeDeps.get(J))!==null&&Q!==void 0?Q:_N){var Q;f.has(ae)||F.add(ae)}F.size&&o(F)}}function t$(e,t,i,l,h){const f=e.getGraph(t.version),_=[],o=new Set;for(;i.size>0;)I(vo(i.values().next().value));return _;function I(D){if(l.has(D)||h.has(D)){i.delete(D);return}if(o.has(D))return;const O=f.nodeToNodeSubscriptions.get(D);if(O)for(const P of O)I(P);o.add(D),i.delete(D),_.push(D)}}function n$(e,t,i){if(!no("recoil_memory_managament_2020"))return;KQ(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=xN(i);for(const I of h){var f;(f=l.retention.nodesRetainedByZone.get(I))===null||f===void 0||f.delete(i)}t.atomValues.delete(i),t.dirtyAtoms.delete(i),t.nonvalidatedAtoms.delete(i);const _=l.graphsByVersion.get(t.version);if(_){const I=_.nodeDeps.get(i);if(I!==void 0){_.nodeDeps.delete(i);for(const D of I){var o;(o=_.nodeToNodeSubscriptions.get(D))===null||o===void 0||o.delete(i)}}_.nodeToNodeSubscriptions.delete(i)}XQ(i)}function i$(e,t){var i;return(i=e.retention.nodesRetainedByZone.get(t))!==null&&i!==void 0?i:_N}function xN(e){const t=mN(e).retainedBy;return t===void 0||t==="components"||t==="recoilRoot"?[]:t instanceof yN?[t]:t}function r$(e,t){const i=e.getState();i.nextTree?i.retention.retainablesToCheckForRelease.add(t):vN(e,new Set([t]))}function o$(e,t,i){var l;if(!no("recoil_memory_managament_2020"))return;const h=e.getState().retention.referenceCounts,f=((l=h.get(t))!==null&&l!==void 0?l:0)+i;f===0?wN(e,t):h.set(t,f)}function wN(e,t){if(!no("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(t),r$(e,t)}function s$(e){if(!no("recoil_memory_managament_2020"))return;const t=e.getState();vN(e,t.retention.retainablesToCheckForRelease),t.retention.retainablesToCheckForRelease.clear()}function a$(e){return e===void 0?"recoilRoot":e}var od={SUSPENSE_TIMEOUT_MS:JQ,updateRetainCount:o$,updateRetainCountToZero:wN,releaseScheduledRetainablesNow:s$,retainedByOptionWithDefault:a$};const{unstable_batchedUpdates:l$}=qm;var c$={unstable_batchedUpdates:l$};const{unstable_batchedUpdates:u$}=c$;var h$={unstable_batchedUpdates:u$};const{batchStart:d$}=Hl,{unstable_batchedUpdates:f$}=h$;let I4=f$||(e=>e());var dv={getBatcher:()=>I4,setBatcher:e=>{I4=e},batchUpdates:e=>{I4(()=>{let t=()=>{};try{t=d$(),e()}finally{t()}})}};function*p$(e){for(const t of e)for(const i of t)yield i}var bN=p$;const MN=typeof Window>"u"||typeof window>"u",g$=e=>!MN&&(e===window||e instanceof Window),m$=typeof navigator<"u"&&navigator.product==="ReactNative";var fv={isSSR:MN,isReactNative:m$,isWindow:g$};function y$(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 _$(e,t){let i,l;return(...h)=>{const f=t(...h);return i===f||(i=f,l=e(...h)),l}}function v$(e,t){let i,l;return[(..._)=>{const o=t(..._);return i===o||(i=o,l=e(..._)),l},()=>{i=null}]}var x$={memoizeWithArgsHash:y$,memoizeOneWithArgsHash:_$,memoizeOneWithArgsHashAndInvalidation:v$};const{batchUpdates:T4}=dv,{initializeNode:w$,peekNodeInfo:b$}=Vu,{graph:M$}=t1,{getNextStoreID:I$}=cv,{DEFAULT_VALUE:T$,recoilValues:IN,recoilValuesForKeys:TN}=ca,{AbstractRecoilValue:S$,getRecoilValueAsLoadable:C$,setRecoilValue:SN,setUnvalidatedRecoilValue:D$}=Hl,{updateRetainCount:pv}=od,{setInvalidateMemoizedSnapshot:A$}=cN,{getNextTreeStateVersion:E$,makeEmptyStoreState:N$}=eN,{isSSR:L$}=fv,{memoizeOneWithArgsHashAndInvalidation:z$}=x$;class gv{constructor(t,i){cr(this,"_store",void 0),cr(this,"_refCount",1),cr(this,"getLoadable",l=>(this.checkRefCount_INTERNAL(),C$(this._store,l))),cr(this,"getPromise",l=>(this.checkRefCount_INTERNAL(),this.getLoadable(l).toPromise())),cr(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 _=this._store.getState().currentTree;return TN(_.dirtyAtoms)}const h=this._store.getState().knownAtoms,f=this._store.getState().knownSelectors;return(l==null?void 0:l.isInitialized)==null?IN.values():l.isInitialized===!0?TN(bN([h,f])):x4(IN.values(),({key:_})=>!h.has(_)&&!f.has(_))}),cr(this,"getInfo_UNSTABLE",({key:l})=>(this.checkRefCount_INTERNAL(),b$(this._store,this._store.getState().currentTree,l))),cr(this,"map",l=>{this.checkRefCount_INTERNAL();const h=new S4(this,T4);return l(h),h}),cr(this,"asyncMap",async l=>{this.checkRefCount_INTERNAL();const h=new S4(this,T4);return h.retain(),await l(h),h.autoRelease_INTERNAL(),h}),this._store={storeID:I$(),parentStoreID:i,getState:()=>t,replaceState:l=>{t.currentTree=l(t.currentTree)},getGraph:l=>{const h=t.graphsByVersion;if(h.has(l))return vo(h.get(l));const f=M$();return h.set(l,f),f},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw pr("Cannot subscribe to Snapshots")}};for(const l of this._store.getState().knownAtoms)w$(this._store,l,"get"),pv(this._store,l,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let t=!1;return()=>{t||(t=!0,this._release())}}autoRelease_INTERNAL(){L$||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(),!no("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){no("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 CN(e,t,i=!1){const l=e.getState(),h=i?E$():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(sv(l.nodeCleanupFunctions.entries(),([f])=>[f,()=>{}]))}}function k$(e){const t=new gv(N$());return e!=null?t.map(e):t}const[DN,AN]=z$((e,t)=>{var i;const l=e.getState(),h=t==="latest"?(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree:vo(l.previousTree);return new gv(CN(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)});A$(AN);function O$(e,t="latest"){const i=DN(e,t);return i.isRetained()?i:(AN(),DN(e,t))}class S4 extends gv{constructor(t,i){super(CN(t.getStore_INTERNAL(),t.getStore_INTERNAL().getState().currentTree,!0),t.getStoreID()),cr(this,"_batch",void 0),cr(this,"set",(l,h)=>{this.checkRefCount_INTERNAL();const f=this.getStore_INTERNAL();this._batch(()=>{pv(f,l.key,1),SN(this.getStore_INTERNAL(),l,h)})}),cr(this,"reset",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();this._batch(()=>{pv(h,l.key,1),SN(this.getStore_INTERNAL(),l,T$)})}),cr(this,"setUnvalidatedAtomValues_DEPRECATED",l=>{this.checkRefCount_INTERNAL();const h=this.getStore_INTERNAL();T4(()=>{for(const[f,_]of l.entries())pv(h,f,1),D$(h,new S$(f),_)})}),this._batch=i}}var mv={Snapshot:gv,MutableSnapshot:S4,freshSnapshot:k$,cloneSnapshot:O$},j$=mv.Snapshot,P$=mv.MutableSnapshot,R$=mv.freshSnapshot,F$=mv.cloneSnapshot,yv=Object.freeze({__proto__:null,Snapshot:j$,MutableSnapshot:P$,freshSnapshot:R$,cloneSnapshot:F$});function B$(...e){const t=new Set;for(const i of e)for(const l of i)t.add(l);return t}var U$=B$;const{useRef:V$}=Lr;function H$(e){const t=V$(e);return t.current===e&&typeof e=="function"&&(t.current=e()),t}var EN=H$;const{getNextTreeStateVersion:Q$,makeEmptyStoreState:NN}=eN,{cleanUpNode:$$,getDownstreamNodes:Y$,initializeNode:G$,setNodeValue:Z$,setUnvalidatedAtomValue_DEPRECATED:W$}=Vu,{graph:q$}=t1,{cloneGraph:K$}=t1,{getNextStoreID:LN}=cv,{createMutableSource:C4,reactMode:zN}=Jm,{applyAtomValueWrites:X$}=Hl,{releaseScheduledRetainablesNow:kN}=od,{freshSnapshot:J$}=yv,{useCallback:eY,useContext:ON,useEffect:D4,useMemo:tY,useRef:nY,useState:iY}=Lr;function r1(){throw pr("This component must be used inside a <RecoilRoot> component.")}const jN=Object.freeze({storeID:LN(),getState:r1,replaceState:r1,getGraph:r1,subscribeToTransactions:r1,addTransactionMetadata:r1});let A4=!1;function PN(e){if(A4)throw pr("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){no("recoil_memory_managament_2020")&&no("recoil_release_on_cascading_update_killswitch_2021")&&t.commitDepth>0&&kN(e);const i=t.currentTree.version,l=Q$();t.nextTree={...t.currentTree,version:l,stateID:l,dirtyAtoms:new Set,transactionMetadata:{}},t.graphsByVersion.set(l,K$(vo(t.graphsByVersion.get(i))))}}const RN=Lr.createContext({current:jN}),_v=()=>ON(RN),FN=Lr.createContext(null);function rY(){return ON(FN)}function E4(e,t,i){const l=Y$(e,i,i.dirtyAtoms);for(const h of l){const f=t.nodeToComponentSubscriptions.get(h);if(f)for(const[_,[o,I]]of f)I(i)}}function BN(e){const t=e.getState(),i=t.currentTree,l=i.dirtyAtoms;if(l.size){for(const[h,f]of t.nodeTransactionSubscriptions)if(l.has(h))for(const[_,o]of f)o(e);for(const[h,f]of t.transactionSubscriptions)f(e);(!zN().early||t.suspendedComponentResolvers.size>0)&&(E4(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 oY(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,BN(e),t.previousTree!=null?t.graphsByVersion.delete(t.previousTree.version):h4("Ended batch with no previous state, which is unexpected","recoil"),t.previousTree=null,no("recoil_memory_managament_2020")&&i==null&&kN(e)}finally{t.commitDepth--}}function sY({setNotifyBatcherOfChange:e}){const t=_v(),[,i]=iY([]);return e(()=>i({})),D4(()=>(e(()=>i({})),()=>{e(()=>{})}),[e]),D4(()=>{VH.enqueueExecution("Batcher",()=>{oY(t.current)})}),null}function aY(e,t){const i=NN();return t({set:(l,h)=>{const f=i.currentTree,_=Z$(e,f,l.key,h),o=new Set(_.keys()),I=f.nonvalidatedAtoms.clone();for(const D of o)I.delete(D);i.currentTree={...f,dirtyAtoms:U$(f.dirtyAtoms,o),atomValues:X$(f.atomValues,_),nonvalidatedAtoms:I}},setUnvalidatedAtomValues:l=>{l.forEach((h,f)=>{i.currentTree=W$(i.currentTree,f,h)})}}),i}function lY(e){const t=J$(e),i=t.getStore_INTERNAL().getState();return t.retain(),i.nodeCleanupFunctions.forEach(l=>l()),i.nodeCleanupFunctions.clear(),i}let UN=0;function cY({initializeState_DEPRECATED:e,initializeState:t,store_INTERNAL:i,children:l}){let h;const f=Q=>{const J=h.current.graphsByVersion;if(J.has(Q))return vo(J.get(Q));const ae=q$();return J.set(Q,ae),ae},_=(Q,J)=>{if(J==null){const{transactionSubscriptions:ae}=P.current.getState(),Ne=UN++;return ae.set(Ne,Q),{release:()=>{ae.delete(Ne)}}}else{const{nodeTransactionSubscriptions:ae}=P.current.getState();ae.has(J)||ae.set(J,new Map);const Ne=UN++;return vo(ae.get(J)).set(Ne,Q),{release:()=>{const oe=ae.get(J);oe&&(oe.delete(Ne),oe.size===0&&ae.delete(J))}}}},o=Q=>{PN(P.current);for(const J of Object.keys(Q))vo(P.current.getState().nextTree).transactionMetadata[J]=Q[J]},I=Q=>{PN(P.current);const J=vo(h.current.nextTree);let ae;try{A4=!0,ae=Q(J)}finally{A4=!1}ae!==J&&(h.current.nextTree=ae,zN().early&&E4(P.current,h.current,ae),vo(D.current)())},D=nY(null),O=eY(Q=>{D.current=Q},[D]),P=EN(()=>i??{storeID:LN(),getState:()=>h.current,replaceState:I,getGraph:f,subscribeToTransactions:_,addTransactionMetadata:o});i!=null&&(P.current=i),h=EN(()=>e!=null?aY(P.current,e):t!=null?lY(t):NN());const F=tY(()=>C4==null?void 0:C4(h,()=>h.current.currentTree.version),[h]);return D4(()=>{const Q=P.current;for(const J of new Set(Q.getState().knownAtoms))G$(Q,J,"get");return()=>{for(const J of Q.getState().knownAtoms)$$(Q,J)}},[P]),Lr.createElement(RN.Provider,{value:P},Lr.createElement(FN.Provider,{value:F},Lr.createElement(sY,{setNotifyBatcherOfChange:O}),l))}function uY(e){const{override:t,...i}=e,l=_v();return t===!1&&l.current!==jN?e.children:Lr.createElement(cY,i)}function hY(){return _v().current.storeID}var Bc={RecoilRoot:uY,useStoreRef:_v,useRecoilMutableSource:rY,useRecoilStoreID:hY,notifyComponents_FOR_TESTING:E4,sendEndOfBatchNotifications_FOR_TESTING:BN};function dY(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 fY=dY;const{useEffect:pY,useRef:gY}=Lr;function mY(e){const t=gY();return pY(()=>{t.current=e}),t.current}var VN=mY;const{useStoreRef:yY}=Bc,{SUSPENSE_TIMEOUT_MS:_Y}=od,{updateRetainCount:o1}=od,{RetentionZone:vY}=uv,{useEffect:xY,useRef:wY}=Lr,{isSSR:HN}=fv;function bY(e){if(no("recoil_memory_managament_2020"))return MY(e)}function MY(e){const i=(Array.isArray(e)?e:[e]).map(_=>_ instanceof vY?_:_.key),l=yY();xY(()=>{if(!no("recoil_memory_managament_2020"))return;const _=l.current;if(h.current&&!HN)window.clearTimeout(h.current),h.current=null;else for(const o of i)o1(_,o,1);return()=>{for(const o of i)o1(_,o,-1)}},[l,...i]);const h=wY(),f=VN(i);if(!HN&&(f===void 0||!fY(f,i))){const _=l.current;for(const o of i)o1(_,o,1);if(f)for(const o of f)o1(_,o,-1);h.current&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null;for(const o of i)o1(_,o,-1)},_Y)}}var N4=bY;function IY(){return"<component name not available>"}var s1=IY;const{batchUpdates:TY}=dv,{DEFAULT_VALUE:QN}=ca,{currentRendererSupportsUseSyncExternalStore:SY,reactMode:Hf,useMutableSource:CY,useSyncExternalStore:DY}=Jm,{useRecoilMutableSource:AY,useStoreRef:Ql}=Bc,{AbstractRecoilValue:L4,getRecoilValueAsLoadable:a1,setRecoilValue:vv,setUnvalidatedRecoilValue:EY,subscribeToRecoilValue:Qf}=Hl,{useCallback:ua,useEffect:$f,useMemo:$N,useRef:l1,useState:z4}=Lr,{setByAddingToSet:NY}=nN,{isSSR:LY}=fv;function k4(e,t,i){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(h=>{const f=i.current.getState().suspendedComponentResolvers;f.add(h),LY&&go(e.contents)&&e.contents.finally(()=>{f.delete(h)})}):e.state==="hasError"?e.contents:pr(`Invalid value of loadable atom "${t.key}"`)}function zY(){const e=s1(),t=Ql(),[,i]=z4([]),l=l1(new Set);l.current=new Set;const h=l1(new Set),f=l1(new Map),_=ua(I=>{const D=f.current.get(I);D&&(D.release(),f.current.delete(I))},[f]),o=ua((I,D)=>{f.current.has(D)&&i([])},[]);return $f(()=>{const I=t.current;e1(l.current,h.current).forEach(D=>{if(f.current.has(D))return;const O=Qf(I,new L4(D),F=>o(F,D),e);f.current.set(D,O),I.getState().nextTree?I.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{o(I.getState(),D)}):o(I.getState(),D)}),e1(h.current,l.current).forEach(D=>{_(D)}),h.current=l.current}),$f(()=>{const I=f.current;return e1(l.current,new Set(I.keys())).forEach(D=>{const O=Qf(t.current,new L4(D),P=>o(P,D),e);I.set(D,O)}),()=>I.forEach((D,O)=>_(O))},[e,t,_,o]),$N(()=>{function I(J){return ae=>{vv(t.current,J,ae)}}function D(J){return()=>vv(t.current,J,QN)}function O(J){var ae;l.current.has(J.key)||(l.current=NY(l.current,J.key));const Ne=t.current.getState();return a1(t.current,J,Hf().early&&(ae=Ne.nextTree)!==null&&ae!==void 0?ae:Ne.currentTree)}function P(J){const ae=O(J);return k4(ae,J,t)}function F(J){return[P(J),I(J)]}function Q(J){return[O(J),I(J)]}return{getRecoilValue:P,getRecoilValueLoadable:O,getRecoilState:F,getRecoilStateLoadable:Q,getSetRecoilState:I,getResetRecoilState:D}},[l,t])}const kY={current:0};function OY(e){const t=Ql(),i=s1(),l=ua(()=>{var o;const I=t.current,D=I.getState(),O=Hf().early&&(o=D.nextTree)!==null&&o!==void 0?o:D.currentTree;return{loadable:a1(I,e,O),key:e.key}},[t,e]),h=ua(o=>{let I;return()=>{var D,O;const P=o();return(D=I)!==null&&D!==void 0&&D.loadable.is(P.loadable)&&((O=I)===null||O===void 0?void 0:O.key)===P.key?I:(I=P,P)}},[]),f=$N(()=>h(l),[l,h]),_=ua(o=>{const I=t.current;return Qf(I,e,o,i).release},[t,e,i]);return DY(_,f,f).loadable}function jY(e){const t=Ql(),i=ua(()=>{var D;const O=t.current,P=O.getState(),F=Hf().early&&(D=P.nextTree)!==null&&D!==void 0?D:P.currentTree;return a1(O,e,F)},[t,e]),l=ua(()=>i(),[i]),h=s1(),f=ua((D,O)=>{const P=t.current;return Qf(P,e,()=>{if(!no("recoil_suppress_rerender_in_callback"))return O();const Q=i();I.current.is(Q)||O(),I.current=Q},h).release},[t,e,h,i]),_=AY();if(_==null)throw pr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const o=CY(_,l,f),I=l1(o);return $f(()=>{I.current=o}),o}function O4(e){const t=Ql(),i=s1(),l=ua(()=>{var I;const D=t.current,O=D.getState(),P=Hf().early&&(I=O.nextTree)!==null&&I!==void 0?I:O.currentTree;return a1(D,e,P)},[t,e]),h=ua(()=>({loadable:l(),key:e.key}),[l,e.key]),f=ua(I=>{const D=h();return I.loadable.is(D.loadable)&&I.key===D.key?I:D},[h]);$f(()=>{const I=Qf(t.current,e,D=>{o(f)},i);return o(f),I.release},[i,e,t,f]);const[_,o]=z4(h);return _.key!==e.key?h().loadable:_.loadable}function PY(e){const t=Ql(),[,i]=z4([]),l=s1(),h=ua(()=>{var o;const I=t.current,D=I.getState(),O=Hf().early&&(o=D.nextTree)!==null&&o!==void 0?o:D.currentTree;return a1(I,e,O)},[t,e]),f=h(),_=l1(f);return $f(()=>{_.current=f}),$f(()=>{const o=t.current,I=o.getState(),D=Qf(o,e,P=>{var F;if(!no("recoil_suppress_rerender_in_callback"))return i([]);const Q=h();(F=_.current)!==null&&F!==void 0&&F.is(Q)||i(Q),_.current=Q},l);if(I.nextTree)o.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{_.current=null,i([])});else{var O;if(!no("recoil_suppress_rerender_in_callback"))return i([]);const P=h();(O=_.current)!==null&&O!==void 0&&O.is(P)||i(P),_.current=P}return D.release},[l,h,e,t]),f}function j4(e){return no("recoil_memory_managament_2020")&&N4(e),{TRANSITION_SUPPORT:O4,SYNC_EXTERNAL_STORE:SY()?OY:O4,MUTABLE_SOURCE:jY,LEGACY:PY}[Hf().mode](e)}function YN(e){const t=Ql(),i=j4(e);return k4(i,e,t)}function xv(e){const t=Ql();return ua(i=>{vv(t.current,e,i)},[t,e])}function RY(e){const t=Ql();return ua(()=>{vv(t.current,e,QN)},[t,e])}function FY(e){return[YN(e),xv(e)]}function BY(e){return[j4(e),xv(e)]}function UY(){const e=Ql();return(t,i={})=>{TY(()=>{e.current.addTransactionMetadata(i),t.forEach((l,h)=>EY(e.current,new L4(h),l))})}}function GN(e){return no("recoil_memory_managament_2020")&&N4(e),O4(e)}function ZN(e){const t=Ql(),i=GN(e);return k4(i,e,t)}function VY(e){return[ZN(e),xv(e)]}var HY={recoilComponentGetRecoilValueCount_FOR_TESTING:kY,useRecoilInterface:zY,useRecoilState:FY,useRecoilStateLoadable:BY,useRecoilValue:YN,useRecoilValueLoadable:j4,useResetRecoilState:RY,useSetRecoilState:xv,useSetUnvalidatedAtomValues:UY,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:GN,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:ZN,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:VY};function QY(e,t){const i=new Map;for(const[l,h]of e)t(h,l)&&i.set(l,h);return i}var $Y=QY;function YY(e,t){const i=new Set;for(const l of e)t(l)&&i.add(l);return i}var GY=YY;function ZY(...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 WY=ZY;const{batchUpdates:qY}=dv,{DEFAULT_VALUE:KY,getNode:WN,nodes:XY}=ca,{useStoreRef:P4}=Bc,{AbstractRecoilValue:JY,setRecoilValueLoadable:eG}=Hl,{SUSPENSE_TIMEOUT_MS:tG}=od,{cloneSnapshot:wv}=yv,{useCallback:bv,useEffect:qN,useRef:KN,useState:nG}=Lr,{isSSR:XN}=fv;function Mv(e){const t=P4();qN(()=>t.current.subscribeToTransactions(e).release,[e,t])}function JN(e){const t=e.atomValues.toMap(),i=lv($Y(t,(l,h)=>{const _=WN(h).persistence_UNSTABLE;return _!=null&&_.type!=="none"&&l.state==="hasValue"}),l=>l.contents);return WY(e.nonvalidatedAtoms.toMap(),i)}function iG(e){Mv(bv(t=>{let i=t.getState().previousTree;const l=t.getState().currentTree;i||(i=t.getState().currentTree);const h=JN(l),f=JN(i),_=lv(XY,I=>{var D,O,P,F;return{persistence_UNSTABLE:{type:(D=(O=I.persistence_UNSTABLE)===null||O===void 0?void 0:O.type)!==null&&D!==void 0?D:"none",backButton:(P=(F=I.persistence_UNSTABLE)===null||F===void 0?void 0:F.backButton)!==null&&P!==void 0?P:!1}}}),o=GY(l.dirtyAtoms,I=>h.has(I)||f.has(I));e({atomValues:h,previousAtomValues:f,atomInfo:_,modifiedAtoms:o,transactionMetadata:{...l.transactionMetadata}})},[e]))}function rG(e){Mv(bv(t=>{const i=wv(t,"latest"),l=wv(t,"previous");e({snapshot:i,previousSnapshot:l})},[e]))}function oG(){const e=P4(),[t,i]=nG(()=>wv(e.current)),l=VN(t),h=KN(),f=KN();if(Mv(bv(o=>i(wv(o)),[])),qN(()=>{const o=t.retain();if(h.current&&!XN){var I;window.clearTimeout(h.current),h.current=null,(I=f.current)===null||I===void 0||I.call(f),f.current=null}return()=>{window.setTimeout(o,10)}},[t]),l!==t&&!XN){if(h.current){var _;window.clearTimeout(h.current),h.current=null,(_=f.current)===null||_===void 0||_.call(f),f.current=null}f.current=t.retain(),h.current=window.setTimeout(()=>{var o;h.current=null,(o=f.current)===null||o===void 0||o.call(f),f.current=null},tG)}return t}function eL(e,t){var i;const l=e.getState(),h=(i=l.nextTree)!==null&&i!==void 0?i:l.currentTree,f=t.getStore_INTERNAL().getState().currentTree;qY(()=>{const _=new Set;for(const D of[h.atomValues.keys(),f.atomValues.keys()])for(const O of D){var o,I;((o=h.atomValues.get(O))===null||o===void 0?void 0:o.contents)!==((I=f.atomValues.get(O))===null||I===void 0?void 0:I.contents)&&WN(O).shouldRestoreFromSnapshots&&_.add(O)}_.forEach(D=>{eG(e,new JY(D),f.atomValues.has(D)?vo(f.atomValues.get(D)):KY)}),e.replaceState(D=>({...D,stateID:t.getID()}))})}function sG(){const e=P4();return bv(t=>eL(e.current,t),[e])}var tL={useRecoilSnapshot:oG,gotoSnapshot:eL,useGotoRecoilSnapshot:sG,useRecoilTransactionObserver:rG,useTransactionObservation_DEPRECATED:iG,useTransactionSubscription_DEPRECATED:Mv};const{peekNodeInfo:aG}=Vu,{useStoreRef:lG}=Bc;function cG(){const e=lG();return({key:t})=>aG(e.current,e.current.getState().currentTree,t)}var uG=cG;const{reactMode:hG}=Jm,{RecoilRoot:dG,useStoreRef:fG}=Bc,{useMemo:pG}=Lr;function gG(){hG().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=fG().current;return pG(()=>{function t({children:i}){return Lr.createElement(dG,{store_INTERNAL:e},i)}return t},[e])}var mG=gG;const{loadableWithValue:yG}=Xm,{initializeNode:_G}=Vu,{DEFAULT_VALUE:vG,getNode:xG}=ca,{copyTreeState:wG,getRecoilValueAsLoadable:bG,invalidateDownstreams:MG,writeLoadableToTreeState:IG}=Hl;function nL(e){return xG(e.key).nodeType==="atom"}class TG{constructor(t,i){cr(this,"_store",void 0),cr(this,"_treeState",void 0),cr(this,"_changes",void 0),cr(this,"get",l=>{if(this._changes.has(l.key))return this._changes.get(l.key);if(!nL(l))throw pr("Reading selectors within atomicUpdate is not supported");const h=bG(this._store,l,this._treeState);if(h.state==="hasValue")return h.contents;throw h.state==="hasError"?h.contents:pr(`Expected Recoil atom ${l.key} to have a value, but it is in a loading state.`)}),cr(this,"set",(l,h)=>{if(!nL(l))throw pr("Setting selectors within atomicUpdate is not supported");if(typeof h=="function"){const f=this.get(l);this._changes.set(l.key,h(f))}else _G(this._store,l.key,"set"),this._changes.set(l.key,h)}),cr(this,"reset",l=>{this.set(l,vG)}),this._store=t,this._treeState=i,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const t=wG(this._treeState);for(const[i,l]of this._changes)IG(t,i,yG(l));return MG(this._store,t),t}}function SG(e){return t=>{e.replaceState(i=>{const l=new TG(e,i);return t(l),l.newTreeState_INTERNAL()})}}var CG={atomicUpdater:SG},DG=CG.atomicUpdater,iL=Object.freeze({__proto__:null,atomicUpdater:DG});function AG(e,t){if(!e)throw new Error(t)}var EG=AG,c1=EG;const{atomicUpdater:NG}=iL,{batchUpdates:LG}=dv,{DEFAULT_VALUE:zG}=ca,{useStoreRef:kG}=Bc,{refreshRecoilValue:OG,setRecoilValue:rL}=Hl,{cloneSnapshot:jG}=yv,{gotoSnapshot:PG}=tL,{useCallback:RG}=Lr;class oL{}const FG=new oL;function sL(e,t,i,l){let h=FG,f;if(LG(()=>{const o="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 pr(o);const I=iN({...l??{},set:(O,P)=>rL(e,O,P),reset:O=>rL(e,O,zG),refresh:O=>OG(e,O),gotoSnapshot:O=>PG(e,O),transact_UNSTABLE:O=>NG(e)(O)},{snapshot:()=>{const O=jG(e);return f=O.retain(),O}}),D=t(I);if(typeof D!="function")throw pr(o);h=D(...i)}),h instanceof oL&&c1(!1),go(h))h=h.finally(()=>{var o;(o=f)===null||o===void 0||o()});else{var _;(_=f)===null||_===void 0||_()}return h}function BG(e,t){const i=kG();return RG((...l)=>sL(i.current,e,l),t!=null?[...t,i]:void 0)}var aL={recoilCallback:sL,useRecoilCallback:BG};const{useStoreRef:UG}=Bc,{refreshRecoilValue:VG}=Hl,{useCallback:HG}=Lr;function QG(e){const t=UG();return HG(()=>{const i=t.current;VG(i,e)},[e,t])}var $G=QG;const{atomicUpdater:YG}=iL,{useStoreRef:GG}=Bc,{useMemo:ZG}=Lr;function WG(e,t){const i=GG();return ZG(()=>(...l)=>{YG(i.current)(f=>{e(f)(...l)})},t!=null?[...t,i]:void 0)}var qG=WG;class KG{constructor(t){cr(this,"value",void 0),this.value=t}}var XG={WrappedValue:KG},JG=XG.WrappedValue,lL=Object.freeze({__proto__:null,WrappedValue:JG});const{isFastRefreshEnabled:eZ}=Jm;class cL extends Error{}class tZ{constructor(t){var i,l,h;cr(this,"_name",void 0),cr(this,"_numLeafs",void 0),cr(this,"_root",void 0),cr(this,"_onHit",void 0),cr(this,"_onSet",void 0),cr(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:f=>f}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 f,_,o,I;let D,O;for(const[Ne,oe]of t){var P,F,Q;const Z=this._root;if((Z==null?void 0:Z.type)==="leaf")throw this.invalidCacheError();const W=D;if(D=W?W.branches.get(O):Z,D=(P=D)!==null&&P!==void 0?P:{type:"branch",nodeKey:Ne,parent:W,branches:new Map,branchKey:O},D.type!=="branch"||D.nodeKey!==Ne)throw this.invalidCacheError();W==null||W.branches.set(O,D),l==null||(F=l.onNodeVisit)===null||F===void 0||F.call(l,D),O=this._mapNodeValue(oe),this._root=(Q=this._root)!==null&&Q!==void 0?Q:D}const J=D?(f=D)===null||f===void 0?void 0:f.branches.get(O):this._root;if(J!=null&&(J.type!=="leaf"||J.branchKey!==O))throw this.invalidCacheError();const ae={type:"leaf",value:i,parent:D,branchKey:O};(_=D)===null||_===void 0||_.branches.set(O,ae),this._root=(o=this._root)!==null&&o!==void 0?o:ae,this._numLeafs++,this._onSet(ae),l==null||(I=l.onNodeVisit)===null||I===void 0||I.call(l,ae)};try{h()}catch(f){if(f instanceof cL)this.clear(),h();else throw f}}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 f;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=(f=l)===null||f===void 0?void 0:f.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=eZ()?"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 h4(t+(this._name!=null?` - ${this._name}`:"")),new cL}}var nZ={TreeCache:tZ},iZ=nZ.TreeCache,uL=Object.freeze({__proto__:null,TreeCache:iZ});class rZ{constructor(t){var i;cr(this,"_maxSize",void 0),cr(this,"_size",void 0),cr(this,"_head",void 0),cr(this,"_tail",void 0),cr(this,"_map",void 0),cr(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 f=this.head(),_={key:t,right:f,left:null,value:i};f?f.left=_:this._tail=_,this._map.set(l,_),this._head=_,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=vo(this._map.get(i)),h=l.right,f=l.left;h&&(h.left=l.left),f&&(f.right=l.right),l===this.head()&&(this._head=h),l===this.tail()&&(this._tail=f),this._map.delete(i),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var oZ={LRUCache:rZ},sZ=oZ.LRUCache,hL=Object.freeze({__proto__:null,LRUCache:sZ});const{LRUCache:aZ}=hL,{TreeCache:lZ}=uL;function cZ({name:e,maxSize:t,mapNodeValue:i=l=>l}){const l=new aZ({maxSize:t}),h=new lZ({name:e,mapNodeValue:i,onHit:f=>{l.set(f,!0)},onSet:f=>{const _=l.tail();l.set(f,!0),_&&h.size()>t&&h.delete(_.key)}});return h}var dL=cZ;function _l(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 pr("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(go(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((h,f)=>_l(h,t,f.toString()))}]`;if(typeof e.toJSON=="function")return _l(e.toJSON(i),t,i);if(e instanceof Map){const h={};for(const[f,_]of e)h[typeof f=="string"?f:_l(f,t)]=_;return _l(h,t,i)}return e instanceof Set?_l(Array.from(e).sort((h,f)=>_l(h,t).localeCompare(_l(f,t))),t,i):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?_l(Array.from(e),t,i):`{${Object.keys(e).filter(h=>e[h]!==void 0).sort().map(h=>`${_l(h,t)}:${_l(e[h],t,h)}`).join(",")}}`}function uZ(e,t={allowFunctions:!1}){return _l(e,t)}var Iv=uZ;const{TreeCache:hZ}=uL,Tv={equality:"reference",eviction:"keep-all",maxSize:1/0};function dZ({equality:e=Tv.equality,eviction:t=Tv.eviction,maxSize:i=Tv.maxSize}=Tv,l){const h=fZ(e);return pZ(t,i,h,l)}function fZ(e){switch(e){case"reference":return t=>t;case"value":return t=>Iv(t)}throw pr(`Unrecognized equality policy ${e}`)}function pZ(e,t,i,l){switch(e){case"keep-all":return new hZ({name:l,mapNodeValue:i});case"lru":return dL({name:l,maxSize:vo(t),mapNodeValue:i});case"most-recent":return dL({name:l,maxSize:1,mapNodeValue:i})}throw pr(`Unrecognized eviction policy ${e}`)}var gZ=dZ;function mZ(e){return()=>null}var yZ={startPerfBlock:mZ};const{isLoadable:_Z,loadableWithError:Sv,loadableWithPromise:vZ,loadableWithValue:R4}=Xm,{WrappedValue:fL}=lL,{getNodeLoadable:Cv,peekNodeLoadable:xZ,setNodeValue:wZ}=Vu,{saveDepsToStore:bZ}=t1,{DEFAULT_VALUE:MZ,getConfigDeletionHandler:IZ,getNode:TZ,registerNode:pL}=ca,{isRecoilValue:SZ}=Vf,{markRecoilValueModified:gL}=Hl,{retainedByOptionWithDefault:CZ}=od,{recoilCallback:DZ}=aL,{startPerfBlock:AZ}=yZ;class mL{}const u1=new mL,h1=[],Dv=new Map,EZ=(()=>{let e=0;return()=>e++})();function yL(e){let t=null;const{key:i,get:l,cachePolicy_UNSTABLE:h}=e,f=e.set!=null?e.set:void 0,_=new Set,o=gZ(h??{equality:"reference",eviction:"keep-all"},i),I=CZ(e.retainedBy_UNSTABLE),D=new Map;let O=0;function P(){return!no("recoil_memory_managament_2020")||O>0}function F(T){return T.getState().knownSelectors.add(i),O++,()=>{O--}}function Q(){return IZ(i)!==void 0&&!P()}function J(T,L,$,Y,q){wt(L,Y,q),ae(T,$)}function ae(T,L){Ht(T,L)&&yt(T),oe(L,!0)}function Ne(T,L){Ht(T,L)&&(vo(Fe(T)).stateVersions.clear(),oe(L,!1))}function oe(T,L){const $=Dv.get(T);if($!=null){for(const Y of $)gL(Y,vo(t));L&&Dv.delete(T)}}function Z(T,L){let $=Dv.get(L);$==null&&Dv.set(L,$=new Set),$.add(T)}function W(T,L,$,Y,q,ce){return L.then(pe=>{if(!P())throw yt(T),u1;const fe=R4(pe);return J(T,$,q,fe,Y),pe}).catch(pe=>{if(!P())throw yt(T),u1;if(go(pe))return se(T,pe,$,Y,q,ce);const fe=Sv(pe);throw J(T,$,q,fe,Y),pe})}function se(T,L,$,Y,q,ce){return L.then(pe=>{if(!P())throw yt(T),u1;ce.loadingDepKey!=null&&ce.loadingDepPromise===L?$.atomValues.set(ce.loadingDepKey,R4(pe)):T.getState().knownSelectors.forEach(nt=>{$.atomValues.delete(nt)});const fe=Be(T,$);if(fe&&fe.state!=="loading"){if((Ht(T,q)||Fe(T)==null)&&ae(T,q),fe.state==="hasValue")return fe.contents;throw fe.contents}if(!Ht(T,q)){const nt=Ue(T,$);if(nt!=null)return nt.loadingLoadable.contents}const[we,He]=ue(T,$,q);if(we.state!=="loading"&&J(T,$,q,we,He),we.state==="hasError")throw we.contents;return we.contents}).catch(pe=>{if(pe instanceof mL)throw u1;if(!P())throw yt(T),u1;const fe=Sv(pe);throw J(T,$,q,fe,Y),pe})}function ve(T,L,$,Y){var q,ce,pe,fe;if(Ht(T,Y)||L.version===((q=T.getState())===null||q===void 0||(ce=q.currentTree)===null||ce===void 0?void 0:ce.version)||L.version===((pe=T.getState())===null||pe===void 0||(fe=pe.nextTree)===null||fe===void 0?void 0:fe.version)){var we,He,nt;bZ(i,$,T,(we=(He=T.getState())===null||He===void 0||(nt=He.nextTree)===null||nt===void 0?void 0:nt.version)!==null&&we!==void 0?we:T.getState().currentTree.version)}for(const Qe of $)_.add(Qe)}function ue(T,L,$){const Y=AZ(i);let q=!0,ce=!0;const pe=()=>{Y(),ce=!1};let fe,we=!1,He;const nt={loadingDepKey:null,loadingDepPromise:null},Qe=new Map;function tt({key:It}){const Mt=Cv(T,L,It);switch(Qe.set(It,Mt),q||(ve(T,L,new Set(Qe.keys()),$),Ne(T,$)),Mt.state){case"hasValue":return Mt.contents;case"hasError":throw Mt.contents;case"loading":throw nt.loadingDepKey=It,nt.loadingDepPromise=Mt.contents,Mt.contents}throw pr("Invalid Loadable state")}const Ge=It=>(...Mt)=>{if(ce)throw pr("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&&c1(!1),DZ(T,It,Mt,{node:t})};try{fe=l({get:tt,getCallback:Ge}),fe=SZ(fe)?tt(fe):fe,_Z(fe)&&(fe.state==="hasError"&&(we=!0),fe=fe.contents),go(fe)?fe=W(T,fe,L,Qe,$,nt).finally(pe):pe(),fe=fe instanceof fL?fe.value:fe}catch(It){fe=It,go(fe)?fe=se(T,fe,L,Qe,$,nt).finally(pe):(we=!0,pe())}return we?He=Sv(fe):go(fe)?He=vZ(fe):He=R4(fe),q=!1,ct(T,$,Qe),ve(T,L,new Set(Qe.keys()),$),[He,Qe]}function Be(T,L){let $=L.atomValues.get(i);if($!=null)return $;const Y=new Set;try{$=o.get(ce=>(typeof ce!="string"&&c1(!1),Cv(T,L,ce).contents),{onNodeVisit:ce=>{ce.type==="branch"&&ce.nodeKey!==i&&Y.add(ce.nodeKey)}})}catch(ce){throw pr(`Problem with cache lookup for selector "${i}": ${ce.message}`)}if($){var q;L.atomValues.set(i,$),ve(T,L,Y,(q=Fe(T))===null||q===void 0?void 0:q.executionID)}return $}function $e(T,L){const $=Be(T,L);if($!=null)return yt(T),$;const Y=Ue(T,L);if(Y!=null){var q;return((q=Y.loadingLoadable)===null||q===void 0?void 0:q.state)==="loading"&&Z(T,Y.executionID),Y.loadingLoadable}const ce=EZ(),[pe,fe]=ue(T,L,ce);return pe.state==="loading"?(Ke(T,ce,pe,fe,L),Z(T,ce)):(yt(T),wt(L,pe,fe)),pe}function Ue(T,L){const $=bN([D.has(T)?[vo(D.get(T))]:[],sv(x4(D,([q])=>q!==T),([,q])=>q)]);function Y(q){for(const[ce,pe]of q)if(!Cv(T,L,ce).is(pe))return!0;return!1}for(const q of $){if(q.stateVersions.get(L.version)||!Y(q.depValuesDiscoveredSoFarDuringAsyncWork))return q.stateVersions.set(L.version,!0),q;q.stateVersions.set(L.version,!1)}}function Fe(T){return D.get(T)}function Ke(T,L,$,Y,q){D.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:Y,executionID:L,loadingLoadable:$,stateVersions:new Map([[q.version,!0]])})}function ct(T,L,$){if(Ht(T,L)){const Y=Fe(T);Y!=null&&(Y.depValuesDiscoveredSoFarDuringAsyncWork=$)}}function yt(T){D.delete(T)}function Ht(T,L){var $;return L===(($=Fe(T))===null||$===void 0?void 0:$.executionID)}function _t(T){return Array.from(T.entries()).map(([L,$])=>[L,$.contents])}function wt(T,L,$){T.atomValues.set(i,L);try{o.set(_t($),L)}catch(Y){throw pr(`Problem with setting cache for selector "${i}": ${Y.message}`)}}function Ft(T){if(h1.includes(i)){const L=`Recoil selector has circular dependencies: ${h1.slice(h1.indexOf(i)).join(" → ")}`;return Sv(pr(L))}h1.push(i);try{return T()}finally{h1.pop()}}function gt(T,L){const $=L.atomValues.get(i);return $??o.get(Y=>{var q;return typeof Y!="string"&&c1(!1),(q=xZ(T,L,Y))===null||q===void 0?void 0:q.contents})}function Rt(T,L){return Ft(()=>$e(T,L))}function H(T){T.atomValues.delete(i)}function le(T,L){t==null&&c1(!1);for(const Y of _){var $;const q=TZ(Y);($=q.clearCache)===null||$===void 0||$.call(q,T,L)}_.clear(),H(L),o.clear(),gL(T,t)}return f!=null?t=pL({key:i,nodeType:"selector",peek:gt,get:Rt,set:(L,$,Y)=>{let q=!1;const ce=new Map;function pe({key:nt}){if(q)throw pr("Recoil: Async selector sets are not currently supported.");const Qe=Cv(L,$,nt);if(Qe.state==="hasValue")return Qe.contents;if(Qe.state==="loading"){const tt=`Getting value of asynchronous atom or selector "${nt}" in a pending state while setting selector "${i}" is not yet supported.`;throw pr(tt)}else throw Qe.contents}function fe(nt,Qe){if(q)throw pr("Recoil: Async selector sets are not currently supported.");const tt=typeof Qe=="function"?Qe(pe(nt)):Qe;wZ(L,$,nt.key,tt).forEach((It,Mt)=>ce.set(Mt,It))}function we(nt){fe(nt,MZ)}const He=f({set:fe,get:pe,reset:we},Y);if(He!==void 0)throw go(He)?pr("Recoil: Async selector sets are not currently supported."):pr("Recoil: selector set should be a void function.");return q=!0,ce},init:F,invalidate:H,clearCache:le,shouldDeleteConfigOnRelease:Q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:I}):t=pL({key:i,nodeType:"selector",peek:gt,get:Rt,init:F,invalidate:H,clearCache:le,shouldDeleteConfigOnRelease:Q,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:I})}yL.value=e=>new fL(e);var Yf=yL;const{isLoadable:NZ,loadableWithError:F4,loadableWithPromise:B4,loadableWithValue:Gf}=Xm,{WrappedValue:_L}=lL,{peekNodeInfo:LZ}=Vu,{DEFAULT_VALUE:sd,DefaultValue:Hu,getConfigDeletionHandler:vL,registerNode:zZ,setConfigDeletionHandler:kZ}=ca,{isRecoilValue:OZ}=Vf,{getRecoilValueAsLoadable:jZ,markRecoilValueModified:PZ,setRecoilValue:xL,setRecoilValueLoadable:RZ}=Hl,{retainedByOptionWithDefault:FZ}=od,d1=e=>e instanceof _L?e.value:e;function BZ(e){const{key:t,persistence_UNSTABLE:i}=e,l=FZ(e.retainedBy_UNSTABLE);let h=0;function f(Z){return B4(Z.then(W=>(_=Gf(W),W)).catch(W=>{throw _=F4(W),W}))}let _=go(e.default)?f(e.default):NZ(e.default)?e.default.state==="loading"?f(e.default.contents):e.default:Gf(d1(e.default));_.contents;let o;const I=new Map;function D(Z){return Z}function O(Z,W){const se=W.then(ve=>{var ue,Be;return((Be=((ue=Z.getState().nextTree)!==null&&ue!==void 0?ue:Z.getState().currentTree).atomValues.get(t))===null||Be===void 0?void 0:Be.contents)===se&&xL(Z,oe,ve),ve}).catch(ve=>{var ue,Be;throw((Be=((ue=Z.getState().nextTree)!==null&&ue!==void 0?ue:Z.getState().currentTree).atomValues.get(t))===null||Be===void 0?void 0:Be.contents)===se&&RZ(Z,oe,F4(ve)),ve});return se}function P(Z,W,se){var ve;h++;const ue=()=>{var Fe;h--,(Fe=I.get(Z))===null||Fe===void 0||Fe.forEach(Ke=>Ke()),I.delete(Z)};if(Z.getState().knownAtoms.add(t),_.state==="loading"){const Fe=()=>{var Ke;((Ke=Z.getState().nextTree)!==null&&Ke!==void 0?Ke:Z.getState().currentTree).atomValues.has(t)||PZ(Z,oe)};_.contents.finally(Fe)}const Be=(ve=e.effects)!==null&&ve!==void 0?ve:e.effects_UNSTABLE;if(Be!=null){let Ht=function(H){if(Ke&&H.key===t){const le=Fe;return le instanceof Hu?F(Z,W):go(le)?B4(le.then(T=>T instanceof Hu?_.toPromise():T)):Gf(le)}return jZ(Z,H)},_t=function(H){return Ht(H).toPromise()},wt=function(H){var le;const T=LZ(Z,(le=Z.getState().nextTree)!==null&&le!==void 0?le:Z.getState().currentTree,H.key);return Ke&&H.key===t&&!(Fe instanceof Hu)?{...T,isSet:!0,loadable:Ht(H)}:T},Fe=sd,Ke=!0,ct=!1,yt=null;const Ft=H=>le=>{if(Ke){const T=Ht(oe),L=T.state==="hasValue"?T.contents:sd;Fe=typeof le=="function"?le(L):le,go(Fe)&&(Fe=Fe.then($=>(yt={effect:H,value:$},$)))}else{if(go(le))throw pr("Setting atoms to async values is not implemented.");typeof le!="function"&&(yt={effect:H,value:d1(le)}),xL(Z,oe,typeof le=="function"?T=>{const L=d1(le(T));return yt={effect:H,value:L},L}:d1(le))}},gt=H=>()=>Ft(H)(sd),Rt=H=>le=>{var T;const{release:L}=Z.subscribeToTransactions($=>{var Y;let{currentTree:q,previousTree:ce}=$.getState();ce||(ce=q);const pe=(Y=q.atomValues.get(t))!==null&&Y!==void 0?Y:_;if(pe.state==="hasValue"){var fe,we,He,nt;const Qe=pe.contents,tt=(fe=ce.atomValues.get(t))!==null&&fe!==void 0?fe:_,Ge=tt.state==="hasValue"?tt.contents:sd;((we=yt)===null||we===void 0?void 0:we.effect)!==H||((He=yt)===null||He===void 0?void 0:He.value)!==Qe?le(Qe,Ge,!q.atomValues.has(t)):((nt=yt)===null||nt===void 0?void 0:nt.effect)===H&&(yt=null)}},t);I.set(Z,[...(T=I.get(Z))!==null&&T!==void 0?T:[],L])};for(const H of Be)try{const le=H({node:oe,storeID:Z.storeID,parentStoreID_UNSTABLE:Z.parentStoreID,trigger:se,setSelf:Ft(H),resetSelf:gt(H),onSet:Rt(H),getPromise:_t,getLoadable:Ht,getInfo_UNSTABLE:wt});if(le!=null){var $e;I.set(Z,[...($e=I.get(Z))!==null&&$e!==void 0?$e:[],le])}}catch(le){Fe=le,ct=!0}if(Ke=!1,!(Fe instanceof Hu)){var Ue;const H=ct?F4(Fe):go(Fe)?B4(O(Z,Fe)):Gf(d1(Fe));H.contents,W.atomValues.set(t,H),(Ue=Z.getState().nextTree)===null||Ue===void 0||Ue.atomValues.set(t,H)}}return ue}function F(Z,W){var se,ve;return(se=(ve=W.atomValues.get(t))!==null&&ve!==void 0?ve:o)!==null&&se!==void 0?se:_}function Q(Z,W){if(W.atomValues.has(t))return vo(W.atomValues.get(t));if(W.nonvalidatedAtoms.has(t)){if(o!=null)return o;if(i==null)return _;const se=W.nonvalidatedAtoms.get(t),ve=i.validator(se,sd);return o=ve instanceof Hu?_:Gf(ve),o}else return _}function J(){o=void 0}function ae(Z,W,se){if(W.atomValues.has(t)){const ve=vo(W.atomValues.get(t));if(ve.state==="hasValue"&&se===ve.contents)return new Map}else if(!W.nonvalidatedAtoms.has(t)&&se instanceof Hu)return new Map;return o=void 0,new Map().set(t,Gf(se))}function Ne(){return vL(t)!==void 0&&h<=0}const oe=zZ({key:t,nodeType:"atom",peek:F,get:Q,set:ae,init:P,invalidate:J,shouldDeleteConfigOnRelease:Ne,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 oe}function U4(e){const{...t}=e,i="default"in e?e.default:new Promise(()=>{});return OZ(i)?UZ({...t,default:i}):BZ({...t,default:i})}function UZ(e){const t=U4({...e,default:sd,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:l=>l instanceof Hu?l:vo(e.persistence_UNSTABLE).validator(l,sd)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),i=Yf({key:`${e.key}__withFallback`,get:({get:l})=>{const h=l(t);return h instanceof Hu?e.default:h},set:({set:l},h)=>l(t,h),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return kZ(i.key,vL(e.key)),i}U4.value=e=>new _L(e);var wL=U4;class VZ{constructor(t){var i;cr(this,"_map",void 0),cr(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 HZ={MapCache:VZ},QZ=HZ.MapCache,$Z=Object.freeze({__proto__:null,MapCache:QZ});const{LRUCache:bL}=hL,{MapCache:YZ}=$Z,Av={equality:"reference",eviction:"none",maxSize:1/0};function GZ({equality:e=Av.equality,eviction:t=Av.eviction,maxSize:i=Av.maxSize}=Av){const l=ZZ(e);return WZ(t,i,l)}function ZZ(e){switch(e){case"reference":return t=>t;case"value":return t=>Iv(t)}throw pr(`Unrecognized equality policy ${e}`)}function WZ(e,t,i){switch(e){case"keep-all":return new YZ({mapKey:i});case"lru":return new bL({mapKey:i,maxSize:vo(t)});case"most-recent":return new bL({mapKey:i,maxSize:1})}throw pr(`Unrecognized eviction policy ${e}`)}var ML=GZ;const{setConfigDeletionHandler:qZ}=ca;function KZ(e){var t,i;const l=ML({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 f,_;const o=l.get(h);if(o!=null)return o;const{cachePolicyForParams_UNSTABLE:I,...D}=e,O="default"in e?e.default:new Promise(()=>{}),P=wL({...D,key:`${e.key}__${(f=Iv(h))!==null&&f!==void 0?f:"void"}`,default:typeof O=="function"?O(h):O,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):(_=e.effects)!==null&&_!==void 0?_:e.effects_UNSTABLE});return l.set(h,P),qZ(P.key,()=>{l.delete(h)}),P}}var XZ=KZ;const{setConfigDeletionHandler:JZ}=ca;let eW=0;function tW(e){var t,i;const l=ML({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 f;let _;try{_=l.get(h)}catch(F){throw pr(`Problem with cache lookup for selector ${e.key}: ${F.message}`)}if(_!=null)return _;const o=`${e.key}__selectorFamily/${(f=Iv(h,{allowFunctions:!0}))!==null&&f!==void 0?f:"void"}/${eW++}`,I=F=>e.get(h)(F),D=e.cachePolicy_UNSTABLE,O=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(h):e.retainedBy_UNSTABLE;let P;if(e.set!=null){const F=e.set;P=Yf({key:o,get:I,set:(J,ae)=>F(h)(J,ae),cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:O})}else P=Yf({key:o,get:I,cachePolicy_UNSTABLE:D,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:O});return l.set(h,P),JZ(P.key,()=>{l.delete(h)}),P}}var Qu=tW;const nW=Qu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function iW(e){return nW(e)}var rW=iW;const oW=Qu({key:"__error",get:e=>()=>{throw pr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function sW(e){return oW(e)}var aW=sW;function lW(e){return e}var cW=lW;const{loadableWithError:IL,loadableWithPromise:TL,loadableWithValue:SL}=Xm;function Ev(e,t){const i=Array(t.length).fill(void 0),l=Array(t.length).fill(void 0);for(const[h,f]of t.entries())try{i[h]=e(f)}catch(_){l[h]=_}return[i,l]}function uW(e){return e!=null&&!go(e)}function Nv(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(t=>e[t])}function V4(e,t){return Array.isArray(e)?t:Object.getOwnPropertyNames(e).reduce((i,l,h)=>({...i,[l]:t[h]}),{})}function Zf(e,t,i){const l=i.map((h,f)=>h==null?SL(t[f]):go(h)?TL(h):IL(h));return V4(e,l)}function hW(e,t){return t.map((i,l)=>i===void 0?e[l]:i)}const dW=Qu({key:"__waitForNone",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);return Zf(e,l,h)},dangerouslyAllowMutability:!0}),fW=Qu({key:"__waitForAny",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);return h.some(f=>!go(f))?Zf(e,l,h):new Promise(f=>{for(const[_,o]of h.entries())go(o)&&o.then(I=>{l[_]=I,h[_]=void 0,f(Zf(e,l,h))}).catch(I=>{h[_]=I,f(Zf(e,l,h))})})},dangerouslyAllowMutability:!0}),pW=Qu({key:"__waitForAll",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);if(h.every(_=>_==null))return V4(e,l);const f=h.find(uW);if(f!=null)throw f;return Promise.all(h).then(_=>V4(e,hW(l,_)))},dangerouslyAllowMutability:!0}),gW=Qu({key:"__waitForAllSettled",get:e=>({get:t})=>{const i=Nv(e),[l,h]=Ev(t,i);return h.every(f=>!go(f))?Zf(e,l,h):Promise.all(h.map((f,_)=>go(f)?f.then(o=>{l[_]=o,h[_]=void 0}).catch(o=>{l[_]=void 0,h[_]=o}):null)).then(()=>Zf(e,l,h))},dangerouslyAllowMutability:!0}),mW=Qu({key:"__noWait",get:e=>({get:t})=>{try{return Yf.value(SL(t(e)))}catch(i){return Yf.value(go(i)?TL(i):IL(i))}},dangerouslyAllowMutability:!0});var yW={waitForNone:dW,waitForAny:fW,waitForAll:pW,waitForAllSettled:gW,noWait:mW};const{RecoilLoadable:_W}=Xm,{DefaultValue:vW}=ca,{RecoilRoot:xW,useRecoilStoreID:wW}=Bc,{isRecoilValue:bW}=Vf,{retentionZone:MW}=uv,{freshSnapshot:IW}=yv,{useRecoilState:TW,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:SW,useRecoilStateLoadable:CW,useRecoilValue:DW,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:AW,useRecoilValueLoadable:EW,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:NW,useResetRecoilState:LW,useSetRecoilState:zW}=HY,{useGotoRecoilSnapshot:kW,useRecoilSnapshot:OW,useRecoilTransactionObserver:jW}=tL,{useRecoilCallback:PW}=aL,{noWait:RW,waitForAll:FW,waitForAllSettled:BW,waitForAny:UW,waitForNone:VW}=yW;var Wf={DefaultValue:vW,isRecoilValue:bW,RecoilLoadable:_W,RecoilEnv:Uf,RecoilRoot:xW,useRecoilStoreID:wW,useRecoilBridgeAcrossReactRoots_UNSTABLE:mG,atom:wL,selector:Yf,atomFamily:XZ,selectorFamily:Qu,constSelector:rW,errorSelector:aW,readOnlySelector:cW,noWait:RW,waitForNone:VW,waitForAny:UW,waitForAll:FW,waitForAllSettled:BW,useRecoilValue:DW,useRecoilValueLoadable:EW,useRecoilState:TW,useRecoilStateLoadable:CW,useSetRecoilState:zW,useResetRecoilState:LW,useGetRecoilValueInfo_UNSTABLE:uG,useRecoilRefresher_UNSTABLE:$G,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:NW,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:AW,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:SW,useRecoilCallback:PW,useRecoilTransaction_UNSTABLE:qG,useGotoRecoilSnapshot:kW,useRecoilSnapshot:OW,useRecoilTransactionObserver_UNSTABLE:jW,snapshot_UNSTABLE:IW,useRetain:N4,retentionZone:MW},HW=Wf.RecoilRoot,ji=Wf.atom,Lv=Wf.selector,Mn=Wf.useRecoilValue,Wn=Wf.useRecoilState,Co=Wf.useResetRecoilState;const QW=(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)))})},$W="mi-components";let zv,CL,Ia=!1,H4=!1;const Uc=(e,t="")=>()=>{},YW=(e,t)=>()=>{},GW="{visibility:hidden}.hydrated{visibility:inherit}",DL="http://www.w3.org/1999/xlink",AL={},ZW="http://www.w3.org/2000/svg",WW="http://www.w3.org/1999/xhtml",qW=e=>e!=null,Q4=e=>(e=typeof e,e==="object"||e==="function");function EL(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 rt=(e,t,...i)=>{let l=null,h=null,f=!1,_=!1;const o=[],I=O=>{for(let P=0;P<O.length;P++)l=O[P],Array.isArray(l)?I(l):l!=null&&typeof l!="boolean"&&((f=typeof e!="function"&&!Q4(l))&&(l=String(l)),f&&_?o[o.length-1].$text$+=l:o.push(f?$4(null,l):l),_=f)};if(I(i),t){t.key&&(h=t.key);{const O=t.className||t.class;O&&(t.class=typeof O!="object"?O:Object.keys(O).filter(P=>O[P]).join(" "))}}const D=$4(e,null);return D.$attrs$=t,o.length>0&&(D.$children$=o),D.$key$=h,D},$4=(e,t)=>{const i={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return i.$attrs$=null,i.$key$=null,i},Ho={},KW=e=>e&&e.$tag$===Ho,XW=(e,t)=>e!=null&&!Q4(e)?t&4?e==="false"?!1:e===""||!!e:t&2?parseFloat(e):t&1?String(e):e:e,Vc=e=>$u(e).$hostElement$,qr=(e,t,i)=>{const l=Vc(e);return{emit:h=>NL(l,t,{bubbles:!!(i&4),composed:!!(i&2),cancelable:!!(i&1),detail:h})}},NL=(e,t,i)=>{const l=as.ce(t,i);return e.dispatchEvent(l),l},LL=new WeakMap,JW=(e,t,i)=>{let l=Pv.get(e);xq&&i?(l=l||new CSSStyleSheet,typeof l=="string"?l=t:l.replaceSync(t)):l=t,Pv.set(e,l)},eq=(e,t,i,l)=>{var h;let f=zL(t);const _=Pv.get(f);if(e=e.nodeType===11?e:$l,_)if(typeof _=="string"){e=e.head||e;let o=LL.get(e),I;if(o||LL.set(e,o=new Set),!o.has(f)){{I=$l.createElement("style"),I.innerHTML=_;const D=(h=as.$nonce$)!==null&&h!==void 0?h:EL($l);D!=null&&I.setAttribute("nonce",D),e.insertBefore(I,e.querySelector("link"))}o&&o.add(f)}}else e.adoptedStyleSheets.includes(_)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,_]);return f},tq=e=>{const t=e.$cmpMeta$,i=e.$hostElement$,l=t.$flags$,h=Uc("attachStyles",t.$tagName$),f=eq(i.shadowRoot?i.shadowRoot:i.getRootNode(),t);l&10&&(i["s-sc"]=f,i.classList.add(f+"-h")),h()},zL=(e,t)=>"sc-"+e.$tagName$,kL=(e,t,i,l,h,f)=>{if(i!==l){let _=GL(e,t),o=t.toLowerCase();if(t==="class"){const I=e.classList,D=OL(i),O=OL(l);I.remove(...D.filter(P=>P&&!O.includes(P))),I.add(...O.filter(P=>P&&!D.includes(P)))}else if(t==="style"){for(const I in i)(!l||l[I]==null)&&(I.includes("-")?e.style.removeProperty(I):e.style[I]="");for(const I in l)(!i||l[I]!==i[I])&&(I.includes("-")?e.style.setProperty(I,l[I]):e.style[I]=l[I])}else if(t!=="key")if(t==="ref")l&&l(e);else if(!_&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):GL(f1,o)?t=o.slice(2):t=o[2]+t.slice(3),i&&as.rel(e,t,i,!1),l&&as.ael(e,t,l,!1);else{const I=Q4(l);if((_||I&&l!==null)&&!h)try{if(e.tagName.includes("-"))e[t]=l;else{const O=l??"";t==="list"?_=!1:(i==null||e[t]!=O)&&(e[t]=O)}}catch{}let D=!1;o!==(o=o.replace(/^xlink\:?/,""))&&(t=o,D=!0),l==null||l===!1?(l!==!1||e.getAttribute(t)==="")&&(D?e.removeAttributeNS(DL,t):e.removeAttribute(t)):(!_||f&4||h)&&!I&&(l=l===!0?"":l,D?e.setAttributeNS(DL,t,l):e.setAttribute(t,l))}}},nq=/\s/,OL=e=>e?e.split(nq):[],jL=(e,t,i,l)=>{const h=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,f=e&&e.$attrs$||AL,_=t.$attrs$||AL;for(l in f)l in _||kL(h,l,f[l],void 0,i,t.$flags$);for(l in _)kL(h,l,f[l],_[l],i,t.$flags$)},kv=(e,t,i,l)=>{const h=t.$children$[i];let f=0,_,o;if(h.$text$!==null)_=h.$elm$=$l.createTextNode(h.$text$);else{if(Ia||(Ia=h.$tag$==="svg"),_=h.$elm$=$l.createElementNS(Ia?ZW:WW,h.$tag$),Ia&&h.$tag$==="foreignObject"&&(Ia=!1),jL(null,h,Ia),qW(zv)&&_["s-si"]!==zv&&_.classList.add(_["s-si"]=zv),h.$children$)for(f=0;f<h.$children$.length;++f)o=kv(e,h,f),o&&_.appendChild(o);h.$tag$==="svg"?Ia=!1:_.tagName==="foreignObject"&&(Ia=!0)}return _},PL=(e,t,i,l,h,f)=>{let _=e,o;for(_.shadowRoot&&_.tagName===CL&&(_=_.shadowRoot);h<=f;++h)l[h]&&(o=kv(null,i,h),o&&(l[h].$elm$=o,_.insertBefore(o,t)))},RL=(e,t,i,l,h)=>{for(;t<=i;++t)(l=e[t])&&(h=l.$elm$,FL(l),h.remove())},iq=(e,t,i,l)=>{let h=0,f=0,_=0,o=0,I=t.length-1,D=t[0],O=t[I],P=l.length-1,F=l[0],Q=l[P],J,ae;for(;h<=I&&f<=P;)if(D==null)D=t[++h];else if(O==null)O=t[--I];else if(F==null)F=l[++f];else if(Q==null)Q=l[--P];else if(Ov(D,F))qf(D,F),D=t[++h],F=l[++f];else if(Ov(O,Q))qf(O,Q),O=t[--I],Q=l[--P];else if(Ov(D,Q))qf(D,Q),e.insertBefore(D.$elm$,O.$elm$.nextSibling),D=t[++h],Q=l[--P];else if(Ov(O,F))qf(O,F),e.insertBefore(O.$elm$,D.$elm$),O=t[--I],F=l[++f];else{for(_=-1,o=h;o<=I;++o)if(t[o]&&t[o].$key$!==null&&t[o].$key$===F.$key$){_=o;break}_>=0?(ae=t[_],ae.$tag$!==F.$tag$?J=kv(t&&t[f],i,_):(qf(ae,F),t[_]=void 0,J=ae.$elm$),F=l[++f]):(J=kv(t&&t[f],i,f),F=l[++f]),J&&D.$elm$.parentNode.insertBefore(J,D.$elm$)}h>I?PL(e,l[P+1]==null?null:l[P+1].$elm$,i,l,f,P):f>P&&RL(t,h,I)},Ov=(e,t)=>e.$tag$===t.$tag$?e.$key$===t.$key$:!1,qf=(e,t)=>{const i=t.$elm$=e.$elm$,l=e.$children$,h=t.$children$,f=t.$tag$,_=t.$text$;_===null?(Ia=f==="svg"?!0:f==="foreignObject"?!1:Ia,f==="slot"||jL(e,t,Ia),l!==null&&h!==null?iq(i,l,t,h):h!==null?(e.$text$!==null&&(i.textContent=""),PL(i,null,t,h,0,h.length-1)):l!==null&&RL(l,0,l.length-1),Ia&&f==="svg"&&(Ia=!1)):e.$text$!==_&&(i.data=_)},FL=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(FL)},rq=(e,t)=>{const i=e.$hostElement$,l=e.$cmpMeta$,h=e.$vnode$||$4(null,null),f=KW(t)?t:rt(null,null,t);CL=i.tagName,l.$attrsToReflect$&&(f.$attrs$=f.$attrs$||{},l.$attrsToReflect$.map(([_,o])=>f.$attrs$[o]=i[_])),f.$tag$=null,f.$flags$|=4,e.$vnode$=f,f.$elm$=h.$elm$=i.shadowRoot||i,zv=i["s-sc"],qf(h,f)},BL=(e,t)=>{t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(i=>e.$onRenderResolve$=i))},jv=(e,t)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return BL(e,e.$ancestorComponent$),bq(()=>oq(e,t))},oq=(e,t)=>{const i=Uc("scheduleUpdate",e.$cmpMeta$.$tagName$),l=e.$lazyInstance$;let h;return t&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([f,_])=>ad(l,f,_)),e.$queuedListeners$=null),h=ad(l,"componentWillLoad")),h=VL(h,()=>ad(l,"componentWillRender")),i(),VL(h,()=>sq(e,l,t))},sq=async(e,t,i)=>{const l=e.$hostElement$,h=Uc("update",e.$cmpMeta$.$tagName$),f=l["s-rc"];i&&tq(e);const _=Uc("render",e.$cmpMeta$.$tagName$);aq(e,t),f&&(f.map(o=>o()),l["s-rc"]=void 0),_(),h();{const o=l["s-p"],I=()=>lq(e);o.length===0?I():(Promise.all(o).then(I),e.$flags$|=4,o.length=0)}},aq=(e,t,i)=>{try{t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,rq(e,t)}catch(l){ld(l,e.$hostElement$)}return null},lq=e=>{const t=e.$cmpMeta$.$tagName$,i=e.$hostElement$,l=Uc("postUpdate",t),h=e.$lazyInstance$,f=e.$ancestorComponent$;ad(h,"componentDidRender"),e.$flags$&64?l():(e.$flags$|=64,HL(i),ad(h,"componentDidLoad"),l(),e.$onReadyResolve$(i),f||UL()),e.$onInstanceResolve$(i),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&W4(()=>jv(e,!1)),e.$flags$&=-517},Y4=e=>{{const t=$u(e),i=t.$hostElement$.isConnected;return i&&(t.$flags$&18)===2&&jv(t,!1),i}},UL=e=>{HL($l.documentElement),W4(()=>NL(f1,"appload",{detail:{namespace:$W}}))},ad=(e,t,i)=>{if(e&&e[t])try{return e[t](i)}catch(l){ld(l)}},VL=(e,t)=>e&&e.then?e.then(t):t(),HL=e=>e.classList.add("hydrated"),cq=(e,t)=>$u(e).$instanceValues$.get(t),uq=(e,t,i,l)=>{const h=$u(e),f=h.$hostElement$,_=h.$instanceValues$.get(t),o=h.$flags$,I=h.$lazyInstance$;i=XW(i,l.$members$[t][0]);const D=Number.isNaN(_)&&Number.isNaN(i),O=i!==_&&!D;if((!(o&8)||_===void 0)&&O&&(h.$instanceValues$.set(t,i),I)){if(l.$watchers$&&o&128){const P=l.$watchers$[t];P&&P.map(F=>{try{I[F](i,_,t)}catch(Q){ld(Q,f)}})}(o&18)===2&&jv(h,!1)}},QL=(e,t,i)=>{if(t.$members$){e.watchers&&(t.$watchers$=e.watchers);const l=Object.entries(t.$members$),h=e.prototype;if(l.map(([f,[_]])=>{_&31||i&2&&_&32?Object.defineProperty(h,f,{get(){return cq(this,f)},set(o){uq(this,f,o,t)},configurable:!0,enumerable:!0}):i&1&&_&64&&Object.defineProperty(h,f,{value(...o){const I=$u(this);return I.$onInstancePromise$.then(()=>I.$lazyInstance$[f](...o))}})}),i&1){const f=new Map;h.attributeChangedCallback=function(_,o,I){as.jmp(()=>{const D=f.get(_);if(this.hasOwnProperty(D))I=this[D],delete this[D];else if(h.hasOwnProperty(D)&&typeof this[D]=="number"&&this[D]==I)return;this[D]=I===null&&typeof this[D]=="boolean"?!1:I})},e.observedAttributes=l.filter(([_,o])=>o[0]&15).map(([_,o])=>{const I=o[1]||_;return f.set(I,_),o[0]&512&&t.$attrsToReflect$.push([_,I]),I})}}return e},hq=async(e,t,i,l,h)=>{if(!(t.$flags$&32)){{if(t.$flags$|=32,h=vq(i),h.then){const I=YW();h=await h,I()}h.isProxied||(i.$watchers$=h.watchers,QL(h,i,2),h.isProxied=!0);const o=Uc("createInstance",i.$tagName$);t.$flags$|=8;try{new h(t)}catch(I){ld(I)}t.$flags$&=-9,t.$flags$|=128,o(),$L(t.$lazyInstance$)}if(h.style){let o=h.style;const I=zL(i);if(!Pv.has(I)){const D=Uc("registerStyles",i.$tagName$);JW(I,o,!!(i.$flags$&1)),D()}}}const f=t.$ancestorComponent$,_=()=>jv(t,!0);f&&f["s-rc"]?f["s-rc"].push(_):_()},$L=e=>{ad(e,"connectedCallback")},dq=e=>{if(!(as.$flags$&1)){const t=$u(e),i=t.$cmpMeta$,l=Uc("connectedCallback",i.$tagName$);if(t.$flags$&1)YL(e,t,i.$listeners$),$L(t.$lazyInstance$);else{t.$flags$|=1;{let h=e;for(;h=h.parentNode||h.host;)if(h["s-p"]){BL(t,t.$ancestorComponent$=h);break}}i.$members$&&Object.entries(i.$members$).map(([h,[f]])=>{if(f&31&&e.hasOwnProperty(h)){const _=e[h];delete e[h],e[h]=_}}),hq(e,t,i)}l()}},fq=e=>{if(!(as.$flags$&1)){const t=$u(e),i=t.$lazyInstance$;t.$rmListeners$&&(t.$rmListeners$.map(l=>l()),t.$rmListeners$=void 0),ad(i,"disconnectedCallback")}},pq=(e,t={})=>{var i;const l=Uc(),h=[],f=t.exclude||[],_=f1.customElements,o=$l.head,I=o.querySelector("meta[charset]"),D=$l.createElement("style"),O=[];let P,F=!0;Object.assign(as,t),as.$resourcesUrl$=new URL(t.resourcesUrl||"./",$l.baseURI).href,e.map(Q=>{Q[1].map(J=>{const ae={$flags$:J[0],$tagName$:J[1],$members$:J[2],$listeners$:J[3]};ae.$members$=J[2],ae.$listeners$=J[3],ae.$attrsToReflect$=[],ae.$watchers$={};const Ne=ae.$tagName$,oe=class extends HTMLElement{constructor(Z){super(Z),Z=this,_q(Z,ae),ae.$flags$&1&&Z.attachShadow({mode:"open"})}connectedCallback(){P&&(clearTimeout(P),P=null),F?O.push(this):as.jmp(()=>dq(this))}disconnectedCallback(){as.jmp(()=>fq(this))}componentOnReady(){return $u(this).$onReadyPromise$}};ae.$lazyBundleId$=Q[0],!f.includes(Ne)&&!_.get(Ne)&&(h.push(Ne),_.define(Ne,QL(oe,ae,1)))})});{D.innerHTML=h+GW,D.setAttribute("data-styles","");const Q=(i=as.$nonce$)!==null&&i!==void 0?i:EL($l);Q!=null&&D.setAttribute("nonce",Q),o.insertBefore(D,I?I.nextSibling:o.firstChild)}F=!1,O.length?O.map(Q=>Q.connectedCallback()):as.jmp(()=>P=setTimeout(UL,30)),l()},YL=(e,t,i,l)=>{i&&i.map(([h,f,_])=>{const o=mq(e,h),I=gq(t,_),D=yq(h);as.ael(o,f,I,D),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>as.rel(o,f,I,D))})},gq=(e,t)=>i=>{try{e.$flags$&256?e.$lazyInstance$[t](i):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,i])}catch(l){ld(l)}},mq=(e,t)=>t&8?f1:e,yq=e=>(e&2)!==0,G4=new WeakMap,$u=e=>G4.get(e),Sr=(e,t)=>G4.set(t.$lazyInstance$=e,t),_q=(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"]=[],YL(e,i,t.$listeners$),G4.set(e,i)},GL=(e,t)=>t in e,ld=(e,t)=>(0,console.error)(e,t),ZL=new Map,vq=(e,t,i)=>{const l=e.$tagName$.replace(/-/g,"_"),h=e.$lazyBundleId$,f=ZL.get(h);if(f)return f[l];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return QW(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>Mae),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>Sae),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>Dae),"./mi-column.entry.js":()=>Promise.resolve().then(()=>Aae),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Lae),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>Bae),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Hae),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>Qae),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Xae),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>ele),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>dle),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>ple),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>mle),"./mi-list.entry.js":()=>Promise.resolve().then(()=>_le),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Hfe),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>$fe),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Xfe),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>npe),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>rpe),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>vpe),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>wpe),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>Mpe),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>Tpe),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>Cpe),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>Ape),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>Npe),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>zpe),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Ope),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Bpe),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>Vpe),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>Qpe),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Ype),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>Gpe),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Wpe),"./mi-time.entry.js":()=>Promise.resolve().then(()=>qpe)}),`./${h}.entry.js`).then(_=>(ZL.set(h,_),_[l]),ld)},Pv=new Map,f1=typeof window<"u"?window:{},$l=f1.document||{head:{}},as={$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)},WL=e=>Promise.resolve(e),xq=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),qL=[],KL=[],wq=(e,t)=>i=>{e.push(i),H4||(H4=!0,t&&as.$flags$&4?W4(Z4):as.raf(Z4))},XL=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(i){ld(i)}e.length=0},Z4=()=>{XL(qL),XL(KL),(H4=qL.length>0)&&as.raf(Z4)},W4=e=>WL().then(e),bq=wq(KL,!0),Mq=()=>WL(),JL=(e,t)=>typeof window>"u"?Promise.resolve():Mq().then(()=>pq([["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"],unit:[1],showToggleButton:[4,"show-toggle-button"],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32],openSubsteps:[64],closeSubsteps:[64]}]]],["mi-route-instructions-heading",[[1,"mi-route-instructions-heading",{originName:[1,"origin-name"],destinationName:[1,"destination-name"],totalTravelTime:[2,"total-travel-time"],totalWalkingDistance:[2,"total-walking-distance"],travelMode:[1,"travel-mode"],unit:[1],translations:[16]}]]],["mi-list",[[1,"mi-list",{scrollButtonsEnabled:[4,"scroll-buttons-enabled"],scrollLength:[2,"scroll-length"]},[[0,"listItemDidRender","updateScrollButtonsState"]]]]],["mi-list-item-location",[[1,"mi-list-item-location",{location:[8],showExternalId:[4,"show-external-id"],unit:[1],icon:[1],level:[1],iconBadge:[1,"icon-badge"],iconBadgeValue:[1,"icon-badge-value"],iconURLToRender:[32]}]]],["mi-metric-card",[[1,"mi-metric-card",{label:[1],value:[1],tip:[1],spinner:[4],error:[1],showToolTip:[32]}]]],["mi-location-booking",[[1,"mi-location-booking",{location:[16],duration:[2],translations:[16],show:[2],startHour:[2,"start-hour"],stopHour:[2,"stop-hour"],bookingTitle:[1,"booking-title"],timeSlots:[32]}]]],["mi-share-sms",[[0,"mi-share-sms",{venueId:[1,"venue"],originLocationId:[1,"origin"],destinationLocationId:[1,"destination"],countryCode:[1,"country-code"],phoneNumberInputPlaceholder:[1,"input-placeholder"],submitButtonLabel:[1,"submit-button-label"]}]]],["combo-box-item",[[0,"combo-box-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-chip",[[0,"mi-chip",{icon:[1],content:[1],backgroundColor:[1,"background-color"],active:[4]}]]],["mi-column",[[1,"mi-column",{monospace:[4],alignContent:[1,"align-content"],label:[1],sortable:[1],sort:[1],binding:[1],fitContent:[4,"fit-content"],width:[1]},[[0,"cellContentClicked","cellContentClickedHandler"]]]]],["mi-combo-box",[[1,"mi-combo-box",{open:[4],items:[16],itemsOrder:[1,"items-order"],filterable:[4],selected:[16],noResultsMessage:[1,"no-results-message"],disabled:[4],currentItems:[32]},[[8,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-data-table",[[1,"mi-data-table",{rows:[16],maxRows:[2,"max-rows"],page:[2],selectable:[4],selected:[16],emptyPageHeader:[1,"empty-page-header"],emptyPageSubheader:[1,"empty-page-subheader"],isHeaderSticky:[4,"sticky-header"],numberOfSelectedRows:[32],tableRows:[32],currentPage:[32],sortByColumn:[32]}]]],["mi-dropdown",[[1,"mi-dropdown",{open:[4],items:[16],itemsOrder:[1,"items-order"],label:[1],filterable:[4],placeholder:[1],multiple:[4],selected:[16],noResultsMessage:[1,"no-results-message"],iconSrc:[1,"icon"],iconAlt:[1,"icon-alt"],dropdownAlignment:[1,"alignment"],disabled:[4],currentItems:[32],clearFilter:[64]},[[8,"keydown","handleKeyDown"],[10,"click","checkForClickOutside"],[1,"mousemove","mouseMoveEventHandler"],[11,"scroll","scrollEventHandler"],[11,"resize","resizeEventHandler"]]]]],["mi-dropdown-item",[[0,"mi-dropdown-item",{selected:[4],disabled:[4],excludefromall:[4],value:[1],text:[1]}]]],["mi-floor-selector",[[0,"mi-floor-selector",{mapsindoors:[8],primaryColor:[1,"primary-color"],floors:[32],currentFloor:[32],floorSelectorClosed:[32],fadeFloorSelectorOnTop:[32],fadeFloorSelectorOnBottom:[32]}]]],["mi-list-item-category",[[1,"mi-list-item-category",{category:[8],orientation:[513]}]]],["mi-map-googlemaps",[[1,"mi-map-googlemaps",{gmApiKey:[1,"gm-api-key"],miApiKey:[1,"mi-api-key"],gmOptions:[16],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],language:[1],polylineOptions:[16],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-map-mapbox",[[1,"mi-map-mapbox",{accessToken:[1,"access-token"],miApiKey:[1,"mi-api-key"],disableExternalLinks:[4,"disable-external-links"],floorSelectorControlPosition:[1,"floor-selector-control-position"],floorIndex:[1537,"floor-index"],myPositionControlPosition:[1,"my-position-control-position"],polygonHighlightOptions:[16],polylineOptions:[16],zoom:[1537],maxPitch:[1538,"max-pitch"],maxZoom:[1537,"max-zoom"],bearing:[1537],pitch:[1537],language:[1],getMapInstance:[64],getMapsIndoorsInstance:[64],getDirectionsServiceInstance:[64],getDirectionsRendererInstance:[64],highlightLocation:[64],clearHighlightLocation:[64]}]]],["mi-my-position",[[0,"mi-my-position",{mapsindoors:[8],myPositionOptions:[8,"my-position-options"],customPositionProvider:[16],positionState:[32],setPosition:[64],watchPosition:[64]}]]],["mi-notification",[[1,"mi-notification",{position:[1],duration:[2],push:[64],clearAll:[64]}]]],["mi-search",[[0,"mi-search",{placeholder:[1],idAttribute:[1,"id-attribute"],dataAttributes:[16],mapsindoors:[4],google:[4],mapbox:[4],language:[1],miFields:[1,"mi-fields"],miTake:[2,"mi-take"],miSkip:[2,"mi-skip"],miOrder:[1,"mi-order"],miCategories:[1,"mi-categories"],miNear:[1,"mi-near"],miVenue:[1,"mi-venue"],gmCountryCode:[1,"gm-country-code"],value:[1537],disabled:[4],sessionToken:[1,"session-token"],userPosition:[1,"user-position"],clear:[64],triggerSearch:[64],setDisplayText:[64],focusInput:[64],getInputField:[64]}]]],["mi-step-switcher",[[1,"mi-step-switcher",{heading:[1],steps:[16],stepIndex:[514,"step-index"]}]]],["mi-tab",[[1,"mi-tab",{label:[1],tabFor:[1,"tab-for"]}]]],["mi-tab-panel",[[1,"mi-tab-panel",{isActive:[32],active:[64]}]]],["mi-tabs",[[1,"mi-tabs",{active:[2],bordered:[4],tabs:[32]}]]],["mi-distance_2",[[1,"mi-distance",{meters:[2],unit:[1]}],[1,"mi-icon",{iconName:[1,"icon-name"]}]]],["mi-route-instructions-step-legacy",[[1,"mi-route-instructions-step-legacy",{step:[1],hideIndoorSubsteps:[4,"hide-indoor-substeps"],fromRouteContext:[1,"from-route-context"],fromTravelMode:[1,"from-travel-mode"],fromTransitStop:[1,"from-transit-stop"],unit:[1],translations:[1],stepData:[32],translationsData:[32],substepsAreOpen:[32]}]]],["mi-route-instructions-maneuver",[[1,"mi-route-instructions-maneuver",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-scroll-buttons",[[1,"mi-scroll-buttons",{scrollContainerElementRef:[16],scrollLength:[2,"scroll-length"],updateScrollButtons:[64],updateScrollButtonsState:[64]}]]],["mi-keyboard",[[0,"mi-keyboard",{inputElement:[16],layout:[1],language:[1],clearInputField:[64]}]]],["mi-route-instructions-maneuver-legacy",[[1,"mi-route-instructions-maneuver-legacy",{maneuver:[1],translations:[1],unit:[1],maneuverData:[32],translationsData:[32]}]]],["mi-card_2",[[1,"mi-card"],[1,"mi-spinner",{inverse:[4]}]]],["mi-location-info",[[1,"mi-location-info",{location:[8],level:[1],showExternalId:[4,"show-external-id"],showFloor:[4,"show-floor"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],t)),Iq={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class Rv{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,i)}init(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=t||Iq,this.options=i,this.debug=i.debug}log(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"log","",!0)}warn(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"warn","",!0)}error(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"error","")}deprecate(){for(var t=arguments.length,i=new Array(t),l=0;l<t;l++)i[l]=arguments[l];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(t,i,l,h){return h&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${l}${this.prefix} ${t[0]}`),this.logger[i](t))}create(t){return new Rv(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Rv(this.logger,t)}}var Yl=new Rv;class Fv{constructor(){this.observers={}}on(t,i){return t.split(" ").forEach(l=>{this.observers[l]=this.observers[l]||[],this.observers[l].push(i)}),this}off(t,i){if(this.observers[t]){if(!i){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(l=>l!==i)}}emit(t){for(var i=arguments.length,l=new Array(i>1?i-1:0),h=1;h<i;h++)l[h-1]=arguments[h];this.observers[t]&&[].concat(this.observers[t]).forEach(_=>{_(...l)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(_=>{_.apply(_,[t,...l])})}}function p1(){let e,t;const i=new Promise((l,h)=>{e=l,t=h});return i.resolve=e,i.reject=t,i}function ez(e){return e==null?"":""+e}function Tq(e,t,i){e.forEach(l=>{t[l]&&(i[l]=t[l])})}function q4(e,t,i){function l(_){return _&&_.indexOf("###")>-1?_.replace(/###/g,"."):_}function h(){return!e||typeof e=="string"}const f=typeof t!="string"?[].concat(t):t.split(".");for(;f.length>1;){if(h())return{};const _=l(f.shift());!e[_]&&i&&(e[_]=new i),Object.prototype.hasOwnProperty.call(e,_)?e=e[_]:e={}}return h()?{}:{obj:e,k:l(f.shift())}}function tz(e,t,i){const{obj:l,k:h}=q4(e,t,Object);l[h]=i}function Sq(e,t,i,l){const{obj:h,k:f}=q4(e,t,Object);h[f]=h[f]||[],l&&(h[f]=h[f].concat(i)),l||h[f].push(i)}function Bv(e,t){const{obj:i,k:l}=q4(e,t);if(i)return i[l]}function Cq(e,t,i){const l=Bv(e,i);return l!==void 0?l:Bv(t,i)}function nz(e,t,i){for(const l in t)l!=="__proto__"&&l!=="constructor"&&(l in e?typeof e[l]=="string"||e[l]instanceof String||typeof t[l]=="string"||t[l]instanceof String?i&&(e[l]=t[l]):nz(e[l],t[l],i):e[l]=t[l]);return e}function Kf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Dq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Aq(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>Dq[t]):e}const Eq=[" ",",","?","!",";"];function Nq(e,t,i){t=t||"",i=i||"";const l=Eq.filter(_=>t.indexOf(_)<0&&i.indexOf(_)<0);if(l.length===0)return!0;const h=new RegExp(`(${l.map(_=>_==="?"?"\\?":_).join("|")})`);let f=!h.test(e);if(!f){const _=e.indexOf(i);_>0&&!h.test(e.substring(0,_))&&(f=!0)}return f}function Uv(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const l=t.split(i);let h=e;for(let f=0;f<l.length;++f){if(!h||typeof h[l[f]]=="string"&&f+1<l.length)return;if(h[l[f]]===void 0){let _=2,o=l.slice(f,f+_).join(i),I=h[o];for(;I===void 0&&l.length>f+_;)_++,o=l.slice(f,f+_).join(i),I=h[o];if(I===void 0)return;if(I===null)return null;if(t.endsWith(o)){if(typeof I=="string")return I;if(o&&typeof I[o]=="string")return I[o]}const D=l.slice(f+_).join(i);return D?Uv(I,D,i):void 0}h=h[l[f]]}return h}function Vv(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class iz extends Fv{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const i=this.options.ns.indexOf(t);i>-1&&this.options.ns.splice(i,1)}getResource(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const f=h.keySeparator!==void 0?h.keySeparator:this.options.keySeparator,_=h.ignoreJSONStructure!==void 0?h.ignoreJSONStructure:this.options.ignoreJSONStructure;let o=[t,i];l&&typeof l!="string"&&(o=o.concat(l)),l&&typeof l=="string"&&(o=o.concat(f?l.split(f):l)),t.indexOf(".")>-1&&(o=t.split("."));const I=Bv(this.data,o);return I||!_||typeof l!="string"?I:Uv(this.data&&this.data[t]&&this.data[t][i],l,f)}addResource(t,i,l,h){let f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const _=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let o=[t,i];l&&(o=o.concat(_?l.split(_):l)),t.indexOf(".")>-1&&(o=t.split("."),h=i,i=o[1]),this.addNamespaces(i),tz(this.data,o,h),f.silent||this.emit("added",t,i,l,h)}addResources(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const f in l)(typeof l[f]=="string"||Object.prototype.toString.apply(l[f])==="[object Array]")&&this.addResource(t,i,f,l[f],{silent:!0});h.silent||this.emit("added",t,i,l)}addResourceBundle(t,i,l,h,f){let _=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},o=[t,i];t.indexOf(".")>-1&&(o=t.split("."),h=l,l=i,i=o[1]),this.addNamespaces(i);let I=Bv(this.data,o)||{};h?nz(I,l,f):I={...I,...l},tz(this.data,o,I),_.silent||this.emit("added",t,i,l)}removeResourceBundle(t,i){this.hasResourceBundle(t,i)&&delete this.data[t][i],this.removeNamespaces(i),this.emit("removed",t,i)}hasResourceBundle(t,i){return this.getResource(t,i)!==void 0}getResourceBundle(t,i){return i||(i=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,i)}:this.getResource(t,i)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const i=this.getDataByLanguage(t);return!!(i&&Object.keys(i)||[]).find(h=>i[h]&&Object.keys(i[h]).length>0)}toJSON(){return this.data}}var rz={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,i,l,h){return e.forEach(f=>{this.processors[f]&&(t=this.processors[f].process(t,i,l,h))}),t}};const oz={};class Hv extends Fv{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),Tq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=i,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Yl.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const l=this.resolve(t,i);return l&&l.res!==void 0}extractFromKey(t,i){let l=i.nsSeparator!==void 0?i.nsSeparator:this.options.nsSeparator;l===void 0&&(l=":");const h=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let f=i.ns||this.options.defaultNS||[];const _=l&&t.indexOf(l)>-1,o=!this.options.userDefinedKeySeparator&&!i.keySeparator&&!this.options.userDefinedNsSeparator&&!i.nsSeparator&&!Nq(t,l,h);if(_&&!o){const I=t.match(this.interpolator.nestingRegexp);if(I&&I.length>0)return{key:t,namespaces:f};const D=t.split(l);(l!==h||l===h&&this.options.ns.indexOf(D[0])>-1)&&(f=D.shift()),t=D.join(h)}return typeof f=="string"&&(f=[f]),{key:t,namespaces:f}}translate(t,i,l){if(typeof i!="object"&&this.options.overloadTranslationOptionHandler&&(i=this.options.overloadTranslationOptionHandler(arguments)),typeof i=="object"&&(i={...i}),i||(i={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const h=i.returnDetails!==void 0?i.returnDetails:this.options.returnDetails,f=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,{key:_,namespaces:o}=this.extractFromKey(t[t.length-1],i),I=o[o.length-1],D=i.lng||this.language,O=i.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(D&&D.toLowerCase()==="cimode"){if(O){const se=i.nsSeparator||this.options.nsSeparator;return h?{res:`${I}${se}${_}`,usedKey:_,exactUsedKey:_,usedLng:D,usedNS:I,usedParams:this.getUsedParamsDetails(i)}:`${I}${se}${_}`}return h?{res:_,usedKey:_,exactUsedKey:_,usedLng:D,usedNS:I,usedParams:this.getUsedParamsDetails(i)}:_}const P=this.resolve(t,i);let F=P&&P.res;const Q=P&&P.usedKey||_,J=P&&P.exactUsedKey||_,ae=Object.prototype.toString.apply(F),Ne=["[object Number]","[object Function]","[object RegExp]"],oe=i.joinArrays!==void 0?i.joinArrays:this.options.joinArrays,Z=!this.i18nFormat||this.i18nFormat.handleAsObject;if(Z&&F&&(typeof F!="string"&&typeof F!="boolean"&&typeof F!="number")&&Ne.indexOf(ae)<0&&!(typeof oe=="string"&&ae==="[object Array]")){if(!i.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const se=this.options.returnedObjectHandler?this.options.returnedObjectHandler(Q,F,{...i,ns:o}):`key '${_} (${this.language})' returned an object instead of string.`;return h?(P.res=se,P.usedParams=this.getUsedParamsDetails(i),P):se}if(f){const se=ae==="[object Array]",ve=se?[]:{},ue=se?J:Q;for(const Be in F)if(Object.prototype.hasOwnProperty.call(F,Be)){const $e=`${ue}${f}${Be}`;ve[Be]=this.translate($e,{...i,joinArrays:!1,ns:o}),ve[Be]===$e&&(ve[Be]=F[Be])}F=ve}}else if(Z&&typeof oe=="string"&&ae==="[object Array]")F=F.join(oe),F&&(F=this.extendTranslation(F,t,i,l));else{let se=!1,ve=!1;const ue=i.count!==void 0&&typeof i.count!="string",Be=Hv.hasDefaultValue(i),$e=ue?this.pluralResolver.getSuffix(D,i.count,i):"",Ue=i.ordinal&&ue?this.pluralResolver.getSuffix(D,i.count,{ordinal:!1}):"",Fe=i[`defaultValue${$e}`]||i[`defaultValue${Ue}`]||i.defaultValue;!this.isValidLookup(F)&&Be&&(se=!0,F=Fe),this.isValidLookup(F)||(ve=!0,F=_);const ct=(i.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&ve?void 0:F,yt=Be&&Fe!==F&&this.options.updateMissing;if(ve||se||yt){if(this.logger.log(yt?"updateKey":"missingKey",D,I,_,yt?Fe:F),f){const Ft=this.resolve(_,{...i,keySeparator:!1});Ft&&Ft.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Ht=[];const _t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,i.lng||this.language);if(this.options.saveMissingTo==="fallback"&&_t&&_t[0])for(let Ft=0;Ft<_t.length;Ft++)Ht.push(_t[Ft]);else this.options.saveMissingTo==="all"?Ht=this.languageUtils.toResolveHierarchy(i.lng||this.language):Ht.push(i.lng||this.language);const wt=(Ft,gt,Rt)=>{const H=Be&&Rt!==F?Rt:ct;this.options.missingKeyHandler?this.options.missingKeyHandler(Ft,I,gt,H,yt,i):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ft,I,gt,H,yt,i),this.emit("missingKey",Ft,I,gt,F)};this.options.saveMissing&&(this.options.saveMissingPlurals&&ue?Ht.forEach(Ft=>{this.pluralResolver.getSuffixes(Ft,i).forEach(gt=>{wt([Ft],_+gt,i[`defaultValue${gt}`]||Fe)})}):wt(Ht,_,Fe))}F=this.extendTranslation(F,t,i,P,l),ve&&F===_&&this.options.appendNamespaceToMissingKey&&(F=`${I}:${_}`),(ve||se)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?F=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${I}:${_}`:_,se?F:void 0):F=this.options.parseMissingKeyHandler(F))}return h?(P.res=F,P.usedParams=this.getUsedParamsDetails(i),P):F}extendTranslation(t,i,l,h,f){var _=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...l},l.lng||this.language||h.usedLng,h.usedNS,h.usedKey,{resolved:h});else if(!l.skipInterpolation){l.interpolation&&this.interpolator.init({...l,interpolation:{...this.options.interpolation,...l.interpolation}});const D=typeof t=="string"&&(l&&l.interpolation&&l.interpolation.skipOnVariables!==void 0?l.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let O;if(D){const F=t.match(this.interpolator.nestingRegexp);O=F&&F.length}let P=l.replace&&typeof l.replace!="string"?l.replace:l;if(this.options.interpolation.defaultVariables&&(P={...this.options.interpolation.defaultVariables,...P}),t=this.interpolator.interpolate(t,P,l.lng||this.language,l),D){const F=t.match(this.interpolator.nestingRegexp),Q=F&&F.length;O<Q&&(l.nest=!1)}!l.lng&&this.options.compatibilityAPI!=="v1"&&h&&h.res&&(l.lng=h.usedLng),l.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var F=arguments.length,Q=new Array(F),J=0;J<F;J++)Q[J]=arguments[J];return f&&f[0]===Q[0]&&!l.context?(_.logger.warn(`It seems you are nesting recursively key: ${Q[0]} in key: ${i[0]}`),null):_.translate(...Q,i)},l)),l.interpolation&&this.interpolator.reset()}const o=l.postProcess||this.options.postProcess,I=typeof o=="string"?[o]:o;return t!=null&&I&&I.length&&l.applyPostProcessor!==!1&&(t=rz.handle(I,t,i,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...h,usedParams:this.getUsedParamsDetails(l)},...l}:l,this)),t}resolve(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,h,f,_,o;return typeof t=="string"&&(t=[t]),t.forEach(I=>{if(this.isValidLookup(l))return;const D=this.extractFromKey(I,i),O=D.key;h=O;let P=D.namespaces;this.options.fallbackNS&&(P=P.concat(this.options.fallbackNS));const F=i.count!==void 0&&typeof i.count!="string",Q=F&&!i.ordinal&&i.count===0&&this.pluralResolver.shouldUseIntlApi(),J=i.context!==void 0&&(typeof i.context=="string"||typeof i.context=="number")&&i.context!=="",ae=i.lngs?i.lngs:this.languageUtils.toResolveHierarchy(i.lng||this.language,i.fallbackLng);P.forEach(Ne=>{this.isValidLookup(l)||(o=Ne,!oz[`${ae[0]}-${Ne}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(oz[`${ae[0]}-${Ne}`]=!0,this.logger.warn(`key "${h}" for languages "${ae.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ae.forEach(oe=>{if(this.isValidLookup(l))return;_=oe;const Z=[O];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(Z,O,oe,Ne,i);else{let se;F&&(se=this.pluralResolver.getSuffix(oe,i.count,i));const ve=`${this.options.pluralSeparator}zero`,ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(F&&(Z.push(O+se),i.ordinal&&se.indexOf(ue)===0&&Z.push(O+se.replace(ue,this.options.pluralSeparator)),Q&&Z.push(O+ve)),J){const Be=`${O}${this.options.contextSeparator}${i.context}`;Z.push(Be),F&&(Z.push(Be+se),i.ordinal&&se.indexOf(ue)===0&&Z.push(Be+se.replace(ue,this.options.pluralSeparator)),Q&&Z.push(Be+ve))}}let W;for(;W=Z.pop();)this.isValidLookup(l)||(f=W,l=this.getResource(oe,Ne,W,i))}))})}),{res:l,usedKey:h,exactUsedKey:f,usedLng:_,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,i,l,h):this.resourceStore.getResource(t,i,l,h)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],l=t.replace&&typeof t.replace!="string";let h=l?t.replace:t;if(l&&typeof t.count<"u"&&(h.count=t.count),this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),!l){h={...h};for(const f of i)delete h[f]}return h}static hasDefaultValue(t){const i="defaultValue";for(const l in t)if(Object.prototype.hasOwnProperty.call(t,l)&&i===l.substring(0,i.length)&&t[l]!==void 0)return!0;return!1}}function K4(e){return e.charAt(0).toUpperCase()+e.slice(1)}class sz{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Yl.create("languageUtils")}getScriptPartFromCode(t){if(t=Vv(t),!t||t.indexOf("-")<0)return null;const i=t.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))}getLanguagePartFromCode(t){if(t=Vv(t),!t||t.indexOf("-")<0)return t;const i=t.split("-");return this.formatLanguageCode(i[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const i=["hans","hant","latn","cyrl","cans","mong","arab"];let l=t.split("-");return this.options.lowerCaseLng?l=l.map(h=>h.toLowerCase()):l.length===2?(l[0]=l[0].toLowerCase(),l[1]=l[1].toUpperCase(),i.indexOf(l[1].toLowerCase())>-1&&(l[1]=K4(l[1].toLowerCase()))):l.length===3&&(l[0]=l[0].toLowerCase(),l[1].length===2&&(l[1]=l[1].toUpperCase()),l[0]!=="sgn"&&l[2].length===2&&(l[2]=l[2].toUpperCase()),i.indexOf(l[1].toLowerCase())>-1&&(l[1]=K4(l[1].toLowerCase())),i.indexOf(l[2].toLowerCase())>-1&&(l[2]=K4(l[2].toLowerCase()))),l.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let i;return t.forEach(l=>{if(i)return;const h=this.formatLanguageCode(l);(!this.options.supportedLngs||this.isSupportedCode(h))&&(i=h)}),!i&&this.options.supportedLngs&&t.forEach(l=>{if(i)return;const h=this.getLanguagePartFromCode(l);if(this.isSupportedCode(h))return i=h;i=this.options.supportedLngs.find(f=>{if(f===h)return f;if(!(f.indexOf("-")<0&&h.indexOf("-")<0)&&f.indexOf(h)===0)return f})}),i||(i=this.getFallbackCodes(this.options.fallbackLng)[0]),i}getFallbackCodes(t,i){if(!t)return[];if(typeof t=="function"&&(t=t(i)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!i)return t.default||[];let l=t[i];return l||(l=t[this.getScriptPartFromCode(i)]),l||(l=t[this.formatLanguageCode(i)]),l||(l=t[this.getLanguagePartFromCode(i)]),l||(l=t.default),l||[]}toResolveHierarchy(t,i){const l=this.getFallbackCodes(i||this.options.fallbackLng||[],t),h=[],f=_=>{_&&(this.isSupportedCode(_)?h.push(_):this.logger.warn(`rejecting language code not found in supportedLngs: ${_}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(t))):typeof t=="string"&&f(this.formatLanguageCode(t)),l.forEach(_=>{h.indexOf(_)<0&&f(this.formatLanguageCode(_))}),h}}let Lq=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],zq={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const kq=["v1","v2","v3"],Oq=["v4"],az={zero:0,one:1,two:2,few:3,many:4,other:5};function jq(){const e={};return Lq.forEach(t=>{t.lngs.forEach(i=>{e[i]={numbers:t.nr,plurals:zq[t.fc]}})}),e}class Pq{constructor(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=i,this.logger=Yl.create("pluralResolver"),(!this.options.compatibilityJSON||Oq.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=jq()}addRule(t,i){this.rules[t]=i}getRule(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(Vv(t),{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const l=this.getRule(t,i);return this.shouldUseIntlApi()?l&&l.resolvedOptions().pluralCategories.length>1:l&&l.numbers.length>1}getPluralFormsOfKey(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,l).map(h=>`${i}${h}`)}getSuffixes(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const l=this.getRule(t,i);return l?this.shouldUseIntlApi()?l.resolvedOptions().pluralCategories.sort((h,f)=>az[h]-az[f]).map(h=>`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${h}`):l.numbers.map(h=>this.getSuffix(t,h,i)):[]}getSuffix(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const h=this.getRule(t,l);return h?this.shouldUseIntlApi()?`${this.options.prepend}${l.ordinal?`ordinal${this.options.prepend}`:""}${h.select(i)}`:this.getSuffixRetroCompatible(h,i):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,i){const l=t.noAbs?t.plurals(i):t.plurals(Math.abs(i));let h=t.numbers[l];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(h===2?h="plural":h===1&&(h=""));const f=()=>this.options.prepend&&h.toString()?this.options.prepend+h.toString():h.toString();return this.options.compatibilityJSON==="v1"?h===1?"":typeof h=="number"?`_plural_${h.toString()}`:f():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?f():this.options.prepend&&l.toString()?this.options.prepend+l.toString():l.toString()}shouldUseIntlApi(){return!kq.includes(this.options.compatibilityJSON)}}function lz(e,t,i){let l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",h=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,f=Cq(e,t,i);return!f&&h&&typeof i=="string"&&(f=Uv(e,i,l),f===void 0&&(f=Uv(t,i,l))),f}class Rq{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yl.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(i=>i),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const i=t.interpolation;this.escape=i.escape!==void 0?i.escape:Aq,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?Kf(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?Kf(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?Kf(i.nestingPrefix):i.nestingPrefixEscaped||Kf("$t("),this.nestingSuffix=i.nestingSuffix?Kf(i.nestingSuffix):i.nestingSuffixEscaped||Kf(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const i=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(i,"g");const l=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(l,"g")}interpolate(t,i,l,h){let f,_,o;const I=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function D(J){return J.replace(/\$/g,"$$$$")}const O=J=>{if(J.indexOf(this.formatSeparator)<0){const Z=lz(i,I,J,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(Z,void 0,l,{...h,...i,interpolationkey:J}):Z}const ae=J.split(this.formatSeparator),Ne=ae.shift().trim(),oe=ae.join(this.formatSeparator).trim();return this.format(lz(i,I,Ne,this.options.keySeparator,this.options.ignoreJSONStructure),oe,l,{...h,...i,interpolationkey:Ne})};this.resetRegExp();const P=h&&h.missingInterpolationHandler||this.options.missingInterpolationHandler,F=h&&h.interpolation&&h.interpolation.skipOnVariables!==void 0?h.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:J=>D(J)},{regex:this.regexp,safeValue:J=>this.escapeValue?D(this.escape(J)):D(J)}].forEach(J=>{for(o=0;f=J.regex.exec(t);){const ae=f[1].trim();if(_=O(ae),_===void 0)if(typeof P=="function"){const oe=P(t,f,h);_=typeof oe=="string"?oe:""}else if(h&&Object.prototype.hasOwnProperty.call(h,ae))_="";else if(F){_=f[0];continue}else this.logger.warn(`missed to pass in variable ${ae} for interpolating ${t}`),_="";else typeof _!="string"&&!this.useRawValueToEscape&&(_=ez(_));const Ne=J.safeValue(_);if(t=t.replace(f[0],Ne),F?(J.regex.lastIndex+=_.length,J.regex.lastIndex-=f[0].length):J.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h,f,_;function o(I,D){const O=this.nestingOptionsSeparator;if(I.indexOf(O)<0)return I;const P=I.split(new RegExp(`${O}[ ]*{`));let F=`{${P[1]}`;I=P[0],F=this.interpolate(F,_);const Q=F.match(/'/g),J=F.match(/"/g);(Q&&Q.length%2===0&&!J||J.length%2!==0)&&(F=F.replace(/'/g,'"'));try{_=JSON.parse(F),D&&(_={...D,..._})}catch(ae){return this.logger.warn(`failed parsing options string in nesting for key ${I}`,ae),`${I}${O}${F}`}return delete _.defaultValue,I}for(;h=this.nestingRegexp.exec(t);){let I=[];_={...l},_=_.replace&&typeof _.replace!="string"?_.replace:_,_.applyPostProcessor=!1,delete _.defaultValue;let D=!1;if(h[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(h[1])){const O=h[1].split(this.formatSeparator).map(P=>P.trim());h[1]=O.shift(),I=O,D=!0}if(f=i(o.call(this,h[1].trim(),_),_),f&&h[0]===t&&typeof f!="string")return f;typeof f!="string"&&(f=ez(f)),f||(this.logger.warn(`missed to resolve ${h[1]} for nesting ${t}`),f=""),D&&(f=I.reduce((O,P)=>this.format(O,P,l.lng,{...l,interpolationkey:h[1].trim()}),f.trim())),t=t.replace(h[0],f),this.regexp.lastIndex=0}return t}}function Fq(e){let t=e.toLowerCase().trim();const i={};if(e.indexOf("(")>-1){const l=e.split("(");t=l[0].toLowerCase().trim();const h=l[1].substring(0,l[1].length-1);t==="currency"&&h.indexOf(":")<0?i.currency||(i.currency=h.trim()):t==="relativetime"&&h.indexOf(":")<0?i.range||(i.range=h.trim()):h.split(";").forEach(_=>{if(!_)return;const[o,...I]=_.split(":"),D=I.join(":").trim().replace(/^'+|'+$/g,"");i[o.trim()]||(i[o.trim()]=D),D==="false"&&(i[o.trim()]=!1),D==="true"&&(i[o.trim()]=!0),isNaN(D)||(i[o.trim()]=parseInt(D,10))})}return{formatName:t,formatOptions:i}}function Xf(e){const t={};return function(l,h,f){const _=h+JSON.stringify(f);let o=t[_];return o||(o=e(Vv(h),f),t[_]=o),o(l)}}class Bq{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Yl.create("formatter"),this.options=t,this.formats={number:Xf((i,l)=>{const h=new Intl.NumberFormat(i,{...l});return f=>h.format(f)}),currency:Xf((i,l)=>{const h=new Intl.NumberFormat(i,{...l,style:"currency"});return f=>h.format(f)}),datetime:Xf((i,l)=>{const h=new Intl.DateTimeFormat(i,{...l});return f=>h.format(f)}),relativetime:Xf((i,l)=>{const h=new Intl.RelativeTimeFormat(i,{...l});return f=>h.format(f,l.range||"day")}),list:Xf((i,l)=>{const h=new Intl.ListFormat(i,{...l});return f=>h.format(f)})},this.init(t)}init(t){const l=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=l.formatSeparator?l.formatSeparator:l.formatSeparator||","}add(t,i){this.formats[t.toLowerCase().trim()]=i}addCached(t,i){this.formats[t.toLowerCase().trim()]=Xf(i)}format(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return i.split(this.formatSeparator).reduce((o,I)=>{const{formatName:D,formatOptions:O}=Fq(I);if(this.formats[D]){let P=o;try{const F=h&&h.formatParams&&h.formatParams[h.interpolationkey]||{},Q=F.locale||F.lng||h.locale||h.lng||l;P=this.formats[D](o,Q,{...O,...h,...F})}catch(F){this.logger.warn(F)}return P}else this.logger.warn(`there was no format function for ${D}`);return o},t)}}function Uq(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class Vq extends Fv{constructor(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=i,this.services=l,this.languageUtils=l.languageUtils,this.options=h,this.logger=Yl.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=h.maxParallelReads||10,this.readingCalls=0,this.maxRetries=h.maxRetries>=0?h.maxRetries:5,this.retryTimeout=h.retryTimeout>=1?h.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(l,h.backend,h)}queueLoad(t,i,l,h){const f={},_={},o={},I={};return t.forEach(D=>{let O=!0;i.forEach(P=>{const F=`${D}|${P}`;!l.reload&&this.store.hasResourceBundle(D,P)?this.state[F]=2:this.state[F]<0||(this.state[F]===1?_[F]===void 0&&(_[F]=!0):(this.state[F]=1,O=!1,_[F]===void 0&&(_[F]=!0),f[F]===void 0&&(f[F]=!0),I[P]===void 0&&(I[P]=!0)))}),O||(o[D]=!0)}),(Object.keys(f).length||Object.keys(_).length)&&this.queue.push({pending:_,pendingCount:Object.keys(_).length,loaded:{},errors:[],callback:h}),{toLoad:Object.keys(f),pending:Object.keys(_),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(I)}}loaded(t,i,l){const h=t.split("|"),f=h[0],_=h[1];i&&this.emit("failedLoading",f,_,i),l&&this.store.addResourceBundle(f,_,l),this.state[t]=i?-1:2;const o={};this.queue.forEach(I=>{Sq(I.loaded,[f],_),Uq(I,t),i&&I.errors.push(i),I.pendingCount===0&&!I.done&&(Object.keys(I.loaded).forEach(D=>{o[D]||(o[D]={});const O=I.loaded[D];O.length&&O.forEach(P=>{o[D][P]===void 0&&(o[D][P]=!0)})}),I.done=!0,I.errors.length?I.callback(I.errors):I.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(I=>!I.done)}read(t,i,l){let h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,f=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,_=arguments.length>5?arguments[5]:void 0;if(!t.length)return _(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:i,fcName:l,tried:h,wait:f,callback:_});return}this.readingCalls++;const o=(D,O)=>{if(this.readingCalls--,this.waitingReads.length>0){const P=this.waitingReads.shift();this.read(P.lng,P.ns,P.fcName,P.tried,P.wait,P.callback)}if(D&&O&&h<this.maxRetries){setTimeout(()=>{this.read.call(this,t,i,l,h+1,f*2,_)},f);return}_(D,O)},I=this.backend[l].bind(this.backend);if(I.length===2){try{const D=I(t,i);D&&typeof D.then=="function"?D.then(O=>o(null,O)).catch(o):o(null,D)}catch(D){o(D)}return}return I(t,i,o)}prepareLoading(t,i){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),h&&h();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof i=="string"&&(i=[i]);const f=this.queueLoad(t,i,l,h);if(!f.toLoad.length)return f.pending.length||h(),null;f.toLoad.forEach(_=>{this.loadOne(_)})}load(t,i,l){this.prepareLoading(t,i,{},l)}reload(t,i,l){this.prepareLoading(t,i,{reload:!0},l)}loadOne(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const l=t.split("|"),h=l[0],f=l[1];this.read(h,f,"read",void 0,void 0,(_,o)=>{_&&this.logger.warn(`${i}loading namespace ${f} for language ${h} failed`,_),!_&&o&&this.logger.log(`${i}loaded namespace ${f} for language ${h}`,o),this.loaded(t,_,o)})}saveMissing(t,i,l,h,f){let _=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(i)){this.logger.warn(`did not save key "${l}" as the namespace "${i}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(l==null||l==="")){if(this.backend&&this.backend.create){const I={..._,isUpdate:f},D=this.backend.create.bind(this.backend);if(D.length<6)try{let O;D.length===5?O=D(t,i,l,h,I):O=D(t,i,l,h),O&&typeof O.then=="function"?O.then(P=>o(null,P)).catch(o):o(null,O)}catch(O){o(O)}else D(t,i,l,h,o,I)}!t||!t[0]||this.store.addResource(t[0],i,l,h)}}}function cz(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){let i={};if(typeof t[1]=="object"&&(i=t[1]),typeof t[1]=="string"&&(i.defaultValue=t[1]),typeof t[2]=="string"&&(i.tDescription=t[2]),typeof t[2]=="object"||typeof t[3]=="object"){const l=t[3]||t[2];Object.keys(l).forEach(h=>{i[h]=l[h]})}return i},interpolation:{escapeValue:!0,format:(e,t,i,l)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function uz(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Qv(){}function Hq(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(i=>{typeof e[i]=="function"&&(e[i]=e[i].bind(e))})}class g1 extends Fv{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(super(),this.options=uz(t),this.services={},this.logger=Yl,this.modules={external:[]},Hq(this),i&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,i),this;setTimeout(()=>{this.init(t,i)},0)}}init(){var t=this;let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0;typeof i=="function"&&(l=i,i={}),!i.defaultNS&&i.defaultNS!==!1&&i.ns&&(typeof i.ns=="string"?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const h=cz();this.options={...h,...this.options,...uz(i)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...h.interpolation,...this.options.interpolation}),i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator);function f(O){return O?typeof O=="function"?new O:O:null}if(!this.options.isClone){this.modules.logger?Yl.init(f(this.modules.logger),this.options):Yl.init(null,this.options);let O;this.modules.formatter?O=this.modules.formatter:typeof Intl<"u"&&(O=Bq);const P=new sz(this.options);this.store=new iz(this.options.resources,this.options);const F=this.services;F.logger=Yl,F.resourceStore=this.store,F.languageUtils=P,F.pluralResolver=new Pq(P,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),O&&(!this.options.interpolation.format||this.options.interpolation.format===h.interpolation.format)&&(F.formatter=f(O),F.formatter.init(F,this.options),this.options.interpolation.format=F.formatter.format.bind(F.formatter)),F.interpolator=new Rq(this.options),F.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},F.backendConnector=new Vq(f(this.modules.backend),F.resourceStore,F,this.options),F.backendConnector.on("*",function(Q){for(var J=arguments.length,ae=new Array(J>1?J-1:0),Ne=1;Ne<J;Ne++)ae[Ne-1]=arguments[Ne];t.emit(Q,...ae)}),this.modules.languageDetector&&(F.languageDetector=f(this.modules.languageDetector),F.languageDetector.init&&F.languageDetector.init(F,this.options.detection,this.options)),this.modules.i18nFormat&&(F.i18nFormat=f(this.modules.i18nFormat),F.i18nFormat.init&&F.i18nFormat.init(this)),this.translator=new Hv(this.services,this.options),this.translator.on("*",function(Q){for(var J=arguments.length,ae=new Array(J>1?J-1:0),Ne=1;Ne<J;Ne++)ae[Ne-1]=arguments[Ne];t.emit(Q,...ae)}),this.modules.external.forEach(Q=>{Q.init&&Q.init(this)})}if(this.format=this.options.interpolation.format,l||(l=Qv),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const O=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);O.length>0&&O[0]!=="dev"&&(this.options.lng=O[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(O=>{this[O]=function(){return t.store[O](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(O=>{this[O]=function(){return t.store[O](...arguments),t}});const I=p1(),D=()=>{const O=(P,F)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),I.resolve(F),l(P,F)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return O(null,this.t.bind(this));this.changeLanguage(this.options.lng,O)};return this.options.resources||!this.options.initImmediate?D():setTimeout(D,0),I}loadResources(t){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qv;const h=typeof t=="string"?t:this.language;if(typeof t=="function"&&(l=t),!this.options.resources||this.options.partialBundledLanguages){if(h&&h.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return l();const f=[],_=o=>{if(!o||o==="cimode")return;this.services.languageUtils.toResolveHierarchy(o).forEach(D=>{D!=="cimode"&&f.indexOf(D)<0&&f.push(D)})};h?_(h):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(I=>_(I)),this.options.preload&&this.options.preload.forEach(o=>_(o)),this.services.backendConnector.load(f,this.options.ns,o=>{!o&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),l(o)})}else l(null)}reloadResources(t,i,l){const h=p1();return t||(t=this.languages),i||(i=this.options.ns),l||(l=Qv),this.services.backendConnector.reload(t,i,f=>{h.resolve(),l(f)}),h}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&rz.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let i=0;i<this.languages.length;i++){const l=this.languages[i];if(!(["cimode","dev"].indexOf(l)>-1)&&this.store.hasLanguageSomeTranslations(l)){this.resolvedLanguage=l;break}}}changeLanguage(t,i){var l=this;this.isLanguageChangingTo=t;const h=p1();this.emit("languageChanging",t);const f=I=>{this.language=I,this.languages=this.services.languageUtils.toResolveHierarchy(I),this.resolvedLanguage=void 0,this.setResolvedLanguage(I)},_=(I,D)=>{D?(f(D),this.translator.changeLanguage(D),this.isLanguageChangingTo=void 0,this.emit("languageChanged",D),this.logger.log("languageChanged",D)):this.isLanguageChangingTo=void 0,h.resolve(function(){return l.t(...arguments)}),i&&i(I,function(){return l.t(...arguments)})},o=I=>{!t&&!I&&this.services.languageDetector&&(I=[]);const D=typeof I=="string"?I:this.services.languageUtils.getBestMatchFromCodes(I);D&&(this.language||f(D),this.translator.language||this.translator.changeLanguage(D),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(D)),this.loadResources(D,O=>{_(O,D)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(t),h}getFixedT(t,i,l){var h=this;const f=function(_,o){let I;if(typeof o!="object"){for(var D=arguments.length,O=new Array(D>2?D-2:0),P=2;P<D;P++)O[P-2]=arguments[P];I=h.options.overloadTranslationOptionHandler([_,o].concat(O))}else I={...o};I.lng=I.lng||f.lng,I.lngs=I.lngs||f.lngs,I.ns=I.ns||f.ns,I.keyPrefix=I.keyPrefix||l||f.keyPrefix;const F=h.options.keySeparator||".";let Q;return I.keyPrefix&&Array.isArray(_)?Q=_.map(J=>`${I.keyPrefix}${F}${J}`):Q=I.keyPrefix?`${I.keyPrefix}${F}${_}`:_,h.t(Q,I)};return typeof t=="string"?f.lng=t:f.lngs=t,f.ns=i,f.keyPrefix=l,f}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const l=i.lng||this.resolvedLanguage||this.languages[0],h=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const _=(o,I)=>{const D=this.services.backendConnector.state[`${o}|${I}`];return D===-1||D===2};if(i.precheck){const o=i.precheck(this,_);if(o!==void 0)return o}return!!(this.hasResourceBundle(l,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||_(l,t)&&(!h||_(f,t)))}loadNamespaces(t,i){const l=p1();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(h=>{this.options.ns.indexOf(h)<0&&this.options.ns.push(h)}),this.loadResources(h=>{l.resolve(),i&&i(h)}),l):(i&&i(),Promise.resolve())}loadLanguages(t,i){const l=p1();typeof t=="string"&&(t=[t]);const h=this.options.preload||[],f=t.filter(_=>h.indexOf(_)<0);return f.length?(this.options.preload=h.concat(f),this.loadResources(_=>{l.resolve(),i&&i(_)}),l):(i&&i(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const i=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],l=this.services&&this.services.languageUtils||new sz(cz());return i.indexOf(l.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;return new g1(t,i)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qv;const l=t.forkResourceStore;l&&delete t.forkResourceStore;const h={...this.options,...t,isClone:!0},f=new g1(h);return(t.debug!==void 0||t.prefix!==void 0)&&(f.logger=f.logger.clone(t)),["store","services","language"].forEach(o=>{f[o]=this[o]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},l&&(f.store=new iz(this.store.data,h),f.services.resourceStore=f.store),f.translator=new Hv(f.services,h),f.translator.on("*",function(o){for(var I=arguments.length,D=new Array(I>1?I-1:0),O=1;O<I;O++)D[O-1]=arguments[O];f.emit(o,...D)}),f.init(h,i),f.translator.options=h,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Qo=g1.createInstance();Qo.createInstance=g1.createInstance,Qo.createInstance,Qo.dir,Qo.init,Qo.loadResources,Qo.reloadResources,Qo.use,Qo.changeLanguage,Qo.getFixedT;const hz=Qo.t;Qo.exists,Qo.setDefaultNamespace,Qo.hasLoadedNamespace,Qo.loadNamespaces,Qo.loadLanguages;function X4(){return X4=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var l in i)({}).hasOwnProperty.call(i,l)&&(e[l]=i[l])}return e},X4.apply(null,arguments)}function Qq(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const dz={};function J4(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];typeof t[0]=="string"&&dz[t[0]]||(typeof t[0]=="string"&&(dz[t[0]]=new Date),Qq(...t))}const fz=(e,t)=>()=>{if(e.isInitialized)t();else{const i=()=>{setTimeout(()=>{e.off("initialized",i)},0),t()};e.on("initialized",i)}};function pz(e,t,i){e.loadNamespaces(t,fz(e,i))}function gz(e,t,i,l){typeof i=="string"&&(i=[i]),i.forEach(h=>{e.options.ns.indexOf(h)<0&&e.options.ns.push(h)}),e.loadLanguages(t,fz(e,l))}function $q(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const l=t.languages[0],h=t.options?t.options.fallbackLng:!1,f=t.languages[t.languages.length-1];if(l.toLowerCase()==="cimode")return!0;const _=(o,I)=>{const D=t.services.backendConnector.state[`${o}|${I}`];return D===-1||D===2};return i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!_(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(l,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||_(l,e)&&(!h||_(f,e)))}function Yq(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(J4("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:i.lng,precheck:(h,f)=>{if(i.bindI18n&&i.bindI18n.indexOf("languageChanging")>-1&&h.services.backendConnector.backend&&h.isLanguageChangingTo&&!f(h.isLanguageChangingTo,e))return!1}}):$q(e,t,i)}const Gq=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Zq={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},Wq=e=>Zq[e];let e5={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(Gq,Wq)};function qq(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e5={...e5,...e}}function Kq(){return e5}let mz;function Xq(e){mz=e}function Jq(){return mz}const eK={type:"3rdParty",init(e){qq(e.options.react),Xq(e)}},tK=ye.createContext();class nK{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(i=>{this.usedNamespaces[i]||(this.usedNamespaces[i]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const iK=(e,t)=>{const i=ye.useRef();return ye.useEffect(()=>{i.current=t?i.current:e},[e,t]),i.current};function $o(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:i}=t,{i18n:l,defaultNS:h}=ye.useContext(tK)||{},f=i||l||Jq();if(f&&!f.reportNamespaces&&(f.reportNamespaces=new nK),!f){J4("You will need to pass in an i18next instance by using initReactI18next");const W=(ve,ue)=>typeof ue=="string"?ue:ue&&typeof ue=="object"&&typeof ue.defaultValue=="string"?ue.defaultValue:Array.isArray(ve)?ve[ve.length-1]:ve,se=[W,{},!1];return se.t=W,se.i18n={},se.ready=!1,se}f.options.react&&f.options.react.wait!==void 0&&J4("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const _={...Kq(),...f.options.react,...t},{useSuspense:o,keyPrefix:I}=_;let D=e||h||f.options&&f.options.defaultNS;D=typeof D=="string"?[D]:D||["translation"],f.reportNamespaces.addUsedNamespaces&&f.reportNamespaces.addUsedNamespaces(D);const O=(f.isInitialized||f.initializedStoreOnce)&&D.every(W=>Yq(W,f,_));function P(){return f.getFixedT(t.lng||null,_.nsMode==="fallback"?D:D[0],I)}const[F,Q]=ye.useState(P);let J=D.join();t.lng&&(J=`${t.lng}${J}`);const ae=iK(J),Ne=ye.useRef(!0);ye.useEffect(()=>{const{bindI18n:W,bindI18nStore:se}=_;Ne.current=!0,!O&&!o&&(t.lng?gz(f,t.lng,D,()=>{Ne.current&&Q(P)}):pz(f,D,()=>{Ne.current&&Q(P)})),O&&ae&&ae!==J&&Ne.current&&Q(P);function ve(){Ne.current&&Q(P)}return W&&f&&f.on(W,ve),se&&f&&f.store.on(se,ve),()=>{Ne.current=!1,W&&f&&W.split(" ").forEach(ue=>f.off(ue,ve)),se&&f&&se.split(" ").forEach(ue=>f.store.off(ue,ve))}},[f,J]);const oe=ye.useRef(!0);ye.useEffect(()=>{Ne.current&&!oe.current&&Q(P),oe.current=!1},[f,I]);const Z=[F,f,O];if(Z.t=F,Z.i18n=f,Z.ready=O,O||!O&&!o)return Z;throw new Promise(W=>{t.lng?gz(f,t.lng,D,()=>W()):pz(f,D,()=>W())})}const rK={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Show legend":"Show legend","Ask with AI":"Ask with AI","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","Include bus transportation":"Include bus transportation","No route found":"No route found","My position":"My position","Go!":"Go!",Directions:"Directions","Choose departure":"Choose departure","Choose destination":"Choose destination",Venues:"Venues","Select venue":"Select venue",Current:"Current","Scan QR code":"Scan QR code","Scan the QR code to see the route on your phone":"Scan the QR code to see the route on your phone",Done:"Done","Cancel route":"Cancel route","Finish route":"Finish route",Share:"Share","Copy link":"Copy link","QR Code":"QR Code",Open:"Open",Closed:"Closed","Expand opening hours":"Expand opening hours","Collapse opening hours":"Collapse opening hours","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language","Increase text size to 200%":"Increase text size to 200%","Decrease text size to 100%":"Decrease text size to 100%","Zoom in":"Zoom in","Zoom out":"Zoom out"},oK={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Show legend":"Vis forklaring","Ask with AI":"Spørg med AI","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","Include bus transportation":"Inkluder bus transport","No route found":"Ingen rute fundet","My position":"Min position","Go!":"Go!",Directions:"Rutevejledning","Choose departure":"Vælg startpunkt","Choose destination":"Vælg destination",Venues:"Venues","Select venue":"Vælg venue",Current:"Valgt","Scan QR code":"Scan QR-kode","Scan the QR code to see the route on your phone":"Scan QR-koden for at se ruten på din mobil",Done:"Afslut","Cancel route":"Annullér ruten","Finish route":"Afslut ruten",Share:"Del","Copy link":"Kopiér link","QR Code":"QR-kode",Open:"Åben",Closed:"Lukket","Expand opening hours":"Udvid åbningstider","Collapse opening hours":"Skjul åbningstider","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog","Increase text size to 200%":"Forøg tekststørrelse til 200%","Decrease text size to 100%":"Formindsk tekststørrelse til 100%","Zoom in":"Zoom ind","Zoom out":"Zoom ud"},sK={Close:"Schließen",From:"Von",To:"Nach",Distance:"Distanz","Estimated time":"Geschätzte Zeit",Level:"Etage","Search by name, category, building...":"Nach Name, Kategorie, Gebäude suchen...","Show legend":"Legende anzeigen","Ask with AI":"Mit KI fragen","Nothing was found":"Keine Suchtreffer",d:"d",h:"h",min:"min",Walk:"Zu Fuß",Bike:"Fahrrad",Transit:"Öffentliche Verkehrsmittel",Drive:"Auto","Start wayfinding":"Starte Navigation","Read full description":"Beschreibung öffnen",Locations:"Locations","Directions not available":"Wegbeschreibung nicht verfügbar","Start directions":"Starte Wegbeschreibung",Previous:"Zurück",Next:"Weiter",StepYofX:"Schritt {{activeStep}} von {{totalSteps}}","You have arrived":"Sie haben Ihr Ziel erreicht",Leave:"Verlassen",Park:"Parken",at:"bei",Building:"Gebäude",Venue:"Standort","Take staircase to level":"Nutzen Sie die Treppe zur Etage","Take the ladder to level":"Nutzen Sie die Leiter zur Etage","Take elevator to level":"Nutzen Sie den Aufzug zur Etage","Take escalator to level":"Nutzen Sie die Rolltreppe zur Etage","Take wheelchair lift to level":"Nutzen Sie den Rollstuhllift zur Etage","Take wheelchair ramp to level":"Nutzen Sie die Rollstuhlrampe zur Etage",Exit:"Verlassen Sie das",Enter:"Gehe Sie in das",stops:"Zwischenstopps","and continue":"und Weg fortsetzen","Continue straight ahead":"Weiter geradeaus","Go left":"Links abbiegen","Go sharp left":"Scharf links abbiegen","Go slight left":"Leicht links abbiegen","Go right":"Rechts abbiegen","Go sharp right":"Scharf rechts abbiegen","Go slight right":"Leicht rechts abbiegen","Turn around":"Umdrehen",Switch:"Umkehren","Avoid stairs and escalators":"Treppen und Rolltreppen vermeiden","Include bus transportation":"Busverkehr einbeziehen","No route found":"Keine Route gefunden","My position":"Meine Position","Go!":"Los!",Directions:"Wegbeschreibung","Choose departure":"Startpunkt wählen","Choose destination":"Ziel wählen",Venues:"Standorte","Select venue":"Standort wählen",Current:"Aktuell","Scan QR code":"QR-Code scannen","Scan the QR code to see the route on your phone":"Scannen Sie den QR-Code, um die Route auf Ihrem Smartphone anzuzeigen",Done:"Schließen","Cancel route":"Route abbrechen","Finish route":"Route beenden",Share:"Teilen","Copy link":"Link kopieren","QR Code":"QR code",Open:"Geöffnet",Closed:"Geschlossen","Expand opening hours":"Öffnungszeiten erweitern","Collapse opening hours":"Öffnungszeiten reduzieren","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen","Increase text size to 200%":"Textgröße auf 200% erhöhen","Decrease text size to 100%":"Textgröße auf 100% verringern","Zoom in":"Vergrößern","Zoom out":"Verkleinern"},aK={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Show legend":"Afficher la légende","Ask with AI":"Demander à l'IA","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","Include bus transportation":"Inclure le transport en bus","No route found":"Aucun itinéraire trouvé","My position":"Ma position","Go!":"C'est parti!",Directions:"Instructions","Choose departure":"Choisir le départ","Choose destination":"Choisir la destination",Venues:"Lieux","Select venue":"Sélectionner le lieu",Current:"Actuel","Scan QR code":"Scanne le code QR","Scan the QR code to see the route on your phone":"Scannez le code QR pour voir l'itinéraire sur votre téléphone",Done:"Fini","Cancel route":"Annuler l'itinéraire","Finish route":"Terminer l'itinéraire",Share:"Partager","Copy link":"Copier le lien","QR Code":"Code QR",Open:"Ouvert",Closed:"Fermé","Expand opening hours":"Développer les heures d'ouverture","Collapse opening hours":"Réduire les heures d'ouverture","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue","Increase text size to 200%":"Augmenter la taille du texte à 200%","Decrease text size to 100%":"Réduire la taille du texte à 100%","Zoom in":"Zoom avant","Zoom out":"Zoom arrière"},lK={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","Show legend":"Mostra legenda","Ask with AI":"Chiedi all'IA","Nothing was found":"Non è stato trovato nulla",d:"g",h:"o",min:"min",Walk:"A piedi",Bike:"Bicicletta",Transit:"Trasporto pubblico",Drive:"In auto","Start wayfinding":"Inizia percorso","Read full description":"Leggi la descrizione completa",Locations:"Luoghi","Directions not available":"Indicazioni non disponibili","Start directions":"Calcola il Percorso",Previous:"Precedente",Next:"Prossimo",StepYofX:"Passaggio {{activeStep}} di {{totalSteps}}","You have arrived":"Sei a destinazione",Leave:"Parti",Park:"Parcheggia",at:"a",Building:"Edificio",Venue:"Luogo","Take staircase to level":"Prendi le scale fino al piano","Take the ladder to level":"Prendi la scala fino al piano","Take elevator to level":"Prendi l'ascensore fino al piano","Take escalator to level":"Prendi la scala mobile fino al piano","Take wheelchair lift to level":"Prendi il montascale fino al piano","Take wheelchair ramp to level":"Prendi la rampa per sedie a rotelle fino al piano",Exit:"Esci",Enter:"Entra in",stops:"fermate","and continue":"e continua","Continue straight ahead":"Continua dritto","Go left":"Gira a sinistra","Go sharp left":"Svolta a sinistra","Go slight left":"Gira leggermente a sinistra","Go right":"Gira a destra","Go sharp right":"Svolta a destra","Go slight right":"Gira leggermente a destra","Turn around":"Girati",Switch:"Inverti","Avoid stairs and escalators":"Evita scale e scale mobili","Include bus transportation":"Includi trasporto in autobus","No route found":"Nessun percorso trovato","My position":"La mia posizione","Go!":"Vai!",Directions:"Indicazioni","Choose departure":"Scegli la partenza","Choose destination":"Scegli destinazione",Venues:"Luoghi","Select venue":"Seleziona luogo",Current:"Attuale","Scan QR code":"Scansiona il codice QR","Scan the QR code to see the route on your phone":"Scansiona il codice QR per vedere il percorso sul tuo telefono",Done:"Fatto","Cancel route":"Annulla percorso","Finish route":"Termina percorso",Share:"Condividi","Copy link":"Copia il collegamento","QR Code":"Codice QR",Open:"Aperto",Closed:"Chiuso","Expand opening hours":"Espandi orari di apertura","Collapse opening hours":"Comprimi orari di apertura","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua","Increase text size to 200%":"Aumenta la dimensione del testo al 200%","Decrease text size to 100%":"Riduci la dimensione del testo al 100%","Zoom in":"Ingrandisci","Zoom out":"Riduci"},cK={Close:"Cerca",From:"Desde",To:"A",Distance:"Distancia","Estimated time":"Hora Prevista",Level:"Nivel","Search by name, category, building...":"Busca por nombre, categoría, edificio...","Show legend":"Mostrar leyenda","Ask with AI":"Preguntar con IA","Nothing was found":"No se encontró nada",d:"d",h:"h",min:"mín",Walk:"Caminar",Bike:"Bicicleta",Transit:"Transporte público",Drive:"Conducir","Start wayfinding":"Iniciar la navegación","Read full description":"Leer descripción completa",Locations:"Ubicaciones","Directions not available":"Direcciones no disponibles","Start directions":"Comenzar direcciones",Previous:"Previo",Next:"Próximo",StepYofX:"Paso {{activeStep}} de {{totalSteps}}","You have arrived":"Has llegado",Leave:"Dejar",Park:"Estacionar",at:"en",Building:"Edificio",Venue:"Evento","Take staircase to level":"Tome la escaleras al nivel","Take the ladder to level":"Tome la escalera al nivel","Take elevator to level":"Tome el ascensor hasta el nivel","Take escalator to level":"Tome la escalera mecánica al nivel","Take wheelchair lift to level":"Tome el elevador de sillas de ruedas hasta el nivel","Take wheelchair ramp to level":"Tome la rampa para sillas de ruedas hasta nivelar",Exit:"Salida",Enter:"Ingresar",stops:"paradas","and continue":"y continuar","Continue straight ahead":"Continúe recto","Go left":"Ve a la izquierda","Go sharp left":"Vaya bruscamente a la izquierda","Go slight left":"Vaya ligeramente a la izquierda","Go right":"Ve a la derecha","Go sharp right":"Vaya bruscamente a la derecha","Go slight right":"Vaya ligeramente a la derecha","Turn around":"Giro de vuelta",Switch:"Cambiar","Avoid stairs and escalators":"Evitar escaleras y escaleras mecánicas","Include bus transportation":"Incluir transporte en autobús","No route found":"No se encontró ninguna ruta","My position":"Mi posición","Go!":"¡Ir!",Directions:"Instrucciones","Choose departure":"Elige la salida","Choose destination":"Elige destino",Venues:"Lugares","Select venue":"Seleccionar lugar",Current:"Actual","Scan QR code":"Escanear código QR","Scan the QR code to see the route on your phone":"Escanea el código QR para ver la ruta en tu teléfono",Done:"Finalizado","Cancel route":"Cancelar ruta","Finish route":"Finalizar ruta",Share:"Compartir","Copy link":"Copiar link","QR Code":"Código QR",Open:"Abierto",Closed:"Cerrado","Expand opening hours":"Expandir horario de apertura","Collapse opening hours":"Contraer horario de apertura","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma","Increase text size to 200%":"Aumentar el tamaño del texto al 200%","Decrease text size to 100%":"Reducir el tamaño del texto al 100%","Zoom in":"Acercar","Zoom out":"Alejar"},uK={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","Show legend":"Legende weergeven","Ask with AI":"Vraag met AI","Nothing was found":"Er is niets gevonden",d:"d",h:"u",min:"min",Walk:"Wandelen",Bike:"Fietsen",Transit:"Overgang",Drive:"Rijden","Start wayfinding":"Begin met navigeren ","Read full description":"Lees de volledige beschrijving",Locations:"Locaties","Directions not available":"Routebeschrijving niet beschikbaar","Start directions":"Start routebeschrijving",Previous:"Vorig",Next:"Volgende",StepYofX:"Stap {{activeStep}} van {{totalSteps}}","You have arrived":"Je bent aangekomen",Leave:"Verlaat",Park:"Parkeer",at:"bij",Building:"Gebouw",Venue:"Locatie","Take staircase to level":"Neem de trap naar niveau","Take the ladder to level":"Neem de ladder naar niveau","Take elevator to level":"Neem de lift naar niveau","Take escalator to level":"Neem de roltrap naar niveau","Take wheelchair lift to level":"Neem de rolstoellift naar niveau ","Take wheelchair ramp to level":"Neem de rolstoelhelling naar niveau",Exit:"Verlaat",Enter:"Binnengaan",stops:"stopt","and continue":"en doorgaan","Continue straight ahead":"Ga rechtdoor","Go left":"Ga links","Go sharp left":"Ga scherp naar links","Go slight left":"Ga lichtjes naar links","Go right":"Ga rechts","Go sharp right":"Ga scherp naar rechts","Go slight right":"Ga lichtjes naar rechts","Turn around":"Draai je om",Switch:"Schakelaar","Avoid stairs and escalators":"Vermijd trappen en roltrappen","Include bus transportation":"Busvervoer opnemen","No route found":"Geen route gevonden","My position":"Mijn positie","Go!":"Gaan!",Directions:"Richtingen","Choose departure":"Kies vertrek","Choose destination":"Kies bestemming",Venues:"Locaties","Select venue":"Kies locatie",Current:"Huidige","Scan QR code":"QR-code scannen","Scan the QR code to see the route on your phone":"Scan de QR-code om de route op jouw telefoon te bekijken",Done:"Klaar","Cancel route":"Route annuleren","Finish route":"Route voltooien ",Share:"Deel","Copy link":"Link kopiëren","QR Code":"QR code",Open:"Open",Closed:"Gesloten","Expand opening hours":"Openingsuren uitklappen","Collapse opening hours":"Openingsuren inklappen","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal","Increase text size to 200%":"Tekstgrootte verhogen naar 200%","Decrease text size to 100%":"Tekstgrootte verlagen naar 100%","Zoom in":"Inzoomen","Zoom out":"Uitzoomen"},hK={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","Show legend":"显示图例","Ask with AI":"询问 AI","Nothing was found":"未找到任何结果",d:"天",h:"小时",min:"分钟",Walk:"步行",Bike:"骑车",Transit:"公交",Drive:"驾车","Start wayfinding":"开始导航","Read full description":"查看完整描述",Locations:"位置","Directions not available":"导航不可用","Start directions":"开始导航",Previous:"上一步",Next:"下一步",StepYofX:"第 {{activeStep}} 步,共 {{totalSteps}} 步","You have arrived":"您已到达",Leave:"离开",Park:"停车",at:"在",Building:"建筑",Venue:"场所","Take staircase to level":"走楼梯到","Take the ladder to level":"走梯子到","Take elevator to level":"乘电梯到","Take escalator to level":"乘扶梯到","Take wheelchair lift to level":"乘轮椅升降机到","Take wheelchair ramp to level":"走轮椅坡道到",Exit:"离开",Enter:"进入",stops:"站","and continue":"然后继续","Continue straight ahead":"直行","Go left":"向左","Go sharp left":"急转左","Go slight left":"稍向左","Go right":"向右","Go sharp right":"急转右","Go slight right":"稍向右","Turn around":"掉头",Switch:"切换","Avoid stairs and escalators":"避开楼梯和扶梯","Include bus transportation":"包含公交交通","No route found":"未找到路线","My position":"我的位置","Go!":"出发!",Directions:"导航","Choose departure":"选择出发地","Choose destination":"选择目的地",Venues:"场所","Select venue":"选择场所",Current:"当前","Scan QR code":"扫描二维码","Scan the QR code to see the route on your phone":"扫描二维码在手机上查看路线",Done:"完成","Cancel route":"取消路线","Finish route":"完成路线",Share:"分享","Copy link":"复制链接","QR Code":"二维码",Open:"营业中",Closed:"已关闭","Expand opening hours":"展开营业时间","Collapse opening hours":"收起营业时间","Go to view":"定位到","Select language":"选择语言","Increase text size to 200%":"将文本大小增加到 200%","Decrease text size to 100%":"将文本大小减少到 100%","Zoom in":"放大","Zoom out":"缩小"};function dK(e){Qo.use(eK).init({resources:{en:{translation:rK},da:{translation:oK},de:{translation:sK},fr:{translation:aK},it:{translation:lK},es:{translation:cK},nl:{translation:uK},zh:{translation:hK}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const yz=[{code:"en",label:"English"},{code:"da",label:"Dansk"},{code:"de",label:"Deutsch"},{code:"fr",label:"Français"},{code:"it",label:"Italiano"},{code:"es",label:"Español"},{code:"nl",label:"Nederlands"},{code:"zh",label:"中文"}],G0e="",Jf={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var _z={exports:{}},fK="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",pK=fK,gK=pK;function vz(){}function xz(){}xz.resetWarningCache=vz;var mK=function(){function e(l,h,f,_,o,I){if(I!==gK){var D=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw D.name="Invariant Violation",D}}e.isRequired=e;function t(){return e}var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:xz,resetWarningCache:vz};return i.PropTypes=i,i};_z.exports=mK();var yK=_z.exports;const at=ul(yK),Z0e="",_K=e=>{const[t,i]=ye.useState(!1);return ye.useEffect(()=>{const l=window.matchMedia(e);l.matches!==t&&i(l.matches);const h=()=>i(l.matches);return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[t,e]),t},t5=()=>_K("(min-width: 992px)");class vK{constructor(t={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:i=100}=t;this._maxAccuracy=i}get currentPosition(){return this._currentPosition}hasValidPosition(){const t=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=t}on(t,i){this._listeners.has(t)||this._listeners.set(t,[]),this._listeners.get(t).push(i)}off(t,i){const l=this._listeners.get(t);l&&this._listeners.set(t,l.filter(h=>h!==i))}setPosition(t){let i;if(t.coords&&t.timestamp)i={coords:{latitude:t.coords.latitude,longitude:t.coords.longitude,accuracy:t.coords.accuracy,altitude:t.coords.altitude??null,altitudeAccuracy:t.coords.altitudeAccuracy??null,heading:t.coords.heading??null,speed:t.coords.speed??null},timestamp:t.timestamp,floorIndex:t.floorIndex??null};else{const h={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:t};return this.emitError(h),!1}return i.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${i.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=i,(this._listeners.get("position_received")||[]).forEach(h=>{h.call(null,{position:i})}),!0)}emitError(t){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",t),(this._listeners.get("position_error")||[]).forEach(l=>{l.call(null,t)})}}const xK=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M0.833344 10C0.833344 10.3315 0.96504 10.6495 1.19946 10.8839C1.43388 11.1183 1.75182 11.25 2.08334 11.25H8.54168C8.59693 11.25 8.64992 11.2719 8.68899 11.311C8.72806 11.3501 8.75001 11.4031 8.75001 11.4583V17.9167C8.75001 18.2482 8.88171 18.5661 9.11613 18.8005C9.35055 19.035 9.66849 19.1667 10 19.1667C10.3315 19.1667 10.6495 19.035 10.8839 18.8005C11.1183 18.5661 11.25 18.2482 11.25 17.9167V11.4583C11.25 11.4031 11.272 11.3501 11.311 11.311C11.3501 11.2719 11.4031 11.25 11.4583 11.25H17.9167C18.2482 11.25 18.5661 11.1183 18.8006 10.8839C19.035 10.6495 19.1667 10.3315 19.1667 10C19.1667 9.66848 19.035 9.35054 18.8006 9.11612C18.5661 8.88169 18.2482 8.75 17.9167 8.75H11.4583C11.4031 8.75 11.3501 8.72805 11.311 8.68898C11.272 8.64991 11.25 8.59692 11.25 8.54167V2.08333C11.25 1.75181 11.1183 1.43387 10.8839 1.19945C10.6495 0.965029 10.3315 0.833333 10 0.833333C9.66849 0.833333 9.35055 0.965029 9.11613 1.19945C8.88171 1.43387 8.75001 1.75181 8.75001 2.08333V8.54167C8.75001 8.59692 8.72806 8.64991 8.68899 8.68898C8.64992 8.72805 8.59693 8.75 8.54168 8.75H2.08334C1.75182 8.75 1.43388 8.88169 1.19946 9.11612C0.96504 9.35054 0.833344 9.66848 0.833344 10Z",fill:"#78716C"})),wK=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M2.08333 11.6667H17.9167C18.2482 11.6667 18.5661 11.535 18.8005 11.3006C19.035 11.0661 19.1667 10.7482 19.1667 10.4167C19.1667 10.0851 19.035 9.7672 18.8005 9.53278C18.5661 9.29836 18.2482 9.16667 17.9167 9.16667H2.08333C1.75181 9.16667 1.43387 9.29836 1.19945 9.53278C0.965029 9.7672 0.833333 10.0851 0.833333 10.4167C0.833333 10.7482 0.965029 11.0661 1.19945 11.3006C1.43387 11.535 1.75181 11.6667 2.08333 11.6667Z",fill:"#78716C"})),W0e="";n5.propTypes={mapType:at.oneOf(["google","mapbox"]).isRequired,mapInstance:at.object.isRequired};function n5({mapType:e,mapInstance:t}){const{t:i}=$o(),l=t5(),h=ye.useCallback(()=>{const _=t==null?void 0:t.getMap();if(_)switch(e){case"mapbox":_.zoomIn();break;case"google":{const o=_.getZoom();_.setZoom(o+1);break}}},[e,t]),f=ye.useCallback(()=>{const _=t==null?void 0:t.getMap();if(_)switch(e){case"mapbox":_.zoomOut();break;case"google":{const o=_.getZoom();_.setZoom(o-1);break}}},[e,t]);return l?Se.jsxs("div",{className:"map-zoom-control",children:[Se.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:h,"aria-label":i("Zoom in"),children:Se.jsx(xK,{})}),Se.jsx("button",{type:"button",className:"map-zoom-control__button",onClick:f,"aria-label":i("Zoom out"),children:Se.jsx(wK,{})})]}):null}const bK=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M10 4C9.44771 4 9 4.44772 9 5C9 5.55228 9.44771 6 10 6H15V20C15 20.5523 15.4477 21 16 21C16.5523 21 17 20.5523 17 20V6H22C22.5523 6 23 5.55228 23 5C23 4.44772 22.5523 4 22 4H10Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}}),ye.createElement("path",{d:"M5.92676 20V12H2C1.44772 12 1 11.5523 1 11C1 10.4477 1.44772 10 2 10H6.88216C6.89695 9.99935 6.91181 9.99902 6.92676 9.99902C6.9417 9.99902 6.95657 9.99935 6.97135 10H12C12.5523 10 13 10.4477 13 11C13 11.5523 12.5523 12 12 12H7.92676V20C7.92676 20.5523 7.47904 21 6.92676 21C6.37447 21 5.92676 20.5523 5.92676 20Z",fill:"#78706C",style:{fill:"#78706C",fill:"color(display-p3 0.4706 0.4392 0.4235)",fillOpacity:1}})),q0e="";wz.propTypes={mapsIndoorsInstance:at.object.isRequired};function wz({mapsIndoorsInstance:e}){const{t}=$o(),i=t5(),[l,h]=ye.useState(!1),f=ye.useCallback(o=>{var I,D;o?(document.documentElement.style.fontSize="200%",(I=e==null?void 0:e.getMapView())==null||I.setLabelTextSizeMultiplier(2)):(document.documentElement.style.fontSize="",(D=e==null?void 0:e.getMapView())==null||D.resetLabelTextSize())},[e]);ye.useEffect(()=>(f(l),()=>{f(!1)}),[l,f]);const _=ye.useCallback(()=>{const o=!l;h(o),f(o)},[l,f]);return i?Se.jsx("button",{type:"button",className:`text-size-button ${l?"text-size-button--active":""}`,onClick:_,"aria-label":t(l?"Decrease text size to 100%":"Increase text size to 200%"),"aria-pressed":l,children:Se.jsx(bK,{})}):null}const $v={venueSelector:{key:"venue-selector",className:"venue-selector-portal"},viewSelector:{key:"view-selector",className:"view-selector-portal"},languageSelector:{key:"language-selector",className:"language-selector-portal"},viewModeSwitch:{key:"viewmode-switch",className:"viewmode-switch-portal"},myPosition:{key:"my-position",className:"my-position-element-portal"},floorSelector:{key:"floor-selector",className:"floor-selector-portal"},resetView:{key:"reset-view",className:"reset-view-portal"},chatButton:{key:"chat-button",className:"chat-button-portal"},zoomControls:{key:"zoom-controls",className:null},textSizeButton:{key:"text-size-button",className:null}};bz.propTypes={mapType:at.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:at.object.isRequired,mapInstance:at.object.isRequired,onPositionControl:at.func,brandingColor:at.string,devicePosition:at.object,excludedElements:at.string,isKiosk:at.bool,enableAccessibilityKioskControls:at.bool};function bz({mapType:e,mapsIndoorsInstance:t,mapInstance:i,onPositionControl:l,brandingColor:h,devicePosition:f,excludedElements:_="",isKiosk:o,enableAccessibilityKioskControls:I=!1}){const D=t5(),O=ye.useRef(null),P=ye.useRef(null),F=ye.useCallback(ae=>!_||typeof _!="string"?!0:!_.split(",").map(oe=>oe.trim()).includes(ae),[_]),Q=ye.useMemo(()=>{const ae={};for(const[Ne,oe]of Object.entries($v))ae[Ne]=Se.jsx("div",{className:oe.className},oe.key);return ae},[]),J=ae=>{P.current.customPositionProvider.setPosition(ae)&&P.current.watchPosition()};return ye.useEffect(()=>{if(!(!t||!i)){if(!O.current){const ae=document.createElement("mi-floor-selector");O.current=ae}if(!P.current){const ae=document.createElement("mi-my-position");P.current=ae}O.current.mapsindoors=t,P.current.mapsindoors=t,h&&(O.current.primaryColor=h),l&&P.current&&l(P.current)}},[e,t,i,l,h]),ye.useEffect(()=>{if(P.current){if(P.current.stopListeningForPosition&&typeof P.current.stopListeningForPosition=="function"&&P.current.stopListeningForPosition(),f&&typeof f=="object"){if(P.current.customPositionProvider||(P.current.customPositionProvider=new vK),Object.keys(f).length===0)return;J(f)}return()=>{P.current&&P.current.stopListeningForPosition&&typeof P.current.stopListeningForPosition=="function"&&P.current.stopListeningForPosition()}}},[f]),ye.useEffect(()=>{if(!O.current||!P.current)return;const ae=(Ne,oe)=>{const Z=document.querySelector(`.${oe}`);Z&&!Z.contains(Ne)&&(Ne.remove(),Z.appendChild(Ne))};requestAnimationFrame(()=>{F("floorSelector")&&ae(O.current,$v.floorSelector.className),F("myPosition")&&ae(P.current,$v.myPosition.className)})},[D,o,F]),ye.useEffect(()=>{Object.entries($v).forEach(([ae,Ne])=>{if(!Ne.className)return;const oe=document.querySelector(`.${Ne.className}`);oe&&(F(ae)?oe.style.display="":oe.style.display="none")})},[_,F,D]),o?I?Se.jsxs(Se.Fragment,{children:[Se.jsx("div",{className:"map-controls-container kiosk top-right"}),Se.jsxs("div",{className:"map-controls-container kiosk bottom-right",children:[Q.venueSelector,Q.viewSelector,Q.myPosition,F("zoomControls")&&Se.jsx(n5,{mapType:e,mapInstance:i}),Q.languageSelector,F("textSizeButton")&&Se.jsx(wz,{mapsIndoorsInstance:t}),Q.viewModeSwitch,Q.floorSelector,Q.resetView]})]}):Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"map-controls-container kiosk top-right",children:[Q.venueSelector,Q.viewSelector,Q.languageSelector,Q.viewModeSwitch,Q.myPosition,Q.floorSelector]}),Se.jsx("div",{className:"map-controls-container kiosk bottom-right",children:Q.resetView})]}):D?Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"map-controls-container desktop top-right",children:[Q.venueSelector,Q.viewSelector,Q.languageSelector,Q.viewModeSwitch,Q.myPosition,Q.chatButton,Q.floorSelector]}),Se.jsxs("div",{className:"map-controls-container desktop bottom-right",children:[F("zoomControls")&&Se.jsx(n5,{mapType:e,mapInstance:i}),Q.resetView]})]}):Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"map-controls-left-column mobile-column",children:[Q.venueSelector,Q.viewModeSwitch,Q.viewSelector,Q.languageSelector]}),Se.jsxs("div",{className:"map-controls-right-column mobile-column",children:[Q.myPosition,Q.floorSelector]}),Se.jsx("div",{className:"map-controls-right-bottom mobile-column",children:Q.chatButton})]})}const MK=ye.memo(bz),K0e="",IK=ye.lazy(()=>Promise.resolve().then(()=>ige)),TK=ye.lazy(()=>Promise.resolve().then(()=>lge)),ep={Google:"google",Mapbox:"mapbox"};Mz.propTypes={apiKey:at.string.isRequired,gmApiKey:at.string,mapboxAccessToken:at.string,center:at.object,zoom:at.number,bounds:at.object,bearing:at.number,pitch:at.number,resetUICounter:at.number,mapOptions:at.object,onInitialized:at.func,gmMapId:at.string,devicePosition:at.object,isKiosk:at.bool};function Mz({apiKey:e,gmApiKey:t,mapboxAccessToken:i,center:l,zoom:h,bounds:f,bearing:_,pitch:o,resetUICounter:I,mapOptions:D,onInitialized:O,gmMapId:P,devicePosition:F,isKiosk:Q}){var Ht,_t;const[J,ae]=ye.useState(),[Ne,oe]=ye.useState(),[Z,W]=ye.useState(),[se,ve]=ye.useState(),[ue,Be]=ye.useState(),[$e,Ue]=ye.useState(),[Fe,Ke]=ye.useState(),ct=ye.useMemo(()=>{var wt;return((wt=$e==null?void 0:$e.appSettings)==null?void 0:wt.excludeFromUI)||""},[(Ht=$e==null?void 0:$e.appSettings)==null?void 0:Ht.excludeFromUI]);ye.useEffect(()=>{window.customElements.get("mi-floor-selector")||JL()},[]),ye.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),J===ep.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(wt=>{Be(wt)}),window.mapsindoors.services.AppConfigService.getConfig().then(wt=>{Ue(wt)})))},[e,J]);const yt=wt=>{Ke(wt);const Ft=new window.mapsindoors.MapsIndoors({mapView:wt});Ft.once("building_changed",gt=>{const Rt=Ft.getVenue();gt&&Rt&&gt.venueId!==Rt.id&&Ft.setVenue(gt.venueId)}),Ft.on("mouseenter",()=>{var Rt;const gt=Ft.getHoveredLocation();((Rt=gt==null?void 0:gt.properties.locationSettings)==null?void 0:Rt.selectable)===!1&&Ft.unhoverLocation()}),Ft.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),oe(Ft)};return ye.useEffect(()=>{typeof O=="function"&&Ne&&Z&&typeof se=="boolean"&&O(Ne,Z,se)},[Ne,Z,se]),ye.useEffect(()=>{ue&&J===ep.Mapbox&&["mapbox","3dwalls","floorplan"].every(wt=>ue.modules.map(Ft=>Ft.toLowerCase()).includes(wt))?ve(!0):ve(!1)},[ue,J]),ye.useEffect(()=>{i?ae(ep.Mapbox):t&&ae(ep.Google)},[t,i]),Se.jsxs(Se.Fragment,{children:[J===ep.Google&&Se.jsx(ye.Suspense,{children:Se.jsx(TK,{mapsIndoorsInstance:Ne,apiKey:t,onInitialized:yt,center:l,zoom:h,mapOptions:D,heading:_,tilt:o,bounds:f,gmMapId:P})}),J===ep.Mapbox&&Se.jsx(ye.Suspense,{children:Se.jsx(IK,{mapsIndoorsInstance:Ne,accessToken:i,onInitialized:yt,center:l,zoom:h,mapOptions:D,bearing:_,pitch:o,bounds:f,resetViewMode:I,viewModeSwitchVisible:se,appConfig:$e})}),Ne&&Fe&&J&&Se.jsx(MK,{mapType:J,mapsIndoorsInstance:Ne,mapInstance:Fe,onPositionControl:W,brandingColor:D==null?void 0:D.brandingColor,devicePosition:F,excludedElements:ct,isKiosk:Q,enableAccessibilityKioskControls:!!((_t=$e==null?void 0:$e.appSettings)!=null&&_t.enableAccessibilityKioskControls)})]})}const xs={Google:"google",Mapbox:"mapbox"},Es=ji({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),SK=e=>{const t=Mn(Es),i=ye.useRef(),[l,h]=ye.useState([]);ye.useEffect(()=>{(async()=>{if(t&&e){for(const o of l)i.current.disableLiveData(o);i.current=new window.mapsindoors.LiveDataManager(t);const _=await i.current.LiveDataInfo.activeDomainTypes();for(const o of _)await i.current.enableLiveData(o);h(_)}})()},[e,t])},tp=ji({key:"userPosition",default:null}),Yv=ji({key:"directionsService",default:null}),Gv=ji({key:"mapType",default:void 0}),Zv=ji({key:"apiKey",default:null}),i5=ji({key:"gmApiKey",default:null}),Wv=ji({key:"mapboxAccessToken",default:null}),m1=ji({key:"filteredLocations",default:void 0}),qv=ji({key:"filteredLocationsByExternalID",default:void 0}),Iz=ji({key:"tileStyle",default:null}),Tz=ji({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),r5=ji({key:"bearing",default:0}),Kv=ji({key:"pitch",default:null}),Sz=ji({key:"solution",default:null,dangerouslyAllowMutability:!0}),y1=ji({key:"notificationMessage",default:null});function _1(){return new Promise(e=>{const t=document.querySelector(".modal--open"),i=document.querySelector(".mapsindoors-map");if(t)e(i.offsetHeight-(t==null?void 0:t.offsetTop));else{const l=new MutationObserver(()=>{const h=document.querySelector(".modal--open");h&&(l.disconnect(),e(i.offsetHeight-(h==null?void 0:h.offsetTop)))});l.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const v1=ji({key:"categories",default:[]}),o5=ji({key:"kioskOriginLocationId",default:void 0}),Xv=ji({key:"locationId",default:void 0}),Cz=ji({key:"startZoomLevel",default:null}),vl=ji({key:"currentVenueName",default:null}),x1=ji({key:"venues",default:[]}),s5=ji({key:"venueWasSelected",default:!1}),Jv=ji({key:"isMapReady",default:!1});function np(){return new Promise(e=>{const t=document.querySelector(".sheet--active"),i=document.querySelector(".mapsindoors-map");if(t)e(i.offsetHeight-t.offsetTop);else{const l=new MutationObserver(()=>{const h=document.querySelector(".sheet--active");h&&(l.disconnect(),e(i.offsetHeight-h.offsetTop))});l.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function Yu(){return new Promise(e=>{const t=document.querySelector(".modal--open");if(t)e((t==null?void 0:t.offsetWidth)+(t==null?void 0:t.offsetLeft)*2);else{const i=new MutationObserver(()=>{const l=document.querySelector(".modal--open");l&&(i.disconnect(),e((l==null?void 0:l.offsetWidth)+(l==null?void 0:l.offsetLeft)*2))});i.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const Dz=ji({key:"timeout",default:void 0});function Az(){const[e,t]=ye.useState(!1),i=Mn(Jv),l=Mn(Dz);return ye.useEffect(()=>{if(!i||!l)return;let h;const f=()=>{t(!1),window.clearTimeout(h),h=window.setTimeout(_,l*1e3)},_=()=>{t(!0)};return h=window.setTimeout(_,l*1e3),window.addEventListener("mousemove",f),window.addEventListener("mousedown",f),window.addEventListener("resize",f),window.addEventListener("keydown",f),window.addEventListener("touchstart",f),window.addEventListener("wheel",f),()=>{window.removeEventListener("mousemove",f),window.removeEventListener("mousedown",f),window.removeEventListener("resize",f),window.removeEventListener("keydown",f),window.removeEventListener("touchstart",f),window.removeEventListener("wheel",f),window.clearTimeout(h)}},[l,i]),e}const CK=e=>{const[t,i]=ye.useState(window.matchMedia(e).matches);return ye.useEffect(()=>{const l=window.matchMedia(e);l.matches!==t&&i(l.matches);const h=()=>i(l.matches);return window.addEventListener("resize",h),()=>window.removeEventListener("resize",h)},[t,e]),t},Qs=()=>CK("(min-width: 992px)"),Ez=ji({key:"mapboxViewMode",default:null}),a5=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),DK=Lv({key:"currentPitch",get:({get:e})=>{const t=e(Kv),i=e(Ez);let l;switch(i){case a5.initial3D:l=t??45;break;case a5.clicked3D:l=45;break;case a5.clicked2D:l=0;break;default:l=t}return l}}),Nz=ji({key:"center",default:null});function Ur(e){return e==null}var Ns=63710088e-1,l5={centimeters:Ns*100,centimetres:Ns*100,degrees:Ns/111325,feet:Ns*3.28084,inches:Ns*39.37,kilometers:Ns/1e3,kilometres:Ns/1e3,meters:Ns,metres:Ns,miles:Ns/1609.344,millimeters:Ns*1e3,millimetres:Ns*1e3,nauticalmiles:Ns/1852,radians:1,yards:Ns*1.0936},AK={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:1/1e3,kilometres:1/1e3,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/Ns,yards:1.0936133},c5={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046};function Za(e,t,i){i===void 0&&(i={});var l={type:"Feature"};return(i.id===0||i.id)&&(l.id=i.id),i.bbox&&(l.bbox=i.bbox),l.properties=t||{},l.geometry=e,l}function EK(e,t,i){switch(e){case"Point":return xl(t).geometry;case"LineString":return wl(t).geometry;case"Polygon":return u5(t).geometry;case"MultiPoint":return Lz(t).geometry;case"MultiLineString":return h5(t).geometry;case"MultiPolygon":return zz(t).geometry;default:throw new Error(e+" is invalid")}}function xl(e,t,i){if(i===void 0&&(i={}),!e)throw new Error("coordinates is required");if(!Array.isArray(e))throw new Error("coordinates must be an Array");if(e.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ex(e[0])||!ex(e[1]))throw new Error("coordinates must contain numbers");var l={type:"Point",coordinates:e};return Za(l,t,i)}function NK(e,t,i){return i===void 0&&(i={}),Gu(e.map(function(l){return xl(l,t)}),i)}function u5(e,t,i){i===void 0&&(i={});for(var l=0,h=e;l<h.length;l++){var f=h[l];if(f.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var _=0;_<f[f.length-1].length;_++)if(f[f.length-1][_]!==f[0][_])throw new Error("First and last Position are not equivalent.")}var o={type:"Polygon",coordinates:e};return Za(o,t,i)}function LK(e,t,i){return i===void 0&&(i={}),Gu(e.map(function(l){return u5(l,t)}),i)}function wl(e,t,i){if(i===void 0&&(i={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var l={type:"LineString",coordinates:e};return Za(l,t,i)}function zK(e,t,i){return i===void 0&&(i={}),Gu(e.map(function(l){return wl(l,t)}),i)}function Gu(e,t){t===void 0&&(t={});var i={type:"FeatureCollection"};return t.id&&(i.id=t.id),t.bbox&&(i.bbox=t.bbox),i.features=e,i}function h5(e,t,i){i===void 0&&(i={});var l={type:"MultiLineString",coordinates:e};return Za(l,t,i)}function Lz(e,t,i){i===void 0&&(i={});var l={type:"MultiPoint",coordinates:e};return Za(l,t,i)}function zz(e,t,i){i===void 0&&(i={});var l={type:"MultiPolygon",coordinates:e};return Za(l,t,i)}function kK(e,t,i){i===void 0&&(i={});var l={type:"GeometryCollection",geometries:e};return Za(l,t,i)}function OK(e,t){if(t===void 0&&(t=0),t&&!(t>=0))throw new Error("precision must be a positive number");var i=Math.pow(10,t||0);return Math.round(e*i)/i}function kz(e,t){t===void 0&&(t="kilometers");var i=l5[t];if(!i)throw new Error(t+" units is invalid");return e*i}function d5(e,t){t===void 0&&(t="kilometers");var i=l5[t];if(!i)throw new Error(t+" units is invalid");return e/i}function jK(e,t){return Oz(d5(e,t))}function PK(e){var t=e%360;return t<0&&(t+=360),t}function Oz(e){var t=e%(2*Math.PI);return t*180/Math.PI}function RK(e){var t=e%360;return t*Math.PI/180}function FK(e,t,i){if(t===void 0&&(t="kilometers"),i===void 0&&(i="kilometers"),!(e>=0))throw new Error("length must be a positive number");return kz(d5(e,t),i)}function BK(e,t,i){if(t===void 0&&(t="meters"),i===void 0&&(i="kilometers"),!(e>=0))throw new Error("area must be a positive number");var l=c5[t];if(!l)throw new Error("invalid original units");var h=c5[i];if(!h)throw new Error("invalid final units");return e/l*h}function ex(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function f5(e){return!!e&&e.constructor===Object}function UK(e){if(!e)throw new Error("bbox is required");if(!Array.isArray(e))throw new Error("bbox must be an Array");if(e.length!==4&&e.length!==6)throw new Error("bbox must be an Array of 4 or 6 numbers");e.forEach(function(t){if(!ex(t))throw new Error("bbox must only contain numbers")})}function VK(e){if(!e)throw new Error("id is required");if(["string","number"].indexOf(typeof e)===-1)throw new Error("id must be a number or a string")}const HK=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:c5,bearingToAzimuth:PK,convertArea:BK,convertLength:FK,degreesToRadians:RK,earthRadius:Ns,factors:l5,feature:Za,featureCollection:Gu,geometry:EK,geometryCollection:kK,isNumber:ex,isObject:f5,lengthToDegrees:jK,lengthToRadians:d5,lineString:wl,lineStrings:zK,multiLineString:h5,multiPoint:Lz,multiPolygon:zz,point:xl,points:NK,polygon:u5,polygons:LK,radiansToDegrees:Oz,radiansToLength:kz,round:OK,unitsFactors:AK,validateBBox:UK,validateId:VK},Symbol.toStringTag,{value:"Module"}));function ip(e,t,i){if(e!==null)for(var l,h,f,_,o,I,D,O=0,P=0,F,Q=e.type,J=Q==="FeatureCollection",ae=Q==="Feature",Ne=J?e.features.length:1,oe=0;oe<Ne;oe++){D=J?e.features[oe].geometry:ae?e.geometry:e,F=D?D.type==="GeometryCollection":!1,o=F?D.geometries.length:1;for(var Z=0;Z<o;Z++){var W=0,se=0;if(_=F?D.geometries[Z]:D,_!==null){I=_.coordinates;var ve=_.type;switch(O=i&&(ve==="Polygon"||ve==="MultiPolygon")?1:0,ve){case null:break;case"Point":if(t(I,P,oe,W,se)===!1)return!1;P++,W++;break;case"LineString":case"MultiPoint":for(l=0;l<I.length;l++){if(t(I[l],P,oe,W,se)===!1)return!1;P++,ve==="MultiPoint"&&W++}ve==="LineString"&&W++;break;case"Polygon":case"MultiLineString":for(l=0;l<I.length;l++){for(h=0;h<I[l].length-O;h++){if(t(I[l][h],P,oe,W,se)===!1)return!1;P++}ve==="MultiLineString"&&W++,ve==="Polygon"&&se++}ve==="Polygon"&&W++;break;case"MultiPolygon":for(l=0;l<I.length;l++){for(se=0,h=0;h<I[l].length;h++){for(f=0;f<I[l][h].length-O;f++){if(t(I[l][h][f],P,oe,W,se)===!1)return!1;P++}se++}W++}break;case"GeometryCollection":for(l=0;l<_.geometries.length;l++)if(ip(_.geometries[l],t,i)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function QK(e,t,i,l){var h=i;return ip(e,function(f,_,o,I,D){_===0&&i===void 0?h=f:h=t(h,f,_,o,I,D)},l),h}function jz(e,t){var i;switch(e.type){case"FeatureCollection":for(i=0;i<e.features.length&&t(e.features[i].properties,i)!==!1;i++);break;case"Feature":t(e.properties,0);break}}function $K(e,t,i){var l=i;return jz(e,function(h,f){f===0&&i===void 0?l=h:l=t(l,h,f)}),l}function tx(e,t){if(e.type==="Feature")t(e,0);else if(e.type==="FeatureCollection")for(var i=0;i<e.features.length&&t(e.features[i],i)!==!1;i++);}function YK(e,t,i){var l=i;return tx(e,function(h,f){f===0&&i===void 0?l=h:l=t(l,h,f)}),l}function GK(e){var t=[];return ip(e,function(i){t.push(i)}),t}function p5(e,t){var i,l,h,f,_,o,I,D,O,P,F=0,Q=e.type==="FeatureCollection",J=e.type==="Feature",ae=Q?e.features.length:1;for(i=0;i<ae;i++){for(o=Q?e.features[i].geometry:J?e.geometry:e,D=Q?e.features[i].properties:J?e.properties:{},O=Q?e.features[i].bbox:J?e.bbox:void 0,P=Q?e.features[i].id:J?e.id:void 0,I=o?o.type==="GeometryCollection":!1,_=I?o.geometries.length:1,h=0;h<_;h++){if(f=I?o.geometries[h]:o,f===null){if(t(null,F,D,O,P)===!1)return!1;continue}switch(f.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(t(f,F,D,O,P)===!1)return!1;break}case"GeometryCollection":{for(l=0;l<f.geometries.length;l++)if(t(f.geometries[l],F,D,O,P)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}F++}}function ZK(e,t,i){var l=i;return p5(e,function(h,f,_,o,I){f===0&&i===void 0?l=h:l=t(l,h,f,_,o,I)}),l}function Hc(e,t){p5(e,function(i,l,h,f,_){var o=i===null?null:i.type;switch(o){case null:case"Point":case"LineString":case"Polygon":return t(Za(i,h,{bbox:f,id:_}),l,0)===!1?!1:void 0}var I;switch(o){case"MultiPoint":I="Point";break;case"MultiLineString":I="LineString";break;case"MultiPolygon":I="Polygon";break}for(var D=0;D<i.coordinates.length;D++){var O=i.coordinates[D],P={type:I,coordinates:O};if(t(Za(P,h),l,D)===!1)return!1}})}function WK(e,t,i){var l=i;return Hc(e,function(h,f,_){f===0&&_===0&&i===void 0?l=h:l=t(l,h,f,_)}),l}function Pz(e,t){Hc(e,function(i,l,h){var f=0;if(i.geometry){var _=i.geometry.type;if(!(_==="Point"||_==="MultiPoint")){var o,I=0,D=0,O=0;if(ip(i,function(P,F,Q,J,ae){if(o===void 0||l>I||J>D||ae>O){o=P,I=l,D=J,O=ae,f=0;return}var Ne=wl([o,P],i.properties);if(t(Ne,l,h,ae,f)===!1)return!1;f++,o=P})===!1)return!1}}})}function qK(e,t,i){var l=i,h=!1;return Pz(e,function(f,_,o,I,D){h===!1&&i===void 0?l=f:l=t(l,f,_,o,I,D),h=!0}),l}function Rz(e,t){if(!e)throw new Error("geojson is required");Hc(e,function(i,l,h){if(i.geometry!==null){var f=i.geometry.type,_=i.geometry.coordinates;switch(f){case"LineString":if(t(i,l,h,0,0)===!1)return!1;break;case"Polygon":for(var o=0;o<_.length;o++)if(t(wl(_[o],i.properties),l,h,o)===!1)return!1;break}}})}function KK(e,t,i){var l=i;return Rz(e,function(h,f,_,o){f===0&&i===void 0?l=h:l=t(l,h,f,_,o)}),l}function XK(e,t){if(t=t||{},!f5(t))throw new Error("options is invalid");var i=t.featureIndex||0,l=t.multiFeatureIndex||0,h=t.geometryIndex||0,f=t.segmentIndex||0,_=t.properties,o;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),_=_||e.features[i].properties,o=e.features[i].geometry;break;case"Feature":_=_||e.properties,o=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":o=e;break;default:throw new Error("geojson is invalid")}if(o===null)return null;var I=o.coordinates;switch(o.type){case"Point":case"MultiPoint":return null;case"LineString":return f<0&&(f=I.length+f-1),wl([I[f],I[f+1]],_,t);case"Polygon":return h<0&&(h=I.length+h),f<0&&(f=I[h].length+f-1),wl([I[h][f],I[h][f+1]],_,t);case"MultiLineString":return l<0&&(l=I.length+l),f<0&&(f=I[l].length+f-1),wl([I[l][f],I[l][f+1]],_,t);case"MultiPolygon":return l<0&&(l=I.length+l),h<0&&(h=I[l].length+h),f<0&&(f=I[l][h].length-f-1),wl([I[l][h][f],I[l][h][f+1]],_,t)}throw new Error("geojson is invalid")}function JK(e,t){if(t=t||{},!f5(t))throw new Error("options is invalid");var i=t.featureIndex||0,l=t.multiFeatureIndex||0,h=t.geometryIndex||0,f=t.coordIndex||0,_=t.properties,o;switch(e.type){case"FeatureCollection":i<0&&(i=e.features.length+i),_=_||e.features[i].properties,o=e.features[i].geometry;break;case"Feature":_=_||e.properties,o=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":o=e;break;default:throw new Error("geojson is invalid")}if(o===null)return null;var I=o.coordinates;switch(o.type){case"Point":return xl(I,_,t);case"MultiPoint":return l<0&&(l=I.length+l),xl(I[l],_,t);case"LineString":return f<0&&(f=I.length+f),xl(I[f],_,t);case"Polygon":return h<0&&(h=I.length+h),f<0&&(f=I[h].length+f),xl(I[h][f],_,t);case"MultiLineString":return l<0&&(l=I.length+l),f<0&&(f=I[l].length+f),xl(I[l][f],_,t);case"MultiPolygon":return l<0&&(l=I.length+l),h<0&&(h=I[l].length+h),f<0&&(f=I[l][h].length-f),xl(I[l][h][f],_,t)}throw new Error("geojson is invalid")}const eX=Object.freeze(Object.defineProperty({__proto__:null,coordAll:GK,coordEach:ip,coordReduce:QK,featureEach:tx,featureReduce:YK,findPoint:JK,findSegment:XK,flattenEach:Hc,flattenReduce:WK,geomEach:p5,geomReduce:ZK,lineEach:Rz,lineReduce:KK,propEach:jz,propReduce:$K,segmentEach:Pz,segmentReduce:qK},Symbol.toStringTag,{value:"Module"}));function nx(e){var t=[1/0,1/0,-1/0,-1/0];return ip(e,function(i){t[0]>i[0]&&(t[0]=i[0]),t[1]>i[1]&&(t[1]=i[1]),t[2]<i[0]&&(t[2]=i[0]),t[3]<i[1]&&(t[3]=i[1])}),t}nx.default=nx;const tX=Object.freeze(Object.defineProperty({__proto__:null,default:nx},Symbol.toStringTag,{value:"Module"}));function nX(e){if(!e)throw new Error("coord is required");if(!Array.isArray(e)){if(e.type==="Feature"&&e.geometry!==null&&e.geometry.type==="Point")return e.geometry.coordinates;if(e.type==="Point")return e.coordinates}if(Array.isArray(e)&&e.length>=2&&!Array.isArray(e[0])&&!Array.isArray(e[1]))return e;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function w1(e){if(Array.isArray(e))return e;if(e.type==="Feature"){if(e.geometry!==null)return e.geometry.coordinates}else if(e.coordinates)return e.coordinates;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}function ix(e){return e.type==="Feature"?e.geometry:e}function b1(e,t,i){if(i===void 0&&(i={}),!e)throw new Error("point is required");if(!t)throw new Error("polygon is required");var l=nX(e),h=ix(t),f=h.type,_=t.bbox,o=h.coordinates;if(_&&iX(l,_)===!1)return!1;f==="Polygon"&&(o=[o]);for(var I=!1,D=0;D<o.length&&!I;D++)if(Fz(l,o[D][0],i.ignoreBoundary)){for(var O=!1,P=1;P<o[D].length&&!O;)Fz(l,o[D][P],!i.ignoreBoundary)&&(O=!0),P++;O||(I=!0)}return I}function Fz(e,t,i){var l=!1;t[0][0]===t[t.length-1][0]&&t[0][1]===t[t.length-1][1]&&(t=t.slice(0,t.length-1));for(var h=0,f=t.length-1;h<t.length;f=h++){var _=t[h][0],o=t[h][1],I=t[f][0],D=t[f][1],O=e[1]*(_-I)+o*(I-e[0])+D*(e[0]-_)===0&&(_-e[0])*(I-e[0])<=0&&(o-e[1])*(D-e[1])<=0;if(O)return!i;var P=o>e[1]!=D>e[1]&&e[0]<(I-_)*(e[1]-o)/(D-o)+_;P&&(l=!l)}return l}function iX(e,t){return t[0]<=e[0]&&t[1]<=e[1]&&t[2]>=e[0]&&t[3]>=e[1]}function rX(e,t){t===void 0&&(t={});var i=nx(e),l=(i[0]+i[2])/2,h=(i[1]+i[3])/2;return xl([l,h],t.properties,t)}function Bz(e){if(!e)throw new Error("geojson is required");var t=[];return Hc(e,function(i){oX(i,t)}),Gu(t)}function oX(e,t){var i=[],l=e.geometry;if(l!==null){switch(l.type){case"Polygon":i=w1(l);break;case"LineString":i=[w1(l)]}i.forEach(function(h){var f=sX(h,e.properties);f.forEach(function(_){_.id=t.length,t.push(_)})})}}function sX(e,t){var i=[];return e.reduce(function(l,h){var f=wl([l,h],t);return f.bbox=aX(l,h),i.push(f),h}),i}function aX(e,t){var i=e[0],l=e[1],h=t[0],f=t[1],_=i<h?i:h,o=l<f?l:f,I=i>h?i:h,D=l>f?l:f;return[_,o,I,D]}var g5={exports:{}},Uz={exports:{}};(function(e,t){(function(i,l){e.exports=l()})(Pl,function(){function i(Z,W,se,ve,ue){(function Be($e,Ue,Fe,Ke,ct){for(;Ke>Fe;){if(Ke-Fe>600){var yt=Ke-Fe+1,Ht=Ue-Fe+1,_t=Math.log(yt),wt=.5*Math.exp(2*_t/3),Ft=.5*Math.sqrt(_t*wt*(yt-wt)/yt)*(Ht-yt/2<0?-1:1),gt=Math.max(Fe,Math.floor(Ue-Ht*wt/yt+Ft)),Rt=Math.min(Ke,Math.floor(Ue+(yt-Ht)*wt/yt+Ft));Be($e,Ue,gt,Rt,ct)}var H=$e[Ue],le=Fe,T=Ke;for(l($e,Fe,Ue),ct($e[Ke],H)>0&&l($e,Fe,Ke);le<T;){for(l($e,le,T),le++,T--;ct($e[le],H)<0;)le++;for(;ct($e[T],H)>0;)T--}ct($e[Fe],H)===0?l($e,Fe,T):l($e,++T,Ke),T<=Ue&&(Fe=T+1),Ue<=T&&(Ke=T-1)}})(Z,W,se||0,ve||Z.length-1,ue||h)}function l(Z,W,se){var ve=Z[W];Z[W]=Z[se],Z[se]=ve}function h(Z,W){return Z<W?-1:Z>W?1:0}var f=function(Z){Z===void 0&&(Z=9),this._maxEntries=Math.max(4,Z),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function _(Z,W,se){if(!se)return W.indexOf(Z);for(var ve=0;ve<W.length;ve++)if(se(Z,W[ve]))return ve;return-1}function o(Z,W){I(Z,0,Z.children.length,W,Z)}function I(Z,W,se,ve,ue){ue||(ue=Ne(null)),ue.minX=1/0,ue.minY=1/0,ue.maxX=-1/0,ue.maxY=-1/0;for(var Be=W;Be<se;Be++){var $e=Z.children[Be];D(ue,Z.leaf?ve($e):$e)}return ue}function D(Z,W){return Z.minX=Math.min(Z.minX,W.minX),Z.minY=Math.min(Z.minY,W.minY),Z.maxX=Math.max(Z.maxX,W.maxX),Z.maxY=Math.max(Z.maxY,W.maxY),Z}function O(Z,W){return Z.minX-W.minX}function P(Z,W){return Z.minY-W.minY}function F(Z){return(Z.maxX-Z.minX)*(Z.maxY-Z.minY)}function Q(Z){return Z.maxX-Z.minX+(Z.maxY-Z.minY)}function J(Z,W){return Z.minX<=W.minX&&Z.minY<=W.minY&&W.maxX<=Z.maxX&&W.maxY<=Z.maxY}function ae(Z,W){return W.minX<=Z.maxX&&W.minY<=Z.maxY&&W.maxX>=Z.minX&&W.maxY>=Z.minY}function Ne(Z){return{children:Z,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function oe(Z,W,se,ve,ue){for(var Be=[W,se];Be.length;)if(!((se=Be.pop())-(W=Be.pop())<=ve)){var $e=W+Math.ceil((se-W)/ve/2)*ve;i(Z,$e,W,se,ue),Be.push(W,$e,$e,se)}}return f.prototype.all=function(){return this._all(this.data,[])},f.prototype.search=function(Z){var W=this.data,se=[];if(!ae(Z,W))return se;for(var ve=this.toBBox,ue=[];W;){for(var Be=0;Be<W.children.length;Be++){var $e=W.children[Be],Ue=W.leaf?ve($e):$e;ae(Z,Ue)&&(W.leaf?se.push($e):J(Z,Ue)?this._all($e,se):ue.push($e))}W=ue.pop()}return se},f.prototype.collides=function(Z){var W=this.data;if(!ae(Z,W))return!1;for(var se=[];W;){for(var ve=0;ve<W.children.length;ve++){var ue=W.children[ve],Be=W.leaf?this.toBBox(ue):ue;if(ae(Z,Be)){if(W.leaf||J(Z,Be))return!0;se.push(ue)}}W=se.pop()}return!1},f.prototype.load=function(Z){if(!Z||!Z.length)return this;if(Z.length<this._minEntries){for(var W=0;W<Z.length;W++)this.insert(Z[W]);return this}var se=this._build(Z.slice(),0,Z.length-1,0);if(this.data.children.length)if(this.data.height===se.height)this._splitRoot(this.data,se);else{if(this.data.height<se.height){var ve=this.data;this.data=se,se=ve}this._insert(se,this.data.height-se.height-1,!0)}else this.data=se;return this},f.prototype.insert=function(Z){return Z&&this._insert(Z,this.data.height-1),this},f.prototype.clear=function(){return this.data=Ne([]),this},f.prototype.remove=function(Z,W){if(!Z)return this;for(var se,ve,ue,Be=this.data,$e=this.toBBox(Z),Ue=[],Fe=[];Be||Ue.length;){if(Be||(Be=Ue.pop(),ve=Ue[Ue.length-1],se=Fe.pop(),ue=!0),Be.leaf){var Ke=_(Z,Be.children,W);if(Ke!==-1)return Be.children.splice(Ke,1),Ue.push(Be),this._condense(Ue),this}ue||Be.leaf||!J(Be,$e)?ve?(se++,Be=ve.children[se],ue=!1):Be=null:(Ue.push(Be),Fe.push(se),se=0,ve=Be,Be=Be.children[0])}return this},f.prototype.toBBox=function(Z){return Z},f.prototype.compareMinX=function(Z,W){return Z.minX-W.minX},f.prototype.compareMinY=function(Z,W){return Z.minY-W.minY},f.prototype.toJSON=function(){return this.data},f.prototype.fromJSON=function(Z){return this.data=Z,this},f.prototype._all=function(Z,W){for(var se=[];Z;)Z.leaf?W.push.apply(W,Z.children):se.push.apply(se,Z.children),Z=se.pop();return W},f.prototype._build=function(Z,W,se,ve){var ue,Be=se-W+1,$e=this._maxEntries;if(Be<=$e)return o(ue=Ne(Z.slice(W,se+1)),this.toBBox),ue;ve||(ve=Math.ceil(Math.log(Be)/Math.log($e)),$e=Math.ceil(Be/Math.pow($e,ve-1))),(ue=Ne([])).leaf=!1,ue.height=ve;var Ue=Math.ceil(Be/$e),Fe=Ue*Math.ceil(Math.sqrt($e));oe(Z,W,se,Fe,this.compareMinX);for(var Ke=W;Ke<=se;Ke+=Fe){var ct=Math.min(Ke+Fe-1,se);oe(Z,Ke,ct,Ue,this.compareMinY);for(var yt=Ke;yt<=ct;yt+=Ue){var Ht=Math.min(yt+Ue-1,ct);ue.children.push(this._build(Z,yt,Ht,ve-1))}}return o(ue,this.toBBox),ue},f.prototype._chooseSubtree=function(Z,W,se,ve){for(;ve.push(W),!W.leaf&&ve.length-1!==se;){for(var ue=1/0,Be=1/0,$e=void 0,Ue=0;Ue<W.children.length;Ue++){var Fe=W.children[Ue],Ke=F(Fe),ct=(yt=Z,Ht=Fe,(Math.max(Ht.maxX,yt.maxX)-Math.min(Ht.minX,yt.minX))*(Math.max(Ht.maxY,yt.maxY)-Math.min(Ht.minY,yt.minY))-Ke);ct<Be?(Be=ct,ue=Ke<ue?Ke:ue,$e=Fe):ct===Be&&Ke<ue&&(ue=Ke,$e=Fe)}W=$e||W.children[0]}var yt,Ht;return W},f.prototype._insert=function(Z,W,se){var ve=se?Z:this.toBBox(Z),ue=[],Be=this._chooseSubtree(ve,this.data,W,ue);for(Be.children.push(Z),D(Be,ve);W>=0&&ue[W].children.length>this._maxEntries;)this._split(ue,W),W--;this._adjustParentBBoxes(ve,ue,W)},f.prototype._split=function(Z,W){var se=Z[W],ve=se.children.length,ue=this._minEntries;this._chooseSplitAxis(se,ue,ve);var Be=this._chooseSplitIndex(se,ue,ve),$e=Ne(se.children.splice(Be,se.children.length-Be));$e.height=se.height,$e.leaf=se.leaf,o(se,this.toBBox),o($e,this.toBBox),W?Z[W-1].children.push($e):this._splitRoot(se,$e)},f.prototype._splitRoot=function(Z,W){this.data=Ne([Z,W]),this.data.height=Z.height+1,this.data.leaf=!1,o(this.data,this.toBBox)},f.prototype._chooseSplitIndex=function(Z,W,se){for(var ve,ue,Be,$e,Ue,Fe,Ke,ct=1/0,yt=1/0,Ht=W;Ht<=se-W;Ht++){var _t=I(Z,0,Ht,this.toBBox),wt=I(Z,Ht,se,this.toBBox),Ft=(ue=_t,Be=wt,$e=void 0,Ue=void 0,Fe=void 0,Ke=void 0,$e=Math.max(ue.minX,Be.minX),Ue=Math.max(ue.minY,Be.minY),Fe=Math.min(ue.maxX,Be.maxX),Ke=Math.min(ue.maxY,Be.maxY),Math.max(0,Fe-$e)*Math.max(0,Ke-Ue)),gt=F(_t)+F(wt);Ft<ct?(ct=Ft,ve=Ht,yt=gt<yt?gt:yt):Ft===ct&&gt<yt&&(yt=gt,ve=Ht)}return ve||se-W},f.prototype._chooseSplitAxis=function(Z,W,se){var ve=Z.leaf?this.compareMinX:O,ue=Z.leaf?this.compareMinY:P;this._allDistMargin(Z,W,se,ve)<this._allDistMargin(Z,W,se,ue)&&Z.children.sort(ve)},f.prototype._allDistMargin=function(Z,W,se,ve){Z.children.sort(ve);for(var ue=this.toBBox,Be=I(Z,0,W,ue),$e=I(Z,se-W,se,ue),Ue=Q(Be)+Q($e),Fe=W;Fe<se-W;Fe++){var Ke=Z.children[Fe];D(Be,Z.leaf?ue(Ke):Ke),Ue+=Q(Be)}for(var ct=se-W-1;ct>=W;ct--){var yt=Z.children[ct];D($e,Z.leaf?ue(yt):yt),Ue+=Q($e)}return Ue},f.prototype._adjustParentBBoxes=function(Z,W,se){for(var ve=se;ve>=0;ve--)D(W[ve],Z)},f.prototype._condense=function(Z){for(var W=Z.length-1,se=void 0;W>=0;W--)Z[W].children.length===0?W>0?(se=Z[W-1].children).splice(se.indexOf(Z[W]),1):this.clear():o(Z[W],this.toBBox)},f})})(Uz);var lX=Uz.exports;const cX=Kb(HK),uX=Kb(eX),hX=Kb(tX);var Gl=lX,Vz=cX,Hz=uX,rp=hX.default,dX=Hz.featureEach;Hz.coordEach,Vz.polygon;var Qz=Vz.featureCollection;function $z(e){var t=new Gl(e);return t.insert=function(i){if(i.type!=="Feature")throw new Error("invalid feature");return i.bbox=i.bbox?i.bbox:rp(i),Gl.prototype.insert.call(this,i)},t.load=function(i){var l=[];return Array.isArray(i)?i.forEach(function(h){if(h.type!=="Feature")throw new Error("invalid features");h.bbox=h.bbox?h.bbox:rp(h),l.push(h)}):dX(i,function(h){if(h.type!=="Feature")throw new Error("invalid features");h.bbox=h.bbox?h.bbox:rp(h),l.push(h)}),Gl.prototype.load.call(this,l)},t.remove=function(i,l){if(i.type!=="Feature")throw new Error("invalid feature");return i.bbox=i.bbox?i.bbox:rp(i),Gl.prototype.remove.call(this,i,l)},t.clear=function(){return Gl.prototype.clear.call(this)},t.search=function(i){var l=Gl.prototype.search.call(this,this.toBBox(i));return Qz(l)},t.collides=function(i){return Gl.prototype.collides.call(this,this.toBBox(i))},t.all=function(){var i=Gl.prototype.all.call(this);return Qz(i)},t.toJSON=function(){return Gl.prototype.toJSON.call(this)},t.fromJSON=function(i){return Gl.prototype.fromJSON.call(this,i)},t.toBBox=function(i){var l;if(i.bbox)l=i.bbox;else if(Array.isArray(i)&&i.length===4)l=i;else if(Array.isArray(i)&&i.length===6)l=[i[0],i[1],i[3],i[4]];else if(i.type==="Feature")l=rp(i);else if(i.type==="FeatureCollection")l=rp(i);else throw new Error("invalid geojson");return{minX:l[0],minY:l[1],maxX:l[2],maxY:l[3]}},t}g5.exports=$z,g5.exports.default=$z;var fX=g5.exports;const pX=ul(fX);function m5(e,t){var i={},l=[];if(e.type==="LineString"&&(e=Za(e)),t.type==="LineString"&&(t=Za(t)),e.type==="Feature"&&t.type==="Feature"&&e.geometry!==null&&t.geometry!==null&&e.geometry.type==="LineString"&&t.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&t.geometry.coordinates.length===2){var h=Yz(e,t);return h&&l.push(h),Gu(l)}var f=pX();return f.load(Bz(t)),tx(Bz(e),function(_){tx(f.search(_),function(o){var I=Yz(_,o);if(I){var D=w1(I).join(",");i[D]||(i[D]=!0,l.push(I))}})}),Gu(l)}function Yz(e,t){var i=w1(e),l=w1(t);if(i.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(l.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var h=i[0][0],f=i[0][1],_=i[1][0],o=i[1][1],I=l[0][0],D=l[0][1],O=l[1][0],P=l[1][1],F=(P-D)*(_-h)-(O-I)*(o-f),Q=(O-I)*(f-D)-(P-D)*(h-I),J=(_-h)*(f-D)-(o-f)*(h-I);if(F===0)return null;var ae=Q/F,Ne=J/F;if(ae>=0&&ae<=1&&Ne>=0&&Ne<=1){var oe=h+ae*(_-h),Z=f+ae*(o-f);return xl([oe,Z])}return null}function y5(e,t){t===void 0&&(t={});var i=ix(e);switch(!t.properties&&e.type==="Feature"&&(t.properties=e.properties),i.type){case"Polygon":return gX(i,t);case"MultiPolygon":return mX(i,t);default:throw new Error("invalid poly")}}function gX(e,t){t===void 0&&(t={});var i=ix(e),l=i.coordinates,h=t.properties?t.properties:e.type==="Feature"?e.properties:{};return Gz(l,h)}function mX(e,t){t===void 0&&(t={});var i=ix(e),l=i.coordinates,h=t.properties?t.properties:e.type==="Feature"?e.properties:{},f=[];return l.forEach(function(_){f.push(Gz(_,h))}),Gu(f)}function Gz(e,t){return e.length>1?h5(e,t):wl(e[0],t)}function yX(e,t){var i=!0;return Hc(e,function(l){Hc(t,function(h){if(i===!1)return!1;i=_X(l.geometry,h.geometry)})}),i}function _X(e,t){switch(e.type){case"Point":switch(t.type){case"Point":return!bX(e.coordinates,t.coordinates);case"LineString":return!Zz(t,e);case"Polygon":return!b1(e,t)}break;case"LineString":switch(t.type){case"Point":return!Zz(e,t);case"LineString":return!vX(e,t);case"Polygon":return!Wz(t,e)}break;case"Polygon":switch(t.type){case"Point":return!b1(t,e);case"LineString":return!Wz(e,t);case"Polygon":return!xX(t,e)}}return!1}function Zz(e,t){for(var i=0;i<e.coordinates.length-1;i++)if(wX(e.coordinates[i],e.coordinates[i+1],t.coordinates))return!0;return!1}function vX(e,t){var i=m5(e,t);return i.features.length>0}function Wz(e,t){for(var i=0,l=t.coordinates;i<l.length;i++){var h=l[i];if(b1(h,e))return!0}var f=m5(t,y5(e));return f.features.length>0}function xX(e,t){for(var i=0,l=e.coordinates[0];i<l.length;i++){var h=l[i];if(b1(h,t))return!0}for(var f=0,_=t.coordinates[0];f<_.length;f++){var o=_[f];if(b1(o,e))return!0}var I=m5(y5(e),y5(t));return I.features.length>0}function wX(e,t,i){var l=i[0]-e[0],h=i[1]-e[1],f=t[0]-e[0],_=t[1]-e[1],o=l*_-h*f;return o!==0?!1:Math.abs(f)>=Math.abs(_)?f>0?e[0]<=i[0]&&i[0]<=t[0]:t[0]<=i[0]&&i[0]<=e[0]:_>0?e[1]<=i[1]&&i[1]<=t[1]:t[1]<=i[1]&&i[1]<=e[1]}function bX(e,t){return e[0]===t[0]&&e[1]===t[1]}function MX(e,t){var i=!1;return Hc(e,function(l){Hc(t,function(h){if(i===!0)return!0;i=!yX(l.geometry,h.geometry)})}),i}const IX=()=>{const[e,t]=ye.useState(!1),[i,l]=ye.useState(!1),h=Qs(),f=Az(),_=Mn(r5),o=Mn(v1),I=Mn(o5),D=Mn(Xv),O=Mn(Es),P=Mn(Kv),F=Mn(Cz),Q=Mn(x1),J=Mn(DK),ae=Mn(s5),[Ne,oe]=ye.useState(!1),[Z,W]=Wn(vl),se=Wn(Jv),[ve]=Wn(Nz),[ue,Be]=ye.useState({id:null,originalRule:null});ye.useEffect(()=>{f&&$e()},[f]),ye.useEffect(()=>{$e()},[O,Z,D,I,P,_,F,o,ve]);function $e(){const ct=Q.find(yt=>yt.name.toLowerCase()===Z.toLowerCase());if(!I&&ue.id&&O&&Ne&&(window.mapsindoors.services.LocationsService.getLocation(ue.id).then(yt=>{yt&&(O.setDisplayRule(yt.id,ue.originalRule||null),oe(!1))}),Be({id:null,originalRule:null})),O&&ct){if(t(!0),I&&h)Be(yt=>({...yt,id:I})),window.mapsindoors.services.LocationsService.getLocation(I).then(yt=>{if(yt){const Ht=yt.properties.floor;O.setFloor(Ht);const _t=O.getDisplayRule(yt);Be(wt=>({...wt,originalRule:{..._t}})),Ue(yt),_1().then(wt=>{l(yt.geometry),Wa(yt.geometry,O,wt,0,F?Ke(F):void 0,J,_)})}});else if(D&&!ae)Ur(ve)?window.mapsindoors.services.LocationsService.getLocation(D).then(yt=>{if(yt){const Ht=yt.properties.floor;O.setFloor(Ht),h?Yu().then(_t=>{l(yt.geometry),Wa(yt.geometry,O,0,_t,F?Ke(F):void 0,J,_)}):np().then(_t=>{l(yt.geometry),Wa(yt.geometry,O,_t,0,F?Ke(F):void 0,J,_)})}}):window.mapsindoors.services.LocationsService.getLocation(D).then(yt=>{if(yt){const Ht=yt.properties.floor;O.setFloor(Ht),h?Yu().then(_t=>{l(Fe().geometry),Wa(Fe().geometry,O,0,_t,Ke(F),J,_)}):np().then(_t=>{l(Fe().geometry),Wa(Fe().geometry,O,_t,0,Ke(F),J,_)})}});else if(ct)if(ae)h?(l(ct.geometry),Wa(ct.geometry,O,0,0,Ke(F),J,_)):np().then(yt=>{l(ct.geometry),Wa(ct.geometry,O,yt,0,Ke(F),J,_)});else{const yt=Q.find(Ht=>MX(Ht.geometry,Fe().geometry));Ur(ve)?(l(ct.geometry),Wa(ct.geometry,O,0,0,Ke(F),J,_)):Ur(yt)?h?Yu().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,0,Ht,Ke(F),J,_)}):np().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,Ht,0,Ke(F),J,_)}):(h?Yu().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,0,Ht,Ke(F),J,_)}):np().then(Ht=>{l(Fe().geometry),Wa(Fe().geometry,O,Ht,0,Ke(F),J,_)}),se&&W(yt.name))}}}function Ue(ct){if(Ne)return;const yt=O.getDisplayRule(ct);yt.visible=!0,yt.iconSize={width:yt.iconSize.width*2,height:yt.iconSize.height*2},yt.iconVisible=!0,yt.zoomFrom=0,yt.zoomTo=999,yt.clickable=!1,O.setDisplayRule(ct.id,yt),oe(!0)}function Fe(){const[ct,yt]=ve?ve.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[ct,yt]}}}function Ke(ct){return Ur(ct)?18:ct}return[e,i]};function Wa(e,t,i,l,h,f,_){const o=Number(f),I=Number(_),D=h!==void 0?Number(h):void 0;if(D===void 0)t.getMapView().tilt(o||0),t.getMapView().rotate(I||0),t.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:D??22,padding:{top:0,right:0,bottom:i,left:l}});else{const O=rX(e);t.getMapView().setCenter({lat:O.geometry.coordinates[1],lng:O.geometry.coordinates[0]}),t.getMapView().tilt(o||0),t.getMapView().rotate(I||0),t.setZoom(D)}}const qz=ji({key:"hideNonMatches",default:!1}),TX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3H9V5H5V9H3V3ZM15 3H21V9H19V5H15V3ZM5 15V19H9V21H3V15H5ZM21 15V21H15V19H19V15H21Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}}),ye.createElement("rect",{x:9,y:9,width:6,height:6,fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),op=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),X0e="";Kz.propTypes={isViewSelectorDisabled:at.bool,isViewSelectorVisible:at.bool};function Kz({isViewSelectorDisabled:e,isViewSelectorVisible:t}){const{t:i}=$o(),[l,h]=ye.useState(!1),[f,_]=ye.useState([]),[o,I]=ye.useState(null),D=Qs(),O=Mn(Es),P=Mn(vl),F=".view-selector-portal",[Q,J]=ye.useState(null),ae=ye.useRef(null),Ne=ye.useRef(null),oe=6,Z=60;ye.useEffect(()=>{let $e=document.querySelector(F);if($e){J($e);return}const Ue=new MutationObserver(()=>{$e=document.querySelector(F),$e&&(J($e),Ue.disconnect())}),Fe=document.body,Ke={childList:!0,subtree:!0};return Ue.observe(Fe,Ke),()=>{Ue==null||Ue.disconnect()}},[]),ye.useEffect(()=>{const $e=()=>{const Fe=document.querySelector(F);Fe&&J(Fe)},Ue=new ResizeObserver(()=>{$e()});return Ue.observe(document.body),()=>{Ue==null||Ue.disconnect()}},[D]),ye.useEffect(()=>{var $e;if(O&&P){const Ue=($e=O.getVenue())==null?void 0:$e.id;Ue&&I(Ue)}},[O,P]),ye.useEffect(()=>{O&&P&&window.mapsindoors.services.VenuesService.getVenues().then($e=>{const Ue=$e.find(Fe=>Fe.name.toLowerCase()===P.toLowerCase());Ue!=null&&Ue.id&&I(Ue.id)})},[O,P]),ye.useEffect(()=>{o&&window.mapsindoors.services.VenuesService.getBuildings(o).then($e=>{_($e)})},[o]);const W=ye.useMemo(()=>f.map($e=>({id:$e.id,name:$e.buildingInfo.name})),[f]),se=ye.useCallback($e=>{O.fitBuilding($e),h(!1)},[O]);if(ye.useEffect(()=>{if(!(l&&D))return;function $e(Ue){ae.current&&!ae.current.contains(Ue.target)&&Ne.current&&!Ne.current.contains(Ue.target)&&h(!1)}return document.addEventListener("mousedown",$e),()=>{document.removeEventListener("mousedown",$e)}},[l,D]),W.length<=1||t===!1)return null;const ve=()=>Se.jsx("button",{ref:Ne,className:"view-selector__toggle-button",onClick:()=>h(!l),disabled:e,children:Se.jsx(TX,{})}),ue=()=>{const $e=ye.useMemo(()=>D&&W.length>oe?{height:`${oe*Z}px`}:{},[D,W.length]);return Se.jsx("div",{className:"building-list",style:$e,children:W.map(Ue=>Se.jsx("button",{className:"building-list__item",onClick:()=>se(Ue.id),children:Se.jsx("span",{children:Ue.name})},Ue.id))})},Be=Se.jsxs("div",{className:"view-selector",children:[!D&&l&&Se.jsxs("div",{className:"mobile-overlay",children:[Se.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>h(!1)}),Se.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Se.jsxs("div",{className:"mobile-overlay__header",children:[Se.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>h(!1),"aria-label":i("Close view selector"),children:Se.jsx(op,{})}),Se.jsx("span",{children:i("Go to view")})]}),Se.jsx(ue,{})]})]}),D?Se.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[l&&Se.jsx("div",{ref:ae,className:"view-selector__container view-selector__container--desktop",children:Se.jsx(ue,{})}),Se.jsx(ve,{})]}):Se.jsx(ve,{})]});return Q?Fc.createPortal(Be,Q):null}const SX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00177 3V5H13.0018V7H11.3742C11.0618 8.91166 10.4455 10.5244 9.43896 11.8188C10.1899 12.3437 11.1128 12.7471 12.2443 13.0299L13.2145 13.2725L12.7294 15.2128L11.7593 14.9702C10.2984 14.605 9.04252 14.0424 8.00171 13.245C6.96091 14.0424 5.70503 14.6049 4.24428 14.9701L3.27413 15.2127L2.78906 13.2724L3.75921 13.0299C4.89067 12.747 5.81358 12.3436 6.56448 11.8188C5.55798 10.5244 4.94173 8.91163 4.62931 7H3.00177V5H7.00177V3H9.00177ZM6.65973 7C6.92571 8.41424 7.37545 9.52718 8.00174 10.4013C8.62805 9.52718 9.0778 8.41425 9.34379 7H6.65973ZM16.1161 10H17.8874L22.3317 19.481L20.5207 20.3299L19.4286 18H14.5749L13.4828 20.3299L11.6719 19.481L16.1161 10ZM15.5124 16H18.4911L17.0018 12.8227L15.5124 16Z",fill:"#666666",style:{fill:"#666666",fill:"color(display-p3 0.4000 0.4000 0.4000)",fillOpacity:1}})),J0e="";function Xz({toggleButtonRef:e,isExpanded:t,setIsExpanded:i}){return Se.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>i(l=>!l),"aria-haspopup":"listbox","aria-expanded":t,"aria-label":"Select language",children:Se.jsx(SX,{})})}function Jz({supportedLanguages:e,currentLanguage:t,setLanguage:i,setIsExpanded:l}){return Se.jsx("div",{className:"language-selector__list",children:e.map(h=>Se.jsx("button",{className:`language-selector__item${t===h.code?" language-selector__item--selected":""}`,onClick:()=>{i(h.code),l(!1)},children:h.label},h.code))})}function ek({currentLanguage:e,setLanguage:t,isVisible:i}){const{t:l}=$o(),[h,f]=ye.useState(!1),_=ye.useRef(null),o=ye.useRef(null),[I,D]=ye.useState(null),O=Qs(),P=".language-selector-portal";return ye.useEffect(()=>{let F=document.querySelector(P);if(F){D(F);return}const Q=new MutationObserver(()=>{F=document.querySelector(P),F&&(D(F),Q.disconnect())});return Q.observe(document.body,{childList:!0,subtree:!0}),()=>Q.disconnect()},[]),ye.useEffect(()=>{if(!(h&&O))return;function F(Q){_.current&&!_.current.contains(Q.target)&&o.current&&!o.current.contains(Q.target)&&f(!1)}return document.addEventListener("mousedown",F),()=>document.removeEventListener("mousedown",F)},[h,O]),!i||!I?null:Fc.createPortal(O?Se.jsxs("div",{className:"language-selector__button-container",children:[h&&Se.jsx("div",{ref:_,className:"language-selector__container",children:Se.jsx(Jz,{supportedLanguages:yz,currentLanguage:e,setLanguage:t,setIsExpanded:f})}),Se.jsx(Xz,{toggleButtonRef:o,isExpanded:h,setIsExpanded:f})]}):Se.jsxs(Se.Fragment,{children:[Se.jsx(Xz,{toggleButtonRef:o,isExpanded:h,setIsExpanded:f}),h&&Se.jsxs("div",{className:"language-selector-overlay",children:[Se.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>f(!1)}),Se.jsxs("div",{className:"language-selector__container",children:[Se.jsxs("div",{className:"language-selector-overlay__header",children:[Se.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>f(!1),"aria-label":"Close language selector",children:"×"}),Se.jsx("span",{children:l("Select language")})]}),Se.jsx(Jz,{supportedLanguages:yz,currentLanguage:e,setLanguage:t,setIsExpanded:f})]})]})]}),I)}ek.propTypes={currentLanguage:at.string,setLanguage:at.func.isRequired,isVisible:at.bool};const Zu=ji({key:"appConfig",default:void 0}),CX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M14.4978 10C14.4978 11.3807 13.3785 12.5 11.9978 12.5C10.6171 12.5 9.4978 11.3807 9.4978 10C9.4978 8.61929 10.6171 7.5 11.9978 7.5C13.3785 7.5 14.4978 8.61929 14.4978 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"}),ye.createElement("path",{d:"M19 10C19 14.8354 14.2437 19.1734 12.5723 20.5484C12.2352 20.8258 11.7648 20.8258 11.4277 20.5484C9.75634 19.1734 5 14.8354 5 10C5 6.13401 8.13401 3 12 3C15.866 3 19 6.13401 19 10Z",stroke:"#78716C",strokeWidth:2,strokeLinejoin:"round"})),eye="",bl=ji({key:"kioskLocation",default:null}),Wu=()=>{const e=Mn(bl),t=Qs();return!(!e||e&&!t)};function tk(){const[e,t]=ye.useState(null),i=".reset-view-portal",l=Wu(),h=Mn(o5),f=Mn(Es),_=Mn(vl),o=Mn(bl),I=Qs();function D(){window.mapsindoors.services.LocationsService.getLocation(h).then(Q=>{Q&&O([Q])}).catch(Q=>{console.error("Error resetting map position:",Q)})}function O(Q){if(!f.goTo)return;const J=Q.find(oe=>oe.id===h);if(J){const oe=J.properties.floor;f.setFloor(oe)}const ae=f.getFloor(),Ne={type:"FeatureCollection",features:Q.filter(oe=>parseInt(oe.properties.floor,10)===parseInt(ae,10)).filter(oe=>_&&oe.properties.venueId.toLowerCase()===_.toLowerCase()).map(oe=>({type:"Feature",geometry:oe.geometry,properties:oe.properties}))};Ne.features.length>0&&Promise.all([P(),F()]).then(([oe,Z])=>{f.goTo(Ne,{maxZoom:22,padding:{bottom:oe,left:Z,top:0,right:0}})})}function P(){return new Promise(Q=>{I?o?_1().then(J=>Q(J)):Q(0):Q(200)})}function F(){return new Promise(Q=>{I?o?Q(0):Yu().then(J=>Q(J)):Q(0)})}return ye.useEffect(()=>{let Q=document.querySelector(i);if(Q){t(Q);return}const J=new MutationObserver(()=>{Q=document.querySelector(i),Q&&(t(Q),J.disconnect())});return J.observe(document.body,{childList:!0,subtree:!0}),()=>J.disconnect()},[]),!l||!e?null:Fc.createPortal(Se.jsx("button",{className:"reset-kiosk-view-button",onClick:D,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Se.jsx(CX,{})}),e)}tk.propTypes={onReset:at.func,isVisible:at.bool},nk.propTypes={onLocationClick:at.func,onMapPositionKnown:at.func.isRequired,useMapProviderModule:at.bool.isRequired,onMapPositionInvestigating:at.func.isRequired,onViewModeSwitchKnown:at.func.isRequired,resetCount:at.number.isRequired,mapOptions:at.object,gmMapId:at.string,isWayfindingOrDirections:at.bool,currentLanguage:at.string,setLanguage:at.func,devicePosition:at.object};let _5;function nk({onLocationClick:e,onMapPositionKnown:t,useMapProviderModule:i,onMapPositionInvestigating:l,onViewModeSwitchKnown:h,resetCount:f,mapOptions:_,gmMapId:o,isWayfindingOrDirections:I,currentLanguage:D,setLanguage:O,devicePosition:P}){const F=Mn(Zv),Q=Mn(i5),J=Mn(Wv),[ae,Ne]=Wn(Gv),[oe,Z]=Wn(Es),[,W]=Wn(tp),[,se]=Wn(Yv),ve=Mn(m1),ue=Mn(qv),Be=Mn(Iz),$e=Mn(r5),Ue=Mn(Kv),[,Fe]=Wn(Tz),Ke=Mn(Sz),[,ct]=Wn(y1),yt=Mn(qz),Ht=Mn(Zu),[_t,wt]=ye.useState(!1),[Ft,gt]=ye.useState(!1),Rt=Wu();SK(F);const[H,le]=IX();ye.useEffect(()=>{if(!Ke||Q===null&&J===null)return;let Y;const q=Ke.modules.map(ce=>ce.toLowerCase()).includes("mapbox");i?q?J&&(Y=xs.Mapbox):Q&&(Y=xs.Google):J?Y=xs.Mapbox:Y=xs.Google,Y?Ne(Y):(ct({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),Ne(void 0))},[Q,J,Ke]),ye.useEffect(()=>{H&&l()},[H]),ye.useEffect(()=>{le&&t()},[le]),ye.useEffect(()=>{if(!oe)return;const Y=ve||ue;if(!Y)return;const q=Y.map(ce=>ce.id);yt||!oe.highlight?oe.filter(q):oe.highlight(q)},[ve,ue,oe,yt]),ye.useEffect(()=>{oe&&(isNaN(parseInt(Ue))||oe.getMapView().tilt(parseInt(Ue)),isNaN(parseInt($e))||oe.getMapView().rotate(parseInt($e)))},[$e,Ue,oe]);const T=Y=>{L(Y)},L=Y=>{if(Y&&_5){let q=Y.getTileURL();if(q){q=Y.getTileURL().replace("default",_5);const ce=q==null?void 0:q.replace("{floor}",Y.getFloor());Y.getMapView().setMapsIndoorsTileURL(ce)}}},$=(Y,q,ce)=>{Y.on("mouseenter",()=>{var nt;const He=Y.getHoveredLocation();((nt=He==null?void 0:He.properties.locationSettings)==null?void 0:nt.selectable)===!1&&Y.unhoverLocation()}),Y.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Y.on("click",He=>e(He)),Y.once("building_changed",()=>T(Y)),Y.on("floor_changed",()=>L(Y)),Z(Y),window.mapsIndoorsInstance=Y;const pe=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(pe);let fe;ae===xs.Google?fe=new window.mapsindoors.directions.GoogleMapsProvider:ae===xs.Mapbox&&(fe=new window.mapsindoors.directions.MapboxProvider(J));const we=new window.mapsindoors.services.DirectionsService(fe);se(we),Z(Y),q.nodeName==="MI-MY-POSITION"?(q.addEventListener("position_received",He=>{He.detail.accurate===!0&&W(He.detail.position)}),q.addEventListener("position_error",()=>{W(null)})):(q.on("position_received",He=>{He.accurate===!0&&W(He.position)}),q.on("position_error",()=>{W(null)})),Fe(q),h(ce)};return ye.useEffect(()=>{_5=Be||"default",L(oe)},[Be]),ye.useEffect(()=>{var Y,q,ce,pe;Ht&&(Ur((Y=Ht==null?void 0:Ht.appSettings)==null?void 0:Y.viewSelector)?wt(!1):wt(((q=Ht==null?void 0:Ht.appSettings)==null?void 0:q.viewSelector.trim().toLowerCase())==="true"),Ur((ce=Ht==null?void 0:Ht.appSettings)==null?void 0:ce.languageSelector)?gt(!1):gt(((pe=Ht==null?void 0:Ht.appSettings)==null?void 0:pe.languageSelector.trim().toLowerCase())==="true"))},[Ht]),Se.jsxs(Se.Fragment,{children:[F&&Se.jsx(Mz,{apiKey:F,mapboxAccessToken:ae===xs.Mapbox?J:void 0,gmApiKey:ae===xs.Google?Q:void 0,onInitialized:$,resetUICounter:f,mapOptions:_,gmMapId:o,devicePosition:P,isKiosk:Rt}),F&&Se.jsxs(Se.Fragment,{children:[Se.jsx(Kz,{isViewSelectorVisible:_t,isViewSelectorDisabled:I}),Se.jsx(ek,{currentLanguage:D,setLanguage:O,isVisible:Ft}),Se.jsx(tk,{})]})]})}const Ta=ji({key:"primaryColor",default:"#005655"}),tye="",v5=ji({key:"logo",default:void 0});function DX(){const e=Mn(Ta),t=Mn(v5);return Se.jsx("div",{className:"splash-screen",children:Se.jsxs("div",{className:"splash-screen__container",children:[Se.jsx("img",{className:"splash-screen__logo "+(t?"splash-screen__logo--visible":""),src:t,alt:""}),Se.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function ik(e,t){if(e==null)return{};var i={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(t.indexOf(l)!==-1)continue;i[l]=e[l]}return i}function x5(e,t){return x5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},x5(e,t)}function rk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,x5(e,t)}function AX(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function EX(e,t){e.classList?e.classList.add(t):AX(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ok(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function NX(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ok(e.className,t):e.setAttribute("class",ok(e.className&&e.className.baseVal||"",t))}const sk={disabled:!1},ak=Lr.createContext(null);var lk=function(t){return t.scrollTop},M1="unmounted",cd="exited",ud="entering",sp="entered",w5="exiting",Qc=function(e){rk(t,e);function t(l,h){var f;f=e.call(this,l,h)||this;var _=h,o=_&&!_.isMounting?l.enter:l.appear,I;return f.appearStatus=null,l.in?o?(I=cd,f.appearStatus=ud):I=sp:l.unmountOnExit||l.mountOnEnter?I=M1:I=cd,f.state={status:I},f.nextCallback=null,f}t.getDerivedStateFromProps=function(h,f){var _=h.in;return _&&f.status===M1?{status:cd}:null};var i=t.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(h){var f=null;if(h!==this.props){var _=this.state.status;this.props.in?_!==ud&&_!==sp&&(f=ud):(_===ud||_===sp)&&(f=w5)}this.updateStatus(!1,f)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var h=this.props.timeout,f,_,o;return f=_=o=h,h!=null&&typeof h!="number"&&(f=h.exit,_=h.enter,o=h.appear!==void 0?h.appear:_),{exit:f,enter:_,appear:o}},i.updateStatus=function(h,f){if(h===void 0&&(h=!1),f!==null)if(this.cancelNextCallback(),f===ud){if(this.props.unmountOnExit||this.props.mountOnEnter){var _=this.props.nodeRef?this.props.nodeRef.current:qm.findDOMNode(this);_&&lk(_)}this.performEnter(h)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cd&&this.setState({status:M1})},i.performEnter=function(h){var f=this,_=this.props.enter,o=this.context?this.context.isMounting:h,I=this.props.nodeRef?[o]:[qm.findDOMNode(this),o],D=I[0],O=I[1],P=this.getTimeouts(),F=o?P.appear:P.enter;if(!h&&!_||sk.disabled){this.safeSetState({status:sp},function(){f.props.onEntered(D)});return}this.props.onEnter(D,O),this.safeSetState({status:ud},function(){f.props.onEntering(D,O),f.onTransitionEnd(F,function(){f.safeSetState({status:sp},function(){f.props.onEntered(D,O)})})})},i.performExit=function(){var h=this,f=this.props.exit,_=this.getTimeouts(),o=this.props.nodeRef?void 0:qm.findDOMNode(this);if(!f||sk.disabled){this.safeSetState({status:cd},function(){h.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:w5},function(){h.props.onExiting(o),h.onTransitionEnd(_.exit,function(){h.safeSetState({status:cd},function(){h.props.onExited(o)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(h,f){f=this.setNextCallback(f),this.setState(h,f)},i.setNextCallback=function(h){var f=this,_=!0;return this.nextCallback=function(o){_&&(_=!1,f.nextCallback=null,h(o))},this.nextCallback.cancel=function(){_=!1},this.nextCallback},i.onTransitionEnd=function(h,f){this.setNextCallback(f);var _=this.props.nodeRef?this.props.nodeRef.current:qm.findDOMNode(this),o=h==null&&!this.props.addEndListener;if(!_||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var I=this.props.nodeRef?[this.nextCallback]:[_,this.nextCallback],D=I[0],O=I[1];this.props.addEndListener(D,O)}h!=null&&setTimeout(this.nextCallback,h)},i.render=function(){var h=this.state.status;if(h===M1)return null;var f=this.props,_=f.children;f.in,f.mountOnEnter,f.unmountOnExit,f.appear,f.enter,f.exit,f.timeout,f.addEndListener,f.onEnter,f.onEntering,f.onEntered,f.onExit,f.onExiting,f.onExited,f.nodeRef;var o=ik(f,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Lr.createElement(ak.Provider,{value:null},typeof _=="function"?_(h,o):Lr.cloneElement(Lr.Children.only(_),o))},t}(Lr.Component);Qc.contextType=ak,Qc.propTypes={};function ap(){}Qc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ap,onEntering:ap,onEntered:ap,onExit:ap,onExiting:ap,onExited:ap},Qc.UNMOUNTED=M1,Qc.EXITED=cd,Qc.ENTERING=ud,Qc.ENTERED=sp,Qc.EXITING=w5;const LX=Qc;var zX=function(t,i){return t&&i&&i.split(" ").forEach(function(l){return EX(t,l)})},b5=function(t,i){return t&&i&&i.split(" ").forEach(function(l){return NX(t,l)})},M5=function(e){rk(t,e);function t(){for(var l,h=arguments.length,f=new Array(h),_=0;_<h;_++)f[_]=arguments[_];return l=e.call.apply(e,[this].concat(f))||this,l.appliedClasses={appear:{},enter:{},exit:{}},l.onEnter=function(o,I){var D=l.resolveArguments(o,I),O=D[0],P=D[1];l.removeClasses(O,"exit"),l.addClass(O,P?"appear":"enter","base"),l.props.onEnter&&l.props.onEnter(o,I)},l.onEntering=function(o,I){var D=l.resolveArguments(o,I),O=D[0],P=D[1],F=P?"appear":"enter";l.addClass(O,F,"active"),l.props.onEntering&&l.props.onEntering(o,I)},l.onEntered=function(o,I){var D=l.resolveArguments(o,I),O=D[0],P=D[1],F=P?"appear":"enter";l.removeClasses(O,F),l.addClass(O,F,"done"),l.props.onEntered&&l.props.onEntered(o,I)},l.onExit=function(o){var I=l.resolveArguments(o),D=I[0];l.removeClasses(D,"appear"),l.removeClasses(D,"enter"),l.addClass(D,"exit","base"),l.props.onExit&&l.props.onExit(o)},l.onExiting=function(o){var I=l.resolveArguments(o),D=I[0];l.addClass(D,"exit","active"),l.props.onExiting&&l.props.onExiting(o)},l.onExited=function(o){var I=l.resolveArguments(o),D=I[0];l.removeClasses(D,"exit"),l.addClass(D,"exit","done"),l.props.onExited&&l.props.onExited(o)},l.resolveArguments=function(o,I){return l.props.nodeRef?[l.props.nodeRef.current,o]:[o,I]},l.getClassNames=function(o){var I=l.props.classNames,D=typeof I=="string",O=D&&I?I+"-":"",P=D?""+O+o:I[o],F=D?P+"-active":I[o+"Active"],Q=D?P+"-done":I[o+"Done"];return{baseClassName:P,activeClassName:F,doneClassName:Q}},l}var i=t.prototype;return i.addClass=function(h,f,_){var o=this.getClassNames(f)[_+"ClassName"],I=this.getClassNames("enter"),D=I.doneClassName;f==="appear"&&_==="done"&&D&&(o+=" "+D),_==="active"&&h&&lk(h),o&&(this.appliedClasses[f][_]=o,zX(h,o))},i.removeClasses=function(h,f){var _=this.appliedClasses[f],o=_.base,I=_.active,D=_.done;this.appliedClasses[f]={},o&&b5(h,o),I&&b5(h,I),D&&b5(h,D)},i.render=function(){var h=this.props;h.classNames;var f=ik(h,["classNames"]);return Lr.createElement(LX,X4({},f,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Lr.Component);M5.defaultProps={classNames:""},M5.propTypes={};const kX=M5,nye="",OX=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 1.66667C0 0.746192 0.746193 0 1.66667 0H11.6667C12.5872 0 13.3333 0.746193 13.3333 1.66667V20H8.33333V17.5C8.33333 16.5795 7.58714 15.8333 6.66667 15.8333C5.74619 15.8333 5 16.5795 5 17.5V20H0V1.66667ZM14.5833 8.33333H18.3333C19.2538 8.33333 20 9.0795 20 10V20H14.5833V8.33333ZM3.33333 2.5C2.8731 2.5 2.5 2.8731 2.5 3.33333V5.41667C2.5 5.8769 2.8731 6.25 3.33333 6.25H4.58333C5.04357 6.25 5.41667 5.8769 5.41667 5.41667V3.33333C5.41667 2.8731 5.04357 2.5 4.58333 2.5H3.33333ZM7.91667 3.33333C7.91667 2.8731 8.28977 2.5 8.75 2.5H10C10.4602 2.5 10.8333 2.8731 10.8333 3.33333V5.41667C10.8333 5.8769 10.4602 6.25 10 6.25H8.75C8.28976 6.25 7.91667 5.8769 7.91667 5.41667V3.33333ZM3.33333 9.58333C2.8731 9.58333 2.5 9.95642 2.5 10.4167V12.5C2.5 12.9602 2.8731 13.3333 3.33333 13.3333H4.58333C5.04357 13.3333 5.41667 12.9602 5.41667 12.5V10.4167C5.41667 9.95642 5.04357 9.58333 4.58333 9.58333H3.33333ZM7.91667 10.4167C7.91667 9.95642 8.28977 9.58333 8.75 9.58333H10C10.4602 9.58333 10.8333 9.95642 10.8333 10.4167V12.5C10.8333 12.9602 10.4602 13.3333 10 13.3333H8.75C8.28976 13.3333 7.91667 12.9602 7.91667 12.5V10.4167Z",fill:"#707070"})),iye="";ck.propTypes={venue:at.object.isRequired,isCurrent:at.bool,onVenueClicked:at.func.isRequired};function ck({venue:e,isCurrent:t,onVenueClicked:i}){const{t:l}=$o(),[h,f]=ye.useState({});return ye.useEffect(()=>()=>{f({})},[]),ye.useEffect(()=>{const _={};e.image&&(_.backgroundImage=`url('${e.image}')`),f(_)},[e]),Se.jsxs("button",{className:"venue",onClick:()=>i(),children:[Se.jsx("div",{className:"venue__image",style:h}),Se.jsxs("div",{className:"venue__content",children:[Se.jsx("div",{children:e.venueInfo.name}),t&&Se.jsx("div",{className:"venue__current",children:l("Current")})]})]})}const I1=ji({key:"isLocationClicked",default:!1});uk.propTypes={onOpen:at.func,onClose:at.func,active:at.bool};function uk({onOpen:e,onClose:t,active:i}){const{t:l}=$o(),h=ye.useRef(null),f=Mn(x1),[,_]=Wn(s5),[o,I]=Wn(vl),[,D]=Wn(I1),O=document.querySelector(".venue-selector-portal"),P=J=>{_(!0),I(J.name),F()},F=()=>{i?t():e()};function Q(J){P(J),D(!1)}return Se.jsxs(Se.Fragment,{children:[!i&&O&&Fc.createPortal(Se.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":l("Venues"),children:Se.jsx(OX,{})}),O),Se.jsx(kX,{in:i,nodeRef:h,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Se.jsxs("div",{className:"venue-selector__content",ref:h,children:[Se.jsxs("div",{className:"venue-selector__header",children:[Se.jsx("h1",{children:l("Select venue")}),Se.jsx("button",{className:"venue-selector__button",onClick:()=>t(),"aria-label":l("Close"),children:Se.jsx(op,{})})]}),Se.jsx("div",{className:"venue-selector__list",children:f.map(J=>Se.jsx(ck,{isCurrent:(o==null?void 0:o.toLowerCase())===J.name.toLowerCase(),venue:J,onVenueClicked:()=>Q(J)},J.id))})]})})]})}const hk=ye.createContext(),Zl=ji({key:"currentLocation",default:null}),jX="Left",PX="Right",RX="Up",FX="Down",lp={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},I5={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},dk="mousemove",fk="mouseup",BX="touchend",UX="touchmove",VX="touchstart";function HX(e,t,i,l){return e>t?i>0?PX:jX:l>0?FX:RX}function pk(e,t){if(t===0)return e;const i=Math.PI/180*t,l=e[0]*Math.cos(i)+e[1]*Math.sin(i),h=e[1]*Math.cos(i)-e[0]*Math.sin(i);return[l,h]}function QX(e,t){const i=O=>{const P="touches"in O;P&&O.touches.length>1||e((F,Q)=>{Q.trackMouse&&!P&&(document.addEventListener(dk,l),document.addEventListener(fk,_));const{clientX:J,clientY:ae}=P?O.touches[0]:O,Ne=pk([J,ae],Q.rotationAngle);return Q.onTouchStartOrOnMouseDown&&Q.onTouchStartOrOnMouseDown({event:O}),Object.assign(Object.assign(Object.assign({},F),I5),{initial:Ne.slice(),xy:Ne,start:O.timeStamp||0})})},l=O=>{e((P,F)=>{const Q="touches"in O;if(Q&&O.touches.length>1)return P;if(O.timeStamp-P.start>F.swipeDuration)return P.swiping?Object.assign(Object.assign({},P),{swiping:!1}):P;const{clientX:J,clientY:ae}=Q?O.touches[0]:O,[Ne,oe]=pk([J,ae],F.rotationAngle),Z=Ne-P.xy[0],W=oe-P.xy[1],se=Math.abs(Z),ve=Math.abs(W),ue=(O.timeStamp||0)-P.start,Be=Math.sqrt(se*se+ve*ve)/(ue||1),$e=[Z/(ue||1),W/(ue||1)],Ue=HX(se,ve,Z,W),Fe=typeof F.delta=="number"?F.delta:F.delta[Ue.toLowerCase()]||lp.delta;if(se<Fe&&ve<Fe&&!P.swiping)return P;const Ke={absX:se,absY:ve,deltaX:Z,deltaY:W,dir:Ue,event:O,first:P.first,initial:P.initial,velocity:Be,vxvy:$e};Ke.first&&F.onSwipeStart&&F.onSwipeStart(Ke),F.onSwiping&&F.onSwiping(Ke);let ct=!1;return(F.onSwiping||F.onSwiped||F[`onSwiped${Ue}`])&&(ct=!0),ct&&F.preventScrollOnSwipe&&F.trackTouch&&O.cancelable&&O.preventDefault(),Object.assign(Object.assign({},P),{first:!1,eventData:Ke,swiping:!0})})},h=O=>{e((P,F)=>{let Q;if(P.swiping&&P.eventData){if(O.timeStamp-P.start<F.swipeDuration){Q=Object.assign(Object.assign({},P.eventData),{event:O}),F.onSwiped&&F.onSwiped(Q);const J=F[`onSwiped${Q.dir}`];J&&J(Q)}}else F.onTap&&F.onTap({event:O});return F.onTouchEndOrOnMouseUp&&F.onTouchEndOrOnMouseUp({event:O}),Object.assign(Object.assign(Object.assign({},P),I5),{eventData:Q})})},f=()=>{document.removeEventListener(dk,l),document.removeEventListener(fk,_)},_=O=>{f(),h(O)},o=(O,P)=>{let F=()=>{};if(O&&O.addEventListener){const Q=Object.assign(Object.assign({},lp.touchEventOptions),P.touchEventOptions),J=[[VX,i,Q],[UX,l,Object.assign(Object.assign({},Q),P.preventScrollOnSwipe?{passive:!1}:{})],[BX,h,Q]];J.forEach(([ae,Ne,oe])=>O.addEventListener(ae,Ne,oe)),F=()=>J.forEach(([ae,Ne])=>O.removeEventListener(ae,Ne))}return F},D={ref:O=>{O!==null&&e((P,F)=>{if(P.el===O)return P;const Q={};return P.el&&P.el!==O&&P.cleanUpTouch&&(P.cleanUpTouch(),Q.cleanUpTouch=void 0),F.trackTouch&&O&&(Q.cleanUpTouch=o(O,F)),Object.assign(Object.assign(Object.assign({},P),{el:O}),Q)})}};return t.trackMouse&&(D.onMouseDown=i),[D,o]}function $X(e,t,i,l){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==i.preventScrollOnSwipe||t.touchEventOptions.passive!==i.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:l(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:l(e.el,t)})}function gk(e){const{trackMouse:t}=e,i=ye.useRef(Object.assign({},I5)),l=ye.useRef(Object.assign({},lp)),h=ye.useRef(Object.assign({},l.current));h.current=Object.assign({},l.current),l.current=Object.assign(Object.assign({},lp),e);let f;for(f in lp)l.current[f]===void 0&&(l.current[f]=lp[f]);const[_,o]=ye.useMemo(()=>QX(I=>i.current=I(i.current,l.current),{trackMouse:t}),[t]);return i.current=$X(i.current,l.current,h.current,o),_}const Xi={MIN:"MIN",FIT:"FIT",MAX:"MAX"},rye="",cp=ye.forwardRef(function({children:t,isOpen:i,initialSnapPoint:l,minimizedHeight:h,disableSwipe:f=!1,disableContentScroll:_=!1},o){const I=ye.useRef(),D=ye.useRef(),O=ye.useRef(),P=ye.useRef(),F=ye.useRef(),[Q,J]=ye.useState({}),[ae,Ne]=ye.useState(!1),[oe,Z]=ye.useState(null),W=ye.useContext(hk),se=ye.useRef();ye.useImperativeHandle(o,()=>({setSnapPoint(ct){ve(ct)}}));function ve(ct){requestAnimationFrame(()=>{switch(ct){case Xi.MAX:J({height:`${W.current.clientHeight}px`}),O.current=W.current.clientHeight;break;case Xi.FIT:{const yt=D.current.children.item(0).clientHeight;yt<h?(J({height:`${h}px`}),O.current=h,ct=Xi.MIN):(J({height:`${yt}px`}),O.current=yt);break}case Xi.MIN:J({height:`${h}px`}),O.current=h;break}}),F.current=ct}ye.useEffect(()=>(i&&F.current===Xi.FIT?ue():Be(),()=>{Be()}),[i,F.current]);function ue(){se.current&&se.current.disconnect(),se.current=new MutationObserver(()=>{ve(Xi.FIT)}),se.current.observe(D.current,{childList:!0,subtree:!0})}function Be(){se.current&&se.current.disconnect()}const $e=gk(f?{onSwipeStart:()=>{},onSwiping:()=>{},onSwiped:()=>{},trackMouse:!1,preventScrollOnSwipe:!1}:{onSwipeStart:()=>{Ne(!0),Z(null),P.current=I.current.clientHeight},onSwiping:ct=>{const yt=Math.max(P.current-ct.deltaY,h);J({height:`${yt}px`})},onSwiped:ct=>{Ne(!1);const yt=YX(ct.dir,ct.deltaY,F.current,h,W.current.clientHeight,D.current.children.item(0));yt&&(ve(yt),Z(yt))},trackMouse:!0,preventScrollOnSwipe:!0});ye.useEffect(()=>{i&&(F.current=l,ve(l))},[h,l,i]);const Ue=ct=>{$e!=null&&$e.ref&&$e.ref(ct),I.current=ct},Fe=Lr.Children.map(t,ct=>ye.cloneElement(ct,{snapPointSwipedByUser:oe})),Ke=`sheet__content ${F.current===Xi.MIN||_?"sheet__content--no-scroll":""}`;return Se.jsx("div",{...$e,ref:Ue,className:`sheet ${i?"sheet--active":""} ${ae?"sheet--dragging":""} ${F.current===Xi.MAX?"sheet--max":""}`,style:Q,children:Se.jsx("div",{ref:D,className:Ke,style:Q,children:Fe})})});cp.propTypes={children:at.node.isRequired,isOpen:at.bool.isRequired,initialSnapPoint:at.string.isRequired,minimizedHeight:at.number.isRequired,disableSwipe:at.bool,disableContentScroll:at.bool};function YX(e,t,i,l,h,f){if(Math.abs(t)<60)return i;let o;return e.toUpperCase()==="DOWN"?i===Xi.MAX?GX(f)?o=Xi.MIN:f.clientHeight<=h&&f.clientHeight>l?o=Xi.FIT:o=Xi.MIN:i===Xi.FIT&&(o=Xi.MIN):e.toUpperCase()==="UP"&&(i===Xi.MIN?f.clientHeight<=l||f.clientHeight>h?o=Xi.MAX:o=Xi.FIT:i===Xi.FIT&&(o=Xi.MAX)),o}function GX(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const t of e.children)if(t.scrollHeight>t.clientHeight)return!0;return!1}const oye="",sye="",ZX=(e,t)=>{const[i,l]=ye.useState(void 0),[h,f]=ye.useState(void 0);return ye.useEffect(()=>{const _=(o=!1)=>{var D,O;const I=((D=t.current)==null?void 0:D.scrollHeight)>((O=t.current)==null?void 0:O.clientHeight);l(I),o===!0&&f(I)};_(!0),t.current&&new ResizeObserver(_).observe(t.current)},[e,t]),[i,h]},up=()=>gk({onSwiping:({event:e})=>e.stopPropagation()});function rx(e){const t=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:t[1],lng:t[0],floor:e.properties.floor}}const hp=ji({key:"directionsResponse",default:null}),T1=ji({key:"hasFoundRoute",default:!0}),ox=ji({key:"shuttleBusOn",default:!1}),mk=(e,t,i,l,h)=>{const[f,_]=ye.useState(),[o,I]=ye.useState(),[D,O]=Wn(T1),[,P]=Wn(hp),[F,Q]=ye.useState(),J=Mn(ox);return ye.useEffect(()=>{Q(!1);let ae=!0;return e!=null&&e.geometry&&(t!=null&&t.geometry)&&i.getRoute({origin:rx(e),destination:rx(t),travelMode:l,avoidStairs:h,excludeHighwayTypes:J?[]:["busway"]}).then(Ne=>{if(ae)if(Ne&&Ne.legs){const oe=Ne.legs.reduce((W,se)=>W+se.distance.value,0),Z=Ne.legs.reduce((W,se)=>W+se.duration.value,0);_(oe),I(Z),P({originLocation:e,destinationLocation:t,totalDistance:oe,totalTime:Z,directionsResult:Ne}),O(!0),Q(!0)}else O(!1)},()=>{ae&&O(!1)}),()=>{ae=!1}},[e,t,i,h,l,J]),[f,o,D,F]},hd={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},dp=ji({key:"travelMode",default:hd.WALKING}),fp=ji({key:"accessibilityOn",default:!1}),sx=ji({key:"showExternalIDs",default:!1});function yk(e,t){const i=Mn(Gv),[l,h]=ye.useState(!1),f=e.getMap();ye.useEffect(()=>{t&&h(!1)},[t]);function _(I,D,O,P){const F=Q=>{if(!O)return;D.getMap().queryRenderedFeatures(Q.point).length?P(!1):P(!0)};return I.on("click",F),()=>{I.off("click",F)}}function o(I,D,O,P){const F=()=>{O&&P(!1)},Q=()=>{O&&P(!0)};D.addListener("click",F);const J=I.addListener("click",Q);return()=>{D.removeListener("click",F),J.remove()}}return ye.useEffect(()=>{let I;return i===xs.Mapbox&&(I=_(f,e,t,h)),i===xs.Google&&(I=o(f,e,t,h)),()=>I==null?void 0:I()},[e,t]),l}const aye="",WX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M12 7.75V12L14.75 14.75M21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12Z",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M8 10L11.6464 13.6464C11.8417 13.8417 12.1583 13.8417 12.3536 13.6464L16 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),KX=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M16 14L12.3536 10.3536C12.1583 10.1583 11.8417 10.1583 11.6464 10.3536L8 14",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4500 0.4500 0.4500)",strokeOpacity:1},strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),dd=ji({key:"language",default:void 0});_k.propTypes={openingHours:at.object,isMondayFirstDayOfTheWeek:at.bool,onExpand:at.func};function _k({openingHours:e,isMondayFirstDayOfTheWeek:t=!0,onExpand:i}){const{t:l}=$o(),[h,f]=ye.useState(!1),o=Mn(dd)??navigator.language,I=ye.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(o).match(/AM|PM/)!==null,[o]),D=new Date().getDay(),O=ye.useMemo(()=>{const se=[];for(let ve=0;ve<7;ve++)se.push(new Date(2024,0,ve+1));if(!t){const ve=se.pop();se.unshift(ve)}return se},[t]),P=ye.useMemo(()=>t?D===0?6:D-1:D,[D,t]),{standardOpeningHours:F}=e||{},Q=se=>{const[ve,ue]=se.split(":");return new Date(0,0,0,ve,ue).toLocaleTimeString(o,{hour:"2-digit",minute:"2-digit",hour12:I})},J=se=>{const ve=se.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),ue=F==null?void 0:F[ve];return!(ue!=null&&ue.startTime)||!(ue!=null&&ue.endTime)||ue.closedAllDay?{text:l("Closed"),isClosed:!0}:{text:`${Q(ue.startTime)} - ${Q(ue.endTime)}`,isClosed:!1}},ae=ye.useCallback(se=>{if(!se||se.closedAllDay||!se.startTime||!se.endTime)return!1;const ve=new Date,ue=ve.getHours()*60+ve.getMinutes(),[Be,$e]=se.startTime.split(":"),[Ue,Fe]=se.endTime.split(":"),Ke=parseInt(Be,10)*60+parseInt($e,10),ct=parseInt(Ue,10)*60+parseInt(Fe,10);return ue>=Ke&&ue<=ct},[]),oe=ye.useCallback(()=>{const se=O[P].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return ae(F==null?void 0:F[se])?"Open":"Closed"},[F,O,P,ae,l])(),Z=se=>se.charAt(0).toUpperCase()+se.slice(1),W=()=>{f(se=>!se)};return ye.useEffect(()=>{h&&typeof i=="function"&&i()},[h,i]),Se.jsxs("div",{className:"opening-hours",children:[Se.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:W,"aria-label":l(h?"Collapse opening hours":"Expand opening hours"),"aria-expanded":h,children:[Se.jsx("div",{className:"contact-action-button__icon-wrapper",children:Se.jsx(WX,{})}),Se.jsx("div",{className:"contact-action-button__text",children:J(O[P]).text}),Se.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${oe.toLowerCase()}`,children:l(oe)}),h?Se.jsx(KX,{}):Se.jsx(qX,{})]}),h&&Se.jsx("ul",{className:"opening-hours__list",children:O.map(se=>{const ve=J(se);return Se.jsxs("li",{className:"opening-hours__list-item",children:[Se.jsx("span",{className:"opening-hours__day",children:Z(se.toLocaleString(o,{weekday:"long"}))}),Se.jsx("span",{className:`opening-hours__hours ${ve.isClosed?"opening-hours__hours--closed":""}`,children:ve.text})]},se)})})]})}const XX=ye.memo(_k);function T5(e,t,i){return(t=function(l){var h=function(f,_){if(typeof f!="object"||!f)return f;var o=f[Symbol.toPrimitive];if(o!==void 0){var I=o.call(f,_||"default");if(typeof I!="object")return I;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(f)}(l,"string");return typeof h=="symbol"?h:h+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var S5={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},vk=function(e){var t=e.children,i=e.onClickAway,l=e.focusEvent,h=l===void 0?"focusin":l,f=e.mouseEvent,_=f===void 0?"click":f,o=e.touchEvent,I=o===void 0?"touchend":o,D=ye.useRef(null),O=ye.useRef(null),P=ye.useRef(!1);ye.useEffect(function(){return setTimeout(function(){P.current=!0},0),function(){P.current=!1}},[]);var F=function(Ne){return function(oe){O.current=oe.target;var Z=t==null?void 0:t.props[Ne];Z&&Z(oe)}};ye.useEffect(function(){var Ne,oe,Z=(Ne=(oe=D.current)===null||oe===void 0?void 0:oe.ownerDocument)!==null&&Ne!==void 0?Ne:document,W=function(se){P.current&&(D.current&&D.current.contains(se.target)||O.current===se.target||!Z.contains(se.target)||i(se))};return Z.addEventListener(_,W),Z.addEventListener(I,W),Z.addEventListener(h,W),function(){Z.removeEventListener(_,W),Z.removeEventListener(I,W),Z.removeEventListener(h,W)}},[h,_,i,I]);var Q=S5[_],J=S5[I],ae=S5[h];return Lr.Children.only(ye.cloneElement(t,T5(T5(T5({ref:function(Ne){D.current=Ne;var oe=t.ref;typeof oe=="function"?oe(Ne):oe&&(oe.current=Ne)}},ae,F(ae)),Q,F(Q)),J,F(J))))};vk.displayName="ClickAwayListener";const ax=ji({key:"searchAllVenues",default:!1}),C5=ji({key:"searchExternalLocations",default:!0}),xk=Lv({key:"baseLink",get:({get:e})=>{const t=e(i5),i=e(Wv),l=e(Zv),h=e(Ta),f=e(dd),_=e(ax),o=e(C5),I=e(v5),D=window.location.origin+window.location.pathname.replace(/\/$/,""),O=new URLSearchParams(window.location.search),P=new URLSearchParams;return[["gmApiKey",t],["mapboxAccessToken",i],["apiKey",l],["primaryColor",h],["language",f],["searchAllVenues",_],["searchExternalLocations",o],["logo",I]].forEach(([F,Q])=>{if(O.has(F)){const J=O.get(F);P.append(F,J)}else Q&&(Q===h?P.append(F,h.replace("#","")):P.append(F,Q))}),`${D}?${P.toString()}`}}),lye="",JX=e=>ye.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8484 4.66738C13.3129 3.20291 15.6872 3.20291 17.1517 4.66737L19.909 7.42474C21.3735 8.8892 21.3735 11.2636 19.909 12.7281L18.2804 14.3568C17.9875 14.6497 17.5126 14.6497 17.2197 14.3568C16.9268 14.0639 16.9268 13.589 17.2197 13.2961L18.8484 11.6674C19.7271 10.7887 19.7271 9.36407 18.8484 8.4854L16.091 5.72803C15.2123 4.84936 13.7877 4.84936 12.909 5.72804L11.2804 7.35672C10.9875 7.64961 10.5126 7.64961 10.2197 7.35672C9.92681 7.06382 9.92681 6.58895 10.2197 6.29606L11.8484 4.66738ZM15.5304 9.04606C15.8233 9.33895 15.8233 9.81382 15.5304 10.1067L9.53036 16.1068C9.23747 16.3997 8.7626 16.3997 8.4697 16.1068C8.17681 15.8139 8.17681 15.339 8.4697 15.0461L14.4697 9.04606C14.7626 8.75316 15.2375 8.75316 15.5304 9.04606ZM6.78036 10.7961C7.07326 11.089 7.07326 11.5639 6.78036 11.8568L5.15169 13.4854C4.27301 14.3641 4.27301 15.7887 5.15169 16.6674L7.90905 19.4248C8.78773 20.3035 10.2123 20.3035 11.091 19.4248L12.7197 17.7961C13.0126 17.5032 13.4875 17.5032 13.7804 17.7961C14.0733 18.089 14.0733 18.5639 13.7804 18.8568L12.1517 20.4854C10.6872 21.9499 8.31285 21.9499 6.84839 20.4854L4.09102 17.7281C2.62656 16.2636 2.62656 13.8893 4.09103 12.4248L5.7197 10.7961C6.0126 10.5032 6.48747 10.5032 6.78036 10.7961Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),wk=e=>ye.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 7.32635C3 5.25529 4.67893 3.57635 6.75 3.57635H7.25C9.32107 3.57635 11 5.25529 11 7.32635V7.82635C11 9.89742 9.32107 11.5764 7.25 11.5764H6.75C4.67893 11.5764 3 9.89742 3 7.82635V7.32635ZM6.75 5.07635C5.50736 5.07635 4.5 6.08371 4.5 7.32635V7.82635C4.5 9.06899 5.50736 10.0764 6.75 10.0764H7.25C8.49264 10.0764 9.5 9.06899 9.5 7.82635V7.32635C9.5 6.08371 8.49264 5.07635 7.25 5.07635H6.75ZM13 7.32635C13 5.25529 14.6789 3.57635 16.75 3.57635H17.25C19.3211 3.57635 21 5.25529 21 7.32635V7.82635C21 9.89742 19.3211 11.5764 17.25 11.5764H16.75C14.6789 11.5764 13 9.89742 13 7.82635V7.32635ZM16.75 5.07635C15.5074 5.07635 14.5 6.08371 14.5 7.32635V7.82635C14.5 9.06899 15.5074 10.0764 16.75 10.0764H17.25C18.4926 10.0764 19.5 9.06899 19.5 7.82635V7.32635C19.5 6.08371 18.4926 5.07635 17.25 5.07635H16.75ZM3 17.3264C3 15.2553 4.67893 13.5764 6.75 13.5764H7.25C9.32107 13.5764 11 15.2553 11 17.3264V17.8264C11 19.8975 9.32107 21.5764 7.25 21.5764H6.75C4.67893 21.5764 3 19.8975 3 17.8264V17.3264ZM6.75 15.0764C5.50736 15.0764 4.5 16.0838 4.5 17.3264V17.8264C4.5 19.069 5.50736 20.0764 6.75 20.0764H7.25C8.49264 20.0764 9.5 19.069 9.5 17.8264V17.3264C9.5 16.0838 8.49264 15.0764 7.25 15.0764H6.75Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.75 13.5764C14.1642 13.5764 14.5 13.9122 14.5 14.3264V16.0764H16.25C16.6642 16.0764 17 16.4122 17 16.8264C17 17.2406 16.6642 17.5764 16.25 17.5764H13.75C13.3358 17.5764 13 17.2406 13 16.8264V14.3264C13 13.9122 13.3358 13.5764 13.75 13.5764ZM17 14.3264C17 13.9122 17.3358 13.5764 17.75 13.5764H20.25C20.6642 13.5764 21 13.9122 21 14.3264C21 14.7406 20.6642 15.0764 20.25 15.0764H17.75C17.3358 15.0764 17 14.7406 17 14.3264ZM17 18.3264C17 17.9122 17.3358 17.5764 17.75 17.5764H20.25C20.6642 17.5764 21 17.9122 21 18.3264C21 18.7406 20.6642 19.0764 20.25 19.0764H18.5V20.8264C18.5 21.2406 18.1642 21.5764 17.75 21.5764C17.3358 21.5764 17 21.2406 17 20.8264V18.3264Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M13 20.5764C13 20.0241 13.4477 19.5764 14 19.5764C14.5523 19.5764 15 20.0241 15 20.5764C15 21.1287 14.5523 21.5764 14 21.5764C13.4477 21.5764 13 21.1287 13 20.5764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M5.5 17.0764C5.5 16.5241 5.94772 16.0764 6.5 16.0764H7.5C8.05228 16.0764 8.5 16.5241 8.5 17.0764V18.0764C8.5 18.6287 8.05228 19.0764 7.5 19.0764H6.5C5.94772 19.0764 5.5 18.6287 5.5 18.0764V17.0764Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M5.5 7.07635C5.5 6.52407 5.94772 6.07635 6.5 6.07635H7.5C8.05228 6.07635 8.5 6.52407 8.5 7.07635V8.07635C8.5 8.62863 8.05228 9.07635 7.5 9.07635H6.5C5.94772 9.07635 5.5 8.62863 5.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}}),ye.createElement("path",{d:"M15.5 7.07635C15.5 6.52407 15.9477 6.07635 16.5 6.07635H17.5C18.0523 6.07635 18.5 6.52407 18.5 7.07635V8.07635C18.5 8.62863 18.0523 9.07635 17.5 9.07635H16.5C15.9477 9.07635 15.5 8.62863 15.5 8.07635V7.07635Z",fill:"#646970",style:{fill:"#646970",fill:"color(display-p3 0.3922 0.4118 0.4392)",fillOpacity:1}})),eJ=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M8 6L12 2L16 6",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M12 3V13",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M17 10C18.1046 10 19 10.8954 19 12V18C19 19.1046 18.1046 20 17 20H7C5.89543 20 5 19.1046 5 18V12C5 10.8954 5.89543 10 7 10",stroke:"#737373",style:{stroke:"#737373",stroke:"color(display-p3 0.4510 0.4510 0.4510)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),lx=ji({key:"qrCodeLink",default:null}),bk=ji({key:"supportsUrlParameters",default:!1});Mk.propTypes={location:at.object.isRequired,buttonClassName:at.string};function Mk({location:e,buttonClassName:t}){const{t:i}=$o(),[l,h]=ye.useState(!1),f=Mn(xk),[_,o]=ye.useState(),I=Mn(bk),[D,O]=ye.useState(!1),[P,F]=ye.useState(!1),Q=Mn(bl),[,J]=Wn(lx),ae=Qs();ye.useEffect(()=>{f&&e&&o(f+"&locationId="+e.id)},[f,e]),ye.useEffect(()=>{var W;O(!Q&&I&&ae);const Z=typeof((W=navigator.clipboard)==null?void 0:W.writeText)=="function";F(!Q&&I&&Z)},[I,Q,ae]);const Ne=()=>{navigator.clipboard.writeText(_),h(!1)},oe=()=>{J(_),h(!1)};return(D||P)&&Se.jsxs("div",{className:"share-location-link",children:[Se.jsx("button",{className:t,onClick:()=>h(Z=>!Z),title:i("Share"),"aria-label":i("Share"),children:Se.jsx(eJ,{})}),l&&Se.jsx(vk,{onClickAway:()=>h(!1),children:Se.jsxs("ul",{children:[P&&Se.jsx("li",{children:Se.jsxs("button",{className:t,onClick:()=>Ne(),children:[Se.jsx(JX,{}),i("Copy link")]})}),D&&Se.jsx("li",{children:Se.jsxs("button",{className:t,onClick:()=>oe(),children:[Se.jsx(wk,{}),i("QR Code")]})})]})})]})}const cye="",Ik={email:"email",phone:"phone"};Tk.propTypes={detailType:at.string,active:at.bool,displayText:at.string,value:at.string,icon:at.string};function Tk({detailType:e,active:t,displayText:i,value:l,icon:h}){if(!t||e.toLowerCase()==="openinghours")return null;const f=i!=null&&i.trim()?i:l,_=(o,I)=>{switch(o.toLowerCase()){case Ik.email:return`mailto:${I}`;case Ik.phone:return`tel:${I}`;default:try{return new URL(I),I}catch{return"#"}}};return Se.jsxs("a",{className:"contact-action-button",href:_(e,l),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Se.jsx("div",{className:"contact-action-button__icon-wrapper",children:Se.jsx("img",{alt:"",src:h,className:"contact-action-button__icon"})}),Se.jsx("span",{className:"contact-action-button__text",children:f})]})}D5.propTypes={onBack:at.func,onStartWayfinding:at.func,onSetSize:at.func,snapPointSwiped:at.number,onStartDirections:at.func,isOpen:at.bool,snapPointSwipedByUser:at.string};function D5({onBack:e,onStartWayfinding:t,onSetSize:i,onStartDirections:l,isOpen:h,snapPointSwipedByUser:f}){var At,Nt,hn,Jt;const{t:_}=$o(),o=ye.useRef(null),I=ye.useRef(null),D=ye.useRef(null),O=ye.useRef(null),P=ye.useRef(null),[F,Q]=ye.useState(!1),[J,ae]=ye.useState(!1),[Ne,oe]=ye.useState(!1),Z=ye.useRef(!1),[W,se]=ye.useState(null),ve=Mn(Es),ue=Mn(Zl),Be=(At=ue==null?void 0:ue.properties)==null?void 0:At.additionalDetails,$e=(Nt=Be==null?void 0:Be.find(fn=>fn.key.toLowerCase().includes("openinghours")&&fn.active===!0))==null?void 0:Nt.openingHours,[Ue,Fe]=ZX(ue,D),Ke=up(),ct=Mn(Ta),yt=Mn(bl),Ht=Mn(Yv),[_t,wt]=ye.useState(),[Ft,gt]=ye.useState(),[Rt,H]=ye.useState(!0),le=Qs(),T=Mn(dp),L=Mn(fp),[,,$]=mk(Ft,_t,Ht,T,L),Y=Mn(sx),q=yk(ve,h),ce=Mn(Zu),pe=(Jt=(hn=ce==null?void 0:ce.appSettings)==null?void 0:hn.excludeFromUI)==null?void 0:Jt.includes("wayfindingDisabled");ye.useEffect(()=>{(()=>{if(ve&&ue)try{const Xt=ve.getBuilding();if(Xt&&Xt.floors){const xn=Object.keys(Xt.floors).length;H(xn>1)}else H(!1)}catch{H(!0)}})()},[ve,ue]),ye.useEffect(()=>()=>{se(null),wt(),gt()},[]);const fe=ye.useCallback(()=>{Q(!1),ae(!1),oe(!1),we(Xi.FIT),e()});function we(fn){typeof i=="function"&&i(fn)}function He(){F===!1?(nt(),we(Xi.MAX)):(Qe(),we(Xi.FIT))}function nt(){requestAnimationFrame(()=>{Q(!0),tt(),Z.current=!0})}function Qe(){Q(!1),Ge(),Z.current=!1}function tt(){const fn=requestAnimationFrame(()=>{I.current&&(ae(I.current.scrollTop>0),oe(I.current.scrollTop<I.current.scrollHeight-I.current.offsetHeight-1))});return()=>cancelAnimationFrame(fn)}function Ge(){ae(!1),oe(!1)}function It(){Q(!1),ae(!1),oe(!1),we(Xi.FIT),t()}function Mt(){Q(!1),ae(!1),oe(!1),we(Xi.FIT),l()}return ye.useEffect(()=>{q&&e()},[q]),ye.useEffect(()=>()=>{se(null),wt(),gt()},[]),ye.useEffect(()=>{Q(!1),ae(!1),oe(!1),se(null),ue&&(o.current.location=ue,se(ve.getDisplayRule(ue)),wt(ue)),yt&&gt(yt)},[ue,ve,yt]),ye.useEffect(()=>{const fn=(Be==null?void 0:Be.length)>0;we(ue&&h&&fn?Xi.FIT:Xi.MIN)},[ue,h,Be]),ye.useEffect(()=>{if(!f){Z.current=!1;return}Q(f===Xi.MAX),f===Xi.MAX?nt():Qe()},[f]),ye.useLayoutEffect(()=>{const fn=document.querySelector(".modal.modal--open");if(!fn||!(O!=null&&O.current)||!(I!=null&&I.current))return;const Xt=()=>{const xn=fn.offsetHeight,kn=I.current.offsetHeight;xn>0&&kn>0&&(kn/xn>.9?(fn.style.height="100%",tt()):fn.style.height="auto")};return P.current?P.current.complete?Xt():(P.current.onload=Xt,P.current.onerror=Xt):Xt(),()=>{fn.style.height="",P.current&&(P.current.onload=null,P.current.onerror=null)}},[ue,F,h,Be]),Se.jsx("div",{className:`location-details ${Z.current===!0?"location-details--max-height":""} ${J?"location-details--content-above":""} ${Ne?"location-details--content-below":""}`,children:ue&&Se.jsxs(Se.Fragment,{children:[Se.jsxs("div",{className:"location-details__header",children:[Se.jsxs("div",{className:"location-info",children:[Se.jsx("div",{className:"location-info__icon",children:W&&Se.jsx("img",{alt:"",src:W.icon.src?W.icon.src:W.icon})}),Se.jsxs("div",{className:"location-info__content",children:[Se.jsx("div",{className:"location-info__name",children:ue.properties.name}),Se.jsx("mi-location-info",{level:_("Level"),ref:o,"show-external-id":Y,"show-floor":Rt})]}),Se.jsxs("div",{className:"location-info__actions",children:[Se.jsx(Mk,{buttonClassName:"location-info__button",location:ue}),Se.jsx("button",{className:"location-info__button",onClick:()=>fe(),"aria-label":_("Close"),children:Se.jsx(op,{})})]})]}),!pe&&(yt&&le?Se.jsx("button",{disabled:!$,onClick:()=>Mt(),className:`location-details__wayfinding ${$?"":"location-details--no-route"}`,style:{background:ct},children:_($?"Start directions":"Directions not available")}):Se.jsx("button",{onClick:()=>It(),style:{background:ct},className:"location-details__wayfinding",children:_("Start wayfinding")}))]}),Se.jsx("div",{className:"location-details__details prevent-scroll",...Ke,ref:O,children:Se.jsxs("div",{ref:I,onScroll:fn=>tt(),className:"location-details__details-content",children:[ue.properties.imageURL&&Se.jsx("img",{ref:P,alt:"",src:ue.properties.imageURL,className:"location-details__image"}),Object.keys(ue.properties.categories).length>0&&Se.jsx("p",{className:"location-details__categories",children:Object.values(ue.properties.categories).map((fn,Xt,xn)=>Se.jsxs(Lr.Fragment,{children:[fn,Xt<xn.length-1&&Se.jsx(Se.Fragment,{children:"・"})]},fn))}),ue.properties.description&&Se.jsxs("section",{className:`location-details__description ${F?"location-details__description--full":""}`,children:[Se.jsx("div",{ref:D,children:ue.properties.description}),(Ue||Fe||F)&&Se.jsx("button",{onClick:()=>He(),children:_(F?"Close":"Read full description")})]}),Be&&Se.jsxs("div",{className:"contact-action-buttons-container",children:[Be.map(fn=>Se.jsx(Tk,{detailType:fn.detailType,active:fn.active,displayText:fn.displayText,value:fn.value,icon:fn.icon},fn.key)),$e&&Se.jsx(XX,{openingHours:$e,onExpand:()=>tt()})]})]})})]})})}const uye="",tJ=e=>ye.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("g",{clipPath:"url(#clip0_1663_3931)"},ye.createElement("path",{d:"M8 0.5C6.41775 0.5 4.87104 0.969192 3.55544 1.84824C2.23985 2.72729 1.21447 3.97672 0.608967 5.43853C0.00346629 6.90034 -0.15496 8.50887 0.153721 10.0607C0.462403 11.6126 1.22433 13.038 2.34315 14.1569C3.46197 15.2757 4.88743 16.0376 6.43928 16.3463C7.99113 16.655 9.59966 16.4965 11.0615 15.891C12.5233 15.2855 13.7727 14.2602 14.6518 12.9446C15.5308 11.629 16 10.0823 16 8.5C16 6.37827 15.1571 4.34344 13.6569 2.84315C12.1566 1.34285 10.1217 0.5 8 0.5ZM11.4667 11.98C11.4074 12.0452 11.3358 12.098 11.2559 12.1353C11.1761 12.1726 11.0897 12.1937 11.0017 12.1974C10.9136 12.2012 10.8258 12.1874 10.7431 12.1569C10.6604 12.1265 10.5846 12.0799 10.52 12.02L7.18667 8.99333C7.12364 8.92813 7.07457 8.85074 7.04247 8.76591C7.01038 8.68109 6.99592 8.5906 7 8.5V4.83333C7 4.65652 7.07024 4.48695 7.19527 4.36193C7.32029 4.23691 7.48986 4.16667 7.66667 4.16667C7.84348 4.16667 8.01305 4.23691 8.13807 4.36193C8.2631 4.48695 8.33334 4.65652 8.33334 4.83333V8.20667L11.42 11.04C11.5506 11.1586 11.6288 11.3242 11.6375 11.5004C11.6463 11.6765 11.5848 11.849 11.4667 11.98Z",fill:"#707070"})),ye.createElement("defs",null,ye.createElement("clipPath",{id:"clip0_1663_3931"},ye.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),Sk=e=>ye.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M9.61194 2.82846C9.61194 3.93033 8.7187 4.82357 7.61683 4.82357C6.51495 4.82357 5.62171 3.93033 5.62171 2.82846C5.62171 1.72659 6.51495 0.833344 7.61683 0.833344C8.7187 0.833344 9.61194 1.72659 9.61194 2.82846Z",fill:"#4B5563"}),ye.createElement("path",{d:"M3.85618 7.89573L2.70342 8.26942C2.51461 8.33063 2.38005 8.49797 2.36081 8.69552L2.15675 10.7898C2.10483 11.3227 1.64157 11.7195 1.10705 11.6891C0.529883 11.6562 0.101401 11.1412 0.174055 10.5677L0.562276 7.5031C0.609594 7.12957 0.863193 6.8145 1.21798 6.68846L5.43314 5.19101C5.91287 4.94642 6.49458 4.90944 7.02868 5.14168C7.58278 5.38261 7.96247 5.86074 8.09808 6.40693C8.10564 6.42543 8.11266 6.44417 8.11911 6.46314L8.13434 6.50792C8.1531 6.56308 8.17666 6.6165 8.20475 6.66755L9.12944 8.34823C9.24374 8.55597 9.4283 8.71621 9.65003 8.80021L11.6264 9.54897C12.2431 9.78262 12.4674 10.5397 12.0776 11.0716C11.8078 11.4397 11.3226 11.5778 10.8994 11.4069L8.27831 10.3486C8.07383 10.266 7.90247 10.118 7.79102 9.92774L7.36282 9.1966L6.28886 11.8906C6.2887 11.8929 6.2885 11.8952 6.28824 11.8974C6.28503 11.9259 6.28989 11.9548 6.30227 11.9807L6.30571 11.9879L9.7205 18.1483C10.0544 18.7506 9.83675 19.5096 9.23443 19.8434C8.6321 20.1773 7.87316 19.9597 7.53929 19.3574L4.94329 14.6741L2.97868 19.1924C2.70407 19.8239 1.96948 20.1133 1.33793 19.8387C0.706382 19.5641 0.417021 18.8295 0.691627 18.1979L3.26686 12.2753L3.30923 12.1729C3.31648 12.1479 3.31685 12.1215 3.3104 12.0965C2.88761 11.4405 2.77915 10.5975 3.08907 9.82005L3.85618 7.89573Z",fill:"#4B5563"})),nJ=e=>ye.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M4.48045 5.12001C4.0861 5.12526 3.70969 5.28562 3.4327 5.56636C3.15571 5.84709 3.00042 6.22562 3.00045 6.62001V16.73C3.00045 16.7963 2.97411 16.8599 2.92723 16.9068C2.88035 16.9537 2.81676 16.98 2.75045 16.98H1.48045C1.30245 16.979 1.1274 17.0255 0.973367 17.1147C0.819338 17.2039 0.691916 17.3326 0.60426 17.4876C0.516604 17.6425 0.471891 17.818 0.474737 17.996C0.477584 18.174 0.527887 18.348 0.620453 18.5L3.62045 23.5C3.709 23.6492 3.83484 23.7728 3.98563 23.8587C4.13641 23.9446 4.30694 23.9897 4.48045 23.9897C4.65397 23.9897 4.8245 23.9446 4.97528 23.8587C5.12606 23.7728 5.25191 23.6492 5.34045 23.5L8.34045 18.5C8.42797 18.3484 8.47417 18.1765 8.47444 18.0015C8.4747 17.8265 8.42903 17.6544 8.34197 17.5026C8.25491 17.3508 8.12953 17.2244 7.97834 17.1362C7.82716 17.048 7.65548 17.0011 7.48045 17H6.23045C6.19758 16.9975 6.16554 16.9885 6.13616 16.9735C6.10679 16.9586 6.08066 16.938 6.05928 16.9129C6.03791 16.8878 6.0217 16.8587 6.01161 16.8273C6.00151 16.7959 5.99772 16.7629 6.00045 16.73V6.62001C6.00047 6.42133 5.96102 6.22463 5.88439 6.04132C5.80776 5.85802 5.69548 5.69176 5.55407 5.55221C5.41265 5.41266 5.24493 5.30259 5.06062 5.2284C4.87632 5.1542 4.67911 5.11736 4.48045 5.12001Z",fill:"#707070"}),ye.createElement("path",{d:"M15.5203 18.84C15.9182 18.84 16.2997 18.6819 16.581 18.4006C16.8623 18.1193 17.0203 17.7378 17.0203 17.34V7.22995C17.0254 7.16717 17.0539 7.10861 17.1003 7.06597C17.1466 7.02332 17.2074 6.99975 17.2703 6.99995H18.5203C18.6968 6.99992 18.8702 6.95317 19.0228 6.86446C19.1754 6.77574 19.3018 6.64822 19.3891 6.49485C19.4765 6.34148 19.5217 6.16771 19.5201 5.99122C19.5186 5.81472 19.4704 5.64177 19.3803 5.48995L16.3803 0.48995C16.2918 0.340728 16.1659 0.217112 16.0152 0.131252C15.8644 0.0453926 15.6938 0.000244141 15.5203 0.000244141C15.3468 0.000244141 15.1763 0.0453926 15.0255 0.131252C14.8747 0.217112 14.7489 0.340728 14.6603 0.48995L11.6603 5.48995C11.5703 5.64177 11.5221 5.81472 11.5205 5.99122C11.519 6.16771 11.5642 6.34148 11.6516 6.49485C11.7389 6.64822 11.8653 6.77574 12.0179 6.86446C12.1705 6.95317 12.3438 6.99992 12.5203 6.99995H13.7703C13.8366 6.99995 13.9002 7.02629 13.9471 7.07317C13.994 7.12006 14.0203 7.18365 14.0203 7.24995V17.34C14.0203 17.7378 14.1784 18.1193 14.4597 18.4006C14.741 18.6819 15.1225 18.84 15.5203 18.84Z",fill:"#707070"})),hye="";S1.propTypes={location:at.object,locationClicked:at.func,icon:at.string,isHovered:at.bool};function S1({location:e,locationClicked:t,icon:i,isHovered:l}){const{t:h}=$o(),f=ye.useRef(),_=Mn(Es),o=Mn(sx);return ye.useEffect(()=>{var F;const I=Q=>t(Q.detail),D=()=>{var Q;((Q=e.properties.locationSettings)==null?void 0:Q.selectable)!==!1&&_.hoverLocation(e)},O=()=>{var Q;(Q=e.properties.locationSettings)!=null&&Q.selectable||_.unhoverLocation(e)};((F=e.properties.locationSettings)==null?void 0:F.selectable)===!1&&f.current.classList.add("non-selectable");const{current:P}=f;return P.location=e,P.icon=i||_.getDisplayRule(e).icon,P.addEventListener("locationClicked",I),P.addEventListener("mouseover",D),P.addEventListener("mouseout",O),l?f.current.classList.add("hovered"):f.current.classList.remove("hovered"),()=>{P.removeEventListener("locationClicked",I),P.removeEventListener("mouseover",D),P.removeEventListener("mouseout",O)}},[e,t,l]),Se.jsx("mi-list-item-location",{level:h("Level"),ref:f,"show-external-id":o})}const iJ=()=>{const[e,t]=ye.useState(),i=Mn(Es),l=Mn(Jv);return ye.useEffect(()=>{function h(){const f=i.getMapView().getCenter();t(f.lat+","+f.lng)}return i&&l?(i.getMapView().addListener("idle",h),h()):i&&i.getMapView().removeListener("idle",h),()=>{i&&i.getMapView().removeListener("idle",h)}},[i,l]),e},A5=ji({key:"searchInput",default:void 0}),cx=ye.forwardRef(function(t,i){const{placeholder:l,mapsindoors:h,results:f,clicked:_,cleared:o,changed:I,category:D,google:O,mapbox:P,disabled:F=!1}=t,Q=ye.useRef(),J=Mn(tp),ae=Mn(dd),[,Ne]=Wn(A5),oe=sessionStorage.getItem("mapboxPlacesSessionToken"),Z={longitude:J==null?void 0:J.coords.longitude,latitude:J==null?void 0:J.coords.latitude},W=iJ(),se=Mn(vl),ve=Mn(ax);return ye.useImperativeHandle(i,()=>({triggerSearch(){Q.current.triggerSearch()},getValue(){return Q.current.value},setDisplayText(ue){Q.current.setDisplayText(ue)},focusInput(){Q.current.focusInput()},clear(){Q.current.clear()},getInputField(){return Q.current.getInputField().then(ue=>Ne(ue))}})),ye.useEffect(()=>{const{current:ue}=Q;ue.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{ue.triggerSearch()})},[ae]),ye.useEffect(()=>{const ue=Ue=>f(Ue.detail),Be=()=>o(),{current:$e}=Q;return h===!0&&($e.mapsindoors="true"),$e.addEventListener("results",ue),$e.addEventListener("click",_),$e.addEventListener("cleared",Be),$e.addEventListener("changed",I),()=>{$e.removeEventListener("results",ue),$e.removeEventListener("click",_),$e.removeEventListener("cleared",Be),$e.removeEventListener("changed",I)}},[l,h,f,_,o,O,P,I]),Se.jsx("mi-search",{ref:Q,"id-attribute":"search",placeholder:l,"session-token":oe,"user-position":Z.latitude!==void 0&&Z.longitude!==void 0?Object.values(Z).join(","):null,"mi-near":W,"mi-categories":D,disabled:F,mapbox:P,google:O,"mi-venue":ve?void 0:se,language:ae})});cx.propTypes={placeholder:at.string,mapsindoors:at.bool,results:at.func,clicked:at.func,cleared:at.func,changed:at.func,category:at.string,preventFocus:at.bool,google:at.bool,mapbox:at.bool,disabled:at.bool};function E5(e){const t={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:t,properties:{name:hz("My position"),anchor:t},type:"Feature"}}let N5;function rJ(e){return new Promise((t,i)=>{N5||(N5=new window.google.maps.Geocoder),N5.geocode({placeId:e.properties.placeId},l=>{l.length>0?(e.geometry={type:"Point",coordinates:[l[0].geometry.location.lng(),l[0].geometry.location.lat()]},t(e)):i()})})}const oJ="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASAAAAAkCAYAAAApZeciAAARjUlEQVR4Ae2dBXTb2vL1x6GmzJehzBjbKb/YcsrMfJkZyvDS1HbgMTMzM7d9zMzMGCjaTrnxt+e7zvqPpwLLdUpLe62fnFqSZak5W3PmzFHI0/UoT7Nf2t49XJeaY8RT24xY6jXhWPJt+Pn1+Hl3KNa2dE7N8X6Ariwe19XJeHhE6k5OM6KpD4eiidMwnLQVWH/eiCc/F44mDUBXBo/r4iQ8PIxY262Icj7J5uIW7PdZ3h+QBwCBD65YW/GB5ec78H9wxf2ACg0vrmk8PCLRZHUonjri1ngUrdXRxExAHgkKfGjVusCHVqY7qPjQqgcAFRpeXLN4eOBuvdyIJs5e3MVKHcbrq7F+caTuxIjqxrZbquqOD4vUpeYh4mkMxRL/0fuE46kdgMIengHlhwc0ETRmmEvu9ZzYv4SuYnHEEoonzqjczmlONC+qSXcDZMXqmnSZEUs+g/3bXuiGpfYCYjw8A7LFwzOgqppjfWAe/84yn3iqOVzf5geUK5H9yfFIRj8NKIMH8AzIBg/PgHhoXZoPRr4SbCaAPC4dz4A8LPAMiPM5Ou+D3M7dgDwKg2dAHhZ4BoQk6Z6s6CeW+DGl0z5AHoXBMyAPCzwDQu7nJ9kGlLoH0OXmb1VV5S2RyoXNkWBtsxF8c0sk8Ea8bm8OB6ana6gIkCu+RuXnvlK88NyB0tpzB4vfjNc3nj1Ysv3soZK8Pm/qy9u7GvG2ZRj1i4fiyTcit1OH6GaR/83pUkDTG1t7ci4NgOYegDK4NqB/R4L9cd6bWyLBl/J1aDGCdU1GcPk/p07tCsgKyxVQEbgRDAIDgI/cqxzcBAaDG0ERXX0qATeDweAWUEr5qQj0Bj2AL8fj3ZxnIy8S1/UmdV07y4DKwe1gEOhzJadYwIAuZHe/TvQHdLlIrx5T1hwJ7GwO+4+gwaXNaAr7/9hiVK5OE/kA2fIRKjt7oGTnmYOlR84dLE2bU/zH84fKViM48QGyY/VH0sWojXrOqjYqFE3+xYgnZiFy/LnIoX0dUIacDejwvMpeON/XNoeDZ0yvhRFsAQ9YXQdesB7OcCMoBwvBPtAo2A2qc2ygI8BDoF59Ri1YCfoBrfHie0wlawXFdrPJWuPEdn6g1QesBjH1HevAZnALmSugrlcZmAdqxGdsBlr9wFqT48XBRnBjjoY+Xx2L2QcWZtZPKJQBCaO7x+T/8lkwycRsbxXXZzU5SF3PWeQg3MUnZDeoxN8BOTEnevJ2HrZ3AzdkQJL/VPkHtBiB71kZjwZRwNvTVVUlgEz5Gg2AwXwPpHOj+O3YpwSQGRzJoAbqK86Fl4lTMKgTl2JAR6v9d7DR5nYtAm+UJqQNqDHDeLANNNrwvM0dsBisBo0OxMAEIDVArH+arPWUanjFZK7NYrvbTAxyv8N3rLcwwtlim5HgGZN9teGNBlGH49WZ7Kevz3aHz9gKggUyoBgYA+IOx9yg/g+K1Pe8hazlA1v1/5ODAYWzu1/J7wNygosMeXs3cOEioA64O9EUCf7kosYVDqYQAfywJeL/eVPEf06vbzb8bwGkaf8udUWX6yfaZBAJpfD6w3MHin9+5iul50xM6C2ANGyYiGq+bGo20dQv8POf9bp8Dah1+vSeuBa/1+eK6/APXI8DuBa/1uvAHkASXkgDerFofBvBDDAdrAV1YrttoNzkl2k9aBQ8AkJgClgIdot1DWA0kHpWrO9lEUU0KkaaGaEwmJ3qLn2balTPAAMEM69PqM8fa2VAwgwbMvvdAx5TUeIgUKf2CYEgiChDbbA4n+5ghzLw1WAqmA42iAilpkAGVCdMcw9YCCpBFXhYXaM1QGqmWLeSrDVUbPcYILcGhNzGDwA5kJcBherapgDqAF2Jl2Q3KP8p5H+e5FwQIIYjJLz3Kt34YExLAUlgJi+RxgKzOYWu2JOcCwKUYQByQa+6yIQOlC0FJOHCyuxrkzgTrkttkUWZ1ftPDFcmlZcBId/zcnUtmvC6SEY5hw1/Jc7zX6Jbev6wUTkGUAe8kAbE7AQ3A63+YIvYbjmQmqQayDigVQpWie1qQFeLxl0JtF4EGhWrHH6xF8u7s+pizAdFJkY6VWyzB5Tq7yjYYtN9KlYRZTXw6eOp89phEtWtUV2fvkDrZrALNBbCgAQbQRnQmqCMdYzqKu4XvwvlZK6NYv8JgNx2wcLxxD8BOePegMLRE9MBMf+dN2kg7uyn/68xBS80VQcjgMxorg7uUFHSL2XjbP8CDUSkc1pEPRcQDUUAmQFj2qGioF/KfBAnnDPTTzKGkmgPxVILAWmqatIlbEL5GtCxqol9YDgnhbkm8DoCkISNGWb8Snkd8O8PAOqAFyS7HQ4hcz+Rw6gDPUUjkuY02SHsvl9sa8hGJN6/G2g9Lu6WjwsT0w12oficwTLPJN6/zyFZvMrkfLQBRR0SspPFtpscjrdBdYU71Bc0iBya3fFuAQ0FNKCn9LVVmia2fQJILRbrZgCtHsLAdoHiPJPQIHkjIDs4muFowA41ugYSYwAxyOU8ohrSmwBZwaNW3CXLjoIqxgNiMLr1SJahfKX0TYCs4M/jLpmKmMYDAhz9rFbf/d2ArJgdPTWYr2M+BtQaCW5UEd5eaTz/q5oyCDmfxpaw/7BJd/V0c9WYHoAYXpDqzztpsUmUcqPq0jiNmN1qke/xiYghqkZh+oh9XqSihuFA6nnQCPaCIos77hCy151i2/UWBrSc7HW32PZWstdwi6hulorYnLSxgAY0OofRuJ1iexmZ9RNmuMXkdyIk9guRC3HdT/bjNNoeAnSpwKi+JyMINjtAgBvWe7LNJDgNkB3opmyR+7Qa/ocBAY5o3iPNBP+eBsiWQyVb5D4wsYcBMboyHOZSBcgORIXfyseAdFTDxsoGiffn4Zw/i3Nvv3hUMHicu6atc/yjAHXwwkInT50biu7fB1z+0vtEPqhBGc188VkjLPIK/VQ+aIXYTr8vtV0lfeM21ElTlQbk4nrtcXs8HU2ovNogclagQAZUn2OJwEoduQndJdYNVf//20UXrRu5EBrMLtV9+JUesXILPyGRH1ImZsb/FlAHLYb/oGxQGAHqDcgOjJbNz05GB6KAGHS5DkozSR+g3oDsQLdrvtwHRAExMM9PZSXQaxIDANmBfd6clwGFgx9S0WAtXv8E0hpO2qMc4f7/zZ7QHZCGeOEiKtCjVfeY3M0qKTc9JvbpLd6/Xby/RLz/qEnE9LRInhepboE2MBLdR7fskgbkIm/RkOfxtoEOPSTe70POGlogA9qdqx+I400HUkNUF7RDI9RNzJVmxVI3XzQLPpZ4DFC+IILYria2vhJQhqvfgGLJT7utjUKB4psKYEAm+E+1hAPv4iS0Qx1UZqG6Mg66Uf9SqW7CNNJyHk7vKe+OIpm6Hfgy6xtMckYRE/O812aIfr/IpQRcMMHCgMaTverEdwm4QH7u/Sryc9LIAhnQi8lZ+npMMYl0nxYRVS+TEokbgWuxQeihZiPWVgnILTwyxJNZs7p19amJgDqAmbw7y0xm+2cAssWo3JbVBYsEHgLEoNv07qzu1JdLZgCyA/tsy+62lT4EiOHnXavrMQuQPalvuDUgPQKm+FOrEXyeq6IB5QIvpAHNJGdNMBlhmuAiL6KHyWMm+YEl4vMGgmnq3x26Qby/DJSKIfa1No2rAXQh93JrQNtE4yuj/LRS5WScNKuAOaDu5KxNKuLU8qtRwJ6iZOABylPVDUd78wiYGrk6hgrgEKCcwcPKjGjyb/oRrYAkbB7Z3Y7A2wBZkV69urg54v+N3Od/4eBYQAybR3YSuvhtgKxAtXQxXn+TlYQ+VDoWEBOOJzeoc3gbIAtw/U7ewV3OvAzI8K9SEc//msOVcyynixD5rKZk8EIa0OPA5yKxOgaweoj39jpUS+vRqPuB1mCZcBbdkOeA1vNiuHyUqt/RWiHWB8heXUD5JRrQGqeRQaHyDFoVLgYJfODJAhrQDLJXN1ErVGfx/UvAXtGtm60NNV9Vxdqm6ofP88gOktQvzcxxImvSJZy8ltXAGZLh6PGhgCR8V88eeg62c9IVkAW12VMS/D/LGoY/QP0xenVSjGi1Y5RrHiBzSmvVMPzP5DB8pgL6uEyi818FAaTJDMN/Pt9heM7n4PyPyfNjAwJkRiYS/DNyQbMASXih64CCZK0xNvUx94p1S4WRORXVTQJaReKX9hnR/ZoDtOaaFAbGQKnDyNZu0IOstQREwXLQOx8DUvmYnQ4RxXIQBctAL2WEtTrKsFBlgeuAamzyTj5lsBtJy7yrXC/yXD66RIXr2pZkP5pDGEks8S4kWjdF6tqCHOlE6lOT+RGubFAwrn+Y/aUMrF8MyAyYSlxV/Z7hkS6ZYG2ZW3EzVz5fPPzsXwBIAlOJqwroMzzS1f5l6g7o//NFupkrn3l9FoeKFwCS6DwWmzMXJ8pCRDZXmPQXLrUQ0aTOqY3nfPE8OUAA12PaDTxPLMu0jeArpBHrHBBTD0KgRBnCNDVSM1XXoKj1q00a3CBVev+kSB5bRisOZf23mGy3KccIbpvJyFKZGomLgp55GpCuedoC7tDHU3VL+0EPmwLMGAiq61YCQqChEwoRd4Ahyiy6g3VqPttAslYPkykdM6hA4m4XGk0LN6R84UezspkBsiAz+z34fbOkK/g5aoV+ZzYEDV4HSMMVzzCh72tz4YroF2p+in/HkZFej31eB0jDkQ1G7L52sbkkTiLn8zOs+2OhpmKk/f5SFCB+w+Rckxhy/yl3P7lY02k6hp6K8ZiaOPoAuB/UmMz/8eVwB64Hj4F7lfEwexySqiPU9tv1MfWQrkNUJRvPNpM5VHeDh0DU4bOUATmqp4r4mC0Wx2sAEy0iwnvUZ+wF94H71cThxwpkQPuUGW0F94BH1I2GCZCzVqnfrS5UQFW9JHUT/z2wvAwIdUXh/cmxgJw4Pmdqv6ZI4JuqUVljBN7A+SBAZrR/ifqh0PCb0mAceAPngwCZwbkxUxMyMSXZZctzMmpvRIFfc7wGYrhej4rpCGgUWA4aLWgASxweqzFezCmz4jHQ1ylRrRrWQlLSlc8qF+FkCg84fMdabQZ5GhCrF3jY6XgOw/olKiFtxipwZ4EMaBfooyfbKqIOZi81Sg9edIaQFwqEo6n3hqLJlLP5JL8D1rmtIeLZ7Yh4ngVNNkPRv241AosBOcGz21Fo+CyinSZL4/lK8a/PHSxbDMgJjoRwftvAMYtz/zNPM+EJqqLu6Wt5/FWMzLUIPgdaba7Fz2Ha1YA0xAuTBjUIrAPbwT6wBawAt7p4DtBM8ADYAWrBNrABjHbR9x8vqp77k7X6i+0mU27ygRFgLdgKajPG+SgwbPI1d4CZGQYAcnG8kWCdyfHCLorx7gRrwHZQC3aA9aIMoae4FoPIvSrATFApbgSV4EGwF+wDT4O5oCflrnXiJtaPOllohOVcDcwPnIchvYwfyMVD9+FYaifngdT0jbzgbgjPB0OUs4u7WU1G4NX4+ZkWo6JC3+lz4sdUyvPBMNy+i7tZMJ5X4+dnkBuqkAnnXOFKbowUrkAeqB68BdTLB5LBeH5vMfIHA1oexB8nfFMH/o+sngnIij/OG9aF655ADT+cja8H58cwehjU18LpcRyePBVafUXy+W7qXHlKp338Z4cAWTHv1e1d1Aji6wFdbnjR2QbkydNiPSXDU+HFj1hFdPcIulC/5LlhgKzgyCirbqgudS+gyw0WnWZAnjzpWqFngY86RV7Ug5zOH7LqgOLJNYA0s2uSN+D1r2Lbs/weoMsNLzrTgDx5MlSNWSfJE/Jb95kk2t/MU1R4cipPOUHk86j+g46Z/BBdCbDoNAPy5KlUFJTWgFLqVHlREBdfuitDSPxdTVy9rPCiswzIk6cpqiSgc+UpM8Uk9bpczIe7bBwVAbpSYNFpBuTJU28wMEMZebpsCkeTBgoKD+qnRzI8+ZbLEcQUjSsGLwgKZRhInjx5um40s/54X340B08zwZSV6qr6U4Oupr8i+/8Adnj5PFwBRDQAAAAASUVORK5CYII=",Ck=e=>ye.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M18.5329 7.19049C18.5118 7.16682 18.4958 7.13909 18.4857 7.109C18.4757 7.07891 18.4719 7.04709 18.4746 7.01549C18.481 6.98424 18.4939 6.9547 18.5126 6.92884C18.5313 6.90298 18.5553 6.88139 18.5829 6.86549L19.2496 6.47383C19.4034 6.39827 19.54 6.29191 19.6509 6.16135C19.7619 6.03079 19.8448 5.87881 19.8945 5.71485C19.9443 5.5509 19.9598 5.37846 19.9401 5.20826C19.9204 5.03806 19.8659 4.87372 19.7801 4.72545C19.6942 4.57719 19.5788 4.44816 19.4409 4.34637C19.3031 4.24459 19.1458 4.17223 18.9789 4.13379C18.8119 4.09534 18.6388 4.09163 18.4703 4.12289C18.3019 4.15415 18.1416 4.21971 17.9996 4.31549L17.1079 4.82383C17.0788 4.84065 17.0457 4.8495 17.0121 4.8495C16.9784 4.8495 16.9454 4.84065 16.9163 4.82383C16.8885 4.81108 16.8638 4.79261 16.8437 4.76963C16.8236 4.74665 16.8085 4.71968 16.7996 4.69049L16.4663 2.69883C16.3686 2.10879 16.0627 1.5733 15.604 1.18953C15.1453 0.805757 14.5643 0.599136 13.9663 0.607159H5.99125C5.39796 0.609722 4.82491 0.823205 4.37454 1.20945C3.92418 1.59569 3.62587 2.12951 3.53292 2.71549L3.19959 4.69049C3.19282 4.72272 3.17879 4.75297 3.15858 4.77896C3.13836 4.80496 3.11249 4.826 3.08292 4.84049C3.05378 4.85731 3.02073 4.86617 2.98709 4.86617C2.95344 4.86617 2.92039 4.85731 2.89125 4.84049L1.99959 4.34049C1.85752 4.24471 1.69729 4.17915 1.52882 4.14789C1.36036 4.11663 1.18727 4.12034 1.0203 4.15879C0.853336 4.19723 0.696054 4.26959 0.558225 4.37137C0.420396 4.47316 0.304963 4.60219 0.219094 4.75045C0.133225 4.89872 0.078754 5.06306 0.0590634 5.23326C0.0393727 5.40346 0.0548829 5.5759 0.104631 5.73985C0.154378 5.90381 0.237302 6.05579 0.348251 6.18635C0.4592 6.31691 0.595806 6.42327 0.749587 6.49883L1.41625 6.89049C1.44391 6.90639 1.46788 6.92798 1.48655 6.95384C1.50523 6.9797 1.51819 7.00924 1.52459 7.04049C1.52727 7.07209 1.52348 7.10391 1.51345 7.134C1.50342 7.16409 1.48736 7.19182 1.46625 7.21549C0.79248 7.90316 0.415458 8.82776 0.416253 9.79049V11.4572C0.416532 11.8754 0.543199 12.2838 0.779646 12.6288C1.01609 12.9738 1.35128 13.2393 1.74125 13.3905C1.78008 13.4055 1.81353 13.4317 1.83729 13.4659C1.86106 13.5001 1.87405 13.5405 1.87459 13.5822V15.2072C1.87459 15.7044 2.07213 16.1814 2.42376 16.533C2.77539 16.8846 3.25231 17.0822 3.74959 17.0822C4.24687 17.0822 4.72378 16.8846 5.07541 16.533C5.42704 16.1814 5.62459 15.7044 5.62459 15.2072V13.7572C5.62455 13.7011 5.64622 13.6472 5.68507 13.6068C5.72392 13.5664 5.77691 13.5426 5.83292 13.5405H14.1663C14.2223 13.5426 14.2753 13.5664 14.3141 13.6068C14.3529 13.6472 14.3746 13.7011 14.3746 13.7572V15.2072C14.3746 15.7044 14.5721 16.1814 14.9238 16.533C15.2754 16.8846 15.7523 17.0822 16.2496 17.0822C16.7469 17.0822 17.2238 16.8846 17.5754 16.533C17.927 16.1814 18.1246 15.7044 18.1246 15.2072V13.5822C18.1251 13.5405 18.1381 13.5001 18.1619 13.4659C18.1856 13.4317 18.2191 13.4055 18.2579 13.3905C18.6479 13.2393 18.9831 12.9738 19.2195 12.6288C19.456 12.2838 19.5826 11.8754 19.5829 11.4572V9.79049C19.5903 8.81911 19.2128 7.88433 18.5329 7.19049ZM6.03292 2.26549H14.0496C14.2493 2.26292 14.4433 2.33219 14.5963 2.46067C14.7493 2.58915 14.851 2.7683 14.8829 2.96549L15.2829 5.35716C15.2878 5.38821 15.2858 5.41994 15.2772 5.45016C15.2686 5.48038 15.2534 5.50836 15.2329 5.53216C15.2131 5.55434 15.1887 5.57183 15.1613 5.58336C15.1339 5.59489 15.1043 5.60017 15.0746 5.59883H4.99959C4.9654 5.60054 4.93125 5.59471 4.89957 5.58175C4.86788 5.56878 4.83944 5.54901 4.81625 5.52383C4.79517 5.4674 4.79517 5.40525 4.81625 5.34883L5.17459 3.02383C5.19879 2.82341 5.29493 2.63859 5.44514 2.50372C5.59534 2.36884 5.7894 2.29307 5.99125 2.29049L6.03292 2.26549ZM16.2913 11.4322C16.044 11.4322 15.8024 11.3588 15.5968 11.2215C15.3912 11.0841 15.231 10.8889 15.1364 10.6605C15.0418 10.4321 15.017 10.1808 15.0653 9.9383C15.1135 9.69582 15.2326 9.47309 15.4074 9.29827C15.5822 9.12346 15.8049 9.00441 16.0474 8.95618C16.2899 8.90795 16.5412 8.9327 16.7696 9.02731C16.998 9.12192 17.1932 9.28213 17.3306 9.4877C17.4679 9.69326 17.5413 9.93493 17.5413 10.1822C17.5447 10.352 17.5136 10.5207 17.4497 10.6781C17.3858 10.8355 17.2905 10.9781 17.1696 11.0975C17.0488 11.2168 16.9048 11.3102 16.7467 11.3721C16.5885 11.4339 16.4193 11.4629 16.2496 11.4572L16.2913 11.4322ZM2.49959 10.2072C2.49959 9.95993 2.5729 9.71826 2.71025 9.5127C2.8476 9.30713 3.04282 9.14692 3.27123 9.05231C3.49964 8.9577 3.75097 8.93295 3.99345 8.98118C4.23593 9.02941 4.45865 9.14846 4.63347 9.32327C4.80829 9.49809 4.92734 9.72082 4.97557 9.9633C5.0238 10.2058 4.99905 10.4571 4.90444 10.6855C4.80983 10.9139 4.64961 11.1091 4.44405 11.2465C4.23849 11.3838 3.99681 11.4572 3.74959 11.4572C3.41807 11.4572 3.10012 11.3255 2.8657 11.091C2.63128 10.8566 2.49959 10.5387 2.49959 10.2072Z",fill:"#4B5563"})),Dk=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("g",{clipPath:"url(#clip0_1697_57490)"},ye.createElement("path",{d:"M12.0829 5.05834C13.1783 5.05834 14.0663 4.17037 14.0663 3.07501C14.0663 1.97964 13.1783 1.09167 12.0829 1.09167C10.9876 1.09167 10.0996 1.97964 10.0996 3.07501C10.0996 4.17037 10.9876 5.05834 12.0829 5.05834Z",fill:"#4B5563"}),ye.createElement("path",{d:"M3.75 11.4083C3.00832 11.4083 2.2833 11.6283 1.66661 12.0403C1.04993 12.4524 0.569282 13.038 0.285453 13.7233C0.00162482 14.4085 -0.0726377 15.1625 0.0720569 15.8899C0.216751 16.6173 0.573904 17.2855 1.09835 17.81C1.6228 18.3344 2.29098 18.6916 3.01841 18.8363C3.74584 18.981 4.49984 18.9067 5.18506 18.6229C5.87029 18.339 6.45596 17.8584 6.86801 17.2417C7.28007 16.625 7.5 15.9 7.5 15.1583C7.4978 14.1644 7.10201 13.2119 6.39922 12.5091C5.69644 11.8063 4.74389 11.4105 3.75 11.4083ZM3.75 17.2417C3.33796 17.2417 2.93517 17.1195 2.59256 16.8906C2.24996 16.6616 1.98294 16.3363 1.82525 15.9556C1.66757 15.5749 1.62631 15.156 1.7067 14.7519C1.78708 14.3478 1.9855 13.9765 2.27686 13.6852C2.56822 13.3938 2.93944 13.1954 3.34356 13.115C3.74769 13.0346 4.16658 13.0759 4.54726 13.2336C4.92794 13.3913 5.25331 13.6583 5.48223 14.0009C5.71115 14.3435 5.83333 14.7463 5.83333 15.1583C5.83333 15.4319 5.77945 15.7028 5.67475 15.9556C5.57005 16.2083 5.4166 16.438 5.22314 16.6315C5.02969 16.8249 4.80002 16.9784 4.54726 17.0831C4.2945 17.1878 4.02359 17.2417 3.75 17.2417Z",fill:"#4B5563"}),ye.createElement("path",{d:"M16.25 11.4083C15.5083 11.4083 14.7833 11.6283 14.1666 12.0403C13.5499 12.4524 13.0693 13.038 12.7855 13.7233C12.5016 14.4085 12.4274 15.1625 12.5721 15.8899C12.7168 16.6173 13.0739 17.2855 13.5984 17.81C14.1228 18.3344 14.791 18.6916 15.5184 18.8363C16.2458 18.981 16.9998 18.9067 17.6851 18.6229C18.3703 18.339 18.956 17.8584 19.368 17.2417C19.7801 16.625 20 15.9 20 15.1583C19.9978 14.1644 19.602 13.2119 18.8992 12.5091C18.1964 11.8063 17.2439 11.4105 16.25 11.4083ZM16.25 17.2417C15.838 17.2417 15.4352 17.1195 15.0926 16.8906C14.75 16.6616 14.4829 16.3363 14.3253 15.9556C14.1676 15.5749 14.1263 15.156 14.2067 14.7519C14.2871 14.3478 14.4855 13.9765 14.7769 13.6852C15.0682 13.3938 15.4394 13.1954 15.8436 13.115C16.2477 13.0346 16.6666 13.0759 17.0473 13.2336C17.4279 13.3913 17.7533 13.6583 17.9822 14.0009C18.2112 14.3435 18.3333 14.7463 18.3333 15.1583C18.3333 15.4319 18.2794 15.7028 18.1748 15.9556C18.0701 16.2083 17.9166 16.438 17.7231 16.6315C17.5297 16.8249 17.3 16.9784 17.0473 17.0831C16.7945 17.1878 16.5236 17.2417 16.25 17.2417Z",fill:"#4B5563"}),ye.createElement("path",{d:"M8.93421 9.52501L10.1425 8.14168C11.2897 8.9152 12.6423 9.32736 14.0259 9.32501H14.5842C14.9157 9.32501 15.2337 9.19331 15.4681 8.95889C15.7025 8.72447 15.8342 8.40653 15.8342 8.07501C15.8342 7.74349 15.7025 7.42555 15.4681 7.19113C15.2337 6.95671 14.9157 6.82501 14.5842 6.82501H14.0259C12.8486 6.82097 11.7201 6.35403 10.8842 5.52501C10.7716 5.40452 10.6345 5.30949 10.4821 5.24625C10.3298 5.18302 10.1657 5.15305 10.0009 5.15834C9.82975 5.16377 9.66156 5.2043 9.50675 5.2774C9.35193 5.35051 9.21378 5.45464 9.10087 5.58334L6.18421 8.91668C6.05958 9.04818 5.96401 9.20443 5.90372 9.37528C5.84342 9.54613 5.81973 9.72775 5.83421 9.90834C5.8651 10.0771 5.92973 10.2379 6.02424 10.3811C6.11874 10.5243 6.24118 10.6469 6.38421 10.7417L6.93421 11.1083C7.66321 11.5976 8.22851 12.2944 8.55687 13.1086C8.88523 13.9229 8.96153 14.8169 8.77587 15.675C8.72593 15.8397 8.71053 16.0129 8.73063 16.1838C8.75074 16.3547 8.80592 16.5196 8.89272 16.6682C8.97951 16.8168 9.09606 16.9459 9.23505 17.0474C9.37404 17.1489 9.53249 17.2205 9.70047 17.2579C9.86845 17.2953 10.0423 17.2976 10.2112 17.2647C10.3802 17.2318 10.5404 17.1643 10.6821 17.0666C10.8237 16.9688 10.9436 16.8429 11.0343 16.6966C11.125 16.5504 11.1846 16.387 11.2092 16.2167C11.4704 14.9998 11.3968 13.7349 10.9961 12.5566C10.5955 11.3782 9.88295 10.3305 8.93421 9.52501Z",fill:"#4B5563"})),ye.createElement("defs",null,ye.createElement("clipPath",{id:"clip0_1697_57490"},ye.createElement("rect",{width:20,height:20,fill:"white"})))),sJ=e=>ye.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("g",{clipPath:"url(#clip0_3407_1703)"},ye.createElement("path",{d:"M11.3752 20.0001H11.2169C10.9704 19.965 10.7399 19.8576 10.5545 19.6915C10.369 19.5254 10.2371 19.308 10.1752 19.0668L8.33357 11.6668L0.941907 9.82512C0.699196 9.76473 0.479985 9.63338 0.312261 9.44785C0.144536 9.26231 0.0359065 9.031 0.000240204 8.78345C-0.034478 8.53494 0.0136427 8.28191 0.137161 8.06349C0.26068 7.84508 0.452715 7.67344 0.683574 7.57512L18.3336 0.0917817C18.5568 0.00128909 18.802 -0.0208838 19.0378 0.0280732C19.2737 0.0770302 19.4898 0.194913 19.6586 0.366782C19.8232 0.535068 19.9346 0.74804 19.9791 0.979189C20.0235 1.21034 19.999 1.44946 19.9086 1.66678L12.4086 19.2834C12.3263 19.4916 12.1843 19.6707 12.0004 19.7982C11.8165 19.9258 11.599 19.996 11.3752 20.0001Z",fill:"#525252"})),ye.createElement("defs",null,ye.createElement("clipPath",{id:"clip0_3407_1703"},ye.createElement("rect",{width:20,height:20,fill:"white"}))));Ak.propTypes={selectionChanged:at.func,children:at.node};function Ak({selectionChanged:e,children:t}){const i=ye.useRef();return ye.useEffect(()=>{const l=f=>e(f.detail),{current:h}=i;return h.addEventListener("change",l),()=>h.removeEventListener("change",l)},[e]),Se.jsx("mi-dropdown",{ref:i,children:t})}function aJ(e,t){const i=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((l,h)=>{const f=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${i}&access_token=${t}`;fetch(f).then(_=>_.status!==200?h():_.json()).then(_=>{e.geometry={type:"Point",coordinates:[_.features[0].geometry.coordinates[0],_.features[0].geometry.coordinates[1]]},l(e)}).catch(()=>{h()})})}const lJ=Lv({key:"unitSystem",get:({get:e})=>e(dd)==="en-US"?"imperial":"metric"}),dye="";L5.propTypes={onAccessibilityChanged:at.func};function L5({onAccessibilityChanged:e}){const t=Mn(Ta),[i,l]=Wn(fp);function h(f){l(f.target.checked),e&&e()}return Se.jsxs("div",{className:"accessibility",children:[Se.jsx("input",{className:"mi-toggle",type:"checkbox",checked:i,onChange:f=>h(f),style:{backgroundColor:i?t:""}}),Se.jsx("div",{children:hz("Avoid stairs and escalators")})]})}const fye="";function Ek(){var _,o;const{t:e}=$o(),t=Mn(Ta),i=Mn(Zu),[l,h]=Wn(ox);function f(I){h(I.target.checked)}return Se.jsxs("div",{className:"shuttle-bus",children:[Se.jsx("input",{className:"mi-toggle",type:"checkbox",checked:l,onChange:I=>f(I),"aria-label":((_=i==null?void 0:i.appSettings)==null?void 0:_.includeTransitSelectionDescription)||e("Include bus transportation"),style:{backgroundColor:l?t:""}}),Se.jsx("div",{children:((o=i==null?void 0:i.appSettings)==null?void 0:o.includeTransitSelectionDescription)||"Include bus transportation"})]})}const Nk=ji({key:"wayfindingLocation",default:null}),Po={TO:"TO",FROM:"FROM"},cJ="data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 14 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 0C3.13 0 0 3.13 0 7C0 12.25 7 20 7 20C7 20 14 12.25 14 7C14 3.13 10.87 0 7 0ZM7 9.5C5.62 9.5 4.5 8.38 4.5 7C4.5 5.62 5.62 4.5 7 4.5C8.38 4.5 9.5 5.62 9.5 7C9.5 8.38 8.38 9.5 7 9.5Z' fill='black' fill-opacity='0.88'/%3E%3C/svg%3E%0A";z5.propTypes={onStartDirections:at.func.isRequired,onBack:at.func.isRequired,directionsToLocation:at.object,directionsFromLocation:at.object,onSetSize:at.func,isActive:at.bool};function z5({onStartDirections:e,onBack:t,directionsToLocation:i,directionsFromLocation:l,onSetSize:h,isActive:f}){var kn,vt;const{t:_}=$o(),o=ye.useRef(),I=ye.useRef(),D=ye.useRef(),O=ye.useRef(),P=Mn(Yv),F=Mn(tp),Q=Mn(Zl),J=Mn(Gv),ae=Mn(Ta),[Ne,oe]=Wn(Nk),[Z,W]=ye.useState(),[,se]=Wn(T1),[ve,ue]=ye.useState(!0),[Be,$e]=ye.useState(!1),[Ue,Fe]=ye.useState([]),[Ke,ct]=ye.useState(),[yt,Ht]=ye.useState(),_t=Mn(fp),wt=up(),[Ft,gt]=ye.useState(!1),[Rt,H]=Wn(dp),[le,T]=ye.useState(!1),L=Mn(Wv),$=Mn(lJ),[Y,q,ce,pe]=mk(yt,Ke,P,Rt,_t),fe=Mn(C5),we=Mn(Zu);function He(ft){return J===xs.Google&&ft.properties.type==="google_places"?rJ(ft):J===xs.Mapbox&&ft.properties.type==="mapbox_places"?aJ(ft,L):Promise.resolve(ft)}function nt(ft){Z===Po.TO?He(ft).then(Sn=>{ct(Sn),D.current.setDisplayText(Sn.properties.name)},()=>se(!1)):Z===Po.FROM&&He(ft).then(Sn=>{Ht(Sn),O.current.setDisplayText(Sn.properties.name)},()=>se(!1)),gt(!1),$e(!1),Fe([]),T(!1)}function Qe(ft,Sn){if(W(Sn),se(!0),ft.length===0)ue(!1),gt(!1),Fe([]);else{ue(!0),Fe(ft);const In=ft.filter(Ln=>Ln.properties.type==="google_places").length>0;gt(In),tt(Xi.MAX)}}function tt(ft){typeof h=="function"&&h(ft)}function Ge(){const ft=E5(F);Z===Po.TO?(D.current.setDisplayText(ft.properties.name),ct(ft)):Z===Po.FROM&&(O.current.setDisplayText(ft.properties.name),Ht(ft)),Fe([]),se(!0),ue(!0),gt(!1),$e(!1),T(!1)}function It(ft){(yt==null?void 0:yt.id)==="USER_POSITION"&&ft===Po.TO||(Ke==null?void 0:Ke.id)==="USER_POSITION"&&ft===Po.FROM?T(!1):T(!0)}function Mt(ft){It(ft)}function At(ft){W(ft),Jt(ft),se(!0),gt(!1),It(ft)}function Nt(ft){T(!0),W(ft),hn(ft),Fe([]),se(!0),gt(!1),ue(!0)}function hn(ft){ft===Po.TO?ct():ft===Po.FROM&&Ht()}function Jt(ft){ft===Po.TO?(Fe([]),D.current.getValue()&&($e(!0),D.current.triggerSearch())):ft===Po.FROM&&(Fe([]),O.current.getValue()&&($e(!0),O.current.triggerSearch()))}function fn(){(Ke||yt)&&(yt?D.current.setDisplayText(yt.properties.name):D.current.clear(),Ke?O.current.setDisplayText(Ke.properties.name):O.current.clear(),ct(yt),Ht(Ke))}function Xt(){Ht(),O.current.setDisplayText(""),t()}function xn(){Fe([]),$e(!1),gt(!1),T(!1)}return ye.useEffect(()=>()=>{Fe([]),ct(),Ht()},[]),ye.useEffect(()=>{if(Ne){if(Z===Po.FROM)O.current.setDisplayText(Ne.properties.name),Ht(Ne);else if(Z===Po.TO)D.current.setDisplayText(Ne.properties.name),ct(Ne);else return;xn(),oe(null)}},[Ne]),ye.useEffect(()=>{var Sn;tt(Xi.FIT);let ft=!1;if((l==null?void 0:l.id)==="USER_POSITION"&&(i==null?void 0:i.id)==="USER_POSITION"&&(i=void 0),i!=null&&i.properties&&!Q&&(D.current.setDisplayText(i.properties.name),ct(i)),l!=null&&l.properties?yt||(O.current.setDisplayText(l.properties.name),Ht(l),ft=!0):W(Po.FROM),f&&!((Sn=O.current)!=null&&Sn.getValue())&&F&&!yt&&(i==null?void 0:i.id)!=="USER_POSITION"&&!ft){const In=E5(F);O.current.setDisplayText(In.properties.name),Ht(In),se(!0),ue(!0),Fe([])}},[f,i,l]),ye.useEffect(()=>{J===xs.Mapbox&&(gt(!1),Fe(Ue.filter(ft=>ft.properties.type!=="google_places")))},[J]),ye.useEffect(()=>{Q&&(ct(Q),D.current.setDisplayText(Q.properties.name))},[Q]),Se.jsxs("div",{className:"wayfinding",ref:o,children:[Se.jsxs("div",{className:"wayfinding__directions",children:[Se.jsx("div",{className:"wayfinding__title",children:_("Directions")}),Se.jsx("button",{className:"wayfinding__close",onClick:()=>Xt(),"aria-label":"Close",children:Se.jsx(op,{})}),Se.jsxs("div",{className:"wayfinding__locations",children:[Se.jsxs("label",{className:"wayfinding__label",children:[Se.jsx("span",{children:_("Choose departure")}),Se.jsx(cx,{ref:O,mapsindoors:!0,google:J===xs.Google&&fe,mapbox:J===xs.Mapbox&&fe,placeholder:_("Choose departure"),results:ft=>Qe(ft,Po.FROM),clicked:()=>At(Po.FROM),cleared:()=>Nt(Po.FROM),changed:()=>Mt(Po.FROM)})]}),Se.jsx("button",{onClick:()=>fn(),"aria-label":_("Switch"),className:"wayfinding__switch",children:Se.jsx(nJ,{})}),Se.jsxs("label",{className:"wayfinding__label",children:[Se.jsx("span",{children:_("Choose destination")}),Se.jsx(cx,{ref:D,mapsindoors:!0,google:J===xs.Google&&fe,mapbox:J===xs.Mapbox&&fe,placeholder:_("Choose destination"),results:ft=>Qe(ft,Po.TO),clicked:()=>At(Po.TO),cleared:()=>Nt(Po.TO),changed:()=>Mt(Po.TO)})]})]})]}),!ce&&Se.jsx("p",{className:"wayfinding__error",children:_("No route found")}),!ve&&!le&&Se.jsx("p",{className:"wayfinding__error",children:_("Nothing was found")}),F&&le&&Se.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Ge(),children:[Se.jsx(sJ,{}),_("My position")]}),Ue.length>0&&Se.jsx("div",{className:"wayfinding__scrollable",...wt,children:Se.jsxs("div",{className:"wayfinding__results",children:[Ue.map(ft=>Se.jsx(S1,{icon:ft.properties.type==="google_places"||ft.properties.type==="mapbox_places"?cJ:void 0,location:ft,locationClicked:Sn=>nt(Sn)},ft.id)),Ft&&Se.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:oJ})]})}),!Be&&!le&&ce&&!Ft&&yt&&Ke&&Se.jsxs("div",{className:"wayfinding__details",ref:I,children:[Se.jsxs("div",{className:"wayfinding__settings",children:[Se.jsxs("div",{className:"wayfinding__toggles",children:[Se.jsx(L5,{}),((kn=we==null?void 0:we.appSettings)==null?void 0:kn.includeTransitSelection)==="true"&&Se.jsx(Ek,{})]}),Se.jsx("div",{className:"wayfinding__travel",children:((vt=we==null?void 0:we.appSettings)==null?void 0:vt.includeTravelModeSelection)!=="false"&&Se.jsxs(Ak,{selectionChanged:ft=>H(ft[0].value),children:[Se.jsxs("mi-dropdown-item",{selected:!0,value:hd.WALKING,children:[Se.jsx(Sk,{}),_("Walk")]}),Se.jsxs("mi-dropdown-item",{value:hd.DRIVING,children:[Se.jsx(Ck,{}),_("Drive")]}),Se.jsxs("mi-dropdown-item",{value:hd.BICYCLING,children:[Se.jsx(Dk,{}),_("Bike")]})]})})]}),Se.jsx("hr",{}),Se.jsxs("div",{className:"wayfinding__info",children:[Se.jsxs("div",{className:"wayfinding__distance",children:[Rt===hd.WALKING&&Se.jsx(Sk,{}),Rt===hd.DRIVING&&Se.jsx(Ck,{}),Rt===hd.BICYCLING&&Se.jsx(Dk,{}),Se.jsxs("div",{children:[_("Distance"),":"]}),Se.jsx("div",{className:"wayfinding__meters",children:Y&&pe&&Se.jsx("mi-distance",{unit:$,meters:Y})})]}),Se.jsxs("div",{className:"wayfinding__time",children:[Se.jsx(tJ,{}),Se.jsxs("div",{children:[_("Estimated time"),":"]}),Se.jsx("div",{className:"wayfinding__minutes",children:q&&pe&&Se.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:q})})]})]}),Se.jsx("button",{className:"wayfinding__button",style:{background:ae},onClick:()=>e(),disabled:!pe,children:_("Go!")})]})]})}const pye="",gye="",uJ=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),hJ=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ux=ji({key:"activeStep",default:0}),hx=ji({key:"substepsToggled",default:!1}),dJ=ji({key:"triggerSubsteps",default:!1}),Lk=ye.forwardRef(function(t,i){var ae;const{totalSteps:l,activeStep:h,previous:f,originLocation:_,directions:o}=t,I=ye.useRef(),{t:D}=$o(),[O,P]=Wn(hx),[,F]=Wn(dJ),Q=Wu();ye.useImperativeHandle(i,()=>({openSubsteps(){I.current.openSubsteps()},closeSubsteps(){I.current.closeSubsteps()}}));const J={walk:D("Walk"),bike:D("Bike"),transit:D("Transit"),drive:D("Drive"),destination:D("You have arrived"),leave:D("Leave"),from:D("From"),park:D("Park"),at:D("at"),building:D("Building"),venue:D("Venue"),takeStaircaseToLevel:D("Take staircase to level"),takeLadderToLevel:D("Take the ladder to level"),takeElevatorToLevel:D("Take elevator to level"),takeEscalatorToLevel:D("Take escalator to level"),takeWheelchairLiftToLevel:D("Take wheelchair lift to level"),takeWheelchairRampToLevel:D("Take wheelchair ramp to level"),exit:D("Exit"),enter:D("Enter"),stops:D("stops"),andContinue:D("and continue"),continueStraightAhead:D("Continue straight ahead"),goLeft:D("Go left"),goSharpLeft:D("Go sharp left"),goSlightLeft:D("Go slight left"),goRight:D("Go right"),goSharpRight:D("Go sharp right"),goSlightRight:D("Go slight right"),turnAround:D("Turn around"),days:D("d"),hours:D("h"),minutes:D("min"),rideTheBus:D("Ride the bus")};return ye.useEffect(()=>{const{current:Ne}=I;function oe(){F(!0),P(!O)}return Ne.addEventListener("substepsToggled",oe),()=>{Ne.removeEventListener("substepsToggled",oe)}},[O]),Se.jsx("mi-route-instructions-step",{ref:I,"show-toggle-button":!Q,step:JSON.stringify(l[h]),translations:JSON.stringify(J),"destination-location":o==null?void 0:o.destinationLocation.properties.name,"from-travel-mode":(f==null?void 0:f.travel_mode)??"","from-route-context":(f==null?void 0:f.route_context)??((ae=_==null?void 0:_.properties)==null?void 0:ae.name)??""})});Lk.propTypes={totalSteps:at.array,activeStep:at.number,previous:at.object,originLocation:at.object,directions:at.object};const zk=ji({key:"isDestinationStep",default:!1});kk.propTypes={steps:at.array,onNextStep:at.func,onPreviousStep:at.func,originLocation:at.object,isOpen:at.bool};function kk({steps:e,onNextStep:t,onPreviousStep:i,originLocation:l,isOpen:h}){const{t:f}=$o(),_=up(),o=ye.useRef(),[I,D]=ye.useState(),[O,P]=Wn(ux),[F,Q]=ye.useState(),J=Mn(hp),ae=Mn(hx),[,Ne]=Wn(zk),oe=Wu();ye.useEffect(()=>{Q(e)},[e]),ye.useEffect(()=>{var se,ve;h&&(O===(F==null?void 0:F.length)-1&&(J!=null&&J.destinationLocation)?Ne(!0):Ne(!1),ae===!1?(se=o.current)==null||se.closeSubsteps():ae===!0&&((ve=o.current)==null||ve.openSubsteps()))},[h,O,F,ae]);function Z(){D(F[O]),P(O+1),t()}function W(){D(F[O-2]),P(O-1),i()}return Se.jsx("div",{className:"route-instructions prevent-scroll",..._,children:F&&Se.jsxs(Se.Fragment,{children:[Se.jsx(Lk,{totalSteps:F,activeStep:O,previous:I,directions:J,originLocation:l,ref:o}),Se.jsx("div",{className:`route-instructions__footer ${oe?"route-instructions__footer--kiosk":""}`,children:Se.jsxs("div",{className:"route-instructions__actions",children:[Se.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>W(),"aria-label":f("Previous"),disabled:O===0,children:Se.jsx(hJ,{})}),Se.jsx("div",{className:"route-instructions__overview",children:f("StepYofX",{activeStep:O+1,totalSteps:F.length})}),Se.jsx("button",{className:`route-instructions__button ${oe?"route-instructions__button--kiosk":""}`,onClick:()=>Z(),"aria-label":f("Next"),disabled:O===F.length-1,children:Se.jsx(uJ,{})})]})})]})})}const k5=Object.freeze({minZoom:10});let es;O5.propTypes={isOpen:at.bool,onBack:at.func,onSetSize:at.func,onRouteFinished:at.func,snapPointSwipedByUser:at.string};function O5({isOpen:e,onBack:t,onSetSize:i,onRouteFinished:l,snapPointSwipedByUser:h}){var Y;const{t:f}=$o(),_=ye.useRef(),[o,I]=ye.useState(null),D=ye.useRef(null),[O,P]=ye.useState(),F=Mn(Es),Q=Mn(dp),J=Mn(hp),[,ae]=Wn(ux),[Ne,oe]=Wn(hx),Z=Mn(bl),W=Qs(),[,se]=Wn(lx),ve=Mn(zk),ue=Mn(Ta),Be=Wu(),$e=Mn(sx),Ue=Mn(xk),Fe=Mn(Zl),Ke=Mn(Gv),ct=Mn(ox),yt=Mn(Zu);ye.useEffect(()=>()=>{I(null)},[]),ye.useEffect(()=>{if(I(null),e&&J){P(J.totalTime);const q=Math.min(window.innerHeight,window.innerWidth)*.06;es==null||es.setRoute(null),es=null,Promise.all([Ht(q),_t(q)]).then(([ce,pe])=>{es=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:F,fitBounds:!Be,fitBoundsPadding:Be?void 0:{top:q,bottom:ce,left:pe,right:q}}),es.setRoute(J.directionsResult).then(()=>{es.setStepIndex(0)}),D.current.location=J.destinationLocation,J.destinationLocation.id==="USER_POSITION"?I(null):I(F.getDisplayRule(J.destinationLocation)),le(null)})}return()=>{es&&(es.setRoute(null),es=null),le(k5.minZoom)}},[e,J,F,Q,ct]);function Ht(q){return new Promise(ce=>{if(W)Z?_1().then(pe=>ce(pe)):ce(q);else return np().then(pe=>ce(pe))})}function _t(q){return new Promise(ce=>{W?Z?ce(q):Yu().then(pe=>ce(pe)):ce(q)})}ye.useEffect(()=>{!e&&es&&(Rt(),le(k5.minZoom))},[e]);function wt(){return J?J.directionsResult.legs.reduce((q,ce)=>{for(const pe in ce.steps){const fe=ce.steps[pe];q.push(fe)}return q},[]):[]}function Ft(){es&&es.nextStep()}function gt(){es&&es.previousStep()}function Rt(){es==null||es.setRoute(null),es=null}function H(){ae(0),oe(!1),L(Xi.FIT)}function le(q){var fe,we;const ce=(fe=F==null?void 0:F.getMapView)==null?void 0:fe.call(F),pe=(we=ce==null?void 0:ce.getMap)==null?void 0:we.call(ce);!F||!ce||!pe||(Ke==="mapbox"?pe.setMinZoom(q):Ke==="google"&&pe.setOptions({minZoom:q}))}function T(){H(),Rt(),t()}function L(q){typeof i=="function"&&i(q)}function $(){const q=`${Ue}&directionsFrom=${Z.id}&directionsTo=${Fe.id}`;se(q)}return ye.useEffect(()=>(_.current=requestAnimationFrame(()=>{L(Ne?Xi.MAX:Xi.FIT)}),()=>{_.current&&cancelAnimationFrame(_.current)}),[Ne]),ye.useEffect(()=>{e&&h&&oe(h===Xi.MAX)},[e,h]),Se.jsxs("div",{className:"directions",style:{display:Be?"block":"grid"},children:[Se.jsxs("div",{className:"directions__steps",children:[Se.jsx("div",{className:"directions__minutes",children:O&&Se.jsx("mi-time",{translations:JSON.stringify({days:f("d"),hours:f("h"),minutes:f("min")}),seconds:O})}),Se.jsx(kk,{steps:wt(),originLocation:J==null?void 0:J.originLocation,onNextStep:()=>Ft(),isOpen:e,onPreviousStep:()=>gt()})]}),Be&&Se.jsxs(Se.Fragment,{children:[Se.jsx("hr",{}),Se.jsxs("div",{className:"directions__kiosk",children:[Se.jsx(L5,{onAccessibilityChanged:()=>H()}),((Y=yt==null?void 0:yt.appSettings)==null?void 0:Y.includeTransitSelection)==="true"&&Se.jsx(Ek,{}),Se.jsxs("button",{className:"directions__qr-code",onClick:()=>$(),"aria-label":f("Scan QR code to view route on phone"),children:[Se.jsx(wk,{}),f("Scan QR code")]})]})]}),Se.jsxs("div",{className:"directions__actions",children:[Se.jsx("div",{className:"directions__details",children:(J==null?void 0:J.destinationLocation)&&Se.jsxs("div",{className:"directions__info",children:[o&&J.destinationLocation.id!=="USER_POSITION"&&Se.jsx("div",{className:"directions__icon",children:Se.jsx("img",{alt:"",src:o.icon.src?o.icon.src:o.icon})}),Se.jsxs("div",{className:"directions__content",children:[Se.jsx("div",{className:"directions__name",children:J==null?void 0:J.destinationLocation.properties.name}),Se.jsx("mi-location-info",{ref:D,"show-external-id":$e})]})]})}),ve?Se.jsx("button",{className:"directions__finish",onClick:()=>l(),style:{background:ue},children:f("Finish route")}):Se.jsx("button",{className:"directions__cancel",onClick:()=>T(),children:f("Cancel route")})]})]})}const mye="";let j5="";const Ok=()=>ye.useRef({getInitialMessage:()=>j5,setInitialMessage:t=>{j5=t||""},clearInitialMessage:()=>{j5=""}}).current,jk=ye.createContext(),dx="http://localhost:4000";function Pk({children:e,enabled:t}){const[i,l]=ye.useState(!1),[h,f]=ye.useState([]),[_,o]=ye.useState(null),I="",D=ye.useRef(null),O=ye.useRef(null),P=ye.useCallback(async ae=>{if(!D.current||O.current!==ae){if(D.current)try{await fetch(`${dx}/api/chat/end/${D.current}`,{method:"DELETE"})}catch(W){console.warn("Error ending previous session:",W)}const oe=crypto.randomUUID(),Z=await fetch(`${dx}/api/chat/start`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:ae,sessionId:oe})});if(!Z.ok){const W=await Z.json().catch(()=>({}));throw new Error(W.error||`Failed to create session: ${Z.status}`)}D.current=oe,O.current=ae}return D.current},[]),F=ye.useCallback(async(ae,Ne,oe={})=>{if(t){l(!0),o(null);try{console.log("Generating response for prompt:",Ne);const Z=await P(ae),W=await fetch(`${dx}/api/chat/message`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:Z,message:Ne,extra:oe})});if(!W.ok){const $e=await W.json().catch(()=>({}));throw new Error($e.error||`HTTP error! status: ${W.status}`)}const{response:se,tools:ve,functionData:ue}=await W.json();let Be=[];if(ue)switch(ue==null?void 0:ue.key){case"single_location":Be=[ue.value];break;case"multiple_locations":Be=ue.value.filter(Boolean);break;case"directions":{const{originLocationId:$e,destinationLocationId:Ue}=ue.value;o({originLocationId:$e,destinationLocationId:Ue});break}default:break}return console.log("Search result IDs:",Be),f(Be),console.log(`Agent tool calls:
44
44
  `+JSON.stringify(ve,null,2)),se}catch(Z){return console.error("Error generating response:",Z),Z instanceof Error&&(console.error("Error message:",Z.message),console.error("Error stack:",Z.stack)),"I'm sorry, I encountered an error processing your request. Please try again later."}finally{l(!1)}}},[P,t]),Q=ye.useCallback(()=>{o(null)},[]);ye.useEffect(()=>()=>{D.current&&fetch(`${dx}/api/chat/end/${D.current}`,{method:"DELETE"}).catch(ae=>{console.warn("Error ending session on unmount:",ae)})},[]);const J={enabled:t,generateResponse:F,isLoading:i,searchResults:h,directionsLocationIds:_,clearDirectionsLocationIds:Q,defaultPrompt:I};return Se.jsx(jk.Provider,{value:J,children:e})}function Rk(){const e=ye.useContext(jk);if(e===void 0)throw new Error("useGemini must be used within a GeminiProvider");return e}Pk.propTypes={children:at.node.isRequired,enabled:at.bool};const Fk=ji({key:"useKeyboard",default:!1}),Bk=ye.forwardRef(function(t,i){const{searchInputElement:l}=t,h=ye.useRef(),f=Mn(dd);return ye.useImperativeHandle(i,()=>({clearInputField(){h.current.clearInputField()}})),ye.useEffect(()=>{const{current:_}=h;l&&(_.inputElement=l)},[l]),Se.jsx("mi-keyboard",{language:f,ref:h})});Bk.propTypes={searchInputElement:at.instanceOf(HTMLInputElement)};const fx=ji({key:"searchResults",default:[]}),P5=ji({key:"selectedCategory",default:void 0}),yye="";function fJ(){return new Promise(e=>{const t=document.querySelector(".chip--active");if(t)e(t);else{const i=new MutationObserver(()=>{const l=document.querySelector(".chip--active");l&&(i.disconnect(),e(l))});i.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const pJ=ji({key:"isBottomSheetLoaded",default:!1}),Uk=ji({key:"category",default:void 0}),Vk=e=>ye.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),gJ=e=>ye.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));R5.propTypes={onSetSize:at.func,getFilteredLocations:at.func,searchFieldRef:at.object,isOpen:at.bool,topLevelCategory:at.bool,handleBack:at.func,selectedCategoriesArray:at.object,categoryOrientation:at.oneOf(["horizontal","vertical"])};function R5({onSetSize:e,getFilteredLocations:t,searchFieldRef:i,isOpen:l,topLevelCategory:h,handleBack:f,selectedCategoriesArray:_,categoryOrientation:o}){const I=Mn(v1),D=Qs(),[O,P]=Wn(P5),[,F]=Wn(fx),[,Q]=Wn(m1),J=up(),[ae,Ne]=ye.useState(),oe=Mn(pJ),Z=Mn(Uk),W=Mn(Es),se=yk(W,l),[ve,ue]=ye.useState([]),[Be,$e]=ye.useState([]),{t:Ue}=$o(),Fe=Wu(),Ke=ye.useRef(null),[ct,yt]=ye.useState(!1),[Ht,_t]=ye.useState(!1),wt=L=>{Rt&&Ke.current&&Ke.current.scrollBy({left:L==="left"?-200:200,behavior:"smooth"})},Ft=()=>{if(Ke.current){const{scrollLeft:L,scrollWidth:$,clientWidth:Y}=Ke.current,q=L<=0,ce=L>=$-Y-1;yt(!q),_t(!ce)}},gt=!h&&ve.length===0,Rt=Fe&&o==="horizontal"&&!gt;ye.useEffect(()=>{if(!Rt)return;const L=Ke.current;if(L)return Ft(),L.addEventListener("scroll",Ft),()=>{L.removeEventListener("scroll",Ft)}},[Rt,ve.length]);const H=`categories prevent-scroll${Fe?` categories--kiosk-${o||"vertical"}`:""}`;function le(L){typeof e=="function"&&e(L)}function T(L){P(L),O===L?(F([]),P(null),Q([]),i.current.getValue()&&i.current.triggerSearch()):i.current.getValue()?i.current.triggerSearch():t(L)}return ye.useEffect(()=>{var L;se&&O&&(P(null),F([]),Q([]),(L=i.current)!=null&&L.getValue()&&i.current.clear())},[se]),ye.useEffect(()=>{O&&(fJ().then(L=>Ne(L)),le(Xi.MAX))},[O]),ye.useEffect(()=>{ae&&Z!==void 0&&(D||!D&&oe)&&ae.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[ae,Z,oe]),ye.useEffect(()=>{var Y,q,ce;let L=[];if(h){const pe=I.flatMap(([,fe])=>fe.childKeys||[]);L=I.filter(([fe])=>!pe.includes(fe))}else if(O){const pe=(Y=I.find(([we])=>we===O))==null?void 0:Y[1],fe=(pe==null?void 0:pe.childKeys)||[];L=I.filter(([we])=>fe.includes(we))}ue(L);const $=(ce=(q=I.find(([pe])=>pe===O))==null?void 0:q[1])==null?void 0:ce.displayName;$e($)},[I]),Se.jsx("div",{className:H,...J,children:I.length>0&&Se.jsxs(Se.Fragment,{children:[!h&&Se.jsxs("div",{className:"categories__nav",children:[Se.jsx("button",{"aria-label":Ue("Back"),type:"button",className:"categories__nav-button",onClick:f,children:Se.jsx(Vk,{})}),Se.jsx("div",{children:Be})]}),Se.jsxs("div",{className:"categories__row",children:[Rt&&Se.jsx("div",{className:"categories__chevron categories__chevron--left",children:Se.jsx("button",{"aria-label":Ue("Previous categories"),type:"button",disabled:!ct,onClick:()=>wt("left"),children:Se.jsx(Vk,{})})}),Se.jsx("div",{className:"categories__list",ref:Fe?Ke:void 0,children:ve.map(([L,$])=>!h&&_.current.length!==1?null:Se.jsx("div",{className:"categories__category",children:Se.jsxs("button",{onClick:()=>h?T(L):t(L),children:[Se.jsx("img",{src:$.iconUrl,alt:""}),$.displayName]})},L))}),Rt&&Se.jsx("div",{className:"categories__chevron categories__chevron--right",children:Se.jsx("button",{"aria-label":Ue("Next categories"),type:"button",disabled:!Ht,onClick:()=>wt("right"),children:Se.jsx(gJ,{})})})]})]})})}const mJ=e=>ye.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{opacity:.12,d:"M3 7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H16.2C17.8802 3 18.7202 3 19.362 3.32698C19.9265 3.6146 20.3854 4.07354 20.673 4.63803C21 5.27976 21 6.11984 21 7.8V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8Z",fill:"#111827",style:{fill:"#111827",fill:"color(display-p3 0.0667 0.0941 0.1529)",fillOpacity:1}}),ye.createElement("path",{d:"M12 16V12M12 8H12.01M7.8 21H16.2C17.8802 21 18.7202 21 19.362 20.673C19.9265 20.3854 20.3854 19.9265 20.673 19.362C21 18.7202 21 17.8802 21 16.2V7.8C21 6.11984 21 5.27976 20.673 4.63803C20.3854 4.07354 19.9265 3.6146 19.362 3.32698C18.7202 3 17.8802 3 16.2 3H7.8C6.11984 3 5.27976 3 4.63803 3.32698C4.07354 3.6146 3.6146 4.07354 3.32698 4.63803C3 5.27976 3 6.11984 3 7.8V16.2C3 17.8802 3 18.7202 3.32698 19.362C3.6146 19.9265 4.07354 20.3854 4.63803 20.673C5.27976 21 6.11984 21 7.8 21Z",stroke:"#111827",style:{stroke:"#111827",stroke:"color(display-p3 0.0667 0.0941 0.1529)",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),yJ=e=>ye.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},ye.createElement("path",{d:"M19.5 13C14.5987 13.4243 11.9243 16.0987 11.5 21C11.0578 16.0225 8.39737 13.5547 3.5 13C8.47478 12.4262 10.9262 9.97478 11.5 5C12.0547 9.89737 14.5225 12.5578 19.5 13Z",stroke:"white",style:{stroke:"white",strokeOpacity:1},strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),ye.createElement("path",{d:"M19.3864 2.34512C19.3642 2.14869 19.1981 2.0002 19.0004 2C18.8027 1.9998 18.6363 2.14794 18.6137 2.34433C18.5082 3.25861 18.2367 3.88584 17.8113 4.31127C17.3858 4.7367 16.7586 5.00822 15.8443 5.11367C15.6479 5.13632 15.4998 5.30271 15.5 5.5004C15.5002 5.69809 15.6487 5.86417 15.8451 5.88642C16.7439 5.98823 17.3855 6.25969 17.8217 6.68804C18.2556 7.11407 18.5322 7.74041 18.6126 8.64552C18.6305 8.84634 18.7988 9.00023 19.0004 9C19.202 8.99977 19.3701 8.84551 19.3874 8.64465C19.4645 7.75483 19.7409 7.11438 20.1776 6.67764C20.6144 6.24091 21.2548 5.96446 22.1446 5.88744C22.3455 5.87005 22.4998 5.70205 22.5 5.50044C22.5002 5.29883 22.3463 5.13048 22.1455 5.11264C21.2404 5.03224 20.6141 4.75557 20.188 4.3217C19.7597 3.88545 19.4882 3.24394 19.3864 2.34512Z",fill:"white",style:{fill:"white",fillOpacity:1}})),px=ji({key:"isLegendDialogVisible",default:!1}),Hk=Lv({key:"legendFields",get:({get:e})=>{const t=e(bl);if(!(t!=null&&t.properties.fields))return;const i=[];for(const h of Object.keys(t.properties.fields)){const f=parseInt(h.charAt(0));if(!Number.isInteger(f))continue;const _=i.find(D=>D.index===f),o=h.toLowerCase().includes("legendheading"),I=h.toLowerCase().includes("legendcontent");if(_)o?_.heading=t.properties.fields[h].value:I&&(_.content=t.properties.fields[h].value);else{const D={index:f,heading:o?t.properties.fields[h].value:null,content:I?t.properties.fields[h].value:null};i.push(D)}}return i.sort((h,f)=>h.index-f.index)}}),F5=ji({key:"initialVenueName",default:null});B5.propTypes={categories:at.array,onSetSize:at.func,isOpen:at.bool,onOpenChat:at.func};function B5({onSetSize:e,isOpen:t,onOpenChat:i}){const l=Mn(Zu),{t:h}=$o(),f=ye.useRef(),_=ye.useRef(),o=ye.useRef(),I=ye.useRef(),D=ye.useRef(),O=100,[P,F]=Wn(fx),Q=Mn(v1),J=Mn(Ta),ae=Mn(Fk),[Ne,oe]=ye.useState(!1),[Z,W]=Wn(P5),se=up(),[ve,ue]=ye.useState(),Be=Mn(Es),[,$e]=Wn(m1),[,Ue]=Wn(Zl),[,Fe]=Wn(I1),[Ke,ct]=Wn(vl),yt=Mn(dd),Ht=Qs(),_t=Mn(bl),[wt,Ft]=ye.useState(!1),gt=Mn(A5),{setInitialMessage:Rt}=Ok(),{enabled:H}=Rk(),le=Wu(),[,T]=Wn(px),[L,$]=ye.useState(!1),Y=Mn(Hk),q=Mn(ax),ce=Mn(x1),pe=Mn(F5),[fe,we]=ye.useState(!1),[He,nt]=ye.useState(!1),Qe=ye.useRef([]),[tt,Ge]=ye.useState([]),[It,Mt]=ye.useState(!1);function At(){var Wt,Vn,lt;Qe.current.length===1?(W(null),F([]),$e([]),hn(Xi.FIT),we(!0),((Vn=(Wt=I.current)==null?void 0:Wt.getValue())==null?void 0:Vn.trim())?I.current.triggerSearch():(lt=I.current)==null||lt.clear(),Qe.current.pop()):(Qe.current.pop(),W(Qe.current[0]))}function Nt(Wt){var Vn;Qe.current.includes(Wt)||Qe.current.push(Wt),Z&&(W([]),F([]),$e([])),W(Wt),window.mapsindoors.services.LocationsService.getLocations({categories:Wt,venue:q||(Vn=ce.find(lt=>lt.name.toLowerCase()===Ke.toLowerCase()))==null?void 0:Vn.name}).then(lt=>fn(lt,!0))}function hn(Wt){typeof e=="function"&&e(Wt)}function Jt(Wt){return Z?[...Wt].sort((Vn,lt)=>{var it,Qt;return(((it=Vn.properties)==null?void 0:it.name)||"").localeCompare(((Qt=lt.properties)==null?void 0:Qt.name)||"",void 0,{numeric:!0})}):Wt}function fn(Wt,Vn=!1){var it;const lt=Wt.slice(0,O);hn(Xi.MAX),F(lt),$e(lt),oe(lt.length===0),Wt&&Vn&&Xt(Wt),le&&((it=f.current)==null||it.addEventListener("transitionend",()=>{var Qt;(Qt=_==null?void 0:_.current)==null||Qt.updateScrollButtons()},{once:!0}))}function Xt(Wt){if(!Be.goTo)return;const Vn=Be.getFloor(),lt={type:"FeatureCollection",features:Wt.filter(it=>parseInt(it.properties.floor,10)===parseInt(Vn,10)).filter(it=>it.properties.venueId.toLowerCase()===Ke.toLowerCase()).map(it=>({type:"Feature",geometry:it.geometry,properties:it.properties}))};lt.features.length>0&&Promise.all([In(),Ln()]).then(([it,Qt])=>{Be.goTo(lt,{maxZoom:22,padding:{bottom:it,left:Qt,top:0,right:0}})})}function xn(){if(I.current&&fe){const Wt=I.current.getValue(),Vn=Wt?Wt.length:0;nt(Vn>5)}else nt(!1)}function kn(){F([]),oe(!1),nt(!1),Z&&Nt(Z),$e([]),Ur(D.current)||D.current.clearInputField()}function vt(){I.current.getInputField();const Wt=f.current.closest(".sheet");Wt?Wt.addEventListener("transitionend",()=>{I.current.focusInput(),we(!0),xn()},{once:!0}):(I.current.focusInput(),we(!0),xn())}function ft(Wt){ue(Wt)}function Sn(Wt){Ue(Wt),Wt.properties.venueId.toLowerCase()!==Ke.toLowerCase()&&(ct(Wt.properties.venueId),Fe(!0));const Vn=Be.getFloor(),lt=Wt.properties.floor;lt!==Vn&&Be.setFloor(lt),Promise.all([In(),Ln()]).then(([it,Qt])=>{Be.goTo(Wt,{maxZoom:22,padding:{bottom:it,left:Qt,top:0,right:0}})})}function In(){return new Promise(Wt=>{Ht?_t?_1().then(Vn=>Wt(Vn)):Wt(0):Wt(200)})}function Ln(){return new Promise(Wt=>{Ht?_t?Wt(0):Yu().then(Vn=>Wt(Vn)):Wt(0)})}function hi(){if(P.length>0){let Wt;return Ht?Wt=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":Wt="100%",{display:"flex",flexDirection:"column",maxHeight:Wt,overflow:"hidden"}}}function ci(){return le&&It}return ye.useEffect(()=>{const Wt=[".search__info",".search__back-button",".categories",".sheet__content"],Vn=[".mi-floor-selector",".view-mode-switch",".mi-my-position",".view-selector__toggle-button",".building-list",".mapboxgl-ctrl-bottom-right",".gmnoprint",".language-selector-portal"],lt=it=>{const Qt=Wt.some(mn=>it.target.closest(mn)),$t=Vn.some(mn=>it.target.closest(mn)),tn=it.target.closest(".search__results");Qt?(hn(Xi.MAX),o.current=requestAnimationFrame(()=>{we(!0),xn()})):!tn&&!$t&&(we(!1),nt(!1),hn(Xi.MIN),W(null),F([]),$e([]),Qe.current=[])};return t?o.current=requestAnimationFrame(()=>{document.addEventListener("click",lt)}):document.removeEventListener("click",lt),()=>{document.removeEventListener("click",lt),o.current&&cancelAnimationFrame(o.current)}},[t]),ye.useEffect(()=>()=>{ue()},[]),ye.useEffect(()=>{t&&!Z&&(F([]),$e([]),oe(!1),Qe.current=[])},[t,Z]),ye.useEffect(()=>{Z&&Ke!==pe&&(F([]),W(null))},[Ke]),ye.useEffect(()=>{Z&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{I.current.triggerSearch()})},[yt]),ye.useEffect(()=>(Be==null||Be.on("mouseenter",ft),()=>{Be==null||Be.off("mouseenter",ft)}),[Be]),ye.useEffect(()=>{if(t&&le&&P.length>0){const Wt=document.querySelector(".mapsindoors-map .search__results");_.current.scrollContainerElementRef=Wt}},[P,t]),ye.useEffect(()=>{if(ae){const Wt=Vn=>{Vn.target.closest("mi-keyboard")||Vn.target.tagName.toUpperCase()==="MI-SEARCH"||Vn.target.tagName.toUpperCase()==="INPUT"?Ft(!0):Ft(!1)};return window.addEventListener("click",Wt,!1),()=>{window.removeEventListener("click",Wt,!1)}}},[ae]),ye.useEffect(()=>{Z&&Nt(Z)},[Z]),ye.useEffect(()=>{_t&&$(Y.length>0)},[_t]),ye.useEffect(()=>{var Vn,lt;const Wt=((lt=(Vn=Q.find(([it])=>it===Z))==null?void 0:Vn[1])==null?void 0:lt.childKeys)||[];Ge(Wt)},[Q,Z]),ye.useEffect(()=>{var Wt,Vn;Mt(((Wt=l==null?void 0:l.appSettings)==null?void 0:Wt.areHorizontalCategoriesEnabled)===!0||((Vn=l==null?void 0:l.appSettings)==null?void 0:Vn.areHorizontalCategoriesEnabled)==="true")},[l]),ye.useEffect(()=>{var Wt;t&&(oe(!1),we(!1),nt(!1),F([]),(Wt=I.current)==null||Wt.clear())},[t,F]),ye.useEffect(()=>{if(!H||!gt||!fe||!He)return;const Wt=Vn=>{var lt,it;if(Vn.key==="Enter"&&i){Vn.preventDefault();const Qt=(((lt=Vn.target)==null?void 0:lt.value)||(gt==null?void 0:gt.value)||"").trim();Qt&&(Rt(Qt),(it=I.current)==null||it.clear(),i())}};return gt.addEventListener("keydown",Wt),()=>{gt&&gt.removeEventListener("keydown",Wt)}},[H,gt,fe,He,i,Rt]),Se.jsxs("div",{className:"search",ref:f,style:hi(),children:[Se.jsxs("div",{className:"search__info",style:{gridTemplateColumns:le&&L?"min-content 1fr min-content":"1fr min-content"},children:[le&&L&&Se.jsx("button",{className:"search__legend",onClick:()=>T(!0),"aria-label":h("Show legend"),children:Se.jsx(mJ,{})}),Se.jsxs("label",{className:"search__label",children:[Se.jsx("span",{children:h("Search by name, category, building...")}),Se.jsx(cx,{ref:I,mapsindoors:!0,placeholder:h("Search by name, category, building..."),results:Wt=>fn(Wt),clicked:()=>vt(),cleared:()=>kn(),changed:()=>xn(),category:Z,disabled:!t})]})]}),H&&fe&&He&&Se.jsxs("button",{className:"search__ask-ai-button",style:{"--ask-ai-button-primary-color":J},onClick:Wt=>{var Vn,lt;if(Wt.stopPropagation(),i){const it=((gt==null?void 0:gt.value)||((Vn=I.current)==null?void 0:Vn.getValue())||"").trim();it&&(Rt(it),(lt=I.current)==null||lt.clear(),i())}},type:"button","aria-label":h("Ask with AI"),title:h("Ask with AI"),children:[Se.jsx(yJ,{}),h("Ask with AI")]}),(ci()||fe)&&!Ne&&Q.length>0&&P.length===0&&Se.jsx(R5,{onSetSize:e,searchFieldRef:I,getFilteredLocations:Wt=>Nt(Wt),isOpen:!!Z,topLevelCategory:!0,categoryOrientation:It?"horizontal":"vertical"}),!He&&Ne&&Se.jsxs("p",{className:"search__error",children:[" ",h("Nothing was found")]}),P.length>0&&Se.jsxs("div",{className:"search__results prevent-scroll",...se,children:[Z&&Se.jsx(R5,{handleBack:At,getFilteredLocations:Wt=>Nt(Wt),onLocationClicked:Sn,childKeys:tt,topLevelCategory:!1,selectedCategoriesArray:Qe,categoryOrientation:It?"horizontal":"vertical"}),Jt(P).map(Wt=>Se.jsx(S1,{location:Wt,locationClicked:()=>Sn(Wt),isHovered:(Wt==null?void 0:Wt.id)===(ve==null?void 0:ve.id)},Wt.id))]}),wt&&Ht&&Se.jsx(Bk,{ref:D,searchInputElement:gt}),t&&le&&P.length>0&&Fc.createPortal(Se.jsx("div",{className:"search__scroll-buttons",children:Se.jsx("mi-scroll-buttons",{ref:_})}),document.querySelector(".mapsindoors-map"))]})}const _ye="";U5.propTypes={onLocationClick:at.func.isRequired,onBack:at.func.isRequired,locations:at.arrayOf(at.object),onSetSize:at.func};function U5({onBack:e,onLocationClick:t,locations:i,onSetSize:l}){const{t:h}=$o(),f=up();function _(o){typeof l=="function"&&l(o)}return ye.useEffect(()=>{_(Xi.FIT)},[]),Se.jsxs("div",{className:"locations-list",children:[Se.jsxs("div",{className:"locations-list__header",children:[Se.jsxs("div",{className:"locations-list__title",children:[i==null?void 0:i.length," ",h("Locations")]}),Se.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":h("Close"),children:Se.jsx(op,{})})]}),Se.jsx("div",{className:"locations-list__scrollable prevent-scroll",...f,children:Se.jsx("div",{className:"locations-list__list",children:i==null?void 0:i.map(o=>Se.jsx(S1,{location:o,locationClicked:I=>t(I)},o.id))})})]})}const Qk=ji({key:"chatHistoryState",default:[]}),_J=e=>{const[t,i]=ye.useState(0),l=ye.useRef(null);return ye.useLayoutEffect(()=>{if(e)return;const h=()=>{if(!window.visualViewport)return;const _=window.visualViewport.height,I=window.innerHeight-_;I>50?i(I):i(0)},f=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(h,150)};return window.visualViewport&&(window.visualViewport.addEventListener("resize",f),f()),()=>{l.current&&clearTimeout(l.current),window.visualViewport&&window.visualViewport.removeEventListener("resize",f)}},[e]),t},vye="",vJ=ji({key:"userLocationShare",default:null});function xye(){}function wye(){}function xJ(e,t){const i=t||{};return(e[e.length-1]===""?[...e,""]:e).join((i.padRight?" ":"")+","+(i.padLeft===!1?"":" ")).trim()}const wJ=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,bJ=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,MJ={};function $k(e,t){return((t||MJ).jsx?bJ:wJ).test(e)}const IJ=/[ \t\n\f\r]/g;function TJ(e){return typeof e=="object"?e.type==="text"?Yk(e.value):!1:Yk(e)}function Yk(e){return e.replace(IJ,"")===""}class C1{constructor(t,i,l){this.normal=i,this.property=t,l&&(this.space=l)}}C1.prototype.normal={},C1.prototype.property={},C1.prototype.space=void 0;function Gk(e,t){const i={},l={};for(const h of e)Object.assign(i,h.property),Object.assign(l,h.normal);return new C1(i,l,t)}function V5(e){return e.toLowerCase()}class ha{constructor(t,i){this.attribute=i,this.property=t}}ha.prototype.attribute="",ha.prototype.booleanish=!1,ha.prototype.boolean=!1,ha.prototype.commaOrSpaceSeparated=!1,ha.prototype.commaSeparated=!1,ha.prototype.defined=!1,ha.prototype.mustUseProperty=!1,ha.prototype.number=!1,ha.prototype.overloadedBoolean=!1,ha.prototype.property="",ha.prototype.spaceSeparated=!1,ha.prototype.space=void 0;let SJ=0;const dr=fd(),Yo=fd(),H5=fd(),ti=fd(),so=fd(),pp=fd(),Sa=fd();function fd(){return 2**++SJ}const Q5=Object.freeze(Object.defineProperty({__proto__:null,boolean:dr,booleanish:Yo,commaOrSpaceSeparated:Sa,commaSeparated:pp,number:ti,overloadedBoolean:H5,spaceSeparated:so},Symbol.toStringTag,{value:"Module"})),$5=Object.keys(Q5);class Y5 extends ha{constructor(t,i,l,h){let f=-1;if(super(t,i),Zk(this,"space",h),typeof l=="number")for(;++f<$5.length;){const _=$5[f];Zk(this,$5[f],(l&Q5[_])===Q5[_])}}}Y5.prototype.defined=!0;function Zk(e,t,i){i&&(e[t]=i)}function gp(e){const t={},i={};for(const[l,h]of Object.entries(e.properties)){const f=new Y5(l,e.transform(e.attributes||{},l),h,e.space);e.mustUseProperty&&e.mustUseProperty.includes(l)&&(f.mustUseProperty=!0),t[l]=f,i[V5(l)]=l,i[V5(f.attribute)]=l}return new C1(t,i,e.space)}const Wk=gp({properties:{ariaActiveDescendant:null,ariaAtomic:Yo,ariaAutoComplete:null,ariaBusy:Yo,ariaChecked:Yo,ariaColCount:ti,ariaColIndex:ti,ariaColSpan:ti,ariaControls:so,ariaCurrent:null,ariaDescribedBy:so,ariaDetails:null,ariaDisabled:Yo,ariaDropEffect:so,ariaErrorMessage:null,ariaExpanded:Yo,ariaFlowTo:so,ariaGrabbed:Yo,ariaHasPopup:null,ariaHidden:Yo,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:so,ariaLevel:ti,ariaLive:null,ariaModal:Yo,ariaMultiLine:Yo,ariaMultiSelectable:Yo,ariaOrientation:null,ariaOwns:so,ariaPlaceholder:null,ariaPosInSet:ti,ariaPressed:Yo,ariaReadOnly:Yo,ariaRelevant:null,ariaRequired:Yo,ariaRoleDescription:so,ariaRowCount:ti,ariaRowIndex:ti,ariaRowSpan:ti,ariaSelected:Yo,ariaSetSize:ti,ariaSort:null,ariaValueMax:ti,ariaValueMin:ti,ariaValueNow:ti,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function qk(e,t){return t in e?e[t]:t}function Kk(e,t){return qk(e,t.toLowerCase())}const CJ=gp({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:pp,acceptCharset:so,accessKey:so,action:null,allow:null,allowFullScreen:dr,allowPaymentRequest:dr,allowUserMedia:dr,alt:null,as:null,async:dr,autoCapitalize:null,autoComplete:so,autoFocus:dr,autoPlay:dr,blocking:so,capture:null,charSet:null,checked:dr,cite:null,className:so,cols:ti,colSpan:null,content:null,contentEditable:Yo,controls:dr,controlsList:so,coords:ti|pp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:dr,defer:dr,dir:null,dirName:null,disabled:dr,download:H5,draggable:Yo,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:dr,formTarget:null,headers:so,height:ti,hidden:H5,high:ti,href:null,hrefLang:null,htmlFor:so,httpEquiv:so,id:null,imageSizes:null,imageSrcSet:null,inert:dr,inputMode:null,integrity:null,is:null,isMap:dr,itemId:null,itemProp:so,itemRef:so,itemScope:dr,itemType:so,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:dr,low:ti,manifest:null,max:null,maxLength:ti,media:null,method:null,min:null,minLength:ti,multiple:dr,muted:dr,name:null,nonce:null,noModule:dr,noValidate:dr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:dr,optimum:ti,pattern:null,ping:so,placeholder:null,playsInline:dr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:dr,referrerPolicy:null,rel:so,required:dr,reversed:dr,rows:ti,rowSpan:ti,sandbox:so,scope:null,scoped:dr,seamless:dr,selected:dr,shadowRootClonable:dr,shadowRootDelegatesFocus:dr,shadowRootMode:null,shape:null,size:ti,sizes:null,slot:null,span:ti,spellCheck:Yo,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ti,step:null,style:null,tabIndex:ti,target:null,title:null,translate:null,type:null,typeMustMatch:dr,useMap:null,value:Yo,width:ti,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:so,axis:null,background:null,bgColor:null,border:ti,borderColor:null,bottomMargin:ti,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:dr,declare:dr,event:null,face:null,frame:null,frameBorder:null,hSpace:ti,leftMargin:ti,link:null,longDesc:null,lowSrc:null,marginHeight:ti,marginWidth:ti,noResize:dr,noHref:dr,noShade:dr,noWrap:dr,object:null,profile:null,prompt:null,rev:null,rightMargin:ti,rules:null,scheme:null,scrolling:Yo,standby:null,summary:null,text:null,topMargin:ti,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ti,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:dr,disableRemotePlayback:dr,prefix:null,property:null,results:ti,security:null,unselectable:null},space:"html",transform:Kk}),DJ=gp({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Sa,accentHeight:ti,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ti,amplitude:ti,arabicForm:null,ascent:ti,attributeName:null,attributeType:null,azimuth:ti,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ti,by:null,calcMode:null,capHeight:ti,className:so,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ti,diffuseConstant:ti,direction:null,display:null,dur:null,divisor:ti,dominantBaseline:null,download:dr,dx:null,dy:null,edgeMode:null,editable:null,elevation:ti,enableBackground:null,end:null,event:null,exponent:ti,externalResourcesRequired:null,fill:null,fillOpacity:ti,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:pp,g2:pp,glyphName:pp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ti,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ti,horizOriginX:ti,horizOriginY:ti,id:null,ideographic:ti,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ti,k:ti,k1:ti,k2:ti,k3:ti,k4:ti,kernelMatrix:Sa,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ti,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ti,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ti,overlineThickness:ti,paintOrder:null,panose1:null,path:null,pathLength:ti,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:so,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ti,pointsAtY:ti,pointsAtZ:ti,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sa,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sa,rev:Sa,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sa,requiredFeatures:Sa,requiredFonts:Sa,requiredFormats:Sa,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ti,specularExponent:ti,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ti,strikethroughThickness:ti,string:null,stroke:null,strokeDashArray:Sa,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ti,strokeOpacity:ti,strokeWidth:null,style:null,surfaceScale:ti,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sa,tabIndex:ti,tableValues:null,target:null,targetX:ti,targetY:ti,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sa,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ti,underlineThickness:ti,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ti,values:null,vAlphabetic:ti,vMathematical:ti,vectorEffect:null,vHanging:ti,vIdeographic:ti,version:null,vertAdvY:ti,vertOriginX:ti,vertOriginY:ti,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ti,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qk}),Xk=gp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Jk=gp({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Kk}),e9=gp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),AJ={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},EJ=/[A-Z]/g,t9=/-[a-z]/g,NJ=/^data[-\w.:]+$/i;function LJ(e,t){const i=V5(t);let l=t,h=ha;if(i in e.normal)return e.property[e.normal[i]];if(i.length>4&&i.slice(0,4)==="data"&&NJ.test(t)){if(t.charAt(4)==="-"){const f=t.slice(5).replace(t9,kJ);l="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=t.slice(4);if(!t9.test(f)){let _=f.replace(EJ,zJ);_.charAt(0)!=="-"&&(_="-"+_),t="data"+_}}h=Y5}return new h(l,t)}function zJ(e){return"-"+e.toLowerCase()}function kJ(e){return e.charAt(1).toUpperCase()}const OJ=Gk([Wk,CJ,Xk,Jk,e9],"html"),G5=Gk([Wk,DJ,Xk,Jk,e9],"svg");function jJ(e){return e.join(" ").trim()}var Z5={},n9=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,PJ=/\n/g,RJ=/^\s*/,FJ=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,BJ=/^:\s*/,UJ=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,VJ=/^[;\s]*/,HJ=/^\s+|\s+$/g,QJ=`
45
45
  `,i9="/",r9="*",pd="",$J="comment",YJ="declaration",GJ=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var i=1,l=1;function h(J){var ae=J.match(PJ);ae&&(i+=ae.length);var Ne=J.lastIndexOf(QJ);l=~Ne?J.length-Ne:l+J.length}function f(){var J={line:i,column:l};return function(ae){return ae.position=new _(J),D(),ae}}function _(J){this.start=J,this.end={line:i,column:l},this.source=t.source}_.prototype.content=e;function o(J){var ae=new Error(t.source+":"+i+":"+l+": "+J);if(ae.reason=J,ae.filename=t.source,ae.line=i,ae.column=l,ae.source=e,!t.silent)throw ae}function I(J){var ae=J.exec(e);if(ae){var Ne=ae[0];return h(Ne),e=e.slice(Ne.length),ae}}function D(){I(RJ)}function O(J){var ae;for(J=J||[];ae=P();)ae!==!1&&J.push(ae);return J}function P(){var J=f();if(!(i9!=e.charAt(0)||r9!=e.charAt(1))){for(var ae=2;pd!=e.charAt(ae)&&(r9!=e.charAt(ae)||i9!=e.charAt(ae+1));)++ae;if(ae+=2,pd===e.charAt(ae-1))return o("End of comment missing");var Ne=e.slice(2,ae-2);return l+=2,h(Ne),e=e.slice(ae),l+=2,J({type:$J,comment:Ne})}}function F(){var J=f(),ae=I(FJ);if(ae){if(P(),!I(BJ))return o("property missing ':'");var Ne=I(UJ),oe=J({type:YJ,property:o9(ae[0].replace(n9,pd)),value:Ne?o9(Ne[0].replace(n9,pd)):pd});return I(VJ),oe}}function Q(){var J=[];O(J);for(var ae;ae=F();)ae!==!1&&(J.push(ae),O(J));return J}return D(),Q()};function o9(e){return e?e.replace(HJ,pd):pd}var ZJ=Pl&&Pl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Z5,"__esModule",{value:!0}),Z5.default=qJ;const WJ=ZJ(GJ);function qJ(e,t){let i=null;if(!e||typeof e!="string")return i;const l=(0,WJ.default)(e),h=typeof t=="function";return l.forEach(f=>{if(f.type!=="declaration")return;const{property:_,value:o}=f;h?t(_,o,f):o&&(i=i||{},i[_]=o)}),i}var gx={};Object.defineProperty(gx,"__esModule",{value:!0}),gx.camelCase=void 0;var KJ=/^--[a-zA-Z0-9_-]+$/,XJ=/-([a-z])/g,JJ=/^[^-]+$/,eee=/^-(webkit|moz|ms|o|khtml)-/,tee=/^-(ms)-/,nee=function(e){return!e||JJ.test(e)||KJ.test(e)},iee=function(e,t){return t.toUpperCase()},s9=function(e,t){return"".concat(t,"-")},ree=function(e,t){return t===void 0&&(t={}),nee(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace(tee,s9):e=e.replace(eee,s9),e.replace(XJ,iee))};gx.camelCase=ree;var oee=Pl&&Pl.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},see=oee(Z5),aee=gx;function W5(e,t){var i={};return!e||typeof e!="string"||(0,see.default)(e,function(l,h){l&&h&&(i[(0,aee.camelCase)(l,t)]=h)}),i}W5.default=W5;var lee=W5;const cee=ul(lee),a9=l9("end"),q5=l9("start");function l9(e){return t;function t(i){const l=i&&i.position&&i.position[e]||{};if(typeof l.line=="number"&&l.line>0&&typeof l.column=="number"&&l.column>0)return{line:l.line,column:l.column,offset:typeof l.offset=="number"&&l.offset>-1?l.offset:void 0}}}function uee(e){const t=q5(e),i=a9(e);if(t&&i)return{start:t,end:i}}function D1(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?c9(e.position):"start"in e||"end"in e?c9(e):"line"in e||"column"in e?K5(e):""}function K5(e){return u9(e&&e.line)+":"+u9(e&&e.column)}function c9(e){return K5(e&&e.start)+"-"+K5(e&&e.end)}function u9(e){return e&&typeof e=="number"?e:1}class Ls extends Error{constructor(t,i,l){super(),typeof i=="string"&&(l=i,i=void 0);let h="",f={},_=!1;if(i&&("line"in i&&"column"in i?f={place:i}:"start"in i&&"end"in i?f={place:i}:"type"in i?f={ancestors:[i],place:i.position}:f={...i}),typeof t=="string"?h=t:!f.cause&&t&&(_=!0,h=t.message,f.cause=t),!f.ruleId&&!f.source&&typeof l=="string"){const I=l.indexOf(":");I===-1?f.ruleId=l:(f.source=l.slice(0,I),f.ruleId=l.slice(I+1))}if(!f.place&&f.ancestors&&f.ancestors){const I=f.ancestors[f.ancestors.length-1];I&&(f.place=I.position)}const o=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=h,this.line=o?o.line:void 0,this.name=D1(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=_&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Ls.prototype.file="",Ls.prototype.name="",Ls.prototype.reason="",Ls.prototype.message="",Ls.prototype.stack="",Ls.prototype.column=void 0,Ls.prototype.line=void 0,Ls.prototype.ancestors=void 0,Ls.prototype.cause=void 0,Ls.prototype.fatal=void 0,Ls.prototype.place=void 0,Ls.prototype.ruleId=void 0,Ls.prototype.source=void 0;const X5={}.hasOwnProperty,hee=new Map,dee=/[A-Z]/g,fee=new Set(["table","tbody","thead","tfoot","tr"]),pee=new Set(["td","th"]),h9="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gee(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const i=t.filePath||void 0;let l;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");l=Mee(i,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");l=bee(i,t.jsx,t.jsxs)}const h={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:i,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?G5:OJ,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},f=d9(h,e,void 0);return f&&typeof f!="string"?f:h.create(e,h.Fragment,{children:f||void 0},void 0)}function d9(e,t,i){if(t.type==="element")return mee(e,t,i);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return yee(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return vee(e,t,i);if(t.type==="mdxjsEsm")return _ee(e,t);if(t.type==="root")return xee(e,t,i);if(t.type==="text")return wee(e,t)}function mee(e,t,i){const l=e.schema;let h=l;t.tagName.toLowerCase()==="svg"&&l.space==="html"&&(h=G5,e.schema=h),e.ancestors.push(t);const f=p9(e,t.tagName,!1),_=Iee(e,t);let o=eI(e,t);return fee.has(t.tagName)&&(o=o.filter(function(I){return typeof I=="string"?!TJ(I):!0})),f9(e,_,f,t),J5(_,o),e.ancestors.pop(),e.schema=l,e.create(t,f,_,i)}function yee(e,t){if(t.data&&t.data.estree&&e.evaluater){const l=t.data.estree.body[0];return l.type,e.evaluater.evaluateExpression(l.expression)}A1(e,t.position)}function _ee(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);A1(e,t.position)}function vee(e,t,i){const l=e.schema;let h=l;t.name==="svg"&&l.space==="html"&&(h=G5,e.schema=h),e.ancestors.push(t);const f=t.name===null?e.Fragment:p9(e,t.name,!0),_=Tee(e,t),o=eI(e,t);return f9(e,_,f,t),J5(_,o),e.ancestors.pop(),e.schema=l,e.create(t,f,_,i)}function xee(e,t,i){const l={};return J5(l,eI(e,t)),e.create(t,e.Fragment,l,i)}function wee(e,t){return t.value}function f9(e,t,i,l){typeof i!="string"&&i!==e.Fragment&&e.passNode&&(t.node=l)}function J5(e,t){if(t.length>0){const i=t.length>1?t:t[0];i&&(e.children=i)}}function bee(e,t,i){return l;function l(h,f,_,o){const D=Array.isArray(_.children)?i:t;return o?D(f,_,o):D(f,_)}}function Mee(e,t){return i;function i(l,h,f,_){const o=Array.isArray(f.children),I=q5(l);return t(h,f,_,o,{columnNumber:I?I.column-1:void 0,fileName:e,lineNumber:I?I.line:void 0},void 0)}}function Iee(e,t){const i={};let l,h;for(h in t.properties)if(h!=="children"&&X5.call(t.properties,h)){const f=See(e,h,t.properties[h]);if(f){const[_,o]=f;e.tableCellAlignToStyle&&_==="align"&&typeof o=="string"&&pee.has(t.tagName)?l=o:i[_]=o}}if(l){const f=i.style||(i.style={});f[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=l}return i}function Tee(e,t){const i={};for(const l of t.attributes)if(l.type==="mdxJsxExpressionAttribute")if(l.data&&l.data.estree&&e.evaluater){const f=l.data.estree.body[0];f.type;const _=f.expression;_.type;const o=_.properties[0];o.type,Object.assign(i,e.evaluater.evaluateExpression(o.argument))}else A1(e,t.position);else{const h=l.name;let f;if(l.value&&typeof l.value=="object")if(l.value.data&&l.value.data.estree&&e.evaluater){const o=l.value.data.estree.body[0];o.type,f=e.evaluater.evaluateExpression(o.expression)}else A1(e,t.position);else f=l.value===null?!0:l.value;i[h]=f}return i}function eI(e,t){const i=[];let l=-1;const h=e.passKeys?new Map:hee;for(;++l<t.children.length;){const f=t.children[l];let _;if(e.passKeys){const I=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(I){const D=h.get(I)||0;_=I+"-"+D,h.set(I,D+1)}}const o=d9(e,f,_);o!==void 0&&i.push(o)}return i}function See(e,t,i){const l=LJ(e.schema,t);if(!(i==null||typeof i=="number"&&Number.isNaN(i))){if(Array.isArray(i)&&(i=l.commaSeparated?xJ(i):jJ(i)),l.property==="style"){let h=typeof i=="object"?i:Cee(e,String(i));return e.stylePropertyNameCase==="css"&&(h=Dee(h)),["style",h]}return[e.elementAttributeNameCase==="react"&&l.space?AJ[l.property]||l.property:l.attribute,i]}}function Cee(e,t){try{return cee(t,{reactCompat:!0})}catch(i){if(e.ignoreInvalidStyle)return{};const l=i,h=new Ls("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:l,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw h.file=e.filePath||void 0,h.url=h9+"#cannot-parse-style-attribute",h}}function p9(e,t,i){let l;if(!i)l={type:"Literal",value:t};else if(t.includes(".")){const h=t.split(".");let f=-1,_;for(;++f<h.length;){const o=$k(h[f])?{type:"Identifier",name:h[f]}:{type:"Literal",value:h[f]};_=_?{type:"MemberExpression",object:_,property:o,computed:!!(f&&o.type==="Literal"),optional:!1}:o}l=_}else l=$k(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(l.type==="Literal"){const h=l.value;return X5.call(e.components,h)?e.components[h]:h}if(e.evaluater)return e.evaluater.evaluateExpression(l);A1(e)}function A1(e,t){const i=new Ls("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=h9+"#cannot-handle-mdx-estrees-without-createevaluater",i}function Dee(e){const t={};let i;for(i in e)X5.call(e,i)&&(t[Aee(i)]=e[i]);return t}function Aee(e){let t=e.replace(dee,Eee);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Eee(e){return"-"+e.toLowerCase()}const tI={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Nee={};function nI(e,t){const i=t||Nee,l=typeof i.includeImageAlt=="boolean"?i.includeImageAlt:!0,h=typeof i.includeHtml=="boolean"?i.includeHtml:!0;return g9(e,l,h)}function g9(e,t,i){if(Lee(e)){if("value"in e)return e.type==="html"&&!i?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return m9(e.children,t,i)}return Array.isArray(e)?m9(e,t,i):""}function m9(e,t,i){const l=[];let h=-1;for(;++h<e.length;)l[h]=g9(e[h],t,i);return l.join("")}function Lee(e){return!!(e&&typeof e=="object")}const y9=document.createElement("i");function iI(e){const t="&"+e+";";y9.innerHTML=t;const i=y9.textContent;return i.charCodeAt(i.length-1)===59&&e!=="semi"||i===t?!1:i}function Ca(e,t,i,l){const h=e.length;let f=0,_;if(t<0?t=-t>h?0:h+t:t=t>h?h:t,i=i>0?i:0,l.length<1e4)_=Array.from(l),_.unshift(t,i),e.splice(..._);else for(i&&e.splice(t,i);f<l.length;)_=l.slice(f,f+1e4),_.unshift(t,0),e.splice(..._),f+=1e4,t+=1e4}function qa(e,t){return e.length>0?(Ca(e,e.length,0,t),e):t}const _9={}.hasOwnProperty;function v9(e){const t={};let i=-1;for(;++i<e.length;)zee(t,e[i]);return t}function zee(e,t){let i;for(i in t){const h=(_9.call(e,i)?e[i]:void 0)||(e[i]={}),f=t[i];let _;if(f)for(_ in f){_9.call(h,_)||(h[_]=[]);const o=f[_];kee(h[_],Array.isArray(o)?o:o?[o]:[])}}}function kee(e,t){let i=-1;const l=[];for(;++i<t.length;)(t[i].add==="after"?e:l).push(t[i]);Ca(e,0,0,l)}function x9(e,t){const i=Number.parseInt(e,t);return i<9||i===11||i>13&&i<32||i>126&&i<160||i>55295&&i<57344||i>64975&&i<65008||(i&65535)===65535||(i&65535)===65534||i>1114111?"�":String.fromCodePoint(i)}function Ml(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const $s=qu(/[A-Za-z]/),zs=qu(/[\dA-Za-z]/),Oee=qu(/[#-'*+\--9=?A-Z^-~]/);function mx(e){return e!==null&&(e<32||e===127)}const rI=qu(/\d/),jee=qu(/[\dA-Fa-f]/),Pee=qu(/[!-/:-@[-`{-~]/);function Hi(e){return e!==null&&e<-2}function io(e){return e!==null&&(e<0||e===32)}function Cr(e){return e===-2||e===-1||e===32}const yx=qu(/\p{P}|\p{S}/u),gd=qu(/\s/);function qu(e){return t;function t(i){return i!==null&&i>-1&&e.test(String.fromCharCode(i))}}function mp(e){const t=[];let i=-1,l=0,h=0;for(;++i<e.length;){const f=e.charCodeAt(i);let _="";if(f===37&&zs(e.charCodeAt(i+1))&&zs(e.charCodeAt(i+2)))h=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(_=String.fromCharCode(f));else if(f>55295&&f<57344){const o=e.charCodeAt(i+1);f<56320&&o>56319&&o<57344?(_=String.fromCharCode(f,o),h=1):_="�"}else _=String.fromCharCode(f);_&&(t.push(e.slice(l,i),encodeURIComponent(_)),l=i+h+1,_=""),h&&(i+=h,h=0)}return t.join("")+e.slice(l)}function Fr(e,t,i,l){const h=l?l-1:Number.POSITIVE_INFINITY;let f=0;return _;function _(I){return Cr(I)?(e.enter(i),o(I)):t(I)}function o(I){return Cr(I)&&f++<h?(e.consume(I),o):(e.exit(i),t(I))}}const Ree={tokenize:Fee};function Fee(e){const t=e.attempt(this.parser.constructs.contentInitial,l,h);let i;return t;function l(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Fr(e,t,"linePrefix")}function h(o){return e.enter("paragraph"),f(o)}function f(o){const I=e.enter("chunkText",{contentType:"text",previous:i});return i&&(i.next=I),i=I,_(o)}function _(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return Hi(o)?(e.consume(o),e.exit("chunkText"),f):(e.consume(o),_)}}const Bee={tokenize:Uee},w9={tokenize:Vee};function Uee(e){const t=this,i=[];let l=0,h,f,_;return o;function o(W){if(l<i.length){const se=i[l];return t.containerState=se[1],e.attempt(se[0].continuation,I,D)(W)}return D(W)}function I(W){if(l++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,h&&Z();const se=t.events.length;let ve=se,ue;for(;ve--;)if(t.events[ve][0]==="exit"&&t.events[ve][1].type==="chunkFlow"){ue=t.events[ve][1].end;break}oe(l);let Be=se;for(;Be<t.events.length;)t.events[Be][1].end={...ue},Be++;return Ca(t.events,ve+1,0,t.events.slice(se)),t.events.length=Be,D(W)}return o(W)}function D(W){if(l===i.length){if(!h)return F(W);if(h.currentConstruct&&h.currentConstruct.concrete)return J(W);t.interrupt=!!(h.currentConstruct&&!h._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(w9,O,P)(W)}function O(W){return h&&Z(),oe(l),F(W)}function P(W){return t.parser.lazy[t.now().line]=l!==i.length,_=t.now().offset,J(W)}function F(W){return t.containerState={},e.attempt(w9,Q,J)(W)}function Q(W){return l++,i.push([t.currentConstruct,t.containerState]),F(W)}function J(W){if(W===null){h&&Z(),oe(0),e.consume(W);return}return h=h||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:h,contentType:"flow",previous:f}),ae(W)}function ae(W){if(W===null){Ne(e.exit("chunkFlow"),!0),oe(0),e.consume(W);return}return Hi(W)?(e.consume(W),Ne(e.exit("chunkFlow")),l=0,t.interrupt=void 0,o):(e.consume(W),ae)}function Ne(W,se){const ve=t.sliceStream(W);if(se&&ve.push(null),W.previous=f,f&&(f.next=W),f=W,h.defineSkip(W.start),h.write(ve),t.parser.lazy[W.start.line]){let ue=h.events.length;for(;ue--;)if(h.events[ue][1].start.offset<_&&(!h.events[ue][1].end||h.events[ue][1].end.offset>_))return;const Be=t.events.length;let $e=Be,Ue,Fe;for(;$e--;)if(t.events[$e][0]==="exit"&&t.events[$e][1].type==="chunkFlow"){if(Ue){Fe=t.events[$e][1].end;break}Ue=!0}for(oe(l),ue=Be;ue<t.events.length;)t.events[ue][1].end={...Fe},ue++;Ca(t.events,$e+1,0,t.events.slice(Be)),t.events.length=ue}}function oe(W){let se=i.length;for(;se-- >W;){const ve=i[se];t.containerState=ve[1],ve[0].exit.call(t,e)}i.length=W}function Z(){h.write([null]),f=void 0,h=void 0,t.containerState._closeFlow=void 0}}function Vee(e,t,i){return Fr(e,e.attempt(this.parser.constructs.document,t,i),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function yp(e){if(e===null||io(e)||gd(e))return 1;if(yx(e))return 2}function _x(e,t,i){const l=[];let h=-1;for(;++h<e.length;){const f=e[h].resolveAll;f&&!l.includes(f)&&(t=f(t,i),l.push(f))}return t}const oI={name:"attention",resolveAll:Hee,tokenize:Qee};function Hee(e,t){let i=-1,l,h,f,_,o,I,D,O;for(;++i<e.length;)if(e[i][0]==="enter"&&e[i][1].type==="attentionSequence"&&e[i][1]._close){for(l=i;l--;)if(e[l][0]==="exit"&&e[l][1].type==="attentionSequence"&&e[l][1]._open&&t.sliceSerialize(e[l][1]).charCodeAt(0)===t.sliceSerialize(e[i][1]).charCodeAt(0)){if((e[l][1]._close||e[i][1]._open)&&(e[i][1].end.offset-e[i][1].start.offset)%3&&!((e[l][1].end.offset-e[l][1].start.offset+e[i][1].end.offset-e[i][1].start.offset)%3))continue;I=e[l][1].end.offset-e[l][1].start.offset>1&&e[i][1].end.offset-e[i][1].start.offset>1?2:1;const P={...e[l][1].end},F={...e[i][1].start};b9(P,-I),b9(F,I),_={type:I>1?"strongSequence":"emphasisSequence",start:P,end:{...e[l][1].end}},o={type:I>1?"strongSequence":"emphasisSequence",start:{...e[i][1].start},end:F},f={type:I>1?"strongText":"emphasisText",start:{...e[l][1].end},end:{...e[i][1].start}},h={type:I>1?"strong":"emphasis",start:{..._.start},end:{...o.end}},e[l][1].end={..._.start},e[i][1].start={...o.end},D=[],e[l][1].end.offset-e[l][1].start.offset&&(D=qa(D,[["enter",e[l][1],t],["exit",e[l][1],t]])),D=qa(D,[["enter",h,t],["enter",_,t],["exit",_,t],["enter",f,t]]),D=qa(D,_x(t.parser.constructs.insideSpan.null,e.slice(l+1,i),t)),D=qa(D,[["exit",f,t],["enter",o,t],["exit",o,t],["exit",h,t]]),e[i][1].end.offset-e[i][1].start.offset?(O=2,D=qa(D,[["enter",e[i][1],t],["exit",e[i][1],t]])):O=0,Ca(e,l-1,i-l+3,D),i=l+D.length-O-2;break}}for(i=-1;++i<e.length;)e[i][1].type==="attentionSequence"&&(e[i][1].type="data");return e}function Qee(e,t){const i=this.parser.constructs.attentionMarkers.null,l=this.previous,h=yp(l);let f;return _;function _(I){return f=I,e.enter("attentionSequence"),o(I)}function o(I){if(I===f)return e.consume(I),o;const D=e.exit("attentionSequence"),O=yp(I),P=!O||O===2&&h||i.includes(I),F=!h||h===2&&O||i.includes(l);return D._open=!!(f===42?P:P&&(h||!F)),D._close=!!(f===42?F:F&&(O||!P)),t(I)}}function b9(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const $ee={name:"autolink",tokenize:Yee};function Yee(e,t,i){let l=0;return h;function h(Q){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(Q),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),f}function f(Q){return $s(Q)?(e.consume(Q),_):Q===64?i(Q):D(Q)}function _(Q){return Q===43||Q===45||Q===46||zs(Q)?(l=1,o(Q)):D(Q)}function o(Q){return Q===58?(e.consume(Q),l=0,I):(Q===43||Q===45||Q===46||zs(Q))&&l++<32?(e.consume(Q),o):(l=0,D(Q))}function I(Q){return Q===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(Q),e.exit("autolinkMarker"),e.exit("autolink"),t):Q===null||Q===32||Q===60||mx(Q)?i(Q):(e.consume(Q),I)}function D(Q){return Q===64?(e.consume(Q),O):Oee(Q)?(e.consume(Q),D):i(Q)}function O(Q){return zs(Q)?P(Q):i(Q)}function P(Q){return Q===46?(e.consume(Q),l=0,O):Q===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(Q),e.exit("autolinkMarker"),e.exit("autolink"),t):F(Q)}function F(Q){if((Q===45||zs(Q))&&l++<63){const J=Q===45?F:P;return e.consume(Q),J}return i(Q)}}const E1={partial:!0,tokenize:Gee};function Gee(e,t,i){return l;function l(f){return Cr(f)?Fr(e,h,"linePrefix")(f):h(f)}function h(f){return f===null||Hi(f)?t(f):i(f)}}const M9={continuation:{tokenize:Wee},exit:qee,name:"blockQuote",tokenize:Zee};function Zee(e,t,i){const l=this;return h;function h(_){if(_===62){const o=l.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(_),e.exit("blockQuoteMarker"),f}return i(_)}function f(_){return Cr(_)?(e.enter("blockQuotePrefixWhitespace"),e.consume(_),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(_))}}function Wee(e,t,i){const l=this;return h;function h(_){return Cr(_)?Fr(e,f,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):f(_)}function f(_){return e.attempt(M9,t,i)(_)}}function qee(e){e.exit("blockQuote")}const I9={name:"characterEscape",tokenize:Kee};function Kee(e,t,i){return l;function l(f){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(f),e.exit("escapeMarker"),h}function h(f){return Pee(f)?(e.enter("characterEscapeValue"),e.consume(f),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):i(f)}}const T9={name:"characterReference",tokenize:Xee};function Xee(e,t,i){const l=this;let h=0,f,_;return o;function o(P){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(P),e.exit("characterReferenceMarker"),I}function I(P){return P===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(P),e.exit("characterReferenceMarkerNumeric"),D):(e.enter("characterReferenceValue"),f=31,_=zs,O(P))}function D(P){return P===88||P===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(P),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),f=6,_=jee,O):(e.enter("characterReferenceValue"),f=7,_=rI,O(P))}function O(P){if(P===59&&h){const F=e.exit("characterReferenceValue");return _===zs&&!iI(l.sliceSerialize(F))?i(P):(e.enter("characterReferenceMarker"),e.consume(P),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return _(P)&&h++<f?(e.consume(P),O):i(P)}}const S9={partial:!0,tokenize:ete},C9={concrete:!0,name:"codeFenced",tokenize:Jee};function Jee(e,t,i){const l=this,h={partial:!0,tokenize:ve};let f=0,_=0,o;return I;function I(ue){return D(ue)}function D(ue){const Be=l.events[l.events.length-1];return f=Be&&Be[1].type==="linePrefix"?Be[2].sliceSerialize(Be[1],!0).length:0,o=ue,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),O(ue)}function O(ue){return ue===o?(_++,e.consume(ue),O):_<3?i(ue):(e.exit("codeFencedFenceSequence"),Cr(ue)?Fr(e,P,"whitespace")(ue):P(ue))}function P(ue){return ue===null||Hi(ue)?(e.exit("codeFencedFence"),l.interrupt?t(ue):e.check(S9,ae,se)(ue)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),F(ue))}function F(ue){return ue===null||Hi(ue)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),P(ue)):Cr(ue)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Fr(e,Q,"whitespace")(ue)):ue===96&&ue===o?i(ue):(e.consume(ue),F)}function Q(ue){return ue===null||Hi(ue)?P(ue):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),J(ue))}function J(ue){return ue===null||Hi(ue)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),P(ue)):ue===96&&ue===o?i(ue):(e.consume(ue),J)}function ae(ue){return e.attempt(h,se,Ne)(ue)}function Ne(ue){return e.enter("lineEnding"),e.consume(ue),e.exit("lineEnding"),oe}function oe(ue){return f>0&&Cr(ue)?Fr(e,Z,"linePrefix",f+1)(ue):Z(ue)}function Z(ue){return ue===null||Hi(ue)?e.check(S9,ae,se)(ue):(e.enter("codeFlowValue"),W(ue))}function W(ue){return ue===null||Hi(ue)?(e.exit("codeFlowValue"),Z(ue)):(e.consume(ue),W)}function se(ue){return e.exit("codeFenced"),t(ue)}function ve(ue,Be,$e){let Ue=0;return Fe;function Fe(_t){return ue.enter("lineEnding"),ue.consume(_t),ue.exit("lineEnding"),Ke}function Ke(_t){return ue.enter("codeFencedFence"),Cr(_t)?Fr(ue,ct,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_t):ct(_t)}function ct(_t){return _t===o?(ue.enter("codeFencedFenceSequence"),yt(_t)):$e(_t)}function yt(_t){return _t===o?(Ue++,ue.consume(_t),yt):Ue>=_?(ue.exit("codeFencedFenceSequence"),Cr(_t)?Fr(ue,Ht,"whitespace")(_t):Ht(_t)):$e(_t)}function Ht(_t){return _t===null||Hi(_t)?(ue.exit("codeFencedFence"),Be(_t)):$e(_t)}}}function ete(e,t,i){const l=this;return h;function h(_){return _===null?i(_):(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),f)}function f(_){return l.parser.lazy[l.now().line]?i(_):t(_)}}const sI={name:"codeIndented",tokenize:nte},tte={partial:!0,tokenize:ite};function nte(e,t,i){const l=this;return h;function h(D){return e.enter("codeIndented"),Fr(e,f,"linePrefix",4+1)(D)}function f(D){const O=l.events[l.events.length-1];return O&&O[1].type==="linePrefix"&&O[2].sliceSerialize(O[1],!0).length>=4?_(D):i(D)}function _(D){return D===null?I(D):Hi(D)?e.attempt(tte,_,I)(D):(e.enter("codeFlowValue"),o(D))}function o(D){return D===null||Hi(D)?(e.exit("codeFlowValue"),_(D)):(e.consume(D),o)}function I(D){return e.exit("codeIndented"),t(D)}}function ite(e,t,i){const l=this;return h;function h(_){return l.parser.lazy[l.now().line]?i(_):Hi(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),h):Fr(e,f,"linePrefix",4+1)(_)}function f(_){const o=l.events[l.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(_):Hi(_)?h(_):i(_)}}const rte={name:"codeText",previous:ste,resolve:ote,tokenize:ate};function ote(e){let t=e.length-4,i=3,l,h;if((e[i][1].type==="lineEnding"||e[i][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(l=i;++l<t;)if(e[l][1].type==="codeTextData"){e[i][1].type="codeTextPadding",e[t][1].type="codeTextPadding",i+=2,t-=2;break}}for(l=i-1,t++;++l<=t;)h===void 0?l!==t&&e[l][1].type!=="lineEnding"&&(h=l):(l===t||e[l][1].type==="lineEnding")&&(e[h][1].type="codeTextData",l!==h+2&&(e[h][1].end=e[l-1][1].end,e.splice(h+2,l-h-2),t-=l-h-2,l=h+2),h=void 0);return e}function ste(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ate(e,t,i){let l=0,h,f;return _;function _(P){return e.enter("codeText"),e.enter("codeTextSequence"),o(P)}function o(P){return P===96?(e.consume(P),l++,o):(e.exit("codeTextSequence"),I(P))}function I(P){return P===null?i(P):P===32?(e.enter("space"),e.consume(P),e.exit("space"),I):P===96?(f=e.enter("codeTextSequence"),h=0,O(P)):Hi(P)?(e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),I):(e.enter("codeTextData"),D(P))}function D(P){return P===null||P===32||P===96||Hi(P)?(e.exit("codeTextData"),I(P)):(e.consume(P),D)}function O(P){return P===96?(e.consume(P),h++,O):h===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(P)):(f.type="codeTextData",D(P))}}class lte{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,i){const l=i??Number.POSITIVE_INFINITY;return l<this.left.length?this.left.slice(t,l):t>this.left.length?this.right.slice(this.right.length-l+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-l+this.left.length).reverse())}splice(t,i,l){const h=i||0;this.setCursor(Math.trunc(t));const f=this.right.splice(this.right.length-h,Number.POSITIVE_INFINITY);return l&&N1(this.left,l),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),N1(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),N1(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const i=this.left.splice(t,Number.POSITIVE_INFINITY);N1(this.right,i.reverse())}else{const i=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);N1(this.left,i.reverse())}}}function N1(e,t){let i=0;if(t.length<1e4)e.push(...t);else for(;i<t.length;)e.push(...t.slice(i,i+1e4)),i+=1e4}function D9(e){const t={};let i=-1,l,h,f,_,o,I,D;const O=new lte(e);for(;++i<O.length;){for(;i in t;)i=t[i];if(l=O.get(i),i&&l[1].type==="chunkFlow"&&O.get(i-1)[1].type==="listItemPrefix"&&(I=l[1]._tokenizer.events,f=0,f<I.length&&I[f][1].type==="lineEndingBlank"&&(f+=2),f<I.length&&I[f][1].type==="content"))for(;++f<I.length&&I[f][1].type!=="content";)I[f][1].type==="chunkText"&&(I[f][1]._isInFirstContentOfListItem=!0,f++);if(l[0]==="enter")l[1].contentType&&(Object.assign(t,cte(O,i)),i=t[i],D=!0);else if(l[1]._container){for(f=i,h=void 0;f--;)if(_=O.get(f),_[1].type==="lineEnding"||_[1].type==="lineEndingBlank")_[0]==="enter"&&(h&&(O.get(h)[1].type="lineEndingBlank"),_[1].type="lineEnding",h=f);else if(!(_[1].type==="linePrefix"||_[1].type==="listItemIndent"))break;h&&(l[1].end={...O.get(h)[1].start},o=O.slice(h,i),o.unshift(l),O.splice(h,i-h+1,o))}}return Ca(e,0,Number.POSITIVE_INFINITY,O.slice(0)),!D}function cte(e,t){const i=e.get(t)[1],l=e.get(t)[2];let h=t-1;const f=[];let _=i._tokenizer;_||(_=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(_._contentTypeTextTrailing=!0));const o=_.events,I=[],D={};let O,P,F=-1,Q=i,J=0,ae=0;const Ne=[ae];for(;Q;){for(;e.get(++h)[1]!==Q;);f.push(h),Q._tokenizer||(O=l.sliceStream(Q),Q.next||O.push(null),P&&_.defineSkip(Q.start),Q._isInFirstContentOfListItem&&(_._gfmTasklistFirstContentOfListItem=!0),_.write(O),Q._isInFirstContentOfListItem&&(_._gfmTasklistFirstContentOfListItem=void 0)),P=Q,Q=Q.next}for(Q=i;++F<o.length;)o[F][0]==="exit"&&o[F-1][0]==="enter"&&o[F][1].type===o[F-1][1].type&&o[F][1].start.line!==o[F][1].end.line&&(ae=F+1,Ne.push(ae),Q._tokenizer=void 0,Q.previous=void 0,Q=Q.next);for(_.events=[],Q?(Q._tokenizer=void 0,Q.previous=void 0):Ne.pop(),F=Ne.length;F--;){const oe=o.slice(Ne[F],Ne[F+1]),Z=f.pop();I.push([Z,Z+oe.length-1]),e.splice(Z,2,oe)}for(I.reverse(),F=-1;++F<I.length;)D[J+I[F][0]]=J+I[F][1],J+=I[F][1]-I[F][0]-1;return D}const ute={resolve:dte,tokenize:fte},hte={partial:!0,tokenize:pte};function dte(e){return D9(e),e}function fte(e,t){let i;return l;function l(o){return e.enter("content"),i=e.enter("chunkContent",{contentType:"content"}),h(o)}function h(o){return o===null?f(o):Hi(o)?e.check(hte,_,f)(o):(e.consume(o),h)}function f(o){return e.exit("chunkContent"),e.exit("content"),t(o)}function _(o){return e.consume(o),e.exit("chunkContent"),i.next=e.enter("chunkContent",{contentType:"content",previous:i}),i=i.next,h}}function pte(e,t,i){const l=this;return h;function h(_){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),Fr(e,f,"linePrefix")}function f(_){if(_===null||Hi(_))return i(_);const o=l.events[l.events.length-1];return!l.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(_):e.interrupt(l.parser.constructs.flow,i,t)(_)}}function A9(e,t,i,l,h,f,_,o,I){const D=I||Number.POSITIVE_INFINITY;let O=0;return P;function P(oe){return oe===60?(e.enter(l),e.enter(h),e.enter(f),e.consume(oe),e.exit(f),F):oe===null||oe===32||oe===41||mx(oe)?i(oe):(e.enter(l),e.enter(_),e.enter(o),e.enter("chunkString",{contentType:"string"}),ae(oe))}function F(oe){return oe===62?(e.enter(f),e.consume(oe),e.exit(f),e.exit(h),e.exit(l),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),Q(oe))}function Q(oe){return oe===62?(e.exit("chunkString"),e.exit(o),F(oe)):oe===null||oe===60||Hi(oe)?i(oe):(e.consume(oe),oe===92?J:Q)}function J(oe){return oe===60||oe===62||oe===92?(e.consume(oe),Q):Q(oe)}function ae(oe){return!O&&(oe===null||oe===41||io(oe))?(e.exit("chunkString"),e.exit(o),e.exit(_),e.exit(l),t(oe)):O<D&&oe===40?(e.consume(oe),O++,ae):oe===41?(e.consume(oe),O--,ae):oe===null||oe===32||oe===40||mx(oe)?i(oe):(e.consume(oe),oe===92?Ne:ae)}function Ne(oe){return oe===40||oe===41||oe===92?(e.consume(oe),ae):ae(oe)}}function E9(e,t,i,l,h,f){const _=this;let o=0,I;return D;function D(Q){return e.enter(l),e.enter(h),e.consume(Q),e.exit(h),e.enter(f),O}function O(Q){return o>999||Q===null||Q===91||Q===93&&!I||Q===94&&!o&&"_hiddenFootnoteSupport"in _.parser.constructs?i(Q):Q===93?(e.exit(f),e.enter(h),e.consume(Q),e.exit(h),e.exit(l),t):Hi(Q)?(e.enter("lineEnding"),e.consume(Q),e.exit("lineEnding"),O):(e.enter("chunkString",{contentType:"string"}),P(Q))}function P(Q){return Q===null||Q===91||Q===93||Hi(Q)||o++>999?(e.exit("chunkString"),O(Q)):(e.consume(Q),I||(I=!Cr(Q)),Q===92?F:P)}function F(Q){return Q===91||Q===92||Q===93?(e.consume(Q),o++,P):P(Q)}}function N9(e,t,i,l,h,f){let _;return o;function o(F){return F===34||F===39||F===40?(e.enter(l),e.enter(h),e.consume(F),e.exit(h),_=F===40?41:F,I):i(F)}function I(F){return F===_?(e.enter(h),e.consume(F),e.exit(h),e.exit(l),t):(e.enter(f),D(F))}function D(F){return F===_?(e.exit(f),I(_)):F===null?i(F):Hi(F)?(e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),Fr(e,D,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),O(F))}function O(F){return F===_||F===null||Hi(F)?(e.exit("chunkString"),D(F)):(e.consume(F),F===92?P:O)}function P(F){return F===_||F===92?(e.consume(F),O):O(F)}}function L1(e,t){let i;return l;function l(h){return Hi(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),i=!0,l):Cr(h)?Fr(e,l,i?"linePrefix":"lineSuffix")(h):t(h)}}const gte={name:"definition",tokenize:yte},mte={partial:!0,tokenize:_te};function yte(e,t,i){const l=this;let h;return f;function f(Q){return e.enter("definition"),_(Q)}function _(Q){return E9.call(l,e,o,i,"definitionLabel","definitionLabelMarker","definitionLabelString")(Q)}function o(Q){return h=Ml(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)),Q===58?(e.enter("definitionMarker"),e.consume(Q),e.exit("definitionMarker"),I):i(Q)}function I(Q){return io(Q)?L1(e,D)(Q):D(Q)}function D(Q){return A9(e,O,i,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Q)}function O(Q){return e.attempt(mte,P,P)(Q)}function P(Q){return Cr(Q)?Fr(e,F,"whitespace")(Q):F(Q)}function F(Q){return Q===null||Hi(Q)?(e.exit("definition"),l.parser.defined.push(h),t(Q)):i(Q)}}function _te(e,t,i){return l;function l(o){return io(o)?L1(e,h)(o):i(o)}function h(o){return N9(e,f,i,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function f(o){return Cr(o)?Fr(e,_,"whitespace")(o):_(o)}function _(o){return o===null||Hi(o)?t(o):i(o)}}const vte={name:"hardBreakEscape",tokenize:xte};function xte(e,t,i){return l;function l(f){return e.enter("hardBreakEscape"),e.consume(f),h}function h(f){return Hi(f)?(e.exit("hardBreakEscape"),t(f)):i(f)}}const wte={name:"headingAtx",resolve:bte,tokenize:Mte};function bte(e,t){let i=e.length-2,l=3,h,f;return e[l][1].type==="whitespace"&&(l+=2),i-2>l&&e[i][1].type==="whitespace"&&(i-=2),e[i][1].type==="atxHeadingSequence"&&(l===i-1||i-4>l&&e[i-2][1].type==="whitespace")&&(i-=l+1===i?2:4),i>l&&(h={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},f={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},Ca(e,l,i-l+1,[["enter",h,t],["enter",f,t],["exit",f,t],["exit",h,t]])),e}function Mte(e,t,i){let l=0;return h;function h(O){return e.enter("atxHeading"),f(O)}function f(O){return e.enter("atxHeadingSequence"),_(O)}function _(O){return O===35&&l++<6?(e.consume(O),_):O===null||io(O)?(e.exit("atxHeadingSequence"),o(O)):i(O)}function o(O){return O===35?(e.enter("atxHeadingSequence"),I(O)):O===null||Hi(O)?(e.exit("atxHeading"),t(O)):Cr(O)?Fr(e,o,"whitespace")(O):(e.enter("atxHeadingText"),D(O))}function I(O){return O===35?(e.consume(O),I):(e.exit("atxHeadingSequence"),o(O))}function D(O){return O===null||O===35||io(O)?(e.exit("atxHeadingText"),o(O)):(e.consume(O),D)}}const Ite=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],L9=["pre","script","style","textarea"],Tte={concrete:!0,name:"htmlFlow",resolveTo:Dte,tokenize:Ate},Ste={partial:!0,tokenize:Nte},Cte={partial:!0,tokenize:Ete};function Dte(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ate(e,t,i){const l=this;let h,f,_,o,I;return D;function D(L){return O(L)}function O(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),P}function P(L){return L===33?(e.consume(L),F):L===47?(e.consume(L),f=!0,ae):L===63?(e.consume(L),h=3,l.interrupt?t:H):$s(L)?(e.consume(L),_=String.fromCharCode(L),Ne):i(L)}function F(L){return L===45?(e.consume(L),h=2,Q):L===91?(e.consume(L),h=5,o=0,J):$s(L)?(e.consume(L),h=4,l.interrupt?t:H):i(L)}function Q(L){return L===45?(e.consume(L),l.interrupt?t:H):i(L)}function J(L){const $="CDATA[";return L===$.charCodeAt(o++)?(e.consume(L),o===$.length?l.interrupt?t:ct:J):i(L)}function ae(L){return $s(L)?(e.consume(L),_=String.fromCharCode(L),Ne):i(L)}function Ne(L){if(L===null||L===47||L===62||io(L)){const $=L===47,Y=_.toLowerCase();return!$&&!f&&L9.includes(Y)?(h=1,l.interrupt?t(L):ct(L)):Ite.includes(_.toLowerCase())?(h=6,$?(e.consume(L),oe):l.interrupt?t(L):ct(L)):(h=7,l.interrupt&&!l.parser.lazy[l.now().line]?i(L):f?Z(L):W(L))}return L===45||zs(L)?(e.consume(L),_+=String.fromCharCode(L),Ne):i(L)}function oe(L){return L===62?(e.consume(L),l.interrupt?t:ct):i(L)}function Z(L){return Cr(L)?(e.consume(L),Z):Fe(L)}function W(L){return L===47?(e.consume(L),Fe):L===58||L===95||$s(L)?(e.consume(L),se):Cr(L)?(e.consume(L),W):Fe(L)}function se(L){return L===45||L===46||L===58||L===95||zs(L)?(e.consume(L),se):ve(L)}function ve(L){return L===61?(e.consume(L),ue):Cr(L)?(e.consume(L),ve):W(L)}function ue(L){return L===null||L===60||L===61||L===62||L===96?i(L):L===34||L===39?(e.consume(L),I=L,Be):Cr(L)?(e.consume(L),ue):$e(L)}function Be(L){return L===I?(e.consume(L),I=null,Ue):L===null||Hi(L)?i(L):(e.consume(L),Be)}function $e(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||io(L)?ve(L):(e.consume(L),$e)}function Ue(L){return L===47||L===62||Cr(L)?W(L):i(L)}function Fe(L){return L===62?(e.consume(L),Ke):i(L)}function Ke(L){return L===null||Hi(L)?ct(L):Cr(L)?(e.consume(L),Ke):i(L)}function ct(L){return L===45&&h===2?(e.consume(L),wt):L===60&&h===1?(e.consume(L),Ft):L===62&&h===4?(e.consume(L),le):L===63&&h===3?(e.consume(L),H):L===93&&h===5?(e.consume(L),Rt):Hi(L)&&(h===6||h===7)?(e.exit("htmlFlowData"),e.check(Ste,T,yt)(L)):L===null||Hi(L)?(e.exit("htmlFlowData"),yt(L)):(e.consume(L),ct)}function yt(L){return e.check(Cte,Ht,T)(L)}function Ht(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),_t}function _t(L){return L===null||Hi(L)?yt(L):(e.enter("htmlFlowData"),ct(L))}function wt(L){return L===45?(e.consume(L),H):ct(L)}function Ft(L){return L===47?(e.consume(L),_="",gt):ct(L)}function gt(L){if(L===62){const $=_.toLowerCase();return L9.includes($)?(e.consume(L),le):ct(L)}return $s(L)&&_.length<8?(e.consume(L),_+=String.fromCharCode(L),gt):ct(L)}function Rt(L){return L===93?(e.consume(L),H):ct(L)}function H(L){return L===62?(e.consume(L),le):L===45&&h===2?(e.consume(L),H):ct(L)}function le(L){return L===null||Hi(L)?(e.exit("htmlFlowData"),T(L)):(e.consume(L),le)}function T(L){return e.exit("htmlFlow"),t(L)}}function Ete(e,t,i){const l=this;return h;function h(_){return Hi(_)?(e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),f):i(_)}function f(_){return l.parser.lazy[l.now().line]?i(_):t(_)}}function Nte(e,t,i){return l;function l(h){return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),e.attempt(E1,t,i)}}const Lte={name:"htmlText",tokenize:zte};function zte(e,t,i){const l=this;let h,f,_;return o;function o(H){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(H),I}function I(H){return H===33?(e.consume(H),D):H===47?(e.consume(H),ve):H===63?(e.consume(H),W):$s(H)?(e.consume(H),$e):i(H)}function D(H){return H===45?(e.consume(H),O):H===91?(e.consume(H),f=0,J):$s(H)?(e.consume(H),Z):i(H)}function O(H){return H===45?(e.consume(H),Q):i(H)}function P(H){return H===null?i(H):H===45?(e.consume(H),F):Hi(H)?(_=P,Ft(H)):(e.consume(H),P)}function F(H){return H===45?(e.consume(H),Q):P(H)}function Q(H){return H===62?wt(H):H===45?F(H):P(H)}function J(H){const le="CDATA[";return H===le.charCodeAt(f++)?(e.consume(H),f===le.length?ae:J):i(H)}function ae(H){return H===null?i(H):H===93?(e.consume(H),Ne):Hi(H)?(_=ae,Ft(H)):(e.consume(H),ae)}function Ne(H){return H===93?(e.consume(H),oe):ae(H)}function oe(H){return H===62?wt(H):H===93?(e.consume(H),oe):ae(H)}function Z(H){return H===null||H===62?wt(H):Hi(H)?(_=Z,Ft(H)):(e.consume(H),Z)}function W(H){return H===null?i(H):H===63?(e.consume(H),se):Hi(H)?(_=W,Ft(H)):(e.consume(H),W)}function se(H){return H===62?wt(H):W(H)}function ve(H){return $s(H)?(e.consume(H),ue):i(H)}function ue(H){return H===45||zs(H)?(e.consume(H),ue):Be(H)}function Be(H){return Hi(H)?(_=Be,Ft(H)):Cr(H)?(e.consume(H),Be):wt(H)}function $e(H){return H===45||zs(H)?(e.consume(H),$e):H===47||H===62||io(H)?Ue(H):i(H)}function Ue(H){return H===47?(e.consume(H),wt):H===58||H===95||$s(H)?(e.consume(H),Fe):Hi(H)?(_=Ue,Ft(H)):Cr(H)?(e.consume(H),Ue):wt(H)}function Fe(H){return H===45||H===46||H===58||H===95||zs(H)?(e.consume(H),Fe):Ke(H)}function Ke(H){return H===61?(e.consume(H),ct):Hi(H)?(_=Ke,Ft(H)):Cr(H)?(e.consume(H),Ke):Ue(H)}function ct(H){return H===null||H===60||H===61||H===62||H===96?i(H):H===34||H===39?(e.consume(H),h=H,yt):Hi(H)?(_=ct,Ft(H)):Cr(H)?(e.consume(H),ct):(e.consume(H),Ht)}function yt(H){return H===h?(e.consume(H),h=void 0,_t):H===null?i(H):Hi(H)?(_=yt,Ft(H)):(e.consume(H),yt)}function Ht(H){return H===null||H===34||H===39||H===60||H===61||H===96?i(H):H===47||H===62||io(H)?Ue(H):(e.consume(H),Ht)}function _t(H){return H===47||H===62||io(H)?Ue(H):i(H)}function wt(H){return H===62?(e.consume(H),e.exit("htmlTextData"),e.exit("htmlText"),t):i(H)}function Ft(H){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),gt}function gt(H){return Cr(H)?Fr(e,Rt,"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):Rt(H)}function Rt(H){return e.enter("htmlTextData"),_(H)}}const aI={name:"labelEnd",resolveAll:Pte,resolveTo:Rte,tokenize:Fte},kte={tokenize:Bte},Ote={tokenize:Ute},jte={tokenize:Vte};function Pte(e){let t=-1;const i=[];for(;++t<e.length;){const l=e[t][1];if(i.push(e[t]),l.type==="labelImage"||l.type==="labelLink"||l.type==="labelEnd"){const h=l.type==="labelImage"?4:2;l.type="data",t+=h}}return e.length!==i.length&&Ca(e,0,e.length,i),e}function Rte(e,t){let i=e.length,l=0,h,f,_,o;for(;i--;)if(h=e[i][1],f){if(h.type==="link"||h.type==="labelLink"&&h._inactive)break;e[i][0]==="enter"&&h.type==="labelLink"&&(h._inactive=!0)}else if(_){if(e[i][0]==="enter"&&(h.type==="labelImage"||h.type==="labelLink")&&!h._balanced&&(f=i,h.type!=="labelLink")){l=2;break}}else h.type==="labelEnd"&&(_=i);const I={type:e[f][1].type==="labelLink"?"link":"image",start:{...e[f][1].start},end:{...e[e.length-1][1].end}},D={type:"label",start:{...e[f][1].start},end:{...e[_][1].end}},O={type:"labelText",start:{...e[f+l+2][1].end},end:{...e[_-2][1].start}};return o=[["enter",I,t],["enter",D,t]],o=qa(o,e.slice(f+1,f+l+3)),o=qa(o,[["enter",O,t]]),o=qa(o,_x(t.parser.constructs.insideSpan.null,e.slice(f+l+4,_-3),t)),o=qa(o,[["exit",O,t],e[_-2],e[_-1],["exit",D,t]]),o=qa(o,e.slice(_+1)),o=qa(o,[["exit",I,t]]),Ca(e,f,e.length,o),e}function Fte(e,t,i){const l=this;let h=l.events.length,f,_;for(;h--;)if((l.events[h][1].type==="labelImage"||l.events[h][1].type==="labelLink")&&!l.events[h][1]._balanced){f=l.events[h][1];break}return o;function o(F){return f?f._inactive?P(F):(_=l.parser.defined.includes(Ml(l.sliceSerialize({start:f.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(F),e.exit("labelMarker"),e.exit("labelEnd"),I):i(F)}function I(F){return F===40?e.attempt(kte,O,_?O:P)(F):F===91?e.attempt(Ote,O,_?D:P)(F):_?O(F):P(F)}function D(F){return e.attempt(jte,O,P)(F)}function O(F){return t(F)}function P(F){return f._balanced=!0,i(F)}}function Bte(e,t,i){return l;function l(P){return e.enter("resource"),e.enter("resourceMarker"),e.consume(P),e.exit("resourceMarker"),h}function h(P){return io(P)?L1(e,f)(P):f(P)}function f(P){return P===41?O(P):A9(e,_,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(P)}function _(P){return io(P)?L1(e,I)(P):O(P)}function o(P){return i(P)}function I(P){return P===34||P===39||P===40?N9(e,D,i,"resourceTitle","resourceTitleMarker","resourceTitleString")(P):O(P)}function D(P){return io(P)?L1(e,O)(P):O(P)}function O(P){return P===41?(e.enter("resourceMarker"),e.consume(P),e.exit("resourceMarker"),e.exit("resource"),t):i(P)}}function Ute(e,t,i){const l=this;return h;function h(o){return E9.call(l,e,f,_,"reference","referenceMarker","referenceString")(o)}function f(o){return l.parser.defined.includes(Ml(l.sliceSerialize(l.events[l.events.length-1][1]).slice(1,-1)))?t(o):i(o)}function _(o){return i(o)}}function Vte(e,t,i){return l;function l(f){return e.enter("reference"),e.enter("referenceMarker"),e.consume(f),e.exit("referenceMarker"),h}function h(f){return f===93?(e.enter("referenceMarker"),e.consume(f),e.exit("referenceMarker"),e.exit("reference"),t):i(f)}}const Hte={name:"labelStartImage",resolveAll:aI.resolveAll,tokenize:Qte};function Qte(e,t,i){const l=this;return h;function h(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),f}function f(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),_):i(o)}function _(o){return o===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(o):t(o)}}const $te={name:"labelStartLink",resolveAll:aI.resolveAll,tokenize:Yte};function Yte(e,t,i){const l=this;return h;function h(_){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(_),e.exit("labelMarker"),e.exit("labelLink"),f}function f(_){return _===94&&"_hiddenFootnoteSupport"in l.parser.constructs?i(_):t(_)}}const lI={name:"lineEnding",tokenize:Gte};function Gte(e,t){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Fr(e,t,"linePrefix")}}const vx={name:"thematicBreak",tokenize:Zte};function Zte(e,t,i){let l=0,h;return f;function f(D){return e.enter("thematicBreak"),_(D)}function _(D){return h=D,o(D)}function o(D){return D===h?(e.enter("thematicBreakSequence"),I(D)):l>=3&&(D===null||Hi(D))?(e.exit("thematicBreak"),t(D)):i(D)}function I(D){return D===h?(e.consume(D),l++,I):(e.exit("thematicBreakSequence"),Cr(D)?Fr(e,o,"whitespace")(D):o(D))}}const da={continuation:{tokenize:Xte},exit:ene,name:"list",tokenize:Kte},Wte={partial:!0,tokenize:tne},qte={partial:!0,tokenize:Jte};function Kte(e,t,i){const l=this,h=l.events[l.events.length-1];let f=h&&h[1].type==="linePrefix"?h[2].sliceSerialize(h[1],!0).length:0,_=0;return o;function o(Q){const J=l.containerState.type||(Q===42||Q===43||Q===45?"listUnordered":"listOrdered");if(J==="listUnordered"?!l.containerState.marker||Q===l.containerState.marker:rI(Q)){if(l.containerState.type||(l.containerState.type=J,e.enter(J,{_container:!0})),J==="listUnordered")return e.enter("listItemPrefix"),Q===42||Q===45?e.check(vx,i,D)(Q):D(Q);if(!l.interrupt||Q===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),I(Q)}return i(Q)}function I(Q){return rI(Q)&&++_<10?(e.consume(Q),I):(!l.interrupt||_<2)&&(l.containerState.marker?Q===l.containerState.marker:Q===41||Q===46)?(e.exit("listItemValue"),D(Q)):i(Q)}function D(Q){return e.enter("listItemMarker"),e.consume(Q),e.exit("listItemMarker"),l.containerState.marker=l.containerState.marker||Q,e.check(E1,l.interrupt?i:O,e.attempt(Wte,F,P))}function O(Q){return l.containerState.initialBlankLine=!0,f++,F(Q)}function P(Q){return Cr(Q)?(e.enter("listItemPrefixWhitespace"),e.consume(Q),e.exit("listItemPrefixWhitespace"),F):i(Q)}function F(Q){return l.containerState.size=f+l.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(Q)}}function Xte(e,t,i){const l=this;return l.containerState._closeFlow=void 0,e.check(E1,h,f);function h(o){return l.containerState.furtherBlankLines=l.containerState.furtherBlankLines||l.containerState.initialBlankLine,Fr(e,t,"listItemIndent",l.containerState.size+1)(o)}function f(o){return l.containerState.furtherBlankLines||!Cr(o)?(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,_(o)):(l.containerState.furtherBlankLines=void 0,l.containerState.initialBlankLine=void 0,e.attempt(qte,t,_)(o))}function _(o){return l.containerState._closeFlow=!0,l.interrupt=void 0,Fr(e,e.attempt(da,t,i),"linePrefix",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Jte(e,t,i){const l=this;return Fr(e,h,"listItemIndent",l.containerState.size+1);function h(f){const _=l.events[l.events.length-1];return _&&_[1].type==="listItemIndent"&&_[2].sliceSerialize(_[1],!0).length===l.containerState.size?t(f):i(f)}}function ene(e){e.exit(this.containerState.type)}function tne(e,t,i){const l=this;return Fr(e,h,"listItemPrefixWhitespace",l.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function h(f){const _=l.events[l.events.length-1];return!Cr(f)&&_&&_[1].type==="listItemPrefixWhitespace"?t(f):i(f)}}const z9={name:"setextUnderline",resolveTo:nne,tokenize:ine};function nne(e,t){let i=e.length,l,h,f;for(;i--;)if(e[i][0]==="enter"){if(e[i][1].type==="content"){l=i;break}e[i][1].type==="paragraph"&&(h=i)}else e[i][1].type==="content"&&e.splice(i,1),!f&&e[i][1].type==="definition"&&(f=i);const _={type:"setextHeading",start:{...e[l][1].start},end:{...e[e.length-1][1].end}};return e[h][1].type="setextHeadingText",f?(e.splice(h,0,["enter",_,t]),e.splice(f+1,0,["exit",e[l][1],t]),e[l][1].end={...e[f][1].end}):e[l][1]=_,e.push(["exit",_,t]),e}function ine(e,t,i){const l=this;let h;return f;function f(D){let O=l.events.length,P;for(;O--;)if(l.events[O][1].type!=="lineEnding"&&l.events[O][1].type!=="linePrefix"&&l.events[O][1].type!=="content"){P=l.events[O][1].type==="paragraph";break}return!l.parser.lazy[l.now().line]&&(l.interrupt||P)?(e.enter("setextHeadingLine"),h=D,_(D)):i(D)}function _(D){return e.enter("setextHeadingLineSequence"),o(D)}function o(D){return D===h?(e.consume(D),o):(e.exit("setextHeadingLineSequence"),Cr(D)?Fr(e,I,"lineSuffix")(D):I(D))}function I(D){return D===null||Hi(D)?(e.exit("setextHeadingLine"),t(D)):i(D)}}const rne={tokenize:one};function one(e){const t=this,i=e.attempt(E1,l,e.attempt(this.parser.constructs.flowInitial,h,Fr(e,e.attempt(this.parser.constructs.flow,h,e.attempt(ute,h)),"linePrefix")));return i;function l(f){if(f===null){e.consume(f);return}return e.enter("lineEndingBlank"),e.consume(f),e.exit("lineEndingBlank"),t.currentConstruct=void 0,i}function h(f){if(f===null){e.consume(f);return}return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),t.currentConstruct=void 0,i}}const sne={resolveAll:O9()},ane=k9("string"),lne=k9("text");function k9(e){return{resolveAll:O9(e==="text"?cne:void 0),tokenize:t};function t(i){const l=this,h=this.parser.constructs[e],f=i.attempt(h,_,o);return _;function _(O){return D(O)?f(O):o(O)}function o(O){if(O===null){i.consume(O);return}return i.enter("data"),i.consume(O),I}function I(O){return D(O)?(i.exit("data"),f(O)):(i.consume(O),I)}function D(O){if(O===null)return!0;const P=h[O];let F=-1;if(P)for(;++F<P.length;){const Q=P[F];if(!Q.previous||Q.previous.call(l,l.previous))return!0}return!1}}}function O9(e){return t;function t(i,l){let h=-1,f;for(;++h<=i.length;)f===void 0?i[h]&&i[h][1].type==="data"&&(f=h,h++):(!i[h]||i[h][1].type!=="data")&&(h!==f+2&&(i[f][1].end=i[h-1][1].end,i.splice(f+2,h-f-2),h=f+2),f=void 0);return e?e(i,l):i}}function cne(e,t){let i=0;for(;++i<=e.length;)if((i===e.length||e[i][1].type==="lineEnding")&&e[i-1][1].type==="data"){const l=e[i-1][1],h=t.sliceStream(l);let f=h.length,_=-1,o=0,I;for(;f--;){const D=h[f];if(typeof D=="string"){for(_=D.length;D.charCodeAt(_-1)===32;)o++,_--;if(_)break;_=-1}else if(D===-2)I=!0,o++;else if(D!==-1){f++;break}}if(t._contentTypeTextTrailing&&i===e.length&&(o=0),o){const D={type:i===e.length||I||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?_:l.start._bufferIndex+_,_index:l.start._index+f,line:l.end.line,column:l.end.column-o,offset:l.end.offset-o},end:{...l.end}};l.end={...D.start},l.start.offset===l.end.offset?Object.assign(l,D):(e.splice(i,0,["enter",D,t],["exit",D,t]),i+=2)}i++}return e}const une={[42]:da,[43]:da,[45]:da,[48]:da,[49]:da,[50]:da,[51]:da,[52]:da,[53]:da,[54]:da,[55]:da,[56]:da,[57]:da,[62]:M9},hne={[91]:gte},dne={[-2]:sI,[-1]:sI,[32]:sI},fne=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:hne,disable:{null:[]},document:une,flow:{[35]:wte,[42]:vx,[45]:[z9,vx],[60]:Tte,[61]:z9,[95]:vx,[96]:C9,[126]:C9},flowInitial:dne,insideSpan:{null:[oI,sne]},string:{[38]:T9,[92]:I9},text:{[-5]:lI,[-4]:lI,[-3]:lI,[33]:Hte,[38]:T9,[42]:oI,[60]:[$ee,Lte],[91]:$te,[92]:[vte,I9],[93]:aI,[95]:oI,[96]:rte}},Symbol.toStringTag,{value:"Module"}));function pne(e,t,i){let l={_bufferIndex:-1,_index:0,line:i&&i.line||1,column:i&&i.column||1,offset:i&&i.offset||0};const h={},f=[];let _=[],o=[];const I={attempt:Be(ve),check:Be(ue),consume:Z,enter:W,exit:se,interrupt:Be(ue,{interrupt:!0})},D={code:null,containerState:{},defineSkip:ae,events:[],now:J,parser:e,previous:null,sliceSerialize:F,sliceStream:Q,write:P};let O=t.tokenize.call(D,I);return t.resolveAll&&f.push(t),D;function P(Ke){return _=qa(_,Ke),Ne(),_[_.length-1]!==null?[]:($e(t,0),D.events=_x(f,D.events,D),D.events)}function F(Ke,ct){return mne(Q(Ke),ct)}function Q(Ke){return gne(_,Ke)}function J(){const{_bufferIndex:Ke,_index:ct,line:yt,column:Ht,offset:_t}=l;return{_bufferIndex:Ke,_index:ct,line:yt,column:Ht,offset:_t}}function ae(Ke){h[Ke.line]=Ke.column,Fe()}function Ne(){let Ke;for(;l._index<_.length;){const ct=_[l._index];if(typeof ct=="string")for(Ke=l._index,l._bufferIndex<0&&(l._bufferIndex=0);l._index===Ke&&l._bufferIndex<ct.length;)oe(ct.charCodeAt(l._bufferIndex));else oe(ct)}}function oe(Ke){O=O(Ke)}function Z(Ke){Hi(Ke)?(l.line++,l.column=1,l.offset+=Ke===-3?2:1,Fe()):Ke!==-1&&(l.column++,l.offset++),l._bufferIndex<0?l._index++:(l._bufferIndex++,l._bufferIndex===_[l._index].length&&(l._bufferIndex=-1,l._index++)),D.previous=Ke}function W(Ke,ct){const yt=ct||{};return yt.type=Ke,yt.start=J(),D.events.push(["enter",yt,D]),o.push(yt),yt}function se(Ke){const ct=o.pop();return ct.end=J(),D.events.push(["exit",ct,D]),ct}function ve(Ke,ct){$e(Ke,ct.from)}function ue(Ke,ct){ct.restore()}function Be(Ke,ct){return yt;function yt(Ht,_t,wt){let Ft,gt,Rt,H;return Array.isArray(Ht)?T(Ht):"tokenize"in Ht?T([Ht]):le(Ht);function le(q){return ce;function ce(pe){const fe=pe!==null&&q[pe],we=pe!==null&&q.null,He=[...Array.isArray(fe)?fe:fe?[fe]:[],...Array.isArray(we)?we:we?[we]:[]];return T(He)(pe)}}function T(q){return Ft=q,gt=0,q.length===0?wt:L(q[gt])}function L(q){return ce;function ce(pe){return H=Ue(),Rt=q,q.partial||(D.currentConstruct=q),q.name&&D.parser.constructs.disable.null.includes(q.name)?Y():q.tokenize.call(ct?Object.assign(Object.create(D),ct):D,I,$,Y)(pe)}}function $(q){return Ke(Rt,H),_t}function Y(q){return H.restore(),++gt<Ft.length?L(Ft[gt]):wt}}}function $e(Ke,ct){Ke.resolveAll&&!f.includes(Ke)&&f.push(Ke),Ke.resolve&&Ca(D.events,ct,D.events.length-ct,Ke.resolve(D.events.slice(ct),D)),Ke.resolveTo&&(D.events=Ke.resolveTo(D.events,D))}function Ue(){const Ke=J(),ct=D.previous,yt=D.currentConstruct,Ht=D.events.length,_t=Array.from(o);return{from:Ht,restore:wt};function wt(){l=Ke,D.previous=ct,D.currentConstruct=yt,D.events.length=Ht,o=_t,Fe()}}function Fe(){l.line in h&&l.column<2&&(l.column=h[l.line],l.offset+=h[l.line]-1)}}function gne(e,t){const i=t.start._index,l=t.start._bufferIndex,h=t.end._index,f=t.end._bufferIndex;let _;if(i===h)_=[e[i].slice(l,f)];else{if(_=e.slice(i,h),l>-1){const o=_[0];typeof o=="string"?_[0]=o.slice(l):_.shift()}f>0&&_.push(e[h].slice(0,f))}return _}function mne(e,t){let i=-1;const l=[];let h;for(;++i<e.length;){const f=e[i];let _;if(typeof f=="string")_=f;else switch(f){case-5:{_="\r";break}case-4:{_=`
46
46
  `;break}case-3:{_=`\r