1 line
No EOL
8.8 KiB
JavaScript
1 line
No EOL
8.8 KiB
JavaScript
!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!_[e]||!O[e])return;for(var r in O[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--m&&0===b&&E()}(e,r),n&&n(e,r)};var r,t=!0,o="f01a15c595cd34206611",c={},i=[],d=[];function a(e){var n=H[e];if(!n)return k;var t=function(t){return n.hot.active?(H[t]?-1===H[t].parents.indexOf(e)&&H[t].parents.push(e):(i=[e],r=t),-1===n.children.indexOf(t)&&n.children.push(t)):(console.warn("[HMR] unexpected require("+t+") from disposed module "+e),i=[]),k(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return k[e]},set:function(n){k[e]=n}}};for(var c in k)Object.prototype.hasOwnProperty.call(k,c)&&"e"!==c&&"t"!==c&&Object.defineProperty(t,c,o(c));return t.e=function(e){return"ready"===l&&p("prepare"),b++,k.e(e).then(n,(function(e){throw n(),e}));function n(){b--,"prepare"===l&&(w[e]||D(e),0===b&&0===m&&E())}},t.t=function(e,n){return 1&n&&(e=t(e)),k.t(e,-2&n)},t}function s(n){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_selfInvalidated:!1,_disposeHandlers:[],_main:r!==n,active:!0,accept:function(e,n){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var r=0;r<e.length;r++)t._acceptedDependencies[e[r]]=n||function(){};else t._acceptedDependencies[e]=n||function(){}},decline:function(e){if(void 0===e)t._selfDeclined=!0;else if("object"==typeof e)for(var n=0;n<e.length;n++)t._declinedDependencies[e[n]]=!0;else t._declinedDependencies[e]=!0},dispose:function(e){t._disposeHandlers.push(e)},addDisposeHandler:function(e){t._disposeHandlers.push(e)},removeDisposeHandler:function(e){var n=t._disposeHandlers.indexOf(e);n>=0&&t._disposeHandlers.splice(n,1)},invalidate:function(){switch(this._selfInvalidated=!0,l){case"idle":(h={})[n]=e[n],p("ready");break;case"ready":x(n);break;case"prepare":case"check":case"dispose":case"apply":(y=y||[]).push(n)}},check:j,apply:I,status:function(e){if(!e)return l;u.push(e)},addStatusHandler:function(e){u.push(e)},removeStatusHandler:function(e){var n=u.indexOf(e);n>=0&&u.splice(n,1)},data:c[n]};return r=void 0,t}var u=[],l="idle";function p(e){l=e;for(var n=0;n<u.length;n++)u[n].call(null,e)}var f,h,v,y,m=0,b=0,w={},O={},_={};function g(e){return+e+""===e?+e:e}function j(e){if("idle"!==l)throw new Error("check() is only allowed in idle status");return t=e,p("check"),(n=1e4,n=n||1e4,new Promise((function(e,r){if("undefined"==typeof XMLHttpRequest)return r(new Error("No browser support"));try{var t=new XMLHttpRequest,c=k.p+""+o+".hot-update.json";t.open("GET",c,!0),t.timeout=n,t.send(null)}catch(e){return r(e)}t.onreadystatechange=function(){if(4===t.readyState)if(0===t.status)r(new Error("Manifest request to "+c+" timed out."));else if(404===t.status)e();else if(200!==t.status&&304!==t.status)r(new Error("Manifest request to "+c+" failed."));else{try{var n=JSON.parse(t.responseText)}catch(e){return void r(e)}e(n)}}}))).then((function(e){if(!e)return p(P()?"ready":"idle"),null;O={},w={},_=e.c,v=e.h,p("prepare");var n=new Promise((function(e,n){f={resolve:e,reject:n}}));h={};return D(2),"prepare"===l&&0===b&&0===m&&E(),n}));var n}function D(e){_[e]?(O[e]=!0,m++,function(e){var n=document.createElement("script");n.charset="utf-8",n.src=k.p+""+e+"."+o+".hot-update.js",document.head.appendChild(n)}(e)):w[e]=!0}function E(){p("ready");var e=f;if(f=null,e)if(t)Promise.resolve().then((function(){return I(t)})).then((function(n){e.resolve(n)}),(function(n){e.reject(n)}));else{var n=[];for(var r in h)Object.prototype.hasOwnProperty.call(h,r)&&n.push(g(r));e.resolve(n)}}function I(n){if("ready"!==l)throw new Error("apply() is only allowed in ready status");return function n(t){var d,a,s,u,l;function f(e){for(var n=[e],r={},t=n.map((function(e){return{chain:[e],id:e}}));t.length>0;){var o=t.pop(),c=o.id,i=o.chain;if((u=H[c])&&(!u.hot._selfAccepted||u.hot._selfInvalidated)){if(u.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:c};if(u.hot._main)return{type:"unaccepted",chain:i,moduleId:c};for(var d=0;d<u.parents.length;d++){var a=u.parents[d],s=H[a];if(s){if(s.hot._declinedDependencies[c])return{type:"declined",chain:i.concat([a]),moduleId:c,parentId:a};-1===n.indexOf(a)&&(s.hot._acceptedDependencies[c]?(r[a]||(r[a]=[]),m(r[a],[c])):(delete r[a],n.push(a),t.push({chain:i.concat([a]),id:a})))}}}}return{type:"accepted",moduleId:e,outdatedModules:n,outdatedDependencies:r}}function m(e,n){for(var r=0;r<n.length;r++){var t=n[r];-1===e.indexOf(t)&&e.push(t)}}P();var b={},w=[],O={},j=function(){console.warn("[HMR] unexpected require("+E.moduleId+") to disposed module")};for(var D in h)if(Object.prototype.hasOwnProperty.call(h,D)){var E;l=g(D),E=h[D]?f(l):{type:"disposed",moduleId:D};var I=!1,x=!1,M=!1,A="";switch(E.chain&&(A="\nUpdate propagation: "+E.chain.join(" -> ")),E.type){case"self-declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of self decline: "+E.moduleId+A));break;case"declined":t.onDeclined&&t.onDeclined(E),t.ignoreDeclined||(I=new Error("Aborted because of declined dependency: "+E.moduleId+" in "+E.parentId+A));break;case"unaccepted":t.onUnaccepted&&t.onUnaccepted(E),t.ignoreUnaccepted||(I=new Error("Aborted because "+l+" is not accepted"+A));break;case"accepted":t.onAccepted&&t.onAccepted(E),x=!0;break;case"disposed":t.onDisposed&&t.onDisposed(E),M=!0;break;default:throw new Error("Unexception type "+E.type)}if(I)return p("abort"),Promise.reject(I);if(x)for(l in O[l]=h[l],m(w,E.outdatedModules),E.outdatedDependencies)Object.prototype.hasOwnProperty.call(E.outdatedDependencies,l)&&(b[l]||(b[l]=[]),m(b[l],E.outdatedDependencies[l]));M&&(m(w,[E.moduleId]),O[l]=j)}var S,U=[];for(a=0;a<w.length;a++)l=w[a],H[l]&&H[l].hot._selfAccepted&&O[l]!==j&&!H[l].hot._selfInvalidated&&U.push({module:l,parents:H[l].parents.slice(),errorHandler:H[l].hot._selfAccepted});p("dispose"),Object.keys(_).forEach((function(e){!1===_[e]&&function(e){delete installedChunks[e]}(e)}));var q,L,R=w.slice();for(;R.length>0;)if(l=R.pop(),u=H[l]){var T={},C=u.hot._disposeHandlers;for(s=0;s<C.length;s++)(d=C[s])(T);for(c[l]=T,u.hot.active=!1,delete H[l],delete b[l],s=0;s<u.children.length;s++){var B=H[u.children[s]];B&&((S=B.parents.indexOf(l))>=0&&B.parents.splice(S,1))}}for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(u=H[l]))for(L=b[l],s=0;s<L.length;s++)q=L[s],(S=u.children.indexOf(q))>=0&&u.children.splice(S,1);p("apply"),void 0!==v&&(o=v,v=void 0);for(l in h=void 0,O)Object.prototype.hasOwnProperty.call(O,l)&&(e[l]=O[l]);var N=null;for(l in b)if(Object.prototype.hasOwnProperty.call(b,l)&&(u=H[l])){L=b[l];var X=[];for(a=0;a<L.length;a++)if(q=L[a],d=u.hot._acceptedDependencies[q]){if(-1!==X.indexOf(d))continue;X.push(d)}for(a=0;a<X.length;a++){d=X[a];try{d(L)}catch(e){t.onErrored&&t.onErrored({type:"accept-errored",moduleId:l,dependencyId:L[a],error:e}),t.ignoreErrored||N||(N=e)}}}for(a=0;a<U.length;a++){var G=U[a];l=G.module,i=G.parents,r=l;try{k(l)}catch(e){if("function"==typeof G.errorHandler)try{G.errorHandler(e)}catch(n){t.onErrored&&t.onErrored({type:"self-accept-error-handler-errored",moduleId:l,error:n,originalError:e}),t.ignoreErrored||N||(N=n),N||(N=e)}else t.onErrored&&t.onErrored({type:"self-accept-errored",moduleId:l,error:e}),t.ignoreErrored||N||(N=e)}}if(N)return p("fail"),Promise.reject(N);if(y)return n(t).then((function(e){return w.forEach((function(n){e.indexOf(n)<0&&e.push(n)})),e}));return p("idle"),new Promise((function(e){e(w)}))}(n=n||{})}function P(){if(y)return h||(h={}),y.forEach(x),y=void 0,!0}function x(n){Object.prototype.hasOwnProperty.call(h,n)||(h[n]=e[n])}var H={};function k(n){if(H[n])return H[n].exports;var r=H[n]={i:n,l:!1,exports:{},hot:s(n),parents:(d=i,i=[],d),children:[]};return e[n].call(r.exports,r,r.exports,a(n)),r.l=!0,r.exports}k.m=e,k.c=H,k.d=function(e,n,r){k.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},k.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},k.t=function(e,n){if(1&n&&(e=k(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(k.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)k.d(r,t,function(n){return e[n]}.bind(null,t));return r},k.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return k.d(n,"a",n),n},k.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},k.p="",k.h=function(){return o},a("./resources/scripts/components/navbar.ts")(k.s="./resources/scripts/components/navbar.ts")}({"./resources/scripts/components/navbar.ts":function(e,n){document.addEventListener("DOMContentLoaded",(function(){!function(){const e=document.getElementById("menu-button"),n=document.getElementById("nav-menu");e.onclick=e=>{n.classList.toggle("is-active")}}()}))}}); |