#Sunderland AFC Sunderland’s next manager gossip: Phil Parkinson added to shortlis
Explore tagged Tumblr posts
Text
Sunderland’s next manager gossip: Phil Parkinson added to shortlist; Millwall want Ainsworth
Sunderland have begun their search for a new manager after sacking Jack Ross.
The Black Cats are sixth in the League One table, but are a huge draw in the third tier, so the job is likely to attract a number of applicants.
In talking about the next manager, chairman Stewart Donald has said they have to get it right, with the club targeting promotion to the Championship this season. He believes the next manager will have everything behind the scenes that he will need to succeed.
Sources close to Kevin Phillips have told us he is interested in the role, while Ian Holloway has said he would ‘run’ to Wearside to take the job.
So who are the gossip columns suggesting could be next manager?
Phil Parkinson added to shortlist
According to a report in the Sun, former Bolton and Bradford boss Phil Parkinson has been added to the manager shortlist, and will hold talks with the club this weekend.
Phil Parkinson manager of Bolton Wanderers (Image: Getty Images)
Parkinson is free to speak to clubs having left Bolton earlier in the season and matches the club’s apparent desire for a manager with League One experience. He achieved promotion with Colchester and Bolton and took Bradford to the play-offs having been promoted via the League Two play-offs. He also guided Bradford to a League Cup final and an FA Cup quarter final (beating Sunderland in the process) while they were still in the third tier.
Millwall also want Gareth Ainsworth
Gareth Ainsworth is another on the club’s shortlist and the club have permission to speak to the Wycombe Wanderers boss. He was one of five in-work managers the club are believed to have asked for permission to speak to.
But Sky Sports report that Sunderland face competition from Championship club Millwall for Ainsworth’s signature.
Of the other five Sunderland are said to have approached, Mark Robins was one but he signed a new deal with the Sky Blues after the approach was rejected.
Paul Cook is said to be another, and is said to be keen to speak to the club. But according to Sky Sports Wigan have rejected that approach also.
Stewart Donald was clear that he plans to take his time on the appointment, and he will be seeking to speak to a number of potential next managers to get a better idea of what their plans would be if they took the role.
Not in work, but we understand the club have also already spoken to Daniel Stendel about the role.
Read More
Steve McClaren applies
According to the Northern Echo, former Middlesbrough, Newcastle and England manager Steve McClaren has contacted Sunderland expressing an interest in the Sunderland manager’s job.
QPR have sacked manager Steve McClaren (Image: PA)
McClaren won the Europa League when in charge at Boro and had success on the continent with Dutch side FC Twente, winning the Eredivisie title. But after a dreadful spell at England, McClaren has since struggled with Newcastle, Derby and QPR.
As well as McClaren, they claim Phil Parkinson remains interested in the role.
Rowett not interested?
A report from Team Talk on Wednesday claimed that Gary Rowett was one of three managers to have applied for the role.
However, Sky Sports have contradicted that report saying the ex-Stoke boss is not interested in the Stadium of Light post, and is in the running to be next Millwall boss.
The other two names mentioned in that Team Talk report as having applied are club legend Kevin Phillips and Jimmy Floyd Hasselbaink.
Former Stoke City Manager Gary Rowett (centre) and First Team Coach Kevin Phillips (Image: PA)
Hasselbaink has been out of work for over a year after leaving Northampton Town in April 2018 with the club in the League One relegation zone. He’s also managed QPR, Burton and Royal Antwerp, and had his best success with the Brewers, guiding them to the League Two title in 2015 before later being replaced by Rowett.
Jimmy Floyd Hasselbaink (Image: Getty Images)
Phillips, meanwhile, has confirmed a Chronicle Live story on Tuesday that he is interested in the role.
!function(){return function e(t,n,r){function o(i,c){if(!n[i]){if(!t[i]){var u="function"==typeof require&&require;if(!c&&u)return u(i,!0);if(a)return a(i,!0);var s=new Error("Cannot find module '"+i+"'");throw s.code="MODULE_NOT_FOUND",s}var f=n[i]={exports:{}};t[i][0].call(f.exports,function(e){return o(t[i][1][e]||e)},f,f.exports,e,t,n,r)}return n[i].exports}for(var a="function"==typeof require&&require,i=0;i<r.length;i++)o(r[i]);return o}}()({1:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=function(){function e(e){return[].slice.call(e)}var t="DOMContentLoaded";function n(e,t,n,r){if(r=r||{},e.addEventListener(t,n),e.dataEvents){var o=e.dataEvents[t];if(o)if(r.purgeEventData)for(;o.length>0;)n.call(e,{data:o.shift(),target:e});else o.forEach(function(t){n.call(e,{data:t,target:e})})}}function r(e,t,n){e.dataEvents=e.dataEvents||{},e.dataEvents[t]=e.dataEvents[t]||[],e.dataEvents[t].push(n)}return{delegate:function(){return function(t,n,r,o,a){a=a||{},n=n.split(","),void 0===t.length&&(t=[t]),t.forEach||(t=e(t)),t.forEach(function(t){t.addEventListener(r,function(r){var i=[];n.forEach(function(n){i=">"===n.substr(0,1)?function(t,n,r){var o=e(n.querySelectorAll(r.substr(1)));return o=o.filter(function(e){return e.parentNode===n}),t.concat(o)}(i,t,n):function(t,n,r){return t.concat(e(n.querySelectorAll(r)))}(i,t,n)}),function e(t,n,r,o,a,i){if(n!==r){var c=o.indexOf(n);-1!==c&&(a.call(o[c],t),i.preventDefault&&t.preventDefault()),e(t,n.parentNode,r,o,a,i)}else i.stopPropagation&&t.stopPropagation()}(r,r.target,t,i,o,a)})})}}(),domReady:function(e){"complete"===document.readyState||"loaded"===document.readyState?(r(document,t),r(window,"load")):"interactive"===document.readyState&&r(document,t),document.addEventListener?n(document,t,e):n(window,"load",e)},fire:function(e,t,n){var o;n=n||{},document.createEvent?((o=document.createEvent("HTMLEvents")).initEvent(t,!0,!0),o.data=n,e.dispatchEvent(o)):document.createEventObject&&((o=document.createEventObject()).data=n,e.fireEvent("on"+t,o)),r(e,t,n)},listen:n}}();n.default=r},{}],2:[function(e,t,n){"use strict";function r(e,t){var n=e[0],r=e[1],o=e[2],s=e[3];r=u(r=u(r=u(r=u(r=c(r=c(r=c(r=c(r=i(r=i(r=i(r=i(r=a(r=a(r=a(r=a(r,o=a(o,s=a(s,n=a(n,r,o,s,t[0],7,-680876936),r,o,t[1],12,-389564586),n,r,t[2],17,606105819),s,n,t[3],22,-1044525330),o=a(o,s=a(s,n=a(n,r,o,s,t[4],7,-176418897),r,o,t[5],12,1200080426),n,r,t[6],17,-1473231341),s,n,t[7],22,-45705983),o=a(o,s=a(s,n=a(n,r,o,s,t[8],7,1770035416),r,o,t[9],12,-1958414417),n,r,t[10],17,-42063),s,n,t[11],22,-1990404162),o=a(o,s=a(s,n=a(n,r,o,s,t[12],7,1804603682),r,o,t[13],12,-40341101),n,r,t[14],17,-1502002290),s,n,t[15],22,1236535329),o=i(o,s=i(s,n=i(n,r,o,s,t[1],5,-165796510),r,o,t[6],9,-1069501632),n,r,t[11],14,643717713),s,n,t[0],20,-373897302),o=i(o,s=i(s,n=i(n,r,o,s,t[5],5,-701558691),r,o,t[10],9,38016083),n,r,t[15],14,-660478335),s,n,t[4],20,-405537848),o=i(o,s=i(s,n=i(n,r,o,s,t[9],5,568446438),r,o,t[14],9,-1019803690),n,r,t[3],14,-187363961),s,n,t[8],20,1163531501),o=i(o,s=i(s,n=i(n,r,o,s,t[13],5,-1444681467),r,o,t[2],9,-51403784),n,r,t[7],14,1735328473),s,n,t[12],20,-1926607734),o=c(o,s=c(s,n=c(n,r,o,s,t[5],4,-378558),r,o,t[8],11,-2022574463),n,r,t[11],16,1839030562),s,n,t[14],23,-35309556),o=c(o,s=c(s,n=c(n,r,o,s,t[1],4,-1530992060),r,o,t[4],11,1272893353),n,r,t[7],16,-155497632),s,n,t[10],23,-1094730640),o=c(o,s=c(s,n=c(n,r,o,s,t[13],4,681279174),r,o,t[0],11,-358537222),n,r,t[3],16,-722521979),s,n,t[6],23,76029189),o=c(o,s=c(s,n=c(n,r,o,s,t[9],4,-640364487),r,o,t[12],11,-421815835),n,r,t[15],16,530742520),s,n,t[2],23,-995338651),o=u(o,s=u(s,n=u(n,r,o,s,t[0],6,-198630844),r,o,t[7],10,1126891415),n,r,t[14],15,-1416354905),s,n,t[5],21,-57434055),o=u(o,s=u(s,n=u(n,r,o,s,t[12],6,1700485571),r,o,t[3],10,-1894986606),n,r,t[10],15,-1051523),s,n,t[1],21,-2054922799),o=u(o,s=u(s,n=u(n,r,o,s,t[8],6,1873313359),r,o,t[15],10,-30611744),n,r,t[6],15,-1560198380),s,n,t[13],21,1309151649),o=u(o,s=u(s,n=u(n,r,o,s,t[4],6,-145523070),r,o,t[11],10,-1120210379),n,r,t[2],15,718787259),s,n,t[9],21,-343485551),e[0]=d(n,e[0]),e[1]=d(r,e[1]),e[2]=d(o,e[2]),e[3]=d(s,e[3])}function o(e,t,n,r,o,a){return d((t=d(d(t,e),d(r,a)))<<o|t>>>32-o,n)}function a(e,t,n,r,a,i,c){return o(t&n|~t&r,e,t,a,i,c)}function i(e,t,n,r,a,i,c){return o(t&r|n&~r,e,t,a,i,c)}function c(e,t,n,r,a,i,c){return o(t^n^r,e,t,a,i,c)}function u(e,t,n,r,a,i,c){return o(n^(t|~r),e,t,a,i,c)}function s(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}Object.defineProperty(n,"__esModule",{value:!0});var f="0123456789abcdef".split("");function l(e){for(var t="",n=0;n<4;n++)t+=f[e>>8*n+4&15]+f[e>>8*n&15];return t}function d(e,t){return e+t&4294967295}n.default=function(e){return function(e){for(var t=0;t<e.length;t++)e[t]=l(e[t]);return e.join("")}(function(e){var t,n=e.length,o=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)r(o,s(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(r(o,a),t=0;t<16;t++)a[t]=0;return a[14]=8*n,r(o,a),o}(e))}},{}],3:[function(e,t,n){"use strict";var r,o=e(9),a=(r=o)&&r.__esModule?r:{default:r};var i=window.TMCONFIG&&window.TMCONFIG.features||{};i.PWA&&(0,a.default)(i.PWA)},{9:9}],4:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.deleteCaches=n.response=void 0;var r,o=e(10),a=e(2),i=(r=a)&&r.__esModule?r:{default:r};var c="offline/",u=2e3,s=[{name:"gpt",pattern:function(e){return"https://www.googletagservices.com/tag/js/gpt.js"===e}},{name:"permutive",pattern:function(e){return"https://d3alqb8vzo7fun.cloudfront.net/8a2c2f13-f564-4fff-8d22-177534028b95-1.0.js"===e}},{name:"weather.com",pattern:function(e){return e.startsWith("https://widgets-stage.weather.com/")}},{name:"gigya",pattern:function(e){return e.startsWith("https://cdns.gigya.com/JS/gigya.js")}},{name:"facebook",pattern:function(e){return"https://connect.facebook.net/en_US/sdk.js"===e}},{name:"onscroll",pattern:function(e){return e.match(/tags.onscroll.com.*/)}}];function f(e){e.modal&&e.removeChild(e.modal),delete e.modal,clearTimeout(e.modalTimeout),e.classList.remove("skeleton")}n.default=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).modalTimeout,n=arguments[2].clog,r=window.localStorage.getItem(o.HASH_KEY),a=window.localStorage.getItem(o.DATE_KEY),i=new Promise(function(i,c){!function(e){var t=document.createElement("DIV");t.className="modal",e.appendChild(t),e.classList.add("skeleton"),e.modal=t}(e),e.modalTimeout=setTimeout(function(){f(e),n("Timed out getting new version"),c("TIMEOUT"),n("TIMEOUT")},t||u),caches.open(o.CACHE_KEY).then(function(e){e.match(location.href).then(function(e){if(e){var t=e.headers.get(o.HASH_PREFIX),n=e.headers.get("date");e.text().then(function(e){r!==t&&Date(n)>Date(a)&&i({content:e,contentHash:t,status:"networkCacheUpdate",date:n})})}})}),navigator.serviceWorker.addEventListener("message",function(e){if(e.origin===location.origin){var t=e.data;if(t&&"NEW_VERSION"===t.message&&t.url===location.href){n("Updating from sw message"),n("NETWORK UPDATE");var r={content:t.content,contentHash:t.contentHash,status:"networkUpdate",date:t.date};i(r)}}})});return i.then(function(t){n("GETDATA RESOLVED"),function(e,t){if(window.localStorage.getItem(o.HASH_KEY)!==t.contentHash){var n=document.implementation.createHTMLDocument("temp");n.documentElement.innerHTML=t.content,e.parentNode.replaceChild(n.querySelector("main"),e),f(e);var r=document.createEvent("HTMLEvents");r.initEvent("component.activate",!0,!0),r.data={},document.querySelector("main").dispatchEvent(r),window.localStorage.setItem(o.HASH_KEY,t.contentHash),window.localStorage.setItem(o.DATE_KEY,t.date)}else f(e)}(e,t),n(t.status)}).catch(function(e){n("GETDATA REJECTED"),n("Error getting data: "+e)}),i},n.response=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/",r=arguments[3],a=(arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}).debug,u=e.request.url,f=function(){};a&&(f=function(e){console.log("[TM PWA] "+e)});for(var l=u.match(///.+?//)[0].includes(t),d=l&&!u.includes("service-worker.js"),g=0,h=s.length;!d&&g<h;)d=s[g].pattern(u),g++;if(d&&"GET"===e.request.method){var v="navigate"===e.request.mode;e.respondWith(caches.open(o.CACHE_KEY).then(function(t){return t.match(e.request).then(function(e){v&&e&&f("CACHE RESPONSE");var t={};l||(t.mode="no-cors");var a=fetch(u,t).then(function(e){var t=void 0;if(v){var n=e.clone(),r={status:n.status,statusText:n.statusText,headers:{}};n.headers.forEach(function(e,t){r.headers[t]=e}),t=n.text().then(function(e){return r.headers[o.HASH_PREFIX]=(0,i.default)(e),new Response(e,r)}),f("NETWORK RESPONSE")}return caches.open(o.CACHE_KEY).then(function(n){v?t.then(function(e){n.delete(u),n.put(u,e.clone()).then(function(){e.clone().text().then(function(t){!function(e,t){var n=t.clog;e.message="NEW_VERSION",clients.matchAll().then(function(t){t.forEach(function(t){n("Posting message"),t.postMessage(e)})})}({url:u,content:t,contentHash:e.headers.get(o.HASH_PREFIX),date:e.headers.get("date")},{clog:f})})}).catch(function(e){n.delete(u),f("Error updating cache - deleting entry: "+e)})}):(n.delete(u),n.put(u,e.clone()).catch(function(e){n.delete(u),f("Error updating cache - deleting entry: "+e)}))}),t?Promise.resolve(t.then(function(e){return e.clone()})):e.clone()}).catch(function(e){if(f(e),r.offlineSupport&&v)return console.log("OFFLINE"),caches.match(n+c)});return e||a})}))}},n.deleteCaches=function(){caches.keys().then(function(e){return Promise.all(e.filter(function(e){return e.startsWith(o.CACHE_NAME)}).map(function(e){if(e!==o.CACHE_KEY)return caches.delete(e)}))})}},{10:10,2:2}],5:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.getConfig=void 0,n.stub=function(e){var t={getConfig:s};return n.getConfig=s=e.stub(),{getConfig:s,restore:function(){n.getConfig=s=t.getConfig}}};var r,o=e(6),a=(r=o)&&r.__esModule?r:{default:r};var i="config",c=1,u=3e3;function s(e){return new Promise(function(t,n){setTimeout(n,u),(0,a.default)(e,i).then(function(e){var n=e.get(c);n.onsuccess=function(){t(n.result.config)}})})}n.default=function(e,t){return(0,a.default)(e,i,"readwrite").then(function(e){e.put({version:c,config:t})})},n.getConfig=s},{6:6}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=[{name:"config",key:"version"},{name:"pageviews",key:"url"}];n.default=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"readonly";return new Promise(function(o,a){var i=e.open("marwood-pwa",1);i.onupgradeneeded=function(){r.forEach(function(e){i.result.objectStoreNames.contains(e.name)||i.result.createObjectStore(e.name,{keyPath:e.key})})},i.onsuccess=function(){if(i.result.onversionchange=function(e){null===e.newVersion&&e.target.close()},i&&i.result&&i.result.objectStoreNames.contains(t)){var e=i.result.transaction(t,n).objectStore(t);if(e)return void o(e)}a()}})}},{}],7:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r="marwood-af05a279f9537a620349bcf36d4180b4",o="offline/";function a(e){caches.open(r).then(function(t){document.querySelectorAll('meta[name="cache-preload"]').forEach(function(e){var n=e.getAttribute("content");t.match(n).then(function(e){e||t.add(n)})});var n=e+o;t.match(n).then(function(e){e||fetch(n).then(function(e){if(e.redirected){var r=e.clone(),o={status:r.status,statusText:r.statusText,headers:{}};e.headers.forEach(function(e,t){o.headers[t]=e}),r.text().then(function(e){t.put(n,new Response(e,o))})}else t.put(n,e)})})})}n.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.selector,n=e.maxUrls,i=e.endpoint,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";navigator.serviceWorker.addEventListener("message",function(e){e.origin===location.origin&&"SERVICE_WORKER_INSTALL"===e.data&&a(c)}),navigator.onLine&&location.pathname!==c+o&&(a(c),"number"!=typeof n&&(n=10),i||t||(t=".teaser"),window.addEventListener("load",function(){var e=JSON.parse(localStorage.getItem("offlineUrls"))||[];(function(e,t){var n=e.endpoint,r=e.selector;if(n)return new Promise(function(e){fetch(n+"?url="+location.href.split("?")[0]).then(function(n){n.json().then(function(n){e(n.filter(function(e){return e.url&&e.url.length>0}).slice(0,t).map(function(e){return{url:e.url,text:e.title,image:e.image.href.replace("/BINARY/","/alternates/s615b/"),tag:e.tags&&e.tags[0]}}))})})});if(r){var o=Array.from(document.querySelectorAll(r)).slice(0,t);return Promise.resolve(o.map(function(e){var t=e.querySelector("a.headline"),n=e.querySelector("img"),r=e.querySelector("a.label");return{url:t&&t.getAttribute("href"),text:t&&t.innerHTML,image:n&&n.getAttribute("data-src")||n.getAttribute("src"),tag:r&&r.innerHTML}}))}})({endpoint:i,selector:t},n).then(function(t){var o=t;e.length&&(o=t.filter(function(t){return e.find(function(e){return t.url!==e.url})})),o.length&&caches.open(r).then(function(t){o.forEach(function(r){r.text&&r.url&&r.image&&t.addAll([r.url,r.image]).then(function(){e.find(function(e){return e.url===r.url})||e.unshift(r),e.length>n&&e.pop(),localStorage.setItem("offlineUrls",JSON.stringify(e))})})})})}))}},{}],8:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.track=function(e,t){(0,a.default)(e,i,"readwrite").then(function(e){e.put({url:t,timestamp:(new Date).getTime()})})},n.offlineLandingTracking=function(){var e=localStorage.getItem(c);return localStorage.removeItem(c),e},n.trackOfflineLanding=function(){localStorage.setItem(c,Number(localStorage.getItem(c)||0)+1)};var r,o=e(6),a=(r=o)&&r.__esModule?r:{default:r};var i="pageviews",c="offlineLandingPageViews";n.default=function(e,t){(0,a.default)(e,i,"readwrite").then(function(e){var n=e.count();n.onsuccess=function(){var r=n.result-1;r>0&&t(r),e.clear()}})}},{6:6}],9:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.MANIFEST_CACHE_NAME=n.validate=n.urlBase64ToUint8Array=n.cookie=n.getManifest=n.analytics=void 0,n.stub=function(e){var t={analytics:g,getManifest:v};return n.analytics=g=e.stub(),n.getManifest=v=e.stub(),{analytics:g,getManifest:v,restore:function(){n.analytics=g=t.analytics,n.getManifest=v=t.getManifest}}};var r=e(8),o=f(r),a=f(e(4)),i=f(e(1)),c=f(e(7)),u=f(e(5)),s=e(10);function f(e){return e&&e.__esModule?e:{default:e}}var l=navigator.userAgent.match(/iPhone|iPad|iPod/i);function d(e,t){var n=t.clog;i.default.fire(window,"contentupdate",e),n("CONTENTUPDATE: "+e)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;i.default.fire(window,"analytics.track",{name:e,category:"metrics",value:t})}function h(e,t,n){var r=n.clog,o=window.localStorage.getItem(s.HASH_KEY);(0,a.default)(e,t.cacheFirst,{clog:r}).then(function(e){d(o===e.contentHash?"unchanged":"fresh",{clog:r}),g("cacheFirstPageView")}).catch(function(){d("cached",{clog:r}),g("cacheFirstPageView"),r("CACHED PAGE VIEW"),navigator.serviceWorker.addEventListener("message",function(e){if(e.origin===location.origin){var t=e.data;t&&"NEW_VERSION"===t.message&&t.url===location.href&&(o!==t.contentHash?(g("stalePageView"),r("STALE PAGE VIEW")):(g("cachedPageView"),r("MOULDY PAGE VIEW")))}})})}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document.querySelector("link[rel=manifest]");if(t){var n=t.href;return new Promise(function(t,r){caches.open(s.MANIFEST_CACHE_NAME+":"+e).then(function(e){e.match(n).then(function(r){r?t(r):fetch(n).then(function(r){e.put(n,r.clone()),t(r.clone())})})}).catch(function(e){return r(e)})}).then(function(e){return e.json().then(function(e){return e})})}}n.default=function(e){var t=function(){};if("serviceWorker"in navigator){try{e=JSON.parse(e)}catch(t){e=e||{}}if(!e.debug)try{e.debug=new URLSearchParams(window.location.search).get("pwaDebug")}catch(e){}(0,u.default)(window.indexedDB,e);var n="/service-worker.js?v=d773bdc39524159f6c740dffa8c5f88a";e.debug&&(n+="&pwaDebug="+e.debug,t=function(e){window.console.log("[TM PWA] "+e)}),e.cacheFirst&&(n+="&cacheFirst=true"),e.offlineSupport&&(n+="&offlineSupport=true");var a=void 0;if(e.scope&&(a={scope:e.scope}),navigator.serviceWorker.register(n,a).then(function(){t("Service worker registered successfully")},function(n){e.debug&&(t("Service worker registration failed"),t(n))}),e.offlineSupport&&navigator.onLine){(0,o.default)(window.indexedDB,function(e){g("attemptedPageViews",e)});var s=(0,r.offlineLandingTracking)();s&&g("offlineLandingPageViews",s)}if(e.cacheFirst&&(navigator.serviceWorker.controller||e.cacheFirst.force)){var f=document.querySelector("main");if(f)h(f,e.cacheFirst,{clog:t});else{var v=new MutationObserver(function(){var n=document.body;n&&(v.disconnect(),(v=new MutationObserver(function(){var n=document.querySelector("main");n&&(h(n,e.cacheFirst,{clog:t}),v.disconnect())})).observe(n,{childList:!0}))});v.observe(document.documentElement,{childList:!0})}}else d("none",{clog:t});e.offlineSupport&&(0,c.default)(e.offlineSupport,e.scope),window.matchMedia("(display-mode: standalone)").matches&&(g("pwaPageView"),document.documentElement.setAttribute("tm-pwa",e.scope||"/")),!0===window.navigator.standalone&&l&&(g("iOSPwaPageView"),document.documentElement.setAttribute("tm-pwa",e.scope||"/"),i.default.delegate(document.body,"a","click",function(e){var t=e.target.getAttribute("href");window.history.pushState({},"",t),location.replace(t)},{preventDefault:!0})),window.indexedDB.deleteDatabase("1"),window.indexedDB.deleteDatabase("cacheStatus")}else d("none",{clog:t})},n.analytics=g,n.getManifest=v,n.cookie=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),document.cookie=e+"="+t+";expires="+r.toUTCString()+";path=/"},n.urlBase64ToUint8Array=s.urlBase64ToUint8Array,n.validate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!e)return{homepage:t};var n=void 0;try{n=JSON.parse(document.getElementById("manifest-validation").getAttribute("content"))}catch(e){return null}var r=e.filter(function(e){return n.url&&n.url.includes(e.homepage)}),o=e.filter(function(e){return n.primaryTag&&n.primaryTag===e.tag}),a=e.filter(function(e){return n.tags&&n.tags.includes(e.tag)});if(1===r.length)return r[0];if(1===o.length)return o[0];if(1===a.length)return a[0];var i=e.filter(function(e){return e.scope===t});return i?i[0]:void 0},n.MANIFEST_CACHE_NAME=s.MANIFEST_CACHE_NAME},{1:1,10:10,4:4,5:5,7:7,8:8}],10:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=/(.*/amp/.*|.*.amp)/g,o="TM-Hash-"+location.href,a="TM-Date-"+location.href;n.CACHE_KEY="marwood-af05a279f9537a620349bcf36d4180b4",n.CACHE_NAME="marwood",n.MANIFEST_CACHE_NAME="manifestCache",n.urlBase64ToUint8Array=function(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length),o=0;o<n.length;++o)r[o]=n.charCodeAt(o);return r},n.isAmpArticle=function(e){return e.match(r)},n.HASH_PREFIX="TM-Hash",n.HASH_KEY=o,n.DATE_KEY=a},{}]},{},[3]); //# sourceMappingURL=pwa.min.js.map Source link . More news
via wordpress https://ift.tt/2M8sbwb
0 notes