varr=n(42),i=r.Buffer;functiona(e,t){for(varnine)t[n]=e[n]}functiono(e,t,n){returni(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"==typeofe)thrownewTypeError("Argument must not be a number");returni(e,t,n)},o.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},o.allocUnsafe=function(e){if("number"!=typeofe)thrownewTypeError("Argument must be a number");returni(e)},o.allocUnsafeSlow=function(e){if("number"!=typeofe)thrownewTypeError("Argument must be a number");returnr.SlowBuffer(e)}},function(e,t,n){"use strict";varr=n(2),i=n.n(r),a=n(0),o=n.n(a),s=n(72),c=n.n(s),l=n(16),u=n.n(l),p=n(52),d=n.n(p),h=(n(250),d()({displayName:"Gridicon",mixins:[c.a],getDefaultProps:function(){return{className:"",size:24}},propTypes:{icon:i.a.string.isRequired,size:i.a.number,onClick:i.a.func,className:i.a.string},needsOffset:function(e,t){return["gridicons-add-outline","gridicons-add","gridicons-align-image-center","gridicons-align-image-left","gridicons-align-image-none","gridicons-align-image-right","gridicons-attachment","gridicons-backspace","gridicons-bold","gridicons-bookmark-outline","gridicons-bookmark","gridicons-calendar","gridicons-cart","gridicons-create","gridicons-custom-post-type","gridicons-external","gridicons-folder","gridicons-heading","gridicons-help-outline","gridicons-help","gridicons-history","gridicons-info-outline","gridicons-info","gridicons-italic","gridicons-layout-blocks","gridicons-link-break","gridicons-link","gridicons-list-checkmark","gridicons-list-ordered","gridicons-list-unordered","gridicons-menus","gridicons-minus","gridicons-my-sites","gridicons-notice-outline","gridicons-notice","gridicons-plans","gridicons-plus-small","gridicons-plus","gridicons-popout","gridicons-posts","gridicons-scheduled","gridicons-share-ios","gridicons-star-outline","gridicons-star","gridicons-stats","gridicons-status","gridicons-thumbs-up","gridicons-textcolor","gridicons-time","gridicons-trophy","gridicons-user-circle"].indexOf(e)>=0&&t%18==0},needsOffsetX:function(e,t){return["gridicons-arrow-down","gridicons-arrow-up","gridicons-comment","gridicons-clear-formatting","gridicons-flag","gridicons-menu","gridicons-reader","gridicons-strikethrough"].indexOf(e)>=0&&t%18==0},needsOffsetY:function(e,t){return["gridicons-align-center","gridicons-align-justify","gridicons-align-left","gridicons-align-right","gridicons-arrow-left","gridicons-arrow-right","gridicons-house","gridicons-indent-left","gridicons-indent-right","gridicons-minus-small","gridicons-print","gridicons-sign-out","gridicons-stats-alt","gridicons-trash","gridicons-underline","gridicons-video-camera"].indexOf(e)>=0&&t%18==0},render:function(){vare,t="gridicons-"+this.props.icon,n=this.needsOffset(t,this.props.size),r=this.needsOffsetX(t,this.props.size),i=this.needsOffsetY(t,this.props.size),a=u()("gridicon",t,this.props.className,{"needs-offset":n,"needs-offset-x":r,"needs-offset-y":i});switch(t){default:e=o.a.createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M23 4v2h-3v3h-2V6h-3V4h3V1h2v3h3zm-8.5 7c.828 0 1.5-.672 1.5-1.5S15.328 8 14.5 8 13 8.672 13 9.5s.672 1.5 1.5 1.5zm3.5 3.234l-.513-.57c-.794-.885-2.18-.885-2.976 0l-.655.73L9 9l-3 3.333V6h7V4H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2v-7h-2v3.234z"})));break;case"gridicons-add-outline":e=o.a.createElement("svg",{className:a,height:this.props.size,width:this.props.size,onClick:this.props.onClick,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},o.a.createElement("g",null,o.a.createElement("path",{d:"M124c4.41083.5988s-3.598-88-8-3.59-8-83.59-88
t.read=function(e,t,n,r,i){vara,o,s=8*i-r-1,c=(1<<s)-1,l=c>>1,u=-7,p=n?i-1:0,d=n?-1:1,h=e[t+p];for(p+=d,a=h&(1<<-u)-1,h>>=-u,u+=s;u>0;a=256*a+e[t+p],p+=d,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=256*o+e[t+p],p+=d,u-=8);if(0===a)a=1-l;else{if(a===c)returno?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),a-=l}return(h?-1:1)*o*Math.pow(2,a-r)},t.write=function(e,t,n,r,i,a){varo,s,c,l=8*a-i-1,u=(1<<l)-1,p=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:a-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?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-o))<1&&(o--,c*=2),(t+=o+p>=1?d/c:d*Math.pow(2,1-p))*c>=2&&(o++,c/=2),o+p>=u?(s=0,o=u):o+p>=1?(s=(t*c-1)*Math.pow(2,i),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&s,h+=f,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+h]=255&o,h+=f,o/=256,l-=8);e[n+h-f]|=128*m}},function(e,t){},function(e,t,n){"use strict";functionr(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}functioni(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functiona(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)}}varo=n(42).Buffer,s=n(296).inspect,c=s&&s.custom||"inspect";e.exports=function(){functione(){!function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}vart,n,l;returnt=e,(n=[{key:"push",value:function(e){vart={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){vart={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){vare=this.head.data;return1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(vart=this.head,n=""+t.data;t=t.next;)n+=e+t.data;returnn}},{key:"concat",value:function(e){if(0===this.length)returno.alloc(0);for(vart,n,r,i=o.allocUnsafe(e>>>0),a=this.head,s=0;a;)t=a.data,n=i,r=s,o.prototype.copy.call(t,n,r),s+=a.data.length,a=a.next;returni}},{key:"consume",value:function(e,t){varn;returne<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){returnthis.head.data}},{key:"_getString",value:function(e){vart=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){vari=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),0==(e-=a)){a===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}returnthis.length-=n,r}},{key:"_getBuffer",value:function(e){vart=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){vari=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),0==(e-=a)){a===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}returnthis.length-=r,t}},{key:c,value:function(e,t){returns(this,function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({},t,{depth:0,customInspect:!1}))}}])&&a(t.prototype,n),l&&a(t,l),e}()},function(e,t){},function(e,t,n){"use strict";(function(t){varr;functioni(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}vara=n(123),o=Symb
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,o=r.length;a<o;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){varo=a.apply(this,arguments);returne.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,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&
functionWr(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionGr(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}varYr,$r=(Yr=[],{activateTrap:function(e){if(Yr.length>0){vart=Yr[Yr.length-1];t!==e&&t.pause()}varn=Yr.indexOf(e);-1===n||Yr.splice(n,1),Yr.push(e)},deactivateTrap:function(e){vart=Yr.indexOf(e);-1!==t&&Yr.splice(t,1),Yr.length>0&&Yr[Yr.length-1].unpause()}}),Zr=function(e){returnsetTimeout(e,0)},Xr=function(e,t){varn=-1;returne.every((function(e,r){return!t(e)||(n=r,!1)})),n},Qr=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},ei=function(e,t){varn,r=document,i=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(n),!0).forEach((function(t){Wr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}returne}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),a={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},o=function(e){returna.containers.some((function(t){returnt.contains(e)}))},s=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!==s("initialFocus"))e=s("initialFocus");elseif(o(r.activeElement))e=r.activeElement;else{vart=a.tabbableGroups[0];e=t&&t.firstTabbableNode||s("fallbackFocus")}if(!e)thrownewError("Your focus-trap needs to have at least one focusable element");returne},l=function(){if(a.tabbableGroups=a.containers.map((function(e){vart,n,r,i=(n=[],r=[],Lr(e,(t=t||{}).includeContainer,Kr.bind(null,t)).forEach((function(e,t){vari=Fr(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(zr).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})),a.tabbableGroups.length<=0&&!s("fallbackFocus"))thrownewError("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},u=functione(t){t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!i.preventScroll}),a.mostRecentlyFocusedNode=t,function(e){returne.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeofe.select}(t)&&t.select()):e(c()))},p=function(e){o(e.target)||(Qr(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!qr(e.target)}):Qr(i.allowOutsideClick,e)||e.preventDefault())},d=function(e){vart=o(e.target);t||e.targetinstanceofDocument?t&&(a.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),u(a.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(a.tabbableGroups.length>0)if(Xr(a.tabbableGroups,(function(t){returnt.container.contains(e.target)}))<0)t=e.shiftKey?a.tabbableGroups[a.tabbableGroups.length-1].lastTabbableNode:a.tabbableGroups[0].firstTabbableNode;elseif(e.shiftKey){varn=Xr(a.tabbableGroups,(function(t){varn=t.firstTabbableNode;returne.target===n}));if(n>=0){varr=0===n?a.tabbableGroups.length-1:n-1;t=a.tabbableGroups[r].lastTabbableNode}}else{vari=Xr(a.tabbableGroups,(function(t){varn=t.lastTabbableNode;returne.target===n}));if(i>=0){varo=i===a.tabbableGroups.length-1?0:i+1;t=a.tabbableGroups[o].firstTabbableNode}}else
*/function zs(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");vari=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,o=void0===r?",":r,s=void0===n?".":n,c="";return(c=(a?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)}varBs=Kt()("i18n-calypso"),Vs="number_format_decimals",Hs="number_format_thousands_sep",Ks="messages",Js=[function(e){returne}],qs={};functionWs(){Xs.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionGs(e){returnArray.prototype.slice.call(e)}functionYs(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&Ws("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",Gs(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&Ws("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",Gs(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}function$s(e,t){returne.dcnpgettext(Ks,t.context,t.original,t.plural,t.count)}functionZs(e,t){for(varn=Js.length-1;n>=0;n--){varr=Js[n](Object.assign({},t));if(e.state.locale[r.original])return$s(e.state.tannin,r)}returnnull}functionXs(){if(!(thisinstanceofXs))returnnewXs;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return1===e?0:1},this.state={numberFormatSettings:{},tannin:void0,locale:void0,localeSlug:void0,textDirection:void0,translations:Rs()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newro.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Xs.throwErrors=!1,Xs.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},Xs.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},Xs.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},Xs.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||",";returnzs(e,n,r,i)},Xs.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Xs.prototype.setLocale=function(e){vart,n,r;if(e&&e[""]&&e[""]["key-hash"]){vari=e[""]["key-hash"],a=function(e,t){varn=!1===t?"":String(t);if(void0!==qs[n+e])returnqs[n+e];varr=Us()().update(e).digest("hex");returnqs[n+e]=t?r.substr(0,t):r},o=function(e){returnfunction(t){returnt.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),deletet.context):t.original=a(t.original,e),t}};if("sha1"===i.substr(0,4))if(4===i.length)Js.push(o(!1));else{vars=i.substr(5).indexOf("-");if(s<0){varc=Number(i.substr(5));Js.push(o(c))}elsefor(varl=Number(i.substr(5,s)),u=Number(i.substr(6+s)),p=l;p<=u;p++)Js.push(o(p))}}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=newPs(Ss()({},Ks,
functionqc(){return"ontouchstart"inwindow||window.DocumentTouch&&documentinstanceofDocumentTouch}Be()(Jc,"displayName","ModuleChartBarContainer"),Be()(Jc,"propTypes",{isTouch:u.a.bool,data:u.a.array,yAxisMax:u.a.number,width:u.a.number,barClick:u.a.func});n(475);varWc=function(e){Ue()(n,e);vart=Fe()(n);functionn(){vare;Ne()(this,n);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returne=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"state",{maxBars:100,width:650}),Be()(Re()(e),"resize",(function(){vart,n=e.refs.chart.clientWidth-82;qc()?(n=n<=0?350:n,t=Math.floor(n/e.props.minTouchBarWidth)):t=Math.floor(n/e.props.minBarWidth),e.setState({maxBars:t,width:n})})),Be()(Re()(e),"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})),Be()(Re()(e),"getData",(function(){vart=e.props.data;returnt=t.slice(0-e.state.maxBars)})),Be()(Re()(e),"getValues",(function(){vart=e.getData();returnt=t.map((function(e){returne.value}),Re()(e))})),Be()(Re()(e),"isEmptyChart",(function(t){return0===(t=t.filter((function(e){returne>0}),Re()(e))).length})),e}returnPe()(n,[{key:"componentDidMount",value:function(){this.resize=Object(je.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"},Object(Oe._x)("No activity this period","Notice in the empty statistics chart","jetpack")))),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(Jc,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:qc()}),e)}}]),n}(o.a.Component);Be()(Wc,"displayName","ModuleChart"),Be()(Wc,"propTypes",{loading:u.a.bool,data:u.a.array,minTouchBarWidth:u.a.number,minBarWidth:u.a.number,barClick:u.a.func}),Be()(Wc,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:je.noop});varGc=function(e){Ue()(n,e);vart=Fe()(n);functionn(){vare;Ne()(this,n);for(varr=arguments.length,i=newArray(r),a=0;a<r;a++)i[a]=arguments[a];returne=t.call.apply(t,[this].concat(i)),Be()(Re()(e),"trackViewDetailedStats",(function(){returnXe.a.tracks.recordJetpackClick("view_detailed_stats")})),Be()(Re()(e),"trackViewWpcomStats",(function(){returnXe.a.tracks.recordJetpackClick("view_wpcom_stats")})),e}returnPe()(n,[{key:"statsBottom",value:function(){vare;return[{viewsToday:(e="object"==typeofthis.props.statsData.general?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"}).views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}},{key:"render",value:function(){vare=this.statsBottom()[0];returno.a.createElement("div",null,o.a.createElement("div",{className:"jp-at-a-glance__stats-summary"},o.a.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},o.a.createElement("p",{className:"j