text: /**
   * Copyright 2016 Google Inc. All rights reserved.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     http://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
  */
  
  // DO NOT EDIT THIS GENERATED OUTPUT DIRECTLY!
  // This file should be overwritten as part of your build process.
  // If you need to extend the behavior of the generated service worker, the best approach is to write
  // additional code and include it using the importScripts option:
  //   https://github.com/GoogleChrome/sw-precache#importscripts-arraystring
  //
  // Alternatively, it's possible to make changes to the underlying template file and then use that as the
  // new base for generating output, via the templateFilePath option:
  //   https://github.com/GoogleChrome/sw-precache#templatefilepath-string
  //
  // If you go that route, make sure that whenever you update your sw-precache dependency, you reconcile any
  // changes made to this original template file with your modified copy.
  
  // This generated service worker JavaScript will precache your site's resources.
  // The code needs to be saved in a .js file at the top-level of your site, and registered
  // from your pages in order to be used. See
  // https://github.com/googlechrome/sw-precache/blob/master/demo/app/js/service-worker-registration.js
  // for an example of how you can register this script and handle various service worker events.
  
  /* eslint-env worker, serviceworker */
  /* eslint-disable indent, no-unused-vars, no-multiple-empty-lines, max-nested-callbacks, space-before-function-paren, quotes, comma-spacing */
  'use strict';
  
  var precacheConfig = [["bower_components/app-layout/app-drawer-layout/app-drawer-layout.html","c204a7348be7826c897a4e320ef1001d"],["bower_components/app-layout/app-drawer/app-drawer.html","2cfe2d03e25ee8073159c12e29e70571"],["bower_components/app-layout/app-header-layout/app-header-layout.html","fae8e0d4f2b95f7a6278b55fb35b800a"],["bower_components/app-layout/app-header/app-header.html","cc81f1b266f84cacb2488195cbf55f35"],["bower_components/app-layout/app-layout-behavior/app-layout-behavior.html","f2969e5cae564c947e1ee0c2177bcdce"],["bower_components/app-layout/app-scroll-effects/app-scroll-effects-behavior.html","240a89621421520a785e968ce8a6f3cf"],["bower_components/app-layout/app-scroll-effects/app-scroll-effects.html","47ef4a1229fe38f7ebb0b846676908c9"],["bower_components/app-layout/app-scroll-effects/effects/blend-background.html","b4eaaeca39b790ea86b9dd731d1b69ed"],["bower_components/app-layout/app-scroll-effects/effects/fade-background.html","9e1b778964c2765b6b015b0b8c24f1f6"],["bower_components/app-layout/app-scroll-effects/effects/material.html","e9c27b805b4317d7ae59adcb50acba3b"],["bower_components/app-layout/app-scroll-effects/effects/parallax-background.html","4159e466a95973be5ef016b41a4c8763"],["bower_components/app-layout/app-scroll-effects/effects/resize-snapped-title.html","fe4142104c8096088fde4c7af31810cc"],["bower_components/app-layout/app-scroll-effects/effects/resize-title.html","6ce37d13dc4f6eed9c9f6279dfd00ae9"],["bower_components/app-layout/app-scroll-effects/effects/waterfall.html","31c91494fdc3dadc3ce922a03ac24f1f"],["bower_components/app-layout/app-toolbar/app-toolbar.html","cac42c92a39fd9611d080d1362905030"],["bower_components/app-layout/helpers/helpers.html","5d8658a253e25662b5f3c96621f66ba5"],["bower_components/app-route/app-location.html","65296e22f912fd47922abf9886dc217a"],["bower_components/app-route/app-route-converter-behavior.html","946ddd14c175a8acfa2207d89551b9a2"],["bower_components/app-route/app-route.html","99aa803ca8b33ebd508f64e9f9d73a35"],["bower_components/google-apis/google-maps-api.html","1ce712d5fdfa87b3b2a6f2fd5c9a99ef"],["bower_components/google-map/google-map-marker.html","84855d9772f9a26c20ffc339d455963f"],["bower_components/google-map/google-map.html","e5c1fb188269717f909c33fe3f9a6b27"],["bower_components/iron-a11y-keys-behavior/iron-a11y-keys-behavior.html","eaee4bc6e57f289c8ebd21ff3b402c10"],["bower_components/iron-behaviors/iron-button-state.html","a5df0de33fc29d9e8d93c7cf3aac0a6b"],["bower_components/iron-behaviors/iron-control-state.html","b87ad413a4aad1c6a1c928a2854c41b8"],["bower_components/iron-flex-layout/iron-flex-layout.html","bcac4712061b08d806c1778598ec78c7"],["bower_components/iron-icon/iron-icon.html","23b70883b807e1bd263d5603e954589b"],["bower_components/iron-iconset-svg/iron-iconset-svg.html","8dc80a23b28db5812a5036800254a69d"],["bower_components/iron-jsonp-library/iron-jsonp-library.html","f8d210569b2e01f3a4d03777aa04133a"],["bower_components/iron-location/iron-location.html","942fe21d014ab3d9c90e2064f0f0713e"],["bower_components/iron-location/iron-query-params.html","413f343079a26929496dd50796f49016"],["bower_components/iron-media-query/iron-media-query.html","97660e18a46b82a2fd8463872bf865ea"],["bower_components/iron-meta/iron-meta.html","6d386ce0b9ae78dd615091a8cd82e16e"],["bower_components/iron-pages/iron-pages.html","f4987b10adcfe00d96d5bebde042cff5"],["bower_components/iron-resizable-behavior/iron-resizable-behavior.html","42e9492d03c3dec918d13fe4731df184"],["bower_components/iron-scroll-target-behavior/iron-scroll-target-behavior.html","da8e1f408737623feaefe66f139feb9a"],["bower_components/iron-selector/iron-multi-selectable.html","4267ed54cd4ab143ca2174ff1cdefe73"],["bower_components/iron-selector/iron-selectable.html","576d62be7369568b96398fc75f34978e"],["bower_components/iron-selector/iron-selection.html","e6d71d7c812b62ef324eee1684750251"],["bower_components/iron-selector/iron-selector.html","1facaed80539c5626cd248ec4b1011d4"],["bower_components/mapbox-gl/mapbox-gl-marker.html","278aea8b64a6301f13755904df7a62d5"],["bower_components/mapbox-gl/mapbox-gl-popup.html","91a8ea21ed625e6e8fc91a36603e8de5"],["bower_components/mapbox-gl/mapbox-gl-popup.js","4f4fc34eade00de9f5a93e36791a7ef0"],["bower_components/mapbox-gl/mapbox-gl.html","0d389e4321d343e6236caf6fe16ff95c"],["bower_components/paper-behaviors/paper-inky-focus-behavior.html","31631a63e963bc03f329f0beba89522d"],["bower_components/paper-behaviors/paper-ripple-behavior.html","7e06e791dbf5be6e04ef69c195ea65a5"],["bower_components/paper-icon-button/paper-icon-button.html","cd0ac71797dcecb4581f61954a47f2c0"],["bower_components/paper-ripple/paper-ripple.html","4a8483017dc6fb1a7447126e262b5ed6"],["bower_components/paper-styles/color.html","549925227bc04f9c17b52e2e35cd2e26"],["bower_components/paper-styles/default-theme.html","5357609d26772a270098c0e3ebb1bb98"],["bower_components/polymer/lib/elements/array-selector.html","a5a9eeac97e12f96ada2bc943faa9a93"],["bower_components/polymer/lib/elements/custom-style.html","7a711102d6e7f48af7e37df3d1985e4c"],["bower_components/polymer/lib/elements/dom-bind.html","3d9c46725bb7873ffdca426669807bc5"],["bower_components/polymer/lib/elements/dom-if.html","c69a8da0c9325a97a4e919486c33a724"],["bower_components/polymer/lib/elements/dom-module.html","0274847a61ad4ccf776db11f4bcab786"],["bower_components/polymer/lib/elements/dom-repeat.html","cd6eb13856518f75449addff93a7d761"],["bower_components/polymer/lib/legacy/class.html","03f17649f25298f35c89b287c527e01b"],["bower_components/polymer/lib/legacy/legacy-element-mixin.html","bb1e00832a1596c55c489884f088387f"],["bower_components/polymer/lib/legacy/mutable-data-behavior.html","c653c514de4663d0db5edff878b136ec"],["bower_components/polymer/lib/legacy/polymer-fn.html","34127afee1da9e6001e1eecb2aa1ed4f"],["bower_components/polymer/lib/legacy/polymer.dom.html","394ef9410d59ad8ed0c573a2103ad04e"],["bower_components/polymer/lib/legacy/templatizer-behavior.html","6a22fc2497c39df0b83889f9960cbe2f"],["bower_components/polymer/lib/mixins/dir-mixin.html","fb273e97dc5417b4607045e863d860b0"],["bower_components/polymer/lib/mixins/element-mixin.html","fdf30a5bae6b7c9799d5d87445f62de6"],["bower_components/polymer/lib/mixins/gesture-event-listeners.html","2ba36d04a7052d2094bdb6d2b4d29a17"],["bower_components/polymer/lib/mixins/mutable-data.html","0bab5b82fb1f716360963a950ac770ad"],["bower_components/polymer/lib/mixins/properties-changed.html","e5058cce685d4e710f7bb88e057382ec"],["bower_components/polymer/lib/mixins/properties-mixin.html","b55fb4ddd2fe5f7d441eddfe80de9acb"],["bower_components/polymer/lib/mixins/property-accessors.html","dbfcb880894ebb3f0f041cfb5d5504c5"],["bower_components/polymer/lib/mixins/property-effects.html","699378cc5138a9a65d12f7bef85f6e1e"],["bower_components/polymer/lib/mixins/template-stamp.html","b70fbd68336bd77b59111f3df1a3216a"],["bower_components/polymer/lib/utils/array-splice.html","000c6d75d97ae3d726147d513ea03a54"],["bower_components/polymer/lib/utils/async.html","08c8d6cdcd98587c97445dbf599af13c"],["bower_components/polymer/lib/utils/boot.html","0838ede938114c14aff822c59dae6938"],["bower_components/polymer/lib/utils/case-map.html","692010f0d6c564f6bee33642a9b1d128"],["bower_components/polymer/lib/utils/debounce.html","34da85cabbd14c1da33e20f167c7fc5a"],["bower_components/polymer/lib/utils/flattened-nodes-observer.html","89ae5904a36a4f4d7d7c59ab607c6019"],["bower_components/polymer/lib/utils/flush.html","8ba0c240258de76c32c4830728279503"],["bower_components/polymer/lib/utils/gestures.html","f78b332626706ffb72e351822693e084"],["bower_components/polymer/lib/utils/html-tag.html","74fc6824c62aea205bf7cb5d68305358"],["bower_components/polymer/lib/utils/import-href.html","56803dd1c3ba5f7abdbfc4ea014aeb27"],["bower_components/polymer/lib/utils/mixin.html","9afbaddba736a0dea825b3e1a24f5943"],["bower_components/polymer/lib/utils/path.html","588864d30b74f858d9188ea111afb5dd"],["bower_components/polymer/lib/utils/render-status.html","c5ae8eac72609ae7f9cb6bfbef8ede81"],["bower_components/polymer/lib/utils/resolve-url.html","82f20a1f139c9f5d592e8d0e4d2591e3"],["bower_components/polymer/lib/utils/settings.html","a12c3cdb77f7f9843debac5da37949c3"],["bower_components/polymer/lib/utils/style-gather.html","a7c328a15fcd255f49d6ae83c1d808f4"],["bower_components/polymer/lib/utils/telemetry.html","f517839054b9f4a14d5f0eecd64f054a"],["bower_components/polymer/lib/utils/templatize.html","f3d3d248a4143f7981b93dc84702cfa0"],["bower_components/polymer/lib/utils/unresolved.html","b8c7bf6a6ecd0fa21a24da8876d461eb"],["bower_components/polymer/polymer-element.html","08a7003aea6a4d70ba20306a1e92078e"],["bower_components/polymer/polymer.html","1ed2bae1bf6d43e8c8bc74100ddff270"],["bower_components/shadycss/apply-shim.html","5b73ef5bfcac4955f6c24f55ea322eb1"],["bower_components/shadycss/apply-shim.min.js","791555bcc4c4798e2833e93dcf234e2d"],["bower_components/shadycss/custom-style-interface.html","7e28230b85cdcc2488e87172c3395d52"],["bower_components/shadycss/custom-style-interface.min.js","40535757b29d08744410c245b9363b6b"],["bower_components/utils-lib/utils-lib.html","1734ad2260440169b0c36ee9827908bc"],["bower_components/utils-lib/utils-lib.js","cf5ea5d01a3041ecdedd5562c7925c5c"],["bower_components/webcomponentsjs/webcomponents-loader.js","596ad3dc06dfb78ecdc6bcee1d653f04"],["index.html","0c28f1d7faece9f840d4e395e86eead9"],["manifest.json","1845171d3c4fe9ebe6a48852f4347b34"],["src/about-page.html","35ef77e3a2f987fafd72ef0d87fad2f2"],["src/agustin-hernandez.html","b0462e126ab4d32ed5cfb3d160fc7e83"],["src/augusto-alvarez.html","f3fbd9ad2f1e5304be5fbb3d68d3a377"],["src/landing-page.html","32c8aa6ec141b082df012e6ff1f23a4d"],["src/luis-barragan.html","893aa9c98aa234b58215f23d1cce19af"],["src/mario-pani.html","e9e20cf6861356436473b7baf8230191"],["src/mexico-city.html","3e40c041e49f40b2845a2502b1d9deda"],["src/my-app.html","5878daf92c1d7a93a61a1ff807be487d"],["src/my-icons.html","1618712b865f25904ddffef31c5d9db0"],["src/my-view1.html","5035e2ce5f1c82e216f85c00e5c69142"],["src/my-view2.html","9310aa69acc4ae379145679f12d674d9"],["src/my-view3.html","dfb105cceccadb735d022fb2e7d490a5"],["src/my-view404.html","18a0faf33077fde567df6f67b1e12f5b"],["src/pedro-ramirez-vasquez.html","a14dc30b7bc732c72bf21090af182088"],["src/ricardo-legorreta.html","c0a1d0513a021695796d801da0ce3dd1"],["src/shared-styles.html","5f85a0b2ac8cc9a5927f085647bc468f"],["src/teodoro-de-leon.html","baf356831ee072303309782494683291"]];
  var cacheName = 'sw-precache-v3--' + (self.registration ? self.registration.scope : '');
  
  
  var ignoreUrlParametersMatching = [/^utm_/];
  
  
  
  var addDirectoryIndex = function (originalUrl, index) {
      var url = new URL(originalUrl);
      if (url.pathname.slice(-1) === '/') {
        url.pathname += index;
      }
      return url.toString();
    };
  
  var cleanResponse = function (originalResponse) {
      // If this is not a redirected response, then we don't have to do anything.
      if (!originalResponse.redirected) {
        return Promise.resolve(originalResponse);
      }
  
      // Firefox 50 and below doesn't support the Response.body stream, so we may
      // need to read the entire body to memory as a Blob.
      var bodyPromise = 'body' in originalResponse ?
        Promise.resolve(originalResponse.body) :
        originalResponse.blob();
  
      return bodyPromise.then(function (body) {
        // new Response() is happy when passed either a stream or a Blob.
        return new Response(body, {
          headers: originalResponse.headers,
          status: originalResponse.status,
          statusText: originalResponse.statusText
        });
      });
    };
  
  var createCacheKey = function (originalUrl, paramName, paramValue,
                             dontCacheBustUrlsMatching) {
      // Create a new URL object to avoid modifying originalUrl.
      var url = new URL(originalUrl);
  
      // If dontCacheBustUrlsMatching is not set, or if we don't have a match,
      // then add in the extra cache-busting URL parameter.
      if (!dontCacheBustUrlsMatching ||
          !(url.pathname.match(dontCacheBustUrlsMatching))) {
        url.search += (url.search ? '&' : '') +
          encodeURIComponent(paramName) + '=' + encodeURIComponent(paramValue);
      }
  
      return url.toString();
    };
  
  var isPathWhitelisted = function (whitelist, absoluteUrlString) {
      // If the whitelist is empty, then consider all URLs to be whitelisted.
      if (whitelist.length === 0) {
        return true;
      }
  
      // Otherwise compare each path regex to the path of the URL passed in.
      var path = (new URL(absoluteUrlString)).pathname;
      return whitelist.some(function (whitelistedPathRegex) {
        return path.match(whitelistedPathRegex);
      });
    };
  
  var stripIgnoredUrlParameters = function (originalUrl,
      ignoreUrlParametersMatching) {
      var url = new URL(originalUrl);
      // Remove the hash; see https://github.com/GoogleChrome/sw-precache/issues/290
      url.hash = '';
  
      url.search = url.search.slice(1) // Exclude initial '?'
        .split('&') // Split into an array of 'key=value' strings
        .map(function (kv) {
          return kv.split('='); // Split each 'key=value' string into a [key, value] array
        })
        .filter(function (kv) {
          return ignoreUrlParametersMatching.every(function (ignoredRegex) {
            return !ignoredRegex.test(kv[0]); // Return true iff the key doesn't match any of the regexes.
          });
        })
        .map(function (kv) {
          return kv.join('='); // Join each [key, value] array into a 'key=value' string
        })
        .join('&'); // Join the array of 'key=value' strings into a string with '&' in between each
  
      return url.toString();
    };
  
  
  var hashParamName = '_sw-precache';
  var urlsToCacheKeys = new Map(
    precacheConfig.map(function (item) {
      var relativeUrl = item[0];
      var hash = item[1];
      var absoluteUrl = new URL(relativeUrl, self.location);
      var cacheKey = createCacheKey(absoluteUrl, hashParamName, hash, false);
      return [absoluteUrl.toString(), cacheKey];
    })
  );
  
  function setOfCachedUrls(cache) {
    return cache.keys().then(function (requests) {
      return requests.map(function (request) {
        return request.url;
      });
    }).then(function (urls) {
      return new Set(urls);
    });
  }
  
  self.addEventListener('install', function (event) {
    event.waitUntil(
      caches.open(cacheName).then(function (cache) {
        return setOfCachedUrls(cache).then(function (cachedUrls) {
          return Promise.all(
            Array.from(urlsToCacheKeys.values()).map(function (cacheKey) {
              // If we don't have a key matching url in the cache already, add it.
              if (!cachedUrls.has(cacheKey)) {
                var request = new Request(cacheKey, {credentials: 'same-origin'});
                return fetch(request).then(function (response) {
                  // Bail out of installation unless we get back a 200 OK for
                  // every request.
                  if (!response.ok) {
                    throw new Error('Request for ' + cacheKey + ' returned a ' +
                      'response with status ' + response.status);
                  }
  
                  return cleanResponse(response).then(function (responseToCache) {
                    return cache.put(cacheKey, responseToCache);
                  });
                });
              }
            })
          );
        });
      }).then(function () {
        
        // Force the SW to transition from installing -> active state
        return self.skipWaiting();
        
      })
    );
  });
  
  self.addEventListener('activate', function (event) {
    var setOfExpectedUrls = new Set(urlsToCacheKeys.values());
  
    event.waitUntil(
      caches.open(cacheName).then(function (cache) {
        return cache.keys().then(function (existingRequests) {
          return Promise.all(
            existingRequests.map(function (existingRequest) {
              if (!setOfExpectedUrls.has(existingRequest.url)) {
                return cache.delete(existingRequest);
              }
            })
          );
        });
      }).then(function () {
        
        return self.clients.claim();
        
      })
    );
  });
  
  
  self.addEventListener('fetch', function (event) {
    if (event.request.method === 'GET') {
      // Should we call event.respondWith() inside this fetch event handler?
      // This needs to be determined synchronously, which will give other fetch
      // handlers a chance to handle the request if need be.
      var shouldRespond;
  
      // First, remove all the ignored parameters and hash fragment, and see if we
      // have that URL in our cache. If so, great! shouldRespond will be true.
      var url = stripIgnoredUrlParameters(event.request.url, ignoreUrlParametersMatching);
      shouldRespond = urlsToCacheKeys.has(url);
  
      // If shouldRespond is false, check again, this time with 'index.html'
      // (or whatever the directoryIndex option is set to) at the end.
      var directoryIndex = '';
      if (!shouldRespond && directoryIndex) {
        url = addDirectoryIndex(url, directoryIndex);
        shouldRespond = urlsToCacheKeys.has(url);
      }
  
      // If shouldRespond is still false, check to see if this is a navigation
      // request, and if so, whether the URL matches navigateFallbackWhitelist.
      var navigateFallback = 'index.html';
      if (!shouldRespond &&
          navigateFallback &&
          (event.request.mode === 'navigate') &&
          isPathWhitelisted(["\\/[^\\/\\.]*(\\?|$)"], event.request.url)) {
        url = new URL(navigateFallback, self.location).toString();
        shouldRespond = urlsToCacheKeys.has(url);
      }
  
      // If shouldRespond was set to true at any point, then call
      // event.respondWith(), using the appropriate cache key.
      if (shouldRespond) {
        event.respondWith(
          caches.open(cacheName).then(function (cache) {
            return cache.match(urlsToCacheKeys.get(url)).then(function (response) {
              if (response) {
                return response;
              }
              throw Error('The cached response that was expected is missing.');
            });
          }).catch(function (e) {
            // Fall back to just fetch()ing the request if some unexpected error
            // prevented the cached response from being valid.
            console.warn('Couldn\'t serve response for "%s" from cache: %O', event.request.url, e);
            return fetch(event.request);
          })
        );
      }
    }
  });
  
  
  // *** Start of auto-included sw-toolbox code. ***
  /* 
   Copyright 2016 Google Inc. All Rights Reserved.
  
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
  
       http://www.apache.org/licenses/LICENSE-2.0
  
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
  */!function (e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.toolbox=e()}}(function (){return function e(t,n,r){function o(c,s){if(!n[c]){if(!t[c]){var a="function"==typeof require&&require;if(!s&&a)return a(c,!0);if(i)return i(c,!0);var u=new Error("Cannot find module '"+c+"'");throw u.code="MODULE_NOT_FOUND",u}var f=n[c]={exports:{}};t[c][0].call(f.exports,function (e){var n=t[c][1][e];return o(n?n:e)},f,f.exports,e,t,n,r)}return n[c].exports}for(var i="function"==typeof require&&require,c=0;c<r.length;c++)o(r[c]);return o}({1:[function (e,t,n){"use strict";function r(e,t){t=t||{};var n=t.debug||m.debug;n&&console.log("[sw-toolbox] "+e)}function o(e){var t;return e&&e.cache&&(t=e.cache.name),t=t||m.cache.name,caches.open(t)}function i(e,t){t=t||{};var n=t.successResponses||m.successResponses;return fetch(e.clone()).then(function (r){return"GET"===e.method&&n.test(r.status)&&o(t).then(function (n){n.put(e,r).then(function (){var r=t.cache||m.cache;(r.maxEntries||r.maxAgeSeconds)&&r.name&&c(e,n,r)})}),r.clone()})}function c(e,t,n){var r=s.bind(null,e,t,n);d=d?d.then(r):r()}function s(e,t,n){var o=e.url,i=n.maxAgeSeconds,c=n.maxEntries,s=n.name,a=Date.now();return r("Updating LRU order for "+o+". Max entries is "+c+", max age is "+i),g.getDb(s).then(function (e){return g.setTimestampForUrl(e,o,a)}).then(function (e){return g.expireEntries(e,c,i,a)}).then(function (e){r("Successfully updated IDB.");var n=e.map(function (e){return t.delete(e)});return Promise.all(n).then(function (){r("Done with cache cleanup.")})}).catch(function (e){r(e)})}function a(e,t,n){return r("Renaming cache: ["+e+"] to ["+t+"]",n),caches.delete(t).then(function (){return Promise.all([caches.open(e),caches.open(t)]).then(function (t){var n=t[0],r=t[1];return n.keys().then(function (e){return Promise.all(e.map(function (e){return n.match(e).then(function (t){return r.put(e,t)})}))}).then(function (){return caches.delete(e)})})})}function u(e,t){return o(t).then(function (t){return t.add(e)})}function f(e,t){return o(t).then(function (t){return t.delete(e)})}function h(e){e instanceof Promise||p(e),m.preCacheItems=m.preCacheItems.concat(e)}function p(e){var t=Array.isArray(e);if(t&&e.forEach(function (e){"string"==typeof e||e instanceof Request||(t=!1)}),!t)throw new TypeError("The precache method expects either an array of strings and/or Requests or a Promise that resolves to an array of strings and/or Requests.");return e}function l(e,t,n){if(!e)return!1;if(t){var r=e.headers.get("date");if(r){var o=new Date(r);if(o.getTime()+1e3*t<n)return!1}}return!0}var d,m=e("./options"),g=e("./idb-cache-expiration");t.exports={debug:r,fetchAndCache:i,openCache:o,renameCache:a,cache:u,uncache:f,precache:h,validatePrecacheInput:p,isResponseFresh:l}},{"./idb-cache-expiration":2,"./options":4}],2:[function (e,t,n){"use strict";function r(e){return new Promise(function (t,n){var r=indexedDB.open(u+e,f);r.onupgradeneeded=function (){var e=r.result.createObjectStore(h,{keyPath:p});e.createIndex(l,l,{unique:!1})},r.onsuccess=function (){t(r.result)},r.onerror=function (){n(r.error)}})}function o(e){return e in d||(d[e]=r(e)),d[e]}function i(e,t,n){return new Promise(function (r,o){var i=e.transaction(h,"readwrite"),c=i.objectStore(h);c.put({url:t,timestamp:n}),i.oncomplete=function (){r(e)},i.onabort=function (){o(i.error)}})}function c(e,t,n){return t?new Promise(function (r,o){var i=1e3*t,c=[],s=e.transaction(h,"readwrite"),a=s.objectStore(h),u=a.index(l);u.openCursor().onsuccess=function (e){var t=e.target.result;if(t&&n-i>t.value[l]){var r=t.value[p];c.push(r),a.delete(r),t.continue()}},s.oncomplete=function (){r(c)},s.onabort=o}):Promise.resolve([])}function s(e,t){return t?new Promise(function (n,r){var o=[],i=e.transaction(h,"readwrite"),c=i.objectStore(h),s=c.index(l),a=s.count();s.count().onsuccess=function (){var e=a.result;e>t&&(s.openCursor().onsuccess=function (n){var r=n.target.result;if(r){var i=r.value[p];o.push(i),c.delete(i),e-o.length>t&&r.continue()}})},i.oncomplete=function (){n(o)},i.onabort=r}):Promise.resolve([])}function a(e,t,n,r){return c(e,n,r).then(function (n){return s(e,t).then(function (e){return n.concat(e)})})}var u="sw-toolbox-",f=1,h="store",p="url",l="timestamp",d={};t.exports={getDb:o,setTimestampForUrl:i,expireEntries:a}},{}],3:[function (e,t,n){"use strict";function r(e){var t=a.match(e.request);t?e.respondWith(t(e.request)):a.default&&"GET"===e.request.method&&0===e.request.url.indexOf("http")&&e.respondWith(a.default(e.request))}function o(e){s.debug("activate event fired");var t=u.cache.name+"$$$inactive$$$";e.waitUntil(s.renameCache(t,u.cache.name))}function i(e){return e.reduce(function (e,t){return e.concat(t)},[])}function c(e){var t=u.cache.name+"$$$inactive$$$";s.debug("install event fired"),s.debug("creating cache ["+t+"]"),e.waitUntil(s.openCache({cache:{name:t}}).then(function (e){return Promise.all(u.preCacheItems).then(i).then(s.validatePrecacheInput).then(function (t){return s.debug("preCache list: "+(t.join(", ")||"(none)")),e.addAll(t)})}))}e("serviceworker-cache-polyfill");var s=e("./helpers"),a=e("./router"),u=e("./options");t.exports={fetchListener:r,activateListener:o,installListener:c}},{"./helpers":1,"./options":4,"./router":6,"serviceworker-cache-polyfill":16}],4:[function (e,t,n){"use strict";var r;r=self.registration?self.registration.scope:self.scope||new URL("./",self.location).href,t.exports={cache:{name:"$$$toolbox-cache$$$"+r+"$$$",maxAgeSeconds:null,maxEntries:null},debug:!1,networkTimeoutSeconds:null,preCacheItems:[],successResponses:/^0|([123]\d\d)|(40[14567])|410$/}},{}],5:[function (e,t,n){"use strict";var r=new URL("./",self.location),o=r.pathname,i=e("path-to-regexp"),c=function (e,t,n,r){t instanceof RegExp?this.fullUrlRegExp=t:(0!==t.indexOf("/")&&(t=o+t),this.keys=[],this.regexp=i(t,this.keys)),this.method=e,this.options=r,this.handler=n};c.prototype.makeHandler=function (e){var t;if(this.regexp){var n=this.regexp.exec(e);t={},this.keys.forEach(function (e,r){t[e.name]=n[r+1]})}return function (e){return this.handler(e,t,this.options)}.bind(this)},t.exports=c},{"path-to-regexp":15}],6:[function (e,t,n){"use strict";function r(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var o=e("./route"),i=e("./helpers"),c=function (e,t){for(var n=e.entries(),r=n.next(),o=[];!r.done;){var i=new RegExp(r.value[0]);i.test(t)&&o.push(r.value[1]),r=n.next()}return o},s=function (){this.routes=new Map,this.routes.set(RegExp,new Map),this.default=null};["get","post","put","delete","head","any"].forEach(function (e){s.prototype[e]=function (t,n,r){return this.add(e,t,n,r)}}),s.prototype.add=function (e,t,n,c){c=c||{};var s;t instanceof RegExp?s=RegExp:(s=c.origin||self.location.origin,s=s instanceof RegExp?s.source:r(s)),e=e.toLowerCase();var a=new o(e,t,n,c);this.routes.has(s)||this.routes.set(s,new Map);var u=this.routes.get(s);u.has(e)||u.set(e,new Map);var f=u.get(e),h=a.regexp||a.fullUrlRegExp;f.has(h.source)&&i.debug('"'+t+'" resolves to same regex as existing route.'),f.set(h.source,a)},s.prototype.matchMethod=function (e,t){var n=new URL(t),r=n.origin,o=n.pathname;return this._match(e,c(this.routes,r),o)||this._match(e,[this.routes.get(RegExp)],t)},s.prototype._match=function (e,t,n){if(0===t.length)return null;for(var r=0;r<t.length;r++){var o=t[r],i=o&&o.get(e.toLowerCase());if(i){var s=c(i,n);if(s.length>0)return s[0].makeHandler(n)}}return null},s.prototype.match=function (e){return this.matchMethod(e.method,e.url)||this.matchMethod("any",e.url)},t.exports=new s},{"./helpers":1,"./route":5}],7:[function (e,t,n){"use strict";function r(e,t,n){return n=n||{},i.debug("Strategy: cache first ["+e.url+"]",n),i.openCache(n).then(function (t){return t.match(e).then(function (t){var r=n.cache||o.cache,c=Date.now();return i.isResponseFresh(t,r.maxAgeSeconds,c)?t:i.fetchAndCache(e,n)})})}var o=e("../options"),i=e("../helpers");t.exports=r},{"../helpers":1,"../options":4}],8:[function (e,t,n){"use strict";function r(e,t,n){return n=n||{},i.debug("Strategy: cache only ["+e.url+"]",n),i.openCache(n).then(function (t){return t.match(e).then(function (e){var t=n.cache||o.cache,r=Date.now();if(i.isResponseFresh(e,t.maxAgeSeconds,r))return e})})}var o=e("../options"),i=e("../helpers");t.exports=r},{"../helpers":1,"../options":4}],9:[function (e,t,n){"use strict";function r(e,t,n){return o.debug("Strategy: fastest ["+e.url+"]",n),new Promise(function (r,c){var s=!1,a=[],u=function (e){a.push(e.toString()),s?c(new Error('Both cache and network failed: "'+a.join('", "')+'"')):s=!0},f=function (e){e instanceof Response?r(e):u("No result returned")};o.fetchAndCache(e.clone(),n).then(f,u),i(e,t,n).then(f,u)})}var o=e("../helpers"),i=e("./cacheOnly");t.exports=r},{"../helpers":1,"./cacheOnly":8}],10:[function (e,t,n){t.exports={networkOnly:e("./networkOnly"),networkFirst:e("./networkFirst"),cacheOnly:e("./cacheOnly"),cacheFirst:e("./cacheFirst"),fastest:e("./fastest")}},{"./cacheFirst":7,"./cacheOnly":8,"./fastest":9,"./networkFirst":11,"./networkOnly":12}],11:[function (e,t,n){"use strict";function r(e,t,n){n=n||{};var r=n.successResponses||o.successResponses,c=n.networkTimeoutSeconds||o.networkTimeoutSeconds;return i.debug("Strategy: network first ["+e.url+"]",n),i.openCache(n).then(function (t){var s,a,u=[];if(c){var f=new Promise(function (r){s=setTimeout(function (){t.match(e).then(function (e){var t=n.cache||o.cache,c=Date.now(),s=t.maxAgeSeconds;i.isResponseFresh(e,s,c)&&r(e)})},1e3*c)});u.push(f)}var h=i.fetchAndCache(e,n).then(function (e){if(s&&clearTimeout(s),r.test(e.status))return e;throw i.debug("Response was an HTTP error: "+e.statusText,n),a=e,new Error("Bad response")}).catch(function (r){return i.debug("Network or response error, fallback to cache ["+e.url+"]",n),t.match(e).then(function (e){if(e)return e;if(a)return a;throw r})});return u.push(h),Promise.race(u)})}var o=e("../options"),i=e("../helpers");t.exports=r},{"../helpers":1,"../options":4}],12:[function (e,t,n){"use strict";function r(e,t,n){return o.debug("Strategy: network only ["+e.url+"]",n),fetch(e)}var o=e("../helpers");t.exports=r},{"../helpers":1}],13:[function (e,t,n){"use strict";var r=e("./options"),o=e("./router"),i=e("./helpers"),c=e("./strategies"),s=e("./listeners");i.debug("Service Worker Toolbox is loading"),self.addEventListener("install",s.installListener),self.addEventListener("activate",s.activateListener),self.addEventListener("fetch",s.fetchListener),t.exports={networkOnly:c.networkOnly,networkFirst:c.networkFirst,cacheOnly:c.cacheOnly,cacheFirst:c.cacheFirst,fastest:c.fastest,router:o,options:r,cache:i.cache,uncache:i.uncache,precache:i.precache}},{"./helpers":1,"./listeners":3,"./options":4,"./router":6,"./strategies":10}],14:[function (e,t,n){t.exports=Array.isArray||function (e){return"[object Array]"==Object.prototype.toString.call(e)}},{}],15:[function (e,t,n){function r(e,t){for(var n,r=[],o=0,i=0,c="",s=t&&t.delimiter||"/";null!=(n=x.exec(e));){var f=n[0],h=n[1],p=n.index;if(c+=e.slice(i,p),i=p+f.length,h)c+=h[1];else{var l=e[i],d=n[2],m=n[3],g=n[4],v=n[5],w=n[6],y=n[7];c&&(r.push(c),c="");var b=null!=d&&null!=l&&l!==d,E="+"===w||"*"===w,R="?"===w||"*"===w,k=n[2]||s,$=g||v;r.push({name:m||o++,prefix:d||"",delimiter:k,optional:R,repeat:E,partial:b,asterisk:!!y,pattern:$?u($):y?".*":"[^"+a(k)+"]+?"})}}return i<e.length&&(c+=e.substr(i)),c&&r.push(c),r}function o(e,t){return s(r(e,t))}function i(e){return encodeURI(e).replace(/[\/?#]/g,function (e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function c(e){return encodeURI(e).replace(/[?#]/g,function (e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function (n,r){for(var o="",s=n||{},a=r||{},u=a.pretty?i:encodeURIComponent,f=0;f<e.length;f++){var h=e[f];if("string"!=typeof h){var p,l=s[h.name];if(null==l){if(h.optional){h.partial&&(o+=h.prefix);continue}throw new TypeError('Expected "'+h.name+'" to be defined')}if(v(l)){if(!h.repeat)throw new TypeError('Expected "'+h.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(h.optional)continue;throw new TypeError('Expected "'+h.name+'" to not be empty')}for(var d=0;d<l.length;d++){if(p=u(l[d]),!t[f].test(p))throw new TypeError('Expected all "'+h.name+'" to match "'+h.pattern+'", but received `'+JSON.stringify(p)+"`");o+=(0===d?h.prefix:h.delimiter)+p}}else{if(p=h.asterisk?c(l):u(l),!t[f].test(p))throw new TypeError('Expected "'+h.name+'" to match "'+h.pattern+'", but received "'+p+'"');o+=h.prefix+p}}else o+=h}return o}}function a(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function f(e,t){return e.keys=t,e}function h(e){return e.sensitive?"":"i"}function p(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return f(e,t)}function l(e,t,n){for(var r=[],o=0;o<e.length;o++)r.push(g(e[o],t,n).source);var i=new RegExp("(?:"+r.join("|")+")",h(n));return f(i,t)}function d(e,t,n){return m(r(e,n),t,n)}function m(e,t,n){v(t)||(n=t||n,t=[]),n=n||{};for(var r=n.strict,o=n.end!==!1,i="",c=0;c<e.length;c++){var s=e[c];if("string"==typeof s)i+=a(s);else{var u=a(s.prefix),p="(?:"+s.pattern+")";t.push(s),s.repeat&&(p+="(?:"+u+p+")*"),p=s.optional?s.partial?u+"("+p+")?":"(?:"+u+"("+p+"))?":u+"("+p+")",i+=p}}var l=a(n.delimiter||"/"),d=i.slice(-l.length)===l;return r||(i=(d?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&d?"":"(?="+l+"|$)",f(new RegExp("^"+i,h(n)),t)}function g(e,t,n){return v(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?p(e,t):v(e)?l(e,t,n):d(e,t,n)}var v=e("isarray");t.exports=g,t.exports.parse=r,t.exports.compile=o,t.exports.tokensToFunction=s,t.exports.tokensToRegExp=m;var x=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g")},{isarray:14}],16:[function (e,t,n){!function (){var e=Cache.prototype.addAll,t=navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/);if(t)var n=t[1],r=parseInt(t[2]);e&&(!t||"Firefox"===n&&r>=46||"Chrome"===n&&r>=50)||(Cache.prototype.addAll=function (e){function t(e){this.name="NetworkError",this.code=19,this.message=e}var n=this;return t.prototype=Object.create(Error.prototype),Promise.resolve().then(function (){if(arguments.length<1)throw new TypeError;return e=e.map(function (e){return e instanceof Request?e:String(e)}),Promise.all(e.map(function (e){"string"==typeof e&&(e=new Request(e));var n=new URL(e.url).protocol;if("http:"!==n&&"https:"!==n)throw new t("Invalid scheme");return fetch(e.clone())}))}).then(function (r){if(r.some(function (e){return!e.ok}))throw new t("Incorrect response status");return Promise.all(r.map(function (t,r){return n.put(e[r],t)}))}).then(function (){})},Cache.prototype.add=function (e){return this.addAll([e])})}()},{}]},{},[13])(13)});
  
  
  // *** End of auto-included sw-toolbox code. ***
  
  
  
  // Runtime cache configuration, using the sw-toolbox library.
  
  toolbox.router.get(/\/bower_components\/webcomponentsjs\/.*.js/, toolbox.fastest, {"cache":{"name":"webcomponentsjs-polyfills-cache"}});
  
  
  
  
  