!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=389)}([function(e,t){!function(){e.exports=this.React}()},function(e,t,n){e.exports=n(183)()},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(203),i=n(4);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeoft?i(e):t}},function(e,t,n){varr=n(74);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;
/*!
Copyright(c)2017JedWatson.
LicensedundertheMITLicense(MIT),see
http://jedwatson.github.io/classnames
*/!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 s=i.apply(null,r);s&&e.push(s)}else if("object"===a)for(var o in r)n.call(r,o)&&r[o]&&e.push(o)}}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 s(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=s),s.prototype=Object.create(i.prototype),a(i,s),s.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},s.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},s.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},s.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,s,o){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,s,o],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(187);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,n){varr=n(2);functioni(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}e.exports=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}},function(e,t){!function(){e.exports=this.ReactDOM}()},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"))}vars;"object"==typeofe?e.exports=a:t.BN=a,a.BN=a,a.wordSize=26;try{s=n(314).Buffer}catch(C){}functiono(e,t,n){for(varr=0,i=Math.min(e.length,n),a=t;a<i;a++){vars=e.charCodeAt(a)-48;r<<=4,r|=s>=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}returnr}functionc(e,t,n,r){for(vari=0,a=Math.min(e.length,n),s=t;s<a;s++){varo=e.charCodeAt(s)-48;i*=r,i+=o>=49?o-49+10:o>=17?o-17+10:o}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
!function(n,r){vari=Array.prototype,a=Object.prototype,s=i.slice,o=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(o.call(e,a)&&t.call(n,e[a],a,e)===l)return},extend:function(e){returnthis.forEach(s.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.");vars,o,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!(s=h[l])||c>s.length?(this.options.missing_key_callback&&this.options.missing_key_callback(l,e),o=[n,r],!0===this.options.debug&&console.log(o[d(m)(i)]),o[d()(i)]):(o=s[c])||(o=[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,s,o,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((o=n[a])[2])for(i=r[p],s=0;s<o[2].length;s++){if(!i.hasOwnProperty(o[2][s]))throwg('[sprintf] property "%s" does not exist',o[2][s]);i=i[o[2][s]]}elsei=o[1]?r[o[1]]:r[p
/*
object-assign
(c)SindreSorhus
@licenseMIT
*/var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(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,o,c=s(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){o=r(n);for(var p=0;p<o.length;p++)a.call(n,o[p])&&(c[o[p]]=n[o[p]])}}return c}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,i,a,s,o){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,s,o],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";t.__esModule=!0,t.readState=t.saveState=void0;varr,i=n(27);(r=i)&&r.__esModule;vara={QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0},s={SecurityError:!0},o=function(e){return"@@History/"+e};t.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(o(e)):window.sessionStorage.setItem(o(e),JSON.stringify(t))}catch(n){if(s[n.name])return;if(a[n.name]&&0===window.sessionStorage.length)return;thrown}},t.readState=function(e){vart=void0;try{t=window.sessionStorage.getItem(o(e))}catch(n){if(s[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,s=t.payload;if(n===i)returnr({},e,{locationBeforeTransitions:s});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"),s=t.replace=i("replace"),o=t.go=i("go"),c=t.goBack=i("goBack"),l=t.goForward=i("goForward");t.routerActions={push:a,replace:s,go:o,goBack:c,goForward:l}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(varn=0,r=newArray(t);n<t;n++)r[n]=e[n];returnr}},function(e,t,n){varr=n(117);e.exports=function(e,t){if(e){if("string"==typeofe)returnr(e,t);varn=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void0}}},function(e,t){varn=1e3,r=6e4,i=36e5,a=24*i;functions(e,t,n,r){vari=t>=1.5*n;returnMath.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,t){t=t||{};varo=typeofe;if("string"===o&&e.length>0)returnfunction(e){if((e=String(e)).length>100)return;vart=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!t)return;vars=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return315576e5*s;case"weeks":case"week":case"w":return6048e5*s;case"days":case"day":case"d":returns*a;case"hours":case"hour":case"hrs":case"hr":case"h":returns*i;case"minutes":case"minute":c
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=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(vara=0,s=r.length;a<s;a++)r[a].fn!==t&&r[a].fn._!==t&&i.push(r[a]);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){vars=a.apply(this,arguments);returne.addEventListener(n,s,i),{destroy:function(){e.removeEventListener(n,s,i)}}}functiona(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,a){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,a)})))}},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&
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,s)),(c[1]||"").length<a&&(c[1]=c[1]||"",c[1]+=newArray(a-c[1].length+1).join("0")),c.join(o)}varhs=es()("i18n-calypso"),fs=[function(e){returne}],ms={};functiongs(){ws.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionvs(e){returnArray.prototype.slice.call(e)}functionbs(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&gs("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",vs(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&gs("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",vs(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}functionys(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)}function_s(e,t){for(varn=fs.length-1;n>=0;n--){varr=fs[n](Object.assign({},t));if(e.state.locale[r.original])returnys(e.state.jed,r)}returnnull}functionws(){if(!(thisinstanceofws))returnnewws;this.defaultLocaleSlug="en",this.state={numberFormatSettings:{},jed:void0,locale:void0,localeSlug:void0,translations:ss()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newps.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ws.throwErrors=!1,ws.prototype.moment=cs.a,ws.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},ws.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},ws.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},ws.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||",";returnds(e,n,r,i)},ws.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ws.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!==ms[n+e])returnms[n+e];varr=us()().update(e).digest("hex");returnms[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)fs.push(r(!1));else{vari=t.substr(5).indexOf("-");if(i<0){vara=Number(t.substr(5));fs.push(r(a))}elsefor(vars=Number(t.substr(5,i)),o=Number(t.substr(6+i)),c=s;c<=o;c++)fs.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=newis.a({locale_data:{messages:this.state.locale}}),cs.a.locale(this.state.localeSlug),this.state.numberFormatSettings.decimal_point=ys(this.state.jed,bs(["number_format_decimals"])),this.state.numberFormatSettings.thousands_sep=ys(this.state.jed,bs(["number_format_thousands_sep"])),
functionnh(){return"ontouchstart"inwindow||window.DocumentTouch&&documentinstanceofDocumentTouch}ha()(th,"displayName","ModuleChartBarContainer"),ha()(th,"propTypes",{isTouch:u.a.bool,data:u.a.array,yAxisMax:u.a.number,width:u.a.number,barClick:u.a.func});n(373);varrh=function(e){functiont(){vare,n;_a()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=ka()(this,(e=Ca()(t)).call.apply(e,[this].concat(i))),ha()(Os()(n),"state",{maxBars:100,width:650}),ha()(Os()(n),"resize",(function(){vare,t=n.refs.chart.clientWidth-82;nh()?(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})})),ha()(Os()(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})),ha()(Os()(n),"getData",(function(){vare=n.props.data;returne=e.slice(0-n.state.maxBars)})),ha()(Os()(n),"getValues",(function(){vare=n.getData();returne=e.map((function(e){returne.value}),Os()(n))})),ha()(Os()(n),"isEmptyChart",(function(e){return0===(e=e.filter((function(e){returne>0}),Os()(n))).length})),n}returnMa()(t,e),As()(t,[{key:"componentDidMount",value:function(){this.resize=Object(Dt.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=o.a.createElement("div",{className:"dops-chart__empty"},o.a.createElement("span",{className:"dops-chart__empty_notice"},Us("No activity this period",{context:"Notice in the empty statistics chart"})))),o.a.createElement("div",{ref:"chart",className:"dops-chart"},o.a.createElement("div",{className:"dops-chart__y-axis-markers"},o.a.createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),o.a.createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),o.a.createElement("div",{className:"dops-chart__y-axis"},o.a.createElement("div",{className:"dops-chart__y-axis-width-fix"},newNumber(1e5).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-hundred"},n.toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(n/2).toLocaleString()),o.a.createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),o.a.createElement(th,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:nh()}),e)}}]),t}(o.a.Component);ha()(rh,"displayName","ModuleChart"),ha()(rh,"propTypes",{loading:u.a.bool,data:u.a.array,minTouchBarWidth:u.a.number,minBarWidth:u.a.number,barClick:u.a.func}),ha()(rh,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:Dt.noop});varih=function(e){functiont(){return_a()(this,t),ka()(this,Ca()(t).apply(this,arguments))}returnMa()(t,e),As()(t,[{key:"UNSAFE_componentWillMount",value:function(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}},{key:"render",value:function(){returnnull}}]),t}(s.Component);ih.defaultProps={fetchStatsData:function(){}};varah=le((function(e){return{fetchStatsData:function(t){returnSu(e)},fetchingStatsData:Qi(e)}}),(function(e){return{fetchStatsData:function(t){returne(Su(t))}}}))(ih),sh=function(e){functiont(){vare,n;_a()(this,t);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returnn=ka()(this,(e=Ca()(t)).call.apply(e,[this].concat(i))),ha()(Os()(n),"trackViewDetailedStats",(function(){returnUc.tracks.recordJetpackClick("view_detailed_stats")})),ha()(Os()(n),"trackViewWpcomStats",(function(){returnUc.tracks.recordJetpackClick("view_wpcom_stats")})),n}returnMa()(t,e),As()(t,[{key:"statsBottom",value:function(){vare;return[{viewsToday:(e="object"==typeofthis.props.statsData