!function(e,t){for(varnint)e[n]=t[n]}(window,function(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=379)}([function(e,t){!function(){e.exports=this.React}()},function(e,t,n){e.exports=n(181)()},function(e,t){e.exports=function(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t){!function(){e.exports=this.lodash}()},function(e,t){e.exports=function(e){if(void0===e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");returne}},function(e,t){functionn(t){returne.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){returne.__proto__||Object.getPrototypeOf(e)},n(t)}e.exports=n},function(e,t){e.exports=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}},function(e,t,n){varr=n(198),i=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeoft?i(e):t}},function(e,t,n){varr=n(80);e.exports=function(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&r(e,t)}},function(e,t){functionn(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,t,r){returnt&&n(e.prototype,t),r&&n(e,r),e}},function(e,t){functionn(){returne.exports=n=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},n.apply(this,arguments)}e.exports=n},function(e,t,n){varr;
*/!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var a=typeof r;if("string"===a||"number"===a)e.push(r);else if(Array.isArray(r)&&r.length){var o=i.apply(null,r);o&&e.push(o)}else if("object"===a)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t){"function"==typeof Object.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;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,t,n){var r=n(19),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},o.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,a,o,s],u=0;(c=new Error(t.replace(/%s/g,(function(){returnl[u++]})))).name="Invariant Violation"}throwc.framesToPop=1,c}}},function(e,t,n){"use strict";varr=n(0),i=n(185);if(void0===r)throwError("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");vara=(newr.Component).updater;e.exports=i(r.Component,r.isValidElement,a)},function(e,t){!function(){e.exports=this.ReactDOM}()},function(e,t,n){varr=n(2);functioni(e,t){varn=Object.keys(e);returnObject.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){returnObject.getOwnPropertyDescriptor(e,t).enumerable}))),n}e.exports=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}},function(e,t,n){(function(e){!function(e,t){"use strict";functionr(e,t){if(!e)thrownewError(t||"Assertion failed")}functioni(e,t){e.super_=t;varn=function(){};n.prototype=t.prototype,e.prototype=newn,e.prototype.constructor=e}functiona(e,t,n){if(a.isBN(e))returne;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}varo;"object"==typeofe?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{o=n(308).Buffer}catch(C){}functions(e,t,n){for(varr=0,i=Math.min(e.length,n),a=t;a<i;a++){varo=e.charCodeAt(a)-48;r<<=4,r|=o>=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}returnr}functionc(e,t,n,r){for(vari=0,a=Math.min(e.length,n),o=t;o<a;o++){vars=e.charCodeAt(o)-48;i*=r,i+=s>=49?s-49+10:s>=17?s-17+10:s}returni}a.isBN=function(e){returneinstanceofa||null!==e&&"object"==typeofe&&e.constructor.wordSize===a.wordSize&&Array.isArray(e.words)},a.max=function(e,t){returne.cmp(t)>0?e:t},a.min=function(e,t){returne.cmp(t)<0?e:t},a.prototype._init=function(e,t,n){if("number"==typeofe)returnthis._initNumber(e,t,n);if("object"==typeofe)returnthis._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);vari=0;"-"===(e=e.toString().replace(/\s+/
!function(n,r){vari=Array.prototype,a=Object.prototype,o=i.slice,s=a.hasOwnProperty,c=i.forEach,l={},u={forEach:function(e,t,n){varr,i,a;if(null!==e)if(c&&e.forEach===c)e.forEach(t,n);elseif(e.length===+e.length){for(r=0,i=e.length;r<i;r++)if(rine&&t.call(n,e[r],r,e)===l)return}elsefor(aine)if(s.call(e,a)&&t.call(n,e[a],a,e)===l)return},extend:function(e){returnthis.forEach(o.call(arguments,1),(function(t){for(varnint)e[n]=t[n]})),e}},p=function(e){if(this.defaults={locale_data:{messages:{"":{domain:"messages",lang:"en",plural_forms:"nplurals=2; plural=(n != 1);"}}},domain:"messages",debug:!1},this.options=u.extend({},this.defaults,e),this.textdomain(this.options.domain),e.domain&&!this.options.locale_data[this.options.domain])thrownewError("Text domain set to non-existent domain: `"+e.domain+"`")};functiond(e){returnp.PF.compile(e||"nplurals=2; plural=(n != 1);")}functionh(e,t){this._key=e,this._i18n=t}p.context_delimiter=String.fromCharCode(4),u.extend(h.prototype,{onDomain:function(e){returnthis._domain=e,this},withContext:function(e){returnthis._context=e,this},ifPlural:function(e,t){returnthis._val=e,this._pkey=t,this},fetch:function(e){return"[object Array]"!={}.toString.call(e)&&(e=[].slice.call(arguments,0)),(e&&e.length?p.sprintf:function(e){returne})(this._i18n.dcnpgettext(this._domain,this._context,this._key,this._pkey,this._val),e)}}),u.extend(p.prototype,{translate:function(e){returnnewh(e,this)},textdomain:function(e){if(!e)returnthis._textdomain;this._textdomain=e},gettext:function(e){returnthis.dcnpgettext.call(this,void0,void0,e)},dgettext:function(e,t){returnthis.dcnpgettext.call(this,e,void0,t)},dcgettext:function(e,t){returnthis.dcnpgettext.call(this,e,void0,t)},ngettext:function(e,t,n){returnthis.dcnpgettext.call(this,void0,void0,e,t,n)},dngettext:function(e,t,n,r){returnthis.dcnpgettext.call(this,e,void0,t,n,r)},dcngettext:function(e,t,n,r){returnthis.dcnpgettext.call(this,e,void0,t,n,r)},pgettext:function(e,t){returnthis.dcnpgettext.call(this,void0,e,t)},dpgettext:function(e,t,n){returnthis.dcnpgettext.call(this,e,t,n)},dcpgettext:function(e,t,n){returnthis.dcnpgettext.call(this,e,t,n)},npgettext:function(e,t,n,r){returnthis.dcnpgettext.call(this,void0,e,t,n,r)},dnpgettext:function(e,t,n,r,i){returnthis.dcnpgettext.call(this,e,t,n,r,i)},dcnpgettext:function(e,t,n,r,i){vara;if(r=r||n,e=e||this._textdomain,!this.options)return(a=newp).dcnpgettext.call(a,void0,void0,n,r,i);if(!this.options.locale_data)thrownewError("No locale data provided.");if(!this.options.locale_data[e])thrownewError("Domain `"+e+"` was not found.");if(!this.options.locale_data[e][""])thrownewError("No locale meta information provided.");if(!n)thrownewError("No translation key found.");varo,s,c,l=t?t+p.context_delimiter+n:n,u=this.options.locale_data,h=u[e],f=(u.messages||this.defaults.locale_data.messages)[""],m=h[""].plural_forms||h[""]["Plural-Forms"]||h[""]["plural-forms"]||f.plural_forms||f["Plural-Forms"]||f["plural-forms"];if(void0===i)c=0;else{if("number"!=typeofi&&(i=parseInt(i,10),isNaN(i)))thrownewError("The number that was passed in is not a number.");c=d(m)(i)}if(!h)thrownewError("No domain named `"+e+"` could be found.");return!(o=h[l])||c>o.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),s=[n,r],!0===this.options.debug&&console.log(s[d(m)(i)]),s[d()(i)]):(s=o[c])||(s=[n,r])[d()(i)]}});varf,m,g=function(){functione(e){returnObject.prototype.toString.call(e).slice(8,-1).toLowerCase()}functiont(e,t){for(varn=[];t>0;n[--t]=e);returnn.join("")}varn=function(){returnn.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};returnn.format=function(n,r){vari,a,o,s,c,l,u,p=1,d=n.length,h="",f=[];for(a=0;a<d;a++)if("string"===(h=e(n[a])))f.push(n[a]);elseif("array"===h){if((s=n[a])[2])for(i=r[p],o=0;o<s[2].length;o++){if(!i.hasOwnProperty(s[2][o]))throwg('[sprintf] property "%s" does not exist',s[2][o]);i=i[s[2][o]]}elsei=s[1]?r[s[1]]:r[p
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,s,c=o(e),l=1;l<arguments.length;l++){for(var u in n=Object(arguments[l]))i.call(n,u)&&(c[u]=n[u]);if(r){s=r(n);for(var p=0;p<s.length;p++)a.call(n,s[p])&&(c[s[p]]=n[s[p]])}}return c}},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,a,o,s,c){if(r(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,i,a,o,s,c],p=0;(l=new Error(t.replace(/%s/g,(function(){returnu[p++]})))).name="Invariant Violation"}throwl.framesToPop=1,l}}},function(e,t,n){"use strict";t.__esModule=!0,t.readState=t.saveState=void0;varr,i=n(27);(r=i)&&r.__esModule;vara={QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0},o={SecurityError:!0},s=function(e){return"@@History/"+e};t.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(s(e)):window.sessionStorage.setItem(s(e),JSON.stringify(t))}catch(n){if(o[n.name])return;if(a[n.name]&&0===window.sessionStorage.length)return;thrown}},t.readState=function(e){vart=void0;try{t=window.sessionStorage.getItem(s(e))}catch(n){if(o[n.name])return}if(t)try{returnJSON.parse(t)}catch(n){}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varr=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne};t.routerReducer=function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void0!==arguments[1]?arguments[1]:{},n=t.type,o=t.payload;if(n===i)returnr({},e,{locationBeforeTransitions:o});returne};vari=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",a={locationBeforeTransitions:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});varr=t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD";functioni(e){returnfunction(){for(vart=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return{type:r,payload:{method:e,args:n}}}}vara=t.push=i("push"),o=t.replace=i("replace"),s=t.go=i("go"),c=t.goBack=i("goBack"),l=t.goForward=i("goForward");t.routerActions={push:a,replace:o,go:s,goBack:c,goForward:l}},function(e,t,n){"use strict";functionr(e){returnfunction(){returne}}vari=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){returnthis},i.thatReturnsArgument=function(e){returne},e.exports=i},function(e,t,n){"use strict";varr=n(24).rotr32;functioni(e,t,n){returne&t^~e&n}functiona(e,t,n){returne&t^e&n^t&n}functiono(e,t,n){returne^t^n}t.ft_1=function(e,t,n,r){return0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?a(t,n,r):void0},t.ch32=i,t.maj32=a,t.p32=o,t.s0_256=function(e){returnr(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){returnr(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){returnr(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){returnr(e,17)^r(e,19)^e>>>10}},function(e,t){e.exports=function(e){returne.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){returne.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){returne.i}}),e.webpackPolyfill=1),e}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e){if("function"!=t
varr;r=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=0)}([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=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"inr&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}returnfunction(t,n,r){returnn&&e(t.prototype,n),r&&e(t,r),t}}(),a=c(n(1)),o=c(n(3)),s=c(n(4));functionc(e){returne&&e.__esModule?e:{default:e}}varl=function(e){functiont(e,n){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,t);varr=function(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));returnr.resolveOptions(n),r.listenClick(e),r}returnfunction(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"resolveOptions",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};this.action="function"==typeofe.action?e.action:this.defaultAction,this.target="function"==typeofe.target?e.target:this.defaultTarget,this.text="function"==typeofe.text?e.text:this.defaultText,this.container="object"===r(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){vart=this;this.listener=(0,s.default)(e,"click",(function(e){returnt.onClick(e)}))}},{key:"onClick",value:function(e){vart=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=newa.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){returnu("action",e)}},{key:"defaultTarget",value:function(e){vart=u("target",e);if(t)returndocument.querySelector(t)}},{key:"defaultText",value:function(e){returnu("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeofe?[e]:e,n=!!document.queryCommandSupported;returnt.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(o.default);functionu(e,t){varn="data-clipboard-"+e;if(t.hasAttribute(n))returnt.getAttribute(n)}e.exports=l},function(e,t,n){"use strict";varr,i="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeofe},a=function(){functione(e,t){for(varn=0;n<t.length;n++){varr=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"
function(e,t){varn=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,a):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=newArray(a-c[1].length+1).join("0")),c.join(s)}vario=Ka()("i18n-calypso"),ao=[function(e){returne}],oo={};functionso(){ho.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionco(e){returnArray.prototype.slice.call(e)}functionlo(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&so("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",co(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&so("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",co(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}functionuo(e,t){varn="gettext";t.context&&(n="p"+n),"string"==typeoft.original&&"string"==typeoft.plural&&(n="n"+n);varr=function(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}(n,t);returne[n].apply(e,r)}functionpo(e,t){for(varn=ao.length-1;n>=0;n--){varr=ao[n](Object.assign({},t));if(e.state.locale[r.original])returnuo(e.state.jed,r)}returnnull}functionho(){if(!(thisinstanceofho))returnnewho;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void0,locale:void0,localeSlug:void0,translations:Xa()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newno.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ho.throwErrors=!1,ho.prototype.moment=Za.a,ho.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},ho.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},ho.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},ho.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||",";returnro(e,n,r,i)},ho.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ho.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){vart=e[""]["key-hash"],n=function(e,t){varn=!1===t?"":String(t);if(void0!==oo[n+e])returnoo[n+e];varr=to()().update(e).digest("hex");returnoo[n+e]=t?r.substr(0,t):r},r=function(e){returnfunction(t){returnt.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),deletet.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)ao.push(r(!1));else{vari=t.substr(5).indexOf("-");if(i<0){vara=Number(t.substr(5));ao.push(r(a))}elsefor(varo=Number(t.substr(5,i)),s=Number(t.substr(6+i)),c=o;c<=s;c++)ao.push(r(c))}}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}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=newYa.a({locale_data:{messages:this.state.locale}}),Za.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=uo(this.state.jed,lo(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=uo(this.state.jed,lo(["number_format_thousands_sep"])),
functionKd(){return"ontouchstart"inwindow||window.DocumentTouch&&documentinstanceofDocumentTouch}ia()(qd,"displayName","ModuleChartBarContainer"),ia()(qd,"propTypes",{isTouch:u.a.bool,data:u.a.array,yAxisMax:u.a.number,width:u.a.number,barClick:u.a.func});n(366);varJd=function(e){functiont(){vare,n;pa()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=ha()(this,(e=ma()(t)).call.apply(e,[this].concat(i))),ia()(ko()(n),"state",{maxBars:100,width:650}),ia()(ko()(n),"resize",(function(){vare,t=n.refs.chart.clientWidth-82;Kd()?(t=t<=0?350:t,e=Math.floor(t/n.props.minTouchBarWidth)):e=Math.floor(t/n.props.minBarWidth),n.setState({maxBars:e,width:t})})),ia()(ko()(n),"getYAxisMax",(function(e){vart=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1),r=Math.ceil((t+1)/n)*n;returnr<10&&(r=10),r})),ia()(ko()(n),"getData",(function(){vare=n.props.data;returne=e.slice(0-n.state.maxBars)})),ia()(ko()(n),"getValues",(function(){vare=n.getData();returne=e.map((function(e){returne.value}),ko()(n))})),ia()(ko()(n),"isEmptyChart",(function(e){return0===(e=e.filter((function(e){returne>0}),ko()(n))).length})),n}returnva()(t,e),wo()(t,[{key:"componentDidMount",value:function(){this.resize=Object(It.throttle)(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.resize)}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.loading&&!e.loading&&this.resize()}},{key:"render",value:function(){vare,t=this.getValues(),n=this.getYAxisMax(t),r=this.getData();returnt.length&&this.isEmptyChart(t)&&(e=s.a.createElement("div",{className:"dops-chart__empty"},s.a.createElement("span",{className:"dops-chart__empty_notice"},jo("No activity this period",{context:"Notice in the empty statistics chart"})))),s.a.createElement("div",{ref:"chart",className:"dops-chart"},s.a.createElement("div",{className:"dops-chart__y-axis-markers"},s.a.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),s.a.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),s.a.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),s.a.createElement("div",{className:"dops-chart__y-axis"},s.a.createElement("div",{className:"dops-chart__y-axis-width-fix"},newNumber(1e5).toLocaleString()),s.a.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),s.a.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),s.a.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),s.a.createElement(qd,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:Kd()}),e)}}]),t}(s.a.Component);ia()(Jd,"displayName","ModuleChart"),ia()(Jd,"propTypes",{loading:u.a.bool,data:u.a.array,minTouchBarWidth:u.a.number,minBarWidth:u.a.number,barClick:u.a.func}),ia()(Jd,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:It.noop});varWd=function(e){functiont(){returnpa()(this,t),ha()(this,ma()(t).apply(this,arguments))}returnva()(t,e),wo()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){returnnull}}]),t}(o.Component);Wd.defaultProps={fetchStatsData:function(){}};varGd=le((function(e){return{fetchStatsData:function(t){returnMu(e)},fetchingStatsData:Hi(e)}}),(function(e){return{fetchStatsData:function(t){returne(Mu(t))}}}))(Wd),Yd=function(e){functiont(){vare,n;pa()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=ha()(this,(e=ma()(t)).call.apply(e,[this].concat(i))),ia()(ko()(n),"trackViewDetailedStats",(function(){returndc.tracks.recordJetpackClick("view_detailed_stats")})),ia()(ko()(n),"trackViewWpcomStats",(function(){returndc.tracks.recordJetpackClick("view_wpcom_stats")})),n}returnva()(t,e),wo()(t,[{key:"statsBottom",value:function(){vare;return[{viewsToday:(e="object"==typeofthis.props.statsData
/*
*Exposesnumberformatcapability
*
*@copyrightCopyright(c)2013KevinvanZonneveld(http://kvz.io) and Contributors (http://phpjs.org/authors).
function(e,t){varn=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,a):""+Math.round(i)).split("."))[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=newArray(a-c[1].length+1).join("0")),c.join(s)}varNf=n.n(jf)()("i18n-calypso"),Tf=[function(e){returne}],Pf={};functionIf(){Lf.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionDf(e){returnArray.prototype.slice.call(e)}functionRf(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&If("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Df(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&If("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Df(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}functionUf(e,t){varn="gettext";t.context&&(n="p"+n),"string"==typeoft.original&&"string"==typeoft.plural&&(n="n"+n);varr=function(e,t){switch(e){case"gettext":return[t.original];case"ngettext":return[t.original,t.plural,t.count];case"npgettext":return[t.context,t.original,t.plural,t.count];case"pgettext":return[t.context,t.original]}return[]}(n,t);returne[n].apply(e,r)}functionFf(e,t){for(varn=Tf.length-1;n>=0;n--){varr=Tf[n](Object.assign({},t));if(e.state.locale[r.original])returnUf(e.state.jed,r)}returnnull}functionLf(){if(!(thisinstanceofLf))returnnewLf;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void0,locale:void0,localeSlug:void0,translations:Xa()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newno.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Lf.throwErrors=!1,Lf.prototype.moment=Za.a,Lf.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},Lf.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},Lf.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},Lf.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||",";returnOf(e,n,r,i)},Lf.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Lf.prototype.setLocale=function(e){if(e&&e[""]&&e[""]["key-hash"]){vart=e[""]["key-hash"],n=function(e,t){varn=!1===t?"":String(t);if(void0!==Pf[n+e])returnPf[n+e];varr=to()().update(e).digest("hex");returnPf[n+e]=t?r.substr(0,t):r},r=function(e){returnfunction(t){returnt.context?(t.original=n(t.context+String.fromCharCode(4)+t.original,e),deletet.context):t.original=n(t.original,e),t}};if("sha1"===t.substr(0,4))if(4===t.length)Tf.push(r(!1));else{vari=t.substr(5).indexOf("-");if(i<0){vara=Number(t.substr(5));Tf.push(r(a))}elsefor(varo=Number(t.substr(5,i)),s=Number(t.substr(6+i)),c=o;c<=s;c++)Tf.push(r(c))}}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}};this.state.localeSlug=this.state.locale[""].localeSlug,this.state.jed=newYa.a({locale_data:{messages:this.state.locale}}),Za.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=Uf(this.state.jed,Rf(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=Uf(this.state.jed,Rf(["number_format_thousands_sep