corequery 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/dist/server/api/handlers/departures/v0/index.js +1 -1
- package/server/dist/server/api/handlers/departures/v0/index.js.map +1 -1
- package/server/dist/server/api/handlers/service/v0/index.js +3 -3
- package/server/dist/server/api/handlers/service/v0/index.js.map +1 -1
- package/server/dist/server/data/service/connection/entire-vehicle-forms-service-connection.d.ts +14 -0
- package/server/dist/server/data/service/{service-connection.js → connection/entire-vehicle-forms-service-connection.js} +9 -9
- package/server/dist/server/data/service/connection/entire-vehicle-forms-service-connection.js.map +1 -0
- package/server/dist/server/data/service/connection/generic-connection.d.ts +18 -0
- package/server/dist/server/data/service/connection/generic-connection.js +23 -0
- package/server/dist/server/data/service/connection/generic-connection.js.map +1 -0
- package/server/dist/server/data/service/connection/service-connection.d.ts +3 -0
- package/server/dist/server/data/service/connection/service-connection.js +2 -0
- package/server/dist/server/data/service/connection/service-connection.js.map +1 -0
- package/server/dist/server/data/service/index.d.ts +3 -1
- package/server/dist/server/data/service/index.js +3 -1
- package/server/dist/server/data/service/index.js.map +1 -1
- package/server/dist/server/data/service/service-originating-movement.d.ts +2 -3
- package/server/dist/server/data/service/service-originating-movement.js +2 -5
- package/server/dist/server/data/service/service-originating-movement.js.map +1 -1
- package/server/dist/server/data/service/service-regular-movement.d.ts +2 -3
- package/server/dist/server/data/service/service-regular-movement.js +2 -5
- package/server/dist/server/data/service/service-regular-movement.js.map +1 -1
- package/server/dist/server/data/service/service-terminating-movement.d.ts +2 -3
- package/server/dist/server/data/service/service-terminating-movement.js +2 -5
- package/server/dist/server/data/service/service-terminating-movement.js.map +1 -1
- package/server/dist/server/data/service/service.d.ts +4 -3
- package/server/dist/server/data/service/service.js +2 -4
- package/server/dist/server/data/service/service.js.map +1 -1
- package/web/dist/assets/{About-UCAQqmkn.js → About-VbQoAmyQ.js} +1 -1
- package/web/dist/assets/Alert-BjESlX9K.js +1 -0
- package/web/dist/assets/{Button-De9ROUCb.js → Button-XyONIh2Y.js} +1 -1
- package/web/dist/assets/Debug-dgWz5wjb.js +1 -0
- package/web/dist/assets/{Home-Bjk9oz22.js → Home-BMl9F4ZR.js} +1 -1
- package/web/dist/assets/Line-GAcjy1Iz.js +1 -0
- package/web/dist/assets/LinkText-BO3BQABI.js +1 -0
- package/web/dist/assets/{Markdown-_rm-vmLF.js → Markdown-5DSrRUK6.js} +1 -1
- package/web/dist/assets/NotFound-cw9_c07G.js +1 -0
- package/web/dist/assets/{NotFoundPage-DsNHDLan.js → NotFoundPage-CLuz-y7a.js} +1 -1
- package/web/dist/assets/Service-CD939QH3.js +1 -0
- package/web/dist/assets/{Settings-coF5Xsk_.js → Settings-Ds60yPNk.js} +1 -1
- package/web/dist/assets/Stop-sFriiw23.js +1 -0
- package/web/dist/assets/VerticalBleed-DXsU7qEF.js +1 -0
- package/web/dist/assets/index-BOsLvNEK.js +2 -0
- package/web/dist/assets/index-CpWS5La_.css +2 -0
- package/web/dist/assets/scope-B-e4l8Dr.js +1 -0
- package/web/dist/assets/use-terminology-BOv-viOC.js +1 -0
- package/web/dist/index.html +7 -5
- package/web/dist/sw.js +1 -1
- package/server/dist/server/data/service/service-connection.d.ts +0 -21
- package/server/dist/server/data/service/service-connection.js.map +0 -1
- package/web/dist/assets/Alert-BihvmTP7.js +0 -1
- package/web/dist/assets/Debug-D02mGr8K.js +0 -1
- package/web/dist/assets/Line-pWcCnw4E.js +0 -1
- package/web/dist/assets/LinkText-BkJDt2va.js +0 -1
- package/web/dist/assets/NotFound-C6vki9__.js +0 -1
- package/web/dist/assets/Service-DuKHjsBr.js +0 -1
- package/web/dist/assets/Stop-CMvSpZTe.js +0 -1
- package/web/dist/assets/UilInfoCircle-CcwPr9DT.js +0 -1
- package/web/dist/assets/index-426IhMUa.css +0 -2
- package/web/dist/assets/index-BB7R-RFu.js +0 -2
- package/web/dist/assets/use-terminology-DvNuNrme.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as e,t}from"./use-query-aKyk6jW2.js";import{c as n,i as r,p as i,r as a,x as o}from"./use-nav-exemptions-K_D5A5Dp.js";import{s,t as c}from"./Button-XyONIh2Y.js";import{n as l}from"./use-foundational-data-CJfuPRzD.js";import{t as u}from"./integers-BYp6YHG5.js";import{t as d}from"./MingcuteHome4Line-C9WpirCC.js";import{t as f}from"./Strong-Cipefot2.js";import{t as p}from"./Page-DCUzSHpc.js";import{t as m}from"./use-simple-headers-zgszX2CN.js";function h(){let{params:{sourceId:a,intrasourceId:o},query:{from:c}}=i(),{data:l,loading:d,error:f}=t(e,{sourceId:a??``,intrasourceId:o??``}),p=u(c??``);return d?n(s,{}):f!=null||l==null||p==null||p<0||l.service!=null&&p>l.service.movements.length-1?n(r,{children:`Failed to load service.`}):l.service==null?n(_,{}):n(g,{service:l.service,movementIndex:p},`${a}/${o}`)}function g(e){let{foda:t}=l();return n(p,{...m({title:`${e.service.primaryDestinationText} service`}),children:n(a,{class:`px-4 py-8 gap-8`,children:n(a,{class:`gap-6`,children:e.service.movements.map((e,i)=>{let a=e.arrivalTime==null?null:new Date(Date.parse(e.arrivalTime)).toLocaleString(),s=e.departureTime==null?null:new Date(Date.parse(e.departureTime)).toLocaleString();if(a==null&&s==null)return n(r,{style:`small`,children:[`Skips `,t.stops.require(e.stopId).name]},i);let c=s??a,l=e.formerArrivalTime==null?null:new Date(Date.parse(e.formerArrivalTime)).toLocaleString(),u=e.formerDepartureTime==null?null:new Date(Date.parse(e.formerDepartureTime)).toLocaleString(),d=s==null?a==null?null:l:u,p=d==null?``:n(o,{children:[n(`span`,{class:`line-through text-fg-weak`,children:d}),` `]});return n(r,{children:[n(f,{children:t.stops.require(e.stopId).name}),` • `,p,c]},i)})})})})}function _(){return n(p,{mobileHeader:null,desktopHeader:null,children:n(a,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[n(r,{style:`title`,align:`center`,children:`Service not found`}),n(r,{align:`center`,children:`This can happen if the service was cancelled, or the timetable changed since this link was generated. You might be able to find it again by searching for one of the stops it departed from.`}),n(c,{href:`/`,text:`Go home`,icon:d})]})})}export{h as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,r as n}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as r}from"./use-settings-DmVCxG2H.js";import{
|
|
1
|
+
import{c as e,i as t,r as n}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as r}from"./use-settings-DmVCxG2H.js";import{n as i}from"./index-BOsLvNEK.js";import{t as a}from"./Page-DCUzSHpc.js";import{t as o}from"./use-simple-headers-zgszX2CN.js";import{t as s}from"./Divider-DTKq8RTH.js";import{t as c}from"./Picker-CZiJZO75.js";var l={auto:`Auto`,light:`Light`,dark:`Dark`},u=i.map(e=>({value:e,label:l[e]}));function d(t){let{settings:n,updateSettings:i}=r();return e(c,{class:t.class,value:n.theme,options:u,onChange:e=>{i(t=>t.with({theme:e}))}})}function f(){return e(a,{...o({title:`Settings`}),children:e(n,{class:`px-4 py-8 gap-8`,children:[e(n,{class:`gap-6`,children:[e(t,{style:`strong`,children:`Theme`}),e(t,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),e(d,{class:`self-start`})]}),e(s,{}),e(t,{style:`small-weak`,children:`(Settings are saved to your device's/browser's local storage.)`})]})})}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e,u as t}from"./use-query-aKyk6jW2.js";import{c as n,h as r,i,p as a,r as o}from"./use-nav-exemptions-K_D5A5Dp.js";import{a as s,s as c}from"./Button-XyONIh2Y.js";import{n as l}from"./use-foundational-data-CJfuPRzD.js";import{t as u}from"./index-BOsLvNEK.js";import{t as d}from"./Strong-Cipefot2.js";import{t as f}from"./Page-DCUzSHpc.js";import{t as p}from"./use-simple-headers-zgszX2CN.js";import{t as m}from"./NotFoundPage-CLuz-y7a.js";function h(){let{params:{id:e}}=a(),{foda:t}=l(),i=r(()=>t.stops.getByUrlPath(e??``),[t.stops,e]);return i==null?n(m,{afterConfirming:`foundational-data-version`}):n(g,{stop:i},i.id)}function g(r){let{data:a,loading:s,error:l}=e(t,{stopId:r.stop.id,count:10});return n(f,{...p({title:r.stop.name}),children:n(o,{class:`px-4 py-8 gap-8`,children:[n(u,{lineIds:r.stop.canonicalLinesServingStop,withLinks:!0}),s&&n(c,{}),!s&&(l!=null||a==null)&&n(i,{children:`Error loading departures.`}),!s&&a!=null&&a.departures.length===0&&n(i,{children:`No departures found.`}),!s&&a!=null&&a.departures.length>0&&n(o,{class:`gap-4`,children:a.departures.map(e=>n(_,{departure:e},`${e.sourceId}/${e.intrasourceId}`))})]})})}function _({departure:e}){let t=e.secondaryDestinationText==null?``:` ${e.secondaryDestinationText}`,r=e.isCancelled?` (Cancelled)`:``,a=`/service/${encodeURIComponent(e.sourceId)}/${encodeURIComponent(e.intrasourceId)}?from=${encodeURIComponent(e.movement.index.toString())}`;return n(s,{href:a,class:`p-4`,children:n(o,{class:`gap-4`,children:[n(o,{class:`gap-3`,children:[n(i,{children:[n(d,{children:e.primaryDestinationText}),t,r]}),n(i,{children:new Date(Date.parse(e.movement.time)).toLocaleString()}),e.movement.formerTime!=null&&n(i,{style:`weak-struckout`,children:new Date(Date.parse(e.movement.formerTime)).toLocaleString()})]}),n(i,{style:`small-weak`,children:[`Source: `,e.sourceId,` • ID:`,` `,e.intrasourceId]})]})})}export{h as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,s as t}from"./use-nav-exemptions-K_D5A5Dp.js";function n(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,children:e(`g`,{fill:`none`,children:[e(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),e(`path`,{fill:`currentColor`,d:`m13.414 2.808l7.778 7.778a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.829l7.778-7.778a2 2 0 0 1 2.828 0M12 4.222L4.222 12L12 19.78L19.778 12zM12.002 15a1 1 0 0 1 .117 1.993l-.117.007a1 1 0 0 1-.119-1.993zM12 8c.867 0 1.538.76 1.43 1.62l-.438 3.504a1 1 0 0 1-1.984 0L10.57 9.62A1.44 1.44 0 0 1 12 8`})]})})}function r(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,children:e(`path`,{fill:`currentColor`,d:`M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8m0-8.5a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0v-3a1 1 0 0 0-1-1m0-4a1.25 1.25 0 1 0 1.25 1.25A1.25 1.25 0 0 0 12 7.5`})})}function i(n){return e(`div`,{class:t(n.class,`flex flex-col justify-center items-stretch`),style:{height:`${n.heightRem}rem`},children:n.children})}export{r as n,n as r,i as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-VbQoAmyQ.js","assets/use-query-aKyk6jW2.js","assets/use-nav-exemptions-K_D5A5Dp.js","assets/use-static-data-Bd-JldH5.js","assets/use-foundational-data-CJfuPRzD.js","assets/Placeholder-BLK-raB4.js","assets/Markdown-5DSrRUK6.js","assets/LinkText-BO3BQABI.js","assets/Strong-Cipefot2.js","assets/Page-DCUzSHpc.js","assets/use-simple-headers-zgszX2CN.js","assets/Row-Dgd0uJoX.js","assets/Divider-DTKq8RTH.js","assets/Alert-BjESlX9K.js","assets/VerticalBleed-DXsU7qEF.js","assets/AdminControls-DUl1Ekw-.js","assets/Debug-dgWz5wjb.js","assets/Button-XyONIh2Y.js","assets/Clickable-BwARU32_.js","assets/use-environment-DCSCZZ2k.js","assets/Home-BMl9F4ZR.js","assets/Nearby-D9MN_gGw.js","assets/Service-CD939QH3.js","assets/integers-BYp6YHG5.js","assets/MingcuteHome4Line-C9WpirCC.js","assets/Settings-Ds60yPNk.js","assets/use-settings-DmVCxG2H.js","assets/Picker-CZiJZO75.js","assets/Status-Cx8LBciv.js","assets/ZenMode-BTXaHvYK.js","assets/Stop-sFriiw23.js","assets/NotFoundPage-CLuz-y7a.js","assets/foundational-data-BNBGYMsF.js","assets/Line-GAcjy1Iz.js","assets/scope-B-e4l8Dr.js","assets/use-terminology-BOv-viOC.js","assets/NotFound-cw9_c07G.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{a as e,f as t,n,r,s as i,t as a}from"./use-query-aKyk6jW2.js";import{C as o,_ as s,a as c,b as l,c as u,d,f,g as p,h as m,i as h,l as g,m as _,n as v,o as y,r as b,s as x,t as S,u as C,v as w,w as T,x as E}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as D,t as ee}from"./use-static-data-Bd-JldH5.js";import{t as O}from"./foundational-data-BNBGYMsF.js";import{i as k,n as te,o as ne,r as re,s as ie,t as A}from"./Button-XyONIh2Y.js";import{t as j}from"./Clickable-BwARU32_.js";import{t as M}from"./Row-Dgd0uJoX.js";import{n as N,t as ae}from"./use-foundational-data-CJfuPRzD.js";import{n as oe,t as se}from"./use-settings-DmVCxG2H.js";import{n as P,t as F}from"./scope-B-e4l8Dr.js";import{n as ce,r as le,t as ue}from"./VerticalBleed-DXsU7qEF.js";import{t as de}from"./MingcuteHome4Line-C9WpirCC.js";import{n as fe,r as I,t as pe}from"./use-environment-DCSCZZ2k.js";import{t as L}from"./use-terminology-BOv-viOC.js";import{t as R}from"./LinkText-BO3BQABI.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var z=T.__b;T.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),z&&z(e)};function B(e){let t,n,r=()=>e().then(e=>n=e&&e.default||e),i=e=>{let[,i]=p(0),a=_(n);if(t||=r(),n!==void 0)return o(n,e);throw a.current||=t.then(()=>i(1)),t};return i.preload=()=>(t||=r(),t),i._forwarded=!0,i}var V=T.__e;T.__e=(e,t,n)=>{if(e&&e.then){let r=t;for(;r=r.__;)if(r.__c&&r.__c.__c)return t.__e??(t.__c.__z=[n.__e],t.__e=n.__e,t.__k=n.__k),t.__k||=[],r.__c.__c(e,t)}V&&V(e,t,n)};function me(e){return this.__c=he,this.componentDidCatch=e.onError,e.children}function he(e){e.then(()=>this.forceUpdate())}var ge=`modulepreload`,_e=function(e){return`/`+e},H={},U=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=_e(t,n),t=s(t),t in H)return;H[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:ge,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function ve(e){let{Provider:t}=ee,n=m(()=>ye(document),[]);return u(t,{value:n,children:e.children})}function ye(e){function t(t){let n=e.querySelector(t);if(n==null)throw Error(`${t} tag not found.`);let r=n.getAttribute(`content`);if(r==null)throw Error(`${t} tag was empty.`);return r}return{appName:t(`meta[name="corequery-app-name"]`),frontendVersion:t(`meta[name="corequery-frontend-version"]`),versionsOnLastUpdate:{corequeryPackageVersion:t(`meta[name="corequery-package-version-on-last-update"]`),serverVersion:t(`meta[name="corequery-server-version-on-last-update"]`)}}}function W(e,t){let n=w(()=>{let n=localStorage.getItem(e);if(n==null)return null;try{return t.parse(JSON.parse(n))}catch{return null}},[e,t]),r=w(t=>{let n=JSON.stringify(t);localStorage.setItem(e,n)},[e]);return m(()=>({get:n,set:r}),[n,r])}function G(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,children:[u(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M20 9a1 1 0 0 1 1 1v1a8 8 0 0 1-8 8H9.414l.793.793a1 1 0 0 1-1.414 1.414l-2.496-2.496a1 1 0 0 1-.287-.567L6 17.991a1 1 0 0 1 .237-.638l.056-.06l2.5-2.5a1 1 0 0 1 1.414 1.414L9.414 17H13a6 6 0 0 0 6-6v-1a1 1 0 0 1 1-1m-4.793-6.207l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L14.586 7H11a6 6 0 0 0-6 6v1a1 1 0 1 1-2 0v-1a8 8 0 0 1 8-8h3.586l-.793-.793a1 1 0 0 1 1.414-1.414`})]})})}function be(e){let{appName:t}=D();return u(y,{class:`w-svw h-svh items-center justify-center`,children:u(b,{class:`gap-12`,xAlign:`center`,children:[u(b,{class:`gap-6`,xAlign:`center`,children:[u(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),u(h,{style:`title`,children:t})]}),e.error?u(b,{class:`gap-4`,xAlign:`center`,children:[u(h,{children:`Failed to load data :(`}),u(A,{text:`Retry`,icon:G,onClick:e.onRetry})]}):u(ie,{style:`large`})]})})}var xe=`corequery-foundational-data`,Se=2e3;function Ce(e){let{Provider:t}=ae,{revalidateSettings:n}=oe(),{callApi:i}=r(),a=W(xe,O.json),[o]=p(()=>a.get()),[c,l]=p(null),[d,f]=p(!1),h=w(e=>{l(e),n(e),a.set(e.toJson())},[a,n]),g=w(()=>{f(!1),we({callApi:i,cachedData:o,onDataReady:(e,t)=>{h(e),t&&a.set(e.toJson())},onFailure:()=>{f(!0)}})},[a,o,i,h]);s(()=>{g()},[g]);let _=m(()=>c==null?null:{foda:c,updateFoda:h},[c,h]);return _==null?u(be,{error:d,onRetry:g}):u(t,{value:_,children:e.children})}async function we({callApi:e,cachedData:t,onDataReady:n,onFailure:r}){if(t!=null)try{let r=await e(i,{hash:t.hash},{timeout:Se});r.result===`up-to-date`?n(t,!1):n(new O(r.foundationalData),!0)}catch(e){console.warn(`Foundational data refresh failed - using cache.`,e),n(t,!1)}else try{let t=await e(i,{hash:null});if(t.result===`up-to-date`)throw Error(`Huh?`);n(new O(t.foundationalData),!0)}catch{r()}}var K=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=t.object({version:t.literal(1),theme:t.enum([`dark`,`light`,`auto`]).optional()}).transform(t=>new e({theme:t.theme??e.default.theme}));with(t){return new e({...this,...t})}toJson(){return{version:1,theme:this.theme}}validate(e){return this}equals(e){return n(this.toJson(),e.toJson())}},Te=[`auto`,`light`,`dark`];function Ee(){window.applyTheme?.()}function De(e){let{Provider:t}=se,n=W(`corequery-settings`,K.json),[r,i]=p(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),K.default)),a=w((e,t)=>{i(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),Ee()},[n]),o=w(e=>{a(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[a]),s=m(()=>({settings:r,updateSettings:a,revalidateSettings:o}),[r,a,o]);return u(t,{value:s,children:e.children})}function Oe(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`m13.414 2.807l7.778 7.779a2 2 0 0 1 0 2.828l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.828l7.778-7.779a2 2 0 0 1 2.828 0M12.002 15a1 1 0 0 0-.119 1.993l.12.007a1 1 0 0 0 0-2ZM12 8a1.44 1.44 0 0 0-1.44 1.485l.01.135l.438 3.504a1 1 0 0 0 1.964.113l.02-.113l.438-3.504A1.44 1.44 0 0 0 12 8`})]})})}function ke(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M13.2 2.65a2 2 0 0 0-2.4 0l-7 5.25A2 2 0 0 0 3 9.5V19a2 2 0 0 0 2 2h3.9a1.1 1.1 0 0 0 1.1-1.1V15a2 2 0 1 1 4 0v4.9a1.1 1.1 0 0 0 1.1 1.1H19a2 2 0 0 0 2-2V9.5a2 2 0 0 0-.8-1.6z`})]})})}function Ae(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.195-2.293.489-2.96.815c-.335.164-.534.313-.637.422l-.021.023c.033.039.09.096.19.169c.28.207.749.435 1.418.644C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.67-.209 1.138-.437 1.418-.644c.1-.073.157-.13.19-.169l-.021-.023c-.103-.109-.302-.258-.637-.422c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.457.224.884.5 1.208.842c.33.347.603.82.603 1.399c0 .811-.524 1.4-1.034 1.777c-.53.392-1.233.702-2.01.945c-1.57.49-3.674.778-5.956.778s-4.387-.288-5.955-.778c-.778-.243-1.48-.553-2.01-.945C3.524 19.9 3 19.311 3 18.5c0-.58.273-1.052.603-1.4c.325-.342.751-.617 1.208-.84c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function je(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M12 4a3 3 0 1 0 0 6a3 3 0 0 0 0-6M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.194-2.293.489-2.96.815c-1.22.597.206 1.026.95 1.258C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.749-.234 2.17-.66.95-1.258c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.884.433 1.811 1.162 1.811 2.241c0 .811-.524 1.4-1.034 1.777C17.816 21.865 14.536 22 12 22c-2.282 0-4.387-.288-5.955-.778C4.795 20.832 3 20.062 3 18.5c0-1.08.927-1.808 1.811-2.24c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function Me(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z`})]})})}function q(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M5 10a5 5 0 1 1 10 0a5 5 0 0 1-10 0m5-7a7 7 0 1 0 4.192 12.606l5.1 5.101a1 1 0 0 0 1.415-1.414l-5.1-5.1A7 7 0 0 0 10 3`})]})})}function Ne(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M5 5a1 1 0 0 0-2 0v14a1 1 0 0 0 1 1h16a1 1 0 1 0 0-2H5zm4 7a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0zm3-6a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1m5 4a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0z`})]})})}function Pe(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v1.062a8 8 0 0 1 2.104.562l.53-.918a1 1 0 1 1 1.732 1l-.531.92c.58.44 1.098.959 1.54 1.54l.92-.532a1 1 0 1 1 1 1.732l-.92.53c.279.661.471 1.367.563 2.104H21a1 1 0 1 1 0 2h-1.062a8 8 0 0 1-.562 2.104l.918.53a1 1 0 1 1-1 1.732l-.92-.531a8 8 0 0 1-1.54 1.54l.532.92a1 1 0 1 1-1.732 1l-.53-.92a8 8 0 0 1-2.104.563V21a1 1 0 1 1-2 0v-1.062a8 8 0 0 1-2.104-.562l-.53.918a1 1 0 1 1-1.732-1l.531-.92a8 8 0 0 1-1.54-1.54l-.92.532a1 1 0 1 1-1-1.732l.92-.53A8 8 0 0 1 4.061 13H3a1 1 0 1 1 0-2h1.062a8 8 0 0 1 .562-2.104l-.918-.53a1 1 0 0 1 1-1.732l.92.531c.44-.58.959-1.098 1.54-1.54l-.532-.92a1 1 0 0 1 1.732-1l.53.92A8 8 0 0 1 11 4.061V3a1 1 0 0 1 1-1m0 11.155l-4.624 2.67a6 6 0 0 0 1.588 1.351l.073.043A6 6 0 0 0 12 18c.97 0 1.886-.23 2.697-.639l.34-.185a6 6 0 0 0 1.587-1.352zm-1-7.072a6 6 0 0 0-1.703.559l-.26.14l-.073.042a6 6 0 0 0-1.978 1.88l-.162.26l-.042.073A6 6 0 0 0 6 12c0 .63.097 1.24.278 1.81l.097.283L11 11.423zm2 0v5.34l4.625 2.67A6 6 0 0 0 18 12c0-.97-.23-1.886-.639-2.697l-.143-.266l-.032-.055l-.01-.018a6 6 0 0 0-1.88-1.978l-.333-.205a6 6 0 0 0-1.664-.64z`})]})})}function Fe(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M6.798 2.884a7.002 7.002 0 0 1 9.294 8.565l4.394 3.718a3.76 3.76 0 1 1-5.3 5.3l-3.717-4.394a7.002 7.002 0 0 1-8.565-9.295c.358-.894 1.48-1.007 2.063-.373L8.17 9.883l1.446-.288l.29-1.449l-3.48-3.198c-.634-.583-.522-1.706.373-2.064ZM8.805 4.42l2.763 2.54c.322.296.466.738.38 1.165l-.47 2.354a1.25 1.25 0 0 1-.982.981l-2.35.467a1.25 1.25 0 0 1-1.164-.38L4.438 8.785a5.002 5.002 0 0 0 6.804 5.25a1.26 1.26 0 0 1 1.422.355l4.05 4.786a1.76 1.76 0 1 0 2.48-2.48l-4.785-4.05a1.26 1.26 0 0 1-.355-1.422a5 5 0 0 0-5.25-6.804Z`})]})})}function Ie(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M16 19a1 1 0 0 1 .117 1.993L16 21H8a1 1 0 0 1-.117-1.993L8 19zm4-15a2 2 0 0 1 1.995 1.85L22 6v10a2 2 0 0 1-1.85 1.995L20 18H4a2 2 0 0 1-1.995-1.85L2 16V6a2 2 0 0 1 1.85-1.995L4 4zm0 2H4v10h16z`})]})})}function J(){return[{name:`Home`,href:`/`,regularIcon:de,activeIcon:ke,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:le,activeIcon:Oe,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:je,activeIcon:Ae,isActive:e=>e===`/nearby`},{name:`Search`,icon:q,opensSearchDrawer:!0},{name:`More`,icon:Me,opensMoreDrawer:!0}]}function Le(){let{appName:e}=D();return[{name:`About ${e}`,href:`/about`,icon:ce},{name:`Settings`,href:`/settings`,icon:Pe},{name:`Developer info`,href:`/debug`,icon:Ne},{name:`Admin controls`,href:`/admin`,icon:Fe},{name:`Zen mode`,href:`/zen`,icon:Ie}]}function Re(e){let{isUpdateAvailable:t,update:n}=I(),[r,i]=p(!1);return s(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?u(ne,{rounded:!1,onClick:()=>void n(),children:u(v,{children:u(te,{icon:G,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Y(e,t){let[n,r]=p(!1);return s(()=>{if(!e){r(!1);return}let n=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(n)}},[e,t]),n}function ze(e){let t=Le(),n=Y(!e.open,300);return u(`div`,{class:x(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"not-desktop:translate-y-4":!e.open,"desktop:-translate-y-4":!e.open}),children:[u(`div`,{class:`z-0 absolute top-0 bottom-0 left-0 right-0 bg-bg-raised desktop:border-b not-desktop:border-t border-soft-border opacity-97`}),u(b,{class:`relative z-1 desktop:flex-col-reverse`,children:[u(v,{children:u(b,{class:`py-2`,children:t.map(t=>u(A,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),u(Re,{menuFullyClosed:n})]})]})}function Be(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M12 2a9 9 0 0 1 9 9c0 3.074-1.676 5.59-3.442 7.395a20.4 20.4 0 0 1-2.876 2.416l-.426.29l-.2.133l-.377.24l-.336.205l-.416.242a1.87 1.87 0 0 1-1.854 0l-.416-.242l-.52-.32l-.192-.125l-.41-.273a20.6 20.6 0 0 1-3.093-2.566C4.676 16.589 3 14.074 3 11a9 9 0 0 1 9-9m0 2a7 7 0 0 0-7 7c0 2.322 1.272 4.36 2.871 5.996a18 18 0 0 0 2.222 1.91l.458.326q.222.155.427.288l.39.25l.343.209l.289.169l.455-.269l.367-.23q.293-.186.627-.417l.458-.326a18 18 0 0 0 2.222-1.91C17.728 15.361 19 13.322 19 11a7 7 0 0 0-7-7m0 3a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4`})]})})}function Ve(e){return u(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:u(`g`,{fill:`none`,fillRule:`evenodd`,children:[u(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),u(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v5.126a4.002 4.002 0 0 1 0 7.748V21a1 1 0 1 1-2 0v-5.126a4.002 4.002 0 0 1 0-7.748V3a1 1 0 0 1 1-1m0 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4`})]})})}function X(e){let t=e.withLinks??!1;return u(h,{class:x(e.class),style:e.style,children:u(He,{lineIds:e.lineIds,withLinks:t})})}function He({lineIds:e,withLinks:t}){let{foda:n}=N();if(e.length===0)return{line:`No lines`,route:`No routes`}[n.terminology.line];let r=u(Ue,{lineIds:e,withLinks:t});return{line:u(E,{children:[r,` `,e.length===1?`Line`:`lines`]}),route:u(E,{children:[e.length===1?`Route`:`Routes`,` `,r]})}[n.terminology.line]}function Ue({lineIds:e,withLinks:t}){let{foda:n}=N(),r=m(()=>e.map(e=>We(e,n)).sort((e,t)=>e.name.localeCompare(t.name)),[e,n]);return r.length===1?u(Z,{data:F(r[0]),withLink:t}):r.length===2?u(E,{children:[u(Z,{data:F(r[0]),withLink:t}),` and`,` `,u(Z,{data:F(r[1]),withLink:t})]}):u(E,{children:[r.slice(0,-1).map((e,n)=>u(E,{children:[u(Z,{data:F(e),withLink:t},n),`,`,` `]})),` and `,u(Z,{data:F(r[r.length-1]),withLink:t})]})}function Z({data:e,withLink:t}){return t?u(R,{href:e.href,style:`strong-subtle`,colorOverride:e.color,children:e.name}):u(E,{children:e.name})}function We(e,t){let n=t.lines.require(e);return{name:n.name,href:`/line/${n.urlPath}`,color:n.color}}function Ge(){let{foda:e}=N(),{formatStop:t,formatLine:n,pluralStopsTerm:r,pluralLinesTerm:i}=L();return{candidates:m(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{title:t(e.name),description:u(X,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:`/stop/${e.urlPath}`,icon:Be}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{title:n(e.name),description:null,url:`/line/${e.urlPath}`,icon:Ve}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:m(()=>`Search ${r}, ${i}, etc.`,[i,r])}}var Ke={regular:`text-fg text-md outline-none border-none placeholder:text-fg-weak`,search:`text-fg-strong text-xl desktop:text-md font-bold outline-none border-none placeholder:text-fg-weak placeholder:font-normal`};function qe(e){let t=Ke[e.style??`regular`];return u(Je,{onSubmit:e.onSubmit,children:u(`input`,{class:x(e.class,t),value:e.value,onInput:t=>{t.target==null||!(`value`in t.target)||typeof t.target.value!=`string`||e.onChange(t.target.value)},placeholder:e.placeholder,ref:e.inputRef,autoComplete:`off`,type:e.search??!1?`search`:`text`})})}function Je(e){return e.onSubmit==null?e.children:u(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var Ye=class{_query;_candidates;_maxResults;_results;_candidatesNotRequiringExactMatch;constructor(e,t,n){this._query=e,this._candidates=t,this._maxResults=n,this._results=new Map,this._candidatesNotRequiringExactMatch=t.filter(e=>!(e.requiresExactMatch??!1))}getResults(){return Array.from(this._results.values()).slice(0,this._maxResults)}appendResults(e,{passCandidatesRequiringExactMatch:t=!1}={}){if(this._results.size>=this._maxResults)return;let n=t?this._candidates:this._candidatesNotRequiringExactMatch,r=e(this._query,n);for(let e of r)this._results.has(e.id)||this._results.set(e.id,e.data)}};function Xe(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Ze(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Qe(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function $e(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.startsWith(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(P).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function et(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.includes(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(P).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function tt(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new Ye(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(Xe,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Ze),i.appendResults(Qe),i.appendResults($e),i.appendResults(et),i.getResults()}function nt(e){return u(re,{href:e.href,onHrefClick:e.onHrefClick,class:x(e.class),children:u(M,{class:x(e.class,`gap-2 min-w-0 py-3 px-3 min-h-10`),yAlign:`center`,children:[u(ue,{heightRem:c(`text-md`),children:u(e.icon,{class:`text-fg text-icon-lg`})}),u(b,{class:`gap-2 shrink`,children:[u(h,{style:`strong`,children:e.title}),e.description]})]})})}function rt(e){let[t,n]=p(``),{candidates:r,placeholder:i}=Ge(),{route:a}=f(),o=m(()=>tt(t,r,{maxResults:5}),[t,r]),c=Y(!e.open,300);s(()=>{c&&n(``)},[c]);let l=_(null),d=Y(e.open,100);s(()=>{d&&l.current?.focus()},[d]);function g(){o.length>0&&(a(F(o[0]).url),e.onClose())}return u(`div`,{class:x(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[u(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),u(v,{class:`relative z-1`,children:u(b,{children:[u(y,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[u(qe,{style:`search`,value:t,onChange:n,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:i,inputRef:l,onSubmit:g,search:!0}),u(q,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),u(b,{class:`max-h-[calc(100vh-12rem)] py-2 overflow-y-scroll`,children:[o.length===0&&u(y,{class:`h-32 items-center`,children:u(h,{class:`px-4`,style:`weak`,children:t.length===0?`Results will appear here.`:`No results.`})}),o.map(t=>u(nt,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function it(e){let t=e.active??!1;return u(j,{class:x(e.class,`group`),onClick:e.onClick,href:e.href,children:u(b,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[u(y,{class:x(`px-3 py-1 rounded-full relative`,{"bg-soft-accent":t,"group-hover:bg-soft":!t,"group-active:bg-soft-active":!t}),children:[(e.showBadge??!1)&&u(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?u(e.activeIcon,{class:`text-accent-text text-icon-xl`}):u(e.regularIcon,{class:`text-fg text-icon-xl`})]}),u(h,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function at(e){let{url:t}=f(),n=J(),{isUpdateAvailable:r}=I();return u(y,{class:x(e.class,`h-18 bg-bg-navbar grid-cols-[repeat(auto-fit,minmax(0,1fr))] border-t border-soft-border px-2`),children:n.map(n=>u(it,{text:n.name,regularIcon:`icon`in n?n.icon:n.regularIcon,activeIcon:`icon`in n?n.icon:n.activeIcon,active:`isActive`in n&&n.isActive(t),href:`href`in n?n.href:void 0,onClick:n.opensMoreDrawer?e.onOpenMoreDrawerRequest:n.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:r&&n.opensMoreDrawer},n.name))})}function ot(e){let t=e.active??!1;return u(y,{class:x(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:u(k,{class:e.class,onClick:e.onClick,href:e.href,children:u(M,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[u(y,{class:`relative`,children:[(e.showBadge??!1)&&u(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?u(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):u(e.regularIcon,{class:`text-fg text-icon-lg`})]}),u(y,{class:`relative`,children:[u(h,{class:x(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),u(h,{class:x({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function st(e){return u(`img`,{class:x(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function ct(e){let{appName:t}=D(),{url:n}=f(),r=J(),{isUpdateAvailable:i}=I();return u(v,{class:x(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:u(M,{class:`gap-2`,children:[u(k,{class:`self-center`,href:`/`,children:u(M,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[u(st,{class:`text-icon-md`}),u(h,{style:`wordmark`,children:t})]})}),u(M,{children:r.map(t=>u(ot,{text:t.name,regularIcon:`icon`in t?t.icon:t.regularIcon,activeIcon:`icon`in t?t.icon:t.activeIcon,active:`isActive`in t&&t.isActive(n),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:i&&t.opensMoreDrawer},t.name))})]})})}function lt(e){let{showMobileNav:t,showDesktopNav:n}=S(),{url:r}=f(),[i,a]=p(!1),[o,c]=p(!1);function l(){c(!1),a(e=>!e)}function d(){a(!1),c(e=>!e)}function m(){a(!1),c(!1)}return s(()=>{a(!1),c(!1)},[r]),u(y,{class:x(e.class,`fixed top-0 bottom-0 left-0 right-0 desktop:grid-rows-[auto_1fr] not-desktop:grid-rows-[1fr_auto]`,{"pointer-events-none":!i&&!o}),children:[u(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&u(at,{onOpenMoreDrawerRequest:l,onOpenSearchDrawerRequest:d})}),u(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&u(ct,{onOpenMoreDrawerRequest:l,onOpenSearchDrawerRequest:d})}),u(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[u(`div`,{class:x(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!i}),children:u(ze,{open:i,onClose:m})}),u(`div`,{class:x(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!o}),children:u(rt,{open:o,onClose:m})}),u(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:m})]})]})}function ut(e){return u(`div`,{class:e.class,children:[u(`div`,{class:`relative z-0`,children:e.children}),u(`div`,{class:`relative z-1`,children:u(lt,{})})]})}var dt=`false`,ft=`false`,Q=dt===`true`,pt=ft===`true`;function mt(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,Q||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await U(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-Bd17z0YL.js`);return{Workbox:e}},[]).then(({Workbox:e})=>new e(`/sw.js`,{scope:`/`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!pt){if(Q)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}}c.register({immediate:t}).then(e=>{o?o(`/sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function ht(e){let{Provider:t}=fe,[n,r]=p(!1),[i,a]=p(!1),o=m(()=>mt({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>r(!0),onOfflineReady:()=>a(!0)}),[]),s=w(async()=>{try{let e=await navigator.serviceWorker.getRegistrations();for(let t of e)await t.unregister()}catch(e){console.warn(`Failed to unregister service worker:`,e)}},[]),c=m(()=>({isUpdateAvailable:n,isOfflineReady:i,update:o,unregister:s}),[n,i,o,s]);return u(t,{value:c,children:e.children})}function gt(t){let{isHotReloadingEnabled:n}=pe(),{frontendVersion:r,versionsOnLastUpdate:i}=D(),{unregister:o}=I(),{data:c,loading:l,error:u}=a(e,{frontendVersion:r,corequeryPackageVersion:i.corequeryPackageVersion}),d=!n&&!l&&u==null&&c!=null&&c.isForceUpdateOfServiceWorkerRequired;return s(()=>{async function e(){d&&(await o(),window.location.reload())}e()},[d,o]),t.children}var _t=B(()=>U(()=>import(`./About-VbQoAmyQ.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),vt=B(()=>U(()=>import(`./AdminControls-DUl1Ekw-.js`),__vite__mapDeps([15,2,9,10,11]))),yt=B(()=>U(()=>import(`./Debug-dgWz5wjb.js`),__vite__mapDeps([16,1,2,3,17,18,11,4,14,19,5,9,10,12,13]))),bt=B(()=>U(()=>import(`./Home-BMl9F4ZR.js`),__vite__mapDeps([20,2,4,6,7,8,9,10,11]))),xt=B(()=>U(()=>import(`./Nearby-D9MN_gGw.js`),__vite__mapDeps([21,2,9]))),St=B(()=>U(()=>import(`./Service-CD939QH3.js`),__vite__mapDeps([22,1,2,17,18,11,4,23,24,8,9,10]))),Ct=B(()=>U(()=>import(`./Settings-Ds60yPNk.js`),__vite__mapDeps([25,2,26,9,10,11,12,27,18]))),wt=B(()=>U(()=>import(`./Status-Cx8LBciv.js`),__vite__mapDeps([28,2,9,10,11]))),Tt=B(()=>U(()=>import(`./ZenMode-BTXaHvYK.js`),__vite__mapDeps([29,2,8,9,10,11]))),$=B(()=>U(()=>import(`./Stop-sFriiw23.js`),__vite__mapDeps([30,1,2,17,18,11,4,8,9,10,31,3,32,24,19]))),Et=B(()=>U(()=>import(`./Line-GAcjy1Iz.js`),__vite__mapDeps([33,1,2,3,4,26,34,23,35,7,9,10,11,13,14,31,32,17,18,24,19,27]))),Dt=B(()=>U(()=>import(`./NotFound-cw9_c07G.js`),__vite__mapDeps([36,2,31,1,3,32,17,18,11,4,24,19,9])));function Ot(){return u(ht,{children:u(ve,{children:u(gt,{children:u(De,{children:u(Ce,{children:u(g,{children:u(ut,{children:u(me,{children:u(d,{children:[u(C,{path:`/`,component:bt}),u(C,{path:`/about`,component:_t}),u(C,{path:`/admin`,component:vt}),u(C,{path:`/debug`,component:yt}),u(C,{path:`/line/:id`,component:Et}),u(C,{path:`/nearby`,component:xt}),u(C,{path:`/service/:sourceId/:intrasourceId`,component:St}),u(C,{path:`/settings`,component:Ct}),u(C,{path:`/status`,component:wt}),u(C,{path:`/stop/:id`,component:$}),u(C,{path:`/zen`,component:Tt}),u(C,{default:!0,component:Dt})]})})})})})})})})})}l(u(Ot,{}),document.body);export{Te as n,G as r,X as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", system-ui, sans-serif;--spacing:.25rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-icon-md:1rem;--text-icon-lg:1.25rem;--text-icon-xl:1.5rem;--font-weight-normal:400;--font-weight-bold:700;--radius-sm:.25rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-accent:#1773cf;--color-accent-hover:#1a80e6;--color-accent-active:#1466b8;--color-accent-text:#06c;--color-soft-accent:#1773cf26;--color-on-accent:#fff;--color-soft:#001e5a1f;--color-soft-hover:#001f5e14;--color-soft-active:#001d5629;--color-soft-border:#001b5233;--color-soft-border-disabled:#001e5a1f;--color-placeholder:#0018474d;--color-error:#a11212;--color-error-hover:#b81414;--color-error-active:#8a0f0f;--color-error-text:#b30000;--color-soft-error:#b3000026;--color-on-error:#fff;--color-warning:#b88114;--color-warning-hover:#cf9117;--color-warning-active:#a17112;--color-warning-text:#b37700;--color-soft-warning:#e6990033;--color-on-warning:#fff;--color-success:#1f7a2e;--color-success-hover:#248f36;--color-success-active:#196626;--color-success-text:#1f7a2e;--color-soft-success:#00991926;--color-on-success:#fff;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}*{flex-shrink:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:0}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.z-0{z-index:0}.z-1{z-index:1}.col-1{grid-column:1}.col-2{grid-column:2}.col-3{grid-column:3}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-span-full{grid-row:1/-1}.container{width:100%}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.-mt-\[0\.38em\]{margin-top:-.38em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.-mb-\[0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-12{width:calc(var(--spacing) * 12)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[30\%\]{width:30%}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[60\%\]{width:60%}.w-\[80\%\]{width:80%}.w-full{width:100%}.w-svw{width:100svw}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-min{min-width:min-content}.shrink{flex-shrink:1}.-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_auto_auto\]{grid-template-columns:auto auto auto}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-accent{border-color:var(--color-accent)}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.border-b-soft-border{border-bottom-color:var(--color-soft-border)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-transparent{background-color:#0000}.bg-warning-text{background-color:var(--color-warning-text)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pl-12{padding-left:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-icon-lg{font-size:var(--text-icon-lg)}.text-icon-md{font-size:var(--text-icon-md)}.text-icon-xl{font-size:var(--text-icon-xl)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-97{opacity:.97}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-on-accent\)\]{--color-fg-strong:var(--color-on-accent)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-on-accent\)\]{--color-fg-weak:var(--color-on-accent)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-on-accent\)\]{--color-fg:var(--color-on-accent)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (width>=48rem){.not-desktop\:bottom-0{bottom:0}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media (hover:hover){.group-hover\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-hover\:bg-soft-hover:is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-accent-active:is(:where(.group):active *){background-color:var(--color-accent-active)}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.placeholder\:font-normal::placeholder{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.placeholder\:text-fg-weak::placeholder{color:var(--color-fg-weak)}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media (width>=48rem){.desktop\:top-0{top:0}.desktop\:row-2{grid-row:2}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pl-11{padding-left:calc(var(--spacing) * 11)}.desktop\:text-icon-lg{font-size:var(--text-icon-lg)}.desktop\:text-md{font-size:var(--text-md)}}@media (width>=64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}body{background-color:var(--color-bg-navbar);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body.light,body.light dialog{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){body:not(.light),body:not(.light) dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}}body.dark,body.dark dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e){return e!=null}function t(e){if(e==null)throw Error(`Expected non-null value.`);return e}export{e as n,t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as t}from"./use-foundational-data-CJfuPRzD.js";var n={stop:e=>e,station:e=>`${e} Station`},r={line:e=>`${e} Line`,route:e=>`Route ${e}`},i={stop:`stops`,station:`stations`},a={line:`lines`,route:`routes`};function o(){let{foda:o}=t();return e(()=>({formatStop:n[o.terminology.stop],formatLine:r[o.terminology.line],pluralStopsTerm:i[o.terminology.stop],pluralLinesTerm:a[o.terminology.line]}),[o.terminology])}export{o as t};
|
package/web/dist/index.html
CHANGED
|
@@ -15,21 +15,23 @@
|
|
|
15
15
|
<link rel="mask-icon" href="/favicon.svg" color="#FFFFFF" />
|
|
16
16
|
<meta name="theme-color" content="#242933" />
|
|
17
17
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
18
|
-
<script type="module" crossorigin src="/assets/index-
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-BOsLvNEK.js"></script>
|
|
19
19
|
<link rel="modulepreload" crossorigin href="/assets/use-nav-exemptions-K_D5A5Dp.js">
|
|
20
20
|
<link rel="modulepreload" crossorigin href="/assets/use-query-aKyk6jW2.js">
|
|
21
21
|
<link rel="modulepreload" crossorigin href="/assets/use-static-data-Bd-JldH5.js">
|
|
22
22
|
<link rel="modulepreload" crossorigin href="/assets/foundational-data-BNBGYMsF.js">
|
|
23
23
|
<link rel="modulepreload" crossorigin href="/assets/Clickable-BwARU32_.js">
|
|
24
24
|
<link rel="modulepreload" crossorigin href="/assets/Row-Dgd0uJoX.js">
|
|
25
|
-
<link rel="modulepreload" crossorigin href="/assets/Button-
|
|
25
|
+
<link rel="modulepreload" crossorigin href="/assets/Button-XyONIh2Y.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/use-foundational-data-CJfuPRzD.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="/assets/use-settings-DmVCxG2H.js">
|
|
28
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
29
|
-
<link rel="modulepreload" crossorigin href="/assets/
|
|
28
|
+
<link rel="modulepreload" crossorigin href="/assets/scope-B-e4l8Dr.js">
|
|
29
|
+
<link rel="modulepreload" crossorigin href="/assets/VerticalBleed-DXsU7qEF.js">
|
|
30
30
|
<link rel="modulepreload" crossorigin href="/assets/MingcuteHome4Line-C9WpirCC.js">
|
|
31
31
|
<link rel="modulepreload" crossorigin href="/assets/use-environment-DCSCZZ2k.js">
|
|
32
|
-
<link rel="
|
|
32
|
+
<link rel="modulepreload" crossorigin href="/assets/use-terminology-BOv-viOC.js">
|
|
33
|
+
<link rel="modulepreload" crossorigin href="/assets/LinkText-BO3BQABI.js">
|
|
34
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CpWS5La_.css">
|
|
33
35
|
<link rel="manifest" href="/manifest.webmanifest"></head>
|
|
34
36
|
<body>
|
|
35
37
|
<script>
|
package/web/dist/sw.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
if(!self.define){let s,e={};const l=(l,
|
|
1
|
+
if(!self.define){let s,e={};const l=(l,i)=>(l=new URL(l+".js",i).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(i,n)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>l(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(i.map(s=>a[s]||o(s))).then(s=>(n(...s),u))}}define(["./workbox-2fbc6a65"],function(s){"use strict";self.addEventListener("message",s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()}),s.precacheAndRoute([{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"mona-sans.woff2",revision:"b96cc834af467cf02885a067356abae7"},{url:"index.html",revision:"fc40fc68d53fdff7d0c5a5b42074b2c2"},{url:"favicon.svg",revision:"570c2a249bbd511b386a843cd96545e7"},{url:"apple-touch-icon.png",revision:"d5d6ea39bc40ffd5b045b9593da0c890"},{url:"assets/workbox-window.prod.es5-Bd17z0YL.js",revision:null},{url:"assets/use-terminology-BOv-viOC.js",revision:null},{url:"assets/use-static-data-Bd-JldH5.js",revision:null},{url:"assets/use-simple-headers-zgszX2CN.js",revision:null},{url:"assets/use-settings-DmVCxG2H.js",revision:null},{url:"assets/use-query-aKyk6jW2.js",revision:null},{url:"assets/use-nav-exemptions-K_D5A5Dp.js",revision:null},{url:"assets/use-foundational-data-CJfuPRzD.js",revision:null},{url:"assets/use-environment-DCSCZZ2k.js",revision:null},{url:"assets/scope-B-e4l8Dr.js",revision:null},{url:"assets/integers-BYp6YHG5.js",revision:null},{url:"assets/index-CpWS5La_.css",revision:null},{url:"assets/index-BOsLvNEK.js",revision:null},{url:"assets/foundational-data-BNBGYMsF.js",revision:null},{url:"assets/ZenMode-BTXaHvYK.js",revision:null},{url:"assets/VerticalBleed-DXsU7qEF.js",revision:null},{url:"assets/Strong-Cipefot2.js",revision:null},{url:"assets/Stop-sFriiw23.js",revision:null},{url:"assets/Status-Cx8LBciv.js",revision:null},{url:"assets/Settings-Ds60yPNk.js",revision:null},{url:"assets/Service-CD939QH3.js",revision:null},{url:"assets/Row-Dgd0uJoX.js",revision:null},{url:"assets/Placeholder-BLK-raB4.js",revision:null},{url:"assets/Picker-CZiJZO75.js",revision:null},{url:"assets/Page-DCUzSHpc.js",revision:null},{url:"assets/NotFoundPage-CLuz-y7a.js",revision:null},{url:"assets/NotFound-cw9_c07G.js",revision:null},{url:"assets/Nearby-D9MN_gGw.js",revision:null},{url:"assets/MingcuteHome4Line-C9WpirCC.js",revision:null},{url:"assets/Markdown-5DSrRUK6.js",revision:null},{url:"assets/LinkText-BO3BQABI.js",revision:null},{url:"assets/Line-GAcjy1Iz.js",revision:null},{url:"assets/Home-BMl9F4ZR.js",revision:null},{url:"assets/Divider-DTKq8RTH.js",revision:null},{url:"assets/Debug-dgWz5wjb.js",revision:null},{url:"assets/Clickable-BwARU32_.js",revision:null},{url:"assets/Button-XyONIh2Y.js",revision:null},{url:"assets/Alert-BjESlX9K.js",revision:null},{url:"assets/AdminControls-DUl1Ekw-.js",revision:null},{url:"assets/About-VbQoAmyQ.js",revision:null},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"manifest.webmanifest",revision:"a39f5f893f233a6eed74e0ab828a668b"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/reset\/?$/]}))});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
type ServiceConnectionType = "entire-vehicle-forms-service" | "other";
|
|
2
|
-
type ServiceConnectionDirection = "from-other" | "to-other" | "bidirectional";
|
|
3
|
-
type ServiceConnectionFields = {
|
|
4
|
-
readonly type: ServiceConnectionType;
|
|
5
|
-
readonly direction: ServiceConnectionDirection;
|
|
6
|
-
readonly otherServiceSourceId: string;
|
|
7
|
-
readonly otherServiceIntrasourceId: string;
|
|
8
|
-
readonly movementIndex: number;
|
|
9
|
-
readonly otherServiceMovementIndex: number;
|
|
10
|
-
};
|
|
11
|
-
export declare class ServiceConnection {
|
|
12
|
-
readonly type: ServiceConnectionType;
|
|
13
|
-
readonly direction: ServiceConnectionDirection;
|
|
14
|
-
readonly otherServiceSourceId: string;
|
|
15
|
-
readonly otherServiceIntrasourceId: string;
|
|
16
|
-
readonly movementIndex: number;
|
|
17
|
-
readonly otherServiceMovementIndex: number;
|
|
18
|
-
constructor(fields: ServiceConnectionFields);
|
|
19
|
-
with(fields: Partial<ServiceConnectionFields>): ServiceConnection;
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"service-connection.js","sourceRoot":"","sources":["../../../../data/service/service-connection.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,iBAAiB;IACnB,IAAI,CAAwB;IAC5B,SAAS,CAA6B;IAE/C,6EAA6E;IAC7E,8EAA8E;IAC9E,8EAA8E;IAC9E,kBAAkB;IACT,oBAAoB,CAAS;IAC7B,yBAAyB,CAAS;IAElC,aAAa,CAAS;IACtB,yBAAyB,CAAS;IAE3C,YAAY,MAA+B;QACzC,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QAClC,IAAI,CAAC,oBAAoB,GAAG,MAAM,CAAC,oBAAoB,CAAC;QACxD,IAAI,CAAC,yBAAyB,GAAG,MAAM,CAAC,yBAAyB,CAAC;QAElE,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;QAC1C,IAAI,CAAC,yBAAyB,GAAG,MAAM,CAAC,yBAAyB,CAAC;IACpE,CAAC;IAED,IAAI,CAAC,MAAwC;QAC3C,OAAO,IAAI,iBAAiB,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC;IACvD,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,c as t,o as n,s as r}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as i,t as a}from"./UilInfoCircle-CcwPr9DT.js";function o(e){return t(`div`,{class:r(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function s(e){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:t(`g`,{fill:`none`,children:[t(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),t(`path`,{fill:`currentColor`,d:`m13.299 3.148l8.634 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25l8.634-14.954c.577-1 2.02-1 2.598 0M12 4.898L4.232 18.352h15.536zM12 15a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-7a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1`})]})})}function c(e){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:t(`g`,{fill:`none`,fillRule:`evenodd`,children:[t(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),t(`path`,{fill:`currentColor`,d:`M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z`})]})})}function l(l){let u={info:a,error:i,warning:s,success:c}[l.type],d=l.icon===void 0?u:l.icon,f={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[l.type],p={info:[`[--color-fg:var(--color-accent-text)]`,`[--color-fg-strong:var(--color-accent-text)]`,`[--color-fg-weak:var(--color-accent-text)]`],error:[`[--color-fg:var(--color-error-text)]`,`[--color-fg-strong:var(--color-error-text)]`,`[--color-fg-weak:var(--color-error-text)]`],warning:[`[--color-fg:var(--color-warning-text)]`,`[--color-fg-strong:var(--color-warning-text)]`,`[--color-fg-weak:var(--color-warning-text)]`],success:[`[--color-fg:var(--color-success-text)]`,`[--color-fg-strong:var(--color-success-text)]`,`[--color-fg-weak:var(--color-success-text)]`]}[l.type];return t(n,{class:r(l.class,f,p,`px-4 py-4.5 rounded-sm gap-2 items-start`,{"grid-cols-[auto_1fr]":d!=null}),children:[d!=null&&t(o,{heightRem:e(`text-md`),children:t(d,{class:`text-fg text-icon-lg`})}),l.children]})}export{s as n,o as r,l as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as e,t}from"./use-query-aKyk6jW2.js";import{S as n,a as r,c as i,i as a,o,r as s,s as c,y as l}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as u}from"./use-static-data-Bd-JldH5.js";import{o as d,t as f}from"./Button-De9ROUCb.js";import{t as p}from"./Row-Dgd0uJoX.js";import{n as m}from"./use-foundational-data-CJfuPRzD.js";import{r as h,t as g}from"./use-environment-DCSCZZ2k.js";import{n as _}from"./index-BB7R-RFu.js";import{t as v}from"./Placeholder-BLK-raB4.js";import{t as y}from"./Page-DCUzSHpc.js";import{t as b}from"./use-simple-headers-zgszX2CN.js";import{t as x}from"./Divider-DTKq8RTH.js";import{r as S,t as C}from"./Alert-BihvmTP7.js";var w=n(null);function T(){let e=l(w);if(e==null)throw Error(`Foundational data unavailable outside provider.`);return e}function E(e){let t={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[e.type],n={info:`[--color-fg:var(--color-accent-text)]`,error:`[--color-fg:var(--color-error-text)]`,warning:`[--color-fg:var(--color-warning-text)]`,success:`[--color-fg:var(--color-success-text)]`}[e.type];return i(o,{class:c(e.class,t,n,`px-2 py-1.5 rounded-full`),children:i(a,{style:`small`,children:e.text})})}function D(e){return i(p,{class:c(e.class,`gap-x-2 gap-y-3`),wrap:!0,children:[i(a,{style:`strong`,children:e.header}),e.loading&&i(v,{class:`w-[20%] text-md`}),!e.loading&&e.pillContent!=null&&i(S,{heightRem:r(`text-md`),children:i(E,{type:e.pillContent.type,text:e.pillContent.text})})]})}function O(e){return i(D,{class:e.class,header:e.header,pillContent:k(e.currentValue,e.latestValue),loading:e.loading})}function k(e,t){return t==null?null:{text:e===t?`Up to date`:`Outdated`,type:e===t?`success`:`error`}}function A(e){return e.loading?i(o,{class:e.class,children:i(v,{class:`w-[40%] text-md`})}):e.value==null?null:i(a,{class:e.class,children:[e.prefix,`: `,e.value]})}function j(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function M(e){let{isUpdateAvailable:t,update:n}=h();return t?i(f,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:_,onClick:()=>void n()}):i(p,{class:c(e.class,`gap-2`),children:[i(S,{heightRem:r(`text-md`),children:i(d,{})}),i(a,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function N(e){let{isHotReloadingEnabled:t}=g();return i(t?P:F,{...e})}function P(e){let{data:t,loading:n}=T();return i(s,{class:c(e.class,`gap-6`),children:[i(D,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),i(a,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),i(I,{}),i(A,{prefix:`Latest version`,value:t?.frontendVersion.slice(0,8)??null,loading:n})]})}function F(e){let{frontendVersion:t}=u(),{data:n,loading:r}=T(),a=!r&&n!=null&&n?.frontendVersion!==t;return i(s,{class:c(e.class,`gap-8`),children:i(s,{class:`gap-6`,children:[i(O,{header:`App version`,currentValue:t,latestValue:n?.frontendVersion??null,loading:r}),i(I,{}),i(A,{prefix:`Latest version`,value:j(n?.frontendVersion),loading:r}),a&&i(M,{})]})})}function I(){let{frontendVersion:e,versionsOnLastUpdate:t}=u();return i(s,{class:`gap-4`,children:[i(a,{children:[`Current version: `,j(e)]}),i(s,{class:`gap-3`,children:[i(a,{style:`small-weak`,children:[`Server version: `,j(t.serverVersion)]}),i(a,{style:`small-weak`,children:[`CoreQuery version: `,t.corequeryPackageVersion]})]})]})}function L(n){let r=t(e,{});return i(w.Provider,{value:r,children:n.children})}function R(e){let{data:t,loading:n}=T(),{foda:r}=m();return i(s,{class:c(e.class,`gap-6`),children:[i(O,{header:`Foundational data`,currentValue:r.hash,latestValue:t?.foundationalDataHash??null,loading:n}),i(s,{class:`gap-4`,children:[i(a,{children:[`Current version: `,j(r.hash)]}),i(a,{style:`small-weak`,children:[`Server version: `,j(r.serverVersion)]})]}),i(A,{prefix:`Latest version`,value:j(t?.foundationalDataHash),loading:n})]})}function z(e){let{data:t,loading:n}=T();return i(s,{class:c(e.class,`gap-8`),children:i(s,{class:`gap-6`,children:[i(a,{style:`strong`,children:`Server`}),i(B,{}),i(s,{class:`gap-4`,children:[i(A,{prefix:`Server version`,value:j(t?.serverVersion),loading:n}),i(A,{prefix:`CoreQuery version`,value:t?.corequeryPackageVersion??null,loading:n})]})]})})}function B(){let{error:e}=T();return e==null?null:i(C,{type:`error`,children:i(a,{children:`Unable to fetch the latest version info from the server.`})})}function V(){return i(y,{...b({title:`Developer info`}),children:i(L,{children:i(s,{class:`px-4 py-8 gap-8`,children:[i(H,{}),i(N,{}),i(x,{}),i(R,{}),i(x,{}),i(z,{}),i(x,{})]})})})}function H(){let{error:e}=T();return e==null?null:i(C,{type:`error`,children:i(a,{children:`Unable to fetch the latest version info from the server.`})})}export{V as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{l as e}from"./use-query-aKyk6jW2.js";import{_ as t,c as n,g as r,h as i,i as a,m as o,o as s,p as c,r as l,s as u,v as d}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as f}from"./use-static-data-Bd-JldH5.js";import{n as p}from"./use-foundational-data-CJfuPRzD.js";import{n as m}from"./use-settings-DmVCxG2H.js";import{n as h,t as g}from"./use-terminology-DvNuNrme.js";import{n as ee}from"./integers-BYp6YHG5.js";import{t as _}from"./LinkText-BkJDt2va.js";import{t as v}from"./Page-DCUzSHpc.js";import{t as y}from"./use-simple-headers-zgszX2CN.js";import{n as te,t as b}from"./Alert-BihvmTP7.js";import{t as x}from"./NotFoundPage-DsNHDLan.js";import{t as S}from"./Picker-CZiJZO75.js";function C(e){throw Error(`Unexpected value: ${String(e)}`)}function w(e){let{foda:t}=p(),{appName:r}=f(),o=i(()=>e.fallbackStopList.map(e=>t.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[t.stops,e.fallbackStopList]);return n(l,{class:u(e.class,`gap-6`),children:[n(a,{style:`subtitle`,children:`Stops`}),n(b,{type:`info`,children:n(l,{class:`gap-6`,children:[n(a,{children:[`A neat little diagram is also available for this line, but it's of a new type, and so requires a newer version of `,r,` to be able to view.`,` `]}),n(a,{style:`strong`,children:n(_,{href:`/debug`,children:`Help me update`})})]})}),n(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:o.map(e=>n(a,{children:n(`li`,{children:n(_,{href:`/stop/${e.urlPath}`,children:e.name})})}))})]})}var T=class{_canvasContainer;_canvas;ctx;_resizeListener;_resizeObserver;_data;_width;_height;_dpiRatio;_dirty;_running;constructor(e,t){this._canvasContainer=e,this._canvas=t;let n=this._canvas.getContext(`2d`);if(n==null)throw Error(`Failed to get 2D rendering context.`);this.ctx=n,this._resizeListener=this._onResize.bind(this),this._resizeObserver=new ResizeObserver(this._resizeListener),this._data=null,this._width=1,this._height=1,this._dpiRatio=1,this._dirty=!0,this._running=!1}get data(){if(this._data==null)throw Error(`Data not set.`);return this._data}get width(){return this._width}get height(){return this._height}setData(e){this._data=e,this.onDataUpdated(),this._dirty=!0,this._running||this._start()}_start(){this._fitCanvas(),this._running=!0,this._render(),window.addEventListener(`resize`,this._resizeListener),this._resizeObserver.observe(this._canvasContainer),this.onStart()}destroy(){this._running=!1,window.removeEventListener(`resize`,this._resizeListener),this._resizeObserver.unobserve(this._canvasContainer),this.onDestroy()}_render(){this._running&&(requestAnimationFrame(()=>{this._render()}),this._dirty&&(this._dirty=!1,this.ctx.save(),this.ctx.clearRect(0,0,this._width*this._dpiRatio,this._height*this._dpiRatio),this.ctx.scale(this._dpiRatio,this._dpiRatio),this.onRender(),this.ctx.restore()))}onStart(){}onDestroy(){}onDataUpdated(){}_onResize(){this._fitCanvas()}_fitCanvas(){let e=this._canvasContainer.getBoundingClientRect();this._width=e.width,this._height=e.height;let t=window.devicePixelRatio??1,n=this.ctx.backingStorePixelRatio??1;this._dpiRatio=t/n,this._canvas.style.width=`${this._width}px`,this._canvas.style.height=`${this._height}px`,this._canvas.width=this._width*this._dpiRatio,this._canvas.height=this._height*this._dpiRatio,this._dirty=!0}markDirty(){this._dirty=!0}};function E(e){let{data:i,createController:a}=e,s=o(null),c=o(null),[l,d]=r(null),f=e.interceptTouches??!1?{touchAction:`none`}:void 0;return t(()=>{if(s.current==null||c.current==null)return;let e=a(s.current,c.current);return d(e),()=>{e?.destroy()}},[a]),t(()=>{l?.setData(i)},[l,i]),n(`div`,{ref:s,className:u(e.class,`relative overflow-hidden`),children:n(`canvas`,{className:`absolute top-0 left-0`,ref:c,style:f})})}function D(){let e=window.getComputedStyle(document.body);return{bg:e.getPropertyValue(`--color-bg`),fg:e.getPropertyValue(`--color-fg`),"fg-strong":e.getPropertyValue(`--color-fg-strong`),"fg-weak":e.getPropertyValue(`--color-fg-weak`)}}var ne=6,O=6,k=1,A=class extends T{_css;_prefersDark;constructor(e,t){super(e,t),this._css=D(),this._prefersDark=window.matchMedia(`(prefers-color-scheme: dark)`).matches}onRender(){this.ctx.strokeStyle=`#000000`,this._onRenderStructure(),this.ctx.globalCompositeOperation=`source-in`,this.ctx.fillStyle=this._getDiagramColor(),this.ctx.fillRect(0,0,this.width,this.height)}_renderSection({stops:e,x:t,yLevels:n,terminatesAtTop:r,terminatesAtBottom:i,notchSide:a}){if(e.length<1)throw Error(`Expecting at least one stop.`);if(e.length!==n.length)throw Error(`Bad length.`);let o=h(n[0]),s=h(n[n.length-1]);this._drawLine(e=>{e.moveTo(t,o-k),e.lineTo(t,s+k)}),e.forEach((o,s)=>{let c=h(n[s]),l=s===0&&r||s===e.length-1&&i;(o.drawMark??!0)&&this._drawMark(t,c,l,a)})}_drawLine(e){this.ctx.lineWidth=O,this.ctx.beginPath(),e(this.ctx),this.ctx.stroke()}_drawMark(e,t,n,r){let i={left:-1,right:1}[r];this.ctx.lineWidth=ne,this.ctx.beginPath(),this.ctx.moveTo(n?e-8*i:e,t),this.ctx.lineTo(e+8*i,t),this.ctx.stroke()}_extractYLevels(e,t){let n=this._extractChildElements(t);if(e.length!==n.length)throw Error(`Bad length.`);return e.map((e,t)=>{let r=h(n[t]);return e.getOverriddenMarkYPosition==null?this._getDefaultMarkYPosition(r):e.getOverriddenMarkYPosition(r)})}_extractChildElements(e){let t=this._canvasContainer.parentElement?.querySelector(`.${e}`);if(t==null)throw Error(`Couldn't find "${e}".`);return Array.from(t.childNodes.values()).filter(e=>e instanceof HTMLElement)}_getDefaultMarkYPosition(e){let t=this._canvasContainer.getBoundingClientRect(),n=e.getBoundingClientRect();return n.top-t.top+n.height/2}_getDiagramColor(){let e={dark:`darkThemeColorHexCode`,light:`lightThemeColorHexCode`,auto:this._prefersDark?`darkThemeColorHexCode`:`lightThemeColorHexCode`}[this.data.colorTheme];return this.data[e]??this._css.fg}},j=class extends A{_onRenderStructure(){let e=this.data.structure;this._renderSection({stops:e.stops,x:this.width/2,yLevels:this._extractYLevels(e.stops,N),terminatesAtTop:!0,terminatesAtBottom:!0,notchSide:`right`})}};function M(e){return n(l,{class:u(e.class,`gap-2`),xAlign:`center`,children:[n(te,{class:`text-icon-xl text-fg`}),n(a,{align:`center`,children:`An error occurred rendering this diagram.`})]})}var N=`_diagram-stops`;function re(e){let{settings:t}=m(),r=i(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:t.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,t.theme]),a=d((e,t)=>new j(e,t),[]);return r.structure.stops.length<2?n(M,{}):n(s,{class:u(e.class,`grid-cols-[auto_1fr] gap-4`),children:[n(E,{class:`w-4`,createController:a,data:r}),n(l,{class:u(`gap-6`,N),children:e.structure.stops.map(e=>n(s,{children:e.content}))})]})}function P(e,t){return t.map(t=>{let r=e.stops.require(t.stopId),i=`/stop/${r.urlPath}`;if(t.type===`regular`)return{content:n(a,{style:`strong`,children:n(_,{href:i,style:`subtle`,children:r.name})})};if(t.type===`always-express`)return{content:n(a,{style:`small-weak`,children:n(_,{href:i,style:`subtle`,children:[`Skips `,r.name]})}),drawMark:!1};C(t.type)})}function F(e){let{foda:t}=p(),r=i(()=>({type:`linear`,stops:P(t,e.diagram.stops)}),[t,e.diagram.stops]);return n(re,{class:e.class,structure:r,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var I=10,L=15,R=class extends A{_onRenderStructure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,{x:r,y:i}=this._measure();this._renderSection({stops:e,x:r.common,yLevels:i.common.all,terminatesAtTop:!0,terminatesAtBottom:!1,notchSide:`right`}),this._renderSection({stops:t,x:r.branchA,yLevels:i.branchA.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`left`}),this._renderSection({stops:n,x:r.branchB,yLevels:i.branchB.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(e=>{e.moveTo(r.common,i.common.bottom),e.lineTo(r.common,i.common.bottom+I),e.bezierCurveTo(r.common,i.common.bottom+L+I,r.branchA,i.branches.top-L,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+I),e.bezierCurveTo(r.common,i.common.bottom+L+I,r.branchB,i.branches.top-L,r.branchB,i.branches.top),e.lineTo(r.branchB,i.branchA.top)})}_measure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,r=this._extractYLevels(e,z),i=h(r[0]),a=h(r[r.length-1]),o=this._extractYLevels(t,B),s=h(o[0]),c=h(o[o.length-1]),l=this._extractYLevels(n,V),u=h(l[0]),d=h(l[l.length-1]);return{x:{common:this.width/2,branchA:8,branchB:this.width-8},y:{common:{all:r,top:i,bottom:a},branchA:{all:o,top:s,bottom:c},branchB:{all:l,top:u,bottom:d},branches:{top:Math.min(s,u),bottom:Math.max(c,d)}}}}},z=`_diagram-common-stops`,B=`_diagram-branch-a-stops`,V=`_diagram-branch-b-stops`;function H(e){let{settings:t}=m(),r=i(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:t.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,t.theme]),a=d((e,t)=>new R(e,t),[]);return r.structure.commonStops.length<1||r.structure.branchAStops.length<1||r.structure.branchBStops.length<1?n(M,{}):n(s,{class:u(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[n(E,{class:`w-12 col-2 row-span-full`,createController:a,data:r}),n(l,{class:u(`gap-6 col-3 row-1 -ml-4`,z),xAlign:`left`,children:e.structure.commonStops.map(e=>n(s,{children:e.content}))}),n(l,{class:u(`gap-6 col-1 row-2`,B),xAlign:`right`,children:e.structure.branchAStops.map(e=>n(s,{children:e.content}))}),n(l,{class:u(`gap-6 col-3 row-2`,V),xAlign:`left`,children:e.structure.branchBStops.map(e=>n(s,{children:e.content}))})]})}function U(e){let{foda:t}=p(),r=i(()=>({type:`branch`,commonStops:P(t,e.diagram.commonStops),branchAStops:P(t,e.diagram.branchAStops),branchBStops:P(t,e.diagram.branchBStops)}),[t,e.diagram]);return n(H,{class:e.class,structure:r,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}var W=10,G=15,K=24,q=1,J=class extends A{_onRenderStructure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,{x:r,y:i}=this._measure();if(e.length>0?this._renderSection({stops:e,x:r.loopLeft,yLevels:i.loopLeft.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`left`}):this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top-q),e.lineTo(r.loopLeft,i.loopLeft.bottom+q)}),t.length>0?this._renderSection({stops:t,x:r.loopRight,yLevels:i.loopRight.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`right`}):this._drawLine(e=>{e.moveTo(r.loopRight,i.loopRight.top-q),e.lineTo(r.loopRight,i.loopRight.bottom+q)}),n.length>0){let e=h(i.main.top);this._renderSection({stops:n,x:r.main,yLevels:i.main.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(t=>{t.moveTo(r.main,e),t.lineTo(r.main,e-W),t.bezierCurveTo(r.main,e-G-W,r.loopLeft,i.loop.bottom+G,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-W),t.bezierCurveTo(r.main,e-G-W,r.loopRight,i.loop.bottom+G,r.loopRight,i.loop.bottom),t.lineTo(r.loopRight,i.loopRight.bottom)}),this.ctx.stroke()}else this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.bottom),e.lineTo(r.loopLeft,i.loop.bottom),e.bezierCurveTo(r.loopLeft,i.loop.bottom+K,r.loopRight,i.loop.bottom+K,r.loopRight,i.loop.bottom),e.lineTo(r.loopRight,i.loopRight.bottom)});this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top),e.lineTo(r.loopLeft,i.loop.top),e.bezierCurveTo(r.loopLeft,i.loop.top-K,r.loopRight,i.loop.top-K,r.loopRight,i.loop.top),e.lineTo(r.loopRight,i.loopRight.top)})}_measure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,r=this._extractYLevels(e,X),i=this._extractYLevels(t,Z),a=this._extractYLevels(n,Y),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=h(o??s),d=h(s??o),f=h(c??l),p=h(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:f},loopRight:{all:i,top:d,bottom:p},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,d),bottom:Math.max(f,p)}}}}},Y=`_diagram-main-stops`,X=`_diagram-loop-left-stops`,Z=`_diagram-loop-right-stops`;function Q(e){let{settings:t}=m(),r=i(()=>({structure:e.structure,lightThemeColorHexCode:e.lightThemeColorHexCode,darkThemeColorHexCode:e.darkThemeColorHexCode,colorTheme:t.theme}),[e.darkThemeColorHexCode,e.lightThemeColorHexCode,e.structure,t.theme]),a=d((e,t)=>new J(e,t),[]),{loopLeftStops:o,loopRightStops:c}=r.structure;return o.length+c.length<1?n(M,{}):n(s,{class:u(e.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[n(E,{class:`w-12 col-2 row-span-full`,createController:a,data:r}),n(l,{class:u(`gap-6 col-1 row-1 py-4`,X),xAlign:`right`,yAlign:`center`,children:e.structure.loopLeftStops.map(e=>n(s,{children:e.content}))}),n(l,{class:u(`gap-6 col-3 row-1 py-4`,Z),xAlign:`left`,yAlign:`center`,children:e.structure.loopRightStops.map(e=>n(s,{children:e.content}))}),n(l,{class:u(`gap-6 col-3 row-2 -ml-4`,Y,{"pt-4":e.structure.mainStops.length>0}),xAlign:`left`,children:e.structure.mainStops.map(e=>n(s,{children:e.content}))})]})}function ie(e){let{foda:t}=p(),r=i(()=>({type:`loop`,loopLeftStops:P(t,e.diagram.loopLeftStops),loopRightStops:P(t,e.diagram.loopRightStops),mainStops:P(t,e.diagram.mainStops)}),[t,e.diagram]);return n(Q,{class:e.class,structure:r,lightThemeColorHexCode:e.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:e.diagram.color?.darkModeHexCode??null})}function $(e){return n(s,{class:u(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:n(ae,{diagram:e.diagram})})}function ae(e){if(e.diagram.type===`linear`)return n(F,{diagram:e.diagram});if(e.diagram.type===`branch`)return n(U,{diagram:e.diagram});if(e.diagram.type===`loop`)return n(ie,{diagram:e.diagram});C(e.diagram)}function oe(t){let r=t.diagram.entries.filter(t=>e(t.type));return r.length<t.diagram.entries.length?n(w,{fallbackStopList:t.diagram.fallbackStopList}):n(l,{class:u(t.class,`gap-6`),children:[n(a,{style:`subtitle`,children:`Diagram`}),r.length===1?n($,{diagram:h(r[0])}):n(se,{entries:r},r.length)]})}function se(e){let[t,a]=r(0),o=i(()=>e.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[e.entries]);return n(l,{class:`gap-4`,children:[n(S,{class:`self-start`,value:t.toFixed(),options:o,onChange:e=>{a(ee(e))}}),n($,{diagram:h(e.entries[t])})]})}function ce(){let{params:{id:e}}=c(),{foda:t}=p(),r=i(()=>t.lines.getByUrlPath(e??``),[t.lines,e]);return r==null?n(x,{afterConfirming:`foundational-data-version`}):n(le,{line:r},r.id)}function le(e){let{formatLine:t}=g();return n(v,{...y({title:t(e.line.name)}),children:n(l,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&n(oe,{diagram:e.line.diagram})})})}export{ce as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e,s as t}from"./use-nav-exemptions-K_D5A5Dp.js";var n={default:`text-accent-text underline`,subtle:`hover:underline`};function r(r){let i=n[r.style??`default`],a=t(i,`inline`,r.class);return r.onClick==null?r.href==null?e(`span`,{class:a,children:r.children}):e(`a`,{class:a,href:r.href,children:r.children}):e(`span`,{class:a,onClick:r.onClick,children:r.children})}export{r as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./use-nav-exemptions-K_D5A5Dp.js";import{t}from"./NotFoundPage-DsNHDLan.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{o as e,t}from"./use-query-aKyk6jW2.js";import{c as n,i as r,p as i,r as a,x as o}from"./use-nav-exemptions-K_D5A5Dp.js";import{o as s,t as c}from"./Button-De9ROUCb.js";import{n as l}from"./use-foundational-data-CJfuPRzD.js";import{t as u}from"./integers-BYp6YHG5.js";import{t as d}from"./MingcuteHome4Line-C9WpirCC.js";import{t as f}from"./Strong-Cipefot2.js";import{t as p}from"./Page-DCUzSHpc.js";import{t as m}from"./use-simple-headers-zgszX2CN.js";function h(){let{params:{sourceId:a,intrasourceId:o},query:{from:c}}=i(),{data:l,loading:d,error:f}=t(e,{sourceId:a??``,intrasourceId:o??``}),p=u(c??``);return d?n(s,{}):f!=null||l==null||p==null||p<0||l.service!=null&&p>l.service.movements.length-1?n(r,{children:`Failed to load service.`}):l.service==null?n(_,{}):n(g,{service:l.service,movementIndex:p},`${a}/${o}`)}function g(e){let{foda:t}=l();return n(p,{...m({title:`${e.service.primaryDestinationText} service`}),children:n(a,{class:`px-4 py-8 gap-8`,children:n(a,{class:`gap-6`,children:e.service.movements.map((e,i)=>{let a=e.arrivalTime==null?null:new Date(Date.parse(e.arrivalTime)).toLocaleString(),s=e.departureTime==null?null:new Date(Date.parse(e.departureTime)).toLocaleString();if(a==null&&s==null)return n(r,{style:`small`,children:[`Skips `,t.stops.require(e.stopId).name]},i);let c=s??a,l=e.formerArrivalTime==null?null:new Date(Date.parse(e.formerArrivalTime)).toLocaleString(),u=e.formerDepartureTime==null?null:new Date(Date.parse(e.formerDepartureTime)).toLocaleString(),d=s==null?a==null?null:l:u,p=d==null?``:n(o,{children:[n(`span`,{class:`line-through text-fg-weak`,children:d}),` `]});return n(r,{children:[n(f,{children:t.stops.require(e.stopId).name}),` • `,p,c]},i)})})})})}function _(){return n(p,{mobileHeader:null,desktopHeader:null,children:n(a,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[n(r,{style:`title`,align:`center`,children:`Service not found`}),n(r,{align:`center`,children:`This can happen if the service was cancelled, or the timetable changed since this link was generated. You might be able to find it again by searching for one of the stops it departed from.`}),n(c,{href:`/`,text:`Go home`,icon:d})]})})}export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e,u as t}from"./use-query-aKyk6jW2.js";import{c as n,h as r,i,p as a,r as o}from"./use-nav-exemptions-K_D5A5Dp.js";import{i as s,o as c}from"./Button-De9ROUCb.js";import{n as l}from"./use-foundational-data-CJfuPRzD.js";import{t as u}from"./Strong-Cipefot2.js";import{t as d}from"./Page-DCUzSHpc.js";import{t as f}from"./use-simple-headers-zgszX2CN.js";import{t as p}from"./NotFoundPage-DsNHDLan.js";function m(e,t,n,r){return e.length===0?``:e.length===1?e[0]:e.length===2?`${e[0]}${r}${e[1]}`:`${e.slice(0,-1).join(t)}${n}${e[e.length-1]}`}function h(e){return m(e,`, `,`, and `,` and `)}function g(){let{params:{id:e}}=a(),{foda:t}=l(),i=r(()=>t.stops.getByUrlPath(e??``),[t.stops,e]);return i==null?n(p,{afterConfirming:`foundational-data-version`}):n(_,{stop:i},i.id)}function _(r){let{foda:a}=l(),{data:s,loading:u,error:p}=e(t,{stopId:r.stop.id,count:10});return n(d,{...f({title:r.stop.name}),children:n(o,{class:`px-4 py-8 gap-8`,children:[n(i,{children:[h(r.stop.canonicalLinesServingStop.map(e=>a.lines.require(e).name).sort((e,t)=>e.localeCompare(t))),` `,r.stop.canonicalLinesServingStop.length===1?`Line`:`lines`]}),u&&n(c,{}),!u&&(p!=null||s==null)&&n(i,{children:`Error loading departures.`}),!u&&s!=null&&s.departures.length===0&&n(i,{children:`No departures found.`}),!u&&s!=null&&s.departures.length>0&&n(o,{class:`gap-4`,children:s.departures.map(e=>n(v,{departure:e},`${e.sourceId}/${e.intrasourceId}`))})]})})}function v({departure:e}){let t=e.secondaryDestinationText==null?``:` ${e.secondaryDestinationText}`,r=e.isCancelled?` (Cancelled)`:``,a=`/service/${encodeURIComponent(e.sourceId)}/${encodeURIComponent(e.intrasourceId)}?from=${encodeURIComponent(e.movement.index.toString())}`;return n(s,{href:a,class:`p-4`,children:n(o,{class:`gap-4`,children:[n(o,{class:`gap-3`,children:[n(i,{children:[n(u,{children:e.primaryDestinationText}),t,r]}),n(i,{children:new Date(Date.parse(e.movement.time)).toLocaleString()}),e.movement.formerTime!=null&&n(i,{style:`weak-struckout`,children:new Date(Date.parse(e.movement.formerTime)).toLocaleString()})]}),n(i,{style:`small-weak`,children:[`Source: `,e.sourceId,` • ID:`,` `,e.intrasourceId]})]})})}export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as e}from"./use-nav-exemptions-K_D5A5Dp.js";function t(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,children:e(`g`,{fill:`none`,children:[e(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),e(`path`,{fill:`currentColor`,d:`m13.414 2.808l7.778 7.778a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.829l7.778-7.778a2 2 0 0 1 2.828 0M12 4.222L4.222 12L12 19.78L19.778 12zM12.002 15a1 1 0 0 1 .117 1.993l-.117.007a1 1 0 0 1-.119-1.993zM12 8c.867 0 1.538.76 1.43 1.62l-.438 3.504a1 1 0 0 1-1.984 0L10.57 9.62A1.44 1.44 0 0 1 12 8`})]})})}function n(t){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...t,children:e(`path`,{fill:`currentColor`,d:`M12 2a10 10 0 1 0 10 10A10.01 10.01 0 0 0 12 2m0 18a8 8 0 1 1 8-8a8.01 8.01 0 0 1-8 8m0-8.5a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0v-3a1 1 0 0 0-1-1m0-4a1.25 1.25 0 1 0 1.25 1.25A1.25 1.25 0 0 0 12 7.5`})})}export{t as n,n as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", system-ui, sans-serif;--spacing:.25rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-icon-md:1rem;--text-icon-lg:1.25rem;--text-icon-xl:1.5rem;--font-weight-normal:400;--font-weight-bold:700;--radius-sm:.25rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-accent:#1773cf;--color-accent-hover:#1a80e6;--color-accent-active:#1466b8;--color-accent-text:#06c;--color-soft-accent:#1773cf26;--color-on-accent:#fff;--color-soft:#001e5a1f;--color-soft-hover:#001f5e14;--color-soft-active:#001d5629;--color-soft-border:#001b5233;--color-soft-border-disabled:#001e5a1f;--color-placeholder:#0018474d;--color-error:#a11212;--color-error-hover:#b81414;--color-error-active:#8a0f0f;--color-error-text:#b30000;--color-soft-error:#b3000026;--color-on-error:#fff;--color-warning:#b88114;--color-warning-hover:#cf9117;--color-warning-active:#a17112;--color-warning-text:#b37700;--color-soft-warning:#e6990033;--color-on-warning:#fff;--color-success:#1f7a2e;--color-success-hover:#248f36;--color-success-active:#196626;--color-success-text:#1f7a2e;--color-soft-success:#00991926;--color-on-success:#fff;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}*{flex-shrink:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:0}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.z-0{z-index:0}.z-1{z-index:1}.col-1{grid-column:1}.col-2{grid-column:2}.col-3{grid-column:3}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-span-full{grid-row:1/-1}.container{width:100%}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.-mt-\[0\.38em\]{margin-top:-.38em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.-mb-\[0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-54{height:calc(var(--spacing) * 54)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-12{width:calc(var(--spacing) * 12)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[30\%\]{width:30%}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[60\%\]{width:60%}.w-\[80\%\]{width:80%}.w-full{width:100%}.w-svw{width:100svw}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-min{min-width:min-content}.shrink{flex-shrink:1}.-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_auto_auto\]{grid-template-columns:auto auto auto}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-accent{border-color:var(--color-accent)}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.border-b-soft-border{border-bottom-color:var(--color-soft-border)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-transparent{background-color:#0000}.bg-warning-text{background-color:var(--color-warning-text)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-12{padding-top:calc(var(--spacing) * 12)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pl-12{padding-left:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-icon-lg{font-size:var(--text-icon-lg)}.text-icon-md{font-size:var(--text-icon-md)}.text-icon-xl{font-size:var(--text-icon-xl)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.italic{font-style:italic}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-97{opacity:.97}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-on-accent\)\]{--color-fg-strong:var(--color-on-accent)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-on-accent\)\]{--color-fg-weak:var(--color-on-accent)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-on-accent\)\]{--color-fg:var(--color-on-accent)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (width>=48rem){.not-desktop\:bottom-0{bottom:0}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media (hover:hover){.group-hover\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-hover\:bg-soft-hover:is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-accent-active:is(:where(.group):active *){background-color:var(--color-accent-active)}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.placeholder\:font-normal::placeholder{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.placeholder\:text-fg-weak::placeholder{color:var(--color-fg-weak)}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media (width>=48rem){.desktop\:top-0{top:0}.desktop\:row-2{grid-row:2}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pl-11{padding-left:calc(var(--spacing) * 11)}.desktop\:text-icon-lg{font-size:var(--text-icon-lg)}.desktop\:text-md{font-size:var(--text-md)}}@media (width>=64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}body{background-color:var(--color-bg-navbar);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body.light,body.light dialog{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){body:not(.light),body:not(.light) dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}}body.dark,body.dark dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#adc9ff33;--color-soft-border-disabled:#a5c3ff1f;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-UCAQqmkn.js","assets/use-query-aKyk6jW2.js","assets/use-nav-exemptions-K_D5A5Dp.js","assets/use-static-data-Bd-JldH5.js","assets/use-foundational-data-CJfuPRzD.js","assets/Placeholder-BLK-raB4.js","assets/Markdown-_rm-vmLF.js","assets/LinkText-BkJDt2va.js","assets/Strong-Cipefot2.js","assets/Page-DCUzSHpc.js","assets/use-simple-headers-zgszX2CN.js","assets/Row-Dgd0uJoX.js","assets/Divider-DTKq8RTH.js","assets/Alert-BihvmTP7.js","assets/UilInfoCircle-CcwPr9DT.js","assets/AdminControls-DUl1Ekw-.js","assets/Debug-D02mGr8K.js","assets/Button-De9ROUCb.js","assets/Clickable-BwARU32_.js","assets/use-environment-DCSCZZ2k.js","assets/Home-Bjk9oz22.js","assets/Nearby-D9MN_gGw.js","assets/Service-DuKHjsBr.js","assets/integers-BYp6YHG5.js","assets/MingcuteHome4Line-C9WpirCC.js","assets/Settings-coF5Xsk_.js","assets/use-settings-DmVCxG2H.js","assets/Picker-CZiJZO75.js","assets/Status-Cx8LBciv.js","assets/ZenMode-BTXaHvYK.js","assets/Stop-CMvSpZTe.js","assets/NotFoundPage-DsNHDLan.js","assets/foundational-data-BNBGYMsF.js","assets/Line-pWcCnw4E.js","assets/use-terminology-DvNuNrme.js","assets/NotFound-C6vki9__.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{a as e,f as t,n,r,s as i,t as a}from"./use-query-aKyk6jW2.js";import{C as o,_ as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,l as h,m as g,n as _,o as v,r as y,s as b,t as x,u as S,v as C,w}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as T,t as E}from"./use-static-data-Bd-JldH5.js";import{t as D}from"./foundational-data-BNBGYMsF.js";import{a as O,n as k,o as ee,r as A,t as j}from"./Button-De9ROUCb.js";import{t as M}from"./Clickable-BwARU32_.js";import{t as N}from"./Row-Dgd0uJoX.js";import{n as te,t as ne}from"./use-foundational-data-CJfuPRzD.js";import{n as re,t as ie}from"./use-settings-DmVCxG2H.js";import{n as ae,r as P,t as oe}from"./use-terminology-DvNuNrme.js";import{n as se,t as ce}from"./UilInfoCircle-CcwPr9DT.js";import{t as le}from"./MingcuteHome4Line-C9WpirCC.js";import{n as ue,r as F,t as I}from"./use-environment-DCSCZZ2k.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var L=w.__b;w.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),L&&L(e)};function R(e){let t,n,r=()=>e().then(e=>n=e&&e.default||e),i=e=>{let[,i]=f(0),a=g(n);if(t||=r(),n!==void 0)return o(n,e);throw a.current||=t.then(()=>i(1)),t};return i.preload=()=>(t||=r(),t),i._forwarded=!0,i}var z=w.__e;w.__e=(e,t,n)=>{if(e&&e.then){let r=t;for(;r=r.__;)if(r.__c&&r.__c.__c)return t.__e??(t.__c.__z=[n.__e],t.__e=n.__e,t.__k=n.__k),t.__k||=[],r.__c.__c(e,t)}z&&z(e,t,n)};function B(e){return this.__c=V,this.componentDidCatch=e.onError,e.children}function V(e){e.then(()=>this.forceUpdate())}var H=`modulepreload`,U=function(e){return`/`+e},W={},G=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=U(t,n),t=s(t),t in W)return;W[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:H,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function de(e){let{Provider:t}=E,n=p(()=>fe(document),[]);return l(t,{value:n,children:e.children})}function fe(e){function t(t){let n=e.querySelector(t);if(n==null)throw Error(`${t} tag not found.`);let r=n.getAttribute(`content`);if(r==null)throw Error(`${t} tag was empty.`);return r}return{appName:t(`meta[name="corequery-app-name"]`),frontendVersion:t(`meta[name="corequery-frontend-version"]`),versionsOnLastUpdate:{corequeryPackageVersion:t(`meta[name="corequery-package-version-on-last-update"]`),serverVersion:t(`meta[name="corequery-server-version-on-last-update"]`)}}}function K(e,t){let n=C(()=>{let n=localStorage.getItem(e);if(n==null)return null;try{return t.parse(JSON.parse(n))}catch{return null}},[e,t]),r=C(t=>{let n=JSON.stringify(t);localStorage.setItem(e,n)},[e]);return p(()=>({get:n,set:r}),[n,r])}function q(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,children:[l(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M20 9a1 1 0 0 1 1 1v1a8 8 0 0 1-8 8H9.414l.793.793a1 1 0 0 1-1.414 1.414l-2.496-2.496a1 1 0 0 1-.287-.567L6 17.991a1 1 0 0 1 .237-.638l.056-.06l2.5-2.5a1 1 0 0 1 1.414 1.414L9.414 17H13a6 6 0 0 0 6-6v-1a1 1 0 0 1 1-1m-4.793-6.207l2.5 2.5a1 1 0 0 1 0 1.414l-2.5 2.5a1 1 0 1 1-1.414-1.414L14.586 7H11a6 6 0 0 0-6 6v1a1 1 0 1 1-2 0v-1a8 8 0 0 1 8-8h3.586l-.793-.793a1 1 0 0 1 1.414-1.414`})]})})}function pe(e){let{appName:t}=T();return l(v,{class:`w-svw h-svh items-center justify-center`,children:l(y,{class:`gap-12`,xAlign:`center`,children:[l(y,{class:`gap-6`,xAlign:`center`,children:[l(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),l(m,{style:`title`,children:t})]}),e.error?l(y,{class:`gap-4`,xAlign:`center`,children:[l(m,{children:`Failed to load data :(`}),l(j,{text:`Retry`,icon:q,onClick:e.onRetry})]}):l(ee,{style:`large`})]})})}var me=`corequery-foundational-data`,he=2e3;function ge(e){let{Provider:t}=ne,{revalidateSettings:n}=re(),{callApi:i}=r(),a=K(me,D.json),[o]=f(()=>a.get()),[c,u]=f(null),[d,m]=f(!1),h=C(e=>{u(e),n(e),a.set(e.toJson())},[a,n]),g=C(()=>{m(!1),_e({callApi:i,cachedData:o,onDataReady:(e,t)=>{h(e),t&&a.set(e.toJson())},onFailure:()=>{m(!0)}})},[a,o,i,h]);s(()=>{g()},[g]);let _=p(()=>c==null?null:{foda:c,updateFoda:h},[c,h]);return _==null?l(pe,{error:d,onRetry:g}):l(t,{value:_,children:e.children})}async function _e({callApi:e,cachedData:t,onDataReady:n,onFailure:r}){if(t!=null)try{let r=await e(i,{hash:t.hash},{timeout:he});r.result===`up-to-date`?n(t,!1):n(new D(r.foundationalData),!0)}catch(e){console.warn(`Foundational data refresh failed - using cache.`,e),n(t,!1)}else try{let t=await e(i,{hash:null});if(t.result===`up-to-date`)throw Error(`Huh?`);n(new D(t.foundationalData),!0)}catch{r()}}var J=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=t.object({version:t.literal(1),theme:t.enum([`dark`,`light`,`auto`]).optional()}).transform(t=>new e({theme:t.theme??e.default.theme}));with(t){return new e({...this,...t})}toJson(){return{version:1,theme:this.theme}}validate(e){return this}equals(e){return n(this.toJson(),e.toJson())}},ve=[`auto`,`light`,`dark`];function ye(){window.applyTheme?.()}function be(e){let{Provider:t}=ie,n=K(`corequery-settings`,J.json),[r,i]=f(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),J.default)),a=C((e,t)=>{i(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),ye()},[n]),o=C(e=>{a(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[a]),s=p(()=>({settings:r,updateSettings:a,revalidateSettings:o}),[r,a,o]);return l(t,{value:s,children:e.children})}function xe(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`m13.414 2.807l7.778 7.779a2 2 0 0 1 0 2.828l-7.778 7.778a2 2 0 0 1-2.828 0l-7.778-7.778a2 2 0 0 1 0-2.828l7.778-7.779a2 2 0 0 1 2.828 0M12.002 15a1 1 0 0 0-.119 1.993l.12.007a1 1 0 0 0 0-2ZM12 8a1.44 1.44 0 0 0-1.44 1.485l.01.135l.438 3.504a1 1 0 0 0 1.964.113l.02-.113l.438-3.504A1.44 1.44 0 0 0 12 8`})]})})}function Se(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M13.2 2.65a2 2 0 0 0-2.4 0l-7 5.25A2 2 0 0 0 3 9.5V19a2 2 0 0 0 2 2h3.9a1.1 1.1 0 0 0 1.1-1.1V15a2 2 0 1 1 4 0v4.9a1.1 1.1 0 0 0 1.1 1.1H19a2 2 0 0 0 2-2V9.5a2 2 0 0 0-.8-1.6z`})]})})}function Ce(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.195-2.293.489-2.96.815c-.335.164-.534.313-.637.422l-.021.023c.033.039.09.096.19.169c.28.207.749.435 1.418.644C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.67-.209 1.138-.437 1.418-.644c.1-.073.157-.13.19-.169l-.021-.023c-.103-.109-.302-.258-.637-.422c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.457.224.884.5 1.208.842c.33.347.603.82.603 1.399c0 .811-.524 1.4-1.034 1.777c-.53.392-1.233.702-2.01.945c-1.57.49-3.674.778-5.956.778s-4.387-.288-5.955-.778c-.778-.243-1.48-.553-2.01-.945C3.524 19.9 3 19.311 3 18.5c0-.58.273-1.052.603-1.4c.325-.342.751-.617 1.208-.84c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function we(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M12 4a3 3 0 1 0 0 6a3 3 0 0 0 0-6M7 7a5 5 0 1 1 6 4.9V17a1 1 0 1 1-2 0v-5.1A5 5 0 0 1 7 7m2.489 9.1a1 1 0 0 1-.838 1.14c-1.278.194-2.293.489-2.96.815c-1.22.597.206 1.026.95 1.258C7.968 19.728 9.863 20 12 20s4.032-.272 5.359-.687c.749-.234 2.17-.66.95-1.258c-.667-.326-1.682-.62-2.96-.815a1 1 0 1 1 .301-1.977c1.388.21 2.622.547 3.539.996c.884.433 1.811 1.162 1.811 2.241c0 .811-.524 1.4-1.034 1.777C17.816 21.865 14.536 22 12 22c-2.282 0-4.387-.288-5.955-.778C4.795 20.832 3 20.062 3 18.5c0-1.08.927-1.808 1.811-2.24c.917-.45 2.152-.786 3.538-.997a1 1 0 0 1 1.14.838Z`})]})})}function Te(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M20 18a1 1 0 0 1 .117 1.993L20 20H4a1 1 0 0 1-.117-1.993L4 18zm0-7a1 1 0 1 1 0 2H4a1 1 0 1 1 0-2zm0-7a1 1 0 1 1 0 2H4a1 1 0 0 1 0-2z`})]})})}function Y(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M5 10a5 5 0 1 1 10 0a5 5 0 0 1-10 0m5-7a7 7 0 1 0 4.192 12.606l5.1 5.101a1 1 0 0 0 1.415-1.414l-5.1-5.1A7 7 0 0 0 10 3`})]})})}function Ee(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M5 5a1 1 0 0 0-2 0v14a1 1 0 0 0 1 1h16a1 1 0 1 0 0-2H5zm4 7a1 1 0 1 0-2 0v3a1 1 0 1 0 2 0zm3-6a1 1 0 0 1 1 1v8a1 1 0 1 1-2 0V7a1 1 0 0 1 1-1m5 4a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0z`})]})})}function De(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.594 23.258l-.012.002l-.071.035l-.02.004l-.014-.004l-.071-.036q-.016-.004-.024.006l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.016-.018m.264-.113l-.014.002l-.184.093l-.01.01l-.003.011l.018.43l.005.012l.008.008l.201.092q.019.005.029-.008l.004-.014l-.034-.614q-.005-.019-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.003-.011l.018-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v1.062a8 8 0 0 1 2.104.562l.53-.918a1 1 0 1 1 1.732 1l-.531.92c.58.44 1.098.959 1.54 1.54l.92-.532a1 1 0 1 1 1 1.732l-.92.53c.279.661.471 1.367.563 2.104H21a1 1 0 1 1 0 2h-1.062a8 8 0 0 1-.562 2.104l.918.53a1 1 0 1 1-1 1.732l-.92-.531a8 8 0 0 1-1.54 1.54l.532.92a1 1 0 1 1-1.732 1l-.53-.92a8 8 0 0 1-2.104.563V21a1 1 0 1 1-2 0v-1.062a8 8 0 0 1-2.104-.562l-.53.918a1 1 0 1 1-1.732-1l.531-.92a8 8 0 0 1-1.54-1.54l-.92.532a1 1 0 1 1-1-1.732l.92-.53A8 8 0 0 1 4.061 13H3a1 1 0 1 1 0-2h1.062a8 8 0 0 1 .562-2.104l-.918-.53a1 1 0 0 1 1-1.732l.92.531c.44-.58.959-1.098 1.54-1.54l-.532-.92a1 1 0 0 1 1.732-1l.53.92A8 8 0 0 1 11 4.061V3a1 1 0 0 1 1-1m0 11.155l-4.624 2.67a6 6 0 0 0 1.588 1.351l.073.043A6 6 0 0 0 12 18c.97 0 1.886-.23 2.697-.639l.34-.185a6 6 0 0 0 1.587-1.352zm-1-7.072a6 6 0 0 0-1.703.559l-.26.14l-.073.042a6 6 0 0 0-1.978 1.88l-.162.26l-.042.073A6 6 0 0 0 6 12c0 .63.097 1.24.278 1.81l.097.283L11 11.423zm2 0v5.34l4.625 2.67A6 6 0 0 0 18 12c0-.97-.23-1.886-.639-2.697l-.143-.266l-.032-.055l-.01-.018a6 6 0 0 0-1.88-1.978l-.333-.205a6 6 0 0 0-1.664-.64z`})]})})}function Oe(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M6.798 2.884a7.002 7.002 0 0 1 9.294 8.565l4.394 3.718a3.76 3.76 0 1 1-5.3 5.3l-3.717-4.394a7.002 7.002 0 0 1-8.565-9.295c.358-.894 1.48-1.007 2.063-.373L8.17 9.883l1.446-.288l.29-1.449l-3.48-3.198c-.634-.583-.522-1.706.373-2.064ZM8.805 4.42l2.763 2.54c.322.296.466.738.38 1.165l-.47 2.354a1.25 1.25 0 0 1-.982.981l-2.35.467a1.25 1.25 0 0 1-1.164-.38L4.438 8.785a5.002 5.002 0 0 0 6.804 5.25a1.26 1.26 0 0 1 1.422.355l4.05 4.786a1.76 1.76 0 1 0 2.48-2.48l-4.785-4.05a1.26 1.26 0 0 1-.355-1.422a5 5 0 0 0-5.25-6.804Z`})]})})}function ke(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M16 19a1 1 0 0 1 .117 1.993L16 21H8a1 1 0 0 1-.117-1.993L8 19zm4-15a2 2 0 0 1 1.995 1.85L22 6v10a2 2 0 0 1-1.85 1.995L20 18H4a2 2 0 0 1-1.995-1.85L2 16V6a2 2 0 0 1 1.85-1.995L4 4zm0 2H4v10h16z`})]})})}function X(){return[{name:`Home`,href:`/`,regularIcon:le,activeIcon:Se,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:se,activeIcon:xe,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:we,activeIcon:Ce,isActive:e=>e===`/nearby`},{name:`Search`,icon:Y,opensSearchDrawer:!0},{name:`More`,icon:Te,opensMoreDrawer:!0}]}function Ae(){let{appName:e}=T();return[{name:`About ${e}`,href:`/about`,icon:ce},{name:`Settings`,href:`/settings`,icon:De},{name:`Developer info`,href:`/debug`,icon:Ee},{name:`Admin controls`,href:`/admin`,icon:Oe},{name:`Zen mode`,href:`/zen`,icon:ke}]}function je(e){let{isUpdateAvailable:t,update:n}=F(),[r,i]=f(!1);return s(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?l(O,{rounded:!1,onClick:()=>void n(),children:l(_,{children:l(k,{icon:q,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Z(e,t){let[n,r]=f(!1);return s(()=>{if(!e){r(!1);return}let n=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(n)}},[e,t]),n}function Me(e){let t=Ae(),n=Z(!e.open,300);return l(`div`,{class:b(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"not-desktop:translate-y-4":!e.open,"desktop:-translate-y-4":!e.open}),children:[l(`div`,{class:`z-0 absolute top-0 bottom-0 left-0 right-0 bg-bg-raised desktop:border-b not-desktop:border-t border-soft-border opacity-97`}),l(y,{class:`relative z-1 desktop:flex-col-reverse`,children:[l(_,{children:l(y,{class:`py-2`,children:t.map(t=>l(j,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),l(je,{menuFullyClosed:n})]})]})}function Ne(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M12 2a9 9 0 0 1 9 9c0 3.074-1.676 5.59-3.442 7.395a20.4 20.4 0 0 1-2.876 2.416l-.426.29l-.2.133l-.377.24l-.336.205l-.416.242a1.87 1.87 0 0 1-1.854 0l-.416-.242l-.52-.32l-.192-.125l-.41-.273a20.6 20.6 0 0 1-3.093-2.566C4.676 16.589 3 14.074 3 11a9 9 0 0 1 9-9m0 2a7 7 0 0 0-7 7c0 2.322 1.272 4.36 2.871 5.996a18 18 0 0 0 2.222 1.91l.458.326q.222.155.427.288l.39.25l.343.209l.289.169l.455-.269l.367-.23q.293-.186.627-.417l.458-.326a18 18 0 0 0 2.222-1.91C17.728 15.361 19 13.322 19 11a7 7 0 0 0-7-7m0 3a4 4 0 1 1 0 8a4 4 0 0 1 0-8m0 2a2 2 0 1 0 0 4a2 2 0 0 0 0-4`})]})})}function Pe(e){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:l(`g`,{fill:`none`,fillRule:`evenodd`,children:[l(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),l(`path`,{fill:`currentColor`,d:`M12 2a1 1 0 0 1 1 1v5.126a4.002 4.002 0 0 1 0 7.748V21a1 1 0 1 1-2 0v-5.126a4.002 4.002 0 0 1 0-7.748V3a1 1 0 0 1 1-1m0 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4`})]})})}function Fe(){let{foda:e}=te(),{formatStop:t,formatLine:n,pluralStopsTerm:r,pluralLinesTerm:i}=oe();return{candidates:p(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{name:t(e.name),url:`/stop/${e.urlPath}`,icon:Ne}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{name:n(e.name),url:`/line/${e.urlPath}`,icon:Pe}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:p(()=>`Search ${r}, ${i}, etc.`,[i,r])}}var Ie={regular:`text-fg text-md outline-none border-none placeholder:text-fg-weak`,search:`text-fg-strong text-xl desktop:text-md font-bold outline-none border-none placeholder:text-fg-weak placeholder:font-normal`};function Le(e){let t=Ie[e.style??`regular`];return l(Re,{onSubmit:e.onSubmit,children:l(`input`,{class:b(e.class,t),value:e.value,onInput:t=>{t.target==null||!(`value`in t.target)||typeof t.target.value!=`string`||e.onChange(t.target.value)},placeholder:e.placeholder,ref:e.inputRef,autoComplete:`off`,type:e.search??!1?`search`:`text`})})}function Re(e){return e.onSubmit==null?e.children:l(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var ze=class{_query;_candidates;_maxResults;_results;_candidatesNotRequiringExactMatch;constructor(e,t,n){this._query=e,this._candidates=t,this._maxResults=n,this._results=new Map,this._candidatesNotRequiringExactMatch=t.filter(e=>!(e.requiresExactMatch??!1))}getResults(){return Array.from(this._results.values()).slice(0,this._maxResults)}appendResults(e,{passCandidatesRequiringExactMatch:t=!1}={}){if(this._results.size>=this._maxResults)return;let n=t?this._candidates:this._candidatesNotRequiringExactMatch,r=e(this._query,n);for(let e of r)this._results.has(e.id)||this._results.set(e.id,e.data)}};function Be(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function Ve(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function He(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function Ue(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.startsWith(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(P).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function We(e,t){return t.map(t=>{let n=t.alternatives.filter(t=>t.includes(e)).sort((e,t)=>e.length-t.length)[0];return n==null?null:{candidate:t,bestMatch:n,percentageMatched:e.length/n.length}}).filter(P).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function Ge(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new ze(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(Be,{passCandidatesRequiringExactMatch:!0}),i.appendResults(Ve),i.appendResults(He),i.appendResults(Ue),i.appendResults(We),i.getResults()}function Ke(e){let[t,n]=f(``),{candidates:r,placeholder:i}=Fe(),{route:a}=d(),o=p(()=>Ge(t,r,{maxResults:5}),[t,r]),c=Z(!e.open,300);s(()=>{c&&n(``)},[c]);let u=g(null),h=Z(e.open,100);s(()=>{h&&u.current?.focus()},[h]);function x(){o.length>0&&(a(ae(o[0]).url),e.onClose())}return l(`div`,{class:b(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[l(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),l(_,{class:`relative z-1`,children:l(y,{children:[l(v,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[l(Le,{style:`search`,value:t,onChange:n,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:i,inputRef:u,onSubmit:x,search:!0}),l(Y,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),l(y,{class:`h-54 py-2`,children:[o.length===0&&l(v,{class:`h-10 items-center`,children:l(m,{class:`px-4`,style:`weak`,children:`No results.`})}),o.map(t=>l(j,{text:t.name,icon:t.icon,href:t.url,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.url))]})]})})]})}function qe(e){let t=e.active??!1;return l(M,{class:b(e.class,`group`),onClick:e.onClick,href:e.href,children:l(y,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[l(v,{class:b(`px-3 py-1 rounded-full relative`,{"bg-soft-accent":t,"group-hover:bg-soft":!t,"group-active:bg-soft-active":!t}),children:[(e.showBadge??!1)&&l(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?l(e.activeIcon,{class:`text-accent-text text-icon-xl`}):l(e.regularIcon,{class:`text-fg text-icon-xl`})]}),l(m,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function Je(e){let{url:t}=d(),n=X(),{isUpdateAvailable:r}=F();return l(v,{class:b(e.class,`h-18 bg-bg-navbar grid-cols-[repeat(auto-fit,minmax(0,1fr))] border-t border-soft-border px-2`),children:n.map(n=>l(qe,{text:n.name,regularIcon:`icon`in n?n.icon:n.regularIcon,activeIcon:`icon`in n?n.icon:n.activeIcon,active:`isActive`in n&&n.isActive(t),href:`href`in n?n.href:void 0,onClick:n.opensMoreDrawer?e.onOpenMoreDrawerRequest:n.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:r&&n.opensMoreDrawer},n.name))})}function Ye(e){let t=e.active??!1;return l(v,{class:b(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:l(A,{class:e.class,onClick:e.onClick,href:e.href,children:l(N,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[l(v,{class:`relative`,children:[(e.showBadge??!1)&&l(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?l(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):l(e.regularIcon,{class:`text-fg text-icon-lg`})]}),l(v,{class:`relative`,children:[l(m,{class:b(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),l(m,{class:b({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function Xe(e){return l(`img`,{class:b(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function Ze(e){let{appName:t}=T(),{url:n}=d(),r=X(),{isUpdateAvailable:i}=F();return l(_,{class:b(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:l(N,{class:`gap-2`,children:[l(A,{class:`self-center`,href:`/`,children:l(N,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[l(Xe,{class:`text-icon-md`}),l(m,{style:`wordmark`,children:t})]})}),l(N,{children:r.map(t=>l(Ye,{text:t.name,regularIcon:`icon`in t?t.icon:t.regularIcon,activeIcon:`icon`in t?t.icon:t.activeIcon,active:`isActive`in t&&t.isActive(n),href:`href`in t?t.href:void 0,onClick:t.opensMoreDrawer?e.onOpenMoreDrawerRequest:t.opensSearchDrawer?e.onOpenSearchDrawerRequest:void 0,showBadge:i&&t.opensMoreDrawer},t.name))})]})})}function Qe(e){let{showMobileNav:t,showDesktopNav:n}=x(),{url:r}=d(),[i,a]=f(!1),[o,c]=f(!1);function u(){c(!1),a(e=>!e)}function p(){a(!1),c(e=>!e)}function m(){a(!1),c(!1)}return s(()=>{a(!1),c(!1)},[r]),l(v,{class:b(e.class,`fixed top-0 bottom-0 left-0 right-0 desktop:grid-rows-[auto_1fr] not-desktop:grid-rows-[1fr_auto]`,{"pointer-events-none":!i&&!o}),children:[l(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&l(Je,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:p})}),l(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&l(Ze,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:p})}),l(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[l(`div`,{class:b(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!i}),children:l(Me,{open:i,onClose:m})}),l(`div`,{class:b(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!o}),children:l(Ke,{open:o,onClose:m})}),l(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:m})]})]})}function $e(e){return l(`div`,{class:e.class,children:[l(`div`,{class:`relative z-0`,children:e.children}),l(`div`,{class:`relative z-1`,children:l(Qe,{})})]})}var et=`false`,tt=`false`,Q=et===`true`,$=tt===`true`;function nt(e={}){let{immediate:t=!1,onNeedReload:n,onNeedRefresh:r,onOfflineReady:i,onRegistered:a,onRegisteredSW:o,onRegisterError:s}=e,c,l,u,d=async(e=!0)=>{await l,Q||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await G(async()=>{let{Workbox:e}=await import(`./workbox-window.prod.es5-Bd17z0YL.js`);return{Workbox:e}},[]).then(({Workbox:e})=>new e(`/sw.js`,{scope:`/`,type:`classic`})).catch(e=>{s?.(e)}),!c)return;if(u=()=>{c?.messageSkipWaiting()},!$){if(Q)c.addEventListener(`activated`,e=>{(e.isUpdate||e.isExternal)&&(n?n():window.location.reload())}),c.addEventListener(`installed`,e=>{e.isUpdate||i?.()});else{let e=!1,t=()=>{e=!0,c?.addEventListener(`controlling`,e=>{e.isUpdate&&(n?n():window.location.reload())}),r?.()};c.addEventListener(`installed`,n=>{n.isUpdate===void 0?n.isExternal===void 0?!e&&i?.():n.isExternal?t():!e&&i?.():n.isUpdate||i?.()}),c.addEventListener(`waiting`,t)}}c.register({immediate:t}).then(e=>{o?o(`/sw.js`,e):a?.(e)}).catch(e=>{s?.(e)})}}return l=f(),d}function rt(e){let{Provider:t}=ue,[n,r]=f(!1),[i,a]=f(!1),o=p(()=>nt({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>r(!0),onOfflineReady:()=>a(!0)}),[]),s=C(async()=>{try{let e=await navigator.serviceWorker.getRegistrations();for(let t of e)await t.unregister()}catch(e){console.warn(`Failed to unregister service worker:`,e)}},[]),c=p(()=>({isUpdateAvailable:n,isOfflineReady:i,update:o,unregister:s}),[n,i,o,s]);return l(t,{value:c,children:e.children})}function it(t){let{isHotReloadingEnabled:n}=I(),{frontendVersion:r,versionsOnLastUpdate:i}=T(),{unregister:o}=F(),{data:c,loading:l,error:u}=a(e,{frontendVersion:r,corequeryPackageVersion:i.corequeryPackageVersion}),d=!n&&!l&&u==null&&c!=null&&c.isForceUpdateOfServiceWorkerRequired;return s(()=>{async function e(){d&&(await o(),window.location.reload())}e()},[d,o]),t.children}var at=R(()=>G(()=>import(`./About-UCAQqmkn.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))),ot=R(()=>G(()=>import(`./AdminControls-DUl1Ekw-.js`),__vite__mapDeps([15,2,9,10,11]))),st=R(()=>G(()=>import(`./Debug-D02mGr8K.js`),__vite__mapDeps([16,1,2,3,17,18,11,4,19,5,9,10,12,13,14]))),ct=R(()=>G(()=>import(`./Home-Bjk9oz22.js`),__vite__mapDeps([20,2,4,6,7,8,9,10,11]))),lt=R(()=>G(()=>import(`./Nearby-D9MN_gGw.js`),__vite__mapDeps([21,2,9]))),ut=R(()=>G(()=>import(`./Service-DuKHjsBr.js`),__vite__mapDeps([22,1,2,17,18,11,4,23,24,8,9,10]))),dt=R(()=>G(()=>import(`./Settings-coF5Xsk_.js`),__vite__mapDeps([25,2,26,9,10,11,12,27,18]))),ft=R(()=>G(()=>import(`./Status-Cx8LBciv.js`),__vite__mapDeps([28,2,9,10,11]))),pt=R(()=>G(()=>import(`./ZenMode-BTXaHvYK.js`),__vite__mapDeps([29,2,8,9,10,11]))),mt=R(()=>G(()=>import(`./Stop-CMvSpZTe.js`),__vite__mapDeps([30,1,2,17,18,11,4,8,9,10,31,3,32,24,19]))),ht=R(()=>G(()=>import(`./Line-pWcCnw4E.js`),__vite__mapDeps([33,1,2,3,4,26,34,23,7,9,10,11,13,14,31,32,17,18,24,19,27]))),gt=R(()=>G(()=>import(`./NotFound-C6vki9__.js`),__vite__mapDeps([35,2,31,1,3,32,17,18,11,4,24,19,9])));function _t(){return l(rt,{children:l(de,{children:l(it,{children:l(be,{children:l(ge,{children:l(h,{children:l($e,{children:l(B,{children:l(u,{children:[l(S,{path:`/`,component:ct}),l(S,{path:`/about`,component:at}),l(S,{path:`/admin`,component:ot}),l(S,{path:`/debug`,component:st}),l(S,{path:`/line/:id`,component:ht}),l(S,{path:`/nearby`,component:lt}),l(S,{path:`/service/:sourceId/:intrasourceId`,component:ut}),l(S,{path:`/settings`,component:dt}),l(S,{path:`/status`,component:ft}),l(S,{path:`/stop/:id`,component:mt}),l(S,{path:`/zen`,component:pt}),l(S,{default:!0,component:gt})]})})})})})})})})})}c(l(_t,{}),document.body);export{q as n,ve as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{h as e}from"./use-nav-exemptions-K_D5A5Dp.js";import{n as t}from"./use-foundational-data-CJfuPRzD.js";function n(e){return e!=null}function r(e){if(e==null)throw Error(`Expected non-null value.`);return e}var i={stop:e=>e,station:e=>`${e} Station`},a={line:e=>`${e} Line`,route:e=>`Route ${e}`},o={stop:`stops`,station:`stations`},s={line:`lines`,route:`routes`};function c(){let{foda:n}=t();return e(()=>({formatStop:i[n.terminology.stop],formatLine:a[n.terminology.line],pluralStopsTerm:o[n.terminology.stop],pluralLinesTerm:s[n.terminology.line]}),[n.terminology])}export{r as n,n as r,c as t};
|