mirror of
https://github.com/Snigdha-OS/snigdhaos-status.git
synced 2026-02-13 22:13:53 +01:00
18 lines
42 KiB
JavaScript
18 lines
42 KiB
JavaScript
function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function s(){return Object.create(null)}function r(e){e.forEach(n)}function o(e){return"function"==typeof e}function i(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let a;function c(e,t){return a||(a=document.createElement("a")),a.href=t,e===a.href}function l(e,n,s,r){return e[1]&&r?t(s.ctx.slice(),e[1](r(n))):s.ctx}function u(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function d(e){return null==e?"":e}let h=!1;function f(e,t,n,s){for(;e<t;){const r=e+(t-e>>1);n(r)<=s?e=r+1:t=r}return e}function m(e,t){if(h){for(!function(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if("HEAD"===e.nodeName){const e=[];for(let n=0;n<t.length;n++){const s=t[n];void 0!==s.claim_order&&e.push(s)}t=e}const n=new Int32Array(t.length+1),s=new Int32Array(t.length);n[0]=-1;let r=0;for(let e=0;e<t.length;e++){const o=t[e].claim_order,i=(r>0&&t[n[r]].claim_order<=o?r+1:f(1,r,(e=>t[n[e]].claim_order),o))-1;s[e]=n[i]+1;const a=i+1;n[a]=e,r=Math.max(a,r)}const o=[],i=[];let a=t.length-1;for(let e=n[r]+1;0!=e;e=s[e-1]){for(o.push(t[e-1]);a>=e;a--)i.push(t[a]);a--}for(;a>=0;a--)i.push(t[a]);o.reverse(),i.sort(((e,t)=>e.claim_order-t.claim_order));for(let t=0,n=0;t<i.length;t++){for(;n<o.length&&i[t].claim_order>=o[n].claim_order;)n++;const s=n<o.length?o[n]:null;e.insertBefore(i[t],s)}}(e),(void 0===e.actual_end_child||null!==e.actual_end_child&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);null!==e.actual_end_child&&void 0===e.actual_end_child.claim_order;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?void 0===t.claim_order&&t.parentNode===e||e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else t.parentNode===e&&null===t.nextSibling||e.appendChild(t)}function p(e,t,n){e.insertBefore(t,n||null)}function g(e,t,n){h&&!n?m(e,t):t.parentNode===e&&t.nextSibling==n||e.insertBefore(t,n||null)}function b(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function w(e){return document.createElement(e)}function y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function $(e){return document.createTextNode(e)}function _(){return $(" ")}function S(){return $("")}function E(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function O(e){return function(t){return t.preventDefault(),e.call(this,t)}}function T(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const A=["width","height"];function x(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const s in t)null==t[s]?e.removeAttribute(s):"style"===s?e.style.cssText=t[s]:"__value"===s?e.value=e[s]=t[s]:n[s]&&n[s].set&&-1===A.indexOf(s)?e[s]=t[s]:T(e,s,t[s])}function I(e){let t;return{p(...n){t=n,t.forEach((t=>e.push(t)))},r(){t.forEach((t=>e.splice(e.indexOf(t),1)))}}}function N(e){return Array.from(e.childNodes)}function R(e){void 0===e.claim_info&&(e.claim_info={last_index:0,total_claimed:0})}function L(e,t,n,s,r=!1){R(e);const o=(()=>{for(let s=e.claim_info.last_index;s<e.length;s++){const o=e[s];if(t(o)){const t=n(o);return void 0===t?e.splice(s,1):e[s]=t,r||(e.claim_info.last_index=s),o}}for(let s=e.claim_info.last_index-1;s>=0;s--){const o=e[s];if(t(o)){const t=n(o);return void 0===t?e.splice(s,1):e[s]=t,r?void 0===t&&e.claim_info.last_index--:e.claim_info.last_index=s,o}}return s()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function P(e,t,n,s){return L(e,(e=>e.nodeName===t),(e=>{const t=[];for(let s=0;s<e.attributes.length;s++){const r=e.attributes[s];n[r.name]||t.push(r.name)}t.forEach((t=>e.removeAttribute(t)))}),(()=>s(t)))}function H(e,t,n){return P(e,t,n,w)}function k(e,t,n){return P(e,t,n,y)}function U(e,t){return L(e,(e=>3===e.nodeType),(e=>{const n=""+t;if(e.data.startsWith(n)){if(e.data.length!==n.length)return e.splitText(n.length)}else e.data=n}),(()=>$(t)),!0)}function C(e){return U(e," ")}function D(e,t,n){for(let s=n;s<e.length;s+=1){const n=e[s];if(8===n.nodeType&&n.textContent.trim()===t)return s}return e.length}function M(e,t){const n=D(e,"HTML_TAG_START",0),s=D(e,"HTML_TAG_END",n);if(n===s)return new V(void 0,t);R(e);const r=e.splice(n,s-n+1);b(r[0]),b(r[r.length-1]);const o=r.slice(1,r.length-1);for(const t of o)t.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new V(o,t)}function G(e,t){t=""+t,e.data!==t&&(e.data=t)}function j(e,t){e.value=null==t?"":t}function B(e,t,n,s){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,s?"important":"")}let z,F;function q(){if(void 0===z){z=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){z=!0}}return z}function K(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=w("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const s=q();let r;return s?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",r=E(window,"message",(e=>{e.source===n.contentWindow&&t()}))):(n.src="about:blank",n.onload=()=>{r=E(n.contentWindow,"resize",t),t()}),function(e,t){e.appendChild(t)}(e,n),()=>{(s||r&&n.contentWindow)&&r(),b(n)}}function W(e,t){const n=[];let s=0;for(const r of t.childNodes)if(8===r.nodeType){const t=r.textContent.trim();t===`HEAD_${e}_END`?(s-=1,n.push(r)):t===`HEAD_${e}_START`&&(s+=1,n.push(r))}else s>0&&n.push(r);return n}class J{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=y(t.nodeName):this.e=w(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)p(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(b)}}class V extends J{constructor(e,t=!1){super(t),this.e=this.n=null,this.l=e}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let t=0;t<this.n.length;t+=1)g(this.t,this.n[t],e)}}function Y(e,t){return new e(t)}function X(e){F=e}function Q(){if(!F)throw new Error("Function called outside component initialization");return F}function Z(e){Q().$$.on_mount.push(e)}function ee(e){Q().$$.after_update.push(e)}function te(e){Q().$$.on_destroy.push(e)}const ne=[],se=[];let re=[];const oe=[],ie=Promise.resolve();let ae=!1;function ce(e){re.push(e)}const le=new Set;let ue=0;function de(){if(0!==ue)return;const e=F;do{try{for(;ue<ne.length;){const e=ne[ue];ue++,X(e),he(e.$$)}}catch(e){throw ne.length=0,ue=0,e}for(X(null),ne.length=0,ue=0;se.length;)se.pop()();for(let e=0;e<re.length;e+=1){const t=re[e];le.has(t)||(le.add(t),t())}re.length=0}while(ne.length);for(;oe.length;)oe.pop()();ae=!1,le.clear(),X(e)}function he(e){if(null!==e.fragment){e.update(),r(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ce)}}const fe=new Set;let me;function pe(){me={r:0,c:[],p:me}}function ge(){me.r||r(me.c),me=me.p}function be(e,t){e&&e.i&&(fe.delete(e),e.i(t))}function ve(e,t,n,s){if(e&&e.o){if(fe.has(e))return;fe.add(e),me.c.push((()=>{fe.delete(e),s&&(n&&e.d(1),s())})),e.o(t)}else s&&s()}function we(e,t){const n={},s={},r={$$scope:1};let o=e.length;for(;o--;){const i=e[o],a=t[o];if(a){for(const e in i)e in a||(s[e]=1);for(const e in a)r[e]||(n[e]=a[e],r[e]=1);e[o]=a}else for(const e in i)r[e]=1}for(const e in s)e in n||(n[e]=void 0);return n}function ye(e){return"object"==typeof e&&null!==e?e:{}}function $e(e){e&&e.c()}function _e(e,t){e&&e.l(t)}function Se(e,t,s,i){const{fragment:a,after_update:c}=e.$$;a&&a.m(t,s),i||ce((()=>{const t=e.$$.on_mount.map(n).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...t):r(t),e.$$.on_mount=[]})),c.forEach(ce)}function Ee(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];re.forEach((s=>-1===e.indexOf(s)?t.push(s):n.push(s))),n.forEach((e=>e())),re=t}(n.after_update),r(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Oe(e,t){-1===e.$$.dirty[0]&&(ne.push(e),ae||(ae=!0,ie.then(de)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Te(t,n,o,i,a,c,l,u=[-1]){const d=F;X(t);const f=t.$$={fragment:null,ctx:[],props:c,update:e,not_equal:a,bound:s(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:s(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};l&&l(f.root);let m=!1;if(f.ctx=o?o(t,n.props||{},((e,n,...s)=>{const r=s.length?s[0]:n;return f.ctx&&a(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),m&&Oe(t,e)),n})):[],f.update(),m=!0,r(f.before_update),f.fragment=!!i&&i(f.ctx),n.target){if(n.hydrate){h=!0;const e=N(n.target);f.fragment&&f.fragment.l(e),e.forEach(b)}else f.fragment&&f.fragment.c();n.intro&&be(t.$$.fragment),Se(t,n.target,n.anchor,n.customElement),h=!1,de()}X(d)}class Ae{$destroy(){Ee(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const e=s.indexOf(n);-1!==e&&s.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const xe=[];function Ie(t,n=e){let s;const r=new Set;function o(e){if(i(t,e)&&(t=e,s)){const e=!xe.length;for(const e of r)e[1](),xe.push(e,t);if(e){for(let e=0;e<xe.length;e+=2)xe[e][0](xe[e+1]);xe.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=e){const c=[i,a];return r.add(c),1===r.size&&(s=n(o)||e),i(t),()=>{r.delete(c),0===r.size&&s&&(s(),s=null)}}}}const Ne={};var Re={owner:"Snigdha-OS",repo:"snigdhaos-status",assignees:["eshanized","d3v1l0n"],sites:[{name:"SNIGDHAOS.ORG",url:"https://snigdhaos.org",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"},{name:"SNIGDHAOS.GITHUB.IO",url:"https://snigdha-os.github.io",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"},{name:"SNIGDHAOS.GITHUB.IO/PACKAGE-BROWSER",url:"https://snigdha-os.github.io/package-browser/",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"},{name:"FORUM.SNIGDHAOS.ORG",url:"https://forum.snigdhaos.org",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"},{name:"SNIGDHAOS.GITHUB.IO/SNIGDHAOS-TOOLS",url:"https://snigdha-os.github.io/snigdhaos-tools/",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"},{name:"SNIGDHAOS.GITHUB.IO/DOCUMENTATION",url:"https://snigdha-os.github.io/documentation/",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"},{name:"SNIGDHAOS.GITHUB.IO/SNIGDHAOS-CORE",url:"https://snigdha-os.github.io/snigdhaos-core/",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"},{name:"SNIGDHAOS.GITHUB.IO/SNIGDHAOS-EXTRA",url:"https://snigdha-os.github.io/snigdhaos-extra/",icon:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg"}],"status-website":{baseUrl:"/snigdhaos-status",logoUrl:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg",faviconSvg:"https://raw.githubusercontent.com/Snigdha-OS/snigdhaos-assets/refs/heads/master/2024/svg/Snigdha%20OS%20Favicon.svg",name:"Snigdha OS Status",introTitle:"Am I Running??",introMessage:"Powered by Upptime",theme:"night",navbar:[{title:"Status",href:"/"},{title:"GitHub",href:"https://github.com/$OWNER/$REPO"},{title:"Home",href:"https://snigdhaos.org/"}]},commitMessages:{commitAuthorName:"Eshan Roy",commitAuthorEmail:"m.eshanized@gmail.com"},path:"https://Snigdha-OS.github.io/snigdhaos-status",i18n:{activeIncidents:"Active Incidents",allSystemsOperational:"All systems are operational",incidentReport:"Incident #$NUMBER report →",activeIncidentSummary:"Opened at $DATE with $POSTS posts",incidentTitle:"Incident $NUMBER Details",incidentDetails:"Incident Details",incidentFixed:"Fixed",incidentOngoing:"Ongoing",incidentOpenedAt:"Opened at",incidentClosedAt:"Closed at",incidentViewOnGitHub:"View and Subscribe on GitHub",incidentCommentSummary:"Posted at $DATE by $AUTHOR",incidentBack:"← Back to all incidents",pastIncidents:"Past Incidents",pastIncidentsResolved:"Resolved in $MINUTES minutes with $POSTS posts",liveStatus:"Live Status",overallUptime:"Overall uptime: $UPTIME",overallUptimeTitle:"Overall uptime",averageResponseTime:"Average response time: $TIMEms",averageResponseTimeTitle:"Average response",sevelDayResponseTime:"7-day response time",responseTimeMs:"Response time (ms)",up:"Up",down:"Down",degraded:"Degraded",ms:"ms",loading:"Loading",navGitHub:"GitHub",footer:"This page is [open source]($REPO), powered by [Upptime](https://upptime.js.org)",rateLimitExceededTitle:"Rate limit exceeded",rateLimitExceededIntro:"You have exceeded the number of requests you can do in an hour, so you'll have to wait before accessing this website again. Alternately, you can add a GitHub Personal Access Token to continue to use this website.",rateLimitExceededWhatDoesErrorMean:"What does this error mean?",rateLimitExceededErrorMeaning:"This website uses the GitHub API to access real-time data about our websites' status. By default, GitHub allows each IP address 60 requests per hour, which you have consumed.",rateLimitExceededErrorHowCanFix:"How can I fix it?",rateLimitExceededErrorFix:"You can wait for another hour and your IP address' limit will be restored. Alternately, you can add your GitHub Personal Access Token, which gives you an additional 5,000 requests per hour.",rateLimitExceededGeneratePAT:"Learn how to generate a Personal Access Token",rateLimitExceededHasSet:"You have a personal access token set.",rateLimitExceededRemoveToken:"Remove token",rateLimitExceededGitHubPAT:"GitHub Personal Access Token",rateLimitExceededCopyPastePAT:"Copy and paste your token",rateLimitExceededSaveToken:"Save token",errorTitle:"An error occurred",errorIntro:"An error occurred in trying to get the latest status details.",errorText:"You can try again in a few moments.",errorHome:"Go to the homepage",pastScheduledMaintenance:"Past Scheduled Maintenance",scheduledMaintenance:"Scheduled Maintenance",scheduledMaintenanceSummaryStarted:"Started at $DATE for $DURATION minutes",scheduledMaintenanceSummaryStarts:"Starts at $DATE for $DURATION minutes",startedAt:"Started at",startsAt:"Starts at",duration:"Duration",durationMin:"$DURATION minutes",incidentCompleted:"Completed",incidentScheduled:"Scheduled",duration24H:"24h",duration7D:"7d",duration30D:"30d",duration1Y:"1y",durationAll:"all",locale:"en-US"}};function Le(e,t,n){const s=e.slice();return s[1]=t[n],s}function Pe(t){let n,s,r,o=Re["status-website"]&&!Re["status-website"].hideNavLogo&&function(){let t,n;return{c(){t=w("img"),this.h()},l(e){t=H(e,"IMG",{alt:!0,src:!0,class:!0}),this.h()},h(){T(t,"alt",""),c(t.src,n=Re["status-website"].logoUrl)||T(t,"src",n),T(t,"class","svelte-a08hsz")},m(e,n){g(e,t,n)},p:e,d(e){e&&b(t)}}}(),i=Re["status-website"]&&!Re["status-website"].hideNavTitle&&function(){let t,n,s=Re["status-website"].name+"";return{c(){t=w("div"),n=$(s)},l(e){t=H(e,"DIV",{});var r=N(t);n=U(r,s),r.forEach(b)},m(e,s){g(e,t,s),m(t,n)},p:e,d(e){e&&b(t)}}}();return{c(){n=w("div"),s=w("a"),o&&o.c(),r=_(),i&&i.c(),this.h()},l(e){n=H(e,"DIV",{});var t=N(n);s=H(t,"A",{href:!0,class:!0});var a=N(s);o&&o.l(a),r=C(a),i&&i.l(a),a.forEach(b),t.forEach(b),this.h()},h(){T(s,"href",Re["status-website"].logoHref||Re.path),T(s,"class","logo svelte-a08hsz")},m(e,t){g(e,n,t),m(n,s),o&&o.m(s,null),m(s,r),i&&i.m(s,null)},p(e,t){Re["status-website"]&&!Re["status-website"].hideNavLogo&&o.p(e,t),Re["status-website"]&&!Re["status-website"].hideNavTitle&&i.p(e,t)},d(e){e&&b(n),o&&o.d(),i&&i.d()}}}function He(e){let t,n,s,r,o,i=e[1].title+"";return{c(){t=w("li"),n=w("a"),s=$(i),o=_(),this.h()},l(e){t=H(e,"LI",{});var r=N(t);n=H(r,"A",{"aria-current":!0,href:!0,target:!0,class:!0});var a=N(n);s=U(a,i),a.forEach(b),o=C(r),r.forEach(b),this.h()},h(){T(n,"aria-current",r=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0),T(n,"href",e[1].href.replace("$OWNER",Re.owner).replace("$REPO",Re.repo)),T(n,"target",e[1].target||"_self"),T(n,"class","svelte-a08hsz")},m(e,r){g(e,t,r),m(t,n),m(n,s),m(t,o)},p(e,t){1&t&&r!==(r=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0)&&T(n,"aria-current",r)},d(e){e&&b(t)}}}function ke(t){let n,s,r,o,i,a=Re["status-website"]&&Re["status-website"].logoUrl&&Pe(),c=Re["status-website"]&&Re["status-website"].navbar&&function(e){let t,n=Re["status-website"].navbar,s=[];for(let t=0;t<n.length;t+=1)s[t]=He(Le(e,n,t));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();t=S()},l(e){for(let t=0;t<s.length;t+=1)s[t].l(e);t=S()},m(e,n){for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,n);g(e,t,n)},p(e,r){if(1&r){let o;for(n=Re["status-website"].navbar,o=0;o<n.length;o+=1){const i=Le(e,n,o);s[o]?s[o].p(i,r):(s[o]=He(i),s[o].c(),s[o].m(t.parentNode,t))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(e){v(s,e),e&&b(t)}}}(t),l=Re["status-website"]&&Re["status-website"].navbarGitHub&&!Re["status-website"].navbar&&function(){let t,n,s,r=Re.i18n.navGitHub+"";return{c(){t=w("li"),n=w("a"),s=$(r),this.h()},l(e){t=H(e,"LI",{});var o=N(t);n=H(o,"A",{href:!0,class:!0});var i=N(n);s=U(i,r),i.forEach(b),o.forEach(b),this.h()},h(){T(n,"href",`https://github.com/${Re.owner}/${Re.repo}`),T(n,"class","svelte-a08hsz")},m(e,r){g(e,t,r),m(t,n),m(n,s)},p:e,d(e){e&&b(t)}}}();return{c(){n=w("nav"),s=w("div"),a&&a.c(),r=_(),o=w("ul"),c&&c.c(),i=_(),l&&l.c(),this.h()},l(e){n=H(e,"NAV",{class:!0});var t=N(n);s=H(t,"DIV",{class:!0});var u=N(s);a&&a.l(u),r=C(u),o=H(u,"UL",{class:!0});var d=N(o);c&&c.l(d),i=C(d),l&&l.l(d),d.forEach(b),u.forEach(b),t.forEach(b),this.h()},h(){T(o,"class","svelte-a08hsz"),T(s,"class","container svelte-a08hsz"),T(n,"class","svelte-a08hsz")},m(e,t){g(e,n,t),m(n,s),a&&a.m(s,null),m(s,r),m(s,o),c&&c.m(o,null),m(o,i),l&&l.m(o,null)},p(e,[t]){Re["status-website"]&&Re["status-website"].logoUrl&&a.p(e,t),Re["status-website"]&&Re["status-website"].navbar&&c.p(e,t),Re["status-website"]&&Re["status-website"].navbarGitHub&&!Re["status-website"].navbar&&l.p(e,t)},i:e,o:e,d(e){e&&b(n),a&&a.d(),c&&c.d(),l&&l.d()}}}function Ue(e,t,n){let{segment:s}=t;return e.$$set=e=>{"segment"in e&&n(0,s=e.segment)},[s]}class Ce extends Ae{constructor(e){super(),Te(this,e,Ue,ke,i,{segment:0})}}var De={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function Me(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function Ge(e){return(e+"").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function je(e,t){var n,s,r,o,i,a=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,c=[],l="",u=t||{},d=0;function h(e){var t=De[e[1]||""],n=c[c.length-1]==e;return t?t[1]?(n?c.pop():c.push(e),t[0|n]):t[0]:e}function f(){for(var e="";c.length;)e+=h(c[c.length-1]);return e}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(e,t,n){return u[t.toLowerCase()]=n,""})).replace(/^\n+|\n+$/g,"");r=a.exec(e);)s=e.substring(d,r.index),d=a.lastIndex,n=r[0],s.match(/[^\\](\\\\)*\\$/)||((i=r[3]||r[4])?n='<pre class="code '+(r[4]?"poetry":r[2].toLowerCase())+'"><code'+(r[2]?' class="language-'+r[2].toLowerCase()+'"':"")+">"+Me(Ge(i).replace(/^\n+|\n+$/g,""))+"</code></pre>":(i=r[6])?(i.match(/\./)&&(r[5]=r[5].replace(/^\d+/gm,"")),o=je(Me(r[5].replace(/^\s*[>*+.-]/gm,""))),">"==i?i="blockquote":(i=i.match(/\./)?"ol":"ul",o=o.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+i+">"+o+"</"+i+">"):r[8]?n='<img src="'+Ge(r[8])+'" alt="'+Ge(r[7])+'">':r[10]?(l=l.replace("<a>",'<a href="'+Ge(r[11]||u[s.toLowerCase()])+'">'),n=f()+"</a>"):r[9]?n="<a>":r[12]||r[14]?n="<"+(i="h"+(r[14]?r[14].length:r[13]>"="?1:2))+">"+je(r[12]||r[15],u)+"</"+i+">":r[16]?n="<code>"+Ge(r[16])+"</code>":(r[17]||r[1])&&(n=h(r[17]||"--"))),l+=s,l+=n;return(l+e.substring(d)+f()).replace(/^\n+|\n+$/g,"")}function Be(e,t,n){const s=e.slice();return s[3]=t[n],s}function ze(e,t,n){const s=e.slice();return s[3]=t[n],s}function Fe(e,t,n){const s=e.slice();return s[8]=t[n],s}function qe(t){let n,s,r,o,i,a;return{c(){n=w("script"),s=$("// If `prefers-color-scheme` is not supported, fall back to light mode.\n // In this case, light.css will be downloaded with `highest` priority.\n if (typeof window !== \"undefined\" && typeof document !== \"undefined\" && \"matchMedia\" in window && window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {\n document.documentElement.style.display = 'none';\n document.head.insertAdjacentHTML(\n 'beforeend',\n '<link rel=\"stylesheet\" href={`${config.path}/themes/light.css`} onload=\"document.documentElement.style.display = \\'\\'\">',\n );\n }"),r=_(),o=w("link"),i=_(),a=w("link"),this.h()},l(e){n=H(e,"SCRIPT",{});var t=N(n);s=U(t,"// If `prefers-color-scheme` is not supported, fall back to light mode.\n // In this case, light.css will be downloaded with `highest` priority.\n if (typeof window !== \"undefined\" && typeof document !== \"undefined\" && \"matchMedia\" in window && window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {\n document.documentElement.style.display = 'none';\n document.head.insertAdjacentHTML(\n 'beforeend',\n '<link rel=\"stylesheet\" href={`${config.path}/themes/light.css`} onload=\"document.documentElement.style.display = \\'\\'\">',\n );\n }"),t.forEach(b),r=C(e),o=H(e,"LINK",{rel:!0,href:!0,media:!0}),i=C(e),a=H(e,"LINK",{rel:!0,href:!0,media:!0}),this.h()},h(){T(o,"rel","stylesheet"),T(o,"href",`${Re.path}/themes/light.css`),T(o,"media","(prefers-color-scheme: light)"),T(a,"rel","stylesheet"),T(a,"href",`${Re.path}/themes/dark.css`),T(a,"media","(prefers-color-scheme: dark)")},m(e,t){g(e,n,t),m(n,s),g(e,r,t),g(e,o,t),g(e,i,t),g(e,a,t)},p:e,d(e){e&&b(n),e&&b(r),e&&b(o),e&&b(i),e&&b(a)}}}function Ke(t){let n;return{c(){n=w("link"),this.h()},l(e){n=H(e,"LINK",{rel:!0,href:!0}),this.h()},h(){T(n,"rel","stylesheet"),T(n,"href",`${Re.path}/themes/${Re["status-website"].theme}.css`)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function We(t){let n;return{c(){n=w("link"),this.h()},l(e){n=H(e,"LINK",{rel:!0,href:!0}),this.h()},h(){T(n,"rel","stylesheet"),T(n,"href",(Re["status-website"]||{}).themeUrl)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Je(t){let n,s;return{c(){n=w("script"),this.h()},l(e){n=H(e,"SCRIPT",{src:!0}),N(n).forEach(b),this.h()},h(){c(n.src,s=t[8].src)||T(n,"src",s),n.async=!!t[8].async,n.defer=!!t[8].async},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Ve(t){let n;return{c(){n=w("link"),this.h()},l(e){n=H(e,"LINK",{rel:!0,href:!0,media:!0}),this.h()},h(){T(n,"rel",t[3].rel),T(n,"href",t[3].href),T(n,"media",t[3].media)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Ye(t){let n;return{c(){n=w("meta"),this.h()},l(e){n=H(e,"META",{name:!0,content:!0}),this.h()},h(){T(n,"name",t[3].name),T(n,"content",t[3].content)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Xe(t){let n,s,r,o,i,a,c,u,d,h,f,p,y,$,E,O,A,x,I=je(Re.i18n.footer.replace(/\$REPO/,`https://github.com/${Re.owner}/${Re.repo}`))+"",R=(Re["status-website"]||{}).customHeadHtml&&function(){let t,n,s=(Re["status-website"]||{}).customHeadHtml+"";return{c(){t=new V(!1),n=S(),this.h()},l(e){t=M(e,!1),n=S(),this.h()},h(){t.a=n},m(e,r){t.m(s,e,r),g(e,n,r)},p:e,d(e){e&&b(n),e&&t.d()}}}();let L=((Re["status-website"]||{}).themeUrl?We:(Re["status-website"]||{}).theme?Ke:qe)(t),P=(Re["status-website"]||{}).scripts&&function(e){let t,n=(Re["status-website"]||{}).scripts,s=[];for(let t=0;t<n.length;t+=1)s[t]=Je(Fe(e,n,t));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();t=S()},l(e){for(let t=0;t<s.length;t+=1)s[t].l(e);t=S()},m(e,n){for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,n);g(e,t,n)},p(e,t){},d(e){v(s,e),e&&b(t)}}}(t),k=(Re["status-website"]||{}).links&&function(e){let t,n=(Re["status-website"]||{}).links,s=[];for(let t=0;t<n.length;t+=1)s[t]=Ve(ze(e,n,t));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();t=S()},l(e){for(let t=0;t<s.length;t+=1)s[t].l(e);t=S()},m(e,n){for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,n);g(e,t,n)},p(e,t){},d(e){v(s,e),e&&b(t)}}}(t),U=(Re["status-website"]||{}).metaTags&&function(e){let t,n=(Re["status-website"]||{}).metaTags,s=[];for(let t=0;t<n.length;t+=1)s[t]=Ye(Be(e,n,t));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();t=S()},l(e){for(let t=0;t<s.length;t+=1)s[t].l(e);t=S()},m(e,n){for(let t=0;t<s.length;t+=1)s[t]&&s[t].m(e,n);g(e,t,n)},p(e,t){},d(e){v(s,e),e&&b(t)}}}(t),D=Re["status-website"].css&&function(){let t,n,s=`<style>${Re["status-website"].css}</style>`;return{c(){t=new V(!1),n=S(),this.h()},l(e){t=M(e,!1),n=S(),this.h()},h(){t.a=n},m(e,r){t.m(s,e,r),g(e,n,r)},p:e,d(e){e&&b(n),e&&t.d()}}}(),G=Re["status-website"].js&&function(){let t,n,s=`<script>${Re["status-website"].js}<\/script>`;return{c(){t=new V(!1),n=S(),this.h()},l(e){t=M(e,!1),n=S(),this.h()},h(){t.a=n},m(e,r){t.m(s,e,r),g(e,n,r)},p:e,d(e){e&&b(n),e&&t.d()}}}(),j=(Re["status-website"]||{}).customBodyHtml&&function(){let t,n,s=(Re["status-website"]||{}).customBodyHtml+"";return{c(){t=new V(!1),n=S(),this.h()},l(e){t=M(e,!1),n=S(),this.h()},h(){t.a=n},m(e,r){t.m(s,e,r),g(e,n,r)},p:e,d(e){e&&b(n),e&&t.d()}}}();p=new Ce({props:{segment:t[0]}});const B=t[2].default,z=function(e,t,n,s){if(e){const r=l(e,t,n,s);return e[0](r)}}(B,t,t[1],null);return{c(){R&&R.c(),n=S(),L.c(),s=w("link"),r=w("link"),o=w("link"),P&&P.c(),i=S(),k&&k.c(),a=S(),U&&U.c(),c=S(),D&&D.c(),u=S(),G&&G.c(),d=S(),h=_(),j&&j.c(),f=_(),$e(p.$$.fragment),y=_(),$=w("main"),z&&z.c(),E=_(),O=w("footer"),A=w("p"),this.h()},l(e){const t=W("svelte-z1n8lm",document.head);R&&R.l(t),n=S(),L.l(t),s=H(t,"LINK",{rel:!0,href:!0}),r=H(t,"LINK",{rel:!0,type:!0,href:!0}),o=H(t,"LINK",{rel:!0,type:!0,href:!0}),P&&P.l(t),i=S(),k&&k.l(t),a=S(),U&&U.l(t),c=S(),D&&D.l(t),u=S(),G&&G.l(t),d=S(),t.forEach(b),h=C(e),j&&j.l(e),f=C(e),_e(p.$$.fragment,e),y=C(e),$=H(e,"MAIN",{class:!0});var l=N($);z&&z.l(l),l.forEach(b),E=C(e),O=H(e,"FOOTER",{class:!0});var m=N(O);A=H(m,"P",{}),N(A).forEach(b),m.forEach(b),this.h()},h(){T(s,"rel","stylesheet"),T(s,"href",`${Re.path}/global.css`),T(r,"rel","icon"),T(r,"type","image/svg"),T(r,"href",(Re["status-website"]||{}).faviconSvg||(Re["status-website"]||{}).favicon||"https://raw.githubusercontent.com/upptime/upptime/master/assets/upptime-icon.svg"),T(o,"rel","icon"),T(o,"type","image/png"),T(o,"href",(Re["status-website"]||{}).favicon||"/logo-192.png"),T($,"class","container"),T(O,"class","svelte-jbr799")},m(e,t){R&&R.m(document.head,null),m(document.head,n),L.m(document.head,null),m(document.head,s),m(document.head,r),m(document.head,o),P&&P.m(document.head,null),m(document.head,i),k&&k.m(document.head,null),m(document.head,a),U&&U.m(document.head,null),m(document.head,c),D&&D.m(document.head,null),m(document.head,u),G&&G.m(document.head,null),m(document.head,d),g(e,h,t),j&&j.m(e,t),g(e,f,t),Se(p,e,t),g(e,y,t),g(e,$,t),z&&z.m($,null),g(e,E,t),g(e,O,t),m(O,A),A.innerHTML=I,x=!0},p(e,[t]){(Re["status-website"]||{}).customHeadHtml&&R.p(e,t),L.p(e,t),(Re["status-website"]||{}).scripts&&P.p(e,t),(Re["status-website"]||{}).links&&k.p(e,t),(Re["status-website"]||{}).metaTags&&U.p(e,t),Re["status-website"].css&&D.p(e,t),Re["status-website"].js&&G.p(e,t),(Re["status-website"]||{}).customBodyHtml&&j.p(e,t);const n={};1&t&&(n.segment=e[0]),p.$set(n),z&&z.p&&(!x||2&t)&&function(e,t,n,s,r,o){if(r){const i=l(t,n,s,o);e.p(i,r)}}(z,B,e,e[1],x?function(e,t,n,s){if(e[2]&&s){const r=e[2](s(n));if(void 0===t.dirty)return r;if("object"==typeof r){const e=[],n=Math.max(t.dirty.length,r.length);for(let s=0;s<n;s+=1)e[s]=t.dirty[s]|r[s];return e}return t.dirty|r}return t.dirty}(B,e[1],t,null):function(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}(e[1]),null)},i(e){x||(be(p.$$.fragment,e),be(z,e),x=!0)},o(e){ve(p.$$.fragment,e),ve(z,e),x=!1},d(e){R&&R.d(e),b(n),L.d(e),b(s),b(r),b(o),P&&P.d(e),b(i),k&&k.d(e),b(a),U&&U.d(e),b(c),D&&D.d(e),b(u),G&&G.d(e),b(d),e&&b(h),j&&j.d(e),e&&b(f),Ee(p,e),e&&b(y),e&&b($),z&&z.d(e),e&&b(E),e&&b(O)}}}function Qe(e,t,n){let{$$slots:s={},$$scope:r}=t,{segment:o}=t;return e.$$set=e=>{"segment"in e&&n(0,o=e.segment),"$$scope"in e&&n(1,r=e.$$scope)},[o,r,s]}class Ze extends Ae{constructor(e){super(),Te(this,e,Qe,Xe,i,{segment:0})}}function et(e){let t,n,s=e[1].stack+"";return{c(){t=w("pre"),n=$(s)},l(e){t=H(e,"PRE",{});var r=N(t);n=U(r,s),r.forEach(b)},m(e,s){g(e,t,s),m(t,n)},p(e,t){2&t&&s!==(s=e[1].stack+"")&&G(n,s)},d(e){e&&b(t)}}}function tt(t){let n,s,r,o,i,a,c,l,u,d=t[1].message+"";document.title=n=t[0];let h=t[2]&&t[1].stack&&et(t);return{c(){s=_(),r=w("h1"),o=$(t[0]),i=_(),a=w("p"),c=$(d),l=_(),h&&h.c(),u=S(),this.h()},l(e){W("svelte-1moakz",document.head).forEach(b),s=C(e),r=H(e,"H1",{class:!0});var n=N(r);o=U(n,t[0]),n.forEach(b),i=C(e),a=H(e,"P",{class:!0});var f=N(a);c=U(f,d),f.forEach(b),l=C(e),h&&h.l(e),u=S(),this.h()},h(){T(r,"class","svelte-17w3omn"),T(a,"class","svelte-17w3omn")},m(e,t){g(e,s,t),g(e,r,t),m(r,o),g(e,i,t),g(e,a,t),m(a,c),g(e,l,t),h&&h.m(e,t),g(e,u,t)},p(e,[t]){1&t&&n!==(n=e[0])&&(document.title=n),1&t&&G(o,e[0]),2&t&&d!==(d=e[1].message+"")&&G(c,d),e[2]&&e[1].stack?h?h.p(e,t):(h=et(e),h.c(),h.m(u.parentNode,u)):h&&(h.d(1),h=null)},i:e,o:e,d(e){e&&b(s),e&&b(r),e&&b(i),e&&b(a),e&&b(l),h&&h.d(e),e&&b(u)}}}function nt(e,t,n){let{status:s}=t,{error:r}=t;return e.$$set=e=>{"status"in e&&n(0,s=e.status),"error"in e&&n(1,r=e.error)},[s,r,false]}class st extends Ae{constructor(e){super(),Te(this,e,nt,tt,i,{status:0,error:1})}}function rt(e){let n,s,r;const o=[e[4].props];var i=e[4].component;function a(e){let n={};for(let e=0;e<o.length;e+=1)n=t(n,o[e]);return{props:n}}return i&&(n=Y(i,a())),{c(){n&&$e(n.$$.fragment),s=S()},l(e){n&&_e(n.$$.fragment,e),s=S()},m(e,t){n&&Se(n,e,t),g(e,s,t),r=!0},p(e,t){const r=16&t?we(o,[ye(e[4].props)]):{};if(16&t&&i!==(i=e[4].component)){if(n){pe();const e=n;ve(e.$$.fragment,1,0,(()=>{Ee(e,1)})),ge()}i?(n=Y(i,a()),$e(n.$$.fragment),be(n.$$.fragment,1),Se(n,s.parentNode,s)):n=null}else i&&n.$set(r)},i(e){r||(n&&be(n.$$.fragment,e),r=!0)},o(e){n&&ve(n.$$.fragment,e),r=!1},d(e){e&&b(s),n&&Ee(n,e)}}}function ot(e){let t,n;return t=new st({props:{error:e[0],status:e[1]}}),{c(){$e(t.$$.fragment)},l(e){_e(t.$$.fragment,e)},m(e,s){Se(t,e,s),n=!0},p(e,n){const s={};1&n&&(s.error=e[0]),2&n&&(s.status=e[1]),t.$set(s)},i(e){n||(be(t.$$.fragment,e),n=!0)},o(e){ve(t.$$.fragment,e),n=!1},d(e){Ee(t,e)}}}function it(e){let t,n,s,r;const o=[ot,rt],i=[];function a(e,t){return e[0]?0:1}return t=a(e),n=i[t]=o[t](e),{c(){n.c(),s=S()},l(e){n.l(e),s=S()},m(e,n){i[t].m(e,n),g(e,s,n),r=!0},p(e,r){let c=t;t=a(e),t===c?i[t].p(e,r):(pe(),ve(i[c],1,1,(()=>{i[c]=null})),ge(),n=i[t],n?n.p(e,r):(n=i[t]=o[t](e),n.c()),be(n,1),n.m(s.parentNode,s))},i(e){r||(be(n),r=!0)},o(e){ve(n),r=!1},d(e){i[t].d(e),e&&b(s)}}}function at(e){let n,s;const r=[{segment:e[2][0]},e[3].props];let o={$$slots:{default:[it]},$$scope:{ctx:e}};for(let e=0;e<r.length;e+=1)o=t(o,r[e]);return n=new Ze({props:o}),{c(){$e(n.$$.fragment)},l(e){_e(n.$$.fragment,e)},m(e,t){Se(n,e,t),s=!0},p(e,[t]){const s=12&t?we(r,[4&t&&{segment:e[2][0]},8&t&&ye(e[3].props)]):{};147&t&&(s.$$scope={dirty:t,ctx:e}),n.$set(s)},i(e){s||(be(n.$$.fragment,e),s=!0)},o(e){ve(n.$$.fragment,e),s=!1},d(e){Ee(n,e)}}}function ct(e,t,n){let{stores:s}=t,{error:r}=t,{status:o}=t,{segments:i}=t,{level0:a}=t,{level1:c=null}=t,{notify:l}=t;var u,d;return ee(l),u=Ne,d=s,Q().$$.context.set(u,d),e.$$set=e=>{"stores"in e&&n(5,s=e.stores),"error"in e&&n(0,r=e.error),"status"in e&&n(1,o=e.status),"segments"in e&&n(2,i=e.segments),"level0"in e&&n(3,a=e.level0),"level1"in e&&n(4,c=e.level1),"notify"in e&&n(6,l=e.notify)},[r,o,i,a,c,s,l]}class lt extends Ae{constructor(e){super(),Te(this,e,ct,at,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const ut=[],dt=[{js:()=>Promise.all([import("./index.a70b5837.js"),__inject_styles(["client-31a52aa5.css","createOctokit-a85f76c7.css","index-b0b6455a.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./rate-limit-exceeded.21b59e26.js"),__inject_styles(["client-31a52aa5.css","rate-limit-exceeded-88af4d80.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./_number_.ce8a5923.js"),__inject_styles(["client-31a52aa5.css","createOctokit-a85f76c7.css","_number_-d4d16748.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./_number_.5e62dbca.js"),__inject_styles(["client-31a52aa5.css","createOctokit-a85f76c7.css","_number_-971b332f.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./error.faaa98ed.js"),__inject_styles(["client-31a52aa5.css","error-37eeedae.css"])]).then((function(e){return e[0]}))}],ht=(ft=decodeURIComponent,[{pattern:/^\/$/,parts:[{i:0}]},{pattern:/^\/rate-limit-exceeded\/?$/,parts:[{i:1}]},{pattern:/^\/incident\/([^/]+?)\/?$/,parts:[null,{i:2,params:e=>({number:ft(e[1])})}]},{pattern:/^\/history\/([^/]+?)\/?$/,parts:[null,{i:3,params:e=>({number:ft(e[1])})}]},{pattern:/^\/error\/?$/,parts:[{i:4}]}]);var ft;
|
|
/*! *****************************************************************************
|
|
Copyright (c) Microsoft Corporation.
|
|
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
purpose with or without fee is hereby granted.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
PERFORMANCE OF THIS SOFTWARE.
|
|
***************************************************************************** */
|
|
function mt(e,t,n,s){return new(n||(n=Promise))((function(r,o){function i(e){try{c(s.next(e))}catch(e){o(e)}}function a(e){try{c(s.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((s=s.apply(e,t||[])).next())}))}function pt(e){for(;e&&"A"!==e.nodeName.toUpperCase();)e=e.parentNode;return e}let gt,bt=1;const vt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},wt={};let yt,$t;const _t=e=>"undefined"!=typeof URLSearchParams?[...new URLSearchParams(e).entries()]:e.slice(1).split("&").map((e=>{const[,t,n=""]=/([^=]*)(?:=([\S\s]*))?/.exec(decodeURIComponent(e.replace(/\+/g," ")));return[t,n]}));function St(e){const t=Object.create(null);return e.length?_t(e).reduce(((e,[t,n])=>("string"==typeof e[t]&&(e[t]=[e[t]]),"object"==typeof e[t]?e[t].push(n):e[t]=n,e)),t):t}function Et(e){if(e.origin!==location.origin)return null;if(!e.pathname.startsWith(yt))return null;let t=e.pathname.slice(yt.length);if(""===t&&(t="/"),!ut.some((e=>e.test(t))))for(let n=0;n<ht.length;n+=1){const s=ht[n],r=s.pattern.exec(t);if(r){const n=St(e.search),o=s.parts[s.parts.length-1],i=o.params?o.params(r):{},a={host:location.host,path:t,query:n,params:i};return{href:e.href,route:s,match:r,page:a}}}}function Ot(e){if(1!==function(e){return null===e.which?e.button:e.which}(e))return;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;if(e.defaultPrevented)return;const t=pt(e.target);if(!t)return;if(!t.href)return;const n="object"==typeof t.href&&"SVGAnimatedString"===t.href.constructor.name,s=String(n?t.href.baseVal:t.href);if(s===location.href)return void(location.hash||e.preventDefault());if(t.hasAttribute("download")||"external"===t.getAttribute("rel"))return;if(n?t.target.baseVal:t.target)return;const r=new URL(s);if(r.pathname===location.pathname&&r.search===location.search)return;const o=Et(r);if(o){xt(o,null,t.hasAttribute("sapper:noscroll"),r.hash),e.preventDefault(),vt.pushState({id:gt},"",r.href)}}function Tt(){return{x:pageXOffset,y:pageYOffset}}function At(e){if(wt[gt]=Tt(),e.state){const t=Et(new URL(location.href));t?xt(t,e.state.id):location.href=location.href}else!function(e){bt=e}(bt+1),function(e){gt=e}(bt),vt.replaceState({id:gt},"",location.href)}function xt(e,t,n,s){return mt(this,void 0,void 0,(function*(){const r=!!t;if(r)gt=t;else{const e=Tt();wt[gt]=e,gt=t=++bt,wt[gt]=n?e:{x:0,y:0}}if(yield $t(e),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let e,n=wt[t];s&&(e=document.getElementById(s.slice(1)),e&&(n={x:0,y:e.getBoundingClientRect().top+scrollY})),wt[gt]=n,n&&(r||e)?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function It(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}let Nt,Rt=null;function Lt(e){const t=pt(e.target);t&&t.hasAttribute("sapper:prefetch")&&function(e){const t=Et(new URL(e,It(document)));if(t)Rt&&e===Rt.href||(Rt={href:e,promise:Yt(t)}),Rt.promise}(t.href)}function Pt(e){clearTimeout(Nt),Nt=setTimeout((()=>{Lt(e)}),20)}function Ht(e,t={noscroll:!1,replaceState:!1}){const n=Et(new URL(e,It(document)));if(n){const s=xt(n,null,t.noscroll);return vt[t.replaceState?"replaceState":"pushState"]({id:gt},"",e),s}return location.href=e,new Promise((()=>{}))}const kt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Ut,Ct,Dt,Mt=!1,Gt=[],jt="{}";const Bt={page:function(e){const t=Ie(e);let n=!0;return{notify:function(){n=!0,t.update((e=>e))},set:function(e){n=!1,t.set(e)},subscribe:function(e){let s;return t.subscribe((t=>{(void 0===s||n&&t!==s)&&e(s=t)}))}}}({}),preloading:Ie(null),session:Ie(kt&&kt.session)};let zt,Ft,qt;function Kt(e){var t,n;return t=e.target,qt=t,n=kt.baseUrl,yt=n,$t=Jt,"scrollRestoration"in vt&&(vt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{vt.scrollRestoration="auto"})),addEventListener("load",(()=>{vt.scrollRestoration="manual"})),addEventListener("click",Ot),addEventListener("popstate",At),addEventListener("touchstart",Lt),addEventListener("mousemove",Pt),kt.error?Promise.resolve().then((()=>function(){const{host:e,pathname:t,search:n}=location,{session:s,preloaded:r,status:o,error:i}=kt;Dt||(Dt=r&&r[0]);const a={error:i,status:o,session:s,level0:{props:Dt},level1:{props:{status:o,error:i},component:st},segments:r},c=St(n);Vt([],a,{host:e,path:t,query:c,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:e,href:t}=location;vt.replaceState({id:bt},"",t);const n=Et(new URL(location.href));if(n)return xt(n,bt,!0,e)}))}function Wt(e,t){const{error:n}=e;return Object.assign({error:n},t)}function Jt(e){return mt(this,void 0,void 0,(function*(){Ut&&Bt.preloading.set(!0);const t=function(e){return Rt&&Rt.href===e.href?Rt.promise:Yt(e)}(e),n=Ct={},s=yield t,{redirect:r}=s;if(n===Ct)if(r)yield Ht(r.location,{replaceState:!0});else{const{props:t,branch:n}=s;yield Vt(n,t,Wt(t,e.page))}}))}function Vt(e,t,n){return mt(this,void 0,void 0,(function*(){Bt.page.set(n),Bt.preloading.set(!1),Ut?Ut.$set(t):(t.stores={page:{subscribe:Bt.page.subscribe},preloading:{subscribe:Bt.preloading.subscribe},session:Bt.session},t.level0={props:yield Dt},t.notify=Bt.page.notify,Ut=new lt({target:qt,props:t,hydrate:!0})),Gt=e,jt=JSON.stringify(n.query),Mt=!0,Ft=!1}))}function Yt(e){return mt(this,void 0,void 0,(function*(){const{route:t,page:n}=e,s=n.path.split("/").filter(Boolean);let r=null;const o={error:null,status:200,segments:[s[0]]},i={fetch:(e,t)=>fetch(e,t),redirect:(e,t)=>{if(r&&(r.statusCode!==e||r.location!==t))throw new Error("Conflicting redirects");r={statusCode:e,location:t}},error:(e,t)=>{o.error="string"==typeof t?new Error(t):t,o.status=e}};if(!Dt){const e=()=>({});Dt=kt.preloaded[0]||e.call(i,{host:n.host,path:n.path,query:n.query,params:{}},zt)}let a,c=1;try{const r=JSON.stringify(n.query),l=t.pattern.exec(n.path);let u=!1;a=yield Promise.all(t.parts.map(((t,a)=>mt(this,void 0,void 0,(function*(){const d=s[a];if(function(e,t,n,s){if(s!==jt)return!0;const r=Gt[e];return!!r&&(t!==r.segment||!(!r.match||JSON.stringify(r.match.slice(1,e+2))===JSON.stringify(n.slice(1,e+2)))||void 0)}(a,d,l,r)&&(u=!0),o.segments[c]=s[a+1],!t)return{segment:d};const h=c++;let f;if(Ft||u||!Gt[a]||Gt[a].part!==t.i){u=!1;const{default:s,preload:r}=yield dt[t.i].js();let o;o=Mt||!kt.preloaded[a+1]?r?yield r.call(i,{host:n.host,path:n.path,query:n.query,params:t.params?t.params(e.match):{}},zt):{}:kt.preloaded[a+1],f={component:s,props:o,segment:d,match:l,part:t.i}}else f=Gt[a];return o[`level${h}`]=f})))))}catch(e){o.error=e,o.status=500,a=[]}return{redirect:r,props:o,branch:a}}))}Bt.session.subscribe((e=>mt(void 0,void 0,void 0,(function*(){if(zt=e,!Mt)return;Ft=!0;const t=Et(new URL(location.href)),n=Ct={},{redirect:s,props:r,branch:o}=yield Yt(t);n===Ct&&(s?yield Ht(s.location,{replaceState:!0}):yield Vt(o,r,Wt(r,t.page)))})))),"loading"!==document.readyState?Kt({target:document.querySelector("#sapper")}):document.addEventListener("DOMContentLoaded",(function(){Kt({target:document.querySelector("#sapper")})}));export{G as A,I as B,E as C,r as D,se as E,M as F,c as G,V as H,d as I,B as J,W as K,je as L,y as M,k as N,Ht as O,j as P,O as Q,t as R,Ae as S,x as T,ee as U,te as V,u as W,we as X,ye as Y,ce as Z,K as _,_ as a,H as b,C as c,N as d,w as e,b as f,T as g,g as h,Te as i,pe as j,ge as k,be as l,$ as m,U as n,Z as o,m as p,e as q,Re as r,i as s,ve as t,S as u,v,$e as w,_e as x,Se as y,Ee as z};
|
|
|
|
import __inject_styles from './inject_styles.803b7e80.js'; |