import{S as G,i as K,s as Q,a as x,k as b,y as B,D as U,h as u,c as V,l as w,m as $,z as N,n as E,b as S,A,E as _,g as k,d as D,f as M,B as C,J as L,o as W,q,r as z,u as X,v as P,_ as Y}from"../chunks/index.a38b3e2d.js";import{N as Z,g as ee,E as te,H as ae,S as re,k as se}from"../chunks/EditButton.5524866c.js";import{p as le}from"../chunks/stores.69824a18.js";function T(d,a,n){const r=d.slice();return r[6]=a[n],r}function J(d){let a,n;return{c(){a=b("div"),n=q("loading..."),this.h()},l(r){a=w(r,"DIV",{class:!0});var i=$(a);n=z(i,"loading..."),i.forEach(u),this.h()},h(){E(a,"class","flex items-center justify-center w-full pt-1 pb-6 tracking-tight text-sm text-gray-500 dark:text-gray-400 font-mono")},m(r,i){S(r,a,i),_(a,n)},d(r){r&&u(a)}}}function O(d){let a,n,r,i,h=d[0].name+"",v,f,c,m,p,s,o,t;return m=new te({props:{channel:d[0]}}),o=new ae({props:{data:d[0]}}),{c(){a=b("div"),n=b("div"),r=b("div"),i=b("h1"),v=q(h),f=x(),c=b("div"),B(m.$$.fragment),p=x(),s=b("div"),B(o.$$.fragment),this.h()},l(e){a=w(e,"DIV",{class:!0});var l=$(a);n=w(l,"DIV",{class:!0});var g=$(n);r=w(g,"DIV",{class:!0});var I=$(r);i=w(I,"H1",{class:!0});var y=$(i);v=z(y,h),y.forEach(u),I.forEach(u),f=V(g),c=w(g,"DIV",{class:!0});var j=$(c);N(m.$$.fragment,j),j.forEach(u),g.forEach(u),p=V(l),s=w(l,"DIV",{class:!0});var H=$(s);N(o.$$.fragment,H),H.forEach(u),l.forEach(u),this.h()},h(){E(i,"class","text-l font-medium text-gray-900 dark:text-white"),E(r,"class","w-1/3 overflow-hidden"),E(c,"class","inline-flex w-1/3 justify-end space-x-3"),E(n,"class","flex justify-between items-center py-4 pl-5 pr-4 rounded-t border-b dark:border-gray-700"),E(s,"class","overflow-y-auto overflow-x-hidden w-full p-10"),E(a,"class","border rounded-md border-gray-200 dark:border-gray-700 dark:bg-gray-800 bg-white")},m(e,l){S(e,a,l),_(a,n),_(n,r),_(r,i),_(i,v),_(n,f),_(n,c),A(m,c,null),_(a,p),_(a,s),A(o,s,null),t=!0},p(e,l){(!t||l&1)&&h!==(h=e[0].name+"")&&X(v,h);const g={};l&1&&(g.channel=e[0]),m.$set(g);const I={};l&1&&(I.data=e[0]),o.$set(I)},i(e){t||(k(m.$$.fragment,e),k(o.$$.fragment,e),t=!0)},o(e){D(m.$$.fragment,e),D(o.$$.fragment,e),t=!1},d(e){e&&u(a),C(m),C(o)}}}function R(d){let a,n,r,i,h,v,f,c,m,p=d[2],s=[];for(let t=0;t