(function(){function a(e,c,u){function f(r,n){if(!c[r]){if(!e[r]){var o="function"==typeof require&&require;if(!n&&o)return o(r,!0);if(s)return s(r,!0);var t=new Error("Cannot find module '"+r+"'");throw t.code="MODULE_NOT_FOUND",t}var i=c[r]={exports:{}};e[r][0].call(i.exports,function(n){var o=e[r][1][n];return f(o||n)},i,i.exports,a,e,c,u)}return c[r].exports}for(var s="function"==typeof require&&require,n=0;n<u.length;n++)f(u[n]);return f}return a})()({1:[function(n,o,r){"use strict";Object.defineProperty(r,"__esModule",{value:true});var s=window.Notification||window.webkitNotification;var t=function n(o){};var i=function n(o){o.preventDefault();window.focus();o.target.close()};var e=function n(o){};var c=function n(o){};var a={onerror:t,onclick:i,onclose:e,onshow:c};var u={install:function n(o,r){r=r||{};r.requestOnNotify=r.requestOnNotify||true;o.notification={};o.prototype.$notification={};var t=function n(){return s.requestPermission()};o.notification.requestPermission=t;o.prototype.$notification.requestPermission=t;var i=function n(c,u,f){if(!f.onerror)f.onerror=function(){};if(!f.onclick)f.onclick=function(){};if(!f.onclose)f.onclose=function(){};if(!f.onshow)f.onshow=function(){};return Promise.resolve().then(function(){if(r.requestOnNotify&&s.permission!=="granted"){return t()}return s.permission}).then(function(n){if(n==="denied"){return new Error("No permission to show notification")}var o=function n(o){"use strict";a.onerror(o);f.onerror(o)};var r=function n(o){"use strict";a.onclick(o);f.onclick(o)};var t=function n(o){"use strict";a.onclose(o);f.onclose(o)};var i=function n(o){"use strict";a.onshow(o);f.onshow(o)};try{var e=new s(c,u);e.onerror=o;e.onclick=r;e.onclose=t;e.onshow=i;return e}catch(n){if(n.name!=="TypeError"){return n}return navigator.serviceWorker.ready.then(function(n){n.showNotification(c,u)}).then(i,o)}})};o.notification.show=i;o.prototype.$notification.show=i}};if(typeof window!=="undefined"&&window.Vue){window.Vue.use(u)}r.default=u},{}]},{},[1]);
