!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=425)}([function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t,n){e.exports=n(205)()},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){e.exports=function(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}},function(e,t,n){varr=n(79);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,n){varr=n(116),i=n(117),a=n(212);e.exports=function(e){vart=i();returnfunction(){varn,i=r(e);if(t){varo=r(this).constructor;n=Reflect.construct(i,arguments,o)}elsen=i.apply(this,arguments);returna(this,n)}}},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;
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
varr=n(19),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){!function(){e.exports=this.ReactDOM}()},function(e,t){!function(){e.exports=this.wp.date}()},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="undefined"!=typeofwindow&&void0!==window.Buffer?window.Buffer:n(315).Buffer}catch(C){}functions(e,t){varn=e.charCodeAt(t);returnn>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}functionc(e,t,n){varr=s(e,n);returnn-1>=t&&(r|=s(e,n-1)<<4),r}functionl(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+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},a.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},a.prototype._initArray=function(e,t,n){if(r("number"==typeofe.length),e.length<=0)returnthis.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=newArray(this.length);for(vari=0;i<this.length;i++)this.words[i]=0;vara,o,s=0;if("be"===n)for(i=e.length-1,a=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);elseif("le"===n)for(i=0,a=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[a]|=o<<s&67108863,this.words[a+1]=o>>>26-s&67108863,(s+=24)>=26&&(s-=26,a++);returnthis.strip()},a.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=newArray(this.length);for(varr=0;r<this.length;r++)this.words[r]=0;vari,a=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;elsefor(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<a,this.words[o]|=67108863&i,a>=18?(a-=18,o+=1,this.words[o]|=i>>>26):a+=8;this.strip()},a.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(varr=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(vara=e.length-n,o=a%r,s=Math.min(a,a-o)+n,c=0,u=n;u<s;u+=r)c=l(e,u,u+r,t),this.imuln(i),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){varp=1;for(c=l(e,u,e.length,t),u=0;u<o;u++)p*=t;this.imuln(p),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this.strip()},a.
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&
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(19).Buffer,s=n(276).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(90),o=Symbo
functionOh(e,t,n){returntine?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}functionMh(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}varxh,Ah=(xh=[],{activateTrap:function(e){if(xh.length>0){vart=xh[xh.length-1];t!==e&&t.pause()}varn=xh.indexOf(e);-1===n||xh.splice(n,1),xh.push(e)},deactivateTrap:function(e){vart=xh.indexOf(e);-1!==t&&xh.splice(t,1),xh.length>0&&xh[xh.length-1].unpause()}}),Th=function(e){returnsetTimeout(e,0)},Nh=function(e,t){varn=-1;returne.every((function(e,r){return!t(e)||(n=r,!1)})),n},Ph=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},Ih=function(e,t){varn,r=document,i=function(e){for(vart=1;t<arguments.length;t++){varn=null!=arguments[t]?arguments[t]:{};t%2?Mh(Object(n),!0).forEach((function(t){Oh(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mh(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=[],bh(e,(t=t||{}).includeContainer,jh.bind(null,t)).forEach((function(e,t){vari=yh(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(_h).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)||(Ph(i.clickOutsideDeactivates,e)?n.deactivate({returnFocus:i.returnFocusOnDeactivate&&!Sh(e.target)}):Ph(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(Nh(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=Nh(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=Nh(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 pv(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)}vardv=uu()("i18n-calypso"),hv="number_format_decimals",fv="number_format_thousands_sep",mv="messages",gv=[function(e){returne}],vv={};functionbv(){Ev.throwErrors&&"undefined"!=typeofwindow&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}functionyv(e){returnArray.prototype.slice.call(e)}function_v(e){vart=e[0];("string"!=typeoft||e.length>3||e.length>2&&"object"==typeofe[1]&&"object"==typeofe[2])&&bv("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",yv(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeoft&&"string"==typeofe[1]&&bv("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",yv(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}functionwv(e,t){returne.dcnpgettext(mv,t.context,t.original,t.plural,t.count)}functionkv(e,t){for(varn=gv.length-1;n>=0;n--){varr=gv[n](Object.assign({},t));if(e.state.locale[r.original])returnwv(e.state.tannin,r)}returnnull}functionEv(){if(!(thisinstanceofEv))returnnewEv;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return1===e?0:1},this.state={numberFormatSettings:{},tannin:void0,locale:void0,localeSlug:void0,textDirection:void0,translations:ov()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=newPm.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}Ev.throwErrors=!1,Ev.prototype.on=function(){vare;(e=this.stateObserver).on.apply(e,arguments)},Ev.prototype.off=function(){vare;(e=this.stateObserver).off.apply(e,arguments)},Ev.prototype.emit=function(){vare;(e=this.stateObserver).emit.apply(e,arguments)},Ev.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||",";returnpv(e,n,r,i)},Ev.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},Ev.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!==vv[n+e])returnvv[n+e];varr=cv()().update(e).digest("hex");returnvv[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)gv.push(o(!1));else{vars=i.substr(5).indexOf("-");if(s<0){varc=Number(i.substr(5));gv.push(o(c))}elsefor(varl=Number(i.substr(5,s)),u=Number(i.substr(6+s)),p=l;p<=u;p++)gv.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=newiv(Xg()({},mv,
functiongb(){return"ontouchstart"inwindow||window.DocumentTouch&&documentinstanceofDocumentTouch}$i()(mb,"displayName","ModuleChartBarContainer"),$i()(mb,"propTypes",{isTouch:p.a.bool,data:p.a.array,yAxisMax:p.a.number,width:p.a.number,barClick:p.a.func});n(420);varvb=function(e){Pi()(n,e);vart=Ri()(n);functionn(){vare;Ti()(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)),$i()(Ql()(e),"state",{maxBars:100,width:650}),$i()(Ql()(e),"resize",(function(){vart,n=e.refs.chart.clientWidth-82;gb()?(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})})),$i()(Ql()(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})),$i()(Ql()(e),"getData",(function(){vart=e.props.data;returnt=t.slice(0-e.state.maxBars)})),$i()(Ql()(e),"getValues",(function(){vart=e.getData();returnt=t.map((function(e){returne.value}),Ql()(e))})),$i()(Ql()(e),"isEmptyChart",(function(t){return0===(t=t.filter((function(e){returne>0}),Ql()(e))).length})),e}returnZl()(n,[{key:"componentDidMount",value:function(){this.resize=Object(yt.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"},Object(_t._x)("No activity this period","Notice in the empty statistics chart","jetpack")))),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(mb,{barClick:this.props.barClick,data:r,yAxisMax:n,chartWidth:this.state.width,isTouch:gb()}),e)}}]),n}(s.a.Component);$i()(vb,"displayName","ModuleChart"),$i()(vb,"propTypes",{loading:p.a.bool,data:p.a.array,minTouchBarWidth:p.a.number,minBarWidth:p.a.number,barClick:p.a.func}),$i()(vb,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:yt.noop});varbb=function(e){Pi()(n,e);vart=Ri()(n);functionn(){vare;Ti()(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)),$i()(Ql()(e),"trackViewDetailedStats",(function(){returnvu.tracks.recordJetpackClick("view_detailed_stats")})),$i()(Ql()(e),"trackViewWpcomStats",(function(){returnvu.tracks.recordJetpackClick("view_wpcom_stats")})),e}returnZl()(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];returns.a.createElement("div",null,s.a.createElement("div",{className:"jp-at-a-glance__stats-summary"},s.a.createElement("div",{className:"jp-at-a-glance__stats-summary-today"},s.a.createElement("p",{className:"jp-at