vart;t=function(){returnfunction(e){vart={};functionn(r){if(t[r])returnt[r].exports;vari=t[r]={i:r,l:!1,exports:{}};returne[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}returnn.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeofSymbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)returne;if(4&t&&"object"==typeofe&&e&&e.__esModule)returne;varr=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeofe)for(variine)n.d(r,i,function(t){returne[t]}.bind(null,i));returnr},n.n=function(e){vart=e&&e.__esModule?function(){returne.default}:function(){returne};returnn.d(t,"a",t),t},n.o=function(e,t){returnObject.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){vart;if("SELECT"===e.nodeName)e.focus(),t=e.value;elseif("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){varn=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();varr=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}returnt}},function(e,t){functionn(){}n.prototype={on:function(e,t,n){varr=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){varr=this;functioni(){r.off(e,i),t.apply(n,arguments)}returni._=t,this.on(e,i,n)},emit:function(e){for(vart=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);returnthis},off:function(e,t){varn=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(vars=0,a=r.length;s<a;s++)r[s].fn!==t&&r[s].fn._!==t&&i.push(r[s]);returni.length?n[e]=i:deleten[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){varr=n(3),i=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)thrownewError("Missing required arguments");if(!r.string(t))thrownewTypeError("Second argument must be a String");if(!r.fn(n))thrownewTypeError("Third argument must be a Function");if(r.node(e))returnfunction(e,t,n){returne.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))returnfunction(e,t,n){returnArray.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))returnfunction(e,t,n){returni(document.body,e,t,n)}(e,t,n);thrownewTypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){returnvoid0!==e&&einstanceofHTMLElement&&1===e.nodeType},t.nodeList=function(e){varn=Object.prototype.toString.call(e);returnvoid0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"ine&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeofe||einstanceofString},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){varr=n(5);functioni(e,t,n,r,i){vara=s.apply(this,arguments);returne.addEventListener(n,a,i),{destroy:function(){e.removeEventListener(n,a,i)}}}functions(e,t,n,i){returnfunction(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,s){return"function"==typeofe.addEventListener?i.apply(null,arguments):"function"==typeofn?i.bind(null,document).apply(null,arguments):("string"==typeofe&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){returni(e,t,n,r,s)})))}},function(e,t){if("undefined"!=typeofElement&&!Element.prototype.matches){varn=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeofe.matches&
t.read=function(e,t,n,r,i){vars,a,o=8*i-r-1,c=(1<<o)-1,l=c>>1,p=-7,u=n?i-1:0,d=n?-1:1,h=e[t+u];for(u+=d,s=h&(1<<-p)-1,h>>=-p,p+=o;p>0;s=256*s+e[t+u],u+=d,p-=8);for(a=s&(1<<-p)-1,s>>=-p,p+=r;p>0;a=256*a+e[t+u],u+=d,p-=8);if(0===s)s=1-l;else{if(s===c)returna?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),s-=l}return(h?-1:1)*a*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){vara,o,c,l=8*s-i-1,p=(1<<l)-1,u=p>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=p):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+u>=1?d/c:d*Math.pow(2,1-u))*c>=2&&(a++,c/=2),a+u>=p?(o=0,a=p):a+u>=1?(o=(t*c-1)*Math.pow(2,i),a+=u):(o=t*Math.pow(2,u-1)*Math.pow(2,i),a=0));i>=8;e[n+h]=255&o,h+=f,o/=256,i-=8);for(a=a<<i|o,l+=i;l>0;e[n+h]=255&a,h+=f,a/=256,l-=8);e[n+h-f]|=128*m}},9503:function(e){"function"==typeofObject.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;varn=function(){};n.prototype=t.prototype,e.prototype=newn,e.prototype.constructor=e}}},215:function(e,t,n){"use strict";varr="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},i=o(n(3804)),s=o(n(7234)),a=o(n(6974));functiono(e){returne&&e.__esModule?e:{default:e}}varc=void0;functionl(e,t){varn,a,o,p,u,d,h,f,m=[],g={};for(d=0;d<e.length;d++)if("string"!==(u=e[d]).type){if(!t.hasOwnProperty(u.value)||void0===t[u.value])thrownewError("Invalid interpolation, missing component node: `"+u.value+"`");if("object"!==r(t[u.value]))thrownewError("Invalid interpolation, component node must be a ReactElement or null: `"+u.value+"`","\n> "+c);if("componentClose"===u.type)thrownewError("Missing opening component token: `"+u.value+"`");if("componentOpen"===u.type){n=t[u.value],o=d;break}m.push(t[u.value])}elsem.push(u.value);returnn&&(p=function(e,t){varn,r,i=t[e],s=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===i.value){if("componentOpen"===n.type){s++;continue}if("componentClose"===n.type){if(0===s)returnr;s--}}thrownewError("Missing closing component token `"+i.value+"`")}(o,e),h=l(e.slice(o+1,p),t),a=i.default.cloneElement(n,{},h),m.push(a),p<e.length-1&&(f=l(e.slice(p+1),t),m=m.concat(f))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(g["interpolation-child-"+t]=e)})),(0,s.default)(g))}t.Z=function(e){vart=e.mixedString,n=e.components,i=e.throwErrors;if(c=t,!n)returnt;if("object"!==(void0===n?"undefined":r(n))){if(i)thrownewError("Interpolation Error: unable to process `"+t+"` because components is not an object");returnt}vars=(0,a.default)(t);try{returnl(s,n)}catch(o){if(i)thrownewError("Interpolation Error: unable to process `"+t+"` because of error `"+o.message+"`");returnt}}},6974:function(e){"use strict";functiont(e){returne.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){returne.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},4546:function(e){"use strict";e.exports=function(e,t,n,r,i,s,a,o){if(!e){varc;if(void0===t)c=newError("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{varl=[n,r,i,s,a,o],p=0;(c=newError(t.replace(/%s/g,(function(){returnl[p++]})))).name="Invariant Violation"}throwc.framesToPop=1,c}}},8304:function(e,t,n){"use strict";varr=n(7828)(),i=n(6422)("Object.prototype.toString"),s=function(e){return!(r&&e&&"object"==typeofe&&Symbol.toStringTagine)&&"[object Arguments]"===i(e)},a=function(e){return!!s(e)||null!==e&&"object"==typeofe&&"number"==typeofe.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},o=function(){retu
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
varr=n(778),i=r.Buffer;functions(e,t){for(varnine)t[n]=e[n]}functiona(e,t,n){returni(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),s(i,a),a.from=function(e,t,n){if("number"==typeofe)thrownewTypeError("Argument must not be a number");returni(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeofe)thrownewTypeError("Argument must be a number");varr=i(e);returnvoid0!==t?"string"==typeofn?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeofe)thrownewTypeError("Argument must be a number");returni(e)},a.allocUnsafeSlow=function(e){if("number"!=typeofe)thrownewTypeError("Argument must be a number");returnr.SlowBuffer(e)}},2023:function(e,t,n){varr=n(7225).Buffer;functioni(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeofe&&(t=t||"utf8",e=r.from(e,t));for(varn=this._block,i=this._blockSize,s=e.length,a=this._len,o=0;o<s;){for(varc=a%i,l=Math.min(s-o,i-c),p=0;p<l;p++)n[c+p]=e[o+p];o+=l,(a+=l)%i==0&&this._update(n)}returnthis._len+=s,this},i.prototype.digest=function(e){vart=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));varn=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{varr=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);vars=this._hash();returne?s.toString(e):s},i.prototype._update=function(){thrownewError("_update must be implemented by subclass")},e.exports=i},5636:function(e,t,n){varr=e.exports=function(e){e=e.toLowerCase();vart=r[e];if(!t)thrownewError(e+" is not supported (we accept pull requests)");returnnewt};r.sha=n(3443),r.sha1=n(2798),r.sha224=n(7803),r.sha256=n(1772),r.sha384=n(3030),r.sha512=n(566)},3443:function(e,t,n){varr=n(9503),i=n(2023),s=n(7225).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=newArray(80);functionc(){this.init(),this._w=o,i.call(this,64,56)}functionl(e){returne<<30|e>>>2}functionp(e,t,n,r){return0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){returnthis._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(vart,n=this._w,r=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,c=0|this._e,u=0;u<16;++u)n[u]=e.readInt32BE(4*u);for(;u<80;++u)n[u]=n[u-3]^n[u-8]^n[u-14]^n[u-16];for(vard=0;d<80;++d){varh=~~(d/20),f=0|((t=r)<<5|t>>>27)+p(h,i,s,o)+c+n[d]+a[h];c=o,o=s,s=l(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){vare=s.allocUnsafe(20);returne.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},2798:function(e,t,n){varr=n(9503),i=n(2023),s=n(7225).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=newArray(80);functionc(){this.init(),this._w=o,i.call(this,64,56)}functionl(e){returne<<5|e>>>27}functionp(e){returne<<30|e>>>2}functionu(e,t,n,r){return0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){returnthis._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(vart,n=this._w,r=0|this._a,i=0|this._b,s=0|this._c,o=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(varh=0;h<80;++h){varf=~~(h/20),m=l(r)+u(f,i,s,o)+c+n[h]+a[f]|0;c=o,o=s,s=p(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=o+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){vare=s.allocUnsafe(20);returne.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,
functionrf(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionsf(e,t){varn=Object.keys(e);if(Object.getOwnPropertySymbols){varr=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}returnn}varaf,of=(af=[],{activateTrap:function(e){if(af.length>0){vart=af[af.length-1];t!==e&&t.pause()}varn=af.indexOf(e);-1===n||af.splice(n,1),af.push(e)},deactivateTrap:function(e){vart=af.indexOf(e);-1!==t&&af.splice(t,1),af.length>0&&af[af.length-1].unpause()}}),cf=function(e){returnsetTimeout(e,0)},lf=function(e,t){varn=-1;returne.every((function(e,r){return!t(e)||(n=r,!1)})),n},pf=function(e){for(vart=arguments.length,n=newArray(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeofe?e.apply(void0,n):e},uf=function(e,t){varn,r=document,i=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?sf(Object(n),!0).forEach((function(t){rf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),s={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},a=function(e){returns.containers.some((function(t){returnt.contains(e)}))},o=function(e){vart=i[e];if(!t)returnnull;varn=t;if("string"==typeoft&&!(n=r.querySelector(t)))thrownewError("`".concat(e,"` refers to no known node"));if("function"==typeoft&&!(n=t()))thrownewError("`".concat(e,"` did not return a node"));returnn},c=function(){vare;if(null!==o("initialFocus"))e=o("initialFocus");elseif(a(r.activeElement))e=r.activeElement;else{vart=s.tabbableGroups[0];e=t&&t.firstTabbableNode||o("fallbackFocus")}if(!e)thrownewError("Your focus-trap needs to have at least one focusable element");returne},l=function(){if(s.tabbableGroups=s.containers.map((function(e){vart,n,r,i=(n=[],r=[],Gh(e,(t=t||{}).includeContainer,ef.bind(null,t)).forEach((function(e,t){vari=$h(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(Yh).map((function(e){returne.node})).concat(n));if(i.length>0)return{container:e,firstTabbableNode:i[0],lastTabbableNode:i[i.length-1]}})).filter((function(e){return!!e})),s.tabbableGroups.length<=0&&!o("fallbackFocus"))thrownewError("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=functione(t){t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),s.mostRecentlyFocusedNode=t,function(e){returne.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeofe.select}(t)&&t.select()):e(c()))},u=function(e){a(e.target)||(pf(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!nf(e.target)}):pf(i.allowOutsideClick,e)||e.preventDefault())},d=function(e){vart=a(e.target);t||e.targetinstanceofDocument?t&&(s.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),p(s.mostRecentlyFocusedNode||c()))},h=function(e){if(!1!==i.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))returne.preventDefault(),voidn.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){l();vart=null;if(s.tabbableGroups.length>0)if(lf(s.tabbableGroups,(function(t){returnt.container.contains(e.target)}))<0)t=e.shiftKey?s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:s.tabbableGroups[0].firstTabbableNode;elseif(e.shiftKey){varn=lf(s.tabbableGroups,(function(t){varn=t.firstTabbableNode;returne.target===n}));if(n>=0){varr=0===n?s.tabbableGroups.length-1:n-1;t=s.tabbableGroups[r].lastTabbableNode}}else{vari=lf(s.tabbableGroups,(function(t){varn=t.lastTabbableNode;returne.target===n}));if(i>=0){vara=i===s.tabbableGroups.length-1?0:i+1;t=s.tabbableGroups[a].firstTabbableNode}}else
function(e,t){varn=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,s):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,a)),(c[1]||"").length<s&&(c[1]=c[1]||"",c[1]+=newArray(s-c[1].length+1).join("0")),c.join(o)}varxb=Ap()("i18n-calypso"),Nb="number_format_decimals",Tb="number_format_thousands_sep",Ob="messages",Pb=[function(e){returne}],Ib={};functionRb(){Fb.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionDb(e){returnArray.prototype.slice.call(e)}functionUb(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&Rb("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Db(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&Rb("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Db(e));for(varn={},r=0;r<e.length;r++)"object"==typeofe[r]&&(n=e[r]);if("string"==typeoft?n.original=t:"object"==typeofn.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeofe[1]&&(n.plural=e[1]),void0===n.original)thrownewError("Translate called without a `string` value as first argument.");returnn}functionLb(e,t){returne.dcnpgettext(Ob,t.context,t.original,t.plural,t.count)}functionzb(e,t){for(varn=Pb.length-1;n>=0;n--){varr=Pb[n](Object.assign({},t));if(e.state.locale[r.original])returnLb(e.state.tannin,r)}returnnull}functionFb(){if(!(thisinstanceofFb))returnnewFb;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return1===e?0:1},this.state={numberFormatSettings:{},tannin:void0,locale:void0,localeSlug:void0,textDirection:void0,translations:Eb()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newtv.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Fb.throwErrors=!1,Fb.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},Fb.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},Fb.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},Fb.prototype.numberFormat=function(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n="number"==typeoft?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";returnAb(e,n,r,i)},Fb.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Fb.prototype.setLocale=function(e){vart,n,r;if(e&&e[""]&&e[""]["key-hash"]){vari=e[""]["key-hash"],s=function(e,t){varn=!1===t?"":String(t);if(void0!==Ib[n+e])returnIb[n+e];varr=Sb()().update(e).digest("hex");returnIb[n+e]=t?r.substr(0,t):r},a=function(e){returnfunction(t){returnt.context?(t.original=s(t.context+String.fromCharCode(4)+t.original,e),deletet.context):t.original=s(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)Pb.push(a(!1));else{varo=i.substr(5).indexOf("-");if(o<0){varc=Number(i.substr(5));Pb.push(a(c))}elsefor(varl=Number(i.substr(5,o)),p=Number(i.substr(6+o)),u=l;u<=p;u++)Pb.push(a(u))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}elsethis.state.locale=Object.assign({},e);elsethis.state.locale={"":{localeSlug:this.defaultLocaleSlug,plural_forms:this.defaultPluralForms}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.textDirection=(null===(t=this.state.locale["text directionltr"])||void0===t?void0:t[0])||(null===(n=this.state.locale[""])||void0===n||null===(r=n.momentjs_locale)||void0===r?void0:r.textDirection),this.state.tannin=newwb(fg({},Ob,this.state.locale)),this.state.numberFormatSettings.decimal_point=Lb(this.state.tannin,Ub([Nb])),this.state.numberFormatSettings.thousands_sep=Lb(this.state.tannin,Ub([Tb]
functionl_(){return"ontouchstart"inwindow||window.DocumentTouch&&documentinstanceofDocumentTouch}Gl()(c_,"displayName","ModuleChartBarContainer"),Gl()(c_,"propTypes",{isTouch:c().bool,data:c().array,yAxisMax:c().number,width:c().number,barClick:c().func});constp_=bt._x;classu_extendsi().Component{constructor(...e){super(...e),Gl()(this,"state",{maxBars:100,width:650}),Gl()(this,"resize",(()=>{lete,t=this.refs.chart.clientWidth-82;l_()?(t=t<=0?350:t,e=Math.floor(t/this.props.minTouchBarWidth)):e=Math.floor(t/this.props.minBarWidth),this.setState({maxBars:e,width:t})})),Gl()(this,"getYAxisMax",(e=>{constt=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1);letr=Math.ceil((t+1)/n)*n;returnr<10&&(r=10),r})),Gl()(this,"getData",(()=>{lete=this.props.data;returne=e.slice(0-this.state.maxBars),e})),Gl()(this,"getValues",(()=>{lete=this.getData();returne=e.map((function(e){returne.value}),this),e})),Gl()(this,"isEmptyChart",(e=>0===(e=e.filter((function(e){returne>0}),this)).length))}componentDidMount(){this.resize=(0,vt.throttle)(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.resize)}UNSAFE_componentWillReceiveProps(e){this.props.loading&&!e.loading&&this.resize()}render(){conste=this.getValues(),t=this.getYAxisMax(e),n=this.getData();letr;returne.length&&this.isEmptyChart(e)&&(r=i().createElement("div",{className:"dops-chart__empty"},i().createElement("span",{className:"dops-chart__empty_notice"},p_("No activity this period","Notice in the empty statistics chart","jetpack")))),i().createElement("div",{ref:"chart",className:"dops-chart"},i().createElement("div",{className:"dops-chart__y-axis-markers"},i().createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),i().createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),i().createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),i().createElement("div",{className:"dops-chart__y-axis"},i().createElement("div",{className:"dops-chart__y-axis-width-fix"},newNumber(1e5).toLocaleString()),i().createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),i().createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),i().createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),i().createElement(c_,{barClick:this.props.barClick,data:n,yAxisMax:t,chartWidth:this.state.width,isTouch:l_()}),r)}}Gl()(u_,"displayName","ModuleChart"),Gl()(u_,"propTypes",{loading:c().bool,data:c().array,minTouchBarWidth:c().number,minBarWidth:c().number,barClick:c().func}),Gl()(u_,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:vt.noop});constd_=bt.__,h_=bt._x,f_=bt._n;classm_extendsr.Component{constructor(...e){super(...e),Gl()(this,"trackViewDetailedStats",(()=>Rp.tracks.recordJetpackClick("view_detailed_stats"))),Gl()(this,"trackViewWpcomStats",(()=>Rp.tracks.recordJetpackClick("view_wpcom_stats")))}statsBottom(){lete;returne="object"==typeofthis.props.statsData.general?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"},[{viewsToday:e.views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}render(){conste=this.statsBottom()[0];returni().createElement("div",null,i().createElement("div",{className:"jp-at-a-glance__stats-summary"},i().createElement("div",{className:"jp-at-a-glance__stats-summary-today"},i().createElement("p",{className:"jp-at-a-glance__stat-details"},h_("Views today","Referring to a number of page views","jetpack")),i().createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),i().createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},i().createElement("p",{className:"jp-at-a-glance__stat-details"},h_("Best overall day","Referring to a number of page views","jetpack")),i().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,bt.sprintf