@lunora/studio 1.0.0-alpha.392 → 1.0.0-alpha.393
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/dist/packem_chunks/SchemaViewer.mjs +1 -1
- package/dist/packem_chunks/architecture-panel.mjs +1 -1
- package/dist/packem_chunks/migrations-route.mjs +1 -1
- package/dist/packem_shared/diagram-export-panel-CleSOm6J.mjs +2 -0
- package/dist/packem_shared/{schema-diagram-Dbs7-jSJ.mjs → schema-diagram-BpIBRUm6.mjs} +1 -1
- package/dist/standalone/{chunk-7UPL6MQR.js → chunk-26RNXTU3.js} +1 -1
- package/dist/standalone/{chunk-KULAZ4W3.js → chunk-2Q4WVEPB.js} +1 -1
- package/dist/standalone/{chunk-7WGZSDRS.js → chunk-2ZNMZPPZ.js} +1 -1
- package/dist/standalone/{chunk-AZ6QNL6G.js → chunk-3BDGZAZD.js} +1 -1
- package/dist/standalone/{chunk-XHDCFSC6.js → chunk-3GBBYV7C.js} +1 -1
- package/dist/standalone/{chunk-PUTERXSU.js → chunk-4OWWWAMB.js} +1 -1
- package/dist/standalone/{chunk-MVWMRJD5.js → chunk-4WFEKKAZ.js} +1 -1
- package/dist/standalone/{chunk-AJFMXVR4.js → chunk-4Z2GLDF7.js} +1 -1
- package/dist/standalone/{chunk-5FFKYQHT.js → chunk-5BTQ4VV2.js} +1 -1
- package/dist/standalone/{chunk-ACCTEC6Y.js → chunk-5FHGTA7V.js} +1 -1
- package/dist/standalone/chunk-5J2UX2CO.js +1 -0
- package/dist/standalone/{chunk-ZIY53FID.js → chunk-5XQM44J7.js} +1 -1
- package/dist/standalone/{chunk-JPL3WAVW.js → chunk-5YEMXXQZ.js} +1 -1
- package/dist/standalone/chunk-6KIDLGYM.js +1 -0
- package/dist/standalone/{chunk-XKK5ABPC.js → chunk-7URG6FZD.js} +1 -1
- package/dist/standalone/{chunk-2XAJCKRP.js → chunk-7XZENNML.js} +1 -1
- package/dist/standalone/{chunk-BFEX6HDU.js → chunk-A33FOU2H.js} +1 -1
- package/dist/standalone/{chunk-S64V5MAT.js → chunk-A7L3PZEL.js} +1 -1
- package/dist/standalone/{chunk-22C2K5PS.js → chunk-ADOZBBJC.js} +1 -1
- package/dist/standalone/{chunk-COMBKDVY.js → chunk-AFUJCRWR.js} +1 -1
- package/dist/standalone/{chunk-EFEAOMEB.js → chunk-AWMHWVF7.js} +1 -1
- package/dist/standalone/chunk-B5YCFPYG.js +1 -0
- package/dist/standalone/{chunk-6YDEXJRE.js → chunk-BADHCM45.js} +1 -1
- package/dist/standalone/{chunk-PRVBT5AJ.js → chunk-BCT3KY76.js} +1 -1
- package/dist/standalone/{chunk-6WTQL4W2.js → chunk-BFV46XUH.js} +1 -1
- package/dist/standalone/chunk-BMGMBZAW.js +1 -0
- package/dist/standalone/{chunk-BKKE4QKE.js → chunk-BTHVLHPT.js} +1 -1
- package/dist/standalone/{chunk-RTD3B67U.js → chunk-BUYKTV27.js} +1 -1
- package/dist/standalone/{chunk-W7CLOQOU.js → chunk-BZP4FOID.js} +1 -1
- package/dist/standalone/{chunk-EXHVWM27.js → chunk-C4PC3TVC.js} +1 -1
- package/dist/standalone/chunk-C57KLL4U.js +1 -0
- package/dist/standalone/{chunk-MPGM6L64.js → chunk-CBFVQCWS.js} +1 -1
- package/dist/standalone/{chunk-B34JDEEO.js → chunk-D4CP2AUO.js} +1 -1
- package/dist/standalone/chunk-DMQVY5L7.js +1 -0
- package/dist/standalone/{chunk-XYWMQVZ2.js → chunk-DRSX6KR3.js} +1 -1
- package/dist/standalone/{chunk-RUCMNPTD.js → chunk-DUICFFES.js} +1 -1
- package/dist/standalone/{chunk-E3IVOZVW.js → chunk-E32WBVTB.js} +1 -1
- package/dist/standalone/{chunk-QIROOZNJ.js → chunk-EBGXOUAO.js} +1 -1
- package/dist/standalone/{chunk-QHI77TGI.js → chunk-ECXQQPVU.js} +1 -1
- package/dist/standalone/{chunk-725JLR43.js → chunk-EEDAK4NS.js} +1 -1
- package/dist/standalone/{chunk-6HZDJA4T.js → chunk-EH53XOVI.js} +1 -1
- package/dist/standalone/chunk-EOHXBC4U.js +1 -0
- package/dist/standalone/chunk-EOTHFTZG.js +1 -0
- package/dist/standalone/{chunk-QHVUXMRV.js → chunk-EUNTXABP.js} +1 -1
- package/dist/standalone/{chunk-TFH347JK.js → chunk-EYFAYJYD.js} +1 -1
- package/dist/standalone/{chunk-N7FOBAV3.js → chunk-F4NZZ3LK.js} +1 -1
- package/dist/standalone/chunk-FRKRT73U.js +1 -0
- package/dist/standalone/chunk-FSY7UKMG.js +1 -0
- package/dist/standalone/chunk-G4H5DPO6.js +33 -0
- package/dist/standalone/chunk-GATWEWRW.js +1 -0
- package/dist/standalone/{chunk-INDH6PRB.js → chunk-HCLUIJMW.js} +1 -1
- package/dist/standalone/{chunk-H2HGJURT.js → chunk-HE2XT2P7.js} +1 -1
- package/dist/standalone/{chunk-IFU5WQHZ.js → chunk-HLN47VMG.js} +1 -1
- package/dist/standalone/{chunk-3RCYH6UA.js → chunk-HPCOC223.js} +1 -1
- package/dist/standalone/chunk-HPQLTLIE.js +1 -0
- package/dist/standalone/chunk-HQJXQWJM.js +1 -0
- package/dist/standalone/{chunk-2CMHGYZ4.js → chunk-IC2PEYF7.js} +1 -1
- package/dist/standalone/chunk-J2SIGUHW.js +8 -0
- package/dist/standalone/chunk-JCJCUWVN.js +1 -0
- package/dist/standalone/chunk-JEJV6SVN.js +1 -0
- package/dist/standalone/chunk-JSVT5VBU.js +1 -0
- package/dist/standalone/chunk-JXW6H6LE.js +1 -0
- package/dist/standalone/{chunk-TJ76NZTD.js → chunk-K3HWPNON.js} +1 -1
- package/dist/standalone/{chunk-EYBS3Q7O.js → chunk-KEHWNM7Q.js} +1 -1
- package/dist/standalone/chunk-KJHVB5KM.js +1 -0
- package/dist/standalone/{chunk-NRWR25MB.js → chunk-KQ6YQP3Z.js} +1 -1
- package/dist/standalone/{chunk-NP6H72XD.js → chunk-LUHBGCMO.js} +1 -1
- package/dist/standalone/{chunk-UEONVTOV.js → chunk-M6WDFEUZ.js} +1 -1
- package/dist/standalone/{chunk-JKTAHFTK.js → chunk-MEYZIZGX.js} +1 -1
- package/dist/standalone/{chunk-RN32N6ZO.js → chunk-MLX6ME3Q.js} +1 -1
- package/dist/standalone/{chunk-QMZKJK53.js → chunk-N3MKRANL.js} +1 -1
- package/dist/standalone/{chunk-H6VTIXVB.js → chunk-N7TSSCGF.js} +1 -1
- package/dist/standalone/{chunk-RIHWRGFS.js → chunk-NFIFRB3W.js} +2 -2
- package/dist/standalone/{chunk-EZ5PVGPY.js → chunk-OEPNNICC.js} +1 -1
- package/dist/standalone/chunk-PLCYDHU3.js +7 -0
- package/dist/standalone/{chunk-7ELEYWJC.js → chunk-PT4GNZU7.js} +1 -1
- package/dist/standalone/chunk-PVQDT47U.js +1 -0
- package/dist/standalone/{chunk-7Z243YUE.js → chunk-PWHUPKZB.js} +1 -1
- package/dist/standalone/{chunk-YYJGL32M.js → chunk-QJ3M3IQW.js} +1 -1
- package/dist/standalone/{chunk-5D73GSOC.js → chunk-QRXJTY2S.js} +1 -1
- package/dist/standalone/chunk-R76ATTPC.js +1 -0
- package/dist/standalone/{chunk-DW5KLXPI.js → chunk-RIRXDYLA.js} +1 -1
- package/dist/standalone/{chunk-TJV64AXT.js → chunk-RRIRWVQY.js} +1 -1
- package/dist/standalone/{chunk-34USSEJN.js → chunk-S3HFNWDK.js} +1 -1
- package/dist/standalone/{chunk-PLDE5R5Y.js → chunk-S3WL3QZ2.js} +1 -1
- package/dist/standalone/{chunk-LMCBMC2V.js → chunk-SOESES7K.js} +1 -1
- package/dist/standalone/chunk-SQO3WGXH.js +3 -0
- package/dist/standalone/chunk-T6YZEXZO.js +1 -0
- package/dist/standalone/{chunk-HYAGF6A5.js → chunk-TAZRDWQE.js} +1 -1
- package/dist/standalone/{chunk-LEF32Q5K.js → chunk-TDF4VVIF.js} +1 -1
- package/dist/standalone/{chunk-TVJFKXX4.js → chunk-TIFTYP3Z.js} +1 -1
- package/dist/standalone/{chunk-TVDBLCXQ.js → chunk-TNQHMR76.js} +1 -1
- package/dist/standalone/{chunk-ANHHDGNL.js → chunk-U4ZQVQZA.js} +1 -1
- package/dist/standalone/{chunk-OOPMRFI2.js → chunk-UB6S6VYI.js} +1 -1
- package/dist/standalone/chunk-UG6ZNYWH.js +167 -0
- package/dist/standalone/{chunk-MA2KXG2L.js → chunk-UHFZV34O.js} +1 -1
- package/dist/standalone/{chunk-O46IV64X.js → chunk-V5ZKAZR6.js} +1 -1
- package/dist/standalone/chunk-VEG327ST.js +63 -0
- package/dist/standalone/{chunk-UDKKUJHY.js → chunk-VLQU4G6O.js} +1 -1
- package/dist/standalone/{chunk-4YZAJTU5.js → chunk-VND72OIC.js} +1 -1
- package/dist/standalone/{chunk-NPHGFVNE.js → chunk-VUMS4VIV.js} +1 -1
- package/dist/standalone/{chunk-N4P6WYRV.js → chunk-VUWHTKLJ.js} +1 -1
- package/dist/standalone/{chunk-ZHDO7DYM.js → chunk-WARWYT4K.js} +1 -1
- package/dist/standalone/{chunk-KMBE7RTC.js → chunk-WVAWKCNQ.js} +1 -1
- package/dist/standalone/{chunk-ZPQBVYNN.js → chunk-WY23EROJ.js} +1 -1
- package/dist/standalone/{chunk-D7UOJY4N.js → chunk-XWLURY4U.js} +1 -1
- package/dist/standalone/{chunk-3HVF5LKQ.js → chunk-Y4KOJPOW.js} +1 -1
- package/dist/standalone/chunk-YC3TUO5H.js +1 -0
- package/dist/standalone/{chunk-HWG2R642.js → chunk-YQEIOEEC.js} +1 -1
- package/dist/standalone/{chunk-O56AZXG6.js → chunk-YQI2YAD7.js} +1 -1
- package/dist/standalone/{chunk-FNBNPTCM.js → chunk-YREHZBTG.js} +1 -1
- package/dist/standalone/chunk-YWGOETFP.js +1 -0
- package/dist/standalone/{chunk-K2I3AGZR.js → chunk-ZARTCW6W.js} +1 -1
- package/dist/standalone/chunk-ZBMHFOK2.js +1 -0
- package/dist/standalone/{chunk-PYG3TDLZ.js → chunk-ZG6VEBVA.js} +1 -1
- package/dist/standalone/{chunk-EMNOVYZC.js → chunk-ZSXJJYWN.js} +1 -1
- package/dist/standalone/chunk-ZUFBUWT4.js +1 -0
- package/dist/standalone/studio.js +1 -1
- package/dist/styles.css +2 -2
- package/package.json +11 -11
- package/dist/packem_shared/diagram-export-panel-miFPsocM.mjs +0 -2
- package/dist/standalone/chunk-3YBXNEUY.js +0 -1
- package/dist/standalone/chunk-4SY2N2RS.js +0 -1
- package/dist/standalone/chunk-6IDVWVML.js +0 -1
- package/dist/standalone/chunk-7ML357XR.js +0 -1
- package/dist/standalone/chunk-ATYVKUH7.js +0 -1
- package/dist/standalone/chunk-CDIV23I2.js +0 -33
- package/dist/standalone/chunk-D63EYK5I.js +0 -8
- package/dist/standalone/chunk-DYPC464U.js +0 -1
- package/dist/standalone/chunk-FT5WEK3S.js +0 -59
- package/dist/standalone/chunk-GVPVWT3Q.js +0 -1
- package/dist/standalone/chunk-I37WFNA6.js +0 -1
- package/dist/standalone/chunk-IQ5CIBXJ.js +0 -1
- package/dist/standalone/chunk-KBPMT33Z.js +0 -1
- package/dist/standalone/chunk-L27FKJTG.js +0 -1
- package/dist/standalone/chunk-LFWS6VBU.js +0 -1
- package/dist/standalone/chunk-MHZNDDGI.js +0 -1
- package/dist/standalone/chunk-O5QATFN3.js +0 -159
- package/dist/standalone/chunk-OZID3UYF.js +0 -1
- package/dist/standalone/chunk-PDBW6GTJ.js +0 -1
- package/dist/standalone/chunk-QF743FSL.js +0 -1
- package/dist/standalone/chunk-R3RIZDUS.js +0 -1
- package/dist/standalone/chunk-RZJAZ5ED.js +0 -1
- package/dist/standalone/chunk-SCTYLLJT.js +0 -1
- package/dist/standalone/chunk-UNUSBFIC.js +0 -1
- package/dist/standalone/chunk-UW34S35F.js +0 -1
- package/dist/standalone/chunk-Y6OVSHPH.js +0 -1
- package/dist/standalone/chunk-YESGXFAR.js +0 -7
- package/dist/standalone/chunk-YNCZVYCO.js +0 -1
- package/dist/standalone/chunk-Z6PYAG36.js +0 -3
- package/dist/standalone/chunk-Z7ZRXPPE.js +0 -1
- /package/dist/standalone/{chunk-OWRWDDJT.js → chunk-HXFXD5EP.js} +0 -0
- /package/dist/standalone/{chunk-UQ3WOVL2.js → chunk-HXWW3XML.js} +0 -0
- /package/dist/standalone/{chunk-T7UKRA6J.js → chunk-QBBNGQJA.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as ur}from"./chunk-N7FOBAV3.js";import{a as B,b as Q}from"./chunk-ADABTCDI.js";import{a,d as T}from"./chunk-5PEAXTYQ.js";var ko=T(B(),1),Yt=ko.createContext(null);var Io=T(B(),1);function M(t){let e=Io.useContext(Yt);return e||void 0,e}a(M,"useRouter");function et(t){return t[t.length-1]}a(et,"last");function mt(t,e){return typeof t=="function"?t(e):t}a(mt,"functionalUpdate");var Zt=Object.prototype.hasOwnProperty;function Tt(t){for(let e in t)if(Zt.call(t,e))return!0;return!1}a(Tt,"hasKeys");var Mt=a(()=>Object.create(null),"createNull"),gt=a((t,e)=>tt(t,e,!0),"nullReplaceEqualDeep");function tt(t,e,o,n=0){if(!1)return e;if(t===e)return t;if(n++>500)return e;let r=Array.isArray(t)&&Array.isArray(e);if(!r&&!(Xt(t)&&Xt(e)))return e;let i=Object.keys(t),s=i.length,c=Object.keys(e),l=c.length;if(r?s!==t.length||l!==e.length||s&&et(i)!==`${s-1}`||l&&et(c)!==`${l-1}`:s!==Object.getOwnPropertyNames(t).length||l!==Object.getOwnPropertyNames(e).length||Object.getOwnPropertySymbols(e).length)return e;let u=0,f,d,h;if(r){for(;u<l&&(h=u,d=t[h],f=e[h],f=d===f?d:typeof d=="object"?tt(d,f,o,n):f,f===d);u++);if(u===l&&s===l)return t}else{let m=s===l,g=!0;for(;u<l;u++){h=c[u],d=t[h];let S=e[h];f=d===S?d:typeof d=="object"?tt(d,S,o,n):S,m&&=f===d&&(i[u]===h||Zt.call(t,h)),g&&=Object.is(f,S),i[u]=f}if(m)return Object.getOwnPropertySymbols(t).length?e:t;if(g)return e}let p=r?c.fill(0):o?Mt():{};for(let m=0;m<l;m++)h=r?m:c[m],r?(d=t[h],m>u&&(f=e[h],f=d===f?d:typeof d=="object"?tt(d,f,o,n):f),p[h]=m<u?d:f):p[h]=i[m];return p}a(tt,"replaceEqualDeep");function Xt(t){return!t||typeof t!="object"?!1:(Object.getPrototypeOf(t)?.constructor??Object)===Object}a(Xt,"isPlainObject");function J(t,e,o,n){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++){let s=t[r],c=e[r];if(s!==c&&!J(s,c,o,n))return!1}return!0}if(Xt(t)&&Xt(e)){if(o){for(let i in e)if((n||e[i]!==void 0)&&!J(t[i],e[i],o,n))return!1;return!0}let r=0;if(n)r=Object.keys(t).length;else for(let i in t)t[i]!==void 0&&r++;for(let i in e)if((n||e[i]!==void 0)&&(r--===0||!J(t[i],e[i],o,n)))return!1;return r===0}return!1}a(J,"deepEqual");var fr=/[\x00-\x1f\x7f"<>`{}]/g;function dr(t){return t.replace(fr,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}a(dr,"sanitizePathSegment");function Oo(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return dr(e)}a(Oo,"decodeSegment");var Le=["http:","https:","mailto:","tel:"];function it(t){if(t[0]!=="/"&&t.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(t)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}a(it,"getUrlScheme");var ke=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Dt(t,e){if(!t)return!1;if(ke.test(t))return!0;let o=it(t);return o?!e.has(o):!1}a(Dt,"isDangerousProtocol");function bt(t){if(!t)return t;let e=t;if(/[%\\\x00-\x1f\x7f]/.test(t)){let o=/%25|%5C/gi,n=0,r;for(e="";(r=o.exec(t))!==null;)e+=Oo(t.slice(n,r.index))+r[0],n=o.lastIndex;e+=Oo(n?t.slice(n):t)}return e}a(bt,"decodePath");function No(t){return/[\s\u0080-\uFFFF]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}a(No,"encodePathLikeUrl");function Fo(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}a(Fo,"arraysEqual");function ut(){throw new Error("Invariant failed")}a(ut,"invariant");function at(t){return t.replace(/\/{2,}/g,"/")}a(at,"cleanPath");function Qt(t){return t==="/"?t:t.replace(/^\/+/,"")}a(Qt,"trimPathLeft");function H(t){let e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/+$/,""):t}a(H,"trimPathRight");function At(t){return H(Qt(t))}a(At,"trimPath");function te(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}a(te,"removeTrailingSlash");function ee(t,e,o="never",n){if(e.includes("//")&&(e=at(e)),e.startsWith("/"))return e.length===1||o==="preserve"?e:o==="always"?e.endsWith("/")?e:`${e}/`:e.endsWith("/")?e.slice(0,-1):e;let r=e===".",i;if(n){i=r?t:t+"\0"+e;let u=n.get(i);if(u)return u}let s;if(r)s=t.split("/");else{for(t.includes("//")&&(t=at(t)),s=t.split("/");s.length>1&&et(s)==="";)s.pop();let u=e.split("/");for(let f=0,d=u.length;f<d;f++){let h=u[f];h===""?f?f===d-1&&s.push(h):s=[h]:h===".."?s.length>1?s.pop():s=[""]:h==="."||s.push(h)}}s.length>1&&(et(s)===""?o==="never"&&s.pop():o==="always"&&s.push(""));let c=s.join("/"),l=(r?at(c):c)||"/";return i&&n&&n.set(i,l),l}a(ee,"resolvePath");function To(t){let e=new Map(t.map(n=>[encodeURIComponent(n),n])),o=new RegExp([...e.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return n=>n.replace(o,r=>e.get(r)??r)}a(To,"compileDecodeCharMap");function hr(t){return t==null||t===""}a(hr,"isMissingSplat");function pr(t,e,o){if(typeof e!="string")return""+(e??void 0);let n=t==="_splat";if(n&&(!e||/^[a-zA-Z0-9\-._~!/]*$/.test(e)))return e;let r=encodeURIComponent(e);return n&&(r=r.replaceAll("%2F","/")),o?o(r):r}a(pr,"encodeParam");function oe(t,e,o,n,r){let i=t.endsWith("/")?"/":"",s="";for(let c of e){if(typeof c=="string"){s+=c;continue}let[l,u,f,d]=c,h=l===2,p=h&&d!==void 0?d+i:d,m=o[u];if(!(l===3&&m==null)){if(r&&(r[u]=m,h&&(r["*"]=m)),h&&hr(m)){if(f==="/"&&!p)continue;m=""}s+=f+pr(u,m,n)+(p||"")}}return s+i||"/"}a(oe,"interpolatePath");function q(t){return t?.isNotFound===!0}a(q,"isNotFound");function mr(){try{return sessionStorage}catch{return}}a(mr,"getSafeSessionStorage");var gr="tsr-scroll-restoration-v1_3",Ao=mr();function yr(){try{return JSON.parse(Ao?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}a(yr,"createScrollRestorationCache");var Ct=yr(),Mo="data-scroll-restoration-id",vr=a(t=>t.state.__TSR_key||t.href,"defaultGetScrollRestorationKey");function Sr(t){let e=t.getAttribute(Mo);if(e)return`[${Mo}="${e}"]`;let o="",n=t,r;for(;r=n.parentNode;){let i=1,s=n;for(;s=s.previousElementSibling;)i++;let c=`${n.localName}:nth-child(${i})`;o=o?`${c} > ${o}`:c,n=r}return o}a(Sr,"getScrollRestorationSelector");var ne=!1,re="window";function Ie(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}a(Ie,"getElement");function Do(t){let e=new Set;for(let o of t){if(o===re)continue;let n=Ie(o);n&&e.add(n)}return e}a(Do,"getScrollToTopElements");function $o(t,e){let o=e??t.options.scrollRestoration,n=t._scroll;if(o&&(n.e=!0),!1)return;let r=t.options.getScrollRestorationKey||vr,i=new Set,s=a(c=>{let l=Ct[c]||={};for(let u of i)u===document?l[re]={scrollX,scrollY}:u.isConnected&&(l[Sr(u)]={scrollX:u.scrollLeft,scrollY:u.scrollTop})},"snapshotCurrentScrollTargets");o&&!n.s&&(n.s=!0,ne=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{ne||i.add(c.target)},!0),t.subscribe("onBeforeLoad",c=>{c.fromLocation&&s(r(c.fromLocation)),i.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",s(r(t.stores.resolvedLocation.get()??t.stores.location.get()));try{Ao?.setItem(gr,JSON.stringify(Ct))}catch{}}),addEventListener("pageshow",c=>{c.persisted&&(history.scrollRestoration="manual")})),!n.r&&(n.r=!0,t.subscribe("onRendered",c=>{let l=t.options.scrollRestorationBehavior,u=t.options.scrollToTopSelectors,f=n.n,d=n.h,h;if(i.clear(),n.n=!0,n.h=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;let p=r(c.toLocation),m=c.fromLocation&&r(c.fromLocation);if(n.e&&m&&m!==p){let g=Ct[m];if(g){let S=Ct[p];for(let y in g){if(y===re){if(f)continue}else{let R=Ie(y);if(!R||f&&u&&(h??=Do(u),h.has(R)))continue}S||(S=Ct[p]={}),S[y]??=g[y]}}}ne=!0;try{let g=c.toLocation.hash,S=c.toLocation.state.__hashScrollIntoViewOptions??!0,y=!1;if(f){!g&&u&&(h??=Do(u));let R=g&&S&&d,b=n.e?Ct[p]:void 0;if(b)for(let w in b){let{scrollX:C,scrollY:_}=b[w];if(w===re){if(R)continue;scrollTo({top:_,left:C,behavior:l}),y=!0}else{let v=Ie(w);v&&(v.scrollLeft=C,v.scrollTop=_,h?.delete(v))}}if(!g){let w={top:0,left:0,behavior:l};if(y||scrollTo(w),h)for(let C of h)C.scrollTo(w)}}!y&&g&&S&&document.getElementById(g)?.scrollIntoView(S)}finally{ne=!1}}))}a($o,"setupScrollRestoration");function Bo(t,e=String){let o;for(let n in t){let r=t[n];r!==void 0&&(o||=new URLSearchParams).set(n,e(r))}return o?o.toString():""}a(Bo,"encode");function Oe(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}a(Oe,"toValue");function Vo(t){let e=new URLSearchParams(t),o=Object.create(null);for(let[n,r]of e.entries()){let i=o[n];i==null?o[n]=Oe(r):Array.isArray(i)?i.push(Oe(r)):o[n]=[i,Oe(r)]}return o}a(Vo,"decode");var Ho=/^(?:\s|["[{\d-]|fa|nu|tr)/,zo=Rr(JSON.parse),Uo=_r(JSON.stringify,JSON.parse);function Rr(t){let e=t===JSON.parse;return o=>{o[0]==="?"&&(o=o.slice(1));let n=Vo(o);for(let r in n){let i=n[r];if(typeof i=="string"){if(e&&!Ho.test(i))continue;try{n[r]=t(i)}catch{}}}return n}}a(Rr,"parseSearchWith");function _r(t,e){let o=e===JSON.parse;function n(r){if(r&&typeof r=="object")try{return t(r)}catch{}else if(e&&typeof r=="string"){if(o&&!Ho.test(r))return r;try{return e(r),t(r)}catch{}}return r}return a(n,"stringifyValue"),r=>{let i=Bo(r,n);return i?`?${i}`:""}}a(_r,"stringifySearchWith");var Y="__root__";function Wo(t){t.statusCode=t.statusCode||t.code||307;let e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);let o=new Response(null,{status:t.statusCode,headers:e});if(o.options=t,t.throw)throw o;return o}a(Wo,"redirect");function se(t){return t instanceof Response&&!!t.options}a(se,"isRedirect");function Pt(t){let e=new Map,o,n;return{get(r){let i=e.get(r);if(i)return i.visited=!0,i.value},set(r,i){let s=e.get(r);if(s){s.value=i;return}if(e.size>=t){let l=o?.next().value;for(;!l||l.visited;)l?l.visited=!1:o=e.values(),l=o.next().value;l===n&&(o=void 0),e.delete(l.key)}let c={key:r,value:i,visited:!1};n=c,e.set(r,c)},clear(){e.clear(),o=void 0,n=void 0}}}a(Pt,"createSieveCache");var ft=4,Ko=5;function wr(t){let e=t.names;if(e)return e;let o=[];for(let n of t)typeof n!="string"&&o.push(n[1]);return t.names=o}a(wr,"getParamNames");function xr(t,e,o){let n=t.slice(e,o);if(n.charCodeAt(0)===36)return n.length===1?[2,"_splat","",void 0]:[1,n.slice(1),"",""];let r=n.indexOf("{");if(r>=0){let i=n.indexOf("}",r),s=n.charCodeAt(r+1)===45,c=r+(s?3:2);if(i>=0&&n.charCodeAt(c-1)===36&&(!s||c<i)){let l=n.slice(c,i);return[s?3:l?1:2,l||"_splat",n.slice(0,r),t.slice(e+i+1,l?o:t.length)]}}return n}a(xr,"parseSegment");function Et(t,e,o,n,r,i){let s=o,c=e.fullPath??e.from,l=e.options,u=c.length,f=c.endsWith("/")?u-1:u,d=l?.caseSensitive??t,h=l?.params?.parse??l?.parseParams,p,m=i?o-1:0;if(!n||c.includes("$")){p=i?.slice()??[];let y=et(p);y&&typeof y!="string"&&y[0]===2&&(p[p.length-1]=[y[0],y[1],y[2],y[3]===void 0?void 0:y[3]+c.substring(o-(c[o-2]==="/"?2:1),f)],m=u)}for(;s<u;){let y=s,R=c.indexOf("/",y),b=R===-1?u:R,w=xr(c,y,b);s=b+1;let C;if(typeof w=="string"){if(!n)continue;let _=w,v;d?v=n.static??=new Map:(_=w.toLowerCase(),v=n.staticInsensitive??=new Map);let x=v.get(_);if(x)C=x;else{let P=yt(n);C=P,v.set(_,P)}}else{let _=w[0],v=w[2],x=w[3]??"";if(_===2&&(b=u,s=b+1),p&&m<b&&(m<y-1&&p.push(c.slice(m,y-1)),w[2]="/"+v,_===2&&w[3]!==void 0&&f<u&&(w[3]=x.slice(0,-1)),p.push(w),m=b),!n)continue;let P=d&&!!(v||x);d||(v=v.toLowerCase(),x=x.toLowerCase());let L=_===1?n.dynamic??=[]:_===3?n.optional??=[]:n.wildcard??=[],k=_!==2&&!h&&L.find(E=>!E.parse&&E.caseSensitive===P&&E.prefix===v&&E.suffix===x);if(k)C=k;else{let E=yt(n,_,P,v,x);C=E,L.push(E),L.length===2&&r?.push(L)}}n=C}p&&m<f&&p.push(c.slice(m,f));let g=p?.slice();if(!n)return g;if(h&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){let y=yt(n,Ko);(n.pathless??=[]).push(y),n=y}let S=(e.path||!e.children)&&!e.isRoot;if(S&&f<u){let y=yt(n,ft);n.index=y,n=y}return n.parse=h??null,n.priority=l?.params?.priority??0,n.route||(n.data=g,S&&(n.route=e)),[n,s,g]}a(Et,"parseSegments");function qo(t,e){if(t.parse&&!e.parse)return-1;if(!t.parse&&e.parse)return 1;if(t.parse&&e.parse&&(t.priority||e.priority))return e.priority-t.priority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}a(qo,"sortDynamic");function yt(t,e=0,o,n,r){return{kind:e,depth:t?t.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:t,parse:null,priority:0,caseSensitive:o,prefix:n,suffix:r}}a(yt,"createSegmentNode");function Go(t,e){let o=yt(),n=[];function r(i,s,c,l){let[u,f,d]=Et(!1,i,s,c,n,l);if(i.children)for(let h of i.children)r(h,f,u,d)}a(r,"visit");for(let i of t)r(i,1,o);for(let i of n)i.sort(qo);e.masksTree=o,e.flatCache=Pt(1e3)}a(Go,"processRouteMasks");function Jo(t,e){t||="/";let o=e.flatCache.get(t);if(o!==void 0)return o;let n=Ne(t,e.masksTree);return e.flatCache.set(t,n),n}a(Jo,"findFlatMatch");function Yo(t,e,o,n,r){t||="/",n||="/";let i=e?`case\0${t}`:t,s=r.singleCache.get(i);return s||(s=yt(),Et(e,{from:t},1,s),r.singleCache.set(i,s)),Ne(n,s,o)}a(Yo,"findSingleMatch");function Xo(t,e,o=!1){let n=o?t:`nofuzz\0${t}`,r=e.matchCache.get(n);if(r!==void 0)return r;t||="/";let i;try{i=Ne(t,e.segmentTree,o)}catch(s){if(s instanceof URIError)i=null;else throw s}return i&&(i.branch=Fe(i.route)),e.matchCache.set(n,i),i}a(Xo,"findRouteMatch");function Zo(t,e=!1){let o=yt(),n=[],r={},i={},s=0;function c(l,u,f,d){if(l.init(s),l.id in r&&ut(),r[l.id]=l,s!==0&&l.path){let g=H(l.fullPath);(!i[g]||l.fullPath.endsWith("/"))&&(i[g]=l)}s++;let[h,p,m]=Et(e,l,u,f,n,d);if(l._interpolation=m,l.children)for(let g of l.children)c(g,p,h,m)}a(c,"visit"),c(t,1,o);for(let l of n)l.sort(qo);return{processedTree:{segmentTree:o,singleCache:Pt(1e3),matchCache:Pt(1e3),flatCache:null,masksTree:null},routesById:r,routesByPath:i}}a(Zo,"processRouteTree");function Ne(t,e,o=!1){let n=t.split("/"),r=Cr(t,n,e,o);if(!r)return null;let[i]=Qo(t,n,r);return{route:r.node.route,rawParams:i}}a(Ne,"findMatch");function Qo(t,e,o){let n=br(o.node),r=o.node.data&&wr(o.node.data),i=Object.create(null),s=o.extract?.part??0,c=o.extract?.node??0,l=o.extract?.path??0,u=o.extract?.param??0;for(;c<n.length;s++,c++,l++){let f=n[c];if(f.kind===ft)break;if(f.kind===Ko){s--,l--;continue}let d=e[s],h=l;if(d&&(l+=d.length),f.kind===1||f.kind===3){let p=r[u++];if(f.kind===3&&o.skipped&1<<c){s--,l=h-1;continue}let m=f.suffix||f.prefix?d.substring(f.prefix.length,d.length-f.suffix.length):d;(m||f.kind===1)&&(i[p]=decodeURIComponent(m))}else if(f.kind===2){let p=f,m=t.substring(h+p.prefix.length,t.length-p.suffix.length),g=decodeURIComponent(m);i["*"]=g,i._splat=g;break}}return o.rawParams&&Object.assign(i,o.rawParams),[i,{part:s,node:c,path:l,param:u}]}a(Qo,"extractParams");function Fe(t){let e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}a(Fe,"buildRouteBranch");function br(t){let e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}a(br,"buildBranch");function Cr(t,e,o,n){if(t==="/"&&o.index)return{node:o.index,skipped:0};let r=!et(e),i=r&&t!=="/",s=e.length-(r?1:0),c=[{node:o,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let f=c.pop(),{node:d,index:h,skipped:p,statics:m,dynamics:g,optionals:S}=f,{extract:y,rawParams:R}=f;if(d.kind===2&&d.route&&!ae(u,f))continue;if(d.parse){if(!jo(t,e,f))continue;R=f.rawParams,y=f.extract}n&&d.route&&d.kind!==ft&&ae(l,f)&&(l=f);let b=h===s;if(b&&(d.route&&(!i||d.kind===ft||d.kind===2)&&ae(u,f)&&(u=f),!d.optional&&!d.wildcard&&!d.index&&!d.pathless))continue;let w=b?void 0:e[h],C;if(b&&d.index){let _={node:d.index,index:h,skipped:p,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R},v=!0;if(d.index.parse&&(jo(t,e,_)||(v=!1)),v){if(!g&&!S&&!p&&Pr(m,s))return _;ae(u,_)&&(u=_)}}if(d.wildcard)for(let _=d.wildcard.length-1;_>=0;_--){let v=d.wildcard[_],{prefix:x,suffix:P}=v;if(!(x&&(b||!(v.caseSensitive?w:C??=w.toLowerCase()).startsWith(x)))){if(P){if(b)continue;let L=e.slice(h).join("/"),k=L.slice(-P.length);if((v.caseSensitive?k:k.toLowerCase())!==P||L.length-P.length<x.length)continue}c.push({node:v,index:s,skipped:p,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R})}}if(d.optional){let _=p|1<<d.depth+1;for(let v=d.optional.length-1;v>=0;v--){let x=d.optional[v];c.push({node:x,index:h,skipped:_,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R})}if(!b)for(let v=d.optional.length-1;v>=0;v--){let x=d.optional[v],{prefix:P,suffix:L}=x;if(P||L){let k=x.caseSensitive?w:C??=w.toLowerCase();if(P&&!k.startsWith(P)||L&&k.indexOf(L,k.length-L.length)<P.length)continue}c.push({node:x,index:h+1,skipped:p,statics:m,dynamics:g,optionals:S+ie(s,h),extract:y,rawParams:R})}}if(!b&&d.dynamic&&w)for(let _=d.dynamic.length-1;_>=0;_--){let v=d.dynamic[_],{prefix:x,suffix:P}=v;if(x||P){let L=v.caseSensitive?w:C??=w.toLowerCase();if(x&&!L.startsWith(x)||P&&L.indexOf(P,L.length-P.length)<x.length)continue}c.push({node:v,index:h+1,skipped:p,statics:m,dynamics:g+ie(s,h),optionals:S,extract:y,rawParams:R})}if(!b&&d.staticInsensitive){let _=d.staticInsensitive.get(C??=w.toLowerCase());_&&c.push({node:_,index:h+1,skipped:p,statics:m+ie(s,h),dynamics:g,optionals:S,extract:y,rawParams:R})}if(!b&&d.static){let _=d.static.get(w);_&&c.push({node:_,index:h+1,skipped:p,statics:m+ie(s,h),dynamics:g,optionals:S,extract:y,rawParams:R})}if(d.pathless)for(let _=d.pathless.length-1;_>=0;_--){let v=d.pathless[_];c.push({node:v,index:h,skipped:p,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R})}}if(u)return u;if(n&&l){let f=l.index;for(let h=0;h<l.index;h++)f+=e[h].length;let d=f===t.length?"/":t.slice(f);return l.rawParams??=Object.create(null),l.rawParams["**"]=decodeURIComponent(d),l}return null}a(Cr,"getNodeMatch");function ie(t,e){return 2**(t-e-1)}a(ie,"segmentScore");function Pr(t,e){return t===2**(e-1)-1}a(Pr,"isPerfectStaticMatch");function jo(t,e,o){let n,r;try{[n,r]=Qo(t,e,o)}catch{return null}if(o.rawParams=n,o.extract=r,!o.node.parse)return!0;try{if(o.node.parse(n)===!1)return null}catch{}return!0}a(jo,"validateParseParams");function ae(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===ft)>(t.node.kind===ft)||e.node.kind===ft==(t.node.kind===ft)&&e.node.depth>t.node.depth))):!0}a(ae,"isFrameMoreSpecific");function tn(t,e,o){let n=At(t),r=`/${n}`,i=e?r:r.toLowerCase(),s=`${i}/`,c={input:a(({url:l})=>{let u=e?l.pathname:l.pathname.toLowerCase();return u===i?l.pathname="/":u.startsWith(s)&&(l.pathname=l.pathname.slice(r.length)),l},"input"),output:a(({url:l})=>(l.pathname=at(`/${n}${l.pathname}`),l),"output")};return o?{input:a(({url:l})=>ce(o,c.input({url:l})),"input"),output:a(({url:l})=>c.output({url:Te(o,l)}),"output")}:c}a(tn,"rewriteBasepath");function ce(t,e){let o=t?.input?.({url:e});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return e}a(ce,"executeRewriteInput");function Te(t,e){let o=t?.output?.({url:e});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return e}a(Te,"executeRewriteOutput");function Me(t){let e=t;return{get(){return e},set(o){e=mt(o,e)}}}a(Me,"createNonReactiveMutableStore");function De(t){return{get(){return t()}}}a(De,"createNonReactiveReadonlyStore");function en(t,e){let{createMutableStore:o,createReadonlyStore:n,batch:r}=e,i=new Map,s=o("idle"),c=o(t),l=o(void 0),u=o([]),f=n(()=>u.get().map(g=>i.get(g).get())),d=n(()=>({status:s.get(),isLoading:s.get()==="pending",matches:f.get(),location:c.get(),resolvedLocation:l.get()}));function h(g){let S=i.get(g);return S||(S=o(void 0),i.set(g,S)),S}a(h,"getMatchStore");let p={status:s,location:c,resolvedLocation:l,ids:u,matches:f,byRoute:i,__store:d,getMatchStore:h,setMatches:m};function m(g){let S=u.get(),y=g.map(R=>R.routeId);r(()=>{Fo(S,y)||u.set(y);for(let R of S)y.includes(R)||i.get(R).set(()=>{});for(let R of g){let b=h(R.routeId);b.get()!==R&&b.set(R)}})}return a(m,"setMatches"),p}a(en,"createRouterStores");var dt="__TSR_index",on="popstate",nn="beforeunload",Er=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function $t(t){let e=Er.exec(t);return e?"/"+t.slice(e[0].length):t}a($t,"normalizeProtocolRelative");function $e(t){return/[\x00-\x1f\x7f]/.test(t)&&(t=t.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
1
|
+
import{a as ur}from"./chunk-F4NZZ3LK.js";import{a as B,b as Q}from"./chunk-ADABTCDI.js";import{a,d as T}from"./chunk-5PEAXTYQ.js";var ko=T(B(),1),Yt=ko.createContext(null);var Io=T(B(),1);function M(t){let e=Io.useContext(Yt);return e||void 0,e}a(M,"useRouter");function et(t){return t[t.length-1]}a(et,"last");function mt(t,e){return typeof t=="function"?t(e):t}a(mt,"functionalUpdate");var Zt=Object.prototype.hasOwnProperty;function Tt(t){for(let e in t)if(Zt.call(t,e))return!0;return!1}a(Tt,"hasKeys");var Mt=a(()=>Object.create(null),"createNull"),gt=a((t,e)=>tt(t,e,!0),"nullReplaceEqualDeep");function tt(t,e,o,n=0){if(!1)return e;if(t===e)return t;if(n++>500)return e;let r=Array.isArray(t)&&Array.isArray(e);if(!r&&!(Xt(t)&&Xt(e)))return e;let i=Object.keys(t),s=i.length,c=Object.keys(e),l=c.length;if(r?s!==t.length||l!==e.length||s&&et(i)!==`${s-1}`||l&&et(c)!==`${l-1}`:s!==Object.getOwnPropertyNames(t).length||l!==Object.getOwnPropertyNames(e).length||Object.getOwnPropertySymbols(e).length)return e;let u=0,f,d,h;if(r){for(;u<l&&(h=u,d=t[h],f=e[h],f=d===f?d:typeof d=="object"?tt(d,f,o,n):f,f===d);u++);if(u===l&&s===l)return t}else{let m=s===l,g=!0;for(;u<l;u++){h=c[u],d=t[h];let S=e[h];f=d===S?d:typeof d=="object"?tt(d,S,o,n):S,m&&=f===d&&(i[u]===h||Zt.call(t,h)),g&&=Object.is(f,S),i[u]=f}if(m)return Object.getOwnPropertySymbols(t).length?e:t;if(g)return e}let p=r?c.fill(0):o?Mt():{};for(let m=0;m<l;m++)h=r?m:c[m],r?(d=t[h],m>u&&(f=e[h],f=d===f?d:typeof d=="object"?tt(d,f,o,n):f),p[h]=m<u?d:f):p[h]=i[m];return p}a(tt,"replaceEqualDeep");function Xt(t){return!t||typeof t!="object"?!1:(Object.getPrototypeOf(t)?.constructor??Object)===Object}a(Xt,"isPlainObject");function J(t,e,o,n){if(t===e)return!0;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0,i=t.length;r<i;r++){let s=t[r],c=e[r];if(s!==c&&!J(s,c,o,n))return!1}return!0}if(Xt(t)&&Xt(e)){if(o){for(let i in e)if((n||e[i]!==void 0)&&!J(t[i],e[i],o,n))return!1;return!0}let r=0;if(n)r=Object.keys(t).length;else for(let i in t)t[i]!==void 0&&r++;for(let i in e)if((n||e[i]!==void 0)&&(r--===0||!J(t[i],e[i],o,n)))return!1;return r===0}return!1}a(J,"deepEqual");var fr=/[\x00-\x1f\x7f"<>`{}]/g;function dr(t){return t.replace(fr,e=>"%"+e.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}a(dr,"sanitizePathSegment");function Oo(t){let e;try{e=decodeURI(t)}catch{e=t.replaceAll(/%[0-9A-F]{2}/gi,o=>{try{return decodeURI(o)}catch{return o}})}return dr(e)}a(Oo,"decodeSegment");var Le=["http:","https:","mailto:","tel:"];function it(t){if(t[0]!=="/"&&t.includes(":"))return/^[\x00-\x20]*([a-z][a-z\d+.\t\n\r-]*:)/i.exec(t)?.[1]?.replace(/[\t\n\r]/g,"").toLowerCase()}a(it,"getUrlScheme");var ke=/^[\x00-\x20]*[\\/][\t\n\r]*[\\/]/;function Dt(t,e){if(!t)return!1;if(ke.test(t))return!0;let o=it(t);return o?!e.has(o):!1}a(Dt,"isDangerousProtocol");function bt(t){if(!t)return t;let e=t;if(/[%\\\x00-\x1f\x7f]/.test(t)){let o=/%25|%5C/gi,n=0,r;for(e="";(r=o.exec(t))!==null;)e+=Oo(t.slice(n,r.index))+r[0],n=o.lastIndex;e+=Oo(n?t.slice(n):t)}return e}a(bt,"decodePath");function No(t){return/[\s\u0080-\uFFFF]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}a(No,"encodePathLikeUrl");function Fo(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let o=0;o<t.length;o++)if(t[o]!==e[o])return!1;return!0}a(Fo,"arraysEqual");function ut(){throw new Error("Invariant failed")}a(ut,"invariant");function at(t){return t.replace(/\/{2,}/g,"/")}a(at,"cleanPath");function Qt(t){return t==="/"?t:t.replace(/^\/+/,"")}a(Qt,"trimPathLeft");function H(t){let e=t.length;return e>1&&t[e-1]==="/"?t.replace(/\/+$/,""):t}a(H,"trimPathRight");function At(t){return H(Qt(t))}a(At,"trimPath");function te(t,e){return t?.endsWith("/")&&t!=="/"&&t!==`${e}/`?t.slice(0,-1):t}a(te,"removeTrailingSlash");function ee(t,e,o="never",n){if(e.includes("//")&&(e=at(e)),e.startsWith("/"))return e.length===1||o==="preserve"?e:o==="always"?e.endsWith("/")?e:`${e}/`:e.endsWith("/")?e.slice(0,-1):e;let r=e===".",i;if(n){i=r?t:t+"\0"+e;let u=n.get(i);if(u)return u}let s;if(r)s=t.split("/");else{for(t.includes("//")&&(t=at(t)),s=t.split("/");s.length>1&&et(s)==="";)s.pop();let u=e.split("/");for(let f=0,d=u.length;f<d;f++){let h=u[f];h===""?f?f===d-1&&s.push(h):s=[h]:h===".."?s.length>1?s.pop():s=[""]:h==="."||s.push(h)}}s.length>1&&(et(s)===""?o==="never"&&s.pop():o==="always"&&s.push(""));let c=s.join("/"),l=(r?at(c):c)||"/";return i&&n&&n.set(i,l),l}a(ee,"resolvePath");function To(t){let e=new Map(t.map(n=>[encodeURIComponent(n),n])),o=new RegExp([...e.keys()].join("|").replace(/[.*()]/g,"\\$&"),"g");return n=>n.replace(o,r=>e.get(r)??r)}a(To,"compileDecodeCharMap");function hr(t){return t==null||t===""}a(hr,"isMissingSplat");function pr(t,e,o){if(typeof e!="string")return""+(e??void 0);let n=t==="_splat";if(n&&(!e||/^[a-zA-Z0-9\-._~!/]*$/.test(e)))return e;let r=encodeURIComponent(e);return n&&(r=r.replaceAll("%2F","/")),o?o(r):r}a(pr,"encodeParam");function oe(t,e,o,n,r){let i=t.endsWith("/")?"/":"",s="";for(let c of e){if(typeof c=="string"){s+=c;continue}let[l,u,f,d]=c,h=l===2,p=h&&d!==void 0?d+i:d,m=o[u];if(!(l===3&&m==null)){if(r&&(r[u]=m,h&&(r["*"]=m)),h&&hr(m)){if(f==="/"&&!p)continue;m=""}s+=f+pr(u,m,n)+(p||"")}}return s+i||"/"}a(oe,"interpolatePath");function q(t){return t?.isNotFound===!0}a(q,"isNotFound");function mr(){try{return sessionStorage}catch{return}}a(mr,"getSafeSessionStorage");var gr="tsr-scroll-restoration-v1_3",Ao=mr();function yr(){try{return JSON.parse(Ao?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}a(yr,"createScrollRestorationCache");var Ct=yr(),Mo="data-scroll-restoration-id",vr=a(t=>t.state.__TSR_key||t.href,"defaultGetScrollRestorationKey");function Sr(t){let e=t.getAttribute(Mo);if(e)return`[${Mo}="${e}"]`;let o="",n=t,r;for(;r=n.parentNode;){let i=1,s=n;for(;s=s.previousElementSibling;)i++;let c=`${n.localName}:nth-child(${i})`;o=o?`${c} > ${o}`:c,n=r}return o}a(Sr,"getScrollRestorationSelector");var ne=!1,re="window";function Ie(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}a(Ie,"getElement");function Do(t){let e=new Set;for(let o of t){if(o===re)continue;let n=Ie(o);n&&e.add(n)}return e}a(Do,"getScrollToTopElements");function $o(t,e){let o=e??t.options.scrollRestoration,n=t._scroll;if(o&&(n.e=!0),!1)return;let r=t.options.getScrollRestorationKey||vr,i=new Set,s=a(c=>{let l=Ct[c]||={};for(let u of i)u===document?l[re]={scrollX,scrollY}:u.isConnected&&(l[Sr(u)]={scrollX:u.scrollLeft,scrollY:u.scrollTop})},"snapshotCurrentScrollTargets");o&&!n.s&&(n.s=!0,ne=!1,history.scrollRestoration="manual",document.addEventListener("scroll",c=>{ne||i.add(c.target)},!0),t.subscribe("onBeforeLoad",c=>{c.fromLocation&&s(r(c.fromLocation)),i.clear()}),addEventListener("pagehide",()=>{history.scrollRestoration="auto",s(r(t.stores.resolvedLocation.get()??t.stores.location.get()));try{Ao?.setItem(gr,JSON.stringify(Ct))}catch{}}),addEventListener("pageshow",c=>{c.persisted&&(history.scrollRestoration="manual")})),!n.r&&(n.r=!0,t.subscribe("onRendered",c=>{let l=t.options.scrollRestorationBehavior,u=t.options.scrollToTopSelectors,f=n.n,d=n.h,h;if(i.clear(),n.n=!0,n.h=!1,typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;let p=r(c.toLocation),m=c.fromLocation&&r(c.fromLocation);if(n.e&&m&&m!==p){let g=Ct[m];if(g){let S=Ct[p];for(let y in g){if(y===re){if(f)continue}else{let R=Ie(y);if(!R||f&&u&&(h??=Do(u),h.has(R)))continue}S||(S=Ct[p]={}),S[y]??=g[y]}}}ne=!0;try{let g=c.toLocation.hash,S=c.toLocation.state.__hashScrollIntoViewOptions??!0,y=!1;if(f){!g&&u&&(h??=Do(u));let R=g&&S&&d,b=n.e?Ct[p]:void 0;if(b)for(let w in b){let{scrollX:C,scrollY:_}=b[w];if(w===re){if(R)continue;scrollTo({top:_,left:C,behavior:l}),y=!0}else{let v=Ie(w);v&&(v.scrollLeft=C,v.scrollTop=_,h?.delete(v))}}if(!g){let w={top:0,left:0,behavior:l};if(y||scrollTo(w),h)for(let C of h)C.scrollTo(w)}}!y&&g&&S&&document.getElementById(g)?.scrollIntoView(S)}finally{ne=!1}}))}a($o,"setupScrollRestoration");function Bo(t,e=String){let o;for(let n in t){let r=t[n];r!==void 0&&(o||=new URLSearchParams).set(n,e(r))}return o?o.toString():""}a(Bo,"encode");function Oe(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}a(Oe,"toValue");function Vo(t){let e=new URLSearchParams(t),o=Object.create(null);for(let[n,r]of e.entries()){let i=o[n];i==null?o[n]=Oe(r):Array.isArray(i)?i.push(Oe(r)):o[n]=[i,Oe(r)]}return o}a(Vo,"decode");var Ho=/^(?:\s|["[{\d-]|fa|nu|tr)/,zo=Rr(JSON.parse),Uo=_r(JSON.stringify,JSON.parse);function Rr(t){let e=t===JSON.parse;return o=>{o[0]==="?"&&(o=o.slice(1));let n=Vo(o);for(let r in n){let i=n[r];if(typeof i=="string"){if(e&&!Ho.test(i))continue;try{n[r]=t(i)}catch{}}}return n}}a(Rr,"parseSearchWith");function _r(t,e){let o=e===JSON.parse;function n(r){if(r&&typeof r=="object")try{return t(r)}catch{}else if(e&&typeof r=="string"){if(o&&!Ho.test(r))return r;try{return e(r),t(r)}catch{}}return r}return a(n,"stringifyValue"),r=>{let i=Bo(r,n);return i?`?${i}`:""}}a(_r,"stringifySearchWith");var Y="__root__";function Wo(t){t.statusCode=t.statusCode||t.code||307;let e=new Headers(t.headers);t.href&&e.get("Location")===null&&e.set("Location",t.href);let o=new Response(null,{status:t.statusCode,headers:e});if(o.options=t,t.throw)throw o;return o}a(Wo,"redirect");function se(t){return t instanceof Response&&!!t.options}a(se,"isRedirect");function Pt(t){let e=new Map,o,n;return{get(r){let i=e.get(r);if(i)return i.visited=!0,i.value},set(r,i){let s=e.get(r);if(s){s.value=i;return}if(e.size>=t){let l=o?.next().value;for(;!l||l.visited;)l?l.visited=!1:o=e.values(),l=o.next().value;l===n&&(o=void 0),e.delete(l.key)}let c={key:r,value:i,visited:!1};n=c,e.set(r,c)},clear(){e.clear(),o=void 0,n=void 0}}}a(Pt,"createSieveCache");var ft=4,Ko=5;function wr(t){let e=t.names;if(e)return e;let o=[];for(let n of t)typeof n!="string"&&o.push(n[1]);return t.names=o}a(wr,"getParamNames");function xr(t,e,o){let n=t.slice(e,o);if(n.charCodeAt(0)===36)return n.length===1?[2,"_splat","",void 0]:[1,n.slice(1),"",""];let r=n.indexOf("{");if(r>=0){let i=n.indexOf("}",r),s=n.charCodeAt(r+1)===45,c=r+(s?3:2);if(i>=0&&n.charCodeAt(c-1)===36&&(!s||c<i)){let l=n.slice(c,i);return[s?3:l?1:2,l||"_splat",n.slice(0,r),t.slice(e+i+1,l?o:t.length)]}}return n}a(xr,"parseSegment");function Et(t,e,o,n,r,i){let s=o,c=e.fullPath??e.from,l=e.options,u=c.length,f=c.endsWith("/")?u-1:u,d=l?.caseSensitive??t,h=l?.params?.parse??l?.parseParams,p,m=i?o-1:0;if(!n||c.includes("$")){p=i?.slice()??[];let y=et(p);y&&typeof y!="string"&&y[0]===2&&(p[p.length-1]=[y[0],y[1],y[2],y[3]===void 0?void 0:y[3]+c.substring(o-(c[o-2]==="/"?2:1),f)],m=u)}for(;s<u;){let y=s,R=c.indexOf("/",y),b=R===-1?u:R,w=xr(c,y,b);s=b+1;let C;if(typeof w=="string"){if(!n)continue;let _=w,v;d?v=n.static??=new Map:(_=w.toLowerCase(),v=n.staticInsensitive??=new Map);let x=v.get(_);if(x)C=x;else{let P=yt(n);C=P,v.set(_,P)}}else{let _=w[0],v=w[2],x=w[3]??"";if(_===2&&(b=u,s=b+1),p&&m<b&&(m<y-1&&p.push(c.slice(m,y-1)),w[2]="/"+v,_===2&&w[3]!==void 0&&f<u&&(w[3]=x.slice(0,-1)),p.push(w),m=b),!n)continue;let P=d&&!!(v||x);d||(v=v.toLowerCase(),x=x.toLowerCase());let L=_===1?n.dynamic??=[]:_===3?n.optional??=[]:n.wildcard??=[],k=_!==2&&!h&&L.find(E=>!E.parse&&E.caseSensitive===P&&E.prefix===v&&E.suffix===x);if(k)C=k;else{let E=yt(n,_,P,v,x);C=E,L.push(E),L.length===2&&r?.push(L)}}n=C}p&&m<f&&p.push(c.slice(m,f));let g=p?.slice();if(!n)return g;if(h&&e.children&&!e.isRoot&&e.id&&e.id.charCodeAt(e.id.lastIndexOf("/")+1)===95){let y=yt(n,Ko);(n.pathless??=[]).push(y),n=y}let S=(e.path||!e.children)&&!e.isRoot;if(S&&f<u){let y=yt(n,ft);n.index=y,n=y}return n.parse=h??null,n.priority=l?.params?.priority??0,n.route||(n.data=g,S&&(n.route=e)),[n,s,g]}a(Et,"parseSegments");function qo(t,e){if(t.parse&&!e.parse)return-1;if(!t.parse&&e.parse)return 1;if(t.parse&&e.parse&&(t.priority||e.priority))return e.priority-t.priority;if(t.prefix&&e.prefix&&t.prefix!==e.prefix){if(t.prefix.startsWith(e.prefix))return-1;if(e.prefix.startsWith(t.prefix))return 1}if(t.suffix&&e.suffix&&t.suffix!==e.suffix){if(t.suffix.endsWith(e.suffix))return-1;if(e.suffix.endsWith(t.suffix))return 1}return t.prefix&&!e.prefix?-1:!t.prefix&&e.prefix?1:t.suffix&&!e.suffix?-1:!t.suffix&&e.suffix?1:t.caseSensitive&&!e.caseSensitive?-1:!t.caseSensitive&&e.caseSensitive?1:0}a(qo,"sortDynamic");function yt(t,e=0,o,n,r){return{kind:e,depth:t?t.depth+1:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,data:void 0,parent:t,parse:null,priority:0,caseSensitive:o,prefix:n,suffix:r}}a(yt,"createSegmentNode");function Go(t,e){let o=yt(),n=[];function r(i,s,c,l){let[u,f,d]=Et(!1,i,s,c,n,l);if(i.children)for(let h of i.children)r(h,f,u,d)}a(r,"visit");for(let i of t)r(i,1,o);for(let i of n)i.sort(qo);e.masksTree=o,e.flatCache=Pt(1e3)}a(Go,"processRouteMasks");function Jo(t,e){t||="/";let o=e.flatCache.get(t);if(o!==void 0)return o;let n=Ne(t,e.masksTree);return e.flatCache.set(t,n),n}a(Jo,"findFlatMatch");function Yo(t,e,o,n,r){t||="/",n||="/";let i=e?`case\0${t}`:t,s=r.singleCache.get(i);return s||(s=yt(),Et(e,{from:t},1,s),r.singleCache.set(i,s)),Ne(n,s,o)}a(Yo,"findSingleMatch");function Xo(t,e,o=!1){let n=o?t:`nofuzz\0${t}`,r=e.matchCache.get(n);if(r!==void 0)return r;t||="/";let i;try{i=Ne(t,e.segmentTree,o)}catch(s){if(s instanceof URIError)i=null;else throw s}return i&&(i.branch=Fe(i.route)),e.matchCache.set(n,i),i}a(Xo,"findRouteMatch");function Zo(t,e=!1){let o=yt(),n=[],r={},i={},s=0;function c(l,u,f,d){if(l.init(s),l.id in r&&ut(),r[l.id]=l,s!==0&&l.path){let g=H(l.fullPath);(!i[g]||l.fullPath.endsWith("/"))&&(i[g]=l)}s++;let[h,p,m]=Et(e,l,u,f,n,d);if(l._interpolation=m,l.children)for(let g of l.children)c(g,p,h,m)}a(c,"visit"),c(t,1,o);for(let l of n)l.sort(qo);return{processedTree:{segmentTree:o,singleCache:Pt(1e3),matchCache:Pt(1e3),flatCache:null,masksTree:null},routesById:r,routesByPath:i}}a(Zo,"processRouteTree");function Ne(t,e,o=!1){let n=t.split("/"),r=Cr(t,n,e,o);if(!r)return null;let[i]=Qo(t,n,r);return{route:r.node.route,rawParams:i}}a(Ne,"findMatch");function Qo(t,e,o){let n=br(o.node),r=o.node.data&&wr(o.node.data),i=Object.create(null),s=o.extract?.part??0,c=o.extract?.node??0,l=o.extract?.path??0,u=o.extract?.param??0;for(;c<n.length;s++,c++,l++){let f=n[c];if(f.kind===ft)break;if(f.kind===Ko){s--,l--;continue}let d=e[s],h=l;if(d&&(l+=d.length),f.kind===1||f.kind===3){let p=r[u++];if(f.kind===3&&o.skipped&1<<c){s--,l=h-1;continue}let m=f.suffix||f.prefix?d.substring(f.prefix.length,d.length-f.suffix.length):d;(m||f.kind===1)&&(i[p]=decodeURIComponent(m))}else if(f.kind===2){let p=f,m=t.substring(h+p.prefix.length,t.length-p.suffix.length),g=decodeURIComponent(m);i["*"]=g,i._splat=g;break}}return o.rawParams&&Object.assign(i,o.rawParams),[i,{part:s,node:c,path:l,param:u}]}a(Qo,"extractParams");function Fe(t){let e=[t];for(;t.parentRoute;)t=t.parentRoute,e.push(t);return e.reverse(),e}a(Fe,"buildRouteBranch");function br(t){let e=Array(t.depth+1);do e[t.depth]=t,t=t.parent;while(t);return e}a(br,"buildBranch");function Cr(t,e,o,n){if(t==="/"&&o.index)return{node:o.index,skipped:0};let r=!et(e),i=r&&t!=="/",s=e.length-(r?1:0),c=[{node:o,index:1,skipped:0,statics:0,dynamics:0,optionals:0}],l=null,u=null;for(;c.length;){let f=c.pop(),{node:d,index:h,skipped:p,statics:m,dynamics:g,optionals:S}=f,{extract:y,rawParams:R}=f;if(d.kind===2&&d.route&&!ae(u,f))continue;if(d.parse){if(!jo(t,e,f))continue;R=f.rawParams,y=f.extract}n&&d.route&&d.kind!==ft&&ae(l,f)&&(l=f);let b=h===s;if(b&&(d.route&&(!i||d.kind===ft||d.kind===2)&&ae(u,f)&&(u=f),!d.optional&&!d.wildcard&&!d.index&&!d.pathless))continue;let w=b?void 0:e[h],C;if(b&&d.index){let _={node:d.index,index:h,skipped:p,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R},v=!0;if(d.index.parse&&(jo(t,e,_)||(v=!1)),v){if(!g&&!S&&!p&&Pr(m,s))return _;ae(u,_)&&(u=_)}}if(d.wildcard)for(let _=d.wildcard.length-1;_>=0;_--){let v=d.wildcard[_],{prefix:x,suffix:P}=v;if(!(x&&(b||!(v.caseSensitive?w:C??=w.toLowerCase()).startsWith(x)))){if(P){if(b)continue;let L=e.slice(h).join("/"),k=L.slice(-P.length);if((v.caseSensitive?k:k.toLowerCase())!==P||L.length-P.length<x.length)continue}c.push({node:v,index:s,skipped:p,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R})}}if(d.optional){let _=p|1<<d.depth+1;for(let v=d.optional.length-1;v>=0;v--){let x=d.optional[v];c.push({node:x,index:h,skipped:_,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R})}if(!b)for(let v=d.optional.length-1;v>=0;v--){let x=d.optional[v],{prefix:P,suffix:L}=x;if(P||L){let k=x.caseSensitive?w:C??=w.toLowerCase();if(P&&!k.startsWith(P)||L&&k.indexOf(L,k.length-L.length)<P.length)continue}c.push({node:x,index:h+1,skipped:p,statics:m,dynamics:g,optionals:S+ie(s,h),extract:y,rawParams:R})}}if(!b&&d.dynamic&&w)for(let _=d.dynamic.length-1;_>=0;_--){let v=d.dynamic[_],{prefix:x,suffix:P}=v;if(x||P){let L=v.caseSensitive?w:C??=w.toLowerCase();if(x&&!L.startsWith(x)||P&&L.indexOf(P,L.length-P.length)<x.length)continue}c.push({node:v,index:h+1,skipped:p,statics:m,dynamics:g+ie(s,h),optionals:S,extract:y,rawParams:R})}if(!b&&d.staticInsensitive){let _=d.staticInsensitive.get(C??=w.toLowerCase());_&&c.push({node:_,index:h+1,skipped:p,statics:m+ie(s,h),dynamics:g,optionals:S,extract:y,rawParams:R})}if(!b&&d.static){let _=d.static.get(w);_&&c.push({node:_,index:h+1,skipped:p,statics:m+ie(s,h),dynamics:g,optionals:S,extract:y,rawParams:R})}if(d.pathless)for(let _=d.pathless.length-1;_>=0;_--){let v=d.pathless[_];c.push({node:v,index:h,skipped:p,statics:m,dynamics:g,optionals:S,extract:y,rawParams:R})}}if(u)return u;if(n&&l){let f=l.index;for(let h=0;h<l.index;h++)f+=e[h].length;let d=f===t.length?"/":t.slice(f);return l.rawParams??=Object.create(null),l.rawParams["**"]=decodeURIComponent(d),l}return null}a(Cr,"getNodeMatch");function ie(t,e){return 2**(t-e-1)}a(ie,"segmentScore");function Pr(t,e){return t===2**(e-1)-1}a(Pr,"isPerfectStaticMatch");function jo(t,e,o){let n,r;try{[n,r]=Qo(t,e,o)}catch{return null}if(o.rawParams=n,o.extract=r,!o.node.parse)return!0;try{if(o.node.parse(n)===!1)return null}catch{}return!0}a(jo,"validateParseParams");function ae(t,e){return t?e.statics>t.statics||e.statics===t.statics&&(e.dynamics>t.dynamics||e.dynamics===t.dynamics&&(e.optionals>t.optionals||e.optionals===t.optionals&&((e.node.kind===ft)>(t.node.kind===ft)||e.node.kind===ft==(t.node.kind===ft)&&e.node.depth>t.node.depth))):!0}a(ae,"isFrameMoreSpecific");function tn(t,e,o){let n=At(t),r=`/${n}`,i=e?r:r.toLowerCase(),s=`${i}/`,c={input:a(({url:l})=>{let u=e?l.pathname:l.pathname.toLowerCase();return u===i?l.pathname="/":u.startsWith(s)&&(l.pathname=l.pathname.slice(r.length)),l},"input"),output:a(({url:l})=>(l.pathname=at(`/${n}${l.pathname}`),l),"output")};return o?{input:a(({url:l})=>ce(o,c.input({url:l})),"input"),output:a(({url:l})=>c.output({url:Te(o,l)}),"output")}:c}a(tn,"rewriteBasepath");function ce(t,e){let o=t?.input?.({url:e});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return e}a(ce,"executeRewriteInput");function Te(t,e){let o=t?.output?.({url:e});if(o){if(typeof o=="string")return new URL(o);if(o instanceof URL)return o}return e}a(Te,"executeRewriteOutput");function Me(t){let e=t;return{get(){return e},set(o){e=mt(o,e)}}}a(Me,"createNonReactiveMutableStore");function De(t){return{get(){return t()}}}a(De,"createNonReactiveReadonlyStore");function en(t,e){let{createMutableStore:o,createReadonlyStore:n,batch:r}=e,i=new Map,s=o("idle"),c=o(t),l=o(void 0),u=o([]),f=n(()=>u.get().map(g=>i.get(g).get())),d=n(()=>({status:s.get(),isLoading:s.get()==="pending",matches:f.get(),location:c.get(),resolvedLocation:l.get()}));function h(g){let S=i.get(g);return S||(S=o(void 0),i.set(g,S)),S}a(h,"getMatchStore");let p={status:s,location:c,resolvedLocation:l,ids:u,matches:f,byRoute:i,__store:d,getMatchStore:h,setMatches:m};function m(g){let S=u.get(),y=g.map(R=>R.routeId);r(()=>{Fo(S,y)||u.set(y);for(let R of S)y.includes(R)||i.get(R).set(()=>{});for(let R of g){let b=h(R.routeId);b.get()!==R&&b.set(R)}})}return a(m,"setMatches"),p}a(en,"createRouterStores");var dt="__TSR_index",on="popstate",nn="beforeunload",Er=/^[\x00-\x20]*(?:[\\/][\t\n\r]*){2,}/;function $t(t){let e=Er.exec(t);return e?"/"+t.slice(e[0].length):t}a($t,"normalizeProtocolRelative");function $e(t){return/[\x00-\x1f\x7f]/.test(t)&&(t=t.replace(/[\x00-\x1f\x7f]/g,e=>`
|
|
2
2
|
\r`.includes(e)?"":encodeURIComponent(e))),$t(t)}a($e,"normalizeHref");function Be(t){let e=t.getLocation(),o=new Set,n=a(s=>{e=t.getLocation(),o.forEach(c=>c({location:e,action:s}))},"notify"),r=a(s=>{t.notifyOnIndexChange??!0?n(s):e=t.getLocation()},"handleIndexChange"),i=a(async s=>{let c=s.navigateOpts?.ignoreBlocker?void 0:t.getBlockers?.();if(typeof document<"u"&&c?.length&&(s.type==="PUSH"||s.type==="REPLACE"))for(let l of c){let u=Lt(s.path,s.state);if(await l.blockerFn({currentLocation:e,nextLocation:u,action:s.type})){t.onBlocked?.();return}}s.task()},"tryNavigation");return{get location(){return e},get length(){return t.getLength()},subscribers:o,subscribe:a(s=>(o.add(s),()=>{o.delete(s)}),"subscribe"),push:a((s,c,l)=>{let u=e.state[dt];c=Ae(u+1,c),i({task:a(()=>{t.pushState(s,c),n({type:"PUSH"})},"task"),navigateOpts:l,type:"PUSH",path:s,state:c})},"push"),replace:a((s,c,l)=>{let u=e.state[dt];c=Ae(u,c),i({task:a(()=>{t.replaceState(s,c),n({type:"REPLACE"})},"task"),navigateOpts:l,type:"REPLACE",path:s,state:c})},"replace"),go:a((s,c)=>{i({task:a(()=>{t.go(s,c?.ignoreBlocker??!1),r({type:"GO",index:s})},"task"),navigateOpts:c,type:"GO"})},"go"),back:a(s=>{i({task:a(()=>{t.back(s?.ignoreBlocker??!1),r({type:"BACK"})},"task"),navigateOpts:s,type:"BACK"})},"back"),forward:a(s=>{i({task:a(()=>{t.forward(s?.ignoreBlocker??!1),r({type:"FORWARD"})},"task"),navigateOpts:s,type:"FORWARD"})},"forward"),canGoBack:a(()=>e.state[dt]!==0,"canGoBack"),createHref:a(s=>t.createHref(s),"createHref"),block:a(s=>{if(!t.setBlockers)return()=>{};let c=t.getBlockers?.()??[];return t.setBlockers([...c,s]),()=>{let l=t.getBlockers?.()??[];t.setBlockers?.(l.filter(u=>u!==s))}},"block"),flush:a(()=>t.flush?.(),"flush"),destroy:a(()=>t.destroy?.(),"destroy"),notify:n,_getBlockers:a(()=>t.getBlockers?.()??[],"_getBlockers")}}a(Be,"createHistory");function Ae(t,e){let o=He();return{...e,key:o,__TSR_key:o,[dt]:t}}a(Ae,"assignKeyAndIndex");function Ve(t){let e=t?.window??(typeof document<"u"?window:void 0),o=e.history.pushState,n=e.history.replaceState,r=[],i=a(()=>r,"_getBlockers"),s=a(v=>r=v,"_setBlockers"),c=a(v=>$e(t?.createHref?t.createHref(v):v),"createHref"),l=t?.parseLocation??(()=>Lt(`${e.location.pathname}${e.location.search}${e.location.hash}`,e.history.state));if(!e.history.state?.__TSR_key&&!e.history.state?.key){let v=He();e.history.replaceState({[dt]:0,key:v,__TSR_key:v},"")}let u=l(),f,d=!1,h=!1,p=!1,m=!1,g=a(()=>u,"getLocation"),S,y=a(()=>{S&&(_._ignoreSubscribers=!0,(S[2]?e.history.pushState:e.history.replaceState)(S[1],"",S[0]),_._ignoreSubscribers=!1,S=void 0,f=void 0)},"flush"),R=a((v,x,P)=>{let L=t?.createHref?c(x):void 0,k=!!S;k||(f=u),u=Lt(x,P),S=[L??u.href,P,S?.[2]||v],k||queueMicrotask(()=>y())},"queueHistoryAction"),b=a(v=>{u=l(),_.notify({type:v})},"onPushPop"),w=a(async()=>{if(m=!1,h){h=!1;return}let v=l(),x=v.state[dt]-u.state[dt],P=x===1,L=x===-1,k=!P&&!L||d;d=!1;let E=k?"GO":L?"BACK":"FORWARD",O=k?{type:"GO",index:x}:{type:L?"BACK":"FORWARD"};if(p)p=!1;else{let F=i();if(typeof document<"u"&&F.length){for(let N of F)if(await N.blockerFn({currentLocation:u,nextLocation:v,action:E})){h=!0,e.history.go(-x),_.notify(O);return}}}u=l(),_.notify(O)},"onPushPopEvent"),C=a(v=>{if(m){m=!1;return}let x=!1,P=i();if(typeof document<"u"&&P.length)for(let L of P){let k=L.enableBeforeUnload??!0;if(k===!0){x=!0;break}if(typeof k=="function"&&k()===!0){x=!0;break}}if(x)return v.preventDefault(),v.returnValue=""},"onBeforeUnload"),_=Be({getLocation:g,getLength:a(()=>e.history.length,"getLength"),pushState:a((v,x)=>R(!0,v,x),"pushState"),replaceState:a((v,x)=>R(!1,v,x),"replaceState"),back:a(v=>(v&&(p=!0,m=!0),e.history.back()),"back"),forward:a(v=>{v&&(p=!0,m=!0),e.history.forward()},"forward"),go:a((v,x)=>{d=!0,x&&(p=!0,m=!0),e.history.go(v)},"go"),createHref:c,flush:y,destroy:a(()=>{e.history.pushState=o,e.history.replaceState=n,e.removeEventListener(nn,C,{capture:!0}),e.removeEventListener(on,w)},"destroy"),onBlocked:a(()=>{f&&u!==f&&(u=f)},"onBlocked"),getBlockers:i,setBlockers:s,notifyOnIndexChange:!1});return _._ignoreNextBeforeUnload=v=>{m=!1;try{v=new URL(v,e.document.baseURI).href,m=/^https?:/.test(v)&&(!v.includes("#")||v.split("#")[0]!==e.location.href.split("#")[0])}catch{}},e.addEventListener(nn,C,{capture:!0}),e.addEventListener(on,w),e.history.pushState=function(...v){let x=o.apply(e.history,v);return _._ignoreSubscribers||b("PUSH"),x},e.history.replaceState=function(...v){let x=n.apply(e.history,v);return _._ignoreSubscribers||b("REPLACE"),x},_}a(Ve,"createBrowserHistory");function Lr(t={initialEntries:["/"]}){let e=t.initialEntries,o=t.initialIndex?Math.min(Math.max(t.initialIndex,0),e.length-1):e.length-1,n=e.map((l,u)=>Ae(u,void 0)),r=a(()=>Lt(e[o],n[o]),"getLocation"),i=[];return Be({getLocation:r,getLength:a(()=>e.length,"getLength"),pushState:a((l,u)=>{o=o<e.length-1?o+1:e.length,n[o]=u,e[o]=l,o<e.length-1&&(e.length=o+1,n.length=o+1)},"pushState"),replaceState:a((l,u)=>{n[o]=u,e[o]=l},"replaceState"),back:a(()=>{o=Math.max(o-1,0)},"back"),forward:a(()=>{o=Math.min(o+1,e.length-1)},"forward"),go:a(l=>{o=Math.min(Math.max(o+l,0),e.length-1)},"go"),createHref:$e,getBlockers:a(()=>i,"_getBlockers"),setBlockers:a(l=>i=l,"_setBlockers")})}a(Lr,"createMemoryHistory");function Lt(t,e){let o=$e(t),n=o.indexOf("#"),r=o.indexOf("?");if(!e){let i=He();e={[dt]:0,key:i,__TSR_key:i}}return{href:o,pathname:o.slice(0,n>-1?r>-1?Math.min(n,r):n:r>-1?r:o.length),hash:n>-1?o.slice(n):"",search:r>-1?o.slice(r,n===-1?void 0:n):"",state:e}}a(Lt,"parseHref");function He(){return(Math.random()+1).toString(36).slice(7)}a(He,"createRandomKey");function ze(t,e){return t.protocol!=="http:"&&t.protocol!=="https:"||t.origin!==e||!!t.username||!!t.password}a(ze,"isExternalUrl");function Ue(t){return t.pathname+t.search+t.hash}a(Ue,"getUrlPath");function rn(t){return t.options.loader||t.options.beforeLoad||t.lazyFn||t.options.component?.preload||t.options.pendingComponent?.preload}a(rn,"routeNeedsLoad");function vt(t,e){return{fromLocation:e,toLocation:t,pathChanged:e?.pathname!==t.pathname,hrefChanged:e?.href!==t.href,hashChanged:e?.hash!==t.hash}}a(vt,"getLocationChangeInfo");function sn({key:t,__TSR_key:e,__TSR_index:o,__hashScrollIntoViewOptions:n,...r}){return r}a(sn,"_getUserHistoryState");function ln(t){return t.findIndex(e=>e.status==="error"||e.status==="notFound"||e._notFound)+1}a(ln,"lifecycleEnd");function un(t,e,o,n,r,i){n&&(e=e.slice(0,n)),r&&(o=o.slice(0,r));for(let s of e){if(i&&t._tx!==i)return;o.some(c=>c.routeId===s.routeId)||t.routesById[s.routeId].options.onLeave?.(s)}for(let s of o){if(i&&t._tx!==i)return;t.routesById[s.routeId].options[e.some(c=>c.routeId===s.routeId)?"onStay":"onEnter"]?.(s)}}a(un,"runRouteLifecycle");var Ke=class{static{a(this,"RouterCore")}constructor(t,e){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={n:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.startTransition=async o=>(o(),!1),this.update=o=>{let n=this.options;this.options={...n,...o},this.isServer=this.options.isServer??!1??typeof document>"u",this.staticLocations=new WeakMap,this.protocolAllowlist=new Set(this.options.protocolAllowlist),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Ve()),this.origin=this.options.origin,this.origin||(!!1&&window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost");let r=this.options.basepath??"/",i=this.options.rewrite,s=this.basepath!==r||n?.rewrite!==i||n?.caseSensitive!==this.options.caseSensitive;if(s&&(this.basepath=r,this.rewrite=r!=="/"&&At(r)?tn(r,this.options.caseSensitive,i):i),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree||!1){this.routeTree=this.options.routeTree;let c;c=this.buildRouteTree(),!1,this.setRoutes(c)}if(this.stores)s&&this.stores.location.set(this.latestLocation);else if(this.latestLocation){let c=this.getStoreConfig(this);this.batch=c.batch,this.stores=en(this.latestLocation,c),$o(this)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{let o=Zo(this.routeTree,this.options.caseSensitive);return this.options.routeMasks&&Go(this.options.routeMasks,o.processedTree),{...o,resolvePathCache:Pt(1e3)}},this.subscribe=(o,n)=>{let r={eventType:o,fn:n};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=o=>{for(let n of this.subscribers)if(n.eventType===o.type)try{n.fn(o)}catch(r){console.error(r)}},this.parseLocation=(o,n)=>{let r=a(({pathname:l,search:u,hash:f,href:d},h)=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(l)){let S=this.options.parseSearch(u),y=this.options.stringifySearch(S);return{href:l+y+f,publicHref:l+y+f,pathname:bt(l),external:!1,searchStr:y,search:gt(n?.search,S),hash:bt(f.slice(1)),state:tt(n?.state,h)}}let p=ce(this.rewrite,new URL(d,this.origin)),m=this.options.parseSearch(p.search),g=this.options.stringifySearch(m);return p.search=g,{href:p.href.replace(p.origin,""),publicHref:d,pathname:bt($t(p.pathname)),external:!!this.rewrite&&ze(p,this.origin),searchStr:g,search:gt(n?.search,m),hash:bt(p.hash.slice(1)),state:tt(n?.state,h)}},"parse"),i=r(o,o.state),{__tempLocation:s,__tempKey:c}=i.state;if(s&&(!c||c===this.tempLocationKey)){let l=r(s,{...s.state,__tempLocation:void 0,key:i.state.key,__TSR_key:i.state.__TSR_key});return l.maskedLocation=i,l}return i},this.matchRoutes=(o,n,r)=>typeof o=="string"?this.matchRoutesInternal({pathname:o,search:n},r):this.matchRoutesInternal(o,n),this.getMatchedRoutes=o=>{let n=Object.create(null),r=Xo(H(o),this.processedTree,!0);return r&&Object.assign(n,r.rawParams),[r?.branch||[this.routesById.__root__],n,r?.route]},this.buildLocation=o=>{if(!!1){let s=this.staticLocations.get(o);if(s)return s}let n=!1,r=a((s={})=>{if(s.href){let F=Lt(s.href,{});s={...s,to:ce(this.rewrite,new URL(F.pathname,this.origin)).pathname,search:this.options.parseSearch(F.search),hash:F.hash.slice(1)}}let c=o._fromLocation||this._pendingLocation||this.latestLocation,l,u=a(()=>(n=!0,c),"current"),f=a(()=>l??=this.matchRoutesLightweight(u()),"currentMatch"),d=s.to?`${s.to}`:".",h=ee(d[0]==="/"?"":s.unsafeRelative==="path"?u().pathname:s.from??f()[1],d,this.options.trailingSlash,this.resolvePathCache),p=this.routesByPath[H(h)],m=h.includes("$"),g;if(p)g=p._branch??=Fe(p);else if(m)g=[];else{let[F,N,D]=this.getMatchedRoutes(h);g=F,this.options.notFoundRoute&&(!D||D.path!=="/"&&N["**"])&&(g=[...g,this.options.notFoundRoute])}let S=m?p?._interpolation??Et(!1,{fullPath:h},0):void 0,y;for(let F of g){let N=F.options.params?.stringify??F.options.stringifyParams;if(N){let D=f()[3];if(y??=We(s.params,D),!Tt(y))break;y===D&&(y=Object.assign(Mt(),y));try{Object.assign(y,N(y))}catch{}}}y??=We(s.params,kr(s.params,S)?f()[3]:je);let R=o.leaveParams?h:$t(bt(S?oe(h,S,y,this.pathParamsDecoder):h)),b=Ir(g,o._includeValidateSearch),w=a(()=>{let F=f()[2];if(o._includeValidateSearch&&this.options.search?.strict){let N={};g.forEach(D=>{if(D.options.validateSearch)try{Object.assign(N,le(D.options.validateSearch,{...N,...F}))}catch{}}),F=N}return F},"fromSearch"),C=b.length?Or(b,w(),s):s.search===!0?w():typeof s.search=="function"?s.search(w()):s.search||je,_=this.options.stringifySearch(C),v=s.hash===!0?u().hash:typeof s.hash=="function"?s.hash(u().hash):s.hash||void 0,x=v?`#${v}`:"",P=s.state?s.state===!0?u().state:typeof s.state=="function"?s.state(u().state):s.state:je,L=`${R}${_}${x}`,k,E,O=!1;if(this.rewrite){let F=new URL(L,this.origin),N=F.origin,D=Te(this.rewrite,F);k=Ue(F),ze(D,N)?(E=D.href,O=!0):E=$t(Ue(D))}else k=No(L),E=k;return{publicHref:E,href:k,pathname:R,search:C,searchStr:_,state:P,hash:v??"",external:O,unmaskOnReload:s.unmaskOnReload}},"build"),i=r(o);if(o.mask)i.maskedLocation=r({from:o.from,...o.mask});else if(this.options.routeMasks){let s=Jo(i.pathname,this.processedTree);if(s){let c=Object.assign(Mt(),s.rawParams),{from:l,params:u,...f}=s.route,d=We(u,c);i.maskedLocation=r({from:o.from,...f,params:d})}}return!!1&&!n&&o._fromLocation&&this.staticLocations.set(o,i),i},this.commitLocation=async({viewTransition:o,ignoreBlocker:n,...r})=>{if(!1)return;let i=r.maskedLocation??r;if(i.external&&!!1)return an(this,i.publicHref,{replace:r.replace,ignoreBlocker:n});let s,c=H(this.latestLocation.href)===H(r.href)&&J(sn(r.state),sn(this.latestLocation.state)),l=this._commitPromise,u,f=new Promise(d=>{u=d});if(f.resolve=()=>{u(),l?.resolve()},this._commitPromise=f,c)this.load();else{let{maskedLocation:d,hashScrollIntoView:h,...p}=r;d&&(p={...d,state:{...d.state,__tempKey:void 0,__tempLocation:{...p,search:p.searchStr,state:{...p.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(p.unmaskOnReload??this.options.unmaskOnReload??!1)&&(p.state.__tempKey=this.tempLocationKey)),p.state={...p.state,__hashScrollIntoViewOptions:h??this.options.defaultHashScrollIntoView??!0},this.shouldViewTransition=o,s=r.replace?"REPLACE":"PUSH",this.history[s==="REPLACE"?"replace":"push"](p.publicHref,p.state,{ignoreBlocker:n}),this.history.subscribers.size||this.load({action:{type:s}})}return this._scroll.n=r.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:o,resetScroll:n,hashScrollIntoView:r,viewTransition:i,ignoreBlocker:s,...c}={})=>{if(!1)return Promise.resolve();let l=this.buildLocation({...c,_includeValidateSearch:!0});this._pendingLocation=l;let u=this.commitLocation({...l,viewTransition:i,replace:o,resetScroll:n,hashScrollIntoView:r,ignoreBlocker:s});return queueMicrotask(()=>{this._pendingLocation===l&&(this._pendingLocation=void 0)}),u},this.navigate=async({to:o,reloadDocument:n,href:r,publicHref:i,...s})=>{if(!1)return;let c=r?it(r):void 0;if(c||n){if(o!==void 0||!r){let u=this.buildLocation({to:o,...s}),f=u.maskedLocation??u;r??=f.publicHref,i??=f.publicHref}return an(this,!c&&i?i:r,s)}return this.buildAndCommitLocation({...s,href:r,to:o,_isNavigate:!0})},this.load=async o=>{if(!1)return(void 0)(this,o);this.updateLatestLocation(),o?.action&&(this._scroll.h=o.action.type==="PUSH"||o.action.type==="REPLACE"),await dn(this,o)},this.startViewTransition=o=>{let n=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,n&&!!1&&typeof document.startViewTransition=="function"){let r;if(typeof n=="object"&&window.CSS?.supports?.("selector(:active-view-transition-type(a))")){let i=this.latestLocation,s=this.stores.resolvedLocation.get(),c=typeof n.types=="function"?n.types(vt(i,s)):n.types;if(c===!1)return o();r={update:o,types:c}}else r=o;return document.startViewTransition(r).updateCallbackDone}return o()},this.invalidate=o=>{let n=this._committed,r=o?.filter,i=this._preloads,s=new Set,c=a(f=>{(!r||r(f))&&s.add(f.id)},"consider");n.forEach(c),this._cache.forEach(c),i?.forEach(f=>f.forEach(c)),this._tx?.[3].forEach(c);let l=[];for(let[f,d]of i??[])d.some(h=>s.has(h.id))&&(i.delete(f),l.push(f));let u=a(f=>{if(s.has(f.id)){let d=this.routesById[f.routeId],h={...f,invalid:!0,...(o?.forcePending||f.status==="error"||f.status==="notFound")&&rn(d)?{status:"pending",error:void 0}:void 0};return f._flight=void 0,h}return f},"invalidate");this._committed=n.map(u);for(let[f,d]of this._cache)s.has(f)&&(d.invalid=!0,o?.forcePending&&(d.status="pending"));for(let f of s){let d=this._flights?.get(f);this._flights?.delete(f),d&&!d[2]&&l.push(d[1])}for(let f of l)f.abort();return this.shouldViewTransition=!1,this.load({sync:o?.sync})},this.resolveRedirect=o=>{let n=o.options,r=o.headers.get("Location")||n.href;if(!r){let s=this.buildLocation(n);r=(s.maskedLocation??s).publicHref||"/"}let i;if(ke.test(r)||(i=it(r))&&!this.protocolAllowlist.has(i))throw new Error("Redirect blocked: unsafe protocol");if(i==="http:"||i==="https:"){let s=new URL(r);s.pathname.startsWith("//")?r=s.href:ze(s,this.origin)||(r=Ue(s),i=void 0)}return i&&(n.reloadDocument=!0),n.href=r,o.headers.set("Location",r),o},this.clearCache=o=>{let n=this._cache,r=this._preloads,i=o?.filter,s=[],c=[];for(let[u,f]of n)(!i||i(f))&&(c.push(u),s.push(f));let l=[];for(let[u,f]of r??[])(!i||f.some(i))&&(l.push(u),s.push(...f));for(let u of c)n.delete(u);for(let u of l)r.delete(u);for(let u of s){let f=u._flight;u._flight=void 0,f&&!--f[2]&&(this._flights?.get(u.id)===f&&this._flights.delete(u.id),l.push(f[1]))}for(let u of l)u.abort()},this.loadRouteChunk=St,this.preloadRoute=o=>hn(this,o),this.matchRoute=(o,n)=>{let r={...o,to:o.to?ee(o.from||"",o.to,this.options.trailingSlash,this.resolvePathCache):void 0,params:o.params||{},leaveParams:!0},i=this.buildLocation(r),s=this.stores.status.get()==="pending";if(n?.pending&&!s)return!1;let c=n?.pending??!s?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),l=Yo(i.pathname,n?.caseSensitive??!1,n?.fuzzy??!1,c.pathname,this.processedTree);return!l||o.params&&!J(l.rawParams,o.params,!0)?!1:n?.includeSearch??!0?J(c.search,i.search,!0)?l.rawParams:!1:l.rawParams},this.getStoreConfig=e,t.pathParamsAllowedCharacters?.length&&(this.pathParamsDecoder=To(t.pathParamsAllowedCharacters)),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??Uo,parseSearch:t.parseSearch??zo,protocolAllowlist:t.protocolAllowlist??Le}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes(t){Object.assign(this,t),this.lightweightCache=new WeakMap,this.staticLocations=new WeakMap;let e=this.options.notFoundRoute;e&&(e.init(99999999999),this.routesById[e.id]!==e&&(e._interpolation=Et(!1,e,0)),this.routesById[e.id]=e)}matchRoutesInternal(t,e){let[o,n,r]=this.getMatchedRoutes(t.pathname),i=o,s=!1;(r?r.path!=="/"&&n["**"]:H(t.pathname))&&(this.options.notFoundRoute?i=[...i,this.options.notFoundRoute]:s=!0);let c=s?Nr(this.options.notFoundMode,i):void 0,l=new Array(i.length),u=this._committed,f=a((h,p)=>{let m=u[p];return m?.routeId===h.id?m:h===this.options.notFoundRoute?u.find(g=>g.routeId===h.id):void 0},"previousAt"),d;for(let h=0;h<i.length;h++){let p=i[h],m=l[h-1],g,S,y;{let O=m?.search??t.search,F=m?._strictSearch??void 0;try{let N=le(p.options.validateSearch,{...O})??void 0;g={...O,...N},S={...F,...N}}catch(N){let D=N;if(N instanceof Bt||(D=new Bt(N.message,{cause:N})),e?.throwOnError)throw D;g=O,S={},y=D}}let R="",b="";try{R=p.options.loaderDeps?.({search:g})??"",b=R&&JSON.stringify(R)||""}catch(O){if(e?.throwOnError)throw O;y??=O}let w=Mt(),C=p._interpolation?oe(p.fullPath,p._interpolation,n,this.pathParamsDecoder,w):p.fullPath,_=p.id+C+b,v=f(p,h),x=this._cache.get(_)??(v?.id===_?v:void 0);d=x?._strictParams??Object.assign(w,d);let P;if(!x)try{cn(p,d)}catch(O){if(q(O)||se(O)?P=O:P=new fn(O.message,{cause:O}),e?.throwOnError)throw P}let L=v?"stay":"enter",k;if(x)k={...x,cause:L,search:v?gt(v.search,g):gt(x.search,g),_strictSearch:S,searchError:y};else{let O=rn(p)?"pending":"success";k={id:_,ssr:p.options.ssr,index:h,routeId:p.id,params:v?.params??d,_strictParams:d,pathname:C,updatedAt:Date.now(),search:v?gt(v.search,g):g,_strictSearch:S,searchError:y,status:O,isFetching:!1,error:void 0,paramsError:P,context:{},abortController:e?._controller??new AbortController,cause:L,loaderDeps:v?tt(v.loaderDeps,R):R,invalid:!1,preload:!1,staticData:p.options.staticData||{},fullPath:p.fullPath}}let E=c===p.id;k._notFound&&!E&&(k.error=void 0),k._notFound=E,l[h]=k}for(let h=0;h<l.length;h++){let p=l[h];p.params=p.cause==="stay"?gt(p.params,d):d,e?._controller&&(p.context={})}return l}matchRoutesLightweight(t){let e=et(this.stores.ids.get()),o=e?this.stores.byRoute.get(e).get():void 0,n=o?.id,r=this.lightweightCache.get(t);if(r&&r[0]===n)return r[1];let[i,s]=this.getMatchedRoutes(t.pathname),c=et(i),l={...t.search};for(let h of i)try{Object.assign(l,le(h.options.validateSearch,l))}catch{}let u=o&&o.routeId===c.id&&o.pathname===t.pathname,f;if(u)f=o.params;else{let h=s;for(let p of i)try{cn(p,h)}catch{}f=h}let d=[i,c.fullPath,l,f];return this.lightweightCache.set(t,[n,d]),d}};async function an(t,e,{replace:o,ignoreBlocker:n}){if(!Dt(e,t.protocolAllowlist)){if(!n){let r=t.history._getBlockers();for(let i of r)if(i?.blockerFn&&await i.blockerFn({currentLocation:t.history.location,nextLocation:t.history.location,action:o?"REPLACE":"PUSH"}))return}t.history._ignoreNextBeforeUnload?.(e),o?window.location.replace(e):window.location.href=e}}a(an,"documentNavigation");var Bt=class extends Error{static{a(this,"SearchParamError")}},fn=class extends Error{static{a(this,"PathParamError")}};function le(t,e){if(t==null)return{};if("~standard"in t){let o=t["~standard"].validate(e);if(o instanceof Promise)throw new Bt("Async validation not supported");if(o.issues)throw new Bt(JSON.stringify(o.issues,void 0,2),{cause:o});return o.value}return"parse"in t?t.parse(e):typeof t=="function"?t(e):{}}a(le,"validateSearch");function We(t,e){if(t===void 0||t===!0)return e;let o=Object.create(null);return t===!1||t===null?o:typeof t=="function"?(Object.assign(o,e),Object.assign(o,t(o))):Object.assign(o,e,t)}a(We,"resolveNextParams");function kr(t,e){return typeof t=="function"?!0:!e||t===!1||t===null?!1:t===void 0||t===!0||e.some(o=>typeof o!="string"&&!Zt.call(t,o[1]))}a(kr,"needsInheritedParams");var je=Object.freeze({});function Ir(t,e){let o=[];for(let n=0;n<t.length;n++){let r=t[n].options;if("search"in r)r.search?.middlewares&&o.push(...r.search.middlewares);else if(r.preSearchFilters||r.postSearchFilters){let s=a(({search:c,next:l})=>{let u=l(r.preSearchFilters?r.preSearchFilters.reduce((f,d)=>d(f),c):c);return r.postSearchFilters?r.postSearchFilters.reduce((f,d)=>d(f),u):u},"legacyMiddleware");o.push(s)}let i=r.validateSearch;if(e&&i){let s=a(({search:c,next:l,meta:u})=>{let f=l(c);try{let d=le(i,f);if(u&&d)for(let h in d)h in f||(u.defaulted||=new Map).set(h,d[h]);return{...f,...d}}catch{}return f},"validate");o.push(s)}}return o}a(Ir,"getSearchMiddlewares");function Or(t,e,o){let n=a((r,i,s)=>{if(r>=t.length){if(!o.search)return{};if(o.search===!0)return i;let l=mt(o.search,i);return s&&(s.explicit=l),l}let c=a((l,u)=>{if(u){let f=s||{};return{search:n(r+1,l,f),meta:f}}return n(r+1,l,s)},"next");return t[r]({search:i,next:c,meta:s})},"applyNext");return n(0,e)}a(Or,"applySearchMiddleware");function Nr(t,e){if(t!=="root"){let o;for(let n=e.length-1;n>=0;n--){let r=e[n];if(r.options.notFoundComponent)return r.id;o||=r.children&&r.id}if(o)return o}return Y}a(Nr,"findGlobalNotFoundRouteId");function cn(t,e){let o=t.options.params?.parse??t.options.parseParams;o&&Object.assign(e,o(e))}a(cn,"extractStrictParams");function qe(t,e){return t.options[e]?.preload?.()}a(qe,"preloadComponent");function Fr(t,e){let o=qe(t,"component"),n=qe(t,"pendingComponent");return e&&(n?n=n.then(e):e()),o&&n?Promise.all([o,n]).then(()=>{}):o??n}a(Fr,"loadComponents");function St(t,e,o){let n=a(()=>e===!1?void 0:e?qe(t,e):Fr(t,o),"afterLazy"),r=t._lazy;if(r)return r===!0?n():r.then(n);if(!t.lazyFn)return n();let i=t.lazyFn().then(s=>{{let{id:c,...l}=s.options;Object.assign(t.options,l),t._lazy=!0}},s=>{throw t._lazy=void 0,s});return t._lazy=i,i.then(n)}a(St,"loadRouteChunk");function fe(t){let e=t.findIndex(o=>o.status!=="success"||o._notFound)+1;return e&&e<t.length?t.slice(0,e):t}a(fe,"_getRenderedMatches");function Ye(t,e,o){let n=t._tx;return e&&n?.[2]===o&&!n[3].some(r=>r.routeId===e)}a(Ye,"_isRouteDeparting");var rt=0,lt=1,de=2,z=3,ht=[4];function zt(t){return typeof t[0]=="number"}a(zt,"isControl");function _t(t,e){return e.aborted?Promise.race([Promise.reject(e),t]):new Promise((o,n)=>{let r=a(()=>n(e),"abort");e.addEventListener("abort",r,{once:!0}),Promise.resolve(t).then(o,n).then(()=>e.removeEventListener("abort",r))})}a(_t,"waitFor");function wt(t,e){return t.routesById[e.routeId]}a(wt,"getRoute");function Ut(t,e,o){return se(t)?[z,t]:q(t)?(t.routeId||=o,[de,t]):e?(typeof t?.then=="function"&&(t=new Error("A Promise was thrown",{cause:t})),[lt,t]):[rt,t]}a(Ut,"normalize");function Xe(t,e){let o=Ut(e,!0,t.id);if(o[0]!==lt)return o;try{t.options.onError?.(o[1])}catch(n){o=Ut(n,!0,t.id)}return o}a(Xe,"normalizeError");function Ht(t,e,o,n,r){return r[0].signal.aborted?ht:to(t,e,o,Xe(o,n),r)}a(Ht,"normalizeLaneError");async function Tr(t,e,o,n,r,i){let[s,c]=e,l=o[0].signal,u=!!o[3];for(let f=o[6]??0;f<n;f++){let d=c[f],h=wt(t,d);d.abortController=o[0];let p=c[f-1]?.context??t.options.context??{},m={params:d.params,location:s,navigate:a(R=>t.navigate({...R,_fromLocation:s}),"navigate"),buildLocation:t.buildLocation,cause:u?"preload":d.cause,abortController:o[0],preload:u,matches:c,routeId:h.id};try{let R=d._ctx||=h.options.context?h.options.context({...m,deps:d.loaderDeps,context:p})||{}:void 0;d.context={...p,...R}}catch(R){return ct(t,d),[f,Ht(t,e,h,R,o)]}if(l.aborted)return[f,ht];let g=d.paramsError??d.searchError;if(g!==void 0)return ct(t,d),[f,Ht(t,e,h,g,o)];let S=h.options.beforeLoad;if(!S)continue;let y=d.status;f>=i&&(d.status="pending",o[7]?.());try{Wt(t,d,"beforeLoad",o[0]);let R=S({...m,search:d.search,context:d.context,...t.options.additionalContext}),b=await(typeof R?.then=="function"?_t(R,l):R);if(l.aborted)return[f,ht];let w=to(t,e,h,Ut(b,!1,h.id),o);if(w[0]!==rt)return ct(t,d),[f,w];d.context={...d.context,...b}}catch(R){return ct(t,d),[f,Ht(t,e,h,R,o)]}finally{d.status=y,Wt(t,d,!1,o[0])}}r()}a(Tr,"contextualize");function Ze(t,e,o){if(!(!o||--o[2])){if(t._flights?.get(e.id)===o){let n=t._tx;if(n&&!n[0].signal.aborted&&!n[3].includes(e)&&n[3].some(r=>r.id===e.id)&&n[3].some(r=>r.isFetching==="beforeLoad"))return;t._flights.delete(e.id)}return o[1]}}a(Ze,"releaseOwnedFlight");function ct(t,e){let o=e._flight;e._flight=void 0,Ze(t,e,o)?.abort()}a(ct,"releaseFlight");function U(t,e,o,n){let r=[];for(let i of e)if(!o?.includes(i)){let s=i._flight;if(i._flight=void 0,n&&s?.[2]===1&&t._flights?.get(i.id)===s&&o?.some(c=>c.id===i.id))s[2]=0;else{let c=Ze(t,i,s);c&&r.push(c)}}for(let i of r)i.abort()}a(U,"transferMatchResources");function Qe(t){for(let e of t){let o=e._flight;o&&o[2]++}}a(Qe,"acquireMatchResources");function Wt(t,e,o,n){if(e.isFetching=o,n&&t._tx?.[0]!==n)return;let r=t.stores.byRoute.get(e.routeId),i=r?.get();i?.id===e.id&&r.set({...i,isFetching:o})}a(Wt,"setFetching");function Sn(t,e,o,n,r,i,s){let c=e[0];return{params:o.params,location:c,navigate:a(l=>t.navigate({...l,_fromLocation:c}),"navigate"),cause:s?"preload":o.cause,abortController:r,preload:s,deps:o.loaderDeps,parentMatchPromise:i,context:o.context,route:n,...t.options.additionalContext}}a(Sn,"getLoaderContext");async function pn(t,e,o,n,r,i,s){let c=s[0],l=c.signal;if(l.aborted)return ht;if(!r)return[rt,void 0];let u=o._flight;Wt(t,o,"loader",c);try{if(!u){let f=new AbortController;u=[Promise.resolve().then(()=>r(Sn(t,e,o,n,f,i,!!s[3]))).then(d=>Ut(d,!1,n.id),d=>Ut(d,!0,n.id)).then(d=>(d[0]!==rt&&t._flights?.get(o.id)===u&&(t._flights.delete(o.id),u[2]||f.abort()),d[0]===lt&&u[2]?Xe(n,d[1]):d)),f,1],(t._flights??=new Map).set(o.id,u)}return o._flight=u,o.abortController=u[1],to(t,e,n,await _t(u[0],l),s)}catch(f){if(f!==l||!l.aborted)throw f;return ct(t,o),ht}finally{Wt(t,o,!1,c)}}a(pn,"loadResource");function mn(t,e,o){e[0]!==z&&(t.status="success",t.error=void 0,e[0]===rt?(t.loaderData=e[1],t.invalid=!1,t.updatedAt=Date.now(),t.preload=o):t.invalid=!0)}a(mn,"settleInto");function Mr(t,e,o){let n=t._cache.get(e.id);if(n!==o||t._committed.some(i=>i.id===e.id&&i._flight===e._flight))return;let r={...e,_notFound:void 0,context:{}};r._flight&&r._flight[2]++,t._cache.set(e.id,r),n&&ct(t,n)}a(Mr,"cacheLoaderMatch");function gn(t,e){return e[0]===lt||e[0]===de?{...t,status:e[0]===lt?"error":"notFound",error:e[1],_flight:void 0}:t}a(gn,"getParentSnapshot");function Dr(t,e,o,n,r,i,s){let c=e[1][o],l=wt(t,c),u=!!i[3],f=t._cache.get(c.id),d,h=!1,p;try{if(c.status==="success"&&(d=l.options.shouldReload,typeof d=="function"&&(d=d(Sn(t,e,c,l,i[0],r,u))),i[0].signal.aborted&&(p=ht)),!p)if(c.status!=="success")h=!0;else{let E=u||c.preload?l.options.preloadStaleTime??t.options.defaultPreloadStaleTime??3e4:l.options.staleTime??t.options.defaultStaleTime??0;h=!!(c.invalid||d||d===void 0&&Date.now()-c.updatedAt>=E&&(i[5]||c.cause==="enter"||i[2].some(O=>O.routeId===c.routeId&&O.id!==c.id)))}}catch(E){c.invalid=!0,ct(t,c),p=Ht(t,e,l,E,i)}let m=l.options.loader,g=typeof m=="function",S=g?m:m?.handler,y=!u||l.options.preload!==!1,R=y&&m?t._flights?.get(c.id):void 0;R===c._flight||p?R=void 0:R&&!h&&!u&&d===void 0?h=!0:h||(R=void 0);let b=!!(m&&h&&c.status==="success"&&!u&&!i[4]&&((g?void 0:m.staleReloadMode)??t.options.defaultStaleReloadMode)!=="blocking"),w=h&&y,C=w&&!b&&(c.status!=="success"||!!m),_=o>=s?i[7]:void 0,v=l.lazyFn&&l._lazy!==!0?_:void 0;if(w&&!m&&(c.invalid=!1,c.updatedAt=Date.now()),R&&R[2]++,C){let E=c._flight;c._flight=R,Ze(t,c,E)?.abort(),o>=s&&(c.status="pending"),_?.()}w||(c.isFetching=!1);let x=!p&&C?pn(t,e,c,l,S,r,i).then(E=>(mn(c,E,u),E[0]===rt&&(m&&!i[0].signal.aborted&&Mr(t,c,f),o>=s&&(c.status="pending")),E)):Promise.resolve(p??[rt,c.loaderData]),P=(async()=>{try{let O=St(l,void 0,v);O&&await _t(O,i[0].signal)}catch(O){if(!e[1].some((F,N)=>N<=o&&(F.status==="error"||F.status==="notFound"||F._notFound)))return[o,Ht(t,e,l,O,i)]}let E=await x;C&&E[0]===rt&&c.status==="pending"&&!i[0].signal.aborted&&(c.status="success",_?.())})();if(n.push([o,x,P]),!b)return x.then(E=>gn(c,E));let L={...c,status:"pending",preload:!1,_flight:R};c.invalid=!1,c.isFetching="loader";let k=pn(t,e,L,l,S,r,i).then(E=>(c.isFetching=!1,mn(L,E,!1),E));return(e[2]??=[]).push([o,k,P,L]),k.then(E=>gn(L,E))}a(Dr,"createLoaderTask");async function Ge(t,e,o,n,r=0){let i=o?.[1][1],s=i?.routeId?e.findIndex(c=>c.routeId===i.routeId):o?.[0]??e.length-1;s<0&&(s=0);for(let c=s;c>=0;c--){let l=wt(t,e[c]);try{let u=St(l,!1);u&&await _t(u,n)}catch(u){if(u===n&&n.aborted)throw u}if(l.options.notFoundComponent)return c}return i?.routeId?s:r}a(Ge,"getNotFoundBoundary");function Rt(t,e){e[2]&&(U(t,e[2].map(o=>o[3])),e[2]=void 0)}a(Rt,"discardBackground");async function yn(t,e,o,n){let r;try{await Promise.all(t.map(i=>i[1].then(async s=>{let c=i[0];if(!(n&&c>=await n)){if(s[0]>=z)throw[c,s];!r&&s[0]!==rt&&(r=[c,s],await Promise.all((o??[]).map(l=>{if(!(l[0]<=c))return l[1].then(u=>{if(u[0]===z)throw[l[0],u]})})))}})))}catch(i){return i}return e??r}a(yn,"settleTasks");function to(t,e,o,n,r,i){for(;n[0]===z;){let s=n[1],c=s.options;try{if((c.href||s.headers.has("Location"))&&(t.resolveRedirect(s),c.reloadDocument)||(c.reloadDocument?r[3]:r[1]>=20))return n;let l=t.buildLocation({...c,_fromLocation:e[0],_includeValidateSearch:!0}),u=l.maskedLocation??l;if(u.external){let f=s.clone();return f.options={...c},f.headers.set("Location",u.publicHref),t.resolveRedirect(f),r[3]?[z,f]:[z,f,u]}return[z,s,l]}catch(l){n=i?[lt,l]:Xe(o,l),i=!0}}return n}a(to,"materializeRedirect");async function Rn(t,e,o,n,r,i){let s=e[1],c=await r,l=!1,u=s.findIndex(p=>p._notFound),f=a(p=>p[1][0]===de?Ge(t,s,p,n.signal):p[0],"boundaryOf"),d=u<0?s.length:u;if((c?.[1][0]??0)>=z)d=0;else if(c){d=c[2]??=await f(c);for(let p of o){if(p[0]>=d)break;let m=await p[1];if(m[0]!==rt&&m[0]<z&&!("loaderData"in s[p[0]])){c=[p[0],m],d=c[2]=await f(c);break}}}for(let p of o){if(p[0]>=d)break;let m=await p[2];if(m){c=m;break}}if((c?.[1][0]??0)>=z){let p=c[1];if(p[0]!==z||p[1].options.reloadDocument||p[2])return Rt(t,e),p;l=!0,c=[0,[lt,new Error("Too many redirects")]]}let h=c?c[2]??await f(c):u;if(h>=0){let p=c?.[1],m=p?.[0],g=s[h],S=p?.[1],y=a(()=>{p&&(g._notFound=void 0,m===lt?g.status="error":(S.routeId=g.routeId,g.routeId===t.routeTree.id?(g.status="success",g._notFound=!0):g.status="notFound"),g.error=S,g.isFetching=!1)},"install");y(),p||i?.();let R=wt(t,g);try{await _t(p?Promise.resolve().then(()=>St(R,m===lt?"errorComponent":"notFoundComponent")):Promise.all([St(R),St(R,"notFoundComponent")]),n.signal)}catch(b){if(b===n.signal&&n.signal.aborted)return Rt(t,e),ht}p?l&&(n.abort(),await Promise.all([...o.map(b=>b[1]),...o.map(b=>b[2]),...(e[2]??[]).map(b=>b[1])]),Rt(t,e),U(t,s),y()):g.status="success"}return e}a(Rn,"reduceLane");async function _n(t,e,o,n=0,r=e[1].length){let i=e[1];for(let s=n;s<r;s++){let c=i[s],l=wt(t,c).options;if(l.head||l.scripts)try{let u={ssr:t.options.ssr,matches:i,match:c,params:c.params,loaderData:c.loaderData},[f,d]=await _t(Promise.all([l.head?.(u),l.scripts?.(u)]),o);c.meta=f?.meta,c.links=f?.links,c.headScripts=f?.scripts,c.styles=f?.styles,c.scripts=d}catch(u){if(u===o&&o.aborted)break;console.error(u)}if(c.status!=="success"||c._notFound)break}return e}a(_n,"projectLane");async function wn(t,e,o,n){let r=[e,o],i=n[0].signal,s;try{let c=t.stores.matches.get(),l=o.findIndex(y=>y._notFound);if(t.options.notFoundMode!=="root"&&l>=0){let y=await Ge(t,o,void 0,i,l);o[l]._notFound=void 0,o[y]._notFound=!0,l=y}let u=l<0?o.length:l+1,f=0;for(;f<u&&f!==l;){let y=o[f],R=n[2][f],b=c[f];if(R?.id!==y.id||R.status!=="success"||y.preload||b?.id!==y.id||b.status!=="success"||(f++,R._notFound||b._notFound))break}let d=[],h=n[6]??0,p=h?Promise.resolve(o[h-1]):void 0,m=a(()=>{for(let y=h;y<u&&!i.aborted;y++)p=Dr(t,r,y,d,p,n,f)},"planSuccessfulLane"),g=await Tr(t,r,n,u,m,f);if(g){if(n[4]=!0,u=g[0],g[1][0]===de){let y=await Ge(t,o,g,i);g[2]=y,u=Math.min(u,y+1)}else g[1][0]>=z&&(u=0);m()}if(!i.aborted&&!n[3]){let y=[];for(let[R,b]of t._flights??[])b[2]||(t._flights.delete(R),y.push(b[1]));for(let R of y)R.abort()}let S=Rn(t,r,d,n[0],yn(d,g,r[2]),n[7]);r[2]?.length&&(r[3]=yn(r[2],void 0,void 0,S.then(y=>zt(y)?0:fe(o).length,()=>0))),s=await S}catch(c){if(Rt(t,r),c===i&&i.aborted)return ht;throw c}return zt(s)?s:_n(t,s,i,n[6]===o.length?n[6]:0)}a(wn,"executeClientLane");function Je(t,e){if(t._tx!==e)return;let o=e[3],n=t.stores.matches.get(),r=t._pending;for(let i=0;i<o.length;i++){let s=o[i],c=s.status==="success"&&!s._notFound,l=n[i]?.id===s.id&&n[i]?.status==="pending";if(c&&!l)continue;let u=wt(t,s),f=c||s.invalid?0:u.options.pendingMs??t.options.defaultPendingMs,d=u.options.pendingComponent??t.options.defaultPendingComponent;if(!d||typeof f!="number"||f===1/0){r&&(r[0]=e,r[2]=0,r[4]=!0);return}let h=u.options.pendingMinMs??t.options.defaultPendingMinMs??0,p=!1;if(r?.[1]===s.id?(p=r[0]!==e,r[0]=e):(clearTimeout(r?.[3]),t._pending=r=void 0),r||(t._pending=r=[e,s.id,l?Date.now()+h:e[4]+f,void 0,l||void 0,d]),r[4]&&!p&&r[5]===d)return;if(r[5]=d,!r[4]){clearTimeout(r[3]);let S=r[2]-Date.now();if(S>0){r[3]=setTimeout(()=>Je(t,e),S);return}r[2]=0}let m=o.map(S=>({...S,_flight:void 0}));m[i].status="pending";let g=r[4]=t.startTransition(()=>t.stores.setMatches(m),m).then(S=>(S&&t._pending===r&&r[4]===g&&!r[2]&&(r[2]=Date.now()+h),S));return}}a(Je,"offerPending");function Vt(t,e){let o=t._pending;(t._tx===e||!t._tx?.[3].some(n=>n.id===o?.[1]))&&(clearTimeout(o?.[3]),t._pending=void 0)}a(Vt,"finishPending");async function vn(t,e){let o=t._pending;if(!o)return;clearTimeout(o[3]);let n=o[2]-Date.now();if(!o[4]||n<=0||!fe(e[3]).some(i=>i.id===o[1]))return;let r;try{await _t(new Promise(i=>{r=setTimeout(i,n)}),e[0].signal)}catch{}clearTimeout(r)}a(vn,"awaitPendingMinimum");function xn(t,e){t._committed=e,t.stores.setMatches(e)}a(xn,"publishMatches");function Ar(t,e,o,n){let r=t._committed,i=t._lifecycleEnd,s=t._cache;for(let f of o)f.preload=!1,n&&(f._assetEnd=void 0);let c=fe(o).length,l=new Map;{let f=Date.now(),d=new Set;for(let h=0;h<o.length;h++){let p=o[h];(h<c||p.status==="success")&&d.add(p.id)}for(let h of[...r,...s.values()]){if(h.status!=="success"||d.has(h.id))continue;let p=wt(t,h);!p.options.loader||f-h.updatedAt>=(h.preload?p.options.preloadGcTime??t.options.defaultPreloadGcTime??3e5:p.options.gcTime??t.options.defaultGcTime??3e5)||l.set(h.id,s.get(h.id)===h?h:{...h,_flight:void 0,isFetching:!1,context:{}})}}e[3]=[],t._cache=l;let u=t._lifecycleEnd=ln(o);xn(t,o),U(t,[...s.values(),...r].filter(f=>f._flight&&l.get(f.id)!==f),o),un(t,r,o,i,u,e)}a(Ar,"commitMatches");async function ue(t,e){let o=t._tx;for(;o&&o!==e;)e=o,await o[5],o=t._tx}a(ue,"awaitCurrent");function bn(t,e,o){let n=o[1].options,r=o[2];if(!r)return t.navigate({...n,replace:!0,ignoreBlocker:!0});if(n.reloadDocument)return t.navigate({href:(r.maskedLocation??r).publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});r._redirects=e[1]+1,t._pendingLocation=r;let i=t.commitLocation({...r,viewTransition:n.viewTransition,replace:!0,resetScroll:n.resetScroll,hashScrollIntoView:n.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{t._pendingLocation===r&&(t._pendingLocation=void 0)}),i}a(bn,"followRedirect");async function $r(t,e,o,n,r){let i=o.map(l=>({...l}));Qe(i);for(let l of n)ct(t,i[l[0]]),i[l[0]]=l[3];let s=[e[2],i],c;try{c=await Rn(t,s,n,e[0],r)}catch(l){throw U(t,i),l}if(zt(c)){U(t,i),c[0]===z&&t._tx===e&&t._committed===o&&await bn(t,e,c);return}if(await _n(t,c,e[0].signal),t._tx!==e||t._committed!==o){U(t,i);return}for(let l of i){let u=t._cache.get(l.id);u?._flight&&u._flight===l._flight&&(t._cache.delete(l.id),ct(t,u))}xn(t,i),U(t,o,i)}a($r,"runBackground");async function Br(t,e,o,n,r,i){let s=await wn(t,e[2],e[3],[e[0],e[1],t._committed,void 0,r,o,i,n]);if(zt(s)){let d=s[0]===z&&t._tx===e;if((!d||s[1].options.reloadDocument)&&Vt(t,e),U(t,e[3]),e[3]=[],!d)return;if(t._tx!==e){Vt(t,e);return}await bn(t,e,s);return}let c=s[1];if(t._tx===e&&await vn(t,e),t._tx!==e){Vt(t,e),U(t,c),Rt(t,s);return}let l=e[2],u=vt(l,t.stores.resolvedLocation.get()),f=s[2];await t.startViewTransition(async()=>{if(t._tx===e&&await vn(t,e),t._tx!==e){Vt(t,e),U(t,c),Rt(t,s);return}let d=a(()=>{Vt(t,e),Ar(t,e,c,i),t._tx===e&&(t.emit({type:"onLoad",...u}),t._tx===e&&t.emit({type:"onBeforeRouteMount",...u}))},"commit"),h=await t.startTransition(d,c);if(t._tx!==e){Rt(t,s);return}f?.length&&$r(t,e,c,f,s[3]).catch(console.error),t.batch(()=>{t.stores.resolvedLocation.set(l),t.stores.status.set("idle"),t._tx===e&&t.emit({type:"onResolved",...u}),h&&t._tx===e&&t.emit({type:"onRendered",...u})}),t._tx===e&&(t._commitPromise?.resolve(),t._commitPromise=void 0)})}a(Br,"runClientTransaction");async function dn(t,e){let o=!1,n=t._tx,r=t.stores.resolvedLocation.get(),i=r??t.stores.location.get(),s=t.latestLocation,c=t._pendingLocation,l=c?.href===s.href?c._redirects??0:0,u=t._handoff,f=o?void 0:u?.[0](),d=new AbortController,h=t._preflight;if(t._preflight=d,!o&&!f&&u?.[1](),h?.abort(),!d.signal.aborted){let C=vt(s,r);t.emit({type:"onBeforeNavigate",...C}),d.signal.aborted||t.emit({type:"onBeforeLoad",...C})}if(d.signal.aborted){await ue(t,n);return}let p=i.href===s.href,m=d,g=t.matchRoutes(s,{_controller:d});Qe(g);let S=f?u[1](g):void 0;if(S?m=f:f?.abort(),d.signal.aborted){U(t,g),await ue(t,n);return}t._preflight=void 0;let y,R=a(()=>Br(t,w,p,()=>Je(t,w),e?.sync,S),"run"),b=e?.sync?new Promise(C=>y=C):Promise.resolve().then(R),w=[m,l,s,g,Date.now(),b.then(()=>ue(t,w))];if(t._tx=w,n){for(let C of t.stores.matches.get()){if(t._tx!==w)break;C.isFetching&&Wt(t,C,!1)}n[0].abort(),U(t,n[3],w[3],!0)}if(t._tx!==w){U(t,w[3]),w[3]=[],y?.(),await ue(t,w);return}t.batch(()=>{t.stores.status.set("pending"),t.stores.location.set(s)}),(S||!t._committed.length&&g[0]?.status!=="success"&&!g.some(C=>C._notFound))&&Je(t,w),y?.(R()),await w[5]}a(dn,"loadClientRoute");async function hn(t,e){let o=t.buildLocation(e);for(let n=0;;n++){let r=t._committed,i=new AbortController,s,c,l;try{try{s=t.matchRoutes(o,{_controller:i}),Qe(s),c=(t._preloads??=new Map).set(i,s),l=await wn(t,o,s,[i,n,r,!0])}finally{c&&(c=c.delete(i),U(t,s)),i.abort()}if(!zt(l))return l[1];if(!c||l.length<3)return;o=l[2]}catch(u){q(u)||console.error(u);return}}}a(hn,"preloadClientRoute");var eo="Error preloading route! \u261D\uFE0F";var he=class{static{a(this,"BaseRoute")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=e=>{this.originalIndex=e,this._branch=void 0;let o=this.options,n=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),n?this._path=Y:this.parentRoute||ut();let r=n?Y:o?.path;r&&r!=="/"&&(r=Qt(r));let i=o?.id||r,s=n?Y:at((this.parentRoute.id==="__root__"?"":this.parentRoute.id)+"/"+(i??""));r==="__root__"&&(r="/");let c=s==="__root__"?"/":r===void 0?this.parentRoute.fullPath:at(this.parentRoute.fullPath+"/"+r);this._path=r,this._id=s,this._fullPath=c,this._to=H(c)},this.addChildren=e=>this._addFileChildren(e),this._addFileChildren=e=>(Array.isArray(e)&&(this.children=e),typeof e=="object"&&e!==null&&(this.children=Object.values(e)),this),this._addFileTypes=()=>this,this.updateLoader=e=>(Object.assign(this.options,e),this),this.update=e=>(Object.assign(this.options,e),this),this.lazy=e=>(this.lazyFn=e,this),this.redirect=e=>Wo({from:this.fullPath,...e}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}};var oo=class extends he{static{a(this,"BaseRootRoute")}constructor(t){super(t)}};var no=T(B(),1);function Cn(t,e){let o=t.stores.location,n=new Set,r,i,s=a(c=>{Ye(t,e,c)||(r=c,n.forEach(l=>l()))},"update");return[()=>r??o.get(),c=>(n.size||(r=o.get(),i=o.subscribe(s).unsubscribe),n.add(c),()=>{n.delete(c),n.size||(i(),r=void 0)})]}a(Cn,"createLinkScope");var pt=no.createContext(void 0),Pn=no.createContext(void 0);var ve=T(B(),1);function En({update:t,notify:e,unwatched:o}){return{link:n,unlink:r,propagate:i,checkDirty:s,shallowPropagate:c};function n(u,f,d){let h=f.depsTail;if(h!==void 0&&h.dep===u)return;let p=h!==void 0?h.nextDep:f.deps;if(p!==void 0&&p.dep===u){p.version=d,f.depsTail=p;return}let m=u.subsTail;if(m!==void 0&&m.version===d&&m.sub===f)return;let g=f.depsTail=u.subsTail={version:d,dep:u,sub:f,prevDep:h,nextDep:p,prevSub:m,nextSub:void 0};p!==void 0&&(p.prevDep=g),h!==void 0?h.nextDep=g:f.deps=g,m!==void 0?m.nextSub=g:u.subs=g}function r(u,f=u.sub){let d=u.dep,h=u.prevDep,p=u.nextDep,m=u.nextSub,g=u.prevSub;return p!==void 0?p.prevDep=h:f.depsTail=h,h!==void 0?h.nextDep=p:f.deps=p,m!==void 0?m.prevSub=g:d.subsTail=g,g!==void 0?g.nextSub=m:(d.subs=m)===void 0&&o(d),p}function i(u){let f=u.nextSub,d;t:do{let h=u.sub,p=h.flags;if(p&60?p&12?p&4?!(p&48)&&l(u,h)?(h.flags=p|40,p&=1):p=0:h.flags=p&-9|32:p=0:h.flags=p|32,p&2&&e(h),p&1){let m=h.subs;if(m!==void 0){let g=(u=m).nextSub;g!==void 0&&(d={value:f,prev:d},f=g);continue}}if((u=f)!==void 0){f=u.nextSub;continue}for(;d!==void 0;)if(u=d.value,d=d.prev,u!==void 0){f=u.nextSub;continue t}break}while(!0)}function s(u,f){let d,h=0,p=!1;t:do{let m=u.dep,g=m.flags;if(f.flags&16)p=!0;else if((g&17)===17){if(t(m)){let S=m.subs;S.nextSub!==void 0&&c(S),p=!0}}else if((g&33)===33){(u.nextSub!==void 0||u.prevSub!==void 0)&&(d={value:u,prev:d}),u=m.deps,f=m,++h;continue}if(!p){let S=u.nextDep;if(S!==void 0){u=S;continue}}for(;h--;){let S=f.subs,y=S.nextSub!==void 0;if(y?(u=d.value,d=d.prev):u=S,p){if(t(f)){y&&c(S),f=u.sub;continue}p=!1}else f.flags&=-33;f=u.sub;let R=u.nextDep;if(R!==void 0){u=R;continue t}}return p}while(!0)}function c(u){do{let f=u.sub,d=f.flags;(d&48)===32&&(f.flags=d|16,(d&6)===2&&e(f))}while((u=u.nextSub)!==void 0)}function l(u,f){let d=f.depsTail;for(;d!==void 0;){if(d===u)return!0;d=d.prevDep}return!1}}a(En,"createReactiveSystem");function In(t,e,o){let n=typeof t=="object",r=n?t:void 0;return{next:(n?t.next:t)?.bind(r),error:(n?t.error:e)?.bind(r),complete:(n?t.complete:o)?.bind(r)}}a(In,"toObserver");var ro=[],me=0,{link:Ln,unlink:zr,propagate:Ur,checkDirty:On,shallowPropagate:kn}=En({update(t){return t._update()},notify(t){ro[so++]=t,t.flags&=-3},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=17,ge(t))}}),pe=0,so=0,ot,io=0;function ao(t){try{++io,t()}finally{--io||co()}}a(ao,"batch");function ge(t){let e=t.depsTail,o=e!==void 0?e.nextDep:t.deps;for(;o!==void 0;)o=zr(o,t)}a(ge,"purgeDeps");function co(){if(!(io>0)){for(;pe<so;){let t=ro[pe];ro[pe++]=void 0,t.notify()}pe=0,so=0}}a(co,"flush");function ye(t,e){let o=typeof t=="function",n=t,r={_snapshot:o?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:o?0:1,get(){return ot!==void 0&&Ln(r,ot,me),r._snapshot},subscribe(i){let s=In(i),c={current:!1},l=Wr(()=>{r.get(),c.current?(ot=void 0,s.next?.(r._snapshot)):c.current=!0});return{unsubscribe:a(()=>{l.stop()},"unsubscribe")}},_update(i){let s=ot,c=e?.compare??Object.is;if(o)ot=r,++me,r.depsTail=void 0;else if(i===void 0)return!1;o&&(r.flags=5);try{let l=r._snapshot,u=typeof i=="function"?i(l):i===void 0&&o?n(l):i;return l===void 0||!c(l,u)?(r._snapshot=u,!0):!1}finally{ot=s,o&&(r.flags&=-5),ge(r)}}};return o?(r.flags=17,r.get=function(){let i=r.flags;if(i&16||i&32&&On(r.deps,r)){if(r._update()){let s=r.subs;s!==void 0&&kn(s)}}else i&32&&(r.flags=i&-33);return ot!==void 0&&Ln(r,ot,me),r._snapshot}):r.set=function(i){if(r._update(i)){let s=r.subs;s!==void 0&&(Ur(s),kn(s),co())}},r}a(ye,"createAtom");function Wr(t){let e=a(()=>{let n=ot;ot=o,++me,o.depsTail=void 0,o.flags=6;try{return t()}finally{ot=n,o.flags&=-5,ge(o)}},"run"),o={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:6,notify(){let n=this.flags;n&16||n&32&&On(this.deps,this)?e():this.flags=2},stop(){this.flags=0,this.depsTail=void 0,ge(this)}};return e(),o}a(Wr,"effect");function jr(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(let[n,r]of t)if(!e.has(n)||!Object.is(r,e.get(n)))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();let o=Nn(t);if(o.length!==Nn(e).length)return!1;for(let n=0;n<o.length;n++)if(!Object.prototype.hasOwnProperty.call(e,o[n])||!Object.is(t[o[n]],e[o[n]]))return!1;return!0}a(jr,"shallow");function Nn(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}a(Nn,"getOwnKeys");var lo=T(B(),1),Fn=T(ur(),1);function Kr(t,e){return t===e}a(Kr,"defaultCompare");function W(t,e=n=>n,o){let n=o?.compare??Kr,r=(0,lo.useCallback)(s=>{let{unsubscribe:c}=t.subscribe(s);return c},[t]),i=(0,lo.useCallback)(()=>t.get(),[t]);return(0,Fn.useSyncExternalStoreWithSelector)(r,i,i,e,n)}a(W,"useSelector");var Tn={};function uo(t,e){let o=ve.useRef();return n=>{let r=t?.select?t.select(n):n;return t?.structuralSharing??e.options.defaultStructuralSharing?o.current=tt(o.current,r):r}}a(uo,"useStructuralSharing");function G(t){let e=M(),o=ve.useContext(t.from?Pn:pt),n=t.from??o,r=e.stores.getMatchStore(n);if(!1){let c=r.get();if(!c){(t.shouldThrow??!0)&&ut();return}return t.select?t.select(c):c}let i=uo(t,e),s=W(r,c=>c?i(c):Tn);if(s!==Tn)return s;(t.shouldThrow??!0)&&ut()}a(G,"useMatch");function Se(t){return G({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:a(e=>t.select?t.select(e.search):e.search,"select")})}a(Se,"useSearch");var jt=T(B(),1);var Re=jt.useLayoutEffect;var fo=T(B(),1);function _e(t){let e=M();return fo.useCallback(o=>e.navigate({...o,from:o.from??t?.from}),[t?.from,e])}a(_e,"useNavigate");var kt=T(B(),1),st=T(Q(),1);var xt=class extends kt.Component{static{a(this,"CatchBoundary")}constructor(...t){super(...t),this.state={error:0},this.reset=()=>{this.setState({error:0})}}static getDerivedStateFromProps(t,e){let o=t.getResetKey();return e.error&&e.resetKey!==o?{resetKey:o,error:0}:{resetKey:o}}static getDerivedStateFromError(t){return{error:[t]}}componentDidCatch(t,e){this.props.onCatch?.(t,e)}render(){let t=this.state.error;return t?kt.createElement(this.props.errorComponent??ho,{error:t[0],reset:this.reset}):this.props.children}};function ho({error:t}){let[e,o]=kt.useState(!1);return(0,st.jsxs)("div",{style:{padding:".5rem",maxWidth:"100%"},children:[(0,st.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[(0,st.jsx)("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),(0,st.jsx)("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:a(()=>o(n=>!n),"onClick"),children:e?"Hide Error":"Show Error"})]}),(0,st.jsx)("div",{style:{height:".25rem"}}),e?(0,st.jsx)("div",{children:(0,st.jsx)("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t?.message?(0,st.jsx)("code",{children:t.message}):null})}):null]})}a(ho,"ErrorComponent");var po=T(B(),1),Dn=T(Q(),1);var Mn=a(()=>!0,"getSnapshot"),qr=a(()=>!1,"getServerSnapshot");function An({children:t,fallback:e=null}){return(0,Dn.jsx)(po.default.Fragment,{children:Gr()?t:e})}a(An,"ClientOnly");function Gr(t=!0){return po.default.useSyncExternalStore(Jr,Mn,t?qr:Mn)}a(Gr,"useHydrated");function Jr(){return()=>{}}a(Jr,"subscribe");function mo(t){return G({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:a(e=>t.select?t.select(e.loaderData):e.loaderData,"select")})}a(mo,"useLoaderData");function go(t){let{select:e,...o}=t;return G({...o,select:a(n=>e?e(n.loaderDeps):n.loaderDeps,"select")})}a(go,"useLoaderDeps");function yo(t){return G({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:a(e=>{let o=t.strict===!1?e.params:e._strictParams;return t.select?t.select(o):o},"select")})}a(yo,"useParams");function vo(t){return G({...t,select:a(e=>t.select?t.select(e.context):e.context,"select")})}a(vo,"useRouteContext");var A=T(B(),1);var Yr=T(Q(),1);function Xr(...t){let e=A.useRef(t),o=e.current;return t.forEach((n,r)=>{J(o[r],n,!1,!0)||(o[r]=n)}),e.current}a(Xr,"useStableValues");function we(t,e){t.preloadRoute(e).catch(o=>{console.warn(o),console.warn(eo)})}a(we,"preloadLink");function $n(t,e){let o=typeof t=="string"&&it(t);if(o)return e.has(o)?t:null}a($n,"resolveExternalLink");function Bn(t,e,o,n){let r=te(t.pathname,n),i=te(e.pathname,n);return(o?.exact?r!==i:!(r.startsWith(i)&&(r.length===i.length||r[i.length]==="/")))||(o?.includeSearch??!0)&&!J(t.search,e.search,!o?.exact,o?.explicitUndefined)?!1:!o?.includeHash||t.hash===e.hash}a(Bn,"resolveIsActive");function Zr(t,e,o){let n=M();if(!1)return es(n,t,e,o);let r=A.useRef(null),i=A.useCallback($=>{if(r.current=$,typeof e=="function")return e($);e&&(e.current=$)},[e]),{activeOptions:s,to:c,preload:l,preloadDelay:u,disabled:f,target:d,onClick:h,onBlur:p,onFocus:m,onMouseEnter:g,onMouseLeave:S,onTouchStart:y}=t,[R,b,w]=Xr(t.search,t.params,s),C=A.useContext(pt),_=(n.stores._linkScopes??={})[C]??=Cn(n,C),[v,x,P]=A.useMemo(()=>{let $=$n(c,n.protocolAllowlist);if($!==void 0){let nt=[$??void 0];return[t,()=>nt]}let K={...t},Gt,Ft,lr,Po=a(()=>{let nt=_[0]();if(nt!==Gt){K._fromLocation=nt;let Eo=n.buildLocation(K),Jt=Un(Eo,n,f),Lo=f||Jt&&!it(Jt)?Bn(nt,Eo,w,n.basepath):void 0;(!Ft||Ft[0]!==Jt||Ft[1]!==Lo)&&(Ft=[Jt,Lo]),Gt=nt}return Ft},"getLinkState");return[K,Po,w?.includeHash&&(()=>{let nt=Po();return nt[1]?lr??=[nt[0],!1]:nt})]},[n,_,t.from,t.hash,t.href,c,R,b,t.state,t.mask,t.unsafeRelative,w,f]),[L,k]=A.useSyncExternalStore(_[1],x,P||x),E=k===void 0&&L,O=f||L===void 0,F=A.useRef(!1),N=t.reloadDocument||E||O?!1:l??n.options.defaultPreload,D=u??n.options.defaultPreloadDelay??0,Nt=A.useCallback($=>{let K=$?.isIntersecting;if(!(K??N==="intent")){K===!1&&xe(r);return}if(!D){we(n,v);return}r.t??=setTimeout(()=>{r.t=void 0,we(n,v)},D)},[n,v,r,N,D]);A.useEffect(()=>{if(!N)return;N==="render"&&!F.current&&(F.current=!0,we(n,v));let $=!0,K;return N==="viewport"&&r.current&&typeof IntersectionObserver=="function"&&(K=new IntersectionObserver(Gt=>{$&&Nt(Gt.pop())},{rootMargin:"100px"}),K.observe(r.current)),()=>{$=!1,K?.disconnect(),xe(r)}},[n,v,N,Nt,r]);let Z=Hn(t,o);if(Z.ref=e?i:r,E)return Z.href=E,Z;let Ee=a($=>{let K=d??$.currentTarget.getAttribute("target");!O&&!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)&&!$.defaultPrevented&&(!K||K==="_self")&&$.button===0&&($.preventDefault(),xe(r),n.navigate({...t,_fromLocation:v._fromLocation}))},"handleClick"),cr=a(()=>{N==="intent"&&we(n,v)},"handleTouchStart"),Co=a(()=>{N==="intent"&&xe(r)},"handleLeave");return Z.onClick=It(h,Ee),Z.onBlur=It(p,Co),Z.onFocus=It(m,Nt),Z.onMouseEnter=It(g,Nt),Z.onMouseLeave=It(S,Co),Z.onTouchStart=It(y,cr),zn(Z,t,k,L,O,o)}a(Zr,"useLinkProps");var Qr={},ts={className:"active"},Vn=new Set(["to","params","search","hash","state","mask","from","unsafeRelative","reloadDocument","preload","preloadDelay","preloadIntentProximity","hashScrollIntoView","replace","startTransition","resetScroll","viewTransition","ignoreBlocker","activeProps","inactiveProps","activeOptions","_asChild"]);function Hn(t,e){let o={};for(let n in t)Vn.has(n)||n==="type"&&e!==void 0||n==="disabled"&&e==="a"||(o[n]=t[n]);return o}a(Hn,"collectElementProps");function zn(t,e,o,n,r,i){let{activeProps:s,inactiveProps:c,className:l,style:u,target:f}=e,d=mt(o?s:c,{})??(o?ts:Qr);Object.assign(t,d),t.href=n,i!=="a"&&(t.disabled=r),t.target=f;let h=d.style;(u||h)&&(t.style=u&&h?{...u,...h}:u||h);let p=d.className;return(l||p)&&(t.className=l?p?`${l} ${p}`:l:p),r&&(t.role="link",t["aria-disabled"]=!0),o&&(t["data-status"]="active",t["aria-current"]="page"),t}a(zn,"applyLinkState");function es(t,e,o,n){let{to:r,disabled:i,activeOptions:s}=e,c=$n(r,t.protocolAllowlist),l=c===void 0?t.buildLocation(e):void 0,u=l?Un(l,t,i):c??void 0,f=i||!u,d=c??(u&&it(u)?u:void 0),h=Hn(e,n);return h.ref=o,d?(h.href=d,h):zn(h,e,!!l&&!(!i&&!u)&&!s?.includeHash&&Bn(t.stores.location.get(),l,s,t.basepath),u,f,n)}a(es,"getServerLinkProps");var xe=a(t=>{clearTimeout(t.t),t.t=void 0},"cancelPreload"),It=a((t,e)=>t?o=>o.defaultPrevented||(t(o),o.defaultPrevented||e(o)):e,"composeHandlers");function Un(t,e,o){if(o)return;let n=t.maskedLocation??t,r=n.external?n.publicHref:e.history.createHref(n.publicHref)||"/";if(!((n.external||r!==n.publicHref)&&Dt(r,e.protocolAllowlist)))return r}a(Un,"getHrefOption");var So=A.memo(A.forwardRef((t,e)=>{let o=t._asChild||"a",n=Zr(t,e,o),r=typeof t.children=="function"?t.children({isActive:n["data-status"]==="active"}):t.children;return A.createElement(o,n,r)}),os);function os(t,e){let o=0;for(let n in e)if(o++,t[n]!==e[n]&&(!Vn.has(n)||!J(t[n],e[n],!1,!0)))return!1;for(let n in t)o--;return o===0}a(os,"areLinkPropsEqual");var Ro=T(B(),1),_o=T(Q(),1);var Wn=class extends he{static{a(this,"Route")}constructor(t){super(t),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>vo({...e,from:this.id}),this.useSearch=e=>Se({...e,from:this.id}),this.useParams=e=>yo({...e,from:this.id}),this.useLoaderDeps=e=>go({...e,from:this.id}),this.useLoaderData=e=>mo({...e,from:this.id}),this.useNavigate=()=>_e({from:this.fullPath}),this.Link=Ro.default.forwardRef((e,o)=>(0,_o.jsx)(So,{ref:o,from:this.fullPath,...e}))}};function ns(t){return new Wn(t)}a(ns,"createRoute");var jn=class extends oo{static{a(this,"RootRoute")}constructor(t){super(t),this.useMatch=e=>G({...e,from:this.id}),this.useRouteContext=e=>vo({...e,from:this.id}),this.useSearch=e=>Se({...e,from:this.id}),this.useParams=e=>yo({...e,from:this.id}),this.useLoaderDeps=e=>go({...e,from:this.id}),this.useLoaderData=e=>mo({...e,from:this.id}),this.useNavigate=()=>_e({from:this.fullPath}),this.Link=Ro.default.forwardRef((e,o)=>(0,_o.jsx)(So,{ref:o,from:this.fullPath,...e}))}};function rs(t){return new jn(t)}a(rs,"createRootRoute");var vc=T(B(),1);var be=T(Q(),1);function Kn(t){let e=M();if(!1){let n=`not-found-${e.stores.location.get().pathname}-${e.stores.status.get()}`;return(0,be.jsx)(xt,{getResetKey:a(()=>n,"getResetKey"),onCatch:a((r,i)=>{if(q(r))t.onCatch?.(r,i);else throw r},"onCatch"),errorComponent:a(({error:r})=>{if(q(r))return t.fallback?.(r);throw r},"errorComponent"),children:t.children})}let o=`not-found-${W(e.stores.location,n=>n.pathname)}-${W(e.stores.status)}`;return(0,be.jsx)(xt,{getResetKey:a(()=>o,"getResetKey"),onCatch:a((n,r)=>{if(q(n))t.onCatch?.(n,r);else throw n},"onCatch"),errorComponent:a(({error:n})=>{if(q(n))return t.fallback?.(n);throw n},"errorComponent"),children:t.children})}a(Kn,"CatchNotFound");function qn(){return(0,be.jsx)("p",{children:"Not Found"})}a(qn,"DefaultGlobalNotFound");var Gn=T(Q(),1);function Jn({children:t}){let e=M();return null}a(Jn,"ScriptOnce");var Pc=T(B(),1),Ce=T(Q(),1);function wo(t,e,o){return e.options.notFoundComponent?(0,Ce.jsx)(e.options.notFoundComponent,{...o}):t.options.defaultNotFoundComponent?(0,Ce.jsx)(t.options.defaultNotFoundComponent,{...o}):(0,Ce.jsx)(qn,{})}a(wo,"renderRouteNotFound");var Xn=T(Q(),1);function Yn(t){return null}a(Yn,"getScrollRestorationScriptForRouter");function Zn(){let t=M(),e=Yn(t);return e?(0,Xn.jsx)(Jn,{children:e}):null}a(Zn,"ScrollRestoration");var j=T(B(),1);var V=T(Q(),1);function Kt(t,e){let o=e?.options.pendingComponent??t.options.defaultPendingComponent;return o?(0,V.jsx)(o,{}):null}a(Kt,"renderPending");var ss=a((t,e)=>t[0]===e[0]&&t[1]===e[1],"outletMatchSelectionEqual"),tr=a((t,e,o)=>!e.isRoot||e.options.shellComponent||e.options.wrapInSuspense||o===!1||o==="data-only"||!t.ssr,"canWrapInSuspense"),Pe=j.memo(a(function({routeId:e}){let o=M();if(!1)return Qn(o,o.stores.byRoute.get(e).get());let n=o.stores.getMatchStore(e);return Qn(o,W(n))},"MatchImpl"));function Qn(t,e){let o=t.routesById[e.routeId],n=Kt(t,o),r=o.options.errorComponent??t.options.defaultErrorComponent,i=o.options.onCatch??t.options.defaultOnCatch,s=o.isRoot?o.options.notFoundComponent??t.options.notFoundRoute?.options.component:o.options.notFoundComponent,c=e.ssr===!1||e.ssr==="data-only",l=tr(t,o,e.ssr)&&(o.options.wrapInSuspense??n??(o.options.errorComponent?.preload||c)),u=(0,V.jsx)(is,{match:e});c&&(u=(0,V.jsx)(An,{fallback:n,children:u})),s&&(u=(0,V.jsx)(Kn,{fallback:a(h=>{if(h.routeId??=e.routeId,h.routeId!==e.routeId)throw h;return j.createElement(s,h)},"fallback"),children:u})),r&&(u=(0,V.jsx)(xt,{getResetKey:a(()=>e,"getResetKey"),errorComponent:r,onCatch:a((h,p)=>{if(q(h))throw h.routeId??=e.routeId,h;i?.(h,p)},"onCatch"),children:u})),l&&(u=(0,V.jsx)(j.Suspense,{fallback:n,children:u}));let f=null,d=o.isRoot&&o.options.shellComponent;return d?(0,V.jsx)(pt.Provider,{value:e.routeId,children:(0,V.jsxs)(d,{children:[u,f]})}):(0,V.jsxs)(pt.Provider,{value:e.routeId,children:[u,f]})}a(Qn,"matchView");var is=j.memo(a(function({match:e}){let o=M(),n=e.routeId,r=o.routesById[n],i=j.useMemo(()=>{let c=(r.options.remountDeps??o.options.defaultRemountDeps)?.({routeId:n,loaderDeps:e.loaderDeps,params:e._strictParams,search:e._strictSearch});return c?JSON.stringify(c):void 0},[n,e.loaderDeps,e._strictParams,e._strictSearch,r.options.remountDeps,o.options.defaultRemountDeps]),s=j.useMemo(()=>{let c=r.options.component??o.options.defaultComponent;return c?(0,V.jsx)(c,{},i):(0,V.jsx)(er,{})},[i,r.options.component,o.options.defaultComponent]);if(e.status==="pending"){if(o.ssr&&!tr(o,r,e.ssr))return s;if(o._tx)throw o._tx[5];return Kt(o,r)}if(e.status==="notFound")return wo(o,r,e.error);if(e.status==="error"){if(!1){let c=(r.options.errorComponent??o.options.defaultErrorComponent)||ho;return(0,V.jsx)(c,{error:e.error,reset:void 0,info:{componentStack:""}})}throw e.error}return s},"MatchInnerImpl")),er=j.memo(a(function(){let e=M(),o=j.useContext(pt),n,r,i;if(!1){let c=e.stores.matches.get(),l=c.findIndex(f=>f.routeId===o),u=c[l];n=!!u._notFound,r=u.error,i=c[l+1]?.routeId}else{let c=e.stores.getMatchStore(o);[n,r]=W(c,l=>[!!l._notFound,l.error],{compare:ss}),i=W(e.stores.ids,l=>l[l.indexOf(o)+1])}if(n)return wo(e,e.routesById[o],r);if(!i)return null;let s=(0,V.jsx)(Pe,{routeId:i});return o===Y?(0,V.jsx)(j.Suspense,{fallback:Kt(e),children:s}):s},"OutletImpl"));var xo=T(B(),1);function bo(t,e){let o=t[1];t.length=0,o?.(e)}a(bo,"settleOwner");function or({t}){let e=M(),o=e._rendered??=[],n=void 0;return e.startTransition=(r,i)=>new Promise(s=>{bo(o,!1),o.push(i,s),t(e),xo.startTransition(r)}),Re(()=>{let r=e.history.subscribe(e.load);if(n?.current)return r;n&&(n.current=!0),e.updateLatestLocation();let i=e.latestLocation,s=e.buildLocation({to:i.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(H(i.publicHref)!==H(s.publicHref))return e.commitLocation({...s,replace:!0,ignoreBlocker:!0}),r;let c=e.stores.resolvedLocation.get();return c?.href===i.href&&c.state.__TSR_key===i.state.__TSR_key?o.push(e.stores.matches.get(),l=>{l&&e.emit({type:"onRendered",...vt(c,c)})}):e._tx||e.load({sync:!0}).catch(console.error),r},[e,e.history]),null}a(or,"Transitioner");var Ot=T(B(),1);var X=T(Q(),1);function rr(){let t=M(),e=t.routesById[Y],o=Kt(t,e),n=(0,X.jsxs)(X.Fragment,{children:[!!1&&(0,X.jsx)(or,{t:Ot.useState()[1]}),t.ssr?(0,X.jsx)(nr,{}):(0,X.jsx)(Ot.Suspense,{fallback:o,children:(0,X.jsx)(nr,{})})]});return t.options.InnerWrap?(0,X.jsx)(t.options.InnerWrap,{children:n}):n}a(rr,"Matches");function nr(){let t=M(),e=t._rendered,o=W(t.stores.matches,s=>e[0]??s),n=o[0],r=n?.routeId;Re(()=>{e[0]===o&&bo(e,!0)},[e,o]);let i=r?(0,X.jsx)(Pe,{routeId:r}):null;return t.options.disableGlobalCatchBoundary?i:(0,X.jsx)(xt,{getResetKey:a(()=>n,"getResetKey"),onCatch:void 0,children:i})}a(nr,"MatchesInner");var sr=a(t=>({createMutableStore:ye,createReadonlyStore:ye,batch:ao}),"getStoreFactory");var as=a(t=>new ir(t),"createRouter"),ir=class extends Ke{static{a(this,"Router")}constructor(t){super(t,sr)}};var Sl=T(B(),1),qt=T(Q(),1);function ar({router:t,children:e,...o}){Tt(o)&&t.update({...t.options,...o,context:{...t.options.context,...o.context}});let n=(0,qt.jsx)(Yt.Provider,{value:t,children:e});return t.options.Wrap?(0,qt.jsx)(t.options.Wrap,{children:n}):n}a(ar,"RouterContextProvider");function cs({router:t,...e}){return(0,qt.jsx)(ar,{router:t,...e,children:(0,qt.jsx)(rr,{})})}a(cs,"RouterProvider");function ls(t){let e=M({warn:t?.router===void 0}),o=t?.router||e;if(!1){let n=o.stores.__store.get();return t?.select?t.select(n):n}return W(o.stores.__store,uo(t,o))}a(ls,"useRouterState");export{Ve as a,Lr as b,M as c,ao as d,ye as e,jr as f,W as g,Se as h,_e as i,ns as j,rs as k,er as l,as as m,cs as n,ls as o};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as f}from"./chunk-
|
|
1
|
+
import{a as f}from"./chunk-VUMS4VIV.js";import{a as h}from"./chunk-A6TVTNKO.js";import{b as N}from"./chunk-ADABTCDI.js";import{a as u,d as x}from"./chunk-5PEAXTYQ.js";var b=x(h(),1);var t=x(N(),1);var v=u(g=>{let e=(0,b.c)(16),{chart:c,footer:n,label:i,testId:m,value:p}=g,r;e[0]!==i?(r=(0,t.jsx)("span",{className:"font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:i}),e[0]=i,e[1]=r):r=e[1];let a;e[2]!==m||e[3]!==p?(a=(0,t.jsx)("span",{className:"truncate text-2xl font-semibold tabular-nums text-foreground","data-testid":m,children:p}),e[2]=m,e[3]=p,e[4]=a):a=e[4];let s;e[5]!==c||e[6]!==a?(s=(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[a,c]}),e[5]=c,e[6]=a,e[7]=s):s=e[7];let l;e[8]!==r||e[9]!==s?(l=(0,t.jsxs)("div",{className:"flex flex-col gap-2.5 p-4",children:[r,s]}),e[8]=r,e[9]=s,e[10]=l):l=e[10];let o;e[11]!==n?(o=n!=null&&(0,t.jsx)("div",{className:"border-t border-border bg-muted/50 px-4 py-2.5 text-[11px] text-muted-foreground",children:n}),e[11]=n,e[12]=o):o=e[12];let d;return e[13]!==l||e[14]!==o?(d=(0,t.jsxs)(f,{className:"justify-between gap-0 py-0",children:[l,o]}),e[13]=l,e[14]=o,e[15]=d):d=e[15],d},"j");export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as k}from"./chunk-
|
|
1
|
+
import{x as k}from"./chunk-G4H5DPO6.js";import{a as N}from"./chunk-A6TVTNKO.js";import{b as z}from"./chunk-ADABTCDI.js";import{a as n,d as v}from"./chunk-5PEAXTYQ.js";var y=v(N(),1);var u=v(z(),1);var C={dialog:"fixed inset-0 z-[1000] flex justify-center bg-black/20 pt-[10vh]",drawer:"fixed inset-0 z-[1000] flex justify-end bg-black/20"},I={dialog:"flex h-fit w-[min(28rem,92vw)] flex-col gap-3 rounded-lg border border-border bg-background p-4 shadow-xl",drawer:"flex h-full w-[min(34rem,100vw)] flex-col gap-4 overflow-auto border-l border-border bg-background p-4 shadow-xl"},A=n(j=>{let e=(0,y.c)(18),{className:i,children:c,label:b,onClose:r,panelTestId:f,testId:g,variant:h}=j,o;e[0]!==r?(o=n(s=>{s.target===s.currentTarget&&r()},"r"),e[0]=r,e[1]=o):o=e[1];let m=o,t;e[2]!==r?(t=n(s=>{s.key==="Escape"&&r()},"a"),e[2]=r,e[3]=t):t=e[3];let p=t,x=C[h],w=I[h],l;e[4]!==i||e[5]!==w?(l=k(w,i),e[4]=i,e[5]=w,e[6]=l):l=e[6];let a;e[7]!==c||e[8]!==b||e[9]!==f||e[10]!==l?(a=(0,u.jsx)("div",{"aria-label":b,className:l,"data-testid":f,role:"dialog",children:c}),e[7]=c,e[8]=b,e[9]=f,e[10]=l,e[11]=a):a=e[11];let d;return e[12]!==m||e[13]!==p||e[14]!==x||e[15]!==a||e[16]!==g?(d=(0,u.jsx)("div",{className:x,"data-testid":g,onClick:m,onKeyDown:p,role:"presentation",children:a}),e[12]=m,e[13]=p,e[14]=x,e[15]=a,e[16]=g,e[17]=d):d=e[17],d},"_");export{A as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as H}from"./chunk-
|
|
1
|
+
import{a as H}from"./chunk-5XQM44J7.js";import{a as B}from"./chunk-VND72OIC.js";import{b as _}from"./chunk-VLQU4G6O.js";import{b as z}from"./chunk-EOFWXI3T.js";import{B as $,e as D,j as E,m as S,n as W}from"./chunk-G4H5DPO6.js";import{a as F}from"./chunk-A6TVTNKO.js";import{b as G}from"./chunk-ADABTCDI.js";import{a as I,d as O}from"./chunk-5PEAXTYQ.js";var M=O(F(),1);var o=O(G(),1);var ee=I(U=>{let e=(0,M.c)(51),{className:T,error:t,shardKey:j,testId:K}=U,s=$(),r=z(),v=_(),V=v!==void 0&&!v.unavailable,l,c,a,m,d,u,p,i,n,h;if(e[0]!==v||e[1]!==T||e[2]!==t||e[3]!==r||e[4]!==j||e[5]!==s||e[6]!==K){let y=S(t),w;e[17]!==t?(w=W(t),e[17]=t,e[18]=w):w=e[18],a=w;let N;e[19]!==t?(N=B(t),e[19]=t,e[20]=N):N=e[20];let q=N,A=t?.why,C;e[21]!==r||e[22]!==q?(C=I(()=>{r?.openConsole({errorsOnly:!0,seq:q})},"C"),e[21]=r,e[22]=q,e[23]=C):C=e[23],m=C,c=I(()=>{let Z=y===void 0?"":`
|
|
2
2
|
|
|
3
3
|
${s("The studio suggested: {hint}",{hint:D(y)})}`;v?.openAssistant({ask:s(`The studio reported this error:
|
|
4
4
|
{message}{detail}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Re,b as Pe,c as qe}from"./chunk-AJFMXVR4.js";import{b as Ie,c as Te}from"./chunk-LJLNIVUA.js";import{a as Se}from"./chunk-7Z243YUE.js";import"./chunk-QLZGKBOW.js";import{a as de}from"./chunk-R6NJ4ER6.js";import{a as Le}from"./chunk-W7CLOQOU.js";import{c as ke}from"./chunk-MHZNDDGI.js";import{a as Ce}from"./chunk-PRVBT5AJ.js";import{a as ie}from"./chunk-DRHZZ7IN.js";import{a as be}from"./chunk-2KTN53PK.js";import{a as ve}from"./chunk-LFWS6VBU.js";import{b as fe}from"./chunk-EDL46BPM.js";import"./chunk-4KPATTV6.js";import"./chunk-7WGZSDRS.js";import"./chunk-N7FOBAV3.js";import{i as D}from"./chunk-Z6PYAG36.js";import"./chunk-4SY2N2RS.js";import"./chunk-4AG356VE.js";import{a as pe}from"./chunk-QHI77TGI.js";import"./chunk-SCTYLLJT.js";import"./chunk-OZID3UYF.js";import{a as J}from"./chunk-O46IV64X.js";import{b as ne}from"./chunk-OOPMRFI2.js";import"./chunk-L27FKJTG.js";import{a as xe}from"./chunk-PUTERXSU.js";import"./chunk-ZIY53FID.js";import{a as ye,b as we,c as Ne,d as se,e as j,f as B}from"./chunk-KMBE7RTC.js";import"./chunk-4YZAJTU5.js";import"./chunk-UDKKUJHY.js";import"./chunk-EOFWXI3T.js";import{a as oe}from"./chunk-LYVYUTQY.js";import{c as le}from"./chunk-NP6H72XD.js";import{n as ge}from"./chunk-YESGXFAR.js";import"./chunk-ZPQBVYNN.js";import{B as z,j as re,k as he,s as ae,x as W}from"./chunk-CDIV23I2.js";import"./chunk-PDBW6GTJ.js";import{a as Ue}from"./chunk-A6TVTNKO.js";import{a as $e,b as ze}from"./chunk-ADABTCDI.js";import{a as v,d as te}from"./chunk-5PEAXTYQ.js";var K=te(Ue(),1);var q=te($e(),1);var r=te(ze(),1);var ue=["trace","debug","log","info","warn","error","fatal"],De="LOG_ARCHIVE_NOT_CONFIGURED",je={cursor:void 0,error:null,generation:0,loading:!1,notConfigured:!1,rows:null},Be=v((i,e)=>{switch(e.type){case"append":return{...i,cursor:e.cursor,error:null,loading:!1,rows:[...i.rows??[],...e.rows]};case"failed":return{...i,cursor:void 0,error:e.message,loading:!1,notConfigured:!1,rows:null};case"loaded":return{cursor:e.cursor,error:null,generation:i.generation+1,loading:!1,notConfigured:!1,rows:e.rows};case"loading":return{...i,error:null,loading:!0,notConfigured:!1};case"notConfigured":return{...i,cursor:void 0,error:null,loading:!1,notConfigured:!0,rows:null};case"pageFailed":return{...i,error:e.message,loading:!1};default:return i}},"ze"),We=v(i=>{let e=(0,K.c)(36),{row:t}=i,s;e[0]!==t.fields?(s=Ie(t.fields),e[0]=t.fields,e[1]=s):s=e[1];let n=s,o=`lg-archive-row-${String(t.ts)}`,c;e[2]!==t.ts?(c=new Date(t.ts).toLocaleString(),e[2]=t.ts,e[3]=c):c=e[3];let p;e[4]!==c?(p=(0,r.jsx)(B,{className:"tabular-nums whitespace-nowrap text-xs text-muted-foreground",children:c}),e[4]=c,e[5]=p):p=e[5];let m=Re[t.level],d;e[6]!==t.level||e[7]!==m?(d=(0,r.jsx)(B,{children:(0,r.jsx)(ne,{variant:m,children:t.level})}),e[6]=t.level,e[7]=m,e[8]=d):d=e[8];let a;e[9]!==t.functionPath?(a=(0,r.jsx)(B,{className:"font-mono text-xs",children:t.functionPath}),e[9]=t.functionPath,e[10]=a):a=e[10];let h;e[11]!==t.message?(h=(0,r.jsx)("div",{className:"truncate",title:t.message,children:t.message}),e[11]=t.message,e[12]=h):h=e[12];let l;e[13]!==n.text?(l=n.text!==""&&(0,r.jsx)("div",{className:"truncate font-mono text-[11px] text-muted-foreground",title:n.text,children:n.text}),e[13]=n.text,e[14]=l):l=e[14];let g;e[15]!==n.errors?(g=n.errors.length>0&&(0,r.jsx)(Pe,{errors:n.errors}),e[15]=n.errors,e[16]=g):g=e[16];let u;e[17]!==g||e[18]!==h||e[19]!==l?(u=(0,r.jsxs)(B,{className:"max-w-md",children:[h,l,g]}),e[17]=g,e[18]=h,e[19]=l,e[20]=u):u=e[20];let x=t.traceId??"\u2014",f;e[21]!==x?(f=(0,r.jsx)(B,{className:"font-mono text-[11px] text-muted-foreground",children:x}),e[21]=x,e[22]=f):f=e[22];let C=t.shardKey??"\u2014",y;e[23]!==C?(y=(0,r.jsx)(B,{className:"font-mono text-[11px] text-muted-foreground",children:C}),e[23]=C,e[24]=y):y=e[24];let w=t.userId??"\u2014",k;e[25]!==w?(k=(0,r.jsx)(B,{className:"font-mono text-[11px] text-muted-foreground",children:w}),e[25]=w,e[26]=k):k=e[26];let L;return e[27]!==u||e[28]!==f||e[29]!==y||e[30]!==k||e[31]!==o||e[32]!==p||e[33]!==d||e[34]!==a?(L=(0,r.jsxs)(se,{"data-testid":o,children:[p,d,a,u,f,y,k]}),e[27]=u,e[28]=f,e[29]=y,e[30]=k,e[31]=o,e[32]=p,e[33]=d,e[34]=a,e[35]=L):L=e[35],L},"Ge"),Ve=v(({shardKey:i})=>{let e=ge(),t=z(),[s,n]=(0,q.useState)(""),[o,c]=(0,q.useState)(""),[p,m]=(0,q.useState)(""),[{cursor:d,error:a,generation:h,loading:l,notConfigured:g,rows:u},x]=(0,q.useReducer)(Be,je),f=ie(s.trim(),400),C=ie(o.trim(),400),y={...f===""?{}:{functionPathPrefix:f},...p===""?{}:{minLevel:p},...i===""?{}:{shardKey:i},...C===""?{}:{userId:C}},w=JSON.stringify(y),k=(0,q.useRef)(w);(0,q.useEffect)(()=>{let b={cancelled:!1};return k.current=w,ae((async()=>{x({type:"loading"});try{let N=await e.queryLogArchive(y);b.cancelled||x({cursor:N.nextCursor,rows:N.rows,type:"loaded"})}catch(N){b.cancelled||x(he(N)===De?{type:"notConfigured"}:{message:re(N),type:"failed"})}})()),()=>{b.cancelled=!0}},[e,w]);let L=v(async()=>{if(d===void 0)return;let b=w;x({type:"loading"});try{let N=await e.queryLogArchive({...y,cursor:d});k.current===b&&x({cursor:N.nextCursor,rows:N.rows,type:"append"})}catch(N){k.current===b&&x({message:re(N),type:"pageFailed"})}},"N"),S=v(b=>{n(b.target.value)},"I"),T=v(b=>{c(b.target.value)},"T"),R=v(b=>{m(b.target.value)},"R"),P=v(()=>{ae(L())},"k");return g?(0,r.jsx)(J,{action:(0,r.jsx)("a",{className:"text-sm text-primary underline-offset-4 hover:underline",href:de,rel:"noreferrer",target:"_blank",children:t("Open in Cloudflare")}),description:t("Wire pipelineLogSink to a Cloudflare Pipeline \u2192 R2 Data Catalog table and set R2_SQL_ACCOUNT_ID, R2_SQL_TOKEN, R2_SQL_BUCKET to browse the durable log archive here."),testId:"lg-archive-not-configured",title:t("Log archive not configured")}):(0,r.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lg-archive",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)(D,{"aria-label":t("Function path prefix"),className:"h-8 w-48","data-testid":"lg-archive-path",onChange:S,placeholder:t("function path\u2026"),value:s}),(0,r.jsx)(D,{"aria-label":t("User id"),className:"h-8 w-40","data-testid":"lg-archive-user",onChange:T,placeholder:t("user id\u2026"),value:o}),(0,r.jsxs)("select",{"aria-label":t("Minimum level"),className:"h-8 rounded-md border border-border bg-background px-2 text-sm","data-testid":"lg-archive-min-level",onChange:R,value:p,children:[(0,r.jsx)("option",{value:"",children:t("min level")}),ue.map(b=>(0,r.jsx)("option",{value:b,children:b},b))]})]}),a!==null&&(0,r.jsx)("p",{className:"text-sm text-destructive","data-testid":"lg-archive-error",role:"alert",children:a}),l&&u===null&&a===null&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"lg-archive-loading",children:t("Loading\u2026")}),u!==null&&u.length===0&&(0,r.jsx)(J,{description:t("No archived logs match these filters. The durable archive fills as pipelineLogSink flushes records to R2."),testId:"lg-archive-empty",title:t("No archived logs.")}),u!==null&&u.length>0&&(0,r.jsx)("div",{className:"overflow-hidden rounded-xl border border-border shadow-xs",children:(0,r.jsxs)(ye,{"data-testid":"lg-archive-table",children:[(0,r.jsx)(we,{children:(0,r.jsxs)(se,{children:[(0,r.jsx)(j,{children:t("Time")}),(0,r.jsx)(j,{children:t("Level")}),(0,r.jsx)(j,{children:t("Function")}),(0,r.jsx)(j,{children:t("Message")}),(0,r.jsx)(j,{children:t("Trace")}),(0,r.jsx)(j,{children:t("Shard")}),(0,r.jsx)(j,{children:t("User")})]})}),(0,r.jsx)(Ne,{children:u.map((b,N)=>(0,r.jsx)(We,{row:b},`${String(h)}:${String(b.ts)}-${String(N)}`))})]})}),d!==void 0&&(0,r.jsx)("div",{children:(0,r.jsx)(pe,{"data-testid":"lg-archive-more",disabled:l,onClick:P,size:"sm",variant:"outline",children:t(l?"Loading\u2026":"Load more")})})]})},"He"),Qe=v(i=>{let e=(0,K.c)(11),{level:t,onToggle:s,selected:n}=i,o;e[0]!==t||e[1]!==s?(o=v(()=>{s(t)},"o"),e[0]=t,e[1]=s,e[2]=o):o=e[2];let c=o,p=n?"border-border bg-muted font-medium":"border-input text-muted-foreground",m;e[3]!==p?(m=W("rounded-md border px-2 py-1 text-xs",p),e[3]=p,e[4]=m):m=e[4];let d=`logs-level-${t}`,a;return e[5]!==t||e[6]!==c||e[7]!==n||e[8]!==m||e[9]!==d?(a=(0,r.jsx)("button",{"aria-pressed":n,className:m,"data-testid":d,onClick:c,type:"button",children:t}),e[5]=t,e[6]=c,e[7]=n,e[8]=m,e[9]=d,e[10]=a):a=e[10],a},"We"),Ye=v(i=>{let e=(0,K.c)(68),{levelFilter:t,onLogPathChange:s,onSearchChange:n,onTimeRangeChange:o,onToggleLevel:c,onToggleSummary:p,pathFilter:m,search:d,showSummary:a,timeRange:h}=i,l=z(),g;e[0]!==l?(g=l("Search messages"),e[0]=l,e[1]=g):g=e[1];let u;e[2]!==l?(u=l("search message"),e[2]=l,e[3]=u):u=e[3];let x;e[4]!==n||e[5]!==d||e[6]!==g||e[7]!==u?(x=(0,r.jsx)(D,{"aria-label":g,className:"h-8 w-48","data-testid":"lg-search",onChange:n,placeholder:u,value:d}),e[4]=n,e[5]=d,e[6]=g,e[7]=u,e[8]=x):x=e[8];let f;e[9]!==l?(f=l("Function path"),e[9]=l,e[10]=f):f=e[10];let C;e[11]!==l?(C=l("filter path"),e[11]=l,e[12]=C):C=e[12];let y;e[13]!==s||e[14]!==m||e[15]!==f||e[16]!==C?(y=(0,r.jsx)(D,{"aria-label":f,className:"h-8 w-40","data-testid":"logs-path-filter",onChange:s,placeholder:C,value:m}),e[13]=s,e[14]=m,e[15]=f,e[16]=C,e[17]=y):y=e[17];let w;e[18]!==l?(w=l("Level filter"),e[18]=l,e[19]=w):w=e[19];let k;e[20]!==t||e[21]!==c?(k=ue.map(Q=>(0,r.jsx)(Qe,{level:Q,onToggle:c,selected:t.has(Q)},Q)),e[20]=t,e[21]=c,e[22]=k):k=e[22];let L;e[23]!==w||e[24]!==k?(L=(0,r.jsx)("div",{"aria-label":w,className:"inline-flex items-center gap-1","data-testid":"logs-level-filter",role:"group",children:k}),e[23]=w,e[24]=k,e[25]=L):L=e[25];let S;e[26]!==l?(S=l("Time range"),e[26]=l,e[27]=S):S=e[27];let T;e[28]!==l?(T=l("All time"),e[28]=l,e[29]=T):T=e[29];let R;e[30]!==T?(R=(0,r.jsx)("option",{value:"all",children:T}),e[30]=T,e[31]=R):R=e[31];let P;e[32]!==l?(P=l("Last 5m"),e[32]=l,e[33]=P):P=e[33];let b;e[34]!==P?(b=(0,r.jsx)("option",{value:"5m",children:P}),e[34]=P,e[35]=b):b=e[35];let N;e[36]!==l?(N=l("Last 15m"),e[36]=l,e[37]=N):N=e[37];let F;e[38]!==N?(F=(0,r.jsx)("option",{value:"15m",children:N}),e[38]=N,e[39]=F):F=e[39];let E;e[40]!==l?(E=l("Last hour"),e[40]=l,e[41]=E):E=e[41];let O;e[42]!==E?(O=(0,r.jsx)("option",{value:"1h",children:E}),e[42]=E,e[43]=O):O=e[43];let M;e[44]!==o||e[45]!==S||e[46]!==R||e[47]!==b||e[48]!==F||e[49]!==O||e[50]!==h?(M=(0,r.jsxs)("select",{"aria-label":S,className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm shadow-xs focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none","data-testid":"logs-time-range",onChange:o,value:h,children:[R,b,F,O]}),e[44]=o,e[45]=S,e[46]=R,e[47]=b,e[48]=F,e[49]=O,e[50]=h,e[51]=M):M=e[51];let V=a?"border-border bg-muted font-medium":"border-input text-muted-foreground",_;e[52]!==V?(_=W("h-8 rounded-md border px-3 text-sm",V),e[52]=V,e[53]=_):_=e[53];let U;e[54]!==a||e[55]!==l?(U=l(a?"List":"Summary"),e[54]=a,e[55]=l,e[56]=U):U=e[56];let A;e[57]!==p||e[58]!==a||e[59]!==_||e[60]!==U?(A=(0,r.jsx)("button",{"aria-pressed":a,className:_,"data-testid":"logs-summary-toggle",onClick:p,type:"button",children:U}),e[57]=p,e[58]=a,e[59]=_,e[60]=U,e[61]=A):A=e[61];let $;return e[62]!==M||e[63]!==A||e[64]!==x||e[65]!==y||e[66]!==L?($=(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[x,y,L,M,A]}),e[62]=M,e[63]=A,e[64]=x,e[65]=y,e[66]=L,e[67]=$):$=e[67],$},"Ye"),Ge=v(i=>{let e=(0,K.c)(53),{onOutcomeChange:t,onPathChange:s,onTableChange:n,onUserChange:o,outcomeFilter:c,pathPrefix:p,tableFilter:m,userIdFilter:d}=i,a=z(),h;e[0]!==a?(h=a("Function path"),e[0]=a,e[1]=h):h=e[1];let l;e[2]!==a?(l=a("file:function"),e[2]=a,e[3]=l):l=e[3];let g;e[4]!==s||e[5]!==p||e[6]!==h||e[7]!==l?(g=(0,r.jsx)(D,{"aria-label":h,className:"h-8 w-44","data-testid":"lg-req-path",onChange:s,placeholder:l,value:p}),e[4]=s,e[5]=p,e[6]=h,e[7]=l,e[8]=g):g=e[8];let u;e[9]!==a?(u=a("User id"),e[9]=a,e[10]=u):u=e[10];let x;e[11]!==a?(x=a("userId"),e[11]=a,e[12]=x):x=e[12];let f;e[13]!==o||e[14]!==u||e[15]!==x||e[16]!==d?(f=(0,r.jsx)(D,{"aria-label":u,className:"h-8 w-32","data-testid":"lg-req-user",onChange:o,placeholder:x,value:d}),e[13]=o,e[14]=u,e[15]=x,e[16]=d,e[17]=f):f=e[17];let C;e[18]!==a?(C=a("Table touched"),e[18]=a,e[19]=C):C=e[19];let y;e[20]!==a?(y=a("table"),e[20]=a,e[21]=y):y=e[21];let w;e[22]!==n||e[23]!==C||e[24]!==y||e[25]!==m?(w=(0,r.jsx)(D,{"aria-label":C,className:"h-8 w-32","data-testid":"lg-req-table",onChange:n,placeholder:y,value:m}),e[22]=n,e[23]=C,e[24]=y,e[25]=m,e[26]=w):w=e[26];let k;e[27]!==a?(k=a("Outcome filter"),e[27]=a,e[28]=k):k=e[28];let L;e[29]!==a?(L=a("all"),e[29]=a,e[30]=L):L=e[30];let S;e[31]!==L?(S=(0,r.jsx)("option",{value:"all",children:L}),e[31]=L,e[32]=S):S=e[32];let T;e[33]!==a?(T=a("ok"),e[33]=a,e[34]=T):T=e[34];let R;e[35]!==T?(R=(0,r.jsx)("option",{value:"ok",children:T}),e[35]=T,e[36]=R):R=e[36];let P;e[37]!==a?(P=a("error"),e[37]=a,e[38]=P):P=e[38];let b;e[39]!==P?(b=(0,r.jsx)("option",{value:"error",children:P}),e[39]=P,e[40]=b):b=e[40];let N;e[41]!==t||e[42]!==c||e[43]!==k||e[44]!==S||e[45]!==R||e[46]!==b?(N=(0,r.jsxs)("select",{"aria-label":k,className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm shadow-xs focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none","data-testid":"lg-req-outcome",onChange:t,value:c,children:[S,R,b]}),e[41]=t,e[42]=c,e[43]=k,e[44]=S,e[45]=R,e[46]=b,e[47]=N):N=e[47];let F;return e[48]!==N||e[49]!==g||e[50]!==f||e[51]!==w?(F=(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[g,f,w,N]}),e[48]=N,e[49]=g,e[50]=f,e[51]=w,e[52]=F):F=e[52],F},"je"),Oe=v(i=>{let e=(0,K.c)(7),{bucket:t}=i,s;e[0]!==t.key?(s=(0,r.jsx)("span",{className:"truncate text-muted-foreground",role:"gridcell",children:t.key}),e[0]=t.key,e[1]=s):s=e[1];let n;e[2]!==t.count?(n=(0,r.jsx)("span",{className:"shrink-0 tabular-nums",role:"gridcell",children:t.count}),e[2]=t.count,e[3]=n):n=e[3];let o;return e[4]!==s||e[5]!==n?(o=(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 px-3 py-1 font-mono text-xs","data-testid":"logs-summary-row",role:"row",children:[s,n]}),e[4]=s,e[5]=n,e[6]=o):o=e[6],o},"pe"),He=v(i=>{let e=(0,K.c)(31),{summary:t}=i,s=z(),n;e[0]!==t.total||e[1]!==s?(n=s("{count} entries",{count:t.total}),e[0]=t.total,e[1]=s,e[2]=n):n=e[2];let o;e[3]!==n?(o=(0,r.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"logs-summary-total",children:n}),e[3]=n,e[4]=o):o=e[4];let c;e[5]!==s?(c=s("By level"),e[5]=s,e[6]=c):c=e[6];let p;e[7]!==c?(p=(0,r.jsx)("h4",{className:"mb-1 font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:c}),e[7]=c,e[8]=p):p=e[8];let m;e[9]!==t.byLevel?(m=t.byLevel.map(Je),e[9]=t.byLevel,e[10]=m):m=e[10];let d;e[11]!==m?(d=(0,r.jsx)("div",{className:"overflow-hidden rounded-lg border border-border","data-testid":"logs-summary-levels",role:"grid",children:m}),e[11]=m,e[12]=d):d=e[12];let a;e[13]!==p||e[14]!==d?(a=(0,r.jsxs)("div",{children:[p,d]}),e[13]=p,e[14]=d,e[15]=a):a=e[15];let h;e[16]!==s?(h=s("By function"),e[16]=s,e[17]=h):h=e[17];let l;e[18]!==h?(l=(0,r.jsx)("h4",{className:"mb-1 font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:h}),e[18]=h,e[19]=l):l=e[19];let g;e[20]!==t.byPath?(g=t.byPath.map(Xe),e[20]=t.byPath,e[21]=g):g=e[21];let u;e[22]!==g?(u=(0,r.jsx)("div",{className:"overflow-hidden rounded-lg border border-border","data-testid":"logs-summary-paths",role:"grid",children:g}),e[22]=g,e[23]=u):u=e[23];let x;e[24]!==u||e[25]!==l?(x=(0,r.jsxs)("div",{children:[l,u]}),e[24]=u,e[25]=l,e[26]=x):x=e[26];let f;return e[27]!==x||e[28]!==o||e[29]!==a?(f=(0,r.jsxs)("div",{className:"flex flex-col gap-4 rounded-xl border border-border bg-card p-4 shadow-xs","data-testid":"logs-summary",children:[o,a,x]}),e[27]=x,e[28]=o,e[29]=a,e[30]=f):f=e[30],f},"Je");function Je(i){return(0,r.jsx)(Oe,{bucket:i},i.key)}v(Je,"Xe");function Xe(i){return(0,r.jsx)(Oe,{bucket:i},i.key)}v(Xe,"Ze");var Ze=v(i=>{let e=(0,K.c)(46),{liveError:t,onShardKeyChange:s,onShowArchive:n,onShowErrors:o,onShowRequests:c,shardKey:p,view:m}=i,d=z(),a=m==="requests",h=m==="requests"?"bg-muted font-medium":"text-muted-foreground",l;e[0]!==h?(l=W("px-3 py-1 text-sm",h),e[0]=h,e[1]=l):l=e[1];let g;e[2]!==d?(g=d("Requests"),e[2]=d,e[3]=g):g=e[3];let u;e[4]!==c||e[5]!==a||e[6]!==l||e[7]!==g?(u=(0,r.jsx)("button",{"aria-selected":a,className:l,"data-testid":"lg-view-requests",onClick:c,role:"tab",type:"button",children:g}),e[4]=c,e[5]=a,e[6]=l,e[7]=g,e[8]=u):u=e[8];let x=m==="errors",f=m==="errors"?"bg-muted font-medium":"text-muted-foreground",C;e[9]!==f?(C=W("px-3 py-1 text-sm",f),e[9]=f,e[10]=C):C=e[10];let y;e[11]!==d?(y=d("Errors"),e[11]=d,e[12]=y):y=e[12];let w;e[13]!==o||e[14]!==x||e[15]!==C||e[16]!==y?(w=(0,r.jsx)("button",{"aria-selected":x,className:C,"data-testid":"lg-view-errors",onClick:o,role:"tab",type:"button",children:y}),e[13]=o,e[14]=x,e[15]=C,e[16]=y,e[17]=w):w=e[17];let k=m==="archive",L=m==="archive"?"bg-muted font-medium":"text-muted-foreground",S;e[18]!==L?(S=W("px-3 py-1 text-sm",L),e[18]=L,e[19]=S):S=e[19];let T;e[20]!==d?(T=d("Archive"),e[20]=d,e[21]=T):T=e[21];let R;e[22]!==n||e[23]!==k||e[24]!==S||e[25]!==T?(R=(0,r.jsx)("button",{"aria-selected":k,className:S,"data-testid":"lg-view-archive",onClick:n,role:"tab",type:"button",children:T}),e[22]=n,e[23]=k,e[24]=S,e[25]=T,e[26]=R):R=e[26];let P;e[27]!==w||e[28]!==R||e[29]!==u?(P=(0,r.jsxs)("div",{className:"inline-flex overflow-hidden rounded-lg border border-border",role:"tablist",children:[u,w,R]}),e[27]=w,e[28]=R,e[29]=u,e[30]=P):P=e[30];let b;e[31]!==s||e[32]!==p?(b=(0,r.jsx)(ve,{onChange:s,testId:"lg-shard-input",value:p}),e[31]=s,e[32]=p,e[33]=b):b=e[33];let N;e[34]!==t||e[35]!==m?(N=m!=="archive"&&(0,r.jsx)(Ce,{message:t,prefix:"lg"}),e[34]=t,e[35]=m,e[36]=N):N=e[36];let F;e[37]!==d?(F=d("Open in Cloudflare"),e[37]=d,e[38]=F):F=e[38];let E;e[39]!==F?(E=(0,r.jsx)("a",{className:"text-sm text-primary underline-offset-4 hover:underline","data-testid":"lg-cf-link",href:de,rel:"noreferrer",target:"_blank",children:F}),e[39]=F,e[40]=E):E=e[40];let O;return e[41]!==P||e[42]!==b||e[43]!==N||e[44]!==E?(O=(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[P,b,N,E]}),e[41]=P,e[42]=b,e[43]=N,e[44]=E,e[45]=O):O=e[45],O},"et"),ce=400,et=36,tt={height:ce,overflow:"auto"},Ke={left:0,position:"absolute",top:0,width:"100%"},rt={error:"destructive",ok:"secondary"},Me=v(i=>{let e=(0,K.c)(6),{onOpenTrace:t,traceId:s}=i,n=z(),o;e[0]!==t||e[1]!==n||e[2]!==s?(o=s===void 0?null:(0,r.jsx)("button",{className:"text-primary underline-offset-2 hover:underline","data-testid":"lg-trace-link",onClick:v(()=>{t(s)},"onClick"),type:"button",children:n("Trace")}),e[0]=t,e[1]=n,e[2]=s,e[3]=o):o=e[3];let c;return e[4]!==o?(c=(0,r.jsx)("span",{className:"w-16 shrink-0 text-right",role:"gridcell",children:o}),e[4]=o,e[5]=c):c=e[5],c},"be"),at=v(i=>{let e=(0,K.c)(13),{entry:t,index:s,measureRef:n,onOpenTrace:o,start:c}=i,p=`translateY(${String(c)}px)`,m;e[0]!==p?(m={...Ke,transform:p},e[0]=p,e[1]=m):m=e[1];let d=m,a;e[2]!==t?(a=(0,r.jsx)(qe,{entry:t}),e[2]=t,e[3]=a):a=e[3];let h;e[4]!==t.traceId||e[5]!==o?(h=(0,r.jsx)(Me,{onOpenTrace:o,traceId:t.traceId}),e[4]=t.traceId,e[5]=o,e[6]=h):h=e[6];let l;return e[7]!==s||e[8]!==n||e[9]!==d||e[10]!==a||e[11]!==h?(l=(0,r.jsxs)("div",{className:"flex items-center border-b border-border px-3 py-1.5 font-mono text-xs hover:bg-muted/50","data-index":s,"data-testid":"lg-row",ref:n,role:"row",style:d,children:[a,h]}),e[7]=s,e[8]=n,e[9]=d,e[10]=a,e[11]=h,e[12]=l):l=e[12],l},"lt"),Fe=v(i=>i.length===0?"\u2014":i.join(", "),"ce"),lt=v(i=>{let e=(0,K.c)(41),{entry:t,index:s,measureRef:n,onOpenTrace:o,start:c}=i,p=`translateY(${String(c)}px)`,m;e[0]!==p?(m={...Ke,transform:p},e[0]=p,e[1]=m):m=e[1];let d=m,a;e[2]!==t.ts?(a=new Date(t.ts).toLocaleString(),e[2]=t.ts,e[3]=a):a=e[3];let h;e[4]!==a?(h=(0,r.jsx)("span",{className:"w-40 shrink-0 tabular-nums text-muted-foreground",role:"gridcell",children:a}),e[4]=a,e[5]=h):h=e[5];let l=rt[t.outcome],g;e[6]!==t.outcome||e[7]!==l?(g=(0,r.jsx)("span",{className:"w-16 shrink-0",role:"gridcell",children:(0,r.jsx)(ne,{variant:l,children:t.outcome})}),e[6]=t.outcome,e[7]=l,e[8]=g):g=e[8];let u;e[9]!==t.functionPath?(u=(0,r.jsx)("span",{className:"w-44 shrink-0 truncate",role:"gridcell",title:t.functionPath,children:t.functionPath}),e[9]=t.functionPath,e[10]=u):u=e[10];let x=t.shardKey??"\u2014",f;e[11]!==x?(f=(0,r.jsx)("span",{className:"w-24 shrink-0 truncate text-muted-foreground",role:"gridcell",children:x}),e[11]=x,e[12]=f):f=e[12];let C=t.userId??"\u2014",y;e[13]!==C?(y=(0,r.jsx)("span",{className:"w-24 shrink-0 truncate text-muted-foreground",role:"gridcell",children:C}),e[13]=C,e[14]=y):y=e[14];let w;e[15]!==t.durationMs?(w=Math.round(t.durationMs),e[15]=t.durationMs,e[16]=w):w=e[16];let k=`${String(w)}ms`,L;e[17]!==k?(L=(0,r.jsx)("span",{className:"w-16 shrink-0 tabular-nums text-muted-foreground",role:"gridcell",children:k}),e[17]=k,e[18]=L):L=e[18];let S;e[19]!==t.errorMessage||e[20]!==t.outcome||e[21]!==t.tablesRead||e[22]!==t.tablesWritten?(S=t.outcome==="error"&&t.errorMessage!==void 0?t.errorMessage:`r:${Fe(t.tablesRead)} \xB7 w:${Fe(t.tablesWritten)}`,e[19]=t.errorMessage,e[20]=t.outcome,e[21]=t.tablesRead,e[22]=t.tablesWritten,e[23]=S):S=e[23];let T;e[24]!==S?(T=(0,r.jsx)("span",{className:"flex-1 truncate text-muted-foreground",role:"gridcell",children:S}),e[24]=S,e[25]=T):T=e[25];let R;e[26]!==t.traceId||e[27]!==o?(R=(0,r.jsx)(Me,{onOpenTrace:o,traceId:t.traceId}),e[26]=t.traceId,e[27]=o,e[28]=R):R=e[28];let P;return e[29]!==s||e[30]!==n||e[31]!==d||e[32]!==y||e[33]!==L||e[34]!==T||e[35]!==R||e[36]!==h||e[37]!==g||e[38]!==u||e[39]!==f?(P=(0,r.jsxs)("div",{className:"flex items-center border-b border-border px-3 py-1.5 font-mono text-xs hover:bg-muted/50","data-index":s,"data-testid":"lg-req-row",ref:n,role:"row",style:d,children:[h,g,u,f,y,L,T,R]}),e[29]=s,e[30]=n,e[31]=d,e[32]=y,e[33]=L,e[34]=T,e[35]=R,e[36]=h,e[37]=g,e[38]=u,e[39]=f,e[40]=P):P=e[40],P},"ot"),Ee=v(i=>{let{entries:e}=i??{};return Array.isArray(e)?e:[]},"de"),ot=v(i=>{let e={};return i.functionPathPrefix.trim()!==""&&(e.functionPathPrefix=i.functionPathPrefix.trim()),i.userId.trim()!==""&&(e.userId=i.userId.trim()),i.tableTouched.trim()!==""&&(e.tableTouched=i.tableTouched.trim()),(i.outcome==="ok"||i.outcome==="error")&&(e.outcome=i.outcome),e},"nt"),nt={"5m":300*1e3,"15m":900*1e3,"1h":3600*1e3},st=v((i,e)=>{let t=e.search.trim().toLowerCase(),s=e.path.trim().toLowerCase(),n=e.range==="all"?Number.NEGATIVE_INFINITY:e.now-nt[e.range];return i.filter(o=>e.levels.size>0&&!e.levels.has(o.level)||o.timestamp<n||s!==""&&!(o.functionPath??"").toLowerCase().includes(s)?!1:t===""||o.message.toLowerCase().includes(t)||Te(o.fields).toLowerCase().includes(t))},"it"),it="\u2014",dt=v(i=>{let e=new Map,t=new Map;for(let o of i){e.set(o.level,(e.get(o.level)??0)+1);let c=o.functionPath??it;t.set(c,(t.get(c)??0)+1)}let s=ue.filter(o=>e.has(o)).map(o=>({count:e.get(o)??0,key:o})),n=[...t.entries()].map(([o,c])=>({count:c,key:o})).toSorted((o,c)=>c.count===o.count?o.key.localeCompare(c.key):c.count-o.count);return{byLevel:s,byPath:n,total:i.length}},"dt"),Et=v(({initialShardKey:i})=>{let e=z(),[t,s]=(0,q.useState)("requests"),{queryShardKey:n,setShardKey:o,shardKey:c}=be(i),[p,m]=(0,q.useState)(""),[d,a]=(0,q.useState)(()=>new Set),[h,l]=(0,q.useState)(""),[g,u]=(0,q.useState)("all"),[x,f]=(0,q.useState)(!1),[C,y]=(0,q.useState)(""),[w,k]=(0,q.useState)(""),[L,S]=(0,q.useState)(""),[T,R]=(0,q.useState)("all"),P=ot({functionPathPrefix:C,outcome:T,tableTouched:L,userId:w}),b=le(oe.getRequestLog,P,{enabled:t==="requests",live:!0,shardKey:n}),N=le(oe.getLogs,{},{enabled:t==="errors",live:!0,shardKey:n}),F=t==="requests"?b:N,{error:E,errorSource:O,isLoading:M,liveError:V}=F,_=Se(n),U=Ee(N.data),A=Ee(b.data);(0,q.useEffect)(()=>{F.data!==void 0&&fe(n)},[F.data,n]);let $=st(U,{levels:d,now:Date.now(),path:h,range:g,search:p}),Q=dt($),X=t==="requests"?A.length:$.length,Z=t==="errors"&&x,Y=(0,q.useMemo)(()=>E!==null?"error":X===0?M?Z?"summary":"list":"empty":Z?"summary":"list",[X,M,E,Z]),me=(0,q.useRef)(null),G=ke({count:X,estimateSize:v(()=>et,"estimateSize"),getItemKey:v(I=>t==="errors"?$[I]?.id??I:I,"getItemKey"),getScrollElement:v(()=>me.current,"getScrollElement"),initialRect:{height:ce,width:800},observeElementRect:v((I,ee)=>Le(I,ee,ce),"observeElementRect"),overscan:8}),_e=G.getVirtualItems(),Ae={height:G.getTotalSize(),position:"relative",width:"100%"};return(0,r.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lunora-logs",children:[(0,r.jsx)(Ze,{liveError:V,onShardKeyChange:o,onShowArchive:v(()=>{s("archive"),f(!1)},"onShowArchive"),onShowErrors:v(()=>{s("errors"),f(!1)},"onShowErrors"),onShowRequests:v(()=>{s("requests"),f(!1)},"onShowRequests"),shardKey:c,view:t}),t==="errors"&&(0,r.jsx)(Ye,{levelFilter:d,onLogPathChange:v(I=>{l(I.target.value)},"onLogPathChange"),onSearchChange:v(I=>{m(I.target.value)},"onSearchChange"),onTimeRangeChange:v(I=>{u(I.target.value)},"onTimeRangeChange"),onToggleLevel:v(I=>{a(ee=>{let H=new Set(ee);return H.has(I)?H.delete(I):H.add(I),H})},"onToggleLevel"),onToggleSummary:v(()=>{f(I=>!I)},"onToggleSummary"),pathFilter:h,search:p,showSummary:x,timeRange:g}),t==="requests"&&(0,r.jsx)(Ge,{onOutcomeChange:v(I=>{R(I.target.value)},"onOutcomeChange"),onPathChange:v(I=>{y(I.target.value)},"onPathChange"),onTableChange:v(I=>{S(I.target.value)},"onTableChange"),onUserChange:v(I=>{k(I.target.value)},"onUserChange"),outcomeFilter:T,pathPrefix:C,tableFilter:L,userIdFilter:w}),t==="archive"?(0,r.jsx)(Ve,{shardKey:n}):(0,r.jsxs)(r.Fragment,{children:[Y==="error"&&(0,r.jsx)(xe,{error:O,shardKey:n,testId:"lg-error"}),Y==="empty"&&(0,r.jsx)(J,{description:e("Function and request logs for this shard show up here as your app handles traffic."),icon:(0,r.jsx)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M4 5h16M4 12h16M4 19h10"})}),testId:"lg-empty",title:e("No logs.")}),Y==="summary"&&(0,r.jsx)(He,{summary:Q}),Y==="list"&&(0,r.jsx)("div",{className:"rounded-xl border border-border shadow-xs","data-testid":"lg-scroll",ref:me,style:tt,children:(0,r.jsx)("div",{"aria-label":e("Recent logs"),"data-testid":"lg-table",role:"grid",style:Ae,children:_e.map(I=>t==="requests"?(0,r.jsx)(lt,{entry:A[I.index],index:I.index,measureRef:G.measureElement,onOpenTrace:_,start:I.start},I.key):(0,r.jsx)(at,{entry:$[I.index],index:I.index,measureRef:G.measureElement,onOpenTrace:_,start:I.start},I.key))})})]})]})},"jt");export{Et as LogsPanel,st as filterLogs,dt as summarizeLogs};
|
|
1
|
+
import{a as Re,b as Pe,c as qe}from"./chunk-4Z2GLDF7.js";import{b as Ie,c as Te}from"./chunk-LJLNIVUA.js";import{a as Se}from"./chunk-PWHUPKZB.js";import"./chunk-QLZGKBOW.js";import{a as de}from"./chunk-R6NJ4ER6.js";import{a as Le}from"./chunk-BZP4FOID.js";import{c as ke}from"./chunk-ZBMHFOK2.js";import{a as Ce}from"./chunk-BCT3KY76.js";import{a as ie}from"./chunk-DRHZZ7IN.js";import{a as be}from"./chunk-2KTN53PK.js";import{a as ve}from"./chunk-YC3TUO5H.js";import{b as fe}from"./chunk-EDL46BPM.js";import"./chunk-4KPATTV6.js";import"./chunk-2ZNMZPPZ.js";import"./chunk-F4NZZ3LK.js";import{j as D}from"./chunk-SQO3WGXH.js";import"./chunk-R76ATTPC.js";import"./chunk-4AG356VE.js";import{a as pe}from"./chunk-ECXQQPVU.js";import"./chunk-EOHXBC4U.js";import"./chunk-JEJV6SVN.js";import{a as J}from"./chunk-V5ZKAZR6.js";import{b as ne}from"./chunk-UB6S6VYI.js";import"./chunk-DMQVY5L7.js";import{a as xe}from"./chunk-4OWWWAMB.js";import"./chunk-5XQM44J7.js";import{a as ye,b as we,c as Ne,d as se,e as j,f as B}from"./chunk-WVAWKCNQ.js";import"./chunk-VND72OIC.js";import"./chunk-VLQU4G6O.js";import"./chunk-EOFWXI3T.js";import{a as oe}from"./chunk-LYVYUTQY.js";import{c as le}from"./chunk-LUHBGCMO.js";import{n as ge}from"./chunk-PLCYDHU3.js";import"./chunk-WY23EROJ.js";import{B as z,j as re,k as he,s as ae,x as W}from"./chunk-G4H5DPO6.js";import"./chunk-JSVT5VBU.js";import{a as Ue}from"./chunk-A6TVTNKO.js";import{a as $e,b as ze}from"./chunk-ADABTCDI.js";import{a as v,d as te}from"./chunk-5PEAXTYQ.js";var K=te(Ue(),1);var q=te($e(),1);var r=te(ze(),1);var ue=["trace","debug","log","info","warn","error","fatal"],De="LOG_ARCHIVE_NOT_CONFIGURED",je={cursor:void 0,error:null,generation:0,loading:!1,notConfigured:!1,rows:null},Be=v((i,e)=>{switch(e.type){case"append":return{...i,cursor:e.cursor,error:null,loading:!1,rows:[...i.rows??[],...e.rows]};case"failed":return{...i,cursor:void 0,error:e.message,loading:!1,notConfigured:!1,rows:null};case"loaded":return{cursor:e.cursor,error:null,generation:i.generation+1,loading:!1,notConfigured:!1,rows:e.rows};case"loading":return{...i,error:null,loading:!0,notConfigured:!1};case"notConfigured":return{...i,cursor:void 0,error:null,loading:!1,notConfigured:!0,rows:null};case"pageFailed":return{...i,error:e.message,loading:!1};default:return i}},"ze"),We=v(i=>{let e=(0,K.c)(36),{row:t}=i,s;e[0]!==t.fields?(s=Ie(t.fields),e[0]=t.fields,e[1]=s):s=e[1];let n=s,o=`lg-archive-row-${String(t.ts)}`,c;e[2]!==t.ts?(c=new Date(t.ts).toLocaleString(),e[2]=t.ts,e[3]=c):c=e[3];let p;e[4]!==c?(p=(0,r.jsx)(B,{className:"tabular-nums whitespace-nowrap text-xs text-muted-foreground",children:c}),e[4]=c,e[5]=p):p=e[5];let m=Re[t.level],d;e[6]!==t.level||e[7]!==m?(d=(0,r.jsx)(B,{children:(0,r.jsx)(ne,{variant:m,children:t.level})}),e[6]=t.level,e[7]=m,e[8]=d):d=e[8];let a;e[9]!==t.functionPath?(a=(0,r.jsx)(B,{className:"font-mono text-xs",children:t.functionPath}),e[9]=t.functionPath,e[10]=a):a=e[10];let h;e[11]!==t.message?(h=(0,r.jsx)("div",{className:"truncate",title:t.message,children:t.message}),e[11]=t.message,e[12]=h):h=e[12];let l;e[13]!==n.text?(l=n.text!==""&&(0,r.jsx)("div",{className:"truncate font-mono text-[11px] text-muted-foreground",title:n.text,children:n.text}),e[13]=n.text,e[14]=l):l=e[14];let g;e[15]!==n.errors?(g=n.errors.length>0&&(0,r.jsx)(Pe,{errors:n.errors}),e[15]=n.errors,e[16]=g):g=e[16];let u;e[17]!==g||e[18]!==h||e[19]!==l?(u=(0,r.jsxs)(B,{className:"max-w-md",children:[h,l,g]}),e[17]=g,e[18]=h,e[19]=l,e[20]=u):u=e[20];let x=t.traceId??"\u2014",f;e[21]!==x?(f=(0,r.jsx)(B,{className:"font-mono text-[11px] text-muted-foreground",children:x}),e[21]=x,e[22]=f):f=e[22];let C=t.shardKey??"\u2014",y;e[23]!==C?(y=(0,r.jsx)(B,{className:"font-mono text-[11px] text-muted-foreground",children:C}),e[23]=C,e[24]=y):y=e[24];let w=t.userId??"\u2014",k;e[25]!==w?(k=(0,r.jsx)(B,{className:"font-mono text-[11px] text-muted-foreground",children:w}),e[25]=w,e[26]=k):k=e[26];let L;return e[27]!==u||e[28]!==f||e[29]!==y||e[30]!==k||e[31]!==o||e[32]!==p||e[33]!==d||e[34]!==a?(L=(0,r.jsxs)(se,{"data-testid":o,children:[p,d,a,u,f,y,k]}),e[27]=u,e[28]=f,e[29]=y,e[30]=k,e[31]=o,e[32]=p,e[33]=d,e[34]=a,e[35]=L):L=e[35],L},"Ge"),Ve=v(({shardKey:i})=>{let e=ge(),t=z(),[s,n]=(0,q.useState)(""),[o,c]=(0,q.useState)(""),[p,m]=(0,q.useState)(""),[{cursor:d,error:a,generation:h,loading:l,notConfigured:g,rows:u},x]=(0,q.useReducer)(Be,je),f=ie(s.trim(),400),C=ie(o.trim(),400),y={...f===""?{}:{functionPathPrefix:f},...p===""?{}:{minLevel:p},...i===""?{}:{shardKey:i},...C===""?{}:{userId:C}},w=JSON.stringify(y),k=(0,q.useRef)(w);(0,q.useEffect)(()=>{let b={cancelled:!1};return k.current=w,ae((async()=>{x({type:"loading"});try{let N=await e.queryLogArchive(y);b.cancelled||x({cursor:N.nextCursor,rows:N.rows,type:"loaded"})}catch(N){b.cancelled||x(he(N)===De?{type:"notConfigured"}:{message:re(N),type:"failed"})}})()),()=>{b.cancelled=!0}},[e,w]);let L=v(async()=>{if(d===void 0)return;let b=w;x({type:"loading"});try{let N=await e.queryLogArchive({...y,cursor:d});k.current===b&&x({cursor:N.nextCursor,rows:N.rows,type:"append"})}catch(N){k.current===b&&x({message:re(N),type:"pageFailed"})}},"N"),S=v(b=>{n(b.target.value)},"I"),T=v(b=>{c(b.target.value)},"T"),R=v(b=>{m(b.target.value)},"R"),P=v(()=>{ae(L())},"k");return g?(0,r.jsx)(J,{action:(0,r.jsx)("a",{className:"text-sm text-primary underline-offset-4 hover:underline",href:de,rel:"noreferrer",target:"_blank",children:t("Open in Cloudflare")}),description:t("Wire pipelineLogSink to a Cloudflare Pipeline \u2192 R2 Data Catalog table and set R2_SQL_ACCOUNT_ID, R2_SQL_TOKEN, R2_SQL_BUCKET to browse the durable log archive here."),testId:"lg-archive-not-configured",title:t("Log archive not configured")}):(0,r.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lg-archive",children:[(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[(0,r.jsx)(D,{"aria-label":t("Function path prefix"),className:"h-8 w-48","data-testid":"lg-archive-path",onChange:S,placeholder:t("function path\u2026"),value:s}),(0,r.jsx)(D,{"aria-label":t("User id"),className:"h-8 w-40","data-testid":"lg-archive-user",onChange:T,placeholder:t("user id\u2026"),value:o}),(0,r.jsxs)("select",{"aria-label":t("Minimum level"),className:"h-8 rounded-md border border-border bg-background px-2 text-sm","data-testid":"lg-archive-min-level",onChange:R,value:p,children:[(0,r.jsx)("option",{value:"",children:t("min level")}),ue.map(b=>(0,r.jsx)("option",{value:b,children:b},b))]})]}),a!==null&&(0,r.jsx)("p",{className:"text-sm text-destructive","data-testid":"lg-archive-error",role:"alert",children:a}),l&&u===null&&a===null&&(0,r.jsx)("p",{className:"text-sm text-muted-foreground","data-testid":"lg-archive-loading",children:t("Loading\u2026")}),u!==null&&u.length===0&&(0,r.jsx)(J,{description:t("No archived logs match these filters. The durable archive fills as pipelineLogSink flushes records to R2."),testId:"lg-archive-empty",title:t("No archived logs.")}),u!==null&&u.length>0&&(0,r.jsx)("div",{className:"overflow-hidden rounded-xl border border-border shadow-xs",children:(0,r.jsxs)(ye,{"data-testid":"lg-archive-table",children:[(0,r.jsx)(we,{children:(0,r.jsxs)(se,{children:[(0,r.jsx)(j,{children:t("Time")}),(0,r.jsx)(j,{children:t("Level")}),(0,r.jsx)(j,{children:t("Function")}),(0,r.jsx)(j,{children:t("Message")}),(0,r.jsx)(j,{children:t("Trace")}),(0,r.jsx)(j,{children:t("Shard")}),(0,r.jsx)(j,{children:t("User")})]})}),(0,r.jsx)(Ne,{children:u.map((b,N)=>(0,r.jsx)(We,{row:b},`${String(h)}:${String(b.ts)}-${String(N)}`))})]})}),d!==void 0&&(0,r.jsx)("div",{children:(0,r.jsx)(pe,{"data-testid":"lg-archive-more",disabled:l,onClick:P,size:"sm",variant:"outline",children:t(l?"Loading\u2026":"Load more")})})]})},"He"),Qe=v(i=>{let e=(0,K.c)(11),{level:t,onToggle:s,selected:n}=i,o;e[0]!==t||e[1]!==s?(o=v(()=>{s(t)},"o"),e[0]=t,e[1]=s,e[2]=o):o=e[2];let c=o,p=n?"border-border bg-muted font-medium":"border-input text-muted-foreground",m;e[3]!==p?(m=W("rounded-md border px-2 py-1 text-xs",p),e[3]=p,e[4]=m):m=e[4];let d=`logs-level-${t}`,a;return e[5]!==t||e[6]!==c||e[7]!==n||e[8]!==m||e[9]!==d?(a=(0,r.jsx)("button",{"aria-pressed":n,className:m,"data-testid":d,onClick:c,type:"button",children:t}),e[5]=t,e[6]=c,e[7]=n,e[8]=m,e[9]=d,e[10]=a):a=e[10],a},"We"),Ye=v(i=>{let e=(0,K.c)(68),{levelFilter:t,onLogPathChange:s,onSearchChange:n,onTimeRangeChange:o,onToggleLevel:c,onToggleSummary:p,pathFilter:m,search:d,showSummary:a,timeRange:h}=i,l=z(),g;e[0]!==l?(g=l("Search messages"),e[0]=l,e[1]=g):g=e[1];let u;e[2]!==l?(u=l("search message"),e[2]=l,e[3]=u):u=e[3];let x;e[4]!==n||e[5]!==d||e[6]!==g||e[7]!==u?(x=(0,r.jsx)(D,{"aria-label":g,className:"h-8 w-48","data-testid":"lg-search",onChange:n,placeholder:u,value:d}),e[4]=n,e[5]=d,e[6]=g,e[7]=u,e[8]=x):x=e[8];let f;e[9]!==l?(f=l("Function path"),e[9]=l,e[10]=f):f=e[10];let C;e[11]!==l?(C=l("filter path"),e[11]=l,e[12]=C):C=e[12];let y;e[13]!==s||e[14]!==m||e[15]!==f||e[16]!==C?(y=(0,r.jsx)(D,{"aria-label":f,className:"h-8 w-40","data-testid":"logs-path-filter",onChange:s,placeholder:C,value:m}),e[13]=s,e[14]=m,e[15]=f,e[16]=C,e[17]=y):y=e[17];let w;e[18]!==l?(w=l("Level filter"),e[18]=l,e[19]=w):w=e[19];let k;e[20]!==t||e[21]!==c?(k=ue.map(Q=>(0,r.jsx)(Qe,{level:Q,onToggle:c,selected:t.has(Q)},Q)),e[20]=t,e[21]=c,e[22]=k):k=e[22];let L;e[23]!==w||e[24]!==k?(L=(0,r.jsx)("div",{"aria-label":w,className:"inline-flex items-center gap-1","data-testid":"logs-level-filter",role:"group",children:k}),e[23]=w,e[24]=k,e[25]=L):L=e[25];let S;e[26]!==l?(S=l("Time range"),e[26]=l,e[27]=S):S=e[27];let T;e[28]!==l?(T=l("All time"),e[28]=l,e[29]=T):T=e[29];let R;e[30]!==T?(R=(0,r.jsx)("option",{value:"all",children:T}),e[30]=T,e[31]=R):R=e[31];let P;e[32]!==l?(P=l("Last 5m"),e[32]=l,e[33]=P):P=e[33];let b;e[34]!==P?(b=(0,r.jsx)("option",{value:"5m",children:P}),e[34]=P,e[35]=b):b=e[35];let N;e[36]!==l?(N=l("Last 15m"),e[36]=l,e[37]=N):N=e[37];let F;e[38]!==N?(F=(0,r.jsx)("option",{value:"15m",children:N}),e[38]=N,e[39]=F):F=e[39];let E;e[40]!==l?(E=l("Last hour"),e[40]=l,e[41]=E):E=e[41];let O;e[42]!==E?(O=(0,r.jsx)("option",{value:"1h",children:E}),e[42]=E,e[43]=O):O=e[43];let M;e[44]!==o||e[45]!==S||e[46]!==R||e[47]!==b||e[48]!==F||e[49]!==O||e[50]!==h?(M=(0,r.jsxs)("select",{"aria-label":S,className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm shadow-xs focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none","data-testid":"logs-time-range",onChange:o,value:h,children:[R,b,F,O]}),e[44]=o,e[45]=S,e[46]=R,e[47]=b,e[48]=F,e[49]=O,e[50]=h,e[51]=M):M=e[51];let V=a?"border-border bg-muted font-medium":"border-input text-muted-foreground",_;e[52]!==V?(_=W("h-8 rounded-md border px-3 text-sm",V),e[52]=V,e[53]=_):_=e[53];let U;e[54]!==a||e[55]!==l?(U=l(a?"List":"Summary"),e[54]=a,e[55]=l,e[56]=U):U=e[56];let A;e[57]!==p||e[58]!==a||e[59]!==_||e[60]!==U?(A=(0,r.jsx)("button",{"aria-pressed":a,className:_,"data-testid":"logs-summary-toggle",onClick:p,type:"button",children:U}),e[57]=p,e[58]=a,e[59]=_,e[60]=U,e[61]=A):A=e[61];let $;return e[62]!==M||e[63]!==A||e[64]!==x||e[65]!==y||e[66]!==L?($=(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[x,y,L,M,A]}),e[62]=M,e[63]=A,e[64]=x,e[65]=y,e[66]=L,e[67]=$):$=e[67],$},"Ye"),Ge=v(i=>{let e=(0,K.c)(53),{onOutcomeChange:t,onPathChange:s,onTableChange:n,onUserChange:o,outcomeFilter:c,pathPrefix:p,tableFilter:m,userIdFilter:d}=i,a=z(),h;e[0]!==a?(h=a("Function path"),e[0]=a,e[1]=h):h=e[1];let l;e[2]!==a?(l=a("file:function"),e[2]=a,e[3]=l):l=e[3];let g;e[4]!==s||e[5]!==p||e[6]!==h||e[7]!==l?(g=(0,r.jsx)(D,{"aria-label":h,className:"h-8 w-44","data-testid":"lg-req-path",onChange:s,placeholder:l,value:p}),e[4]=s,e[5]=p,e[6]=h,e[7]=l,e[8]=g):g=e[8];let u;e[9]!==a?(u=a("User id"),e[9]=a,e[10]=u):u=e[10];let x;e[11]!==a?(x=a("userId"),e[11]=a,e[12]=x):x=e[12];let f;e[13]!==o||e[14]!==u||e[15]!==x||e[16]!==d?(f=(0,r.jsx)(D,{"aria-label":u,className:"h-8 w-32","data-testid":"lg-req-user",onChange:o,placeholder:x,value:d}),e[13]=o,e[14]=u,e[15]=x,e[16]=d,e[17]=f):f=e[17];let C;e[18]!==a?(C=a("Table touched"),e[18]=a,e[19]=C):C=e[19];let y;e[20]!==a?(y=a("table"),e[20]=a,e[21]=y):y=e[21];let w;e[22]!==n||e[23]!==C||e[24]!==y||e[25]!==m?(w=(0,r.jsx)(D,{"aria-label":C,className:"h-8 w-32","data-testid":"lg-req-table",onChange:n,placeholder:y,value:m}),e[22]=n,e[23]=C,e[24]=y,e[25]=m,e[26]=w):w=e[26];let k;e[27]!==a?(k=a("Outcome filter"),e[27]=a,e[28]=k):k=e[28];let L;e[29]!==a?(L=a("all"),e[29]=a,e[30]=L):L=e[30];let S;e[31]!==L?(S=(0,r.jsx)("option",{value:"all",children:L}),e[31]=L,e[32]=S):S=e[32];let T;e[33]!==a?(T=a("ok"),e[33]=a,e[34]=T):T=e[34];let R;e[35]!==T?(R=(0,r.jsx)("option",{value:"ok",children:T}),e[35]=T,e[36]=R):R=e[36];let P;e[37]!==a?(P=a("error"),e[37]=a,e[38]=P):P=e[38];let b;e[39]!==P?(b=(0,r.jsx)("option",{value:"error",children:P}),e[39]=P,e[40]=b):b=e[40];let N;e[41]!==t||e[42]!==c||e[43]!==k||e[44]!==S||e[45]!==R||e[46]!==b?(N=(0,r.jsxs)("select",{"aria-label":k,className:"h-8 rounded-md border border-input bg-transparent px-2 text-sm shadow-xs focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-none","data-testid":"lg-req-outcome",onChange:t,value:c,children:[S,R,b]}),e[41]=t,e[42]=c,e[43]=k,e[44]=S,e[45]=R,e[46]=b,e[47]=N):N=e[47];let F;return e[48]!==N||e[49]!==g||e[50]!==f||e[51]!==w?(F=(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[g,f,w,N]}),e[48]=N,e[49]=g,e[50]=f,e[51]=w,e[52]=F):F=e[52],F},"je"),Oe=v(i=>{let e=(0,K.c)(7),{bucket:t}=i,s;e[0]!==t.key?(s=(0,r.jsx)("span",{className:"truncate text-muted-foreground",role:"gridcell",children:t.key}),e[0]=t.key,e[1]=s):s=e[1];let n;e[2]!==t.count?(n=(0,r.jsx)("span",{className:"shrink-0 tabular-nums",role:"gridcell",children:t.count}),e[2]=t.count,e[3]=n):n=e[3];let o;return e[4]!==s||e[5]!==n?(o=(0,r.jsxs)("div",{className:"flex items-center justify-between gap-4 px-3 py-1 font-mono text-xs","data-testid":"logs-summary-row",role:"row",children:[s,n]}),e[4]=s,e[5]=n,e[6]=o):o=e[6],o},"pe"),He=v(i=>{let e=(0,K.c)(31),{summary:t}=i,s=z(),n;e[0]!==t.total||e[1]!==s?(n=s("{count} entries",{count:t.total}),e[0]=t.total,e[1]=s,e[2]=n):n=e[2];let o;e[3]!==n?(o=(0,r.jsx)("p",{className:"text-xs text-muted-foreground","data-testid":"logs-summary-total",children:n}),e[3]=n,e[4]=o):o=e[4];let c;e[5]!==s?(c=s("By level"),e[5]=s,e[6]=c):c=e[6];let p;e[7]!==c?(p=(0,r.jsx)("h4",{className:"mb-1 font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:c}),e[7]=c,e[8]=p):p=e[8];let m;e[9]!==t.byLevel?(m=t.byLevel.map(Je),e[9]=t.byLevel,e[10]=m):m=e[10];let d;e[11]!==m?(d=(0,r.jsx)("div",{className:"overflow-hidden rounded-lg border border-border","data-testid":"logs-summary-levels",role:"grid",children:m}),e[11]=m,e[12]=d):d=e[12];let a;e[13]!==p||e[14]!==d?(a=(0,r.jsxs)("div",{children:[p,d]}),e[13]=p,e[14]=d,e[15]=a):a=e[15];let h;e[16]!==s?(h=s("By function"),e[16]=s,e[17]=h):h=e[17];let l;e[18]!==h?(l=(0,r.jsx)("h4",{className:"mb-1 font-mono text-[11px] tracking-wide text-muted-foreground uppercase",children:h}),e[18]=h,e[19]=l):l=e[19];let g;e[20]!==t.byPath?(g=t.byPath.map(Xe),e[20]=t.byPath,e[21]=g):g=e[21];let u;e[22]!==g?(u=(0,r.jsx)("div",{className:"overflow-hidden rounded-lg border border-border","data-testid":"logs-summary-paths",role:"grid",children:g}),e[22]=g,e[23]=u):u=e[23];let x;e[24]!==u||e[25]!==l?(x=(0,r.jsxs)("div",{children:[l,u]}),e[24]=u,e[25]=l,e[26]=x):x=e[26];let f;return e[27]!==x||e[28]!==o||e[29]!==a?(f=(0,r.jsxs)("div",{className:"flex flex-col gap-4 rounded-xl border border-border bg-card p-4 shadow-xs","data-testid":"logs-summary",children:[o,a,x]}),e[27]=x,e[28]=o,e[29]=a,e[30]=f):f=e[30],f},"Je");function Je(i){return(0,r.jsx)(Oe,{bucket:i},i.key)}v(Je,"Xe");function Xe(i){return(0,r.jsx)(Oe,{bucket:i},i.key)}v(Xe,"Ze");var Ze=v(i=>{let e=(0,K.c)(46),{liveError:t,onShardKeyChange:s,onShowArchive:n,onShowErrors:o,onShowRequests:c,shardKey:p,view:m}=i,d=z(),a=m==="requests",h=m==="requests"?"bg-muted font-medium":"text-muted-foreground",l;e[0]!==h?(l=W("px-3 py-1 text-sm",h),e[0]=h,e[1]=l):l=e[1];let g;e[2]!==d?(g=d("Requests"),e[2]=d,e[3]=g):g=e[3];let u;e[4]!==c||e[5]!==a||e[6]!==l||e[7]!==g?(u=(0,r.jsx)("button",{"aria-selected":a,className:l,"data-testid":"lg-view-requests",onClick:c,role:"tab",type:"button",children:g}),e[4]=c,e[5]=a,e[6]=l,e[7]=g,e[8]=u):u=e[8];let x=m==="errors",f=m==="errors"?"bg-muted font-medium":"text-muted-foreground",C;e[9]!==f?(C=W("px-3 py-1 text-sm",f),e[9]=f,e[10]=C):C=e[10];let y;e[11]!==d?(y=d("Errors"),e[11]=d,e[12]=y):y=e[12];let w;e[13]!==o||e[14]!==x||e[15]!==C||e[16]!==y?(w=(0,r.jsx)("button",{"aria-selected":x,className:C,"data-testid":"lg-view-errors",onClick:o,role:"tab",type:"button",children:y}),e[13]=o,e[14]=x,e[15]=C,e[16]=y,e[17]=w):w=e[17];let k=m==="archive",L=m==="archive"?"bg-muted font-medium":"text-muted-foreground",S;e[18]!==L?(S=W("px-3 py-1 text-sm",L),e[18]=L,e[19]=S):S=e[19];let T;e[20]!==d?(T=d("Archive"),e[20]=d,e[21]=T):T=e[21];let R;e[22]!==n||e[23]!==k||e[24]!==S||e[25]!==T?(R=(0,r.jsx)("button",{"aria-selected":k,className:S,"data-testid":"lg-view-archive",onClick:n,role:"tab",type:"button",children:T}),e[22]=n,e[23]=k,e[24]=S,e[25]=T,e[26]=R):R=e[26];let P;e[27]!==w||e[28]!==R||e[29]!==u?(P=(0,r.jsxs)("div",{className:"inline-flex overflow-hidden rounded-lg border border-border",role:"tablist",children:[u,w,R]}),e[27]=w,e[28]=R,e[29]=u,e[30]=P):P=e[30];let b;e[31]!==s||e[32]!==p?(b=(0,r.jsx)(ve,{onChange:s,testId:"lg-shard-input",value:p}),e[31]=s,e[32]=p,e[33]=b):b=e[33];let N;e[34]!==t||e[35]!==m?(N=m!=="archive"&&(0,r.jsx)(Ce,{message:t,prefix:"lg"}),e[34]=t,e[35]=m,e[36]=N):N=e[36];let F;e[37]!==d?(F=d("Open in Cloudflare"),e[37]=d,e[38]=F):F=e[38];let E;e[39]!==F?(E=(0,r.jsx)("a",{className:"text-sm text-primary underline-offset-4 hover:underline","data-testid":"lg-cf-link",href:de,rel:"noreferrer",target:"_blank",children:F}),e[39]=F,e[40]=E):E=e[40];let O;return e[41]!==P||e[42]!==b||e[43]!==N||e[44]!==E?(O=(0,r.jsxs)("div",{className:"flex flex-wrap items-center gap-2",children:[P,b,N,E]}),e[41]=P,e[42]=b,e[43]=N,e[44]=E,e[45]=O):O=e[45],O},"et"),ce=400,et=36,tt={height:ce,overflow:"auto"},Ke={left:0,position:"absolute",top:0,width:"100%"},rt={error:"destructive",ok:"secondary"},Me=v(i=>{let e=(0,K.c)(6),{onOpenTrace:t,traceId:s}=i,n=z(),o;e[0]!==t||e[1]!==n||e[2]!==s?(o=s===void 0?null:(0,r.jsx)("button",{className:"text-primary underline-offset-2 hover:underline","data-testid":"lg-trace-link",onClick:v(()=>{t(s)},"onClick"),type:"button",children:n("Trace")}),e[0]=t,e[1]=n,e[2]=s,e[3]=o):o=e[3];let c;return e[4]!==o?(c=(0,r.jsx)("span",{className:"w-16 shrink-0 text-right",role:"gridcell",children:o}),e[4]=o,e[5]=c):c=e[5],c},"be"),at=v(i=>{let e=(0,K.c)(13),{entry:t,index:s,measureRef:n,onOpenTrace:o,start:c}=i,p=`translateY(${String(c)}px)`,m;e[0]!==p?(m={...Ke,transform:p},e[0]=p,e[1]=m):m=e[1];let d=m,a;e[2]!==t?(a=(0,r.jsx)(qe,{entry:t}),e[2]=t,e[3]=a):a=e[3];let h;e[4]!==t.traceId||e[5]!==o?(h=(0,r.jsx)(Me,{onOpenTrace:o,traceId:t.traceId}),e[4]=t.traceId,e[5]=o,e[6]=h):h=e[6];let l;return e[7]!==s||e[8]!==n||e[9]!==d||e[10]!==a||e[11]!==h?(l=(0,r.jsxs)("div",{className:"flex items-center border-b border-border px-3 py-1.5 font-mono text-xs hover:bg-muted/50","data-index":s,"data-testid":"lg-row",ref:n,role:"row",style:d,children:[a,h]}),e[7]=s,e[8]=n,e[9]=d,e[10]=a,e[11]=h,e[12]=l):l=e[12],l},"lt"),Fe=v(i=>i.length===0?"\u2014":i.join(", "),"ce"),lt=v(i=>{let e=(0,K.c)(41),{entry:t,index:s,measureRef:n,onOpenTrace:o,start:c}=i,p=`translateY(${String(c)}px)`,m;e[0]!==p?(m={...Ke,transform:p},e[0]=p,e[1]=m):m=e[1];let d=m,a;e[2]!==t.ts?(a=new Date(t.ts).toLocaleString(),e[2]=t.ts,e[3]=a):a=e[3];let h;e[4]!==a?(h=(0,r.jsx)("span",{className:"w-40 shrink-0 tabular-nums text-muted-foreground",role:"gridcell",children:a}),e[4]=a,e[5]=h):h=e[5];let l=rt[t.outcome],g;e[6]!==t.outcome||e[7]!==l?(g=(0,r.jsx)("span",{className:"w-16 shrink-0",role:"gridcell",children:(0,r.jsx)(ne,{variant:l,children:t.outcome})}),e[6]=t.outcome,e[7]=l,e[8]=g):g=e[8];let u;e[9]!==t.functionPath?(u=(0,r.jsx)("span",{className:"w-44 shrink-0 truncate",role:"gridcell",title:t.functionPath,children:t.functionPath}),e[9]=t.functionPath,e[10]=u):u=e[10];let x=t.shardKey??"\u2014",f;e[11]!==x?(f=(0,r.jsx)("span",{className:"w-24 shrink-0 truncate text-muted-foreground",role:"gridcell",children:x}),e[11]=x,e[12]=f):f=e[12];let C=t.userId??"\u2014",y;e[13]!==C?(y=(0,r.jsx)("span",{className:"w-24 shrink-0 truncate text-muted-foreground",role:"gridcell",children:C}),e[13]=C,e[14]=y):y=e[14];let w;e[15]!==t.durationMs?(w=Math.round(t.durationMs),e[15]=t.durationMs,e[16]=w):w=e[16];let k=`${String(w)}ms`,L;e[17]!==k?(L=(0,r.jsx)("span",{className:"w-16 shrink-0 tabular-nums text-muted-foreground",role:"gridcell",children:k}),e[17]=k,e[18]=L):L=e[18];let S;e[19]!==t.errorMessage||e[20]!==t.outcome||e[21]!==t.tablesRead||e[22]!==t.tablesWritten?(S=t.outcome==="error"&&t.errorMessage!==void 0?t.errorMessage:`r:${Fe(t.tablesRead)} \xB7 w:${Fe(t.tablesWritten)}`,e[19]=t.errorMessage,e[20]=t.outcome,e[21]=t.tablesRead,e[22]=t.tablesWritten,e[23]=S):S=e[23];let T;e[24]!==S?(T=(0,r.jsx)("span",{className:"flex-1 truncate text-muted-foreground",role:"gridcell",children:S}),e[24]=S,e[25]=T):T=e[25];let R;e[26]!==t.traceId||e[27]!==o?(R=(0,r.jsx)(Me,{onOpenTrace:o,traceId:t.traceId}),e[26]=t.traceId,e[27]=o,e[28]=R):R=e[28];let P;return e[29]!==s||e[30]!==n||e[31]!==d||e[32]!==y||e[33]!==L||e[34]!==T||e[35]!==R||e[36]!==h||e[37]!==g||e[38]!==u||e[39]!==f?(P=(0,r.jsxs)("div",{className:"flex items-center border-b border-border px-3 py-1.5 font-mono text-xs hover:bg-muted/50","data-index":s,"data-testid":"lg-req-row",ref:n,role:"row",style:d,children:[h,g,u,f,y,L,T,R]}),e[29]=s,e[30]=n,e[31]=d,e[32]=y,e[33]=L,e[34]=T,e[35]=R,e[36]=h,e[37]=g,e[38]=u,e[39]=f,e[40]=P):P=e[40],P},"ot"),Ee=v(i=>{let{entries:e}=i??{};return Array.isArray(e)?e:[]},"de"),ot=v(i=>{let e={};return i.functionPathPrefix.trim()!==""&&(e.functionPathPrefix=i.functionPathPrefix.trim()),i.userId.trim()!==""&&(e.userId=i.userId.trim()),i.tableTouched.trim()!==""&&(e.tableTouched=i.tableTouched.trim()),(i.outcome==="ok"||i.outcome==="error")&&(e.outcome=i.outcome),e},"nt"),nt={"5m":300*1e3,"15m":900*1e3,"1h":3600*1e3},st=v((i,e)=>{let t=e.search.trim().toLowerCase(),s=e.path.trim().toLowerCase(),n=e.range==="all"?Number.NEGATIVE_INFINITY:e.now-nt[e.range];return i.filter(o=>e.levels.size>0&&!e.levels.has(o.level)||o.timestamp<n||s!==""&&!(o.functionPath??"").toLowerCase().includes(s)?!1:t===""||o.message.toLowerCase().includes(t)||Te(o.fields).toLowerCase().includes(t))},"it"),it="\u2014",dt=v(i=>{let e=new Map,t=new Map;for(let o of i){e.set(o.level,(e.get(o.level)??0)+1);let c=o.functionPath??it;t.set(c,(t.get(c)??0)+1)}let s=ue.filter(o=>e.has(o)).map(o=>({count:e.get(o)??0,key:o})),n=[...t.entries()].map(([o,c])=>({count:c,key:o})).toSorted((o,c)=>c.count===o.count?o.key.localeCompare(c.key):c.count-o.count);return{byLevel:s,byPath:n,total:i.length}},"dt"),Et=v(({initialShardKey:i})=>{let e=z(),[t,s]=(0,q.useState)("requests"),{queryShardKey:n,setShardKey:o,shardKey:c}=be(i),[p,m]=(0,q.useState)(""),[d,a]=(0,q.useState)(()=>new Set),[h,l]=(0,q.useState)(""),[g,u]=(0,q.useState)("all"),[x,f]=(0,q.useState)(!1),[C,y]=(0,q.useState)(""),[w,k]=(0,q.useState)(""),[L,S]=(0,q.useState)(""),[T,R]=(0,q.useState)("all"),P=ot({functionPathPrefix:C,outcome:T,tableTouched:L,userId:w}),b=le(oe.getRequestLog,P,{enabled:t==="requests",live:!0,shardKey:n}),N=le(oe.getLogs,{},{enabled:t==="errors",live:!0,shardKey:n}),F=t==="requests"?b:N,{error:E,errorSource:O,isLoading:M,liveError:V}=F,_=Se(n),U=Ee(N.data),A=Ee(b.data);(0,q.useEffect)(()=>{F.data!==void 0&&fe(n)},[F.data,n]);let $=st(U,{levels:d,now:Date.now(),path:h,range:g,search:p}),Q=dt($),X=t==="requests"?A.length:$.length,Z=t==="errors"&&x,Y=(0,q.useMemo)(()=>E!==null?"error":X===0?M?Z?"summary":"list":"empty":Z?"summary":"list",[X,M,E,Z]),me=(0,q.useRef)(null),G=ke({count:X,estimateSize:v(()=>et,"estimateSize"),getItemKey:v(I=>t==="errors"?$[I]?.id??I:I,"getItemKey"),getScrollElement:v(()=>me.current,"getScrollElement"),initialRect:{height:ce,width:800},observeElementRect:v((I,ee)=>Le(I,ee,ce),"observeElementRect"),overscan:8}),_e=G.getVirtualItems(),Ae={height:G.getTotalSize(),position:"relative",width:"100%"};return(0,r.jsxs)("div",{className:"flex flex-col gap-4","data-testid":"lunora-logs",children:[(0,r.jsx)(Ze,{liveError:V,onShardKeyChange:o,onShowArchive:v(()=>{s("archive"),f(!1)},"onShowArchive"),onShowErrors:v(()=>{s("errors"),f(!1)},"onShowErrors"),onShowRequests:v(()=>{s("requests"),f(!1)},"onShowRequests"),shardKey:c,view:t}),t==="errors"&&(0,r.jsx)(Ye,{levelFilter:d,onLogPathChange:v(I=>{l(I.target.value)},"onLogPathChange"),onSearchChange:v(I=>{m(I.target.value)},"onSearchChange"),onTimeRangeChange:v(I=>{u(I.target.value)},"onTimeRangeChange"),onToggleLevel:v(I=>{a(ee=>{let H=new Set(ee);return H.has(I)?H.delete(I):H.add(I),H})},"onToggleLevel"),onToggleSummary:v(()=>{f(I=>!I)},"onToggleSummary"),pathFilter:h,search:p,showSummary:x,timeRange:g}),t==="requests"&&(0,r.jsx)(Ge,{onOutcomeChange:v(I=>{R(I.target.value)},"onOutcomeChange"),onPathChange:v(I=>{y(I.target.value)},"onPathChange"),onTableChange:v(I=>{S(I.target.value)},"onTableChange"),onUserChange:v(I=>{k(I.target.value)},"onUserChange"),outcomeFilter:T,pathPrefix:C,tableFilter:L,userIdFilter:w}),t==="archive"?(0,r.jsx)(Ve,{shardKey:n}):(0,r.jsxs)(r.Fragment,{children:[Y==="error"&&(0,r.jsx)(xe,{error:O,shardKey:n,testId:"lg-error"}),Y==="empty"&&(0,r.jsx)(J,{description:e("Function and request logs for this shard show up here as your app handles traffic."),icon:(0,r.jsx)("svg",{"aria-hidden":"true",fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.6,viewBox:"0 0 24 24",children:(0,r.jsx)("path",{d:"M4 5h16M4 12h16M4 19h10"})}),testId:"lg-empty",title:e("No logs.")}),Y==="summary"&&(0,r.jsx)(He,{summary:Q}),Y==="list"&&(0,r.jsx)("div",{className:"rounded-xl border border-border shadow-xs","data-testid":"lg-scroll",ref:me,style:tt,children:(0,r.jsx)("div",{"aria-label":e("Recent logs"),"data-testid":"lg-table",role:"grid",style:Ae,children:_e.map(I=>t==="requests"?(0,r.jsx)(lt,{entry:A[I.index],index:I.index,measureRef:G.measureElement,onOpenTrace:_,start:I.start},I.key):(0,r.jsx)(at,{entry:$[I.index],index:I.index,measureRef:G.measureElement,onOpenTrace:_,start:I.start},I.key))})})]})]})},"jt");export{Et as LogsPanel,st as filterLogs,dt as summarizeLogs};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as k,b as y}from"./chunk-LJLNIVUA.js";import{b as N}from"./chunk-
|
|
1
|
+
import{a as k,b as y}from"./chunk-LJLNIVUA.js";import{b as N}from"./chunk-UB6S6VYI.js";import{B as b,w}from"./chunk-G4H5DPO6.js";import{a as _}from"./chunk-A6TVTNKO.js";import{a as S,b as E}from"./chunk-ADABTCDI.js";import{a as h,d as x}from"./chunk-5PEAXTYQ.js";var v=x(_(),1);var j=x(S(),1);var l=x(E(),1);var F={debug:"secondary",error:"destructive",fatal:"destructive",info:"outline",log:"outline",trace:"outline",warn:"secondary"},L=h(f=>{let e=(0,v.c)(19),{errors:t}=f,i=b(),[r,u]=(0,j.useState)(!1),s,m;if(e[0]!==t||e[1]!==r||e[2]!==i){let g=t.map(B).join(", ");s=r,m=i(r?"Hide the stack and cause of {field}":"Show the stack and cause of {field}",{field:g}),e[0]=t,e[1]=r,e[2]=i,e[3]=s,e[4]=m}else s=e[3],m=e[4];let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=h(()=>{u(C)},"i"),e[5]=c):c=e[5];let p=r?"\u25BE":"\u25B8",a;e[6]!==i?(a=i("Error details"),e[6]=i,e[7]=a):a=e[7];let n;e[8]!==s||e[9]!==m||e[10]!==p||e[11]!==a?(n=(0,l.jsxs)("button",{"aria-expanded":s,"aria-label":m,className:"shrink-0 pl-2 text-[11px] text-destructive underline-offset-2 hover:underline","data-testid":"lg-error-toggle",onClick:c,type:"button",children:[p," ",a]}),e[8]=s,e[9]=m,e[10]=p,e[11]=a,e[12]=n):n=e[12];let o;e[13]!==t||e[14]!==r?(o=r?(0,l.jsx)("pre",{className:"order-last mt-1 basis-full overflow-x-auto whitespace-pre rounded-md bg-muted/50 p-2 font-mono text-[11px] leading-snug text-muted-foreground","data-testid":"lg-error-detail",children:k(t)}):null,e[13]=t,e[14]=r,e[15]=o):o=e[15];let d;return e[16]!==n||e[17]!==o?(d=(0,l.jsxs)(l.Fragment,{children:[n,o]}),e[16]=n,e[17]=o,e[18]=d):d=e[18],d},"_");function B(f){let[e]=f;return e}h(B,"j");function C(f){return!f}h(C,"F");var q=h(f=>{let e=(0,v.c)(24),{entry:t}=f,i;e[0]!==t.fields?(i=y(t.fields),e[0]=t.fields,e[1]=i):i=e[1];let r=i,u;e[2]!==t.timestamp?(u=w(t.timestamp),e[2]=t.timestamp,e[3]=u):u=e[3];let s;e[4]!==u?(s=(0,l.jsx)("span",{className:"w-44 shrink-0 tabular-nums text-muted-foreground",role:"gridcell",children:u}),e[4]=u,e[5]=s):s=e[5];let m=F[t.level],c;e[6]!==t.level||e[7]!==m?(c=(0,l.jsx)("span",{className:"w-20 shrink-0",role:"gridcell",children:(0,l.jsx)(N,{variant:m,children:t.level})}),e[6]=t.level,e[7]=m,e[8]=c):c=e[8];let p=t.functionPath??"\u2014",a;e[9]!==p?(a=(0,l.jsx)("span",{className:"w-48 shrink-0 truncate text-muted-foreground",role:"gridcell",children:p}),e[9]=p,e[10]=a):a=e[10];let n;e[11]!==r.text?(n=r.text===""?null:(0,l.jsx)("span",{className:"ml-2 text-muted-foreground","data-testid":"lg-fields",children:r.text}),e[11]=r.text,e[12]=n):n=e[12];let o;e[13]!==t.message||e[14]!==n?(o=(0,l.jsxs)("span",{className:"min-w-0 flex-1 truncate",role:"gridcell",children:[t.message,n]}),e[13]=t.message,e[14]=n,e[15]=o):o=e[15];let d;e[16]!==r.errors?(d=r.errors.length===0?null:(0,l.jsx)("span",{className:"contents",role:"gridcell",children:(0,l.jsx)(L,{errors:r.errors})}),e[16]=r.errors,e[17]=d):d=e[17];let g;return e[18]!==d||e[19]!==s||e[20]!==c||e[21]!==a||e[22]!==o?(g=(0,l.jsxs)("div",{className:"flex min-w-0 flex-1 flex-wrap items-center",role:"none",children:[s,c,a,o,d]}),e[18]=d,e[19]=s,e[20]=c,e[21]=a,e[22]=o,e[23]=g):g=e[23],g},"D");export{F as a,L as b,q as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as h,n as v}from"./chunk-
|
|
1
|
+
import{m as h,n as v}from"./chunk-VEG327ST.js";import{x as g}from"./chunk-G4H5DPO6.js";import{a as x}from"./chunk-A6TVTNKO.js";import{b as y}from"./chunk-ADABTCDI.js";import{a as u,d as p}from"./chunk-5PEAXTYQ.js";var b=p(x(),1);var n=p(y(),1);var w={value:{colors:{dark:["var(--foreground)"],light:["var(--foreground)"]},label:""}},j=u(i=>{let a=(0,b.c)(12),{ariaLabel:c,className:m,series:l,testId:d}=i;if(l.length<2)return null;let t;a[0]!==l?(t=l.slice(-40).map(N),a[0]=l,a[1]=t):t=a[1];let f=t,e;a[2]!==m?(e=g("h-6 w-[120px]",m),a[2]=m,a[3]=e):e=a[3];let o;a[4]===Symbol.for("react.memo_cache_sentinel")?(o=(0,n.jsx)(v,{dataKey:"value"}),a[4]=o):o=a[4];let r;a[5]!==f?(r=(0,n.jsx)(h,{animationType:"none",barCategoryGap:1,className:"h-full w-full",config:w,data:f,children:o}),a[5]=f,a[6]=r):r=a[6];let s;return a[7]!==c||a[8]!==e||a[9]!==r||a[10]!==d?(s=(0,n.jsx)("div",{"aria-label":c,className:e,"data-testid":d,role:"img",children:r}),a[7]=c,a[8]=e,a[9]=r,a[10]=d,a[11]=s):s=a[11],s},"w");function N(i,a){return{index:a,value:i}}u(N,"b");export{j as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{x as s}from"./chunk-
|
|
1
|
+
import{x as s}from"./chunk-G4H5DPO6.js";import{a as c}from"./chunk-A6TVTNKO.js";import{b}from"./chunk-ADABTCDI.js";import{a as d,d as o}from"./chunk-5PEAXTYQ.js";var l=o(c(),1);var u=o(b(),1);function p(n){let i=(0,l.c)(8),r,e;i[0]!==n?({className:r,...e}=n,i[0]=n,i[1]=r,i[2]=e):(r=i[1],e=i[2]);let t;i[3]!==r?(t=s("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-xs transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-1 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-1 aria-invalid:ring-destructive/20 md:text-xs dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",r),i[3]=r,i[4]=t):t=i[4];let a;return i[5]!==e||i[6]!==t?(a=(0,u.jsx)("textarea",{"data-slot":"textarea",className:t,...e}),i[5]=e,i[6]=t,i[7]=a):a=i[7],a}d(p,"b");export{p as a};
|