akkoma/priv/static/sw.js

3 lines
22 KiB
JavaScript
Raw Normal View History

2017-11-12 13:23:05 +00:00
var __wpo = {"assets":{"main":["/packs/features/compose-4617f6e912b5bfa71c43.js","/packs/modals/onboarding_modal-399f44a19ddd0ddc4e9c.js","/packs/features/public_timeline-d6e6bc704f49ebf922be.js","/packs/features/community_timeline-20bc8a94c08809c127d0.js","/packs/features/hashtag_timeline-3ed7e7bf18fd2fc04c9e.js","/packs/emoji_picker-9cf581d158c1cefc73c9.js","/packs/features/notifications-99d27ff7a90c7f701400.js","/packs/features/home_timeline-c146f32b0118845677ee.js","/packs/features/account_timeline-cad2550e777d3958eca4.js","/packs/features/pinned_statuses-fc56dd5916a37286e823.js","/packs/features/favourited_statuses-b15a9a6cc711cca1eb76.js","/packs/features/status-1f1807fdb4d1fd6daf40.js","/packs/features/following-9060b3726e6ad25f3621.js","/packs/features/followers-6716b8606f70dfa12ed7.js","/packs/features/account_gallery-b13924812f8dd47200c2.js","/packs/modals/report_modal-7a2950f40d4867b9cbb0.js","/packs/features/follow_requests-281e5b40331385149920.js","/packs/features/mutes-60c139f123f8d11ed903.js","/packs/features/blocks-e9605338ea941de78465.js","/packs/features/reblogs-e284a8647e830c151a40.js","/packs/features/favourites-083fedd11007764f7fad.js","/packs/features/getting_started-b65f1e917d66a972f2bf.js","/packs/features/generic_not_found-dc757b4cfe00489a06fb.js","/packs/modals/embed_modal-c776fd6a0ea581675783.js","/packs/status/media_gallery-7642f779bf4243e58b78.js","/packs/application-1b1f37dff2aac402336b.js","/packs/share-914b479bea45d0f6d4aa.js","/packs/about-d6275c885cd0e28a1186.js","/packs/public-88b87539fc95f07f2721.js","/packs/default-99ffdcf166b2dedef105.js","/packs/admin-1bab981afc4fd0d71402.js","/packs/common-1789b98651001ef10c0b.js","/packs/common-daadaac9454e7d14470e7954e3143dca.css","/packs/default-818c1287ac3c764905d81e549d5e0160.css","/packs/manifest.json"],"additional":["/emoji/1f602.svg","/emoji/sheet.png"],"optional":["/packs/locale_zh-TW-2ce95af6015c1c812a17.js","/packs/locale_zh-HK-b59fc4967cc8ed927fe9.js","/packs/locale_zh-CN-601e45ab96a4205d0315.js","/packs/locale_uk-1dc16dc9b7d7c6e9c566.js","/packs/locale_tr-71d85a06079f5471426f.js","/packs/locale_th-9c80f19a54e11880465c.js","/packs/locale_sv-a171cdf4deaf1e12bb0d.js","/packs/locale_ru-6976b8c1b98d9a59e933.js","/packs/locale_pt-ab5ecfe44d3e665b5bb7.js","/packs/locale_pt-BR-d2e312d147c156be6d25.js","/packs/locale_pl-a29786d2e8e517933a46.js","/packs/locale_oc-5db5b324864d5986ca40.js","/packs/locale_no-a905e439e333e8a75417.js","/packs/locale_nl-eb63a7c19f056d7aad37.js","/packs/locale_ko-6095b6a5356744e8c0fa.js","/packs/locale_ja-d62b9a98f6d06252f969.js","/packs/locale_it-e0da50e91bbf1d0ca7cd.js","/packs/locale_io-aa797a5ae99e86edda1b.js","/packs/locale_id-fab008a8becc89597587.js","/packs/locale_hu-2bb0c40f1c7f66e27e2d.js","/packs/locale_hr-e2d2f61a68ccc0db5448.js","/packs/locale_he-005e46857d05c85ee2eb.js","/packs/locale_fr-abab8a49160466298d03.js","/packs/locale_fi-a0bb536510dfb7fe46e7.js","/packs/locale_fa-36da2b4b7fce9ee445d4.js","/packs/locale_es-26cf29fe0ea58c648317.js","/packs/locale_eo-907e661a2a8c6d12f600.js","/packs/locale_en-a0e3195e8a56398ec497.js","/packs/locale_de-bf72ca55e704d5a96788.js","/packs/locale_ca-04107d1a98af2b039204.js","/packs/locale_bg-c13dba4d26f870d592b2.js","/packs/locale_ar-7d02662cc0cfffd6f6f9.js","/packs/base_polyfills-0e7cb02d7748745874eb.js","/packs/extra_polyfills-1caed55b56bce0471b41.js","/packs/fontawesome-webfont-af7ae505a9eed503f8b8e6982036873e.woff2","/packs/roboto-italic-webfont-50efdad8c62f5f279e3f4f1f63a4f9bc.woff2","/packs/roboto-bold-webfont-f633cb5c651ba4d50791e1adf55d3c18.woff2","/packs/roboto-medium-webfont-69c55fc2fe77d38934ea98dc31642ce6.woff2","/packs/roboto-regular-webfont-3ec24f953ed5e859a6402cb3c030ea8b.woff2","/packs/robotomono-regular-webfont-6c1ce30b90ee993b22618ec489585594.woff2","/packs/Montserrat-Regular-080422d4c1328f3407818d25c86cce51.woff2","/packs/mastodon-getting-started-758db9bb72f30f65b07bb7b64f24ea83.png","/packs/mastodon-not-found-afb3fe71154b0c7518f25c70897c03d2.png","/packs/void-65dfe5bd31335a5b308d36964d320574.png","/packs/elephant-friend-1-18bbe5bf56bcd2f550f26ae91be00d
!function(t){function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}var e={};n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="/packs/",n(n.s=0)}([function(t,n,e){"use strict";function i(t,n){return caches.match(t,{cacheName:n}).then(function(e){return a()?e:c(e).then(function(e){return caches.open(n).then(function(n){return n.put(t,e)}).then(function(){return e})})}).catch(function(){})}function r(t,n){return t+(-1!==t.indexOf("?")?"&":"?")+"__uncache="+encodeURIComponent(n)}function o(t){return"navigate"===t.mode||t.headers.get("Upgrade-Insecure-Requests")||-1!==(t.headers.get("Accept")||"").indexOf("text/html")}function a(t){return!t||!t.redirected||!t.ok||"opaqueredirect"===t.type}function c(t){return a(t)?Promise.resolve(t):("body"in t?Promise.resolve(t.body):t.blob()).then(function(n){return new Response(n,{headers:t.headers,status:t.status})})}function u(t){return Object.keys(t).reduce(function(n,e){return n[e]=t[e],n},{})}function s(t,n){n.forEach(function(t){})}if(function(){var t=ExtendableEvent.prototype.waitUntil,n=FetchEvent.prototype.respondWith,e=new WeakMap;ExtendableEvent.prototype.waitUntil=function(n){var i=this,r=e.get(i);return r?void r.push(Promise.resolve(n)):(r=[Promise.resolve(n)],e.set(i,r),t.call(i,Promise.resolve().then(function t(){var n=r.length;return Promise.all(r.map(function(t){return t.catch(function(){})})).then(function(){return r.length!=n?t():(e.delete(i),Promise.all(r))})})))},FetchEvent.prototype.respondWith=function(t){return this.waitUntil(t),n.call(this,t)}}(),void 0===f)var f=!1;!function(t,n){function e(){if(!U.additional.length)return Promise.resolve();var t=void 0;return t="changed"===O?f("additional"):a("additional"),t.catch(function(t){})}function a(n){var e=U[n];return caches.open(j).then(function(n){return g(n,e,{bust:t.version,request:t.prefetchRequest})}).then(function(){s("Cached assets: "+n,e)}).catch(function(t){throw t})}function f(n){return d().then(function(e){if(!e)return a(n);var i=e[0],r=e[1],o=e[2],c=o.hashmap,u=o.version;if(!o.hashmap||u===t.version)return a(n);var f=Object.keys(c).map(function(t){return c[t]}),l=r.map(function(t){var n=new URL(t.url);return n.search="",n.hash="",n.toString()}),d=U[n],h=[],v=d.filter(function(t){return-1===l.indexOf(t)||-1===f.indexOf(t)});Object.keys(E).forEach(function(t){var n=E[t];if(-1!==d.indexOf(n)&&-1===v.indexOf(n)&&-1===h.indexOf(n)){var e=c[t];e&&-1!==l.indexOf(e)?h.push([e,n]):v.push(n)}}),s("Changed assets: "+n,v),s("Moved assets: "+n,h);var p=Promise.all(h.map(function(t){return i.match(t[0]).then(function(n){return[t[1],n]})}));return caches.open(j).then(function(n){var e=p.then(function(t){return Promise.all(t.map(function(t){return n.put(t[0],t[1])}))});return Promise.all([e,g(n,v,{bust:t.version,request:t.prefetchRequest})])})})}function l(){return caches.keys().then(function(t){var n=t.map(function(t){if(0===t.indexOf(q)&&0!==t.indexOf(j))return caches.delete(t)});return Promise.all(n)})}function d(){return caches.keys().then(function(t){for(var n=t.length,e=void 0;n--&&(e=t[n],0!==e.indexOf(q)););if(e){var i=void 0;return caches.open(e).then(function(t){return i=t,t.match(new URL(_,location).toString())}).then(function(t){if(t)return Promise.all([i,i.keys(),t.json()])})}})}function h(){return caches.open(j).then(function(n){var e=new Response(JSON.stringify({version:t.version,hashmap:E}));return n.put(new URL(_,location).toString(),e)})}function v(t,n,e){return i(e,j).then(function(i){return i||fetch(t.request).then(function(i){return i.ok?(e===n&&function(){var e=i.clone(),r=caches.open(j).then(function(t){return t.put(n,e)}).then(function(){});t.waitUntil(r)}(),i):i})})}function p(t,n,e){return fetch(t.request).then(function(t){if(t.ok)return t;throw new Error("Response is not ok")}).ca