corequery 0.35.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/package.json +1 -1
  2. package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js +2 -0
  3. package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js.map +1 -1
  4. package/server/dist/shared/apis/foundational-data/v1/foundational-data.d.ts +8 -0
  5. package/server/dist/shared/apis/foundational-data/v1/foundational-data.js +8 -27
  6. package/server/dist/shared/apis/foundational-data/v1/foundational-data.js.map +1 -1
  7. package/server/dist/shared/apis/foundational-data/v1/index.d.ts +8 -0
  8. package/web/dist/assets/{About-DJhKXgnn.js → About-CuBfNcQd.js} +1 -1
  9. package/web/dist/assets/{AdminControls-D0pgA5wf.js → AdminControls-CVGbS_5e.js} +1 -1
  10. package/web/dist/assets/Alert-CNaalIbn.js +1 -0
  11. package/web/dist/assets/Debug-B9JffuQ7.js +1 -0
  12. package/web/dist/assets/{Home-DIEadcoR.js → Home-BZXUmeh8.js} +1 -1
  13. package/web/dist/assets/{Line-Dxew3yXf.js → Line-DNbLEU4Y.js} +1 -1
  14. package/web/dist/assets/NotFound-5qV_DZRA.js +1 -0
  15. package/web/dist/assets/NotFoundPage-rabdgx0c.js +1 -0
  16. package/web/dist/assets/{Picker-D4ga8LYJ.js → Picker-k_4eWvu2.js} +1 -1
  17. package/web/dist/assets/{Service-frX-LyRg.js → Service-BNcdDmTR.js} +1 -1
  18. package/web/dist/assets/{Settings-BgHb1nlk.js → Settings-ZUDsiG47.js} +1 -1
  19. package/web/dist/assets/{SimpleMobileHeaderContent-y6m4_5yJ.js → SimpleMobileHeaderContent-BZ-z0X3U.js} +1 -1
  20. package/web/dist/assets/{Status-sLRF_nKb.js → Status-CRAvAMxM.js} +1 -1
  21. package/web/dist/assets/Stop-C3WdbHTc.js +11 -0
  22. package/web/dist/assets/{ZenMode-DdoTtVJG.js → ZenMode-BRnT2IgH.js} +1 -1
  23. package/web/dist/assets/index-Bku-5Rho.css +2 -0
  24. package/web/dist/assets/{index-ByA44-P7.js → index-uA8YIkaf.js} +2 -2
  25. package/web/dist/assets/{linear-BWJmB0m_.js → linear-Ddr4Wd6S.js} +1 -1
  26. package/web/dist/assets/{use-api-_Y5vsFb-.js → use-api-DL13FmNZ.js} +1 -1
  27. package/web/dist/assets/{use-foda-synced-query-BsS3nwV1.js → use-foda-synced-query-Df-foxd8.js} +1 -1
  28. package/web/dist/assets/{use-simple-headers-BGdX3p-e.js → use-simple-headers-BE9SwcPx.js} +1 -1
  29. package/web/dist/index.html +3 -3
  30. package/web/dist/sw.js +1 -1
  31. package/web/dist/assets/Alert-DSl3_gX3.js +0 -1
  32. package/web/dist/assets/Debug-Cd_f8CKx.js +0 -1
  33. package/web/dist/assets/NotFound-Dmj1p5xO.js +0 -1
  34. package/web/dist/assets/NotFoundPage-CoVT8xxG.js +0 -1
  35. package/web/dist/assets/Stop-DEsRmVC1.js +0 -11
  36. package/web/dist/assets/index-C46bcc5o.css +0 -2
