pleroma/priv/static/sw.js

3 lines
22 KiB
JavaScript

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-18bbe5bf56bcd2f550f26ae91be00dfb.png","/packs/elephant-fren-d16fd77f9a9387e7d146b5f9d4dc1e7f.png","/packs/elephant-friend-df0b9c6af525e0dea9f1f9c044d9a903.png","/packs/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","/packs/logo-fe5141d38a25f50068b4c69b77ca1ec8.svg","/packs/logo_alt-6090911445f54a587465e41da77a6969.svg","/packs/logo_full-96e7a97fe469f75a23a74852b2478fa3.svg"]},"externals":["/emoji/1f602.svg","/emoji/sheet.png"],"hashesMap":{"d6f48cba7d076fb6f2fd6ba993a75b9dc1ecbf0c":"/packs/fontawesome-webfont-af7ae505a9eed503f8b8e6982036873e.woff2","8aadd54157395376ea8c22827bde88e67f31358e":"/packs/roboto-italic-webfont-50efdad8c62f5f279e3f4f1f63a4f9bc.woff2","e2fc71044647b6edf7a3ba41429d5d626e63710a":"/packs/roboto-bold-webfont-f633cb5c651ba4d50791e1adf55d3c18.woff2","b66f9a200f8671202198f0238b4729e127bc0dac":"/packs/roboto-medium-webfont-69c55fc2fe77d38934ea98dc31642ce6.woff2","74f352b40a57789750d3c738c710a82cdb0f254a":"/packs/roboto-regular-webfont-3ec24f953ed5e859a6402cb3c030ea8b.woff2","1e149b7d5f1c5a5c4971cb523450118b1d50ed47":"/packs/robotomono-regular-webfont-6c1ce30b90ee993b22618ec489585594.woff2","c6aade94b414951dc75e41b6f30fc1fa93bf89fb":"/packs/Montserrat-Regular-080422d4c1328f3407818d25c86cce51.woff2","606c0a294501407cb606af6a2e99ad086691a2d5":"/packs/mastodon-getting-started-758db9bb72f30f65b07bb7b64f24ea83.png","07f2e56474ad40bb2eeefa96747db607148b48e6":"/packs/mastodon-not-found-afb3fe71154b0c7518f25c70897c03d2.png","7e2065071fefe6d54f64b821bf575a0ab49b92c0":"/packs/void-65dfe5bd31335a5b308d36964d320574.png","5e03126b9137ddaac4cd49ee9d8b5f810c73befa":"/packs/elephant-friend-1-18bbe5bf56bcd2f550f26ae91be00dfb.png","027d2ab934afd67b404426234750c08b516ec223":"/packs/elephant-fren-d16fd77f9a9387e7d146b5f9d4dc1e7f.png","ae877f891f7ed247da4e37f126e626065906b050":"/packs/elephant-friend-df0b9c6af525e0dea9f1f9c044d9a903.png","aa75bce521938954706802c15e393ea05663e5e0":"/packs/logo-fe5141d38a25f50068b4c69b77ca1ec8.svg","f573db9e5698b7a3541880875c3ce88fe03ebee2":"/packs/logo_alt-6090911445f54a587465e41da77a6969.svg","3b339fcffc64574bca7cd2521e25bfbea8c3cbbf":"/packs/logo_full-96e7a97fe469f75a23a74852b2478fa3.svg","361cf83e570038228710feb587738d6b74308e26":"/packs/preview-9a17d32fc48369e8ccd910a75260e67d.jpg","02c2c674487079bb099ca92f873a399fe519c75d":"/packs/base_polyfills-0e7cb02d7748745874eb.js","1113f8f4a75e274532df89a37e72252df4b6061d":"/packs/extra_polyfills-1caed55b56bce0471b41.js","09b19d13785042afdc51a7081cc1dfa683abd3e4":"/packs/features/compose-4617f6e912b5bfa71c43.js","5be17973e9c0066acc5c54d3f9c564e0fe508421":"/packs/modals/onboarding_modal-399f44a19ddd0ddc4e9c.js","f17dbfa6961438865e07f03ec6f20fb8f49a7802":"/packs/features/public_timeline-d6e6bc704f49ebf922be.js","3c60c7ba8fd023743c177cebb46fad162f351203":"/packs/features/community_timeline-20bc8a94c08809c127d0.js","a00d9ff200d87d50da8a5581cc5bbf2ad51cd4ec":"/packs/features/hashtag_timeline-3ed7e7bf18fd2fc04c9e.js","4a25d59c03ac2de45524793f76ef24d650088af4":"/packs/emoji_picker-9cf581d158c1cefc73c9.js","82ac4eb08aa65b8eb21e01a95e904c8520d7f0f2":"/packs/features/notifications-99d27ff7a90c7f701400.js","ae6e166636ca34b0e5c698008c48914e33c852b9":"/packs/features/home_timeline-c146f32b0118845677ee.js","a9193d39ede3f09559fae05ef5cf7a4d4f16b62b":"/packs/features/account_timeline-cad2550e777d3958eca4.js","7857e0c4f26fbcd1aa4437a15822a21f238bb519":"/packs/features/pinned_statuses-fc56dd5916a37286e823.js","0f44c43b9b2ec1779fd6744f73c87dca0187a153":"/packs/features/favourited_statuses-b15a9a6cc711cca1eb76.js","dd590f3f97184b3c424b269d2f59eac3d9302f43":"/packs/features/status-1f1807fdb4d1fd6daf40.js","86184a8a6e86a6604bc095c39b4e9b37d08a3a5e":"/packs/features/following-9060b3726e6ad25f3621.js","43626d72bbdf5ff7282f4a4ce712882fc250413b":"/packs/features/followers-6716b8606f70dfa12ed7.js","adef2121adec26a02614a50a00d5911ff5b8ccac":"/packs/features/account_gallery-b13924812f8dd47200c2.js","1607fc3b92d38881a3dd61f82b680b57d4bc6067":"/packs/modals/report_modal-7a2950f40d4867b9cbb0.js","f02af8336f1638c7297ecc0cfcb0e2a089e37be1":"/packs/features/follow_requests-281e5b40331385149920.js","bf9964f139adfe6896ab4f996f0580143768c429":"/packs/features/mutes-60c139f123f8d11ed903.js","10dcc877d7461df7c3de874253a8aab34d5abe13":"/packs/features/blocks-e9605338ea941de78465.js","26d6e458ca239b3171654786ff87c65f3efbb997":"/packs/features/reblogs-e284a8647e830c151a40.js","caec704b8557fbae5544c8a1a82c7e96ff6106ea":"/packs/features/favourites-083fedd11007764f7fad.js","7f3aec72305d03dc3cf02617d24aedf45c48ca22":"/packs/features/getting_started-b65f1e917d66a972f2bf.js","5f999603053c15e02015866c6ee0ef752f1e5a90":"/packs/features/generic_not_found-dc757b4cfe00489a06fb.js","4e42ba33598769eca758896b9955413eff36c6cf":"/packs/modals/embed_modal-c776fd6a0ea581675783.js","f87258c5fce80c82d8fbefebd196f1acc3e3da05":"/packs/status/media_gallery-7642f779bf4243e58b78.js","6e7bdfec33a96ca7385e63314e7b61ed0b520fa1":"/packs/application-1b1f37dff2aac402336b.js","5197ef4f66578d04932c46a2ca73c62ff5354d56":"/packs/share-914b479bea45d0f6d4aa.js","3fe1b7c2d54ae1ca5dde0ecd6bfe77561ae67fcd":"/packs/about-d6275c885cd0e28a1186.js","fdc97092981d986badeff525b2e2e8f7ac3411dd":"/packs/public-88b87539fc95f07f2721.js","08c632ac540cb754bdb26568b5d979ef767a2e32":"/packs/locale_zh-TW-2ce95af6015c1c812a17.js","c23db08d37501a68617a17f5d617c9e2883abfcf":"/packs/locale_zh-HK-b59fc4967cc8ed927fe9.js","32847ac3daff8d15c3b2ca52091bd1052ae17e01":"/packs/locale_zh-CN-601e45ab96a4205d0315.js","c9e5de55bcfdb0793e2ba581ee5fcf0549b17652":"/packs/locale_uk-1dc16dc9b7d7c6e9c566.js","e3ac8cba2dd9601304bfdba4335b962a9889901d":"/packs/locale_tr-71d85a06079f5471426f.js","85ccb9a70acd8791ea4538b92b46a8191c13c2b2":"/packs/locale_th-9c80f19a54e11880465c.js","538200f4a7ad2f95668437ec71720246eeb611d4":"/packs/locale_sv-a171cdf4deaf1e12bb0d.js","4819a17de70e5d38f06ec1bcb43aaa34bf709143":"/packs/locale_ru-6976b8c1b98d9a59e933.js","be59fef7bdc4f0a8e2f2a536136cb7e4971b86dd":"/packs/locale_pt-ab5ecfe44d3e665b5bb7.js","d9d48de5e93f7fbeb9349a24365ece1c0083b41b":"/packs/locale_pt-BR-d2e312d147c156be6d25.js","b05ac962c01e60bcc3a1dfa9635ed601ab015e96":"/packs/locale_pl-a29786d2e8e517933a46.js","04714874cd20422eaee9cd8f0ea7e6f67486c5ee":"/packs/locale_oc-5db5b324864d5986ca40.js","4b24bf3af970b7d47164c90dffc2089e0f1c141b":"/packs/locale_no-a905e439e333e8a75417.js","2c8f8037f2b00c4d4c38fbeba19942e26a0adce8":"/packs/locale_nl-eb63a7c19f056d7aad37.js","edd3e6d9e2efae9927c863ba9be81e34ee0eae4a":"/packs/locale_ko-6095b6a5356744e8c0fa.js","fa0c39ab6085f85bcc15ffa6a32958294d7512a3":"/packs/locale_ja-d62b9a98f6d06252f969.js","c69e885b56b0207913241c564b340776b5eb241b":"/packs/locale_it-e0da50e91bbf1d0ca7cd.js","78b569e009581e6528a57890dbe2d475da744e84":"/packs/locale_io-aa797a5ae99e86edda1b.js","e0c7b8f4798525d5aad43d513cdc6777a8f2a582":"/packs/locale_id-fab008a8becc89597587.js","054e8555165b2e38718db7b660434ee6af4c7b54":"/packs/locale_hu-2bb0c40f1c7f66e27e2d.js","af6a9496ab50297822ad79eb3a8b28bee463a8db":"/packs/locale_hr-e2d2f61a68ccc0db5448.js","7b2b805e78070c1d3aaf1d26d86a491c0c4fdd96":"/packs/locale_he-005e46857d05c85ee2eb.js","8eb27bc91ec6f28951459e76420b636facdebb29":"/packs/locale_fr-abab8a49160466298d03.js","cb66594b9d4b77021b32b3860b93f1fc99ff2631":"/packs/locale_fi-a0bb536510dfb7fe46e7.js","356326a18ce4dd212d7137662fad19d6550ce281":"/packs/locale_fa-36da2b4b7fce9ee445d4.js","d93ea9563c97512409f213a1a34ce152a315ccbe":"/packs/locale_es-26cf29fe0ea58c648317.js","5577ec515e3b2e03226c30e59baf1a1ee55f582b":"/packs/locale_eo-907e661a2a8c6d12f600.js","c4ddaecc4a8d9736bd977ee09f81a049915ddae1":"/packs/locale_en-a0e3195e8a56398ec497.js","310c228396d14679fb0eab558fbb08f3f60b045a":"/packs/locale_de-bf72ca55e704d5a96788.js","921d59001fd5c7f1aad52159d3ad0c91364ccc20":"/packs/locale_ca-04107d1a98af2b039204.js","70eebbd017c2af446683cede112550e3af338a1b":"/packs/locale_bg-c13dba4d26f870d592b2.js","40e44a1ff6d321e7aef60ef9beef5d69f92ebddc":"/packs/locale_ar-7d02662cc0cfffd6f6f9.js","d25247128936074df50bda24bf944c1c201c77c8":"/packs/default-99ffdcf166b2dedef105.js","d0074e124cc28ba46226e7c906433d357e2f7b3a":"/packs/admin-1bab981afc4fd0d71402.js","2be0b26b1bd787307ae34dcb88aeb93875d36b5c":"/packs/common-1789b98651001ef10c0b.js","fa0de8eb4bebb338afc3b9304a1ec1cb7190082a":"/packs/common-daadaac9454e7d14470e7954e3143dca.css","fcf86dc0c729d935398a92324b42093644bdff3c":"/packs/default-818c1287ac3c764905d81e549d5e0160.css","a7d14fcd27e80d7232c6f09a2f5c4c768b171c7b":"/packs/manifest.json"},"strategy":"changed","responseStrategy":"cache-first","version":"11/12/2017, 12:40:57 PM","name":"webpack-offline:mastodon","pluginVersion":"4.8.4","relativePaths":false};
!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")}).catch(function(){return i(e,j)})}function m(t){return t.catch(function(){}).then(function(t){var n=t&&t.ok,e=t&&"opaqueredirect"===t.type;return n||e&&!M?t:i(S,j)})}function g(t,n,e){var i=!1!==e.allowLoaders,o=e&&e.bust,a=e.request||{credentials:"omit",mode:"cors"};return Promise.all(n.map(function(t){return o&&(t=r(t,o)),fetch(t,a).then(c)})).then(function(r){if(r.some(function(t){return!t.ok}))return Promise.reject(new Error("Wrong response status"));var o=[],a=r.map(function(e,r){return i&&o.push(w(n[r],e)),t.put(n[r],e)});return o.length?function(){var i=u(e);i.allowLoaders=!1;var r=a;a=Promise.all(o).then(function(e){var o=[].concat.apply([],e);return n.length&&(r=r.concat(g(t,o,i))),Promise.all(r)})}():a=Promise.all(a),a})}function w(t,n){var e=Object.keys(P).map(function(e){if(-1!==P[e].indexOf(t)&&b[e])return b[e](n.clone())}).filter(function(t){return!!t});return Promise.all(e).then(function(t){return[].concat.apply([],t)})}function y(t){var n=t.url,e=new URL(n),i=void 0;i="navigate"===t.mode?"navigate":e.origin===location.origin?"same-origin":"cross-origin";for(var r=0;r<x.length;r++){var o=x[r];if(o&&(!o.requestTypes||-1!==o.requestTypes.indexOf(i))){var a=void 0;if((a="function"==typeof o.match?o.match(e,t):n.replace(o.match,o.to))&&a!==n)return a}}}var b=n.loaders,x=n.cacheMaps,O=t.strategy,k=t.responseStrategy,U=t.assets,P=t.loaders||{},E=t.hashesMap,L=t.externals,q=t.name,R=t.version,j=q+":"+R,_="__offline_webpack__data";!function(){Object.keys(U).forEach(function(t){U[t]=U[t].map(function(t){var n=new URL(t,location);return n.hash="",-1===L.indexOf(t)&&(n.search=""),n.toString()})}),Object.keys(P).forEach(function(t){P[t]=P[t].map(function(t){var n=new URL(t,location);return n.hash="",-1===L.indexOf(t)&&(n.search=""),n.toString()})}),E=Object.keys(E).reduce(function(t,n){var e=new URL(E[n],location);return e.search="",e.hash="",t[n]=e.toString(),t},{}),L=L.map(function(t){var n=new URL(t,location);return n.hash="",n.toString()})}();var W=[].concat(U.main,U.additional,U.optional),S=t.navigateFallbackURL,M=t.navigateFallbackForRedirects;self.addEventListener("install",function(t){var n=void 0;n="changed"===O?f("main"):a("main"),t.waitUntil(n)}),self.addEventListener("activate",function(t){var n=e();n=n.then(h),n=n.then(l),n=n.then(function(){if(self.clients&&self.clients.claim)return self.clients.claim()}),t.waitUntil(n)}),self.addEventListener("fetch",function(t){var n=new URL(t.request.url);n.hash="";var e=n.toString();-1===L.indexOf(e)&&(n.search="",e=n.toString());var i="GET"===t.request.method,r=-1!==W.indexOf(e),a=e;if(!r){var c=y(t.request);c&&(a=c,r=!0)}if(!r&&i&&S&&o(t.request))return void t.respondWith(m(fetch(t.request)));if(!r||!i)return void(n.origin!==location.origin&&-1!==navigator.userAgent.indexOf("Firefox/44.")&&t.respondWith(fetch(t.request)));var u=void 0;u="network-first"===k?p(t,e,a):v(t,e,a),S&&o(t.request)&&(u=m(u)),t.respondWith(u)}),self.addEventListener("message",function(t){var n=t.data;if(n)switch(n.action){case"skipWaiting":self.skipWaiting&&self.skipWaiting()}})}(__wpo,{loaders:{},cacheMaps:[]}),t.exports=e(1)},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=e(2);e.n(i);self.addEventListener("install",function(t){t.waitUntil(self.skipWaiting())}),self.addEventListener("activate",function(t){t.waitUntil(self.clients.claim())})},function(t,n){var e=function(t,n){return t.replace("%{count}",n)},i=function(t){return self.registration.getNotifications().then(function(n){if(5===n.length){var i={title:e(t.data.message,n.length+1),body:n.sort(function(t,n){return t.timestamp<n.timestamp}).map(function(t){return t.title}).join("\n"),badge:"/badge.png",icon:"/android-chrome-192x192.png",tag:"tag",data:{url:new URL("/web/notifications",self.location).href,count:n.length+1,message:t.data.message}};return n.forEach(function(t){return t.close()}),self.registration.showNotification(i.title,i)}if(1===n.length&&"tag"===n[0].tag){var r=o(n[0]);return r.title=e(r.data.message,r.data.count+1),r.body=t.title+"\n"+r.body,r.data=Object.assign({},r.data,{count:r.data.count+1}),self.registration.showNotification(r.title,r)}return self.registration.showNotification(t.title,t)})},r=function(t){var n=t.data.json();n.body=n.data.nsfw||n.data.content,n.dir=n.data.dir,n.image=n.image||void 0,n.timestamp=n.timestamp&&new Date(n.timestamp);var e=n.data.actions.find(function(t){return"expand"===t.todo});e?(n.actions=[e],n.hiddenActions=n.data.actions.filter(function(t){return t!==e}),n.data.hiddenImage=n.image,n.image=void 0):n.actions=n.data.actions,t.waitUntil(i(n))},o=function(t){var n={};for(var e in t)n[e]=t[e];return n},a=function(t){var n=o(t);return n.body=t.data.content,n.image=t.data.hiddenImage,n.actions=t.data.actions.filter(function(t){return"expand"!==t.todo}),self.registration.showNotification(n.title,n)},c=function(t,n){return fetch(n.action,{headers:{Authorization:"Bearer "+t.data.access_token,"Content-Type":"application/json"},method:n.method,credentials:"include"})},u=function(t){var n=t.find(function(t){return t.focused}),e=t.find(function(t){return"visible"===t.visibilityState});return n||e||t[0]},s=function(t){return self.clients.matchAll({type:"window"}).then(function(n){if(0!==n.length){var e=n.filter(function(t){return/\/web\//.test(t.url)});if(0!==e.length){var i=u(e),r=new URL(t),o=r.pathname;if(o.startsWith("/web/"))return i.focus().then(function(t){return t.postMessage({type:"navigate",path:o.slice("/web/".length-1)})})}else if("navigate"in n[0]){var a=u(n);return a.navigate(t).then(function(t){return t.focus()})}}return self.clients.openWindow(t)})},f=function(t,n){var e=t.actions.filter(function(t){return t.action!==n.action}),i=o(t);return i.actions=e,self.registration.showNotification(i.title,i)},l=function(t){var n=new Promise(function(n,e){if(t.action){var i=t.notification.data.actions.find(function(n){return n.action===t.action});"expand"===i.todo?n(a(t.notification)):"request"===i.todo?n(c(t.notification,i).then(function(){return f(t.notification,i)})):e("Unknown action: "+i.todo)}else t.notification.close(),n(s(t.notification.data.url))});t.waitUntil(n)};self.addEventListener("push",r),self.addEventListener("notificationclick",l)}]);