upptime/client/client.792d28ae.js

18 lines
41 KiB
JavaScript
Raw Permalink Normal View History

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 c(e,t){return a||(a=document.createElement("a")),a.href=t,e===a.href}function l(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 f=!1;function h(e,t,n,r){for(;e<t;){const s=e+(t-e>>1);n(s)<=r?e=s+1:t=s}return e}function p(e,t){if(f){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:h(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 m(e,t,n){e.insertBefore(t,n||null)}function g(e,t,n){f&&!n?p(e,t):t.parentNode===e&&t.nextSibling==n||e.insertBefore(t,n||null)}function b(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 v(e){return document.createElement(e)}function $(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function y(e){return document.createTextNode(e)}function w(){return y(" ")}function E(){return y("")}function S(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function T(e){return function(t){return t.preventDefault(),e.call(this,t)}}function x(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const A=["width","height"];function L(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&&-1===A.indexOf(r)?e[r]=t[r]:x(e,r,t[r])}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 P(e){void 0===e.claim_info&&(e.claim_info={last_index:0,total_claimed:0})}function C(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 C(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 O(e,t,n){return R(e,t,n,v)}function k(e,t,n){return R(e,t,n,$)}function H(e,t){return C(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}),(()=>y(t)),!0)}function M(e){return H(e," ")}funct
/*! *****************************************************************************
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 pt(e,t,n,r){return new(n||(n=Promise))((function(s,o){function i(e){try{c(r.next(e))}catch(e){o(e)}}function a(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,a)}c((r=r.apply(e,t||[])).next())}))}function mt(e){for(;e&&"A"!==e.nodeName.toUpperCase();)e=e.parentNode;return e}let gt,bt=1;const _t="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},vt={};let $t,yt;const wt=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 Et(e){const t=Object.create(null);return e.length?wt(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 St(e){if(e.origin!==location.origin)return null;if(!e.pathname.startsWith($t))return null;let t=e.pathname.slice($t.length);if(""===t&&(t="/"),!ut.some((e=>e.test(t))))for(let n=0;n<ft.length;n+=1){const r=ft[n],s=r.pattern.exec(t);if(s){const n=Et(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 Tt(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=mt(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=St(s);if(o){Lt(o,null,t.hasAttribute("sapper:noscroll"),s.hash),e.preventDefault(),_t.pushState({id:gt},"",s.href)}}function xt(){return{x:pageXOffset,y:pageYOffset}}function At(e){if(vt[gt]=xt(),e.state){const t=St(new URL(location.href));t?Lt(t,e.state.id):location.href=location.href}else!function(e){bt=e}(bt+1),function(e){gt=e}(bt),_t.replaceState({id:gt},"",location.href)}function Lt(e,t,n,r){return pt(this,void 0,void 0,(function*(){const s=!!t;if(s)gt=t;else{const e=xt();vt[gt]=e,gt=t=++bt,vt[gt]=n?e:{x:0,y:0}}if(yield yt(e),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let e,n=vt[t];r&&(e=document.getElementById(r.slice(1)),e&&(n={x:0,y:e.getBoundingClientRect().top+scrollY})),vt[gt]=n,n&&(s||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,Pt=null;function Ct(e){const t=mt(e.target);t&&t.hasAttribute("sapper:prefetch")&&function(e){const t=St(new URL(e,It(document)));if(t)Pt&&e===Pt.href||(Pt={href:e,promise:Yt(t)}),Pt.promise}(t.href)}function Rt(e){clearTimeout(Nt),Nt=setTimeout((()=>{Ct(e)}),20)}function Ot(e,t={noscroll:!1,replaceState:!1}){const n=St(new URL(e,It(document)));if(n){const r=Lt(n,null,t.noscroll);return _t[t.replaceState?"replaceState":"pushState"]({id:gt},"",e),r}return location.href=e,new Promise((()=>{}))}const kt="undefined"!=typeof __SAPPER__&&__SAPPER__;let Ht,Mt,Bt,Ut=!1,Dt=[],jt="{}";const Gt={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 r;return t.subscribe((t=>{(void 0===r||n&&t!==r)&&e(r=t)}))}}}({}),preloading:Ie(null),session:Ie(kt&&kt.session)};let zt,qt,Kt;function Wt(e){var t,n;return t=e.target,Kt=t,n=kt.baseUrl,$t=n,yt=Jt,"scrollRestoration"in _t&&(_t.scrollRestoration="manual"),addEventListener("beforeunload",(()=>{_t.scrollRestoration="auto"})),addEventListener("load",(()=>{_t.scrollRestoration="manual"})),addEventListener("click",Tt),addEventListener("popstate",At),addEventListener("touchstart",Ct),addEventListener("mousemo
import __inject_styles from './inject_styles.803b7e80.js';