18 lines
41 KiB
JavaScript
18 lines
41 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 r(){return Object.create(null)}function s(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 l(e,t){return a||(a=document.createElement("a")),a.href=t,e===a.href}function c(e,n,r,s){return e[1]&&s?t(r.ctx.slice(),e[1](s(n))):r.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,f,p=!1;function m(e,t,n,r){for(;e<t;){const s=e+(t-e>>1);n(s)<=r?e=s+1:t=s}return e}function g(e,t){if(p){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 r=t[n];void 0!==r.claim_order&&e.push(r)}t=e}const n=new Int32Array(t.length+1),r=new Int32Array(t.length);n[0]=-1;let s=0;for(let e=0;e<t.length;e++){const o=t[e].claim_order,i=(s>0&&t[n[s]].claim_order<=o?s+1:m(1,s,(e=>t[n[e]].claim_order),o))-1;r[e]=n[i]+1;const a=i+1;n[a]=e,s=Math.max(a,s)}const o=[],i=[];let a=t.length-1;for(let e=n[s]+1;0!=e;e=r[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 r=n<o.length?o[n]:null;e.insertBefore(i[t],r)}}(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 b(e,t,n){e.insertBefore(t,n||null)}function y(e,t,n){p&&!n?g(e,t):t.parentNode===e&&t.nextSibling==n||e.insertBefore(t,n||null)}function v(e){e.parentNode&&e.parentNode.removeChild(e)}function $(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function _(e){return document.createElement(e)}function w(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function E(e){return document.createTextNode(e)}function S(){return E(" ")}function x(){return E("")}function T(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function A(e){return function(t){return t.preventDefault(),e.call(this,t)}}function N(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function k(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set?e[r]=t[r]:N(e,r,t[r])}function I(e){return Array.from(e.childNodes)}function P(e){void 0===e.claim_info&&(e.claim_info={last_index:0,total_claimed:0})}function L(e,t,n,r,s=!1){P(e);const o=(()=>{for(let r=e.claim_info.last_index;r<e.length;r++){const o=e[r];if(t(o)){const t=n(o);return void 0===t?e.splice(r,1):e[r]=t,s||(e.claim_info.last_index=r),o}}for(let r=e.claim_info.last_index-1;r>=0;r--){const o=e[r];if(t(o)){const t=n(o);return void 0===t?e.splice(r,1):e[r]=t,s?void 0===t&&e.claim_info.last_index--:e.claim_info.last_index=r,o}}return r()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function R(e,t,n,r){return L(e,(e=>e.nodeName===t),(e=>{const t=[];for(let r=0;r<e.attributes.length;r++){const s=e.attributes[r];n[s.name]||t.push(s.name)}t.forEach((t=>e.removeAttribute(t)))}),(()=>r(t)))}function H(e,t,n){return R(e,t,n,_)}function C(e,t,n){return R(e,t,n,w)}function O(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}),(()=>E(t)),!0)}function D(e){return O(e," ")}function M(e,t,n){for(let r=n;r<e.length;r+=1){const n=e[r];if(8===n.nodeType&&n.textContent.trim()===t)return r}return e.length}function U(e,t){const n=M(e,"HTML_TAG_START",0),r=M(e,"HTML_TAG_END",n);if(n===r)return new J(void 0,t);P(e);const s=e.splice(n,r-n+1);v(s[0]),v(s[s.length-1]);const o=s.slice(1,s.length-1);for(const t of o)t.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new J(o,t)}function j(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function G(e,t){e.value=null==t?"":t}function B(e,t,n,r){null===n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function V(){if(void 0===h){h=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){h=!0}}return h}function q(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=_("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 r=V();let s;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=T(window,"message",(e=>{e.source===n.contentWindow&&t()}))):(n.src="about:blank",n.onload=()=>{s=T(n.contentWindow,"resize",t)}),function(e,t){e.appendChild(t)}(e,n),()=>{(r||s&&n.contentWindow)&&s(),v(n)}}function z(e,t){const n=[];let r=0;for(const s of t.childNodes)if(8===s.nodeType){const t=s.textContent.trim();t===`HEAD_${e}_END`?(r-=1,n.push(s)):t===`HEAD_${e}_START`&&(r+=1,n.push(s))}else r>0&&n.push(s);return n}class K{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=w(t.nodeName):this.e=_(t.nodeName),this.t=t,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)b(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(v)}}class J extends K{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)y(this.t,this.n[t],e)}}function W(e,t){return new e(t)}function Y(e){f=e}function F(){if(!f)throw new Error("Function called outside component initialization");return f}function X(e){F().$$.on_mount.push(e)}function Q(e){F().$$.after_update.push(e)}function Z(e){F().$$.on_destroy.push(e)}const ee=[],te=[],ne=[],re=[],se=Promise.resolve();let oe=!1;function ie(e){ne.push(e)}const ae=new Set;let le=0;function ce(){if(0!==le)return;const e=f;do{try{for(;le<ee.length;){const e=ee[le];le++,Y(e),ue(e.$$)}}catch(e){throw ee.length=0,le=0,e}for(Y(null),ee.length=0,le=0;te.length;)te.pop()();for(let e=0;e<ne.length;e+=1){const t=ne[e];ae.has(t)||(ae.add(t),t())}ne.length=0}while(ee.length);for(;re.length;)re.pop()();oe=!1,ae.clear(),Y(e)}function ue(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ie)}}const de=new Set;let he;function fe(){he={r:0,c:[],p:he}}function pe(){he.r||s(he.c),he=he.p}function me(e,t){e&&e.i&&(de.delete(e),e.i(t))}function ge(e,t,n,r){if(e&&e.o){if(de.has(e))return;de.add(e),he.c.push((()=>{de.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}function be(e,t){const n={},r={},s={$$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||(r[e]=1);for(const e in a)s[e]||(n[e]=a[e],s[e]=1);e[o]=a}else for(const e in i)s[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function ye(e){return"object"==typeof e&&null!==e?e:{}}function ve(e){e&&e.c()}function $e(e,t){e&&e.l(t)}function _e(e,t,r,i){const{fragment:a,after_update:l}=e.$$;a&&a.m(t,r),i||ie((()=>{const t=e.$$.on_mount.map(n).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...t):s(t),e.$$.on_mount=[]})),l.forEach(ie)}function we(e,t){const n=e.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ee(e,t){-1===e.$$.dirty[0]&&(ee.push(e),oe||(oe=!0,se.then(ce)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Se(t,n,o,i,a,l,c,u=[-1]){const d=f;Y(t);const h=t.$$={fragment:null,ctx:[],props:l,update:e,not_equal:a,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};c&&c(h.root);let m=!1;if(h.ctx=o?o(t,n.props||{},((e,n,...r)=>{const s=r.length?r[0]:n;return h.ctx&&a(h.ctx[e],h.ctx[e]=s)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](s),m&&Ee(t,e)),n})):[],h.update(),m=!0,s(h.before_update),h.fragment=!!i&&i(h.ctx),n.target){if(n.hydrate){p=!0;const e=I(n.target);h.fragment&&h.fragment.l(e),e.forEach(v)}else h.fragment&&h.fragment.c();n.intro&&me(t.$$.fragment),_e(t,n.target,n.anchor,n.customElement),p=!1,ce()}Y(d)}class xe{$destroy(){we(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.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 Te=[];function Ae(t,n=e){let r;const s=new Set;function o(e){if(i(t,e)&&(t=e,r)){const e=!Te.length;for(const e of s)e[1](),Te.push(e,t);if(e){for(let e=0;e<Te.length;e+=2)Te[e][0](Te[e+1]);Te.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(i,a=e){const l=[i,a];return s.add(l),1===s.size&&(r=n(o)||e),i(t),()=>{s.delete(l),0===s.size&&(r(),r=null)}}}}const Ne={};var ke={owner:"hykilpikonna",repo:"Uptime",sites:[{name:"HyDEV - Pastebin",url:"https://bin.hydev.org"},{name:"HyDEV - Lisho",url:"https://sh.hydev.org"},{name:"Daisy - Minecraft",url:"https://mc.hydev.org/dynmap"},{name:"Daisy - Overleaf Self-Hosted",url:"https://tex.hydev.org"},{name:"Daisy - Voice Tools Bot Backend",url:"https://voice-backend.hydev.org"},{name:"Server - 🇨🇦 OVH Montreal",check:"tcp-ping",url:"ovh.hydev.org",port:22},{name:"Server - 🇨🇦 Bell Toronto 'Daisy'",url:"https://daisy-ddns.hydev.org/data/"},{name:"Server - 🇱🇺 GCore Luxembourg",check:"tcp-ping",url:"lux.hydev.org",port:22},{name:"Server - 🇯🇵 Vultr Tokyo",check:"tcp-ping",url:"nix.hydev.org",port:22},{name:"Server - 🇨🇳 Aliyun 杭州",check:"tcp-ping",url:"cn.hydev.org",port:22},{name:"MCPRS - Bell",url:"https://mcprs-bell.hydev.org"},{name:"MCPRS - Luxembourg",url:"http://mcprs-lux.hydev.org"},{name:"GH - Veracross Analyzer Demo",url:"https://demo.vera.hydev.org"},{name:"GH - Arcaea Steps Calculator",url:"https://arcaea.hydev.org"},{name:"GH - Base 3000",url:"https://b3k.hydev.org"},{name:"GH - Cellular Automata",url:"https://cellular.hydev.org"},{name:"GH - CSC110 Research Report",url:"https://csc110.hydev.org/"},{name:"GH - Clash Proxy Config",url:"https://clash.hydev.org/clash.yml"},{name:"GH - NyaaMemo Demo",url:"https://nyaa.hydev.org/"}],"status-website":{cname:"uptime.hydev.org",logoUrl:"https://raw.githubusercontent.com/upptime/upptime.js.org/master/static/img/icon.svg",name:"HyDEV Status",introTitle:"HyDEV Service Status",introMessage:"This is a status page monitoring all HyDEV services, powered by [Upptime](https://github.com/upptime/upptime)",navbar:[{title:"Status",href:"/"},{title:"GitHub",href:"https://github.com/hykilpikonna"}]},path:"https://uptime.hydev.org",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"}};function Ie(e,t,n){const r=e.slice();return r[1]=t[n],r}function Pe(t){let n,r,s,o=ke["status-website"]&&!ke["status-website"].hideNavLogo&&function(t){let n,r;return{c(){n=_("img"),this.h()},l(e){n=H(e,"IMG",{alt:!0,src:!0,class:!0}),this.h()},h(){N(n,"alt",""),l(n.src,r=ke["status-website"].logoUrl)||N(n,"src",r),N(n,"class","svelte-a08hsz")},m(e,t){y(e,n,t)},p:e,d(e){e&&v(n)}}}(),i=ke["status-website"]&&!ke["status-website"].hideNavTitle&&function(t){let n,r,s=ke["status-website"].name+"";return{c(){n=_("div"),r=E(s)},l(e){n=H(e,"DIV",{});var t=I(n);r=O(t,s),t.forEach(v)},m(e,t){y(e,n,t),g(n,r)},p:e,d(e){e&&v(n)}}}();return{c(){n=_("div"),r=_("a"),o&&o.c(),s=S(),i&&i.c(),this.h()},l(e){n=H(e,"DIV",{});var t=I(n);r=H(t,"A",{href:!0,class:!0});var a=I(r);o&&o.l(a),s=D(a),i&&i.l(a),a.forEach(v),t.forEach(v),this.h()},h(){N(r,"href",ke["status-website"].logoHref||ke.path),N(r,"class","logo svelte-a08hsz")},m(e,t){y(e,n,t),g(n,r),o&&o.m(r,null),g(r,s),i&&i.m(r,null)},p(e,t){ke["status-website"]&&!ke["status-website"].hideNavLogo&&o.p(e,t),ke["status-website"]&&!ke["status-website"].hideNavTitle&&i.p(e,t)},d(e){e&&v(n),o&&o.d(),i&&i.d()}}}function Le(e){let t,n,r,s,o,i=e[1].title+"";return{c(){t=_("li"),n=_("a"),r=E(i),o=S(),this.h()},l(e){t=H(e,"LI",{});var s=I(t);n=H(s,"A",{"aria-current":!0,href:!0,target:!0,class:!0});var a=I(n);r=O(a,i),a.forEach(v),o=D(s),s.forEach(v),this.h()},h(){N(n,"aria-current",s=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0),N(n,"href",e[1].href.replace("$OWNER",ke.owner).replace("$REPO",ke.repo)),N(n,"target",e[1].target||"_self"),N(n,"class","svelte-a08hsz")},m(e,s){y(e,t,s),g(t,n),g(n,r),g(t,o)},p(e,t){1&t&&s!==(s=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0)&&N(n,"aria-current",s)},d(e){e&&v(t)}}}function Re(t){let n,r,s,o,i,a=ke["status-website"]&&ke["status-website"].logoUrl&&Pe(),l=ke["status-website"]&&ke["status-website"].navbar&&function(e){let t,n=ke["status-website"].navbar,r=[];for(let t=0;t<n.length;t+=1)r[t]=Le(Ie(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);y(e,t,n)},p(e,s){if(1&s){let o;for(n=ke["status-website"].navbar,o=0;o<n.length;o+=1){const i=Ie(e,n,o);r[o]?r[o].p(i,s):(r[o]=Le(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){$(r,e),e&&v(t)}}}(t),c=ke["status-website"]&&ke["status-website"].navbarGitHub&&!ke["status-website"].navbar&&function(t){let n,r,s,o=ke.i18n.navGitHub+"";return{c(){n=_("li"),r=_("a"),s=E(o),this.h()},l(e){n=H(e,"LI",{});var t=I(n);r=H(t,"A",{href:!0,class:!0});var i=I(r);s=O(i,o),i.forEach(v),t.forEach(v),this.h()},h(){N(r,"href",`https://github.com/${ke.owner}/${ke.repo}`),N(r,"class","svelte-a08hsz")},m(e,t){y(e,n,t),g(n,r),g(r,s)},p:e,d(e){e&&v(n)}}}();return{c(){n=_("nav"),r=_("div"),a&&a.c(),s=S(),o=_("ul"),l&&l.c(),i=S(),c&&c.c(),this.h()},l(e){n=H(e,"NAV",{class:!0});var t=I(n);r=H(t,"DIV",{class:!0});var u=I(r);a&&a.l(u),s=D(u),o=H(u,"UL",{class:!0});var d=I(o);l&&l.l(d),i=D(d),c&&c.l(d),d.forEach(v),u.forEach(v),t.forEach(v),this.h()},h(){N(o,"class","svelte-a08hsz"),N(r,"class","container svelte-a08hsz"),N(n,"class","svelte-a08hsz")},m(e,t){y(e,n,t),g(n,r),a&&a.m(r,null),g(r,s),g(r,o),l&&l.m(o,null),g(o,i),c&&c.m(o,null)},p(e,[t]){ke["status-website"]&&ke["status-website"].logoUrl&&a.p(e,t),ke["status-website"]&&ke["status-website"].navbar&&l.p(e,t),ke["status-website"]&&ke["status-website"].navbarGitHub&&!ke["status-website"].navbar&&c.p(e,t)},i:e,o:e,d(e){e&&v(n),a&&a.d(),l&&l.d(),c&&c.d()}}}function He(e,t,n){let{segment:r}=t;return e.$$set=e=>{"segment"in e&&n(0,r=e.segment)},[r]}class Ce extends xe{constructor(e){super(),Se(this,e,He,Re,i,{segment:0})}}var Oe={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function De(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function Me(e){return(e+"").replace(/"/g,""").replace(/</g,"<").replace(/>/g,">")}function Ue(e,t){var n,r,s,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,l=[],c="",u=t||{},d=0;function h(e){var t=Oe[e[1]||""],n=l[l.length-1]==e;return t?t[1]?(n?l.pop():l.push(e),t[0|n]):t[0]:e}function f(){for(var e="";l.length;)e+=h(l[l.length-1]);return e}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,(function(e,t,n){return u[t.toLowerCase()]=n,""})).replace(/^\n+|\n+$/g,"");s=a.exec(e);)r=e.substring(d,s.index),d=a.lastIndex,n=s[0],r.match(/[^\\](\\\\)*\\$/)||((i=s[3]||s[4])?n='<pre class="code '+(s[4]?"poetry":s[2].toLowerCase())+'"><code'+(s[2]?' class="language-'+s[2].toLowerCase()+'"':"")+">"+De(Me(i).replace(/^\n+|\n+$/g,""))+"</code></pre>":(i=s[6])?(i.match(/\./)&&(s[5]=s[5].replace(/^\d+/gm,"")),o=Ue(De(s[5].replace(/^\s*[>*+.-]/gm,""))),">"==i?i="blockquote":(i=i.match(/\./)?"ol":"ul",o=o.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+i+">"+o+"</"+i+">"):s[8]?n='<img src="'+Me(s[8])+'" alt="'+Me(s[7])+'">':s[10]?(c=c.replace("<a>",'<a href="'+Me(s[11]||u[r.toLowerCase()])+'">'),n=f()+"</a>"):s[9]?n="<a>":s[12]||s[14]?n="<"+(i="h"+(s[14]?s[14].length:s[13]>"="?1:2))+">"+Ue(s[12]||s[15],u)+"</"+i+">":s[16]?n="<code>"+Me(s[16])+"</code>":(s[17]||s[1])&&(n=h(s[17]||"--"))),c+=r,c+=n;return(c+e.substring(d)+f()).replace(/^\n+|\n+$/g,"")}function je(e,t,n){const r=e.slice();return r[3]=t[n],r}function Ge(e,t,n){const r=e.slice();return r[3]=t[n],r}function Be(e,t,n){const r=e.slice();return r[8]=t[n],r}function Ve(t){let n,r,s,o,i,a;return{c(){n=_("script"),r=E("// 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 (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 }"),s=S(),o=_("link"),i=S(),a=_("link"),this.h()},l(e){n=H(e,"SCRIPT",{});var t=I(n);r=O(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 (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(v),s=D(e),o=H(e,"LINK",{rel:!0,href:!0,media:!0}),i=D(e),a=H(e,"LINK",{rel:!0,href:!0,media:!0}),this.h()},h(){N(o,"rel","stylesheet"),N(o,"href",`${ke.path}/themes/light.css`),N(o,"media","(prefers-color-scheme: light)"),N(a,"rel","stylesheet"),N(a,"href",`${ke.path}/themes/dark.css`),N(a,"media","(prefers-color-scheme: dark)")},m(e,t){y(e,n,t),g(n,r),y(e,s,t),y(e,o,t),y(e,i,t),y(e,a,t)},p:e,d(e){e&&v(n),e&&v(s),e&&v(o),e&&v(i),e&&v(a)}}}function qe(t){let n;return{c(){n=_("link"),this.h()},l(e){n=H(e,"LINK",{rel:!0,href:!0}),this.h()},h(){N(n,"rel","stylesheet"),N(n,"href",`${ke.path}/themes/${ke["status-website"].theme}.css`)},m(e,t){y(e,n,t)},p:e,d(e){e&&v(n)}}}function ze(t){let n;return{c(){n=_("link"),this.h()},l(e){n=H(e,"LINK",{rel:!0,href:!0}),this.h()},h(){N(n,"rel","stylesheet"),N(n,"href",(ke["status-website"]||{}).themeUrl)},m(e,t){y(e,n,t)},p:e,d(e){e&&v(n)}}}function Ke(t){let n,r;return{c(){n=_("script"),this.h()},l(e){n=H(e,"SCRIPT",{src:!0}),I(n).forEach(v),this.h()},h(){l(n.src,r=t[8].src)||N(n,"src",r),n.async=!!t[8].async,n.defer=!!t[8].async},m(e,t){y(e,n,t)},p:e,d(e){e&&v(n)}}}function Je(t){let n;return{c(){n=_("link"),this.h()},l(e){n=H(e,"LINK",{rel:!0,href:!0,media:!0}),this.h()},h(){N(n,"rel",t[3].rel),N(n,"href",t[3].href),N(n,"media",t[3].media)},m(e,t){y(e,n,t)},p:e,d(e){e&&v(n)}}}function We(t){let n;return{c(){n=_("meta"),this.h()},l(e){n=H(e,"META",{name:!0,content:!0}),this.h()},h(){N(n,"name",t[3].name),N(n,"content",t[3].content)},m(e,t){y(e,n,t)},p:e,d(e){e&&v(n)}}}function Ye(t){let n,r,s,o,i,a,l,u,d,h,f,p,m,b,w,E,T,A,k=Ue(ke.i18n.footer.replace(/\$REPO/,`https://github.com/${ke.owner}/${ke.repo}`))+"",P=(ke["status-website"]||{}).customHeadHtml&&function(t){let n,r,s=(ke["status-website"]||{}).customHeadHtml+"";return{c(){n=new J(!1),r=x(),this.h()},l(e){n=U(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),y(e,r,t)},p:e,d(e){e&&v(r),e&&n.d()}}}();let L=((ke["status-website"]||{}).themeUrl?ze:(ke["status-website"]||{}).theme?qe:Ve)(t),R=(ke["status-website"]||{}).scripts&&function(e){let t,n=(ke["status-website"]||{}).scripts,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ke(Be(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);y(e,t,n)},p(e,s){if(0&s){let o;for(n=(ke["status-website"]||{}).scripts,o=0;o<n.length;o+=1){const i=Be(e,n,o);r[o]?r[o].p(i,s):(r[o]=Ke(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){$(r,e),e&&v(t)}}}(t),C=(ke["status-website"]||{}).links&&function(e){let t,n=(ke["status-website"]||{}).links,r=[];for(let t=0;t<n.length;t+=1)r[t]=Je(Ge(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);y(e,t,n)},p(e,s){if(0&s){let o;for(n=(ke["status-website"]||{}).links,o=0;o<n.length;o+=1){const i=Ge(e,n,o);r[o]?r[o].p(i,s):(r[o]=Je(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){$(r,e),e&&v(t)}}}(t),O=(ke["status-website"]||{}).metaTags&&function(e){let t,n=(ke["status-website"]||{}).metaTags,r=[];for(let t=0;t<n.length;t+=1)r[t]=We(je(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=x()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=x()},m(e,n){for(let t=0;t<r.length;t+=1)r[t].m(e,n);y(e,t,n)},p(e,s){if(0&s){let o;for(n=(ke["status-website"]||{}).metaTags,o=0;o<n.length;o+=1){const i=je(e,n,o);r[o]?r[o].p(i,s):(r[o]=We(i),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){$(r,e),e&&v(t)}}}(t),M=ke["status-website"].css&&function(t){let n,r,s=`<style>${ke["status-website"].css}</style>`;return{c(){n=new J(!1),r=x(),this.h()},l(e){n=U(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),y(e,r,t)},p:e,d(e){e&&v(r),e&&n.d()}}}(),j=ke["status-website"].js&&function(t){let n,r,s=`<script>${ke["status-website"].js}<\/script>`;return{c(){n=new J(!1),r=x(),this.h()},l(e){n=U(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),y(e,r,t)},p:e,d(e){e&&v(r),e&&n.d()}}}(),G=(ke["status-website"]||{}).customBodyHtml&&function(t){let n,r,s=(ke["status-website"]||{}).customBodyHtml+"";return{c(){n=new J(!1),r=x(),this.h()},l(e){n=U(e,!1),r=x(),this.h()},h(){n.a=r},m(e,t){n.m(s,e,t),y(e,r,t)},p:e,d(e){e&&v(r),e&&n.d()}}}();p=new Ce({props:{segment:t[0]}});const B=t[2].default,V=function(e,t,n,r){if(e){const s=c(e,t,n,r);return e[0](s)}}(B,t,t[1],null);return{c(){P&&P.c(),n=x(),L.c(),r=_("link"),s=_("link"),o=_("link"),R&&R.c(),i=x(),C&&C.c(),a=x(),O&&O.c(),l=x(),M&&M.c(),u=x(),j&&j.c(),d=x(),h=S(),G&&G.c(),f=S(),ve(p.$$.fragment),m=S(),b=_("main"),V&&V.c(),w=S(),E=_("footer"),T=_("p"),this.h()},l(e){const t=z("svelte-1juo1rh",document.head);P&&P.l(t),n=x(),L.l(t),r=H(t,"LINK",{rel:!0,href:!0}),s=H(t,"LINK",{rel:!0,type:!0,href:!0}),o=H(t,"LINK",{rel:!0,type:!0,href:!0}),R&&R.l(t),i=x(),C&&C.l(t),a=x(),O&&O.l(t),l=x(),M&&M.l(t),u=x(),j&&j.l(t),d=x(),t.forEach(v),h=D(e),G&&G.l(e),f=D(e),$e(p.$$.fragment,e),m=D(e),b=H(e,"MAIN",{class:!0});var c=I(b);V&&V.l(c),c.forEach(v),w=D(e),E=H(e,"FOOTER",{class:!0});var g=I(E);T=H(g,"P",{}),I(T).forEach(v),g.forEach(v),this.h()},h(){N(r,"rel","stylesheet"),N(r,"href",`${ke.path}/global.css`),N(s,"rel","icon"),N(s,"type","image/svg"),N(s,"href",(ke["status-website"]||{}).faviconSvg||(ke["status-website"]||{}).favicon||"https://raw.githubusercontent.com/upptime/upptime/master/assets/upptime-icon.svg"),N(o,"rel","icon"),N(o,"type","image/png"),N(o,"href",(ke["status-website"]||{}).favicon||"/logo-192.png"),N(b,"class","container"),N(E,"class","svelte-jbr799")},m(e,t){P&&P.m(document.head,null),g(document.head,n),L.m(document.head,null),g(document.head,r),g(document.head,s),g(document.head,o),R&&R.m(document.head,null),g(document.head,i),C&&C.m(document.head,null),g(document.head,a),O&&O.m(document.head,null),g(document.head,l),M&&M.m(document.head,null),g(document.head,u),j&&j.m(document.head,null),g(document.head,d),y(e,h,t),G&&G.m(e,t),y(e,f,t),_e(p,e,t),y(e,m,t),y(e,b,t),V&&V.m(b,null),y(e,w,t),y(e,E,t),g(E,T),T.innerHTML=k,A=!0},p(e,[t]){(ke["status-website"]||{}).customHeadHtml&&P.p(e,t),L.p(e,t),(ke["status-website"]||{}).scripts&&R.p(e,t),(ke["status-website"]||{}).links&&C.p(e,t),(ke["status-website"]||{}).metaTags&&O.p(e,t),ke["status-website"].css&&M.p(e,t),ke["status-website"].js&&j.p(e,t),(ke["status-website"]||{}).customBodyHtml&&G.p(e,t);const n={};1&t&&(n.segment=e[0]),p.$set(n),V&&V.p&&(!A||2&t)&&function(e,t,n,r,s,o){if(s){const i=c(t,n,r,o);e.p(i,s)}}(V,B,e,e[1],A?function(e,t,n,r){if(e[2]&&r){const s=e[2](r(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|s[r];return e}return t.dirty|s}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){A||(me(p.$$.fragment,e),me(V,e),A=!0)},o(e){ge(p.$$.fragment,e),ge(V,e),A=!1},d(e){P&&P.d(e),v(n),L.d(e),v(r),v(s),v(o),R&&R.d(e),v(i),C&&C.d(e),v(a),O&&O.d(e),v(l),M&&M.d(e),v(u),j&&j.d(e),v(d),e&&v(h),G&&G.d(e),e&&v(f),we(p,e),e&&v(m),e&&v(b),V&&V.d(e),e&&v(w),e&&v(E)}}}function Fe(e,t,n){let{$$slots:r={},$$scope:s}=t,{segment:o}=t;return e.$$set=e=>{"segment"in e&&n(0,o=e.segment),"$$scope"in e&&n(1,s=e.$$scope)},[o,s,r]}class Xe extends xe{constructor(e){super(),Se(this,e,Fe,Ye,i,{segment:0})}}function Qe(e){let t,n,r=e[1].stack+"";return{c(){t=_("pre"),n=E(r)},l(e){t=H(e,"PRE",{});var s=I(t);n=O(s,r),s.forEach(v)},m(e,r){y(e,t,r),g(t,n)},p(e,t){2&t&&r!==(r=e[1].stack+"")&&j(n,r)},d(e){e&&v(t)}}}function Ze(t){let n,r,s,o,i,a,l,c,u,d=t[1].message+"";document.title=n=t[0];let h=t[2]&&t[1].stack&&Qe(t);return{c(){r=S(),s=_("h1"),o=E(t[0]),i=S(),a=_("p"),l=E(d),c=S(),h&&h.c(),u=x(),this.h()},l(e){z("svelte-1moakz",document.head).forEach(v),r=D(e),s=H(e,"H1",{class:!0});var n=I(s);o=O(n,t[0]),n.forEach(v),i=D(e),a=H(e,"P",{class:!0});var f=I(a);l=O(f,d),f.forEach(v),c=D(e),h&&h.l(e),u=x(),this.h()},h(){N(s,"class","svelte-17w3omn"),N(a,"class","svelte-17w3omn")},m(e,t){y(e,r,t),y(e,s,t),g(s,o),y(e,i,t),y(e,a,t),g(a,l),y(e,c,t),h&&h.m(e,t),y(e,u,t)},p(e,[t]){1&t&&n!==(n=e[0])&&(document.title=n),1&t&&j(o,e[0]),2&t&&d!==(d=e[1].message+"")&&j(l,d),e[2]&&e[1].stack?h?h.p(e,t):(h=Qe(e),h.c(),h.m(u.parentNode,u)):h&&(h.d(1),h=null)},i:e,o:e,d(e){e&&v(r),e&&v(s),e&&v(i),e&&v(a),e&&v(c),h&&h.d(e),e&&v(u)}}}function et(e,t,n){let{status:r}=t,{error:s}=t;return e.$$set=e=>{"status"in e&&n(0,r=e.status),"error"in e&&n(1,s=e.error)},[r,s,false]}class tt extends xe{constructor(e){super(),Se(this,e,et,Ze,i,{status:0,error:1})}}function nt(e){let n,r,s;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=W(i,a())),{c(){n&&ve(n.$$.fragment),r=x()},l(e){n&&$e(n.$$.fragment,e),r=x()},m(e,t){n&&_e(n,e,t),y(e,r,t),s=!0},p(e,t){const s=16&t?be(o,[ye(e[4].props)]):{};if(i!==(i=e[4].component)){if(n){fe();const e=n;ge(e.$$.fragment,1,0,(()=>{we(e,1)})),pe()}i?(n=W(i,a()),ve(n.$$.fragment),me(n.$$.fragment,1),_e(n,r.parentNode,r)):n=null}else i&&n.$set(s)},i(e){s||(n&&me(n.$$.fragment,e),s=!0)},o(e){n&&ge(n.$$.fragment,e),s=!1},d(e){e&&v(r),n&&we(n,e)}}}function rt(e){let t,n;return t=new tt({props:{error:e[0],status:e[1]}}),{c(){ve(t.$$.fragment)},l(e){$e(t.$$.fragment,e)},m(e,r){_e(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.error=e[0]),2&n&&(r.status=e[1]),t.$set(r)},i(e){n||(me(t.$$.fragment,e),n=!0)},o(e){ge(t.$$.fragment,e),n=!1},d(e){we(t,e)}}}function st(e){let t,n,r,s;const o=[rt,nt],i=[];function a(e,t){return e[0]?0:1}return t=a(e),n=i[t]=o[t](e),{c(){n.c(),r=x()},l(e){n.l(e),r=x()},m(e,n){i[t].m(e,n),y(e,r,n),s=!0},p(e,s){let l=t;t=a(e),t===l?i[t].p(e,s):(fe(),ge(i[l],1,1,(()=>{i[l]=null})),pe(),n=i[t],n?n.p(e,s):(n=i[t]=o[t](e),n.c()),me(n,1),n.m(r.parentNode,r))},i(e){s||(me(n),s=!0)},o(e){ge(n),s=!1},d(e){i[t].d(e),e&&v(r)}}}function ot(e){let n,r;const s=[{segment:e[2][0]},e[3].props];let o={$$slots:{default:[st]},$$scope:{ctx:e}};for(let e=0;e<s.length;e+=1)o=t(o,s[e]);return n=new Xe({props:o}),{c(){ve(n.$$.fragment)},l(e){$e(n.$$.fragment,e)},m(e,t){_e(n,e,t),r=!0},p(e,[t]){const r=12&t?be(s,[4&t&&{segment:e[2][0]},8&t&&ye(e[3].props)]):{};147&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r)},i(e){r||(me(n.$$.fragment,e),r=!0)},o(e){ge(n.$$.fragment,e),r=!1},d(e){we(n,e)}}}function it(e,t,n){let{stores:r}=t,{error:s}=t,{status:o}=t,{segments:i}=t,{level0:a}=t,{level1:l=null}=t,{notify:c}=t;var u,d;return Q(c),u=Ne,d=r,F().$$.context.set(u,d),e.$$set=e=>{"stores"in e&&n(5,r=e.stores),"error"in e&&n(0,s=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,l=e.level1),"notify"in e&&n(6,c=e.notify)},[s,o,i,a,l,r,c]}class at extends xe{constructor(e){super(),Se(this,e,it,ot,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const lt=[],ct=[{js:()=>Promise.all([import("./index.54337bbb.js"),__inject_styles(["client-b16d7ed9.css","createOctokit-865318f3.css","index-7de442d3.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./rate-limit-exceeded.90a0b4cf.js"),__inject_styles(["client-b16d7ed9.css","rate-limit-exceeded-ec20dc01.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./_number_.5cc801e5.js"),__inject_styles(["client-b16d7ed9.css","createOctokit-865318f3.css","_number_-a58f5d99.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./_number_.b2af0af8.js"),__inject_styles(["client-b16d7ed9.css","createOctokit-865318f3.css","_number_-6d5579d2.css"])]).then((function(e){return e[0]}))},{js:()=>Promise.all([import("./error.f533280a.js"),__inject_styles(["client-b16d7ed9.css","error-64ad0d96.css"])]).then((function(e){return e[0]}))}],ut=(dt=decodeURIComponent,[{pattern:/^\/$/,parts:[{i:0}]},{pattern:/^\/rate-limit-exceeded\/?$/,parts:[{i:1}]},{pattern:/^\/incident\/([^/]+?)\/?$/,parts:[null,{i:2,params:e=>({number:dt(e[1])})}]},{pattern:/^\/history\/([^/]+?)\/?$/,parts:[null,{i:3,params:e=>({number:dt(e[1])})}]},{pattern:/^\/error\/?$/,parts:[{i:4}]}]);var dt;
|
|
/*! *****************************************************************************
|
|
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 ht(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function a(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}l((r=r.apply(e,t||[])).next())}))}function ft(e){for(;e&&"A"!==e.nodeName.toUpperCase();)e=e.parentNode;return e}let pt,mt=1;const gt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},bt={};let yt,vt;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 _t(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 wt(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="/"),!lt.some((e=>e.test(t))))for(let n=0;n<ut.length;n+=1){const r=ut[n],s=r.pattern.exec(t);if(s){const n=_t(e.search),o=r.parts[r.parts.length-1],i=o.params?o.params(s):{},a={host:location.host,path:t,query:n,params:i};return{href:e.href,route:r,match:s,page:a}}}}function Et(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=ft(e.target);if(!t)return;if(!t.href)return;const n="object"==typeof t.href&&"SVGAnimatedString"===t.href.constructor.name,r=String(n?t.href.baseVal:t.href);if(r===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 s=new URL(r);if(s.pathname===location.pathname&&s.search===location.search)return;const o=wt(s);if(o){Tt(o,null,t.hasAttribute("sapper:noscroll"),s.hash),e.preventDefault(),gt.pushState({id:pt},"",s.href)}}function St(){return{x:pageXOffset,y:pageYOffset}}function xt(e){if(bt[pt]=St(),e.state){const t=wt(new URL(location.href));t?Tt(t,e.state.id):location.href=location.href}else!function(e){mt=e}(mt+1),function(e){pt=e}(mt),gt.replaceState({id:pt},"",location.href)}function Tt(e,t,n,r){return ht(this,void 0,void 0,(function*(){const s=!!t;if(s)pt=t;else{const e=St();bt[pt]=e,pt=t=++mt,bt[pt]=n?e:{x:0,y:0}}if(yield vt(e),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let e,n=bt[t];r&&(e=document.getElementById(r.slice(1)),e&&(n={x:0,y:e.getBoundingClientRect().top+scrollY})),bt[pt]=n,n&&(s||e)?scrollTo(n.x,n.y):scrollTo(0,0)}}))}function At(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}let Nt,kt=null;function It(e){const t=ft(e.target);t&&t.hasAttribute("sapper:prefetch")&&function(e){const t=wt(new URL(e,At(document)));if(t)kt&&e===kt.href||(kt={href:e,promise:Jt(t)}),kt.promise}(t.href)}function Pt(e){clearTimeout(Nt),Nt=setTimeout((()=>{It(e)}),20)}function Lt(e,t={noscroll:!1,replaceState:!1}){const n=wt(new URL(e,At(document)));if(n){const r=Tt(n,null,t.noscroll);return gt[t.replaceState?"replaceState":"pushState"]({id:pt},"",e),r}return location.href=e,new Promise((()=>{}))}const Rt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Ht,Ct,Ot,Dt=!1,Mt=[],Ut="{}";const jt={page:function(e){const t=Ae(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 r;return t.subscribe((t=>{(void 0===r||n&&t!==r)&&e(r=t)}))}}}({}),preloading:Ae(null),session:Ae(Rt&&Rt.session)};let Gt,Bt,Vt;function qt(e,t){const{error:n}=e;return Object.assign({error:n},t)}function zt(e){return ht(this,void 0,void 0,(function*(){Ht&&jt.preloading.set(!0);const t=function(e){return kt&&kt.href===e.href?kt.promise:Jt(e)}(e),n=Ct={},r=yield t,{redirect:s}=r;if(n===Ct)if(s)yield Lt(s.location,{replaceState:!0});else{const{props:t,branch:n}=r;yield Kt(n,t,qt(t,e.page))}}))}function Kt(e,t,n){return ht(this,void 0,void 0,(function*(){jt.page.set(n),jt.preloading.set(!1),Ht?Ht.$set(t):(t.stores={page:{subscribe:jt.page.subscribe},preloading:{subscribe:jt.preloading.subscribe},session:jt.session},t.level0={props:yield Ot},t.notify=jt.page.notify,Ht=new at({target:Vt,props:t,hydrate:!0})),Mt=e,Ut=JSON.stringify(n.query),Dt=!0,Bt=!1}))}function Jt(e){return ht(this,void 0,void 0,(function*(){const{route:t,page:n}=e,r=n.path.split("/").filter(Boolean);let s=null;const o={error:null,status:200,segments:[r[0]]},i={fetch:(e,t)=>fetch(e,t),redirect:(e,t)=>{if(s&&(s.statusCode!==e||s.location!==t))throw new Error("Conflicting redirects");s={statusCode:e,location:t}},error:(e,t)=>{o.error="string"==typeof t?new Error(t):t,o.status=e}};if(!Ot){const e=()=>({});Ot=Rt.preloaded[0]||e.call(i,{host:n.host,path:n.path,query:n.query,params:{}},Gt)}let a,l=1;try{const s=JSON.stringify(n.query),c=t.pattern.exec(n.path);let u=!1;a=yield Promise.all(t.parts.map(((t,a)=>ht(this,void 0,void 0,(function*(){const d=r[a];if(function(e,t,n,r){if(r!==Ut)return!0;const s=Mt[e];return!!s&&(t!==s.segment||!(!s.match||JSON.stringify(s.match.slice(1,e+2))===JSON.stringify(n.slice(1,e+2)))||void 0)}(a,d,c,s)&&(u=!0),o.segments[l]=r[a+1],!t)return{segment:d};const h=l++;let f;if(Bt||u||!Mt[a]||Mt[a].part!==t.i){u=!1;const{default:r,preload:s}=yield ct[t.i].js();let o;o=Dt||!Rt.preloaded[a+1]?s?yield s.call(i,{host:n.host,path:n.path,query:n.query,params:t.params?t.params(e.match):{}},Gt):{}:Rt.preloaded[a+1],f={component:r,props:o,segment:d,match:c,part:t.i}}else f=Mt[a];return o[`level${h}`]=f})))))}catch(e){o.error=e,o.status=500,a=[]}return{redirect:s,props:o,branch:a}}))}var Wt,Yt,Ft;jt.session.subscribe((e=>ht(void 0,void 0,void 0,(function*(){if(Gt=e,!Dt)return;Bt=!0;const t=wt(new URL(location.href)),n=Ct={},{redirect:r,props:s,branch:o}=yield Jt(t);n===Ct&&(r?yield Lt(r.location,{replaceState:!0}):yield Kt(o,s,qt(s,t.page)))})))),Wt={target:document.querySelector("#sapper")},Yt=Wt.target,Vt=Yt,Ft=Rt.baseUrl,yt=Ft,vt=zt,"scrollRestoration"in gt&&(gt.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{gt.scrollRestoration="auto"})),addEventListener("load",(()=>{gt.scrollRestoration="manual"})),addEventListener("click",Et),addEventListener("popstate",xt),addEventListener("touchstart",It),addEventListener("mousemove",Pt),Rt.error?Promise.resolve().then((()=>function(){const{host:e,pathname:t,search:n}=location,{session:r,preloaded:s,status:o,error:i}=Rt;Ot||(Ot=s&&s[0]);const a={error:i,status:o,session:r,level0:{props:Ot},level1:{props:{status:o,error:i},component:tt},segments:s},l=_t(n);Kt([],a,{host:e,path:t,query:l,params:{},error:i})}())):Promise.resolve().then((()=>{const{hash:e,href:t}=location;gt.replaceState({id:mt},"",t);const n=wt(new URL(location.href));if(n)return Tt(n,mt,!0,e)}));export{j as A,T as B,s as C,te as D,U as E,l as F,d as G,J as H,B as I,z as J,Ue as K,w as L,C as M,Lt as N,G as O,A as P,t as Q,k as R,xe as S,be as T,Q as U,Z as V,u as W,ye as X,ie as Y,q as Z,S as a,H as b,D as c,I as d,_ as e,v as f,N as g,y as h,Se as i,fe as j,pe as k,me as l,E as m,O as n,X as o,g as p,e as q,ke as r,i as s,ge as t,x as u,$ as v,ve as w,$e as x,_e as y,we as z};
|
|
|
|
import __inject_styles from './inject_styles.803b7e80.js'; |