(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[4],{1:function(t,e){t.exports=googlesitekit.i18n},100:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return o}));var r=n(141),o=n.n(r)()(t)}).call(this,n(19))},101:function(t,e,n){"use strict";(function(t){var r=n(34),o=n.n(r),a=n(145),i=t._googlesitekitAPIFetchData||{},c=i.nonce,u=i.nonceEndpoint,s=i.preloadedData,l=i.rootURL;o.a.nonceEndpoint=u,o.a.nonceMiddleware=o.a.createNonceMiddleware(c),o.a.rootURLMiddleware=o.a.createRootURLMiddleware(l),o.a.preloadingMiddleware=Object(a.a)(s),o.a.use(o.a.nonceMiddleware),o.a.use(o.a.mediaUploadMiddleware),o.a.use(o.a.rootURLMiddleware),o.a.use(o.a.preloadingMiddleware),e.default=o.a}).call(this,n(19))},12:function(t,e,n){"use strict";n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return i}));var r="core/user",o="connected_url_mismatch",a="googlesitekit_view_dashboard",i="googlesitekit_manage_options"},145:function(t,e,n){"use strict";var r=n(142);e.a=function(t){var e=Object.keys(t).reduce((function(e,n){return e[Object(r.getStablePath)(n)]=t[n],e}),{}),n=!1;return function(t,o){if(n)return o(t);setTimeout((function(){n=!0}),1e3);var a=t.parse,i=void 0===a||a,c=t.path;if("string"==typeof t.path){var u,s=(null===(u=t.method)||void 0===u?void 0:u.toUpperCase())||"GET",l=Object(r.getStablePath)(c);if(i&&"GET"===s&&e[l]){var f=Promise.resolve(e[l].body);return delete e[l],f}if("OPTIONS"===s&&e[s]&&e[s][l]){var d=Promise.resolve(e[s][l]);return delete e[s][l],d}}return o(t)}}},167:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(7),o=n.n(r),a=n(14),i=n.n(a),c=n(6),u=["fetch_error"];function s(t){return l.apply(this,arguments)}function l(){return(l=i()(o.a.mark((function t(e){var n,r,a,i,s,l,f,d;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=e.method,i=e.type,s=e.identifier,l=e.datapoint,(f=e.error)&&!u.includes(null==f?void 0:f.code)){t.next=3;break}return t.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(n=f.data)||void 0===n?void 0:n.reason)&&(d+=", reason: ".concat(f.data.reason)),t.next=7,Object(c.t)("api_error","".concat(a,":").concat(i,"/").concat(s,"/data/").concat(l),"".concat(f.message," (").concat(d,")"),(null===(r=f.data)||void 0===r?void 0:r.status)||f.code);case 7:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},30:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return c}));var r=n(23),o=n.n(r),a=n(0),i=function(t){return function(e){return function FilteredComponent(n){return Object(a.createElement)(a.Fragment,{},"",Object(a.createElement)(e,n),t)}}},c=function(e,n){return function(r){return function InnerComponent(a){return t.createElement(e,o()({},a,n,{OriginalComponent:r}))}}}}).call(this,n(0))},43:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));var r="_googlesitekitDataLayer",o="data-googlesitekit-gtag"},472:function(t,e,n){"use strict";(function(t){var r=n(7),o=n.n(r),a=n(14),i=n.n(a),c=n(13),u=n.n(c),s=n(101),l=n(58),f=n(88),d=n(6),p=n(66),v=n(167),g=n(12),b=!0,h=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=[t,e,n].filter((function(t){return!!t&&t.length}));return 3===o.length&&r&&r.constructor===Object&&Object.keys(r).length&&o.push(Object(d.s)(r)),o.join("::")},m=function(e){var n,r,o,a,i=null===(n=t.googlesitekit)||void 0===n||null===(r=n.data)||void 0===r||null===(o=r.dispatch)||void 0===o?void 0:o.call(r,g.a);i&&(e.code===p.a?i.setPermissionScopeError(e):(null===(a=e.data)||void 0===a?void 0:a.reconnectURL)&&i.setAuthError(e))},y=function(){var e=i()(o.a.mark((function e(n,r,a){var i,c,d,p,g,b,y,O,k,w,_,x,E,S,P,D,I=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=I.length>3&&void 0!==I[3]?I[3]:{},c=i.bodyParams,d=i.cacheTTL,p=void 0===d?3600:d,g=i.method,b=void 0===g?"GET":g,y=i.queryParams,O=i.useCache,k=void 0===O?void 0:O,u()(n,"`type` argument for requests is required."),u()(r,"`identifier` argument for requests is required."),u()(a,"`datapoint` argument for requests is required."),w="GET"===b&&(void 0!==k?k:j()),_=h(n,r,a,y),!w){e.next=18;break}return e.next=9,Object(f.b)(_);case 9:if(x=e.sent,E=x.cacheHit,S=x.value,!x.isError){e.next=16;break}throw m(S),S;case 16:if(!E){e.next=18;break}return e.abrupt("return",S);case 18:return e.prev=18,e.next=21,Object(s.default)({data:c,method:b,path:Object(l.a)("/google-site-kit/v1/".concat(n,"/").concat(r,"/data/").concat(a),y)});case 21:if(P=e.sent,!w){e.next=25;break}return e.next=25,Object(f.d)(_,P,{ttl:p});case 25:return e.abrupt("return",P);case 28:if(e.prev=28,e.t0=e.catch(18),!(null===e.t0||void 0===e.t0||null===(D=e.t0.data)||void 0===D?void 0:D.cacheTTL)){e.next=33;break}return e.next=33,Object(f.d)(_,e.t0,{ttl:e.t0.data.cacheTTL,isError:!0});case 33:throw Object(v.a)({method:b,datapoint:a,type:n,identifier:r,error:e.t0}),m(e.t0),t.console.error("Google Site Kit API Error","method:".concat(b),"datapoint:".concat(a),"type:".concat(n),"identifier:".concat(r),'error:"'.concat(e.t0.message,'"')),e.t0;case 37:case"end":return e.stop()}}),e,null,[[18,28]])})));return function(t,n,r){return e.apply(this,arguments)}}(),O=function(){var t=i()(o.a.mark((function t(e,n,r,a){var i,c,u,s,l,f=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=f.length>4&&void 0!==f[4]?f[4]:{},c=i.cacheTTL,u=void 0===c?3600:c,s=i.useCache,l=void 0===s?void 0:s,t.abrupt("return",y(e,n,r,{cacheTTL:u,queryParams:a,useCache:l}));case 2:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),k=function(){var t=i()(o.a.mark((function t(e,n,r,a){var i,c,u,s,l,f,d=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=d.length>4&&void 0!==d[4]?d[4]:{},c=i.method,u=void 0===c?"POST":c,s=i.queryParams,l=void 0===s?{}:s,t.next=3,y(e,n,r,{bodyParams:{data:a},method:u,queryParams:l,useCache:!1});case 3:return f=t.sent,t.next=6,w(e,n,r);case 6:return t.abrupt("return",f);case 7:case"end":return t.stop()}}),t)})));return function(e,n,r,o){return t.apply(this,arguments)}}(),j=function(){return b},w=function(){var t=i()(o.a.mark((function t(e,n,r){var a;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=h(e,n,r),t.next=3,Object(f.c)();case 3:t.sent.forEach((function(t){0===t.indexOf(a)&&Object(f.a)(t)}));case 5:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),_={invalidateCache:w,get:O,set:k,setUsingCache:function(t){return b=!!t},usingCache:j};e.a=_}).call(this,n(19))},48:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return d}));var r=n(97),o=t._googlesitekitBaseData||{},a=o.isFirstAdmin,i=o.trackingAllowed,c={isFirstAdmin:a,trackingEnabled:o.trackingEnabled,trackingID:o.trackingID,referenceSiteURL:o.referenceSiteURL,userIDHash:o.userIDHash},u=Object(r.a)(c),s=u.enableTracking,l=u.disableTracking,f=u.isTrackingEnabled,d=u.trackEvent;function p(t){t?s():l()}!0===i&&p(f())}).call(this,n(19))},49:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r,o=n(16),a=n.n(o),i=n(17),c=n.n(i),u=function(e){var n=t[e];if(!n)return!1;try{var r="__storage_test__";return n.setItem(r,r),n.removeItem(r),!0}catch(t){return t instanceof DOMException&&(22===t.code||1014===t.code||"QuotaExceededError"===t.name||"NS_ERROR_DOM_QUOTA_REACHED"===t.name)&&0!==n.length}},s=function(){function NullStorage(){a()(this,NullStorage)}return c()(NullStorage,[{key:"key",value:function(){return null}},{key:"getItem",value:function(){return null}},{key:"setItem",value:function(){}},{key:"removeItem",value:function(){}},{key:"clear",value:function(){}},{key:"length",get:function(){return 0}}]),NullStorage}(),l=function(){return r||(r=u("sessionStorage")?t.sessionStorage:u("localStorage")?t.localStorage:new s),r}}).call(this,n(19))},55:function(t,e,n){"use strict";(function(t){var r,o;n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i}));var a=(null===(r=t)||void 0===r||null===(o=r._googlesitekitBaseData)||void 0===o?void 0:o.enabledFeatures)||[],i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a;return e.includes(t)}}).call(this,n(19))},6:function(t,e,n){"use strict";(function(t){n.d(e,"g",(function(){return x})),n.d(e,"l",(function(){return E})),n.d(e,"b",(function(){return S})),n.d(e,"h",(function(){return P})),n.d(e,"j",(function(){return D})),n.d(e,"k",(function(){return I})),n.d(e,"v",(function(){return A})),n.d(e,"a",(function(){return M})),n.d(e,"r",(function(){return T})),n.d(e,"e",(function(){return R}));var r=n(7),o=n.n(r),a=n(14),i=n.n(a),c=n(5),u=n.n(c),s=n(35),l=n.n(s),f=n(15),d=n(18),p=n(58),v=n(215),g=n(48);n.d(e,"t",(function(){return g.b}));var b=n(30),h=n(65);n.d(e,"q",(function(){return h.a})),n.d(e,"u",(function(){return h.b}));var m=n(68);n.d(e,"s",(function(){return m.a}));var y=n(75);n.d(e,"c",(function(){return y.b})),n.d(e,"i",(function(){return y.c}));n(49);var O=n(76);n.d(e,"m",(function(){return O.b})),n.d(e,"o",(function(){return O.c})),n.d(e,"p",(function(){return O.d})),n.d(e,"f",(function(){return b.b}));var k=n(95);n.d(e,"n",(function(){return k.a}));var j=n(96);function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?w(Object(n),!0).forEach((function(e){u()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}n.d(e,"d",(function(){return j.a}));var x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=Object(f.get)(e,["_googlesitekitLegacyData","locale","","lang"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return e.navigator.language},E=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},S=function(t,e){if("0"===t||0===t||isNaN(t))return null;var n=(e-t)/t;return isNaN(n)||!Object(f.isFinite)(n)?null:n},P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t._googlesitekitLegacyData,n=e.modules;return n?Object.keys(n).reduce((function(t,e){return"object"!==l()(n[e])||void 0===n[e].slug||void 0===n[e].name||n[e].slug!==e?t:_(_({},t),{},u()({},e,n[e]))}),{}):{}},D=function(e,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t._googlesitekitLegacyData,o=r.admin,a=o.connectURL,i=o.adminRoot,c=r.setup.needReauthenticate,u=P(r)[e].screenID,s="pagespeed-insights"===e?{notification:"authentication_success",reAuth:void 0}:{},l=Object(p.a)(i,_({page:e&&n&&u?u:"googlesitekit-dashboard",slug:e,reAuth:n},s));if(!c)return l;var f=encodeURIComponent(Object(v.a)(l));return l=i+"?"+f,Object(p.a)(a,{redirect:l,status:n})},I=function(e,n){var r=t._googlesitekitLegacyData.admin.adminRoot;return e||(e="googlesitekit-dashboard"),n=_({page:e},n),Object(p.a)(r,n)},A=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},M=function(){var t=i()(o.a.mark((function t(e,n,r){var a,i,c,u,s=arguments;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:g.b,i=s.length>4&&void 0!==s[4]?s[4]:P,t.next=4,e.setModuleActive(n,r);case 4:return c=t.sent,(u=i())[n]&&(u[n].active=r),t.next=9,a("".concat(n,"_setup"),r?"module_activate":"module_deactivate",n);case 9:return t.abrupt("return",c);case 10:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),T=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(d.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(b.b)(t,e),1)},R=function(t){if(!t)return"";var e=t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/(\\)/g,"");return Object(f.unescape)(e)}}).call(this,n(19))},60:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(43);function o(t){return function(){t[r.a]=t[r.a]||[],t[r.a].push(arguments)}}},65:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(100),o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:r.a.sanitize(t,e)}},a=function(t){var e;return null==t||null===(e=t.replace)||void 0===e?void 0:e.call(t,/\/+$/,"")}},66:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return u}));var r=n(81),o=n.n(r),a="missing_required_scopes";function i(t){return o()(t)&&t.hasOwnProperty("code")&&("string"==typeof t.code||"number"==typeof t.code)&&t.hasOwnProperty("message")&&"string"==typeof t.message&&t.hasOwnProperty("data")}function c(t){return(null==t?void 0:t.code)===a}function u(t){var e;return"insufficientPermissions"===(null==t||null===(e=t.data)||void 0===e?void 0:e.reason)}},679:function(t,e,n){"use strict";n.r(e),function(t){var r=n(472);void 0===t.googlesitekit&&(t.googlesitekit={}),void 0===t.googlesitekit.api&&(t.googlesitekit.api=r.a),e.default=r.a}.call(this,n(19))},68:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(35),o=n.n(r),a=n(93),i=n.n(a),c=function(t){return i()(JSON.stringify(function t(e){var n={};return Object.keys(e).sort().forEach((function(r){var a=e[r];a&&"object"===o()(a)&&!Array.isArray(a)&&(a=t(a)),n[r]=a})),n}(t)))}},75:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return f}));var r=n(10),o=n.n(r),a=n(1);function i(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return c(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){u=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw a}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=null,n=null,r=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),o=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(r&&o)return!1;if(e=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),n=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===e&&null===n)return!1;var i=document.createElement("span");i.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(t));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=t;var u=document.createElement("span");return u.setAttribute("class","screen-reader-text"),u.textContent=Object(a.sprintf)(
/* translators: %d is the number of notifications */
Object(a._n)("%d notification","%d notifications",t,"google-site-kit"),t),i.appendChild(c),i.appendChild(u),e&&null===r&&e.appendChild(i),n&&null===o&&n.appendChild(i),i},s=function(){t.localStorage&&t.localStorage.clear(),t.sessionStorage&&t.sessionStorage.clear()},l=function(t){for(var e=location.search.substr(1).split("&"),n={},r=0;r<e.length;r++)n[e[r].split("=")[0]]=decodeURIComponent(e[r].split("=")[1]);return t?n.hasOwnProperty(t)?decodeURIComponent(n[t].replace(/\+/g," ")):"":n},f=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,n=new URL(e.href);if(t)return n.searchParams&&n.searchParams.get?n.searchParams.get(t):l(t);var r,a={},c=i(n.searchParams.entries());try{for(c.s();!(r=c.n()).done;){var u=o()(r.value,2),s=u[0],f=u[1];a[s]=f}}catch(t){c.e(t)}finally{c.f()}return a}}).call(this,n(19))},76:function(t,e,n){"use strict";(function(t){n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return m})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return O}));var r=n(35),o=n.n(r),a=n(5),i=n.n(a),c=n(26),u=n.n(c),s=n(15),l=n(1);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var p=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=v(t,e),r=n.formatUnit,o=n.formatDecimal;try{return r()}catch(t){return o()}},v=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=parseInt(t,10),Number.isNaN(t)&&(t=0);var n=Math.floor(t/60/60),r=Math.floor(t/60%60),o=Math.floor(t%60);return{hours:n,minutes:r,seconds:o,formatUnit:function(){var a=e.unitDisplay,i=d(d({unitDisplay:void 0===a?"short":a},u()(e,["unitDisplay"])),{},{style:"unit"});return 0===t?m(o,d(d({},i),{},{unit:"second"})):Object(l.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?m(o,d(d({},i),{},{unit:"second"})):"",r?m(r,d(d({},i),{},{unit:"minute"})):"",n?m(n,d(d({},i),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var e=Object(l.sprintf)(// translators: %s number of seconds with "s" as the abbreviated unit.
Object(l.__)("%ds","google-site-kit"),o);if(0===t)return e;var a=Object(l.sprintf)(// translators: %s number of minutes with "m" as the abbreviated unit.
Object(l.__)("%dm","google-site-kit"),r),i=Object(l.sprintf)(// translators: %s number of hours with "h" as the abbreviated unit.
Object(l.__)("%dh","google-site-kit"),n);return Object(l.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(l._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?e:"",r?a:"",n?i:"").trim()}}},g=function(t){return 1e6<=t?Math.round(t/1e5)/10:1e4<=t?Math.round(t/1e3):1e3<=t?Math.round(t/100)/10:t},b=function(t){var e={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in millions.
Object(l.__)("%sM","google-site-kit"),m(g(t),t%10==0?{}:e)):1e4<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(l.__)("%sK","google-site-kit"),m(g(t))):1e3<=t?Object(l.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(l.__)("%sK","google-site-kit"),m(g(t),t%10==0?{}:e)):m(t,{signDisplay:"never",maximumFractionDigits:1})},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(s.isFinite)(t)?t:Number(t),Object(s.isFinite)(t)||(console.warn("Invalid number",t,o()(t)),t=0);var n={};if("%"===e)n={style:"percent",maximumFractionDigits:2};else{if("s"===e)return p(t,{unitDisplay:"narrow"});e&&"string"==typeof e?n={style:"currency",currency:e}:Object(s.isPlainObject)(e)&&(n=d({},e))}var r=n,a=r.style,i=void 0===a?"metric":a;return"metric"===i?b(t):"duration"===i?p(t,e):m(t,n)},m=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?O():n,o=u()(e,["locale"]);return new Intl.NumberFormat(r,o).format(t)},y=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.locale,r=void 0===n?O():n,o=e.style,a=void 0===o?"long":o,i=e.type,c=void 0===i?"conjunction":i;if(Intl.ListFormat){var u=new Intl.ListFormat(r,{style:a,type:c});return u.format(t)}
/* translators: used between list items, there is a space after the comma. */var s=Object(l.__)(", ","google-site-kit");return t.join(s)},O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,n=Object(s.get)(e,["_googlesitekitLegacyData","locale"]);if(n){var r=n.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return e.navigator.language}}).call(this,n(19))},88:function(t,e,n){"use strict";(function(t){n.d(e,"b",(function(){return g})),n.d(e,"d",(function(){return b})),n.d(e,"a",(function(){return h})),n.d(e,"c",(function(){return m}));var r=n(7),o=n.n(r),a=n(14),i=n.n(a);n(41);function c(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var s,l="googlesitekit_".concat("1.29.0","_"),f=["sessionStorage","localStorage"],d=[].concat(f),p=function(){var e=i()(o.a.mark((function e(n){var r,a;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t[n]){e.next=3;break}return e.abrupt("return",!1);case 3:return e.prev=3,a="__storage_test__",r.setItem(a,a),r.removeItem(a),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(3),e.abrupt("return",e.t0 instanceof DOMException&&(22===e.t0.code||1014===e.t0.code||"QuotaExceededError"===e.t0.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.t0.name)&&0!==r.length);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(t){return e.apply(this,arguments)}}(),v=function(){var e=i()(o.a.mark((function e(){var n,r,a,i,u;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(null===(n=t._googlesitekitLegacyData)||void 0===n||null===(r=n.admin)||void 0===r?void 0:r.nojscache)){e.next=2;break}return e.abrupt("return",null);case 2:if(void 0!==s){e.next=25;break}a=c(d),e.prev=4,a.s();case 6:if((i=a.n()).done){e.next=16;break}if(u=i.value,!s){e.next=10;break}return e.abrupt("continue",14);case 10:return e.next=12,p(u);case 12:if(!e.sent){e.next=14;break}s=t[u];case 14:e.next=6;break;case 16:e.next=21;break;case 18:e.prev=18,e.t0=e.catch(4),a.e(e.t0);case 21:return e.prev=21,a.f(),e.finish(21);case 24:void 0===s&&(s=null);case 25:return e.abrupt("return",s);case 26:case"end":return e.stop()}}),e,null,[[4,18,21,24]])})));return function(){return e.apply(this,arguments)}}(),g=function(){var t=i()(o.a.mark((function t(e){var n,r,a,i,c,u,s;return o.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v();case 2:if(!(n=t.sent)){t.next=10;break}if(!(r=n.getItem("".concat(l).concat(e)))){t.next=10;break}if(a=JSON.parse(r),i=a.timestamp,c=a.ttl,u=a.value,s=a.isError,!i||c&&!(Math.round(Date.now()/1e3)-i<c)){t.next=10;break}return t.abrupt("return",{cacheHit:!0,value:u,isError:s});case 10:return t.abrupt("return",{cacheHit:!1,value:void 0});case 11:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),b=function(){var e=i()(o.a.mark((function e(n,r){var a,i,c,u,s,f,d,p,g=arguments;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=g.length>2&&void 0!==g[2]?g[2]:{},i=a.ttl,c=void 0===i?3600:i,u=a.timestamp,s=void 0===u?Math.round(Date.now()/1e3):u,f=a.isError,d=void 0!==f&&f,e.next=3,v();case 3:if(!(p=e.sent)){e.next=14;break}return e.prev=5,p.setItem("".concat(l).concat(n),JSON.stringify({timestamp:s,ttl:c,value:r,isError:d})),e.abrupt("return",!0);case 10:return e.prev=10,e.t0=e.catch(5),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}}),e,null,[[5,10]])})));return function(t,n){return e.apply(this,arguments)}}(),h=function(){var e=i()(o.a.mark((function e(n){var r;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:if(!(r=e.sent)){e.next=13;break}return e.prev=4,r.removeItem("".concat(l).concat(n)),e.abrupt("return",!0);case 9:return e.prev=9,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",!1);case 13:return e.abrupt("return",!1);case 14:case"end":return e.stop()}}),e,null,[[4,9]])})));return function(t){return e.apply(this,arguments)}}(),m=function(){var e=i()(o.a.mark((function e(){var n,r,a,i;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,v();case 2:if(!(n=e.sent)){e.next=14;break}for(e.prev=4,r=[],a=0;a<n.length;a++)0===(i=n.key(a)).indexOf(l)&&r.push(i.substring(l.length));return e.abrupt("return",r);case 10:return e.prev=10,e.t0=e.catch(4),t.console.warn("Encountered an unexpected storage error:",e.t0),e.abrupt("return",[]);case 14:return e.abrupt("return",[]);case 15:case"end":return e.stop()}}),e,null,[[4,10]])})));return function(){return e.apply(this,arguments)}}()}).call(this,n(19))},95:function(t,e,n){"use strict";function r(t){return t.replace(/\[([^\]]+)\]\((https?:\/\/[^\/]+\.\w+\/?.*?)\)/gi,'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function o(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function a(t){return t.replace(/\n/gi,"<br>")}function i(t){for(var e=t,n=0,i=[r,o,a];n<i.length;n++){e=(0,i[n])(e)}return e}n.d(e,"a",(function(){return i}))},96:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}},97:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return l}));var r=n(5),o=n.n(r),a=n(98),i=n(99);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var s={isFirstAdmin:!1,trackingEnabled:!1,trackingID:"",referenceSiteURL:"",userIDHash:""};function l(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,o=u(u({},s),e);return o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(a.a)(o,n),disableTracking:function(){o.trackingEnabled=!1},isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(i.a)(o,n,r)}}}).call(this,n(19))},98:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return a}));var r=n(60),o=n(43);function a(e,n){var a=Object(r.a)(n);return function(){e.trackingEnabled=!0;var n=t.document;if(!n.querySelector("script[".concat(o.b,"]"))){var r=n.createElement("script");r.setAttribute(o.b,""),r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(e.trackingID,"&l=").concat(o.a),n.head.appendChild(r),a("js",new Date),a("config",e.trackingID)}}}}).call(this,n(19))},99:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return p}));var r=n(7),o=n.n(r),a=n(5),i=n.n(a),c=n(14),u=n.n(c),s=n(60),l=n(55);function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){i()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function p(e,n,r){var a=Object(s.a)(n);return function(){var n=u()(o.a.mark((function n(i,c,u,s){var f,p,v,g,b,h,m,y;return o.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(v=e.isFirstAdmin,g=e.referenceSiteURL,b=e.trackingEnabled,h=e.trackingID,m=e.userIDHash,!(null===(f=r._gaUserPrefs)||void 0===f||null===(p=f.ioo)||void 0===p?void 0:p.call(f))){n.next=3;break}return n.abrupt("return");case 3:if(b){n.next=5;break}return n.abrupt("return");case 5:return y={send_to:h,event_category:i,event_label:u,value:s,dimension1:g,dimension2:v?"true":"false",dimension3:m,dimension4:"1.29.0",dimension5:l.a.join(", ")},n.abrupt("return",new Promise((function(e){var n=setTimeout((function(){t.console.warn('Tracking event "'.concat(c,'" (category "').concat(i,'") took too long to fire.')),e()}),1e3);a("event",c,d(d({},y),{},{event_callback:function(){clearTimeout(n),e()}}))})));case 7:case"end":return n.stop()}}),n)})));return function(t,e,r,o){return n.apply(this,arguments)}}()}}).call(this,n(19))}},[[679,1,0]]]);