uptime/client/index.d087b4a2.js

2 lines
26 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

import{S as e,i as t,s as a,a as n,e as r,c as s,b as l,d as c,f as i,g as o,h as d,j as h,t as u,k as f,l as m,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 k,C as L,D as q,H as R,E as M,F as N,G as A,I as H,J as V,K as U}from"./client.5a380abf.js";import{c as O,a as x,h as B,L as C}from"./createOctokit.d7cad40f.js";function P(e,t,a){const n=e.slice();return n[5]=t[a],n}function F(e){let t,a,n,s=w.i18n.allSystemsOperational+"";return{c(){t=r("article"),a=g("✅   "),n=g(s),this.h()},l(e){t=l(e,"ARTICLE",{class:!0});var r=c(t);a=v(r,"✅   "),n=v(r,s),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 j(e){let t,a,o,h,u=w.i18n.activeIncidents+"",f=e[1],m=[];for(let t=0;t<f.length;t+=1)m[t]=W(P(e,f,t));return{c(){t=r("h2"),a=g(u),o=n();for(let e=0;e<m.length;e+=1)m[e].c();h=D()},l(e){t=l(e,"H2",{});var n=c(t);a=v(n,u),n.forEach(i),o=s(e);for(let t=0;t<m.length;t+=1)m[t].l(e);h=D()},m(e,n){d(e,t,n),$(t,a),d(e,o,n);for(let t=0;t<m.length;t+=1)m[t].m(e,n);d(e,h,n)},p(e,t){if(2&t){let a;for(f=e[1],a=0;a<f.length;a+=1){const n=P(e,f,a);m[a]?m[a].p(n,t):(m[a]=W(n),m[a].c(),m[a].m(h.parentNode,h))}for(;a<m.length;a+=1)m[a].d(1);m.length=f.length}},i:E,o:E,d(e){e&&i(t),e&&i(o),_(m,e),e&&i(h)}}}function Y(e){let t,a;return t=new C({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function W(e){let t,a,h,u,f,m,p,E,D,_,y,T,I,S,k,L=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",q=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString()).replace(/\$POSTS/g,e[5].comments)+"",R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"";return{c(){t=r("article"),a=r("div"),h=r("div"),u=r("h4"),f=g(L),m=n(),p=r("div"),E=g(q),D=n(),_=r("div"),y=r("a"),T=g(R),S=n(),this.h()},l(e){t=l(e,"ARTICLE",{class:!0});var n=c(t);a=l(n,"DIV",{class:!0});var r=c(a);h=l(r,"DIV",{});var o=c(h);u=l(o,"H4",{});var d=c(u);f=v(d,L),d.forEach(i),m=s(o),p=l(o,"DIV",{});var g=c(p);E=v(g,q),g.forEach(i),o.forEach(i),D=s(r),_=l(r,"DIV",{class:!0});var $=c(_);y=l($,"A",{href:!0});var w=c(y);T=v(w,R),w.forEach(i),$.forEach(i),r.forEach(i),S=s(n),n.forEach(i),this.h()},h(){o(y,"href",I=`${w.path}/incident/${e[5].number}`),o(_,"class","f r"),o(a,"class","f"),o(t,"class",k="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))},m(e,n){d(e,t,n),$(t,a),$(a,h),$(h,u),$(u,f),$(h,m),$(h,p),$(p,E),$(a,D),$(a,_),$(_,y),$(y,T),$(t,S)},p(e,a){2&a&&L!==(L=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(f,L),2&a&&q!==(q=w.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(e[5].created_at).toLocaleString()).replace(/\$POSTS/g,e[5].comments)+"")&&b(E,q),2&a&&R!==(R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(T,R),2&a&&I!==(I=`${w.path}/incident/${e[5].number}`)&&o(y,"href",I),2&a&&k!==(k="down down-active link "+(e[5].title.includes("degraded")?"degraded":""))&&o(t,"class",k)},d(e){e&&i(t)}}}function z(e){let t,a,p,g,v,$=!e[1].length&&!e[0]&&F();const E=[Y,j],w=[];function D(e,t){return e[0]?0:e[1].length?1:-1}return~(p=D(e))&&(g=w[p]=E[p](e)),{c(){$&&$.c(),t=n(),a=r("section"),g&&g.c(),this.h()},l(e){$&&$.l(e),t=s(e),a=l(e,"SECTION",{class:!0});var n=c(a);g&&g.l(n),n.forEach(i),this.h()},h(){o(a,"class","svelte-8lnl4f")},m(e,n){$&&$.m(e,n),d(e,t,n),d(e,a,n),~p&&w[p].m(a,null),v=!0},p(e,[n]){e[1].length||e[0]?$&&($.d(1),$=null):$?$.p(e,n):($=F(),$.c(),$.m(t.parentNode,t));let r=p;p=D(e),p===r?~p&&w[p].p(e,n):(g&&(h(),u(w[r],1,1,(()=>{w[r]=null})),f()),~p?(g=w[p],g?g.p(e,n):(g=w[p]=E[p](e),g.c()),m(g,1),g.m(a,null)):g=null)},i(e){v||(m(g),v=!0)},o(e){u(g),v=!1},d(e){$&&$.d(e),e&&i(t),e&&i(a),~p&&w[p].d()}}}function G(e,t,a){let n=!0;const r=O(),s=w.owner,l=w.repo;let c=[];return p((async()=>{try{a(1,c=(await x(`issues-${s}-${l}`,(()=>r.issues.listForRepo({owner:s,repo:l,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){B(e)}a(0,n=!1)})),[n,c]}class J extends e{constructor(e){super(),t(this,e,G,z,a,{})}}function K(e,t,a){const n=e.slice();return n[5]=t[a],n}function Q(e){let t,a,o,h,u=w.i18n.scheduledMaintenance+"",f=e[1],m=[];for(let t=0;t<f.length;t+=1)m[t]=ee(K(e,f,t));return{c(){t=r("h2"),a=g(u),o=n();for(let e=0;e<m.length;e+=1)m[e].c();h=D()},l(e){t=l(e,"H2",{});var n=c(t);a=v(n,u),n.forEach(i),o=s(e);for(let t=0;t<m.length;t+=1)m[t].l(e);h=D()},m(e,n){d(e,t,n),$(t,a),d(e,o,n);for(let t=0;t<m.length;t+=1)m[t].m(e,n);d(e,h,n)},p(e,t){if(2&t){let a;for(f=e[1],a=0;a<f.length;a+=1){const n=K(e,f,a);m[a]?m[a].p(n,t):(m[a]=ee(n),m[a].c(),m[a].m(h.parentNode,h))}for(;a<m.length;a+=1)m[a].d(1);m.length=f.length}},i:E,o:E,d(e){e&&i(t),e&&i(o),_(m,e),e&&i(h)}}}function X(e){let t,a;return t=new C({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function Z(e){let t,a,n=(new Date(e[5].metadata.start).getTime()<(new Date).getTime()?w.i18n.scheduledMaintenanceSummaryStarted:w.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(e[5].metadata.start).toLocaleString()).replace(/\$DURATION/g,Math.floor((new Date(e[5].metadata.end).getTime()-new Date(e[5].metadata.start).getTime())/6e4))+"";return{c(){t=r("div"),a=g(n)},l(e){t=l(e,"DIV",{});var r=c(t);a=v(r,n),r.forEach(i)},m(e,n){d(e,t,n),$(t,a)},p(e,t){2&t&&n!==(n=(new Date(e[5].metadata.start).getTime()<(new Date).getTime()?w.i18n.scheduledMaintenanceSummaryStarted:w.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(e[5].metadata.start).toLocaleString()).replace(/\$DURATION/g,Math.floor((new Date(e[5].metadata.end).getTime()-new Date(e[5].metadata.start).getTime())/6e4))+"")&&b(a,n)},d(e){e&&i(t)}}}function ee(e){let t,a,h,u,f,m,p,E,D,_,y,T,I=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",S=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"",k=e[5].metadata.start&&e[5].metadata.end&&Z(e);return{c(){t=r("article"),a=r("div"),h=r("div"),u=r("h4"),f=g(I),m=n(),k&&k.c(),p=n(),E=r("div"),D=r("a"),_=g(S),T=n(),this.h()},l(e){t=l(e,"ARTICLE",{class:!0});var n=c(t);a=l(n,"DIV",{class:!0});var r=c(a);h=l(r,"DIV",{});var o=c(h);u=l(o,"H4",{});var d=c(u);f=v(d,I),d.forEach(i),m=s(o),k&&k.l(o),o.forEach(i),p=s(r),E=l(r,"DIV",{class:!0});var g=c(E);D=l(g,"A",{href:!0});var $=c(D);_=v($,S),$.forEach(i),g.forEach(i),r.forEach(i),T=s(n),n.forEach(i),this.h()},h(){o(D,"href",y=`${w.path}/incident/${e[5].number}`),o(E,"class","f r"),o(a,"class","f"),o(t,"class","degraded degraded-active link")},m(e,n){d(e,t,n),$(t,a),$(a,h),$(h,u),$(u,f),$(h,m),k&&k.m(h,null),$(a,p),$(a,E),$(E,D),$(D,_),$(t,T)},p(e,t){2&t&&I!==(I=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(f,I),e[5].metadata.start&&e[5].metadata.end?k?k.p(e,t):(k=Z(e),k.c(),k.m(h,null)):k&&(k.d(1),k=null),2&t&&S!==(S=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(_,S),2&t&&y!==(y=`${w.path}/incident/${e[5].number}`)&&o(D,"href",y)},d(e){e&&i(t),k&&k.d()}}}function te(e){let t,a,n,s;const p=[X,Q],g=[];function v(e,t){return e[0]?0:e[1].length?1:-1}return~(a=v(e))&&(n=g[a]=p[a](e)),{c(){t=r("section"),n&&n.c(),this.h()},l(e){t=l(e,"SECTION",{class:!0});var a=c(t);n&&n.l(a),a.forEach(i),this.h()},h(){o(t,"class","svelte-8lnl4f")},m(e,n){d(e,t,n),~a&&g[a].m(t,null),s=!0},p(e,[r]){let s=a;a=v(e),a===s?~a&&g[a].p(e,r):(n&&(h(),u(g[s],1,1,(()=>{g[s]=null})),f()),~a?(n=g[a],n?n.p(e,r):(n=g[a]=p[a](e),n.c()),m(n,1),n.m(t,null)):n=null)},i(e){s||(m(n),s=!0)},o(e){u(n),s=!1},d(e){e&&i(t),~a&&g[a].d()}}}function ae(e,t,a){let n=!0;const r=O(),s=w.owner,l=w.repo;let c=[];return p((async()=>{try{a(1,c=(await x(`scheduled-current-${s}-${l}`,(()=>r.issues.listForRepo({owner:s,repo:l,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){B(e)}a(0,n=!1)})),[n,c]}class ne extends e{constructor(e){super(),t(this,e,ae,te,a,{})}}function re(e,t,a){const n=e.slice();return n[5]=t[a],n}function se(e){let t,a,h,u,f=w.i18n.pastIncidents+"",m=e[1],p=[];for(let t=0;t<m.length;t+=1)p[t]=ie(re(e,m,t));return{c(){t=r("h2"),a=g(f),h=n();for(let e=0;e<p.length;e+=1)p[e].c();u=D(),this.h()},l(e){t=l(e,"H2",{class:!0});var n=c(t);a=v(n,f),n.forEach(i),h=s(e);for(let t=0;t<p.length;t+=1)p[t].l(e);u=D(),this.h()},h(){o(t,"class","svelte-18y4uo2")},m(e,n){d(e,t,n),$(t,a),d(e,h,n);for(let t=0;t<p.length;t+=1)p[t].m(e,n);d(e,u,n)},p(e,t){if(2&t){let a;for(m=e[1],a=0;a<m.length;a+=1){const n=re(e,m,a);p[a]?p[a].p(n,t):(p[a]=ie(n),p[a].c(),p[a].m(u.parentNode,u))}for(;a<p.length;a+=1)p[a].d(1);p.length=m.length}},i:E,o:E,d(e){e&&i(t),e&&i(h),_(p,e),e&&i(u)}}}function le(e){let t,a;return t=new C({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function ce(e){let t,a,n=new Date(e[5].created_at).toLocaleDateString()+"";return{c(){t=r("h3"),a=g(n)},l(e){t=l(e,"H3",{});var r=c(t);a=v(r,n),r.forEach(i)},m(e,n){d(e,t,n),$(t,a)},p(e,t){2&t&&n!==(n=new Date(e[5].created_at).toLocaleDateString()+"")&&b(a,n)},d(e){e&&i(t)}}}function ie(e){let t,a,h,u,f,m,p,E,D,_,y,T,I,S,k,L=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",q=w.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(e[5].closed_at).getTime()-new Date(e[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,e[5].comments)+"",R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"",M=e[5].showHeading&&ce(e);return{c(){M&&M.c(),t=n(),a=r("article"),h=r("div"),u=r("div"),f=r("h4"),m=g(L),p=n(),E=r("div"),D=n(),_=r("div"),y=r("a"),T=g(R),S=n(),this.h()},l(e){M&&M.l(e),t=s(e),a=l(e,"ARTICLE",{class:!0});var n=c(a);h=l(n,"DIV",{class:!0});var r=c(h);u=l(r,"DIV",{});var o=c(u);f=l(o,"H4",{});var d=c(f);m=v(d,L),d.forEach(i),p=s(o),E=l(o,"DIV",{}),c(E).forEach(i),o.forEach(i),D=s(r),_=l(r,"DIV",{class:!0});var g=c(_);y=l(g,"A",{href:!0});var $=c(y);T=v($,R),$.forEach(i),g.forEach(i),r.forEach(i),S=s(n),n.forEach(i),this.h()},h(){o(y,"href",I=`${w.path}/incident/${e[5].number}`),o(_,"class","f r"),o(h,"class","f"),o(a,"class",k="down link "+(e[5].title.includes("degraded")?"degraded":""))},m(e,n){M&&M.m(e,n),d(e,t,n),d(e,a,n),$(a,h),$(h,u),$(u,f),$(f,m),$(u,p),$(u,E),E.innerHTML=q,$(h,D),$(h,_),$(_,y),$(y,T),$(a,S)},p(e,n){e[5].showHeading?M?M.p(e,n):(M=ce(e),M.c(),M.m(t.parentNode,t)):M&&(M.d(1),M=null),2&n&&L!==(L=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(m,L),2&n&&q!==(q=w.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(e[5].closed_at).getTime()-new Date(e[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,e[5].comments)+"")&&(E.innerHTML=q),2&n&&R!==(R=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(T,R),2&n&&I!==(I=`${w.path}/incident/${e[5].number}`)&&o(y,"href",I),2&n&&k!==(k="down link "+(e[5].title.includes("degraded")?"degraded":""))&&o(a,"class",k)},d(e){M&&M.d(e),e&&i(t),e&&i(a)}}}function oe(e){let t,a,n,s;const o=[le,se],p=[];function g(e,t){return e[0]?0:e[1].length?1:-1}return~(a=g(e))&&(n=p[a]=o[a](e)),{c(){t=r("section"),n&&n.c()},l(e){t=l(e,"SECTION",{});var a=c(t);n&&n.l(a),a.forEach(i)},m(e,n){d(e,t,n),~a&&p[a].m(t,null),s=!0},p(e,[r]){let s=a;a=g(e),a===s?~a&&p[a].p(e,r):(n&&(h(),u(p[s],1,1,(()=>{p[s]=null})),f()),~a?(n=p[a],n?n.p(e,r):(n=p[a]=o[a](e),n.c()),m(n,1),n.m(t,null)):n=null)},i(e){s||(m(n),s=!0)},o(e){u(n),s=!1},d(e){e&&i(t),~a&&p[a].d()}}}function de(e,t,a){let n=!0;const r=O(),s=w.owner,l=w.repo;let c=[];return p((async()=>{try{a(1,c=(await x(`closed-issues-${s}-${l}`,(()=>r.issues.listForRepo({owner:s,repo:l,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data)}catch(e){B(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 he extends e{constructor(e){super(),t(this,e,de,oe,a,{})}}function ue(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<a.length;t+=1)n[t]=ge(ue(e,a,t));return{c(){for(let e=0;e<n.length;e+=1)n[e].c();t=D()},l(e){for(let t=0;t<n.length;t+=1)n[t].l(e);t=D()},m(e,a){for(let t=0;t<n.length;t+=1)n[t].m(e,a);d(e,t,a)},p(e,r){if(26&r){let s;for(a=e[1],s=0;s<a.length;s+=1){const l=ue(e,a,s);n[s]?n[s].p(l,r):(n[s]=ge(l),n[s].c(),n[s].m(t.parentNode,t))}for(;s<n.length;s+=1)n[s].d(1);n.length=a.length}},i:E,o:E,d(e){_(n,e),e&&i(t)}}}function me(e){let t,a;return t=new C({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function pe(e){let t,a,h,u,f,m,p,E=w.i18n.averageResponseTime.split("$TIME")[0]+"",D=("day"===e[3]?e[18].timeDay:"week"===e[3]?e[18].timeWeek:"month"===e[3]?e[18].timeMonth:"year"===e[3]?e[18].timeYear:e[18].time)+"",_=w.i18n.averageResponseTime.split("$TIME")[1]+"";return{c(){t=r("div"),a=new R(!1),h=n(),u=r("span"),f=g(D),m=n(),p=new R(!1),this.h()},l(e){t=l(e,"DIV",{});var n=c(t);a=M(n,!1),h=s(n),u=l(n,"SPAN",{class:!0});var r=c(u);f=v(r,D),m=s(r),p=M(r,!1),r.forEach(i),n.forEach(i),this.h()},h(){a.a=h,p.a=null,o(u,"class","data svelte-fqsq6s")},m(e,n){d(e,t,n),a.m(E,t),$(t,h),$(t,u),$(u,f),$(u,m),p.m(_,u)},p(e,t){10&t&&D!==(D=("day"===e[3]?e[18].timeDay:"week"===e[3]?e[18].timeWeek:"month"===e[3]?e[18].timeMonth:"year"===e[3]?e[18].timeYear:e[18].time)+"")&&b(f,D)},d(e){e&&i(t)}}}function ge(e){let t,a,h,u,f,m,p,E,D,_,y,T,I,S,k,L,q,V,U,O=e[18].name+"",x=w.i18n.overallUptime.split("$UPTIME")[0]+"",B=("day"===e[3]?e[18].uptimeDay:"week"===e[3]?e[18].uptimeWeek:"month"===e[3]?e[18].uptimeMonth:"year"===e[3]?e[18].uptimeYear:e[18].uptime)+"",C=w.i18n.overallUptime.split("$UPTIME")[1]+"",P=(void 0===e[18].showAverageResponseTime||e[18].showAverageResponseTime)&&pe(e);return{c(){t=r("article"),a=r("h4"),h=r("img"),f=n(),m=r("a"),p=g(O),D=n(),_=r("div"),y=new R(!1),T=n(),I=r("span"),S=g(B),k=n(),L=new R(!1),q=n(),P&&P.c(),V=n(),this.h()},l(e){t=l(e,"ARTICLE",{class:!0,style:!0});var n=c(t);a=l(n,"H4",{});var r=c(a);h=l(r,"IMG",{class:!0,alt:!0,src:!0}),f=s(r),m=l(r,"A",{href:!0,class:!0});var o=c(m);p=v(o,O),o.forEach(i),r.forEach(i),D=s(n),_=l(n,"DIV",{});var d=c(_);y=M(d,!1),T=s(d),I=l(d,"SPAN",{class:!0});var u=c(I);S=v(u,B),k=s(u),L=M(u,!1),u.forEach(i),d.forEach(i),q=s(n),P&&P.l(n),V=s(n),n.forEach(i),this.h()},h(){o(h,"class","icon svelte-fqsq6s"),o(h,"alt",""),N(h.src,u=e[18].icon)||o(h,"src",u),o(m,"href",E=`${w.path}/history/${e[18].slug}`),o(m,"class","svelte-fqsq6s"),y.a=T,L.a=null,o(I,"class","data svelte-fqsq6s"),o(t,"class",U=A(`${e[18].status} link graph`)+" svelte-fqsq6s"),H(t,"--background",`url('${e[4]}/${e[18].slug}/response-time${"day"===e[3]?"-day":"week"===e[3]?"-week":"month"===e[3]?"-month":"year"===e[3]?"-year":""}.png')`)},m(e,n){d(e,t,n),$(t,a),$(a,h),$(a,f),$(a,m),$(m,p),$(t,D),$(t,_),y.m(x,_),$(_,T),$(_,I),$(I,S),$(I,k),L.m(C,I),$(t,q),P&&P.m(t,null),$(t,V)},p(e,a){2&a&&!N(h.src,u=e[18].icon)&&o(h,"src",u),2&a&&O!==(O=e[18].name+"")&&b(p,O),2&a&&E!==(E=`${w.path}/history/${e[18].slug}`)&&o(m,"href",E),10&a&&B!==(B=("day"===e[3]?e[18].uptimeDay:"week"===e[3]?e[18].uptimeWeek:"month"===e[3]?e[18].uptimeMonth:"year"===e[3]?e[18].uptimeYear:e[18].uptime)+"")&&b(S,B),void 0===e[18].showAverageResponseTime||e[18].showAverageResponseTime?P?P.p(e,a):(P=pe(e),P.c(),P.m(t,V)):P&&(P.d(1),P=null),2&a&&U!==(U=A(`${e[18].status} link graph`)+" svelte-fqsq6s")&&o(t,"class",U),10&a&&H(t,"--background",`url('${e[4]}/${e[18].slug}/response-time${"day"===e[3]?"-day":"week"===e[3]?"-week":"month"===e[3]?"-month":"year"===e[3]?"-year":""}.png')`)},d(e){e&&i(t),P&&P.d()}}}function ve(e){let t,a,p,E,D,_,y,T,I,S,b,q,R,M,N,A,H,V,U,O,x,B,C,P,F,j,Y,W,z,G,J,K,Q,X,Z,ee,te=w.i18n.liveStatus+"",ae=(w.i18n.duration24H||"24h")+"",ne=(w.i18n.duration7D||"7d")+"",re=(w.i18n.duration30D||"30d")+"",se=(w.i18n.duration1Y||"1y")+"",le=(w.i18n.durationAll||"all")+"";const ce=[me,fe],ie=[];function oe(e,t){return e[0]?0:e[1].length?1:-1}return~(K=oe(e))&&(Q=ie[K]=ce[K](e)),{c(){t=r("div"),a=r("h2"),p=g(te),E=n(),D=r("form"),_=r("div"),y=r("input"),T=r("label"),I=g(ae),S=n(),b=r("div"),q=r("input"),R=r("label"),M=g(ne),N=n(),A=r("div"),H=r("input"),V=r("label"),U=g(re),O=n(),x=r("div"),B=r("input"),C=r("label"),P=g(se),F=n(),j=r("div"),Y=r("input"),W=r("label"),z=g(le),G=n(),J=r("section"),Q&&Q.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var n=c(t);a=l(n,"H2",{});var r=c(a);p=v(r,te),r.forEach(i),E=s(n),D=l(n,"FORM",{class:!0});var o=c(D);_=l(o,"DIV",{});var d=c(_);y=l(d,"INPUT",{name:!0,type:!0,id:!0,class:!0}),T=l(d,"LABEL",{for:!0,class:!0});var h=c(T);I=v(h,ae),h.forEach(i),d.forEach(i),S=s(o),b=l(o,"DIV",{});var u=c(b);q=l(u,"INPUT",{name:!0,type:!0,id:!0,class:!0}),R=l(u,"LABEL",{for:!0,class:!0});var f=c(R);M=v(f,ne),f.forEach(i),u.forEach(i),N=s(o),A=l(o,"DIV",{});var m=c(A);H=l(m,"INPUT",{name:!0,type:!0,id:!0,class:!0}),V=l(m,"LABEL",{for:!0,class:!0});var g=c(V);U=v(g,re),g.forEach(i),m.forEach(i),O=s(o),x=l(o,"DIV",{});var $=c(x);B=l($,"INPUT",{name:!0,type:!0,id:!0,class:!0}),C=l($,"LABEL",{for:!0,class:!0});var w=c(C);P=v(w,se),w.forEach(i),$.forEach(i),F=s(o),j=l(o,"DIV",{});var k=c(j);Y=l(k,"INPUT",{name:!0,type:!0,id:!0,class:!0}),W=l(k,"LABEL",{for:!0,class:!0});var L=c(W);z=v(L,le),L.forEach(i),k.forEach(i),o.forEach(i),n.forEach(i),G=s(e),J=l(e,"SECTION",{class:!0});var K=c(J);Q&&Q.l(K),K.forEach(i),this.h()},h(){y.__value="day",y.value=y.__value,o(y,"name","d"),o(y,"type","radio"),o(y,"id","data_day"),o(y,"class","svelte-fqsq6s"),e[7][0].push(y),o(T,"for","data_day"),o(T,"class","svelte-fqsq6s"),q.__value="week",q.value=q.__value,o(q,"name","d"),o(q,"type","radio"),o(q,"id","data_week"),o(q,"class","svelte-fqsq6s"),e[7][0].push(q),o(R,"for","data_week"),o(R,"class","svelte-fqsq6s"),H.__value="month",H.value=H.__value,o(H,"name","d"),o(H,"type","radio"),o(H,"id","data_month"),o(H,"class","svelte-fqsq6s"),e[7][0].push(H),o(V,"for","data_month"),o(V,"class","svelte-fqsq6s"),B.__value="year",B.value=B.__value,o(B,"name","d"),o(B,"type","radio"),o(B,"id","data_year"),o(B,"class","svelte-fqsq6s"),e[7][0].push(B),o(C,"for","data_year"),o(C,"class","svelte-fqsq6s"),Y.__value="all",Y.value=Y.__value,o(Y,"name","d"),o(Y,"type","radio"),o(Y,"id","data_all"),o(Y,"class","svelte-fqsq6s"),e[7][0].push(Y),o(W,"for","data_all"),o(W,"class","svelte-fqsq6s"),o(D,"class","f r svelte-fqsq6s"),o(t,"class","f changed svelte-fqsq6s"),o(J,"class","live-status svelte-fqsq6s")},m(n,r){d(n,t,r),$(t,a),$(a,p),$(t,E),$(t,D),$(D,_),$(_,y),y.checked=y.__value===e[3],$(_,T),$(T,I),$(D,S),$(D,b),$(b,q),q.checked=q.__value===e[3],$(b,R),$(R,M),$(D,N),$(D,A),$(A,H),H.checked=H.__value===e[3],$(A,V),$(V,U),$(D,O),$(D,x),$(x,B),B.checked=B.__value===e[3],$(x,C),$(C,P),$(D,F),$(D,j),$(j,Y),Y.checked=Y.__value===e[3],$(j,W),$(W,z),e[12](t),d(n,G,r),d(n,J,r),~K&&ie[K].m(J,null),X=!0,Z||(ee=[k(y,"change",e[6]),k(y,"change",e[5]),k(q,"change",e[8]),k(q,"change",e[5]),k(H,"change",e[9]),k(H,"change",e[5]),k(B,"change",e[10]),k(B,"change",e[5]),k(Y,"change",e[11]),k(Y,"change",e[5])],Z=!0)},p(e,[t]){8&t&&(y.checked=y.__value===e[3]),8&t&&(q.checked=q.__value===e[3]),8&t&&(H.checked=H.__value===e[3]),8&t&&(B.checked=B.__value===e[3]),8&t&&(Y.checked=Y.__value===e[3]);let a=K;K=oe(e),K===a?~K&&ie[K].p(e,t):(Q&&(h(),u(ie[a],1,1,(()=>{ie[a]=null})),f()),~K?(Q=ie[K],Q?Q.p(e,t):(Q=ie[K]=ce[K](e),Q.c()),m(Q,1),Q.m(J,null)):Q=null)},i(e){X||(m(Q),X=!0)},o(e){u(Q),X=!1},d(a){a&&i(t),e[7][0].splice(e[7][0].indexOf(y),1),e[7][0].splice(e[7][0].indexOf(q),1),e[7][0].splice(e[7][0].indexOf(H),1),e[7][0].splice(e[7][0].indexOf(B),1),e[7][0].splice(e[7][0].indexOf(Y),1),e[12](null),a&&i(G),a&&i(J),~K&&ie[K].d(),Z=!1,L(ee)}}}function $e(e,t,a){let n=!0;O();const r=w.owner,s=w.repo;let{apiBaseUrl:l}=w["status-website"]||{},c=[];l||(l="https://api.github.com");const i=l.includes("api.github.com")?"https://raw.githubusercontent.com":l,o=`${i}/${r}/${s}/master/graphs`;let d=null,h="week";p((async()=>{try{const e=await fetch(`${i}/${r}/${s}/master/history/summary.json`);a(1,c=await e.json())}catch(e){B(e)}a(0,n=!1),d&&d.classList.remove("changed")}));return[n,c,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){q[e?"unshift":"push"]((()=>{d=e,a(2,d)}))}]}class Ee extends e{constructor(e){super(),t(this,e,$e,ve,a,{})}}function we(e,t,a){const n=e.slice();return n[5]=t[a],n}function De(e){let t,a,h,u,f=w.i18n.pastScheduledMaintenance+"",m=e[1],p=[];for(let t=0;t<m.length;t+=1)p[t]=Te(we(e,m,t));return{c(){t=r("h2"),a=g(f),h=n();for(let e=0;e<p.length;e+=1)p[e].c();u=D(),this.h()},l(e){t=l(e,"H2",{class:!0});var n=c(t);a=v(n,f),n.forEach(i),h=s(e);for(let t=0;t<p.length;t+=1)p[t].l(e);u=D(),this.h()},h(){o(t,"class","svelte-18y4uo2")},m(e,n){d(e,t,n),$(t,a),d(e,h,n);for(let t=0;t<p.length;t+=1)p[t].m(e,n);d(e,u,n)},p(e,t){if(2&t){let a;for(m=e[1],a=0;a<m.length;a+=1){const n=we(e,m,a);p[a]?p[a].p(n,t):(p[a]=Te(n),p[a].c(),p[a].m(u.parentNode,u))}for(;a<p.length;a+=1)p[a].d(1);p.length=m.length}},i:E,o:E,d(e){e&&i(t),e&&i(h),_(p,e),e&&i(u)}}}function _e(e){let t,a;return t=new C({}),{c(){y(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,n){I(t,e,n),a=!0},p:E,i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){S(t,e)}}}function ye(e){let t,a,n=new Date(e[5].created_at).toLocaleDateString()+"";return{c(){t=r("h3"),a=g(n)},l(e){t=l(e,"H3",{});var r=c(t);a=v(r,n),r.forEach(i)},m(e,n){d(e,t,n),$(t,a)},p(e,t){2&t&&n!==(n=new Date(e[5].created_at).toLocaleDateString()+"")&&b(a,n)},d(e){e&&i(t)}}}function Te(e){let t,a,h,u,f,m,p,E,D,_,y,T,I,S,k,L=e[5].title.replace("🛑","").replace("⚠️","").trim()+"",q=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"",R=e[5].showHeading&&ye(e);return{c(){R&&R.c(),t=n(),a=r("article"),h=r("div"),u=r("div"),f=r("h4"),m=g(L),p=n(),E=r("div"),D=g("Completed"),_=n(),y=r("div"),T=r("a"),I=g(q),k=n(),this.h()},l(e){R&&R.l(e),t=s(e),a=l(e,"ARTICLE",{class:!0});var n=c(a);h=l(n,"DIV",{class:!0});var r=c(h);u=l(r,"DIV",{});var o=c(u);f=l(o,"H4",{});var d=c(f);m=v(d,L),d.forEach(i),p=s(o),E=l(o,"DIV",{});var g=c(E);D=v(g,"Completed"),g.forEach(i),o.forEach(i),_=s(r),y=l(r,"DIV",{class:!0});var $=c(y);T=l($,"A",{href:!0});var w=c(T);I=v(w,q),w.forEach(i),$.forEach(i),r.forEach(i),k=s(n),n.forEach(i),this.h()},h(){o(T,"href",S=`${w.path}/incident/${e[5].number}`),o(y,"class","f r"),o(h,"class","f"),o(a,"class","link degraded")},m(e,n){R&&R.m(e,n),d(e,t,n),d(e,a,n),$(a,h),$(h,u),$(u,f),$(f,m),$(u,p),$(u,E),$(E,D),$(h,_),$(h,y),$(y,T),$(T,I),$(a,k)},p(e,a){e[5].showHeading?R?R.p(e,a):(R=ye(e),R.c(),R.m(t.parentNode,t)):R&&(R.d(1),R=null),2&a&&L!==(L=e[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(m,L),2&a&&q!==(q=w.i18n.incidentReport.replace(/\$NUMBER/g,e[5].number)+"")&&b(I,q),2&a&&S!==(S=`${w.path}/incident/${e[5].number}`)&&o(T,"href",S)},d(e){R&&R.d(e),e&&i(t),e&&i(a)}}}function Ie(e){let t,a,n,s;const o=[_e,De],p=[];function g(e,t){return e[0]?0:e[1].length?1:-1}return~(a=g(e))&&(n=p[a]=o[a](e)),{c(){t=r("section"),n&&n.c()},l(e){t=l(e,"SECTION",{});var a=c(t);n&&n.l(a),a.forEach(i)},m(e,n){d(e,t,n),~a&&p[a].m(t,null),s=!0},p(e,[r]){let s=a;a=g(e),a===s?~a&&p[a].p(e,r):(n&&(h(),u(p[s],1,1,(()=>{p[s]=null})),f()),~a?(n=p[a],n?n.p(e,r):(n=p[a]=o[a](e),n.c()),m(n,1),n.m(t,null)):n=null)},i(e){s||(m(n),s=!0)},o(e){u(n),s=!1},d(e){e&&i(t),~a&&p[a].d()}}}function Se(e,t,a){let n=!0;const r=O(),s=w.owner,l=w.repo;let c=[];return p((async()=>{try{a(1,c=(await x(`maintenance-issues-${s}-${l}`,(()=>r.issues.listForRepo({owner:s,repo:l,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})))).data)}catch(e){B(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 be extends e{constructor(e){super(),t(this,e,Se,Ie,a,{})}}function ke(e){let t,a=U(w["status-website"].introTitle)+"";return{c(){t=r("h1")},l(e){t=l(e,"H1",{}),c(t).forEach(i)},m(e,n){d(e,t,n),t.innerHTML=a},p:E,d(e){e&&i(t)}}}function Le(e){let t,a=U(w["status-website"].introMessage)+"";return{c(){t=r("p"),this.h()},l(e){t=l(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 qe(e){let t,a,h,f,p,g,v,$,E,_,b,k,L,q;document.title=t=e[0];let R=w["status-website"]&&function(e){let t,a,r=w["status-website"].introTitle&&ke(),l=w["status-website"].introMessage&&Le();return{c(){r&&r.c(),t=n(),l&&l.c(),a=D()},l(e){r&&r.l(e),t=s(e),l&&l.l(e),a=D()},m(e,n){r&&r.m(e,n),d(e,t,n),l&&l.m(e,n),d(e,a,n)},p(e,t){w["status-website"].introTitle&&r.p(e,t),w["status-website"].introMessage&&l.p(e,t)},d(e){r&&r.d(e),e&&i(t),l&&l.d(e),e&&i(a)}}}();return p=new J({}),v=new ne({}),E=new Ee({}),b=new be({}),L=new he({}),{c(){a=n(),h=r("header"),R&&R.c(),f=n(),y(p.$$.fragment),g=n(),y(v.$$.fragment),$=n(),y(E.$$.fragment),_=n(),y(b.$$.fragment),k=n(),y(L.$$.fragment),this.h()},l(e){V('[data-svelte="svelte-1258swp"]',document.head).forEach(i),a=s(e),h=l(e,"HEADER",{class:!0});var t=c(h);R&&R.l(t),t.forEach(i),f=s(e),T(p.$$.fragment,e),g=s(e),T(v.$$.fragment,e),$=s(e),T(E.$$.fragment,e),_=s(e),T(b.$$.fragment,e),k=s(e),T(L.$$.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,f,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,k,t),I(L,e,t),q=!0},p(e,[a]){(!q||1&a)&&t!==(t=e[0])&&(document.title=t),w["status-website"]&&R.p(e,a)},i(e){q||(m(p.$$.fragment,e),m(v.$$.fragment,e),m(E.$$.fragment,e),m(b.$$.fragment,e),m(L.$$.fragment,e),q=!0)},o(e){u(p.$$.fragment,e),u(v.$$.fragment,e),u(E.$$.fragment,e),u(b.$$.fragment,e),u(L.$$.fragment,e),q=!1},d(e){e&&i(a),e&&i(h),R&&R.d(),e&&i(f),S(p,e),e&&i(g),S(v,e),e&&i($),S(E,e),e&&i(_),S(b,e),e&&i(k),S(L,e)}}}function Re(e,t,a){let n="Status";try{n=w["status-website"].name}catch(e){}return[n]}class Me extends e{constructor(e){super(),t(this,e,Re,qe,a,{})}}export{Me as default};