corequery 0.33.1 → 0.35.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.
Files changed (84) hide show
  1. package/package.json +1 -1
  2. package/server/dist/server/api/handlers/departures/v0/index.js +17 -7
  3. package/server/dist/server/api/handlers/departures/v0/index.js.map +1 -1
  4. package/server/dist/server/api/handlers/departures/v0/to-api-result.js +1 -0
  5. package/server/dist/server/api/handlers/departures/v0/to-api-result.js.map +1 -1
  6. package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js +2 -0
  7. package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js.map +1 -1
  8. package/server/dist/server/config/config.d.ts +1 -0
  9. package/server/dist/server/config/linting/types.d.ts +1 -0
  10. package/server/dist/server/corequery.d.ts +1 -0
  11. package/server/dist/server/corequery.js +2 -0
  12. package/server/dist/server/corequery.js.map +1 -1
  13. package/server/dist/server/data/departure-filters/departure-filter-type.d.ts +2 -2
  14. package/server/dist/server/data/departure-filters/departure-filter-type.js.map +1 -1
  15. package/server/dist/server/data/departure-filters/departure-filters.d.ts +4 -5
  16. package/server/dist/server/data/departure-filters/departure-filters.js +2 -2
  17. package/server/dist/server/data/departure-filters/departure-filters.js.map +1 -1
  18. package/server/dist/server/data/departure-filters/types/line-tag.js +1 -1
  19. package/server/dist/server/data/departure-filters/types/line-tag.js.map +1 -1
  20. package/server/dist/server/data/departure-filters/types/line.js +1 -1
  21. package/server/dist/server/data/departure-filters/types/line.js.map +1 -1
  22. package/server/dist/server/data/departure-filters/types/service-tag.js +1 -1
  23. package/server/dist/server/data/departure-filters/types/service-tag.js.map +1 -1
  24. package/server/dist/server/data/service/service-source.d.ts +11 -1
  25. package/server/dist/server/data/service/zipper-departures-iterator.d.ts +3 -2
  26. package/server/dist/server/data/service/zipper-departures-iterator.js +8 -9
  27. package/server/dist/server/data/service/zipper-departures-iterator.js.map +1 -1
  28. package/server/dist/shared/apis/departures/v0/departure.d.ts +5 -0
  29. package/server/dist/shared/apis/departures/v0/departure.js +5 -0
  30. package/server/dist/shared/apis/departures/v0/departure.js.map +1 -1
  31. package/server/dist/shared/apis/departures/v0/index.d.ts +5 -0
  32. package/server/dist/shared/apis/foundational-data/v1/foundational-data.d.ts +1 -0
  33. package/server/dist/shared/apis/foundational-data/v1/foundational-data.js +1 -0
  34. package/server/dist/shared/apis/foundational-data/v1/foundational-data.js.map +1 -1
  35. package/server/dist/shared/apis/foundational-data/v1/index.d.ts +1 -0
  36. package/web/dist/assets/{About-BUHOPQcu.js → About-DJhKXgnn.js} +1 -1
  37. package/web/dist/assets/AdminControls-D0pgA5wf.js +1 -0
  38. package/web/dist/assets/{Alert-B1bEDR3t.js → Alert-DSl3_gX3.js} +1 -1
  39. package/web/dist/assets/Debug-Cd_f8CKx.js +1 -0
  40. package/web/dist/assets/Divider-C465PGQW.js +1 -0
  41. package/web/dist/assets/ErrorMessage-Mp0VVnTj.js +1 -0
  42. package/web/dist/assets/Home-DIEadcoR.js +1 -0
  43. package/web/dist/assets/{Line-CYTWM3jD.js → Line-Dxew3yXf.js} +1 -1
  44. package/web/dist/assets/{LinkText-sdmJpshg.js → LinkText-Co4qc0dx.js} +1 -1
  45. package/web/dist/assets/{Markdown-D5fQv556.js → Markdown-BY6JcM-Z.js} +1 -1
  46. package/web/dist/assets/{MingcuteAlertLine-CdthHQmK.js → MingcuteAlertLine-DxgntDGK.js} +1 -1
  47. package/web/dist/assets/Nearby-CqDDKuYT.js +1 -0
  48. package/web/dist/assets/NotFound-Dmj1p5xO.js +1 -0
  49. package/web/dist/assets/NotFoundPage-CoVT8xxG.js +1 -0
  50. package/web/dist/assets/{Page-BMcxP_9m.js → Page-eZ-IZNxm.js} +1 -1
  51. package/web/dist/assets/{Picker-DVb1h4gb.js → Picker-D4ga8LYJ.js} +1 -1
  52. package/web/dist/assets/{Placeholder-BRnxNmKm.js → Placeholder-B5DNAGHP.js} +1 -1
  53. package/web/dist/assets/{Service-BkIhOzWr.js → Service-frX-LyRg.js} +1 -1
  54. package/web/dist/assets/Settings-BgHb1nlk.js +1 -0
  55. package/web/dist/assets/{SimpleMobileHeaderContent-Cpqzarjr.js → SimpleMobileHeaderContent-y6m4_5yJ.js} +1 -1
  56. package/web/dist/assets/Status-sLRF_nKb.js +1 -0
  57. package/web/dist/assets/Stop-DEsRmVC1.js +11 -0
  58. package/web/dist/assets/Strong-DYvq_eAK.js +1 -0
  59. package/web/dist/assets/ZenMode-DdoTtVJG.js +1 -0
  60. package/web/dist/assets/index-ByA44-P7.js +2 -0
  61. package/web/dist/assets/index-C46bcc5o.css +2 -0
  62. package/web/dist/assets/{linear-BPbFILtP.js → linear-BWJmB0m_.js} +1 -1
  63. package/web/dist/assets/{use-api-Ft007Dfs.js → use-api-_Y5vsFb-.js} +2 -2
  64. package/web/dist/assets/{use-foda-synced-query-hrC70vJ_.js → use-foda-synced-query-BsS3nwV1.js} +1 -1
  65. package/web/dist/assets/{use-foundational-data-BEVQRFj9.js → use-foundational-data-DyAlFXWG.js} +1 -1
  66. package/web/dist/assets/{use-nav-exemptions-QtGbfEPT.js → use-nav-exemptions-Daz3EeSR.js} +1 -1
  67. package/web/dist/assets/{use-simple-headers-DJo4M2YI.js → use-simple-headers-BGdX3p-e.js} +1 -1
  68. package/web/dist/index.html +6 -6
  69. package/web/dist/sw.js +1 -1
  70. package/web/dist/assets/AdminControls-CHryNpn4.js +0 -1
  71. package/web/dist/assets/Debug-C82KdgDu.js +0 -1
  72. package/web/dist/assets/Divider-lz6Cf6K8.js +0 -1
  73. package/web/dist/assets/ErrorMessage-CCAB4vXB.js +0 -1
  74. package/web/dist/assets/Home-BE8Ov5RO.js +0 -1
  75. package/web/dist/assets/Nearby-BNDxZx1J.js +0 -1
  76. package/web/dist/assets/NotFound-CEJ64l5x.js +0 -1
  77. package/web/dist/assets/NotFoundPage-B17fzPr9.js +0 -1
  78. package/web/dist/assets/Settings-Cz0PRdM4.js +0 -1
  79. package/web/dist/assets/Status-B6JsOy21.js +0 -1
  80. package/web/dist/assets/Stop-Dia974mX.js +0 -1
  81. package/web/dist/assets/Strong-C0VDYprE.js +0 -1
  82. package/web/dist/assets/ZenMode-DCn99EM0.js +0 -1
  83. package/web/dist/assets/index-CyUttHc8.js +0 -2
  84. package/web/dist/assets/index-DJPX60jz.css +0 -2
