import{S as e,i as t,s as a,a as n,e as r,c as l,b as s,d as c,f as i,g as o,h as d,j as h,t as u,k as m,l as f,o as p,m as g,n as v,p as $,q as E,r as w,u as D,v as _,w as y,x as T,y as I,z as S,A as b,B as L,C as k,D as q,E as R,H as M,F as N,G as A,I as H,J as V,K as U,L as B}from"./client.bc511d41.js";import{c as C,a as O,h as P,L as x}from"./createOctokit.5521b7cb.js";function F(e,t,a){const n=e.slice();return n[5]=t[a],n}function j(e){let t,a,n,l=w.i18n.allSystemsOperational+"";return{c(){t=r("article"),a=g("✅   "),n=g(l),this.h()},l(e){t=s(e,"ARTICLE",{class:!0});var r=c(t);a=v(r,"✅   "),n=v(r,l),r.forEach(i),this.h()},h(){o(t,"class","up")},m(e,r){d(e,t,r),$(t,a),$(t,n)},p:E,d(e){e&&i(t)}}}function Y(e){let t,a,o,h,u=w.i18n.activeIncidents+"",m=e[1],f=[];for(let t=0;t{w[l]=null})),m()),~p?(g=w[p],g?g.p(e,r):(g=w[p]=E[p](e),g.c()),f(g,1),g.m(a,null)):g=null)},i(e){v||(f(g),v=!0)},o(e){u(g),v=!1},d(e){$&&$.d(e),e&&i(t),e&&i(a),~p&&w[p].d()}}}function J(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`issues-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"open",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data),a(1,c=c.map(((e,t)=>(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e))))}catch(e){P(e)}a(0,n=!1)})),[n,c]}class K extends e{constructor(e){super(),t(this,e,J,G,a,{})}}function Q(e,t,a){const n=e.slice();return n[5]=t[a],n}function X(e){let t,a,o,h,u=w.i18n.scheduledMaintenance+"",m=e[1],f=[];for(let t=0;t{g[s]=null})),m()),~a?(n=g[a],n?n.p(e,l):(n=g[a]=p[a](e),n.c()),f(n,1),n.m(t,null)):n=null)},i(e){l||(f(n),l=!0)},o(e){u(n),l=!1},d(e){e&&i(t),~a&&g[a].d()}}}function ne(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`scheduled-current-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"open",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})))).data),a(1,c=c.map(((e,t)=>{if(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e.metadata={},e.body.includes("\x3c!--")){e.body.split("\x3c!--")[1].split("--\x3e")[0].split("\n").filter((e=>e.trim())).filter((e=>e.includes(":"))).forEach((t=>{e.metadata[t.split(/:(.+)/)[0].trim()]=t.split(/:(.+)/)[1].trim()}))}return e})))}catch(e){P(e)}a(0,n=!1)})),[n,c]}class re extends e{constructor(e){super(),t(this,e,ne,ae,a,{})}}function le(e,t,a){const n=e.slice();return n[5]=t[a],n}function se(e){let t,a,h,u,m=w.i18n.pastIncidents+"",f=e[1],p=[];for(let t=0;t{p[s]=null})),m()),~a?(n=p[a],n?n.p(e,l):(n=p[a]=o[a](e),n.c()),f(n,1),n.m(t,null)):n=null)},i(e){l||(f(n),l=!0)},o(e){u(n),l=!1},d(e){e&&i(t),~a&&p[a].d()}}}function he(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`closed-issues-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data)}catch(e){P(e)}a(1,c=c.map(((e,t)=>(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e)))),a(0,n=!1)})),[n,c]}class ue extends e{constructor(e){super(),t(this,e,he,de,a,{})}}function me(e,t,a){const n=e.slice();return n[18]=t[a],n}function fe(e){let t,a=e[1],n=[];for(let t=0;t{de[n]=null})),m()),~Q?(X=de[Q],X?X.p(e,a):(X=de[Q]=oe[Q](e),X.c()),f(X,1),X.m(K,null)):X=null)},i(e){Z||(f(X),Z=!0)},o(e){u(X),Z=!1},d(a){a&&i(t),e[12](null),a&&i(J),a&&i(K),~Q&&de[Q].d(),ee.r(),te=!1,q(ae)}}}function Ee(e,t,a){let n=!0;C();const r=w.owner,l=w.repo;let s=[],{apiBaseUrl:c,userContentBaseUrl:i}=w["status-website"]||{};c||(c="https://api.github.com"),i||(i="https://raw.githubusercontent.com");const o=`${i}/${r}/${l}/master/graphs`;let d=null,h="week";p((async()=>{try{const e=await fetch(`${i}/${r}/${l}/master/history/summary.json`);a(1,s=await e.json())}catch(e){P(e)}a(0,n=!1),d&&d.classList.remove("changed")}));return[n,s,d,h,o,()=>{d&&(d.classList.add("changed"),setTimeout((()=>d.classList.remove("changed")),500))},function(){h=this.__value,a(3,h)},[[]],function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(e){R[e?"unshift":"push"]((()=>{d=e,a(2,d)}))}]}class we extends e{constructor(e){super(),t(this,e,Ee,$e,a,{})}}function De(e,t,a){const n=e.slice();return n[5]=t[a],n}function _e(e){let t,a,h,u,m=w.i18n.pastScheduledMaintenance+"",f=e[1],p=[];for(let t=0;t{p[s]=null})),m()),~a?(n=p[a],n?n.p(e,l):(n=p[a]=o[a](e),n.c()),f(n,1),n.m(t,null)):n=null)},i(e){l||(f(n),l=!0)},o(e){u(n),l=!1},d(e){e&&i(t),~a&&p[a].d()}}}function be(e,t,a){let n=!0;const r=C(),l=w.owner,s=w.repo;let c=[];return p((async()=>{try{a(1,c=(await O(`maintenance-issues-${l}-${s}`,(()=>r.issues.listForRepo({owner:l,repo:s,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})))).data)}catch(e){P(e)}a(1,c=c.map(((e,t)=>(e.showHeading=0===t||new Date(c[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e)))),a(0,n=!1)})),[n,c]}class Le extends e{constructor(e){super(),t(this,e,be,Se,a,{})}}function ke(e){let t,a=B(w["status-website"].introTitle)+"";return{c(){t=r("h1")},l(e){t=s(e,"H1",{}),c(t).forEach(i)},m(e,n){d(e,t,n),t.innerHTML=a},p:E,d(e){e&&i(t)}}}function qe(e){let t,a=B(w["status-website"].introMessage)+"";return{c(){t=r("p"),this.h()},l(e){t=s(e,"P",{class:!0}),c(t).forEach(i),this.h()},h(){o(t,"class","lead svelte-ngkazm")},m(e,n){d(e,t,n),t.innerHTML=a},p:E,d(e){e&&i(t)}}}function Re(e){let t,a,h,m,p,g,v,$,E,_,b,L,k,q;document.title=t=e[0];let R=w["status-website"]&&function(){let e,t,a=w["status-website"].introTitle&&ke(),r=w["status-website"].introMessage&&qe();return{c(){a&&a.c(),e=n(),r&&r.c(),t=D()},l(n){a&&a.l(n),e=l(n),r&&r.l(n),t=D()},m(n,l){a&&a.m(n,l),d(n,e,l),r&&r.m(n,l),d(n,t,l)},p(e,t){w["status-website"].introTitle&&a.p(e,t),w["status-website"].introMessage&&r.p(e,t)},d(n){a&&a.d(n),n&&i(e),r&&r.d(n),n&&i(t)}}}();return p=new K({}),v=new re({}),E=new we({}),b=new Le({}),k=new ue({}),{c(){a=n(),h=r("header"),R&&R.c(),m=n(),y(p.$$.fragment),g=n(),y(v.$$.fragment),$=n(),y(E.$$.fragment),_=n(),y(b.$$.fragment),L=n(),y(k.$$.fragment),this.h()},l(e){U("svelte-1258swp",document.head).forEach(i),a=l(e),h=s(e,"HEADER",{class:!0});var t=c(h);R&&R.l(t),t.forEach(i),m=l(e),T(p.$$.fragment,e),g=l(e),T(v.$$.fragment,e),$=l(e),T(E.$$.fragment,e),_=l(e),T(b.$$.fragment,e),L=l(e),T(k.$$.fragment,e),this.h()},h(){o(h,"class","svelte-ngkazm")},m(e,t){d(e,a,t),d(e,h,t),R&&R.m(h,null),d(e,m,t),I(p,e,t),d(e,g,t),I(v,e,t),d(e,$,t),I(E,e,t),d(e,_,t),I(b,e,t),d(e,L,t),I(k,e,t),q=!0},p(e,a){let[n]=a;(!q||1&n)&&t!==(t=e[0])&&(document.title=t),w["status-website"]&&R.p(e,n)},i(e){q||(f(p.$$.fragment,e),f(v.$$.fragment,e),f(E.$$.fragment,e),f(b.$$.fragment,e),f(k.$$.fragment,e),q=!0)},o(e){u(p.$$.fragment,e),u(v.$$.fragment,e),u(E.$$.fragment,e),u(b.$$.fragment,e),u(k.$$.fragment,e),q=!1},d(e){e&&i(a),e&&i(h),R&&R.d(),e&&i(m),S(p,e),e&&i(g),S(v,e),e&&i($),S(E,e),e&&i(_),S(b,e),e&&i(L),S(k,e)}}}function Me(e,t,a){let n="Status";try{n=w["status-website"].name}catch(e){}return[n]}class Ne extends e{constructor(e){super(),t(this,e,Me,Re,a,{})}}export{Ne as default};