plum-e2e 2.12.1 → 2.12.3
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/README.md +1 -1
- package/bin/plum.js +6 -4
- package/frontend/.svelte-kit/adapter-node/chunks/internal.js +1 -1
- package/frontend/.svelte-kit/adapter-node/manifest-full.js +1 -1
- package/frontend/.svelte-kit/adapter-node/manifest.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/0.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/1.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/11.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/12.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/3.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/4.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/6.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/8.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/9.js +1 -1
- package/frontend/.svelte-kit/generated/server/internal.js +1 -1
- package/frontend/.svelte-kit/output/client/.vite/manifest.json +38 -38
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{BX-5iVGy.js → BqJQeI8K.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{QwDXcLXz.js → CUWTHbZi.js} +1 -1
- package/frontend/{build/client/_app/immutable/entry/app.oEEXlUWx.js → .svelte-kit/output/client/_app/immutable/entry/app.CfdgGRnJ.js} +2 -2
- package/frontend/{build/client/_app/immutable/entry/start.BtJ124rC.js → .svelte-kit/output/client/_app/immutable/entry/start.CDN4Yr-S.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{0.coxCxRRE.js → 0.Owx2-FyO.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{1.C-Zryp-y.js → 1.ClH1FMY8.js} +1 -1
- package/frontend/{build/client/_app/immutable/nodes/11.PLIMGzrY.js → .svelte-kit/output/client/_app/immutable/nodes/11.Dv1VqvOV.js} +1 -1
- package/frontend/{build/client/_app/immutable/nodes/12.BGCTaTPG.js → .svelte-kit/output/client/_app/immutable/nodes/12.BfLHpcG7.js} +1 -1
- package/frontend/{build/client/_app/immutable/nodes/3.HmZmGlze.js → .svelte-kit/output/client/_app/immutable/nodes/3.ConeF9qP.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{4.ahxFrDUH.js → 4.BhAoYx0d.js} +1 -1
- package/frontend/{build/client/_app/immutable/nodes/6.DYiAtU_m.js → .svelte-kit/output/client/_app/immutable/nodes/6.CDEJGi13.js} +1 -1
- package/frontend/{build/client/_app/immutable/nodes/8.iy5VcxjU.js → .svelte-kit/output/client/_app/immutable/nodes/8.DL5gzc5s.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{9.Bcqk4p04.js → 9.Bv15cDh1.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/version.json +1 -1
- package/frontend/.svelte-kit/output/server/chunks/internal.js +1 -1
- package/frontend/.svelte-kit/output/server/manifest-full.js +1 -1
- package/frontend/.svelte-kit/output/server/manifest.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/0.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/1.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/11.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/12.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/3.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/4.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/6.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/8.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/9.js +1 -1
- package/frontend/build/client/_app/immutable/chunks/{BX-5iVGy.js → BqJQeI8K.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/BqJQeI8K.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BqJQeI8K.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{QwDXcLXz.js → CUWTHbZi.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/CUWTHbZi.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CUWTHbZi.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/entry/app.oEEXlUWx.js → build/client/_app/immutable/entry/app.CfdgGRnJ.js} +2 -2
- package/frontend/build/client/_app/immutable/entry/app.CfdgGRnJ.js.br +0 -0
- package/frontend/build/client/_app/immutable/entry/app.CfdgGRnJ.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/entry/start.BtJ124rC.js → build/client/_app/immutable/entry/start.CDN4Yr-S.js} +1 -1
- package/frontend/build/client/_app/immutable/entry/{start.BtJ124rC.js.br → start.CDN4Yr-S.js.br} +0 -0
- package/frontend/build/client/_app/immutable/entry/{start.BtJ124rC.js.gz → start.CDN4Yr-S.js.gz} +0 -0
- package/frontend/build/client/_app/immutable/nodes/{0.coxCxRRE.js → 0.Owx2-FyO.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/0.Owx2-FyO.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/0.Owx2-FyO.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/{1.C-Zryp-y.js → 1.ClH1FMY8.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/1.ClH1FMY8.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/1.ClH1FMY8.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/nodes/11.PLIMGzrY.js → build/client/_app/immutable/nodes/11.Dv1VqvOV.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/11.Dv1VqvOV.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/11.Dv1VqvOV.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/nodes/12.BGCTaTPG.js → build/client/_app/immutable/nodes/12.BfLHpcG7.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/12.BfLHpcG7.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/12.BfLHpcG7.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/nodes/3.HmZmGlze.js → build/client/_app/immutable/nodes/3.ConeF9qP.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/3.ConeF9qP.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/3.ConeF9qP.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/{4.ahxFrDUH.js → 4.BhAoYx0d.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/4.BhAoYx0d.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/4.BhAoYx0d.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/nodes/6.DYiAtU_m.js → build/client/_app/immutable/nodes/6.CDEJGi13.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/6.CDEJGi13.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/{6.DYiAtU_m.js.gz → 6.CDEJGi13.js.gz} +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/nodes/8.iy5VcxjU.js → build/client/_app/immutable/nodes/8.DL5gzc5s.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/8.DL5gzc5s.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/8.DL5gzc5s.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/{9.Bcqk4p04.js → 9.Bv15cDh1.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/9.Bv15cDh1.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/9.Bv15cDh1.js.gz +0 -0
- package/frontend/build/client/_app/version.json +1 -1
- package/frontend/build/client/_app/version.json.br +0 -0
- package/frontend/build/client/_app/version.json.gz +0 -0
- package/frontend/build/server/chunks/{0-C9vi7MPa.js → 0-EDIcywdR.js} +2 -2
- package/frontend/build/server/chunks/{0-C9vi7MPa.js.map → 0-EDIcywdR.js.map} +1 -1
- package/frontend/build/server/chunks/{1-DzLSP_fj.js → 1-DUXDWP4s.js} +2 -2
- package/frontend/build/server/chunks/{1-DzLSP_fj.js.map → 1-DUXDWP4s.js.map} +1 -1
- package/frontend/build/server/chunks/{11-TJq4Q43D.js → 11-C9Dv5Ypy.js} +2 -2
- package/frontend/build/server/chunks/{11-TJq4Q43D.js.map → 11-C9Dv5Ypy.js.map} +1 -1
- package/frontend/build/server/chunks/{12-B1JDiNwh.js → 12-aJDC1MAo.js} +2 -2
- package/frontend/build/server/chunks/{12-B1JDiNwh.js.map → 12-aJDC1MAo.js.map} +1 -1
- package/frontend/build/server/chunks/{3-DZ2GSPqb.js → 3-cuk7ocXX.js} +2 -2
- package/frontend/build/server/chunks/{3-DZ2GSPqb.js.map → 3-cuk7ocXX.js.map} +1 -1
- package/frontend/build/server/chunks/{4-C-1FSKpN.js → 4-D6Mu8Mm3.js} +2 -2
- package/frontend/build/server/chunks/{4-C-1FSKpN.js.map → 4-D6Mu8Mm3.js.map} +1 -1
- package/frontend/build/server/chunks/{6-CInDe8Ui.js → 6-nLl6wUex.js} +2 -2
- package/frontend/build/server/chunks/{6-CInDe8Ui.js.map → 6-nLl6wUex.js.map} +1 -1
- package/frontend/build/server/chunks/{8-DTzm-G0z.js → 8-BvQ3XjdA.js} +2 -2
- package/frontend/build/server/chunks/{8-DTzm-G0z.js.map → 8-BvQ3XjdA.js.map} +1 -1
- package/frontend/build/server/chunks/{9-CjMorbDi.js → 9-BVKP6RbZ.js} +2 -2
- package/frontend/build/server/chunks/{9-CjMorbDi.js.map → 9-BVKP6RbZ.js.map} +1 -1
- package/frontend/build/server/index.js +1 -1
- package/frontend/build/server/index.js.map +1 -1
- package/frontend/build/server/manifest.js +10 -10
- package/frontend/build/server/manifest.js.map +1 -1
- package/package.json +4 -1
- package/frontend/build/client/_app/immutable/chunks/BX-5iVGy.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BX-5iVGy.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/QwDXcLXz.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/QwDXcLXz.js.gz +0 -0
- package/frontend/build/client/_app/immutable/entry/app.oEEXlUWx.js.br +0 -0
- package/frontend/build/client/_app/immutable/entry/app.oEEXlUWx.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/0.coxCxRRE.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/0.coxCxRRE.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/1.C-Zryp-y.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/1.C-Zryp-y.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/11.PLIMGzrY.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/11.PLIMGzrY.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/12.BGCTaTPG.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/12.BGCTaTPG.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/3.HmZmGlze.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/3.HmZmGlze.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/4.ahxFrDUH.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/4.ahxFrDUH.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/6.DYiAtU_m.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/8.iy5VcxjU.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/8.iy5VcxjU.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/9.Bcqk4p04.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/9.Bcqk4p04.js.gz +0 -0
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import{s as K,a as w,e as U,t as R,b as an,c as Ie}from"../chunks/6VDMVB5U.js";import{i as ct}from"../chunks/CtgCYzu5.js";import{e as nt,u as cn,p as lt,o as Yt,s as E,d as v,j as h,f as ee,g as i,k as p,t as M,x as re,c as ht,m as I,ao as ln,l as _e,b as hn,n as He}from"../chunks/BIf7lHIm.js";import{i as P,s as ut,a as ge}from"../chunks/D_thT6pZ.js";import{e as Oe,t as L,i as je,a as Ce,b as Rs,c as Mt,f as Pe,s as un,h as dn}from"../chunks/BTV7EXZb.js";import{g as us}from"../chunks/BX-5iVGy.js";import{p as xs}from"../chunks/QwDXcLXz.js";import{s as J,y as Te,A as pn,G as fn,O as ds,B as Nt,Q as ps,U as fs,r as Ot,N as vn,k as _n,q as vs,I as gn,J as mn,z as yn}from"../chunks/C4Z3p6jE.js";import{a as As}from"../chunks/CXQhSK1T.js";import{b as bn,f as wn,a as kn}from"../chunks/kFFd6Oo5.js";import{b as ke,p as Be,e as Ut,c as Ke,m as _s,s as En,S as Ee,a as gs,g as Rn,h as xn,i as An,R as Sn,j as Tn,k as Bn,l as Cn,n as Ln,t as qt,T as Nn,W as On,B as Un,o as qn,q as $n,N as Pn,u as In,r as Dn,V as Mn,C as Vn,v as Fn,w as Wn,Q as Hn,x as ms,y as Kn,z as zn,M as Yn,d as jn,A as Gn,D as Jn,E as Xn,F as Qn,G as Zn,H as er}from"../chunks/htkwR9b-.js";import{j as tr,am as sr}from"../chunks/Dn1b1Jgc.js";import{a as nr,v as rr}from"../chunks/B74j8LrV.js";import{f as ir}from"../chunks/gCgJ3Cwu.js";import{t as or,a as ar}from"../chunks/B2lVGNml.js";import{C as cr}from"../chunks/BWGoOYU0.js";import{B as lr}from"../chunks/DeiVAbyn.js";import{c as hr}from"../chunks/CUPWZLIN.js";import{d as ur,a as dr}from"../chunks/BDb8hZHu.js";import{c as pr}from"../chunks/DDx3no2z.js";function $t(n,e,t){nt(()=>{var s=cn(()=>e(n,t==null?void 0:t())||{});if(s!=null&&s.destroy)return()=>s.destroy()})}const fr=!1,mo=Object.freeze(Object.defineProperty({__proto__:null,ssr:fr},Symbol.toStringTag,{value:"Module"}));var vr=R('<span class="nav-sep svelte-10t98u4" aria-hidden="true"></span>'),_r=R('<!> <a class="link svelte-10t98u4"> </a>',1),gr=R('<img alt="" class="project-logo svelte-10t98u4">'),mr=R('<div class="project-card svelte-10t98u4"><!> <span class="project-name svelte-10t98u4"> </span></div>'),yr=R('<span class="nav-user svelte-10t98u4"> </span>'),br=R('<hr class="mobile-sep svelte-10t98u4">'),wr=R('<!> <a class="mobile-link svelte-10t98u4"> </a>',1),kr=R('<div class="mobile-menu svelte-10t98u4"><!> <a href="/settings" class="mobile-link svelte-10t98u4">Settings</a></div>'),Er=R('<nav class="nav svelte-10t98u4"><div class="inner svelte-10t98u4"><a href="/" class="brand svelte-10t98u4"><span class="brand-serif svelte-10t98u4">Pl</span><span class="brand-sans svelte-10t98u4">um</span></a> <div class="links svelte-10t98u4"></div> <div class="actions svelte-10t98u4"><!> <!> <a href="/settings" class="settings-btn svelte-10t98u4" aria-label="Settings" title="Settings"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg></a> <button class="hamburger svelte-10t98u4"><span class="svelte-10t98u4"></span> <span class="svelte-10t98u4"></span> <span class="svelte-10t98u4"></span></button></div></div> <!></nav>');function Rr(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(xs,"$page",t),o=()=>ge(As,"$auth",t);let l=I(!1),_=I({name:"",logoUrl:""});Yt(async()=>{try{E(_,await bn())}catch{}});const m=[{href:"/",label:"Automated Tests"},{href:"/reports",label:"Reports"},{href:"/scheduled-tests",label:"Scheduled"},{href:"/test-repository",label:"Test Repository",sep:!0}];function B(){E(l,!1)}ct();var A=Er(),N=v(A),q=v(N),V=h(q,2);Oe(V,5,()=>m,je,(D,O)=>{var j=_r(),G=ee(j);{var ue=X=>{var ne=vr();w(X,ne)};P(G,X=>{i(O).sep&&X(ue)})}var z=h(G,2),ie=v(z,!0);p(z),M(X=>{J(z,"href",i(O).href),L(z,"repo",i(O).sep),L(z,"active",X),K(ie,i(O).label)},[()=>i(O).href==="/"?r().url.pathname==="/":r().url.pathname.startsWith(i(O).href)],re),w(D,j)}),p(V);var ae=h(V,2),be=v(ae);{var Re=D=>{var O=mr(),j=v(O);{var G=ie=>{var X=gr();M(()=>J(X,"src",i(_).logoUrl)),w(ie,X)};P(j,ie=>{i(_).logoUrl&&ie(G)})}var ue=h(j,2),z=v(ue,!0);p(ue),p(O),M(()=>K(z,i(_).name)),w(D,O)};P(be,D=>{i(_).name&&D(Re)})}var te=h(be,2);{var H=D=>{var O=yr(),j=v(O,!0);p(O),M(()=>K(j,o().user.name)),w(D,O)};P(te,D=>{o().user&&D(H)})}var Q=h(te,2),x=h(Q,2),se=v(x),Y=h(se,2),Z=h(Y,2);p(x),p(ae),p(N);var ce=h(N,2);{var he=D=>{var O=kr(),j=v(O);Oe(j,1,()=>m,je,(ue,z)=>{var ie=wr(),X=ee(ie);{var ne=xe=>{var ft=br();w(xe,ft)};P(X,xe=>{i(z).sep&&xe(ne)})}var Ne=h(X,2),Ge=v(Ne,!0);p(Ne),M(xe=>{J(Ne,"href",i(z).href),L(Ne,"active",xe),K(Ge,i(z).label)},[()=>i(z).href==="/"?r().url.pathname==="/":r().url.pathname.startsWith(i(z).href)],re),U("click",Ne,B),w(ue,ie)});var G=h(j,2);p(O),M(()=>L(G,"active",r().url.pathname==="/settings")),U("click",G,B),Ce(3,O,()=>Rs,()=>({duration:200})),w(D,O)};P(ce,D=>{i(l)&&D(he)})}p(A),M(()=>{L(Q,"active",r().url.pathname==="/settings"),J(x,"aria-label",i(l)?"Close menu":"Open menu"),J(x,"aria-expanded",i(l)),L(se,"rotated",i(l)),L(Y,"hidden",i(l)),L(Z,"rotated-reverse",i(l))}),U("click",q,B),U("click",x,()=>E(l,!i(l))),w(n,A),ht(),s()}var xr=R('<main class="shell svelte-28zx1m"><!></main>');function Ar(n,e){var t=xr(),s=v(t);Mt(s,e,"default",{},null),p(t),w(n,t)}const ye=Object.create(null);ye.open="0";ye.close="1";ye.ping="2";ye.pong="3";ye.message="4";ye.upgrade="5";ye.noop="6";const rt=Object.create(null);Object.keys(ye).forEach(n=>{rt[ye[n]]=n});const Vt={type:"error",data:"parser error"},Ss=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ts=typeof ArrayBuffer=="function",Bs=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,jt=({type:n,data:e},t,s)=>Ss&&e instanceof Blob?t?s(e):ys(e,s):Ts&&(e instanceof ArrayBuffer||Bs(e))?t?s(e):ys(new Blob([e]),s):s(ye[n]+(e||"")),ys=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function bs(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Pt;function Sr(n,e){if(Ss&&n.data instanceof Blob)return n.data.arrayBuffer().then(bs).then(e);if(Ts&&(n.data instanceof ArrayBuffer||Bs(n.data)))return e(bs(n.data));jt(n,!1,t=>{Pt||(Pt=new TextEncoder),e(Pt.encode(t))})}const ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ye=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<ws.length;n++)Ye[ws.charCodeAt(n)]=n;const Tr=n=>{let e=n.length*.75,t=n.length,s,r=0,o,l,_,m;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const B=new ArrayBuffer(e),A=new Uint8Array(B);for(s=0;s<t;s+=4)o=Ye[n.charCodeAt(s)],l=Ye[n.charCodeAt(s+1)],_=Ye[n.charCodeAt(s+2)],m=Ye[n.charCodeAt(s+3)],A[r++]=o<<2|l>>4,A[r++]=(l&15)<<4|_>>2,A[r++]=(_&3)<<6|m&63;return B},Br=typeof ArrayBuffer=="function",Gt=(n,e)=>{if(typeof n!="string")return{type:"message",data:Cs(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Cr(n.substring(1),e)}:rt[t]?n.length>1?{type:rt[t],data:n.substring(1)}:{type:rt[t]}:Vt},Cr=(n,e)=>{if(Br){const t=Tr(n);return Cs(t,e)}else return{base64:!0,data:n}},Cs=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Ls="",Lr=(n,e)=>{const t=n.length,s=new Array(t);let r=0;n.forEach((o,l)=>{jt(o,!1,_=>{s[l]=_,++r===t&&e(s.join(Ls))})})},Nr=(n,e)=>{const t=n.split(Ls),s=[];for(let r=0;r<t.length;r++){const o=Gt(t[r],e);if(s.push(o),o.type==="error")break}return s};function Or(){return new TransformStream({transform(n,e){Sr(n,t=>{const s=t.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const o=new DataView(r.buffer);o.setUint8(0,126),o.setUint16(1,s)}else{r=new Uint8Array(9);const o=new DataView(r.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let It;function tt(n){return n.reduce((e,t)=>e+t.length,0)}function st(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let r=0;r<e;r++)t[r]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),t}function Ur(n,e){It||(It=new TextDecoder);const t=[];let s=0,r=-1,o=!1;return new TransformStream({transform(l,_){for(t.push(l);;){if(s===0){if(tt(t)<1)break;const m=st(t,1);o=(m[0]&128)===128,r=m[0]&127,r<126?s=3:r===126?s=1:s=2}else if(s===1){if(tt(t)<2)break;const m=st(t,2);r=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(tt(t)<8)break;const m=st(t,8),B=new DataView(m.buffer,m.byteOffset,m.length),A=B.getUint32(0);if(A>Math.pow(2,21)-1){_.enqueue(Vt);break}r=A*Math.pow(2,32)+B.getUint32(4),s=3}else{if(tt(t)<r)break;const m=st(t,r);_.enqueue(Gt(o?m:It.decode(m),e)),s=0}if(r===0||r>n){_.enqueue(Vt);break}}}})}const Ns=4;function W(n){if(n)return qr(n)}function qr(n){for(var e in W.prototype)n[e]=W.prototype[e];return n}W.prototype.on=W.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};W.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};W.prototype.off=W.prototype.removeListener=W.prototype.removeAllListeners=W.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,r=0;r<t.length;r++)if(s=t[r],s===e||s.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+n],this};W.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,r=t.length;s<r;++s)t[s].apply(this,e)}return this};W.prototype.emitReserved=W.prototype.emit;W.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};W.prototype.hasListeners=function(n){return!!this.listeners(n).length};const dt=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),le=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),$r="arraybuffer";function Os(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Pr=le.setTimeout,Ir=le.clearTimeout;function pt(n,e){e.useNativeTimers?(n.setTimeoutFn=Pr.bind(le),n.clearTimeoutFn=Ir.bind(le)):(n.setTimeoutFn=le.setTimeout.bind(le),n.clearTimeoutFn=le.clearTimeout.bind(le))}const Dr=1.33;function Mr(n){return typeof n=="string"?Vr(n):Math.ceil((n.byteLength||n.size)*Dr)}function Vr(n){let e=0,t=0;for(let s=0,r=n.length;s<r;s++)e=n.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function Us(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Fr(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Wr(n){let e={},t=n.split("&");for(let s=0,r=t.length;s<r;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class Hr extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class Jt extends W{constructor(e){super(),this.writable=!1,pt(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new Hr(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Gt(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Fr(e);return t.length?"?"+t:""}}class Kr extends Jt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Nr(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Lr(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Us()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let qs=!1;try{qs=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const zr=qs;function Yr(){}class jr extends Kr{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(r,o)=>{this.onError("xhr post error",r,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class me extends W{constructor(e,t,s){super(),this.createRequest=e,pt(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=Os(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=me.requestsCount++,me.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Yr,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete me.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}me.requestsCount=0;me.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ks);else if(typeof addEventListener=="function"){const n="onpagehide"in le?"pagehide":"unload";addEventListener(n,ks,!1)}}function ks(){for(let n in me.requests)me.requests.hasOwnProperty(n)&&me.requests[n].abort()}const Gr=function(){const n=$s({xdomain:!1});return n&&n.responseType!==null}();class Jr extends jr{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Gr&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new me($s,this.uri(),e)}}function $s(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||zr))return new XMLHttpRequest}catch{}if(!e)try{return new le[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Ps=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Xr extends Jt{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=Ps?{}:Os(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;jt(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}r&&dt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Us()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Dt=le.WebSocket||le.MozWebSocket;class Qr extends Xr{createSocket(e,t,s){return Ps?new Dt(e,t,s):t?new Dt(e,t):new Dt(e)}doWrite(e,t){this.ws.send(t)}}class Zr extends Jt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=Ur(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=Or();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const o=()=>{s.read().then(({done:_,value:m})=>{_||(this.onPacket(m),o())}).catch(_=>{})};o();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;this._writer.write(s).then(()=>{r&&dt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const ei={websocket:Qr,webtransport:Zr,polling:Jr},ti=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,si=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ft(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let r=ti.exec(n||""),o={},l=14;for(;l--;)o[si[l]]=r[l]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ni(o,o.path),o.queryKey=ri(o,o.query),o}function ni(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function ri(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,o){r&&(t[r]=o)}),t}const Wt=typeof addEventListener=="function"&&typeof removeEventListener=="function",it=[];Wt&&addEventListener("offline",()=>{it.forEach(n=>n())},!1);class Le extends W{constructor(e,t){if(super(),this.binaryType=$r,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=Ft(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=Ft(t.host).host);pt(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Wr(this.opts.query)),Wt&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},it.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Ns,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Le.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",Le.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(t+=Mr(r)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,dt(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,r){if(typeof t=="function"&&(r=t,t=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(Le.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Wt&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=it.indexOf(this._offlineEventListener);s!==-1&&it.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Le.protocol=Ns;class ii extends Le{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;Le.priorWebsocketSuccess=!1;const r=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",N=>{if(!s)if(N.type==="pong"&&N.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Le.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(A(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const q=new Error("probe error");q.transport=t.name,this.emitReserved("upgradeError",q)}}))};function o(){s||(s=!0,A(),t.close(),t=null)}const l=N=>{const q=new Error("probe error: "+N);q.transport=t.name,o(),this.emitReserved("upgradeError",q)};function _(){l("transport closed")}function m(){l("socket closed")}function B(N){t&&N.name!==t.name&&o()}const A=()=>{t.removeListener("open",r),t.removeListener("error",l),t.removeListener("close",_),this.off("close",m),this.off("upgrading",B)};t.once("open",r),t.once("error",l),t.once("close",_),this.once("close",m),this.once("upgrading",B),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}let oi=class extends ii{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(r=>ei[r]).filter(r=>!!r)),super(e,s)}};function ai(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=Ft(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+e,s.href=s.protocol+"://"+o+(t&&t.port===s.port?"":":"+s.port),s}const ci=typeof ArrayBuffer=="function",li=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Is=Object.prototype.toString,hi=typeof Blob=="function"||typeof Blob<"u"&&Is.call(Blob)==="[object BlobConstructor]",ui=typeof File=="function"||typeof File<"u"&&Is.call(File)==="[object FileConstructor]";function Xt(n){return ci&&(n instanceof ArrayBuffer||li(n))||hi&&n instanceof Blob||ui&&n instanceof File}function ot(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t<s;t++)if(ot(n[t]))return!0;return!1}if(Xt(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ot(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&ot(n[t]))return!0;return!1}function di(n){const e=[],t=n.data,s=n;return s.data=Ht(t,e),s.attachments=e.length,{packet:s,buffers:e}}function Ht(n,e){if(!n)return n;if(Xt(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let s=0;s<n.length;s++)t[s]=Ht(n[s],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=Ht(n[s],e));return t}return n}function pi(n,e){return n.data=Kt(n.data,e),delete n.attachments,n}function Kt(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=Kt(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=Kt(n[t],e));return n}const fi=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var S;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(S||(S={}));class vi{constructor(e){this.replacer=e}encode(e){return(e.type===S.EVENT||e.type===S.ACK)&&ot(e)?this.encodeAsBinary({type:e.type===S.EVENT?S.BINARY_EVENT:S.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===S.BINARY_EVENT||e.type===S.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=di(e),s=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(s),r}}function Es(n){return Object.prototype.toString.call(n)==="[object Object]"}class Qt extends W{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===S.BINARY_EVENT;s||t.type===S.BINARY_ACK?(t.type=s?S.EVENT:S.ACK,this.reconstructor=new _i(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Xt(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(S[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===S.BINARY_EVENT||s.type===S.BINARY_ACK){const o=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const l=e.substring(o,t);if(l!=Number(l)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(l)}if(e.charAt(t+1)==="/"){const o=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(o,t)}else s.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const o=t+1;for(;++t;){const l=e.charAt(t);if(l==null||Number(l)!=l){--t;break}if(t===e.length)break}s.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=this.tryParse(e.substr(t));if(Qt.isPayloadValid(s.type,o))s.data=o;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case S.CONNECT:return Es(t);case S.DISCONNECT:return t===void 0;case S.CONNECT_ERROR:return typeof t=="string"||Es(t);case S.EVENT:case S.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&fi.indexOf(t[0])===-1);case S.ACK:case S.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class _i{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=pi(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gi=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Qt,Encoder:vi,get PacketType(){return S}},Symbol.toStringTag,{value:"Module"}));function de(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const mi=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ds extends W{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[de(e,"open",this.onopen.bind(this)),de(e,"packet",this.onpacket.bind(this)),de(e,"error",this.onerror.bind(this)),de(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,r,o;if(mi.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const l={type:S.EVENT,data:t};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const A=this.ids++,N=t.pop();this._registerAckCallback(A,N),l.id=A}const _=(r=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||r===void 0?void 0:r.writable,m=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!_||(m?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(e,t){var s;const r=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(r===void 0){this.acks[e]=t;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let _=0;_<this.sendBuffer.length;_++)this.sendBuffer[_].id===e&&this.sendBuffer.splice(_,1);t.call(this,new Error("operation has timed out"))},r),l=(..._)=>{this.io.clearTimeoutFn(o),t.apply(this,_)};l.withError=!0,this.acks[e]=l}emitWithAck(e,...t){return new Promise((s,r)=>{const o=(l,_)=>l?r(l):s(_);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...o)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:S.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case S.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case S.EVENT:case S.BINARY_EVENT:this.onevent(e);break;case S.ACK:case S.BINARY_ACK:this.onack(e);break;case S.DISCONNECT:this.ondisconnect();break;case S.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:S.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:S.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function De(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}De.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};De.prototype.reset=function(){this.attempts=0};De.prototype.setMin=function(n){this.ms=n};De.prototype.setMax=function(n){this.max=n};De.prototype.setJitter=function(n){this.jitter=n};class zt extends W{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,pt(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new De({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||gi;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new oi(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=de(t,"open",function(){s.onopen(),e&&e()}),o=_=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",_),e?e(_):this.maybeReconnectOnOpen()},l=de(t,"error",o);if(this._timeout!==!1){const _=this._timeout,m=this.setTimeoutFn(()=>{r(),o(new Error("timeout")),t.close()},_);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(r),this.subs.push(l),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(de(e,"ping",this.onping.bind(this)),de(e,"data",this.ondata.bind(this)),de(e,"error",this.onerror.bind(this)),de(e,"close",this.onclose.bind(this)),de(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){dt(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Ds(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ze={};function at(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=ai(n,e.path||"/socket.io"),s=t.source,r=t.id,o=t.path,l=ze[r]&&o in ze[r].nsps,_=e.forceNew||e["force new connection"]||e.multiplex===!1||l;let m;return _?m=new zt(s,e):(ze[r]||(ze[r]=new zt(s,e)),m=ze[r]),t.query&&!e.query&&(e.query=t.queryKey),m.socket(t.path,e)}Object.assign(at,{Manager:zt,Socket:Ds,io:at,connect:at});var yi=R(' <strong class="svelte-1pcdei1"></strong> ',1),bi=R('<a class="view-report-btn svelte-1pcdei1"> <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-1pcdei1"><line x1="5" y1="12" x2="19" y2="12" class="svelte-1pcdei1"></line><polyline points="12 5 19 12 12 19" class="svelte-1pcdei1"></polyline></svg></a>'),wi=R('<span class="run-chip-spinner svelte-1pcdei1"></span>'),ki=R('<span class="run-chip-count svelte-1pcdei1"> </span>'),Ei=R('<div class="run-chip svelte-1pcdei1"><svg width="9" height="10" viewBox="0 0 10 12" fill="currentColor" stroke="none" style="opacity:0.6;flex-shrink:0" class="svelte-1pcdei1"><polygon points="0,0 10,6 0,12" class="svelte-1pcdei1"></polygon></svg> <span class="run-chip-title svelte-1pcdei1"> </span> <!> <button class="run-chip-clear svelte-1pcdei1"><svg width="9" height="9" viewBox="0 0 14 14" fill="none" class="svelte-1pcdei1"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" class="svelte-1pcdei1"></path></svg></button></div>'),Ri=R('<div class="input-wrap svelte-1pcdei1"><svg class="input-icon svelte-1pcdei1" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8" class="svelte-1pcdei1"></circle><line x1="21" y1="21" x2="16.65" y2="16.65" class="svelte-1pcdei1"></line></svg> <input type="text" class="tag-input svelte-1pcdei1" placeholder="@tag or leave blank for all tests"></div>'),xi=R('<button class="dropdown-item svelte-1pcdei1"><span style="color:var(--text-muted)" class="svelte-1pcdei1">✕</span> </button> <div class="dropdown-divider svelte-1pcdei1"></div>',1),Ai=R('<div class="dropdown-empty svelte-1pcdei1"></div>'),Si=R('<button class="dropdown-item svelte-1pcdei1"> </button>'),Ti=R('<div class="dropdown-menu run-pick-menu svelte-1pcdei1"><!> <!></div>'),Bi=R('<button class="dropdown-item svelte-1pcdei1"> </button>'),Ci=R('<div class="dropdown-menu svelte-1pcdei1"></div>'),Li=R('<label class="runner-option svelte-1pcdei1"><input type="checkbox" class="svelte-1pcdei1"> <span class="runner-dot built-in svelte-1pcdei1"></span> <span class="svelte-1pcdei1"></span></label>'),Ni=R('<label class="runner-option svelte-1pcdei1"><input type="checkbox" class="svelte-1pcdei1"> <span class="runner-dot remote svelte-1pcdei1"></span> <span class="svelte-1pcdei1"> </span></label>'),Oi=R('<div class="dropdown-menu runners-menu svelte-1pcdei1"><!> <!></div>'),Ui=R('<div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div>',1),qi=R('<button type="button" class="notify-btn svelte-1pcdei1"></button>'),$i=R('<button type="button" class="notify-btn svelte-1pcdei1"></button>'),Pi=R('<div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="notify-toggles svelte-1pcdei1"><!> <!></div></div>',1),Ii=R('<span class="meta-dot svelte-1pcdei1">·</span> ',1),Di=R('<div class="run-card svelte-1pcdei1"><span class="run-card-dot svelte-1pcdei1"></span> <a class="run-card-main svelte-1pcdei1"><div class="run-card-info svelte-1pcdei1"><span class="run-card-label svelte-1pcdei1"> </span> <span class="run-card-meta svelte-1pcdei1"> <!></span></div> <!> <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="run-card-arrow svelte-1pcdei1"><line x1="5" y1="12" x2="19" y2="12" class="svelte-1pcdei1"></line><polyline points="12 5 19 12 12 19" class="svelte-1pcdei1"></polyline></svg></a> <button class="run-card-cancel svelte-1pcdei1"><svg width="12" height="12" viewBox="0 0 14 14" fill="none" class="svelte-1pcdei1"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" class="svelte-1pcdei1"></path></svg></button></div>'),Mi=R('<div class="empty-runs svelte-1pcdei1"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="empty-icon svelte-1pcdei1"><circle cx="12" cy="12" r="10" class="svelte-1pcdei1"></circle><line x1="10" y1="15" x2="10" y2="12" class="svelte-1pcdei1"></line><line x1="10" y1="9" x2="10.01" y2="9" class="svelte-1pcdei1"></line></svg> </div>'),Vi=R('<div class="body svelte-1pcdei1"><!> <!></div>'),Fi=R('<!> <div class="panel svelte-1pcdei1"><div class="scan-line svelte-1pcdei1"></div> <div class="bar svelte-1pcdei1"><div class="bar-left svelte-1pcdei1"><div class="bar-status svelte-1pcdei1"><span class="status-dot svelte-1pcdei1"></span> <span class="status-word svelte-1pcdei1"> </span></div> <!></div> <span class="flex-gap svelte-1pcdei1"></span> <div class="bar-center svelte-1pcdei1"><!> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div> <div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="stepper svelte-1pcdei1"><button class="step-btn svelte-1pcdei1">−</button> <span class="step-val svelte-1pcdei1"> </span> <button class="step-btn svelte-1pcdei1">+</button></div></div> <div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div> <!> <!> <div class="ctrl-divider svelte-1pcdei1"></div> <button class="run-btn svelte-1pcdei1"><svg width="9" height="10" viewBox="0 0 10 12" fill="currentColor" stroke="none" class="svelte-1pcdei1"><polygon points="0,0 10,6 0,12" class="svelte-1pcdei1"></polygon></svg> </button></div> <span class="flex-gap-sm svelte-1pcdei1"></span> <button class="expand-btn svelte-1pcdei1"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-1pcdei1"><polyline points="18 15 12 9 6 15" class="svelte-1pcdei1"></polyline></svg></button></div> <!></div>',1);function Wi(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(ke,"$runnerConfig",t),o=()=>ge(Ke,"$backgroundRuns",t),l=()=>ge(Dn,"$runsVersion",t),_=()=>ge(Be,"$panelExpanded",t),m=()=>ge(Ut,"$builtInEnabled",t),B=I(),A=I(),N=I(),q=I(),V=I(),ae=I(),be=I(),Re=I(),te=I();let H=I([]),Q=I([]),x=I(null),se=I(!1),Y=I(!1),Z=I(!1),ce=I(!1),he=I(!1),D=I({discordWebhookUrl:"",slackWebhookUrl:"",notifyPublicUrl:""}),O=I(!1),j=I(!1);function G(a){function u(k){a.contains(k.target)||a.dispatchEvent(new CustomEvent("clickoutside"))}return document.addEventListener("click",u,!0),{destroy(){document.removeEventListener("click",u,!0)}}}let ue,z,ie,X,ne=I(null);Yt(()=>{try{const c=localStorage.getItem("plum:runnerConfig");c&&ke.update(d=>({...d,...JSON.parse(c)}))}catch{}try{const c=localStorage.getItem("plum:panelExpanded");c!==null&&Be.set(c==="true")}catch{}try{const c=localStorage.getItem("plum:builtInEnabled");c!==null&&Ut.set(c!=="false")}catch{}wn().then(c=>{E(H,c);const d=new Set([Te,...c.map(f=>f.id)]);ke.update(f=>{const y=f.selectedRunners.filter(g=>d.has(g));return{...f,selectedRunners:y.length>0?y:[Te]}})}).catch(()=>{}),kn().then(c=>E(D,c)).catch(()=>{}),ir().then(c=>{c.length!==0&&(Ke.update(d=>{const f={...d};for(const{runId:y,kind:g,label:b,meta:C,status:$}of c)f[y]||(f[y]=_s({kind:g,label:b,meta:C,status:$}));return f}),Be.set(!0))}).catch(()=>{}),ue=ke.subscribe(c=>{try{localStorage.setItem("plum:runnerConfig",JSON.stringify(c))}catch{}}),z=Be.subscribe(c=>{try{localStorage.setItem("plum:panelExpanded",String(c))}catch{}}),ie=Ut.subscribe(c=>{try{localStorage.setItem("plum:builtInEnabled",String(c))}catch{}ke.update(d=>{if(!c&&d.selectedRunners.includes(Te)){const f=d.selectedRunners.filter(g=>g!==Te),y=f.length>0?f:i(H)[0]?[i(H)[0].id]:[];return{...d,selectedRunners:y}}return d})});const a=at(pn,{transports:["websocket"]});X=a,En.set(a),a.on(Ee.REPORT_READY,()=>gs.update(c=>c+1));function u(c,d){Ke.update(f=>f[c]?{...f,[c]:d(f[c])}:f)}function k(c,{kind:d,label:f,meta:y},g){Ke.update(b=>({...b,[c]:b[c]?{...b[c],status:g}:_s({kind:d,label:f,meta:y,status:g})})),Be.set(!0)}a.on(Ee.BG_RUN_QUEUED,({runId:c,kind:d,label:f,meta:y})=>{k(c,{kind:d,label:f,meta:y},"queued")}),a.on(Ee.BG_RUN_START,({runId:c,kind:d,label:f,meta:y})=>{k(c,{kind:d,label:f,meta:y},"running")}),a.on(Ee.BG_RUN_LOG,({runId:c,log:d})=>{u(c,f=>({...f,output:f.output+d}))}),a.on(Ee.BG_RUN_LANES_INIT,({runId:c,lanes:d})=>{u(c,f=>({...f,lanes:d.map(y=>({...y,status:"running",logs:""}))}))});function T(c,d,f){const y=c.lanes.some(g=>g.id===d)?c.lanes.map(g=>g.id===d?{...g,...f(g)}:g):[...c.lanes,{id:d,name:d,testCount:0,status:"running",logs:"",...f({logs:""})}];return{...c,lanes:y}}a.on(Ee.BG_RUN_LANE_LOG,({runId:c,laneId:d,log:f})=>{u(c,y=>T(y,d,g=>({logs:(g.logs||"")+f})))}),a.on(Ee.BG_RUN_LANE_STATUS,({runId:c,laneId:d,status:f})=>{u(c,y=>T(y,d,()=>({status:f})))}),a.on(Ee.BG_RUN_LANE_RRWEB_BATCH,({runId:c,...d})=>{u(c,f=>({...f,rrwebByLane:Rn(f.rrwebByLane,d)}))}),a.on(Ee.BG_RUN_DONE,({runId:c,code:d,reportId:f})=>{const y=d===0||d===null,g=d===130;u(c,b=>({...b,status:"done",testCompleted:!g,latestReportId:g?null:f,verdict:g?"cancelled":y?"pass":"fail"})),!g&&f&&E(ne,{reportId:f,verdict:y?"pass":"fail"}),g||gs.update(b=>b+1),setTimeout(()=>{Ke.update(b=>{const C={...b};return delete C[c],C})},fn+5e3)})}),ln(()=>{ue==null||ue(),z==null||z(),ie==null||ie(),X==null||X.disconnect()});async function Ne(a){E(ce,!1),E(x,{id:a.id,title:a.title,tags:null}),E(se,!0);try{const k=(await rr(a.id)).entries.filter(T=>{var c;return(c=T.case)==null?void 0:c.isAutomated}).map(T=>`@${T.case.displayId}`);E(x,{id:a.id,title:a.title,tags:k})}catch{E(x,null)}finally{E(se,!1)}}function Ge(){E(x,null)}function xe(){const a={notifyDiscord:i(O),notifySlack:i(j)};if(i(x)){if(i(se)||!i(x).tags||i(x).tags.length===0)return;qt(i(x).tags.join(" or "),i(x).id,a,i(x).title)}else r().testID.trim()===""?E(he,!0):qt(void 0,void 0,a)}function ft(a){a.key==="Enter"&&!i(x)&&xe()}function Zt(a){ke.update(u=>({...u,workers:Math.max(ps,Math.min(fs,u.workers+a))}))}function es(a){ke.update(u=>{const k=u.selectedRunners;if(k.includes(a)&&k.length===1)return u;const T=k.includes(a)?k.filter(c=>c!==a):[...k,a];return{...u,selectedRunners:T}})}function vt(a){return r().selectedRunners.includes(a)}_e(()=>r(),()=>{E(B,r())}),_e(()=>o(),()=>{E(A,Object.entries(o()).filter(([,a])=>a.status==="queued"||a.status==="running"))}),_e(()=>i(A),()=>{E(N,i(A).filter(([,a])=>a.status==="running").length)}),_e(()=>i(A),()=>{E(q,i(A).filter(([,a])=>a.status==="queued").length)}),_e(()=>i(A),()=>{E(V,i(A).length>0)}),_e(()=>(l(),ds),()=>{l()>=0&&nr({limit:ds}).then(a=>E(Q,a.runs)).catch(()=>{})}),_e(()=>(i(N),i(q),i(ne)),()=>{var a,u;E(ae,i(N)>0?"var(--accent)":i(q)>0?"var(--warn)":((a=i(ne))==null?void 0:a.verdict)==="pass"?"var(--pass)":((u=i(ne))==null?void 0:u.verdict)==="fail"?"var(--fail)":"var(--border)")}),_e(()=>(i(N),i(q),i(ne)),()=>{var a;E(be,xn({running:i(N),queued:i(q),verdict:(a=i(ne))==null?void 0:a.verdict}))}),_e(()=>i(B),()=>{E(Re,Nt.find(a=>a.id===i(B).browser)??Nt[0])}),_e(()=>(i(B),i(H)),()=>{E(te,An(i(B),i(H)))}),hn(),ct();var ts=Fi(),ss=ee(ts);cr(ss,{title:Tn,confirmLabel:Sn,get open(){return i(he)},set open(a){E(he,a)},$$events:{confirm:()=>{E(he,!1),qt(void 0,void 0,{notifyDiscord:i(O),notifySlack:i(j)})}},children:(a,u)=>{He();var k=yi(),T=ee(k);T.nodeValue=`${Bn} `;var c=h(T);c.textContent=Cn;var d=h(c);d.nodeValue=` ${Ln}`,w(a,k)},$$slots:{default:!0},$$legacy:!0});var _t=h(ss,2),Je=v(_t),gt=h(Je,2),mt=v(gt),yt=v(mt),bt=v(yt),wt=h(bt,2),Ms=v(wt,!0);p(wt),p(yt);var Vs=h(yt,2);{var Fs=a=>{var u=bi(),k=v(u);k.nodeValue=`${Mn} `,He(),p(u),M(T=>J(u,"href",T),[()=>tr(i(ne).reportId)],re),U("click",u,()=>Be.set(!1)),Ce(3,u,()=>Pe,()=>({x:-6,duration:200})),w(a,u)};P(Vs,a=>{var u;!i(V)&&((u=i(ne))!=null&&u.reportId)&&a(Fs)})}p(mt);var kt=h(mt,4),ns=v(kt);{var Ws=a=>{var u=Ei(),k=h(v(u),2),T=v(k,!0);p(k);var c=h(k,2);{var d=g=>{var b=wi();w(g,b)},f=g=>{var b=Ie(),C=ee(b);{var $=F=>{var oe=ki(),pe=v(oe,!0);p(oe),M(Fe=>{L(oe,"none",i(x).tags.length===0),K(pe,Fe)},[()=>er(i(x).tags.length)],re),w(F,oe)};P(C,F=>{i(x).tags!==null&&F($)},!0)}w(g,b)};P(c,g=>{i(se)?g(d):g(f,!1)})}var y=h(c,2);J(y,"aria-label",Vn),p(u),M(()=>{L(u,"loading",i(se)),K(T,i(x).title)}),U("click",y,Ge),w(a,u)},Hs=a=>{var u=Ri(),k=h(v(u),2);Ot(k),p(u),M(()=>vn(k,r().testID)),U("input",k,T=>ke.update(c=>({...c,testID:T.currentTarget.value}))),U("keydown",k,ft),w(a,u)};P(ns,a=>{i(x)?a(Ws):a(Hs,!1)})}var Et=h(ns,2),rs=v(Et);rs.textContent=Nn;var Xe=h(rs,2),Ue=v(Xe),Rt=v(Ue),Ks=v(Rt,!0);p(Rt);var zs=h(Rt,2);p(Ue);var Ys=h(Ue,2);{var js=a=>{var u=Ti(),k=v(u);{var T=y=>{var g=xi(),b=ee(g),C=h(v(b));C.nodeValue=` ${_n}`,p(b),He(2),U("click",b,Ge),w(y,g)};P(k,y=>{i(x)&&y(T)})}var c=h(k,2);{var d=y=>{var g=Ai();g.textContent=Jn,w(y,g)},f=y=>{var g=Ie(),b=ee(g);Oe(b,1,()=>i(Q).filter(C=>C.status!=="complete"),je,(C,$)=>{var F=Si(),oe=v(F,!0);p(F),M(()=>{var pe;L(F,"active",((pe=i(x))==null?void 0:pe.id)===i($).id),K(oe,i($).title)}),U("click",F,()=>Ne(i($))),w(C,F)}),w(y,g)};P(c,y=>{i(Q).filter(g=>g.status!=="complete").length===0?y(d):y(f,!1)})}p(u),Ce(3,u,()=>Pe,()=>({y:6,duration:130})),w(a,u)};P(Ys,a=>{i(ce)&&a(js)})}p(Xe),$t(Xe,a=>G==null?void 0:G(a)),nt(()=>U("clickoutside",Xe,()=>E(ce,!1))),p(Et);var xt=h(Et,4),is=v(xt);is.textContent=On;var os=h(is,2),At=v(os),St=h(At,2),Gs=v(St,!0);p(St);var as=h(St,2);p(os),p(xt);var Tt=h(xt,4),cs=v(Tt);cs.textContent=Un;var Qe=h(cs,2),Me=v(Qe),Bt=v(Me),Js=v(Bt,!0);p(Bt);var Xs=h(Bt,2);p(Me);var Qs=h(Me,2);{var Zs=a=>{var u=Ci();Oe(u,5,()=>Nt,je,(k,T)=>{var c=Bi(),d=v(c,!0);p(c),M(()=>{L(c,"active",i(B).browser===i(T).id),K(d,i(T).label)}),U("click",c,()=>{ke.update(f=>({...f,browser:i(T).id})),E(Y,!1)}),w(k,c)}),p(u),Ce(3,u,()=>Pe,()=>({y:6,duration:130})),w(a,u)};P(Qs,a=>{i(Y)&&a(Zs)})}p(Qe),$t(Qe,a=>G==null?void 0:G(a)),nt(()=>U("clickoutside",Qe,()=>E(Y,!1))),p(Tt);var ls=h(Tt,2);{var en=a=>{var u=Ui(),k=h(ee(u),2),T=v(k);T.textContent=Fn;var c=h(T,2),d=v(c),f=v(d),y=v(f,!0);p(f);var g=h(f,2);p(d);var b=h(d,2);{var C=$=>{var F=Oi(),oe=v(F);{var pe=Ae=>{var fe=Li(),ve=v(fe);Ot(ve);var Se=h(ve,4);Se.textContent=yn,p(fe),M(qe=>vs(ve,qe),[()=>vt(Te)],re),U("change",ve,()=>es(Te)),w(Ae,fe)};P(oe,Ae=>{(m()||vt(Te))&&Ae(pe)})}var Fe=h(oe,2);Oe(Fe,1,()=>i(H),je,(Ae,fe)=>{var ve=Ni(),Se=v(ve);Ot(Se);var qe=h(Se,4),Ct=v(qe,!0);p(qe),p(ve),M(We=>{vs(Se,We),K(Ct,i(fe).name)},[()=>vt(i(fe).id)],re),U("change",Se,()=>es(i(fe).id)),w(Ae,ve)}),p(F),Ce(3,F,()=>Pe,()=>({y:6,duration:130})),w($,F)};P(b,$=>{i(Z)&&$(C)})}p(c),$t(c,$=>G==null?void 0:G($)),nt(()=>U("clickoutside",c,()=>E(Z,!1))),p(k),M($=>{L(d,"open",i(Z)),L(d,"has-remote",$),K(y,i(te)),L(g,"open",i(Z))},[()=>i(B).selectedRunners.some($=>$!==Te)],re),U("click",d,()=>{E(Z,!i(Z))}),w(a,u)};P(ls,a=>{i(H).length>0&&a(en)})}var hs=h(ls,2);{var tn=a=>{var u=Pi(),k=h(ee(u),2),T=v(k);T.textContent=Wn;var c=h(T,2),d=v(c);{var f=b=>{var C=qi();C.textContent=gn,M($=>{J(C,"title",$),L(C,"active",i(O))},[()=>Xn(i(O))],re),U("click",C,()=>E(O,!i(O))),w(b,C)};P(d,b=>{i(D).discordWebhookUrl&&b(f)})}var y=h(d,2);{var g=b=>{var C=$i();C.textContent=mn,M($=>{J(C,"title",$),L(C,"active",i(j))},[()=>Qn(i(j))],re),U("click",C,()=>E(j,!i(j))),w(b,C)};P(y,b=>{i(D).slackWebhookUrl&&b(g)})}p(c),p(k),w(a,u)};P(hs,a=>{(i(D).discordWebhookUrl||i(D).slackWebhookUrl)&&a(tn)})}var Ve=h(hs,4),sn=h(v(Ve));sn.nodeValue=` ${qn}`,p(Ve),p(kt);var Ze=h(kt,4),nn=v(Ze);p(Ze),p(gt);var rn=h(gt,2);{var on=a=>{var u=Vi(),k=v(u);Oe(k,3,()=>i(A),([d,f])=>d,(d,f,y)=>{let g=()=>i(f)[0],b=()=>i(f)[1];var C=Di(),$=v(C),F=h($,2),oe=v(F),pe=v(oe),Fe=v(pe,!0);p(pe);var Ae=h(pe,2),fe=v(Ae),ve=h(fe);{var Se=we=>{var $e=Ii(),et=h(ee($e));M(Lt=>K(et,` ${Lt??""}`),[()=>Gn(b().currentRun.startedBy)],re),w(we,$e)};P(ve,we=>{var $e;($e=b().currentRun)!=null&&$e.startedBy&&we(Se)})}p(Ae),p(oe);var qe=h(oe,2);const Ct=re(()=>b().status==="queued"?"tag":ar(b().kind));lr(qe,{get variant(){return i(Ct)},children:(we,$e)=>{He();var et=an();M(Lt=>K(et,Lt),[()=>b().status==="queued"?Hn:or(b().kind)],re),w(we,et)},$$slots:{default:!0}}),He(2),p(F);var We=h(F,2);J(We,"title",ms),J(We,"aria-label",ms),p(C),M(we=>{L(C,"active-run",b().status==="running"),L(C,"queued-run",b().status==="queued"),L($,"pulse-accent",b().status==="running"),L($,"queued-dot",b().status==="queued"),J(F,"href",`/live/${g()??""}`),K(Fe,b().label||Yn),K(fe,`${we??""} `)},[()=>b().status==="queued"?Kn(i(A).slice(0,i(y)).filter(([,we])=>we.status==="queued").length+1):zn(b().kind)],re),U("click",F,()=>Be.set(!1)),U("click",We,()=>jn(g())),Ce(3,C,()=>Pe,()=>({x:-4,duration:160})),w(d,C)});var T=h(k,2);{var c=d=>{var f=Mi(),y=h(v(f));y.nodeValue=` ${Zn}`,p(f),w(d,f)};P(T,d=>{i(V)||d(c)})}p(u),Ce(3,u,()=>Rs,()=>({duration:200})),w(a,u)};P(rn,a=>{_()&&a(on)})}p(_t),M(a=>{var u,k,T,c;L(_t,"expanded",_()),L(Je,"scanning",i(N)>0),L(Je,"line-pass",((u=i(ne))==null?void 0:u.verdict)==="pass"&&!i(V)),L(Je,"line-fail",((k=i(ne))==null?void 0:k.verdict)==="fail"&&!i(V)),J(bt,"style",`background:${i(ae)??""}`),L(bt,"pulse",i(N)>0),J(wt,"style",`color:${i(ae)??""}`),K(Ms,i(be)),L(Ue,"open",i(ce)),L(Ue,"has-remote",!!i(x)),K(Ks,i(x)?i(x).title:Pn),L(zs,"open",i(ce)),At.disabled=i(B).workers<=ps,K(Gs,i(B).workers),as.disabled=i(B).workers>=fs,L(Me,"open",i(Y)),K(Js,i(Re).label),L(Xs,"open",i(Y)),Ve.disabled=i(se)||i(x)&&((T=i(x).tags)==null?void 0:T.length)===0,J(Ve,"title",i(x)&&((c=i(x).tags)==null?void 0:c.length)===0?In:void 0),J(Ze,"aria-label",a),L(nn,"flipped",_())},[()=>$n(_())],re),U("click",Ue,()=>{E(ce,!i(ce))}),U("click",At,()=>Zt(-1)),U("click",as,()=>Zt(1)),U("click",Me,()=>{E(Y,!i(Y))}),U("click",Ve,xe),U("click",Ze,()=>Be.update(a=>!a)),w(n,ts),ht(),s()}function Hi(n,{from:e,to:t},s={}){var{delay:r=0,duration:o=Y=>Math.sqrt(Y)*120,easing:l=hr}=s,_=getComputedStyle(n),m=_.transform==="none"?"":_.transform,[B,A]=_.transformOrigin.split(" ").map(parseFloat);B/=n.clientWidth,A/=n.clientHeight;var N=Ki(n),q=n.clientWidth/t.width/N,V=n.clientHeight/t.height/N,ae=e.left+e.width*B,be=e.top+e.height*A,Re=t.left+t.width*B,te=t.top+t.height*A,H=(ae-Re)*q,Q=(be-te)*V,x=e.width/t.width,se=e.height/t.height;return{delay:r,duration:typeof o=="function"?o(Math.sqrt(H*H+Q*Q)):o,easing:l,css:(Y,Z)=>{var ce=Z*H,he=Z*Q,D=Y+Z*x,O=Y+Z*se;return`transform: ${m} translate(${ce}px, ${he}px) scale(${D}, ${O});`}}}function Ki(n){if("currentCSSZoom"in n)return n.currentCSSZoom;for(var e=n,t=1;e!==null;)t*=+getComputedStyle(e).zoom,e=e.parentElement;return t}var zi=R('<div class="card svelte-19gnuo1"><div class="row svelte-19gnuo1"><span></span> <span class="msg svelte-19gnuo1"> </span> <button class="link svelte-19gnuo1"><svg width="12" height="12" viewBox="0 0 14 14" fill="none"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"></path></svg></button></div></div>'),Yi=R('<div class="stack svelte-19gnuo1"></div>');function ji(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(dr,"$notifications",t);ct();var o=Yi();Oe(o,13,r,l=>l.id,(l,_)=>{var m=zi(),B=v(m),A=v(B),N=h(A,2),q=v(N,!0);p(N);var V=h(N,2);J(V,"aria-label",sr),p(B),p(m),M(()=>{un(A,`dot ${i(_).type??""} svelte-19gnuo1`),K(q,i(_).message)}),U("click",V,()=>ur(i(_).id)),dn(m,()=>Hi,()=>({duration:180})),Ce(3,m,()=>Pe,()=>({y:12,duration:200})),w(l,m)}),p(o),w(n,o),ht(),s()}var Gi=R("<!> <!> <!> <!>",1),Ji=R('<div class="boot-loading svelte-3qbr79">Loading…</div>');function bo(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(xs,"$page",t),o=()=>ge(As,"$auth",t),l=["/login","/setup"];let _=I(!1);Yt(async()=>{const q=r().url.pathname;if(l.includes(q)){E(_,!0);return}if(o().token){E(_,!0);return}try{const ae=await pr();await us(ae?"/setup":"/login")}catch{await us("/login")}finally{E(_,!0)}}),ct();var m=Ie(),B=ee(m);{var A=q=>{var V=Ie(),ae=ee(V);{var be=te=>{var H=Ie(),Q=ee(H);Mt(Q,e,"default",{},null),w(te,H)},Re=te=>{var H=Gi(),Q=ee(H);Rr(Q,{});var x=h(Q,2);Ar(x,{children:(Z,ce)=>{var he=Ie(),D=ee(he);Mt(D,e,"default",{},null),w(Z,he)},$$slots:{default:!0}});var se=h(x,2);Wi(se,{});var Y=h(se,2);ji(Y,{}),w(te,H)};P(ae,te=>{r().url.pathname==="/login"||r().url.pathname==="/setup"?te(be):te(Re,!1)})}w(q,V)},N=q=>{var V=Ji();w(q,V)};P(B,q=>{i(_)?q(A):q(N,!1)})}w(n,m),ht(),s()}export{bo as component,mo as universal};
|
|
6
|
+
import{s as K,a as w,e as U,t as R,b as an,c as Ie}from"../chunks/6VDMVB5U.js";import{i as ct}from"../chunks/CtgCYzu5.js";import{e as nt,u as cn,p as lt,o as Yt,s as E,d as v,j as h,f as ee,g as i,k as p,t as M,x as re,c as ht,m as I,ao as ln,l as _e,b as hn,n as He}from"../chunks/BIf7lHIm.js";import{i as P,s as ut,a as ge}from"../chunks/D_thT6pZ.js";import{e as Oe,t as L,i as je,a as Ce,b as Rs,c as Mt,f as Pe,s as un,h as dn}from"../chunks/BTV7EXZb.js";import{g as us}from"../chunks/BqJQeI8K.js";import{p as xs}from"../chunks/CUWTHbZi.js";import{s as J,y as Te,A as pn,G as fn,O as ds,B as Nt,Q as ps,U as fs,r as Ot,N as vn,k as _n,q as vs,I as gn,J as mn,z as yn}from"../chunks/C4Z3p6jE.js";import{a as As}from"../chunks/CXQhSK1T.js";import{b as bn,f as wn,a as kn}from"../chunks/kFFd6Oo5.js";import{b as ke,p as Be,e as Ut,c as Ke,m as _s,s as En,S as Ee,a as gs,g as Rn,h as xn,i as An,R as Sn,j as Tn,k as Bn,l as Cn,n as Ln,t as qt,T as Nn,W as On,B as Un,o as qn,q as $n,N as Pn,u as In,r as Dn,V as Mn,C as Vn,v as Fn,w as Wn,Q as Hn,x as ms,y as Kn,z as zn,M as Yn,d as jn,A as Gn,D as Jn,E as Xn,F as Qn,G as Zn,H as er}from"../chunks/htkwR9b-.js";import{j as tr,am as sr}from"../chunks/Dn1b1Jgc.js";import{a as nr,v as rr}from"../chunks/B74j8LrV.js";import{f as ir}from"../chunks/gCgJ3Cwu.js";import{t as or,a as ar}from"../chunks/B2lVGNml.js";import{C as cr}from"../chunks/BWGoOYU0.js";import{B as lr}from"../chunks/DeiVAbyn.js";import{c as hr}from"../chunks/CUPWZLIN.js";import{d as ur,a as dr}from"../chunks/BDb8hZHu.js";import{c as pr}from"../chunks/DDx3no2z.js";function $t(n,e,t){nt(()=>{var s=cn(()=>e(n,t==null?void 0:t())||{});if(s!=null&&s.destroy)return()=>s.destroy()})}const fr=!1,mo=Object.freeze(Object.defineProperty({__proto__:null,ssr:fr},Symbol.toStringTag,{value:"Module"}));var vr=R('<span class="nav-sep svelte-10t98u4" aria-hidden="true"></span>'),_r=R('<!> <a class="link svelte-10t98u4"> </a>',1),gr=R('<img alt="" class="project-logo svelte-10t98u4">'),mr=R('<div class="project-card svelte-10t98u4"><!> <span class="project-name svelte-10t98u4"> </span></div>'),yr=R('<span class="nav-user svelte-10t98u4"> </span>'),br=R('<hr class="mobile-sep svelte-10t98u4">'),wr=R('<!> <a class="mobile-link svelte-10t98u4"> </a>',1),kr=R('<div class="mobile-menu svelte-10t98u4"><!> <a href="/settings" class="mobile-link svelte-10t98u4">Settings</a></div>'),Er=R('<nav class="nav svelte-10t98u4"><div class="inner svelte-10t98u4"><a href="/" class="brand svelte-10t98u4"><span class="brand-serif svelte-10t98u4">Pl</span><span class="brand-sans svelte-10t98u4">um</span></a> <div class="links svelte-10t98u4"></div> <div class="actions svelte-10t98u4"><!> <!> <a href="/settings" class="settings-btn svelte-10t98u4" aria-label="Settings" title="Settings"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg></a> <button class="hamburger svelte-10t98u4"><span class="svelte-10t98u4"></span> <span class="svelte-10t98u4"></span> <span class="svelte-10t98u4"></span></button></div></div> <!></nav>');function Rr(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(xs,"$page",t),o=()=>ge(As,"$auth",t);let l=I(!1),_=I({name:"",logoUrl:""});Yt(async()=>{try{E(_,await bn())}catch{}});const m=[{href:"/",label:"Automated Tests"},{href:"/reports",label:"Reports"},{href:"/scheduled-tests",label:"Scheduled"},{href:"/test-repository",label:"Test Repository",sep:!0}];function B(){E(l,!1)}ct();var A=Er(),N=v(A),q=v(N),V=h(q,2);Oe(V,5,()=>m,je,(D,O)=>{var j=_r(),G=ee(j);{var ue=X=>{var ne=vr();w(X,ne)};P(G,X=>{i(O).sep&&X(ue)})}var z=h(G,2),ie=v(z,!0);p(z),M(X=>{J(z,"href",i(O).href),L(z,"repo",i(O).sep),L(z,"active",X),K(ie,i(O).label)},[()=>i(O).href==="/"?r().url.pathname==="/":r().url.pathname.startsWith(i(O).href)],re),w(D,j)}),p(V);var ae=h(V,2),be=v(ae);{var Re=D=>{var O=mr(),j=v(O);{var G=ie=>{var X=gr();M(()=>J(X,"src",i(_).logoUrl)),w(ie,X)};P(j,ie=>{i(_).logoUrl&&ie(G)})}var ue=h(j,2),z=v(ue,!0);p(ue),p(O),M(()=>K(z,i(_).name)),w(D,O)};P(be,D=>{i(_).name&&D(Re)})}var te=h(be,2);{var H=D=>{var O=yr(),j=v(O,!0);p(O),M(()=>K(j,o().user.name)),w(D,O)};P(te,D=>{o().user&&D(H)})}var Q=h(te,2),x=h(Q,2),se=v(x),Y=h(se,2),Z=h(Y,2);p(x),p(ae),p(N);var ce=h(N,2);{var he=D=>{var O=kr(),j=v(O);Oe(j,1,()=>m,je,(ue,z)=>{var ie=wr(),X=ee(ie);{var ne=xe=>{var ft=br();w(xe,ft)};P(X,xe=>{i(z).sep&&xe(ne)})}var Ne=h(X,2),Ge=v(Ne,!0);p(Ne),M(xe=>{J(Ne,"href",i(z).href),L(Ne,"active",xe),K(Ge,i(z).label)},[()=>i(z).href==="/"?r().url.pathname==="/":r().url.pathname.startsWith(i(z).href)],re),U("click",Ne,B),w(ue,ie)});var G=h(j,2);p(O),M(()=>L(G,"active",r().url.pathname==="/settings")),U("click",G,B),Ce(3,O,()=>Rs,()=>({duration:200})),w(D,O)};P(ce,D=>{i(l)&&D(he)})}p(A),M(()=>{L(Q,"active",r().url.pathname==="/settings"),J(x,"aria-label",i(l)?"Close menu":"Open menu"),J(x,"aria-expanded",i(l)),L(se,"rotated",i(l)),L(Y,"hidden",i(l)),L(Z,"rotated-reverse",i(l))}),U("click",q,B),U("click",x,()=>E(l,!i(l))),w(n,A),ht(),s()}var xr=R('<main class="shell svelte-28zx1m"><!></main>');function Ar(n,e){var t=xr(),s=v(t);Mt(s,e,"default",{},null),p(t),w(n,t)}const ye=Object.create(null);ye.open="0";ye.close="1";ye.ping="2";ye.pong="3";ye.message="4";ye.upgrade="5";ye.noop="6";const rt=Object.create(null);Object.keys(ye).forEach(n=>{rt[ye[n]]=n});const Vt={type:"error",data:"parser error"},Ss=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Ts=typeof ArrayBuffer=="function",Bs=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,jt=({type:n,data:e},t,s)=>Ss&&e instanceof Blob?t?s(e):ys(e,s):Ts&&(e instanceof ArrayBuffer||Bs(e))?t?s(e):ys(new Blob([e]),s):s(ye[n]+(e||"")),ys=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function bs(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Pt;function Sr(n,e){if(Ss&&n.data instanceof Blob)return n.data.arrayBuffer().then(bs).then(e);if(Ts&&(n.data instanceof ArrayBuffer||Bs(n.data)))return e(bs(n.data));jt(n,!1,t=>{Pt||(Pt=new TextEncoder),e(Pt.encode(t))})}const ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ye=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<ws.length;n++)Ye[ws.charCodeAt(n)]=n;const Tr=n=>{let e=n.length*.75,t=n.length,s,r=0,o,l,_,m;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const B=new ArrayBuffer(e),A=new Uint8Array(B);for(s=0;s<t;s+=4)o=Ye[n.charCodeAt(s)],l=Ye[n.charCodeAt(s+1)],_=Ye[n.charCodeAt(s+2)],m=Ye[n.charCodeAt(s+3)],A[r++]=o<<2|l>>4,A[r++]=(l&15)<<4|_>>2,A[r++]=(_&3)<<6|m&63;return B},Br=typeof ArrayBuffer=="function",Gt=(n,e)=>{if(typeof n!="string")return{type:"message",data:Cs(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Cr(n.substring(1),e)}:rt[t]?n.length>1?{type:rt[t],data:n.substring(1)}:{type:rt[t]}:Vt},Cr=(n,e)=>{if(Br){const t=Tr(n);return Cs(t,e)}else return{base64:!0,data:n}},Cs=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Ls="",Lr=(n,e)=>{const t=n.length,s=new Array(t);let r=0;n.forEach((o,l)=>{jt(o,!1,_=>{s[l]=_,++r===t&&e(s.join(Ls))})})},Nr=(n,e)=>{const t=n.split(Ls),s=[];for(let r=0;r<t.length;r++){const o=Gt(t[r],e);if(s.push(o),o.type==="error")break}return s};function Or(){return new TransformStream({transform(n,e){Sr(n,t=>{const s=t.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const o=new DataView(r.buffer);o.setUint8(0,126),o.setUint16(1,s)}else{r=new Uint8Array(9);const o=new DataView(r.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let It;function tt(n){return n.reduce((e,t)=>e+t.length,0)}function st(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let r=0;r<e;r++)t[r]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),t}function Ur(n,e){It||(It=new TextDecoder);const t=[];let s=0,r=-1,o=!1;return new TransformStream({transform(l,_){for(t.push(l);;){if(s===0){if(tt(t)<1)break;const m=st(t,1);o=(m[0]&128)===128,r=m[0]&127,r<126?s=3:r===126?s=1:s=2}else if(s===1){if(tt(t)<2)break;const m=st(t,2);r=new DataView(m.buffer,m.byteOffset,m.length).getUint16(0),s=3}else if(s===2){if(tt(t)<8)break;const m=st(t,8),B=new DataView(m.buffer,m.byteOffset,m.length),A=B.getUint32(0);if(A>Math.pow(2,21)-1){_.enqueue(Vt);break}r=A*Math.pow(2,32)+B.getUint32(4),s=3}else{if(tt(t)<r)break;const m=st(t,r);_.enqueue(Gt(o?m:It.decode(m),e)),s=0}if(r===0||r>n){_.enqueue(Vt);break}}}})}const Ns=4;function W(n){if(n)return qr(n)}function qr(n){for(var e in W.prototype)n[e]=W.prototype[e];return n}W.prototype.on=W.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};W.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};W.prototype.off=W.prototype.removeListener=W.prototype.removeAllListeners=W.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,r=0;r<t.length;r++)if(s=t[r],s===e||s.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+n],this};W.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,r=t.length;s<r;++s)t[s].apply(this,e)}return this};W.prototype.emitReserved=W.prototype.emit;W.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};W.prototype.hasListeners=function(n){return!!this.listeners(n).length};const dt=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),le=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),$r="arraybuffer";function Os(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Pr=le.setTimeout,Ir=le.clearTimeout;function pt(n,e){e.useNativeTimers?(n.setTimeoutFn=Pr.bind(le),n.clearTimeoutFn=Ir.bind(le)):(n.setTimeoutFn=le.setTimeout.bind(le),n.clearTimeoutFn=le.clearTimeout.bind(le))}const Dr=1.33;function Mr(n){return typeof n=="string"?Vr(n):Math.ceil((n.byteLength||n.size)*Dr)}function Vr(n){let e=0,t=0;for(let s=0,r=n.length;s<r;s++)e=n.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function Us(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Fr(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Wr(n){let e={},t=n.split("&");for(let s=0,r=t.length;s<r;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class Hr extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class Jt extends W{constructor(e){super(),this.writable=!1,pt(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new Hr(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Gt(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Fr(e);return t.length?"?"+t:""}}class Kr extends Jt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Nr(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Lr(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Us()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let qs=!1;try{qs=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const zr=qs;function Yr(){}class jr extends Kr{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(r,o)=>{this.onError("xhr post error",r,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class me extends W{constructor(e,t,s){super(),this.createRequest=e,pt(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=Os(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=me.requestsCount++,me.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Yr,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete me.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}me.requestsCount=0;me.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ks);else if(typeof addEventListener=="function"){const n="onpagehide"in le?"pagehide":"unload";addEventListener(n,ks,!1)}}function ks(){for(let n in me.requests)me.requests.hasOwnProperty(n)&&me.requests[n].abort()}const Gr=function(){const n=$s({xdomain:!1});return n&&n.responseType!==null}();class Jr extends jr{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Gr&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new me($s,this.uri(),e)}}function $s(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||zr))return new XMLHttpRequest}catch{}if(!e)try{return new le[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Ps=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Xr extends Jt{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=Ps?{}:Os(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;jt(s,this.supportsBinary,o=>{try{this.doWrite(s,o)}catch{}r&&dt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Us()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Dt=le.WebSocket||le.MozWebSocket;class Qr extends Xr{createSocket(e,t,s){return Ps?new Dt(e,t,s):t?new Dt(e,t):new Dt(e)}doWrite(e,t){this.ws.send(t)}}class Zr extends Jt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=Ur(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=Or();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const o=()=>{s.read().then(({done:_,value:m})=>{_||(this.onPacket(m),o())}).catch(_=>{})};o();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this._writer.write(l).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;this._writer.write(s).then(()=>{r&&dt(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const ei={websocket:Qr,webtransport:Zr,polling:Jr},ti=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,si=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Ft(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let r=ti.exec(n||""),o={},l=14;for(;l--;)o[si[l]]=r[l]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ni(o,o.path),o.queryKey=ri(o,o.query),o}function ni(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function ri(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,o){r&&(t[r]=o)}),t}const Wt=typeof addEventListener=="function"&&typeof removeEventListener=="function",it=[];Wt&&addEventListener("offline",()=>{it.forEach(n=>n())},!1);class Le extends W{constructor(e,t){if(super(),this.binaryType=$r,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=Ft(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=Ft(t.host).host);pt(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Wr(this.opts.query)),Wt&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},it.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Ns,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Le.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",Le.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(t+=Mr(r)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,dt(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,r){if(typeof t=="function"&&(r=t,t=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(Le.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Wt&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=it.indexOf(this._offlineEventListener);s!==-1&&it.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Le.protocol=Ns;class ii extends Le{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;Le.priorWebsocketSuccess=!1;const r=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",N=>{if(!s)if(N.type==="pong"&&N.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Le.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(A(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const q=new Error("probe error");q.transport=t.name,this.emitReserved("upgradeError",q)}}))};function o(){s||(s=!0,A(),t.close(),t=null)}const l=N=>{const q=new Error("probe error: "+N);q.transport=t.name,o(),this.emitReserved("upgradeError",q)};function _(){l("transport closed")}function m(){l("socket closed")}function B(N){t&&N.name!==t.name&&o()}const A=()=>{t.removeListener("open",r),t.removeListener("error",l),t.removeListener("close",_),this.off("close",m),this.off("upgrading",B)};t.once("open",r),t.once("error",l),t.once("close",_),this.once("close",m),this.once("upgrading",B),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}let oi=class extends ii{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(r=>ei[r]).filter(r=>!!r)),super(e,s)}};function ai(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=Ft(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const o=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+o+":"+s.port+e,s.href=s.protocol+"://"+o+(t&&t.port===s.port?"":":"+s.port),s}const ci=typeof ArrayBuffer=="function",li=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Is=Object.prototype.toString,hi=typeof Blob=="function"||typeof Blob<"u"&&Is.call(Blob)==="[object BlobConstructor]",ui=typeof File=="function"||typeof File<"u"&&Is.call(File)==="[object FileConstructor]";function Xt(n){return ci&&(n instanceof ArrayBuffer||li(n))||hi&&n instanceof Blob||ui&&n instanceof File}function ot(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t<s;t++)if(ot(n[t]))return!0;return!1}if(Xt(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ot(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&ot(n[t]))return!0;return!1}function di(n){const e=[],t=n.data,s=n;return s.data=Ht(t,e),s.attachments=e.length,{packet:s,buffers:e}}function Ht(n,e){if(!n)return n;if(Xt(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let s=0;s<n.length;s++)t[s]=Ht(n[s],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=Ht(n[s],e));return t}return n}function pi(n,e){return n.data=Kt(n.data,e),delete n.attachments,n}function Kt(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=Kt(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=Kt(n[t],e));return n}const fi=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var S;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(S||(S={}));class vi{constructor(e){this.replacer=e}encode(e){return(e.type===S.EVENT||e.type===S.ACK)&&ot(e)?this.encodeAsBinary({type:e.type===S.EVENT?S.BINARY_EVENT:S.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===S.BINARY_EVENT||e.type===S.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=di(e),s=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(s),r}}function Es(n){return Object.prototype.toString.call(n)==="[object Object]"}class Qt extends W{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===S.BINARY_EVENT;s||t.type===S.BINARY_ACK?(t.type=s?S.EVENT:S.ACK,this.reconstructor=new _i(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Xt(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(S[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===S.BINARY_EVENT||s.type===S.BINARY_ACK){const o=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const l=e.substring(o,t);if(l!=Number(l)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(l)}if(e.charAt(t+1)==="/"){const o=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(o,t)}else s.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const o=t+1;for(;++t;){const l=e.charAt(t);if(l==null||Number(l)!=l){--t;break}if(t===e.length)break}s.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=this.tryParse(e.substr(t));if(Qt.isPayloadValid(s.type,o))s.data=o;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case S.CONNECT:return Es(t);case S.DISCONNECT:return t===void 0;case S.CONNECT_ERROR:return typeof t=="string"||Es(t);case S.EVENT:case S.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&fi.indexOf(t[0])===-1);case S.ACK:case S.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class _i{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=pi(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gi=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Qt,Encoder:vi,get PacketType(){return S}},Symbol.toStringTag,{value:"Module"}));function de(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const mi=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class Ds extends W{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[de(e,"open",this.onopen.bind(this)),de(e,"packet",this.onpacket.bind(this)),de(e,"error",this.onerror.bind(this)),de(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,r,o;if(mi.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const l={type:S.EVENT,data:t};if(l.options={},l.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const A=this.ids++,N=t.pop();this._registerAckCallback(A,N),l.id=A}const _=(r=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||r===void 0?void 0:r.writable,m=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!_||(m?(this.notifyOutgoingListeners(l),this.packet(l)):this.sendBuffer.push(l)),this.flags={},this}_registerAckCallback(e,t){var s;const r=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(r===void 0){this.acks[e]=t;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let _=0;_<this.sendBuffer.length;_++)this.sendBuffer[_].id===e&&this.sendBuffer.splice(_,1);t.call(this,new Error("operation has timed out"))},r),l=(..._)=>{this.io.clearTimeoutFn(o),t.apply(this,_)};l.withError=!0,this.acks[e]=l}emitWithAck(e,...t){return new Promise((s,r)=>{const o=(l,_)=>l?r(l):s(_);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...o)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...o)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:S.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case S.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case S.EVENT:case S.BINARY_EVENT:this.onevent(e);break;case S.ACK:case S.BINARY_ACK:this.onack(e);break;case S.DISCONNECT:this.ondisconnect();break;case S.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:S.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:S.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function De(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}De.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};De.prototype.reset=function(){this.attempts=0};De.prototype.setMin=function(n){this.ms=n};De.prototype.setMax=function(n){this.max=n};De.prototype.setJitter=function(n){this.jitter=n};class zt extends W{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,pt(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new De({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||gi;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new oi(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=de(t,"open",function(){s.onopen(),e&&e()}),o=_=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",_),e?e(_):this.maybeReconnectOnOpen()},l=de(t,"error",o);if(this._timeout!==!1){const _=this._timeout,m=this.setTimeoutFn(()=>{r(),o(new Error("timeout")),t.close()},_);this.opts.autoUnref&&m.unref(),this.subs.push(()=>{this.clearTimeoutFn(m)})}return this.subs.push(r),this.subs.push(l),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(de(e,"ping",this.onping.bind(this)),de(e,"data",this.ondata.bind(this)),de(e,"error",this.onerror.bind(this)),de(e,"close",this.onclose.bind(this)),de(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){dt(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new Ds(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ze={};function at(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=ai(n,e.path||"/socket.io"),s=t.source,r=t.id,o=t.path,l=ze[r]&&o in ze[r].nsps,_=e.forceNew||e["force new connection"]||e.multiplex===!1||l;let m;return _?m=new zt(s,e):(ze[r]||(ze[r]=new zt(s,e)),m=ze[r]),t.query&&!e.query&&(e.query=t.queryKey),m.socket(t.path,e)}Object.assign(at,{Manager:zt,Socket:Ds,io:at,connect:at});var yi=R(' <strong class="svelte-1pcdei1"></strong> ',1),bi=R('<a class="view-report-btn svelte-1pcdei1"> <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-1pcdei1"><line x1="5" y1="12" x2="19" y2="12" class="svelte-1pcdei1"></line><polyline points="12 5 19 12 12 19" class="svelte-1pcdei1"></polyline></svg></a>'),wi=R('<span class="run-chip-spinner svelte-1pcdei1"></span>'),ki=R('<span class="run-chip-count svelte-1pcdei1"> </span>'),Ei=R('<div class="run-chip svelte-1pcdei1"><svg width="9" height="10" viewBox="0 0 10 12" fill="currentColor" stroke="none" style="opacity:0.6;flex-shrink:0" class="svelte-1pcdei1"><polygon points="0,0 10,6 0,12" class="svelte-1pcdei1"></polygon></svg> <span class="run-chip-title svelte-1pcdei1"> </span> <!> <button class="run-chip-clear svelte-1pcdei1"><svg width="9" height="9" viewBox="0 0 14 14" fill="none" class="svelte-1pcdei1"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" class="svelte-1pcdei1"></path></svg></button></div>'),Ri=R('<div class="input-wrap svelte-1pcdei1"><svg class="input-icon svelte-1pcdei1" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8" class="svelte-1pcdei1"></circle><line x1="21" y1="21" x2="16.65" y2="16.65" class="svelte-1pcdei1"></line></svg> <input type="text" class="tag-input svelte-1pcdei1" placeholder="@tag or leave blank for all tests"></div>'),xi=R('<button class="dropdown-item svelte-1pcdei1"><span style="color:var(--text-muted)" class="svelte-1pcdei1">✕</span> </button> <div class="dropdown-divider svelte-1pcdei1"></div>',1),Ai=R('<div class="dropdown-empty svelte-1pcdei1"></div>'),Si=R('<button class="dropdown-item svelte-1pcdei1"> </button>'),Ti=R('<div class="dropdown-menu run-pick-menu svelte-1pcdei1"><!> <!></div>'),Bi=R('<button class="dropdown-item svelte-1pcdei1"> </button>'),Ci=R('<div class="dropdown-menu svelte-1pcdei1"></div>'),Li=R('<label class="runner-option svelte-1pcdei1"><input type="checkbox" class="svelte-1pcdei1"> <span class="runner-dot built-in svelte-1pcdei1"></span> <span class="svelte-1pcdei1"></span></label>'),Ni=R('<label class="runner-option svelte-1pcdei1"><input type="checkbox" class="svelte-1pcdei1"> <span class="runner-dot remote svelte-1pcdei1"></span> <span class="svelte-1pcdei1"> </span></label>'),Oi=R('<div class="dropdown-menu runners-menu svelte-1pcdei1"><!> <!></div>'),Ui=R('<div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div>',1),qi=R('<button type="button" class="notify-btn svelte-1pcdei1"></button>'),$i=R('<button type="button" class="notify-btn svelte-1pcdei1"></button>'),Pi=R('<div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="notify-toggles svelte-1pcdei1"><!> <!></div></div>',1),Ii=R('<span class="meta-dot svelte-1pcdei1">·</span> ',1),Di=R('<div class="run-card svelte-1pcdei1"><span class="run-card-dot svelte-1pcdei1"></span> <a class="run-card-main svelte-1pcdei1"><div class="run-card-info svelte-1pcdei1"><span class="run-card-label svelte-1pcdei1"> </span> <span class="run-card-meta svelte-1pcdei1"> <!></span></div> <!> <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="run-card-arrow svelte-1pcdei1"><line x1="5" y1="12" x2="19" y2="12" class="svelte-1pcdei1"></line><polyline points="12 5 19 12 12 19" class="svelte-1pcdei1"></polyline></svg></a> <button class="run-card-cancel svelte-1pcdei1"><svg width="12" height="12" viewBox="0 0 14 14" fill="none" class="svelte-1pcdei1"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" class="svelte-1pcdei1"></path></svg></button></div>'),Mi=R('<div class="empty-runs svelte-1pcdei1"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="empty-icon svelte-1pcdei1"><circle cx="12" cy="12" r="10" class="svelte-1pcdei1"></circle><line x1="10" y1="15" x2="10" y2="12" class="svelte-1pcdei1"></line><line x1="10" y1="9" x2="10.01" y2="9" class="svelte-1pcdei1"></line></svg> </div>'),Vi=R('<div class="body svelte-1pcdei1"><!> <!></div>'),Fi=R('<!> <div class="panel svelte-1pcdei1"><div class="scan-line svelte-1pcdei1"></div> <div class="bar svelte-1pcdei1"><div class="bar-left svelte-1pcdei1"><div class="bar-status svelte-1pcdei1"><span class="status-dot svelte-1pcdei1"></span> <span class="status-word svelte-1pcdei1"> </span></div> <!></div> <span class="flex-gap svelte-1pcdei1"></span> <div class="bar-center svelte-1pcdei1"><!> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div> <div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="stepper svelte-1pcdei1"><button class="step-btn svelte-1pcdei1">−</button> <span class="step-val svelte-1pcdei1"> </span> <button class="step-btn svelte-1pcdei1">+</button></div></div> <div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div> <!> <!> <div class="ctrl-divider svelte-1pcdei1"></div> <button class="run-btn svelte-1pcdei1"><svg width="9" height="10" viewBox="0 0 10 12" fill="currentColor" stroke="none" class="svelte-1pcdei1"><polygon points="0,0 10,6 0,12" class="svelte-1pcdei1"></polygon></svg> </button></div> <span class="flex-gap-sm svelte-1pcdei1"></span> <button class="expand-btn svelte-1pcdei1"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-1pcdei1"><polyline points="18 15 12 9 6 15" class="svelte-1pcdei1"></polyline></svg></button></div> <!></div>',1);function Wi(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(ke,"$runnerConfig",t),o=()=>ge(Ke,"$backgroundRuns",t),l=()=>ge(Dn,"$runsVersion",t),_=()=>ge(Be,"$panelExpanded",t),m=()=>ge(Ut,"$builtInEnabled",t),B=I(),A=I(),N=I(),q=I(),V=I(),ae=I(),be=I(),Re=I(),te=I();let H=I([]),Q=I([]),x=I(null),se=I(!1),Y=I(!1),Z=I(!1),ce=I(!1),he=I(!1),D=I({discordWebhookUrl:"",slackWebhookUrl:"",notifyPublicUrl:""}),O=I(!1),j=I(!1);function G(a){function u(k){a.contains(k.target)||a.dispatchEvent(new CustomEvent("clickoutside"))}return document.addEventListener("click",u,!0),{destroy(){document.removeEventListener("click",u,!0)}}}let ue,z,ie,X,ne=I(null);Yt(()=>{try{const c=localStorage.getItem("plum:runnerConfig");c&&ke.update(d=>({...d,...JSON.parse(c)}))}catch{}try{const c=localStorage.getItem("plum:panelExpanded");c!==null&&Be.set(c==="true")}catch{}try{const c=localStorage.getItem("plum:builtInEnabled");c!==null&&Ut.set(c!=="false")}catch{}wn().then(c=>{E(H,c);const d=new Set([Te,...c.map(f=>f.id)]);ke.update(f=>{const y=f.selectedRunners.filter(g=>d.has(g));return{...f,selectedRunners:y.length>0?y:[Te]}})}).catch(()=>{}),kn().then(c=>E(D,c)).catch(()=>{}),ir().then(c=>{c.length!==0&&(Ke.update(d=>{const f={...d};for(const{runId:y,kind:g,label:b,meta:C,status:$}of c)f[y]||(f[y]=_s({kind:g,label:b,meta:C,status:$}));return f}),Be.set(!0))}).catch(()=>{}),ue=ke.subscribe(c=>{try{localStorage.setItem("plum:runnerConfig",JSON.stringify(c))}catch{}}),z=Be.subscribe(c=>{try{localStorage.setItem("plum:panelExpanded",String(c))}catch{}}),ie=Ut.subscribe(c=>{try{localStorage.setItem("plum:builtInEnabled",String(c))}catch{}ke.update(d=>{if(!c&&d.selectedRunners.includes(Te)){const f=d.selectedRunners.filter(g=>g!==Te),y=f.length>0?f:i(H)[0]?[i(H)[0].id]:[];return{...d,selectedRunners:y}}return d})});const a=at(pn,{transports:["websocket"]});X=a,En.set(a),a.on(Ee.REPORT_READY,()=>gs.update(c=>c+1));function u(c,d){Ke.update(f=>f[c]?{...f,[c]:d(f[c])}:f)}function k(c,{kind:d,label:f,meta:y},g){Ke.update(b=>({...b,[c]:b[c]?{...b[c],status:g}:_s({kind:d,label:f,meta:y,status:g})})),Be.set(!0)}a.on(Ee.BG_RUN_QUEUED,({runId:c,kind:d,label:f,meta:y})=>{k(c,{kind:d,label:f,meta:y},"queued")}),a.on(Ee.BG_RUN_START,({runId:c,kind:d,label:f,meta:y})=>{k(c,{kind:d,label:f,meta:y},"running")}),a.on(Ee.BG_RUN_LOG,({runId:c,log:d})=>{u(c,f=>({...f,output:f.output+d}))}),a.on(Ee.BG_RUN_LANES_INIT,({runId:c,lanes:d})=>{u(c,f=>({...f,lanes:d.map(y=>({...y,status:"running",logs:""}))}))});function T(c,d,f){const y=c.lanes.some(g=>g.id===d)?c.lanes.map(g=>g.id===d?{...g,...f(g)}:g):[...c.lanes,{id:d,name:d,testCount:0,status:"running",logs:"",...f({logs:""})}];return{...c,lanes:y}}a.on(Ee.BG_RUN_LANE_LOG,({runId:c,laneId:d,log:f})=>{u(c,y=>T(y,d,g=>({logs:(g.logs||"")+f})))}),a.on(Ee.BG_RUN_LANE_STATUS,({runId:c,laneId:d,status:f})=>{u(c,y=>T(y,d,()=>({status:f})))}),a.on(Ee.BG_RUN_LANE_RRWEB_BATCH,({runId:c,...d})=>{u(c,f=>({...f,rrwebByLane:Rn(f.rrwebByLane,d)}))}),a.on(Ee.BG_RUN_DONE,({runId:c,code:d,reportId:f})=>{const y=d===0||d===null,g=d===130;u(c,b=>({...b,status:"done",testCompleted:!g,latestReportId:g?null:f,verdict:g?"cancelled":y?"pass":"fail"})),!g&&f&&E(ne,{reportId:f,verdict:y?"pass":"fail"}),g||gs.update(b=>b+1),setTimeout(()=>{Ke.update(b=>{const C={...b};return delete C[c],C})},fn+5e3)})}),ln(()=>{ue==null||ue(),z==null||z(),ie==null||ie(),X==null||X.disconnect()});async function Ne(a){E(ce,!1),E(x,{id:a.id,title:a.title,tags:null}),E(se,!0);try{const k=(await rr(a.id)).entries.filter(T=>{var c;return(c=T.case)==null?void 0:c.isAutomated}).map(T=>`@${T.case.displayId}`);E(x,{id:a.id,title:a.title,tags:k})}catch{E(x,null)}finally{E(se,!1)}}function Ge(){E(x,null)}function xe(){const a={notifyDiscord:i(O),notifySlack:i(j)};if(i(x)){if(i(se)||!i(x).tags||i(x).tags.length===0)return;qt(i(x).tags.join(" or "),i(x).id,a,i(x).title)}else r().testID.trim()===""?E(he,!0):qt(void 0,void 0,a)}function ft(a){a.key==="Enter"&&!i(x)&&xe()}function Zt(a){ke.update(u=>({...u,workers:Math.max(ps,Math.min(fs,u.workers+a))}))}function es(a){ke.update(u=>{const k=u.selectedRunners;if(k.includes(a)&&k.length===1)return u;const T=k.includes(a)?k.filter(c=>c!==a):[...k,a];return{...u,selectedRunners:T}})}function vt(a){return r().selectedRunners.includes(a)}_e(()=>r(),()=>{E(B,r())}),_e(()=>o(),()=>{E(A,Object.entries(o()).filter(([,a])=>a.status==="queued"||a.status==="running"))}),_e(()=>i(A),()=>{E(N,i(A).filter(([,a])=>a.status==="running").length)}),_e(()=>i(A),()=>{E(q,i(A).filter(([,a])=>a.status==="queued").length)}),_e(()=>i(A),()=>{E(V,i(A).length>0)}),_e(()=>(l(),ds),()=>{l()>=0&&nr({limit:ds}).then(a=>E(Q,a.runs)).catch(()=>{})}),_e(()=>(i(N),i(q),i(ne)),()=>{var a,u;E(ae,i(N)>0?"var(--accent)":i(q)>0?"var(--warn)":((a=i(ne))==null?void 0:a.verdict)==="pass"?"var(--pass)":((u=i(ne))==null?void 0:u.verdict)==="fail"?"var(--fail)":"var(--border)")}),_e(()=>(i(N),i(q),i(ne)),()=>{var a;E(be,xn({running:i(N),queued:i(q),verdict:(a=i(ne))==null?void 0:a.verdict}))}),_e(()=>i(B),()=>{E(Re,Nt.find(a=>a.id===i(B).browser)??Nt[0])}),_e(()=>(i(B),i(H)),()=>{E(te,An(i(B),i(H)))}),hn(),ct();var ts=Fi(),ss=ee(ts);cr(ss,{title:Tn,confirmLabel:Sn,get open(){return i(he)},set open(a){E(he,a)},$$events:{confirm:()=>{E(he,!1),qt(void 0,void 0,{notifyDiscord:i(O),notifySlack:i(j)})}},children:(a,u)=>{He();var k=yi(),T=ee(k);T.nodeValue=`${Bn} `;var c=h(T);c.textContent=Cn;var d=h(c);d.nodeValue=` ${Ln}`,w(a,k)},$$slots:{default:!0},$$legacy:!0});var _t=h(ss,2),Je=v(_t),gt=h(Je,2),mt=v(gt),yt=v(mt),bt=v(yt),wt=h(bt,2),Ms=v(wt,!0);p(wt),p(yt);var Vs=h(yt,2);{var Fs=a=>{var u=bi(),k=v(u);k.nodeValue=`${Mn} `,He(),p(u),M(T=>J(u,"href",T),[()=>tr(i(ne).reportId)],re),U("click",u,()=>Be.set(!1)),Ce(3,u,()=>Pe,()=>({x:-6,duration:200})),w(a,u)};P(Vs,a=>{var u;!i(V)&&((u=i(ne))!=null&&u.reportId)&&a(Fs)})}p(mt);var kt=h(mt,4),ns=v(kt);{var Ws=a=>{var u=Ei(),k=h(v(u),2),T=v(k,!0);p(k);var c=h(k,2);{var d=g=>{var b=wi();w(g,b)},f=g=>{var b=Ie(),C=ee(b);{var $=F=>{var oe=ki(),pe=v(oe,!0);p(oe),M(Fe=>{L(oe,"none",i(x).tags.length===0),K(pe,Fe)},[()=>er(i(x).tags.length)],re),w(F,oe)};P(C,F=>{i(x).tags!==null&&F($)},!0)}w(g,b)};P(c,g=>{i(se)?g(d):g(f,!1)})}var y=h(c,2);J(y,"aria-label",Vn),p(u),M(()=>{L(u,"loading",i(se)),K(T,i(x).title)}),U("click",y,Ge),w(a,u)},Hs=a=>{var u=Ri(),k=h(v(u),2);Ot(k),p(u),M(()=>vn(k,r().testID)),U("input",k,T=>ke.update(c=>({...c,testID:T.currentTarget.value}))),U("keydown",k,ft),w(a,u)};P(ns,a=>{i(x)?a(Ws):a(Hs,!1)})}var Et=h(ns,2),rs=v(Et);rs.textContent=Nn;var Xe=h(rs,2),Ue=v(Xe),Rt=v(Ue),Ks=v(Rt,!0);p(Rt);var zs=h(Rt,2);p(Ue);var Ys=h(Ue,2);{var js=a=>{var u=Ti(),k=v(u);{var T=y=>{var g=xi(),b=ee(g),C=h(v(b));C.nodeValue=` ${_n}`,p(b),He(2),U("click",b,Ge),w(y,g)};P(k,y=>{i(x)&&y(T)})}var c=h(k,2);{var d=y=>{var g=Ai();g.textContent=Jn,w(y,g)},f=y=>{var g=Ie(),b=ee(g);Oe(b,1,()=>i(Q).filter(C=>C.status!=="complete"),je,(C,$)=>{var F=Si(),oe=v(F,!0);p(F),M(()=>{var pe;L(F,"active",((pe=i(x))==null?void 0:pe.id)===i($).id),K(oe,i($).title)}),U("click",F,()=>Ne(i($))),w(C,F)}),w(y,g)};P(c,y=>{i(Q).filter(g=>g.status!=="complete").length===0?y(d):y(f,!1)})}p(u),Ce(3,u,()=>Pe,()=>({y:6,duration:130})),w(a,u)};P(Ys,a=>{i(ce)&&a(js)})}p(Xe),$t(Xe,a=>G==null?void 0:G(a)),nt(()=>U("clickoutside",Xe,()=>E(ce,!1))),p(Et);var xt=h(Et,4),is=v(xt);is.textContent=On;var os=h(is,2),At=v(os),St=h(At,2),Gs=v(St,!0);p(St);var as=h(St,2);p(os),p(xt);var Tt=h(xt,4),cs=v(Tt);cs.textContent=Un;var Qe=h(cs,2),Me=v(Qe),Bt=v(Me),Js=v(Bt,!0);p(Bt);var Xs=h(Bt,2);p(Me);var Qs=h(Me,2);{var Zs=a=>{var u=Ci();Oe(u,5,()=>Nt,je,(k,T)=>{var c=Bi(),d=v(c,!0);p(c),M(()=>{L(c,"active",i(B).browser===i(T).id),K(d,i(T).label)}),U("click",c,()=>{ke.update(f=>({...f,browser:i(T).id})),E(Y,!1)}),w(k,c)}),p(u),Ce(3,u,()=>Pe,()=>({y:6,duration:130})),w(a,u)};P(Qs,a=>{i(Y)&&a(Zs)})}p(Qe),$t(Qe,a=>G==null?void 0:G(a)),nt(()=>U("clickoutside",Qe,()=>E(Y,!1))),p(Tt);var ls=h(Tt,2);{var en=a=>{var u=Ui(),k=h(ee(u),2),T=v(k);T.textContent=Fn;var c=h(T,2),d=v(c),f=v(d),y=v(f,!0);p(f);var g=h(f,2);p(d);var b=h(d,2);{var C=$=>{var F=Oi(),oe=v(F);{var pe=Ae=>{var fe=Li(),ve=v(fe);Ot(ve);var Se=h(ve,4);Se.textContent=yn,p(fe),M(qe=>vs(ve,qe),[()=>vt(Te)],re),U("change",ve,()=>es(Te)),w(Ae,fe)};P(oe,Ae=>{(m()||vt(Te))&&Ae(pe)})}var Fe=h(oe,2);Oe(Fe,1,()=>i(H),je,(Ae,fe)=>{var ve=Ni(),Se=v(ve);Ot(Se);var qe=h(Se,4),Ct=v(qe,!0);p(qe),p(ve),M(We=>{vs(Se,We),K(Ct,i(fe).name)},[()=>vt(i(fe).id)],re),U("change",Se,()=>es(i(fe).id)),w(Ae,ve)}),p(F),Ce(3,F,()=>Pe,()=>({y:6,duration:130})),w($,F)};P(b,$=>{i(Z)&&$(C)})}p(c),$t(c,$=>G==null?void 0:G($)),nt(()=>U("clickoutside",c,()=>E(Z,!1))),p(k),M($=>{L(d,"open",i(Z)),L(d,"has-remote",$),K(y,i(te)),L(g,"open",i(Z))},[()=>i(B).selectedRunners.some($=>$!==Te)],re),U("click",d,()=>{E(Z,!i(Z))}),w(a,u)};P(ls,a=>{i(H).length>0&&a(en)})}var hs=h(ls,2);{var tn=a=>{var u=Pi(),k=h(ee(u),2),T=v(k);T.textContent=Wn;var c=h(T,2),d=v(c);{var f=b=>{var C=qi();C.textContent=gn,M($=>{J(C,"title",$),L(C,"active",i(O))},[()=>Xn(i(O))],re),U("click",C,()=>E(O,!i(O))),w(b,C)};P(d,b=>{i(D).discordWebhookUrl&&b(f)})}var y=h(d,2);{var g=b=>{var C=$i();C.textContent=mn,M($=>{J(C,"title",$),L(C,"active",i(j))},[()=>Qn(i(j))],re),U("click",C,()=>E(j,!i(j))),w(b,C)};P(y,b=>{i(D).slackWebhookUrl&&b(g)})}p(c),p(k),w(a,u)};P(hs,a=>{(i(D).discordWebhookUrl||i(D).slackWebhookUrl)&&a(tn)})}var Ve=h(hs,4),sn=h(v(Ve));sn.nodeValue=` ${qn}`,p(Ve),p(kt);var Ze=h(kt,4),nn=v(Ze);p(Ze),p(gt);var rn=h(gt,2);{var on=a=>{var u=Vi(),k=v(u);Oe(k,3,()=>i(A),([d,f])=>d,(d,f,y)=>{let g=()=>i(f)[0],b=()=>i(f)[1];var C=Di(),$=v(C),F=h($,2),oe=v(F),pe=v(oe),Fe=v(pe,!0);p(pe);var Ae=h(pe,2),fe=v(Ae),ve=h(fe);{var Se=we=>{var $e=Ii(),et=h(ee($e));M(Lt=>K(et,` ${Lt??""}`),[()=>Gn(b().currentRun.startedBy)],re),w(we,$e)};P(ve,we=>{var $e;($e=b().currentRun)!=null&&$e.startedBy&&we(Se)})}p(Ae),p(oe);var qe=h(oe,2);const Ct=re(()=>b().status==="queued"?"tag":ar(b().kind));lr(qe,{get variant(){return i(Ct)},children:(we,$e)=>{He();var et=an();M(Lt=>K(et,Lt),[()=>b().status==="queued"?Hn:or(b().kind)],re),w(we,et)},$$slots:{default:!0}}),He(2),p(F);var We=h(F,2);J(We,"title",ms),J(We,"aria-label",ms),p(C),M(we=>{L(C,"active-run",b().status==="running"),L(C,"queued-run",b().status==="queued"),L($,"pulse-accent",b().status==="running"),L($,"queued-dot",b().status==="queued"),J(F,"href",`/live/${g()??""}`),K(Fe,b().label||Yn),K(fe,`${we??""} `)},[()=>b().status==="queued"?Kn(i(A).slice(0,i(y)).filter(([,we])=>we.status==="queued").length+1):zn(b().kind)],re),U("click",F,()=>Be.set(!1)),U("click",We,()=>jn(g())),Ce(3,C,()=>Pe,()=>({x:-4,duration:160})),w(d,C)});var T=h(k,2);{var c=d=>{var f=Mi(),y=h(v(f));y.nodeValue=` ${Zn}`,p(f),w(d,f)};P(T,d=>{i(V)||d(c)})}p(u),Ce(3,u,()=>Rs,()=>({duration:200})),w(a,u)};P(rn,a=>{_()&&a(on)})}p(_t),M(a=>{var u,k,T,c;L(_t,"expanded",_()),L(Je,"scanning",i(N)>0),L(Je,"line-pass",((u=i(ne))==null?void 0:u.verdict)==="pass"&&!i(V)),L(Je,"line-fail",((k=i(ne))==null?void 0:k.verdict)==="fail"&&!i(V)),J(bt,"style",`background:${i(ae)??""}`),L(bt,"pulse",i(N)>0),J(wt,"style",`color:${i(ae)??""}`),K(Ms,i(be)),L(Ue,"open",i(ce)),L(Ue,"has-remote",!!i(x)),K(Ks,i(x)?i(x).title:Pn),L(zs,"open",i(ce)),At.disabled=i(B).workers<=ps,K(Gs,i(B).workers),as.disabled=i(B).workers>=fs,L(Me,"open",i(Y)),K(Js,i(Re).label),L(Xs,"open",i(Y)),Ve.disabled=i(se)||i(x)&&((T=i(x).tags)==null?void 0:T.length)===0,J(Ve,"title",i(x)&&((c=i(x).tags)==null?void 0:c.length)===0?In:void 0),J(Ze,"aria-label",a),L(nn,"flipped",_())},[()=>$n(_())],re),U("click",Ue,()=>{E(ce,!i(ce))}),U("click",At,()=>Zt(-1)),U("click",as,()=>Zt(1)),U("click",Me,()=>{E(Y,!i(Y))}),U("click",Ve,xe),U("click",Ze,()=>Be.update(a=>!a)),w(n,ts),ht(),s()}function Hi(n,{from:e,to:t},s={}){var{delay:r=0,duration:o=Y=>Math.sqrt(Y)*120,easing:l=hr}=s,_=getComputedStyle(n),m=_.transform==="none"?"":_.transform,[B,A]=_.transformOrigin.split(" ").map(parseFloat);B/=n.clientWidth,A/=n.clientHeight;var N=Ki(n),q=n.clientWidth/t.width/N,V=n.clientHeight/t.height/N,ae=e.left+e.width*B,be=e.top+e.height*A,Re=t.left+t.width*B,te=t.top+t.height*A,H=(ae-Re)*q,Q=(be-te)*V,x=e.width/t.width,se=e.height/t.height;return{delay:r,duration:typeof o=="function"?o(Math.sqrt(H*H+Q*Q)):o,easing:l,css:(Y,Z)=>{var ce=Z*H,he=Z*Q,D=Y+Z*x,O=Y+Z*se;return`transform: ${m} translate(${ce}px, ${he}px) scale(${D}, ${O});`}}}function Ki(n){if("currentCSSZoom"in n)return n.currentCSSZoom;for(var e=n,t=1;e!==null;)t*=+getComputedStyle(e).zoom,e=e.parentElement;return t}var zi=R('<div class="card svelte-19gnuo1"><div class="row svelte-19gnuo1"><span></span> <span class="msg svelte-19gnuo1"> </span> <button class="link svelte-19gnuo1"><svg width="12" height="12" viewBox="0 0 14 14" fill="none"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"></path></svg></button></div></div>'),Yi=R('<div class="stack svelte-19gnuo1"></div>');function ji(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(dr,"$notifications",t);ct();var o=Yi();Oe(o,13,r,l=>l.id,(l,_)=>{var m=zi(),B=v(m),A=v(B),N=h(A,2),q=v(N,!0);p(N);var V=h(N,2);J(V,"aria-label",sr),p(B),p(m),M(()=>{un(A,`dot ${i(_).type??""} svelte-19gnuo1`),K(q,i(_).message)}),U("click",V,()=>ur(i(_).id)),dn(m,()=>Hi,()=>({duration:180})),Ce(3,m,()=>Pe,()=>({y:12,duration:200})),w(l,m)}),p(o),w(n,o),ht(),s()}var Gi=R("<!> <!> <!> <!>",1),Ji=R('<div class="boot-loading svelte-3qbr79">Loading…</div>');function bo(n,e){lt(e,!1);const[t,s]=ut(),r=()=>ge(xs,"$page",t),o=()=>ge(As,"$auth",t),l=["/login","/setup"];let _=I(!1);Yt(async()=>{const q=r().url.pathname;if(l.includes(q)){E(_,!0);return}if(o().token){E(_,!0);return}try{const ae=await pr();await us(ae?"/setup":"/login")}catch{await us("/login")}finally{E(_,!0)}}),ct();var m=Ie(),B=ee(m);{var A=q=>{var V=Ie(),ae=ee(V);{var be=te=>{var H=Ie(),Q=ee(H);Mt(Q,e,"default",{},null),w(te,H)},Re=te=>{var H=Gi(),Q=ee(H);Rr(Q,{});var x=h(Q,2);Ar(x,{children:(Z,ce)=>{var he=Ie(),D=ee(he);Mt(D,e,"default",{},null),w(Z,he)},$$slots:{default:!0}});var se=h(x,2);Wi(se,{});var Y=h(se,2);ji(Y,{}),w(te,H)};P(ae,te=>{r().url.pathname==="/login"||r().url.pathname==="/setup"?te(be):te(Re,!1)})}w(q,V)},N=q=>{var V=Ji();w(q,V)};P(B,q=>{i(_)?q(A):q(N,!1)})}w(n,m),ht(),s()}export{bo as component,mo as universal};
|
|
Binary file
|
|
Binary file
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import{a as g,t as h,s}from"../chunks/6VDMVB5U.js";import{i as d}from"../chunks/CtgCYzu5.js";import{p as l,f as v,t as x,c as _,d as o,k as p,j as k}from"../chunks/BIf7lHIm.js";import{s as $,p as i}from"../chunks/
|
|
6
|
+
import{a as g,t as h,s}from"../chunks/6VDMVB5U.js";import{i as d}from"../chunks/CtgCYzu5.js";import{p as l,f as v,t as x,c as _,d as o,k as p,j as k}from"../chunks/BIf7lHIm.js";import{s as $,p as i}from"../chunks/BqJQeI8K.js";const b={get error(){return i.error},get status(){return i.status}};$.updated.check;const m=b;var j=h("<h1> </h1> <p> </p>",1);function z(c,n){l(n,!1),d();var r=j(),t=v(r),f=o(t,!0);p(t);var e=k(t,2),u=o(e,!0);p(e),x(()=>{var a;s(f,m.status),s(u,(a=m.error)==null?void 0:a.message)}),g(c,r),_()}export{z as component};
|
|
Binary file
|
|
Binary file
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
import{a as o,t as u,s as w,h as ga,b as Te,c as Ke,e as R,n as ba}from"../chunks/6VDMVB5U.js";import{i as Xt}from"../chunks/CtgCYzu5.js";import{p as ht,l as me,s as i,aj as zt,b as Et,d as r,k as a,t as E,g as e,c as Lt,m as b,o as wa,f as se,x as Fe,$ as ha,y as Pt,j as l,n as pe}from"../chunks/BIf7lHIm.js";import{i as m,s as Ea,a as Ut}from"../chunks/D_thT6pZ.js";import{t as k,s as La,a as mt,f as xt,e as Be,i as ft}from"../chunks/BTV7EXZb.js";import{l as Aa,r as Mt,i as Vt,j as Gt,C as Ca,L as Ta,s as Ne}from"../chunks/C4Z3p6jE.js";import{b as jt}from"../chunks/BnXsGCy3.js";import{B as Se,i as Sa,s as ya}from"../chunks/qvxlSGpD.js";import{p as ka}from"../chunks/QwDXcLXz.js";import{v as gt,j as Ia,w as $a,x as De,y as Oa,z as Ra}from"../chunks/B74j8LrV.js";import{r as bt}from"../chunks/htkwR9b-.js";import{a as Ba}from"../chunks/CXQhSK1T.js";import{M as Na}from"../chunks/CUPWZLIN.js";import{n as re}from"../chunks/BDb8hZHu.js";import{E as Da}from"../chunks/CNpD-yNH.js";import{p as Je}from"../chunks/D72giPTu.js";import{ae as Pa,F as Ua,aO as Ma,aP as Va,T as Ga,aQ as ja,aR as Ha,aS as Ka,aT as Fa,aU as Xa,aV as za,aW as Wa,aX as Ya,aY as Ja,aZ as qa,a_ as Qa,a$ as Za,b0 as es,b1 as ts,b2 as as,b3 as ss,b4 as rs,b5 as ls,b6 as is,b7 as os,b8 as ns,b9 as vs,ba as ds,bb as cs,bc as us,bd as _s,be as ps,bf as ms,bg as xs,bh as fs,bi as gs,bj as Ht,bk as bs,bl as ws,bm as hs,bn as Es,a8 as Ls,bo as As}from"../chunks/DFZtPGTY.js";var Cs=u('<span class="auto-badge svelte-1yr9844"></span>');function lt(Le){var q=Cs();q.textContent=Aa,o(Le,q)}var Ts=u('<span class="priority-badge svelte-1m066kw"> </span>');function Kt(Le,q){ht(q,!1);const V=b();let Q=Je(q,"priority",8,"Medium"),G=Je(q,"small",8,!1);me(()=>zt(Q()),()=>{var Xe;i(V,((Xe=Q())==null?void 0:Xe.toLowerCase())??"medium")}),Et(),Xt();var z=Ts(),Pe=r(z,!0);a(z),E(()=>{k(z,"critical",e(V)==="critical"),k(z,"high",e(V)==="high"),k(z,"medium",e(V)==="medium"),k(z,"low",e(V)==="low"),k(z,"small",G()),w(Pe,Q())}),o(Le,z),Lt()}var Ss=u('<span class="id-chip svelte-1gmo0py"> </span>');function wt(Le,q){let V=Je(q,"id",8,""),Q=Je(q,"small",8,!1);var G=Ss(),z=r(G,!0);a(G),E(()=>{k(G,"small",Q()),w(z,V())}),o(Le,G)}var ys=u('<span class="result-chip svelte-1rgb1a1"> </span>');function Ft(Le,q){ht(q,!1);const V=b();let Q=Je(q,"status",8,"pending");me(()=>zt(Q()),()=>{i(V,Q()==="pass"?"pass":Q()==="fail"?"fail":Q()==="blocked"?"warn":Q()==="skip"?"muted":"pending")}),Et();var G=ys(),z=r(G,!0);a(G),E(()=>{k(G,"pass",e(V)==="pass"),k(G,"fail",e(V)==="fail"),k(G,"warn",e(V)==="warn"),k(G,"muted",e(V)==="muted"),k(G,"pending",e(V)==="pending"),w(z,Q())}),o(Le,G),Lt()}var ks=u('<div class="form-fields svelte-1mxlw2t"><div class="field"><label class="field-label" for="er-title"></label> <input id="er-title" type="text" class="field-input"></div> <div class="modal-actions svelte-1mxlw2t"><!> <!></div></div>'),Is=u('<div class="loading-state svelte-1mxlw2t"></div>'),$s=u("<!> <!>",1),Os=u("<!> <!> <!>",1),Rs=u('<span class="exec-progress svelte-1mxlw2t"> </span>'),Bs=u('<span class="locked-badge svelte-1mxlw2t"></span>'),Ns=u('<span class="entry-sort-dir svelte-1mxlw2t"> </span>'),Ds=u('<button class="entry-sort-chip svelte-1mxlw2t"> <!></button>'),Ps=ba('<svg class="drag-handle svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="currentColor"><circle cx="9" cy="5" r="1.5"></circle><circle cx="15" cy="5" r="1.5"></circle><circle cx="9" cy="12" r="1.5"></circle><circle cx="15" cy="12" r="1.5"></circle><circle cx="9" cy="19" r="1.5"></circle><circle cx="15" cy="19" r="1.5"></circle></svg>'),Us=u("<option> </option>"),Ms=u('<select class="assignee-select svelte-1mxlw2t"><option></option><!></select>'),Vs=u('<button class="icon-btn danger svelte-1mxlw2t"><svg width="11" height="11" viewBox="0 0 14 14" fill="none"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>'),Gs=u('<div class="entry-row svelte-1mxlw2t" role="listitem"><!> <div class="entry-info svelte-1mxlw2t"><div class="entry-badges svelte-1mxlw2t"><!> <!></div> <p class="entry-title svelte-1mxlw2t"> </p> <span class="entry-suite svelte-1mxlw2t"> </span></div> <!> <!></div>'),js=u('<div class="entry-sort-bar svelte-1mxlw2t"></div> <div class="entry-list svelte-1mxlw2t" role="list"></div>',1),Hs=u('<button class="browser-case svelte-1mxlw2t"><!> <span class="browser-case-title svelte-1mxlw2t"> </span> <!> <!></button>'),Ks=u('<div class="browser-cases svelte-1mxlw2t"></div>'),Fs=u('<p class="browser-empty svelte-1mxlw2t"> </p>'),Xs=u('<div class="browser-suite svelte-1mxlw2t"><button class="browser-suite-header svelte-1mxlw2t"><svg class="chevron svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="9 18 15 12 9 6"></polyline></svg> <span class="browser-suite-name svelte-1mxlw2t"> </span> <span class="browser-suite-count svelte-1mxlw2t"> </span></button> <!></div>'),zs=u('<p class="browser-empty svelte-1mxlw2t"></p>'),Ws=u('<div class="builder-panel right-panel svelte-1mxlw2t"><div class="builder-panel-head svelte-1mxlw2t"><h2 class="builder-panel-title svelte-1mxlw2t"></h2> <input type="text" class="search-input svelte-1mxlw2t"></div> <div class="suite-browser svelte-1mxlw2t"><!> <!></div></div>'),Ys=u('<div class="builder-workspace svelte-1mxlw2t"><div class="builder-panel left-panel svelte-1mxlw2t"><div class="builder-panel-head svelte-1mxlw2t"><h2 class="builder-panel-title svelte-1mxlw2t"></h2> <span class="count-chip svelte-1mxlw2t"> </span> <!></div> <!></div> <!></div>'),Js=u('<div class="exec-locked-banner svelte-1mxlw2t"></div>'),qs=u('<div class="progress-bar-wrap svelte-1mxlw2t"><div class="progress-stats svelte-1mxlw2t"><span class="stat pass svelte-1mxlw2t"> </span> <span class="stat fail svelte-1mxlw2t"> </span> <span class="stat muted svelte-1mxlw2t"> </span></div> <div class="progress-bar svelte-1mxlw2t"><div class="progress-fill pass svelte-1mxlw2t"></div> <div class="progress-fill fail svelte-1mxlw2t"></div></div></div>'),Qs=u('<button class="exec-chevron svelte-1mxlw2t"><svg class="chevron svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="9 18 15 12 9 6"></polyline></svg></button>'),Zs=u('<div class="exec-assignee-row svelte-1mxlw2t"><!></div> <div class="exec-assignee-divider svelte-1mxlw2t"></div>',1),er=u('<span class="exec-assignee-name svelte-1mxlw2t"> </span>'),tr=u('<button class="exec-assign-me svelte-1mxlw2t"></button>'),ar=u('<div class="exec-assignee-row svelte-1mxlw2t"><!> <!></div> <div class="exec-assignee-divider svelte-1mxlw2t"></div>',1),sr=u('<div class="exec-btns svelte-1mxlw2t"><button class="exec-btn in-progress svelte-1mxlw2t"></button> <button class="exec-btn pass svelte-1mxlw2t"></button> <button class="exec-btn fail svelte-1mxlw2t"></button> <button class="exec-btn warn svelte-1mxlw2t"></button> <button class="exec-btn muted svelte-1mxlw2t"></button></div>'),rr=u('<div class="exec-btns svelte-1mxlw2t"><!> <button class="exec-reset svelte-1mxlw2t"></button></div>'),lr=u('<p class="exec-step-data svelte-1mxlw2t"> </p>'),ir=u('<p class="exec-step-expected svelte-1mxlw2t"> </p>'),or=u('<div class="exec-step svelte-1mxlw2t"><span class="exec-step-num svelte-1mxlw2t"></span> <div class="exec-step-body svelte-1mxlw2t"><p class="exec-step-action svelte-1mxlw2t"> </p> <!> <!></div></div>'),nr=u('<div class="exec-steps svelte-1mxlw2t"></div>'),vr=u('<div class="execute-row svelte-1mxlw2t"><div class="execute-row-main svelte-1mxlw2t"><div class="exec-info svelte-1mxlw2t"><!> <!> <!> <div><p class="exec-title svelte-1mxlw2t"> </p> <span class="exec-suite svelte-1mxlw2t"> </span></div></div> <div class="exec-actions svelte-1mxlw2t"><!> <!></div></div> <!></div>'),dr=u('<div class="execute-workspace"><!> <!> <div class="execute-list svelte-1mxlw2t"></div></div>'),cr=u('<div class="run-header svelte-1mxlw2t"><div class="run-header-left svelte-1mxlw2t"><h1 class="run-title svelte-1mxlw2t"> </h1> <span> </span> <button class="icon-btn svelte-1mxlw2t"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg></button></div> <div class="run-header-actions svelte-1mxlw2t"><!></div></div> <div class="mode-tabs svelte-1mxlw2t"><button class="mode-tab svelte-1mxlw2t"></button> <button class="mode-tab svelte-1mxlw2t"> <!></button></div> <!>',1),ur=u('<!> <div class="breadcrumb svelte-1mxlw2t"><a href="/test-repository" class="bc-link svelte-1mxlw2t"></a> <span class="bc-sep svelte-1mxlw2t">›</span> <span class="bc-current"> </span></div> <!>',1);function Ir(Le,q){ht(q,!1);const[V,Q]=Ea(),G=()=>Ut(ka,"$page",V),z=()=>Ut(Ba,"$auth",V),Pe=b(),Xe=b(),qe=b(),it=b(),j=b(),ot=b(),ke=b(),nt=b(),vt=b(),xe=G().params.id;let le=b("build"),s=b(null),Qe=b([]),At=b([]),Ct=b(!0),Ze=b(!1),et=b(null),ie=b(""),Ae=b(new Set);const Tt={Critical:0,High:1,Medium:2,Low:3};let I=b((()=>{try{const t=sessionStorage.getItem("plum:run:entries:sort");if(t)return JSON.parse(t)}catch{}return{by:"order",order:"asc"}})());function Wt(t){e(I).by===t?Pt(I,e(I).order=e(I).order==="asc"?"desc":"asc"):i(I,{by:t,order:"asc"});try{sessionStorage.setItem("plum:run:entries:sort",JSON.stringify(e(I)))}catch{}}let Ue=b(null),tt=b(null),dt=b(null),St="",Ie=b(new Set),ze=b(!1),We=b({}),at=b(!1);function Yt(t){e(Ie).has(t)?e(Ie).delete(t):e(Ie).add(t),i(Ie,new Set(e(Ie)))}wa(async()=>{try{await(async t=>(i(s,t[0]),i(Qe,t[1]),i(At,t[2])))(await Promise.all([gt(xe),Ia(),$a()])),i(Ae,new Set(e(Qe).map(t=>t.id))),e(s).status==="in-progress"&&i(le,"execute")}catch{re("error",Ua)}finally{i(Ct,!1)}});async function yt(t,v){i(et,t);try{const _=await Oa(t,v||null);i(s,{...e(s),entries:e(s).entries.map(f=>f.id===t?{...f,assignedToId:_.assignedToId,assignedTo:_.assignedTo}:f)})}catch(_){re("error",_.message)}finally{i(et,null)}}async function Jt(t){if(!e(s)||e(qe).has(t.id))return;const v=e(s),_={id:`tmp-${t.id}`,order:e(s).entries.length,status:"pending",notes:"",executedAt:null,executedBy:null,case:t};i(s,{...e(s),entries:[...e(s).entries,_]});try{const f=e(s).entries.map(ae=>ae.case.id);await De(xe,{caseIds:f}),i(s,await gt(xe))}catch{i(s,v),re("error",xs)}}function qt(t){i(s,{...e(s),entries:e(s).entries.filter(v=>v.id!==t)})}async function Qt(){i(at,!0);try{const t=await De(xe,e(We));i(s,{...e(s),...t}),i(ze,!1),re("success",ja)}catch(t){re("error",t.message)}finally{i(at,!1)}}async function kt(){i(Ze,!0);try{const t=e(s).entries.map(_=>_.case.id),v=await De(xe,{caseIds:t});i(s,await gt(xe)),re("success",ms)}catch(t){re("error",t.message)}finally{i(Ze,!1)}}async function Zt(){await kt(),await De(xe,{status:"in-progress"}),i(s,{...e(s),status:"in-progress"}),i(le,"execute")}async function Me(t,v){i(dt,t.id);try{const _=await Ra(t.id,{status:v,notes:St});i(s,{...e(s),entries:e(s).entries.map(f=>f.id===t.id?{...f,..._,status:v}:f)}),St=""}catch(_){re("error",_.message)}finally{i(dt,null)}}async function ea(){try{await De(xe,{status:"backlog"}),i(s,{...e(s),status:"backlog"}),i(le,"build"),bt.update(t=>t+1)}catch(t){re("error",t.message)}}async function ta(){try{await De(xe,{status:"complete"}),i(s,{...e(s),status:"complete"}),bt.update(t=>t+1),re("success",As)}catch(t){re("error",t.message)}}async function aa(){try{await De(xe,{status:"backlog"}),i(s,{...e(s),status:"backlog"}),i(le,"build"),bt.update(t=>t+1),re("success",Ya)}catch(t){re("error",t.message)}}function sa(t,v){i(Ue,v),t.dataTransfer.effectAllowed="move"}function ra(t,v){t.preventDefault(),i(tt,v)}function la(t,v){if(t.preventDefault(),!e(Ue)||e(Ue)===v)return;const _=[...e(s).entries],f=_.findIndex(ge=>ge.id===e(Ue)),ae=_.findIndex(ge=>ge.id===v),[fe]=_.splice(f,1);_.splice(ae,0,fe),i(s,{...e(s),entries:_}),i(Ue,null),i(tt,null)}me(()=>z(),()=>{var t,v;i(Pe,((v=(t=z())==null?void 0:t.user)==null?void 0:v.id)??null)}),me(()=>(e(s),e(I)),()=>{i(Xe,(()=>{if(!e(s))return[];const t=[...e(s).entries],v=e(I).order==="asc"?1:-1;return e(I).by==="name"?t.sort((_,f)=>v*_.case.title.localeCompare(f.case.title)):e(I).by==="priority"?t.sort((_,f)=>v*((Tt[_.case.priority]??99)-(Tt[f.case.priority]??99))):e(I).by==="status"?t.sort((_,f)=>v*_.status.localeCompare(f.status)):e(I).by==="suite"?t.sort((_,f)=>{var ae,fe;return v*(((ae=_.case.suite)==null?void 0:ae.name)??"").localeCompare(((fe=f.case.suite)==null?void 0:fe.name)??"")}):t.sort((_,f)=>v*(_.order-f.order))})())}),me(()=>e(s),()=>{var t;i(qe,new Set(((t=e(s))==null?void 0:t.entries.map(v=>v.case.id))??[]))}),me(()=>(e(Qe),e(qe),e(ie)),()=>{i(it,e(Qe).map(t=>({...t,_totalCases:(t.cases??[]).length,cases:(t.cases??[]).filter(v=>!e(qe).has(v.id)&&(!e(ie)||t.displayId.toLowerCase().includes(e(ie).toLowerCase())||t.name.toLowerCase().includes(e(ie).toLowerCase())||v.title.toLowerCase().includes(e(ie).toLowerCase())||v.displayId.toLowerCase().includes(e(ie).toLowerCase())))})).filter(t=>!e(ie)||t.cases.length>0||t.displayId.toLowerCase().includes(e(ie).toLowerCase())||t.name.toLowerCase().includes(e(ie).toLowerCase())))}),me(()=>e(s),()=>{var t;i(j,((t=e(s))==null?void 0:t.status)==="complete")}),me(()=>e(s),()=>{var t;i(ot,((t=e(s))==null?void 0:t.entries.filter(v=>v.status!=="pending").length)??0)}),me(()=>e(s),()=>{var t;i(ke,((t=e(s))==null?void 0:t.entries.length)??0)}),me(()=>e(s),()=>{var t;i(nt,((t=e(s))==null?void 0:t.entries.filter(v=>v.status==="pass").length)??0)}),me(()=>e(s),()=>{var t;i(vt,((t=e(s))==null?void 0:t.entries.filter(v=>v.status==="fail").length)??0)}),Et(),Xt();var It=ur();ga(t=>{E(v=>ha.title=v,[()=>Ma(e(s))],Fe)});var $t=se(It);Na($t,{title:Va,get open(){return e(ze)},set open(t){i(ze,t)},children:(t,v)=>{var _=ks(),f=r(_),ae=r(f);ae.textContent=Ga;var fe=l(ae,2);Mt(fe),a(f);var ge=l(f,2),Ve=r(ge);Se(Ve,{get disabled(){return e(at)},$$events:{click:Qt},children:($e,Ge)=>{pe();var Oe=Te();E(()=>w(Oe,e(at)?Vt:Gt)),o($e,Oe)},$$slots:{default:!0}});var Ye=l(Ve,2);Se(Ye,{variant:"ghost",$$events:{click:()=>i(ze,!1)},children:($e,Ge)=>{pe();var Oe=Te();Oe.nodeValue=Ca,o($e,Oe)},$$slots:{default:!0}}),a(ge),a(_),jt(fe,()=>e(We).title,$e=>Pt(We,e(We).title=$e)),o(t,_)},$$slots:{default:!0},$$legacy:!0});var ct=l($t,2),Ot=r(ct);Ot.textContent=Pa;var Rt=l(Ot,4),ia=r(Rt,!0);a(Rt),a(ct);var oa=l(ct,2);{var na=t=>{var v=Is();v.textContent=Ta,o(t,v)},va=t=>{var v=Ke(),_=se(v);{var f=ae=>{var fe=cr(),ge=se(fe),Ve=r(ge),Ye=r(Ve),$e=r(Ye,!0);a(Ye);var Ge=l(Ye,2),Oe=r(Ge,!0);a(Ge);var Bt=l(Ge,2);Ne(Bt,"title",Ha),a(Ve);var Nt=l(Ve,2),da=r(Nt);{var ca=H=>{Se(H,{variant:"ghost",$$events:{click:aa},children:(B,ce)=>{pe();var be=Te();be.nodeValue=Xa,o(B,be)},$$slots:{default:!0}})},ua=H=>{var B=Ke(),ce=se(B);{var be=oe=>{var we=$s(),P=se(we);Se(P,{variant:"ghost",get disabled(){return e(Ze)},$$events:{click:kt},children:(C,W)=>{pe();var F=Te();E(()=>w(F,e(Ze)?Vt:Gt)),o(C,F)},$$slots:{default:!0}});var c=l(P,2);{var Z=C=>{Se(C,{$$events:{click:Zt},children:(W,F)=>{pe();var ee=Te();ee.nodeValue=fs,o(W,ee)},$$slots:{default:!0}})};m(c,C=>{e(s).entries.length>0&&C(Z)})}o(oe,we)},Re=oe=>{var we=Ke(),P=se(we);{var c=C=>{var W=Os(),F=se(W);Se(F,{variant:"ghost",$$events:{click:ea},children:($,Y)=>{pe();var O=Te();O.nodeValue=gs,o($,O)},$$slots:{default:!0}});var ee=l(F,2);Se(ee,{variant:"ghost",$$events:{click:()=>i(le,"build")},children:($,Y)=>{pe();var O=Te();O.nodeValue=Ht,o($,O)},$$slots:{default:!0}});var T=l(ee,2);Se(T,{$$events:{click:ta},children:($,Y)=>{pe();var O=Te();O.nodeValue=bs,o($,O)},$$slots:{default:!0}}),o(C,W)},Z=C=>{Se(C,{variant:"ghost",$$events:{click:()=>i(le,"build")},children:(W,F)=>{pe();var ee=Te();ee.nodeValue=Ht,o(W,ee)},$$slots:{default:!0}})};m(P,C=>{e(s).status==="in-progress"?C(c):C(Z,!1)},!0)}o(oe,we)};m(ce,oe=>{e(le)==="build"?oe(be):oe(Re,!1)},!0)}o(H,B)};m(da,H=>{e(j)?H(ca):H(ua,!1)})}a(Nt),a(ge);var ut=l(ge,2),st=r(ut);st.textContent=Ka;var rt=l(st,2),Dt=r(rt);Dt.nodeValue=`${Fa} `;var _a=l(Dt);{var pa=H=>{var B=Rs(),ce=r(B);a(B),E(()=>w(ce,`${e(ot)??""}/${e(ke)??""}`)),o(H,B)};m(_a,H=>{e(ke)>0&&H(pa)})}a(rt),a(ut);var ma=l(ut,2);{var xa=H=>{var B=Ys(),ce=r(B),be=r(ce),Re=r(be);Re.textContent=za;var oe=l(Re,2),we=r(oe,!0);a(oe);var P=l(oe,2);{var c=T=>{var $=Bs();$.textContent=Ja,o(T,$)};m(P,T=>{e(j)&&T(c)})}a(be);var Z=l(be,2);{var C=T=>{Da(T,{message:qa,size:"sm"})},W=T=>{var $=js(),Y=se($);Be(Y,4,()=>[["order","Order"],["name","Name"],["priority","Priority"],["status","Status"],["suite","Suite"]],ft,(J,g)=>{let A=()=>g[0],he=()=>g[1];var ne=Ds(),N=r(ne,!0),S=l(N);{var Ee=ve=>{var de=Ns(),Ce=r(de,!0);a(de),E(()=>w(Ce,e(I).order==="asc"?" ↑":" ↓")),o(ve,de)};m(S,ve=>{e(I).by===A()&&ve(Ee)})}a(ne),E(()=>{k(ne,"active",e(I).by===A()),w(N,he())}),R("click",ne,()=>Wt(A())),o(J,ne)}),a(Y);var O=l(Y,2);Be(O,5,()=>e(Xe),J=>J.id,(J,g)=>{var A=Gs(),he=r(A);{var ne=n=>{var d=Ps();o(n,d)};m(he,n=>{!e(j)&&e(I).by==="order"&&n(ne)})}var N=l(he,2),S=r(N),Ee=r(S);wt(Ee,{get id(){return e(g).case.displayId}});var ve=l(Ee,2);Kt(ve,{get priority(){return e(g).case.priority}}),a(S);var de=l(S,2),Ce=r(de,!0);a(de);var je=l(de,2),He=r(je,!0);a(je),a(N);var p=l(N,2);{var L=n=>{lt(n)},te=n=>{var d=Ms();Sa(d,()=>e(g).assignedToId??"");var x,h=r(d);h.value=((h.__value="")==null,""),h.textContent=Qa;var X=l(h);Be(X,1,()=>e(At),ft,(M,D)=>{var y=Us(),ye={},ue=r(y,!0);a(y),E(()=>{ye!==(ye=e(D).id)&&(y.value=(y.__value=e(D).id)==null?"":e(D).id),w(ue,e(D).name)}),o(M,y)}),a(d),E(()=>{x!==(x=e(g).assignedToId??"")&&(d.value=(d.__value=e(g).assignedToId??"")==null?"":e(g).assignedToId??"",ya(d,e(g).assignedToId??"")),d.disabled=e(et)===e(g).id}),R("change",d,M=>yt(e(g).id,M.target.value)),o(n,d)};m(p,n=>{e(g).case.isAutomated?n(L):n(te,!1)})}var K=l(p,2);{var U=n=>{var d=Vs();R("click",d,()=>qt(e(g).id)),o(n,d)};m(K,n=>{e(j)||n(U)})}a(A),E(()=>{var n;Ne(A,"draggable",!e(j)&&e(I).by==="order"),k(A,"entry-locked",e(j)),k(A,"dragging",e(Ue)===e(g).id),k(A,"drag-over",e(tt)===e(g).id),w(Ce,e(g).case.title),w(He,((n=e(g).case.suite)==null?void 0:n.name)??"")}),R("dragstart",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:x=>sa(x,e(g).id))==null||d.apply(this,n)}),R("dragover",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:x=>ra(x,e(g).id))==null||d.apply(this,n)}),R("dragleave",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:()=>i(tt,null))==null||d.apply(this,n)}),R("drop",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:x=>la(x,e(g).id))==null||d.apply(this,n)}),o(J,A)}),a(O),o(T,$)};m(Z,T=>{e(s).entries.length===0?T(C):T(W,!1)})}a(ce);var F=l(ce,2);{var ee=T=>{var $=Ws(),Y=r($),O=r(Y);O.textContent=Za;var J=l(O,2);Mt(J),Ne(J,"placeholder",es),a(Y);var g=l(Y,2),A=r(g);Be(A,1,()=>e(it),N=>N.id,(N,S)=>{var Ee=Xs(),ve=r(Ee),de=r(ve),Ce=l(de,2),je=r(Ce,!0);a(Ce);var He=l(Ce,2),p=r(He,!0);a(He),a(ve);var L=l(ve,2);{var te=U=>{var n=Ks();Be(n,5,()=>e(S).cases,d=>d.id,(d,x)=>{var h=Hs(),X=r(h);wt(X,{get id(){return e(x).displayId},small:!0});var M=l(X,2),D=r(M,!0);a(M);var y=l(M,2);Kt(y,{get priority(){return e(x).priority},small:!0});var ye=l(y,2);{var ue=_e=>{lt(_e)};m(ye,_e=>{e(x).isAutomated&&_e(ue)})}a(h),E(()=>w(D,e(x).title)),R("click",h,()=>Jt(e(x))),o(d,h)}),a(n),mt(3,n,()=>xt,()=>({y:-4,duration:120})),o(U,n)},K=U=>{var n=Ke(),d=se(n);{var x=h=>{var X=Fs(),M=r(X,!0);a(X),E(()=>w(M,e(ie)?ws:e(S)._totalCases===0?hs:Es)),o(h,X)};m(d,h=>{e(Ae).has(e(S).id)&&h(x)},!0)}o(U,n)};m(L,U=>{var n;e(Ae).has(e(S).id)&&((n=e(S).cases)==null?void 0:n.length)>0?U(te):U(K,!1)})}a(Ee),E(U=>{var n;k(de,"open",U),w(je,e(S).name),w(p,((n=e(S).cases)==null?void 0:n.length)??0)},[()=>e(Ae).has(e(S).id)],Fe),R("click",ve,()=>{e(Ae).has(e(S).id)?e(Ae).delete(e(S).id):e(Ae).add(e(S).id),i(Ae,new Set(e(Ae)))}),o(N,Ee)});var he=l(A,2);{var ne=N=>{var S=zs();S.textContent=Ls,o(N,S)};m(he,N=>{e(it).length===0&&N(ne)})}a(g),a($),jt(J,()=>e(ie),N=>i(ie,N)),o(T,$)};m(F,T=>{e(j)||T(ee)})}a(B),E(()=>{k(B,"locked-workspace",e(j)),w(we,e(s).entries.length)}),mt(3,B,()=>xt,()=>({y:4,duration:150})),o(H,B)},fa=H=>{var B=dr(),ce=r(B);{var be=P=>{var c=Js();c.textContent=ts,o(P,c)};m(ce,P=>{e(s).status!=="in-progress"&&!e(j)&&P(be)})}var Re=l(ce,2);{var oe=P=>{var c=qs(),Z=r(c),C=r(Z),W=r(C,!0);a(C);var F=l(C,2),ee=r(F,!0);a(F);var T=l(F,2),$=r(T,!0);a(T),a(Z);var Y=l(Z,2),O=r(Y),J=l(O,2);a(Y),a(c),E((g,A,he)=>{w(W,g),w(ee,A),w($,he),Ne(O,"style",`width: ${e(nt)/e(ke)*100}%`),Ne(J,"style",`width: ${e(vt)/e(ke)*100}%`)},[()=>as(e(nt)),()=>ss(e(vt)),()=>rs(e(ke)-e(ot))],Fe),o(P,c)};m(Re,P=>{e(ke)>0&&P(oe)})}var we=l(Re,2);Be(we,5,()=>e(s).entries,P=>P.id,(P,c)=>{var Z=vr(),C=r(Z),W=r(C),F=r(W);{var ee=p=>{var L=Qs();Ne(L,"title",Wa);var te=r(L);a(L),E(K=>k(te,"open",K),[()=>e(Ie).has(e(c).id)],Fe),R("click",L,()=>Yt(e(c).id)),o(p,L)};m(F,p=>{var L;((L=e(c).case.steps)==null?void 0:L.length)>0&&p(ee)})}var T=l(F,2);wt(T,{get id(){return e(c).case.displayId}});var $=l(T,2);{var Y=p=>{lt(p)};m($,p=>{e(c).case.isAutomated&&p(Y)})}var O=l($,2),J=r(O),g=r(J,!0);a(J);var A=l(J,2),he=r(A,!0);a(A),a(O),a(W);var ne=l(W,2),N=r(ne);{var S=p=>{var L=Zs(),te=se(L),K=r(te);lt(K),a(te),pe(2),o(p,L)},Ee=p=>{var L=Ke(),te=se(L);{var K=U=>{var n=ar(),d=se(n),x=r(d);{var h=D=>{var y=er(),ye=r(y,!0);a(y),E(()=>w(ye,e(c).assignedTo.name)),o(D,y)};m(x,D=>{e(c).assignedTo&&D(h)})}var X=l(x,2);{var M=D=>{var y=tr();y.textContent=ps,E(()=>y.disabled=e(et)===e(c).id),R("click",y,()=>yt(e(c).id,e(Pe))),o(D,y)};m(X,D=>{var y;!e(j)&&((y=e(c).assignedTo)==null?void 0:y.id)!==e(Pe)&&D(M)})}a(d),pe(2),o(U,n)};m(te,U=>{var n;(e(c).assignedTo||!e(j)&&((n=e(c).assignedTo)==null?void 0:n.id)!==e(Pe))&&U(K)},!0)}o(p,L)};m(N,p=>{e(c).case.isAutomated?p(S):p(Ee,!1)})}var ve=l(N,2);{var de=p=>{Ft(p,{get status(){return e(c).status}})},Ce=p=>{var L=Ke(),te=se(L);{var K=n=>{var d=sr(),x=r(d);x.textContent=ls;var h=l(x,2);h.textContent=is;var X=l(h,2);X.textContent=os;var M=l(X,2);M.textContent=ns;var D=l(M,2);D.textContent=vs,a(d),E(()=>k(x,"active",e(c).status==="in-progress")),R("click",x,()=>Me(e(c),"in-progress")),R("click",h,()=>Me(e(c),"pass")),R("click",X,()=>Me(e(c),"fail")),R("click",M,()=>Me(e(c),"blocked")),R("click",D,()=>Me(e(c),"skip")),o(n,d)},U=n=>{var d=rr(),x=r(d);Ft(x,{get status(){return e(c).status}});var h=l(x,2);Ne(h,"title",ds),h.textContent=cs,a(d),R("click",h,()=>Me(e(c),"pending")),o(n,d)};m(te,n=>{e(c).status==="pending"||e(c).status==="in-progress"?n(K):n(U,!1)},!0)}o(p,L)};m(ve,p=>{e(j)||e(s).status!=="in-progress"?p(de):p(Ce,!1)})}a(ne),a(C);var je=l(C,2);{var He=p=>{var L=nr();Be(L,5,()=>e(c).case.steps,ft,(te,K,U)=>{var n=or(),d=r(n);d.textContent=U+1;var x=l(d,2),h=r(x),X=r(h,!0);a(h);var M=l(h,2);{var D=ue=>{var _e=lr(),_t=r(_e,!0);a(_e),E(pt=>w(_t,pt),[()=>us(e(K).testData)],Fe),o(ue,_e)};m(M,ue=>{e(K).testData&&ue(D)})}var y=l(M,2);{var ye=ue=>{var _e=ir(),_t=r(_e,!0);a(_e),E(pt=>w(_t,pt),[()=>_s(e(K).expectedOutput)],Fe),o(ue,_e)};m(y,ue=>{e(K).expectedOutput&&ue(ye)})}a(x),a(n),E(()=>w(X,e(K).action)),o(te,n)}),a(L),o(p,L)};m(je,p=>{e(c).case.steps&&e(c).case.steps.length>0&&e(Ie).has(e(c).id)&&p(He)})}a(Z),E(()=>{var p;k(Z,"expanded",e(dt)===e(c).id),w(g,e(c).case.title),w(he,((p=e(c).case.suite)==null?void 0:p.name)??"")}),o(P,Z)}),a(we),a(B),mt(3,B,()=>xt,()=>({y:4,duration:150})),o(H,B)};m(ma,H=>{e(le)==="build"?H(xa):H(fa,!1)})}E(()=>{w($e,e(s).title),La(Ge,`run-status-badge ${e(s).status??""} svelte-1mxlw2t`),w(Oe,e(s).status),k(st,"active",e(le)==="build"),k(rt,"active",e(le)==="execute")}),R("click",Bt,()=>{i(We,{title:e(s).title}),i(ze,!0)}),R("click",st,()=>i(le,"build")),R("click",rt,()=>i(le,"execute")),o(ae,fe)};m(_,ae=>{e(s)&&ae(f)},!0)}o(t,v)};m(oa,t=>{e(Ct)?t(na):t(va,!1)})}E(()=>{var t;return w(ia,((t=e(s))==null?void 0:t.title)??"…")}),o(Le,It),Lt(),Q()}export{Ir as component};
|
|
6
|
+
import{a as o,t as u,s as w,h as ga,b as Te,c as Ke,e as R,n as ba}from"../chunks/6VDMVB5U.js";import{i as Xt}from"../chunks/CtgCYzu5.js";import{p as ht,l as me,s as i,aj as zt,b as Et,d as r,k as a,t as E,g as e,c as Lt,m as b,o as wa,f as se,x as Fe,$ as ha,y as Pt,j as l,n as pe}from"../chunks/BIf7lHIm.js";import{i as m,s as Ea,a as Ut}from"../chunks/D_thT6pZ.js";import{t as k,s as La,a as mt,f as xt,e as Be,i as ft}from"../chunks/BTV7EXZb.js";import{l as Aa,r as Mt,i as Vt,j as Gt,C as Ca,L as Ta,s as Ne}from"../chunks/C4Z3p6jE.js";import{b as jt}from"../chunks/BnXsGCy3.js";import{B as Se,i as Sa,s as ya}from"../chunks/qvxlSGpD.js";import{p as ka}from"../chunks/CUWTHbZi.js";import{v as gt,j as Ia,w as $a,x as De,y as Oa,z as Ra}from"../chunks/B74j8LrV.js";import{r as bt}from"../chunks/htkwR9b-.js";import{a as Ba}from"../chunks/CXQhSK1T.js";import{M as Na}from"../chunks/CUPWZLIN.js";import{n as re}from"../chunks/BDb8hZHu.js";import{E as Da}from"../chunks/CNpD-yNH.js";import{p as Je}from"../chunks/D72giPTu.js";import{ae as Pa,F as Ua,aO as Ma,aP as Va,T as Ga,aQ as ja,aR as Ha,aS as Ka,aT as Fa,aU as Xa,aV as za,aW as Wa,aX as Ya,aY as Ja,aZ as qa,a_ as Qa,a$ as Za,b0 as es,b1 as ts,b2 as as,b3 as ss,b4 as rs,b5 as ls,b6 as is,b7 as os,b8 as ns,b9 as vs,ba as ds,bb as cs,bc as us,bd as _s,be as ps,bf as ms,bg as xs,bh as fs,bi as gs,bj as Ht,bk as bs,bl as ws,bm as hs,bn as Es,a8 as Ls,bo as As}from"../chunks/DFZtPGTY.js";var Cs=u('<span class="auto-badge svelte-1yr9844"></span>');function lt(Le){var q=Cs();q.textContent=Aa,o(Le,q)}var Ts=u('<span class="priority-badge svelte-1m066kw"> </span>');function Kt(Le,q){ht(q,!1);const V=b();let Q=Je(q,"priority",8,"Medium"),G=Je(q,"small",8,!1);me(()=>zt(Q()),()=>{var Xe;i(V,((Xe=Q())==null?void 0:Xe.toLowerCase())??"medium")}),Et(),Xt();var z=Ts(),Pe=r(z,!0);a(z),E(()=>{k(z,"critical",e(V)==="critical"),k(z,"high",e(V)==="high"),k(z,"medium",e(V)==="medium"),k(z,"low",e(V)==="low"),k(z,"small",G()),w(Pe,Q())}),o(Le,z),Lt()}var Ss=u('<span class="id-chip svelte-1gmo0py"> </span>');function wt(Le,q){let V=Je(q,"id",8,""),Q=Je(q,"small",8,!1);var G=Ss(),z=r(G,!0);a(G),E(()=>{k(G,"small",Q()),w(z,V())}),o(Le,G)}var ys=u('<span class="result-chip svelte-1rgb1a1"> </span>');function Ft(Le,q){ht(q,!1);const V=b();let Q=Je(q,"status",8,"pending");me(()=>zt(Q()),()=>{i(V,Q()==="pass"?"pass":Q()==="fail"?"fail":Q()==="blocked"?"warn":Q()==="skip"?"muted":"pending")}),Et();var G=ys(),z=r(G,!0);a(G),E(()=>{k(G,"pass",e(V)==="pass"),k(G,"fail",e(V)==="fail"),k(G,"warn",e(V)==="warn"),k(G,"muted",e(V)==="muted"),k(G,"pending",e(V)==="pending"),w(z,Q())}),o(Le,G),Lt()}var ks=u('<div class="form-fields svelte-1mxlw2t"><div class="field"><label class="field-label" for="er-title"></label> <input id="er-title" type="text" class="field-input"></div> <div class="modal-actions svelte-1mxlw2t"><!> <!></div></div>'),Is=u('<div class="loading-state svelte-1mxlw2t"></div>'),$s=u("<!> <!>",1),Os=u("<!> <!> <!>",1),Rs=u('<span class="exec-progress svelte-1mxlw2t"> </span>'),Bs=u('<span class="locked-badge svelte-1mxlw2t"></span>'),Ns=u('<span class="entry-sort-dir svelte-1mxlw2t"> </span>'),Ds=u('<button class="entry-sort-chip svelte-1mxlw2t"> <!></button>'),Ps=ba('<svg class="drag-handle svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="currentColor"><circle cx="9" cy="5" r="1.5"></circle><circle cx="15" cy="5" r="1.5"></circle><circle cx="9" cy="12" r="1.5"></circle><circle cx="15" cy="12" r="1.5"></circle><circle cx="9" cy="19" r="1.5"></circle><circle cx="15" cy="19" r="1.5"></circle></svg>'),Us=u("<option> </option>"),Ms=u('<select class="assignee-select svelte-1mxlw2t"><option></option><!></select>'),Vs=u('<button class="icon-btn danger svelte-1mxlw2t"><svg width="11" height="11" viewBox="0 0 14 14" fill="none"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>'),Gs=u('<div class="entry-row svelte-1mxlw2t" role="listitem"><!> <div class="entry-info svelte-1mxlw2t"><div class="entry-badges svelte-1mxlw2t"><!> <!></div> <p class="entry-title svelte-1mxlw2t"> </p> <span class="entry-suite svelte-1mxlw2t"> </span></div> <!> <!></div>'),js=u('<div class="entry-sort-bar svelte-1mxlw2t"></div> <div class="entry-list svelte-1mxlw2t" role="list"></div>',1),Hs=u('<button class="browser-case svelte-1mxlw2t"><!> <span class="browser-case-title svelte-1mxlw2t"> </span> <!> <!></button>'),Ks=u('<div class="browser-cases svelte-1mxlw2t"></div>'),Fs=u('<p class="browser-empty svelte-1mxlw2t"> </p>'),Xs=u('<div class="browser-suite svelte-1mxlw2t"><button class="browser-suite-header svelte-1mxlw2t"><svg class="chevron svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="9 18 15 12 9 6"></polyline></svg> <span class="browser-suite-name svelte-1mxlw2t"> </span> <span class="browser-suite-count svelte-1mxlw2t"> </span></button> <!></div>'),zs=u('<p class="browser-empty svelte-1mxlw2t"></p>'),Ws=u('<div class="builder-panel right-panel svelte-1mxlw2t"><div class="builder-panel-head svelte-1mxlw2t"><h2 class="builder-panel-title svelte-1mxlw2t"></h2> <input type="text" class="search-input svelte-1mxlw2t"></div> <div class="suite-browser svelte-1mxlw2t"><!> <!></div></div>'),Ys=u('<div class="builder-workspace svelte-1mxlw2t"><div class="builder-panel left-panel svelte-1mxlw2t"><div class="builder-panel-head svelte-1mxlw2t"><h2 class="builder-panel-title svelte-1mxlw2t"></h2> <span class="count-chip svelte-1mxlw2t"> </span> <!></div> <!></div> <!></div>'),Js=u('<div class="exec-locked-banner svelte-1mxlw2t"></div>'),qs=u('<div class="progress-bar-wrap svelte-1mxlw2t"><div class="progress-stats svelte-1mxlw2t"><span class="stat pass svelte-1mxlw2t"> </span> <span class="stat fail svelte-1mxlw2t"> </span> <span class="stat muted svelte-1mxlw2t"> </span></div> <div class="progress-bar svelte-1mxlw2t"><div class="progress-fill pass svelte-1mxlw2t"></div> <div class="progress-fill fail svelte-1mxlw2t"></div></div></div>'),Qs=u('<button class="exec-chevron svelte-1mxlw2t"><svg class="chevron svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="9 18 15 12 9 6"></polyline></svg></button>'),Zs=u('<div class="exec-assignee-row svelte-1mxlw2t"><!></div> <div class="exec-assignee-divider svelte-1mxlw2t"></div>',1),er=u('<span class="exec-assignee-name svelte-1mxlw2t"> </span>'),tr=u('<button class="exec-assign-me svelte-1mxlw2t"></button>'),ar=u('<div class="exec-assignee-row svelte-1mxlw2t"><!> <!></div> <div class="exec-assignee-divider svelte-1mxlw2t"></div>',1),sr=u('<div class="exec-btns svelte-1mxlw2t"><button class="exec-btn in-progress svelte-1mxlw2t"></button> <button class="exec-btn pass svelte-1mxlw2t"></button> <button class="exec-btn fail svelte-1mxlw2t"></button> <button class="exec-btn warn svelte-1mxlw2t"></button> <button class="exec-btn muted svelte-1mxlw2t"></button></div>'),rr=u('<div class="exec-btns svelte-1mxlw2t"><!> <button class="exec-reset svelte-1mxlw2t"></button></div>'),lr=u('<p class="exec-step-data svelte-1mxlw2t"> </p>'),ir=u('<p class="exec-step-expected svelte-1mxlw2t"> </p>'),or=u('<div class="exec-step svelte-1mxlw2t"><span class="exec-step-num svelte-1mxlw2t"></span> <div class="exec-step-body svelte-1mxlw2t"><p class="exec-step-action svelte-1mxlw2t"> </p> <!> <!></div></div>'),nr=u('<div class="exec-steps svelte-1mxlw2t"></div>'),vr=u('<div class="execute-row svelte-1mxlw2t"><div class="execute-row-main svelte-1mxlw2t"><div class="exec-info svelte-1mxlw2t"><!> <!> <!> <div><p class="exec-title svelte-1mxlw2t"> </p> <span class="exec-suite svelte-1mxlw2t"> </span></div></div> <div class="exec-actions svelte-1mxlw2t"><!> <!></div></div> <!></div>'),dr=u('<div class="execute-workspace"><!> <!> <div class="execute-list svelte-1mxlw2t"></div></div>'),cr=u('<div class="run-header svelte-1mxlw2t"><div class="run-header-left svelte-1mxlw2t"><h1 class="run-title svelte-1mxlw2t"> </h1> <span> </span> <button class="icon-btn svelte-1mxlw2t"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg></button></div> <div class="run-header-actions svelte-1mxlw2t"><!></div></div> <div class="mode-tabs svelte-1mxlw2t"><button class="mode-tab svelte-1mxlw2t"></button> <button class="mode-tab svelte-1mxlw2t"> <!></button></div> <!>',1),ur=u('<!> <div class="breadcrumb svelte-1mxlw2t"><a href="/test-repository" class="bc-link svelte-1mxlw2t"></a> <span class="bc-sep svelte-1mxlw2t">›</span> <span class="bc-current"> </span></div> <!>',1);function Ir(Le,q){ht(q,!1);const[V,Q]=Ea(),G=()=>Ut(ka,"$page",V),z=()=>Ut(Ba,"$auth",V),Pe=b(),Xe=b(),qe=b(),it=b(),j=b(),ot=b(),ke=b(),nt=b(),vt=b(),xe=G().params.id;let le=b("build"),s=b(null),Qe=b([]),At=b([]),Ct=b(!0),Ze=b(!1),et=b(null),ie=b(""),Ae=b(new Set);const Tt={Critical:0,High:1,Medium:2,Low:3};let I=b((()=>{try{const t=sessionStorage.getItem("plum:run:entries:sort");if(t)return JSON.parse(t)}catch{}return{by:"order",order:"asc"}})());function Wt(t){e(I).by===t?Pt(I,e(I).order=e(I).order==="asc"?"desc":"asc"):i(I,{by:t,order:"asc"});try{sessionStorage.setItem("plum:run:entries:sort",JSON.stringify(e(I)))}catch{}}let Ue=b(null),tt=b(null),dt=b(null),St="",Ie=b(new Set),ze=b(!1),We=b({}),at=b(!1);function Yt(t){e(Ie).has(t)?e(Ie).delete(t):e(Ie).add(t),i(Ie,new Set(e(Ie)))}wa(async()=>{try{await(async t=>(i(s,t[0]),i(Qe,t[1]),i(At,t[2])))(await Promise.all([gt(xe),Ia(),$a()])),i(Ae,new Set(e(Qe).map(t=>t.id))),e(s).status==="in-progress"&&i(le,"execute")}catch{re("error",Ua)}finally{i(Ct,!1)}});async function yt(t,v){i(et,t);try{const _=await Oa(t,v||null);i(s,{...e(s),entries:e(s).entries.map(f=>f.id===t?{...f,assignedToId:_.assignedToId,assignedTo:_.assignedTo}:f)})}catch(_){re("error",_.message)}finally{i(et,null)}}async function Jt(t){if(!e(s)||e(qe).has(t.id))return;const v=e(s),_={id:`tmp-${t.id}`,order:e(s).entries.length,status:"pending",notes:"",executedAt:null,executedBy:null,case:t};i(s,{...e(s),entries:[...e(s).entries,_]});try{const f=e(s).entries.map(ae=>ae.case.id);await De(xe,{caseIds:f}),i(s,await gt(xe))}catch{i(s,v),re("error",xs)}}function qt(t){i(s,{...e(s),entries:e(s).entries.filter(v=>v.id!==t)})}async function Qt(){i(at,!0);try{const t=await De(xe,e(We));i(s,{...e(s),...t}),i(ze,!1),re("success",ja)}catch(t){re("error",t.message)}finally{i(at,!1)}}async function kt(){i(Ze,!0);try{const t=e(s).entries.map(_=>_.case.id),v=await De(xe,{caseIds:t});i(s,await gt(xe)),re("success",ms)}catch(t){re("error",t.message)}finally{i(Ze,!1)}}async function Zt(){await kt(),await De(xe,{status:"in-progress"}),i(s,{...e(s),status:"in-progress"}),i(le,"execute")}async function Me(t,v){i(dt,t.id);try{const _=await Ra(t.id,{status:v,notes:St});i(s,{...e(s),entries:e(s).entries.map(f=>f.id===t.id?{...f,..._,status:v}:f)}),St=""}catch(_){re("error",_.message)}finally{i(dt,null)}}async function ea(){try{await De(xe,{status:"backlog"}),i(s,{...e(s),status:"backlog"}),i(le,"build"),bt.update(t=>t+1)}catch(t){re("error",t.message)}}async function ta(){try{await De(xe,{status:"complete"}),i(s,{...e(s),status:"complete"}),bt.update(t=>t+1),re("success",As)}catch(t){re("error",t.message)}}async function aa(){try{await De(xe,{status:"backlog"}),i(s,{...e(s),status:"backlog"}),i(le,"build"),bt.update(t=>t+1),re("success",Ya)}catch(t){re("error",t.message)}}function sa(t,v){i(Ue,v),t.dataTransfer.effectAllowed="move"}function ra(t,v){t.preventDefault(),i(tt,v)}function la(t,v){if(t.preventDefault(),!e(Ue)||e(Ue)===v)return;const _=[...e(s).entries],f=_.findIndex(ge=>ge.id===e(Ue)),ae=_.findIndex(ge=>ge.id===v),[fe]=_.splice(f,1);_.splice(ae,0,fe),i(s,{...e(s),entries:_}),i(Ue,null),i(tt,null)}me(()=>z(),()=>{var t,v;i(Pe,((v=(t=z())==null?void 0:t.user)==null?void 0:v.id)??null)}),me(()=>(e(s),e(I)),()=>{i(Xe,(()=>{if(!e(s))return[];const t=[...e(s).entries],v=e(I).order==="asc"?1:-1;return e(I).by==="name"?t.sort((_,f)=>v*_.case.title.localeCompare(f.case.title)):e(I).by==="priority"?t.sort((_,f)=>v*((Tt[_.case.priority]??99)-(Tt[f.case.priority]??99))):e(I).by==="status"?t.sort((_,f)=>v*_.status.localeCompare(f.status)):e(I).by==="suite"?t.sort((_,f)=>{var ae,fe;return v*(((ae=_.case.suite)==null?void 0:ae.name)??"").localeCompare(((fe=f.case.suite)==null?void 0:fe.name)??"")}):t.sort((_,f)=>v*(_.order-f.order))})())}),me(()=>e(s),()=>{var t;i(qe,new Set(((t=e(s))==null?void 0:t.entries.map(v=>v.case.id))??[]))}),me(()=>(e(Qe),e(qe),e(ie)),()=>{i(it,e(Qe).map(t=>({...t,_totalCases:(t.cases??[]).length,cases:(t.cases??[]).filter(v=>!e(qe).has(v.id)&&(!e(ie)||t.displayId.toLowerCase().includes(e(ie).toLowerCase())||t.name.toLowerCase().includes(e(ie).toLowerCase())||v.title.toLowerCase().includes(e(ie).toLowerCase())||v.displayId.toLowerCase().includes(e(ie).toLowerCase())))})).filter(t=>!e(ie)||t.cases.length>0||t.displayId.toLowerCase().includes(e(ie).toLowerCase())||t.name.toLowerCase().includes(e(ie).toLowerCase())))}),me(()=>e(s),()=>{var t;i(j,((t=e(s))==null?void 0:t.status)==="complete")}),me(()=>e(s),()=>{var t;i(ot,((t=e(s))==null?void 0:t.entries.filter(v=>v.status!=="pending").length)??0)}),me(()=>e(s),()=>{var t;i(ke,((t=e(s))==null?void 0:t.entries.length)??0)}),me(()=>e(s),()=>{var t;i(nt,((t=e(s))==null?void 0:t.entries.filter(v=>v.status==="pass").length)??0)}),me(()=>e(s),()=>{var t;i(vt,((t=e(s))==null?void 0:t.entries.filter(v=>v.status==="fail").length)??0)}),Et(),Xt();var It=ur();ga(t=>{E(v=>ha.title=v,[()=>Ma(e(s))],Fe)});var $t=se(It);Na($t,{title:Va,get open(){return e(ze)},set open(t){i(ze,t)},children:(t,v)=>{var _=ks(),f=r(_),ae=r(f);ae.textContent=Ga;var fe=l(ae,2);Mt(fe),a(f);var ge=l(f,2),Ve=r(ge);Se(Ve,{get disabled(){return e(at)},$$events:{click:Qt},children:($e,Ge)=>{pe();var Oe=Te();E(()=>w(Oe,e(at)?Vt:Gt)),o($e,Oe)},$$slots:{default:!0}});var Ye=l(Ve,2);Se(Ye,{variant:"ghost",$$events:{click:()=>i(ze,!1)},children:($e,Ge)=>{pe();var Oe=Te();Oe.nodeValue=Ca,o($e,Oe)},$$slots:{default:!0}}),a(ge),a(_),jt(fe,()=>e(We).title,$e=>Pt(We,e(We).title=$e)),o(t,_)},$$slots:{default:!0},$$legacy:!0});var ct=l($t,2),Ot=r(ct);Ot.textContent=Pa;var Rt=l(Ot,4),ia=r(Rt,!0);a(Rt),a(ct);var oa=l(ct,2);{var na=t=>{var v=Is();v.textContent=Ta,o(t,v)},va=t=>{var v=Ke(),_=se(v);{var f=ae=>{var fe=cr(),ge=se(fe),Ve=r(ge),Ye=r(Ve),$e=r(Ye,!0);a(Ye);var Ge=l(Ye,2),Oe=r(Ge,!0);a(Ge);var Bt=l(Ge,2);Ne(Bt,"title",Ha),a(Ve);var Nt=l(Ve,2),da=r(Nt);{var ca=H=>{Se(H,{variant:"ghost",$$events:{click:aa},children:(B,ce)=>{pe();var be=Te();be.nodeValue=Xa,o(B,be)},$$slots:{default:!0}})},ua=H=>{var B=Ke(),ce=se(B);{var be=oe=>{var we=$s(),P=se(we);Se(P,{variant:"ghost",get disabled(){return e(Ze)},$$events:{click:kt},children:(C,W)=>{pe();var F=Te();E(()=>w(F,e(Ze)?Vt:Gt)),o(C,F)},$$slots:{default:!0}});var c=l(P,2);{var Z=C=>{Se(C,{$$events:{click:Zt},children:(W,F)=>{pe();var ee=Te();ee.nodeValue=fs,o(W,ee)},$$slots:{default:!0}})};m(c,C=>{e(s).entries.length>0&&C(Z)})}o(oe,we)},Re=oe=>{var we=Ke(),P=se(we);{var c=C=>{var W=Os(),F=se(W);Se(F,{variant:"ghost",$$events:{click:ea},children:($,Y)=>{pe();var O=Te();O.nodeValue=gs,o($,O)},$$slots:{default:!0}});var ee=l(F,2);Se(ee,{variant:"ghost",$$events:{click:()=>i(le,"build")},children:($,Y)=>{pe();var O=Te();O.nodeValue=Ht,o($,O)},$$slots:{default:!0}});var T=l(ee,2);Se(T,{$$events:{click:ta},children:($,Y)=>{pe();var O=Te();O.nodeValue=bs,o($,O)},$$slots:{default:!0}}),o(C,W)},Z=C=>{Se(C,{variant:"ghost",$$events:{click:()=>i(le,"build")},children:(W,F)=>{pe();var ee=Te();ee.nodeValue=Ht,o(W,ee)},$$slots:{default:!0}})};m(P,C=>{e(s).status==="in-progress"?C(c):C(Z,!1)},!0)}o(oe,we)};m(ce,oe=>{e(le)==="build"?oe(be):oe(Re,!1)},!0)}o(H,B)};m(da,H=>{e(j)?H(ca):H(ua,!1)})}a(Nt),a(ge);var ut=l(ge,2),st=r(ut);st.textContent=Ka;var rt=l(st,2),Dt=r(rt);Dt.nodeValue=`${Fa} `;var _a=l(Dt);{var pa=H=>{var B=Rs(),ce=r(B);a(B),E(()=>w(ce,`${e(ot)??""}/${e(ke)??""}`)),o(H,B)};m(_a,H=>{e(ke)>0&&H(pa)})}a(rt),a(ut);var ma=l(ut,2);{var xa=H=>{var B=Ys(),ce=r(B),be=r(ce),Re=r(be);Re.textContent=za;var oe=l(Re,2),we=r(oe,!0);a(oe);var P=l(oe,2);{var c=T=>{var $=Bs();$.textContent=Ja,o(T,$)};m(P,T=>{e(j)&&T(c)})}a(be);var Z=l(be,2);{var C=T=>{Da(T,{message:qa,size:"sm"})},W=T=>{var $=js(),Y=se($);Be(Y,4,()=>[["order","Order"],["name","Name"],["priority","Priority"],["status","Status"],["suite","Suite"]],ft,(J,g)=>{let A=()=>g[0],he=()=>g[1];var ne=Ds(),N=r(ne,!0),S=l(N);{var Ee=ve=>{var de=Ns(),Ce=r(de,!0);a(de),E(()=>w(Ce,e(I).order==="asc"?" ↑":" ↓")),o(ve,de)};m(S,ve=>{e(I).by===A()&&ve(Ee)})}a(ne),E(()=>{k(ne,"active",e(I).by===A()),w(N,he())}),R("click",ne,()=>Wt(A())),o(J,ne)}),a(Y);var O=l(Y,2);Be(O,5,()=>e(Xe),J=>J.id,(J,g)=>{var A=Gs(),he=r(A);{var ne=n=>{var d=Ps();o(n,d)};m(he,n=>{!e(j)&&e(I).by==="order"&&n(ne)})}var N=l(he,2),S=r(N),Ee=r(S);wt(Ee,{get id(){return e(g).case.displayId}});var ve=l(Ee,2);Kt(ve,{get priority(){return e(g).case.priority}}),a(S);var de=l(S,2),Ce=r(de,!0);a(de);var je=l(de,2),He=r(je,!0);a(je),a(N);var p=l(N,2);{var L=n=>{lt(n)},te=n=>{var d=Ms();Sa(d,()=>e(g).assignedToId??"");var x,h=r(d);h.value=((h.__value="")==null,""),h.textContent=Qa;var X=l(h);Be(X,1,()=>e(At),ft,(M,D)=>{var y=Us(),ye={},ue=r(y,!0);a(y),E(()=>{ye!==(ye=e(D).id)&&(y.value=(y.__value=e(D).id)==null?"":e(D).id),w(ue,e(D).name)}),o(M,y)}),a(d),E(()=>{x!==(x=e(g).assignedToId??"")&&(d.value=(d.__value=e(g).assignedToId??"")==null?"":e(g).assignedToId??"",ya(d,e(g).assignedToId??"")),d.disabled=e(et)===e(g).id}),R("change",d,M=>yt(e(g).id,M.target.value)),o(n,d)};m(p,n=>{e(g).case.isAutomated?n(L):n(te,!1)})}var K=l(p,2);{var U=n=>{var d=Vs();R("click",d,()=>qt(e(g).id)),o(n,d)};m(K,n=>{e(j)||n(U)})}a(A),E(()=>{var n;Ne(A,"draggable",!e(j)&&e(I).by==="order"),k(A,"entry-locked",e(j)),k(A,"dragging",e(Ue)===e(g).id),k(A,"drag-over",e(tt)===e(g).id),w(Ce,e(g).case.title),w(He,((n=e(g).case.suite)==null?void 0:n.name)??"")}),R("dragstart",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:x=>sa(x,e(g).id))==null||d.apply(this,n)}),R("dragover",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:x=>ra(x,e(g).id))==null||d.apply(this,n)}),R("dragleave",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:()=>i(tt,null))==null||d.apply(this,n)}),R("drop",A,function(...n){var d;(d=e(j)||e(I).by!=="order"?null:x=>la(x,e(g).id))==null||d.apply(this,n)}),o(J,A)}),a(O),o(T,$)};m(Z,T=>{e(s).entries.length===0?T(C):T(W,!1)})}a(ce);var F=l(ce,2);{var ee=T=>{var $=Ws(),Y=r($),O=r(Y);O.textContent=Za;var J=l(O,2);Mt(J),Ne(J,"placeholder",es),a(Y);var g=l(Y,2),A=r(g);Be(A,1,()=>e(it),N=>N.id,(N,S)=>{var Ee=Xs(),ve=r(Ee),de=r(ve),Ce=l(de,2),je=r(Ce,!0);a(Ce);var He=l(Ce,2),p=r(He,!0);a(He),a(ve);var L=l(ve,2);{var te=U=>{var n=Ks();Be(n,5,()=>e(S).cases,d=>d.id,(d,x)=>{var h=Hs(),X=r(h);wt(X,{get id(){return e(x).displayId},small:!0});var M=l(X,2),D=r(M,!0);a(M);var y=l(M,2);Kt(y,{get priority(){return e(x).priority},small:!0});var ye=l(y,2);{var ue=_e=>{lt(_e)};m(ye,_e=>{e(x).isAutomated&&_e(ue)})}a(h),E(()=>w(D,e(x).title)),R("click",h,()=>Jt(e(x))),o(d,h)}),a(n),mt(3,n,()=>xt,()=>({y:-4,duration:120})),o(U,n)},K=U=>{var n=Ke(),d=se(n);{var x=h=>{var X=Fs(),M=r(X,!0);a(X),E(()=>w(M,e(ie)?ws:e(S)._totalCases===0?hs:Es)),o(h,X)};m(d,h=>{e(Ae).has(e(S).id)&&h(x)},!0)}o(U,n)};m(L,U=>{var n;e(Ae).has(e(S).id)&&((n=e(S).cases)==null?void 0:n.length)>0?U(te):U(K,!1)})}a(Ee),E(U=>{var n;k(de,"open",U),w(je,e(S).name),w(p,((n=e(S).cases)==null?void 0:n.length)??0)},[()=>e(Ae).has(e(S).id)],Fe),R("click",ve,()=>{e(Ae).has(e(S).id)?e(Ae).delete(e(S).id):e(Ae).add(e(S).id),i(Ae,new Set(e(Ae)))}),o(N,Ee)});var he=l(A,2);{var ne=N=>{var S=zs();S.textContent=Ls,o(N,S)};m(he,N=>{e(it).length===0&&N(ne)})}a(g),a($),jt(J,()=>e(ie),N=>i(ie,N)),o(T,$)};m(F,T=>{e(j)||T(ee)})}a(B),E(()=>{k(B,"locked-workspace",e(j)),w(we,e(s).entries.length)}),mt(3,B,()=>xt,()=>({y:4,duration:150})),o(H,B)},fa=H=>{var B=dr(),ce=r(B);{var be=P=>{var c=Js();c.textContent=ts,o(P,c)};m(ce,P=>{e(s).status!=="in-progress"&&!e(j)&&P(be)})}var Re=l(ce,2);{var oe=P=>{var c=qs(),Z=r(c),C=r(Z),W=r(C,!0);a(C);var F=l(C,2),ee=r(F,!0);a(F);var T=l(F,2),$=r(T,!0);a(T),a(Z);var Y=l(Z,2),O=r(Y),J=l(O,2);a(Y),a(c),E((g,A,he)=>{w(W,g),w(ee,A),w($,he),Ne(O,"style",`width: ${e(nt)/e(ke)*100}%`),Ne(J,"style",`width: ${e(vt)/e(ke)*100}%`)},[()=>as(e(nt)),()=>ss(e(vt)),()=>rs(e(ke)-e(ot))],Fe),o(P,c)};m(Re,P=>{e(ke)>0&&P(oe)})}var we=l(Re,2);Be(we,5,()=>e(s).entries,P=>P.id,(P,c)=>{var Z=vr(),C=r(Z),W=r(C),F=r(W);{var ee=p=>{var L=Qs();Ne(L,"title",Wa);var te=r(L);a(L),E(K=>k(te,"open",K),[()=>e(Ie).has(e(c).id)],Fe),R("click",L,()=>Yt(e(c).id)),o(p,L)};m(F,p=>{var L;((L=e(c).case.steps)==null?void 0:L.length)>0&&p(ee)})}var T=l(F,2);wt(T,{get id(){return e(c).case.displayId}});var $=l(T,2);{var Y=p=>{lt(p)};m($,p=>{e(c).case.isAutomated&&p(Y)})}var O=l($,2),J=r(O),g=r(J,!0);a(J);var A=l(J,2),he=r(A,!0);a(A),a(O),a(W);var ne=l(W,2),N=r(ne);{var S=p=>{var L=Zs(),te=se(L),K=r(te);lt(K),a(te),pe(2),o(p,L)},Ee=p=>{var L=Ke(),te=se(L);{var K=U=>{var n=ar(),d=se(n),x=r(d);{var h=D=>{var y=er(),ye=r(y,!0);a(y),E(()=>w(ye,e(c).assignedTo.name)),o(D,y)};m(x,D=>{e(c).assignedTo&&D(h)})}var X=l(x,2);{var M=D=>{var y=tr();y.textContent=ps,E(()=>y.disabled=e(et)===e(c).id),R("click",y,()=>yt(e(c).id,e(Pe))),o(D,y)};m(X,D=>{var y;!e(j)&&((y=e(c).assignedTo)==null?void 0:y.id)!==e(Pe)&&D(M)})}a(d),pe(2),o(U,n)};m(te,U=>{var n;(e(c).assignedTo||!e(j)&&((n=e(c).assignedTo)==null?void 0:n.id)!==e(Pe))&&U(K)},!0)}o(p,L)};m(N,p=>{e(c).case.isAutomated?p(S):p(Ee,!1)})}var ve=l(N,2);{var de=p=>{Ft(p,{get status(){return e(c).status}})},Ce=p=>{var L=Ke(),te=se(L);{var K=n=>{var d=sr(),x=r(d);x.textContent=ls;var h=l(x,2);h.textContent=is;var X=l(h,2);X.textContent=os;var M=l(X,2);M.textContent=ns;var D=l(M,2);D.textContent=vs,a(d),E(()=>k(x,"active",e(c).status==="in-progress")),R("click",x,()=>Me(e(c),"in-progress")),R("click",h,()=>Me(e(c),"pass")),R("click",X,()=>Me(e(c),"fail")),R("click",M,()=>Me(e(c),"blocked")),R("click",D,()=>Me(e(c),"skip")),o(n,d)},U=n=>{var d=rr(),x=r(d);Ft(x,{get status(){return e(c).status}});var h=l(x,2);Ne(h,"title",ds),h.textContent=cs,a(d),R("click",h,()=>Me(e(c),"pending")),o(n,d)};m(te,n=>{e(c).status==="pending"||e(c).status==="in-progress"?n(K):n(U,!1)},!0)}o(p,L)};m(ve,p=>{e(j)||e(s).status!=="in-progress"?p(de):p(Ce,!1)})}a(ne),a(C);var je=l(C,2);{var He=p=>{var L=nr();Be(L,5,()=>e(c).case.steps,ft,(te,K,U)=>{var n=or(),d=r(n);d.textContent=U+1;var x=l(d,2),h=r(x),X=r(h,!0);a(h);var M=l(h,2);{var D=ue=>{var _e=lr(),_t=r(_e,!0);a(_e),E(pt=>w(_t,pt),[()=>us(e(K).testData)],Fe),o(ue,_e)};m(M,ue=>{e(K).testData&&ue(D)})}var y=l(M,2);{var ye=ue=>{var _e=ir(),_t=r(_e,!0);a(_e),E(pt=>w(_t,pt),[()=>_s(e(K).expectedOutput)],Fe),o(ue,_e)};m(y,ue=>{e(K).expectedOutput&&ue(ye)})}a(x),a(n),E(()=>w(X,e(K).action)),o(te,n)}),a(L),o(p,L)};m(je,p=>{e(c).case.steps&&e(c).case.steps.length>0&&e(Ie).has(e(c).id)&&p(He)})}a(Z),E(()=>{var p;k(Z,"expanded",e(dt)===e(c).id),w(g,e(c).case.title),w(he,((p=e(c).case.suite)==null?void 0:p.name)??"")}),o(P,Z)}),a(we),a(B),mt(3,B,()=>xt,()=>({y:4,duration:150})),o(H,B)};m(ma,H=>{e(le)==="build"?H(xa):H(fa,!1)})}E(()=>{w($e,e(s).title),La(Ge,`run-status-badge ${e(s).status??""} svelte-1mxlw2t`),w(Oe,e(s).status),k(st,"active",e(le)==="build"),k(rt,"active",e(le)==="execute")}),R("click",Bt,()=>{i(We,{title:e(s).title}),i(ze,!0)}),R("click",st,()=>i(le,"build")),R("click",rt,()=>i(le,"execute")),o(ae,fe)};m(_,ae=>{e(s)&&ae(f)},!0)}o(t,v)};m(oa,t=>{e(Ct)?t(na):t(va,!1)})}E(()=>{var t;return w(ia,((t=e(s))==null?void 0:t.title)??"…")}),o(Le,It),Lt(),Q()}export{Ir as component};
|
|
Binary file
|
|
Binary file
|