14 lines
32 KiB
JavaScript
14 lines
32 KiB
JavaScript
|
|
(window.__googlesitekit_webpackJsonp=window.__googlesitekit_webpackJsonp||[]).push([[5],{1:function(t,n){t.exports=googlesitekit.i18n},100:function(t,n,e){"use strict";e.d(n,"a",(function(){return v}));var r=e(5),i=e.n(r),a=e(6),o=e.n(a),u=e(15),c=e.n(u),s=e(60),l=e(44);function f(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function d(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?f(Object(e),!0).forEach((function(n){o()(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):f(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}function v(t,n,e,r){var a=Object(s.a)(n);return function(){var n=c()(i.a.mark((function n(o,u,c,s){var f,v,p,g,b,h,m,y,w,k;return i.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(f=t.activeModules,v=t.referenceSiteURL,p=t.trackingEnabled,g=t.trackingID,b=t.userIDHash,h=t.userRoles,m=void 0===h?[]:h,y=t.isAuthenticated,w=t.pluginVersion,p){n.next=3;break}return n.abrupt("return");case 3:return e(),k={send_to:g,event_category:o,event_label:c,value:s,dimension1:v,dimension2:m.join(","),dimension3:b,dimension4:w||"",dimension5:Array.from(l.a).join(","),dimension6:f.join(","),dimension7:y?"1":"0"},n.abrupt("return",new Promise((function(t){var n,e,i=setTimeout((function(){r.console.warn('Tracking event "'.concat(u,'" (category "').concat(o,'") took too long to fire.')),t()}),1e3),c=function(){clearTimeout(i),t()};a("event",u,d(d({},k),{},{event_callback:c})),(null===(n=r._gaUserPrefs)||void 0===n||null===(e=n.ioo)||void 0===e?void 0:e.call(n))&&c()})));case 6:case"end":return n.stop()}}),n)})));return function(t,e,r,i){return n.apply(this,arguments)}}()}},276:function(t,n,e){"use strict";(function(t){var r=e(62),i=e.n(r),a=e(277),o=t._googlesitekitAPIFetchData||{},u=o.nonce,c=o.nonceEndpoint,s=o.preloadedData,l=o.rootURL;i.a.nonceEndpoint=c,i.a.nonceMiddleware=i.a.createNonceMiddleware(u),i.a.rootURLMiddleware=i.a.createRootURLMiddleware(l),i.a.preloadingMiddleware=Object(a.a)(s),i.a.use(i.a.nonceMiddleware),i.a.use(i.a.mediaUploadMiddleware),i.a.use(i.a.rootURLMiddleware),i.a.use(i.a.preloadingMiddleware),n.default=i.a}).call(this,e(26))},277:function(t,n,e){"use strict";var r=e(260);n.a=function(t){var n=Object.keys(t).reduce((function(n,e){return n[Object(r.getStablePath)(e)]=t[e],n}),{}),e=!1;return function(t,i){if(e)return i(t);setTimeout((function(){e=!0}),1e3);var a=t.parse,o=void 0===a||a,u=t.path;if("string"==typeof t.path){var c,s=(null===(c=t.method)||void 0===c?void 0:c.toUpperCase())||"GET",l=Object(r.getStablePath)(u);if(o&&"GET"===s&&n[l]){var f=Promise.resolve(n[l].body);return delete n[l],f}if("OPTIONS"===s&&n[s]&&n[s][l]){var d=Promise.resolve(n[s][l]);return delete n[s][l],d}}return i(t)}}},34:function(t,n,e){"use strict";(function(t){e.d(n,"a",(function(){return y})),e.d(n,"b",(function(){return m}));var r=e(98),i=t._googlesitekitTrackingData||{},a=i.activeModules,o=void 0===a?[]:a,u=i.isSiteKitScreen,c=i.trackingEnabled,s=i.trackingID,l=i.referenceSiteURL,f=i.userIDHash,d=i.isAuthenticated,v={activeModules:o,trackingEnabled:c,trackingID:s,referenceSiteURL:l,userIDHash:f,isSiteKitScreen:u,userRoles:i.userRoles,isAuthenticated:d,pluginVersion:"1.110.0"},p=Object(r.a)(v),g=p.enableTracking,b=p.disableTracking,h=(p.isTrackingEnabled,p.initializeSnippet),m=p.trackEvent;function y(t){t?g():b()}u&&c&&h()}).call(this,e(26))},35:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return i}));var r="_googlesitekitDataLayer",i="data-googlesitekit-gtag"},39:function(t,n,e){"use strict";(function(t){e.d(n,"a",(function(){return f})),e.d(n,"d",(function(){return m})),e.d(n,"f",(function(){return y})),e.d(n,"c",(function(){return w})),e.d(n,"e",(function(){return k})),e.d(n,"b",(function(){return O}));var r=e(5),i=e.n(r),a=e(15),o=e.n(a),u=(e
|
||
|
|
/* translators: %s: number of days */
|
||
|
|
Object(d._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}}}},66:function(t,n,e){"use strict";e.d(n,"b",(function(){return i})),e.d(n,"a",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"d",(function(){return u}));var r=e(94);function i(t){try{return new URL(t).pathname}catch(t){}return null}function a(t,n){try{return new URL(n,t).href}catch(t){}return("string"==typeof t?t:"")+("string"==typeof n?n:"")}function o(t){return"string"!=typeof t?t:t.replace(/^https?:\/\/(www\.)?/i,"").replace(/\/$/,"")}function u(t,n){if(!Object(r.a)(t))return t;if(t.length<=n)return t;var e=new URL(t),i=t.replace(e.origin,"");if(i.length<n)return i;var a=i.length-Math.floor(n)+1;return"…"+i.substr(a)}},7:function(t,n,e){"use strict";e.d(n,"A",(function(){return i.b})),e.d(n,"x",(function(){return a.a})),e.d(n,"B",(function(){return a.b})),e.d(n,"z",(function(){return l})),e.d(n,"h",(function(){return f.a})),e.d(n,"v",(function(){return f.d})),e.d(n,"w",(function(){return f.e})),e.d(n,"s",(function(){return f.c})),e.d(n,"m",(function(){return f.b})),e.d(n,"t",(function(){return g})),e.d(n,"f",(function(){return b})),e.d(n,"b",(function(){return h.b})),e.d(n,"a",(function(){return h.a})),e.d(n,"c",(function(){return h.e})),e.d(n,"k",(function(){return h.g})),e.d(n,"i",(function(){return h.f})),e.d(n,"y",(function(){return h.k})),e.d(n,"j",(function(){return m.b})),e.d(n,"q",(function(){return m.c})),e.d(n,"e",(function(){return m.a})),e.d(n,"o",(function(){return y.b})),e.d(n,"l",(function(){return y.a})),e.d(n,"u",(function(){return y.c})),e.d(n,"r",(function(){return w})),e.d(n,"p",(function(){return k})),e.d(n,"n",(function(){return O})),e.d(n,"d",(function(){return j})),e.d(n,"C",(function(){return _})),e.d(n,"g",(function(){return x}));var r=e(14),i=e(34),a=e(73),o=e(33),u=e.n(o),c=e(90),s=e.n(c),l=function(t){return s()(JSON.stringify(function t(n){var e={};return Object.keys(n).sort().forEach((function(r){var i=n[r];i&&"object"===u()(i)&&!Array.isArray(i)&&(i=t(i)),e[r]=i})),e}(t)))};e(96);var f=e(74);function d(t){return t.replace(new RegExp("\\[([^\\]]+)\\]\\((https?://[^/]+\\.\\w+/?.*?)\\)","gi"),'<a href="$2" target="_blank" rel="noopener noreferrer">$1</a>')}function v(t){return"<p>".concat(t.replace(/\n{2,}/g,"</p><p>"),"</p>")}function p(t){return t.replace(/\n/gi,"<br>")}function g(t){for(var n=t,e=0,r=[d,v,p];e<r.length;e++){n=(0,r[e])(n)}return n}var b=function(t){return t=parseFloat(t),isNaN(t)||0===t?[0,0,0,0]:[Math.floor(t/60/60),Math.floor(t/60%60),Math.floor(t%60),Math.floor(1e3*t)-1e3*Math.floor(t)]},h=e(64),m=e(97),y=e(66);function w(t){var n=parseFloat(t)||0;return!!Number.isInteger(n)&&n>0}function k(t){if("number"==typeof t)return!0;var n=(t||"").toString();return!!n&&!isNaN(n)}var O=function(t){switch(t){case"minute":return 60;case"hour":return 3600;case"day":return 86400;case"week":return 604800;case"month":return 2592e3;case"year":return 31536e3}};function j(t,n){var e=function(t){return"0"===t||0===t};if(e(t)&&e(n))return 0;if(e(t)||Number.isNaN(t))return null;var r=(n-t)/t;return Number.isNaN(r)||!Number.isFinite(r)?null:r}var _=function(t){try{return JSON.parse(t)&&!!t}catch(t){return!1}},x=function(t){if(!t)return"";var n=t.replace(/&#(\d+);/g,(function(t,n){return String.fromCharCode(n)})).replace(/(\\)/g,"");return Object(r.unescape)(n)}},723:function(t,n,e){"use strict";e.d(n,"a",(function(){return s}));var r=e(5),i=e.n(r),a=e(15),o=e.n(a),u=e(7),c=["fetch_error"];function s(t){return l.apply(this,arguments)}function l(){return(l=o()(i.a.mark((function t(n){var e,r,a,o,s,l,f,d;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a=n.method,o=n.type,s=n.identifier,l=n.datapoint,(f=n.error)&&!c.includes(null==f?void 0:f.code)){t.next=3;break}return t.abrupt("return");case 3:return d="code: ".concat(f.code),(null===(e=f.data)||void 0===e?void
|
||
|
|
/* 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?_(i,b(b({},o),{},{unit:"second"})):"",r?_(r,b(b({},o),{},{unit:"minute"})):"",e?_(e,b(b({},o),{},{unit:"hour"})):"").trim()},formatDecimal:function(){var n=Object(p.sprintf)(// translators: %s: number of seconds with "s" as the abbreviated unit.
|
||
|
|
Object(p.__)("%ds","google-site-kit"),i);if(0===t)return n;var a=Object(p.sprintf)(// translators: %s: number of minutes with "m" as the abbreviated unit.
|
||
|
|
Object(p.__)("%dm","google-site-kit"),r),o=Object(p.sprintf)(// translators: %s: number of hours with "h" as the abbreviated unit.
|
||
|
|
Object(p.__)("%dh","google-site-kit"),e);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?n:"",r?a:"",e?o:"").trim()}}},y=function(t){return 1e6<=t?Math.round(t/1e5)/10:1e4<=t?Math.round(t/1e3):1e3<=t?Math.round(t/100)/10:t},w=function(t){var n={minimumFractionDigits:1,maximumFractionDigits:1};return 1e6<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in millions.
|
||
|
|
Object(p.__)("%sM","google-site-kit"),_(y(t),t%10==0?{}:n)):1e4<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
||
|
|
Object(p.__)("%sK","google-site-kit"),_(y(t))):1e3<=t?Object(p.sprintf)(// translators: %s: an abbreviated number in thousands.
|
||
|
|
Object(p.__)("%sK","google-site-kit"),_(y(t),t%10==0?{}:n)):_(t,{signDisplay:"never",maximumFractionDigits:1})};function k(t){var n={};return"%"===t?n={style:"percent",maximumFractionDigits:2}:"s"===t?n={style:"duration",unitDisplay:"narrow"}:t&&"string"==typeof t?n={style:"currency",currency:t}:Object(f.isPlainObject)(t)&&(n=b({},t)),n}function O(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(f.isFinite)(t)?t:Number(t),Object(f.isFinite)(t)||(console.warn("Invalid number",t,o()(t)),t=0);var e=k(n),r=e.style,i=void 0===r?"metric":r;return"metric"===i?w(t):"duration"===i?h(t,e):_(t,e)}var j=v()(console.warn),_=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.locale,r=void 0===e?D():e,a=l()(n,["locale"]);try{return new Intl.NumberFormat(r,a).format(t)}catch(n){j("Site Kit numberFormat error: Intl.NumberFormat( ".concat(JSON.stringify(r),", ").concat(JSON.stringify(a)," ).format( ").concat(o()(t)," )"),n.message)}for(var u={currencyDisplay:"narrow",currencySign:"accounting",style:"unit"},c=["signDisplay","compactDisplay"],s={},f=0,d=Object.entries(a);f<d.length;f++){var v=i()(d[f],2),p=v[0],g=v[1];u[p]&&g===u[p]||(c.includes(p)||(s[p]=g))}try{return new Intl.NumberFormat(r,s).format(t)}catch(n){return new Intl.NumberFormat(r).format(t)}},x=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=n.locale,r=void 0===e?D():e,i=n.style,a=void 0===i?"long":i,o=n.type,u=void 0===o?"conjunction":o;if(Intl.ListFormat){var c=new Intl.ListFormat(r,{style:a,type:u});return c.format(t)}
|
||
|
|
/* translators: used between list items, there is a space after the comma. */var s=Object(p.__)(", ","google-site-kit");return t.join(s)},D=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,e=Object(f.get)(n,["_googlesitekitLegacyData","locale"]);if(e){var r=e.match(/^(\w{2})?(_)?(\w{2})/);if(r&&r[0])return r[0].replace(/_/g,"-")}return n.navigator.language}}).call(this,e(26))},83:function(t,n,e){"use strict";(function(t){var r=e(0),i=e.n(r),a=e(12),o=e.n(a);function ChangeArrow(n){var e=n.direction,r=n.invertColor,i=n.width,a=n.height;return t.createElement("svg",{className:o()("googlesitekit-change-arrow","googlesitekit-change-arrow--".concat(e),{"googlesitekit-change-arrow--inverted-color":r}),width:i,height:a,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.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},n.a=ChangeArrow}).call(this,e(3))},84:function(t,n,e){"use strict";(function(t){e.d(n,"a",(function(){return i}));var r=e(134),i=e.n(r)()(t)}).call(this,e(26))},9:function(t,n,e){"use strict";e.d(n,"a",(function(){return r})),e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return a})),e.d(n,"o",(function(){return o})),e.d(n,"t",(function(){return u})),e.d(n,"v",(function(){return c})),e.d(n,"r",(function(){return s})),e.d(n,"s",(function(){return l})),e.d(n,"q",(function(){return f})),e.d(n,"p",(function(){return d})),e.d(n,"u",(function(){return v})),e.d(n,"d",(function(){return p})),e.d(n,"e",(function(){return g})),e.d(n,"f",(function(){return b})),e.d(n,"g",(function(){return h})),e.d(n,"h",(function(){return m})),e.d(n,"i",(function(){return y})),e.d(n,"j",(function(){return w})),e.d(n,"k",(function(){return k})),e.d(n,"l",(function(){return O})),e.d(n,"m",(function(){return j})),e.d(n,"n",(function(){return _})),e.d(n,"w",(function(){return x}));var r="core/user",i="connected_url_mismatch",a="__global",o="googlesitekit_authenticate",u="googlesitekit_setup",c="googlesitekit_view_dashboard",s="googlesitekit_manage_options",l="googlesitekit_read_shared_module_data",f="googlesitekit_manage_module_sharing_options",d="googlesitekit_delegate_module_sharing_management",v="googlesitekit_update_plugins",p="kmAnalyticsAdSenseTopEarningContent",g="kmAnalyticsEngagedTrafficSource",b="kmAnalyticsLoyalVisitors",h="kmAnalyticsNewVisitors",m="kmAnalyticsPopularContent",y="kmAnalyticsPopularProducts",w="kmAnalyticsTopCities",k="kmAnalyticsTopConvertingTrafficSource",O="kmAnalyticsTopCountries",j="kmAnalyticsTopTrafficSource",_="kmSearchConsolePopularKeywords",x=[].concat([p,g,b,h,m,y,w,k,O,j],[_])},958:function(t,n,e){"use strict";e.r(n),function(t){var r=e(629);void 0===t.googlesitekit&&(t.googlesitekit={}),void 0===t.googlesitekit.api&&(t.googlesitekit.api=r.a),n.default=r.a}.call(this,e(26))},96:function(t,n,e){"use strict";(function(t){e(51),e(52)}).call(this,e(26))},97:function(t,n,e){"use strict";(function(t){e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return u}));var r=e(197),i=e(83),a=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Number.isNaN(Number(n)))return"";var a=e.invertColor,o=void 0!==a&&a;return Object(r.a)(t.createElement(i.a,{direction:n>0?"up":"down",invertColor:o}))},o=function(t){var n,e,r,i,a,o,u,c,s,l,f,d,v,p,g;if(void 0!==t)return 1===(null==t||null===(n=t[0])||void 0===n||null===(e=n.data)||void 0===e||null===(r=e.rows)||void 0===r?void 0:r.length)||(null==t||null===(i=t[0])||void 0===i||null===(a=i.data)||void 0===a||null===(o=a.rows)||void 0===o||null===(u=o[0])||void 0===u||null===(c=u.metrics)||void 0===c||null===(s=c[0])||void 0===s||null===(l=s.values)||void 0===l?void 0:l[0])===(null==t||null===(f=t[0])||void 0===f||null===(d=f.data)||void 0===d||null===(v=d.totals)||void 0===v||null=
|