!function n(e,t,r){function i(o,c){if(!t[o]){if(!e[o]){var u="function"==typeof require&&require;if(!c&&u)return u(o,!0);if(s)return s(o,!0);var a=new Error("Cannot find module '"+o+"'");throw a.code="MODULE_NOT_FOUND",a}var f=t[o]={exports:{}};e[o][0].call(f.exports,(function(n){return i(e[o][1][n]||n)}),f,f.exports,n,e,t,r)}return t[o].exports}for(var s="function"==typeof require&&require,o=0;o<r.length;o++)i(r[o]);return i}({1:[function(n,e,t){"use strict";var r="spark-assets-0.3.1",i=["","style.css","app.js","load-theme.js","lib/instascan.js","swatch/dark/bootstrap.min.css","fonts/typeface-open-sans/index.css","fonts/typeface-open-sans/files/open-sans-latin-300.woff2","fonts/typeface-open-sans/files/open-sans-latin-400.woff2"].map((function(n){return"../".concat(n)})),s=/\.(js|css|woff2?)$/;self.addEventListener("install",(function(n){return n.waitUntil(caches.open(r).then((function(n){return n.addAll(i.map((function(n){return new Request(n,{credentials:"same-origin"})})))})))})),self.addEventListener("activate",(function(n){return n.waitUntil(caches.keys().then((function(n){return Promise.all(n.filter((function(n){return n!==r})).map((function(n){return caches.delete(n)})))})))}));self.addEventListener("fetch",(function(n){return n.respondWith(caches.match(n.request).then((function(e){return e||fetch(n.request.clone(),function(n){return"navigate"==n.mode?null:{mode:"same-origin",credentials:"same-origin"}}(n.request)).then((function(e){return function(n,e){return"GET"==n.method&&s.test(n.url)&&e&&"basic"==e.type&&200==e.status}(n.request,e)?caches.open(r).then((function(t){return t.put(n.request,e.clone())})).then((function(n){return e})):e}))})))})),self.addEventListener("notificationclick",(function(n){n.notification.close(),n.waitUntil(clients.matchAll({type:"window",includeUncontrolled:!0}).then((function(n){return n.length?n[0].focus():clients.openWindow(".")})))}))},{}]},{},[1]);