@@ -1 +1 @@
1
- import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import{l}from"./use-api-Ft007Dfs.js";import{n as u}from"./use-foundational-data-BEVQRFj9.js";import{t as d}from"./scope-B-e4l8Dr.js";import{i as f,n as p,o as m,r as h,t as g}from"./linear-BPbFILtP.js";import{t as _}from"./LinkText-sdmJpshg.js";import{a as v,d as y,v as b}from"./index-CyUttHc8.js";import{t as x}from"./Page-BMcxP_9m.js";import{t as S}from"./use-simple-headers-DJo4M2YI.js";import{t as C}from"./Alert-B1bEDR3t.js";import{t as w}from"./NotFoundPage-B17fzPr9.js";import{t as T}from"./Picker-DVb1h4gb.js";function E(e){throw Error(`Unexpected value: ${String(e)}`)}function D(i){let{foda:o}=u(),{appName:s}=b(),c=e(()=>i.fallbackStopList.map(e=>o.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[o.stops,i.fallbackStopList]);return r(a,{class:t(i.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Stops`}),r(C,{type:`info`,children:r(a,{class:`gap-6`,children:[r(n,{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 `,s,` to be able to view.`,` `]}),r(n,{style:`strong`,children:r(_,{href:`/debug`,children:`Help me update`})})]})}),r(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:c.map((e,t)=>r(n,{children:r(`li`,{children:r(_,{href:`/stop/${e.urlPath}`,children:e.name})})},t))})]})}function O(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`;if(t.type===`regular`)return{content:r(n,{style:`strong`,children:r(_,{href:a,style:`subtle`,children:i.name})})};if(t.type===`always-express`)return{content:r(n,{style:`small-weak`,children:r(_,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};E(t.type)})}function k(t){let{foda:n}=u(),i=e(()=>({type:`linear`,stops:O(n,t.diagram.stops)}),[n,t.diagram.stops]);return r(g,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var A=10,j=15,M=class extends h{_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+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchA,i.branches.top-j,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchB,i.branches.top-j,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,N),i=d(r[0]),a=d(r[r.length-1]),o=this._extractYLevels(t,P),s=d(o[0]),c=d(o[o.length-1]),l=this._extractYLevels(n,F),u=d(l[0]),f=d(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:f},branches:{top:Math.min(s,u),bottom:Math.max(c,f)}}}}},N=`_diagram-common-stops`,P=`_diagram-branch-a-stops`,F=`_diagram-branch-b-stops`;function I(n){let{settings:i}=y(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new M(e,t),[]);return s.structure.commonStops.length<1||s.structure.branchAStops.length<1||s.structure.branchBStops.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-3 row-1 -ml-4`,N),xAlign:`left`,children:n.structure.commonStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-1 row-2`,P),xAlign:`right`,children:n.structure.branchAStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-2`,F),xAlign:`left`,children:n.structure.branchBStops.map((e,t)=>r(o,{children:e.content},t))})]})}function L(t){let{foda:n}=u(),i=e(()=>({type:`branch`,commonStops:O(n,t.diagram.commonStops),branchAStops:O(n,t.diagram.branchAStops),branchBStops:O(n,t.diagram.branchBStops)}),[n,t.diagram]);return r(I,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var R=10,z=15,B=24,V=1,H=class extends h{_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-V),e.lineTo(r.loopLeft,i.loopLeft.bottom+V)}),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-V),e.lineTo(r.loopRight,i.loopRight.bottom+V)}),n.length>0){let e=d(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-R),t.bezierCurveTo(r.main,e-z-R,r.loopLeft,i.loop.bottom+z,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-R),t.bezierCurveTo(r.main,e-z-R,r.loopRight,i.loop.bottom+z,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+B,r.loopRight,i.loop.bottom+B,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-B,r.loopRight,i.loop.top-B,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,W),i=this._extractYLevels(t,G),a=this._extractYLevels(n,U),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=d(o??s),f=d(s??o),p=d(c??l),m=d(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:p},loopRight:{all:i,top:f,bottom:m},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,f),bottom:Math.max(p,m)}}}}},U=`_diagram-main-stops`,W=`_diagram-loop-left-stops`,G=`_diagram-loop-right-stops`;function K(n){let{settings:i}=y(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new H(e,t),[]),{loopLeftStops:u,loopRightStops:d}=s.structure;return u.length+d.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-1 row-1 py-4`,W),xAlign:`right`,yAlign:`center`,children:n.structure.loopLeftStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-1 py-4`,G),xAlign:`left`,yAlign:`center`,children:n.structure.loopRightStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-2 -ml-4`,U,{"pt-4":n.structure.mainStops.length>0}),xAlign:`left`,children:n.structure.mainStops.map((e,t)=>r(o,{children:e.content},t))})]})}function q(t){let{foda:n}=u(),i=e(()=>({type:`loop`,loopLeftStops:O(n,t.diagram.loopLeftStops),loopRightStops:O(n,t.diagram.loopRightStops),mainStops:O(n,t.diagram.mainStops)}),[n,t.diagram]);return r(K,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}function J(e){return r(o,{class:t(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:r(Y,{diagram:e.diagram})})}function Y(e){if(e.diagram.type===`linear`)return r(k,{diagram:e.diagram});if(e.diagram.type===`branch`)return r(L,{diagram:e.diagram});if(e.diagram.type===`loop`)return r(q,{diagram:e.diagram});E(e.diagram)}function X(e){let i=e.diagram.entries.filter(e=>l(e.type));return i.length<e.diagram.entries.length?r(D,{fallbackStopList:e.diagram.fallbackStopList}):r(a,{class:t(e.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Diagram`}),i.length===1?r(J,{diagram:d(i[0])}):r(Z,{entries:i},i.length)]})}function Z(t){let[n,i]=s(0),o=e(()=>t.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[t.entries]);return r(a,{class:`gap-4`,children:[r(T,{class:`self-start`,value:n.toFixed(),options:o,onChange:e=>{i(m(e))}}),r(J,{diagram:d(t.entries[n])})]})}function Q(){let{params:{id:t}}=i(),{foda:n}=u(),a=e(()=>n.lines.getByUrlPath(t??``),[n.lines,t]);return a==null?r(w,{afterConfirming:`foundational-data-version`}):r($,{line:a},a.id)}function $(e){let{formatLine:t}=v();return r(x,{...S({title:t(e.line.name),back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&r(X,{diagram:e.line.diagram})})})}export{Q as default};
1
+ import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-Daz3EeSR.js";import{l}from"./use-api-_Y5vsFb-.js";import{n as u}from"./use-foundational-data-DyAlFXWG.js";import{t as d}from"./scope-B-e4l8Dr.js";import{i as f,n as p,o as m,r as h,t as g}from"./linear-BWJmB0m_.js";import{t as _}from"./LinkText-Co4qc0dx.js";import{f as v,o as y,y as b}from"./index-ByA44-P7.js";import{t as x}from"./Page-eZ-IZNxm.js";import{t as S}from"./use-simple-headers-BGdX3p-e.js";import{t as C}from"./Alert-DSl3_gX3.js";import{t as w}from"./NotFoundPage-CoVT8xxG.js";import{t as T}from"./Picker-D4ga8LYJ.js";function E(e){throw Error(`Unexpected value: ${String(e)}`)}function D(i){let{foda:o}=u(),{appName:s}=b(),c=e(()=>i.fallbackStopList.map(e=>o.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[o.stops,i.fallbackStopList]);return r(a,{class:t(i.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Stops`}),r(C,{type:`info`,children:r(a,{class:`gap-6`,children:[r(n,{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 `,s,` to be able to view.`,` `]}),r(n,{style:`strong`,children:r(_,{href:`/debug`,children:`Help me update`})})]})}),r(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:c.map((e,t)=>r(n,{children:r(`li`,{children:r(_,{href:`/stop/${e.urlPath}`,children:e.name})})},t))})]})}function O(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`;if(t.type===`regular`)return{content:r(n,{style:`strong`,children:r(_,{href:a,style:`subtle`,children:i.name})})};if(t.type===`always-express`)return{content:r(n,{style:`small-weak`,children:r(_,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};E(t.type)})}function k(t){let{foda:n}=u(),i=e(()=>({type:`linear`,stops:O(n,t.diagram.stops)}),[n,t.diagram.stops]);return r(g,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var A=10,j=15,M=class extends h{_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+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchA,i.branches.top-j,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchB,i.branches.top-j,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,N),i=d(r[0]),a=d(r[r.length-1]),o=this._extractYLevels(t,P),s=d(o[0]),c=d(o[o.length-1]),l=this._extractYLevels(n,F),u=d(l[0]),f=d(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:f},branches:{top:Math.min(s,u),bottom:Math.max(c,f)}}}}},N=`_diagram-common-stops`,P=`_diagram-branch-a-stops`,F=`_diagram-branch-b-stops`;function I(n){let{settings:i}=v(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new M(e,t),[]);return s.structure.commonStops.length<1||s.structure.branchAStops.length<1||s.structure.branchBStops.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-3 row-1 -ml-4`,N),xAlign:`left`,children:n.structure.commonStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-1 row-2`,P),xAlign:`right`,children:n.structure.branchAStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-2`,F),xAlign:`left`,children:n.structure.branchBStops.map((e,t)=>r(o,{children:e.content},t))})]})}function L(t){let{foda:n}=u(),i=e(()=>({type:`branch`,commonStops:O(n,t.diagram.commonStops),branchAStops:O(n,t.diagram.branchAStops),branchBStops:O(n,t.diagram.branchBStops)}),[n,t.diagram]);return r(I,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var R=10,z=15,B=24,V=1,H=class extends h{_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-V),e.lineTo(r.loopLeft,i.loopLeft.bottom+V)}),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-V),e.lineTo(r.loopRight,i.loopRight.bottom+V)}),n.length>0){let e=d(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-R),t.bezierCurveTo(r.main,e-z-R,r.loopLeft,i.loop.bottom+z,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-R),t.bezierCurveTo(r.main,e-z-R,r.loopRight,i.loop.bottom+z,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+B,r.loopRight,i.loop.bottom+B,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-B,r.loopRight,i.loop.top-B,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,W),i=this._extractYLevels(t,G),a=this._extractYLevels(n,U),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=d(o??s),f=d(s??o),p=d(c??l),m=d(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:p},loopRight:{all:i,top:f,bottom:m},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,f),bottom:Math.max(p,m)}}}}},U=`_diagram-main-stops`,W=`_diagram-loop-left-stops`,G=`_diagram-loop-right-stops`;function K(n){let{settings:i}=v(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new H(e,t),[]),{loopLeftStops:u,loopRightStops:d}=s.structure;return u.length+d.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-1 row-1 py-4`,W),xAlign:`right`,yAlign:`center`,children:n.structure.loopLeftStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-1 py-4`,G),xAlign:`left`,yAlign:`center`,children:n.structure.loopRightStops.map((e,t)=>r(o,{children:e.content},t))}),r(a,{class:t(`gap-6 col-3 row-2 -ml-4`,U,{"pt-4":n.structure.mainStops.length>0}),xAlign:`left`,children:n.structure.mainStops.map((e,t)=>r(o,{children:e.content},t))})]})}function q(t){let{foda:n}=u(),i=e(()=>({type:`loop`,loopLeftStops:O(n,t.diagram.loopLeftStops),loopRightStops:O(n,t.diagram.loopRightStops),mainStops:O(n,t.diagram.mainStops)}),[n,t.diagram]);return r(K,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}function J(e){return r(o,{class:t(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:r(Y,{diagram:e.diagram})})}function Y(e){if(e.diagram.type===`linear`)return r(k,{diagram:e.diagram});if(e.diagram.type===`branch`)return r(L,{diagram:e.diagram});if(e.diagram.type===`loop`)return r(q,{diagram:e.diagram});E(e.diagram)}function X(e){let i=e.diagram.entries.filter(e=>l(e.type));return i.length<e.diagram.entries.length?r(D,{fallbackStopList:e.diagram.fallbackStopList}):r(a,{class:t(e.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Diagram`}),i.length===1?r(J,{diagram:d(i[0])}):r(Z,{entries:i},i.length)]})}function Z(t){let[n,i]=s(0),o=e(()=>t.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[t.entries]);return r(a,{class:`gap-4`,children:[r(T,{class:`self-start`,value:n.toFixed(),options:o,onChange:e=>{i(m(e))}}),r(J,{diagram:d(t.entries[n])})]})}function Q(){let{params:{id:t}}=i(),{foda:n}=u(),a=e(()=>n.lines.getByUrlPath(t??``),[n.lines,t]);return a==null?r(w,{afterConfirming:`foundational-data-version`}):r($,{line:a},a.id)}function $(e){let{formatLine:t}=y();return r(x,{...S({title:t(e.line.name),back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&r(X,{diagram:e.line.diagram})})})}export{Q as default};
@@ -1 +1 @@
1
- import{a as e,c as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";var r={default:`text-accent-text underline`,subtle:`hover:underline`,"strong-subtle":`font-bold text-fg-strong hover:underline`};function i(i){let a=r[i.style??`default`],o=t(a,`inline`,i.class);return i.onClick==null?i.href==null?n(`span`,{class:o,style:e(i.dynamicColor),children:i.children}):n(`a`,{class:o,style:e(i.dynamicColor),href:i.href,children:i.children}):n(`span`,{class:o,style:e(i.dynamicColor),onClick:i.onClick,children:i.children})}export{i as t};
1
+ import{a as e,c as t,l as n}from"./use-nav-exemptions-Daz3EeSR.js";var r={default:`text-accent-text underline`,subtle:`hover:underline`,"strong-subtle":`font-bold text-fg-strong hover:underline`};function i(i){let a=r[i.style??`default`],o=t(a,`inline`,i.class);return i.onClick==null?i.href==null?n(`span`,{class:o,style:e(i.dynamicColor),children:i.children}):n(`a`,{class:o,style:e(i.dynamicColor),href:i.href,children:i.children}):n(`span`,{class:o,style:e(i.dynamicColor),onClick:i.onClick,children:i.children})}export{i as t};
@@ -1,2 +1,2 @@
1
- import{C as e,_ as t,c as n,i as r,l as i,r as a}from"./use-nav-exemptions-QtGbfEPT.js";import{t as o}from"./LinkText-sdmJpshg.js";import{t as s}from"./Strong-C0VDYprE.js";var c=/\[([^[\]]+)\]\(([^()]+)\)/,l=/\*\*(.+?)\*\*/,u=/\*([^*]+)\*/,d=/_([^_]+)_/;function f(t,n){let r=[],a=t;for(;a.length>0;){let t=p(a);if(t==null){r.push(a);break}t.index>0&&r.push(a.slice(0,t.index));let o=f(t.innerContent,n);r.push(t.wrap(i(e,{children:o}),n)),a=a.slice(t.index+t.fullMatch.length)}return r}function p(e){let t=[m(e),h(e),g(e,u),g(e,d)],n=null;for(let e of t)e!=null&&(n==null||e.index<n.index)&&(n=e);return n}function m(e){let t=e.match(c);if(t==null||t.index==null||t[1]==null||t[2]==null)return null;let n=t[2];return!n.startsWith(`https://`)&&!n.startsWith(`/`)?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.link(e,n)}}function h(e){let t=e.match(l);return t==null||t.index==null||t[1]==null?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.bold(e)}}function g(e,t){let n=e.match(t);return n==null||n.index==null||n[1]==null?null:{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(e,t)=>t.italic(e)}}function _(e){return i(`em`,{class:n(e.class),children:e.children})}var v={bold:e=>i(s,{children:e}),italic:e=>i(_,{children:e}),link:(e,t)=>i(o,{href:t,children:e})},y={h1:{render:(e,t)=>i(r,{as:`h1`,style:`title`,children:e},t),marginTop:`mt-12`},h2:{render:(e,t)=>i(r,{as:`h2`,style:`subtitle`,children:e},t),marginTop:`mt-12`},h3:{render:(e,t)=>i(r,{as:`h3`,style:`strong`,children:e},t),marginTop:`mt-12`},p:{render:(e,t)=>i(r,{as:`p`,children:e},t),marginTop:`mt-8`},bold:v.bold,italic:v.italic,link:v.link};function b(n){let r=n.style??v,a=t(()=>f(n.markdown,r),[n.markdown,r]);return i(e,{children:a})}function x(e){return e.split(`
1
+ import{C as e,_ as t,c as n,i as r,l as i,r as a}from"./use-nav-exemptions-Daz3EeSR.js";import{t as o}from"./LinkText-Co4qc0dx.js";import{t as s}from"./Strong-DYvq_eAK.js";var c=/\[([^[\]]+)\]\(([^()]+)\)/,l=/\*\*(.+?)\*\*/,u=/\*([^*]+)\*/,d=/_([^_]+)_/;function f(t,n){let r=[],a=t;for(;a.length>0;){let t=p(a);if(t==null){r.push(a);break}t.index>0&&r.push(a.slice(0,t.index));let o=f(t.innerContent,n);r.push(t.wrap(i(e,{children:o}),n)),a=a.slice(t.index+t.fullMatch.length)}return r}function p(e){let t=[m(e),h(e),g(e,u),g(e,d)],n=null;for(let e of t)e!=null&&(n==null||e.index<n.index)&&(n=e);return n}function m(e){let t=e.match(c);if(t==null||t.index==null||t[1]==null||t[2]==null)return null;let n=t[2];return!n.startsWith(`https://`)&&!n.startsWith(`/`)?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.link(e,n)}}function h(e){let t=e.match(l);return t==null||t.index==null||t[1]==null?null:{index:t.index,fullMatch:t[0],innerContent:t[1],wrap:(e,t)=>t.bold(e)}}function g(e,t){let n=e.match(t);return n==null||n.index==null||n[1]==null?null:{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(e,t)=>t.italic(e)}}function _(e){return i(`em`,{class:n(e.class),children:e.children})}var v={bold:e=>i(s,{children:e}),italic:e=>i(_,{children:e}),link:(e,t)=>i(o,{href:t,children:e})},y={h1:{render:(e,t)=>i(r,{as:`h1`,style:`title`,children:e},t),marginTop:`mt-12`},h2:{render:(e,t)=>i(r,{as:`h2`,style:`subtitle`,children:e},t),marginTop:`mt-12`},h3:{render:(e,t)=>i(r,{as:`h3`,style:`strong`,children:e},t),marginTop:`mt-12`},p:{render:(e,t)=>i(r,{as:`p`,children:e},t),marginTop:`mt-8`},bold:v.bold,italic:v.italic,link:v.link};function b(n){let r=n.style??v,a=t(()=>f(n.markdown,r),[n.markdown,r]);return i(e,{children:a})}function x(e){return e.split(`
2
2
  `).map(e=>e.replace(/[\r\t]/g,``).trim()).filter(e=>e.length>0).map(e=>{let t=e.match(/^### (.+)$/);if(t!=null&&t[1]!=null)return{kind:`h3`,content:t[1]};let n=e.match(/^## (.+)$/);if(n!=null&&n[1]!=null)return{kind:`h2`,content:n[1]};let r=e.match(/^# (.+)$/);return r!=null&&r[1]!=null?{kind:`h1`,content:r[1]}:{kind:`p`,content:e}})}function S(e){let r=e.style??y,o=t(()=>x(e.markdown).map((e,t)=>{let n=r[e.kind],a=t===0?``:n.marginTop;return i(`div`,{class:a,children:n.render(i(b,{style:r,markdown:e.content}),t)},t)}),[e.markdown,r]);return i(a,{class:n(e.class),children:o})}export{b as n,S as t};
@@ -1 +1 @@
1
- import{l as e}from"./use-nav-exemptions-QtGbfEPT.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.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`}),e(`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`})]})})}export{t};
1
+ import{l as e}from"./use-nav-exemptions-Daz3EeSR.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.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`}),e(`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`})]})})}export{t};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-Daz3EeSR.js";import{t as r}from"./Page-eZ-IZNxm.js";function i(){return t(r,{mobileHeader:null,desktopHeader:null,children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`Idk`})})})}export{i as default};
@@ -0,0 +1 @@
1
+ import{l as e}from"./use-nav-exemptions-Daz3EeSR.js";import{t}from"./NotFoundPage-CoVT8xxG.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
@@ -0,0 +1 @@
1
+ import{h as e,i as t,l as n,r,v as i}from"./use-nav-exemptions-Daz3EeSR.js";import{i as a}from"./use-api-_Y5vsFb-.js";import{n as o}from"./use-foundational-data-DyAlFXWG.js";import{l as s,n as c,p as l,r as u,s as d,v as f,y as p}from"./index-ByA44-P7.js";import{t as m}from"./Page-eZ-IZNxm.js";function h(e){let t=u(a,{}),n=g(e===`frontend-version`,t),r=_(e===`foundational-data-version`,t);return t.loading||n||r}function g(t,n){let{isHotReloadingEnabled:r}=c(),{frontendVersion:i}=p(),{unregister:a}=d(),o=t&&!r&&!n.loading&&n.error==null&&n.data!=null&&n.data.frontendVersion!==i;return e(()=>{if(!o)return;async function e(){await a(),window.location.reload()}e()},[o,a]),o}function _(t,n){let{foda:r,forceFodaUpdate:a}=o(),[s,c]=i(!1),[l,u]=i(!1),d=t&&!n.loading&&n.error==null&&n.data!=null&&n.data.foundationalDataHash!==r.hash;return e(()=>{if(!d)return;async function e(){u(!0);try{await a()}catch{console.warn(`Foundational data is outdated, but force update failed.`)}finally{c(!0),u(!1)}}e()},[d,a]),d&&!s||l}function v({afterConfirming:e}){return h(e)?n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{xAlign:`center`,yAlign:`center`,children:n(f,{})})}):n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[n(t,{style:`title`,align:`center`,children:`Page not found`}),n(t,{align:`center`,children:`This page doesn't exist, at least not anymore!`}),n(l,{href:`/`,text:`Go home`,icon:s})]})})}export{v as t};
@@ -1 +1 @@
1
- import{c as e,h as t,l as n,n as r,r as i,s as a,t as o,v as s}from"./use-nav-exemptions-QtGbfEPT.js";function c(t){return n(a,{class:e(t.class,`not-desktop:hidden`),children:t.children})}var l=32;function u(r){let[i,o]=s(!0);return t(()=>{function e(){o(window.scrollY<l)}return document.addEventListener(`scroll`,e),e(),()=>{document.removeEventListener(`scroll`,e)}},[]),n(a,{class:e(r.class,`fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden transition-[opacity,visibility] duration-200`,{"invisible opacity-0":r.hideWhenScrolledToTop&&i}),children:r.children})}function d(t){let{showMobileNav:s}=o(),l=t.centered??!0,d=t.hideMobileHeaderWhenScrolledToTop??!1;return n(i,{class:e(`bg-bg min-h-svh relative`,{"pt-14":t.mobileHeader!=null&&!d,"not-desktop:pb-18":s,"desktop:grid-rows-[auto_1fr]":t.desktopHeader!=null},`desktop:pt-12`),children:[t.desktopHeader!=null&&n(c,{class:`z-0`,children:t.desktopHeader}),t.mobileHeader!=null&&n(u,{class:`h-14 z-1`,hideWhenScrolledToTop:d,children:t.mobileHeader}),t.agnosticHeader!=null&&n(a,{class:`z-0`,children:t.agnosticHeader}),n(a,{class:`z-0 grow`,children:l?n(r,{children:t.children}):t.children})]})}export{d as t};
1
+ import{c as e,h as t,l as n,n as r,r as i,s as a,t as o,v as s}from"./use-nav-exemptions-Daz3EeSR.js";function c(t){return n(a,{class:e(t.class,`not-desktop:hidden`),children:t.children})}var l=32;function u(r){let[i,o]=s(!0);return t(()=>{function e(){o(window.scrollY<l)}return document.addEventListener(`scroll`,e),e(),()=>{document.removeEventListener(`scroll`,e)}},[]),n(a,{class:e(r.class,`fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden transition-[opacity,visibility] duration-200`,{"invisible opacity-0":r.hideWhenScrolledToTop&&i}),children:r.children})}function d(t){let{showMobileNav:s}=o(),l=t.centered??!0,d=t.hideMobileHeaderWhenScrolledToTop??!1;return n(i,{class:e(`bg-bg min-h-svh relative`,{"pt-14":t.mobileHeader!=null&&!d,"not-desktop:pb-18":s,"desktop:grid-rows-[auto_1fr]":t.desktopHeader!=null},`desktop:pt-12`),children:[t.desktopHeader!=null&&n(c,{class:`z-0`,children:t.desktopHeader}),t.mobileHeader!=null&&n(u,{class:`h-14 z-1`,hideWhenScrolledToTop:d,children:t.mobileHeader}),t.agnosticHeader!=null&&n(a,{class:`z-0`,children:t.agnosticHeader}),n(a,{class:`z-0 grow`,children:l?n(r,{children:t.children}):t.children})]})}export{d as t};
@@ -1 +1 @@
1
- import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{h as r,m as i}from"./index-CyUttHc8.js";var a=[`bg-transparent`,`group-hover:bg-soft-hover`,`group-active:bg-soft-active`],o=[`bg-accent`,`group-hover:bg-accent-hover`,`group-active:bg-accent-active`],s=[`[--color-fg:var(--color-on-accent)]`,`[--color-fg-strong:var(--color-on-accent)]`,`[--color-fg-weak:var(--color-on-accent)]`],c=e(a),l=e(o),u=e(s);function d(t){return n(i,{class:e(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((e,r)=>n(f,{class:`shrink`,label:e.label,active:e.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(e.value)},e.value))})}function f(a){return n(r,{class:e(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[n(`div`,{class:e(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),n(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:n(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
1
+ import{c as e,i as t,l as n}from"./use-nav-exemptions-Daz3EeSR.js";import{g as r,h as i}from"./index-ByA44-P7.js";var a=[`bg-transparent`,`group-hover:bg-soft-hover`,`group-active:bg-soft-active`],o=[`bg-accent`,`group-hover:bg-accent-hover`,`group-active:bg-accent-active`],s=[`[--color-fg:var(--color-on-accent)]`,`[--color-fg-strong:var(--color-on-accent)]`,`[--color-fg-weak:var(--color-on-accent)]`],c=e(a),l=e(o),u=e(s);function d(t){return n(i,{class:e(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((e,r)=>n(f,{class:`shrink`,label:e.label,active:e.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(e.value)},e.value))})}function f(a){return n(r,{class:e(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[n(`div`,{class:e(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),n(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:n(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
@@ -1 +1 @@
1
- import{c as e,l as t}from"./use-nav-exemptions-QtGbfEPT.js";function n(n){return t(`div`,{class:e(n.class,`bg-placeholder animate-placeholder-pulse`)})}function r(r){return t(n,{...r,class:e(r.class,`h-[1em] -my-[0.13em]`)})}export{r as t};
1
+ import{c as e,l as t}from"./use-nav-exemptions-Daz3EeSR.js";function n(n){return t(`div`,{class:e(n.class,`bg-placeholder animate-placeholder-pulse`)})}function r(r){return t(n,{...r,class:e(r.class,`h-[1em] -my-[0.13em]`)})}export{r as t};
@@ -1 +1 @@
1
- import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o}from"./use-nav-exemptions-QtGbfEPT.js";import{o as s}from"./use-api-Ft007Dfs.js";import{n as c}from"./use-foundational-data-BEVQRFj9.js";import{a as l,t as u}from"./linear-BPbFILtP.js";import{t as d}from"./LinkText-sdmJpshg.js";import{_ as f,c as p,f as m,m as h}from"./index-CyUttHc8.js";import{t as g}from"./Page-BMcxP_9m.js";import{t as _}from"./use-simple-headers-DJo4M2YI.js";import{t as v}from"./use-foda-synced-query-hrC70vJ_.js";function y(n){let{foda:i}=c(),a=e(()=>({type:`linear`,stops:b(i,n.service.movements)}),[i,n.service.movements]);return r(o,{class:t(n.class),children:r(u,{class:n.class,structure:a,lightThemeColorHexCode:n.service.color?.lightModeHexCode??null,darkThemeColorHexCode:n.service.color?.darkModeHexCode??null})})}function b(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`,o=t.arrivalTime==null?null:new Date(Date.parse(t.arrivalTime)).toLocaleString(),s=t.departureTime==null?null:new Date(Date.parse(t.departureTime)).toLocaleString();if(o==null&&s==null)return{content:r(n,{style:`small-weak`,children:r(d,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};let c=s??o;return{content:r(h,{class:`gap-2 min-w-0`,children:[r(n,{style:`strong`,children:r(d,{href:a,style:`subtle`,children:i.name})}),r(n,{children:`•`}),r(n,{class:`shrink min-w-0`,oneLine:!0,children:c})]})}})}function x(){let{params:{sourceId:e,intrasourceId:t},query:{from:n}}=i(),{data:a,loading:o,error:c}=v(s,{sourceId:e??``,intrasourceId:t??``}),u=l(n??``);return o?r(C,{}):c!=null||a==null||u==null||u<0||a.service!=null&&u>a.service.movements.length-1?r(w,{}):a.service==null?r(T,{}):r(S,{service:a.service,movementIndex:u},`${e}/${t}`)}function S(e){return r(g,{..._({title:`${e.service.primaryDestinationText} service`,back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:[r(y,{service:e.service}),r(n,{style:`small-narrow`,children:`(Real-time data has not been provided for all stops. Times marked with * are estimates, extrapolated from the available data.)`})]})})}function C(){return r(g,{..._({title:`Loading...`,back:{href:`/`,text:`Home`}}),children:r(f,{})})}function w(){return r(g,{..._({title:`Error`,back:{href:`/`,text:`Home`}}),children:r(n,{children:`Failed to load service.`})})}function T(){return r(g,{mobileHeader:null,desktopHeader:null,children:r(a,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[r(n,{style:`title`,align:`center`,children:`Service not found`}),r(n,{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.`}),r(m,{href:`/`,text:`Go home`,icon:p})]})})}export{x as default};
1
+ import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o}from"./use-nav-exemptions-Daz3EeSR.js";import{o as s}from"./use-api-_Y5vsFb-.js";import{n as c}from"./use-foundational-data-DyAlFXWG.js";import{a as l,t as u}from"./linear-BWJmB0m_.js";import{t as d}from"./LinkText-Co4qc0dx.js";import{h as f,l as p,p as m,v as h}from"./index-ByA44-P7.js";import{t as g}from"./Page-eZ-IZNxm.js";import{t as _}from"./use-simple-headers-BGdX3p-e.js";import{t as v}from"./use-foda-synced-query-BsS3nwV1.js";function y(n){let{foda:i}=c(),a=e(()=>({type:`linear`,stops:b(i,n.service.movements)}),[i,n.service.movements]);return r(o,{class:t(n.class),children:r(u,{class:n.class,structure:a,lightThemeColorHexCode:n.service.color?.lightModeHexCode??null,darkThemeColorHexCode:n.service.color?.darkModeHexCode??null})})}function b(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`,o=t.arrivalTime==null?null:new Date(Date.parse(t.arrivalTime)).toLocaleString(),s=t.departureTime==null?null:new Date(Date.parse(t.departureTime)).toLocaleString();if(o==null&&s==null)return{content:r(n,{style:`small-weak`,children:r(d,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};let c=s??o;return{content:r(f,{class:`gap-2 min-w-0`,children:[r(n,{style:`strong`,children:r(d,{href:a,style:`subtle`,children:i.name})}),r(n,{children:`•`}),r(n,{class:`shrink min-w-0`,oneLine:!0,children:c})]})}})}function x(){let{params:{sourceId:e,intrasourceId:t},query:{from:n}}=i(),{data:a,loading:o,error:c}=v(s,{sourceId:e??``,intrasourceId:t??``}),u=l(n??``);return o?r(C,{}):c!=null||a==null||u==null||u<0||a.service!=null&&u>a.service.movements.length-1?r(w,{}):a.service==null?r(T,{}):r(S,{service:a.service,movementIndex:u},`${e}/${t}`)}function S(e){return r(g,{..._({title:`${e.service.primaryDestinationText} service`,back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:[r(y,{service:e.service}),r(n,{style:`small-narrow`,children:`(Real-time data has not been provided for all stops. Times marked with * are estimates, extrapolated from the available data.)`})]})})}function C(){return r(g,{..._({title:`Loading...`,back:{href:`/`,text:`Home`}}),children:r(h,{})})}function w(){return r(g,{..._({title:`Error`,back:{href:`/`,text:`Home`}}),children:r(n,{children:`Failed to load service.`})})}function T(){return r(g,{mobileHeader:null,desktopHeader:null,children:r(a,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[r(n,{style:`title`,align:`center`,children:`Service not found`}),r(n,{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.`}),r(m,{href:`/`,text:`Go home`,icon:p})]})})}export{x as default};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-Daz3EeSR.js";import{d as r,f as i}from"./index-ByA44-P7.js";import{t as a}from"./Page-eZ-IZNxm.js";import{t as o}from"./use-simple-headers-BGdX3p-e.js";import{t as s}from"./Divider-C465PGQW.js";import{t as c}from"./Picker-D4ga8LYJ.js";var l={auto:`Auto`,light:`Light`,dark:`Dark`},u=r.map(e=>({value:e,label:l[e]}));function d(e){let{settings:n,updateSettings:r}=i();return t(c,{class:e.class,value:n.theme,options:u,onChange:e=>{r(t=>t.with({theme:e}))}})}function f(){return t(a,{...o({title:`Settings`}),children:t(n,{class:`px-4 py-8 gap-8`,children:[t(n,{class:`gap-6`,children:[t(e,{style:`strong`,children:`Theme`}),t(e,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),t(d,{class:`self-start`})]}),t(s,{}),t(e,{style:`small-weak`,children:`(Settings are saved to your device's/browser's local storage.)`})]})})}export{f as default};
@@ -1 +1 @@
1
- import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{f as r,m as i}from"./index-CyUttHc8.js";function a(e){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:n(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14.657 17.657L9 12l5.657-5.657`})})}function o(o){return n(i,{class:e(o.class,`gap-2`,{"px-4":o.backHref==null,"pl-2 pr-4":o.backHref!=null}),yAlign:`center`,children:[o.backHref!=null&&n(r,{href:o.backHref,icon:a,theme:`hover`}),n(t,{style:`title`,children:o.title})]})}export{a as n,o as t};
1
+ import{c as e,i as t,l as n}from"./use-nav-exemptions-Daz3EeSR.js";import{h as r,p as i}from"./index-ByA44-P7.js";function a(e){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:n(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14.657 17.657L9 12l5.657-5.657`})})}function o(o){return n(r,{class:e(o.class,`gap-2`,{"px-4":o.backHref==null,"pl-2 pr-4":o.backHref!=null}),yAlign:`center`,children:[o.backHref!=null&&n(i,{href:o.backHref,icon:a,theme:`hover`}),n(t,{style:`title`,children:o.title})]})}export{a as n,o as t};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-Daz3EeSR.js";import{t as r}from"./Page-eZ-IZNxm.js";import{t as i}from"./use-simple-headers-BGdX3p-e.js";function a(){return t(r,{...i({title:`Status`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`LGTM`})})})}export{a as default};
@@ -0,0 +1,11 @@
1
+ import{C as e,_ as t,a as n,c as r,i,l as a,m as o,n as s,o as c,r as l,s as u}from"./use-nav-exemptions-Daz3EeSR.js";import{u as d}from"./use-api-_Y5vsFb-.js";import{n as f}from"./use-foundational-data-DyAlFXWG.js";import{a as p,h as m,i as h,m as g,o as _,p as v,t as y,v as b}from"./index-ByA44-P7.js";import{t as x}from"./Page-eZ-IZNxm.js";import{n as S,t as C}from"./SimpleMobileHeaderContent-y6m4_5yJ.js";import{t as w}from"./NotFoundPage-CoVT8xxG.js";import{t as T}from"./ErrorMessage-Mp0VVnTj.js";import{t as E}from"./use-foda-synced-query-BsS3nwV1.js";function D(e,t){return(e%t+t)%t}function O(e){return{hour:D(e-1,12)+1,half:e<12?`am`:`pm`}}function k(e){return{hideMobileHeaderWhenScrolledToTop:!0,mobileHeader:a(C,{title:e.title,backHref:e.back?.href??null}),agnosticHeader:a(u,{class:`not-desktop:bg-bg-navbar not-desktop:border-b not-desktop:border-soft-border`,children:a(s,{children:a(u,{class:`not-desktop:px-4 desktop:mx-4 desktop:border-b desktop:border-soft-border`,children:a(l,{class:r(`gap-8`,{"pt-4 pb-6 desktop:pt-6":e.back!=null,"py-6 desktop:pt-8":e.back==null,"desktop:pb-4":e.additionalContent==null}),children:[e.back!=null&&a(v,{text:e.back.text,href:e.back.href,icon:S,class:`self-start`,layout:`narrow-icon`}),a(l,{class:`gap-4`,children:[a(i,{style:`megatitle`,children:e.title}),e.additionalContent]})]})})})})}}function A(e){return a(`svg`,{class:r(e.class,`text-fg _dynamic-live-icon`),style:n(e.dynamicColor),xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,children:[a(`path`,{style:`
2
+ fill: none;
3
+ stroke: currentColor;
4
+ stroke-width: 4;
5
+ stroke-linecap: round;
6
+ `,d:`M 4,4 A 16,16 0 0 1 20,20`,class:`outer`}),a(`path`,{style:`
7
+ fill: none;
8
+ stroke: currentColor;
9
+ stroke-width: 4;
10
+ stroke-linecap: round;
11
+ `,d:`M 4,12 A 8,8 0 0 1 12,20`,class:`inner`})]})}function j(e){return a(m,{class:r(e.class,`relative gap-1`),children:[e.timeStrings.struckout!=null&&a(i,{style:`struckout-on-raised`,children:e.timeStrings.struckout}),a(i,{style:`strong`,dynamicColor:e.serviceColor,children:e.timeStrings.primary}),e.timeType!==`scheduled-time`&&a(A,{dynamicColor:e.serviceColor,class:`absolute -right-2.5 -top-1.75 text-icon-xs`})]})}function M(t){return a(m,{class:r(t.class,`gap-1`),children:[t.timeStrings.delay!=null&&a(e,{children:[a(N,{delay:t.timeStrings.delay}),a(i,{style:`small-narrow`,children:`•`})]}),t.timeStrings.schedule==null?a(p,{style:`small-narrow`,lineIds:t.lineIds}):a(i,{style:`small-narrow`,class:`shrink min-w-0`,oneLine:!0,children:[`Scheduled for `,t.timeStrings.schedule]})]})}function N(e){let t={green:`small-narrow-strong-success`,yellow:`small-narrow-strong-warning`,red:`small-narrow-strong-error`}[e.delay.color];return a(i,{style:t,children:e.delay.text})}var P=3.5;function F(e){let{currentMinute:n}=y(),{foda:o}=f(),s=t(()=>e.departure.getTimeStrings(n,o.formatTimezone),[e.departure,n,o.formatTimezone]);return a(l,{class:r(e.class,`h-14 min-w-0`),yAlign:`space-between`,children:[a(m,{xAlign:`space-between`,class:`gap-2 `,children:[a(m,{yAlign:`bottom`,class:`gap-1 shrink min-w-0`,children:[a(i,{style:`strong`,dynamicColor:e.departure.color,children:e.departure.primaryDestinationText}),e.departure.secondaryDestinationText!=null&&a(i,{style:`small-narrow`,class:`shrink min-w-0`,dynamicColor:e.departure.color,oneLine:!0,children:e.departure.secondaryDestinationText})]}),a(j,{timeType:e.departure.timeType,timeStrings:s,serviceColor:e.departure.color})]}),a(m,{xAlign:`space-between`,yAlign:`bottom`,children:[a(l,{class:`gap-3 min-w-0 shrink`,children:[a(i,{style:`small-narrow`,oneLine:!0,children:`The stopping pattern goes here`}),a(M,{timeStrings:s,lineIds:e.departure.lineIds})]}),a(l,{yAlign:`space-between`,class:`border-2 px-1.5 py-1 border-soft-border rounded-sm -mb-0.5 h-8.5`,children:[a(i,{style:`tiny-narrow`,align:`center`,children:`Platform`}),a(i,{style:`strong`,align:`center`,children:`X`})]})]})]})}function I(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9.343 6.343L15 12l-5.657 5.657`})})}var L=P+2;function R(e){return a(g,{class:r(e.class),href:e.departure.servicePageUrl,children:a(u,{class:`grid-cols-[1fr_auto] p-4 items-center pr-2 gap-2`,children:[a(F,{departure:e.departure}),a(I,{class:`text-icon-lg text-fg`})]})})}function z(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 20H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4H4m12-7v2M8 4v2m12.121 9.879L18 18m0 0l-2.121 2.121M18 18l-2.121-2.121M18 18l2.121 2.121`})})}function ee(e){let{pluralServicesTerm:t}=_();return e.loading?a(B,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:a(b,{})}):e.hadError?a(B,{class:r(e.class,`gap-2`),queryCount:e.queryCount,centerContent:!0,children:a(T,{text:`An error occurred while retrieving departures`})}):e.departures.length===0?a(B,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:a(T,{text:`No ${t} scheduled`,icon:z})}):a(B,{class:e.class,queryCount:e.queryCount,children:e.departures.map((t,n)=>a(u,{class:`relative`,children:[a(R,{departure:t}),n<e.queryCount-1&&a(`hr`,{class:`border-soft-border absolute bottom-0 left-0 right-0 mx-4`})]},V(t)))})}function B(e){let t=e.centerContent??!1;return a(l,{class:e.class,xAlign:t?`center`:`stretch`,yAlign:t?`center`:`top`,dynamicMinHeightRem:L*e.queryCount,children:e.children})}function V(e){return`${e.sourceId}/${e.intrasourceId}/${e.movementIndex}`}function H(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m4 20l5-5m0 0l3.956 3.956a1 1 0 0 0 1.626-.314l2.255-5.261a1 1 0 0 1 .548-.535l3.207-1.283a1 1 0 0 0 .336-1.635l-6.856-6.856a1 1 0 0 0-1.635.336l-1.283 3.207a1 1 0 0 1-.535.548L5.358 9.418a1 1 0 0 0-.314 1.626z`})})}function U(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 20H4v-5m0 5l6.5-6.5M15 4h5v5m0-5l-6.5 6.5`})})}function W(e){return a(l,{class:r(e.class,`min-w-0`),children:[a(m,{xAlign:`space-between`,yAlign:`center`,class:`gap-2 not-desktop:pl-4 not-desktop:pr-2 not-desktop:pt-6 pb-2`,children:[a(i,{style:`subtitle`,class:`shrink min-w-0`,oneLine:!0,children:e.feed.title}),a(m,{class:`gap-2`,children:[a(v,{theme:`hover`,icon:H}),a(v,{theme:`hover`,icon:U})]})]}),a(ee,{class:`bg-bg-raised desktop:border not-desktop:border-y border-soft-border desktop:rounded-lg overflow-hidden box-content`,departures:e.departures,queryCount:e.feed.desiredCount,loading:e.loading,hadError:e.hadError})]})}function G(e,{includeSeconds:t=!1}={}){let n=O(e.hour),r=n.hour.toFixed(),i=e.minute.toFixed().padStart(2,`0`),a=n.half;return t?`${r}:${i}:${e.second.toFixed().padStart(2,`0`)}${a}`:`${r}:${i}${a}`}function K(e,{suppressAgo:t=!1}={}){let n=e.round({largestUnit:`day`,smallestUnit:`second`}),{days:r,hours:i,minutes:a,seconds:o}=n,s=[];r!==0&&s.push(r===1?`1 day`:`${r.toFixed()} days`),i!==0&&s.push(i===1?`1 hr`:`${i.toFixed()} hrs`),a!==0&&s.push(a===1?`1 min`:`${a.toFixed()} mins`),(o!==0||s.length===0)&&s.push(o===1?`1 sec`:`${o.toFixed()} secs`);let c=n.sign===-1&&!t;return s.join(`, `)+(c?` ago`:``)}function q(e,{includeYear:t=!1}={}){let n=e.toLocaleString(`en-US`,{weekday:`short`}),r=e.toLocaleString(`en-US`,{month:`short`});return`${n}, ${e.day.toFixed()} ${r}${t?` ${e.year.toFixed()}`:``}`}function J(e,t,{suppressEarlierToday:n=!1}={}){let r=e.toPlainTime(),i=e.toPlainDate(),a=t.toPlainTime(),o=t.toPlainDate(),s=G(r),c=o.until(i).days;return c===0?Temporal.PlainTime.compare(r,a)<=0&&!n?`${s} earlier today`:s:c===1?r.hour<=2?`${s} tonight`:`${s} tomorrow`:c===-1?`${s} yesterday`:c>1&&c<7?`${s} ${i.toLocaleString(`en-US`,{weekday:`long`})}`:c<-1&&c>=-7?`${s} last ${i.toLocaleString(`en-US`,{weekday:`long`})}`:`${s} (${q(i)})`}var Y=class e{primary;struckout;delay;schedule;constructor(e){this.primary=e.primary,this.struckout=e.struckout,this.delay=e.delay,this.schedule=e.schedule}static build(t,n,r){let{time:i,formerTime:a,timeType:o}=t,s=J(this._inFormatTimezone(i,r),this._inFormatTimezone(n,r));if(o===`scheduled-time`||a==null)return new e({primary:s,struckout:null,delay:null,schedule:null});let c=n.until(i),l=this._getDelay(a.until(i));if(c.total({unit:`minutes`})>60)return new e({primary:s,struckout:null,delay:l,schedule:null});let u=n.until(a),d=this._formatDurationWithNow(c),f=this._formatDurationWithNow(u);return new e({primary:d,struckout:d===f?null:f,delay:l,schedule:s})}static _getDelay(e){let t=e.total({unit:`minutes`}),n=K(e,{suppressAgo:!0});return t<0?{text:`${n} early`,color:`green`}:t===0?{text:`On time`,color:`green`}:{text:`${n} late`,color:this._getDelayColor(t)}}static _getDelayColor(e){return e<3?`green`:e<15?`yellow`:`red`}static _formatDurationWithNow(e){return e.sign>=0&&e.total({unit:`minutes`})<1?`Now`:K(e)}static _inFormatTimezone(e,t){return e.toZonedDateTimeISO(t).toPlainDateTime()}},X=class e{sourceId;intrasourceId;lineIds;primaryDestinationText;secondaryDestinationText;color;timeType;time;formerTime;movementIndex;constructor(e){this.sourceId=e.sourceId,this.intrasourceId=e.intrasourceId,this.lineIds=e.lineIds,this.primaryDestinationText=e.primaryDestinationText,this.secondaryDestinationText=e.secondaryDestinationText,this.color=e.color,this.timeType=e.timeType,this.time=e.time,this.formerTime=e.formerTime,this.movementIndex=e.movementIndex}get servicePageUrl(){return`/service/${encodeURIComponent(this.sourceId)}/${encodeURIComponent(this.intrasourceId)}?from=${encodeURIComponent(this.movementIndex.toString())}`}getTimeStrings(e,t){return Y.build(this,e,t)}static wrap(t){return new e({sourceId:t.sourceId,intrasourceId:t.intrasourceId,lineIds:t.lineIds,primaryDestinationText:t.primaryDestinationText,secondaryDestinationText:t.secondaryDestinationText,color:t.color,timeType:t.movement.timeType,time:Temporal.Instant.from(t.movement.time),formerTime:t.movement.formerTime==null?null:Temporal.Instant.from(t.movement.formerTime),movementIndex:t.movement.index})}static wrapAll(t){return t?.map(t=>e.wrap(t))??[]}};function Z(e){let{data:n,loading:i,error:o}=E(d,{instant:e.instant.toString(),direction:`forwards`,feeds:e.feeds.map(e=>({...e,skips:[]}))}),s=t(()=>e.feeds.map((e,t)=>({feed:e,departures:X.wrapAll(n?.feeds[t]?.departures)})),[e.feeds,n]);return a(u,{class:r(e.class,`desktop:grid-cols-[1fr_1fr] desktop:gap-6 desktop:px-4 desktop:py-8`),children:s.map((e,t)=>a(W,{feed:e.feed,departures:e.departures,loading:i,hadError:o!=null,class:`not-desktop:last:-mb-px`},t))})}function Q(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M17.657 9.343L12 15L6.343 9.343`})})}function $(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 7v5l3 3m6-3a9 9 0 1 1-18 0a9 9 0 0 1 18 0`})})}function te(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M19.5 4h-15a.5.5 0 0 0-.5.5v2.086a1 1 0 0 0 .293.707L10 13v5.691a.5.5 0 0 0 .276.447L14 21v-8l5.707-5.707A1 1 0 0 0 20 6.586V4.5a.5.5 0 0 0-.5-.5Z`})})}function ne(e){return a(u,{class:`desktop:pt-6 desktop:px-4`,children:a(u,{class:r(e.class,`grid-cols-[1fr_1fr] desktop:max-w-150 bg-bg-raised divide-x divide-soft-border desktop:border not-desktop:border-b border-soft-border desktop:rounded-lg overflow-hidden`),children:[a(g,{children:a(m,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[a(m,{yAlign:`center`,class:`gap-2`,children:[a(h,{heightRem:c(`text-md`),children:a($,{class:`text-icon-lg text-fg`})}),a(i,{children:`Now`})]}),a(h,{heightRem:c(`text-md`),children:a(Q,{class:`text-icon-lg text-fg`})})]})}),a(g,{children:a(m,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[a(m,{yAlign:`center`,class:`gap-2`,children:[a(h,{heightRem:c(`text-md`),children:a(te,{class:`text-icon-lg text-fg`})}),a(i,{children:`All trains`})]}),a(h,{heightRem:c(`text-md`),children:a(Q,{class:`text-icon-lg text-fg`})})]})})]})})}function re(){let{params:{id:e}}=o(),{foda:n}=f(),r=t(()=>n.stops.getByUrlPath(e??``),[n.stops,e]);return r==null?a(w,{afterConfirming:`foundational-data-version`}):a(ie,{stop:r},r.id)}function ie(e){let{currentMinute:t}=y(),n=e.stop.defaultDepartureFeeds.map(t=>({title:t.name,stopId:e.stop.id,desiredCount:t.desiredCount,filterExpression:`${t.filterExpression} !arr !sdo`.trim()}));return a(x,{...k({title:e.stop.name,back:{href:`/`,text:`Home`},additionalContent:a(p,{lineIds:e.stop.canonicalLinesServingStop,withLinks:!0})}),children:a(l,{children:[a(ne,{}),a(Z,{feeds:n,instant:t})]})})}export{re as default};
@@ -0,0 +1 @@
1
+ import{c as e,l as t}from"./use-nav-exemptions-Daz3EeSR.js";function n(n){return t(`strong`,{class:e(n.class,`text-fg-strong`),children:n.children})}export{n as t};
@@ -0,0 +1 @@
1
+ import{i as e,l as t,r as n}from"./use-nav-exemptions-Daz3EeSR.js";import{t as r}from"./Strong-DYvq_eAK.js";import{t as i}from"./Page-eZ-IZNxm.js";import{t as a}from"./use-simple-headers-BGdX3p-e.js";function o(){return t(i,{...a({title:`Zen mode`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:[t(r,{children:`✨`}),` Zen! `,t(r,{children:`✨`})]})})})}export{o as default};
@@ -0,0 +1,2 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-DJhKXgnn.js","assets/use-nav-exemptions-Daz3EeSR.js","assets/use-api-_Y5vsFb-.js","assets/use-foundational-data-DyAlFXWG.js","assets/Placeholder-B5DNAGHP.js","assets/Markdown-BY6JcM-Z.js","assets/LinkText-Co4qc0dx.js","assets/Strong-DYvq_eAK.js","assets/Page-eZ-IZNxm.js","assets/use-simple-headers-BGdX3p-e.js","assets/SimpleMobileHeaderContent-y6m4_5yJ.js","assets/Divider-C465PGQW.js","assets/Alert-DSl3_gX3.js","assets/MingcuteAlertLine-DxgntDGK.js","assets/AdminControls-D0pgA5wf.js","assets/Debug-Cd_f8CKx.js","assets/Home-DIEadcoR.js","assets/Nearby-CqDDKuYT.js","assets/Service-frX-LyRg.js","assets/linear-BWJmB0m_.js","assets/scope-B-e4l8Dr.js","assets/ErrorMessage-Mp0VVnTj.js","assets/use-foda-synced-query-BsS3nwV1.js","assets/Settings-BgHb1nlk.js","assets/Picker-D4ga8LYJ.js","assets/Status-sLRF_nKb.js","assets/ZenMode-DdoTtVJG.js","assets/Stop-DEsRmVC1.js","assets/NotFoundPage-CoVT8xxG.js","assets/Line-Dxew3yXf.js","assets/NotFound-Dmj1p5xO.js"])))=>i.map(i=>d[i]);
2
+ import{C as e,S as t,T as n,_ as r,b as i,c as a,d as o,f as s,g as c,h as l,i as u,l as d,n as f,o as p,p as m,r as h,s as g,t as ee,u as te,v as _,w as ne,x as re,y as ie}from"./use-nav-exemptions-Daz3EeSR.js";import{a as ae,c as oe,f as se,g as ce,h as le,m as ue,n as de,p as fe,r as pe,s as me,t as he}from"./use-api-_Y5vsFb-.js";import{n as ge,t as _e}from"./use-foundational-data-DyAlFXWG.js";import{n as ve,t as ye}from"./scope-B-e4l8Dr.js";import{t as be}from"./LinkText-Co4qc0dx.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 xe=(e,t)=>`Non-positive ${e}: ${t}`,Se=(e,t)=>`Non-finite ${e}: ${t}`,Ce=e=>`Cannot convert bigint to ${e}`,we=`Invalid object`,Te=(e,t,n,r)=>Ee(e,t)+`; must be between ${n}-${r}`,Ee=(e,t)=>`Invalid ${e}: ${t}`,De=1e3,Oe=1e6,ke=1e9,Ae=6e10,je=36e11;function Me(e){return e===void 0?Object.create(null):Re(e)}function Ne(e,t=`number`){if(typeof e==`bigint`)throw TypeError(Ce(t));if(e=Number(e),!Number.isFinite(e))throw RangeError(Se(t,e));return e}function v(e,t){return Math.trunc(Ne(e,t))||0}function Pe(e,t){return Fe(v(e,t),t)}function Fe(e,t=`number`){if(e<=0)throw RangeError(xe(t,e));return e}function Ie(e,t,n){return Math.min(Math.max(e,t),n)}function Le(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Re(e){if(!Le(e))throw TypeError(we);return e}var ze=Ee,Be=e=>`Missing ${e}`,Ve=e=>`No valid fields: `+e.join(),He=(e,t,n)=>Ee(e,t)+`; must be `+Object.keys(n).join(),Ue=`Cannot use valueOf`,We=`Invalid calling context`,Ge=e=>`Missing year`+(e?`/era/eraYear`:``),Ke=`Invalid leap month`,qe=e=>Ee(`Calendar`,e),Je=(e,t)=>`Unknown calendar ${e}; might need ${t}`,Ye=e=>Ee(`TimeZone`,e),Xe=e=>`Cannot parse: ${e}`,Ze=e=>`Invalid substring: ${e}`,Qe=e=>`Cannot format ${e}`,$e=Ie,y=Le;function b(e){throw RangeError(e)}function x(e){throw TypeError(e)}function et(e,t,n,r,i){return S(t,((e,t)=>{let n=e[t];return n===void 0&&x(Be(t)),n})(e,t),n,r,i)}function S(e,t,n,r,i,a){let o=$e(t,n,r);return i&&t!==o&&b(((e,t,n,r,i)=>i?Te(e,i[t],i[n],i[r]):Te(e,t,n,r))(e,t,n,r,a)),o}function tt(e,t=Map){let n=new t;return(t,...r)=>{if(n.has(t))return n.get(t);let i=e(t,...r);return n.set(t,i),i}}var nt=e=>rt({name:e},1),rt=(e,t)=>at(e=>({value:e,configurable:1,writable:!t}),e),it=e=>({[Symbol.toStringTag]:{value:e,configurable:1}});function at(e,t){let n={};for(let r in t)n[r]=e(t[r],r);return n}function ot(e,t){let n={};for(let r of e)n[r]=t;return n}function st(e){let t={};for(let n of e)t[n]=e=>e[n];return t}function ct(e,t,n=Object.create(null)){for(let r of e)n[r]=t[r];return n}function lt(e,t,n){for(let r of e)if(t[r]!==n[r])return 0;return 1}function ut(e,t,n){let r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function C(e,...t){return(...n)=>e(...t,...n)}function dt(e){return e}function ft(){}function pt(e){return e[0].toUpperCase()+e.substring(1)}function w(...e){return[].concat(...e).sort()}function mt(e){return RegExp(`^${e}$`,`i`)}function ht(e){return parseInt(e.padEnd(9,`0`))}function gt(e){return e&&e!==`+`?-1:1}function _t(e){return e===void 0?0:parseInt(e)}function vt(e,t){return String(t).padStart(e,`0`)}var yt=C(vt,2);function bt(e,t){return Math.sign(e-t)}function T(e,t){return e<t?-1:+(e>t)}function xt(e,t){let n=e/t;return e%t<0n?n-1n:n}function St(e,t){let n=xt(e,t);return[n,e-n*t]}function Ct(e,t){return[Math.floor(e/t),wt(e,t)]}function wt(e,t){return(e%t+t)%t}function Tt(e,t){return Math.trunc(e/t)||0}function Et(e,t){return e%t||0}function Dt(e,t=1){return t*(.5+e/5)}function Ot(e){return Math.abs(e%1)===.5}var kt=`iso8601`,At={bce:-1,ce:0};function jt(e){let t=e.normalize(`NFD`).toLowerCase().replace(/[^a-z0-9]/g,``);return t===`bc`||t===`b`?`bce`:t===`ad`||t===`a`?`ce`:t}function Mt(e){return e===void 0?`iso8601`:e===0?`gregory`:e.id}var Nt=/^M(\d{2})(L?)$/;function Pt(e){let t=Nt.exec(e);return t||b((e=>`Invalid monthCode: ${e}`)(e)),[parseInt(t[1]),!!t[2]]}function Ft(e,t){return`M`+yt(e)+(t?`L`:``)}function It(e,t,n){return e+(t||n&&e>=n?1:0)}var Lt={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Rt=Object.keys(Lt),zt=De,Bt=Oe,Vt=ke,Ht=Ae,Ut=je,Wt=864e11,Gt=[1,zt,Bt,Vt,Ht,Ut,Wt],Kt=BigInt(zt),qt=BigInt(Bt),Jt=BigInt(Vt),Yt=BigInt(Ht),Xt=BigInt(Ut),E=BigInt(Wt);function Zt(e,t){let n=Number(e/E),r=Number(e%E);return Wt/t*n+(Math.trunc(r/t)+r%t/t)}var D=Rt.slice(0,6),Qt=st(D),$t=[`year`],en=[`day`],tn=[`day`,`month`,`year`],nn=[`offset`],rn=[`timeZone`],an=[`era`,`eraYear`],on=[`era`,`eraYear`,`year`],sn=[`month`,`monthCode`],cn=[`day`,`month`,`monthCode`],ln=w(D),un=w(an,$t),dn=w(sn,$t),fn=w(an,dn),pn=w([`monthCode`],$t),mn=w(an,pn),hn=w(en,[`monthCode`]),gn=w(en,dn),_n=w(en,an,dn),vn=w(gn,D),yn=w(_n,D),bn=w(gn,D,nn),xn=w(_n,D,nn),Sn=w(gn,D,nn,rn),Cn=w(_n,D,nn,rn),wn=w(en,pn),Tn=w(en,an,pn),En=ot(D,0);function Dn(e){return kn(e,1),e}var On={hour:23,minute:59,second:59};function kn(e,t){let n={};for(let r of D)n[r]=S(r,e[r],0,On[r]||999,t);return n}function O(e){return jn(e)*Vt+Mn(e)}function An(e){return 1e3*jn(e)+e.millisecond}function jn(e){return 3600*e.hour+60*e.minute+e.second}function Mn(e){return e.millisecond*Bt+e.microsecond*zt+e.nanosecond}function Nn(e){let[t,n]=Ct(e,Wt);return[Pn(n),t]}function Pn(e){let[t,n]=Ct(e,Bt),[r,i]=Ct(n,zt);return Fn(t,r,i)}function Fn(e,t=0,n=0){let[r,i]=Ct(e,36e5),[a,o]=Ct(i,6e4),[s,c]=Ct(o,1e3);return{hour:r,minute:a,second:s,millisecond:c,microsecond:t,nanosecond:n}}function In(e){let[t,n]=St(e,Jt);return[Number(t),Number(n)]}function Ln(e){return Number(xt(e,qt))}function k(e){return zn(e)+BigInt(O(e))}function Rn(e){return Bn(e)+An(e)}function zn(e){return BigInt(Vn(e))*E}function Bn(e){return 864e5*Vn(e)}function Vn(e){return Hn(e.year,e.month,e.day)}function Hn(e,t=1,n=1){let r=t-1;return e+=Math.floor(r/12),t=wt(r,12),Date.UTC(e%400-400,t,0)/864e5+146097*(Tt(e,400)+1)+n}function Un(e){let[t,n]=St(e,E);return{...Wn(Number(t)),...Pn(Number(n))}}function Wn(e){let t=new Date(864e5*wt(e,146097));return{year:t.getUTCFullYear()+400*Math.floor(e/146097),month:t.getUTCMonth()+1,day:t.getUTCDate()}}function Gn(e){return[e,0]}function Kn(e,t){if(!t)return{year:1972,month:e}}function qn(e,t,n){return{year:e,month:t,day:n}}function Jn(e,t){switch(t){case 2:return Xn(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Yn(e){return Xn(e)?366:365}function Xn(e){return e%4==0&&(e%100!=0||e%400==0)}function Zn(e,t,n){return e+=Tt(n,12),(t+=Et(n,12))<1?(e--,t+=12):t>12&&(e++,t-=12),{year:e,month:t}}function Qn(e,t,n,r){return 12*(n-e)+r-t}function $n(e){return wt(Hn(e.year,e.month,e.day)+4,7)||7}function er(e){return Hn(e.year,e.month,e.day)-Hn(e.year)+1}function tr(e){let t=e.year,n=Math.floor((er(e)-$n(e)+10)/7),r=nr(t);return n<1?n=r=nr(--t):n>r&&(n=1,r=nr(++t)),{weekOfYear:n,yearOfWeek:t,De:r}}function nr(e){let t=$n({year:e,month:1,day:1});return t===4||t===3&&Xn(e)?53:52}function rr({year:e}){return e<1?{era:`bce`,eraYear:1-e}:{era:`ce`,eraYear:e}}function ir(e){return ar(e),Dn(e)}function ar(e){return sr(e,1),e}function or(e){return lt(tn,e,sr(e))}function sr(e,t){let{year:n}=e,r=et(e,`month`,1,12,t);return{year:n,month:r,day:et(e,`day`,1,Jn(n,r),t)}}function A(e,t){return e?e.de(t):t}function cr(e,t,n){return e?e.N(t,n):Gn(n)}function lr(e,t){return e===0?rr(t):e&&e.h?.(t)||{}}function ur(e,t,n,r){return e?e.fe(t,n,r):qn(t,n,r)}function dr(e,t){return e?e.j(t):12}function fr(e,t,n){return e?e.o(t,n):Jn(t,n)}function pr(e,t){let{year:n,month:r}=A(e,t),[i,a]=cr(e,n,r);return Ft(i,a)}function mr(e,t){let{year:n}=A(e,t);return e?e.q(n):Xn(n)}function hr(e,t){let{year:n}=A(e,t);return dr(e,n)}function gr(e,t){let{year:n,month:r}=A(e,t);return fr(e,n,r)}function _r(e,t){let{year:n}=A(e,t);return e?e.i(n):Yn(n)}function vr(e,t){if(!e)return er(t);let{year:n}=A(e,t),r=ur(e,n,1,1);return Vn(t)-Vn(r)+1}function yr(e,t){return e===void 0?tr(t).weekOfYear:void 0}function br(e,t){return e===void 0?tr(t).yearOfWeek:void 0}var j=Rt.map(e=>e+`s`),xr=st(j),Sr=w(j),Cr=j.slice(0,6),wr=j.slice(6),Tr=wr.slice(1),M=ot(j,0),Er=ot(Cr,0),Dr=C(ut,j);function Or(e,t){return t??b(Be(e)),t}var N=C(kr,`string`);function kr(e,t,n=e){return typeof t!==e&&x(ze(n,t)),t}function Ar(e,t=`number`){return Number.isInteger(e)||b(((e,t)=>`Non-integer ${e}: ${t}`)(t,e)),e||0}function jr(e){return typeof e==`symbol`&&x(`Cannot convert Symbol to string`),String(e)}function Mr(e){if(!Le(e))return e;let t=e[Symbol.toPrimitive];if(t!=null){typeof t!=`function`&&x();let n=Reflect.apply(t,e,[`string`]);return Le(n)&&x(),n}return Date.prototype[Symbol.toPrimitive].call(e,`string`)}function Nr(e){return typeof e==`boolean`?BigInt(+!!e):typeof e==`string`?BigInt(e):(typeof e!=`bigint`&&x(`Invalid bigint: ${e}`),e)}function Pr(e,t){return Ar(Ne(e,t),t)}var Fr=`smallestUnit`,Ir={constrain:0,reject:1},Lr={compatible:0,reject:1,earlier:2,later:3},Rr={reject:0,use:1,prefer:2,ignore:3},zr={auto:0,never:1,critical:2,always:3},Br={auto:0,never:1,critical:2},Vr={auto:0,never:1},Hr={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Ur=[Math.floor,e=>Ot(e)?Math.floor(e):Math.round(e),Math.ceil,e=>Ot(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>Ot(e)?Math.trunc(e)||0:Math.round(e),e=>e<0?Math.floor(e):Math.ceil(e),e=>Math.sign(e)*Math.round(Math.abs(e))||0,e=>Ot(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Wr={previous:-1,next:1};function Gr(e){let t=e.roundingIncrement;return t===void 0?1:v(t,`roundingIncrement`)}function Kr(e){let t=e.fractionalSecondDigits;if(t!==void 0){if(typeof t!=`number`){if(jr(t)===`auto`)return;b(ze(`fractionalSecondDigits`,t))}t=S(`fractionalSecondDigits`,Math.floor(t),0,9,1)}return t}function qr(e,t,n=0,r){let i=t[e];if(i===void 0)return r?n:void 0;if(i=jr(i),i===`auto`)return r?n:null;let a=Lt[i];return a===void 0&&(a=j.indexOf(i)),a<0&&b(He(e,i,Lt)),a}function Jr(e,t,n,r=0){let i=n[e];if(i===void 0)return r;let a=jr(i),o=t[a];return o===void 0&&b(He(e,a,t)),o}var Yr=C(qr,Fr),Xr=C(qr,`largestUnit`),Zr=C(qr,`unit`),Qr=C(Jr,`overflow`,Ir),$r=C(Jr,`disambiguation`,Lr),ei=C(Jr,`offset`,Rr),ti=C(Jr,`calendarName`,zr),ni=C(Jr,`timeZoneName`,Br),ri=C(Jr,`offset`,Vr),ii=C(Jr,`roundingMode`,Hr),ai=C(Jr,`direction`,Wr);function oi(e,t){return typeof e==`string`?((e,t)=>{let n=Object.create(null);return n[e]=t,n})(t,e):Re(e)}function si(e,t,n,r){let i=r?Wt:Gt[t+1];if(i){let n=Gt[t];i%((e=S(`roundingIncrement`,e,1,i/n-+!r,1))*n)&&b(ze(`roundingIncrement`,e))}else e=S(`roundingIncrement`,e,1,n?10**9:1,1);return e}function ci(e,t,n,r){return t!=null&&S(e,t,n,r,1,Rt),t}function li(e,t){t>e&&b(`smallestUnit > largestUnit`)}function ui(e,t,n,r=9,i=0,a=4){t=Me(t);let o=Xr(t,i),s=Gr(t),c=ii(t,a),l=Yr(t,i,1);return o=ci(`largestUnit`,o,i,r),l=ci(Fr,l,i,r),o==null?o=Math.max(n,l):li(o,l),s=si(s,l,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[o,l,s,c]}function di(e,t=6,n){let r=Gr(e=oi(e,Fr)),i=ii(e,7),a=Yr(e);return a=Or(Fr,a),a=ci(Fr,a,0,t),r=si(r,a,void 0,n),[a,r,i]}function P(e,t){return ct(tn,e,ct(D,t))}var fi=BigInt(1e8)*E,pi=BigInt(-1e8)*E,mi=pi-E,hi=-3261848;function gi(e){let t=12*e.year+e.month;return(t<hi||t>3309129)&&b(`Out-of-bounds date`),e}function F(e,t=1){let n=zn(e);return(n<(t?mi:pi)||n>fi)&&b(`Out-of-bounds date`),e}function _i(e){return vi(k(e)),e}function vi(e){return(e<=mi||e>=fi+E)&&b(`Out-of-bounds date`),e}function yi(e){return(e<pi||e>fi)&&b(`Out-of-bounds date`),e}function bi(e,t){return yi(zn(e)+BigInt(O(e)-t))}function xi(e,t,n){return Si(e/t,n)*t}function Si(e,t){return Ur[t](e)}function Ci(e,t,n,r){let i=Ti(e,t,r,n);return Di(i,Number(n-i.I)/Number(i.O-i.I))}function wi(e,t,n,r){return xi(Di(e,Oi(t,e.I,e.O)),n,r)}function Ti(e,t,n,r){let i=Ei(e,t,n);return((e,t,n,r)=>r>0?t<=e&&e<=n:n<=e&&e<=t)(r,i.I,i.O,Math.sign(t))||(i=Ei(e+t,t,n)),i}function Ei(e,t,n){let r=e+t;return{ve:e,qe:r,I:n(e),O:n(r)}}function Di(e,t){return e.ve+t*(e.qe-e.ve)}function Oi(e,t,n){let r=n-t,i=e-t;if(!i)return 0;let a=i<0n?-i:i,o=r<0n?-r:r,s=T(i,0n)===T(r,0n)?1:-1;return T(a,o)<=0?a===o?s:Dt(T(2n*a,o),s):Number(i)/Number(r)}function ki(e){return{epochNanoseconds:e}}function Ai(e,t,n){return{calendar:n,timeZone:t,epochNanoseconds:e}}function ji(e,t){return ct(D,e,I(e,t))}function I(e,t){return ct(tn,e,{calendar:t})}function Mi(e){return ct(D,e)}function Ni(e){return ct(j,e,{sign:Ja(e)})}function Pi(e,t,n,r){return Ai(t===6?zi(e,r):Bi(e,t,n,r),e.timeZone,e.calendar)}function Fi(e){let[t,n]=Ki(e);return Zt(n-t,Ut)}function Ii(e){let{timeZone:t,calendar:n}=e;return Ai(ra(t,P(L(e),En)),t,n)}function Li(e,t,n,r,i,a,o,s){if(r===0&&i===1)return e;let c=Ja(e)||1,[l,u,d]=(Ba(r,s)?s&&r<6&&n>=6?Wi:Gi:Ui)(c,e,t,n,r,i,a,o);return d&&r!==7&&(l=((e,t,n,r,i,a)=>{for(let o=r+1;o<=n;o++){if(o===7&&n!==7)continue;let r=Dr(o,e);r[j[o]]+=i;let s=T(t,Ia(a,r));if(s&&s!==i)break;e=r}return e})(l,u,n,Math.max(6,r),c,o)),l}function Ri(e,t,n){let r=Math.min(io(e),6);return to(Yi(Qa(e),BigInt(t),n),r)}function zi(e,t){let[n,r]=Ki(e);return qi(e.epochNanoseconds,n,r,t)}function Bi(e,t,n,r){if(t===0&&n===1)return e.epochNanoseconds;let i=L(e);return ta(e.timeZone,Vi(i,Qi(t,n),r),i.offsetNanoseconds,2,0,1)}function Vi(e,t,n){let[r,i]=Hi(e,t,n),a=P(ga(e,i),r);return _i(a),a}function Hi(e,t,n){return Nn(xi(O(e),t,n))}function Ui(e,t,n,r,i,a,o,s){let c=j[i],l=Dr(i,t);i===7&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)});let u=Tt(t[c],a)*a,d=Ti(u,a*e,e=>(l[c]=e,Ia(s,l)),n),f=wi(d,n,a,o);return l[c]=f,[l,f===d.qe?d.O:d.I,f!==u]}function Wi(e,t,n,r,i,a,o,s){let c=Number($a(t)),l=Qi(i,a),u=xi(c,l,o),d={...t,...Er},f=Ti(d.days,e,e=>(d.days=e,Ia(s,d)),n),p=f.I,m=f.O,h=u-Number(m-p),g=0;h&&Math.sign(h)!==e?n=p+BigInt(u):(g+=e,u=xi(h,l,o),n=m+BigInt(u));let ee=no(u);return[{...t,...ee,days:t.days+g},n,!!g]}function Gi(e,t,n,r,i,a,o){let s=Qa(t),c=Yi(s,$i(i,a),o),l=c-s,u=Math.sign(Number(c/E)-Number(s/E))===e,d=to(c,Math.min(r,6));return[{...t,...d},n+l,u]}function Ki(e){let{timeZone:t}=e,n=P(L(e),En),r=P(ga(n,1),En);return[ra(t,n),ra(t,r)]}function qi(e,t,n,r){return Si(Oi(e<n?e:n-1n,t,n),r)?n:t}function Ji(e){return xi(e,Ht,7)}function Yi(e,t,n){return Zi(e,t,n,e/t%2n)}function Xi(e,t,n){let[r,i]=St(e,E),a=r*E;return a+Zi(i,t,n,(a/t+i/t)%2n)}function Zi(e,t,n,r){let i=e/t,a=e%t,o=0;a&&(o=Dt(T(2n*(a<0n?-a:a),t),Math.sign(Number(a))));let s=Si(Number(r)+o,n);return(i-r+BigInt(s))*t}function Qi(e,t){return Gt[e]*t}function $i(e,t){return BigInt(Gt[e])*BigInt(t)}var L=tt(ea,WeakMap);function ea(e){let{epochNanoseconds:t,timeZone:n}=e,r=n.B(t);return{...Un(t+BigInt(r)),offsetNanoseconds:r}}function ta(e,t,n,r=0,i=0,a,o){if(n!==void 0&&r===1&&(r===1||o))return bi(t,n);r!==2&&r!==0||F(t,0);let s=e.R(t);if(n!==void 0&&r!==3){let e=((e,t,n,r)=>{let i=k(t);r&&(n=Ji(n));for(let t of e){let e=Number(i-t);if(r&&(e=Ji(e)),e===n)return t}})(s,t,n,a);if(e!==void 0)return e;r===0&&b(`Invalid TimeZone offset`)}return o?k(t):na(e,t,i,s)}function na(e,t,n=0,r=e.R(t)){if(r.length===1)return r[0];if(n===1&&b(`Ambiguous offset`),r.length)return r[+(n===3)];let i=k(t),a=((e,t)=>{let n=e.B(t-E);return(e=>(e>Wt&&b(`Out-of-bounds TimeZone gap`),e))(e.B(t+E)-n)})(e,i),o=Un(i+BigInt(a*(n===2?-1:1)));return(r=e.R(o))[n===2?0:r.length-1]}function ra(e,t){let n=e.R(t);if(n.length)return n[0];let r=k(t)-E;return e.C(r,1)}function ia(e,t,n,r=0){return Ja(n)&&S(`unit`,io(n),8,9,1,j),ua(e,la(e,F(ua(e,t)),n,r))}function aa(e,t,n=0){let{calendar:r,epochNanoseconds:i,timeZone:a}=e,o=$a(t),s=i;if(ro(t)){let i=L(e);s=na(a,P(la(r,i,{...t,...Er},n),i))+o}else s+=o;return{...e,epochNanoseconds:yi(s)}}function oa(e,t,n,r=0){let[i,a]=sa(t,n);return _i(P(la(e,t,{...n,...Er,days:n.days+a},r),i))}function sa(e,t){return ma(e,$a(t))}function ca(e,t){return ha(e,(S(`unit`,io(n=t),0,5,1,j),$a(n)));var n}function la(e,t,n,r=0){let{years:i,months:a,weeks:o,days:s}=n,c;if(s+=Number($a(n)/E),i||a)c=da(e,t,i,a,r);else{if(!o&&!s)return t;c=t}return(o||s)&&(c=ga(c,7*o+s)),F(c)}function ua(e,t){return ga(t,1-A(e,t).day)}function da(e,t,n,r,i){let{year:a,month:o,day:s}=A(e,t);if(n){let[t,r]=cr(e,a,o);a+=n,o=pa(e,t,r,e?e.p(a):void 0,i),o=S(`month`,o,1,dr(e,a),i)}if(r){let t=fa(e,a,o,r);({year:a,month:o}=t)}return s=S(`day`,s,1,fr(e,a,o),i),ur(e,a,o,s)}function fa(e,t,n,r){return e?e.ae(t,n,r):Zn(t,n,r)}function pa(e,t,n,r,i){if(n){let n=e?e.l:void 0;return r!==void 0&&(n<0||r===t+1)?r:(i===1&&b(Ke),n<0?-n:t)}return It(t,0,r)}function ma(e,t){let n=Number(t/E),r=Number(t%E),[i,a]=Nn(O(e)+r);return[i,n+a]}function ha(e,t){return yi(e+t)}function ga(e,t){return t?Wn(Vn(e)+t):e}function _a(e,t){return Mt(e)!==Mt(t)&&b(`Mismatching Calendars`),e}function va(e,t){return e.m!==t.m&&b(`Mismatching TimeZones`),e}function ya(e){return e.timeZone.id}function ba(e,t,n,r,i,a,o){return r<6?Ea(t.epochNanoseconds,n.epochNanoseconds,r,i,a,o):((e,t,n,r,i,a,o)=>{let s=n.epochNanoseconds;if(s===t.epochNanoseconds)return M;let c,l=va(t.timeZone,n.timeZone);return c=Da(l,e,t,n,r),c=Li(c,s,r,i,a,o,La(e,l,t),1),c})(e,t,n,r,i,a,o)}function xa(e,t,n,r,i,a,o){return r<=6?Ea(k(t),k(n),r,i,a,o):((e,t,n,r,i,a,o)=>{let s=k(n),c=T(s,k(t));if(!c)return M;let l;return l=ka(e,t,n,c,r),l=Li(l,s,r,i,a,o,((e,t)=>({ne:k(t),ke:n=>k(P(la(e,t,n),t))}))(e,t)),l})(e,t,n,r,i,a,o)}function Sa(e,t,n,r,i,a,o){let s=ua(e,t),c=ua(e,n);return Ma(s,c)?Ta(e,F(s),F(c),r,i,a,o,8):M}function Ca(e,t,n,r,i,a,o,s=6){return r===6?Ea(zn(t),zn(n),r,i,a,o):Ta(e,t,n,r,i,a,o,s)}function wa(e,t,n,r,i,a){let o=xi(O(t)-O(e),Qi(r,i),a);return{...M,...no(o,n)}}function Ta(e,t,n,r,i,a,o,s=6){let c=zn(n);if(!Ma(t,n))return M;let l;return l=ja(e,t,n,r),i===s&&a===1||(l=Li(l,c,r,i,a,o,Ra(e,t))),l}function Ea(e,t,n,r,i,a){return{...M,...to(Yi(t-e,$i(r,i),a),n)}}function Da(e,t,n,r,i){return i<6?{...M,...to(r.epochNanoseconds-n.epochNanoseconds,i)}:((e,n,r)=>{let a=T(r.epochNanoseconds,n.epochNanoseconds);if(!a)return M;if(!Ma(L(n),L(r)))return{...M,...to(r.epochNanoseconds-n.epochNanoseconds,5)};let[o,s,c]=Aa(e,n,r,a);return{...(l=o,u=s,ja(t,l,u,i)),...no(c)};var l,u})(e,n,r)}function Oa(e,t,n,r){let i=k(t),a=k(n),o=T(a,i);return o?r<=6?{...M,...to(a-i,r)}:ka(e,t,n,o,r):M}function ka(e,t,n,r,i){let a=n,o=O(n)-O(t);return Math.sign(o)===-r&&(a=ga(n,-r),o+=Wt*r),{...ja(e,t,a,i),...no(o)}}function Aa(e,t,n,r){let i=L(t),a=L(n),o=n.epochNanoseconds,s=0,c=O(a)-O(i);Math.sign(c)===-r&&s++;let l=s+ +(r>0);for(;;s++){let t=ga(a,s*-r),n=na(e,P(t,i));if(s===l||T(o,n)!==-r)return[i,t,Number(o-n)]}}function ja(e,t,n,r){if(r<=7)return((e,t,n)=>{let r=Na(t,n);return e?{...M,weeks:Tt(r,7),days:Et(r,7)}:{...M,days:r}})(r===7,t,n);let i=A(e,t),a=A(e,n);if(r===8){let{year:r,month:o,day:s}=i,{year:c,month:l,day:u}=a,d=Math.sign(bt(c,r)||bt(l,o)||Na(t,n)),f=0,p=0;if(d){f=e?e.ee(r,o,c,l):Qn(r,o,c,l);let i=da(e,t,0,f,0);d*bt(s,u)>0&&(f-=d,i=da(e,t,0,f,0)),p=Na(i,n)}return{...M,months:f,days:p}}let{year:o,month:s,day:c}=i,{year:l,month:u,day:d}=a,f=l-o,p=u-s,m=d-c;if(f||p){let t=Math.sign(f||p),n=fr(e,l,u),r=0;if(Math.sign(d-c)===-t){let i=n,a=fa(e,l,u,-t);({year:l,month:u}=a),f=l-o,p=u-s,n=fr(e,l,u),r=t<0?-i:n}if(m=d-Math.min(c,n)+r,f){let[n,r]=cr(e,o,s),[i,a]=cr(e,l,u),c=e?e.l:void 0;if(p=c!==void 0&&r&&!a&&(c<0?t>0&&i===-c:t<0&&i===n)?0:i-n||Number(a)-Number(r),Math.sign(p)===-t){let i=t<0&&-dr(e,l);l-=t,f=l-o,p=u-pa(e,n,r,e?e.p(l):void 0,0)+(i||dr(e,l))}else if(e){let t=pa(e,n,r,e.p(l),0);p=e.ee(l,t,l,u)}}}return{...M,years:f,months:p,days:m}}function Ma(e,t){return bt(e.year,t.year)||bt(e.month,t.month)||bt(e.day,t.day)}function Na(e,t){return Vn(t)-Vn(e)}function Pa(e,t,n){return za(e)?((e,t,n)=>{let{calendar:r,timeZone:i}=e,a=aa(e,t);return[Da(i,r,e,a,n),a.epochNanoseconds,La(r,i,e)]})(e,t,n):((e,t,n)=>{let{calendar:r}=e,i=_i(P(e,En)),a=oa(r,i,t);return[Oa(r,i,a,n),k(a),Ra(r,e)]})(e,t,n)}function Fa(e,t){return za(e)?aa(e,t).epochNanoseconds:k(oa(e.calendar,P(e,En),t))}function Ia(e,t){return ro(t)?e.ke(t):e.ne}function La(e,t,n){let r=L(n);return{ne:n.epochNanoseconds,ke:n=>na(t,P(la(e,r,n),r))}}function Ra(e,t){return{ne:zn(t),ke:n=>zn(la(e,t,n))}}function za(e){return`timeZone`in e}function Ba(e,t){return e<=6-!!t}function Va(e,t,n){let r={};for(let i=t;i>=0;i--){let t=Gt[i];r[n[i]]=Tt(e,t),e=Et(e,t)}return r}var Ha=2**53;function Ua(e,t,n){let r=Math.max(io(t),io(n));return S(`unit`,r,0,6,1,j),((e,t,n,r)=>Ni(Ya(((e,t,n,r)=>{let i=Qa(e)+Qa(t)*BigInt(r?-1:1);return Number.isFinite(Number(i/E))||b(`Out-of-bounds date`),{...M,...to(i,n)}})(t,n,r,e))))(e,t,n,r)}function Wa(e,t,n){let r=io(t),[i,a,o,s,c]=((e,t,n)=>{e=oi(e,Fr);let r=Xr(e),i=n(e.relativeTo),a=Gr(e),o=ii(e,7),s=Yr(e);return r===void 0&&s===void 0&&b(`Required smallestUnit or largestUnit`),s??=0,r??=Math.max(s,t),li(r,s),a=si(a,s,1),a>1&&s>5&&r!==s&&b(`For calendar units with roundingIncrement > 1, use largestUnit = smallestUnit`),[r,s,a,o,i]})(n,r,e);if(!c&&Math.max(r,i)<=6)return Ni(Ya(((e,t,n,r,i)=>{let a=Yi(Qa(e),$i(n,r),i);return{...M,...to(a,t)}})(t,i,a,o,s)));c||b(`Missing relativeTo`);let l=za(c);if(!t.sign&&(!l||i<6))return t;let[u,d,f]=Pa(c,t,i);return Ni(Li(u,d,i,a,o,s,f,l))}function Ga(e){return e.sign===-1?Ka(e):e}function Ka(e){return Ni(qa(e))}function qa(e){let t={};for(let n of j)t[n]=-1*e[n]||0;return t}function Ja(e,t=j){let n=0;for(let r of t){let t=Math.sign(e[r]);t&&(n&&n!==t&&b(`Cannot mix duration signs`),n=t)}return n}function Ya(e){for(let t of Tr)Xa(t,e[t]);let t=Qa(e);return Za(Number(t/Jt)),e}function Xa(e,t){return S(e,t,-4294967295,4294967295,1)}function Za(e){Number.isSafeInteger(e)||b(`Out-of-bounds duration`)}function Qa(e){return BigInt(e.days)*E+$a(e)}function $a(e){return BigInt(e.hours)*Xt+BigInt(e.minutes)*Yt+eo(e)}function eo(e){return BigInt(e.seconds)*Jt+BigInt(e.milliseconds)*qt+BigInt(e.microseconds)*Kt+BigInt(e.nanoseconds)}function to(e,t=6){let n=Number(e/E),r=Number(e%E),i=Gt[t],a=t<=3?Number(e/BigInt(i)):Wt/i*n+Tt(r,i);Number.isFinite(a)||b(`Out-of-bounds date`),t<=3&&Math.abs(a)/(Vt/Gt[t])>=Ha&&b(`Out-of-bounds date`);let o=Va(r,t,j);return o[j[t]]=a,o}function no(e,t=5){return Va(e,t,j)}function ro(e){return!!Ja(e,wr)}function io(e){let t=9;for(;t>0&&!e[j[t]];t--);return t}function ao(e,t){return T(e.epochNanoseconds,t.epochNanoseconds)}function oo(e,t,n,r){let i=e(Me(r).relativeTo),a=Math.max(io(t),io(n));return lt(j,t,n)?0:Ba(a,i&&za(i))?T(Qa(t),Qa(n)):(i||b(`Missing relativeTo`),T(Fa(i,t),Fa(i,n)))}function so(e,t){return co(e,t)||lo(e,t)}function co(e,t){return bt(Vn(e),Vn(t))}function lo(e,t){return bt(O(e),O(t))}function uo(e,t){return!ao(e,t)}function fo(e,t){return!ao(e,t)&&e.timeZone.m===t.timeZone.m&&e.calendar===t.calendar}function po(e,t){return!so(e,t)&&e.calendar===t.calendar}function mo(e,t){return!co(e,t)&&e.calendar===t.calendar}function ho(e,t){return!co(e,t)&&e.calendar===t.calendar}function go(e,t){return!co(e,t)&&e.calendar===t.calendar}function _o(e,t){return!lo(e,t)}function vo(e){return e===0?At:e?e.k:void 0}function R(e,t,n=t){return vo(e)?n:t}function yo(e,t){let n=t||void 0,r=vo(t),{era:i,eraYear:a,year:o}=e;if(o!==void 0&&(o=v(o,`year`)),a!==void 0&&(a=v(a,`eraYear`)),i!==void 0||a!==void 0){i!==void 0&&a!==void 0||x(`Mismatching era/eraYear`),r||b(`Forbidden era/eraYear`);let e=jt(i),t=r[e];t===void 0&&b((e=>`Invalid era: ${e}`)(i));let s=n?._?n._(a,e,t):So(a,t);o!==void 0&&o!==s&&b(`Mismatching year/eraYear`),o=s}else o===void 0&&x(Ge(r));return o}function bo(e,t,n,r,i){let{month:a,monthCode:o}=e;if(o!==void 0){let e=((e,t,n,r,i=Pt(t))=>{let a=e?e.p(n):void 0,[o,s]=i,c=It(o,s,a);if(s){let t=e?e.l:void 0;t===void 0&&b(Ke),t>0?(c>t&&b(Ke),a!==c&&(r===1&&b(Ke),c=It(o,0,a))):(c!==-t&&b(Ke),a===void 0&&r===1&&b(Ke))}return c})(t,o,n,i,r);a!==void 0&&a!==e&&b(`Mismatching month/monthCode`),a=e,i=1}else a===void 0&&x(`Missing month/monthCode`);return S(`month`,a,1,dr(t,n),i)}function xo(e,t,n,r,i){return et(e,`day`,1,fr(t,n,r),i)}function So(e,t){return(t+e)*(Math.sign(t)||1)||0}function Co(e,t){return kn(ct(D,{...En,...e}),t)}var wo=mt(`([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?`);function To(e){let t=Eo(e);return t===void 0&&b(Xe(e)),t}function Eo(e,t){let n=wo.exec(e);if(n&&(e=>(e=>{e[0]!==`T`&&e[0]!==`t`||(e=e.slice(1));let t=e.search(/[.,]/),n=t<0?e:e.slice(0,t),r=n.split(`:`);return r.length===1?/^(?:\d{2}|\d{4}|\d{6})$/i.test(n):(r.length===2||r.length===3)&&r.every(e=>e.length===2&&/^\d{2}$/i.test(e))})(e.slice(1)))(n[0]))return((e,t)=>{let n=e[4]||e[5];return t&&n&&b(Ze(n)),r=(_t(e[2])*Ut+_t(e[3])*Ht+_t(e[4])*Vt+ht(e[5]||``))*gt(e[1]),Math.abs(r)>=Wt&&b(`Out-of-bounds offset`),r;var r})(n,t)}var z={era:jr,month:Pe,monthCode(e,t){return N(Mr(e),t)},day:Pe},Do=ot(D,v),Oo=ot(j,Pr),ko=Object.assign({},z,Do),Ao={offset(e){return To(N(Mr(e)))},...ko};function B(e,t,n,r,i=!r){let a={},o=0;for(let i of t){let t=e[i];if(t!==void 0){o=1;let e=n[i];e&&(t=e(t,i)),a[i]=t}else r&&r.includes(i)&&x(Be(i))}return i&&!o&&x(Ve(t)),a}function V(e){return e===void 0?0:Qr(Re(e))}function jo(e,t=0){e=Me(e);let n=$r(e),r=ei(e,t);return[Qr(e),r,n]}function Mo(e){return $r(Me(e))}function No(e,t,n){let r=vo(t);e.year!==void 0||e.era!==void 0&&e.eraYear!==void 0||x(Ge(r)),e.monthCode===void 0&&e.month===void 0&&x(`Missing month/monthCode`),n||e.day!==void 0||x(Be(`day`));let i=Vo(e);return[yo(e,t),i]}function Po(e,t){let n=t===void 0,r=vo(t);e.day===void 0&&x(Be(`day`)),n||e.month===void 0||e.year!==void 0||e.era!==void 0&&e.eraYear!==void 0||x(Ge(r));let i=Vo(e);return[e.eraYear!==void 0||e.year!==void 0?yo(e,t):void 0,i]}function Fo(e,t=En,n){let r=P(e,t);return _i(r),ji(r,n)}function Io(e,t,n,r,i){let a=bo(e,t,n,r,i);return I(F(ur(t,n,a,xo(e,t,n,a,i))),t)}function Lo(e,t,n,r,i){return zo(t,n,bo(e,t,n,r,i))}function Ro(e,t,n,r,i){let a=t===void 0,o=n,s,c,l;if(o===void 0&&a&&(o=1972),o!==void 0){a||F(ur(t,o,1,1));let n=bo(e,t,o,r,i);s=xo(e,t,o,n,i),[c,l]=cr(t,o,n)}else{e.monthCode===void 0&&x(`Missing month/monthCode`),[c,l]=r;let n=t?t.re:1972;if(n!==void 0)s=xo(e,t,n,bo(e,t,n,r,i),i);else{let n=i===0&&t?t.ge?.(c,l,e.day):void 0;s=n===void 0?e.day:n}}return Bo(t,c,l,s,e.day,i)}function zo(e,t,n){return I(gi(ur(e,t,n,1)),e)}function Bo(e,t,n,r,i,a){let o=n;o&&((e&&e.V?.[t])??1/0)<i&&(a===1&&b(Ke),o=0,r=$e(i,1,(e&&e.U)??1/0));let s=e?e.u(t,!!o,r):Kn(t,!!o);for(;!s&&a===0&&r>1;)r--,s=e?e.u(t,!!o,r):Kn(t,!!o);s||b(`Cannot guess year`);let{year:c,month:l}=s;return I(F(ur(e,c,l,r)),e)}function Vo(e){if(e.monthCode!==void 0)return Pt(e.monthCode)}var H=Intl.DateTimeFormat;function Ho(e,t){t<-864e13&&b(`Out-of-bounds date`);let n=e.formatToParts(t),r={};for(let e of n)r[e.type]=e.value;return r}var Uo={El_Aaiun:17,Tucuman:12,Tirane:11,Riga:10,Simferopol:9,Vienna:9,Tunis:8,Boa_Vista:6,Fortaleza:6,Maceio:6,Noronha:6,Recife:6,Gaza:6,Hebron:6,DeNoronha:6},Wo=-388152e4;function Go(e,t=4){let n=Kr(e);return[ii(e,4),...Jo(ci(Fr,Yr(e),0,t),n)]}function Ko(e){return ti(Me(e))}function qo(e,t){return Go(Me(e),t)}function Jo(e,t){return e==null?[t===void 0?1:10**(9-t),t]:[Gt[e],e<4?9-3*e:-1]}function Yo(e,t,n){let[r,i,a,o]=(e=>{let t=Kr(e=Me(e)),n=ii(e,4),r=Yr(e);return[e.timeZone,n,...Jo(ci(Fr,r,0,4),t)]})(n),s=r!==void 0;return((e,t,n,r,i,a)=>{n=Xi(n,BigInt(i),r);let o=t.B(n);return ss(Un(n+BigInt(o)),a)+(e?fs(Ji(o)):`Z`)})(s,U(s?e(r):`UTC`),t.epochNanoseconds,i,a,o)}function Xo(e,t){let n=(e=>{e=Me(e);let t=ti(e),n=Kr(e),r=ri(e),i=ii(e,4),a=Yr(e);return[t,ni(e),r,i,...Jo(ci(Fr,a,0,4),n)]})(t);return((e,t,n,r,i,a,o,s,c,l)=>{r=Xi(r,BigInt(c),s);let u=n.B(r);return ss(Un(r+BigInt(u)),l)+fs(Ji(u),o)+ps(t,a)+ms(e,i)})(e.calendar,e.timeZone.id,e.timeZone,e.epochNanoseconds,...n)}function Zo(e,t){let n=(e=>(e=Me(e),[ti(e),...Go(e)]))(t);return((e,t,n,r,i,a)=>ss(Vi(t,i,r),a)+ms(e,n))(e.calendar,e,...n)}function Qo(e,t){return n=e.calendar,r=e,i=Ko(t),cs(r)+ms(n,i);var n,r,i}function $o(e,t){return ts(e.calendar,ls,e,Ko(t))}function es(e,t){return ts(e.calendar,us,e,Ko(t))}function ts(e,t,n,r){return r===1?e===void 0?t(n):cs(n):r>1||r===0&&e!==void 0?cs(n)+hs(Mt(e),r===2):t(n)}function ns(e,t){return((e,t,n,r)=>ds(Hi(e,n,t)[0],r))(e,...qo(t))}function rs(e,t){let[n,r,i]=qo(t,3);return r>1&&Ya(e={...e,...Ri(e,r,n)}),is(e,i)}function is(e,t){let{sign:n}=e,r=n===-1?qa(e):e,{hours:i,minutes:a}=r,o=eo(r),s=Number(o/Jt),c=Number(o%Jt);Za(s);let l=_s(c,t),u=t>=0||!n||l;return(n<0?`-`:``)+`P`+as({Y:os(r.years),M:os(r.months),W:os(r.weeks),D:os(r.days)})+(i||a||s||u?`T`+as({H:os(i),M:os(a),S:os(s,u)+l}):``)}function as(e){let t=[];for(let n in e){let r=e[n];r&&t.push(r,n)}return t.join(``)}function os(e,t){if(!e&&!t)return``;let n=Object.create(null);return n.useGrouping=0,e.toLocaleString(`fullwide`,n)}function ss(e,t){return cs(e)+`T`+ds(e,t)}function cs(e){return ls(e)+`-`+yt(e.day)}function ls(e){let{year:t}=e;return(t<0||t>9999?vs(t)+vt(6,Math.abs(t)):vt(4,t))+`-`+yt(e.month)}function us(e){return yt(e.month)+`-`+yt(e.day)}function ds(e,t){let n=[yt(e.hour),yt(e.minute)];return t!==-1&&n.push(yt(e.second)+((e,t,n,r)=>_s(e*Bt+t*zt+n,r))(e.millisecond,e.microsecond,e.nanosecond,t)),n.join(`:`)}function fs(e,t=0){if(t===1)return``;let[n,r]=Ct(Math.abs(e),Ut),[i,a]=Ct(r,Ht),[o,s]=Ct(a,Vt);return vs(e)+yt(n)+`:`+yt(i)+(o||s?`:`+yt(o)+_s(s):``)}function ps(e,t){return t===1?``:`[`+(t===2?`!`:``)+e+`]`}function ms(e,t){return t>1||t===0&&e!==void 0?hs(Mt(e),t===2):``}function hs(e,t){return`[`+(t?`!`:``)+`u-ca=`+e+`]`}var gs=/0+$/;function _s(e,t){let n=vt(9,e);return n=t===void 0?n.replace(gs,``):n.slice(0,t),n?`.`+n:``}function vs(e){return e<0?`-`:`+`}var ys=/^(AC|AE|AG|AR|AS|BE|BS|CA|CN|CS|CT|EA|EC|IE|IS|JS|MI|NE|NS|PL|PN|PR|PS|SS|VS)T$/,bs=/[^\w\/:+-]+/;function xs(e){return Ss(N(e))}function Ss(e){return Cs(e).id}function Cs(e){let t=e.toUpperCase(),n=(e=>{let t=Eo(e,1);if(t!==void 0)return{id:fs(t),Z:t,m:t}})(t);return n?{kind:`fixed`,...n}:ws(t===`UTC`?`UTC`:(e=>(bs.test(e)&&b(Ye(e)),ys.test(e)&&b(`Forbidden ICU TimeZone`),e.toLowerCase().split(`/`).map((e,t)=>(e.length<=3||/\d/.test(e))&&!/etc|yap/.test(e)?e.toUpperCase():e.replace(/baja|dumont|[a-z]+/g,(e,n)=>e.length<=2&&!t||e===`in`||e===`chat`?e.toUpperCase():e.length>2||!n?pt(e).replace(/island|noronha|murdo|rivadavia|urville/,pt):e)).join(`/`)))(e))}var ws=tt(e=>{if(e===`UTC`)return{kind:`utc`,id:e,m:e};let t=Ts(e.toUpperCase());return{kind:`named`,id:e,format:t,m:t.resolvedOptions().timeZone}}),Ts=tt(e=>new H(`en-u-hc-h23`,{calendar:`iso8601`,timeZone:e,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}));function U(e){let t=Cs(e);return Es(t.id,t)}var Es=tt((e,t)=>t.kind===`named`?new Os(e,t.m,t.format):new Ds(e,t.m,t.kind===`fixed`?t.Z:0)),Ds=class{constructor(e,t,n){this.id=e,this.m=t,this.Z=n}B(){return this.Z}R(e){return[bi(e,this.Z)]}C(){}},Os=class{constructor(e,t,n){this.id=e,this.m=t,this.oe=((e,t)=>{let n=tt(e),r=tt(As),i=86400*t;function a(e){let[t,a]=js(e,i),s=Ms(t),c=Ms(a),l=n(s),u=n(c);return l===u?l:o(r(s,c),l,u,e)}function o(t,n,r,i){let a,o;for(;(i===void 0||(a=i<t[0]?n:i>=t[1]?r:void 0)===void 0)&&(o=t[1]-t[0]);){let n=t[0]+Math.floor(o/2);e(n)===r?t[1]=n:t[0]=n+1}return a}return{Ae(e){let t=a(e-86400),n=a(e+86400),r=e-t,i=e-n;if(t===n)return[r];let o=a(r);return o===a(i)?[e-o]:t>n?[r,i]:[]},ze:a,C:function e(t,a){if(a>0&&t>=864e10)return;if(a<0){if(t<=Wo)return;let n=ks()+94867200;if(t>n)return e(n,-1)}let[s,c]=js(a>0?Math.max(t,Wo):t,i),l=i*a,u=a>0?Math.max(t,ks())+94867200:Wo,d=()=>a<0?c>u:s<u;for(;d();){let e=Ms(s),i=Ms(c),u=n(e),d=n(i);if(u!==d){let n=r(e,i);o(n,u,d);let s=n[0];if((bt(s,t)||1)===a)return s}s+=l,c+=l}}}})((e=>t=>{let n=Ho(e,1e3*t);return 86400*Hn((e=>{let t=e.relatedYear;if(t!==void 0)return parseInt(t);let n=parseInt(e.year);return e.era!==void 0&&jt(e.era)===`bce`?1-n:n})(n),parseInt(n.month),parseInt(n.day))+3600*parseInt(n.hour)+60*parseInt(n.minute)+parseInt(n.second)-t})(n),(e=>Uo[e.split(`/`).pop()]||60)(e))}B(e){return this.oe.ze((e=>In(e)[0])(e))*Vt}R(e){let t=86400*Vn(e)+jn(e),n=Mn(e);return this.oe.Ae(t).map(e=>yi(BigInt(e)*Jt+BigInt(n)))}C(e,t){let[n,r]=In(e),i=this.oe.C(n+(t>0||r?1:0),t);if(i!==void 0)return BigInt(i)*Jt}};function ks(){return Math.floor(Date.now()/1e3)}function As(e,t){return[e,t]}function js(e,t){let n=Math.floor(e/t)*t;return[n,n+t]}function Ms(e){return $e(e,-1e10,864e10)}function Ns(e,t,n){let r=B(n,R(t,Sn,Cn),Ao,[],0),i=r.timeZone!==void 0,[a,o]=No(r,t),s=Io(r,t,a,o,0);if(i){let n=Co(r),i=U(e(r.timeZone));return{epochNanoseconds:ta(i,P(s,n),r.offset),timeZone:i,calendar:t}}return s}function Ps(e,t,n,r){let i=B(n,R(t,Sn,Cn),Ao,rn,0),a=e(i.timeZone),[o,s]=No(i,t),[c,l,u]=jo(r),d=Io(i,t,o,s,c),f=Co(i,c),p=U(a);return Ai(ta(p,P(d,f),i.offset,l,u),p,t)}function Fs(e,t,n){let r=B(t,R(e,vn,yn),ko,[],0),[i,a]=No(r,e),o=V(n);return Fo(Io(r,e,i,a,o),Co(r,o),e)}function Is(e,t,n,r=[]){let i=B(t,R(e,gn,_n),z,r),[a,o]=No(i,e);return Io(i,e,a,o,V(n))}function Ls(e,t,n,r){let i=B(t,R(e,dn,fn),z,r),[a,o]=No(i,e,1);return Lo(i,e,a,o,V(n))}function Rs(e,t,n,r){let i=B(n,R(e,gn,_n),z,en,0);t&&i.month!==void 0&&i.monthCode===void 0&&i.year===void 0&&(i.year=1972);let[a,o]=Po(i,e);return Ro(i,e,a,o,V(r))}function zs(e,t){return Co(B(e,ln,Do,[],1),V(t))}function Bs(e){let t=B(e,Sr,Oo);return Ni(Ya({...M,...t}))}function Vs(e){b(Xe(e))}function Hs(e){let t=hc(e=N(Mr(e))),n;return t||Vs(e),t.F?n=0:t.offset?n=To(t.offset):Vs(e),t.timeZoneId&&Eo(t.timeZoneId,1),ir(t),ki(bi(t,n))}function Us(e,t){let n=hc(N(e));return n||Vs(e),n.timeZoneId?ic(n,t,void 0):(n.F&&Vs(e),oc(n,t))}function Ws(e,t,n){let r=hc(N(e));return r&&r.timeZoneId||Vs(e),ic(r,t,n)}function Gs(e,t){let n=hc(N(e));return n&&!n.F||Vs(e),ac(n,t)}function Ks(e,t){let n=tc(ec(N(e)),void 0,t);return I(n,n.calendar)}function qs(e,t){let n=gc(N(e));if(n)return Js(n),I(gi(ar(n)),t(n.calendarId));let r=tc(ec(e),nc,t),{calendar:i}=r;return I(ua(i,r),i)}function Js(e){e.calendarId!==`iso8601`&&b(Ze(e.calendarId))}function Ys(e,t){let n=_c(N(e));if(n)return Js(n),I(ar(n),t(n.calendarId));let r=tc(ec(e),rc,t),{calendar:i}=r,{year:a,month:o,day:s}=A(i,r),[c,l]=cr(i,a,o),{year:u,month:d}=((e,t,n,r)=>{let i=e?e.u(t,n,r):Kn(t,n);return i||b(`Cannot guess year`),i})(i,c,l,s);return I(F(ur(i,u,d,s)),i)}function Xs(e){let t=(e=>{let t=vc(e);return t?(xc(t[13]),yc(t,1)):void 0})(e=N(e));if(!t){let n=hc(e);n&&n.te||Vs(e),n.F&&b(Ze(`Z`)),Js(n),t=n}let n;return(n=gc(e))&&or(n)&&Vs(e),(n=_c(e))&&or(n)&&Vs(e),Mi(Dn(t))}function Zs(e){let t=mc.exec(N(e));return t||Vs(e),Ni(Ya((e=>{let t=0,n=0,r=0,i={years:a(e[2]),months:a(e[3]),weeks:a(e[4]),days:a(e[5]),hours:a(e[6],e[7],5),minutes:a(e[8],e[9],4),seconds:a(e[10],e[11],3),...Va(r,2,j)};return t||b(Ve(j)),gt(e[1])<0&&(i=qa(i)),i;function a(e,i,a){let o=0,s=0;return a&&([o,r]=Ct(r,Gt[a])),e!==void 0&&(n&&b(Ze(e)),s=(e=>{let t=parseInt(e);return Number.isFinite(t)||b(Ze(e)),t})(e),t=1,i&&(r=ht(i)*(Gt[a]/Vt),n=1)),o+s}})(t)))}function Qs(e){let t=hc(e)||gc(e)||_c(e);if(t)return t.calendarId;let n=vc(e);return n?xc(n[13]).calendarId:e}function $s(e){let t=hc(e);return t&&(t.timeZoneId||t.F&&`UTC`||t.offset)||e}function ec(e){let t=hc(e);return t&&!t.F||Vs(e),t}function tc(e,t,n){return t&&e.calendarId===`iso8601`?(ar(e),e.te&&Dn(e),oc(t(e),n)):e.te?ac(e,n):oc(e,n)}function nc(e){let t=12*e.year+e.month===hi?20:1;return{...e,day:t}}function rc(e){return{...e,year:1972}}function ic(e,t,n){let r=U(Ss(e.timeZoneId)),i;if(ir(e),e.te){let t=e.offset?To(e.offset):void 0,[,o,s]=jo(n);i=ta(r,e,t,o,s,!(r.Z||e.offset===void 0||(a=e.offset,a.replace(/\D/g,``).length>4)),e.F)}else jo(n),i=ra(r,e);var a;return yi(i),Ai(i,r,t(e.calendarId))}function ac(e,t){return ir(e),_i(e),{...P(e,e),calendar:t(e.calendarId)}}function oc(e,t){return ar(e),F(e),{calendar:t(e.calendarId),year:e.year,month:e.month,day:e.day}}function sc(e){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${e}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}var cc=`(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]`+sc(8)+`(Z|([+-])`+sc(15)+`)?)?`,lc=mt(`(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),uc=mt(`(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),dc=mt(cc+`((?:\\[(!?)([^\\]]*)\\]){0,9})`),fc=mt(`T?`+sc(2)+`(([+-])${sc(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),pc=RegExp(`\\[(!?)([^\\]]*)\\]`,`g`),mc=mt(`([+-])?P(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(?:T(?!$)(?:(\\d+)(?:[.,](\\d{1,9}))?H)?(?:(\\d+)(?:[.,](\\d{1,9}))?M)?(?:(\\d+)(?:[.,](\\d{1,9}))?S)?)?`);function hc(e){let t=dc.exec(e);return t?(e=>{let t=e[12],n=(t||``).toUpperCase()===`Z`;return{year:bc(e),month:parseInt(e[5]),day:parseInt(e[6]),...yc(e,7),...xc(e[19]),te:!!e[7],F:n,offset:n?void 0:t}})(t):void 0}function gc(e){let t=lc.exec(e);if(t)return(e=>({year:bc(e),month:parseInt(e[4]),day:1,...xc(e[5])}))(t)}function _c(e){let t=uc.exec(e);return t?(e=>({year:1972,month:parseInt(e[1]),day:parseInt(e[2]),...xc(e[3])}))(t):void 0}function vc(e){let t=fc.exec(e);if(t)return t[6]&&To(t[6]),t}function yc(e,t){let n=_t(e[t+3]);return{...Nn(ht(e[t+4]||``))[0],hour:_t(e[t]),minute:_t(e[t+2]),second:n===60?59:n}}function bc(e){let t=gt(e[1]),n=parseInt(e[2]||e[3]);return t<0&&!n&&b(Ze(-0)),t*n}function xc(e){let t,n,r=[];return e.replace(pc,(e,i,a)=>{let o=!!i,[s,c]=a.split(`=`).reverse();return c?c===`u-ca`?(r.push(s.toLowerCase()),t||=o):(o||/[A-Z]/.test(c))&&b(Ze(e)):(n&&b(Ze(e)),n=s),``}),r.length>1&&t&&b(Ze(e)),{timeZoneId:n,calendarId:r[0]||`iso8601`}}function Sc(e,t,n){let r=Object.assign(Object.create(null),t);return Cc(r,n,sn),vo(e)&&(Cc(r,n,on),e&&e.je&&Cc(r,n,cn,an)),r}function Cc(e,t,n,r){let i=0,a=[];for(let e of n)t[e]===void 0?a.push(e):i=1;if(Object.assign(e,t),i)for(let t of r||a)delete e[t]}function wc(e,t,n){let r=R(e,bn,xn),i=L(t),{year:a,month:o,day:s}=A(e,i),c={year:a,monthCode:Nc(e,a,o),day:s,hour:i.hour,minute:i.minute,second:i.second,millisecond:i.millisecond,microsecond:i.microsecond,nanosecond:i.nanosecond,offset:i.offsetNanoseconds},l=B(n,r,Ao),u=Sc(e,c,l);return[{...c,...l},u]}function Tc(e,t,n){let r=R(e,vn,yn),{year:i,month:a,day:o}=A(e,t),s={year:i,monthCode:Nc(e,i,a),day:o,hour:t.hour,minute:t.minute,second:t.second,millisecond:t.millisecond,microsecond:t.microsecond,nanosecond:t.nanosecond},c=B(n,r,ko),l=Sc(e,s,c);return[{...s,...c},l]}function Ec(e,t,n){let r=R(e,gn,_n),{year:i,month:a,day:o}=A(e,t);return Sc(e,{year:i,monthCode:Nc(e,i,a),day:o},B(n,r,z))}function Dc(e,t,n){let r=R(e,dn,fn),{year:i,month:a}=A(e,t);return Sc(e,{year:i,monthCode:Nc(e,i,a)},B(n,r,z))}function Oc(e,t,n){let r=R(e,gn,_n),{year:i,month:a,day:o}=A(e,t);return Sc(e,{monthCode:Nc(e,i,a),day:o},B(n,r,z))}function kc(e,t,n,r,i,a,o,s){let{calendar:c,timeZone:l}=e;return Ai(ta(l,P(Io(n,c,r,i,a),kn(t,a)),t.offset,o,s),l,c)}function Ac(e,t,n,r,i,a){return Fo(Io(t,n,r,i,a),kn(e,a),n)}function jc(e,t){return{...ct(ln,e),...B(t,ln,Do)}}function Mc(e,t){return Ni((n=e,r=t,Ya({...n,...B(r,Sr,Oo)})));var n,r}function Nc(e,t,n){let[r,i]=cr(e,t,n);return Ft(r,i)}function Pc(e,t,n){let[r,i]=((e,t)=>{let n=t((e=oi(e,`unit`)).relativeTo),r=Zr(e);return r=Or(`unit`,r),[r,n]})(n,e),a=io(t),o=Math.max(r,a),s=i&&za(i);if(!i&&Ba(o,s))return Fc(t,r);if(i||b(`Missing relativeTo`),!t.sign&&(!s||r<6))return 0;let[c,l,u]=Pa(i,t,r);return Ba(r,s)?Fc(c,r):((e,t,n,r)=>{let i=j[n],a=Dr(n,e);return Ci(e[i],Ja(e)||1,t,e=>(a[i]=e,Ia(r,a)))})(c,l,r,u)}function Fc(e,t){return Zt(Qa(e),Gt[t])}function Ic(e,t,n){return Ai(e.epochNanoseconds,t,n)}function Lc(e){return ki(e.epochNanoseconds)}function Rc(e){return ji(L(e),e.calendar)}function zc(e){return I(L(e),e.calendar)}function Bc(e){return Mi(L(e))}function Vc(e,t,n){return Ai(yi(na(t,e,n)),t,e.calendar)}function Hc(e,t,n){let r;return r=n?na(t,P(e,n)):ra(t,P(e,En)),Ai(r,t,e.calendar)}function Uc(e,t,n){return qc(e,ct(R(e,pn,mn),t),B(Re(n),en,z,[]))}function Wc(e,t,n){let r=R(e,$t,un);return qc(e,ct(hn,t),B(Re(n),r,z,[]))}function Gc(e,t){let n=B(t,hn,z),[r,i]=Po(n,e);return Ro(n,e,r,i,0)}function Kc(e,t){let n=B(t,R(e,pn,mn),z),[r,i]=No(n,e,1);return Lo(n,e,r,i,0)}function qc(e,t,n){let r=R(e,wn,Tn),i=Sc(e,t,n);i=B(i,r,z,[]);let[a,o]=No(i,e);return Io(i,e,a,o,0)}function Jc(e){return ki(yi(BigInt(Pr(e))*qt))}function Yc(e){return ki(yi(Nr(e)))}function Xc(e){return e.timeZone=`UTC`,[`full`,`long`].includes(e.timeStyle)&&(e.timeStyle=`medium`),e}function Zc(e,t){return e.timeZone!==void 0&&x(`Cannot specify TimeZone`),e.timeZone=t,e}function Qc(e,t,n){let r=e.resolvedOptions().calendar;!n&&t.calendar===void 0||Mt(t.calendar)===r||b(`Mismatching Calendars`)}function $c(e,t,n,r,i){let a=new Set(e),o=new Set(t),s=new Set(n);return(e,t)=>{let n,c,l={},u={},d={},f=0,p=0;for(let t of Object.keys(e)){let r=e[t];r===void 0||s.has(t)||(a.has(t)?t===`dateStyle`?n=r:t===`timeStyle`?c=r:l[t]=r:t===`era`?u[t]=r:o.has(t)?t===`dateStyle`||t===`timeStyle`?p=1:f=1:d[t]=r)}let m=n!==void 0,h=c!==void 0,g=m||h,ee=Object.keys(l).length>0,te=f||p,_=ee||m||h,ne=Object.keys(u).length>0;(!t&&te||t&&te&&!_||g&&(ee||ne||f))&&x(`Invalid formatting options`);let re={};return g||_||Object.assign(re,r),Object.assign(re,l,u,d),m&&(i?Object.assign(re,i[n]):re.dateStyle=n),h&&(re.timeStyle=c),re}}var el={year:`numeric`,month:`numeric`,day:`numeric`},tl={hour:`numeric`,minute:`numeric`,second:`numeric`},nl=Object.assign({},el,tl),rl=[`weekday`,`year`,`month`,`day`,`dateStyle`],il=[`dayPeriod`,`hour`,`minute`,`second`,`fractionalSecondDigits`,`timeStyle`],al=rl.concat(il),ol=[`weekday`,`day`].concat(il),sl=[`weekday`,`year`].concat(il),cl=$c(al,[],[],nl),ll=$c(al,[],[],{...nl,timeZoneName:`short`}),ul=$c(al,[],[`timeZoneName`],nl),dl=$c(rl,il,[`timeZoneName`],el),fl=$c(il,rl,[`timeZoneName`,`era`],tl),pl=$c([`year`,`month`,`dateStyle`],ol,[`timeZoneName`],{year:`numeric`,month:`numeric`},{full:{year:`numeric`,month:`long`},long:{year:`numeric`,month:`long`},medium:{year:`numeric`,month:`short`},short:{year:`2-digit`,month:`numeric`}}),ml=$c([`month`,`day`,`dateStyle`],sl,[`timeZoneName`,`era`],{month:`numeric`,day:`numeric`},{full:{month:`long`,day:`numeric`},long:{month:`long`,day:`numeric`},medium:{month:`short`,day:`numeric`},short:{month:`numeric`,day:`numeric`}});function hl(e,t){let{timeZone:n}=e,r=L(e),{offsetNanoseconds:i}=r,a=t||En,o;return o=t?ta(n,P(r,a),i,2):ra(n,P(r,a)),Ai(o,n,e.calendar)}function gl(e){let t=ai(oi(e,`direction`),0);return t||b(ze(`direction`,t)),t}function _l(e){let t=vl(),n=e.B(t);return Un(t+BigInt(n))}function vl(){return BigInt(Date.now())*qt}function yl(){return new H().resolvedOptions().timeZone}function bl(e,t=dt){let n=new WeakMap;function r(e){let t=n.get(e);return t||x(`Invalid calling context`),t}class i{constructor(r,i=Object.create(null)){let a=t(i),o=[],s=new H(r,new Proxy(Object.create(null),{get(e,t){let n=a[t];return n!==void 0&&o.push(t),n}})),c=s.resolvedOptions(),l=ct(o,c);n.set(this,{$:e({t:s,Ce:c.locale,G:l,Ee:a}),t:s})}get format(){let e=r(this);return e.we||=t=>{let[n,...r]=e.$.A(t);return n.format(...r)}}formatToParts(e){let{$:t}=r(this),[n,...i]=t.A(e);return n.formatToParts(...i)}resolvedOptions(){return r(this).t.resolvedOptions()}}let{prototype:a}=i;function o(e,t){return new i(e,t)}H.prototype.formatRange&&Object.defineProperties(a,rt({formatRange(e,t){let{$:n}=r(this),[i,a,o]=n.v(e,t);return i.formatRange(a,o)},formatRangeToParts(e,t){let{$:n}=r(this),[i,a,o]=n.v(e,t);return i.formatRangeToParts(a,o)}}));let s=Object.getOwnPropertyDescriptors(H);return s.prototype.value=a,Object.defineProperties(o,s),a.constructor=o,Object.defineProperties(a,it(`Intl.DateTimeFormat`)),o}var xl=globalThis.Temporal,Sl=`PlainYearMonth`,Cl=`PlainMonthDay`,wl=`PlainDate`,Tl=`PlainDateTime`,El=`PlainTime`,Dl=`ZonedDateTime`,Ol=`Instant`,kl=`Duration`;function Al(e,t,n,...r){return Object.defineProperties(t,nt(e)),Object.defineProperties(t.prototype,it(`Temporal.`+e)),Object.defineProperties(t.prototype,at(e=>({get(){return e(n(this))},configurable:1}),Object.assign({},...r))),t}var jl=ft.name===`noop`?e=>{Object.defineProperty(e,"_str_",{value:e.toJSON()})}:ft;function Ml(){x(We)}function Nl(){x(Ue)}var Pl={era(e){return lr(e.calendar,e).era},eraYear(e){return lr(e.calendar,e).eraYear},year(e){return A(e.calendar,e).year},month(e){return A(e.calendar,e).month},monthCode(e){return pr(e.calendar,e)}},Fl={era(e){return lr(e.calendar,e).era},eraYear(e){return lr(e.calendar,e).eraYear},year(e){return A(e.calendar,e).year},month(e){return A(e.calendar,e).month},monthCode(e){return pr(e.calendar,e)},day(e){return A(e.calendar,e).day}},Il={monthCode(e){return pr(e.calendar,e)},day(e){return A(e.calendar,e).day}},Ll={daysInMonth(e){return gr(e.calendar,e)},daysInYear(e){return _r(e.calendar,e)},monthsInYear(e){return hr(e.calendar,e)},inLeapYear(e){return mr(e.calendar,e)}},Rl={dayOfWeek(e){return $n(e)},dayOfYear(e){return vr(e.calendar,e)},weekOfYear(e){return yr(e.calendar,e)},yearOfWeek(e){return br(e.calendar,e)},daysInWeek(){return 7},daysInMonth(e){return gr(e.calendar,e)},daysInYear(e){return _r(e.calendar,e)},monthsInYear(e){return hr(e.calendar,e)},inLeapYear(e){return mr(e.calendar,e)}};function zl(e,t,n,r){let[i,a,o,s]=ui(e,r,3,5);return Gl(e,Ea(t.epochNanoseconds,n.epochNanoseconds,i,a,o,s))}function Bl(e,t,n,r){let i=_a(t.calendar,n.calendar),[a,o,s,c]=ui(e,r,5);return Gl(e,ba(i,t,n,a,o,s,c))}function Vl(e,t,n,r){let i=_a(t.calendar,n.calendar),[a,o,s,c]=ui(e,r,6);return Gl(e,xa(i,t,n,a,o,s,c))}function Hl(e,t,n,r){let i=_a(t.calendar,n.calendar),[a,o,s,c]=ui(e,r,6,9,6);return Gl(e,Ca(i,t,n,a,o,s,c))}function Ul(e,t,n,r){let i=_a(t.calendar,n.calendar),[a,o,s,c]=ui(e,r,9,9,8);return Gl(e,Sa(i,t,n,a,o,s,c))}function Wl(e,t,n,r){let[i,a,o,s]=ui(e,r,5,5);return Gl(e,wa(t,n,i,a,o,s))}function Gl(e,t){return Ni(e?qa(t):t)}function Kl(e,t,n){let{calendar:r}=e,i=Ec(r,e,t),[a,o]=No(i,r);return Io(i,r,a,o,V(n))}function ql(e,t,n){let{calendar:r}=e,[i,a]=Tc(r,e,t),[o,s]=No(a,r);return Ac(i,a,r,o,s,V(n))}function Jl(e,t,n){let{calendar:r}=e,i=Dc(r,e,t),[a,o]=No(i,r,1);return Lo(i,r,a,o,V(n))}function Yl(e,t,n){let{calendar:r}=e,i=Oc(r,e,t),[a,o]=Po(i,r);return Ro(i,r,a,o,V(n))}function Xl(e,t,n){return Co(jc(e,t),V(n))}function Zl(e,t,n){let{calendar:r}=e,[i,a]=wc(r,e,t),[o,s]=No(a,r),[c,l,u]=jo(n,2);return kc(e,i,a,o,s,c,l,u)}function Ql(e){return bl(t=>{let n=tt(e=>{let n;switch(e){case Ol:n=cl(t.G,1);break;case Tl:n=Xc(ul(t.G,1));break;case wl:n=Xc(dl(t.G,1));break;case El:n=Xc(fl(t.G,1));break;case Sl:n=Xc(pl(t.G,1));break;case Cl:n=Xc(ml(t.G,1));break;default:x(Qe(e))}return new H(t.Ce,n)});return{A(r){if(r===void 0)return[t.t];let i=e(r);if(!i)return[t.t,Number(r)];let[a,o]=i,s=n(a);return $l(s,a,o),[s,eu(a,o)]},v(r,i){r!==void 0&&i!==void 0||x(`Mismatching types for formatting`);let a=e(r),o=a?void 0:Number(r),s=e(i),c=s?void 0:Number(i);if(!a&&!s)return[t.t,o,c];a&&s||x(`Mismatching types for formatting`);let[l,u]=a,[d,f]=s;l!==d&&x(`Mismatching types for formatting`);let p=n(l);return $l(p,l,u),$l(p,l,f),[p,eu(l,u),eu(l,f)]}}})}function $l(e,t,n){switch(t){case Ol:case El:return;case Tl:case wl:Qc(e,n);return;case Sl:case Cl:Qc(e,n,1);return;default:x(Qe(t))}}function eu(e,t){switch(e){case Ol:return Ln(t.epochNanoseconds);case Tl:return Rn(t);case wl:case Sl:case Cl:return Bn(t);case El:return An(t);default:x(Qe(e))}}function tu(e){let t=N(e).toLowerCase();return t===`iso8601`?void 0:t===`gregory`?0:void b(Je(e,`temporal-polyfill/full`))}function nu(e=kt){return tu(e)}var ru=new WeakMap,iu=Al(Dl,class{constructor(e,t,n=void 0){let r=yi(Nr(e)),i=U(xs(t)),a=nu(n);cu(this,Ai(r,i,a))}static from(e,t=void 0){return W(su(e,t))}static compare(e,t){return ao(su(e),su(t))}get calendarId(){return Mt(G(this).calendar)}get timeZoneId(){return G(this).timeZone.id}get epochMilliseconds(){return Ln(G(this).epochNanoseconds)}get epochNanoseconds(){return G(this).epochNanoseconds}get offset(){return fs(L(G(this)).offsetNanoseconds)}get offsetNanoseconds(){return L(G(this)).offsetNanoseconds}get hoursInDay(){return Fi(G(this))}with(e,t=void 0){return W(Zl(G(this),ju(e),t))}withCalendar(e){return W({...G(this),calendar:ed(e)})}withTimeZone(e){return W({...G(this),timeZone:U(K(e))})}withPlainTime(e=void 0){return W(hl(G(this),Ru(e)))}add(e,t=void 0){return W(aa(G(this),Q(e),V(t)))}subtract(e,t=void 0){return W(aa(G(this),qa(Q(e)),V(t)))}until(e,t=void 0){return X(Bl(0,G(this),su(e),t))}since(e,t=void 0){return X(Bl(1,G(this),su(e),t))}round(e){let t=G(this),[n,r,i]=di(e);return W(Pi(t,n,r,i))}startOfDay(){return W(Ii(G(this)))}equals(e){return fo(G(this),su(e))}toInstant(){return du(Lc(G(this)))}toPlainDateTime(){return Hu(Rc(G(this)))}toPlainDate(){return Ju(zc(G(this)))}toPlainTime(){return Pu(Bc(G(this)))}toLocaleString(e=void 0,t={}){let n=G(this),r=new H(e,Zc(ll(t),ya(n)));return Qc(r,n),r.format(Ln(n.epochNanoseconds))}toString(e=void 0){return Xo(G(this),e)}toJSON(){return Xo(G(this))}getTimeZoneTransition(e){let t=G(this),n=t.timeZone.C(t.epochNanoseconds,gl(e));return n===void 0?null:W({...t,epochNanoseconds:n})}valueOf(){return Nl()}},au,Fl,Rl,Qt);function W(e){return cu(Object.create(iu.prototype),e)}function G(e){return ou(e)||Ml()}function au(e){let t=G(e);return{...L(t),calendar:t.calendar}}function ou(e){return ru.get(e)}function su(e,t){if(y(e)){let n=ou(e);return n?(jo(t),n):Ps(K,Qu(e),e,t)}return Ws(e,tu,t)}function cu(e,t){return ru.set(e,t),jl(e),e}function K(e){if(y(e)){let t=ou(e);return t||x(Ye(e)),t.timeZone.id}return(e=>Ss($s(N(e))))(e)}var lu=new WeakMap,uu=Al(Ol,class{constructor(e){let t=yi(Nr(e));hu(this,ki(t))}static from(e){return du(pu(e))}static fromEpochMilliseconds(e){return du(Jc(e))}static fromEpochNanoseconds(e){return du(Yc(e))}static compare(e,t){return ao(pu(e),pu(t))}get epochMilliseconds(){return Ln(q(this).epochNanoseconds)}get epochNanoseconds(){return q(this).epochNanoseconds}add(e){return du(ki(ca(q(this).epochNanoseconds,Q(e))))}subtract(e){return du(ki(ca(q(this).epochNanoseconds,qa(Q(e)))))}until(e,t=void 0){return X(zl(0,q(this),pu(e),t))}since(e,t=void 0){return X(zl(1,q(this),pu(e),t))}round(e){let t=q(this),[n,r,i]=di(e,5,1);return du(ki(Xi(t.epochNanoseconds,$i(n,r),i)))}equals(e){return uo(q(this),pu(e))}toZonedDateTimeISO(e){return W(Ic(q(this),U(K(e))))}toLocaleString(e=void 0,t={}){let n=q(this);return new H(e,cl(t)).format(Ln(n.epochNanoseconds))}toString(e=void 0){return Yo(K,q(this),e)}toJSON(){return Yo(K,q(this))}valueOf(){return Nl()}});function du(e){return hu(Object.create(uu.prototype),e)}function q(e){return fu(e)||Ml()}function fu(e){return lu.get(e)}function pu(e){if(y(e)){let t=fu(e);if(t)return t;let n=ou(e);if(n)return ki(n.epochNanoseconds)}return Hs(e)}var{toTemporalInstant:mu}={toTemporalInstant(){let e=Date.prototype.valueOf.call(this);return du(ki(BigInt(Ar(e))*qt))}};function hu(e,t){return lu.set(e,t),jl(e),e}var gu=new WeakMap,_u=Al(Cl,class{constructor(e,t,n=void 0,r){let i=v(e),a=v(t),o=nu(n),s=F(ar({year:v(r??1972),month:i,day:a}));Su(this,I(s,o))}static from(e,t=void 0){return vu(xu(e,t))}get calendarId(){return Mt(yu(this).calendar)}with(e,t=void 0){return vu(Yl(yu(this),ju(e),t))}equals(e){return go(yu(this),xu(e))}toPlainDate(e){return Ju(Wc(yu(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=yu(this),r=new H(e,Xc(ml(t)));return Qc(r,n,1),r.format(Bn(n))}toString(e=void 0){return es(yu(this),e)}toJSON(){return es(yu(this))}valueOf(){return Nl()}},yu,Il);function vu(e){return Su(Object.create(_u.prototype),e)}function yu(e){return bu(e)||Ml()}function bu(e){return gu.get(e)}function xu(e,t){if(y(e)){let n=bu(e);if(n)return V(t),n;let r=$u(e);return Rs(r===void 0?void 0:r,r===void 0,e,t)}let n=Ys(e,tu);return V(t),n}function Su(e,t){return gu.set(e,t),jl(e),e}var Cu=new WeakMap,wu=Al(Sl,class{constructor(e,t,n=void 0,r){let i=v(e),a=v(t),o=nu(n),s=gi(ar({year:i,month:a,day:v(r??1)}));ku(this,I(s,o))}static from(e,t=void 0){return Tu(Ou(e,t))}static compare(e,t){return co(Ou(e),Ou(t))}get calendarId(){return Mt(Eu(this).calendar)}with(e,t=void 0){return Tu(Jl(Eu(this),ju(e),t))}add(e,t=void 0){let n=Eu(this);return Tu(I(ia(n.calendar,n,Q(e),V(t)),n.calendar))}subtract(e,t=void 0){let n=Eu(this);return Tu(I(ia(n.calendar,n,qa(Q(e)),V(t)),n.calendar))}until(e,t=void 0){return X(Ul(0,Eu(this),Ou(e),t))}since(e,t=void 0){return X(Ul(1,Eu(this),Ou(e),t))}equals(e){return ho(Eu(this),Ou(e))}toPlainDate(e){return Ju(Uc(Eu(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=Eu(this),r=new H(e,Xc(pl(t)));return Qc(r,n,1),r.format(Bn(n))}toString(e=void 0){return $o(Eu(this),e)}toJSON(){return $o(Eu(this))}valueOf(){return Nl()}},Eu,Pl,Ll);function Tu(e){return ku(Object.create(wu.prototype),e)}function Eu(e){return Du(e)||Ml()}function Du(e){return Cu.get(e)}function Ou(e,t){if(y(e)){let n=Du(e);return n?(V(t),n):Ls(Qu(e),e,t)}let n=qs(e,tu);return V(t),n}function ku(e,t){return Cu.set(e,t),jl(e),e}function Au(e){if(!y(e))return;let t=fu(e);return t?[Ol,t]:(t=ou(e),t?[Dl,t]:(t=Uu(e),t?[Tl,t]:(t=Yu(e),t?[wl,t]:(t=Iu(e),t?[El,t]:(t=Du(e),t?[Sl,t]:(t=bu(e),t?[Cl,t]:(t=rd(e),t?[kl,t]:void 0)))))))}function ju(e){return(Au(e)||e.calendar!==void 0||e.timeZone!==void 0)&&x(`Invalid bag`),e}var Mu=new WeakMap,Nu=Al(El,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0){let o=Dn(at(v,{hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a}));zu(this,Mi(o))}static from(e,t=void 0){return Pu(Lu(e,t))}static compare(e,t){return lo(Lu(e),Lu(t))}with(e,t=void 0){return Pu(Xl(Fu(this),ju(e),t))}add(e){return Pu(sa(Fu(this),Q(e))[0])}subtract(e){return Pu(sa(Fu(this),qa(Q(e)))[0])}until(e,t=void 0){return X(Wl(0,Fu(this),Lu(e),t))}since(e,t=void 0){return X(Wl(1,Fu(this),Lu(e),t))}round(e){let t=Fu(this),[n,r,i]=di(e,5);return Pu(Hi(t,Qi(n,r),i)[0])}equals(e){return _o(Fu(this),Lu(e))}toLocaleString(e=void 0,t={}){let n=Fu(this);return new H(e,Xc(fl(t))).format(An(n))}toString(e=void 0){return ns(Fu(this),e)}toJSON(){return ns(Fu(this))}valueOf(){return Nl()}},Fu,Qt);function Pu(e){return zu(Object.create(Nu.prototype),e)}function Fu(e){return Iu(e)||Ml()}function Iu(e){return Mu.get(e)}function Lu(e,t){if(y(e)){let n=Iu(e);if(n)return V(t),n;let r=Uu(e);if(r)return V(t),Mi(r);let i=ou(e);return i?(V(t),Bc(i)):zs(e,t)}let n=Xs(e);return V(t),n}function Ru(e){return e===void 0?void 0:Lu(e)}function zu(e,t){return Mu.set(e,t),jl(e),e}var Bu=new WeakMap,Vu=Al(Tl,class{constructor(e,t,n,r=0,i=0,a=0,o=0,s=0,c=0,l=void 0){let u=_i(ir(at(v,{year:e,month:t,day:n,hour:r,minute:i,second:a,millisecond:o,microsecond:s,nanosecond:c}))),d=nu(l);Gu(this,ji(u,d))}static from(e,t=void 0){return Hu(Wu(e,t))}static compare(e,t){return so(Wu(e),Wu(t))}get calendarId(){return Mt(J(this).calendar)}with(e,t=void 0){return Hu(ql(J(this),ju(e),t))}withCalendar(e){return Hu(ji(J(this),ed(e)))}withPlainTime(e=void 0){let t=J(this);return Hu(Fo(t,Ru(e),t.calendar))}add(e,t=void 0){let n=J(this);return Hu(ji(oa(n.calendar,n,Q(e),V(t)),n.calendar))}subtract(e,t=void 0){let n=J(this);return Hu(ji(oa(n.calendar,n,qa(Q(e)),V(t)),n.calendar))}until(e,t=void 0){return X(Vl(0,J(this),Wu(e),t))}since(e,t=void 0){return X(Vl(1,J(this),Wu(e),t))}round(e){let t=J(this),[n,r,i]=di(e);return Hu(ji(Vi(t,Qi(n,r),i),t.calendar))}equals(e){return po(J(this),Wu(e))}toZonedDateTime(e,t=void 0){return W(Vc(J(this),U(K(e)),Mo(t)))}toPlainDate(){let e=J(this);return Ju(I(e,e.calendar))}toPlainTime(){return Pu(Mi(J(this)))}toLocaleString(e=void 0,t={}){let n=J(this),r=new H(e,Xc(ul(t)));return Qc(r,n),r.format(Rn(n))}toString(e=void 0){return Zo(J(this),e)}toJSON(){return Zo(J(this))}valueOf(){return Nl()}},J,Fl,Rl,Qt);function Hu(e){return Gu(Object.create(Vu.prototype),e)}function J(e){return Uu(e)||Ml()}function Uu(e){return Bu.get(e)}function Wu(e,t){if(y(e)){let n=Uu(e);if(n)return V(t),n;let r=Yu(e);if(r)return V(t),ji(P(r,En),r.calendar);let i=ou(e);return i?(V(t),Rc(i)):Fs(Qu(e),e,t)}let n=Gs(e,tu);return V(t),n}function Gu(e,t){return Bu.set(e,t),jl(e),e}var Ku=new WeakMap,qu=Al(wl,class{constructor(e,t,n,r=void 0){let i=F(ar(at(v,{year:e,month:t,day:n}))),a=nu(r);Zu(this,I(i,a))}static from(e,t=void 0){return Ju(Xu(e,t))}static compare(e,t){return co(Xu(e),Xu(t))}get calendarId(){return Mt(Y(this).calendar)}with(e,t=void 0){return Ju(Kl(Y(this),ju(e),t))}withCalendar(e){return Ju(I(Y(this),ed(e)))}add(e,t=void 0){let n=Y(this);return Ju(I(la(n.calendar,n,Q(e),V(t)),n.calendar))}subtract(e,t=void 0){let n=Y(this);return Ju(I(la(n.calendar,n,qa(Q(e)),V(t)),n.calendar))}until(e,t=void 0){return X(Hl(0,Y(this),Xu(e),t))}since(e,t=void 0){return X(Hl(1,Y(this),Xu(e),t))}equals(e){return mo(Y(this),Xu(e))}toZonedDateTime(e){let t=y(e)?{timeZone:e.timeZone,plainTime:e.plainTime}:{timeZone:e},n=Y(this),r=K(t.timeZone),i=t.plainTime,a=i===void 0?void 0:Lu(i);return W(Hc(n,U(r),a))}toPlainDateTime(e=void 0){let t=Y(this);return Hu(Fo(t,Ru(e),t.calendar))}toPlainYearMonth(){return Tu(Kc(Y(this).calendar,this))}toPlainMonthDay(){return vu(Gc(Y(this).calendar,this))}toLocaleString(e=void 0,t={}){let n=Y(this),r=new H(e,Xc(dl(t)));return Qc(r,n),r.format(Bn(n))}toString(e=void 0){return Qo(Y(this),e)}toJSON(){return Qo(Y(this))}valueOf(){return Nl()}},Y,Fl,Rl);function Ju(e){return Zu(Object.create(qu.prototype),e)}function Y(e){return Yu(e)||Ml()}function Yu(e){return Ku.get(e)}function Xu(e,t){if(y(e)){let n=Yu(e);if(n)return V(t),n;let r=Uu(e);if(r)return V(t),I(r,r.calendar);let i=ou(e);return i?(V(t),zc(i)):Is(Qu(e),e,t)}let n=Ks(e,tu);return V(t),n}function Zu(e,t){return Ku.set(e,t),jl(e),e}function Qu(e){let t=$u(e);return t===void 0?void 0:t}function $u(e){let{calendar:t}=e;if(t!==void 0)return ed(t)}function ed(e){if(y(e)){let t=Yu(e)||Uu(e)||ou(e)||bu(e)||Du(e);return t||x(qe(e)),t.calendar}return(e=>tu(Qs(N(e))))(e)}var td=new WeakMap,nd=Al(kl,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0){let u=Ya(at(Pr,{years:e,months:t,weeks:n,days:r,hours:i,minutes:a,seconds:o,milliseconds:s,microseconds:c,nanoseconds:l}));ad(this,Ni(u))}static from(e){return X(Q(e))}static compare(e,t,n=void 0){return oo(id,Q(e),Q(t),n)}get sign(){return Z(this).sign}get blank(){return!Z(this).sign}with(e){return X(Mc(Z(this),e))}negated(){return X(Ka(Z(this)))}abs(){return X(Ga(Z(this)))}add(e){return X(Ua(0,Z(this),Q(e)))}subtract(e){return X(Ua(1,Z(this),Q(e)))}round(e){return X(Wa(id,Z(this),e))}total(e){return Pc(id,Z(this),e)}toLocaleString(e=void 0,t){let n=Z(this);return Intl.DurationFormat?new Intl.DurationFormat(e,t).format(n):rs(n,t)}toString(e=void 0){return rs(Z(this),e)}toJSON(){return rs(Z(this))}valueOf(){return Nl()}},Z,xr);function X(e){return ad(Object.create(nd.prototype),e)}function Z(e){return rd(e)||Ml()}function rd(e){return td.get(e)}function Q(e){return y(e)?rd(e)||Bs(e):Zs(e)}function id(e){if(e!==void 0){if(y(e)){let t=ou(e);if(t)return t;let n=Yu(e);if(n)return n;let r=Uu(e);return r?I(r,r.calendar):Ns(K,Qu(e),e)}return Us(e,tu)}}function ad(e,t){return td.set(e,t),jl(e),e}var od=Object.defineProperties({},{...it(`Temporal.Now`),...rt({timeZoneId(){return yl()},instant(){return du(ki(vl()))},zonedDateTimeISO(e=yl()){let t=U(K(e));return W(Ai(vl(),t))},plainDateTimeISO(e=yl()){return Hu(ji(_l(U(K(e)))))},plainDateISO(e=yl()){return Ju(I(_l(U(K(e)))))},plainTimeISO(e=yl()){return Pu(Mi(_l(U(K(e)))))}})}),sd=Object.defineProperties({},{...it(`Temporal`),...rt({PlainYearMonth:wu,PlainMonthDay:_u,PlainDate:qu,PlainTime:Nu,PlainDateTime:Vu,ZonedDateTime:iu,Instant:uu,Duration:nd,Now:od})}),cd=Ql(Au);function ld(){Object.defineProperties(globalThis,rt({Temporal:sd})),Object.defineProperties(Intl,rt({DateTimeFormat:cd})),Object.defineProperties(Date.prototype,rt({toTemporalInstant:mu}))}function ud(){xl||ld()}ud();var dd=n.__b;n.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),dd&&dd(e)};function fd(e){let t,n,r=()=>e().then(e=>n=e&&e.default||e),i=e=>{let[,i]=_(0),a=c(n);if(t||=r(),n!==void 0)return ne(n,e);throw a.current||=t.then(()=>i(1)),t};return i.preload=()=>(t||=r(),t),i._forwarded=!0,i}var pd=n.__e;n.__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)}pd&&pd(e,t,n)};function md(e){return this.__c=hd,this.componentDidCatch=e.onError,e.children}function hd(e){e.then(()=>this.forceUpdate())}var gd=`modulepreload`,_d=function(e){return`/`+e},vd={},yd=function(e){return e.pathname.endsWith(`.css`)},bd=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw e[t]=void 0,n});return e[t]=i,i},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,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?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=_d(t,n);let r=s(t),i=yd(r);return bd(vd,r.href,()=>{if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let t=document.createElement(`link`);if(t.rel=i?`stylesheet`:gd,i||(t.as=`script`),t.crossOrigin=``,t.href=r.href,a&&t.setAttribute(`nonce`,a),document.head.appendChild(t),i)return new Promise((e,n)=>{t.addEventListener(`load`,e),t.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${r}`)))})})}).filter(e=>e!==void 0))}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)})},xd=t(null);function Sd(){let e=i(xd);if(e==null)throw Error(`Static data unavailable outside provider.`);return e}function Cd(e){let{Provider:t}=xd,n=r(()=>wd(document),[]);return d(t,{value:n,children:e.children})}function wd(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"]`)}}}var Td=class{_array;_map;constructor(e){this._array=e,this._map=new Map(e.map(e=>[this._getID(e),e]))}all(){return this._array}get(e){return this._map.get(e)??null}require(e){let t=this.get(e);if(t==null)throw this._getRequireFailError(e);return t}has(e){return this._map.has(e)}map(e){return this._array.map(e)}filter(e){return this._array.filter(e)}first(e){return this._array.find(e)??null}requireFirst(e){let t=this.first(e);if(t==null)throw this._getPredicateFailError();return t}},Ed=class extends Td{_getID(e){return e.id}_getRequireFailError(e){return Error(`No stop with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching stop.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},Dd=class extends Td{_getID(e){return e.id}_getRequireFailError(e){return Error(`No line with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching line.`)}getByUrlPath(e){return this.first(t=>t.urlPath===e)}},Od=class e{_obj;stops;lines;constructor(e){this._obj=e,this.stops=new Ed(e.stops),this.lines=new Dd(e.lines)}static json=oe.transform(t=>new e(t));get hash(){return this._obj.metadata.hash}get fodaApiVersion(){return this._obj.metadata.fodaApiVersion}get serverVersion(){return this._obj.metadata.serverVersion}get footerPrimaryMarkdown(){return this._obj.footer.primaryMarkdown}get terminology(){return this._obj.terminology}get formatTimezone(){return this._obj.formatTimezone}get landingPage(){return this._obj.landingPage}},kd=`corequery-local-cache`;function Ad(e,t){let n=ie(async()=>{try{let n=await(await caches.open(kd)).match(jd(e));return n==null?null:t.parse(await n.json())}catch(t){return console.warn(`Failed to parse "${e}" in browser cache.`,t),null}},[e,t]),i=ie(async t=>{try{await(await caches.open(kd)).put(jd(e),Response.json(t))}catch(t){console.warn(`Failed to write "${e}" to browser cache.`,t)}},[e]);return r(()=>({get:n,set:i}),[n,i])}function jd(e){return new URL(`/corequery-local-cache/${encodeURIComponent(e)}.json`,window.location.origin).href}var Md={default:`text-icon-lg text-fg-weak`,large:`text-icon-xl text-fg-weak`};function Nd(e){return d(`svg`,{className:a(`_loading-spinner`,Md[e.style??`default`],e.class),xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`,width:`1em`,height:`1em`,role:`img`,children:[d(`title`,{children:`Loading spinner`}),d(`circle`,{cx:`4`,cy:`4`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`12`,cy:`4`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`12`,cy:`12`,r:`2`,fill:`currentColor`}),d(`circle`,{cx:`4`,cy:`12`,r:`2`,fill:`currentColor`})]})}function Pd(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`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`}),d(`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 Fd(e){let t=a(`grid not-disabled:cursor-pointer select-none`,e.class);return e.onClick==null&&e.href!=null&&!(e.disabled??!1)?d(`a`,{class:t,href:e.href,onClick:e.onHrefClick,children:e.children}):d(`button`,{class:t,onClick:e.onClick,disabled:e.disabled,children:e.children})}var Id={left:`justify-start`,center:`justify-center`,right:`justify-end`,"space-between":`justify-between`},Ld={top:`items-start`,center:`items-center`,bottom:`items-end`,stretch:`items-stretch`};function Rd(e){let t=e.as??`div`,n=Id[e.xAlign??`left`],r=Ld[e.yAlign??`stretch`];return d(t,{class:a(`flex flex-row`,n,r,{"flex-wrap":e.wrap},e.class),children:e.children})}function zd(e){return d(g,{class:a(`relative`,e.class),children:[d(g,{class:a({invisible:e.loading}),children:e.children}),e.loading&&d(Rd,{class:`absolute top-0 left-0 right-0 bottom-0`,xAlign:`center`,yAlign:`center`,children:d(Nd,{})})]})}var Bd=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-accent)]`,`not-disabled:[--color-fg-strong:var(--color-on-accent)]`,`not-disabled:[--color-fg-weak:var(--color-on-accent)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Vd=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-accent`,`group-not-disabled:group-hover:bg-accent-hover`,`group-not-disabled:group-active:bg-accent-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Hd(e){let t=e.rounded??!0;return d(Fd,{class:a(e.class,Bd),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:a(Vd,{"rounded-sm":t})}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function Ud(e){return d(Rd,{class:a(e.class,`gap-2 h-8`,{"px-4":e.text!=null,"min-w-8":e.text==null}),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{children:e.text})]})}var Wd=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Gd=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-soft`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function Kd(e){return d(Fd,{class:a(e.class,Wd),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Gd}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var qd=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Jd=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`,`border`,`group-not-disabled:border-soft-border`,`group-disabled:border-soft-border-disabled`]);function Yd(e){return d(Fd,{class:a(e.class,qd),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Jd}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var Xd=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Zd=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function Qd(e){return d(Fd,{class:a(e.class,Xd),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Zd}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var $d=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),ef=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`group-not-disabled:bg-transparent`,`group-not-disabled:group-hover:bg-soft-hover`,`group-not-disabled:group-active:bg-soft-active`]);function tf(e){return d(Fd,{class:a(e.class,$d),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:ef}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function nf(e){let t=e.outerPadding??!1;return d(Rd,{class:a(e.class,`gap-2 min-w-0 py-2`,{"px-4":e.text!=null,"min-w-8":e.text==null,"min-h-10":!t,"min-h-12":t}),yAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{class:`shrink min-w-0`,children:e.text})]})}var rf=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-error)]`,`not-disabled:[--color-fg-strong:var(--color-on-error)]`,`not-disabled:[--color-fg-weak:var(--color-on-error)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),af=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-error`,`group-not-disabled:group-hover:bg-error-hover`,`group-not-disabled:group-active:bg-error-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function of(e){return d(Fd,{class:a(e.class,rf),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:af}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var sf=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-warning)]`,`not-disabled:[--color-fg-strong:var(--color-on-warning)]`,`not-disabled:[--color-fg-weak:var(--color-on-warning)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),cf=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-warning`,`group-not-disabled:group-hover:bg-warning-hover`,`group-not-disabled:group-active:bg-warning-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function lf(e){return d(Fd,{class:a(e.class,sf),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:cf}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var uf=a([`relative`,`group`,`not-disabled:[--color-fg:var(--color-on-success)]`,`not-disabled:[--color-fg-strong:var(--color-on-success)]`,`not-disabled:[--color-fg-weak:var(--color-on-success)]`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),df=a([`absolute`,`z-0`,`top-0`,`bottom-0`,`left-0`,`right-0`,`rounded-sm`,`group-not-disabled:bg-success`,`group-not-disabled:group-hover:bg-success-hover`,`group-not-disabled:group-active:bg-success-active`,`border`,`group-not-disabled:border-transparent`,`group-disabled:border-soft-border-disabled`]);function ff(e){return d(Fd,{class:a(e.class,uf),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:df}),d(zd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function pf(e){return d(Rd,{class:a(e.class,`gap-2 h-8 pl-2 pr-3`),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-lg`}),e.text!=null&&d(u,{children:e.text})]})}var mf={default:Kd,accent:Hd,outlined:Yd,hover:Qd,"hover-square":tf,error:of,warning:lf,success:ff},hf={simple:Ud,"menu-item":nf,"narrow-icon":pf};function gf(e){let t=mf[e.theme??`default`],n=hf[e.layout??`simple`];return d(t,{class:e.class,onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:e.disabled,loading:e.loading,children:d(n,{icon:e.icon,text:e.text})})}function _f(e){let{appName:t}=Sd();return d(g,{class:`w-svw h-svh items-center justify-center`,children:d(h,{class:`gap-12`,xAlign:`center`,children:[d(h,{class:`gap-6`,xAlign:`center`,children:[d(`img`,{class:`w-24 h-24`,src:`/favicon.svg`}),d(u,{style:`title`,children:t})]}),e.error?d(h,{class:`gap-4`,xAlign:`center`,children:[d(u,{children:`An error occurred while loading foundational data`}),d(gf,{text:`Retry`,icon:Pd,onClick:e.onRetry})]}):d(Nd,{style:`large`})]})})}var vf=t(null);function yf(){let e=i(vf);if(e==null)throw Error(`Settings unavailable outside provider.`);return e}var bf=me,xf=le([ue({result:fe(`outdated`),foundationalData:ce()}),ue({result:fe(`up-to-date`)})]),Sf=`corequery-foundational-data`,Cf=2e3;function wf(e){let{Provider:t}=_e,{revalidateSettings:n}=yf(),i=Ad(Sf,Od.json),[a,o]=_(null),[s,c]=_(!1),u=ie(e=>{o(e),n(e)},[n]),f=ie(async e=>{let t=Od.json.parse(e);return u(t),await i.set(e),t.hash},[u,i]),p=ie(async()=>{let e=await Ef(null,null);if(e.result===`up-to-date`)throw Error();return await f(e.foundationalData)},[f]),m=ie(()=>{c(!1),Tf({getCachedData:async()=>await i.get(),onFreshFoda:async e=>await f(e),onUseCachedFoda:e=>u(e),onFailure:()=>c(!0)})},[i,f,u]);l(()=>{m()},[m]);let h=r(()=>a==null?null:{foda:a,forceFodaUpdate:p},[a,p]);return h==null?d(_f,{error:s,onRetry:m}):d(t,{value:h,children:e.children})}async function Tf({getCachedData:e,onFreshFoda:t,onUseCachedFoda:n,onFailure:r}){let i=await e();if(i!=null)try{let e=await Ef(i.hash,Cf);e.result===`up-to-date`?n(i):await t(e.foundationalData)}catch(e){console.warn(`Foundational data refresh failed - using cache.`,e),n(i)}else try{let e=await Ef(null,null);if(e.result===`up-to-date`)throw Error();await t(e.foundationalData)}catch{r()}}async function Ef(e,t){let n=await fetch(`/api${bf.path}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({hash:e}),signal:t==null?void 0:AbortSignal.timeout(t)});if(!n.ok){let e=await n.text();throw Error(`Error ${n.status} calling /api${bf.path}: ${e}`)}return xf.parse(await n.json())}var Df=class e{theme;constructor(e){this.theme=e.theme}static default=new e({theme:`auto`});static json=ue({version:fe(1),theme:se([`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 pe(this.toJson(),e.toJson())}},Of=[`auto`,`light`,`dark`];function kf(){window.applyTheme?.()}function Af(e,t){let n=ie(()=>{try{let n=localStorage.getItem(e);return n==null?null:t.parse(JSON.parse(n))}catch{return console.warn(`Failed to parse "${e}" in local storage.`),null}},[e,t]),i=ie(t=>{try{let n=JSON.stringify(t);localStorage.setItem(e,n)}catch(t){console.warn(`Failed to write "${e}" to local storage.`,t)}},[e]);return r(()=>({get:n,set:i}),[n,i])}function jf(e){let{Provider:t}=vf,n=Af(`corequery-settings`,Df.json),[i,a]=_(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),Df.default)),o=ie((e,t)=>{a(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),kf()},[n]),s=ie(e=>{o(t=>{let n=t.validate(e);return n.equals(t)||console.warn(`Settings updated due to foundational data changes.`),n},{persist:!1})},[o]),c=r(()=>({settings:i,updateSettings:o,revalidateSettings:s}),[i,o,s]);return d(t,{value:c,children:e.children})}function Mf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Nf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`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`}),d(`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 Pf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`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`}),d(`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 Ff(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`path`,{fill:`currentColor`,d:`M10.8 2.65a2 2 0 0 1 2.4 0l7 5.25a2 2 0 0 1 .8 1.6V19a2 2 0 0 1-2 2h-4.9a1.1 1.1 0 0 1-1.1-1.1V14a1 1 0 1 0-2 0v5.9A1.1 1.1 0 0 1 9.9 21H5a2 2 0 0 1-2-2V9.5a2 2 0 0 1 .8-1.6zm1.2 1.6L5 9.5V19h4v-5a3 3 0 1 1 6 0v5h4V9.5z`})]})})}function If(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Lf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Rf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,children:[d(`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`}),d(`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 zf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Bf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Vf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Hf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`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 Uf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Wf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 Gf(){return[{name:`Home`,href:`/`,regularIcon:Ff,activeIcon:Pf,isActive:e=>e===`/`},{name:`Status`,href:`/status`,regularIcon:Nf,activeIcon:Mf,isActive:e=>e===`/status`},{name:`Nearby`,href:`/nearby`,regularIcon:Lf,activeIcon:If,isActive:e=>e===`/nearby`},{name:`Search`,icon:zf,opensSearchDrawer:!0},{name:`More`,icon:Rf,opensMoreDrawer:!0}]}function Kf(){let{appName:e}=Sd();return[{name:`About ${e}`,href:`/about`,icon:Hf},{name:`Settings`,href:`/settings`,icon:Vf},{name:`Developer info`,href:`/debug`,icon:Bf},{name:`Admin controls`,href:`/admin`,icon:Uf},{name:`Zen mode`,href:`/zen`,icon:Wf}]}var qf=t(null);function Jf(){let e=i(qf);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function Yf(e){let{isUpdateAvailable:t,update:n}=Jf(),[r,i]=_(!1);return l(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?d(Hd,{rounded:!1,onClick:()=>void n(),children:d(f,{children:d(nf,{icon:Pd,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function Xf(e,t){let[n,r]=_(!1);return l(()=>{if(!e){r(!1);return}let n=setTimeout(()=>{r(!0)},t);return()=>{clearTimeout(n)}},[e,t]),n}function Zf(e){let t=Kf(),n=Xf(!e.open,300);return d(`div`,{class:a(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:[d(`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`}),d(h,{class:`relative z-1 desktop:flex-col-reverse`,children:[d(f,{children:d(h,{class:`py-2`,children:t.map(t=>d(gf,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),d(Yf,{menuFullyClosed:n})]})]})}function Qf(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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 $f(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:d(`g`,{fill:`none`,fillRule:`evenodd`,children:[d(`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`}),d(`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`})]})})}var ep={stop:e=>e,station:e=>`${e} Station`},tp={line:e=>`${e} Line`,route:e=>`Route ${e}`},np={stop:`stops`,station:`stations`},rp={line:`lines`,route:`routes`},ip={service:`services`,trip:`trips`,train:`trains`,tram:`trams`,bus:`buses`};function ap(){let{foda:e}=ge();return r(()=>({formatStop:ep[e.terminology.stop],formatLine:tp[e.terminology.line],pluralStopsTerm:np[e.terminology.stop],pluralLinesTerm:rp[e.terminology.line],pluralServicesTerm:ip[e.terminology.service]}),[e.terminology])}function op(e){let t=e.withLinks??!1;return d(u,{class:a(e.class),style:e.style,children:d(sp,{lineIds:e.lineIds,withLinks:t})})}function sp({lineIds:t,withLinks:n}){let{foda:r}=ge();if(t.length===0)return{line:`No lines`,route:`No routes`}[r.terminology.line];let i=d(cp,{lineIds:t,withLinks:n});return{line:d(e,{children:[i,` `,t.length===1?`Line`:`lines`]}),route:d(e,{children:[t.length===1?`Route`:`Routes`,` `,i]})}[r.terminology.line]}function cp({lineIds:t,withLinks:n}){let{foda:i}=ge(),a=r(()=>t.map(e=>up(e,i)).sort((e,t)=>e.name.localeCompare(t.name)),[t,i]);return a.length===1?d(lp,{data:ye(a[0]),withLink:n}):a.length===2?d(e,{children:[d(lp,{data:ye(a[0]),withLink:n}),` and`,` `,d(lp,{data:ye(a[1]),withLink:n})]}):d(e,{children:[a.slice(0,-1).map((t,r)=>d(e,{children:[d(lp,{data:ye(t),withLink:n}),`,`,` `]},r)),` and `,d(lp,{data:ye(a[a.length-1]),withLink:n})]})}function lp({data:t,withLink:n}){return n?d(be,{href:t.href,style:`strong-subtle`,dynamicColor:t.color,children:t.name}):d(e,{children:t.name})}function up(e,t){let n=t.lines.require(e);return{name:n.name,href:`/line/${n.urlPath}`,color:n.color}}function dp(){let{foda:e}=ge(),{formatStop:t,formatLine:n,pluralStopsTerm:i,pluralLinesTerm:a}=ap();return{candidates:r(()=>{let r=e.stops.map(e=>({id:`stop-${e.id}`,primary:t(e.name),alternatives:[],data:{title:t(e.name),description:d(op,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:`/stop/${e.urlPath}`,icon:Qf}})),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:$f}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:r(()=>`Search ${i}, ${a}, etc.`,[a,i])}}var fp={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 pp(e){let t=fp[e.style??`regular`],n={class:a(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`};return d(mp,{onSubmit:e.onSubmit,children:e.search??!1?d(`input`,{type:`search`,...n}):d(`input`,{type:`text`,...n})})}function mp(e){return e.onSubmit==null?e.children:d(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var hp=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 gp(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function _p(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function vp(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function yp(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(ve).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function bp(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(ve).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function xp(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new hp(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(gp,{passCandidatesRequiringExactMatch:!0}),i.appendResults(_p),i.appendResults(vp),i.appendResults(yp),i.appendResults(bp),i.getResults()}function Sp(e){return d(`div`,{class:a(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function Cp(e){return d(tf,{href:e.href,onHrefClick:e.onHrefClick,class:a(e.class),children:d(Rd,{class:a(e.class,`gap-3 desktop:gap-2 min-w-0 py-3 px-4 min-h-10`),yAlign:`center`,children:[d(Sp,{heightRem:p(`text-md`),children:d(e.icon,{class:`text-fg text-icon-lg`})}),d(h,{class:`gap-3 shrink`,children:[d(u,{style:`strong`,children:e.title}),e.description]})]})})}function wp(e){let[t,n]=_(``),{candidates:i,placeholder:o}=dp(),{route:s}=m(),p=r(()=>xp(t,i,{maxResults:5}),[t,i]),ee=Xf(!e.open,300);l(()=>{ee&&n(``)},[ee]);let te=c(null),ne=Xf(e.open,100);l(()=>{ne&&te.current?.focus()},[ne]);function re(){p.length>0&&(s(ye(p[0]).url),e.onClose())}return d(`div`,{class:a(e.class,`relative transition-[opacity,visibility,translate] duration-100`,{invisible:!e.open,"opacity-0":!e.open,"-translate-y-4":!e.open}),children:[d(`div`,{class:`absolute top-0 bottom-0 left-0 right-0 bg-bg-raised border-b border-soft-border opacity-97`}),d(f,{class:`relative z-1`,children:d(h,{children:[d(g,{class:`relative py-2 border-b border-b-soft-border not-desktop:bg-bg-navbar`,children:[d(pp,{style:`search`,value:t,onChange:n,class:`px-4 pl-12 h-10 desktop:h-8 desktop:pl-11`,placeholder:o,inputRef:te,onSubmit:re,search:!0}),d(zf,{class:`absolute left-4 top-[50%] translate-y-[-50%] pointer-events-none text-fg-weak text-icon-xl desktop:text-icon-lg`})]}),d(h,{class:`max-h-[calc(100vh-12rem)] py-3 overflow-y-scroll`,children:[p.length===0&&d(g,{class:`h-32 items-center`,children:d(u,{class:`px-4`,style:`weak`,children:t.length===0?`Results will appear here.`:`No results.`})}),p.map(t=>d(Cp,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function Tp(e){let t=e.active??!1;return d(Fd,{class:a(e.class,`group`),onClick:e.onClick,href:e.href,children:d(h,{class:`gap-1 pb-1.5`,xAlign:`center`,yAlign:`center`,children:[d(g,{class:a(`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)&&d(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-1 right-3`}),t===!0?d(e.activeIcon,{class:`text-accent-text text-icon-xl`}):d(e.regularIcon,{class:`text-fg text-icon-xl`})]}),d(u,{style:t?`small-strong-accent`:`small`,children:e.text})]})})}function Ep(e){let{url:t}=m(),n=Gf(),{isUpdateAvailable:r}=Jf();return d(g,{class:a(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=>d(Tp,{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 Dp(e){let t=e.active??!1;return d(g,{class:a(e.class,`border-y-2 border-y-transparent items-center`,{"border-b-accent":t}),children:d(Qd,{class:e.class,onClick:e.onClick,href:e.href,children:d(Rd,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(g,{class:`relative`,children:[(e.showBadge??!1)&&d(`div`,{class:`h-2 w-2 absolute rounded-full bg-accent top-0 right-0`}),t===!0?d(e.activeIcon,{class:`text-fg-strong text-icon-lg`}):d(e.regularIcon,{class:`text-fg text-icon-lg`})]}),d(g,{class:`relative`,children:[d(u,{class:a(`absolute left-0 right-0`,{hidden:t}),style:`regular`,align:`center`,children:e.text}),d(u,{class:a({invisible:!t}),style:`strong`,children:e.text})]})]})})})}function Op(e){return d(`img`,{class:a(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function kp(e){let{appName:t}=Sd(),{url:n}=m(),r=Gf(),{isUpdateAvailable:i}=Jf();return d(f,{class:a(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:d(Rd,{class:`gap-2`,children:[d(Qd,{class:`self-center`,href:`/`,children:d(Rd,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(Op,{class:`text-icon-md`}),d(u,{style:`wordmark`,children:t})]})}),d(Rd,{children:r.map(t=>d(Dp,{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 Ap(e){let{showMobileNav:t,showDesktopNav:n}=ee(),{url:r}=m(),[i,o]=_(!1),[s,c]=_(!1);function u(){c(!1),o(e=>!e)}function f(){o(!1),c(e=>!e)}function p(){o(!1),c(!1)}return l(()=>{o(!1),c(!1)},[r]),d(g,{class:a(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&&!s}),children:[d(`div`,{class:`desktop:hidden row-2 pointer-events-auto relative z-1`,children:t&&d(Ep,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:f})}),d(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&d(kp,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:f})}),d(`div`,{class:`relative z-0 h-full desktop:row-2 not-desktop:row-1`,children:[d(`div`,{class:a(`absolute desktop:top-0 not-desktop:bottom-0 left-0 right-0 z-1`,{"pointer-events-none":!i}),children:d(Zf,{open:i,onClose:p})}),d(`div`,{class:a(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!s}),children:d(wp,{open:s,onClose:p})}),d(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:p})]})]})}function jp(e){return d(`div`,{class:e.class,children:[d(`div`,{class:`relative z-0`,children:e.children}),d(`div`,{class:`relative z-1`,children:d(Ap,{})})]})}var Mp=`false`,Np=`false`,Pp=Mp===`true`,Fp=Np===`true`;function Ip(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,Pp||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await $(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()},!Fp){if(Pp)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 Lp(e){let{Provider:t}=qf,[n,i]=_(!1),[a,o]=_(!1),s=r(()=>Ip({onRegisteredSW:()=>{},onRegisterError:e=>console.warn(`Service worker error:`,e),onNeedRefresh:()=>i(!0),onOfflineReady:()=>o(!0)}),[]),c=ie(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)}},[]),l=r(()=>({isUpdateAvailable:n,isOfflineReady:a,update:s,unregister:c}),[n,a,s,c]);return d(t,{value:l,children:e.children})}function Rp(e,t,n={}){let{callApi:r}=he(),[i,a]=_(null),[o,s]=_(!0),[c,l]=_(null);return de(()=>{let i=!1;async function o(){try{s(!0),l(null);let o=await r(e,t,n);if(i)return;a(o)}catch(e){if(i)return;console.warn(e),l(e)}finally{i||s(!1)}}return o(),()=>{i=!0}},[e,t,n]),{data:i,loading:o,error:c}}function zp(){return{isHotReloadingEnabled:r(()=>!1,[])}}function Bp(e){let{isHotReloadingEnabled:t}=zp(),{frontendVersion:n,versionsOnLastUpdate:r}=Sd(),{unregister:i}=Jf(),{data:a,loading:o,error:s}=Rp(ae,{frontendVersion:n,corequeryPackageVersion:r.corequeryPackageVersion}),c=!t&&!o&&s==null&&a!=null&&a.isForceUpdateOfServiceWorkerRequired;return l(()=>{async function e(){c&&(await i(),window.location.reload())}e()},[c,i]),e.children}var Vp=t(null);function Hp(){let e=i(Vp);if(e==null)throw Error(`Current time unavailable outside provider.`);return e}function Up(e){let{Provider:t}=Vp,[n,i]=_(()=>Wp());l(()=>{let e=setInterval(()=>{let e=Wp();Temporal.Instant.compare(e,n)!==0&&i(e)},1e3);return()=>clearInterval(e)});let a=r(()=>({currentMinute:n}),[n]);return d(t,{value:a,children:e.children})}function Wp(){return Temporal.Now.zonedDateTimeISO(`UTC`).round({smallestUnit:`minute`,roundingMode:`floor`}).toInstant()}var Gp=fd(()=>$(()=>import(`./About-DJhKXgnn.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),Kp=fd(()=>$(()=>import(`./AdminControls-D0pgA5wf.js`),__vite__mapDeps([14,1,8,9,10]))),qp=fd(()=>$(()=>import(`./Debug-Cd_f8CKx.js`),__vite__mapDeps([15,1,2,3,4,8,9,10,11,12,13]))),Jp=fd(()=>$(()=>import(`./Home-DIEadcoR.js`),__vite__mapDeps([16,1,3,5,6,7,8,9,10]))),Yp=fd(()=>$(()=>import(`./Nearby-CqDDKuYT.js`),__vite__mapDeps([17,1,8]))),Xp=fd(()=>$(()=>import(`./Service-frX-LyRg.js`),__vite__mapDeps([18,1,2,3,19,20,21,13,6,8,9,10,22]))),Zp=fd(()=>$(()=>import(`./Settings-BgHb1nlk.js`),__vite__mapDeps([23,1,8,9,10,11,24]))),Qp=fd(()=>$(()=>import(`./Status-sLRF_nKb.js`),__vite__mapDeps([25,1,8,9,10]))),$p=fd(()=>$(()=>import(`./ZenMode-DdoTtVJG.js`),__vite__mapDeps([26,1,7,8,9,10]))),em=fd(()=>$(()=>import(`./Stop-DEsRmVC1.js`),__vite__mapDeps([27,1,2,3,8,10,28,21,13,22]))),tm=fd(()=>$(()=>import(`./Line-Dxew3yXf.js`),__vite__mapDeps([29,1,2,3,20,19,21,13,6,8,9,10,12,28,24]))),nm=fd(()=>$(()=>import(`./NotFound-Dmj1p5xO.js`),__vite__mapDeps([30,1,28,2,3,8])));function rm(){return d(Lp,{children:d(Cd,{children:d(Bp,{children:d(jf,{children:d(wf,{children:d(Up,{children:d(te,{children:d(jp,{children:d(md,{children:d(s,{children:[d(o,{path:`/`,component:Jp}),d(o,{path:`/about`,component:Gp}),d(o,{path:`/admin`,component:Kp}),d(o,{path:`/debug`,component:qp}),d(o,{path:`/line/:id`,component:tm}),d(o,{path:`/nearby`,component:Yp}),d(o,{path:`/service/:sourceId/:intrasourceId`,component:Xp}),d(o,{path:`/settings`,component:Zp}),d(o,{path:`/status`,component:Qp}),d(o,{path:`/stop/:id`,component:em}),d(o,{path:`/zen`,component:$p}),d(o,{default:!0,component:nm})]})})})})})})})})})})}re(d(rm,{}),document.body);export{Pd as _,op as a,Hf as c,Of as d,yf as f,Fd as g,Rd as h,Sp as i,Ff as l,tf as m,zp as n,ap as o,gf as p,Rp as r,Jf as s,Hp as t,Nf as u,Nd as v,Sd as y};
@@ -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-divide-x-reverse:0;--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-xs:.6rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-2xl:1.75rem;--text-icon-xs:.7rem;--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;--radius-lg:.75rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-fg-weak-on-raised:#626a7d;--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:#c2c9d6;--color-soft-border-disabled:#d1d6e0;--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)}}._dynamic-live-icon>:first-child{stroke-opacity:0;animation:2s linear .25s infinite dynamic-live-icon-pulse}._dynamic-live-icon>:nth-child(2){stroke-opacity:0;animation:2s linear infinite dynamic-live-icon-pulse}@keyframes dynamic-live-icon-pulse{0%{stroke-opacity:0}20%{stroke-opacity:1}40%{stroke-opacity:0}to{stroke-opacity:0}}*{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-1\.75{top:calc(var(--spacing) * -1.75)}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.-right-2\.5{right:calc(var(--spacing) * -2.5)}.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-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-\[-0\.38em\]{margin-top:-.38em}.-mb-0\.5{margin-bottom:calc(var(--spacing) * -.5)}.mb-\[-0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.box-content{box-sizing:content-box}.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-8\.5{height:calc(var(--spacing) * 8.5)}.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}.grow{flex-grow: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-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.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)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-soft-border>:not(:last-child)){border-color:var(--color-soft-border)}.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-2{border-style:var(--tw-border-style);border-width:2px}.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-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.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-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.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-2xl{font-size:var(--text-2xl)}.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-icon-xs{font-size:var(--text-icon-xs)}.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)}.text-xs{font-size:var(--text-xs)}.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-error-text{color:var(--color-error-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.text-fg-weak-on-raised{color:var(--color-fg-weak-on-raised)}.text-success-text{color:var(--color-success-text)}.text-warning-text{color:var(--color-warning-text)}.italic{font-style:italic}.font-stretch-semi-condensed{font-stretch:87.5%}.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)}.transition-\[opacity\,visibility\]{transition-property:opacity,visibility;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.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-y{border-block-style:var(--tw-border-style);border-block-width:1px}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.not-desktop\:border-soft-border{border-color:var(--color-soft-border)}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.not-desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.not-desktop\:pr-2{padding-right:calc(var(--spacing) * 2)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}.not-desktop\:pl-4{padding-left:calc(var(--spacing) * 4)}}.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 not all and (width>=48rem){.not-desktop\:last\:-mb-px:last-child{margin-bottom:-1px}}.empty\:hidden:empty{display:none}@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\:mx-4{margin-inline:calc(var(--spacing) * 4)}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:max-w-150{max-width:calc(var(--spacing) * 150)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:gap-2{gap:calc(var(--spacing) * 2)}.desktop\:gap-6{gap:calc(var(--spacing) * 6)}.desktop\:rounded-lg{border-radius:var(--radius-lg)}.desktop\:border{border-style:var(--tw-border-style);border-width:1px}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:border-soft-border{border-color:var(--color-soft-border)}.desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.desktop\:py-8{padding-block:calc(var(--spacing) * 8)}.desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.desktop\:pt-8{padding-top:calc(var(--spacing) * 8)}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pb-4{padding-bottom:calc(var(--spacing) * 4)}.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-fg-weak-on-raised:#8a94a7;--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:#3f485a;--color-soft-border-disabled:#343c4b;--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-fg-weak-on-raised:#8a94a7;--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:#3f485a;--color-soft-border-disabled:#343c4b;--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-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@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 +1 @@
1
- import{_ as e,c as t,g as n,h as r,l as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import"./use-api-Ft007Dfs.js";import{t as l}from"./scope-B-e4l8Dr.js";import{d as u}from"./index-CyUttHc8.js";import{t as d}from"./ErrorMessage-CCAB4vXB.js";function f(e){if(!/^-?[0-9]+$/g.test(e))throw m(e);return parseInt(e,10)}function p(e){return/^-?[0-9]+$/g.test(e)?parseInt(e,10):null}var m=e=>Error(`"${e}" is not an integer.`),h=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 g(e){let{data:a,createController:o}=e,c=n(null),l=n(null),[u,d]=s(null),f=e.interceptTouches??!1?{touchAction:`none`}:void 0;return r(()=>{if(c.current==null||l.current==null)return;let e=o(c.current,l.current);return d(e),()=>{e?.destroy()}},[o]),r(()=>{u?.setData(a)},[u,a]),i(`div`,{ref:c,className:t(e.class,`relative overflow-hidden`),children:i(`canvas`,{className:`absolute top-0 left-0`,ref:l,style:f})})}function _(){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 v=6,y=6,b=1,x=class extends h{_css;_prefersDark;constructor(e,t){super(e,t),this._css=_(),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=l(n[0]),s=l(n[n.length-1]);this._drawLine(e=>{e.moveTo(t,o-b),e.lineTo(t,s+b)}),e.forEach((o,s)=>{let c=l(n[s]),u=s===0&&r||s===e.length-1&&i;(o.drawMark??!0)&&this._drawMark(t,c,u,a)})}_drawLine(e){this.ctx.lineWidth=y,this.ctx.beginPath(),e(this.ctx),this.ctx.stroke()}_drawMark(e,t,n,r){let i={left:-1,right:1}[r];this.ctx.lineWidth=v,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=l(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}},S=class extends x{_onRenderStructure(){let e=this.data.structure;this._renderSection({stops:e.stops,x:this.width/2,yLevels:this._extractYLevels(e.stops,w),terminatesAtTop:!0,terminatesAtBottom:!0,notchSide:`right`})}};function C(e){return i(d,{class:e.class,text:`An error occurred while rendering this diagram`})}var w=`_diagram-stops`;function T(n){let{settings:r}=u(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:r.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,r.theme]),l=c((e,t)=>new S(e,t),[]);return s.structure.stops.length<2?i(C,{}):i(o,{class:t(n.class,`grid-cols-[auto_1fr] gap-4`),children:[i(g,{class:`w-4`,createController:l,data:s}),i(a,{class:t(`gap-6`,w),children:n.structure.stops.map((e,t)=>i(o,{children:e.content},t))})]})}export{p as a,g as i,C as n,f as o,x as r,T as t};
1
+ import{_ as e,c as t,g as n,h as r,l as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-Daz3EeSR.js";import"./use-api-_Y5vsFb-.js";import{t as l}from"./scope-B-e4l8Dr.js";import{f as u}from"./index-ByA44-P7.js";import{t as d}from"./ErrorMessage-Mp0VVnTj.js";function f(e){if(!/^-?[0-9]+$/g.test(e))throw m(e);return parseInt(e,10)}function p(e){return/^-?[0-9]+$/g.test(e)?parseInt(e,10):null}var m=e=>Error(`"${e}" is not an integer.`),h=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 g(e){let{data:a,createController:o}=e,c=n(null),l=n(null),[u,d]=s(null),f=e.interceptTouches??!1?{touchAction:`none`}:void 0;return r(()=>{if(c.current==null||l.current==null)return;let e=o(c.current,l.current);return d(e),()=>{e?.destroy()}},[o]),r(()=>{u?.setData(a)},[u,a]),i(`div`,{ref:c,className:t(e.class,`relative overflow-hidden`),children:i(`canvas`,{className:`absolute top-0 left-0`,ref:l,style:f})})}function _(){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 v=6,y=6,b=1,x=class extends h{_css;_prefersDark;constructor(e,t){super(e,t),this._css=_(),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=l(n[0]),s=l(n[n.length-1]);this._drawLine(e=>{e.moveTo(t,o-b),e.lineTo(t,s+b)}),e.forEach((o,s)=>{let c=l(n[s]),u=s===0&&r||s===e.length-1&&i;(o.drawMark??!0)&&this._drawMark(t,c,u,a)})}_drawLine(e){this.ctx.lineWidth=y,this.ctx.beginPath(),e(this.ctx),this.ctx.stroke()}_drawMark(e,t,n,r){let i={left:-1,right:1}[r];this.ctx.lineWidth=v,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=l(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}},S=class extends x{_onRenderStructure(){let e=this.data.structure;this._renderSection({stops:e.stops,x:this.width/2,yLevels:this._extractYLevels(e.stops,w),terminatesAtTop:!0,terminatesAtBottom:!0,notchSide:`right`})}};function C(e){return i(d,{class:e.class,text:`An error occurred while rendering this diagram`})}var w=`_diagram-stops`;function T(n){let{settings:r}=u(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:r.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,r.theme]),l=c((e,t)=>new S(e,t),[]);return s.structure.stops.length<2?i(C,{}):i(o,{class:t(n.class,`grid-cols-[auto_1fr] gap-4`),children:[i(g,{class:`w-4`,createController:l,data:s}),i(a,{class:t(`gap-6`,w),children:n.structure.stops.map((e,t)=>i(o,{children:e.content},t))})]})}export{p as a,g as i,C as n,f as o,x as r,T as t};