(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[11],{1:function(e,t){e.exports=googlesitekit.i18n},1085:function(e,t,r){"use strict";r.r(t);var n=r(4),o=r.n(n),i=r(5),a=r.n(i),c=r(6),u=r.n(c),s=r(35),f=r.n(s),l=r(15),p=r(45);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 g(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.url;E()(Object(M.a)(t),"a valid url is required to fetch HTML.")},controlCallback:(V=T()(a.a.mark((function e(t){var r,n,o,i,c;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n={credentials:"omit"},o={tagverify:1,timestamp:Date.now()},e.next=5,fetch(Object(F.a)(r,o),n);case 5:return i=e.sent,e.prev=6,e.next=9,i.text();case 9:if(""!==(c=e.sent)&&void 0!==c){e.next=12;break}return e.abrupt("return",null);case 12:return e.abrupt("return",c);case 15:return e.prev=15,e.t0=e.catch(6),e.abrupt("return",null);case 18:case"end":return e.stop()}}),e,null,[[6,15]])}))),function(e){return V.apply(this,arguments)}),reducerCallback:function(e,t,r){var n=r.url;return G(G({},e),{},{htmlForURL:G(G({},e.htmlForURL),{},u()({},n,t))})}}),z={resetHTMLForURL:a.a.mark((function e(t){var r,n;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.a.commonActions.getRegistry();case 2:return r=e.sent,n=r.dispatch,e.next=6,{payload:{url:t},type:"RESET_HTML_FOR_URL"};case 6:return e.abrupt("return",n(l.c).invalidateResolutionForStoreSelector("getHTMLForURL"));case 7:case"end":return e.stop()}}),e)})),checkForSetupTag:a.a.mark((function e(){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{},type:"CHECK_FOR_SETUP_TAG"};case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})),waitForHTMLForURL:a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,{payload:{url:t},type:"WAIT_FOR_HTML_FOR_URL"};case 2:case"end":return e.stop()}}),e)}))},$=(A={},u()(A,"WAIT_FOR_HTML_FOR_URL",K((function(e){return function(t){var r=t.payload.url;return e.__experimentalResolveSelect(l.c).getHTMLForURL(r)}}))),u()(A,"CHECK_FOR_SETUP_TAG",K((function(e){return T()(a.a.mark((function t(){var r,n,o,i,c,u,s,p;return a.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=!1,t.prev=1,t.next=4,f.a.set("core","site","setup-tag");case 4:return c=t.sent,o=c.token,t.next=8,e.select(l.c).getHomeURL();case 8:return u=t.sent,t.next=11,e.dispatch(l.c).fetchGetHTMLForURL(u);case 11:s=t.sent,n=s.response,r=s.error,t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),r="check_fetch_failed";case 19:return r||(p=Object(q.a)(n,[/0&&void 0!==arguments[0]?arguments[0]:{},t=e.notificationID,r=e.notificationState;E()([xe,_e].includes(r),"notificationState must be accepted or dismissed."),E()(Ne(t),"a valid notification ID is required to mark a notification.")}}),Ie={acceptNotification:Object(De.f)((function(e){E()(Ne(e),"a valid notification ID is required to accept a notification.")}),a.a.mark((function e(t){var r,n,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce.actions.fetchMarkNotification({notificationID:t,notificationState:xe});case 2:if(r=e.sent,n=r.response,!(o=r.error)){e.next=8;break}return e.next=8,Ae.a.receiveError(o,"acceptNotification",[t]);case 8:return e.abrupt("return",{response:n,error:o});case 9:case"end":return e.stop()}}),e)}))),dismissNotification:Object(De.f)((function(e){E()(Ne(e),"a valid notification ID is required to dismiss a notification.")}),a.a.mark((function e(t){var r,n,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce.actions.fetchMarkNotification({notificationID:t,notificationState:_e});case 2:if(r=e.sent,n=r.response,!(o=r.error)){e.next=8;break}return e.next=8,Ae.a.receiveError(o,"dismissNotification",[t]);case 8:return e.abrupt("return",{response:n,error:o});case 9:case"end":return e.stop()}}),e)})))},Te=o.a.combineStores(Object(Ue.a)("core","site","notifications",{storeName:l.c}),Ce,{actions:Ie}),Me=r(1119);function Fe(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 qe(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{},c=i.client,s=void 0===c||c,l=i.server,g=void 0===l||l,b=i.storeName,y=void 0===b?void 0:b;u()(t,"type is required."),u()(r,"identifier is required."),u()(n,"datapoint is required.");var m=y||"".concat(t,"/").concat(r),O={serverNotifications:g?void 0:{},clientNotifications:s?void 0:{}},h=Object(d.a)({baseName:"getNotifications",controlCallback:function(){return f.a.get(t,r,n)},reducerCallback:function(e,t){return v(v({},e),{},{serverNotifications:t.reduce((function(e,t){return v(v({},e),{},a()({},t.id,t))}),{})})}}),j={addNotification:function(e){return u()(e,"notification is required."),{payload:{notification:e},type:"ADD_NOTIFICATION"}},removeNotification:function(e){return u()(e,"id is required."),{payload:{id:e},type:"REMOVE_NOTIFICATION"}}},w={},R=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:O,r=arguments.length>1?arguments[1]:void 0,n=r.type,o=r.payload;switch(n){case"ADD_NOTIFICATION":var i=o.notification;return v(v({},t),{},{clientNotifications:v(v({},t.clientNotifications||{}),{},a()({},i.id,i))});case"REMOVE_NOTIFICATION":var c=o.id;if(void 0===t.clientNotifications||void 0===t.clientNotifications[c])return void 0!==t.serverNotifications&&void 0!==t.serverNotifications[c]&&e.console.warn('Cannot remove server-side notification with ID "'.concat(c,'"; this may be changed in a future release.')),t;var u=v({},t.clientNotifications);return delete u[c],v(v({},t),{},{clientNotifications:u});default:return t}},S={getNotifications:o.a.mark((function e(){var t;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.a.commonActions.getRegistry();case 2:if(t=e.sent,t.select(m).getNotifications()){e.next=7;break}return e.next=7,h.actions.fetchGetNotifications();case 7:case"end":return e.stop()}}),e)}))};g||delete S.getNotifications;var E={getNotifications:function(e){var t=e.serverNotifications,r=e.clientNotifications;return void 0===t&&void 0===r?t:Object.values(v(v({},t||{}),r||{}))}},P=p.a.combineStores(h,{initialState:O,actions:j,controls:w,reducer:R,resolvers:S,selectors:E});return v(v({},P),{},{STORE_NAME:m})}}).call(this,r(21))},39:function(e,t,r){"use strict";r.d(t,"c",(function(){return n})),r.d(t,"e",(function(){return o})),r.d(t,"d",(function(){return i})),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.",o="Invalid dateString parameter, it must be a string.",i='Invalid date range, it must be a string with the format "last-x-days".',a=3600,c=86400},4:function(e,t){e.exports=googlesitekit.data},40: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,"a",(function(){return j}));var n=r(5),o=r.n(n),i=r(6),a=r.n(i),c=r(7),u=r.n(c),s=r(61),f=r.n(s),l=r(56),p=r(86),d=r(9);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 v(e){for(var t=1;t1?r-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:i;return t instanceof Set&&t.has(e)}}).call(this,r(21))},47:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(40),o=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))}},52:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return i})),r.d(t,"d",(function(){return a})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return u}));var n=r(101);function o(e){try{return new URL(e).pathname}catch(e){}return null}function i(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),o=e.replace(r.origin,"");if(o.length2&&void 0!==arguments[2]?arguments[2]:{},n=r.clearMatchingLegacyError,o=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:o}}},clearErrors:function(e){return{type:"CLEAR_ERRORS",payload:{baseName:e}}}};function y(e){s()(e,"storeName must be defined.");var t={errors:{},errorArgs:{},error:void 0};var r={getErrorForSelector:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];s()(n,"selectorName is required.");var i=r.getError(t,n,o);if(i)return g(g({},i),{},{selectorData:{storeName:e,name:n,args:o}})},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,o=e.errors;return t||r?(s()(t,"baseName is required."),o[v(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 o=t(e).getMetaDataForError(n);if(o){var i=o.baseName,a=o.args;if(!!t(e)[i])return{storeName:e,name:i,args:a}}return null}})),hasErrors:function(e){return r.getErrors(e).length>0}};return{initialState:t,actions:b,controls:{},reducer:function(e,t){var r=t.type,n=t.payload;switch(r){case"RECEIVE_ERROR":var i=n.baseName,a=n.args,c=n.error;if(i){var u=v(i,a);return g(g({},e),{},{errors:g(g({},e.errors||{}),{},o()({},u,c)),errorArgs:g(g({},e.errorArgs||{}),{},o()({},u,a))})}return g(g({},e),{},{error:c});case"CLEAR_ERROR":var s=n.baseName,f=n.args,l=g({},e);if(s){var p=v(s,f);l.errors=g({},e.errors||{}),l.errorArgs=g({},e.errorArgs||{}),n.clearMatchingLegacyError&&l.error===l.errors[p]&&delete l.error,delete l.errors[p],delete l.errorArgs[p]}else l.error=void 0;return l;case"CLEAR_ERRORS":var d=n.baseName,b=g({},e);if(d)for(var y in b.errors=g({},e.errors||{}),b.errorArgs=g({},e.errorArgs||{}),b.errors)(y===d||y.startsWith("".concat(d,"::")))&&(delete b.errors[y],delete b.errorArgs[y]);else b.errors={},b.errorArgs={},b.error=void 0;return b;default:return e}},resolvers:{},selectors:r}}},67:function(e,t,r){"use strict";(function(e){var n=r(0),o=r.n(n),i=r(11),a=r.n(i);function ChangeArrow(t){var r=t.direction,n=t.invertColor,o=t.width,i=t.height;return e.createElement("svg",{className:a()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(r),{"googlesitekit-change-arrow--inverted-color":n}),width:o,height:i,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:o.a.string,invertColor:o.a.bool,width:o.a.number,height:o.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 a})),r.d(t,"b",(function(){return c}));var n=r(30),o=r.n(n),i=r(77),a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{__html:i.a.sanitize(e,t)}};function c(e){var t,r="object"===o()(e)?e.toString():e;return null==r||null===(t=r.replace)||void 0===t?void 0:t.call(r,/\/+$/,"")}},71:function(e,t,r){"use strict";r.d(t,"a",(function(){return L})),r.d(t,"b",(function(){return k})),r.d(t,"c",(function(){return U})),r.d(t,"d",(function(){return A})),r.d(t,"e",(function(){return x})),r.d(t,"g",(function(){return N})),r.d(t,"f",(function(){return C}));var n,o=r(5),i=r.n(o),a=r(24),c=r.n(a),u=r(6),s=r.n(u),f=r(7),l=r.n(f),p=r(206),d=r.n(p),g=r(74),v=r.n(g),b=r(116);function y(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 m(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:n,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.reduce((function(e,r){return r(e,t)}),e)}},R=O,S=O,E=O,P=function(e){return e},L=function(){for(var e=arguments.length,t=new Array(e),r=0;r=1?r[o]+1:1,r[o]>1&&t.push(o)}return t},A={actions:k,controls:U,reducer:P},x=function(e){return function(t){return _(e(t))}},_=v()((function(e){return d()(e,(function(e,t){return function(){var r=e.apply(void 0,arguments);return l()(void 0!==r,"".concat(t,"(...) is not resolved")),r}}))}));function N(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.negate,n=void 0!==r&&r,o=Object(b.b)((function(t){return function(r){var o=!n,i=!!n;try{for(var a=arguments.length,c=new Array(a>1?a-1:0),u=1;u1?n-1:0),i=1;i0&&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)},f=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]},l=r(47);var p=r(1);function d(){var e=function(e){return Object(p.sprintf)( /* translators: %s: number of days */ Object(p._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}}}},731:function(e,t,r){"use strict";(function(e){var n=r(14),o=r.n(n),i=r(22),a=r.n(i),c=r(5),u=r.n(c),s=r(6),f=r.n(s),l=r(7),p=r.n(l),d=r(732),g=r.n(d),v=r(245),b=r(435),y=r(4),m=r.n(y),O=r(15),h=r(9);function j(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 w(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},o=e(O.c).getSiteInfo()||{},i=o.adminURL;if(void 0===i||void 0===r)return i;var c="/"===i[i.length-1]?i:"".concat(i,"/"),u=r,s="admin.php";if(-1!==r.indexOf(".php?")){var f=r.split("?");if(!(u=g.a.parse(f.pop()).page))return i;s=f.shift()}n.page;var l=a()(n,["page"]);return Object(v.a)("".concat(c).concat(s),w({page:u},l))}})),getAMPMode:S("ampMode"),getCurrentEntityID:S("currentEntityID"),getCurrentEntityTitle:S("currentEntityTitle"),getCurrentEntityType:S("currentEntityType"),getCurrentEntityURL:S("currentEntityURL"),getHomeURL:S("homeURL"),getReferenceSiteURL:S("referenceSiteURL"),getProxySetupURL:S("proxySetupURL"),getProxyPermissionsURL:S("proxyPermissionsURL"),getCurrentReferenceURL:R((function(e){return function(){var t=e(O.c).getCurrentEntityURL();return null!==t?t:e(O.c).getReferenceSiteURL()}})),isAMP:R((function(e){return function(){var t=e(O.c).getAMPMode();if(void 0!==t)return!!t}})),isPrimaryAMP:R((function(e){return function(){var t=e(O.c).getAMPMode();if(void 0!==t)return t===O.a}})),isSecondaryAMP:R((function(e){return function(){var t=e(O.c).getAMPMode();if(void 0!==t)return t===O.b}})),getTimezone:S("timezone"),isUsingProxy:S("usingProxy"),getSiteName:S("siteName"),getSetupErrorCode:S("setupErrorCode"),getSetupErrorMessage:S("setupErrorMessage"),getSetupErrorRedoURL:S("setupErrorRedoURL"),getProxySupportLinkURL:S("proxySupportLinkURL"),getWidgetsAdminURL:S("widgetsAdminURL"),getPostTypes:S("postTypes"),getPermaLinkParam:function(t){if(t.permaLink)return t.permaLink;var r=Object(b.a)(e.location.href,"permaLink");return r||!1},isWebStoriesActive:S("webStoriesActive"),isSiteURLMatch:R((function(e){return function(t,r){var n=e(O.c).getReferenceSiteURL();return Object(h.t)(n)===Object(h.t)(r)}})),getSiteURLPermutations:R((function(e){return function(){var t=e(O.c).getReferenceSiteURL(),r=[],n=new URL(t);return n.hostname=n.hostname.replace(/^www\./i,""),n.protocol="http",r.push(Object(h.A)(n)),n.protocol="https",r.push(Object(h.A)(n)),n.hostname="www."+n.hostname,r.push(Object(h.A)(n)),n.protocol="http",r.push(Object(h.A)(n)),r}})),getWPVersion:S("wpVersion"),getUpdateCoreURL:S("updateCoreURL"),hasMinimumWordPressVersion:R((function(e){return function(t,r){p()(r,"minimumWPVersion is required.");var n=e(O.c).getWPVersion()||{},i=n.major,a=n.minor;if(void 0!==i&&void 0!==a){var c=r.split(".").map((function(e){return parseInt(e,10)})),u=o()(c,2),s=u[0],f=u[1];return s1&&void 0!==arguments[1]?arguments[1]:{},r=m(e,t),n=r.formatUnit,o=r.formatDecimal;try{return n()}catch(e){return o()}},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),o=Math.floor(e%60);return{hours:r,minutes:n,seconds:o,formatUnit:function(){var i=t.unitDisplay,a=b(b({unitDisplay:void 0===i?"short":i},f()(t,["unitDisplay"])),{},{style:"unit"});return 0===e?R(o,b(b({},a),{},{unit:"second"})):Object(g.sprintf)( /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?R(o,b(b({},a),{},{unit:"second"})):"",n?R(n,b(b({},a),{},{unit:"minute"})):"",r?R(r,b(b({},a),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var t=Object(g.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit. Object(g.__)("%ds","google-site-kit"),o);if(0===e)return t;var i=Object(g.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit. Object(g.__)("%dm","google-site-kit"),n),a=Object(g.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit. Object(g.__)("%dh","google-site-kit"),r);return Object(g.sprintf)( /* translators: 1: formatted seconds, 2: formatted minutes, 3: formatted hours */ Object(g._x)("%3$s %2$s %1$s","duration of time: hh mm ss","google-site-kit"),o?t:"",n?i:"",r?a:"").trim()}}},O=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(g.sprintf)(// translators: %s: an abbreviated number in millions. Object(g.__)("%sM","google-site-kit"),R(O(e),e%10==0?{}:t)):1e4<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands. Object(g.__)("%sK","google-site-kit"),R(O(e))):1e3<=e?Object(g.sprintf)(// translators: %s: an abbreviated number in thousands. Object(g.__)("%sK","google-site-kit"),R(O(e),e%10==0?{}:t)):R(e,{signDisplay:"never",maximumFractionDigits:1})},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e=Object(l.isFinite)(e)?e:Number(e),Object(l.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 y(e,{unitDisplay:"narrow"});t&&"string"==typeof t?r={style:"currency",currency:t}:Object(l.isPlainObject)(t)&&(r=b({},t))}var n=r,o=n.style,i=void 0===o?"metric":o;return"metric"===i?h(e):"duration"===i?y(e,t):R(e,r)},w=d()(console.warn),R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?E():r,i=f()(t,["locale"]);try{return new Intl.NumberFormat(n,i).format(e)}catch(t){w("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(n),", ").concat(JSON.stringify(i)," ).format( ").concat(a()(e)," )"),t.message)}for(var c={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},u=["signDisplay","compactDisplay"],s={},l=0,p=Object.entries(i);l1&&void 0!==arguments[1]?arguments[1]:{},r=t.locale,n=void 0===r?E():r,o=t.style,i=void 0===o?"long":o,a=t.type,c=void 0===a?"conjunction":a;if(Intl.ListFormat){var u=new Intl.ListFormat(n,{style:i,type:c});return u.format(e)} /* translators: used between list items, there is a space after the comma. */var s=Object(g.__)(", ","google-site-kit");return e.join(s)},E=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,r=Object(l.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(21))},77:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return o}));var n=r(130),o=r.n(n)()(e)}).call(this,r(21))},85:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return c})),r.d(t,"b",(function(){return s}));var n=r(14),o=r.n(n);function i(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 a(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 a(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,u=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){u=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&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,a={},c=i(r.searchParams.entries());try{for(c.s();!(n=c.n()).done;){var s=o()(n.value,2),f=s[0],l=s[1];a[f]=l}}catch(e){c.e(e)}finally{c.f()}return a}}).call(this,r(21))},86:function(e,t,r){"use strict";r.d(t,"b",(function(){return n})),r.d(t,"a",(function(){return o})),r.d(t,"c",(function(){return i}));var n=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},o=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("")}},88:function(e,t,r){"use strict";(function(e){r(41),r(42)}).call(this,r(21))},89:function(e,t,r){"use strict";(function(e){r.d(t,"b",(function(){return i})),r.d(t,"c",(function(){return a})),r.d(t,"a",(function(){return c}));var n=r(177),o=r(67),i=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(t)))return"";var i=r.invertColor,a=void 0!==i&&i;return Object(n.a)(e.createElement(o.a,{direction:t>0?"up":"down",invertColor:a}))},a=function(e){var t,r,n,o,i,a,c,u,s,f,l,p,d,g,v;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===(o=e[0])||void 0===o||null===(i=o.data)||void 0===i||null===(a=i.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===(f=s.values)||void 0===f?void 0:f[0])===(null==e||null===(l=e[0])||void 0===l||null===(p=l.data)||void 0===p||null===(d=p.totals)||void 0===d||null===(g=d[0])||void 0===g||null===(v=g.values)||void 0===v?void 0:v[0])},c=function(e,t){return e>0&&t>0?e/t-1:e>0?1:t>0?-1:0}}).call(this,r(3))},9:function(e,t,r){"use strict";r.d(t,"z",(function(){return c.b})),r.d(t,"w",(function(){return u.a})),r.d(t,"A",(function(){return u.b})),r.d(t,"y",(function(){return d})),r.d(t,"e",(function(){return g.a})),r.d(t,"l",(function(){return g.b})),r.d(t,"u",(function(){return v.c})),r.d(t,"v",(function(){return v.d})),r.d(t,"r",(function(){return v.b})),r.d(t,"k",(function(){return v.a})),r.d(t,"s",(function(){return O})),r.d(t,"f",(function(){return h})),r.d(t,"b",(function(){return j.b})),r.d(t,"a",(function(){return j.a})),r.d(t,"h",(function(){return j.e})),r.d(t,"x",(function(){return j.j})),r.d(t,"i",(function(){return w.b})),r.d(t,"p",(function(){return w.c})),r.d(t,"d",(function(){return w.a})),r.d(t,"n",(function(){return R.b})),r.d(t,"j",(function(){return R.a})),r.d(t,"t",(function(){return R.d})),r.d(t,"q",(function(){return S})),r.d(t,"o",(function(){return E})),r.d(t,"m",(function(){return P})),r.d(t,"c",(function(){return L})),r.d(t,"B",(function(){return k})),r.d(t,"g",(function(){return U}));var n=r(129),o=r.n(n),i=r(121),a=r.n(i),c=r(33),u=r(69),s=r(30),f=r.n(s),l=r(82),p=r.n(l),d=function(e){return p()(JSON.stringify(function e(t){var r={};return Object.keys(t).sort().forEach((function(n){var o=t[n];o&&"object"===f()(o)&&!Array.isArray(o)&&(o=e(o)),r[n]=o})),r}(e)))};var g=r(85),v=(r(88),r(75));function b(e){return e.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'$1')}function y(e){return"

".concat(e.replace(/\n{2,}/g,"

"),"

")}function m(e){return e.replace(/\n/gi,"
")}function O(e){for(var t=e,r=0,n=[b,y,m];r0}function E(e){if("number"==typeof e)return!0;var t=(e||"").toString();return!!t&&!isNaN(t)}var 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}},L=function(e,t){if("0"===e||0===e||isNaN(e))return null;var r=(t-e)/e;return isNaN(r)||!o()(r)?null:r},k=function(e){try{return JSON.parse(e)&&!!e}catch(e){return!1}},U=function(e){if(!e)return"";var t=e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/(\\)/g,"");return a()(t)}},90:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return f}));var n=r(6),o=r.n(n),i=r(91),a=r(92);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;t1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=u(u({},s),t);o.referenceSiteURL&&(o.referenceSiteURL=o.referenceSiteURL.toString().replace(/\/+$/,""));var c=Object(i.a)(o,r);return{enableTracking:function(){o.trackingEnabled=!0},disableTracking:function(){o.trackingEnabled=!1},initializeSnippet:c,isTrackingEnabled:function(){return!!o.trackingEnabled},trackEvent:Object(a.a)(o,r,c,n)}}}).call(this,r(21))},91:function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return i}));var n=r(54),o=r(31);function i(t,r){var i,a=Object(n.a)(r);return function(){var r=e.document;if(void 0===i&&(i=!!r.querySelector("script[".concat(o.b,"]"))),!i){var n=r.createElement("script");n.setAttribute(o.b,""),n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id=".concat(t.trackingID,"&l=").concat(o.a),r.head.appendChild(n),a("js",new Date),a("config",t.trackingID,{send_page_view:t.isSiteKitScreen}),i=!0}}}}).call(this,r(21))},92:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(5),o=r.n(n),i=r(6),a=r.n(i),c=r(16),u=r.n(c),s=r(54),f=r(46);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 p(e){for(var t=1;t