(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[28],{1:function(e,t){e.exports=googlesitekit.i18n},105:function(e,t,r){"use strict";var n=r(2),i=r(39),o=Object(n.createContext)(i.a);t.a=o},108:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(11),a=r.n(o),c=r(14),u=r(21),s=function CTA(t){var r=t.title,n=t.description,i=t.ctaLink,o=t.ctaLabel,s=t.ctaLinkExternal,l=t.ctaType,d=t.error,f=t.onClick,g=t["aria-label"],p=t.children;return e.createElement("div",{className:a()("googlesitekit-cta",{"googlesitekit-cta--error":d})},r&&e.createElement("h3",{className:"googlesitekit-cta__title"},r),n&&"string"==typeof n&&e.createElement("p",{className:"googlesitekit-cta__description"},n),n&&"string"!=typeof n&&e.createElement("div",{className:"googlesitekit-cta__description"},n),o&&"button"===l&&e.createElement(c.Button,{"aria-label":g,href:i,onClick:f},o),o&&"link"===l&&e.createElement(u.a,{href:i,onClick:f,"aria-label":g,external:s,hideExternalIndicator:s,arrow:!0},o),p)};s.propTypes={title:i.a.string.isRequired,description:i.a.oneOfType([i.a.string,i.a.node]),ctaLink:i.a.string,ctaLinkExternal:i.a.bool,ctaLabel:i.a.string,ctaType:i.a.string,"aria-label":i.a.string,error:i.a.bool,onClick:i.a.func,children:i.a.node},s.defaultProps={title:"",description:"",ctaLink:"",ctaLabel:"",ctaType:"link",error:!1,onClick:function(){}},t.a=s}).call(this,r(3))},120:function(e,t,r){"use strict";function Null(){return null}r.d(t,"a",(function(){return Null}))},128:function(e,t,r){"use strict";r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return d}));var n,i=r(6),o=r.n(i),a=r(45),c=r(156),u=r(142),s=(n={},o()(n,a.c.QUARTER,3),o()(n,a.c.HALF,6),o()(n,a.c.FULL,12),n),l="googlesitekit-hidden",d=[c.a,u.a]},131:function(e,t,r){"use strict";r.r(t),r.d(t,"AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY",(function(){return n})),r.d(t,"AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY",(function(){return i})),r.d(t,"AREA_MAIN_DASHBOARD_CONTENT_PRIMARY",(function(){return o})),r.d(t,"AREA_MAIN_DASHBOARD_SPEED_PRIMARY",(function(){return a})),r.d(t,"AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY",(function(){return c})),r.d(t,"AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY",(function(){return u})),r.d(t,"AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY",(function(){return s})),r.d(t,"AREA_ENTITY_DASHBOARD_SPEED_PRIMARY",(function(){return l})),r.d(t,"AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY",(function(){return d}));var n="mainDashboardKeyMetricsPrimary",i="mainDashboardTrafficPrimary",o="mainDashboardContentPrimary",a="mainDashboardSpeedPrimary",c="mainDashboardMonetizationPrimary",u="entityDashboardTrafficPrimary",s="entityDashboardContentPrimary",l="entityDashboardSpeedPrimary",d="entityDashboardMonetizationPrimary";t.default={AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY:n,AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY:i,AREA_MAIN_DASHBOARD_CONTENT_PRIMARY:o,AREA_MAIN_DASHBOARD_SPEED_PRIMARY:a,AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY:c,AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY:u,AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY:s,AREA_ENTITY_DASHBOARD_SPEED_PRIMARY:l,AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY:d}},14:function(e,t){e.exports=googlesitekit.components},142:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return RecoverableModules}));var n=r(0),i=r.n(n),o=r(1),a=r(4),c=r.n(a),u=r(18),s=r(108),l=c.a.useSelect;function RecoverableModules(t){var r=t.moduleSlugs,n=l((function(e){var t=e(u.a).getModules();if(void 0!==t)return r.map((function(e){return t[e].name}))}));if(void 0===n)return null;var i=1===n.length?Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("%s data was previously shared by an admin who no longer has access. Please contact another admin to restore it.","google-site-kit"),n[0]):Object(o.sprintf)(
/* translators: %s: List of module names */
Object(o.__)("The data for the following modules was previously shared by an admin who no longer has access: %s. Please contact another admin to restore it.","google-site-kit"),n.join(Object(o._x)(", ","Recoverable modules","google-site-kit")));return e.createElement(s.a,{title:Object(o.__)("Data Unavailable","google-site-kit"),description:i})}RecoverableModules.propTypes={moduleSlugs:i.a.arrayOf(i.a.string).isRequired}}).call(this,r(3))},147:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(1);function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t||{},i=r.slug,o=void 0===i?"":i,a=r.name,c=void 0===a?"":a,u=r.owner,s=void 0===u?{}:u;if(!o||!c)return e;var l="",d="";return"analytics"===o?e.match(/account/i)?l=Object(n.__)("Your Google account does not have sufficient permissions for this Analytics account, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/property/i)?l=Object(n.__)("Your Google account does not have sufficient permissions for this Analytics property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"):e.match(/view/i)&&(l=Object(n.__)("Your Google account does not have sufficient permissions for this Analytics view, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")):"search-console"===o&&(l=Object(n.__)("Your Google account does not have sufficient permissions for this Search Console property, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit")),l||(l=Object(n.sprintf)(
/* translators: %s: module name */
Object(n.__)("Your Google account does not have sufficient permissions to access %s data, so you won’t be able to see stats from it on the Site Kit dashboard.","google-site-kit"),c)),s&&s.login&&(d=Object(n.sprintf)(
/* translators: %s: owner name */
Object(n.__)('This service was originally connected by the administrator "%s" — you can contact them for more information.',"google-site-kit"),s.login)),d||(d=Object(n.__)("This service was originally connected by an administrator — you can contact them for more information.","google-site-kit")),"".concat(l," ").concat(d)}},154:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(2),i=r(4),o=r.n(i),a=r(45),c=o.a.useDispatch;function u(e,t,r){var i=c(a.a),o=i.setWidgetState,u=i.unsetWidgetState;Object(n.useEffect)((function(){return o(e,t,r),function(){u(e,t,r)}}),[e,t,r,o,u])}},156:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportZero}));var n=r(0),i=r.n(n),o=r(1),a=r(4),c=r.n(a),u=r(18),s=r(108),l=c.a.useSelect;function ReportZero(t){var r=t.moduleSlug,n=l((function(e){return e(u.a).getModule(r)}));return e.createElement(s.a,{title:Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("%s Gathering Data","google-site-kit"),null==n?void 0:n.name),description:Object(o.sprintf)(
/* translators: %s: Module name */
Object(o.__)("%s data is not yet available, please check back later","google-site-kit"),null==n?void 0:n.name)})}ReportZero.propTypes={moduleSlug:i.a.string.isRequired}}).call(this,r(3))},16:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return o}));var n="core/site",i="primary",o="secondary"},170:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportError}));var n=r(6),i=r.n(n),o=r(0),a=r.n(o),c=r(13),u=r(2),s=r(1),l=r(4),d=r.n(l),f=r(18),g=r(50),p=r(147),b=r(81),v=r(82),O=r(108),m=r(206),y=r(40);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var A=d.a.useSelect;function ReportError(t){var r,n=t.moduleSlug,i=t.error,o=Object(y.a)(),a=A((function(e){return e(f.a).getModule(n)})),l=Array.isArray(i)?i:[i],d=function(e){return Object(g.e)(e)?o?(r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Access lost to %s","google-site-kit"),null==a?void 0:a.name),Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("The administrator sharing this module with you has lost access to the %s service, so you won’t be able to see stats from it on the Site Kit dashboard. You can contact them or another administrator to restore access.","google-site-kit"),null==a?void 0:a.name)):(r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Insufficient permissions in %s","google-site-kit"),null==a?void 0:a.name),Object(p.a)(e.message,a)):Object(g.b)(e)},h=Object(c.uniqWith)(l.map((function(e){var t;return _(_({},e),{},{message:d(e),reconnectURL:null===(t=e.data)||void 0===t?void 0:t.reconnectURL})})),(function(e,t){return e.message===t.message&&e.reconnectURL===t.reconnectURL})),E=l.some((function(e){return Object(g.e)(e)}));E||1!==h.length?!E&&h.length>1&&(r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data errors in %s","google-site-kit"),null==a?void 0:a.name)):r=Object(s.sprintf)(
/* translators: %s: module name */
Object(s.__)("Data error in %s","google-site-kit"),null==a?void 0:a.name);var T=e.createElement(u.Fragment,null,h.map((function(t){var r,n=null==i||null===(r=i.data)||void 0===r?void 0:r.reconnectURL;return n?e.createElement(v.a,{key:t.message,message:t.message,reconnectURL:n}):e.createElement("p",{key:t.message},b.a.sanitize(t.message,{ALLOWED_TAGS:[]}))})));return e.createElement(O.a,{title:r,description:T,error:!0},e.createElement(m.a,{moduleSlug:n,error:i}))}ReportError.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.oneOfType([a.a.arrayOf(a.a.object),a.a.object]).isRequired}}).call(this,r(3))},172:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return p}));var n=r(23),i=r.n(n),o=r(72),a=r.n(o),c=r(236),u=r(291),s=r(292),l=r(293),d=r(237),f=a()((function(e){return{Widget:g(e)(c.a),WidgetRecoverableModules:g(e)(d.a),WidgetReportZero:g(e)(u.a),WidgetReportError:g(e)(s.a),WidgetNull:g(e)(l.a)}}));function g(t){return function(r){var n=function WithWidgetSlug(n){return e.createElement(r,i()({},n,{widgetSlug:t}))};return n.displayName="WithWidgetSlug",(r.displayName||r.name)&&(n.displayName+="(".concat(r.displayName||r.name,")")),n}}var p=function(t){var r=f(t);return function(t){var n=function DecoratedComponent(n){return e.createElement(t,i()({},n,r))};return n.displayName="WithWidgetComponentProps",(t.displayName||t.name)&&(n.displayName+="(".concat(t.displayName||t.name,")")),n}}}).call(this,r(3))},18:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="core/modules",i="insufficient_module_dependencies"},19:function(e,t,r){"use strict";var n=r(2),i=r(69);t.a=function(){return Object(n.useContext)(i.b)}},206:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportErrorActions}));var n=r(6),i=r.n(n),o=r(0),a=r.n(o),c=r(2),u=r(56),s=r(1),l=r(4),d=r.n(l),f=r(14),g=r(16),p=r(18),b=r(50),v=r(40),O=r(21);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var y=d.a.useSelect,h=d.a.useDispatch;function ReportErrorActions(t){var r=t.moduleSlug,n=t.error,o=Object(v.a)(),a=y((function(e){return e(p.a).getModuleStoreName(r)})),l=y((function(e){var t;return"function"==typeof(null===(t=e(a))||void 0===t?void 0:t.getServiceEntityAccessURL)?e(a).getServiceEntityAccessURL():null})),d=Array.isArray(n)?n:[n],_=d.filter((function(e){return Object(b.d)(e,e.selectorData)&&"getReport"===e.selectorData.name})),A=!!_.length,E=y((function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?m(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},A?_[0]:d[0]);return Object(b.e)(t)&&(t.code="".concat(r,"_insufficient_permissions")),e(g.c).getErrorTroubleshootingLinkURL(t)})),T=h(),j=d.some((function(e){return Object(b.e)(e)})),R=Object(c.useCallback)((function(){_.forEach((function(e){var t=e.selectorData;T(t.storeName).invalidateResolution(t.name,t.args)}))}),[T,_]),S=l&&j&&!o;return e.createElement("div",{className:"googlesitekit-report-error-actions"},S&&e.createElement(f.Button,{href:l,target:"_blank"},Object(s.__)("Request access","google-site-kit")),A?e.createElement(c.Fragment,null,e.createElement(f.Button,{onClick:R},Object(s.__)("Retry","google-site-kit")),e.createElement("span",{className:"googlesitekit-error-retry-text"},Object(u.a)(Object(s.__)("Retry didn’t work? <HelpLink />","google-site-kit"),{HelpLink:e.createElement(O.a,{href:E,external:!0},Object(s.__)("Get help","google-site-kit"))}))):e.createElement(O.a,{href:E,external:!0},Object(s.__)("Get help","google-site-kit")))}ReportErrorActions.propTypes={moduleSlug:a.a.string.isRequired,error:a.a.oneOfType([a.a.arrayOf(a.a.object),a.a.object]).isRequired}}).call(this,r(3))},21:function(e,t,r){"use strict";(function(e){var n=r(23),i=r.n(n),o=r(24),a=r.n(o),c=r(0),u=r.n(c),s=r(11),l=r.n(s),d=r(126),f=r(1),g=r(2),p=Object(g.forwardRef)((function(t,r){var n,o=t["aria-label"],c=t.arrow,u=void 0!==c&&c,s=t.back,g=void 0!==s&&s,p=t.caps,b=void 0!==p&&p,v=t.children,O=t.className,m=void 0===O?"":O,y=t.danger,h=void 0!==y&&y,_=t.disabled,A=void 0!==_&&_,E=t.external,T=void 0!==E&&E,j=t.hideExternalIndicator,R=void 0!==j&&j,S=t.href,w=void 0===S?"":S,D=t.inverse,N=void 0!==D&&D,k=t.onClick,I=t.small,P=void 0!==I&&I,C=t.standalone,M=void 0!==C&&C,W=t.to,L=a()(t,["aria-label","arrow","back","caps","children","className","danger","disabled","external","hideExternalIndicator","href","inverse","onClick","small","standalone","to"]),B=w||W||!k?W?"ROUTER_LINK":T?"EXTERNAL_LINK":"LINK":A?"BUTTON_DISABLED":"BUTTON",H="BUTTON"===B||"BUTTON_DISABLED"===B?"button":"ROUTER_LINK"===B?d.b:"a",Y=("EXTERNAL_LINK"===B&&(n=Object(f._x)("(opens in a new tab)","screen reader text","google-site-kit")),"BUTTON_DISABLED"===B&&(n=Object(f._x)("(disabled)","screen reader text","google-site-kit")),n?o?"".concat(o," ").concat(n):"string"==typeof v?"".concat(v," ").concat(n):void 0:o);return e.createElement(H,i()({"aria-label":Y,className:l()("googlesitekit-cta-link",m,{"googlesitekit-cta-link--arrow":u,"googlesitekit-cta-link--external":T&&!R,"googlesitekit-cta-link--inverse":N,"googlesitekit-cta-link--back":g,"googlesitekit-cta-link--small":P,"googlesitekit-cta-link--caps":b,"googlesitekit-cta-link--danger":h,"googlesitekit-cta-link--disabled":A,"googlesitekit-cta-link--standalone":M}),disabled:A,href:"LINK"!==B&&"EXTERNAL_LINK"!==B||A?void 0:w,onClick:k,rel:"EXTERNAL_LINK"===B?"noopener noreferrer":void 0,ref:r,target:"EXTERNAL_LINK"===B?"_blank":void 0,to:W},L),v)}));p.propTypes={arrow:u.a.bool,back:u.a.bool,caps:u.a.bool,children:u.a.node,className:u.a.string,danger:u.a.bool,disabled:u.a.bool,external:u.a.bool,hideExternalIndicator:u.a.bool,href:u.a.string,inverse:u.a.bool,onClick:u.a.func,small:u.a.bool,standalone:u.a.bool,to:u.a.string},t.a=p}).call(this,r(3))},22:function(e,t,r){"use strict";r.d(t,"l",(function(){return n})),r.d(t,"j",(function(){return i})),r.d(t,"m",(function(){return o})),r.d(t,"k",(function(){return a})),r.d(t,"q",(function(){return c})),r.d(t,"g",(function(){return u})),r.d(t,"p",(function(){return s})),r.d(t,"h",(function(){return l})),r.d(t,"o",(function(){return d})),r.d(t,"i",(function(){return f})),r.d(t,"r",(function(){return g})),r.d(t,"n",(function(){return p})),r.d(t,"b",(function(){return b})),r.d(t,"e",(function(){return v})),r.d(t,"a",(function(){return O})),r.d(t,"d",(function(){return m})),r.d(t,"c",(function(){return y})),r.d(t,"f",(function(){return h}));var n="mainDashboard",i="entityDashboard",o="mainDashboardViewOnly",a="entityDashboardViewOnly",c="userInput",u="activation",s="splash",l="adminBar",d="settings",f="adBlockingRecovery",g="wpDashboard",p="moduleSetup",b="key-metrics",v="traffic",O="content",m="speed",y="monetization",h=[n,i,o,a,c,s,d,p]},236:function(e,t,r){"use strict";(function(e){var n=r(11),i=r.n(n),o=r(0),a=r.n(o),c=function Widget(t){var r=t.children,n=t.className,o=t.widgetSlug,a=t.noPadding,c=t.Header,u=t.Footer;return e.createElement("div",{className:i()("googlesitekit-widget","googlesitekit-widget--".concat(o),{"googlesitekit-widget--no-padding":a},{"googlesitekit-widget--with-header":c},n)},c&&e.createElement("div",{className:"googlesitekit-widget__header"},e.createElement(c,null)),e.createElement("div",{className:"googlesitekit-widget__body"},r),u&&e.createElement("div",{className:"googlesitekit-widget__footer"},e.createElement(u,null)))};c.defaultProps={children:void 0,noPadding:!1},c.propTypes={children:a.a.node,widgetSlug:a.a.string.isRequired,noPadding:a.a.bool,Header:a.a.elementType,Footer:a.a.elementType},t.a=c}).call(this,r(3))},237:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return WidgetRecoverableModules}));var n=r(6),i=r.n(n),o=r(23),a=r.n(o),c=r(26),u=r.n(c),s=r(24),l=r.n(s),d=r(0),f=r.n(d),g=r(2),p=r(154),b=r(142);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function WidgetRecoverableModules(t){var r=t.widgetSlug,n=t.moduleSlugs,i=l()(t,["widgetSlug","moduleSlugs"]),o=Object(g.useMemo)((function(){return{moduleSlug:u()(n).sort().join(","),moduleSlugs:n}}),[n]);return Object(p.a)(r,b.a,o),e.createElement(b.a,a()({moduleSlugs:n},i))}WidgetRecoverableModules.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({widgetSlug:f.a.string.isRequired},b.a.propTypes)}).call(this,r(3))},242:function(e,t,r){"use strict";r.d(t,"d",(function(){return f})),r.d(t,"b",(function(){return p})),r.d(t,"c",(function(){return b.a})),r.d(t,"a",(function(){return c.a})),r.d(t,"f",(function(){return v})),r.d(t,"e",(function(){return s}));var n=r(15),i=r.n(n),o=r(26),a=r.n(o),c=r(128),u=r(120);function s(e){return!!e&&e.Component===u.a}function l(e,t){if(9!==t)return[e,t];for(var r=(e=a()(e)).length-1;0!==t&&r>=0;)3===e[r]?(t-=3,e[r]=4):6===e[r]&&(t-=6,e[r]=8),r--;return[e,t]}function d(e,t){return(Array.isArray(t.width)?t.width:[t.width]).map((function(t){return{counter:e+c.c[t],width:t}}))}function f(e,t){var r=[],n=[];if(!(null==e?void 0:e.length))return{columnWidths:r,rowIndexes:n};var o=0,a=0,u=function(e,t){return e.counter-t.counter},f=function(e,t){var r=e.counter;return t.counter-r},g=function(e){return e.counter<=12};if(e.forEach((function(p,b){if(s(t[p.slug]))return r.push(0),void n.push(a);var v=d(o,p),O=function(e,t,r){for(;++e<t.length;)if(!s(r[t[e].slug]))return t[e];return null}(b,e,t);null!==O&&0!==d(v.sort(u)[0].counter,O).filter(g).length||v.some(g)&&(v=(v=v.sort(f)).filter(g));var m=v[0].width;if(n.push(a),(o+=c.c[m])>12){if(o-=c.c[m],n[b]++,9===o){var y=l(r,o),h=i()(y,2);r=h[0],o=h[1]}o=c.c[m],a++}else 12===o&&(o=0,a++);r.push(c.c[m])})),9===o){var p=l(r,o),b=i()(p,2);r=b[0],o=b[1]}return{columnWidths:r,rowIndexes:n}}var g=r(13);function p(e,t,r){var n=r.columnWidths,i=r.rowIndexes,o=[],u=a()(n);if(!(null==e?void 0:e.length))return{gridColumnWidths:u,overrideComponents:o};var s=null,l=-1,d=[];if(function(e,t){for(var r={},n=0;n<e.length;n++){var i,o=e[n],a=null==t?void 0:t[o.slug],u=null==a?void 0:a.Component,s=null==a||null===(i=a.metadata)||void 0===i?void 0:i.moduleSlug,l=c.b.includes(u);if(!u||!s||!l)return!1;if(r[s]){if(r[s]!==u)return!1}else r[s]=u}return!(Object.keys(r).length>1)}(e,t)){var f=Array.from({length:e.length-1}).fill(0);return{overrideComponents:[t[e[0].slug]],gridColumnWidths:[12].concat(a()(f))}}return e.forEach((function(r,a){var c,f,p,b,v;if(o.push(null),s=t[r.slug],l=i[a],s)if(f=s,p=t[null===(c=e[a+1])||void 0===c?void 0:c.slug],b=l,v=i[a+1],b===v&&Object(g.isEqual)(f,p))d.push(n[a]),u[a]=0;else if(d.length>0){d.push(n[a]);var O=d.reduce((function(e,t){return e+t}),0);o[a]=s,u[a]=O,d=[]}})),{gridColumnWidths:u,overrideComponents:o}}var b=r(172);function v(e){return(Array.isArray(e)?e:[e]).filter((function(e){return"string"==typeof e&&e.length>0}))}},291:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return WidgetReportZero}));var n=r(6),i=r.n(n),o=r(23),a=r.n(o),c=r(24),u=r.n(c),s=r(0),l=r.n(s),d=r(2),f=r(154),g=r(156);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function WidgetReportZero(t){var r=t.widgetSlug,n=t.moduleSlug,i=u()(t,["widgetSlug","moduleSlug"]),o=Object(d.useMemo)((function(){return{moduleSlug:n}}),[n]);return Object(f.a)(r,g.a,o),e.createElement(g.a,a()({moduleSlug:n},i))}WidgetReportZero.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({widgetSlug:l.a.string.isRequired},g.a.propTypes)}).call(this,r(3))},292:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return WidgetReportError}));var n=r(6),i=r.n(n),o=r(24),a=r.n(o),c=r(0),u=r.n(c),s=r(170);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function WidgetReportError(t){t.widgetSlug;var r=a()(t,["widgetSlug"]);return e.createElement(s.a,r)}WidgetReportError.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({widgetSlug:u.a.string.isRequired},s.a.propTypes)}).call(this,r(3))},293:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return WidgetNull}));var n=r(6),i=r.n(n),o=r(0),a=r.n(o),c=r(154),u=r(120);function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var l={};function WidgetNull(t){var r=t.widgetSlug;return Object(c.a)(r,u.a,l),e.createElement(u.a,null)}WidgetNull.propTypes=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({widgetSlug:a.a.string.isRequired},u.a.propTypes)}).call(this,r(3))},299:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(391);function i(e){return Object(n.a)(e)}},33:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i}));var n="_googlesitekitDataLayer",i="data-googlesitekit-gtag"},35:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return y})),r.d(t,"b",(function(){return m}));var n=r(91),i=e._googlesitekitTrackingData||{},o=i.activeModules,a=void 0===o?[]:o,c=i.isSiteKitScreen,u=i.trackingEnabled,s=i.trackingID,l=i.referenceSiteURL,d=i.userIDHash,f=i.isAuthenticated,g={activeModules:a,trackingEnabled:u,trackingID:s,referenceSiteURL:l,userIDHash:d,isSiteKitScreen:c,userRoles:i.userRoles,isAuthenticated:f,pluginVersion:"1.102.0"},p=Object(n.a)(g),b=p.enableTracking,v=p.disableTracking,O=(p.isTrackingEnabled,p.initializeSnippet),m=p.trackEvent;function y(e){e?b():v()}c&&u&&O()}).call(this,r(25))},38:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=r(15),i=r.n(n),o=r(10),a=r.n(o),c=r(41),u=r(48),s=function(e){a()(Object(u.a)(e),c.e);var t=e.split("-"),r=i()(t,3),n=r[0],o=r[1],s=r[2];return new Date(n,o-1,s)}},39:function(e,t,r){"use strict";(function(e){var n,i;r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return a}));var o=new Set((null===(n=e)||void 0===n||null===(i=n._googlesitekitBaseData)||void 0===i?void 0:i.enabledFeatures)||[]),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o;return t instanceof Set&&t.has(e)}}).call(this,r(25))},4:function(e,t){e.exports=googlesitekit.data},40:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(22),i=r(19);function o(){var e=Object(i.a)();return e===n.m||e===n.k}},41:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"e",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return c}));var n="Date param must construct to a valid date instance or be a valid date instance itself.",i="Invalid dateString parameter, it must be a string.",o='Invalid date range, it must be a string with the format "last-x-days".',a=3600,c=86400},42:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return e instanceof Date&&!isNaN(e)}},45:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o}));var n={BOXES:"boxes",COMPOSITE:"composite"},i={QUARTER:"quarter",HALF:"half",FULL:"full"},o="core/widgets"},47:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(2),i=r(105),o=r(39),a=function(e){var t=Object(n.useContext)(i.a);return Object(o.b)(e,t)}},48:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(42),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="string"==typeof e;if(!t)return!1;var r=e.split("-");return 3===r.length&&Object(n.a)(new Date(e))}},50:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"f",(function(){return c})),r.d(t,"e",(function(){return u})),r.d(t,"c",(function(){return s})),r.d(t,"d",(function(){return l})),r.d(t,"b",(function(){return d}));r(13);var n=r(1),i="missing_required_scopes",o="insufficientPermissions",a="forbidden";function c(e){return(null==e?void 0:e.code)===i}function u(e){var t;return[o,a].includes(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}function s(e){var t;return!!(null==e||null===(t=e.data)||void 0===t?void 0:t.reconnectURL)}function l(e,t){return!(!(null==t?void 0:t.storeName)||u(e)||c(e)||s(e))}function d(e){return"internal_server_error"===(null==e?void 0:e.code)?Object(n.__)("There was a critical error on this website while fetching data.","google-site-kit"):"invalid_json"===(null==e?void 0:e.code)?Object(n.__)("The server provided an invalid response.","google-site-kit"):null==e?void 0:e.message}},55:function(e,t,r){"use strict";r.d(t,"b",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return u}));var n=r(96);function i(e){try{return new URL(e).pathname}catch(e){}return null}function o(e,t){try{return new URL(t,e).href}catch(e){}return("string"==typeof e?e:"")+("string"==typeof t?t:"")}function a(e){return"string"!=typeof e?e:e.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function c(e){return/^#\w[A-Za-z0-9-_]*$/.test(e)}function u(e,t){if(!Object(n.a)(e))return e;if(e.length<=t)return e;var r=new URL(e),i=e.replace(r.origin,"");if(i.length<t)return i;var o=i.length-Math.floor(t)+1;return"…"+i.substr(o)}},57:function(e,t,r){"use strict";r.d(t,"a",(function(){return v})),r.d(t,"b",(function(){return O}));var n=r(6),i=r.n(n),o=r(32),a=r.n(o),c=r(124),u=r(10),s=r.n(u),l=r(86),d=r.n(l),f=r(8);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t){if(t&&Array.isArray(t)){var r=t.map((function(e){return"object"===a()(e)?Object(f.y)(e):e}));return"".concat(e,"::").concat(d()(JSON.stringify(r)))}return e}var v={receiveError:function(e,t,r){return s()(e,"error is required."),t&&s()(r&&Array.isArray(r),"args is required (and must be an array) when baseName is specified."),{type:"RECEIVE_ERROR",payload:{error:e,baseName:t,args:r}}},clearError:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r.clearMatchingLegacyError,i=void 0!==n&&n;return e&&s()(t&&Array.isArray(t),"args is required (and must be an array) when baseName is specified."),{type:"CLEAR_ERROR",payload:{baseName:e,args:t,clearMatchingLegacyError:i}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function O(e){s()(e,"storeName must be defined.");var t={errors:{},errorArgs:{},error:void 0};var r={getErrorForSelector:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];s()(n,"selectorName is required.");var o=r.getError(t,n,i);if(o)return p(p({},o),{},{selectorData:{storeName:e,name:n,args:i}})},getErrorForAction:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return s()(t,"actionName is required."),r.getError(e,t,n)},getError:function(e,t,r){var n=e.error,i=e.errors;return t||r?(s()(t,"baseName is required."),i[b(t,r)]):n},getErrors:function(e){var t=new Set(Object.values(e.errors));return void 0!==e.error&&t.add(e.error),Array.from(t)},getMetaDataForError:function(e,t){var r=Object.keys(e.errors).find((function(r){return e.errors[r]===t}));return r?{baseName:r.substring(0,r.indexOf("::")),args:e.errorArgs[r]}:null},getSelectorDataForError:Object(c.b)((function(t){return function(r,n){var i=t(e).getMetaDataForError(n);if(i){var o=i.baseName,a=i.args;if(!!t(e)[o])return{storeName:e,name:o,args:a}}return null}})),hasErrors:function(e){return r.getErrors(e).length>0}};return{initialState:t,actions:v,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var o=n.baseName,a=n.args,c=n.error;if(o){var u=b(o,a);return p(p({},e),{},{errors:p(p({},e.errors||{}),{},i()({},u,c)),errorArgs:p(p({},e.errorArgs||{}),{},i()({},u,a))})}return p(p({},e),{},{error:c});case"CLEAR_ERROR":var s=n.baseName,l=n.args,d=p({},e);if(s){var f=b(s,l);d.errors=p({},e.errors||{}),d.errorArgs=p({},e.errorArgs||{}),n.clearMatchingLegacyError&&d.error===d.errors[f]&&delete d.error,delete d.errors[f],delete d.errorArgs[f]}else d.error=void 0;return d;case"CLEAR_ERRORS":var g=n.baseName,v=p({},e);if(g)for(var O in v.errors=p({},e.errors||{}),v.errorArgs=p({},e.errorArgs||{}),v.errors)(O===g||O.startsWith("".concat(g,"::")))&&(delete v.errors[O],delete v.errorArgs[O]);else v.errors={},v.errorArgs={},v.error=void 0;return v;default:return e}},resolvers:{},selectors:r}}},583:function(e,t,r){"use strict";r.d(t,"b",(function(){return v})),r.d(t,"c",(function(){return j})),r.d(t,"a",(function(){return R}));var n=r(45),i=r(4),o=r.n(i),a=r(705),c=r(707),u=r(10),s=r.n(u),l={selectors:{isWidgetContextActive:(0,o.a.createRegistrySelector)((function(e){return function(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};s()(r,"contextSlug is required to check a widget context is active.");var o=i.modules;return e(n.a).getWidgetAreas(r).some((function(t){return e(n.a).isWidgetAreaActive(t.slug,{modules:o})}))}}))}},d=r(16),f=r(9),g={selectors:{getAnswerBasedMetrics:(0,o.a.createRegistrySelector)((function(e){return function(){var t,r,n=e(f.a).getUserInputSettings();if(void 0!==n){switch(null==n||null===(t=n.purpose)||void 0===t||null===(r=t.values)||void 0===r?void 0:r[0]){case"publish_blog":case"publish_news":return["kmAnalyticsLoyalVisitors","kmAnalyticsNewVisitors","kmAnalyticsTopTrafficSource","kmAnalyticsEngagedTrafficSource"];case"monetize_content":return["kmAnalyticsPopularContent","kmAnalyticsEngagedTrafficSource","kmAnalyticsNewVisitors","kmAnalyticsTopTrafficSource"];case"sell_products_or_service":return[e(d.c).getPostTypes().some((function(e){return"product"===e.slug}))?"kmTopPopularProducts":"kmAnalyticsPopularContent","kmAnalyticsEngagedTrafficSource","kmSearchConsolePopularKeywords","kmAnalyticsTopTrafficSource"];case"share_portfolio":return["kmAnalyticsNewVisitors","kmAnalyticsTopTrafficSource","kmAnalyticsEngagedTrafficSource","kmSearchConsolePopularKeywords"];default:return[]}}}}))}},p=r(57),b=o.a.combineStores(o.a.commonStore,a.a,c.a,l,g,Object(p.b)(n.a)),v=function(e){e.registerStore(n.a,b)},O=r(23),m=r.n(O),y=r(1),h=r(67),_=r(131),A=r(708),E=m()({},h),T=m()({},_);function j(e){var t=E.CONTEXT_MAIN_DASHBOARD_KEY_METRICS,r=E.CONTEXT_MAIN_DASHBOARD_TRAFFIC,i=E.CONTEXT_MAIN_DASHBOARD_CONTENT,o=E.CONTEXT_MAIN_DASHBOARD_SPEED,a=E.CONTEXT_MAIN_DASHBOARD_MONETIZATION,c=E.CONTEXT_ENTITY_DASHBOARD_TRAFFIC,u=E.CONTEXT_ENTITY_DASHBOARD_CONTENT,s=E.CONTEXT_ENTITY_DASHBOARD_SPEED,l=E.CONTEXT_ENTITY_DASHBOARD_MONETIZATION,d=T.AREA_MAIN_DASHBOARD_KEY_METRICS_PRIMARY,f=T.AREA_MAIN_DASHBOARD_TRAFFIC_PRIMARY,g=T.AREA_MAIN_DASHBOARD_CONTENT_PRIMARY,p=T.AREA_MAIN_DASHBOARD_SPEED_PRIMARY,b=T.AREA_MAIN_DASHBOARD_MONETIZATION_PRIMARY,v=T.AREA_ENTITY_DASHBOARD_TRAFFIC_PRIMARY,O=T.AREA_ENTITY_DASHBOARD_CONTENT_PRIMARY,m=T.AREA_ENTITY_DASHBOARD_SPEED_PRIMARY,h=T.AREA_ENTITY_DASHBOARD_MONETIZATION_PRIMARY;e.registerWidgetArea(d,{title:Object(y.__)("Key metrics","google-site-kit"),subtitle:Object(y.__)("Track progress towards your goals with tailored metrics","google-site-kit"),style:n.b.BOXES,priority:1},t),e.registerWidgetArea(f,{title:Object(y.__)("Find out how your audience is growing","google-site-kit"),subtitle:Object(y.__)("Track your site’s traffic over time","google-site-kit"),style:n.b.BOXES,priority:1},r),e.registerWidgetArea(g,{title:Object(y.__)("See how your content is doing","google-site-kit"),subtitle:Object(y.__)("Keep track of your most popular pages and how people found them from Search","google-site-kit"),style:n.b.BOXES,priority:1},i),e.registerWidgetArea(p,{title:Object(y.__)("Find out how visitors experience your site","google-site-kit"),subtitle:Object(y.__)("Keep track of how fast your pages are and get specific recommendations on what to improve","google-site-kit"),style:n.b.BOXES,priority:1},o),e.registerWidgetArea(b,{title:Object(y.__)("Find out how much you’re earning from your content","google-site-kit"),subtitle:Object(y.__)("Track your AdSense revenue over time","google-site-kit"),style:n.b.BOXES,priority:1},a),e.registerWidgetArea(v,{title:Object(y.__)("Find out how your audience is growing","google-site-kit"),subtitle:Object(y.__)("Track traffic to this page over time","google-site-kit"),style:n.b.BOXES,priority:1},c),e.registerWidgetArea(O,{title:Object(y.__)("See how your content is doing","google-site-kit"),subtitle:Object(y.__)("Understand how people found this page from Search","google-site-kit"),style:n.b.BOXES,priority:1},u),e.registerWidgetArea(m,{title:Object(y.__)("Find out how visitors experience this page","google-site-kit"),subtitle:Object(y.__)("Keep track of how fast your page is and get specific recommendations on what to improve","google-site-kit"),style:n.b.BOXES,priority:1},s),e.registerWidgetArea(h,{title:Object(y.__)("Find out how much you’re earning from your content","google-site-kit"),subtitle:Object(y.__)("Track your AdSense revenue over time","google-site-kit"),style:n.b.BOXES,priority:1},l),e.registerWidget("keyMetricsSetupCTA",{Component:A.a,width:[e.WIDGET_WIDTHS.FULL],priority:1,wrapWidget:!1,modules:["search-console"]},[d])}function R(e){var t=e.dispatch,r=e.select,i={WIDGET_AREA_STYLES:n.b,WIDGET_WIDTHS:n.c,registerWidgetArea:function(e,r,o){t(n.a).registerWidgetArea(e,r),o&&i.assignWidgetArea(e,o)},registerWidget:function(e,r,o){t(n.a).registerWidget(e,r),o&&i.assignWidget(e,o)},assignWidgetArea:function(e,r){t(n.a).assignWidgetArea(e,r)},assignWidget:function(e,r){t(n.a).assignWidget(e,r)},isWidgetAreaRegistered:function(e){return r(n.a).isWidgetAreaRegistered(e)},isWidgetRegistered:function(e){return r(n.a).isWidgetRegistered(e)}};return i}},59:function(e,t,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(33);function i(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},63:function(e,t,r){"use strict";r.d(t,"d",(function(){return n.e})),r.d(t,"c",(function(){return n.d})),r.d(t,"b",(function(){return n.b})),r.d(t,"a",(function(){return n.a})),r.d(t,"f",(function(){return c})),r.d(t,"g",(function(){return s})),r.d(t,"h",(function(){return l})),r.d(t,"i",(function(){return d.a})),r.d(t,"e",(function(){return g})),r.d(t,"j",(function(){return u.a}));var n=r(41),i=r(10),o=r.n(i),a=r(42),c=function(e){o()(Object(a.a)(e),n.c);var t="".concat(e.getMonth()+1),r="".concat(e.getDate());return[e.getFullYear(),t.length<2?"0".concat(t):t,r.length<2?"0".concat(r):r].join("-")},u=r(38),s=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r=Object(u.a)(e);return r.setDate(r.getDate()-t),c(r)},l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("-");return 3===t.length&&"last"===t[0]&&!Number.isNaN(t[1])&&!Number.isNaN(parseFloat(t[1]))&&"days"===t[2]},d=r(48);var f=r(1);function g(){var e=function(e){return Object(f.sprintf)(
/* translators: %s: number of days */
Object(f._n)("Last %s day","Last %s days",e,"google-site-kit"),e)};return{"last-7-days":{slug:"last-7-days",label:e(7),days:7},"last-14-days":{slug:"last-14-days",label:e(14),days:14},"last-28-days":{slug:"last-28-days",label:e(28),days:28},"last-90-days":{slug:"last-90-days",label:e(90),days:90}}}},67:function(e,t,r){"use strict";r.r(t),r.d(t,"CONTEXT_MAIN_DASHBOARD_KEY_METRICS",(function(){return n})),r.d(t,"CONTEXT_MAIN_DASHBOARD_TRAFFIC",(function(){return i})),r.d(t,"CONTEXT_MAIN_DASHBOARD_CONTENT",(function(){return o})),r.d(t,"CONTEXT_MAIN_DASHBOARD_SPEED",(function(){return a})),r.d(t,"CONTEXT_MAIN_DASHBOARD_MONETIZATION",(function(){return c})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_TRAFFIC",(function(){return u})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_CONTENT",(function(){return s})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_SPEED",(function(){return l})),r.d(t,"CONTEXT_ENTITY_DASHBOARD_MONETIZATION",(function(){return d}));var n="mainDashboardKeyMetrics",i="mainDashboardTraffic",o="mainDashboardContent",a="mainDashboardSpeed",c="mainDashboardMonetization",u="entityDashboardTraffic",s="entityDashboardContent",l="entityDashboardSpeed",d="entityDashboardMonetization";t.default={CONTEXT_MAIN_DASHBOARD_KEY_METRICS:n,CONTEXT_MAIN_DASHBOARD_TRAFFIC:i,CONTEXT_MAIN_DASHBOARD_CONTENT:o,CONTEXT_MAIN_DASHBOARD_SPEED:a,CONTEXT_MAIN_DASHBOARD_MONETIZATION:c,CONTEXT_ENTITY_DASHBOARD_TRAFFIC:u,CONTEXT_ENTITY_DASHBOARD_CONTENT:s,CONTEXT_ENTITY_DASHBOARD_SPEED:l,CONTEXT_ENTITY_DASHBOARD_MONETIZATION:d}},68:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(11),a=r.n(o);function ChangeArrow(t){var r=t.direction,n=t.invertColor,i=t.width,o=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:i,height:o,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M5.625 10L5.625 2.375L9.125 5.875L10 5L5 -1.76555e-07L-2.7055e-07 5L0.875 5.875L4.375 2.375L4.375 10L5.625 10Z",fill:"currentColor"}))}ChangeArrow.propTypes={direction:i.a.string,invertColor:i.a.bool,width:i.a.number,height:i.a.number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9},t.a=ChangeArrow}).call(this,r(3))},69:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(2),i=Object(n.createContext)(""),o=(i.Consumer,i.Provider);t.b=i},70:function(e,t,r){"use strict";r.d(t,"a",(function(){return a})),r.d(t,"b",(function(){return c}));var n=r(32),i=r.n(n),o=r(81),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:o.a.sanitize(e,t)}};function c(e){var t,r="object"===i()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},705:function(e,t,r){"use strict";(function(e){var n=r(6),i=r.n(n),o=r(10),a=r.n(o),c=r(4),u=r.n(c),s=r(45),l=r(706),d=r(299);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var p=u.a.createRegistrySelector,b=Object.keys(s.b).map((function(e){return"WIDGET_AREA_STYLES.".concat(e)})).join(", "),v={assignWidgetArea:function(e,t){return{payload:{slug:e,contextSlugs:"string"==typeof t?[t]:t},type:"ASSIGN_WIDGET_AREA"}},registerWidgetArea:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.priority,n=void 0===r?10:r,i=t.style,o=void 0===i?s.b.BOXES:i,c=t.title,u=t.subtitle,l=t.Icon;return a()(e,"slug is required."),a()(c,"settings.title is required."),a()(Object.values(s.b).includes(o),"settings.style must be one of: ".concat(b,".")),{payload:{slug:e,settings:{priority:n,style:o,title:c,subtitle:u,Icon:l}},type:"REGISTER_WIDGET_AREA"}}},O=Object(d.a)((function(t,r){var n=r.type,i=r.payload;switch(n){case"ASSIGN_WIDGET_AREA":var o=i.slug;return i.contextSlugs.forEach((function(e){void 0===t.contextAssignments[e]&&(t.contextAssignments[e]=[]),t.contextAssignments[e].includes(o)||t.contextAssignments[e].push(o)})),t;case"REGISTER_WIDGET_AREA":var a=i.slug,c=i.settings;return void 0!==t.areas[a]?(e.console.warn('Could not register widget area with slug "'.concat(a,'". Widget area "').concat(a,'" is already registered.')),t):(t.areas[a]=g(g({},c),{},{slug:a}),t);default:return t}})),m={isWidgetAreaActive:p((function(e){return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};a()(r,"widgetAreaSlug is required to check a widget area is active.");var i=n.modules;return e(s.a).getWidgets(r,{modules:i}).some((function(t){return e(s.a).isWidgetActive(t.slug)}))}})),isWidgetAreaRegistered:function(e,t){return void 0!==e.areas[t]},getWidgetAreas:function(e,t){a()(t,"contextSlug is required.");var r=e.areas,n=e.contextAssignments;return Object(l.a)(Object.values(r).filter((function(e){return n[t]&&n[t].includes(e.slug)})),"priority")},getWidgetArea:function(e,t){return a()(t,"slug is required."),e.areas[t]||null}};t.a={initialState:{areas:{},contextAssignments:{}},actions:v,controls:{},reducer:O,resolvers:{},selectors:m}}).call(this,r(25))},706:function(e,t,r){"use strict";function n(e,t){return e.sort((function(e,r){return e[t]>r[t]?1:e[t]<r[t]?-1:0}))}r.d(t,"a",(function(){return n}))},707:function(e,t,r){"use strict";(function(e){var n=r(6),i=r.n(n),o=r(10),a=r.n(o),c=r(13),u=r(391),s=r(4),l=r.n(s),d=r(242),f=r(45),g=r(299);function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var v=l.a.createRegistrySelector,O=Object.keys(f.c).map((function(e){return"WIDGET_WIDTHS.".concat(e)})).join(", "),m={areaAssignments:{},registryKey:void 0,widgets:{},widgetStates:{}},y={assignWidget:function(e,t){return{payload:{slug:e,areaSlugs:"string"==typeof t?[t]:t},type:"ASSIGN_WIDGET"}},registerWidget:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.Component,n=t.priority,i=void 0===n?10:n,o=t.width,c=void 0===o?f.c.QUARTER:o,u=t.wrapWidget,s=void 0===u||u,l=t.modules,g=t.isActive,p=t.isPreloaded,b=Object.values(f.c);return a()(r,"component is required to register a widget."),a()(Array.isArray(c)&&c.some(b.includes,b)||!Array.isArray(c)&&b.includes(c),"Widget width should be one of: ".concat(O,', but "').concat(c,'" was provided.')),{payload:{slug:e,settings:{Component:r,priority:i,width:c,wrapWidget:s,modules:Object(d.f)(l),isActive:g,isPreloaded:p}},type:"REGISTER_WIDGET"}},setWidgetState:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{payload:{slug:e,Component:t,metadata:r},type:"SET_WIDGET_STATE"}},unsetWidgetState:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{payload:{slug:e,Component:t,metadata:r},type:"UNSET_WIDGET_STATE"}}},h=Object(g.a)((function(t,r){var n=r.type,i=r.payload;switch(n){case"ASSIGN_WIDGET":var o=i.slug;return i.areaSlugs.forEach((function(e){void 0===t.areaAssignments[e]&&(t.areaAssignments[e]=[]),t.areaAssignments[e].includes(o)||t.areaAssignments[e].push(o)})),t;case"REGISTER_WIDGET":var a=i.slug,c=i.settings;return void 0!==t.widgets[a]?(e.console.warn('Could not register widget with slug "'.concat(a,'". Widget "').concat(a,'" is already registered.')),t):(t.widgets[a]=b(b({},c),{},{slug:a}),t);case"SET_WIDGET_STATE":var s=i.slug,l=i.Component,d=i.metadata;return t.widgetStates[s]={Component:l,metadata:d},t;case"UNSET_WIDGET_STATE":var f,g,p,v,O=i.slug,m=i.Component,y=i.metadata;return(null===(f=t.widgetStates)||void 0===f||null===(g=f[O])||void 0===g?void 0:g.Component)===m&&Object(u.b)(null===(p=t.widgetStates)||void 0===p||null===(v=p[O])||void 0===v?void 0:v.metadata)===y&&delete t.widgetStates[O],t;default:return t}})),_={isWidgetActive:v((function(e){return function(t,r){return a()(r,"slug is required to check a widget is active."),!Object(d.e)(e(f.a).getWidgetState(r))}})),isWidgetRegistered:function(e,t){return void 0!==e.widgets[t]},isWidgetPreloaded:v((function(e){return function(t,r){var n,i;return!!(null===(n=t.widgets[r])||void 0===n||null===(i=n.isPreloaded)||void 0===i?void 0:i.call(n,e))}})),getWidgets:v((function(e){return function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.modules;a()(r,"widgetAreaSlug is required.");var o=t.areaAssignments,u=Object.values(t.widgets).filter((function(e){var t;return null===(t=o[r])||void 0===t?void 0:t.includes(e.slug)})).filter((function(t){return"function"!=typeof t.isActive||(!!t.isActive(e)||"function"==typeof t.isPreloaded&&t.isPreloaded(e))}));if(i){var s=Object(d.f)(i);u=u.filter((function(e){var t;return!(null===(t=e.modules)||void 0===t?void 0:t.length)||Object(c.intersection)(e.modules,s).length===e.modules.length}))}return u.sort((function(e,t){return e.priority-t.priority}))}})),getWidget:function(e,t){return a()(t,"slug is required to get a widget."),e.widgets[t]||null},getWidgetState:function(e,t){return e.widgetStates[t]||null},getWidgetStates:function(e){return e.widgetStates}};t.a={initialState:m,actions:y,controls:{},reducer:h,resolvers:{},selectors:_}}).call(this,r(25))},708:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(4),a=r.n(o),c=r(18),u=r(9),s=r(47),l=a.a.useSelect;function KeyMetricsSetupCTAWidget(t){var r=t.Widget,n=t.WidgetNull,i=Object(s.a)("userInput"),o=l((function(e){return e(u.a).isUserInputCompleted()})),a=l((function(e){return e(c.a).isModuleConnected("search-console")})),d=l((function(e){return e(c.a).isModuleConnected("analytics-4")}));return i&&void 0!==o&&!o&&d&&a?e.createElement(r,{noPadding:!0},e.createElement("div",null,"TODO: UI for KeyMetricsSetupCTAWidget")):e.createElement(n,null)}KeyMetricsSetupCTAWidget.propTypes={Widget:i.a.elementType.isRequired,WidgetNull:i.a.elementType},t.a=KeyMetricsSetupCTAWidget}).call(this,r(3))},71:function(e,t,r){"use strict";(function(e){r.d(t,"c",(function(){return _})),r.d(t,"d",(function(){return E})),r.d(t,"b",(function(){return T})),r.d(t,"a",(function(){return j}));var n=r(15),i=r.n(n),o=r(32),a=r.n(o),c=r(6),u=r.n(c),s=r(24),l=r.n(s),d=r(13),f=r(72),g=r.n(f),p=r(1);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=m(e,t),n=r.formatUnit,i=r.formatDecimal;try{return n()}catch(e){return i()}},m=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=parseInt(e,10),Number.isNaN(e)&&(e=0);var r=Math.floor(e/60/60),n=Math.floor(e/60%60),i=Math.floor(e%60);return{hours:r,minutes:n,seconds:i,formatUnit:function(){var o=t.unitDisplay,a=v(v({unitDisplay:void 0===o?"short":o},l()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?E(i,v(v({},a),{},{unit:"second"})):Object(p.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?E(i,v(v({},a),{},{unit:"second"})):"",n?E(n,v(v({},a),{},{unit:"minute"})):"",r?E(r,v(v({},a),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(p.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
Object(p.__)("%ds","google-site-kit"),i);if(0===e)return t;var o=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
Object(p.__)("%dm","google-site-kit"),n),a=Object(p.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
Object(p.__)("%dh","google-site-kit"),r);return Object(p.sprintf)(
/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
Object(p._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?t:"",n?o:"",r?a:"").trim()}}},y=function(e){return 1e6<=e?Math.round(e/1e5)/10:1e4<=e?Math.round(e/1e3):1e3<=e?Math.round(e/100)/10:e},h=function(e){var t={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in millions.
Object(p.__)("%sM","google-site-kit"),E(y(e),e%10==0?{}:t)):1e4<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(y(e))):1e3<=e?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
Object(p.__)("%sK","google-site-kit"),E(y(e),e%10==0?{}:t)):E(e,{signDisplay:"never",maximumFractionDigits:1})},_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(d.isFinite)(e)?e:Number(e),Object(d.isFinite)(e)||(console.warn("Invalid number",e,a()(e)),e=0);var r={};if("%"===t)r={style:"percent",maximumFractionDigits:2};else{if("s"===t)return O(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(d.isPlainObject)(t)&&(r=v({},t))}var n=r,i=n.style,o=void 0===i?"metric":i;return"metric"===o?h(e):"duration"===o?O(e,t):E(e,r)},A=g()(console.warn),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,o=l()(t,["locale"]);try{return new Intl.NumberFormat(n,o).format(e)}catch(t){A("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(o)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},d=0,f=Object.entries(o);d<f.length;d++){var g=i()(f[d],2),p=g[0],b=g[1];c[p]&&b===c[p]||(u.includes(p)||(s[p]=b))}try{return new Intl.NumberFormat(n,s).format(e)}catch(t){return new Intl.NumberFormat(n).format(e)}},T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?j():r,i=t.style,o=void 0===i?"long":i,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:o,type:c});return u.format(e)}
/* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return e.join(s)},j=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(d.get)(t,["_googlesitekitLegacyData","locale"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language}}).call(this,r(25))},8:function(e,t,r){"use strict";r.d(t,"z",(function(){return i.b})),r.d(t,"w",(function(){return o.a})),r.d(t,"A",(function(){return o.b})),r.d(t,"y",(function(){return l})),r.d(t,"l",(function(){return v})),r.d(t,"u",(function(){return O.c})),r.d(t,"v",(function(){return O.d})),r.d(t,"r",(function(){return O.b})),r.d(t,"k",(function(){return O.a})),r.d(t,"s",(function(){return _})),r.d(t,"e",(function(){return A})),r.d(t,"b",(function(){return E.b})),r.d(t,"a",(function(){return E.a})),r.d(t,"i",(function(){return E.f})),r.d(t,"g",(function(){return E.e})),r.d(t,"x",(function(){return E.j})),r.d(t,"h",(function(){return T.b})),r.d(t,"p",(function(){return T.c})),r.d(t,"d",(function(){return T.a})),r.d(t,"n",(function(){return j.b})),r.d(t,"j",(function(){return j.a})),r.d(t,"t",(function(){return j.d})),r.d(t,"q",(function(){return R})),r.d(t,"o",(function(){return S})),r.d(t,"m",(function(){return w})),r.d(t,"c",(function(){return D})),r.d(t,"B",(function(){return N})),r.d(t,"f",(function(){return k}));var n=r(13),i=r(35),o=r(70),a=r(32),c=r.n(a),u=r(86),s=r.n(u),l=function(e){return s()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===c()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))};var d=r(15),f=r.n(d);function g(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,a=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return a=e.done,e},e:function(e){c=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(c)throw o}}}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var b=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n<t.length;n++)r[t[n].split("=")[0]]=decodeURIComponent(t[n].split("=")[1]);return e?r.hasOwnProperty(e)?decodeURIComponent(r[e].replace(/\+/g," ")):"":r},v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):b(e);var n,i={},o=g(r.searchParams.entries());try{for(o.s();!(n=o.n()).done;){var a=f()(n.value,2),c=a[0],u=a[1];i[c]=u}}catch(e){o.e(e)}finally{o.f()}return i},O=(r(89),r(71));function m(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function y(e){return"<p>".concat(e.replace(/\n{2,}/g,"</p><p>"),"</p>")}function h(e){return e.replace(/\n/gi,"<br>")}function _(e){for(var t=e,r=0,n=[m,y,h];r<n.length;r++){t=(0,n[r])(t)}return t}var A=function(e){return e=parseFloat(e),isNaN(e)||0===e?[0,0,0,0]:[Math.floor(e/60/60),Math.floor(e/60%60),Math.floor(e%60),Math.floor(1e3*e)-1e3*Math.floor(e)]},E=r(63),T=r(90),j=r(55);function R(e){var t=parseFloat(e)||0;return!!Number.isInteger(t)&&t>0}function S(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var w=function(e){switch(e){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}},D=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!Object(n.isFinite)(r)?null:r},N=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},k=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(n.unescape)(t)}},81:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(127),i=r.n(n)()(e)}).call(this,r(25))},82:function(e,t,r){"use strict";(function(e){var n=r(0),i=r.n(n),o=r(96),a=r(1),c=r(8);function ErrorText(t){var r=t.message,n=t.reconnectURL;if(!r)return null;var i=Object(a.sprintf)(
/* translators: %s: Error message */
Object(a.__)("Error: %s","google-site-kit"),r);n&&Object(o.a)(n)&&(i=i+" "+Object(a.sprintf)(
/* translators: %s: Reconnect URL */
Object(a.__)('To fix this, <a href="%s">redo the plugin setup</a>.',"google-site-kit"),n));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.w)(i,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:i.a.string.isRequired,reconnectURL:i.a.string},ErrorText.defaultProps={reconnectURL:""},t.a=ErrorText}).call(this,r(3))},89:function(e,t,r){"use strict";(function(e){r(49),r(54)}).call(this,r(25))},9:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return o})),r.d(t,"d",(function(){return a})),r.d(t,"i",(function(){return c})),r.d(t,"k",(function(){return u})),r.d(t,"g",(function(){return s})),r.d(t,"h",(function(){return l})),r.d(t,"f",(function(){return d})),r.d(t,"e",(function(){return f})),r.d(t,"j",(function(){return g}));var n="core/user",i="connected_url_mismatch",o="__global",a="googlesitekit_authenticate",c="googlesitekit_setup",u="googlesitekit_view_dashboard",s="googlesitekit_manage_options",l="googlesitekit_read_shared_module_data",d="googlesitekit_manage_module_sharing_options",f="googlesitekit_delegate_module_sharing_management",g="googlesitekit_update_plugins"},90:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return o})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return c}));var n=r(193),i=r(68),o=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var o=r.invertColor,a=void 0!==o&&o;return Object(n.a)(e.createElement(i.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e){var t,r,n,i,o,a,c,u,s,l,d,f,g,p,b;if(void 0!==e)return 1===(null==e||null===(t=e[0])||void 0===t||null===(r=t.data)||void 0===r||null===(n=r.rows)||void 0===n?void 0:n.length)||(null==e||null===(i=e[0])||void 0===i||null===(o=i.data)||void 0===o||null===(a=o.rows)||void 0===a||null===(c=a[0])||void 0===c||null===(u=c.metrics)||void 0===u||null===(s=u[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==e||null===(d=e[0])||void 0===d||null===(f=d.data)||void 0===f||null===(g=f.totals)||void 0===g||null===(p=g[0])||void 0===p||null===(b=p.values)||void 0===b?void 0:b[0])},c=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,r(3))},91:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(6),i=r.n(n),o=r(92),a=r(93);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};function l(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=u(u({},s),t);i.referenceSiteURL&&(i.referenceSiteURL=i.referenceSiteURL.toString().replace(/\/+$/,""));var c=Object(o.a)(i,r);return{enableTracking:function(){i.trackingEnabled=!0},disableTracking:function(){i.trackingEnabled=!1},initializeSnippet:c,isTrackingEnabled:function(){return!!i.trackingEnabled},trackEvent:Object(a.a)(i,r,c,n)}}}).call(this,r(25))},92:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(59),i=r(33);function o(t,r){var o,a=Object(n.a)(r);return function(){var r=e.document;if(void 0===o&&(o=!!r.querySelector("script[".concat(i.b,"]"))),!o){var n=r.createElement("script");n.setAttribute(i.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(i.a),r.head.appendChild(n),a("js",new Date),a("config",t.trackingID,{send_page_view:t.isSiteKitScreen}),o=!0}}}}).call(this,r(25))},93:function(e,t,r){"use strict";r.d(t,"a",(function(){return g}));var n=r(5),i=r.n(n),o=r(6),a=r.n(o),c=r(17),u=r.n(c),s=r(59),l=r(39);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){a()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e,t,r,n){var o=Object(s.a)(t);return function(){var t=u()(i.a.mark((function t(a,c,u,s){var d,g,p,b,v,O,m,y,h,_;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(d=e.activeModules,g=e.referenceSiteURL,p=e.trackingEnabled,b=e.trackingID,v=e.userIDHash,O=e.userRoles,m=void 0===O?[]:O,y=e.isAuthenticated,h=e.pluginVersion,p){t.next=3;break}return t.abrupt("return");case 3:return r(),_={send_to:b,event_category:a,event_label:u,value:s,dimension1:g,dimension2:m.join(","),dimension3:v,dimension4:h||"",dimension5:Array.from(l.a).join(","),dimension6:d.join(","),dimension7:y?1:0},t.abrupt("return",new Promise((function(e){var t,r,i=setTimeout((function(){n.console.warn('Tracking event "'.concat(c,'" (category "').concat(a,'") took too long to fire.')),e()}),1e3),u=function(){clearTimeout(i),e()};o("event",c,f(f({},_),{},{event_callback:u})),(null===(t=n._gaUserPrefs)||void 0===t||null===(r=t.ioo)||void 0===r?void 0:r.call(t))&&u()})));case 6:case"end":return t.stop()}}),t)})));return function(e,r,n,i){return t.apply(this,arguments)}}()}},949:function(e,t,r){"use strict";r.r(t),function(e){var n=r(4),i=r.n(n),o=r(583);Object(o.b)(i.a);var a=Object(o.a)(i.a);Object(o.c)(a),void 0===e.googlesitekit&&(e.googlesitekit={}),e.googlesitekit.widgets=a,t.default=a}.call(this,r(25))}},[[949,1,0]]]);