"use strict";(globalThis.__googlesitekit_webpackJsonp=globalThis.__googlesitekit_webpackJsonp||[]).push([[101],{2522:(t,e,n)=>{n.d(e,{D:()=>o});var r=n(32091),i=n.n(r);function o(t,{dateRangeLength:e}){i()(Array.isArray(t),"report must be an array to partition."),i()(Number.isInteger(e)&&e>0,"dateRangeLength must be a positive integer.");const n=-1*e;return{currentRange:t.slice(n),compareRange:t.slice(2*n,n)}}},8143:(t,e,n)=>{n.d(e,{VZ:()=>o,dc:()=>s,pH:()=>i,r0:()=>a});var r=n(84024);function i(t){try{return new URL(t).pathname}catch{}return null}function o(t,e){try{return new URL(e,t).href}catch{}return("string"==typeof t?t:"")+("string"==typeof e?e:"")}function s(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function a(t,e){if(!(0,r.m)(t))return t;if(t.length<=e)return t;const n=new URL(t),i=t.replace(n.origin,"");if(i.length<e)return i;const o=i.length-Math.floor(e)+1;return"…"+i.substr(o)}},12850:(t,e,n)=>{n.d(e,{tt:()=>S,Jg:()=>D,Gp:()=>_,GH:()=>v,r0:()=>N,Du:()=>I,Zf:()=>V,Cn:()=>T,G7:()=>h,vH:()=>p,N_:()=>R,zh:()=>z,mK:()=>l.mK,Ql:()=>$,vY:()=>K,sq:()=>E,VZ:()=>C.VZ,JK:()=>l.JK,IS:()=>j,pH:()=>C.pH,kf:()=>B,O5:()=>M,Qr:()=>L,x6:()=>U,K5:()=>l.K5,S_:()=>m,dc:()=>C.dc,Eo:()=>l.Eo,jq:()=>l.jq,DK:()=>J.D,N9:()=>H,p9:()=>o.p,XH:()=>O,Zm:()=>c,sx:()=>i.sx,BI:()=>i.BI,CZ:()=>o.C,BG:()=>Z});var r=n(17243),i=n(89318),o=n(82046),s=n(10523),a=n.n(s);function c(t){return a()(JSON.stringify(u(t)))}function u(t){const e={};return Object.keys(t).sort().forEach(n=>{let r=t[n];r&&"object"==typeof r&&!Array.isArray(r)&&(r=u(r)),e[n]=r}),e}var l=n(79829);function g(t){return t.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function f(t){return`<p>${t.replace(/\n{2,}/g,"</p><p>")}</p>`}function d(t){return t.replace(/\n/gi,"<br>")}function m(t){const e=[g,f,d];let n=t;for(const t of e)n=t(n);return n}function p(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]}function h(t){const e=t&&!Number.isInteger(t)?new Date(t).getTime():t;return isNaN(e)||!e?0:e}var y=n(32091),b=n.n(y),k=n(82871);const w="Date param must construct to a valid date instance or be a valid date instance itself.",v="Invalid dateString parameter, it must be a string.",_='Invalid date range, it must be a string with the format "last-x-days".',N=60,D=60*N,S=24*D,I=7*S;function $(){function t(t){return(0,k.sprintf)(/* translators: %s: number of days */ /* translators: %s: number of days */
(0,k._n)("Last %s day","Last %s days",t,"google-site-kit"),t)}return{"last-7-days":{slug:"last-7-days",label:t(7),days:7},"last-14-days":{slug:"last-14-days",label:t(14),days:14},"last-28-days":{slug:"last-28-days",label:t(28),days:28},"last-90-days":{slug:"last-90-days",label:t(90),days:90}}}function L(t=""){if(!(0,r.isString)(t))return!1;if(3!==t.split("-").length)return!1;const e=new Date(t);return(0,r.isDate)(e)&&!isNaN(e)}function E(t){b()((0,r.isDate)(t)&&!isNaN(t),w);const e=`${t.getMonth()+1}`,n=`${t.getDate()}`;return[t.getFullYear(),e.length<2?`0${e}`:e,n.length<2?`0${n}`:n].join("-")}function O(t){b()(L(t),v);const[e,n,r]=t.split("-");return new Date(e,n-1,r)}function j(t,e){return E(R(t,e*S))}function M(t){const e=t.split("-");return 3===e.length&&"last"===e[0]&&!Number.isNaN(e[1])&&!Number.isNaN(parseFloat(e[1]))&&"days"===e[2]}function R(t,e){b()(L(t)||(0,r.isDate)(t)&&!isNaN(t),v);const n=L(t)?Date.parse(t):t.getTime();return new Date(n-1e3*e)}var x=n(69743),A=n(94552),F=n(62540);function K(t,e={}){if(Number.isNaN(Number(t)))return"";const{invertColor:n=!1}=e;return(0,x.Ay)((0,F.jsx)(A.A,{direction:t>0?"up":"down",invertColor:n}))}function T(t,e){return t>0&&e>0?t/e-1:t>0?1:e>0?-1:0}var C=n(8143);function U(t){const e=parseFloat(t)||0;return!!Number.isInteger(e)&&e>0}function B(t){if("number"==typeof t)return!0;const e=(t||"").toString();return!!e&&!isNaN(e)}function H(t){return Array.isArray(t)?[...t].sort():t}var J=n(2522);function V(t,e){function n(t){return"0"===t||0===t}if(n(t)&&n(e))return 0;if(n(t)||Number.isNaN(t))return null;const r=(e-t)/t;return Number.isNaN(r)||!Number.isFinite(r)?null:r}function Z(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}}function z(t){if(!t)return"";const e=t.replace(/&#(\d+);/g,(t,e)=>String.fromCharCode(e)).replace(/(\\)/g,"");return(0,r.unescape)(e)}},15210:(t,e,n)=>{n.d(e,{O:()=>i});var r=n(31234);const i=n.n(r)()(n.g)},24558:(t,e,n)=>{n.d(e,{Ax:()=>o,CZ:()=>l,Ej:()=>N,Gw:()=>D,Is:()=>s,KK:()=>f,Nn:()=>I,OT:()=>v,SH:()=>w,Y$:()=>d,ZS:()=>a,bg:()=>h,en:()=>_,ep:()=>p,f7:()=>i,hi:()=>m,jU:()=>r,k$:()=>b,kz:()=>S,ly:()=>c,mo:()=>y,s3:()=>k,uR:()=>u,zx:()=>g});const r="mainDashboard",i="entityDashboard",o="mainDashboardViewOnly",s="entityDashboardViewOnly",a="userInput",c="activation",u="splash",l="adminBar",g="adminBarViewOnly",f="settings",d="adBlockingRecovery",m="wpDashboard",p="wpDashboardViewOnly",h="moduleSetup",y="metricSelection",b="wpBlockEditor",k="keyMetricsSetup",w="key-metrics",v="traffic",_="content",N="speed",D="monetization",S=[r,i,o,s,a,u,f,h,y],I=[o,s,g,p]},50539:t=>{t.exports=googlesitekit.data},65214:(t,e,n)=>{n.d(e,{G:()=>i,t:()=>r});const r=new Set(n.g?._googlesitekitBaseData?.enabledFeatures||[]);function i(t,e=r){return e instanceof Set&&e.has(t)}},71715:(t,e,n)=>{var r=n(12850),i=n(50539),o=n(24558);!function(t){const e=function(t){const e=new Map,n=(0,i.subscribe)(()=>{(0,i.select)("core/block-editor").getInserterItems().filter(({id:e})=>t.includes(e)).forEach(({id:t,title:n})=>e.set(t,n)),e.size===t.length&&n()});return function(t){return e.get(t)}}(t),n=new Set((0,i.select)("core/block-editor").getBlocks().map(t=>t.clientId));(0,i.subscribe)(()=>{(0,i.select)("core/block-editor").getBlocks().forEach(s=>{const{clientId:a,name:c}=s;t.includes(c)&&!n.has(a)&&(0,i.select)("core/block-editor").isBlockSelected(a)&&(0,r.sx)(`${o.k$}_rrm`,"insert_block",e(c)),n.add(a)})})}(["google-site-kit/rrm-subscribe-with-google","google-site-kit/rrm-contribute-with-google"])},79829:(t,e,n)=>{n.d(e,{Eo:()=>g,JK:()=>p,K5:()=>m,jq:()=>d,mK:()=>l});var r=n(17243),i=n(50532),o=n.n(i),s=n(82871);function a(t,e={}){const{formatUnit:n,formatDecimal:r}=function(t,e={}){const{hours:n,minutes:r,seconds:i}=c(t);return{hours:n,minutes:r,seconds:i,formatUnit(){const{unitDisplay:o="short",...a}=e,c={unitDisplay:o,...a,style:"unit"};return 0===t?d(i,{...c,unit:"second"}):(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?d(i,{...c,unit:"second"}):"",r?d(r,{...c,unit:"minute"}):"",n?d(n,{...c,unit:"hour"}):"").trim()},formatDecimal(){const e=(0,s.sprintf)(
// translators: %s: number of seconds with "s" as the abbreviated unit.
// translators: %s: number of seconds with "s" as the abbreviated unit.
(0,s.__)("%ds","google-site-kit"),i);if(0===t)return e;const o=(0,s.sprintf)(
// translators: %s: number of minutes with "m" as the abbreviated unit.
// translators: %s: number of minutes with "m" as the abbreviated unit.
(0,s.__)("%dm","google-site-kit"),r),a=(0,s.sprintf)(
// translators: %s: number of hours with "h" as the abbreviated unit.
// translators: %s: number of hours with "h" as the abbreviated unit.
(0,s.__)("%dh","google-site-kit"),n);return(0,s.sprintf)(/* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */
(0,s._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),i?e:"",r?o:"",n?a:"").trim()}}}(t,e);try{return n()}catch{return r()}}function c(t){t=parseInt(t,10),Number.isNaN(t)&&(t=0);return{hours:Math.floor(t/60/60),minutes:Math.floor(t/60%60),seconds:Math.floor(t%60)}}function u(t){return 1e6<=t?Math.round(t/1e5)/10:1e4<=t?Math.round(t/1e3):1e3<=t?Math.round(t/100)/10:t}function l(t){let e={};return"%"===t?e={style:"percent",maximumFractionDigits:2}:"s"===t?e={style:"duration",unitDisplay:"narrow"}:t&&"string"==typeof t?e={style:"currency",currency:t}:(0,r.isPlainObject)(t)&&(e={...t}),e}function g(t,e={}){t=(0,r.isFinite)(t)?t:Number(t),(0,r.isFinite)(t)||(console.warn("Invalid number",t,typeof t),t=0);const n=l(e),{style:i="metric"}=n;return"metric"===i?function(t){const e={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=t?(0,s.sprintf)(
// translators: %s: an abbreviated number in millions.
// translators: %s: an abbreviated number in millions.
(0,s.__)("%sM","google-site-kit"),d(u(t),t%10==0?{}:e)):1e4<=t?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),d(u(t))):1e3<=t?(0,s.sprintf)(
// translators: %s: an abbreviated number in thousands.
// translators: %s: an abbreviated number in thousands.
(0,s.__)("%sK","google-site-kit"),d(u(t),t%10==0?{}:e)):d(t,{signDisplay:"never",maximumFractionDigits:1})}(t):"duration"===i?a(t,n):"durationISO"===i?function(t){let{hours:e,minutes:n,seconds:r}=c(t);return r=("0"+r).slice(-2),n=("0"+n).slice(-2),e=("0"+e).slice(-2),"00"===e?`${n}:${r}`:`${e}:${n}:${r}`}(t):d(t,n)}const f=o()(console.warn);function d(t,e={}){const{locale:n=p(),...r}=e;try{return new Intl.NumberFormat(n,r).format(t)}catch(e){f(`Site Kit numberFormat error: Intl.NumberFormat( ${JSON.stringify(n)}, ${JSON.stringify(r)} ).format( ${typeof t} )`,e.message)}const i={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},o=["signDisplay","compactDisplay"],s={};for(const[t,e]of Object.entries(r))i[t]&&e===i[t]||o.includes(t)||(s[t]=e);try{return new Intl.NumberFormat(n,s).format(t)}catch{return new Intl.NumberFormat(n).format(t)}}function m(t,e={}){const{locale:n=p(),style:r="long",type:i="conjunction"}=e;if(Intl.ListFormat){return new Intl.ListFormat(n,{style:r,type:i}).format(t)}
/* translators: used between list items, there is a space after the comma. */const o=(0,s.__)(", ","google-site-kit");return t.join(o)}function p(t=n.g){const e=(0,r.get)(t,["_googlesitekitLegacyData","locale"]);if(e){const t=e.match(/^(\w{2})?(_)?(\w{2})/);if(t&&t[0])return t[0].replace(/_/g,"-")}return t.navigator.language}},82046:(t,e,n)=>{n.d(e,{C:()=>o,p:()=>i});var r=n(15210);function i(t,e={}){return{__html:r.O.sanitize(t,e)}}function o(t){const e="object"==typeof t?t.toString():t;return e?.replace?.(/\/+$/,"")}},82871:t=>{t.exports=googlesitekit.i18n},89318:(t,e,n)=>{n.d(e,{M9:()=>S,sx:()=>N,BI:()=>D});var r=n(17243);const i="_googlesitekitDataLayer",o="data-googlesitekit-gtag";function s(t){return function(){t[i]=t[i]||[],t[i].push(arguments)}}var a=n(65214);const c={activeModules:[],isAuthenticated:!1,referenceSiteURL:"",trackingEnabled:!1,trackingID:"",userIDHash:"",userRoles:[]};const{activeModules:u=[],isSiteKitScreen:l,trackingEnabled:g,trackingID:f,referenceSiteURL:d,userIDHash:m,isAuthenticated:p,userRoles:h}=n.g._googlesitekitTrackingData||{},{GOOGLESITEKIT_VERSION:y}=n.g,b={activeModules:u,trackingEnabled:g,trackingID:f,referenceSiteURL:d,userIDHash:m,isSiteKitScreen:l,userRoles:h,isAuthenticated:p,pluginVersion:y},{enableTracking:k,disableTracking:w,isTrackingEnabled:v,initializeSnippet:_,trackEvent:N,trackEventOnce:D}=function(t,e=n.g,u=n.g){const l={...c,...t};l.referenceSiteURL&&(l.referenceSiteURL=l.referenceSiteURL.toString().replace(/\/+$/,""));const g=function(t,e){const r=s(e);let c;const{activeModules:u,referenceSiteURL:l,userIDHash:g,userRoles:f=[],isAuthenticated:d,pluginVersion:m}=t;return function(){const{document:e}=n.g;if(void 0===c&&(c=!!e.querySelector(`script[${o}]`)),c)return!1;c=!0;const s=f?.length?f.join(","):"";r("js",new Date),r("config",t.trackingID,{groups:"site_kit",send_page_view:t.isSiteKitScreen,domain:l,plugin_version:m||"",enabled_features:Array.from(a.t).join(","),active_modules:u.join(","),authenticated:d?"1":"0",user_properties:{user_roles:s,user_identifier:g}});const p=e.createElement("script");return p.setAttribute(o,""),p.async=!0,p.src=`https://www.googletagmanager.com/gtag/js?id=${t.trackingID}&l=${i}`,e.head.appendChild(p),{scriptTagSrc:`https://www.googletagmanager.com/gtag/js?id=${t.trackingID}&l=${i}`}}}(l,e),f=function(t,e,n,r){const i=s(e);return async function(e,o,s,a){const{trackingEnabled:c}=t;if(!c)return null;n();const u={send_to:"site_kit",event_category:e,event_label:s,value:a};return new Promise(t=>{const n=setTimeout(function(){r.console.warn(`Tracking event "${o}" (category "${e}") took too long to fire.`),t()},1e3);function s(){clearTimeout(n),t()}i("event",o,{...u,event_callback:s}),r._gaUserPrefs?.ioo?.()&&s()})}}(l,e,g,u),d={};return{enableTracking:function(){l.trackingEnabled=!0},disableTracking:function(){l.trackingEnabled=!1},initializeSnippet:g,isTrackingEnabled:function(){return!!l.trackingEnabled},trackEvent:f,trackEventOnce:function(...t){const e=JSON.stringify(t);d[e]||(d[e]=(0,r.once)(f)),d[e](...t)}}}(b);function S(t){t?k():w()}l&&g&&_()},94552:(t,e,n)=>{n.d(e,{A:()=>c});var r=n(62688),i=n.n(r),o=n(4452),s=n.n(o),a=n(62540);function ChangeArrow({direction:t,invertColor:e,width:n,height:r}){return(0,a.jsx)("svg",{className:s()("googlesitekit-change-arrow",`googlesitekit-change-arrow--${t}`,{"googlesitekit-change-arrow--inverted-color":e}),width:n,height:r,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("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().string,invertColor:i().bool,width:i().number,height:i().number},ChangeArrow.defaultProps={direction:"up",invertColor:!1,width:9,height:9};const c=ChangeArrow}},t=>{t.O(0,[660],()=>{return e=71715,t(t.s=e);var e});t.O()}]);