corequery 0.35.0 → 0.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js +2 -0
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js.map +1 -1
- package/server/dist/shared/apis/foundational-data/v1/foundational-data.d.ts +8 -0
- package/server/dist/shared/apis/foundational-data/v1/foundational-data.js +8 -27
- package/server/dist/shared/apis/foundational-data/v1/foundational-data.js.map +1 -1
- package/server/dist/shared/apis/foundational-data/v1/index.d.ts +8 -0
- package/web/dist/assets/{About-DJhKXgnn.js → About-C3wnI7Tt.js} +1 -1
- package/web/dist/assets/AdminControls-DrThgKnx.js +1 -0
- package/web/dist/assets/Alert-DztxgpkO.js +1 -0
- package/web/dist/assets/Debug-Bj0JQBuG.js +1 -0
- package/web/dist/assets/Divider-DoDjWpxt.js +1 -0
- package/web/dist/assets/ErrorMessage-C9JxifQk.js +1 -0
- package/web/dist/assets/Home-Dh99ZtY6.js +1 -0
- package/web/dist/assets/Line-DAVFWc_l.js +1 -0
- package/web/dist/assets/{LinkText-Co4qc0dx.js → LinkText-oghSfaf2.js} +1 -1
- package/web/dist/assets/{Markdown-BY6JcM-Z.js → Markdown-Ds6uHrmO.js} +1 -1
- package/web/dist/assets/{MingcuteAlertLine-DxgntDGK.js → MingcuteAlertLine-Cp5hrd7X.js} +1 -1
- package/web/dist/assets/Nearby-DV_tFaX_.js +1 -0
- package/web/dist/assets/NotFound-CySH3zss.js +1 -0
- package/web/dist/assets/NotFoundPage-BsfQWwp9.js +1 -0
- package/web/dist/assets/{Page-eZ-IZNxm.js → Page-B2FZWIBP.js} +1 -1
- package/web/dist/assets/{Picker-D4ga8LYJ.js → Picker-B95kmKwR.js} +1 -1
- package/web/dist/assets/{Placeholder-B5DNAGHP.js → Placeholder-CCHaFkJj.js} +1 -1
- package/web/dist/assets/Service-CETSSNTt.js +1 -0
- package/web/dist/assets/Settings-7eYiXBh4.js +1 -0
- package/web/dist/assets/{SimpleMobileHeaderContent-y6m4_5yJ.js → SimpleMobileHeaderContent-CvSCYR3o.js} +1 -1
- package/web/dist/assets/Status-DYPebws5.js +1 -0
- package/web/dist/assets/Stop-WWINwzYk.js +11 -0
- package/web/dist/assets/Strong--F1YzYdg.js +1 -0
- package/web/dist/assets/ZenMode-DmkrZopO.js +1 -0
- package/web/dist/assets/corequery-urls-78N8ADzG.js +1 -0
- package/web/dist/assets/index-CYVVbfmA.js +2 -0
- package/web/dist/assets/index-Duc7TGHj.css +2 -0
- package/web/dist/assets/linear-71VpCPEr.js +1 -0
- package/web/dist/assets/{use-api-_Y5vsFb-.js → use-api-qDZl9CKn.js} +2 -2
- package/web/dist/assets/{use-foda-synced-query-BsS3nwV1.js → use-foda-synced-query-CIfQETe2.js} +1 -1
- package/web/dist/assets/{use-foundational-data-DyAlFXWG.js → use-foundational-data-0jB3Jf9I.js} +1 -1
- package/web/dist/assets/{use-nav-exemptions-Daz3EeSR.js → use-nav-exemptions-D8bA5W60.js} +1 -1
- package/web/dist/assets/{use-simple-headers-BGdX3p-e.js → use-simple-headers-BpV0B8HW.js} +1 -1
- package/web/dist/assets/use-terminology-BNoP6KZJ.js +1 -0
- package/web/dist/index.html +8 -7
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/AdminControls-D0pgA5wf.js +0 -1
- package/web/dist/assets/Alert-DSl3_gX3.js +0 -1
- package/web/dist/assets/Debug-Cd_f8CKx.js +0 -1
- package/web/dist/assets/Divider-C465PGQW.js +0 -1
- package/web/dist/assets/ErrorMessage-Mp0VVnTj.js +0 -1
- package/web/dist/assets/Home-DIEadcoR.js +0 -1
- package/web/dist/assets/Line-Dxew3yXf.js +0 -1
- package/web/dist/assets/Nearby-CqDDKuYT.js +0 -1
- package/web/dist/assets/NotFound-Dmj1p5xO.js +0 -1
- package/web/dist/assets/NotFoundPage-CoVT8xxG.js +0 -1
- package/web/dist/assets/Service-frX-LyRg.js +0 -1
- package/web/dist/assets/Settings-BgHb1nlk.js +0 -1
- package/web/dist/assets/Status-sLRF_nKb.js +0 -1
- package/web/dist/assets/Stop-DEsRmVC1.js +0 -11
- package/web/dist/assets/Strong-DYvq_eAK.js +0 -1
- package/web/dist/assets/ZenMode-DdoTtVJG.js +0 -1
- package/web/dist/assets/index-ByA44-P7.js +0 -2
- package/web/dist/assets/index-C46bcc5o.css +0 -2
- package/web/dist/assets/linear-BWJmB0m_.js +0 -1
- package/web/dist/assets/scope-B-e4l8Dr.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/About-C3wnI7Tt.js","assets/use-nav-exemptions-D8bA5W60.js","assets/use-api-qDZl9CKn.js","assets/use-foundational-data-0jB3Jf9I.js","assets/Placeholder-CCHaFkJj.js","assets/Markdown-Ds6uHrmO.js","assets/LinkText-oghSfaf2.js","assets/Strong--F1YzYdg.js","assets/Page-B2FZWIBP.js","assets/use-simple-headers-BpV0B8HW.js","assets/SimpleMobileHeaderContent-CvSCYR3o.js","assets/Divider-DoDjWpxt.js","assets/Alert-DztxgpkO.js","assets/MingcuteAlertLine-Cp5hrd7X.js","assets/AdminControls-DrThgKnx.js","assets/Debug-Bj0JQBuG.js","assets/Home-Dh99ZtY6.js","assets/Nearby-DV_tFaX_.js","assets/Service-CETSSNTt.js","assets/use-terminology-BNoP6KZJ.js","assets/linear-71VpCPEr.js","assets/ErrorMessage-C9JxifQk.js","assets/corequery-urls-78N8ADzG.js","assets/use-foda-synced-query-CIfQETe2.js","assets/Settings-7eYiXBh4.js","assets/Picker-B95kmKwR.js","assets/Status-DYPebws5.js","assets/ZenMode-DmkrZopO.js","assets/Stop-WWINwzYk.js","assets/NotFoundPage-BsfQWwp9.js","assets/Line-DAVFWc_l.js","assets/NotFound-CySH3zss.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-D8bA5W60.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-qDZl9CKn.js";import{n as ge,t as _e}from"./use-foundational-data-0jB3Jf9I.js";import{n as ve,r as ye,t as be}from"./use-terminology-BNoP6KZJ.js";import{n as xe,t as v}from"./corequery-urls-78N8ADzG.js";import{t as Se}from"./LinkText-oghSfaf2.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 Ce=(e,t)=>`Non-positive ${e}: ${t}`,we=(e,t)=>`Non-finite ${e}: ${t}`,Te=e=>`Cannot convert bigint to ${e}`,Ee=`Invalid object`,De=(e,t,n,r)=>Oe(e,t)+`; must be between ${n}-${r}`,Oe=(e,t)=>`Invalid ${e}: ${t}`,ke=1e3,Ae=1e6,je=1e9,Me=6e10,Ne=36e11;function Pe(e){return e===void 0?Object.create(null):Be(e)}function Fe(e,t=`number`){if(typeof e==`bigint`)throw TypeError(Te(t));if(e=Number(e),!Number.isFinite(e))throw RangeError(we(t,e));return e}function y(e,t){return Math.trunc(Fe(e,t))||0}function Ie(e,t){return Le(y(e,t),t)}function Le(e,t=`number`){if(e<=0)throw RangeError(Ce(t,e));return e}function Re(e,t,n){return Math.min(Math.max(e,t),n)}function ze(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Be(e){if(!ze(e))throw TypeError(Ee);return e}var Ve=Oe,He=e=>`Missing ${e}`,Ue=e=>`No valid fields: `+e.join(),We=(e,t,n)=>Oe(e,t)+`; must be `+Object.keys(n).join(),Ge=`Cannot use valueOf`,Ke=`Invalid calling context`,qe=e=>`Missing year`+(e?`/era/eraYear`:``),Je=`Invalid leap month`,Ye=e=>Oe(`Calendar`,e),Xe=(e,t)=>`Unknown calendar ${e}; might need ${t}`,Ze=e=>Oe(`TimeZone`,e),Qe=e=>`Cannot parse: ${e}`,$e=e=>`Invalid substring: ${e}`,et=e=>`Cannot format ${e}`,tt=Re,b=ze;function x(e){throw RangeError(e)}function S(e){throw TypeError(e)}function nt(e,t,n,r,i){return C(t,((e,t)=>{let n=e[t];return n===void 0&&S(He(t)),n})(e,t),n,r,i)}function C(e,t,n,r,i,a){let o=tt(t,n,r);return i&&t!==o&&x(((e,t,n,r,i)=>i?De(e,i[t],i[n],i[r]):De(e,t,n,r))(e,t,n,r,a)),o}function rt(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 it=e=>at({name:e},1),at=(e,t)=>st(e=>({value:e,configurable:1,writable:!t}),e),ot=e=>({[Symbol.toStringTag]:{value:e,configurable:1}});function st(e,t){let n={};for(let r in t)n[r]=e(t[r],r);return n}function ct(e,t){let n={};for(let r of e)n[r]=t;return n}function lt(e){let t={};for(let n of e)t[n]=e=>e[n];return t}function ut(e,t,n=Object.create(null)){for(let r of e)n[r]=t[r];return n}function dt(e,t,n){for(let r of e)if(t[r]!==n[r])return 0;return 1}function ft(e,t,n){let r={...n};for(let n=0;n<t;n++)r[e[n]]=0;return r}function w(e,...t){return(...n)=>e(...t,...n)}function pt(e){return e}function mt(){}function ht(e){return e[0].toUpperCase()+e.substring(1)}function T(...e){return[].concat(...e).sort()}function gt(e){return RegExp(`^${e}$`,`i`)}function _t(e){return parseInt(e.padEnd(9,`0`))}function vt(e){return e&&e!==`+`?-1:1}function yt(e){return e===void 0?0:parseInt(e)}function bt(e,t){return String(t).padStart(e,`0`)}var xt=w(bt,2);function St(e,t){return Math.sign(e-t)}function E(e,t){return e<t?-1:+(e>t)}function Ct(e,t){let n=e/t;return e%t<0n?n-1n:n}function wt(e,t){let n=Ct(e,t);return[n,e-n*t]}function Tt(e,t){return[Math.floor(e/t),Et(e,t)]}function Et(e,t){return(e%t+t)%t}function Dt(e,t){return Math.trunc(e/t)||0}function Ot(e,t){return e%t||0}function kt(e,t=1){return t*(.5+e/5)}function At(e){return Math.abs(e%1)===.5}var jt=`iso8601`,Mt={bce:-1,ce:0};function Nt(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 Pt(e){return e===void 0?`iso8601`:e===0?`gregory`:e.id}var Ft=/^M(\d{2})(L?)$/;function It(e){let t=Ft.exec(e);return t||x((e=>`Invalid monthCode: ${e}`)(e)),[parseInt(t[1]),!!t[2]]}function Lt(e,t){return`M`+xt(e)+(t?`L`:``)}function Rt(e,t,n){return e+(t||n&&e>=n?1:0)}var zt={nanosecond:0,microsecond:1,millisecond:2,second:3,minute:4,hour:5,day:6,week:7,month:8,year:9},Bt=Object.keys(zt),Vt=ke,Ht=Ae,Ut=je,Wt=Me,Gt=Ne,Kt=864e11,qt=[1,Vt,Ht,Ut,Wt,Gt,Kt],Jt=BigInt(Vt),Yt=BigInt(Ht),Xt=BigInt(Ut),Zt=BigInt(Wt),Qt=BigInt(Gt),D=BigInt(Kt);function $t(e,t){let n=Number(e/D),r=Number(e%D);return Kt/t*n+(Math.trunc(r/t)+r%t/t)}var O=Bt.slice(0,6),en=lt(O),tn=[`year`],nn=[`day`],rn=[`day`,`month`,`year`],an=[`offset`],on=[`timeZone`],sn=[`era`,`eraYear`],cn=[`era`,`eraYear`,`year`],ln=[`month`,`monthCode`],un=[`day`,`month`,`monthCode`],dn=T(O),fn=T(sn,tn),pn=T(ln,tn),mn=T(sn,pn),hn=T([`monthCode`],tn),gn=T(sn,hn),_n=T(nn,[`monthCode`]),vn=T(nn,pn),yn=T(nn,sn,pn),bn=T(vn,O),xn=T(yn,O),Sn=T(vn,O,an),Cn=T(yn,O,an),wn=T(vn,O,an,on),Tn=T(yn,O,an,on),En=T(nn,hn),Dn=T(nn,sn,hn),On=ct(O,0);function kn(e){return jn(e,1),e}var An={hour:23,minute:59,second:59};function jn(e,t){let n={};for(let r of O)n[r]=C(r,e[r],0,An[r]||999,t);return n}function k(e){return Nn(e)*Ut+Pn(e)}function Mn(e){return 1e3*Nn(e)+e.millisecond}function Nn(e){return 3600*e.hour+60*e.minute+e.second}function Pn(e){return e.millisecond*Ht+e.microsecond*Vt+e.nanosecond}function Fn(e){let[t,n]=Tt(e,Kt);return[In(n),t]}function In(e){let[t,n]=Tt(e,Ht),[r,i]=Tt(n,Vt);return Ln(t,r,i)}function Ln(e,t=0,n=0){let[r,i]=Tt(e,36e5),[a,o]=Tt(i,6e4),[s,c]=Tt(o,1e3);return{hour:r,minute:a,second:s,millisecond:c,microsecond:t,nanosecond:n}}function Rn(e){let[t,n]=wt(e,Xt);return[Number(t),Number(n)]}function zn(e){return Number(Ct(e,Yt))}function A(e){return Vn(e)+BigInt(k(e))}function Bn(e){return Hn(e)+Mn(e)}function Vn(e){return BigInt(Un(e))*D}function Hn(e){return 864e5*Un(e)}function Un(e){return Wn(e.year,e.month,e.day)}function Wn(e,t=1,n=1){let r=t-1;return e+=Math.floor(r/12),t=Et(r,12),Date.UTC(e%400-400,t,0)/864e5+146097*(Dt(e,400)+1)+n}function Gn(e){let[t,n]=wt(e,D);return{...Kn(Number(t)),...In(Number(n))}}function Kn(e){let t=new Date(864e5*Et(e,146097));return{year:t.getUTCFullYear()+400*Math.floor(e/146097),month:t.getUTCMonth()+1,day:t.getUTCDate()}}function qn(e){return[e,0]}function Jn(e,t){if(!t)return{year:1972,month:e}}function Yn(e,t,n){return{year:e,month:t,day:n}}function Xn(e,t){switch(t){case 2:return Qn(e)?29:28;case 4:case 6:case 9:case 11:return 30}return 31}function Zn(e){return Qn(e)?366:365}function Qn(e){return e%4==0&&(e%100!=0||e%400==0)}function $n(e,t,n){return e+=Dt(n,12),(t+=Ot(n,12))<1?(e--,t+=12):t>12&&(e++,t-=12),{year:e,month:t}}function er(e,t,n,r){return 12*(n-e)+r-t}function tr(e){return Et(Wn(e.year,e.month,e.day)+4,7)||7}function nr(e){return Wn(e.year,e.month,e.day)-Wn(e.year)+1}function rr(e){let t=e.year,n=Math.floor((nr(e)-tr(e)+10)/7),r=ir(t);return n<1?n=r=ir(--t):n>r&&(n=1,r=ir(++t)),{weekOfYear:n,yearOfWeek:t,De:r}}function ir(e){let t=tr({year:e,month:1,day:1});return t===4||t===3&&Qn(e)?53:52}function ar({year:e}){return e<1?{era:`bce`,eraYear:1-e}:{era:`ce`,eraYear:e}}function or(e){return sr(e),kn(e)}function sr(e){return lr(e,1),e}function cr(e){return dt(rn,e,lr(e))}function lr(e,t){let{year:n}=e,r=nt(e,`month`,1,12,t);return{year:n,month:r,day:nt(e,`day`,1,Xn(n,r),t)}}function j(e,t){return e?e.de(t):t}function ur(e,t,n){return e?e.N(t,n):qn(n)}function dr(e,t){return e===0?ar(t):e&&e.h?.(t)||{}}function fr(e,t,n,r){return e?e.fe(t,n,r):Yn(t,n,r)}function pr(e,t){return e?e.j(t):12}function mr(e,t,n){return e?e.o(t,n):Xn(t,n)}function hr(e,t){let{year:n,month:r}=j(e,t),[i,a]=ur(e,n,r);return Lt(i,a)}function gr(e,t){let{year:n}=j(e,t);return e?e.q(n):Qn(n)}function _r(e,t){let{year:n}=j(e,t);return pr(e,n)}function vr(e,t){let{year:n,month:r}=j(e,t);return mr(e,n,r)}function yr(e,t){let{year:n}=j(e,t);return e?e.i(n):Zn(n)}function br(e,t){if(!e)return nr(t);let{year:n}=j(e,t),r=fr(e,n,1,1);return Un(t)-Un(r)+1}function xr(e,t){return e===void 0?rr(t).weekOfYear:void 0}function Sr(e,t){return e===void 0?rr(t).yearOfWeek:void 0}var M=Bt.map(e=>e+`s`),Cr=lt(M),wr=T(M),Tr=M.slice(0,6),Er=M.slice(6),Dr=Er.slice(1),N=ct(M,0),Or=ct(Tr,0),kr=w(ft,M);function Ar(e,t){return t??x(He(e)),t}var P=w(jr,`string`);function jr(e,t,n=e){return typeof t!==e&&S(Ve(n,t)),t}function Mr(e,t=`number`){return Number.isInteger(e)||x(((e,t)=>`Non-integer ${e}: ${t}`)(t,e)),e||0}function Nr(e){return typeof e==`symbol`&&S(`Cannot convert Symbol to string`),String(e)}function Pr(e){if(!ze(e))return e;let t=e[Symbol.toPrimitive];if(t!=null){typeof t!=`function`&&S();let n=Reflect.apply(t,e,[`string`]);return ze(n)&&S(),n}return Date.prototype[Symbol.toPrimitive].call(e,`string`)}function Fr(e){return typeof e==`boolean`?BigInt(+!!e):typeof e==`string`?BigInt(e):(typeof e!=`bigint`&&S(`Invalid bigint: ${e}`),e)}function Ir(e,t){return Mr(Fe(e,t),t)}var Lr=`smallestUnit`,Rr={constrain:0,reject:1},zr={compatible:0,reject:1,earlier:2,later:3},Br={reject:0,use:1,prefer:2,ignore:3},Vr={auto:0,never:1,critical:2,always:3},Hr={auto:0,never:1,critical:2},Ur={auto:0,never:1},Wr={floor:0,halfFloor:1,ceil:2,halfCeil:3,trunc:4,halfTrunc:5,expand:6,halfExpand:7,halfEven:8},Gr=[Math.floor,e=>At(e)?Math.floor(e):Math.round(e),Math.ceil,e=>At(e)?Math.ceil(e):Math.round(e),Math.trunc,e=>At(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=>At(e)?(e=Math.trunc(e)||0)+e%2:Math.round(e)],Kr={previous:-1,next:1};function qr(e){let t=e.roundingIncrement;return t===void 0?1:y(t,`roundingIncrement`)}function Jr(e){let t=e.fractionalSecondDigits;if(t!==void 0){if(typeof t!=`number`){if(Nr(t)===`auto`)return;x(Ve(`fractionalSecondDigits`,t))}t=C(`fractionalSecondDigits`,Math.floor(t),0,9,1)}return t}function Yr(e,t,n=0,r){let i=t[e];if(i===void 0)return r?n:void 0;if(i=Nr(i),i===`auto`)return r?n:null;let a=zt[i];return a===void 0&&(a=M.indexOf(i)),a<0&&x(We(e,i,zt)),a}function Xr(e,t,n,r=0){let i=n[e];if(i===void 0)return r;let a=Nr(i),o=t[a];return o===void 0&&x(We(e,a,t)),o}var Zr=w(Yr,Lr),Qr=w(Yr,`largestUnit`),$r=w(Yr,`unit`),ei=w(Xr,`overflow`,Rr),ti=w(Xr,`disambiguation`,zr),ni=w(Xr,`offset`,Br),ri=w(Xr,`calendarName`,Vr),ii=w(Xr,`timeZoneName`,Hr),ai=w(Xr,`offset`,Ur),oi=w(Xr,`roundingMode`,Wr),si=w(Xr,`direction`,Kr);function ci(e,t){return typeof e==`string`?((e,t)=>{let n=Object.create(null);return n[e]=t,n})(t,e):Be(e)}function li(e,t,n,r){let i=r?Kt:qt[t+1];if(i){let n=qt[t];i%((e=C(`roundingIncrement`,e,1,i/n-+!r,1))*n)&&x(Ve(`roundingIncrement`,e))}else e=C(`roundingIncrement`,e,1,n?10**9:1,1);return e}function ui(e,t,n,r){return t!=null&&C(e,t,n,r,1,Bt),t}function di(e,t){t>e&&x(`smallestUnit > largestUnit`)}function fi(e,t,n,r=9,i=0,a=4){t=Pe(t);let o=Qr(t,i),s=qr(t),c=oi(t,a),l=Zr(t,i,1);return o=ui(`largestUnit`,o,i,r),l=ui(Lr,l,i,r),o==null?o=Math.max(n,l):di(o,l),s=li(s,l,1),e&&(c=(e=>e<4?(e+2)%4:e)(c)),[o,l,s,c]}function pi(e,t=6,n){let r=qr(e=ci(e,Lr)),i=oi(e,7),a=Zr(e);return a=Ar(Lr,a),a=ui(Lr,a,0,t),r=li(r,a,void 0,n),[a,r,i]}function F(e,t){return ut(rn,e,ut(O,t))}var mi=BigInt(1e8)*D,hi=BigInt(-1e8)*D,gi=hi-D,_i=-3261848;function vi(e){let t=12*e.year+e.month;return(t<_i||t>3309129)&&x(`Out-of-bounds date`),e}function yi(e,t=1){let n=Vn(e);return(n<(t?gi:hi)||n>mi)&&x(`Out-of-bounds date`),e}function bi(e){return xi(A(e)),e}function xi(e){return(e<=gi||e>=mi+D)&&x(`Out-of-bounds date`),e}function Si(e){return(e<hi||e>mi)&&x(`Out-of-bounds date`),e}function Ci(e,t){return Si(Vn(e)+BigInt(k(e)-t))}function wi(e,t,n){return Ti(e/t,n)*t}function Ti(e,t){return Gr[t](e)}function Ei(e,t,n,r){let i=Oi(e,t,r,n);return Ai(i,Number(n-i.I)/Number(i.O-i.I))}function Di(e,t,n,r){return wi(Ai(e,ji(t,e.I,e.O)),n,r)}function Oi(e,t,n,r){let i=ki(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=ki(e+t,t,n)),i}function ki(e,t,n){let r=e+t;return{ve:e,qe:r,I:n(e),O:n(r)}}function Ai(e,t){return e.ve+t*(e.qe-e.ve)}function ji(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=E(i,0n)===E(r,0n)?1:-1;return E(a,o)<=0?a===o?s:kt(E(2n*a,o),s):Number(i)/Number(r)}function Mi(e){return{epochNanoseconds:e}}function Ni(e,t,n){return{calendar:n,timeZone:t,epochNanoseconds:e}}function Pi(e,t){return ut(O,e,I(e,t))}function I(e,t){return ut(rn,e,{calendar:t})}function Fi(e){return ut(O,e)}function Ii(e){return ut(M,e,{sign:Za(e)})}function Li(e,t,n,r){return Ni(t===6?Hi(e,r):Ui(e,t,n,r),e.timeZone,e.calendar)}function Ri(e){let[t,n]=Yi(e);return $t(n-t,Gt)}function zi(e){let{timeZone:t,calendar:n}=e;return Ni(oa(t,F(L(e),On)),t,n)}function Bi(e,t,n,r,i,a,o,s){if(r===0&&i===1)return e;let c=Za(e)||1,[l,u,d]=(Ua(r,s)?s&&r<6&&n>=6?qi:Ji:Ki)(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=kr(o,e);r[M[o]]+=i;let s=E(t,za(a,r));if(s&&s!==i)break;e=r}return e})(l,u,n,Math.max(6,r),c,o)),l}function Vi(e,t,n){let r=Math.min(so(e),6);return io(Qi(to(e),BigInt(t),n),r)}function Hi(e,t){let[n,r]=Yi(e);return Xi(e.epochNanoseconds,n,r,t)}function Ui(e,t,n,r){if(t===0&&n===1)return e.epochNanoseconds;let i=L(e);return ia(e.timeZone,Wi(i,ta(t,n),r),i.offsetNanoseconds,2,0,1)}function Wi(e,t,n){let[r,i]=Gi(e,t,n),a=F(ya(e,i),r);return bi(a),a}function Gi(e,t,n){return Fn(wi(k(e),t,n))}function Ki(e,t,n,r,i,a,o,s){let c=M[i],l=kr(i,t);i===7&&(t={...t,weeks:t.weeks+Math.trunc(t.days/7)});let u=Dt(t[c],a)*a,d=Oi(u,a*e,e=>(l[c]=e,za(s,l)),n),f=Di(d,n,a,o);return l[c]=f,[l,f===d.qe?d.O:d.I,f!==u]}function qi(e,t,n,r,i,a,o,s){let c=Number(no(t)),l=ta(i,a),u=wi(c,l,o),d={...t,...Or},f=Oi(d.days,e,e=>(d.days=e,za(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=wi(h,l,o),n=m+BigInt(u));let ee=ao(u);return[{...t,...ee,days:t.days+g},n,!!g]}function Ji(e,t,n,r,i,a,o){let s=to(t),c=Qi(s,na(i,a),o),l=c-s,u=Math.sign(Number(c/D)-Number(s/D))===e,d=io(c,Math.min(r,6));return[{...t,...d},n+l,u]}function Yi(e){let{timeZone:t}=e,n=F(L(e),On),r=F(ya(n,1),On);return[oa(t,n),oa(t,r)]}function Xi(e,t,n,r){return Ti(ji(e<n?e:n-1n,t,n),r)?n:t}function Zi(e){return wi(e,Wt,7)}function Qi(e,t,n){return ea(e,t,n,e/t%2n)}function $i(e,t,n){let[r,i]=wt(e,D),a=r*D;return a+ea(i,t,n,(a/t+i/t)%2n)}function ea(e,t,n,r){let i=e/t,a=e%t,o=0;a&&(o=kt(E(2n*(a<0n?-a:a),t),Math.sign(Number(a))));let s=Ti(Number(r)+o,n);return(i-r+BigInt(s))*t}function ta(e,t){return qt[e]*t}function na(e,t){return BigInt(qt[e])*BigInt(t)}var L=rt(ra,WeakMap);function ra(e){let{epochNanoseconds:t,timeZone:n}=e,r=n.B(t);return{...Gn(t+BigInt(r)),offsetNanoseconds:r}}function ia(e,t,n,r=0,i=0,a,o){if(n!==void 0&&r===1&&(r===1||o))return Ci(t,n);r!==2&&r!==0||yi(t,0);let s=e.R(t);if(n!==void 0&&r!==3){let e=((e,t,n,r)=>{let i=A(t);r&&(n=Zi(n));for(let t of e){let e=Number(i-t);if(r&&(e=Zi(e)),e===n)return t}})(s,t,n,a);if(e!==void 0)return e;r===0&&x(`Invalid TimeZone offset`)}return o?A(t):aa(e,t,i,s)}function aa(e,t,n=0,r=e.R(t)){if(r.length===1)return r[0];if(n===1&&x(`Ambiguous offset`),r.length)return r[+(n===3)];let i=A(t),a=((e,t)=>{let n=e.B(t-D);return(e=>(e>Kt&&x(`Out-of-bounds TimeZone gap`),e))(e.B(t+D)-n)})(e,i),o=Gn(i+BigInt(a*(n===2?-1:1)));return(r=e.R(o))[n===2?0:r.length-1]}function oa(e,t){let n=e.R(t);if(n.length)return n[0];let r=A(t)-D;return e.C(r,1)}function sa(e,t,n,r=0){return Za(n)&&C(`unit`,so(n),8,9,1,M),pa(e,fa(e,yi(pa(e,t)),n,r))}function ca(e,t,n=0){let{calendar:r,epochNanoseconds:i,timeZone:a}=e,o=no(t),s=i;if(oo(t)){let i=L(e);s=aa(a,F(fa(r,i,{...t,...Or},n),i))+o}else s+=o;return{...e,epochNanoseconds:Si(s)}}function la(e,t,n,r=0){let[i,a]=ua(t,n);return bi(F(fa(e,t,{...n,...Or,days:n.days+a},r),i))}function ua(e,t){return _a(e,no(t))}function da(e,t){return va(e,(C(`unit`,so(n=t),0,5,1,M),no(n)));var n}function fa(e,t,n,r=0){let{years:i,months:a,weeks:o,days:s}=n,c;if(s+=Number(no(n)/D),i||a)c=ma(e,t,i,a,r);else{if(!o&&!s)return t;c=t}return(o||s)&&(c=ya(c,7*o+s)),yi(c)}function pa(e,t){return ya(t,1-j(e,t).day)}function ma(e,t,n,r,i){let{year:a,month:o,day:s}=j(e,t);if(n){let[t,r]=ur(e,a,o);a+=n,o=ga(e,t,r,e?e.p(a):void 0,i),o=C(`month`,o,1,pr(e,a),i)}if(r){let t=ha(e,a,o,r);({year:a,month:o}=t)}return s=C(`day`,s,1,mr(e,a,o),i),fr(e,a,o,s)}function ha(e,t,n,r){return e?e.ae(t,n,r):$n(t,n,r)}function ga(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&&x(Je),n<0?-n:t)}return Rt(t,0,r)}function _a(e,t){let n=Number(t/D),r=Number(t%D),[i,a]=Fn(k(e)+r);return[i,n+a]}function va(e,t){return Si(e+t)}function ya(e,t){return t?Kn(Un(e)+t):e}function ba(e,t){return Pt(e)!==Pt(t)&&x(`Mismatching Calendars`),e}function xa(e,t){return e.m!==t.m&&x(`Mismatching TimeZones`),e}function Sa(e){return e.timeZone.id}function Ca(e,t,n,r,i,a,o){return r<6?ka(t.epochNanoseconds,n.epochNanoseconds,r,i,a,o):((e,t,n,r,i,a,o)=>{let s=n.epochNanoseconds;if(s===t.epochNanoseconds)return N;let c,l=xa(t.timeZone,n.timeZone);return c=Aa(l,e,t,n,r),c=Bi(c,s,r,i,a,o,Ba(e,l,t),1),c})(e,t,n,r,i,a,o)}function wa(e,t,n,r,i,a,o){return r<=6?ka(A(t),A(n),r,i,a,o):((e,t,n,r,i,a,o)=>{let s=A(n),c=E(s,A(t));if(!c)return N;let l;return l=Ma(e,t,n,c,r),l=Bi(l,s,r,i,a,o,((e,t)=>({ne:A(t),ke:n=>A(F(fa(e,t,n),t))}))(e,t)),l})(e,t,n,r,i,a,o)}function Ta(e,t,n,r,i,a,o){let s=pa(e,t),c=pa(e,n);return Fa(s,c)?Oa(e,yi(s),yi(c),r,i,a,o,8):N}function Ea(e,t,n,r,i,a,o,s=6){return r===6?ka(Vn(t),Vn(n),r,i,a,o):Oa(e,t,n,r,i,a,o,s)}function Da(e,t,n,r,i,a){let o=wi(k(t)-k(e),ta(r,i),a);return{...N,...ao(o,n)}}function Oa(e,t,n,r,i,a,o,s=6){let c=Vn(n);if(!Fa(t,n))return N;let l;return l=Pa(e,t,n,r),i===s&&a===1||(l=Bi(l,c,r,i,a,o,Va(e,t))),l}function ka(e,t,n,r,i,a){return{...N,...io(Qi(t-e,na(r,i),a),n)}}function Aa(e,t,n,r,i){return i<6?{...N,...io(r.epochNanoseconds-n.epochNanoseconds,i)}:((e,n,r)=>{let a=E(r.epochNanoseconds,n.epochNanoseconds);if(!a)return N;if(!Fa(L(n),L(r)))return{...N,...io(r.epochNanoseconds-n.epochNanoseconds,5)};let[o,s,c]=Na(e,n,r,a);return{...(l=o,u=s,Pa(t,l,u,i)),...ao(c)};var l,u})(e,n,r)}function ja(e,t,n,r){let i=A(t),a=A(n),o=E(a,i);return o?r<=6?{...N,...io(a-i,r)}:Ma(e,t,n,o,r):N}function Ma(e,t,n,r,i){let a=n,o=k(n)-k(t);return Math.sign(o)===-r&&(a=ya(n,-r),o+=Kt*r),{...Pa(e,t,a,i),...ao(o)}}function Na(e,t,n,r){let i=L(t),a=L(n),o=n.epochNanoseconds,s=0,c=k(a)-k(i);Math.sign(c)===-r&&s++;let l=s+ +(r>0);for(;;s++){let t=ya(a,s*-r),n=aa(e,F(t,i));if(s===l||E(o,n)!==-r)return[i,t,Number(o-n)]}}function Pa(e,t,n,r){if(r<=7)return((e,t,n)=>{let r=Ia(t,n);return e?{...N,weeks:Dt(r,7),days:Ot(r,7)}:{...N,days:r}})(r===7,t,n);let i=j(e,t),a=j(e,n);if(r===8){let{year:r,month:o,day:s}=i,{year:c,month:l,day:u}=a,d=Math.sign(St(c,r)||St(l,o)||Ia(t,n)),f=0,p=0;if(d){f=e?e.ee(r,o,c,l):er(r,o,c,l);let i=ma(e,t,0,f,0);d*St(s,u)>0&&(f-=d,i=ma(e,t,0,f,0)),p=Ia(i,n)}return{...N,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=mr(e,l,u),r=0;if(Math.sign(d-c)===-t){let i=n,a=ha(e,l,u,-t);({year:l,month:u}=a),f=l-o,p=u-s,n=mr(e,l,u),r=t<0?-i:n}if(m=d-Math.min(c,n)+r,f){let[n,r]=ur(e,o,s),[i,a]=ur(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&&-pr(e,l);l-=t,f=l-o,p=u-ga(e,n,r,e?e.p(l):void 0,0)+(i||pr(e,l))}else if(e){let t=ga(e,n,r,e.p(l),0);p=e.ee(l,t,l,u)}}}return{...N,years:f,months:p,days:m}}function Fa(e,t){return St(e.year,t.year)||St(e.month,t.month)||St(e.day,t.day)}function Ia(e,t){return Un(t)-Un(e)}function La(e,t,n){return Ha(e)?((e,t,n)=>{let{calendar:r,timeZone:i}=e,a=ca(e,t);return[Aa(i,r,e,a,n),a.epochNanoseconds,Ba(r,i,e)]})(e,t,n):((e,t,n)=>{let{calendar:r}=e,i=bi(F(e,On)),a=la(r,i,t);return[ja(r,i,a,n),A(a),Va(r,e)]})(e,t,n)}function Ra(e,t){return Ha(e)?ca(e,t).epochNanoseconds:A(la(e.calendar,F(e,On),t))}function za(e,t){return oo(t)?e.ke(t):e.ne}function Ba(e,t,n){let r=L(n);return{ne:n.epochNanoseconds,ke:n=>aa(t,F(fa(e,r,n),r))}}function Va(e,t){return{ne:Vn(t),ke:n=>Vn(fa(e,t,n))}}function Ha(e){return`timeZone`in e}function Ua(e,t){return e<=6-!!t}function Wa(e,t,n){let r={};for(let i=t;i>=0;i--){let t=qt[i];r[n[i]]=Dt(e,t),e=Ot(e,t)}return r}var Ga=2**53;function Ka(e,t,n){let r=Math.max(so(t),so(n));return C(`unit`,r,0,6,1,M),((e,t,n,r)=>Ii(Qa(((e,t,n,r)=>{let i=to(e)+to(t)*BigInt(r?-1:1);return Number.isFinite(Number(i/D))||x(`Out-of-bounds date`),{...N,...io(i,n)}})(t,n,r,e))))(e,t,n,r)}function qa(e,t,n){let r=so(t),[i,a,o,s,c]=((e,t,n)=>{e=ci(e,Lr);let r=Qr(e),i=n(e.relativeTo),a=qr(e),o=oi(e,7),s=Zr(e);return r===void 0&&s===void 0&&x(`Required smallestUnit or largestUnit`),s??=0,r??=Math.max(s,t),di(r,s),a=li(a,s,1),a>1&&s>5&&r!==s&&x(`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 Ii(Qa(((e,t,n,r,i)=>{let a=Qi(to(e),na(n,r),i);return{...N,...io(a,t)}})(t,i,a,o,s)));c||x(`Missing relativeTo`);let l=Ha(c);if(!t.sign&&(!l||i<6))return t;let[u,d,f]=La(c,t,i);return Ii(Bi(u,d,i,a,o,s,f,l))}function Ja(e){return e.sign===-1?Ya(e):e}function Ya(e){return Ii(Xa(e))}function Xa(e){let t={};for(let n of M)t[n]=-1*e[n]||0;return t}function Za(e,t=M){let n=0;for(let r of t){let t=Math.sign(e[r]);t&&(n&&n!==t&&x(`Cannot mix duration signs`),n=t)}return n}function Qa(e){for(let t of Dr)$a(t,e[t]);let t=to(e);return eo(Number(t/Xt)),e}function $a(e,t){return C(e,t,-4294967295,4294967295,1)}function eo(e){Number.isSafeInteger(e)||x(`Out-of-bounds duration`)}function to(e){return BigInt(e.days)*D+no(e)}function no(e){return BigInt(e.hours)*Qt+BigInt(e.minutes)*Zt+ro(e)}function ro(e){return BigInt(e.seconds)*Xt+BigInt(e.milliseconds)*Yt+BigInt(e.microseconds)*Jt+BigInt(e.nanoseconds)}function io(e,t=6){let n=Number(e/D),r=Number(e%D),i=qt[t],a=t<=3?Number(e/BigInt(i)):Kt/i*n+Dt(r,i);Number.isFinite(a)||x(`Out-of-bounds date`),t<=3&&Math.abs(a)/(Ut/qt[t])>=Ga&&x(`Out-of-bounds date`);let o=Wa(r,t,M);return o[M[t]]=a,o}function ao(e,t=5){return Wa(e,t,M)}function oo(e){return!!Za(e,Er)}function so(e){let t=9;for(;t>0&&!e[M[t]];t--);return t}function co(e,t){return E(e.epochNanoseconds,t.epochNanoseconds)}function lo(e,t,n,r){let i=e(Pe(r).relativeTo),a=Math.max(so(t),so(n));return dt(M,t,n)?0:Ua(a,i&&Ha(i))?E(to(t),to(n)):(i||x(`Missing relativeTo`),E(Ra(i,t),Ra(i,n)))}function uo(e,t){return fo(e,t)||po(e,t)}function fo(e,t){return St(Un(e),Un(t))}function po(e,t){return St(k(e),k(t))}function mo(e,t){return!co(e,t)}function ho(e,t){return!co(e,t)&&e.timeZone.m===t.timeZone.m&&e.calendar===t.calendar}function go(e,t){return!uo(e,t)&&e.calendar===t.calendar}function _o(e,t){return!fo(e,t)&&e.calendar===t.calendar}function vo(e,t){return!fo(e,t)&&e.calendar===t.calendar}function yo(e,t){return!fo(e,t)&&e.calendar===t.calendar}function bo(e,t){return!po(e,t)}function xo(e){return e===0?Mt:e?e.k:void 0}function R(e,t,n=t){return xo(e)?n:t}function So(e,t){let n=t||void 0,r=xo(t),{era:i,eraYear:a,year:o}=e;if(o!==void 0&&(o=y(o,`year`)),a!==void 0&&(a=y(a,`eraYear`)),i!==void 0||a!==void 0){i!==void 0&&a!==void 0||S(`Mismatching era/eraYear`),r||x(`Forbidden era/eraYear`);let e=Nt(i),t=r[e];t===void 0&&x((e=>`Invalid era: ${e}`)(i));let s=n?._?n._(a,e,t):To(a,t);o!==void 0&&o!==s&&x(`Mismatching year/eraYear`),o=s}else o===void 0&&S(qe(r));return o}function Co(e,t,n,r,i){let{month:a,monthCode:o}=e;if(o!==void 0){let e=((e,t,n,r,i=It(t))=>{let a=e?e.p(n):void 0,[o,s]=i,c=Rt(o,s,a);if(s){let t=e?e.l:void 0;t===void 0&&x(Je),t>0?(c>t&&x(Je),a!==c&&(r===1&&x(Je),c=Rt(o,0,a))):(c!==-t&&x(Je),a===void 0&&r===1&&x(Je))}return c})(t,o,n,i,r);a!==void 0&&a!==e&&x(`Mismatching month/monthCode`),a=e,i=1}else a===void 0&&S(`Missing month/monthCode`);return C(`month`,a,1,pr(t,n),i)}function wo(e,t,n,r,i){return nt(e,`day`,1,mr(t,n,r),i)}function To(e,t){return(t+e)*(Math.sign(t)||1)||0}function Eo(e,t){return jn(ut(O,{...On,...e}),t)}var Do=gt(`([+-])(\\d{2})(?::?(\\d{2})(?::?(\\d{2})(?:[.,](\\d{1,9}))?)?)?`);function Oo(e){let t=ko(e);return t===void 0&&x(Qe(e)),t}function ko(e,t){let n=Do.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&&x($e(n)),r=(yt(e[2])*Gt+yt(e[3])*Wt+yt(e[4])*Ut+_t(e[5]||``))*vt(e[1]),Math.abs(r)>=Kt&&x(`Out-of-bounds offset`),r;var r})(n,t)}var z={era:Nr,month:Ie,monthCode(e,t){return P(Pr(e),t)},day:Ie},Ao=ct(O,y),jo=ct(M,Ir),Mo=Object.assign({},z,Ao),No={offset(e){return Oo(P(Pr(e)))},...Mo};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)&&S(He(i))}return i&&!o&&S(Ue(t)),a}function V(e){return e===void 0?0:ei(Be(e))}function Po(e,t=0){e=Pe(e);let n=ti(e),r=ni(e,t);return[ei(e),r,n]}function Fo(e){return ti(Pe(e))}function Io(e,t,n){let r=xo(t);e.year!==void 0||e.era!==void 0&&e.eraYear!==void 0||S(qe(r)),e.monthCode===void 0&&e.month===void 0&&S(`Missing month/monthCode`),n||e.day!==void 0||S(He(`day`));let i=Wo(e);return[So(e,t),i]}function Lo(e,t){let n=t===void 0,r=xo(t);e.day===void 0&&S(He(`day`)),n||e.month===void 0||e.year!==void 0||e.era!==void 0&&e.eraYear!==void 0||S(qe(r));let i=Wo(e);return[e.eraYear!==void 0||e.year!==void 0?So(e,t):void 0,i]}function Ro(e,t=On,n){let r=F(e,t);return bi(r),Pi(r,n)}function zo(e,t,n,r,i){let a=Co(e,t,n,r,i);return I(yi(fr(t,n,a,wo(e,t,n,a,i))),t)}function Bo(e,t,n,r,i){return Ho(t,n,Co(e,t,n,r,i))}function Vo(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||yi(fr(t,o,1,1));let n=Co(e,t,o,r,i);s=wo(e,t,o,n,i),[c,l]=ur(t,o,n)}else{e.monthCode===void 0&&S(`Missing month/monthCode`),[c,l]=r;let n=t?t.re:1972;if(n!==void 0)s=wo(e,t,n,Co(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 Uo(t,c,l,s,e.day,i)}function Ho(e,t,n){return I(vi(fr(e,t,n,1)),e)}function Uo(e,t,n,r,i,a){let o=n;o&&((e&&e.V?.[t])??1/0)<i&&(a===1&&x(Je),o=0,r=tt(i,1,(e&&e.U)??1/0));let s=e?e.u(t,!!o,r):Jn(t,!!o);for(;!s&&a===0&&r>1;)r--,s=e?e.u(t,!!o,r):Jn(t,!!o);s||x(`Cannot guess year`);let{year:c,month:l}=s;return I(yi(fr(e,c,l,r)),e)}function Wo(e){if(e.monthCode!==void 0)return It(e.monthCode)}var H=Intl.DateTimeFormat;function Go(e,t){t<-864e13&&x(`Out-of-bounds date`);let n=e.formatToParts(t),r={};for(let e of n)r[e.type]=e.value;return r}var Ko={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},qo=-388152e4;function Jo(e,t=4){let n=Jr(e);return[oi(e,4),...Zo(ui(Lr,Zr(e),0,t),n)]}function Yo(e){return ri(Pe(e))}function Xo(e,t){return Jo(Pe(e),t)}function Zo(e,t){return e==null?[t===void 0?1:10**(9-t),t]:[qt[e],e<4?9-3*e:-1]}function Qo(e,t,n){let[r,i,a,o]=(e=>{let t=Jr(e=Pe(e)),n=oi(e,4),r=Zr(e);return[e.timeZone,n,...Zo(ui(Lr,r,0,4),t)]})(n),s=r!==void 0;return((e,t,n,r,i,a)=>{n=$i(n,BigInt(i),r);let o=t.B(n);return us(Gn(n+BigInt(o)),a)+(e?hs(Zi(o)):`Z`)})(s,U(s?e(r):`UTC`),t.epochNanoseconds,i,a,o)}function $o(e,t){let n=(e=>{e=Pe(e);let t=ri(e),n=Jr(e),r=ai(e),i=oi(e,4),a=Zr(e);return[t,ii(e),r,i,...Zo(ui(Lr,a,0,4),n)]})(t);return((e,t,n,r,i,a,o,s,c,l)=>{r=$i(r,BigInt(c),s);let u=n.B(r);return us(Gn(r+BigInt(u)),l)+hs(Zi(u),o)+gs(t,a)+_s(e,i)})(e.calendar,e.timeZone.id,e.timeZone,e.epochNanoseconds,...n)}function es(e,t){let n=(e=>(e=Pe(e),[ri(e),...Jo(e)]))(t);return((e,t,n,r,i,a)=>us(Wi(t,i,r),a)+_s(e,n))(e.calendar,e,...n)}function ts(e,t){return n=e.calendar,r=e,i=Yo(t),ds(r)+_s(n,i);var n,r,i}function ns(e,t){return is(e.calendar,fs,e,Yo(t))}function rs(e,t){return is(e.calendar,ps,e,Yo(t))}function is(e,t,n,r){return r===1?e===void 0?t(n):ds(n):r>1||r===0&&e!==void 0?ds(n)+vs(Pt(e),r===2):t(n)}function as(e,t){return((e,t,n,r)=>ms(Gi(e,n,t)[0],r))(e,...Xo(t))}function os(e,t){let[n,r,i]=Xo(t,3);return r>1&&Qa(e={...e,...Vi(e,r,n)}),ss(e,i)}function ss(e,t){let{sign:n}=e,r=n===-1?Xa(e):e,{hours:i,minutes:a}=r,o=ro(r),s=Number(o/Xt),c=Number(o%Xt);eo(s);let l=bs(c,t),u=t>=0||!n||l;return(n<0?`-`:``)+`P`+cs({Y:ls(r.years),M:ls(r.months),W:ls(r.weeks),D:ls(r.days)})+(i||a||s||u?`T`+cs({H:ls(i),M:ls(a),S:ls(s,u)+l}):``)}function cs(e){let t=[];for(let n in e){let r=e[n];r&&t.push(r,n)}return t.join(``)}function ls(e,t){if(!e&&!t)return``;let n=Object.create(null);return n.useGrouping=0,e.toLocaleString(`fullwide`,n)}function us(e,t){return ds(e)+`T`+ms(e,t)}function ds(e){return fs(e)+`-`+xt(e.day)}function fs(e){let{year:t}=e;return(t<0||t>9999?xs(t)+bt(6,Math.abs(t)):bt(4,t))+`-`+xt(e.month)}function ps(e){return xt(e.month)+`-`+xt(e.day)}function ms(e,t){let n=[xt(e.hour),xt(e.minute)];return t!==-1&&n.push(xt(e.second)+((e,t,n,r)=>bs(e*Ht+t*Vt+n,r))(e.millisecond,e.microsecond,e.nanosecond,t)),n.join(`:`)}function hs(e,t=0){if(t===1)return``;let[n,r]=Tt(Math.abs(e),Gt),[i,a]=Tt(r,Wt),[o,s]=Tt(a,Ut);return xs(e)+xt(n)+`:`+xt(i)+(o||s?`:`+xt(o)+bs(s):``)}function gs(e,t){return t===1?``:`[`+(t===2?`!`:``)+e+`]`}function _s(e,t){return t>1||t===0&&e!==void 0?vs(Pt(e),t===2):``}function vs(e,t){return`[`+(t?`!`:``)+`u-ca=`+e+`]`}var ys=/0+$/;function bs(e,t){let n=bt(9,e);return n=t===void 0?n.replace(ys,``):n.slice(0,t),n?`.`+n:``}function xs(e){return e<0?`-`:`+`}var Ss=/^(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$/,Cs=/[^\w\/:+-]+/;function ws(e){return Ts(P(e))}function Ts(e){return Es(e).id}function Es(e){let t=e.toUpperCase(),n=(e=>{let t=ko(e,1);if(t!==void 0)return{id:hs(t),Z:t,m:t}})(t);return n?{kind:`fixed`,...n}:Ds(t===`UTC`?`UTC`:(e=>(Cs.test(e)&&x(Ze(e)),Ss.test(e)&&x(`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?ht(e).replace(/island|noronha|murdo|rivadavia|urville/,ht):e)).join(`/`)))(e))}var Ds=rt(e=>{if(e===`UTC`)return{kind:`utc`,id:e,m:e};let t=Os(e.toUpperCase());return{kind:`named`,id:e,format:t,m:t.resolvedOptions().timeZone}}),Os=rt(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=Es(e);return ks(t.id,t)}var ks=rt((e,t)=>t.kind===`named`?new js(e,t.m,t.format):new As(e,t.m,t.kind===`fixed`?t.Z:0)),As=class{constructor(e,t,n){this.id=e,this.m=t,this.Z=n}B(){return this.Z}R(e){return[Ci(e,this.Z)]}C(){}},js=class{constructor(e,t,n){this.id=e,this.m=t,this.oe=((e,t)=>{let n=rt(e),r=rt(Ns),i=86400*t;function a(e){let[t,a]=Ps(e,i),s=Fs(t),c=Fs(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<=qo)return;let n=Ms()+94867200;if(t>n)return e(n,-1)}let[s,c]=Ps(a>0?Math.max(t,qo):t,i),l=i*a,u=a>0?Math.max(t,Ms())+94867200:qo,d=()=>a<0?c>u:s<u;for(;d();){let e=Fs(s),i=Fs(c),u=n(e),d=n(i);if(u!==d){let n=r(e,i);o(n,u,d);let s=n[0];if((St(s,t)||1)===a)return s}s+=l,c+=l}}}})((e=>t=>{let n=Go(e,1e3*t);return 86400*Wn((e=>{let t=e.relatedYear;if(t!==void 0)return parseInt(t);let n=parseInt(e.year);return e.era!==void 0&&Nt(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=>Ko[e.split(`/`).pop()]||60)(e))}B(e){return this.oe.ze((e=>Rn(e)[0])(e))*Ut}R(e){let t=86400*Un(e)+Nn(e),n=Pn(e);return this.oe.Ae(t).map(e=>Si(BigInt(e)*Xt+BigInt(n)))}C(e,t){let[n,r]=Rn(e),i=this.oe.C(n+(t>0||r?1:0),t);if(i!==void 0)return BigInt(i)*Xt}};function Ms(){return Math.floor(Date.now()/1e3)}function Ns(e,t){return[e,t]}function Ps(e,t){let n=Math.floor(e/t)*t;return[n,n+t]}function Fs(e){return tt(e,-1e10,864e10)}function Is(e,t,n){let r=B(n,R(t,wn,Tn),No,[],0),i=r.timeZone!==void 0,[a,o]=Io(r,t),s=zo(r,t,a,o,0);if(i){let n=Eo(r),i=U(e(r.timeZone));return{epochNanoseconds:ia(i,F(s,n),r.offset),timeZone:i,calendar:t}}return s}function Ls(e,t,n,r){let i=B(n,R(t,wn,Tn),No,on,0),a=e(i.timeZone),[o,s]=Io(i,t),[c,l,u]=Po(r),d=zo(i,t,o,s,c),f=Eo(i,c),p=U(a);return Ni(ia(p,F(d,f),i.offset,l,u),p,t)}function Rs(e,t,n){let r=B(t,R(e,bn,xn),Mo,[],0),[i,a]=Io(r,e),o=V(n);return Ro(zo(r,e,i,a,o),Eo(r,o),e)}function zs(e,t,n,r=[]){let i=B(t,R(e,vn,yn),z,r),[a,o]=Io(i,e);return zo(i,e,a,o,V(n))}function Bs(e,t,n,r){let i=B(t,R(e,pn,mn),z,r),[a,o]=Io(i,e,1);return Bo(i,e,a,o,V(n))}function Vs(e,t,n,r){let i=B(n,R(e,vn,yn),z,nn,0);t&&i.month!==void 0&&i.monthCode===void 0&&i.year===void 0&&(i.year=1972);let[a,o]=Lo(i,e);return Vo(i,e,a,o,V(r))}function Hs(e,t){return Eo(B(e,dn,Ao,[],1),V(t))}function Us(e){let t=B(e,wr,jo);return Ii(Qa({...N,...t}))}function Ws(e){x(Qe(e))}function Gs(e){let t=vc(e=P(Pr(e))),n;return t||Ws(e),t.F?n=0:t.offset?n=Oo(t.offset):Ws(e),t.timeZoneId&&ko(t.timeZoneId,1),or(t),Mi(Ci(t,n))}function Ks(e,t){let n=vc(P(e));return n||Ws(e),n.timeZoneId?sc(n,t,void 0):(n.F&&Ws(e),lc(n,t))}function qs(e,t,n){let r=vc(P(e));return r&&r.timeZoneId||Ws(e),sc(r,t,n)}function Js(e,t){let n=vc(P(e));return n&&!n.F||Ws(e),cc(n,t)}function Ys(e,t){let n=ic(rc(P(e)),void 0,t);return I(n,n.calendar)}function Xs(e,t){let n=yc(P(e));if(n)return Zs(n),I(vi(sr(n)),t(n.calendarId));let r=ic(rc(e),ac,t),{calendar:i}=r;return I(pa(i,r),i)}function Zs(e){e.calendarId!==`iso8601`&&x($e(e.calendarId))}function Qs(e,t){let n=bc(P(e));if(n)return Zs(n),I(sr(n),t(n.calendarId));let r=ic(rc(e),oc,t),{calendar:i}=r,{year:a,month:o,day:s}=j(i,r),[c,l]=ur(i,a,o),{year:u,month:d}=((e,t,n,r)=>{let i=e?e.u(t,n,r):Jn(t,n);return i||x(`Cannot guess year`),i})(i,c,l,s);return I(yi(fr(i,u,d,s)),i)}function $s(e){let t=(e=>{let t=xc(e);return t?(wc(t[13]),Sc(t,1)):void 0})(e=P(e));if(!t){let n=vc(e);n&&n.te||Ws(e),n.F&&x($e(`Z`)),Zs(n),t=n}let n;return(n=yc(e))&&cr(n)&&Ws(e),(n=bc(e))&&cr(n)&&Ws(e),Fi(kn(t))}function ec(e){let t=_c.exec(P(e));return t||Ws(e),Ii(Qa((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),...Wa(r,2,M)};return t||x(Ue(M)),vt(e[1])<0&&(i=Xa(i)),i;function a(e,i,a){let o=0,s=0;return a&&([o,r]=Tt(r,qt[a])),e!==void 0&&(n&&x($e(e)),s=(e=>{let t=parseInt(e);return Number.isFinite(t)||x($e(e)),t})(e),t=1,i&&(r=_t(i)*(qt[a]/Ut),n=1)),o+s}})(t)))}function tc(e){let t=vc(e)||yc(e)||bc(e);if(t)return t.calendarId;let n=xc(e);return n?wc(n[13]).calendarId:e}function nc(e){let t=vc(e);return t&&(t.timeZoneId||t.F&&`UTC`||t.offset)||e}function rc(e){let t=vc(e);return t&&!t.F||Ws(e),t}function ic(e,t,n){return t&&e.calendarId===`iso8601`?(sr(e),e.te&&kn(e),lc(t(e),n)):e.te?cc(e,n):lc(e,n)}function ac(e){let t=12*e.year+e.month===_i?20:1;return{...e,day:t}}function oc(e){return{...e,year:1972}}function sc(e,t,n){let r=U(Ts(e.timeZoneId)),i;if(or(e),e.te){let t=e.offset?Oo(e.offset):void 0,[,o,s]=Po(n);i=ia(r,e,t,o,s,!(r.Z||e.offset===void 0||(a=e.offset,a.replace(/\D/g,``).length>4)),e.F)}else Po(n),i=oa(r,e);var a;return Si(i),Ni(i,r,t(e.calendarId))}function cc(e,t){return or(e),bi(e),{...F(e,e),calendar:t(e.calendarId)}}function lc(e,t){return sr(e),yi(e),{calendar:t(e.calendarId),year:e.year,month:e.month,day:e.day}}function uc(e){return`(\\d{2})(?:(:?)(\\d{2})(?:\\${e}(\\d{2})(?:[.,](\\d{1,9}))?)?)?`}var dc=`(?:(?:([+-])(\\d{6}))|(\\d{4}))(-?)(\\d{2})\\4(\\d{2})(?:[T ]`+uc(8)+`(Z|([+-])`+uc(15)+`)?)?`,fc=gt(`(?:(?:([+-])(\\d{6}))|(\\d{4}))-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),pc=gt(`(?:--)?(\\d{2})-?(\\d{2})((?:\\[(!?)([^\\]]*)\\]){0,9})`),mc=gt(dc+`((?:\\[(!?)([^\\]]*)\\]){0,9})`),hc=gt(`T?`+uc(2)+`(([+-])${uc(9)})?((?:\\[(!?)([^\\]]*)\\]){0,9})`),gc=RegExp(`\\[(!?)([^\\]]*)\\]`,`g`),_c=gt(`([+-])?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 vc(e){let t=mc.exec(e);return t?(e=>{let t=e[12],n=(t||``).toUpperCase()===`Z`;return{year:Cc(e),month:parseInt(e[5]),day:parseInt(e[6]),...Sc(e,7),...wc(e[19]),te:!!e[7],F:n,offset:n?void 0:t}})(t):void 0}function yc(e){let t=fc.exec(e);if(t)return(e=>({year:Cc(e),month:parseInt(e[4]),day:1,...wc(e[5])}))(t)}function bc(e){let t=pc.exec(e);return t?(e=>({year:1972,month:parseInt(e[1]),day:parseInt(e[2]),...wc(e[3])}))(t):void 0}function xc(e){let t=hc.exec(e);if(t)return t[6]&&Oo(t[6]),t}function Sc(e,t){let n=yt(e[t+3]);return{...Fn(_t(e[t+4]||``))[0],hour:yt(e[t]),minute:yt(e[t+2]),second:n===60?59:n}}function Cc(e){let t=vt(e[1]),n=parseInt(e[2]||e[3]);return t<0&&!n&&x($e(-0)),t*n}function wc(e){let t,n,r=[];return e.replace(gc,(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))&&x($e(e)):(n&&x($e(e)),n=s),``}),r.length>1&&t&&x($e(e)),{timeZoneId:n,calendarId:r[0]||`iso8601`}}function Tc(e,t,n){let r=Object.assign(Object.create(null),t);return Ec(r,n,ln),xo(e)&&(Ec(r,n,cn),e&&e.je&&Ec(r,n,un,sn)),r}function Ec(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 Dc(e,t,n){let r=R(e,Sn,Cn),i=L(t),{year:a,month:o,day:s}=j(e,i),c={year:a,monthCode:Ic(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,No),u=Tc(e,c,l);return[{...c,...l},u]}function Oc(e,t,n){let r=R(e,bn,xn),{year:i,month:a,day:o}=j(e,t),s={year:i,monthCode:Ic(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,Mo),l=Tc(e,s,c);return[{...s,...c},l]}function kc(e,t,n){let r=R(e,vn,yn),{year:i,month:a,day:o}=j(e,t);return Tc(e,{year:i,monthCode:Ic(e,i,a),day:o},B(n,r,z))}function Ac(e,t,n){let r=R(e,pn,mn),{year:i,month:a}=j(e,t);return Tc(e,{year:i,monthCode:Ic(e,i,a)},B(n,r,z))}function jc(e,t,n){let r=R(e,vn,yn),{year:i,month:a,day:o}=j(e,t);return Tc(e,{monthCode:Ic(e,i,a),day:o},B(n,r,z))}function Mc(e,t,n,r,i,a,o,s){let{calendar:c,timeZone:l}=e;return Ni(ia(l,F(zo(n,c,r,i,a),jn(t,a)),t.offset,o,s),l,c)}function Nc(e,t,n,r,i,a){return Ro(zo(t,n,r,i,a),jn(e,a),n)}function Pc(e,t){return{...ut(dn,e),...B(t,dn,Ao)}}function Fc(e,t){return Ii((n=e,r=t,Qa({...n,...B(r,wr,jo)})));var n,r}function Ic(e,t,n){let[r,i]=ur(e,t,n);return Lt(r,i)}function Lc(e,t,n){let[r,i]=((e,t)=>{let n=t((e=ci(e,`unit`)).relativeTo),r=$r(e);return r=Ar(`unit`,r),[r,n]})(n,e),a=so(t),o=Math.max(r,a),s=i&&Ha(i);if(!i&&Ua(o,s))return Rc(t,r);if(i||x(`Missing relativeTo`),!t.sign&&(!s||r<6))return 0;let[c,l,u]=La(i,t,r);return Ua(r,s)?Rc(c,r):((e,t,n,r)=>{let i=M[n],a=kr(n,e);return Ei(e[i],Za(e)||1,t,e=>(a[i]=e,za(r,a)))})(c,l,r,u)}function Rc(e,t){return $t(to(e),qt[t])}function zc(e,t,n){return Ni(e.epochNanoseconds,t,n)}function Bc(e){return Mi(e.epochNanoseconds)}function Vc(e){return Pi(L(e),e.calendar)}function Hc(e){return I(L(e),e.calendar)}function Uc(e){return Fi(L(e))}function Wc(e,t,n){return Ni(Si(aa(t,e,n)),t,e.calendar)}function Gc(e,t,n){let r;return r=n?aa(t,F(e,n)):oa(t,F(e,On)),Ni(r,t,e.calendar)}function Kc(e,t,n){return Xc(e,ut(R(e,hn,gn),t),B(Be(n),nn,z,[]))}function qc(e,t,n){let r=R(e,tn,fn);return Xc(e,ut(_n,t),B(Be(n),r,z,[]))}function Jc(e,t){let n=B(t,_n,z),[r,i]=Lo(n,e);return Vo(n,e,r,i,0)}function Yc(e,t){let n=B(t,R(e,hn,gn),z),[r,i]=Io(n,e,1);return Bo(n,e,r,i,0)}function Xc(e,t,n){let r=R(e,En,Dn),i=Tc(e,t,n);i=B(i,r,z,[]);let[a,o]=Io(i,e);return zo(i,e,a,o,0)}function Zc(e){return Mi(Si(BigInt(Ir(e))*Yt))}function Qc(e){return Mi(Si(Fr(e)))}function $c(e){return e.timeZone=`UTC`,[`full`,`long`].includes(e.timeStyle)&&(e.timeStyle=`medium`),e}function el(e,t){return e.timeZone!==void 0&&S(`Cannot specify TimeZone`),e.timeZone=t,e}function tl(e,t,n){let r=e.resolvedOptions().calendar;!n&&t.calendar===void 0||Pt(t.calendar)===r||x(`Mismatching Calendars`)}function nl(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))&&S(`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 rl={year:`numeric`,month:`numeric`,day:`numeric`},il={hour:`numeric`,minute:`numeric`,second:`numeric`},al=Object.assign({},rl,il),ol=[`weekday`,`year`,`month`,`day`,`dateStyle`],sl=[`dayPeriod`,`hour`,`minute`,`second`,`fractionalSecondDigits`,`timeStyle`],cl=ol.concat(sl),ll=[`weekday`,`day`].concat(sl),ul=[`weekday`,`year`].concat(sl),dl=nl(cl,[],[],al),fl=nl(cl,[],[],{...al,timeZoneName:`short`}),pl=nl(cl,[],[`timeZoneName`],al),ml=nl(ol,sl,[`timeZoneName`],rl),hl=nl(sl,ol,[`timeZoneName`,`era`],il),gl=nl([`year`,`month`,`dateStyle`],ll,[`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`}}),_l=nl([`month`,`day`,`dateStyle`],ul,[`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 vl(e,t){let{timeZone:n}=e,r=L(e),{offsetNanoseconds:i}=r,a=t||On,o;return o=t?ia(n,F(r,a),i,2):oa(n,F(r,a)),Ni(o,n,e.calendar)}function yl(e){let t=si(ci(e,`direction`),0);return t||x(Ve(`direction`,t)),t}function bl(e){let t=xl(),n=e.B(t);return Gn(t+BigInt(n))}function xl(){return BigInt(Date.now())*Yt}function Sl(){return new H().resolvedOptions().timeZone}function Cl(e,t=pt){let n=new WeakMap;function r(e){let t=n.get(e);return t||S(`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=ut(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,at({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,ot(`Intl.DateTimeFormat`)),o}var wl=globalThis.Temporal,Tl=`PlainYearMonth`,El=`PlainMonthDay`,Dl=`PlainDate`,Ol=`PlainDateTime`,kl=`PlainTime`,Al=`ZonedDateTime`,jl=`Instant`,Ml=`Duration`;function Nl(e,t,n,...r){return Object.defineProperties(t,it(e)),Object.defineProperties(t.prototype,ot(`Temporal.`+e)),Object.defineProperties(t.prototype,st(e=>({get(){return e(n(this))},configurable:1}),Object.assign({},...r))),t}var Pl=mt.name===`noop`?e=>{Object.defineProperty(e,"_str_",{value:e.toJSON()})}:mt;function Fl(){S(Ke)}function Il(){S(Ge)}var Ll={era(e){return dr(e.calendar,e).era},eraYear(e){return dr(e.calendar,e).eraYear},year(e){return j(e.calendar,e).year},month(e){return j(e.calendar,e).month},monthCode(e){return hr(e.calendar,e)}},Rl={era(e){return dr(e.calendar,e).era},eraYear(e){return dr(e.calendar,e).eraYear},year(e){return j(e.calendar,e).year},month(e){return j(e.calendar,e).month},monthCode(e){return hr(e.calendar,e)},day(e){return j(e.calendar,e).day}},zl={monthCode(e){return hr(e.calendar,e)},day(e){return j(e.calendar,e).day}},Bl={daysInMonth(e){return vr(e.calendar,e)},daysInYear(e){return yr(e.calendar,e)},monthsInYear(e){return _r(e.calendar,e)},inLeapYear(e){return gr(e.calendar,e)}},Vl={dayOfWeek(e){return tr(e)},dayOfYear(e){return br(e.calendar,e)},weekOfYear(e){return xr(e.calendar,e)},yearOfWeek(e){return Sr(e.calendar,e)},daysInWeek(){return 7},daysInMonth(e){return vr(e.calendar,e)},daysInYear(e){return yr(e.calendar,e)},monthsInYear(e){return _r(e.calendar,e)},inLeapYear(e){return gr(e.calendar,e)}};function Hl(e,t,n,r){let[i,a,o,s]=fi(e,r,3,5);return Jl(e,ka(t.epochNanoseconds,n.epochNanoseconds,i,a,o,s))}function Ul(e,t,n,r){let i=ba(t.calendar,n.calendar),[a,o,s,c]=fi(e,r,5);return Jl(e,Ca(i,t,n,a,o,s,c))}function Wl(e,t,n,r){let i=ba(t.calendar,n.calendar),[a,o,s,c]=fi(e,r,6);return Jl(e,wa(i,t,n,a,o,s,c))}function Gl(e,t,n,r){let i=ba(t.calendar,n.calendar),[a,o,s,c]=fi(e,r,6,9,6);return Jl(e,Ea(i,t,n,a,o,s,c))}function Kl(e,t,n,r){let i=ba(t.calendar,n.calendar),[a,o,s,c]=fi(e,r,9,9,8);return Jl(e,Ta(i,t,n,a,o,s,c))}function ql(e,t,n,r){let[i,a,o,s]=fi(e,r,5,5);return Jl(e,Da(t,n,i,a,o,s))}function Jl(e,t){return Ii(e?Xa(t):t)}function Yl(e,t,n){let{calendar:r}=e,i=kc(r,e,t),[a,o]=Io(i,r);return zo(i,r,a,o,V(n))}function Xl(e,t,n){let{calendar:r}=e,[i,a]=Oc(r,e,t),[o,s]=Io(a,r);return Nc(i,a,r,o,s,V(n))}function Zl(e,t,n){let{calendar:r}=e,i=Ac(r,e,t),[a,o]=Io(i,r,1);return Bo(i,r,a,o,V(n))}function Ql(e,t,n){let{calendar:r}=e,i=jc(r,e,t),[a,o]=Lo(i,r);return Vo(i,r,a,o,V(n))}function $l(e,t,n){return Eo(Pc(e,t),V(n))}function eu(e,t,n){let{calendar:r}=e,[i,a]=Dc(r,e,t),[o,s]=Io(a,r),[c,l,u]=Po(n,2);return Mc(e,i,a,o,s,c,l,u)}function tu(e){return Cl(t=>{let n=rt(e=>{let n;switch(e){case jl:n=dl(t.G,1);break;case Ol:n=$c(pl(t.G,1));break;case Dl:n=$c(ml(t.G,1));break;case kl:n=$c(hl(t.G,1));break;case Tl:n=$c(gl(t.G,1));break;case El:n=$c(_l(t.G,1));break;default:S(et(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 nu(s,a,o),[s,ru(a,o)]},v(r,i){r!==void 0&&i!==void 0||S(`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||S(`Mismatching types for formatting`);let[l,u]=a,[d,f]=s;l!==d&&S(`Mismatching types for formatting`);let p=n(l);return nu(p,l,u),nu(p,l,f),[p,ru(l,u),ru(l,f)]}}})}function nu(e,t,n){switch(t){case jl:case kl:return;case Ol:case Dl:tl(e,n);return;case Tl:case El:tl(e,n,1);return;default:S(et(t))}}function ru(e,t){switch(e){case jl:return zn(t.epochNanoseconds);case Ol:return Bn(t);case Dl:case Tl:case El:return Hn(t);case kl:return Mn(t);default:S(et(e))}}function iu(e){let t=P(e).toLowerCase();return t===`iso8601`?void 0:t===`gregory`?0:void x(Xe(e,`temporal-polyfill/full`))}function au(e=jt){return iu(e)}var ou=new WeakMap,su=Nl(Al,class{constructor(e,t,n=void 0){let r=Si(Fr(e)),i=U(ws(t)),a=au(n);du(this,Ni(r,i,a))}static from(e,t=void 0){return W(uu(e,t))}static compare(e,t){return co(uu(e),uu(t))}get calendarId(){return Pt(G(this).calendar)}get timeZoneId(){return G(this).timeZone.id}get epochMilliseconds(){return zn(G(this).epochNanoseconds)}get epochNanoseconds(){return G(this).epochNanoseconds}get offset(){return hs(L(G(this)).offsetNanoseconds)}get offsetNanoseconds(){return L(G(this)).offsetNanoseconds}get hoursInDay(){return Ri(G(this))}with(e,t=void 0){return W(eu(G(this),Iu(e),t))}withCalendar(e){return W({...G(this),calendar:ad(e)})}withTimeZone(e){return W({...G(this),timeZone:U(fu(e))})}withPlainTime(e=void 0){return W(vl(G(this),Uu(e)))}add(e,t=void 0){return W(ca(G(this),X(e),V(t)))}subtract(e,t=void 0){return W(ca(G(this),Xa(X(e)),V(t)))}until(e,t=void 0){return J(Ul(0,G(this),uu(e),t))}since(e,t=void 0){return J(Ul(1,G(this),uu(e),t))}round(e){let t=G(this),[n,r,i]=pi(e);return W(Li(t,n,r,i))}startOfDay(){return W(zi(G(this)))}equals(e){return ho(G(this),uu(e))}toInstant(){return hu(Bc(G(this)))}toPlainDateTime(){return qu(Vc(G(this)))}toPlainDate(){return $u(Hc(G(this)))}toPlainTime(){return zu(Uc(G(this)))}toLocaleString(e=void 0,t={}){let n=G(this),r=new H(e,el(fl(t),Sa(n)));return tl(r,n),r.format(zn(n.epochNanoseconds))}toString(e=void 0){return $o(G(this),e)}toJSON(){return $o(G(this))}getTimeZoneTransition(e){let t=G(this),n=t.timeZone.C(t.epochNanoseconds,yl(e));return n===void 0?null:W({...t,epochNanoseconds:n})}valueOf(){return Il()}},cu,Rl,Vl,en);function W(e){return du(Object.create(su.prototype),e)}function G(e){return lu(e)||Fl()}function cu(e){let t=G(e);return{...L(t),calendar:t.calendar}}function lu(e){return ou.get(e)}function uu(e,t){if(b(e)){let n=lu(e);return n?(Po(t),n):Ls(fu,rd(e),e,t)}return qs(e,iu,t)}function du(e,t){return ou.set(e,t),Pl(e),e}function fu(e){if(b(e)){let t=lu(e);return t||S(Ze(e)),t.timeZone.id}return(e=>Ts(nc(P(e))))(e)}var pu=new WeakMap,mu=Nl(jl,class{constructor(e){let t=Si(Fr(e));bu(this,Mi(t))}static from(e){return hu(vu(e))}static fromEpochMilliseconds(e){return hu(Zc(e))}static fromEpochNanoseconds(e){return hu(Qc(e))}static compare(e,t){return co(vu(e),vu(t))}get epochMilliseconds(){return zn(gu(this).epochNanoseconds)}get epochNanoseconds(){return gu(this).epochNanoseconds}add(e){return hu(Mi(da(gu(this).epochNanoseconds,X(e))))}subtract(e){return hu(Mi(da(gu(this).epochNanoseconds,Xa(X(e)))))}until(e,t=void 0){return J(Hl(0,gu(this),vu(e),t))}since(e,t=void 0){return J(Hl(1,gu(this),vu(e),t))}round(e){let t=gu(this),[n,r,i]=pi(e,5,1);return hu(Mi($i(t.epochNanoseconds,na(n,r),i)))}equals(e){return mo(gu(this),vu(e))}toZonedDateTimeISO(e){return W(zc(gu(this),U(fu(e))))}toLocaleString(e=void 0,t={}){let n=gu(this);return new H(e,dl(t)).format(zn(n.epochNanoseconds))}toString(e=void 0){return Qo(fu,gu(this),e)}toJSON(){return Qo(fu,gu(this))}valueOf(){return Il()}});function hu(e){return bu(Object.create(mu.prototype),e)}function gu(e){return _u(e)||Fl()}function _u(e){return pu.get(e)}function vu(e){if(b(e)){let t=_u(e);if(t)return t;let n=lu(e);if(n)return Mi(n.epochNanoseconds)}return Gs(e)}var{toTemporalInstant:yu}={toTemporalInstant(){let e=Date.prototype.valueOf.call(this);return hu(Mi(BigInt(Mr(e))*Yt))}};function bu(e,t){return pu.set(e,t),Pl(e),e}var xu=new WeakMap,Su=Nl(El,class{constructor(e,t,n=void 0,r){let i=y(e),a=y(t),o=au(n),s=yi(sr({year:y(r??1972),month:i,day:a}));Du(this,I(s,o))}static from(e,t=void 0){return Cu(Eu(e,t))}get calendarId(){return Pt(wu(this).calendar)}with(e,t=void 0){return Cu(Ql(wu(this),Iu(e),t))}equals(e){return yo(wu(this),Eu(e))}toPlainDate(e){return $u(qc(wu(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=wu(this),r=new H(e,$c(_l(t)));return tl(r,n,1),r.format(Hn(n))}toString(e=void 0){return rs(wu(this),e)}toJSON(){return rs(wu(this))}valueOf(){return Il()}},wu,zl);function Cu(e){return Du(Object.create(Su.prototype),e)}function wu(e){return Tu(e)||Fl()}function Tu(e){return xu.get(e)}function Eu(e,t){if(b(e)){let n=Tu(e);if(n)return V(t),n;let r=id(e);return Vs(r===void 0?void 0:r,r===void 0,e,t)}let n=Qs(e,iu);return V(t),n}function Du(e,t){return xu.set(e,t),Pl(e),e}var Ou=new WeakMap,ku=Nl(Tl,class{constructor(e,t,n=void 0,r){let i=y(e),a=y(t),o=au(n),s=vi(sr({year:i,month:a,day:y(r??1)}));Pu(this,I(s,o))}static from(e,t=void 0){return Au(Nu(e,t))}static compare(e,t){return fo(Nu(e),Nu(t))}get calendarId(){return Pt(ju(this).calendar)}with(e,t=void 0){return Au(Zl(ju(this),Iu(e),t))}add(e,t=void 0){let n=ju(this);return Au(I(sa(n.calendar,n,X(e),V(t)),n.calendar))}subtract(e,t=void 0){let n=ju(this);return Au(I(sa(n.calendar,n,Xa(X(e)),V(t)),n.calendar))}until(e,t=void 0){return J(Kl(0,ju(this),Nu(e),t))}since(e,t=void 0){return J(Kl(1,ju(this),Nu(e),t))}equals(e){return vo(ju(this),Nu(e))}toPlainDate(e){return $u(Kc(ju(this).calendar,this,e))}toLocaleString(e=void 0,t={}){let n=ju(this),r=new H(e,$c(gl(t)));return tl(r,n,1),r.format(Hn(n))}toString(e=void 0){return ns(ju(this),e)}toJSON(){return ns(ju(this))}valueOf(){return Il()}},ju,Ll,Bl);function Au(e){return Pu(Object.create(ku.prototype),e)}function ju(e){return Mu(e)||Fl()}function Mu(e){return Ou.get(e)}function Nu(e,t){if(b(e)){let n=Mu(e);return n?(V(t),n):Bs(rd(e),e,t)}let n=Xs(e,iu);return V(t),n}function Pu(e,t){return Ou.set(e,t),Pl(e),e}function Fu(e){if(!b(e))return;let t=_u(e);return t?[jl,t]:(t=lu(e),t?[Al,t]:(t=Ju(e),t?[Ol,t]:(t=ed(e),t?[Dl,t]:(t=Vu(e),t?[kl,t]:(t=Mu(e),t?[Tl,t]:(t=Tu(e),t?[El,t]:(t=cd(e),t?[Ml,t]:void 0)))))))}function Iu(e){return(Fu(e)||e.calendar!==void 0||e.timeZone!==void 0)&&S(`Invalid bag`),e}var Lu=new WeakMap,Ru=Nl(kl,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0){let o=kn(st(y,{hour:e,minute:t,second:n,millisecond:r,microsecond:i,nanosecond:a}));Wu(this,Fi(o))}static from(e,t=void 0){return zu(Hu(e,t))}static compare(e,t){return po(Hu(e),Hu(t))}with(e,t=void 0){return zu($l(Bu(this),Iu(e),t))}add(e){return zu(ua(Bu(this),X(e))[0])}subtract(e){return zu(ua(Bu(this),Xa(X(e)))[0])}until(e,t=void 0){return J(ql(0,Bu(this),Hu(e),t))}since(e,t=void 0){return J(ql(1,Bu(this),Hu(e),t))}round(e){let t=Bu(this),[n,r,i]=pi(e,5);return zu(Gi(t,ta(n,r),i)[0])}equals(e){return bo(Bu(this),Hu(e))}toLocaleString(e=void 0,t={}){let n=Bu(this);return new H(e,$c(hl(t))).format(Mn(n))}toString(e=void 0){return as(Bu(this),e)}toJSON(){return as(Bu(this))}valueOf(){return Il()}},Bu,en);function zu(e){return Wu(Object.create(Ru.prototype),e)}function Bu(e){return Vu(e)||Fl()}function Vu(e){return Lu.get(e)}function Hu(e,t){if(b(e)){let n=Vu(e);if(n)return V(t),n;let r=Ju(e);if(r)return V(t),Fi(r);let i=lu(e);return i?(V(t),Uc(i)):Hs(e,t)}let n=$s(e);return V(t),n}function Uu(e){return e===void 0?void 0:Hu(e)}function Wu(e,t){return Lu.set(e,t),Pl(e),e}var Gu=new WeakMap,Ku=Nl(Ol,class{constructor(e,t,n,r=0,i=0,a=0,o=0,s=0,c=0,l=void 0){let u=bi(or(st(y,{year:e,month:t,day:n,hour:r,minute:i,second:a,millisecond:o,microsecond:s,nanosecond:c}))),d=au(l);Xu(this,Pi(u,d))}static from(e,t=void 0){return qu(Yu(e,t))}static compare(e,t){return uo(Yu(e),Yu(t))}get calendarId(){return Pt(K(this).calendar)}with(e,t=void 0){return qu(Xl(K(this),Iu(e),t))}withCalendar(e){return qu(Pi(K(this),ad(e)))}withPlainTime(e=void 0){let t=K(this);return qu(Ro(t,Uu(e),t.calendar))}add(e,t=void 0){let n=K(this);return qu(Pi(la(n.calendar,n,X(e),V(t)),n.calendar))}subtract(e,t=void 0){let n=K(this);return qu(Pi(la(n.calendar,n,Xa(X(e)),V(t)),n.calendar))}until(e,t=void 0){return J(Wl(0,K(this),Yu(e),t))}since(e,t=void 0){return J(Wl(1,K(this),Yu(e),t))}round(e){let t=K(this),[n,r,i]=pi(e);return qu(Pi(Wi(t,ta(n,r),i),t.calendar))}equals(e){return go(K(this),Yu(e))}toZonedDateTime(e,t=void 0){return W(Wc(K(this),U(fu(e)),Fo(t)))}toPlainDate(){let e=K(this);return $u(I(e,e.calendar))}toPlainTime(){return zu(Fi(K(this)))}toLocaleString(e=void 0,t={}){let n=K(this),r=new H(e,$c(pl(t)));return tl(r,n),r.format(Bn(n))}toString(e=void 0){return es(K(this),e)}toJSON(){return es(K(this))}valueOf(){return Il()}},K,Rl,Vl,en);function qu(e){return Xu(Object.create(Ku.prototype),e)}function K(e){return Ju(e)||Fl()}function Ju(e){return Gu.get(e)}function Yu(e,t){if(b(e)){let n=Ju(e);if(n)return V(t),n;let r=ed(e);if(r)return V(t),Pi(F(r,On),r.calendar);let i=lu(e);return i?(V(t),Vc(i)):Rs(rd(e),e,t)}let n=Js(e,iu);return V(t),n}function Xu(e,t){return Gu.set(e,t),Pl(e),e}var Zu=new WeakMap,Qu=Nl(Dl,class{constructor(e,t,n,r=void 0){let i=yi(sr(st(y,{year:e,month:t,day:n}))),a=au(r);nd(this,I(i,a))}static from(e,t=void 0){return $u(td(e,t))}static compare(e,t){return fo(td(e),td(t))}get calendarId(){return Pt(q(this).calendar)}with(e,t=void 0){return $u(Yl(q(this),Iu(e),t))}withCalendar(e){return $u(I(q(this),ad(e)))}add(e,t=void 0){let n=q(this);return $u(I(fa(n.calendar,n,X(e),V(t)),n.calendar))}subtract(e,t=void 0){let n=q(this);return $u(I(fa(n.calendar,n,Xa(X(e)),V(t)),n.calendar))}until(e,t=void 0){return J(Gl(0,q(this),td(e),t))}since(e,t=void 0){return J(Gl(1,q(this),td(e),t))}equals(e){return _o(q(this),td(e))}toZonedDateTime(e){let t=b(e)?{timeZone:e.timeZone,plainTime:e.plainTime}:{timeZone:e},n=q(this),r=fu(t.timeZone),i=t.plainTime,a=i===void 0?void 0:Hu(i);return W(Gc(n,U(r),a))}toPlainDateTime(e=void 0){let t=q(this);return qu(Ro(t,Uu(e),t.calendar))}toPlainYearMonth(){return Au(Yc(q(this).calendar,this))}toPlainMonthDay(){return Cu(Jc(q(this).calendar,this))}toLocaleString(e=void 0,t={}){let n=q(this),r=new H(e,$c(ml(t)));return tl(r,n),r.format(Hn(n))}toString(e=void 0){return ts(q(this),e)}toJSON(){return ts(q(this))}valueOf(){return Il()}},q,Rl,Vl);function $u(e){return nd(Object.create(Qu.prototype),e)}function q(e){return ed(e)||Fl()}function ed(e){return Zu.get(e)}function td(e,t){if(b(e)){let n=ed(e);if(n)return V(t),n;let r=Ju(e);if(r)return V(t),I(r,r.calendar);let i=lu(e);return i?(V(t),Hc(i)):zs(rd(e),e,t)}let n=Ys(e,iu);return V(t),n}function nd(e,t){return Zu.set(e,t),Pl(e),e}function rd(e){let t=id(e);return t===void 0?void 0:t}function id(e){let{calendar:t}=e;if(t!==void 0)return ad(t)}function ad(e){if(b(e)){let t=ed(e)||Ju(e)||lu(e)||Tu(e)||Mu(e);return t||S(Ye(e)),t.calendar}return(e=>iu(tc(P(e))))(e)}var od=new WeakMap,sd=Nl(Ml,class{constructor(e=0,t=0,n=0,r=0,i=0,a=0,o=0,s=0,c=0,l=0){let u=Qa(st(Ir,{years:e,months:t,weeks:n,days:r,hours:i,minutes:a,seconds:o,milliseconds:s,microseconds:c,nanoseconds:l}));ud(this,Ii(u))}static from(e){return J(X(e))}static compare(e,t,n=void 0){return lo(ld,X(e),X(t),n)}get sign(){return Y(this).sign}get blank(){return!Y(this).sign}with(e){return J(Fc(Y(this),e))}negated(){return J(Ya(Y(this)))}abs(){return J(Ja(Y(this)))}add(e){return J(Ka(0,Y(this),X(e)))}subtract(e){return J(Ka(1,Y(this),X(e)))}round(e){return J(qa(ld,Y(this),e))}total(e){return Lc(ld,Y(this),e)}toLocaleString(e=void 0,t){let n=Y(this);return Intl.DurationFormat?new Intl.DurationFormat(e,t).format(n):os(n,t)}toString(e=void 0){return os(Y(this),e)}toJSON(){return os(Y(this))}valueOf(){return Il()}},Y,Cr);function J(e){return ud(Object.create(sd.prototype),e)}function Y(e){return cd(e)||Fl()}function cd(e){return od.get(e)}function X(e){return b(e)?cd(e)||Us(e):ec(e)}function ld(e){if(e!==void 0){if(b(e)){let t=lu(e);if(t)return t;let n=ed(e);if(n)return n;let r=Ju(e);return r?I(r,r.calendar):Is(fu,rd(e),e)}return Ks(e,iu)}}function ud(e,t){return od.set(e,t),Pl(e),e}var dd=Object.defineProperties({},{...ot(`Temporal.Now`),...at({timeZoneId(){return Sl()},instant(){return hu(Mi(xl()))},zonedDateTimeISO(e=Sl()){let t=U(fu(e));return W(Ni(xl(),t))},plainDateTimeISO(e=Sl()){return qu(Pi(bl(U(fu(e)))))},plainDateISO(e=Sl()){return $u(I(bl(U(fu(e)))))},plainTimeISO(e=Sl()){return zu(Fi(bl(U(fu(e)))))}})}),fd=Object.defineProperties({},{...ot(`Temporal`),...at({PlainYearMonth:ku,PlainMonthDay:Su,PlainDate:Qu,PlainTime:Ru,PlainDateTime:Ku,ZonedDateTime:su,Instant:mu,Duration:sd,Now:dd})}),pd=tu(Fu);function md(){Object.defineProperties(globalThis,at({Temporal:fd})),Object.defineProperties(Intl,at({DateTimeFormat:pd})),Object.defineProperties(Date.prototype,at({toTemporalInstant:yu}))}function hd(){wl||md()}hd();var gd=n.__b;n.__b=e=>{e.type&&e.type._forwarded&&e.ref&&(e.props.ref=e.ref,e.ref=null),gd&&gd(e)};function Z(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 _d=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)}_d&&_d(e,t,n)};function vd(e){return this.__c=yd,this.componentDidCatch=e.onError,e.children}function yd(e){e.then(()=>this.forceUpdate())}var bd=`modulepreload`,xd=function(e){return`/`+e},Sd={},Cd=function(e){return e.pathname.endsWith(`.css`)},wd=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},Q=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=xd(t,n);let r=s(t),i=Cd(r);return wd(Sd,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`:bd,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)})},Td=t(null);function Ed(){let e=i(Td);if(e==null)throw Error(`Static data unavailable outside provider.`);return e}function Dd(e){let{Provider:t}=Td,n=r(()=>Od(document),[]);return d(t,{value:n,children:e.children})}function Od(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 kd=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}},Ad=class extends kd{_getID(e){return e.id}_getRequireFailError(e){return Error(`No stop with ID #${e}.`)}_getPredicateFailError(){return Error(`No matching stop.`)}},jd=class e{id;name;urlPath;canonicalLinesServingStop;positions;defaultDepartureFeeds;constructor(e){this.id=e.id,this.name=e.name,this.urlPath=e.urlPath,this.canonicalLinesServingStop=e.canonicalLinesServingStop,this.positions=e.positions,this.defaultDepartureFeeds=e.defaultDepartureFeeds}static build(t){return new e({id:t.id,name:t.name,urlPath:t.urlPath,canonicalLinesServingStop:t.canonicalLinesServingStop,positions:new Ad(t.positions),defaultDepartureFeeds:t.defaultDepartureFeeds})}},Md=class e extends kd{_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)}static build(t){return new e(t.map(e=>jd.build(e)))}},Nd=class extends kd{_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)}},Pd=class e{_obj;stops;lines;constructor(e){this._obj=e,this.stops=Md.build(e.stops),this.lines=new Nd(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}},Fd=`corequery-local-cache`;function Id(e,t){let n=ie(async()=>{try{let n=await(await caches.open(Fd)).match(Ld(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(Fd)).put(Ld(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 Ld(e){return new URL(`/corequery-local-cache/${encodeURIComponent(e)}.json`,window.location.origin).href}var Rd={default:`text-icon-lg text-fg-weak`,large:`text-icon-xl text-fg-weak`};function zd(e){return d(`svg`,{className:a(`_loading-spinner`,Rd[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 Bd(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 Vd(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 Hd={left:`justify-start`,center:`justify-center`,right:`justify-end`,"space-between":`justify-between`},Ud={top:`items-start`,center:`items-center`,bottom:`items-end`,stretch:`items-stretch`};function $(e){let t=e.as??`div`,n=Hd[e.xAlign??`left`],r=Ud[e.yAlign??`stretch`];return d(t,{class:a(`flex flex-row`,n,r,{"flex-wrap":e.wrap},e.class),children:e.children})}function Wd(e){return d(g,{class:a(`relative`,e.class),children:[d(g,{class:a({invisible:e.loading}),children:e.children}),e.loading&&d($,{class:`absolute top-0 left-0 right-0 bottom-0`,xAlign:`center`,yAlign:`center`,children:d(zd,{})})]})}var Gd=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)]`]),Kd=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 qd(e){let t=e.rounded??!0;return d(Vd,{class:a(e.class,Gd),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:a(Kd,{"rounded-sm":t})}),d(Wd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function Jd(e){return d($,{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 Yd=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),Xd=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 Zd(e){return d(Vd,{class:a(e.class,Yd),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:Xd}),d(Wd,{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)]`]),$d=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 ef(e){return d(Vd,{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:$d}),d(Wd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var tf=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),nf=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 rf(e){return d(Vd,{class:a(e.class,tf),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:nf}),d(Wd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var af=a([`relative`,`group`,`disabled:[--color-fg:var(--color-fg-weak)]`,`disabled:[--color-fg-strong:var(--color-fg-weak)]`]),of=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 sf(e){return d(Vd,{class:a(e.class,af),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:of}),d(Wd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function cf(e){let t=e.outerPadding??!1;return d($,{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 lf=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)]`]),uf=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 df(e){return d(Vd,{class:a(e.class,lf),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:uf}),d(Wd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var ff=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)]`]),pf=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 mf(e){return d(Vd,{class:a(e.class,ff),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:pf}),d(Wd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}var hf=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)]`]),gf=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 _f(e){return d(Vd,{class:a(e.class,hf),onClick:e.onClick,href:e.href,onHrefClick:e.onHrefClick,disabled:(e.disabled??!1)||(e.loading??!1),children:[d(`div`,{class:gf}),d(Wd,{class:`z-1`,loading:e.loading??!1,children:e.children})]})}function vf(e){return d($,{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})]})}function yf(e){return d($,{class:a(e.class,`gap-1 h-5`,{"px-2":e.text!=null,"min-w-5":e.text==null}),yAlign:`center`,xAlign:`center`,children:[e.icon!=null&&d(e.icon,{class:`text-fg text-icon-xs`}),e.text!=null&&d(u,{style:`tiny-narrow`,children:e.text})]})}var bf={default:Zd,accent:qd,outlined:ef,hover:rf,"hover-square":sf,error:df,warning:mf,success:_f},xf={simple:Jd,tiny:yf,"menu-item":cf,"narrow-icon":vf};function Sf(e){let t=bf[e.theme??`default`],n=xf[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 Cf(e){let{appName:t}=Ed();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(Sf,{text:`Retry`,icon:Bd,onClick:e.onRetry})]}):d(zd,{style:`large`})]})})}var wf=t(null);function Tf(){let e=i(wf);if(e==null)throw Error(`Settings unavailable outside provider.`);return e}var Ef=me,Df=le([ue({result:fe(`outdated`),foundationalData:ce()}),ue({result:fe(`up-to-date`)})]),Of=`corequery-foundational-data`,kf=2e3;function Af(e){let{Provider:t}=_e,{revalidateSettings:n}=Tf(),i=Id(Of,Pd.json),[a,o]=_(null),[s,c]=_(!1),u=ie(e=>{o(e),n(e)},[n]),f=ie(async e=>{let t=Pd.json.parse(e);return u(t),await i.set(e),t.hash},[u,i]),p=ie(async()=>{let e=await Mf(null,null);if(e.result===`up-to-date`)throw Error();return await f(e.foundationalData)},[f]),m=ie(()=>{c(!1),jf({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(Cf,{error:s,onRetry:m}):d(t,{value:h,children:e.children})}async function jf({getCachedData:e,onFreshFoda:t,onUseCachedFoda:n,onFailure:r}){let i=await e();if(i!=null)try{let e=await Mf(i.hash,kf);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 Mf(null,null);if(e.result===`up-to-date`)throw Error();await t(e.foundationalData)}catch{r()}}async function Mf(e,t){let n=await fetch(`/api${Ef.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${Ef.path}: ${e}`)}return Df.parse(await n.json())}var Nf=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())}},Pf=[`auto`,`light`,`dark`];function Ff(){window.applyTheme?.()}function If(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 Lf(e){let{Provider:t}=wf,n=If(`corequery-settings`,Nf.json),[i,a]=_(()=>n.get()??(console.warn(`Failed to load settings, using defaults.`),Nf.default)),o=ie((e,t)=>{a(r=>{let i=e(r);return(t?.persist??!0)&&n.set(i.toJson()),i}),Ff()},[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 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`,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 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`,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 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`,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 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.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 Hf(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 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`,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 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:`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 Gf(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 Kf(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 qf(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 Jf(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 Yf(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 Xf(){return[{name:`Home`,href:v.home,regularIcon:xe,activeIcon:Bf,isActive:e=>e===v.home},{name:`Status`,href:v.status,regularIcon:zf,activeIcon:Rf,isActive:e=>e===v.status},{name:`Nearby`,href:v.nearby,regularIcon:Hf,activeIcon:Vf,isActive:e=>e===v.nearby},{name:`Search`,icon:Wf,opensSearchDrawer:!0},{name:`More`,icon:Uf,opensMoreDrawer:!0}]}function Zf(){let{appName:e}=Ed();return[{name:`About ${e}`,href:v.about,icon:qf},{name:`Settings`,href:v.settings,icon:Kf},{name:`Developer info`,href:v.debug,icon:Gf},{name:`Admin controls`,href:v.admin,icon:Jf},{name:`Zen mode`,href:v.zen,icon:Yf}]}var Qf=t(null);function $f(){let e=i(Qf);if(e==null)throw Error(`Service worker data unavailable outside provider.`);return e}function ep(e){let{isUpdateAvailable:t,update:n}=$f(),[r,i]=_(!1);return l(()=>{e.menuFullyClosed&&i(t)},[t,e.menuFullyClosed]),r?d(qd,{rounded:!1,onClick:()=>void n(),children:d(f,{children:d(cf,{icon:Bd,text:`Update available — click to refresh`,outerPadding:!0})})}):null}function tp(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 np(e){let t=Zf(),n=tp(!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(Sf,{icon:t.icon,text:t.name,href:t.href,onHrefClick:e.onClose,theme:`hover-square`,layout:`menu-item`},t.href))})}),d(ep,{menuFullyClosed:n})]})]})}function rp(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 ip(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`})]})})}function ap(e){let t=e.withLinks??!1;return d(u,{class:a(e.class),style:e.style,children:d(op,{lineIds:e.lineIds,withLinks:t})})}function op({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(sp,{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 sp({lineIds:t,withLinks:n}){let{foda:i}=ge(),a=r(()=>t.map(e=>lp(e,i)).sort((e,t)=>e.name.localeCompare(t.name)),[t,i]);return a.length===1?d(cp,{data:ve(a[0]),withLink:n}):a.length===2?d(e,{children:[d(cp,{data:ve(a[0]),withLink:n}),` and`,` `,d(cp,{data:ve(a[1]),withLink:n})]}):d(e,{children:[a.slice(0,-1).map((t,r)=>d(e,{children:[d(cp,{data:ve(t),withLink:n}),`,`,` `]},r)),` and `,d(cp,{data:ve(a[a.length-1]),withLink:n})]})}function cp({data:t,withLink:n}){return n?d(Se,{href:t.href,style:`strong-subtle`,dynamicColor:t.color,children:t.name}):d(e,{children:t.name})}function lp(e,t){let n=t.lines.require(e);return{name:n.name,href:v.line(n.urlPath),color:n.color}}function up(){let{foda:e}=ge(),{formatStop:t,formatLine:n,pluralStopsTerm:i,pluralLinesTerm:a}=be();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(ap,{lineIds:e.canonicalLinesServingStop,style:`small`}),url:v.stop(e.urlPath),icon:rp}})),i=e.lines.map(e=>({id:`line-${e.id}`,primary:n(e.name),alternatives:[],data:{title:n(e.name),description:null,url:v.line(e.urlPath),icon:ip}}));return[...r,...i]},[e.lines,e.stops,n,t]),placeholder:r(()=>`Search ${i}, ${a}, etc.`,[a,i])}}var dp={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 fp(e){let t=dp[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(pp,{onSubmit:e.onSubmit,children:e.search??!1?d(`input`,{type:`search`,...n}):d(`input`,{type:`text`,...n})})}function pp(e){return e.onSubmit==null?e.children:d(`form`,{class:`grid`,autoComplete:`off`,onSubmit:t=>{t.preventDefault(),e.onSubmit?.()},children:e.children})}var mp=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 hp(e,t){return t.filter(t=>t.primary===e||t.alternatives.includes(e))}function gp(e,t){return t.filter(t=>t.primary.startsWith(e)).sort((e,t)=>e.primary.length-t.primary.length)}function _p(e,t){return t.filter(t=>t.primary.includes(e)).sort((e,t)=>e.primary.length-t.primary.length)}function vp(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(ye).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function yp(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(ye).sort((e,t)=>t.percentageMatched-e.percentageMatched).map(({candidate:e})=>e)}function bp(e,t,{maxResults:n=5}={}){let r=e.trim().toLowerCase();if(r.length===0)return[];let i=new mp(r,t.map(e=>({...e,primary:e.primary.toLowerCase(),alternatives:e.alternatives.map(e=>e.toLowerCase())})),n);return i.appendResults(hp,{passCandidatesRequiringExactMatch:!0}),i.appendResults(gp),i.appendResults(_p),i.appendResults(vp),i.appendResults(yp),i.getResults()}function xp(e){return d(`div`,{class:a(e.class,`flex flex-col justify-center items-stretch`),style:{height:`${e.heightRem}rem`},children:e.children})}function Sp(e){return d(sf,{href:e.href,onHrefClick:e.onHrefClick,class:a(e.class),children:d($,{class:a(e.class,`gap-3 desktop:gap-2 min-w-0 py-3 px-4 min-h-10`),yAlign:`center`,children:[d(xp,{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 Cp(e){let[t,n]=_(``),{candidates:i,placeholder:o}=up(),{route:s}=m(),p=r(()=>bp(t,i,{maxResults:5}),[t,i]),ee=tp(!e.open,300);l(()=>{ee&&n(``)},[ee]);let te=c(null),ne=tp(e.open,100);l(()=>{ne&&te.current?.focus()},[ne]);function re(){p.length>0&&(s(ve(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(fp,{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(Wf,{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(Sp,{title:t.title,description:t.description,icon:t.icon,href:t.url,onHrefClick:e.onClose},t.url))]})]})})]})}function wp(e){let t=e.active??!1;return d(Vd,{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 Tp(e){let{url:t}=m(),n=Xf(),{isUpdateAvailable:r}=$f();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(wp,{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 Ep(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(rf,{class:e.class,onClick:e.onClick,href:e.href,children:d($,{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 Dp(e){return d(`img`,{class:a(e.class,`w-[1em] h-[1em]`),src:`/favicon.svg`})}function Op(e){return d(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:[d(`path`,{d:`M0 0h24v24H0z`,fill:`none`}),d(`path`,{fill:`currentColor`,d:`M10.586 12.001L4.929 6.344c-.359-.41-.404-1.01 0-1.414c.404-.405 1.005-.359 1.414 0L12 10.586l5.657-5.656c.409-.359 1.01-.404 1.414 0s.359 1.005 0 1.414l-5.657 5.657l5.657 5.656c.359.41.404 1.011 0 1.415s-1.005.359-1.414 0L12 13.415l-5.657 5.657c-.409.359-1.01.404-1.414 0s-.359-1.005 0-1.414Z`})]})}function kp(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:`M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z`})]})})}function Ap(e){let{unregister:t}=$f(),[n,r]=_(null);l(()=>{async function e(){if(window.location.hostname!==`localhost`)return;let e=await navigator.serviceWorker.getRegistrations();r(e.length>0)}e();let t=setInterval(()=>{e()},1e3);return()=>clearInterval(t)},[]);function i(){async function e(){await t(),window.location.reload()}e()}return n===null?null:n?d(Sf,{class:a(e.class),theme:`success`,layout:`tiny`,onClick:i,text:`SW registered`,icon:kp}):d(Sf,{class:a(e.class),theme:`default`,layout:`tiny`,href:v.debug,text:`No SW registered`,icon:Op})}function jp(e){let{appName:t}=Ed(),{url:n}=m(),r=Xf(),{isUpdateAvailable:i}=$f();return d(f,{class:a(e.class,`h-12 bg-bg-navbar border-b border-soft-border`),children:d($,{xAlign:`space-between`,children:[d($,{class:`gap-2`,children:[d(rf,{class:`self-center`,href:v.home,children:d($,{class:`px-4 gap-2 h-8`,xAlign:`center`,yAlign:`center`,children:[d(Dp,{class:`text-icon-md`}),d(u,{style:`wordmark`,children:t})]})}),d($,{children:r.map(t=>d(Ep,{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))})]}),d(Ap,{class:`self-center mr-4`})]})})}function Mp(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(Tp,{onOpenMoreDrawerRequest:u,onOpenSearchDrawerRequest:f})}),d(`div`,{class:`not-desktop:hidden row-1 pointer-events-auto relative z-1`,children:n&&d(jp,{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(np,{open:i,onClose:p})}),d(`div`,{class:a(`absolute top-0 left-0 right-0 z-1`,{"pointer-events-none":!s}),children:d(Cp,{open:s,onClose:p})}),d(`div`,{class:`absolute top-0 left-0 right-0 bottom-0 z-0`,onClick:p})]})]})}function Np(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(Mp,{})})]})}var Pp=`false`,Fp=`false`,Ip=Pp===`true`,Lp=Fp===`true`;function Rp(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,Ip||u?.()};async function f(){if(`serviceWorker`in navigator){if(c=await Q(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()},!Lp){if(Ip)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 zp(e){let{Provider:t}=Qf,[n,i]=_(!1),[a,o]=_(!1),s=r(()=>Rp({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 Bp(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 Vp(){return{isHotReloadingEnabled:r(()=>!1,[])}}function Hp(e){let{isHotReloadingEnabled:t}=Vp(),{frontendVersion:n,versionsOnLastUpdate:r}=Ed(),{unregister:i}=$f(),{data:a,loading:o,error:s}=Bp(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 Up=t(null);function Wp(){let e=i(Up);if(e==null)throw Error(`Current time unavailable outside provider.`);return e}function Gp(e){let{Provider:t}=Up,[n,i]=_(()=>Kp());l(()=>{let e=setInterval(()=>{let e=Kp();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 Kp(){return Temporal.Now.zonedDateTimeISO(`UTC`).round({smallestUnit:`minute`,roundingMode:`floor`}).toInstant()}var qp=Z(()=>Q(()=>import(`./About-C3wnI7Tt.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]))),Jp=Z(()=>Q(()=>import(`./AdminControls-DrThgKnx.js`),__vite__mapDeps([14,1,8,9,10]))),Yp=Z(()=>Q(()=>import(`./Debug-Bj0JQBuG.js`),__vite__mapDeps([15,1,2,3,4,8,9,10,11,12,13]))),Xp=Z(()=>Q(()=>import(`./Home-Dh99ZtY6.js`),__vite__mapDeps([16,1,3,5,6,7,8,9,10]))),Zp=Z(()=>Q(()=>import(`./Nearby-DV_tFaX_.js`),__vite__mapDeps([17,1,8]))),Qp=Z(()=>Q(()=>import(`./Service-CETSSNTt.js`),__vite__mapDeps([18,1,2,3,19,20,21,13,22,6,8,9,10,23]))),$p=Z(()=>Q(()=>import(`./Settings-7eYiXBh4.js`),__vite__mapDeps([24,1,8,9,10,11,25]))),em=Z(()=>Q(()=>import(`./Status-DYPebws5.js`),__vite__mapDeps([26,1,8,9,10]))),tm=Z(()=>Q(()=>import(`./ZenMode-DmkrZopO.js`),__vite__mapDeps([27,1,7,8,9,10]))),nm=Z(()=>Q(()=>import(`./Stop-WWINwzYk.js`),__vite__mapDeps([28,1,2,3,19,22,8,10,29,21,13,23]))),rm=Z(()=>Q(()=>import(`./Line-DAVFWc_l.js`),__vite__mapDeps([30,1,2,3,19,20,21,13,22,6,8,9,10,12,29,25]))),im=Z(()=>Q(()=>import(`./NotFound-CySH3zss.js`),__vite__mapDeps([31,1,29,2,3,22,8])));function am(){return d(zp,{children:d(Dd,{children:d(Hp,{children:d(Lf,{children:d(Af,{children:d(Gp,{children:d(te,{children:d(Np,{children:d(vd,{children:d(s,{children:[d(o,{path:v.home,component:Xp}),d(o,{path:v.about,component:qp}),d(o,{path:v.admin,component:Jp}),d(o,{path:v.debug,component:Yp}),d(o,{path:v.lineUrlTemplate,component:rm}),d(o,{path:v.nearby,component:Zp}),d(o,{path:v.serviceUrlTemplate,component:Qp}),d(o,{path:v.settings,component:$p}),d(o,{path:v.status,component:em}),d(o,{path:v.stopUrlTemplate,component:nm}),d(o,{path:v.zen,component:tm}),d(o,{default:!0,component:im})]})})})})})})})})})})}re(d(am,{}),document.body);export{zd as _,xp as a,qf as c,Tf as d,Sf as f,Bd as g,Vd as h,kp as i,zf as l,$ as m,Vp as n,ap as o,sf as p,Bp as r,$f as s,Wp as t,Pf as u,Ed as v};
|
|
@@ -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:.8rem;--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}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.-top-2{top:calc(var(--spacing) * -2)}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.right-\[-0\.65rem\]{right:-.65rem}.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}.mr-4{margin-right:calc(var(--spacing) * 4)}.-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-5{height:calc(var(--spacing) * 5)}.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-5{min-width:calc(var(--spacing) * 5)}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-10{min-width:calc(var(--spacing) * 10)}.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{color:var(--color-error)}.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}}
|
|
@@ -0,0 +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-D8bA5W60.js";import"./use-api-qDZl9CKn.js";import{n as l}from"./use-terminology-BNoP6KZJ.js";import{d as u}from"./index-CYVVbfmA.js";import{t as d}from"./ErrorMessage-C9JxifQk.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};
|