Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­ !function(e){function t(t){for(var n,o,c=t[0],s=t[1],u=t[2],d=0,g=[];d1&&void 0!==arguments[1]&&arguments[1],n=[],a=25,u=Object(l.c)();Object(i.each)(e,(function(e){var r=y(e,u);r.key=Object(m.c)(r.type,r.identifier,r.datapoint,r.data);var i=Object(m.b)(r.key,r.maxAge);void 0!==i?(setTimeout((function(){t.resolve(r,i)}),a),a+=25):n.push(r)})),n=Object(i.sortBy)(n,"priority");var f=[],p=[],h={},b=!!n.find((function(e){return e.priority<10}));Object(i.each)(n,(function(e,t){!r&&10<=e.priority&&b?p.push(e):h[e.key]?h[e.key].push(t):(h[e.key]=[t],f.push(e))}));var v=10,_=f.slice(0,v),k=f.slice(v);if(k=k.concat(p),0!==_.length||0!==k.length){03&&void 0!==arguments[3]?arguments[3]:{},i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=Object(m.c)(e,t,r,a);if(!i){var l=Object(m.b)(s,3600);if(void 0!==l)return new Promise((function(e){e(l)}))}return Object(o.default)({path:Object(c.a)("/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(r),a)}).then((function(e){return i||Object(m.e)(s,e),Promise.resolve(e)})).catch((function(e){return n.handleWPError(e),Promise.reject(e)}))},set:function(e,t,r,n){var a={};return a.data=n,Object(o.default)({path:"/google-site-kit/v1/".concat(e,"/").concat(t,"/data/").concat(r),data:a,method:"POST"}).then((function(n){return k.invalidateCacheGroup(e,t,r),new Promise((function(e){e(n)}))}))},setModuleActive:function(e,t){return this.set(h.a,"modules","activation",{slug:e,active:t})}};Object(s.e)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData")||Object(s.a)("googlesitekit.moduleLoaded","googlesitekit.collectModuleData",k.collectModuleData.bind(k)),t.c=k},20:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return i}));var n="core/user",a="googlesitekit_view_dashboard",i="googlesitekit_manage_options"},24:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o})),r.d(t,"b",(function(){return c}));var n=r(90),a=r.n(n),i=r(1),o=function(e){return function(t){return function FilteredComponent(r){return Object(i.f)(i.b,{},"",Object(i.f)(t,r),e)}}},c=function(t,r){return function(n){return function InnerComponent(i){return e.createElement(t,a()({},i,r,{OriginalComponent:n}))}}}}).call(this,r(10))},25:function(e,t,r){"use strict";(function(e){var n=r(6),a=r.n(n),i=r(7),o=r.n(i),c=r(8),s=r.n(c),l=r(9),u=r.n(l),d=r(3),g=r.n(d),f=r(1),p=r(2),m=r.n(p),h=r(13),b=r.n(h);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g()(e);if(t){var a=g()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u()(this,r)}}var _=function(t){s()(Link,t);var r=v(Link);function Link(){return a()(this,Link),r.apply(this,arguments)}return o()(Link,[{key:"render",value:function(){var t=this.props,r=t.dangerouslySetInnerHTML,n=t.onClick,a=t.href,i=t.children,o=t.className,c=t.arrow,s=t.external,l=t.inverse,u=t.back,d=t.small,g=t.inherit,f=t.caps,p=t.danger,m=t.disabled,h=t.id,v=a&&!m,_=v?"a":"button";return e.createElement(_,{className:b()("googlesitekit-cta-link",o,{"googlesitekit-cta-link--arrow":c,"googlesitekit-cta-link--external":s,"googlesitekit-cta-link--inverse":l,"googlesitekit-cta-link--back":u,"googlesitekit-cta-link--small":d,"googlesitekit-cta-link--inherit":g,"googlesitekit-cta-link--caps":f,"googlesitekit-cta-link--danger":p,"googlesitekit-cta-link--disabled":m}),onClick:n,id:h,href:v?a:void 0,target:v&&s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,disabled:m,dangerouslySetInnerHTML:r},i)}}]),Link}(f.a);_.propTypes={dangerouslySetInnerHTML:m.a.shape({__html:m.a.string}),onClick:m.a.func,href:m.a.string,children:m.a.oneOfType([m.a.string.isRequired,m.a.array.isRequired]),className:m.a.string,arrow:m.a.bool,external:m.a.bool,inverse:m.a.bool,back:m.a.bool,small:m.a.bool,inherit:m.a.bool,caps:m.a.bool,danger:m.a.bool,disabled:m.a.bool},_.defaultProps={dangerouslySetInnerHTML:void 0,onClick:null,href:"",className:"",arrow:!1,external:!1,inverse:!1,back:!1,small:!1,inherit:!1,caps:!1,danger:!1,disabled:!1},t.a=_}).call(this,r(10))},267:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return ReportMetric}));r(1);var n=r(2),a=r.n(n),i=r(13),o=r.n(i),c=r(0),s=r(268);function ReportMetric(t){var r=t.title,n=t.description,a=t.displayValue,i=t.category;return i=i.toLowerCase(),e.createElement("tr",{className:o()("googlesitekit-pagespeed-report__row","googlesitekit-pagespeed-report-metric")},e.createElement("td",null,e.createElement("div",{className:"googlesitekit-pagespeed-report-metric__title"},r),e.createElement("div",{className:"googlesitekit-pagespeed-report-metric__description"},n)),e.createElement("td",{className:o()("googlesitekit-pagespeed-report-metric-value","googlesitekit-pagespeed-report-metric--".concat(i.toLowerCase()))},e.createElement("div",{className:"googlesitekit-pagespeed-report-metric-value-container"},e.createElement("div",{className:"googlesitekit-pagespeed-report-metric-value__display-value"},a),e.createElement("div",{className:"googlesitekit-pagespeed-report-metric-value__rating"},i===s.b&&Object(c._x)("Good","Performance rating","google-site-kit"),i===s.a&&Object(c._x)("Needs improvement","Performance rating","google-site-kit"),i===s.c&&Object(c._x)("Poor","Performance rating","google-site-kit")))))}ReportMetric.propTypes={title:a.a.string.isRequired,description:a.a.string.isRequired,displayValue:a.a.string.isRequired,category:a.a.string.isRequired}}).call(this,r(10))},268:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i}));var n="fast",a="average",i="slow"},27:function(e,t,r){"use strict";(function(e){var n=r(6),a=r.n(n),i=r(7),o=r.n(i),c=r(8),s=r.n(c),l=r(9),u=r.n(l),d=r(3),g=r.n(d),f=r(1),p=r(2),m=r.n(p),h=r(13),b=r.n(h),v=r(132),_=r(133);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g()(e);if(t){var a=g()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u()(this,r)}}var k=function(t){s()(Layout,t);var r=y(Layout);function Layout(){return a()(this,Layout),r.apply(this,arguments)}return o()(Layout,[{key:"render",value:function(){var t=this.props,r=t.header,n=t.footer,a=t.children,i=t.title,o=t.headerCtaLabel,c=t.headerCtaLink,s=t.footerCtaLabel,l=t.footerCtaLink,u=t.footerContent,d=t.className,g=t.fill,f=t.relative;return e.createElement("div",{className:b()("googlesitekit-layout",d,{"googlesitekit-layout--fill":g,"googlesitekit-layout--relative":f})},r&&e.createElement(v.a,{title:i,ctaLabel:o,ctaLink:c}),a,n&&e.createElement(_.a,{ctaLabel:s,ctaLink:l,footerContent:u}))}}]),Layout}(f.a);k.propTypes={header:m.a.bool,footer:m.a.bool,children:m.a.node.isRequired,title:m.a.string,headerCtaLabel:m.a.string,headerCtaLink:m.a.string,footerCtaLabel:m.a.string,footerCtaLink:m.a.string,footerContent:m.a.node,className:m.a.string,fill:m.a.bool,relative:m.a.bool},k.defaultProps={header:!1,footer:!1,title:"",headerCtaLabel:"",headerCtaLink:"",footerCtaLabel:"",footerCtaLink:"",footerContent:null,className:"",fill:!1,relative:!1},t.a=k}).call(this,r(10))},28:function(e,t,r){"use strict";(function(e){r.d(t,"d",(function(){return s})),r.d(t,"e",(function(){return l})),r.d(t,"b",(function(){return u})),r.d(t,"a",(function(){return d})),r.d(t,"c",(function(){return g}));var n=r(34),a=r.n(n),i=r(16),o=r(41),c=r(60),s=function(){e._googlesitekitLegacyData.admin=e._googlesitekitLegacyData.admin||{},"string"==typeof e._googlesitekitLegacyData.admin.datacache&&(e._googlesitekitLegacyData.admin.datacache=JSON.parse(e._googlesitekitLegacyData.admin.datacache)),"object"!==a()(e._googlesitekitLegacyData.admin.datacache)&&(e._googlesitekitLegacyData.admin.datacache={})},l=function(t,r){if(void 0!==r&&(!r||"object"!==a()(r)||!r.error&&!r.errors)){s(),e._googlesitekitLegacyData.admin.datacache[t]=Object(i.cloneDeep)(r);var n={value:r,date:Date.now()/1e3};Object(o.a)().setItem("googlesitekit_"+t,JSON.stringify(n))}},u=function(t,r){if(!e._googlesitekitLegacyData.admin.nojscache){if(s(),void 0!==e._googlesitekitLegacyData.admin.datacache[t])return e._googlesitekitLegacyData.admin.datacache[t];var n=JSON.parse(Object(o.a)().getItem("googlesitekit_"+t));return n&&"object"===a()(n)&&n.date&&(!r||Date.now()/1e3-n.date3&&void 0!==arguments[3]?arguments[3]:null,i=[],o=[e,t,r],s=0,l=o;svisit the dashboard.',"google-site-kit"),t);return e.createElement("p",{dangerouslySetInnerHTML:Object(o.t)(r,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})})}}).call(this,r(10))},33:function(e,t,r){"use strict";(function(e){var n=r(6),a=r.n(n),i=r(7),o=r.n(i),c=r(23),s=r.n(c),l=r(8),u=r.n(l),d=r(9),g=r.n(d),f=r(3),p=r.n(f),m=r(1),h=r(2),b=r.n(h),v=r(13),_=r.n(v),y=r(123),k=r(55),O=r(75);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=p()(e);if(t){var a=p()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return g()(this,r)}}var w=function(t){u()(DataBlock,t);var r=E(DataBlock);function DataBlock(e){var t;return a()(this,DataBlock),(t=r.call(this,e)).handleClick=t.handleClick.bind(s()(t)),t.handleKeyPress=t.handleKeyPress.bind(s()(t)),t}return o()(DataBlock,[{key:"handleClick",value:function(){var e=this.props,t=e.stat;(0,e.handleStatSelection)(t)}},{key:"handleKeyPress",value:function(e){e.preventDefault();var t=this.props,r=t.stat,n=t.handleStatSelection;"Enter"!==e.key&&" "!==e.key||n(r)}},{key:"render",value:function(){var t=this.props,r=t.className,n=t.title,a=t.datapoint,i=t.datapointUnit,o=t.change,c=t.changeDataUnit,s=t.context,l=t.period,u=t.selected,d=t.handleStatSelection,g=t.source,f=t.sparkline,p=t.invertChangeColor,h="button"===s?"button":"",b=f;return b&&p&&(b=Object(m.d)(f,{invertChangeColor:p})),e.createElement("div",{className:_()("googlesitekit-data-block",r,"googlesitekit-data-block--".concat(s),{"googlesitekit-data-block--selected":u}),tabIndex:"button"===s?"0":"-1",role:d&&h,onClick:d&&this.handleClick,onKeyPress:d&&this.handleKeyPress,"aria-label":d&&n,"aria-pressed":d&&u},e.createElement("div",{className:"googlesitekit-data-block__title-datapoint-wrapper"},e.createElement("h3",{className:" googlesitekit-subheading-1 googlesitekit-data-block__title "},n),e.createElement("div",{className:"googlesitekit-data-block__datapoint"},"".concat(a).concat(i))),b&&e.createElement("div",{className:"googlesitekit-data-block__sparkline"},b),e.createElement("div",{className:"googlesitekit-data-block__change-source-wrapper"},e.createElement("div",{className:"googlesitekit-data-block__change"},""===o&&e.createElement(m.b,null," "),o&&e.createElement(m.b,null,e.createElement("span",{className:"googlesitekit-data-block__arrow"},e.createElement(y.a,{direction:0').concat(Object(n._x)("PageSpeed Insights","Service name","google-site-kit"),""));return e.createElement("p",{dangerouslySetInnerHTML:Object(s.t)(a,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href","class","target","rel"]})})}}).call(this,r(10))},345:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return MetricsLearnMoreLink}));r(1);var n=r(0),a=r(25),i=r(5);function MetricsLearnMoreLink(){return e.createElement(a.a,{href:"https://web.dev/user-centric-performance-metrics/#how-metrics-are-measured",external:!0,inherit:!0,dangerouslySetInnerHTML:Object(i.t)(Object(n.__)('Learn more how metrics are measured.',"google-site-kit"),{ALLOWED_TAGS:["span"],ALLOWED_ATTR:["class"]})})}}).call(this,r(10))},35:function(e,t,r){"use strict";(function(e,n){r(1);var a=r(2),i=r.n(a),o=r(13),c=r.n(o),s=function SvgIcon(t){var r=t.id,a=t.className,i=t.height,o=t.width,s="".concat(e._googlesitekitLegacyData.admin.assetsRoot,"svg/svg.svg");return n.createElement("svg",{className:c()("svg",a),height:i,width:o},n.createElement("use",{xlinkHref:"".concat(s,"#").concat(r)}))};s.propTypes={id:i.a.string.isRequired,className:i.a.string,height:i.a.string,width:i.a.string},s.defaultProps={className:"",height:20,width:20},t.a=s}).call(this,r(15),r(10))},350:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(268);function a(e){return.9<=e?n.b:.5<=e?n.a:n.c}},36:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="_googlesitekitDataLayer",a="data-googlesitekit-gtag"},367:function(e,t,r){"use strict";(function(e){var n=r(1),a=r(0),i=r(11),o=r.n(i),c=r(27),s=r(58),l=r(343),u=r(31),d=o.a.useSelect;t.a=function LegacyDashboardSpeed(){var t=d((function(e){return e(u.c).getCurrentReferenceURL()})),r=d((function(e){return e(u.c).getCurrentEntityURL()}))===t?Object(a.__)("How fast your page loads, how quickly people can interact with your content, and how stable your content is.","google-site-kit"):Object(a.__)("How fast your home page loads, how quickly people can interact with your content, and how stable your content is.","google-site-kit");return e.createElement(n.b,null,e.createElement("div",{id:"googlesitekit-pagespeed-header",className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(s.a,{title:Object(a.__)("Page Speed and Experience","google-site-kit"),description:r})),e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12 "},e.createElement(c.a,{className:"googlesitekit-pagespeed-widget"},e.createElement(l.a,null))))}}).call(this,r(10))},37:function(e,t,r){"use strict";(function(e){var n=r(12),a=r.n(n),i=r(4),o=r.n(i),c=r(14),s=r.n(c),l=r(6),u=r.n(l),d=r(7),g=r.n(d),f=r(23),p=r.n(f),m=r(8),h=r.n(m),b=r(9),v=r.n(b),_=r(3),y=r.n(_),k=r(1),O=r(2),E=r.n(O),w=r(13),j=r.n(w),L=r(16),D=r(35),S=r(56),R=r(28),N=r(33),C=r(45),P=r(118),T=r(124),x=r(25);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=y()(e);if(t){var a=y()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return v()(this,r)}}var I=function(t){h()(Notification,t);var r,n,i=A(Notification);function Notification(e){var t;return u()(this,Notification),(t=i.call(this,e)).state={isClosed:!1},t.cardRef=Object(k.h)(),t.handleDismiss=t.handleDismiss.bind(p()(t)),t.handleCTAClick=t.handleCTAClick.bind(p()(t)),01?r-1:0),a=1;a1&&void 0!==arguments[1]&&arguments[1];if(e=Object(p.isFinite)(e)?e:Number(e),Object(p.isFinite)(e)||(console.warn("Invalid number",e,f()(e)),e=0),t)return N(e,{style:"currency",currency:t});var r={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=e?Object(h.sprintf)(// translators: %s: an abbreviated number in millions. Object(h.__)("%sM","google-site-kit"),N(S(e),e%10==0?{}:r)):1e4<=e?Object(h.sprintf)(// translators: %s: an abbreviated number in thousands. Object(h.__)("%sK","google-site-kit"),N(S(e))):1e3<=e?Object(h.sprintf)(// translators: %s: an abbreviated number in thousands. Object(h.__)("%sK","google-site-kit"),N(S(e),e%10==0?{}:r)):e.toString()},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?C():r,a=d()(t,["locale"]);return new Intl.NumberFormat(n,a).format(e)},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(p.get)(t,["_googlesitekitLegacyData","locale","","lang"]);if(r){var n=r.match(/^(\w{2})?(_)?(\w{2})/);if(n&&n[0])return n[0].replace(/_/g,"-")}return t.navigator.language},P=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}},T=function(e){if(e=parseInt(e,10),isNaN(e)||0===e)return"0.0s";var t={};return t.hours=Math.floor(e/60/60),t.minutes=Math.floor(e/60%60),t.seconds=Math.floor(e%60),((t.hours?t.hours+"h ":"")+(t.minutes?t.minutes+"m ":"")+(t.seconds?t.seconds+"s ":"")).trim()},x=function(e,t){var r=1e3*P("day"),n=e.getTime(),a=t.getTime();return Math.round(Math.abs(n-a)/r)},A=function(e,t){if("0"===e||0===e||isNaN(e))return"";var r=((t-e)/e*100).toFixed(1);return isNaN(r)||"Infinity"===r?"":r},I=function(e,t){return Object(p.map)(e,(function(e,r){return[e[0],e[t]||(0===r?"":0)]}))},M=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e._googlesitekitLegacyData,r=t.modules;return r?Object.keys(r).reduce((function(e,t){return"object"!==f()(r[t])||void 0===r[t].slug||void 0===r[t].name||r[t].slug!==t?e:D(D({},e),{},l()({},t,r[t]))}),{}):{}},F=function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e._googlesitekitLegacyData,a=n.admin,i=a.connectURL,o=a.adminRoot,c=n.setup.needReauthenticate,s=M(n)[t].screenID,l="pagespeed-insights"===t?{notification:"authentication_success",reAuth:void 0}:{},u=Object(b.a)(o,D({page:t&&r&&s?s:"googlesitekit-dashboard",slug:t,reAuth:r},l));if(!c)return u;var d=encodeURIComponent(Object(v.a)(u));return u=o+"?"+d,Object(b.a)(i,{redirect:u,status:r})},U=function(t,r){var n=e._googlesitekitLegacyData.admin.adminRoot;return t||(t="googlesitekit-dashboard"),r=D({page:t},r),Object(b.a)(n,r)},q=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},H=function(){var e=c()(i.a.mark((function e(t,r,n){var a,o,c,s,l=arguments;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>3&&void 0!==l[3]?l[3]:y.c,o=l.length>4&&void 0!==l[4]?l[4]:M,e.next=4,t.setModuleActive(r,n);case 4:return c=e.sent,(s=o())[r]&&(s[r].active=n),e.next=9,a("".concat(r,"_setup"),n?"module_activate":"module_deactivate",r);case 9:return e.abrupt("return",c);case 10:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(m.b)("googlesitekit.ErrorNotification","googlesitekit.ErrorNotification",Object(k.b)(e,t),1)},B=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return Object(p.unescape)(t)};function z(t,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"33",i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"33",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if(e._googlesitekitLegacyData){var c=n.createElement(_.a,{id:t,width:a,height:i,className:o});return r?c=n.createElement(_.a,{id:"".concat(t,"-disabled"),width:a,height:i,className:o}):"pagespeed-insights"===t&&(c=n.createElement("img",{src:e._googlesitekitLegacyData.admin.assetsRoot+"images/icon-pagespeed.png",width:a,alt:"",className:o})),c}}function W(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e._googlesitekitBaseData,n=r.blogPrefix,a=r.isNetworkMode;return a?t:n+t}}).call(this,r(15),r(10))},50:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return d})),r.d(t,"b",(function(){return f})),r.d(t,"c",(function(){return g}));var n=r(78),a=e._googlesitekitBaseData||{},i=a.isFirstAdmin,o=a.trackingAllowed,c={isFirstAdmin:i,trackingEnabled:a.trackingEnabled,trackingID:a.trackingID,referenceSiteURL:a.referenceSiteURL,userIDHash:a.userIDHash},s=Object(n.a)(c),l=s.enableTracking,u=s.disableTracking,d=s.isTrackingEnabled,g=s.trackEvent;function f(e){e?l():u()}!0===o&&f(d())}).call(this,r(15))},51:function(e,t,r){"use strict";r.d(t,"a",(function(){return g})),r.d(t,"b",(function(){return f}));var n=r(12),a=r.n(n),i=r(17),o=r.n(i),c=r(66),s=r.n(c);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 u(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];return o()(r,"selectorName is required."),e.getError(t,r,n)},getErrorForAction:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return o()(r,"actionName is required."),e.getError(t,r,n)},getError:function(e,t,r){var n=e.error,a=e.errors;return t||r?(o()(t,"baseName is required."),a[d(t,r)]):n},hasErrors:function(e){var t=e.errors;return Object.keys(t).some((function(e){return!!t[e]}))}};return{INITIAL_STATE:{errors:{},error:void 0},actions:g,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var i=n.baseName,o=n.args,c=n.error,s=u({},e);return i?s.errors=u(u({},e.errors||{}),{},a()({},d(i,o),c)):s.error=c,s;case"CLEAR_ERROR":var l=d(n.baseName,n.args),g=u({},e.errors||{});return delete g[l],u(u({},e),{},{errors:g});default:return u({},e)}},resolvers:{},selectors:e}}},54:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(36);function a(e){return function(){e[n.a]=e[n.a]||[],e[n.a].push(arguments)}}},55:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l}));var n=r(48),a=r.n(n),i=r(16),o=r(0);function c(){Object(o.setLocaleData)(e._googlesitekitLegacyData.locale,"google-site-kit")}var s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?l():r,i=a()(t,["locale"]);return new Intl.NumberFormat(n,i).format(e)},l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(i.get)(t,["_googlesitekitLegacyData","locale","","lang"]);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(15))},56:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(83),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:n.a.sanitize(e,t)}}},58:function(e,t,r){"use strict";(function(e){var n=r(6),a=r.n(n),i=r(7),o=r.n(i),c=r(8),s=r.n(c),l=r(9),u=r.n(l),d=r(3),g=r.n(d),f=r(1),p=r(2),m=r.n(p);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g()(e);if(t){var a=g()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u()(this,r)}}var b=function(t){s()(DashboardModuleHeader,t);var r=h(DashboardModuleHeader);function DashboardModuleHeader(){return a()(this,DashboardModuleHeader),r.apply(this,arguments)}return o()(DashboardModuleHeader,[{key:"render",value:function(){var t=this.props,r=t.title,n=t.description;return e.createElement("header",{className:"googlesitekit-dashboard-module-header"},e.createElement("div",{className:"mdc-layout-grid__inner"},r&&e.createElement("div",{className:" mdc-layout-grid__cell mdc-layout-grid__cell--span-12-desktop mdc-layout-grid__cell--span-8-tablet mdc-layout-grid__cell--span-4-phone "},e.createElement("h3",{className:" googlesitekit-heading-3 googlesitekit-dashboard-module-header__title "},r),n&&e.createElement("p",{className:"googlesitekit-dashboard-module-header__description"},n))))}}]),DashboardModuleHeader}(f.a);b.propTypes={title:m.a.string,description:m.a.string},b.defaultProps={title:"",description:""},t.a=b}).call(this,r(10))},59:function(e,t,r){"use strict";r.d(t,"b",(function(){return c})),r.d(t,"c",(function(){return s})),r.d(t,"a",(function(){return l}));var n=r(0),a=r(11),i=r.n(a),o=r(20);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s(),t=e.match(/last-(\d+)-days/);if(t&&t[1])return Object(n.sprintf)( /* translators: %s: Number of days matched. */ Object(n._n)("%s day","%s days",parseInt(t[1],10),"google-site-kit"),t[1]);throw new Error("Unrecognized date range slug.")}function s(){return i.a.select(o.c).getDateRange()}function l(){ /* translators: %s: Number of days to request data. */ var e=Object(n.__)("Last %s days","google-site-kit");return{"last-7-days":{slug:"last-7-days",label:Object(n.sprintf)(e,7)},"last-14-days":{slug:"last-14-days",label:Object(n.sprintf)(e,14)},"last-28-days":{slug:"last-28-days",label:Object(n.sprintf)(e,28)},"last-90-days":{slug:"last-90-days",label:Object(n.sprintf)(e,90)}}}},60:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(34),a=r.n(n),i=r(66),o=r.n(i),c=function(e){return o()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var i=t[n];i&&"object"===a()(i)&&!Array.isArray(i)&&(i=e(i)),r[n]=i})),r}(e)))}},61:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return s})),r.d(t,"b",(function(){return l})),r.d(t,"c",(function(){return d}));var n=r(30),a=r.n(n),i=r(0);function o(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return c(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 c(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,o=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:0,t=null,r=null,n=document.querySelector("#toplevel_page_googlesitekit-dashboard .googlesitekit-notifications-counter"),a=document.querySelector("#wp-admin-bar-google-site-kit .googlesitekit-notifications-counter");if(n&&a)return!1;if(t=document.querySelector("#toplevel_page_googlesitekit-dashboard .wp-menu-name"),r=document.querySelector("#wp-admin-bar-google-site-kit .ab-item"),null===t&&null===r)return!1;var o=document.createElement("span");o.setAttribute("class","googlesitekit-notifications-counter update-plugins count-".concat(e));var c=document.createElement("span");c.setAttribute("class","plugin-count"),c.setAttribute("aria-hidden","true"),c.textContent=e;var s=document.createElement("span");return s.setAttribute("class","screen-reader-text"),s.textContent=Object(i.sprintf)( /* translators: %d is the number of notifications */ Object(i._n)("%d notification","%d notifications",e,"google-site-kit"),e),o.appendChild(c),o.appendChild(s),t&&null===n&&t.appendChild(o),r&&null===a&&r.appendChild(o),o},l=function(){e.localStorage&&e.localStorage.clear(),e.sessionStorage&&e.sessionStorage.clear()},u=function(e){for(var t=location.search.substr(1).split("&"),r={},n=0;n1&&void 0!==arguments[1]?arguments[1]:location,r=new URL(t.href);if(e)return r.searchParams&&r.searchParams.get?r.searchParams.get(e):u(e);var n,i={},c=o(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var s=a()(n.value,2),l=s[0],d=s[1];i[l]=d}}catch(e){c.e(e)}finally{c.f()}return i}}).call(this,r(15))},643:function(e,t,r){"use strict";r.r(t);r(644)},644:function(e,t,r){"use strict";(function(e){r(1);var t=r(18),n=r(146),a=r(187),i=r.n(a),o=r(142),c=(r(663),r(5)),s=r(24),l=r(458),u=r(459),d=r(342),g=r(367);Object(t.b)("googlesitekit.ModuleSettingsDetails-pagespeed-insights","googlesitekit.PageSpeedInsightsModuleSettingsDetails",Object(c.g)(l.a));var f=Object(c.j)()["pagespeed-insights"],p=f.active,m=f.setupComplete;p&&m?(Object(t.b)("googlesitekit.DashboardModule","googlesitekit.PageSpeedInsights",Object(s.a)(e.createElement(g.a,null)),45),Object(t.b)("googlesitekit.DashboardDetailsModule","googlesitekit.PageSpeedInsights",Object(s.a)(e.createElement(g.a,null)),45)):Object(t.b)("googlesitekit.DashboardModule","googlesitekit.PageSpeedInsights",Object(s.a)(e.createElement(d.a,null)),45),Object(n.a)((function(){i.a.registerWidget("pagespeedInsightsWebVitals",{component:u.a,width:i.a.WIDGET_WIDTHS.FULL,wrapWidget:!1},[o.e,o.h])}))}).call(this,r(10))},663:function(e,t,r){"use strict";var n=r(11),a=r.n(n),i=r(174),o=r.n(i),c=r(4),s=r.n(c),l=r(12),u=r.n(l),d=r(17),g=r.n(d),f=r(182),p=r(39),m=r.n(p),h=r(99),b=r(44);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 _(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.strategy,r=e.url;g()(Object(f.a)(r),"a valid url is required to fetch a report."),g()("string"==typeof t,"a valid strategy is required to fetch a report.")}}),k={getReport:s.a.mark((function e(t,r){var n;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,a.a.commonActions.getRegistry();case 4:if(n=e.sent,!n.select(h.d).getReport(t,r)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,y.actions.fetchGetReport(t,r);case 10:case"end":return e.stop()}}),e)}))},O=a.a.combineStores(y,{INITIAL_STATE:{reports:{}},resolvers:k,selectors:{getReport:function(e,t,r){return e.reports["".concat(r,"::").concat(t)]}}}),E=(O.INITIAL_STATE,O.actions,O.controls,O.reducer,O.resolvers,O.selectors,O),w=r(47),j={selectors:{getServiceURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.path,n=t.query,a="https://developers.google.com/speed/pagespeed/insights";if(r){var i=r.match(/^\//)?r:"/".concat(r);return Object(w.a)("".concat(a).concat(i),n)}return Object(w.a)(a,n)}}},L=o.a.createModuleStore("pagespeed-insights",{storeName:h.d,requiresSetup:!1}),D=a.a.combineStores(L,E,j);a.a.registerStore(h.d,D)},68:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return c})),r.d(t,"b",(function(){return s}));var n=r(67),a=r.n(n),i="missing_required_scopes";function o(e){return a()(e)&&e.hasOwnProperty("code")&&("string"==typeof e.code||"number"==typeof e.code)&&e.hasOwnProperty("message")&&"string"==typeof e.message&&e.hasOwnProperty("data")}function c(e){return(null==e?void 0:e.code)===i}function s(e){var t;return"insufficientPermissions"===(null==e||null===(t=e.data)||void 0===t?void 0:t.reason)}},72:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return a})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},a=function(e){return e.replace(/([a-z0-9]{1})([A-Z]{1})/g,"$1_$2").toUpperCase()};function i(e){return e.split("-").map((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})).join("")}},74:function(e,t,r){"use strict";(function(e){var n=r(29),a=r.n(n),i=r(115),o=e._googlesitekitAPIFetchData||{},c=o.nonce,s=o.nonceEndpoint,l=o.preloadedData,u=o.rootURL;a.a.nonceEndpoint=s,a.a.nonceMiddleware=a.a.createNonceMiddleware(c),a.a.rootURLMiddleware=a.a.createRootURLMiddleware(u),a.a.preloadingMiddleware=Object(i.a)(l),a.a.use(a.a.nonceMiddleware),a.a.use(a.a.mediaUploadMiddleware),a.a.use(a.a.rootURLMiddleware),a.a.use(a.a.preloadingMiddleware),t.default=a.a}).call(this,r(15))},75:function(e,t,r){"use strict";(function(e){var n=r(6),a=r.n(n),i=r(7),o=r.n(i),c=r(8),s=r.n(c),l=r(9),u=r.n(l),d=r(3),g=r.n(d),f=r(1),p=r(2),m=r.n(p),h=r(13),b=r.n(h),v=r(0),_=r(25);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=g()(e);if(t){var a=g()(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u()(this,r)}}var k=function(t){s()(SourceLink,t);var r=y(SourceLink);function SourceLink(){return a()(this,SourceLink),r.apply(this,arguments)}return o()(SourceLink,[{key:"render",value:function(){var t=this.props,r=t.name,n=t.href,a=t.className,i=t.external;return e.createElement("div",{className:b()("googlesitekit-source-link",a)},[Object(v.__)("Source:","google-site-kit")," ",e.createElement(_.a,{key:"link",href:n,external:i,inherit:!0},r)])}}]),SourceLink}(f.a);k.propTypes={name:m.a.string,href:m.a.string,className:m.a.string,external:m.a.bool},k.defaultProps={name:"",href:"",className:"",external:!1},t.a=k}).call(this,r(10))},78:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return u}));var n=r(12),a=r.n(n),i=r(79),o=r(80);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 s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,a=s(s({},l),t);return a.referenceSiteURL&&(a.referenceSiteURL=a.referenceSiteURL.toString().replace(/\/+$/,"")),{enableTracking:Object(i.a)(a,r),disableTracking:function(){a.trackingEnabled=!1},isTrackingEnabled:function(){return!!a.trackingEnabled},trackEvent:Object(o.a)(a,r,n)}}}).call(this,r(15))},79:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(54),a=r(36);function i(t,r){var i=Object(n.a)(r);return function(){t.trackingEnabled=!0;var r=e.document;if(!r.querySelector("script[".concat(a.b,"]"))){var n=r.createElement("script");n.setAttribute(a.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(a.a),r.head.appendChild(n),i("js",new Date),i("config",t.trackingID)}}}}).call(this,r(15))},80:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return g}));var n=r(4),a=r.n(n),i=r(12),o=r.n(i),c=r(14),s=r.n(c),l=r(54);function u(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 d(e){for(var t=1;t2&&void 0!==_[2]?_[2]:"",g=_.length>3&&void 0!==_[3]?_[3]:"",f=t.isFirstAdmin,p=t.referenceSiteURL,m=t.trackingEnabled,h=t.trackingID,b=t.userIDHash,!(null===(s=n._gaUserPrefs)||void 0===s||null===(l=s.ioo)||void 0===l?void 0:l.call(s))){r.next=5;break}return r.abrupt("return");case 5:if(m){r.next=7;break}return r.abrupt("return");case 7:return v={send_to:h,event_category:o,event_label:u,event_value:g,dimension1:p,dimension2:f?"true":"false",dimension3:b},r.abrupt("return",new Promise((function(t){var r=setTimeout((function(){e.console.warn('Tracking event "'.concat(c,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3);i("event",c,d(d({},v),{},{event_callback:function(){clearTimeout(r),t()}}))})));case 9:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}()}}).call(this,r(15))},81:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a}));var n="core",a="modules"},83:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return a}));var n=r(111),a=r.n(n)()(e)}).call(this,r(15))},86:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n="core/modules"},89:function(e,t,r){"use strict";(function(e){r(1);var n=r(2),a=r.n(n),i=r(182),o=r(0),c=r(5);function ErrorText(t){var r=t.message,n=t.reconnectURL;if(!r)return null;var a=Object(o.sprintf)( /* translators: %s: Error message */ Object(o.__)("Error: %s","google-site-kit"),r);n&&Object(i.a)(n)&&(a=a+" "+Object(o.sprintf)( /* translators: %s: Reconnect URL */ Object(o.__)('To fix this, redo the plugin setup.',"google-site-kit"),n));return e.createElement("div",{className:"googlesitekit-error-text"},e.createElement("p",{dangerouslySetInnerHTML:Object(c.t)(a,{ALLOWED_TAGS:["a"],ALLOWED_ATTR:["href"]})}))}ErrorText.propTypes={message:a.a.string.isRequired,reconnectURL:a.a.string},ErrorText.defaultProps={reconnectURL:""},t.a=ErrorText}).call(this,r(10))},98:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n="core/forms"},99:function(e,t,r){"use strict";r.d(t,"d",(function(){return n})),r.d(t,"c",(function(){return a})),r.d(t,"f",(function(){return i})),r.d(t,"e",(function(){return o})),r.d(t,"b",(function(){return c})),r.d(t,"a",(function(){return s}));var n="modules/pagespeed-insights",a="pagespeedDashboardWidget",i="mobile",o="desktop",c="data_lab",s="data_field"}});