@mapsindoors/map-template 1.87.4 → 1.87.9

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-5d0d43c3.mjs → GoogleMapsMap-33d3261a.mjs} +2 -2
  2. package/dist/{MapboxMap-63776ae9.mjs → MapboxMap-424a8535.mjs} +2 -2
  3. package/dist/{combo-box-item.entry-1cdf57ab.mjs → combo-box-item.entry-4f5e4b96.mjs} +2 -2
  4. package/dist/mapsindoors-react.es.js +1 -1
  5. package/dist/mapsindoors-react.umd.js +2 -2
  6. package/dist/mapsindoors-webcomponent.es.js +2 -2
  7. package/dist/mapsindoors-webcomponent.umd.js +2 -2
  8. package/dist/{mi-card_2.entry-ce56a28a.mjs → mi-card_2.entry-8e59bac3.mjs} +2 -2
  9. package/dist/{mi-chip.entry-85a67071.mjs → mi-chip.entry-4c85308b.mjs} +2 -2
  10. package/dist/{mi-column.entry-59352c93.mjs → mi-column.entry-66d1f58b.mjs} +2 -2
  11. package/dist/{mi-combo-box.entry-dac6312a.mjs → mi-combo-box.entry-7bc39e78.mjs} +2 -2
  12. package/dist/{mi-data-table.entry-737a49c4.mjs → mi-data-table.entry-9c8901d7.mjs} +2 -2
  13. package/dist/{mi-distance_2.entry-e2f3665c.mjs → mi-distance_2.entry-6d531e6e.mjs} +2 -2
  14. package/dist/{mi-dropdown-item.entry-793fa765.mjs → mi-dropdown-item.entry-75e5ca85.mjs} +2 -2
  15. package/dist/{mi-dropdown.entry-c2b6efce.mjs → mi-dropdown.entry-c2cae281.mjs} +2 -2
  16. package/dist/{mi-floor-selector.entry-3887a629.mjs → mi-floor-selector.entry-8d3a67a9.mjs} +2 -2
  17. package/dist/{mi-keyboard.entry-ed74f599.mjs → mi-keyboard.entry-11d4f6fa.mjs} +2 -2
  18. package/dist/{mi-list-item-category.entry-129a5854.mjs → mi-list-item-category.entry-90127767.mjs} +2 -2
  19. package/dist/{mi-list-item-location.entry-7c4fdf48.mjs → mi-list-item-location.entry-ef59f27c.mjs} +2 -2
  20. package/dist/{mi-list.entry-e39ec44b.mjs → mi-list.entry-ec613370.mjs} +2 -2
  21. package/dist/{mi-location-booking.entry-c0b78f63.mjs → mi-location-booking.entry-efd4293f.mjs} +2 -2
  22. package/dist/{mi-location-info.entry-a4be2c01.mjs → mi-location-info.entry-df2a6f90.mjs} +2 -2
  23. package/dist/{mi-map-googlemaps.entry-0750d245.mjs → mi-map-googlemaps.entry-8b1e9536.mjs} +2 -2
  24. package/dist/{mi-map-mapbox.entry-20c4506d.mjs → mi-map-mapbox.entry-069b44b7.mjs} +2 -2
  25. package/dist/{mi-metric-card.entry-f9e53ec6.mjs → mi-metric-card.entry-5c637a2d.mjs} +2 -2
  26. package/dist/{mi-my-position.entry-7257389d.mjs → mi-my-position.entry-080afc7e.mjs} +2 -2
  27. package/dist/{mi-notification.entry-5e56af76.mjs → mi-notification.entry-20f58836.mjs} +2 -2
  28. package/dist/{mi-route-instructions-heading.entry-fcab0bfd.mjs → mi-route-instructions-heading.entry-b1253300.mjs} +2 -2
  29. package/dist/{mi-route-instructions-maneuver-legacy.entry-4e6b17e8.mjs → mi-route-instructions-maneuver-legacy.entry-968d48e0.mjs} +2 -2
  30. package/dist/{mi-route-instructions-maneuver.entry-7f1404d5.mjs → mi-route-instructions-maneuver.entry-eb4e617b.mjs} +2 -2
  31. package/dist/{mi-route-instructions-step-legacy.entry-b099435d.mjs → mi-route-instructions-step-legacy.entry-80a1ceb2.mjs} +2 -2
  32. package/dist/{mi-route-instructions-step.entry-93769139.mjs → mi-route-instructions-step.entry-7791c7b8.mjs} +2 -2
  33. package/dist/{mi-route-instructions.entry-89c3f550.mjs → mi-route-instructions.entry-f0ff8c0f.mjs} +2 -2
  34. package/dist/{mi-scroll-buttons.entry-458051c6.mjs → mi-scroll-buttons.entry-79bf03f5.mjs} +2 -2
  35. package/dist/{mi-search.entry-40bc34f2.mjs → mi-search.entry-d5b1f921.mjs} +2 -2
  36. package/dist/{mi-share-sms.entry-b408ccb0.mjs → mi-share-sms.entry-bda4d9cf.mjs} +2 -2
  37. package/dist/{mi-step-switcher.entry-f2a6f6e5.mjs → mi-step-switcher.entry-0e16a7f8.mjs} +2 -2
  38. package/dist/{mi-tab-panel.entry-eee1a1f1.mjs → mi-tab-panel.entry-1e850a6c.mjs} +2 -2
  39. package/dist/{mi-tab.entry-c35e4511.mjs → mi-tab.entry-cf25c6d2.mjs} +2 -2
  40. package/dist/{mi-tabs.entry-cb24cf60.mjs → mi-tabs.entry-2e8b8901.mjs} +2 -2
  41. package/dist/{mi-time.entry-605d3a84.mjs → mi-time.entry-6deb25cc.mjs} +2 -2
  42. package/dist/{reactcomponent-6f007fba.mjs → reactcomponent-7da8ab64.mjs} +5 -5
  43. package/package.json +1 -1
@@ -40,14 +40,14 @@
40
40
  Error generating stack: `+_.message+`
41
41
  `+_.stack}return{value:e,source:i,stack:d,digest:null}}function TM(e,i,o){return{value:e,source:null,stack:o??null,digest:i??null}}function DM(e,i){try{console.error(i.value)}catch(o){setTimeout(function(){throw o})}}var _R=typeof WeakMap=="function"?WeakMap:Map;function $A(e,i,o){o=dc(-1,o),o.tag=3,o.payload={element:null};var u=i.value;return o.callback=function(){Wy||(Wy=!0,UM=u),DM(e,i)},o}function YA(e,i,o){o=dc(-1,o),o.tag=3;var u=e.type.getDerivedStateFromError;if(typeof u=="function"){var d=i.value;o.payload=function(){return u(d)},o.callback=function(){DM(e,i)}}var _=e.stateNode;return _!==null&&typeof _.componentDidCatch=="function"&&(o.callback=function(){DM(e,i),typeof u!="function"&&(du===null?du=new Set([this]):du.add(this));var b=i.stack;this.componentDidCatch(i.value,{componentStack:b!==null?b:""})}),o}function GA(e,i,o){var u=e.pingCache;if(u===null){u=e.pingCache=new _R;var d=new Set;u.set(i,d)}else d=u.get(i),d===void 0&&(d=new Set,u.set(i,d));d.has(o)||(d.add(o),e=LR.bind(null,e,i,o),i.then(e,e))}function ZA(e){do{var i;if((i=e.tag===13)&&(i=e.memoizedState,i=i!==null?i.dehydrated!==null:!0),i)return e;e=e.return}while(e!==null);return null}function WA(e,i,o,u,d){return e.mode&1?(e.flags|=65536,e.lanes=d,e):(e===i?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(i=dc(-1,1),i.tag=2,uu(o,i,1))),o.lanes|=1),e)}var vR=sc.ReactCurrentOwner,Ys=!1;function Es(e,i,o,u){i.child=e===null?bA(i,null,o,u):of(i,e.child,o,u)}function qA(e,i,o,u,d){o=o.render;var _=i.ref;return rf(i,d),u=vM(e,i,o,u,_,d),o=xM(),e!==null&&!Ys?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,fc(e,i,d)):(co&&o&&eM(i),i.flags|=1,Es(e,i,u,d),i.child)}function KA(e,i,o,u,d){if(e===null){var _=o.type;return typeof _=="function"&&!ZM(_)&&_.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(i.tag=15,i.type=_,XA(e,i,_,u,d)):(e=t_(o.type,null,u,i,i.mode,d),e.ref=i.ref,e.return=i,i.child=e)}if(_=e.child,!(e.lanes&d)){var b=_.memoizedProps;if(o=o.compare,o=o!==null?o:Yg,o(b,u)&&e.ref===i.ref)return fc(e,i,d)}return i.flags|=1,e=mu(_,u),e.ref=i.ref,e.return=i,i.child=e}function XA(e,i,o,u,d){if(e!==null){var _=e.memoizedProps;if(Yg(_,u)&&e.ref===i.ref)if(Ys=!1,i.pendingProps=u=_,(e.lanes&d)!==0)e.flags&131072&&(Ys=!0);else return i.lanes=e.lanes,fc(e,i,d)}return SM(e,i,o,u,d)}function JA(e,i,o){var u=i.pendingProps,d=u.children,_=e!==null?e.memoizedState:null;if(u.mode==="hidden")if(!(i.mode&1))i.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xr(cf,aa),aa|=o;else{if(!(o&1073741824))return e=_!==null?_.baseLanes|o:o,i.lanes=i.childLanes=1073741824,i.memoizedState={baseLanes:e,cachePool:null,transitions:null},i.updateQueue=null,Xr(cf,aa),aa|=e,null;i.memoizedState={baseLanes:0,cachePool:null,transitions:null},u=_!==null?_.baseLanes:o,Xr(cf,aa),aa|=u}else _!==null?(u=_.baseLanes|o,i.memoizedState=null):u=o,Xr(cf,aa),aa|=u;return Es(e,i,d,o),i.child}function eC(e,i){var o=i.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(i.flags|=512,i.flags|=2097152)}function SM(e,i,o,u,d){var _=$s(o)?yh:ms.current;return _=Xd(i,_),rf(i,d),o=vM(e,i,o,u,_,d),u=xM(),e!==null&&!Ys?(i.updateQueue=e.updateQueue,i.flags&=-2053,e.lanes&=~d,fc(e,i,d)):(co&&u&&eM(i),i.flags|=1,Es(e,i,o,d),i.child)}function tC(e,i,o,u,d){if($s(o)){var _=!0;Dy(i)}else _=!1;if(rf(i,d),i.stateNode===null)Hy(e,i),_A(i,o,u),dM(i,o,u,d),u=!0;else if(e===null){var b=i.stateNode,a=i.memoizedProps;b.props=a;var E=b.context,j=o.contextType;typeof j=="object"&&j!==null?j=Sa(j):(j=$s(o)?yh:ms.current,j=Xd(i,j));var V=o.getDerivedStateFromProps,ie=typeof V=="function"||typeof b.getSnapshotBeforeUpdate=="function";ie||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(a!==u||E!==j)&&vA(i,b,u,j),cu=!1;var G=i.memoizedState;b.state=G,Oy(i,u,b,d),E=i.memoizedState,a!==u||G!==E||Hs.current||cu?(typeof V=="function"&&(hM(i,o,V,u),E=i.memoizedState),(a=cu||yA(i,o,a,u,G,E,j))?(ie||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(i.flags|=4194308)):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=u,i.memoizedState=E),b.props=u,b.state=E,b.context=j,u=a):(typeof b.componentDidMount=="function"&&(i.flags|=4194308),u=!1)}else{b=i.stateNode,fA(e,i),a=i.memoizedProps,j=i.type===i.elementType?a:Za(i.type,a),b.props=j,ie=i.pendingProps,G=b.context,E=o.contextType,typeof E=="object"&&E!==null?E=Sa(E):(E=$s(o)?yh:ms.current,E=Xd(i,E));var le=o.getDerivedStateFromProps;(V=typeof le=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(a!==ie||G!==E)&&vA(i,b,u,E),cu=!1,G=i.memoizedState,b.state=G,Oy(i,u,b,d);var fe=i.memoizedState;a!==ie||G!==fe||Hs.current||cu?(typeof le=="function"&&(hM(i,o,le,u),fe=i.memoizedState),(j=cu||yA(i,o,j,u,G,fe,E)||!1)?(V||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(u,fe,E),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(u,fe,E)),typeof b.componentDidUpdate=="function"&&(i.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof b.componentDidUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=1024),i.memoizedProps=u,i.memoizedState=fe),b.props=u,b.state=fe,b.context=E,u=j):(typeof b.componentDidUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&G===e.memoizedState||(i.flags|=1024),u=!1)}return AM(e,i,o,u,_,d)}function AM(e,i,o,u,d,_){eC(e,i);var b=(i.flags&128)!==0;if(!u&&!b)return d&&oA(i,o,!1),fc(e,i,_);u=i.stateNode,vR.current=i;var a=b&&typeof o.getDerivedStateFromError!="function"?null:u.render();return i.flags|=1,e!==null&&b?(i.child=of(i,e.child,null,_),i.child=of(i,null,a,_)):Es(e,i,a,_),i.memoizedState=u.state,d&&oA(i,o,!0),i.child}function iC(e){var i=e.stateNode;i.pendingContext?nA(e,i.pendingContext,i.pendingContext!==i.context):i.context&&nA(e,i.context,!1),fM(e,i.containerInfo)}function nC(e,i,o,u,d){return tf(),rM(d),i.flags|=256,Es(e,i,o,u),i.child}var CM={dehydrated:null,treeContext:null,retryLane:0};function EM(e){return{baseLanes:e,cachePool:null,transitions:null}}function rC(e,i,o){var u=i.pendingProps,d=yo.current,_=!1,b=(i.flags&128)!==0,a;if((a=b)||(a=e!==null&&e.memoizedState===null?!1:(d&2)!==0),a?(_=!0,i.flags&=-129):(e===null||e.memoizedState!==null)&&(d|=1),Xr(yo,d&1),e===null)return nM(i),e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(i.mode&1?e.data==="$!"?i.lanes=8:i.lanes=1073741824:i.lanes=1,null):(b=u.children,e=u.fallback,_?(u=i.mode,_=i.child,b={mode:"hidden",children:b},!(u&1)&&_!==null?(_.childLanes=0,_.pendingProps=b):_=i_(b,u,0,null),e=Sh(e,u,o,null),_.return=i,e.return=i,_.sibling=e,i.child=_,i.child.memoizedState=EM(o),i.memoizedState=CM,e):NM(i,b));if(d=e.memoizedState,d!==null&&(a=d.dehydrated,a!==null))return xR(e,i,b,u,a,d,o);if(_){_=u.fallback,b=i.mode,d=e.child,a=d.sibling;var E={mode:"hidden",children:u.children};return!(b&1)&&i.child!==d?(u=i.child,u.childLanes=0,u.pendingProps=E,i.deletions=null):(u=mu(d,E),u.subtreeFlags=d.subtreeFlags&14680064),a!==null?_=mu(a,_):(_=Sh(_,b,o,null),_.flags|=2),_.return=i,u.return=i,u.sibling=_,i.child=u,u=_,_=i.child,b=e.child.memoizedState,b=b===null?EM(o):{baseLanes:b.baseLanes|o,cachePool:null,transitions:b.transitions},_.memoizedState=b,_.childLanes=e.childLanes&~o,i.memoizedState=CM,u}return _=e.child,e=_.sibling,u=mu(_,{mode:"visible",children:u.children}),!(i.mode&1)&&(u.lanes=o),u.return=i,u.sibling=null,e!==null&&(o=i.deletions,o===null?(i.deletions=[e],i.flags|=16):o.push(e)),i.child=u,i.memoizedState=null,u}function NM(e,i){return i=i_({mode:"visible",children:i},e.mode,0,null),i.return=e,e.child=i}function Qy(e,i,o,u){return u!==null&&rM(u),of(i,e.child,null,o),e=NM(i,i.pendingProps.children),e.flags|=2,i.memoizedState=null,e}function xR(e,i,o,u,d,_,b){if(o)return i.flags&256?(i.flags&=-257,u=TM(Error(Wi(422))),Qy(e,i,b,u)):i.memoizedState!==null?(i.child=e.child,i.flags|=128,null):(_=u.fallback,d=i.mode,u=i_({mode:"visible",children:u.children},d,0,null),_=Sh(_,d,b,null),_.flags|=2,u.return=i,_.return=i,u.sibling=_,i.child=u,i.mode&1&&of(i,e.child,null,b),i.child.memoizedState=EM(b),i.memoizedState=CM,_);if(!(i.mode&1))return Qy(e,i,b,null);if(d.data==="$!"){if(u=d.nextSibling&&d.nextSibling.dataset,u)var a=u.dgst;return u=a,_=Error(Wi(419)),u=TM(_,u,void 0),Qy(e,i,b,u)}if(a=(b&e.childLanes)!==0,Ys||a){if(u=qo,u!==null){switch(b&-b){case 4:d=2;break;case 16:d=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:d=32;break;case 536870912:d=268435456;break;default:d=0}d=d&(u.suspendedLanes|b)?0:d,d!==0&&d!==_.retryLane&&(_.retryLane=d,hc(e,d),Ka(u,e,d,-1))}return GM(),u=TM(Error(Wi(421))),Qy(e,i,b,u)}return d.data==="$?"?(i.flags|=128,i.child=e.child,i=zR.bind(null,e),d._reactRetry=i,null):(e=_.treeContext,sa=ou(d.nextSibling),oa=i,co=!0,Ga=null,e!==null&&(Ta[Da++]=cc,Ta[Da++]=uc,Ta[Da++]=_h,cc=e.id,uc=e.overflow,_h=i),i=NM(i,u.children),i.flags|=4096,i)}function oC(e,i,o){e.lanes|=i;var u=e.alternate;u!==null&&(u.lanes|=i),lM(e.return,i,o)}function LM(e,i,o,u,d){var _=e.memoizedState;_===null?e.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d}:(_.isBackwards=i,_.rendering=null,_.renderingStartTime=0,_.last=u,_.tail=o,_.tailMode=d)}function sC(e,i,o){var u=i.pendingProps,d=u.revealOrder,_=u.tail;if(Es(e,i,u.children,o),u=yo.current,u&2)u=u&1|2,i.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=i.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&oC(e,o,i);else if(e.tag===19)oC(e,o,i);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===i)break e;for(;e.sibling===null;){if(e.return===null||e.return===i)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}u&=1}if(Xr(yo,u),!(i.mode&1))i.memoizedState=null;else switch(d){case"forwards":for(o=i.child,d=null;o!==null;)e=o.alternate,e!==null&&Py(e)===null&&(d=o),o=o.sibling;o=d,o===null?(d=i.child,i.child=null):(d=o.sibling,o.sibling=null),LM(i,!1,d,o,_);break;case"backwards":for(o=null,d=i.child,i.child=null;d!==null;){if(e=d.alternate,e!==null&&Py(e)===null){i.child=d;break}e=d.sibling,d.sibling=o,o=d,d=e}LM(i,!0,o,null,_);break;case"together":LM(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Hy(e,i){!(i.mode&1)&&e!==null&&(e.alternate=null,i.alternate=null,i.flags|=2)}function fc(e,i,o){if(e!==null&&(i.dependencies=e.dependencies),Mh|=i.lanes,!(o&i.childLanes))return null;if(e!==null&&i.child!==e.child)throw Error(Wi(153));if(i.child!==null){for(e=i.child,o=mu(e,e.pendingProps),i.child=o,o.return=i;e.sibling!==null;)e=e.sibling,o=o.sibling=mu(e,e.pendingProps),o.return=i;o.sibling=null}return i.child}function wR(e,i,o){switch(i.tag){case 3:iC(i),tf();break;case 5:MA(i);break;case 1:$s(i.type)&&Dy(i);break;case 4:fM(i,i.stateNode.containerInfo);break;case 10:var u=i.type._context,d=i.memoizedProps.value;Xr(Ny,u._currentValue),u._currentValue=d;break;case 13:if(u=i.memoizedState,u!==null)return u.dehydrated!==null?(Xr(yo,yo.current&1),i.flags|=128,null):o&i.child.childLanes?rC(e,i,o):(Xr(yo,yo.current&1),e=fc(e,i,o),e!==null?e.sibling:null);Xr(yo,yo.current&1);break;case 19:if(u=(o&i.childLanes)!==0,e.flags&128){if(u)return sC(e,i,o);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),Xr(yo,yo.current),u)break;return null;case 22:case 23:return i.lanes=0,JA(e,i,o)}return fc(e,i,o)}var aC,zM,lC,cC;aC=function(e,i){for(var o=i.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},zM=function(){},lC=function(e,i,o,u){var d=e.memoizedProps;if(d!==u){e=i.stateNode,wh(_l.current);var _=null;switch(o){case"input":d=lb(e,d),u=lb(e,u),_=[];break;case"select":d=mo({},d,{value:void 0}),u=mo({},u,{value:void 0}),_=[];break;case"textarea":d=hb(e,d),u=hb(e,u),_=[];break;default:typeof d.onClick!="function"&&typeof u.onClick=="function"&&(e.onclick=My)}fb(o,u);var b;o=null;for(j in d)if(!u.hasOwnProperty(j)&&d.hasOwnProperty(j)&&d[j]!=null)if(j==="style"){var a=d[j];for(b in a)a.hasOwnProperty(b)&&(o||(o={}),o[b]="")}else j!=="dangerouslySetInnerHTML"&&j!=="children"&&j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&j!=="autoFocus"&&(Tg.hasOwnProperty(j)?_||(_=[]):(_=_||[]).push(j,null));for(j in u){var E=u[j];if(a=d!=null?d[j]:void 0,u.hasOwnProperty(j)&&E!==a&&(E!=null||a!=null))if(j==="style")if(a){for(b in a)!a.hasOwnProperty(b)||E&&E.hasOwnProperty(b)||(o||(o={}),o[b]="");for(b in E)E.hasOwnProperty(b)&&a[b]!==E[b]&&(o||(o={}),o[b]=E[b])}else o||(_||(_=[]),_.push(j,o)),o=E;else j==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,a=a?a.__html:void 0,E!=null&&a!==E&&(_=_||[]).push(j,E)):j==="children"?typeof E!="string"&&typeof E!="number"||(_=_||[]).push(j,""+E):j!=="suppressContentEditableWarning"&&j!=="suppressHydrationWarning"&&(Tg.hasOwnProperty(j)?(E!=null&&j==="onScroll"&&ro("scroll",e),_||a===E||(_=[])):(_=_||[]).push(j,E))}o&&(_=_||[]).push("style",o);var j=_;(i.updateQueue=j)&&(i.flags|=4)}},cC=function(e,i,o,u){o!==u&&(i.flags|=4)};function am(e,i){if(!co)switch(e.tailMode){case"hidden":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i||e.tail===null?e.tail=null:e.tail.sibling=null:u.sibling=null}}function _s(e){var i=e.alternate!==null&&e.alternate.child===e.child,o=0,u=0;if(i)for(var d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&14680064,u|=d.flags&14680064,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=u,e.childLanes=o,i}function bR(e,i,o){var u=i.pendingProps;switch(tM(i),i.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _s(i),null;case 1:return $s(i.type)&&Ty(),_s(i),null;case 3:return u=i.stateNode,sf(),oo(Hs),oo(ms),mM(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(e===null||e.child===null)&&(Ey(i)?i.flags|=4:e===null||e.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,Ga!==null&&(HM(Ga),Ga=null))),zM(e,i),_s(i),null;case 5:pM(i);var d=wh(im.current);if(o=i.type,e!==null&&i.stateNode!=null)lC(e,i,o,u,d),e.ref!==i.ref&&(i.flags|=512,i.flags|=2097152);else{if(!u){if(i.stateNode===null)throw Error(Wi(166));return _s(i),null}if(e=wh(_l.current),Ey(i)){u=i.stateNode,o=i.type;var _=i.memoizedProps;switch(u[yl]=i,u[Kg]=_,e=(i.mode&1)!==0,o){case"dialog":ro("cancel",u),ro("close",u);break;case"iframe":case"object":case"embed":ro("load",u);break;case"video":case"audio":for(d=0;d<Zg.length;d++)ro(Zg[d],u);break;case"source":ro("error",u);break;case"img":case"image":case"link":ro("error",u),ro("load",u);break;case"details":ro("toggle",u);break;case"input":VD(u,_),ro("invalid",u);break;case"select":u._wrapperState={wasMultiple:!!_.multiple},ro("invalid",u);break;case"textarea":$D(u,_),ro("invalid",u)}fb(o,_),d=null;for(var b in _)if(_.hasOwnProperty(b)){var a=_[b];b==="children"?typeof a=="string"?u.textContent!==a&&(_.suppressHydrationWarning!==!0&&by(u.textContent,a,e),d=["children",a]):typeof a=="number"&&u.textContent!==""+a&&(_.suppressHydrationWarning!==!0&&by(u.textContent,a,e),d=["children",""+a]):Tg.hasOwnProperty(b)&&a!=null&&b==="onScroll"&&ro("scroll",u)}switch(o){case"input":J1(u),HD(u,_,!0);break;case"textarea":J1(u),GD(u);break;case"select":case"option":break;default:typeof _.onClick=="function"&&(u.onclick=My)}u=d,i.updateQueue=u,u!==null&&(i.flags|=4)}else{b=d.nodeType===9?d:d.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=ZD(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=b.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof u.is=="string"?e=b.createElement(o,{is:u.is}):(e=b.createElement(o),o==="select"&&(b=e,u.multiple?b.multiple=!0:u.size&&(b.size=u.size))):e=b.createElementNS(e,o),e[yl]=i,e[Kg]=u,aC(e,i,!1,!1),i.stateNode=e;e:{switch(b=pb(o,u),o){case"dialog":ro("cancel",e),ro("close",e),d=u;break;case"iframe":case"object":case"embed":ro("load",e),d=u;break;case"video":case"audio":for(d=0;d<Zg.length;d++)ro(Zg[d],e);d=u;break;case"source":ro("error",e),d=u;break;case"img":case"image":case"link":ro("error",e),ro("load",e),d=u;break;case"details":ro("toggle",e),d=u;break;case"input":VD(e,u),d=lb(e,u),ro("invalid",e);break;case"option":d=u;break;case"select":e._wrapperState={wasMultiple:!!u.multiple},d=mo({},u,{value:void 0}),ro("invalid",e);break;case"textarea":$D(e,u),d=hb(e,u),ro("invalid",e);break;default:d=u}fb(o,d),a=d;for(_ in a)if(a.hasOwnProperty(_)){var E=a[_];_==="style"?KD(e,E):_==="dangerouslySetInnerHTML"?(E=E?E.__html:void 0,E!=null&&WD(e,E)):_==="children"?typeof E=="string"?(o!=="textarea"||E!=="")&&Cg(e,E):typeof E=="number"&&Cg(e,""+E):_!=="suppressContentEditableWarning"&&_!=="suppressHydrationWarning"&&_!=="autoFocus"&&(Tg.hasOwnProperty(_)?E!=null&&_==="onScroll"&&ro("scroll",e):E!=null&&Kw(e,_,E,b))}switch(o){case"input":J1(e),HD(e,u,!1);break;case"textarea":J1(e),GD(e);break;case"option":u.value!=null&&e.setAttribute("value",""+Xc(u.value));break;case"select":e.multiple=!!u.multiple,_=u.value,_!=null?Fd(e,!!u.multiple,_,!1):u.defaultValue!=null&&Fd(e,!!u.multiple,u.defaultValue,!0);break;default:typeof d.onClick=="function"&&(e.onclick=My)}switch(o){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}}u&&(i.flags|=4)}i.ref!==null&&(i.flags|=512,i.flags|=2097152)}return _s(i),null;case 6:if(e&&i.stateNode!=null)cC(e,i,e.memoizedProps,u);else{if(typeof u!="string"&&i.stateNode===null)throw Error(Wi(166));if(o=wh(im.current),wh(_l.current),Ey(i)){if(u=i.stateNode,o=i.memoizedProps,u[yl]=i,(_=u.nodeValue!==o)&&(e=oa,e!==null))switch(e.tag){case 3:by(u.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&by(u.nodeValue,o,(e.mode&1)!==0)}_&&(i.flags|=4)}else u=(o.nodeType===9?o:o.ownerDocument).createTextNode(u),u[yl]=i,i.stateNode=u}return _s(i),null;case 13:if(oo(yo),u=i.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(co&&sa!==null&&i.mode&1&&!(i.flags&128))hA(),tf(),i.flags|=98560,_=!1;else if(_=Ey(i),u!==null&&u.dehydrated!==null){if(e===null){if(!_)throw Error(Wi(318));if(_=i.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(Wi(317));_[yl]=i}else tf(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;_s(i),_=!1}else Ga!==null&&(HM(Ga),Ga=null),_=!0;if(!_)return i.flags&65536?i:null}return i.flags&128?(i.lanes=o,i):(u=u!==null,u!==(e!==null&&e.memoizedState!==null)&&u&&(i.child.flags|=8192,i.mode&1&&(e===null||yo.current&1?Ho===0&&(Ho=3):GM())),i.updateQueue!==null&&(i.flags|=4),_s(i),null);case 4:return sf(),zM(e,i),e===null&&Wg(i.stateNode.containerInfo),_s(i),null;case 10:return aM(i.type._context),_s(i),null;case 17:return $s(i.type)&&Ty(),_s(i),null;case 19:if(oo(yo),_=i.memoizedState,_===null)return _s(i),null;if(u=(i.flags&128)!==0,b=_.rendering,b===null)if(u)am(_,!1);else{if(Ho!==0||e!==null&&e.flags&128)for(e=i.child;e!==null;){if(b=Py(e),b!==null){for(i.flags|=128,am(_,!1),u=b.updateQueue,u!==null&&(i.updateQueue=u,i.flags|=4),i.subtreeFlags=0,u=o,o=i.child;o!==null;)_=o,e=u,_.flags&=14680066,b=_.alternate,b===null?(_.childLanes=0,_.lanes=e,_.child=null,_.subtreeFlags=0,_.memoizedProps=null,_.memoizedState=null,_.updateQueue=null,_.dependencies=null,_.stateNode=null):(_.childLanes=b.childLanes,_.lanes=b.lanes,_.child=b.child,_.subtreeFlags=0,_.deletions=null,_.memoizedProps=b.memoizedProps,_.memoizedState=b.memoizedState,_.updateQueue=b.updateQueue,_.type=b.type,e=b.dependencies,_.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Xr(yo,yo.current&1|2),i.child}e=e.sibling}_.tail!==null&&Ao()>uf&&(i.flags|=128,u=!0,am(_,!1),i.lanes=4194304)}else{if(!u)if(e=Py(b),e!==null){if(i.flags|=128,u=!0,o=e.updateQueue,o!==null&&(i.updateQueue=o,i.flags|=4),am(_,!0),_.tail===null&&_.tailMode==="hidden"&&!b.alternate&&!co)return _s(i),null}else 2*Ao()-_.renderingStartTime>uf&&o!==1073741824&&(i.flags|=128,u=!0,am(_,!1),i.lanes=4194304);_.isBackwards?(b.sibling=i.child,i.child=b):(o=_.last,o!==null?o.sibling=b:i.child=b,_.last=b)}return _.tail!==null?(i=_.tail,_.rendering=i,_.tail=i.sibling,_.renderingStartTime=Ao(),i.sibling=null,o=yo.current,Xr(yo,u?o&1|2:o&1),i):(_s(i),null);case 22:case 23:return YM(),u=i.memoizedState!==null,e!==null&&e.memoizedState!==null!==u&&(i.flags|=8192),u&&i.mode&1?aa&1073741824&&(_s(i),i.subtreeFlags&6&&(i.flags|=8192)):_s(i),null;case 24:return null;case 25:return null}throw Error(Wi(156,i.tag))}function MR(e,i){switch(tM(i),i.tag){case 1:return $s(i.type)&&Ty(),e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 3:return sf(),oo(Hs),oo(ms),mM(),e=i.flags,e&65536&&!(e&128)?(i.flags=e&-65537|128,i):null;case 5:return pM(i),null;case 13:if(oo(yo),e=i.memoizedState,e!==null&&e.dehydrated!==null){if(i.alternate===null)throw Error(Wi(340));tf()}return e=i.flags,e&65536?(i.flags=e&-65537|128,i):null;case 19:return oo(yo),null;case 4:return sf(),null;case 10:return aM(i.type._context),null;case 22:case 23:return YM(),null;case 24:return null;default:return null}}var $y=!1,vs=!1,IR=typeof WeakSet=="function"?WeakSet:Set,En=null;function lf(e,i){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(u){bo(e,i,u)}else o.current=null}function OM(e,i,o){try{o()}catch(u){bo(e,i,u)}}var uC=!1;function TR(e,i){if(Yb=hy,e=US(),Rb(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,_=u.focusNode;u=u.focusOffset;try{o.nodeType,_.nodeType}catch{o=null;break e}var b=0,a=-1,E=-1,j=0,V=0,ie=e,G=null;t:for(;;){for(var le;ie!==o||d!==0&&ie.nodeType!==3||(a=b+d),ie!==_||u!==0&&ie.nodeType!==3||(E=b+u),ie.nodeType===3&&(b+=ie.nodeValue.length),(le=ie.firstChild)!==null;)G=ie,ie=le;for(;;){if(ie===e)break t;if(G===o&&++j===d&&(a=b),G===_&&++V===u&&(E=b),(le=ie.nextSibling)!==null)break;ie=G,G=ie.parentNode}ie=le}o=a===-1||E===-1?null:{start:a,end:E}}else o=null}o=o||{start:0,end:0}}else o=null;for(Gb={focusedElem:e,selectionRange:o},hy=!1,En=i;En!==null;)if(i=En,e=i.child,(i.subtreeFlags&1028)!==0&&e!==null)e.return=i,En=e;else for(;En!==null;){i=En;try{var fe=i.alternate;if(i.flags&1024)switch(i.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var ve=fe.memoizedProps,Ze=fe.memoizedState,me=i.stateNode,te=me.getSnapshotBeforeUpdate(i.elementType===i.type?ve:Za(i.type,ve),Ze);me.__reactInternalSnapshotBeforeUpdate=te}break;case 3:var ee=i.stateNode.containerInfo;ee.nodeType===1?ee.textContent="":ee.nodeType===9&&ee.documentElement&&ee.removeChild(ee.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Wi(163))}}catch(re){bo(i,i.return,re)}if(e=i.sibling,e!==null){e.return=i.return,En=e;break}En=i.return}return fe=uC,uC=!1,fe}function lm(e,i,o){var u=i.updateQueue;if(u=u!==null?u.lastEffect:null,u!==null){var d=u=u.next;do{if((d.tag&e)===e){var _=d.destroy;d.destroy=void 0,_!==void 0&&OM(i,o,_)}d=d.next}while(d!==u)}}function Yy(e,i){if(i=i.updateQueue,i=i!==null?i.lastEffect:null,i!==null){var o=i=i.next;do{if((o.tag&e)===e){var u=o.create;o.destroy=u()}o=o.next}while(o!==i)}}function kM(e){var i=e.ref;if(i!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof i=="function"?i(e):i.current=e}}function hC(e){var i=e.alternate;i!==null&&(e.alternate=null,hC(i)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(i=e.stateNode,i!==null&&(delete i[yl],delete i[Kg],delete i[Kb],delete i[aR],delete i[lR])),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 dC(e){return e.tag===5||e.tag===3||e.tag===4}function fC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dC(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 jM(e,i,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?o.nodeType===8?o.parentNode.insertBefore(e,i):o.insertBefore(e,i):(o.nodeType===8?(i=o.parentNode,i.insertBefore(e,o)):(i=o,i.appendChild(e)),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=My));else if(u!==4&&(e=e.child,e!==null))for(jM(e,i,o),e=e.sibling;e!==null;)jM(e,i,o),e=e.sibling}function PM(e,i,o){var u=e.tag;if(u===5||u===6)e=e.stateNode,i?o.insertBefore(e,i):o.appendChild(e);else if(u!==4&&(e=e.child,e!==null))for(PM(e,i,o),e=e.sibling;e!==null;)PM(e,i,o),e=e.sibling}var as=null,Wa=!1;function hu(e,i,o){for(o=o.child;o!==null;)pC(e,i,o),o=o.sibling}function pC(e,i,o){if(ml&&typeof ml.onCommitFiberUnmount=="function")try{ml.onCommitFiberUnmount(oy,o)}catch{}switch(o.tag){case 5:vs||lf(o,i);case 6:var u=as,d=Wa;as=null,hu(e,i,o),as=u,Wa=d,as!==null&&(Wa?(e=as,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):as.removeChild(o.stateNode));break;case 18:as!==null&&(Wa?(e=as,o=o.stateNode,e.nodeType===8?qb(e.parentNode,o):e.nodeType===1&&qb(e,o),Fg(e)):qb(as,o.stateNode));break;case 4:u=as,d=Wa,as=o.stateNode.containerInfo,Wa=!0,hu(e,i,o),as=u,Wa=d;break;case 0:case 11:case 14:case 15:if(!vs&&(u=o.updateQueue,u!==null&&(u=u.lastEffect,u!==null))){d=u=u.next;do{var _=d,b=_.destroy;_=_.tag,b!==void 0&&(_&2||_&4)&&OM(o,i,b),d=d.next}while(d!==u)}hu(e,i,o);break;case 1:if(!vs&&(lf(o,i),u=o.stateNode,typeof u.componentWillUnmount=="function"))try{u.props=o.memoizedProps,u.state=o.memoizedState,u.componentWillUnmount()}catch(a){bo(o,i,a)}hu(e,i,o);break;case 21:hu(e,i,o);break;case 22:o.mode&1?(vs=(u=vs)||o.memoizedState!==null,hu(e,i,o),vs=u):hu(e,i,o);break;default:hu(e,i,o)}}function gC(e){var i=e.updateQueue;if(i!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new IR),i.forEach(function(u){var d=OR.bind(null,e,u);o.has(u)||(o.add(u),u.then(d,d))})}}function qa(e,i){var o=i.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u];try{var _=e,b=i,a=b;e:for(;a!==null;){switch(a.tag){case 5:as=a.stateNode,Wa=!1;break e;case 3:as=a.stateNode.containerInfo,Wa=!0;break e;case 4:as=a.stateNode.containerInfo,Wa=!0;break e}a=a.return}if(as===null)throw Error(Wi(160));pC(_,b,d),as=null,Wa=!1;var E=d.alternate;E!==null&&(E.return=null),d.return=null}catch(j){bo(d,i,j)}}if(i.subtreeFlags&12854)for(i=i.child;i!==null;)mC(i,e),i=i.sibling}function mC(e,i){var o=e.alternate,u=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(qa(i,e),xl(e),u&4){try{lm(3,e,e.return),Yy(3,e)}catch(ve){bo(e,e.return,ve)}try{lm(5,e,e.return)}catch(ve){bo(e,e.return,ve)}}break;case 1:qa(i,e),xl(e),u&512&&o!==null&&lf(o,o.return);break;case 5:if(qa(i,e),xl(e),u&512&&o!==null&&lf(o,o.return),e.flags&32){var d=e.stateNode;try{Cg(d,"")}catch(ve){bo(e,e.return,ve)}}if(u&4&&(d=e.stateNode,d!=null)){var _=e.memoizedProps,b=o!==null?o.memoizedProps:_,a=e.type,E=e.updateQueue;if(e.updateQueue=null,E!==null)try{a==="input"&&_.type==="radio"&&_.name!=null&&QD(d,_),pb(a,b);var j=pb(a,_);for(b=0;b<E.length;b+=2){var V=E[b],ie=E[b+1];V==="style"?KD(d,ie):V==="dangerouslySetInnerHTML"?WD(d,ie):V==="children"?Cg(d,ie):Kw(d,V,ie,j)}switch(a){case"input":cb(d,_);break;case"textarea":YD(d,_);break;case"select":var G=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!_.multiple;var le=_.value;le!=null?Fd(d,!!_.multiple,le,!1):G!==!!_.multiple&&(_.defaultValue!=null?Fd(d,!!_.multiple,_.defaultValue,!0):Fd(d,!!_.multiple,_.multiple?[]:"",!1))}d[Kg]=_}catch(ve){bo(e,e.return,ve)}}break;case 6:if(qa(i,e),xl(e),u&4){if(e.stateNode===null)throw Error(Wi(162));d=e.stateNode,_=e.memoizedProps;try{d.nodeValue=_}catch(ve){bo(e,e.return,ve)}}break;case 3:if(qa(i,e),xl(e),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Fg(i.containerInfo)}catch(ve){bo(e,e.return,ve)}break;case 4:qa(i,e),xl(e);break;case 13:qa(i,e),xl(e),d=e.child,d.flags&8192&&(_=d.memoizedState!==null,d.stateNode.isHidden=_,!_||d.alternate!==null&&d.alternate.memoizedState!==null||(FM=Ao())),u&4&&gC(e);break;case 22:if(V=o!==null&&o.memoizedState!==null,e.mode&1?(vs=(j=vs)||V,qa(i,e),vs=j):qa(i,e),xl(e),u&8192){if(j=e.memoizedState!==null,(e.stateNode.isHidden=j)&&!V&&e.mode&1)for(En=e,V=e.child;V!==null;){for(ie=En=V;En!==null;){switch(G=En,le=G.child,G.tag){case 0:case 11:case 14:case 15:lm(4,G,G.return);break;case 1:lf(G,G.return);var fe=G.stateNode;if(typeof fe.componentWillUnmount=="function"){u=G,o=G.return;try{i=u,fe.props=i.memoizedProps,fe.state=i.memoizedState,fe.componentWillUnmount()}catch(ve){bo(u,o,ve)}}break;case 5:lf(G,G.return);break;case 22:if(G.memoizedState!==null){vC(ie);continue}}le!==null?(le.return=G,En=le):vC(ie)}V=V.sibling}e:for(V=null,ie=e;;){if(ie.tag===5){if(V===null){V=ie;try{d=ie.stateNode,j?(_=d.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none"):(a=ie.stateNode,E=ie.memoizedProps.style,b=E!=null&&E.hasOwnProperty("display")?E.display:null,a.style.display=qD("display",b))}catch(ve){bo(e,e.return,ve)}}}else if(ie.tag===6){if(V===null)try{ie.stateNode.nodeValue=j?"":ie.memoizedProps}catch(ve){bo(e,e.return,ve)}}else if((ie.tag!==22&&ie.tag!==23||ie.memoizedState===null||ie===e)&&ie.child!==null){ie.child.return=ie,ie=ie.child;continue}if(ie===e)break e;for(;ie.sibling===null;){if(ie.return===null||ie.return===e)break e;V===ie&&(V=null),ie=ie.return}V===ie&&(V=null),ie.sibling.return=ie.return,ie=ie.sibling}}break;case 19:qa(i,e),xl(e),u&4&&gC(e);break;case 21:break;default:qa(i,e),xl(e)}}function xl(e){var i=e.flags;if(i&2){try{e:{for(var o=e.return;o!==null;){if(dC(o)){var u=o;break e}o=o.return}throw Error(Wi(160))}switch(u.tag){case 5:var d=u.stateNode;u.flags&32&&(Cg(d,""),u.flags&=-33);var _=fC(e);PM(e,_,d);break;case 3:case 4:var b=u.stateNode.containerInfo,a=fC(e);jM(e,a,b);break;default:throw Error(Wi(161))}}catch(E){bo(e,e.return,E)}e.flags&=-3}i&4096&&(e.flags&=-4097)}function DR(e,i,o){En=e,yC(e)}function yC(e,i,o){for(var u=(e.mode&1)!==0;En!==null;){var d=En,_=d.child;if(d.tag===22&&u){var b=d.memoizedState!==null||$y;if(!b){var a=d.alternate,E=a!==null&&a.memoizedState!==null||vs;a=$y;var j=vs;if($y=b,(vs=E)&&!j)for(En=d;En!==null;)b=En,E=b.child,b.tag===22&&b.memoizedState!==null?xC(d):E!==null?(E.return=b,En=E):xC(d);for(;_!==null;)En=_,yC(_),_=_.sibling;En=d,$y=a,vs=j}_C(e)}else d.subtreeFlags&8772&&_!==null?(_.return=d,En=_):_C(e)}}function _C(e){for(;En!==null;){var i=En;if(i.flags&8772){var o=i.alternate;try{if(i.flags&8772)switch(i.tag){case 0:case 11:case 15:vs||Yy(5,i);break;case 1:var u=i.stateNode;if(i.flags&4&&!vs)if(o===null)u.componentDidMount();else{var d=i.elementType===i.type?o.memoizedProps:Za(i.type,o.memoizedProps);u.componentDidUpdate(d,o.memoizedState,u.__reactInternalSnapshotBeforeUpdate)}var _=i.updateQueue;_!==null&&gA(i,_,u);break;case 3:var b=i.updateQueue;if(b!==null){if(o=null,i.child!==null)switch(i.child.tag){case 5:o=i.child.stateNode;break;case 1:o=i.child.stateNode}gA(i,b,o)}break;case 5:var a=i.stateNode;if(o===null&&i.flags&4){o=a;var E=i.memoizedProps;switch(i.type){case"button":case"input":case"select":case"textarea":E.autoFocus&&o.focus();break;case"img":E.src&&(o.src=E.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(i.memoizedState===null){var j=i.alternate;if(j!==null){var V=j.memoizedState;if(V!==null){var ie=V.dehydrated;ie!==null&&Fg(ie)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(Wi(163))}vs||i.flags&512&&kM(i)}catch(G){bo(i,i.return,G)}}if(i===e){En=null;break}if(o=i.sibling,o!==null){o.return=i.return,En=o;break}En=i.return}}function vC(e){for(;En!==null;){var i=En;if(i===e){En=null;break}var o=i.sibling;if(o!==null){o.return=i.return,En=o;break}En=i.return}}function xC(e){for(;En!==null;){var i=En;try{switch(i.tag){case 0:case 11:case 15:var o=i.return;try{Yy(4,i)}catch(E){bo(i,o,E)}break;case 1:var u=i.stateNode;if(typeof u.componentDidMount=="function"){var d=i.return;try{u.componentDidMount()}catch(E){bo(i,d,E)}}var _=i.return;try{kM(i)}catch(E){bo(i,_,E)}break;case 5:var b=i.return;try{kM(i)}catch(E){bo(i,b,E)}}}catch(E){bo(i,i.return,E)}if(i===e){En=null;break}var a=i.sibling;if(a!==null){a.return=i.return,En=a;break}En=i.return}}var SR=Math.ceil,Gy=sc.ReactCurrentDispatcher,RM=sc.ReactCurrentOwner,Ca=sc.ReactCurrentBatchConfig,jr=0,qo=null,Oo=null,ls=0,aa=0,cf=su(0),Ho=0,cm=null,Mh=0,Zy=0,BM=0,um=null,Gs=null,FM=0,uf=1/0,pc=null,Wy=!1,UM=null,du=null,qy=!1,fu=null,Ky=0,hm=0,VM=null,Xy=-1,Jy=0;function Ns(){return jr&6?Ao():Xy!==-1?Xy:Xy=Ao()}function pu(e){return e.mode&1?jr&2&&ls!==0?ls&-ls:uR.transition!==null?(Jy===0&&(Jy=dS()),Jy):(e=Hr,e!==0||(e=window.event,e=e===void 0?16:wS(e.type)),e):1}function Ka(e,i,o,u){if(50<hm)throw hm=0,VM=null,Error(Wi(185));kg(e,o,u),(!(jr&2)||e!==qo)&&(e===qo&&(!(jr&2)&&(Zy|=o),Ho===4&&gu(e,ls)),Zs(e,u),o===1&&jr===0&&!(i.mode&1)&&(uf=Ao()+500,Sy&&lu()))}function Zs(e,i){var o=e.callbackNode;uP(e,i);var u=ly(e,e===qo?ls:0);if(u===0)o!==null&&cS(o),e.callbackNode=null,e.callbackPriority=0;else if(i=u&-u,e.callbackPriority!==i){if(o!=null&&cS(o),i===1)e.tag===0?cR(bC.bind(null,e)):sA(bC.bind(null,e)),oR(function(){!(jr&6)&&lu()}),o=null;else{switch(fS(u)){case 1:o=wb;break;case 4:o=uS;break;case 16:o=ry;break;case 536870912:o=hS;break;default:o=ry}o=EC(o,wC.bind(null,e))}e.callbackPriority=i,e.callbackNode=o}}function wC(e,i){if(Xy=-1,Jy=0,jr&6)throw Error(Wi(327));var o=e.callbackNode;if(hf()&&e.callbackNode!==o)return null;var u=ly(e,e===qo?ls:0);if(u===0)return null;if(u&30||u&e.expiredLanes||i)i=e_(e,u);else{i=u;var d=jr;jr|=2;var _=IC();(qo!==e||ls!==i)&&(pc=null,uf=Ao()+500,Th(e,i));do try{ER();break}catch(a){MC(e,a)}while(1);sM(),Gy.current=_,jr=d,Oo!==null?i=0:(qo=null,ls=0,i=Ho)}if(i!==0){if(i===2&&(d=bb(e),d!==0&&(u=d,i=QM(e,d))),i===1)throw o=cm,Th(e,0),gu(e,u),Zs(e,Ao()),o;if(i===6)gu(e,u);else{if(d=e.current.alternate,!(u&30)&&!AR(d)&&(i=e_(e,u),i===2&&(_=bb(e),_!==0&&(u=_,i=QM(e,_))),i===1))throw o=cm,Th(e,0),gu(e,u),Zs(e,Ao()),o;switch(e.finishedWork=d,e.finishedLanes=u,i){case 0:case 1:throw Error(Wi(345));case 2:Dh(e,Gs,pc);break;case 3:if(gu(e,u),(u&130023424)===u&&(i=FM+500-Ao(),10<i)){if(ly(e,0)!==0)break;if(d=e.suspendedLanes,(d&u)!==u){Ns(),e.pingedLanes|=e.suspendedLanes&d;break}e.timeoutHandle=Wb(Dh.bind(null,e,Gs,pc),i);break}Dh(e,Gs,pc);break;case 4:if(gu(e,u),(u&4194240)===u)break;for(i=e.eventTimes,d=-1;0<u;){var b=31-$a(u);_=1<<b,b=i[b],b>d&&(d=b),u&=~_}if(u=d,u=Ao()-u,u=(120>u?120:480>u?480:1080>u?1080:1920>u?1920:3e3>u?3e3:4320>u?4320:1960*SR(u/1960))-u,10<u){e.timeoutHandle=Wb(Dh.bind(null,e,Gs,pc),u);break}Dh(e,Gs,pc);break;case 5:Dh(e,Gs,pc);break;default:throw Error(Wi(329))}}}return Zs(e,Ao()),e.callbackNode===o?wC.bind(null,e):null}function QM(e,i){var o=um;return e.current.memoizedState.isDehydrated&&(Th(e,i).flags|=256),e=e_(e,i),e!==2&&(i=Gs,Gs=o,i!==null&&HM(i)),e}function HM(e){Gs===null?Gs=e:Gs.push.apply(Gs,e)}function AR(e){for(var i=e;;){if(i.flags&16384){var o=i.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var u=0;u<o.length;u++){var d=o[u],_=d.getSnapshot;d=d.value;try{if(!Ya(_(),d))return!1}catch{return!1}}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===e)break;for(;i.sibling===null;){if(i.return===null||i.return===e)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function gu(e,i){for(i&=~BM,i&=~Zy,e.suspendedLanes|=i,e.pingedLanes&=~i,e=e.expirationTimes;0<i;){var o=31-$a(i),u=1<<o;e[o]=-1,i&=~u}}function bC(e){if(jr&6)throw Error(Wi(327));hf();var i=ly(e,0);if(!(i&1))return Zs(e,Ao()),null;var o=e_(e,i);if(e.tag!==0&&o===2){var u=bb(e);u!==0&&(i=u,o=QM(e,u))}if(o===1)throw o=cm,Th(e,0),gu(e,i),Zs(e,Ao()),o;if(o===6)throw Error(Wi(345));return e.finishedWork=e.current.alternate,e.finishedLanes=i,Dh(e,Gs,pc),Zs(e,Ao()),null}function $M(e,i){var o=jr;jr|=1;try{return e(i)}finally{jr=o,jr===0&&(uf=Ao()+500,Sy&&lu())}}function Ih(e){fu!==null&&fu.tag===0&&!(jr&6)&&hf();var i=jr;jr|=1;var o=Ca.transition,u=Hr;try{if(Ca.transition=null,Hr=1,e)return e()}finally{Hr=u,Ca.transition=o,jr=i,!(jr&6)&&lu()}}function YM(){aa=cf.current,oo(cf)}function Th(e,i){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,rR(o)),Oo!==null)for(o=Oo.return;o!==null;){var u=o;switch(tM(u),u.tag){case 1:u=u.type.childContextTypes,u!=null&&Ty();break;case 3:sf(),oo(Hs),oo(ms),mM();break;case 5:pM(u);break;case 4:sf();break;case 13:oo(yo);break;case 19:oo(yo);break;case 10:aM(u.type._context);break;case 22:case 23:YM()}o=o.return}if(qo=e,Oo=e=mu(e.current,null),ls=aa=i,Ho=0,cm=null,BM=Zy=Mh=0,Gs=um=null,xh!==null){for(i=0;i<xh.length;i++)if(o=xh[i],u=o.interleaved,u!==null){o.interleaved=null;var d=u.next,_=o.pending;if(_!==null){var b=_.next;_.next=d,u.next=b}o.pending=u}xh=null}return e}function MC(e,i){do{var o=Oo;try{if(sM(),Ry.current=Vy,By){for(var u=_o.memoizedState;u!==null;){var d=u.queue;d!==null&&(d.pending=null),u=u.next}By=!1}if(bh=0,Wo=Qo=_o=null,nm=!1,rm=0,RM.current=null,o===null||o.return===null){Ho=1,cm=i,Oo=null;break}e:{var _=e,b=o.return,a=o,E=i;if(i=ls,a.flags|=32768,E!==null&&typeof E=="object"&&typeof E.then=="function"){var j=E,V=a,ie=V.tag;if(!(V.mode&1)&&(ie===0||ie===11||ie===15)){var G=V.alternate;G?(V.updateQueue=G.updateQueue,V.memoizedState=G.memoizedState,V.lanes=G.lanes):(V.updateQueue=null,V.memoizedState=null)}var le=ZA(b);if(le!==null){le.flags&=-257,WA(le,b,a,_,i),le.mode&1&&GA(_,j,i),i=le,E=j;var fe=i.updateQueue;if(fe===null){var ve=new Set;ve.add(E),i.updateQueue=ve}else fe.add(E);break e}else{if(!(i&1)){GA(_,j,i),GM();break e}E=Error(Wi(426))}}else if(co&&a.mode&1){var Ze=ZA(b);if(Ze!==null){!(Ze.flags&65536)&&(Ze.flags|=256),WA(Ze,b,a,_,i),rM(af(E,a));break e}}_=E=af(E,a),Ho!==4&&(Ho=2),um===null?um=[_]:um.push(_),_=b;do{switch(_.tag){case 3:_.flags|=65536,i&=-i,_.lanes|=i;var me=$A(_,E,i);pA(_,me);break e;case 1:a=E;var te=_.type,ee=_.stateNode;if(!(_.flags&128)&&(typeof te.getDerivedStateFromError=="function"||ee!==null&&typeof ee.componentDidCatch=="function"&&(du===null||!du.has(ee)))){_.flags|=65536,i&=-i,_.lanes|=i;var re=YA(_,a,i);pA(_,re);break e}}_=_.return}while(_!==null)}DC(o)}catch(Me){i=Me,Oo===o&&o!==null&&(Oo=o=o.return);continue}break}while(1)}function IC(){var e=Gy.current;return Gy.current=Vy,e===null?Vy:e}function GM(){(Ho===0||Ho===3||Ho===2)&&(Ho=4),qo===null||!(Mh&268435455)&&!(Zy&268435455)||gu(qo,ls)}function e_(e,i){var o=jr;jr|=2;var u=IC();(qo!==e||ls!==i)&&(pc=null,Th(e,i));do try{CR();break}catch(d){MC(e,d)}while(1);if(sM(),jr=o,Gy.current=u,Oo!==null)throw Error(Wi(261));return qo=null,ls=0,Ho}function CR(){for(;Oo!==null;)TC(Oo)}function ER(){for(;Oo!==null&&!tP();)TC(Oo)}function TC(e){var i=CC(e.alternate,e,aa);e.memoizedProps=e.pendingProps,i===null?DC(e):Oo=i,RM.current=null}function DC(e){var i=e;do{var o=i.alternate;if(e=i.return,i.flags&32768){if(o=MR(o,i),o!==null){o.flags&=32767,Oo=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ho=6,Oo=null;return}}else if(o=bR(o,i,aa),o!==null){Oo=o;return}if(i=i.sibling,i!==null){Oo=i;return}Oo=i=e}while(i!==null);Ho===0&&(Ho=5)}function Dh(e,i,o){var u=Hr,d=Ca.transition;try{Ca.transition=null,Hr=1,NR(e,i,o,u)}finally{Ca.transition=d,Hr=u}return null}function NR(e,i,o,u){do hf();while(fu!==null);if(jr&6)throw Error(Wi(327));o=e.finishedWork;var d=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(Wi(177));e.callbackNode=null,e.callbackPriority=0;var _=o.lanes|o.childLanes;if(hP(e,_),e===qo&&(Oo=qo=null,ls=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||qy||(qy=!0,EC(ry,function(){return hf(),null})),_=(o.flags&15990)!==0,o.subtreeFlags&15990||_){_=Ca.transition,Ca.transition=null;var b=Hr;Hr=1;var a=jr;jr|=4,RM.current=null,TR(e,o),mC(o,e),KP(Gb),hy=!!Yb,Gb=Yb=null,e.current=o,DR(o),iP(),jr=a,Hr=b,Ca.transition=_}else e.current=o;if(qy&&(qy=!1,fu=e,Ky=d),_=e.pendingLanes,_===0&&(du=null),oP(o.stateNode),Zs(e,Ao()),i!==null)for(u=e.onRecoverableError,o=0;o<i.length;o++)d=i[o],u(d.value,{componentStack:d.stack,digest:d.digest});if(Wy)throw Wy=!1,e=UM,UM=null,e;return Ky&1&&e.tag!==0&&hf(),_=e.pendingLanes,_&1?e===VM?hm++:(hm=0,VM=e):hm=0,lu(),null}function hf(){if(fu!==null){var e=fS(Ky),i=Ca.transition,o=Hr;try{if(Ca.transition=null,Hr=16>e?16:e,fu===null)var u=!1;else{if(e=fu,fu=null,Ky=0,jr&6)throw Error(Wi(331));var d=jr;for(jr|=4,En=e.current;En!==null;){var _=En,b=_.child;if(En.flags&16){var a=_.deletions;if(a!==null){for(var E=0;E<a.length;E++){var j=a[E];for(En=j;En!==null;){var V=En;switch(V.tag){case 0:case 11:case 15:lm(8,V,_)}var ie=V.child;if(ie!==null)ie.return=V,En=ie;else for(;En!==null;){V=En;var G=V.sibling,le=V.return;if(hC(V),V===j){En=null;break}if(G!==null){G.return=le,En=G;break}En=le}}}var fe=_.alternate;if(fe!==null){var ve=fe.child;if(ve!==null){fe.child=null;do{var Ze=ve.sibling;ve.sibling=null,ve=Ze}while(ve!==null)}}En=_}}if(_.subtreeFlags&2064&&b!==null)b.return=_,En=b;else e:for(;En!==null;){if(_=En,_.flags&2048)switch(_.tag){case 0:case 11:case 15:lm(9,_,_.return)}var me=_.sibling;if(me!==null){me.return=_.return,En=me;break e}En=_.return}}var te=e.current;for(En=te;En!==null;){b=En;var ee=b.child;if(b.subtreeFlags&2064&&ee!==null)ee.return=b,En=ee;else e:for(b=te;En!==null;){if(a=En,a.flags&2048)try{switch(a.tag){case 0:case 11:case 15:Yy(9,a)}}catch(Me){bo(a,a.return,Me)}if(a===b){En=null;break e}var re=a.sibling;if(re!==null){re.return=a.return,En=re;break e}En=a.return}}if(jr=d,lu(),ml&&typeof ml.onPostCommitFiberRoot=="function")try{ml.onPostCommitFiberRoot(oy,e)}catch{}u=!0}return u}finally{Hr=o,Ca.transition=i}}return!1}function SC(e,i,o){i=af(o,i),i=$A(e,i,1),e=uu(e,i,1),i=Ns(),e!==null&&(kg(e,1,i),Zs(e,i))}function bo(e,i,o){if(e.tag===3)SC(e,e,o);else for(;i!==null;){if(i.tag===3){SC(i,e,o);break}else if(i.tag===1){var u=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(du===null||!du.has(u))){e=af(o,e),e=YA(i,e,1),i=uu(i,e,1),e=Ns(),i!==null&&(kg(i,1,e),Zs(i,e));break}}i=i.return}}function LR(e,i,o){var u=e.pingCache;u!==null&&u.delete(i),i=Ns(),e.pingedLanes|=e.suspendedLanes&o,qo===e&&(ls&o)===o&&(Ho===4||Ho===3&&(ls&130023424)===ls&&500>Ao()-FM?Th(e,0):BM|=o),Zs(e,i)}function AC(e,i){i===0&&(e.mode&1?(i=ay,ay<<=1,!(ay&130023424)&&(ay=4194304)):i=1);var o=Ns();e=hc(e,i),e!==null&&(kg(e,i,o),Zs(e,o))}function zR(e){var i=e.memoizedState,o=0;i!==null&&(o=i.retryLane),AC(e,o)}function OR(e,i){var o=0;switch(e.tag){case 13:var u=e.stateNode,d=e.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=e.stateNode;break;default:throw Error(Wi(314))}u!==null&&u.delete(i),AC(e,o)}var CC;CC=function(e,i,o){if(e!==null)if(e.memoizedProps!==i.pendingProps||Hs.current)Ys=!0;else{if(!(e.lanes&o)&&!(i.flags&128))return Ys=!1,wR(e,i,o);Ys=!!(e.flags&131072)}else Ys=!1,co&&i.flags&1048576&&aA(i,Cy,i.index);switch(i.lanes=0,i.tag){case 2:var u=i.type;Hy(e,i),e=i.pendingProps;var d=Xd(i,ms.current);rf(i,o),d=vM(null,i,u,e,d,o);var _=xM();return i.flags|=1,typeof d=="object"&&d!==null&&typeof d.render=="function"&&d.$$typeof===void 0?(i.tag=1,i.memoizedState=null,i.updateQueue=null,$s(u)?(_=!0,Dy(i)):_=!1,i.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,uM(i),d.updater=ky,i.stateNode=d,d._reactInternals=i,dM(i,u,e,o),i=AM(null,i,u,!0,_,o)):(i.tag=0,co&&_&&eM(i),Es(null,i,d,o),i=i.child),i;case 16:u=i.elementType;e:{switch(Hy(e,i),e=i.pendingProps,d=u._init,u=d(u._payload),i.type=u,d=i.tag=jR(u),e=Za(u,e),d){case 0:i=SM(null,i,u,e,o);break e;case 1:i=tC(null,i,u,e,o);break e;case 11:i=qA(null,i,u,e,o);break e;case 14:i=KA(null,i,u,Za(u.type,e),o);break e}throw Error(Wi(306,u,""))}return i;case 0:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),SM(e,i,u,d,o);case 1:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),tC(e,i,u,d,o);case 3:e:{if(iC(i),e===null)throw Error(Wi(387));u=i.pendingProps,_=i.memoizedState,d=_.element,fA(e,i),Oy(i,u,null,o);var b=i.memoizedState;if(u=b.element,_.isDehydrated)if(_={element:u,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},i.updateQueue.baseState=_,i.memoizedState=_,i.flags&256){d=af(Error(Wi(423)),i),i=nC(e,i,u,o,d);break e}else if(u!==d){d=af(Error(Wi(424)),i),i=nC(e,i,u,o,d);break e}else for(sa=ou(i.stateNode.containerInfo.firstChild),oa=i,co=!0,Ga=null,o=bA(i,null,u,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(tf(),u===d){i=fc(e,i,o);break e}Es(e,i,u,o)}i=i.child}return i;case 5:return MA(i),e===null&&nM(i),u=i.type,d=i.pendingProps,_=e!==null?e.memoizedProps:null,b=d.children,Zb(u,d)?b=null:_!==null&&Zb(u,_)&&(i.flags|=32),eC(e,i),Es(e,i,b,o),i.child;case 6:return e===null&&nM(i),null;case 13:return rC(e,i,o);case 4:return fM(i,i.stateNode.containerInfo),u=i.pendingProps,e===null?i.child=of(i,null,u,o):Es(e,i,u,o),i.child;case 11:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),qA(e,i,u,d,o);case 7:return Es(e,i,i.pendingProps,o),i.child;case 8:return Es(e,i,i.pendingProps.children,o),i.child;case 12:return Es(e,i,i.pendingProps.children,o),i.child;case 10:e:{if(u=i.type._context,d=i.pendingProps,_=i.memoizedProps,b=d.value,Xr(Ny,u._currentValue),u._currentValue=b,_!==null)if(Ya(_.value,b)){if(_.children===d.children&&!Hs.current){i=fc(e,i,o);break e}}else for(_=i.child,_!==null&&(_.return=i);_!==null;){var a=_.dependencies;if(a!==null){b=_.child;for(var E=a.firstContext;E!==null;){if(E.context===u){if(_.tag===1){E=dc(-1,o&-o),E.tag=2;var j=_.updateQueue;if(j!==null){j=j.shared;var V=j.pending;V===null?E.next=E:(E.next=V.next,V.next=E),j.pending=E}}_.lanes|=o,E=_.alternate,E!==null&&(E.lanes|=o),lM(_.return,o,i),a.lanes|=o;break}E=E.next}}else if(_.tag===10)b=_.type===i.type?null:_.child;else if(_.tag===18){if(b=_.return,b===null)throw Error(Wi(341));b.lanes|=o,a=b.alternate,a!==null&&(a.lanes|=o),lM(b,o,i),b=_.sibling}else b=_.child;if(b!==null)b.return=_;else for(b=_;b!==null;){if(b===i){b=null;break}if(_=b.sibling,_!==null){_.return=b.return,b=_;break}b=b.return}_=b}Es(e,i,d.children,o),i=i.child}return i;case 9:return d=i.type,u=i.pendingProps.children,rf(i,o),d=Sa(d),u=u(d),i.flags|=1,Es(e,i,u,o),i.child;case 14:return u=i.type,d=Za(u,i.pendingProps),d=Za(u.type,d),KA(e,i,u,d,o);case 15:return XA(e,i,i.type,i.pendingProps,o);case 17:return u=i.type,d=i.pendingProps,d=i.elementType===u?d:Za(u,d),Hy(e,i),i.tag=1,$s(u)?(e=!0,Dy(i)):e=!1,rf(i,o),_A(i,u,d),dM(i,u,d,o),AM(null,i,u,!0,e,o);case 19:return sC(e,i,o);case 22:return JA(e,i,o)}throw Error(Wi(156,i.tag))};function EC(e,i){return lS(e,i)}function kR(e,i,o,u){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ea(e,i,o,u){return new kR(e,i,o,u)}function ZM(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jR(e){if(typeof e=="function")return ZM(e)?1:0;if(e!=null){if(e=e.$$typeof,e===eb)return 11;if(e===nb)return 14}return 2}function mu(e,i){var o=e.alternate;return o===null?(o=Ea(e.tag,i,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=i,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,i=e.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function t_(e,i,o,u,d,_){var b=2;if(u=e,typeof e=="function")ZM(e)&&(b=1);else if(typeof e=="string")b=5;else e:switch(e){case Bd:return Sh(o.children,d,_,i);case Xw:b=8,d|=8;break;case Jw:return e=Ea(12,o,i,d|2),e.elementType=Jw,e.lanes=_,e;case tb:return e=Ea(13,o,i,d),e.elementType=tb,e.lanes=_,e;case ib:return e=Ea(19,o,i,d),e.elementType=ib,e.lanes=_,e;case RD:return i_(o,d,_,i);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jD:b=10;break e;case PD:b=9;break e;case eb:b=11;break e;case nb:b=14;break e;case Kc:b=16,u=null;break e}throw Error(Wi(130,e==null?e:typeof e,""))}return i=Ea(b,o,i,d),i.elementType=e,i.type=u,i.lanes=_,i}function Sh(e,i,o,u){return e=Ea(7,e,u,i),e.lanes=o,e}function i_(e,i,o,u){return e=Ea(22,e,u,i),e.elementType=RD,e.lanes=o,e.stateNode={isHidden:!1},e}function WM(e,i,o){return e=Ea(6,e,null,i),e.lanes=o,e}function qM(e,i,o){return i=Ea(4,e.children!==null?e.children:[],e.key,i),i.lanes=o,i.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},i}function PR(e,i,o,u,d){this.tag=i,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=Mb(0),this.expirationTimes=Mb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mb(0),this.identifierPrefix=u,this.onRecoverableError=d,this.mutableSourceEagerHydrationData=null}function KM(e,i,o,u,d,_,b,a,E){return e=new PR(e,i,o,a,E),i===1?(i=1,_===!0&&(i|=8)):i=0,_=Ea(3,null,null,i),e.current=_,_.stateNode=e,_.memoizedState={element:u,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},uM(_),e}function RR(e,i,o){var u=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Rd,key:u==null?null:""+u,children:e,containerInfo:i,implementation:o}}function NC(e){if(!e)return au;e=e._reactInternals;e:{if(gh(e)!==e||e.tag!==1)throw Error(Wi(170));var i=e;do{switch(i.tag){case 3:i=i.stateNode.context;break e;case 1:if($s(i.type)){i=i.stateNode.__reactInternalMemoizedMergedChildContext;break e}}i=i.return}while(i!==null);throw Error(Wi(171))}if(e.tag===1){var o=e.type;if($s(o))return rA(e,o,i)}return i}function LC(e,i,o,u,d,_,b,a,E){return e=KM(o,u,!0,e,d,_,b,a,E),e.context=NC(null),o=e.current,u=Ns(),d=pu(o),_=dc(u,d),_.callback=i??null,uu(o,_,d),e.current.lanes=d,kg(e,d,u),Zs(e,u),e}function n_(e,i,o,u){var d=i.current,_=Ns(),b=pu(d);return o=NC(o),i.context===null?i.context=o:i.pendingContext=o,i=dc(_,b),i.payload={element:e},u=u===void 0?null:u,u!==null&&(i.callback=u),e=uu(d,i,b),e!==null&&(Ka(e,d,b,_),zy(e,d,b)),b}function r_(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 zC(e,i){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<i?o:i}}function XM(e,i){zC(e,i),(e=e.alternate)&&zC(e,i)}function BR(){return null}var OC=typeof reportError=="function"?reportError:function(e){console.error(e)};function JM(e){this._internalRoot=e}o_.prototype.render=JM.prototype.render=function(e){var i=this._internalRoot;if(i===null)throw Error(Wi(409));n_(e,i,null,null)},o_.prototype.unmount=JM.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var i=e.containerInfo;Ih(function(){n_(null,e,null,null)}),i[ac]=null}};function o_(e){this._internalRoot=e}o_.prototype.unstable_scheduleHydration=function(e){if(e){var i=mS();e={blockedOn:null,target:e,priority:i};for(var o=0;o<iu.length&&i!==0&&i<iu[o].priority;o++);iu.splice(o,0,e),o===0&&vS(e)}};function e3(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function s_(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function kC(){}function FR(e,i,o,u,d){if(d){if(typeof u=="function"){var _=u;u=function(){var j=r_(b);_.call(j)}}var b=LC(i,u,e,0,null,!1,!1,"",kC);return e._reactRootContainer=b,e[ac]=b.current,Wg(e.nodeType===8?e.parentNode:e),Ih(),b}for(;d=e.lastChild;)e.removeChild(d);if(typeof u=="function"){var a=u;u=function(){var j=r_(E);a.call(j)}}var E=KM(e,0,!1,null,null,!1,!1,"",kC);return e._reactRootContainer=E,e[ac]=E.current,Wg(e.nodeType===8?e.parentNode:e),Ih(function(){n_(i,E,o,u)}),E}function a_(e,i,o,u,d){var _=o._reactRootContainer;if(_){var b=_;if(typeof d=="function"){var a=d;d=function(){var E=r_(b);a.call(E)}}n_(i,b,e,d)}else b=FR(o,i,e,d,u);return r_(b)}pS=function(e){switch(e.tag){case 3:var i=e.stateNode;if(i.current.memoizedState.isDehydrated){var o=Og(i.pendingLanes);o!==0&&(Ib(i,o|1),Zs(i,Ao()),!(jr&6)&&(uf=Ao()+500,lu()))}break;case 13:Ih(function(){var u=hc(e,1);if(u!==null){var d=Ns();Ka(u,e,1,d)}}),XM(e,1)}},Tb=function(e){if(e.tag===13){var i=hc(e,134217728);if(i!==null){var o=Ns();Ka(i,e,134217728,o)}XM(e,134217728)}},gS=function(e){if(e.tag===13){var i=pu(e),o=hc(e,i);if(o!==null){var u=Ns();Ka(o,e,i,u)}XM(e,i)}},mS=function(){return Hr},yS=function(e,i){var o=Hr;try{return Hr=e,i()}finally{Hr=o}},yb=function(e,i,o){switch(i){case"input":if(cb(e,o),i=o.name,o.type==="radio"&&i!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),i=0;i<o.length;i++){var u=o[i];if(u!==e&&u.form===e.form){var d=Iy(u);if(!d)throw Error(Wi(90));UD(u),cb(u,d)}}}break;case"textarea":YD(e,o);break;case"select":i=o.value,i!=null&&Fd(e,!!o.multiple,i,!1)}},tS=$M,iS=Ih;var UR={usingClientEntryPoint:!1,Events:[Xg,qd,Iy,JD,eS,$M]},dm={findFiberByHostInstance:mh,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},VR={bundleType:dm.bundleType,version:dm.version,rendererPackageName:dm.rendererPackageName,rendererConfig:dm.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:sc.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sS(e),e===null?null:e.stateNode},findFiberByHostInstance:dm.findFiberByHostInstance||BR,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 l_=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!l_.isDisabled&&l_.supportsFiber)try{oy=l_.inject(VR),ml=l_}catch{}}ia.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=UR,ia.createPortal=function(e,i){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e3(i))throw Error(Wi(200));return RR(e,i,null,o)},ia.createRoot=function(e,i){if(!e3(e))throw Error(Wi(299));var o=!1,u="",d=OC;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onRecoverableError!==void 0&&(d=i.onRecoverableError)),i=KM(e,1,!1,null,null,o,!1,u,d),e[ac]=i.current,Wg(e.nodeType===8?e.parentNode:e),new JM(i)},ia.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var i=e._reactInternals;if(i===void 0)throw typeof e.render=="function"?Error(Wi(188)):(e=Object.keys(e).join(","),Error(Wi(268,e)));return e=sS(i),e=e===null?null:e.stateNode,e},ia.flushSync=function(e){return Ih(e)},ia.hydrate=function(e,i,o){if(!s_(i))throw Error(Wi(200));return a_(null,e,i,!0,o)},ia.hydrateRoot=function(e,i,o){if(!e3(e))throw Error(Wi(405));var u=o!=null&&o.hydratedSources||null,d=!1,_="",b=OC;if(o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(_=o.identifierPrefix),o.onRecoverableError!==void 0&&(b=o.onRecoverableError)),i=LC(i,null,e,1,o??null,d,!1,_,b),e[ac]=i.current,Wg(e),u)for(e=0;e<u.length;e++)o=u[e],d=o._getVersion,d=d(o._source),i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[o,d]:i.mutableSourceEagerHydrationData.push(o,d);return new o_(i)},ia.render=function(e,i,o){if(!s_(i))throw Error(Wi(200));return a_(null,e,i,!1,o)},ia.unmountComponentAtNode=function(e){if(!s_(e))throw Error(Wi(40));return e._reactRootContainer?(Ih(function(){a_(null,null,e,!1,function(){e._reactRootContainer=null,e[ac]=null})}),!0):!1},ia.unstable_batchedUpdates=$M,ia.unstable_renderSubtreeIntoContainer=function(e,i,o,u){if(!s_(o))throw Error(Wi(200));if(e==null||e._reactInternals===void 0)throw Error(Wi(38));return a_(e,i,o,!1,u)},ia.version="18.2.0-next-9e3b772b8-20220608";function jC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(jC)}catch(e){console.error(e)}}jC(),CD.exports=ia;var yu=CD.exports;const fm=rc(yu);function QR(e){const i=new Error(e);if(i.stack===void 0)try{throw i}catch{}return i}var HR=QR,hr=HR;function $R(e){return!!e&&typeof e.then=="function"}var so=$R;function YR(e,i){if(e!=null)return e;throw hr(i??"Got unexpected null or undefined")}var uo=YR;function ar(e,i,o){return i in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}class c_{getValue(){throw hr("BaseLoadable")}toPromise(){throw hr("BaseLoadable")}valueMaybe(){throw hr("BaseLoadable")}valueOrThrow(){throw hr(`Loadable expected value, but in "${this.state}" state`)}promiseMaybe(){throw hr("BaseLoadable")}promiseOrThrow(){throw hr(`Loadable expected promise, but in "${this.state}" state`)}errorMaybe(){throw hr("BaseLoadable")}errorOrThrow(){throw hr(`Loadable expected error, but in "${this.state}" state`)}is(i){return i.state===this.state&&i.contents===this.contents}map(i){throw hr("BaseLoadable")}}class GR extends c_{constructor(i){super(),ar(this,"state","hasValue"),ar(this,"contents",void 0),this.contents=i}getValue(){return this.contents}toPromise(){return Promise.resolve(this.contents)}valueMaybe(){return this.contents}valueOrThrow(){return this.contents}promiseMaybe(){}errorMaybe(){}map(i){try{const o=i(this.contents);return so(o)?Ah(o):df(o)?o:pm(o)}catch(o){return so(o)?Ah(o.next(()=>this.map(i))):u_(o)}}}class ZR extends c_{constructor(i){super(),ar(this,"state","hasError"),ar(this,"contents",void 0),this.contents=i}getValue(){throw this.contents}toPromise(){return Promise.reject(this.contents)}valueMaybe(){}promiseMaybe(){}errorMaybe(){return this.contents}errorOrThrow(){return this.contents}map(i){return this}}class PC extends c_{constructor(i){super(),ar(this,"state","loading"),ar(this,"contents",void 0),this.contents=i}getValue(){throw this.contents}toPromise(){return this.contents}valueMaybe(){}promiseMaybe(){return this.contents}promiseOrThrow(){return this.contents}errorMaybe(){}map(i){return Ah(this.contents.then(o=>{const u=i(o);if(df(u)){const d=u;switch(d.state){case"hasValue":return d.contents;case"hasError":throw d.contents;case"loading":return d.contents}}return u}).catch(o=>{if(so(o))return o.then(()=>this.map(i).contents);throw o}))}}function pm(e){return Object.freeze(new GR(e))}function u_(e){return Object.freeze(new ZR(e))}function Ah(e){return Object.freeze(new PC(e))}function RC(){return Object.freeze(new PC(new Promise(()=>{})))}function WR(e){return e.every(i=>i.state==="hasValue")?pm(e.map(i=>i.contents)):e.some(i=>i.state==="hasError")?u_(uo(e.find(i=>i.state==="hasError"),"Invalid loadable passed to loadableAll").contents):Ah(Promise.all(e.map(i=>i.contents)))}function BC(e){const o=(Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(d=>e[d])).map(d=>df(d)?d:so(d)?Ah(d):pm(d)),u=WR(o);return Array.isArray(e)?u:u.map(d=>Object.getOwnPropertyNames(e).reduce((_,b,a)=>({..._,[b]:d[a]}),{}))}function df(e){return e instanceof c_}var Ch={loadableWithValue:pm,loadableWithError:u_,loadableWithPromise:Ah,loadableLoading:RC,loadableAll:BC,isLoadable:df,RecoilLoadable:{of:e=>so(e)?Ah(e):df(e)?e:pm(e),error:e=>u_(e),loading:()=>RC(),all:BC,isLoadable:df}},qR=Ch.loadableWithValue,KR=Ch.loadableWithError,XR=Ch.loadableWithPromise,JR=Ch.loadableLoading,eB=Ch.loadableAll,tB=Ch.isLoadable,iB=Ch.RecoilLoadable,gm=Object.freeze({__proto__:null,loadableWithValue:qR,loadableWithError:KR,loadableWithPromise:XR,loadableLoading:JR,loadableAll:eB,isLoadable:tB,RecoilLoadable:iB});const t3={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 nB(e,i){var o,u;const d=(o=process.env[e])===null||o===void 0||(u=o.toLowerCase())===null||u===void 0?void 0:u.trim();if(d==null||d==="")return;if(!["true","false"].includes(d))throw hr(`process.env.${e} value must be 'true', 'false', or empty: ${d}`);i(d==="true")}function rB(e,i){var o;const u=(o=process.env[e])===null||o===void 0?void 0:o.trim();u==null||u===""||i(u.split(/\s*,\s*|\s+/))}function oB(){var e;typeof process>"u"||((e=process)===null||e===void 0?void 0:e.env)!=null&&(nB("RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED",i=>{t3.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=i}),rB("RECOIL_GKS_ENABLED",i=>{i.forEach(o=>{t3.RECOIL_GKS_ENABLED.add(o)})}))}oB();var ff=t3;function h_(e){return ff.RECOIL_GKS_ENABLED.has(e)}h_.setPass=e=>{ff.RECOIL_GKS_ENABLED.add(e)},h_.setFail=e=>{ff.RECOIL_GKS_ENABLED.delete(e)},h_.clear=()=>{ff.RECOIL_GKS_ENABLED.clear()};var qr=h_;function sB(e,i,{error:o}={}){return null}var aB=sB,i3=aB,n3,r3,o3;const lB=(n3=Cr.createMutableSource)!==null&&n3!==void 0?n3:Cr.unstable_createMutableSource,FC=(r3=Cr.useMutableSource)!==null&&r3!==void 0?r3:Cr.unstable_useMutableSource,UC=(o3=Cr.useSyncExternalStore)!==null&&o3!==void 0?o3:Cr.unstable_useSyncExternalStore;function cB(){var e;const{ReactCurrentDispatcher:i,ReactCurrentOwner:o}=Cr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;return((e=i==null?void 0:i.current)!==null&&e!==void 0?e:o.currentDispatcher).useSyncExternalStore!=null}function uB(){return qr("recoil_transition_support")?{mode:"TRANSITION_SUPPORT",early:!0,concurrent:!0}:qr("recoil_sync_external_store")&&UC!=null?{mode:"SYNC_EXTERNAL_STORE",early:!0,concurrent:!1}:qr("recoil_mutable_source")&&FC!=null&&typeof window<"u"&&!window.$disableRecoilValueMutableSource_TEMP_HACK_DO_NOT_USE?qr("recoil_suppress_rerender_in_callback")?{mode:"MUTABLE_SOURCE",early:!0,concurrent:!0}:{mode:"MUTABLE_SOURCE",early:!1,concurrent:!1}:qr("recoil_suppress_rerender_in_callback")?{mode:"LEGACY",early:!0,concurrent:!1}:{mode:"LEGACY",early:!1,concurrent:!1}}function hB(){return!1}var mm={createMutableSource:lB,useMutableSource:FC,useSyncExternalStore:UC,currentRendererSupportsUseSyncExternalStore:cB,reactMode:uB,isFastRefreshEnabled:hB};class s3{constructor(i){ar(this,"key",void 0),this.key=i}toJSON(){return{key:this.key}}}class VC extends s3{}class QC extends s3{}function dB(e){return e instanceof VC||e instanceof QC}var d_={AbstractRecoilValue:s3,RecoilState:VC,RecoilValueReadOnly:QC,isRecoilValue:dB},fB=d_.AbstractRecoilValue,pB=d_.RecoilState,gB=d_.RecoilValueReadOnly,mB=d_.isRecoilValue,pf=Object.freeze({__proto__:null,AbstractRecoilValue:fB,RecoilState:pB,RecoilValueReadOnly:gB,isRecoilValue:mB});function yB(e,i){return function*(){let o=0;for(const u of e)yield i(u,o++)}()}var f_=yB;class HC{}const _B=new HC,Eh=new Map,a3=new Map;function vB(e){return f_(e,i=>uo(a3.get(i)))}function xB(e){if(Eh.has(e)){const i=`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(i)}}function wB(e){ff.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&xB(e.key),Eh.set(e.key,e);const i=e.set==null?new pf.RecoilValueReadOnly(e.key):new pf.RecoilState(e.key);return a3.set(e.key,i),i}class $C extends Error{}function bB(e){const i=Eh.get(e);if(i==null)throw new $C(`Missing definition for RecoilValue: "${e}""`);return i}function MB(e){return Eh.get(e)}const p_=new Map;function IB(e){var i;if(!qr("recoil_memory_managament_2020"))return;const o=Eh.get(e);if(o!=null&&(i=o.shouldDeleteConfigOnRelease)!==null&&i!==void 0&&i.call(o)){var u;Eh.delete(e),(u=YC(e))===null||u===void 0||u(),p_.delete(e)}}function TB(e,i){qr("recoil_memory_managament_2020")&&(i===void 0?p_.delete(e):p_.set(e,i))}function YC(e){return p_.get(e)}var Ws={nodes:Eh,recoilValues:a3,registerNode:wB,getNode:bB,getNodeMaybe:MB,deleteNodeConfigIfPossible:IB,setConfigDeletionHandler:TB,getConfigDeletionHandler:YC,recoilValuesForKeys:vB,NodeMissingError:$C,DefaultValue:HC,DEFAULT_VALUE:_B};function DB(e,i){i()}var SB={enqueueExecution:DB};function AB(e,i){return i={exports:{}},e(i,i.exports),i.exports}var CB=AB(function(e){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_t){return typeof _t}:function(_t){return _t&&typeof Symbol=="function"&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t},o={},u=5,d=Math.pow(2,u),_=d-1,b=d/2,a=d/4,E={},j=function(gt){return function(){return gt}},V=o.hash=function(_t){var gt=typeof _t>"u"?"undefined":i(_t);if(gt==="number")return _t;gt!=="string"&&(_t+="");for(var oi=0,Yt=0,Xt=_t.length;Yt<Xt;++Yt){var mi=_t.charCodeAt(Yt);oi=(oi<<5)-oi+mi|0}return oi},ie=function(gt){return gt-=gt>>1&1431655765,gt=(gt&858993459)+(gt>>2&858993459),gt=gt+(gt>>4)&252645135,gt+=gt>>8,gt+=gt>>16,gt&127},G=function(gt,oi){return oi>>>gt&_},le=function(gt){return 1<<gt},fe=function(gt,oi){return ie(gt&oi-1)},ve=function(gt,oi,Yt,Xt){var mi=Xt;if(!gt){var Ai=Xt.length;mi=new Array(Ai);for(var Hi=0;Hi<Ai;++Hi)mi[Hi]=Xt[Hi]}return mi[oi]=Yt,mi},Ze=function(gt,oi,Yt){var Xt=Yt.length-1,mi=0,Ai=0,Hi=Yt;if(gt)mi=Ai=oi;else for(Hi=new Array(Xt);mi<oi;)Hi[Ai++]=Yt[mi++];for(++mi;mi<=Xt;)Hi[Ai++]=Yt[mi++];return gt&&(Hi.length=Xt),Hi},me=function(gt,oi,Yt,Xt){var mi=Xt.length;if(gt){for(var Ai=mi;Ai>=oi;)Xt[Ai--]=Xt[Ai];return Xt[oi]=Yt,Xt}for(var Hi=0,hn=0,en=new Array(mi+1);Hi<oi;)en[hn++]=Xt[Hi++];for(en[oi]=Yt;Hi<mi;)en[++hn]=Xt[Hi++];return en},te=1,ee=2,re=3,Me=4,we={__hamt_isEmpty:!0},We=function(gt){return gt===we||gt&&gt.__hamt_isEmpty},ot=function(gt,oi,Yt,Xt){return{type:te,edit:gt,hash:oi,key:Yt,value:Xt,_modify:Ot}},$e=function(gt,oi,Yt){return{type:ee,edit:gt,hash:oi,children:Yt,_modify:Vt}},xt=function(gt,oi,Yt){return{type:re,edit:gt,mask:oi,children:Yt,_modify:W}},ut=function(gt,oi,Yt){return{type:Me,edit:gt,size:oi,children:Yt,_modify:ne}},jt=function(gt){return gt===we||gt.type===te||gt.type===ee},St=function(gt,oi,Yt,Xt,mi){for(var Ai=[],Hi=Xt,hn=0,en=0;Hi;++en)Hi&1&&(Ai[en]=mi[hn++]),Hi>>>=1;return Ai[oi]=Yt,ut(gt,hn+1,Ai)},Jt=function(gt,oi,Yt,Xt){for(var mi=new Array(oi-1),Ai=0,Hi=0,hn=0,en=Xt.length;hn<en;++hn)if(hn!==Yt){var wn=Xt[hn];wn&&!We(wn)&&(mi[Ai++]=wn,Hi|=1<<hn)}return xt(gt,Hi,mi)},Tt=function _t(gt,oi,Yt,Xt,mi,Ai){if(Yt===mi)return $e(gt,Yt,[Ai,Xt]);var Hi=G(oi,Yt),hn=G(oi,mi);return xt(gt,le(Hi)|le(hn),Hi===hn?[_t(gt,oi+u,Yt,Xt,mi,Ai)]:Hi<hn?[Xt,Ai]:[Ai,Xt])},bt=function(gt,oi,Yt,Xt,mi,Ai,Hi,hn){for(var en=mi.length,wn=0;wn<en;++wn){var Dt=mi[wn];if(Yt(Hi,Dt.key)){var Vn=Dt.value,gr=Ai(Vn);return gr===Vn?mi:gr===E?(--hn.value,Ze(gt,wn,mi)):ve(gt,wn,ot(oi,Xt,Hi,gr),mi)}}var xr=Ai();return xr===E?mi:(++hn.value,ve(gt,en,ot(oi,Xt,Hi,xr),mi))},qt=function(gt,oi){return gt===oi.edit},Ot=function(gt,oi,Yt,Xt,mi,Ai,Hi){if(oi(Ai,this.key)){var hn=Xt(this.value);return hn===this.value?this:hn===E?(--Hi.value,we):qt(gt,this)?(this.value=hn,this):ot(gt,mi,Ai,hn)}var en=Xt();return en===E?this:(++Hi.value,Tt(gt,Yt,this.hash,this,mi,ot(gt,mi,Ai,en)))},Vt=function(gt,oi,Yt,Xt,mi,Ai,Hi){if(mi===this.hash){var hn=qt(gt,this),en=bt(hn,gt,oi,this.hash,this.children,Xt,Ai,Hi);return en===this.children?this:en.length>1?$e(gt,this.hash,en):en[0]}var wn=Xt();return wn===E?this:(++Hi.value,Tt(gt,Yt,this.hash,this,mi,ot(gt,mi,Ai,wn)))},W=function(gt,oi,Yt,Xt,mi,Ai,Hi){var hn=this.mask,en=this.children,wn=G(Yt,mi),Dt=le(wn),Vn=fe(hn,Dt),gr=hn&Dt,xr=gr?en[Vn]:we,Ge=xr._modify(gt,oi,Yt+u,Xt,mi,Ai,Hi);if(xr===Ge)return this;var q=qt(gt,this),ae=hn,de=void 0;if(gr&&We(Ge)){if(ae&=~Dt,!ae)return we;if(en.length<=2&&jt(en[Vn^1]))return en[Vn^1];de=Ze(q,Vn,en)}else if(!gr&&!We(Ge)){if(en.length>=b)return St(gt,wn,Ge,hn,en);ae|=Dt,de=me(q,Vn,Ge,en)}else de=ve(q,Vn,Ge,en);return q?(this.mask=ae,this.children=de,this):xt(gt,ae,de)},ne=function(gt,oi,Yt,Xt,mi,Ai,Hi){var hn=this.size,en=this.children,wn=G(Yt,mi),Dt=en[wn],Vn=(Dt||we)._modify(gt,oi,Yt+u,Xt,mi,Ai,Hi);if(Dt===Vn)return this;var gr=qt(gt,this),xr=void 0;if(We(Dt)&&!We(Vn))++hn,xr=ve(gr,wn,Vn,en);else if(!We(Dt)&&We(Vn)){if(--hn,hn<=a)return Jt(gt,hn,wn,en);xr=ve(gr,wn,we,en)}else xr=ve(gr,wn,Vn,en);return gr?(this.size=hn,this.children=xr,this):ut(gt,hn,xr)};we._modify=function(_t,gt,oi,Yt,Xt,mi,Ai){var Hi=Yt();return Hi===E?we:(++Ai.value,ot(_t,Xt,mi,Hi))};function T(_t,gt,oi,Yt,Xt){this._editable=_t,this._edit=gt,this._config=oi,this._root=Yt,this._size=Xt}T.prototype.setTree=function(_t,gt){return this._editable?(this._root=_t,this._size=gt,this):_t===this._root?this:new T(this._editable,this._edit,this._config,_t,gt)};var k=o.tryGetHash=function(_t,gt,oi,Yt){for(var Xt=Yt._root,mi=0,Ai=Yt._config.keyEq;;)switch(Xt.type){case te:return Ai(oi,Xt.key)?Xt.value:_t;case ee:{if(gt===Xt.hash)for(var Hi=Xt.children,hn=0,en=Hi.length;hn<en;++hn){var wn=Hi[hn];if(Ai(oi,wn.key))return wn.value}return _t}case re:{var Dt=G(mi,gt),Vn=le(Dt);if(Xt.mask&Vn){Xt=Xt.children[fe(Xt.mask,Vn)],mi+=u;break}return _t}case Me:{if(Xt=Xt.children[G(mi,gt)],Xt){mi+=u;break}return _t}default:return _t}};T.prototype.tryGetHash=function(_t,gt,oi){return k(_t,gt,oi,this)};var F=o.tryGet=function(_t,gt,oi){return k(_t,oi._config.hash(gt),gt,oi)};T.prototype.tryGet=function(_t,gt){return F(_t,gt,this)};var Q=o.getHash=function(_t,gt,oi){return k(void 0,_t,gt,oi)};T.prototype.getHash=function(_t,gt){return Q(_t,gt,this)},o.get=function(_t,gt){return k(void 0,gt._config.hash(_t),_t,gt)},T.prototype.get=function(_t,gt){return F(gt,_t,this)};var Z=o.has=function(_t,gt,oi){return k(E,_t,gt,oi)!==E};T.prototype.hasHash=function(_t,gt){return Z(_t,gt,this)};var se=o.has=function(_t,gt){return Z(gt._config.hash(_t),_t,gt)};T.prototype.has=function(_t){return se(_t,this)};var he=function(gt,oi){return gt===oi};o.make=function(_t){return new T(0,0,{keyEq:_t&&_t.keyEq||he,hash:_t&&_t.hash||V},we,0)},o.empty=o.make();var ce=o.isEmpty=function(_t){return _t&&!!We(_t._root)};T.prototype.isEmpty=function(){return ce(this)};var xe=o.modifyHash=function(_t,gt,oi,Yt){var Xt={value:Yt._size},mi=Yt._root._modify(Yt._editable?Yt._edit:NaN,Yt._config.keyEq,0,_t,gt,oi,Xt);return Yt.setTree(mi,Xt.value)};T.prototype.modifyHash=function(_t,gt,oi){return xe(oi,_t,gt,this)};var He=o.modify=function(_t,gt,oi){return xe(_t,oi._config.hash(gt),gt,oi)};T.prototype.modify=function(_t,gt){return He(gt,_t,this)};var et=o.setHash=function(_t,gt,oi,Yt){return xe(j(oi),_t,gt,Yt)};T.prototype.setHash=function(_t,gt,oi){return et(_t,gt,oi,this)};var Ue=o.set=function(_t,gt,oi){return et(oi._config.hash(_t),_t,gt,oi)};T.prototype.set=function(_t,gt){return Ue(_t,gt,this)};var Xe=j(E),Fe=o.removeHash=function(_t,gt,oi){return xe(Xe,_t,gt,oi)};T.prototype.removeHash=T.prototype.deleteHash=function(_t,gt){return Fe(_t,gt,this)};var rt=o.remove=function(_t,gt){return Fe(gt._config.hash(_t),_t,gt)};T.prototype.remove=T.prototype.delete=function(_t){return rt(_t,this)};var pt=o.beginMutation=function(_t){return new T(_t._editable+1,_t._edit+1,_t._config,_t._root,_t._size)};T.prototype.beginMutation=function(){return pt(this)};var Mt=o.endMutation=function(_t){return _t._editable=_t._editable&&_t._editable-1,_t};T.prototype.endMutation=function(){return Mt(this)};var Et=o.mutate=function(_t,gt){var oi=pt(gt);return _t(oi),Mt(oi)};T.prototype.mutate=function(_t){return Et(_t,this)};var di=function(gt){return gt&&ei(gt[0],gt[1],gt[2],gt[3],gt[4])},ei=function(gt,oi,Yt,Xt,mi){for(;Yt<gt;){var Ai=oi[Yt++];if(Ai&&!We(Ai))return Di(Ai,Xt,[gt,oi,Yt,Xt,mi])}return di(mi)},Di=function(gt,oi,Yt){switch(gt.type){case te:return{value:oi(gt),rest:Yt};case ee:case Me:case re:var Xt=gt.children;return ei(Xt.length,Xt,0,oi,Yt);default:return di(Yt)}},si={done:!0};function xi(_t){this.v=_t}xi.prototype.next=function(){if(!this.v)return si;var _t=this.v;return this.v=di(_t.rest),_t},xi.prototype[Symbol.iterator]=function(){return this};var zi=function(gt,oi){return new xi(Di(gt._root,oi))},Ii=function(gt){return[gt.key,gt.value]},Ht=o.entries=function(_t){return zi(_t,Ii)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return Ht(this)};var ci=function(gt){return gt.key},bi=o.keys=function(_t){return zi(_t,ci)};T.prototype.keys=function(){return bi(this)};var Ni=function(gt){return gt.value},qi=o.values=T.prototype.values=function(_t){return zi(_t,Ni)};T.prototype.values=function(){return qi(this)};var an=o.fold=function(_t,gt,oi){var Yt=oi._root;if(Yt.type===te)return _t(gt,Yt.value,Yt.key);for(var Xt=[Yt.children],mi=void 0;mi=Xt.pop();)for(var Ai=0,Hi=mi.length;Ai<Hi;){var hn=mi[Ai++];hn&&hn.type&&(hn.type===te?gt=_t(gt,hn.value,hn.key):Xt.push(hn.children))}return gt};T.prototype.fold=function(_t,gt){return an(_t,gt,this)};var ln=o.forEach=function(_t,gt){return an(function(oi,Yt,Xt){return _t(Yt,Xt,gt)},null,gt)};T.prototype.forEach=function(_t){return ln(_t,this)};var On=o.count=function(_t){return _t._size};T.prototype.count=function(){return On(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=o:(void 0).hamt=o});class EB{constructor(i){ar(this,"_map",void 0),this._map=new Map(i==null?void 0:i.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(i){return this._map.get(i)}has(i){return this._map.has(i)}set(i,o){return this._map.set(i,o),this}delete(i){return this._map.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._map)}}class l3{constructor(i){if(ar(this,"_hamt",CB.empty.beginMutation()),i instanceof l3){const o=i._hamt.endMutation();i._hamt=o.beginMutation(),this._hamt=o.beginMutation()}else if(i)for(const[o,u]of i.entries())this._hamt.set(o,u)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(i){return this._hamt.get(i)}has(i){return this._hamt.has(i)}set(i,o){return this._hamt.set(i,o),this}delete(i){return this._hamt.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._hamt)}}function c3(e){return qr("recoil_hamt_2020")?new l3(e):new EB(e)}var NB={persistentMap:c3},LB=NB.persistentMap,zB=Object.freeze({__proto__:null,persistentMap:LB});function OB(e,...i){const o=new Set;e:for(const u of e){for(const d of i)if(d.has(u))continue e;o.add(u)}return o}var ym=OB;function kB(e,i){const o=new Map;return e.forEach((u,d)=>{o.set(d,i(u,d))}),o}var g_=kB;function jB(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function PB(e){return{nodeDeps:g_(e.nodeDeps,i=>new Set(i)),nodeToNodeSubscriptions:g_(e.nodeToNodeSubscriptions,i=>new Set(i))}}function u3(e,i,o,u){const{nodeDeps:d,nodeToNodeSubscriptions:_}=o,b=d.get(e);if(b&&u&&b!==u.nodeDeps.get(e))return;d.set(e,i);const a=b==null?i:ym(i,b);for(const E of a)_.has(E)||_.set(E,new Set),uo(_.get(E)).add(e);if(b){const E=ym(b,i);for(const j of E){if(!_.has(j))return;const V=uo(_.get(j));V.delete(e),V.size===0&&_.delete(j)}}}function RB(e,i,o,u){var d,_,b,a;const E=o.getState();u===E.currentTree.version||u===((d=E.nextTree)===null||d===void 0?void 0:d.version)||((_=E.previousTree)===null||_===void 0||_.version);const j=o.getGraph(u);if(u3(e,i,j),u===((b=E.previousTree)===null||b===void 0?void 0:b.version)){const ie=o.getGraph(E.currentTree.version);u3(e,i,ie,j)}if(u===((a=E.previousTree)===null||a===void 0?void 0:a.version)||u===E.currentTree.version){var V;const ie=(V=E.nextTree)===null||V===void 0?void 0:V.version;if(ie!==void 0){const G=o.getGraph(ie);u3(e,i,G,j)}}}var _m={cloneGraph:PB,graph:jB,saveDepsToStore:RB};let BB=0;const FB=()=>BB++;let UB=0;const VB=()=>UB++;let QB=0;var m_={getNextTreeStateVersion:FB,getNextStoreID:VB,getNextComponentID:()=>QB++};const{persistentMap:GC}=zB,{graph:HB}=_m,{getNextTreeStateVersion:ZC}=m_;function WC(){const e=ZC();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:GC(),nonvalidatedAtoms:GC()}}function $B(){const e=WC();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,HB()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var qC={makeEmptyTreeState:WC,makeEmptyStoreState:$B,getNextTreeStateVersion:ZC};class KC{}function YB(){return new KC}var y_={RetentionZone:KC,retentionZone:YB};function GB(e,i){const o=new Set(e);return o.add(i),o}function ZB(e,i){const o=new Set(e);return o.delete(i),o}function WB(e,i,o){const u=new Map(e);return u.set(i,o),u}function qB(e,i,o){const u=new Map(e);return u.set(i,o(u.get(i))),u}function KB(e,i){const o=new Map(e);return o.delete(i),o}function XB(e,i){const o=new Map(e);return i.forEach(u=>o.delete(u)),o}var XC={setByAddingToSet:GB,setByDeletingFromSet:ZB,mapBySettingInMap:WB,mapByUpdatingInMap:qB,mapByDeletingFromMap:KB,mapByDeletingMultipleFromMap:XB};function*JB(e,i){let o=0;for(const u of e)i(u,o++)&&(yield u)}var h3=JB;function eF(e,i){return new Proxy(e,{get:(u,d)=>(!(d in u)&&d in i&&(u[d]=i[d]()),u[d]),ownKeys:u=>Object.keys(u)})}var JC=eF;const{getNode:vm,getNodeMaybe:tF,recoilValuesForKeys:e6}=Ws,{RetentionZone:t6}=y_,{setByAddingToSet:iF}=XC,nF=Object.freeze(new Set);class rF extends Error{}function oF(e,i,o){if(!qr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:u}=e.getState().retention;function d(_){let b=u.get(_);b||u.set(_,b=new Set),b.add(i)}if(o instanceof t6)d(o);else if(Array.isArray(o))for(const _ of o)d(_);return()=>{if(!qr("recoil_memory_managament_2020"))return;const{retention:_}=e.getState();function b(a){const E=_.nodesRetainedByZone.get(a);E==null||E.delete(i),E&&E.size===0&&_.nodesRetainedByZone.delete(a)}if(o instanceof t6)b(o);else if(Array.isArray(o))for(const a of o)b(a)}}function d3(e,i,o,u){const d=e.getState();if(d.nodeCleanupFunctions.has(o))return;const _=vm(o),b=oF(e,o,_.retainedBy),a=_.init(e,i,u);d.nodeCleanupFunctions.set(o,()=>{a(),b()})}function sF(e,i,o){d3(e,e.getState().currentTree,i,o)}function aF(e,i){var o;const u=e.getState();(o=u.nodeCleanupFunctions.get(i))===null||o===void 0||o(),u.nodeCleanupFunctions.delete(i)}function lF(e,i,o){return d3(e,i,o,"get"),vm(o).get(e,i)}function i6(e,i,o){return vm(o).peek(e,i)}function cF(e,i,o){var u;const d=tF(i);return d==null||(u=d.invalidate)===null||u===void 0||u.call(d,e),{...e,atomValues:e.atomValues.clone().delete(i),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(i,o),dirtyAtoms:iF(e.dirtyAtoms,i)}}function uF(e,i,o,u){const d=vm(o);if(d.set==null)throw new rF(`Attempt to set read-only RecoilValue: ${o}`);const _=d.set;return d3(e,i,o,"set"),_(e,i,u)}function hF(e,i,o){const u=e.getState(),d=e.getGraph(i.version),_=vm(o).nodeType;return JC({type:_},{loadable:()=>i6(e,i,o),isActive:()=>u.knownAtoms.has(o)||u.knownSelectors.has(o),isSet:()=>_==="selector"?!1:i.atomValues.has(o),isModified:()=>i.dirtyAtoms.has(o),deps:()=>{var b;return e6((b=d.nodeDeps.get(o))!==null&&b!==void 0?b:[])},subscribers:()=>{var b,a;return{nodes:e6(h3(n6(e,i,new Set([o])),E=>E!==o)),components:f_((b=(a=u.nodeToComponentSubscriptions.get(o))===null||a===void 0?void 0:a.values())!==null&&b!==void 0?b:[],([E])=>({name:E}))}}})}function n6(e,i,o){const u=new Set,d=Array.from(o),_=e.getGraph(i.version);for(let a=d.pop();a;a=d.pop()){var b;u.add(a);const E=(b=_.nodeToNodeSubscriptions.get(a))!==null&&b!==void 0?b:nF;for(const j of E)u.has(j)||d.push(j)}return u}var _u={getNodeLoadable:lF,peekNodeLoadable:i6,setNodeValue:uF,initializeNode:sF,cleanUpNode:aF,setUnvalidatedAtomValue_DEPRECATED:cF,peekNodeInfo:hF,getDownstreamNodes:n6};let r6=null;function dF(e){r6=e}function fF(){var e;(e=r6)===null||e===void 0||e()}var o6={setInvalidateMemoizedSnapshot:dF,invalidateMemoizedSnapshot:fF};const{getDownstreamNodes:pF,getNodeLoadable:s6,setNodeValue:gF}=_u,{getNextComponentID:mF}=m_,{getNode:yF,getNodeMaybe:a6}=Ws,{DefaultValue:f3}=Ws,{reactMode:_F}=mm,{AbstractRecoilValue:vF,RecoilState:xF,RecoilValueReadOnly:wF,isRecoilValue:bF}=pf,{invalidateMemoizedSnapshot:MF}=o6;function IF(e,{key:i},o=e.getState().currentTree){var u,d;const _=e.getState();o.version===_.currentTree.version||o.version===((u=_.nextTree)===null||u===void 0?void 0:u.version)||(o.version,(d=_.previousTree)===null||d===void 0||d.version);const b=s6(e,o,i);return b.state==="loading"&&b.contents.catch(()=>{}),b}function TF(e,i){const o=e.clone();return i.forEach((u,d)=>{u.state==="hasValue"&&u.contents instanceof f3?o.delete(d):o.set(d,u)}),o}function DF(e,i,{key:o},u){if(typeof u=="function"){const d=s6(e,i,o);if(d.state==="loading"){const _=`Tried to set atom or selector "${o}" using an updater function while the current state is pending, this is not currently supported.`;throw hr(_)}else if(d.state==="hasError")throw d.contents;return u(d.contents)}else return u}function SF(e,i,o){if(o.type==="set"){const{recoilValue:d,valueOrUpdater:_}=o,b=DF(e,i,d,_),a=gF(e,i,d.key,b);for(const[E,j]of a.entries())p3(i,E,j)}else if(o.type==="setLoadable"){const{recoilValue:{key:d},loadable:_}=o;p3(i,d,_)}else if(o.type==="markModified"){const{recoilValue:{key:d}}=o;i.dirtyAtoms.add(d)}else if(o.type==="setUnvalidated"){var u;const{recoilValue:{key:d},unvalidatedValue:_}=o,b=a6(d);b==null||(u=b.invalidate)===null||u===void 0||u.call(b,i),i.atomValues.delete(d),i.nonvalidatedAtoms.set(d,_),i.dirtyAtoms.add(d)}else i3(`Unknown action ${o.type}`)}function p3(e,i,o){o.state==="hasValue"&&o.contents instanceof f3?e.atomValues.delete(i):e.atomValues.set(i,o),e.dirtyAtoms.add(i),e.nonvalidatedAtoms.delete(i)}function l6(e,i){e.replaceState(o=>{const u=c6(o);for(const d of i)SF(e,u,d);return u6(e,u),MF(),u})}function __(e,i){if(xm.length){const o=xm[xm.length-1];let u=o.get(e);u||o.set(e,u=[]),u.push(i)}else l6(e,[i])}const xm=[];function AF(){const e=new Map;return xm.push(e),()=>{for(const[i,o]of e)l6(i,o);xm.pop()}}function c6(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function u6(e,i){const o=pF(e,i,i.dirtyAtoms);for(const _ of o){var u,d;(u=a6(_))===null||u===void 0||(d=u.invalidate)===null||d===void 0||d.call(u,i)}}function h6(e,i,o){__(e,{type:"set",recoilValue:i,valueOrUpdater:o})}function CF(e,i,o){if(o instanceof f3)return h6(e,i,o);__(e,{type:"setLoadable",recoilValue:i,loadable:o})}function EF(e,i){__(e,{type:"markModified",recoilValue:i})}function NF(e,i,o){__(e,{type:"setUnvalidated",recoilValue:i,unvalidatedValue:o})}function LF(e,{key:i},o,u=null){const d=mF(),_=e.getState();_.nodeToComponentSubscriptions.has(i)||_.nodeToComponentSubscriptions.set(i,new Map),uo(_.nodeToComponentSubscriptions.get(i)).set(d,[u??"<not captured>",o]);const b=_F();if(b.early&&(b.mode==="LEGACY"||b.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(i)&&o(a)}return{release:()=>{const a=e.getState(),E=a.nodeToComponentSubscriptions.get(i);E===void 0||!E.has(d)||(E.delete(d),E.size===0&&a.nodeToComponentSubscriptions.delete(i))}}}function zF(e,i){var o;const{currentTree:u}=e.getState(),d=yF(i.key);(o=d.clearCache)===null||o===void 0||o.call(d,e,u)}var wl={RecoilValueReadOnly:wF,AbstractRecoilValue:vF,RecoilState:xF,getRecoilValueAsLoadable:IF,setRecoilValue:h6,setRecoilValueLoadable:CF,markRecoilValueModified:EF,setUnvalidatedRecoilValue:NF,subscribeToRecoilValue:LF,isRecoilValue:bF,applyAtomValueWrites:TF,batchStart:AF,writeLoadableToTreeState:p3,invalidateDownstreams:u6,copyTreeState:c6,refreshRecoilValue:zF};function OF(e,i,o){const u=e.entries();let d=u.next();for(;!d.done;){const _=d.value;if(i.call(o,_[1],_[0],e))return!0;d=u.next()}return!1}var kF=OF;const{cleanUpNode:jF}=_u,{deleteNodeConfigIfPossible:PF,getNode:d6}=Ws,{RetentionZone:f6}=y_,RF=12e4,p6=new Set;function g6(e,i){const o=e.getState(),u=o.currentTree;if(o.nextTree)return;const d=new Set;for(const b of i)if(b instanceof f6)for(const a of VF(o,b))d.add(a);else d.add(b);const _=BF(e,d);for(const b of _)UF(e,u,b)}function BF(e,i){const o=e.getState(),u=o.currentTree,d=e.getGraph(u.version),_=new Set,b=new Set;return a(i),_;function a(E){const j=new Set,V=FF(e,u,E,_,b);for(const fe of V){var ie;if(d6(fe).retainedBy==="recoilRoot"){b.add(fe);continue}if(((ie=o.retention.referenceCounts.get(fe))!==null&&ie!==void 0?ie:0)>0){b.add(fe);continue}if(m6(fe).some(Ze=>o.retention.referenceCounts.get(Ze))){b.add(fe);continue}const ve=d.nodeToNodeSubscriptions.get(fe);if(ve&&kF(ve,Ze=>b.has(Ze))){b.add(fe);continue}_.add(fe),j.add(fe)}const G=new Set;for(const fe of j)for(const ve of(le=d.nodeDeps.get(fe))!==null&&le!==void 0?le:p6){var le;_.has(ve)||G.add(ve)}G.size&&a(G)}}function FF(e,i,o,u,d){const _=e.getGraph(i.version),b=[],a=new Set;for(;o.size>0;)E(uo(o.values().next().value));return b;function E(j){if(u.has(j)||d.has(j)){o.delete(j);return}if(a.has(j))return;const V=_.nodeToNodeSubscriptions.get(j);if(V)for(const ie of V)E(ie);a.add(j),o.delete(j),b.push(j)}}function UF(e,i,o){if(!qr("recoil_memory_managament_2020"))return;jF(e,o);const u=e.getState();u.knownAtoms.delete(o),u.knownSelectors.delete(o),u.nodeTransactionSubscriptions.delete(o),u.retention.referenceCounts.delete(o);const d=m6(o);for(const E of d){var _;(_=u.retention.nodesRetainedByZone.get(E))===null||_===void 0||_.delete(o)}i.atomValues.delete(o),i.dirtyAtoms.delete(o),i.nonvalidatedAtoms.delete(o);const b=u.graphsByVersion.get(i.version);if(b){const E=b.nodeDeps.get(o);if(E!==void 0){b.nodeDeps.delete(o);for(const j of E){var a;(a=b.nodeToNodeSubscriptions.get(j))===null||a===void 0||a.delete(o)}}b.nodeToNodeSubscriptions.delete(o)}PF(o)}function VF(e,i){var o;return(o=e.retention.nodesRetainedByZone.get(i))!==null&&o!==void 0?o:p6}function m6(e){const i=d6(e).retainedBy;return i===void 0||i==="components"||i==="recoilRoot"?[]:i instanceof f6?[i]:i}function QF(e,i){const o=e.getState();o.nextTree?o.retention.retainablesToCheckForRelease.add(i):g6(e,new Set([i]))}function HF(e,i,o){var u;if(!qr("recoil_memory_managament_2020"))return;const d=e.getState().retention.referenceCounts,_=((u=d.get(i))!==null&&u!==void 0?u:0)+o;_===0?y6(e,i):d.set(i,_)}function y6(e,i){if(!qr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(i),QF(e,i)}function $F(e){if(!qr("recoil_memory_managament_2020"))return;const i=e.getState();g6(e,i.retention.retainablesToCheckForRelease),i.retention.retainablesToCheckForRelease.clear()}function YF(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:RF,updateRetainCount:HF,updateRetainCountToZero:y6,releaseScheduledRetainablesNow:$F,retainedByOptionWithDefault:YF};const{unstable_batchedUpdates:GF}=fm;var ZF={unstable_batchedUpdates:GF};const{unstable_batchedUpdates:WF}=ZF;var qF={unstable_batchedUpdates:WF};const{batchStart:KF}=wl,{unstable_batchedUpdates:XF}=qF;let g3=XF||(e=>e());var v_={getBatcher:()=>g3,setBatcher:e=>{g3=e},batchUpdates:e=>{g3(()=>{let i=()=>{};try{i=KF(),e()}finally{i()}})}};function*JF(e){for(const i of e)for(const o of i)yield o}var _6=JF;const v6=typeof Window>"u"||typeof window>"u",eU=e=>!v6&&(e===window||e instanceof Window),tU=typeof navigator<"u"&&navigator.product==="ReactNative";var x_={isSSR:v6,isReactNative:tU,isWindow:eU};function iU(e,i){let o;return(...u)=>{o||(o={});const d=i(...u);return Object.hasOwnProperty.call(o,d)||(o[d]=e(...u)),o[d]}}function nU(e,i){let o,u;return(...d)=>{const _=i(...d);return o===_||(o=_,u=e(...d)),u}}function rU(e,i){let o,u;return[(...b)=>{const a=i(...b);return o===a||(o=a,u=e(...b)),u},()=>{o=null}]}var oU={memoizeWithArgsHash:iU,memoizeOneWithArgsHash:nU,memoizeOneWithArgsHashAndInvalidation:rU};const{batchUpdates:m3}=v_,{initializeNode:sU,peekNodeInfo:aU}=_u,{graph:lU}=_m,{getNextStoreID:cU}=m_,{DEFAULT_VALUE:uU,recoilValues:x6,recoilValuesForKeys:w6}=Ws,{AbstractRecoilValue:hU,getRecoilValueAsLoadable:dU,setRecoilValue:b6,setUnvalidatedRecoilValue:fU}=wl,{updateRetainCount:w_}=Nh,{setInvalidateMemoizedSnapshot:pU}=o6,{getNextTreeStateVersion:gU,makeEmptyStoreState:mU}=qC,{isSSR:yU}=x_,{memoizeOneWithArgsHashAndInvalidation:_U}=oU;class b_{constructor(i,o){ar(this,"_store",void 0),ar(this,"_refCount",1),ar(this,"getLoadable",u=>(this.checkRefCount_INTERNAL(),dU(this._store,u))),ar(this,"getPromise",u=>(this.checkRefCount_INTERNAL(),this.getLoadable(u).toPromise())),ar(this,"getNodes_UNSTABLE",u=>{if(this.checkRefCount_INTERNAL(),(u==null?void 0:u.isModified)===!0){if((u==null?void 0:u.isInitialized)===!1)return[];const b=this._store.getState().currentTree;return w6(b.dirtyAtoms)}const d=this._store.getState().knownAtoms,_=this._store.getState().knownSelectors;return(u==null?void 0:u.isInitialized)==null?x6.values():u.isInitialized===!0?w6(_6([d,_])):h3(x6.values(),({key:b})=>!d.has(b)&&!_.has(b))}),ar(this,"getInfo_UNSTABLE",({key:u})=>(this.checkRefCount_INTERNAL(),aU(this._store,this._store.getState().currentTree,u))),ar(this,"map",u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return u(d),d}),ar(this,"asyncMap",async u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return d.retain(),await u(d),d.autoRelease_INTERNAL(),d}),this._store={storeID:cU(),parentStoreID:o,getState:()=>i,replaceState:u=>{i.currentTree=u(i.currentTree)},getGraph:u=>{const d=i.graphsByVersion;if(d.has(u))return uo(d.get(u));const _=lU();return d.set(u,_),_},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw hr("Cannot subscribe to Snapshots")}};for(const u of this._store.getState().knownAtoms)sU(this._store,u,"get"),w_(this._store,u,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let i=!1;return()=>{i||(i=!0,this._release())}}autoRelease_INTERNAL(){yU||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(i=>i()),this._store.getState().nodeCleanupFunctions.clear(),!qr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){qr("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 M6(e,i,o=!1){const u=e.getState(),d=o?gU():i.version;return{currentTree:{version:o?d:i.version,stateID:o?d:i.stateID,transactionMetadata:{...i.transactionMetadata},dirtyAtoms:new Set(i.dirtyAtoms),atomValues:i.atomValues.clone(),nonvalidatedAtoms:i.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(u.knownAtoms),knownSelectors:new Set(u.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(d,e.getGraph(i.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(f_(u.nodeCleanupFunctions.entries(),([_])=>[_,()=>{}]))}}function vU(e){const i=new b_(mU());return e!=null?i.map(e):i}const[I6,T6]=_U((e,i)=>{var o;const u=e.getState(),d=i==="latest"?(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree:uo(u.previousTree);return new b_(M6(e,d),e.storeID)},(e,i)=>{var o,u;return String(i)+String(e.storeID)+String((o=e.getState().nextTree)===null||o===void 0?void 0:o.version)+String(e.getState().currentTree.version)+String((u=e.getState().previousTree)===null||u===void 0?void 0:u.version)});pU(T6);function xU(e,i="latest"){const o=I6(e,i);return o.isRetained()?o:(T6(),I6(e,i))}class y3 extends b_{constructor(i,o){super(M6(i.getStore_INTERNAL(),i.getStore_INTERNAL().getState().currentTree,!0),i.getStoreID()),ar(this,"_batch",void 0),ar(this,"set",(u,d)=>{this.checkRefCount_INTERNAL();const _=this.getStore_INTERNAL();this._batch(()=>{w_(_,u.key,1),b6(this.getStore_INTERNAL(),u,d)})}),ar(this,"reset",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{w_(d,u.key,1),b6(this.getStore_INTERNAL(),u,uU)})}),ar(this,"setUnvalidatedAtomValues_DEPRECATED",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();m3(()=>{for(const[_,b]of u.entries())w_(d,_,1),fU(d,new hU(_),b)})}),this._batch=o}}var M_={Snapshot:b_,MutableSnapshot:y3,freshSnapshot:vU,cloneSnapshot:xU},wU=M_.Snapshot,bU=M_.MutableSnapshot,MU=M_.freshSnapshot,IU=M_.cloneSnapshot,I_=Object.freeze({__proto__:null,Snapshot:wU,MutableSnapshot:bU,freshSnapshot:MU,cloneSnapshot:IU});function TU(...e){const i=new Set;for(const o of e)for(const u of o)i.add(u);return i}var DU=TU;const{useRef:SU}=Cr;function AU(e){const i=SU(e);return i.current===e&&typeof e=="function"&&(i.current=e()),i}var D6=AU;const{getNextTreeStateVersion:CU,makeEmptyStoreState:S6}=qC,{cleanUpNode:EU,getDownstreamNodes:NU,initializeNode:LU,setNodeValue:zU,setUnvalidatedAtomValue_DEPRECATED:OU}=_u,{graph:kU}=_m,{cloneGraph:jU}=_m,{getNextStoreID:A6}=m_,{createMutableSource:_3,reactMode:C6}=mm,{applyAtomValueWrites:PU}=wl,{releaseScheduledRetainablesNow:E6}=Nh,{freshSnapshot:RU}=I_,{useCallback:BU,useContext:N6,useEffect:v3,useMemo:FU,useRef:UU,useState:VU}=Cr;function wm(){throw hr("This component must be used inside a <RecoilRoot> component.")}const L6=Object.freeze({storeID:A6(),getState:wm,replaceState:wm,getGraph:wm,subscribeToTransactions:wm,addTransactionMetadata:wm});let x3=!1;function z6(e){if(x3)throw hr("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const i=e.getState();if(i.nextTree===null){qr("recoil_memory_managament_2020")&&qr("recoil_release_on_cascading_update_killswitch_2021")&&i.commitDepth>0&&E6(e);const o=i.currentTree.version,u=CU();i.nextTree={...i.currentTree,version:u,stateID:u,dirtyAtoms:new Set,transactionMetadata:{}},i.graphsByVersion.set(u,jU(uo(i.graphsByVersion.get(o))))}}const O6=Cr.createContext({current:L6}),T_=()=>N6(O6),k6=Cr.createContext(null);function QU(){return N6(k6)}function w3(e,i,o){const u=NU(e,o,o.dirtyAtoms);for(const d of u){const _=i.nodeToComponentSubscriptions.get(d);if(_)for(const[b,[a,E]]of _)E(o)}}function j6(e){const i=e.getState(),o=i.currentTree,u=o.dirtyAtoms;if(u.size){for(const[d,_]of i.nodeTransactionSubscriptions)if(u.has(d))for(const[b,a]of _)a(e);for(const[d,_]of i.transactionSubscriptions)_(e);(!C6().early||i.suspendedComponentResolvers.size>0)&&(w3(e,i,o),i.suspendedComponentResolvers.forEach(d=>d()),i.suspendedComponentResolvers.clear())}i.queuedComponentCallbacks_DEPRECATED.forEach(d=>d(o)),i.queuedComponentCallbacks_DEPRECATED.splice(0,i.queuedComponentCallbacks_DEPRECATED.length)}function HU(e){const i=e.getState();i.commitDepth++;try{const{nextTree:o}=i;if(o==null)return;i.previousTree=i.currentTree,i.currentTree=o,i.nextTree=null,j6(e),i.previousTree!=null?i.graphsByVersion.delete(i.previousTree.version):i3("Ended batch with no previous state, which is unexpected","recoil"),i.previousTree=null,qr("recoil_memory_managament_2020")&&o==null&&E6(e)}finally{i.commitDepth--}}function $U({setNotifyBatcherOfChange:e}){const i=T_(),[,o]=VU([]);return e(()=>o({})),v3(()=>(e(()=>o({})),()=>{e(()=>{})}),[e]),v3(()=>{SB.enqueueExecution("Batcher",()=>{HU(i.current)})}),null}function YU(e,i){const o=S6();return i({set:(u,d)=>{const _=o.currentTree,b=zU(e,_,u.key,d),a=new Set(b.keys()),E=_.nonvalidatedAtoms.clone();for(const j of a)E.delete(j);o.currentTree={..._,dirtyAtoms:DU(_.dirtyAtoms,a),atomValues:PU(_.atomValues,b),nonvalidatedAtoms:E}},setUnvalidatedAtomValues:u=>{u.forEach((d,_)=>{o.currentTree=OU(o.currentTree,_,d)})}}),o}function GU(e){const i=RU(e),o=i.getStore_INTERNAL().getState();return i.retain(),o.nodeCleanupFunctions.forEach(u=>u()),o.nodeCleanupFunctions.clear(),o}let P6=0;function ZU({initializeState_DEPRECATED:e,initializeState:i,store_INTERNAL:o,children:u}){let d;const _=le=>{const fe=d.current.graphsByVersion;if(fe.has(le))return uo(fe.get(le));const ve=kU();return fe.set(le,ve),ve},b=(le,fe)=>{if(fe==null){const{transactionSubscriptions:ve}=ie.current.getState(),Ze=P6++;return ve.set(Ze,le),{release:()=>{ve.delete(Ze)}}}else{const{nodeTransactionSubscriptions:ve}=ie.current.getState();ve.has(fe)||ve.set(fe,new Map);const Ze=P6++;return uo(ve.get(fe)).set(Ze,le),{release:()=>{const me=ve.get(fe);me&&(me.delete(Ze),me.size===0&&ve.delete(fe))}}}},a=le=>{z6(ie.current);for(const fe of Object.keys(le))uo(ie.current.getState().nextTree).transactionMetadata[fe]=le[fe]},E=le=>{z6(ie.current);const fe=uo(d.current.nextTree);let ve;try{x3=!0,ve=le(fe)}finally{x3=!1}ve!==fe&&(d.current.nextTree=ve,C6().early&&w3(ie.current,d.current,ve),uo(j.current)())},j=UU(null),V=BU(le=>{j.current=le},[j]),ie=D6(()=>o??{storeID:A6(),getState:()=>d.current,replaceState:E,getGraph:_,subscribeToTransactions:b,addTransactionMetadata:a});o!=null&&(ie.current=o),d=D6(()=>e!=null?YU(ie.current,e):i!=null?GU(i):S6());const G=FU(()=>_3==null?void 0:_3(d,()=>d.current.currentTree.version),[d]);return v3(()=>{const le=ie.current;for(const fe of new Set(le.getState().knownAtoms))LU(le,fe,"get");return()=>{for(const fe of le.getState().knownAtoms)EU(le,fe)}},[ie]),Cr.createElement(O6.Provider,{value:ie},Cr.createElement(k6.Provider,{value:G},Cr.createElement($U,{setNotifyBatcherOfChange:V}),u))}function WU(e){const{override:i,...o}=e,u=T_();return i===!1&&u.current!==L6?e.children:Cr.createElement(ZU,o)}function qU(){return T_().current.storeID}var gc={RecoilRoot:WU,useStoreRef:T_,useRecoilMutableSource:QU,useRecoilStoreID:qU,notifyComponents_FOR_TESTING:w3,sendEndOfBatchNotifications_FOR_TESTING:j6};function KU(e,i){if(e===i)return!0;if(e.length!==i.length)return!1;for(let o=0,u=e.length;o<u;o++)if(e[o]!==i[o])return!1;return!0}var XU=KU;const{useEffect:JU,useRef:eV}=Cr;function tV(e){const i=eV();return JU(()=>{i.current=e}),i.current}var R6=tV;const{useStoreRef:iV}=gc,{SUSPENSE_TIMEOUT_MS:nV}=Nh,{updateRetainCount:bm}=Nh,{RetentionZone:rV}=y_,{useEffect:oV,useRef:sV}=Cr,{isSSR:B6}=x_;function aV(e){if(qr("recoil_memory_managament_2020"))return lV(e)}function lV(e){const o=(Array.isArray(e)?e:[e]).map(b=>b instanceof rV?b:b.key),u=iV();oV(()=>{if(!qr("recoil_memory_managament_2020"))return;const b=u.current;if(d.current&&!B6)window.clearTimeout(d.current),d.current=null;else for(const a of o)bm(b,a,1);return()=>{for(const a of o)bm(b,a,-1)}},[u,...o]);const d=sV(),_=R6(o);if(!B6&&(_===void 0||!XU(_,o))){const b=u.current;for(const a of o)bm(b,a,1);if(_)for(const a of _)bm(b,a,-1);d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{d.current=null;for(const a of o)bm(b,a,-1)},nV)}}var b3=aV;function cV(){return"<component name not available>"}var Mm=cV;const{batchUpdates:uV}=v_,{DEFAULT_VALUE:F6}=Ws,{currentRendererSupportsUseSyncExternalStore:hV,reactMode:gf,useMutableSource:dV,useSyncExternalStore:fV}=mm,{useRecoilMutableSource:pV,useStoreRef:bl}=gc,{AbstractRecoilValue:M3,getRecoilValueAsLoadable:Im,setRecoilValue:D_,setUnvalidatedRecoilValue:gV,subscribeToRecoilValue:mf}=wl,{useCallback:qs,useEffect:yf,useMemo:U6,useRef:Tm,useState:I3}=Cr,{setByAddingToSet:mV}=XC,{isSSR:yV}=x_;function T3(e,i,o){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(d=>{const _=o.current.getState().suspendedComponentResolvers;_.add(d),yV&&so(e.contents)&&e.contents.finally(()=>{_.delete(d)})}):e.state==="hasError"?e.contents:hr(`Invalid value of loadable atom "${i.key}"`)}function _V(){const e=Mm(),i=bl(),[,o]=I3([]),u=Tm(new Set);u.current=new Set;const d=Tm(new Set),_=Tm(new Map),b=qs(E=>{const j=_.current.get(E);j&&(j.release(),_.current.delete(E))},[_]),a=qs((E,j)=>{_.current.has(j)&&o([])},[]);return yf(()=>{const E=i.current;ym(u.current,d.current).forEach(j=>{if(_.current.has(j))return;const V=mf(E,new M3(j),G=>a(G,j),e);_.current.set(j,V),E.getState().nextTree?E.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(E.getState(),j)}):a(E.getState(),j)}),ym(d.current,u.current).forEach(j=>{b(j)}),d.current=u.current}),yf(()=>{const E=_.current;return ym(u.current,new Set(E.keys())).forEach(j=>{const V=mf(i.current,new M3(j),ie=>a(ie,j),e);E.set(j,V)}),()=>E.forEach((j,V)=>b(V))},[e,i,b,a]),U6(()=>{function E(fe){return ve=>{D_(i.current,fe,ve)}}function j(fe){return()=>D_(i.current,fe,F6)}function V(fe){var ve;u.current.has(fe.key)||(u.current=mV(u.current,fe.key));const Ze=i.current.getState();return Im(i.current,fe,gf().early&&(ve=Ze.nextTree)!==null&&ve!==void 0?ve:Ze.currentTree)}function ie(fe){const ve=V(fe);return T3(ve,fe,i)}function G(fe){return[ie(fe),E(fe)]}function le(fe){return[V(fe),E(fe)]}return{getRecoilValue:ie,getRecoilValueLoadable:V,getRecoilState:G,getRecoilStateLoadable:le,getSetRecoilState:E,getResetRecoilState:j}},[u,i])}const vV={current:0};function xV(e){const i=bl(),o=Mm(),u=qs(()=>{var a;const E=i.current,j=E.getState(),V=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return{loadable:Im(E,e,V),key:e.key}},[i,e]),d=qs(a=>{let E;return()=>{var j,V;const ie=a();return(j=E)!==null&&j!==void 0&&j.loadable.is(ie.loadable)&&((V=E)===null||V===void 0?void 0:V.key)===ie.key?E:(E=ie,ie)}},[]),_=U6(()=>d(u),[u,d]),b=qs(a=>{const E=i.current;return mf(E,e,a,o).release},[i,e,o]);return fV(b,_,_).loadable}function wV(e){const i=bl(),o=qs(()=>{var j;const V=i.current,ie=V.getState(),G=gf().early&&(j=ie.nextTree)!==null&&j!==void 0?j:ie.currentTree;return Im(V,e,G)},[i,e]),u=qs(()=>o(),[o]),d=Mm(),_=qs((j,V)=>{const ie=i.current;return mf(ie,e,()=>{if(!qr("recoil_suppress_rerender_in_callback"))return V();const le=o();E.current.is(le)||V(),E.current=le},d).release},[i,e,d,o]),b=pV();if(b==null)throw hr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=dV(b,u,_),E=Tm(a);return yf(()=>{E.current=a}),a}function D3(e){const i=bl(),o=Mm(),u=qs(()=>{var E;const j=i.current,V=j.getState(),ie=gf().early&&(E=V.nextTree)!==null&&E!==void 0?E:V.currentTree;return Im(j,e,ie)},[i,e]),d=qs(()=>({loadable:u(),key:e.key}),[u,e.key]),_=qs(E=>{const j=d();return E.loadable.is(j.loadable)&&E.key===j.key?E:j},[d]);yf(()=>{const E=mf(i.current,e,j=>{a(_)},o);return a(_),E.release},[o,e,i,_]);const[b,a]=I3(d);return b.key!==e.key?d().loadable:b.loadable}function bV(e){const i=bl(),[,o]=I3([]),u=Mm(),d=qs(()=>{var a;const E=i.current,j=E.getState(),V=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return Im(E,e,V)},[i,e]),_=d(),b=Tm(_);return yf(()=>{b.current=_}),yf(()=>{const a=i.current,E=a.getState(),j=mf(a,e,ie=>{var G;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const le=d();(G=b.current)!==null&&G!==void 0&&G.is(le)||o(le),b.current=le},u);if(E.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{b.current=null,o([])});else{var V;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const ie=d();(V=b.current)!==null&&V!==void 0&&V.is(ie)||o(ie),b.current=ie}return j.release},[u,d,e,i]),_}function S3(e){return qr("recoil_memory_managament_2020")&&b3(e),{TRANSITION_SUPPORT:D3,SYNC_EXTERNAL_STORE:hV()?xV:D3,MUTABLE_SOURCE:wV,LEGACY:bV}[gf().mode](e)}function V6(e){const i=bl(),o=S3(e);return T3(o,e,i)}function S_(e){const i=bl();return qs(o=>{D_(i.current,e,o)},[i,e])}function MV(e){const i=bl();return qs(()=>{D_(i.current,e,F6)},[i,e])}function IV(e){return[V6(e),S_(e)]}function TV(e){return[S3(e),S_(e)]}function DV(){const e=bl();return(i,o={})=>{uV(()=>{e.current.addTransactionMetadata(o),i.forEach((u,d)=>gV(e.current,new M3(d),u))})}}function Q6(e){return qr("recoil_memory_managament_2020")&&b3(e),D3(e)}function H6(e){const i=bl(),o=Q6(e);return T3(o,e,i)}function SV(e){return[H6(e),S_(e)]}var AV={recoilComponentGetRecoilValueCount_FOR_TESTING:vV,useRecoilInterface:_V,useRecoilState:IV,useRecoilStateLoadable:TV,useRecoilValue:V6,useRecoilValueLoadable:S3,useResetRecoilState:MV,useSetRecoilState:S_,useSetUnvalidatedAtomValues:DV,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Q6,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:H6,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:SV};function CV(e,i){const o=new Map;for(const[u,d]of e)i(d,u)&&o.set(u,d);return o}var EV=CV;function NV(e,i){const o=new Set;for(const u of e)i(u)&&o.add(u);return o}var LV=NV;function zV(...e){const i=new Map;for(let o=0;o<e.length;o++){const u=e[o].keys();let d;for(;!(d=u.next()).done;)i.set(d.value,e[o].get(d.value))}return i}var OV=zV;const{batchUpdates:kV}=v_,{DEFAULT_VALUE:jV,getNode:$6,nodes:PV}=Ws,{useStoreRef:A3}=gc,{AbstractRecoilValue:RV,setRecoilValueLoadable:BV}=wl,{SUSPENSE_TIMEOUT_MS:FV}=Nh,{cloneSnapshot:A_}=I_,{useCallback:C_,useEffect:Y6,useRef:G6,useState:UV}=Cr,{isSSR:Z6}=x_;function E_(e){const i=A3();Y6(()=>i.current.subscribeToTransactions(e).release,[e,i])}function W6(e){const i=e.atomValues.toMap(),o=g_(EV(i,(u,d)=>{const b=$6(d).persistence_UNSTABLE;return b!=null&&b.type!=="none"&&u.state==="hasValue"}),u=>u.contents);return OV(e.nonvalidatedAtoms.toMap(),o)}function VV(e){E_(C_(i=>{let o=i.getState().previousTree;const u=i.getState().currentTree;o||(o=i.getState().currentTree);const d=W6(u),_=W6(o),b=g_(PV,E=>{var j,V,ie,G;return{persistence_UNSTABLE:{type:(j=(V=E.persistence_UNSTABLE)===null||V===void 0?void 0:V.type)!==null&&j!==void 0?j:"none",backButton:(ie=(G=E.persistence_UNSTABLE)===null||G===void 0?void 0:G.backButton)!==null&&ie!==void 0?ie:!1}}}),a=LV(u.dirtyAtoms,E=>d.has(E)||_.has(E));e({atomValues:d,previousAtomValues:_,atomInfo:b,modifiedAtoms:a,transactionMetadata:{...u.transactionMetadata}})},[e]))}function QV(e){E_(C_(i=>{const o=A_(i,"latest"),u=A_(i,"previous");e({snapshot:o,previousSnapshot:u})},[e]))}function HV(){const e=A3(),[i,o]=UV(()=>A_(e.current)),u=R6(i),d=G6(),_=G6();if(E_(C_(a=>o(A_(a)),[])),Y6(()=>{const a=i.retain();if(d.current&&!Z6){var E;window.clearTimeout(d.current),d.current=null,(E=_.current)===null||E===void 0||E.call(_),_.current=null}return()=>{window.setTimeout(a,10)}},[i]),u!==i&&!Z6){if(d.current){var b;window.clearTimeout(d.current),d.current=null,(b=_.current)===null||b===void 0||b.call(_),_.current=null}_.current=i.retain(),d.current=window.setTimeout(()=>{var a;d.current=null,(a=_.current)===null||a===void 0||a.call(_),_.current=null},FV)}return i}function q6(e,i){var o;const u=e.getState(),d=(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree,_=i.getStore_INTERNAL().getState().currentTree;kV(()=>{const b=new Set;for(const j of[d.atomValues.keys(),_.atomValues.keys()])for(const V of j){var a,E;((a=d.atomValues.get(V))===null||a===void 0?void 0:a.contents)!==((E=_.atomValues.get(V))===null||E===void 0?void 0:E.contents)&&$6(V).shouldRestoreFromSnapshots&&b.add(V)}b.forEach(j=>{BV(e,new RV(j),_.atomValues.has(j)?uo(_.atomValues.get(j)):jV)}),e.replaceState(j=>({...j,stateID:i.getID()}))})}function $V(){const e=A3();return C_(i=>q6(e.current,i),[e])}var K6={useRecoilSnapshot:HV,gotoSnapshot:q6,useGotoRecoilSnapshot:$V,useRecoilTransactionObserver:QV,useTransactionObservation_DEPRECATED:VV,useTransactionSubscription_DEPRECATED:E_};const{peekNodeInfo:YV}=_u,{useStoreRef:GV}=gc;function ZV(){const e=GV();return({key:i})=>YV(e.current,e.current.getState().currentTree,i)}var WV=ZV;const{reactMode:qV}=mm,{RecoilRoot:KV,useStoreRef:XV}=gc,{useMemo:JV}=Cr;function eQ(){qV().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=XV().current;return JV(()=>{function i({children:o}){return Cr.createElement(KV,{store_INTERNAL:e},o)}return i},[e])}var tQ=eQ;const{loadableWithValue:iQ}=gm,{initializeNode:nQ}=_u,{DEFAULT_VALUE:rQ,getNode:oQ}=Ws,{copyTreeState:sQ,getRecoilValueAsLoadable:aQ,invalidateDownstreams:lQ,writeLoadableToTreeState:cQ}=wl;function X6(e){return oQ(e.key).nodeType==="atom"}class uQ{constructor(i,o){ar(this,"_store",void 0),ar(this,"_treeState",void 0),ar(this,"_changes",void 0),ar(this,"get",u=>{if(this._changes.has(u.key))return this._changes.get(u.key);if(!X6(u))throw hr("Reading selectors within atomicUpdate is not supported");const d=aQ(this._store,u,this._treeState);if(d.state==="hasValue")return d.contents;throw d.state==="hasError"?d.contents:hr(`Expected Recoil atom ${u.key} to have a value, but it is in a loading state.`)}),ar(this,"set",(u,d)=>{if(!X6(u))throw hr("Setting selectors within atomicUpdate is not supported");if(typeof d=="function"){const _=this.get(u);this._changes.set(u.key,d(_))}else nQ(this._store,u.key,"set"),this._changes.set(u.key,d)}),ar(this,"reset",u=>{this.set(u,rQ)}),this._store=i,this._treeState=o,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const i=sQ(this._treeState);for(const[o,u]of this._changes)cQ(i,o,iQ(u));return lQ(this._store,i),i}}function hQ(e){return i=>{e.replaceState(o=>{const u=new uQ(e,o);return i(u),u.newTreeState_INTERNAL()})}}var dQ={atomicUpdater:hQ},fQ=dQ.atomicUpdater,J6=Object.freeze({__proto__:null,atomicUpdater:fQ});function pQ(e,i){if(!e)throw new Error(i)}var gQ=pQ,Dm=gQ;const{atomicUpdater:mQ}=J6,{batchUpdates:yQ}=v_,{DEFAULT_VALUE:_Q}=Ws,{useStoreRef:vQ}=gc,{refreshRecoilValue:xQ,setRecoilValue:eE}=wl,{cloneSnapshot:wQ}=I_,{gotoSnapshot:bQ}=K6,{useCallback:MQ}=Cr;class tE{}const IQ=new tE;function iE(e,i,o,u){let d=IQ,_;if(yQ(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof i!="function")throw hr(a);const E=JC({...u??{},set:(V,ie)=>eE(e,V,ie),reset:V=>eE(e,V,_Q),refresh:V=>xQ(e,V),gotoSnapshot:V=>bQ(e,V),transact_UNSTABLE:V=>mQ(e)(V)},{snapshot:()=>{const V=wQ(e);return _=V.retain(),V}}),j=i(E);if(typeof j!="function")throw hr(a);d=j(...o)}),d instanceof tE&&Dm(!1),so(d))d=d.finally(()=>{var a;(a=_)===null||a===void 0||a()});else{var b;(b=_)===null||b===void 0||b()}return d}function TQ(e,i){const o=vQ();return MQ((...u)=>iE(o.current,e,u),i!=null?[...i,o]:void 0)}var nE={recoilCallback:iE,useRecoilCallback:TQ};const{useStoreRef:DQ}=gc,{refreshRecoilValue:SQ}=wl,{useCallback:AQ}=Cr;function CQ(e){const i=DQ();return AQ(()=>{const o=i.current;SQ(o,e)},[e,i])}var EQ=CQ;const{atomicUpdater:NQ}=J6,{useStoreRef:LQ}=gc,{useMemo:zQ}=Cr;function OQ(e,i){const o=LQ();return zQ(()=>(...u)=>{NQ(o.current)(_=>{e(_)(...u)})},i!=null?[...i,o]:void 0)}var kQ=OQ;class jQ{constructor(i){ar(this,"value",void 0),this.value=i}}var PQ={WrappedValue:jQ},RQ=PQ.WrappedValue,rE=Object.freeze({__proto__:null,WrappedValue:RQ});const{isFastRefreshEnabled:BQ}=mm;class oE extends Error{}class FQ{constructor(i){var o,u,d;ar(this,"_name",void 0),ar(this,"_numLeafs",void 0),ar(this,"_root",void 0),ar(this,"_onHit",void 0),ar(this,"_onSet",void 0),ar(this,"_mapNodeValue",void 0),this._name=i==null?void 0:i.name,this._numLeafs=0,this._root=null,this._onHit=(o=i==null?void 0:i.onHit)!==null&&o!==void 0?o:()=>{},this._onSet=(u=i==null?void 0:i.onSet)!==null&&u!==void 0?u:()=>{},this._mapNodeValue=(d=i==null?void 0:i.mapNodeValue)!==null&&d!==void 0?d:_=>_}size(){return this._numLeafs}root(){return this._root}get(i,o){var u;return(u=this.getLeafNode(i,o))===null||u===void 0?void 0:u.value}getLeafNode(i,o){if(this._root==null)return;let u=this._root;for(;u;){if(o==null||o.onNodeVisit(u),u.type==="leaf")return this._onHit(u),u;const d=this._mapNodeValue(i(u.nodeKey));u=u.branches.get(d)}}set(i,o,u){const d=()=>{var _,b,a,E;let j,V;for(const[Ze,me]of i){var ie,G,le;const te=this._root;if((te==null?void 0:te.type)==="leaf")throw this.invalidCacheError();const ee=j;if(j=ee?ee.branches.get(V):te,j=(ie=j)!==null&&ie!==void 0?ie:{type:"branch",nodeKey:Ze,parent:ee,branches:new Map,branchKey:V},j.type!=="branch"||j.nodeKey!==Ze)throw this.invalidCacheError();ee==null||ee.branches.set(V,j),u==null||(G=u.onNodeVisit)===null||G===void 0||G.call(u,j),V=this._mapNodeValue(me),this._root=(le=this._root)!==null&&le!==void 0?le:j}const fe=j?(_=j)===null||_===void 0?void 0:_.branches.get(V):this._root;if(fe!=null&&(fe.type!=="leaf"||fe.branchKey!==V))throw this.invalidCacheError();const ve={type:"leaf",value:o,parent:j,branchKey:V};(b=j)===null||b===void 0||b.branches.set(V,ve),this._root=(a=this._root)!==null&&a!==void 0?a:ve,this._numLeafs++,this._onSet(ve),u==null||(E=u.onNodeVisit)===null||E===void 0||E.call(u,ve)};try{d()}catch(_){if(_ instanceof oE)this.clear(),d();else throw _}}delete(i){const o=this.root();if(!o)return!1;if(i===o)return this._root=null,this._numLeafs=0,!0;let u=i.parent,d=i.branchKey;for(;u;){var _;if(u.branches.delete(d),u===o)return u.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(u.branches.size>0)break;d=(_=u)===null||_===void 0?void 0:_.branchKey,u=u.parent}for(;u!==o;u=u.parent)if(u==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const i=BQ()?"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 i3(i+(this._name!=null?` - ${this._name}`:"")),new oE}}var UQ={TreeCache:FQ},VQ=UQ.TreeCache,sE=Object.freeze({__proto__:null,TreeCache:VQ});class QQ{constructor(i){var o;ar(this,"_maxSize",void 0),ar(this,"_size",void 0),ar(this,"_head",void 0),ar(this,"_tail",void 0),ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._maxSize=i.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(o=i.mapKey)!==null&&o!==void 0?o:u=>u}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(i){return this._map.has(this._keyMapper(i))}get(i){const o=this._keyMapper(i),u=this._map.get(o);if(u)return this.set(i,u.value),u.value}set(i,o){const u=this._keyMapper(i);this._map.get(u)&&this.delete(i);const _=this.head(),b={key:i,right:_,left:null,value:o};_?_.left=b:this._tail=b,this._map.set(u,b),this._head=b,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const i=this.tail();i&&this.delete(i.key)}delete(i){const o=this._keyMapper(i);if(!this._size||!this._map.has(o))return;const u=uo(this._map.get(o)),d=u.right,_=u.left;d&&(d.left=u.left),_&&(_.right=u.right),u===this.head()&&(this._head=d),u===this.tail()&&(this._tail=_),this._map.delete(o),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var HQ={LRUCache:QQ},$Q=HQ.LRUCache,aE=Object.freeze({__proto__:null,LRUCache:$Q});const{LRUCache:YQ}=aE,{TreeCache:GQ}=sE;function ZQ({name:e,maxSize:i,mapNodeValue:o=u=>u}){const u=new YQ({maxSize:i}),d=new GQ({name:e,mapNodeValue:o,onHit:_=>{u.set(_,!0)},onSet:_=>{const b=u.tail();u.set(_,!0),b&&d.size()>i&&d.delete(b.key)}});return d}var lE=ZQ;function Xa(e,i,o){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((i==null?void 0:i.allowFunctions)!==!0)throw hr("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var u;return(u=JSON.stringify(e))!==null&&u!==void 0?u:""}if(so(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((d,_)=>Xa(d,i,_.toString()))}]`;if(typeof e.toJSON=="function")return Xa(e.toJSON(o),i,o);if(e instanceof Map){const d={};for(const[_,b]of e)d[typeof _=="string"?_:Xa(_,i)]=b;return Xa(d,i,o)}return e instanceof Set?Xa(Array.from(e).sort((d,_)=>Xa(d,i).localeCompare(Xa(_,i))),i,o):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Xa(Array.from(e),i,o):`{${Object.keys(e).filter(d=>e[d]!==void 0).sort().map(d=>`${Xa(d,i)}:${Xa(e[d],i,d)}`).join(",")}}`}function WQ(e,i={allowFunctions:!1}){return Xa(e,i)}var N_=WQ;const{TreeCache:qQ}=sE,L_={equality:"reference",eviction:"keep-all",maxSize:1/0};function KQ({equality:e=L_.equality,eviction:i=L_.eviction,maxSize:o=L_.maxSize}=L_,u){const d=XQ(e);return JQ(i,o,d,u)}function XQ(e){switch(e){case"reference":return i=>i;case"value":return i=>N_(i)}throw hr(`Unrecognized equality policy ${e}`)}function JQ(e,i,o,u){switch(e){case"keep-all":return new qQ({name:u,mapNodeValue:o});case"lru":return lE({name:u,maxSize:uo(i),mapNodeValue:o});case"most-recent":return lE({name:u,maxSize:1,mapNodeValue:o})}throw hr(`Unrecognized eviction policy ${e}`)}var eH=KQ;function tH(e){return()=>null}var iH={startPerfBlock:tH};const{isLoadable:nH,loadableWithError:z_,loadableWithPromise:rH,loadableWithValue:C3}=gm,{WrappedValue:cE}=rE,{getNodeLoadable:O_,peekNodeLoadable:oH,setNodeValue:sH}=_u,{saveDepsToStore:aH}=_m,{DEFAULT_VALUE:lH,getConfigDeletionHandler:cH,getNode:uH,registerNode:uE}=Ws,{isRecoilValue:hH}=pf,{markRecoilValueModified:hE}=wl,{retainedByOptionWithDefault:dH}=Nh,{recoilCallback:fH}=nE,{startPerfBlock:pH}=iH;class dE{}const Sm=new dE,Am=[],k_=new Map,gH=(()=>{let e=0;return()=>e++})();function fE(e){let i=null;const{key:o,get:u,cachePolicy_UNSTABLE:d}=e,_=e.set!=null?e.set:void 0,b=new Set,a=eH(d??{equality:"reference",eviction:"keep-all"},o),E=dH(e.retainedBy_UNSTABLE),j=new Map;let V=0;function ie(){return!qr("recoil_memory_managament_2020")||V>0}function G(T){return T.getState().knownSelectors.add(o),V++,()=>{V--}}function le(){return cH(o)!==void 0&&!ie()}function fe(T,k,F,Q,Z){bt(k,Q,Z),ve(T,F)}function ve(T,k){Jt(T,k)&&St(T),me(k,!0)}function Ze(T,k){Jt(T,k)&&(uo(xt(T)).stateVersions.clear(),me(k,!1))}function me(T,k){const F=k_.get(T);if(F!=null){for(const Q of F)hE(Q,uo(i));k&&k_.delete(T)}}function te(T,k){let F=k_.get(k);F==null&&k_.set(k,F=new Set),F.add(T)}function ee(T,k,F,Q,Z,se){return k.then(he=>{if(!ie())throw St(T),Sm;const ce=C3(he);return fe(T,F,Z,ce,Q),he}).catch(he=>{if(!ie())throw St(T),Sm;if(so(he))return re(T,he,F,Q,Z,se);const ce=z_(he);throw fe(T,F,Z,ce,Q),he})}function re(T,k,F,Q,Z,se){return k.then(he=>{if(!ie())throw St(T),Sm;se.loadingDepKey!=null&&se.loadingDepPromise===k?F.atomValues.set(se.loadingDepKey,C3(he)):T.getState().knownSelectors.forEach(et=>{F.atomValues.delete(et)});const ce=We(T,F);if(ce&&ce.state!=="loading"){if((Jt(T,Z)||xt(T)==null)&&ve(T,Z),ce.state==="hasValue")return ce.contents;throw ce.contents}if(!Jt(T,Z)){const et=$e(T,F);if(et!=null)return et.loadingLoadable.contents}const[xe,He]=we(T,F,Z);if(xe.state!=="loading"&&fe(T,F,Z,xe,He),xe.state==="hasError")throw xe.contents;return xe.contents}).catch(he=>{if(he instanceof dE)throw Sm;if(!ie())throw St(T),Sm;const ce=z_(he);throw fe(T,F,Z,ce,Q),he})}function Me(T,k,F,Q){var Z,se,he,ce;if(Jt(T,Q)||k.version===((Z=T.getState())===null||Z===void 0||(se=Z.currentTree)===null||se===void 0?void 0:se.version)||k.version===((he=T.getState())===null||he===void 0||(ce=he.nextTree)===null||ce===void 0?void 0:ce.version)){var xe,He,et;aH(o,F,T,(xe=(He=T.getState())===null||He===void 0||(et=He.nextTree)===null||et===void 0?void 0:et.version)!==null&&xe!==void 0?xe:T.getState().currentTree.version)}for(const Ue of F)b.add(Ue)}function we(T,k,F){const Q=pH(o);let Z=!0,se=!0;const he=()=>{Q(),se=!1};let ce,xe=!1,He;const et={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function Xe({key:rt}){const pt=O_(T,k,rt);switch(Ue.set(rt,pt),Z||(Me(T,k,new Set(Ue.keys()),F),Ze(T,F)),pt.state){case"hasValue":return pt.contents;case"hasError":throw pt.contents;case"loading":throw et.loadingDepKey=rt,et.loadingDepPromise=pt.contents,pt.contents}throw hr("Invalid Loadable state")}const Fe=rt=>(...pt)=>{if(se)throw hr("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 i==null&&Dm(!1),fH(T,rt,pt,{node:i})};try{ce=u({get:Xe,getCallback:Fe}),ce=hH(ce)?Xe(ce):ce,nH(ce)&&(ce.state==="hasError"&&(xe=!0),ce=ce.contents),so(ce)?ce=ee(T,ce,k,Ue,F,et).finally(he):he(),ce=ce instanceof cE?ce.value:ce}catch(rt){ce=rt,so(ce)?ce=re(T,ce,k,Ue,F,et).finally(he):(xe=!0,he())}return xe?He=z_(ce):so(ce)?He=rH(ce):He=C3(ce),Z=!1,jt(T,F,Ue),Me(T,k,new Set(Ue.keys()),F),[He,Ue]}function We(T,k){let F=k.atomValues.get(o);if(F!=null)return F;const Q=new Set;try{F=a.get(se=>(typeof se!="string"&&Dm(!1),O_(T,k,se).contents),{onNodeVisit:se=>{se.type==="branch"&&se.nodeKey!==o&&Q.add(se.nodeKey)}})}catch(se){throw hr(`Problem with cache lookup for selector "${o}": ${se.message}`)}if(F){var Z;k.atomValues.set(o,F),Me(T,k,Q,(Z=xt(T))===null||Z===void 0?void 0:Z.executionID)}return F}function ot(T,k){const F=We(T,k);if(F!=null)return St(T),F;const Q=$e(T,k);if(Q!=null){var Z;return((Z=Q.loadingLoadable)===null||Z===void 0?void 0:Z.state)==="loading"&&te(T,Q.executionID),Q.loadingLoadable}const se=gH(),[he,ce]=we(T,k,se);return he.state==="loading"?(ut(T,se,he,ce,k),te(T,se)):(St(T),bt(k,he,ce)),he}function $e(T,k){const F=_6([j.has(T)?[uo(j.get(T))]:[],f_(h3(j,([Z])=>Z!==T),([,Z])=>Z)]);function Q(Z){for(const[se,he]of Z)if(!O_(T,k,se).is(he))return!0;return!1}for(const Z of F){if(Z.stateVersions.get(k.version)||!Q(Z.depValuesDiscoveredSoFarDuringAsyncWork))return Z.stateVersions.set(k.version,!0),Z;Z.stateVersions.set(k.version,!1)}}function xt(T){return j.get(T)}function ut(T,k,F,Q,Z){j.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:Q,executionID:k,loadingLoadable:F,stateVersions:new Map([[Z.version,!0]])})}function jt(T,k,F){if(Jt(T,k)){const Q=xt(T);Q!=null&&(Q.depValuesDiscoveredSoFarDuringAsyncWork=F)}}function St(T){j.delete(T)}function Jt(T,k){var F;return k===((F=xt(T))===null||F===void 0?void 0:F.executionID)}function Tt(T){return Array.from(T.entries()).map(([k,F])=>[k,F.contents])}function bt(T,k,F){T.atomValues.set(o,k);try{a.set(Tt(F),k)}catch(Q){throw hr(`Problem with setting cache for selector "${o}": ${Q.message}`)}}function qt(T){if(Am.includes(o)){const k=`Recoil selector has circular dependencies: ${Am.slice(Am.indexOf(o)).join(" → ")}`;return z_(hr(k))}Am.push(o);try{return T()}finally{Am.pop()}}function Ot(T,k){const F=k.atomValues.get(o);return F??a.get(Q=>{var Z;return typeof Q!="string"&&Dm(!1),(Z=oH(T,k,Q))===null||Z===void 0?void 0:Z.contents})}function Vt(T,k){return qt(()=>ot(T,k))}function W(T){T.atomValues.delete(o)}function ne(T,k){i==null&&Dm(!1);for(const Q of b){var F;const Z=uH(Q);(F=Z.clearCache)===null||F===void 0||F.call(Z,T,k)}b.clear(),W(k),a.clear(),hE(T,i)}return _!=null?i=uE({key:o,nodeType:"selector",peek:Ot,get:Vt,set:(k,F,Q)=>{let Z=!1;const se=new Map;function he({key:et}){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Ue=O_(k,F,et);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const Xe=`Getting value of asynchronous atom or selector "${et}" in a pending state while setting selector "${o}" is not yet supported.`;throw hr(Xe)}else throw Ue.contents}function ce(et,Ue){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Xe=typeof Ue=="function"?Ue(he(et)):Ue;sH(k,F,et.key,Xe).forEach((rt,pt)=>se.set(pt,rt))}function xe(et){ce(et,lH)}const He=_({set:ce,get:he,reset:xe},Q);if(He!==void 0)throw so(He)?hr("Recoil: Async selector sets are not currently supported."):hr("Recoil: selector set should be a void function.");return Z=!0,se},init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E}):i=uE({key:o,nodeType:"selector",peek:Ot,get:Vt,init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E})}fE.value=e=>new cE(e);var _f=fE;const{isLoadable:mH,loadableWithError:E3,loadableWithPromise:N3,loadableWithValue:vf}=gm,{WrappedValue:pE}=rE,{peekNodeInfo:yH}=_u,{DEFAULT_VALUE:Lh,DefaultValue:vu,getConfigDeletionHandler:gE,registerNode:_H,setConfigDeletionHandler:vH}=Ws,{isRecoilValue:xH}=pf,{getRecoilValueAsLoadable:wH,markRecoilValueModified:bH,setRecoilValue:mE,setRecoilValueLoadable:MH}=wl,{retainedByOptionWithDefault:IH}=Nh,Cm=e=>e instanceof pE?e.value:e;function TH(e){const{key:i,persistence_UNSTABLE:o}=e,u=IH(e.retainedBy_UNSTABLE);let d=0;function _(te){return N3(te.then(ee=>(b=vf(ee),ee)).catch(ee=>{throw b=E3(ee),ee}))}let b=so(e.default)?_(e.default):mH(e.default)?e.default.state==="loading"?_(e.default.contents):e.default:vf(Cm(e.default));b.contents;let a;const E=new Map;function j(te){return te}function V(te,ee){const re=ee.then(Me=>{var we,We;return((We=((we=te.getState().nextTree)!==null&&we!==void 0?we:te.getState().currentTree).atomValues.get(i))===null||We===void 0?void 0:We.contents)===re&&mE(te,me,Me),Me}).catch(Me=>{var we,We;throw((We=((we=te.getState().nextTree)!==null&&we!==void 0?we:te.getState().currentTree).atomValues.get(i))===null||We===void 0?void 0:We.contents)===re&&MH(te,me,E3(Me)),Me});return re}function ie(te,ee,re){var Me;d++;const we=()=>{var xt;d--,(xt=E.get(te))===null||xt===void 0||xt.forEach(ut=>ut()),E.delete(te)};if(te.getState().knownAtoms.add(i),b.state==="loading"){const xt=()=>{var ut;((ut=te.getState().nextTree)!==null&&ut!==void 0?ut:te.getState().currentTree).atomValues.has(i)||bH(te,me)};b.contents.finally(xt)}const We=(Me=e.effects)!==null&&Me!==void 0?Me:e.effects_UNSTABLE;if(We!=null){let Jt=function(W){if(ut&&W.key===i){const ne=xt;return ne instanceof vu?G(te,ee):so(ne)?N3(ne.then(T=>T instanceof vu?b.toPromise():T)):vf(ne)}return wH(te,W)},Tt=function(W){return Jt(W).toPromise()},bt=function(W){var ne;const T=yH(te,(ne=te.getState().nextTree)!==null&&ne!==void 0?ne:te.getState().currentTree,W.key);return ut&&W.key===i&&!(xt instanceof vu)?{...T,isSet:!0,loadable:Jt(W)}:T},xt=Lh,ut=!0,jt=!1,St=null;const qt=W=>ne=>{if(ut){const T=Jt(me),k=T.state==="hasValue"?T.contents:Lh;xt=typeof ne=="function"?ne(k):ne,so(xt)&&(xt=xt.then(F=>(St={effect:W,value:F},F)))}else{if(so(ne))throw hr("Setting atoms to async values is not implemented.");typeof ne!="function"&&(St={effect:W,value:Cm(ne)}),mE(te,me,typeof ne=="function"?T=>{const k=Cm(ne(T));return St={effect:W,value:k},k}:Cm(ne))}},Ot=W=>()=>qt(W)(Lh),Vt=W=>ne=>{var T;const{release:k}=te.subscribeToTransactions(F=>{var Q;let{currentTree:Z,previousTree:se}=F.getState();se||(se=Z);const he=(Q=Z.atomValues.get(i))!==null&&Q!==void 0?Q:b;if(he.state==="hasValue"){var ce,xe,He,et;const Ue=he.contents,Xe=(ce=se.atomValues.get(i))!==null&&ce!==void 0?ce:b,Fe=Xe.state==="hasValue"?Xe.contents:Lh;((xe=St)===null||xe===void 0?void 0:xe.effect)!==W||((He=St)===null||He===void 0?void 0:He.value)!==Ue?ne(Ue,Fe,!Z.atomValues.has(i)):((et=St)===null||et===void 0?void 0:et.effect)===W&&(St=null)}},i);E.set(te,[...(T=E.get(te))!==null&&T!==void 0?T:[],k])};for(const W of We)try{const ne=W({node:me,storeID:te.storeID,parentStoreID_UNSTABLE:te.parentStoreID,trigger:re,setSelf:qt(W),resetSelf:Ot(W),onSet:Vt(W),getPromise:Tt,getLoadable:Jt,getInfo_UNSTABLE:bt});if(ne!=null){var ot;E.set(te,[...(ot=E.get(te))!==null&&ot!==void 0?ot:[],ne])}}catch(ne){xt=ne,jt=!0}if(ut=!1,!(xt instanceof vu)){var $e;const W=jt?E3(xt):so(xt)?N3(V(te,xt)):vf(Cm(xt));W.contents,ee.atomValues.set(i,W),($e=te.getState().nextTree)===null||$e===void 0||$e.atomValues.set(i,W)}}return we}function G(te,ee){var re,Me;return(re=(Me=ee.atomValues.get(i))!==null&&Me!==void 0?Me:a)!==null&&re!==void 0?re:b}function le(te,ee){if(ee.atomValues.has(i))return uo(ee.atomValues.get(i));if(ee.nonvalidatedAtoms.has(i)){if(a!=null)return a;if(o==null)return b;const re=ee.nonvalidatedAtoms.get(i),Me=o.validator(re,Lh);return a=Me instanceof vu?b:vf(Me),a}else return b}function fe(){a=void 0}function ve(te,ee,re){if(ee.atomValues.has(i)){const Me=uo(ee.atomValues.get(i));if(Me.state==="hasValue"&&re===Me.contents)return new Map}else if(!ee.nonvalidatedAtoms.has(i)&&re instanceof vu)return new Map;return a=void 0,new Map().set(i,vf(re))}function Ze(){return gE(i)!==void 0&&d<=0}const me=_H({key:i,nodeType:"atom",peek:G,get:le,set:ve,init:ie,invalidate:fe,shouldDeleteConfigOnRelease:Ze,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:u});return me}function L3(e){const{...i}=e,o="default"in e?e.default:new Promise(()=>{});return xH(o)?DH({...i,default:o}):TH({...i,default:o})}function DH(e){const i=L3({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:u=>u instanceof vu?u:uo(e.persistence_UNSTABLE).validator(u,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),o=_f({key:`${e.key}__withFallback`,get:({get:u})=>{const d=u(i);return d instanceof vu?e.default:d},set:({set:u},d)=>u(i,d),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return vH(o.key,gE(e.key)),o}L3.value=e=>new pE(e);var yE=L3;class SH{constructor(i){var o;ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(o=i==null?void 0:i.mapKey)!==null&&o!==void 0?o:u=>u}size(){return this._map.size}has(i){return this._map.has(this._keyMapper(i))}get(i){return this._map.get(this._keyMapper(i))}set(i,o){this._map.set(this._keyMapper(i),o)}delete(i){this._map.delete(this._keyMapper(i))}clear(){this._map.clear()}}var AH={MapCache:SH},CH=AH.MapCache,EH=Object.freeze({__proto__:null,MapCache:CH});const{LRUCache:_E}=aE,{MapCache:NH}=EH,j_={equality:"reference",eviction:"none",maxSize:1/0};function LH({equality:e=j_.equality,eviction:i=j_.eviction,maxSize:o=j_.maxSize}=j_){const u=zH(e);return OH(i,o,u)}function zH(e){switch(e){case"reference":return i=>i;case"value":return i=>N_(i)}throw hr(`Unrecognized equality policy ${e}`)}function OH(e,i,o){switch(e){case"keep-all":return new NH({mapKey:o});case"lru":return new _E({mapKey:o,maxSize:uo(i)});case"most-recent":return new _E({mapKey:o,maxSize:1})}throw hr(`Unrecognized eviction policy ${e}`)}var vE=LH;const{setConfigDeletionHandler:kH}=Ws;function jH(e){var i,o;const u=vE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _,b;const a=u.get(d);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:E,...j}=e,V="default"in e?e.default:new Promise(()=>{}),ie=yE({...j,key:`${e.key}__${(_=N_(d))!==null&&_!==void 0?_:"void"}`,default:typeof V=="function"?V(d):V,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(d):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(d):(b=e.effects)!==null&&b!==void 0?b:e.effects_UNSTABLE});return u.set(d,ie),kH(ie.key,()=>{u.delete(d)}),ie}}var PH=jH;const{setConfigDeletionHandler:RH}=Ws;let BH=0;function FH(e){var i,o;const u=vE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _;let b;try{b=u.get(d)}catch(G){throw hr(`Problem with cache lookup for selector ${e.key}: ${G.message}`)}if(b!=null)return b;const a=`${e.key}__selectorFamily/${(_=N_(d,{allowFunctions:!0}))!==null&&_!==void 0?_:"void"}/${BH++}`,E=G=>e.get(d)(G),j=e.cachePolicy_UNSTABLE,V=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE;let ie;if(e.set!=null){const G=e.set;ie=_f({key:a,get:E,set:(fe,ve)=>G(d)(fe,ve),cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:V})}else ie=_f({key:a,get:E,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:V});return u.set(d,ie),RH(ie.key,()=>{u.delete(d)}),ie}}var xu=FH;const UH=xu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function VH(e){return UH(e)}var QH=VH;const HH=xu({key:"__error",get:e=>()=>{throw hr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function $H(e){return HH(e)}var YH=$H;function GH(e){return e}var ZH=GH;const{loadableWithError:xE,loadableWithPromise:wE,loadableWithValue:bE}=gm;function P_(e,i){const o=Array(i.length).fill(void 0),u=Array(i.length).fill(void 0);for(const[d,_]of i.entries())try{o[d]=e(_)}catch(b){u[d]=b}return[o,u]}function WH(e){return e!=null&&!so(e)}function R_(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])}function z3(e,i){return Array.isArray(e)?i:Object.getOwnPropertyNames(e).reduce((o,u,d)=>({...o,[u]:i[d]}),{})}function xf(e,i,o){const u=o.map((d,_)=>d==null?bE(i[_]):so(d)?wE(d):xE(d));return z3(e,u)}function qH(e,i){return i.map((o,u)=>o===void 0?e[u]:o)}const KH=xu({key:"__waitForNone",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);return xf(e,u,d)},dangerouslyAllowMutability:!0}),XH=xu({key:"__waitForAny",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);return d.some(_=>!so(_))?xf(e,u,d):new Promise(_=>{for(const[b,a]of d.entries())so(a)&&a.then(E=>{u[b]=E,d[b]=void 0,_(xf(e,u,d))}).catch(E=>{d[b]=E,_(xf(e,u,d))})})},dangerouslyAllowMutability:!0}),JH=xu({key:"__waitForAll",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);if(d.every(b=>b==null))return z3(e,u);const _=d.find(WH);if(_!=null)throw _;return Promise.all(d).then(b=>z3(e,qH(u,b)))},dangerouslyAllowMutability:!0}),e$=xu({key:"__waitForAllSettled",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);return d.every(_=>!so(_))?xf(e,u,d):Promise.all(d.map((_,b)=>so(_)?_.then(a=>{u[b]=a,d[b]=void 0}).catch(a=>{u[b]=void 0,d[b]=a}):null)).then(()=>xf(e,u,d))},dangerouslyAllowMutability:!0}),t$=xu({key:"__noWait",get:e=>({get:i})=>{try{return _f.value(bE(i(e)))}catch(o){return _f.value(so(o)?wE(o):xE(o))}},dangerouslyAllowMutability:!0});var i$={waitForNone:KH,waitForAny:XH,waitForAll:JH,waitForAllSettled:e$,noWait:t$};const{RecoilLoadable:n$}=gm,{DefaultValue:r$}=Ws,{RecoilRoot:o$,useRecoilStoreID:s$}=gc,{isRecoilValue:a$}=pf,{retentionZone:l$}=y_,{freshSnapshot:c$}=I_,{useRecoilState:u$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:h$,useRecoilStateLoadable:d$,useRecoilValue:f$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:p$,useRecoilValueLoadable:g$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:m$,useResetRecoilState:y$,useSetRecoilState:_$}=AV,{useGotoRecoilSnapshot:v$,useRecoilSnapshot:x$,useRecoilTransactionObserver:w$}=K6,{useRecoilCallback:b$}=nE,{noWait:M$,waitForAll:I$,waitForAllSettled:T$,waitForAny:D$,waitForNone:S$}=i$;var wf={DefaultValue:r$,isRecoilValue:a$,RecoilLoadable:n$,RecoilEnv:ff,RecoilRoot:o$,useRecoilStoreID:s$,useRecoilBridgeAcrossReactRoots_UNSTABLE:tQ,atom:yE,selector:_f,atomFamily:PH,selectorFamily:xu,constSelector:QH,errorSelector:YH,readOnlySelector:ZH,noWait:M$,waitForNone:S$,waitForAny:D$,waitForAll:I$,waitForAllSettled:T$,useRecoilValue:f$,useRecoilValueLoadable:g$,useRecoilState:u$,useRecoilStateLoadable:d$,useSetRecoilState:_$,useResetRecoilState:y$,useGetRecoilValueInfo_UNSTABLE:WV,useRecoilRefresher_UNSTABLE:EQ,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:m$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:p$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:h$,useRecoilCallback:b$,useRecoilTransaction_UNSTABLE:kQ,useGotoRecoilSnapshot:v$,useRecoilSnapshot:x$,useRecoilTransactionObserver_UNSTABLE:w$,snapshot_UNSTABLE:c$,useRetain:b3,retentionZone:l$},A$=wf.RecoilRoot,kn=wf.atom,B_=wf.selector,Ei=wf.useRecoilValue,sn=wf.useRecoilState,Mo=wf.useResetRecoilState;const C$=(e,i)=>{const o=e[i];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((u,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+i)))})},E$="mi-components";let F_,ME,la=!1,O3=!1;const mc=(e,i="")=>()=>{},N$=(e,i)=>()=>{},L$="{visibility:hidden}.hydrated{visibility:inherit}",IE="http://www.w3.org/1999/xlink",TE={},z$="http://www.w3.org/2000/svg",O$="http://www.w3.org/1999/xhtml",k$=e=>e!=null,k3=e=>(e=typeof e,e==="object"||e==="function");function DE(e){var i,o,u;return(u=(o=(i=e.head)===null||i===void 0?void 0:i.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&u!==void 0?u:void 0}const Je=(e,i,...o)=>{let u=null,d=null,_=!1,b=!1;const a=[],E=V=>{for(let ie=0;ie<V.length;ie++)u=V[ie],Array.isArray(u)?E(u):u!=null&&typeof u!="boolean"&&((_=typeof e!="function"&&!k3(u))&&(u=String(u)),_&&b?a[a.length-1].$text$+=u:a.push(_?j3(null,u):u),b=_)};if(E(o),i){i.key&&(d=i.key);{const V=i.className||i.class;V&&(i.class=typeof V!="object"?V:Object.keys(V).filter(ie=>V[ie]).join(" "))}}const j=j3(e,null);return j.$attrs$=i,a.length>0&&(j.$children$=a),j.$key$=d,j},j3=(e,i)=>{const o={$flags$:0,$tag$:e,$text$:i,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o},ko={},j$=e=>e&&e.$tag$===ko,P$=(e,i)=>e!=null&&!k3(e)?i&4?e==="false"?!1:e===""||!!e:i&2?parseFloat(e):i&1?String(e):e:e,yc=e=>wu(e).$hostElement$,$r=(e,i,o)=>{const u=yc(e);return{emit:d=>SE(u,i,{bubbles:!!(o&4),composed:!!(o&2),cancelable:!!(o&1),detail:d})}},SE=(e,i,o)=>{const u=Ko.ce(i,o);return e.dispatchEvent(u),u},AE=new WeakMap,R$=(e,i,o)=>{let u=H_.get(e);oY&&o?(u=u||new CSSStyleSheet,typeof u=="string"?u=i:u.replaceSync(i)):u=i,H_.set(e,u)},B$=(e,i,o,u)=>{var d;let _=CE(i);const b=H_.get(_);if(e=e.nodeType===11?e:Ml,b)if(typeof b=="string"){e=e.head||e;let a=AE.get(e),E;if(a||AE.set(e,a=new Set),!a.has(_)){{E=Ml.createElement("style"),E.innerHTML=b;const j=(d=Ko.$nonce$)!==null&&d!==void 0?d:DE(Ml);j!=null&&E.setAttribute("nonce",j),e.insertBefore(E,e.querySelector("link"))}a&&a.add(_)}}else e.adoptedStyleSheets.includes(b)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,b]);return _},F$=e=>{const i=e.$cmpMeta$,o=e.$hostElement$,u=i.$flags$,d=mc("attachStyles",i.$tagName$),_=B$(o.shadowRoot?o.shadowRoot:o.getRootNode(),i);u&10&&(o["s-sc"]=_,o.classList.add(_+"-h")),d()},CE=(e,i)=>"sc-"+e.$tagName$,EE=(e,i,o,u,d,_)=>{if(o!==u){let b=QE(e,i),a=i.toLowerCase();if(i==="class"){const E=e.classList,j=NE(o),V=NE(u);E.remove(...j.filter(ie=>ie&&!V.includes(ie))),E.add(...V.filter(ie=>ie&&!j.includes(ie)))}else if(i==="style"){for(const E in o)(!u||u[E]==null)&&(E.includes("-")?e.style.removeProperty(E):e.style[E]="");for(const E in u)(!o||u[E]!==o[E])&&(E.includes("-")?e.style.setProperty(E,u[E]):e.style[E]=u[E])}else if(i!=="key")if(i==="ref")u&&u(e);else if(!b&&i[0]==="o"&&i[1]==="n")i[2]==="-"?i=i.slice(3):QE(Em,a)?i=a.slice(2):i=a[2]+i.slice(3),o&&Ko.rel(e,i,o,!1),u&&Ko.ael(e,i,u,!1);else{const E=k3(u);if((b||E&&u!==null)&&!d)try{if(e.tagName.includes("-"))e[i]=u;else{const V=u??"";i==="list"?b=!1:(o==null||e[i]!=V)&&(e[i]=V)}}catch{}let j=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(i=a,j=!0),u==null||u===!1?(u!==!1||e.getAttribute(i)==="")&&(j?e.removeAttributeNS(IE,i):e.removeAttribute(i)):(!b||_&4||d)&&!E&&(u=u===!0?"":u,j?e.setAttributeNS(IE,i,u):e.setAttribute(i,u))}}},U$=/\s/,NE=e=>e?e.split(U$):[],LE=(e,i,o,u)=>{const d=i.$elm$.nodeType===11&&i.$elm$.host?i.$elm$.host:i.$elm$,_=e&&e.$attrs$||TE,b=i.$attrs$||TE;for(u in _)u in b||EE(d,u,_[u],void 0,o,i.$flags$);for(u in b)EE(d,u,_[u],b[u],o,i.$flags$)},U_=(e,i,o,u)=>{const d=i.$children$[o];let _=0,b,a;if(d.$text$!==null)b=d.$elm$=Ml.createTextNode(d.$text$);else{if(la||(la=d.$tag$==="svg"),b=d.$elm$=Ml.createElementNS(la?z$:O$,d.$tag$),la&&d.$tag$==="foreignObject"&&(la=!1),LE(null,d,la),k$(F_)&&b["s-si"]!==F_&&b.classList.add(b["s-si"]=F_),d.$children$)for(_=0;_<d.$children$.length;++_)a=U_(e,d,_),a&&b.appendChild(a);d.$tag$==="svg"?la=!1:b.tagName==="foreignObject"&&(la=!0)}return b},zE=(e,i,o,u,d,_)=>{let b=e,a;for(b.shadowRoot&&b.tagName===ME&&(b=b.shadowRoot);d<=_;++d)u[d]&&(a=U_(null,o,d),a&&(u[d].$elm$=a,b.insertBefore(a,i)))},OE=(e,i,o,u,d)=>{for(;i<=o;++i)(u=e[i])&&(d=u.$elm$,kE(u),d.remove())},V$=(e,i,o,u)=>{let d=0,_=0,b=0,a=0,E=i.length-1,j=i[0],V=i[E],ie=u.length-1,G=u[0],le=u[ie],fe,ve;for(;d<=E&&_<=ie;)if(j==null)j=i[++d];else if(V==null)V=i[--E];else if(G==null)G=u[++_];else if(le==null)le=u[--ie];else if(V_(j,G))bf(j,G),j=i[++d],G=u[++_];else if(V_(V,le))bf(V,le),V=i[--E],le=u[--ie];else if(V_(j,le))bf(j,le),e.insertBefore(j.$elm$,V.$elm$.nextSibling),j=i[++d],le=u[--ie];else if(V_(V,G))bf(V,G),e.insertBefore(V.$elm$,j.$elm$),V=i[--E],G=u[++_];else{for(b=-1,a=d;a<=E;++a)if(i[a]&&i[a].$key$!==null&&i[a].$key$===G.$key$){b=a;break}b>=0?(ve=i[b],ve.$tag$!==G.$tag$?fe=U_(i&&i[_],o,b):(bf(ve,G),i[b]=void 0,fe=ve.$elm$),G=u[++_]):(fe=U_(i&&i[_],o,_),G=u[++_]),fe&&j.$elm$.parentNode.insertBefore(fe,j.$elm$)}d>E?zE(e,u[ie+1]==null?null:u[ie+1].$elm$,o,u,_,ie):_>ie&&OE(i,d,E)},V_=(e,i)=>e.$tag$===i.$tag$?e.$key$===i.$key$:!1,bf=(e,i)=>{const o=i.$elm$=e.$elm$,u=e.$children$,d=i.$children$,_=i.$tag$,b=i.$text$;b===null?(la=_==="svg"?!0:_==="foreignObject"?!1:la,_==="slot"||LE(e,i,la),u!==null&&d!==null?V$(o,u,i,d):d!==null?(e.$text$!==null&&(o.textContent=""),zE(o,null,i,d,0,d.length-1)):u!==null&&OE(u,0,u.length-1),la&&_==="svg"&&(la=!1)):e.$text$!==b&&(o.data=b)},kE=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(kE)},Q$=(e,i)=>{const o=e.$hostElement$,u=e.$cmpMeta$,d=e.$vnode$||j3(null,null),_=j$(i)?i:Je(null,null,i);ME=o.tagName,u.$attrsToReflect$&&(_.$attrs$=_.$attrs$||{},u.$attrsToReflect$.map(([b,a])=>_.$attrs$[a]=o[b])),_.$tag$=null,_.$flags$|=4,e.$vnode$=_,_.$elm$=d.$elm$=o.shadowRoot||o,F_=o["s-sc"],bf(d,_)},jE=(e,i)=>{i&&!e.$onRenderResolve$&&i["s-p"]&&i["s-p"].push(new Promise(o=>e.$onRenderResolve$=o))},Q_=(e,i)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return jE(e,e.$ancestorComponent$),aY(()=>H$(e,i))},H$=(e,i)=>{const o=mc("scheduleUpdate",e.$cmpMeta$.$tagName$),u=e.$lazyInstance$;let d;return i&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([_,b])=>zh(u,_,b)),e.$queuedListeners$=null),d=zh(u,"componentWillLoad")),d=RE(d,()=>zh(u,"componentWillRender")),o(),RE(d,()=>$$(e,u,i))},$$=async(e,i,o)=>{const u=e.$hostElement$,d=mc("update",e.$cmpMeta$.$tagName$),_=u["s-rc"];o&&F$(e);const b=mc("render",e.$cmpMeta$.$tagName$);Y$(e,i),_&&(_.map(a=>a()),u["s-rc"]=void 0),b(),d();{const a=u["s-p"],E=()=>G$(e);a.length===0?E():(Promise.all(a).then(E),e.$flags$|=4,a.length=0)}},Y$=(e,i,o)=>{try{i=i.render&&i.render(),e.$flags$&=-17,e.$flags$|=2,Q$(e,i)}catch(u){Oh(u,e.$hostElement$)}return null},G$=e=>{const i=e.$cmpMeta$.$tagName$,o=e.$hostElement$,u=mc("postUpdate",i),d=e.$lazyInstance$,_=e.$ancestorComponent$;zh(d,"componentDidRender"),e.$flags$&64?u():(e.$flags$|=64,BE(o),zh(d,"componentDidLoad"),u(),e.$onReadyResolve$(o),_||PE()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&F3(()=>Q_(e,!1)),e.$flags$&=-517},P3=e=>{{const i=wu(e),o=i.$hostElement$.isConnected;return o&&(i.$flags$&18)===2&&Q_(i,!1),o}},PE=e=>{BE(Ml.documentElement),F3(()=>SE(Em,"appload",{detail:{namespace:E$}}))},zh=(e,i,o)=>{if(e&&e[i])try{return e[i](o)}catch(u){Oh(u)}},RE=(e,i)=>e&&e.then?e.then(i):i(),BE=e=>e.classList.add("hydrated"),Z$=(e,i)=>wu(e).$instanceValues$.get(i),W$=(e,i,o,u)=>{const d=wu(e),_=d.$hostElement$,b=d.$instanceValues$.get(i),a=d.$flags$,E=d.$lazyInstance$;o=P$(o,u.$members$[i][0]);const j=Number.isNaN(b)&&Number.isNaN(o),V=o!==b&&!j;if((!(a&8)||b===void 0)&&V&&(d.$instanceValues$.set(i,o),E)){if(u.$watchers$&&a&128){const ie=u.$watchers$[i];ie&&ie.map(G=>{try{E[G](o,b,i)}catch(le){Oh(le,_)}})}(a&18)===2&&Q_(d,!1)}},FE=(e,i,o)=>{if(i.$members$){e.watchers&&(i.$watchers$=e.watchers);const u=Object.entries(i.$members$),d=e.prototype;if(u.map(([_,[b]])=>{b&31||o&2&&b&32?Object.defineProperty(d,_,{get(){return Z$(this,_)},set(a){W$(this,_,a,i)},configurable:!0,enumerable:!0}):o&1&&b&64&&Object.defineProperty(d,_,{value(...a){const E=wu(this);return E.$onInstancePromise$.then(()=>E.$lazyInstance$[_](...a))}})}),o&1){const _=new Map;d.attributeChangedCallback=function(b,a,E){Ko.jmp(()=>{const j=_.get(b);if(this.hasOwnProperty(j))E=this[j],delete this[j];else if(d.hasOwnProperty(j)&&typeof this[j]=="number"&&this[j]==E)return;this[j]=E===null&&typeof this[j]=="boolean"?!1:E})},e.observedAttributes=u.filter(([b,a])=>a[0]&15).map(([b,a])=>{const E=a[1]||b;return _.set(E,b),a[0]&512&&i.$attrsToReflect$.push([b,E]),E})}}return e},q$=async(e,i,o,u,d)=>{if(!(i.$flags$&32)){{if(i.$flags$|=32,d=rY(o),d.then){const E=N$();d=await d,E()}d.isProxied||(o.$watchers$=d.watchers,FE(d,o,2),d.isProxied=!0);const a=mc("createInstance",o.$tagName$);i.$flags$|=8;try{new d(i)}catch(E){Oh(E)}i.$flags$&=-9,i.$flags$|=128,a(),UE(i.$lazyInstance$)}if(d.style){let a=d.style;const E=CE(o);if(!H_.has(E)){const j=mc("registerStyles",o.$tagName$);R$(E,a,!!(o.$flags$&1)),j()}}}const _=i.$ancestorComponent$,b=()=>Q_(i,!0);_&&_["s-rc"]?_["s-rc"].push(b):b()},UE=e=>{zh(e,"connectedCallback")},K$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$cmpMeta$,u=mc("connectedCallback",o.$tagName$);if(i.$flags$&1)VE(e,i,o.$listeners$),UE(i.$lazyInstance$);else{i.$flags$|=1;{let d=e;for(;d=d.parentNode||d.host;)if(d["s-p"]){jE(i,i.$ancestorComponent$=d);break}}o.$members$&&Object.entries(o.$members$).map(([d,[_]])=>{if(_&31&&e.hasOwnProperty(d)){const b=e[d];delete e[d],e[d]=b}}),q$(e,i,o)}u()}},X$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$lazyInstance$;i.$rmListeners$&&(i.$rmListeners$.map(u=>u()),i.$rmListeners$=void 0),zh(o,"disconnectedCallback")}},J$=(e,i={})=>{var o;const u=mc(),d=[],_=i.exclude||[],b=Em.customElements,a=Ml.head,E=a.querySelector("meta[charset]"),j=Ml.createElement("style"),V=[];let ie,G=!0;Object.assign(Ko,i),Ko.$resourcesUrl$=new URL(i.resourcesUrl||"./",Ml.baseURI).href,e.map(le=>{le[1].map(fe=>{const ve={$flags$:fe[0],$tagName$:fe[1],$members$:fe[2],$listeners$:fe[3]};ve.$members$=fe[2],ve.$listeners$=fe[3],ve.$attrsToReflect$=[],ve.$watchers$={};const Ze=ve.$tagName$,me=class extends HTMLElement{constructor(te){super(te),te=this,nY(te,ve),ve.$flags$&1&&te.attachShadow({mode:"open"})}connectedCallback(){ie&&(clearTimeout(ie),ie=null),G?V.push(this):Ko.jmp(()=>K$(this))}disconnectedCallback(){Ko.jmp(()=>X$(this))}componentOnReady(){return wu(this).$onReadyPromise$}};ve.$lazyBundleId$=le[0],!_.includes(Ze)&&!b.get(Ze)&&(d.push(Ze),b.define(Ze,FE(me,ve,1)))})});{j.innerHTML=d+L$,j.setAttribute("data-styles","");const le=(o=Ko.$nonce$)!==null&&o!==void 0?o:DE(Ml);le!=null&&j.setAttribute("nonce",le),a.insertBefore(j,E?E.nextSibling:a.firstChild)}G=!1,V.length?V.map(le=>le.connectedCallback()):Ko.jmp(()=>ie=setTimeout(PE,30)),u()},VE=(e,i,o,u)=>{o&&o.map(([d,_,b])=>{const a=tY(e,d),E=eY(i,b),j=iY(d);Ko.ael(a,_,E,j),(i.$rmListeners$=i.$rmListeners$||[]).push(()=>Ko.rel(a,_,E,j))})},eY=(e,i)=>o=>{try{e.$flags$&256?e.$lazyInstance$[i](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([i,o])}catch(u){Oh(u)}},tY=(e,i)=>i&8?Em:e,iY=e=>(e&2)!==0,R3=new WeakMap,wu=e=>R3.get(e),Ir=(e,i)=>R3.set(i.$lazyInstance$=e,i),nY=(e,i)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:i,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise(u=>o.$onInstanceResolve$=u),o.$onReadyPromise$=new Promise(u=>o.$onReadyResolve$=u),e["s-p"]=[],e["s-rc"]=[],VE(e,o,i.$listeners$),R3.set(e,o)},QE=(e,i)=>i in e,Oh=(e,i)=>(0,console.error)(e,i),HE=new Map,rY=(e,i,o)=>{const u=e.$tagName$.replace(/-/g,"_"),d=e.$lazyBundleId$,_=HE.get(d);if(_)return _[u];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return C$(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>pq),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>yq),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>vq),"./mi-column.entry.js":()=>Promise.resolve().then(()=>xq),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Mq),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>Nq),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Oq),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>kq),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Qq),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>$q),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>nK),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>oK),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>aK),"./mi-list.entry.js":()=>Promise.resolve().then(()=>cK),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Oie),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>jie),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Qie),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>Gie),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>Wie),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>une),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>dne),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>pne),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>mne),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>_ne),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>xne),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>bne),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>Ine),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Dne),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Nne),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>zne),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>kne),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Pne),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>Rne),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Fne),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Une)}),`./${d}.entry.js`).then(b=>(HE.set(d,b),b[u]),Oh)},H_=new Map,Em=typeof window<"u"?window:{},Ml=Em.document||{head:{}},Ko={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,i,o,u)=>e.addEventListener(i,o,u),rel:(e,i,o,u)=>e.removeEventListener(i,o,u),ce:(e,i)=>new CustomEvent(e,i)},$E=e=>Promise.resolve(e),oY=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),YE=[],GE=[],sY=(e,i)=>o=>{e.push(o),O3||(O3=!0,i&&Ko.$flags$&4?F3(B3):Ko.raf(B3))},ZE=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(o){Oh(o)}e.length=0},B3=()=>{ZE(YE),ZE(GE),(O3=YE.length>0)&&Ko.raf(B3)},F3=e=>$E().then(e),aY=sY(GE,!0),lY=()=>$E(),WE=(e,i)=>typeof window>"u"?Promise.resolve():lY().then(()=>J$([["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"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],i)),cY={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,i){console&&console[e]&&console[e].apply(console,i)}};class $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(i,o)}init(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=i||cY,this.options=o,this.debug=o.debug}log(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"log","",!0)}warn(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","",!0)}error(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"error","")}deprecate(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(i,o,u,d){return d&&!this.debug?null:(typeof i[0]=="string"&&(i[0]=`${u}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new $_(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new $_(this.logger,i)}}var Il=new $_;class Y_{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(u=>{this.observers[u]=this.observers[u]||[],this.observers[u].push(o)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(u=>u!==o)}}emit(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];this.observers[i]&&[].concat(this.observers[i]).forEach(b=>{b(...u)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(b=>{b.apply(b,[i,...u])})}}function Nm(){let e,i;const o=new Promise((u,d)=>{e=u,i=d});return o.resolve=e,o.reject=i,o}function qE(e){return e==null?"":""+e}function uY(e,i,o){e.forEach(u=>{i[u]&&(o[u]=i[u])})}function U3(e,i,o){function u(b){return b&&b.indexOf("###")>-1?b.replace(/###/g,"."):b}function d(){return!e||typeof e=="string"}const _=typeof i!="string"?[].concat(i):i.split(".");for(;_.length>1;){if(d())return{};const b=u(_.shift());!e[b]&&o&&(e[b]=new o),Object.prototype.hasOwnProperty.call(e,b)?e=e[b]:e={}}return d()?{}:{obj:e,k:u(_.shift())}}function KE(e,i,o){const{obj:u,k:d}=U3(e,i,Object);u[d]=o}function hY(e,i,o,u){const{obj:d,k:_}=U3(e,i,Object);d[_]=d[_]||[],u&&(d[_]=d[_].concat(o)),u||d[_].push(o)}function G_(e,i){const{obj:o,k:u}=U3(e,i);if(o)return o[u]}function dY(e,i,o){const u=G_(e,o);return u!==void 0?u:G_(i,o)}function XE(e,i,o){for(const u in i)u!=="__proto__"&&u!=="constructor"&&(u in e?typeof e[u]=="string"||e[u]instanceof String||typeof i[u]=="string"||i[u]instanceof String?o&&(e[u]=i[u]):XE(e[u],i[u],o):e[u]=i[u]);return e}function Mf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function pY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,i=>fY[i]):e}const gY=[" ",",","?","!",";"];function mY(e,i,o){i=i||"",o=o||"";const u=gY.filter(b=>i.indexOf(b)<0&&o.indexOf(b)<0);if(u.length===0)return!0;const d=new RegExp(`(${u.map(b=>b==="?"?"\\?":b).join("|")})`);let _=!d.test(e);if(!_){const b=e.indexOf(o);b>0&&!d.test(e.substring(0,b))&&(_=!0)}return _}function Z_(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[i])return e[i];const u=i.split(o);let d=e;for(let _=0;_<u.length;++_){if(!d||typeof d[u[_]]=="string"&&_+1<u.length)return;if(d[u[_]]===void 0){let b=2,a=u.slice(_,_+b).join(o),E=d[a];for(;E===void 0&&u.length>_+b;)b++,a=u.slice(_,_+b).join(o),E=d[a];if(E===void 0)return;if(E===null)return null;if(i.endsWith(a)){if(typeof E=="string")return E;if(a&&typeof E[a]=="string")return E[a]}const j=u.slice(_+b).join(o);return j?Z_(E,j,o):void 0}d=d[u[_]]}return d}function W_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class JE extends Y_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=i||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,b=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[i,o];u&&typeof u!="string"&&(a=a.concat(u)),u&&typeof u=="string"&&(a=a.concat(_?u.split(_):u)),i.indexOf(".")>-1&&(a=i.split("."));const E=G_(this.data,a);return E||!b||typeof u!="string"?E:Z_(this.data&&this.data[i]&&this.data[i][o],u,_)}addResource(i,o,u,d){let _=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const b=_.keySeparator!==void 0?_.keySeparator:this.options.keySeparator;let a=[i,o];u&&(a=a.concat(b?u.split(b):u)),i.indexOf(".")>-1&&(a=i.split("."),d=o,o=a[1]),this.addNamespaces(o),KE(this.data,a,d),_.silent||this.emit("added",i,o,u,d)}addResources(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _ in u)(typeof u[_]=="string"||Object.prototype.toString.apply(u[_])==="[object Array]")&&this.addResource(i,o,_,u[_],{silent:!0});d.silent||this.emit("added",i,o,u)}addResourceBundle(i,o,u,d,_){let b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[i,o];i.indexOf(".")>-1&&(a=i.split("."),d=u,u=o,o=a[1]),this.addNamespaces(o);let E=G_(this.data,a)||{};d?XE(E,u,_):E={...E,...u},KE(this.data,a,E),b.silent||this.emit("added",i,o,u)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(i,o)}:this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(d=>o[d]&&Object.keys(o[d]).length>0)}toJSON(){return this.data}}var eN={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,i,o,u,d){return e.forEach(_=>{this.processors[_]&&(i=this.processors[_].process(i,o,u,d))}),i}};const tN={};class q_ extends Y_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),uY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Il.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;const u=this.resolve(i,o);return u&&u.res!==void 0}extractFromKey(i,o){let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let _=o.ns||this.options.defaultNS||[];const b=u&&i.indexOf(u)>-1,a=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!mY(i,u,d);if(b&&!a){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:_};const j=i.split(u);(u!==d||u===d&&this.options.ns.indexOf(j[0])>-1)&&(_=j.shift()),i=j.join(d)}return typeof _=="string"&&(_=[_]),{key:i,namespaces:_}}translate(i,o,u){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,_=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:b,namespaces:a}=this.extractFromKey(i[i.length-1],o),E=a[a.length-1],j=o.lng||this.language,V=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(j&&j.toLowerCase()==="cimode"){if(V){const re=o.nsSeparator||this.options.nsSeparator;return d?{res:`${E}${re}${b}`,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:`${E}${re}${b}`}return d?{res:b,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:b}const ie=this.resolve(i,o);let G=ie&&ie.res;const le=ie&&ie.usedKey||b,fe=ie&&ie.exactUsedKey||b,ve=Object.prototype.toString.apply(G),Ze=["[object Number]","[object Function]","[object RegExp]"],me=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject;if(te&&G&&(typeof G!="string"&&typeof G!="boolean"&&typeof G!="number")&&Ze.indexOf(ve)<0&&!(typeof me=="string"&&ve==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(le,G,{...o,ns:a}):`key '${b} (${this.language})' returned an object instead of string.`;return d?(ie.res=re,ie.usedParams=this.getUsedParamsDetails(o),ie):re}if(_){const re=ve==="[object Array]",Me=re?[]:{},we=re?fe:le;for(const We in G)if(Object.prototype.hasOwnProperty.call(G,We)){const ot=`${we}${_}${We}`;Me[We]=this.translate(ot,{...o,joinArrays:!1,ns:a}),Me[We]===ot&&(Me[We]=G[We])}G=Me}}else if(te&&typeof me=="string"&&ve==="[object Array]")G=G.join(me),G&&(G=this.extendTranslation(G,i,o,u));else{let re=!1,Me=!1;const we=o.count!==void 0&&typeof o.count!="string",We=q_.hasDefaultValue(o),ot=we?this.pluralResolver.getSuffix(j,o.count,o):"",$e=o.ordinal&&we?this.pluralResolver.getSuffix(j,o.count,{ordinal:!1}):"",xt=o[`defaultValue${ot}`]||o[`defaultValue${$e}`]||o.defaultValue;!this.isValidLookup(G)&&We&&(re=!0,G=xt),this.isValidLookup(G)||(Me=!0,G=b);const jt=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Me?void 0:G,St=We&&xt!==G&&this.options.updateMissing;if(Me||re||St){if(this.logger.log(St?"updateKey":"missingKey",j,E,b,St?xt:G),_){const qt=this.resolve(b,{...o,keySeparator:!1});qt&&qt.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 Jt=[];const Tt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Tt&&Tt[0])for(let qt=0;qt<Tt.length;qt++)Jt.push(Tt[qt]);else this.options.saveMissingTo==="all"?Jt=this.languageUtils.toResolveHierarchy(o.lng||this.language):Jt.push(o.lng||this.language);const bt=(qt,Ot,Vt)=>{const W=We&&Vt!==G?Vt:jt;this.options.missingKeyHandler?this.options.missingKeyHandler(qt,E,Ot,W,St,o):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(qt,E,Ot,W,St,o),this.emit("missingKey",qt,E,Ot,G)};this.options.saveMissing&&(this.options.saveMissingPlurals&&we?Jt.forEach(qt=>{this.pluralResolver.getSuffixes(qt,o).forEach(Ot=>{bt([qt],b+Ot,o[`defaultValue${Ot}`]||xt)})}):bt(Jt,b,xt))}G=this.extendTranslation(G,i,o,ie,u),Me&&G===b&&this.options.appendNamespaceToMissingKey&&(G=`${E}:${b}`),(Me||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?G=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${E}:${b}`:b,re?G:void 0):G=this.options.parseMissingKeyHandler(G))}return d?(ie.res=G,ie.usedParams=this.getUsedParamsDetails(o),ie):G}extendTranslation(i,o,u,d,_){var b=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const j=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let V;if(j){const G=i.match(this.interpolator.nestingRegexp);V=G&&G.length}let ie=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(ie={...this.options.interpolation.defaultVariables,...ie}),i=this.interpolator.interpolate(i,ie,u.lng||this.language,u),j){const G=i.match(this.interpolator.nestingRegexp),le=G&&G.length;V<le&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(u.lng=d.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var G=arguments.length,le=new Array(G),fe=0;fe<G;fe++)le[fe]=arguments[fe];return _&&_[0]===le[0]&&!u.context?(b.logger.warn(`It seems you are nesting recursively key: ${le[0]} in key: ${o[0]}`),null):b.translate(...le,o)},u)),u.interpolation&&this.interpolator.reset()}const a=u.postProcess||this.options.postProcess,E=typeof a=="string"?[a]:a;return i!=null&&E&&E.length&&u.applyPostProcessor!==!1&&(i=eN.handle(E,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),i}resolve(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,d,_,b,a;return typeof i=="string"&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(u))return;const j=this.extractFromKey(E,o),V=j.key;d=V;let ie=j.namespaces;this.options.fallbackNS&&(ie=ie.concat(this.options.fallbackNS));const G=o.count!==void 0&&typeof o.count!="string",le=G&&!o.ordinal&&o.count===0&&this.pluralResolver.shouldUseIntlApi(),fe=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",ve=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);ie.forEach(Ze=>{this.isValidLookup(u)||(a=Ze,!tN[`${ve[0]}-${Ze}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(tN[`${ve[0]}-${Ze}`]=!0,this.logger.warn(`key "${d}" for languages "${ve.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ve.forEach(me=>{if(this.isValidLookup(u))return;b=me;const te=[V];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(te,V,me,Ze,o);else{let re;G&&(re=this.pluralResolver.getSuffix(me,o.count,o));const Me=`${this.options.pluralSeparator}zero`,we=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(G&&(te.push(V+re),o.ordinal&&re.indexOf(we)===0&&te.push(V+re.replace(we,this.options.pluralSeparator)),le&&te.push(V+Me)),fe){const We=`${V}${this.options.contextSeparator}${o.context}`;te.push(We),G&&(te.push(We+re),o.ordinal&&re.indexOf(we)===0&&te.push(We+re.replace(we,this.options.pluralSeparator)),le&&te.push(We+Me))}}let ee;for(;ee=te.pop();)this.isValidLookup(u)||(_=ee,u=this.getResource(me,Ze,ee,o))}))})}),{res:u,usedKey:d,exactUsedKey:_,usedLng:b,usedNS:a}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,d):this.resourceStore.getResource(i,o,u,d)}getUsedParamsDetails(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=i.replace&&typeof i.replace!="string";let d=u?i.replace:i;if(u&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!u){d={...d};for(const _ of o)delete d[_]}return d}static hasDefaultValue(i){const o="defaultValue";for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}function V3(e){return e.charAt(0).toUpperCase()+e.slice(1)}class iN{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Il.create("languageUtils")}getScriptPartFromCode(i){if(i=W_(i),!i||i.indexOf("-")<0)return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=W_(i),!i||i.indexOf("-")<0)return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(typeof i=="string"&&i.indexOf("-")>-1){const o=["hans","hant","latn","cyrl","cans","mong","arab"];let u=i.split("-");return this.options.lowerCaseLng?u=u.map(d=>d.toLowerCase()):u.length===2?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase()))):u.length===3&&(u[0]=u[0].toLowerCase(),u[1].length===2&&(u[1]=u[1].toUpperCase()),u[0]!=="sgn"&&u[2].length===2&&(u[2]=u[2].toUpperCase()),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase())),o.indexOf(u[2].toLowerCase())>-1&&(u[2]=V3(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let o;return i.forEach(u=>{if(o)return;const d=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(d))&&(o=d)}),!o&&this.options.supportedLngs&&i.forEach(u=>{if(o)return;const d=this.getLanguagePartFromCode(u);if(this.isSupportedCode(d))return o=d;o=this.options.supportedLngs.find(_=>{if(_===d)return _;if(!(_.indexOf("-")<0&&d.indexOf("-")<0)&&_.indexOf(d)===0)return _})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!o)return i.default||[];let u=i[o];return u||(u=i[this.getScriptPartFromCode(o)]),u||(u=i[this.formatLanguageCode(o)]),u||(u=i[this.getLanguagePartFromCode(o)]),u||(u=i.default),u||[]}toResolveHierarchy(i,o){const u=this.getFallbackCodes(o||this.options.fallbackLng||[],i),d=[],_=b=>{b&&(this.isSupportedCode(b)?d.push(b):this.logger.warn(`rejecting language code not found in supportedLngs: ${b}`))};return typeof i=="string"&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&_(this.getLanguagePartFromCode(i))):typeof i=="string"&&_(this.formatLanguageCode(i)),u.forEach(b=>{d.indexOf(b)<0&&_(this.formatLanguageCode(b))}),d}}let yY=[{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}],_Y={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 vY=["v1","v2","v3"],xY=["v4"],nN={zero:0,one:1,two:2,few:3,many:4,other:5};function wY(){const e={};return yY.forEach(i=>{i.lngs.forEach(o=>{e[o]={numbers:i.nr,plurals:_Y[i.fc]}})}),e}class bY{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=i,this.options=o,this.logger=Il.create("pluralResolver"),(!this.options.compatibilityJSON||xY.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=wY()}addRule(i,o){this.rules[i]=o}getRule(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(W_(i),{type:o.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}needsPlural(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return this.shouldUseIntlApi()?u&&u.resolvedOptions().pluralCategories.length>1:u&&u.numbers.length>1}getPluralFormsOfKey(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(i,u).map(d=>`${o}${d}`)}getSuffixes(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return u?this.shouldUseIntlApi()?u.resolvedOptions().pluralCategories.sort((d,_)=>nN[d]-nN[_]).map(d=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${d}`):u.numbers.map(d=>this.getSuffix(i,d,o)):[]}getSuffix(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const d=this.getRule(i,u);return d?this.shouldUseIntlApi()?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${d.select(o)}`:this.getSuffixRetroCompatible(d,o):(this.logger.warn(`no plural rule found for: ${i}`),"")}getSuffixRetroCompatible(i,o){const u=i.noAbs?i.plurals(o):i.plurals(Math.abs(o));let d=i.numbers[u];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(d===2?d="plural":d===1&&(d=""));const _=()=>this.options.prepend&&d.toString()?this.options.prepend+d.toString():d.toString();return this.options.compatibilityJSON==="v1"?d===1?"":typeof d=="number"?`_plural_${d.toString()}`:_():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?_():this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString()}shouldUseIntlApi(){return!vY.includes(this.options.compatibilityJSON)}}function rN(e,i,o){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_=dY(e,i,o);return!_&&d&&typeof o=="string"&&(_=Z_(e,o,u),_===void 0&&(_=Z_(i,o,u))),_}class MY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("interpolator"),this.options=i,this.format=i.interpolation&&i.interpolation.format||(o=>o),this.init(i)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});const o=i.interpolation;this.escape=o.escape!==void 0?o.escape:pY,this.escapeValue=o.escapeValue!==void 0?o.escapeValue:!0,this.useRawValueToEscape=o.useRawValueToEscape!==void 0?o.useRawValueToEscape:!1,this.prefix=o.prefix?Mf(o.prefix):o.prefixEscaped||"{{",this.suffix=o.suffix?Mf(o.suffix):o.suffixEscaped||"}}",this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||",",this.unescapePrefix=o.unescapeSuffix?"":o.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":o.unescapeSuffix||"",this.nestingPrefix=o.nestingPrefix?Mf(o.nestingPrefix):o.nestingPrefixEscaped||Mf("$t("),this.nestingSuffix=o.nestingSuffix?Mf(o.nestingSuffix):o.nestingSuffixEscaped||Mf(")"),this.nestingOptionsSeparator=o.nestingOptionsSeparator?o.nestingOptionsSeparator:o.nestingOptionsSeparator||",",this.maxReplaces=o.maxReplaces?o.maxReplaces:1e3,this.alwaysFormat=o.alwaysFormat!==void 0?o.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(i,"g");const o=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(o,"g");const u=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(u,"g")}interpolate(i,o,u,d){let _,b,a;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function j(fe){return fe.replace(/\$/g,"$$$$")}const V=fe=>{if(fe.indexOf(this.formatSeparator)<0){const te=rN(o,E,fe,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(te,void 0,u,{...d,...o,interpolationkey:fe}):te}const ve=fe.split(this.formatSeparator),Ze=ve.shift().trim(),me=ve.join(this.formatSeparator).trim();return this.format(rN(o,E,Ze,this.options.keySeparator,this.options.ignoreJSONStructure),me,u,{...d,...o,interpolationkey:Ze})};this.resetRegExp();const ie=d&&d.missingInterpolationHandler||this.options.missingInterpolationHandler,G=d&&d.interpolation&&d.interpolation.skipOnVariables!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:fe=>j(fe)},{regex:this.regexp,safeValue:fe=>this.escapeValue?j(this.escape(fe)):j(fe)}].forEach(fe=>{for(a=0;_=fe.regex.exec(i);){const ve=_[1].trim();if(b=V(ve),b===void 0)if(typeof ie=="function"){const me=ie(i,_,d);b=typeof me=="string"?me:""}else if(d&&Object.prototype.hasOwnProperty.call(d,ve))b="";else if(G){b=_[0];continue}else this.logger.warn(`missed to pass in variable ${ve} for interpolating ${i}`),b="";else typeof b!="string"&&!this.useRawValueToEscape&&(b=qE(b));const Ze=fe.safeValue(b);if(i=i.replace(_[0],Ze),G?(fe.regex.lastIndex+=b.length,fe.regex.lastIndex-=_[0].length):fe.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),i}nest(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,_,b;function a(E,j){const V=this.nestingOptionsSeparator;if(E.indexOf(V)<0)return E;const ie=E.split(new RegExp(`${V}[ ]*{`));let G=`{${ie[1]}`;E=ie[0],G=this.interpolate(G,b);const le=G.match(/'/g),fe=G.match(/"/g);(le&&le.length%2===0&&!fe||fe.length%2!==0)&&(G=G.replace(/'/g,'"'));try{b=JSON.parse(G),j&&(b={...j,...b})}catch(ve){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,ve),`${E}${V}${G}`}return delete b.defaultValue,E}for(;d=this.nestingRegexp.exec(i);){let E=[];b={...u},b=b.replace&&typeof b.replace!="string"?b.replace:b,b.applyPostProcessor=!1,delete b.defaultValue;let j=!1;if(d[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(d[1])){const V=d[1].split(this.formatSeparator).map(ie=>ie.trim());d[1]=V.shift(),E=V,j=!0}if(_=o(a.call(this,d[1].trim(),b),b),_&&d[0]===i&&typeof _!="string")return _;typeof _!="string"&&(_=qE(_)),_||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),_=""),j&&(_=E.reduce((V,ie)=>this.format(V,ie,u.lng,{...u,interpolationkey:d[1].trim()}),_.trim())),i=i.replace(d[0],_),this.regexp.lastIndex=0}return i}}function IY(e){let i=e.toLowerCase().trim();const o={};if(e.indexOf("(")>-1){const u=e.split("(");i=u[0].toLowerCase().trim();const d=u[1].substring(0,u[1].length-1);i==="currency"&&d.indexOf(":")<0?o.currency||(o.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?o.range||(o.range=d.trim()):d.split(";").forEach(b=>{if(!b)return;const[a,...E]=b.split(":"),j=E.join(":").trim().replace(/^'+|'+$/g,"");o[a.trim()]||(o[a.trim()]=j),j==="false"&&(o[a.trim()]=!1),j==="true"&&(o[a.trim()]=!0),isNaN(j)||(o[a.trim()]=parseInt(j,10))})}return{formatName:i,formatOptions:o}}function If(e){const i={};return function(u,d,_){const b=d+JSON.stringify(_);let a=i[b];return a||(a=e(W_(d),_),i[b]=a),a(u)}}class TY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("formatter"),this.options=i,this.formats={number:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u});return _=>d.format(_)}),currency:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u,style:"currency"});return _=>d.format(_)}),datetime:If((o,u)=>{const d=new Intl.DateTimeFormat(o,{...u});return _=>d.format(_)}),relativetime:If((o,u)=>{const d=new Intl.RelativeTimeFormat(o,{...u});return _=>d.format(_,u.range||"day")}),list:If((o,u)=>{const d=new Intl.ListFormat(o,{...u});return _=>d.format(_)})},this.init(i)}init(i){const u=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=u.formatSeparator?u.formatSeparator:u.formatSeparator||","}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=If(o)}format(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return o.split(this.formatSeparator).reduce((a,E)=>{const{formatName:j,formatOptions:V}=IY(E);if(this.formats[j]){let ie=a;try{const G=d&&d.formatParams&&d.formatParams[d.interpolationkey]||{},le=G.locale||G.lng||d.locale||d.lng||u;ie=this.formats[j](a,le,{...V,...d,...G})}catch(G){this.logger.warn(G)}return ie}else this.logger.warn(`there was no format function for ${j}`);return a},i)}}function DY(e,i){e.pending[i]!==void 0&&(delete e.pending[i],e.pendingCount--)}class SY extends Y_{constructor(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=i,this.store=o,this.services=u,this.languageUtils=u.languageUtils,this.options=d,this.logger=Il.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(u,d.backend,d)}queueLoad(i,o,u,d){const _={},b={},a={},E={};return i.forEach(j=>{let V=!0;o.forEach(ie=>{const G=`${j}|${ie}`;!u.reload&&this.store.hasResourceBundle(j,ie)?this.state[G]=2:this.state[G]<0||(this.state[G]===1?b[G]===void 0&&(b[G]=!0):(this.state[G]=1,V=!1,b[G]===void 0&&(b[G]=!0),_[G]===void 0&&(_[G]=!0),E[ie]===void 0&&(E[ie]=!0)))}),V||(a[j]=!0)}),(Object.keys(_).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(_),pending:Object.keys(b),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(E)}}loaded(i,o,u){const d=i.split("|"),_=d[0],b=d[1];o&&this.emit("failedLoading",_,b,o),u&&this.store.addResourceBundle(_,b,u),this.state[i]=o?-1:2;const a={};this.queue.forEach(E=>{hY(E.loaded,[_],b),DY(E,i),o&&E.errors.push(o),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(j=>{a[j]||(a[j]={});const V=E.loaded[j];V.length&&V.forEach(ie=>{a[j][ie]===void 0&&(a[j][ie]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(E=>!E.done)}read(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,b=arguments.length>5?arguments[5]:void 0;if(!i.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:d,wait:_,callback:b});return}this.readingCalls++;const a=(j,V)=>{if(this.readingCalls--,this.waitingReads.length>0){const ie=this.waitingReads.shift();this.read(ie.lng,ie.ns,ie.fcName,ie.tried,ie.wait,ie.callback)}if(j&&V&&d<this.maxRetries){setTimeout(()=>{this.read.call(this,i,o,u,d+1,_*2,b)},_);return}b(j,V)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const j=E(i,o);j&&typeof j.then=="function"?j.then(V=>a(null,V)).catch(a):a(null,j)}catch(j){a(j)}return}return E(i,o,a)}prepareLoading(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=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."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);const _=this.queueLoad(i,o,u,d);if(!_.toLoad.length)return _.pending.length||d(),null;_.toLoad.forEach(b=>{this.loadOne(b)})}load(i,o,u){this.prepareLoading(i,o,{},u)}reload(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}loadOne(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const u=i.split("|"),d=u[0],_=u[1];this.read(d,_,"read",void 0,void 0,(b,a)=>{b&&this.logger.warn(`${o}loading namespace ${_} for language ${d} failed`,b),!b&&a&&this.logger.log(`${o}loaded namespace ${_} for language ${d}`,a),this.loaded(i,b,a)})}saveMissing(i,o,u,d,_){let b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${u}" as the 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!!!");return}if(!(u==null||u==="")){if(this.backend&&this.backend.create){const E={...b,isUpdate:_},j=this.backend.create.bind(this.backend);if(j.length<6)try{let V;j.length===5?V=j(i,o,u,d,E):V=j(i,o,u,d),V&&typeof V.then=="function"?V.then(ie=>a(null,ie)).catch(a):a(null,V)}catch(V){a(V)}else j(i,o,u,d,a,E)}!i||!i[0]||this.store.addResource(i[0],o,u,d)}}}function oN(){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(i){let o={};if(typeof i[1]=="object"&&(o=i[1]),typeof i[1]=="string"&&(o.defaultValue=i[1]),typeof i[2]=="string"&&(o.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const u=i[3]||i[2];Object.keys(u).forEach(d=>{o[d]=u[d]})}return o},interpolation:{escapeValue:!0,format:(e,i,o,u)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function sN(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 K_(){}function AY(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})}class Lm extends Y_{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=sN(i),this.services={},this.logger=Il,this.modules={external:[]},AY(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initImmediate)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(){var i=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const d=oN();this.options={...d,...this.options,...sN(o)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...d.interpolation,...this.options.interpolation}),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function _(V){return V?typeof V=="function"?new V:V:null}if(!this.options.isClone){this.modules.logger?Il.init(_(this.modules.logger),this.options):Il.init(null,this.options);let V;this.modules.formatter?V=this.modules.formatter:typeof Intl<"u"&&(V=TY);const ie=new iN(this.options);this.store=new JE(this.options.resources,this.options);const G=this.services;G.logger=Il,G.resourceStore=this.store,G.languageUtils=ie,G.pluralResolver=new bY(ie,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),V&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(G.formatter=_(V),G.formatter.init(G,this.options),this.options.interpolation.format=G.formatter.format.bind(G.formatter)),G.interpolator=new MY(this.options),G.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},G.backendConnector=new SY(_(this.modules.backend),G.resourceStore,G,this.options),G.backendConnector.on("*",function(le){for(var fe=arguments.length,ve=new Array(fe>1?fe-1:0),Ze=1;Ze<fe;Ze++)ve[Ze-1]=arguments[Ze];i.emit(le,...ve)}),this.modules.languageDetector&&(G.languageDetector=_(this.modules.languageDetector),G.languageDetector.init&&G.languageDetector.init(G,this.options.detection,this.options)),this.modules.i18nFormat&&(G.i18nFormat=_(this.modules.i18nFormat),G.i18nFormat.init&&G.i18nFormat.init(this)),this.translator=new q_(this.services,this.options),this.translator.on("*",function(le){for(var fe=arguments.length,ve=new Array(fe>1?fe-1:0),Ze=1;Ze<fe;Ze++)ve[Ze-1]=arguments[Ze];i.emit(le,...ve)}),this.modules.external.forEach(le=>{le.init&&le.init(this)})}if(this.format=this.options.interpolation.format,u||(u=K_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const V=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);V.length>0&&V[0]!=="dev"&&(this.options.lng=V[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(V=>{this[V]=function(){return i.store[V](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(V=>{this[V]=function(){return i.store[V](...arguments),i}});const E=Nm(),j=()=>{const V=(ie,G)=>{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),E.resolve(G),u(ie,G)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return V(null,this.t.bind(this));this.changeLanguage(this.options.lng,V)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),E}loadResources(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K_;const d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const _=[],b=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(j=>{j!=="cimode"&&_.indexOf(j)<0&&_.push(j)})};d?b(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(E=>b(E)),this.options.preload&&this.options.preload.forEach(a=>b(a)),this.services.backendConnector.load(_,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(a)})}else u(null)}reloadResources(i,o,u){const d=Nm();return i||(i=this.languages),o||(o=this.options.ns),u||(u=K_),this.services.backendConnector.reload(i,o,_=>{d.resolve(),u(_)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&eN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(let o=0;o<this.languages.length;o++){const u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}changeLanguage(i,o){var u=this;this.isLanguageChangingTo=i;const d=Nm();this.emit("languageChanging",i);const _=E=>{this.language=E,this.languages=this.services.languageUtils.toResolveHierarchy(E),this.resolvedLanguage=void 0,this.setResolvedLanguage(E)},b=(E,j)=>{j?(_(j),this.translator.changeLanguage(j),this.isLanguageChangingTo=void 0,this.emit("languageChanged",j),this.logger.log("languageChanged",j)):this.isLanguageChangingTo=void 0,d.resolve(function(){return u.t(...arguments)}),o&&o(E,function(){return u.t(...arguments)})},a=E=>{!i&&!E&&this.services.languageDetector&&(E=[]);const j=typeof E=="string"?E:this.services.languageUtils.getBestMatchFromCodes(E);j&&(this.language||_(j),this.translator.language||this.translator.changeLanguage(j),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(j)),this.loadResources(j,V=>{b(V,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(i),d}getFixedT(i,o,u){var d=this;const _=function(b,a){let E;if(typeof a!="object"){for(var j=arguments.length,V=new Array(j>2?j-2:0),ie=2;ie<j;ie++)V[ie-2]=arguments[ie];E=d.options.overloadTranslationOptionHandler([b,a].concat(V))}else E={...a};E.lng=E.lng||_.lng,E.lngs=E.lngs||_.lngs,E.ns=E.ns||_.ns,E.keyPrefix=E.keyPrefix||u||_.keyPrefix;const G=d.options.keySeparator||".";let le;return E.keyPrefix&&Array.isArray(b)?le=b.map(fe=>`${E.keyPrefix}${G}${fe}`):le=E.keyPrefix?`${E.keyPrefix}${G}${b}`:b,d.t(le,E)};return typeof i=="string"?_.lng=i:_.lngs=i,_.ns=o,_.keyPrefix=u,_}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i){let o=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 u=o.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,_=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=this.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};if(o.precheck){const a=o.precheck(this,b);if(a!==void 0)return a}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(u,i)&&(!d||b(_,i)))}loadNamespaces(i,o){const u=Nm();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}loadLanguages(i,o){const u=Nm();typeof i=="string"&&(i=[i]);const d=this.options.preload||[],_=i.filter(b=>d.indexOf(b)<0);return _.length?(this.options.preload=d.concat(_),this.loadResources(b=>{u.resolve(),o&&o(b)}),u):(o&&o(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";const o=["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"],u=this.services&&this.services.languageUtils||new iN(oN());return o.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new Lm(i,o)}cloneInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K_;const u=i.forkResourceStore;u&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},_=new Lm(d);return(i.debug!==void 0||i.prefix!==void 0)&&(_.logger=_.logger.clone(i)),["store","services","language"].forEach(a=>{_[a]=this[a]}),_.services={...this.services},_.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},u&&(_.store=new JE(this.store.data,d),_.services.resourceStore=_.store),_.translator=new q_(_.services,d),_.translator.on("*",function(a){for(var E=arguments.length,j=new Array(E>1?E-1:0),V=1;V<E;V++)j[V-1]=arguments[V];_.emit(a,...j)}),_.init(d,o),_.translator.options=d,_.translator.backendConnector.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},_}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const jo=Lm.createInstance();jo.createInstance=Lm.createInstance,jo.createInstance,jo.dir,jo.init,jo.loadResources,jo.reloadResources,jo.use,jo.changeLanguage,jo.getFixedT;const aN=jo.t;jo.exists,jo.setDefaultNamespace,jo.hasLoadedNamespace,jo.loadNamespaces,jo.loadLanguages;function Q3(){return Q3=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var u in o)({}).hasOwnProperty.call(o,u)&&(e[u]=o[u])}return e},Q3.apply(null,arguments)}function CY(){if(console&&console.warn){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i)}}const lN={};function H3(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&lN[i[0]]||(typeof i[0]=="string"&&(lN[i[0]]=new Date),CY(...i))}const cN=(e,i)=>()=>{if(e.isInitialized)i();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),i()};e.on("initialized",o)}};function uN(e,i,o){e.loadNamespaces(i,cN(e,o))}function hN(e,i,o,u){typeof o=="string"&&(o=[o]),o.forEach(d=>{e.options.ns.indexOf(d)<0&&e.options.ns.push(d)}),e.loadLanguages(i,cN(e,u))}function EY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=i.languages[0],d=i.options?i.options.fallbackLng:!1,_=i.languages[i.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=i.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!b(i.isLanguageChangingTo,e)?!1:!!(i.hasResourceBundle(u,e)||!i.services.backendConnector.backend||i.options.resources&&!i.options.partialBundledLanguages||b(u,e)&&(!d||b(_,e)))}function NY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!i.languages||!i.languages.length?(H3("i18n.languages were undefined or empty",i.languages),!0):i.options.ignoreJSONStructure!==void 0?i.hasLoadedNamespace(e,{lng:o.lng,precheck:(d,_)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&d.services.backendConnector.backend&&d.isLanguageChangingTo&&!_(d.isLanguageChangingTo,e))return!1}}):EY(e,i,o)}const LY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},OY=e=>zY[e];let $3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(LY,OY)};function kY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$3={...$3,...e}}function jY(){return $3}let dN;function PY(e){dN=e}function RY(){return dN}const BY={type:"3rdParty",init(e){kY(e.options.react),PY(e)}},FY=be.createContext();class UY{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const VY=(e,i)=>{const o=be.useRef();return be.useEffect(()=>{o.current=i?o.current:e},[e,i]),o.current};function cs(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=i,{i18n:u,defaultNS:d}=be.useContext(FY)||{},_=o||u||RY();if(_&&!_.reportNamespaces&&(_.reportNamespaces=new UY),!_){H3("You will need to pass in an i18next instance by using initReactI18next");const ee=(Me,we)=>typeof we=="string"?we:we&&typeof we=="object"&&typeof we.defaultValue=="string"?we.defaultValue:Array.isArray(Me)?Me[Me.length-1]:Me,re=[ee,{},!1];return re.t=ee,re.i18n={},re.ready=!1,re}_.options.react&&_.options.react.wait!==void 0&&H3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const b={...jY(),..._.options.react,...i},{useSuspense:a,keyPrefix:E}=b;let j=e||d||_.options&&_.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"],_.reportNamespaces.addUsedNamespaces&&_.reportNamespaces.addUsedNamespaces(j);const V=(_.isInitialized||_.initializedStoreOnce)&&j.every(ee=>NY(ee,_,b));function ie(){return _.getFixedT(i.lng||null,b.nsMode==="fallback"?j:j[0],E)}const[G,le]=be.useState(ie);let fe=j.join();i.lng&&(fe=`${i.lng}${fe}`);const ve=VY(fe),Ze=be.useRef(!0);be.useEffect(()=>{const{bindI18n:ee,bindI18nStore:re}=b;Ze.current=!0,!V&&!a&&(i.lng?hN(_,i.lng,j,()=>{Ze.current&&le(ie)}):uN(_,j,()=>{Ze.current&&le(ie)})),V&&ve&&ve!==fe&&Ze.current&&le(ie);function Me(){Ze.current&&le(ie)}return ee&&_&&_.on(ee,Me),re&&_&&_.store.on(re,Me),()=>{Ze.current=!1,ee&&_&&ee.split(" ").forEach(we=>_.off(we,Me)),re&&_&&re.split(" ").forEach(we=>_.store.off(we,Me))}},[_,fe]);const me=be.useRef(!0);be.useEffect(()=>{Ze.current&&!me.current&&le(ie),me.current=!1},[_,E]);const te=[G,_,V];if(te.t=G,te.i18n=_,te.ready=V,V||!V&&!a)return te;throw new Promise(ee=>{i.lng?hN(_,i.lng,j,()=>ee()):uN(_,j,()=>ee())})}const QY={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","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","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language"},HY={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","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","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog"},$Y={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...","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","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","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen"},YY={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","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é","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue"},GY={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","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","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","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua"},ZY={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...","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","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","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma"},WY={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","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","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","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal"},qY={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","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":"避开楼梯和扶梯","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:"已关闭","Go to view":"定位到","Select language":"选择语言"};function KY(e){jo.use(BY).init({resources:{en:{translation:QY},da:{translation:HY},de:{translation:$Y},fr:{translation:YY},it:{translation:GY},es:{translation:ZY},nl:{translation:WY},zh:{translation:qY}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const fN=[{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:"中文"}],Pae="",Tf={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var pN={exports:{}},XY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",JY=XY,eG=JY;function gN(){}function mN(){}mN.resetWarningCache=gN;var tG=function(){function e(u,d,_,b,a,E){if(E!==eG){var j=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 j.name="Invariant Violation",j}}e.isRequired=e;function i(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:i,element:e,elementType:e,instanceOf:i,node:e,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:mN,resetWarningCache:gN};return o.PropTypes=o,o};pN.exports=tG();var iG=pN.exports;const dt=rc(iG),Rae="",nG=e=>{const[i,o]=be.useState(!1);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Y3=()=>nG("(min-width: 992px)");class rG{constructor(i={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:o=100}=i;this._maxAccuracy=o}get currentPosition(){return this._currentPosition}hasValidPosition(){const i=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=i}on(i,o){this._listeners.has(i)||this._listeners.set(i,[]),this._listeners.get(i).push(o)}off(i,o){const u=this._listeners.get(i);u&&this._listeners.set(i,u.filter(d=>d!==o))}setPosition(i){let o;if(i.coords&&i.timestamp)o={coords:{latitude:i.coords.latitude,longitude:i.coords.longitude,accuracy:i.coords.accuracy,altitude:i.coords.altitude??null,altitudeAccuracy:i.coords.altitudeAccuracy??null,heading:i.coords.heading??null,speed:i.coords.speed??null},timestamp:i.timestamp,floorIndex:i.floorIndex??null};else{const d={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:i};return this.emitError(d),!1}return o.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${o.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=o,(this._listeners.get("position_received")||[]).forEach(d=>{d.call(null,{position:o})}),!0)}emitError(i){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",i),(this._listeners.get("position_error")||[]).forEach(u=>{u.call(null,i)})}}const X_={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"}};yN.propTypes={mapType:dt.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:dt.object.isRequired,mapInstance:dt.object.isRequired,onPositionControl:dt.func,brandingColor:dt.string,devicePosition:dt.object,excludedElements:dt.string};function yN({mapType:e,mapsIndoorsInstance:i,mapInstance:o,onPositionControl:u,brandingColor:d,devicePosition:_,excludedElements:b=""}){const a=Y3(),E=be.useRef(null),j=be.useRef(null),V=be.useCallback(le=>!b||typeof b!="string"?!0:!b.split(",").map(ve=>ve.trim()).includes(le),[b]),ie=be.useMemo(()=>{const le={};for(const[fe,ve]of Object.entries(X_))le[fe]=Pe.jsx("div",{className:ve.className},ve.key);return le},[]),G=le=>{j.current.customPositionProvider.setPosition(le)&&j.current.watchPosition()};return be.useEffect(()=>{if(!(!i||!o)){if(!E.current){const le=document.createElement("mi-floor-selector");E.current=le}if(!j.current){const le=document.createElement("mi-my-position");j.current=le}E.current.mapsindoors=i,j.current.mapsindoors=i,d&&(E.current.primaryColor=d),u&&j.current&&u(j.current)}},[e,i,o,u,d]),be.useEffect(()=>{if(j.current){if(j.current.stopListeningForPosition&&typeof j.current.stopListeningForPosition=="function"&&j.current.stopListeningForPosition(),_&&typeof _=="object"){if(j.current.customPositionProvider||(j.current.customPositionProvider=new rG),Object.keys(_).length===0)return;G(_)}return()=>{j.current&&j.current.stopListeningForPosition&&typeof j.current.stopListeningForPosition=="function"&&j.current.stopListeningForPosition()}}},[_]),be.useEffect(()=>{if(!E.current||!j.current)return;const le=(fe,ve)=>{const Ze=document.querySelector(`.${ve}`);Ze&&!Ze.contains(fe)&&(fe.remove(),Ze.appendChild(fe))};V("floorSelector")&&le(E.current,X_.floorSelector.className),V("myPosition")&&le(j.current,X_.myPosition.className)},[a,V]),be.useEffect(()=>{Object.entries(X_).forEach(([le,fe])=>{const ve=document.querySelector(`.${fe.className}`);ve&&(V(le)?ve.style.display="":ve.style.display="none")})},[b,V,a]),a?Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-container desktop top-right",children:[ie.venueSelector,ie.viewSelector,ie.languageSelector,ie.viewModeSwitch,ie.myPosition,ie.floorSelector]}),Pe.jsx("div",{className:"map-controls-container desktop bottom-right",children:ie.resetView})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-left-column mobile-column",children:[ie.venueSelector,ie.viewModeSwitch,ie.viewSelector,ie.languageSelector]}),Pe.jsxs("div",{className:"map-controls-right-column mobile-column",children:[ie.myPosition,ie.floorSelector]})]})}const oG=be.memo(yN),Bae="",sG=be.lazy(()=>Promise.resolve().then(()=>Gne)),aG=be.lazy(()=>Promise.resolve().then(()=>Xne)),Df={Google:"google",Mapbox:"mapbox"};_N.propTypes={apiKey:dt.string.isRequired,gmApiKey:dt.string,mapboxAccessToken:dt.string,center:dt.object,zoom:dt.number,bounds:dt.object,bearing:dt.number,pitch:dt.number,resetUICounter:dt.number,mapOptions:dt.object,onInitialized:dt.func,gmMapId:dt.string,devicePosition:dt.object};function _N({apiKey:e,gmApiKey:i,mapboxAccessToken:o,center:u,zoom:d,bounds:_,bearing:b,pitch:a,resetUICounter:E,mapOptions:j,onInitialized:V,gmMapId:ie,devicePosition:G}){var St;const[le,fe]=be.useState(),[ve,Ze]=be.useState(),[me,te]=be.useState(),[ee,re]=be.useState(),[Me,we]=be.useState(),[We,ot]=be.useState(),[$e,xt]=be.useState(),ut=be.useMemo(()=>{var Jt;return((Jt=We==null?void 0:We.appSettings)==null?void 0:Jt.excludeFromUI)||""},[(St=We==null?void 0:We.appSettings)==null?void 0:St.excludeFromUI]);be.useEffect(()=>{window.customElements.get("mi-floor-selector")||WE()},[]),be.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),le===Df.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(Jt=>{we(Jt)}),window.mapsindoors.services.AppConfigService.getConfig().then(Jt=>{ot(Jt)})))},[e,le]);const jt=Jt=>{xt(Jt);const Tt=new window.mapsindoors.MapsIndoors({mapView:Jt});Tt.once("building_changed",bt=>{const qt=Tt.getVenue();bt&&qt&&bt.venueId!==qt.id&&Tt.setVenue(bt.venueId)}),Tt.on("mouseenter",()=>{var qt;const bt=Tt.getHoveredLocation();((qt=bt==null?void 0:bt.properties.locationSettings)==null?void 0:qt.selectable)===!1&&Tt.unhoverLocation()}),Tt.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Ze(Tt)};return be.useEffect(()=>{typeof V=="function"&&ve&&me&&typeof ee=="boolean"&&V(ve,me,ee)},[ve,me,ee]),be.useEffect(()=>{Me&&le===Df.Mapbox&&["mapbox","3dwalls","floorplan"].every(Jt=>Me.modules.map(Tt=>Tt.toLowerCase()).includes(Jt))?re(!0):re(!1)},[Me,le]),be.useEffect(()=>{o?fe(Df.Mapbox):i&&fe(Df.Google)},[i,o]),Pe.jsxs(Pe.Fragment,{children:[le===Df.Google&&Pe.jsx(be.Suspense,{children:Pe.jsx(aG,{mapsIndoorsInstance:ve,apiKey:i,onInitialized:jt,center:u,zoom:d,mapOptions:j,heading:b,tilt:a,bounds:_,gmMapId:ie})}),le===Df.Mapbox&&Pe.jsx(be.Suspense,{children:Pe.jsx(sG,{mapsIndoorsInstance:ve,accessToken:o,onInitialized:jt,center:u,zoom:d,mapOptions:j,bearing:b,pitch:a,bounds:_,resetViewMode:E,viewModeSwitchVisible:ee,appConfig:We})}),ve&&$e&&le&&Pe.jsx(oG,{mapType:le,mapsIndoorsInstance:ve,mapInstance:$e,onPositionControl:te,brandingColor:j==null?void 0:j.brandingColor,devicePosition:G,excludedElements:ut})]})}const us={Google:"google",Mapbox:"mapbox"},ca=kn({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),lG=e=>{const i=Ei(ca),o=be.useRef(),[u,d]=be.useState([]);be.useEffect(()=>{(async()=>{if(i&&e){for(const a of u)o.current.disableLiveData(a);o.current=new window.mapsindoors.LiveDataManager(i);const b=await o.current.LiveDataInfo.activeDomainTypes();for(const a of b)await o.current.enableLiveData(a);d(b)}})()},[e,i])},J_=kn({key:"userPosition",default:null}),G3=kn({key:"directionsService",default:null}),ev=kn({key:"mapType",default:void 0}),Z3=kn({key:"apiKey",default:null}),W3=kn({key:"gmApiKey",default:null}),tv=kn({key:"mapboxAccessToken",default:null}),iv=kn({key:"filteredLocations",default:void 0}),nv=kn({key:"filteredLocationsByExternalID",default:void 0}),vN=kn({key:"tileStyle",default:null}),xN=kn({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),q3=kn({key:"bearing",default:0}),rv=kn({key:"pitch",default:null}),wN=kn({key:"solution",default:null,dangerouslyAllowMutability:!0}),zm=kn({key:"notificationMessage",default:null});function Om(){return new Promise(e=>{const i=document.querySelector(".modal--open"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-(i==null?void 0:i.offsetTop));else{const u=new MutationObserver(()=>{const d=document.querySelector(".modal--open");d&&(u.disconnect(),e(o.offsetHeight-(d==null?void 0:d.offsetTop)))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const km=kn({key:"categories",default:[]}),K3=kn({key:"kioskOriginLocationId",default:void 0}),ov=kn({key:"locationId",default:void 0}),bN=kn({key:"startZoomLevel",default:null}),bu=kn({key:"currentVenueName",default:null}),jm=kn({key:"venues",default:[]}),X3=kn({key:"venueWasSelected",default:!1}),sv=kn({key:"isMapReady",default:!1});function Sf(){return new Promise(e=>{const i=document.querySelector(".sheet--active"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-i.offsetTop);else{const u=new MutationObserver(()=>{const d=document.querySelector(".sheet--active");d&&(u.disconnect(),e(o.offsetHeight-d.offsetTop))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function kh(){return new Promise(e=>{const i=document.querySelector(".modal--open");if(i)e((i==null?void 0:i.offsetWidth)+(i==null?void 0:i.offsetLeft)*2);else{const o=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(o.disconnect(),e((u==null?void 0:u.offsetWidth)+(u==null?void 0:u.offsetLeft)*2))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const MN=kn({key:"timeout",default:void 0});function IN(){const[e,i]=be.useState(!1),o=Ei(sv),u=Ei(MN);return be.useEffect(()=>{if(!o||!u)return;let d;const _=()=>{i(!1),window.clearTimeout(d),d=window.setTimeout(b,u*1e3)},b=()=>{i(!0)};return d=window.setTimeout(b,u*1e3),window.addEventListener("mousemove",_),window.addEventListener("mousedown",_),window.addEventListener("resize",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),window.addEventListener("wheel",_),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mousedown",_),window.removeEventListener("resize",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_),window.removeEventListener("wheel",_),window.clearTimeout(d)}},[u,o]),e}const cG=e=>{const[i,o]=be.useState(window.matchMedia(e).matches);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Ja=()=>cG("(min-width: 992px)"),TN=kn({key:"mapboxViewMode",default:null}),J3=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),uG=B_({key:"currentPitch",get:({get:e})=>{const i=e(rv),o=e(TN);let u;switch(o){case J3.initial3D:u=i??45;break;case J3.clicked3D:u=45;break;case J3.clicked2D:u=0;break;default:u=i}return u}}),DN=kn({key:"center",default:null});function kr(e){return e==null}var xs=63710088e-1,e4={centimeters:xs*100,centimetres:xs*100,degrees:xs/111325,feet:xs*3.28084,inches:xs*39.37,kilometers:xs/1e3,kilometres:xs/1e3,meters:xs,metres:xs,miles:xs/1609.344,millimeters:xs*1e3,millimetres:xs*1e3,nauticalmiles:xs/1852,radians:1,yards:xs*1.0936},hG={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/xs,yards:1.0936133},t4={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 Na(e,i,o){o===void 0&&(o={});var u={type:"Feature"};return(o.id===0||o.id)&&(u.id=o.id),o.bbox&&(u.bbox=o.bbox),u.properties=i||{},u.geometry=e,u}function dG(e,i,o){switch(e){case"Point":return el(i).geometry;case"LineString":return tl(i).geometry;case"Polygon":return i4(i).geometry;case"MultiPoint":return SN(i).geometry;case"MultiLineString":return n4(i).geometry;case"MultiPolygon":return AN(i).geometry;default:throw new Error(e+" is invalid")}}function el(e,i,o){if(o===void 0&&(o={}),!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(!av(e[0])||!av(e[1]))throw new Error("coordinates must contain numbers");var u={type:"Point",coordinates:e};return Na(u,i,o)}function fG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return el(u,i)}),o)}function i4(e,i,o){o===void 0&&(o={});for(var u=0,d=e;u<d.length;u++){var _=d[u];if(_.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var b=0;b<_[_.length-1].length;b++)if(_[_.length-1][b]!==_[0][b])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return Na(a,i,o)}function pG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return i4(u,i)}),o)}function tl(e,i,o){if(o===void 0&&(o={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var u={type:"LineString",coordinates:e};return Na(u,i,o)}function gG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return tl(u,i)}),o)}function Mu(e,i){i===void 0&&(i={});var o={type:"FeatureCollection"};return i.id&&(o.id=i.id),i.bbox&&(o.bbox=i.bbox),o.features=e,o}function n4(e,i,o){o===void 0&&(o={});var u={type:"MultiLineString",coordinates:e};return Na(u,i,o)}function SN(e,i,o){o===void 0&&(o={});var u={type:"MultiPoint",coordinates:e};return Na(u,i,o)}function AN(e,i,o){o===void 0&&(o={});var u={type:"MultiPolygon",coordinates:e};return Na(u,i,o)}function mG(e,i,o){o===void 0&&(o={});var u={type:"GeometryCollection",geometries:e};return Na(u,i,o)}function yG(e,i){if(i===void 0&&(i=0),i&&!(i>=0))throw new Error("precision must be a positive number");var o=Math.pow(10,i||0);return Math.round(e*o)/o}function CN(e,i){i===void 0&&(i="kilometers");var o=e4[i];if(!o)throw new Error(i+" units is invalid");return e*o}function r4(e,i){i===void 0&&(i="kilometers");var o=e4[i];if(!o)throw new Error(i+" units is invalid");return e/o}function _G(e,i){return EN(r4(e,i))}function vG(e){var i=e%360;return i<0&&(i+=360),i}function EN(e){var i=e%(2*Math.PI);return i*180/Math.PI}function xG(e){var i=e%360;return i*Math.PI/180}function wG(e,i,o){if(i===void 0&&(i="kilometers"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("length must be a positive number");return CN(r4(e,i),o)}function bG(e,i,o){if(i===void 0&&(i="meters"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("area must be a positive number");var u=t4[i];if(!u)throw new Error("invalid original units");var d=t4[o];if(!d)throw new Error("invalid final units");return e/u*d}function av(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function o4(e){return!!e&&e.constructor===Object}function MG(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(i){if(!av(i))throw new Error("bbox must only contain numbers")})}function IG(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 TG=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:t4,bearingToAzimuth:vG,convertArea:bG,convertLength:wG,degreesToRadians:xG,earthRadius:xs,factors:e4,feature:Na,featureCollection:Mu,geometry:dG,geometryCollection:mG,isNumber:av,isObject:o4,lengthToDegrees:_G,lengthToRadians:r4,lineString:tl,lineStrings:gG,multiLineString:n4,multiPoint:SN,multiPolygon:AN,point:el,points:fG,polygon:i4,polygons:pG,radiansToDegrees:EN,radiansToLength:CN,round:yG,unitsFactors:hG,validateBBox:MG,validateId:IG},Symbol.toStringTag,{value:"Module"}));function Af(e,i,o){if(e!==null)for(var u,d,_,b,a,E,j,V=0,ie=0,G,le=e.type,fe=le==="FeatureCollection",ve=le==="Feature",Ze=fe?e.features.length:1,me=0;me<Ze;me++){j=fe?e.features[me].geometry:ve?e.geometry:e,G=j?j.type==="GeometryCollection":!1,a=G?j.geometries.length:1;for(var te=0;te<a;te++){var ee=0,re=0;if(b=G?j.geometries[te]:j,b!==null){E=b.coordinates;var Me=b.type;switch(V=o&&(Me==="Polygon"||Me==="MultiPolygon")?1:0,Me){case null:break;case"Point":if(i(E,ie,me,ee,re)===!1)return!1;ie++,ee++;break;case"LineString":case"MultiPoint":for(u=0;u<E.length;u++){if(i(E[u],ie,me,ee,re)===!1)return!1;ie++,Me==="MultiPoint"&&ee++}Me==="LineString"&&ee++;break;case"Polygon":case"MultiLineString":for(u=0;u<E.length;u++){for(d=0;d<E[u].length-V;d++){if(i(E[u][d],ie,me,ee,re)===!1)return!1;ie++}Me==="MultiLineString"&&ee++,Me==="Polygon"&&re++}Me==="Polygon"&&ee++;break;case"MultiPolygon":for(u=0;u<E.length;u++){for(re=0,d=0;d<E[u].length;d++){for(_=0;_<E[u][d].length-V;_++){if(i(E[u][d][_],ie,me,ee,re)===!1)return!1;ie++}re++}ee++}break;case"GeometryCollection":for(u=0;u<b.geometries.length;u++)if(Af(b.geometries[u],i,o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function DG(e,i,o,u){var d=o;return Af(e,function(_,b,a,E,j){b===0&&o===void 0?d=_:d=i(d,_,b,a,E,j)},u),d}function NN(e,i){var o;switch(e.type){case"FeatureCollection":for(o=0;o<e.features.length&&i(e.features[o].properties,o)!==!1;o++);break;case"Feature":i(e.properties,0);break}}function SG(e,i,o){var u=o;return NN(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function lv(e,i){if(e.type==="Feature")i(e,0);else if(e.type==="FeatureCollection")for(var o=0;o<e.features.length&&i(e.features[o],o)!==!1;o++);}function AG(e,i,o){var u=o;return lv(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function CG(e){var i=[];return Af(e,function(o){i.push(o)}),i}function s4(e,i){var o,u,d,_,b,a,E,j,V,ie,G=0,le=e.type==="FeatureCollection",fe=e.type==="Feature",ve=le?e.features.length:1;for(o=0;o<ve;o++){for(a=le?e.features[o].geometry:fe?e.geometry:e,j=le?e.features[o].properties:fe?e.properties:{},V=le?e.features[o].bbox:fe?e.bbox:void 0,ie=le?e.features[o].id:fe?e.id:void 0,E=a?a.type==="GeometryCollection":!1,b=E?a.geometries.length:1,d=0;d<b;d++){if(_=E?a.geometries[d]:a,_===null){if(i(null,G,j,V,ie)===!1)return!1;continue}switch(_.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(i(_,G,j,V,ie)===!1)return!1;break}case"GeometryCollection":{for(u=0;u<_.geometries.length;u++)if(i(_.geometries[u],G,j,V,ie)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}G++}}function EG(e,i,o){var u=o;return s4(e,function(d,_,b,a,E){_===0&&o===void 0?u=d:u=i(u,d,_,b,a,E)}),u}function _c(e,i){s4(e,function(o,u,d,_,b){var a=o===null?null:o.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return i(Na(o,d,{bbox:_,id:b}),u,0)===!1?!1:void 0}var E;switch(a){case"MultiPoint":E="Point";break;case"MultiLineString":E="LineString";break;case"MultiPolygon":E="Polygon";break}for(var j=0;j<o.coordinates.length;j++){var V=o.coordinates[j],ie={type:E,coordinates:V};if(i(Na(ie,d),u,j)===!1)return!1}})}function NG(e,i,o){var u=o;return _c(e,function(d,_,b){_===0&&b===0&&o===void 0?u=d:u=i(u,d,_,b)}),u}function LN(e,i){_c(e,function(o,u,d){var _=0;if(o.geometry){var b=o.geometry.type;if(!(b==="Point"||b==="MultiPoint")){var a,E=0,j=0,V=0;if(Af(o,function(ie,G,le,fe,ve){if(a===void 0||u>E||fe>j||ve>V){a=ie,E=u,j=fe,V=ve,_=0;return}var Ze=tl([a,ie],o.properties);if(i(Ze,u,d,ve,_)===!1)return!1;_++,a=ie})===!1)return!1}}})}function LG(e,i,o){var u=o,d=!1;return LN(e,function(_,b,a,E,j){d===!1&&o===void 0?u=_:u=i(u,_,b,a,E,j),d=!0}),u}function zN(e,i){if(!e)throw new Error("geojson is required");_c(e,function(o,u,d){if(o.geometry!==null){var _=o.geometry.type,b=o.geometry.coordinates;switch(_){case"LineString":if(i(o,u,d,0,0)===!1)return!1;break;case"Polygon":for(var a=0;a<b.length;a++)if(i(tl(b[a],o.properties),u,d,a)===!1)return!1;break}}})}function zG(e,i,o){var u=o;return zN(e,function(d,_,b,a){_===0&&o===void 0?u=d:u=i(u,d,_,b,a)}),u}function OG(e,i){if(i=i||{},!o4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.segmentIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":case"MultiPoint":return null;case"LineString":return _<0&&(_=E.length+_-1),tl([E[_],E[_+1]],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_-1),tl([E[d][_],E[d][_+1]],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_-1),tl([E[u][_],E[u][_+1]],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_-1),tl([E[u][d][_],E[u][d][_+1]],b,i)}throw new Error("geojson is invalid")}function kG(e,i){if(i=i||{},!o4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.coordIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":return el(E,b,i);case"MultiPoint":return u<0&&(u=E.length+u),el(E[u],b,i);case"LineString":return _<0&&(_=E.length+_),el(E[_],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_),el(E[d][_],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_),el(E[u][_],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_),el(E[u][d][_],b,i)}throw new Error("geojson is invalid")}const jG=Object.freeze(Object.defineProperty({__proto__:null,coordAll:CG,coordEach:Af,coordReduce:DG,featureEach:lv,featureReduce:AG,findPoint:kG,findSegment:OG,flattenEach:_c,flattenReduce:NG,geomEach:s4,geomReduce:EG,lineEach:zN,lineReduce:zG,propEach:NN,propReduce:SG,segmentEach:LN,segmentReduce:LG},Symbol.toStringTag,{value:"Module"}));function cv(e){var i=[1/0,1/0,-1/0,-1/0];return Af(e,function(o){i[0]>o[0]&&(i[0]=o[0]),i[1]>o[1]&&(i[1]=o[1]),i[2]<o[0]&&(i[2]=o[0]),i[3]<o[1]&&(i[3]=o[1])}),i}cv.default=cv;const PG=Object.freeze(Object.defineProperty({__proto__:null,default:cv},Symbol.toStringTag,{value:"Module"}));function RG(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 Pm(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 uv(e){return e.type==="Feature"?e.geometry:e}function Rm(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("point is required");if(!i)throw new Error("polygon is required");var u=RG(e),d=uv(i),_=d.type,b=i.bbox,a=d.coordinates;if(b&&BG(u,b)===!1)return!1;_==="Polygon"&&(a=[a]);for(var E=!1,j=0;j<a.length&&!E;j++)if(ON(u,a[j][0],o.ignoreBoundary)){for(var V=!1,ie=1;ie<a[j].length&&!V;)ON(u,a[j][ie],!o.ignoreBoundary)&&(V=!0),ie++;V||(E=!0)}return E}function ON(e,i,o){var u=!1;i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]&&(i=i.slice(0,i.length-1));for(var d=0,_=i.length-1;d<i.length;_=d++){var b=i[d][0],a=i[d][1],E=i[_][0],j=i[_][1],V=e[1]*(b-E)+a*(E-e[0])+j*(e[0]-b)===0&&(b-e[0])*(E-e[0])<=0&&(a-e[1])*(j-e[1])<=0;if(V)return!o;var ie=a>e[1]!=j>e[1]&&e[0]<(E-b)*(e[1]-a)/(j-a)+b;ie&&(u=!u)}return u}function BG(e,i){return i[0]<=e[0]&&i[1]<=e[1]&&i[2]>=e[0]&&i[3]>=e[1]}function FG(e,i){i===void 0&&(i={});var o=cv(e),u=(o[0]+o[2])/2,d=(o[1]+o[3])/2;return el([u,d],i.properties,i)}function kN(e){if(!e)throw new Error("geojson is required");var i=[];return _c(e,function(o){UG(o,i)}),Mu(i)}function UG(e,i){var o=[],u=e.geometry;if(u!==null){switch(u.type){case"Polygon":o=Pm(u);break;case"LineString":o=[Pm(u)]}o.forEach(function(d){var _=VG(d,e.properties);_.forEach(function(b){b.id=i.length,i.push(b)})})}}function VG(e,i){var o=[];return e.reduce(function(u,d){var _=tl([u,d],i);return _.bbox=QG(u,d),o.push(_),d}),o}function QG(e,i){var o=e[0],u=e[1],d=i[0],_=i[1],b=o<d?o:d,a=u<_?u:_,E=o>d?o:d,j=u>_?u:_;return[b,a,E,j]}var a4={exports:{}},jN={exports:{}};(function(e,i){(function(o,u){e.exports=u()})(kd,function(){function o(te,ee,re,Me,we){(function We(ot,$e,xt,ut,jt){for(;ut>xt;){if(ut-xt>600){var St=ut-xt+1,Jt=$e-xt+1,Tt=Math.log(St),bt=.5*Math.exp(2*Tt/3),qt=.5*Math.sqrt(Tt*bt*(St-bt)/St)*(Jt-St/2<0?-1:1),Ot=Math.max(xt,Math.floor($e-Jt*bt/St+qt)),Vt=Math.min(ut,Math.floor($e+(St-Jt)*bt/St+qt));We(ot,$e,Ot,Vt,jt)}var W=ot[$e],ne=xt,T=ut;for(u(ot,xt,$e),jt(ot[ut],W)>0&&u(ot,xt,ut);ne<T;){for(u(ot,ne,T),ne++,T--;jt(ot[ne],W)<0;)ne++;for(;jt(ot[T],W)>0;)T--}jt(ot[xt],W)===0?u(ot,xt,T):u(ot,++T,ut),T<=$e&&(xt=T+1),$e<=T&&(ut=T-1)}})(te,ee,re||0,Me||te.length-1,we||d)}function u(te,ee,re){var Me=te[ee];te[ee]=te[re],te[re]=Me}function d(te,ee){return te<ee?-1:te>ee?1:0}var _=function(te){te===void 0&&(te=9),this._maxEntries=Math.max(4,te),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(te,ee,re){if(!re)return ee.indexOf(te);for(var Me=0;Me<ee.length;Me++)if(re(te,ee[Me]))return Me;return-1}function a(te,ee){E(te,0,te.children.length,ee,te)}function E(te,ee,re,Me,we){we||(we=Ze(null)),we.minX=1/0,we.minY=1/0,we.maxX=-1/0,we.maxY=-1/0;for(var We=ee;We<re;We++){var ot=te.children[We];j(we,te.leaf?Me(ot):ot)}return we}function j(te,ee){return te.minX=Math.min(te.minX,ee.minX),te.minY=Math.min(te.minY,ee.minY),te.maxX=Math.max(te.maxX,ee.maxX),te.maxY=Math.max(te.maxY,ee.maxY),te}function V(te,ee){return te.minX-ee.minX}function ie(te,ee){return te.minY-ee.minY}function G(te){return(te.maxX-te.minX)*(te.maxY-te.minY)}function le(te){return te.maxX-te.minX+(te.maxY-te.minY)}function fe(te,ee){return te.minX<=ee.minX&&te.minY<=ee.minY&&ee.maxX<=te.maxX&&ee.maxY<=te.maxY}function ve(te,ee){return ee.minX<=te.maxX&&ee.minY<=te.maxY&&ee.maxX>=te.minX&&ee.maxY>=te.minY}function Ze(te){return{children:te,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function me(te,ee,re,Me,we){for(var We=[ee,re];We.length;)if(!((re=We.pop())-(ee=We.pop())<=Me)){var ot=ee+Math.ceil((re-ee)/Me/2)*Me;o(te,ot,ee,re,we),We.push(ee,ot,ot,re)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(te){var ee=this.data,re=[];if(!ve(te,ee))return re;for(var Me=this.toBBox,we=[];ee;){for(var We=0;We<ee.children.length;We++){var ot=ee.children[We],$e=ee.leaf?Me(ot):ot;ve(te,$e)&&(ee.leaf?re.push(ot):fe(te,$e)?this._all(ot,re):we.push(ot))}ee=we.pop()}return re},_.prototype.collides=function(te){var ee=this.data;if(!ve(te,ee))return!1;for(var re=[];ee;){for(var Me=0;Me<ee.children.length;Me++){var we=ee.children[Me],We=ee.leaf?this.toBBox(we):we;if(ve(te,We)){if(ee.leaf||fe(te,We))return!0;re.push(we)}}ee=re.pop()}return!1},_.prototype.load=function(te){if(!te||!te.length)return this;if(te.length<this._minEntries){for(var ee=0;ee<te.length;ee++)this.insert(te[ee]);return this}var re=this._build(te.slice(),0,te.length-1,0);if(this.data.children.length)if(this.data.height===re.height)this._splitRoot(this.data,re);else{if(this.data.height<re.height){var Me=this.data;this.data=re,re=Me}this._insert(re,this.data.height-re.height-1,!0)}else this.data=re;return this},_.prototype.insert=function(te){return te&&this._insert(te,this.data.height-1),this},_.prototype.clear=function(){return this.data=Ze([]),this},_.prototype.remove=function(te,ee){if(!te)return this;for(var re,Me,we,We=this.data,ot=this.toBBox(te),$e=[],xt=[];We||$e.length;){if(We||(We=$e.pop(),Me=$e[$e.length-1],re=xt.pop(),we=!0),We.leaf){var ut=b(te,We.children,ee);if(ut!==-1)return We.children.splice(ut,1),$e.push(We),this._condense($e),this}we||We.leaf||!fe(We,ot)?Me?(re++,We=Me.children[re],we=!1):We=null:($e.push(We),xt.push(re),re=0,Me=We,We=We.children[0])}return this},_.prototype.toBBox=function(te){return te},_.prototype.compareMinX=function(te,ee){return te.minX-ee.minX},_.prototype.compareMinY=function(te,ee){return te.minY-ee.minY},_.prototype.toJSON=function(){return this.data},_.prototype.fromJSON=function(te){return this.data=te,this},_.prototype._all=function(te,ee){for(var re=[];te;)te.leaf?ee.push.apply(ee,te.children):re.push.apply(re,te.children),te=re.pop();return ee},_.prototype._build=function(te,ee,re,Me){var we,We=re-ee+1,ot=this._maxEntries;if(We<=ot)return a(we=Ze(te.slice(ee,re+1)),this.toBBox),we;Me||(Me=Math.ceil(Math.log(We)/Math.log(ot)),ot=Math.ceil(We/Math.pow(ot,Me-1))),(we=Ze([])).leaf=!1,we.height=Me;var $e=Math.ceil(We/ot),xt=$e*Math.ceil(Math.sqrt(ot));me(te,ee,re,xt,this.compareMinX);for(var ut=ee;ut<=re;ut+=xt){var jt=Math.min(ut+xt-1,re);me(te,ut,jt,$e,this.compareMinY);for(var St=ut;St<=jt;St+=$e){var Jt=Math.min(St+$e-1,jt);we.children.push(this._build(te,St,Jt,Me-1))}}return a(we,this.toBBox),we},_.prototype._chooseSubtree=function(te,ee,re,Me){for(;Me.push(ee),!ee.leaf&&Me.length-1!==re;){for(var we=1/0,We=1/0,ot=void 0,$e=0;$e<ee.children.length;$e++){var xt=ee.children[$e],ut=G(xt),jt=(St=te,Jt=xt,(Math.max(Jt.maxX,St.maxX)-Math.min(Jt.minX,St.minX))*(Math.max(Jt.maxY,St.maxY)-Math.min(Jt.minY,St.minY))-ut);jt<We?(We=jt,we=ut<we?ut:we,ot=xt):jt===We&&ut<we&&(we=ut,ot=xt)}ee=ot||ee.children[0]}var St,Jt;return ee},_.prototype._insert=function(te,ee,re){var Me=re?te:this.toBBox(te),we=[],We=this._chooseSubtree(Me,this.data,ee,we);for(We.children.push(te),j(We,Me);ee>=0&&we[ee].children.length>this._maxEntries;)this._split(we,ee),ee--;this._adjustParentBBoxes(Me,we,ee)},_.prototype._split=function(te,ee){var re=te[ee],Me=re.children.length,we=this._minEntries;this._chooseSplitAxis(re,we,Me);var We=this._chooseSplitIndex(re,we,Me),ot=Ze(re.children.splice(We,re.children.length-We));ot.height=re.height,ot.leaf=re.leaf,a(re,this.toBBox),a(ot,this.toBBox),ee?te[ee-1].children.push(ot):this._splitRoot(re,ot)},_.prototype._splitRoot=function(te,ee){this.data=Ze([te,ee]),this.data.height=te.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(te,ee,re){for(var Me,we,We,ot,$e,xt,ut,jt=1/0,St=1/0,Jt=ee;Jt<=re-ee;Jt++){var Tt=E(te,0,Jt,this.toBBox),bt=E(te,Jt,re,this.toBBox),qt=(we=Tt,We=bt,ot=void 0,$e=void 0,xt=void 0,ut=void 0,ot=Math.max(we.minX,We.minX),$e=Math.max(we.minY,We.minY),xt=Math.min(we.maxX,We.maxX),ut=Math.min(we.maxY,We.maxY),Math.max(0,xt-ot)*Math.max(0,ut-$e)),Ot=G(Tt)+G(bt);qt<jt?(jt=qt,Me=Jt,St=Ot<St?Ot:St):qt===jt&&Ot<St&&(St=Ot,Me=Jt)}return Me||re-ee},_.prototype._chooseSplitAxis=function(te,ee,re){var Me=te.leaf?this.compareMinX:V,we=te.leaf?this.compareMinY:ie;this._allDistMargin(te,ee,re,Me)<this._allDistMargin(te,ee,re,we)&&te.children.sort(Me)},_.prototype._allDistMargin=function(te,ee,re,Me){te.children.sort(Me);for(var we=this.toBBox,We=E(te,0,ee,we),ot=E(te,re-ee,re,we),$e=le(We)+le(ot),xt=ee;xt<re-ee;xt++){var ut=te.children[xt];j(We,te.leaf?we(ut):ut),$e+=le(We)}for(var jt=re-ee-1;jt>=ee;jt--){var St=te.children[jt];j(ot,te.leaf?we(St):St),$e+=le(ot)}return $e},_.prototype._adjustParentBBoxes=function(te,ee,re){for(var Me=re;Me>=0;Me--)j(ee[Me],te)},_.prototype._condense=function(te){for(var ee=te.length-1,re=void 0;ee>=0;ee--)te[ee].children.length===0?ee>0?(re=te[ee-1].children).splice(re.indexOf(te[ee]),1):this.clear():a(te[ee],this.toBBox)},_})})(jN);var HG=jN.exports;const $G=Vw(TG),YG=Vw(jG),GG=Vw(PG);var Tl=HG,PN=$G,RN=YG,Cf=GG.default,ZG=RN.featureEach;RN.coordEach,PN.polygon;var BN=PN.featureCollection;function FN(e){var i=new Tl(e);return i.insert=function(o){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.insert.call(this,o)},i.load=function(o){var u=[];return Array.isArray(o)?o.forEach(function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}):ZG(o,function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}),Tl.prototype.load.call(this,u)},i.remove=function(o,u){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.remove.call(this,o,u)},i.clear=function(){return Tl.prototype.clear.call(this)},i.search=function(o){var u=Tl.prototype.search.call(this,this.toBBox(o));return BN(u)},i.collides=function(o){return Tl.prototype.collides.call(this,this.toBBox(o))},i.all=function(){var o=Tl.prototype.all.call(this);return BN(o)},i.toJSON=function(){return Tl.prototype.toJSON.call(this)},i.fromJSON=function(o){return Tl.prototype.fromJSON.call(this,o)},i.toBBox=function(o){var u;if(o.bbox)u=o.bbox;else if(Array.isArray(o)&&o.length===4)u=o;else if(Array.isArray(o)&&o.length===6)u=[o[0],o[1],o[3],o[4]];else if(o.type==="Feature")u=Cf(o);else if(o.type==="FeatureCollection")u=Cf(o);else throw new Error("invalid geojson");return{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3]}},i}a4.exports=FN,a4.exports.default=FN;var WG=a4.exports;const qG=rc(WG);function l4(e,i){var o={},u=[];if(e.type==="LineString"&&(e=Na(e)),i.type==="LineString"&&(i=Na(i)),e.type==="Feature"&&i.type==="Feature"&&e.geometry!==null&&i.geometry!==null&&e.geometry.type==="LineString"&&i.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&i.geometry.coordinates.length===2){var d=UN(e,i);return d&&u.push(d),Mu(u)}var _=qG();return _.load(kN(i)),lv(kN(e),function(b){lv(_.search(b),function(a){var E=UN(b,a);if(E){var j=Pm(E).join(",");o[j]||(o[j]=!0,u.push(E))}})}),Mu(u)}function UN(e,i){var o=Pm(e),u=Pm(i);if(o.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(u.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var d=o[0][0],_=o[0][1],b=o[1][0],a=o[1][1],E=u[0][0],j=u[0][1],V=u[1][0],ie=u[1][1],G=(ie-j)*(b-d)-(V-E)*(a-_),le=(V-E)*(_-j)-(ie-j)*(d-E),fe=(b-d)*(_-j)-(a-_)*(d-E);if(G===0)return null;var ve=le/G,Ze=fe/G;if(ve>=0&&ve<=1&&Ze>=0&&Ze<=1){var me=d+ve*(b-d),te=_+ve*(a-_);return el([me,te])}return null}function c4(e,i){i===void 0&&(i={});var o=uv(e);switch(!i.properties&&e.type==="Feature"&&(i.properties=e.properties),o.type){case"Polygon":return KG(o,i);case"MultiPolygon":return XG(o,i);default:throw new Error("invalid poly")}}function KG(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{};return VN(u,d)}function XG(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{},_=[];return u.forEach(function(b){_.push(VN(b,d))}),Mu(_)}function VN(e,i){return e.length>1?n4(e,i):tl(e[0],i)}function JG(e,i){var o=!0;return _c(e,function(u){_c(i,function(d){if(o===!1)return!1;o=eZ(u.geometry,d.geometry)})}),o}function eZ(e,i){switch(e.type){case"Point":switch(i.type){case"Point":return!rZ(e.coordinates,i.coordinates);case"LineString":return!QN(i,e);case"Polygon":return!Rm(e,i)}break;case"LineString":switch(i.type){case"Point":return!QN(e,i);case"LineString":return!tZ(e,i);case"Polygon":return!HN(i,e)}break;case"Polygon":switch(i.type){case"Point":return!Rm(i,e);case"LineString":return!HN(e,i);case"Polygon":return!iZ(i,e)}}return!1}function QN(e,i){for(var o=0;o<e.coordinates.length-1;o++)if(nZ(e.coordinates[o],e.coordinates[o+1],i.coordinates))return!0;return!1}function tZ(e,i){var o=l4(e,i);return o.features.length>0}function HN(e,i){for(var o=0,u=i.coordinates;o<u.length;o++){var d=u[o];if(Rm(d,e))return!0}var _=l4(i,c4(e));return _.features.length>0}function iZ(e,i){for(var o=0,u=e.coordinates[0];o<u.length;o++){var d=u[o];if(Rm(d,i))return!0}for(var _=0,b=i.coordinates[0];_<b.length;_++){var a=b[_];if(Rm(a,e))return!0}var E=l4(c4(e),c4(i));return E.features.length>0}function nZ(e,i,o){var u=o[0]-e[0],d=o[1]-e[1],_=i[0]-e[0],b=i[1]-e[1],a=u*b-d*_;return a!==0?!1:Math.abs(_)>=Math.abs(b)?_>0?e[0]<=o[0]&&o[0]<=i[0]:i[0]<=o[0]&&o[0]<=e[0]:b>0?e[1]<=o[1]&&o[1]<=i[1]:i[1]<=o[1]&&o[1]<=e[1]}function rZ(e,i){return e[0]===i[0]&&e[1]===i[1]}function oZ(e,i){var o=!1;return _c(e,function(u){_c(i,function(d){if(o===!0)return!0;o=!JG(u.geometry,d.geometry)})}),o}const sZ=()=>{const[e,i]=be.useState(!1),[o,u]=be.useState(!1),d=Ja(),_=IN(),b=Ei(q3),a=Ei(km),E=Ei(K3),j=Ei(ov),V=Ei(ca),ie=Ei(rv),G=Ei(bN),le=Ei(jm),fe=Ei(uG),ve=Ei(X3),[Ze,me]=be.useState(!1),[te,ee]=sn(bu),re=sn(sv),[Me]=sn(DN),[we,We]=be.useState({id:null,originalRule:null});be.useEffect(()=>{_&&ot()},[_]),be.useEffect(()=>{ot()},[V,te,j,E,ie,b,G,a,Me]);function ot(){const jt=le.find(St=>St.name.toLowerCase()===te.toLowerCase());if(!E&&we.id&&V&&Ze&&(window.mapsindoors.services.LocationsService.getLocation(we.id).then(St=>{St&&(V.setDisplayRule(St.id,we.originalRule||null),me(!1))}),We({id:null,originalRule:null})),V&&jt){if(i(!0),E&&d)We(St=>({...St,id:E})),kr(Me)?window.mapsindoors.services.LocationsService.getLocation(E).then(St=>{if(St){const Jt=St.properties.floor;V.setFloor(Jt);const Tt=V.getDisplayRule(St);We(bt=>({...bt,originalRule:{...Tt}})),$e(St),Om().then(bt=>{u(St.geometry),ua(St.geometry,V,bt,0,G?ut(G):void 0,fe,b)})}}):Om().then(St=>{u(xt().geometry),ua(xt().geometry,V,St,0,ut(G),fe,b)});else if(j&&!ve)kr(Me)?window.mapsindoors.services.LocationsService.getLocation(j).then(St=>{if(St){const Jt=St.properties.floor;V.setFloor(Jt),d?kh().then(Tt=>{u(St.geometry),ua(St.geometry,V,0,Tt,G?ut(G):void 0,fe,b)}):Sf().then(Tt=>{u(St.geometry),ua(St.geometry,V,Tt,0,G?ut(G):void 0,fe,b)})}}):d?kh().then(St=>{u(xt().geometry),ua(xt().geometry,V,0,St,ut(G),fe,b)}):Sf().then(St=>{u(xt().geometry),ua(xt().geometry,V,St,0,ut(G),fe,b)});else if(jt)if(ve)d?(u(jt.geometry),ua(jt.geometry,V,0,0,ut(G),fe,b)):Sf().then(St=>{u(jt.geometry),ua(jt.geometry,V,St,0,ut(G),fe,b)});else{const St=le.find(Jt=>oZ(Jt.geometry,xt().geometry));kr(Me)?(u(jt.geometry),ua(jt.geometry,V,0,0,ut(G),fe,b)):kr(St)?d?kh().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,0,Jt,ut(G),fe,b)}):Sf().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,Jt,0,ut(G),fe,b)}):(d?kh().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,0,Jt,ut(G),fe,b)}):Sf().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,Jt,0,ut(G),fe,b)}),re&&ee(St.name))}}}function $e(jt){if(Ze)return;const St=V.getDisplayRule(jt);St.visible=!0,St.iconSize={width:St.iconSize.width*2,height:St.iconSize.height*2},St.iconVisible=!0,St.zoomFrom=0,St.zoomTo=999,St.clickable=!1,V.setDisplayRule(jt.id,St),me(!0)}function xt(){const[jt,St]=Me?Me.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[jt,St]}}}function ut(jt){return kr(jt)?18:jt}return[e,o]};function ua(e,i,o,u,d,_,b){const a=Number(_),E=Number(b),j=d!==void 0?Number(d):void 0;if(j===void 0)i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:j??22,padding:{top:0,right:0,bottom:o,left:u}});else{const V=FG(e);i.getMapView().setCenter({lat:V.geometry.coordinates[1],lng:V.geometry.coordinates[0]}),i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.setZoom(j)}}const $N=kn({key:"hideNonMatches",default:!1}),aZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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}})),Bm=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Fae="";YN.propTypes={isViewSelectorDisabled:dt.bool,isViewSelectorVisible:dt.bool};function YN({isViewSelectorDisabled:e,isViewSelectorVisible:i}){const{t:o}=cs(),[u,d]=be.useState(!1),[_,b]=be.useState([]),[a,E]=be.useState(null),j=Ja(),V=Ei(ca),ie=Ei(bu),G=".view-selector-portal",[le,fe]=be.useState(null),ve=be.useRef(null),Ze=be.useRef(null),me=6,te=60;be.useEffect(()=>{let ot=document.querySelector(G);if(ot){fe(ot);return}const $e=new MutationObserver(()=>{ot=document.querySelector(G),ot&&(fe(ot),$e.disconnect())}),xt=document.body,ut={childList:!0,subtree:!0};return $e.observe(xt,ut),()=>{$e==null||$e.disconnect()}},[]),be.useEffect(()=>{const ot=()=>{const xt=document.querySelector(G);xt&&fe(xt)},$e=new ResizeObserver(()=>{ot()});return $e.observe(document.body),()=>{$e==null||$e.disconnect()}},[j]),be.useEffect(()=>{var ot;if(V&&ie){const $e=(ot=V.getVenue())==null?void 0:ot.id;$e&&E($e)}},[V,ie]),be.useEffect(()=>{V&&ie&&window.mapsindoors.services.VenuesService.getVenues().then(ot=>{const $e=ot.find(xt=>xt.name.toLowerCase()===ie.toLowerCase());$e!=null&&$e.id&&E($e.id)})},[V,ie]),be.useEffect(()=>{a&&window.mapsindoors.services.VenuesService.getBuildings(a).then(ot=>{b(ot)})},[a]);const ee=be.useMemo(()=>_.map(ot=>({id:ot.id,name:ot.buildingInfo.name})),[_]),re=be.useCallback(ot=>{V.fitBuilding(ot),d(!1)},[V]);if(be.useEffect(()=>{if(!(u&&j))return;function ot($e){ve.current&&!ve.current.contains($e.target)&&Ze.current&&!Ze.current.contains($e.target)&&d(!1)}return document.addEventListener("mousedown",ot),()=>{document.removeEventListener("mousedown",ot)}},[u,j]),ee.length<=1||i===!1)return null;const Me=()=>Pe.jsx("button",{ref:Ze,className:"view-selector__toggle-button",onClick:()=>d(!u),disabled:e,children:Pe.jsx(aZ,{})}),we=()=>{const ot=be.useMemo(()=>j&&ee.length>me?{height:`${me*te}px`}:{},[j,ee.length]);return Pe.jsx("div",{className:"building-list",style:ot,children:ee.map($e=>Pe.jsx("button",{className:"building-list__item",onClick:()=>re($e.id),children:Pe.jsx("span",{children:$e.name})},$e.id))})},We=Pe.jsxs("div",{className:"view-selector",children:[!j&&u&&Pe.jsxs("div",{className:"mobile-overlay",children:[Pe.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>d(!1)}),Pe.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Pe.jsxs("div",{className:"mobile-overlay__header",children:[Pe.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>d(!1),"aria-label":o("Close view selector"),children:Pe.jsx(Bm,{})}),Pe.jsx("span",{children:o("Go to view")})]}),Pe.jsx(we,{})]})]}),j?Pe.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[u&&Pe.jsx("div",{ref:ve,className:"view-selector__container view-selector__container--desktop",children:Pe.jsx(we,{})}),Pe.jsx(Me,{})]}):Pe.jsx(Me,{})]});return le?yu.createPortal(We,le):null}const lZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}})),Uae="";function GN({toggleButtonRef:e,isExpanded:i,setIsExpanded:o}){return Pe.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>o(u=>!u),"aria-haspopup":"listbox","aria-expanded":i,"aria-label":"Select language",children:Pe.jsx(lZ,{})})}function ZN({supportedLanguages:e,currentLanguage:i,setLanguage:o,setIsExpanded:u}){return Pe.jsx("div",{className:"language-selector__list",children:e.map(d=>Pe.jsx("button",{className:`language-selector__item${i===d.code?" language-selector__item--selected":""}`,onClick:()=>{o(d.code),u(!1)},children:d.label},d.code))})}function WN({currentLanguage:e,setLanguage:i,isVisible:o}){const{t:u}=cs(),[d,_]=be.useState(!1),b=be.useRef(null),a=be.useRef(null),[E,j]=be.useState(null),V=Ja(),ie=".language-selector-portal";return be.useEffect(()=>{let G=document.querySelector(ie);if(G){j(G);return}const le=new MutationObserver(()=>{G=document.querySelector(ie),G&&(j(G),le.disconnect())});return le.observe(document.body,{childList:!0,subtree:!0}),()=>le.disconnect()},[]),be.useEffect(()=>{if(!(d&&V))return;function G(le){b.current&&!b.current.contains(le.target)&&a.current&&!a.current.contains(le.target)&&_(!1)}return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[d,V]),!o||!E?null:yu.createPortal(V?Pe.jsxs("div",{className:"language-selector__button-container",children:[d&&Pe.jsx("div",{ref:b,className:"language-selector__container",children:Pe.jsx(ZN,{supportedLanguages:fN,currentLanguage:e,setLanguage:i,setIsExpanded:_})}),Pe.jsx(GN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(GN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_}),d&&Pe.jsxs("div",{className:"language-selector-overlay",children:[Pe.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>_(!1)}),Pe.jsxs("div",{className:"language-selector__container",children:[Pe.jsxs("div",{className:"language-selector-overlay__header",children:[Pe.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>_(!1),"aria-label":"Close language selector",children:"×"}),Pe.jsx("span",{children:u("Select language")})]}),Pe.jsx(ZN,{supportedLanguages:fN,currentLanguage:e,setLanguage:i,setIsExpanded:_})]})]})]}),E)}WN.propTypes={currentLanguage:dt.string,setLanguage:dt.func.isRequired,isVisible:dt.bool};const Ef=kn({key:"appConfig",default:void 0}),cZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),Vae="",Dl=kn({key:"kioskLocation",default:null}),jh=()=>{const e=Ei(Dl),i=Ja();return!(!e||e&&!i)};function qN(){const[e,i]=be.useState(null),o=".reset-view-portal",u=jh(),d=Ei(K3),_=Ei(ca),b=Ei(bu),a=Ei(Dl),E=Ja();function j(){window.mapsindoors.services.LocationsService.getLocation(d).then(le=>{V([le])}).catch(le=>{console.error("Error resetting map position:",le)})}function V(le){if(!_.goTo)return;const fe=_.getFloor(),ve={type:"FeatureCollection",features:le.filter(Ze=>parseInt(Ze.properties.floor,10)===parseInt(fe,10)).filter(Ze=>b&&Ze.properties.venueId.toLowerCase()===b.toLowerCase()).map(Ze=>({type:"Feature",geometry:Ze.geometry,properties:Ze.properties}))};ve.features.length>0&&Promise.all([ie(),G()]).then(([Ze,me])=>{_.goTo(ve,{maxZoom:22,padding:{bottom:Ze,left:me,top:0,right:0}})})}function ie(){return new Promise(le=>{E?a?Om().then(fe=>le(fe)):le(0):le(200)})}function G(){return new Promise(le=>{E?a?le(0):kh().then(fe=>le(fe)):le(0)})}return be.useEffect(()=>{let le=document.querySelector(o);if(le){i(le);return}const fe=new MutationObserver(()=>{le=document.querySelector(o),le&&(i(le),fe.disconnect())});return fe.observe(document.body,{childList:!0,subtree:!0}),()=>fe.disconnect()},[]),!u||!e?null:yu.createPortal(Pe.jsx("button",{className:"reset-kiosk-view-button",onClick:j,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Pe.jsx(cZ,{})}),e)}qN.propTypes={onReset:dt.func,isVisible:dt.bool},KN.propTypes={onLocationClick:dt.func,onMapPositionKnown:dt.func.isRequired,useMapProviderModule:dt.bool.isRequired,onMapPositionInvestigating:dt.func.isRequired,onViewModeSwitchKnown:dt.func.isRequired,resetCount:dt.number.isRequired,mapOptions:dt.object,gmMapId:dt.string,isWayfindingOrDirections:dt.bool,currentLanguage:dt.string,setLanguage:dt.func,devicePosition:dt.object};let u4;function KN({onLocationClick:e,onMapPositionKnown:i,useMapProviderModule:o,onMapPositionInvestigating:u,onViewModeSwitchKnown:d,resetCount:_,mapOptions:b,gmMapId:a,isWayfindingOrDirections:E,currentLanguage:j,setLanguage:V,devicePosition:ie}){const G=Ei(Z3),le=Ei(W3),fe=Ei(tv),[ve,Ze]=sn(ev),[me,te]=sn(ca),[,ee]=sn(J_),[,re]=sn(G3),Me=Ei(iv),we=Ei(nv),We=Ei(vN),ot=Ei(q3),$e=Ei(rv),[,xt]=sn(xN),ut=Ei(wN),[,jt]=sn(zm),St=Ei($N),Jt=Ei(Ef),[Tt,bt]=be.useState(!1),[qt,Ot]=be.useState(!1);lG(G);const[Vt,W]=sZ();be.useEffect(()=>{if(!ut||le===null&&fe===null)return;let F;const Q=ut.modules.map(Z=>Z.toLowerCase()).includes("mapbox");o?Q?fe&&(F=us.Mapbox):le&&(F=us.Google):fe?F=us.Mapbox:F=us.Google,F?Ze(F):(jt({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),Ze(void 0))},[le,fe,ut]),be.useEffect(()=>{Vt&&u()},[Vt]),be.useEffect(()=>{W&&i()},[W]),be.useEffect(()=>{if(!me)return;const F=Me||we;if(!F)return;const Q=F.map(Z=>Z.id);St||!me.highlight?me.filter(Q):me.highlight(Q)},[Me,we,me,St]),be.useEffect(()=>{me&&(isNaN(parseInt($e))||me.getMapView().tilt(parseInt($e)),isNaN(parseInt(ot))||me.getMapView().rotate(parseInt(ot)))},[ot,$e,me]);const ne=F=>{T(F)},T=F=>{if(F&&u4){let Q=F.getTileURL();if(Q){Q=F.getTileURL().replace("default",u4);const Z=Q==null?void 0:Q.replace("{floor}",F.getFloor());F.getMapView().setMapsIndoorsTileURL(Z)}}},k=(F,Q,Z)=>{F.on("mouseenter",()=>{var He;const xe=F.getHoveredLocation();((He=xe==null?void 0:xe.properties.locationSettings)==null?void 0:He.selectable)===!1&&F.unhoverLocation()}),F.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),F.on("click",xe=>e(xe)),F.once("building_changed",()=>ne(F)),F.on("floor_changed",()=>T(F)),te(F),window.mapsIndoorsInstance=F;const se=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(se);let he;ve===us.Google?he=new window.mapsindoors.directions.GoogleMapsProvider:ve===us.Mapbox&&(he=new window.mapsindoors.directions.MapboxProvider(fe));const ce=new window.mapsindoors.services.DirectionsService(he);re(ce),te(F),Q.nodeName==="MI-MY-POSITION"?Q.addEventListener("position_received",xe=>{xe.detail.accurate===!0&&ee(xe.detail.position)}):Q.on("position_received",xe=>{xe.accurate===!0&&ee(xe.position)}),xt(Q),d(Z)};return be.useEffect(()=>{u4=We||"default",T(me)},[We]),be.useEffect(()=>{var F,Q,Z,se;Jt&&(kr((F=Jt==null?void 0:Jt.appSettings)==null?void 0:F.viewSelector)?bt(!1):bt(((Q=Jt==null?void 0:Jt.appSettings)==null?void 0:Q.viewSelector.trim().toLowerCase())==="true"),kr((Z=Jt==null?void 0:Jt.appSettings)==null?void 0:Z.languageSelector)?Ot(!1):Ot(((se=Jt==null?void 0:Jt.appSettings)==null?void 0:se.languageSelector.trim().toLowerCase())==="true"))},[Jt]),Pe.jsxs(Pe.Fragment,{children:[G&&Pe.jsx(_N,{apiKey:G,mapboxAccessToken:ve===us.Mapbox?fe:void 0,gmApiKey:ve===us.Google?le:void 0,onInitialized:k,resetUICounter:_,mapOptions:b,gmMapId:a,devicePosition:ie}),G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(YN,{isViewSelectorVisible:Tt,isViewSelectorDisabled:E}),Pe.jsx(WN,{currentLanguage:j,setLanguage:V,isVisible:qt}),Pe.jsx(qN,{})]})]})}const Sl=kn({key:"primaryColor",default:"#005655"}),Qae="",h4=kn({key:"logo",default:void 0});function uZ(){const e=Ei(Sl),i=Ei(h4);return Pe.jsx("div",{className:"splash-screen",children:Pe.jsxs("div",{className:"splash-screen__container",children:[Pe.jsx("img",{className:"splash-screen__logo "+(i?"splash-screen__logo--visible":""),src:i,alt:""}),Pe.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function XN(e,i){if(e==null)return{};var o={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(i.indexOf(u)!==-1)continue;o[u]=e[u]}return o}function d4(e,i){return d4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,u){return o.__proto__=u,o},d4(e,i)}function JN(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,d4(e,i)}function hZ(e,i){return e.classList?!!i&&e.classList.contains(i):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+i+" ")!==-1}function dZ(e,i){e.classList?e.classList.add(i):hZ(e,i)||(typeof e.className=="string"?e.className=e.className+" "+i:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+i))}function eL(e,i){return e.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function fZ(e,i){e.classList?e.classList.remove(i):typeof e.className=="string"?e.className=eL(e.className,i):e.setAttribute("class",eL(e.className&&e.className.baseVal||"",i))}const tL={disabled:!1},iL=Cr.createContext(null);var nL=function(i){return i.scrollTop},Fm="unmounted",Ph="exited",Rh="entering",Nf="entered",f4="exiting",vc=function(e){JN(i,e);function i(u,d){var _;_=e.call(this,u,d)||this;var b=d,a=b&&!b.isMounting?u.enter:u.appear,E;return _.appearStatus=null,u.in?a?(E=Ph,_.appearStatus=Rh):E=Nf:u.unmountOnExit||u.mountOnEnter?E=Fm:E=Ph,_.state={status:E},_.nextCallback=null,_}i.getDerivedStateFromProps=function(d,_){var b=d.in;return b&&_.status===Fm?{status:Ph}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(d){var _=null;if(d!==this.props){var b=this.state.status;this.props.in?b!==Rh&&b!==Nf&&(_=Rh):(b===Rh||b===Nf)&&(_=f4)}this.updateStatus(!1,_)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var d=this.props.timeout,_,b,a;return _=b=a=d,d!=null&&typeof d!="number"&&(_=d.exit,b=d.enter,a=d.appear!==void 0?d.appear:b),{exit:_,enter:b,appear:a}},o.updateStatus=function(d,_){if(d===void 0&&(d=!1),_!==null)if(this.cancelNextCallback(),_===Rh){if(this.props.unmountOnExit||this.props.mountOnEnter){var b=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this);b&&nL(b)}this.performEnter(d)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ph&&this.setState({status:Fm})},o.performEnter=function(d){var _=this,b=this.props.enter,a=this.context?this.context.isMounting:d,E=this.props.nodeRef?[a]:[fm.findDOMNode(this),a],j=E[0],V=E[1],ie=this.getTimeouts(),G=a?ie.appear:ie.enter;if(!d&&!b||tL.disabled){this.safeSetState({status:Nf},function(){_.props.onEntered(j)});return}this.props.onEnter(j,V),this.safeSetState({status:Rh},function(){_.props.onEntering(j,V),_.onTransitionEnd(G,function(){_.safeSetState({status:Nf},function(){_.props.onEntered(j,V)})})})},o.performExit=function(){var d=this,_=this.props.exit,b=this.getTimeouts(),a=this.props.nodeRef?void 0:fm.findDOMNode(this);if(!_||tL.disabled){this.safeSetState({status:Ph},function(){d.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:f4},function(){d.props.onExiting(a),d.onTransitionEnd(b.exit,function(){d.safeSetState({status:Ph},function(){d.props.onExited(a)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(d,_){_=this.setNextCallback(_),this.setState(d,_)},o.setNextCallback=function(d){var _=this,b=!0;return this.nextCallback=function(a){b&&(b=!1,_.nextCallback=null,d(a))},this.nextCallback.cancel=function(){b=!1},this.nextCallback},o.onTransitionEnd=function(d,_){this.setNextCallback(_);var b=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this),a=d==null&&!this.props.addEndListener;if(!b||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var E=this.props.nodeRef?[this.nextCallback]:[b,this.nextCallback],j=E[0],V=E[1];this.props.addEndListener(j,V)}d!=null&&setTimeout(this.nextCallback,d)},o.render=function(){var d=this.state.status;if(d===Fm)return null;var _=this.props,b=_.children;_.in,_.mountOnEnter,_.unmountOnExit,_.appear,_.enter,_.exit,_.timeout,_.addEndListener,_.onEnter,_.onEntering,_.onEntered,_.onExit,_.onExiting,_.onExited,_.nodeRef;var a=XN(_,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(iL.Provider,{value:null},typeof b=="function"?b(d,a):Cr.cloneElement(Cr.Children.only(b),a))},i}(Cr.Component);vc.contextType=iL,vc.propTypes={};function Lf(){}vc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lf,onEntering:Lf,onEntered:Lf,onExit:Lf,onExiting:Lf,onExited:Lf},vc.UNMOUNTED=Fm,vc.EXITED=Ph,vc.ENTERING=Rh,vc.ENTERED=Nf,vc.EXITING=f4;const pZ=vc;var gZ=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return dZ(i,u)})},p4=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return fZ(i,u)})},g4=function(e){JN(i,e);function i(){for(var u,d=arguments.length,_=new Array(d),b=0;b<d;b++)_[b]=arguments[b];return u=e.call.apply(e,[this].concat(_))||this,u.appliedClasses={appear:{},enter:{},exit:{}},u.onEnter=function(a,E){var j=u.resolveArguments(a,E),V=j[0],ie=j[1];u.removeClasses(V,"exit"),u.addClass(V,ie?"appear":"enter","base"),u.props.onEnter&&u.props.onEnter(a,E)},u.onEntering=function(a,E){var j=u.resolveArguments(a,E),V=j[0],ie=j[1],G=ie?"appear":"enter";u.addClass(V,G,"active"),u.props.onEntering&&u.props.onEntering(a,E)},u.onEntered=function(a,E){var j=u.resolveArguments(a,E),V=j[0],ie=j[1],G=ie?"appear":"enter";u.removeClasses(V,G),u.addClass(V,G,"done"),u.props.onEntered&&u.props.onEntered(a,E)},u.onExit=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"appear"),u.removeClasses(j,"enter"),u.addClass(j,"exit","base"),u.props.onExit&&u.props.onExit(a)},u.onExiting=function(a){var E=u.resolveArguments(a),j=E[0];u.addClass(j,"exit","active"),u.props.onExiting&&u.props.onExiting(a)},u.onExited=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"exit"),u.addClass(j,"exit","done"),u.props.onExited&&u.props.onExited(a)},u.resolveArguments=function(a,E){return u.props.nodeRef?[u.props.nodeRef.current,a]:[a,E]},u.getClassNames=function(a){var E=u.props.classNames,j=typeof E=="string",V=j&&E?E+"-":"",ie=j?""+V+a:E[a],G=j?ie+"-active":E[a+"Active"],le=j?ie+"-done":E[a+"Done"];return{baseClassName:ie,activeClassName:G,doneClassName:le}},u}var o=i.prototype;return o.addClass=function(d,_,b){var a=this.getClassNames(_)[b+"ClassName"],E=this.getClassNames("enter"),j=E.doneClassName;_==="appear"&&b==="done"&&j&&(a+=" "+j),b==="active"&&d&&nL(d),a&&(this.appliedClasses[_][b]=a,gZ(d,a))},o.removeClasses=function(d,_){var b=this.appliedClasses[_],a=b.base,E=b.active,j=b.done;this.appliedClasses[_]={},a&&p4(d,a),E&&p4(d,E),j&&p4(d,j)},o.render=function(){var d=this.props;d.classNames;var _=XN(d,["classNames"]);return Cr.createElement(pZ,Q3({},_,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(Cr.Component);g4.defaultProps={classNames:""},g4.propTypes={};const mZ=g4,Hae="",yZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),$ae="";rL.propTypes={venue:dt.object.isRequired,isCurrent:dt.bool,onVenueClicked:dt.func.isRequired};function rL({venue:e,isCurrent:i,onVenueClicked:o}){const{t:u}=cs(),[d,_]=be.useState({});return be.useEffect(()=>()=>{_({})},[]),be.useEffect(()=>{const b={};e.image&&(b.backgroundImage=`url('${e.image}')`),_(b)},[e]),Pe.jsxs("button",{className:"venue",onClick:()=>o(),children:[Pe.jsx("div",{className:"venue__image",style:d}),Pe.jsxs("div",{className:"venue__content",children:[Pe.jsx("div",{children:e.venueInfo.name}),i&&Pe.jsx("div",{className:"venue__current",children:u("Current")})]})]})}const hv=kn({key:"isLocationClicked",default:!1});oL.propTypes={onOpen:dt.func,onClose:dt.func,active:dt.bool};function oL({onOpen:e,onClose:i,active:o}){const{t:u}=cs(),d=be.useRef(null),_=Ei(jm),[,b]=sn(X3),[a,E]=sn(bu),[,j]=sn(hv),V=document.querySelector(".venue-selector-portal"),ie=fe=>{b(!0),E(fe.name),G()},G=()=>{o?i():e()};function le(fe){ie(fe),j(!1)}return Pe.jsxs(Pe.Fragment,{children:[!o&&V&&yu.createPortal(Pe.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":u("Venues"),children:Pe.jsx(yZ,{})}),V),Pe.jsx(mZ,{in:o,nodeRef:d,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Pe.jsxs("div",{className:"venue-selector__content",ref:d,children:[Pe.jsxs("div",{className:"venue-selector__header",children:[Pe.jsx("h1",{children:u("Select venue")}),Pe.jsx("button",{className:"venue-selector__button",onClick:()=>i(),"aria-label":u("Close"),children:Pe.jsx(Bm,{})})]}),Pe.jsx("div",{className:"venue-selector__list",children:_.map(fe=>Pe.jsx(rL,{isCurrent:(a==null?void 0:a.toLowerCase())===fe.name.toLowerCase(),venue:fe,onVenueClicked:()=>le(fe)},fe.id))})]})})]})}const sL=be.createContext(),xc=kn({key:"currentLocation",default:null}),_Z="Left",vZ="Right",xZ="Up",wZ="Down",zf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},m4={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},aL="mousemove",lL="mouseup",bZ="touchend",MZ="touchmove",IZ="touchstart";function TZ(e,i,o,u){return e>i?o>0?vZ:_Z:u>0?wZ:xZ}function cL(e,i){if(i===0)return e;const o=Math.PI/180*i,u=e[0]*Math.cos(o)+e[1]*Math.sin(o),d=e[1]*Math.cos(o)-e[0]*Math.sin(o);return[u,d]}function DZ(e,i){const o=V=>{const ie="touches"in V;ie&&V.touches.length>1||e((G,le)=>{le.trackMouse&&!ie&&(document.addEventListener(aL,u),document.addEventListener(lL,b));const{clientX:fe,clientY:ve}=ie?V.touches[0]:V,Ze=cL([fe,ve],le.rotationAngle);return le.onTouchStartOrOnMouseDown&&le.onTouchStartOrOnMouseDown({event:V}),Object.assign(Object.assign(Object.assign({},G),m4),{initial:Ze.slice(),xy:Ze,start:V.timeStamp||0})})},u=V=>{e((ie,G)=>{const le="touches"in V;if(le&&V.touches.length>1)return ie;if(V.timeStamp-ie.start>G.swipeDuration)return ie.swiping?Object.assign(Object.assign({},ie),{swiping:!1}):ie;const{clientX:fe,clientY:ve}=le?V.touches[0]:V,[Ze,me]=cL([fe,ve],G.rotationAngle),te=Ze-ie.xy[0],ee=me-ie.xy[1],re=Math.abs(te),Me=Math.abs(ee),we=(V.timeStamp||0)-ie.start,We=Math.sqrt(re*re+Me*Me)/(we||1),ot=[te/(we||1),ee/(we||1)],$e=TZ(re,Me,te,ee),xt=typeof G.delta=="number"?G.delta:G.delta[$e.toLowerCase()]||zf.delta;if(re<xt&&Me<xt&&!ie.swiping)return ie;const ut={absX:re,absY:Me,deltaX:te,deltaY:ee,dir:$e,event:V,first:ie.first,initial:ie.initial,velocity:We,vxvy:ot};ut.first&&G.onSwipeStart&&G.onSwipeStart(ut),G.onSwiping&&G.onSwiping(ut);let jt=!1;return(G.onSwiping||G.onSwiped||G[`onSwiped${$e}`])&&(jt=!0),jt&&G.preventScrollOnSwipe&&G.trackTouch&&V.cancelable&&V.preventDefault(),Object.assign(Object.assign({},ie),{first:!1,eventData:ut,swiping:!0})})},d=V=>{e((ie,G)=>{let le;if(ie.swiping&&ie.eventData){if(V.timeStamp-ie.start<G.swipeDuration){le=Object.assign(Object.assign({},ie.eventData),{event:V}),G.onSwiped&&G.onSwiped(le);const fe=G[`onSwiped${le.dir}`];fe&&fe(le)}}else G.onTap&&G.onTap({event:V});return G.onTouchEndOrOnMouseUp&&G.onTouchEndOrOnMouseUp({event:V}),Object.assign(Object.assign(Object.assign({},ie),m4),{eventData:le})})},_=()=>{document.removeEventListener(aL,u),document.removeEventListener(lL,b)},b=V=>{_(),d(V)},a=(V,ie)=>{let G=()=>{};if(V&&V.addEventListener){const le=Object.assign(Object.assign({},zf.touchEventOptions),ie.touchEventOptions),fe=[[IZ,o,le],[MZ,u,Object.assign(Object.assign({},le),ie.preventScrollOnSwipe?{passive:!1}:{})],[bZ,d,le]];fe.forEach(([ve,Ze,me])=>V.addEventListener(ve,Ze,me)),G=()=>fe.forEach(([ve,Ze])=>V.removeEventListener(ve,Ze))}return G},j={ref:V=>{V!==null&&e((ie,G)=>{if(ie.el===V)return ie;const le={};return ie.el&&ie.el!==V&&ie.cleanUpTouch&&(ie.cleanUpTouch(),le.cleanUpTouch=void 0),G.trackTouch&&V&&(le.cleanUpTouch=a(V,G)),Object.assign(Object.assign(Object.assign({},ie),{el:V}),le)})}};return i.trackMouse&&(j.onMouseDown=o),[j,a]}function SZ(e,i,o,u){return!i.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?i.preventScrollOnSwipe!==o.preventScrollOnSwipe||i.touchEventOptions.passive!==o.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})}function uL(e){const{trackMouse:i}=e,o=be.useRef(Object.assign({},m4)),u=be.useRef(Object.assign({},zf)),d=be.useRef(Object.assign({},u.current));d.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},zf),e);let _;for(_ in zf)u.current[_]===void 0&&(u.current[_]=zf[_]);const[b,a]=be.useMemo(()=>DZ(E=>o.current=E(o.current,u.current),{trackMouse:i}),[i]);return o.current=SZ(o.current,u.current,d.current,a),b}const qn={MIN:"MIN",FIT:"FIT",MAX:"MAX"},Yae="",Of=be.forwardRef(function({children:i,isOpen:o,initialSnapPoint:u,minimizedHeight:d},_){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),V=be.useRef(),[ie,G]=be.useState({}),[le,fe]=be.useState(!1),[ve,Ze]=be.useState(null),me=be.useContext(sL),te=be.useRef();be.useImperativeHandle(_,()=>({setSnapPoint($e){ee($e)}}));function ee($e){requestAnimationFrame(()=>{switch($e){case qn.MAX:G({height:`${me.current.clientHeight}px`}),E.current=me.current.clientHeight;break;case qn.FIT:{const xt=a.current.children.item(0).clientHeight;xt<d?(G({height:`${d}px`}),E.current=d,$e=qn.MIN):(G({height:`${xt}px`}),E.current=xt);break}case qn.MIN:G({height:`${d}px`}),E.current=d;break}}),V.current=$e}be.useEffect(()=>(o&&V.current===qn.FIT?re():Me(),()=>{Me()}),[o,V.current]);function re(){te.current&&te.current.disconnect(),te.current=new MutationObserver(()=>{ee(qn.FIT)}),te.current.observe(a.current,{childList:!0,subtree:!0})}function Me(){te.current&&te.current.disconnect()}const we=uL({onSwipeStart:()=>{fe(!0),Ze(null),j.current=b.current.clientHeight},onSwiping:$e=>{const xt=Math.max(j.current-$e.deltaY,d);G({height:`${xt}px`})},onSwiped:$e=>{fe(!1);const xt=AZ($e.dir,$e.deltaY,V.current,d,me.current.clientHeight,a.current.children.item(0));xt&&(ee(xt),Ze(xt))},trackMouse:!0,preventScrollOnSwipe:!0});be.useEffect(()=>{o&&(V.current=u,ee(u))},[d,u,o]);const We=$e=>{we.ref($e),b.current=$e},ot=Cr.Children.map(i,$e=>be.cloneElement($e,{snapPointSwipedByUser:ve}));return Pe.jsx("div",{...we,ref:We,className:`sheet ${o?"sheet--active":""} ${le?"sheet--dragging":""} ${V.current===qn.MAX?"sheet--max":""}`,style:ie,children:Pe.jsx("div",{ref:a,className:`sheet__content ${V.current===qn.MIN?"sheet__content--no-scroll":""}`,style:ie,children:ot})})});Of.propTypes={children:dt.node.isRequired,isOpen:dt.bool.isRequired,initialSnapPoint:dt.string.isRequired,minimizedHeight:dt.number.isRequired};function AZ(e,i,o,u,d,_){if(Math.abs(i)<60)return o;let a;return e.toUpperCase()==="DOWN"?o===qn.MAX?CZ(_)?a=qn.MIN:_.clientHeight<=d&&_.clientHeight>u?a=qn.FIT:a=qn.MIN:o===qn.FIT&&(a=qn.MIN):e.toUpperCase()==="UP"&&(o===qn.MIN?_.clientHeight<=u||_.clientHeight>d?a=qn.MAX:a=qn.FIT:o===qn.FIT&&(a=qn.MAX)),a}function CZ(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const i of e.children)if(i.scrollHeight>i.clientHeight)return!0;return!1}const Gae="",Zae="",EZ=(e,i)=>{const[o,u]=be.useState(void 0),[d,_]=be.useState(void 0);return be.useEffect(()=>{const b=(a=!1)=>{var j,V;const E=((j=i.current)==null?void 0:j.scrollHeight)>((V=i.current)==null?void 0:V.clientHeight);u(E),a===!0&&_(E)};b(!0),i.current&&new ResizeObserver(b).observe(i.current)},[e,i]),[o,d]},kf=()=>uL({onSwiping:({event:e})=>e.stopPropagation()});function hL(e){const i=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:i[1],lng:i[0],floor:e.properties.floor}}const Um=kn({key:"directionsResponse",default:null}),dv=kn({key:"hasFoundRoute",default:!0}),dL=kn({key:"shuttleBusOn",default:!1}),fL=(e,i,o,u,d)=>{const[_,b]=be.useState(),[a,E]=be.useState(),[j,V]=sn(dv),[,ie]=sn(Um),[G,le]=be.useState(),fe=Ei(dL);return be.useEffect(()=>{le(!1);let ve=!0;return e!=null&&e.geometry&&(i!=null&&i.geometry)&&o.getRoute({origin:hL(e),destination:hL(i),travelMode:u,avoidStairs:d,excludeHighwayTypes:fe?[]:["busway"]}).then(Ze=>{if(ve)if(Ze&&Ze.legs){const me=Ze.legs.reduce((ee,re)=>ee+re.distance.value,0),te=Ze.legs.reduce((ee,re)=>ee+re.duration.value,0);b(me),E(te),ie({originLocation:e,destinationLocation:i,totalDistance:me,totalTime:te,directionsResult:Ze}),V(!0),le(!0)}else V(!1)},()=>{ve&&V(!1)}),()=>{ve=!1}},[e,i,o,d,u,fe]),[_,a,j,G]},Bh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Vm=kn({key:"travelMode",default:Bh.WALKING}),Qm=kn({key:"accessibilityOn",default:!1}),fv=kn({key:"showExternalIDs",default:!1});function pL(e,i){const o=Ei(ev),[u,d]=be.useState(!1),_=e.getMap();be.useEffect(()=>{i&&d(!1)},[i]);function b(E,j,V,ie){const G=le=>{if(!V)return;j.getMap().queryRenderedFeatures(le.point).length?ie(!1):ie(!0)};return E.on("click",G),()=>{E.off("click",G)}}function a(E,j,V,ie){const G=()=>{V&&ie(!1)},le=()=>{V&&ie(!0)};j.addListener("click",G);const fe=E.addListener("click",le);return()=>{j.removeListener("click",G),fe.remove()}}return be.useEffect(()=>{let E;return o===us.Mapbox&&(E=b(_,e,i,d)),o===us.Google&&(E=a(_,e,i,d)),()=>E==null?void 0:E()},[e,i]),u}const Wae="",NZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),LZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),zZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),Fh=kn({key:"language",default:void 0});gL.propTypes={openingHours:dt.object,isMondayFirstDayOfTheWeek:dt.bool,onExpand:dt.func};function gL({openingHours:e,isMondayFirstDayOfTheWeek:i=!0,onExpand:o}){const{t:u}=cs(),[d,_]=be.useState(!1),a=Ei(Fh)??navigator.language,E=be.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(a).match(/AM|PM/)!==null,[a]),j=new Date().getDay(),V=be.useMemo(()=>{const re=[];for(let Me=0;Me<7;Me++)re.push(new Date(2024,0,Me+1));if(!i){const Me=re.pop();re.unshift(Me)}return re},[i]),ie=be.useMemo(()=>i?j===0?6:j-1:j,[j,i]),{standardOpeningHours:G}=e||{},le=re=>{const[Me,we]=re.split(":");return new Date(0,0,0,Me,we).toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit",hour12:E})},fe=re=>{const Me=re.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),we=G==null?void 0:G[Me];return!(we!=null&&we.startTime)||!(we!=null&&we.endTime)||we.closedAllDay?{text:u("Closed"),isClosed:!0}:{text:`${le(we.startTime)} - ${le(we.endTime)}`,isClosed:!1}},ve=be.useCallback(re=>{if(!re||re.closedAllDay||!re.startHours)return!1;const Me=new Date,we=Me.getHours()*60+Me.getMinutes(),[We,ot]=re.startTime.split(":"),[$e,xt]=re.endTime.split(":"),ut=parseInt(We)*60+parseInt(ot),jt=parseInt($e)*60+parseInt(xt);return we>=ut&&we<=jt},[]),me=be.useCallback(()=>{const re=V[ie].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return ve(G==null?void 0:G[re])?"Open":"Closed"},[G,V,ie,ve,u])(),te=re=>re.charAt(0).toUpperCase()+re.slice(1),ee=()=>{_(re=>!re)};return be.useEffect(()=>{d&&typeof o=="function"&&o()},[d,o]),Pe.jsxs("div",{className:"opening-hours",children:[Pe.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:ee,children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx(NZ,{})}),Pe.jsx("div",{className:"contact-action-button__text",children:fe(V[ie]).text}),Pe.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${me.toLowerCase()}`,children:u(me)}),d?Pe.jsx(zZ,{}):Pe.jsx(LZ,{})]}),d&&Pe.jsx("ul",{className:"opening-hours__list",children:V.map(re=>{const Me=fe(re);return Pe.jsxs("li",{className:"opening-hours__list-item",children:[Pe.jsx("span",{className:"opening-hours__day",children:te(re.toLocaleString(a,{weekday:"long"}))}),Pe.jsx("span",{className:`opening-hours__hours ${Me.isClosed?"opening-hours__hours--closed":""}`,children:Me.text})]},re)})})]})}const OZ=be.memo(gL);function y4(e,i,o){return(i=function(u){var d=function(_,b){if(typeof _!="object"||!_)return _;var a=_[Symbol.toPrimitive];if(a!==void 0){var E=a.call(_,b||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(_)}(u,"string");return typeof d=="symbol"?d:d+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}var _4={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},mL=function(e){var i=e.children,o=e.onClickAway,u=e.focusEvent,d=u===void 0?"focusin":u,_=e.mouseEvent,b=_===void 0?"click":_,a=e.touchEvent,E=a===void 0?"touchend":a,j=be.useRef(null),V=be.useRef(null),ie=be.useRef(!1);be.useEffect(function(){return setTimeout(function(){ie.current=!0},0),function(){ie.current=!1}},[]);var G=function(Ze){return function(me){V.current=me.target;var te=i==null?void 0:i.props[Ze];te&&te(me)}};be.useEffect(function(){var Ze,me,te=(Ze=(me=j.current)===null||me===void 0?void 0:me.ownerDocument)!==null&&Ze!==void 0?Ze:document,ee=function(re){ie.current&&(j.current&&j.current.contains(re.target)||V.current===re.target||!te.contains(re.target)||o(re))};return te.addEventListener(b,ee),te.addEventListener(E,ee),te.addEventListener(d,ee),function(){te.removeEventListener(b,ee),te.removeEventListener(E,ee),te.removeEventListener(d,ee)}},[d,b,o,E]);var le=_4[b],fe=_4[E],ve=_4[d];return Cr.Children.only(be.cloneElement(i,y4(y4(y4({ref:function(Ze){j.current=Ze;var me=i.ref;typeof me=="function"?me(Ze):me&&(me.current=Ze)}},ve,G(ve)),le,G(le)),fe,G(fe))))};mL.displayName="ClickAwayListener";const pv=kn({key:"searchAllVenues",default:!1}),v4=kn({key:"searchExternalLocations",default:!0}),yL=B_({key:"baseLink",get:({get:e})=>{const i=e(W3),o=e(tv),u=e(Z3),d=e(Sl),_=e(Fh),b=e(pv),a=e(v4),E=e(h4),j=window.location.origin+window.location.pathname.replace(/\/$/,""),V=new URLSearchParams(window.location.search),ie=new URLSearchParams;return[["gmApiKey",i],["mapboxAccessToken",o],["apiKey",u],["primaryColor",d],["language",_],["searchAllVenues",b],["searchExternalLocations",a],["logo",E]].forEach(([G,le])=>{if(V.has(G)){const fe=V.get(G);ie.append(G,fe)}else le&&(le===d?ie.append(G,d.replace("#","")):ie.append(G,le))}),`${j}?${ie.toString()}`}}),qae="",kZ=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}})),_L=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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}}),be.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}}),be.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}}),be.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}}),be.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}})),jZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"}),be.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"})),gv=kn({key:"qrCodeLink",default:null}),vL=kn({key:"supportsUrlParameters",default:!1});xL.propTypes={location:dt.object.isRequired,buttonClassName:dt.string};function xL({location:e,buttonClassName:i}){const{t:o}=cs(),[u,d]=be.useState(!1),_=Ei(yL),[b,a]=be.useState(),E=Ei(vL),[j,V]=be.useState(!1),[ie,G]=be.useState(!1),le=Ei(Dl),[,fe]=sn(gv),ve=Ja();be.useEffect(()=>{_&&e&&a(_+"&locationId="+e.id)},[_,e]),be.useEffect(()=>{var ee;V(!le&&E&&ve);const te=typeof((ee=navigator.clipboard)==null?void 0:ee.writeText)=="function";G(!le&&E&&te)},[E,le,ve]);const Ze=()=>{navigator.clipboard.writeText(b),d(!1)},me=()=>{fe(b),d(!1)};return(j||ie)&&Pe.jsxs("div",{className:"share-location-link",children:[Pe.jsx("button",{className:i,onClick:()=>d(te=>!te),title:o("Share"),"aria-label":o("Share"),children:Pe.jsx(jZ,{})}),u&&Pe.jsx(mL,{onClickAway:()=>d(!1),children:Pe.jsxs("ul",{children:[ie&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>Ze(),children:[Pe.jsx(kZ,{}),o("Copy link")]})}),j&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>me(),children:[Pe.jsx(_L,{}),o("QR Code")]})})]})})]})}const Kae="",wL={email:"email",phone:"phone"};bL.propTypes={detailType:dt.string,active:dt.bool,displayText:dt.string,value:dt.string,icon:dt.string};function bL({detailType:e,active:i,displayText:o,value:u,icon:d}){if(!i||e.toLowerCase()==="openinghours")return null;const _=o!=null&&o.trim()?o:u,b=(a,E)=>{switch(a.toLowerCase()){case wL.email:return`mailto:${E}`;case wL.phone:return`tel:${E}`;default:try{return new URL(E),E}catch{return"#"}}};return Pe.jsxs("a",{className:"contact-action-button",href:b(e,u),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx("img",{alt:"",src:d,className:"contact-action-button__icon"})}),Pe.jsx("span",{className:"contact-action-button__text",children:_})]})}x4.propTypes={onBack:dt.func,onStartWayfinding:dt.func,onSetSize:dt.func,snapPointSwiped:dt.number,onStartDirections:dt.func,isOpen:dt.bool,snapPointSwipedByUser:dt.string};function x4({onBack:e,onStartWayfinding:i,onSetSize:o,onStartDirections:u,isOpen:d,snapPointSwipedByUser:_}){var Xe,Fe;const{t:b}=cs(),a=be.useRef(null),E=be.useRef(null),j=be.useRef(null),V=be.useRef(null),ie=be.useRef(null),[G,le]=be.useState(!1),[fe,ve]=be.useState(!1),[Ze,me]=be.useState(!1),te=be.useRef(!1),[ee,re]=be.useState(null),Me=Ei(ca),we=Ei(xc),We=(Xe=we==null?void 0:we.properties)==null?void 0:Xe.additionalDetails,ot=(Fe=We==null?void 0:We.find(rt=>rt.key.toLowerCase().includes("openinghours")&&rt.active===!0))==null?void 0:Fe.openingHours,[$e,xt]=EZ(we,j),ut=kf(),jt=Ei(Sl),St=Ei(Dl),Jt=Ei(G3),[Tt,bt]=be.useState(),[qt,Ot]=be.useState(),Vt=Ja(),W=Ei(Vm),ne=Ei(Qm),[,,T]=fL(qt,Tt,Jt,W,ne),k=Ei(fv),F=pL(Me,d);be.useEffect(()=>()=>{re(null),bt(),Ot()},[]);const Q=be.useCallback(()=>{le(!1),ve(!1),me(!1),Z(qn.FIT),e()});function Z(rt){typeof o=="function"&&o(rt)}function se(){G===!1?(he(),Z(qn.MAX)):(ce(),Z(qn.FIT))}function he(){requestAnimationFrame(()=>{le(!0),xe(),te.current=!0})}function ce(){le(!1),He(),te.current=!1}function xe(){const rt=requestAnimationFrame(()=>{E.current&&(ve(E.current.scrollTop>0),me(E.current.scrollTop<E.current.scrollHeight-E.current.offsetHeight-1))});return()=>cancelAnimationFrame(rt)}function He(){ve(!1),me(!1)}function et(){le(!1),ve(!1),me(!1),Z(qn.FIT),i()}function Ue(){le(!1),ve(!1),me(!1),Z(qn.FIT),u()}return be.useEffect(()=>{F&&e()},[F]),be.useEffect(()=>()=>{re(null),bt(),Ot()},[]),be.useEffect(()=>{le(!1),ve(!1),me(!1),re(null),we&&(a.current.location=we,re(Me.getDisplayRule(we)),bt(we)),St&&Ot(St)},[we,Me,St]),be.useEffect(()=>{const rt=(We==null?void 0:We.length)>0;Z(we&&d&&rt?qn.FIT:qn.MIN)},[we,d,We]),be.useEffect(()=>{if(!_){te.current=!1;return}le(_===qn.MAX),_===qn.MAX?he():ce()},[_]),be.useLayoutEffect(()=>{const rt=document.querySelector(".modal.modal--open");if(!rt||!(V!=null&&V.current)||!(E!=null&&E.current))return;const pt=()=>{const Mt=rt.offsetHeight,Et=E.current.offsetHeight;Mt>0&&Et>0&&(Et/Mt>.9?(rt.style.height="100%",xe()):rt.style.height="auto")};return ie.current?ie.current.complete?pt():(ie.current.onload=pt,ie.current.onerror=pt):pt(),()=>{rt.style.height="",ie.current&&(ie.current.onload=null,ie.current.onerror=null)}},[we,G,d,We]),Pe.jsx("div",{className:`location-details ${te.current===!0?"location-details--max-height":""} ${fe?"location-details--content-above":""} ${Ze?"location-details--content-below":""}`,children:we&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"location-details__header",children:[Pe.jsxs("div",{className:"location-info",children:[Pe.jsx("div",{className:"location-info__icon",children:ee&&Pe.jsx("img",{alt:"",src:ee.icon.src?ee.icon.src:ee.icon})}),Pe.jsxs("div",{className:"location-info__content",children:[Pe.jsx("div",{className:"location-info__name",children:we.properties.name}),Pe.jsx("mi-location-info",{level:b("Level"),ref:a,"show-external-id":k})]}),Pe.jsxs("div",{className:"location-info__actions",children:[Pe.jsx(xL,{buttonClassName:"location-info__button",location:we}),Pe.jsx("button",{className:"location-info__button",onClick:()=>Q(),children:Pe.jsx(Bm,{})})]})]}),St&&Vt?Pe.jsx("button",{disabled:!T,onClick:()=>Ue(),className:`location-details__wayfinding ${T?"":"location-details--no-route"}`,style:{background:jt},children:b(T?"Start directions":"Directions not available")}):Pe.jsx("button",{onClick:()=>et(),style:{background:jt},className:"location-details__wayfinding",children:b("Start wayfinding")})]}),Pe.jsx("div",{className:"location-details__details prevent-scroll",...ut,ref:V,children:Pe.jsxs("div",{ref:E,onScroll:rt=>xe(),className:"location-details__details-content",children:[we.properties.imageURL&&Pe.jsx("img",{ref:ie,alt:"",src:we.properties.imageURL,className:"location-details__image"}),Object.keys(we.properties.categories).length>0&&Pe.jsx("p",{className:"location-details__categories",children:Object.values(we.properties.categories).map((rt,pt,Mt)=>Pe.jsxs(Cr.Fragment,{children:[rt,pt<Mt.length-1&&Pe.jsx(Pe.Fragment,{children:"・"})]},rt))}),we.properties.description&&Pe.jsxs("section",{className:`location-details__description ${G?"location-details__description--full":""}`,children:[Pe.jsx("div",{ref:j,children:we.properties.description}),($e||xt||G)&&Pe.jsx("button",{onClick:()=>se(),children:b(G?"Close":"Read full description")})]}),We&&Pe.jsxs("div",{className:"contact-action-buttons-container",children:[We.map(rt=>Pe.jsx(bL,{detailType:rt.detailType,active:rt.active,displayText:rt.displayText,value:rt.value,icon:rt.icon},rt.key)),ot&&Pe.jsx(OZ,{openingHours:ot,onExpand:()=>xe()})]})]})})]})})}const Xae="",PZ=e=>be.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1663_3931)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1663_3931"},be.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),ML=e=>be.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),RZ=e=>be.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),Jae="";mv.propTypes={location:dt.object,locationClicked:dt.func,icon:dt.string,isHovered:dt.bool};function mv({location:e,locationClicked:i,icon:o,isHovered:u}){const{t:d}=cs(),_=be.useRef(),b=Ei(ca),a=Ei(fv);return be.useEffect(()=>{var G;const E=le=>i(le.detail),j=()=>{var le;((le=e.properties.locationSettings)==null?void 0:le.selectable)!==!1&&b.hoverLocation(e)},V=()=>{var le;(le=e.properties.locationSettings)!=null&&le.selectable||b.unhoverLocation(e)};((G=e.properties.locationSettings)==null?void 0:G.selectable)===!1&&_.current.classList.add("non-selectable");const{current:ie}=_;return ie.location=e,ie.icon=o||b.getDisplayRule(e).icon,ie.addEventListener("locationClicked",E),ie.addEventListener("mouseover",j),ie.addEventListener("mouseout",V),u?_.current.classList.add("hovered"):_.current.classList.remove("hovered"),()=>{ie.removeEventListener("locationClicked",E),ie.removeEventListener("mouseover",j),ie.removeEventListener("mouseout",V)}},[e,i,u]),Pe.jsx("mi-list-item-location",{level:d("Level"),ref:_,"show-external-id":a})}const BZ=()=>{const[e,i]=be.useState(),o=Ei(ca),u=Ei(sv);return be.useEffect(()=>{function d(){const _=o.getMapView().getCenter();i(_.lat+","+_.lng)}return o&&u?(o.getMapView().addListener("idle",d),d()):o&&o.getMapView().removeListener("idle",d),()=>{o&&o.getMapView().removeListener("idle",d)}},[o,u]),e},w4=kn({key:"searchInput",default:void 0}),yv=be.forwardRef(function(i,o){const{placeholder:u,mapsindoors:d,results:_,clicked:b,cleared:a,changed:E,category:j,google:V,mapbox:ie,disabled:G=!1}=i,le=be.useRef(),fe=Ei(J_),ve=Ei(Fh),[,Ze]=sn(w4),me=sessionStorage.getItem("mapboxPlacesSessionToken"),te={longitude:fe==null?void 0:fe.coords.longitude,latitude:fe==null?void 0:fe.coords.latitude},ee=BZ(),re=Ei(bu),Me=Ei(pv);return be.useImperativeHandle(o,()=>({triggerSearch(){le.current.triggerSearch()},getValue(){return le.current.value},setDisplayText(we){le.current.setDisplayText(we)},focusInput(){le.current.focusInput()},clear(){le.current.clear()},getInputField(){return le.current.getInputField().then(we=>Ze(we))}})),be.useEffect(()=>{const{current:we}=le;we.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{we.triggerSearch()})},[ve]),be.useEffect(()=>{const we=$e=>_($e.detail),We=()=>a(),{current:ot}=le;return d===!0&&(ot.mapsindoors="true"),ot.addEventListener("results",we),ot.addEventListener("click",b),ot.addEventListener("cleared",We),ot.addEventListener("changed",E),()=>{ot.removeEventListener("results",we),ot.removeEventListener("click",b),ot.removeEventListener("cleared",We),ot.removeEventListener("changed",E)}},[u,d,_,b,a,V,ie,E]),Pe.jsx("mi-search",{ref:le,"id-attribute":"search",placeholder:u,"session-token":me,"user-position":te.latitude!==void 0&&te.longitude!==void 0?Object.values(te).join(","):null,"mi-near":ee,"mi-categories":j,disabled:G,mapbox:ie,google:V,"mi-venue":Me?void 0:re,language:ve})});yv.propTypes={placeholder:dt.string,mapsindoors:dt.bool,results:dt.func,clicked:dt.func,cleared:dt.func,changed:dt.func,category:dt.string,preventFocus:dt.bool,google:dt.bool,mapbox:dt.bool,disabled:dt.bool};function b4(e){const i={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:i,properties:{name:aN("My position"),anchor:i},type:"Feature"}}let M4;function FZ(e){return new Promise((i,o)=>{M4||(M4=new window.google.maps.Geocoder),M4.geocode({placeId:e.properties.placeId},u=>{u.length>0?(e.geometry={type:"Point",coordinates:[u[0].geometry.location.lng(),u[0].geometry.location.lat()]},i(e)):o()})})}const UZ="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=",IL=e=>be.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),TL=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1697_57490)"},be.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"}),be.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"}),be.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"}),be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1697_57490"},be.createElement("rect",{width:20,height:20,fill:"white"})))),VZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_3407_1703)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_3407_1703"},be.createElement("rect",{width:20,height:20,fill:"white"}))));DL.propTypes={selectionChanged:dt.func,children:dt.node};function DL({selectionChanged:e,children:i}){const o=be.useRef();return be.useEffect(()=>{const u=_=>e(_.detail),{current:d}=o;return d.addEventListener("change",u),()=>d.removeEventListener("change",u)},[e]),Pe.jsx("mi-dropdown",{ref:o,children:i})}function QZ(e,i){const o=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((u,d)=>{const _=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${o}&access_token=${i}`;fetch(_).then(b=>b.status!==200?d():b.json()).then(b=>{e.geometry={type:"Point",coordinates:[b.features[0].geometry.coordinates[0],b.features[0].geometry.coordinates[1]]},u(e)}).catch(()=>{d()})})}const HZ=B_({key:"unitSystem",get:({get:e})=>e(Fh)==="en-US"?"imperial":"metric"}),ele="";I4.propTypes={onAccessibilityChanged:dt.func};function I4({onAccessibilityChanged:e}){const i=Ei(Sl),[o,u]=sn(Qm);function d(_){u(_.target.checked),e&&e()}return Pe.jsxs("div",{className:"accessibility",children:[Pe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:_=>d(_),style:{backgroundColor:o?i:""}}),Pe.jsx("div",{children:aN("Avoid stairs and escalators")})]})}const tle="";function $Z(){var _;const e=Ei(Sl),i=Ei(Ef),[o,u]=sn(dL);function d(b){u(b.target.checked)}return Pe.jsxs("div",{className:"shuttle-bus",children:[Pe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:b=>d(b),style:{backgroundColor:o?e:""}}),Pe.jsx("div",{children:((_=i==null?void 0:i.appSettings)==null?void 0:_.includeTransitSelectionDescription)||"Include bus transportation"})]})}const SL=kn({key:"wayfindingLocation",default:null}),Co={TO:"TO",FROM:"FROM"},YZ="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";T4.propTypes={onStartDirections:dt.func.isRequired,onBack:dt.func.isRequired,directionsToLocation:dt.object,directionsFromLocation:dt.object,onSetSize:dt.func,isActive:dt.bool};function T4({onStartDirections:e,onBack:i,directionsToLocation:o,directionsFromLocation:u,onSetSize:d,isActive:_}){var zi,Ii;const{t:b}=cs(),a=be.useRef(),E=be.useRef(),j=be.useRef(),V=be.useRef(),ie=Ei(G3),G=Ei(J_),le=Ei(xc),fe=Ei(ev),ve=Ei(Sl),[Ze,me]=sn(SL),[te,ee]=be.useState(),[,re]=sn(dv),[Me,we]=be.useState(!0),[We,ot]=be.useState(!1),[$e,xt]=be.useState([]),[ut,jt]=be.useState(),[St,Jt]=be.useState(),Tt=Ei(Qm),bt=kf(),[qt,Ot]=be.useState(!1),[Vt,W]=sn(Vm),[ne,T]=be.useState(!1),k=Ei(tv),F=Ei(HZ),[Q,Z,se,he]=fL(St,ut,ie,Vt,Tt),ce=Ei(v4),xe=Ei(Ef);function He(Ht){return fe===us.Google&&Ht.properties.type==="google_places"?FZ(Ht):fe===us.Mapbox&&Ht.properties.type==="mapbox_places"?QZ(Ht,k):Promise.resolve(Ht)}function et(Ht){te===Co.TO?He(Ht).then(ci=>{jt(ci),j.current.setDisplayText(ci.properties.name)},()=>re(!1)):te===Co.FROM&&He(Ht).then(ci=>{Jt(ci),V.current.setDisplayText(ci.properties.name)},()=>re(!1)),Ot(!1),ot(!1),xt([]),T(!1)}function Ue(Ht,ci){if(ee(ci),re(!0),Ht.length===0)we(!1),Ot(!1),xt([]);else{we(!0),xt(Ht);const bi=Ht.filter(Ni=>Ni.properties.type==="google_places").length>0;Ot(bi),Xe(qn.MAX)}}function Xe(Ht){typeof d=="function"&&d(Ht)}function Fe(){const Ht=b4(G);te===Co.TO?(j.current.setDisplayText(Ht.properties.name),jt(Ht)):te===Co.FROM&&(V.current.setDisplayText(Ht.properties.name),Jt(Ht)),xt([]),re(!0),we(!0),Ot(!1),ot(!1),T(!1)}function rt(Ht){(St==null?void 0:St.id)==="USER_POSITION"&&Ht===Co.TO||(ut==null?void 0:ut.id)==="USER_POSITION"&&Ht===Co.FROM?T(!1):T(!0)}function pt(Ht){rt(Ht)}function Mt(Ht){ee(Ht),ei(Ht),re(!0),Ot(!1),rt(Ht)}function Et(Ht){T(!0),ee(Ht),di(Ht),xt([]),re(!0),Ot(!1),we(!0)}function di(Ht){Ht===Co.TO?jt():Ht===Co.FROM&&Jt()}function ei(Ht){Ht===Co.TO?(xt([]),j.current.getValue()&&(ot(!0),j.current.triggerSearch())):Ht===Co.FROM&&(xt([]),V.current.getValue()&&(ot(!0),V.current.triggerSearch()))}function Di(){(ut||St)&&(St?j.current.setDisplayText(St.properties.name):j.current.clear(),ut?V.current.setDisplayText(ut.properties.name):V.current.clear(),jt(St),Jt(ut))}function si(){Jt(),V.current.setDisplayText(""),i()}function xi(){xt([]),ot(!1),Ot(!1),T(!1)}return be.useEffect(()=>()=>{xt([]),jt(),Jt()},[]),be.useEffect(()=>{if(Ze){if(te===Co.FROM)V.current.setDisplayText(Ze.properties.name),Jt(Ze);else if(te===Co.TO)j.current.setDisplayText(Ze.properties.name),jt(Ze);else return;xi(),me(null)}},[Ze]),be.useEffect(()=>{var ci;Xe(qn.FIT);let Ht=!1;if((u==null?void 0:u.id)==="USER_POSITION"&&(o==null?void 0:o.id)==="USER_POSITION"&&(o=void 0),o!=null&&o.properties&&!le&&(j.current.setDisplayText(o.properties.name),jt(o)),u!=null&&u.properties?St||(V.current.setDisplayText(u.properties.name),Jt(u),Ht=!0):ee(Co.FROM),_&&!((ci=V.current)!=null&&ci.getValue())&&G&&!St&&(o==null?void 0:o.id)!=="USER_POSITION"&&!Ht){const bi=b4(G);V.current.setDisplayText(bi.properties.name),Jt(bi),re(!0),we(!0),xt([])}},[_,o,u]),be.useEffect(()=>{fe===us.Mapbox&&(Ot(!1),xt($e.filter(Ht=>Ht.properties.type!=="google_places")))},[fe]),be.useEffect(()=>{le&&(jt(le),j.current.setDisplayText(le.properties.name))},[le]),Pe.jsxs("div",{className:"wayfinding",ref:a,children:[Pe.jsxs("div",{className:"wayfinding__directions",children:[Pe.jsx("div",{className:"wayfinding__title",children:b("Directions")}),Pe.jsx("button",{className:"wayfinding__close",onClick:()=>si(),"aria-label":"Close",children:Pe.jsx(Bm,{})}),Pe.jsxs("div",{className:"wayfinding__locations",children:[Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose departure")}),Pe.jsx(yv,{ref:V,mapsindoors:!0,google:fe===us.Google&&ce,mapbox:fe===us.Mapbox&&ce,placeholder:b("Choose departure"),results:Ht=>Ue(Ht,Co.FROM),clicked:()=>Mt(Co.FROM),cleared:()=>Et(Co.FROM),changed:()=>pt(Co.FROM)})]}),Pe.jsx("button",{onClick:()=>Di(),"aria-label":b("Switch"),className:"wayfinding__switch",children:Pe.jsx(RZ,{})}),Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose destination")}),Pe.jsx(yv,{ref:j,mapsindoors:!0,google:fe===us.Google&&ce,mapbox:fe===us.Mapbox&&ce,placeholder:b("Choose destination"),results:Ht=>Ue(Ht,Co.TO),clicked:()=>Mt(Co.TO),cleared:()=>Et(Co.TO),changed:()=>pt(Co.TO)})]})]})]}),!se&&Pe.jsx("p",{className:"wayfinding__error",children:b("No route found")}),!Me&&!ne&&Pe.jsx("p",{className:"wayfinding__error",children:b("Nothing was found")}),G&&ne&&Pe.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Fe(),children:[Pe.jsx(VZ,{}),b("My position")]}),$e.length>0&&Pe.jsx("div",{className:"wayfinding__scrollable",...bt,children:Pe.jsxs("div",{className:"wayfinding__results",children:[$e.map(Ht=>Pe.jsx(mv,{icon:Ht.properties.type==="google_places"||Ht.properties.type==="mapbox_places"?YZ:void 0,location:Ht,locationClicked:ci=>et(ci)},Ht.id)),qt&&Pe.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:UZ})]})}),!We&&!ne&&se&&!qt&&St&&ut&&Pe.jsxs("div",{className:"wayfinding__details",ref:E,children:[Pe.jsxs("div",{className:"wayfinding__settings",children:[Pe.jsxs("div",{className:"wayfinding__toggles",children:[Pe.jsx(I4,{}),((zi=xe==null?void 0:xe.appSettings)==null?void 0:zi.includeTransitSelection)==="true"&&Pe.jsx($Z,{})]}),Pe.jsx("div",{className:"wayfinding__travel",children:((Ii=xe==null?void 0:xe.appSettings)==null?void 0:Ii.includeTravelModeSelection)!=="false"&&Pe.jsxs(DL,{selectionChanged:Ht=>W(Ht[0].value),children:[Pe.jsxs("mi-dropdown-item",{selected:!0,value:Bh.WALKING,children:[Pe.jsx(ML,{}),b("Walk")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.DRIVING,children:[Pe.jsx(IL,{}),b("Drive")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.BICYCLING,children:[Pe.jsx(TL,{}),b("Bike")]})]})})]}),Pe.jsx("hr",{}),Pe.jsxs("div",{className:"wayfinding__info",children:[Pe.jsxs("div",{className:"wayfinding__distance",children:[Vt===Bh.WALKING&&Pe.jsx(ML,{}),Vt===Bh.DRIVING&&Pe.jsx(IL,{}),Vt===Bh.BICYCLING&&Pe.jsx(TL,{}),Pe.jsxs("div",{children:[b("Distance"),":"]}),Pe.jsx("div",{className:"wayfinding__meters",children:Q&&he&&Pe.jsx("mi-distance",{unit:F,meters:Q})})]}),Pe.jsxs("div",{className:"wayfinding__time",children:[Pe.jsx(PZ,{}),Pe.jsxs("div",{children:[b("Estimated time"),":"]}),Pe.jsx("div",{className:"wayfinding__minutes",children:Z&&he&&Pe.jsx("mi-time",{translations:JSON.stringify({days:b("d"),hours:b("h"),minutes:b("min")}),seconds:Z})})]})]}),Pe.jsx("button",{className:"wayfinding__button",style:{background:ve},onClick:()=>e(),disabled:!he,children:b("Go!")})]})]})}const ile="",nle="",GZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ZZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_v=kn({key:"activeStep",default:0}),vv=kn({key:"substepsToggled",default:!1}),WZ=kn({key:"triggerSubsteps",default:!1}),AL=be.forwardRef(function(i,o){var ve;const{totalSteps:u,activeStep:d,previous:_,originLocation:b,directions:a}=i,E=be.useRef(),{t:j}=cs(),[V,ie]=sn(vv),[,G]=sn(WZ),le=jh();be.useImperativeHandle(o,()=>({openSubsteps(){E.current.openSubsteps()},closeSubsteps(){E.current.closeSubsteps()}}));const fe={walk:j("Walk"),bike:j("Bike"),transit:j("Transit"),drive:j("Drive"),destination:j("You have arrived"),leave:j("Leave"),from:j("From"),park:j("Park"),at:j("at"),building:j("Building"),venue:j("Venue"),takeStaircaseToLevel:j("Take staircase to level"),takeLadderToLevel:j("Take the ladder to level"),takeElevatorToLevel:j("Take elevator to level"),takeEscalatorToLevel:j("Take escalator to level"),takeWheelchairLiftToLevel:j("Take wheelchair lift to level"),takeWheelchairRampToLevel:j("Take wheelchair ramp to level"),exit:j("Exit"),enter:j("Enter"),stops:j("stops"),andContinue:j("and continue"),continueStraightAhead:j("Continue straight ahead"),goLeft:j("Go left"),goSharpLeft:j("Go sharp left"),goSlightLeft:j("Go slight left"),goRight:j("Go right"),goSharpRight:j("Go sharp right"),goSlightRight:j("Go slight right"),turnAround:j("Turn around"),days:j("d"),hours:j("h"),minutes:j("min")};return be.useEffect(()=>{const{current:Ze}=E;function me(){G(!0),ie(!V)}return Ze.addEventListener("substepsToggled",me),()=>{Ze.removeEventListener("substepsToggled",me)}},[V]),Pe.jsx("mi-route-instructions-step",{ref:E,"show-toggle-button":!le,step:JSON.stringify(u[d]),translations:JSON.stringify(fe),"destination-location":a==null?void 0:a.destinationLocation.properties.name,"from-travel-mode":(_==null?void 0:_.travel_mode)??"","from-route-context":(_==null?void 0:_.route_context)??((ve=b==null?void 0:b.properties)==null?void 0:ve.name)??""})});AL.propTypes={totalSteps:dt.array,activeStep:dt.number,previous:dt.object,originLocation:dt.object,directions:dt.object};const CL=kn({key:"isDestinationStep",default:!1});EL.propTypes={steps:dt.array,onNextStep:dt.func,onPreviousStep:dt.func,originLocation:dt.object,isOpen:dt.bool};function EL({steps:e,onNextStep:i,onPreviousStep:o,originLocation:u,isOpen:d}){const{t:_}=cs(),b=kf(),a=be.useRef(),[E,j]=be.useState(),[V,ie]=sn(_v),[G,le]=be.useState(),fe=Ei(Um),ve=Ei(vv),[,Ze]=sn(CL),me=jh();be.useEffect(()=>{le(e)},[e]),be.useEffect(()=>{var re,Me;d&&(V===(G==null?void 0:G.length)-1&&(fe!=null&&fe.destinationLocation)?Ze(!0):Ze(!1),ve===!1?(re=a.current)==null||re.closeSubsteps():ve===!0&&((Me=a.current)==null||Me.openSubsteps()))},[d,V,G,ve]);function te(){j(G[V]),ie(V+1),i()}function ee(){j(G[V-2]),ie(V-1),o()}return Pe.jsx("div",{className:"route-instructions prevent-scroll",...b,children:G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(AL,{totalSteps:G,activeStep:V,previous:E,directions:fe,originLocation:u,ref:a}),Pe.jsx("div",{className:`route-instructions__footer ${me?"route-instructions__footer--kiosk":""}`,children:Pe.jsxs("div",{className:"route-instructions__actions",children:[Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>ee(),"aria-label":_("Previous"),disabled:V===0,children:Pe.jsx(ZZ,{})}),Pe.jsx("div",{className:"route-instructions__overview",children:_("StepYofX",{activeStep:V+1,totalSteps:G.length})}),Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>te(),"aria-label":_("Next"),disabled:V===G.length-1,children:Pe.jsx(GZ,{})})]})})]})})}const NL=Object.freeze({minZoom:10});let ws;D4.propTypes={isOpen:dt.bool,onBack:dt.func,onSetSize:dt.func,onRouteFinished:dt.func,snapPointSwipedByUser:dt.string};function D4({isOpen:e,onBack:i,onSetSize:o,onRouteFinished:u,snapPointSwipedByUser:d}){const{t:_}=cs(),b=be.useRef(),[a,E]=be.useState(null),j=be.useRef(null),[V,ie]=be.useState(),G=Ei(ca),le=Ei(Vm),fe=Ei(Um),[,ve]=sn(_v),[Ze,me]=sn(vv),te=Ei(Dl),ee=Ja(),[,re]=sn(gv),Me=Ei(CL),we=Ei(Sl),We=jh(),ot=Ei(fv),$e=Ei(yL),xt=Ei(xc),ut=Ei(ev);be.useEffect(()=>()=>{E(null)},[]),be.useEffect(()=>{if(E(null),e&&fe){ie(fe.totalTime);const k=Math.min(window.innerHeight,window.innerWidth)*.06;ws==null||ws.setRoute(null),ws=null,Promise.all([jt(k),St(k)]).then(([F,Q])=>{ws=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:G,fitBoundsPadding:{top:k,bottom:F,left:Q,right:k}}),ws.setRoute(fe.directionsResult).then(()=>{ws.setStepIndex(0)}),j.current.location=fe.destinationLocation,fe.destinationLocation.id==="USER_POSITION"?E(null):E(G.getDisplayRule(fe.destinationLocation)),Vt(null)})}},[e,fe,G,le]);function jt(k){return new Promise(F=>{if(ee)te?Om().then(Q=>F(Q)):F(k);else return Sf().then(Q=>F(Q))})}function St(k){return new Promise(F=>{ee?te?F(k):kh().then(Q=>F(Q)):F(k)})}be.useEffect(()=>{!e&&ws&&(qt(),Vt(NL.minZoom))},[e]);function Jt(){return fe?fe.directionsResult.legs.reduce((k,F)=>{for(const Q in F.steps){const Z=F.steps[Q];k.push(Z)}return k},[]):[]}function Tt(){ws&&ws.nextStep()}function bt(){ws&&ws.previousStep()}function qt(){ws==null||ws.setRoute(null),ws=null}function Ot(){ve(0),me(!1),ne(qn.FIT)}function Vt(k){ut==="mapbox"?G.getMapView().getMap().setMinZoom(k):ut==="google"&&G.getMapView().getMap().setOptions({minZoom:k})}function W(){Ot(),qt(),i()}function ne(k){typeof o=="function"&&o(k)}function T(){const k=`${$e}&directionsFrom=${te.id}&directionsTo=${xt.id}`;re(k)}return be.useEffect(()=>(b.current=requestAnimationFrame(()=>{ne(Ze?qn.MAX:qn.FIT)}),()=>{b.current&&cancelAnimationFrame(b.current)}),[Ze]),be.useEffect(()=>{e&&d&&me(d===qn.MAX)},[e,d]),Pe.jsxs("div",{className:"directions",style:{display:We?"block":"grid"},children:[Pe.jsxs("div",{className:"directions__steps",children:[Pe.jsx("div",{className:"directions__minutes",children:V&&Pe.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:V})}),Pe.jsx(EL,{steps:Jt(),originLocation:fe==null?void 0:fe.originLocation,onNextStep:()=>Tt(),isOpen:e,onPreviousStep:()=>bt()})]}),We&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("hr",{}),Pe.jsxs("div",{className:"directions__kiosk",children:[Pe.jsx(I4,{onAccessibilityChanged:()=>Ot()}),Pe.jsxs("button",{className:"directions__qr-code",onClick:()=>T(),children:[Pe.jsx(_L,{}),_("Scan QR code")]})]})]}),Pe.jsxs("div",{className:"directions__actions",children:[Pe.jsx("div",{className:"directions__details",children:(fe==null?void 0:fe.destinationLocation)&&Pe.jsxs("div",{className:"directions__info",children:[a&&fe.destinationLocation.id!=="USER_POSITION"&&Pe.jsx("div",{className:"directions__icon",children:Pe.jsx("img",{alt:"",src:a.icon.src?a.icon.src:a.icon})}),Pe.jsxs("div",{className:"directions__content",children:[Pe.jsx("div",{className:"directions__name",children:fe==null?void 0:fe.destinationLocation.properties.name}),Pe.jsx("mi-location-info",{ref:j,"show-external-id":ot})]})]})}),Me?Pe.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:we},children:_("Finish route")}):Pe.jsx("button",{className:"directions__cancel",onClick:()=>W(),children:_("Cancel route")})]})]})}const rle="",LL=kn({key:"useKeyboard",default:!1}),zL=be.forwardRef(function(i,o){const{searchInputElement:u}=i,d=be.useRef(),_=Ei(Fh);return be.useImperativeHandle(o,()=>({clearInputField(){d.current.clearInputField()}})),be.useEffect(()=>{const{current:b}=d;u&&(b.inputElement=u)},[u]),Pe.jsx("mi-keyboard",{language:_,ref:d})});zL.propTypes={searchInputElement:dt.instanceOf(HTMLInputElement)};const xv=kn({key:"searchResults",default:[]}),S4=kn({key:"selectedCategory",default:void 0}),ole="";function qZ(){return new Promise(e=>{const i=document.querySelector(".chip--active");if(i)e(i);else{const o=new MutationObserver(()=>{const u=document.querySelector(".chip--active");u&&(o.disconnect(),e(u))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const KZ=kn({key:"isBottomSheetLoaded",default:!1}),OL=kn({key:"category",default:void 0}),kL=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),XZ=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));A4.propTypes={onSetSize:dt.func,getFilteredLocations:dt.func,searchFieldRef:dt.object,isOpen:dt.bool,topLevelCategory:dt.bool,handleBack:dt.func,selectedCategoriesArray:dt.object,categoryOrientation:dt.oneOf(["horizontal","vertical"])};function A4({onSetSize:e,getFilteredLocations:i,searchFieldRef:o,isOpen:u,topLevelCategory:d,handleBack:_,selectedCategoriesArray:b,categoryOrientation:a}){const E=Ei(km),j=Ja(),[V,ie]=sn(S4),[,G]=sn(xv),[,le]=sn(iv),fe=kf(),[ve,Ze]=be.useState(),me=Ei(KZ),te=Ei(OL),ee=Ei(ca),re=pL(ee,u),[Me,we]=be.useState([]),[We,ot]=be.useState([]),{t:$e}=cs(),xt=jh(),ut=be.useRef(null),[jt,St]=be.useState(!1),[Jt,Tt]=be.useState(!1),bt=k=>{Vt&&ut.current&&ut.current.scrollBy({left:k==="left"?-200:200,behavior:"smooth"})},qt=()=>{if(ut.current){const{scrollLeft:k,scrollWidth:F,clientWidth:Q}=ut.current,Z=k<=0,se=k>=F-Q-1;St(!Z),Tt(!se)}},Ot=!d&&Me.length===0,Vt=xt&&a==="horizontal"&&!Ot;be.useEffect(()=>{if(!Vt)return;const k=ut.current;if(k)return qt(),k.addEventListener("scroll",qt),()=>{k.removeEventListener("scroll",qt)}},[Vt,Me.length]);const W=`categories prevent-scroll${xt?` categories--kiosk-${a||"vertical"}`:""}`;function ne(k){typeof e=="function"&&e(k)}function T(k){ie(k),V===k?(G([]),ie(null),le([]),o.current.getValue()&&o.current.triggerSearch()):o.current.getValue()?o.current.triggerSearch():i(k)}return be.useEffect(()=>{var k;re&&V&&(ie(null),G([]),le([]),(k=o.current)!=null&&k.getValue()&&o.current.clear())},[re]),be.useEffect(()=>{V&&(qZ().then(k=>Ze(k)),ne(qn.MAX))},[V]),be.useEffect(()=>{ve&&te!==void 0&&(j||!j&&me)&&ve.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[ve,te,me]),be.useEffect(()=>{var Q,Z,se;let k=[];if(d){const he=E.flatMap(([,ce])=>ce.childKeys||[]);k=E.filter(([ce])=>!he.includes(ce))}else if(V){const he=(Q=E.find(([xe])=>xe===V))==null?void 0:Q[1],ce=(he==null?void 0:he.childKeys)||[];k=E.filter(([xe])=>ce.includes(xe))}we(k);const F=(se=(Z=E.find(([he])=>he===V))==null?void 0:Z[1])==null?void 0:se.displayName;ot(F)},[E]),Pe.jsx("div",{className:W,...fe,children:E.length>0&&Pe.jsxs(Pe.Fragment,{children:[!d&&Pe.jsxs("div",{className:"categories__nav",children:[Pe.jsx("button",{"aria-label":$e("Back"),type:"button",className:"categories__nav-button",onClick:_,children:Pe.jsx(kL,{})}),Pe.jsx("div",{children:We})]}),Pe.jsxs("div",{className:"categories__row",children:[Vt&&Pe.jsx("div",{className:"categories__chevron categories__chevron--left",children:Pe.jsx("button",{"aria-label":$e("Previous categories"),type:"button",disabled:!jt,onClick:()=>bt("left"),children:Pe.jsx(kL,{})})}),Pe.jsx("div",{className:"categories__list",ref:xt?ut:void 0,children:Me.map(([k,F])=>!d&&b.current.length!==1?null:Pe.jsx("div",{className:"categories__category",children:Pe.jsxs("button",{onClick:()=>d?T(k):i(k),children:[Pe.jsx("img",{src:F.iconUrl,alt:""}),F.displayName]})},k))}),Vt&&Pe.jsx("div",{className:"categories__chevron categories__chevron--right",children:Pe.jsx("button",{"aria-label":$e("Next categories"),type:"button",disabled:!Jt,onClick:()=>bt("right"),children:Pe.jsx(XZ,{})})})]})]})})}const JZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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"})),wv=kn({key:"isLegendDialogVisible",default:!1}),jL=B_({key:"legendFields",get:({get:e})=>{const i=e(Dl);if(!(i!=null&&i.properties.fields))return;const o=[];for(const d of Object.keys(i.properties.fields)){const _=parseInt(d.charAt(0));if(!Number.isInteger(_))continue;const b=o.find(j=>j.index===_),a=d.toLowerCase().includes("legendheading"),E=d.toLowerCase().includes("legendcontent");if(b)a?b.heading=i.properties.fields[d].value:E&&(b.content=i.properties.fields[d].value);else{const j={index:_,heading:a?i.properties.fields[d].value:null,content:E?i.properties.fields[d].value:null};o.push(j)}}return o.sort((d,_)=>d.index-_.index)}}),C4=kn({key:"initialVenueName",default:null});E4.propTypes={categories:dt.array,onSetSize:dt.func,isOpen:dt.bool};function E4({onSetSize:e,isOpen:i}){const o=Ei(Ef),{t:u}=cs(),d=be.useRef(),_=be.useRef(),b=be.useRef(),a=be.useRef(),E=be.useRef(),j=100,[V,ie]=be.useState(!0),[G,le]=sn(xv),fe=Ei(km),ve=Ei(LL),[Ze,me]=be.useState(!1),[te,ee]=sn(S4),re=kf(),[Me,we]=be.useState(),We=Ei(ca),[,ot]=sn(iv),[,$e]=sn(xc),[,xt]=sn(hv),[ut,jt]=sn(bu),St=Ei(Fh),Jt=Ja(),Tt=Ei(Dl),[bt,qt]=be.useState(!1),Ot=Ei(w4),Vt=jh(),[,W]=sn(wv),[ne,T]=be.useState(!1),k=Ei(jL),F=Ei(pv),Q=Ei(jm),Z=Ei(C4),[se,he]=be.useState(!1),ce=be.useRef([]),[xe,He]=be.useState([]),[et,Ue]=be.useState(!1);function Xe(){var ci,bi,Ni;ce.current.length===1?(ee(null),le([]),ot([]),rt(qn.FIT),he(!0),((bi=(ci=a.current)==null?void 0:ci.getValue())==null?void 0:bi.trim())?a.current.triggerSearch():(Ni=a.current)==null||Ni.clear(),ce.current.pop()):(ce.current.pop(),ee(ce.current[0]))}function Fe(ci){var bi;ce.current.includes(ci)||ce.current.push(ci),te&&(ee([]),le([]),ot([])),ee(ci),window.mapsindoors.services.LocationsService.getLocations({categories:ci,venue:F||(bi=Q.find(Ni=>Ni.name.toLowerCase()===ut.toLowerCase()))==null?void 0:bi.name}).then(Ni=>Mt(Ni,!0))}function rt(ci){typeof e=="function"&&e(ci)}function pt(ci){return te?[...ci].sort((bi,Ni)=>{var qi,an;return(((qi=bi.properties)==null?void 0:qi.name)||"").localeCompare(((an=Ni.properties)==null?void 0:an.name)||"")}):ci}function Mt(ci,bi=!1){var qi;const Ni=ci.slice(0,j);rt(qn.MAX),le(Ni),ot(Ni),me(Ni.length===0),ci&&bi&&Et(ci),Vt&&((qi=d.current)==null||qi.addEventListener("transitionend",()=>{var an;(an=_==null?void 0:_.current)==null||an.updateScrollButtons()},{once:!0}))}function Et(ci){if(!We.goTo)return;const bi=We.getFloor(),Ni={type:"FeatureCollection",features:ci.filter(qi=>parseInt(qi.properties.floor,10)===parseInt(bi,10)).filter(qi=>qi.properties.venueId.toLowerCase()===ut.toLowerCase()).map(qi=>({type:"Feature",geometry:qi.geometry,properties:qi.properties}))};Ni.features.length>0&&Promise.all([xi(),zi()]).then(([qi,an])=>{We.goTo(Ni,{maxZoom:22,padding:{bottom:qi,left:an,top:0,right:0}})})}function di(){le([]),me(!1),te&&Fe(te),ot([]),kr(E.current)||E.current.clearInputField()}function ei(){ie(!1),a.current.getInputField();const ci=d.current.closest(".sheet");ci?ci.addEventListener("transitionend",()=>{a.current.focusInput(),he(!0)},{once:!0}):(a.current.focusInput(),he(!0))}function Di(ci){we(ci)}function si(ci){$e(ci),ci.properties.venueId.toLowerCase()!==ut.toLowerCase()&&(jt(ci.properties.venueId),xt(!0));const bi=We.getFloor(),Ni=ci.properties.floor;Ni!==bi&&We.setFloor(Ni),Promise.all([xi(),zi()]).then(([qi,an])=>{We.goTo(ci,{maxZoom:22,padding:{bottom:qi,left:an,top:0,right:0}})})}function xi(){return new Promise(ci=>{Jt?Tt?Om().then(bi=>ci(bi)):ci(0):ci(200)})}function zi(){return new Promise(ci=>{Jt?Tt?ci(0):kh().then(bi=>ci(bi)):ci(0)})}function Ii(){if(G.length>0){let ci;return Jt?ci=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":ci="100%",{display:"flex",flexDirection:"column",maxHeight:ci,overflow:"hidden"}}}function Ht(){return Vt&&et}return be.useEffect(()=>{const ci=[".search__info",".search__back-button",".categories",".sheet__content"],bi=[".mi-floor-selector",".view-mode-switch",".mi-my-position",".view-selector__toggle-button",".building-list",".mapboxgl-ctrl-bottom-right",".gmnoprint",".language-selector-portal"],Ni=qi=>{const an=ci.some(_t=>qi.target.closest(_t)),ln=bi.some(_t=>qi.target.closest(_t)),On=qi.target.closest(".search__results");an?(rt(qn.MAX),b.current=requestAnimationFrame(()=>{he(!0)})):!On&&!ln&&(he(!1),rt(qn.MIN),ee(null),le([]),ot([]),ce.current=[])};return i?b.current=requestAnimationFrame(()=>{document.addEventListener("click",Ni)}):document.removeEventListener("click",Ni),()=>{document.removeEventListener("click",Ni),b.current&&cancelAnimationFrame(b.current)}},[i]),be.useEffect(()=>()=>{we()},[]),be.useEffect(()=>{te&&ut!==Z&&(le([]),ee(null))},[ut]),be.useEffect(()=>{te&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{a.current.triggerSearch()})},[St]),be.useEffect(()=>(We==null||We.on("mouseenter",Di),()=>{We==null||We.off("mouseenter",Di)}),[We]),be.useEffect(()=>{if(i&&Vt&&G.length>0){const ci=document.querySelector(".mapsindoors-map .search__results");_.current.scrollContainerElementRef=ci}},[G,i]),be.useEffect(()=>{if(ve){const ci=bi=>{bi.target.closest("mi-keyboard")||bi.target.tagName.toUpperCase()==="MI-SEARCH"||bi.target.tagName.toUpperCase()==="INPUT"?qt(!0):qt(!1)};return window.addEventListener("click",ci,!1),()=>{window.removeEventListener("click",ci,!1)}}},[ve]),be.useEffect(()=>{te&&Fe(te)},[te]),be.useEffect(()=>{Tt&&T(k.length>0)},[Tt]),be.useEffect(()=>{var bi,Ni;const ci=((Ni=(bi=fe.find(([qi])=>qi===te))==null?void 0:bi[1])==null?void 0:Ni.childKeys)||[];He(ci)},[fe,te]),be.useEffect(()=>{var ci,bi;Ue(((ci=o==null?void 0:o.appSettings)==null?void 0:ci.areHorizontalCategoriesEnabled)===!0||((bi=o==null?void 0:o.appSettings)==null?void 0:bi.areHorizontalCategoriesEnabled)==="true")},[o]),Pe.jsxs("div",{className:"search",ref:d,style:Ii(),children:[Pe.jsxs("div",{className:"search__info",style:{gridTemplateColumns:Vt&&ne?"min-content 1fr":"auto"},children:[Vt&&ne&&Pe.jsx("button",{className:"search__legend",onClick:()=>W(!0),children:Pe.jsx(JZ,{})}),Pe.jsxs("label",{className:"search__label",children:[Pe.jsx("span",{children:u("Search by name, category, building...")}),Pe.jsx(yv,{ref:a,mapsindoors:!0,placeholder:u("Search by name, category, building..."),results:ci=>Mt(ci),clicked:()=>ei(),cleared:()=>di(),category:te,disabled:V})]})]}),(Ht()||se)&&!Ze&&fe.length>0&&G.length===0&&Pe.jsx(A4,{onSetSize:e,searchFieldRef:a,getFilteredLocations:ci=>Fe(ci),isOpen:!!te,topLevelCategory:!0,categoryOrientation:et?"horizontal":"vertical"}),Ze&&Pe.jsxs("p",{className:"search__error",children:[" ",u("Nothing was found")]}),G.length>0&&Pe.jsxs("div",{className:"search__results prevent-scroll",...re,children:[te&&Pe.jsx(A4,{handleBack:Xe,getFilteredLocations:ci=>Fe(ci),onLocationClicked:si,childKeys:xe,topLevelCategory:!1,selectedCategoriesArray:ce,categoryOrientation:et?"horizontal":"vertical"}),pt(G).map(ci=>Pe.jsx(mv,{location:ci,locationClicked:()=>si(ci),isHovered:(ci==null?void 0:ci.id)===(Me==null?void 0:Me.id)},ci.id))]}),bt&&Jt&&Pe.jsx(zL,{ref:E,searchInputElement:Ot}),i&&Vt&&G.length>0&&yu.createPortal(Pe.jsx("div",{className:"search__scroll-buttons",children:Pe.jsx("mi-scroll-buttons",{ref:_})}),document.querySelector(".mapsindoors-map"))]})}const sle="";N4.propTypes={onLocationClick:dt.func.isRequired,onBack:dt.func.isRequired,locations:dt.arrayOf(dt.object),onSetSize:dt.func};function N4({onBack:e,onLocationClick:i,locations:o,onSetSize:u}){const{t:d}=cs(),_=kf();function b(a){typeof u=="function"&&u(a)}return be.useEffect(()=>{b(qn.FIT)},[]),Pe.jsxs("div",{className:"locations-list",children:[Pe.jsxs("div",{className:"locations-list__header",children:[Pe.jsxs("div",{className:"locations-list__title",children:[o==null?void 0:o.length," ",d("Locations")]}),Pe.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":d("Close"),children:Pe.jsx(Bm,{})})]}),Pe.jsx("div",{className:"locations-list__scrollable prevent-scroll",..._,children:Pe.jsx("div",{className:"locations-list__list",children:o==null?void 0:o.map(a=>Pe.jsx(mv,{location:a,locationClicked:E=>i(E)},a.id))})})]})}PL.propTypes={directionsFromLocation:dt.string,directionsToLocation:dt.string,pushAppView:dt.func.isRequired,currentAppView:dt.string,appViews:dt.object,onRouteFinished:dt.func.isRequired};function PL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),V=be.useRef(),ie=be.useRef(),[G,le]=sn(xc),[fe,ve]=be.useState(!1),[Ze,me]=sn(nv),[,te]=sn(ov);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):G?o(d.LOCATION_DETAILS,G):(Ze==null?void 0:Ze.length)>1?o(d.EXTERNALIDS):(Ze==null?void 0:Ze.length)===1?(le(Ze[0]),te(Ze[0].id)):o(d.SEARCH))},[G,e,i,Ze]),be.useEffect(()=>{if(G){const we=G.properties.imageURL||G.properties.description||G.properties.additionalDetails||Object.keys(G.properties.categories).length>0;ve(we)}},[G]);function ee(){(Ze==null?void 0:Ze.length)>1?(o(d.EXTERNALIDS),le()):(Ze==null?void 0:Ze.length)===1?(o(d.SEARCH),le(),me([]),a.current.setSnapPoint(qn.MIN)):(o(d.SEARCH),le(),a.current.setSnapPoint(qn.MIN))}function re(){o(d.SEARCH),le(),me([])}const Me=[Pe.jsx(Of,{minimizedHeight:80,initialSnapPoint:qn.MIN,isOpen:u===d.SEARCH,ref:a,children:Pe.jsx(E4,{isOpen:u===d.SEARCH,onSetSize:we=>a.current.setSnapPoint(we)})},"SEARCH"),Pe.jsx(Of,{minimizedHeight:200,isOpen:u===d.EXTERNALIDS,initialSnapPoint:qn.MIN,ref:E,children:Pe.jsx(N4,{onSetSize:we=>E.current.setSnapPoint(we),onBack:()=>re(),locations:Ze,onLocationClick:we=>le(we)})},"EXTERNALIDS"),Pe.jsx(Of,{minimizedHeight:fe?180:136,initialSnapPoint:qn.MIN,isOpen:u===d.LOCATION_DETAILS,ref:j,children:Pe.jsx(x4,{onSetSize:we=>j.current.setSnapPoint(we),onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>ee(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(Of,{minimizedHeight:190,initialSnapPoint:qn.FIT,isOpen:u===d.WAYFINDING,ref:V,children:Pe.jsx(T4,{onSetSize:we=>V.current.setSnapPoint(we),onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(G?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(Of,{minimizedHeight:273,isOpen:u===d.DIRECTIONS,initialSnapPoint:qn.FIT,ref:ie,children:Pe.jsx(D4,{onSetSize:we=>ie.current.setSnapPoint(we),isOpen:u===d.DIRECTIONS,onBack:()=>o(d.WAYFINDING),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{ref:b,className:"bottom-sheets",children:Pe.jsx(sL.Provider,{value:b,children:Me})})}const eW={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},tW=()=>{const[e,i]=be.useState(void 0),[o,u]=be.useState(),[d,_]=be.useState(null);be.useEffect(()=>{function j(V){var ie,G;i((ie=V.state)==null?void 0:ie.value),u((G=V.state)==null?void 0:G.payload)}return window.addEventListener("popstate",j),()=>{window.removeEventListener("popstate",j)}},[]);const b=(j,V)=>{window.history.pushState({value:j,payload:V},""),i(j),d===null&&_({value:j,payload:V})};return[b,()=>{window.history.back()},e,o,eW,()=>{b(d.value,d.payload)}]},iW=kn({key:"showQRCodeDialog",default:!1});function nW(){const e=Ei(C4),[,i]=sn(bu),o=Mo(_v),u=Mo(xc),d=Mo(Um),_=Mo(dv),b=Mo(hv),a=Mo(zm),E=Mo(iW),j=Mo(vv),V=Mo(Vm),ie=Mo(xv),G=Mo(Qm),le=Mo(wv),fe=Mo(TN),ve=Mo(X3);return()=>{o(),u(),d(),_(),b(),a(),E(),j(),V(),ie(),G(),le(),fe(),ve(),e&&i(e)}}const ale="";jf.propTypes={children:dt.node,isOpen:dt.bool};function jf({children:e,isOpen:i}){const[o,u]=be.useState(!1),d=Ei(Dl),_=be.useRef(),b=be.useRef();return be.useEffect(()=>{if(!b)return;const a=new MutationObserver(()=>{var V;const E=b.current.clientHeight,j=(V=_.current)==null?void 0:V.clientHeight;u(E>j)});return a.observe(b.current,{childList:!0,subtree:!0}),()=>{a.disconnect()}},[b]),Pe.jsx("div",{ref:_,className:`modal ${i?"modal--open":""} ${o?"modal--full":""} ${d?"modal--kiosk":""}`,children:Pe.jsx("div",{ref:b,className:"modal__content",children:e})})}RL.propTypes={directionsFromLocation:dt.string,directionsToLocation:dt.string,pushAppView:dt.func,currentAppView:dt.string,appViews:dt.object,filteredLocationsByExternalIDs:dt.array,onRouteFinished:dt.func};function RL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const[b,a]=sn(xc),[E,j]=sn(nv),[,V]=sn(ov),ie=Ei(Dl);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):b?o(d.LOCATION_DETAILS,b):(E==null?void 0:E.length)>1?o(d.EXTERNALIDS):(E==null?void 0:E.length)===1?(a(E[0]),V(E[0].id)):o(d.SEARCH))},[b,e,i,E]);function G(){(E==null?void 0:E.length)>1?(o(d.EXTERNALIDS),a()):(E==null?void 0:E.length)===1?(o(d.SEARCH),a(),j([])):(o(d.SEARCH),a())}function le(){o(d.SEARCH),a(),j([])}function fe(){o(ie?d.LOCATION_DETAILS:d.WAYFINDING)}const ve=[Pe.jsx(jf,{isOpen:u===d.SEARCH,children:Pe.jsx(E4,{isOpen:u===d.SEARCH})},"SEARCH"),Pe.jsx(jf,{isOpen:u===d.EXTERNALIDS,children:Pe.jsx(N4,{onBack:()=>le(),locations:E,onLocationClick:Ze=>a(Ze)})},"EXTERNALIDS"),Pe.jsx(jf,{isOpen:u===d.LOCATION_DETAILS,children:Pe.jsx(x4,{onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>G(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(jf,{isOpen:u===d.WAYFINDING,children:Pe.jsx(T4,{onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(b?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(jf,{isOpen:u===d.DIRECTIONS,children:Pe.jsx(D4,{isOpen:u===d.DIRECTIONS,onBack:()=>fe(),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{children:ve})}const BL=e=>{const[i,o]=be.useState(),u=Ei(J_),d=Ei(xN);return be.useEffect(()=>{d&&e&&(e==="USER_POSITION"&&!u?(o("USER_POSITION_PENDING"),d.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(_=>o(_)),u&&e==="USER_POSITION"&&o(b4(u)))},[e,u,d]),i},rW=kn({key:"gmMapId",default:null}),lle="";function oW(){const e=Ei(zm),i=be.useRef();return be.useEffect(()=>{var o;(o=i.current)==null||o.classList.add("notification"),e?i.current.push(e.text,e.type,!0):i.current.clearAll()},[e]),Pe.jsx("mi-notification",{ref:i,position:"top-center"})}const cle="";var Hm={},sW=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},FL={},ha={};let L4;const aW=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ha.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},ha.getSymbolTotalCodewords=function(i){return aW[i]},ha.getBCHDigit=function(e){let i=0;for(;e!==0;)i++,e>>>=1;return i},ha.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');L4=i},ha.isKanjiModeEnabled=function(){return typeof L4<"u"},ha.toSJIS=function(i){return L4(i)};var bv={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+o)}}e.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4},e.from=function(u,d){if(e.isValid(u))return u;try{return i(u)}catch{return d}}})(bv);function UL(){this.buffer=[],this.length=0}UL.prototype={get:function(e){const i=Math.floor(e/8);return(this.buffer[i]>>>7-e%8&1)===1},put:function(e,i){for(let o=0;o<i;o++)this.putBit((e>>>i-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),e&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var lW=UL;function $m(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}$m.prototype.set=function(e,i,o,u){const d=e*this.size+i;this.data[d]=o,u&&(this.reservedBit[d]=!0)},$m.prototype.get=function(e,i){return this.data[e*this.size+i]},$m.prototype.xor=function(e,i,o){this.data[e*this.size+i]^=o},$m.prototype.isReserved=function(e,i){return this.reservedBit[e*this.size+i]};var cW=$m,VL={};(function(e){const i=ha.getSymbolSize;e.getRowColCoords=function(u){if(u===1)return[];const d=Math.floor(u/7)+2,_=i(u),b=_===145?26:Math.ceil((_-13)/(2*d-2))*2,a=[_-7];for(let E=1;E<d-1;E++)a[E]=a[E-1]-b;return a.push(6),a.reverse()},e.getPositions=function(u){const d=[],_=e.getRowColCoords(u),b=_.length;for(let a=0;a<b;a++)for(let E=0;E<b;E++)a===0&&E===0||a===0&&E===b-1||a===b-1&&E===0||d.push([_[a],_[E]]);return d}})(VL);var QL={};const uW=ha.getSymbolSize,HL=7;QL.getPositions=function(i){const o=uW(i);return[[0,0],[o-HL,0],[0,o-HL]]};var $L={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};e.isValid=function(d){return d!=null&&d!==""&&!isNaN(d)&&d>=0&&d<=7},e.from=function(d){return e.isValid(d)?parseInt(d,10):void 0},e.getPenaltyN1=function(d){const _=d.size;let b=0,a=0,E=0,j=null,V=null;for(let ie=0;ie<_;ie++){a=E=0,j=V=null;for(let G=0;G<_;G++){let le=d.get(ie,G);le===j?a++:(a>=5&&(b+=i.N1+(a-5)),j=le,a=1),le=d.get(G,ie),le===V?E++:(E>=5&&(b+=i.N1+(E-5)),V=le,E=1)}a>=5&&(b+=i.N1+(a-5)),E>=5&&(b+=i.N1+(E-5))}return b},e.getPenaltyN2=function(d){const _=d.size;let b=0;for(let a=0;a<_-1;a++)for(let E=0;E<_-1;E++){const j=d.get(a,E)+d.get(a,E+1)+d.get(a+1,E)+d.get(a+1,E+1);(j===4||j===0)&&b++}return b*i.N2},e.getPenaltyN3=function(d){const _=d.size;let b=0,a=0,E=0;for(let j=0;j<_;j++){a=E=0;for(let V=0;V<_;V++)a=a<<1&2047|d.get(j,V),V>=10&&(a===1488||a===93)&&b++,E=E<<1&2047|d.get(V,j),V>=10&&(E===1488||E===93)&&b++}return b*i.N3},e.getPenaltyN4=function(d){let _=0;const b=d.data.length;for(let E=0;E<b;E++)_+=d.data[E];return Math.abs(Math.ceil(_*100/b/5)-10)*i.N4};function o(u,d,_){switch(u){case e.Patterns.PATTERN000:return(d+_)%2===0;case e.Patterns.PATTERN001:return d%2===0;case e.Patterns.PATTERN010:return _%3===0;case e.Patterns.PATTERN011:return(d+_)%3===0;case e.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(_/3))%2===0;case e.Patterns.PATTERN101:return d*_%2+d*_%3===0;case e.Patterns.PATTERN110:return(d*_%2+d*_%3)%2===0;case e.Patterns.PATTERN111:return(d*_%3+(d+_)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}e.applyMask=function(d,_){const b=_.size;for(let a=0;a<b;a++)for(let E=0;E<b;E++)_.isReserved(E,a)||_.xor(E,a,o(d,E,a))},e.getBestMask=function(d,_){const b=Object.keys(e.Patterns).length;let a=0,E=1/0;for(let j=0;j<b;j++){_(j),e.applyMask(j,d);const V=e.getPenaltyN1(d)+e.getPenaltyN2(d)+e.getPenaltyN3(d)+e.getPenaltyN4(d);e.applyMask(j,d),V<E&&(E=V,a=j)}return a}})($L);var Mv={};const Iu=bv,Iv=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Tv=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Mv.getBlocksCount=function(i,o){switch(o){case Iu.L:return Iv[(i-1)*4+0];case Iu.M:return Iv[(i-1)*4+1];case Iu.Q:return Iv[(i-1)*4+2];case Iu.H:return Iv[(i-1)*4+3];default:return}},Mv.getTotalCodewordsCount=function(i,o){switch(o){case Iu.L:return Tv[(i-1)*4+0];case Iu.M:return Tv[(i-1)*4+1];case Iu.Q:return Tv[(i-1)*4+2];case Iu.H:return Tv[(i-1)*4+3];default:return}};var YL={},Dv={};const Ym=new Uint8Array(512),Sv=new Uint8Array(256);(function(){let i=1;for(let o=0;o<255;o++)Ym[o]=i,Sv[i]=o,i<<=1,i&256&&(i^=285);for(let o=255;o<512;o++)Ym[o]=Ym[o-255]})(),Dv.log=function(i){if(i<1)throw new Error("log("+i+")");return Sv[i]},Dv.exp=function(i){return Ym[i]},Dv.mul=function(i,o){return i===0||o===0?0:Ym[Sv[i]+Sv[o]]},function(e){const i=Dv;e.mul=function(u,d){const _=new Uint8Array(u.length+d.length-1);for(let b=0;b<u.length;b++)for(let a=0;a<d.length;a++)_[b+a]^=i.mul(u[b],d[a]);return _},e.mod=function(u,d){let _=new Uint8Array(u);for(;_.length-d.length>=0;){const b=_[0];for(let E=0;E<d.length;E++)_[E]^=i.mul(d[E],b);let a=0;for(;a<_.length&&_[a]===0;)a++;_=_.slice(a)}return _},e.generateECPolynomial=function(u){let d=new Uint8Array([1]);for(let _=0;_<u;_++)d=e.mul(d,new Uint8Array([1,i.exp(_)]));return d}}(YL);const GL=YL;function z4(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}z4.prototype.initialize=function(i){this.degree=i,this.genPoly=GL.generateECPolynomial(this.degree)},z4.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(i.length+this.degree);o.set(i);const u=GL.mod(o,this.genPoly),d=this.degree-u.length;if(d>0){const _=new Uint8Array(this.degree);return _.set(u,d),_}return u};var hW=z4,ZL={},Tu={},O4={};O4.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40};var Al={};const WL="[0-9]+",dW="[A-Z $%*+\\-./:]+";let Gm="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Gm=Gm.replace(/u/g,"\\u");const fW="(?:(?![A-Z0-9 $%*+\\-./:]|"+Gm+`)(?:.|[\r
43
+ hot module replacement.`;console.warn(i)}}function wB(e){ff.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED&&xB(e.key),Eh.set(e.key,e);const i=e.set==null?new pf.RecoilValueReadOnly(e.key):new pf.RecoilState(e.key);return a3.set(e.key,i),i}class $C extends Error{}function bB(e){const i=Eh.get(e);if(i==null)throw new $C(`Missing definition for RecoilValue: "${e}""`);return i}function MB(e){return Eh.get(e)}const p_=new Map;function IB(e){var i;if(!qr("recoil_memory_managament_2020"))return;const o=Eh.get(e);if(o!=null&&(i=o.shouldDeleteConfigOnRelease)!==null&&i!==void 0&&i.call(o)){var u;Eh.delete(e),(u=YC(e))===null||u===void 0||u(),p_.delete(e)}}function TB(e,i){qr("recoil_memory_managament_2020")&&(i===void 0?p_.delete(e):p_.set(e,i))}function YC(e){return p_.get(e)}var Ws={nodes:Eh,recoilValues:a3,registerNode:wB,getNode:bB,getNodeMaybe:MB,deleteNodeConfigIfPossible:IB,setConfigDeletionHandler:TB,getConfigDeletionHandler:YC,recoilValuesForKeys:vB,NodeMissingError:$C,DefaultValue:HC,DEFAULT_VALUE:_B};function DB(e,i){i()}var SB={enqueueExecution:DB};function AB(e,i){return i={exports:{}},e(i,i.exports),i.exports}var CB=AB(function(e){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(_t){return typeof _t}:function(_t){return _t&&typeof Symbol=="function"&&_t.constructor===Symbol&&_t!==Symbol.prototype?"symbol":typeof _t},o={},u=5,d=Math.pow(2,u),_=d-1,b=d/2,a=d/4,E={},j=function(gt){return function(){return gt}},V=o.hash=function(_t){var gt=typeof _t>"u"?"undefined":i(_t);if(gt==="number")return _t;gt!=="string"&&(_t+="");for(var oi=0,Yt=0,Xt=_t.length;Yt<Xt;++Yt){var mi=_t.charCodeAt(Yt);oi=(oi<<5)-oi+mi|0}return oi},ie=function(gt){return gt-=gt>>1&1431655765,gt=(gt&858993459)+(gt>>2&858993459),gt=gt+(gt>>4)&252645135,gt+=gt>>8,gt+=gt>>16,gt&127},G=function(gt,oi){return oi>>>gt&_},le=function(gt){return 1<<gt},fe=function(gt,oi){return ie(gt&oi-1)},ve=function(gt,oi,Yt,Xt){var mi=Xt;if(!gt){var Ai=Xt.length;mi=new Array(Ai);for(var Hi=0;Hi<Ai;++Hi)mi[Hi]=Xt[Hi]}return mi[oi]=Yt,mi},Ze=function(gt,oi,Yt){var Xt=Yt.length-1,mi=0,Ai=0,Hi=Yt;if(gt)mi=Ai=oi;else for(Hi=new Array(Xt);mi<oi;)Hi[Ai++]=Yt[mi++];for(++mi;mi<=Xt;)Hi[Ai++]=Yt[mi++];return gt&&(Hi.length=Xt),Hi},me=function(gt,oi,Yt,Xt){var mi=Xt.length;if(gt){for(var Ai=mi;Ai>=oi;)Xt[Ai--]=Xt[Ai];return Xt[oi]=Yt,Xt}for(var Hi=0,hn=0,en=new Array(mi+1);Hi<oi;)en[hn++]=Xt[Hi++];for(en[oi]=Yt;Hi<mi;)en[++hn]=Xt[Hi++];return en},te=1,ee=2,re=3,Me=4,we={__hamt_isEmpty:!0},We=function(gt){return gt===we||gt&&gt.__hamt_isEmpty},ot=function(gt,oi,Yt,Xt){return{type:te,edit:gt,hash:oi,key:Yt,value:Xt,_modify:Ot}},$e=function(gt,oi,Yt){return{type:ee,edit:gt,hash:oi,children:Yt,_modify:Vt}},xt=function(gt,oi,Yt){return{type:re,edit:gt,mask:oi,children:Yt,_modify:W}},ut=function(gt,oi,Yt){return{type:Me,edit:gt,size:oi,children:Yt,_modify:ne}},jt=function(gt){return gt===we||gt.type===te||gt.type===ee},St=function(gt,oi,Yt,Xt,mi){for(var Ai=[],Hi=Xt,hn=0,en=0;Hi;++en)Hi&1&&(Ai[en]=mi[hn++]),Hi>>>=1;return Ai[oi]=Yt,ut(gt,hn+1,Ai)},Jt=function(gt,oi,Yt,Xt){for(var mi=new Array(oi-1),Ai=0,Hi=0,hn=0,en=Xt.length;hn<en;++hn)if(hn!==Yt){var wn=Xt[hn];wn&&!We(wn)&&(mi[Ai++]=wn,Hi|=1<<hn)}return xt(gt,Hi,mi)},Tt=function _t(gt,oi,Yt,Xt,mi,Ai){if(Yt===mi)return $e(gt,Yt,[Ai,Xt]);var Hi=G(oi,Yt),hn=G(oi,mi);return xt(gt,le(Hi)|le(hn),Hi===hn?[_t(gt,oi+u,Yt,Xt,mi,Ai)]:Hi<hn?[Xt,Ai]:[Ai,Xt])},bt=function(gt,oi,Yt,Xt,mi,Ai,Hi,hn){for(var en=mi.length,wn=0;wn<en;++wn){var Dt=mi[wn];if(Yt(Hi,Dt.key)){var Vn=Dt.value,gr=Ai(Vn);return gr===Vn?mi:gr===E?(--hn.value,Ze(gt,wn,mi)):ve(gt,wn,ot(oi,Xt,Hi,gr),mi)}}var xr=Ai();return xr===E?mi:(++hn.value,ve(gt,en,ot(oi,Xt,Hi,xr),mi))},qt=function(gt,oi){return gt===oi.edit},Ot=function(gt,oi,Yt,Xt,mi,Ai,Hi){if(oi(Ai,this.key)){var hn=Xt(this.value);return hn===this.value?this:hn===E?(--Hi.value,we):qt(gt,this)?(this.value=hn,this):ot(gt,mi,Ai,hn)}var en=Xt();return en===E?this:(++Hi.value,Tt(gt,Yt,this.hash,this,mi,ot(gt,mi,Ai,en)))},Vt=function(gt,oi,Yt,Xt,mi,Ai,Hi){if(mi===this.hash){var hn=qt(gt,this),en=bt(hn,gt,oi,this.hash,this.children,Xt,Ai,Hi);return en===this.children?this:en.length>1?$e(gt,this.hash,en):en[0]}var wn=Xt();return wn===E?this:(++Hi.value,Tt(gt,Yt,this.hash,this,mi,ot(gt,mi,Ai,wn)))},W=function(gt,oi,Yt,Xt,mi,Ai,Hi){var hn=this.mask,en=this.children,wn=G(Yt,mi),Dt=le(wn),Vn=fe(hn,Dt),gr=hn&Dt,xr=gr?en[Vn]:we,Ge=xr._modify(gt,oi,Yt+u,Xt,mi,Ai,Hi);if(xr===Ge)return this;var q=qt(gt,this),ae=hn,de=void 0;if(gr&&We(Ge)){if(ae&=~Dt,!ae)return we;if(en.length<=2&&jt(en[Vn^1]))return en[Vn^1];de=Ze(q,Vn,en)}else if(!gr&&!We(Ge)){if(en.length>=b)return St(gt,wn,Ge,hn,en);ae|=Dt,de=me(q,Vn,Ge,en)}else de=ve(q,Vn,Ge,en);return q?(this.mask=ae,this.children=de,this):xt(gt,ae,de)},ne=function(gt,oi,Yt,Xt,mi,Ai,Hi){var hn=this.size,en=this.children,wn=G(Yt,mi),Dt=en[wn],Vn=(Dt||we)._modify(gt,oi,Yt+u,Xt,mi,Ai,Hi);if(Dt===Vn)return this;var gr=qt(gt,this),xr=void 0;if(We(Dt)&&!We(Vn))++hn,xr=ve(gr,wn,Vn,en);else if(!We(Dt)&&We(Vn)){if(--hn,hn<=a)return Jt(gt,hn,wn,en);xr=ve(gr,wn,we,en)}else xr=ve(gr,wn,Vn,en);return gr?(this.size=hn,this.children=xr,this):ut(gt,hn,xr)};we._modify=function(_t,gt,oi,Yt,Xt,mi,Ai){var Hi=Yt();return Hi===E?we:(++Ai.value,ot(_t,Xt,mi,Hi))};function T(_t,gt,oi,Yt,Xt){this._editable=_t,this._edit=gt,this._config=oi,this._root=Yt,this._size=Xt}T.prototype.setTree=function(_t,gt){return this._editable?(this._root=_t,this._size=gt,this):_t===this._root?this:new T(this._editable,this._edit,this._config,_t,gt)};var k=o.tryGetHash=function(_t,gt,oi,Yt){for(var Xt=Yt._root,mi=0,Ai=Yt._config.keyEq;;)switch(Xt.type){case te:return Ai(oi,Xt.key)?Xt.value:_t;case ee:{if(gt===Xt.hash)for(var Hi=Xt.children,hn=0,en=Hi.length;hn<en;++hn){var wn=Hi[hn];if(Ai(oi,wn.key))return wn.value}return _t}case re:{var Dt=G(mi,gt),Vn=le(Dt);if(Xt.mask&Vn){Xt=Xt.children[fe(Xt.mask,Vn)],mi+=u;break}return _t}case Me:{if(Xt=Xt.children[G(mi,gt)],Xt){mi+=u;break}return _t}default:return _t}};T.prototype.tryGetHash=function(_t,gt,oi){return k(_t,gt,oi,this)};var F=o.tryGet=function(_t,gt,oi){return k(_t,oi._config.hash(gt),gt,oi)};T.prototype.tryGet=function(_t,gt){return F(_t,gt,this)};var Q=o.getHash=function(_t,gt,oi){return k(void 0,_t,gt,oi)};T.prototype.getHash=function(_t,gt){return Q(_t,gt,this)},o.get=function(_t,gt){return k(void 0,gt._config.hash(_t),_t,gt)},T.prototype.get=function(_t,gt){return F(gt,_t,this)};var Z=o.has=function(_t,gt,oi){return k(E,_t,gt,oi)!==E};T.prototype.hasHash=function(_t,gt){return Z(_t,gt,this)};var se=o.has=function(_t,gt){return Z(gt._config.hash(_t),_t,gt)};T.prototype.has=function(_t){return se(_t,this)};var he=function(gt,oi){return gt===oi};o.make=function(_t){return new T(0,0,{keyEq:_t&&_t.keyEq||he,hash:_t&&_t.hash||V},we,0)},o.empty=o.make();var ce=o.isEmpty=function(_t){return _t&&!!We(_t._root)};T.prototype.isEmpty=function(){return ce(this)};var xe=o.modifyHash=function(_t,gt,oi,Yt){var Xt={value:Yt._size},mi=Yt._root._modify(Yt._editable?Yt._edit:NaN,Yt._config.keyEq,0,_t,gt,oi,Xt);return Yt.setTree(mi,Xt.value)};T.prototype.modifyHash=function(_t,gt,oi){return xe(oi,_t,gt,this)};var He=o.modify=function(_t,gt,oi){return xe(_t,oi._config.hash(gt),gt,oi)};T.prototype.modify=function(_t,gt){return He(gt,_t,this)};var et=o.setHash=function(_t,gt,oi,Yt){return xe(j(oi),_t,gt,Yt)};T.prototype.setHash=function(_t,gt,oi){return et(_t,gt,oi,this)};var Ue=o.set=function(_t,gt,oi){return et(oi._config.hash(_t),_t,gt,oi)};T.prototype.set=function(_t,gt){return Ue(_t,gt,this)};var Xe=j(E),Fe=o.removeHash=function(_t,gt,oi){return xe(Xe,_t,gt,oi)};T.prototype.removeHash=T.prototype.deleteHash=function(_t,gt){return Fe(_t,gt,this)};var rt=o.remove=function(_t,gt){return Fe(gt._config.hash(_t),_t,gt)};T.prototype.remove=T.prototype.delete=function(_t){return rt(_t,this)};var pt=o.beginMutation=function(_t){return new T(_t._editable+1,_t._edit+1,_t._config,_t._root,_t._size)};T.prototype.beginMutation=function(){return pt(this)};var Mt=o.endMutation=function(_t){return _t._editable=_t._editable&&_t._editable-1,_t};T.prototype.endMutation=function(){return Mt(this)};var Et=o.mutate=function(_t,gt){var oi=pt(gt);return _t(oi),Mt(oi)};T.prototype.mutate=function(_t){return Et(_t,this)};var di=function(gt){return gt&&ei(gt[0],gt[1],gt[2],gt[3],gt[4])},ei=function(gt,oi,Yt,Xt,mi){for(;Yt<gt;){var Ai=oi[Yt++];if(Ai&&!We(Ai))return Di(Ai,Xt,[gt,oi,Yt,Xt,mi])}return di(mi)},Di=function(gt,oi,Yt){switch(gt.type){case te:return{value:oi(gt),rest:Yt};case ee:case Me:case re:var Xt=gt.children;return ei(Xt.length,Xt,0,oi,Yt);default:return di(Yt)}},si={done:!0};function xi(_t){this.v=_t}xi.prototype.next=function(){if(!this.v)return si;var _t=this.v;return this.v=di(_t.rest),_t},xi.prototype[Symbol.iterator]=function(){return this};var zi=function(gt,oi){return new xi(Di(gt._root,oi))},Ii=function(gt){return[gt.key,gt.value]},Ht=o.entries=function(_t){return zi(_t,Ii)};T.prototype.entries=T.prototype[Symbol.iterator]=function(){return Ht(this)};var ci=function(gt){return gt.key},bi=o.keys=function(_t){return zi(_t,ci)};T.prototype.keys=function(){return bi(this)};var Ni=function(gt){return gt.value},qi=o.values=T.prototype.values=function(_t){return zi(_t,Ni)};T.prototype.values=function(){return qi(this)};var an=o.fold=function(_t,gt,oi){var Yt=oi._root;if(Yt.type===te)return _t(gt,Yt.value,Yt.key);for(var Xt=[Yt.children],mi=void 0;mi=Xt.pop();)for(var Ai=0,Hi=mi.length;Ai<Hi;){var hn=mi[Ai++];hn&&hn.type&&(hn.type===te?gt=_t(gt,hn.value,hn.key):Xt.push(hn.children))}return gt};T.prototype.fold=function(_t,gt){return an(_t,gt,this)};var ln=o.forEach=function(_t,gt){return an(function(oi,Yt,Xt){return _t(Yt,Xt,gt)},null,gt)};T.prototype.forEach=function(_t){return ln(_t,this)};var On=o.count=function(_t){return _t._size};T.prototype.count=function(){return On(this)},Object.defineProperty(T.prototype,"size",{get:T.prototype.count}),e.exports?e.exports=o:(void 0).hamt=o});class EB{constructor(i){ar(this,"_map",void 0),this._map=new Map(i==null?void 0:i.entries())}keys(){return this._map.keys()}entries(){return this._map.entries()}get(i){return this._map.get(i)}has(i){return this._map.has(i)}set(i,o){return this._map.set(i,o),this}delete(i){return this._map.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._map)}}class l3{constructor(i){if(ar(this,"_hamt",CB.empty.beginMutation()),i instanceof l3){const o=i._hamt.endMutation();i._hamt=o.beginMutation(),this._hamt=o.beginMutation()}else if(i)for(const[o,u]of i.entries())this._hamt.set(o,u)}keys(){return this._hamt.keys()}entries(){return this._hamt.entries()}get(i){return this._hamt.get(i)}has(i){return this._hamt.has(i)}set(i,o){return this._hamt.set(i,o),this}delete(i){return this._hamt.delete(i),this}clone(){return c3(this)}toMap(){return new Map(this._hamt)}}function c3(e){return qr("recoil_hamt_2020")?new l3(e):new EB(e)}var NB={persistentMap:c3},LB=NB.persistentMap,zB=Object.freeze({__proto__:null,persistentMap:LB});function OB(e,...i){const o=new Set;e:for(const u of e){for(const d of i)if(d.has(u))continue e;o.add(u)}return o}var ym=OB;function kB(e,i){const o=new Map;return e.forEach((u,d)=>{o.set(d,i(u,d))}),o}var g_=kB;function jB(){return{nodeDeps:new Map,nodeToNodeSubscriptions:new Map}}function PB(e){return{nodeDeps:g_(e.nodeDeps,i=>new Set(i)),nodeToNodeSubscriptions:g_(e.nodeToNodeSubscriptions,i=>new Set(i))}}function u3(e,i,o,u){const{nodeDeps:d,nodeToNodeSubscriptions:_}=o,b=d.get(e);if(b&&u&&b!==u.nodeDeps.get(e))return;d.set(e,i);const a=b==null?i:ym(i,b);for(const E of a)_.has(E)||_.set(E,new Set),uo(_.get(E)).add(e);if(b){const E=ym(b,i);for(const j of E){if(!_.has(j))return;const V=uo(_.get(j));V.delete(e),V.size===0&&_.delete(j)}}}function RB(e,i,o,u){var d,_,b,a;const E=o.getState();u===E.currentTree.version||u===((d=E.nextTree)===null||d===void 0?void 0:d.version)||((_=E.previousTree)===null||_===void 0||_.version);const j=o.getGraph(u);if(u3(e,i,j),u===((b=E.previousTree)===null||b===void 0?void 0:b.version)){const ie=o.getGraph(E.currentTree.version);u3(e,i,ie,j)}if(u===((a=E.previousTree)===null||a===void 0?void 0:a.version)||u===E.currentTree.version){var V;const ie=(V=E.nextTree)===null||V===void 0?void 0:V.version;if(ie!==void 0){const G=o.getGraph(ie);u3(e,i,G,j)}}}var _m={cloneGraph:PB,graph:jB,saveDepsToStore:RB};let BB=0;const FB=()=>BB++;let UB=0;const VB=()=>UB++;let QB=0;var m_={getNextTreeStateVersion:FB,getNextStoreID:VB,getNextComponentID:()=>QB++};const{persistentMap:GC}=zB,{graph:HB}=_m,{getNextTreeStateVersion:ZC}=m_;function WC(){const e=ZC();return{version:e,stateID:e,transactionMetadata:{},dirtyAtoms:new Set,atomValues:GC(),nonvalidatedAtoms:GC()}}function $B(){const e=WC();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,HB()),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map}}var qC={makeEmptyTreeState:WC,makeEmptyStoreState:$B,getNextTreeStateVersion:ZC};class KC{}function YB(){return new KC}var y_={RetentionZone:KC,retentionZone:YB};function GB(e,i){const o=new Set(e);return o.add(i),o}function ZB(e,i){const o=new Set(e);return o.delete(i),o}function WB(e,i,o){const u=new Map(e);return u.set(i,o),u}function qB(e,i,o){const u=new Map(e);return u.set(i,o(u.get(i))),u}function KB(e,i){const o=new Map(e);return o.delete(i),o}function XB(e,i){const o=new Map(e);return i.forEach(u=>o.delete(u)),o}var XC={setByAddingToSet:GB,setByDeletingFromSet:ZB,mapBySettingInMap:WB,mapByUpdatingInMap:qB,mapByDeletingFromMap:KB,mapByDeletingMultipleFromMap:XB};function*JB(e,i){let o=0;for(const u of e)i(u,o++)&&(yield u)}var h3=JB;function eF(e,i){return new Proxy(e,{get:(u,d)=>(!(d in u)&&d in i&&(u[d]=i[d]()),u[d]),ownKeys:u=>Object.keys(u)})}var JC=eF;const{getNode:vm,getNodeMaybe:tF,recoilValuesForKeys:e6}=Ws,{RetentionZone:t6}=y_,{setByAddingToSet:iF}=XC,nF=Object.freeze(new Set);class rF extends Error{}function oF(e,i,o){if(!qr("recoil_memory_managament_2020"))return()=>{};const{nodesRetainedByZone:u}=e.getState().retention;function d(_){let b=u.get(_);b||u.set(_,b=new Set),b.add(i)}if(o instanceof t6)d(o);else if(Array.isArray(o))for(const _ of o)d(_);return()=>{if(!qr("recoil_memory_managament_2020"))return;const{retention:_}=e.getState();function b(a){const E=_.nodesRetainedByZone.get(a);E==null||E.delete(i),E&&E.size===0&&_.nodesRetainedByZone.delete(a)}if(o instanceof t6)b(o);else if(Array.isArray(o))for(const a of o)b(a)}}function d3(e,i,o,u){const d=e.getState();if(d.nodeCleanupFunctions.has(o))return;const _=vm(o),b=oF(e,o,_.retainedBy),a=_.init(e,i,u);d.nodeCleanupFunctions.set(o,()=>{a(),b()})}function sF(e,i,o){d3(e,e.getState().currentTree,i,o)}function aF(e,i){var o;const u=e.getState();(o=u.nodeCleanupFunctions.get(i))===null||o===void 0||o(),u.nodeCleanupFunctions.delete(i)}function lF(e,i,o){return d3(e,i,o,"get"),vm(o).get(e,i)}function i6(e,i,o){return vm(o).peek(e,i)}function cF(e,i,o){var u;const d=tF(i);return d==null||(u=d.invalidate)===null||u===void 0||u.call(d,e),{...e,atomValues:e.atomValues.clone().delete(i),nonvalidatedAtoms:e.nonvalidatedAtoms.clone().set(i,o),dirtyAtoms:iF(e.dirtyAtoms,i)}}function uF(e,i,o,u){const d=vm(o);if(d.set==null)throw new rF(`Attempt to set read-only RecoilValue: ${o}`);const _=d.set;return d3(e,i,o,"set"),_(e,i,u)}function hF(e,i,o){const u=e.getState(),d=e.getGraph(i.version),_=vm(o).nodeType;return JC({type:_},{loadable:()=>i6(e,i,o),isActive:()=>u.knownAtoms.has(o)||u.knownSelectors.has(o),isSet:()=>_==="selector"?!1:i.atomValues.has(o),isModified:()=>i.dirtyAtoms.has(o),deps:()=>{var b;return e6((b=d.nodeDeps.get(o))!==null&&b!==void 0?b:[])},subscribers:()=>{var b,a;return{nodes:e6(h3(n6(e,i,new Set([o])),E=>E!==o)),components:f_((b=(a=u.nodeToComponentSubscriptions.get(o))===null||a===void 0?void 0:a.values())!==null&&b!==void 0?b:[],([E])=>({name:E}))}}})}function n6(e,i,o){const u=new Set,d=Array.from(o),_=e.getGraph(i.version);for(let a=d.pop();a;a=d.pop()){var b;u.add(a);const E=(b=_.nodeToNodeSubscriptions.get(a))!==null&&b!==void 0?b:nF;for(const j of E)u.has(j)||d.push(j)}return u}var _u={getNodeLoadable:lF,peekNodeLoadable:i6,setNodeValue:uF,initializeNode:sF,cleanUpNode:aF,setUnvalidatedAtomValue_DEPRECATED:cF,peekNodeInfo:hF,getDownstreamNodes:n6};let r6=null;function dF(e){r6=e}function fF(){var e;(e=r6)===null||e===void 0||e()}var o6={setInvalidateMemoizedSnapshot:dF,invalidateMemoizedSnapshot:fF};const{getDownstreamNodes:pF,getNodeLoadable:s6,setNodeValue:gF}=_u,{getNextComponentID:mF}=m_,{getNode:yF,getNodeMaybe:a6}=Ws,{DefaultValue:f3}=Ws,{reactMode:_F}=mm,{AbstractRecoilValue:vF,RecoilState:xF,RecoilValueReadOnly:wF,isRecoilValue:bF}=pf,{invalidateMemoizedSnapshot:MF}=o6;function IF(e,{key:i},o=e.getState().currentTree){var u,d;const _=e.getState();o.version===_.currentTree.version||o.version===((u=_.nextTree)===null||u===void 0?void 0:u.version)||(o.version,(d=_.previousTree)===null||d===void 0||d.version);const b=s6(e,o,i);return b.state==="loading"&&b.contents.catch(()=>{}),b}function TF(e,i){const o=e.clone();return i.forEach((u,d)=>{u.state==="hasValue"&&u.contents instanceof f3?o.delete(d):o.set(d,u)}),o}function DF(e,i,{key:o},u){if(typeof u=="function"){const d=s6(e,i,o);if(d.state==="loading"){const _=`Tried to set atom or selector "${o}" using an updater function while the current state is pending, this is not currently supported.`;throw hr(_)}else if(d.state==="hasError")throw d.contents;return u(d.contents)}else return u}function SF(e,i,o){if(o.type==="set"){const{recoilValue:d,valueOrUpdater:_}=o,b=DF(e,i,d,_),a=gF(e,i,d.key,b);for(const[E,j]of a.entries())p3(i,E,j)}else if(o.type==="setLoadable"){const{recoilValue:{key:d},loadable:_}=o;p3(i,d,_)}else if(o.type==="markModified"){const{recoilValue:{key:d}}=o;i.dirtyAtoms.add(d)}else if(o.type==="setUnvalidated"){var u;const{recoilValue:{key:d},unvalidatedValue:_}=o,b=a6(d);b==null||(u=b.invalidate)===null||u===void 0||u.call(b,i),i.atomValues.delete(d),i.nonvalidatedAtoms.set(d,_),i.dirtyAtoms.add(d)}else i3(`Unknown action ${o.type}`)}function p3(e,i,o){o.state==="hasValue"&&o.contents instanceof f3?e.atomValues.delete(i):e.atomValues.set(i,o),e.dirtyAtoms.add(i),e.nonvalidatedAtoms.delete(i)}function l6(e,i){e.replaceState(o=>{const u=c6(o);for(const d of i)SF(e,u,d);return u6(e,u),MF(),u})}function __(e,i){if(xm.length){const o=xm[xm.length-1];let u=o.get(e);u||o.set(e,u=[]),u.push(i)}else l6(e,[i])}const xm=[];function AF(){const e=new Map;return xm.push(e),()=>{for(const[i,o]of e)l6(i,o);xm.pop()}}function c6(e){return{...e,atomValues:e.atomValues.clone(),nonvalidatedAtoms:e.nonvalidatedAtoms.clone(),dirtyAtoms:new Set(e.dirtyAtoms)}}function u6(e,i){const o=pF(e,i,i.dirtyAtoms);for(const _ of o){var u,d;(u=a6(_))===null||u===void 0||(d=u.invalidate)===null||d===void 0||d.call(u,i)}}function h6(e,i,o){__(e,{type:"set",recoilValue:i,valueOrUpdater:o})}function CF(e,i,o){if(o instanceof f3)return h6(e,i,o);__(e,{type:"setLoadable",recoilValue:i,loadable:o})}function EF(e,i){__(e,{type:"markModified",recoilValue:i})}function NF(e,i,o){__(e,{type:"setUnvalidated",recoilValue:i,unvalidatedValue:o})}function LF(e,{key:i},o,u=null){const d=mF(),_=e.getState();_.nodeToComponentSubscriptions.has(i)||_.nodeToComponentSubscriptions.set(i,new Map),uo(_.nodeToComponentSubscriptions.get(i)).set(d,[u??"<not captured>",o]);const b=_F();if(b.early&&(b.mode==="LEGACY"||b.mode==="MUTABLE_SOURCE")){const a=e.getState().nextTree;a&&a.dirtyAtoms.has(i)&&o(a)}return{release:()=>{const a=e.getState(),E=a.nodeToComponentSubscriptions.get(i);E===void 0||!E.has(d)||(E.delete(d),E.size===0&&a.nodeToComponentSubscriptions.delete(i))}}}function zF(e,i){var o;const{currentTree:u}=e.getState(),d=yF(i.key);(o=d.clearCache)===null||o===void 0||o.call(d,e,u)}var wl={RecoilValueReadOnly:wF,AbstractRecoilValue:vF,RecoilState:xF,getRecoilValueAsLoadable:IF,setRecoilValue:h6,setRecoilValueLoadable:CF,markRecoilValueModified:EF,setUnvalidatedRecoilValue:NF,subscribeToRecoilValue:LF,isRecoilValue:bF,applyAtomValueWrites:TF,batchStart:AF,writeLoadableToTreeState:p3,invalidateDownstreams:u6,copyTreeState:c6,refreshRecoilValue:zF};function OF(e,i,o){const u=e.entries();let d=u.next();for(;!d.done;){const _=d.value;if(i.call(o,_[1],_[0],e))return!0;d=u.next()}return!1}var kF=OF;const{cleanUpNode:jF}=_u,{deleteNodeConfigIfPossible:PF,getNode:d6}=Ws,{RetentionZone:f6}=y_,RF=12e4,p6=new Set;function g6(e,i){const o=e.getState(),u=o.currentTree;if(o.nextTree)return;const d=new Set;for(const b of i)if(b instanceof f6)for(const a of VF(o,b))d.add(a);else d.add(b);const _=BF(e,d);for(const b of _)UF(e,u,b)}function BF(e,i){const o=e.getState(),u=o.currentTree,d=e.getGraph(u.version),_=new Set,b=new Set;return a(i),_;function a(E){const j=new Set,V=FF(e,u,E,_,b);for(const fe of V){var ie;if(d6(fe).retainedBy==="recoilRoot"){b.add(fe);continue}if(((ie=o.retention.referenceCounts.get(fe))!==null&&ie!==void 0?ie:0)>0){b.add(fe);continue}if(m6(fe).some(Ze=>o.retention.referenceCounts.get(Ze))){b.add(fe);continue}const ve=d.nodeToNodeSubscriptions.get(fe);if(ve&&kF(ve,Ze=>b.has(Ze))){b.add(fe);continue}_.add(fe),j.add(fe)}const G=new Set;for(const fe of j)for(const ve of(le=d.nodeDeps.get(fe))!==null&&le!==void 0?le:p6){var le;_.has(ve)||G.add(ve)}G.size&&a(G)}}function FF(e,i,o,u,d){const _=e.getGraph(i.version),b=[],a=new Set;for(;o.size>0;)E(uo(o.values().next().value));return b;function E(j){if(u.has(j)||d.has(j)){o.delete(j);return}if(a.has(j))return;const V=_.nodeToNodeSubscriptions.get(j);if(V)for(const ie of V)E(ie);a.add(j),o.delete(j),b.push(j)}}function UF(e,i,o){if(!qr("recoil_memory_managament_2020"))return;jF(e,o);const u=e.getState();u.knownAtoms.delete(o),u.knownSelectors.delete(o),u.nodeTransactionSubscriptions.delete(o),u.retention.referenceCounts.delete(o);const d=m6(o);for(const E of d){var _;(_=u.retention.nodesRetainedByZone.get(E))===null||_===void 0||_.delete(o)}i.atomValues.delete(o),i.dirtyAtoms.delete(o),i.nonvalidatedAtoms.delete(o);const b=u.graphsByVersion.get(i.version);if(b){const E=b.nodeDeps.get(o);if(E!==void 0){b.nodeDeps.delete(o);for(const j of E){var a;(a=b.nodeToNodeSubscriptions.get(j))===null||a===void 0||a.delete(o)}}b.nodeToNodeSubscriptions.delete(o)}PF(o)}function VF(e,i){var o;return(o=e.retention.nodesRetainedByZone.get(i))!==null&&o!==void 0?o:p6}function m6(e){const i=d6(e).retainedBy;return i===void 0||i==="components"||i==="recoilRoot"?[]:i instanceof f6?[i]:i}function QF(e,i){const o=e.getState();o.nextTree?o.retention.retainablesToCheckForRelease.add(i):g6(e,new Set([i]))}function HF(e,i,o){var u;if(!qr("recoil_memory_managament_2020"))return;const d=e.getState().retention.referenceCounts,_=((u=d.get(i))!==null&&u!==void 0?u:0)+o;_===0?y6(e,i):d.set(i,_)}function y6(e,i){if(!qr("recoil_memory_managament_2020"))return;e.getState().retention.referenceCounts.delete(i),QF(e,i)}function $F(e){if(!qr("recoil_memory_managament_2020"))return;const i=e.getState();g6(e,i.retention.retainablesToCheckForRelease),i.retention.retainablesToCheckForRelease.clear()}function YF(e){return e===void 0?"recoilRoot":e}var Nh={SUSPENSE_TIMEOUT_MS:RF,updateRetainCount:HF,updateRetainCountToZero:y6,releaseScheduledRetainablesNow:$F,retainedByOptionWithDefault:YF};const{unstable_batchedUpdates:GF}=fm;var ZF={unstable_batchedUpdates:GF};const{unstable_batchedUpdates:WF}=ZF;var qF={unstable_batchedUpdates:WF};const{batchStart:KF}=wl,{unstable_batchedUpdates:XF}=qF;let g3=XF||(e=>e());var v_={getBatcher:()=>g3,setBatcher:e=>{g3=e},batchUpdates:e=>{g3(()=>{let i=()=>{};try{i=KF(),e()}finally{i()}})}};function*JF(e){for(const i of e)for(const o of i)yield o}var _6=JF;const v6=typeof Window>"u"||typeof window>"u",eU=e=>!v6&&(e===window||e instanceof Window),tU=typeof navigator<"u"&&navigator.product==="ReactNative";var x_={isSSR:v6,isReactNative:tU,isWindow:eU};function iU(e,i){let o;return(...u)=>{o||(o={});const d=i(...u);return Object.hasOwnProperty.call(o,d)||(o[d]=e(...u)),o[d]}}function nU(e,i){let o,u;return(...d)=>{const _=i(...d);return o===_||(o=_,u=e(...d)),u}}function rU(e,i){let o,u;return[(...b)=>{const a=i(...b);return o===a||(o=a,u=e(...b)),u},()=>{o=null}]}var oU={memoizeWithArgsHash:iU,memoizeOneWithArgsHash:nU,memoizeOneWithArgsHashAndInvalidation:rU};const{batchUpdates:m3}=v_,{initializeNode:sU,peekNodeInfo:aU}=_u,{graph:lU}=_m,{getNextStoreID:cU}=m_,{DEFAULT_VALUE:uU,recoilValues:x6,recoilValuesForKeys:w6}=Ws,{AbstractRecoilValue:hU,getRecoilValueAsLoadable:dU,setRecoilValue:b6,setUnvalidatedRecoilValue:fU}=wl,{updateRetainCount:w_}=Nh,{setInvalidateMemoizedSnapshot:pU}=o6,{getNextTreeStateVersion:gU,makeEmptyStoreState:mU}=qC,{isSSR:yU}=x_,{memoizeOneWithArgsHashAndInvalidation:_U}=oU;class b_{constructor(i,o){ar(this,"_store",void 0),ar(this,"_refCount",1),ar(this,"getLoadable",u=>(this.checkRefCount_INTERNAL(),dU(this._store,u))),ar(this,"getPromise",u=>(this.checkRefCount_INTERNAL(),this.getLoadable(u).toPromise())),ar(this,"getNodes_UNSTABLE",u=>{if(this.checkRefCount_INTERNAL(),(u==null?void 0:u.isModified)===!0){if((u==null?void 0:u.isInitialized)===!1)return[];const b=this._store.getState().currentTree;return w6(b.dirtyAtoms)}const d=this._store.getState().knownAtoms,_=this._store.getState().knownSelectors;return(u==null?void 0:u.isInitialized)==null?x6.values():u.isInitialized===!0?w6(_6([d,_])):h3(x6.values(),({key:b})=>!d.has(b)&&!_.has(b))}),ar(this,"getInfo_UNSTABLE",({key:u})=>(this.checkRefCount_INTERNAL(),aU(this._store,this._store.getState().currentTree,u))),ar(this,"map",u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return u(d),d}),ar(this,"asyncMap",async u=>{this.checkRefCount_INTERNAL();const d=new y3(this,m3);return d.retain(),await u(d),d.autoRelease_INTERNAL(),d}),this._store={storeID:cU(),parentStoreID:o,getState:()=>i,replaceState:u=>{i.currentTree=u(i.currentTree)},getGraph:u=>{const d=i.graphsByVersion;if(d.has(u))return uo(d.get(u));const _=lU();return d.set(u,_),_},subscribeToTransactions:()=>({release:()=>{}}),addTransactionMetadata:()=>{throw hr("Cannot subscribe to Snapshots")}};for(const u of this._store.getState().knownAtoms)sU(this._store,u,"get"),w_(this._store,u,1);this.autoRelease_INTERNAL()}retain(){this._refCount<=0,this._refCount++;let i=!1;return()=>{i||(i=!0,this._release())}}autoRelease_INTERNAL(){yU||window.setTimeout(()=>this._release(),10)}_release(){if(this._refCount--,this._refCount===0){if(this._store.getState().nodeCleanupFunctions.forEach(i=>i()),this._store.getState().nodeCleanupFunctions.clear(),!qr("recoil_memory_managament_2020"))return}else this._refCount<0}isRetained(){return this._refCount>0}checkRefCount_INTERNAL(){qr("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 M6(e,i,o=!1){const u=e.getState(),d=o?gU():i.version;return{currentTree:{version:o?d:i.version,stateID:o?d:i.stateID,transactionMetadata:{...i.transactionMetadata},dirtyAtoms:new Set(i.dirtyAtoms),atomValues:i.atomValues.clone(),nonvalidatedAtoms:i.nonvalidatedAtoms.clone()},commitDepth:0,nextTree:null,previousTree:null,knownAtoms:new Set(u.knownAtoms),knownSelectors:new Set(u.knownSelectors),transactionSubscriptions:new Map,nodeTransactionSubscriptions:new Map,nodeToComponentSubscriptions:new Map,queuedComponentCallbacks_DEPRECATED:[],suspendedComponentResolvers:new Set,graphsByVersion:new Map().set(d,e.getGraph(i.version)),retention:{referenceCounts:new Map,nodesRetainedByZone:new Map,retainablesToCheckForRelease:new Set},nodeCleanupFunctions:new Map(f_(u.nodeCleanupFunctions.entries(),([_])=>[_,()=>{}]))}}function vU(e){const i=new b_(mU());return e!=null?i.map(e):i}const[I6,T6]=_U((e,i)=>{var o;const u=e.getState(),d=i==="latest"?(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree:uo(u.previousTree);return new b_(M6(e,d),e.storeID)},(e,i)=>{var o,u;return String(i)+String(e.storeID)+String((o=e.getState().nextTree)===null||o===void 0?void 0:o.version)+String(e.getState().currentTree.version)+String((u=e.getState().previousTree)===null||u===void 0?void 0:u.version)});pU(T6);function xU(e,i="latest"){const o=I6(e,i);return o.isRetained()?o:(T6(),I6(e,i))}class y3 extends b_{constructor(i,o){super(M6(i.getStore_INTERNAL(),i.getStore_INTERNAL().getState().currentTree,!0),i.getStoreID()),ar(this,"_batch",void 0),ar(this,"set",(u,d)=>{this.checkRefCount_INTERNAL();const _=this.getStore_INTERNAL();this._batch(()=>{w_(_,u.key,1),b6(this.getStore_INTERNAL(),u,d)})}),ar(this,"reset",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();this._batch(()=>{w_(d,u.key,1),b6(this.getStore_INTERNAL(),u,uU)})}),ar(this,"setUnvalidatedAtomValues_DEPRECATED",u=>{this.checkRefCount_INTERNAL();const d=this.getStore_INTERNAL();m3(()=>{for(const[_,b]of u.entries())w_(d,_,1),fU(d,new hU(_),b)})}),this._batch=o}}var M_={Snapshot:b_,MutableSnapshot:y3,freshSnapshot:vU,cloneSnapshot:xU},wU=M_.Snapshot,bU=M_.MutableSnapshot,MU=M_.freshSnapshot,IU=M_.cloneSnapshot,I_=Object.freeze({__proto__:null,Snapshot:wU,MutableSnapshot:bU,freshSnapshot:MU,cloneSnapshot:IU});function TU(...e){const i=new Set;for(const o of e)for(const u of o)i.add(u);return i}var DU=TU;const{useRef:SU}=Cr;function AU(e){const i=SU(e);return i.current===e&&typeof e=="function"&&(i.current=e()),i}var D6=AU;const{getNextTreeStateVersion:CU,makeEmptyStoreState:S6}=qC,{cleanUpNode:EU,getDownstreamNodes:NU,initializeNode:LU,setNodeValue:zU,setUnvalidatedAtomValue_DEPRECATED:OU}=_u,{graph:kU}=_m,{cloneGraph:jU}=_m,{getNextStoreID:A6}=m_,{createMutableSource:_3,reactMode:C6}=mm,{applyAtomValueWrites:PU}=wl,{releaseScheduledRetainablesNow:E6}=Nh,{freshSnapshot:RU}=I_,{useCallback:BU,useContext:N6,useEffect:v3,useMemo:FU,useRef:UU,useState:VU}=Cr;function wm(){throw hr("This component must be used inside a <RecoilRoot> component.")}const L6=Object.freeze({storeID:A6(),getState:wm,replaceState:wm,getGraph:wm,subscribeToTransactions:wm,addTransactionMetadata:wm});let x3=!1;function z6(e){if(x3)throw hr("An atom update was triggered within the execution of a state updater function. State updater functions provided to Recoil must be pure functions.");const i=e.getState();if(i.nextTree===null){qr("recoil_memory_managament_2020")&&qr("recoil_release_on_cascading_update_killswitch_2021")&&i.commitDepth>0&&E6(e);const o=i.currentTree.version,u=CU();i.nextTree={...i.currentTree,version:u,stateID:u,dirtyAtoms:new Set,transactionMetadata:{}},i.graphsByVersion.set(u,jU(uo(i.graphsByVersion.get(o))))}}const O6=Cr.createContext({current:L6}),T_=()=>N6(O6),k6=Cr.createContext(null);function QU(){return N6(k6)}function w3(e,i,o){const u=NU(e,o,o.dirtyAtoms);for(const d of u){const _=i.nodeToComponentSubscriptions.get(d);if(_)for(const[b,[a,E]]of _)E(o)}}function j6(e){const i=e.getState(),o=i.currentTree,u=o.dirtyAtoms;if(u.size){for(const[d,_]of i.nodeTransactionSubscriptions)if(u.has(d))for(const[b,a]of _)a(e);for(const[d,_]of i.transactionSubscriptions)_(e);(!C6().early||i.suspendedComponentResolvers.size>0)&&(w3(e,i,o),i.suspendedComponentResolvers.forEach(d=>d()),i.suspendedComponentResolvers.clear())}i.queuedComponentCallbacks_DEPRECATED.forEach(d=>d(o)),i.queuedComponentCallbacks_DEPRECATED.splice(0,i.queuedComponentCallbacks_DEPRECATED.length)}function HU(e){const i=e.getState();i.commitDepth++;try{const{nextTree:o}=i;if(o==null)return;i.previousTree=i.currentTree,i.currentTree=o,i.nextTree=null,j6(e),i.previousTree!=null?i.graphsByVersion.delete(i.previousTree.version):i3("Ended batch with no previous state, which is unexpected","recoil"),i.previousTree=null,qr("recoil_memory_managament_2020")&&o==null&&E6(e)}finally{i.commitDepth--}}function $U({setNotifyBatcherOfChange:e}){const i=T_(),[,o]=VU([]);return e(()=>o({})),v3(()=>(e(()=>o({})),()=>{e(()=>{})}),[e]),v3(()=>{SB.enqueueExecution("Batcher",()=>{HU(i.current)})}),null}function YU(e,i){const o=S6();return i({set:(u,d)=>{const _=o.currentTree,b=zU(e,_,u.key,d),a=new Set(b.keys()),E=_.nonvalidatedAtoms.clone();for(const j of a)E.delete(j);o.currentTree={..._,dirtyAtoms:DU(_.dirtyAtoms,a),atomValues:PU(_.atomValues,b),nonvalidatedAtoms:E}},setUnvalidatedAtomValues:u=>{u.forEach((d,_)=>{o.currentTree=OU(o.currentTree,_,d)})}}),o}function GU(e){const i=RU(e),o=i.getStore_INTERNAL().getState();return i.retain(),o.nodeCleanupFunctions.forEach(u=>u()),o.nodeCleanupFunctions.clear(),o}let P6=0;function ZU({initializeState_DEPRECATED:e,initializeState:i,store_INTERNAL:o,children:u}){let d;const _=le=>{const fe=d.current.graphsByVersion;if(fe.has(le))return uo(fe.get(le));const ve=kU();return fe.set(le,ve),ve},b=(le,fe)=>{if(fe==null){const{transactionSubscriptions:ve}=ie.current.getState(),Ze=P6++;return ve.set(Ze,le),{release:()=>{ve.delete(Ze)}}}else{const{nodeTransactionSubscriptions:ve}=ie.current.getState();ve.has(fe)||ve.set(fe,new Map);const Ze=P6++;return uo(ve.get(fe)).set(Ze,le),{release:()=>{const me=ve.get(fe);me&&(me.delete(Ze),me.size===0&&ve.delete(fe))}}}},a=le=>{z6(ie.current);for(const fe of Object.keys(le))uo(ie.current.getState().nextTree).transactionMetadata[fe]=le[fe]},E=le=>{z6(ie.current);const fe=uo(d.current.nextTree);let ve;try{x3=!0,ve=le(fe)}finally{x3=!1}ve!==fe&&(d.current.nextTree=ve,C6().early&&w3(ie.current,d.current,ve),uo(j.current)())},j=UU(null),V=BU(le=>{j.current=le},[j]),ie=D6(()=>o??{storeID:A6(),getState:()=>d.current,replaceState:E,getGraph:_,subscribeToTransactions:b,addTransactionMetadata:a});o!=null&&(ie.current=o),d=D6(()=>e!=null?YU(ie.current,e):i!=null?GU(i):S6());const G=FU(()=>_3==null?void 0:_3(d,()=>d.current.currentTree.version),[d]);return v3(()=>{const le=ie.current;for(const fe of new Set(le.getState().knownAtoms))LU(le,fe,"get");return()=>{for(const fe of le.getState().knownAtoms)EU(le,fe)}},[ie]),Cr.createElement(O6.Provider,{value:ie},Cr.createElement(k6.Provider,{value:G},Cr.createElement($U,{setNotifyBatcherOfChange:V}),u))}function WU(e){const{override:i,...o}=e,u=T_();return i===!1&&u.current!==L6?e.children:Cr.createElement(ZU,o)}function qU(){return T_().current.storeID}var gc={RecoilRoot:WU,useStoreRef:T_,useRecoilMutableSource:QU,useRecoilStoreID:qU,notifyComponents_FOR_TESTING:w3,sendEndOfBatchNotifications_FOR_TESTING:j6};function KU(e,i){if(e===i)return!0;if(e.length!==i.length)return!1;for(let o=0,u=e.length;o<u;o++)if(e[o]!==i[o])return!1;return!0}var XU=KU;const{useEffect:JU,useRef:eV}=Cr;function tV(e){const i=eV();return JU(()=>{i.current=e}),i.current}var R6=tV;const{useStoreRef:iV}=gc,{SUSPENSE_TIMEOUT_MS:nV}=Nh,{updateRetainCount:bm}=Nh,{RetentionZone:rV}=y_,{useEffect:oV,useRef:sV}=Cr,{isSSR:B6}=x_;function aV(e){if(qr("recoil_memory_managament_2020"))return lV(e)}function lV(e){const o=(Array.isArray(e)?e:[e]).map(b=>b instanceof rV?b:b.key),u=iV();oV(()=>{if(!qr("recoil_memory_managament_2020"))return;const b=u.current;if(d.current&&!B6)window.clearTimeout(d.current),d.current=null;else for(const a of o)bm(b,a,1);return()=>{for(const a of o)bm(b,a,-1)}},[u,...o]);const d=sV(),_=R6(o);if(!B6&&(_===void 0||!XU(_,o))){const b=u.current;for(const a of o)bm(b,a,1);if(_)for(const a of _)bm(b,a,-1);d.current&&window.clearTimeout(d.current),d.current=window.setTimeout(()=>{d.current=null;for(const a of o)bm(b,a,-1)},nV)}}var b3=aV;function cV(){return"<component name not available>"}var Mm=cV;const{batchUpdates:uV}=v_,{DEFAULT_VALUE:F6}=Ws,{currentRendererSupportsUseSyncExternalStore:hV,reactMode:gf,useMutableSource:dV,useSyncExternalStore:fV}=mm,{useRecoilMutableSource:pV,useStoreRef:bl}=gc,{AbstractRecoilValue:M3,getRecoilValueAsLoadable:Im,setRecoilValue:D_,setUnvalidatedRecoilValue:gV,subscribeToRecoilValue:mf}=wl,{useCallback:qs,useEffect:yf,useMemo:U6,useRef:Tm,useState:I3}=Cr,{setByAddingToSet:mV}=XC,{isSSR:yV}=x_;function T3(e,i,o){if(e.state==="hasValue")return e.contents;throw e.state==="loading"?new Promise(d=>{const _=o.current.getState().suspendedComponentResolvers;_.add(d),yV&&so(e.contents)&&e.contents.finally(()=>{_.delete(d)})}):e.state==="hasError"?e.contents:hr(`Invalid value of loadable atom "${i.key}"`)}function _V(){const e=Mm(),i=bl(),[,o]=I3([]),u=Tm(new Set);u.current=new Set;const d=Tm(new Set),_=Tm(new Map),b=qs(E=>{const j=_.current.get(E);j&&(j.release(),_.current.delete(E))},[_]),a=qs((E,j)=>{_.current.has(j)&&o([])},[]);return yf(()=>{const E=i.current;ym(u.current,d.current).forEach(j=>{if(_.current.has(j))return;const V=mf(E,new M3(j),G=>a(G,j),e);_.current.set(j,V),E.getState().nextTree?E.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{a(E.getState(),j)}):a(E.getState(),j)}),ym(d.current,u.current).forEach(j=>{b(j)}),d.current=u.current}),yf(()=>{const E=_.current;return ym(u.current,new Set(E.keys())).forEach(j=>{const V=mf(i.current,new M3(j),ie=>a(ie,j),e);E.set(j,V)}),()=>E.forEach((j,V)=>b(V))},[e,i,b,a]),U6(()=>{function E(fe){return ve=>{D_(i.current,fe,ve)}}function j(fe){return()=>D_(i.current,fe,F6)}function V(fe){var ve;u.current.has(fe.key)||(u.current=mV(u.current,fe.key));const Ze=i.current.getState();return Im(i.current,fe,gf().early&&(ve=Ze.nextTree)!==null&&ve!==void 0?ve:Ze.currentTree)}function ie(fe){const ve=V(fe);return T3(ve,fe,i)}function G(fe){return[ie(fe),E(fe)]}function le(fe){return[V(fe),E(fe)]}return{getRecoilValue:ie,getRecoilValueLoadable:V,getRecoilState:G,getRecoilStateLoadable:le,getSetRecoilState:E,getResetRecoilState:j}},[u,i])}const vV={current:0};function xV(e){const i=bl(),o=Mm(),u=qs(()=>{var a;const E=i.current,j=E.getState(),V=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return{loadable:Im(E,e,V),key:e.key}},[i,e]),d=qs(a=>{let E;return()=>{var j,V;const ie=a();return(j=E)!==null&&j!==void 0&&j.loadable.is(ie.loadable)&&((V=E)===null||V===void 0?void 0:V.key)===ie.key?E:(E=ie,ie)}},[]),_=U6(()=>d(u),[u,d]),b=qs(a=>{const E=i.current;return mf(E,e,a,o).release},[i,e,o]);return fV(b,_,_).loadable}function wV(e){const i=bl(),o=qs(()=>{var j;const V=i.current,ie=V.getState(),G=gf().early&&(j=ie.nextTree)!==null&&j!==void 0?j:ie.currentTree;return Im(V,e,G)},[i,e]),u=qs(()=>o(),[o]),d=Mm(),_=qs((j,V)=>{const ie=i.current;return mf(ie,e,()=>{if(!qr("recoil_suppress_rerender_in_callback"))return V();const le=o();E.current.is(le)||V(),E.current=le},d).release},[i,e,d,o]),b=pV();if(b==null)throw hr("Recoil hooks must be used in components contained within a <RecoilRoot> component.");const a=dV(b,u,_),E=Tm(a);return yf(()=>{E.current=a}),a}function D3(e){const i=bl(),o=Mm(),u=qs(()=>{var E;const j=i.current,V=j.getState(),ie=gf().early&&(E=V.nextTree)!==null&&E!==void 0?E:V.currentTree;return Im(j,e,ie)},[i,e]),d=qs(()=>({loadable:u(),key:e.key}),[u,e.key]),_=qs(E=>{const j=d();return E.loadable.is(j.loadable)&&E.key===j.key?E:j},[d]);yf(()=>{const E=mf(i.current,e,j=>{a(_)},o);return a(_),E.release},[o,e,i,_]);const[b,a]=I3(d);return b.key!==e.key?d().loadable:b.loadable}function bV(e){const i=bl(),[,o]=I3([]),u=Mm(),d=qs(()=>{var a;const E=i.current,j=E.getState(),V=gf().early&&(a=j.nextTree)!==null&&a!==void 0?a:j.currentTree;return Im(E,e,V)},[i,e]),_=d(),b=Tm(_);return yf(()=>{b.current=_}),yf(()=>{const a=i.current,E=a.getState(),j=mf(a,e,ie=>{var G;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const le=d();(G=b.current)!==null&&G!==void 0&&G.is(le)||o(le),b.current=le},u);if(E.nextTree)a.getState().queuedComponentCallbacks_DEPRECATED.push(()=>{b.current=null,o([])});else{var V;if(!qr("recoil_suppress_rerender_in_callback"))return o([]);const ie=d();(V=b.current)!==null&&V!==void 0&&V.is(ie)||o(ie),b.current=ie}return j.release},[u,d,e,i]),_}function S3(e){return qr("recoil_memory_managament_2020")&&b3(e),{TRANSITION_SUPPORT:D3,SYNC_EXTERNAL_STORE:hV()?xV:D3,MUTABLE_SOURCE:wV,LEGACY:bV}[gf().mode](e)}function V6(e){const i=bl(),o=S3(e);return T3(o,e,i)}function S_(e){const i=bl();return qs(o=>{D_(i.current,e,o)},[i,e])}function MV(e){const i=bl();return qs(()=>{D_(i.current,e,F6)},[i,e])}function IV(e){return[V6(e),S_(e)]}function TV(e){return[S3(e),S_(e)]}function DV(){const e=bl();return(i,o={})=>{uV(()=>{e.current.addTransactionMetadata(o),i.forEach((u,d)=>gV(e.current,new M3(d),u))})}}function Q6(e){return qr("recoil_memory_managament_2020")&&b3(e),D3(e)}function H6(e){const i=bl(),o=Q6(e);return T3(o,e,i)}function SV(e){return[H6(e),S_(e)]}var AV={recoilComponentGetRecoilValueCount_FOR_TESTING:vV,useRecoilInterface:_V,useRecoilState:IV,useRecoilStateLoadable:TV,useRecoilValue:V6,useRecoilValueLoadable:S3,useResetRecoilState:MV,useSetRecoilState:S_,useSetUnvalidatedAtomValues:DV,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:Q6,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:H6,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:SV};function CV(e,i){const o=new Map;for(const[u,d]of e)i(d,u)&&o.set(u,d);return o}var EV=CV;function NV(e,i){const o=new Set;for(const u of e)i(u)&&o.add(u);return o}var LV=NV;function zV(...e){const i=new Map;for(let o=0;o<e.length;o++){const u=e[o].keys();let d;for(;!(d=u.next()).done;)i.set(d.value,e[o].get(d.value))}return i}var OV=zV;const{batchUpdates:kV}=v_,{DEFAULT_VALUE:jV,getNode:$6,nodes:PV}=Ws,{useStoreRef:A3}=gc,{AbstractRecoilValue:RV,setRecoilValueLoadable:BV}=wl,{SUSPENSE_TIMEOUT_MS:FV}=Nh,{cloneSnapshot:A_}=I_,{useCallback:C_,useEffect:Y6,useRef:G6,useState:UV}=Cr,{isSSR:Z6}=x_;function E_(e){const i=A3();Y6(()=>i.current.subscribeToTransactions(e).release,[e,i])}function W6(e){const i=e.atomValues.toMap(),o=g_(EV(i,(u,d)=>{const b=$6(d).persistence_UNSTABLE;return b!=null&&b.type!=="none"&&u.state==="hasValue"}),u=>u.contents);return OV(e.nonvalidatedAtoms.toMap(),o)}function VV(e){E_(C_(i=>{let o=i.getState().previousTree;const u=i.getState().currentTree;o||(o=i.getState().currentTree);const d=W6(u),_=W6(o),b=g_(PV,E=>{var j,V,ie,G;return{persistence_UNSTABLE:{type:(j=(V=E.persistence_UNSTABLE)===null||V===void 0?void 0:V.type)!==null&&j!==void 0?j:"none",backButton:(ie=(G=E.persistence_UNSTABLE)===null||G===void 0?void 0:G.backButton)!==null&&ie!==void 0?ie:!1}}}),a=LV(u.dirtyAtoms,E=>d.has(E)||_.has(E));e({atomValues:d,previousAtomValues:_,atomInfo:b,modifiedAtoms:a,transactionMetadata:{...u.transactionMetadata}})},[e]))}function QV(e){E_(C_(i=>{const o=A_(i,"latest"),u=A_(i,"previous");e({snapshot:o,previousSnapshot:u})},[e]))}function HV(){const e=A3(),[i,o]=UV(()=>A_(e.current)),u=R6(i),d=G6(),_=G6();if(E_(C_(a=>o(A_(a)),[])),Y6(()=>{const a=i.retain();if(d.current&&!Z6){var E;window.clearTimeout(d.current),d.current=null,(E=_.current)===null||E===void 0||E.call(_),_.current=null}return()=>{window.setTimeout(a,10)}},[i]),u!==i&&!Z6){if(d.current){var b;window.clearTimeout(d.current),d.current=null,(b=_.current)===null||b===void 0||b.call(_),_.current=null}_.current=i.retain(),d.current=window.setTimeout(()=>{var a;d.current=null,(a=_.current)===null||a===void 0||a.call(_),_.current=null},FV)}return i}function q6(e,i){var o;const u=e.getState(),d=(o=u.nextTree)!==null&&o!==void 0?o:u.currentTree,_=i.getStore_INTERNAL().getState().currentTree;kV(()=>{const b=new Set;for(const j of[d.atomValues.keys(),_.atomValues.keys()])for(const V of j){var a,E;((a=d.atomValues.get(V))===null||a===void 0?void 0:a.contents)!==((E=_.atomValues.get(V))===null||E===void 0?void 0:E.contents)&&$6(V).shouldRestoreFromSnapshots&&b.add(V)}b.forEach(j=>{BV(e,new RV(j),_.atomValues.has(j)?uo(_.atomValues.get(j)):jV)}),e.replaceState(j=>({...j,stateID:i.getID()}))})}function $V(){const e=A3();return C_(i=>q6(e.current,i),[e])}var K6={useRecoilSnapshot:HV,gotoSnapshot:q6,useGotoRecoilSnapshot:$V,useRecoilTransactionObserver:QV,useTransactionObservation_DEPRECATED:VV,useTransactionSubscription_DEPRECATED:E_};const{peekNodeInfo:YV}=_u,{useStoreRef:GV}=gc;function ZV(){const e=GV();return({key:i})=>YV(e.current,e.current.getState().currentTree,i)}var WV=ZV;const{reactMode:qV}=mm,{RecoilRoot:KV,useStoreRef:XV}=gc,{useMemo:JV}=Cr;function eQ(){qV().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=XV().current;return JV(()=>{function i({children:o}){return Cr.createElement(KV,{store_INTERNAL:e},o)}return i},[e])}var tQ=eQ;const{loadableWithValue:iQ}=gm,{initializeNode:nQ}=_u,{DEFAULT_VALUE:rQ,getNode:oQ}=Ws,{copyTreeState:sQ,getRecoilValueAsLoadable:aQ,invalidateDownstreams:lQ,writeLoadableToTreeState:cQ}=wl;function X6(e){return oQ(e.key).nodeType==="atom"}class uQ{constructor(i,o){ar(this,"_store",void 0),ar(this,"_treeState",void 0),ar(this,"_changes",void 0),ar(this,"get",u=>{if(this._changes.has(u.key))return this._changes.get(u.key);if(!X6(u))throw hr("Reading selectors within atomicUpdate is not supported");const d=aQ(this._store,u,this._treeState);if(d.state==="hasValue")return d.contents;throw d.state==="hasError"?d.contents:hr(`Expected Recoil atom ${u.key} to have a value, but it is in a loading state.`)}),ar(this,"set",(u,d)=>{if(!X6(u))throw hr("Setting selectors within atomicUpdate is not supported");if(typeof d=="function"){const _=this.get(u);this._changes.set(u.key,d(_))}else nQ(this._store,u.key,"set"),this._changes.set(u.key,d)}),ar(this,"reset",u=>{this.set(u,rQ)}),this._store=i,this._treeState=o,this._changes=new Map}newTreeState_INTERNAL(){if(this._changes.size===0)return this._treeState;const i=sQ(this._treeState);for(const[o,u]of this._changes)cQ(i,o,iQ(u));return lQ(this._store,i),i}}function hQ(e){return i=>{e.replaceState(o=>{const u=new uQ(e,o);return i(u),u.newTreeState_INTERNAL()})}}var dQ={atomicUpdater:hQ},fQ=dQ.atomicUpdater,J6=Object.freeze({__proto__:null,atomicUpdater:fQ});function pQ(e,i){if(!e)throw new Error(i)}var gQ=pQ,Dm=gQ;const{atomicUpdater:mQ}=J6,{batchUpdates:yQ}=v_,{DEFAULT_VALUE:_Q}=Ws,{useStoreRef:vQ}=gc,{refreshRecoilValue:xQ,setRecoilValue:eE}=wl,{cloneSnapshot:wQ}=I_,{gotoSnapshot:bQ}=K6,{useCallback:MQ}=Cr;class tE{}const IQ=new tE;function iE(e,i,o,u){let d=IQ,_;if(yQ(()=>{const a="useRecoilCallback() expects a function that returns a function: it accepts a function of the type (RecoilInterface) => (Args) => ReturnType and returns a callback function (Args) => ReturnType, where RecoilInterface is an object {snapshot, set, ...} and Args and ReturnType are the argument and return types of the callback you want to create. Please see the docs at recoiljs.org for details.";if(typeof i!="function")throw hr(a);const E=JC({...u??{},set:(V,ie)=>eE(e,V,ie),reset:V=>eE(e,V,_Q),refresh:V=>xQ(e,V),gotoSnapshot:V=>bQ(e,V),transact_UNSTABLE:V=>mQ(e)(V)},{snapshot:()=>{const V=wQ(e);return _=V.retain(),V}}),j=i(E);if(typeof j!="function")throw hr(a);d=j(...o)}),d instanceof tE&&Dm(!1),so(d))d=d.finally(()=>{var a;(a=_)===null||a===void 0||a()});else{var b;(b=_)===null||b===void 0||b()}return d}function TQ(e,i){const o=vQ();return MQ((...u)=>iE(o.current,e,u),i!=null?[...i,o]:void 0)}var nE={recoilCallback:iE,useRecoilCallback:TQ};const{useStoreRef:DQ}=gc,{refreshRecoilValue:SQ}=wl,{useCallback:AQ}=Cr;function CQ(e){const i=DQ();return AQ(()=>{const o=i.current;SQ(o,e)},[e,i])}var EQ=CQ;const{atomicUpdater:NQ}=J6,{useStoreRef:LQ}=gc,{useMemo:zQ}=Cr;function OQ(e,i){const o=LQ();return zQ(()=>(...u)=>{NQ(o.current)(_=>{e(_)(...u)})},i!=null?[...i,o]:void 0)}var kQ=OQ;class jQ{constructor(i){ar(this,"value",void 0),this.value=i}}var PQ={WrappedValue:jQ},RQ=PQ.WrappedValue,rE=Object.freeze({__proto__:null,WrappedValue:RQ});const{isFastRefreshEnabled:BQ}=mm;class oE extends Error{}class FQ{constructor(i){var o,u,d;ar(this,"_name",void 0),ar(this,"_numLeafs",void 0),ar(this,"_root",void 0),ar(this,"_onHit",void 0),ar(this,"_onSet",void 0),ar(this,"_mapNodeValue",void 0),this._name=i==null?void 0:i.name,this._numLeafs=0,this._root=null,this._onHit=(o=i==null?void 0:i.onHit)!==null&&o!==void 0?o:()=>{},this._onSet=(u=i==null?void 0:i.onSet)!==null&&u!==void 0?u:()=>{},this._mapNodeValue=(d=i==null?void 0:i.mapNodeValue)!==null&&d!==void 0?d:_=>_}size(){return this._numLeafs}root(){return this._root}get(i,o){var u;return(u=this.getLeafNode(i,o))===null||u===void 0?void 0:u.value}getLeafNode(i,o){if(this._root==null)return;let u=this._root;for(;u;){if(o==null||o.onNodeVisit(u),u.type==="leaf")return this._onHit(u),u;const d=this._mapNodeValue(i(u.nodeKey));u=u.branches.get(d)}}set(i,o,u){const d=()=>{var _,b,a,E;let j,V;for(const[Ze,me]of i){var ie,G,le;const te=this._root;if((te==null?void 0:te.type)==="leaf")throw this.invalidCacheError();const ee=j;if(j=ee?ee.branches.get(V):te,j=(ie=j)!==null&&ie!==void 0?ie:{type:"branch",nodeKey:Ze,parent:ee,branches:new Map,branchKey:V},j.type!=="branch"||j.nodeKey!==Ze)throw this.invalidCacheError();ee==null||ee.branches.set(V,j),u==null||(G=u.onNodeVisit)===null||G===void 0||G.call(u,j),V=this._mapNodeValue(me),this._root=(le=this._root)!==null&&le!==void 0?le:j}const fe=j?(_=j)===null||_===void 0?void 0:_.branches.get(V):this._root;if(fe!=null&&(fe.type!=="leaf"||fe.branchKey!==V))throw this.invalidCacheError();const ve={type:"leaf",value:o,parent:j,branchKey:V};(b=j)===null||b===void 0||b.branches.set(V,ve),this._root=(a=this._root)!==null&&a!==void 0?a:ve,this._numLeafs++,this._onSet(ve),u==null||(E=u.onNodeVisit)===null||E===void 0||E.call(u,ve)};try{d()}catch(_){if(_ instanceof oE)this.clear(),d();else throw _}}delete(i){const o=this.root();if(!o)return!1;if(i===o)return this._root=null,this._numLeafs=0,!0;let u=i.parent,d=i.branchKey;for(;u;){var _;if(u.branches.delete(d),u===o)return u.branches.size===0?(this._root=null,this._numLeafs=0):this._numLeafs--,!0;if(u.branches.size>0)break;d=(_=u)===null||_===void 0?void 0:_.branchKey,u=u.parent}for(;u!==o;u=u.parent)if(u==null)return!1;return this._numLeafs--,!0}clear(){this._numLeafs=0,this._root=null}invalidCacheError(){const i=BQ()?"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 i3(i+(this._name!=null?` - ${this._name}`:"")),new oE}}var UQ={TreeCache:FQ},VQ=UQ.TreeCache,sE=Object.freeze({__proto__:null,TreeCache:VQ});class QQ{constructor(i){var o;ar(this,"_maxSize",void 0),ar(this,"_size",void 0),ar(this,"_head",void 0),ar(this,"_tail",void 0),ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._maxSize=i.maxSize,this._size=0,this._head=null,this._tail=null,this._map=new Map,this._keyMapper=(o=i.mapKey)!==null&&o!==void 0?o:u=>u}head(){return this._head}tail(){return this._tail}size(){return this._size}maxSize(){return this._maxSize}has(i){return this._map.has(this._keyMapper(i))}get(i){const o=this._keyMapper(i),u=this._map.get(o);if(u)return this.set(i,u.value),u.value}set(i,o){const u=this._keyMapper(i);this._map.get(u)&&this.delete(i);const _=this.head(),b={key:i,right:_,left:null,value:o};_?_.left=b:this._tail=b,this._map.set(u,b),this._head=b,this._size++,this._maybeDeleteLRU()}_maybeDeleteLRU(){this.size()>this.maxSize()&&this.deleteLru()}deleteLru(){const i=this.tail();i&&this.delete(i.key)}delete(i){const o=this._keyMapper(i);if(!this._size||!this._map.has(o))return;const u=uo(this._map.get(o)),d=u.right,_=u.left;d&&(d.left=u.left),_&&(_.right=u.right),u===this.head()&&(this._head=d),u===this.tail()&&(this._tail=_),this._map.delete(o),this._size--}clear(){this._size=0,this._head=null,this._tail=null,this._map=new Map}}var HQ={LRUCache:QQ},$Q=HQ.LRUCache,aE=Object.freeze({__proto__:null,LRUCache:$Q});const{LRUCache:YQ}=aE,{TreeCache:GQ}=sE;function ZQ({name:e,maxSize:i,mapNodeValue:o=u=>u}){const u=new YQ({maxSize:i}),d=new GQ({name:e,mapNodeValue:o,onHit:_=>{u.set(_,!0)},onSet:_=>{const b=u.tail();u.set(_,!0),b&&d.size()>i&&d.delete(b.key)}});return d}var lE=ZQ;function Xa(e,i,o){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((i==null?void 0:i.allowFunctions)!==!0)throw hr("Attempt to serialize function in a Recoil cache key");return`__FUNCTION(${e.name})__`}if(e===null)return"null";if(typeof e!="object"){var u;return(u=JSON.stringify(e))!==null&&u!==void 0?u:""}if(so(e))return"__PROMISE__";if(Array.isArray(e))return`[${e.map((d,_)=>Xa(d,i,_.toString()))}]`;if(typeof e.toJSON=="function")return Xa(e.toJSON(o),i,o);if(e instanceof Map){const d={};for(const[_,b]of e)d[typeof _=="string"?_:Xa(_,i)]=b;return Xa(d,i,o)}return e instanceof Set?Xa(Array.from(e).sort((d,_)=>Xa(d,i).localeCompare(Xa(_,i))),i,o):Symbol!==void 0&&e[Symbol.iterator]!=null&&typeof e[Symbol.iterator]=="function"?Xa(Array.from(e),i,o):`{${Object.keys(e).filter(d=>e[d]!==void 0).sort().map(d=>`${Xa(d,i)}:${Xa(e[d],i,d)}`).join(",")}}`}function WQ(e,i={allowFunctions:!1}){return Xa(e,i)}var N_=WQ;const{TreeCache:qQ}=sE,L_={equality:"reference",eviction:"keep-all",maxSize:1/0};function KQ({equality:e=L_.equality,eviction:i=L_.eviction,maxSize:o=L_.maxSize}=L_,u){const d=XQ(e);return JQ(i,o,d,u)}function XQ(e){switch(e){case"reference":return i=>i;case"value":return i=>N_(i)}throw hr(`Unrecognized equality policy ${e}`)}function JQ(e,i,o,u){switch(e){case"keep-all":return new qQ({name:u,mapNodeValue:o});case"lru":return lE({name:u,maxSize:uo(i),mapNodeValue:o});case"most-recent":return lE({name:u,maxSize:1,mapNodeValue:o})}throw hr(`Unrecognized eviction policy ${e}`)}var eH=KQ;function tH(e){return()=>null}var iH={startPerfBlock:tH};const{isLoadable:nH,loadableWithError:z_,loadableWithPromise:rH,loadableWithValue:C3}=gm,{WrappedValue:cE}=rE,{getNodeLoadable:O_,peekNodeLoadable:oH,setNodeValue:sH}=_u,{saveDepsToStore:aH}=_m,{DEFAULT_VALUE:lH,getConfigDeletionHandler:cH,getNode:uH,registerNode:uE}=Ws,{isRecoilValue:hH}=pf,{markRecoilValueModified:hE}=wl,{retainedByOptionWithDefault:dH}=Nh,{recoilCallback:fH}=nE,{startPerfBlock:pH}=iH;class dE{}const Sm=new dE,Am=[],k_=new Map,gH=(()=>{let e=0;return()=>e++})();function fE(e){let i=null;const{key:o,get:u,cachePolicy_UNSTABLE:d}=e,_=e.set!=null?e.set:void 0,b=new Set,a=eH(d??{equality:"reference",eviction:"keep-all"},o),E=dH(e.retainedBy_UNSTABLE),j=new Map;let V=0;function ie(){return!qr("recoil_memory_managament_2020")||V>0}function G(T){return T.getState().knownSelectors.add(o),V++,()=>{V--}}function le(){return cH(o)!==void 0&&!ie()}function fe(T,k,F,Q,Z){bt(k,Q,Z),ve(T,F)}function ve(T,k){Jt(T,k)&&St(T),me(k,!0)}function Ze(T,k){Jt(T,k)&&(uo(xt(T)).stateVersions.clear(),me(k,!1))}function me(T,k){const F=k_.get(T);if(F!=null){for(const Q of F)hE(Q,uo(i));k&&k_.delete(T)}}function te(T,k){let F=k_.get(k);F==null&&k_.set(k,F=new Set),F.add(T)}function ee(T,k,F,Q,Z,se){return k.then(he=>{if(!ie())throw St(T),Sm;const ce=C3(he);return fe(T,F,Z,ce,Q),he}).catch(he=>{if(!ie())throw St(T),Sm;if(so(he))return re(T,he,F,Q,Z,se);const ce=z_(he);throw fe(T,F,Z,ce,Q),he})}function re(T,k,F,Q,Z,se){return k.then(he=>{if(!ie())throw St(T),Sm;se.loadingDepKey!=null&&se.loadingDepPromise===k?F.atomValues.set(se.loadingDepKey,C3(he)):T.getState().knownSelectors.forEach(et=>{F.atomValues.delete(et)});const ce=We(T,F);if(ce&&ce.state!=="loading"){if((Jt(T,Z)||xt(T)==null)&&ve(T,Z),ce.state==="hasValue")return ce.contents;throw ce.contents}if(!Jt(T,Z)){const et=$e(T,F);if(et!=null)return et.loadingLoadable.contents}const[xe,He]=we(T,F,Z);if(xe.state!=="loading"&&fe(T,F,Z,xe,He),xe.state==="hasError")throw xe.contents;return xe.contents}).catch(he=>{if(he instanceof dE)throw Sm;if(!ie())throw St(T),Sm;const ce=z_(he);throw fe(T,F,Z,ce,Q),he})}function Me(T,k,F,Q){var Z,se,he,ce;if(Jt(T,Q)||k.version===((Z=T.getState())===null||Z===void 0||(se=Z.currentTree)===null||se===void 0?void 0:se.version)||k.version===((he=T.getState())===null||he===void 0||(ce=he.nextTree)===null||ce===void 0?void 0:ce.version)){var xe,He,et;aH(o,F,T,(xe=(He=T.getState())===null||He===void 0||(et=He.nextTree)===null||et===void 0?void 0:et.version)!==null&&xe!==void 0?xe:T.getState().currentTree.version)}for(const Ue of F)b.add(Ue)}function we(T,k,F){const Q=pH(o);let Z=!0,se=!0;const he=()=>{Q(),se=!1};let ce,xe=!1,He;const et={loadingDepKey:null,loadingDepPromise:null},Ue=new Map;function Xe({key:rt}){const pt=O_(T,k,rt);switch(Ue.set(rt,pt),Z||(Me(T,k,new Set(Ue.keys()),F),Ze(T,F)),pt.state){case"hasValue":return pt.contents;case"hasError":throw pt.contents;case"loading":throw et.loadingDepKey=rt,et.loadingDepPromise=pt.contents,pt.contents}throw hr("Invalid Loadable state")}const Fe=rt=>(...pt)=>{if(se)throw hr("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 i==null&&Dm(!1),fH(T,rt,pt,{node:i})};try{ce=u({get:Xe,getCallback:Fe}),ce=hH(ce)?Xe(ce):ce,nH(ce)&&(ce.state==="hasError"&&(xe=!0),ce=ce.contents),so(ce)?ce=ee(T,ce,k,Ue,F,et).finally(he):he(),ce=ce instanceof cE?ce.value:ce}catch(rt){ce=rt,so(ce)?ce=re(T,ce,k,Ue,F,et).finally(he):(xe=!0,he())}return xe?He=z_(ce):so(ce)?He=rH(ce):He=C3(ce),Z=!1,jt(T,F,Ue),Me(T,k,new Set(Ue.keys()),F),[He,Ue]}function We(T,k){let F=k.atomValues.get(o);if(F!=null)return F;const Q=new Set;try{F=a.get(se=>(typeof se!="string"&&Dm(!1),O_(T,k,se).contents),{onNodeVisit:se=>{se.type==="branch"&&se.nodeKey!==o&&Q.add(se.nodeKey)}})}catch(se){throw hr(`Problem with cache lookup for selector "${o}": ${se.message}`)}if(F){var Z;k.atomValues.set(o,F),Me(T,k,Q,(Z=xt(T))===null||Z===void 0?void 0:Z.executionID)}return F}function ot(T,k){const F=We(T,k);if(F!=null)return St(T),F;const Q=$e(T,k);if(Q!=null){var Z;return((Z=Q.loadingLoadable)===null||Z===void 0?void 0:Z.state)==="loading"&&te(T,Q.executionID),Q.loadingLoadable}const se=gH(),[he,ce]=we(T,k,se);return he.state==="loading"?(ut(T,se,he,ce,k),te(T,se)):(St(T),bt(k,he,ce)),he}function $e(T,k){const F=_6([j.has(T)?[uo(j.get(T))]:[],f_(h3(j,([Z])=>Z!==T),([,Z])=>Z)]);function Q(Z){for(const[se,he]of Z)if(!O_(T,k,se).is(he))return!0;return!1}for(const Z of F){if(Z.stateVersions.get(k.version)||!Q(Z.depValuesDiscoveredSoFarDuringAsyncWork))return Z.stateVersions.set(k.version,!0),Z;Z.stateVersions.set(k.version,!1)}}function xt(T){return j.get(T)}function ut(T,k,F,Q,Z){j.set(T,{depValuesDiscoveredSoFarDuringAsyncWork:Q,executionID:k,loadingLoadable:F,stateVersions:new Map([[Z.version,!0]])})}function jt(T,k,F){if(Jt(T,k)){const Q=xt(T);Q!=null&&(Q.depValuesDiscoveredSoFarDuringAsyncWork=F)}}function St(T){j.delete(T)}function Jt(T,k){var F;return k===((F=xt(T))===null||F===void 0?void 0:F.executionID)}function Tt(T){return Array.from(T.entries()).map(([k,F])=>[k,F.contents])}function bt(T,k,F){T.atomValues.set(o,k);try{a.set(Tt(F),k)}catch(Q){throw hr(`Problem with setting cache for selector "${o}": ${Q.message}`)}}function qt(T){if(Am.includes(o)){const k=`Recoil selector has circular dependencies: ${Am.slice(Am.indexOf(o)).join(" → ")}`;return z_(hr(k))}Am.push(o);try{return T()}finally{Am.pop()}}function Ot(T,k){const F=k.atomValues.get(o);return F??a.get(Q=>{var Z;return typeof Q!="string"&&Dm(!1),(Z=oH(T,k,Q))===null||Z===void 0?void 0:Z.contents})}function Vt(T,k){return qt(()=>ot(T,k))}function W(T){T.atomValues.delete(o)}function ne(T,k){i==null&&Dm(!1);for(const Q of b){var F;const Z=uH(Q);(F=Z.clearCache)===null||F===void 0||F.call(Z,T,k)}b.clear(),W(k),a.clear(),hE(T,i)}return _!=null?i=uE({key:o,nodeType:"selector",peek:Ot,get:Vt,set:(k,F,Q)=>{let Z=!1;const se=new Map;function he({key:et}){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Ue=O_(k,F,et);if(Ue.state==="hasValue")return Ue.contents;if(Ue.state==="loading"){const Xe=`Getting value of asynchronous atom or selector "${et}" in a pending state while setting selector "${o}" is not yet supported.`;throw hr(Xe)}else throw Ue.contents}function ce(et,Ue){if(Z)throw hr("Recoil: Async selector sets are not currently supported.");const Xe=typeof Ue=="function"?Ue(he(et)):Ue;sH(k,F,et.key,Xe).forEach((rt,pt)=>se.set(pt,rt))}function xe(et){ce(et,lH)}const He=_({set:ce,get:he,reset:xe},Q);if(He!==void 0)throw so(He)?hr("Recoil: Async selector sets are not currently supported."):hr("Recoil: selector set should be a void function.");return Z=!0,se},init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E}):i=uE({key:o,nodeType:"selector",peek:Ot,get:Vt,init:G,invalidate:W,clearCache:ne,shouldDeleteConfigOnRelease:le,dangerouslyAllowMutability:e.dangerouslyAllowMutability,shouldRestoreFromSnapshots:!1,retainedBy:E})}fE.value=e=>new cE(e);var _f=fE;const{isLoadable:mH,loadableWithError:E3,loadableWithPromise:N3,loadableWithValue:vf}=gm,{WrappedValue:pE}=rE,{peekNodeInfo:yH}=_u,{DEFAULT_VALUE:Lh,DefaultValue:vu,getConfigDeletionHandler:gE,registerNode:_H,setConfigDeletionHandler:vH}=Ws,{isRecoilValue:xH}=pf,{getRecoilValueAsLoadable:wH,markRecoilValueModified:bH,setRecoilValue:mE,setRecoilValueLoadable:MH}=wl,{retainedByOptionWithDefault:IH}=Nh,Cm=e=>e instanceof pE?e.value:e;function TH(e){const{key:i,persistence_UNSTABLE:o}=e,u=IH(e.retainedBy_UNSTABLE);let d=0;function _(te){return N3(te.then(ee=>(b=vf(ee),ee)).catch(ee=>{throw b=E3(ee),ee}))}let b=so(e.default)?_(e.default):mH(e.default)?e.default.state==="loading"?_(e.default.contents):e.default:vf(Cm(e.default));b.contents;let a;const E=new Map;function j(te){return te}function V(te,ee){const re=ee.then(Me=>{var we,We;return((We=((we=te.getState().nextTree)!==null&&we!==void 0?we:te.getState().currentTree).atomValues.get(i))===null||We===void 0?void 0:We.contents)===re&&mE(te,me,Me),Me}).catch(Me=>{var we,We;throw((We=((we=te.getState().nextTree)!==null&&we!==void 0?we:te.getState().currentTree).atomValues.get(i))===null||We===void 0?void 0:We.contents)===re&&MH(te,me,E3(Me)),Me});return re}function ie(te,ee,re){var Me;d++;const we=()=>{var xt;d--,(xt=E.get(te))===null||xt===void 0||xt.forEach(ut=>ut()),E.delete(te)};if(te.getState().knownAtoms.add(i),b.state==="loading"){const xt=()=>{var ut;((ut=te.getState().nextTree)!==null&&ut!==void 0?ut:te.getState().currentTree).atomValues.has(i)||bH(te,me)};b.contents.finally(xt)}const We=(Me=e.effects)!==null&&Me!==void 0?Me:e.effects_UNSTABLE;if(We!=null){let Jt=function(W){if(ut&&W.key===i){const ne=xt;return ne instanceof vu?G(te,ee):so(ne)?N3(ne.then(T=>T instanceof vu?b.toPromise():T)):vf(ne)}return wH(te,W)},Tt=function(W){return Jt(W).toPromise()},bt=function(W){var ne;const T=yH(te,(ne=te.getState().nextTree)!==null&&ne!==void 0?ne:te.getState().currentTree,W.key);return ut&&W.key===i&&!(xt instanceof vu)?{...T,isSet:!0,loadable:Jt(W)}:T},xt=Lh,ut=!0,jt=!1,St=null;const qt=W=>ne=>{if(ut){const T=Jt(me),k=T.state==="hasValue"?T.contents:Lh;xt=typeof ne=="function"?ne(k):ne,so(xt)&&(xt=xt.then(F=>(St={effect:W,value:F},F)))}else{if(so(ne))throw hr("Setting atoms to async values is not implemented.");typeof ne!="function"&&(St={effect:W,value:Cm(ne)}),mE(te,me,typeof ne=="function"?T=>{const k=Cm(ne(T));return St={effect:W,value:k},k}:Cm(ne))}},Ot=W=>()=>qt(W)(Lh),Vt=W=>ne=>{var T;const{release:k}=te.subscribeToTransactions(F=>{var Q;let{currentTree:Z,previousTree:se}=F.getState();se||(se=Z);const he=(Q=Z.atomValues.get(i))!==null&&Q!==void 0?Q:b;if(he.state==="hasValue"){var ce,xe,He,et;const Ue=he.contents,Xe=(ce=se.atomValues.get(i))!==null&&ce!==void 0?ce:b,Fe=Xe.state==="hasValue"?Xe.contents:Lh;((xe=St)===null||xe===void 0?void 0:xe.effect)!==W||((He=St)===null||He===void 0?void 0:He.value)!==Ue?ne(Ue,Fe,!Z.atomValues.has(i)):((et=St)===null||et===void 0?void 0:et.effect)===W&&(St=null)}},i);E.set(te,[...(T=E.get(te))!==null&&T!==void 0?T:[],k])};for(const W of We)try{const ne=W({node:me,storeID:te.storeID,parentStoreID_UNSTABLE:te.parentStoreID,trigger:re,setSelf:qt(W),resetSelf:Ot(W),onSet:Vt(W),getPromise:Tt,getLoadable:Jt,getInfo_UNSTABLE:bt});if(ne!=null){var ot;E.set(te,[...(ot=E.get(te))!==null&&ot!==void 0?ot:[],ne])}}catch(ne){xt=ne,jt=!0}if(ut=!1,!(xt instanceof vu)){var $e;const W=jt?E3(xt):so(xt)?N3(V(te,xt)):vf(Cm(xt));W.contents,ee.atomValues.set(i,W),($e=te.getState().nextTree)===null||$e===void 0||$e.atomValues.set(i,W)}}return we}function G(te,ee){var re,Me;return(re=(Me=ee.atomValues.get(i))!==null&&Me!==void 0?Me:a)!==null&&re!==void 0?re:b}function le(te,ee){if(ee.atomValues.has(i))return uo(ee.atomValues.get(i));if(ee.nonvalidatedAtoms.has(i)){if(a!=null)return a;if(o==null)return b;const re=ee.nonvalidatedAtoms.get(i),Me=o.validator(re,Lh);return a=Me instanceof vu?b:vf(Me),a}else return b}function fe(){a=void 0}function ve(te,ee,re){if(ee.atomValues.has(i)){const Me=uo(ee.atomValues.get(i));if(Me.state==="hasValue"&&re===Me.contents)return new Map}else if(!ee.nonvalidatedAtoms.has(i)&&re instanceof vu)return new Map;return a=void 0,new Map().set(i,vf(re))}function Ze(){return gE(i)!==void 0&&d<=0}const me=_H({key:i,nodeType:"atom",peek:G,get:le,set:ve,init:ie,invalidate:fe,shouldDeleteConfigOnRelease:Ze,dangerouslyAllowMutability:e.dangerouslyAllowMutability,persistence_UNSTABLE:e.persistence_UNSTABLE?{type:e.persistence_UNSTABLE.type,backButton:e.persistence_UNSTABLE.backButton}:void 0,shouldRestoreFromSnapshots:!0,retainedBy:u});return me}function L3(e){const{...i}=e,o="default"in e?e.default:new Promise(()=>{});return xH(o)?DH({...i,default:o}):TH({...i,default:o})}function DH(e){const i=L3({...e,default:Lh,persistence_UNSTABLE:e.persistence_UNSTABLE===void 0?void 0:{...e.persistence_UNSTABLE,validator:u=>u instanceof vu?u:uo(e.persistence_UNSTABLE).validator(u,Lh)},effects:e.effects,effects_UNSTABLE:e.effects_UNSTABLE}),o=_f({key:`${e.key}__withFallback`,get:({get:u})=>{const d=u(i);return d instanceof vu?e.default:d},set:({set:u},d)=>u(i,d),cachePolicy_UNSTABLE:{eviction:"most-recent"},dangerouslyAllowMutability:e.dangerouslyAllowMutability});return vH(o.key,gE(e.key)),o}L3.value=e=>new pE(e);var yE=L3;class SH{constructor(i){var o;ar(this,"_map",void 0),ar(this,"_keyMapper",void 0),this._map=new Map,this._keyMapper=(o=i==null?void 0:i.mapKey)!==null&&o!==void 0?o:u=>u}size(){return this._map.size}has(i){return this._map.has(this._keyMapper(i))}get(i){return this._map.get(this._keyMapper(i))}set(i,o){this._map.set(this._keyMapper(i),o)}delete(i){this._map.delete(this._keyMapper(i))}clear(){this._map.clear()}}var AH={MapCache:SH},CH=AH.MapCache,EH=Object.freeze({__proto__:null,MapCache:CH});const{LRUCache:_E}=aE,{MapCache:NH}=EH,j_={equality:"reference",eviction:"none",maxSize:1/0};function LH({equality:e=j_.equality,eviction:i=j_.eviction,maxSize:o=j_.maxSize}=j_){const u=zH(e);return OH(i,o,u)}function zH(e){switch(e){case"reference":return i=>i;case"value":return i=>N_(i)}throw hr(`Unrecognized equality policy ${e}`)}function OH(e,i,o){switch(e){case"keep-all":return new NH({mapKey:o});case"lru":return new _E({mapKey:o,maxSize:uo(i)});case"most-recent":return new _E({mapKey:o,maxSize:1})}throw hr(`Unrecognized eviction policy ${e}`)}var vE=LH;const{setConfigDeletionHandler:kH}=Ws;function jH(e){var i,o;const u=vE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _,b;const a=u.get(d);if(a!=null)return a;const{cachePolicyForParams_UNSTABLE:E,...j}=e,V="default"in e?e.default:new Promise(()=>{}),ie=yE({...j,key:`${e.key}__${(_=N_(d))!==null&&_!==void 0?_:"void"}`,default:typeof V=="function"?V(d):V,retainedBy_UNSTABLE:typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE,effects:typeof e.effects=="function"?e.effects(d):typeof e.effects_UNSTABLE=="function"?e.effects_UNSTABLE(d):(b=e.effects)!==null&&b!==void 0?b:e.effects_UNSTABLE});return u.set(d,ie),kH(ie.key,()=>{u.delete(d)}),ie}}var PH=jH;const{setConfigDeletionHandler:RH}=Ws;let BH=0;function FH(e){var i,o;const u=vE({equality:(i=(o=e.cachePolicyForParams_UNSTABLE)===null||o===void 0?void 0:o.equality)!==null&&i!==void 0?i:"value",eviction:"keep-all"});return d=>{var _;let b;try{b=u.get(d)}catch(G){throw hr(`Problem with cache lookup for selector ${e.key}: ${G.message}`)}if(b!=null)return b;const a=`${e.key}__selectorFamily/${(_=N_(d,{allowFunctions:!0}))!==null&&_!==void 0?_:"void"}/${BH++}`,E=G=>e.get(d)(G),j=e.cachePolicy_UNSTABLE,V=typeof e.retainedBy_UNSTABLE=="function"?e.retainedBy_UNSTABLE(d):e.retainedBy_UNSTABLE;let ie;if(e.set!=null){const G=e.set;ie=_f({key:a,get:E,set:(fe,ve)=>G(d)(fe,ve),cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:V})}else ie=_f({key:a,get:E,cachePolicy_UNSTABLE:j,dangerouslyAllowMutability:e.dangerouslyAllowMutability,retainedBy_UNSTABLE:V});return u.set(d,ie),RH(ie.key,()=>{u.delete(d)}),ie}}var xu=FH;const UH=xu({key:"__constant",get:e=>()=>e,cachePolicyForParams_UNSTABLE:{equality:"reference"}});function VH(e){return UH(e)}var QH=VH;const HH=xu({key:"__error",get:e=>()=>{throw hr(e)},cachePolicyForParams_UNSTABLE:{equality:"reference"}});function $H(e){return HH(e)}var YH=$H;function GH(e){return e}var ZH=GH;const{loadableWithError:xE,loadableWithPromise:wE,loadableWithValue:bE}=gm;function P_(e,i){const o=Array(i.length).fill(void 0),u=Array(i.length).fill(void 0);for(const[d,_]of i.entries())try{o[d]=e(_)}catch(b){u[d]=b}return[o,u]}function WH(e){return e!=null&&!so(e)}function R_(e){return Array.isArray(e)?e:Object.getOwnPropertyNames(e).map(i=>e[i])}function z3(e,i){return Array.isArray(e)?i:Object.getOwnPropertyNames(e).reduce((o,u,d)=>({...o,[u]:i[d]}),{})}function xf(e,i,o){const u=o.map((d,_)=>d==null?bE(i[_]):so(d)?wE(d):xE(d));return z3(e,u)}function qH(e,i){return i.map((o,u)=>o===void 0?e[u]:o)}const KH=xu({key:"__waitForNone",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);return xf(e,u,d)},dangerouslyAllowMutability:!0}),XH=xu({key:"__waitForAny",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);return d.some(_=>!so(_))?xf(e,u,d):new Promise(_=>{for(const[b,a]of d.entries())so(a)&&a.then(E=>{u[b]=E,d[b]=void 0,_(xf(e,u,d))}).catch(E=>{d[b]=E,_(xf(e,u,d))})})},dangerouslyAllowMutability:!0}),JH=xu({key:"__waitForAll",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);if(d.every(b=>b==null))return z3(e,u);const _=d.find(WH);if(_!=null)throw _;return Promise.all(d).then(b=>z3(e,qH(u,b)))},dangerouslyAllowMutability:!0}),e$=xu({key:"__waitForAllSettled",get:e=>({get:i})=>{const o=R_(e),[u,d]=P_(i,o);return d.every(_=>!so(_))?xf(e,u,d):Promise.all(d.map((_,b)=>so(_)?_.then(a=>{u[b]=a,d[b]=void 0}).catch(a=>{u[b]=void 0,d[b]=a}):null)).then(()=>xf(e,u,d))},dangerouslyAllowMutability:!0}),t$=xu({key:"__noWait",get:e=>({get:i})=>{try{return _f.value(bE(i(e)))}catch(o){return _f.value(so(o)?wE(o):xE(o))}},dangerouslyAllowMutability:!0});var i$={waitForNone:KH,waitForAny:XH,waitForAll:JH,waitForAllSettled:e$,noWait:t$};const{RecoilLoadable:n$}=gm,{DefaultValue:r$}=Ws,{RecoilRoot:o$,useRecoilStoreID:s$}=gc,{isRecoilValue:a$}=pf,{retentionZone:l$}=y_,{freshSnapshot:c$}=I_,{useRecoilState:u$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:h$,useRecoilStateLoadable:d$,useRecoilValue:f$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:p$,useRecoilValueLoadable:g$,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:m$,useResetRecoilState:y$,useSetRecoilState:_$}=AV,{useGotoRecoilSnapshot:v$,useRecoilSnapshot:x$,useRecoilTransactionObserver:w$}=K6,{useRecoilCallback:b$}=nE,{noWait:M$,waitForAll:I$,waitForAllSettled:T$,waitForAny:D$,waitForNone:S$}=i$;var wf={DefaultValue:r$,isRecoilValue:a$,RecoilLoadable:n$,RecoilEnv:ff,RecoilRoot:o$,useRecoilStoreID:s$,useRecoilBridgeAcrossReactRoots_UNSTABLE:tQ,atom:yE,selector:_f,atomFamily:PH,selectorFamily:xu,constSelector:QH,errorSelector:YH,readOnlySelector:ZH,noWait:M$,waitForNone:S$,waitForAny:D$,waitForAll:I$,waitForAllSettled:T$,useRecoilValue:f$,useRecoilValueLoadable:g$,useRecoilState:u$,useRecoilStateLoadable:d$,useSetRecoilState:_$,useResetRecoilState:y$,useGetRecoilValueInfo_UNSTABLE:WV,useRecoilRefresher_UNSTABLE:EQ,useRecoilValueLoadable_TRANSITION_SUPPORT_UNSTABLE:m$,useRecoilValue_TRANSITION_SUPPORT_UNSTABLE:p$,useRecoilState_TRANSITION_SUPPORT_UNSTABLE:h$,useRecoilCallback:b$,useRecoilTransaction_UNSTABLE:kQ,useGotoRecoilSnapshot:v$,useRecoilSnapshot:x$,useRecoilTransactionObserver_UNSTABLE:w$,snapshot_UNSTABLE:c$,useRetain:b3,retentionZone:l$},A$=wf.RecoilRoot,kn=wf.atom,B_=wf.selector,Ei=wf.useRecoilValue,sn=wf.useRecoilState,Mo=wf.useResetRecoilState;const C$=(e,i)=>{const o=e[i];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((u,d)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(d.bind(null,new Error("Unknown variable dynamic import: "+i)))})},E$="mi-components";let F_,ME,la=!1,O3=!1;const mc=(e,i="")=>()=>{},N$=(e,i)=>()=>{},L$="{visibility:hidden}.hydrated{visibility:inherit}",IE="http://www.w3.org/1999/xlink",TE={},z$="http://www.w3.org/2000/svg",O$="http://www.w3.org/1999/xhtml",k$=e=>e!=null,k3=e=>(e=typeof e,e==="object"||e==="function");function DE(e){var i,o,u;return(u=(o=(i=e.head)===null||i===void 0?void 0:i.querySelector('meta[name="csp-nonce"]'))===null||o===void 0?void 0:o.getAttribute("content"))!==null&&u!==void 0?u:void 0}const Je=(e,i,...o)=>{let u=null,d=null,_=!1,b=!1;const a=[],E=V=>{for(let ie=0;ie<V.length;ie++)u=V[ie],Array.isArray(u)?E(u):u!=null&&typeof u!="boolean"&&((_=typeof e!="function"&&!k3(u))&&(u=String(u)),_&&b?a[a.length-1].$text$+=u:a.push(_?j3(null,u):u),b=_)};if(E(o),i){i.key&&(d=i.key);{const V=i.className||i.class;V&&(i.class=typeof V!="object"?V:Object.keys(V).filter(ie=>V[ie]).join(" "))}}const j=j3(e,null);return j.$attrs$=i,a.length>0&&(j.$children$=a),j.$key$=d,j},j3=(e,i)=>{const o={$flags$:0,$tag$:e,$text$:i,$elm$:null,$children$:null};return o.$attrs$=null,o.$key$=null,o},ko={},j$=e=>e&&e.$tag$===ko,P$=(e,i)=>e!=null&&!k3(e)?i&4?e==="false"?!1:e===""||!!e:i&2?parseFloat(e):i&1?String(e):e:e,yc=e=>wu(e).$hostElement$,$r=(e,i,o)=>{const u=yc(e);return{emit:d=>SE(u,i,{bubbles:!!(o&4),composed:!!(o&2),cancelable:!!(o&1),detail:d})}},SE=(e,i,o)=>{const u=Ko.ce(i,o);return e.dispatchEvent(u),u},AE=new WeakMap,R$=(e,i,o)=>{let u=H_.get(e);oY&&o?(u=u||new CSSStyleSheet,typeof u=="string"?u=i:u.replaceSync(i)):u=i,H_.set(e,u)},B$=(e,i,o,u)=>{var d;let _=CE(i);const b=H_.get(_);if(e=e.nodeType===11?e:Ml,b)if(typeof b=="string"){e=e.head||e;let a=AE.get(e),E;if(a||AE.set(e,a=new Set),!a.has(_)){{E=Ml.createElement("style"),E.innerHTML=b;const j=(d=Ko.$nonce$)!==null&&d!==void 0?d:DE(Ml);j!=null&&E.setAttribute("nonce",j),e.insertBefore(E,e.querySelector("link"))}a&&a.add(_)}}else e.adoptedStyleSheets.includes(b)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,b]);return _},F$=e=>{const i=e.$cmpMeta$,o=e.$hostElement$,u=i.$flags$,d=mc("attachStyles",i.$tagName$),_=B$(o.shadowRoot?o.shadowRoot:o.getRootNode(),i);u&10&&(o["s-sc"]=_,o.classList.add(_+"-h")),d()},CE=(e,i)=>"sc-"+e.$tagName$,EE=(e,i,o,u,d,_)=>{if(o!==u){let b=QE(e,i),a=i.toLowerCase();if(i==="class"){const E=e.classList,j=NE(o),V=NE(u);E.remove(...j.filter(ie=>ie&&!V.includes(ie))),E.add(...V.filter(ie=>ie&&!j.includes(ie)))}else if(i==="style"){for(const E in o)(!u||u[E]==null)&&(E.includes("-")?e.style.removeProperty(E):e.style[E]="");for(const E in u)(!o||u[E]!==o[E])&&(E.includes("-")?e.style.setProperty(E,u[E]):e.style[E]=u[E])}else if(i!=="key")if(i==="ref")u&&u(e);else if(!b&&i[0]==="o"&&i[1]==="n")i[2]==="-"?i=i.slice(3):QE(Em,a)?i=a.slice(2):i=a[2]+i.slice(3),o&&Ko.rel(e,i,o,!1),u&&Ko.ael(e,i,u,!1);else{const E=k3(u);if((b||E&&u!==null)&&!d)try{if(e.tagName.includes("-"))e[i]=u;else{const V=u??"";i==="list"?b=!1:(o==null||e[i]!=V)&&(e[i]=V)}}catch{}let j=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(i=a,j=!0),u==null||u===!1?(u!==!1||e.getAttribute(i)==="")&&(j?e.removeAttributeNS(IE,i):e.removeAttribute(i)):(!b||_&4||d)&&!E&&(u=u===!0?"":u,j?e.setAttributeNS(IE,i,u):e.setAttribute(i,u))}}},U$=/\s/,NE=e=>e?e.split(U$):[],LE=(e,i,o,u)=>{const d=i.$elm$.nodeType===11&&i.$elm$.host?i.$elm$.host:i.$elm$,_=e&&e.$attrs$||TE,b=i.$attrs$||TE;for(u in _)u in b||EE(d,u,_[u],void 0,o,i.$flags$);for(u in b)EE(d,u,_[u],b[u],o,i.$flags$)},U_=(e,i,o,u)=>{const d=i.$children$[o];let _=0,b,a;if(d.$text$!==null)b=d.$elm$=Ml.createTextNode(d.$text$);else{if(la||(la=d.$tag$==="svg"),b=d.$elm$=Ml.createElementNS(la?z$:O$,d.$tag$),la&&d.$tag$==="foreignObject"&&(la=!1),LE(null,d,la),k$(F_)&&b["s-si"]!==F_&&b.classList.add(b["s-si"]=F_),d.$children$)for(_=0;_<d.$children$.length;++_)a=U_(e,d,_),a&&b.appendChild(a);d.$tag$==="svg"?la=!1:b.tagName==="foreignObject"&&(la=!0)}return b},zE=(e,i,o,u,d,_)=>{let b=e,a;for(b.shadowRoot&&b.tagName===ME&&(b=b.shadowRoot);d<=_;++d)u[d]&&(a=U_(null,o,d),a&&(u[d].$elm$=a,b.insertBefore(a,i)))},OE=(e,i,o,u,d)=>{for(;i<=o;++i)(u=e[i])&&(d=u.$elm$,kE(u),d.remove())},V$=(e,i,o,u)=>{let d=0,_=0,b=0,a=0,E=i.length-1,j=i[0],V=i[E],ie=u.length-1,G=u[0],le=u[ie],fe,ve;for(;d<=E&&_<=ie;)if(j==null)j=i[++d];else if(V==null)V=i[--E];else if(G==null)G=u[++_];else if(le==null)le=u[--ie];else if(V_(j,G))bf(j,G),j=i[++d],G=u[++_];else if(V_(V,le))bf(V,le),V=i[--E],le=u[--ie];else if(V_(j,le))bf(j,le),e.insertBefore(j.$elm$,V.$elm$.nextSibling),j=i[++d],le=u[--ie];else if(V_(V,G))bf(V,G),e.insertBefore(V.$elm$,j.$elm$),V=i[--E],G=u[++_];else{for(b=-1,a=d;a<=E;++a)if(i[a]&&i[a].$key$!==null&&i[a].$key$===G.$key$){b=a;break}b>=0?(ve=i[b],ve.$tag$!==G.$tag$?fe=U_(i&&i[_],o,b):(bf(ve,G),i[b]=void 0,fe=ve.$elm$),G=u[++_]):(fe=U_(i&&i[_],o,_),G=u[++_]),fe&&j.$elm$.parentNode.insertBefore(fe,j.$elm$)}d>E?zE(e,u[ie+1]==null?null:u[ie+1].$elm$,o,u,_,ie):_>ie&&OE(i,d,E)},V_=(e,i)=>e.$tag$===i.$tag$?e.$key$===i.$key$:!1,bf=(e,i)=>{const o=i.$elm$=e.$elm$,u=e.$children$,d=i.$children$,_=i.$tag$,b=i.$text$;b===null?(la=_==="svg"?!0:_==="foreignObject"?!1:la,_==="slot"||LE(e,i,la),u!==null&&d!==null?V$(o,u,i,d):d!==null?(e.$text$!==null&&(o.textContent=""),zE(o,null,i,d,0,d.length-1)):u!==null&&OE(u,0,u.length-1),la&&_==="svg"&&(la=!1)):e.$text$!==b&&(o.data=b)},kE=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(kE)},Q$=(e,i)=>{const o=e.$hostElement$,u=e.$cmpMeta$,d=e.$vnode$||j3(null,null),_=j$(i)?i:Je(null,null,i);ME=o.tagName,u.$attrsToReflect$&&(_.$attrs$=_.$attrs$||{},u.$attrsToReflect$.map(([b,a])=>_.$attrs$[a]=o[b])),_.$tag$=null,_.$flags$|=4,e.$vnode$=_,_.$elm$=d.$elm$=o.shadowRoot||o,F_=o["s-sc"],bf(d,_)},jE=(e,i)=>{i&&!e.$onRenderResolve$&&i["s-p"]&&i["s-p"].push(new Promise(o=>e.$onRenderResolve$=o))},Q_=(e,i)=>{if(e.$flags$|=16,e.$flags$&4){e.$flags$|=512;return}return jE(e,e.$ancestorComponent$),aY(()=>H$(e,i))},H$=(e,i)=>{const o=mc("scheduleUpdate",e.$cmpMeta$.$tagName$),u=e.$lazyInstance$;let d;return i&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([_,b])=>zh(u,_,b)),e.$queuedListeners$=null),d=zh(u,"componentWillLoad")),d=RE(d,()=>zh(u,"componentWillRender")),o(),RE(d,()=>$$(e,u,i))},$$=async(e,i,o)=>{const u=e.$hostElement$,d=mc("update",e.$cmpMeta$.$tagName$),_=u["s-rc"];o&&F$(e);const b=mc("render",e.$cmpMeta$.$tagName$);Y$(e,i),_&&(_.map(a=>a()),u["s-rc"]=void 0),b(),d();{const a=u["s-p"],E=()=>G$(e);a.length===0?E():(Promise.all(a).then(E),e.$flags$|=4,a.length=0)}},Y$=(e,i,o)=>{try{i=i.render&&i.render(),e.$flags$&=-17,e.$flags$|=2,Q$(e,i)}catch(u){Oh(u,e.$hostElement$)}return null},G$=e=>{const i=e.$cmpMeta$.$tagName$,o=e.$hostElement$,u=mc("postUpdate",i),d=e.$lazyInstance$,_=e.$ancestorComponent$;zh(d,"componentDidRender"),e.$flags$&64?u():(e.$flags$|=64,BE(o),zh(d,"componentDidLoad"),u(),e.$onReadyResolve$(o),_||PE()),e.$onInstanceResolve$(o),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&F3(()=>Q_(e,!1)),e.$flags$&=-517},P3=e=>{{const i=wu(e),o=i.$hostElement$.isConnected;return o&&(i.$flags$&18)===2&&Q_(i,!1),o}},PE=e=>{BE(Ml.documentElement),F3(()=>SE(Em,"appload",{detail:{namespace:E$}}))},zh=(e,i,o)=>{if(e&&e[i])try{return e[i](o)}catch(u){Oh(u)}},RE=(e,i)=>e&&e.then?e.then(i):i(),BE=e=>e.classList.add("hydrated"),Z$=(e,i)=>wu(e).$instanceValues$.get(i),W$=(e,i,o,u)=>{const d=wu(e),_=d.$hostElement$,b=d.$instanceValues$.get(i),a=d.$flags$,E=d.$lazyInstance$;o=P$(o,u.$members$[i][0]);const j=Number.isNaN(b)&&Number.isNaN(o),V=o!==b&&!j;if((!(a&8)||b===void 0)&&V&&(d.$instanceValues$.set(i,o),E)){if(u.$watchers$&&a&128){const ie=u.$watchers$[i];ie&&ie.map(G=>{try{E[G](o,b,i)}catch(le){Oh(le,_)}})}(a&18)===2&&Q_(d,!1)}},FE=(e,i,o)=>{if(i.$members$){e.watchers&&(i.$watchers$=e.watchers);const u=Object.entries(i.$members$),d=e.prototype;if(u.map(([_,[b]])=>{b&31||o&2&&b&32?Object.defineProperty(d,_,{get(){return Z$(this,_)},set(a){W$(this,_,a,i)},configurable:!0,enumerable:!0}):o&1&&b&64&&Object.defineProperty(d,_,{value(...a){const E=wu(this);return E.$onInstancePromise$.then(()=>E.$lazyInstance$[_](...a))}})}),o&1){const _=new Map;d.attributeChangedCallback=function(b,a,E){Ko.jmp(()=>{const j=_.get(b);if(this.hasOwnProperty(j))E=this[j],delete this[j];else if(d.hasOwnProperty(j)&&typeof this[j]=="number"&&this[j]==E)return;this[j]=E===null&&typeof this[j]=="boolean"?!1:E})},e.observedAttributes=u.filter(([b,a])=>a[0]&15).map(([b,a])=>{const E=a[1]||b;return _.set(E,b),a[0]&512&&i.$attrsToReflect$.push([b,E]),E})}}return e},q$=async(e,i,o,u,d)=>{if(!(i.$flags$&32)){{if(i.$flags$|=32,d=rY(o),d.then){const E=N$();d=await d,E()}d.isProxied||(o.$watchers$=d.watchers,FE(d,o,2),d.isProxied=!0);const a=mc("createInstance",o.$tagName$);i.$flags$|=8;try{new d(i)}catch(E){Oh(E)}i.$flags$&=-9,i.$flags$|=128,a(),UE(i.$lazyInstance$)}if(d.style){let a=d.style;const E=CE(o);if(!H_.has(E)){const j=mc("registerStyles",o.$tagName$);R$(E,a,!!(o.$flags$&1)),j()}}}const _=i.$ancestorComponent$,b=()=>Q_(i,!0);_&&_["s-rc"]?_["s-rc"].push(b):b()},UE=e=>{zh(e,"connectedCallback")},K$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$cmpMeta$,u=mc("connectedCallback",o.$tagName$);if(i.$flags$&1)VE(e,i,o.$listeners$),UE(i.$lazyInstance$);else{i.$flags$|=1;{let d=e;for(;d=d.parentNode||d.host;)if(d["s-p"]){jE(i,i.$ancestorComponent$=d);break}}o.$members$&&Object.entries(o.$members$).map(([d,[_]])=>{if(_&31&&e.hasOwnProperty(d)){const b=e[d];delete e[d],e[d]=b}}),q$(e,i,o)}u()}},X$=e=>{if(!(Ko.$flags$&1)){const i=wu(e),o=i.$lazyInstance$;i.$rmListeners$&&(i.$rmListeners$.map(u=>u()),i.$rmListeners$=void 0),zh(o,"disconnectedCallback")}},J$=(e,i={})=>{var o;const u=mc(),d=[],_=i.exclude||[],b=Em.customElements,a=Ml.head,E=a.querySelector("meta[charset]"),j=Ml.createElement("style"),V=[];let ie,G=!0;Object.assign(Ko,i),Ko.$resourcesUrl$=new URL(i.resourcesUrl||"./",Ml.baseURI).href,e.map(le=>{le[1].map(fe=>{const ve={$flags$:fe[0],$tagName$:fe[1],$members$:fe[2],$listeners$:fe[3]};ve.$members$=fe[2],ve.$listeners$=fe[3],ve.$attrsToReflect$=[],ve.$watchers$={};const Ze=ve.$tagName$,me=class extends HTMLElement{constructor(te){super(te),te=this,nY(te,ve),ve.$flags$&1&&te.attachShadow({mode:"open"})}connectedCallback(){ie&&(clearTimeout(ie),ie=null),G?V.push(this):Ko.jmp(()=>K$(this))}disconnectedCallback(){Ko.jmp(()=>X$(this))}componentOnReady(){return wu(this).$onReadyPromise$}};ve.$lazyBundleId$=le[0],!_.includes(Ze)&&!b.get(Ze)&&(d.push(Ze),b.define(Ze,FE(me,ve,1)))})});{j.innerHTML=d+L$,j.setAttribute("data-styles","");const le=(o=Ko.$nonce$)!==null&&o!==void 0?o:DE(Ml);le!=null&&j.setAttribute("nonce",le),a.insertBefore(j,E?E.nextSibling:a.firstChild)}G=!1,V.length?V.map(le=>le.connectedCallback()):Ko.jmp(()=>ie=setTimeout(PE,30)),u()},VE=(e,i,o,u)=>{o&&o.map(([d,_,b])=>{const a=tY(e,d),E=eY(i,b),j=iY(d);Ko.ael(a,_,E,j),(i.$rmListeners$=i.$rmListeners$||[]).push(()=>Ko.rel(a,_,E,j))})},eY=(e,i)=>o=>{try{e.$flags$&256?e.$lazyInstance$[i](o):(e.$queuedListeners$=e.$queuedListeners$||[]).push([i,o])}catch(u){Oh(u)}},tY=(e,i)=>i&8?Em:e,iY=e=>(e&2)!==0,R3=new WeakMap,wu=e=>R3.get(e),Ir=(e,i)=>R3.set(i.$lazyInstance$=e,i),nY=(e,i)=>{const o={$flags$:0,$hostElement$:e,$cmpMeta$:i,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise(u=>o.$onInstanceResolve$=u),o.$onReadyPromise$=new Promise(u=>o.$onReadyResolve$=u),e["s-p"]=[],e["s-rc"]=[],VE(e,o,i.$listeners$),R3.set(e,o)},QE=(e,i)=>i in e,Oh=(e,i)=>(0,console.error)(e,i),HE=new Map,rY=(e,i,o)=>{const u=e.$tagName$.replace(/-/g,"_"),d=e.$lazyBundleId$,_=HE.get(d);if(_)return _[u];/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return C$(Object.assign({"./combo-box-item.entry.js":()=>Promise.resolve().then(()=>pq),"./mi-card_2.entry.js":()=>Promise.resolve().then(()=>yq),"./mi-chip.entry.js":()=>Promise.resolve().then(()=>vq),"./mi-column.entry.js":()=>Promise.resolve().then(()=>xq),"./mi-combo-box.entry.js":()=>Promise.resolve().then(()=>Mq),"./mi-data-table.entry.js":()=>Promise.resolve().then(()=>Nq),"./mi-distance_2.entry.js":()=>Promise.resolve().then(()=>Oq),"./mi-dropdown-item.entry.js":()=>Promise.resolve().then(()=>kq),"./mi-dropdown.entry.js":()=>Promise.resolve().then(()=>Qq),"./mi-floor-selector.entry.js":()=>Promise.resolve().then(()=>$q),"./mi-keyboard.entry.js":()=>Promise.resolve().then(()=>nK),"./mi-list-item-category.entry.js":()=>Promise.resolve().then(()=>oK),"./mi-list-item-location.entry.js":()=>Promise.resolve().then(()=>aK),"./mi-list.entry.js":()=>Promise.resolve().then(()=>cK),"./mi-location-booking.entry.js":()=>Promise.resolve().then(()=>Oie),"./mi-location-info.entry.js":()=>Promise.resolve().then(()=>jie),"./mi-map-googlemaps.entry.js":()=>Promise.resolve().then(()=>Qie),"./mi-map-mapbox.entry.js":()=>Promise.resolve().then(()=>Gie),"./mi-metric-card.entry.js":()=>Promise.resolve().then(()=>Wie),"./mi-my-position.entry.js":()=>Promise.resolve().then(()=>une),"./mi-notification.entry.js":()=>Promise.resolve().then(()=>dne),"./mi-route-instructions-heading.entry.js":()=>Promise.resolve().then(()=>pne),"./mi-route-instructions-maneuver-legacy.entry.js":()=>Promise.resolve().then(()=>mne),"./mi-route-instructions-maneuver.entry.js":()=>Promise.resolve().then(()=>_ne),"./mi-route-instructions-step-legacy.entry.js":()=>Promise.resolve().then(()=>xne),"./mi-route-instructions-step.entry.js":()=>Promise.resolve().then(()=>bne),"./mi-route-instructions.entry.js":()=>Promise.resolve().then(()=>Ine),"./mi-scroll-buttons.entry.js":()=>Promise.resolve().then(()=>Dne),"./mi-search.entry.js":()=>Promise.resolve().then(()=>Nne),"./mi-share-sms.entry.js":()=>Promise.resolve().then(()=>zne),"./mi-step-switcher.entry.js":()=>Promise.resolve().then(()=>kne),"./mi-tab-panel.entry.js":()=>Promise.resolve().then(()=>Pne),"./mi-tab.entry.js":()=>Promise.resolve().then(()=>Rne),"./mi-tabs.entry.js":()=>Promise.resolve().then(()=>Fne),"./mi-time.entry.js":()=>Promise.resolve().then(()=>Une)}),`./${d}.entry.js`).then(b=>(HE.set(d,b),b[u]),Oh)},H_=new Map,Em=typeof window<"u"?window:{},Ml=Em.document||{head:{}},Ko={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,i,o,u)=>e.addEventListener(i,o,u),rel:(e,i,o,u)=>e.removeEventListener(i,o,u),ce:(e,i)=>new CustomEvent(e,i)},$E=e=>Promise.resolve(e),oY=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})(),YE=[],GE=[],sY=(e,i)=>o=>{e.push(o),O3||(O3=!0,i&&Ko.$flags$&4?F3(B3):Ko.raf(B3))},ZE=e=>{for(let i=0;i<e.length;i++)try{e[i](performance.now())}catch(o){Oh(o)}e.length=0},B3=()=>{ZE(YE),ZE(GE),(O3=YE.length>0)&&Ko.raf(B3)},F3=e=>$E().then(e),aY=sY(GE,!0),lY=()=>$E(),WE=(e,i)=>typeof window>"u"?Promise.resolve():lY().then(()=>J$([["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"]}]]],["mi-time",[[1,"mi-time",{seconds:[2],translations:[1],translationsData:[32]}]]]],i)),cY={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,i){console&&console[e]&&console[e].apply(console,i)}};class $_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(i,o)}init(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=o.prefix||"i18next:",this.logger=i||cY,this.options=o,this.debug=o.debug}log(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"log","",!0)}warn(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","",!0)}error(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"error","")}deprecate(){for(var i=arguments.length,o=new Array(i),u=0;u<i;u++)o[u]=arguments[u];return this.forward(o,"warn","WARNING DEPRECATED: ",!0)}forward(i,o,u,d){return d&&!this.debug?null:(typeof i[0]=="string"&&(i[0]=`${u}${this.prefix} ${i[0]}`),this.logger[o](i))}create(i){return new $_(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new $_(this.logger,i)}}var Il=new $_;class Y_{constructor(){this.observers={}}on(i,o){return i.split(" ").forEach(u=>{this.observers[u]=this.observers[u]||[],this.observers[u].push(o)}),this}off(i,o){if(this.observers[i]){if(!o){delete this.observers[i];return}this.observers[i]=this.observers[i].filter(u=>u!==o)}}emit(i){for(var o=arguments.length,u=new Array(o>1?o-1:0),d=1;d<o;d++)u[d-1]=arguments[d];this.observers[i]&&[].concat(this.observers[i]).forEach(b=>{b(...u)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(b=>{b.apply(b,[i,...u])})}}function Nm(){let e,i;const o=new Promise((u,d)=>{e=u,i=d});return o.resolve=e,o.reject=i,o}function qE(e){return e==null?"":""+e}function uY(e,i,o){e.forEach(u=>{i[u]&&(o[u]=i[u])})}function U3(e,i,o){function u(b){return b&&b.indexOf("###")>-1?b.replace(/###/g,"."):b}function d(){return!e||typeof e=="string"}const _=typeof i!="string"?[].concat(i):i.split(".");for(;_.length>1;){if(d())return{};const b=u(_.shift());!e[b]&&o&&(e[b]=new o),Object.prototype.hasOwnProperty.call(e,b)?e=e[b]:e={}}return d()?{}:{obj:e,k:u(_.shift())}}function KE(e,i,o){const{obj:u,k:d}=U3(e,i,Object);u[d]=o}function hY(e,i,o,u){const{obj:d,k:_}=U3(e,i,Object);d[_]=d[_]||[],u&&(d[_]=d[_].concat(o)),u||d[_].push(o)}function G_(e,i){const{obj:o,k:u}=U3(e,i);if(o)return o[u]}function dY(e,i,o){const u=G_(e,o);return u!==void 0?u:G_(i,o)}function XE(e,i,o){for(const u in i)u!=="__proto__"&&u!=="constructor"&&(u in e?typeof e[u]=="string"||e[u]instanceof String||typeof i[u]=="string"||i[u]instanceof String?o&&(e[u]=i[u]):XE(e[u],i[u],o):e[u]=i[u]);return e}function Mf(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var fY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function pY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,i=>fY[i]):e}const gY=[" ",",","?","!",";"];function mY(e,i,o){i=i||"",o=o||"";const u=gY.filter(b=>i.indexOf(b)<0&&o.indexOf(b)<0);if(u.length===0)return!0;const d=new RegExp(`(${u.map(b=>b==="?"?"\\?":b).join("|")})`);let _=!d.test(e);if(!_){const b=e.indexOf(o);b>0&&!d.test(e.substring(0,b))&&(_=!0)}return _}function Z_(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[i])return e[i];const u=i.split(o);let d=e;for(let _=0;_<u.length;++_){if(!d||typeof d[u[_]]=="string"&&_+1<u.length)return;if(d[u[_]]===void 0){let b=2,a=u.slice(_,_+b).join(o),E=d[a];for(;E===void 0&&u.length>_+b;)b++,a=u.slice(_,_+b).join(o),E=d[a];if(E===void 0)return;if(E===null)return null;if(i.endsWith(a)){if(typeof E=="string")return E;if(a&&typeof E[a]=="string")return E[a]}const j=u.slice(_+b).join(o);return j?Z_(E,j,o):void 0}d=d[u[_]]}return d}function W_(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class JE extends Y_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=i||{},this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const o=this.options.ns.indexOf(i);o>-1&&this.options.ns.splice(o,1)}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const _=d.keySeparator!==void 0?d.keySeparator:this.options.keySeparator,b=d.ignoreJSONStructure!==void 0?d.ignoreJSONStructure:this.options.ignoreJSONStructure;let a=[i,o];u&&typeof u!="string"&&(a=a.concat(u)),u&&typeof u=="string"&&(a=a.concat(_?u.split(_):u)),i.indexOf(".")>-1&&(a=i.split("."));const E=G_(this.data,a);return E||!b||typeof u!="string"?E:Z_(this.data&&this.data[i]&&this.data[i][o],u,_)}addResource(i,o,u,d){let _=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const b=_.keySeparator!==void 0?_.keySeparator:this.options.keySeparator;let a=[i,o];u&&(a=a.concat(b?u.split(b):u)),i.indexOf(".")>-1&&(a=i.split("."),d=o,o=a[1]),this.addNamespaces(o),KE(this.data,a,d),_.silent||this.emit("added",i,o,u,d)}addResources(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const _ in u)(typeof u[_]=="string"||Object.prototype.toString.apply(u[_])==="[object Array]")&&this.addResource(i,o,_,u[_],{silent:!0});d.silent||this.emit("added",i,o,u)}addResourceBundle(i,o,u,d,_){let b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},a=[i,o];i.indexOf(".")>-1&&(a=i.split("."),d=u,u=o,o=a[1]),this.addNamespaces(o);let E=G_(this.data,a)||{};d?XE(E,u,_):E={...E,...u},KE(this.data,a,E),b.silent||this.emit("added",i,o,u)}removeResourceBundle(i,o){this.hasResourceBundle(i,o)&&delete this.data[i][o],this.removeNamespaces(o),this.emit("removed",i,o)}hasResourceBundle(i,o){return this.getResource(i,o)!==void 0}getResourceBundle(i,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(i,o)}:this.getResource(i,o)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const o=this.getDataByLanguage(i);return!!(o&&Object.keys(o)||[]).find(d=>o[d]&&Object.keys(o[d]).length>0)}toJSON(){return this.data}}var eN={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,i,o,u,d){return e.forEach(_=>{this.processors[_]&&(i=this.processors[_].process(i,o,u,d))}),i}};const tN={};class q_ extends Y_{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),uY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=o,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Il.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(i==null)return!1;const u=this.resolve(i,o);return u&&u.res!==void 0}extractFromKey(i,o){let u=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;u===void 0&&(u=":");const d=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator;let _=o.ns||this.options.defaultNS||[];const b=u&&i.indexOf(u)>-1,a=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!mY(i,u,d);if(b&&!a){const E=i.match(this.interpolator.nestingRegexp);if(E&&E.length>0)return{key:i,namespaces:_};const j=i.split(u);(u!==d||u===d&&this.options.ns.indexOf(j[0])>-1)&&(_=j.shift()),i=j.join(d)}return typeof _=="string"&&(_=[_]),{key:i,namespaces:_}}translate(i,o,u){if(typeof o!="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),typeof o=="object"&&(o={...o}),o||(o={}),i==null)return"";Array.isArray(i)||(i=[String(i)]);const d=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,_=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,{key:b,namespaces:a}=this.extractFromKey(i[i.length-1],o),E=a[a.length-1],j=o.lng||this.language,V=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(j&&j.toLowerCase()==="cimode"){if(V){const re=o.nsSeparator||this.options.nsSeparator;return d?{res:`${E}${re}${b}`,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:`${E}${re}${b}`}return d?{res:b,usedKey:b,exactUsedKey:b,usedLng:j,usedNS:E,usedParams:this.getUsedParamsDetails(o)}:b}const ie=this.resolve(i,o);let G=ie&&ie.res;const le=ie&&ie.usedKey||b,fe=ie&&ie.exactUsedKey||b,ve=Object.prototype.toString.apply(G),Ze=["[object Number]","[object Function]","[object RegExp]"],me=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,te=!this.i18nFormat||this.i18nFormat.handleAsObject;if(te&&G&&(typeof G!="string"&&typeof G!="boolean"&&typeof G!="number")&&Ze.indexOf(ve)<0&&!(typeof me=="string"&&ve==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const re=this.options.returnedObjectHandler?this.options.returnedObjectHandler(le,G,{...o,ns:a}):`key '${b} (${this.language})' returned an object instead of string.`;return d?(ie.res=re,ie.usedParams=this.getUsedParamsDetails(o),ie):re}if(_){const re=ve==="[object Array]",Me=re?[]:{},we=re?fe:le;for(const We in G)if(Object.prototype.hasOwnProperty.call(G,We)){const ot=`${we}${_}${We}`;Me[We]=this.translate(ot,{...o,joinArrays:!1,ns:a}),Me[We]===ot&&(Me[We]=G[We])}G=Me}}else if(te&&typeof me=="string"&&ve==="[object Array]")G=G.join(me),G&&(G=this.extendTranslation(G,i,o,u));else{let re=!1,Me=!1;const we=o.count!==void 0&&typeof o.count!="string",We=q_.hasDefaultValue(o),ot=we?this.pluralResolver.getSuffix(j,o.count,o):"",$e=o.ordinal&&we?this.pluralResolver.getSuffix(j,o.count,{ordinal:!1}):"",xt=o[`defaultValue${ot}`]||o[`defaultValue${$e}`]||o.defaultValue;!this.isValidLookup(G)&&We&&(re=!0,G=xt),this.isValidLookup(G)||(Me=!0,G=b);const jt=(o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Me?void 0:G,St=We&&xt!==G&&this.options.updateMissing;if(Me||re||St){if(this.logger.log(St?"updateKey":"missingKey",j,E,b,St?xt:G),_){const qt=this.resolve(b,{...o,keySeparator:!1});qt&&qt.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 Jt=[];const Tt=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Tt&&Tt[0])for(let qt=0;qt<Tt.length;qt++)Jt.push(Tt[qt]);else this.options.saveMissingTo==="all"?Jt=this.languageUtils.toResolveHierarchy(o.lng||this.language):Jt.push(o.lng||this.language);const bt=(qt,Ot,Vt)=>{const W=We&&Vt!==G?Vt:jt;this.options.missingKeyHandler?this.options.missingKeyHandler(qt,E,Ot,W,St,o):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(qt,E,Ot,W,St,o),this.emit("missingKey",qt,E,Ot,G)};this.options.saveMissing&&(this.options.saveMissingPlurals&&we?Jt.forEach(qt=>{this.pluralResolver.getSuffixes(qt,o).forEach(Ot=>{bt([qt],b+Ot,o[`defaultValue${Ot}`]||xt)})}):bt(Jt,b,xt))}G=this.extendTranslation(G,i,o,ie,u),Me&&G===b&&this.options.appendNamespaceToMissingKey&&(G=`${E}:${b}`),(Me||re)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?G=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${E}:${b}`:b,re?G:void 0):G=this.options.parseMissingKeyHandler(G))}return d?(ie.res=G,ie.usedParams=this.getUsedParamsDetails(o),ie):G}extendTranslation(i,o,u,d,_){var b=this;if(this.i18nFormat&&this.i18nFormat.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...u},u.lng||this.language||d.usedLng,d.usedNS,d.usedKey,{resolved:d});else if(!u.skipInterpolation){u.interpolation&&this.interpolator.init({...u,interpolation:{...this.options.interpolation,...u.interpolation}});const j=typeof i=="string"&&(u&&u.interpolation&&u.interpolation.skipOnVariables!==void 0?u.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let V;if(j){const G=i.match(this.interpolator.nestingRegexp);V=G&&G.length}let ie=u.replace&&typeof u.replace!="string"?u.replace:u;if(this.options.interpolation.defaultVariables&&(ie={...this.options.interpolation.defaultVariables,...ie}),i=this.interpolator.interpolate(i,ie,u.lng||this.language,u),j){const G=i.match(this.interpolator.nestingRegexp),le=G&&G.length;V<le&&(u.nest=!1)}!u.lng&&this.options.compatibilityAPI!=="v1"&&d&&d.res&&(u.lng=d.usedLng),u.nest!==!1&&(i=this.interpolator.nest(i,function(){for(var G=arguments.length,le=new Array(G),fe=0;fe<G;fe++)le[fe]=arguments[fe];return _&&_[0]===le[0]&&!u.context?(b.logger.warn(`It seems you are nesting recursively key: ${le[0]} in key: ${o[0]}`),null):b.translate(...le,o)},u)),u.interpolation&&this.interpolator.reset()}const a=u.postProcess||this.options.postProcess,E=typeof a=="string"?[a]:a;return i!=null&&E&&E.length&&u.applyPostProcessor!==!1&&(i=eN.handle(E,i,o,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...d,usedParams:this.getUsedParamsDetails(u)},...u}:u,this)),i}resolve(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u,d,_,b,a;return typeof i=="string"&&(i=[i]),i.forEach(E=>{if(this.isValidLookup(u))return;const j=this.extractFromKey(E,o),V=j.key;d=V;let ie=j.namespaces;this.options.fallbackNS&&(ie=ie.concat(this.options.fallbackNS));const G=o.count!==void 0&&typeof o.count!="string",le=G&&!o.ordinal&&o.count===0&&this.pluralResolver.shouldUseIntlApi(),fe=o.context!==void 0&&(typeof o.context=="string"||typeof o.context=="number")&&o.context!=="",ve=o.lngs?o.lngs:this.languageUtils.toResolveHierarchy(o.lng||this.language,o.fallbackLng);ie.forEach(Ze=>{this.isValidLookup(u)||(a=Ze,!tN[`${ve[0]}-${Ze}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(a)&&(tN[`${ve[0]}-${Ze}`]=!0,this.logger.warn(`key "${d}" for languages "${ve.join(", ")}" won't get resolved as namespace "${a}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),ve.forEach(me=>{if(this.isValidLookup(u))return;b=me;const te=[V];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(te,V,me,Ze,o);else{let re;G&&(re=this.pluralResolver.getSuffix(me,o.count,o));const Me=`${this.options.pluralSeparator}zero`,we=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(G&&(te.push(V+re),o.ordinal&&re.indexOf(we)===0&&te.push(V+re.replace(we,this.options.pluralSeparator)),le&&te.push(V+Me)),fe){const We=`${V}${this.options.contextSeparator}${o.context}`;te.push(We),G&&(te.push(We+re),o.ordinal&&re.indexOf(we)===0&&te.push(We+re.replace(we,this.options.pluralSeparator)),le&&te.push(We+Me))}}let ee;for(;ee=te.pop();)this.isValidLookup(u)||(_=ee,u=this.getResource(me,Ze,ee,o))}))})}),{res:u,usedKey:d,exactUsedKey:_,usedLng:b,usedNS:a}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(i,o,u,d):this.resourceStore.getResource(i,o,u,d)}getUsedParamsDetails(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const o=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],u=i.replace&&typeof i.replace!="string";let d=u?i.replace:i;if(u&&typeof i.count<"u"&&(d.count=i.count),this.options.interpolation.defaultVariables&&(d={...this.options.interpolation.defaultVariables,...d}),!u){d={...d};for(const _ of o)delete d[_]}return d}static hasDefaultValue(i){const o="defaultValue";for(const u in i)if(Object.prototype.hasOwnProperty.call(i,u)&&o===u.substring(0,o.length)&&i[u]!==void 0)return!0;return!1}}function V3(e){return e.charAt(0).toUpperCase()+e.slice(1)}class iN{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Il.create("languageUtils")}getScriptPartFromCode(i){if(i=W_(i),!i||i.indexOf("-")<0)return null;const o=i.split("-");return o.length===2||(o.pop(),o[o.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(o.join("-"))}getLanguagePartFromCode(i){if(i=W_(i),!i||i.indexOf("-")<0)return i;const o=i.split("-");return this.formatLanguageCode(o[0])}formatLanguageCode(i){if(typeof i=="string"&&i.indexOf("-")>-1){const o=["hans","hant","latn","cyrl","cans","mong","arab"];let u=i.split("-");return this.options.lowerCaseLng?u=u.map(d=>d.toLowerCase()):u.length===2?(u[0]=u[0].toLowerCase(),u[1]=u[1].toUpperCase(),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase()))):u.length===3&&(u[0]=u[0].toLowerCase(),u[1].length===2&&(u[1]=u[1].toUpperCase()),u[0]!=="sgn"&&u[2].length===2&&(u[2]=u[2].toUpperCase()),o.indexOf(u[1].toLowerCase())>-1&&(u[1]=V3(u[1].toLowerCase())),o.indexOf(u[2].toLowerCase())>-1&&(u[2]=V3(u[2].toLowerCase()))),u.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let o;return i.forEach(u=>{if(o)return;const d=this.formatLanguageCode(u);(!this.options.supportedLngs||this.isSupportedCode(d))&&(o=d)}),!o&&this.options.supportedLngs&&i.forEach(u=>{if(o)return;const d=this.getLanguagePartFromCode(u);if(this.isSupportedCode(d))return o=d;o=this.options.supportedLngs.find(_=>{if(_===d)return _;if(!(_.indexOf("-")<0&&d.indexOf("-")<0)&&_.indexOf(d)===0)return _})}),o||(o=this.getFallbackCodes(this.options.fallbackLng)[0]),o}getFallbackCodes(i,o){if(!i)return[];if(typeof i=="function"&&(i=i(o)),typeof i=="string"&&(i=[i]),Object.prototype.toString.apply(i)==="[object Array]")return i;if(!o)return i.default||[];let u=i[o];return u||(u=i[this.getScriptPartFromCode(o)]),u||(u=i[this.formatLanguageCode(o)]),u||(u=i[this.getLanguagePartFromCode(o)]),u||(u=i.default),u||[]}toResolveHierarchy(i,o){const u=this.getFallbackCodes(o||this.options.fallbackLng||[],i),d=[],_=b=>{b&&(this.isSupportedCode(b)?d.push(b):this.logger.warn(`rejecting language code not found in supportedLngs: ${b}`))};return typeof i=="string"&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&_(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&_(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&_(this.getLanguagePartFromCode(i))):typeof i=="string"&&_(this.formatLanguageCode(i)),u.forEach(b=>{d.indexOf(b)<0&&_(this.formatLanguageCode(b))}),d}}let yY=[{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}],_Y={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 vY=["v1","v2","v3"],xY=["v4"],nN={zero:0,one:1,two:2,few:3,many:4,other:5};function wY(){const e={};return yY.forEach(i=>{i.lngs.forEach(o=>{e[o]={numbers:i.nr,plurals:_Y[i.fc]}})}),e}class bY{constructor(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=i,this.options=o,this.logger=Il.create("pluralResolver"),(!this.options.compatibilityJSON||xY.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=wY()}addRule(i,o){this.rules[i]=o}getRule(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(W_(i),{type:o.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[i]||this.rules[this.languageUtils.getLanguagePartFromCode(i)]}needsPlural(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return this.shouldUseIntlApi()?u&&u.resolvedOptions().pluralCategories.length>1:u&&u.numbers.length>1}getPluralFormsOfKey(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(i,u).map(d=>`${o}${d}`)}getSuffixes(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const u=this.getRule(i,o);return u?this.shouldUseIntlApi()?u.resolvedOptions().pluralCategories.sort((d,_)=>nN[d]-nN[_]).map(d=>`${this.options.prepend}${o.ordinal?`ordinal${this.options.prepend}`:""}${d}`):u.numbers.map(d=>this.getSuffix(i,d,o)):[]}getSuffix(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const d=this.getRule(i,u);return d?this.shouldUseIntlApi()?`${this.options.prepend}${u.ordinal?`ordinal${this.options.prepend}`:""}${d.select(o)}`:this.getSuffixRetroCompatible(d,o):(this.logger.warn(`no plural rule found for: ${i}`),"")}getSuffixRetroCompatible(i,o){const u=i.noAbs?i.plurals(o):i.plurals(Math.abs(o));let d=i.numbers[u];this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1&&(d===2?d="plural":d===1&&(d=""));const _=()=>this.options.prepend&&d.toString()?this.options.prepend+d.toString():d.toString();return this.options.compatibilityJSON==="v1"?d===1?"":typeof d=="number"?`_plural_${d.toString()}`:_():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&i.numbers.length===2&&i.numbers[0]===1?_():this.options.prepend&&u.toString()?this.options.prepend+u.toString():u.toString()}shouldUseIntlApi(){return!vY.includes(this.options.compatibilityJSON)}}function rN(e,i,o){let u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",d=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,_=dY(e,i,o);return!_&&d&&typeof o=="string"&&(_=Z_(e,o,u),_===void 0&&(_=Z_(i,o,u))),_}class MY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("interpolator"),this.options=i,this.format=i.interpolation&&i.interpolation.format||(o=>o),this.init(i)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};i.interpolation||(i.interpolation={escapeValue:!0});const o=i.interpolation;this.escape=o.escape!==void 0?o.escape:pY,this.escapeValue=o.escapeValue!==void 0?o.escapeValue:!0,this.useRawValueToEscape=o.useRawValueToEscape!==void 0?o.useRawValueToEscape:!1,this.prefix=o.prefix?Mf(o.prefix):o.prefixEscaped||"{{",this.suffix=o.suffix?Mf(o.suffix):o.suffixEscaped||"}}",this.formatSeparator=o.formatSeparator?o.formatSeparator:o.formatSeparator||",",this.unescapePrefix=o.unescapeSuffix?"":o.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":o.unescapeSuffix||"",this.nestingPrefix=o.nestingPrefix?Mf(o.nestingPrefix):o.nestingPrefixEscaped||Mf("$t("),this.nestingSuffix=o.nestingSuffix?Mf(o.nestingSuffix):o.nestingSuffixEscaped||Mf(")"),this.nestingOptionsSeparator=o.nestingOptionsSeparator?o.nestingOptionsSeparator:o.nestingOptionsSeparator||",",this.maxReplaces=o.maxReplaces?o.maxReplaces:1e3,this.alwaysFormat=o.alwaysFormat!==void 0?o.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(i,"g");const o=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(o,"g");const u=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(u,"g")}interpolate(i,o,u,d){let _,b,a;const E=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function j(fe){return fe.replace(/\$/g,"$$$$")}const V=fe=>{if(fe.indexOf(this.formatSeparator)<0){const te=rN(o,E,fe,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(te,void 0,u,{...d,...o,interpolationkey:fe}):te}const ve=fe.split(this.formatSeparator),Ze=ve.shift().trim(),me=ve.join(this.formatSeparator).trim();return this.format(rN(o,E,Ze,this.options.keySeparator,this.options.ignoreJSONStructure),me,u,{...d,...o,interpolationkey:Ze})};this.resetRegExp();const ie=d&&d.missingInterpolationHandler||this.options.missingInterpolationHandler,G=d&&d.interpolation&&d.interpolation.skipOnVariables!==void 0?d.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:fe=>j(fe)},{regex:this.regexp,safeValue:fe=>this.escapeValue?j(this.escape(fe)):j(fe)}].forEach(fe=>{for(a=0;_=fe.regex.exec(i);){const ve=_[1].trim();if(b=V(ve),b===void 0)if(typeof ie=="function"){const me=ie(i,_,d);b=typeof me=="string"?me:""}else if(d&&Object.prototype.hasOwnProperty.call(d,ve))b="";else if(G){b=_[0];continue}else this.logger.warn(`missed to pass in variable ${ve} for interpolating ${i}`),b="";else typeof b!="string"&&!this.useRawValueToEscape&&(b=qE(b));const Ze=fe.safeValue(b);if(i=i.replace(_[0],Ze),G?(fe.regex.lastIndex+=b.length,fe.regex.lastIndex-=_[0].length):fe.regex.lastIndex=0,a++,a>=this.maxReplaces)break}}),i}nest(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d,_,b;function a(E,j){const V=this.nestingOptionsSeparator;if(E.indexOf(V)<0)return E;const ie=E.split(new RegExp(`${V}[ ]*{`));let G=`{${ie[1]}`;E=ie[0],G=this.interpolate(G,b);const le=G.match(/'/g),fe=G.match(/"/g);(le&&le.length%2===0&&!fe||fe.length%2!==0)&&(G=G.replace(/'/g,'"'));try{b=JSON.parse(G),j&&(b={...j,...b})}catch(ve){return this.logger.warn(`failed parsing options string in nesting for key ${E}`,ve),`${E}${V}${G}`}return delete b.defaultValue,E}for(;d=this.nestingRegexp.exec(i);){let E=[];b={...u},b=b.replace&&typeof b.replace!="string"?b.replace:b,b.applyPostProcessor=!1,delete b.defaultValue;let j=!1;if(d[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(d[1])){const V=d[1].split(this.formatSeparator).map(ie=>ie.trim());d[1]=V.shift(),E=V,j=!0}if(_=o(a.call(this,d[1].trim(),b),b),_&&d[0]===i&&typeof _!="string")return _;typeof _!="string"&&(_=qE(_)),_||(this.logger.warn(`missed to resolve ${d[1]} for nesting ${i}`),_=""),j&&(_=E.reduce((V,ie)=>this.format(V,ie,u.lng,{...u,interpolationkey:d[1].trim()}),_.trim())),i=i.replace(d[0],_),this.regexp.lastIndex=0}return i}}function IY(e){let i=e.toLowerCase().trim();const o={};if(e.indexOf("(")>-1){const u=e.split("(");i=u[0].toLowerCase().trim();const d=u[1].substring(0,u[1].length-1);i==="currency"&&d.indexOf(":")<0?o.currency||(o.currency=d.trim()):i==="relativetime"&&d.indexOf(":")<0?o.range||(o.range=d.trim()):d.split(";").forEach(b=>{if(!b)return;const[a,...E]=b.split(":"),j=E.join(":").trim().replace(/^'+|'+$/g,"");o[a.trim()]||(o[a.trim()]=j),j==="false"&&(o[a.trim()]=!1),j==="true"&&(o[a.trim()]=!0),isNaN(j)||(o[a.trim()]=parseInt(j,10))})}return{formatName:i,formatOptions:o}}function If(e){const i={};return function(u,d,_){const b=d+JSON.stringify(_);let a=i[b];return a||(a=e(W_(d),_),i[b]=a),a(u)}}class TY{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Il.create("formatter"),this.options=i,this.formats={number:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u});return _=>d.format(_)}),currency:If((o,u)=>{const d=new Intl.NumberFormat(o,{...u,style:"currency"});return _=>d.format(_)}),datetime:If((o,u)=>{const d=new Intl.DateTimeFormat(o,{...u});return _=>d.format(_)}),relativetime:If((o,u)=>{const d=new Intl.RelativeTimeFormat(o,{...u});return _=>d.format(_,u.range||"day")}),list:If((o,u)=>{const d=new Intl.ListFormat(o,{...u});return _=>d.format(_)})},this.init(i)}init(i){const u=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=u.formatSeparator?u.formatSeparator:u.formatSeparator||","}add(i,o){this.formats[i.toLowerCase().trim()]=o}addCached(i,o){this.formats[i.toLowerCase().trim()]=If(o)}format(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return o.split(this.formatSeparator).reduce((a,E)=>{const{formatName:j,formatOptions:V}=IY(E);if(this.formats[j]){let ie=a;try{const G=d&&d.formatParams&&d.formatParams[d.interpolationkey]||{},le=G.locale||G.lng||d.locale||d.lng||u;ie=this.formats[j](a,le,{...V,...d,...G})}catch(G){this.logger.warn(G)}return ie}else this.logger.warn(`there was no format function for ${j}`);return a},i)}}function DY(e,i){e.pending[i]!==void 0&&(delete e.pending[i],e.pendingCount--)}class SY extends Y_{constructor(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=i,this.store=o,this.services=u,this.languageUtils=u.languageUtils,this.options=d,this.logger=Il.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=d.maxParallelReads||10,this.readingCalls=0,this.maxRetries=d.maxRetries>=0?d.maxRetries:5,this.retryTimeout=d.retryTimeout>=1?d.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(u,d.backend,d)}queueLoad(i,o,u,d){const _={},b={},a={},E={};return i.forEach(j=>{let V=!0;o.forEach(ie=>{const G=`${j}|${ie}`;!u.reload&&this.store.hasResourceBundle(j,ie)?this.state[G]=2:this.state[G]<0||(this.state[G]===1?b[G]===void 0&&(b[G]=!0):(this.state[G]=1,V=!1,b[G]===void 0&&(b[G]=!0),_[G]===void 0&&(_[G]=!0),E[ie]===void 0&&(E[ie]=!0)))}),V||(a[j]=!0)}),(Object.keys(_).length||Object.keys(b).length)&&this.queue.push({pending:b,pendingCount:Object.keys(b).length,loaded:{},errors:[],callback:d}),{toLoad:Object.keys(_),pending:Object.keys(b),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(E)}}loaded(i,o,u){const d=i.split("|"),_=d[0],b=d[1];o&&this.emit("failedLoading",_,b,o),u&&this.store.addResourceBundle(_,b,u),this.state[i]=o?-1:2;const a={};this.queue.forEach(E=>{hY(E.loaded,[_],b),DY(E,i),o&&E.errors.push(o),E.pendingCount===0&&!E.done&&(Object.keys(E.loaded).forEach(j=>{a[j]||(a[j]={});const V=E.loaded[j];V.length&&V.forEach(ie=>{a[j][ie]===void 0&&(a[j][ie]=!0)})}),E.done=!0,E.errors.length?E.callback(E.errors):E.callback())}),this.emit("loaded",a),this.queue=this.queue.filter(E=>!E.done)}read(i,o,u){let d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,_=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,b=arguments.length>5?arguments[5]:void 0;if(!i.length)return b(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:o,fcName:u,tried:d,wait:_,callback:b});return}this.readingCalls++;const a=(j,V)=>{if(this.readingCalls--,this.waitingReads.length>0){const ie=this.waitingReads.shift();this.read(ie.lng,ie.ns,ie.fcName,ie.tried,ie.wait,ie.callback)}if(j&&V&&d<this.maxRetries){setTimeout(()=>{this.read.call(this,i,o,u,d+1,_*2,b)},_);return}b(j,V)},E=this.backend[u].bind(this.backend);if(E.length===2){try{const j=E(i,o);j&&typeof j.then=="function"?j.then(V=>a(null,V)).catch(a):a(null,j)}catch(j){a(j)}return}return E(i,o,a)}prepareLoading(i,o){let u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},d=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."),d&&d();typeof i=="string"&&(i=this.languageUtils.toResolveHierarchy(i)),typeof o=="string"&&(o=[o]);const _=this.queueLoad(i,o,u,d);if(!_.toLoad.length)return _.pending.length||d(),null;_.toLoad.forEach(b=>{this.loadOne(b)})}load(i,o,u){this.prepareLoading(i,o,{},u)}reload(i,o,u){this.prepareLoading(i,o,{reload:!0},u)}loadOne(i){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const u=i.split("|"),d=u[0],_=u[1];this.read(d,_,"read",void 0,void 0,(b,a)=>{b&&this.logger.warn(`${o}loading namespace ${_} for language ${d} failed`,b),!b&&a&&this.logger.log(`${o}loaded namespace ${_} for language ${d}`,a),this.loaded(i,b,a)})}saveMissing(i,o,u,d,_){let b=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},a=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn(`did not save key "${u}" as the 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!!!");return}if(!(u==null||u==="")){if(this.backend&&this.backend.create){const E={...b,isUpdate:_},j=this.backend.create.bind(this.backend);if(j.length<6)try{let V;j.length===5?V=j(i,o,u,d,E):V=j(i,o,u,d),V&&typeof V.then=="function"?V.then(ie=>a(null,ie)).catch(a):a(null,V)}catch(V){a(V)}else j(i,o,u,d,a,E)}!i||!i[0]||this.store.addResource(i[0],o,u,d)}}}function oN(){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(i){let o={};if(typeof i[1]=="object"&&(o=i[1]),typeof i[1]=="string"&&(o.defaultValue=i[1]),typeof i[2]=="string"&&(o.tDescription=i[2]),typeof i[2]=="object"||typeof i[3]=="object"){const u=i[3]||i[2];Object.keys(u).forEach(d=>{o[d]=u[d]})}return o},interpolation:{escapeValue:!0,format:(e,i,o,u)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function sN(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 K_(){}function AY(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(o=>{typeof e[o]=="function"&&(e[o]=e[o].bind(e))})}class Lm extends Y_{constructor(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(super(),this.options=sN(i),this.services={},this.logger=Il,this.modules={external:[]},AY(this),o&&!this.isInitialized&&!i.isClone){if(!this.options.initImmediate)return this.init(i,o),this;setTimeout(()=>{this.init(i,o)},0)}}init(){var i=this;let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(u=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));const d=oN();this.options={...d,...this.options,...sN(o)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...d.interpolation,...this.options.interpolation}),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function _(V){return V?typeof V=="function"?new V:V:null}if(!this.options.isClone){this.modules.logger?Il.init(_(this.modules.logger),this.options):Il.init(null,this.options);let V;this.modules.formatter?V=this.modules.formatter:typeof Intl<"u"&&(V=TY);const ie=new iN(this.options);this.store=new JE(this.options.resources,this.options);const G=this.services;G.logger=Il,G.resourceStore=this.store,G.languageUtils=ie,G.pluralResolver=new bY(ie,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),V&&(!this.options.interpolation.format||this.options.interpolation.format===d.interpolation.format)&&(G.formatter=_(V),G.formatter.init(G,this.options),this.options.interpolation.format=G.formatter.format.bind(G.formatter)),G.interpolator=new MY(this.options),G.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},G.backendConnector=new SY(_(this.modules.backend),G.resourceStore,G,this.options),G.backendConnector.on("*",function(le){for(var fe=arguments.length,ve=new Array(fe>1?fe-1:0),Ze=1;Ze<fe;Ze++)ve[Ze-1]=arguments[Ze];i.emit(le,...ve)}),this.modules.languageDetector&&(G.languageDetector=_(this.modules.languageDetector),G.languageDetector.init&&G.languageDetector.init(G,this.options.detection,this.options)),this.modules.i18nFormat&&(G.i18nFormat=_(this.modules.i18nFormat),G.i18nFormat.init&&G.i18nFormat.init(this)),this.translator=new q_(this.services,this.options),this.translator.on("*",function(le){for(var fe=arguments.length,ve=new Array(fe>1?fe-1:0),Ze=1;Ze<fe;Ze++)ve[Ze-1]=arguments[Ze];i.emit(le,...ve)}),this.modules.external.forEach(le=>{le.init&&le.init(this)})}if(this.format=this.options.interpolation.format,u||(u=K_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const V=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);V.length>0&&V[0]!=="dev"&&(this.options.lng=V[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(V=>{this[V]=function(){return i.store[V](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(V=>{this[V]=function(){return i.store[V](...arguments),i}});const E=Nm(),j=()=>{const V=(ie,G)=>{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),E.resolve(G),u(ie,G)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return V(null,this.t.bind(this));this.changeLanguage(this.options.lng,V)};return this.options.resources||!this.options.initImmediate?j():setTimeout(j,0),E}loadResources(i){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K_;const d=typeof i=="string"?i:this.language;if(typeof i=="function"&&(u=i),!this.options.resources||this.options.partialBundledLanguages){if(d&&d.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return u();const _=[],b=a=>{if(!a||a==="cimode")return;this.services.languageUtils.toResolveHierarchy(a).forEach(j=>{j!=="cimode"&&_.indexOf(j)<0&&_.push(j)})};d?b(d):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(E=>b(E)),this.options.preload&&this.options.preload.forEach(a=>b(a)),this.services.backendConnector.load(_,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),u(a)})}else u(null)}reloadResources(i,o,u){const d=Nm();return i||(i=this.languages),o||(o=this.options.ns),u||(u=K_),this.services.backendConnector.reload(i,o,_=>{d.resolve(),u(_)}),d}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&eN.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1))for(let o=0;o<this.languages.length;o++){const u=this.languages[o];if(!(["cimode","dev"].indexOf(u)>-1)&&this.store.hasLanguageSomeTranslations(u)){this.resolvedLanguage=u;break}}}changeLanguage(i,o){var u=this;this.isLanguageChangingTo=i;const d=Nm();this.emit("languageChanging",i);const _=E=>{this.language=E,this.languages=this.services.languageUtils.toResolveHierarchy(E),this.resolvedLanguage=void 0,this.setResolvedLanguage(E)},b=(E,j)=>{j?(_(j),this.translator.changeLanguage(j),this.isLanguageChangingTo=void 0,this.emit("languageChanged",j),this.logger.log("languageChanged",j)):this.isLanguageChangingTo=void 0,d.resolve(function(){return u.t(...arguments)}),o&&o(E,function(){return u.t(...arguments)})},a=E=>{!i&&!E&&this.services.languageDetector&&(E=[]);const j=typeof E=="string"?E:this.services.languageUtils.getBestMatchFromCodes(E);j&&(this.language||_(j),this.translator.language||this.translator.changeLanguage(j),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(j)),this.loadResources(j,V=>{b(V,j)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?a(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(i),d}getFixedT(i,o,u){var d=this;const _=function(b,a){let E;if(typeof a!="object"){for(var j=arguments.length,V=new Array(j>2?j-2:0),ie=2;ie<j;ie++)V[ie-2]=arguments[ie];E=d.options.overloadTranslationOptionHandler([b,a].concat(V))}else E={...a};E.lng=E.lng||_.lng,E.lngs=E.lngs||_.lngs,E.ns=E.ns||_.ns,E.keyPrefix=E.keyPrefix||u||_.keyPrefix;const G=d.options.keySeparator||".";let le;return E.keyPrefix&&Array.isArray(b)?le=b.map(fe=>`${E.keyPrefix}${G}${fe}`):le=E.keyPrefix?`${E.keyPrefix}${G}${b}`:b,d.t(le,E)};return typeof i=="string"?_.lng=i:_.lngs=i,_.ns=o,_.keyPrefix=u,_}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i){let o=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 u=o.lng||this.resolvedLanguage||this.languages[0],d=this.options?this.options.fallbackLng:!1,_=this.languages[this.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=this.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};if(o.precheck){const a=o.precheck(this,b);if(a!==void 0)return a}return!!(this.hasResourceBundle(u,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||b(u,i)&&(!d||b(_,i)))}loadNamespaces(i,o){const u=Nm();return this.options.ns?(typeof i=="string"&&(i=[i]),i.forEach(d=>{this.options.ns.indexOf(d)<0&&this.options.ns.push(d)}),this.loadResources(d=>{u.resolve(),o&&o(d)}),u):(o&&o(),Promise.resolve())}loadLanguages(i,o){const u=Nm();typeof i=="string"&&(i=[i]);const d=this.options.preload||[],_=i.filter(b=>d.indexOf(b)<0);return _.length?(this.options.preload=d.concat(_),this.loadResources(b=>{u.resolve(),o&&o(b)}),u):(o&&o(),Promise.resolve())}dir(i){if(i||(i=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!i)return"rtl";const o=["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"],u=this.services&&this.services.languageUtils||new iN(oN());return o.indexOf(u.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;return new Lm(i,o)}cloneInstance(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:K_;const u=i.forkResourceStore;u&&delete i.forkResourceStore;const d={...this.options,...i,isClone:!0},_=new Lm(d);return(i.debug!==void 0||i.prefix!==void 0)&&(_.logger=_.logger.clone(i)),["store","services","language"].forEach(a=>{_[a]=this[a]}),_.services={...this.services},_.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},u&&(_.store=new JE(this.store.data,d),_.services.resourceStore=_.store),_.translator=new q_(_.services,d),_.translator.on("*",function(a){for(var E=arguments.length,j=new Array(E>1?E-1:0),V=1;V<E;V++)j[V-1]=arguments[V];_.emit(a,...j)}),_.init(d,o),_.translator.options=d,_.translator.backendConnector.services.utils={hasLoadedNamespace:_.hasLoadedNamespace.bind(_)},_}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const jo=Lm.createInstance();jo.createInstance=Lm.createInstance,jo.createInstance,jo.dir,jo.init,jo.loadResources,jo.reloadResources,jo.use,jo.changeLanguage,jo.getFixedT;const aN=jo.t;jo.exists,jo.setDefaultNamespace,jo.hasLoadedNamespace,jo.loadNamespaces,jo.loadLanguages;function Q3(){return Q3=Object.assign?Object.assign.bind():function(e){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var u in o)({}).hasOwnProperty.call(o,u)&&(e[u]=o[u])}return e},Q3.apply(null,arguments)}function CY(){if(console&&console.warn){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&(i[0]=`react-i18next:: ${i[0]}`),console.warn(...i)}}const lN={};function H3(){for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];typeof i[0]=="string"&&lN[i[0]]||(typeof i[0]=="string"&&(lN[i[0]]=new Date),CY(...i))}const cN=(e,i)=>()=>{if(e.isInitialized)i();else{const o=()=>{setTimeout(()=>{e.off("initialized",o)},0),i()};e.on("initialized",o)}};function uN(e,i,o){e.loadNamespaces(i,cN(e,o))}function hN(e,i,o,u){typeof o=="string"&&(o=[o]),o.forEach(d=>{e.options.ns.indexOf(d)<0&&e.options.ns.push(d)}),e.loadLanguages(i,cN(e,u))}function EY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const u=i.languages[0],d=i.options?i.options.fallbackLng:!1,_=i.languages[i.languages.length-1];if(u.toLowerCase()==="cimode")return!0;const b=(a,E)=>{const j=i.services.backendConnector.state[`${a}|${E}`];return j===-1||j===2};return o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!b(i.isLanguageChangingTo,e)?!1:!!(i.hasResourceBundle(u,e)||!i.services.backendConnector.backend||i.options.resources&&!i.options.partialBundledLanguages||b(u,e)&&(!d||b(_,e)))}function NY(e,i){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!i.languages||!i.languages.length?(H3("i18n.languages were undefined or empty",i.languages),!0):i.options.ignoreJSONStructure!==void 0?i.hasLoadedNamespace(e,{lng:o.lng,precheck:(d,_)=>{if(o.bindI18n&&o.bindI18n.indexOf("languageChanging")>-1&&d.services.backendConnector.backend&&d.isLanguageChangingTo&&!_(d.isLanguageChangingTo,e))return!1}}):EY(e,i,o)}const LY=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,zY={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},OY=e=>zY[e];let $3={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(LY,OY)};function kY(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$3={...$3,...e}}function jY(){return $3}let dN;function PY(e){dN=e}function RY(){return dN}const BY={type:"3rdParty",init(e){kY(e.options.react),PY(e)}},FY=be.createContext();class UY{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(o=>{this.usedNamespaces[o]||(this.usedNamespaces[o]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const VY=(e,i)=>{const o=be.useRef();return be.useEffect(()=>{o.current=i?o.current:e},[e,i]),o.current};function cs(e){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:o}=i,{i18n:u,defaultNS:d}=be.useContext(FY)||{},_=o||u||RY();if(_&&!_.reportNamespaces&&(_.reportNamespaces=new UY),!_){H3("You will need to pass in an i18next instance by using initReactI18next");const ee=(Me,we)=>typeof we=="string"?we:we&&typeof we=="object"&&typeof we.defaultValue=="string"?we.defaultValue:Array.isArray(Me)?Me[Me.length-1]:Me,re=[ee,{},!1];return re.t=ee,re.i18n={},re.ready=!1,re}_.options.react&&_.options.react.wait!==void 0&&H3("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const b={...jY(),..._.options.react,...i},{useSuspense:a,keyPrefix:E}=b;let j=e||d||_.options&&_.options.defaultNS;j=typeof j=="string"?[j]:j||["translation"],_.reportNamespaces.addUsedNamespaces&&_.reportNamespaces.addUsedNamespaces(j);const V=(_.isInitialized||_.initializedStoreOnce)&&j.every(ee=>NY(ee,_,b));function ie(){return _.getFixedT(i.lng||null,b.nsMode==="fallback"?j:j[0],E)}const[G,le]=be.useState(ie);let fe=j.join();i.lng&&(fe=`${i.lng}${fe}`);const ve=VY(fe),Ze=be.useRef(!0);be.useEffect(()=>{const{bindI18n:ee,bindI18nStore:re}=b;Ze.current=!0,!V&&!a&&(i.lng?hN(_,i.lng,j,()=>{Ze.current&&le(ie)}):uN(_,j,()=>{Ze.current&&le(ie)})),V&&ve&&ve!==fe&&Ze.current&&le(ie);function Me(){Ze.current&&le(ie)}return ee&&_&&_.on(ee,Me),re&&_&&_.store.on(re,Me),()=>{Ze.current=!1,ee&&_&&ee.split(" ").forEach(we=>_.off(we,Me)),re&&_&&re.split(" ").forEach(we=>_.store.off(we,Me))}},[_,fe]);const me=be.useRef(!0);be.useEffect(()=>{Ze.current&&!me.current&&le(ie),me.current=!1},[_,E]);const te=[G,_,V];if(te.t=G,te.i18n=_,te.ready=V,V||!V&&!a)return te;throw new Promise(ee=>{i.lng?hN(_,i.lng,j,()=>ee()):uN(_,j,()=>ee())})}const QY={Close:"Close",From:"From",To:"To",Distance:"Distance","Estimated time":"Estimated time",Level:"Level","Search by name, category, building...":"Search by name, category, building...","Nothing was found":"Nothing was found",d:"d",h:"h",min:"min",Walk:"Walk",Bike:"Bike",Transit:"Transit",Drive:"Drive","Start wayfinding":"Start wayfinding","Read full description":"Read full description",Locations:"Locations","Directions not available":"Directions not available","Start directions":"Start directions",Previous:"Previous",Next:"Next",StepYofX:"Step {{activeStep}} of {{totalSteps}}","You have arrived":"You have arrived",Leave:"Leave",Park:"Park",at:"at",Building:"Building",Venue:"Venue","Take staircase to level":"Take staircase to level","Take the ladder to level":"Take the ladder to level","Take elevator to level":"Take elevator to level","Take escalator to level":"Take escalator to level","Take wheelchair lift to level":"Take wheelchair lift to level","Take wheelchair ramp to level":"Take wheelchair ramp to level",Exit:"Exit",Enter:"Enter",stops:"stops","and continue":"and continue","Continue straight ahead":"Continue straight ahead","Go left":"Go left","Go sharp left":"Go sharp left","Go slight left":"Go slight left","Go right":"Go right","Go sharp right":"Go sharp right","Go slight right":"Go slight right","Turn around":"Turn around",Switch:"Switch","Avoid stairs and escalators":"Avoid stairs and escalators","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","Go to view":"Go to view","Close view selector":"Close view selector","Select language":"Select language"},HY={Close:"Luk",From:"Fra",To:"Til",Distance:"Distance","Estimated time":"Forventet tid",Level:"Etage","Search by name, category, building...":"Søg efter navn, kategori, bygning...","Nothing was found":"Intet fundet",d:"d",h:"t",min:"min",Walk:"Til fods",Bike:"Cykling",Transit:"Offentlig transport",Drive:"Kørsel","Start wayfinding":"Start rutebeskrivelse","Read full description":"Læs hel beskrivelse",Locations:"Lokationer","Directions not available":"Rutevejledning ikke tilgængelig","Start directions":"Start rutevejledning",Previous:"Forrige",Next:"Næste",StepYofX:"Trin {{activeStep}} ud af {{totalSteps}}","You have arrived":"Du er ankommet",Leave:"Forlad",Park:"Parkér",at:"ved",Building:"Bygning",Venue:"Venue","Take staircase to level":"Tag trappen til etage","Take the ladder to level":"Tag stigen til etage","Take elevator to level":"Tag elevatoren til etage","Take escalator to level":"Tag rulletrappen til etage","Take wheelchair lift to level":"Tag kørestolsliften til etage","Take wheelchair ramp to level":"Tag kørestolsrampen til etage",Exit:"Forlad",Enter:"Gå ind i",stops:"stop","and continue":"og fortsæt","Continue straight ahead":"Fortsæt ligeud","Go left":"Drej til venstre","Go sharp left":"Drej skarpt til venstre","Go slight left":"Drej en smule til venstre","Go right":"Drej til højre","Go sharp right":"Drej skarpt til højre","Go slight right":"Drej en smule til højre","Turn around":"Vend om",Switch:"Skift","Avoid stairs and escalators":"Undgå trapper og rulletrapper","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","Go to view":"Vis lokation","Close view selector":"Luk visningsvælger","Select language":"Vælg sprog"},$Y={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...","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","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","Go to view":"Ansicht wechseln","Close view selector":"Ansichtsauswahl schließen","Select language":"Sprache auswählen"},YY={Close:"Fermer",From:"De",To:"À",Distance:"Distance","Estimated time":"Heure d'arrivée estimée",Level:"Niveau","Search by name, category, building...":"Recherche par nom, catégorie, bâtiment...","Nothing was found":"Rien n'a été trouvé",d:"d",h:"h",min:"min",Walk:"À pied",Bike:"À vélo",Transit:"En transports",Drive:"Voiture","Start wayfinding":"Commencer la navigation","Read full description":"Lire la description complète",Locations:"Emplacements","Directions not available":"Itinéraire non disponible","Start directions":"Commencer la navigation",Previous:"Précédent",Next:"Suivant",StepYofX:"Étape {{activeStep}} sur {{totalSteps}}","You have arrived":"Vous êtes arrivé",Leave:"Départ",Park:"Parc",at:"à",Building:"Bâtiment",Venue:"Lieu","Take staircase to level":"Prenez l'escalier jusqu'au niveau","Take the ladder to level":"Empruntez l'escalier pour rejoindre le niveau","Take elevator to level":"Prenez l'ascenseur jusqu'au niveau","Take escalator to level":"Empruntez l'escalier roulant jusqu'au niveau","Take wheelchair lift to level":"Prenez l'élévateur pour fauteuil roulant jusqu'au niveau","Take wheelchair ramp to level":"Prenez la rampe pour fauteuil roulant jusqu'au niveau",Exit:"Partir",Enter:"Entrer",stops:"arrêts","and continue":"et continuez","Continue straight ahead":"Continuez tout droit","Go left":"Tournez a gauche","Go sharp left":"Allez directement à gauche","Go slight left":"Allez légèrement à gauche","Go right":"Allez à droite","Go sharp right":"Allez directement à droite","Go slight right":"Allez légèrement à droite","Turn around":"Faite demi-tour",Switch:"Changer","Avoid stairs and escalators":"Éviter les escaliers et les escalators","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é","Go to view":"Afficher le plan","Close view selector":"Fermer le sélecteur de vue","Select language":"Sélectionner langue"},GY={Close:"Chiudi",From:"Da",To:"A",Distance:"Distanza","Estimated time":"Tempo stimato",Level:"Piano","Search by name, category, building...":"Cerca per nome, categoria, edificio...","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","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","Go to view":"Mostra posizione","Close view selector":"Chiudi selettore vista","Select language":"Seleziona lingua"},ZY={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...","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","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","Go to view":"Ver ubicación","Close view selector":"Cerrar selector de vista","Select language":"Seleccionar idioma"},WY={Close:"Sluit",From:"Van",To:"Naar",Distance:"Afstand","Estimated time":"Geschatte tijd",Level:"Niveau","Search by name, category, building...":"Zoeken op naam, categorie, gebouw…","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","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","Go to view":"Toon locatie","Close view selector":"Sluiten weergavekiezer","Select language":"Selecteer taal"},qY={Close:"关闭",From:"从",To:"到",Distance:"距离","Estimated time":"预计时间",Level:"楼层","Search by name, category, building...":"按名称、类别、建筑物搜索...","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":"避开楼梯和扶梯","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:"已关闭","Go to view":"定位到","Select language":"选择语言"};function KY(e){jo.use(BY).init({resources:{en:{translation:QY},da:{translation:HY},de:{translation:$Y},fr:{translation:YY},it:{translation:GY},es:{translation:ZY},nl:{translation:WY},zh:{translation:qY}},lng:e,fallbackLng:"en",interpolation:{escapeValue:!1}})}const fN=[{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:"中文"}],Pae="",Tf={SetCurrentLocation:"setCurrentLocation",SetWayfindingLocation:"setWayfindingLocation",None:"none"};var pN={exports:{}},XY="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",JY=XY,eG=JY;function gN(){}function mN(){}mN.resetWarningCache=gN;var tG=function(){function e(u,d,_,b,a,E){if(E!==eG){var j=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 j.name="Invariant Violation",j}}e.isRequired=e;function i(){return e}var o={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:i,element:e,elementType:e,instanceOf:i,node:e,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:mN,resetWarningCache:gN};return o.PropTypes=o,o};pN.exports=tG();var iG=pN.exports;const dt=rc(iG),Rae="",nG=e=>{const[i,o]=be.useState(!1);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Y3=()=>nG("(min-width: 992px)");class rG{constructor(i={}){this._currentPosition=null,this._listeners=new Map;const{maxAccuracy:o=100}=i;this._maxAccuracy=o}get currentPosition(){return this._currentPosition}hasValidPosition(){const i=this._maxAccuracy;return this._currentPosition!==null&&this._currentPosition.coords&&this._currentPosition.coords.accuracy>=0&&this._currentPosition.coords.accuracy<=i}on(i,o){this._listeners.has(i)||this._listeners.set(i,[]),this._listeners.get(i).push(o)}off(i,o){const u=this._listeners.get(i);u&&this._listeners.set(i,u.filter(d=>d!==o))}setPosition(i){let o;if(i.coords&&i.timestamp)o={coords:{latitude:i.coords.latitude,longitude:i.coords.longitude,accuracy:i.coords.accuracy,altitude:i.coords.altitude??null,altitudeAccuracy:i.coords.altitudeAccuracy??null,heading:i.coords.heading??null,speed:i.coords.speed??null},timestamp:i.timestamp,floorIndex:i.floorIndex??null};else{const d={message:"[CustomPositionProvider] Invalid position object received. The object must be at minimum: { coords: { latitude: number, longitude: number, accuracy: number }, timestamp: number }.",received:i};return this.emitError(d),!1}return o.coords.accuracy>this._maxAccuracy?(console.warn(`[CustomPositionProvider] Position accuracy (${o.coords.accuracy}m) exceeds maxAccuracy (${this._maxAccuracy}m). Position dropped, keeping previous position.`),!1):(this._currentPosition=o,(this._listeners.get("position_received")||[]).forEach(d=>{d.call(null,{position:o})}),!0)}emitError(i){this._currentPosition=null,console.warn("[CustomPositionProvider] position_error:",i),(this._listeners.get("position_error")||[]).forEach(u=>{u.call(null,i)})}}const X_={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"}};yN.propTypes={mapType:dt.oneOf(["google","mapbox"]).isRequired,mapsIndoorsInstance:dt.object.isRequired,mapInstance:dt.object.isRequired,onPositionControl:dt.func,brandingColor:dt.string,devicePosition:dt.object,excludedElements:dt.string};function yN({mapType:e,mapsIndoorsInstance:i,mapInstance:o,onPositionControl:u,brandingColor:d,devicePosition:_,excludedElements:b=""}){const a=Y3(),E=be.useRef(null),j=be.useRef(null),V=be.useCallback(le=>!b||typeof b!="string"?!0:!b.split(",").map(ve=>ve.trim()).includes(le),[b]),ie=be.useMemo(()=>{const le={};for(const[fe,ve]of Object.entries(X_))le[fe]=Pe.jsx("div",{className:ve.className},ve.key);return le},[]),G=le=>{j.current.customPositionProvider.setPosition(le)&&j.current.watchPosition()};return be.useEffect(()=>{if(!(!i||!o)){if(!E.current){const le=document.createElement("mi-floor-selector");E.current=le}if(!j.current){const le=document.createElement("mi-my-position");j.current=le}E.current.mapsindoors=i,j.current.mapsindoors=i,d&&(E.current.primaryColor=d),u&&j.current&&u(j.current)}},[e,i,o,u,d]),be.useEffect(()=>{if(j.current){if(j.current.stopListeningForPosition&&typeof j.current.stopListeningForPosition=="function"&&j.current.stopListeningForPosition(),_&&typeof _=="object"){if(j.current.customPositionProvider||(j.current.customPositionProvider=new rG),Object.keys(_).length===0)return;G(_)}return()=>{j.current&&j.current.stopListeningForPosition&&typeof j.current.stopListeningForPosition=="function"&&j.current.stopListeningForPosition()}}},[_]),be.useEffect(()=>{if(!E.current||!j.current)return;const le=(fe,ve)=>{const Ze=document.querySelector(`.${ve}`);Ze&&!Ze.contains(fe)&&(fe.remove(),Ze.appendChild(fe))};V("floorSelector")&&le(E.current,X_.floorSelector.className),V("myPosition")&&le(j.current,X_.myPosition.className)},[a,V]),be.useEffect(()=>{Object.entries(X_).forEach(([le,fe])=>{const ve=document.querySelector(`.${fe.className}`);ve&&(V(le)?ve.style.display="":ve.style.display="none")})},[b,V,a]),a?Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-container desktop top-right",children:[ie.venueSelector,ie.viewSelector,ie.languageSelector,ie.viewModeSwitch,ie.myPosition,ie.floorSelector]}),Pe.jsx("div",{className:"map-controls-container desktop bottom-right",children:ie.resetView})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"map-controls-left-column mobile-column",children:[ie.venueSelector,ie.viewModeSwitch,ie.viewSelector,ie.languageSelector]}),Pe.jsxs("div",{className:"map-controls-right-column mobile-column",children:[ie.myPosition,ie.floorSelector]})]})}const oG=be.memo(yN),Bae="",sG=be.lazy(()=>Promise.resolve().then(()=>Gne)),aG=be.lazy(()=>Promise.resolve().then(()=>Xne)),Df={Google:"google",Mapbox:"mapbox"};_N.propTypes={apiKey:dt.string.isRequired,gmApiKey:dt.string,mapboxAccessToken:dt.string,center:dt.object,zoom:dt.number,bounds:dt.object,bearing:dt.number,pitch:dt.number,resetUICounter:dt.number,mapOptions:dt.object,onInitialized:dt.func,gmMapId:dt.string,devicePosition:dt.object};function _N({apiKey:e,gmApiKey:i,mapboxAccessToken:o,center:u,zoom:d,bounds:_,bearing:b,pitch:a,resetUICounter:E,mapOptions:j,onInitialized:V,gmMapId:ie,devicePosition:G}){var St;const[le,fe]=be.useState(),[ve,Ze]=be.useState(),[me,te]=be.useState(),[ee,re]=be.useState(),[Me,we]=be.useState(),[We,ot]=be.useState(),[$e,xt]=be.useState(),ut=be.useMemo(()=>{var Jt;return((Jt=We==null?void 0:We.appSettings)==null?void 0:Jt.excludeFromUI)||""},[(St=We==null?void 0:We.appSettings)==null?void 0:St.excludeFromUI]);be.useEffect(()=>{window.customElements.get("mi-floor-selector")||WE()},[]),be.useEffect(()=>{e&&(window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),le===Df.Mapbox&&(window.mapsindoors.services.SolutionsService.getSolution().then(Jt=>{we(Jt)}),window.mapsindoors.services.AppConfigService.getConfig().then(Jt=>{ot(Jt)})))},[e,le]);const jt=Jt=>{xt(Jt);const Tt=new window.mapsindoors.MapsIndoors({mapView:Jt});Tt.once("building_changed",bt=>{const qt=Tt.getVenue();bt&&qt&&bt.venueId!==qt.id&&Tt.setVenue(bt.venueId)}),Tt.on("mouseenter",()=>{var qt;const bt=Tt.getHoveredLocation();((qt=bt==null?void 0:bt.properties.locationSettings)==null?void 0:qt.selectable)===!1&&Tt.unhoverLocation()}),Tt.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),Ze(Tt)};return be.useEffect(()=>{typeof V=="function"&&ve&&me&&typeof ee=="boolean"&&V(ve,me,ee)},[ve,me,ee]),be.useEffect(()=>{Me&&le===Df.Mapbox&&["mapbox","3dwalls","floorplan"].every(Jt=>Me.modules.map(Tt=>Tt.toLowerCase()).includes(Jt))?re(!0):re(!1)},[Me,le]),be.useEffect(()=>{o?fe(Df.Mapbox):i&&fe(Df.Google)},[i,o]),Pe.jsxs(Pe.Fragment,{children:[le===Df.Google&&Pe.jsx(be.Suspense,{children:Pe.jsx(aG,{mapsIndoorsInstance:ve,apiKey:i,onInitialized:jt,center:u,zoom:d,mapOptions:j,heading:b,tilt:a,bounds:_,gmMapId:ie})}),le===Df.Mapbox&&Pe.jsx(be.Suspense,{children:Pe.jsx(sG,{mapsIndoorsInstance:ve,accessToken:o,onInitialized:jt,center:u,zoom:d,mapOptions:j,bearing:b,pitch:a,bounds:_,resetViewMode:E,viewModeSwitchVisible:ee,appConfig:We})}),ve&&$e&&le&&Pe.jsx(oG,{mapType:le,mapsIndoorsInstance:ve,mapInstance:$e,onPositionControl:te,brandingColor:j==null?void 0:j.brandingColor,devicePosition:G,excludedElements:ut})]})}const us={Google:"google",Mapbox:"mapbox"},ca=kn({key:"mapsIndoorsInstance",default:null,dangerouslyAllowMutability:!0}),lG=e=>{const i=Ei(ca),o=be.useRef(),[u,d]=be.useState([]);be.useEffect(()=>{(async()=>{if(i&&e){for(const a of u)o.current.disableLiveData(a);o.current=new window.mapsindoors.LiveDataManager(i);const b=await o.current.LiveDataInfo.activeDomainTypes();for(const a of b)await o.current.enableLiveData(a);d(b)}})()},[e,i])},J_=kn({key:"userPosition",default:null}),G3=kn({key:"directionsService",default:null}),ev=kn({key:"mapType",default:void 0}),Z3=kn({key:"apiKey",default:null}),W3=kn({key:"gmApiKey",default:null}),tv=kn({key:"mapboxAccessToken",default:null}),iv=kn({key:"filteredLocations",default:void 0}),nv=kn({key:"filteredLocationsByExternalID",default:void 0}),vN=kn({key:"tileStyle",default:null}),xN=kn({key:"positionControl",default:null,dangerouslyAllowMutability:!0}),q3=kn({key:"bearing",default:0}),rv=kn({key:"pitch",default:null}),wN=kn({key:"solution",default:null,dangerouslyAllowMutability:!0}),zm=kn({key:"notificationMessage",default:null});function Om(){return new Promise(e=>{const i=document.querySelector(".modal--open"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-(i==null?void 0:i.offsetTop));else{const u=new MutationObserver(()=>{const d=document.querySelector(".modal--open");d&&(u.disconnect(),e(o.offsetHeight-(d==null?void 0:d.offsetTop)))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const km=kn({key:"categories",default:[]}),K3=kn({key:"kioskOriginLocationId",default:void 0}),ov=kn({key:"locationId",default:void 0}),bN=kn({key:"startZoomLevel",default:null}),bu=kn({key:"currentVenueName",default:null}),jm=kn({key:"venues",default:[]}),X3=kn({key:"venueWasSelected",default:!1}),sv=kn({key:"isMapReady",default:!1});function Sf(){return new Promise(e=>{const i=document.querySelector(".sheet--active"),o=document.querySelector(".mapsindoors-map");if(i)e(o.offsetHeight-i.offsetTop);else{const u=new MutationObserver(()=>{const d=document.querySelector(".sheet--active");d&&(u.disconnect(),e(o.offsetHeight-d.offsetTop))});u.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}function kh(){return new Promise(e=>{const i=document.querySelector(".modal--open");if(i)e((i==null?void 0:i.offsetWidth)+(i==null?void 0:i.offsetLeft)*2);else{const o=new MutationObserver(()=>{const u=document.querySelector(".modal--open");u&&(o.disconnect(),e((u==null?void 0:u.offsetWidth)+(u==null?void 0:u.offsetLeft)*2))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const MN=kn({key:"timeout",default:void 0});function IN(){const[e,i]=be.useState(!1),o=Ei(sv),u=Ei(MN);return be.useEffect(()=>{if(!o||!u)return;let d;const _=()=>{i(!1),window.clearTimeout(d),d=window.setTimeout(b,u*1e3)},b=()=>{i(!0)};return d=window.setTimeout(b,u*1e3),window.addEventListener("mousemove",_),window.addEventListener("mousedown",_),window.addEventListener("resize",_),window.addEventListener("keydown",_),window.addEventListener("touchstart",_),window.addEventListener("wheel",_),()=>{window.removeEventListener("mousemove",_),window.removeEventListener("mousedown",_),window.removeEventListener("resize",_),window.removeEventListener("keydown",_),window.removeEventListener("touchstart",_),window.removeEventListener("wheel",_),window.clearTimeout(d)}},[u,o]),e}const cG=e=>{const[i,o]=be.useState(window.matchMedia(e).matches);return be.useEffect(()=>{const u=window.matchMedia(e);u.matches!==i&&o(u.matches);const d=()=>o(u.matches);return window.addEventListener("resize",d),()=>window.removeEventListener("resize",d)},[i,e]),i},Ja=()=>cG("(min-width: 992px)"),TN=kn({key:"mapboxViewMode",default:null}),J3=Object.freeze({initial3D:1,clicked3D:2,clicked2D:3}),uG=B_({key:"currentPitch",get:({get:e})=>{const i=e(rv),o=e(TN);let u;switch(o){case J3.initial3D:u=i??45;break;case J3.clicked3D:u=45;break;case J3.clicked2D:u=0;break;default:u=i}return u}}),DN=kn({key:"center",default:null});function kr(e){return e==null}var xs=63710088e-1,e4={centimeters:xs*100,centimetres:xs*100,degrees:xs/111325,feet:xs*3.28084,inches:xs*39.37,kilometers:xs/1e3,kilometres:xs/1e3,meters:xs,metres:xs,miles:xs/1609.344,millimeters:xs*1e3,millimetres:xs*1e3,nauticalmiles:xs/1852,radians:1,yards:xs*1.0936},hG={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/xs,yards:1.0936133},t4={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 Na(e,i,o){o===void 0&&(o={});var u={type:"Feature"};return(o.id===0||o.id)&&(u.id=o.id),o.bbox&&(u.bbox=o.bbox),u.properties=i||{},u.geometry=e,u}function dG(e,i,o){switch(e){case"Point":return el(i).geometry;case"LineString":return tl(i).geometry;case"Polygon":return i4(i).geometry;case"MultiPoint":return SN(i).geometry;case"MultiLineString":return n4(i).geometry;case"MultiPolygon":return AN(i).geometry;default:throw new Error(e+" is invalid")}}function el(e,i,o){if(o===void 0&&(o={}),!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(!av(e[0])||!av(e[1]))throw new Error("coordinates must contain numbers");var u={type:"Point",coordinates:e};return Na(u,i,o)}function fG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return el(u,i)}),o)}function i4(e,i,o){o===void 0&&(o={});for(var u=0,d=e;u<d.length;u++){var _=d[u];if(_.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var b=0;b<_[_.length-1].length;b++)if(_[_.length-1][b]!==_[0][b])throw new Error("First and last Position are not equivalent.")}var a={type:"Polygon",coordinates:e};return Na(a,i,o)}function pG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return i4(u,i)}),o)}function tl(e,i,o){if(o===void 0&&(o={}),e.length<2)throw new Error("coordinates must be an array of two or more positions");var u={type:"LineString",coordinates:e};return Na(u,i,o)}function gG(e,i,o){return o===void 0&&(o={}),Mu(e.map(function(u){return tl(u,i)}),o)}function Mu(e,i){i===void 0&&(i={});var o={type:"FeatureCollection"};return i.id&&(o.id=i.id),i.bbox&&(o.bbox=i.bbox),o.features=e,o}function n4(e,i,o){o===void 0&&(o={});var u={type:"MultiLineString",coordinates:e};return Na(u,i,o)}function SN(e,i,o){o===void 0&&(o={});var u={type:"MultiPoint",coordinates:e};return Na(u,i,o)}function AN(e,i,o){o===void 0&&(o={});var u={type:"MultiPolygon",coordinates:e};return Na(u,i,o)}function mG(e,i,o){o===void 0&&(o={});var u={type:"GeometryCollection",geometries:e};return Na(u,i,o)}function yG(e,i){if(i===void 0&&(i=0),i&&!(i>=0))throw new Error("precision must be a positive number");var o=Math.pow(10,i||0);return Math.round(e*o)/o}function CN(e,i){i===void 0&&(i="kilometers");var o=e4[i];if(!o)throw new Error(i+" units is invalid");return e*o}function r4(e,i){i===void 0&&(i="kilometers");var o=e4[i];if(!o)throw new Error(i+" units is invalid");return e/o}function _G(e,i){return EN(r4(e,i))}function vG(e){var i=e%360;return i<0&&(i+=360),i}function EN(e){var i=e%(2*Math.PI);return i*180/Math.PI}function xG(e){var i=e%360;return i*Math.PI/180}function wG(e,i,o){if(i===void 0&&(i="kilometers"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("length must be a positive number");return CN(r4(e,i),o)}function bG(e,i,o){if(i===void 0&&(i="meters"),o===void 0&&(o="kilometers"),!(e>=0))throw new Error("area must be a positive number");var u=t4[i];if(!u)throw new Error("invalid original units");var d=t4[o];if(!d)throw new Error("invalid final units");return e/u*d}function av(e){return!isNaN(e)&&e!==null&&!Array.isArray(e)}function o4(e){return!!e&&e.constructor===Object}function MG(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(i){if(!av(i))throw new Error("bbox must only contain numbers")})}function IG(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 TG=Object.freeze(Object.defineProperty({__proto__:null,areaFactors:t4,bearingToAzimuth:vG,convertArea:bG,convertLength:wG,degreesToRadians:xG,earthRadius:xs,factors:e4,feature:Na,featureCollection:Mu,geometry:dG,geometryCollection:mG,isNumber:av,isObject:o4,lengthToDegrees:_G,lengthToRadians:r4,lineString:tl,lineStrings:gG,multiLineString:n4,multiPoint:SN,multiPolygon:AN,point:el,points:fG,polygon:i4,polygons:pG,radiansToDegrees:EN,radiansToLength:CN,round:yG,unitsFactors:hG,validateBBox:MG,validateId:IG},Symbol.toStringTag,{value:"Module"}));function Af(e,i,o){if(e!==null)for(var u,d,_,b,a,E,j,V=0,ie=0,G,le=e.type,fe=le==="FeatureCollection",ve=le==="Feature",Ze=fe?e.features.length:1,me=0;me<Ze;me++){j=fe?e.features[me].geometry:ve?e.geometry:e,G=j?j.type==="GeometryCollection":!1,a=G?j.geometries.length:1;for(var te=0;te<a;te++){var ee=0,re=0;if(b=G?j.geometries[te]:j,b!==null){E=b.coordinates;var Me=b.type;switch(V=o&&(Me==="Polygon"||Me==="MultiPolygon")?1:0,Me){case null:break;case"Point":if(i(E,ie,me,ee,re)===!1)return!1;ie++,ee++;break;case"LineString":case"MultiPoint":for(u=0;u<E.length;u++){if(i(E[u],ie,me,ee,re)===!1)return!1;ie++,Me==="MultiPoint"&&ee++}Me==="LineString"&&ee++;break;case"Polygon":case"MultiLineString":for(u=0;u<E.length;u++){for(d=0;d<E[u].length-V;d++){if(i(E[u][d],ie,me,ee,re)===!1)return!1;ie++}Me==="MultiLineString"&&ee++,Me==="Polygon"&&re++}Me==="Polygon"&&ee++;break;case"MultiPolygon":for(u=0;u<E.length;u++){for(re=0,d=0;d<E[u].length;d++){for(_=0;_<E[u][d].length-V;_++){if(i(E[u][d][_],ie,me,ee,re)===!1)return!1;ie++}re++}ee++}break;case"GeometryCollection":for(u=0;u<b.geometries.length;u++)if(Af(b.geometries[u],i,o)===!1)return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function DG(e,i,o,u){var d=o;return Af(e,function(_,b,a,E,j){b===0&&o===void 0?d=_:d=i(d,_,b,a,E,j)},u),d}function NN(e,i){var o;switch(e.type){case"FeatureCollection":for(o=0;o<e.features.length&&i(e.features[o].properties,o)!==!1;o++);break;case"Feature":i(e.properties,0);break}}function SG(e,i,o){var u=o;return NN(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function lv(e,i){if(e.type==="Feature")i(e,0);else if(e.type==="FeatureCollection")for(var o=0;o<e.features.length&&i(e.features[o],o)!==!1;o++);}function AG(e,i,o){var u=o;return lv(e,function(d,_){_===0&&o===void 0?u=d:u=i(u,d,_)}),u}function CG(e){var i=[];return Af(e,function(o){i.push(o)}),i}function s4(e,i){var o,u,d,_,b,a,E,j,V,ie,G=0,le=e.type==="FeatureCollection",fe=e.type==="Feature",ve=le?e.features.length:1;for(o=0;o<ve;o++){for(a=le?e.features[o].geometry:fe?e.geometry:e,j=le?e.features[o].properties:fe?e.properties:{},V=le?e.features[o].bbox:fe?e.bbox:void 0,ie=le?e.features[o].id:fe?e.id:void 0,E=a?a.type==="GeometryCollection":!1,b=E?a.geometries.length:1,d=0;d<b;d++){if(_=E?a.geometries[d]:a,_===null){if(i(null,G,j,V,ie)===!1)return!1;continue}switch(_.type){case"Point":case"LineString":case"MultiPoint":case"Polygon":case"MultiLineString":case"MultiPolygon":{if(i(_,G,j,V,ie)===!1)return!1;break}case"GeometryCollection":{for(u=0;u<_.geometries.length;u++)if(i(_.geometries[u],G,j,V,ie)===!1)return!1;break}default:throw new Error("Unknown Geometry Type")}}G++}}function EG(e,i,o){var u=o;return s4(e,function(d,_,b,a,E){_===0&&o===void 0?u=d:u=i(u,d,_,b,a,E)}),u}function _c(e,i){s4(e,function(o,u,d,_,b){var a=o===null?null:o.type;switch(a){case null:case"Point":case"LineString":case"Polygon":return i(Na(o,d,{bbox:_,id:b}),u,0)===!1?!1:void 0}var E;switch(a){case"MultiPoint":E="Point";break;case"MultiLineString":E="LineString";break;case"MultiPolygon":E="Polygon";break}for(var j=0;j<o.coordinates.length;j++){var V=o.coordinates[j],ie={type:E,coordinates:V};if(i(Na(ie,d),u,j)===!1)return!1}})}function NG(e,i,o){var u=o;return _c(e,function(d,_,b){_===0&&b===0&&o===void 0?u=d:u=i(u,d,_,b)}),u}function LN(e,i){_c(e,function(o,u,d){var _=0;if(o.geometry){var b=o.geometry.type;if(!(b==="Point"||b==="MultiPoint")){var a,E=0,j=0,V=0;if(Af(o,function(ie,G,le,fe,ve){if(a===void 0||u>E||fe>j||ve>V){a=ie,E=u,j=fe,V=ve,_=0;return}var Ze=tl([a,ie],o.properties);if(i(Ze,u,d,ve,_)===!1)return!1;_++,a=ie})===!1)return!1}}})}function LG(e,i,o){var u=o,d=!1;return LN(e,function(_,b,a,E,j){d===!1&&o===void 0?u=_:u=i(u,_,b,a,E,j),d=!0}),u}function zN(e,i){if(!e)throw new Error("geojson is required");_c(e,function(o,u,d){if(o.geometry!==null){var _=o.geometry.type,b=o.geometry.coordinates;switch(_){case"LineString":if(i(o,u,d,0,0)===!1)return!1;break;case"Polygon":for(var a=0;a<b.length;a++)if(i(tl(b[a],o.properties),u,d,a)===!1)return!1;break}}})}function zG(e,i,o){var u=o;return zN(e,function(d,_,b,a){_===0&&o===void 0?u=d:u=i(u,d,_,b,a)}),u}function OG(e,i){if(i=i||{},!o4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.segmentIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":case"MultiPoint":return null;case"LineString":return _<0&&(_=E.length+_-1),tl([E[_],E[_+1]],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_-1),tl([E[d][_],E[d][_+1]],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_-1),tl([E[u][_],E[u][_+1]],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_-1),tl([E[u][d][_],E[u][d][_+1]],b,i)}throw new Error("geojson is invalid")}function kG(e,i){if(i=i||{},!o4(i))throw new Error("options is invalid");var o=i.featureIndex||0,u=i.multiFeatureIndex||0,d=i.geometryIndex||0,_=i.coordIndex||0,b=i.properties,a;switch(e.type){case"FeatureCollection":o<0&&(o=e.features.length+o),b=b||e.features[o].properties,a=e.features[o].geometry;break;case"Feature":b=b||e.properties,a=e.geometry;break;case"Point":case"MultiPoint":return null;case"LineString":case"Polygon":case"MultiLineString":case"MultiPolygon":a=e;break;default:throw new Error("geojson is invalid")}if(a===null)return null;var E=a.coordinates;switch(a.type){case"Point":return el(E,b,i);case"MultiPoint":return u<0&&(u=E.length+u),el(E[u],b,i);case"LineString":return _<0&&(_=E.length+_),el(E[_],b,i);case"Polygon":return d<0&&(d=E.length+d),_<0&&(_=E[d].length+_),el(E[d][_],b,i);case"MultiLineString":return u<0&&(u=E.length+u),_<0&&(_=E[u].length+_),el(E[u][_],b,i);case"MultiPolygon":return u<0&&(u=E.length+u),d<0&&(d=E[u].length+d),_<0&&(_=E[u][d].length-_),el(E[u][d][_],b,i)}throw new Error("geojson is invalid")}const jG=Object.freeze(Object.defineProperty({__proto__:null,coordAll:CG,coordEach:Af,coordReduce:DG,featureEach:lv,featureReduce:AG,findPoint:kG,findSegment:OG,flattenEach:_c,flattenReduce:NG,geomEach:s4,geomReduce:EG,lineEach:zN,lineReduce:zG,propEach:NN,propReduce:SG,segmentEach:LN,segmentReduce:LG},Symbol.toStringTag,{value:"Module"}));function cv(e){var i=[1/0,1/0,-1/0,-1/0];return Af(e,function(o){i[0]>o[0]&&(i[0]=o[0]),i[1]>o[1]&&(i[1]=o[1]),i[2]<o[0]&&(i[2]=o[0]),i[3]<o[1]&&(i[3]=o[1])}),i}cv.default=cv;const PG=Object.freeze(Object.defineProperty({__proto__:null,default:cv},Symbol.toStringTag,{value:"Module"}));function RG(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 Pm(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 uv(e){return e.type==="Feature"?e.geometry:e}function Rm(e,i,o){if(o===void 0&&(o={}),!e)throw new Error("point is required");if(!i)throw new Error("polygon is required");var u=RG(e),d=uv(i),_=d.type,b=i.bbox,a=d.coordinates;if(b&&BG(u,b)===!1)return!1;_==="Polygon"&&(a=[a]);for(var E=!1,j=0;j<a.length&&!E;j++)if(ON(u,a[j][0],o.ignoreBoundary)){for(var V=!1,ie=1;ie<a[j].length&&!V;)ON(u,a[j][ie],!o.ignoreBoundary)&&(V=!0),ie++;V||(E=!0)}return E}function ON(e,i,o){var u=!1;i[0][0]===i[i.length-1][0]&&i[0][1]===i[i.length-1][1]&&(i=i.slice(0,i.length-1));for(var d=0,_=i.length-1;d<i.length;_=d++){var b=i[d][0],a=i[d][1],E=i[_][0],j=i[_][1],V=e[1]*(b-E)+a*(E-e[0])+j*(e[0]-b)===0&&(b-e[0])*(E-e[0])<=0&&(a-e[1])*(j-e[1])<=0;if(V)return!o;var ie=a>e[1]!=j>e[1]&&e[0]<(E-b)*(e[1]-a)/(j-a)+b;ie&&(u=!u)}return u}function BG(e,i){return i[0]<=e[0]&&i[1]<=e[1]&&i[2]>=e[0]&&i[3]>=e[1]}function FG(e,i){i===void 0&&(i={});var o=cv(e),u=(o[0]+o[2])/2,d=(o[1]+o[3])/2;return el([u,d],i.properties,i)}function kN(e){if(!e)throw new Error("geojson is required");var i=[];return _c(e,function(o){UG(o,i)}),Mu(i)}function UG(e,i){var o=[],u=e.geometry;if(u!==null){switch(u.type){case"Polygon":o=Pm(u);break;case"LineString":o=[Pm(u)]}o.forEach(function(d){var _=VG(d,e.properties);_.forEach(function(b){b.id=i.length,i.push(b)})})}}function VG(e,i){var o=[];return e.reduce(function(u,d){var _=tl([u,d],i);return _.bbox=QG(u,d),o.push(_),d}),o}function QG(e,i){var o=e[0],u=e[1],d=i[0],_=i[1],b=o<d?o:d,a=u<_?u:_,E=o>d?o:d,j=u>_?u:_;return[b,a,E,j]}var a4={exports:{}},jN={exports:{}};(function(e,i){(function(o,u){e.exports=u()})(kd,function(){function o(te,ee,re,Me,we){(function We(ot,$e,xt,ut,jt){for(;ut>xt;){if(ut-xt>600){var St=ut-xt+1,Jt=$e-xt+1,Tt=Math.log(St),bt=.5*Math.exp(2*Tt/3),qt=.5*Math.sqrt(Tt*bt*(St-bt)/St)*(Jt-St/2<0?-1:1),Ot=Math.max(xt,Math.floor($e-Jt*bt/St+qt)),Vt=Math.min(ut,Math.floor($e+(St-Jt)*bt/St+qt));We(ot,$e,Ot,Vt,jt)}var W=ot[$e],ne=xt,T=ut;for(u(ot,xt,$e),jt(ot[ut],W)>0&&u(ot,xt,ut);ne<T;){for(u(ot,ne,T),ne++,T--;jt(ot[ne],W)<0;)ne++;for(;jt(ot[T],W)>0;)T--}jt(ot[xt],W)===0?u(ot,xt,T):u(ot,++T,ut),T<=$e&&(xt=T+1),$e<=T&&(ut=T-1)}})(te,ee,re||0,Me||te.length-1,we||d)}function u(te,ee,re){var Me=te[ee];te[ee]=te[re],te[re]=Me}function d(te,ee){return te<ee?-1:te>ee?1:0}var _=function(te){te===void 0&&(te=9),this._maxEntries=Math.max(4,te),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function b(te,ee,re){if(!re)return ee.indexOf(te);for(var Me=0;Me<ee.length;Me++)if(re(te,ee[Me]))return Me;return-1}function a(te,ee){E(te,0,te.children.length,ee,te)}function E(te,ee,re,Me,we){we||(we=Ze(null)),we.minX=1/0,we.minY=1/0,we.maxX=-1/0,we.maxY=-1/0;for(var We=ee;We<re;We++){var ot=te.children[We];j(we,te.leaf?Me(ot):ot)}return we}function j(te,ee){return te.minX=Math.min(te.minX,ee.minX),te.minY=Math.min(te.minY,ee.minY),te.maxX=Math.max(te.maxX,ee.maxX),te.maxY=Math.max(te.maxY,ee.maxY),te}function V(te,ee){return te.minX-ee.minX}function ie(te,ee){return te.minY-ee.minY}function G(te){return(te.maxX-te.minX)*(te.maxY-te.minY)}function le(te){return te.maxX-te.minX+(te.maxY-te.minY)}function fe(te,ee){return te.minX<=ee.minX&&te.minY<=ee.minY&&ee.maxX<=te.maxX&&ee.maxY<=te.maxY}function ve(te,ee){return ee.minX<=te.maxX&&ee.minY<=te.maxY&&ee.maxX>=te.minX&&ee.maxY>=te.minY}function Ze(te){return{children:te,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function me(te,ee,re,Me,we){for(var We=[ee,re];We.length;)if(!((re=We.pop())-(ee=We.pop())<=Me)){var ot=ee+Math.ceil((re-ee)/Me/2)*Me;o(te,ot,ee,re,we),We.push(ee,ot,ot,re)}}return _.prototype.all=function(){return this._all(this.data,[])},_.prototype.search=function(te){var ee=this.data,re=[];if(!ve(te,ee))return re;for(var Me=this.toBBox,we=[];ee;){for(var We=0;We<ee.children.length;We++){var ot=ee.children[We],$e=ee.leaf?Me(ot):ot;ve(te,$e)&&(ee.leaf?re.push(ot):fe(te,$e)?this._all(ot,re):we.push(ot))}ee=we.pop()}return re},_.prototype.collides=function(te){var ee=this.data;if(!ve(te,ee))return!1;for(var re=[];ee;){for(var Me=0;Me<ee.children.length;Me++){var we=ee.children[Me],We=ee.leaf?this.toBBox(we):we;if(ve(te,We)){if(ee.leaf||fe(te,We))return!0;re.push(we)}}ee=re.pop()}return!1},_.prototype.load=function(te){if(!te||!te.length)return this;if(te.length<this._minEntries){for(var ee=0;ee<te.length;ee++)this.insert(te[ee]);return this}var re=this._build(te.slice(),0,te.length-1,0);if(this.data.children.length)if(this.data.height===re.height)this._splitRoot(this.data,re);else{if(this.data.height<re.height){var Me=this.data;this.data=re,re=Me}this._insert(re,this.data.height-re.height-1,!0)}else this.data=re;return this},_.prototype.insert=function(te){return te&&this._insert(te,this.data.height-1),this},_.prototype.clear=function(){return this.data=Ze([]),this},_.prototype.remove=function(te,ee){if(!te)return this;for(var re,Me,we,We=this.data,ot=this.toBBox(te),$e=[],xt=[];We||$e.length;){if(We||(We=$e.pop(),Me=$e[$e.length-1],re=xt.pop(),we=!0),We.leaf){var ut=b(te,We.children,ee);if(ut!==-1)return We.children.splice(ut,1),$e.push(We),this._condense($e),this}we||We.leaf||!fe(We,ot)?Me?(re++,We=Me.children[re],we=!1):We=null:($e.push(We),xt.push(re),re=0,Me=We,We=We.children[0])}return this},_.prototype.toBBox=function(te){return te},_.prototype.compareMinX=function(te,ee){return te.minX-ee.minX},_.prototype.compareMinY=function(te,ee){return te.minY-ee.minY},_.prototype.toJSON=function(){return this.data},_.prototype.fromJSON=function(te){return this.data=te,this},_.prototype._all=function(te,ee){for(var re=[];te;)te.leaf?ee.push.apply(ee,te.children):re.push.apply(re,te.children),te=re.pop();return ee},_.prototype._build=function(te,ee,re,Me){var we,We=re-ee+1,ot=this._maxEntries;if(We<=ot)return a(we=Ze(te.slice(ee,re+1)),this.toBBox),we;Me||(Me=Math.ceil(Math.log(We)/Math.log(ot)),ot=Math.ceil(We/Math.pow(ot,Me-1))),(we=Ze([])).leaf=!1,we.height=Me;var $e=Math.ceil(We/ot),xt=$e*Math.ceil(Math.sqrt(ot));me(te,ee,re,xt,this.compareMinX);for(var ut=ee;ut<=re;ut+=xt){var jt=Math.min(ut+xt-1,re);me(te,ut,jt,$e,this.compareMinY);for(var St=ut;St<=jt;St+=$e){var Jt=Math.min(St+$e-1,jt);we.children.push(this._build(te,St,Jt,Me-1))}}return a(we,this.toBBox),we},_.prototype._chooseSubtree=function(te,ee,re,Me){for(;Me.push(ee),!ee.leaf&&Me.length-1!==re;){for(var we=1/0,We=1/0,ot=void 0,$e=0;$e<ee.children.length;$e++){var xt=ee.children[$e],ut=G(xt),jt=(St=te,Jt=xt,(Math.max(Jt.maxX,St.maxX)-Math.min(Jt.minX,St.minX))*(Math.max(Jt.maxY,St.maxY)-Math.min(Jt.minY,St.minY))-ut);jt<We?(We=jt,we=ut<we?ut:we,ot=xt):jt===We&&ut<we&&(we=ut,ot=xt)}ee=ot||ee.children[0]}var St,Jt;return ee},_.prototype._insert=function(te,ee,re){var Me=re?te:this.toBBox(te),we=[],We=this._chooseSubtree(Me,this.data,ee,we);for(We.children.push(te),j(We,Me);ee>=0&&we[ee].children.length>this._maxEntries;)this._split(we,ee),ee--;this._adjustParentBBoxes(Me,we,ee)},_.prototype._split=function(te,ee){var re=te[ee],Me=re.children.length,we=this._minEntries;this._chooseSplitAxis(re,we,Me);var We=this._chooseSplitIndex(re,we,Me),ot=Ze(re.children.splice(We,re.children.length-We));ot.height=re.height,ot.leaf=re.leaf,a(re,this.toBBox),a(ot,this.toBBox),ee?te[ee-1].children.push(ot):this._splitRoot(re,ot)},_.prototype._splitRoot=function(te,ee){this.data=Ze([te,ee]),this.data.height=te.height+1,this.data.leaf=!1,a(this.data,this.toBBox)},_.prototype._chooseSplitIndex=function(te,ee,re){for(var Me,we,We,ot,$e,xt,ut,jt=1/0,St=1/0,Jt=ee;Jt<=re-ee;Jt++){var Tt=E(te,0,Jt,this.toBBox),bt=E(te,Jt,re,this.toBBox),qt=(we=Tt,We=bt,ot=void 0,$e=void 0,xt=void 0,ut=void 0,ot=Math.max(we.minX,We.minX),$e=Math.max(we.minY,We.minY),xt=Math.min(we.maxX,We.maxX),ut=Math.min(we.maxY,We.maxY),Math.max(0,xt-ot)*Math.max(0,ut-$e)),Ot=G(Tt)+G(bt);qt<jt?(jt=qt,Me=Jt,St=Ot<St?Ot:St):qt===jt&&Ot<St&&(St=Ot,Me=Jt)}return Me||re-ee},_.prototype._chooseSplitAxis=function(te,ee,re){var Me=te.leaf?this.compareMinX:V,we=te.leaf?this.compareMinY:ie;this._allDistMargin(te,ee,re,Me)<this._allDistMargin(te,ee,re,we)&&te.children.sort(Me)},_.prototype._allDistMargin=function(te,ee,re,Me){te.children.sort(Me);for(var we=this.toBBox,We=E(te,0,ee,we),ot=E(te,re-ee,re,we),$e=le(We)+le(ot),xt=ee;xt<re-ee;xt++){var ut=te.children[xt];j(We,te.leaf?we(ut):ut),$e+=le(We)}for(var jt=re-ee-1;jt>=ee;jt--){var St=te.children[jt];j(ot,te.leaf?we(St):St),$e+=le(ot)}return $e},_.prototype._adjustParentBBoxes=function(te,ee,re){for(var Me=re;Me>=0;Me--)j(ee[Me],te)},_.prototype._condense=function(te){for(var ee=te.length-1,re=void 0;ee>=0;ee--)te[ee].children.length===0?ee>0?(re=te[ee-1].children).splice(re.indexOf(te[ee]),1):this.clear():a(te[ee],this.toBBox)},_})})(jN);var HG=jN.exports;const $G=Vw(TG),YG=Vw(jG),GG=Vw(PG);var Tl=HG,PN=$G,RN=YG,Cf=GG.default,ZG=RN.featureEach;RN.coordEach,PN.polygon;var BN=PN.featureCollection;function FN(e){var i=new Tl(e);return i.insert=function(o){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.insert.call(this,o)},i.load=function(o){var u=[];return Array.isArray(o)?o.forEach(function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}):ZG(o,function(d){if(d.type!=="Feature")throw new Error("invalid features");d.bbox=d.bbox?d.bbox:Cf(d),u.push(d)}),Tl.prototype.load.call(this,u)},i.remove=function(o,u){if(o.type!=="Feature")throw new Error("invalid feature");return o.bbox=o.bbox?o.bbox:Cf(o),Tl.prototype.remove.call(this,o,u)},i.clear=function(){return Tl.prototype.clear.call(this)},i.search=function(o){var u=Tl.prototype.search.call(this,this.toBBox(o));return BN(u)},i.collides=function(o){return Tl.prototype.collides.call(this,this.toBBox(o))},i.all=function(){var o=Tl.prototype.all.call(this);return BN(o)},i.toJSON=function(){return Tl.prototype.toJSON.call(this)},i.fromJSON=function(o){return Tl.prototype.fromJSON.call(this,o)},i.toBBox=function(o){var u;if(o.bbox)u=o.bbox;else if(Array.isArray(o)&&o.length===4)u=o;else if(Array.isArray(o)&&o.length===6)u=[o[0],o[1],o[3],o[4]];else if(o.type==="Feature")u=Cf(o);else if(o.type==="FeatureCollection")u=Cf(o);else throw new Error("invalid geojson");return{minX:u[0],minY:u[1],maxX:u[2],maxY:u[3]}},i}a4.exports=FN,a4.exports.default=FN;var WG=a4.exports;const qG=rc(WG);function l4(e,i){var o={},u=[];if(e.type==="LineString"&&(e=Na(e)),i.type==="LineString"&&(i=Na(i)),e.type==="Feature"&&i.type==="Feature"&&e.geometry!==null&&i.geometry!==null&&e.geometry.type==="LineString"&&i.geometry.type==="LineString"&&e.geometry.coordinates.length===2&&i.geometry.coordinates.length===2){var d=UN(e,i);return d&&u.push(d),Mu(u)}var _=qG();return _.load(kN(i)),lv(kN(e),function(b){lv(_.search(b),function(a){var E=UN(b,a);if(E){var j=Pm(E).join(",");o[j]||(o[j]=!0,u.push(E))}})}),Mu(u)}function UN(e,i){var o=Pm(e),u=Pm(i);if(o.length!==2)throw new Error("<intersects> line1 must only contain 2 coordinates");if(u.length!==2)throw new Error("<intersects> line2 must only contain 2 coordinates");var d=o[0][0],_=o[0][1],b=o[1][0],a=o[1][1],E=u[0][0],j=u[0][1],V=u[1][0],ie=u[1][1],G=(ie-j)*(b-d)-(V-E)*(a-_),le=(V-E)*(_-j)-(ie-j)*(d-E),fe=(b-d)*(_-j)-(a-_)*(d-E);if(G===0)return null;var ve=le/G,Ze=fe/G;if(ve>=0&&ve<=1&&Ze>=0&&Ze<=1){var me=d+ve*(b-d),te=_+ve*(a-_);return el([me,te])}return null}function c4(e,i){i===void 0&&(i={});var o=uv(e);switch(!i.properties&&e.type==="Feature"&&(i.properties=e.properties),o.type){case"Polygon":return KG(o,i);case"MultiPolygon":return XG(o,i);default:throw new Error("invalid poly")}}function KG(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{};return VN(u,d)}function XG(e,i){i===void 0&&(i={});var o=uv(e),u=o.coordinates,d=i.properties?i.properties:e.type==="Feature"?e.properties:{},_=[];return u.forEach(function(b){_.push(VN(b,d))}),Mu(_)}function VN(e,i){return e.length>1?n4(e,i):tl(e[0],i)}function JG(e,i){var o=!0;return _c(e,function(u){_c(i,function(d){if(o===!1)return!1;o=eZ(u.geometry,d.geometry)})}),o}function eZ(e,i){switch(e.type){case"Point":switch(i.type){case"Point":return!rZ(e.coordinates,i.coordinates);case"LineString":return!QN(i,e);case"Polygon":return!Rm(e,i)}break;case"LineString":switch(i.type){case"Point":return!QN(e,i);case"LineString":return!tZ(e,i);case"Polygon":return!HN(i,e)}break;case"Polygon":switch(i.type){case"Point":return!Rm(i,e);case"LineString":return!HN(e,i);case"Polygon":return!iZ(i,e)}}return!1}function QN(e,i){for(var o=0;o<e.coordinates.length-1;o++)if(nZ(e.coordinates[o],e.coordinates[o+1],i.coordinates))return!0;return!1}function tZ(e,i){var o=l4(e,i);return o.features.length>0}function HN(e,i){for(var o=0,u=i.coordinates;o<u.length;o++){var d=u[o];if(Rm(d,e))return!0}var _=l4(i,c4(e));return _.features.length>0}function iZ(e,i){for(var o=0,u=e.coordinates[0];o<u.length;o++){var d=u[o];if(Rm(d,i))return!0}for(var _=0,b=i.coordinates[0];_<b.length;_++){var a=b[_];if(Rm(a,e))return!0}var E=l4(c4(e),c4(i));return E.features.length>0}function nZ(e,i,o){var u=o[0]-e[0],d=o[1]-e[1],_=i[0]-e[0],b=i[1]-e[1],a=u*b-d*_;return a!==0?!1:Math.abs(_)>=Math.abs(b)?_>0?e[0]<=o[0]&&o[0]<=i[0]:i[0]<=o[0]&&o[0]<=e[0]:b>0?e[1]<=o[1]&&o[1]<=i[1]:i[1]<=o[1]&&o[1]<=e[1]}function rZ(e,i){return e[0]===i[0]&&e[1]===i[1]}function oZ(e,i){var o=!1;return _c(e,function(u){_c(i,function(d){if(o===!0)return!0;o=!JG(u.geometry,d.geometry)})}),o}const sZ=()=>{const[e,i]=be.useState(!1),[o,u]=be.useState(!1),d=Ja(),_=IN(),b=Ei(q3),a=Ei(km),E=Ei(K3),j=Ei(ov),V=Ei(ca),ie=Ei(rv),G=Ei(bN),le=Ei(jm),fe=Ei(uG),ve=Ei(X3),[Ze,me]=be.useState(!1),[te,ee]=sn(bu),re=sn(sv),[Me]=sn(DN),[we,We]=be.useState({id:null,originalRule:null});be.useEffect(()=>{_&&ot()},[_]),be.useEffect(()=>{ot()},[V,te,j,E,ie,b,G,a,Me]);function ot(){const jt=le.find(St=>St.name.toLowerCase()===te.toLowerCase());if(!E&&we.id&&V&&Ze&&(window.mapsindoors.services.LocationsService.getLocation(we.id).then(St=>{St&&(V.setDisplayRule(St.id,we.originalRule||null),me(!1))}),We({id:null,originalRule:null})),V&&jt){if(i(!0),E&&d)We(St=>({...St,id:E})),kr(Me)?window.mapsindoors.services.LocationsService.getLocation(E).then(St=>{if(St){const Jt=St.properties.floor;V.setFloor(Jt);const Tt=V.getDisplayRule(St);We(bt=>({...bt,originalRule:{...Tt}})),$e(St),Om().then(bt=>{u(St.geometry),ua(St.geometry,V,bt,0,G?ut(G):void 0,fe,b)})}}):Om().then(St=>{u(xt().geometry),ua(xt().geometry,V,St,0,ut(G),fe,b)});else if(j&&!ve)kr(Me)?window.mapsindoors.services.LocationsService.getLocation(j).then(St=>{if(St){const Jt=St.properties.floor;V.setFloor(Jt),d?kh().then(Tt=>{u(St.geometry),ua(St.geometry,V,0,Tt,G?ut(G):void 0,fe,b)}):Sf().then(Tt=>{u(St.geometry),ua(St.geometry,V,Tt,0,G?ut(G):void 0,fe,b)})}}):d?kh().then(St=>{u(xt().geometry),ua(xt().geometry,V,0,St,ut(G),fe,b)}):Sf().then(St=>{u(xt().geometry),ua(xt().geometry,V,St,0,ut(G),fe,b)});else if(jt)if(ve)d?(u(jt.geometry),ua(jt.geometry,V,0,0,ut(G),fe,b)):Sf().then(St=>{u(jt.geometry),ua(jt.geometry,V,St,0,ut(G),fe,b)});else{const St=le.find(Jt=>oZ(Jt.geometry,xt().geometry));kr(Me)?(u(jt.geometry),ua(jt.geometry,V,0,0,ut(G),fe,b)):kr(St)?d?kh().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,0,Jt,ut(G),fe,b)}):Sf().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,Jt,0,ut(G),fe,b)}):(d?kh().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,0,Jt,ut(G),fe,b)}):Sf().then(Jt=>{u(xt().geometry),ua(xt().geometry,V,Jt,0,ut(G),fe,b)}),re&&ee(St.name))}}}function $e(jt){if(Ze)return;const St=V.getDisplayRule(jt);St.visible=!0,St.iconSize={width:St.iconSize.width*2,height:St.iconSize.height*2},St.iconVisible=!0,St.zoomFrom=0,St.zoomTo=999,St.clickable=!1,V.setDisplayRule(jt.id,St),me(!0)}function xt(){const[jt,St]=Me?Me.split(",").map(Number):[void 0,void 0];return{geometry:{type:"Point",coordinates:[jt,St]}}}function ut(jt){return kr(jt)?18:jt}return[e,o]};function ua(e,i,o,u,d,_,b){const a=Number(_),E=Number(b),j=d!==void 0?Number(d):void 0;if(j===void 0)i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.goTo({type:"Feature",geometry:e,properties:{}},{maxZoom:j??22,padding:{top:0,right:0,bottom:o,left:u}});else{const V=FG(e);i.getMapView().setCenter({lat:V.geometry.coordinates[1],lng:V.geometry.coordinates[0]}),i.getMapView().tilt(a||0),i.getMapView().rotate(E||0),i.setZoom(j)}}const $N=kn({key:"hideNonMatches",default:!1}),aZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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}})),Bm=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M6 6L18 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),be.createElement("path",{d:"M18 6L6 18",stroke:"#636971",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Fae="";YN.propTypes={isViewSelectorDisabled:dt.bool,isViewSelectorVisible:dt.bool};function YN({isViewSelectorDisabled:e,isViewSelectorVisible:i}){const{t:o}=cs(),[u,d]=be.useState(!1),[_,b]=be.useState([]),[a,E]=be.useState(null),j=Ja(),V=Ei(ca),ie=Ei(bu),G=".view-selector-portal",[le,fe]=be.useState(null),ve=be.useRef(null),Ze=be.useRef(null),me=6,te=60;be.useEffect(()=>{let ot=document.querySelector(G);if(ot){fe(ot);return}const $e=new MutationObserver(()=>{ot=document.querySelector(G),ot&&(fe(ot),$e.disconnect())}),xt=document.body,ut={childList:!0,subtree:!0};return $e.observe(xt,ut),()=>{$e==null||$e.disconnect()}},[]),be.useEffect(()=>{const ot=()=>{const xt=document.querySelector(G);xt&&fe(xt)},$e=new ResizeObserver(()=>{ot()});return $e.observe(document.body),()=>{$e==null||$e.disconnect()}},[j]),be.useEffect(()=>{var ot;if(V&&ie){const $e=(ot=V.getVenue())==null?void 0:ot.id;$e&&E($e)}},[V,ie]),be.useEffect(()=>{V&&ie&&window.mapsindoors.services.VenuesService.getVenues().then(ot=>{const $e=ot.find(xt=>xt.name.toLowerCase()===ie.toLowerCase());$e!=null&&$e.id&&E($e.id)})},[V,ie]),be.useEffect(()=>{a&&window.mapsindoors.services.VenuesService.getBuildings(a).then(ot=>{b(ot)})},[a]);const ee=be.useMemo(()=>_.map(ot=>({id:ot.id,name:ot.buildingInfo.name})),[_]),re=be.useCallback(ot=>{V.fitBuilding(ot),d(!1)},[V]);if(be.useEffect(()=>{if(!(u&&j))return;function ot($e){ve.current&&!ve.current.contains($e.target)&&Ze.current&&!Ze.current.contains($e.target)&&d(!1)}return document.addEventListener("mousedown",ot),()=>{document.removeEventListener("mousedown",ot)}},[u,j]),ee.length<=1||i===!1)return null;const Me=()=>Pe.jsx("button",{ref:Ze,className:"view-selector__toggle-button",onClick:()=>d(!u),disabled:e,children:Pe.jsx(aZ,{})}),we=()=>{const ot=be.useMemo(()=>j&&ee.length>me?{height:`${me*te}px`}:{},[j,ee.length]);return Pe.jsx("div",{className:"building-list",style:ot,children:ee.map($e=>Pe.jsx("button",{className:"building-list__item",onClick:()=>re($e.id),children:Pe.jsx("span",{children:$e.name})},$e.id))})},We=Pe.jsxs("div",{className:"view-selector",children:[!j&&u&&Pe.jsxs("div",{className:"mobile-overlay",children:[Pe.jsx("div",{className:"mobile-overlay__backdrop",onClick:()=>d(!1)}),Pe.jsxs("div",{className:"view-selector__container view-selector__container--mobile",children:[Pe.jsxs("div",{className:"mobile-overlay__header",children:[Pe.jsx("button",{className:"mobile-overlay__exit-button",onClick:()=>d(!1),"aria-label":o("Close view selector"),children:Pe.jsx(Bm,{})}),Pe.jsx("span",{children:o("Go to view")})]}),Pe.jsx(we,{})]})]}),j?Pe.jsxs("div",{className:"view-selector__button-container view-selector__button-container--desktop",children:[u&&Pe.jsx("div",{ref:ve,className:"view-selector__container view-selector__container--desktop",children:Pe.jsx(we,{})}),Pe.jsx(Me,{})]}):Pe.jsx(Me,{})]});return le?yu.createPortal(We,le):null}const lZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}})),Uae="";function GN({toggleButtonRef:e,isExpanded:i,setIsExpanded:o}){return Pe.jsx("button",{ref:e,className:"language-selector__toggle-button",onClick:()=>o(u=>!u),"aria-haspopup":"listbox","aria-expanded":i,"aria-label":"Select language",children:Pe.jsx(lZ,{})})}function ZN({supportedLanguages:e,currentLanguage:i,setLanguage:o,setIsExpanded:u}){return Pe.jsx("div",{className:"language-selector__list",children:e.map(d=>Pe.jsx("button",{className:`language-selector__item${i===d.code?" language-selector__item--selected":""}`,onClick:()=>{o(d.code),u(!1)},children:d.label},d.code))})}function WN({currentLanguage:e,setLanguage:i,isVisible:o}){const{t:u}=cs(),[d,_]=be.useState(!1),b=be.useRef(null),a=be.useRef(null),[E,j]=be.useState(null),V=Ja(),ie=".language-selector-portal";return be.useEffect(()=>{let G=document.querySelector(ie);if(G){j(G);return}const le=new MutationObserver(()=>{G=document.querySelector(ie),G&&(j(G),le.disconnect())});return le.observe(document.body,{childList:!0,subtree:!0}),()=>le.disconnect()},[]),be.useEffect(()=>{if(!(d&&V))return;function G(le){b.current&&!b.current.contains(le.target)&&a.current&&!a.current.contains(le.target)&&_(!1)}return document.addEventListener("mousedown",G),()=>document.removeEventListener("mousedown",G)},[d,V]),!o||!E?null:yu.createPortal(V?Pe.jsxs("div",{className:"language-selector__button-container",children:[d&&Pe.jsx("div",{ref:b,className:"language-selector__container",children:Pe.jsx(ZN,{supportedLanguages:fN,currentLanguage:e,setLanguage:i,setIsExpanded:_})}),Pe.jsx(GN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_})]}):Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(GN,{toggleButtonRef:a,isExpanded:d,setIsExpanded:_}),d&&Pe.jsxs("div",{className:"language-selector-overlay",children:[Pe.jsx("div",{className:"language-selector-overlay__backdrop",onClick:()=>_(!1)}),Pe.jsxs("div",{className:"language-selector__container",children:[Pe.jsxs("div",{className:"language-selector-overlay__header",children:[Pe.jsx("button",{className:"language-selector-overlay__exit-button",onClick:()=>_(!1),"aria-label":"Close language selector",children:"×"}),Pe.jsx("span",{children:u("Select language")})]}),Pe.jsx(ZN,{supportedLanguages:fN,currentLanguage:e,setLanguage:i,setIsExpanded:_})]})]})]}),E)}WN.propTypes={currentLanguage:dt.string,setLanguage:dt.func.isRequired,isVisible:dt.bool};const Ef=kn({key:"appConfig",default:void 0}),cZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),Vae="",Dl=kn({key:"kioskLocation",default:null}),jh=()=>{const e=Ei(Dl),i=Ja();return!(!e||e&&!i)};function qN(){const[e,i]=be.useState(null),o=".reset-view-portal",u=jh(),d=Ei(K3),_=Ei(ca),b=Ei(bu),a=Ei(Dl),E=Ja();function j(){window.mapsindoors.services.LocationsService.getLocation(d).then(le=>{V([le])}).catch(le=>{console.error("Error resetting map position:",le)})}function V(le){if(!_.goTo)return;const fe=_.getFloor(),ve={type:"FeatureCollection",features:le.filter(Ze=>parseInt(Ze.properties.floor,10)===parseInt(fe,10)).filter(Ze=>b&&Ze.properties.venueId.toLowerCase()===b.toLowerCase()).map(Ze=>({type:"Feature",geometry:Ze.geometry,properties:Ze.properties}))};ve.features.length>0&&Promise.all([ie(),G()]).then(([Ze,me])=>{_.goTo(ve,{maxZoom:22,padding:{bottom:Ze,left:me,top:0,right:0}})})}function ie(){return new Promise(le=>{E?a?Om().then(fe=>le(fe)):le(0):le(200)})}function G(){return new Promise(le=>{E?a?le(0):kh().then(fe=>le(fe)):le(0)})}return be.useEffect(()=>{let le=document.querySelector(o);if(le){i(le);return}const fe=new MutationObserver(()=>{le=document.querySelector(o),le&&(i(le),fe.disconnect())});return fe.observe(document.body,{childList:!0,subtree:!0}),()=>fe.disconnect()},[]),!u||!e?null:yu.createPortal(Pe.jsx("button",{className:"reset-kiosk-view-button",onClick:j,title:"Reset to initial kiosk view","aria-label":"Reset to initial kiosk view",children:Pe.jsx(cZ,{})}),e)}qN.propTypes={onReset:dt.func,isVisible:dt.bool},KN.propTypes={onLocationClick:dt.func,onMapPositionKnown:dt.func.isRequired,useMapProviderModule:dt.bool.isRequired,onMapPositionInvestigating:dt.func.isRequired,onViewModeSwitchKnown:dt.func.isRequired,resetCount:dt.number.isRequired,mapOptions:dt.object,gmMapId:dt.string,isWayfindingOrDirections:dt.bool,currentLanguage:dt.string,setLanguage:dt.func,devicePosition:dt.object};let u4;function KN({onLocationClick:e,onMapPositionKnown:i,useMapProviderModule:o,onMapPositionInvestigating:u,onViewModeSwitchKnown:d,resetCount:_,mapOptions:b,gmMapId:a,isWayfindingOrDirections:E,currentLanguage:j,setLanguage:V,devicePosition:ie}){const G=Ei(Z3),le=Ei(W3),fe=Ei(tv),[ve,Ze]=sn(ev),[me,te]=sn(ca),[,ee]=sn(J_),[,re]=sn(G3),Me=Ei(iv),we=Ei(nv),We=Ei(vN),ot=Ei(q3),$e=Ei(rv),[,xt]=sn(xN),ut=Ei(wN),[,jt]=sn(zm),St=Ei($N),Jt=Ei(Ef),[Tt,bt]=be.useState(!1),[qt,Ot]=be.useState(!1);lG(G);const[Vt,W]=sZ();be.useEffect(()=>{if(!ut||le===null&&fe===null)return;let F;const Q=ut.modules.map(Z=>Z.toLowerCase()).includes("mapbox");o?Q?fe&&(F=us.Mapbox):le&&(F=us.Google):fe?F=us.Mapbox:F=us.Google,F?Ze(F):(jt({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}),Ze(void 0))},[le,fe,ut]),be.useEffect(()=>{Vt&&u()},[Vt]),be.useEffect(()=>{W&&i()},[W]),be.useEffect(()=>{if(!me)return;const F=Me||we;if(!F)return;const Q=F.map(Z=>Z.id);St||!me.highlight?me.filter(Q):me.highlight(Q)},[Me,we,me,St]),be.useEffect(()=>{me&&(isNaN(parseInt($e))||me.getMapView().tilt(parseInt($e)),isNaN(parseInt(ot))||me.getMapView().rotate(parseInt(ot)))},[ot,$e,me]);const ne=F=>{T(F)},T=F=>{if(F&&u4){let Q=F.getTileURL();if(Q){Q=F.getTileURL().replace("default",u4);const Z=Q==null?void 0:Q.replace("{floor}",F.getFloor());F.getMapView().setMapsIndoorsTileURL(Z)}}},k=(F,Q,Z)=>{F.on("mouseenter",()=>{var He;const xe=F.getHoveredLocation();((He=xe==null?void 0:xe.properties.locationSettings)==null?void 0:He.selectable)===!1&&F.unhoverLocation()}),F.setDisplayRule(["MI_BUILDING_OUTLINE"],{visible:!1}),F.on("click",xe=>e(xe)),F.once("building_changed",()=>ne(F)),F.on("floor_changed",()=>T(F)),te(F),window.mapsIndoorsInstance=F;const se=new CustomEvent("mapsIndoorsInstanceAvailable");window.dispatchEvent(se);let he;ve===us.Google?he=new window.mapsindoors.directions.GoogleMapsProvider:ve===us.Mapbox&&(he=new window.mapsindoors.directions.MapboxProvider(fe));const ce=new window.mapsindoors.services.DirectionsService(he);re(ce),te(F),Q.nodeName==="MI-MY-POSITION"?Q.addEventListener("position_received",xe=>{xe.detail.accurate===!0&&ee(xe.detail.position)}):Q.on("position_received",xe=>{xe.accurate===!0&&ee(xe.position)}),xt(Q),d(Z)};return be.useEffect(()=>{u4=We||"default",T(me)},[We]),be.useEffect(()=>{var F,Q,Z,se;Jt&&(kr((F=Jt==null?void 0:Jt.appSettings)==null?void 0:F.viewSelector)?bt(!1):bt(((Q=Jt==null?void 0:Jt.appSettings)==null?void 0:Q.viewSelector.trim().toLowerCase())==="true"),kr((Z=Jt==null?void 0:Jt.appSettings)==null?void 0:Z.languageSelector)?Ot(!1):Ot(((se=Jt==null?void 0:Jt.appSettings)==null?void 0:se.languageSelector.trim().toLowerCase())==="true"))},[Jt]),Pe.jsxs(Pe.Fragment,{children:[G&&Pe.jsx(_N,{apiKey:G,mapboxAccessToken:ve===us.Mapbox?fe:void 0,gmApiKey:ve===us.Google?le:void 0,onInitialized:k,resetUICounter:_,mapOptions:b,gmMapId:a,devicePosition:ie}),G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(YN,{isViewSelectorVisible:Tt,isViewSelectorDisabled:E}),Pe.jsx(WN,{currentLanguage:j,setLanguage:V,isVisible:qt}),Pe.jsx(qN,{})]})]})}const Sl=kn({key:"primaryColor",default:"#005655"}),Qae="",h4=kn({key:"logo",default:void 0});function uZ(){const e=Ei(Sl),i=Ei(h4);return Pe.jsx("div",{className:"splash-screen",children:Pe.jsxs("div",{className:"splash-screen__container",children:[Pe.jsx("img",{className:"splash-screen__logo "+(i?"splash-screen__logo--visible":""),src:i,alt:""}),Pe.jsx("div",{className:"splash-screen__loader",style:{border:`8px solid ${e}33`,borderLeft:`8px solid ${e}`}})]})})}function XN(e,i){if(e==null)return{};var o={};for(var u in e)if({}.hasOwnProperty.call(e,u)){if(i.indexOf(u)!==-1)continue;o[u]=e[u]}return o}function d4(e,i){return d4=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,u){return o.__proto__=u,o},d4(e,i)}function JN(e,i){e.prototype=Object.create(i.prototype),e.prototype.constructor=e,d4(e,i)}function hZ(e,i){return e.classList?!!i&&e.classList.contains(i):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+i+" ")!==-1}function dZ(e,i){e.classList?e.classList.add(i):hZ(e,i)||(typeof e.className=="string"?e.className=e.className+" "+i:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+i))}function eL(e,i){return e.replace(new RegExp("(^|\\s)"+i+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function fZ(e,i){e.classList?e.classList.remove(i):typeof e.className=="string"?e.className=eL(e.className,i):e.setAttribute("class",eL(e.className&&e.className.baseVal||"",i))}const tL={disabled:!1},iL=Cr.createContext(null);var nL=function(i){return i.scrollTop},Fm="unmounted",Ph="exited",Rh="entering",Nf="entered",f4="exiting",vc=function(e){JN(i,e);function i(u,d){var _;_=e.call(this,u,d)||this;var b=d,a=b&&!b.isMounting?u.enter:u.appear,E;return _.appearStatus=null,u.in?a?(E=Ph,_.appearStatus=Rh):E=Nf:u.unmountOnExit||u.mountOnEnter?E=Fm:E=Ph,_.state={status:E},_.nextCallback=null,_}i.getDerivedStateFromProps=function(d,_){var b=d.in;return b&&_.status===Fm?{status:Ph}:null};var o=i.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(d){var _=null;if(d!==this.props){var b=this.state.status;this.props.in?b!==Rh&&b!==Nf&&(_=Rh):(b===Rh||b===Nf)&&(_=f4)}this.updateStatus(!1,_)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var d=this.props.timeout,_,b,a;return _=b=a=d,d!=null&&typeof d!="number"&&(_=d.exit,b=d.enter,a=d.appear!==void 0?d.appear:b),{exit:_,enter:b,appear:a}},o.updateStatus=function(d,_){if(d===void 0&&(d=!1),_!==null)if(this.cancelNextCallback(),_===Rh){if(this.props.unmountOnExit||this.props.mountOnEnter){var b=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this);b&&nL(b)}this.performEnter(d)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ph&&this.setState({status:Fm})},o.performEnter=function(d){var _=this,b=this.props.enter,a=this.context?this.context.isMounting:d,E=this.props.nodeRef?[a]:[fm.findDOMNode(this),a],j=E[0],V=E[1],ie=this.getTimeouts(),G=a?ie.appear:ie.enter;if(!d&&!b||tL.disabled){this.safeSetState({status:Nf},function(){_.props.onEntered(j)});return}this.props.onEnter(j,V),this.safeSetState({status:Rh},function(){_.props.onEntering(j,V),_.onTransitionEnd(G,function(){_.safeSetState({status:Nf},function(){_.props.onEntered(j,V)})})})},o.performExit=function(){var d=this,_=this.props.exit,b=this.getTimeouts(),a=this.props.nodeRef?void 0:fm.findDOMNode(this);if(!_||tL.disabled){this.safeSetState({status:Ph},function(){d.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:f4},function(){d.props.onExiting(a),d.onTransitionEnd(b.exit,function(){d.safeSetState({status:Ph},function(){d.props.onExited(a)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(d,_){_=this.setNextCallback(_),this.setState(d,_)},o.setNextCallback=function(d){var _=this,b=!0;return this.nextCallback=function(a){b&&(b=!1,_.nextCallback=null,d(a))},this.nextCallback.cancel=function(){b=!1},this.nextCallback},o.onTransitionEnd=function(d,_){this.setNextCallback(_);var b=this.props.nodeRef?this.props.nodeRef.current:fm.findDOMNode(this),a=d==null&&!this.props.addEndListener;if(!b||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var E=this.props.nodeRef?[this.nextCallback]:[b,this.nextCallback],j=E[0],V=E[1];this.props.addEndListener(j,V)}d!=null&&setTimeout(this.nextCallback,d)},o.render=function(){var d=this.state.status;if(d===Fm)return null;var _=this.props,b=_.children;_.in,_.mountOnEnter,_.unmountOnExit,_.appear,_.enter,_.exit,_.timeout,_.addEndListener,_.onEnter,_.onEntering,_.onEntered,_.onExit,_.onExiting,_.onExited,_.nodeRef;var a=XN(_,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Cr.createElement(iL.Provider,{value:null},typeof b=="function"?b(d,a):Cr.cloneElement(Cr.Children.only(b),a))},i}(Cr.Component);vc.contextType=iL,vc.propTypes={};function Lf(){}vc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Lf,onEntering:Lf,onEntered:Lf,onExit:Lf,onExiting:Lf,onExited:Lf},vc.UNMOUNTED=Fm,vc.EXITED=Ph,vc.ENTERING=Rh,vc.ENTERED=Nf,vc.EXITING=f4;const pZ=vc;var gZ=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return dZ(i,u)})},p4=function(i,o){return i&&o&&o.split(" ").forEach(function(u){return fZ(i,u)})},g4=function(e){JN(i,e);function i(){for(var u,d=arguments.length,_=new Array(d),b=0;b<d;b++)_[b]=arguments[b];return u=e.call.apply(e,[this].concat(_))||this,u.appliedClasses={appear:{},enter:{},exit:{}},u.onEnter=function(a,E){var j=u.resolveArguments(a,E),V=j[0],ie=j[1];u.removeClasses(V,"exit"),u.addClass(V,ie?"appear":"enter","base"),u.props.onEnter&&u.props.onEnter(a,E)},u.onEntering=function(a,E){var j=u.resolveArguments(a,E),V=j[0],ie=j[1],G=ie?"appear":"enter";u.addClass(V,G,"active"),u.props.onEntering&&u.props.onEntering(a,E)},u.onEntered=function(a,E){var j=u.resolveArguments(a,E),V=j[0],ie=j[1],G=ie?"appear":"enter";u.removeClasses(V,G),u.addClass(V,G,"done"),u.props.onEntered&&u.props.onEntered(a,E)},u.onExit=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"appear"),u.removeClasses(j,"enter"),u.addClass(j,"exit","base"),u.props.onExit&&u.props.onExit(a)},u.onExiting=function(a){var E=u.resolveArguments(a),j=E[0];u.addClass(j,"exit","active"),u.props.onExiting&&u.props.onExiting(a)},u.onExited=function(a){var E=u.resolveArguments(a),j=E[0];u.removeClasses(j,"exit"),u.addClass(j,"exit","done"),u.props.onExited&&u.props.onExited(a)},u.resolveArguments=function(a,E){return u.props.nodeRef?[u.props.nodeRef.current,a]:[a,E]},u.getClassNames=function(a){var E=u.props.classNames,j=typeof E=="string",V=j&&E?E+"-":"",ie=j?""+V+a:E[a],G=j?ie+"-active":E[a+"Active"],le=j?ie+"-done":E[a+"Done"];return{baseClassName:ie,activeClassName:G,doneClassName:le}},u}var o=i.prototype;return o.addClass=function(d,_,b){var a=this.getClassNames(_)[b+"ClassName"],E=this.getClassNames("enter"),j=E.doneClassName;_==="appear"&&b==="done"&&j&&(a+=" "+j),b==="active"&&d&&nL(d),a&&(this.appliedClasses[_][b]=a,gZ(d,a))},o.removeClasses=function(d,_){var b=this.appliedClasses[_],a=b.base,E=b.active,j=b.done;this.appliedClasses[_]={},a&&p4(d,a),E&&p4(d,E),j&&p4(d,j)},o.render=function(){var d=this.props;d.classNames;var _=XN(d,["classNames"]);return Cr.createElement(pZ,Q3({},_,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},i}(Cr.Component);g4.defaultProps={classNames:""},g4.propTypes={};const mZ=g4,Hae="",yZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),$ae="";rL.propTypes={venue:dt.object.isRequired,isCurrent:dt.bool,onVenueClicked:dt.func.isRequired};function rL({venue:e,isCurrent:i,onVenueClicked:o}){const{t:u}=cs(),[d,_]=be.useState({});return be.useEffect(()=>()=>{_({})},[]),be.useEffect(()=>{const b={};e.image&&(b.backgroundImage=`url('${e.image}')`),_(b)},[e]),Pe.jsxs("button",{className:"venue",onClick:()=>o(),children:[Pe.jsx("div",{className:"venue__image",style:d}),Pe.jsxs("div",{className:"venue__content",children:[Pe.jsx("div",{children:e.venueInfo.name}),i&&Pe.jsx("div",{className:"venue__current",children:u("Current")})]})]})}const hv=kn({key:"isLocationClicked",default:!1});oL.propTypes={onOpen:dt.func,onClose:dt.func,active:dt.bool};function oL({onOpen:e,onClose:i,active:o}){const{t:u}=cs(),d=be.useRef(null),_=Ei(jm),[,b]=sn(X3),[a,E]=sn(bu),[,j]=sn(hv),V=document.querySelector(".venue-selector-portal"),ie=fe=>{b(!0),E(fe.name),G()},G=()=>{o?i():e()};function le(fe){ie(fe),j(!1)}return Pe.jsxs(Pe.Fragment,{children:[!o&&V&&yu.createPortal(Pe.jsx("button",{className:"venue-selector__button",onClick:()=>e(),"aria-label":u("Venues"),children:Pe.jsx(yZ,{})}),V),Pe.jsx(mZ,{in:o,nodeRef:d,timeout:400,classNames:"venue-selector__content",unmountOnExit:!0,children:Pe.jsxs("div",{className:"venue-selector__content",ref:d,children:[Pe.jsxs("div",{className:"venue-selector__header",children:[Pe.jsx("h1",{children:u("Select venue")}),Pe.jsx("button",{className:"venue-selector__button",onClick:()=>i(),"aria-label":u("Close"),children:Pe.jsx(Bm,{})})]}),Pe.jsx("div",{className:"venue-selector__list",children:_.map(fe=>Pe.jsx(rL,{isCurrent:(a==null?void 0:a.toLowerCase())===fe.name.toLowerCase(),venue:fe,onVenueClicked:()=>le(fe)},fe.id))})]})})]})}const sL=be.createContext(),xc=kn({key:"currentLocation",default:null}),_Z="Left",vZ="Right",xZ="Up",wZ="Down",zf={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},m4={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},aL="mousemove",lL="mouseup",bZ="touchend",MZ="touchmove",IZ="touchstart";function TZ(e,i,o,u){return e>i?o>0?vZ:_Z:u>0?wZ:xZ}function cL(e,i){if(i===0)return e;const o=Math.PI/180*i,u=e[0]*Math.cos(o)+e[1]*Math.sin(o),d=e[1]*Math.cos(o)-e[0]*Math.sin(o);return[u,d]}function DZ(e,i){const o=V=>{const ie="touches"in V;ie&&V.touches.length>1||e((G,le)=>{le.trackMouse&&!ie&&(document.addEventListener(aL,u),document.addEventListener(lL,b));const{clientX:fe,clientY:ve}=ie?V.touches[0]:V,Ze=cL([fe,ve],le.rotationAngle);return le.onTouchStartOrOnMouseDown&&le.onTouchStartOrOnMouseDown({event:V}),Object.assign(Object.assign(Object.assign({},G),m4),{initial:Ze.slice(),xy:Ze,start:V.timeStamp||0})})},u=V=>{e((ie,G)=>{const le="touches"in V;if(le&&V.touches.length>1)return ie;if(V.timeStamp-ie.start>G.swipeDuration)return ie.swiping?Object.assign(Object.assign({},ie),{swiping:!1}):ie;const{clientX:fe,clientY:ve}=le?V.touches[0]:V,[Ze,me]=cL([fe,ve],G.rotationAngle),te=Ze-ie.xy[0],ee=me-ie.xy[1],re=Math.abs(te),Me=Math.abs(ee),we=(V.timeStamp||0)-ie.start,We=Math.sqrt(re*re+Me*Me)/(we||1),ot=[te/(we||1),ee/(we||1)],$e=TZ(re,Me,te,ee),xt=typeof G.delta=="number"?G.delta:G.delta[$e.toLowerCase()]||zf.delta;if(re<xt&&Me<xt&&!ie.swiping)return ie;const ut={absX:re,absY:Me,deltaX:te,deltaY:ee,dir:$e,event:V,first:ie.first,initial:ie.initial,velocity:We,vxvy:ot};ut.first&&G.onSwipeStart&&G.onSwipeStart(ut),G.onSwiping&&G.onSwiping(ut);let jt=!1;return(G.onSwiping||G.onSwiped||G[`onSwiped${$e}`])&&(jt=!0),jt&&G.preventScrollOnSwipe&&G.trackTouch&&V.cancelable&&V.preventDefault(),Object.assign(Object.assign({},ie),{first:!1,eventData:ut,swiping:!0})})},d=V=>{e((ie,G)=>{let le;if(ie.swiping&&ie.eventData){if(V.timeStamp-ie.start<G.swipeDuration){le=Object.assign(Object.assign({},ie.eventData),{event:V}),G.onSwiped&&G.onSwiped(le);const fe=G[`onSwiped${le.dir}`];fe&&fe(le)}}else G.onTap&&G.onTap({event:V});return G.onTouchEndOrOnMouseUp&&G.onTouchEndOrOnMouseUp({event:V}),Object.assign(Object.assign(Object.assign({},ie),m4),{eventData:le})})},_=()=>{document.removeEventListener(aL,u),document.removeEventListener(lL,b)},b=V=>{_(),d(V)},a=(V,ie)=>{let G=()=>{};if(V&&V.addEventListener){const le=Object.assign(Object.assign({},zf.touchEventOptions),ie.touchEventOptions),fe=[[IZ,o,le],[MZ,u,Object.assign(Object.assign({},le),ie.preventScrollOnSwipe?{passive:!1}:{})],[bZ,d,le]];fe.forEach(([ve,Ze,me])=>V.addEventListener(ve,Ze,me)),G=()=>fe.forEach(([ve,Ze])=>V.removeEventListener(ve,Ze))}return G},j={ref:V=>{V!==null&&e((ie,G)=>{if(ie.el===V)return ie;const le={};return ie.el&&ie.el!==V&&ie.cleanUpTouch&&(ie.cleanUpTouch(),le.cleanUpTouch=void 0),G.trackTouch&&V&&(le.cleanUpTouch=a(V,G)),Object.assign(Object.assign(Object.assign({},ie),{el:V}),le)})}};return i.trackMouse&&(j.onMouseDown=o),[j,a]}function SZ(e,i,o,u){return!i.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?i.preventScrollOnSwipe!==o.preventScrollOnSwipe||i.touchEventOptions.passive!==o.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:u(e.el,i)})}function uL(e){const{trackMouse:i}=e,o=be.useRef(Object.assign({},m4)),u=be.useRef(Object.assign({},zf)),d=be.useRef(Object.assign({},u.current));d.current=Object.assign({},u.current),u.current=Object.assign(Object.assign({},zf),e);let _;for(_ in zf)u.current[_]===void 0&&(u.current[_]=zf[_]);const[b,a]=be.useMemo(()=>DZ(E=>o.current=E(o.current,u.current),{trackMouse:i}),[i]);return o.current=SZ(o.current,u.current,d.current,a),b}const qn={MIN:"MIN",FIT:"FIT",MAX:"MAX"},Yae="",Of=be.forwardRef(function({children:i,isOpen:o,initialSnapPoint:u,minimizedHeight:d},_){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),V=be.useRef(),[ie,G]=be.useState({}),[le,fe]=be.useState(!1),[ve,Ze]=be.useState(null),me=be.useContext(sL),te=be.useRef();be.useImperativeHandle(_,()=>({setSnapPoint($e){ee($e)}}));function ee($e){requestAnimationFrame(()=>{switch($e){case qn.MAX:G({height:`${me.current.clientHeight}px`}),E.current=me.current.clientHeight;break;case qn.FIT:{const xt=a.current.children.item(0).clientHeight;xt<d?(G({height:`${d}px`}),E.current=d,$e=qn.MIN):(G({height:`${xt}px`}),E.current=xt);break}case qn.MIN:G({height:`${d}px`}),E.current=d;break}}),V.current=$e}be.useEffect(()=>(o&&V.current===qn.FIT?re():Me(),()=>{Me()}),[o,V.current]);function re(){te.current&&te.current.disconnect(),te.current=new MutationObserver(()=>{ee(qn.FIT)}),te.current.observe(a.current,{childList:!0,subtree:!0})}function Me(){te.current&&te.current.disconnect()}const we=uL({onSwipeStart:()=>{fe(!0),Ze(null),j.current=b.current.clientHeight},onSwiping:$e=>{const xt=Math.max(j.current-$e.deltaY,d);G({height:`${xt}px`})},onSwiped:$e=>{fe(!1);const xt=AZ($e.dir,$e.deltaY,V.current,d,me.current.clientHeight,a.current.children.item(0));xt&&(ee(xt),Ze(xt))},trackMouse:!0,preventScrollOnSwipe:!0});be.useEffect(()=>{o&&(V.current=u,ee(u))},[d,u,o]);const We=$e=>{we.ref($e),b.current=$e},ot=Cr.Children.map(i,$e=>be.cloneElement($e,{snapPointSwipedByUser:ve}));return Pe.jsx("div",{...we,ref:We,className:`sheet ${o?"sheet--active":""} ${le?"sheet--dragging":""} ${V.current===qn.MAX?"sheet--max":""}`,style:ie,children:Pe.jsx("div",{ref:a,className:`sheet__content ${V.current===qn.MIN?"sheet__content--no-scroll":""}`,style:ie,children:ot})})});Of.propTypes={children:dt.node.isRequired,isOpen:dt.bool.isRequired,initialSnapPoint:dt.string.isRequired,minimizedHeight:dt.number.isRequired};function AZ(e,i,o,u,d,_){if(Math.abs(i)<60)return o;let a;return e.toUpperCase()==="DOWN"?o===qn.MAX?CZ(_)?a=qn.MIN:_.clientHeight<=d&&_.clientHeight>u?a=qn.FIT:a=qn.MIN:o===qn.FIT&&(a=qn.MIN):e.toUpperCase()==="UP"&&(o===qn.MIN?_.clientHeight<=u||_.clientHeight>d?a=qn.MAX:a=qn.FIT:o===qn.FIT&&(a=qn.MAX)),a}function CZ(e){if(!e)return!1;if(e.scrollHeight>e.clientHeight)return!0;for(const i of e.children)if(i.scrollHeight>i.clientHeight)return!0;return!1}const Gae="",Zae="",EZ=(e,i)=>{const[o,u]=be.useState(void 0),[d,_]=be.useState(void 0);return be.useEffect(()=>{const b=(a=!1)=>{var j,V;const E=((j=i.current)==null?void 0:j.scrollHeight)>((V=i.current)==null?void 0:V.clientHeight);u(E),a===!0&&_(E)};b(!0),i.current&&new ResizeObserver(b).observe(i.current)},[e,i]),[o,d]},kf=()=>uL({onSwiping:({event:e})=>e.stopPropagation()});function hL(e){const i=e.geometry.type==="Point"?e.geometry.coordinates:e.properties.anchor.coordinates;return{lat:i[1],lng:i[0],floor:e.properties.floor}}const Um=kn({key:"directionsResponse",default:null}),dv=kn({key:"hasFoundRoute",default:!0}),dL=kn({key:"shuttleBusOn",default:!1}),fL=(e,i,o,u,d)=>{const[_,b]=be.useState(),[a,E]=be.useState(),[j,V]=sn(dv),[,ie]=sn(Um),[G,le]=be.useState(),fe=Ei(dL);return be.useEffect(()=>{le(!1);let ve=!0;return e!=null&&e.geometry&&(i!=null&&i.geometry)&&o.getRoute({origin:hL(e),destination:hL(i),travelMode:u,avoidStairs:d,excludeHighwayTypes:fe?[]:["busway"]}).then(Ze=>{if(ve)if(Ze&&Ze.legs){const me=Ze.legs.reduce((ee,re)=>ee+re.distance.value,0),te=Ze.legs.reduce((ee,re)=>ee+re.duration.value,0);b(me),E(te),ie({originLocation:e,destinationLocation:i,totalDistance:me,totalTime:te,directionsResult:Ze}),V(!0),le(!0)}else V(!1)},()=>{ve&&V(!1)}),()=>{ve=!1}},[e,i,o,d,u,fe]),[_,a,j,G]},Bh={WALKING:"WALKING",DRIVING:"DRIVING",BICYCLING:"BICYCLING"},Vm=kn({key:"travelMode",default:Bh.WALKING}),Qm=kn({key:"accessibilityOn",default:!1}),fv=kn({key:"showExternalIDs",default:!1});function pL(e,i){const o=Ei(ev),[u,d]=be.useState(!1),_=e.getMap();be.useEffect(()=>{i&&d(!1)},[i]);function b(E,j,V,ie){const G=le=>{if(!V)return;j.getMap().queryRenderedFeatures(le.point).length?ie(!1):ie(!0)};return E.on("click",G),()=>{E.off("click",G)}}function a(E,j,V,ie){const G=()=>{V&&ie(!1)},le=()=>{V&&ie(!0)};j.addListener("click",G);const fe=E.addListener("click",le);return()=>{j.removeListener("click",G),fe.remove()}}return be.useEffect(()=>{let E;return o===us.Mapbox&&(E=b(_,e,i,d)),o===us.Google&&(E=a(_,e,i,d)),()=>E==null?void 0:E()},[e,i]),u}const Wae="",NZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),LZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),zZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),Fh=kn({key:"language",default:void 0});gL.propTypes={openingHours:dt.object,isMondayFirstDayOfTheWeek:dt.bool,onExpand:dt.func};function gL({openingHours:e,isMondayFirstDayOfTheWeek:i=!0,onExpand:o}){const{t:u}=cs(),[d,_]=be.useState(!1),a=Ei(Fh)??navigator.language,E=be.useMemo(()=>new Date(2020,0,1,13).toLocaleTimeString(a).match(/AM|PM/)!==null,[a]),j=new Date().getDay(),V=be.useMemo(()=>{const re=[];for(let Me=0;Me<7;Me++)re.push(new Date(2024,0,Me+1));if(!i){const Me=re.pop();re.unshift(Me)}return re},[i]),ie=be.useMemo(()=>i?j===0?6:j-1:j,[j,i]),{standardOpeningHours:G}=e||{},le=re=>{const[Me,we]=re.split(":");return new Date(0,0,0,Me,we).toLocaleTimeString(a,{hour:"2-digit",minute:"2-digit",hour12:E})},fe=re=>{const Me=re.toLocaleString("en-US",{weekday:"long"}).toLowerCase(),we=G==null?void 0:G[Me];return!(we!=null&&we.startTime)||!(we!=null&&we.endTime)||we.closedAllDay?{text:u("Closed"),isClosed:!0}:{text:`${le(we.startTime)} - ${le(we.endTime)}`,isClosed:!1}},ve=be.useCallback(re=>{if(!re||re.closedAllDay||!re.startHours)return!1;const Me=new Date,we=Me.getHours()*60+Me.getMinutes(),[We,ot]=re.startTime.split(":"),[$e,xt]=re.endTime.split(":"),ut=parseInt(We)*60+parseInt(ot),jt=parseInt($e)*60+parseInt(xt);return we>=ut&&we<=jt},[]),me=be.useCallback(()=>{const re=V[ie].toLocaleString("en-US",{weekday:"long"}).toLowerCase();return ve(G==null?void 0:G[re])?"Open":"Closed"},[G,V,ie,ve,u])(),te=re=>re.charAt(0).toUpperCase()+re.slice(1),ee=()=>{_(re=>!re)};return be.useEffect(()=>{d&&typeof o=="function"&&o()},[d,o]),Pe.jsxs("div",{className:"opening-hours",children:[Pe.jsxs("button",{className:"contact-action-button contact-action-button--opening-hours",onClick:ee,children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx(NZ,{})}),Pe.jsx("div",{className:"contact-action-button__text",children:fe(V[ie]).text}),Pe.jsx("span",{className:`contact-action-button--opening-hours__status contact-action-button--opening-hours__status--${me.toLowerCase()}`,children:u(me)}),d?Pe.jsx(zZ,{}):Pe.jsx(LZ,{})]}),d&&Pe.jsx("ul",{className:"opening-hours__list",children:V.map(re=>{const Me=fe(re);return Pe.jsxs("li",{className:"opening-hours__list-item",children:[Pe.jsx("span",{className:"opening-hours__day",children:te(re.toLocaleString(a,{weekday:"long"}))}),Pe.jsx("span",{className:`opening-hours__hours ${Me.isClosed?"opening-hours__hours--closed":""}`,children:Me.text})]},re)})})]})}const OZ=be.memo(gL);function y4(e,i,o){return(i=function(u){var d=function(_,b){if(typeof _!="object"||!_)return _;var a=_[Symbol.toPrimitive];if(a!==void 0){var E=a.call(_,b||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(_)}(u,"string");return typeof d=="symbol"?d:d+""}(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o,e}var _4={click:"onClick",focusin:"onFocus",focusout:"onFocus",mousedown:"onMouseDown",mouseup:"onMouseUp",touchstart:"onTouchStart",touchend:"onTouchEnd"},mL=function(e){var i=e.children,o=e.onClickAway,u=e.focusEvent,d=u===void 0?"focusin":u,_=e.mouseEvent,b=_===void 0?"click":_,a=e.touchEvent,E=a===void 0?"touchend":a,j=be.useRef(null),V=be.useRef(null),ie=be.useRef(!1);be.useEffect(function(){return setTimeout(function(){ie.current=!0},0),function(){ie.current=!1}},[]);var G=function(Ze){return function(me){V.current=me.target;var te=i==null?void 0:i.props[Ze];te&&te(me)}};be.useEffect(function(){var Ze,me,te=(Ze=(me=j.current)===null||me===void 0?void 0:me.ownerDocument)!==null&&Ze!==void 0?Ze:document,ee=function(re){ie.current&&(j.current&&j.current.contains(re.target)||V.current===re.target||!te.contains(re.target)||o(re))};return te.addEventListener(b,ee),te.addEventListener(E,ee),te.addEventListener(d,ee),function(){te.removeEventListener(b,ee),te.removeEventListener(E,ee),te.removeEventListener(d,ee)}},[d,b,o,E]);var le=_4[b],fe=_4[E],ve=_4[d];return Cr.Children.only(be.cloneElement(i,y4(y4(y4({ref:function(Ze){j.current=Ze;var me=i.ref;typeof me=="function"?me(Ze):me&&(me.current=Ze)}},ve,G(ve)),le,G(le)),fe,G(fe))))};mL.displayName="ClickAwayListener";const pv=kn({key:"searchAllVenues",default:!1}),v4=kn({key:"searchExternalLocations",default:!0}),yL=B_({key:"baseLink",get:({get:e})=>{const i=e(W3),o=e(tv),u=e(Z3),d=e(Sl),_=e(Fh),b=e(pv),a=e(v4),E=e(h4),j=window.location.origin+window.location.pathname.replace(/\/$/,""),V=new URLSearchParams(window.location.search),ie=new URLSearchParams;return[["gmApiKey",i],["mapboxAccessToken",o],["apiKey",u],["primaryColor",d],["language",_],["searchAllVenues",b],["searchExternalLocations",a],["logo",E]].forEach(([G,le])=>{if(V.has(G)){const fe=V.get(G);ie.append(G,fe)}else le&&(le===d?ie.append(G,d.replace("#","")):ie.append(G,le))}),`${j}?${ie.toString()}`}}),qae="",kZ=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}})),_L=e=>be.createElement("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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}}),be.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}}),be.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}}),be.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}}),be.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}})),jZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"}),be.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"})),gv=kn({key:"qrCodeLink",default:null}),vL=kn({key:"supportsUrlParameters",default:!1});xL.propTypes={location:dt.object.isRequired,buttonClassName:dt.string};function xL({location:e,buttonClassName:i}){const{t:o}=cs(),[u,d]=be.useState(!1),_=Ei(yL),[b,a]=be.useState(),E=Ei(vL),[j,V]=be.useState(!1),[ie,G]=be.useState(!1),le=Ei(Dl),[,fe]=sn(gv),ve=Ja();be.useEffect(()=>{_&&e&&a(_+"&locationId="+e.id)},[_,e]),be.useEffect(()=>{var ee;V(!le&&E&&ve);const te=typeof((ee=navigator.clipboard)==null?void 0:ee.writeText)=="function";G(!le&&E&&te)},[E,le,ve]);const Ze=()=>{navigator.clipboard.writeText(b),d(!1)},me=()=>{fe(b),d(!1)};return(j||ie)&&Pe.jsxs("div",{className:"share-location-link",children:[Pe.jsx("button",{className:i,onClick:()=>d(te=>!te),title:o("Share"),"aria-label":o("Share"),children:Pe.jsx(jZ,{})}),u&&Pe.jsx(mL,{onClickAway:()=>d(!1),children:Pe.jsxs("ul",{children:[ie&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>Ze(),children:[Pe.jsx(kZ,{}),o("Copy link")]})}),j&&Pe.jsx("li",{children:Pe.jsxs("button",{className:i,onClick:()=>me(),children:[Pe.jsx(_L,{}),o("QR Code")]})})]})})]})}const Kae="",wL={email:"email",phone:"phone"};bL.propTypes={detailType:dt.string,active:dt.bool,displayText:dt.string,value:dt.string,icon:dt.string};function bL({detailType:e,active:i,displayText:o,value:u,icon:d}){if(!i||e.toLowerCase()==="openinghours")return null;const _=o!=null&&o.trim()?o:u,b=(a,E)=>{switch(a.toLowerCase()){case wL.email:return`mailto:${E}`;case wL.phone:return`tel:${E}`;default:try{return new URL(E),E}catch{return"#"}}};return Pe.jsxs("a",{className:"contact-action-button",href:b(e,u),target:e.toLowerCase()==="email"||e.toLowerCase()==="phone"?"_self":"_blank",rel:"noopener noreferrer",children:[Pe.jsx("div",{className:"contact-action-button__icon-wrapper",children:Pe.jsx("img",{alt:"",src:d,className:"contact-action-button__icon"})}),Pe.jsx("span",{className:"contact-action-button__text",children:_})]})}x4.propTypes={onBack:dt.func,onStartWayfinding:dt.func,onSetSize:dt.func,snapPointSwiped:dt.number,onStartDirections:dt.func,isOpen:dt.bool,snapPointSwipedByUser:dt.string};function x4({onBack:e,onStartWayfinding:i,onSetSize:o,onStartDirections:u,isOpen:d,snapPointSwipedByUser:_}){var Xe,Fe;const{t:b}=cs(),a=be.useRef(null),E=be.useRef(null),j=be.useRef(null),V=be.useRef(null),ie=be.useRef(null),[G,le]=be.useState(!1),[fe,ve]=be.useState(!1),[Ze,me]=be.useState(!1),te=be.useRef(!1),[ee,re]=be.useState(null),Me=Ei(ca),we=Ei(xc),We=(Xe=we==null?void 0:we.properties)==null?void 0:Xe.additionalDetails,ot=(Fe=We==null?void 0:We.find(rt=>rt.key.toLowerCase().includes("openinghours")&&rt.active===!0))==null?void 0:Fe.openingHours,[$e,xt]=EZ(we,j),ut=kf(),jt=Ei(Sl),St=Ei(Dl),Jt=Ei(G3),[Tt,bt]=be.useState(),[qt,Ot]=be.useState(),Vt=Ja(),W=Ei(Vm),ne=Ei(Qm),[,,T]=fL(qt,Tt,Jt,W,ne),k=Ei(fv),F=pL(Me,d);be.useEffect(()=>()=>{re(null),bt(),Ot()},[]);const Q=be.useCallback(()=>{le(!1),ve(!1),me(!1),Z(qn.FIT),e()});function Z(rt){typeof o=="function"&&o(rt)}function se(){G===!1?(he(),Z(qn.MAX)):(ce(),Z(qn.FIT))}function he(){requestAnimationFrame(()=>{le(!0),xe(),te.current=!0})}function ce(){le(!1),He(),te.current=!1}function xe(){const rt=requestAnimationFrame(()=>{E.current&&(ve(E.current.scrollTop>0),me(E.current.scrollTop<E.current.scrollHeight-E.current.offsetHeight-1))});return()=>cancelAnimationFrame(rt)}function He(){ve(!1),me(!1)}function et(){le(!1),ve(!1),me(!1),Z(qn.FIT),i()}function Ue(){le(!1),ve(!1),me(!1),Z(qn.FIT),u()}return be.useEffect(()=>{F&&e()},[F]),be.useEffect(()=>()=>{re(null),bt(),Ot()},[]),be.useEffect(()=>{le(!1),ve(!1),me(!1),re(null),we&&(a.current.location=we,re(Me.getDisplayRule(we)),bt(we)),St&&Ot(St)},[we,Me,St]),be.useEffect(()=>{const rt=(We==null?void 0:We.length)>0;Z(we&&d&&rt?qn.FIT:qn.MIN)},[we,d,We]),be.useEffect(()=>{if(!_){te.current=!1;return}le(_===qn.MAX),_===qn.MAX?he():ce()},[_]),be.useLayoutEffect(()=>{const rt=document.querySelector(".modal.modal--open");if(!rt||!(V!=null&&V.current)||!(E!=null&&E.current))return;const pt=()=>{const Mt=rt.offsetHeight,Et=E.current.offsetHeight;Mt>0&&Et>0&&(Et/Mt>.9?(rt.style.height="100%",xe()):rt.style.height="auto")};return ie.current?ie.current.complete?pt():(ie.current.onload=pt,ie.current.onerror=pt):pt(),()=>{rt.style.height="",ie.current&&(ie.current.onload=null,ie.current.onerror=null)}},[we,G,d,We]),Pe.jsx("div",{className:`location-details ${te.current===!0?"location-details--max-height":""} ${fe?"location-details--content-above":""} ${Ze?"location-details--content-below":""}`,children:we&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsxs("div",{className:"location-details__header",children:[Pe.jsxs("div",{className:"location-info",children:[Pe.jsx("div",{className:"location-info__icon",children:ee&&Pe.jsx("img",{alt:"",src:ee.icon.src?ee.icon.src:ee.icon})}),Pe.jsxs("div",{className:"location-info__content",children:[Pe.jsx("div",{className:"location-info__name",children:we.properties.name}),Pe.jsx("mi-location-info",{level:b("Level"),ref:a,"show-external-id":k})]}),Pe.jsxs("div",{className:"location-info__actions",children:[Pe.jsx(xL,{buttonClassName:"location-info__button",location:we}),Pe.jsx("button",{className:"location-info__button",onClick:()=>Q(),children:Pe.jsx(Bm,{})})]})]}),St&&Vt?Pe.jsx("button",{disabled:!T,onClick:()=>Ue(),className:`location-details__wayfinding ${T?"":"location-details--no-route"}`,style:{background:jt},children:b(T?"Start directions":"Directions not available")}):Pe.jsx("button",{onClick:()=>et(),style:{background:jt},className:"location-details__wayfinding",children:b("Start wayfinding")})]}),Pe.jsx("div",{className:"location-details__details prevent-scroll",...ut,ref:V,children:Pe.jsxs("div",{ref:E,onScroll:rt=>xe(),className:"location-details__details-content",children:[we.properties.imageURL&&Pe.jsx("img",{ref:ie,alt:"",src:we.properties.imageURL,className:"location-details__image"}),Object.keys(we.properties.categories).length>0&&Pe.jsx("p",{className:"location-details__categories",children:Object.values(we.properties.categories).map((rt,pt,Mt)=>Pe.jsxs(Cr.Fragment,{children:[rt,pt<Mt.length-1&&Pe.jsx(Pe.Fragment,{children:"・"})]},rt))}),we.properties.description&&Pe.jsxs("section",{className:`location-details__description ${G?"location-details__description--full":""}`,children:[Pe.jsx("div",{ref:j,children:we.properties.description}),($e||xt||G)&&Pe.jsx("button",{onClick:()=>se(),children:b(G?"Close":"Read full description")})]}),We&&Pe.jsxs("div",{className:"contact-action-buttons-container",children:[We.map(rt=>Pe.jsx(bL,{detailType:rt.detailType,active:rt.active,displayText:rt.displayText,value:rt.value,icon:rt.icon},rt.key)),ot&&Pe.jsx(OZ,{openingHours:ot,onExpand:()=>xe()})]})]})})]})})}const Xae="",PZ=e=>be.createElement("svg",{width:16,height:17,viewBox:"0 0 16 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1663_3931)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1663_3931"},be.createElement("rect",{width:16,height:16,fill:"white",transform:"translate(0 0.5)"})))),ML=e=>be.createElement("svg",{width:13,height:20,viewBox:"0 0 13 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),RZ=e=>be.createElement("svg",{width:20,height:24,viewBox:"0 0 20 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"}),be.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"})),Jae="";mv.propTypes={location:dt.object,locationClicked:dt.func,icon:dt.string,isHovered:dt.bool};function mv({location:e,locationClicked:i,icon:o,isHovered:u}){const{t:d}=cs(),_=be.useRef(),b=Ei(ca),a=Ei(fv);return be.useEffect(()=>{var G;const E=le=>i(le.detail),j=()=>{var le;((le=e.properties.locationSettings)==null?void 0:le.selectable)!==!1&&b.hoverLocation(e)},V=()=>{var le;(le=e.properties.locationSettings)!=null&&le.selectable||b.unhoverLocation(e)};((G=e.properties.locationSettings)==null?void 0:G.selectable)===!1&&_.current.classList.add("non-selectable");const{current:ie}=_;return ie.location=e,ie.icon=o||b.getDisplayRule(e).icon,ie.addEventListener("locationClicked",E),ie.addEventListener("mouseover",j),ie.addEventListener("mouseout",V),u?_.current.classList.add("hovered"):_.current.classList.remove("hovered"),()=>{ie.removeEventListener("locationClicked",E),ie.removeEventListener("mouseover",j),ie.removeEventListener("mouseout",V)}},[e,i,u]),Pe.jsx("mi-list-item-location",{level:d("Level"),ref:_,"show-external-id":a})}const BZ=()=>{const[e,i]=be.useState(),o=Ei(ca),u=Ei(sv);return be.useEffect(()=>{function d(){const _=o.getMapView().getCenter();i(_.lat+","+_.lng)}return o&&u?(o.getMapView().addListener("idle",d),d()):o&&o.getMapView().removeListener("idle",d),()=>{o&&o.getMapView().removeListener("idle",d)}},[o,u]),e},w4=kn({key:"searchInput",default:void 0}),yv=be.forwardRef(function(i,o){const{placeholder:u,mapsindoors:d,results:_,clicked:b,cleared:a,changed:E,category:j,google:V,mapbox:ie,disabled:G=!1}=i,le=be.useRef(),fe=Ei(J_),ve=Ei(Fh),[,Ze]=sn(w4),me=sessionStorage.getItem("mapboxPlacesSessionToken"),te={longitude:fe==null?void 0:fe.coords.longitude,latitude:fe==null?void 0:fe.coords.latitude},ee=BZ(),re=Ei(bu),Me=Ei(pv);return be.useImperativeHandle(o,()=>({triggerSearch(){le.current.triggerSearch()},getValue(){return le.current.value},setDisplayText(we){le.current.setDisplayText(we)},focusInput(){le.current.focusInput()},clear(){le.current.clear()},getInputField(){return le.current.getInputField().then(we=>Ze(we))}})),be.useEffect(()=>{const{current:we}=le;we.value&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{we.triggerSearch()})},[ve]),be.useEffect(()=>{const we=$e=>_($e.detail),We=()=>a(),{current:ot}=le;return d===!0&&(ot.mapsindoors="true"),ot.addEventListener("results",we),ot.addEventListener("click",b),ot.addEventListener("cleared",We),ot.addEventListener("changed",E),()=>{ot.removeEventListener("results",we),ot.removeEventListener("click",b),ot.removeEventListener("cleared",We),ot.removeEventListener("changed",E)}},[u,d,_,b,a,V,ie,E]),Pe.jsx("mi-search",{ref:le,"id-attribute":"search",placeholder:u,"session-token":me,"user-position":te.latitude!==void 0&&te.longitude!==void 0?Object.values(te).join(","):null,"mi-near":ee,"mi-categories":j,disabled:G,mapbox:ie,google:V,"mi-venue":Me?void 0:re,language:ve})});yv.propTypes={placeholder:dt.string,mapsindoors:dt.bool,results:dt.func,clicked:dt.func,cleared:dt.func,changed:dt.func,category:dt.string,preventFocus:dt.bool,google:dt.bool,mapbox:dt.bool,disabled:dt.bool};function b4(e){const i={type:"Point",coordinates:[e.coords.longitude,e.coords.latitude]};return{id:"USER_POSITION",geometry:i,properties:{name:aN("My position"),anchor:i},type:"Feature"}}let M4;function FZ(e){return new Promise((i,o)=>{M4||(M4=new window.google.maps.Geocoder),M4.geocode({placeId:e.properties.placeId},u=>{u.length>0?(e.geometry={type:"Point",coordinates:[u[0].geometry.location.lng(),u[0].geometry.location.lat()]},i(e)):o()})})}const UZ="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=",IL=e=>be.createElement("svg",{width:20,height:18,viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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"})),TL=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_1697_57490)"},be.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"}),be.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"}),be.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"}),be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_1697_57490"},be.createElement("rect",{width:20,height:20,fill:"white"})))),VZ=e=>be.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("g",{clipPath:"url(#clip0_3407_1703)"},be.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"})),be.createElement("defs",null,be.createElement("clipPath",{id:"clip0_3407_1703"},be.createElement("rect",{width:20,height:20,fill:"white"}))));DL.propTypes={selectionChanged:dt.func,children:dt.node};function DL({selectionChanged:e,children:i}){const o=be.useRef();return be.useEffect(()=>{const u=_=>e(_.detail),{current:d}=o;return d.addEventListener("change",u),()=>d.removeEventListener("change",u)},[e]),Pe.jsx("mi-dropdown",{ref:o,children:i})}function QZ(e,i){const o=sessionStorage.getItem("mapboxPlacesSessionToken");return new Promise((u,d)=>{const _=`https://api.mapbox.com/search/searchbox/v1/retrieve/${e.id}?session_token=${o}&access_token=${i}`;fetch(_).then(b=>b.status!==200?d():b.json()).then(b=>{e.geometry={type:"Point",coordinates:[b.features[0].geometry.coordinates[0],b.features[0].geometry.coordinates[1]]},u(e)}).catch(()=>{d()})})}const HZ=B_({key:"unitSystem",get:({get:e})=>e(Fh)==="en-US"?"imperial":"metric"}),ele="";I4.propTypes={onAccessibilityChanged:dt.func};function I4({onAccessibilityChanged:e}){const i=Ei(Sl),[o,u]=sn(Qm);function d(_){u(_.target.checked),e&&e()}return Pe.jsxs("div",{className:"accessibility",children:[Pe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:_=>d(_),style:{backgroundColor:o?i:""}}),Pe.jsx("div",{children:aN("Avoid stairs and escalators")})]})}const tle="";function $Z(){var _;const e=Ei(Sl),i=Ei(Ef),[o,u]=sn(dL);function d(b){u(b.target.checked)}return Pe.jsxs("div",{className:"shuttle-bus",children:[Pe.jsx("input",{className:"mi-toggle",type:"checkbox",checked:o,onChange:b=>d(b),style:{backgroundColor:o?e:""}}),Pe.jsx("div",{children:((_=i==null?void 0:i.appSettings)==null?void 0:_.includeTransitSelectionDescription)||"Include bus transportation"})]})}const SL=kn({key:"wayfindingLocation",default:null}),Co={TO:"TO",FROM:"FROM"},YZ="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";T4.propTypes={onStartDirections:dt.func.isRequired,onBack:dt.func.isRequired,directionsToLocation:dt.object,directionsFromLocation:dt.object,onSetSize:dt.func,isActive:dt.bool};function T4({onStartDirections:e,onBack:i,directionsToLocation:o,directionsFromLocation:u,onSetSize:d,isActive:_}){var zi,Ii;const{t:b}=cs(),a=be.useRef(),E=be.useRef(),j=be.useRef(),V=be.useRef(),ie=Ei(G3),G=Ei(J_),le=Ei(xc),fe=Ei(ev),ve=Ei(Sl),[Ze,me]=sn(SL),[te,ee]=be.useState(),[,re]=sn(dv),[Me,we]=be.useState(!0),[We,ot]=be.useState(!1),[$e,xt]=be.useState([]),[ut,jt]=be.useState(),[St,Jt]=be.useState(),Tt=Ei(Qm),bt=kf(),[qt,Ot]=be.useState(!1),[Vt,W]=sn(Vm),[ne,T]=be.useState(!1),k=Ei(tv),F=Ei(HZ),[Q,Z,se,he]=fL(St,ut,ie,Vt,Tt),ce=Ei(v4),xe=Ei(Ef);function He(Ht){return fe===us.Google&&Ht.properties.type==="google_places"?FZ(Ht):fe===us.Mapbox&&Ht.properties.type==="mapbox_places"?QZ(Ht,k):Promise.resolve(Ht)}function et(Ht){te===Co.TO?He(Ht).then(ci=>{jt(ci),j.current.setDisplayText(ci.properties.name)},()=>re(!1)):te===Co.FROM&&He(Ht).then(ci=>{Jt(ci),V.current.setDisplayText(ci.properties.name)},()=>re(!1)),Ot(!1),ot(!1),xt([]),T(!1)}function Ue(Ht,ci){if(ee(ci),re(!0),Ht.length===0)we(!1),Ot(!1),xt([]);else{we(!0),xt(Ht);const bi=Ht.filter(Ni=>Ni.properties.type==="google_places").length>0;Ot(bi),Xe(qn.MAX)}}function Xe(Ht){typeof d=="function"&&d(Ht)}function Fe(){const Ht=b4(G);te===Co.TO?(j.current.setDisplayText(Ht.properties.name),jt(Ht)):te===Co.FROM&&(V.current.setDisplayText(Ht.properties.name),Jt(Ht)),xt([]),re(!0),we(!0),Ot(!1),ot(!1),T(!1)}function rt(Ht){(St==null?void 0:St.id)==="USER_POSITION"&&Ht===Co.TO||(ut==null?void 0:ut.id)==="USER_POSITION"&&Ht===Co.FROM?T(!1):T(!0)}function pt(Ht){rt(Ht)}function Mt(Ht){ee(Ht),ei(Ht),re(!0),Ot(!1),rt(Ht)}function Et(Ht){T(!0),ee(Ht),di(Ht),xt([]),re(!0),Ot(!1),we(!0)}function di(Ht){Ht===Co.TO?jt():Ht===Co.FROM&&Jt()}function ei(Ht){Ht===Co.TO?(xt([]),j.current.getValue()&&(ot(!0),j.current.triggerSearch())):Ht===Co.FROM&&(xt([]),V.current.getValue()&&(ot(!0),V.current.triggerSearch()))}function Di(){(ut||St)&&(St?j.current.setDisplayText(St.properties.name):j.current.clear(),ut?V.current.setDisplayText(ut.properties.name):V.current.clear(),jt(St),Jt(ut))}function si(){Jt(),V.current.setDisplayText(""),i()}function xi(){xt([]),ot(!1),Ot(!1),T(!1)}return be.useEffect(()=>()=>{xt([]),jt(),Jt()},[]),be.useEffect(()=>{if(Ze){if(te===Co.FROM)V.current.setDisplayText(Ze.properties.name),Jt(Ze);else if(te===Co.TO)j.current.setDisplayText(Ze.properties.name),jt(Ze);else return;xi(),me(null)}},[Ze]),be.useEffect(()=>{var ci;Xe(qn.FIT);let Ht=!1;if((u==null?void 0:u.id)==="USER_POSITION"&&(o==null?void 0:o.id)==="USER_POSITION"&&(o=void 0),o!=null&&o.properties&&!le&&(j.current.setDisplayText(o.properties.name),jt(o)),u!=null&&u.properties?St||(V.current.setDisplayText(u.properties.name),Jt(u),Ht=!0):ee(Co.FROM),_&&!((ci=V.current)!=null&&ci.getValue())&&G&&!St&&(o==null?void 0:o.id)!=="USER_POSITION"&&!Ht){const bi=b4(G);V.current.setDisplayText(bi.properties.name),Jt(bi),re(!0),we(!0),xt([])}},[_,o,u]),be.useEffect(()=>{fe===us.Mapbox&&(Ot(!1),xt($e.filter(Ht=>Ht.properties.type!=="google_places")))},[fe]),be.useEffect(()=>{le&&(jt(le),j.current.setDisplayText(le.properties.name))},[le]),Pe.jsxs("div",{className:"wayfinding",ref:a,children:[Pe.jsxs("div",{className:"wayfinding__directions",children:[Pe.jsx("div",{className:"wayfinding__title",children:b("Directions")}),Pe.jsx("button",{className:"wayfinding__close",onClick:()=>si(),"aria-label":"Close",children:Pe.jsx(Bm,{})}),Pe.jsxs("div",{className:"wayfinding__locations",children:[Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose departure")}),Pe.jsx(yv,{ref:V,mapsindoors:!0,google:fe===us.Google&&ce,mapbox:fe===us.Mapbox&&ce,placeholder:b("Choose departure"),results:Ht=>Ue(Ht,Co.FROM),clicked:()=>Mt(Co.FROM),cleared:()=>Et(Co.FROM),changed:()=>pt(Co.FROM)})]}),Pe.jsx("button",{onClick:()=>Di(),"aria-label":b("Switch"),className:"wayfinding__switch",children:Pe.jsx(RZ,{})}),Pe.jsxs("label",{className:"wayfinding__label",children:[Pe.jsx("span",{children:b("Choose destination")}),Pe.jsx(yv,{ref:j,mapsindoors:!0,google:fe===us.Google&&ce,mapbox:fe===us.Mapbox&&ce,placeholder:b("Choose destination"),results:Ht=>Ue(Ht,Co.TO),clicked:()=>Mt(Co.TO),cleared:()=>Et(Co.TO),changed:()=>pt(Co.TO)})]})]})]}),!se&&Pe.jsx("p",{className:"wayfinding__error",children:b("No route found")}),!Me&&!ne&&Pe.jsx("p",{className:"wayfinding__error",children:b("Nothing was found")}),G&&ne&&Pe.jsxs("button",{type:"button",className:"wayfinding__use-current-position",onClick:()=>Fe(),children:[Pe.jsx(VZ,{}),b("My position")]}),$e.length>0&&Pe.jsx("div",{className:"wayfinding__scrollable",...bt,children:Pe.jsxs("div",{className:"wayfinding__results",children:[$e.map(Ht=>Pe.jsx(mv,{icon:Ht.properties.type==="google_places"||Ht.properties.type==="mapbox_places"?YZ:void 0,location:Ht,locationClicked:ci=>et(ci)},Ht.id)),qt&&Pe.jsx("img",{className:"wayfinding__google",alt:"Powered by Google",src:UZ})]})}),!We&&!ne&&se&&!qt&&St&&ut&&Pe.jsxs("div",{className:"wayfinding__details",ref:E,children:[Pe.jsxs("div",{className:"wayfinding__settings",children:[Pe.jsxs("div",{className:"wayfinding__toggles",children:[Pe.jsx(I4,{}),((zi=xe==null?void 0:xe.appSettings)==null?void 0:zi.includeTransitSelection)==="true"&&Pe.jsx($Z,{})]}),Pe.jsx("div",{className:"wayfinding__travel",children:((Ii=xe==null?void 0:xe.appSettings)==null?void 0:Ii.includeTravelModeSelection)!=="false"&&Pe.jsxs(DL,{selectionChanged:Ht=>W(Ht[0].value),children:[Pe.jsxs("mi-dropdown-item",{selected:!0,value:Bh.WALKING,children:[Pe.jsx(ML,{}),b("Walk")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.DRIVING,children:[Pe.jsx(IL,{}),b("Drive")]}),Pe.jsxs("mi-dropdown-item",{value:Bh.BICYCLING,children:[Pe.jsx(TL,{}),b("Bike")]})]})})]}),Pe.jsx("hr",{}),Pe.jsxs("div",{className:"wayfinding__info",children:[Pe.jsxs("div",{className:"wayfinding__distance",children:[Vt===Bh.WALKING&&Pe.jsx(ML,{}),Vt===Bh.DRIVING&&Pe.jsx(IL,{}),Vt===Bh.BICYCLING&&Pe.jsx(TL,{}),Pe.jsxs("div",{children:[b("Distance"),":"]}),Pe.jsx("div",{className:"wayfinding__meters",children:Q&&he&&Pe.jsx("mi-distance",{unit:F,meters:Q})})]}),Pe.jsxs("div",{className:"wayfinding__time",children:[Pe.jsx(PZ,{}),Pe.jsxs("div",{children:[b("Estimated time"),":"]}),Pe.jsx("div",{className:"wayfinding__minutes",children:Z&&he&&Pe.jsx("mi-time",{translations:JSON.stringify({days:b("d"),hours:b("h"),minutes:b("min")}),seconds:Z})})]})]}),Pe.jsx("button",{className:"wayfinding__button",style:{background:ve},onClick:()=>e(),disabled:!he,children:b("Go!")})]})]})}const ile="",nle="",GZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M4 12H20M20 12L14 6M20 12L14 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),ZZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M20 12H4M4 12L10 6M4 12L10 18",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_v=kn({key:"activeStep",default:0}),vv=kn({key:"substepsToggled",default:!1}),WZ=kn({key:"triggerSubsteps",default:!1}),AL=be.forwardRef(function(i,o){var ve;const{totalSteps:u,activeStep:d,previous:_,originLocation:b,directions:a}=i,E=be.useRef(),{t:j}=cs(),[V,ie]=sn(vv),[,G]=sn(WZ),le=jh();be.useImperativeHandle(o,()=>({openSubsteps(){E.current.openSubsteps()},closeSubsteps(){E.current.closeSubsteps()}}));const fe={walk:j("Walk"),bike:j("Bike"),transit:j("Transit"),drive:j("Drive"),destination:j("You have arrived"),leave:j("Leave"),from:j("From"),park:j("Park"),at:j("at"),building:j("Building"),venue:j("Venue"),takeStaircaseToLevel:j("Take staircase to level"),takeLadderToLevel:j("Take the ladder to level"),takeElevatorToLevel:j("Take elevator to level"),takeEscalatorToLevel:j("Take escalator to level"),takeWheelchairLiftToLevel:j("Take wheelchair lift to level"),takeWheelchairRampToLevel:j("Take wheelchair ramp to level"),exit:j("Exit"),enter:j("Enter"),stops:j("stops"),andContinue:j("and continue"),continueStraightAhead:j("Continue straight ahead"),goLeft:j("Go left"),goSharpLeft:j("Go sharp left"),goSlightLeft:j("Go slight left"),goRight:j("Go right"),goSharpRight:j("Go sharp right"),goSlightRight:j("Go slight right"),turnAround:j("Turn around"),days:j("d"),hours:j("h"),minutes:j("min")};return be.useEffect(()=>{const{current:Ze}=E;function me(){G(!0),ie(!V)}return Ze.addEventListener("substepsToggled",me),()=>{Ze.removeEventListener("substepsToggled",me)}},[V]),Pe.jsx("mi-route-instructions-step",{ref:E,"show-toggle-button":!le,step:JSON.stringify(u[d]),translations:JSON.stringify(fe),"destination-location":a==null?void 0:a.destinationLocation.properties.name,"from-travel-mode":(_==null?void 0:_.travel_mode)??"","from-route-context":(_==null?void 0:_.route_context)??((ve=b==null?void 0:b.properties)==null?void 0:ve.name)??""})});AL.propTypes={totalSteps:dt.array,activeStep:dt.number,previous:dt.object,originLocation:dt.object,directions:dt.object};const CL=kn({key:"isDestinationStep",default:!1});EL.propTypes={steps:dt.array,onNextStep:dt.func,onPreviousStep:dt.func,originLocation:dt.object,isOpen:dt.bool};function EL({steps:e,onNextStep:i,onPreviousStep:o,originLocation:u,isOpen:d}){const{t:_}=cs(),b=kf(),a=be.useRef(),[E,j]=be.useState(),[V,ie]=sn(_v),[G,le]=be.useState(),fe=Ei(Um),ve=Ei(vv),[,Ze]=sn(CL),me=jh();be.useEffect(()=>{le(e)},[e]),be.useEffect(()=>{var re,Me;d&&(V===(G==null?void 0:G.length)-1&&(fe!=null&&fe.destinationLocation)?Ze(!0):Ze(!1),ve===!1?(re=a.current)==null||re.closeSubsteps():ve===!0&&((Me=a.current)==null||Me.openSubsteps()))},[d,V,G,ve]);function te(){j(G[V]),ie(V+1),i()}function ee(){j(G[V-2]),ie(V-1),o()}return Pe.jsx("div",{className:"route-instructions prevent-scroll",...b,children:G&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx(AL,{totalSteps:G,activeStep:V,previous:E,directions:fe,originLocation:u,ref:a}),Pe.jsx("div",{className:`route-instructions__footer ${me?"route-instructions__footer--kiosk":""}`,children:Pe.jsxs("div",{className:"route-instructions__actions",children:[Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>ee(),"aria-label":_("Previous"),disabled:V===0,children:Pe.jsx(ZZ,{})}),Pe.jsx("div",{className:"route-instructions__overview",children:_("StepYofX",{activeStep:V+1,totalSteps:G.length})}),Pe.jsx("button",{className:`route-instructions__button ${me?"route-instructions__button--kiosk":""}`,onClick:()=>te(),"aria-label":_("Next"),disabled:V===G.length-1,children:Pe.jsx(GZ,{})})]})})]})})}const NL=Object.freeze({minZoom:10});let ws;D4.propTypes={isOpen:dt.bool,onBack:dt.func,onSetSize:dt.func,onRouteFinished:dt.func,snapPointSwipedByUser:dt.string};function D4({isOpen:e,onBack:i,onSetSize:o,onRouteFinished:u,snapPointSwipedByUser:d}){const{t:_}=cs(),b=be.useRef(),[a,E]=be.useState(null),j=be.useRef(null),[V,ie]=be.useState(),G=Ei(ca),le=Ei(Vm),fe=Ei(Um),[,ve]=sn(_v),[Ze,me]=sn(vv),te=Ei(Dl),ee=Ja(),[,re]=sn(gv),Me=Ei(CL),we=Ei(Sl),We=jh(),ot=Ei(fv),$e=Ei(yL),xt=Ei(xc),ut=Ei(ev);be.useEffect(()=>()=>{E(null)},[]),be.useEffect(()=>{if(E(null),e&&fe){ie(fe.totalTime);const k=Math.min(window.innerHeight,window.innerWidth)*.06;ws==null||ws.setRoute(null),ws=null,Promise.all([jt(k),St(k)]).then(([F,Q])=>{ws=new window.mapsindoors.directions.DirectionsRenderer({mapsIndoors:G,fitBounds:We?!1:{top:k,bottom:F,left:Q,right:k}}),ws.setRoute(fe.directionsResult).then(()=>{ws.setStepIndex(0)}),j.current.location=fe.destinationLocation,fe.destinationLocation.id==="USER_POSITION"?E(null):E(G.getDisplayRule(fe.destinationLocation)),Vt(null)})}},[e,fe,G,le]);function jt(k){return new Promise(F=>{if(ee)te?Om().then(Q=>F(Q)):F(k);else return Sf().then(Q=>F(Q))})}function St(k){return new Promise(F=>{ee?te?F(k):kh().then(Q=>F(Q)):F(k)})}be.useEffect(()=>{!e&&ws&&(qt(),Vt(NL.minZoom))},[e]);function Jt(){return fe?fe.directionsResult.legs.reduce((k,F)=>{for(const Q in F.steps){const Z=F.steps[Q];k.push(Z)}return k},[]):[]}function Tt(){ws&&ws.nextStep()}function bt(){ws&&ws.previousStep()}function qt(){ws==null||ws.setRoute(null),ws=null}function Ot(){ve(0),me(!1),ne(qn.FIT)}function Vt(k){ut==="mapbox"?G.getMapView().getMap().setMinZoom(k):ut==="google"&&G.getMapView().getMap().setOptions({minZoom:k})}function W(){Ot(),qt(),i()}function ne(k){typeof o=="function"&&o(k)}function T(){const k=`${$e}&directionsFrom=${te.id}&directionsTo=${xt.id}`;re(k)}return be.useEffect(()=>(b.current=requestAnimationFrame(()=>{ne(Ze?qn.MAX:qn.FIT)}),()=>{b.current&&cancelAnimationFrame(b.current)}),[Ze]),be.useEffect(()=>{e&&d&&me(d===qn.MAX)},[e,d]),Pe.jsxs("div",{className:"directions",style:{display:We?"block":"grid"},children:[Pe.jsxs("div",{className:"directions__steps",children:[Pe.jsx("div",{className:"directions__minutes",children:V&&Pe.jsx("mi-time",{translations:JSON.stringify({days:_("d"),hours:_("h"),minutes:_("min")}),seconds:V})}),Pe.jsx(EL,{steps:Jt(),originLocation:fe==null?void 0:fe.originLocation,onNextStep:()=>Tt(),isOpen:e,onPreviousStep:()=>bt()})]}),We&&Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("hr",{}),Pe.jsxs("div",{className:"directions__kiosk",children:[Pe.jsx(I4,{onAccessibilityChanged:()=>Ot()}),Pe.jsxs("button",{className:"directions__qr-code",onClick:()=>T(),children:[Pe.jsx(_L,{}),_("Scan QR code")]})]})]}),Pe.jsxs("div",{className:"directions__actions",children:[Pe.jsx("div",{className:"directions__details",children:(fe==null?void 0:fe.destinationLocation)&&Pe.jsxs("div",{className:"directions__info",children:[a&&fe.destinationLocation.id!=="USER_POSITION"&&Pe.jsx("div",{className:"directions__icon",children:Pe.jsx("img",{alt:"",src:a.icon.src?a.icon.src:a.icon})}),Pe.jsxs("div",{className:"directions__content",children:[Pe.jsx("div",{className:"directions__name",children:fe==null?void 0:fe.destinationLocation.properties.name}),Pe.jsx("mi-location-info",{ref:j,"show-external-id":ot})]})]})}),Me?Pe.jsx("button",{className:"directions__finish",onClick:()=>u(),style:{background:we},children:_("Finish route")}):Pe.jsx("button",{className:"directions__cancel",onClick:()=>W(),children:_("Cancel route")})]})]})}const rle="",LL=kn({key:"useKeyboard",default:!1}),zL=be.forwardRef(function(i,o){const{searchInputElement:u}=i,d=be.useRef(),_=Ei(Fh);return be.useImperativeHandle(o,()=>({clearInputField(){d.current.clearInputField()}})),be.useEffect(()=>{const{current:b}=d;u&&(b.inputElement=u)},[u]),Pe.jsx("mi-keyboard",{language:_,ref:d})});zL.propTypes={searchInputElement:dt.instanceOf(HTMLInputElement)};const xv=kn({key:"searchResults",default:[]}),S4=kn({key:"selectedCategory",default:void 0}),ole="";function qZ(){return new Promise(e=>{const i=document.querySelector(".chip--active");if(i)e(i);else{const o=new MutationObserver(()=>{const u=document.querySelector(".chip--active");u&&(o.disconnect(),e(u))});o.observe(document,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}})}const KZ=kn({key:"isBottomSheetLoaded",default:!1}),OL=kn({key:"category",default:void 0}),kL=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M17.5 20.9999L10.5 13.9999L17.5 6.99994",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"})),XZ=e=>be.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.createElement("path",{d:"M10.5 7.00006L17.5 14.0001L10.5 21.0001",stroke:"#1F2937",strokeWidth:2.33333,strokeLinecap:"round",strokeLinejoin:"round"}));A4.propTypes={onSetSize:dt.func,getFilteredLocations:dt.func,searchFieldRef:dt.object,isOpen:dt.bool,topLevelCategory:dt.bool,handleBack:dt.func,selectedCategoriesArray:dt.object,categoryOrientation:dt.oneOf(["horizontal","vertical"])};function A4({onSetSize:e,getFilteredLocations:i,searchFieldRef:o,isOpen:u,topLevelCategory:d,handleBack:_,selectedCategoriesArray:b,categoryOrientation:a}){const E=Ei(km),j=Ja(),[V,ie]=sn(S4),[,G]=sn(xv),[,le]=sn(iv),fe=kf(),[ve,Ze]=be.useState(),me=Ei(KZ),te=Ei(OL),ee=Ei(ca),re=pL(ee,u),[Me,we]=be.useState([]),[We,ot]=be.useState([]),{t:$e}=cs(),xt=jh(),ut=be.useRef(null),[jt,St]=be.useState(!1),[Jt,Tt]=be.useState(!1),bt=k=>{Vt&&ut.current&&ut.current.scrollBy({left:k==="left"?-200:200,behavior:"smooth"})},qt=()=>{if(ut.current){const{scrollLeft:k,scrollWidth:F,clientWidth:Q}=ut.current,Z=k<=0,se=k>=F-Q-1;St(!Z),Tt(!se)}},Ot=!d&&Me.length===0,Vt=xt&&a==="horizontal"&&!Ot;be.useEffect(()=>{if(!Vt)return;const k=ut.current;if(k)return qt(),k.addEventListener("scroll",qt),()=>{k.removeEventListener("scroll",qt)}},[Vt,Me.length]);const W=`categories prevent-scroll${xt?` categories--kiosk-${a||"vertical"}`:""}`;function ne(k){typeof e=="function"&&e(k)}function T(k){ie(k),V===k?(G([]),ie(null),le([]),o.current.getValue()&&o.current.triggerSearch()):o.current.getValue()?o.current.triggerSearch():i(k)}return be.useEffect(()=>{var k;re&&V&&(ie(null),G([]),le([]),(k=o.current)!=null&&k.getValue()&&o.current.clear())},[re]),be.useEffect(()=>{V&&(qZ().then(k=>Ze(k)),ne(qn.MAX))},[V]),be.useEffect(()=>{ve&&te!==void 0&&(j||!j&&me)&&ve.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})},[ve,te,me]),be.useEffect(()=>{var Q,Z,se;let k=[];if(d){const he=E.flatMap(([,ce])=>ce.childKeys||[]);k=E.filter(([ce])=>!he.includes(ce))}else if(V){const he=(Q=E.find(([xe])=>xe===V))==null?void 0:Q[1],ce=(he==null?void 0:he.childKeys)||[];k=E.filter(([xe])=>ce.includes(xe))}we(k);const F=(se=(Z=E.find(([he])=>he===V))==null?void 0:Z[1])==null?void 0:se.displayName;ot(F)},[E]),Pe.jsx("div",{className:W,...fe,children:E.length>0&&Pe.jsxs(Pe.Fragment,{children:[!d&&Pe.jsxs("div",{className:"categories__nav",children:[Pe.jsx("button",{"aria-label":$e("Back"),type:"button",className:"categories__nav-button",onClick:_,children:Pe.jsx(kL,{})}),Pe.jsx("div",{children:We})]}),Pe.jsxs("div",{className:"categories__row",children:[Vt&&Pe.jsx("div",{className:"categories__chevron categories__chevron--left",children:Pe.jsx("button",{"aria-label":$e("Previous categories"),type:"button",disabled:!jt,onClick:()=>bt("left"),children:Pe.jsx(kL,{})})}),Pe.jsx("div",{className:"categories__list",ref:xt?ut:void 0,children:Me.map(([k,F])=>!d&&b.current.length!==1?null:Pe.jsx("div",{className:"categories__category",children:Pe.jsxs("button",{onClick:()=>d?T(k):i(k),children:[Pe.jsx("img",{src:F.iconUrl,alt:""}),F.displayName]})},k))}),Vt&&Pe.jsx("div",{className:"categories__chevron categories__chevron--right",children:Pe.jsx("button",{"aria-label":$e("Next categories"),type:"button",disabled:!Jt,onClick:()=>bt("right"),children:Pe.jsx(XZ,{})})})]})]})})}const JZ=e=>be.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},be.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}}),be.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"})),wv=kn({key:"isLegendDialogVisible",default:!1}),jL=B_({key:"legendFields",get:({get:e})=>{const i=e(Dl);if(!(i!=null&&i.properties.fields))return;const o=[];for(const d of Object.keys(i.properties.fields)){const _=parseInt(d.charAt(0));if(!Number.isInteger(_))continue;const b=o.find(j=>j.index===_),a=d.toLowerCase().includes("legendheading"),E=d.toLowerCase().includes("legendcontent");if(b)a?b.heading=i.properties.fields[d].value:E&&(b.content=i.properties.fields[d].value);else{const j={index:_,heading:a?i.properties.fields[d].value:null,content:E?i.properties.fields[d].value:null};o.push(j)}}return o.sort((d,_)=>d.index-_.index)}}),C4=kn({key:"initialVenueName",default:null});E4.propTypes={categories:dt.array,onSetSize:dt.func,isOpen:dt.bool};function E4({onSetSize:e,isOpen:i}){const o=Ei(Ef),{t:u}=cs(),d=be.useRef(),_=be.useRef(),b=be.useRef(),a=be.useRef(),E=be.useRef(),j=100,[V,ie]=be.useState(!0),[G,le]=sn(xv),fe=Ei(km),ve=Ei(LL),[Ze,me]=be.useState(!1),[te,ee]=sn(S4),re=kf(),[Me,we]=be.useState(),We=Ei(ca),[,ot]=sn(iv),[,$e]=sn(xc),[,xt]=sn(hv),[ut,jt]=sn(bu),St=Ei(Fh),Jt=Ja(),Tt=Ei(Dl),[bt,qt]=be.useState(!1),Ot=Ei(w4),Vt=jh(),[,W]=sn(wv),[ne,T]=be.useState(!1),k=Ei(jL),F=Ei(pv),Q=Ei(jm),Z=Ei(C4),[se,he]=be.useState(!1),ce=be.useRef([]),[xe,He]=be.useState([]),[et,Ue]=be.useState(!1);function Xe(){var ci,bi,Ni;ce.current.length===1?(ee(null),le([]),ot([]),rt(qn.FIT),he(!0),((bi=(ci=a.current)==null?void 0:ci.getValue())==null?void 0:bi.trim())?a.current.triggerSearch():(Ni=a.current)==null||Ni.clear(),ce.current.pop()):(ce.current.pop(),ee(ce.current[0]))}function Fe(ci){var bi;ce.current.includes(ci)||ce.current.push(ci),te&&(ee([]),le([]),ot([])),ee(ci),window.mapsindoors.services.LocationsService.getLocations({categories:ci,venue:F||(bi=Q.find(Ni=>Ni.name.toLowerCase()===ut.toLowerCase()))==null?void 0:bi.name}).then(Ni=>Mt(Ni,!0))}function rt(ci){typeof e=="function"&&e(ci)}function pt(ci){return te?[...ci].sort((bi,Ni)=>{var qi,an;return(((qi=bi.properties)==null?void 0:qi.name)||"").localeCompare(((an=Ni.properties)==null?void 0:an.name)||"")}):ci}function Mt(ci,bi=!1){var qi;const Ni=ci.slice(0,j);rt(qn.MAX),le(Ni),ot(Ni),me(Ni.length===0),ci&&bi&&Et(ci),Vt&&((qi=d.current)==null||qi.addEventListener("transitionend",()=>{var an;(an=_==null?void 0:_.current)==null||an.updateScrollButtons()},{once:!0}))}function Et(ci){if(!We.goTo)return;const bi=We.getFloor(),Ni={type:"FeatureCollection",features:ci.filter(qi=>parseInt(qi.properties.floor,10)===parseInt(bi,10)).filter(qi=>qi.properties.venueId.toLowerCase()===ut.toLowerCase()).map(qi=>({type:"Feature",geometry:qi.geometry,properties:qi.properties}))};Ni.features.length>0&&Promise.all([xi(),zi()]).then(([qi,an])=>{We.goTo(Ni,{maxZoom:22,padding:{bottom:qi,left:an,top:0,right:0}})})}function di(){le([]),me(!1),te&&Fe(te),ot([]),kr(E.current)||E.current.clearInputField()}function ei(){ie(!1),a.current.getInputField();const ci=d.current.closest(".sheet");ci?ci.addEventListener("transitionend",()=>{a.current.focusInput(),he(!0)},{once:!0}):(a.current.focusInput(),he(!0))}function Di(ci){we(ci)}function si(ci){$e(ci),ci.properties.venueId.toLowerCase()!==ut.toLowerCase()&&(jt(ci.properties.venueId),xt(!0));const bi=We.getFloor(),Ni=ci.properties.floor;Ni!==bi&&We.setFloor(Ni),Promise.all([xi(),zi()]).then(([qi,an])=>{We.goTo(ci,{maxZoom:22,padding:{bottom:qi,left:an,top:0,right:0}})})}function xi(){return new Promise(ci=>{Jt?Tt?Om().then(bi=>ci(bi)):ci(0):ci(200)})}function zi(){return new Promise(ci=>{Jt?Tt?ci(0):kh().then(bi=>ci(bi)):ci(0)})}function Ii(){if(G.length>0){let ci;return Jt?ci=document.querySelector(".mapsindoors-map").clientHeight*.6+"px":ci="100%",{display:"flex",flexDirection:"column",maxHeight:ci,overflow:"hidden"}}}function Ht(){return Vt&&et}return be.useEffect(()=>{const ci=[".search__info",".search__back-button",".categories",".sheet__content"],bi=[".mi-floor-selector",".view-mode-switch",".mi-my-position",".view-selector__toggle-button",".building-list",".mapboxgl-ctrl-bottom-right",".gmnoprint",".language-selector-portal"],Ni=qi=>{const an=ci.some(_t=>qi.target.closest(_t)),ln=bi.some(_t=>qi.target.closest(_t)),On=qi.target.closest(".search__results");an?(rt(qn.MAX),b.current=requestAnimationFrame(()=>{he(!0)})):!On&&!ln&&(he(!1),rt(qn.MIN),ee(null),le([]),ot([]),ce.current=[])};return i?b.current=requestAnimationFrame(()=>{document.addEventListener("click",Ni)}):document.removeEventListener("click",Ni),()=>{document.removeEventListener("click",Ni),b.current&&cancelAnimationFrame(b.current)}},[i]),be.useEffect(()=>()=>{we()},[]),be.useEffect(()=>{te&&ut!==Z&&(le([]),ee(null))},[ut]),be.useEffect(()=>{te&&window.mapsindoors.services.LocationsService.once("update_completed",()=>{a.current.triggerSearch()})},[St]),be.useEffect(()=>(We==null||We.on("mouseenter",Di),()=>{We==null||We.off("mouseenter",Di)}),[We]),be.useEffect(()=>{if(i&&Vt&&G.length>0){const ci=document.querySelector(".mapsindoors-map .search__results");_.current.scrollContainerElementRef=ci}},[G,i]),be.useEffect(()=>{if(ve){const ci=bi=>{bi.target.closest("mi-keyboard")||bi.target.tagName.toUpperCase()==="MI-SEARCH"||bi.target.tagName.toUpperCase()==="INPUT"?qt(!0):qt(!1)};return window.addEventListener("click",ci,!1),()=>{window.removeEventListener("click",ci,!1)}}},[ve]),be.useEffect(()=>{te&&Fe(te)},[te]),be.useEffect(()=>{Tt&&T(k.length>0)},[Tt]),be.useEffect(()=>{var bi,Ni;const ci=((Ni=(bi=fe.find(([qi])=>qi===te))==null?void 0:bi[1])==null?void 0:Ni.childKeys)||[];He(ci)},[fe,te]),be.useEffect(()=>{var ci,bi;Ue(((ci=o==null?void 0:o.appSettings)==null?void 0:ci.areHorizontalCategoriesEnabled)===!0||((bi=o==null?void 0:o.appSettings)==null?void 0:bi.areHorizontalCategoriesEnabled)==="true")},[o]),Pe.jsxs("div",{className:"search",ref:d,style:Ii(),children:[Pe.jsxs("div",{className:"search__info",style:{gridTemplateColumns:Vt&&ne?"min-content 1fr":"auto"},children:[Vt&&ne&&Pe.jsx("button",{className:"search__legend",onClick:()=>W(!0),children:Pe.jsx(JZ,{})}),Pe.jsxs("label",{className:"search__label",children:[Pe.jsx("span",{children:u("Search by name, category, building...")}),Pe.jsx(yv,{ref:a,mapsindoors:!0,placeholder:u("Search by name, category, building..."),results:ci=>Mt(ci),clicked:()=>ei(),cleared:()=>di(),category:te,disabled:V})]})]}),(Ht()||se)&&!Ze&&fe.length>0&&G.length===0&&Pe.jsx(A4,{onSetSize:e,searchFieldRef:a,getFilteredLocations:ci=>Fe(ci),isOpen:!!te,topLevelCategory:!0,categoryOrientation:et?"horizontal":"vertical"}),Ze&&Pe.jsxs("p",{className:"search__error",children:[" ",u("Nothing was found")]}),G.length>0&&Pe.jsxs("div",{className:"search__results prevent-scroll",...re,children:[te&&Pe.jsx(A4,{handleBack:Xe,getFilteredLocations:ci=>Fe(ci),onLocationClicked:si,childKeys:xe,topLevelCategory:!1,selectedCategoriesArray:ce,categoryOrientation:et?"horizontal":"vertical"}),pt(G).map(ci=>Pe.jsx(mv,{location:ci,locationClicked:()=>si(ci),isHovered:(ci==null?void 0:ci.id)===(Me==null?void 0:Me.id)},ci.id))]}),bt&&Jt&&Pe.jsx(zL,{ref:E,searchInputElement:Ot}),i&&Vt&&G.length>0&&yu.createPortal(Pe.jsx("div",{className:"search__scroll-buttons",children:Pe.jsx("mi-scroll-buttons",{ref:_})}),document.querySelector(".mapsindoors-map"))]})}const sle="";N4.propTypes={onLocationClick:dt.func.isRequired,onBack:dt.func.isRequired,locations:dt.arrayOf(dt.object),onSetSize:dt.func};function N4({onBack:e,onLocationClick:i,locations:o,onSetSize:u}){const{t:d}=cs(),_=kf();function b(a){typeof u=="function"&&u(a)}return be.useEffect(()=>{b(qn.FIT)},[]),Pe.jsxs("div",{className:"locations-list",children:[Pe.jsxs("div",{className:"locations-list__header",children:[Pe.jsxs("div",{className:"locations-list__title",children:[o==null?void 0:o.length," ",d("Locations")]}),Pe.jsx("button",{className:"locations-list__close",onClick:()=>e(),"aria-label":d("Close"),children:Pe.jsx(Bm,{})})]}),Pe.jsx("div",{className:"locations-list__scrollable prevent-scroll",..._,children:Pe.jsx("div",{className:"locations-list__list",children:o==null?void 0:o.map(a=>Pe.jsx(mv,{location:a,locationClicked:E=>i(E)},a.id))})})]})}PL.propTypes={directionsFromLocation:dt.string,directionsToLocation:dt.string,pushAppView:dt.func.isRequired,currentAppView:dt.string,appViews:dt.object,onRouteFinished:dt.func.isRequired};function PL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const b=be.useRef(),a=be.useRef(),E=be.useRef(),j=be.useRef(),V=be.useRef(),ie=be.useRef(),[G,le]=sn(xc),[fe,ve]=be.useState(!1),[Ze,me]=sn(nv),[,te]=sn(ov);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):G?o(d.LOCATION_DETAILS,G):(Ze==null?void 0:Ze.length)>1?o(d.EXTERNALIDS):(Ze==null?void 0:Ze.length)===1?(le(Ze[0]),te(Ze[0].id)):o(d.SEARCH))},[G,e,i,Ze]),be.useEffect(()=>{if(G){const we=G.properties.imageURL||G.properties.description||G.properties.additionalDetails||Object.keys(G.properties.categories).length>0;ve(we)}},[G]);function ee(){(Ze==null?void 0:Ze.length)>1?(o(d.EXTERNALIDS),le()):(Ze==null?void 0:Ze.length)===1?(o(d.SEARCH),le(),me([]),a.current.setSnapPoint(qn.MIN)):(o(d.SEARCH),le(),a.current.setSnapPoint(qn.MIN))}function re(){o(d.SEARCH),le(),me([])}const Me=[Pe.jsx(Of,{minimizedHeight:80,initialSnapPoint:qn.MIN,isOpen:u===d.SEARCH,ref:a,children:Pe.jsx(E4,{isOpen:u===d.SEARCH,onSetSize:we=>a.current.setSnapPoint(we)})},"SEARCH"),Pe.jsx(Of,{minimizedHeight:200,isOpen:u===d.EXTERNALIDS,initialSnapPoint:qn.MIN,ref:E,children:Pe.jsx(N4,{onSetSize:we=>E.current.setSnapPoint(we),onBack:()=>re(),locations:Ze,onLocationClick:we=>le(we)})},"EXTERNALIDS"),Pe.jsx(Of,{minimizedHeight:fe?180:136,initialSnapPoint:qn.MIN,isOpen:u===d.LOCATION_DETAILS,ref:j,children:Pe.jsx(x4,{onSetSize:we=>j.current.setSnapPoint(we),onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>ee(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(Of,{minimizedHeight:190,initialSnapPoint:qn.FIT,isOpen:u===d.WAYFINDING,ref:V,children:Pe.jsx(T4,{onSetSize:we=>V.current.setSnapPoint(we),onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(G?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(Of,{minimizedHeight:273,isOpen:u===d.DIRECTIONS,initialSnapPoint:qn.FIT,ref:ie,children:Pe.jsx(D4,{onSetSize:we=>ie.current.setSnapPoint(we),isOpen:u===d.DIRECTIONS,onBack:()=>o(d.WAYFINDING),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{ref:b,className:"bottom-sheets",children:Pe.jsx(sL.Provider,{value:b,children:Me})})}const eW={SEARCH:void 0,EXTERNALIDS:"EXTERNALIDS",VENUE_SELECTOR:"VENUE_SELECTOR",LOCATION_DETAILS:"LOCATION_DETAILS",WAYFINDING:"WAYFINDING",DIRECTIONS:"DIRECTIONS"},tW=()=>{const[e,i]=be.useState(void 0),[o,u]=be.useState(),[d,_]=be.useState(null);be.useEffect(()=>{function j(V){var ie,G;i((ie=V.state)==null?void 0:ie.value),u((G=V.state)==null?void 0:G.payload)}return window.addEventListener("popstate",j),()=>{window.removeEventListener("popstate",j)}},[]);const b=(j,V)=>{window.history.pushState({value:j,payload:V},""),i(j),d===null&&_({value:j,payload:V})};return[b,()=>{window.history.back()},e,o,eW,()=>{b(d.value,d.payload)}]},iW=kn({key:"showQRCodeDialog",default:!1});function nW(){const e=Ei(C4),[,i]=sn(bu),o=Mo(_v),u=Mo(xc),d=Mo(Um),_=Mo(dv),b=Mo(hv),a=Mo(zm),E=Mo(iW),j=Mo(vv),V=Mo(Vm),ie=Mo(xv),G=Mo(Qm),le=Mo(wv),fe=Mo(TN),ve=Mo(X3);return()=>{o(),u(),d(),_(),b(),a(),E(),j(),V(),ie(),G(),le(),fe(),ve(),e&&i(e)}}const ale="";jf.propTypes={children:dt.node,isOpen:dt.bool};function jf({children:e,isOpen:i}){const[o,u]=be.useState(!1),d=Ei(Dl),_=be.useRef(),b=be.useRef();return be.useEffect(()=>{if(!b)return;const a=new MutationObserver(()=>{var V;const E=b.current.clientHeight,j=(V=_.current)==null?void 0:V.clientHeight;u(E>j)});return a.observe(b.current,{childList:!0,subtree:!0}),()=>{a.disconnect()}},[b]),Pe.jsx("div",{ref:_,className:`modal ${i?"modal--open":""} ${o?"modal--full":""} ${d?"modal--kiosk":""}`,children:Pe.jsx("div",{ref:b,className:"modal__content",children:e})})}RL.propTypes={directionsFromLocation:dt.string,directionsToLocation:dt.string,pushAppView:dt.func,currentAppView:dt.string,appViews:dt.object,filteredLocationsByExternalIDs:dt.array,onRouteFinished:dt.func};function RL({directionsFromLocation:e,directionsToLocation:i,pushAppView:o,currentAppView:u,appViews:d,onRouteFinished:_}){const[b,a]=sn(xc),[E,j]=sn(nv),[,V]=sn(ov),ie=Ei(Dl);be.useEffect(()=>{e&&i&&u===d.DIRECTIONS||(e&&i||e?o(d.WAYFINDING):b?o(d.LOCATION_DETAILS,b):(E==null?void 0:E.length)>1?o(d.EXTERNALIDS):(E==null?void 0:E.length)===1?(a(E[0]),V(E[0].id)):o(d.SEARCH))},[b,e,i,E]);function G(){(E==null?void 0:E.length)>1?(o(d.EXTERNALIDS),a()):(E==null?void 0:E.length)===1?(o(d.SEARCH),a(),j([])):(o(d.SEARCH),a())}function le(){o(d.SEARCH),a(),j([])}function fe(){o(ie?d.LOCATION_DETAILS:d.WAYFINDING)}const ve=[Pe.jsx(jf,{isOpen:u===d.SEARCH,children:Pe.jsx(E4,{isOpen:u===d.SEARCH})},"SEARCH"),Pe.jsx(jf,{isOpen:u===d.EXTERNALIDS,children:Pe.jsx(N4,{onBack:()=>le(),locations:E,onLocationClick:Ze=>a(Ze)})},"EXTERNALIDS"),Pe.jsx(jf,{isOpen:u===d.LOCATION_DETAILS,children:Pe.jsx(x4,{onStartWayfinding:()=>o(d.WAYFINDING),onBack:()=>G(),onStartDirections:()=>o(d.DIRECTIONS),isOpen:u===d.LOCATION_DETAILS})},"LOCATION_DETAILS"),Pe.jsx(jf,{isOpen:u===d.WAYFINDING,children:Pe.jsx(T4,{onStartDirections:()=>o(d.DIRECTIONS),directionsToLocation:i,directionsFromLocation:e,onBack:()=>o(b?d.LOCATION_DETAILS:d.SEARCH),isActive:u===d.WAYFINDING})},"WAYFINDING"),Pe.jsx(jf,{isOpen:u===d.DIRECTIONS,children:Pe.jsx(D4,{isOpen:u===d.DIRECTIONS,onBack:()=>fe(),onRouteFinished:()=>_()})},"DIRECTIONS")];return Pe.jsx("div",{children:ve})}const BL=e=>{const[i,o]=be.useState(),u=Ei(J_),d=Ei(xN);return be.useEffect(()=>{d&&e&&(e==="USER_POSITION"&&!u?(o("USER_POSITION_PENDING"),d.watchPosition()):e!=="USER_POSITION"&&window.mapsindoors.services.LocationsService.getLocation(e).then(_=>o(_)),u&&e==="USER_POSITION"&&o(b4(u)))},[e,u,d]),i},rW=kn({key:"gmMapId",default:null}),lle="";function oW(){const e=Ei(zm),i=be.useRef();return be.useEffect(()=>{var o;(o=i.current)==null||o.classList.add("notification"),e?i.current.push(e.text,e.type,!0):i.current.clearAll()},[e]),Pe.jsx("mi-notification",{ref:i,position:"top-center"})}const cle="";var Hm={},sW=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},FL={},ha={};let L4;const aW=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];ha.getSymbolSize=function(i){if(!i)throw new Error('"version" cannot be null or undefined');if(i<1||i>40)throw new Error('"version" should be in range from 1 to 40');return i*4+17},ha.getSymbolTotalCodewords=function(i){return aW[i]},ha.getBCHDigit=function(e){let i=0;for(;e!==0;)i++,e>>>=1;return i},ha.setToSJISFunction=function(i){if(typeof i!="function")throw new Error('"toSJISFunc" is not a valid function.');L4=i},ha.isKanjiModeEnabled=function(){return typeof L4<"u"},ha.toSJIS=function(i){return L4(i)};var bv={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+o)}}e.isValid=function(u){return u&&typeof u.bit<"u"&&u.bit>=0&&u.bit<4},e.from=function(u,d){if(e.isValid(u))return u;try{return i(u)}catch{return d}}})(bv);function UL(){this.buffer=[],this.length=0}UL.prototype={get:function(e){const i=Math.floor(e/8);return(this.buffer[i]>>>7-e%8&1)===1},put:function(e,i){for(let o=0;o<i;o++)this.putBit((e>>>i-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),e&&(this.buffer[i]|=128>>>this.length%8),this.length++}};var lW=UL;function $m(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}$m.prototype.set=function(e,i,o,u){const d=e*this.size+i;this.data[d]=o,u&&(this.reservedBit[d]=!0)},$m.prototype.get=function(e,i){return this.data[e*this.size+i]},$m.prototype.xor=function(e,i,o){this.data[e*this.size+i]^=o},$m.prototype.isReserved=function(e,i){return this.reservedBit[e*this.size+i]};var cW=$m,VL={};(function(e){const i=ha.getSymbolSize;e.getRowColCoords=function(u){if(u===1)return[];const d=Math.floor(u/7)+2,_=i(u),b=_===145?26:Math.ceil((_-13)/(2*d-2))*2,a=[_-7];for(let E=1;E<d-1;E++)a[E]=a[E-1]-b;return a.push(6),a.reverse()},e.getPositions=function(u){const d=[],_=e.getRowColCoords(u),b=_.length;for(let a=0;a<b;a++)for(let E=0;E<b;E++)a===0&&E===0||a===0&&E===b-1||a===b-1&&E===0||d.push([_[a],_[E]]);return d}})(VL);var QL={};const uW=ha.getSymbolSize,HL=7;QL.getPositions=function(i){const o=uW(i);return[[0,0],[o-HL,0],[0,o-HL]]};var $L={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const i={N1:3,N2:3,N3:40,N4:10};e.isValid=function(d){return d!=null&&d!==""&&!isNaN(d)&&d>=0&&d<=7},e.from=function(d){return e.isValid(d)?parseInt(d,10):void 0},e.getPenaltyN1=function(d){const _=d.size;let b=0,a=0,E=0,j=null,V=null;for(let ie=0;ie<_;ie++){a=E=0,j=V=null;for(let G=0;G<_;G++){let le=d.get(ie,G);le===j?a++:(a>=5&&(b+=i.N1+(a-5)),j=le,a=1),le=d.get(G,ie),le===V?E++:(E>=5&&(b+=i.N1+(E-5)),V=le,E=1)}a>=5&&(b+=i.N1+(a-5)),E>=5&&(b+=i.N1+(E-5))}return b},e.getPenaltyN2=function(d){const _=d.size;let b=0;for(let a=0;a<_-1;a++)for(let E=0;E<_-1;E++){const j=d.get(a,E)+d.get(a,E+1)+d.get(a+1,E)+d.get(a+1,E+1);(j===4||j===0)&&b++}return b*i.N2},e.getPenaltyN3=function(d){const _=d.size;let b=0,a=0,E=0;for(let j=0;j<_;j++){a=E=0;for(let V=0;V<_;V++)a=a<<1&2047|d.get(j,V),V>=10&&(a===1488||a===93)&&b++,E=E<<1&2047|d.get(V,j),V>=10&&(E===1488||E===93)&&b++}return b*i.N3},e.getPenaltyN4=function(d){let _=0;const b=d.data.length;for(let E=0;E<b;E++)_+=d.data[E];return Math.abs(Math.ceil(_*100/b/5)-10)*i.N4};function o(u,d,_){switch(u){case e.Patterns.PATTERN000:return(d+_)%2===0;case e.Patterns.PATTERN001:return d%2===0;case e.Patterns.PATTERN010:return _%3===0;case e.Patterns.PATTERN011:return(d+_)%3===0;case e.Patterns.PATTERN100:return(Math.floor(d/2)+Math.floor(_/3))%2===0;case e.Patterns.PATTERN101:return d*_%2+d*_%3===0;case e.Patterns.PATTERN110:return(d*_%2+d*_%3)%2===0;case e.Patterns.PATTERN111:return(d*_%3+(d+_)%2)%2===0;default:throw new Error("bad maskPattern:"+u)}}e.applyMask=function(d,_){const b=_.size;for(let a=0;a<b;a++)for(let E=0;E<b;E++)_.isReserved(E,a)||_.xor(E,a,o(d,E,a))},e.getBestMask=function(d,_){const b=Object.keys(e.Patterns).length;let a=0,E=1/0;for(let j=0;j<b;j++){_(j),e.applyMask(j,d);const V=e.getPenaltyN1(d)+e.getPenaltyN2(d)+e.getPenaltyN3(d)+e.getPenaltyN4(d);e.applyMask(j,d),V<E&&(E=V,a=j)}return a}})($L);var Mv={};const Iu=bv,Iv=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Tv=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];Mv.getBlocksCount=function(i,o){switch(o){case Iu.L:return Iv[(i-1)*4+0];case Iu.M:return Iv[(i-1)*4+1];case Iu.Q:return Iv[(i-1)*4+2];case Iu.H:return Iv[(i-1)*4+3];default:return}},Mv.getTotalCodewordsCount=function(i,o){switch(o){case Iu.L:return Tv[(i-1)*4+0];case Iu.M:return Tv[(i-1)*4+1];case Iu.Q:return Tv[(i-1)*4+2];case Iu.H:return Tv[(i-1)*4+3];default:return}};var YL={},Dv={};const Ym=new Uint8Array(512),Sv=new Uint8Array(256);(function(){let i=1;for(let o=0;o<255;o++)Ym[o]=i,Sv[i]=o,i<<=1,i&256&&(i^=285);for(let o=255;o<512;o++)Ym[o]=Ym[o-255]})(),Dv.log=function(i){if(i<1)throw new Error("log("+i+")");return Sv[i]},Dv.exp=function(i){return Ym[i]},Dv.mul=function(i,o){return i===0||o===0?0:Ym[Sv[i]+Sv[o]]},function(e){const i=Dv;e.mul=function(u,d){const _=new Uint8Array(u.length+d.length-1);for(let b=0;b<u.length;b++)for(let a=0;a<d.length;a++)_[b+a]^=i.mul(u[b],d[a]);return _},e.mod=function(u,d){let _=new Uint8Array(u);for(;_.length-d.length>=0;){const b=_[0];for(let E=0;E<d.length;E++)_[E]^=i.mul(d[E],b);let a=0;for(;a<_.length&&_[a]===0;)a++;_=_.slice(a)}return _},e.generateECPolynomial=function(u){let d=new Uint8Array([1]);for(let _=0;_<u;_++)d=e.mul(d,new Uint8Array([1,i.exp(_)]));return d}}(YL);const GL=YL;function z4(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}z4.prototype.initialize=function(i){this.degree=i,this.genPoly=GL.generateECPolynomial(this.degree)},z4.prototype.encode=function(i){if(!this.genPoly)throw new Error("Encoder not initialized");const o=new Uint8Array(i.length+this.degree);o.set(i);const u=GL.mod(o,this.genPoly),d=this.degree-u.length;if(d>0){const _=new Uint8Array(this.degree);return _.set(u,d),_}return u};var hW=z4,ZL={},Tu={},O4={};O4.isValid=function(i){return!isNaN(i)&&i>=1&&i<=40};var Al={};const WL="[0-9]+",dW="[A-Z $%*+\\-./:]+";let Gm="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Gm=Gm.replace(/u/g,"\\u");const fW="(?:(?![A-Z0-9 $%*+\\-./:]|"+Gm+`)(?:.|[\r
44
44
  ]))+`;Al.KANJI=new RegExp(Gm,"g"),Al.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Al.BYTE=new RegExp(fW,"g"),Al.NUMERIC=new RegExp(WL,"g"),Al.ALPHANUMERIC=new RegExp(dW,"g");const pW=new RegExp("^"+Gm+"$"),gW=new RegExp("^"+WL+"$"),mW=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Al.testKanji=function(i){return pW.test(i)},Al.testNumeric=function(i){return gW.test(i)},Al.testAlphanumeric=function(i){return mW.test(i)},function(e){const i=O4,o=Al;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(_,b){if(!_.ccBits)throw new Error("Invalid mode: "+_);if(!i.isValid(b))throw new Error("Invalid version: "+b);return b>=1&&b<10?_.ccBits[0]:b<27?_.ccBits[1]:_.ccBits[2]},e.getBestModeForData=function(_){return o.testNumeric(_)?e.NUMERIC:o.testAlphanumeric(_)?e.ALPHANUMERIC:o.testKanji(_)?e.KANJI:e.BYTE},e.toString=function(_){if(_&&_.id)return _.id;throw new Error("Invalid mode")},e.isValid=function(_){return _&&_.bit&&_.ccBits};function u(d){if(typeof d!="string")throw new Error("Param is not a string");switch(d.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+d)}}e.from=function(_,b){if(e.isValid(_))return _;try{return u(_)}catch{return b}}}(Tu),function(e){const i=ha,o=Mv,u=bv,d=Tu,_=O4,b=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,a=i.getBCHDigit(b);function E(G,le,fe){for(let ve=1;ve<=40;ve++)if(le<=e.getCapacity(ve,fe,G))return ve}function j(G,le){return d.getCharCountIndicator(G,le)+4}function V(G,le){let fe=0;return G.forEach(function(ve){const Ze=j(ve.mode,le);fe+=Ze+ve.getBitsLength()}),fe}function ie(G,le){for(let fe=1;fe<=40;fe++)if(V(G,fe)<=e.getCapacity(fe,le,d.MIXED))return fe}e.from=function(le,fe){return _.isValid(le)?parseInt(le,10):fe},e.getCapacity=function(le,fe,ve){if(!_.isValid(le))throw new Error("Invalid QR Code version");typeof ve>"u"&&(ve=d.BYTE);const Ze=i.getSymbolTotalCodewords(le),me=o.getTotalCodewordsCount(le,fe),te=(Ze-me)*8;if(ve===d.MIXED)return te;const ee=te-j(ve,le);switch(ve){case d.NUMERIC:return Math.floor(ee/10*3);case d.ALPHANUMERIC:return Math.floor(ee/11*2);case d.KANJI:return Math.floor(ee/13);case d.BYTE:default:return Math.floor(ee/8)}},e.getBestVersionForData=function(le,fe){let ve;const Ze=u.from(fe,u.M);if(Array.isArray(le)){if(le.length>1)return ie(le,Ze);if(le.length===0)return 1;ve=le[0]}else ve=le;return E(ve.mode,ve.getLength(),Ze)},e.getEncodedBits=function(le){if(!_.isValid(le)||le<7)throw new Error("Invalid QR Code version");let fe=le<<12;for(;i.getBCHDigit(fe)-a>=0;)fe^=b<<i.getBCHDigit(fe)-a;return le<<12|fe}}(ZL);var qL={};const k4=ha,KL=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,yW=1<<14|1<<12|1<<10|1<<4|1<<1,XL=k4.getBCHDigit(KL);qL.getEncodedBits=function(i,o){const u=i.bit<<3|o;let d=u<<10;for(;k4.getBCHDigit(d)-XL>=0;)d^=KL<<k4.getBCHDigit(d)-XL;return(u<<10|d)^yW};var JL={};const _W=Tu;function Pf(e){this.mode=_W.NUMERIC,this.data=e.toString()}Pf.getBitsLength=function(i){return 10*Math.floor(i/3)+(i%3?i%3*3+1:0)},Pf.prototype.getLength=function(){return this.data.length},Pf.prototype.getBitsLength=function(){return Pf.getBitsLength(this.data.length)},Pf.prototype.write=function(i){let o,u,d;for(o=0;o+3<=this.data.length;o+=3)u=this.data.substr(o,3),d=parseInt(u,10),i.put(d,10);const _=this.data.length-o;_>0&&(u=this.data.substr(o),d=parseInt(u,10),i.put(d,_*3+1))};var vW=Pf;const xW=Tu,j4=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Rf(e){this.mode=xW.ALPHANUMERIC,this.data=e}Rf.getBitsLength=function(i){return 11*Math.floor(i/2)+6*(i%2)},Rf.prototype.getLength=function(){return this.data.length},Rf.prototype.getBitsLength=function(){return Rf.getBitsLength(this.data.length)},Rf.prototype.write=function(i){let o;for(o=0;o+2<=this.data.length;o+=2){let u=j4.indexOf(this.data[o])*45;u+=j4.indexOf(this.data[o+1]),i.put(u,11)}this.data.length%2&&i.put(j4.indexOf(this.data[o]),6)};var wW=Rf,bW=function(i){for(var o=[],u=i.length,d=0;d<u;d++){var _=i.charCodeAt(d);if(_>=55296&&_<=56319&&u>d+1){var b=i.charCodeAt(d+1);b>=56320&&b<=57343&&(_=(_-55296)*1024+b-56320+65536,d+=1)}if(_<128){o.push(_);continue}if(_<2048){o.push(_>>6|192),o.push(_&63|128);continue}if(_<55296||_>=57344&&_<65536){o.push(_>>12|224),o.push(_>>6&63|128),o.push(_&63|128);continue}if(_>=65536&&_<=1114111){o.push(_>>18|240),o.push(_>>12&63|128),o.push(_>>6&63|128),o.push(_&63|128);continue}o.push(239,191,189)}return new Uint8Array(o).buffer};const MW=bW,IW=Tu;function Bf(e){this.mode=IW.BYTE,typeof e=="string"&&(e=MW(e)),this.data=new Uint8Array(e)}Bf.getBitsLength=function(i){return i*8},Bf.prototype.getLength=function(){return this.data.length},Bf.prototype.getBitsLength=function(){return Bf.getBitsLength(this.data.length)},Bf.prototype.write=function(e){for(let i=0,o=this.data.length;i<o;i++)e.put(this.data[i],8)};var TW=Bf;const DW=Tu,SW=ha;function Ff(e){this.mode=DW.KANJI,this.data=e}Ff.getBitsLength=function(i){return i*13},Ff.prototype.getLength=function(){return this.data.length},Ff.prototype.getBitsLength=function(){return Ff.getBitsLength(this.data.length)},Ff.prototype.write=function(e){let i;for(i=0;i<this.data.length;i++){let o=SW.toSJIS(this.data[i]);if(o>=33088&&o<=40956)o-=33088;else if(o>=57408&&o<=60351)o-=49472;else throw new Error("Invalid SJIS character: "+this.data[i]+`
45
45
  Make sure your charset is UTF-8`);o=(o>>>8&255)*192+(o&255),e.put(o,13)}};var AW=Ff,ez={exports:{}};(function(e){var i={single_source_shortest_paths:function(o,u,d){var _={},b={};b[u]=0;var a=i.PriorityQueue.make();a.push(u,0);for(var E,j,V,ie,G,le,fe,ve,Ze;!a.empty();){E=a.pop(),j=E.value,ie=E.cost,G=o[j]||{};for(V in G)G.hasOwnProperty(V)&&(le=G[V],fe=ie+le,ve=b[V],Ze=typeof b[V]>"u",(Ze||ve>fe)&&(b[V]=fe,a.push(V,fe),_[V]=j))}if(typeof d<"u"&&typeof b[d]>"u"){var me=["Could not find a path from ",u," to ",d,"."].join("");throw new Error(me)}return _},extract_shortest_path_from_predecessor_list:function(o,u){for(var d=[],_=u;_;)d.push(_),o[_],_=o[_];return d.reverse(),d},find_path:function(o,u,d){var _=i.single_source_shortest_paths(o,u,d);return i.extract_shortest_path_from_predecessor_list(_,d)},PriorityQueue:{make:function(o){var u=i.PriorityQueue,d={},_;o=o||{};for(_ in u)u.hasOwnProperty(_)&&(d[_]=u[_]);return d.queue=[],d.sorter=o.sorter||u.default_sorter,d},default_sorter:function(o,u){return o.cost-u.cost},push:function(o,u){var d={value:o,cost:u};this.queue.push(d),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=i})(ez);var CW=ez.exports;(function(e){const i=Tu,o=vW,u=wW,d=TW,_=AW,b=Al,a=ha,E=CW;function j(me){return unescape(encodeURIComponent(me)).length}function V(me,te,ee){const re=[];let Me;for(;(Me=me.exec(ee))!==null;)re.push({data:Me[0],index:Me.index,mode:te,length:Me[0].length});return re}function ie(me){const te=V(b.NUMERIC,i.NUMERIC,me),ee=V(b.ALPHANUMERIC,i.ALPHANUMERIC,me);let re,Me;return a.isKanjiModeEnabled()?(re=V(b.BYTE,i.BYTE,me),Me=V(b.KANJI,i.KANJI,me)):(re=V(b.BYTE_KANJI,i.BYTE,me),Me=[]),te.concat(ee,re,Me).sort(function(We,ot){return We.index-ot.index}).map(function(We){return{data:We.data,mode:We.mode,length:We.length}})}function G(me,te){switch(te){case i.NUMERIC:return o.getBitsLength(me);case i.ALPHANUMERIC:return u.getBitsLength(me);case i.KANJI:return _.getBitsLength(me);case i.BYTE:return d.getBitsLength(me)}}function le(me){return me.reduce(function(te,ee){const re=te.length-1>=0?te[te.length-1]:null;return re&&re.mode===ee.mode?(te[te.length-1].data+=ee.data,te):(te.push(ee),te)},[])}function fe(me){const te=[];for(let ee=0;ee<me.length;ee++){const re=me[ee];switch(re.mode){case i.NUMERIC:te.push([re,{data:re.data,mode:i.ALPHANUMERIC,length:re.length},{data:re.data,mode:i.BYTE,length:re.length}]);break;case i.ALPHANUMERIC:te.push([re,{data:re.data,mode:i.BYTE,length:re.length}]);break;case i.KANJI:te.push([re,{data:re.data,mode:i.BYTE,length:j(re.data)}]);break;case i.BYTE:te.push([{data:re.data,mode:i.BYTE,length:j(re.data)}])}}return te}function ve(me,te){const ee={},re={start:{}};let Me=["start"];for(let we=0;we<me.length;we++){const We=me[we],ot=[];for(let $e=0;$e<We.length;$e++){const xt=We[$e],ut=""+we+$e;ot.push(ut),ee[ut]={node:xt,lastCount:0},re[ut]={};for(let jt=0;jt<Me.length;jt++){const St=Me[jt];ee[St]&&ee[St].node.mode===xt.mode?(re[St][ut]=G(ee[St].lastCount+xt.length,xt.mode)-G(ee[St].lastCount,xt.mode),ee[St].lastCount+=xt.length):(ee[St]&&(ee[St].lastCount=xt.length),re[St][ut]=G(xt.length,xt.mode)+4+i.getCharCountIndicator(xt.mode,te))}}Me=ot}for(let we=0;we<Me.length;we++)re[Me[we]].end=0;return{map:re,table:ee}}function Ze(me,te){let ee;const re=i.getBestModeForData(me);if(ee=i.from(te,re),ee!==i.BYTE&&ee.bit<re.bit)throw new Error('"'+me+'" cannot be encoded with mode '+i.toString(ee)+`.
46
46
  Suggested mode is: `+i.toString(re));switch(ee===i.KANJI&&!a.isKanjiModeEnabled()&&(ee=i.BYTE),ee){case i.NUMERIC:return new o(me);case i.ALPHANUMERIC:return new u(me);case i.KANJI:return new _(me);case i.BYTE:return new d(me)}}e.fromArray=function(te){return te.reduce(function(ee,re){return typeof re=="string"?ee.push(Ze(re,null)):re.data&&ee.push(Ze(re.data,re.mode)),ee},[])},e.fromString=function(te,ee){const re=ie(te,a.isKanjiModeEnabled()),Me=fe(re),we=ve(Me,ee),We=E.find_path(we.map,"start","end"),ot=[];for(let $e=1;$e<We.length-1;$e++)ot.push(we.table[We[$e]].node);return e.fromArray(le(ot))},e.rawSplit=function(te){return e.fromArray(ie(te,a.isKanjiModeEnabled()))}})(JL);const Av=ha,P4=bv,EW=lW,NW=cW,LW=VL,zW=QL,R4=$L,B4=Mv,OW=hW,Cv=ZL,kW=qL,jW=Tu,F4=JL;function PW(e,i){const o=e.size,u=zW.getPositions(i);for(let d=0;d<u.length;d++){const _=u[d][0],b=u[d][1];for(let a=-1;a<=7;a++)if(!(_+a<=-1||o<=_+a))for(let E=-1;E<=7;E++)b+E<=-1||o<=b+E||(a>=0&&a<=6&&(E===0||E===6)||E>=0&&E<=6&&(a===0||a===6)||a>=2&&a<=4&&E>=2&&E<=4?e.set(_+a,b+E,!0,!0):e.set(_+a,b+E,!1,!0))}}function RW(e){const i=e.size;for(let o=8;o<i-8;o++){const u=o%2===0;e.set(o,6,u,!0),e.set(6,o,u,!0)}}function BW(e,i){const o=LW.getPositions(i);for(let u=0;u<o.length;u++){const d=o[u][0],_=o[u][1];for(let b=-2;b<=2;b++)for(let a=-2;a<=2;a++)b===-2||b===2||a===-2||a===2||b===0&&a===0?e.set(d+b,_+a,!0,!0):e.set(d+b,_+a,!1,!0)}}function FW(e,i){const o=e.size,u=Cv.getEncodedBits(i);let d,_,b;for(let a=0;a<18;a++)d=Math.floor(a/3),_=a%3+o-8-3,b=(u>>a&1)===1,e.set(d,_,b,!0),e.set(_,d,b,!0)}function U4(e,i,o){const u=e.size,d=kW.getEncodedBits(i,o);let _,b;for(_=0;_<15;_++)b=(d>>_&1)===1,_<6?e.set(_,8,b,!0):_<8?e.set(_+1,8,b,!0):e.set(u-15+_,8,b,!0),_<8?e.set(8,u-_-1,b,!0):_<9?e.set(8,15-_-1+1,b,!0):e.set(8,15-_-1,b,!0);e.set(u-8,8,1,!0)}function UW(e,i){const o=e.size;let u=-1,d=o-1,_=7,b=0;for(let a=o-1;a>0;a-=2)for(a===6&&a--;;){for(let E=0;E<2;E++)if(!e.isReserved(d,a-E)){let j=!1;b<i.length&&(j=(i[b]>>>_&1)===1),e.set(d,a-E,j),_--,_===-1&&(b++,_=7)}if(d+=u,d<0||o<=d){d-=u,u=-u;break}}}function VW(e,i,o){const u=new EW;o.forEach(function(E){u.put(E.mode.bit,4),u.put(E.getLength(),jW.getCharCountIndicator(E.mode,e)),E.write(u)});const d=Av.getSymbolTotalCodewords(e),_=B4.getTotalCodewordsCount(e,i),b=(d-_)*8;for(u.getLengthInBits()+4<=b&&u.put(0,4);u.getLengthInBits()%8!==0;)u.putBit(0);const a=(b-u.getLengthInBits())/8;for(let E=0;E<a;E++)u.put(E%2?17:236,8);return QW(u,e,i)}function QW(e,i,o){const u=Av.getSymbolTotalCodewords(i),d=B4.getTotalCodewordsCount(i,o),_=u-d,b=B4.getBlocksCount(i,o),a=u%b,E=b-a,j=Math.floor(u/b),V=Math.floor(_/b),ie=V+1,G=j-V,le=new OW(G);let fe=0;const ve=new Array(b),Ze=new Array(b);let me=0;const te=new Uint8Array(e.buffer);for(let We=0;We<b;We++){const ot=We<E?V:ie;ve[We]=te.slice(fe,fe+ot),Ze[We]=le.encode(ve[We]),fe+=ot,me=Math.max(me,ot)}const ee=new Uint8Array(u);let re=0,Me,we;for(Me=0;Me<me;Me++)for(we=0;we<b;we++)Me<ve[we].length&&(ee[re++]=ve[we][Me]);for(Me=0;Me<G;Me++)for(we=0;we<b;we++)ee[re++]=Ze[we][Me];return ee}function HW(e,i,o,u){let d;if(Array.isArray(e))d=F4.fromArray(e);else if(typeof e=="string"){let j=i;if(!j){const V=F4.rawSplit(e);j=Cv.getBestVersionForData(V,o)}d=F4.fromString(e,j||40)}else throw new Error("Invalid data");const _=Cv.getBestVersionForData(d,o);if(!_)throw new Error("The amount of data is too big to be stored in a QR Code");if(!i)i=_;else if(i<_)throw new Error(`
47
47
  The chosen QR Code version cannot contain this amount of data.
48
48
  Minimum version required to store current data is: `+_+`.
49
49
  `);const b=VW(i,o,d),a=Av.getSymbolSize(i),E=new NW(a);return PW(E,i),RW(E),BW(E,i),U4(E,o,0),i>=7&&FW(E,i),UW(E,b),isNaN(u)&&(u=R4.getBestMask(E,U4.bind(null,E,o))),R4.applyMask(u,E),U4(E,o,u),{modules:E,version:i,errorCorrectionLevel:o,maskPattern:u,segments:d}}FL.create=function(i,o){if(typeof i>"u"||i==="")throw new Error("No input text");let u=P4.M,d,_;return typeof o<"u"&&(u=P4.from(o.errorCorrectionLevel,P4.M),d=Cv.from(o.version),_=R4.from(o.maskPattern),o.toSJISFunc&&Av.setToSJISFunction(o.toSJISFunc)),HW(i,d,u,_)};var tz={},V4={};(function(e){function i(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let u=o.slice().replace("#","").split("");if(u.length<3||u.length===5||u.length>8)throw new Error("Invalid hex color: "+o);(u.length===3||u.length===4)&&(u=Array.prototype.concat.apply([],u.map(function(_){return[_,_]}))),u.length===6&&u.push("F","F");const d=parseInt(u.join(""),16);return{r:d>>24&255,g:d>>16&255,b:d>>8&255,a:d&255,hex:"#"+u.slice(0,6).join("")}}e.getOptions=function(u){u||(u={}),u.color||(u.color={});const d=typeof u.margin>"u"||u.margin===null||u.margin<0?4:u.margin,_=u.width&&u.width>=21?u.width:void 0,b=u.scale||4;return{width:_,scale:_?4:b,margin:d,color:{dark:i(u.color.dark||"#000000ff"),light:i(u.color.light||"#ffffffff")},type:u.type,rendererOpts:u.rendererOpts||{}}},e.getScale=function(u,d){return d.width&&d.width>=u+d.margin*2?d.width/(u+d.margin*2):d.scale},e.getImageWidth=function(u,d){const _=e.getScale(u,d);return Math.floor((u+d.margin*2)*_)},e.qrToImageData=function(u,d,_){const b=d.modules.size,a=d.modules.data,E=e.getScale(b,_),j=Math.floor((b+_.margin*2)*E),V=_.margin*E,ie=[_.color.light,_.color.dark];for(let G=0;G<j;G++)for(let le=0;le<j;le++){let fe=(G*j+le)*4,ve=_.color.light;if(G>=V&&le>=V&&G<j-V&&le<j-V){const Ze=Math.floor((G-V)/E),me=Math.floor((le-V)/E);ve=ie[a[Ze*b+me]?1:0]}u[fe++]=ve.r,u[fe++]=ve.g,u[fe++]=ve.b,u[fe]=ve.a}}})(V4),function(e){const i=V4;function o(d,_,b){d.clearRect(0,0,_.width,_.height),_.style||(_.style={}),_.height=b,_.width=b,_.style.height=b+"px",_.style.width=b+"px"}function u(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(_,b,a){let E=a,j=b;typeof E>"u"&&(!b||!b.getContext)&&(E=b,b=void 0),b||(j=u()),E=i.getOptions(E);const V=i.getImageWidth(_.modules.size,E),ie=j.getContext("2d"),G=ie.createImageData(V,V);return i.qrToImageData(G.data,_,E),o(ie,j,V),ie.putImageData(G,0,0),j},e.renderToDataURL=function(_,b,a){let E=a;typeof E>"u"&&(!b||!b.getContext)&&(E=b,b=void 0),E||(E={});const j=e.render(_,b,E),V=E.type||"image/png",ie=E.rendererOpts||{};return j.toDataURL(V,ie.quality)}}(tz);var iz={};const $W=V4;function nz(e,i){const o=e.a/255,u=i+'="'+e.hex+'"';return o<1?u+" "+i+'-opacity="'+o.toFixed(2).slice(1)+'"':u}function Q4(e,i,o){let u=e+i;return typeof o<"u"&&(u+=" "+o),u}function YW(e,i,o){let u="",d=0,_=!1,b=0;for(let a=0;a<e.length;a++){const E=Math.floor(a%i),j=Math.floor(a/i);!E&&!_&&(_=!0),e[a]?(b++,a>0&&E>0&&e[a-1]||(u+=_?Q4("M",E+o,.5+j+o):Q4("m",d,0),d=0,_=!1),E+1<i&&e[a+1]||(u+=Q4("h",b),b=0)):d++}return u}iz.render=function(i,o,u){const d=$W.getOptions(o),_=i.modules.size,b=i.modules.data,a=_+d.margin*2,E=d.color.light.a?"<path "+nz(d.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",j="<path "+nz(d.color.dark,"stroke")+' d="'+YW(b,_,d.margin)+'"/>',V='viewBox="0 0 '+a+" "+a+'"',G='<svg xmlns="http://www.w3.org/2000/svg" '+(d.width?'width="'+d.width+'" height="'+d.width+'" ':"")+V+' shape-rendering="crispEdges">'+E+j+`</svg>
50
- `;return typeof u=="function"&&u(null,G),G};const GW=sW,H4=FL,rz=tz,ZW=iz;function $4(e,i,o,u,d){const _=[].slice.call(arguments,1),b=_.length,a=typeof _[b-1]=="function";if(!a&&!GW())throw new Error("Callback required as last argument");if(a){if(b<2)throw new Error("Too few arguments provided");b===2?(d=o,o=i,i=u=void 0):b===3&&(i.getContext&&typeof d>"u"?(d=u,u=void 0):(d=u,u=o,o=i,i=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(o=i,i=u=void 0):b===2&&!i.getContext&&(u=o,o=i,i=void 0),new Promise(function(E,j){try{const V=H4.create(o,u);E(e(V,i,u))}catch(V){j(V)}})}try{const E=H4.create(o,u);d(null,e(E,i,u))}catch(E){d(E)}}Hm.create=H4.create,Hm.toCanvas=$4.bind(null,rz.render),Hm.toDataURL=$4.bind(null,rz.renderToDataURL),Hm.toString=$4.bind(null,function(e,i,o){return ZW.render(e,o)});function WW(){const{t:e}=cs(),[i,o]=sn(gv),u=be.useRef(),d=Ei(Sl);return be.useEffect(()=>{const _={errorCorrectionLevel:"L",margin:0,width:"225"};Hm.toDataURL(i,_).then(b=>{u.current.src=b})},[d,i]),Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("div",{className:"background"}),Pe.jsxs("div",{className:"qr-code",children:[Pe.jsx("img",{alt:"",className:"qr-code__image",ref:u}),Pe.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Pe.jsx("button",{className:"qr-code__button",style:{background:d},onClick:()=>o(null),children:e("Done")})]})]})}const qW=kn({key:"miTransitionLevel",default:void 0}),ule="";function KW(){const{t:e}=cs(),i=Ei(Sl),o=Ei(jL),u=jh(),d=be.useRef(),_=be.useRef(),b=be.useRef(),[a,E]=sn(wv),[j,V]=be.useState(!1),ie=be.useRef();let G=700;return be.useEffect(()=>{a&&u&&V(ie.current.clientHeight>G)},[a,u]),be.useEffect(()=>{if(a&&u&&j){const le=document.querySelector(".legend__sections");b.current.scrollContainerElementRef=le}},[a,o,j]),Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("div",{className:"legend__background"}),Pe.jsxs("div",{className:"legend",ref:d,children:[o.length>0&&Pe.jsx("div",{className:`legend__sections ${j?"legend__sections--scrollable":""}`,ref:ie,style:{maxHeight:j?`${G}px`:"auto",overflowY:j?"scroll":"auto"},children:o.map((le,fe)=>Pe.jsxs("div",{className:"legend__section",ref:_,children:[Pe.jsx("div",{className:"legend__heading",children:le.heading}),Pe.jsx("div",{className:"legend__content",children:le.content})]},fe))}),Pe.jsx("button",{className:"legend__button",style:{background:i},onClick:()=>E(!1),children:e("Close")}),u&&a&&j&&Pe.jsx("div",{className:"scroll-buttons",children:Pe.jsx("mi-scroll-buttons",{ref:b})})]})]})}const XW=()=>{const[e,i]=sn(bu),o=Ei(jm),u=Ei(ca),d=Ei(Ef),[,_]=sn(km),[,b]=sn(xv),a=Ei(w4),[E,j]=sn(C4);be.useEffect(()=>{var G;!e&&o.length&&i((G=V())==null?void 0:G.name)},[e,o]),be.useEffect(()=>{e&&!E&&j(e)},[e]),be.useEffect(()=>{u&&o.length&&e&&d&&(u.setVenue(o.find(G=>G.name.toLowerCase()===e.toLowerCase())),ie(),b([]),a&&(a.value=""))},[u,e,o,d]);const V=()=>o.length===1?o[0]:[...o].sort(function(G,le){return G.venueInfo.name>le.venueInfo.name?1:le.venueInfo.name>G.venueInfo.name?-1:0})[0],ie=async()=>{var me,te,ee,re,Me;const G=await((ee=(te=(me=window==null?void 0:window.mapsindoors)==null?void 0:me.services)==null?void 0:te.SolutionsService)==null?void 0:ee.getCategories()),le=((re=d==null?void 0:d.menuInfo)==null?void 0:re.mainmenu)??[],fe=new Map(G.map(we=>[we.key,we.childKeys])),ve=le.map(we=>({...we,childKeys:fe.get(we.categoryKey)??[]})),Ze=(Me=o.find(we=>we.name.toLowerCase()===e.toLowerCase()))==null?void 0:Me.name;window.mapsindoors.services.LocationsService.getLocations({venue:Ze}).then(we=>{let We=new Map;for(const $e of we){const xt=Object.keys($e.properties.categories);for(const ut of xt)if(le){const jt=ve.find(St=>St.categoryKey===ut);jt&&We.set(jt.categoryKey,{displayName:$e.properties.categories[ut],iconUrl:jt==null?void 0:jt.iconUrl,childKeys:(jt==null?void 0:jt.childKeys)??[]})}}const ot=Array.from(We).sort(($e,xt)=>{var St,Jt,Tt,bt;const ut=(Jt=(St=d.menuInfo)==null?void 0:St.mainmenu)==null?void 0:Jt.findIndex(qt=>qt.categoryKey===$e[0]),jt=(bt=(Tt=d.menuInfo)==null?void 0:Tt.mainmenu)==null?void 0:bt.findIndex(qt=>qt.categoryKey===xt[0]);return ut-jt});_(ot)})};return[i,ie]},JW=kn({key:"showRoadNames",default:!0});function eq(){const e=Mo(_v),i=Mo(xc),o=Mo(Um),u=Mo(dv),d=Mo(hv),_=Mo(zm),b=Mo(Vm),a=Mo(Qm);return()=>{e(),i(),o(),u(),d(),_(),b(),a()}}WE(),oz.propTypes={apiKey:dt.string.isRequired,gmApiKey:dt.string,mapboxAccessToken:dt.string,venue:dt.string,locationId:dt.string,primaryColor:dt.string,logo:dt.string,appUserRoles:dt.arrayOf(dt.string),directionsFrom:dt.string,directionsTo:dt.string,externalIDs:dt.arrayOf(dt.string),tileStyle:dt.string,startZoomLevel:dt.number,bearing:dt.number,pitch:dt.number,gmMapId:dt.string,useMapProviderModule:dt.bool,kioskOriginLocationId:dt.string,language:dt.string,timeout:dt.number,useKeyboard:dt.bool,miTransitionLevel:dt.number,category:dt.string,searchAllVenues:dt.bool,hideNonMatches:dt.bool,showExternalIDs:dt.bool,showRoadNames:dt.bool,searchExternalLocations:dt.bool,supportsUrlParameters:dt.bool,center:dt.string,useAppTitle:dt.bool,showMapMarkers:dt.bool,mapboxMapStyle:dt.string,devicePosition:dt.object};function oz({apiKey:e,gmApiKey:i,mapboxAccessToken:o,venue:u,locationId:d,primaryColor:_,logo:b,appUserRoles:a,directionsFrom:E,directionsTo:j,externalIDs:V,tileStyle:ie,startZoomLevel:G,bearing:le,pitch:fe,gmMapId:ve,useMapProviderModule:Ze,kioskOriginLocationId:me,language:te,supportsUrlParameters:ee,useKeyboard:re,timeout:Me,miTransitionLevel:we,category:We,searchAllVenues:ot,hideNonMatches:$e,showRoadNames:xt,showExternalIDs:ut,searchExternalLocations:jt,center:St,useAppTitle:Jt,showMapMarkers:Tt,mapboxMapStyle:bt,devicePosition:qt}){const[Ot,Vt]=be.useState(!1),[W,ne]=be.useState({brandingColor:_}),[,T]=sn(Z3),[,k]=sn(W3),[,F]=sn(tv),[Q,Z]=sn(sv),[se,he]=sn(jm),[ce,xe]=sn(xc),He=Ei(km),[,et]=sn(ov),[Ue,Xe]=sn(Sl),[,Fe]=sn(h4),[,rt]=sn(rW),pt=Ei(ca),[Mt,Et]=sn(Fh),[,di]=sn(Dl),[,ei]=sn(K3),[,Di]=sn(MN),si=IN(),[,xi]=sn(vL),[,zi]=sn(LL),[,Ii]=sn(qW),[,Ht]=sn(S4),[,ci]=sn(pv),[,bi]=sn(OL),[,Ni]=sn($N),[,qi]=sn(fv),[,an]=sn(JW),[,ln]=sn(v4),[,On]=sn(DN),[_t,gt]=be.useState(),oi=be.useRef(),[,Yt]=sn(SL),Xt=Ei(gv),[mi,Ai]=be.useState(!0),[Hi,hn]=be.useState(!0),en=BL(E),wn=BL(j),[Dt,Vn]=be.useState(!1),[,gr]=sn(nv),[xr,Ge]=sn(iv),[q,ae]=be.useState(),[de,Re]=sn(Ef),[,Oe]=sn(wN),[,Le]=sn(vN),[,st]=sn(bN),[,Ve]=sn(q3),[,at]=sn(rv),Rt=Ja(),zt=nW(),[Ct,ti,ui,Ki,hi,Pi]=tW(),[Gi,_i]=be.useState(!1),Ri=Ei(wv),[Zi,dn]=be.useState(0),[mn,zn]=XW(),lr=eq(),[,Rn]=sn(zm);function cr(){return new Promise($i=>{if(window.mapsindoors!==void 0)return $i();const mr=document.createElement("script");mr.setAttribute("type","text/javascript"),mr.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.44.0/mapsindoors-4.44.0.js.gz"),mr.setAttribute("integrity","sha384-/ZRxx7LCIh/fvYh6TqzmouebDz6otFhor2eNIBrL1mZllzOKuQ5TKwuvupJm8UEa"),mr.setAttribute("crossorigin","anonymous"),document.body.appendChild(mr),mr.onload=()=>{$i()}})}be.useEffect(()=>{var $i;Mt||(te?Et(te):($i=de==null?void 0:de.appSettings)!=null&&$i.language&&Et(de.appSettings.language))},[te,de,Mt,Et]),be.useEffect(()=>{si&&ds()},[si]),be.useEffect(()=>(cr().then(()=>{_i(!0)}),()=>{ae()}),[]),be.useEffect(()=>{var $i;if(Gi){const mr=Mt??te??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.language)??navigator.language;window.mapsindoors.MapsIndoors.setLanguage(mr.split("-")[0]),window.mapsindoors.services.LocationsService.once("update_completed",()=>{He.length>0&&zn(),se.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(To=>{To=To.map(Ro=>(Ro.image=de.venueImages[Ro.name.toLowerCase()],Ro)),he(To)}),ce&&window.mapsindoors.services.LocationsService.getLocation(ce.id).then(To=>xe(To))}),(!jo.language||jo.language!==mr)&&(jo.isInitialized?jo.changeLanguage(mr):KY(mr))}},[Mt,te,Gi,de]),be.useEffect(()=>{Gi&&(T(e),Z(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then($i=>(Re($i),$i)),window.mapsindoors.services.SolutionsService.getSolution().then($i=>(Oe($i),$i)),new Promise($i=>setTimeout($i,3e3))]).then(([$i,mr])=>{$i=$i.map(To=>(To.image=mr.venueImages[To.name.toLowerCase()],To)),he($i)}),Z(!1))},[e,Gi]),be.useEffect(()=>{var $i,mr,To,Ro;Gi&&de&&(kr(o)&&kr(i)&&kr(($i=de==null?void 0:de.appSettings)==null?void 0:$i.mapboxAccessToken)&&kr((mr=de==null?void 0:de.appSettings)==null?void 0:mr.gmKey)?Rn({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}):(F(o||((To=de.appSettings)==null?void 0:To.mapboxAccessToken)),k(i||((Ro=de.appSettings)==null?void 0:Ro.gmKey))))},[i,o,Gi,de]),be.useEffect(()=>{Gi&&window.mapsindoors.services.SolutionsService.getUserRoles().then($i=>{const mr=$i.filter(To=>a==null?void 0:a.includes(To.name));window.mapsindoors.MapsIndoors.setUserRoles(mr)})},[a,Gi]),be.useEffect(()=>{Gi&&(V?window.mapsindoors.services.LocationsService.getLocationsByExternalId(V).then($i=>{gr($i)}):gr([]))},[V,Gi]),be.useEffect(()=>{Gi&&(et(d),d&&window.mapsindoors.services.LocationsService.getLocation(d).then($i=>{$i&&(mn($i.properties.venueId),xe($i))}))},[d,Gi,Zi]),be.useEffect(()=>{Gi&&rt(ve)},[ve,Gi]),be.useEffect(()=>{switch(ui){case hi.SEARCH:case hi.EXTERNALIDS:case hi.VENUE_SELECTOR:oi.current=Tf.SetCurrentLocation;break;case hi.LOCATION_DETAILS:Ki&&!ce&&xe(Ki),oi.current=Tf.SetCurrentLocation;break;case hi.WAYFINDING:oi.current=Tf.SetWayfindingLocation;break;case hi.DIRECTIONS:oi.current=Tf.None;break}ui===hi.DIRECTIONS?(ae(xr),Ge([])):Ge(q)},[ui]),be.useEffect(()=>{var $i;mn(u??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.venue))},[u,de]),be.useEffect(()=>{Le(ie)},[ie]),be.useEffect(()=>{var mr;const $i="#003C3B";Xe(_??((mr=de==null?void 0:de.appSettings)==null?void 0:mr.primaryColor)??$i)},[_,de]),be.useEffect(()=>{var $i,mr,To,Ro,il;ne({brandingColor:Ue,showRoadNames:xt!==void 0?xt:typeof(($i=de==null?void 0:de.appSettings)==null?void 0:$i.showRoadNames)=="string"?de.appSettings.showRoadNames.toLowerCase()==="true":(mr=de==null?void 0:de.appSettings)==null?void 0:mr.showRoadNames,showMapMarkers:Tt!==void 0?Tt:typeof((To=de==null?void 0:de.appSettings)==null?void 0:To.showMapMarkers)=="string"?de.appSettings.showMapMarkers.toLowerCase()==="true":(Ro=de==null?void 0:de.appSettings)==null?void 0:Ro.showMapMarkers,miTransitionLevel:we,minZoom:NL.minZoom,mapboxMapStyle:((il=de==null?void 0:de.appSettings)==null?void 0:il.mapboxMapStyle)||bt})},[_,xt,we,Ue,Tt,de]),be.useEffect(()=>{var $i;st(G??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.startZoomLevel))},[G,de]),be.useEffect(()=>{var mr;const $i=fe??((mr=de==null?void 0:de.appSettings)==null?void 0:mr.pitch)??null;kr($i)?_t&&at(45):at($i)},[fe,_t,de]),be.useEffect(()=>{var $i;Ve(le??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.bearing)??null)},[le,de]),be.useEffect(()=>{var mr;const $i="https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg";de&&Fe(b??((mr=de==null?void 0:de.appSettings)==null?void 0:mr.logo)??$i)},[b,de]),be.useEffect(()=>{Ii(we)},[we]),be.useEffect(()=>{ce&&ce.id!==me?pt!=null&&pt.selectLocation&&pt.selectLocation(ce):pt!=null&&pt.deselectLocation&&pt.deselectLocation()},[ce]),be.useEffect(()=>{Gi&&(ei(me),me?window.mapsindoors.services.LocationsService.getLocation(me).then($i=>{mn($i.properties.venueId),di($i),pt==null||pt.setNonCollidingLocation($i)}):di(),me&&Rt?(Ai(!1),hn(!1)):(Ai(!0),hn(!0)))},[me,Gi,pt]),be.useEffect(()=>{Di(Me)},[Me]),be.useEffect(()=>{xi(ee)},[ee]),be.useEffect(()=>{re&&me&&zi(re)},[re,me]),be.useEffect(()=>{Gi&&We&&He.find($i=>$i[0]===We)&&Ht(We)},[We,He,Gi]),be.useEffect(()=>{ci(ot)},[ot]),be.useEffect(()=>{Ni($e)},[$e]),be.useEffect(()=>{qi(ut)},[ut]),be.useEffect(()=>{an(xt)},[xt]),be.useEffect(()=>{ln(jt)},[jt]),be.useEffect(()=>{var $i;On(St??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.center))},[St,de]),be.useEffect(()=>{var $i;Jt===!0&&!kr(($i=de==null?void 0:de.appSettings)==null?void 0:$i.title)&&(document.title=de.appSettings.title)},[Jt,de]);function xo(){Q===!1&&Z(!0)}function Po($i){switch(oi.current){case Tf.SetCurrentLocation:$i.id!==me&&xe($i);break;case Tf.SetWayfindingLocation:Yt($i);break}}function ds(){zt(),Pi(),dn($i=>$i+1),Ht(null)}function Xs(){lr(),Pi(),dn($i=>$i+1),Ht(null)}return be.useEffect(()=>{Gi&&We&&He.find($i=>$i[0]===We)&&(Ht(We),bi(We))},[We,He,Gi]),be.useEffect(()=>{var $i;Ot||(te&&Mt!==te?Et(te):!te&&(($i=de==null?void 0:de.appSettings)!=null&&$i.language)&&Mt!==de.appSettings.language&&Et(de.appSettings.language))},[te,de,Mt,Et,Ot]),Pe.jsxs("div",{className:`mapsindoors-map
50
+ `;return typeof u=="function"&&u(null,G),G};const GW=sW,H4=FL,rz=tz,ZW=iz;function $4(e,i,o,u,d){const _=[].slice.call(arguments,1),b=_.length,a=typeof _[b-1]=="function";if(!a&&!GW())throw new Error("Callback required as last argument");if(a){if(b<2)throw new Error("Too few arguments provided");b===2?(d=o,o=i,i=u=void 0):b===3&&(i.getContext&&typeof d>"u"?(d=u,u=void 0):(d=u,u=o,o=i,i=void 0))}else{if(b<1)throw new Error("Too few arguments provided");return b===1?(o=i,i=u=void 0):b===2&&!i.getContext&&(u=o,o=i,i=void 0),new Promise(function(E,j){try{const V=H4.create(o,u);E(e(V,i,u))}catch(V){j(V)}})}try{const E=H4.create(o,u);d(null,e(E,i,u))}catch(E){d(E)}}Hm.create=H4.create,Hm.toCanvas=$4.bind(null,rz.render),Hm.toDataURL=$4.bind(null,rz.renderToDataURL),Hm.toString=$4.bind(null,function(e,i,o){return ZW.render(e,o)});function WW(){const{t:e}=cs(),[i,o]=sn(gv),u=be.useRef(),d=Ei(Sl);return be.useEffect(()=>{const _={errorCorrectionLevel:"L",margin:0,width:"225"};Hm.toDataURL(i,_).then(b=>{u.current.src=b})},[d,i]),Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("div",{className:"background"}),Pe.jsxs("div",{className:"qr-code",children:[Pe.jsx("img",{alt:"",className:"qr-code__image",ref:u}),Pe.jsx("p",{children:e("Scan the QR code to see the route on your phone")}),Pe.jsx("button",{className:"qr-code__button",style:{background:d},onClick:()=>o(null),children:e("Done")})]})]})}const qW=kn({key:"miTransitionLevel",default:void 0}),ule="";function KW(){const{t:e}=cs(),i=Ei(Sl),o=Ei(jL),u=jh(),d=be.useRef(),_=be.useRef(),b=be.useRef(),[a,E]=sn(wv),[j,V]=be.useState(!1),ie=be.useRef();let G=700;return be.useEffect(()=>{a&&u&&V(ie.current.clientHeight>G)},[a,u]),be.useEffect(()=>{if(a&&u&&j){const le=document.querySelector(".legend__sections");b.current.scrollContainerElementRef=le}},[a,o,j]),Pe.jsxs(Pe.Fragment,{children:[Pe.jsx("div",{className:"legend__background"}),Pe.jsxs("div",{className:"legend",ref:d,children:[o.length>0&&Pe.jsx("div",{className:`legend__sections ${j?"legend__sections--scrollable":""}`,ref:ie,style:{maxHeight:j?`${G}px`:"auto",overflowY:j?"scroll":"auto"},children:o.map((le,fe)=>Pe.jsxs("div",{className:"legend__section",ref:_,children:[Pe.jsx("div",{className:"legend__heading",children:le.heading}),Pe.jsx("div",{className:"legend__content",children:le.content})]},fe))}),Pe.jsx("button",{className:"legend__button",style:{background:i},onClick:()=>E(!1),children:e("Close")}),u&&a&&j&&Pe.jsx("div",{className:"scroll-buttons",children:Pe.jsx("mi-scroll-buttons",{ref:b})})]})]})}const XW=()=>{const[e,i]=sn(bu),o=Ei(jm),u=Ei(ca),d=Ei(Ef),[,_]=sn(km),[,b]=sn(xv),a=Ei(w4),[E,j]=sn(C4);be.useEffect(()=>{var G;!e&&o.length&&i((G=V())==null?void 0:G.name)},[e,o]),be.useEffect(()=>{e&&!E&&j(e)},[e]),be.useEffect(()=>{u&&o.length&&e&&d&&(u.setVenue(o.find(G=>G.name.toLowerCase()===e.toLowerCase())),ie(),b([]),a&&(a.value=""))},[u,e,o,d]);const V=()=>o.length===1?o[0]:[...o].sort(function(G,le){return G.venueInfo.name>le.venueInfo.name?1:le.venueInfo.name>G.venueInfo.name?-1:0})[0],ie=async()=>{var me,te,ee,re,Me;const G=await((ee=(te=(me=window==null?void 0:window.mapsindoors)==null?void 0:me.services)==null?void 0:te.SolutionsService)==null?void 0:ee.getCategories()),le=((re=d==null?void 0:d.menuInfo)==null?void 0:re.mainmenu)??[],fe=new Map(G.map(we=>[we.key,we.childKeys])),ve=le.map(we=>({...we,childKeys:fe.get(we.categoryKey)??[]})),Ze=(Me=o.find(we=>we.name.toLowerCase()===e.toLowerCase()))==null?void 0:Me.name;window.mapsindoors.services.LocationsService.getLocations({venue:Ze}).then(we=>{let We=new Map;for(const $e of we){const xt=Object.keys($e.properties.categories);for(const ut of xt)if(le){const jt=ve.find(St=>St.categoryKey===ut);jt&&We.set(jt.categoryKey,{displayName:$e.properties.categories[ut],iconUrl:jt==null?void 0:jt.iconUrl,childKeys:(jt==null?void 0:jt.childKeys)??[]})}}const ot=Array.from(We).sort(($e,xt)=>{var St,Jt,Tt,bt;const ut=(Jt=(St=d.menuInfo)==null?void 0:St.mainmenu)==null?void 0:Jt.findIndex(qt=>qt.categoryKey===$e[0]),jt=(bt=(Tt=d.menuInfo)==null?void 0:Tt.mainmenu)==null?void 0:bt.findIndex(qt=>qt.categoryKey===xt[0]);return ut-jt});_(ot)})};return[i,ie]},JW=kn({key:"showRoadNames",default:!0});function eq(){const e=Mo(_v),i=Mo(xc),o=Mo(Um),u=Mo(dv),d=Mo(hv),_=Mo(zm),b=Mo(Vm),a=Mo(Qm);return()=>{e(),i(),o(),u(),d(),_(),b(),a()}}WE(),oz.propTypes={apiKey:dt.string.isRequired,gmApiKey:dt.string,mapboxAccessToken:dt.string,venue:dt.string,locationId:dt.string,primaryColor:dt.string,logo:dt.string,appUserRoles:dt.arrayOf(dt.string),directionsFrom:dt.string,directionsTo:dt.string,externalIDs:dt.arrayOf(dt.string),tileStyle:dt.string,startZoomLevel:dt.number,bearing:dt.number,pitch:dt.number,gmMapId:dt.string,useMapProviderModule:dt.bool,kioskOriginLocationId:dt.string,language:dt.string,timeout:dt.number,useKeyboard:dt.bool,miTransitionLevel:dt.number,category:dt.string,searchAllVenues:dt.bool,hideNonMatches:dt.bool,showExternalIDs:dt.bool,showRoadNames:dt.bool,searchExternalLocations:dt.bool,supportsUrlParameters:dt.bool,center:dt.string,useAppTitle:dt.bool,showMapMarkers:dt.bool,mapboxMapStyle:dt.string,devicePosition:dt.object};function oz({apiKey:e,gmApiKey:i,mapboxAccessToken:o,venue:u,locationId:d,primaryColor:_,logo:b,appUserRoles:a,directionsFrom:E,directionsTo:j,externalIDs:V,tileStyle:ie,startZoomLevel:G,bearing:le,pitch:fe,gmMapId:ve,useMapProviderModule:Ze,kioskOriginLocationId:me,language:te,supportsUrlParameters:ee,useKeyboard:re,timeout:Me,miTransitionLevel:we,category:We,searchAllVenues:ot,hideNonMatches:$e,showRoadNames:xt,showExternalIDs:ut,searchExternalLocations:jt,center:St,useAppTitle:Jt,showMapMarkers:Tt,mapboxMapStyle:bt,devicePosition:qt}){const[Ot,Vt]=be.useState(!1),[W,ne]=be.useState({brandingColor:_}),[,T]=sn(Z3),[,k]=sn(W3),[,F]=sn(tv),[Q,Z]=sn(sv),[se,he]=sn(jm),[ce,xe]=sn(xc),He=Ei(km),[,et]=sn(ov),[Ue,Xe]=sn(Sl),[,Fe]=sn(h4),[,rt]=sn(rW),pt=Ei(ca),[Mt,Et]=sn(Fh),[,di]=sn(Dl),[,ei]=sn(K3),[,Di]=sn(MN),si=IN(),[,xi]=sn(vL),[,zi]=sn(LL),[,Ii]=sn(qW),[,Ht]=sn(S4),[,ci]=sn(pv),[,bi]=sn(OL),[,Ni]=sn($N),[,qi]=sn(fv),[,an]=sn(JW),[,ln]=sn(v4),[,On]=sn(DN),[_t,gt]=be.useState(),oi=be.useRef(),[,Yt]=sn(SL),Xt=Ei(gv),[mi,Ai]=be.useState(!0),[Hi,hn]=be.useState(!0),en=BL(E),wn=BL(j),[Dt,Vn]=be.useState(!1),[,gr]=sn(nv),[xr,Ge]=sn(iv),[q,ae]=be.useState(),[de,Re]=sn(Ef),[,Oe]=sn(wN),[,Le]=sn(vN),[,st]=sn(bN),[,Ve]=sn(q3),[,at]=sn(rv),Rt=Ja(),zt=nW(),[Ct,ti,ui,Ki,hi,Pi]=tW(),[Gi,_i]=be.useState(!1),Ri=Ei(wv),[Zi,dn]=be.useState(0),[mn,zn]=XW(),lr=eq(),[,Rn]=sn(zm);function cr(){return new Promise($i=>{if(window.mapsindoors!==void 0)return $i();const mr=document.createElement("script");mr.setAttribute("type","text/javascript"),mr.setAttribute("src","https://app.mapsindoors.com/mapsindoors/js/sdk/4.44.3/mapsindoors-4.44.3.js.gz"),mr.setAttribute("integrity","sha384-5W9MCHut7z0re2ycdODA393sU9AP3cqHNT+G0SD1pP1r9m8Cbug+k9ZFZyz3Yjoq"),mr.setAttribute("crossorigin","anonymous"),document.body.appendChild(mr),mr.onload=()=>{$i()}})}be.useEffect(()=>{var $i;Mt||(te?Et(te):($i=de==null?void 0:de.appSettings)!=null&&$i.language&&Et(de.appSettings.language))},[te,de,Mt,Et]),be.useEffect(()=>{si&&ds()},[si]),be.useEffect(()=>(cr().then(()=>{_i(!0)}),()=>{ae()}),[]),be.useEffect(()=>{var $i;if(Gi){const mr=Mt??te??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.language)??navigator.language;window.mapsindoors.MapsIndoors.setLanguage(mr.split("-")[0]),window.mapsindoors.services.LocationsService.once("update_completed",()=>{He.length>0&&zn(),se.length>0&&window.mapsindoors.services.VenuesService.getVenues().then(To=>{To=To.map(Ro=>(Ro.image=de.venueImages[Ro.name.toLowerCase()],Ro)),he(To)}),ce&&window.mapsindoors.services.LocationsService.getLocation(ce.id).then(To=>xe(To))}),(!jo.language||jo.language!==mr)&&(jo.isInitialized?jo.changeLanguage(mr):KY(mr))}},[Mt,te,Gi,de]),be.useEffect(()=>{Gi&&(T(e),Z(!1),window.mapsindoors.MapsIndoors.setMapsIndoorsApiKey(e),Promise.all([window.mapsindoors.services.VenuesService.getVenues(),window.mapsindoors.services.AppConfigService.getConfig().then($i=>(Re($i),$i)),window.mapsindoors.services.SolutionsService.getSolution().then($i=>(Oe($i),$i)),new Promise($i=>setTimeout($i,3e3))]).then(([$i,mr])=>{$i=$i.map(To=>(To.image=mr.venueImages[To.name.toLowerCase()],To)),he($i)}),Z(!1))},[e,Gi]),be.useEffect(()=>{var $i,mr,To,Ro;Gi&&de&&(kr(o)&&kr(i)&&kr(($i=de==null?void 0:de.appSettings)==null?void 0:$i.mapboxAccessToken)&&kr((mr=de==null?void 0:de.appSettings)==null?void 0:mr.gmKey)?Rn({text:"Please provide a Mapbox Access Token or Google Maps API key to show a map.",type:"error"}):(F(o||((To=de.appSettings)==null?void 0:To.mapboxAccessToken)),k(i||((Ro=de.appSettings)==null?void 0:Ro.gmKey))))},[i,o,Gi,de]),be.useEffect(()=>{Gi&&window.mapsindoors.services.SolutionsService.getUserRoles().then($i=>{const mr=$i.filter(To=>a==null?void 0:a.includes(To.name));window.mapsindoors.MapsIndoors.setUserRoles(mr)})},[a,Gi]),be.useEffect(()=>{Gi&&(V?window.mapsindoors.services.LocationsService.getLocationsByExternalId(V).then($i=>{gr($i)}):gr([]))},[V,Gi]),be.useEffect(()=>{Gi&&(et(d),d&&window.mapsindoors.services.LocationsService.getLocation(d).then($i=>{$i&&(mn($i.properties.venueId),xe($i))}))},[d,Gi,Zi]),be.useEffect(()=>{Gi&&rt(ve)},[ve,Gi]),be.useEffect(()=>{switch(ui){case hi.SEARCH:case hi.EXTERNALIDS:case hi.VENUE_SELECTOR:oi.current=Tf.SetCurrentLocation;break;case hi.LOCATION_DETAILS:Ki&&!ce&&xe(Ki),oi.current=Tf.SetCurrentLocation;break;case hi.WAYFINDING:oi.current=Tf.SetWayfindingLocation;break;case hi.DIRECTIONS:oi.current=Tf.None;break}ui===hi.DIRECTIONS?(ae(xr),Ge([])):Ge(q)},[ui]),be.useEffect(()=>{var $i;mn(u??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.venue))},[u,de]),be.useEffect(()=>{Le(ie)},[ie]),be.useEffect(()=>{var mr;const $i="#003C3B";Xe(_??((mr=de==null?void 0:de.appSettings)==null?void 0:mr.primaryColor)??$i)},[_,de]),be.useEffect(()=>{var $i,mr,To,Ro,il;ne({brandingColor:Ue,showRoadNames:xt!==void 0?xt:typeof(($i=de==null?void 0:de.appSettings)==null?void 0:$i.showRoadNames)=="string"?de.appSettings.showRoadNames.toLowerCase()==="true":(mr=de==null?void 0:de.appSettings)==null?void 0:mr.showRoadNames,showMapMarkers:Tt!==void 0?Tt:typeof((To=de==null?void 0:de.appSettings)==null?void 0:To.showMapMarkers)=="string"?de.appSettings.showMapMarkers.toLowerCase()==="true":(Ro=de==null?void 0:de.appSettings)==null?void 0:Ro.showMapMarkers,miTransitionLevel:we,minZoom:NL.minZoom,mapboxMapStyle:((il=de==null?void 0:de.appSettings)==null?void 0:il.mapboxMapStyle)||bt})},[_,xt,we,Ue,Tt,de]),be.useEffect(()=>{var $i;st(G??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.startZoomLevel))},[G,de]),be.useEffect(()=>{var mr;const $i=fe??((mr=de==null?void 0:de.appSettings)==null?void 0:mr.pitch)??null;kr($i)?_t&&at(45):at($i)},[fe,_t,de]),be.useEffect(()=>{var $i;Ve(le??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.bearing)??null)},[le,de]),be.useEffect(()=>{var mr;const $i="https://app.mapsindoors.com/mapsindoors/gfx/mapspeople-logo/mapspeople-pin.svg";de&&Fe(b??((mr=de==null?void 0:de.appSettings)==null?void 0:mr.logo)??$i)},[b,de]),be.useEffect(()=>{Ii(we)},[we]),be.useEffect(()=>{ce&&ce.id!==me?pt!=null&&pt.selectLocation&&pt.selectLocation(ce):pt!=null&&pt.deselectLocation&&pt.deselectLocation()},[ce]),be.useEffect(()=>{Gi&&(ei(me),me?window.mapsindoors.services.LocationsService.getLocation(me).then($i=>{mn($i.properties.venueId),di($i),pt==null||pt.setNonCollidingLocation($i)}):di(),me&&Rt?(Ai(!1),hn(!1)):(Ai(!0),hn(!0)))},[me,Gi,pt]),be.useEffect(()=>{Di(Me)},[Me]),be.useEffect(()=>{xi(ee)},[ee]),be.useEffect(()=>{re&&me&&zi(re)},[re,me]),be.useEffect(()=>{Gi&&We&&He.find($i=>$i[0]===We)&&Ht(We)},[We,He,Gi]),be.useEffect(()=>{ci(ot)},[ot]),be.useEffect(()=>{Ni($e)},[$e]),be.useEffect(()=>{qi(ut)},[ut]),be.useEffect(()=>{an(xt)},[xt]),be.useEffect(()=>{ln(jt)},[jt]),be.useEffect(()=>{var $i;On(St??(($i=de==null?void 0:de.appSettings)==null?void 0:$i.center))},[St,de]),be.useEffect(()=>{var $i;Jt===!0&&!kr(($i=de==null?void 0:de.appSettings)==null?void 0:$i.title)&&(document.title=de.appSettings.title)},[Jt,de]);function xo(){Q===!1&&Z(!0)}function Po($i){switch(oi.current){case Tf.SetCurrentLocation:$i.id!==me&&xe($i);break;case Tf.SetWayfindingLocation:Yt($i);break}}function ds(){zt(),Pi(),dn($i=>$i+1),Ht(null)}function Xs(){lr(),Pi(),dn($i=>$i+1),Ht(null)}return be.useEffect(()=>{Gi&&We&&He.find($i=>$i[0]===We)&&(Ht(We),bi(We))},[We,He,Gi]),be.useEffect(()=>{var $i;Ot||(te&&Mt!==te?Et(te):!te&&(($i=de==null?void 0:de.appSettings)!=null&&$i.language)&&Mt!==de.appSettings.language&&Et(de.appSettings.language))},[te,de,Mt,Et,Ot]),Pe.jsxs("div",{className:`mapsindoors-map
51
51
  ${ui===hi.DIRECTIONS?"mapsindoors-map--hide-elements":"mapsindoors-map--show-elements"}
52
52
  ${se.length>1&&mi?"":"mapsindoors-map--hide-venue-selector"}
53
53
  ${Hi?"mapsindoors-map--show-my-position":"mapsindoors-map--hide-my-position"}`,children:[Pe.jsx(oW,{}),!Q&&Pe.jsx(uZ,{}),se.length>1&&mi&&Pe.jsx(oL,{onOpen:()=>Ct(hi.VENUE_SELECTOR),onClose:()=>ti(),active:ui===hi.VENUE_SELECTOR}),Xt&&Pe.jsx(WW,{}),Ri&&Pe.jsx(KW,{}),Dt&&Pe.jsxs(be.Fragment,{children:[Rt&&Pe.jsx(RL,{directionsFromLocation:en,directionsToLocation:wn,pushAppView:Ct,currentAppView:ui,appViews:hi,onRouteFinished:()=>Xs()}),!Rt&&Pe.jsx(PL,{directionsFromLocation:en,directionsToLocation:wn,pushAppView:Ct,currentAppView:ui,appViews:hi,onRouteFinished:()=>Xs()})]},Zi),Pe.jsx(KN,{useMapProviderModule:Ze,onMapPositionKnown:()=>xo(),onMapPositionInvestigating:()=>Vn(!0),onLocationClick:$i=>Po($i),onViewModeSwitchKnown:$i=>gt($i),resetCount:Zi,mapOptions:W,gmMapId:ve,isWayfindingOrDirections:ui===hi.WAYFINDING||ui===hi.DIRECTIONS,currentLanguage:Mt,setLanguage:$i=>{Et($i),Vt(!0)},devicePosition:qt})]})}function wc(e,i,o,u){let d;return e===!0&&!kr(u)?u===!0||u==="true"?d=!0:(u===!1||u!=="true")&&(d=!1):kr(o)?kr(i)||(d=i):d=typeof o=="boolean"?o:!1,d}sz.propTypes={apiKey:dt.string,gmApiKey:dt.string,mapboxAccessToken:dt.string,venue:dt.string,locationId:dt.string,primaryColor:dt.string,logo:dt.string,appUserRoles:dt.arrayOf(dt.string),directionsFrom:dt.string,directionsTo:dt.string,externalIDs:dt.arrayOf(dt.string),tileStyle:dt.string,startZoomLevel:dt.number,pitch:dt.number,bearing:dt.number,supportsUrlParameters:dt.bool,gmMapId:dt.string,useMapProviderModule:dt.bool,kioskOriginLocationId:dt.string,timeout:dt.number,language:dt.string,useKeyboard:dt.bool,miTransitionLevel:dt.number,category:dt.string,searchAllVenues:dt.bool,hideNonMatches:dt.bool,showExternalIDs:dt.bool,showRoadNames:dt.bool,searchExternalLocations:dt.bool,center:dt.string,useAppTitle:dt.bool,showMapMarkers:dt.bool,mapboxMapStyle:dt.string,devicePosition:dt.object};function sz(e){const[i,o]=be.useState();return be.useEffect(()=>{var F,Q;const u=window.location.search,d=new URLSearchParams(u),_={apiKey:"mapspeople3d",useMapProviderModule:!1,useKeyboard:!1,searchAllVenues:!1,searchExternalLocations:!0,showExternalIDs:!1,hideNonMatches:!1,useAppTitle:!1},b=d.get("apiKey"),a=d.get("venue"),E=d.get("locationId"),j=d.get("logo"),V=d.get("directionsFrom"),ie=d.get("directionsTo"),G=d.get("tileStyle"),le=Number(d.get("startZoomLevel")),fe=Number(d.get("pitch")),ve=Number(d.get("bearing")),Ze=d.get("gmApiKey"),me=d.get("mapboxAccessToken"),te=d.get("primaryColor"),ee=(F=d.get("appUserRoles"))==null?void 0:F.split(","),re=(Q=d.get("externalIDs"))==null?void 0:Q.split(","),Me=d.get("gmMapId"),we=d.get("kioskOriginLocationId"),We=Number(d.get("timeout")),ot=d.get("language"),$e=Number(d.get("miTransitionLevel")),xt=d.get("category"),ut=d.get("useMapProviderModule"),jt=d.get("useKeyboard"),St=d.get("searchAllVenues"),Jt=d.get("hideNonMatches"),Tt=d.get("showExternalIDs"),bt=d.get("showRoadNames"),qt=d.get("searchExternalLocations"),Ot=d.get("center"),Vt=d.get("useAppTitle"),W=d.get("showMapMarkers"),ne=d.get("mapboxMapStyle"),T=e.supportsUrlParameters&&b?b:e.apiKey||_.apiKey;let k=e.supportsUrlParameters&&a?a:e.venue||_.venue;T==="mapspeople3d"&&!k&&(k="AUSTINOFFICE"),o({apiKey:T,venue:k,locationId:e.supportsUrlParameters&&E?E:e.locationId,logo:e.supportsUrlParameters&&j?j:e.logo,directionsFrom:e.supportsUrlParameters&&V?V:e.directionsFrom,directionsTo:e.supportsUrlParameters&&ie?ie:e.directionsTo,tileStyle:e.supportsUrlParameters&&G?G:e.tileStyle,startZoomLevel:e.supportsUrlParameters&&le?le:e.startZoomLevel,pitch:e.supportsUrlParameters&&fe?fe:e.pitch,bearing:e.supportsUrlParameters&&ve?ve:e.bearing,gmApiKey:e.supportsUrlParameters&&Ze?Ze:e.gmApiKey,mapboxAccessToken:e.supportsUrlParameters&&me?me:e.mapboxAccessToken,primaryColor:e.supportsUrlParameters&&te?"#"+te:e.primaryColor,appUserRoles:e.supportsUrlParameters&&ee?ee:e.appUserRoles,externalIDs:e.supportsUrlParameters&&re?re:e.externalIDs,gmMapId:e.supportsUrlParameters&&Me?Me:e.gmMapId,kioskOriginLocationId:e.supportsUrlParameters&&we?we:e.kioskOriginLocationId,timeout:e.supportsUrlParameters&&We?We:e.timeout,language:e.supportsUrlParameters&&ot?ot:e.language,miTransitionLevel:e.supportsUrlParameters&&$e?$e:e.miTransitionLevel,category:e.supportsUrlParameters&&xt?xt:e.category,center:e.supportsUrlParameters&&Ot?Ot:e.center,devicePosition:e.devicePosition,useKeyboard:wc(e.supportsUrlParameters,_.useKeyboard,e.useKeyboard,jt),useMapProviderModule:wc(e.supportsUrlParameters,_.useMapProviderModule,e.useMapProviderModule,ut),searchAllVenues:wc(e.supportsUrlParameters,_.searchAllVenues,e.searchAllVenues,St),hideNonMatches:wc(e.supportsUrlParameters,_.hideNonMatches,e.hideNonMatches,Jt),showRoadNames:wc(e.supportsUrlParameters,_.showRoadNames,e.showRoadNames,bt),showExternalIDs:wc(e.supportsUrlParameters,_.showExternalIDs,e.showExternalIDs,Tt),searchExternalLocations:wc(e.supportsUrlParameters,_.searchExternalLocations,e.searchExternalLocations,qt),supportsUrlParameters:e.supportsUrlParameters,useAppTitle:wc(e.supportsUrlParameters,_.useAppTitle,e.useAppTitle,Vt),showMapMarkers:wc(e.supportsUrlParameters,_.showMapMarkers,e.showMapMarkers,W),mapboxMapStyle:e.supportsUrlParameters&&ne?ne:e.mapboxMapStyle})},[e]),Pe.jsx(A$,{children:i&&Pe.jsx(oz,{...i})})}var az,lz=yu;az=lz.createRoot,lz.hydrateRoot;var tq=Object.defineProperty,iq=(e,i,o)=>i in e?tq(e,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[i]=o,Ev=(e,i,o)=>(iq(e,typeof i!="symbol"?i+"":i,o),o);const nq={stringify:e=>e,parse:e=>e},rq={stringify:e=>`${e}`,parse:e=>parseFloat(e)},oq={stringify:e=>e?"true":"false",parse:e=>/^[ty1-9]/i.test(e)},sq={stringify:e=>e.name,parse:(e,i,o)=>{const u=(()=>{if(typeof window<"u"&&e in window)return window[e];if(typeof global<"u"&&e in global)return global[e]})();return typeof u=="function"?u.bind(o):void 0}},aq={stringify:e=>JSON.stringify(e),parse:e=>JSON.parse(e)},Y4={string:nq,number:rq,boolean:oq,function:sq,json:aq};function lq(e){return e.replace(/([a-z0-9])([A-Z])/g,(i,o,u)=>`${o}-${u.toLowerCase()}`)}const Nv=Symbol.for("r2wc.render"),Lv=Symbol.for("r2wc.connected"),Uh=Symbol.for("r2wc.context"),Du=Symbol.for("r2wc.props");function cq(e,i,o){var u,d,_;i.props||(i.props=e.propTypes?Object.keys(e.propTypes):[]);const b=Array.isArray(i.props)?i.props.slice():Object.keys(i.props),a={},E={},j={};for(const ie of b){a[ie]=Array.isArray(i.props)?"string":i.props[ie];const G=lq(ie);E[ie]=G,j[G]=ie}class V extends HTMLElement{constructor(){super(),Ev(this,u,!0),Ev(this,d),Ev(this,_,{}),Ev(this,"container"),i.shadow?this.container=this.attachShadow({mode:i.shadow}):this.container=this,this[Du].container=this.container;for(const G of b){const le=E[G],fe=this.getAttribute(le),ve=a[G],Ze=ve?Y4[ve]:null;Ze!=null&&Ze.parse&&fe&&(this[Du][G]=Ze.parse(fe,le,this))}}static get observedAttributes(){return Object.keys(j)}connectedCallback(){this[Lv]=!0,this[Nv]()}disconnectedCallback(){this[Lv]=!1,this[Uh]&&o.unmount(this[Uh]),delete this[Uh]}attributeChangedCallback(G,le,fe){const ve=j[G],Ze=a[ve],me=Ze?Y4[Ze]:null;ve in a&&me!=null&&me.parse&&fe&&(this[Du][ve]=me.parse(fe,G,this),this[Nv]())}[(u=Lv,d=Uh,_=Du,Nv)](){this[Lv]&&(this[Uh]?o.update(this[Uh],this[Du]):this[Uh]=o.mount(this.container,e,this[Du]))}}for(const ie of b){const G=E[ie],le=a[ie];Object.defineProperty(V.prototype,ie,{enumerable:!0,configurable:!0,get(){return this[Du][ie]},set(fe){this[Du][ie]=fe;const ve=le?Y4[le]:null;if(ve!=null&&ve.stringify){const Ze=ve.stringify(fe,G,this);this.getAttribute(G)!==Ze&&this.setAttribute(G,Ze)}else this[Nv]()}})}return V}function uq(e,i,o){const u=az(e),d=Cr.createElement(i,o);return u.render(d),{root:u,ReactComponent:i}}function hq({root:e,ReactComponent:i},o){const u=Cr.createElement(i,o);e.render(u)}function dq({root:e}){e.unmount()}function fq(e,i={}){return cq(e,i,{mount:uq,update:hq,unmount:dq})}const cz=fq(sz,{props:{apiKey:"string",gmApiKey:"string",mapboxAccessToken:"string",venue:"string",locationId:"string",primaryColor:"string",logo:"string",appUserRoles:"string",directionsFrom:"string",directionsTo:"string",externalIDs:"json",tileStyle:"string",startZoomLevel:"number",gmMapId:"string",supportsUrlParameters:"boolean",bearing:"number",pitch:"number",kioskOriginLocationId:"string",useMapProviderModule:"boolean",timeout:"number",miTransitionLevel:"number",category:"string",language:"string",searchAllVenues:"boolean",useKeyboard:"boolean",hideNonMatches:"boolean",showExternalIDs:"boolean",showRoadNames:"boolean",searchExternalLocations:"boolean",center:"string",useAppTitle:"boolean",showMapMarkers:"boolean",mapboxMapStyle:"string",devicePosition:"object"}});window.customElements.define("mapsindoors-map",cz);const pq=Object.freeze(Object.defineProperty({__proto__:null,combo_box_item:class{constructor(e){Ir(this,e),this.selected=!1,this.disabled=!1,this.excludefromall=!1,this.value=void 0,this.text=void 0}get el(){return yc(this)}}},Symbol.toStringTag,{value:"Module"})),gq=':host{box-sizing:border-box;display:block;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;box-shadow:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);border-radius:8px;padding-top:32px;padding-bottom:32px;padding-left:32px;padding-right:32px;margin:24px}',uz=class{constructor(e){Ir(this,e)}render(){return Je("slot",null)}};uz.style=gq;const mq=".spinner{display:flex;justify-content:center;align-items:center}.spinner>div{width:16px;height:16px;background-color:#6b7280;margin:4px;border-radius:100%;display:inline-block;animation:bouncedelay 1.4s infinite ease-in-out both}.spinner.inverse>div{background-color:#ffffff}.spinner .bounce1{animation-delay:-0.32s}.spinner .bounce2{animation-delay:-0.16s}@keyframes bouncedelay{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}",hz=class{constructor(e){Ir(this,e),this.inverse=!1}render(){return Je(ko,null,Je("div",{class:`spinner ${this.inverse?"inverse":""}`},Je("div",{class:"bounce1"}),Je("div",{class:"bounce2"}),Je("div",{class:"bounce3"})))}};hz.style=mq;const yq=Object.freeze(Object.defineProperty({__proto__:null,mi_card:uz,mi_spinner:hz},Symbol.toStringTag,{value:"Module"})),_q=':root{--z-index-top:999999;--z-index-popup:950;--z-index-modal:900;--z-index-spinner:800;--z-index-overlay:700;--z-index-dropdown:600;--z-index-toast:500;--z-index-header:400;--z-index-sticky:300;--z-index-mask:200;--z-index-masked:100;--z-index-default:1;--z-index-deep:-999999;--transition-slowly:600ms ease;--transition-quickly:300ms ease;--tailwind-colors-rose-900:#881337;--tailwind-colors-rose-800:#9f1239;--tailwind-colors-rose-700:#be123c;--tailwind-colors-rose-600:#e11d48;--tailwind-colors-rose-500:#f43f5e;--tailwind-colors-rose-400:#fb7185;--tailwind-colors-rose-300:#fda4af;--tailwind-colors-rose-200:#fecdd3;--tailwind-colors-rose-100:#ffe4e6;--tailwind-colors-rose-50:#fff1f2;--tailwind-colors-pink-900:#831843;--tailwind-colors-pink-800:#9d174d;--tailwind-colors-pink-700:#be185d;--tailwind-colors-pink-600:#db2777;--tailwind-colors-pink-500:#ec4899;--tailwind-colors-pink-400:#f472b6;--tailwind-colors-pink-300:#f9a8d4;--tailwind-colors-pink-200:#fbcfe8;--tailwind-colors-pink-100:#fce7f3;--tailwind-colors-pink-50:#fdf2f8;--tailwind-colors-fuchsia-900:#701a75;--tailwind-colors-fuchsia-800:#86198f;--tailwind-colors-fuchsia-700:#a21caf;--tailwind-colors-fuchsia-600:#c026d3;--tailwind-colors-fuchsia-500:#d946ef;--tailwind-colors-fuchsia-400:#e879f9;--tailwind-colors-fuchsia-300:#f0abfc;--tailwind-colors-fuchsia-200:#f5d0fe;--tailwind-colors-fuchsia-100:#fae8ff;--tailwind-colors-fuchsia-50:#fdf4ff;--tailwind-colors-purple-900:#581c87;--tailwind-colors-purple-800:#6b21a8;--tailwind-colors-purple-700:#7e22ce;--tailwind-colors-purple-600:#9333ea;--tailwind-colors-purple-500:#a855f7;--tailwind-colors-purple-400:#c084fc;--tailwind-colors-purple-300:#d8b4fe;--tailwind-colors-purple-200:#e9d5ff;--tailwind-colors-purple-100:#f3e8ff;--tailwind-colors-purple-50:#faf5ff;--tailwind-colors-violet-900:#4c1d95;--tailwind-colors-violet-800:#5b21b6;--tailwind-colors-violet-700:#6d28d9;--tailwind-colors-violet-600:#7c3aed;--tailwind-colors-violet-500:#8b5cf6;--tailwind-colors-violet-400:#a78bfa;--tailwind-colors-violet-300:#c4b5fd;--tailwind-colors-violet-200:#ddd6fe;--tailwind-colors-violet-100:#ede9fe;--tailwind-colors-violet-50:#f5f3ff;--tailwind-colors-indigo-900:#312e81;--tailwind-colors-indigo-800:#3730a3;--tailwind-colors-indigo-700:#4338ca;--tailwind-colors-indigo-600:#4f46e5;--tailwind-colors-indigo-500:#6366f1;--tailwind-colors-indigo-400:#818cf8;--tailwind-colors-indigo-300:#a5b4fc;--tailwind-colors-indigo-200:#c7d2fe;--tailwind-colors-indigo-100:#e0e7ff;--tailwind-colors-indigo-50:#eef2ff;--tailwind-colors-blue-900:#1e3a8a;--tailwind-colors-blue-800:#1e40af;--tailwind-colors-blue-700:#1d4ed8;--tailwind-colors-blue-600:#2563eb;--tailwind-colors-blue-500:#3b82f6;--tailwind-colors-blue-400:#60a5fa;--tailwind-colors-blue-300:#93c5fd;--tailwind-colors-blue-200:#bfdbfe;--tailwind-colors-blue-100:#dbeafe;--tailwind-colors-blue-50:#eff6ff;--tailwind-colors-sky-900:#0c4a6e;--tailwind-colors-sky-800:#075985;--tailwind-colors-sky-700:#0369a1;--tailwind-colors-sky-600:#0284c7;--tailwind-colors-sky-500:#0ea5e9;--tailwind-colors-sky-400:#38bdf8;--tailwind-colors-sky-300:#7dd3fc;--tailwind-colors-sky-200:#bae6fd;--tailwind-colors-sky-100:#e0f2fe;--tailwind-colors-sky-50:#f0f9ff;--tailwind-colors-cyan-900:#164e63;--tailwind-colors-cyan-800:#155e75;--tailwind-colors-cyan-700:#0e7490;--tailwind-colors-cyan-600:#0891b2;--tailwind-colors-cyan-500:#06b6d4;--tailwind-colors-cyan-400:#22d3ee;--tailwind-colors-cyan-300:#67e8f9;--tailwind-colors-cyan-200:#a5f3fc;--tailwind-colors-cyan-100:#cffafe;--tailwind-colors-cyan-50:#ecfeff;--tailwind-colors-teal-900:#134e4a;--tailwind-colors-teal-800:#115e59;--tailwind-colors-teal-700:#0f766e;--tailwind-colors-teal-600:#0d9488;--tailwind-colors-teal-500:#14b8a6;--tailwind-colors-teal-400:#2dd4bf;--tailwind-colors-teal-300:#5eead4;--tailwind-colors-teal-200:#99f6e4;--tailwind-colors-teal-100:#ccfbf1;--tailwind-colors-teal-50:#f0fdfa;--tailwind-colors-emerald-900:#064e3b;--tailwind-colors-emerald-800:#065f46;--tailwind-colors-emerald-700:#047857;--tailwind-colors-emerald-600:#059669;--tailwind-colors-emerald-500:#10b981;--tailwind-colors-emerald-400:#34d399;--tailwind-colors-emerald-300:#6ee7b7;--tailwind-colors-emerald-200:#a7f3d0;--tailwind-colors-emerald-100:#d1fae5;--tailwind-colors-emerald-50:#ecfdf5;--tailwind-colors-green-900:#14532d;--tailwind-colors-green-800:#166534;--tailwind-colors-green-700:#15803d;--tailwind-colors-green-600:#16a34a;--tailwind-colors-green-500:#22c55e;--tailwind-colors-green-400:#4ade80;--tailwind-colors-green-300:#86efac;--tailwind-colors-green-200:#bbf7d0;--tailwind-colors-green-100:#dcfce7;--tailwind-colors-green-50:#f0fdf4;--tailwind-colors-lime-900:#365314;--tailwind-colors-lime-800:#3f6212;--tailwind-colors-lime-700:#4d7c0f;--tailwind-colors-lime-600:#65a30d;--tailwind-colors-lime-500:#84cc16;--tailwind-colors-lime-400:#a3e635;--tailwind-colors-lime-300:#bef264;--tailwind-colors-lime-200:#d9f99d;--tailwind-colors-lime-100:#ecfccb;--tailwind-colors-lime-50:#f7fee7;--tailwind-colors-yellow-900:#713f12;--tailwind-colors-yellow-800:#854d0e;--tailwind-colors-yellow-700:#a16207;--tailwind-colors-yellow-600:#ca8a04;--tailwind-colors-yellow-500:#eab308;--tailwind-colors-yellow-400:#facc15;--tailwind-colors-yellow-300:#fde047;--tailwind-colors-yellow-200:#fef08a;--tailwind-colors-yellow-100:#fef9c3;--tailwind-colors-yellow-50:#fefce8;--tailwind-colors-amber-900:#78350f;--tailwind-colors-amber-800:#92400e;--tailwind-colors-amber-700:#b45309;--tailwind-colors-amber-600:#d97706;--tailwind-colors-amber-500:#f59e0b;--tailwind-colors-amber-400:#fbbf24;--tailwind-colors-amber-300:#fcd34d;--tailwind-colors-amber-200:#fde68a;--tailwind-colors-amber-100:#fef3c7;--tailwind-colors-amber-50:#fffbeb;--tailwind-colors-orange-900:#7c2d12;--tailwind-colors-orange-800:#9a3412;--tailwind-colors-orange-700:#c2410c;--tailwind-colors-orange-600:#ea580c;--tailwind-colors-orange-500:#f97316;--tailwind-colors-orange-400:#fb923c;--tailwind-colors-orange-300:#fdba74;--tailwind-colors-orange-200:#fed7aa;--tailwind-colors-orange-100:#ffedd5;--tailwind-colors-orange-50:#fff7ed;--tailwind-colors-red-900:#7f1d1d;--tailwind-colors-red-800:#991b1b;--tailwind-colors-red-700:#b91c1c;--tailwind-colors-red-600:#dc2626;--tailwind-colors-red-500:#ef4444;--tailwind-colors-red-400:#f87171;--tailwind-colors-red-300:#fca5a5;--tailwind-colors-red-200:#fecaca;--tailwind-colors-red-100:#fee2e2;--tailwind-colors-red-50:#fef2f2;--tailwind-colors-stone-900:#1c1917;--tailwind-colors-stone-800:#292524;--tailwind-colors-stone-700:#44403c;--tailwind-colors-stone-600:#57534e;--tailwind-colors-stone-500:#78716c;--tailwind-colors-stone-400:#a8a29e;--tailwind-colors-stone-300:#d6d3d1;--tailwind-colors-stone-200:#e7e5e4;--tailwind-colors-stone-100:#f5f5f4;--tailwind-colors-stone-50:#fafaf9;--tailwind-colors-neutral-900:#171717;--tailwind-colors-neutral-800:#262626;--tailwind-colors-neutral-700:#404040;--tailwind-colors-neutral-600:#525252;--tailwind-colors-neutral-500:#737373;--tailwind-colors-neutral-400:#a3a3a3;--tailwind-colors-neutral-300:#d4d4d4;--tailwind-colors-neutral-200:#e5e5e5;--tailwind-colors-neutral-100:#f5f5f5;--tailwind-colors-neutral-50:#fafafa;--tailwind-colors-zinc-900:#18181b;--tailwind-colors-zinc-800:#27272a;--tailwind-colors-zinc-700:#3f3f46;--tailwind-colors-zinc-600:#52525b;--tailwind-colors-zinc-500:#71717a;--tailwind-colors-zinc-400:#a1a1aa;--tailwind-colors-zinc-300:#d4d4d8;--tailwind-colors-zinc-200:#e4e4e7;--tailwind-colors-zinc-100:#f4f4f5;--tailwind-colors-zinc-50:#fafafa;--tailwind-colors-gray-900:#111827;--tailwind-colors-gray-800:#1f2937;--tailwind-colors-gray-700:#374151;--tailwind-colors-gray-600:#4b5563;--tailwind-colors-gray-500:#6b7280;--tailwind-colors-gray-400:#9ca3af;--tailwind-colors-gray-300:#d1d5db;--tailwind-colors-gray-200:#e5e7eb;--tailwind-colors-gray-100:#f3f4f6;--tailwind-colors-gray-50:#f9fafb;--tailwind-colors-slate-900:#0f172a;--tailwind-colors-slate-800:#1e293b;--tailwind-colors-slate-700:#334155;--tailwind-colors-slate-600:#475569;--tailwind-colors-slate-500:#64748b;--tailwind-colors-slate-400:#94a3b8;--tailwind-colors-slate-300:#cbd5e1;--tailwind-colors-slate-200:#e2e8f0;--tailwind-colors-slate-100:#f1f5f9;--tailwind-colors-slate-50:#f8fafc;--tailwind-colors-black:#000000;--tailwind-colors-white:#ffffff;--spacing-xxxx-large:64px;--spacing-xxx-large:48px;--spacing-xx-large:40px;--spacing-x-large:32px;--spacing-large:24px;--spacing-medium:16px;--spacing-small:12px;--spacing-x-small:8px;--spacing-xx-small:4px;--spacing-xxx-small:2px;--rounding-circle:50%;--rounding-pill:9999px;--rounding-x-large:16px;--rounding-large:8px;--rounding-medium:4px;--rounding-small:2px;--rounding-x-small:1px;--rounding-xx-small:0px;--opacity-xxx-large:1;--opacity-xx-large:0.88;--opacity-x-large:0.72;--opacity-large:0.48;--opacity-medium:0.24;--opacity-small:0.16;--opacity-x-small:0.08;--opacity-xx-small:0;--icon-size-xx-large:64px;--icon-size-x-large:48px;--icon-size-large:32px;--icon-size-medium:24px;--icon-size-small:16px;--font-measure-large:34rem;--font-measure-medium:30rem;--font-measure-small:20rem;--font-tracking-x-large:.25rem;--font-tracking-large:.1rem;--font-tracking-medium:normal;--font-tracking-small:-.05rem;--font-weight-xx-large:700;--font-weight-x-large:600;--font-weight-large:500;--font-weight-medium:400;--font-weight-small:300;--font-size-xxxx-large:4.5rem;--font-size-xxx-large:3rem;--font-size-xx-large:2.25rem;--font-size-x-large:1.5rem;--font-size-large:1.25rem;--font-size-medium:1rem;--font-size-small:0.875rem;--font-size-x-small:0.75rem;--font-family-serif:Georgia, Times, Times New Roman, serif;--font-family-monospace:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;--font-family-system:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";--elevation-x-large:0px 20px 20px rgba(0, 0, 0, 0.2), 0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-large:0px 16px 16px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.16), 0px 8px 8px rgba(0, 0, 0, 0.12);--elevation-medium:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);--elevation-small:0px 4px 4px rgba(0, 0, 0, 0.16), 0px 2px 2px rgba(0, 0, 0, 0.18), 0px 1px 1px rgba(0, 0, 0, 0.2);--elevation-x-small:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 1px 1px rgba(0, 0, 0, 0.2);--color-transparent-base:rgba(0, 0, 0, 0);--color-white-base:#fcfcfc;--breakpoints-xx-large:only screen and (min-width: 1220px);--breakpoints-x-large:only screen and (min-width: 1025px);--breakpoints-large:only screen and (min-width: 992px);--breakpoints-medium:only screen and (min-width: 768px);--breakpoints-small:only screen and (min-width: 576px);--breakpoints-x-small:only screen and (max-width: 575px);--breakpoints-xx-small:only screen and (max-width: 360px);--brand-colors-black-100:#000000;--brand-colors-black-80:#323232;--brand-colors-black-60:#666666;--brand-colors-black-40:#999999;--brand-colors-black-20:#cccccc;--brand-colors-white-100:#ffffff;--brand-colors-dark-pine-100:#005655;--brand-colors-dark-pine-80:#327676;--brand-colors-dark-pine-60:#669999;--brand-colors-dark-pine-40:#99bbbb;--brand-colors-dark-pine-20:#ccdddd;--brand-colors-sky-blue-100:#abddff;--brand-colors-sky-blue-80:#c3e5ff;--brand-colors-sky-blue-60:#d2ebff;--brand-colors-sky-blue-40:#e1f2ff;--brand-colors-sky-blue-20:#f0f8ff;--brand-colors-sand-100:#ffefd7;--brand-colors-sand-80:#fff2df;--brand-colors-sand-60:#fff5e7;--brand-colors-brand-lime-100:#cdff00;--brand-colors-brand-lime-80:#d7ff32;--brand-colors-brand-lime-60:#e1ff66;--brand-colors-brand-lime-40:#ebff99;--brand-colors-brand-lime-20:#f5ffcc;--brand-colors-electric-purple-100:#7d49f3;--brand-colors-electric-purple-80:#976df5;--brand-colors-electric-purple-60:#b191f7;--brand-colors-electric-purple-40:#cbb6fa;--brand-colors-electric-purple-20:#e5dafc;--font-family-sans-serif:Figtree, var(--font-family-system);--color-dusk-base:var(--tailwind-colors-violet-500);--color-dusk-100:var(--tailwind-colors-violet-900);--color-dusk-90:var(--tailwind-colors-violet-800);--color-dusk-80:var(--tailwind-colors-violet-700);--color-dusk-70:var(--tailwind-colors-violet-600);--color-dusk-60:var(--tailwind-colors-violet-500);--color-dusk-50:var(--tailwind-colors-violet-400);--color-dusk-40:var(--tailwind-colors-violet-300);--color-dusk-30:var(--tailwind-colors-violet-200);--color-dusk-20:var(--tailwind-colors-violet-100);--color-dusk-10:var(--tailwind-colors-violet-50);--color-slate-base:var(--tailwind-colors-slate-500);--color-slate-100:var(--tailwind-colors-slate-900);--color-slate-90:var(--tailwind-colors-slate-800);--color-slate-80:var(--tailwind-colors-slate-700);--color-slate-70:var(--tailwind-colors-slate-600);--color-slate-60:var(--tailwind-colors-slate-500);--color-slate-50:var(--tailwind-colors-slate-400);--color-slate-40:var(--tailwind-colors-slate-300);--color-slate-30:var(--tailwind-colors-slate-200);--color-slate-20:var(--tailwind-colors-slate-100);--color-slate-10:var(--tailwind-colors-slate-50);--color-teal-base:var(--tailwind-colors-teal-500);--color-teal-100:var(--tailwind-colors-teal-900);--color-teal-90:var(--tailwind-colors-teal-800);--color-teal-80:var(--tailwind-colors-teal-700);--color-teal-70:var(--tailwind-colors-teal-600);--color-teal-60:var(--tailwind-colors-teal-500);--color-teal-50:var(--tailwind-colors-teal-400);--color-teal-40:var(--tailwind-colors-teal-300);--color-teal-30:var(--tailwind-colors-teal-200);--color-teal-20:var(--tailwind-colors-teal-100);--color-teal-10:var(--tailwind-colors-teal-50);--color-sky-base:var(--tailwind-colors-sky-500);--color-sky-100:var(--tailwind-colors-sky-900);--color-sky-90:var(--tailwind-colors-sky-800);--color-sky-80:var(--tailwind-colors-sky-700);--color-sky-70:var(--tailwind-colors-sky-600);--color-sky-60:var(--tailwind-colors-sky-500);--color-sky-50:var(--tailwind-colors-sky-400);--color-sky-40:var(--tailwind-colors-sky-300);--color-sky-30:var(--tailwind-colors-sky-200);--color-sky-20:var(--tailwind-colors-sky-100);--color-sky-10:var(--tailwind-colors-sky-50);--color-indigo-base:var(--tailwind-colors-indigo-500);--color-indigo-100:var(--tailwind-colors-indigo-900);--color-indigo-90:var(--tailwind-colors-indigo-800);--color-indigo-80:var(--tailwind-colors-indigo-700);--color-indigo-70:var(--tailwind-colors-indigo-600);--color-indigo-60:var(--tailwind-colors-indigo-500);--color-indigo-50:var(--tailwind-colors-indigo-400);--color-indigo-40:var(--tailwind-colors-indigo-300);--color-indigo-30:var(--tailwind-colors-indigo-200);--color-indigo-20:var(--tailwind-colors-indigo-100);--color-indigo-10:var(--tailwind-colors-indigo-50);--color-magenta-base:var(--tailwind-colors-pink-500);--color-magenta-100:var(--tailwind-colors-pink-900);--color-magenta-90:var(--tailwind-colors-pink-800);--color-magenta-80:var(--tailwind-colors-pink-700);--color-magenta-70:var(--tailwind-colors-pink-600);--color-magenta-60:var(--tailwind-colors-pink-500);--color-magenta-50:var(--tailwind-colors-pink-400);--color-magenta-40:var(--tailwind-colors-pink-300);--color-magenta-30:var(--tailwind-colors-pink-200);--color-magenta-20:var(--tailwind-colors-pink-100);--color-magenta-10:var(--tailwind-colors-pink-50);--color-purple-base:var(--tailwind-colors-purple-500);--color-purple-100:var(--tailwind-colors-purple-900);--color-purple-90:var(--tailwind-colors-purple-800);--color-purple-80:var(--tailwind-colors-purple-700);--color-purple-70:var(--tailwind-colors-purple-600);--color-purple-60:var(--tailwind-colors-purple-500);--color-purple-50:var(--tailwind-colors-purple-400);--color-purple-40:var(--tailwind-colors-purple-300);--color-purple-30:var(--tailwind-colors-purple-200);--color-purple-20:var(--tailwind-colors-purple-100);--color-purple-10:var(--tailwind-colors-purple-50);--color-bronze-base:var(--tailwind-colors-amber-500);--color-bronze-100:var(--tailwind-colors-amber-900);--color-bronze-90:var(--tailwind-colors-amber-800);--color-bronze-80:var(--tailwind-colors-amber-700);--color-bronze-70:var(--tailwind-colors-amber-600);--color-bronze-60:var(--tailwind-colors-amber-500);--color-bronze-50:var(--tailwind-colors-amber-400);--color-bronze-40:var(--tailwind-colors-amber-300);--color-bronze-30:var(--tailwind-colors-amber-200);--color-bronze-20:var(--tailwind-colors-amber-100);--color-bronze-10:var(--tailwind-colors-amber-50);--color-blue-base:var(--tailwind-colors-blue-500);--color-blue-100:var(--tailwind-colors-blue-900);--color-blue-90:var(--tailwind-colors-blue-800);--color-blue-80:var(--tailwind-colors-blue-700);--color-blue-70:var(--tailwind-colors-blue-600);--color-blue-60:var(--tailwind-colors-blue-500);--color-blue-50:var(--tailwind-colors-blue-400);--color-blue-40:var(--tailwind-colors-blue-300);--color-blue-30:var(--tailwind-colors-blue-200);--color-blue-20:var(--tailwind-colors-blue-100);--color-blue-10:var(--tailwind-colors-blue-50);--color-green-base:var(--tailwind-colors-green-500);--color-green-100:var(--tailwind-colors-green-900);--color-green-90:var(--tailwind-colors-green-800);--color-green-80:var(--tailwind-colors-green-700);--color-green-70:var(--tailwind-colors-green-600);--color-green-60:var(--tailwind-colors-green-500);--color-green-50:var(--tailwind-colors-green-400);--color-green-40:var(--tailwind-colors-green-300);--color-green-30:var(--tailwind-colors-green-200);--color-green-20:var(--tailwind-colors-green-100);--color-green-10:var(--tailwind-colors-green-50);--color-red-base:var(--tailwind-colors-red-500);--color-red-100:var(--tailwind-colors-red-900);--color-red-90:var(--tailwind-colors-red-800);--color-red-80:var(--tailwind-colors-red-700);--color-red-70:var(--tailwind-colors-red-600);--color-red-60:var(--tailwind-colors-red-500);--color-red-50:var(--tailwind-colors-red-400);--color-red-40:var(--tailwind-colors-red-300);--color-red-30:var(--tailwind-colors-red-200);--color-red-20:var(--tailwind-colors-red-100);--color-red-10:var(--tailwind-colors-red-50);--color-gray-base:var(--tailwind-colors-gray-500);--color-gray-100:var(--tailwind-colors-gray-900);--color-gray-90:var(--tailwind-colors-gray-800);--color-gray-80:var(--tailwind-colors-gray-700);--color-gray-70:var(--tailwind-colors-gray-600);--color-gray-60:var(--tailwind-colors-gray-500);--color-gray-50:var(--tailwind-colors-gray-400);--color-gray-40:var(--tailwind-colors-gray-300);--color-gray-30:var(--tailwind-colors-gray-200);--color-gray-20:var(--tailwind-colors-gray-100);--color-gray-10:var(--tailwind-colors-gray-50);--color-hotorchid-base:var(--tailwind-colors-pink-500);--color-white-white:var(--tailwind-colors-white);--color-black-black:var(--tailwind-colors-black);--color-black-base:var(--tailwind-colors-stone-900)}.chip{display:flex;background-color:var(--tailwind-colors-gray-50);border:1px solid var(--tailwind-colors-gray-200);padding:0 var(--spacing-xx-small);border-radius:var(--spacing-x-small);align-items:center;color:var(--tailwind-colors-neutral-500);font-family:var(--font-family-system);font-size:var(--font-size-medium);height:var(--spacing-xxx-large);width:-moz-fit-content;width:fit-content;cursor:default}.chip:hover{background-color:var(--tailwind-colors-gray-100)}.chip--active{color:var(--brand-colors-white-100)}.chip--active:hover{filter:brightness(90%)}.chip__content{padding:0 var(--spacing-small);white-space:nowrap}.chip__icon{width:var(--spacing-x-large);height:var(--spacing-x-large)}',dz=class{constructor(e){Ir(this,e),this.icon=void 0,this.content=void 0,this.backgroundColor="#005655",this.active=!1}render(){const e={background:this.active?this.backgroundColor:""};return Je("div",{style:e,class:`chip ${this.active?"chip--active":""}`},this.icon&&Je("img",{class:"chip__icon",src:this.icon}),Je("div",{class:"chip__content"},this.content))}};dz.style=_q;const vq=Object.freeze(Object.defineProperty({__proto__:null,mi_chip:dz},Symbol.toStringTag,{value:"Module"})),xq=Object.freeze(Object.defineProperty({__proto__:null,mi_column:class{constructor(e){Ir(this,e),this.clicked=$r(this,"clicked",7),this.monospace=!1,this.alignContent="left",this.label=void 0,this.sortable=void 0,this.sort=void 0,this.binding=void 0,this.fitContent=!1,this.width="auto"}cellContentClickedHandler(e){this.clicked.emit(e.detail)}render(){}}},Symbol.toStringTag,{value:"Module"}));var G4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zm(e,i,o){return o={path:i,exports:{},require:function(u,d){return wq()}},e(o,o.exports),o.exports}function wq(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var pz=Zm(function(e){((i,o)=>{e.exports?e.exports=o():i.fuzzysort=o()})(G4,i=>{var o=(Tt,bt)=>{if(Tt=="farzher")return{target:"farzher was here (^-^*)/",score:0,_indexes:[0]};if(!Tt||!bt)return jt;var qt=V(Tt);ot(bt)||(bt=j(bt));var Ot=qt.bitflags;return(Ot&bt._bitflags)!==Ot?jt:G(qt,bt)},u=(Tt,bt,qt)=>{if(Tt=="farzher")return[{target:"farzher was here (^-^*)/",score:0,_indexes:[0],obj:bt?bt[0]:jt}];if(!Tt)return qt&&qt.all?ie(Tt,bt,qt):ut;var Ot=V(Tt),Vt=Ot.bitflags,W=qt&&qt.threshold||xt,ne=qt&&qt.limit||$e,T=0,k=0,F=bt.length;if(qt&&qt.key)for(var Q=qt.key,Z=0;Z<F;++Z){var se=bt[Z],he=We(se,Q);if(he&&(ot(he)||(he=j(he)),(Vt&he._bitflags)===Vt)){var ce=G(Ot,he);ce!==jt&&(ce.score<W||(ce={target:ce.target,_targetLower:"",_targetLowerCodes:jt,_nextBeginningIndexes:jt,_bitflags:0,score:ce.score,_indexes:ce._indexes,obj:se},T<ne?(Jt.add(ce),++T):(++k,ce.score>Jt.peek().score&&Jt.replaceTop(ce))))}}else if(qt&&qt.keys)for(var xe=qt.scoreFn||we,He=qt.keys,et=He.length,Z=0;Z<F;++Z){for(var se=bt[Z],Ue=new Array(et),Xe=0;Xe<et;++Xe){var Q=He[Xe],he=We(se,Q);if(!he){Ue[Xe]=jt;continue}ot(he)||(he=j(he)),(Vt&he._bitflags)!==Vt?Ue[Xe]=jt:Ue[Xe]=G(Ot,he)}Ue.obj=se;var Fe=xe(Ue);Fe!==jt&&(Fe<W||(Ue.score=Fe,T<ne?(Jt.add(Ue),++T):(++k,Fe>Jt.peek().score&&Jt.replaceTop(Ue))))}else for(var Z=0;Z<F;++Z){var he=bt[Z];if(he&&(ot(he)||(he=j(he)),(Vt&he._bitflags)===Vt)){var ce=G(Ot,he);ce!==jt&&(ce.score<W||(T<ne?(Jt.add(ce),++T):(++k,ce.score>Jt.peek().score&&Jt.replaceTop(ce))))}}if(T===0)return ut;for(var rt=new Array(T),Z=T-1;Z>=0;--Z)rt[Z]=Jt.poll();return rt.total=T+k,rt},d=(Tt,bt,qt)=>{if(typeof bt=="function")return _(Tt,bt);if(Tt===jt)return jt;bt===void 0&&(bt="<b>"),qt===void 0&&(qt="</b>");var Ot="",Vt=0,W=!1,ne=Tt.target,T=ne.length,k=Tt._indexes;k=k.slice(0,k.len).sort((Z,se)=>Z-se);for(var F=0;F<T;++F){var Q=ne[F];if(k[Vt]===F){if(++Vt,W||(W=!0,Ot+=bt),Vt===k.length){Ot+=Q+qt+ne.substr(F+1);break}}else W&&(W=!1,Ot+=qt);Ot+=Q}return Ot},_=(F,bt)=>{if(F===jt)return jt;var qt=F.target,Ot=qt.length,Vt=F._indexes;Vt=Vt.slice(0,Vt.len).sort((se,he)=>se-he);for(var W="",ne=0,T=0,k=!1,F=[],Q=0;Q<Ot;++Q){var Z=qt[Q];if(Vt[T]===Q){if(++T,k||(k=!0,F.push(W),W=""),T===Vt.length){W+=Z,F.push(bt(W,ne++)),W="",F.push(qt.substr(Q+1));break}}else k&&(k=!1,F.push(bt(W,ne++)),W="");W+=Z}return F},b=Tt=>Tt._indexes.slice(0,Tt._indexes.len).sort((bt,qt)=>bt-qt),a=Tt=>{typeof Tt!="string"&&(Tt="");var bt=fe(Tt);return{target:Tt,_targetLower:bt._lower,_targetLowerCodes:bt.lowerCodes,_nextBeginningIndexes:jt,_bitflags:bt.bitflags,score:jt,_indexes:[0],obj:jt}},E=Tt=>{typeof Tt!="string"&&(Tt=""),Tt=Tt.trim();var bt=fe(Tt),qt=[];if(bt.containsSpace){var Ot=Tt.split(/\s+/);Ot=[...new Set(Ot)];for(var Vt=0;Vt<Ot.length;Vt++)if(Ot[Vt]!==""){var W=fe(Ot[Vt]);qt.push({lowerCodes:W.lowerCodes,_lower:Ot[Vt].toLowerCase(),containsSpace:!1})}}return{lowerCodes:bt.lowerCodes,bitflags:bt.bitflags,containsSpace:bt.containsSpace,_lower:bt._lower,spaceSearches:qt}},j=Tt=>{if(Tt.length>999)return a(Tt);var bt=te.get(Tt);return bt!==void 0||(bt=a(Tt),te.set(Tt,bt)),bt},V=Tt=>{if(Tt.length>999)return E(Tt);var bt=ee.get(Tt);return bt!==void 0||(bt=E(Tt),ee.set(Tt,bt)),bt},ie=(Tt,bt,qt)=>{var Ot=[];Ot.total=bt.length;var Vt=qt&&qt.limit||$e;if(qt&&qt.key)for(var W=0;W<bt.length;W++){var ne=bt[W],T=We(ne,qt.key);if(T){ot(T)||(T=j(T)),T.score=xt,T._indexes.len=0;var k=T;if(k={target:k.target,_targetLower:"",_targetLowerCodes:jt,_nextBeginningIndexes:jt,_bitflags:0,score:T.score,_indexes:jt,obj:ne},Ot.push(k),Ot.length>=Vt)return Ot}}else if(qt&&qt.keys)for(var W=0;W<bt.length;W++){for(var ne=bt[W],F=new Array(qt.keys.length),Q=qt.keys.length-1;Q>=0;--Q){var T=We(ne,qt.keys[Q]);if(!T){F[Q]=jt;continue}ot(T)||(T=j(T)),T.score=xt,T._indexes.len=0,F[Q]=T}if(F.obj=ne,F.score=xt,Ot.push(F),Ot.length>=Vt)return Ot}else for(var W=0;W<bt.length;W++){var T=bt[W];if(T&&(ot(T)||(T=j(T)),T.score=xt,T._indexes.len=0,Ot.push(T),Ot.length>=Vt))return Ot}return Ot},G=(Tt,bt,qt=!1)=>{if(qt===!1&&Tt.containsSpace)return le(Tt,bt);for(var Ot=Tt._lower,Vt=Tt.lowerCodes,W=Vt[0],ne=bt._targetLowerCodes,T=Vt.length,k=ne.length,se=0,F=0,Q=0;;){var Z=W===ne[F];if(Z){if(re[Q++]=F,++se,se===T)break;W=Vt[se]}if(++F,F>=k)return jt}var se=0,he=!1,ce=0,xe=bt._nextBeginningIndexes;xe===jt&&(xe=bt._nextBeginningIndexes=Ze(bt.target)),F=re[0]===0?0:xe[re[0]-1];var He=0;if(F!==k)for(;;)if(F>=k){if(se<=0||(++He,He>200))break;--se;var et=Me[--ce];F=xe[et]}else{var Z=Vt[se]===ne[F];if(Z){if(Me[ce++]=F,++se,se===T){he=!0;break}++F}else F=xe[F]}var Ue=bt._targetLower.indexOf(Ot,re[0]),Xe=~Ue;if(Xe&&!he)for(var Fe=0;Fe<Q;++Fe)re[Fe]=Ue+Fe;var rt=!1;Xe&&(rt=bt._nextBeginningIndexes[Ue-1]===Ue);{if(he)var pt=Me,Mt=ce;else var pt=re,Mt=Q;for(var Et=0,di=0,Fe=1;Fe<T;++Fe)pt[Fe]-pt[Fe-1]!==1&&(Et-=pt[Fe],++di);var ei=pt[T-1]-pt[0]-(T-1);if(Et-=(12+ei)*di,pt[0]!==0&&(Et-=pt[0]*pt[0]*.2),!he)Et*=1e3;else{for(var Di=1,Fe=xe[0];Fe<k;Fe=xe[Fe])++Di;Di>24&&(Et*=(Di-24)*10)}Xe&&(Et/=1+T*T*1),rt&&(Et/=1+T*T*1),Et-=k-T,bt.score=Et;for(var Fe=0;Fe<Mt;++Fe)bt._indexes[Fe]=pt[Fe];return bt._indexes.len=Mt,bt}},le=(Tt,bt)=>{for(var qt=new Set,Ot=0,Vt=jt,W=0,ne=Tt.spaceSearches,Q=0;Q<ne.length;++Q){var T=ne[Q];if(Vt=G(T,bt),Vt===jt)return jt;Ot+=Vt.score,Vt._indexes[0]<W&&(Ot-=W-Vt._indexes[0]),W=Vt._indexes[0];for(var k=0;k<Vt._indexes.len;++k)qt.add(Vt._indexes[k])}var F=G(Tt,bt,!0);if(F!==jt&&F.score>Ot)return F;Vt.score=Ot;var Q=0;for(let Z of qt)Vt._indexes[Q++]=Z;return Vt._indexes.len=Q,Vt},fe=Tt=>{for(var bt=Tt.length,qt=Tt.toLowerCase(),Ot=[],Vt=0,W=!1,ne=0;ne<bt;++ne){var T=Ot[ne]=qt.charCodeAt(ne);if(T===32){W=!0;continue}var k=T>=97&&T<=122?T-97:T>=48&&T<=57?26:T<=127?30:31;Vt|=1<<k}return{lowerCodes:Ot,bitflags:Vt,containsSpace:W,_lower:qt}},ve=Tt=>{for(var bt=Tt.length,qt=[],Ot=0,Vt=!1,W=!1,ne=0;ne<bt;++ne){var T=Tt.charCodeAt(ne),k=T>=65&&T<=90,F=k||T>=97&&T<=122||T>=48&&T<=57,Q=k&&!Vt||!W||!F;Vt=k,W=F,Q&&(qt[Ot++]=ne)}return qt},Ze=Tt=>{for(var bt=Tt.length,qt=ve(Tt),Ot=[],Vt=qt[0],W=0,ne=0;ne<bt;++ne)Vt>ne?Ot[ne]=Vt:(Vt=qt[++W],Ot[ne]=Vt===void 0?bt:Vt);return Ot},me=()=>{te.clear(),ee.clear(),re=[],Me=[]},te=new Map,ee=new Map,re=[],Me=[],we=Tt=>{for(var bt=xt,qt=Tt.length,Ot=0;Ot<qt;++Ot){var Vt=Tt[Ot];if(Vt!==jt){var W=Vt.score;W>bt&&(bt=W)}}return bt===xt?jt:bt},We=(Tt,bt)=>{var qt=Tt[bt];if(qt!==void 0)return qt;var Ot=bt;Array.isArray(bt)||(Ot=bt.split("."));for(var Vt=Ot.length,W=-1;Tt&&++W<Vt;)Tt=Tt[Ot[W]];return Tt},ot=Tt=>typeof Tt=="object",$e=1/0,xt=-$e,ut=[];ut.total=0;var jt=null,St=Tt=>{var bt=[],qt=0,Ot={},Vt=W=>{for(var ne=0,T=bt[ne],k=1;k<qt;){var F=k+1;ne=k,F<qt&&bt[F].score<bt[k].score&&(ne=F),bt[ne-1>>1]=bt[ne],k=1+(ne<<1)}for(var Q=ne-1>>1;ne>0&&T.score<bt[Q].score;Q=(ne=Q)-1>>1)bt[ne]=bt[Q];bt[ne]=T};return Ot.add=W=>{var ne=qt;bt[qt++]=W;for(var T=ne-1>>1;ne>0&&W.score<bt[T].score;T=(ne=T)-1>>1)bt[ne]=bt[T];bt[ne]=W},Ot.poll=W=>{if(qt!==0){var ne=bt[0];return bt[0]=bt[--qt],Vt(),ne}},Ot.peek=W=>{if(qt!==0)return bt[0]},Ot.replaceTop=W=>{bt[0]=W,Vt()},Ot},Jt=St();return{single:o,go:u,highlight:d,prepare:a,indexes:b,cleanup:me}})}),Uf;(function(e){e.Asc="asc",e.Desc="desc"})(Uf||(Uf={}));const bq=`.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-label{font-style:normal;display:block;font-size:1rem;font-weight:500;color:#1e2025}.mi-label>*{margin-top:4px}.mi-label>input[type=radio],.mi-label>input[type=checkbox],.mi-label>label.mi-toggle-btn{margin-right:8px}combo-box-item{display:none}:host{display:inline-block;position:relative;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}:host(.open) .button::after{border-top-color:transparent;border-bottom-color:#1f2937;margin-top:-8px}:host(.open) section{display:flex}:host(.open) svg{transform:rotate(180deg)}.input{position:relative;display:flex;justify-content:flex-start;align-items:center;height:100%;width:100%;font-family:inherit;background:linear-gradient(#f9fafb, #f3f4f6);border-radius:4px;border-width:1px;border-style:solid;border-color:#d1d5db;color:#1c1917;font-size:1rem;font-weight:500;line-height:1rem;padding-right:40px;padding-left:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.input__svg{margin-left:auto;position:absolute;top:50%;right:-42px}.input__label{padding-top:12px;padding-bottom:12px;margin-right:8px;display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.input__label--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.input:disabled{opacity:0.72;cursor:not-allowed}.content{padding-top:12px;padding-bottom:12px;margin-top:12px;margin-bottom:12px;border-radius:8px;color:#1c1917;font-size:1rem;font-weight:500;background-color:#fcfcfc;box-shadow:0px 2px 2px rgba(0, 0, 0, 0.2), 0px 4px 4px rgba(0, 0, 0, 0.18), 0px 8px 8px rgba(0, 0, 0, 0.16);min-width:320px;max-width:480px;max-height:580px;display:none;flex-direction:column;position:fixed;z-index:10000}.content .list{padding:0;margin:0;list-style:none;overflow-y:auto}.content .list__item{cursor:pointer}.content .list__item--highlighted{background-color:#f3f4f6}.empty-page{display:flex;align-items:left;flex-direction:column;margin-left:16px;margin-bottom:12px}.empty-page>*{margin:0}.empty-page__header{font-size:1rem;font-weight:400;color:#374151}.label{display:flex;flex-direction:row;align-items:center;padding-left:16px;padding-right:16px;padding-top:8px;padding-bottom:8px}.label__item{display:inline-block;margin-top:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.label__item--from-inner-html{display:flex;flex-direction:row;align-items:center;gap:8px}.label__checkbox{margin-right:12px}.label__checkbox--hidden{display:none}`;var Cl;(function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.Enter="Enter",e.Esc="Escape"})(Cl||(Cl={}));const gz=class{constructor(e){Ir(this,e),this.change=$r(this,"change",3),this.isFilterSelectionDisabled=!1,this.isMouseOverEventDisabled=!1,this.currentItemIndex=0,this.selectedItemIndex=0,this.highlightedItemClassName="list__item--highlighted",this.open=!1,this.items=[],this.itemsOrder=void 0,this.filterable=!1,this.selected=[],this.noResultsMessage="No results found",this.currentItems=[],this.disabled=!1}onItemsChanged(e){if(e.some(i=>i.tagName.toLowerCase()!=="combo-box-item"))throw new Error("Items contains unknown element(s).");if(Object.values(Uf).includes(this.itemsOrder)&&(e=this.getSortedItems(e)),this.currentItems=[...e],this.filter(),!this.filterable){const i=this.currentItems.findIndex(o=>o.selected);this.currentItemIndex=i>-1?i:0,this.selectedItemIndex=this.currentItemIndex}this.items.forEach((i,o)=>{i.dataset.index=o.toString()}),this.selectFirstMiDropdownItem()}onCurrentItemsChange(){this.isFilterSelectionDisabled=this.currentItems.length===0}checkForClickOutside(e){var i;!this.hostElement.contains(e.target)&&this.noResultsMessage&&(this.clearFilter(),this.filterElement.value=(i=this.selected[0])===null||i===void 0?void 0:i.text,this.open=!1)}onClickExists(e){this.open=!0,e.target.type="text",this.filterElement.select()}mouseMoveEventHandler(){this.isMouseOverEventDisabled=!1}scrollEventHandler(e){const i=e.target;(!i||!this.hostElement.contains(i))&&(this.open=!1)}resizeEventHandler(){this.calculateDropDownPosition()}componentDidLoad(){this.createMiDropdownItemsFromDocument(),this.selectFirstMiDropdownItem(),this.enableKeyboardNavigationEvents();const e=new IntersectionObserver(i=>{i.forEach(o=>{o.isIntersecting===!0&&this.filterElement.blur()})});this.filterElement!==void 0&&(e.observe(this.filterElement),this.filterElement.addEventListener("keydown",i=>{(i.key===Cl.ArrowDown||i.key===Cl.ArrowUp)&&i.preventDefault()}))}componentDidRender(){this.calculateDropDownPosition(),this.filterable||this.highlightItem(this.currentItemIndex,!0)}createMiDropdownItemsFromDocument(){const e=this.items&&this.items.length>0?this.items:this.hostElement.querySelectorAll("combo-box-item");e.length>0&&(this.items=Array.from(e))}selectFirstMiDropdownItem(){var e;if(!this.filterable){const i=(e=this.items)===null||e===void 0?void 0:e.findIndex(o=>o.selected);this.selected=[this.items[i>-1?i:0]]}}enableKeyboardNavigationEvents(){this.hostElement.addEventListener("keydown",e=>{if(this.open===!1&&e.key===Cl.ArrowDown){this.isMouseOverEventDisabled=!0,this.toggleContentWindow(),e.preventDefault();return}if(this.open===!0&&!this.filterable)switch(e.key){case(Cl.ArrowDown||Cl.ArrowUp):this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case Cl.ArrowUp:this.isMouseOverEventDisabled=!0,this.currentItemIndex=(this.currentItemIndex+this.currentItems.length-1)%this.currentItems.length,this.highlightItem(this.currentItemIndex,!0),e.preventDefault();break;case Cl.Enter:if(this.hostElement.shadowRoot.activeElement===this.clearButtonElement)return;this.currentItems[this.currentItemIndex]!==void 0&&this.onSelect(this.currentItems[this.currentItemIndex]),e.preventDefault();break}e.key===Cl.Esc&&(this.filterable||(this.currentItemIndex=this.selectedItemIndex,this.highlightItem(this.currentItemIndex)),this.toggleContentWindow(),this.clearFilter())})}highlightItem(e,i=!1){var o,u;const d=this.hostElement.shadowRoot.querySelectorAll(".list__item");d.forEach(_=>{_.classList.remove(this.highlightedItemClassName)}),(o=d[e])===null||o===void 0||o.classList.add(this.highlightedItemClassName),i&&((u=d[e])===null||u===void 0||u.scrollIntoView({block:"nearest",inline:"nearest"}))}getSortedItems(e){return this.itemsOrder===Uf.Asc?e.sort((i,o)=>(i.text||i.innerText).trimStart().toLowerCase().localeCompare((o.text||o.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})):e.sort((i,o)=>(o.text||o.innerText).trimStart().toLowerCase().localeCompare((i.text||i.innerText).trimStart().toLowerCase(),void 0,{numeric:!0})),e}onChangedHandler(){this.selected=[...this.items.filter(e=>e.selected)],this.change.emit(this.selected)}toggleContentWindow(){this.open=!this.open}onSelect(e){this.filterable||(this.open=!1,Array.from(this.items).forEach(o=>{o.selected=!1}),this.clearFilter()),e.selected=!e.selected,this.currentItemIndex=Number(e.dataset.index),this.selectedItemIndex=this.currentItemIndex,this.onChangedHandler()}onMouseOver(e){!this.isMouseOverEventDisabled&&!this.filterable&&(this.highlightItem(e),this.currentItemIndex=e)}filter(){if(this.filterElement){const e=this.filterElement.value,i=this.items.map(b=>b.text||b.innerText),o=this.currentItems.length;if(e==="")return this.currentItemIndex=this.selectedItemIndex,this.currentItems=[...this.items];const u={limit:50,allowTypo:!1,threshold:-1e4},_=pz.go(e,i,u).map(b=>this.items.find(a=>(a.text||a.innerText)===b.target));this.currentItems=_,o!==this.currentItems.length&&(this.currentItemIndex=0)}}clearFilter(){var e;this.filterElement&&(this.filterElement.value=(e=this.selected[0])===null||e===void 0?void 0:e.text,this.filterElement.blur(),this.currentItems=this.items)}render(){var e;const i=Je("ul",{class:"list"},this.currentItems.map((o,u)=>this.renderListItem(o,u,this.filterable)));return Je(ko,{class:{open:this.open}},Je("input",{type:"text",class:"input",onFocus:o=>this.onClickExists(o),ref:o=>this.filterElement=o,onInput:()=>this.filter(),tabIndex:0,value:(e=this.selected[0])===null||e===void 0?void 0:e.text}),Je("svg",{role:"button",class:"input__svg",part:"icon-down-arrow",width:"12",height:"6",viewBox:"0 0 18 10",xmlns:"http://www.w3.org/2000/svg",onClick:()=>this.toggleContentWindow()},Je("path",{d:"M9.37165 9.58706C9.17303 9.80775 8.82697 9.80775 8.62835 9.58706L0.751035 0.834484C0.46145 0.512722 0.689796 7.73699e-08 1.12268 1.25924e-07L16.8773 1.89302e-06C17.3102 1.94157e-06 17.5386 0.512723 17.249 0.834484L9.37165 9.58706Z"})),Je("section",{ref:o=>this.listElement=o,part:"dropdown-container",class:"content"},this.currentItems.length===0?this.renderNoResultsTemplate():i))}renderNoResultsTemplate(){return Je("div",{class:"empty-page"},Je("p",{class:"empty-page__header"},this.noResultsMessage))}renderListItem(e,i,o){let u;const d=e.getAttribute("title")||e.text||e.innerText;return e.innerText.length>0?u=Je("div",{class:"label__item label__item--from-inner-html",innerHTML:e.innerHTML}):u=Je("div",{class:"label__item",innerHTML:e.text}),Je("li",{class:"list__item",title:d,onMouseOver:()=>{this.onMouseOver(i)}},Je("label",{class:"mi-label label",tabindex:"-1"},Je("input",{class:{label__checkbox:!0,"label__checkbox--hidden":!o,"mi-input":!0},type:"checkbox",value:i,checked:e.selected,onChange:()=>this.onSelect(e)}),u))}calculateDropDownPosition(){this.listElement.style.bottom=null,this.listElement.style.left=null,this.listElement.style.right=null,this.listElement.style.top=null,this.listElement.style.maxHeight=null,this.listElement.style.minWidth=null;const{clientWidth:e,clientHeight:i}=document.documentElement,o=this.hostElement.getBoundingClientRect(),u=this.listElement.getBoundingClientRect(),d=i-o.bottom,_=o.top,b=580,a=12;e<=u.width||o.right-u.width<0&&u.right>e?(this.listElement.style.right=`${a}px`,this.listElement.style.left=`${a}px`,this.listElement.style.minWidth="unset"):u.right>e?(this.listElement.style.left="unset",this.listElement.style.right=`${e-o.right}px`):(this.listElement.style.left=`${o.left}px`,this.listElement.style.right="unset"),_>d?(this.listElement.style.maxHeight=`${Math.min(_,b)}px`,this.listElement.style.top="unset",this.listElement.style.bottom=`${i-o.top}px`):(this.listElement.style.top=`${o.bottom}px`,this.listElement.style.bottom="unset",this.listElement.style.maxHeight=`${Math.min(d-a*2,b)}px`)}get hostElement(){return yc(this)}static get watchers(){return{items:["onItemsChanged"],currentItems:["onCurrentItemsChange"]}}};gz.style=bq;const Mq=Object.freeze(Object.defineProperty({__proto__:null,mi_combo_box:gz},Symbol.toStringTag,{value:"Module"}));function mz(e){return e!==null&&e>""&&!isNaN(Number(e))}function Iq(e){return Number(e).toLocaleString(void 0,{minimumFractionDigits:0})}function zv(e){return e==null}function Ov(){return!!(navigator.userAgent.match(/Trident/g)||navigator.userAgent.match(/MSIE/g))}function Tq(e){try{return new URL(e),!0}catch{return!1}}function Z4(e,i){if(Tq(e)===!1)return;const o=new URL(e),u=o.hostname;if(u==="image.mapsindoors.com"){const d=Math.max(2,window.devicePixelRatio||1),_=i*d,b=i*d;o.searchParams.set("width",_.toString()),o.searchParams.set("height",b.toString()),o.searchParams.set("fitMode","cover")}return["app.mapsindoors.com","v2.mapsindoors.com"].includes(u)&&o.searchParams.set("scale","2"),o.toString()}const Dq=`a.mi-button{cursor:default}.mi-button{border-radius:4px;border-width:1px;border-style:solid;font-family:Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:500;padding-left:16px;padding-right:16px;padding-top:12px;padding-bottom:12px;display:inline-flex;align-items:center}.mi-button:disabled{opacity:0.48;cursor:not-allowed}.mi-button object{filter:invert(9%) sepia(13%) saturate(692%) hue-rotate(185deg) brightness(98%) contrast(91%);width:16px;height:16px}.mi-button--small{padding-left:12px;padding-right:12px;padding-top:8px;padding-bottom:8px;font-size:0.875rem;height:32px}.mi-button--small object{width:16px;height:16px}.mi-button--large{padding-left:16px;padding-right:16px;font-size:1.25rem}.mi-button--large object{width:20px;height:20px}.mi-button--full-width{width:100%;justify-content:center}.mi-button--icon-left{padding-left:12px}.mi-button--icon-left object{margin-right:8px}.mi-button--icon-right{padding-right:12px}.mi-button--icon-right object{margin-left:8px}.mi-button--icon-both{padding-top:12px;padding-bottom:12px}.mi-button--icon-both object:first-of-type{margin-right:8px}.mi-button--icon-both object:last-of-type{margin-left:8px}.mi-button--base{background:linear-gradient(#f5f7fa, #ebeff5);color:#1e2025;border-color:#c8d0e0}.mi-button--base:not(:disabled):hover{background:linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-button--base:not(:disabled):active{background:linear-gradient(#dee3ed, #ebeff5)}.mi-button--primary{color:#ffffff;border-color:#20693e;background:linear-gradient(#3ba064, #2a844e)}.mi-button--primary object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--primary:not(:disabled):hover{background:linear-gradient(#2a844e, #20693e)}.mi-button--primary:not(:disabled):active{background:linear-gradient(#20693e, #2a844e)}.mi-button--delete{background:linear-gradient(#f55151, #de1b1b);color:#ffffff;border-color:#ba0d0d}.mi-button--delete object{filter:invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%)}.mi-button--delete:not(:disabled):hover{background:linear-gradient(#de1b1b, #ba0d0d)}.mi-button--delete:not(:disabled):active{background:linear-gradient(#ba0d0d, #de1b1b)}.mi-button--outline{color:#3071d9;border-color:#3071d9;background-color:transparent}.mi-button--outline object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--outline:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--outline:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-button--link{color:#3071d9;border-style:none;background-color:transparent;cursor:pointer}.mi-button--link object{filter:invert(38%) sepia(97%) saturate(742%) hue-rotate(188deg) brightness(86%) contrast(97%)}.mi-button--link:not(:disabled):hover{color:#1d5bbf;border-color:#1d5bbf;background-color:#eef4fc}.mi-button--link:disabled:hover{cursor:not-allowed}.mi-button--link:not(:disabled):active{color:#1d5bbf;border-color:#1d5bbf;background-color:#cfe0fc}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=tel]{font-size:1rem;padding:8px;border-style:solid;border-width:1px;border-color:#8d98aa;border-radius:4px}.mi-input[type=text],.mi-input[type=search],.mi-input[type=number],.mi-input[type=password],.mi-input[type=range],.mi-input[type=tel]{display:block}.mi-input[type=radio],.mi-input[type=checkbox]{margin:0px;transform:scale(1.2, 1.2)}.mi-input[type=search]{padding-left:32px;background:url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6267 8.43836C14.6267 11.8561 11.8561 14.6267 8.43836 14.6267C5.02062 14.6267 2.25 11.8561 2.25 8.43836C2.25 5.02062 5.02062 2.25 8.43836 2.25C11.8561 2.25 14.6267 5.02062 14.6267 8.43836Z' stroke='%23aeb9cb' stroke-width='2.5'/%3E%3Crect x='15.0979' y='14.1614' width='7.34678' height='1.32449' rx='0.662244' transform='rotate(45 15.0979 14.1614)' fill='%23aeb9cb' stroke='%23aeb9cb'/%3E%3Crect x='13.7847' y='13.2916' width='1.05276' height='0.697347' transform='rotate(45 13.7847 13.2916)' stroke='%23aeb9cb' stroke-width='0.697346'/%3E%3C/svg%3E%0A") no-repeat scroll 8px center, white}.mi-input:disabled{opacity:0.48;cursor:not-allowed}.mi-select{display:block;padding-top:8px;padding-bottom:8px;padding-left:8px;padding-right:32px;border-radius:4px;border-width:1px;border-style:solid;border-color:#c8d0e0;color:#1e2025;font-size:1rem;font-weight:500;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#f5f7fa, #ebeff5)}.mi-select:disabled{opacity:0.48;cursor:not-allowed}.mi-select:not(:disabled):hover{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#ebeff5, #dee3ed);border-color:#aeb9cb}.mi-select:not(:disabled):active{background:url("data:image/svg+xml;base64,PHN2ZyBmaWxsPScjNDQ0QjU1JyBoZWlnaHQ9JzI0JyB2aWV3Qm94PScwIDAgMjQgMjQnIHdpZHRoPScyNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz4KPHBhdGggZD0nTTcgMTBsNSA1IDUtNXonLz4KPHBhdGggZD0nTTAgMGgyNHYyNEgweicgZmlsbD0nbm9uZScvPgo8L3N2Zz4=") 96%/24px no-repeat, linear-gradient(#dee3ed, #ebeff5)}.mi-toggle{margin:0}.mi-toggle:disabled{cursor:not-allowed}.mi-toggle+.mi-label{margin-left:8px}@supports (appearance: none) or (-moz-appearance: none) or (-webkit-appearance: none){.mi-toggle{padding:2px;box-sizing:border-box;appearance:none;-moz-appearance:none;-webkit-appearance:none;width:48px;height:24px;border-radius:9999px;background-color:#8d98aa;transition:background-color 300ms ease}.mi-toggle:disabled{opacity:0.48}.mi-toggle:checked{background-color:#2a844e}.mi-toggle::after{content:"";display:inline-block;width:20px;height:20px;transform:translateX(0px);border-radius:50%;background-color:#fcfcfc;box-shadow:0 1px 1px rgba(0, 0, 0, 0.125), 0 2px 2px rgba(0, 0, 0, 0.125);transition:300ms ease}.mi-toggle:checked::after{transform:translateX(24px)}}.width-none{width:0}.width-xxx-small{width:2px}.width-xx-small{width:4px}.width-x-small{width:8px}.width-small{width:12px}.width-medium{width:16px}.width-large{width:24px}.width-x-large{width:32px}.width-xx-large{width:40px}.width-xxx-large{width:48px}.width-xxxx-large{width:64px}.min-width-none{min-width:0}.min-width-xxx-small{min-width:2px}.min-width-xx-small{min-width:4px}.min-width-x-small{min-width:8px}.min-width-small{min-width:12px}.min-width-medium{min-width:16px}.min-width-large{min-width:24px}.min-width-x-large{min-width:32px}.min-width-xx-large{min-width:40px}.min-width-xxx-large{min-width:48px}.min-width-xxxx-large{min-width:64px}.max-width-none{max-width:0}.max-width-xxx-small{max-width:2px}.max-width-xx-small{max-width:4px}.max-width-x-small{max-width:8px}.max-width-small{max-width:12px}.max-width-medium{max-width:16px}.max-width-large{max-width:24px}.max-width-x-large{max-width:32px}.max-width-xx-large{max-width:40px}.max-width-xxx-large{max-width:48px}.max-width-xxxx-large{max-width:64px}.height-none{height:0}.height-xxx-small{height:2px}.height-xx-small{height:4px}.height-x-small{height:8px}.height-small{height:12px}.height-medium{height:16px}.height-large{height:24px}.height-x-large{height:32px}.height-xx-large{height:40px}.height-xxx-large{height:48px}.height-xxxx-large{height:64px}.min-height-none{min-height:0}.min-height-xxx-small{min-height:2px}.min-height-xx-small{min-height:4px}.min-height-x-small{min-height:8px}.min-height-small{min-height:12px}.min-height-medium{min-height:16px}.min-height-large{min-height:24px}.min-height-x-large{min-height:32px}.min-height-xx-large{min-height:40px}.min-height-xxx-large{min-height:48px}.min-height-xxxx-large{min-height:64px}.max-height-none{max-height:0}.max-height-xxx-small{max-height:2px}.max-height-xx-small{max-height:4px}.max-height-x-small{max-height:8px}.max-height-small{max-height:12px}.max-height-medium{max-height:16px}.max-height-large{max-height:24px}.max-height-x-large{max-height:32px}.max-height-xx-large{max-height:40px}.max-height-xxx-large{max-height:48px}.max-height-xxxx-large{max-height:64px}.debug *{outline:1px solid gold}.flex{display:flex;flex:1}.inline-flex{display:inline-flex}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.display-block{display:block}.display-inline-block{display:inline-block}.display-inline{display:inline}.display-none{display:none}.text-decoration-none{text-decoration:none}.text-right{text-align:right}.text-left{text-align:left}.text-center{text-align:center}.margin-auto{margin-left:auto;margin-right:auto}*{box-sizing:border-box}.table{width:100%;border-collapse:collapse;font-family:Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";background-color:#ffffff;border-style:solid;border-width:1px;border-color:#d1d5db;border-top:none}.table__header-cell{position:relative;text-align:left;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:48px;font-weight:500;font-size:1rem;line-height:1.25rem;color:#ffffff;background-color:#374151;padding-top:16px;padding-bottom:16px;padding-left:8px;padding-right:8px}.table__header-cell::before,.table__header-cell::after{content:"";display:block;position:absolute;right:16px;top:50%;border:7px solid transparent}.table__header-cell::before{border-bottom-color:#6b7280;margin-top:-15px}.table__header-cell::after{border-top-color:#6b7280;margin-top:3px}.table__header-cell.desc::after{border-top-color:#f9fafb}.table__header-cell.asc::before{border-bottom-color:#f9fafb}.table__header-cell--no-sort::before,.table__header-cell--no-sort::after{border:none}.table__header-cell:not(.table__header-cell--no-sort){padding-right:46px;cursor:pointer}.table__header-cell--fit-content{white-space:nowrap;width:1px}.table__header-cell--align-left{text-align:left}.table__header-cell--align-center{text-align:center}.table__header-cell--align-right{text-align:right}.table__header-cell--sticky{position:sticky;top:0;z-index:1}.table__row:nth-child(even):hover{background-color:#f3f4f6}.table__row:nth-child(odd){background-color:#f9fafb}.table__row:nth-child(odd):hover{background-color:#f3f4f6}.table__data{font-size:1rem;padding-left:8px;padding-right:8px;height:56px;border-right:1px solid #d1d5db}.table__data:last-child{border-right:none}.table__data--fit-content{white-space:nowrap;width:1px}.table__data--align-left{text-align:left}.table__data--align-center{text-align:center}.table__data--align-right{text-align:right}.table__data--monospace-font{font-family:Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace}.empty-page{display:flex;align-items:center;flex-direction:column;margin-top:72px;height:345px}.empty-page>*{margin:0}.empty-page__header{font-size:2.25rem}.empty-page__subheader{margin-top:32px;font-size:1.5rem}`,yz=class{constructor(e){Ir(this,e),this.selectionChanged=$r(this,"selectionChanged",7),this.columns=[],this.numberOfSelectedRows=void 0,this.rows=[],this.maxRows=void 0,this.page=void 0,this.selectable=!1,this.selected=new Set,this.emptyPageHeader="No results found",this.emptyPageSubheader=void 0,this.isHeaderSticky=!0,this.tableRows=[],this.currentPage=1,this.sortByColumn=null}onSelectionChangedHandler(){this.selectionChanged.emit(this.selected)}onRowsChangedHandler(){this.tableRows=Array.from(this.rows),this.setHeaderCheckboxState()}onPageChangedHandler(){this.currentPage=this.page,this.renderTableContent()}connectedCallback(){const e=this.el.querySelectorAll("mi-column");this.columns=Array.from(e).map(i=>{const o={alignContent:i.alignContent,monospace:i.monospace,label:zv(i.label)?i.binding:i.label,binding:i.binding||null,sortable:i.sortable,fitContent:!!i.fitContent,template:i.innerHTML.replace(/<!--[\s\S]*?-->/g,""),columnElement:i,width:i.width};return i.sort&&!this.sortByColumn&&(this.sortByColumn={column:o,sortOrder:i.sort==="asc"?"asc":"desc"}),o})}columnHeaderClickHandler(e,i){var o,u;if(!zv(i.sortable)){let d="asc";i===((o=this.sortByColumn)===null||o===void 0?void 0:o.column)&&(d=((u=this.sortByColumn)===null||u===void 0?void 0:u.sortOrder)==="asc"?"desc":"asc"),this.sortByColumn={column:i,sortOrder:d}}}sortTableRows(){var e,i,o;if(this.tableRows.length>0&&this.sortByColumn){let u;const d=(e=this.sortByColumn)===null||e===void 0?void 0:e.column,_=(i=this.sortByColumn)===null||i===void 0?void 0:i.sortOrder;if(d&&_)return((o=d.sortable)===null||o===void 0?void 0:o.toLowerCase())==="date"?u=_==="desc"?Eq(d.binding):Cq(d.binding):u=_==="desc"?Aq(d.binding):Sq(d.binding),[...this.tableRows.sort(u)]}return this.tableRows}replaceVars(e,i){return e.replace(/\{(.*?)\}/g,(o,u)=>u.split(".").reduce((_,b)=>_?_[b]:null,i))}removeFalseBooleanAttributes(e,i){return e.replace(/ (checked|disabled|hidden|selected)="\{(.*?)\}"/,(o,u,d)=>i[d]===!1?"":u)}tableRowClicked(e,i){var o;const u=e.target,d=u.closest("td").cellIndex,_=this.selectable?d-1:d;if(u.tagName.toLowerCase()!=="td"&&this.columns[_]){const b={detail:i};(o=this.columns[_])===null||o===void 0||o.columnElement.dispatchEvent(new CustomEvent("cellContentClicked",b))}}async componentWillLoad(){this.rows.length>0&&(this.tableRows=Array.from(this.rows))}render(){return Je(ko,null,Je("table",{class:"table"},Je("thead",null,Je("tr",null,this.renderSelectHeader(),this.columns.map(e=>{var i;const o=e.fitContent?"":e.width||"auto",u=((i=this.sortByColumn)===null||i===void 0?void 0:i.column)===e?this.sortByColumn.sortOrder:null;return Je("th",{"data-binding":e.binding,style:{width:o,"max-width":o,"min-width":o},onClick:d=>this.columnHeaderClickHandler(d,e),class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} ${zv(e.sortable)?"table__header-cell--no-sort":""} ${zv(u)?"":u} ${e.fitContent?"table__header-cell--fit-content":""}`},e.label)}))),Je("tbody",null,this.renderTableContent())),this.tableRows.length===0?this.renderEmptyPage():null)}renderSelectHeader(){if(this.selectable)return Je("th",{class:`table__header-cell ${this.isHeaderSticky?"table__header-cell--sticky":""} table__header-cell--fit-content table__header-cell--no-sort table__header-cell--align-center`},Je("input",{type:"checkbox",class:"mi-input",ref:e=>this.selectAllCheckbox=e,onChange:()=>this.selectHeaderOnChangeHandler()}))}renderSelectRow(e){if(this.selectable)return Je("td",{class:"table__data table__data--align-center"},Je("input",{class:"mi-input",type:"checkbox",checked:this.selected.has(e),onChange:i=>this.selectOnChangeHandler(i,e)}))}renderTableContent(){let e=this.sortTableRows();return e=mz(this.maxRows)&&this.maxRows>0?e.slice(this.maxRows*(this.currentPage-1),this.maxRows*this.currentPage):e,e.map(i=>this.renderTableRow(i))}renderTableRow(e){const i=[];for(const o of this.columns){let u=o.template;u>""?(u=this.removeFalseBooleanAttributes(u,e),u=this.replaceVars(u,e),i.push(u)):i.push(e[o.binding])}return Je("tr",{class:"table__row",onClick:o=>this.tableRowClicked(o,e)},this.renderSelectRow(e),i.map((o,u)=>Je("td",{class:`table__data ${this.columns[u].fitContent?"table__data--fit-content":""} table__data--align-${this.columns[u].alignContent||"left"} ${this.columns[u].monospace?"table__data--monospace-font":""}`,innerHTML:o})))}renderEmptyPage(){return Je("div",{class:"empty-page"},Je("p",{class:"empty-page__header"},this.emptyPageHeader),Je("p",{class:"empty-page__subheader"},this.emptyPageSubheader))}selectOnChangeHandler(e,i){e.target.checked?this.selected.add(i):this.selected.delete(i),this.setHeaderCheckboxState(),this.numberOfSelectedRows=this.selected.size,e.stopPropagation()}setHeaderCheckboxState(){this.selectAllCheckbox&&this.selectable&&(this.selectAllCheckbox.checked=this.selected.size===this.rows.length,this.selectAllCheckbox.indeterminate=this.selected.size>0&&this.selected.size<this.rows.length)}selectHeaderOnChangeHandler(){this.selected.size>0&&this.selected.size<=this.rows.length?(this.selected.clear(),this.selectAllCheckbox.checked=!1):(this.rows.forEach(e=>this.selected.add(e)),this.selectAllCheckbox.checked=!0),this.numberOfSelectedRows=this.selected.size}get el(){return yc(this)}static get watchers(){return{numberOfSelectedRows:["onSelectionChangedHandler"],rows:["onRowsChangedHandler"],page:["onPageChangedHandler"]}}},Sq=e=>(i,o)=>`${i[e]||""}`.localeCompare(`${o[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Aq=e=>(i,o)=>`${o[e]||""}`.localeCompare(`${i[e]||""}`.trimStart().toLowerCase(),void 0,{numeric:!0}),Cq=e=>(i,o)=>{const u=Date.parse(i[e]),d=Date.parse(o[e]);return u>d?1:u<d?-1:0},Eq=e=>(i,o)=>{const u=Date.parse(o[e]),d=Date.parse(i[e]);return u>d?1:u<d?-1:0};yz.style=Dq;const Nq=Object.freeze(Object.defineProperty({__proto__:null,mi_data_table:yz},Symbol.toStringTag,{value:"Module"}));var La;(function(e){e.Imperial="imperial",e.Metric="metric"})(La||(La={}));const Lq=class{constructor(e){Ir(this,e),this.meters=void 0,this.unit=navigator.language==="en-US"?La.Imperial:La.Metric}getMetricDisplayString(e){return Math.abs(e)<1e3?Math.round(e)>0?`${Math.round(e)} m`:"1 m":`${(e/1e3).toFixed(1)} km`}getImperialDisplayString(e){if(Math.abs(e)<1609.344){const u=e*3.28084;return Math.round(u)>0?`${Math.round(u)} ft`:"1 ft"}return`${(e/1609.344).toFixed(1)} mi`}render(){return this.meters>=0?this.renderDistance():null}renderDistance(){return Je("span",null,this.unit===La.Metric?this.getMetricDisplayString(this.meters):this.getImperialDisplayString(this.meters))}},zq=`/* Tool for generating the mask css from SVG: https://yoksel.github.io/url-encoder/ */