Abtf[0](function(d,e){if(e.offline=function(){return{then:function(){}}},"serviceWorker"in d.navigator&&e[8]&&e[8][0]){var g=d.document,f=e[8];if(f[3]){var h,k=function(){e[15](function(){if(h!==navigator.onLine&&g.body){if(navigator.onLine){if(void 0===h)return;console.info("Abtf.offline() \u27a4 connection restored");g.body.classList.remove("offline")}else console.warn("Abtf.offline() \u27a4 connection offline"),g.body.classList.add("offline");h=!!navigator.onLine}})};d.addEventListener("online", k);d.addEventListener("offline",k);k()}var l=function(){navigator.serviceWorker.controller.postMessage([1,f[2],f[4],f[5]])};navigator.serviceWorker.ready.then(function(){navigator.serviceWorker.controller?l():navigator.serviceWorker.addEventListener("controllerchange",function(){l()});console.info("Abtf.pwa() \u27a4 service worker ready")});f[6]&&navigator.serviceWorker.register(f[0],{scope:f[1]}).then(function(a){return new Promise(function(b,c){a.installing?a.installing.addEventListener("statechange", function(a){"installed"==a.target.state?(console.info("Abtf.pwa() \u27a4 service worker loaded"),b()):(console.warn("Abtf.pwa() \u27a4 service worker",a.target.state),"redundant"==a.target.state&&c())}):(console.info("Abtf.pwa() \u27a4 service worker loaded"),b())})})["catch"](function(a){throw a;});navigator.serviceWorker.addEventListener("message",function(a){a&&a.data&&a.data instanceof Array&&2===a.data[0]&&g.body&&(a=new CustomEvent("sw-update",{detail:{url:a.data[1]}}),d.dispatchEvent(a))}); var m=function(a,b){navigator.serviceWorker.controller?a.apply(d,b):navigator.serviceWorker.ready.then(function(){a.apply(d,b)})},n=function(a,b){return new Promise(function(c){var d=new MessageChannel;d.port1.onmessage=function(b){b.data&&b.data.error?console.info("Abtf."+a+"() \u27a4 error",b.data.error):c(b.data)};navigator.serviceWorker.controller.postMessage(b,[d.port2])})},p=function(a,b){m(function(a){n("offline",[2,a]).then(function(a){b(a.status)})},[a,b])},t=function(a,b,c){m(function(a, b){n("push",[3,a,b]).then(function(a){c(a.status)})},[a,b])};if(e.offline=function(a){return(new Promise(function(b){p(a,b)}))["catch"](function(b){console.info("Abtf.offline() \u27a4 error",b,a)})},e.push=function(a,b){return(new Promise(function(c){t(a,b,c)}))["catch"](function(c){console.info("Abtf.push() \u27a4 error",c,a,b)})},f[7]){var q=!0,r=function(){if(q){var a=this.getAttribute("href");a&&p(a,function(){})}};e[14](function(){if(d.jQuery)d.jQuery(function(a){a("body").on("mousedown","a", r)});else for(var a=Array.prototype.slice.call(g.getElementsByTagName("a")),b=a.length,c=0;c