@@ -52,4 +52,4 @@ import{g as e,h as t}from"./use-nav-exemptions-Daz3EeSR.js";function n(e){let t=
52
52
 
53
53
  `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},s,c=ie,l=!k.jitless,u=l&&ae.value,d=t.catchall,f;e._zod.parse=(i,o)=>{f??=r.value;let p=i.value;return c(p)?l&&u&&o?.async===!1&&o.jitless!==!0?(s||=a(t.shape),i=s(i,o),d?_r([],p,i,o,f,e,o?.abortEarly===!0):i):n(i,o):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function br(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!x(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>C(e,r,A())))}),t)}var xr=D(`$ZodUnion`,(e,t)=>{M.init(e,t),E(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),E(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),E(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),E(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>c(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>br(t,r,e,i)):br(o,r,e,i)}}),Sr=D(`$ZodIntersection`,(e,t)=>{M.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>wr(e,t,n)):wr(e,i,a)}});function Cr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(_(e)&&_(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=Cr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Cr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function wr(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=Cr(t.value,n.value);if(!c.valid){if(x(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Tr=D(`$ZodEnum`,(e,t)=>{M.init(e,t);let r=n(t.entries),i=new Set(r);e._zod.values=i,E(e,`pattern`,e=>{let t=n(e.def.entries).filter(e=>se.has(typeof e));return RegExp(t.length?`^(${t.map(e=>v(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(t,n)=>{let a=t.value;return i.has(a)||t.issues.push({code:`invalid_value`,values:r,input:a,inst:e}),t}}),Er=D(`$ZodLiteral`,(e,t)=>{M.init(e,t);let n=new Set(t.values);e._zod.values=n,E(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?v(e):e?v(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Dr=D(`$ZodTransform`,(e,t)=>{M.init(e,t),e._zod.optin=`optional`,k.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new We(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n));if(i instanceof Promise)throw new O;return n.value=i,n}});function Or(e,t){return e.value=t.issues.length?void 0:t.value,e}var kr=D(`$ZodOptional`,(e,t)=>{M.init(e,t),E(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,E(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),E(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${c(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>Or(e,t)):Or(e,r)}return t.innerType._zod.run(e,n)}}),Ar=D(`$ZodExactOptional`,(e,t)=>{kr.init(e,t),E(e,`values`,e=>e.def.innerType._zod.values),E(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),jr=D(`$ZodNullable`,(e,t)=>{M.init(e,t),E(e,`optin`,e=>e.def.innerType._zod.optin),E(e,`optout`,e=>e.def.innerType._zod.optout),E(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${c(t.source)}|null)$`):void 0}),E(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),Mr=D(`$ZodDefault`,(e,t)=>{M.init(e,t),e._zod.optin=`defaulted`,E(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>Nr(e,t)):Nr(r,t)}});function Nr(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Pr=D(`$ZodPrefault`,(e,t)=>{M.init(e,t),e._zod.optin=`defaulted`,E(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),Fr=D(`$ZodNonOptional`,(e,t)=>{M.init(e,t),E(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>Ir(t,e)):Ir(i,e)}});function Ir(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}function Lr(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>C(e,r,A()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Rr=D(`$ZodCatch`,(e,t)=>{M.init(e,t),E(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),E(e,`optout`,e=>e.def.innerType._zod.optout),E(e,`values`,e=>e.def.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Lr(e,r,t,n)):Lr(e,r,t,n)}}),zr=D(`$ZodPipe`,(e,t)=>{M.init(e,t),E(e,`values`,e=>e.def.in._zod.values),E(e,`optin`,e=>e.def.in._zod.optin),E(e,`optout`,e=>e.def.out._zod.optout),E(e,`propValues`,e=>e.def.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Br(e,t.in,n)):Br(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Br(e,t.out,n)):Br(r,t.out,n)}});function Br(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var Vr=D(`$ZodReadonly`,(e,t)=>{M.init(e,t),E(e,`propValues`,e=>e.def.innerType._zod.propValues),E(e,`values`,e=>e.def.innerType._zod.values),E(e,`optin`,e=>e.def.innerType?._zod?.optin),E(e,`optout`,e=>e.def.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(Hr):Hr(r)}});function Hr(e){return e.memo||(e.value=Object.freeze(e.value)),e}var Ur=D(`$ZodCustom`,(e,t)=>{j.init(e,t),M.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Wr(t,n,r,e));Wr(i,n,r,e)}});function Wr(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(ke(e))}}var Gr=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Kr=`~memo`,qr=[];function Jr(e){return typeof e==`object`&&!!e}function Yr(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Xr=new WeakMap,P=0,Zr=1,F=2;function Qr(e,t,n){let r=Xr.get(e);if(r!==void 0)return r?F:P;if(t.has(e))return F;t.add(e);let i=P,a=e=>{if(i!==F&&e?._zod){let r=Qr(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=P;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?Zr:o.value?._zod?Qr(o.value,t,n):P;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=d(c);s(e?o(e,!0):Zr),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?Qr(r,t,!1):Zr);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),$r(e,i)}function $r(e,t){return t!==Zr&&Xr.set(e,t===F),t}function ei(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var ti,ni=[],ri={alloc(e,t,n){let r=ti;if(!r)return n;ti=void 0;let i={value:n,issues:null};return r.set(t.value,i),ni.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&ai(n,e.value))throw new Gr;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=Qr(e,new Set,!1);if(i===P)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===F||r?n=!0:r=!0}let l=s.value;if(!Jr(l))return t(s,c);let u=c[Kr];u||(u={buckets:new WeakMap,backEdges:void 0},c[Kr]=u);let d;i===c?d=a:(d=ei(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...Yr(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;ti=d;let p=ni.length,m=t(s,c);ti=void 0;let h=ni.length>p?ni.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?Yr(e.issues):qr),e)):(h&&(h.issues=m.issues.length?Yr(m.issues):qr),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function ii(){return ri}function ai(e,t){let n=e[Kr]?.backEdges;return n!==void 0&&Jr(t)&&n.has(t)}var oi=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},i={nan:`NaN`};function a(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):i[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${a(e.expected)}, received ${a(Oe(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${ce(e.values[0])}`:`Invalid option: expected one of ${r(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${r(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function si(){return{localeError:oi()}}var ci,li=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function ui(){return new li}(ci=globalThis).__zod_globalRegistry??(ci.__zod_globalRegistry=ui());var I=globalThis.__zod_globalRegistry;function di(e){return e.checks&&=[...e.checks],e}function fi(e,t){return new e(di({type:`string`,...b(t)}))}function pi(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...b(t)})}function mi(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...b(t)})}function hi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...b(t)})}function gi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...b(t)})}function _i(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...b(t)})}function vi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...b(t)})}function yi(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...b(t)})}function bi(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...b(t)})}function xi(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...b(t)})}function Si(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...b(t)})}function Ci(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...b(t)})}function wi(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...b(t)})}function Ti(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...b(t)})}function Ei(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...b(t)})}function Di(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...b(t)})}function Oi(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...b(t)})}function ki(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...b(t)})}function Ai(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...b(t)})}function ji(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...b(t)})}function Mi(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...b(t)})}function Ni(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...b(t)})}function Pi(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...b(t)})}function Fi(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...b(t)})}function Ii(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...b(t)})}function Li(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...b(t)})}function Ri(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...b(t)})}function zi(e,t){return new e(di({type:`number`,checks:[],...b(t)}))}function Bi(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...b(t)})}function Vi(e,t){return new e({type:`boolean`,...b(t)})}function Hi(e){return new e({type:`unknown`})}function Ui(e,t){return new e({type:`never`,...b(t)})}function Wi(e,t){return new $t({check:`less_than`,...b(t),value:e,inclusive:!1})}function Gi(e,t){return new $t({check:`less_than`,...b(t),value:e,inclusive:!0})}function Ki(e,t){return new en({check:`greater_than`,...b(t),value:e,inclusive:!1})}function qi(e,t){return new en({check:`greater_than`,...b(t),value:e,inclusive:!0})}function Ji(e,t){return new tn({check:`multiple_of`,...b(t),value:e})}function Yi(e,t){return new rn({check:`max_length`,...b(t),maximum:e})}function Xi(e,t){return new an({check:`min_length`,...b(t),minimum:e})}function Zi(e,t){return new on({check:`length_equals`,...b(t),length:e})}function Qi(e,t){return new cn({check:`string_format`,format:`regex`,...b(t),pattern:e})}function $i(e){return new ln({check:`string_format`,format:`lowercase`,...b(e)})}function ea(e){return new un({check:`string_format`,format:`uppercase`,...b(e)})}function ta(e,t){return new dn({check:`string_format`,format:`includes`,...b(t),includes:e})}function na(e,t){return new fn({check:`string_format`,format:`starts_with`,...b(t),prefix:e})}function ra(e,t){return new pn({check:`string_format`,format:`ends_with`,...b(t),suffix:e})}function L(e){return new mn({check:`overwrite`,tx:e})}function ia(e){return L(t=>t.normalize(e))}function aa(){return L(e=>e.trim())}function oa(){return L(e=>e.toLowerCase())}function sa(){return L(e=>e.toUpperCase())}function ca(){return L(e=>ne(e))}function la(e,t,n){return new e({type:`array`,element:t,...b(n)})}function ua(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...b(n)})}function da(e,t){let n=fa(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(ke(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(ke(r))}},e(t.value,t)),t);return n}function fa(e,t){let n=new j({check:`custom`,...b(t)});return n._zod.check=e,n}function pa(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&u(e,t,n[t]);return e}function ma(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??I,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function R(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function z(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,z(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&pa(o.schema,c),t.io===`input`&&B(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function ha(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function ga(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${ha(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+ha(a)}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
54
54
 
55
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function _a(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;_a(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var va=new Set([`type`,`properties`,`required`,`additionalProperties`]),ya=[`oneOf`,`anyOf`];function ba(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function xa(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!va.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??ba(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}u(n,r,e.length===1?e[0]:xa(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=ba(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Sa(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of va)if(t in e)return;let n=t.filter(e=>ya.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=xa(t);else{let e=n[0],i=ya.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>xa([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,pa(e,r))}function Ca(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):pa(i,s),pa(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())_a(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Sa(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}pa(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,u(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Ta(t,`input`,e.processors),output:Ta(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function B(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return B(r.element,n);if(r.type===`set`)return B(r.valueType,n);if(r.type===`lazy`)return B(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return B(r.innerType,n);if(r.type===`intersection`)return B(r.left,n)||B(r.right,n);if(r.type===`record`||r.type===`map`)return B(r.keyType,n)||B(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:B(r.in,n)||B(r.out,n);if(r.type===`object`){for(let e in r.shape)if(B(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(B(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(B(e,n))return!0;return!!(r.rest&&B(r.rest,n))}return!1}var wa=(e,t={})=>n=>{let r=ma({...n,processors:t});return z(e,r),ga(r,e),Ca(r,e)},Ta=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ma({...i??{},target:a,io:t,processors:n});return z(e,o),ga(o,e),Ca(o,e)},V=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},H=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Ea=(e,t)=>{V(e,`minimum`,t),H(e,`maximum`,t)},Da=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Oa=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},ka=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Aa=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},ja=(e,t)=>V(e,`minimum`,t.minimum),Ma=(e,t)=>H(e,`maximum`,t.maximum),Na=e=>(t,n)=>{Aa(t,n.format);let[r,i]=e[n.format];V(t,`minimum`,r),H(t,`maximum`,i)},Pa={greater_than:(e,t)=>V(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>H(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Da(e,t.value),number_format:Na(ue),bigint_format:Na(de),min_length:ja,max_length:Ma,length_equals:(e,t)=>Ea(e,t.length),min_size:ja,max_size:Ma,size_equals:(e,t)=>Ea(e,t.size),string_format:(e,t)=>{Aa(e,t.format),t.pattern&&Oa(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>ka(e,t.mime)};function U(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Pa[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&V(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&V(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&H(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&H(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Da(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&ka(t,i.mime);for(let e of i.patterns??[])Oa(t,e);return t}var Fa={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Ia=new Map([[Zn,It],[$n,Lt]]),La=e=>Ia.get(e)??e,Ra=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=U(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Fa[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(La);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},za=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=U(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):R(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},Ba=(e,t,n,r)=>{n.type=`boolean`},Va=(e,t,n,r)=>{n.not={}},Ha=(e,t,r,i)=>{let a=e._zod.def,o=n(a.entries);o.length===0?r.not={}:(o.every(e=>typeof e==`number`)&&(r.type=`number`),o.every(e=>typeof e==`string`)&&(r.type=`string`),r.enum=o)},Ua=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(R(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(R(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},Wa=(e,t,n,r)=>{R(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Ga=(e,t,n,r)=>{R(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Ka=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=U(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=z(a.element,t,{...r,path:[...r.path,`items`]})};function qa(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?qa(t.out):t.type===`catch`?qa(t.innerType):e._zod.optin}var Ja=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&R(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)u(i.properties,e,z(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?qa(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=z(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Ya=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>z(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Xa=(e,t,n,r)=>{let i=e._zod.def,a=z(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=z(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},Za=(e,t,n,r)=>{let i=e._zod.def,a=z(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Qa=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$a=Symbol();function eo(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(R(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),$a):JSON.parse(o)}var to=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=eo(i.defaultValue,e,t,n,r);o!==$a&&(n.default=o)},no=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=eo(i.defaultValue,e,t,n,r);o!==$a&&(n._prefault=o)},ro=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{R(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},io=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;z(o,t,r);let s=t.seen.get(e);s.ref=o},ao=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},oo=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},so=new WeakSet([Object.prototype,Error.prototype]);function co(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var W=D(`ZodError`,(e,t)=>{Xe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);so.has(n)||(so.add(n),co(n,`format`,e=>t=>$e(e,t)),co(n,`flatten`,e=>t=>Qe(e,t)),co(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,i,2)}),co(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,i,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),lo=tt(W),uo=nt(W),fo=rt(W),po=at(W),mo=dt(W),ho=ft(W),go=pt(W),_o=mt(W),vo=ht(W),yo=gt(W),bo=_t(W),xo=vt(W);function So(){k.localeError||A(si())}function Co(){k.memoizer||A({memoizer:ii()})}var G=D(`ZodType`,(e,t)=>(So(),M.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(g(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return y(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ns(e,t))},superRefine(e,t){return this.check(Ps(e,t))},overwrite(e){return this.check(L(e))},optional(){return hs(this)},exactOptional(){return _s(this)},nullable(){return ys(this)},nullish(){return hs(ys(this))},nonoptional(e){return Ts(this,e)},array(){return as(this)},or(e){return X([this,e])},and(e){return ls(this,e)},transform(e){return ks(this,ps(e))},default(e){return xs(this,e)},prefault(e){return Cs(this,e)},catch(e){return Ds(this,e)},pipe(e){return ks(this,e)},readonly(){return js(this)},describe(e){let t=this.clone();return I.add(t,{description:e}),t},meta(...e){if(e.length===0)return I.get(this);let t=this.clone();return I.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return je(this,`~standard`,{...yn(this),jsonSchema:{input:Ta(this,`input`),output:Ta(this,`output`)}})},set"~standard"(e){w(this,`~standard`,e)},parse:function e(t,n){return lo(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await uo(this,t,n,{callee:e})},safeParse(e,t){return fo(this,e,t)},async safeParseAsync(e,t){return po(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){w(this,`spa`,e)},validate(e,t){return ct(this,e,t)},validateAsync(e,t){return ut(this,e,t)},encode:function e(t,n){return mo(this,t,n,{callee:e})},decode:function e(t,n){return ho(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await go(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await _o(this,t,n,{callee:e})},safeEncode(e,t){return vo(this,e,t)},safeDecode(e,t){return yo(this,e,t)},async safeEncodeAsync(e,t){return bo(this,e,t)},async safeDecodeAsync(e,t){return xo(this,e,t)},toJSONSchema(e){return wa(this,{})(e)},get description(){return I.get(this)?.description},get _def(){return this._zod.def}}),wo=D(`_ZodString`,(e,t)=>{bn.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ra(e,t,n,r)},Me({format:e=>U(e).format??null,minLength:e=>U(e).minimum??null,maxLength:e=>U(e).maximum??null},{regex(...e){return this.check(Qi(...e))},includes(...e){return this.check(ta(...e))},startsWith(...e){return this.check(na(...e))},endsWith(...e){return this.check(ra(...e))},min(...e){return this.check(Xi(...e))},max(...e){return this.check(Yi(...e))},length(...e){return this.check(Zi(...e))},nonempty(...e){return this.check(Xi(1,...e))},lowercase(e){return this.check($i(e))},uppercase(e){return this.check(ea(e))},trim(){return this.check(aa())},normalize(...e){return this.check(ia(...e))},toLowerCase(){return this.check(oa())},toUpperCase(){return this.check(sa())},slugify(){return this.check(ca())}})),To=D(`ZodString`,(e,t)=>{bn.init(e,t),wo.init(e,t)},{email(e){return this.check(pi(Ao,e))},url(e){return this.check(yi(No,e))},jwt(e){return this.check(Pi(Jo,e))},emoji(e){return this.check(bi(Po,e))},guid(e){return this.check(mi(jo,e))},uuid(e){return this.check(hi(Mo,e))},uuidv4(e){return this.check(gi(Mo,e))},uuidv6(e){return this.check(_i(Mo,e))},uuidv7(e){return this.check(vi(Mo,e))},nanoid(e){return this.check(xi(Fo,e))},cuid(e){return this.check(Si(Io,e))},cuid2(e){return this.check(Ci(Lo,e))},ulid(e){return this.check(wi(Ro,e))},base64(e){return this.check(ji(Go,e))},base64url(e){return this.check(Mi(Ko,e))},xid(e){return this.check(Ti(zo,e))},ksuid(e){return this.check(Ei(Bo,e))},ipv4(e){return this.check(Di(Vo,e))},ipv6(e){return this.check(Oi(Ho,e))},cidrv4(e){return this.check(ki(Uo,e))},cidrv6(e){return this.check(Ai(Wo,e))},e164(e){return this.check(Ni(qo,e))},datetime(e){return this.check(Fi(Eo,e))},date(e){return this.check(Ii(Do,e))},time(e){return this.check(Li(Oo,e))},duration(e){return this.check(Ri(ko,e))}});function K(e){return fi(To,e)}var q=D(`ZodStringFormat`,(e,t)=>{N.init(e,t),wo.init(e,t)}),Eo=D(`ZodISODateTime`,(e,t)=>{zn.init(e,t),q.init(e,t)}),Do=D(`ZodISODate`,(e,t)=>{Bn.init(e,t),q.init(e,t)}),Oo=D(`ZodISOTime`,(e,t)=>{Vn.init(e,t),q.init(e,t)}),ko=D(`ZodISODuration`,(e,t)=>{Hn.init(e,t),q.init(e,t)}),Ao=D(`ZodEmail`,(e,t)=>{Cn.init(e,t),q.init(e,t)}),jo=D(`ZodGUID`,(e,t)=>{xn.init(e,t),q.init(e,t)}),Mo=D(`ZodUUID`,(e,t)=>{Sn.init(e,t),q.init(e,t)}),No=D(`ZodURL`,(e,t)=>{jn.init(e,t),q.init(e,t)}),Po=D(`ZodEmoji`,(e,t)=>{Mn.init(e,t),q.init(e,t)}),Fo=D(`ZodNanoID`,(e,t)=>{Nn.init(e,t),q.init(e,t)}),Io=D(`ZodCUID`,(e,t)=>{Pn.init(e,t),q.init(e,t)}),Lo=D(`ZodCUID2`,(e,t)=>{Fn.init(e,t),q.init(e,t)}),Ro=D(`ZodULID`,(e,t)=>{In.init(e,t),q.init(e,t)}),zo=D(`ZodXID`,(e,t)=>{Ln.init(e,t),q.init(e,t)}),Bo=D(`ZodKSUID`,(e,t)=>{Rn.init(e,t),q.init(e,t)}),Vo=D(`ZodIPv4`,(e,t)=>{Un.init(e,t),q.init(e,t)}),Ho=D(`ZodIPv6`,(e,t)=>{Kn.init(e,t),q.init(e,t)}),Uo=D(`ZodCIDRv4`,(e,t)=>{qn.init(e,t),q.init(e,t)}),Wo=D(`ZodCIDRv6`,(e,t)=>{Yn.init(e,t),q.init(e,t)}),Go=D(`ZodBase64`,(e,t)=>{Qn.init(e,t),q.init(e,t)}),Ko=D(`ZodBase64URL`,(e,t)=>{tr.init(e,t),q.init(e,t)}),qo=D(`ZodE164`,(e,t)=>{nr.init(e,t),q.init(e,t)}),Jo=D(`ZodJWT`,(e,t)=>{ir.init(e,t),q.init(e,t)}),Yo=D(`ZodNumber`,(e,t)=>{ar.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>za(e,t,n,r),e.isFinite=!0},Me({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=U(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=U(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=U(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>U(e).format??null},{gt(e,t){return this.check(Ki(e,t))},gte(e,t){return this.check(qi(e,t))},min(e,t){return this.check(qi(e,t))},lt(e,t){return this.check(Wi(e,t))},lte(e,t){return this.check(Gi(e,t))},max(e,t){return this.check(Gi(e,t))},int(e){return this.check(Zo(e))},safe(e){return this.check(Zo(e))},positive(e){return this.check(Ki(0,e))},nonnegative(e){return this.check(qi(0,e))},negative(e){return this.check(Wi(0,e))},nonpositive(e){return this.check(Gi(0,e))},multipleOf(e,t){return this.check(Ji(e,t))},step(e,t){return this.check(Ji(e,t))},finite(){return this}}));function J(e){return zi(Yo,e)}var Xo=D(`ZodNumberFormat`,(e,t)=>{or.init(e,t),Yo.init(e,t)});function Zo(e){return Bi(Xo,e)}var Qo=D(`ZodBoolean`,(e,t)=>{sr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ba(e,t,n,r)});function $o(e){return Vi(Qo,e)}var es=D(`ZodUnknown`,(e,t)=>{cr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ts(){return Hi(es)}var ns=D(`ZodNever`,(e,t)=>{lr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Va(e,t,n,r)});function rs(e){return Ui(ns,e)}var is=D(`ZodArray`,(e,t)=>{Co(),pr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ka(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Xi(e,t))},nonempty(e){return this.check(Xi(1,e))},max(e,t){return this.check(Yi(e,t))},length(e,t){return this.check(Zi(e,t))},unwrap(){return this.element}});function as(e,t){return la(is,e,t)}var os=D(`ZodObject`,(e,t)=>{Co(),yr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ja(e,t,n,r),Le(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Z(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(g(this._zod.def,{catchall:e}))},passthrough(){return this.clone(g(this._zod.def,{catchall:ts()}))},loose(){return this.clone(g(this._zod.def,{catchall:ts()}))},strict(){return this.clone(g(this._zod.def,{catchall:rs()}))},strip(){return this.clone(g(this._zod.def,{catchall:void 0}))},extend(e){return he(this,e)},safeExtend(e){return _e(this,e)},merge(e){return ve(this,e)},pick(e){return fe(this,e)},omit(e){return me(this,e)},partial(...e){return ye(ms,this,e[0])},exactPartial(...e){return ye(gs,this,e[0],`exactPartial`)},required(...e){return be(ws,this,e[0])}});function Y(e,t){return new os({type:`object`,shape:e??{},...b(t)})}var ss=D(`ZodUnion`,(e,t)=>{xr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ya(e,t,n,r),e.options=t.options});function X(e,t){return new ss({type:`union`,options:e,...b(t)})}var cs=D(`ZodIntersection`,(e,t)=>{Sr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xa(e,t,n,r)});function ls(e,t){return new cs({type:`intersection`,left:e,right:t})}var us=D(`ZodEnum`,(e,t)=>{Tr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ha(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new us({...t,checks:[],...b(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new us({...t,checks:[],...b(r),entries:i})}});function Z(e,t){return new us({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...b(t)})}var ds=D(`ZodLiteral`,(e,t)=>{Er.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ua(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Q(e,t){return new ds({type:`literal`,values:Array.isArray(e)?e:[e],...b(t)})}var fs=D(`ZodTransform`,(e,t)=>{Co(),Dr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ga(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new We(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ke(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(ke(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ps(e){return new fs({type:`transform`,transform:e})}var ms=D(`ZodOptional`,(e,t)=>{kr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hs(e){return new ms({type:`optional`,innerType:e})}var gs=D(`ZodExactOptional`,(e,t)=>{Ar.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _s(e){return new gs({type:`optional`,innerType:e})}var vs=D(`ZodNullable`,(e,t)=>{jr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Za(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ys(e){return new vs({type:`nullable`,innerType:e})}var bs=D(`ZodDefault`,(e,t)=>{Mr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>to(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xs(e,t){return new bs({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():oe(t)}})}var Ss=D(`ZodPrefault`,(e,t)=>{Pr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>no(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cs(e,t){return new Ss({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():oe(t)}})}var ws=D(`ZodNonOptional`,(e,t)=>{Fr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qa(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ts(e,t){return new ws({type:`nonoptional`,innerType:e,...b(t)})}var Es=D(`ZodCatch`,(e,t)=>{Rr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ro(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ds(e,t){return new Es({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:ze(t)})}var Os=D(`ZodPipe`,(e,t)=>{zr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>io(e,t,n,r),e.in=t.in,e.out=t.out});function ks(e,t){return new Os({type:`pipe`,in:e,out:t})}var As=D(`ZodReadonly`,(e,t)=>{Vr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ao(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function js(e){return new As({type:`readonly`,innerType:e})}var Ms=D(`ZodCustom`,(e,t)=>{Ur.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wa(e,t,n,r)});function Ns(e,t={}){return ua(Ms,e,t)}function Ps(e,t){return da(e,t)}var Fs={path:`/about-page/v1`,argsSchema:Y({}),resultSchema:Y({primaryMarkdown:K()})};function Is(e){return Y({foundationalDataHash:K(),innerResult:e})}var Ls=Y({sourceId:K(),intrasourceId:K(),primaryDestinationText:K(),secondaryDestinationText:K().nullable(),lineIds:J().array().readonly(),color:Y({lightModeHexCode:K(),darkModeHexCode:K()}).nullable(),isCancelled:$o(),movement:Y({index:J(),positionId:J().nullable(),timeType:Z([`scheduled-time`,`provided-live-time`,`interpolated-live-time`]),time:K(),formerTime:K().nullable()})}),Rs=Y({stopId:J(),desiredCount:J(),filterExpression:K(),skips:Y({sourceId:K(),intrasourceId:K()}).array()}),zs={path:`/departures/v0`,argsSchema:Y({instant:K(),direction:Z([`forwards`,`backwards`]),feeds:Rs.array()}),resultSchema:Is(Y({feeds:Y({departures:Ls.array()}).array(),invalidFilterTokens:K().array()}))},Bs=Y({latitude:J(),longitude:J()}),Vs=Y({lightModeHexCode:K(),darkModeHexCode:K()}),Hs=Y({id:J(),name:K(),urlPath:K(),canonicalLinesServingStop:J().array().readonly(),positions:Y({id:J(),name:K()}).array().readonly(),location:Bs.nullable(),defaultDepartureFeeds:Y({name:K(),desiredCount:J(),filterExpression:K()}).array().readonly(),departureFilters:Y({lines:J().array().readonly(),positions:J().array().readonly(),customGroups:Y({label:K(),items:Y({name:K(),labelWithinGroup:K(),filterExpression:K()}).array().readonly()}).array().readonly()})}),$=Y({stopId:J(),type:Z([`regular`,`always-express`])}),Us=X([Y({type:Q(`linear`),name:K().nullable(),color:Vs.nullable(),stops:$.array().readonly()}),Y({type:Q(`branch`),name:K().nullable(),color:Vs.nullable(),commonStops:$.array().readonly(),branchAStops:$.array().readonly(),branchBStops:$.array().readonly()}),Y({type:Q(`loop`),name:K().nullable(),color:Vs.nullable(),loopLeftStops:$.array().readonly(),loopRightStops:$.array().readonly(),mainStops:$.array().readonly()})]),Ws={linear:!0,branch:!0,loop:!0};function Gs(e){return e in Ws}var Ks=Y({entries:X([Us,Y({type:K().refine(e=>!Gs(e))})]).array().readonly(),fallbackStopList:J().array().readonly()}),qs=Y({id:J(),name:K(),urlPath:K(),color:Vs.nullable(),diagram:Ks}),Js=Y({stop:Z([`stop`,`station`]),line:Z([`line`,`route`]),service:Z([`service`,`trip`,`train`,`tram`,`bus`])}),Ys=Y({primaryMarkdown:K()}),Xs=Y({primaryMarkdown:K()}),Zs=Y({metadata:Y({hash:K(),fodaApiVersion:Q(`1`),serverVersion:K()}),stops:Hs.array().readonly(),lines:qs.array().readonly(),terminology:Js,formatTimezone:K(),landingPage:Ys,footer:Xs}),Qs={path:`/foundational-data/v1`,argsSchema:Y({hash:K().nullable()}),resultSchema:X([Y({result:Q(`outdated`),foundationalData:Zs}),Y({result:Q(`up-to-date`)})])},$s={path:`/service/v0`,argsSchema:Y({sourceId:K(),intrasourceId:K()}),resultSchema:Is(Y({service:Y({sourceId:K(),intrasourceId:K(),primaryDestinationText:K(),lineIds:J().array().readonly(),color:Y({lightModeHexCode:K(),darkModeHexCode:K()}).nullable(),isCancelled:$o(),movements:Y({stopId:J(),positionId:J().nullable(),arrivalTime:K().nullable(),formerArrivalTime:K().nullable(),departureTime:K().nullable(),formerDepartureTime:K().nullable()}).array().readonly()}).nullable()}))},ec={path:`/version-check/v1`,argsSchema:Y({frontendVersion:K(),corequeryPackageVersion:K()}),resultSchema:Y({isForceUpdateOfServiceWorkerRequired:$o()})},tc={path:`/versions/v1`,argsSchema:Y({}),resultSchema:Y({serverVersion:K(),frontendVersion:K(),corequeryPackageVersion:K(),foundationalDataHash:K(),version:K().meta({deprecated:!0})})};function nc(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(typeof e!=`object`)return e===t;if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!nc(e[n],t[n]))return!1;return!0}let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!nc(e[i],t[i]))return!1;return!0}Object.freeze({status:`aborted`});function rc(e,n){let r=ic(n);t(e,r)}function ic(t){let n=e(void 0);return nc(t,n.current)||(n.current=t),n.current}function ac(){return{callApi:oc}}async function oc(e,t,n={}){let{timeout:r,debugDelay:i,debugError:a}=n;if(i!=null&&await new Promise(e=>setTimeout(e,i)),a??!1)throw Error(`Simulated API error`);let o=await fetch(`/api${e.path}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t),signal:r==null?void 0:AbortSignal.timeout(r)});if(!o.ok){let t=await o.text();throw Error(`Error ${o.status} calling /api${e.path}: ${t}`)}return e.resultSchema.parse(await o.json())}export{ec as a,Zs as c,Fs as d,Z as f,ts as g,X as h,tc as i,Gs as l,Y as m,rc as n,$s as o,Q as p,nc as r,Qs as s,ac as t,zs as u};
55
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0])a(n);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function _a(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;_a(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var va=new Set([`type`,`properties`,`required`,`additionalProperties`]),ya=[`oneOf`,`anyOf`];function ba(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function xa(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!va.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??ba(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}u(n,r,e.length===1?e[0]:xa(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=ba(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function Sa(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of va)if(t in e)return;let n=t.filter(e=>ya.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=xa(t);else{let e=n[0],i=ya.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>xa([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,pa(e,r))}function Ca(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):pa(i,s),pa(i,a),t._zod.parent===o)for(let e in i)e!==`$ref`&&e!==`allOf`&&(e in a||delete i[e]);if(s.$ref&&n.def)for(let e in i)e!==`$ref`&&e!==`allOf`&&e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e!==`$ref`&&e!==`allOf`&&e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())_a(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])Sa(e)}}let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}pa(i,n.defId?n.schema:n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,u(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:Ta(t,`input`,e.processors),output:Ta(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function B(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return B(r.element,n);if(r.type===`set`)return B(r.valueType,n);if(r.type===`lazy`)return B(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`||r.type===`catch`)return B(r.innerType,n);if(r.type===`intersection`)return B(r.left,n)||B(r.right,n);if(r.type===`record`||r.type===`map`)return B(r.keyType,n)||B(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:B(r.in,n)||B(r.out,n);if(r.type===`object`){for(let e in r.shape)if(B(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(B(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(B(e,n))return!0;return!!(r.rest&&B(r.rest,n))}return!1}var wa=(e,t={})=>n=>{let r=ma({...n,processors:t});return z(e,r),ga(r,e),Ca(r,e)},Ta=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=ma({...i??{},target:a,io:t,processors:n});return z(e,o),ga(o,e),Ca(o,e)},V=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},H=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},Ea=(e,t)=>{V(e,`minimum`,t),H(e,`maximum`,t)},Da=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},Oa=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},ka=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},Aa=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},ja=(e,t)=>V(e,`minimum`,t.minimum),Ma=(e,t)=>H(e,`maximum`,t.maximum),Na=e=>(t,n)=>{Aa(t,n.format);let[r,i]=e[n.format];V(t,`minimum`,r),H(t,`maximum`,i)},Pa={greater_than:(e,t)=>V(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>H(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>Da(e,t.value),number_format:Na(ue),bigint_format:Na(de),min_length:ja,max_length:Ma,length_equals:(e,t)=>Ea(e,t.length),min_size:ja,max_size:Ma,size_equals:(e,t)=>Ea(e,t.size),string_format:(e,t)=>{Aa(e,t.format),t.pattern&&Oa(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>ka(e,t.mime)};function U(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Pa[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&V(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&V(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&H(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&H(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&Da(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&ka(t,i.mime);for(let e of i.patterns??[])Oa(t,e);return t}var Fa={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},Ia=new Map([[Zn,It],[$n,Lt]]),La=e=>Ia.get(e)??e,Ra=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=U(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Fa[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(La);e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},za=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=U(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):R(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},Ba=(e,t,n,r)=>{n.type=`boolean`},Va=(e,t,n,r)=>{n.not={}},Ha=(e,t,r,i)=>{let a=e._zod.def,o=n(a.entries);o.length===0?r.not={}:(o.every(e=>typeof e==`number`)&&(r.type=`number`),o.every(e=>typeof e==`string`)&&(r.type=`string`),r.enum=o)},Ua=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(R(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(R(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);if(a.length!==0){if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a}},Wa=(e,t,n,r)=>{R(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Ga=(e,t,n,r)=>{R(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},Ka=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=U(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=z(a.element,t,{...r,path:[...r.path,`items`]})};function qa(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?qa(t.out):t.type===`catch`?qa(t.innerType):e._zod.optin}var Ja=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&R(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)u(i.properties,e,z(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?qa(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=z(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Ya=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>z(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Xa=(e,t,n,r)=>{let i=e._zod.def,a=z(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=z(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},Za=(e,t,n,r)=>{let i=e._zod.def,a=z(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Qa=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$a=Symbol();function eo(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(R(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),$a):JSON.parse(o)}var to=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=eo(i.defaultValue,e,t,n,r);o!==$a&&(n.default=o)},no=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=eo(i.defaultValue,e,t,n,r);o!==$a&&(n._prefault=o)},ro=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{R(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},io=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;z(o,t,r);let s=t.seen.get(e);s.ref=o},ao=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},oo=(e,t,n,r)=>{let i=e._zod.def;z(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},so=new WeakSet([Object.prototype,Error.prototype]);function co(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var W=D(`ZodError`,(e,t)=>{Xe.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);so.has(n)||(so.add(n),co(n,`format`,e=>t=>$e(e,t)),co(n,`flatten`,e=>t=>Qe(e,t)),co(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,i,2)}),co(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,i,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),lo=tt(W),uo=nt(W),fo=rt(W),po=at(W),mo=dt(W),ho=ft(W),go=pt(W),_o=mt(W),vo=ht(W),yo=gt(W),bo=_t(W),xo=vt(W);function So(){k.localeError||A(si())}function Co(){k.memoizer||A({memoizer:ii()})}var G=D(`ZodType`,(e,t)=>(So(),M.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(g(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return y(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(Ns(e,t))},superRefine(e,t){return this.check(Ps(e,t))},overwrite(e){return this.check(L(e))},optional(){return hs(this)},exactOptional(){return _s(this)},nullable(){return ys(this)},nullish(){return hs(ys(this))},nonoptional(e){return Ts(this,e)},array(){return as(this)},or(e){return X([this,e])},and(e){return ls(this,e)},transform(e){return ks(this,ps(e))},default(e){return xs(this,e)},prefault(e){return Cs(this,e)},catch(e){return Ds(this,e)},pipe(e){return ks(this,e)},readonly(){return js(this)},describe(e){let t=this.clone();return I.add(t,{description:e}),t},meta(...e){if(e.length===0)return I.get(this);let t=this.clone();return I.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return je(this,`~standard`,{...yn(this),jsonSchema:{input:Ta(this,`input`),output:Ta(this,`output`)}})},set"~standard"(e){w(this,`~standard`,e)},parse:function e(t,n){return lo(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await uo(this,t,n,{callee:e})},safeParse(e,t){return fo(this,e,t)},async safeParseAsync(e,t){return po(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){w(this,`spa`,e)},validate(e,t){return ct(this,e,t)},validateAsync(e,t){return ut(this,e,t)},encode:function e(t,n){return mo(this,t,n,{callee:e})},decode:function e(t,n){return ho(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await go(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await _o(this,t,n,{callee:e})},safeEncode(e,t){return vo(this,e,t)},safeDecode(e,t){return yo(this,e,t)},async safeEncodeAsync(e,t){return bo(this,e,t)},async safeDecodeAsync(e,t){return xo(this,e,t)},toJSONSchema(e){return wa(this,{})(e)},get description(){return I.get(this)?.description},get _def(){return this._zod.def}}),wo=D(`_ZodString`,(e,t)=>{bn.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ra(e,t,n,r)},Me({format:e=>U(e).format??null,minLength:e=>U(e).minimum??null,maxLength:e=>U(e).maximum??null},{regex(...e){return this.check(Qi(...e))},includes(...e){return this.check(ta(...e))},startsWith(...e){return this.check(na(...e))},endsWith(...e){return this.check(ra(...e))},min(...e){return this.check(Xi(...e))},max(...e){return this.check(Yi(...e))},length(...e){return this.check(Zi(...e))},nonempty(...e){return this.check(Xi(1,...e))},lowercase(e){return this.check($i(e))},uppercase(e){return this.check(ea(e))},trim(){return this.check(aa())},normalize(...e){return this.check(ia(...e))},toLowerCase(){return this.check(oa())},toUpperCase(){return this.check(sa())},slugify(){return this.check(ca())}})),To=D(`ZodString`,(e,t)=>{bn.init(e,t),wo.init(e,t)},{email(e){return this.check(pi(Ao,e))},url(e){return this.check(yi(No,e))},jwt(e){return this.check(Pi(Jo,e))},emoji(e){return this.check(bi(Po,e))},guid(e){return this.check(mi(jo,e))},uuid(e){return this.check(hi(Mo,e))},uuidv4(e){return this.check(gi(Mo,e))},uuidv6(e){return this.check(_i(Mo,e))},uuidv7(e){return this.check(vi(Mo,e))},nanoid(e){return this.check(xi(Fo,e))},cuid(e){return this.check(Si(Io,e))},cuid2(e){return this.check(Ci(Lo,e))},ulid(e){return this.check(wi(Ro,e))},base64(e){return this.check(ji(Go,e))},base64url(e){return this.check(Mi(Ko,e))},xid(e){return this.check(Ti(zo,e))},ksuid(e){return this.check(Ei(Bo,e))},ipv4(e){return this.check(Di(Vo,e))},ipv6(e){return this.check(Oi(Ho,e))},cidrv4(e){return this.check(ki(Uo,e))},cidrv6(e){return this.check(Ai(Wo,e))},e164(e){return this.check(Ni(qo,e))},datetime(e){return this.check(Fi(Eo,e))},date(e){return this.check(Ii(Do,e))},time(e){return this.check(Li(Oo,e))},duration(e){return this.check(Ri(ko,e))}});function K(e){return fi(To,e)}var q=D(`ZodStringFormat`,(e,t)=>{N.init(e,t),wo.init(e,t)}),Eo=D(`ZodISODateTime`,(e,t)=>{zn.init(e,t),q.init(e,t)}),Do=D(`ZodISODate`,(e,t)=>{Bn.init(e,t),q.init(e,t)}),Oo=D(`ZodISOTime`,(e,t)=>{Vn.init(e,t),q.init(e,t)}),ko=D(`ZodISODuration`,(e,t)=>{Hn.init(e,t),q.init(e,t)}),Ao=D(`ZodEmail`,(e,t)=>{Cn.init(e,t),q.init(e,t)}),jo=D(`ZodGUID`,(e,t)=>{xn.init(e,t),q.init(e,t)}),Mo=D(`ZodUUID`,(e,t)=>{Sn.init(e,t),q.init(e,t)}),No=D(`ZodURL`,(e,t)=>{jn.init(e,t),q.init(e,t)}),Po=D(`ZodEmoji`,(e,t)=>{Mn.init(e,t),q.init(e,t)}),Fo=D(`ZodNanoID`,(e,t)=>{Nn.init(e,t),q.init(e,t)}),Io=D(`ZodCUID`,(e,t)=>{Pn.init(e,t),q.init(e,t)}),Lo=D(`ZodCUID2`,(e,t)=>{Fn.init(e,t),q.init(e,t)}),Ro=D(`ZodULID`,(e,t)=>{In.init(e,t),q.init(e,t)}),zo=D(`ZodXID`,(e,t)=>{Ln.init(e,t),q.init(e,t)}),Bo=D(`ZodKSUID`,(e,t)=>{Rn.init(e,t),q.init(e,t)}),Vo=D(`ZodIPv4`,(e,t)=>{Un.init(e,t),q.init(e,t)}),Ho=D(`ZodIPv6`,(e,t)=>{Kn.init(e,t),q.init(e,t)}),Uo=D(`ZodCIDRv4`,(e,t)=>{qn.init(e,t),q.init(e,t)}),Wo=D(`ZodCIDRv6`,(e,t)=>{Yn.init(e,t),q.init(e,t)}),Go=D(`ZodBase64`,(e,t)=>{Qn.init(e,t),q.init(e,t)}),Ko=D(`ZodBase64URL`,(e,t)=>{tr.init(e,t),q.init(e,t)}),qo=D(`ZodE164`,(e,t)=>{nr.init(e,t),q.init(e,t)}),Jo=D(`ZodJWT`,(e,t)=>{ir.init(e,t),q.init(e,t)}),Yo=D(`ZodNumber`,(e,t)=>{ar.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>za(e,t,n,r),e.isFinite=!0},Me({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=U(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=U(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=U(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>U(e).format??null},{gt(e,t){return this.check(Ki(e,t))},gte(e,t){return this.check(qi(e,t))},min(e,t){return this.check(qi(e,t))},lt(e,t){return this.check(Wi(e,t))},lte(e,t){return this.check(Gi(e,t))},max(e,t){return this.check(Gi(e,t))},int(e){return this.check(Zo(e))},safe(e){return this.check(Zo(e))},positive(e){return this.check(Ki(0,e))},nonnegative(e){return this.check(qi(0,e))},negative(e){return this.check(Wi(0,e))},nonpositive(e){return this.check(Gi(0,e))},multipleOf(e,t){return this.check(Ji(e,t))},step(e,t){return this.check(Ji(e,t))},finite(){return this}}));function J(e){return zi(Yo,e)}var Xo=D(`ZodNumberFormat`,(e,t)=>{or.init(e,t),Yo.init(e,t)});function Zo(e){return Bi(Xo,e)}var Qo=D(`ZodBoolean`,(e,t)=>{sr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ba(e,t,n,r)});function $o(e){return Vi(Qo,e)}var es=D(`ZodUnknown`,(e,t)=>{cr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ts(){return Hi(es)}var ns=D(`ZodNever`,(e,t)=>{lr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Va(e,t,n,r)});function rs(e){return Ui(ns,e)}var is=D(`ZodArray`,(e,t)=>{Co(),pr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ka(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Xi(e,t))},nonempty(e){return this.check(Xi(1,e))},max(e,t){return this.check(Yi(e,t))},length(e,t){return this.check(Zi(e,t))},unwrap(){return this.element}});function as(e,t){return la(is,e,t)}var os=D(`ZodObject`,(e,t)=>{Co(),yr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ja(e,t,n,r),Le(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return Z(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(g(this._zod.def,{catchall:e}))},passthrough(){return this.clone(g(this._zod.def,{catchall:ts()}))},loose(){return this.clone(g(this._zod.def,{catchall:ts()}))},strict(){return this.clone(g(this._zod.def,{catchall:rs()}))},strip(){return this.clone(g(this._zod.def,{catchall:void 0}))},extend(e){return he(this,e)},safeExtend(e){return _e(this,e)},merge(e){return ve(this,e)},pick(e){return fe(this,e)},omit(e){return me(this,e)},partial(...e){return ye(ms,this,e[0])},exactPartial(...e){return ye(gs,this,e[0],`exactPartial`)},required(...e){return be(ws,this,e[0])}});function Y(e,t){return new os({type:`object`,shape:e??{},...b(t)})}var ss=D(`ZodUnion`,(e,t)=>{xr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ya(e,t,n,r),e.options=t.options});function X(e,t){return new ss({type:`union`,options:e,...b(t)})}var cs=D(`ZodIntersection`,(e,t)=>{Sr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xa(e,t,n,r)});function ls(e,t){return new cs({type:`intersection`,left:e,right:t})}var us=D(`ZodEnum`,(e,t)=>{Tr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ha(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new us({...t,checks:[],...b(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new us({...t,checks:[],...b(r),entries:i})}});function Z(e,t){return new us({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...b(t)})}var ds=D(`ZodLiteral`,(e,t)=>{Er.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ua(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Q(e,t){return new ds({type:`literal`,values:Array.isArray(e)?e:[e],...b(t)})}var fs=D(`ZodTransform`,(e,t)=>{Co(),Dr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ga(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new We(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(ke(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(ke(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function ps(e){return new fs({type:`transform`,transform:e})}var ms=D(`ZodOptional`,(e,t)=>{kr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function hs(e){return new ms({type:`optional`,innerType:e})}var gs=D(`ZodExactOptional`,(e,t)=>{Ar.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>oo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _s(e){return new gs({type:`optional`,innerType:e})}var vs=D(`ZodNullable`,(e,t)=>{jr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Za(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ys(e){return new vs({type:`nullable`,innerType:e})}var bs=D(`ZodDefault`,(e,t)=>{Mr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>to(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function xs(e,t){return new bs({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():oe(t)}})}var Ss=D(`ZodPrefault`,(e,t)=>{Pr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>no(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cs(e,t){return new Ss({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():oe(t)}})}var ws=D(`ZodNonOptional`,(e,t)=>{Fr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qa(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ts(e,t){return new ws({type:`nonoptional`,innerType:e,...b(t)})}var Es=D(`ZodCatch`,(e,t)=>{Rr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ro(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Ds(e,t){return new Es({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:ze(t)})}var Os=D(`ZodPipe`,(e,t)=>{zr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>io(e,t,n,r),e.in=t.in,e.out=t.out});function ks(e,t){return new Os({type:`pipe`,in:e,out:t})}var As=D(`ZodReadonly`,(e,t)=>{Vr.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ao(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function js(e){return new As({type:`readonly`,innerType:e})}var Ms=D(`ZodCustom`,(e,t)=>{Ur.init(e,t),G.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wa(e,t,n,r)});function Ns(e,t={}){return ua(Ms,e,t)}function Ps(e,t){return da(e,t)}var Fs={path:`/about-page/v1`,argsSchema:Y({}),resultSchema:Y({primaryMarkdown:K()})};function Is(e){return Y({foundationalDataHash:K(),innerResult:e})}var Ls=Y({sourceId:K(),intrasourceId:K(),primaryDestinationText:K(),secondaryDestinationText:K().nullable(),lineIds:J().array().readonly(),color:Y({lightModeHexCode:K(),darkModeHexCode:K()}).nullable(),isCancelled:$o(),movement:Y({index:J(),positionId:J().nullable(),timeType:Z([`scheduled-time`,`provided-live-time`,`interpolated-live-time`]),time:K(),formerTime:K().nullable()})}),Rs=Y({stopId:J(),desiredCount:J(),filterExpression:K(),skips:Y({sourceId:K(),intrasourceId:K()}).array()}),zs={path:`/departures/v0`,argsSchema:Y({instant:K(),direction:Z([`forwards`,`backwards`]),feeds:Rs.array()}),resultSchema:Is(Y({feeds:Y({departures:Ls.array()}).array(),invalidFilterTokens:K().array()}))},Bs=Y({latitude:J(),longitude:J()}),Vs=Y({lightModeHexCode:K(),darkModeHexCode:K()}),Hs=Y({id:J(),name:K(),urlPath:K(),canonicalLinesServingStop:J().array().readonly(),positions:Y({id:J(),name:K()}).array().readonly(),location:Bs.nullable(),defaultDepartureFeeds:Y({name:K(),desiredCount:J(),filterExpression:K()}).array().readonly(),departureFilters:Y({lines:J().array().readonly(),positions:J().array().readonly(),customGroups:Y({label:K(),items:Y({name:K(),labelWithinGroup:K(),filterExpression:K()}).array().readonly()}).array().readonly()})}),$=Y({stopId:J(),type:Z([`regular`,`always-express`])}),Us=X([Y({type:Q(`linear`),name:K().nullable(),color:Vs.nullable(),stops:$.array().readonly()}),Y({type:Q(`branch`),name:K().nullable(),color:Vs.nullable(),commonStops:$.array().readonly(),branchAStops:$.array().readonly(),branchBStops:$.array().readonly()}),Y({type:Q(`loop`),name:K().nullable(),color:Vs.nullable(),loopLeftStops:$.array().readonly(),loopRightStops:$.array().readonly(),mainStops:$.array().readonly()})]),Ws={linear:!0,branch:!0,loop:!0};function Gs(e){return e in Ws}var Ks=Y({entries:X([Us,Y({type:K().refine(e=>!Gs(e))})]).array().readonly(),fallbackStopList:J().array().readonly()}),qs=Y({id:J(),name:K(),urlPath:K(),color:Vs.nullable(),diagram:Ks}),Js=Y({stop:Z([`stop`,`station`]),line:Z([`line`,`route`]),service:Z([`service`,`trip`,`train`,`tram`,`bus`]),stopPosition:Z([`platform`,`track`,`bay`,`wharf`,`wharf-and-side`,`stand`])}),Ys=Y({primaryMarkdown:K()}),Xs=Y({primaryMarkdown:K()}),Zs=Y({metadata:Y({hash:K(),fodaApiVersion:Q(`1`),serverVersion:K()}),stops:Hs.array().readonly(),lines:qs.array().readonly(),terminology:Js,formatTimezone:K(),landingPage:Ys,footer:Xs}),Qs={path:`/foundational-data/v1`,argsSchema:Y({hash:K().nullable()}),resultSchema:X([Y({result:Q(`outdated`),foundationalData:Zs}),Y({result:Q(`up-to-date`)})])},$s={path:`/service/v0`,argsSchema:Y({sourceId:K(),intrasourceId:K()}),resultSchema:Is(Y({service:Y({sourceId:K(),intrasourceId:K(),primaryDestinationText:K(),lineIds:J().array().readonly(),color:Y({lightModeHexCode:K(),darkModeHexCode:K()}).nullable(),isCancelled:$o(),movements:Y({stopId:J(),positionId:J().nullable(),arrivalTime:K().nullable(),formerArrivalTime:K().nullable(),departureTime:K().nullable(),formerDepartureTime:K().nullable()}).array().readonly()}).nullable()}))},ec={path:`/version-check/v1`,argsSchema:Y({frontendVersion:K(),corequeryPackageVersion:K()}),resultSchema:Y({isForceUpdateOfServiceWorkerRequired:$o()})},tc={path:`/versions/v1`,argsSchema:Y({}),resultSchema:Y({serverVersion:K(),frontendVersion:K(),corequeryPackageVersion:K(),foundationalDataHash:K(),version:K().meta({deprecated:!0})})};function nc(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;if(typeof e!=typeof t)return!1;if(typeof e!=`object`)return e===t;if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!nc(e[n],t[n]))return!1;return!0}let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i of n)if(!r.includes(i)||!nc(e[i],t[i]))return!1;return!0}Object.freeze({status:`aborted`});function rc(e,n){let r=ic(n);t(e,r)}function ic(t){let n=e(void 0);return nc(t,n.current)||(n.current=t),n.current}function ac(){return{callApi:oc}}async function oc(e,t,n={}){let{timeout:r,debugDelay:i,debugError:a}=n;if(i!=null&&await new Promise(e=>setTimeout(e,i)),a??!1)throw Error(`Simulated API error`);let o=await fetch(`/api${e.path}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t),signal:r==null?void 0:AbortSignal.timeout(r)});if(!o.ok){let t=await o.text();throw Error(`Error ${o.status} calling /api${e.path}: ${t}`)}return e.resultSchema.parse(await o.json())}export{ec as a,Zs as c,Fs as d,Z as f,ts as g,X as h,tc as i,Gs as l,Y as m,rc as n,$s as o,Q as p,nc as r,Qs as s,ac as t,zs as u};
@@ -1 +1 @@
1
- import{v as e}from"./use-nav-exemptions-Daz3EeSR.js";import{n as t,t as n}from"./use-api-_Y5vsFb-.js";import{n as r}from"./use-foundational-data-DyAlFXWG.js";function i(i,a,o={}){let{callApi:s}=n(),{foda:c,forceFodaUpdate:l}=r(),[u,d]=e(null),[f,p]=e(!0),[m,h]=e(null);return t(()=>{let e=!1;async function t(){try{p(!0),h(null);let t=await s(i,a,o);if(e)return;let n=c.hash;if(t.foundationalDataHash!==n&&(n=await l(),e))return;if(t.foundationalDataHash!==n)throw Error(`Foundational data hash still mismatches after forced update.`);d(t.innerResult)}catch(t){if(e)return;console.warn(t),h(t)}finally{e||p(!1)}}return t(),()=>{e=!0}},[i,a,o]),{data:u,loading:f,error:m}}export{i as t};
1
+ import{v as e}from"./use-nav-exemptions-Daz3EeSR.js";import{n as t,t as n}from"./use-api-DL13FmNZ.js";import{n as r}from"./use-foundational-data-DyAlFXWG.js";function i(i,a,o={}){let{callApi:s}=n(),{foda:c,forceFodaUpdate:l}=r(),[u,d]=e(null),[f,p]=e(!0),[m,h]=e(null);return t(()=>{let e=!1;async function t(){try{p(!0),h(null);let t=await s(i,a,o);if(e)return;let n=c.hash;if(t.foundationalDataHash!==n&&(n=await l(),e))return;if(t.foundationalDataHash!==n)throw Error(`Foundational data hash still mismatches after forced update.`);d(t.innerResult)}catch(t){if(e)return;console.warn(t),h(t)}finally{e||p(!1)}}return t(),()=>{e=!0}},[i,a,o]),{data:u,loading:f,error:m}}export{i as t};
@@ -1 +1 @@
1
- import{c as e,i as t,l as n,n as r,r as i}from"./use-nav-exemptions-Daz3EeSR.js";import{p as a}from"./index-ByA44-P7.js";import{n as o,t as s}from"./SimpleMobileHeaderContent-y6m4_5yJ.js";function c(c){return{mobileHeader:n(s,{title:c.title,backHref:c.back?.href??null}),desktopHeader:n(r,{children:n(i,{class:e(`mx-4 py-4 gap-8 border-b border-soft-border`,{"pt-8":c.back==null,"pt-6":c.back!=null}),children:[c.back!=null&&n(a,{text:c.back.text,href:c.back.href,icon:o,class:`self-start`,layout:`narrow-icon`}),n(t,{style:`megatitle`,children:c.title})]})})}}export{c as t};
1
+ import{c as e,i as t,l as n,n as r,r as i}from"./use-nav-exemptions-Daz3EeSR.js";import{m as a}from"./index-uA8YIkaf.js";import{n as o,t as s}from"./SimpleMobileHeaderContent-BZ-z0X3U.js";function c(c){return{mobileHeader:n(s,{title:c.title,backHref:c.back?.href??null}),desktopHeader:n(r,{children:n(i,{class:e(`mx-4 py-4 gap-8 border-b border-soft-border`,{"pt-8":c.back==null,"pt-6":c.back!=null}),children:[c.back!=null&&n(a,{text:c.back.text,href:c.back.href,icon:o,class:`self-start`,layout:`narrow-icon`}),n(t,{style:`megatitle`,children:c.title})]})})}}export{c as t};
@@ -15,13 +15,13 @@
15
15
  <link rel="mask-icon" href="/favicon.svg" color="#FFFFFF" />
16
16
  <meta name="theme-color" content="#242933" />
17
17
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
18
- <script type="module" crossorigin src="/assets/index-ByA44-P7.js"></script>
18
+ <script type="module" crossorigin src="/assets/index-uA8YIkaf.js"></script>
19
19
  <link rel="modulepreload" crossorigin href="/assets/use-nav-exemptions-Daz3EeSR.js">
20
- <link rel="modulepreload" crossorigin href="/assets/use-api-_Y5vsFb-.js">
20
+ <link rel="modulepreload" crossorigin href="/assets/use-api-DL13FmNZ.js">
21
21
  <link rel="modulepreload" crossorigin href="/assets/use-foundational-data-DyAlFXWG.js">
22
22
  <link rel="modulepreload" crossorigin href="/assets/scope-B-e4l8Dr.js">
23
23
  <link rel="modulepreload" crossorigin href="/assets/LinkText-Co4qc0dx.js">
24
- <link rel="stylesheet" crossorigin href="/assets/index-C46bcc5o.css">
24
+ <link rel="stylesheet" crossorigin href="/assets/index-Bku-5Rho.css">
25
25
  <link rel="manifest" href="/manifest.webmanifest"></head>
26
26
  <body>
27
27
  <script>
package/web/dist/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const o=s=>l(s,r),a={module:{uri:r},exports:u,require:o};e[r]=Promise.all(n.map(s=>a[s]||o(s))).then(s=>(i(...s),u))}}define(["./workbox-2fbc6a65"],function(s){"use strict";self.addEventListener("message",s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()}),s.precacheAndRoute([{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"mona-sans.woff2",revision:"b96cc834af467cf02885a067356abae7"},{url:"index.html",revision:"1c961cdf401eca087db1bcd26bde4ba7"},{url:"favicon.svg",revision:"570c2a249bbd511b386a843cd96545e7"},{url:"apple-touch-icon.png",revision:"d5d6ea39bc40ffd5b045b9593da0c890"},{url:"assets/workbox-window.prod.es5-Bd17z0YL.js",revision:null},{url:"assets/use-simple-headers-BGdX3p-e.js",revision:null},{url:"assets/use-nav-exemptions-Daz3EeSR.js",revision:null},{url:"assets/use-foundational-data-DyAlFXWG.js",revision:null},{url:"assets/use-foda-synced-query-BsS3nwV1.js",revision:null},{url:"assets/use-api-_Y5vsFb-.js",revision:null},{url:"assets/scope-B-e4l8Dr.js",revision:null},{url:"assets/linear-BWJmB0m_.js",revision:null},{url:"assets/index-C46bcc5o.css",revision:null},{url:"assets/index-ByA44-P7.js",revision:null},{url:"assets/ZenMode-DdoTtVJG.js",revision:null},{url:"assets/Strong-DYvq_eAK.js",revision:null},{url:"assets/Stop-DEsRmVC1.js",revision:null},{url:"assets/Status-sLRF_nKb.js",revision:null},{url:"assets/SimpleMobileHeaderContent-y6m4_5yJ.js",revision:null},{url:"assets/Settings-BgHb1nlk.js",revision:null},{url:"assets/Service-frX-LyRg.js",revision:null},{url:"assets/Placeholder-B5DNAGHP.js",revision:null},{url:"assets/Picker-D4ga8LYJ.js",revision:null},{url:"assets/Page-eZ-IZNxm.js",revision:null},{url:"assets/NotFoundPage-CoVT8xxG.js",revision:null},{url:"assets/NotFound-Dmj1p5xO.js",revision:null},{url:"assets/Nearby-CqDDKuYT.js",revision:null},{url:"assets/MingcuteAlertLine-DxgntDGK.js",revision:null},{url:"assets/Markdown-BY6JcM-Z.js",revision:null},{url:"assets/LinkText-Co4qc0dx.js",revision:null},{url:"assets/Line-Dxew3yXf.js",revision:null},{url:"assets/Home-DIEadcoR.js",revision:null},{url:"assets/ErrorMessage-Mp0VVnTj.js",revision:null},{url:"assets/Divider-C465PGQW.js",revision:null},{url:"assets/Debug-Cd_f8CKx.js",revision:null},{url:"assets/Alert-DSl3_gX3.js",revision:null},{url:"assets/AdminControls-D0pgA5wf.js",revision:null},{url:"assets/About-DJhKXgnn.js",revision:null},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"manifest.webmanifest",revision:"a39f5f893f233a6eed74e0ab828a668b"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/reset\/?$/]}))});
1
+ if(!self.define){let s,e={};const l=(l,n)=>(l=new URL(l+".js",n).href,e[l]||new Promise(e=>{if("document"in self){const s=document.createElement("script");s.src=l,s.onload=e,document.head.appendChild(s)}else s=l,importScripts(l),e()}).then(()=>{let s=e[l];if(!s)throw new Error(`Module ${l} didn’t register its module`);return s}));self.define=(n,i)=>{const r=s||("document"in self?document.currentScript.src:"")||location.href;if(e[r])return;let u={};const a=s=>l(s,r),o={module:{uri:r},exports:u,require:a};e[r]=Promise.all(n.map(s=>o[s]||a(s))).then(s=>(i(...s),u))}}define(["./workbox-2fbc6a65"],function(s){"use strict";self.addEventListener("message",s=>{s.data&&"SKIP_WAITING"===s.data.type&&self.skipWaiting()}),s.precacheAndRoute([{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"mona-sans.woff2",revision:"b96cc834af467cf02885a067356abae7"},{url:"index.html",revision:"fa0f1a147216153af26da14fc49a165a"},{url:"favicon.svg",revision:"570c2a249bbd511b386a843cd96545e7"},{url:"apple-touch-icon.png",revision:"d5d6ea39bc40ffd5b045b9593da0c890"},{url:"assets/workbox-window.prod.es5-Bd17z0YL.js",revision:null},{url:"assets/use-simple-headers-BE9SwcPx.js",revision:null},{url:"assets/use-nav-exemptions-Daz3EeSR.js",revision:null},{url:"assets/use-foundational-data-DyAlFXWG.js",revision:null},{url:"assets/use-foda-synced-query-Df-foxd8.js",revision:null},{url:"assets/use-api-DL13FmNZ.js",revision:null},{url:"assets/scope-B-e4l8Dr.js",revision:null},{url:"assets/linear-Ddr4Wd6S.js",revision:null},{url:"assets/index-uA8YIkaf.js",revision:null},{url:"assets/index-Bku-5Rho.css",revision:null},{url:"assets/ZenMode-BRnT2IgH.js",revision:null},{url:"assets/Strong-DYvq_eAK.js",revision:null},{url:"assets/Stop-C3WdbHTc.js",revision:null},{url:"assets/Status-CRAvAMxM.js",revision:null},{url:"assets/SimpleMobileHeaderContent-BZ-z0X3U.js",revision:null},{url:"assets/Settings-ZUDsiG47.js",revision:null},{url:"assets/Service-BNcdDmTR.js",revision:null},{url:"assets/Placeholder-B5DNAGHP.js",revision:null},{url:"assets/Picker-k_4eWvu2.js",revision:null},{url:"assets/Page-eZ-IZNxm.js",revision:null},{url:"assets/NotFoundPage-rabdgx0c.js",revision:null},{url:"assets/NotFound-5qV_DZRA.js",revision:null},{url:"assets/Nearby-CqDDKuYT.js",revision:null},{url:"assets/MingcuteAlertLine-DxgntDGK.js",revision:null},{url:"assets/Markdown-BY6JcM-Z.js",revision:null},{url:"assets/LinkText-Co4qc0dx.js",revision:null},{url:"assets/Line-DNbLEU4Y.js",revision:null},{url:"assets/Home-BZXUmeh8.js",revision:null},{url:"assets/ErrorMessage-Mp0VVnTj.js",revision:null},{url:"assets/Divider-C465PGQW.js",revision:null},{url:"assets/Debug-B9JffuQ7.js",revision:null},{url:"assets/Alert-CNaalIbn.js",revision:null},{url:"assets/AdminControls-CVGbS_5e.js",revision:null},{url:"assets/About-CuBfNcQd.js",revision:null},{url:"pwa-192x192.png",revision:"8b590313fc6296f57d609982dc21f302"},{url:"pwa-512x512.png",revision:"e5560dba9f85e2959637abbb546643cd"},{url:"pwa-maskable-192x192.png",revision:"f1e5f837a116221b26c9cb9447db5e92"},{url:"pwa-maskable-512x512.png",revision:"9e859d049e78f70ddb5872a3bce2622b"},{url:"manifest.webmanifest",revision:"a39f5f893f233a6eed74e0ab828a668b"}],{}),s.cleanupOutdatedCaches(),s.registerRoute(new s.NavigationRoute(s.createHandlerBoundToURL("index.html"),{denylist:[/^\/reset\/?$/]}))});
@@ -1 +0,0 @@
1
- import{c as e,l as t,o as n,s as r}from"./use-nav-exemptions-Daz3EeSR.js";import{c as i,i as a,u as o}from"./index-ByA44-P7.js";import{t as s}from"./MingcuteAlertLine-DxgntDGK.js";function c(e){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:t(`g`,{fill:`none`,fillRule:`evenodd`,children:[t(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),t(`path`,{fill:`currentColor`,d:`M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z`})]})})}function l(l){let u={info:i,error:o,warning:s,success:c}[l.type],d=l.icon===void 0?u:l.icon,f={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[l.type],p={info:[`[--color-fg:var(--color-accent-text)]`,`[--color-fg-strong:var(--color-accent-text)]`,`[--color-fg-weak:var(--color-accent-text)]`],error:[`[--color-fg:var(--color-error-text)]`,`[--color-fg-strong:var(--color-error-text)]`,`[--color-fg-weak:var(--color-error-text)]`],warning:[`[--color-fg:var(--color-warning-text)]`,`[--color-fg-strong:var(--color-warning-text)]`,`[--color-fg-weak:var(--color-warning-text)]`],success:[`[--color-fg:var(--color-success-text)]`,`[--color-fg-strong:var(--color-success-text)]`,`[--color-fg-weak:var(--color-success-text)]`]}[l.type];return t(r,{class:e(l.class,f,p,`px-4 py-4.5 rounded-sm gap-2 items-start`,{"grid-cols-[auto_1fr]":d!=null}),children:[d!=null&&t(a,{heightRem:n(`text-md`),children:t(d,{class:`text-fg text-icon-lg`})}),l.children]})}export{l as t};
@@ -1 +0,0 @@
1
- import{c as e,h as t,i as n,l as r,o as i,r as a,s as o,v as s}from"./use-nav-exemptions-Daz3EeSR.js";import{i as c}from"./use-api-_Y5vsFb-.js";import{n as l}from"./use-foundational-data-DyAlFXWG.js";import{_ as u,h as d,i as f,n as p,p as m,r as h,s as g,v as _,y as v}from"./index-ByA44-P7.js";import{t as y}from"./Placeholder-B5DNAGHP.js";import{t as b}from"./Page-eZ-IZNxm.js";import{t as x}from"./use-simple-headers-BGdX3p-e.js";import{t as S}from"./Divider-C465PGQW.js";import{t as C}from"./Alert-DSl3_gX3.js";function w(t){let i={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[t.type],a={info:`[--color-fg:var(--color-accent-text)]`,error:`[--color-fg:var(--color-error-text)]`,warning:`[--color-fg:var(--color-warning-text)]`,success:`[--color-fg:var(--color-success-text)]`}[t.type];return r(o,{class:e(t.class,i,a,`px-2 py-1.5 rounded-full`),children:r(n,{style:`small`,children:t.text})})}function T(t){return r(d,{class:e(t.class,`gap-x-2 gap-y-3`),wrap:!0,children:[r(n,{style:`strong`,children:t.header}),t.loading&&r(y,{class:`w-[20%] text-md`}),!t.loading&&t.pillContent!=null&&r(f,{heightRem:i(`text-md`),children:r(w,{type:t.pillContent.type,text:t.pillContent.text})})]})}function E(e){return r(T,{class:e.class,header:e.header,pillContent:D(e.currentValue,e.latestValue),loading:e.loading})}function D(e,t){return t==null?null:{text:e===t?`Up to date`:`Outdated`,type:e===t?`success`:`error`}}function O(e){return e.loading?r(o,{class:e.class,children:r(y,{class:`w-[40%] text-md`})}):e.value==null?null:r(n,{class:e.class,children:[e.prefix,`: `,e.value]})}function k(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function A(t){let{isUpdateAvailable:a,update:o}=g();return a?r(m,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:u,onClick:()=>void o()}):r(d,{class:e(t.class,`gap-2`),children:[r(f,{heightRem:i(`text-md`),children:r(_,{})}),r(n,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function j(e){let{isHotReloadingEnabled:t}=p();return r(t?M:N,{...e})}function M(t){return r(a,{class:e(t.class,`gap-6`),children:[r(T,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),r(n,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),r(P,{}),r(O,{prefix:`Latest version`,value:t.latestVersion?.slice(0,8)??null,loading:t.loading})]})}function N(t){let{frontendVersion:n}=v(),i=!t.loading&&t.latestVersion!=null&&t.latestVersion!==n;return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`App version`,currentValue:n,latestValue:t.latestVersion,loading:t.loading}),r(P,{}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading}),i&&r(A,{})]})}function P(){let{frontendVersion:e,versionsOnLastUpdate:t}=v();return r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(e)]}),r(a,{class:`gap-3`,children:[r(n,{style:`small-weak`,children:[`Server version: `,k(t.serverVersion)]}),r(n,{style:`small-weak`,children:[`CoreQuery version: `,t.corequeryPackageVersion]})]})]})}function F(t){let{foda:i}=l();return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`Foundational data`,currentValue:i.hash,latestValue:t.latestVersion,loading:t.loading}),r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(i.hash)]}),r(n,{style:`small-weak`,children:[`Server version: `,k(i.serverVersion)]})]}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading})]})}function I(t){return r(a,{class:e(t.class,`gap-6`),children:[r(n,{style:`strong`,children:`Server`}),t.error!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Server version`,value:k(t.serverVersion),loading:t.loading}),r(O,{prefix:`CoreQuery version`,value:t.corequeryPackageVersion,loading:t.loading})]})]})}function L(e){return e<2e3?`${e.toFixed(0)} bytes`:e<2e6?`${(e/1e3).toFixed(2)} KB`:e<2e9?`${(e/1e6).toFixed(2)} MB`:e<2e12?`${(e/1e9).toFixed(2)} GB`:`${(e/0xe8d4a51000).toFixed(2)} TB`}function R(){let[e,i]=s(null),[o,c]=s(!0),[l,u]=s(!1);t(()=>{async function e(){c(!0),u(!1);try{let e=await navigator.storage.estimate();i(e)}catch(e){console.warn(`An error occurred while retrieving storage metrics.`,e),u(!0)}finally{c(!1)}}e()},[]);let d=e?.usage==null?null:L(e.usage),f=e?.quota==null?null:L(e.quota);return r(a,{class:`gap-6`,children:[r(n,{style:`strong`,children:`On-device storage`}),l&&r(C,{type:`error`,children:r(n,{children:`An error occurred while retrieving storage metrics.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Storage used`,value:d,loading:o}),r(O,{prefix:`Storage quota`,value:f,loading:o})]})]})}function z(){let{data:e,loading:t,error:i}=h(c,{});return r(b,{...x({title:`Developer info`}),children:r(a,{class:`px-4 py-8 gap-8`,children:[i!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(j,{latestVersion:e?.frontendVersion??null,loading:t}),r(S,{}),r(F,{latestVersion:e?.foundationalDataHash??null,loading:t}),r(S,{}),r(I,{serverVersion:e?.serverVersion??null,corequeryPackageVersion:e?.corequeryPackageVersion??null,loading:t,error:i}),r(S,{}),r(R,{}),r(S,{})]})})}export{z as default};
@@ -1 +0,0 @@
1
- import{l as e}from"./use-nav-exemptions-Daz3EeSR.js";import{t}from"./NotFoundPage-CoVT8xxG.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
@@ -1 +0,0 @@
1
- import{h as e,i as t,l as n,r,v as i}from"./use-nav-exemptions-Daz3EeSR.js";import{i as a}from"./use-api-_Y5vsFb-.js";import{n as o}from"./use-foundational-data-DyAlFXWG.js";import{l as s,n as c,p as l,r as u,s as d,v as f,y as p}from"./index-ByA44-P7.js";import{t as m}from"./Page-eZ-IZNxm.js";function h(e){let t=u(a,{}),n=g(e===`frontend-version`,t),r=_(e===`foundational-data-version`,t);return t.loading||n||r}function g(t,n){let{isHotReloadingEnabled:r}=c(),{frontendVersion:i}=p(),{unregister:a}=d(),o=t&&!r&&!n.loading&&n.error==null&&n.data!=null&&n.data.frontendVersion!==i;return e(()=>{if(!o)return;async function e(){await a(),window.location.reload()}e()},[o,a]),o}function _(t,n){let{foda:r,forceFodaUpdate:a}=o(),[s,c]=i(!1),[l,u]=i(!1),d=t&&!n.loading&&n.error==null&&n.data!=null&&n.data.foundationalDataHash!==r.hash;return e(()=>{if(!d)return;async function e(){u(!0);try{await a()}catch{console.warn(`Foundational data is outdated, but force update failed.`)}finally{c(!0),u(!1)}}e()},[d,a]),d&&!s||l}function v({afterConfirming:e}){return h(e)?n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{xAlign:`center`,yAlign:`center`,children:n(f,{})})}):n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[n(t,{style:`title`,align:`center`,children:`Page not found`}),n(t,{align:`center`,children:`This page doesn't exist, at least not anymore!`}),n(l,{href:`/`,text:`Go home`,icon:s})]})})}export{v as t};
@@ -1,11 +0,0 @@
1
- import{C as e,_ as t,a as n,c as r,i,l as a,m as o,n as s,o as c,r as l,s as u}from"./use-nav-exemptions-Daz3EeSR.js";import{u as d}from"./use-api-_Y5vsFb-.js";import{n as f}from"./use-foundational-data-DyAlFXWG.js";import{a as p,h as m,i as h,m as g,o as _,p as v,t as y,v as b}from"./index-ByA44-P7.js";import{t as x}from"./Page-eZ-IZNxm.js";import{n as S,t as C}from"./SimpleMobileHeaderContent-y6m4_5yJ.js";import{t as w}from"./NotFoundPage-CoVT8xxG.js";import{t as T}from"./ErrorMessage-Mp0VVnTj.js";import{t as E}from"./use-foda-synced-query-BsS3nwV1.js";function D(e,t){return(e%t+t)%t}function O(e){return{hour:D(e-1,12)+1,half:e<12?`am`:`pm`}}function k(e){return{hideMobileHeaderWhenScrolledToTop:!0,mobileHeader:a(C,{title:e.title,backHref:e.back?.href??null}),agnosticHeader:a(u,{class:`not-desktop:bg-bg-navbar not-desktop:border-b not-desktop:border-soft-border`,children:a(s,{children:a(u,{class:`not-desktop:px-4 desktop:mx-4 desktop:border-b desktop:border-soft-border`,children:a(l,{class:r(`gap-8`,{"pt-4 pb-6 desktop:pt-6":e.back!=null,"py-6 desktop:pt-8":e.back==null,"desktop:pb-4":e.additionalContent==null}),children:[e.back!=null&&a(v,{text:e.back.text,href:e.back.href,icon:S,class:`self-start`,layout:`narrow-icon`}),a(l,{class:`gap-4`,children:[a(i,{style:`megatitle`,children:e.title}),e.additionalContent]})]})})})})}}function A(e){return a(`svg`,{class:r(e.class,`text-fg _dynamic-live-icon`),style:n(e.dynamicColor),xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,children:[a(`path`,{style:`
2
- fill: none;
3
- stroke: currentColor;
4
- stroke-width: 4;
5
- stroke-linecap: round;
6
- `,d:`M 4,4 A 16,16 0 0 1 20,20`,class:`outer`}),a(`path`,{style:`
7
- fill: none;
8
- stroke: currentColor;
9
- stroke-width: 4;
10
- stroke-linecap: round;
11
- `,d:`M 4,12 A 8,8 0 0 1 12,20`,class:`inner`})]})}function j(e){return a(m,{class:r(e.class,`relative gap-1`),children:[e.timeStrings.struckout!=null&&a(i,{style:`struckout-on-raised`,children:e.timeStrings.struckout}),a(i,{style:`strong`,dynamicColor:e.serviceColor,children:e.timeStrings.primary}),e.timeType!==`scheduled-time`&&a(A,{dynamicColor:e.serviceColor,class:`absolute -right-2.5 -top-1.75 text-icon-xs`})]})}function M(t){return a(m,{class:r(t.class,`gap-1`),children:[t.timeStrings.delay!=null&&a(e,{children:[a(N,{delay:t.timeStrings.delay}),a(i,{style:`small-narrow`,children:`•`})]}),t.timeStrings.schedule==null?a(p,{style:`small-narrow`,lineIds:t.lineIds}):a(i,{style:`small-narrow`,class:`shrink min-w-0`,oneLine:!0,children:[`Scheduled for `,t.timeStrings.schedule]})]})}function N(e){let t={green:`small-narrow-strong-success`,yellow:`small-narrow-strong-warning`,red:`small-narrow-strong-error`}[e.delay.color];return a(i,{style:t,children:e.delay.text})}var P=3.5;function F(e){let{currentMinute:n}=y(),{foda:o}=f(),s=t(()=>e.departure.getTimeStrings(n,o.formatTimezone),[e.departure,n,o.formatTimezone]);return a(l,{class:r(e.class,`h-14 min-w-0`),yAlign:`space-between`,children:[a(m,{xAlign:`space-between`,class:`gap-2 `,children:[a(m,{yAlign:`bottom`,class:`gap-1 shrink min-w-0`,children:[a(i,{style:`strong`,dynamicColor:e.departure.color,children:e.departure.primaryDestinationText}),e.departure.secondaryDestinationText!=null&&a(i,{style:`small-narrow`,class:`shrink min-w-0`,dynamicColor:e.departure.color,oneLine:!0,children:e.departure.secondaryDestinationText})]}),a(j,{timeType:e.departure.timeType,timeStrings:s,serviceColor:e.departure.color})]}),a(m,{xAlign:`space-between`,yAlign:`bottom`,children:[a(l,{class:`gap-3 min-w-0 shrink`,children:[a(i,{style:`small-narrow`,oneLine:!0,children:`The stopping pattern goes here`}),a(M,{timeStrings:s,lineIds:e.departure.lineIds})]}),a(l,{yAlign:`space-between`,class:`border-2 px-1.5 py-1 border-soft-border rounded-sm -mb-0.5 h-8.5`,children:[a(i,{style:`tiny-narrow`,align:`center`,children:`Platform`}),a(i,{style:`strong`,align:`center`,children:`X`})]})]})]})}function I(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9.343 6.343L15 12l-5.657 5.657`})})}var L=P+2;function R(e){return a(g,{class:r(e.class),href:e.departure.servicePageUrl,children:a(u,{class:`grid-cols-[1fr_auto] p-4 items-center pr-2 gap-2`,children:[a(F,{departure:e.departure}),a(I,{class:`text-icon-lg text-fg`})]})})}function z(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M11 20H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v4H4m12-7v2M8 4v2m12.121 9.879L18 18m0 0l-2.121 2.121M18 18l-2.121-2.121M18 18l2.121 2.121`})})}function ee(e){let{pluralServicesTerm:t}=_();return e.loading?a(B,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:a(b,{})}):e.hadError?a(B,{class:r(e.class,`gap-2`),queryCount:e.queryCount,centerContent:!0,children:a(T,{text:`An error occurred while retrieving departures`})}):e.departures.length===0?a(B,{class:e.class,queryCount:e.queryCount,centerContent:!0,children:a(T,{text:`No ${t} scheduled`,icon:z})}):a(B,{class:e.class,queryCount:e.queryCount,children:e.departures.map((t,n)=>a(u,{class:`relative`,children:[a(R,{departure:t}),n<e.queryCount-1&&a(`hr`,{class:`border-soft-border absolute bottom-0 left-0 right-0 mx-4`})]},V(t)))})}function B(e){let t=e.centerContent??!1;return a(l,{class:e.class,xAlign:t?`center`:`stretch`,yAlign:t?`center`:`top`,dynamicMinHeightRem:L*e.queryCount,children:e.children})}function V(e){return`${e.sourceId}/${e.intrasourceId}/${e.movementIndex}`}function H(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`m4 20l5-5m0 0l3.956 3.956a1 1 0 0 0 1.626-.314l2.255-5.261a1 1 0 0 1 .548-.535l3.207-1.283a1 1 0 0 0 .336-1.635l-6.856-6.856a1 1 0 0 0-1.635.336l-1.283 3.207a1 1 0 0 1-.535.548L5.358 9.418a1 1 0 0 0-.314 1.626z`})})}function U(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M9 20H4v-5m0 5l6.5-6.5M15 4h5v5m0-5l-6.5 6.5`})})}function W(e){return a(l,{class:r(e.class,`min-w-0`),children:[a(m,{xAlign:`space-between`,yAlign:`center`,class:`gap-2 not-desktop:pl-4 not-desktop:pr-2 not-desktop:pt-6 pb-2`,children:[a(i,{style:`subtitle`,class:`shrink min-w-0`,oneLine:!0,children:e.feed.title}),a(m,{class:`gap-2`,children:[a(v,{theme:`hover`,icon:H}),a(v,{theme:`hover`,icon:U})]})]}),a(ee,{class:`bg-bg-raised desktop:border not-desktop:border-y border-soft-border desktop:rounded-lg overflow-hidden box-content`,departures:e.departures,queryCount:e.feed.desiredCount,loading:e.loading,hadError:e.hadError})]})}function G(e,{includeSeconds:t=!1}={}){let n=O(e.hour),r=n.hour.toFixed(),i=e.minute.toFixed().padStart(2,`0`),a=n.half;return t?`${r}:${i}:${e.second.toFixed().padStart(2,`0`)}${a}`:`${r}:${i}${a}`}function K(e,{suppressAgo:t=!1}={}){let n=e.round({largestUnit:`day`,smallestUnit:`second`}),{days:r,hours:i,minutes:a,seconds:o}=n,s=[];r!==0&&s.push(r===1?`1 day`:`${r.toFixed()} days`),i!==0&&s.push(i===1?`1 hr`:`${i.toFixed()} hrs`),a!==0&&s.push(a===1?`1 min`:`${a.toFixed()} mins`),(o!==0||s.length===0)&&s.push(o===1?`1 sec`:`${o.toFixed()} secs`);let c=n.sign===-1&&!t;return s.join(`, `)+(c?` ago`:``)}function q(e,{includeYear:t=!1}={}){let n=e.toLocaleString(`en-US`,{weekday:`short`}),r=e.toLocaleString(`en-US`,{month:`short`});return`${n}, ${e.day.toFixed()} ${r}${t?` ${e.year.toFixed()}`:``}`}function J(e,t,{suppressEarlierToday:n=!1}={}){let r=e.toPlainTime(),i=e.toPlainDate(),a=t.toPlainTime(),o=t.toPlainDate(),s=G(r),c=o.until(i).days;return c===0?Temporal.PlainTime.compare(r,a)<=0&&!n?`${s} earlier today`:s:c===1?r.hour<=2?`${s} tonight`:`${s} tomorrow`:c===-1?`${s} yesterday`:c>1&&c<7?`${s} ${i.toLocaleString(`en-US`,{weekday:`long`})}`:c<-1&&c>=-7?`${s} last ${i.toLocaleString(`en-US`,{weekday:`long`})}`:`${s} (${q(i)})`}var Y=class e{primary;struckout;delay;schedule;constructor(e){this.primary=e.primary,this.struckout=e.struckout,this.delay=e.delay,this.schedule=e.schedule}static build(t,n,r){let{time:i,formerTime:a,timeType:o}=t,s=J(this._inFormatTimezone(i,r),this._inFormatTimezone(n,r));if(o===`scheduled-time`||a==null)return new e({primary:s,struckout:null,delay:null,schedule:null});let c=n.until(i),l=this._getDelay(a.until(i));if(c.total({unit:`minutes`})>60)return new e({primary:s,struckout:null,delay:l,schedule:null});let u=n.until(a),d=this._formatDurationWithNow(c),f=this._formatDurationWithNow(u);return new e({primary:d,struckout:d===f?null:f,delay:l,schedule:s})}static _getDelay(e){let t=e.total({unit:`minutes`}),n=K(e,{suppressAgo:!0});return t<0?{text:`${n} early`,color:`green`}:t===0?{text:`On time`,color:`green`}:{text:`${n} late`,color:this._getDelayColor(t)}}static _getDelayColor(e){return e<3?`green`:e<15?`yellow`:`red`}static _formatDurationWithNow(e){return e.sign>=0&&e.total({unit:`minutes`})<1?`Now`:K(e)}static _inFormatTimezone(e,t){return e.toZonedDateTimeISO(t).toPlainDateTime()}},X=class e{sourceId;intrasourceId;lineIds;primaryDestinationText;secondaryDestinationText;color;timeType;time;formerTime;movementIndex;constructor(e){this.sourceId=e.sourceId,this.intrasourceId=e.intrasourceId,this.lineIds=e.lineIds,this.primaryDestinationText=e.primaryDestinationText,this.secondaryDestinationText=e.secondaryDestinationText,this.color=e.color,this.timeType=e.timeType,this.time=e.time,this.formerTime=e.formerTime,this.movementIndex=e.movementIndex}get servicePageUrl(){return`/service/${encodeURIComponent(this.sourceId)}/${encodeURIComponent(this.intrasourceId)}?from=${encodeURIComponent(this.movementIndex.toString())}`}getTimeStrings(e,t){return Y.build(this,e,t)}static wrap(t){return new e({sourceId:t.sourceId,intrasourceId:t.intrasourceId,lineIds:t.lineIds,primaryDestinationText:t.primaryDestinationText,secondaryDestinationText:t.secondaryDestinationText,color:t.color,timeType:t.movement.timeType,time:Temporal.Instant.from(t.movement.time),formerTime:t.movement.formerTime==null?null:Temporal.Instant.from(t.movement.formerTime),movementIndex:t.movement.index})}static wrapAll(t){return t?.map(t=>e.wrap(t))??[]}};function Z(e){let{data:n,loading:i,error:o}=E(d,{instant:e.instant.toString(),direction:`forwards`,feeds:e.feeds.map(e=>({...e,skips:[]}))}),s=t(()=>e.feeds.map((e,t)=>({feed:e,departures:X.wrapAll(n?.feeds[t]?.departures)})),[e.feeds,n]);return a(u,{class:r(e.class,`desktop:grid-cols-[1fr_1fr] desktop:gap-6 desktop:px-4 desktop:py-8`),children:s.map((e,t)=>a(W,{feed:e.feed,departures:e.departures,loading:i,hadError:o!=null,class:`not-desktop:last:-mb-px`},t))})}function Q(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M17.657 9.343L12 15L6.343 9.343`})})}function $(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M12 7v5l3 3m6-3a9 9 0 1 1-18 0a9 9 0 0 1 18 0`})})}function te(e){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:a(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M19.5 4h-15a.5.5 0 0 0-.5.5v2.086a1 1 0 0 0 .293.707L10 13v5.691a.5.5 0 0 0 .276.447L14 21v-8l5.707-5.707A1 1 0 0 0 20 6.586V4.5a.5.5 0 0 0-.5-.5Z`})})}function ne(e){return a(u,{class:`desktop:pt-6 desktop:px-4`,children:a(u,{class:r(e.class,`grid-cols-[1fr_1fr] desktop:max-w-150 bg-bg-raised divide-x divide-soft-border desktop:border not-desktop:border-b border-soft-border desktop:rounded-lg overflow-hidden`),children:[a(g,{children:a(m,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[a(m,{yAlign:`center`,class:`gap-2`,children:[a(h,{heightRem:c(`text-md`),children:a($,{class:`text-icon-lg text-fg`})}),a(i,{children:`Now`})]}),a(h,{heightRem:c(`text-md`),children:a(Q,{class:`text-icon-lg text-fg`})})]})}),a(g,{children:a(m,{xAlign:`space-between`,yAlign:`center`,class:`p-4`,children:[a(m,{yAlign:`center`,class:`gap-2`,children:[a(h,{heightRem:c(`text-md`),children:a(te,{class:`text-icon-lg text-fg`})}),a(i,{children:`All trains`})]}),a(h,{heightRem:c(`text-md`),children:a(Q,{class:`text-icon-lg text-fg`})})]})})]})})}function re(){let{params:{id:e}}=o(),{foda:n}=f(),r=t(()=>n.stops.getByUrlPath(e??``),[n.stops,e]);return r==null?a(w,{afterConfirming:`foundational-data-version`}):a(ie,{stop:r},r.id)}function ie(e){let{currentMinute:t}=y(),n=e.stop.defaultDepartureFeeds.map(t=>({title:t.name,stopId:e.stop.id,desiredCount:t.desiredCount,filterExpression:`${t.filterExpression} !arr !sdo`.trim()}));return a(x,{...k({title:e.stop.name,back:{href:`/`,text:`Home`},additionalContent:a(p,{lineIds:e.stop.canonicalLinesServingStop,withLinks:!0})}),children:a(l,{children:[a(ne,{}),a(Z,{feeds:n,instant:t})]})})}export{re as default};
@@ -1,2 +0,0 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-divide-x-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-duration:initial}}}@layer theme{:root,:host{--default-font-family:"Mona Sans", system-ui, sans-serif;--spacing:.25rem;--text-xs:.6rem;--text-sm:.75rem;--text-md:.9rem;--text-mdlg:1rem;--text-lg:1.1rem;--text-xl:1.25rem;--text-2xl:1.75rem;--text-icon-xs:.7rem;--text-icon-md:1rem;--text-icon-lg:1.25rem;--text-icon-xl:1.5rem;--font-weight-normal:400;--font-weight-bold:700;--radius-sm:.25rem;--radius-lg:.75rem;--color-bg:#e9edf3;--color-bg-raised:#f5f6fa;--color-bg-navbar:#fff;--color-fg:#000714cc;--color-fg-strong:#000;--color-fg-weak:#000e2999;--color-fg-weak-on-raised:#626a7d;--color-accent:#1773cf;--color-accent-hover:#1a80e6;--color-accent-active:#1466b8;--color-accent-text:#06c;--color-soft-accent:#1773cf26;--color-on-accent:#fff;--color-soft:#001e5a1f;--color-soft-hover:#001f5e14;--color-soft-active:#001d5629;--color-soft-border:#c2c9d6;--color-soft-border-disabled:#d1d6e0;--color-placeholder:#0018474d;--color-error:#a11212;--color-error-hover:#b81414;--color-error-active:#8a0f0f;--color-error-text:#b30000;--color-soft-error:#b3000026;--color-on-error:#fff;--color-warning:#b88114;--color-warning-hover:#cf9117;--color-warning-active:#a17112;--color-warning-text:#b37700;--color-soft-warning:#e6990033;--color-on-warning:#fff;--color-success:#1f7a2e;--color-success-hover:#248f36;--color-success-active:#196626;--color-success-text:#1f7a2e;--color-soft-success:#00991926;--color-on-success:#fff;--animate-placeholder-pulse:placeholder-pulse 1s ease-in-out infinite}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-feature-settings:normal;font-variation-settings:normal;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}svg._loading-spinner{animation:1s ease-out infinite loading-spinner-flip}._loading-spinner>circle:nth-child(2){transform-origin:25% 25%;animation:1s linear infinite loading-spinner-pulse}._loading-spinner>circle:nth-child(3){transform-origin:75% 25%;animation:1s linear .1s infinite loading-spinner-pulse}._loading-spinner>circle:nth-child(4){transform-origin:75% 75%;animation:1s linear .2s infinite loading-spinner-pulse}._loading-spinner>circle:nth-child(5){transform-origin:25% 75%;animation:1s linear .3s infinite loading-spinner-pulse}@keyframes loading-spinner-pulse{0%{transform:scale(1)}10%{transform:scale(2)}30%{transform:scale(1)}}@keyframes loading-spinner-flip{0%{transform:rotate(0)}60%{transform:rotate(0)}to{transform:rotate(180deg)}}._dynamic-live-icon>:first-child{stroke-opacity:0;animation:2s linear .25s infinite dynamic-live-icon-pulse}._dynamic-live-icon>:nth-child(2){stroke-opacity:0;animation:2s linear infinite dynamic-live-icon-pulse}@keyframes dynamic-live-icon-pulse{0%{stroke-opacity:0}20%{stroke-opacity:1}40%{stroke-opacity:0}to{stroke-opacity:0}}*{flex-shrink:0}}@layer components;@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.-top-1\.75{top:calc(var(--spacing) * -1.75)}.top-0{top:0}.top-1{top:var(--spacing)}.top-\[50\%\]{top:50%}.-right-2\.5{right:calc(var(--spacing) * -2.5)}.right-0{right:0}.right-3{right:calc(var(--spacing) * 3)}.bottom-0{bottom:0}.left-0{left:0}.left-4{left:calc(var(--spacing) * 4)}.z-0{z-index:0}.z-1{z-index:1}.col-1{grid-column:1}.col-2{grid-column:2}.col-3{grid-column:3}.col-start-2{grid-column-start:2}.row-1{grid-row:1}.row-2{grid-row:2}.row-span-full{grid-row:1/-1}.container{width:100%}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}.mx-4{margin-inline:calc(var(--spacing) * 4)}.-my-\[0\.13em\]{margin-block:-.13em}.mt-8{margin-top:calc(var(--spacing) * 8)}.mt-12{margin-top:calc(var(--spacing) * 12)}.mt-\[-0\.38em\]{margin-top:-.38em}.-mb-0\.5{margin-bottom:calc(var(--spacing) * -.5)}.mb-\[-0\.38em\]{margin-bottom:-.38em}.-ml-4{margin-left:calc(var(--spacing) * -4)}.box-content{box-sizing:content-box}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.h-2{height:calc(var(--spacing) * 2)}.h-3{height:calc(var(--spacing) * 3)}.h-8{height:calc(var(--spacing) * 8)}.h-8\.5{height:calc(var(--spacing) * 8.5)}.h-10{height:calc(var(--spacing) * 10)}.h-12{height:calc(var(--spacing) * 12)}.h-14{height:calc(var(--spacing) * 14)}.h-18{height:calc(var(--spacing) * 18)}.h-24{height:calc(var(--spacing) * 24)}.h-32{height:calc(var(--spacing) * 32)}.h-\[1em\]{height:1em}.h-full{height:100%}.h-svh{height:100svh}.max-h-\[calc\(100vh-12rem\)\]{max-height:calc(100vh - 12rem)}.min-h-8{min-height:calc(var(--spacing) * 8)}.min-h-10{min-height:calc(var(--spacing) * 10)}.min-h-12{min-height:calc(var(--spacing) * 12)}.min-h-svh{min-height:100svh}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-12{width:calc(var(--spacing) * 12)}.w-24{width:calc(var(--spacing) * 24)}.w-\[1em\]{width:1em}.w-\[20\%\]{width:20%}.w-\[30\%\]{width:30%}.w-\[40\%\]{width:40%}.w-\[50\%\]{width:50%}.w-\[60\%\]{width:60%}.w-\[80\%\]{width:80%}.w-full{width:100%}.w-svw{width:100svw}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-8{min-width:calc(var(--spacing) * 8)}.min-w-min{min-width:min-content}.shrink{flex-shrink:1}.grow{flex-grow:1}.-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.translate-y-\[-50\%\]{--tw-translate-y:-50%;translate:var(--tw-translate-x) var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-placeholder-pulse{animation:var(--animate-placeholder-pulse)}.resize{resize:both}.list-inside{list-style-position:inside}.list-disc{list-style-type:disc}.grid-cols-\[0px_1fr_0px\]{grid-template-columns:0 1fr 0}.grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.grid-cols-\[1fr_auto\]{grid-template-columns:1fr auto}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.grid-cols-\[auto_auto_auto\]{grid-template-columns:auto auto auto}.grid-cols-\[repeat\(auto-fit\,minmax\(0\,1fr\)\)\]{grid-template-columns:repeat(auto-fit,minmax(0,1fr))}.grid-rows-\[auto_auto\]{grid-template-rows:auto auto}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-start{justify-content:flex-start}.gap-1{gap:var(--spacing)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}.gap-4{gap:calc(var(--spacing) * 4)}.gap-6{gap:calc(var(--spacing) * 6)}.gap-8{gap:calc(var(--spacing) * 8)}.gap-12{gap:calc(var(--spacing) * 12)}.gap-16{gap:calc(var(--spacing) * 16)}.gap-x-2{column-gap:calc(var(--spacing) * 2)}.gap-x-4{column-gap:calc(var(--spacing) * 4)}.gap-y-3{row-gap:calc(var(--spacing) * 3)}.gap-y-8{row-gap:calc(var(--spacing) * 8)}:where(.divide-x>:not(:last-child)){--tw-divide-x-reverse:0;border-inline-style:var(--tw-border-style);border-inline-start-width:calc(1px * var(--tw-divide-x-reverse));border-inline-end-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}:where(.divide-soft-border>:not(:last-child)){border-color:var(--color-soft-border)}.self-center{align-self:center}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-scroll{overflow-y:scroll}.rounded-full{border-radius:2147483647px}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-2{border-style:var(--tw-border-style);border-width:2px}.border-y-2{border-block-style:var(--tw-border-style);border-block-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.border-accent{border-color:var(--color-accent)}.border-soft-border{border-color:var(--color-soft-border)}.border-y-transparent{border-block-color:#0000}.border-b-accent{border-bottom-color:var(--color-accent)}.border-b-soft-border{border-bottom-color:var(--color-soft-border)}.bg-accent{background-color:var(--color-accent)}.bg-bg{background-color:var(--color-bg)}.bg-bg-navbar{background-color:var(--color-bg-navbar)}.bg-bg-raised{background-color:var(--color-bg-raised)}.bg-error-text{background-color:var(--color-error-text)}.bg-placeholder{background-color:var(--color-placeholder)}.bg-soft-accent{background-color:var(--color-soft-accent)}.bg-soft-error{background-color:var(--color-soft-error)}.bg-soft-success{background-color:var(--color-soft-success)}.bg-soft-warning{background-color:var(--color-soft-warning)}.bg-success-text{background-color:var(--color-success-text)}.bg-transparent{background-color:#0000}.bg-warning-text{background-color:var(--color-warning-text)}.p-4{padding:calc(var(--spacing) * 4)}.px-1\.5{padding-inline:calc(var(--spacing) * 1.5)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-3{padding-inline:calc(var(--spacing) * 3)}.px-4{padding-inline:calc(var(--spacing) * 4)}.px-6{padding-inline:calc(var(--spacing) * 6)}.py-1{padding-block:var(--spacing)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-2{padding-block:calc(var(--spacing) * 2)}.py-3{padding-block:calc(var(--spacing) * 3)}.py-4{padding-block:calc(var(--spacing) * 4)}.py-4\.5{padding-block:calc(var(--spacing) * 4.5)}.py-6{padding-block:calc(var(--spacing) * 6)}.py-8{padding-block:calc(var(--spacing) * 8)}.pt-4{padding-top:calc(var(--spacing) * 4)}.pt-6{padding-top:calc(var(--spacing) * 6)}.pt-8{padding-top:calc(var(--spacing) * 8)}.pt-14{padding-top:calc(var(--spacing) * 14)}.pr-2{padding-right:calc(var(--spacing) * 2)}.pr-3{padding-right:calc(var(--spacing) * 3)}.pr-4{padding-right:calc(var(--spacing) * 4)}.pb-1\.5{padding-bottom:calc(var(--spacing) * 1.5)}.pb-2{padding-bottom:calc(var(--spacing) * 2)}.pb-6{padding-bottom:calc(var(--spacing) * 6)}.pl-2{padding-left:calc(var(--spacing) * 2)}.pl-12{padding-left:calc(var(--spacing) * 12)}.text-center{text-align:center}.text-justify{text-align:justify}.text-left{text-align:left}.text-right{text-align:right}.text-2xl{font-size:var(--text-2xl)}.text-icon-lg{font-size:var(--text-icon-lg)}.text-icon-md{font-size:var(--text-icon-md)}.text-icon-xl{font-size:var(--text-icon-xl)}.text-icon-xs{font-size:var(--text-icon-xs)}.text-lg{font-size:var(--text-lg)}.text-md{font-size:var(--text-md)}.text-mdlg{font-size:var(--text-mdlg)}.text-sm{font-size:var(--text-sm)}.text-xl{font-size:var(--text-xl)}.text-xs{font-size:var(--text-xs)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.text-accent-text{color:var(--color-accent-text)}.text-error-text{color:var(--color-error-text)}.text-fg{color:var(--color-fg)}.text-fg-strong{color:var(--color-fg-strong)}.text-fg-weak{color:var(--color-fg-weak)}.text-fg-weak-on-raised{color:var(--color-fg-weak-on-raised)}.text-success-text{color:var(--color-success-text)}.text-warning-text{color:var(--color-warning-text)}.italic{font-style:italic}.font-stretch-semi-condensed{font-stretch:87.5%}.line-through{text-decoration-line:line-through}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-97{opacity:.97}.transition-\[opacity\,visibility\,translate\]{transition-property:opacity,visibility,translate;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.transition-\[opacity\,visibility\]{transition-property:opacity,visibility;transition-timing-function:var(--tw-ease,ease);transition-duration:var(--tw-duration,0s)}.duration-100{--tw-duration:.1s;transition-duration:.1s}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;user-select:none}.\[--color-fg-strong\:var\(--color-accent-text\)\]{--color-fg-strong:var(--color-accent-text)}.\[--color-fg-strong\:var\(--color-error-text\)\]{--color-fg-strong:var(--color-error-text)}.\[--color-fg-strong\:var\(--color-on-accent\)\]{--color-fg-strong:var(--color-on-accent)}.\[--color-fg-strong\:var\(--color-success-text\)\]{--color-fg-strong:var(--color-success-text)}.\[--color-fg-strong\:var\(--color-warning-text\)\]{--color-fg-strong:var(--color-warning-text)}.\[--color-fg-weak\:var\(--color-accent-text\)\]{--color-fg-weak:var(--color-accent-text)}.\[--color-fg-weak\:var\(--color-error-text\)\]{--color-fg-weak:var(--color-error-text)}.\[--color-fg-weak\:var\(--color-on-accent\)\]{--color-fg-weak:var(--color-on-accent)}.\[--color-fg-weak\:var\(--color-success-text\)\]{--color-fg-weak:var(--color-success-text)}.\[--color-fg-weak\:var\(--color-warning-text\)\]{--color-fg-weak:var(--color-warning-text)}.\[--color-fg\:var\(--color-accent-text\)\]{--color-fg:var(--color-accent-text)}.\[--color-fg\:var\(--color-error-text\)\]{--color-fg:var(--color-error-text)}.\[--color-fg\:var\(--color-on-accent\)\]{--color-fg:var(--color-on-accent)}.\[--color-fg\:var\(--color-success-text\)\]{--color-fg:var(--color-success-text)}.\[--color-fg\:var\(--color-warning-text\)\]{--color-fg:var(--color-warning-text)}.not-disabled\:cursor-pointer:not(:disabled){cursor:pointer}.not-disabled\:\[--color-fg-strong\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-strong:var(--color-on-accent)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-error\)\]:not(:disabled){--color-fg-strong:var(--color-on-error)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-success\)\]:not(:disabled){--color-fg-strong:var(--color-on-success)}.not-disabled\:\[--color-fg-strong\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-strong:var(--color-on-warning)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-accent\)\]:not(:disabled){--color-fg-weak:var(--color-on-accent)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-error\)\]:not(:disabled){--color-fg-weak:var(--color-on-error)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-success\)\]:not(:disabled){--color-fg-weak:var(--color-on-success)}.not-disabled\:\[--color-fg-weak\:var\(--color-on-warning\)\]:not(:disabled){--color-fg-weak:var(--color-on-warning)}.not-disabled\:\[--color-fg\:var\(--color-on-accent\)\]:not(:disabled){--color-fg:var(--color-on-accent)}.not-disabled\:\[--color-fg\:var\(--color-on-error\)\]:not(:disabled){--color-fg:var(--color-on-error)}.not-disabled\:\[--color-fg\:var\(--color-on-success\)\]:not(:disabled){--color-fg:var(--color-on-success)}.not-disabled\:\[--color-fg\:var\(--color-on-warning\)\]:not(:disabled){--color-fg:var(--color-on-warning)}@media not all and (width>=48rem){.not-desktop\:bottom-0{bottom:0}.not-desktop\:row-1{grid-row:1}.not-desktop\:hidden{display:none}.not-desktop\:translate-y-4{--tw-translate-y:calc(var(--spacing) * 4);translate:var(--tw-translate-x) var(--tw-translate-y)}.not-desktop\:grid-rows-\[1fr_auto\]{grid-template-rows:1fr auto}.not-desktop\:border-y{border-block-style:var(--tw-border-style);border-block-width:1px}.not-desktop\:border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.not-desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.not-desktop\:border-soft-border{border-color:var(--color-soft-border)}.not-desktop\:bg-bg-navbar{background-color:var(--color-bg-navbar)}.not-desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.not-desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.not-desktop\:pr-2{padding-right:calc(var(--spacing) * 2)}.not-desktop\:pb-18{padding-bottom:calc(var(--spacing) * 18)}.not-desktop\:pl-4{padding-left:calc(var(--spacing) * 4)}}.group-not-disabled\:border-soft-border:is(:where(.group):not(:disabled) *){border-color:var(--color-soft-border)}.group-not-disabled\:border-transparent:is(:where(.group):not(:disabled) *){border-color:#0000}.group-not-disabled\:bg-accent:is(:where(.group):not(:disabled) *){background-color:var(--color-accent)}.group-not-disabled\:bg-error:is(:where(.group):not(:disabled) *){background-color:var(--color-error)}.group-not-disabled\:bg-soft:is(:where(.group):not(:disabled) *){background-color:var(--color-soft)}.group-not-disabled\:bg-success:is(:where(.group):not(:disabled) *){background-color:var(--color-success)}.group-not-disabled\:bg-transparent:is(:where(.group):not(:disabled) *){background-color:#0000}.group-not-disabled\:bg-warning:is(:where(.group):not(:disabled) *){background-color:var(--color-warning)}@media (hover:hover){.group-hover\:bg-accent-hover:is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-hover\:bg-soft:is(:where(.group):hover *){background-color:var(--color-soft)}.group-hover\:bg-soft-hover:is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-accent-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-accent-hover)}.group-not-disabled\:group-hover\:bg-error-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-error-hover)}.group-not-disabled\:group-hover\:bg-soft-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-soft-hover)}.group-not-disabled\:group-hover\:bg-success-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-success-hover)}.group-not-disabled\:group-hover\:bg-warning-hover:is(:where(.group):not(:disabled) *):is(:where(.group):hover *){background-color:var(--color-warning-hover)}}.group-active\:bg-accent-active:is(:where(.group):active *){background-color:var(--color-accent-active)}.group-active\:bg-soft-active:is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-accent-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-accent-active)}.group-not-disabled\:group-active\:bg-error-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-error-active)}.group-not-disabled\:group-active\:bg-soft-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-soft-active)}.group-not-disabled\:group-active\:bg-success-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-success-active)}.group-not-disabled\:group-active\:bg-warning-active:is(:where(.group):not(:disabled) *):is(:where(.group):active *){background-color:var(--color-warning-active)}.group-disabled\:border-soft-border-disabled:is(:where(.group):disabled *){border-color:var(--color-soft-border-disabled)}.placeholder\:font-normal::placeholder{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.placeholder\:text-fg-weak::placeholder{color:var(--color-fg-weak)}@media not all and (width>=48rem){.not-desktop\:last\:-mb-px:last-child{margin-bottom:-1px}}.empty\:hidden:empty{display:none}@media (hover:hover){.hover\:underline:hover{text-decoration-line:underline}}.disabled\:\[--color-fg-strong\:var\(--color-fg-weak\)\]:disabled{--color-fg-strong:var(--color-fg-weak)}.disabled\:\[--color-fg\:var\(--color-fg-weak\)\]:disabled{--color-fg:var(--color-fg-weak)}@media (width>=48rem){.desktop\:top-0{top:0}.desktop\:row-2{grid-row:2}.desktop\:mx-4{margin-inline:calc(var(--spacing) * 4)}.desktop\:hidden{display:none}.desktop\:h-8{height:calc(var(--spacing) * 8)}.desktop\:max-w-150{max-width:calc(var(--spacing) * 150)}.desktop\:-translate-y-4{--tw-translate-y:calc(var(--spacing) * -4);translate:var(--tw-translate-x) var(--tw-translate-y)}.desktop\:grid-cols-\[1fr_1fr\]{grid-template-columns:1fr 1fr}.desktop\:grid-rows-\[auto_1fr\]{grid-template-rows:auto 1fr}.desktop\:flex-col-reverse{flex-direction:column-reverse}.desktop\:gap-2{gap:calc(var(--spacing) * 2)}.desktop\:gap-6{gap:calc(var(--spacing) * 6)}.desktop\:rounded-lg{border-radius:var(--radius-lg)}.desktop\:border{border-style:var(--tw-border-style);border-width:1px}.desktop\:border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.desktop\:border-soft-border{border-color:var(--color-soft-border)}.desktop\:px-4{padding-inline:calc(var(--spacing) * 4)}.desktop\:py-8{padding-block:calc(var(--spacing) * 8)}.desktop\:pt-6{padding-top:calc(var(--spacing) * 6)}.desktop\:pt-8{padding-top:calc(var(--spacing) * 8)}.desktop\:pt-12{padding-top:calc(var(--spacing) * 12)}.desktop\:pb-4{padding-bottom:calc(var(--spacing) * 4)}.desktop\:pl-11{padding-left:calc(var(--spacing) * 11)}.desktop\:text-icon-lg{font-size:var(--text-icon-lg)}.desktop\:text-md{font-size:var(--text-md)}}@media (width>=64rem){.widescreen\:grid-cols-\[1fr_64rem_1fr\]{grid-template-columns:1fr 64rem 1fr}}}body{background-color:var(--color-bg-navbar);font-synthesis:none;-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility}body.light,body.light dialog{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){body:not(.light),body:not(.light) dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-fg-weak-on-raised:#8a94a7;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#3f485a;--color-soft-border-disabled:#343c4b;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}}body.dark,body.dark dialog{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-bg:#0f1115;--color-bg-raised:#191d24;--color-bg-dialog:#242933;--color-bg-navbar:#242933;--color-fg:#ebf1ffcc;--color-fg-strong:#fff;--color-fg-weak:#d6e4ff99;--color-fg-weak-on-raised:#8a94a7;--color-accent:#5ea6ed;--color-accent-hover:#75b3f0;--color-accent-active:#4799eb;--color-accent-text:#80bfff;--color-soft-accent:#4ca6ff26;--color-on-accent:#000;--color-soft:#a5c3ff1f;--color-soft-hover:#a9c6ff29;--color-soft-active:#a1c0ff14;--color-soft-border:#3f485a;--color-soft-border-disabled:#343c4b;--color-placeholder:#b8cfff4d;--color-field-border:#ccddff80;--color-shadow:#0009;--color-shadow-weak:#0003;--color-error:#e46767;--color-error-hover:#e87d7d;--color-error-active:#e05252;--color-error-text:#ff8080;--color-soft-error:#ff4c4c26;--color-on-error:#000;--color-warning:#e0b152;--color-warning-hover:#e8c47d;--color-warning-active:#dda73c;--color-warning-text:#ffd580;--color-soft-warning:#ffc44c26;--color-on-warning:#000;--color-success:#5cd670;--color-success-hover:#85e094;--color-success-active:#47d15e;--color-success-text:#99e6a6;--color-soft-success:#33ff551a;--color-on-success:#000}@font-face{font-family:Mona Sans;font-weight:200 900;font-display:swap;src:url(/mona-sans.woff2)format("woff2");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-divide-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@keyframes placeholder-pulse{0%,to{opacity:.5}50%{opacity:1}}