@intent-hq/web 2.343.2 → 2.344.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Ct-2wSQ6.js → -IITeht6.js} +1 -1
- package/web/app/immutable/chunks/{b-gQtgOb.js → 2XZtwznc.js} +4 -4
- package/web/app/immutable/chunks/7V9sfwkG.js +1 -0
- package/web/app/immutable/chunks/{SrezSe0o.js → 9cPLPH_O.js} +1 -1
- package/web/app/immutable/chunks/{BJO4jUAG.js → B1Hn0_Hu.js} +1 -1
- package/web/app/immutable/chunks/{a1r6BT-e.js → B4yyNCE8.js} +1 -1
- package/web/app/immutable/chunks/{CVc7LcaQ.js → B5lHtLmV.js} +3 -3
- package/web/app/immutable/chunks/{CMQoXdpQ.js → B9dU3-fa.js} +1 -1
- package/web/app/immutable/chunks/{DbNMpEC8.js → BIG4edn9.js} +1 -1
- package/web/app/immutable/chunks/{ihu83Gf7.js → BLHhhsG2.js} +1 -1
- package/web/app/immutable/chunks/{Czmjmrib.js → BMs7t3_m.js} +1 -1
- package/web/app/immutable/chunks/{CVBmzjKd.js → BOa-AN22.js} +1 -1
- package/web/app/immutable/chunks/{CuXCq1os.js → BPk8wgKn.js} +3 -3
- package/web/app/immutable/chunks/{nM9_StK8.js → BSo5IXuX.js} +1 -1
- package/web/app/immutable/chunks/{Bzblbh-D.js → BUUYjiKy.js} +1 -1
- package/web/app/immutable/chunks/{Bwjn3GNi.js → BXbF11Gp.js} +1 -1
- package/web/app/immutable/chunks/{TsEB3aw-.js → BYRfWsRg.js} +1 -1
- package/web/app/immutable/chunks/{D8lUkQ-B.js → BYg2F-3D.js} +1 -1
- package/web/app/immutable/chunks/{C8j358_U.js → BZm5iyKH.js} +1 -1
- package/web/app/immutable/chunks/{D0GCx3sO.js → BdHmsKvO.js} +1 -1
- package/web/app/immutable/chunks/{B1ywot0G.js → BdNiI0PS.js} +4 -4
- package/web/app/immutable/chunks/{MgErAKgQ.js → BdUSoBxL.js} +2 -2
- package/web/app/immutable/chunks/{blPVVvA0.js → Bev5K0J8.js} +4 -4
- package/web/app/immutable/chunks/{D60l1rCk.js → BhzRZYY1.js} +1 -1
- package/web/app/immutable/chunks/{DU0nfy_y.js → BkUAKnVY.js} +1 -1
- package/web/app/immutable/chunks/{n5fDR6Ys.js → BmT6wRR1.js} +1 -1
- package/web/app/immutable/chunks/{Dab1wvUg.js → BnZrTj7m.js} +1 -1
- package/web/app/immutable/chunks/{D7QiNhGR.js → BnjfAdW_.js} +1 -1
- package/web/app/immutable/chunks/{BJJ1m47o.js → Bo4mc4_O.js} +1 -1
- package/web/app/immutable/chunks/{Ciqm_fPa.js → BpIeTy9w.js} +1 -1
- package/web/app/immutable/chunks/{CD6GiPmw.js → Br0dSiCW.js} +1 -1
- package/web/app/immutable/chunks/{5a7lyWYQ.js → BrysY2Ec.js} +1 -1
- package/web/app/immutable/chunks/{CjtYlgpc.js → BtBKKn81.js} +1 -1
- package/web/app/immutable/chunks/{BCQ-e5LR.js → BuFMu57Q.js} +1 -1
- package/web/app/immutable/chunks/{BXTPVho9.js → BvSNOyzW.js} +2 -2
- package/web/app/immutable/chunks/{Pat1u3oY.js → BvrMTALy.js} +1 -1
- package/web/app/immutable/chunks/{htyZQ7p9.js → BwScowY6.js} +1 -1
- package/web/app/immutable/chunks/{ByiJOZiZ.js → C46XexX0.js} +1 -1
- package/web/app/immutable/chunks/{DxztdKvh.js → C59ujSMF.js} +1 -1
- package/web/app/immutable/chunks/{DRSdBoB7.js → C62A1TLT.js} +2 -2
- package/web/app/immutable/chunks/{xNZ_GbEJ.js → C8b2UIVX.js} +1 -1
- package/web/app/immutable/chunks/{DuG2OZjB.js → C9gix5Ke.js} +1 -1
- package/web/app/immutable/chunks/{BCXwgWax.js → CClqWu60.js} +1 -1
- package/web/app/immutable/chunks/{CHGTw2Bl.js → CDRWYo_y.js} +1 -1
- package/web/app/immutable/chunks/{CNsCzECr.js → CGXahRhf.js} +1 -1
- package/web/app/immutable/chunks/{Dkh7OUxN.js → CHukbU1Q.js} +1 -1
- package/web/app/immutable/chunks/{CyGN0Rwg.js → CI-nVEa_.js} +1 -1
- package/web/app/immutable/chunks/{lsICrwNh.js → CJSrEfR4.js} +1 -1
- package/web/app/immutable/chunks/{MZ6PO-qe.js → COMJNvT3.js} +1 -1
- package/web/app/immutable/chunks/{C0g2TqGQ.js → CPYWKVyq.js} +9 -9
- package/web/app/immutable/chunks/{wjBrDDKR.js → CPi3hzpu.js} +1 -1
- package/web/app/immutable/chunks/{CUp3pS17.js → CTXbgIPd.js} +1 -1
- package/web/app/immutable/chunks/{BYgJjg0e.js → CThb3iAk.js} +1 -1
- package/web/app/immutable/chunks/{R9ODE8FL.js → CVikHxT_.js} +3 -3
- package/web/app/immutable/chunks/{B5_270cz.js → Ca3YR8yw.js} +1 -1
- package/web/app/immutable/chunks/{CbeK0M7M.js → CadpuSEK.js} +1 -1
- package/web/app/immutable/chunks/{ivrPoCwd.js → CdjPYGHf.js} +1 -1
- package/web/app/immutable/chunks/{BBAp8oIt.js → CerTrxRJ.js} +1 -1
- package/web/app/immutable/chunks/{DdjlRG5U.js → Cfd0oFGI.js} +1 -1
- package/web/app/immutable/chunks/{CusCKZ30.js → CgWXj0YG.js} +2 -2
- package/web/app/immutable/chunks/{Cgm3wI9t.js → Cj2EKBCH.js} +1 -1
- package/web/app/immutable/chunks/{BHt8CzB9.js → Ck9j_FHl.js} +1 -1
- package/web/app/immutable/chunks/{C3bwGgmD.js → CnhilOhJ.js} +1 -1
- package/web/app/immutable/chunks/{Cdx0eFWC.js → CoTJDQuc.js} +1 -1
- package/web/app/immutable/chunks/{CpWbjqtx.js → CqhKSPXA.js} +1 -1
- package/web/app/immutable/chunks/{C1h34H4x.js → CrH1YN9o.js} +1 -1
- package/web/app/immutable/chunks/{DQR5oUDY.js → Cs-BSsj3.js} +1 -1
- package/web/app/immutable/chunks/{BCmtMsc3.js → CsF8OjbK.js} +1 -1
- package/web/app/immutable/chunks/{Af7wRQM_.js → Cxz3q_28.js} +1 -1
- package/web/app/immutable/chunks/{C0v3RBBR.js → Cyfw6OkG.js} +1 -1
- package/web/app/immutable/chunks/{juUcLrve.js → CztRrCMq.js} +1 -1
- package/web/app/immutable/chunks/{D2Ntkwf_.js → D-J8Mlcm.js} +1 -1
- package/web/app/immutable/chunks/{CSveVSnU.js → D1uFLIU4.js} +1 -1
- package/web/app/immutable/chunks/{BBKQVY9d.js → D37kdZVn.js} +1 -1
- package/web/app/immutable/chunks/{D8gunWV0.js → D4pwA7AS.js} +2 -2
- package/web/app/immutable/chunks/{ZjzfSXHu.js → D6-Slo8_.js} +1 -1
- package/web/app/immutable/chunks/{DiAIgif8.js → D61HjMue.js} +1 -1
- package/web/app/immutable/chunks/{GVckKXJ5.js → D6cqwcO2.js} +1 -1
- package/web/app/immutable/chunks/{rElTuGMj.js → D8DQsqlL.js} +1 -1
- package/web/app/immutable/chunks/{d_IAf8cB.js → D8FYgRYk.js} +1 -1
- package/web/app/immutable/chunks/{BiVahgoJ.js → D8YFvJ64.js} +1 -1
- package/web/app/immutable/chunks/{84AlJNR3.js → DA3kI_Ir.js} +1 -1
- package/web/app/immutable/chunks/{DPBk4F6a.js → DAPhb2nP.js} +12 -12
- package/web/app/immutable/chunks/{CERb2-2E.js → DEnfRYcH.js} +1 -1
- package/web/app/immutable/chunks/{Cftldgk7.js → DGySvVDu.js} +1 -1
- package/web/app/immutable/chunks/{CHhGO97x.js → DHApIXYn.js} +1 -1
- package/web/app/immutable/chunks/{Czqd0ZZn.js → DLykoDqY.js} +1 -1
- package/web/app/immutable/chunks/{B9qFB97l.js → DN71oh5l.js} +1 -1
- package/web/app/immutable/chunks/{ViWKv_qM.js → DNM32kqo.js} +1 -1
- package/web/app/immutable/chunks/{-PfxOD5O.js → DOrgOYHc.js} +2 -2
- package/web/app/immutable/chunks/{DJuVbNrB.js → DT4LiP7Y.js} +1 -1
- package/web/app/immutable/chunks/{O6f99o2k.js → DTBnd4hM.js} +1 -1
- package/web/app/immutable/chunks/{Bs3KgIll.js → DTrgzOIA.js} +1 -1
- package/web/app/immutable/chunks/{BFqED1Hh.js → DVsRM1tQ.js} +1 -1
- package/web/app/immutable/chunks/{FQr_NSnS.js → DWBLeVMU.js} +1 -1
- package/web/app/immutable/chunks/{C2V9igbA.js → D_aUnmwC.js} +1 -1
- package/web/app/immutable/chunks/{CfPxdWJl.js → DhDeMWX_.js} +1 -1
- package/web/app/immutable/chunks/{qdwxdMJ_.js → DhUtJEn_.js} +1 -1
- package/web/app/immutable/chunks/{DOqpTP8b.js → DhtvToBX.js} +1 -1
- package/web/app/immutable/chunks/{D-aNPvuh.js → DjCFWz1t.js} +2 -2
- package/web/app/immutable/chunks/{BxQzYe9E.js → Dl7ZwNmB.js} +1 -1
- package/web/app/immutable/chunks/{DQJminLw.js → DnzNFOP-.js} +1 -1
- package/web/app/immutable/chunks/{DSnERXrp.js → Dp_2W12t.js} +1 -1
- package/web/app/immutable/chunks/{Djb279-4.js → Dq9eeDUE.js} +1 -1
- package/web/app/immutable/chunks/{CInXeVe5.js → DqWTOCbK.js} +1 -1
- package/web/app/immutable/chunks/{CpXorioa.js → DukOM-92.js} +1 -1
- package/web/app/immutable/chunks/{BMQaU_PE.js → Dx9ju3Oy.js} +1 -1
- package/web/app/immutable/chunks/{DV6k5cHH.js → DxBvyCwr.js} +1 -1
- package/web/app/immutable/chunks/{iMyDpxOV.js → DzX5UiFd.js} +1 -1
- package/web/app/immutable/chunks/{4gxaObsl.js → Gobu28zb.js} +2 -2
- package/web/app/immutable/chunks/{WvxOnEzW.js → HIyZggkg.js} +4 -4
- package/web/app/immutable/chunks/{DVN2Xze9.js → MioiZpXB.js} +1 -1
- package/web/app/immutable/chunks/{L_S2h6Yw.js → NTeezaZ2.js} +1 -1
- package/web/app/immutable/chunks/{DrtMUjoh.js → PXetJRrh.js} +1 -1
- package/web/app/immutable/chunks/{D2pPI0H2.js → RNDWAc1K.js} +6 -6
- package/web/app/immutable/chunks/{DnTKe3X-.js → SEJ8ae0u.js} +1 -1
- package/web/app/immutable/chunks/{NnMVp6ZM.js → TKg6aZ2_.js} +1 -1
- package/web/app/immutable/chunks/{CZNjFz9H.js → UtZBgRek.js} +1 -1
- package/web/app/immutable/chunks/{JTj2pw56.js → WyTFZ_7I.js} +1 -1
- package/web/app/immutable/chunks/{-v5-bXWK.js → X4o7hGKf.js} +3 -3
- package/web/app/immutable/chunks/{CXm95Q2a.js → _VCQMG81.js} +1 -1
- package/web/app/immutable/chunks/{B_a_b8VS.js → bJswqAg7.js} +1 -1
- package/web/app/immutable/chunks/{CN6xxeS_.js → ei2mFcvT.js} +1 -1
- package/web/app/immutable/chunks/{BDo7DlDu.js → f5lTIPHi.js} +1 -1
- package/web/app/immutable/chunks/{BnZdkxbc.js → fI_J_To4.js} +1 -1
- package/web/app/immutable/chunks/{CvmMeam2.js → g9G7tvrf.js} +1 -1
- package/web/app/immutable/chunks/{-a8kGB-5.js → gJDgmD_2.js} +1 -1
- package/web/app/immutable/chunks/{1VG8gLVS.js → gsD5Xe0D.js} +1 -1
- package/web/app/immutable/chunks/{CBnORL1F.js → iwClg1fT.js} +3 -3
- package/web/app/immutable/chunks/{B4sr0yPI.js → ixz6jb_3.js} +1 -1
- package/web/app/immutable/chunks/{DXozNEH9.js → jbKFYOOg.js} +1 -1
- package/web/app/immutable/chunks/{XkS41G1k.js → juQAMcx2.js} +1 -1
- package/web/app/immutable/chunks/{BBlRLBe7.js → lI7T5mqw.js} +1 -1
- package/web/app/immutable/chunks/{CeizKDc4.js → nLXSdbN2.js} +1 -1
- package/web/app/immutable/chunks/{uI0ZG7MM.js → pAYxBetQ.js} +1 -1
- package/web/app/immutable/chunks/{B2pRmyv7.js → sEcTUaec.js} +1 -1
- package/web/app/immutable/chunks/{B-00FHnf.js → uPiYeMwS.js} +1 -1
- package/web/app/immutable/chunks/{D89Fvz2g.js → xBFqBq1j.js} +1 -1
- package/web/app/immutable/entry/{app.9r9RhFng.js → app.DfuiYuem.js} +2 -2
- package/web/app/immutable/entry/start.DDUK339f.js +1 -0
- package/web/app/immutable/nodes/{0._MOrvR24.js → 0.D56mBX7M.js} +1 -1
- package/web/app/immutable/nodes/{1.DVvUSeXg.js → 1.az7hmVZE.js} +1 -1
- package/web/app/immutable/nodes/{10.DIleurXr.js → 10.ijh736ED.js} +1 -1
- package/web/app/immutable/nodes/{14.BR3FpNbu.js → 14.BvEshoLb.js} +1 -1
- package/web/app/immutable/nodes/{17.DNzYNnAu.js → 17.DnoEG3fq.js} +2 -2
- package/web/app/immutable/nodes/{2.DJLdbLzb.js → 2.B4faJzFv.js} +4 -4
- package/web/app/immutable/nodes/{3.BgL634Ss.js → 3.CXkOfW97.js} +1 -1
- package/web/app/immutable/nodes/{4.CR0sD7s6.js → 4.DAQzul95.js} +1 -1
- package/web/app/immutable/nodes/{5.sL-y10DG.js → 5.DE5jTHSS.js} +1 -1
- package/web/app/immutable/nodes/{6.Ci8BcEFn.js → 6.DhIYx_bX.js} +1 -1
- package/web/app/immutable/nodes/{7.BxPcDZ4n.js → 7.CqVh2822.js} +1 -1
- package/web/app/immutable/nodes/{8.DfInEKdf.js → 8.CtwSJYpI.js} +4 -4
- package/web/app/immutable/nodes/{9.ChF6BmYv.js → 9.RM7Dv9Cl.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/BAf7ckig.js +0 -1
- package/web/app/immutable/entry/start.C8tteIq6.js +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var ut=e=>{throw TypeError(e)};var rn=(e,t,n)=>t.has(e)||ut("Cannot "+n);var k=(e,t,n)=>(rn(e,t,"read from private field"),n?n.call(e):t.get(e)),j=(e,t,n)=>t.has(e)?ut("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{ao as R,cd as We,bk as dt,bV as U,aD as N,bH as C,c0 as Se,bX as on,bP as an,c5 as sn}from"./DYhIMPy1.js";const Pt=!0;class Xe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ze{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ee extends Error{constructor(t,n,o){super(o),this.status=t,this.text=n}}new URL("sveltekit-internal://");function cn(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ln(e){return e.split("%25").map(decodeURI).join("%25")}function fn(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function
|
|
1
|
+
var ut=e=>{throw TypeError(e)};var rn=(e,t,n)=>t.has(e)||ut("Cannot "+n);var k=(e,t,n)=>(rn(e,t,"read from private field"),n?n.call(e):t.get(e)),j=(e,t,n)=>t.has(e)?ut("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n);import{ao as R,cd as We,bk as dt,bV as U,aD as N,bH as C,c0 as Se,bX as on,bP as an,c5 as sn}from"./DYhIMPy1.js";const Pt=!0;class Xe{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ze{constructor(t,n){try{new Headers({location:n})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(n)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=n}}class Ee extends Error{constructor(t,n,o){super(o),this.status=t,this.text=n}}new URL("sveltekit-internal://");function cn(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ln(e){return e.split("%25").map(decodeURI).join("%25")}function fn(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ze({href:e}){return e.split("#")[0]}function M(){}function un(...e){let t=5381;for(const n of e)if(typeof n=="string"){let o=n.length;for(;o;)t=t*33^n.charCodeAt(--o)}else if(ArrayBuffer.isView(n)){const o=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=o.length;for(;r;)t=t*33^o[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function dn(e){const t=atob(e),n=new Uint8Array(t.length);for(let o=0;o<t.length;o++)n[o]=t.charCodeAt(o);return n}let hn=0;const ht=window.fetch;if(R&&Pt){let e=!1;(async()=>{e=new Error().stack.includes("check_stack_trace")})(),window.fetch=(n,o)=>{const r=n instanceof Request?n.url:n.toString(),i=new Error().stack.split(`
|
|
2
2
|
`),a=i.findIndex(g=>g.includes("load@")||g.includes("at load")),s=i.slice(0,a+2).join(`
|
|
3
|
-
`),c=e?s.includes("src/runtime/client/client.js"):hn,f=o?.__sveltekit_fetch__;return c&&!f&&console.warn(`Loading ${r} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`),(n instanceof Request?n.method:o?.method||"GET")!=="GET"&&Q.delete(Oe(n)),ht(n,o)}}else window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Q.delete(Oe(e)),ht(e,t));const Q=new Map;function pn(e,t){const n=Oe(e,t),o=document.querySelector(n);if(o?.textContent){o.remove();let{body:r,...i}=JSON.parse(o.textContent);o.getAttribute("data-b64")!==null&&(r=dn(r));const s=o.getAttribute("data-ttl");return s&&Q.set(n,{body:r,init:i,ttl:1e3*Number(s)}),Promise.resolve(new Response(r,i))}return R?It(e,t):window.fetch(e,t)}function gn(e,t,n){if(Q.size>0){const o=Oe(e,n),r=Q.get(o);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);Q.delete(o)}}return R?It(t,n):window.fetch(t,n)}function It(e,t){const n={...t};return Object.defineProperty(n,"__sveltekit_fetch__",{value:!0,writable:!0,configurable:!0}),window.fetch(e,n)}function Oe(e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),o+=`[data-hash="${un(...r)}"]`}return o}const _n=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,yn=/^\/\((?:[^)]+)\)$/;function mn(e){const t=[];return{pattern:e==="/"||yn.test(e)?/^\/$/:new RegExp(`^${vn(e).map(o=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const a=o.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return
|
|
4
|
-
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function
|
|
5
|
-
`);!r||(!r[0].includes("https:")&&!r[0].includes("http:")&&(r=r.slice(1)),r[2]?.includes("node_modules"))||(e=!0,console.warn("Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead."))},n=history.pushState;history.pushState=(...r)=>(t(),n.apply(history,r));const o=history.replaceState;history.replaceState=(...r)=>(t(),o.apply(history,r))}const
|
|
3
|
+
`),c=e?s.includes("src/runtime/client/client.js"):hn,f=o?.__sveltekit_fetch__;return c&&!f&&console.warn(`Loading ${r} using \`window.fetch\`. For best results, use the \`fetch\` that is passed to your \`load\` function: https://svelte.dev/docs/kit/load#making-fetch-requests`),(n instanceof Request?n.method:o?.method||"GET")!=="GET"&&Q.delete(Oe(n)),ht(n,o)}}else window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&Q.delete(Oe(e)),ht(e,t));const Q=new Map;function pn(e,t){const n=Oe(e,t),o=document.querySelector(n);if(o?.textContent){o.remove();let{body:r,...i}=JSON.parse(o.textContent);o.getAttribute("data-b64")!==null&&(r=dn(r));const s=o.getAttribute("data-ttl");return s&&Q.set(n,{body:r,init:i,ttl:1e3*Number(s)}),Promise.resolve(new Response(r,i))}return R?It(e,t):window.fetch(e,t)}function gn(e,t,n){if(Q.size>0){const o=Oe(e,n),r=Q.get(o);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);Q.delete(o)}}return R?It(t,n):window.fetch(t,n)}function It(e,t){const n={...t};return Object.defineProperty(n,"__sveltekit_fetch__",{value:!0,writable:!0,configurable:!0}),window.fetch(e,n)}function Oe(e,t){let o=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),o+=`[data-hash="${un(...r)}"]`}return o}const _n=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,yn=/^\/\((?:[^)]+)\)$/;function mn(e){const t=[];return{pattern:e==="/"||yn.test(e)?/^\/$/:new RegExp(`^${vn(e).map(o=>{const r=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(o);if(r)return t.push({name:r[1],matcher:r[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const i=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(o);if(i)return t.push({name:i[1],matcher:i[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!o)return;const a=o.split(/\[(.+?)\](?!\])/);return"/"+a.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Me(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Me(String.fromCharCode(...c.slice(2).split("-").map(m=>parseInt(m,16))));const u=_n.exec(c),[,g,d,h,p]=u;return t.push({name:h,matcher:p,optional:!!g,rest:!!d,chained:d?f===1&&a[0]==="":!1}),d?"([^]*?)":g?"([^/]*)?":"([^/]+?)"}return Me(c)}).join("")}).join("")}/?$`),params:t}}function wn(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function vn(e){return e.slice(1).split("/").filter(wn)}function bn(e,t,n){const o={},r=e.slice(1),i=r.filter(s=>s!==void 0);let a=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=r[s-a];if(c.chained&&c.rest&&a&&(f=r.slice(s-a,s+1).filter(u=>u).join("/"),a=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||n[c.matcher](f)){o[c.name]=f;const u=t[s+1],g=r[s+1];u&&!u.rest&&u.optional&&g&&c.chained&&(a=0),!u&&!g&&Object.keys(o).length===i.length&&(a=0);continue}if(c.optional&&c.chained){a++;continue}return}if(!a)return o}function Me(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function kn({nodes:e,server_loads:t,dictionary:n,matchers:o}){const r=new Set(t);return Object.entries(n).map(([s,[c,f,u]])=>{const{pattern:g,params:d}=mn(s),h={id:s,exec:p=>{const m=g.exec(p);if(m)return bn(m,d,o)},errors:[1,...u||[]].map(p=>e[p]),layouts:[0,...f||[]].map(a),leaf:i(c)};return h.errors.length=h.layouts.length=Math.max(h.errors.length,h.layouts.length),h});function i(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function a(s){return s===void 0?s:[r.has(s),e[s]]}}function xt(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function pt(e,t,n=JSON.stringify){const o=n(t);try{sessionStorage[e]=o}catch{}}const I=globalThis.__sveltekit_1okztzq?.base??"",Sn=globalThis.__sveltekit_1okztzq?.assets??I??"",En="1794885477823",jt="sveltekit:snapshot",Ut="sveltekit:scroll",Qe="sveltekit:states",Nt="sveltekit:pageurl",G="sveltekit:history",ne="sveltekit:navigation",Y={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},je=location.origin;function Ue(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function J(){return{x:pageXOffset,y:pageYOffset}}const gt=new WeakSet,_t={"preload-code":["","off","false","tap","hover","viewport","eager"],"preload-data":["","off","false","tap","hover"],keepfocus:["","true","off","false"],noscroll:["","true","off","false"],reload:["","true","off","false"],replacestate:["","true","off","false"]};function X(e,t){const n=e.getAttribute(`data-sveltekit-${t}`);return R&&On(e,t,n),n}function On(e,t,n){n!==null&&!gt.has(e)&&!_t[t].includes(n)&&(console.error(`Unexpected value for ${t} — should be one of ${_t[t].map(o=>JSON.stringify(o)).join(", ")}`,e),gt.add(e))}const yt={...Y,"":Y.hover};function Ct(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Dt(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ct(e)}}function He(e,t,n){let o;try{if(o=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&o.hash.match(/^#[^/]/)){const s=location.hash.split("#")[1]||"/";o.hash=`#${s}${o.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!o||!!r||Ne(o,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=o?.origin===je&&e.hasAttribute("download");return{url:o,external:i,target:r,download:a}}function $e(e){let t=null,n=null,o=null,r=null,i=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=X(s,"preload-code")),r===null&&(r=X(s,"preload-data")),t===null&&(t=X(s,"keepfocus")),n===null&&(n=X(s,"noscroll")),i===null&&(i=X(s,"reload")),a===null&&(a=X(s,"replacestate")),s=Ct(s);function c(f){switch(f){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:yt[o??"off"],preload_data:yt[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function mt(e){const t=We(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function i(a){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&a(s=c)})}return{notify:o,set:r,subscribe:i}}const Bt={v:M};function $n(){const{set:e,subscribe:t}=We(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${Sn}/app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==En;return a&&(e(!0),Bt.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function Ne(e,t,n){return e.origin!==je||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function Cr(e){}const qt=-1,wt=-2,An=-3,Rn=-4,Tn=-5,zt=-6,Ln=-7,Pn=2**32-1,In=Pn-1;class H extends Error{constructor(t,n,o,r){super(t),this.name="DevalueError",this.path=n.join(""),this.value=o,this.root=r}}const xn=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function jn(e){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null||Object.getPrototypeOf(t)===null||Object.getOwnPropertyNames(t).sort().join("\0")===xn}function Un(e){return Object.prototype.toString.call(e).slice(8,-1)}function Nn(e){return typeof Buffer<"u"&&Buffer.isBuffer(e)}function Cn(e){switch(e){case'"':return'\\"';case"<":return"\\u003C";case"\\":return"\\\\";case`
|
|
4
|
+
`:return"\\n";case"\r":return"\\r";case" ":return"\\t";case"\b":return"\\b";case"\f":return"\\f";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return e<" "?`\\u${e.charCodeAt(0).toString(16).padStart(4,"0")}`:""}}function q(e){let t="",n=0;const o=e.length;for(let r=0;r<o;r+=1){const i=e[r],a=Cn(i);a&&(t+=e.slice(n,r)+a,n=r+1)}return`"${n===0?e:t+e.slice(n)}"`}function Dn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.getOwnPropertyDescriptor(e,t).enumerable)}const Bn=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function vt(e){return Bn.test(e)?"."+e:"["+JSON.stringify(e)+"]"}function qn(e){return!(!Number.isInteger(e)||e<0||e>In)}function zn(e){if(e.length===0||e.length>1&&e.charCodeAt(0)===48)return!1;for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<48||n>57)return!1}return qn(+e)}function Mn(e){for(var t=e.length-1;t>=0&&!zn(e[t]);t--);return t+1}function Vn(e){const t=Object.keys(e);return t.length=Mn(t),t}function Fn(e){return new Uint8Array(e).toBase64()}function Hn(e){return Buffer.from(e).toString("base64")}function Yn(e){const t=new Uint8Array(e);let n="";const o=32768;for(let r=0;r<t.length;r+=o){const i=t.subarray(r,r+o);n+=String.fromCharCode.apply(null,i)}return btoa(n)}const Gn=typeof Uint8Array.fromBase64=="function",Kn=typeof process=="object"&&process.versions?.node!==void 0,Jn=Gn?Fn:Kn?Hn:Yn;function Wn(e,t){return e}const Xn=Object.freeze({kind:"not-plain"}),Zn=Object.freeze({kind:"symbol-keys"}),Qn={identify:e=>e,typeOf:e=>e===null?"null":typeof e,toPrimitive:e=>e,tagOf:e=>Un(e),isThenable:e=>typeof e.then=="function",toPromise:e=>Promise.resolve(e),unbox:e=>e.valueOf(),toISOString:e=>isNaN(e.getDate())?"":e.toISOString(),toStringValue:e=>e.toString(),regExpInfo:e=>({source:e.source,flags:e.flags}),valuesOf:e=>e,entriesOf:e=>e,viewInfo:e=>(Nn(e)&&(e=new Uint8Array(e)),{buffer:e.buffer,byteOffset:e.byteOffset,byteLength:e.byteLength,length:e.length,bufferByteLength:e.buffer.byteLength}),toArrayBuffer:e=>e,lengthOf:e=>e.length,hasOwn:(e,t)=>Object.hasOwn(e,t),indicesOf:e=>Vn(e),shapeOf:e=>jn(e)?Dn(e).length>0?Zn:{kind:Object.getPrototypeOf(e)===null?"null-proto":"plain",keys:Object.keys(e)}:Xn,get:(e,t)=>e[t]},er=Object.freeze(Qn);Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get;typeof SharedArrayBuffer>"u"||Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get;function tr(e,t,n){const o=nr(!1,e);return typeof o=="string"?o:`[${o.join(",")}]`}function nr(e,t,n,o){const r=Wn(er),i=[],a=new Map,s=[],c=[];let f=0;function u(d,h){const p=r.typeOf(d);if(p==="undefined")return qt;let m;if(p==="number"){if(m=r.toPrimitive(d),Number.isNaN(m))return An;if(m===1/0)return Rn;if(m===-1/0)return Tn;if(m===0&&1/m<0)return zt}const _=r.identify(d);if(a.has(_))return a.get(_);h??=f++,a.set(_,h);for(const{key:b,fn:E}of s){const T=E(d);if(T)return i[h]=`["${b}",${u(T)}]`,h}if(p==="function")throw new H("Cannot stringify a function",c,d,t);if(p==="symbol")throw new H("Cannot stringify a Symbol primitive",c,d,t);let l="";if(p!=="object")l=bt(p==="number"?m:r.toPrimitive(d));else{if(r.isThenable(d))throw new H("Cannot stringify a Promise or thenable — use stringifyAsync instead",c,d,t);{const b=r.tagOf(d);switch(b){case"Number":case"String":case"Boolean":case"BigInt":l=`["Object",${u(r.unbox(d))}]`;break;case"Date":l=`["Date","${r.toISOString(d)}"]`;break;case"URL":l=`["URL",${q(r.toStringValue(d))}]`;break;case"URLSearchParams":l=`["URLSearchParams",${q(r.toStringValue(d))}]`;break;case"RegExp":const{source:E,flags:T}=r.regExpInfo(d);l=T?`["RegExp",${q(E)},"${T}"]`:`["RegExp",${q(E)}]`;break;case"Array":{let y=!1;const $=r.lengthOf(d);l="[";for(let w=0;w<$;w+=1)if(w>0&&(l+=","),r.hasOwn(d,w))c.push(`[${w}]`),l+=u(r.get(d,w)),c.pop();else if(y)l+=wt;else{const x=r.indicesOf(d),W=x.length,B=String($).length,re=($-W)*3,nn=4+B+W*(B+1);if(re>nn){l="["+Ln+","+$;for(let Be=0;Be<x.length;Be++){const qe=x[Be];c.push(`[${qe}]`),l+=","+qe+","+u(r.get(d,qe)),c.pop()}break}else y=!0,l+=wt}l+="]";break}case"Set":l='["Set"';for(const y of r.valuesOf(d))l+=`,${u(y)}`;l+="]";break;case"Map":l='["Map"';for(const[y,$]of r.entriesOf(d)){const w=r.typeOf(y),x=w!=="object"&&w!=="function"&&w!=="symbol";c.push(`.get(${x?bt(r.toPrimitive(y)):"..."})`),l+=`,${u(y)},${u($)}`,c.pop()}l+="]";break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":{const y=r.viewInfo(d);l='["'+b+'",'+u(y.buffer),y.byteLength!==y.bufferByteLength&&(l+=`,${y.byteOffset},${y.length}`),l+="]";break}case"DataView":{const y=r.viewInfo(d);l='["'+b+'",'+u(y.buffer),y.byteLength!==y.bufferByteLength&&(l+=`,${y.byteOffset},${y.byteLength}`),l+="]";break}case"ArrayBuffer":{l=`["ArrayBuffer","${Jn(r.toArrayBuffer(d))}"]`;break}case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":l=`["${b}",${q(r.toStringValue(d))}]`;break;default:{const y=r.shapeOf(d);if(y.kind==="not-plain")throw new H("Cannot stringify arbitrary non-POJOs",c,d,t);if(y.kind==="symbol-keys")throw new H("Cannot stringify POJOs with symbolic keys",c,d,t);if(y.kind==="null-proto"){l='["null"';for(const $ of y.keys){if($==="__proto__")throw new H("Cannot stringify objects with __proto__ keys",c,d,t);c.push(vt($)),l+=`,${q($)},${u(r.get(d,$))}`,c.pop()}l+="]"}else{l="{";let $=!1;for(const w of y.keys){if(w==="__proto__")throw new H("Cannot stringify objects with __proto__ keys",c,d,t);$&&(l+=","),$=!0,c.push(vt(w)),l+=`${q(w)}:${u(r.get(d,w))}`,c.pop()}l+="}"}}}}}return i[h]=l,h}const g=u(t);return g<0?`${g}`:i}function bt(e){const t=typeof e;return t==="string"?q(e):e===void 0?qt.toString():e===0&&1/e<0?zt.toString():t==="bigint"?`["BigInt","${e}"]`:String(e)}function rr(e){function t(n,o){if(n)for(const r in n){if(r[0]==="_"||e.has(r))continue;const i=[...e.values()],a=or(r,o?.slice(o.lastIndexOf(".")))??`valid exports are ${i.join(", ")}, or anything with a '_' prefix`;throw new Error(`Invalid export '${r}'${o?` in ${o}`:""} (${a})`)}}return t}function or(e,t=".js"){const n=[];if(et.has(e)&&n.push(`+layout${t}`),Mt.has(e)&&n.push(`+page${t}`),Vt.has(e)&&n.push(`+layout.server${t}`),ar.has(e)&&n.push(`+page.server${t}`),sr.has(e)&&n.push(`+server${t}`),n.length>0)return`'${e}' is a valid export in ${n.slice(0,-1).join(", ")}${n.length>1?" or ":""}${n.at(-1)}`}const et=new Set(["load","prerender","csr","ssr","trailingSlash","config"]),Mt=new Set([...et,"entries"]),Vt=new Set([...et]),ar=new Set([...Vt,"actions","entries"]),sr=new Set(["GET","POST","PATCH","PUT","DELETE","OPTIONS","HEAD","fallback","prerender","trailingSlash","config","entries"]),ir=rr(Mt);function cr(e){return e.filter(t=>t!=null)}function be(e,t){return e+"/"+t}function tt(e){return e instanceof Xe||e instanceof Ee?e.status:500}function lr(e){return e instanceof Ee?e.text:"Internal Error"}let A,se,Ve;const fr=dt.toString().includes("$$")||/function \w+\(\) \{\}/.test(dt.toString()),kt="a:";var ue,de,he,pe,ge,_e,ye,me,Rt,we,Tt,ve,Lt;fr?(A={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(kt)},se={current:null},Ve={current:!1}):(A=new(Rt=class{constructor(){j(this,ue,U({}));j(this,de,U(null));j(this,he,U(null));j(this,pe,U({}));j(this,ge,U({id:null}));j(this,_e,U({}));j(this,ye,U(-1));j(this,me,U(new URL(kt)))}get data(){return N(k(this,ue))}set data(t){C(k(this,ue),t)}get form(){return N(k(this,de))}set form(t){C(k(this,de),t)}get error(){return N(k(this,he))}set error(t){C(k(this,he),t)}get params(){return N(k(this,pe))}set params(t){C(k(this,pe),t)}get route(){return N(k(this,ge))}set route(t){C(k(this,ge),t)}get state(){return N(k(this,_e))}set state(t){C(k(this,_e),t)}get status(){return N(k(this,ye))}set status(t){C(k(this,ye),t)}get url(){return N(k(this,me))}set url(t){C(k(this,me),t)}},ue=new WeakMap,de=new WeakMap,he=new WeakMap,pe=new WeakMap,ge=new WeakMap,_e=new WeakMap,ye=new WeakMap,me=new WeakMap,Rt),se=new(Tt=class{constructor(){j(this,we,U(null))}get current(){return N(k(this,we))}set current(t){C(k(this,we),t)}},we=new WeakMap,Tt),Ve=new(Lt=class{constructor(){j(this,ve,U(!1))}get current(){return N(k(this,ve))}set current(t){C(k(this,ve),t)}},ve=new WeakMap,Lt),Bt.v=()=>Ve.current=!0);function Ft(e){Object.assign(A,e)}const{onMount:ur}=on,dr=sn??(e=>e()),hr=new Set(["icon","shortcut icon","apple-touch-icon"]);let oe=null;const F=xt(Ut)??{},ie=xt(jt)??{};if(R&&Pt){let e=!1;const t=()=>{if(e)return;let r=new Error().stack?.split(`
|
|
5
|
+
`);!r||(!r[0].includes("https:")&&!r[0].includes("http:")&&(r=r.slice(1)),r[2]?.includes("node_modules"))||(e=!0,console.warn("Avoid using `history.pushState(...)` and `history.replaceState(...)` as these will conflict with SvelteKit's router. Use the `pushState` and `replaceState` imports from `$app/navigation` instead."))},n=history.pushState;history.pushState=(...r)=>(t(),n.apply(history,r));const o=history.replaceState;history.replaceState=(...r)=>(t(),o.apply(history,r))}const V={url:mt({}),page:mt({}),navigating:We(null),updated:$n()};function nt(e){F[e]=J()}function pr(e,t){let n=e+1;for(;F[n];)delete F[n],n+=1;for(n=t+1;ie[n];)delete ie[n],n+=1}function ce(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(M)}async function Ht(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(I||"/");e&&await e.update()}}let rt,Ye,Ae,D,Ge,S;const Re=[],Te=[];let P=null;function Le(){P?.fork?.then(e=>e?.discard()),P=null,Z={element:void 0,href:void 0}}const ke=new Map,ot=new Set,gr=new Set,ee=new Set;let v={branch:[],error:null,url:null},Yt=!1,le=!1,St=!0,fe=!1,ae=!1,Gt=!1,at=!1,st,O,L,z;const Pe=new Set,Et=new Map,Ot=new Map;async function zr(e,t,n){if(R&&t===document.body&&console.warn(`Placing %sveltekit.body% directly inside <body> is not recommended, as your app may break for users who have certain browser extensions installed.
|
|
6
6
|
|
|
7
7
|
Consider wrapping it in an element:
|
|
8
8
|
|
|
9
9
|
<div style="display: contents">
|
|
10
10
|
%sveltekit.body%
|
|
11
|
-
</div>`),globalThis.__sveltekit_5wiiah.data){const{q:i={},p:a={},l:s={},f:c={}}=globalThis.__sveltekit_5wiiah.data;for(const f in i)i[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in a)a[f]}document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),rt=kn(e),D=document.documentElement,Ge=t,Ye=e.nodes[0],Ae=e.nodes[1],Ye(),Ae(),O=history.state?.[G],L=history.state?.[ne],O||(O=L=Date.now(),history.replaceState({...history.state,[G]:O,[ne]:L},""));const o=z[O];function r(){o&&(history.scrollRestoration="manual",scrollTo(o.x,o.y))}n?(r(),await Pr(Ge,n)):(await te({type:"enter",url:Ue(S.hash?jr(new URL(location.href)):location.href),replace_state:!0}),r()),Lr()}function _r(){Re.length=0,at=!1}function Kt(e){Te.some(t=>t?.snapshot)&&(ie[e]=Te.map(t=>t?.snapshot?.capture()))}function Jt(e){ie[e]?.forEach((t,n)=>{Te[n]?.snapshot?.restore(t)})}function $t(){nt(O),pt(Ut,z),Kt(L),pt(jt,ie)}async function Wt(e,t,n,o){let r,i;t.invalidateAll&&Le(),await te({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:o,accept:()=>{if(t.invalidateAll){at=!0,r=new Set;for(const[a,s]of Et)for(const[c,f]of s)f.resource?.reset(),r.add(be(a,c));i=new Set;for(const[a,s]of Ot)for(const c of s.keys())i.add(be(a,c))}t.invalidate&&t.invalidate.forEach(Rr)}}),t.invalidateAll&&Se().then(Se).then(()=>{for(const[a,s]of Et)for(const[c,{resource:f}]of s)r?.has(be(a,c))&&f.start();for(const[a,s]of Ot)for(const[c,{resource:f}]of s)i?.has(be(a,c))&&f.reconnect()})}async function At(e){if(e.id!==P?.id){Le();const t={};Pe.add(t),P={id:e.id,token:t,promise:Zt({...e,preload:t}).then(n=>(Pe.delete(t),n.type==="loaded"&&n.state.error&&Le(),n)),fork:null}}return P.promise}async function ze(e){const t=(await Ce(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Xt(e,t,n){const o={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};if(v={...e.state,nav:o},zt(e.props.page),st=new S.root({target:t,props:{...e.props,stores:F,components:Te},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const r={from:null,to:{...o,scroll:z[O]??J()},willUnload:!1,type:"enter",complete:Promise.resolve()};ee.forEach(i=>i(r))}Jt(L),le=!0}async function Ie({url:e,params:t,branch:n,errors:o,status:r,error:i,route:a,form:s}){let c="never";if(I&&(e.pathname===I||e.pathname===I+"/"))c="always";else for(const p of n)p?.slash!==void 0&&(c=p.slash);e.pathname=cn(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:a},props:{constructors:cr(n).map(p=>p.node.component),page:De(A)}};s!==void 0&&(f.props.form=s);let u={},g=!A,d=0;for(let p=0;p<Math.max(n.length,v.branch.length);p+=1){const m=n[p],_=v.branch[p];m?.data!==_?.data&&(g=!0),m&&(u={...u,...m.data},g&&(f.props[`data_${d}`]=u),d+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||s!==void 0&&s!==A.form||g)&&(f.props.page={error:i,params:t,route:{id:a?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:g?u:A.data}),f}async function it({loader:e,parent:t,url:n,params:o,route:r,server_data_node:i}){let a=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(R&&(ir(c.universal),c.universal&&S.hash)){const f=Object.keys(c.universal).filter(u=>u!=="load");if(f.length>0)throw new Error(`Page options are ignored when \`router.type === 'hash'\` (${r.id} has ${f.filter(u=>u!=="load").map(u=>`'${u}'`).join(", ")})`)}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:a,uses:s}:null,data:a??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function yr(e,t,n){let o=e instanceof Request?e.url:e;const r=new URL(o,n);r.origin===n.origin&&(o=r.href.slice(n.origin.length));const i=le?gn(o,r.href,t):pn(o,t);return{resolved:r,promise:i}}function mr(e,t,n,o,r,i){if(at)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const a of r.search_params)if(o.has(a))return!0;for(const a of r.params)if(i[a]!==v.params[a])return!0;for(const a of r.dependencies)if(Re.some(s=>s(new URL(a))))return!0;return!1}function ct(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function wr(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const o of n){const r=e.searchParams.getAll(o),i=t.searchParams.getAll(o);r.every(a=>i.includes(a))&&i.every(a=>r.includes(a))&&n.delete(o)}return n}function vr({error:e,url:t,route:n,params:o}){return{type:"loaded",state:{error:e,url:t,route:n,params:o,branch:[]},props:{page:De(A),constructors:[]}}}async function Zt({id:e,invalidating:t,url:n,params:o,route:r,preload:i}){if(P?.id===e)return Pe.delete(P.token),P.promise;const{errors:a,layouts:s,leaf:c}=r,f=[...s,c];a.forEach(_=>_?.().catch(q)),f.forEach(_=>_?.[1]().catch(q));const u=v.url?e!==xe(v.url):!1,g=v.route?r.id!==v.route.id:!1,d=wr(v.url,n);let h=!1;const p=f.map(async(_,l)=>{if(!_)return;const b=v.branch[l];return _[1]===b?.loader&&!mr(h,g,u,d,b.universal?.uses,o)?b:(h=!0,it({loader:_[1],url:n,params:o,route:r,parent:async()=>{const T={};for(let y=0;y<l;y+=1)Object.assign(T,(await p[y])?.data);return T},server_data_node:ct(_[0]?{type:"skip"}:null,_[0]?b?.server:void 0)}))});for(const _ of p)_.catch(q);const m=[];for(let _=0;_<f.length;_+=1)if(f[_])try{m.push(await p[_])}catch(l){if(l instanceof Ze)return{type:"redirect",location:l.location};if(i&&Pe.has(i))return vr({error:await K(l,{params:o,url:n,route:{id:r.id}}),url:n,params:o,route:r});let b=tt(l),E;if(l instanceof Xe)E=l.body;else{if(await F.updated.check())return await Ht(),await ce(n);E=await K(l,{params:o,url:n,route:{id:r.id}})}const T=await br(_,m,a);return T?Ie({url:n,params:o,branch:m.slice(0,T.idx).concat(T.node),errors:a,status:b,error:E,route:r}):await Ke(n,{id:r.id},E,b)}else m.push(void 0);return Ie({url:n,params:o,branch:m,errors:a,status:200,error:null,route:r,form:t?void 0:null})}async function br(e,t,n){for(;e--;)if(n[e]){let o=e;for(;!t[o];)o-=1;try{return{idx:o+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function lt({status:e,error:t,url:n,route:o}){const r={};let i=null;try{const a=await it({loader:Ye,url:n,params:r,route:o,parent:()=>Promise.resolve({}),server_data_node:ct(i)}),s={node:await Ae(),loader:Ae,universal:null,server:null,data:null};return Ie({url:n,params:r,branch:[a,s],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof Ze){await Wt(new URL(a.location,location.href),{},0);return}const s=await S.get_error_template(),c=await K(a,{url:n,params:r,route:o}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=s({status:e,message:f}),g=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(g.head),document.head),document.documentElement.replaceChild(document.adoptNode(g.body),document.body),a}}async function kr(e){const t=e.href;if(ke.has(t))return ke.get(t);let n;try{const o=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,a)=>yr(i,a,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();ke.set(t,o),n=await o}catch(o){if(ke.delete(t),R){console.error(o);debugger}return}return n}async function Ce(e,t){if(e&&!Ne(e,I,S.hash)){const n=await kr(e);if(!n)return;const o=Sr(n);for(const r of rt){const i=r.exec(o);if(i)return{id:xe(e),invalidating:t,route:r,params:fn(i),url:e}}}}function Sr(e){return ln(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qt({url:e,type:t,intent:n,delta:o,event:r,scroll:i}){let a=!1;const s=ft(v,n,e,t,i??null);o!==void 0&&(s.navigation.delta=o),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return fe||ot.forEach(f=>f(c)),a?null:s}async function te({type:e,url:t,popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a={},redirect_count:s=0,nav_token:c={},accept:f=q,block:u=q,event:g}){const d=V;V=c;const h=await Ce(t,!1),p=e==="enter"?ft(v,h,t,e):Qt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:g});if(!p){u(),V===c&&(V=d);return}const m=O,_=L;f(),fe=!0,le&&p.navigation.type!=="enter"&&F.navigating.set(se.current=p.navigation);let l=h&&await Zt(h);if(!l)if(Ne(t,I,S.hash))if(R&&S.hash)l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname} (did you forget the hash?)`),{url:t,params:{},route:{id:null}}),404,i);else return await ce(t,i);else l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i);if(t=h?.url||t,V!==c){p.reject(new Error("navigation aborted"));return}if(!l)return;if(l.type==="redirect"){if(s<20){await te({type:e,url:new URL(l.location,t),popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}if(l=await lt({status:500,error:await K(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!l)return}else if(l.props.page.status>=400&&await F.updated.check())return await Ht(),await ce(t,i);if(_r(),nt(m),Kt(_),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),a=n?n.state:a,!n){const w=i?0:1,x={[G]:O+=w,[ne]:L+=w,[Qe]:a};(i?history.replaceState:history.pushState).call(history,x,"",t),i||pr(O,L)}const b=h&&P?.id===h.id?P.fork:null;P?.fork&&!b?Le():(P=null,Z={element:void 0,href:void 0}),l.props.page.state=a;let E;if(le){const w=(await Promise.all(Array.from(gr,B=>B(p.navigation)))).filter(B=>typeof B=="function");if(w.length>0){let B=function(){w.forEach(re=>{ee.delete(re)})};w.push(B),w.forEach(re=>{ee.add(re)})}const x=p.navigation.to;v={...l.state,nav:{params:x.params,route:x.route,url:x.url}},l.props.page&&(l.props.page.url=t),!o&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const W=b&&await b;W?E=W.commit():(oe=null,st.$set(l.props),oe&&Object.assign(l.props.page,oe),zt(l.props.page),E=an?.()),Gt=!0}else await Xt(l,Ge,!1);const{activeElement:T}=document;if(await E,await Se(),await Se(),V!==c){p.reject(new Error("navigation aborted"));return}l.props.page&&oe&&Object.assign(l.props.page,oe);let y=null;if(St){const w=n?n.scroll:r?J():null;w?scrollTo(w.x,w.y):(y=t.hash&&document.getElementById(tn(t)))?y.scrollIntoView():scrollTo(0,0)}const $=document.activeElement!==T&&document.activeElement!==document.body;!o&&!$&&xr(t,!y),St=!0,fe=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=J()),ee.forEach(w=>w(p.navigation)),e==="popstate"&&Jt(L),F.navigating.set(se.current=null)}async function Ke(e,t,n,o,r){if(e.origin===je&&e.pathname===location.pathname&&!Yt)return await lt({status:o,error:n,url:e,route:t});if(R&&o!==404){console.error("An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)");debugger}return await ce(e,r)}let Z={element:void 0,href:void 0};function Er(){let e,t;D.addEventListener("mousemove",a=>{const s=a.target;clearTimeout(e),e=setTimeout(()=>{r(s,Y.hover)},20)});function n(a){a.defaultPrevented||r(a.composedPath()[0],Y.tap)}D.addEventListener("mousedown",n),D.addEventListener("touchstart",n,{passive:!0});const o=new IntersectionObserver(a=>{for(const s of a)s.isIntersecting&&(ze(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function r(a,s){const c=Dt(a,D),f=c===Z.element&&c?.href===Z.href&&s>=t;if(!c||f)return;const{url:u,external:g,download:d}=He(c,I,S.hash);if(g||d)return;const h=$e(c),p=u&&xe(v.url)===xe(u);if(!(h.reload||p))if(s<=h.preload_data){Z={element:c,href:c.href},t=Y.tap;const m=await Ce(u,!1);if(!m)return;R?At(m).then(_=>{_.type==="loaded"&&_.state.error&&console.warn(`Preloading data for ${m.url.pathname} failed with the following error: ${_.state.error.message}
|
|
12
|
-
If this error is transient, you can ignore it. Otherwise, consider disabling preloading for this route. This route was preloaded due to a data-sveltekit-preload-data attribute. See https://svelte.dev/docs/kit/link-options for more info`)}):At(m)}else s<=h.preload_code&&(Z={element:c,href:c.href},t=s,
|
|
11
|
+
</div>`),globalThis.__sveltekit_1okztzq.data){const{q:i={},p:a={},l:s={},f:c={}}=globalThis.__sveltekit_1okztzq.data;for(const f in i)i[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in a)a[f]}document.URL!==location.href&&(location.href=location.href),S=e,await e.hooks.init?.(),rt=kn(e),D=document.documentElement,Ge=t,Ye=e.nodes[0],Ae=e.nodes[1],Ye(),Ae(),O=history.state?.[G],L=history.state?.[ne],O||(O=L=Date.now(),history.replaceState({...history.state,[G]:O,[ne]:L},""));const o=F[O];function r(){o&&(history.scrollRestoration="manual",scrollTo(o.x,o.y))}n?(r(),await Pr(Ge,n)):(await te({type:"enter",url:Ue(S.hash?jr(new URL(location.href)):location.href),replace_state:!0}),r()),Lr()}function _r(){Re.length=0,at=!1}function Kt(e){Te.some(t=>t?.snapshot)&&(ie[e]=Te.map(t=>t?.snapshot?.capture()))}function Jt(e){ie[e]?.forEach((t,n)=>{Te[n]?.snapshot?.restore(t)})}function $t(){nt(O),pt(Ut,F),Kt(L),pt(jt,ie)}async function Wt(e,t,n,o){let r,i;t.invalidateAll&&Le(),await te({type:"goto",url:Ue(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:o,accept:()=>{if(t.invalidateAll){at=!0,r=new Set;for(const[a,s]of Et)for(const[c,f]of s)f.resource?.reset(),r.add(be(a,c));i=new Set;for(const[a,s]of Ot)for(const c of s.keys())i.add(be(a,c))}t.invalidate&&t.invalidate.forEach(Rr)}}),t.invalidateAll&&Se().then(Se).then(()=>{for(const[a,s]of Et)for(const[c,{resource:f}]of s)r?.has(be(a,c))&&f.start();for(const[a,s]of Ot)for(const[c,{resource:f}]of s)i?.has(be(a,c))&&f.reconnect()})}async function At(e){if(e.id!==P?.id){Le();const t={};Pe.add(t),P={id:e.id,token:t,promise:Zt({...e,preload:t}).then(n=>(Pe.delete(t),n.type==="loaded"&&n.state.error&&Le(),n)),fork:null}}return P.promise}async function Fe(e){const t=(await Ce(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(n=>n[1]()))}async function Xt(e,t,n){const o={params:v.params,route:{id:v.route?.id??null},url:new URL(location.href)};if(v={...e.state,nav:o},Ft(e.props.page),st=new S.root({target:t,props:{...e.props,stores:V,components:Te},hydrate:n,sync:!1,transformError:void 0}),await Promise.resolve(),n){const r={from:null,to:{...o,scroll:F[O]??J()},willUnload:!1,type:"enter",complete:Promise.resolve()};ee.forEach(i=>i(r))}Jt(L),le=!0}async function Ie({url:e,params:t,branch:n,errors:o,status:r,error:i,route:a,form:s}){let c="never";if(I&&(e.pathname===I||e.pathname===I+"/"))c="always";else for(const p of n)p?.slash!==void 0&&(c=p.slash);e.pathname=cn(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:n,error:i,route:a},props:{constructors:cr(n).map(p=>p.node.component),page:De(A)}};s!==void 0&&(f.props.form=s);let u={},g=!A,d=0;for(let p=0;p<Math.max(n.length,v.branch.length);p+=1){const m=n[p],_=v.branch[p];m?.data!==_?.data&&(g=!0),m&&(u={...u,...m.data},g&&(f.props[`data_${d}`]=u),d+=1)}return(!v.url||e.href!==v.url.href||v.error!==i||s!==void 0&&s!==A.form||g)&&(f.props.page={error:i,params:t,route:{id:a?.id??null},state:{},status:r,url:new URL(e),form:s??null,data:g?u:A.data}),f}async function it({loader:e,parent:t,url:n,params:o,route:r,server_data_node:i}){let a=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();if(R&&(ir(c.universal),c.universal&&S.hash)){const f=Object.keys(c.universal).filter(u=>u!=="load");if(f.length>0)throw new Error(`Page options are ignored when \`router.type === 'hash'\` (${r.id} has ${f.filter(u=>u!=="load").map(u=>`'${u}'`).join(", ")})`)}return{node:c,loader:e,server:i,universal:c.universal?.load?{type:"data",data:a,uses:s}:null,data:a??i?.data??null,slash:c.universal?.trailingSlash??i?.slash}}function yr(e,t,n){let o=e instanceof Request?e.url:e;const r=new URL(o,n);r.origin===n.origin&&(o=r.href.slice(n.origin.length));const i=le?gn(o,r.href,t):pn(o,t);return{resolved:r,promise:i}}function mr(e,t,n,o,r,i){if(at)return!0;if(!r)return!1;if(r.parent&&e||r.route&&t||r.url&&n)return!0;for(const a of r.search_params)if(o.has(a))return!0;for(const a of r.params)if(i[a]!==v.params[a])return!0;for(const a of r.dependencies)if(Re.some(s=>s(new URL(a))))return!0;return!1}function ct(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function wr(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const o of n){const r=e.searchParams.getAll(o),i=t.searchParams.getAll(o);r.every(a=>i.includes(a))&&i.every(a=>r.includes(a))&&n.delete(o)}return n}function vr({error:e,url:t,route:n,params:o}){return{type:"loaded",state:{error:e,url:t,route:n,params:o,branch:[]},props:{page:De(A),constructors:[]}}}async function Zt({id:e,invalidating:t,url:n,params:o,route:r,preload:i}){if(P?.id===e)return Pe.delete(P.token),P.promise;const{errors:a,layouts:s,leaf:c}=r,f=[...s,c];a.forEach(_=>_?.().catch(M)),f.forEach(_=>_?.[1]().catch(M));const u=v.url?e!==xe(v.url):!1,g=v.route?r.id!==v.route.id:!1,d=wr(v.url,n);let h=!1;const p=f.map(async(_,l)=>{if(!_)return;const b=v.branch[l];return _[1]===b?.loader&&!mr(h,g,u,d,b.universal?.uses,o)?b:(h=!0,it({loader:_[1],url:n,params:o,route:r,parent:async()=>{const T={};for(let y=0;y<l;y+=1)Object.assign(T,(await p[y])?.data);return T},server_data_node:ct(_[0]?{type:"skip"}:null,_[0]?b?.server:void 0)}))});for(const _ of p)_.catch(M);const m=[];for(let _=0;_<f.length;_+=1)if(f[_])try{m.push(await p[_])}catch(l){if(l instanceof Ze)return{type:"redirect",location:l.location};if(i&&Pe.has(i))return vr({error:await K(l,{params:o,url:n,route:{id:r.id}}),url:n,params:o,route:r});let b=tt(l),E;if(l instanceof Xe)E=l.body;else{if(await V.updated.check())return await Ht(),await ce(n);E=await K(l,{params:o,url:n,route:{id:r.id}})}const T=await br(_,m,a);return T?Ie({url:n,params:o,branch:m.slice(0,T.idx).concat(T.node),errors:a,status:b,error:E,route:r}):await Ke(n,{id:r.id},E,b)}else m.push(void 0);return Ie({url:n,params:o,branch:m,errors:a,status:200,error:null,route:r,form:t?void 0:null})}async function br(e,t,n){for(;e--;)if(n[e]){let o=e;for(;!t[o];)o-=1;try{return{idx:o+1,node:{node:await n[e](),loader:n[e],data:{},server:null,universal:null}}}catch{continue}}}async function lt({status:e,error:t,url:n,route:o}){const r={};let i=null;try{const a=await it({loader:Ye,url:n,params:r,route:o,parent:()=>Promise.resolve({}),server_data_node:ct(i)}),s={node:await Ae(),loader:Ae,universal:null,server:null,data:null};return Ie({url:n,params:r,branch:[a,s],status:e,error:t,errors:[],route:null})}catch(a){if(a instanceof Ze){await Wt(new URL(a.location,location.href),{},0);return}const s=await S.get_error_template(),c=await K(a,{url:n,params:r,route:o}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),u=s({status:e,message:f}),g=new DOMParser().parseFromString(u,"text/html");throw document.documentElement.replaceChild(document.adoptNode(g.head),document.head),document.documentElement.replaceChild(document.adoptNode(g.body),document.body),a}}async function kr(e){const t=e.href;if(ke.has(t))return ke.get(t);let n;try{const o=(async()=>{let r=await S.hooks.reroute({url:new URL(e),fetch:async(i,a)=>yr(i,a,e).promise})??e;if(typeof r=="string"){const i=new URL(e);S.hash?i.hash=r:i.pathname=r,r=i}return r})();ke.set(t,o),n=await o}catch(o){if(ke.delete(t),R){console.error(o);debugger}return}return n}async function Ce(e,t){if(e&&!Ne(e,I,S.hash)){const n=await kr(e);if(!n)return;const o=Sr(n);for(const r of rt){const i=r.exec(o);if(i)return{id:xe(e),invalidating:t,route:r,params:fn(i),url:e}}}}function Sr(e){return ln(S.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(I.length))||"/"}function xe(e){return(S.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function Qt({url:e,type:t,intent:n,delta:o,event:r,scroll:i}){let a=!1;const s=ft(v,n,e,t,i??null);o!==void 0&&(s.navigation.delta=o),r!==void 0&&(s.navigation.event=r);const c={...s.navigation,cancel:()=>{a=!0,s.reject(new Error("navigation cancelled"))}};return fe||ot.forEach(f=>f(c)),a?null:s}async function te({type:e,url:t,popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a={},redirect_count:s=0,nav_token:c={},accept:f=M,block:u=M,event:g}){const d=z;z=c;const h=await Ce(t,!1),p=e==="enter"?ft(v,h,t,e):Qt({url:t,type:e,delta:n?.delta,intent:h,scroll:n?.scroll,event:g});if(!p){u(),z===c&&(z=d);return}const m=O,_=L;f(),fe=!0,le&&p.navigation.type!=="enter"&&V.navigating.set(se.current=p.navigation);let l=h&&await Zt(h);if(!l)if(Ne(t,I,S.hash))if(R&&S.hash)l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname} (did you forget the hash?)`),{url:t,params:{},route:{id:null}}),404,i);else return await ce(t,i);else l=await Ke(t,{id:null},await K(new Ee(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,i);if(t=h?.url||t,z!==c){p.reject(new Error("navigation aborted"));return}if(!l)return;if(l.type==="redirect"){if(s<20){await te({type:e,url:new URL(l.location,t),popped:n,keepfocus:o,noscroll:r,replace_state:i,state:a,redirect_count:s+1,nav_token:c}),p.fulfil(void 0);return}if(l=await lt({status:500,error:await K(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!l)return}else if(l.props.page.status>=400&&await V.updated.check())return await Ht(),await ce(t,i);if(_r(),nt(m),Kt(_),l.props.page.url.pathname!==t.pathname&&(t.pathname=l.props.page.url.pathname),a=n?n.state:a,!n){const w=i?0:1,x={[G]:O+=w,[ne]:L+=w,[Qe]:a};(i?history.replaceState:history.pushState).call(history,x,"",t),i||pr(O,L)}const b=h&&P?.id===h.id?P.fork:null;P?.fork&&!b?Le():(P=null,Z={element:void 0,href:void 0}),l.props.page.state=a;let E;if(le){const w=(await Promise.all(Array.from(gr,B=>B(p.navigation)))).filter(B=>typeof B=="function");if(w.length>0){let B=function(){w.forEach(re=>{ee.delete(re)})};w.push(B),w.forEach(re=>{ee.add(re)})}const x=p.navigation.to;v={...l.state,nav:{params:x.params,route:x.route,url:x.url}},l.props.page&&(l.props.page.url=t),!o&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const W=b&&await b;W?E=W.commit():(oe=null,st.$set(l.props),oe&&Object.assign(l.props.page,oe),Ft(l.props.page),E=an?.()),Gt=!0}else await Xt(l,Ge,!1);const{activeElement:T}=document;if(await E,await Se(),await Se(),z!==c){p.reject(new Error("navigation aborted"));return}l.props.page&&oe&&Object.assign(l.props.page,oe);let y=null;if(St){const w=n?n.scroll:r?J():null;w?scrollTo(w.x,w.y):(y=t.hash&&document.getElementById(tn(t)))?y.scrollIntoView():scrollTo(0,0)}const $=document.activeElement!==T&&document.activeElement!==document.body;!o&&!$&&xr(t,!y),St=!0,fe=!1,p.fulfil(void 0),p.navigation.to&&(p.navigation.to.scroll=J()),ee.forEach(w=>w(p.navigation)),e==="popstate"&&Jt(L),V.navigating.set(se.current=null)}async function Ke(e,t,n,o,r){if(e.origin===je&&e.pathname===location.pathname&&!Yt)return await lt({status:o,error:n,url:e,route:t});if(R&&o!==404){console.error("An error occurred while loading the page. This will cause a full page reload. (This message will only appear during development.)");debugger}return await ce(e,r)}let Z={element:void 0,href:void 0};function Er(){let e,t;D.addEventListener("mousemove",a=>{const s=a.target;clearTimeout(e),e=setTimeout(()=>{r(s,Y.hover)},20)});function n(a){a.defaultPrevented||r(a.composedPath()[0],Y.tap)}D.addEventListener("mousedown",n),D.addEventListener("touchstart",n,{passive:!0});const o=new IntersectionObserver(a=>{for(const s of a)s.isIntersecting&&(Fe(new URL(s.target.href)),o.unobserve(s.target))},{threshold:0});async function r(a,s){const c=Dt(a,D),f=c===Z.element&&c?.href===Z.href&&s>=t;if(!c||f)return;const{url:u,external:g,download:d}=He(c,I,S.hash);if(g||d)return;const h=$e(c),p=u&&xe(v.url)===xe(u);if(!(h.reload||p))if(s<=h.preload_data){Z={element:c,href:c.href},t=Y.tap;const m=await Ce(u,!1);if(!m)return;R?At(m).then(_=>{_.type==="loaded"&&_.state.error&&console.warn(`Preloading data for ${m.url.pathname} failed with the following error: ${_.state.error.message}
|
|
12
|
+
If this error is transient, you can ignore it. Otherwise, consider disabling preloading for this route. This route was preloaded due to a data-sveltekit-preload-data attribute. See https://svelte.dev/docs/kit/link-options for more info`)}):At(m)}else s<=h.preload_code&&(Z={element:c,href:c.href},t=s,Fe(u))}function i(){o.disconnect();for(const a of D.querySelectorAll("a")){const{url:s,external:c,download:f}=He(a,I,S.hash);if(c||f)continue;const u=$e(a);u.reload||(u.preload_code===Y.viewport&&o.observe(a),u.preload_code===Y.eager&&Fe(s))}}ee.add(i),i()}function K(e,t){if(e instanceof Xe)return e.body;R&&console.warn("The next HMR update will cause the page to reload");const n=tt(e),o=lr(e);return S.hooks.handleError({error:e,event:t,status:n,message:o})??{message:o}}function en(e,t){ur(()=>(e.add(t),()=>{e.delete(t)}))}function Or(e){en(ee,e)}function $r(e){en(ot,e)}function Ar(e,t={}){return e=new URL(Ue(e)),e.origin!==je?Promise.reject(new Error(R?`Cannot use \`goto\` with an external URL. Use \`window.location = "${e}"\` instead`:"goto: invalid URL")):Wt(e,t,0)}function Rr(e){if(typeof e=="function")Re.push(e);else{const{href:t}=new URL(e,location.href);Re.push(n=>n.href===t)}}function Tr(e,t){if(R){if(!le)throw new Error("Cannot call replaceState(...) before router is initialized");try{tr(t)}catch(o){throw new Error(`Could not serialize state${o.path}`,{cause:o})}}const n={[G]:O,[ne]:L,[Nt]:A.url.href,[Qe]:t};history.replaceState(n,"",Ue(e)),A.state=t,st.$set({page:dr(()=>De(A))})}function Lr(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if($t(),!fe){const o=ft(v,void 0,null,"leave"),r={...o.navigation,cancel:()=>{n=!0,o.reject(new Error("navigation cancelled"))}};ot.forEach(i=>i(r))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&$t()}),navigator.connection?.saveData||Er(),D.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Dt(t.composedPath()[0],D);if(!n)return;const{url:o,external:r,target:i,download:a}=He(n,I,S.hash);if(!o)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const s=$e(n);if(!(n instanceof SVGAElement)&&o.protocol!==location.protocol&&!(o.protocol==="https:"||o.protocol==="http:")||a)return;const[f,u]=(S.hash?o.hash.replace(/^#/,""):o.href).split("#"),g=f===ze(location);if(r||s.reload&&(!g||!u)){Qt({url:o,type:"link",event:t})?fe=!0:t.preventDefault();return}if(u!==void 0&&g){const[,d]=v.url.href.split("#");if(d===u){if(t.preventDefault(),u===""||u==="top"&&n.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const h=n.ownerDocument.getElementById(decodeURIComponent(u));h&&(h.scrollIntoView(),h.focus())}return}if(ae=!0,nt(O),e(o),!s.replace_state)return;ae=!1}t.preventDefault(),await new Promise(d=>{requestAnimationFrame(()=>{setTimeout(d,0)}),setTimeout(d,100)}),await te({type:"link",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href,event:t})}),D.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),o=t.submitter;if((o?.formTarget||n.target)==="_blank"||(o?.formMethod||n.method)!=="get")return;const a=new URL(o?.hasAttribute("formaction")&&o?.formAction||n.action);if(Ne(a,I,!1))return;const s=t.target,c=$e(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,o);a.search=new URLSearchParams(f).toString(),te({type:"form",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Je){if(t.state?.[G]){const n=t.state[G];if(z={},n===O)return;const o=F[n],r=t.state[Qe]??{},i=new URL(t.state[Nt]??location.href),a=t.state[ne],s=v.url?ze(location)===ze(v.url):!1;if(a===L&&(Gt||s)){r!==A.state&&(A.state=r),e(i),F[O]=J(),o&&scrollTo(o.x,o.y),O=n;return}const f=n-O;await te({type:"popstate",url:i,popped:{state:r,scroll:o,delta:f},accept:()=>{O=n,L=a},block:()=>{history.go(-f)},nav_token:z,event:t})}else if(!ae){const n=new URL(location.href);e(n),S.hash&&location.reload()}}}),addEventListener("hashchange",()=>{ae&&(ae=!1,history.replaceState({...history.state,[G]:++O,[ne]:L},"",location.href))});for(const t of document.querySelectorAll("link"))hr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&V.navigating.set(se.current=null)});function e(t){v.url=A.url=t,V.page.set(De(A)),V.page.notify()}}async function Pr(e,{status:t=200,error:n,node_ids:o,params:r,route:i,server_route:a,data:s,form:c}){Yt=!0;const f=new URL(location.href);let u;({params:r={},route:i={id:null}}=await Ce(f,!1)||{}),u=rt.find(({id:h})=>h===i.id);let g,d=!0;try{const h=o.map(async(m,_)=>{const l=s[_];return l?.uses&&(l.uses=Ir(l.uses)),it({loader:S.nodes[m],url:f,params:r,route:i,parent:async()=>{const b={};for(let E=0;E<_;E+=1)Object.assign(b,(await h[E]).data);return b},server_data_node:ct(l)})}),p=await Promise.all(h);if(u){const m=u.layouts;for(let _=0;_<m.length;_++)m[_]||p.splice(_,0,void 0)}g=await Ie({url:f,params:r,branch:p,status:t,error:n,errors:u?.errors,form:c,route:u??null})}catch(h){if(h instanceof Ze)return await ce(new URL(h.location,location.href));g=await lt({status:tt(h),error:await K(h,{url:f,params:r,route:i}),url:f,route:i}),e.textContent="",d=!1}g&&(g.props.page&&(g.props.page.state={}),await Xt(g,e,d))}function Ir(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Je=!1;function xr(e,t=!0){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const o=tn(e);if(o&&document.getElementById(o)){const{x:i,y:a}=J();setTimeout(()=>{const s=history.state;Je=!0,location.replace(new URL(`#${o}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(i,a),Je=!1})}else{const i=document.body,a=i.getAttribute("tabindex");i.tabIndex=-1,i.focus({preventScroll:!0,focusVisible:!1}),a!==null?i.setAttribute("tabindex",a):i.removeAttribute("tabindex")}const r=getSelection();if(r&&r.type!=="None"){const i=[];for(let a=0;a<r.rangeCount;a+=1)i.push(r.getRangeAt(a));setTimeout(()=>{if(r.rangeCount===i.length){for(let a=0;a<r.rangeCount;a+=1){const s=i[a],c=r.getRangeAt(a);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}r.removeAllRanges()}})}}}function ft(e,t,n,o,r=null){let i,a;const s=new Promise((f,u)=>{i=f,a=u});return s.catch(M),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:J()},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n,scroll:r},willUnload:!t,type:o,complete:s},fulfil:i,reject:a}}function De(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function jr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function tn(e){let t;if(S.hash){const[,,n]=e.hash.split("#",3);t=n??""}else t=e.hash.slice(1);return decodeURIComponent(t)}if(R){const e=console.warn;console.warn=function(...n){n.length===1&&/<(Layout|Page|Error)(_[\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(n[0])||e(...n)}}const Mr=Object.freeze(Object.defineProperty({__proto__:null,afterNavigate:Or,beforeNavigate:$r,goto:Ar,replaceState:Tr},Symbol.toStringTag,{value:"Module"}));export{Or as a,$r as b,Pt as c,V as d,Ar as g,Cr as l,Mr as n,A as p,Tr as r,zr as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{bp as y,t as wt,br as H,a_ as D,bz as xt,bt as Tt,b as kt,bv as N}from"./CGWRZzdk.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as F,c9 as f,aA as J,aB as T,a5 as I,bA as A,bl as P,b_ as L,bO as S}from"./DYhIMPy1.js";import{G as St}from"./DHP1DFPI.js";import{c as Wt}from"./nmrokYzj.js";import{C as V}from"./DypB-Dwi.js";import{L as $t}from"./CSiaiLHL.js";import"
|
|
1
|
+
import{bp as y,t as wt,br as H,a_ as D,bz as xt,bt as Tt,b as kt,bv as N}from"./CGWRZzdk.js";import{bs as It,ca as Q,aD as t,a7 as At,ay as X,W as w,bn as Pt,bS as F,c9 as f,aA as J,aB as T,a5 as I,bA as A,bl as P,b_ as L,bO as S}from"./DYhIMPy1.js";import{G as St}from"./DHP1DFPI.js";import{c as Wt}from"./nmrokYzj.js";import{C as V}from"./DypB-Dwi.js";import{L as $t}from"./CSiaiLHL.js";import"./gJDgmD_2.js";import"./BjnZ1Xf3.js";import"./BEyWfhqM.js";import{bc as Dt}from"./By0eqGj-.js";import"./KJX0Kw6L.js";import"./BdUSoBxL.js";import{Ix as B,J2 as Nt,Jj as Ft,J7 as Lt,uR as Bt}from"./CicdOSYm.js";import{T as Et}from"./juQAMcx2.js";import{g as Ut}from"./DfN8_dcw.js";import{dr as Ot}from"./CPYWKVyq.js";import{bR as jt,bL as Rt,b6 as Ht}from"./CTXbgIPd.js";import"./fCEIPyv5.js";import{M as Jt}from"./DIumxlqP.js";import{V as Mt}from"./CMO4ot9F.js";import{O as Vt}from"./BOa-AN22.js";import{c as Gt}from"./ChTqQfQN.js";import{i as qt}from"./H2jLkRRS.js";const x=new $t({category:"change-converters"});function M(e,n){return e.path||e.file||e.filePath||e.relativePath||n?.filePath}function Y(e,n){return{additions:e.additions??n?.additions??0,deletions:e.deletions??n?.deletions??0,binary:e.binary??!1}}function zt(e,n){if(n.actor?.type==="agent"&&n.actor.id){const r=n.actor;return{agentId:r.id,agentName:r.name||y.fileTracking_changeTimeline_agent_fallback(),sessionId:r.sessionId||e.sessionId||"",turnNumber:r.turnNumber??e.turnNumber??0,messageId:r.messageId,timestamp:new Date(n.timestamp).getTime()}}if(e.agentId)return{agentId:e.agentId,agentName:e.agentName||y.fileTracking_changeTimeline_agent_fallback(),sessionId:e.sessionId||"",turnNumber:e.turnNumber||0,timestamp:new Date(n.timestamp).getTime()}}function Z(e,n){return{timestamp:new Date(e.timestamp).getTime(),manual:e.actor?.type==="user",agent:zt(n,e)}}function tt(e,n){return{oldContent:n?.oldContent??e.oldContent,newContent:n?.newContent??e.newContent,diff:e.diff??n?.diff}}function et(e,n,r){return r!==void 0?`${e}-${n}-${r}`:`${e}-${n}`}function Kt(e){try{const n=e.data||{},r=e.codeChange;x.debug("Converting event to TrackedChange",{eventType:e.type,eventId:e.id,hasData:!!n,hasCodeChange:!!r});const c=M(n,r);if(e.type.startsWith("file:")&&c){const d=Y(n,r);return x.debug("Creating TrackedChange for file event",{filePath:c,stats:d,hasDiff:!!(n.diff||r?.diff)}),[{id:et("event",e.id),file:c,relativePath:c,stage:V.Unstaged,stats:d,attribution:Z(e,n),content:tt(n,r)}]}return(e.type==="agent:completed"||e.type.startsWith("agent:"))&&n.fileChanges&&Array.isArray(n.fileChanges)?(x.debug("Creating TrackedChanges for agent event",{eventType:e.type,fileChangesCount:n.fileChanges.length,agentId:n.agentId}),n.fileChanges.filter(d=>M(d)?!0:(x.warn("Skipping file change without path",{change:d}),!1)).map((d,s)=>{const v=M(d);if(!v)throw new Error("file change without path");return{id:et("event",e.id,s),file:v,relativePath:v,stage:V.Unstaged,stats:Y(d),attribution:Z(e,n),content:tt(d)}})):(x.debug("No TrackedChanges created for event",{eventType:e.type,eventId:e.id,hasFilePath:!!c,hasFileChanges:!!(n.fileChanges&&Array.isArray(n.fileChanges))}),[])}catch(n){return x.error("Error converting event to TrackedChange",n instanceof Error?n:new Error(String(n)),{eventType:e.type,eventId:e.id}),[]}}function Qt(e){if(!e)return{oldContent:"",newContent:""};const n=[],r=[],c=e.split(`
|
|
2
2
|
`);c.length>0&&c[c.length-1]===""&&c.pop();let d=!1;for(const s of c)if(!(s.startsWith("diff --git")||s.startsWith("index ")||s.startsWith("--- ")||s.startsWith("+++ ")||s.startsWith("\"))){if(s.startsWith("@@")){d=!0;continue}d&&(s.startsWith("+")?r.push(s.slice(1)):s.startsWith("-")?n.push(s.slice(1)):s.startsWith(" ")?(n.push(s.slice(1)),r.push(s.slice(1))):s===""&&(n.push(""),r.push("")))}return{oldContent:n.join(`
|
|
3
3
|
`),newContent:r.join(`
|
|
4
4
|
`)}}var Xt=T("<!> <!>",1),Yt=T('<div class="flex items-center gap-1.5 px-3 py-1.5 text-xs text-subtle bg-muted/50 border-b border-border"><span> </span></div>'),Zt=T('<div class="flex flex-col h-full"><!> <div class="flex-1 min-h-0"><!></div></div>'),te=T('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <p class="text-xs opacity-70"> </p></div>'),ee=T('<p class="text-xs opacity-70"> </p>'),ne=T('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p> <!></div>');function ae(e,n){if(new.target)return wt({component:ae,...e});It(n,!0);const r=()=>N(lt,"$workspace",v),c=()=>N(st,"$foldUnchanged",v),d=()=>N(rt,"$lineWrapping",v),s=()=>N(ot,"$diffSideBySide",v),[v,nt]=Tt(),at=a=>{Mt(a,{embedded:!0,get foldEnabled(){return c()},onToggleFold:()=>B.dispatch(Lt()),get wrapEnabled(){return d()},onToggleWrap:()=>B.dispatch(Ft()),get splitEnabled(){return s()},onToggleSplit:()=>B.dispatch(Nt())})},it=a=>{var i=Xt(),g=X(i);{let m=f(()=>y.layout_diffHeader_goToFile_tooltip());Wt(g,()=>Jt,(l,h)=>{h(l,{get icon(){return Dt},get label(){return t(m)},onclick:$=>ut()})})}var C=F(g,2);{var b=m=>{Vt(m,{get filePath(){return t(q)},get workspaceId(){return _()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return t(O)}})};D(C,m=>{t(q)&&m(b)})}w(a,i)},rt=jt(),st=Rt(),ot=Ht(),dt=Gt("ActivityChangesTabType");let E=H(n,"tab",7),_=H(n,"workspaceId",7),U=H(n,"isActive",7);const G=Ut(),lt=Ot(_()),O=f(()=>r()?.worktreePath||r()?.repositoryPath||void 0),o=f(()=>E().data?.event),ct=f(()=>t(o)?Kt(t(o)):[]),u=f(()=>t(ct)[0]),p=f(()=>t(u)?.relativePath||t(u)?.file||null),q=f(()=>t(p)&&t(O)?qt(t(p))?t(p):`${t(O)}/${t(p)}`:null),j=f(()=>()=>{if(!t(o))return null;const a=t(o).data,i=t(o).codeChange;return a?.diff||i?.diff||t(u)?.content?.diff||null}),z=f(()=>()=>t(u)?.content?!!(t(u).content.oldContent&&t(u).content.newContent):!1);function ft(a){if(!a)return;const i=a.match(/@@ -(\d+)/);return i?parseInt(i[1],10):void 0}const k=f(()=>{if(t(z)()&&t(u)?.content)return{oldContent:t(u).content.oldContent??"",newContent:t(u).content.newContent??""};const a=t(j)();return a?Qt(a):null}),W=f(()=>ft(t(j)())),pt=f(()=>t(W)!==void 0&&t(W)>1),gt=f(()=>{const a=t(p)||"",i=t(o)?.data||{};return{id:`activity-${t(o)?.id||"unknown"}-${a}`,file:a,relativePath:a,stage:V.Committed,status:t(u)?.status||"modified",stats:{additions:i?.additions||t(u)?.stats?.additions||0,deletions:i?.deletions||t(u)?.stats?.deletions||0},attribution:{timestamp:t(o)?.timestamp?new Date(t(o).timestamp).getTime():Date.now()},content:t(k)?{oldContent:t(k).oldContent,newContent:t(k).newContent}:void 0}});function ut(a){if(!t(p))return;const g={type:"file",title:t(p).split("/").pop()||t(p),closable:!0,filePath:t(p),workspaceId:_()};B.dispatch(Bt(_(),g))}Q(()=>{!G||!U()||G.registerActions({display:at,actions:it})}),Q(()=>{if(t(o)){const a=t(o).data;dt.debug("Activity event diff info",{eventType:t(o).type,eventId:t(o).id,filePath:t(p),hasDiffString:!!t(j)(),hasOldNewContent:t(z)(),hasDiffContents:!!t(k),dataAdditions:a?.additions,dataDeletions:a?.deletions})}});var ht={get tab(){return E()},set tab(a){E(a),J()},get workspaceId(){return _()},set workspaceId(a){_(a),J()},get isActive(){return U()},set isActive(a){U(a),J()},$set:xt,$on:(a,i)=>kt(n,a,i)},K=At(),mt=X(K);{var vt=a=>{var i=Zt(),g=I(i);{var C=l=>{var h=Yt(),$=I(h),R=P($,!0);A(h),L(_t=>S(R,_t),[()=>y.layout_activityChanges_partialDiff_label({line:t(W)??0})]),w(l,h)};D(g,l=>{t(pt)&&l(C)})}var b=F(g,2),m=I(b);St(m,()=>`${t(o)?.id}-${t(p)}`,l=>{{let h=f(()=>s()?"split":"unified");Et(l,{get change(){return t(gt)},get workspaceId(){return _()},get viewMode(){return t(h)},get foldUnchanged(){return c()},get lineWrapping(){return d()},get lineOffset(){return t(W)}})}}),A(b),A(i),w(a,i)},Ct=a=>{var i=te(),g=I(i),C=P(g,!0),b=F(g,2),m=P(b,!0);A(i),L((l,h)=>{S(C,l),S(m,h)},[()=>y.layout_activityChanges_noDiffStored_label(),()=>y.layout_activityChanges_diffNotCaptured_description()]),w(a,i)},bt=a=>{var i=ne(),g=I(i),C=P(g,!0),b=F(g,2);{var m=l=>{var h=ee(),$=P(h,!0);L(R=>S($,R),[()=>y.layout_activityChanges_eventType_label({type:t(o).type})]),w(l,h)};D(b,l=>{t(o)&&l(m)})}A(i),L(l=>S(C,l),[()=>y.layout_activityChanges_noChanges_label()]),w(a,i)};D(mt,a=>{t(p)&&t(k)?a(vt):t(p)?a(Ct,1):a(bt,-1)})}w(e,K);var yt=Pt(ht);return nt(),yt}export{ae as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as gt}from"./
|
|
1
|
+
import{g as gt}from"./B4yyNCE8.js";import{d as mt,g as lt,f as xt,e as kt}from"./9cPLPH_O.js";import{U as _t,aZ as vt,V as bt,a_ as wt,Y as Tt,b0 as St,b as s,X as R,aW as H,B as $t,r as Mt,d as it}from"./BdNiI0PS.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,W;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var X="";W=[];for(N in v[A])this.terminals_[N]&&N>yt&&W.push("'"+this.terminals_[N]+"'");_.showPosition?X="Parse error on line "+(C+1)+`:
|
|
2
2
|
`+_.showPosition()+`
|
|
3
3
|
Expecting `+W.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:W})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as C}from"./BAR7XkP3.js";import{Ix as o,Dr as E,CT as _,g as A,uK as O,uk as D,fV as H,C9 as L,Cr as P,Er as R,Cd as x}from"./CicdOSYm.js";import{aZ as p}from"./
|
|
1
|
+
import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as C}from"./BAR7XkP3.js";import{Ix as o,Dr as E,CT as _,g as A,uK as O,uk as D,fV as H,C9 as L,Cr as P,Er as R,Cd as x}from"./CicdOSYm.js";import{aZ as p}from"./CPYWKVyq.js";import{d as B}from"./B0Z-1lwJ.js";import{n as F}from"./C62A1TLT.js";import{o as W,e as q}from"./DGySvVDu.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],K=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function Y(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function I(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&Y(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function V(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await C.agents.getConversation(e,K,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(E(n)),o.dispatch(_(A,n)),o.dispatch(O("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await F(d):await W(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(D(s,{agentId:n}));const f=await I(n,a,t);f&&T(n,a);const i=f||await V(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||B("chat:open-message",b)},w)}export{ee as openMessage,V as seekConversationToMessage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{gS as O,gy as H,IL as P,Jy as U,CB as J,tq as K,um as N,A4 as V,A5 as Q,IJ as j,IK as z,A6 as X}from"./CicdOSYm.js";import{Q as f,o as Y,C as Z,e as M,l as S,p as ee,u as te,v as ae}from"./CnJe4S2a.js";import{g as ne}from"./
|
|
1
|
+
import{gS as O,gy as H,IL as P,Jy as U,CB as J,tq as K,um as N,A4 as V,A5 as Q,IJ as j,IK as z,A6 as X}from"./CicdOSYm.js";import{Q as f,o as Y,C as Z,e as M,l as S,p as ee,u as te,v as ae}from"./CnJe4S2a.js";import{g as ne}from"./CqhKSPXA.js";import{bp as l}from"./CGWRZzdk.js";import{b5 as oe,a9 as y}from"./KJX0Kw6L.js";import{B as h,S as I}from"./DHP1DFPI.js";import{aq as ce,ao as E}from"./CgWXj0YG.js";import{g as le}from"./BnrnoFjd.js";function A(e,a){const n=f.select(e.state),o=S.select(e.state);if(!o)return null;const c=n.indexOf(o),s=c+(a==="left"?-1:1),p=n[s];return c<0||!p?null:(e.dispatch(K(o,p,a==="left"?"before":"after")),o)}function B(e){const a=S.select(e);return a&&f.select(e).includes(a)?a:null}function m(e,a,n){const o=B(e.state),c=o?`/workspace/${o}`:ne(e.state);return a!==c&&n(c),o}function se(e,a,n,o){return e.dispatch(O(a)),m(e,n,o),a}function W(e,a){const o=a.match(/^\/workspace\/([^/]+)/)?.[1];return o?o==="new"?null:o:null}function R(e,a,n,o){if(n==="/")return F(e,a==="next"?0:"last",n,o);e.dispatch(a==="next"?j():z());const c=S.select(e.state);if(!c)return null;const s=`/workspace/${c}`;return n!==s&&o(s),c}function ie(e,a,n){const o=W(e,a);return o?se(e,o,a,n):null}function re(e,a,n){const o=W(e,a);if(!o)return null;const c=Y.select(e.state,o);if(!c)return null;const s=c.tabs.find(v=>v.id===c.activeTabId),p=c.tabs.length===0&&c.activeTabId===null,g=Z.select(e.state,o)>1&&(p||c.tabs.length===1&&s!==void 0&&s.closable!==!1);if((!s||s.closable===!1)&&!g)return null;const T=n??le(o)?.availableCanvasWidth??void 0;return e.dispatch(H(o,void 0,T)),s?.id??c.id}function pe(e,a){const n=e.state.panelLayout.byWorkspaceId[a];return!n||n.restoreStatus==="pending"?!1:M.select(e.state,a).length===0}function ue(e,a,n){B(e.state)||e.dispatch(P(0)),m(e,a,n)}function L(e,a,{navigate:n,closeWindow:o}){return o?(o(),"window"):(m(e,a,n),null)}function de(e,a,n){const o=W(e,a);return o?re(e,a,n.availableCanvasWidth)!==null?"panel":pe(e,o)?(e.dispatch(O(o)),f.select(e.state).length>0?(ue(e,a,n.navigate),"workspace"):L(e,a,n)??"workspace"):null:f.select(e.state).length>0?null:L(e,a,n)}function be(e,a,n){return e.dispatch(X()),m(e,a,n)}function fe(e,a,n){const o=a.match(/^\/workspace\/([^/]+)/),c=o&&o[1]!=="new"?o[1]:null,s=te.select(e.state),p=c?ae.select(e.state,c):null;return c&&p&&(!s||p.closedAt>=s.closedAt)?p.kind==="column"?(e.dispatch(V(c)),"column"):(e.dispatch(Q(c)),p.kind):s?(be(e,a,n),"workspace"):null}function ke(e,a){const n=a.match(/^\/workspace\/([^/]+)/),o=n&&n[1]!=="new"?n[1]:null;if(!o)return null;const c=N(o);return e.dispatch(c),ee.select(e.state,o)}function F(e,a,n,o){const c=f.select(e.state),s=a==="last"?c.length-1:a;return s<0||s>=c.length?null:(e.dispatch(P(s)),m(e,n,o))}function Ie({isMac:e,register:a,store:n,getCurrentPath:o,navigate:c,openNewWorkspace:s,getRailMachineIds:p,onCreateAgent:g,onCreateNote:T,onCreateTerminal:v,onCreateBrowser:G,onWorkspaceTabMoved:C,closeWindow:$,resolveBinding:_}){const r=e?{meta:!0}:{ctrl:!0},D=oe("TOGGLE_SIDEBAR",e),k=t=>()=>t(o()),q=t=>()=>{const i=o().match(/^\/workspace\/([^/]+)/);i?.[1]&&i[1]!=="new"&&t(i[1])},u=t=>_?{binding:()=>_(t)}:{},w=t=>_?.(t)??I[t];a({...u("global.new-space"),...r,key:"n",global:!0,description:l.workspace_shortcuts_newSpace_description(),action:s}),a({...u("panel.toggle-sidebar"),...D,global:!0,description:y.TOGGLE_SIDEBAR.label,action:()=>n.dispatch(U())}),a({...u("navigation.new-tab"),...r,key:"t",global:!0,description:l.workspace_shortcuts_newPanel_description(),action:k(t=>ke(n,t))});for(const[t,i,b,d]of[["workspace.new-agent","a",l.ui_shortcuts_newAgent_label(),g],["workspace.new-note","n",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_note_label()}),T],["workspace.new-terminal","t",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_terminal_label()}),v],["workspace.new-browser","b",l.layout_panelEmptyState_newItem_tooltip({label:l.layout_panelEmptyState_browser_label()}),G]])d&&a({...u(t),...r,key:i,alt:!0,global:!0,allowInTerminal:!0,description:b,action:q(d)});a({...u("navigation.close-tab"),...r,key:"w",global:!0,description:l.workspace_shortcuts_closePanelTab_description(),action:k(t=>de(n,t,{navigate:c,closeWindow:$}))}),a({...u("navigation.close-space-tab"),...r,key:"w",shift:!0,global:!0,description:l.workspace_shortcuts_closeSpaceTab_description(),action:k(t=>ie(n,t,c))}),a({...u("navigation.reopen-tab"),...r,key:"t",shift:!0,global:!0,description:l.workspace_shortcuts_reopenClosedTabOrSpace_description(),action:k(t=>fe(n,t,c))}),a({...u("navigation.move-space-tab-left"),...r,key:"ArrowLeft",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_LEFT.label,action:()=>{const t=A(n,"left");t&&C?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}}),a({...u("navigation.move-space-tab-right"),...r,key:"ArrowRight",alt:!0,shift:!0,global:!0,description:y.MOVE_SPACE_TAB_RIGHT.label,action:()=>{const t=A(n,"right");t&&C?.({workspaceId:t,position:f.select(n.state).indexOf(t)+1})}});for(const[t,i]of[["next",!1],["previous",!0]]){a({...u(t==="next"?"global.next-space":"global.previous-space"),key:"Tab",ctrl:!0,shift:i,global:!0,description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))});const b=t==="next"?"global.next-space-alt":"global.previous-space-alt";a({...u(b),...r,key:t==="next"?"}":"{",shift:!0,global:!0,allowInTerminal:!0,preferLocal:!0,enabled:d=>!_||!h(b,d,_,e),description:t==="next"?l.workspace_shortcuts_nextSpaceTab_description():l.workspace_shortcuts_previousSpaceTab_description(),action:k(d=>R(n,t,d,c))})}const x=t=>{t===1?c("/"):F(n,t===9?"last":t-2,o(),c)};for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>w("navigation.go-to-device").replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>E.select(n.state)&&!h("navigation.go-to-device",i,w,e),description:l.machineRail_nav_ariaLabel(),action:()=>{const i=p?.()??ce.select(n.state).map(d=>d.id),b=i[t===9?i.length-1:t-1];b&&n.dispatch(J(b))}});for(let t=1;t<=9;t++)a({...r,key:String(t),binding:()=>I["navigation.go-to-device"].replace(/([1-8])-9$/,String(t)),global:!0,allowInTerminal:!0,enabled:i=>!E.select(n.state)&&w("navigation.go-to-tab")===I["navigation.go-to-tab"]&&!h("navigation.go-to-device",i,w,e),description:l.ui_shortcuts_goToTab_label(),action:()=>x(t)});for(let t=1;t<=9;t++)a({binding:()=>w("navigation.go-to-tab").replace(/([1-8])-9$/,String(t)),...r,alt:!0,key:String(t),global:!0,allowInTerminal:!0,enabled:i=>!h("navigation.go-to-tab",i,w,e),description:t===1?l.home_navigation_description():t===9?l.workspace_shortcuts_selectLastSpaceTab_description():l.workspace_shortcuts_selectSpaceTab_description({digit:t}),action:()=>x(t)})}export{de as c,Ie as r};
|