seepur/public/scripts/components/navbar/app.bundle.js

1 line
No EOL
8.2 KiB
JavaScript

!function(e){var n=window.webpackHotUpdate;window.webpackHotUpdate=function(e,r){!function(e,n){if(!O[e]||!w[e])return;for(var r in w[e]=!1,n)Object.prototype.hasOwnProperty.call(n,r)&&(h[r]=n[r]);0==--y&&0===m&&j()}(e,r),n&&n(e,r)};var r,t=!0,o="9e1e34d3361f959fade0",c={},i=[],d=[];function a(e){var n=P[e];if(!n)return H;var t=function(t){return n.hot.active?(P[t]?-1===P[t].parents.indexOf(e)&&P[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=[]),H(t)},o=function(e){return{configurable:!0,enumerable:!0,get:function(){return H[e]},set:function(n){H[e]=n}}};for(var c in H)Object.prototype.hasOwnProperty.call(H,c)&&"e"!==c&&"t"!==c&&Object.defineProperty(t,c,o(c));return t.e=function(e){return"ready"===l&&p("prepare"),m++,H.e(e).then(n,(function(e){throw n(),e}));function n(){m--,"prepare"===l&&(b[e]||D(e),0===m&&0===y&&j())}},t.t=function(e,n){return 1&n&&(e=t(e)),H.t(e,-2&n)},t}function s(e){var n={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:r!==e,active:!0,accept:function(e,r){if(void 0===e)n._selfAccepted=!0;else if("function"==typeof e)n._selfAccepted=e;else if("object"==typeof e)for(var t=0;t<e.length;t++)n._acceptedDependencies[e[t]]=r||function(){};else n._acceptedDependencies[e]=r||function(){}},decline:function(e){if(void 0===e)n._selfDeclined=!0;else if("object"==typeof e)for(var r=0;r<e.length;r++)n._declinedDependencies[e[r]]=!0;else n._declinedDependencies[e]=!0},dispose:function(e){n._disposeHandlers.push(e)},addDisposeHandler:function(e){n._disposeHandlers.push(e)},removeDisposeHandler:function(e){var r=n._disposeHandlers.indexOf(e);r>=0&&n._disposeHandlers.splice(r,1)},check:_,apply:E,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[e]};return r=void 0,n}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=0,m=0,b={},w={},O={};function g(e){return+e+""===e?+e:e}function _(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=H.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("idle"),null;w={},b={},O=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===m&&0===y&&j(),n}));var n}function D(e){O[e]?(w[e]=!0,y++,function(e){var n=document.createElement("script");n.charset="utf-8",n.src=H.p+""+e+"."+o+".hot-update.js",document.head.appendChild(n)}(e)):b[e]=!0}function j(){p("ready");var e=f;if(f=null,e)if(t)Promise.resolve().then((function(){return E(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 E(n){if("ready"!==l)throw new Error("apply() is only allowed in ready status");var r,t,d,a,s;function u(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((a=P[c])&&!a.hot._selfAccepted){if(a.hot._selfDeclined)return{type:"self-declined",chain:i,moduleId:c};if(a.hot._main)return{type:"unaccepted",chain:i,moduleId:c};for(var d=0;d<a.parents.length;d++){var s=a.parents[d],u=P[s];if(u){if(u.hot._declinedDependencies[c])return{type:"declined",chain:i.concat([s]),moduleId:c,parentId:s};-1===n.indexOf(s)&&(u.hot._acceptedDependencies[c]?(r[s]||(r[s]=[]),f(r[s],[c])):(delete r[s],n.push(s),t.push({chain:i.concat([s]),id:s})))}}}}return{type:"accepted",moduleId:e,outdatedModules:n,outdatedDependencies:r}}function f(e,n){for(var r=0;r<n.length;r++){var t=n[r];-1===e.indexOf(t)&&e.push(t)}}n=n||{};var y={},m=[],b={},w=function(){console.warn("[HMR] unexpected require("+D.moduleId+") to disposed module")};for(var _ in h)if(Object.prototype.hasOwnProperty.call(h,_)){var D;s=g(_);var j=!1,E=!1,x=!1,I="";switch((D=h[_]?u(s):{type:"disposed",moduleId:_}).chain&&(I="\nUpdate propagation: "+D.chain.join(" -> ")),D.type){case"self-declined":n.onDeclined&&n.onDeclined(D),n.ignoreDeclined||(j=new Error("Aborted because of self decline: "+D.moduleId+I));break;case"declined":n.onDeclined&&n.onDeclined(D),n.ignoreDeclined||(j=new Error("Aborted because of declined dependency: "+D.moduleId+" in "+D.parentId+I));break;case"unaccepted":n.onUnaccepted&&n.onUnaccepted(D),n.ignoreUnaccepted||(j=new Error("Aborted because "+s+" is not accepted"+I));break;case"accepted":n.onAccepted&&n.onAccepted(D),E=!0;break;case"disposed":n.onDisposed&&n.onDisposed(D),x=!0;break;default:throw new Error("Unexception type "+D.type)}if(j)return p("abort"),Promise.reject(j);if(E)for(s in b[s]=h[s],f(m,D.outdatedModules),D.outdatedDependencies)Object.prototype.hasOwnProperty.call(D.outdatedDependencies,s)&&(y[s]||(y[s]=[]),f(y[s],D.outdatedDependencies[s]));x&&(f(m,[D.moduleId]),b[s]=w)}var k,M=[];for(t=0;t<m.length;t++)s=m[t],P[s]&&P[s].hot._selfAccepted&&b[s]!==w&&M.push({module:s,errorHandler:P[s].hot._selfAccepted});p("dispose"),Object.keys(O).forEach((function(e){!1===O[e]&&function(e){delete installedChunks[e]}(e)}));for(var A,S,U=m.slice();U.length>0;)if(s=U.pop(),a=P[s]){var q={},L=a.hot._disposeHandlers;for(d=0;d<L.length;d++)(r=L[d])(q);for(c[s]=q,a.hot.active=!1,delete P[s],delete y[s],d=0;d<a.children.length;d++){var R=P[a.children[d]];R&&((k=R.parents.indexOf(s))>=0&&R.parents.splice(k,1))}}for(s in y)if(Object.prototype.hasOwnProperty.call(y,s)&&(a=P[s]))for(S=y[s],d=0;d<S.length;d++)A=S[d],(k=a.children.indexOf(A))>=0&&a.children.splice(k,1);for(s in p("apply"),o=v,b)Object.prototype.hasOwnProperty.call(b,s)&&(e[s]=b[s]);var T=null;for(s in y)if(Object.prototype.hasOwnProperty.call(y,s)&&(a=P[s])){S=y[s];var C=[];for(t=0;t<S.length;t++)if(A=S[t],r=a.hot._acceptedDependencies[A]){if(-1!==C.indexOf(r))continue;C.push(r)}for(t=0;t<C.length;t++){r=C[t];try{r(S)}catch(e){n.onErrored&&n.onErrored({type:"accept-errored",moduleId:s,dependencyId:S[t],error:e}),n.ignoreErrored||T||(T=e)}}}for(t=0;t<M.length;t++){var B=M[t];s=B.module,i=[s];try{H(s)}catch(e){if("function"==typeof B.errorHandler)try{B.errorHandler(e)}catch(r){n.onErrored&&n.onErrored({type:"self-accept-error-handler-errored",moduleId:s,error:r,originalError:e}),n.ignoreErrored||T||(T=r),T||(T=e)}else n.onErrored&&n.onErrored({type:"self-accept-errored",moduleId:s,error:e}),n.ignoreErrored||T||(T=e)}}return T?(p("fail"),Promise.reject(T)):(p("idle"),new Promise((function(e){e(m)})))}var P={};function H(n){if(P[n])return P[n].exports;var r=P[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}H.m=e,H.c=P,H.d=function(e,n,r){H.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},H.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},H.t=function(e,n){if(1&n&&(e=H(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(H.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)H.d(r,t,function(n){return e[n]}.bind(null,t));return r},H.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return H.d(n,"a",n),n},H.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},H.p="",H.h=function(){return o},a("./resources/scripts/components/navbar.ts")(H.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")}}()}))}});