summaryrefslogtreecommitdiff
blob: 21374b3b1febfd05925c5749447dccd707ee52ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*! For license information please see admin.js.LICENSE.txt */
!function(){var e={27538:function(e){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},29183:function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.default=e.exports,e.exports.__esModule=!0,t.apply(this,arguments)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0},8172:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(31354),i=n(64803);function s(e){var t=(0,r.Z)(e);return function(e){return(0,i.Z)(t,e)}}},64803:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r={"!":function(e){return!e},"*":function(e,t){return e*t},"/":function(e,t){return e/t},"%":function(e,t){return e%t},"+":function(e,t){return e+t},"-":function(e,t){return e-t},"<":function(e,t){return e<t},"<=":function(e,t){return e<=t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"==":function(e,t){return e===t},"!=":function(e,t){return e!==t},"&&":function(e,t){return e&&t},"||":function(e,t){return e||t},"?:":function(e,t,n){if(e)throw t;return n}};function i(e,t){var n,i,s,o,a,c,l=[];for(n=0;n<e.length;n++){if(a=e[n],o=r[a]){for(i=o.length,s=Array(i);i--;)s[i]=l.pop();try{c=o.apply(null,s)}catch(e){return e}}else c=t.hasOwnProperty(a)?t[a]:+a;l.push(c)}return l[0]}},7478:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8172);function i(e){var t=(0,r.Z)(e);return function(e){return+t({n:e})}}},31354:function(e,t,n){"use strict";var r,i,s,o;function a(e){for(var t,n,a,c,l=[],u=[];t=e.match(o);){for(n=t[0],(a=e.substr(0,t.index).trim())&&l.push(a);c=u.pop();){if(s[n]){if(s[n][0]===c){n=s[n][1]||n;break}}else if(i.indexOf(c)>=0||r[c]<r[n]){u.push(c);break}l.push(c)}s[n]||u.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&l.push(e),l.concat(u.reverse())}n.d(t,{Z:function(){return a}}),r={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},i=["(","?"],s={")":["("],":":["?","?:"]},o=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/},702:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function i(e,t){var n;if(!Array.isArray(t))for(t=new Array(arguments.length-1),n=1;n<arguments.length;n++)t[n-1]=arguments[n];return n=1,e.replace(r,(function(){var e,r,i,s,o;return e=arguments[3],r=arguments[5],"%"===(s=arguments[9])?"%":("*"===(i=arguments[7])&&(i=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(o=t[0][r]):(void 0===e&&(e=n),n++,o=t[e-1]),"f"===s?o=parseFloat(o)||0:"d"===s&&(o=parseInt(o)||0),void 0!==i&&("f"===s?o=o.toFixed(i):"s"===s&&(o=o.substr(0,i))),null!=o?o:"")}))}},22607:function(e,t,n){"use strict";var r=n(69307);t.Z=function(e){let{icon:t,size:n=24,...i}=e;return(0,r.cloneElement)(t,{width:n,height:n,...i})}},28503:function(e,t,n){"use strict";var r=n(69307),i=n(70444);const s=(0,r.createElement)(i.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,r.createElement)(i.Path,{d:"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z"}));t.Z=s},8277:function(e,t,n){"use strict";const r=t;r.bignum=n(30910),r.define=n(99875).define,r.base=n(73034),r.constants=n(68344),r.decoders=n(55439),r.encoders=n(95411)},99875:function(e,t,n){"use strict";const r=n(95411),i=n(55439),s=n(59503);function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}t.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(e){const t=this.name;function n(e){this._initNamed(e,t)}return s(n,e),n.prototype._initNamed=function(t,n){e.call(this,t,n)},new n(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(i[e])),this.decoders[e]},o.prototype.decode=function(e,t,n){return this._getDecoder(t).decode(e,n)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(r[e])),this.encoders[e]},o.prototype.encode=function(e,t,n){return this._getEncoder(t).encode(e,n)}},27027:function(e,t,n){"use strict";const r=n(59503),i=n(72173).b,s=n(82923).Buffer;function o(e,t){i.call(this,t),s.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function a(e,t){if(Array.isArray(e))this.length=0,this.value=e.map((function(e){return a.isEncoderBuffer(e)||(e=new a(e,t)),this.length+=e.length,e}),this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=s.byteLength(e);else{if(!s.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}r(o,i),t.C=o,o.isDecoderBuffer=function(e){if(e instanceof o)return!0;return"object"==typeof e&&s.isBuffer(e.base)&&"DecoderBuffer"===e.constructor.name&&"number"==typeof e.offset&&"number"==typeof e.length&&"function"==typeof e.save&&"function"==typeof e.restore&&"function"==typeof e.isEmpty&&"function"==typeof e.readUInt8&&"function"==typeof e.skip&&"function"==typeof e.raw},o.prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},o.prototype.restore=function(e){const t=new o(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},o.prototype.isEmpty=function(){return this.offset===this.length},o.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},o.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");const n=new o(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+e,this.offset+=e,n},o.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},t.R=a,a.isEncoderBuffer=function(e){if(e instanceof a)return!0;return"object"==typeof e&&"EncoderBuffer"===e.constructor.name&&"number"==typeof e.length&&"function"==typeof e.join},a.prototype.join=function(e,t){return e||(e=s.alloc(this.length)),t||(t=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(e,t),t+=n.length})):("number"==typeof this.value?e[t]=this.value:"string"==typeof this.value?e.write(this.value,t):s.isBuffer(this.value)&&this.value.copy(e,t),t+=this.length)),e}},73034:function(e,t,n){"use strict";const r=t;r.Reporter=n(72173).b,r.DecoderBuffer=n(27027).C,r.EncoderBuffer=n(27027).R,r.Node=n(24873)},24873:function(e,t,n){"use strict";const r=n(72173).b,i=n(27027).R,s=n(27027).C,o=n(48282),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function l(e,t,n){const r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=l;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const e=this._baseState,t={};u.forEach((function(n){t[n]=e[n]}));const n=new this.constructor(t.parent);return n._baseState=t,n},l.prototype._wrap=function(){const e=this._baseState;c.forEach((function(t){this[t]=function(){const n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},l.prototype._init=function(e){const t=this._baseState;o(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),o.equal(t.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(e){const t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(o(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(o(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!=typeof e||e.constructor!==Object)return e;const t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);const r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){l.prototype[e]=function(){const t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),a.forEach((function(e){l.prototype[e]=function(){const t=this._baseState,n=Array.prototype.slice.call(arguments);return o(null===t.tag),t.tag=e,this._useArgs(n),this}})),l.prototype.use=function(e){o(e);const t=this._baseState;return o(null===t.use),t.use=e,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(e){const t=this._baseState;return o(null===t.default),t.default=e,t.optional=!0,this},l.prototype.explicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.explicit=e,this},l.prototype.implicit=function(e){const t=this._baseState;return o(null===t.explicit&&null===t.implicit),t.implicit=e,this},l.prototype.obj=function(){const e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},l.prototype.key=function(e){const t=this._baseState;return o(null===t.key),t.key=e,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(e){const t=this._baseState;return o(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},l.prototype.contains=function(e){const t=this._baseState;return o(null===t.use),t.contains=e,this},l.prototype._decode=function(e,t){const n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));let r,i=n.default,o=!0,a=null;if(null!==n.key&&(a=e.enterKey(n.key)),n.optional){let r=null;if(null!==n.explicit?r=n.explicit:null!==n.implicit?r=n.implicit:null!==n.tag&&(r=n.tag),null!==r||n.any){if(o=this._peekTag(e,r,n.any),e.isError(o))return o}else{const r=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),o=!0}catch(e){o=!1}e.restore(r)}}if(n.obj&&o&&(r=e.enterObject()),o){if(null!==n.explicit){const t=this._decodeTag(e,n.explicit);if(e.isError(t))return t;e=t}const r=e.offset;if(null===n.use&&null===n.choice){let t;n.any&&(t=e.save());const r=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(r))return r;n.any?i=e.raw(t):e=r}if(t&&t.track&&null!==n.tag&&t.track(e.path(),r,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const r=new s(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(r,t)}}return n.obj&&o&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==o?null!==a&&e.exitKey(a):e.leaveKey(a,n.key,i),i},l.prototype._decodeGeneric=function(e,t,n){const r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},l.prototype._getUse=function(e,t){const n=this._baseState;return n.useDecoder=this._use(e,t),o(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(e,t){const n=this._baseState;let r=null,i=!1;return Object.keys(n.choice).some((function(s){const o=e.save(),a=n.choice[s];try{const n=a._decode(e,t);if(e.isError(n))return!1;r={type:s,value:n},i=!0}catch(t){return e.restore(o),!1}return!0}),this),i?r:e.error("Choice not matched")},l.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},l.prototype._encode=function(e,t,n){const r=this._baseState;if(null!==r.default&&r.default===e)return;const i=this._encodeValue(e,t,n);return void 0===i||this._skipDefault(i,t,n)?void 0:i},l.prototype._encodeValue=function(e,t,n){const i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);let s=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}let o=null,a=!1;if(i.any)s=this._createEncoderBuffer(e);else if(i.choice)s=this._encodeChoice(e,t);else if(i.contains)o=this._getUse(i.contains,n)._encode(e,t),a=!0;else if(i.children)o=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");const r=t.enterKey(n._baseState.key);if("object"!=typeof e)return t.error("Child expected, but input is not object");const i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),o=this._createEncoderBuffer(o);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,o=this._createEncoderBuffer(e.map((function(n){const r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),n))}else null!==i.use?s=this._getUse(i.use,n)._encode(e,t):(o=this._encodePrimitive(i.tag,e),a=!0);if(!i.any&&null===i.choice){const e=null!==i.implicit?i.implicit:i.tag,n=null===i.implicit?"universal":"context";null===e?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(s=this._encodeComposite(e,a,n,o))}return null!==i.explicit&&(s=this._encodeComposite(i.explicit,!1,"context",s)),s},l.prototype._encodeChoice=function(e,t){const n=this._baseState,r=n.choice[e.type];return r||o(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},l.prototype._encodePrimitive=function(e,t){const n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},l.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},l.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},72173:function(e,t,n){"use strict";const r=n(59503);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function s(e,t){this.path=e,this.rethrow(t)}t.b=i,i.prototype.isError=function(e){return e instanceof s},i.prototype.save=function(){const e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){const t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){const t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){const r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){const e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){const t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){let t;const n=this._reporterState,r=e instanceof s;if(t=r?e:new s(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){const t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(s,Error),s.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,s),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},5598:function(e,t){"use strict";function n(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=n(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=n(t.tag)},68344:function(e,t,n){"use strict";const r=t;r._reverse=function(e){const t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);const r=e[n];t[r]=n})),t},r.der=n(5598)},75761:function(e,t,n){"use strict";const r=n(59503),i=n(30910),s=n(27027).C,o=n(24873),a=n(5598);function c(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new l,this.tree._init(e.body)}function l(e){o.call(this,"der",e)}function u(e,t){let n=e.readUInt8(t);if(e.isError(n))return n;const r=a.tagClass[n>>6],i=0==(32&n);if(31==(31&n)){let r=n;for(n=0;128==(128&r);){if(r=e.readUInt8(t),e.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:r,primitive:i,tag:n,tagStr:a.tag[n]}}function p(e,t,n){let r=e.readUInt8(n);if(e.isError(r))return r;if(!t&&128===r)return null;if(0==(128&r))return r;const i=127&r;if(i>4)return e.error("length octect is too long");r=0;for(let t=0;t<i;t++){r<<=8;const t=e.readUInt8(n);if(e.isError(t))return t;r|=t}return r}e.exports=c,c.prototype.decode=function(e,t){return s.isDecoderBuffer(e)||(e=new s(e,t)),this.tree._decode(e,t)},r(l,o),l.prototype._peekTag=function(e,t,n){if(e.isEmpty())return!1;const r=e.save(),i=u(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(r),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||n)},l.prototype._decodeTag=function(e,t,n){const r=u(e,'Failed to decode tag of "'+t+'"');if(e.isError(r))return r;let i=p(e,r.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!n&&r.tag!==t&&r.tagStr!==t&&r.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(r.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');const s=e.save(),o=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(o)?o:(i=e.offset-s.offset,e.restore(s),e.skip(i,'Failed to match body of: "'+t+'"'))},l.prototype._skipUntilEnd=function(e,t){for(;;){const n=u(e,t);if(e.isError(n))return n;const r=p(e,n.primitive,t);if(e.isError(r))return r;let i;if(i=n.primitive||null!==r?e.skip(r):this._skipUntilEnd(e,t),e.isError(i))return i;if("end"===n.tagStr)break}},l.prototype._decodeList=function(e,t,n,r){const i=[];for(;!e.isEmpty();){const t=this._peekTag(e,"end");if(e.isError(t))return t;const s=n.decode(e,"der",r);if(e.isError(s)&&t)break;i.push(s)}return i},l.prototype._decodeStr=function(e,t){if("bitstr"===t){const t=e.readUInt8();return e.isError(t)?t:{unused:t,data:e.raw()}}if("bmpstr"===t){const t=e.raw();if(t.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");let n="";for(let e=0;e<t.length/2;e++)n+=String.fromCharCode(t.readUInt16BE(2*e));return n}if("numstr"===t){const t=e.raw().toString("ascii");return this._isNumstr(t)?t:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"===t){const t=e.raw().toString("ascii");return this._isPrintstr(t)?t:e.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported")},l.prototype._decodeObjid=function(e,t,n){let r;const i=[];let s=0,o=0;for(;!e.isEmpty();)o=e.readUInt8(),s<<=7,s|=127&o,0==(128&o)&&(i.push(s),s=0);128&o&&i.push(s);const a=i[0]/40|0,c=i[0]%40;if(r=n?i:[a,c].concat(i.slice(1)),t){let e=t[r.join(" ")];void 0===e&&(e=t[r.join(".")]),void 0!==e&&(r=e)}return r},l.prototype._decodeTime=function(e,t){const n=e.raw().toString();let r,i,s,o,a,c;if("gentime"===t)r=0|n.slice(0,4),i=0|n.slice(4,6),s=0|n.slice(6,8),o=0|n.slice(8,10),a=0|n.slice(10,12),c=0|n.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");r=0|n.slice(0,2),i=0|n.slice(2,4),s=0|n.slice(4,6),o=0|n.slice(6,8),a=0|n.slice(8,10),c=0|n.slice(10,12),r=r<70?2e3+r:1900+r}return Date.UTC(r,i-1,s,o,a,c,0)},l.prototype._decodeNull=function(){return null},l.prototype._decodeBool=function(e){const t=e.readUInt8();return e.isError(t)?t:0!==t},l.prototype._decodeInt=function(e,t){const n=e.raw();let r=new i(n);return t&&(r=t[r.toString(10)]||r),r},l.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},55439:function(e,t,n){"use strict";const r=t;r.der=n(75761),r.pem=n(33672)},33672:function(e,t,n){"use strict";const r=n(59503),i=n(82923).Buffer,s=n(75761);function o(e){s.call(this,e),this.enc="pem"}r(o,s),e.exports=o,o.prototype.decode=function(e,t){const n=e.toString().split(/[\r\n]+/g),r=t.label.toUpperCase(),o=/^-----(BEGIN|END) ([^-]+)-----$/;let a=-1,c=-1;for(let e=0;e<n.length;e++){const t=n[e].match(o);if(null!==t&&t[2]===r){if(-1!==a){if("END"!==t[1])break;c=e;break}if("BEGIN"!==t[1])break;a=e}}if(-1===a||-1===c)throw new Error("PEM section not found for: "+r);const l=n.slice(a+1,c).join("");l.replace(/[^a-z0-9+/=]+/gi,"");const u=i.from(l,"base64");return s.prototype.decode.call(this,u,t)}},18248:function(e,t,n){"use strict";const r=n(59503),i=n(82923).Buffer,s=n(24873),o=n(5598);function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){s.call(this,"der",e)}function l(e){return e<10?"0"+e:e}e.exports=a,a.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},r(c,s),c.prototype._encodeComposite=function(e,t,n,r){const s=function(e,t,n,r){let i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(o.tagByName.hasOwnProperty(e))i=o.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return r.error("Unknown tag: "+e);i=e}if(i>=31)return r.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=o.tagClassByName[n||"universal"]<<6,i}(e,t,n,this.reporter);if(r.length<128){const e=i.alloc(2);return e[0]=s,e[1]=r.length,this._createEncoderBuffer([e,r])}let a=1;for(let e=r.length;e>=256;e>>=8)a++;const c=i.alloc(2+a);c[0]=s,c[1]=128|a;for(let e=1+a,t=r.length;t>0;e--,t>>=8)c[e]=255&t;return this._createEncoderBuffer([c,r])},c.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){const t=i.alloc(2*e.length);for(let n=0;n<e.length;n++)t.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(t)}return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)||"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported")},c.prototype._encodeObjid=function(e,t,n){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s.]+/g);for(let t=0;t<e.length;t++)e[t]|=0}else if(Array.isArray(e)){e=e.slice();for(let t=0;t<e.length;t++)e[t]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!n){if(e[1]>=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}let r=0;for(let t=0;t<e.length;t++){let n=e[t];for(r++;n>=128;n>>=7)r++}const s=i.alloc(r);let o=s.length-1;for(let t=e.length-1;t>=0;t--){let n=e[t];for(s[o--]=127&n;(n>>=7)>0;)s[o--]=128|127&n}return this._createEncoderBuffer(s)},c.prototype._encodeTime=function(e,t){let n;const r=new Date(e);return"gentime"===t?n=[l(r.getUTCFullYear()),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):"utctime"===t?n=[l(r.getUTCFullYear()%100),l(r.getUTCMonth()+1),l(r.getUTCDate()),l(r.getUTCHours()),l(r.getUTCMinutes()),l(r.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!i.isBuffer(e)){const t=e.toArray();!e.sign&&128&t[0]&&t.unshift(0),e=i.from(t)}if(i.isBuffer(e)){let t=e.length;0===e.length&&t++;const n=i.alloc(t);return e.copy(n),0===e.length&&(n[0]=0),this._createEncoderBuffer(n)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);let n=1;for(let t=e;t>=256;t>>=8)n++;const r=new Array(n);for(let t=r.length-1;t>=0;t--)r[t]=255&e,e>>=8;return 128&r[0]&&r.unshift(0),this._createEncoderBuffer(i.from(r))},c.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},c.prototype._skipDefault=function(e,t,n){const r=this._baseState;let i;if(null===r.default)return!1;const s=e.join();if(void 0===r.defaultBuffer&&(r.defaultBuffer=this._encodeValue(r.default,t,n).join()),s.length!==r.defaultBuffer.length)return!1;for(i=0;i<s.length;i++)if(s[i]!==r.defaultBuffer[i])return!1;return!0}},95411:function(e,t,n){"use strict";const r=t;r.der=n(18248),r.pem=n(51027)},51027:function(e,t,n){"use strict";const r=n(59503),i=n(18248);function s(e){i.call(this,e),this.enc="pem"}r(s,i),e.exports=s,s.prototype.encode=function(e,t){const n=i.prototype.encode.call(this,e).toString("base64"),r=["-----BEGIN "+t.label+"-----"];for(let e=0;e<n.length;e+=64)r.push(n.slice(e,e+64));return r.push("-----END "+t.label+"-----"),r.join("\n")}},90605:function(e,t,n){"use strict";var r=n(5806),i=n(55246);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var o,a,c=n(27452).codes,l=c.ERR_AMBIGUOUS_ARGUMENT,u=c.ERR_INVALID_ARG_TYPE,p=c.ERR_INVALID_ARG_VALUE,d=c.ERR_INVALID_RETURN_VALUE,h=c.ERR_MISSING_ARGS,f=n(71228),m=n(23333).inspect,g=n(23333).types,v=g.isPromise,b=g.isRegExp,y=Object.assign?Object.assign:n(45685).assign,k=Object.is?Object.is:n(88706);new Map;function w(){var e=n(81562);o=e.isDeepEqual,a=e.isDeepStrictEqual}var _=!1,E=e.exports=M,C={};function S(e){if(e.message instanceof Error)throw e.message;throw new f(e)}function j(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var s=new f({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw s.generatedMessage=i,s}}function M(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j.apply(void 0,[M,t.length].concat(t))}E.fail=function e(t,n,s,o,a){var c,l=arguments.length;if(0===l)c="Failed";else if(1===l)s=t,t=void 0;else{if(!1===_){_=!0;var u=r.emitWarning?r.emitWarning:i.warn.bind(i);u("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094")}2===l&&(o="!=")}if(s instanceof Error)throw s;var p={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==s&&(p.message=s);var d=new f(p);throw c&&(d.message=c,d.generatedMessage=!0),d},E.AssertionError=f,E.ok=M,E.equal=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");t!=n&&S({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},E.notEqual=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");t==n&&S({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},E.deepEqual=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");void 0===o&&w(),o(t,n)||S({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},E.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");void 0===o&&w(),o(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},E.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");void 0===o&&w(),a(t,n)||S({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},E.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");void 0===o&&w();a(t,n)&&S({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},E.strictEqual=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");k(t,n)||S({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},E.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new h("actual","expected");k(t,n)&&S({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var x=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"==typeof r[e]&&b(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function N(e,t,n,r,i,s){if(!(n in e)||!a(e[n],t[n])){if(!r){var o=new x(e,i),c=new x(t,i,e),l=new f({actual:o,expected:c,operator:"deepStrictEqual",stackStartFn:s});throw l.actual=e,l.expected=t,l.operator=s.name,l}S({actual:e,expected:t,message:r,operator:s.name,stackStartFn:s})}}function A(e,t,n,r){if("function"!=typeof t){if(b(t))return t.test(e);if(2===arguments.length)throw new u("expected",["Function","RegExp"],t);if("object"!==s(e)||null===e){var i=new f({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw i.operator=r.name,i}var a=Object.keys(t);if(t instanceof Error)a.push("name","message");else if(0===a.length)throw new p("error",t,"may not be an empty object");return void 0===o&&w(),a.forEach((function(i){"string"==typeof e[i]&&b(t[i])&&t[i].test(e[i])||N(e,t,i,n,a,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function O(e){if("function"!=typeof e)throw new u("fn","Function",e);try{e()}catch(e){return e}return C}function T(e){return v(e)||null!==e&&"object"===s(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function P(e){return Promise.resolve().then((function(){var t;if("function"==typeof e){if(!T(t=e()))throw new d("instance of Promise","promiseFn",t)}else{if(!T(e))throw new u("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return C})).catch((function(e){return e}))}))}function I(e,t,n,r){if("string"==typeof n){if(4===arguments.length)throw new u("error",["Object","Error","Function","RegExp"],n);if("object"===s(t)&&null!==t){if(t.message===n)throw new l("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new l("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==s(n)&&"function"!=typeof n)throw new u("error",["Object","Error","Function","RegExp"],n);if(t===C){var i="";n&&n.name&&(i+=" (".concat(n.name,")")),i+=r?": ".concat(r):".";var o="rejects"===e.name?"rejection":"exception";S({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(o).concat(i),stackStartFn:e})}if(n&&!A(t,n,r,e))throw t}function R(e,t,n,r){if(t!==C){if("string"==typeof n&&(r=n,n=void 0),!n||A(t,n)){var i=r?": ".concat(r):".",s="doesNotReject"===e.name?"rejection":"exception";S({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(s).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function U(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];j.apply(void 0,[U,t.length].concat(t))}E.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];I.apply(void 0,[e,O(t)].concat(r))},E.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return I.apply(void 0,[e,t].concat(r))}))},E.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];R.apply(void 0,[e,O(t)].concat(r))},E.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return R.apply(void 0,[e,t].concat(r))}))},E.ifError=function e(t){if(null!=t){var n="ifError got unwanted exception: ";"object"===s(t)&&"string"==typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=m(t);var r=new f({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),i=t.stack;if("string"==typeof i){var o=i.split("\n");o.shift();for(var a=r.stack.split("\n"),c=0;c<o.length;c++){var l=a.indexOf(o[c]);if(-1!==l){a=a.slice(0,l);break}}r.stack="".concat(a.join("\n"),"\n").concat(o.join("\n"))}throw r}},E.strict=y(U,E,{equal:E.strictEqual,deepEqual:E.deepStrictEqual,notEqual:E.notStrictEqual,notDeepEqual:E.notDeepStrictEqual}),E.strict.strict=E.strict},71228:function(e,t,n){"use strict";var r=n(5806);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?a(e):t}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function c(e){var t="function"==typeof Map?new Map:void 0;return c=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return u(e,arguments,d(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)},c(e)}function l(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function u(e,t,n){return u=l()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&p(i,n.prototype),i},u.apply(null,arguments)}function p(e,t){return p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},p(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}var f=n(23333).inspect,m=n(27452).codes.ERR_INVALID_ARG_TYPE;function g(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var v="",b="",y="",k="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function _(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function E(e){return f(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function C(e,t,n){var i="",s="",o=0,a="",c=!1,l=E(e),u=l.split("\n"),p=E(t).split("\n"),d=0,f="";if("strictEqual"===n&&"object"===h(e)&&"object"===h(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===u.length&&1===p.length&&u[0]!==p[0]){var m=u[0].length+p[0].length;if(m<=10){if(!("object"===h(e)&&null!==e||"object"===h(t)&&null!==t||0===e&&0===t))return"".concat(w[n],"\n\n")+"".concat(u[0]," !== ").concat(p[0],"\n")}else if("strictEqualObject"!==n){if(m<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;u[0][d]===p[0][d];)d++;d>2&&(f="\n  ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",d),"^"),d=0)}}}for(var _=u[u.length-1],C=p[p.length-1];_===C&&(d++<2?a="\n  ".concat(_).concat(a):i=_,u.pop(),p.pop(),0!==u.length&&0!==p.length);)_=u[u.length-1],C=p[p.length-1];var S=Math.max(u.length,p.length);if(0===S){var j=l.split("\n");if(j.length>30)for(j[26]="".concat(v,"...").concat(k);j.length>27;)j.pop();return"".concat(w.notIdentical,"\n\n").concat(j.join("\n"),"\n")}d>3&&(a="\n".concat(v,"...").concat(k).concat(a),c=!0),""!==i&&(a="\n  ".concat(i).concat(a),i="");var M=0,x=w[n]+"\n".concat(b,"+ actual").concat(k," ").concat(y,"- expected").concat(k),N=" ".concat(v,"...").concat(k," Lines skipped");for(d=0;d<S;d++){var A=d-o;if(u.length<d+1)A>1&&d>2&&(A>4?(s+="\n".concat(v,"...").concat(k),c=!0):A>3&&(s+="\n  ".concat(p[d-2]),M++),s+="\n  ".concat(p[d-1]),M++),o=d,i+="\n".concat(y,"-").concat(k," ").concat(p[d]),M++;else if(p.length<d+1)A>1&&d>2&&(A>4?(s+="\n".concat(v,"...").concat(k),c=!0):A>3&&(s+="\n  ".concat(u[d-2]),M++),s+="\n  ".concat(u[d-1]),M++),o=d,s+="\n".concat(b,"+").concat(k," ").concat(u[d]),M++;else{var O=p[d],T=u[d],P=T!==O&&(!g(T,",")||T.slice(0,-1)!==O);P&&g(O,",")&&O.slice(0,-1)===T&&(P=!1,T+=","),P?(A>1&&d>2&&(A>4?(s+="\n".concat(v,"...").concat(k),c=!0):A>3&&(s+="\n  ".concat(u[d-2]),M++),s+="\n  ".concat(u[d-1]),M++),o=d,s+="\n".concat(b,"+").concat(k," ").concat(T),i+="\n".concat(y,"-").concat(k," ").concat(O),M+=2):(s+=i,i="",1!==A&&0!==d||(s+="\n  ".concat(T),M++))}if(M>20&&d<S-2)return"".concat(x).concat(N,"\n").concat(s,"\n").concat(v,"...").concat(k).concat(i,"\n")+"".concat(v,"...").concat(k)}return"".concat(x).concat(c?N:"","\n").concat(s).concat(i).concat(a).concat(f)}var S=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==h(e)||null===e)throw new m("options","Object",e);var i=e.message,s=e.operator,c=e.stackStartFn,l=e.actual,u=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=o(this,d(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(v="",b="",k="",y=""):(v="",b="",k="",y="")),"object"===h(l)&&null!==l&&"object"===h(u)&&null!==u&&"stack"in l&&l instanceof Error&&"stack"in u&&u instanceof Error&&(l=_(l),u=_(u)),"deepStrictEqual"===s||"strictEqual"===s)n=o(this,d(t).call(this,C(l,u,s)));else if("notDeepStrictEqual"===s||"notStrictEqual"===s){var f=w[s],g=E(l).split("\n");if("notStrictEqual"===s&&"object"===h(l)&&null!==l&&(f=w.notStrictEqualObject),g.length>30)for(g[26]="".concat(v,"...").concat(k);g.length>27;)g.pop();n=1===g.length?o(this,d(t).call(this,"".concat(f," ").concat(g[0]))):o(this,d(t).call(this,"".concat(f,"\n\n").concat(g.join("\n"),"\n")))}else{var S=E(l),j="",M=w[s];"notDeepEqual"===s||"notEqual"===s?(S="".concat(w[s],"\n\n").concat(S)).length>1024&&(S="".concat(S.slice(0,1021),"...")):(j="".concat(E(u)),S.length>512&&(S="".concat(S.slice(0,509),"...")),j.length>512&&(j="".concat(j.slice(0,509),"...")),"deepEqual"===s||"equal"===s?S="".concat(M,"\n\n").concat(S,"\n\nshould equal\n\n"):j=" ".concat(s," ").concat(j)),n=o(this,d(t).call(this,"".concat(S).concat(j)))}return Error.stackTraceLimit=p,n.generatedMessage=!i,Object.defineProperty(a(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=l,n.expected=u,n.operator=s,Error.captureStackTrace&&Error.captureStackTrace(a(n),c),n.stack,n.name="AssertionError",o(n)}var n,c,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,e),n=t,c=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:f.custom,value:function(e,t){return f(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],c&&s(n.prototype,c),l&&s(n,l),t}(c(Error));e.exports=S},27452:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function o(e,t){return o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},o(e,t)}var a,c,l={};function u(e,t,n){n||(n=Error);var r=function(n){function r(n,o,a){var c;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),c=i(this,s(r).call(this,function(e,n,r){return"string"==typeof t?t:t(e,n,r)}(n,o,a))),c.code=e,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}(r,n),r}(n);l[e]=r}function p(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}u("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),u("ERR_INVALID_ARG_TYPE",(function(e,t,i){var s,o,c,l;if(void 0===a&&(a=n(90605)),a("string"==typeof e,"'name' must be a string"),"string"==typeof t&&(o="not ",t.substr(!c||c<0?0:+c,o.length)===o)?(s="must not be",t=t.replace(/^not /,"")):s="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))l="The ".concat(e," ").concat(s," ").concat(p(t,"type"));else{var u=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(u," ").concat(s," ").concat(p(t,"type"))}return l+=". Received type ".concat(r(i))}),TypeError),u("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===c&&(c=n(23333));var i=c.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),u("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),u("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===a&&(a=n(90605)),a(t.length>0,"At least one arg needs to be specified");var i="The ",s=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),s){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,s-1).join(", "),i+=", and ".concat(t[s-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=l},81562:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],_n=!0,r=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(_n=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);_n=!0);}catch(e){r=!0,i=e}finally{try{_n||null==o.return||o.return()}finally{if(r)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var s=void 0!==/a/g.flags,o=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},a=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},c=Object.is?Object.is:n(88706),l=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},u=Number.isNaN?Number.isNaN:n(17614);function p(e){return e.call.bind(e)}var d=p(Object.prototype.hasOwnProperty),h=p(Object.prototype.propertyIsEnumerable),f=p(Object.prototype.toString),m=n(23333).types,g=m.isAnyArrayBuffer,v=m.isArrayBufferView,b=m.isDate,y=m.isMap,k=m.isRegExp,w=m.isSet,_=m.isNativeError,E=m.isBoxedPrimitive,C=m.isNumberObject,S=m.isStringObject,j=m.isBooleanObject,M=m.isBigIntObject,x=m.isSymbolObject,N=m.isFloat32Array,A=m.isFloat64Array;function O(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function T(e){return Object.keys(e).filter(O).concat(l(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function P(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}function I(e,t,n,r){if(e===t)return 0!==e||(!n||c(e,t));if(n){if("object"!==i(e))return"number"==typeof e&&u(e)&&u(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var o,a,l,p,d=f(e);if(d!==f(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var h=T(e),m=T(t);return h.length===m.length&&U(e,t,n,r,1,h)}if("[object Object]"===d&&(!y(e)&&y(t)||!w(e)&&w(t)))return!1;if(b(e)){if(!b(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(k(e)){if(!k(t)||(l=e,p=t,!(s?l.source===p.source&&l.flags===p.flags:RegExp.prototype.toString.call(l)===RegExp.prototype.toString.call(p))))return!1}else if(_(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(v(e)){if(n||!N(e)&&!A(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===P(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var O=T(e),I=T(t);return O.length===I.length&&U(e,t,n,r,0,O)}if(w(e))return!(!w(t)||e.size!==t.size)&&U(e,t,n,r,2);if(y(e))return!(!y(t)||e.size!==t.size)&&U(e,t,n,r,3);if(g(e)){if(a=t,(o=e).byteLength!==a.byteLength||0!==P(new Uint8Array(o),new Uint8Array(a)))return!1}else if(E(e)&&!function(e,t){return C(e)?C(t)&&c(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):S(e)?S(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):j(e)?j(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):M(e)?M(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):x(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return U(e,t,n,r,0)}function R(e,t){return t.filter((function(t){return h(e,t)}))}function U(e,t,n,r,i,s){if(5===arguments.length){s=Object.keys(e);var o=Object.keys(t);if(s.length!==o.length)return!1}for(var a=0;a<s.length;a++)if(!d(t,s[a]))return!1;if(n&&5===arguments.length){var c=l(e);if(0!==c.length){var u=0;for(a=0;a<c.length;a++){var p=c[a];if(h(e,p)){if(!h(t,p))return!1;s.push(p),u++}else if(h(t,p))return!1}var f=l(t);if(c.length!==f.length&&R(t,f).length!==u)return!1}else{var m=l(t);if(0!==m.length&&0!==R(t,m).length)return!1}}if(0===s.length&&(0===i||1===i&&0===e.length||0===e.size))return!0;if(void 0===r)r={val1:new Map,val2:new Map,position:0};else{var g=r.val1.get(e);if(void 0!==g){var v=r.val2.get(t);if(void 0!==v)return g===v}r.position++}r.val1.set(e,r.position),r.val2.set(t,r.position);var b=F(e,t,n,s,r,i);return r.val1.delete(e),r.val2.delete(t),b}function Z(e,t,n,r){for(var i=o(e),s=0;s<i.length;s++){var a=i[s];if(I(t,a,n,r))return e.delete(a),!0}return!1}function D(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(u(e))return!1}return!0}function L(e,t,n){var r=D(n);return null!=r?r:t.has(r)&&!e.has(r)}function z(e,t,n,r,i){var s=D(n);if(null!=s)return s;var o=t.get(s);return!(void 0===o&&!t.has(s)||!I(r,o,!1,i))&&(!e.has(s)&&I(r,o,!1,i))}function B(e,t,n,r,i,s){for(var a=o(e),c=0;c<a.length;c++){var l=a[c];if(I(n,l,i,s)&&I(r,t.get(l),i,s))return e.delete(l),!0}return!1}function F(e,t,n,s,c,l){var u=0;if(2===l){if(!function(e,t,n,r){for(var s=null,a=o(e),c=0;c<a.length;c++){var l=a[c];if("object"===i(l)&&null!==l)null===s&&(s=new Set),s.add(l);else if(!t.has(l)){if(n)return!1;if(!L(e,t,l))return!1;null===s&&(s=new Set),s.add(l)}}if(null!==s){for(var u=o(t),p=0;p<u.length;p++){var d=u[p];if("object"===i(d)&&null!==d){if(!Z(s,d,n,r))return!1}else if(!n&&!e.has(d)&&!Z(s,d,n,r))return!1}return 0===s.size}return!0}(e,t,n,c))return!1}else if(3===l){if(!function(e,t,n,s){for(var o=null,c=a(e),l=0;l<c.length;l++){var u=r(c[l],2),p=u[0],d=u[1];if("object"===i(p)&&null!==p)null===o&&(o=new Set),o.add(p);else{var h=t.get(p);if(void 0===h&&!t.has(p)||!I(d,h,n,s)){if(n)return!1;if(!z(e,t,p,d,s))return!1;null===o&&(o=new Set),o.add(p)}}}if(null!==o){for(var f=a(t),m=0;m<f.length;m++){var g=r(f[m],2),v=(p=g[0],g[1]);if("object"===i(p)&&null!==p){if(!B(o,e,p,v,n,s))return!1}else if(!(n||e.has(p)&&I(e.get(p),v,!1,s)||B(o,e,p,v,!1,s)))return!1}return 0===o.size}return!0}(e,t,n,c))return!1}else if(1===l)for(;u<e.length;u++){if(!d(e,u)){if(d(t,u))return!1;for(var p=Object.keys(e);u<p.length;u++){var h=p[u];if(!d(t,h)||!I(e[h],t[h],n,c))return!1}return p.length===Object.keys(t).length}if(!d(t,u)||!I(e[u],t[u],n,c))return!1}for(u=0;u<s.length;u++){var f=s[u];if(!I(e[f],t[f],n,c))return!1}return!0}e.exports={isDeepEqual:function(e,t){return I(e,t,false)},isDeepStrictEqual:function(e,t){return I(e,t,true)}}},6670:function(e,t,n){e.exports={default:n(92916),__esModule:!0}},62803:function(e,t){"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,s=c(e),o=s[0],a=s[1],l=new i(function(e,t,n){return 3*(t+n)/4-n}(0,o,a)),u=0,p=a>0?o-4:o;for(n=0;n<p;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],l[u++]=t>>16&255,l[u++]=t>>8&255,l[u++]=255&t;2===a&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t);1===a&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t);return l},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,s=[],o=16383,a=0,c=r-i;a<c;a+=o)s.push(l(e,a,a+o>c?c:a+o));1===i?(t=e[r-1],s.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],s.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return s.join("")};for(var n=[],r=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0,a=s.length;o<a;++o)n[o]=s[o],r[s.charCodeAt(o)]=o;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,r){for(var i,s,o=[],a=t;a<r;a+=3)i=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]),o.push(n[(s=i)>>18&63]+n[s>>12&63]+n[s>>6&63]+n[63&s]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},30910:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function s(e,t,n){if(s.isBN(e))return e;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"))}var o;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(56095).Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function l(e,t,n,r){for(var i=0,s=Math.min(e.length,n),o=t;o<s;o++){var a=e.charCodeAt(o)-48;i*=r,i+=a>=49?a-49+10:a>=17?a-17+10:a}return i}s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return e.cmp(t)<0?e:t},s.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=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)))},s.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)},s.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var s,o,a=0;if("be"===n)for(i=e.length-1,s=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this.strip()},s.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,s=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this.strip()},s.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var s=e.length-n,o=s%r,a=Math.min(s,s-o)+n,c=0,u=n;u<a;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){var p=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()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,c=o/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var u=c>>>26,p=67108863&c,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var f=l-h|0;u+=(o=(i=0|e.words[f])*(s=0|t.words[h])+p)/67108864|0,p=67108863&o}n.words[l]=0|p,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}s.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],c=(16777215&(a<<i|s)).toString(16);n=0!==(s=a>>>24-i&16777215)||o!==this.length-1?u[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(n=s.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=p[e],h=d[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(h).toString(e);n=(f=f.idivn(h)).isZero()?m+n:u[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,a,c="le"===t,l=new e(s),u=this.clone();if(c){for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[a]=o;for(;a<s;a++)l[a]=0}else{for(a=0;a<s-i;a++)l[a]=0;for(a=0;!u.isZero();a++)o=u.andln(255),u.iushrn(8),l[s-a-1]=o}return l},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},s.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this.strip()},s.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this.strip()},s.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this.strip()},s.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,s=0;s<r.length;s++)t=(0|n.words[s])+(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<n.length;s++)t=(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(t=(0|n.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&t;for(;0!==s&&o<n.length;o++)s=(t=(0|n.words[o])+s)>>26,this.words[o]=67108863&t;if(0===s&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this.strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var f=function(e,t,n){var r,i,s,o=e.words,a=t.words,c=n.words,l=0,u=0|o[0],p=8191&u,d=u>>>13,h=0|o[1],f=8191&h,m=h>>>13,g=0|o[2],v=8191&g,b=g>>>13,y=0|o[3],k=8191&y,w=y>>>13,_=0|o[4],E=8191&_,C=_>>>13,S=0|o[5],j=8191&S,M=S>>>13,x=0|o[6],N=8191&x,A=x>>>13,O=0|o[7],T=8191&O,P=O>>>13,I=0|o[8],R=8191&I,U=I>>>13,Z=0|o[9],D=8191&Z,L=Z>>>13,z=0|a[0],B=8191&z,F=z>>>13,V=0|a[1],q=8191&V,H=V>>>13,W=0|a[2],$=8191&W,J=W>>>13,K=0|a[3],G=8191&K,Y=K>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],se=8191&ie,oe=ie>>>13,ae=0|a[7],ce=8191&ae,le=ae>>>13,ue=0|a[8],pe=8191&ue,de=ue>>>13,he=0|a[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(p,B))|0)+((8191&(i=(i=Math.imul(p,F))+Math.imul(d,B)|0))<<13)|0;l=((s=Math.imul(d,F))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,B),i=(i=Math.imul(f,F))+Math.imul(m,B)|0,s=Math.imul(m,F);var ve=(l+(r=r+Math.imul(p,q)|0)|0)+((8191&(i=(i=i+Math.imul(p,H)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,H)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,B),i=(i=Math.imul(v,F))+Math.imul(b,B)|0,s=Math.imul(b,F),r=r+Math.imul(f,q)|0,i=(i=i+Math.imul(f,H)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,H)|0;var be=(l+(r=r+Math.imul(p,$)|0)|0)+((8191&(i=(i=i+Math.imul(p,J)|0)+Math.imul(d,$)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(k,B),i=(i=Math.imul(k,F))+Math.imul(w,B)|0,s=Math.imul(w,F),r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,H)|0)+Math.imul(b,q)|0,s=s+Math.imul(b,H)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,J)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,J)|0;var ye=(l+(r=r+Math.imul(p,G)|0)|0)+((8191&(i=(i=i+Math.imul(p,Y)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(E,B),i=(i=Math.imul(E,F))+Math.imul(C,B)|0,s=Math.imul(C,F),r=r+Math.imul(k,q)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,H)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,J)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,Y)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,Y)|0;var ke=(l+(r=r+Math.imul(p,Q)|0)|0)+((8191&(i=(i=i+Math.imul(p,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,ee)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,B),i=(i=Math.imul(j,F))+Math.imul(M,B)|0,s=Math.imul(M,F),r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,H)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,J)|0,r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(b,G)|0,s=s+Math.imul(b,Y)|0,r=r+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,ee)|0;var we=(l+(r=r+Math.imul(p,ne)|0)|0)+((8191&(i=(i=i+Math.imul(p,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((s=s+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(N,B),i=(i=Math.imul(N,F))+Math.imul(A,B)|0,s=Math.imul(A,F),r=r+Math.imul(j,q)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(M,q)|0,s=s+Math.imul(M,H)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(C,$)|0,s=s+Math.imul(C,J)|0,r=r+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,s=s+Math.imul(b,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,s=s+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(p,se)|0)|0)+((8191&(i=(i=i+Math.imul(p,oe)|0)+Math.imul(d,se)|0))<<13)|0;l=((s=s+Math.imul(d,oe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(T,B),i=(i=Math.imul(T,F))+Math.imul(P,B)|0,s=Math.imul(P,F),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,H)|0,r=r+Math.imul(j,$)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(M,$)|0,s=s+Math.imul(M,J)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,Y)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(b,ne)|0,s=s+Math.imul(b,re)|0,r=r+Math.imul(f,se)|0,i=(i=i+Math.imul(f,oe)|0)+Math.imul(m,se)|0,s=s+Math.imul(m,oe)|0;var Ee=(l+(r=r+Math.imul(p,ce)|0)|0)+((8191&(i=(i=i+Math.imul(p,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((s=s+Math.imul(d,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(R,B),i=(i=Math.imul(R,F))+Math.imul(U,B)|0,s=Math.imul(U,F),r=r+Math.imul(T,q)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,H)|0,r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,J)|0,r=r+Math.imul(j,G)|0,i=(i=i+Math.imul(j,Y)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(w,ne)|0,s=s+Math.imul(w,re)|0,r=r+Math.imul(v,se)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(b,se)|0,s=s+Math.imul(b,oe)|0,r=r+Math.imul(f,ce)|0,i=(i=i+Math.imul(f,le)|0)+Math.imul(m,ce)|0,s=s+Math.imul(m,le)|0;var Ce=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,de)|0)+Math.imul(d,pe)|0))<<13)|0;l=((s=s+Math.imul(d,de)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,B),i=(i=Math.imul(D,F))+Math.imul(L,B)|0,s=Math.imul(L,F),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,H)|0)+Math.imul(U,q)|0,s=s+Math.imul(U,H)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,J)|0,r=r+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,Y)|0,r=r+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(C,ne)|0,s=s+Math.imul(C,re)|0,r=r+Math.imul(k,se)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(w,se)|0,s=s+Math.imul(w,oe)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(b,ce)|0,s=s+Math.imul(b,le)|0,r=r+Math.imul(f,pe)|0,i=(i=i+Math.imul(f,de)|0)+Math.imul(m,pe)|0,s=s+Math.imul(m,de)|0;var Se=(l+(r=r+Math.imul(p,fe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(d,fe)|0))<<13)|0;l=((s=s+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,H))+Math.imul(L,q)|0,s=Math.imul(L,H),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(U,$)|0,s=s+Math.imul(U,J)|0,r=r+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,Y)|0,r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,ee)|0,r=r+Math.imul(j,ne)|0,i=(i=i+Math.imul(j,re)|0)+Math.imul(M,ne)|0,s=s+Math.imul(M,re)|0,r=r+Math.imul(E,se)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,oe)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(w,ce)|0,s=s+Math.imul(w,le)|0,r=r+Math.imul(v,pe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(b,pe)|0,s=s+Math.imul(b,de)|0;var je=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;l=((s=s+Math.imul(m,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,J))+Math.imul(L,$)|0,s=Math.imul(L,J),r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(U,G)|0,s=s+Math.imul(U,Y)|0,r=r+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,ee)|0,r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(A,ne)|0,s=s+Math.imul(A,re)|0,r=r+Math.imul(j,se)|0,i=(i=i+Math.imul(j,oe)|0)+Math.imul(M,se)|0,s=s+Math.imul(M,oe)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,le)|0,r=r+Math.imul(k,pe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(w,pe)|0,s=s+Math.imul(w,de)|0;var Me=(l+(r=r+Math.imul(v,fe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,fe)|0))<<13)|0;l=((s=s+Math.imul(b,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,G),i=(i=Math.imul(D,Y))+Math.imul(L,G)|0,s=Math.imul(L,Y),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(U,Q)|0,s=s+Math.imul(U,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(P,ne)|0,s=s+Math.imul(P,re)|0,r=r+Math.imul(N,se)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(A,se)|0,s=s+Math.imul(A,oe)|0,r=r+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,le)|0)+Math.imul(M,ce)|0,s=s+Math.imul(M,le)|0,r=r+Math.imul(E,pe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(C,pe)|0,s=s+Math.imul(C,de)|0;var xe=(l+(r=r+Math.imul(k,fe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(w,fe)|0))<<13)|0;l=((s=s+Math.imul(w,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(L,Q)|0,s=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(U,ne)|0,s=s+Math.imul(U,re)|0,r=r+Math.imul(T,se)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(P,se)|0,s=s+Math.imul(P,oe)|0,r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(A,ce)|0,s=s+Math.imul(A,le)|0,r=r+Math.imul(j,pe)|0,i=(i=i+Math.imul(j,de)|0)+Math.imul(M,pe)|0,s=s+Math.imul(M,de)|0;var Ne=(l+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(C,fe)|0))<<13)|0;l=((s=s+Math.imul(C,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(L,ne)|0,s=Math.imul(L,re),r=r+Math.imul(R,se)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(U,se)|0,s=s+Math.imul(U,oe)|0,r=r+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(P,ce)|0,s=s+Math.imul(P,le)|0,r=r+Math.imul(N,pe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(A,pe)|0,s=s+Math.imul(A,de)|0;var Ae=(l+(r=r+Math.imul(j,fe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(M,fe)|0))<<13)|0;l=((s=s+Math.imul(M,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,se),i=(i=Math.imul(D,oe))+Math.imul(L,se)|0,s=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(U,ce)|0,s=s+Math.imul(U,le)|0,r=r+Math.imul(T,pe)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(P,pe)|0,s=s+Math.imul(P,de)|0;var Oe=(l+(r=r+Math.imul(N,fe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(A,fe)|0))<<13)|0;l=((s=s+Math.imul(A,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,ce),i=(i=Math.imul(D,le))+Math.imul(L,ce)|0,s=Math.imul(L,le),r=r+Math.imul(R,pe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(U,pe)|0,s=s+Math.imul(U,de)|0;var Te=(l+(r=r+Math.imul(T,fe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(P,fe)|0))<<13)|0;l=((s=s+Math.imul(P,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,pe),i=(i=Math.imul(D,de))+Math.imul(L,pe)|0,s=Math.imul(L,de);var Pe=(l+(r=r+Math.imul(R,fe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(U,fe)|0))<<13)|0;l=((s=s+Math.imul(U,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Ie=(l+(r=Math.imul(D,fe))|0)+((8191&(i=(i=Math.imul(D,me))+Math.imul(L,fe)|0))<<13)|0;return l=((s=Math.imul(L,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=ge,c[1]=ve,c[2]=be,c[3]=ye,c[4]=ke,c[5]=we,c[6]=_e,c[7]=Ee,c[8]=Ce,c[9]=Se,c[10]=je,c[11]=Me,c[12]=xe,c[13]=Ne,c[14]=Ae,c[15]=Oe,c[16]=Te,c[17]=Pe,c[18]=Ie,0!==l&&(c[19]=l,n.length++),n};function m(e,t,n){return(new g).mulp(e,t,n)}function g(e,t){this.x=e,this.y=t}Math.imul||(f=h),s.prototype.mulTo=function(e,t){var n,r=this.length+e.length;return n=10===this.length&&10===e.length?f(this,e,t):r<63?h(this,e,t):r<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,s=0;s<n.length-1;s++){var o=i;i=0;for(var a=67108863&r,c=Math.min(s,t.length-1),l=Math.max(0,s-e.length+1);l<=c;l++){var u=s-l,p=(0|e.words[u])*(0|t.words[l]),d=67108863&p;a=67108863&(d=d+a|0),i+=(o=(o=o+(p/67108864|0)|0)+(d>>>26)|0)>>>26,o&=67108863}n.words[s]=a,r=o,o=i}return 0!==r?n.words[s]=r:n.length--,n.strip()}(this,e,t):m(this,e,t),n},g.prototype.makeRBT=function(e){for(var t=new Array(e),n=s.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},g.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},g.prototype.permute=function(e,t,n,r,i,s){for(var o=0;o<s;o++)r[o]=t[e[o]],i[o]=n[e[o]]},g.prototype.transform=function(e,t,n,r,i,s){this.permute(s,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var p=c,d=l,h=0;h<o;h++){var f=n[u+h],m=r[u+h],g=n[u+h+o],v=r[u+h+o],b=p*g-d*v;v=p*v+d*g,g=b,n[u+h]=f+g,r[u+h]=m+v,n[u+h+o]=f-g,r[u+h+o]=m-v,h!==a&&(b=c*p-l*d,d=c*d+l*p,p=b)}},g.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},g.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},g.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},g.prototype.convert13b=function(e,t,n,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],n[2*o]=8191&s,s>>>=13,n[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===s),r(0==(-8192&s))},g.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},g.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),s=this.stub(r),o=new Array(r),a=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),p=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,s,a,c,r,i),this.transform(l,s,u,p,r,i);for(var h=0;h<r;h++){var f=a[h]*u[h]-c[h]*p[h];c[h]=a[h]*p[h]+c[h]*u[h],a[h]=f}return this.conjugate(a,c,r),this.transform(a,c,d,s,r,i),this.conjugate(d,s,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n.strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),m(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){r("number"==typeof e),r(e<67108864);for(var t=0,n=0;n<this.length;n++){var i=(0|this.words[n])*e,s=(67108863&i)+(67108863&t);t>>=26,t+=i/67108864|0,t+=s>>>26,this.words[n]=67108863&s}return 0!==t&&(this.words[n]=t,this.length++),this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=(e.words[r]&1<<i)>>>i}return t}(e);if(0===t.length)return new s(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},s.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,c=(0|this.words[t])-a<<n;this.words[t]=c|o,o=a>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this.strip()},s.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var p=0|this.words[l];this.words[l]=u<<26-s|p>>>s,u=p&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},s.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this.strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,n){var i,s,o=e.length+n;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+n])+a;var c=(0|e.words[i])*t;a=((s-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&s}for(;i<this.length-n;i++)a=(s=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&s;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==t){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,a&&(a.words[c]=1));for(var p=c-1;p>=0;p--){var d=67108864*(0|r.words[i.length+p])+(0|r.words[i.length+p-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(i,d,p);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,p),r.isZero()||(r.negative^=1);a&&(a.words[p]=d)}return a&&a.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},s.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,o,a},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),s=n.cmp(r);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},s.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),p=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(p)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(p)),a.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(a),o.isub(c)):(n.isub(t),a.isub(i),c.isub(o))}return{a:a,b:c,gcd:n.iushln(l)}},s.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new s(1),a=new s(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var p=0,d=1;0==(n.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(n.iushrn(p);p-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a)):(n.isub(t),a.isub(o))}return(i=0===t.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(e),i},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var s=t;t=n,n=s}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var s=i,o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];s=(a+=s)>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return-1===this.cmpn(e)},s.prototype.lt=function(e){return-1===this.cmp(e)},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new E(e)},s.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var v={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){E.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},i(y,b),y.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var s=e.words[9];for(t.words[t.length++]=s&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|s>>>22,s=o}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,b),i(w,b),i(_,b),_.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(v[e])return v[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new k;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return v[e]=t,t},E.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new s(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var p=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),f=o;0!==h.cmp(a);){for(var m=h,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<f);var v=this.pow(p,new s(1).iushln(f-g-1));d=d.redMul(v),p=v.redSqr(),h=h.redMul(p),f=g}return d},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new s(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var p=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==p||0!==o?(o<<=1,o|=p,(4===++a||0===r&&0===u)&&(i=this.mul(i,n[o]),a=0,o=0)):a=0}c=26}return i},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new C(e)},i(C,E),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},C.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},53380:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function s(e,t,n){if(s.isBN(e))return e;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"))}var o;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(14864).Buffer}catch(e){}function a(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function c(e,t,n){var r=a(e,n);return n-1>=t&&(r|=a(e,n-1)<<4),r}function l(e,t,n,i){for(var s=0,o=0,a=Math.min(e.length,n),c=t;c<a;c++){var l=e.charCodeAt(c)-48;s*=i,o=l>=49?l-49+10:l>=17?l-17+10:l,r(l>=0&&o<i,"Invalid character"),s+=o}return s}function u(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return e.cmp(t)<0?e:t},s.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=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)))},s.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)},s.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var s,o,a=0;if("be"===n)for(i=e.length-1,s=0;i>=0;i-=3)o=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);else if("le"===n)for(i=0,s=0;i<e.length;i+=3)o=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[s]|=o<<a&67108863,this.words[s+1]=o>>>26-a&67108863,(a+=24)>=26&&(a-=26,s++);return this._strip()},s.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,s=0,o=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=c(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)i=c(e,t,r)<<s,this.words[o]|=67108863&i,s>=18?(s-=18,o+=1,this.words[o]|=i>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var s=e.length-n,o=s%r,a=Math.min(s,s-o)+n,c=0,u=n;u<a;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){var p=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()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){u(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=p}catch(e){s.prototype.inspect=p}else s.prototype.inspect=p;function p(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];s.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,s=0,o=0;o<this.length;o++){var a=this.words[o],c=(16777215&(a<<i|s)).toString(16);n=0!==(s=a>>>24-i&16777215)||o!==this.length-1?d[6-c.length]+c+n:c+n,(i+=2)>=26&&(i-=26,o--)}for(0!==s&&(n=s.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],u=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(u).toString(e);n=(p=p.idivn(u)).isZero()?m+n:d[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},o&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(o,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],s=0|t.words[0],o=i*s,a=67108863&o,c=o/67108864|0;n.words[0]=a;for(var l=1;l<r;l++){for(var u=c>>>26,p=67108863&c,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var f=l-h|0;u+=(o=(i=0|e.words[f])*(s=0|t.words[h])+p)/67108864|0,p=67108863&o}n.words[l]=0|p,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}s.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),s=n||Math.max(1,i);r(i<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var o=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,s);return this["_toArrayLike"+("le"===t?"LE":"BE")](o,i),o},s.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|r;e[n++]=255&o,n<e.length&&(e[n++]=o>>8&255),n<e.length&&(e[n++]=o>>16&255),6===s?(n<e.length&&(e[n++]=o>>24&255),r=0,s=0):(r=o>>>24,s+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,s=0;i<this.length;i++){var o=this.words[i]<<s|r;e[n--]=255&o,n>=0&&(e[n--]=o>>8&255),n>=0&&(e[n--]=o>>16&255),6===s?(n>=0&&(e[n--]=o>>24&255),r=0,s=0):(r=o>>>24,s+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0==(8191&t)&&(n+=13,t>>>=13),0==(127&t)&&(n+=7,t>>>=7),0==(15&t)&&(n+=4,t>>>=4),0==(3&t)&&(n+=2,t>>>=2),0==(1&t)&&n++,n},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return r(0==(this.negative|e.negative)),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return r(0==(this.negative|e.negative)),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return r(0==(this.negative|e.negative)),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},s.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,s=0;s<r.length;s++)t=(0|n.words[s])+(0|r.words[s])+i,this.words[s]=67108863&t,i=t>>>26;for(;0!==i&&s<n.length;s++)t=(0|n.words[s])+i,this.words[s]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var s=0,o=0;o<r.length;o++)s=(t=(0|n.words[o])-(0|r.words[o])+s)>>26,this.words[o]=67108863&t;for(;0!==s&&o<n.length;o++)s=(t=(0|n.words[o])+s)>>26,this.words[o]=67108863&t;if(0===s&&o<n.length&&n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this.length=Math.max(this.length,o),n!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,n){var r,i,s,o=e.words,a=t.words,c=n.words,l=0,u=0|o[0],p=8191&u,d=u>>>13,h=0|o[1],f=8191&h,m=h>>>13,g=0|o[2],v=8191&g,b=g>>>13,y=0|o[3],k=8191&y,w=y>>>13,_=0|o[4],E=8191&_,C=_>>>13,S=0|o[5],j=8191&S,M=S>>>13,x=0|o[6],N=8191&x,A=x>>>13,O=0|o[7],T=8191&O,P=O>>>13,I=0|o[8],R=8191&I,U=I>>>13,Z=0|o[9],D=8191&Z,L=Z>>>13,z=0|a[0],B=8191&z,F=z>>>13,V=0|a[1],q=8191&V,H=V>>>13,W=0|a[2],$=8191&W,J=W>>>13,K=0|a[3],G=8191&K,Y=K>>>13,X=0|a[4],Q=8191&X,ee=X>>>13,te=0|a[5],ne=8191&te,re=te>>>13,ie=0|a[6],se=8191&ie,oe=ie>>>13,ae=0|a[7],ce=8191&ae,le=ae>>>13,ue=0|a[8],pe=8191&ue,de=ue>>>13,he=0|a[9],fe=8191&he,me=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(l+(r=Math.imul(p,B))|0)+((8191&(i=(i=Math.imul(p,F))+Math.imul(d,B)|0))<<13)|0;l=((s=Math.imul(d,F))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(f,B),i=(i=Math.imul(f,F))+Math.imul(m,B)|0,s=Math.imul(m,F);var ve=(l+(r=r+Math.imul(p,q)|0)|0)+((8191&(i=(i=i+Math.imul(p,H)|0)+Math.imul(d,q)|0))<<13)|0;l=((s=s+Math.imul(d,H)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,B),i=(i=Math.imul(v,F))+Math.imul(b,B)|0,s=Math.imul(b,F),r=r+Math.imul(f,q)|0,i=(i=i+Math.imul(f,H)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,H)|0;var be=(l+(r=r+Math.imul(p,$)|0)|0)+((8191&(i=(i=i+Math.imul(p,J)|0)+Math.imul(d,$)|0))<<13)|0;l=((s=s+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(k,B),i=(i=Math.imul(k,F))+Math.imul(w,B)|0,s=Math.imul(w,F),r=r+Math.imul(v,q)|0,i=(i=i+Math.imul(v,H)|0)+Math.imul(b,q)|0,s=s+Math.imul(b,H)|0,r=r+Math.imul(f,$)|0,i=(i=i+Math.imul(f,J)|0)+Math.imul(m,$)|0,s=s+Math.imul(m,J)|0;var ye=(l+(r=r+Math.imul(p,G)|0)|0)+((8191&(i=(i=i+Math.imul(p,Y)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,Y)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(E,B),i=(i=Math.imul(E,F))+Math.imul(C,B)|0,s=Math.imul(C,F),r=r+Math.imul(k,q)|0,i=(i=i+Math.imul(k,H)|0)+Math.imul(w,q)|0,s=s+Math.imul(w,H)|0,r=r+Math.imul(v,$)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(b,$)|0,s=s+Math.imul(b,J)|0,r=r+Math.imul(f,G)|0,i=(i=i+Math.imul(f,Y)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,Y)|0;var ke=(l+(r=r+Math.imul(p,Q)|0)|0)+((8191&(i=(i=i+Math.imul(p,ee)|0)+Math.imul(d,Q)|0))<<13)|0;l=((s=s+Math.imul(d,ee)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,B),i=(i=Math.imul(j,F))+Math.imul(M,B)|0,s=Math.imul(M,F),r=r+Math.imul(E,q)|0,i=(i=i+Math.imul(E,H)|0)+Math.imul(C,q)|0,s=s+Math.imul(C,H)|0,r=r+Math.imul(k,$)|0,i=(i=i+Math.imul(k,J)|0)+Math.imul(w,$)|0,s=s+Math.imul(w,J)|0,r=r+Math.imul(v,G)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(b,G)|0,s=s+Math.imul(b,Y)|0,r=r+Math.imul(f,Q)|0,i=(i=i+Math.imul(f,ee)|0)+Math.imul(m,Q)|0,s=s+Math.imul(m,ee)|0;var we=(l+(r=r+Math.imul(p,ne)|0)|0)+((8191&(i=(i=i+Math.imul(p,re)|0)+Math.imul(d,ne)|0))<<13)|0;l=((s=s+Math.imul(d,re)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(N,B),i=(i=Math.imul(N,F))+Math.imul(A,B)|0,s=Math.imul(A,F),r=r+Math.imul(j,q)|0,i=(i=i+Math.imul(j,H)|0)+Math.imul(M,q)|0,s=s+Math.imul(M,H)|0,r=r+Math.imul(E,$)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(C,$)|0,s=s+Math.imul(C,J)|0,r=r+Math.imul(k,G)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(b,Q)|0,s=s+Math.imul(b,ee)|0,r=r+Math.imul(f,ne)|0,i=(i=i+Math.imul(f,re)|0)+Math.imul(m,ne)|0,s=s+Math.imul(m,re)|0;var _e=(l+(r=r+Math.imul(p,se)|0)|0)+((8191&(i=(i=i+Math.imul(p,oe)|0)+Math.imul(d,se)|0))<<13)|0;l=((s=s+Math.imul(d,oe)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(T,B),i=(i=Math.imul(T,F))+Math.imul(P,B)|0,s=Math.imul(P,F),r=r+Math.imul(N,q)|0,i=(i=i+Math.imul(N,H)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,H)|0,r=r+Math.imul(j,$)|0,i=(i=i+Math.imul(j,J)|0)+Math.imul(M,$)|0,s=s+Math.imul(M,J)|0,r=r+Math.imul(E,G)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,Y)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(w,Q)|0,s=s+Math.imul(w,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(b,ne)|0,s=s+Math.imul(b,re)|0,r=r+Math.imul(f,se)|0,i=(i=i+Math.imul(f,oe)|0)+Math.imul(m,se)|0,s=s+Math.imul(m,oe)|0;var Ee=(l+(r=r+Math.imul(p,ce)|0)|0)+((8191&(i=(i=i+Math.imul(p,le)|0)+Math.imul(d,ce)|0))<<13)|0;l=((s=s+Math.imul(d,le)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(R,B),i=(i=Math.imul(R,F))+Math.imul(U,B)|0,s=Math.imul(U,F),r=r+Math.imul(T,q)|0,i=(i=i+Math.imul(T,H)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,H)|0,r=r+Math.imul(N,$)|0,i=(i=i+Math.imul(N,J)|0)+Math.imul(A,$)|0,s=s+Math.imul(A,J)|0,r=r+Math.imul(j,G)|0,i=(i=i+Math.imul(j,Y)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,Y)|0,r=r+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(C,Q)|0,s=s+Math.imul(C,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(w,ne)|0,s=s+Math.imul(w,re)|0,r=r+Math.imul(v,se)|0,i=(i=i+Math.imul(v,oe)|0)+Math.imul(b,se)|0,s=s+Math.imul(b,oe)|0,r=r+Math.imul(f,ce)|0,i=(i=i+Math.imul(f,le)|0)+Math.imul(m,ce)|0,s=s+Math.imul(m,le)|0;var Ce=(l+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,de)|0)+Math.imul(d,pe)|0))<<13)|0;l=((s=s+Math.imul(d,de)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(D,B),i=(i=Math.imul(D,F))+Math.imul(L,B)|0,s=Math.imul(L,F),r=r+Math.imul(R,q)|0,i=(i=i+Math.imul(R,H)|0)+Math.imul(U,q)|0,s=s+Math.imul(U,H)|0,r=r+Math.imul(T,$)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(P,$)|0,s=s+Math.imul(P,J)|0,r=r+Math.imul(N,G)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(A,G)|0,s=s+Math.imul(A,Y)|0,r=r+Math.imul(j,Q)|0,i=(i=i+Math.imul(j,ee)|0)+Math.imul(M,Q)|0,s=s+Math.imul(M,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(C,ne)|0,s=s+Math.imul(C,re)|0,r=r+Math.imul(k,se)|0,i=(i=i+Math.imul(k,oe)|0)+Math.imul(w,se)|0,s=s+Math.imul(w,oe)|0,r=r+Math.imul(v,ce)|0,i=(i=i+Math.imul(v,le)|0)+Math.imul(b,ce)|0,s=s+Math.imul(b,le)|0,r=r+Math.imul(f,pe)|0,i=(i=i+Math.imul(f,de)|0)+Math.imul(m,pe)|0,s=s+Math.imul(m,de)|0;var Se=(l+(r=r+Math.imul(p,fe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(d,fe)|0))<<13)|0;l=((s=s+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(D,q),i=(i=Math.imul(D,H))+Math.imul(L,q)|0,s=Math.imul(L,H),r=r+Math.imul(R,$)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(U,$)|0,s=s+Math.imul(U,J)|0,r=r+Math.imul(T,G)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(P,G)|0,s=s+Math.imul(P,Y)|0,r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,ee)|0,r=r+Math.imul(j,ne)|0,i=(i=i+Math.imul(j,re)|0)+Math.imul(M,ne)|0,s=s+Math.imul(M,re)|0,r=r+Math.imul(E,se)|0,i=(i=i+Math.imul(E,oe)|0)+Math.imul(C,se)|0,s=s+Math.imul(C,oe)|0,r=r+Math.imul(k,ce)|0,i=(i=i+Math.imul(k,le)|0)+Math.imul(w,ce)|0,s=s+Math.imul(w,le)|0,r=r+Math.imul(v,pe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(b,pe)|0,s=s+Math.imul(b,de)|0;var je=(l+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;l=((s=s+Math.imul(m,me)|0)+(i>>>13)|0)+(je>>>26)|0,je&=67108863,r=Math.imul(D,$),i=(i=Math.imul(D,J))+Math.imul(L,$)|0,s=Math.imul(L,J),r=r+Math.imul(R,G)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(U,G)|0,s=s+Math.imul(U,Y)|0,r=r+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(P,Q)|0,s=s+Math.imul(P,ee)|0,r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(A,ne)|0,s=s+Math.imul(A,re)|0,r=r+Math.imul(j,se)|0,i=(i=i+Math.imul(j,oe)|0)+Math.imul(M,se)|0,s=s+Math.imul(M,oe)|0,r=r+Math.imul(E,ce)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(C,ce)|0,s=s+Math.imul(C,le)|0,r=r+Math.imul(k,pe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(w,pe)|0,s=s+Math.imul(w,de)|0;var Me=(l+(r=r+Math.imul(v,fe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(b,fe)|0))<<13)|0;l=((s=s+Math.imul(b,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(D,G),i=(i=Math.imul(D,Y))+Math.imul(L,G)|0,s=Math.imul(L,Y),r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(U,Q)|0,s=s+Math.imul(U,ee)|0,r=r+Math.imul(T,ne)|0,i=(i=i+Math.imul(T,re)|0)+Math.imul(P,ne)|0,s=s+Math.imul(P,re)|0,r=r+Math.imul(N,se)|0,i=(i=i+Math.imul(N,oe)|0)+Math.imul(A,se)|0,s=s+Math.imul(A,oe)|0,r=r+Math.imul(j,ce)|0,i=(i=i+Math.imul(j,le)|0)+Math.imul(M,ce)|0,s=s+Math.imul(M,le)|0,r=r+Math.imul(E,pe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(C,pe)|0,s=s+Math.imul(C,de)|0;var xe=(l+(r=r+Math.imul(k,fe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(w,fe)|0))<<13)|0;l=((s=s+Math.imul(w,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,ee))+Math.imul(L,Q)|0,s=Math.imul(L,ee),r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(U,ne)|0,s=s+Math.imul(U,re)|0,r=r+Math.imul(T,se)|0,i=(i=i+Math.imul(T,oe)|0)+Math.imul(P,se)|0,s=s+Math.imul(P,oe)|0,r=r+Math.imul(N,ce)|0,i=(i=i+Math.imul(N,le)|0)+Math.imul(A,ce)|0,s=s+Math.imul(A,le)|0,r=r+Math.imul(j,pe)|0,i=(i=i+Math.imul(j,de)|0)+Math.imul(M,pe)|0,s=s+Math.imul(M,de)|0;var Ne=(l+(r=r+Math.imul(E,fe)|0)|0)+((8191&(i=(i=i+Math.imul(E,me)|0)+Math.imul(C,fe)|0))<<13)|0;l=((s=s+Math.imul(C,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(D,ne),i=(i=Math.imul(D,re))+Math.imul(L,ne)|0,s=Math.imul(L,re),r=r+Math.imul(R,se)|0,i=(i=i+Math.imul(R,oe)|0)+Math.imul(U,se)|0,s=s+Math.imul(U,oe)|0,r=r+Math.imul(T,ce)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(P,ce)|0,s=s+Math.imul(P,le)|0,r=r+Math.imul(N,pe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(A,pe)|0,s=s+Math.imul(A,de)|0;var Ae=(l+(r=r+Math.imul(j,fe)|0)|0)+((8191&(i=(i=i+Math.imul(j,me)|0)+Math.imul(M,fe)|0))<<13)|0;l=((s=s+Math.imul(M,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(D,se),i=(i=Math.imul(D,oe))+Math.imul(L,se)|0,s=Math.imul(L,oe),r=r+Math.imul(R,ce)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(U,ce)|0,s=s+Math.imul(U,le)|0,r=r+Math.imul(T,pe)|0,i=(i=i+Math.imul(T,de)|0)+Math.imul(P,pe)|0,s=s+Math.imul(P,de)|0;var Oe=(l+(r=r+Math.imul(N,fe)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(A,fe)|0))<<13)|0;l=((s=s+Math.imul(A,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(D,ce),i=(i=Math.imul(D,le))+Math.imul(L,ce)|0,s=Math.imul(L,le),r=r+Math.imul(R,pe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(U,pe)|0,s=s+Math.imul(U,de)|0;var Te=(l+(r=r+Math.imul(T,fe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(P,fe)|0))<<13)|0;l=((s=s+Math.imul(P,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(D,pe),i=(i=Math.imul(D,de))+Math.imul(L,pe)|0,s=Math.imul(L,de);var Pe=(l+(r=r+Math.imul(R,fe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(U,fe)|0))<<13)|0;l=((s=s+Math.imul(U,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var Ie=(l+(r=Math.imul(D,fe))|0)+((8191&(i=(i=Math.imul(D,me))+Math.imul(L,fe)|0))<<13)|0;return l=((s=Math.imul(L,me))+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,c[0]=ge,c[1]=ve,c[2]=be,c[3]=ye,c[4]=ke,c[5]=we,c[6]=_e,c[7]=Ee,c[8]=Ce,c[9]=Se,c[10]=je,c[11]=Me,c[12]=xe,c[13]=Ne,c[14]=Ae,c[15]=Oe,c[16]=Te,c[17]=Pe,c[18]=Ie,0!==l&&(c[19]=l,n.length++),n};function v(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,s=0;s<n.length-1;s++){var o=i;i=0;for(var a=67108863&r,c=Math.min(s,t.length-1),l=Math.max(0,s-e.length+1);l<=c;l++){var u=s-l,p=(0|e.words[u])*(0|t.words[l]),d=67108863&p;a=67108863&(d=d+a|0),i+=(o=(o=o+(p/67108864|0)|0)+(d>>>26)|0)>>>26,o&=67108863}n.words[s]=a,r=o,o=i}return 0!==r?n.words[s]=r:n.length--,n._strip()}function b(e,t,n){return v(e,t,n)}function y(e,t){this.x=e,this.y=t}Math.imul||(g=m),s.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):n<63?m(this,e,t):n<1024?v(this,e,t):b(this,e,t)},y.prototype.makeRBT=function(e){for(var t=new Array(e),n=s.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},y.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},y.prototype.permute=function(e,t,n,r,i,s){for(var o=0;o<s;o++)r[o]=t[e[o]],i[o]=n[e[o]]},y.prototype.transform=function(e,t,n,r,i,s){this.permute(s,e,t,n,r,i);for(var o=1;o<i;o<<=1)for(var a=o<<1,c=Math.cos(2*Math.PI/a),l=Math.sin(2*Math.PI/a),u=0;u<i;u+=a)for(var p=c,d=l,h=0;h<o;h++){var f=n[u+h],m=r[u+h],g=n[u+h+o],v=r[u+h+o],b=p*g-d*v;v=p*v+d*g,g=b,n[u+h]=f+g,r[u+h]=m+v,n[u+h+o]=f-g,r[u+h+o]=m-v,h!==a&&(b=c*p-l*d,d=c*d+l*p,p=b)}},y.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},y.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},y.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},y.prototype.convert13b=function(e,t,n,i){for(var s=0,o=0;o<t;o++)s+=0|e[o],n[2*o]=8191&s,s>>>=13,n[2*o+1]=8191&s,s>>>=13;for(o=2*t;o<i;++o)n[o]=0;r(0===s),r(0==(-8192&s))},y.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},y.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),s=this.stub(r),o=new Array(r),a=new Array(r),c=new Array(r),l=new Array(r),u=new Array(r),p=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,o,r),this.convert13b(t.words,t.length,l,r),this.transform(o,s,a,c,r,i),this.transform(l,s,u,p,r,i);for(var h=0;h<r;h++){var f=a[h]*u[h]-c[h]*p[h];c[h]=a[h]*p[h]+c[h]*u[h],a[h]=f}return this.conjugate(a,c,r),this.transform(a,c,d,s,r,i),this.conjugate(d,s,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),b(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,o=(67108863&s)+(67108863&n);n>>=26,n+=s/67108864|0,n+=o>>>26,this.words[i]=67108863&o}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},s.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&s,c=(0|this.words[t])-a<<n;this.words[t]=c|o,o=a>>>26-n}o&&(this.words[t]=o,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,n){var i;r("number"==typeof e&&e>=0),i=t?(t-t%26)/26:0;var s=e%26,o=Math.min((e-s)/26,this.length),a=67108863^67108863>>>s<<s,c=n;if(i-=o,i=Math.max(0,i),c){for(var l=0;l<o;l++)c.words[l]=this.words[l];c.length=o}if(0===o);else if(this.length>o)for(this.length-=o,l=0;l<this.length;l++)this.words[l]=this.words[l+o];else this.words[0]=0,this.length=1;var u=0;for(l=this.length-1;l>=0&&(0!==u||l>=i);l--){var p=0|this.words[l];this.words[l]=u<<26-s|p>>>s,u=p&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},s.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,n){var i,s,o=e.length+n;this._expand(o);var a=0;for(i=0;i<e.length;i++){s=(0|this.words[i+n])+a;var c=(0|e.words[i])*t;a=((s-=67108863&c)>>26)-(c/67108864|0),this.words[i+n]=67108863&s}for(;i<this.length-n;i++)a=(s=(0|this.words[i+n])+a)>>26,this.words[i+n]=67108863&s;if(0===a)return this._strip();for(r(-1===a),a=0,i=0;i<this.length;i++)a=(s=-(0|this.words[i])+a)>>26,this.words[i]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,o=0|i.words[i.length-1];0!==(n=26-this._countBits(o))&&(i=i.ushln(n),r.iushln(n),o=0|i.words[i.length-1]);var a,c=r.length-i.length;if("mod"!==t){(a=new s(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l<a.length;l++)a.words[l]=0}var u=r.clone()._ishlnsubmul(i,1,c);0===u.negative&&(r=u,a&&(a.words[c]=1));for(var p=c-1;p>=0;p--){var d=67108864*(0|r.words[i.length+p])+(0|r.words[i.length+p-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(i,d,p);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,p),r.isZero()||(r.negative^=1);a&&(a.words[p]=d)}return a&&a._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:a||null,mod:r}},s.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.iadd(e)),{div:i,mod:o}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(o=a.mod.neg(),n&&0!==o.negative&&o.isub(e)),{div:a.div,mod:o}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,o,a},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),s=n.cmp(r);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,s=this.length-1;s>=0;s--)i=(n*i+(0|this.words[s]))%e;return t?-i:i},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+67108864*n;this.words[i]=s/e|0,n=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),o=new s(0),a=new s(0),c=new s(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),p=t.clone();!t.isZero();){for(var d=0,h=1;0==(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||o.isOdd())&&(i.iadd(u),o.isub(p)),i.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(p)),a.iushrn(1),c.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(a),o.isub(c)):(n.isub(t),a.isub(i),c.isub(o))}return{a:a,b:c,gcd:n.iushln(l)}},s.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,o=new s(1),a=new s(0),c=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(t.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(t.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);for(var p=0,d=1;0==(n.words[0]&d)&&p<26;++p,d<<=1);if(p>0)for(n.iushrn(p);p-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a)):(n.isub(t),a.isub(o))}return(i=0===t.cmpn(1)?o:a).cmpn(0)<0&&i.iadd(e),i},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var s=t;t=n,n=s}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var s=i,o=n;0!==s&&o<this.length;o++){var a=0|this.words[o];s=(a+=s)>>>26,a&=67108863,this.words[o]=a}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return-1===this.cmpn(e)},s.prototype.lt=function(e){return-1===this.cmp(e)},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new j(e)},s.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var k={k256:null,p224:null,p192:null,p25519:null};function w(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function j(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function M(e){j.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,t){e.iushrn(this.n,0,t)},w.prototype.imulK=function(e){return e.imul(this.k)},i(_,w),_.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var s=e.words[9];for(t.words[t.length++]=s&n,i=10;i<e.length;i++){var o=0|e.words[i];e.words[i-10]=(o&n)<<4|s>>>22,s=o}s>>>=22,e.words[i-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},_.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(E,w),i(C,w),i(S,w),S.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(k[e])return k[e];var t;if("k256"===e)t=new _;else if("p224"===e)t=new E;else if("p192"===e)t=new C;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return k[e]=t,t},j.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},j.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},j.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},j.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},j.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},j.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},j.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},j.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},j.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},j.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},j.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},j.prototype.isqr=function(e){return this.imul(e,e.clone())},j.prototype.sqr=function(e){return this.mul(e,e)},j.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new s(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),o=0;!i.isZero()&&0===i.andln(1);)o++,i.iushrn(1);r(!i.isZero());var a=new s(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new s(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var p=this.pow(u,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),f=o;0!==h.cmp(a);){for(var m=h,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g<f);var v=this.pow(p,new s(1).iushln(f-g-1));d=d.redMul(v),p=v.redSqr(),h=h.redMul(p),f=g}return d},j.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},j.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new s(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],o=0,a=0,c=t.bitLength()%26;for(0===c&&(c=26),r=t.length-1;r>=0;r--){for(var l=t.words[r],u=c-1;u>=0;u--){var p=l>>u&1;i!==n[0]&&(i=this.sqr(i)),0!==p||0!==o?(o<<=1,o|=p,(4===++a||0===r&&0===u)&&(i=this.mul(i,n[o]),a=0,o=0)):a=0}c=26}return i},j.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},j.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new M(e)},i(M,j),M.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},M.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},M.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},M.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},M.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},98707:function(e,t,n){var r=n(52221);e.exports=function(e){var t=null,n=r(e);if(3===e.nodeType){var i=n.createRange();i.selectNodeContents(e),e=i}if("function"==typeof e.getBoundingClientRect&&(t=e.getBoundingClientRect(),e.startContainer&&0===t.left&&0===t.top)){var s=n.createElement("span");s.appendChild(n.createTextNode("​")),e.insertNode(s),t=s.getBoundingClientRect();var o=s.parentNode;o.removeChild(s),o.normalize()}return t}},71876:function(e,t,n){var r;function i(e){this.rand=e}if(e.exports=function(e){return r||(r=new i(null)),r.generate(e)},e.exports.Rand=i,i.prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),n=0;n<t.length;n++)t[n]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=n(69627);if("function"!=typeof s.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return s.randomBytes(e)}}catch(e){}},9111:function(e,t,n){var r=n(37225).Buffer;function i(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,n=new Array(t),i=0;i<t;i++)n[i]=e.readUInt32BE(4*i);return n}function s(e){for(;0<e.length;e++)e[0]=0}function o(e,t,n,r,i){for(var s,o,a,c,l=n[0],u=n[1],p=n[2],d=n[3],h=e[0]^t[0],f=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],v=4,b=1;b<i;b++)s=l[h>>>24]^u[f>>>16&255]^p[m>>>8&255]^d[255&g]^t[v++],o=l[f>>>24]^u[m>>>16&255]^p[g>>>8&255]^d[255&h]^t[v++],a=l[m>>>24]^u[g>>>16&255]^p[h>>>8&255]^d[255&f]^t[v++],c=l[g>>>24]^u[h>>>16&255]^p[f>>>8&255]^d[255&m]^t[v++],h=s,f=o,m=a,g=c;return s=(r[h>>>24]<<24|r[f>>>16&255]<<16|r[m>>>8&255]<<8|r[255&g])^t[v++],o=(r[f>>>24]<<24|r[m>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[v++],a=(r[m>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&f])^t[v++],c=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[f>>>8&255]<<8|r[255&m])^t[v++],[s>>>=0,o>>>=0,a>>>=0,c>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],s=[[],[],[],[]],o=0,a=0,c=0;c<256;++c){var l=a^a<<1^a<<2^a<<3^a<<4;l=l>>>8^255&l^99,n[o]=l,r[l]=o;var u=e[o],p=e[u],d=e[p],h=257*e[l]^16843008*l;i[0][o]=h<<24|h>>>8,i[1][o]=h<<16|h>>>16,i[2][o]=h<<8|h>>>24,i[3][o]=h,h=16843009*d^65537*p^257*u^16843008*o,s[0][l]=h<<24|h>>>8,s[1][l]=h<<16|h>>>16,s[2][l]=h<<8|h>>>24,s[3][l]=h,0===o?o=a=1:(o=u^e[e[e[d^u]]],a^=e[e[a]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:s}}();function l(e){this._key=i(e),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],s=0;s<t;s++)i[s]=e[s];for(s=t;s<r;s++){var o=i[s-1];s%t==0?(o=o<<8|o>>>24,o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o],o^=a[s/t|0]<<24):t>6&&s%t==4&&(o=c.SBOX[o>>>24]<<24|c.SBOX[o>>>16&255]<<16|c.SBOX[o>>>8&255]<<8|c.SBOX[255&o]),i[s]=i[s-t]^o}for(var l=[],u=0;u<r;u++){var p=r-u,d=i[p-(u%4?0:4)];l[u]=u<4||p<=4?d:c.INV_SUB_MIX[0][c.SBOX[d>>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(e){return o(e=i(e),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},l.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=o(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),s=r.allocUnsafe(16);return s.writeUInt32BE(n[0],0),s.writeUInt32BE(n[3],4),s.writeUInt32BE(n[2],8),s.writeUInt32BE(n[1],12),s},l.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},e.exports.AES=l},43667:function(e,t,n){var r=n(9111),i=n(37225).Buffer,s=n(69239),o=n(59503),a=n(83579),c=n(35375),l=n(35127);function u(e,t,n,o){s.call(this);var c=i.alloc(4,0);this._cipher=new r.AES(t);var u=this._cipher.encryptBlock(c);this._ghash=new a(u),n=function(e,t,n){if(12===t.length)return e._finID=i.concat([t,i.from([0,0,0,1])]),i.concat([t,i.from([0,0,0,2])]);var r=new a(n),s=t.length,o=s%16;r.update(t),o&&(o=16-o,r.update(i.alloc(o,0))),r.update(i.alloc(8,0));var c=8*s,u=i.alloc(8);u.writeUIntBE(c,0,8),r.update(u),e._finID=r.state;var p=i.from(e._finID);return l(p),p}(this,n,u),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}o(u,s),u.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=i.alloc(t,0),this._ghash.update(t))}this._called=!0;var n=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(n),this._len+=e.length,n},u.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=c(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var n=0;e.length!==t.length&&n++;for(var r=Math.min(e.length,t.length),i=0;i<r;++i)n+=e[i]^t[i];return n}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},u.prototype.getAuthTag=function(){if(this._decrypt||!i.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},u.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},u.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=u},6123:function(e,t,n){var r=n(37180),i=n(68161),s=n(4317);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=i.createDecipher,t.createDecipheriv=t.Decipheriv=i.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(s)}},68161:function(e,t,n){var r=n(43667),i=n(37225).Buffer,s=n(54354),o=n(76085),a=n(69239),c=n(9111),l=n(51105);function u(e,t,n){a.call(this),this._cache=new p,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(n),this._mode=e,this._autopadding=!0}function p(){this.cache=i.allocUnsafe(0)}function d(e,t,n){var a=s[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=i.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof t&&(t=i.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===a.type?new o(a.module,t,n,!0):"auth"===a.type?new r(a.module,t,n,!0):new u(a.module,t,n)}n(59503)(u,a),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,t),r.push(n);return i.concat(r)},u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<t;)if(e[n+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},p.prototype.add=function(e){this.cache=i.concat([this.cache,e])},p.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},p.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var n=s[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var r=l(t,!1,n.key,n.iv);return d(e,r.key,r.iv)},t.createDecipheriv=d},37180:function(e,t,n){var r=n(54354),i=n(43667),s=n(37225).Buffer,o=n(76085),a=n(69239),c=n(9111),l=n(51105);function u(e,t,n){a.call(this),this._cache=new d,this._cipher=new c.AES(t),this._prev=s.from(n),this._mode=e,this._autopadding=!0}n(59503)(u,a),u.prototype._update=function(e){var t,n;this._cache.add(e);for(var r=[];t=this._cache.get();)n=this._mode.encrypt(this,t),r.push(n);return s.concat(r)};var p=s.alloc(16,16);function d(){this.cache=s.allocUnsafe(0)}function h(e,t,n){var a=r[e.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=s.from(t)),t.length!==a.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof n&&(n=s.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===a.type?new o(a.module,t,n):"auth"===a.type?new i(a.module,t,n):new u(a.module,t,n)}u.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(p))throw this._cipher.scrub(),new Error("data not multiple of block length")},u.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},d.prototype.add=function(e){this.cache=s.concat([this.cache,e])},d.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},d.prototype.flush=function(){for(var e=16-this.cache.length,t=s.allocUnsafe(e),n=-1;++n<e;)t.writeUInt8(e,n);return s.concat([this.cache,t])},t.createCipheriv=h,t.createCipher=function(e,t){var n=r[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(t,!1,n.key,n.iv);return h(e,i.key,i.iv)}},83579:function(e,t,n){var r=n(37225).Buffer,i=r.alloc(16,0);function s(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function o(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}o.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},o.prototype._multiply=function(){for(var e,t,n,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],i=[0,0,0,0],o=-1;++o<128;){for(0!=(this.state[~~(o/8)]&1<<7-o%8)&&(i[0]^=r[0],i[1]^=r[1],i[2]^=r[2],i[3]^=r[3]),n=0!=(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,n&&(r[0]=r[0]^225<<24)}this.state=s(i)},o.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},o.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,i],16)),this.ghash(s([0,e,0,t])),this.state},e.exports=o},35127:function(e){e.exports=function(e){for(var t,n=e.length;n--;){if(255!==(t=e.readUInt8(n))){t++,e.writeUInt8(t,n);break}e.writeUInt8(0,n)}}},62113:function(e,t,n){var r=n(35375);t.encrypt=function(e,t){var n=r(t,e._prev);return e._prev=e._cipher.encryptBlock(n),e._prev},t.decrypt=function(e,t){var n=e._prev;e._prev=t;var i=e._cipher.decryptBlock(t);return r(i,n)}},1634:function(e,t,n){var r=n(37225).Buffer,i=n(35375);function s(e,t,n){var s=t.length,o=i(t,e._cache);return e._cache=e._cache.slice(s),e._prev=r.concat([e._prev,n?t:o]),o}t.encrypt=function(e,t,n){for(var i,o=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){o=r.concat([o,s(e,t,n)]);break}i=e._cache.length,o=r.concat([o,s(e,t.slice(0,i),n)]),t=t.slice(i)}return o}},34422:function(e,t,n){var r=n(37225).Buffer;function i(e,t,n){for(var r,i,o=-1,a=0;++o<8;)r=t&1<<7-o?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^r))>>o%8,e._prev=s(e._prev,n?r:i);return a}function s(e,t){var n=e.length,i=-1,s=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++i<n;)s[i]=e[i]<<1|e[i+1]>>7;return s}t.encrypt=function(e,t,n){for(var s=t.length,o=r.allocUnsafe(s),a=-1;++a<s;)o[a]=i(e,t[a],n);return o}},46750:function(e,t,n){var r=n(37225).Buffer;function i(e,t,n){var i=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([n?t:i])]),i}t.encrypt=function(e,t,n){for(var s=t.length,o=r.allocUnsafe(s),a=-1;++a<s;)o[a]=i(e,t[a],n);return o}},92204:function(e,t,n){var r=n(35375),i=n(37225).Buffer,s=n(35127);function o(e){var t=e._cipher.encryptBlockRaw(e._prev);return s(e._prev),t}t.encrypt=function(e,t){var n=Math.ceil(t.length/16),s=e._cache.length;e._cache=i.concat([e._cache,i.allocUnsafe(16*n)]);for(var a=0;a<n;a++){var c=o(e),l=s+16*a;e._cache.writeUInt32BE(c[0],l+0),e._cache.writeUInt32BE(c[1],l+4),e._cache.writeUInt32BE(c[2],l+8),e._cache.writeUInt32BE(c[3],l+12)}var u=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,u)}},59252:function(e,t){t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},54354:function(e,t,n){var r={ECB:n(59252),CBC:n(62113),CFB:n(1634),CFB8:n(46750),CFB1:n(34422),OFB:n(985),CTR:n(92204),GCM:n(92204)},i=n(4317);for(var s in i)i[s].module=r[i[s].mode];e.exports=i},985:function(e,t,n){var r=n(90778).Buffer,i=n(35375);function s(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=r.concat([e._cache,s(e)]);var n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),i(t,n)}},76085:function(e,t,n){var r=n(9111),i=n(37225).Buffer,s=n(69239);function o(e,t,n,o){s.call(this),this._cipher=new r.AES(t),this._prev=i.from(n),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=o,this._mode=e}n(59503)(o,s),o.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},o.prototype._final=function(){this._cipher.scrub()},e.exports=o},83936:function(e,t,n){var r=n(63079),i=n(6123),s=n(54354),o=n(52324),a=n(51105);function c(e,t,n){if(e=e.toLowerCase(),s[e])return i.createCipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e});throw new TypeError("invalid suite type")}function l(e,t,n){if(e=e.toLowerCase(),s[e])return i.createDecipheriv(e,t,n);if(o[e])return new r({key:t,iv:n,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var n,r;if(e=e.toLowerCase(),s[e])n=s[e].key,r=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=a(t,!1,n,r);return c(e,i.key,i.iv)},t.createCipheriv=t.Cipheriv=c,t.createDecipher=t.Decipher=function(e,t){var n,r;if(e=e.toLowerCase(),s[e])n=s[e].key,r=s[e].iv;else{if(!o[e])throw new TypeError("invalid suite type");n=8*o[e].key,r=o[e].iv}var i=a(t,!1,n,r);return l(e,i.key,i.iv)},t.createDecipheriv=t.Decipheriv=l,t.listCiphers=t.getCiphers=function(){return Object.keys(o).concat(i.getCiphers())}},63079:function(e,t,n){var r=n(69239),i=n(98625),s=n(59503),o=n(37225).Buffer,a={"des-ede3-cbc":i.CBC.instantiate(i.EDE),"des-ede3":i.EDE,"des-ede-cbc":i.CBC.instantiate(i.EDE),"des-ede":i.EDE,"des-cbc":i.CBC.instantiate(i.DES),"des-ecb":i.DES};function c(e){r.call(this);var t,n=e.mode.toLowerCase(),i=a[n];t=e.decrypt?"decrypt":"encrypt";var s=e.key;o.isBuffer(s)||(s=o.from(s)),"des-ede"!==n&&"des-ede-cbc"!==n||(s=o.concat([s,s.slice(0,8)]));var c=e.iv;o.isBuffer(c)||(c=o.from(c)),this._des=i.create({key:s,iv:c,type:t})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],e.exports=c,s(c,r),c.prototype._update=function(e){return o.from(this._des.update(e))},c.prototype._final=function(){return o.from(this._des.final())}},52324:function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},8568:function(e,t,n){var r=n(90778).Buffer,i=n(53380),s=n(35175);function o(e){var t,n=e.modulus.byteLength();do{t=new i(s(n))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,t){var n=function(e){var t=o(e);return{blinder:t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),s=t.modulus.byteLength(),a=new i(e).mul(n.blinder).umod(t.modulus),c=a.toRed(i.mont(t.prime1)),l=a.toRed(i.mont(t.prime2)),u=t.coefficient,p=t.prime1,d=t.prime2,h=c.redPow(t.exponent1).fromRed(),f=l.redPow(t.exponent2).fromRed(),m=h.isub(f).imul(u).umod(p).imul(d);return f.iadd(m).imul(n.unblinder).umod(t.modulus).toArrayLike(r,"be",s)}a.getr=o,e.exports=a},60451:function(e,t,n){e.exports=n(1877)},29908:function(e,t,n){var r=n(37225).Buffer,i=n(77439),s=n(7130),o=n(59503),a=n(75043),c=n(53075),l=n(1877);function u(e){s.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function p(e){s.Writable.call(this);var t=l[e];if(!t)throw new Error("Unknown message digest");this._hash=i(t.hash),this._tag=t.id,this._signType=t.sign}function d(e){return new u(e)}function h(e){return new p(e)}Object.keys(l).forEach((function(e){l[e].id=r.from(l[e].id,"hex"),l[e.toLowerCase()]=l[e]})),o(u,s.Writable),u.prototype._write=function(e,t,n){this._hash.update(e),n()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},u.prototype.sign=function(e,t){this.end();var n=this._hash.digest(),r=a(n,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},o(p,s.Writable),p.prototype._write=function(e,t,n){this._hash.update(e),n()},p.prototype.update=function(e,t){return"string"==typeof e&&(e=r.from(e,t)),this._hash.update(e),this},p.prototype.verify=function(e,t,n){"string"==typeof t&&(t=r.from(t,n)),this.end();var i=this._hash.digest();return c(t,i,e,this._signType,this._tag)},e.exports={Sign:d,Verify:h,createSign:d,createVerify:h}},75043:function(e,t,n){var r=n(37225).Buffer,i=n(40445),s=n(8568),o=n(73931).ec,a=n(53380),c=n(87758),l=n(72968);function u(e,t,n,s){if((e=r.from(e.toArray())).length<t.byteLength()){var o=r.alloc(t.byteLength()-e.length);e=r.concat([o,e])}var a=n.length,c=function(e,t){e=(e=p(e,t)).mod(t);var n=r.from(e.toArray());if(n.length<t.byteLength()){var i=r.alloc(t.byteLength()-n.length);n=r.concat([i,n])}return n}(n,t),l=r.alloc(a);l.fill(1);var u=r.alloc(a);return u=i(s,u).update(l).update(r.from([0])).update(e).update(c).digest(),l=i(s,u).update(l).digest(),{k:u=i(s,u).update(l).update(r.from([1])).update(e).update(c).digest(),v:l=i(s,u).update(l).digest()}}function p(e,t){var n=new a(e),r=(e.length<<3)-t.bitLength();return r>0&&n.ishrn(r),n}function d(e,t,n){var s,o;do{for(s=r.alloc(0);8*s.length<e.bitLength();)t.v=i(n,t.k).update(t.v).digest(),s=r.concat([s,t.v]);o=p(s,e),t.k=i(n,t.k).update(t.v).update(r.from([0])).digest(),t.v=i(n,t.k).update(t.v).digest()}while(-1!==o.cmp(e));return o}function h(e,t,n,r){return e.toRed(a.mont(n)).redPow(t).fromRed().mod(r)}e.exports=function(e,t,n,i,f){var m=c(t);if(m.curve){if("ecdsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");return function(e,t){var n=l[t.curve.join(".")];if(!n)throw new Error("unknown curve "+t.curve.join("."));var i=new o(n).keyFromPrivate(t.privateKey).sign(e);return r.from(i.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==i)throw new Error("wrong private key type");return function(e,t,n){var i,s=t.params.priv_key,o=t.params.p,c=t.params.q,l=t.params.g,f=new a(0),m=p(e,c).mod(c),g=!1,v=u(s,c,e,n);for(;!1===g;)f=h(l,i=d(c,v,n),o,c),0===(g=i.invm(c).imul(m.add(s.mul(f))).mod(c)).cmpn(0)&&(g=!1,f=new a(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e));128&t[0]&&(t=[0].concat(t));var n=[48,e.length+t.length+4,2,e.length];return n=n.concat(e,[2,t.length],t),r.from(n)}(f,g)}(e,m,n)}if("rsa"!==i&&"ecdsa/rsa"!==i)throw new Error("wrong private key type");e=r.concat([f,e]);for(var g=m.modulus.byteLength(),v=[0,1];e.length+v.length+1<g;)v.push(255);v.push(0);for(var b=-1;++b<e.length;)v.push(e[b]);return s(v,m)},e.exports.getKey=u,e.exports.makeKey=d},53075:function(e,t,n){var r=n(37225).Buffer,i=n(53380),s=n(73931).ec,o=n(87758),a=n(72968);function c(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}e.exports=function(e,t,n,l,u){var p=o(n);if("ec"===p.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=a[n.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var i=new s(r),o=n.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,p)}if("dsa"===p.type){if("dsa"!==l)throw new Error("wrong public key type");return function(e,t,n){var r=n.data.p,s=n.data.q,a=n.data.g,l=n.data.pub_key,u=o.signature.decode(e,"der"),p=u.s,d=u.r;c(p,s),c(d,s);var h=i.mont(r),f=p.invm(s);return 0===a.toRed(h).redPow(new i(t).mul(f).mod(s)).fromRed().mul(l.toRed(h).redPow(d.mul(f).mod(s)).fromRed()).mod(r).mod(s).cmp(d)}(e,t,p)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");t=r.concat([u,t]);for(var d=p.modulus.byteLength(),h=[1],f=0;t.length+h.length+2<d;)h.push(255),f++;h.push(0);for(var m=-1;++m<t.length;)h.push(t[m]);h=r.from(h);var g=i.mont(p.modulus);e=(e=new i(e).toRed(g)).redPow(new i(p.publicExponent)),e=r.from(e.fromRed().toArray());var v=f<8?1:0;for(d=Math.min(e.length,h.length),e.length!==h.length&&(v=1),m=-1;++m<d;)v|=e[m]^h[m];return 0===v}},35375:function(e,t,n){var r=n(90778).Buffer;e.exports=function(e,t){for(var n=Math.min(e.length,t.length),i=new r(n),s=0;s<n;++s)i[s]=e[s]^t[s];return i}},90778:function(e,t,n){"use strict";var r=n(55246);const i=n(62803),s=n(23644),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function c(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|g(e,t);let r=c(n);const i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(G(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(G(e,ArrayBuffer)||e&&G(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(G(e,SharedArrayBuffer)||e&&G(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,n);const i=function(e){if(l.isBuffer(e)){const t=0|m(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||Y(e.length)?c(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function p(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return p(e),c(e<0?0:0|m(e))}function h(e){const t=e.length<0?0:0|m(e.length),n=c(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,l.prototype),r}function m(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||G(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(i)return r?-1:$(e).length;t=(""+t).toLowerCase(),i=!0}}function v(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return N(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return j(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function b(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),Y(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,i){let s,o=1,a=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,n/=2}function l(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(s=n;s<a;s++)if(l(e,s)===l(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===c)return r*o}else-1!==r&&(s-=s-r),r=-1}else for(n+c>a&&(n=a-c),s=n;s>=0;s--){let n=!0;for(let r=0;r<c;r++)if(l(e,s+r)!==l(t,r)){n=!1;break}if(n)return s}return-1}function w(e,t,n,r){n=Number(n)||0;const i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;const s=t.length;let o;for(r>s/2&&(r=s/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(Y(r))return o;e[n+o]=r}return o}function _(e,t,n,r){return K($(t,e.length-n),e,n,r)}function E(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return K(J(t),e,n,r)}function S(e,t,n,r){return K(function(e,t){let n,r,i;const s=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,s.push(i),s.push(r);return s}(t,e.length-n),e,n,r)}function j(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);const r=[];let i=t;for(;i<n;){const t=e[i];let s=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,a,c;switch(o){case 1:t<128&&(s=t);break;case 2:n=e[i+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(s=c));break;case 3:n=e[i+1],r=e[i+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:n=e[i+1],r=e[i+2],a=e[i+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=o}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=x));return n}(r)}t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||void 0===r||"function"!=typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,n){return function(e,t,n){return p(e),e<=0?c(e):void 0!==t?"string"==typeof n?c(e).fill(t,n):c(e).fill(t):c(e)}(e,t,n)},l.allocUnsafe=function(e){return d(e)},l.allocUnsafeSlow=function(e){return d(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(G(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),G(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,s=Math.min(n,r);i<s;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=l.allocUnsafe(t);let i=0;for(n=0;n<e.length;++n){let t=e[n];if(G(t,Uint8Array))i+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,i)}i+=t.length}return r},l.byteLength=g,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)b(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)b(this,t,t+3),b(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)b(this,t,t+7),b(this,t+1,t+6),b(this,t+2,t+5),b(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?M(this,0,e):v.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},o&&(l.prototype[o]=l.prototype.inspect),l.prototype.compare=function(e,t,n,r,i){if(G(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let s=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const a=Math.min(s,o),c=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<a;++e)if(c[e]!==u[e]){s=c[e],o=u[e];break}return s<o?-1:o<s?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return E(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function N(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function A(e,t,n){let r="";n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function O(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i="";for(let r=t;r<n;++r)i+=X[e[r]];return i}function T(e,t,n){const r=e.slice(t,n);let i="";for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function P(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,i,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<s)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function R(e,t,n,r,i){V(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function U(e,t,n,r,i){V(t,r,i,e,n,7);let s=Number(t&BigInt(4294967295));e[n+7]=s,s>>=8,e[n+6]=s,s>>=8,e[n+5]=s,s>>=8,e[n+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function Z(e,t,n,r,i,s){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return t=+t,n>>>=0,i||Z(e,0,n,4),s.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return t=+t,n>>>=0,i||Z(e,0,n,8),s.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||P(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),l.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=this[e],i=1,s=0;for(;++s<t&&(i*=256);)r+=this[e+s]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||P(e,t,this.length);let r=t,i=1,s=this[e+--r];for(;r>0&&(i*=256);)s+=this[e+--r]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){e>>>=0,t||P(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){q(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||P(e,4,this.length),s.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||P(e,4,this.length),s.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||P(e,8,this.length),s.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||P(e,8,this.length),s.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){I(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=1,s=0;for(this[t]=255&e;++s<n&&(i*=256);)this[t+s]=e/i&255;return t+n},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){I(this,e,t,n,Math.pow(2,8*n)-1,0)}let i=n-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+n},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return U(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=0,s=1,o=0;for(this[t]=255&e;++i<n&&(s*=256);)e<0&&0===o&&0!==this[t+i-1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);I(this,e,t,n,r-1,-r)}let i=n-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return U(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{const s=l.isBuffer(e)?e:l.from(e,r),o=s.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<n-t;++i)this[i+t]=s[i%o]}return this};const z={};function B(e,t,n){z[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function F(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function V(e,t,n,r,i,s){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let i;throw i=s>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new z.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,n){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,i,s)}function q(e,t){if("number"!=typeof e)throw new z.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw q(e,n),new z.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new z.ERR_BUFFER_OUT_OF_BOUNDS;throw new z.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=F(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=F(i)),i+="n"),r+=` It must be ${t}. Received ${i}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function $(e,t){let n;t=t||1/0;const r=e.length;let i=null;const s=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&s.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&s.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;s.push(n)}else if(n<2048){if((t-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function J(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function K(e,t,n,r){let i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function G(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Y(e){return e!=e}const X=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function Q(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},16422:function(e,t,n){"use strict";var r=n(25165),i=n(43120),s=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&s(e,".prototype.")>-1?i(n):n}},43120:function(e,t,n){"use strict";var r=n(75433),i=n(25165),s=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||r.call(o,s),c=i("%Object.getOwnPropertyDescriptor%",!0),l=i("%Object.defineProperty%",!0),u=i("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(r,o,arguments);if(c&&l){var n=c(t,"length");n.configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))})}return t};var p=function(){return a(r,s,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},69239:function(e,t,n){var r=n(37225).Buffer,i=n(81717).Transform,s=n(3247).s;function o(e){i.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(59503)(o,i),o.prototype.update=function(e,t,n){"string"==typeof e&&(e=r.from(e,t));var i=this._update(e);return this.hashMode?this:(n&&(i=this._toString(i,n)),i)},o.prototype.setAutoPadding=function(){},o.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},o.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},o.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},o.prototype._transform=function(e,t,n){var r;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){r=e}finally{n(r)}},o.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},o.prototype._finalOrDigest=function(e){var t=this.__final()||r.alloc(0);return e&&(t=this._toString(t,e,!0)),t},o.prototype._toString=function(e,t,n){if(this._decoder||(this._decoder=new s(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var r=this._decoder.write(e);return n&&(r+=this._decoder.end()),r},e.exports=o},89105:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var s=typeof n;if("string"===s||"number"===s)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===s)if(n.toString===Object.prototype.toString)for(var a in n)r.call(n,a)&&n[a]&&e.push(a);else e.push(n.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},26767:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=o(n(6670));t.default=c;var i=o(n(58407)),s=o(n(96121));function o(e){return e&&e.__esModule?e:{default:e}}var a=new r.default;function c(e,t){return a.set(e,t),function(){a.delete(e)}}function l(e){a.forEach((function(t,n){(0,s.default)(n,e.target)||t.call(n,e)}))}function u(e){e||(e=document),i.default.bind(e,"click",l)}c.globalClick=l,c.install=u,"undefined"!=typeof document&&u(document),e.exports=t.default},31439:function(e){var t;t=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.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"!=typeof Symbol&&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)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=6)}([function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=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();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].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);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var s=0,o=r.length;s<o;s++)r[s].fn!==t&&r[s].fn._!==t&&i.push(r[s]);return i.length?n[e]=i:delete n[e],this}},e.exports=n,e.exports.TinyEmitter=n},function(e,t,n){var r=n(3),i=n(4);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.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))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t,n){var r=n(5);function i(e,t,n,r,i){var o=s.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function s(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,s){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,s)})))}},function(e,t){if("undefined"!=typeof Element&&!Element.prototype.matches){var n=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"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=i()(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=i()(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":s(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}(),c=a,l=n(1),u=n.n(l),p=n(2),d=n.n(p),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),m=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);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),f(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===h(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=d()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new c({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return g("action",e)}},{key:"defaultTarget",value:function(e){var t=g("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return g("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}]),t}(u.a);function g(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}t.default=m}]).default},e.exports=t()},58407:function(e,t){var n=window.addEventListener?"addEventListener":"attachEvent",r=window.removeEventListener?"removeEventListener":"detachEvent",i="addEventListener"!==n?"on":"";t.bind=function(e,t,r,s){return e[n](i+t,r,s||!1),r},t.unbind=function(e,t,n,s){return e[r](i+t,n,s||!1),n}},97236:function(e,t,n){function r(e){var t,n;for(t=[],n=0;n<e.length;n++)t.push("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_"[e[n]%64]);return t.join("")}e.exports=function(e){if("undefined"!=typeof window){if(void 0!==window.crypto)return r(window.crypto.getRandomValues(new Uint8Array(e)));for(var t=new Array(e),i=0;i<e;i++)t[i]=Math.floor(256*Math.random());return r(t)}var s=n(50142);try{return r(s.randomBytes(e))}catch(t){return r(s.pseudoRandomBytes(e))}}},55246:function(e,t,n){var r=n(23333),i=n(90605);function s(){return(new Date).getTime()}var o,a=Array.prototype.slice,c={};o="undefined"!=typeof window&&window.console||"undefined"!=typeof window&&window.console?window.console:{};for(var l=[[function(){},"log"],[function(){o.log.apply(o,arguments)},"info"],[function(){o.log.apply(o,arguments)},"warn"],[function(){o.warn.apply(o,arguments)},"error"],[function(e){c[e]=s()},"time"],[function(e){var t=c[e];if(!t)throw new Error("No such label: "+e);delete c[e];var n=s()-t;o.log(e+": "+n+"ms")},"timeEnd"],[function(){var e=new Error;e.name="Trace",e.message=r.format.apply(null,arguments),o.error(e.stack)},"trace"],[function(e){o.log(r.inspect(e)+"\n")},"dir"],[function(e){if(!e){var t=a.call(arguments,1);i.ok(!1,r.format.apply(null,t))}},"assert"]],u=0;u<l.length;u++){var p=l[u],d=p[0],h=p[1];o[h]||(o[h]=d)}e.exports=o},92916:function(e,t,n){n(14183),n(45817),n(63564),n(89118),n(28623),n(17310),n(46495),e.exports=n(76891).Map},30841:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},93126:function(e){e.exports=function(){}},82895:function(e){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},7567:function(e,t,n){var r=n(77418);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},96384:function(e,t,n){var r=n(56281);e.exports=function(e,t){var n=[];return r(e,!1,n.push,n,t),n}},70110:function(e,t,n){var r=n(29236),i=n(82561),s=n(49012);e.exports=function(e){return function(t,n,o){var a,c=r(t),l=i(c.length),u=s(o,l);if(e&&n!=n){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},94781:function(e,t,n){var r=n(66897),i=n(59589),s=n(68061),o=n(82561),a=n(89615);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,p=6==e,d=5==e||p,h=t||a;return function(t,a,f){for(var m,g,v=s(t),b=i(v),y=r(a,f,3),k=o(b.length),w=0,_=n?h(t,k):c?h(t,0):void 0;k>w;w++)if((d||w in b)&&(g=y(m=b[w],w,v),e))if(n)_[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:_.push(m)}else if(u)return!1;return p?-1:l||u?u:_}}},75015:function(e,t,n){var r=n(77418),i=n(18457),s=n(65773)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[s])&&(t=void 0)),void 0===t?Array:t}},89615:function(e,t,n){var r=n(75015);e.exports=function(e,t){return new(r(e))(t)}},42318:function(e,t,n){var r=n(51695),i=n(65773)("toStringTag"),s="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:s?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},51695:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},38636:function(e,t,n){"use strict";var r=n(635).f,i=n(39638),s=n(34887),o=n(66897),a=n(82895),c=n(56281),l=n(91851),u=n(61407),p=n(5765),d=n(88599),h=n(74177).fastKey,f=n(39696),m=d?"_s":"size",g=function(e,t){var n,r=h(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e((function(e,r){a(e,u,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[m]=0,null!=r&&c(r,n,e[l],e)}));return s(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),r=g(n,e);if(r){var i=r.n,s=r.p;delete n._i[r.i],r.r=!0,s&&(s.n=i),i&&(i.p=s),n._f==r&&(n._f=i),n._l==r&&(n._l=s),n[m]--}return!!r},forEach:function(e){f(this,t);for(var n,r=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(f(this,t),e)}}),d&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,i,s=g(e,t);return s?s.v=n:(e._l=s={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=s),r&&(r.n=s),e[m]++,"F"!==i&&(e._i[i]=s)),e},getEntry:g,setStrong:function(e,t,n){l(e,t,(function(e,n){this._t=f(e,t),this._k=n,this._l=void 0}),(function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))}),n?"entries":"values",!n,!0),p(t)}}},35353:function(e,t,n){var r=n(42318),i=n(96384);e.exports=function(e){return function(){if(r(this)!=e)throw TypeError(e+"#toJSON isn't generic");return i(this)}}},85770:function(e,t,n){"use strict";var r=n(59507),i=n(87043),s=n(74177),o=n(3641),a=n(82283),c=n(34887),l=n(56281),u=n(82895),p=n(77418),d=n(7891),h=n(635).f,f=n(94781)(0),m=n(88599);e.exports=function(e,t,n,g,v,b){var y=r[e],k=y,w=v?"set":"add",_=k&&k.prototype,E={};return m&&"function"==typeof k&&(b||_.forEach&&!o((function(){(new k).entries().next()})))?(k=t((function(t,n){u(t,k,e,"_c"),t._c=new y,null!=n&&l(n,v,t[w],t)})),f("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),(function(e){var t="add"==e||"set"==e;!(e in _)||b&&"clear"==e||a(k.prototype,e,(function(n,r){if(u(this,k,e),!t&&b&&!p(n))return"get"==e&&void 0;var i=this._c[e](0===n?0:n,r);return t?this:i}))})),b||h(k.prototype,"size",{get:function(){return this._c.size}})):(k=g.getConstructor(t,e,v,w),c(k.prototype,n),s.NEED=!0),d(k,e),E[e]=k,i(i.G+i.W+i.F,E),b||g.setStrong(k,e,v),k}},76891:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},66897:function(e,t,n){var r=n(30841);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},91625:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e}},88599:function(e,t,n){e.exports=!n(3641)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},14595:function(e,t,n){var r=n(77418),i=n(59507).document,s=r(i)&&r(i.createElement);e.exports=function(e){return s?i.createElement(e):{}}},93900:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},87043:function(e,t,n){var r=n(59507),i=n(76891),s=n(66897),o=n(82283),a=n(6649),c=function(e,t,n){var l,u,p,d=e&c.F,h=e&c.G,f=e&c.S,m=e&c.P,g=e&c.B,v=e&c.W,b=h?i:i[t]||(i[t]={}),y=b.prototype,k=h?r:f?r[t]:(r[t]||{}).prototype;for(l in h&&(n=t),n)(u=!d&&k&&void 0!==k[l])&&a(b,l)||(p=u?k[l]:n[l],b[l]=h&&"function"!=typeof k[l]?n[l]:g&&u?s(p,r):v&&k[l]==p?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?s(Function.call,p):p,m&&((b.virtual||(b.virtual={}))[l]=p,e&c.R&&y&&!y[l]&&o(y,l,p)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},3641:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},56281:function(e,t,n){var r=n(66897),i=n(65201),s=n(19959),o=n(7567),a=n(82561),c=n(68246),l={},u={},p=e.exports=function(e,t,n,p,d){var h,f,m,g,v=d?function(){return e}:c(e),b=r(n,p,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(s(v)){for(h=a(e.length);h>y;y++)if((g=t?b(o(f=e[y])[0],f[1]):b(e[y]))===l||g===u)return g}else for(m=v.call(e);!(f=m.next()).done;)if((g=i(m,b,f.value,t))===l||g===u)return g};p.BREAK=l,p.RETURN=u},59507:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},6649:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},82283:function(e,t,n){var r=n(635),i=n(2632);e.exports=n(88599)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},42232:function(e,t,n){var r=n(59507).document;e.exports=r&&r.documentElement},30801:function(e,t,n){e.exports=!n(88599)&&!n(3641)((function(){return 7!=Object.defineProperty(n(14595)("div"),"a",{get:function(){return 7}}).a}))},59589:function(e,t,n){var r=n(51695);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},19959:function(e,t,n){var r=n(43617),i=n(65773)("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[i]===e)}},18457:function(e,t,n){var r=n(51695);e.exports=Array.isArray||function(e){return"Array"==r(e)}},77418:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},65201:function(e,t,n){var r=n(7567);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var s=e.return;throw void 0!==s&&r(s.call(e)),t}}},11949:function(e,t,n){"use strict";var r=n(39638),i=n(2632),s=n(7891),o={};n(82283)(o,n(65773)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),s(e,t+" Iterator")}},91851:function(e,t,n){"use strict";var r=n(35145),i=n(87043),s=n(52820),o=n(82283),a=n(43617),c=n(11949),l=n(7891),u=n(1503),p=n(65773)("iterator"),d=!([].keys&&"next"in[].keys()),h="keys",f="values",m=function(){return this};e.exports=function(e,t,n,g,v,b,y){c(n,t,g);var k,w,_,E=function(e){if(!d&&e in M)return M[e];switch(e){case h:case f:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",S=v==f,j=!1,M=e.prototype,x=M[p]||M["@@iterator"]||v&&M[v],N=x||E(v),A=v?S?E("entries"):N:void 0,O="Array"==t&&M.entries||x;if(O&&(_=u(O.call(new e)))!==Object.prototype&&_.next&&(l(_,C,!0),r||"function"==typeof _[p]||o(_,p,m)),S&&x&&x.name!==f&&(j=!0,N=function(){return x.call(this)}),r&&!y||!d&&!j&&M[p]||o(M,p,N),a[t]=N,a[C]=m,v)if(k={values:S?N:E(f),keys:b?N:E(h),entries:A},y)for(w in k)w in M||s(M,w,k[w]);else i(i.P+i.F*(d||j),t,k);return k}},61407:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},43617:function(e){e.exports={}},35145:function(e){e.exports=!0},74177:function(e,t,n){var r=n(62994)("meta"),i=n(77418),s=n(6649),o=n(635).f,a=0,c=Object.isExtensible||function(){return!0},l=!n(3641)((function(){return c(Object.preventExtensions({}))})),u=function(e){o(e,r,{value:{i:"O"+ ++a,w:{}}})},p=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,r)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[r].i},getWeak:function(e,t){if(!s(e,r)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[r].w},onFreeze:function(e){return l&&p.NEED&&c(e)&&!s(e,r)&&u(e),e}}},39638:function(e,t,n){var r=n(7567),i=n(58906),s=n(93900),o=n(53588)("IE_PROTO"),a=function(){},c=function(){var e,t=n(14595)("iframe"),r=s.length;for(t.style.display="none",n(42232).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;r--;)delete c.prototype[s[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[o]=e):n=c(),void 0===t?n:i(n,t)}},635:function(e,t,n){var r=n(7567),i=n(30801),s=n(91032),o=Object.defineProperty;t.f=n(88599)?Object.defineProperty:function(e,t,n){if(r(e),t=s(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},58906:function(e,t,n){var r=n(635),i=n(7567),s=n(65915);e.exports=n(88599)?Object.defineProperties:function(e,t){i(e);for(var n,o=s(t),a=o.length,c=0;a>c;)r.f(e,n=o[c++],t[n]);return e}},1503:function(e,t,n){var r=n(6649),i=n(68061),s=n(53588)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},93255:function(e,t,n){var r=n(6649),i=n(29236),s=n(70110)(!1),o=n(53588)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),c=0,l=[];for(n in a)n!=o&&r(a,n)&&l.push(n);for(;t.length>c;)r(a,n=t[c++])&&(~s(l,n)||l.push(n));return l}},65915:function(e,t,n){var r=n(93255),i=n(93900);e.exports=Object.keys||function(e){return r(e,i)}},2632:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},34887:function(e,t,n){var r=n(82283);e.exports=function(e,t,n){for(var i in t)n&&e[i]?e[i]=t[i]:r(e,i,t[i]);return e}},52820:function(e,t,n){e.exports=n(82283)},46199:function(e,t,n){"use strict";var r=n(87043),i=n(30841),s=n(66897),o=n(56281);e.exports=function(e){r(r.S,e,{from:function(e){var t,n,r,a,c=arguments[1];return i(this),(t=void 0!==c)&&i(c),null==e?new this:(n=[],t?(r=0,a=s(c,arguments[2],2),o(e,!1,(function(e){n.push(a(e,r++))}))):o(e,!1,n.push,n),new this(n))}})}},20727:function(e,t,n){"use strict";var r=n(87043);e.exports=function(e){r(r.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},5765:function(e,t,n){"use strict";var r=n(59507),i=n(76891),s=n(635),o=n(88599),a=n(65773)("species");e.exports=function(e){var t="function"==typeof i[e]?i[e]:r[e];o&&t&&!t[a]&&s.f(t,a,{configurable:!0,get:function(){return this}})}},7891:function(e,t,n){var r=n(635).f,i=n(6649),s=n(65773)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,s)&&r(e,s,{configurable:!0,value:t})}},53588:function(e,t,n){var r=n(82154)("keys"),i=n(62994);e.exports=function(e){return r[e]||(r[e]=i(e))}},82154:function(e,t,n){var r=n(76891),i=n(59507),s="__core-js_shared__",o=i[s]||(i[s]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(35145)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},1095:function(e,t,n){var r=n(48921),i=n(91625);e.exports=function(e){return function(t,n){var s,o,a=String(i(t)),c=r(n),l=a.length;return c<0||c>=l?e?"":void 0:(s=a.charCodeAt(c))<55296||s>56319||c+1===l||(o=a.charCodeAt(c+1))<56320||o>57343?e?a.charAt(c):s:e?a.slice(c,c+2):o-56320+(s-55296<<10)+65536}}},49012:function(e,t,n){var r=n(48921),i=Math.max,s=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):s(e,t)}},48921:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},29236:function(e,t,n){var r=n(59589),i=n(91625);e.exports=function(e){return r(i(e))}},82561:function(e,t,n){var r=n(48921),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},68061:function(e,t,n){var r=n(91625);e.exports=function(e){return Object(r(e))}},91032:function(e,t,n){var r=n(77418);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},62994:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++t+n).toString(36))}},39696:function(e,t,n){var r=n(77418);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},65773:function(e,t,n){var r=n(82154)("wks"),i=n(62994),s=n(59507).Symbol,o="function"==typeof s;(e.exports=function(e){return r[e]||(r[e]=o&&s[e]||(o?s:i)("Symbol."+e))}).store=r},68246:function(e,t,n){var r=n(42318),i=n(65773)("iterator"),s=n(43617);e.exports=n(76891).getIteratorMethod=function(e){if(null!=e)return e[i]||e["@@iterator"]||s[r(e)]}},42394:function(e,t,n){"use strict";var r=n(93126),i=n(61407),s=n(43617),o=n(29236);e.exports=n(91851)(Array,"Array",(function(e,t){this._t=o(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])}),"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},89118:function(e,t,n){"use strict";var r=n(38636),i=n(39696),s="Map";e.exports=n(85770)(s,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{get:function(e){var t=r.getEntry(i(this,s),e);return t&&t.v},set:function(e,t){return r.def(i(this,s),0===e?0:e,t)}},r,!0)},14183:function(){},45817:function(e,t,n){"use strict";var r=n(1095)(!0);n(91851)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},46495:function(e,t,n){n(46199)("Map")},17310:function(e,t,n){n(20727)("Map")},28623:function(e,t,n){var r=n(87043);r(r.P+r.R,"Map",{toJSON:n(35353)("Map")})},63564:function(e,t,n){n(42394);for(var r=n(59507),i=n(82283),s=n(43617),o=n(65773)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var l=a[c],u=r[l],p=u&&u.prototype;p&&!p[o]&&i(p,o,l),s[l]=s.Array}},73888:function(e,t,n){var r=n(90778).Buffer,i=n(73931),s=n(30910);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function c(e,t,n){Array.isArray(e)||(e=e.toArray());var i=new r(e);if(n&&i.length<n){var s=new r(n-i.length);s.fill(0),i=r.concat([s,i])}return t?i.toString(t):i}o.p224=o.secp224r1,o.p256=o.secp256r1=o.prime256v1,o.p192=o.secp192r1=o.prime192v1,o.p384=o.secp384r1,o.p521=o.secp521r1,a.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},a.prototype.computeSecret=function(e,t,n){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),c(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),n,this.curveType.byteLength)},a.prototype.getPublicKey=function(e,t){var n=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(n[n.length-1]%2?n[0]=7:n[0]=6),c(n,e)},a.prototype.getPrivateKey=function(e){return c(this.keys.getPrivate(),e)},a.prototype.setPublicKey=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.keys._importPublic(e),this},a.prototype.setPrivateKey=function(e,t){t=t||"utf8",r.isBuffer(e)||(e=new r(e,t));var n=new s(e);return n=n.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(n),this}},77439:function(e,t,n){"use strict";var r=n(59503),i=n(53956),s=n(50601),o=n(25636),a=n(69239);function c(e){a.call(this,"digest"),this._hash=e}r(c,a),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return"md5"===(e=e.toLowerCase())?new i:"rmd160"===e||"ripemd160"===e?new s:new c(o(e))}},51345:function(e,t,n){var r=n(53956);e.exports=function(e){return(new r).update(e).digest()}},40445:function(e,t,n){"use strict";var r=n(59503),i=n(98919),s=n(69239),o=n(37225).Buffer,a=n(51345),c=n(50601),l=n(25636),u=o.alloc(128);function p(e,t){s.call(this,"digest"),"string"==typeof t&&(t=o.from(t));var n="sha512"===e||"sha384"===e?128:64;(this._alg=e,this._key=t,t.length>n)?t=("rmd160"===e?new c:l(e)).update(t).digest():t.length<n&&(t=o.concat([t,u],n));for(var r=this._ipad=o.allocUnsafe(n),i=this._opad=o.allocUnsafe(n),a=0;a<n;a++)r[a]=54^t[a],i[a]=92^t[a];this._hash="rmd160"===e?new c:l(e),this._hash.update(r)}r(p,s),p.prototype._update=function(e){this._hash.update(e)},p.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new c:l(this._alg)).update(this._opad).update(e).digest()},e.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new p("rmd160",t):"md5"===e?new i(a,t):new p(e,t)}},98919:function(e,t,n){"use strict";var r=n(59503),i=n(37225).Buffer,s=n(69239),o=i.alloc(128),a=64;function c(e,t){s.call(this,"digest"),"string"==typeof t&&(t=i.from(t)),this._alg=e,this._key=t,t.length>a?t=e(t):t.length<a&&(t=i.concat([t,o],a));for(var n=this._ipad=i.allocUnsafe(a),r=this._opad=i.allocUnsafe(a),c=0;c<a;c++)n[c]=54^t[c],r[c]=92^t[c];this._hash=[n]}r(c,s),c.prototype._update=function(e){this._hash.push(e)},c.prototype._final=function(){var e=this._alg(i.concat(this._hash));return this._alg(i.concat([this._opad,e]))},e.exports=c},23936:function(e,t,n){"use strict";var r=n(1625),i={};function s(e,t,n,r,i,s,o,a){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,s,o,a],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}var o="mixins";e.exports=function(e,t,n){var a=[],c={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)d(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=f(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(!t)return;for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(s(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e)return s("DEFINE_MANY_MERGED"===(l.hasOwnProperty(n)?l[n]:null),"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),void(e[n]=f(e[n],r));e[n]=r}}}(e,t)},autobind:function(){}};function p(e,t){var n=c.hasOwnProperty(t)?c[t]:null;y.hasOwnProperty(t)&&s("OVERRIDE_BASE"===n,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",t),e&&s("DEFINE_MANY"===n||"DEFINE_MANY_MERGED"===n,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",t)}function d(e,n){if(n){s("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),s(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r=e.prototype,i=r.__reactAutoBindPairs;for(var a in n.hasOwnProperty(o)&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(a)&&a!==o){var l=n[a],d=r.hasOwnProperty(a);if(p(d,a),u.hasOwnProperty(a))u[a](e,l);else{var h=c.hasOwnProperty(a);if("function"==typeof l&&!h&&!d&&!1!==n.autobind)i.push(a,l),r[a]=l;else if(d){var g=c[a];s(h&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,a),"DEFINE_MANY_MERGED"===g?r[a]=f(r[a],l):"DEFINE_MANY"===g&&(r[a]=m(r[a],l))}else r[a]=l}}}else;}function h(e,t){for(var n in s(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(s(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function f(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return h(i,n),h(i,r),i}}function m(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function g(e,t){return t.bind(e)}var v={componentDidMount:function(){this.__isMounted=!0}},b={componentWillUnmount:function(){this.__isMounted=!1}},y={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}},k=function(){};return r(k.prototype,e.prototype,y),function(e){var t=function(e,r,o){this.__reactAutoBindPairs.length&&function(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],i=t[n+1];e[r]=g(e,i)}}(this),this.props=e,this.context=r,this.refs=i,this.updater=o||n,this.state=null;var a=this.getInitialState?this.getInitialState():null;s("object"==typeof a&&!Array.isArray(a),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=a};for(var r in t.prototype=new k,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],a.forEach(d.bind(null,t)),d(t,v),d(t,e),d(t,b),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),s(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),c)t.prototype[r]||(t.prototype[r]=null);return t}}},7767:function(e,t,n){"use strict";var r=n(99196),i=n(23936);if(void 0===r)throw Error("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.");var s=(new r.Component).updater;e.exports=i(r.Component,r.isValidElement,s)},50142:function(e,t,n){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=n(35175),t.createHash=t.Hash=n(77439),t.createHmac=t.Hmac=n(40445);var r=n(60451),i=Object.keys(r),s=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return s};var o=n(80231);t.pbkdf2=o.pbkdf2,t.pbkdf2Sync=o.pbkdf2Sync;var a=n(83936);t.Cipher=a.Cipher,t.createCipher=a.createCipher,t.Cipheriv=a.Cipheriv,t.createCipheriv=a.createCipheriv,t.Decipher=a.Decipher,t.createDecipher=a.createDecipher,t.Decipheriv=a.Decipheriv,t.createDecipheriv=a.createDecipheriv,t.getCiphers=a.getCiphers,t.listCiphers=a.listCiphers;var c=n(63298);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var l=n(29908);t.createSign=l.createSign,t.Sign=l.Sign,t.createVerify=l.createVerify,t.Verify=l.Verify,t.createECDH=n(73888);var u=n(51296);t.publicEncrypt=u.publicEncrypt,t.privateEncrypt=u.privateEncrypt,t.publicDecrypt=u.publicDecrypt,t.privateDecrypt=u.privateDecrypt;var p=n(70460);t.randomFill=p.randomFill,t.randomFillSync=p.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},13185:function(e,t,n){"use strict";var r=n(98517),i="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),s=Object.prototype.toString,o=Array.prototype.concat,a=Object.defineProperty,c=a&&function(){var e={};try{for(var t in a(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),l=function(e,t,n,r){var i;(!(t in e)||"function"==typeof(i=r)&&"[object Function]"===s.call(i)&&r())&&(c?a(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},u=function(e,t){var n=arguments.length>2?arguments[2]:{},s=r(t);i&&(s=o.call(s,Object.getOwnPropertySymbols(t)));for(var a=0;a<s.length;a+=1)l(e,s[a],t[s[a]],n[s[a]])};u.supportsDescriptors=!!c,e.exports=u},98625:function(e,t,n){"use strict";t.utils=n(87990),t.Cipher=n(90746),t.DES=n(48738),t.CBC=n(94369),t.EDE=n(96413)},94369:function(e,t,n){"use strict";var r=n(48282),i=n(59503),s={};function o(e){r.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}t.instantiate=function(e){function t(t){e.call(this,t),this._cbcInit()}i(t,e);for(var n=Object.keys(s),r=0;r<n.length;r++){var o=n[r];t.prototype[o]=s[o]}return t.create=function(e){return new t(e)},t},s._cbcInit=function(){var e=new o(this.options.iv);this._cbcState=e},s._update=function(e,t,n,r){var i=this._cbcState,s=this.constructor.super_.prototype,o=i.iv;if("encrypt"===this.type){for(var a=0;a<this.blockSize;a++)o[a]^=e[t+a];s._update.call(this,o,0,n,r);for(a=0;a<this.blockSize;a++)o[a]=n[r+a]}else{s._update.call(this,e,t,n,r);for(a=0;a<this.blockSize;a++)n[r+a]^=o[a];for(a=0;a<this.blockSize;a++)o[a]=e[t+a]}}},90746:function(e,t,n){"use strict";var r=n(48282);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r<n;r++)this.buffer[this.bufferOff+r]=e[t+r];return this.bufferOff+=n,n},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,n=0,r=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(r*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(i,n)));for(var s=e.length-(e.length-t)%this.blockSize;t<s;t+=this.blockSize)this._update(e,t,i,n),n+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,n=0,r=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(r*this.blockSize);r>0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){r.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},48738:function(e,t,n){"use strict";var r=n(48282),i=n(59503),s=n(87990),o=n(90746);function a(){this.tmp=new Array(2),this.keys=null}function c(e){o.call(this,e);var t=new a;this._desState=t,this.deriveKeys(t,e.key)}i(c,o),e.exports=c,c.create=function(e){return new c(e)};var l=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];c.prototype.deriveKeys=function(e,t){e.keys=new Array(32),r.equal(t.length,this.blockSize,"Invalid key length");var n=s.readUInt32BE(t,0),i=s.readUInt32BE(t,4);s.pc1(n,i,e.tmp,0),n=e.tmp[0],i=e.tmp[1];for(var o=0;o<e.keys.length;o+=2){var a=l[o>>>1];n=s.r28shl(n,a),i=s.r28shl(i,a),s.pc2(n,i,e.keys,o)}},c.prototype._update=function(e,t,n,r){var i=this._desState,o=s.readUInt32BE(e,t),a=s.readUInt32BE(e,t+4);s.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],s.writeUInt32BE(n,o,r),s.writeUInt32BE(n,a,r+4)},c.prototype._pad=function(e,t){for(var n=e.length-t,r=t;r<e.length;r++)e[r]=n;return!0},c.prototype._unpad=function(e){for(var t=e[e.length-1],n=e.length-t;n<e.length;n++)r.equal(e[n],t);return e.slice(0,e.length-t)},c.prototype._encrypt=function(e,t,n,r,i){for(var o=t,a=n,c=0;c<e.keys.length;c+=2){var l=e.keys[c],u=e.keys[c+1];s.expand(a,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var p=s.substitute(l,u),d=a;a=(o^s.permute(p))>>>0,o=d}s.rip(a,o,r,i)},c.prototype._decrypt=function(e,t,n,r,i){for(var o=n,a=t,c=e.keys.length-2;c>=0;c-=2){var l=e.keys[c],u=e.keys[c+1];s.expand(o,e.tmp,0),l^=e.tmp[0],u^=e.tmp[1];var p=s.substitute(l,u),d=o;o=(a^s.permute(p))>>>0,a=d}s.rip(o,a,r,i)}},96413:function(e,t,n){"use strict";var r=n(48282),i=n(59503),s=n(90746),o=n(48738);function a(e,t){r.equal(t.length,24,"Invalid key length");var n=t.slice(0,8),i=t.slice(8,16),s=t.slice(16,24);this.ciphers="encrypt"===e?[o.create({type:"encrypt",key:n}),o.create({type:"decrypt",key:i}),o.create({type:"encrypt",key:s})]:[o.create({type:"decrypt",key:s}),o.create({type:"encrypt",key:i}),o.create({type:"decrypt",key:n})]}function c(e){s.call(this,e);var t=new a(this.type,this.options.key);this._edeState=t}i(c,s),e.exports=c,c.create=function(e){return new c(e)},c.prototype._update=function(e,t,n,r){var i=this._edeState;i.ciphers[0]._update(e,t,n,r),i.ciphers[1]._update(n,r,n,r),i.ciphers[2]._update(n,r,n,r)},c.prototype._pad=o.prototype._pad,c.prototype._unpad=o.prototype._unpad},87990:function(e,t){"use strict";t.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},t.writeUInt32BE=function(e,t,n){e[0+n]=t>>>24,e[1+n]=t>>>16&255,e[2+n]=t>>>8&255,e[3+n]=255&t},t.ip=function(e,t,n,r){for(var i=0,s=0,o=6;o>=0;o-=2){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>>a+o&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>>a+o&1}for(o=6;o>=0;o-=2){for(a=1;a<=25;a+=8)s<<=1,s|=t>>>a+o&1;for(a=1;a<=25;a+=8)s<<=1,s|=e>>>a+o&1}n[r+0]=i>>>0,n[r+1]=s>>>0},t.rip=function(e,t,n,r){for(var i=0,s=0,o=0;o<4;o++)for(var a=24;a>=0;a-=8)i<<=1,i|=t>>>a+o&1,i<<=1,i|=e>>>a+o&1;for(o=4;o<8;o++)for(a=24;a>=0;a-=8)s<<=1,s|=t>>>a+o&1,s<<=1,s|=e>>>a+o&1;n[r+0]=i>>>0,n[r+1]=s>>>0},t.pc1=function(e,t,n,r){for(var i=0,s=0,o=7;o>=5;o--){for(var a=0;a<=24;a+=8)i<<=1,i|=t>>a+o&1;for(a=0;a<=24;a+=8)i<<=1,i|=e>>a+o&1}for(a=0;a<=24;a+=8)i<<=1,i|=t>>a+o&1;for(o=1;o<=3;o++){for(a=0;a<=24;a+=8)s<<=1,s|=t>>a+o&1;for(a=0;a<=24;a+=8)s<<=1,s|=e>>a+o&1}for(a=0;a<=24;a+=8)s<<=1,s|=e>>a+o&1;n[r+0]=i>>>0,n[r+1]=s>>>0},t.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var s=0,o=0,a=n.length>>>1,c=0;c<a;c++)s<<=1,s|=e>>>n[c]&1;for(c=a;c<n.length;c++)o<<=1,o|=t>>>n[c]&1;r[i+0]=s>>>0,r[i+1]=o>>>0},t.expand=function(e,t,n){var r=0,i=0;r=(1&e)<<5|e>>>27;for(var s=23;s>=15;s-=4)r<<=6,r|=e>>>s&63;for(s=11;s>=3;s-=4)i|=e>>>s&63,i<<=6;i|=(31&e)<<1|e>>>31,t[n+0]=r>>>0,t[n+1]=i>>>0};var r=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var n=0,i=0;i<4;i++){n<<=4,n|=r[64*i+(e>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=r[256+64*i+(t>>>18-6*i&63)]}return n>>>0};var i=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,n=0;n<i.length;n++)t<<=1,t|=e>>>i[n]&1;return t>>>0},t.padSplit=function(e,t,n){for(var r=e.toString(2);r.length<t;)r="0"+r;for(var i=[],s=0;s<t;s+=n)i.push(r.slice(s,s+n));return i.join(" ")}},63298:function(e,t,n){var r=n(90778).Buffer,i=n(76156),s=n(27046),o=n(92716);var a={binary:!0,hex:!0,base64:!0};t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=function(e){var t=new r(s[e].prime,"hex"),n=new r(s[e].gen,"hex");return new o(t,n)},t.createDiffieHellman=t.DiffieHellman=function e(t,n,s,c){return r.isBuffer(n)||void 0===a[n]?e(t,"binary",n,s):(n=n||"binary",c=c||"binary",s=s||new r([2]),r.isBuffer(s)||(s=new r(s,c)),"number"==typeof t?new o(i(t,s),s,!0):(r.isBuffer(t)||(t=new r(t,n)),new o(t,s,!0)))}},92716:function(e,t,n){var r=n(90778).Buffer,i=n(30910),s=new(n(16616)),o=new i(24),a=new i(11),c=new i(10),l=new i(3),u=new i(7),p=n(76156),d=n(35175);function h(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._pub=new i(e),this}function f(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this._priv=new i(e),this}e.exports=g;var m={};function g(e,t,n){this.setGenerator(t),this.__prime=new i(e),this._prime=i.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=f):this._primeCode=8}function v(e,t){var n=new r(e.toArray());return t?n.toString(t):n}Object.defineProperty(g.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var n=t.toString("hex"),r=[n,e.toString(16)].join("_");if(r in m)return m[r];var i,d=0;if(e.isEven()||!p.simpleSieve||!p.fermatTest(e)||!s.test(e))return d+=1,d+="02"===n||"05"===n?8:4,m[r]=d,d;switch(s.test(e.shrn(1))||(d+=2),n){case"02":e.mod(o).cmp(a)&&(d+=8);break;case"05":(i=e.mod(c)).cmp(l)&&i.cmp(u)&&(d+=8);break;default:d+=4}return m[r]=d,d}(this.__prime,this.__gen)),this._primeCode}}),g.prototype.generateKeys=function(){return this._priv||(this._priv=new i(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},g.prototype.computeSecret=function(e){var t=(e=(e=new i(e)).toRed(this._prime)).redPow(this._priv).fromRed(),n=new r(t.toArray()),s=this.getPrime();if(n.length<s.length){var o=new r(s.length-n.length);o.fill(0),n=r.concat([o,n])}return n},g.prototype.getPublicKey=function(e){return v(this._pub,e)},g.prototype.getPrivateKey=function(e){return v(this._priv,e)},g.prototype.getPrime=function(e){return v(this.__prime,e)},g.prototype.getGenerator=function(e){return v(this._gen,e)},g.prototype.setGenerator=function(e,t){return t=t||"utf8",r.isBuffer(e)||(e=new r(e,t)),this.__gen=e,this._gen=new i(e),this}},76156:function(e,t,n){var r=n(35175);e.exports=b,b.simpleSieve=g,b.fermatTest=v;var i=n(30910),s=new i(24),o=new(n(16616)),a=new i(1),c=new i(2),l=new i(5),u=(new i(16),new i(8),new i(10)),p=new i(3),d=(new i(7),new i(11)),h=new i(4),f=(new i(12),null);function m(){if(null!==f)return f;var e=[];e[0]=2;for(var t=1,n=3;n<1048576;n+=2){for(var r=Math.ceil(Math.sqrt(n)),i=0;i<t&&e[i]<=r&&n%e[i]!=0;i++);t!==i&&e[i]<=r||(e[t++]=n)}return f=e,e}function g(e){for(var t=m(),n=0;n<t.length;n++)if(0===e.modn(t[n]))return 0===e.cmpn(t[n]);return!0}function v(e){var t=i.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function b(e,t){if(e<16)return new i(2===t||5===t?[140,123]:[140,39]);var n,f;for(t=new i(t);;){for(n=new i(r(Math.ceil(e/8)));n.bitLength()>e;)n.ishrn(1);if(n.isEven()&&n.iadd(a),n.testn(1)||n.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;n.mod(u).cmp(p);)n.iadd(h)}else for(;n.mod(s).cmp(d);)n.iadd(h);if(g(f=n.shrn(1))&&g(n)&&v(f)&&v(n)&&o.test(f)&&o.test(n))return n}}},73931:function(e,t,n){"use strict";var r=t;r.version=n(80906).i8,r.utils=n(12097),r.rand=n(71876),r.curve=n(46244),r.curves=n(65583),r.ec=n(72553),r.eddsa=n(66281)},48432:function(e,t,n){"use strict";var r=n(30910),i=n(12097),s=i.getNAF,o=i.getJSF,a=i.assert;function c(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){a(e.precomputed);var n=e._getDoubles(),r=s(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2==0?2:1);i/=3;var o,c,l=[];for(o=0;o<r.length;o+=n.step){c=0;for(var u=o+n.step-1;u>=o;u--)c=(c<<1)+r[u];l.push(c)}for(var p=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o<l.length;o++)(c=l[o])===h?d=d.mixedAdd(n.points[o]):c===-h&&(d=d.mixedAdd(n.points[o].neg()));p=p.add(d)}return p.toP()},c.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=s(t,n,this._bitLength),c=this.jpoint(null,null,null),l=o.length-1;l>=0;l--){for(var u=0;l>=0&&0===o[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var p=o[l];a(0!==p),c="affine"===e.type?p>0?c.mixedAdd(i[p-1>>1]):c.mixedAdd(i[-p-1>>1].neg()):p>0?c.add(i[p-1>>1]):c.add(i[-p-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,n,r,i){var a,c,l,u=this._wnafT1,p=this._wnafT2,d=this._wnafT3,h=0;for(a=0;a<r;a++){var f=(l=t[a])._getNAFPoints(e);u[a]=f.wnd,p[a]=f.points}for(a=r-1;a>=1;a-=2){var m=a-1,g=a;if(1===u[m]&&1===u[g]){var v=[t[m],null,null,t[g]];0===t[m].y.cmp(t[g].y)?(v[1]=t[m].add(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg())):0===t[m].y.cmp(t[g].y.redNeg())?(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].add(t[g].neg())):(v[1]=t[m].toJ().mixedAdd(t[g]),v[2]=t[m].toJ().mixedAdd(t[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=o(n[m],n[g]);for(h=Math.max(y[0].length,h),d[m]=new Array(h),d[g]=new Array(h),c=0;c<h;c++){var k=0|y[0][c],w=0|y[1][c];d[m][c]=b[3*(k+1)+(w+1)],d[g][c]=0,p[m]=v}}else d[m]=s(n[m],u[m],this._bitLength),d[g]=s(n[g],u[g],this._bitLength),h=Math.max(d[m].length,h),h=Math.max(d[g].length,h)}var _=this.jpoint(null,null,null),E=this._wnafT4;for(a=h;a>=0;a--){for(var C=0;a>=0;){var S=!0;for(c=0;c<r;c++)E[c]=0|d[c][a],0!==E[c]&&(S=!1);if(!S)break;C++,a--}if(a>=0&&C++,_=_.dblp(C),a<0)break;for(c=0;c<r;c++){var j=E[c];0!==j&&(j>0?l=p[c][j-1>>1]:j<0&&(l=p[c][-j-1>>1].neg()),_="affine"===l.type?_.mixedAdd(l):_.add(l))}}for(a=0;a<r;a++)p[a]=null;return i?_:_.toP()},c.BasePoint=l,l.prototype.eq=function(){throw new Error("Not implemented")},l.prototype.validate=function(){return this.curve.validate(this)},c.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*n)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},l.prototype.encodeCompressed=function(e){return this.encode(e,!0)},l.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},l.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},l.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},l.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},l.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var s=0;s<e;s++)r=r.dbl();n.push(r)}return{step:e,points:n}},l.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},l.prototype._getBeta=function(){return null},l.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t}},27978:function(e,t,n){"use strict";var r=n(12097),i=n(30910),s=n(59503),o=n(48432),a=r.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,o.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,n,r,s){o.BasePoint.call(this,e,"projective"),null===t&&null===n&&null===r?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(n,16),this.z=r?new i(r,16):this.curve.one,this.t=s&&new i(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(c,o),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,n,r){return this.point(e,t,n,r)},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=this.c2.redSub(this.a.redMul(n)),s=this.one.redSub(this.c2.redMul(this.d).redMul(n)),o=r.redMul(s.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(t&&!c||!t&&c)&&(a=a.redNeg()),this.point(e,a)},c.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr(),r=n.redSub(this.c2),s=n.redMul(this.d).redMul(this.c2).redSub(this.a),o=r.redMul(s.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),n=e.y.redSqr(),r=t.redMul(this.a).redAdd(n),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(n)));return 0===r.cmp(i)},s(l,o.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,n,r){return new l(this,e,t,n,r)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var r=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=r.redAdd(t),o=s.redSub(n),a=r.redSub(t),c=i.redMul(o),l=s.redMul(a),u=i.redMul(a),p=o.redMul(s);return this.curve.point(c,l,p,u)},l.prototype._projDbl=function(){var e,t,n,r,i,s,o=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(r=this.curve._mulA(a)).redAdd(c);this.zOne?(e=o.redSub(a).redSub(c).redMul(l.redSub(this.curve.two)),t=l.redMul(r.redSub(c)),n=l.redSqr().redSub(l).redSub(l)):(i=this.z.redSqr(),s=l.redSub(i).redISub(i),e=o.redSub(a).redISub(c).redMul(s),t=l.redMul(r.redSub(c)),n=l.redMul(s))}else r=a.redAdd(c),i=this.curve._mulC(this.z).redSqr(),s=r.redSub(i).redSub(i),e=this.curve._mulC(o.redISub(r)).redMul(s),t=this.curve._mulC(r).redMul(a.redISub(c)),n=r.redMul(s);return this.curve.point(e,t,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),n=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),r=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=n.redSub(t),o=i.redSub(r),a=i.redAdd(r),c=n.redAdd(t),l=s.redMul(o),u=a.redMul(c),p=s.redMul(c),d=o.redMul(a);return this.curve.point(l,u,d,p)},l.prototype._projAdd=function(e){var t,n,r=this.z.redMul(e.z),i=r.redSqr(),s=this.x.redMul(e.x),o=this.y.redMul(e.y),a=this.curve.d.redMul(s).redMul(o),c=i.redSub(a),l=i.redAdd(a),u=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(s).redISub(o),p=r.redMul(c).redMul(u);return this.curve.twisted?(t=r.redMul(l).redMul(o.redSub(this.curve._mulA(s))),n=c.redMul(l)):(t=r.redMul(l).redMul(o.redSub(s)),n=this.curve._mulC(c).redMul(l)),this.curve.point(p,t,n)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!1)},l.prototype.jmulAdd=function(e,t,n){return this.curve._wnafMulAdd(1,[this,t],[e,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var n=e.clone(),r=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(r),0===this.x.cmp(t))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},46244:function(e,t,n){"use strict";var r=t;r.base=n(48432),r.short=n(42567),r.mont=n(2493),r.edwards=n(27978)},2493:function(e,t,n){"use strict";var r=n(30910),i=n(59503),s=n(48432),o=n(12097);function a(e){s.call(this,"mont",e),this.a=new r(e.a,16).toRed(this.red),this.b=new r(e.b,16).toRed(this.red),this.i4=new r(4).toRed(this.red).redInvm(),this.two=new r(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,n){s.BasePoint.call(this,e,"projective"),null===t&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new r(t,16),this.z=new r(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,s),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,n=t.redSqr(),r=n.redMul(t).redAdd(n.redMul(this.a)).redAdd(t);return 0===r.redSqrt().redSqr().cmp(r)},i(c,s.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(o.toArray(e,t),1)},a.prototype.point=function(e,t){return new c(this,e,t)},a.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),n=e.redSub(t),r=e.redMul(t),i=n.redMul(t.redAdd(this.curve.a24.redMul(n)));return this.curve.point(r,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var n=this.x.redAdd(this.z),r=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z).redMul(n),o=i.redMul(r),a=t.z.redMul(s.redAdd(o).redSqr()),c=t.x.redMul(s.redISub(o).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(e){for(var t=e.clone(),n=this,r=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var s=i.length-1;s>=0;s--)0===i[s]?(n=n.diffAdd(r,this),r=r.dbl()):(r=n.diffAdd(r,this),n=n.dbl());return r},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},42567:function(e,t,n){"use strict";var r=n(12097),i=n(30910),s=n(59503),o=n(48432),a=r.assert;function c(e){o.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(e,t,n,r){o.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(e,t,n,r){o.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(n,16),this.z=new i(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(c,o),e.exports=c,c.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new i(e.lambda,16);else{var s=this._getEndoRoots(this.n);0===this.g.mul(s[0]).x.cmp(this.g.x.redMul(t))?n=s[0]:(n=s[1],a(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new i(e.a,16),b:new i(e.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),n=new i(2).toRed(t).redInvm(),r=n.redNeg(),s=new i(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(s).fromRed(),r.redSub(s).fromRed()]},c.prototype._getEndoBasis=function(e){for(var t,n,r,s,o,a,c,l,u,p=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,h=this.n.clone(),f=new i(1),m=new i(0),g=new i(0),v=new i(1),b=0;0!==d.cmpn(0);){var y=h.div(d);l=h.sub(y.mul(d)),u=g.sub(y.mul(f));var k=v.sub(y.mul(m));if(!r&&l.cmp(p)<0)t=c.neg(),n=f,r=l.neg(),s=u;else if(r&&2==++b)break;c=l,h=d,d=l,g=f,f=u,v=m,m=k}o=l.neg(),a=u;var w=r.sqr().add(s.sqr());return o.sqr().add(a.sqr()).cmp(w)>=0&&(o=t,a=n),r.negative&&(r=r.neg(),s=s.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:s},{a:o,b:a}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),s=n.b.neg().mul(e).divRound(this.n),o=i.mul(n.a),a=s.mul(r.a),c=i.mul(n.b),l=s.mul(r.b);return{k1:e.sub(o).sub(a),k2:c.add(l).neg()}},c.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var s=r.fromRed().isOdd();return(t&&!s||!t&&s)&&(r=r.redNeg()),this.point(e,r)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,s=0;s<e.length;s++){var o=this._endoSplit(t[s]),a=e[s],c=a._getBeta();o.k1.negative&&(o.k1.ineg(),a=a.neg(!0)),o.k2.negative&&(o.k2.ineg(),c=c.neg(!0)),r[2*s]=a,r[2*s+1]=c,i[2*s]=o.k1,i[2*s+1]=o.k2}for(var l=this._wnafMulAdd(1,r,i,2*s,n),u=0;u<2*s;u++)r[u]=null,i[u]=null;return l},s(l,o.BasePoint),c.prototype.point=function(e,t,n){return new l(this,e,t,n)},c.prototype.pointFromJSON=function(e,t){return l.fromJSON(this,e,t)},l.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},l.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},l.fromJSON=function(e,t,n){"string"==typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var s=t[2];return r.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[r].concat(s.doubles.points.map(i))},naf:s.naf&&{wnd:s.naf.wnd,points:[r].concat(s.naf.points.map(i))}},r},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},l.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),s=i.redSqr().redISub(this.x.redAdd(this.x)),o=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,o)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},l.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},l.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},l.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(u,o.BasePoint),c.prototype.jpoint=function(e,t,n){return new u(this,e,t,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),s=this.y.redMul(t.redMul(e.z)),o=e.y.redMul(n.redMul(this.z)),a=r.redSub(i),c=s.redSub(o);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),p=r.redMul(l),d=c.redSqr().redIAdd(u).redISub(p).redISub(p),h=c.redMul(p.redISub(d)).redISub(s.redMul(u)),f=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,h,f)},u.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),o=n.redSub(r),a=i.redSub(s);if(0===o.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=o.redSqr(),l=c.redMul(o),u=n.redMul(c),p=a.redSqr().redIAdd(l).redISub(u).redISub(u),d=a.redMul(u.redISub(p)).redISub(i.redMul(l)),h=this.z.redMul(o);return this.curve.jpoint(p,d,h)},u.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,s=this.x,o=this.y,a=this.z,c=a.redSqr().redSqr(),l=o.redAdd(o);for(t=0;t<e;t++){var u=s.redSqr(),p=l.redSqr(),d=p.redSqr(),h=u.redAdd(u).redIAdd(u).redIAdd(r.redMul(c)),f=s.redMul(p),m=h.redSqr().redISub(f.redAdd(f)),g=f.redISub(m),v=h.redMul(g);v=v.redIAdd(v).redISub(d);var b=l.redMul(a);t+1<e&&(c=c.redMul(d)),s=m,a=b,l=v}return this.curve.jpoint(s,l.redMul(i),a)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},u.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(s);o=o.redIAdd(o);var a=r.redAdd(r).redIAdd(r),c=a.redSqr().redISub(o).redISub(o),l=s.redIAdd(s);l=(l=l.redIAdd(l)).redIAdd(l),e=c,t=a.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.x.redSqr(),p=this.y.redSqr(),d=p.redSqr(),h=this.x.redAdd(p).redSqr().redISub(u).redISub(d);h=h.redIAdd(h);var f=u.redAdd(u).redIAdd(u),m=f.redSqr(),g=d.redIAdd(d);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(h).redISub(h),t=f.redMul(h.redISub(e)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},u.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),o=this.x.redAdd(i).redSqr().redISub(r).redISub(s);o=o.redIAdd(o);var a=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),c=a.redSqr().redISub(o).redISub(o);e=c;var l=s.redIAdd(s);l=(l=l.redIAdd(l)).redIAdd(l),t=a.redMul(o.redISub(c)).redISub(l),n=this.y.redAdd(this.y)}else{var u=this.z.redSqr(),p=this.y.redSqr(),d=this.x.redMul(p),h=this.x.redSub(u).redMul(this.x.redAdd(u));h=h.redAdd(h).redIAdd(h);var f=d.redIAdd(d),m=(f=f.redIAdd(f)).redAdd(f);e=h.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(p).redISub(u);var g=p.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=h.redMul(f.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,n)},u.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),s=t.redSqr(),o=n.redSqr(),a=s.redAdd(s).redIAdd(s).redIAdd(e.redMul(i)),c=t.redAdd(t),l=(c=c.redIAdd(c)).redMul(o),u=a.redSqr().redISub(l.redAdd(l)),p=l.redISub(u),d=o.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=a.redMul(p).redISub(d),f=n.redAdd(n).redMul(r);return this.curve.jpoint(u,h,f)},u.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),s=i.redSqr(),o=this.x.redAdd(t).redSqr().redISub(e).redISub(r),a=(o=(o=(o=o.redIAdd(o)).redAdd(o).redIAdd(o)).redISub(s)).redSqr(),c=r.redIAdd(r);c=(c=(c=c.redIAdd(c)).redIAdd(c)).redIAdd(c);var l=i.redIAdd(o).redSqr().redISub(s).redISub(a).redISub(c),u=t.redMul(l);u=(u=u.redIAdd(u)).redIAdd(u);var p=this.x.redMul(a).redISub(u);p=(p=p.redIAdd(p)).redIAdd(p);var d=this.y.redMul(l.redMul(c.redISub(l)).redISub(o.redMul(a)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var h=this.z.redAdd(o).redSqr().redISub(n).redISub(a);return this.curve.jpoint(p,d,h)},u.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},u.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},u.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},65583:function(e,t,n){"use strict";var r,i=t,s=n(91138),o=n(46244),a=n(12097).assert;function c(e){"short"===e.type?this.curve=new o.short(e):"edwards"===e.type?this.curve=new o.edwards(e):this.curve=new o.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new c(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:s.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:s.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:s.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:s.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:s.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:s.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(4703)}catch(e){r=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:s.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},72553:function(e,t,n){"use strict";var r=n(30910),i=n(53674),s=n(12097),o=n(65583),a=n(71876),c=s.assert,l=n(26167),u=n(96376);function p(e){if(!(this instanceof p))return new p(e);"string"==typeof e&&(c(Object.prototype.hasOwnProperty.call(o,e),"Unknown curve "+e),e=o[e]),e instanceof o.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=p,p.prototype.keyPair=function(e){return new l(this,e)},p.prototype.keyFromPrivate=function(e,t){return l.fromPrivate(this,e,t)},p.prototype.keyFromPublic=function(e,t){return l.fromPublic(this,e,t)},p.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),s=this.n.sub(new r(2));;){var o=new r(t.generate(n));if(!(o.cmp(s)>0))return o.iaddn(1),this.keyFromPrivate(o)}},p.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},p.prototype.sign=function(e,t,n,s){"object"==typeof n&&(s=n,n=null),s||(s={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new r(e,16));for(var o=this.n.byteLength(),a=t.getPrivate().toArray("be",o),c=e.toArray("be",o),l=new i({hash:this.hash,entropy:a,nonce:c,pers:s.pers,persEnc:s.persEnc||"utf8"}),p=this.n.sub(new r(1)),d=0;;d++){var h=s.k?s.k(d):new r(l.generate(this.n.byteLength()));if(!((h=this._truncateToN(h,!0)).cmpn(1)<=0||h.cmp(p)>=0)){var f=this.g.mul(h);if(!f.isInfinity()){var m=f.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var v=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var b=(f.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return s.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),b^=1),new u({r:g,s:v,recoveryParam:b})}}}}}},p.prototype.verify=function(e,t,n,i){e=this._truncateToN(new r(e,16)),n=this.keyFromPublic(n,i);var s=(t=new u(t,"hex")).r,o=t.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,c=o.invm(this.n),l=c.mul(e).umod(this.n),p=c.mul(s).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),p)).isInfinity()&&a.eqXToP(s):!(a=this.g.mulAdd(l,n.getPublic(),p)).isInfinity()&&0===a.getX().umod(this.n).cmp(s)},p.prototype.recoverPubKey=function(e,t,n,i){c((3&n)===n,"The recovery param is more than two bits"),t=new u(t,i);var s=this.n,o=new r(e),a=t.r,l=t.s,p=1&n,d=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),p):this.curve.pointFromX(a,p);var h=t.r.invm(s),f=s.sub(o).mul(h).umod(s),m=l.mul(h).umod(s);return this.g.mulAdd(f,a,m)},p.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new u(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(e,t,i)}catch(e){continue}if(s.eq(n))return i}throw new Error("Unable to find valid recovery factor")}},26167:function(e,t,n){"use strict";var r=n(30910),i=n(12097).assert;function s(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=s,s.fromPublic=function(e,t,n){return t instanceof s?t:new s(e,{pub:t,pubEnc:n})},s.fromPrivate=function(e,t,n){return t instanceof s?t:new s(e,{priv:t,privEnc:n})},s.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},s.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(e,t){this.priv=new r(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},s.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},s.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},s.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},96376:function(e,t,n){"use strict";var r=n(30910),i=n(12097),s=i.assert;function o(e,t){if(e instanceof o)return e;this._importDER(e,t)||(s(e.r&&e.s,"Signature without r or s"),this.r=new r(e.r,16),this.s=new r(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function c(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,s=0,o=t.place;s<r;s++,o++)i<<=8,i|=e[o],i>>>=0;return!(i<=127)&&(t.place=o,i)}function l(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function u(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}e.exports=o,o.prototype._importDER=function(e,t){e=i.toArray(e,t);var n=new a;if(48!==e[n.place++])return!1;var s=c(e,n);if(!1===s)return!1;if(s+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var o=c(e,n);if(!1===o)return!1;var l=e.slice(n.place,o+n.place);if(n.place+=o,2!==e[n.place++])return!1;var u=c(e,n);if(!1===u)return!1;if(e.length!==u+n.place)return!1;var p=e.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===p[0]){if(!(128&p[1]))return!1;p=p.slice(1)}return this.r=new r(l),this.s=new r(p),this.recoveryParam=null,!0},o.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=l(t),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];u(r,t.length),(r=r.concat(t)).push(2),u(r,n.length);var s=r.concat(n),o=[48];return u(o,s.length),o=o.concat(s),i.encode(o,e)}},66281:function(e,t,n){"use strict";var r=n(91138),i=n(65583),s=n(12097),o=s.assert,a=s.parseBytes,c=n(8325),l=n(49945);function u(e){if(o("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof u))return new u(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=r.sha512}e.exports=u,u.prototype.sign=function(e,t){e=a(e);var n=this.keyFromSecret(t),r=this.hashInt(n.messagePrefix(),e),i=this.g.mul(r),s=this.encodePoint(i),o=this.hashInt(s,n.pubBytes(),e).mul(n.priv()),c=r.add(o).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:s})},u.prototype.verify=function(e,t,n){e=a(e),t=this.makeSignature(t);var r=this.keyFromPublic(n),i=this.hashInt(t.Rencoded(),r.pubBytes(),e),s=this.g.mul(t.S());return t.R().add(r.pub().mul(i)).eq(s)},u.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return s.intFromLE(e.digest()).umod(this.curve.n)},u.prototype.keyFromPublic=function(e){return c.fromPublic(this,e)},u.prototype.keyFromSecret=function(e){return c.fromSecret(this,e)},u.prototype.makeSignature=function(e){return e instanceof l?e:new l(this,e)},u.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},u.prototype.decodePoint=function(e){var t=(e=s.parseBytes(e)).length-1,n=e.slice(0,t).concat(-129&e[t]),r=0!=(128&e[t]),i=s.intFromLE(n);return this.curve.pointFromY(i,r)},u.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},u.prototype.decodeInt=function(e){return s.intFromLE(e)},u.prototype.isPoint=function(e){return e instanceof this.pointClass}},8325:function(e,t,n){"use strict";var r=n(12097),i=r.assert,s=r.parseBytes,o=r.cachedProperty;function a(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},o(a,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),o(a,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),o(a,"privBytes",(function(){var e=this.eddsa,t=this.hash(),n=e.encodingLength-1,r=t.slice(0,e.encodingLength);return r[0]&=248,r[n]&=127,r[n]|=64,r})),o(a,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),o(a,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),o(a,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),a.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),r.encode(this.secret(),e)},a.prototype.getPublic=function(e){return r.encode(this.pubBytes(),e)},e.exports=a},49945:function(e,t,n){"use strict";var r=n(30910),i=n(12097),s=i.assert,o=i.cachedProperty,a=i.parseBytes;function c(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof r&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}o(c,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),o(c,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),o(c,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),o(c,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),c.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},c.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=c},4703:function(e){e.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},12097:function(e,t,n){"use strict";var r=t,i=n(30910),s=n(48282),o=n(90458);r.assert=s,r.toArray=o.toArray,r.zero2=o.zero2,r.toHex=o.toHex,r.encode=o.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,s=e.clone(),o=0;o<r.length;o++){var a,c=s.andln(i-1);s.isOdd()?(a=c>(i>>1)-1?(i>>1)-c:c,s.isubn(a)):a=0,r[o]=a,s.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,s=0;e.cmpn(-i)>0||t.cmpn(-s)>0;){var o,a,c=e.andln(3)+i&3,l=t.andln(3)+s&3;3===c&&(c=-1),3===l&&(l=-1),o=0==(1&c)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==l?c:-c,n[0].push(o),a=0==(1&l)?0:3!==(r=t.andln(7)+s&7)&&5!==r||2!==c?l:-l,n[1].push(a),2*i===o+1&&(i=1-i),2*s===a+1&&(s=1-s),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},45685:function(e){"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(null!=i)for(var s=Object.keys(Object(i)),o=0,a=s.length;o<a;o++){var c=s[o],l=Object.getOwnPropertyDescriptor(i,c);void 0!==l&&l.enumerable&&(n[c]=i[c])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},2571:function(e,t,n){"use strict";var r,i=n(55246),s="object"==typeof Reflect?Reflect:null,o=s&&"function"==typeof s.apply?s.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};r=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function c(){c.init.call(this)}e.exports=c,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,s),r(n)}function s(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}b(e,t,s,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&b(e,"error",t,n)}(e,i,{once:!0})}))},c.EventEmitter=c,c.prototype._events=void 0,c.prototype._eventsCount=0,c.prototype._maxListeners=void 0;var l=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function p(e){return void 0===e._maxListeners?c.defaultMaxListeners:e._maxListeners}function d(e,t,n,r){var s,o,a;if(u(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),a=o[t]),void 0===a)a=o[t]=n,++e._eventsCount;else if("function"==typeof a?a=o[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(s=p(e))>0&&a.length>s&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,function(e){i&&i.warn&&i.warn(e)}(c)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=h.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):v(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function b(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function i(s){r.once&&e.removeEventListener(t,i),n(s)}))}}Object.defineProperty(c,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");l=e}}),c.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},c.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},c.prototype.getMaxListeners=function(){return p(this)},c.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,i=this._events;if(void 0!==i)r=r&&void 0===i.error;else if(!r)return!1;if(r){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)o(c,this,t);else{var l=c.length,u=v(c,l);for(n=0;n<l;++n)o(u[n],this,t)}return!0},c.prototype.addListener=function(e,t){return d(this,e,t,!1)},c.prototype.on=c.prototype.addListener,c.prototype.prependListener=function(e,t){return d(this,e,t,!0)},c.prototype.once=function(e,t){return u(t),this.on(e,f(this,e,t)),this},c.prototype.prependOnceListener=function(e,t){return u(t),this.prependListener(e,f(this,e,t)),this},c.prototype.removeListener=function(e,t){var n,r,i,s,o;if(u(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,s=n.length-1;s>=0;s--)if(n[s]===t||n[s].listener===t){o=n[s].listener,i=s;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,o||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,s=Object.keys(n);for(r=0;r<s.length;++r)"removeListener"!==(i=s[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},c.prototype.listeners=function(e){return m(this,e,!0)},c.prototype.rawListeners=function(e){return m(this,e,!1)},c.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},c.prototype.listenerCount=g,c.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},51105:function(e,t,n){var r=n(37225).Buffer,i=n(53956);e.exports=function(e,t,n,s){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var o=n/8,a=r.alloc(o),c=r.alloc(s||0),l=r.alloc(0);o>0||s>0;){var u=new i;u.update(l),u.update(e),t&&u.update(t),l=u.digest();var p=0;if(o>0){var d=a.length-o;p=Math.min(o,l.length),l.copy(a,d,0,p),o-=p}if(p<l.length&&s>0){var h=c.length-s,f=Math.min(s,l.length-p);l.copy(c,h,p,p+f),s-=f}}return l.fill(0),{key:a,iv:c}}},18282:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});var r,i=n(90136);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var a,c=(a=[],{activateTrap:function(e){if(a.length>0){var t=a[a.length-1];t!==e&&t.pause()}var n=a.indexOf(e);-1===n||a.splice(n,1),a.push(e)},deactivateTrap:function(e){var t=a.indexOf(e);-1!==t&&a.splice(t,1),a.length>0&&a[a.length-1].unpause()}}),l=function(e){return setTimeout(e,0)},u=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},p=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},d=function(e,t){var n,a=document,d=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),h={containers:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},f=function(e){return h.containers.some((function(t){return t.contains(e)}))},m=function(e){var t=d[e];if(!t)return null;var n=t;if("string"==typeof t&&!(n=a.querySelector(t)))throw new Error("`".concat(e,"` refers to no known node"));if("function"==typeof t&&!(n=t()))throw new Error("`".concat(e,"` did not return a node"));return n},g=function(){var e;if(null!==m("initialFocus"))e=m("initialFocus");else if(f(a.activeElement))e=a.activeElement;else{var t=h.tabbableGroups[0];e=t&&t.firstTabbableNode||m("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},v=function(){if(h.tabbableGroups=h.containers.map((function(e){var t=(0,i.ht)(e);if(t.length>0)return{container:e,firstTabbableNode:t[0],lastTabbableNode:t[t.length-1]}})).filter((function(e){return!!e})),h.tabbableGroups.length<=0&&!m("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},b=function e(t){t!==a.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!d.preventScroll}),h.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(g()))},y=function(e){f(e.target)||(p(d.clickOutsideDeactivates,e)?n.deactivate({returnFocus:d.returnFocusOnDeactivate&&!(0,i.EB)(e.target)}):p(d.allowOutsideClick,e)||e.preventDefault())},k=function(e){var t=f(e.target);t||e.target instanceof Document?t&&(h.mostRecentlyFocusedNode=e.target):(e.stopImmediatePropagation(),b(h.mostRecentlyFocusedNode||g()))},w=function(e){if(!1!==d.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){v();var t=null;if(h.tabbableGroups.length>0)if(u(h.tabbableGroups,(function(t){return t.container.contains(e.target)}))<0)t=e.shiftKey?h.tabbableGroups[h.tabbableGroups.length-1].lastTabbableNode:h.tabbableGroups[0].firstTabbableNode;else if(e.shiftKey){var n=u(h.tabbableGroups,(function(t){var n=t.firstTabbableNode;return e.target===n}));if(n>=0){var r=0===n?h.tabbableGroups.length-1:n-1;t=h.tabbableGroups[r].lastTabbableNode}}else{var i=u(h.tabbableGroups,(function(t){var n=t.lastTabbableNode;return e.target===n}));if(i>=0){var s=i===h.tabbableGroups.length-1?0:i+1;t=h.tabbableGroups[s].firstTabbableNode}}else t=m("fallbackFocus");t&&(e.preventDefault(),b(t))}(e)},_=function(e){p(d.clickOutsideDeactivates,e)||f(e.target)||p(d.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},E=function(){if(h.active)return c.activateTrap(n),r=d.delayInitialFocus?l((function(){b(g())})):b(g()),a.addEventListener("focusin",k,!0),a.addEventListener("mousedown",y,{capture:!0,passive:!1}),a.addEventListener("touchstart",y,{capture:!0,passive:!1}),a.addEventListener("click",_,{capture:!0,passive:!1}),a.addEventListener("keydown",w,{capture:!0,passive:!1}),n},C=function(){if(h.active)return a.removeEventListener("focusin",k,!0),a.removeEventListener("mousedown",y,!0),a.removeEventListener("touchstart",y,!0),a.removeEventListener("click",_,!0),a.removeEventListener("keydown",w,!0),n};return(n={activate:function(e){if(h.active)return this;v(),h.active=!0,h.paused=!1,h.nodeFocusedBeforeActivation=a.activeElement;var t=e&&e.onActivate?e.onActivate:d.onActivate;return t&&t(),E(),this},deactivate:function(e){if(!h.active)return this;clearTimeout(r),C(),h.active=!1,h.paused=!1,c.deactivateTrap(n);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:d.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:d.returnFocusOnDeactivate)&&l((function(){var e;b((e=h.nodeFocusedBeforeActivation,m("setReturnFocus")||e))})),this},pause:function(){return h.paused||!h.active||(h.paused=!0,C()),this},unpause:function(){return h.paused&&h.active?(h.paused=!1,v(),E(),this):this},updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return h.containers=t.map((function(e){return"string"==typeof e?a.querySelector(e):e})),h.active&&v(),this}}).updateContainerElements(e),n}},49478:function(e){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,i){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var s=e.length;if(s===+s)for(var o=0;o<s;o++)r.call(i,e[o],o,e);else for(var a in e)t.call(e,a)&&r.call(i,e[a],a,e)}},44033:function(e){"use strict";var t="Function.prototype.bind called on incompatible ",n=Array.prototype.slice,r=Object.prototype.toString,i="[object Function]";e.exports=function(e){var s=this;if("function"!=typeof s||r.call(s)!==i)throw new TypeError(t+s);for(var o,a=n.call(arguments,1),c=function(){if(this instanceof o){var t=s.apply(this,a.concat(n.call(arguments)));return Object(t)===t?t:this}return s.apply(e,a.concat(n.call(arguments)))},l=Math.max(0,s.length-a.length),u=[],p=0;p<l;p++)u.push("$"+p);if(o=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(c),s.prototype){var d=function(){};d.prototype=s.prototype,o.prototype=new d,d.prototype=null}return o}},75433:function(e,t,n){"use strict";var r=n(44033);e.exports=Function.prototype.bind||r},52221:function(e){e.exports=function e(n){if(t(n))return n;if(t(n.ownerDocument))return n.ownerDocument;if(t(n.document))return n.document;if(n.parentNode)return e(n.parentNode);if(n.commonAncestorContainer)return e(n.commonAncestorContainer);if(n.startContainer)return e(n.startContainer);if(n.anchorNode)return e(n.anchorNode)};function t(e){return e&&9===e.nodeType}},25165:function(e,t,n){"use strict";var r,i=SyntaxError,s=Function,o=TypeError,a=function(e){try{return s('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=n(45992)(),d=Object.getPrototypeOf||function(e){return e.__proto__},h={},f="undefined"==typeof Uint8Array?r:d(Uint8Array),m={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p?d([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":h,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p?d(d([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p?d((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p?d((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p?d(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":u,"%TypedArray%":f,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet},g=function e(t){var n;if("%AsyncFunction%"===t)n=a("async function () {}");else if("%GeneratorFunction%"===t)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=a("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&(n=d(i.prototype))}return m[t]=n,n},v={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},b=n(75433),y=n(99569),k=b.call(Function.call,Array.prototype.concat),w=b.call(Function.apply,Array.prototype.splice),_=b.call(Function.call,String.prototype.replace),E=b.call(Function.call,String.prototype.slice),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,S=/\\(\\)?/g,j=function(e){var t=E(e,0,1),n=E(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return _(e,C,(function(e,t,n,i){r[r.length]=n?_(i,S,"$1"):t||e})),r},M=function(e,t){var n,r=e;if(y(v,r)&&(r="%"+(n=v[r])[0]+"%"),y(m,r)){var s=m[r];if(s===h&&(s=g(r)),void 0===s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:s}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');var n=j(e),r=n.length>0?n[0]:"",s=M("%"+r+"%",t),a=s.name,l=s.value,u=!1,p=s.alias;p&&(r=p[0],w(n,k([0,1],p)));for(var d=1,h=!0;d<n.length;d+=1){var f=n[d],g=E(f,0,1),v=E(f,-1);if(('"'===g||"'"===g||"`"===g||'"'===v||"'"===v||"`"===v)&&g!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==f&&h||(u=!0),y(m,a="%"+(r+="."+f)+"%"))l=m[a];else if(null!=l){if(!(f in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&d+1>=n.length){var b=c(l,f);l=(h=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:l[f]}else h=y(l,f),l=l[f];h&&!u&&(m[a]=l)}}return l}},45992:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,i=n(4461);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},4461:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},77828:function(e,t,n){"use strict";var r=n(4461);e.exports=function(){return r()&&!!Symbol.toStringTag}},99569:function(e,t,n){"use strict";var r=n(75433);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},39302:function(e,t,n){"use strict";var r=n(37225).Buffer,i=n(7130).Transform;function s(e){i.call(this),this._block=r.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(59503)(s,i),s.prototype._transform=function(e,t,n){var r=null;try{this.update(e,t)}catch(e){r=e}n(r)},s.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},s.prototype.update=function(e,t){if(function(e,t){if(!r.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");r.isBuffer(e)||(e=r.from(e,t));for(var n=this._block,i=0;this._blockOffset+e.length-i>=this._blockSize;){for(var s=this._blockOffset;s<this._blockSize;)n[s++]=e[i++];this._update(),this._blockOffset=0}for(;i<e.length;)n[this._blockOffset++]=e[i++];for(var o=0,a=8*e.length;a>0;++o)this._length[o]+=a,(a=this._length[o]/4294967296|0)>0&&(this._length[o]-=4294967296*a);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return t},s.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=s},91138:function(e,t,n){var r=t;r.utils=n(53566),r.common=n(95949),r.sha=n(75894),r.ripemd=n(94877),r.hmac=n(9942),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},95949:function(e,t,n){"use strict";var r=n(53566),i=n(48282);function s(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=s,s.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},s.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},s.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var s=8;s<this.padLength;s++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,s=8;s<this.padLength;s++)r[i++]=0;return r}},9942:function(e,t,n){"use strict";var r=n(53566),i=n(48282);function s(e,t,n){if(!(this instanceof s))return new s(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=s,s.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},s.prototype.update=function(e,t){return this.inner.update(e,t),this},s.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},94877:function(e,t,n){"use strict";var r=n(53566),i=n(95949),s=r.rotl32,o=r.sum32,a=r.sum32_3,c=r.sum32_4,l=i.BlockHash;function u(){if(!(this instanceof u))return new u;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function p(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function h(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(u,l),t.ripemd160=u,u.blockSize=512,u.outSize=160,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],l=this.h[3],u=this.h[4],b=n,y=r,k=i,w=l,_=u,E=0;E<80;E++){var C=o(s(c(n,p(E,r,i,l),e[f[E]+t],d(E)),g[E]),u);n=u,u=l,l=s(i,10),i=r,r=C,C=o(s(c(b,p(79-E,y,k,w),e[m[E]+t],h(E)),v[E]),_),b=_,_=w,w=s(k,10),k=y,y=C}C=a(this.h[1],i,w),this.h[1]=a(this.h[2],l,_),this.h[2]=a(this.h[3],u,b),this.h[3]=a(this.h[4],n,y),this.h[4]=a(this.h[0],r,k),this.h[0]=C},u.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var f=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},75894:function(e,t,n){"use strict";t.sha1=n(69016),t.sha224=n(92055),t.sha256=n(23347),t.sha384=n(57544),t.sha512=n(31766)},69016:function(e,t,n){"use strict";var r=n(53566),i=n(95949),s=n(47574),o=r.rotl32,a=r.sum32,c=r.sum32_5,l=s.ft_1,u=i.BlockHash,p=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,u),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=o(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],s=this.h[1],u=this.h[2],d=this.h[3],h=this.h[4];for(r=0;r<n.length;r++){var f=~~(r/20),m=c(o(i,5),l(f,s,u,d),h,n[r],p[f]);h=d,d=u,u=o(s,30),s=i,i=m}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],u),this.h[3]=a(this.h[3],d),this.h[4]=a(this.h[4],h)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},92055:function(e,t,n){"use strict";var r=n(53566),i=n(23347);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(s,i),e.exports=s,s.blockSize=512,s.outSize=224,s.hmacStrength=192,s.padLength=64,s.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},23347:function(e,t,n){"use strict";var r=n(53566),i=n(95949),s=n(47574),o=n(48282),a=r.sum32,c=r.sum32_4,l=r.sum32_5,u=s.ch32,p=s.maj32,d=s.s0_256,h=s.s1_256,f=s.g0_256,m=s.g1_256,g=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=c(m(n[r-2]),n[r-7],f(n[r-15]),n[r-16]);var i=this.h[0],s=this.h[1],g=this.h[2],v=this.h[3],b=this.h[4],y=this.h[5],k=this.h[6],w=this.h[7];for(o(this.k.length===n.length),r=0;r<n.length;r++){var _=l(w,h(b),u(b,y,k),this.k[r],n[r]),E=a(d(i),p(i,s,g));w=k,k=y,y=b,b=a(v,_),v=g,g=s,s=i,i=a(_,E)}this.h[0]=a(this.h[0],i),this.h[1]=a(this.h[1],s),this.h[2]=a(this.h[2],g),this.h[3]=a(this.h[3],v),this.h[4]=a(this.h[4],b),this.h[5]=a(this.h[5],y),this.h[6]=a(this.h[6],k),this.h[7]=a(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},57544:function(e,t,n){"use strict";var r=n(53566),i=n(31766);function s(){if(!(this instanceof s))return new s;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(s,i),e.exports=s,s.blockSize=1024,s.outSize=384,s.hmacStrength=192,s.padLength=128,s.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},31766:function(e,t,n){"use strict";var r=n(53566),i=n(95949),s=n(48282),o=r.rotr64_hi,a=r.rotr64_lo,c=r.shr64_hi,l=r.shr64_lo,u=r.sum64,p=r.sum64_hi,d=r.sum64_lo,h=r.sum64_4_hi,f=r.sum64_4_lo,m=r.sum64_5_hi,g=r.sum64_5_lo,v=i.BlockHash,b=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function k(e,t,n,r,i){var s=e&n^~e&i;return s<0&&(s+=4294967296),s}function w(e,t,n,r,i,s){var o=t&r^~t&s;return o<0&&(o+=4294967296),o}function _(e,t,n,r,i){var s=e&n^e&i^n&i;return s<0&&(s+=4294967296),s}function E(e,t,n,r,i,s){var o=t&r^t&s^r&s;return o<0&&(o+=4294967296),o}function C(e,t){var n=o(e,t,28)^o(t,e,2)^o(t,e,7);return n<0&&(n+=4294967296),n}function S(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function j(e,t){var n=o(e,t,14)^o(e,t,18)^o(t,e,9);return n<0&&(n+=4294967296),n}function M(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function x(e,t){var n=o(e,t,1)^o(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function N(e,t){var n=a(e,t,1)^a(e,t,8)^l(e,t,7);return n<0&&(n+=4294967296),n}function A(e,t){var n=o(e,t,19)^o(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}function O(e,t){var n=a(e,t,19)^a(t,e,29)^l(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(y,v),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=A(n[r-4],n[r-3]),s=O(n[r-4],n[r-3]),o=n[r-14],a=n[r-13],c=x(n[r-30],n[r-29]),l=N(n[r-30],n[r-29]),u=n[r-32],p=n[r-31];n[r]=h(i,s,o,a,c,l,u,p),n[r+1]=f(i,s,o,a,c,l,u,p)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],c=this.h[4],l=this.h[5],h=this.h[6],f=this.h[7],v=this.h[8],b=this.h[9],y=this.h[10],x=this.h[11],N=this.h[12],A=this.h[13],O=this.h[14],T=this.h[15];s(this.k.length===n.length);for(var P=0;P<n.length;P+=2){var I=O,R=T,U=j(v,b),Z=M(v,b),D=k(v,b,y,x,N),L=w(v,b,y,x,N,A),z=this.k[P],B=this.k[P+1],F=n[P],V=n[P+1],q=m(I,R,U,Z,D,L,z,B,F,V),H=g(I,R,U,Z,D,L,z,B,F,V);I=C(r,i),R=S(r,i),U=_(r,i,o,a,c),Z=E(r,i,o,a,c,l);var W=p(I,R,U,Z),$=d(I,R,U,Z);O=N,T=A,N=y,A=x,y=v,x=b,v=p(h,f,q,H),b=d(f,f,q,H),h=c,f=l,c=o,l=a,o=r,a=i,r=p(q,H,W,$),i=d(q,H,W,$)}u(this.h,0,r,i),u(this.h,2,o,a),u(this.h,4,c,l),u(this.h,6,h,f),u(this.h,8,v,b),u(this.h,10,y,x),u(this.h,12,N,A),u(this.h,14,O,T)},y.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},47574:function(e,t,n){"use strict";var r=n(53566).rotr32;function i(e,t,n){return e&t^~e&n}function s(e,t,n){return e&t^e&n^t&n}function o(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?o(t,n,r):2===e?s(t,n,r):void 0},t.ch32=i,t.maj32=s,t.p32=o,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},53566:function(e,t,n){"use strict";var r=n(48282),i=n(59503);function s(e,t){return 55296==(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1)))}function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function a(e){return 1===e.length?"0"+e:e}function c(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var o=e.charCodeAt(i);o<128?n[r++]=o:o<2048?(n[r++]=o>>6|192,n[r++]=63&o|128):s(e,i)?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=a(e[n].toString(16));return t},t.htonl=o,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=o(i)),n+=c(i.toString(16))}return n},t.zero2=a,t.zero8=c,t.join32=function(e,t,n,i){var s=n-t;r(s%4==0);for(var o=new Array(s/4),a=0,c=t;a<o.length;a++,c+=4){var l;l="big"===i?e[c]<<24|e[c+1]<<16|e[c+2]<<8|e[c+3]:e[c+3]<<24|e[c+2]<<16|e[c+1]<<8|e[c],o[a]=l>>>0}return o},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var s=e[r];"big"===t?(n[i]=s>>>24,n[i+1]=s>>>16&255,n[i+2]=s>>>8&255,n[i+3]=255&s):(n[i+3]=s>>>24,n[i+2]=s>>>16&255,n[i+1]=s>>>8&255,n[i]=255&s)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],s=r+e[t+1]>>>0,o=(s<r?1:0)+n+i;e[t]=o>>>0,e[t+1]=s},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,s,o,a){var c=0,l=t;return c+=(l=l+r>>>0)<t?1:0,c+=(l=l+s>>>0)<s?1:0,e+n+i+o+(c+=(l=l+a>>>0)<a?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,s,o,a){return t+r+s+a>>>0},t.sum64_5_hi=function(e,t,n,r,i,s,o,a,c,l){var u=0,p=t;return u+=(p=p+r>>>0)<t?1:0,u+=(p=p+s>>>0)<s?1:0,u+=(p=p+a>>>0)<a?1:0,e+n+i+o+c+(u+=(p=p+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,s,o,a,c,l){return t+r+s+a+l>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},33451:function(e,t,n){"use strict";n.d(t,{lX:function(){return k},q_:function(){return j},PP:function(){return x},ob:function(){return d},Hp:function(){return h},Ep:function(){return p}});var r=n(40988),i=n(59149),s=n(21976),o=n(34770);function a(e){return"/"===e.charAt(0)?e:"/"+e}function c(e){return"/"===e.charAt(0)?e.substr(1):e}function l(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function u(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function d(e,t,n,s){var o;"string"==typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var s=t.indexOf("?");return-1!==s&&(n=t.substr(s),t=t.substr(0,s)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e),o.state=t):(void 0===(o=(0,r.Z)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(o.key=n),s?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=(0,i.Z)(o.pathname,s.pathname)):o.pathname=s.pathname:o.pathname||(o.pathname="/"),o}function h(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&(0,s.Z)(e.state,t.state)}function f(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var s="function"==typeof e?e(t,n):e;"string"==typeof s?"function"==typeof r?r(s,i):i(!0):i(!1!==s)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach((function(e){return e.apply(void 0,n)}))}}}var m=!("undefined"==typeof window||!window.document||!window.document.createElement);function g(e,t){t(window.confirm(e))}var v="popstate",b="hashchange";function y(){try{return window.history.state||{}}catch(e){return{}}}function k(e){void 0===e&&(e={}),m||(0,o.Z)(!1);var t,n=window.history,i=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,s=!(-1===window.navigator.userAgent.indexOf("Trident")),c=e,h=c.forceRefresh,k=void 0!==h&&h,w=c.getUserConfirmation,_=void 0===w?g:w,E=c.keyLength,C=void 0===E?6:E,S=e.basename?u(a(e.basename)):"";function j(e){var t=e||{},n=t.key,r=t.state,i=window.location,s=i.pathname+i.search+i.hash;return S&&(s=l(s,S)),d(s,r,n)}function M(){return Math.random().toString(36).substr(2,C)}var x=f();function N(e){(0,r.Z)(B,e),B.length=n.length,x.notifyListeners(B.location,B.action)}function A(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||P(j(e.state))}function O(){P(j(y()))}var T=!1;function P(e){if(T)T=!1,N();else{x.confirmTransitionTo(e,"POP",_,(function(t){t?N({action:"POP",location:e}):function(e){var t=B.location,n=R.indexOf(t.key);-1===n&&(n=0);var r=R.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(T=!0,Z(i))}(e)}))}}var I=j(y()),R=[I.key];function U(e){return S+p(e)}function Z(e){n.go(e)}var D=0;function L(e){1===(D+=e)&&1===e?(window.addEventListener(v,A),s&&window.addEventListener(b,O)):0===D&&(window.removeEventListener(v,A),s&&window.removeEventListener(b,O))}var z=!1;var B={length:n.length,action:"POP",location:I,createHref:U,push:function(e,t){var r="PUSH",s=d(e,t,M(),B.location);x.confirmTransitionTo(s,r,_,(function(e){if(e){var t=U(s),o=s.key,a=s.state;if(i)if(n.pushState({key:o,state:a},null,t),k)window.location.href=t;else{var c=R.indexOf(B.location.key),l=R.slice(0,c+1);l.push(s.key),R=l,N({action:r,location:s})}else window.location.href=t}}))},replace:function(e,t){var r="REPLACE",s=d(e,t,M(),B.location);x.confirmTransitionTo(s,r,_,(function(e){if(e){var t=U(s),o=s.key,a=s.state;if(i)if(n.replaceState({key:o,state:a},null,t),k)window.location.replace(t);else{var c=R.indexOf(B.location.key);-1!==c&&(R[c]=s.key),N({action:r,location:s})}else window.location.replace(t)}}))},go:Z,goBack:function(){Z(-1)},goForward:function(){Z(1)},block:function(e){void 0===e&&(e=!1);var t=x.setPrompt(e);return z||(L(1),z=!0),function(){return z&&(z=!1,L(-1)),t()}},listen:function(e){var t=x.appendListener(e);return L(1),function(){L(-1),t()}}};return B}var w="hashchange",_={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+c(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:c,decodePath:a},slash:{encodePath:a,decodePath:a}};function E(e){var t=e.indexOf("#");return-1===t?e:e.slice(0,t)}function C(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)}function S(e){window.location.replace(E(window.location.href)+"#"+e)}function j(e){void 0===e&&(e={}),m||(0,o.Z)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),i=n.getUserConfirmation,s=void 0===i?g:i,c=n.hashType,h=void 0===c?"slash":c,v=e.basename?u(a(e.basename)):"",b=_[h],y=b.encodePath,k=b.decodePath;function j(){var e=k(C());return v&&(e=l(e,v)),d(e)}var M=f();function x(e){(0,r.Z)(z,e),z.length=t.length,M.notifyListeners(z.location,z.action)}var N=!1,A=null;function O(){var e,t,n=C(),r=y(n);if(n!==r)S(r);else{var i=j(),o=z.location;if(!N&&(t=i,(e=o).pathname===t.pathname&&e.search===t.search&&e.hash===t.hash))return;if(A===p(i))return;A=null,function(e){if(N)N=!1,x();else{var t="POP";M.confirmTransitionTo(e,t,s,(function(n){n?x({action:t,location:e}):function(e){var t=z.location,n=R.lastIndexOf(p(t));-1===n&&(n=0);var r=R.lastIndexOf(p(e));-1===r&&(r=0);var i=n-r;i&&(N=!0,U(i))}(e)}))}}(i)}}var T=C(),P=y(T);T!==P&&S(P);var I=j(),R=[p(I)];function U(e){t.go(e)}var Z=0;function D(e){1===(Z+=e)&&1===e?window.addEventListener(w,O):0===Z&&window.removeEventListener(w,O)}var L=!1;var z={length:t.length,action:"POP",location:I,createHref:function(e){var t=document.querySelector("base"),n="";return t&&t.getAttribute("href")&&(n=E(window.location.href)),n+"#"+y(v+p(e))},push:function(e,t){var n="PUSH",r=d(e,void 0,void 0,z.location);M.confirmTransitionTo(r,n,s,(function(e){if(e){var t=p(r),i=y(v+t);if(C()!==i){A=t,function(e){window.location.hash=e}(i);var s=R.lastIndexOf(p(z.location)),o=R.slice(0,s+1);o.push(t),R=o,x({action:n,location:r})}else x()}}))},replace:function(e,t){var n="REPLACE",r=d(e,void 0,void 0,z.location);M.confirmTransitionTo(r,n,s,(function(e){if(e){var t=p(r),i=y(v+t);C()!==i&&(A=t,S(i));var s=R.indexOf(p(z.location));-1!==s&&(R[s]=t),x({action:n,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(e){void 0===e&&(e=!1);var t=M.setPrompt(e);return L||(D(1),L=!0),function(){return L&&(L=!1,D(-1)),t()}},listen:function(e){var t=M.appendListener(e);return D(1),function(){D(-1),t()}}};return z}function M(e,t,n){return Math.min(Math.max(e,t),n)}function x(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,i=t.initialEntries,s=void 0===i?["/"]:i,o=t.initialIndex,a=void 0===o?0:o,c=t.keyLength,l=void 0===c?6:c,u=f();function h(e){(0,r.Z)(k,e),k.length=k.entries.length,u.notifyListeners(k.location,k.action)}function m(){return Math.random().toString(36).substr(2,l)}var g=M(a,0,s.length-1),v=s.map((function(e){return d(e,void 0,"string"==typeof e?m():e.key||m())})),b=p;function y(e){var t=M(k.index+e,0,k.entries.length-1),r=k.entries[t];u.confirmTransitionTo(r,"POP",n,(function(e){e?h({action:"POP",location:r,index:t}):h()}))}var k={length:v.length,action:"POP",location:v[g],index:g,entries:v,createHref:b,push:function(e,t){var r="PUSH",i=d(e,t,m(),k.location);u.confirmTransitionTo(i,r,n,(function(e){if(e){var t=k.index+1,n=k.entries.slice(0);n.length>t?n.splice(t,n.length-t,i):n.push(i),h({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=d(e,t,m(),k.location);u.confirmTransitionTo(i,r,n,(function(e){e&&(k.entries[k.index]=i,h({action:r,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=k.index+e;return t>=0&&t<k.entries.length},block:function(e){return void 0===e&&(e=!1),u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return k}},53674:function(e,t,n){"use strict";var r=n(91138),i=n(90458),s=n(48282);function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),n=i.toArray(e.nonce,e.nonceEnc||"hex"),r=i.toArray(e.pers,e.persEnc||"hex");s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}e.exports=o,o.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new r.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,n,r){"string"!=typeof t&&(r=n,n=t,t=null),e=i.toArray(e,t),n=i.toArray(n,r),s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},o.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(r=n,n=t,t=null),n&&(n=i.toArray(n,r||"hex"),this._update(n));for(var s=[];s.length<e;)this.V=this._hmac().update(this.V).digest(),s=s.concat(this.V);var o=s.slice(0,e);return this._update(n),this._reseed++,i.encode(o,t)}},13266:function(e,t,n){"use strict";var r=n(80364),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},s={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(e){return r.isMemo(e)?o:a[e.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=o;var l=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,f=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(f){var i=h(n);i&&i!==f&&e(t,i,r)}var o=u(n);p&&(o=o.concat(p(n)));for(var a=c(t),m=c(n),g=0;g<o.length;++g){var v=o[g];if(!(s[v]||r&&r[v]||m&&m[v]||a&&a[v])){var b=d(n,v);try{l(t,v,b)}catch(e){}}}}return t}},88617:function(e,t,n){"use strict";var r=n(59128),i=n(98086),s=n(90922),o=n.n(s),a=n(94481),c=n(88090),l=n(75565),u=n.n(l),p=n(69016),d=n.n(p),h=n(2571),f=n(702),m=n(92846),g=o()("i18n-calypso"),v="number_format_decimals",b="number_format_thousands_sep",y="messages",k=[function(e){return e}],w={};function _(){M.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function E(e){return Array.prototype.slice.call(e)}function C(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&_("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",E(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&_("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",E(e));for(var n={},r=0;r<e.length;r++)"object"==typeof e[r]&&(n=e[r]);if("string"==typeof t?n.original=t:"object"==typeof n.original&&(n.plural=n.original.plural,n.count=n.original.count,n.original=n.original.single),"string"==typeof e[1]&&(n.plural=e[1]),void 0===n.original)throw new Error("Translate called without a `string` value as first argument.");return n}function S(e,t){return e.dcnpgettext(y,t.context,t.original,t.plural,t.count)}function j(e,t){for(var n=k.length-1;n>=0;n--){var r=k[n](Object.assign({},t)),i=r.context?r.context+""+r.original:r.original;if(e.state.locale[i])return S(e.state.tannin,r)}return null}function M(){if(!(this instanceof M))return new M;this.defaultLocaleSlug="en",this.defaultPluralForms=function(e){return 1===e?0:1},this.state={numberFormatSettings:{},tannin:void 0,locale:void 0,localeSlug:void 0,textDirection:void 0,translations:u()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new h.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}M.throwErrors=!1,M.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},M.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},M.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},M.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="number"==typeof t?t:t.decimals||0,r=t.decPoint||this.state.numberFormatSettings.decimal_point||".",i=t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",";return(0,m.Z)(e,n,r,i)},M.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},M.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var s=e[""]["key-hash"],o=function(e,t){var n=!1===t?"":String(t);if(void 0!==w[n+e])return w[n+e];var r=d()().update(e).digest("hex");return w[n+e]=t?r.substr(0,t):r},a=function(e){return function(t){return t.context?(t.original=o(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=o(t.original,e),t}};if("sha1"===s.substr(0,4))if(4===s.length)k.push(a(!1));else{var l=s.substr(5).indexOf("-");if(l<0){var u=Number(s.substr(5));k.push(a(u))}else for(var p=Number(s.substr(5,l)),h=Number(s.substr(6+l)),f=p;f<=h;f++)k.push(a(f))}}if(e&&e[""].localeSlug)if(e[""].localeSlug===this.state.localeSlug){if(e===this.state.locale)return;Object.assign(this.state.locale,e)}else this.state.locale=Object.assign({},e);else this.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"])||void 0===t?void 0:t[0])||(null===(n=this.state.locale[""])||void 0===n||null===(r=n.momentjs_locale)||void 0===r?void 0:r.textDirection),this.state.tannin=new c.Z((0,i.Z)({},y,this.state.locale)),this.state.numberFormatSettings.decimal_point=S(this.state.tannin,C([v])),this.state.numberFormatSettings.thousands_sep=S(this.state.tannin,C([b])),this.state.numberFormatSettings.decimal_point===v&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===b&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},M.prototype.getLocale=function(){return this.state.locale},M.prototype.getLocaleSlug=function(){return this.state.localeSlug},M.prototype.isRtl=function(){return"rtl"===this.state.textDirection},M.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},M.prototype.hasTranslation=function(){return!!j(this,C(arguments))},M.prototype.translate=function(){var e=C(arguments),t=j(this,e);if(t||(t=S(this.state.tannin,e)),e.args){var n=Array.isArray(e.args)?e.args.slice(0):[e.args];n.unshift(t);try{t=f.Z.apply(void 0,(0,r.Z)(n))}catch(e){if(!window||!window.console)return;var i=this.throwErrors?"error":"warn";"string"!=typeof e?window.console[i](e):window.console[i]("i18n sprintf error:",n)}}return e.components&&(t=(0,a.Z)({mixedString:t,components:e.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(n){t=n(t,e)})),t},M.prototype.reRenderTranslations=function(){g("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},M.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},M.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)},t.Z=M},63807:function(e,t,n){"use strict";n.d(t,{Y4:function(){return c}});var r=n(88617),i=n(42928),s=n(80975),o=n(24531),a=new r.Z,c=a.numberFormat.bind(a),l=(a.translate.bind(a),a.configure.bind(a),a.setLocale.bind(a),a.getLocale.bind(a),a.getLocaleSlug.bind(a),a.addTranslations.bind(a),a.reRenderTranslations.bind(a),a.registerComponentUpdateHook.bind(a),a.registerTranslateHook.bind(a),a.state,a.stateObserver,a.on.bind(a),a.off.bind(a),a.emit.bind(a),(0,i.Z)(a),(0,s.Z)(a),(0,o.Z)(a));l.useRtl,l.withRtl},42928:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(59591),i=n(71687),s=n(93772),o=n(55200),a=n(82104),c=n(9057),l=n(98086),u=n(99196),p=n.n(u);function d(e){var t={numberFormat:e.numberFormat.bind(e),translate:e.translate.bind(e)};return function(n){var u,d,h=n.displayName||n.name||"";return d=u=function(u){(0,a.Z)(h,u);var d=(0,c.Z)(h);function h(){var e;(0,i.Z)(this,h);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e=d.call.apply(d,[this].concat(n)),(0,l.Z)((0,o.Z)(e),"boundForceUpdate",e.forceUpdate.bind((0,o.Z)(e))),e}return(0,s.Z)(h,[{key:"componentDidMount",value:function(){e.on("change",this.boundForceUpdate)}},{key:"componentWillUnmount",value:function(){e.off("change",this.boundForceUpdate)}},{key:"render",value:function(){var i=(0,r.Z)({locale:e.getLocaleSlug()},this.props,{},t);return p().createElement(n,i)}}]),h}(p().Component),(0,l.Z)(u,"displayName","Localized("+h+")"),d}}},92846:function(e,t,n){"use strict";function r(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+e)?+e:0,s=isFinite(+t)?Math.abs(t):0,o=void 0===r?",":r,a=void 0===n?".":n,c="";return c=(s?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(i,s):""+Math.round(i)).split("."),c[0].length>3&&(c[0]=c[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,o)),(c[1]||"").length<s&&(c[1]=c[1]||"",c[1]+=new Array(s-c[1].length+1).join("0")),c.join(a)}n.d(t,{Z:function(){return r}})},24531:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var r=n(50735),i=n(99196),s=n.n(i),o=n(20036),a=n(94333);function c(e){var t={getCurrentValue:function(){return e.isRtl()},subscribe:function(t){return e.on("change",t),function(){return e.off("change",t)}}};function n(){return(0,o.useSubscription)(t)}var c=(0,a.createHigherOrderComponent)((function(e){return(0,i.forwardRef)((function(t,i){var o=n();return s().createElement(e,(0,r.Z)({},t,{isRtl:o,ref:i}))}))}),"WithRTL");return{useRtl:n,withRtl:c}}},80975:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(50572),i=n(99196),s=n.n(i);function o(e){function t(){var t=e.translate.bind(e);return Object.defineProperty(t,"localeSlug",{get:e.getLocaleSlug.bind(e)}),t}return function(){var n=s().useState(t),i=(0,r.Z)(n,2),o=i[0],a=i[1];return s().useEffect((function(){var n=function(){return a(t)};return e.on("change",n),function(){return e.off("change",n)}}),[]),o}}},23644:function(e,t){t.read=function(e,t,n,r,i){var s,o,a=8*i-r-1,c=(1<<a)-1,l=c>>1,u=-7,p=n?i-1:0,d=n?-1:1,h=e[t+p];for(p+=d,s=h&(1<<-u)-1,h>>=-u,u+=a;u>0;s=256*s+e[t+p],p+=d,u-=8);for(o=s&(1<<-u)-1,s>>=-u,u+=r;u>0;o=256*o+e[t+p],p+=d,u-=8);if(0===s)s=1-l;else{if(s===c)return o?NaN:1/0*(h?-1:1);o+=Math.pow(2,r),s-=l}return(h?-1:1)*o*Math.pow(2,s-r)},t.write=function(e,t,n,r,i,s){var o,a,c,l=8*s-i-1,u=(1<<l)-1,p=u>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:s-1,f=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=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?(a=0,o=u):o+p>=1?(a=(t*c-1)*Math.pow(2,i),o+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),o=0));i>=8;e[n+h]=255&a,h+=f,a/=256,i-=8);for(o=o<<i|a,l+=i;l>0;e[n+h]=255&o,h+=f,o/=256,l-=8);e[n+h-f]|=128*m}},59503:function(e){"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}}},24546:function(e){"use strict";e.exports=function(e,t,n,r,i,s,o,a){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,s,o,a],u=0;(c=new Error(t.replace(/%s/g,(function(){return l[u++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},98304:function(e,t,n){"use strict";var r=n(77828)(),i=n(16422)("Object.prototype.toString"),s=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},o=function(e){return!!s(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},a=function(){return s(arguments)}();s.isLegacyArguments=o,e.exports=a?s:o},57372:function(e,t,n){"use strict";var r,i=Object.prototype.toString,s=Function.prototype.toString,o=/^\s*(?:function)?\*/,a=n(77828)(),c=Object.getPrototypeOf;e.exports=function(e){if("function"!=typeof e)return!1;if(o.test(s.call(e)))return!0;if(!a)return"[object GeneratorFunction]"===i.call(e);if(!c)return!1;if(void 0===r){var t=function(){if(!a)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&c(t)}return c(e)===r}},46618:function(e){"use strict";e.exports=function(e){return e!=e}},17614:function(e,t,n){"use strict";var r=n(43120),i=n(13185),s=n(46618),o=n(42775),a=n(49582),c=r(o(),Number);i(c,{getPolyfill:o,implementation:s,shim:a}),e.exports=c},42775:function(e,t,n){"use strict";var r=n(46618);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},49582:function(e,t,n){"use strict";var r=n(13185),i=n(42775);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},8639:function(e,t,n){"use strict";var r=n(49478),i=n(87331),s=n(16422),o=s("Object.prototype.toString"),a=n(77828)(),c="undefined"==typeof globalThis?window:globalThis,l=i(),u=s("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},p=s("String.prototype.slice"),d={},h=n(61787),f=Object.getPrototypeOf;a&&h&&f&&r(l,(function(e){var t=new c[e];if(Symbol.toStringTag in t){var n=f(t),r=h(n,Symbol.toStringTag);if(!r){var i=f(n);r=h(i,Symbol.toStringTag)}d[e]=r.get}}));e.exports=function(e){if(!e||"object"!=typeof e)return!1;if(!a||!(Symbol.toStringTag in e)){var t=p(o(e),8,-1);return u(l,t)>-1}return!!h&&function(e){var t=!1;return r(d,(function(n,r){if(!t)try{t=n.call(e)===r}catch(e){}})),t}(e)}},16169:function(e){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},75565:function(e,t,n){var r=n(2571),i=n(59503);function s(e){if(!(this instanceof s))return new s(e);"number"==typeof e&&(e={max:e}),e||(e={}),r.EventEmitter.call(this),this.cache={},this.head=this.tail=null,this.length=0,this.max=e.max||1e3,this.maxAge=e.maxAge||0}e.exports=s,i(s,r.EventEmitter),Object.defineProperty(s.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),s.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},s.prototype.remove=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];return delete this.cache[e],this._unlink(e,t.prev,t.next),t.value}},s.prototype._unlink=function(e,t,n){this.length--,0===this.length?this.head=this.tail=null:this.head===e?(this.head=t,this.cache[this.head].next=null):this.tail===e?(this.tail=n,this.cache[this.tail].prev=null):(this.cache[t].next=n,this.cache[n].prev=t)},s.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},s.prototype.set=function(e,t){var n;if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){if((n=this.cache[e]).value=t,this.maxAge&&(n.modified=Date.now()),e===this.head)return t;this._unlink(e,n.prev,n.next)}else n={value:t,modified:0,next:null,prev:null},this.maxAge&&(n.modified=Date.now()),this.cache[e]=n,this.length===this.max&&this.evict();return this.length++,n.next=null,n.prev=this.head,this.head&&(this.cache[this.head].next=e),this.head=e,this.tail||(this.tail=e),t},s.prototype._checkAge=function(e,t){return!(this.maxAge&&Date.now()-t.modified>this.maxAge)||(this.remove(e),this.emit("evict",{key:e,value:t.value}),!1)},s.prototype.get=function(e){if("string"!=typeof e&&(e=""+e),this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return this.head!==e&&(e===this.tail?(this.tail=t.next,this.cache[this.tail].prev=null):this.cache[t.prev].next=t.next,this.cache[t.next].prev=t.prev,this.cache[this.head].next=e,t.prev=this.head,t.next=null,this.head=e),t.value}},s.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},53956:function(e,t,n){"use strict";var r=n(59503),i=n(39302),s=n(37225).Buffer,o=new Array(16);function a(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<<t|e>>>32-t}function l(e,t,n,r,i,s,o){return c(e+(t&n|~t&r)+i+s|0,o)+t|0}function u(e,t,n,r,i,s,o){return c(e+(t&r|n&~r)+i+s|0,o)+t|0}function p(e,t,n,r,i,s,o){return c(e+(t^n^r)+i+s|0,o)+t|0}function d(e,t,n,r,i,s,o){return c(e+(n^(t|~r))+i+s|0,o)+t|0}r(a,i),a.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,s=this._d;n=l(n,r,i,s,e[0],3614090360,7),s=l(s,n,r,i,e[1],3905402710,12),i=l(i,s,n,r,e[2],606105819,17),r=l(r,i,s,n,e[3],3250441966,22),n=l(n,r,i,s,e[4],4118548399,7),s=l(s,n,r,i,e[5],1200080426,12),i=l(i,s,n,r,e[6],2821735955,17),r=l(r,i,s,n,e[7],4249261313,22),n=l(n,r,i,s,e[8],1770035416,7),s=l(s,n,r,i,e[9],2336552879,12),i=l(i,s,n,r,e[10],4294925233,17),r=l(r,i,s,n,e[11],2304563134,22),n=l(n,r,i,s,e[12],1804603682,7),s=l(s,n,r,i,e[13],4254626195,12),i=l(i,s,n,r,e[14],2792965006,17),n=u(n,r=l(r,i,s,n,e[15],1236535329,22),i,s,e[1],4129170786,5),s=u(s,n,r,i,e[6],3225465664,9),i=u(i,s,n,r,e[11],643717713,14),r=u(r,i,s,n,e[0],3921069994,20),n=u(n,r,i,s,e[5],3593408605,5),s=u(s,n,r,i,e[10],38016083,9),i=u(i,s,n,r,e[15],3634488961,14),r=u(r,i,s,n,e[4],3889429448,20),n=u(n,r,i,s,e[9],568446438,5),s=u(s,n,r,i,e[14],3275163606,9),i=u(i,s,n,r,e[3],4107603335,14),r=u(r,i,s,n,e[8],1163531501,20),n=u(n,r,i,s,e[13],2850285829,5),s=u(s,n,r,i,e[2],4243563512,9),i=u(i,s,n,r,e[7],1735328473,14),n=p(n,r=u(r,i,s,n,e[12],2368359562,20),i,s,e[5],4294588738,4),s=p(s,n,r,i,e[8],2272392833,11),i=p(i,s,n,r,e[11],1839030562,16),r=p(r,i,s,n,e[14],4259657740,23),n=p(n,r,i,s,e[1],2763975236,4),s=p(s,n,r,i,e[4],1272893353,11),i=p(i,s,n,r,e[7],4139469664,16),r=p(r,i,s,n,e[10],3200236656,23),n=p(n,r,i,s,e[13],681279174,4),s=p(s,n,r,i,e[0],3936430074,11),i=p(i,s,n,r,e[3],3572445317,16),r=p(r,i,s,n,e[6],76029189,23),n=p(n,r,i,s,e[9],3654602809,4),s=p(s,n,r,i,e[12],3873151461,11),i=p(i,s,n,r,e[15],530742520,16),n=d(n,r=p(r,i,s,n,e[2],3299628645,23),i,s,e[0],4096336452,6),s=d(s,n,r,i,e[7],1126891415,10),i=d(i,s,n,r,e[14],2878612391,15),r=d(r,i,s,n,e[5],4237533241,21),n=d(n,r,i,s,e[12],1700485571,6),s=d(s,n,r,i,e[3],2399980690,10),i=d(i,s,n,r,e[10],4293915773,15),r=d(r,i,s,n,e[1],2240044497,21),n=d(n,r,i,s,e[8],1873313359,6),s=d(s,n,r,i,e[15],4264355552,10),i=d(i,s,n,r,e[6],2734768916,15),r=d(r,i,s,n,e[13],1309151649,21),n=d(n,r,i,s,e[4],4149444226,6),s=d(s,n,r,i,e[11],3174756917,10),i=d(i,s,n,r,e[2],718787259,15),r=d(r,i,s,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+s|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=s.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=a},16616:function(e,t,n){var r=n(30910),i=n(71876);function s(e){this.rand=e||new i.Rand}e.exports=s,s.create=function(e){return new s(e)},s.prototype._randbelow=function(e){var t=e.bitLength(),n=Math.ceil(t/8);do{var i=new r(this.rand.generate(n))}while(i.cmp(e)>=0);return i},s.prototype._randrange=function(e,t){var n=t.sub(e);return e.add(this._randbelow(n))},s.prototype.test=function(e,t,n){var i=e.bitLength(),s=r.mont(e),o=new r(1).toRed(s);t||(t=Math.max(1,i/48|0));for(var a=e.subn(1),c=0;!a.testn(c);c++);for(var l=e.shrn(c),u=a.toRed(s);t>0;t--){var p=this._randrange(new r(2),a);n&&n(p);var d=p.toRed(s).redPow(l);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var h=1;h<c;h++){if(0===(d=d.redSqr()).cmp(o))return!1;if(0===d.cmp(u))break}if(h===c)return!1}}return!0},s.prototype.getDivisor=function(e,t){var n=e.bitLength(),i=r.mont(e),s=new r(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var c=e.shrn(a),l=o.toRed(i);t>0;t--){var u=this._randrange(new r(2),o),p=e.gcd(u);if(0!==p.cmpn(1))return p;var d=u.toRed(i).redPow(c);if(0!==d.cmp(s)&&0!==d.cmp(l)){for(var h=1;h<a;h++){if(0===(d=d.redSqr()).cmp(s))return d.fromRed().subn(1).gcd(e);if(0===d.cmp(l))break}if(h===a)return(d=d.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},66118:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(96980),o=n(11268),a=n.n(o),c=1073741823,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window||"undefined"!=typeof window?window:{};function u(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var p=i().createContext||function(e,t){var n,i,o,p="__create-react-context-"+((l[o="__global_unique_id__"]=(l[o]||0)+1)+"__"),d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=u(t.props.value),t}(0,s.Z)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[p]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((s=r)===(o=i)?0!==s||1/s==1/o:s!=s&&o!=o)?n=0:(n="function"==typeof t?t(r,i):c,0!==(n|=0)&&this.emitter.set(e.value,n))}var s,o},r.render=function(){return this.props.children},n}(r.Component);d.childContextTypes=((n={})[p]=a().object.isRequired,n);var h=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!=((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}(0,s.Z)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?c:t},r.componentDidMount=function(){this.context[p]&&this.context[p].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?c:e},r.componentWillUnmount=function(){this.context[p]&&this.context[p].off(this.onUpdate)},r.getValue=function(){return this.context[p]?this.context[p].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return h.contextTypes=((i={})[p]=a().object,i),{Provider:d,Consumer:h}};t.Z=p},1920:function(){},3696:function(){},99889:function(){},93474:function(){},33285:function(){},39999:function(){},6383:function(){},78785:function(){},79177:function(){},16341:function(){},91648:function(){},907:function(){},58187:function(){},85731:function(){},48282:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},90458:function(e,t){"use strict";var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!=typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),s=i>>8,o=255&i;s?n.push(s,o):n.push(o)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}},32002:function(e){var t=1e3,n=60*t,r=60*n,i=24*r,s=7*i,o=365.25*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,c){c=c||{};var l=typeof e;if("string"===l&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\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(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*r;case"minutes":case"minute":case"mins":case"min":case"m":return c*n;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===l&&isFinite(e))return c.long?function(e){var s=Math.abs(e);if(s>=i)return a(e,s,i,"day");if(s>=r)return a(e,s,r,"hour");if(s>=n)return a(e,s,n,"minute");if(s>=t)return a(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=i)return Math.round(e/i)+"d";if(s>=r)return Math.round(e/r)+"h";if(s>=n)return Math.round(e/n)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},96121:function(e){e.exports=function(e,t){return e===t||!!(16&e.compareDocumentPosition(t))}},1625:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(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(e){return!1}}()?Object.assign:function(e,s){for(var o,a,c=i(e),l=1;l<arguments.length;l++){for(var u in o=Object(arguments[l]))n.call(o,u)&&(c[u]=o[u]);if(t){a=t(o);for(var p=0;p<a.length;p++)r.call(o,a[p])&&(c[a[p]]=o[a[p]])}}return c}},72335:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},88706:function(e,t,n){"use strict";var r=n(13185),i=n(43120),s=n(72335),o=n(75432),a=n(95894),c=i(o(),Object);r(c,{getPolyfill:o,implementation:s,shim:a}),e.exports=c},75432:function(e,t,n){"use strict";var r=n(72335);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},95894:function(e,t,n){"use strict";var r=n(75432),i=n(13185);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},96128:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,s=Object.prototype.toString,o=n(56133),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),l=a.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},h=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===s.call(e),r=o(e),a=t&&"[object String]"===s.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var f=l&&n;if(a&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var v in e)f&&"prototype"===v||!i.call(e,v)||d.push(String(v));if(c)for(var b=function(e){if("undefined"==typeof window||!h)return p(e);try{return p(e)}catch(e){return!1}}(e),y=0;y<u.length;++y)b&&"constructor"===u[y]||!i.call(e,u[y])||d.push(u[y]);return d}}e.exports=r},98517:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(56133),s=Object.keys,o=s?function(e){return s(e)}:n(96128),a=Object.keys;o.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?a(r.call(e)):a(e)})}else Object.keys=o;return Object.keys||o},e.exports=o},56133:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},82581:function(e,t,n){"use strict";var r=n(8277);t.certificate=n(42103);var i=r.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));t.RSAPrivateKey=i;var s=r.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));t.RSAPublicKey=s;var o=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}));t.PublicKey=o;var a=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),c=r.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())}));t.PrivateKey=c;var l=r.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));t.EncryptedPrivateKey=l;var u=r.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));t.DSAPrivateKey=u,t.DSAparam=r.define("DSAparam",(function(){this.int()}));var p=r.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(d),this.key("publicKey").optional().explicit(1).bitstr())}));t.ECPrivateKey=p;var d=r.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));t.signature=r.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},42103:function(e,t,n){"use strict";var r=n(8277),i=r.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),s=r.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),o=r.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),a=r.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(o),this.key("subjectPublicKey").bitstr())})),c=r.define("RelativeDistinguishedName",(function(){this.setof(s)})),l=r.define("RDNSequence",(function(){this.seqof(c)})),u=r.define("Name",(function(){this.choice({rdnSequence:this.use(l)})})),p=r.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))})),d=r.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),h=r.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(o),this.key("issuer").use(u),this.key("validity").use(p),this.key("subject").use(u),this.key("subjectPublicKeyInfo").use(a),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(d).optional())})),f=r.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(h),this.key("signatureAlgorithm").use(o),this.key("signatureValue").bitstr())}));e.exports=f},89987:function(e,t,n){var r=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,i=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,s=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,o=n(51105),a=n(6123),c=n(37225).Buffer;e.exports=function(e,t){var n,l=e.toString(),u=l.match(r);if(u){var p="aes"+u[1],d=c.from(u[2],"hex"),h=c.from(u[3].replace(/[\r\n]/g,""),"base64"),f=o(t,d.slice(0,8),parseInt(u[1],10)).key,m=[],g=a.createDecipheriv(p,f,d);m.push(g.update(h)),m.push(g.final()),n=c.concat(m)}else{var v=l.match(s);n=c.from(v[2].replace(/[\r\n]/g,""),"base64")}return{tag:l.match(i)[1],data:n}}},87758:function(e,t,n){var r=n(82581),i=n(93611),s=n(89987),o=n(6123),a=n(80231),c=n(37225).Buffer;function l(e){var t;"object"!=typeof e||c.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=c.from(e));var n,l,u=s(e,t),p=u.tag,d=u.data;switch(p){case"CERTIFICATE":l=r.certificate.decode(d,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(l||(l=r.PublicKey.decode(d,"der")),n=l.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPublicKey.decode(l.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return l.subjectPrivateKey=l.subjectPublicKey,{type:"ec",data:l};case"1.2.840.10040.4.1":return l.algorithm.params.pub_key=r.DSAparam.decode(l.subjectPublicKey.data,"der"),{type:"dsa",data:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":d=function(e,t){var n=e.algorithm.decrypt.kde.kdeparams.salt,r=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),s=i[e.algorithm.decrypt.cipher.algo.join(".")],l=e.algorithm.decrypt.cipher.iv,u=e.subjectPrivateKey,p=parseInt(s.split("-")[1],10)/8,d=a.pbkdf2Sync(t,n,r,p,"sha1"),h=o.createDecipheriv(s,d,l),f=[];return f.push(h.update(u)),f.push(h.final()),c.concat(f)}(d=r.EncryptedPrivateKey.decode(d,"der"),t);case"PRIVATE KEY":switch(n=(l=r.PrivateKey.decode(d,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return r.RSAPrivateKey.decode(l.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:l.algorithm.curve,privateKey:r.ECPrivateKey.decode(l.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return l.algorithm.params.priv_key=r.DSAparam.decode(l.subjectPrivateKey,"der"),{type:"dsa",params:l.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return r.RSAPublicKey.decode(d,"der");case"RSA PRIVATE KEY":return r.RSAPrivateKey.decode(d,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:r.DSAPrivateKey.decode(d,"der")};case"EC PRIVATE KEY":return{curve:(d=r.ECPrivateKey.decode(d,"der")).parameters.value,privateKey:d.privateKey};default:throw new Error("unknown key type "+p)}}e.exports=l,l.signature=r.signature},760:function(e,t,n){var r=n(16169);e.exports=h,e.exports.parse=s,e.exports.compile=function(e,t){return a(s(e,t),t)},e.exports.tokensToFunction=a,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function s(e,t){for(var n,r=[],s=0,o=0,a="",u=t&&t.delimiter||"/";null!=(n=i.exec(e));){var p=n[0],d=n[1],h=n.index;if(a+=e.slice(o,h),o=h+p.length,d)a+=d[1];else{var f=e[o],m=n[2],g=n[3],v=n[4],b=n[5],y=n[6],k=n[7];a&&(r.push(a),a="");var w=null!=m&&null!=f&&f!==m,_="+"===y||"*"===y,E="?"===y||"*"===y,C=n[2]||u,S=v||b;r.push({name:g||s++,prefix:m||"",delimiter:C,optional:E,repeat:_,partial:w,asterisk:!!k,pattern:S?l(S):k?".*":"[^"+c(C)+"]+?"})}}return o<e.length&&(a+=e.substr(o)),a&&r.push(a),r}function o(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function a(e,t){for(var n=new Array(e.length),i=0;i<e.length;i++)"object"==typeof e[i]&&(n[i]=new RegExp("^(?:"+e[i].pattern+")$",p(t)));return function(t,i){for(var s="",a=t||{},c=(i||{}).pretty?o:encodeURIComponent,l=0;l<e.length;l++){var u=e[l];if("string"!=typeof u){var p,d=a[u.name];if(null==d){if(u.optional){u.partial&&(s+=u.prefix);continue}throw new TypeError('Expected "'+u.name+'" to be defined')}if(r(d)){if(!u.repeat)throw new TypeError('Expected "'+u.name+'" to not repeat, but received `'+JSON.stringify(d)+"`");if(0===d.length){if(u.optional)continue;throw new TypeError('Expected "'+u.name+'" to not be empty')}for(var h=0;h<d.length;h++){if(p=c(d[h]),!n[l].test(p))throw new TypeError('Expected all "'+u.name+'" to match "'+u.pattern+'", but received `'+JSON.stringify(p)+"`");s+=(0===h?u.prefix:u.delimiter)+p}}else{if(p=u.asterisk?encodeURI(d).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):c(d),!n[l].test(p))throw new TypeError('Expected "'+u.name+'" to match "'+u.pattern+'", but received "'+p+'"');s+=u.prefix+p}}else s+=u}return s}}function c(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function l(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function u(e,t){return e.keys=t,e}function p(e){return e&&e.sensitive?"":"i"}function d(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,s=!1!==n.end,o="",a=0;a<e.length;a++){var l=e[a];if("string"==typeof l)o+=c(l);else{var d=c(l.prefix),h="(?:"+l.pattern+")";t.push(l),l.repeat&&(h+="(?:"+d+h+")*"),o+=h=l.optional?l.partial?d+"("+h+")?":"(?:"+d+"("+h+"))?":d+"("+h+")"}}var f=c(n.delimiter||"/"),m=o.slice(-f.length)===f;return i||(o=(m?o.slice(0,-f.length):o)+"(?:"+f+"(?=$))?"),o+=s?"$":i&&m?"":"(?="+f+"|$)",u(new RegExp("^"+o,p(n)),t)}function h(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return u(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(h(e[i],t,n).source);return u(new RegExp("(?:"+r.join("|")+")",p(n)),t)}(e,t,n):function(e,t,n){return d(s(e,n),t,n)}(e,t,n)}},80231:function(e,t,n){t.pbkdf2=n(86443),t.pbkdf2Sync=n(1452)},86443:function(e,t,n){var r,i,s=n(37225).Buffer,o=n(95672),a=n(32042),c=n(1452),l=n(68200),u=window.crypto&&window.crypto.subtle,p={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function h(){return i||(i=window.process&&window.process.nextTick?window.process.nextTick:window.queueMicrotask?window.queueMicrotask:window.setImmediate?window.setImmediate:window.setTimeout)}function f(e,t,n,r,i){return u.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then((function(e){return u.deriveBits({name:"PBKDF2",salt:t,iterations:n,hash:{name:i}},e,r<<3)})).then((function(e){return s.from(e)}))}e.exports=function(e,t,n,i,m,g){"function"==typeof m&&(g=m,m=void 0);var v=p[(m=m||"sha1").toLowerCase()];if(v&&"function"==typeof window.Promise){if(o(n,i),e=l(e,a,"Password"),t=l(t,a,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(e,t){e.then((function(e){h()((function(){t(null,e)}))}),(function(e){h()((function(){t(e)}))}))}(function(e){if(window.process&&!window.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[e])return d[e];var t=f(r=r||s.alloc(8),r,10,128,e).then((function(){return!0})).catch((function(){return!1}));return d[e]=t,t}(v).then((function(r){return r?f(e,t,n,i,v):c(e,t,n,i,m)})),g)}else h()((function(){var r;try{r=c(e,t,n,i,m)}catch(e){return g(e)}g(null,r)}))}},32042:function(e,t,n){var r,i=n(5806);if(window.process&&window.process.browser)r="utf-8";else if(window.process&&window.process.version){r=parseInt(i.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else r="utf-8";e.exports=r},95672:function(e){var t=Math.pow(2,30)-1;e.exports=function(e,n){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof n)throw new TypeError("Key length not a number");if(n<0||n>t||n!=n)throw new TypeError("Bad key length")}},1452:function(e,t,n){var r=n(51345),i=n(50601),s=n(25636),o=n(37225).Buffer,a=n(95672),c=n(32042),l=n(68200),u=o.alloc(128),p={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,n){var a=function(e){function t(t){return s(e).update(t).digest()}function n(e){return(new i).update(e).digest()}return"rmd160"===e||"ripemd160"===e?n:"md5"===e?r:t}(e),c="sha512"===e||"sha384"===e?128:64;t.length>c?t=a(t):t.length<c&&(t=o.concat([t,u],c));for(var l=o.allocUnsafe(c+p[e]),d=o.allocUnsafe(c+p[e]),h=0;h<c;h++)l[h]=54^t[h],d[h]=92^t[h];var f=o.allocUnsafe(c+n+4);l.copy(f,0,0,c),this.ipad1=f,this.ipad2=l,this.opad=d,this.alg=e,this.blocksize=c,this.hash=a,this.size=p[e]}d.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},e.exports=function(e,t,n,r,i){a(n,r);var s=new d(i=i||"sha1",e=l(e,c,"Password"),(t=l(t,c,"Salt")).length),u=o.allocUnsafe(r),h=o.allocUnsafe(t.length+4);t.copy(h,0,0,t.length);for(var f=0,m=p[i],g=Math.ceil(r/m),v=1;v<=g;v++){h.writeUInt32BE(v,t.length);for(var b=s.run(h,s.ipad1),y=b,k=1;k<n;k++){y=s.run(y,s.ipad2);for(var w=0;w<m;w++)b[w]^=y[w]}b.copy(u,f),f+=m}return u}},68200:function(e,t,n){var r=n(37225).Buffer;e.exports=function(e,t,n){if(r.isBuffer(e))return e;if("string"==typeof e)return r.from(e,t);if(ArrayBuffer.isView(e))return r.from(e.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},5806:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&d())}function d(){if(!l){var e=o(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function f(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||o(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=f,r.addListener=f,r.once=f,r.off=f,r.removeListener=f,r.removeAllListeners=f,r.emit=f,r.prependListener=f,r.prependOnceListener=f,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},9587:function(e,t,n){"use strict";var r=n(45843);function i(){}function s(){}s.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,s,o){if(o!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:s,resetWarningCache:i};return n.PropTypes=n,n}},11268:function(e,t,n){e.exports=n(9587)()},45843:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},51296:function(e,t,n){t.publicEncrypt=n(75496),t.privateDecrypt=n(42882),t.privateEncrypt=function(e,n){return t.publicEncrypt(e,n,!0)},t.publicDecrypt=function(e,n){return t.privateDecrypt(e,n,!0)}},46598:function(e,t,n){var r=n(77439),i=n(37225).Buffer;function s(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){for(var n,o=i.alloc(0),a=0;o.length<t;)n=s(a++),o=i.concat([o,r("sha1").update(e).update(n).digest()]);return o.slice(0,t)}},42882:function(e,t,n){var r=n(87758),i=n(46598),s=n(76245),o=n(30910),a=n(8568),c=n(77439),l=n(65505),u=n(37225).Buffer;e.exports=function(e,t,n){var p;p=e.padding?e.padding:n?1:4;var d,h=r(e),f=h.modulus.byteLength();if(t.length>f||new o(t).cmp(h.modulus)>=0)throw new Error("decryption error");d=n?l(new o(t),h):a(t,h);var m=u.alloc(f-d.length);if(d=u.concat([m,d],f),4===p)return function(e,t){var n=e.modulus.byteLength(),r=c("sha1").update(u.alloc(0)).digest(),o=r.length;if(0!==t[0])throw new Error("decryption error");var a=t.slice(1,o+1),l=t.slice(o+1),p=s(a,i(l,o)),d=s(l,i(p,n-o-1));if(function(e,t){e=u.from(e),t=u.from(t);var n=0,r=e.length;e.length!==t.length&&(n++,r=Math.min(e.length,t.length));var i=-1;for(;++i<r;)n+=e[i]^t[i];return n}(r,d.slice(0,o)))throw new Error("decryption error");var h=o;for(;0===d[h];)h++;if(1!==d[h++])throw new Error("decryption error");return d.slice(h)}(h,d);if(1===p)return function(e,t,n){var r=t.slice(0,2),i=2,s=0;for(;0!==t[i++];)if(i>=t.length){s++;break}var o=t.slice(2,i-1);("0002"!==r.toString("hex")&&!n||"0001"!==r.toString("hex")&&n)&&s++;o.length<8&&s++;if(s)throw new Error("decryption error");return t.slice(i)}(0,d,n);if(3===p)return d;throw new Error("unknown padding")}},75496:function(e,t,n){var r=n(87758),i=n(35175),s=n(77439),o=n(46598),a=n(76245),c=n(30910),l=n(65505),u=n(8568),p=n(37225).Buffer;e.exports=function(e,t,n){var d;d=e.padding?e.padding:n?1:4;var h,f=r(e);if(4===d)h=function(e,t){var n=e.modulus.byteLength(),r=t.length,l=s("sha1").update(p.alloc(0)).digest(),u=l.length,d=2*u;if(r>n-d-2)throw new Error("message too long");var h=p.alloc(n-r-d-2),f=n-u-1,m=i(u),g=a(p.concat([l,h,p.alloc(1,1),t],f),o(m,f)),v=a(m,o(g,u));return new c(p.concat([p.alloc(1),v,g],n))}(f,t);else if(1===d)h=function(e,t,n){var r,s=t.length,o=e.modulus.byteLength();if(s>o-11)throw new Error("message too long");r=n?p.alloc(o-s-3,255):function(e){var t,n=p.allocUnsafe(e),r=0,s=i(2*e),o=0;for(;r<e;)o===s.length&&(s=i(2*e),o=0),(t=s[o++])&&(n[r++]=t);return n}(o-s-3);return new c(p.concat([p.from([0,n?1:2]),r,p.alloc(1),t],o))}(f,t,n);else{if(3!==d)throw new Error("unknown padding");if((h=new c(t)).cmp(f.modulus)>=0)throw new Error("data too long for modulus")}return n?u(h,f):l(h,f)}},65505:function(e,t,n){var r=n(30910),i=n(37225).Buffer;e.exports=function(e,t){return i.from(e.toRed(r.mont(t.modulus)).redPow(new r(t.publicExponent)).fromRed().toArray())}},76245:function(e){e.exports=function(e,t){for(var n=e.length,r=-1;++r<n;)e[r]^=t[r];return e}},35175:function(e,t,n){"use strict";var r=n(5806),i=65536,s=4294967295;var o=n(37225).Buffer,a=window.crypto||window.msCrypto;a&&a.getRandomValues?e.exports=function(e,t){if(e>s)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(e);if(e>0)if(e>i)for(var c=0;c<e;c+=i)a.getRandomValues(n.slice(c,c+i));else a.getRandomValues(n);if("function"==typeof t)return r.nextTick((function(){t(null,n)}));return n}:e.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}},70460:function(e,t,n){"use strict";var r=n(5806);function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var s=n(37225),o=n(35175),a=s.Buffer,c=s.kMaxLength,l=window.crypto||window.msCrypto,u=Math.pow(2,32)-1;function p(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(e>u||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function d(e,t,n){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(e>u||e<0)throw new TypeError("size must be a uint32");if(e+t>n||e>c)throw new RangeError("buffer too small")}function h(e,t,n,i){if(r.browser){var s=e.buffer,a=new Uint8Array(s,t,n);return l.getRandomValues(a),i?void r.nextTick((function(){i(null,e)})):e}if(!i)return o(n).copy(e,t),e;o(n,(function(n,r){if(n)return i(n);r.copy(e,t),i(null,e)}))}l&&l.getRandomValues||!r.browser?(t.randomFill=function(e,t,n,r){if(!(a.isBuffer(e)||e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)r=t,t=0,n=e.length;else if("function"==typeof n)r=n,n=e.length-t;else if("function"!=typeof r)throw new TypeError('"cb" argument must be a function');return p(t,e.length),d(n,t,e.length),h(e,t,n,r)},t.randomFillSync=function(e,t,n){void 0===t&&(t=0);if(!(a.isBuffer(e)||e instanceof window.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');p(t,e.length),void 0===n&&(n=e.length-t);return d(n,t,e.length),h(e,t,n)}):(t.randomFill=i,t.randomFillSync=i)},66462:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,s=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,f=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case s:case a:case o:case h:return e;default:switch(e=e&&e.$$typeof){case l:case d:case g:case m:case c:return e;default:return t}}case i:return t}}}function _(e){return w(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=l,t.ContextProvider=c,t.Element=r,t.ForwardRef=d,t.Fragment=s,t.Lazy=g,t.Memo=m,t.Portal=i,t.Profiler=a,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return _(e)||w(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===s},t.isLazy=function(e){return w(e)===g},t.isMemo=function(e){return w(e)===m},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===o},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===p||e===a||e===o||e===h||e===f||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===m||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===k||e.$$typeof===v)},t.typeOf=w},80364:function(e,t,n){"use strict";e.exports=n(66462)},33244:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return!(0,s.default)(this.props,e)||!(0,s.default)(this.state,t)};var r,i=n(60360),s=(r=i)&&r.__esModule?r:{default:r};e.exports=t.default},21425:function(e,t,n){"use strict";t.__esModule=!0;var r,i=n(33244),s=(r=i)&&r.__esModule?r:{default:r};t.default={shouldComponentUpdate:s.default},e.exports=t.default},60360:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(e===t)return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),s=0;s<n.length;s++)if(!i(n[s])||e[n[s]]!==t[n[s]])return!1;return!0},e.exports=t.default},1992:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(99196),i=n.n(r)().createContext(null)},32054:function(e,t,n){"use strict";var r=n(71446),i=n(99196),s=n.n(i),o=n(11268),a=n.n(o),c=n(1992),l=function(e){function t(t){var n;n=e.call(this,t)||this;var r=t.store;return n.state={storeState:r.getState(),store:r},n}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this.subscribe()},n.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},n.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},n.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var n=t.getState();e._isMounted&&e.setState((function(e){return e.storeState===n?null:{storeState:n}}))}));var n=t.getState();n!==this.state.storeState&&this.setState({storeState:n})},n.render=function(){var e=this.props.context||c.E;return s().createElement(e.Provider,{value:this.state},this.props.children)},t}(i.Component);l.propTypes={store:a().shape({subscribe:a().func.isRequired,dispatch:a().func.isRequired,getState:a().func.isRequired}),context:a().object,children:a().any},t.Z=l},4193:function(e,t,n){"use strict";n.d(t,{Z:function(){return m}});var r=n(25303),i=n(71446),s=n(40988),o=n(5343),a=n(13266),c=n.n(a),l=n(24546),u=n.n(l),p=n(99196),d=n.n(p),h=n(80364),f=n(1992);function m(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,l=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,m=n.methodName,g=void 0===m?"connectAdvanced":m,v=n.renderCountProp,b=void 0===v?void 0:v,y=n.shouldHandleStateChanges,k=void 0===y||y,w=n.storeKey,_=void 0===w?"store":w,E=n.withRef,C=void 0!==E&&E,S=n.forwardRef,j=void 0!==S&&S,M=n.context,x=void 0===M?f.E:M,N=(0,o.Z)(n,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);u()(void 0===b,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),u()(!C,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var A="To use a custom Redux store for specific components,  create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like:  <Provider context={MyContext}><ConnectedComponent context={MyContext} /></Provider>. You may also pass a {context : MyContext} option to connect";u()("store"===_,"storeKey has been removed and does not do anything. "+A);var O=x;return function(t){var n=t.displayName||t.name||"Component",o=l(n),a=(0,s.Z)({},N,{getDisplayName:l,methodName:g,renderCountProp:b,shouldHandleStateChanges:k,storeKey:_,displayName:o,wrappedComponentName:n,WrappedComponent:t}),f=N.pure,m=p.Component;f&&(m=p.PureComponent);var v=function(n){function c(t){var i,o,a,c,l,p,h,m,g,v,b;return i=n.call(this,t)||this,u()(j?!t.wrapperProps[_]:!t[_],"Passing redux store in props has been removed and does not do anything. "+A),i.selectDerivedProps=function(t,n,r,i){if(f&&o===n&&a===t)return c;r===l&&p===i||(l=r,p=i,h=e(r.dispatch,i)),o=n,a=t;var s=h(t,n);return c=s},i.selectChildElement=function(e,t,n){return t===m&&n===g&&b===e||(m=t,g=n,b=e,v=d().createElement(e,(0,s.Z)({},t,{ref:n}))),v},i.indirectRenderWrappedComponent=i.indirectRenderWrappedComponent.bind((0,r.Z)(i)),i}(0,i.Z)(c,n);var l=c.prototype;return l.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},l.renderWrappedComponent=function(e){u()(e,'Could not find "store" in the context of "'+o+'". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to '+o+" in connect options.");var n,r=e.storeState,i=e.store,s=this.props;j&&(s=this.props.wrapperProps,n=this.props.forwardedRef);var c=this.selectDerivedProps(r,s,i,a);return this.selectChildElement(t,c,n)},l.render=function(){var e=this.props.context&&this.props.context.Consumer&&(0,h.isContextConsumer)(d().createElement(this.props.context.Consumer,null))?this.props.context:O;return d().createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},c}(m);if(v.WrappedComponent=t,v.displayName=o,j){var y=d().forwardRef((function(e,t){return d().createElement(v,{wrapperProps:e,forwardedRef:t})}));return y.displayName=o,y.WrappedComponent=t,c()(y,t)}return c()(v,t)}}},28274:function(e,t,n){"use strict";var r,i,s,o,a,c,l,u,p,d,h,f,m=n(40988),g=n(5343),v=n(4193),b=n(37110),y=n(80214),k=n(26150),w=n(94262),_=n(27189);function E(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function C(e,t){return e===t}t.Z=(s=(i=void 0===r?{}:r).connectHOC,o=void 0===s?v.Z:s,a=i.mapStateToPropsFactories,c=void 0===a?k.ZP:a,l=i.mapDispatchToPropsFactories,u=void 0===l?y.ZP:l,p=i.mergePropsFactories,d=void 0===p?w.ZP:p,h=i.selectorFactory,f=void 0===h?_.ZP:h,function(e,t,n,r){void 0===r&&(r={});var i=r,s=i.pure,a=void 0===s||s,l=i.areStatesEqual,p=void 0===l?C:l,h=i.areOwnPropsEqual,v=void 0===h?b.Z:h,y=i.areStatePropsEqual,k=void 0===y?b.Z:y,w=i.areMergedPropsEqual,_=void 0===w?b.Z:w,S=(0,g.Z)(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),j=E(e,c,"mapStateToProps"),M=E(t,u,"mapDispatchToProps"),x=E(n,d,"mergeProps");return o(f,(0,m.Z)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:j,initMapDispatchToProps:M,initMergeProps:x,pure:a,areStatesEqual:p,areOwnPropsEqual:v,areStatePropsEqual:k,areMergedPropsEqual:_},S))})},80214:function(e,t,n){"use strict";var r=n(74978),i=n(68821);t.ZP=[function(e){return"function"==typeof e?(0,i.xv)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,i.dX)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,i.dX)((function(t){return(0,r.DE)(e,t)})):void 0}]},26150:function(e,t,n){"use strict";var r=n(68821);t.ZP=[function(e){return"function"==typeof e?(0,r.xv)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,r.dX)((function(){return{}}))}]},94262:function(e,t,n){"use strict";var r=n(40988);n(80450);function i(e,t,n){return(0,r.Z)({},n,e,t)}t.ZP=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,s=n.areMergedPropsEqual,o=!1;return function(t,n,a){var c=e(t,n,a);return o?i&&s(c,r)||(r=c):(o=!0,r=c),r}}}(e):void 0},function(e){return e?void 0:function(){return i}}]},27189:function(e,t,n){"use strict";n.d(t,{ZP:function(){return o}});var r=n(5343);n(51617);function i(e,t,n,r){return function(i,s){return n(e(i,s),t(r,s),s)}}function s(e,t,n,r,i){var s,o,a,c,l,u=i.areStatesEqual,p=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1;function f(i,h){var f,m,g=!p(h,o),v=!u(i,s);return s=i,o=h,g&&v?(a=e(s,o),t.dependsOnOwnProps&&(c=t(r,o)),l=n(a,c,o)):g?(e.dependsOnOwnProps&&(a=e(s,o)),t.dependsOnOwnProps&&(c=t(r,o)),l=n(a,c,o)):v?(f=e(s,o),m=!d(f,a),a=f,m&&(l=n(a,c,o)),l):l}return function(i,u){return h?f(i,u):(a=e(s=i,o=u),c=t(r,o),l=n(a,c,o),h=!0,l)}}function o(e,t){var n=t.initMapStateToProps,o=t.initMapDispatchToProps,a=t.initMergeProps,c=(0,r.Z)(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),l=n(e,c),u=o(e,c),p=a(e,c);return(c.pure?s:i)(l,u,p,e,c)}},51617:function(e,t,n){"use strict";n(28477)},68821:function(e,t,n){"use strict";n.d(t,{dX:function(){return r},xv:function(){return s}});n(80450);function r(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function i(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function s(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=i(e);var s=r(t,n);return"function"==typeof s&&(r.mapToProps=s,r.dependsOnOwnProps=i(s),s=r(t,n)),s},r}}},2620:function(e,t,n){"use strict";n.d(t,{zt:function(){return r.Z},$j:function(){return i.Z}});var r=n(32054),i=(n(4193),n(1992),n(28274))},37110:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function s(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(var o=0;o<n.length;o++)if(!r.call(t,n[o])||!i(e[n[o]],t[n[o]]))return!1;return!0}},80450:function(e,t,n){"use strict";n(28477)},28477:function(e,t,n){"use strict";n(55246)},1336:function(e,t,n){"use strict";n.d(t,{UT:function(){return p}});var r=n(12901),i=n(71446),s=n(99196),o=n.n(s),a=n(33451),c=(n(11268),n(40988)),l=n(5343),u=n(34770);o().Component;var p=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).history=(0,a.q_)(t.props),t}return(0,i.Z)(t,e),t.prototype.render=function(){return o().createElement(r.F0,{history:this.history,children:this.props.children})},t}(o().Component);var d=function(e,t){return"function"==typeof e?e(t):e},h=function(e,t){return"string"==typeof e?(0,a.ob)(e,null,null,t):e},f=function(e){return e},m=o().forwardRef;void 0===m&&(m=f);var g=m((function(e,t){var n=e.innerRef,r=e.navigate,i=e.onClick,s=(0,l.Z)(e,["innerRef","navigate","onClick"]),a=s.target,u=(0,c.Z)({},s,{onClick:function(e){try{i&&i(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||a&&"_self"!==a||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=f!==m&&t||n,o().createElement("a",u)}));var v=m((function(e,t){var n=e.component,i=void 0===n?g:n,s=e.replace,a=e.to,p=e.innerRef,v=(0,l.Z)(e,["component","replace","to","innerRef"]);return o().createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=e.history,r=h(d(a,e.location),e.location),l=r?n.createHref(r):"",g=(0,c.Z)({},v,{href:l,navigate:function(){var t=d(a,e.location);(s?n.replace:n.push)(t)}});return f!==m?g.ref=t||p:g.innerRef=p,o().createElement(i,g)}))})),b=function(e){return e},y=o().forwardRef;void 0===y&&(y=b);y((function(e,t){var n=e["aria-current"],i=void 0===n?"page":n,s=e.activeClassName,a=void 0===s?"active":s,p=e.activeStyle,f=e.className,m=e.exact,g=e.isActive,k=e.location,w=e.sensitive,_=e.strict,E=e.style,C=e.to,S=e.innerRef,j=(0,l.Z)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o().createElement(r.s6.Consumer,null,(function(e){e||(0,u.Z)(!1);var n=k||e.location,s=h(d(C,n),n),l=s.pathname,M=l&&l.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=M?(0,r.LX)(n.pathname,{path:M,exact:m,sensitive:w,strict:_}):null,N=!!(g?g(x,n):x),A=N?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(f,a):f,O=N?(0,c.Z)({},E,{},p):E,T=(0,c.Z)({"aria-current":N&&i||null,className:A,style:O,to:s},j);return b!==y?T.ref=t||S:T.innerRef=S,o().createElement(v,T)}))}))},12901:function(e,t,n){"use strict";n.d(t,{NL:function(){return w},l_:function(){return S},AW:function(){return N},F0:function(){return y},rs:function(){return R},s6:function(){return b},LX:function(){return x},EN:function(){return U}});var r=n(71446),i=n(99196),s=n.n(i),o=(n(11268),n(33451)),a=n(66118),c=n(34770),l=n(40988),u=n(760),p=n.n(u),d=(n(80364),n(5343)),h=n(13266),f=n.n(h),m=function(e){var t=(0,a.Z)();return t.displayName=e,t},g=m("Router-History"),v=function(e){var t=(0,a.Z)();return t.displayName=e,t},b=v("Router"),y=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={location:t.history.location},n._isMounted=!1,n._pendingLocation=null,t.staticContext||(n.unlisten=t.history.listen((function(e){n._isMounted?n.setState({location:e}):n._pendingLocation=e}))),n}(0,r.Z)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var n=t.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return s().createElement(b.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},s().createElement(g.Provider,{children:this.props.children||null,value:this.props.history}))},t}(s().Component);s().Component;var k=function(e){function t(){return e.apply(this,arguments)||this}(0,r.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(e){this.props.onUpdate&&this.props.onUpdate.call(this,this,e)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},t}(s().Component);function w(e){var t=e.message,n=e.when,r=void 0===n||n;return s().createElement(b.Consumer,null,(function(e){if(e||(0,c.Z)(!1),!r||e.staticContext)return null;var n=e.history.block;return s().createElement(k,{onMount:function(e){e.release=n(t)},onUpdate:function(e,r){r.message!==t&&(e.release(),e.release=n(t))},onUnmount:function(e){e.release()},message:t})}))}var _={},E=0;function C(e,t){return void 0===e&&(e="/"),void 0===t&&(t={}),"/"===e?e:function(e){if(_[e])return _[e];var t=p().compile(e);return E<1e4&&(_[e]=t,E++),t}(e)(t,{pretty:!0})}function S(e){var t=e.computedMatch,n=e.to,r=e.push,i=void 0!==r&&r;return s().createElement(b.Consumer,null,(function(e){e||(0,c.Z)(!1);var r=e.history,a=e.staticContext,u=i?r.push:r.replace,p=(0,o.ob)(t?"string"==typeof n?C(n,t.params):(0,l.Z)({},n,{pathname:C(n.pathname,t.params)}):n);return a?(u(p),null):s().createElement(k,{onMount:function(){u(p)},onUpdate:function(e,t){var n=(0,o.ob)(t.to);(0,o.Hp)(n,(0,l.Z)({},p,{key:n.key}))||u(p)},to:n})}))}var j={},M=0;function x(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var n=t,r=n.path,i=n.exact,s=void 0!==i&&i,o=n.strict,a=void 0!==o&&o,c=n.sensitive,l=void 0!==c&&c;return[].concat(r).reduce((function(t,n){if(!n&&""!==n)return null;if(t)return t;var r=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=j[n]||(j[n]={});if(r[e])return r[e];var i=[],s={regexp:p()(e,i,t),keys:i};return M<1e4&&(r[e]=s,M++),s}(n,{end:s,strict:a,sensitive:l}),i=r.regexp,o=r.keys,c=i.exec(e);if(!c)return null;var u=c[0],d=c.slice(1),h=e===u;return s&&!h?null:{path:n,url:"/"===n&&""===u?"/":u,isExact:h,params:o.reduce((function(e,t,n){return e[t.name]=d[n],e}),{})}}),null)}var N=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return s().createElement(b.Consumer,null,(function(t){t||(0,c.Z)(!1);var n=e.props.location||t.location,r=e.props.computedMatch?e.props.computedMatch:e.props.path?x(n.pathname,e.props):t.match,i=(0,l.Z)({},t,{location:n,match:r}),o=e.props,a=o.children,u=o.component,p=o.render;return Array.isArray(a)&&0===a.length&&(a=null),s().createElement(b.Provider,{value:i},i.match?a?"function"==typeof a?a(i):a:u?s().createElement(u,i):p?p(i):null:"function"==typeof a?a(i):null)}))},t}(s().Component);function A(e){return"/"===e.charAt(0)?e:"/"+e}function O(e,t){if(!e)return t;var n=A(e);return 0!==t.pathname.indexOf(n)?t:(0,l.Z)({},t,{pathname:t.pathname.substr(n.length)})}function T(e){return"string"==typeof e?e:(0,o.Ep)(e)}function P(e){return function(){(0,c.Z)(!1)}}function I(){}s().Component;var R=function(e){function t(){return e.apply(this,arguments)||this}return(0,r.Z)(t,e),t.prototype.render=function(){var e=this;return s().createElement(b.Consumer,null,(function(t){t||(0,c.Z)(!1);var n,r,i=e.props.location||t.location;return s().Children.forEach(e.props.children,(function(e){if(null==r&&s().isValidElement(e)){n=e;var o=e.props.path||e.props.from;r=o?x(i.pathname,(0,l.Z)({},e.props,{path:o})):t.match}})),r?s().cloneElement(n,{location:i,computedMatch:r}):null}))},t}(s().Component);function U(e){var t="withRouter("+(e.displayName||e.name)+")",n=function(t){var n=t.wrappedComponentRef,r=(0,d.Z)(t,["wrappedComponentRef"]);return s().createElement(b.Consumer,null,(function(t){return t||(0,c.Z)(!1),s().createElement(e,(0,l.Z)({},r,t,{ref:n}))}))};return n.displayName=t,n.WrappedComponent=e,f()(n,e)}s().useContext},30997:function(e){"use strict";var t={};function n(e,n,r){r||(r=Error);var i=function(e){var t,r;function i(t,r,i){return e.call(this,function(e,t,r){return"string"==typeof n?n:n(e,t,r)}(t,r,i))||this}return r=e,(t=i).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,i}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}n("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),n("ERR_INVALID_ARG_TYPE",(function(e,t,n){var i,s,o,a;if("string"==typeof t&&(s="not ",t.substr(!o||o<0?0:+o,s.length)===s)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(r(t,"type"));else{var c=function(e,t,n){return"number"!=typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(r(t,"type"))}return a+=". Received type ".concat(typeof n)}),TypeError),n("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),n("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),n("ERR_STREAM_PREMATURE_CLOSE","Premature close"),n("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),n("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),n("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),n("ERR_STREAM_WRITE_AFTER_END","write after end"),n("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),n("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),n("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},95507:function(e,t,n){"use strict";var r=n(5806),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var s=n(20465),o=n(48607);n(59503)(u,s);for(var a=i(o.prototype),c=0;c<a.length;c++){var l=a[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);s.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",p)))}function p(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},15385:function(e,t,n){"use strict";e.exports=i;var r=n(1866);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(59503)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},20465:function(e,t,n){"use strict";var r,i=n(5806);e.exports=S,S.ReadableState=C;n(2571).EventEmitter;var s=function(e,t){return e.listeners(t).length},o=n(74756),a=n(90778).Buffer,c=window.Uint8Array||function(){};var l,u=n(80677);l=u&&u.debuglog?u.debuglog("stream"):function(){};var p,d,h,f=n(41500),m=n(13537),g=n(71199).getHighWaterMark,v=n(30997).q,b=v.ERR_INVALID_ARG_TYPE,y=v.ERR_STREAM_PUSH_AFTER_EOF,k=v.ERR_METHOD_NOT_IMPLEMENTED,w=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(59503)(S,o);var _=m.errorOrDestroy,E=["error","close","destroy","pause","resume"];function C(e,t,i){r=r||n(95507),e=e||{},"boolean"!=typeof i&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new f,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(p||(p=n(3247).s),this.decoder=new p(e.encoding),this.encoding=e.encoding)}function S(e){if(r=r||n(95507),!(this instanceof S))return new S(e);var t=this instanceof r;this._readableState=new C(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function j(e,t,n,r,i){l("readableAddChunk",t);var s,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(l("onEofChunk"),t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,O(e)))}(e,o);else if(i||(s=function(e,t){var n;r=t,a.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new b("chunk",["string","Buffer","Uint8Array"],t));var r;return n}(o,t)),s)_(e,s);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),r)o.endEmitted?_(e,new w):M(e,o,t,!0);else if(o.ended)_(e,new y);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||0!==t.length?M(e,o,t,!1):T(e,o)):M(e,o,t,!1)}else r||(o.reading=!1,T(e,o));return!o.ended&&(o.length<o.highWaterMark||0===o.length)}function M(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),T(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=m.destroy,S.prototype._undestroy=m.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=a.from(e,t),t=""),n=!0),j(this,e,t,!1,n)},S.prototype.unshift=function(e){return j(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){p||(p=n(3247).s);var t=new p(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var r=this._readableState.buffer.head,i="";null!==r;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var x=1073741824;function N(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function A(e){var t=e._readableState;l("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(O,e))}function O(e){var t=e._readableState;l("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,Z(e)}function T(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(P,e,t))}function P(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var n=t.length;if(l("maybeReadMore read 0"),e.read(0),n===t.length)break}t.readingMore=!1}function I(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function R(e){l("readable nexttick read 0"),e.read(0)}function U(e,t){l("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),Z(e),t.flowing&&!t.reading&&e.read(0)}function Z(e){var t=e._readableState;for(l("flow",t.flowing);t.flowing&&null!==e.read(););}function D(e,t){return 0===t.length?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function L(e){var t=e._readableState;l("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(z,t,e))}function z(e,t){if(l("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function B(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}S.prototype.read=function(e){l("read",e),e=parseInt(e,10);var t=this._readableState,n=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return l("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?L(this):A(this),null;if(0===(e=N(e,t))&&t.ended)return 0===t.length&&L(this),null;var r,i=t.needReadable;return l("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&l("length less than watermark",i=!0),t.ended||t.reading?l("reading or ended",i=!1):i&&(l("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=N(n,t))),null===(r=e>0?D(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&L(this)),null!==r&&this.emit("data",r),r},S.prototype._read=function(e){_(this,new k("_read()"))},S.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,l("pipe count=%d opts=%j",r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:g;function a(t,i){l("onunpipe"),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),e.removeListener("close",f),e.removeListener("finish",m),e.removeListener("drain",u),e.removeListener("error",h),e.removeListener("unpipe",a),n.removeListener("end",c),n.removeListener("end",g),n.removeListener("data",d),p=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function c(){l("onend"),e.end()}r.endEmitted?i.nextTick(o):n.once("end",o),e.on("unpipe",a);var u=function(e){return function(){var t=e._readableState;l("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,Z(e))}}(n);e.on("drain",u);var p=!1;function d(t){l("ondata");var i=e.write(t);l("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===e||r.pipesCount>1&&-1!==B(r.pipes,e))&&!p&&(l("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function h(t){l("onerror",t),g(),e.removeListener("error",h),0===s(e,"error")&&_(e,t)}function f(){e.removeListener("finish",m),g()}function m(){l("onfinish"),e.removeListener("close",f),g()}function g(){l("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",h),e.once("close",f),e.once("finish",m),e.emit("pipe",n),r.flowing||(l("pipe resume"),n.resume()),e},S.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<i;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var o=B(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,n)),this},S.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),r=this._readableState;return"data"===e?(r.readableListening=this.listenerCount("readable")>0,!1!==r.flowing&&this.resume()):"readable"===e&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,l("on readable",r.length,r.reading),r.length?A(this):r.reading||i.nextTick(R,this))),n},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(I,this),n},S.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(I,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(l("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(U,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(l("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i)||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s<E.length;s++)e.on(E[s],this.emit.bind(this,E[s]));return this._read=function(t){l("wrapped _read",t),r&&(r=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===d&&(d=n(87906)),d(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=D,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===h&&(h=n(67841)),h(S,e,t)})},1866:function(e,t,n){"use strict";e.exports=u;var r=n(30997).q,i=r.ERR_METHOD_NOT_IMPLEMENTED,s=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(95507);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new s);n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",p)}function p(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?d(this,null,null):this._flush((function(t,n){d(e,t,n)}))}function d(e,t,n){if(t)return e.emit("error",t);if(null!=n&&e.push(n),e._writableState.length)throw new a;if(e._transformState.transforming)throw new o;return e.push(null)}n(59503)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i("_transform()"))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},48607:function(e,t,n){"use strict";var r,i=n(5806);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=S,S.WritableState=C;var o={deprecate:n(49231)},a=n(74756),c=n(90778).Buffer,l=window.Uint8Array||function(){};var u,p=n(13537),d=n(71199).getHighWaterMark,h=n(30997).q,f=h.ERR_INVALID_ARG_TYPE,m=h.ERR_METHOD_NOT_IMPLEMENTED,g=h.ERR_MULTIPLE_CALLBACK,v=h.ERR_STREAM_CANNOT_PIPE,b=h.ERR_STREAM_DESTROYED,y=h.ERR_STREAM_NULL_VALUES,k=h.ERR_STREAM_WRITE_AFTER_END,w=h.ERR_UNKNOWN_ENCODING,_=p.errorOrDestroy;function E(){}function C(e,t,o){r=r||n(95507),e=e||{},"boolean"!=typeof o&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,s=n.writecb;if("function"!=typeof s)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,s){--t.pendingcb,n?(i.nextTick(s,r),i.nextTick(O,e,t),e._writableState.errorEmitted=!0,_(e,r)):(s(r),e._writableState.errorEmitted=!0,_(e,r),O(e,t))}(e,n,r,t,s);else{var o=N(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||x(e,n),r?i.nextTick(M,e,n,o,s):M(e,n,o,s)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function S(e){var t=this instanceof(r=r||n(95507));if(!t&&!u.call(S,this))return new S(e);this._writableState=new C(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function j(e,t,n,r,i,s,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new b("write")):n?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function M(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function x(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)i[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;i.allBuffers=c,j(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,p=n.callback;if(j(e,t,!1,t.objectMode?1:l.length,l,u,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function N(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(n){t.pendingcb--,n&&_(e,n),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var n=N(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(A,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(59503)(S,a),C.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(C.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===S&&(e&&e._writableState instanceof C)}})):u=function(e){return e instanceof this},S.prototype.pipe=function(){_(this,new v)},S.prototype.write=function(e,t,n){var r,s=this._writableState,o=!1,a=!s.objectMode&&(r=e,c.isBuffer(r)||r instanceof l);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(n=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof n&&(n=E),s.ending?function(e,t){var n=new k;_(e,n),i.nextTick(t,n)}(this,n):(a||function(e,t,n,r){var s;return null===n?s=new y:"string"==typeof n||t.objectMode||(s=new f("chunk",["string","Buffer"],n)),!s||(_(e,s),i.nextTick(r,s),!1)}(this,s,e,n))&&(s.pendingcb++,o=function(e,t,n,r,i,s){if(!n){var o=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,n));return t}(t,r,i);r!==o&&(n=!0,i="buffer",r=o)}var a=t.objectMode?1:r.length;t.length+=a;var l=t.length<t.highWaterMark;l||(t.needDrain=!0);if(t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:s,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else j(e,t,!1,a,r,i,s);return l}(this,s,a,e,t,n)),o},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,n){n(new m("_write()"))},S.prototype._writev=null,S.prototype.end=function(e,t,n){var r=this._writableState;return"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?i.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)}},87906:function(e,t,n){"use strict";var r,i=n(5806);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(87288),a=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),p=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(e,t){return{value:e,done:t}}function m(e){var t=e[a];if(null!==t){var n=e[h].read();null!==n&&(e[p]=null,e[a]=null,e[c]=null,t(f(n,!1)))}}function g(e){i.nextTick(m,e)}var v=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(r={get stream(){return this[h]},next:function(){var e=this,t=this[l];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(f(void 0,!0))}))}));var n,r=this[p];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[u]?n(f(void 0,!0)):t[d](n,r)}),r)}}(r,this));else{var s=this[h].read();if(null!==s)return Promise.resolve(f(s,!1));n=new Promise(this[d])}return this[p]=n,n}},Symbol.asyncIterator,(function(){return this})),s(r,"return",(function(){var e=this;return new Promise((function(t,n){e[h].destroy(null,(function(e){e?n(e):t(f(void 0,!0))}))}))})),r),v);e.exports=function(e){var t,n=Object.create(b,(s(t={},h,{value:e,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,c,{value:null,writable:!0}),s(t,l,{value:null,writable:!0}),s(t,u,{value:e._readableState.endEmitted,writable:!0}),s(t,d,{value:function(e,t){var r=n[h].read();r?(n[p]=null,n[a]=null,n[c]=null,e(f(r,!1))):(n[a]=e,n[c]=t)},writable:!0}),t));return n[p]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=n[c];return null!==t&&(n[p]=null,n[a]=null,n[c]=null,t(e)),void(n[l]=e)}var r=n[a];null!==r&&(n[p]=null,n[a]=null,n[c]=null,r(f(void 0,!0))),n[u]=!0})),e.on("readable",g.bind(null,n)),n}},41500:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=n(90778).Buffer,a=n(23833).inspect,c=a&&a.custom||"inspect";e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,n,l;return t=e,n=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===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(var t=this.head,n=""+t.data;t=t.next;)n+=e+t.data;return n}},{key:"concat",value:function(e){if(0===this.length)return o.alloc(0);for(var t,n,r,i=o.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,n=i,r=a,o.prototype.copy.call(t,n,r),a+=s.data.length,s=s.next;return i}},{key:"consume",value:function(e,t){var n;return e<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(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,s=e>i.length?i.length:e;if(s===i.length?r+=i:r+=i.slice(0,e),0==(e-=s)){s===i.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(e){var t=o.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0==(e-=s)){s===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(s));break}++r}return this.length-=r,t}},{key:c,value:function(e,t){return a(this,function(e){for(var t=1;t<arguments.length;t++){var n=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))}))}return e}({},t,{depth:0,customInspect:!1}))}}],n&&s(t.prototype,n),l&&s(t,l),e}()},13537:function(e,t,n){"use strict";var r=n(5806);function i(e,t){o(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var n=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(s,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(s,n),t(e)):r.nextTick(s,n)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit("error",t)}}},87288:function(e,t,n){"use strict";var r=n(30997).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,s){if("function"==typeof n)return e(t,null,n);n||(n={}),s=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r)}}}(s||i);var o=n.readable||!1!==n.readable&&t.readable,a=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){a=!1,l=!0,o||s.call(t)},p=t._readableState&&t._readableState.endEmitted,d=function(){o=!1,p=!0,a||s.call(t)},h=function(e){s.call(t,e)},f=function(){var e;return o&&!p?(t._readableState&&t._readableState.ended||(e=new r),s.call(t,e)):a&&!l?(t._writableState&&t._writableState.ended||(e=new r),s.call(t,e)):void 0},m=function(){t.req.on("finish",u)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(t)?a&&!t._writableState&&(t.on("end",c),t.on("close",c)):(t.on("complete",u),t.on("abort",f),t.req?m():t.on("request",m)),t.on("end",d),t.on("finish",u),!1!==n.error&&t.on("error",h),t.on("close",f),function(){t.removeListener("complete",u),t.removeListener("abort",f),t.removeListener("request",m),t.req&&t.req.removeListener("finish",u),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",u),t.removeListener("end",d),t.removeListener("error",h),t.removeListener("close",f)}}},67841:function(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},60519:function(e,t,n){"use strict";var r;var i=n(30997).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e,t,i,s){s=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(s);var a=!1;e.on("close",(function(){a=!0})),void 0===r&&(r=n(87288)),r(e,{readable:t,writable:i},(function(e){if(e)return s(e);a=!0,s()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void s(t||new o("pipe"))}}function l(e){e()}function u(e,t){return e.pipe(t)}function p(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=p(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new s("streams");var o=t.map((function(e,n){var s=n<t.length-1;return c(e,s,n>0,(function(e){r||(r=e),e&&o.forEach(l),s||(o.forEach(l),i(r))}))}));return t.reduce(u)}},71199:function(e,t,n){"use strict";var r=n(30997).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var s=function(e,t,n){return null!=e.highWaterMark?e.highWaterMark:t?e[n]:null}(t,i,n);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new r(i?n:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},74756:function(e,t,n){e.exports=n(2571).EventEmitter},7130:function(e,t,n){(t=e.exports=n(20465)).Stream=t,t.Readable=t,t.Writable=n(48607),t.Duplex=n(95507),t.Transform=n(1866),t.PassThrough=n(15385),t.finished=n(87288),t.pipeline=n(60519)},53126:function(e,t){"use strict";function n(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(i){return"function"==typeof i?i(n,r,e):t(i)}}}}var r=n();r.withExtraArgument=n,t.Z=r},74978:function(e,t,n){"use strict";n.d(t,{md:function(){return g},DE:function(){return p},UY:function(){return l},qC:function(){return m},MT:function(){return a}});var r=n(13488),i=(n(55246),function(){return Math.random().toString(36).substring(7).split("").join(".")}),s={INIT:"@@redux/INIT"+i(),REPLACE:"@@redux/REPLACE"+i(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+i()}};function o(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function a(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(a)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var c=e,l=t,u=[],p=u,d=!1;function h(){p===u&&(p=u.slice())}function f(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function m(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return h(),p.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var n=p.indexOf(e);p.splice(n,1),u=null}}}function g(e){if(!o(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=c(l,e)}finally{d=!1}for(var t=u=p,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");c=e,g({type:s.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[r.Z]=function(){return this},e}return g({type:s.INIT}),(i={dispatch:g,subscribe:m,getState:f,replaceReducer:v})[r.Z]=b,i}function c(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function l(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:s.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:s.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+s.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){o=e}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,i={},s=0;s<a.length;s++){var l=a[s],u=n[l],p=e[l],d=u(p,t);if(void 0===d){var h=c(l,t);throw new Error(h)}i[l]=d,r=r||d!==p}return(r=r||a.length!==Object.keys(e).length)?i:e}}function u(e,t){return function(){return t(e.apply(this,arguments))}}function p(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var i=e[r];"function"==typeof i&&(n[r]=u(i,t))}return n}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(n,!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function g(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},i={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},s=t.map((function(e){return e(i)}));return f({},n,{dispatch:r=m.apply(void 0,s)(n.dispatch)})}}}},59149:function(e,t){"use strict";function n(e){return"/"===e.charAt(0)}function r(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}t.Z=function(e,t){void 0===t&&(t="");var i,s=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&n(e),c=t&&n(t),l=a||c;if(e&&n(e)?o=s:s.length&&(o.pop(),o=o.concat(s)),!o.length)return"/";if(o.length){var u=o[o.length-1];i="."===u||".."===u||""===u}else i=!1;for(var p=0,d=o.length;d>=0;d--){var h=o[d];"."===h?r(o,d):".."===h?(r(o,d),p++):p&&(r(o,d),p--)}if(!l)for(;p--;p)o.unshift("..");!l||""===o[0]||o[0]&&n(o[0])||o.unshift("");var f=o.join("/");return i&&"/"!==f.substr(-1)&&(f+="/"),f}},50601:function(e,t,n){"use strict";var r=n(90778).Buffer,i=n(59503),s=n(39302),o=new Array(16),a=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],c=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],l=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],u=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],p=[0,1518500249,1859775393,2400959708,2840853838],d=[1352829926,1548603684,1836072691,2053994217,0];function h(){s.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function f(e,t){return e<<t|e>>>32-t}function m(e,t,n,r,i,s,o,a){return f(e+(t^n^r)+s+o|0,a)+i|0}function g(e,t,n,r,i,s,o,a){return f(e+(t&n|~t&r)+s+o|0,a)+i|0}function v(e,t,n,r,i,s,o,a){return f(e+((t|~n)^r)+s+o|0,a)+i|0}function b(e,t,n,r,i,s,o,a){return f(e+(t&r|n&~r)+s+o|0,a)+i|0}function y(e,t,n,r,i,s,o,a){return f(e+(t^(n|~r))+s+o|0,a)+i|0}i(h,s),h.prototype._update=function(){for(var e=o,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,s=0|this._d,h=0|this._e,k=0|this._a,w=0|this._b,_=0|this._c,E=0|this._d,C=0|this._e,S=0;S<80;S+=1){var j,M;S<16?(j=m(n,r,i,s,h,e[a[S]],p[0],l[S]),M=y(k,w,_,E,C,e[c[S]],d[0],u[S])):S<32?(j=g(n,r,i,s,h,e[a[S]],p[1],l[S]),M=b(k,w,_,E,C,e[c[S]],d[1],u[S])):S<48?(j=v(n,r,i,s,h,e[a[S]],p[2],l[S]),M=v(k,w,_,E,C,e[c[S]],d[2],u[S])):S<64?(j=b(n,r,i,s,h,e[a[S]],p[3],l[S]),M=g(k,w,_,E,C,e[c[S]],d[3],u[S])):(j=y(n,r,i,s,h,e[a[S]],p[4],l[S]),M=m(k,w,_,E,C,e[c[S]],d[4],u[S])),n=h,h=s,s=f(i,10),i=r,r=j,k=C,C=E,E=f(_,10),_=w,w=M}var x=this._b+i+E|0;this._b=this._c+s+C|0,this._c=this._d+h+k|0,this._d=this._e+n+w|0,this._e=this._a+r+_|0,this._a=x},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},37225:function(e,t,n){var r=n(90778),i=r.Buffer;function s(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:(s(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),s(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)}},82923:function(e,t,n){"use strict";var r,i=n(5806),s=n(90778),o=s.Buffer,a={};for(r in s)s.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(a[r]=s[r]);var c=a.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(c[r]=o[r]);if(a.Buffer.prototype=o.prototype,c.from&&c.from!==Uint8Array.from||(c.from=function(e,t,n){if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&void 0===e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,n)}),c.alloc||(c.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=o(e);return t&&0!==t.length?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!a.kStringMaxLength)try{a.kStringMaxLength=i.binding("buffer").kStringMaxLength}catch(e){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),e.exports=a},12023:function(e,t,n){var r=n(37225).Buffer;function i(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=r.from(e,t));for(var n=this._block,i=this._blockSize,s=e.length,o=this._len,a=0;a<s;){for(var c=o%i,l=Math.min(s-a,i-c),u=0;u<l;u++)n[c+u]=e[a+u];a+=l,(o+=l)%i==0&&this._update(n)}return this._len+=s,this},i.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},25636:function(e,t,n){var r=e.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};r.sha=n(83443),r.sha1=n(32798),r.sha224=n(47803),r.sha256=n(91772),r.sha384=n(43030),r.sha512=n(90566)},83443:function(e,t,n){var r=n(59503),i=n(12023),s=n(37225).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,p=0;p<16;++p)n[p]=e.readInt32BE(4*p);for(;p<80;++p)n[p]=n[p-3]^n[p-8]^n[p-14]^n[p-16];for(var d=0;d<80;++d){var h=~~(d/20),f=0|((t=r)<<5|t>>>27)+u(h,i,s,a)+c+n[d]+o[h];c=a,a=s,s=l(i),i=r,r=f}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},32798:function(e,t,n){var r=n(59503),i=n(12023),s=n(37225).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function p(e,t,n,r){return 0===e?t&n|~t&r:2===e?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=(t=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|t>>>31;for(var h=0;h<80;++h){var f=~~(h/20),m=l(r)+p(f,i,s,a)+c+n[h]+o[f]|0;c=a,a=s,s=u(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},47803:function(e,t,n){var r=n(59503),i=n(91772),s=n(12023),o=n(37225).Buffer,a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},91772:function(e,t,n){var r=n(59503),i=n(12023),s=n(37225).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function p(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,f=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)n[v]=e.readInt32BE(4*v);for(;v<64;++v)n[v]=0|(((t=n[v-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[v-7]+h(n[v-15])+n[v-16];for(var b=0;b<64;++b){var y=g+d(c)+l(c,f,m)+o[b]+n[b]|0,k=p(r)+u(r,i,s)|0;g=m,m=f,f=c,c=a+y|0,a=s,s=i,i=r,r=y+k|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=f+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=s.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},43030:function(e,t,n){var r=n(59503),i=n(90566),s=n(12023),o=n(37225).Buffer,a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},90566:function(e,t,n){var r=n(59503),i=n(12023),s=n(37225).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function p(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function f(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function m(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function v(e,t){return e>>>0<t>>>0?1:0}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,s=0|this._dh,a=0|this._eh,c=0|this._fh,b=0|this._gh,y=0|this._hh,k=0|this._al,w=0|this._bl,_=0|this._cl,E=0|this._dl,C=0|this._el,S=0|this._fl,j=0|this._gl,M=0|this._hl,x=0;x<32;x+=2)t[x]=e.readInt32BE(4*x),t[x+1]=e.readInt32BE(4*x+4);for(;x<160;x+=2){var N=t[x-30],A=t[x-30+1],O=h(N,A),T=f(A,N),P=m(N=t[x-4],A=t[x-4+1]),I=g(A,N),R=t[x-14],U=t[x-14+1],Z=t[x-32],D=t[x-32+1],L=T+U|0,z=O+R+v(L,T)|0;z=(z=z+P+v(L=L+I|0,I)|0)+Z+v(L=L+D|0,D)|0,t[x]=z,t[x+1]=L}for(var B=0;B<160;B+=2){z=t[B],L=t[B+1];var F=u(n,r,i),V=u(k,w,_),q=p(n,k),H=p(k,n),W=d(a,C),$=d(C,a),J=o[B],K=o[B+1],G=l(a,c,b),Y=l(C,S,j),X=M+$|0,Q=y+W+v(X,M)|0;Q=(Q=(Q=Q+G+v(X=X+Y|0,Y)|0)+J+v(X=X+K|0,K)|0)+z+v(X=X+L|0,L)|0;var ee=H+V|0,te=q+F+v(ee,H)|0;y=b,M=j,b=c,j=S,c=a,S=C,a=s+Q+v(C=E+X|0,E)|0,s=i,E=_,i=r,_=w,r=n,w=k,n=Q+te+v(k=X+ee|0,X)|0}this._al=this._al+k|0,this._bl=this._bl+w|0,this._cl=this._cl+_|0,this._dl=this._dl+E|0,this._el=this._el+C|0,this._fl=this._fl+S|0,this._gl=this._gl+j|0,this._hl=this._hl+M|0,this._ah=this._ah+n+v(this._al,k)|0,this._bh=this._bh+r+v(this._bl,w)|0,this._ch=this._ch+i+v(this._cl,_)|0,this._dh=this._dh+s+v(this._dl,E)|0,this._eh=this._eh+a+v(this._el,C)|0,this._fh=this._fh+c+v(this._fl,S)|0,this._gh=this._gh+b+v(this._gl,j)|0,this._hh=this._hh+y+v(this._hl,M)|0},c.prototype._hash=function(){var e=s.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},62470:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var i,s=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=a();if(t&&t.has(e))return t.get(e);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){var o=i?Object.getOwnPropertyDescriptor(e,s):null;o&&(o.get||o.set)?Object.defineProperty(n,s,o):n[s]=e[s]}return n.default=e,t&&t.set(e,n),n}(n(99196)),o=(i=n(11268))&&i.__esModule?i:{default:i};function a(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return a=function(){return e},e}function c(){return c=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n,r=0;r<t.length;r++)(n=t[r]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){return u(this,t),n.apply(this,arguments)}!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,e);var n=h(t);return function(e,t,n){t&&p(e.prototype,t),n&&p(e,n)}(t,[{key:"render",value:function(){var e,t=this.props,n=t.size,r=t.onClick,i=t.icon,o=t.className,a=l(t,["size","onClick","icon","className"]),u=["social-logo","social-logo-"+i,o].filter(Boolean).join(" ");switch(i){default:e=s.default.createElement("svg",c({height:n,width:n},a));break;case"amazon":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M13.582 8.182c-1.648.185-3.802.308-5.344.984-1.781.769-3.03 2.337-3.03 4.644 0 2.953 1.86 4.429 4.253 4.429 2.02 0 3.125-.477 4.685-2.065.516.747.685 1.109 1.629 1.894a.589.589 0 00.672-.066l.006.006c.567-.505 1.599-1.401 2.18-1.888.231-.188.19-.496.009-.754-.52-.718-1.072-1.303-1.072-2.634V8.305c0-1.876.133-3.599-1.249-4.891C15.23 2.369 13.422 2 12.04 2 9.336 2 6.318 3.01 5.686 6.351c-.068.355.191.542.423.594l2.754.298c.258-.013.445-.266.494-.523.236-1.151 1.2-1.706 2.284-1.706.584 0 1.249.215 1.595.738.398.584.346 1.384.346 2.061v.369zm-.533 5.906c-.451.8-1.169 1.291-1.967 1.291-1.09 0-1.728-.83-1.728-2.061 0-2.42 2.171-2.86 4.227-2.86v.615c.001 1.108.027 2.031-.532 3.015zm7.634 5.251C18.329 21.076 14.917 22 11.979 22c-4.118 0-7.826-1.522-10.632-4.057-.22-.199-.024-.471.241-.317 3.027 1.762 6.771 2.823 10.639 2.823 2.608 0 5.476-.541 8.115-1.66.397-.169.73.262.341.55zm.653 1.704c-.194.163-.379.076-.293-.139.284-.71.92-2.298.619-2.684-.301-.386-1.99-.183-2.749-.092-.23.027-.266-.173-.059-.319 1.348-.946 3.555-.673 3.811-.356.26.32-.066 2.533-1.329 3.59z"})));break;case"behance":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7.799 5.698c.589 0 1.12.051 1.606.156.482.102.894.273 1.241.507.344.235.612.546.804.938.188.387.281.871.281 1.443 0 .619-.141 1.137-.421 1.551-.284.413-.7.751-1.255 1.014.756.218 1.317.601 1.689 1.146.374.549.557 1.205.557 1.975 0 .623-.12 1.161-.359 1.612a3.144 3.144 0 01-.973 1.114c-.408.288-.876.5-1.399.637A6.144 6.144 0 017.963 18H2V5.698h5.799m-.35 4.97c.481 0 .878-.114 1.192-.345.311-.228.463-.603.463-1.119 0-.286-.051-.523-.152-.707a1.123 1.123 0 00-.416-.427 1.733 1.733 0 00-.596-.216 3.616 3.616 0 00-.697-.06H4.709v2.874h2.74zm.151 5.237c.267 0 .521-.024.759-.077.243-.053.457-.137.637-.261.182-.12.332-.283.441-.491.11-.206.163-.474.163-.798 0-.633-.18-1.084-.533-1.357-.356-.27-.83-.404-1.413-.404H4.709v3.388H7.6zm8.562-.041c.367.358.897.538 1.583.538.493 0 .92-.125 1.277-.374.354-.248.571-.514.654-.79h2.155c-.347 1.072-.872 1.838-1.589 2.299-.708.463-1.572.693-2.58.693-.701 0-1.332-.113-1.899-.337a4.041 4.041 0 01-1.439-.958 4.364 4.364 0 01-.904-1.484 5.433 5.433 0 01-.32-1.899c0-.666.11-1.288.329-1.863a4.36 4.36 0 01.933-1.492c.406-.42.885-.751 1.444-.994a4.63 4.63 0 011.857-.363c.754 0 1.414.145 1.98.44a3.941 3.941 0 011.389 1.181 4.82 4.82 0 01.783 1.69c.16.632.217 1.292.171 1.983h-6.428c-.001.706.237 1.372.604 1.73m2.811-4.68c-.291-.321-.783-.496-1.384-.496-.39 0-.714.066-.973.2a1.972 1.972 0 00-.621.491 1.772 1.772 0 00-.328.628 2.695 2.695 0 00-.111.587h3.98c-.058-.625-.271-1.085-.563-1.41zm-3.916-3.446h4.985V6.524h-4.985v1.214z"})));break;case"blogger-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19.779 9.904h-.981l-.021.001a1.163 1.163 0 01-1.16-1.079l-.001-.013A5.813 5.813 0 0011.803 3H8.871a5.813 5.813 0 00-5.813 5.813v6.375a5.813 5.813 0 005.813 5.813h6.257a5.814 5.814 0 005.813-5.813l.002-4.121a1.164 1.164 0 00-1.164-1.163zM8.726 7.713h3.291a1.117 1.117 0 110 2.234H8.726a1.117 1.117 0 110-2.234zm6.601 8.657H8.72a1.057 1.057 0 110-2.114h6.607a1.057 1.057 0 110 2.114z"})));break;case"blogger":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M14.722 14.019a.654.654 0 01-.654.654H9.977a.654.654 0 010-1.308h4.091c.361 0 .654.293.654.654zm-4.741-3.321h2.038a.692.692 0 000-1.384H9.981a.692.692 0 000 1.384zM21 5v14a2 2 0 01-2 2H5a2 2 0 01-2-2V5a2 2 0 012-2h14a2 2 0 012 2zm-3.456 6.39a.72.72 0 00-.72-.72h-.607l-.013.001a.72.72 0 01-.718-.668l-.001-.008a3.599 3.599 0 00-3.599-3.599H10.07a3.599 3.599 0 00-3.599 3.599v3.947a3.6 3.6 0 003.599 3.599h3.874a3.599 3.599 0 003.599-3.599l.001-2.552z"})));break;case"codepen":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22.016 8.84l-.007-.037c-.005-.025-.008-.048-.015-.072-.003-.015-.01-.028-.013-.042l-.023-.062-.02-.042a.391.391 0 00-.03-.057.357.357 0 00-.025-.038l-.035-.052-.03-.037c-.015-.017-.028-.032-.043-.045-.01-.012-.022-.023-.035-.035a.442.442 0 00-.048-.04l-.037-.03-.015-.012-9.161-6.096a.864.864 0 00-.955 0L2.359 8.237l-.015.012-.038.028-.048.04a.638.638 0 00-.078.082c-.012.013-.022.023-.03.037-.011.017-.025.035-.035.052a.498.498 0 01-.025.038c-.011.022-.021.039-.03.059a.39.39 0 01-.02.041 1.184 1.184 0 00-.034.106c-.007.023-.011.046-.016.071-.001.014-.005.025-.006.037a.73.73 0 00-.009.114v6.093c0 .037.003.075.008.112l.007.038c.005.023.008.047.015.072a.209.209 0 00.013.04c.007.022.013.042.022.063l.02.04a.4.4 0 00.055.096l.035.052.03.037a.603.603 0 00.042.045l.035.035c.015.013.032.028.048.04l.038.03.013.01 9.163 6.095a.858.858 0 00.959.004l9.163-6.095.015-.01c.013-.01.027-.02.037-.03a.534.534 0 00.048-.04c.013-.012.025-.023.035-.035.017-.015.03-.032.043-.045l.03-.037a.678.678 0 00.035-.052l.025-.038a.4.4 0 00.03-.058l.02-.04.023-.063c.003-.013.01-.027.013-.04.007-.025.01-.048.015-.072l.007-.037c.003-.042.007-.079.007-.117V8.954a.625.625 0 00-.008-.114zm-9.154-4.376l6.751 4.49-3.016 2.013-3.735-2.492V4.464zm-1.724 0v4.009l-3.735 2.494-3.014-2.013 6.749-4.49zm-7.439 6.098L5.853 12l-2.155 1.438v-2.876zm7.439 8.974l-6.749-4.491 3.015-2.011 3.735 2.492v4.01zM12 14.035L8.953 12 12 9.966 15.047 12 12 14.035zm.862 5.501v-4.009l3.735-2.492 3.016 2.011-6.751 4.49zm7.441-6.098L18.147 12l2.156-1.438v2.876z"})));break;case"dribbble":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10zm8.434-8.631c-.292-.092-2.644-.794-5.32-.365 1.117 3.07 1.572 5.57 1.659 6.09a8.56 8.56 0 003.661-5.725zm-5.098 6.507c-.127-.749-.623-3.361-1.822-6.477l-.056.019c-4.818 1.679-6.547 5.02-6.701 5.334A8.5 8.5 0 0012 20.555a8.488 8.488 0 003.336-.679zm-9.682-2.152c.193-.331 2.538-4.213 6.943-5.637.111-.036.224-.07.337-.102a29.017 29.017 0 00-.692-1.45c-4.266 1.277-8.405 1.223-8.778 1.216a8.497 8.497 0 002.19 5.973zm-2.015-7.46c.382.005 3.901.02 7.897-1.041a54.477 54.477 0 00-3.167-4.94 8.572 8.572 0 00-4.73 5.981zm6.359-6.555a45.7 45.7 0 013.187 5c3.037-1.138 4.323-2.867 4.477-3.085a8.508 8.508 0 00-7.664-1.915zm8.614 2.903c-.18.243-1.612 2.078-4.77 3.367a27.028 27.028 0 01.751 1.678c2.842-.357 5.666.215 5.948.275a8.503 8.503 0 00-1.929-5.32z"})));break;case"dropbox":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 6.134L6.069 9.797 2 6.54l5.883-3.843L12 6.134zm-10 6.92l5.883 3.843L12 13.459 6.069 9.797 2 13.054zm10 .405l4.116 3.439L22 13.054l-4.069-3.257L12 13.459zM22 6.54l-5.884-3.843L12 6.134l5.931 3.663L22 6.54zm-9.989 7.66l-4.129 3.426-1.767-1.153v1.291l5.896 3.539 5.897-3.539v-1.291l-1.769 1.153-4.128-3.426z"})));break;case"eventbrite":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18.041 3.931L5.959 3A2.96 2.96 0 003 5.959v12.083A2.96 2.96 0 005.959 21l12.083-.931C19.699 19.983 21 18.744 21 17.11V6.89c0-1.634-1.259-2.863-2.959-2.959zM16.933 8.17c-.082.215-.192.432-.378.551-.188.122-.489.132-.799.132-1.521 0-3.062-.048-4.607-.048-.152.708-.304 1.416-.451 2.128.932-.004 1.873.005 2.81.005.726 0 1.462-.069 1.586.525.04.189-.001.426-.052.615-.105.38-.258.676-.625.783-.185.054-.408.058-.646.058-1.145 0-2.345.017-3.493.02-.169.772-.328 1.553-.489 2.333 1.57-.005 3.067-.041 4.633-.058.627-.007 1.085.194 1.009.85a2.17 2.17 0 01-.211.725c-.102.208-.248.376-.488.452-.237.075-.541.064-.862.078-.304.014-.614.008-.924.016-.309.009-.619.022-.919.022-1.253 0-2.429.08-3.683.073-.603-.004-1.014-.249-1.124-.757-.059-.273-.018-.58.036-.841a3542.51 3542.51 0 011.629-7.763c.056-.265.114-.511.225-.714a1.24 1.24 0 01.79-.62c.368-.099.883-.047 1.344-.047.305 0 .612.008.914.016.925.026 1.817.03 2.747.053.304.007.615.016.915.016.621 0 1.17.073 1.245.614.039.288-.051.567-.132.783z",fillRule:"evenodd",clipRule:"evenodd"})));break;case"facebook":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12c0 5 3.7 9.1 8.4 9.9v-7H7.9V12h2.5V9.8c0-2.5 1.5-3.9 3.8-3.9 1.1 0 2.2.2 2.2.2v2.5h-1.3c-1.2 0-1.6.8-1.6 1.6V12h2.8l-.4 2.9h-2.3v7C18.3 21.1 22 17 22 12c0-5.5-4.5-10-10-10z"})));break;case"feed":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2 8.667V12c5.515 0 10 4.485 10 10h3.333c0-7.363-5.97-13.333-13.333-13.333zM2 2v3.333c9.19 0 16.667 7.477 16.667 16.667H22C22 10.955 13.045 2 2 2zm2.5 15a2.5 2.5 0 100 5 2.5 2.5 0 000-5z"})));break;case"flickr":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M6.5 7c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5zm11 0c-2.75 0-5 2.25-5 5s2.25 5 5 5 5-2.25 5-5-2.25-5-5-5z"})));break;case"foursquare":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M17.573 2H6.905C5.434 2 5 3.107 5 3.805v16.948c0 .785.422 1.077.66 1.172.238.097.892.177 1.285-.275 0 0 5.035-5.843 5.122-5.93.132-.132.132-.132.262-.132h3.26c1.368 0 1.588-.977 1.732-1.552.078-.318.692-3.428 1.225-6.122l.675-3.368C19.56 2.893 19.14 2 17.573 2zm-1.078 5.22c-.053.252-.372.518-.665.518h-4.157c-.467 0-.802.318-.802.787v.508c0 .467.337.798.805.798h3.528c.331 0 .655.362.583.715-.072.353-.407 2.102-.448 2.295-.04.193-.262.523-.655.523h-2.88c-.523 0-.683.068-1.033.503-.35.437-3.505 4.223-3.505 4.223-.032.035-.063.027-.063-.015V4.852c0-.298.26-.648.648-.648h8.562c.315 0 .61.297.528.683l-.446 2.333z"})));break;case"ghost":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.203 20.997H3.005v-3.599h7.198v3.599zm10.792-3.599h-7.193v3.599h7.193v-3.599zm.003-7.198H3v3.599h17.998V10.2zm-7.195-7.197H3.005v3.599h10.798V3.003zm7.197 0h-3.599v3.599H21V3.003z"})));break;case"github":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.419 2.865 8.166 6.839 9.489.5.09.682-.218.682-.484 0-.236-.009-.866-.014-1.699-2.782.602-3.369-1.34-3.369-1.34-.455-1.157-1.11-1.465-1.11-1.465-.909-.62.069-.608.069-.608 1.004.071 1.532 1.03 1.532 1.03.891 1.529 2.341 1.089 2.91.833.091-.647.349-1.086.635-1.337-2.22-.251-4.555-1.111-4.555-4.943 0-1.091.39-1.984 1.03-2.682-.103-.254-.447-1.27.097-2.646 0 0 .84-.269 2.75 1.025A9.548 9.548 0 0112 6.836c.85.004 1.705.114 2.504.336 1.909-1.294 2.748-1.025 2.748-1.025.546 1.376.202 2.394.1 2.646.64.699 1.026 1.591 1.026 2.682 0 3.841-2.337 4.687-4.565 4.935.359.307.679.917.679 1.852 0 1.335-.012 2.415-.012 2.741 0 .269.18.579.688.481A9.997 9.997 0 0022 12c0-5.523-4.477-10-10-10z"})));break;case"google-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.05 16c-3.312 0-6-2.688-6-6s2.688-6 6-6c1.62 0 2.976.594 4.014 1.566L14.26 9.222c-.432-.408-1.188-.888-2.31-.888-1.986 0-3.606 1.65-3.606 3.672 0 2.022 1.62 3.672 3.606 3.672 2.298 0 3.144-1.59 3.3-2.532h-3.306v-2.238h5.616c.084.378.15.732.15 1.23 0 3.426-2.298 5.862-5.76 5.862z"})));break;case"google-plus-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M8 11h6.61c.06.35.11.7.11 1.16 0 4-2.68 6.84-6.72 6.84-3.87 0-7-3.13-7-7s3.13-7 7-7c1.89 0 3.47.69 4.69 1.83l-1.9 1.83c-.52-.5-1.43-1.08-2.79-1.08-2.39 0-4.34 1.98-4.34 4.42S5.61 16.42 8 16.42c2.77 0 3.81-1.99 3.97-3.02H8V11zm15 0h-2V9h-2v2h-2v2h2v2h2v-2h2"})));break;case"google-plus":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1.919 14.05a4.051 4.051 0 010-8.1c1.094 0 2.009.401 2.709 1.057l-1.15 1.118a2.229 2.229 0 00-1.559-.599c-1.341 0-2.434 1.114-2.434 2.479s1.094 2.479 2.434 2.479c1.551 0 2.122-1.073 2.227-1.709h-2.232v-1.511h3.791c.057.255.101.494.101.83.001 2.312-1.55 3.956-3.887 3.956zM19 12.75h-1.25V14h-1.5v-1.25H15v-1.5h1.25V10h1.5v1.25H19v1.5z"})));break;case"google":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12.02 10.18v3.73h5.51c-.26 1.57-1.67 4.22-5.5 4.22-3.31 0-6.01-2.75-6.01-6.12s2.7-6.12 6.01-6.12c1.87 0 3.13.8 3.85 1.48l2.84-2.76C16.99 2.99 14.73 2 12.03 2c-5.52 0-10 4.48-10 10s4.48 10 10 10c5.77 0 9.6-4.06 9.6-9.77 0-.83-.11-1.42-.25-2.05h-9.36z"})));break;case"instagram":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 4.622c2.403 0 2.688.009 3.637.052.877.04 1.354.187 1.671.31.42.163.72.358 1.035.673.315.315.51.615.673 1.035.123.317.27.794.31 1.671.043.949.052 1.234.052 3.637s-.009 2.688-.052 3.637c-.04.877-.187 1.354-.31 1.671-.163.42-.358.72-.673 1.035-.315.315-.615.51-1.035.673-.317.123-.794.27-1.671.31-.949.043-1.233.052-3.637.052s-2.688-.009-3.637-.052c-.877-.04-1.354-.187-1.671-.31a2.786 2.786 0 01-1.035-.673 2.786 2.786 0 01-.673-1.035c-.123-.317-.27-.794-.31-1.671-.043-.949-.052-1.234-.052-3.637s.009-2.688.052-3.637c.04-.877.187-1.354.31-1.671.163-.42.358-.72.673-1.035.315-.315.615-.51 1.035-.673.317-.123.794-.27 1.671-.31.949-.043 1.234-.052 3.637-.052M12 3c-2.444 0-2.751.01-3.711.054-.958.044-1.612.196-2.184.418a4.401 4.401 0 00-1.594 1.039c-.5.5-.808 1.002-1.038 1.594-.223.572-.375 1.226-.419 2.184C3.01 9.249 3 9.556 3 12s.01 2.751.054 3.711c.044.958.196 1.612.418 2.185.23.592.538 1.094 1.038 1.594s1.002.808 1.594 1.038c.572.222 1.227.375 2.185.418.96.044 1.267.054 3.711.054s2.751-.01 3.711-.054c.958-.044 1.612-.196 2.185-.418a4.411 4.411 0 001.594-1.038c.5-.5.808-1.002 1.038-1.594.222-.572.375-1.227.418-2.185.044-.96.054-1.267.054-3.711s-.01-2.751-.054-3.711c-.044-.958-.196-1.612-.418-2.185A4.411 4.411 0 0019.49 4.51c-.5-.5-1.002-.808-1.594-1.038-.572-.222-1.227-.375-2.185-.418C14.751 3.01 14.444 3 12 3zm0 4.378a4.622 4.622 0 100 9.244 4.622 4.622 0 000-9.244zM12 15a3 3 0 110-6 3 3 0 010 6zm4.804-8.884a1.08 1.08 0 10.001 2.161 1.08 1.08 0 00-.001-2.161z"})));break;case"linkedin":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19.7 3H4.3A1.3 1.3 0 003 4.3v15.4A1.3 1.3 0 004.3 21h15.4a1.3 1.3 0 001.3-1.3V4.3A1.3 1.3 0 0019.7 3zM8.339 18.338H5.667v-8.59h2.672v8.59zM7.004 8.574a1.548 1.548 0 11-.002-3.096 1.548 1.548 0 01.002 3.096zm11.335 9.764H15.67v-4.177c0-.996-.017-2.278-1.387-2.278-1.389 0-1.601 1.086-1.601 2.206v4.249h-2.667v-8.59h2.559v1.174h.037c.356-.675 1.227-1.387 2.526-1.387 2.703 0 3.203 1.779 3.203 4.092v4.711z"})));break;case"mail":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20 4H4a2 2 0 00-2 2v12a2 2 0 002 2h16a2 2 0 002-2V6a2 2 0 00-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"medium-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M7.423 6c3.27 0 5.922 2.686 5.922 6s-2.651 6-5.922 6S1.5 15.313 1.5 12s2.652-6 5.923-6zm9.458.351c1.635 0 2.961 2.53 2.961 5.65 0 3.118-1.325 5.648-2.96 5.648-1.636 0-2.962-2.53-2.962-5.649s1.325-5.649 2.96-5.649zm4.577.589c.576 0 1.042 2.265 1.042 5.06 0 2.794-.466 5.06-1.042 5.06-.575 0-1.04-2.265-1.04-5.06 0-2.794.465-5.06 1.04-5.06z",fillRule:"nonzero"})));break;case"medium":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M3 3v18h18V3H3zm15 4.26l-1 .93a.28.28 0 00-.11.27v6.8a.27.27 0 00.11.27l.94.93v.2h-4.75v-.2l1-1c.09-.1.09-.12.09-.27V9.74l-2.71 6.9h-.37L8 9.74v4.62a.67.67 0 00.17.54l1.27 1.54v.2H5.86v-.2l1.27-1.54a.64.64 0 00.17-.54V9a.5.5 0 00-.16-.4L6 7.26v-.2h3.52L12.23 13l2.38-5.94H18v.2z"})));break;case"patreon":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),s.default.createElement("g",null,s.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.975 5a5.05 5.05 0 00-5.041 5.046c0 2.774 2.261 5.03 5.04 5.03A5.034 5.034 0 0019 10.047C19 7.264 16.746 5 13.975 5zM5 18.44h2.461V5H5v13.44z"})));break;case"pinterest-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12.289 2C6.617 2 3.606 5.648 3.606 9.622c0 1.846 1.025 4.146 2.666 4.878.25.111.381.063.439-.169.044-.175.267-1.029.365-1.428a.365.365 0 00-.091-.362c-.54-.63-.975-1.791-.975-2.873 0-2.777 2.194-5.464 5.933-5.464 3.23 0 5.49 2.108 5.49 5.122 0 3.407-1.794 5.768-4.13 5.768-1.291 0-2.257-1.021-1.948-2.277.372-1.495 1.089-3.112 1.089-4.191 0-.967-.542-1.775-1.663-1.775-1.319 0-2.379 1.309-2.379 3.059 0 1.115.394 1.869.394 1.869s-1.302 5.279-1.54 6.261c-.405 1.666.053 4.368.094 4.604.021.126.167.169.25.063.129-.165 1.699-2.419 2.142-4.051.158-.59.817-2.995.817-2.995.43.784 1.681 1.446 3.013 1.446 3.963 0 6.822-3.494 6.822-7.833C20.394 5.112 16.849 2 12.289 2"})));break;case"pinterest":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12c0 4.236 2.636 7.855 6.356 9.312-.087-.791-.166-2.005.035-2.869.182-.78 1.173-4.971 1.173-4.971s-.299-.599-.299-1.484c0-1.39.806-2.429 1.809-2.429.853 0 1.265.641 1.265 1.409 0 .858-.546 2.141-.828 3.329-.236.996.499 1.807 1.481 1.807 1.777 0 3.144-1.874 3.144-4.579 0-2.394-1.72-4.068-4.177-4.068-2.845 0-4.515 2.134-4.515 4.34 0 .859.331 1.781.744 2.282a.297.297 0 01.069.287c-.077.316-.246.995-.279 1.134-.044.183-.145.222-.334.134-1.249-.581-2.03-2.407-2.03-3.874 0-3.154 2.292-6.051 6.607-6.051 3.469 0 6.165 2.472 6.165 5.775 0 3.446-2.173 6.22-5.189 6.22-1.013 0-1.966-.526-2.292-1.148l-.623 2.377c-.226.869-.835 1.957-1.243 2.622.936.289 1.93.445 2.961.445 5.523 0 10-4.477 10-10S17.523 2 12 2z"})));break;case"pocket":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21.927 4.194A1.82 1.82 0 0020.222 3H3.839a1.823 1.823 0 00-1.813 1.814v6.035l.069 1.2c.29 2.73 1.707 5.115 3.899 6.778l.119.089.025.018a9.897 9.897 0 003.91 1.727 10.06 10.06 0 004.049-.014.261.261 0 00.064-.023 9.906 9.906 0 003.753-1.691l.025-.018c.04-.029.08-.058.119-.089 2.192-1.664 3.609-4.049 3.898-6.778l.069-1.2V4.814a1.792 1.792 0 00-.098-.62zm-4.235 6.287l-4.704 4.512a1.372 1.372 0 01-1.898 0l-4.705-4.512a1.371 1.371 0 111.898-1.979l3.756 3.601 3.755-3.601a1.372 1.372 0 011.898 1.979z"})));break;case"polldaddy":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.487 2 2 6.487 2 12c0 5.514 4.487 10 10 10 5.514 0 10-4.486 10-10 0-5.513-4.486-10-10-10zm.991 1.68c2.361.084 4.657 1.251 6.197 3.136.283.334.541.693.774 1.067a7.775 7.775 0 00-6.094-2.94 7.764 7.764 0 00-5.896 2.703c-.006.003-.01.01-.016.014l-.152.159-.031.032a6.122 6.122 0 00-1.633 4.165 6.15 6.15 0 006.143 6.143c.57 0 1.123-.081 1.649-.227-1.849.839-4.131.747-5.926-.324-1.841-1.089-3.171-3.111-3.433-5.313A7.386 7.386 0 016.69 6.137C8.294 4.5 10.634 3.563 12.991 3.68zm3.373 8.519c-.049-2.024-1.587-3.889-3.544-4.174-1.927-.343-3.917.857-4.451 2.661a3.673 3.673 0 00.2 2.653c.39.8 1.067 1.451 1.894 1.759 1.664.654 3.63-.27 4.173-1.863.593-1.58-.396-3.423-1.94-3.776-1.52-.407-3.161.757-3.204 2.243a2.362 2.362 0 00.753 1.879c.501.476 1.23.667 1.871.529a2.067 2.067 0 001.469-1.134 1.912 1.912 0 00-.087-1.767c-.297-.513-.859-.863-1.429-.881a1.698 1.698 0 00-1.437.679 1.525 1.525 0 00-.18 1.489c.004.011.01.021.016.03.193.634.774 1.1 1.467 1.117a1.618 1.618 0 01-.97-.183c-.466-.244-.809-.747-.893-1.29a1.8 1.8 0 01.499-1.539 2.016 2.016 0 011.58-.606c.593.04 1.159.35 1.517.859.364.496.51 1.156.383 1.773-.116.62-.529 1.174-1.093 1.514a2.515 2.515 0 01-1.914.286c-.65-.161-1.226-.606-1.584-1.206a2.825 2.825 0 01-.341-2.031c.143-.7.573-1.321 1.176-1.753 1.193-.883 3.056-.751 4.106.411 1.106 1.1 1.327 3.027.406 4.371-.877 1.376-2.74 2.086-4.374 1.594-1.639-.449-2.913-2.079-3.031-3.853-.07-.884.13-1.797.583-2.577.445-.777 1.155-1.432 1.972-1.862 1.64-.88 3.816-.743 5.349.424 1.251.924 2.083 2.42 2.236 4.009l.001.03c0 2.9-2.359 5.26-5.26 5.26a5.216 5.216 0 01-1.947-.376 5.01 5.01 0 002.613-.079 4.955 4.955 0 002.514-1.751c.618-.828.95-1.861.901-2.869zM12 21.113c-5.024 0-9.111-4.087-9.111-9.113 0-4.789 3.713-8.723 8.411-9.081a6.548 6.548 0 00-.397.06c-2.644.453-5.017 2.106-6.32 4.409-1.309 2.301-1.391 5.19-.3 7.527 1.056 2.34 3.253 4.156 5.776 4.553 2.497.44 5.133-.483 6.787-2.301 1.719-1.797 2.269-4.529 1.486-6.796-.583-1.81-1.976-3.331-3.7-4.046 3.417.594 6.174 3.221 6.174 6.781 0 1.004-.241 2.02-.657 2.966-1.498 2.984-4.586 5.041-8.149 5.041z"})));break;case"print":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3a2 2 0 01-2 2H7a2 2 0 01-2-2v-3H2V9a2 2 0 012-2h1V5a2 2 0 012-2h10a2 2 0 012 2v2h1a2 2 0 012 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5a1.5 1.5 0 10-3.001.001A1.5 1.5 0 0020 10.5z"})));break;case"reddit":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22 11.816a2.279 2.279 0 00-2.277-2.277c-.593 0-1.122.24-1.526.614-1.481-.965-3.455-1.594-5.647-1.69l1.171-3.702 3.18.748a1.878 1.878 0 001.876 1.862 1.88 1.88 0 001.877-1.878 1.88 1.88 0 00-1.877-1.877c-.769 0-1.431.466-1.72 1.13l-3.508-.826a.386.386 0 00-.46.261l-1.35 4.268c-2.316.038-4.411.67-5.97 1.671a2.24 2.24 0 00-1.492-.581A2.279 2.279 0 002 11.816c0 .814.433 1.523 1.078 1.925a4.056 4.056 0 00-.061.672c0 3.292 4.011 5.97 8.941 5.97s8.941-2.678 8.941-5.97c0-.214-.02-.424-.053-.632A2.259 2.259 0 0022 11.816zm-3.224-7.422a1.1 1.1 0 11-.001 2.199 1.1 1.1 0 01.001-2.199zM2.777 11.816c0-.827.672-1.5 1.499-1.5.313 0 .598.103.838.269-.851.676-1.477 1.479-1.812 2.36a1.482 1.482 0 01-.525-1.129zm9.182 7.79c-4.501 0-8.164-2.329-8.164-5.193S7.457 9.22 11.959 9.22s8.164 2.329 8.164 5.193-3.663 5.193-8.164 5.193zm8.677-6.605c-.326-.89-.948-1.701-1.797-2.384.248-.186.55-.301.883-.301.827 0 1.5.673 1.5 1.5.001.483-.23.911-.586 1.185zm-11.64 1.703c-.76 0-1.397-.616-1.397-1.376 0-.76.637-1.397 1.397-1.397s1.376.637 1.376 1.397-.616 1.376-1.376 1.376zm7.405-1.376c0 .76-.616 1.376-1.376 1.376-.76 0-1.399-.616-1.399-1.376 0-.76.639-1.397 1.399-1.397s1.376.637 1.376 1.397zm-1.172 3.38a.389.389 0 010 .55c-.674.674-1.727 1.002-3.219 1.002l-.011-.002-.011.002c-1.492 0-2.544-.328-3.218-1.002a.389.389 0 11.55-.55c.521.521 1.394.775 2.669.775l.011.002.011-.002c1.275 0 2.148-.253 2.669-.775a.387.387 0 01.549 0z"})));break;case"share":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M18 16c-.788 0-1.499.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118A2.981 2.981 0 0015 19a3 3 0 103-3z"})));break;case"skype":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M10.113 2.699l.1-.02c.033.017.066.033.098.051l-.198-.031zM2.72 10.223l-.017.103c.018.032.033.064.051.095l-.034-.198zm18.555 3.548c.007-.035.011-.071.018-.106-.018-.031-.033-.064-.052-.095l.034.201zm-7.712 7.428c.032.019.065.035.096.053l.105-.017-.201-.036zM22 16.386a5.55 5.55 0 01-1.637 3.953 5.548 5.548 0 01-3.953 1.637 5.575 5.575 0 01-2.75-.725l.105-.017-.202-.035c.032.019.065.035.096.053a9.524 9.524 0 01-1.654.147 9.375 9.375 0 01-3.676-.743 9.38 9.38 0 01-3.002-2.023 9.397 9.397 0 01-2.023-3.002 9.375 9.375 0 01-.743-3.676c0-.546.049-1.093.142-1.628.018.032.033.064.051.095l-.034-.199-.017.103A5.586 5.586 0 012 7.615c0-1.493.582-2.898 1.637-3.953A5.555 5.555 0 017.59 2.024c.915 0 1.818.228 2.622.655l-.1.02.199.031c-.032-.018-.066-.034-.098-.051l.004-.001a9.543 9.543 0 011.788-.169 9.41 9.41 0 016.678 2.766 9.4 9.4 0 012.024 3.002 9.375 9.375 0 01.743 3.676c0 .575-.054 1.15-.157 1.712-.018-.031-.033-.064-.052-.095l.034.201c.007-.035.011-.071.018-.106.461.829.707 1.767.707 2.721zm-5.183-2.248c0-1.331-.613-2.743-3.033-3.282l-2.209-.49c-.84-.192-1.807-.444-1.807-1.237 0-.794.679-1.348 1.903-1.348 2.468 0 2.243 1.696 3.468 1.696.645 0 1.209-.379 1.209-1.031 0-1.521-2.435-2.663-4.5-2.663-2.242 0-4.63.952-4.63 3.488 0 1.221.436 2.521 2.839 3.123l2.984.745c.903.223 1.129.731 1.129 1.189 0 .762-.758 1.507-2.129 1.507-2.679 0-2.307-2.062-3.743-2.062-.645 0-1.113.444-1.113 1.078 0 1.236 1.501 2.886 4.856 2.886 3.195 0 4.776-1.538 4.776-3.599z"})));break;case"spotify":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2m4.586 14.424a.622.622 0 01-.857.207c-2.348-1.435-5.304-1.76-8.785-.964a.622.622 0 11-.277-1.215c3.809-.871 7.077-.496 9.713 1.115a.623.623 0 01.206.857M17.81 13.7a.78.78 0 01-1.072.257c-2.687-1.652-6.785-2.131-9.965-1.166A.779.779 0 116.32 11.3c3.632-1.102 8.147-.568 11.234 1.328a.78.78 0 01.256 1.072m.105-2.835c-3.223-1.914-8.54-2.09-11.618-1.156a.935.935 0 11-.542-1.79c3.532-1.072 9.404-.865 13.115 1.338a.936.936 0 11-.955 1.608"})));break;case"squarespace":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M20.87 9.271a3.86 3.86 0 00-5.458 0l-6.141 6.141a.964.964 0 101.365 1.364l6.14-6.14a1.929 1.929 0 112.729 2.729l-6.022 6.022a1.929 1.929 0 002.729 0l4.658-4.658a3.86 3.86 0 000-5.458zm-2.047 2.047a.965.965 0 00-1.365 0l-6.14 6.14a1.929 1.929 0 01-2.729 0 .964.964 0 10-1.364 1.364 3.86 3.86 0 005.458 0l6.14-6.14a.966.966 0 000-1.364zm-2.047-6.141a3.858 3.858 0 00-5.458 0l-6.14 6.14a.964.964 0 101.364 1.364l6.141-6.14a1.929 1.929 0 012.729 0 .965.965 0 101.364-1.364zm-2.047 2.047a.964.964 0 00-1.364 0l-6.14 6.141a1.929 1.929 0 11-2.729-2.729l6.022-6.022a1.929 1.929 0 00-2.729 0L3.13 9.271a3.86 3.86 0 005.458 5.458l6.14-6.141a.963.963 0 00.001-1.364z"})));break;case"stumbleupon":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 4.294a4.471 4.471 0 00-4.471 4.471v6.353a1.059 1.059 0 11-2.118 0v-2.824H2v2.941a4.471 4.471 0 008.942 0v-6.47a1.059 1.059 0 112.118 0v1.294l1.412.647 2-.647V8.765A4.473 4.473 0 0012 4.294zm1.059 8.059v2.882a4.471 4.471 0 008.941 0v-2.824h-3.412v2.824a1.059 1.059 0 11-2.118 0v-2.882l-2 .647-1.411-.647z"})));break;case"telegram":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.08 14.757s-.25.625-.936.325l-2.541-1.949-1.63 1.486s-.127.096-.266.036c0 0-.12-.011-.27-.486-.15-.475-.911-2.972-.911-2.972L6 12.349s-.387-.137-.425-.438c-.037-.3.437-.462.437-.462l10.03-3.934s.824-.362.824.238l-1.786 9.004z"})));break;case"tiktok-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),s.default.createElement("g",null,s.default.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 3a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2H5zm9.584 3h-2.052l.019 8.128a1.73 1.73 0 11-1.215-1.65v-2.084h-.533a3.804 3.804 0 103.803 3.803l-.022-4.207c1.268.968 2.85.869 2.85.869V8.82C14.47 8.636 14.584 6 14.584 6z"})));break;case"tiktok":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12.22 2h3.42s-.19 4.394 4.75 4.702v3.396s-2.636.166-4.75-1.448l.037 7.011a6.338 6.338 0 11-6.34-6.338h.89v3.472a2.882 2.882 0 102.024 2.752L12.22 2z"})));break;case"tumblr-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.749 17.396c-.357.17-1.041.319-1.551.332-1.539.041-1.837-1.081-1.85-1.896V9.847h3.861v-2.91h-3.847V2.039h-2.817c-.046 0-.127.041-.138.144-.165 1.499-.867 4.13-3.783 5.181v2.484h1.945v6.282c0 2.151 1.587 5.206 5.775 5.135 1.413-.024 2.982-.616 3.329-1.126l-.924-2.743z"})));break;case"tumblr":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-5.569 14.265c-2.446.042-3.372-1.742-3.372-2.998v-3.668H8.923v-1.45c1.703-.614 2.113-2.15 2.209-3.025.007-.06.054-.084.081-.084h1.645V8.9h2.246v1.7H12.85v3.495c.008.476.182 1.131 1.081 1.107.298-.008.697-.094.906-.194l.54 1.601c-.205.296-1.121.641-1.946.656z"})));break;case"twitch":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M16.499 8.089h-1.636v4.91h1.636v-4.91zm-4.499 0h-1.637v4.91H12v-4.91zM4.228 3.178L3 6.451v13.092h4.499V22h2.456l2.454-2.456h3.681L21 14.636V3.178H4.228zm15.136 10.638L16.5 16.681H12l-2.453 2.453V16.68H5.863V4.814h13.501v9.002z"})));break;case"twitter-alt":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22.23 5.924a8.212 8.212 0 01-2.357.646 4.115 4.115 0 001.804-2.27 8.221 8.221 0 01-2.606.996 4.103 4.103 0 00-6.991 3.742 11.647 11.647 0 01-8.457-4.287 4.087 4.087 0 00-.556 2.063 4.1 4.1 0 001.825 3.415 4.09 4.09 0 01-1.859-.513v.052a4.104 4.104 0 003.292 4.023 4.099 4.099 0 01-1.853.07 4.11 4.11 0 003.833 2.85 8.236 8.236 0 01-5.096 1.756 8.33 8.33 0 01-.979-.057 11.617 11.617 0 006.29 1.843c7.547 0 11.675-6.252 11.675-11.675 0-.178-.004-.355-.012-.531a8.298 8.298 0 002.047-2.123z"})));break;case"twitter":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 3H5a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2V5a2 2 0 00-2-2zm-2.534 6.71c.004.099.007.198.007.298 0 3.045-2.318 6.556-6.556 6.556a6.52 6.52 0 01-3.532-1.035 4.626 4.626 0 003.412-.954 2.307 2.307 0 01-2.152-1.6 2.295 2.295 0 001.04-.04 2.306 2.306 0 01-1.848-2.259v-.029c.311.173.666.276 1.044.288a2.303 2.303 0 01-.713-3.076 6.54 6.54 0 004.749 2.407 2.305 2.305 0 013.926-2.101 4.602 4.602 0 001.463-.559 2.31 2.31 0 01-1.013 1.275c.466-.056.91-.18 1.323-.363-.31.461-.7.867-1.15 1.192z"})));break;case"vimeo":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M22.396 7.164c-.093 2.026-1.507 4.799-4.245 8.32C15.322 19.161 12.928 21 10.97 21c-1.214 0-2.24-1.119-3.079-3.359l-1.68-6.159c-.623-2.239-1.29-3.36-2.005-3.36-.156 0-.701.328-1.634.98l-.978-1.261c1.027-.902 2.04-1.805 3.037-2.708C6.001 3.95 7.03 3.327 7.715 3.264c1.619-.156 2.616.951 2.99 3.321.404 2.557.685 4.147.841 4.769.467 2.121.981 3.181 1.542 3.181.435 0 1.09-.688 1.963-2.065.871-1.376 1.338-2.422 1.401-3.142.125-1.187-.343-1.782-1.401-1.782-.498 0-1.012.115-1.541.341 1.023-3.35 2.977-4.977 5.862-4.884 2.139.063 3.148 1.45 3.024 4.161z"})));break;case"whatsapp":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M2.048 22l1.406-5.136a9.894 9.894 0 01-1.323-4.955C2.133 6.446 6.579 2 12.042 2a9.848 9.848 0 017.011 2.906 9.85 9.85 0 012.9 7.011c-.002 5.464-4.448 9.91-9.91 9.91h-.004a9.913 9.913 0 01-4.736-1.206L2.048 22zm5.497-3.172l.301.179a8.214 8.214 0 004.193 1.148h.003c4.54 0 8.235-3.695 8.237-8.237a8.189 8.189 0 00-2.41-5.828 8.182 8.182 0 00-5.824-2.416c-4.544 0-8.239 3.695-8.241 8.237a8.222 8.222 0 001.259 4.384l.196.312-.832 3.04 3.118-.819zm9.49-4.554c-.062-.103-.227-.165-.475-.289-.248-.124-1.465-.723-1.692-.806-.227-.083-.392-.124-.557.124-.165.248-.64.806-.784.971-.144.165-.289.186-.536.062-.248-.124-1.046-.385-1.991-1.229-.736-.657-1.233-1.468-1.378-1.715-.144-.248-.015-.382.109-.505.111-.111.248-.289.371-.434.124-.145.165-.248.248-.413.083-.165.041-.31-.021-.434s-.557-1.343-.763-1.839c-.202-.483-.407-.417-.559-.425-.144-.007-.31-.009-.475-.009a.91.91 0 00-.66.31c-.226.248-.866.847-.866 2.066 0 1.219.887 2.396 1.011 2.562.124.165 1.746 2.666 4.23 3.739.591.255 1.052.408 1.412.522.593.189 1.133.162 1.56.098.476-.071 1.465-.599 1.671-1.177.206-.58.206-1.075.145-1.179z"})));break;case"woocommerce":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M19 2H5C3.3 2 2 3.3 2 5v11c0 1.7 1.3 3 3 3h4l6 3-1-3h5c1.7 0 3-1.3 3-3V5c0-1.7-1.3-3-3-3zm-1.6 4.5c-.4.8-.8 2.1-1 3.9-.3 1.8-.4 3.1-.3 4.1 0 .3 0 .5-.1.7s-.3.4-.6.4-.6-.1-.9-.4c-1-1-1.8-2.6-2.4-4.6-.7 1.4-1.2 2.4-1.6 3.1-.6 1.2-1.2 1.8-1.6 1.9-.3 0-.5-.2-.8-.7-.5-1.4-1.1-4.2-1.7-8.2 0-.3 0-.5.2-.7.1-.2.4-.3.7-.4.5 0 .9.2.9.8.3 2.3.7 4.2 1.1 5.7l2.4-4.5c.2-.4.4-.6.8-.6.5 0 .8.3.9.9.3 1.4.6 2.6 1 3.7.3-2.7.8-4.7 1.4-5.9.2-.3.4-.5.7-.5.2 0 .5.1.7.2.2.2.3.4.3.6s0 .4-.1.5z"})));break;case"wordpress":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M12.158 12.786L9.46 20.625a8.984 8.984 0 005.526-.144.852.852 0 01-.065-.124l-2.763-7.571zM3.009 12a8.993 8.993 0 005.067 8.092L3.788 8.341A8.952 8.952 0 003.009 12zm15.06-.454c0-1.112-.399-1.881-.741-2.48-.456-.741-.883-1.368-.883-2.109 0-.826.627-1.596 1.51-1.596.04 0 .078.005.116.007A8.963 8.963 0 0012 3.009a8.982 8.982 0 00-7.512 4.052c.211.007.41.011.579.011.94 0 2.396-.114 2.396-.114.484-.028.541.684.057.741 0 0-.487.057-1.029.085l3.274 9.739 1.968-5.901-1.401-3.838c-.484-.028-.943-.085-.943-.085-.485-.029-.428-.769.057-.741 0 0 1.484.114 2.368.114.94 0 2.397-.114 2.397-.114.485-.028.542.684.057.741 0 0-.488.057-1.029.085l3.249 9.665.897-2.996c.456-1.169.684-2.137.684-2.907zm1.82-3.86c.039.286.06.593.06.924 0 .912-.171 1.938-.684 3.22l-2.746 7.94a8.984 8.984 0 004.47-7.771 8.922 8.922 0 00-1.1-4.313zM12 22C6.486 22 2 17.514 2 12S6.486 2 12 2s10 4.486 10 10-4.486 10-10 10z"})));break;case"xanga":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M9 9h6v6H9V9zM3 9h6V3H3v6zm12 0h6V3h-6v6zm0 12h6v-6h-6v6zM3 21h6v-6H3v6z"})));break;case"youtube":e=s.default.createElement("svg",c({className:u,height:n,width:n,onClick:r},a,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"}),s.default.createElement("g",null,s.default.createElement("path",{d:"M21.8 8.001s-.195-1.378-.795-1.985c-.76-.797-1.613-.801-2.004-.847-2.799-.202-6.997-.202-6.997-.202h-.009s-4.198 0-6.997.202c-.39.047-1.242.051-2.003.847-.6.607-.795 1.985-.795 1.985S2 9.62 2 11.238v1.517c0 1.618.2 3.237.2 3.237s.195 1.378.795 1.985c.761.797 1.76.771 2.205.855 1.6.153 6.8.201 6.8.201s4.203-.006 7.001-.209c.391-.047 1.243-.051 2.004-.847.6-.607.795-1.985.795-1.985s.2-1.618.2-3.237v-1.517c0-1.618-.2-3.237-.2-3.237zM9.935 14.594l-.001-5.62 5.404 2.82-5.403 2.8z"})))}return e}}]),t}(s.PureComponent);t.Z=v,g(v,"defaultProps",{size:24}),g(v,"propTypes",{icon:o.default.string.isRequired,size:o.default.number,onClick:o.default.func,className:o.default.string})},81717:function(e,t,n){e.exports=i;var r=n(2571).EventEmitter;function i(){r.call(this)}n(59503)(i,r),i.Readable=n(20465),i.Writable=n(48607),i.Duplex=n(95507),i.Transform=n(1866),i.PassThrough=n(15385),i.finished=n(87288),i.pipeline=n(60519),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function s(){n.readable&&n.resume&&n.resume()}n.on("data",i),e.on("drain",s),e._isStdio||t&&!1===t.end||(n.on("end",a),n.on("close",c));var o=!1;function a(){o||(o=!0,e.end())}function c(){o||(o=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(u(),0===r.listenerCount(this,"error"))throw e}function u(){n.removeListener("data",i),e.removeListener("drain",s),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),e.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),e.removeListener("close",u)}return n.on("error",l),e.on("error",l),n.on("end",u),n.on("close",u),e.on("close",u),e.emit("pipe",n),e}},3247:function(e,t,n){"use strict";var r=n(37225).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=u,this.end=p,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function u(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},s.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);if(i>=0)return i>0&&(e.lastNeed=i-1),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(e.lastNeed=i-2),i;if(--r<n||-2===i)return 0;if((i=o(t[r]))>=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},13488:function(e,t,n){"use strict";var r,i=n(32752);e=n.hmd(e),r="undefined"!=typeof self?self:"undefined"!=typeof window||"undefined"!=typeof window?window:e;var s=(0,i.Z)(r);t.Z=s},32752:function(e,t,n){"use strict";function r(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}n.d(t,{Z:function(){return r}})},90136:function(e,t,n){"use strict";n.d(t,{EB:function(){return g},ht:function(){return f}});var r=n(55246),i=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],s=i.join(","),o="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(s));return t&&o.call(e,s)&&r.unshift(e),r=r.filter(n)},c=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:"AUDIO"!==e.nodeName&&"VIDEO"!==e.nodeName&&"DETAILS"!==e.nodeName||null!==e.getAttribute("tabindex")?e.tabIndex:0:t},l=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},u=function(e){return"INPUT"===e.tagName},p=function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||e.ownerDocument,i=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=i(window.CSS.escape(e.name));else try{t=i(e.name)}catch(e){return r.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var s=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!s||s===e}(e)},d=function(e,t){return!(t.disabled||function(e){return u(e)&&"hidden"===e.type}(t)||function(e,t){if("hidden"===getComputedStyle(e).visibility)return!0;var n=o.call(e,"details>summary:first-of-type")?e.parentElement:e;if(o.call(n,"details:not([open]) *"))return!0;if(t&&"full"!==t){if("non-zero-area"===t){var r=e.getBoundingClientRect(),i=r.width,s=r.height;return 0===i&&0===s}}else for(;e;){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(t,e.displayCheck)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(u(e)||"SELECT"===e.tagName||"TEXTAREA"===e.tagName||"BUTTON"===e.tagName)for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},h=function(e,t){return!(!d(e,t)||p(t)||c(t)<0)},f=function(e,t){var n=[],r=[];return a(e,(t=t||{}).includeContainer,h.bind(null,t)).forEach((function(e,t){var i=c(e);0===i?n.push(e):r.push({documentOrder:t,tabIndex:i,node:e})})),r.sort(l).map((function(e){return e.node})).concat(n)},m=i.concat("iframe").join(","),g=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==o.call(e,m)&&d(t,e)}},88090:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(7478),i={contextDelimiter:"",onMissingKey:null};function s(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},i)this.options[n]=void 0!==t&&n in t?t[n]:i[n]}s.prototype.getPluralForm=function(e,t){var n,i,s,o=this.pluralForms[e];return o||("function"!=typeof(s=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(i=function(e){var t,n,r;for(t=e.split(";"),n=0;n<t.length;n++)if(0===(r=t[n].trim()).indexOf("plural="))return r.substr(7)}(n["Plural-Forms"]||n["plural-forms"]||n.plural_forms),s=(0,r.Z)(i)),o=this.pluralForms[e]=s),o(t)},s.prototype.dcnpgettext=function(e,t,n,r,i){var s,o,a;return s=void 0===i?0:this.getPluralForm(e,i),o=n,t&&(o=t+this.options.contextDelimiter+n),(a=this.data[e][o])&&a[s]?a[s]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===s?n:r)}},80816:function(e,t,n){"use strict";var r=n(90922),i=n.n(r),s=n(92819);const o=i()("dops:analytics");let a,c;window._tkq=window._tkq||[],window.ga=window.ga||function(){(window.ga.q=window.ga.q||[]).push(arguments)},window.ga.l=+new Date;const l={initialize:function(e,t,n){l.setUser(e,t),l.setSuperProps(n),l.identifyUser()},setGoogleAnalyticsEnabled:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.googleAnalyticsEnabled=e,this.googleAnalyticsKey=t},setMcAnalyticsEnabled:function(e){this.mcAnalyticsEnabled=e},setUser:function(e,t){c={ID:e,username:t}},setSuperProps:function(e){a=e},mc:{bumpStat:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&x_"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Bumping stats %o",e)}else n="&x_"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Bumping stat "%s" in group "%s"',t,e);return n}(e,t);this.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom-no-pv"+n+"&t="+Math.random())},bumpStatWithPageView:function(e,t){const n=function(e,t){let n="";if("object"==typeof e){for(const t in e)n+="&"+encodeURIComponent(t)+"="+encodeURIComponent(e[t]);o("Built stats %o",e)}else n="&"+encodeURIComponent(e)+"="+encodeURIComponent(t),o('Built stat "%s" in group "%s"',t,e);return n}(e,t);this.mcAnalyticsEnabled&&((new Image).src=document.location.protocol+"//pixel.wp.com/g.gif?v=wpcom"+n+"&t="+Math.random())}},pageView:{record:function(e,t){l.tracks.recordPageView(e),l.ga.recordPageView(e,t)}},purchase:{record:function(e,t,n,r,i,s,o){l.ga.recordPurchase(e,t,n,r,i,s,o)}},tracks:{recordEvent:function(e,t){t=t||{},0===e.indexOf("akismet_")||0===e.indexOf("jetpack_")?(a&&(o("- Super Props: %o",a),t=(0,s.assign)(t,a)),o('Record event "%s" called with props %s',e,JSON.stringify(t)),window._tkq.push(["recordEvent",e,t])):o('- Event name must be prefixed by "akismet_" or "jetpack_"')},recordJetpackClick:function(e){const t="object"==typeof e?e:{target:e};l.tracks.recordEvent("jetpack_wpa_click",t)},recordPageView:function(e){l.tracks.recordEvent("akismet_page_view",{path:e})},setOptOut:function(e){o("Pushing setOptOut: %o",e),window._tkq.push(["setOptOut",e])}},ga:{initialized:!1,initialize:function(){let e={};l.ga.initialized||(c&&(e={userId:"u-"+c.ID}),window.ga("create",this.googleAnalyticsKey,"auto",e),l.ga.initialized=!0)},recordPageView:function(e,t){l.ga.initialize(),o("Recording Page View ~ [URL: "+e+"] [Title: "+t+"]"),this.googleAnalyticsEnabled&&(window.ga("set","page",e),window.ga("send",{hitType:"pageview",page:e,title:t}))},recordEvent:function(e,t,n,r){l.ga.initialize();let i="Recording Event ~ [Category: "+e+"] [Action: "+t+"]";void 0!==n&&(i+=" [Option Label: "+n+"]"),void 0!==r&&(i+=" [Option Value: "+r+"]"),o(i),this.googleAnalyticsEnabled&&window.ga("send","event",e,t,n,r)},recordPurchase:function(e,t,n,r,i,s,o){window.ga("require","ecommerce"),window.ga("ecommerce:addTransaction",{id:e,revenue:r,currency:o}),window.ga("ecommerce:addItem",{id:e,name:t,sku:n,price:i,quantity:s}),window.ga("ecommerce:send")}},identifyUser:function(){c&&window._tkq.push(["identifyUser",c.ID,c.username])},setProperties:function(e){window._tkq.push(["setProperties",e])},clearedIdentity:function(){window._tkq.push(["clearIdentity"])}};t.Z=l},19570:function(e,t,n){"use strict";var r=n(92819),i=n(96483),s=n(26251);function o(e){class t extends Error{constructor(){super(...arguments),this.name=e}}return t}const a=o("JsonParseError"),c=o("JsonParseAfterRedirectError"),l=o("Api404Error"),u=o("Api404AfterRedirectError"),p=o("FetchNetworkError");const d=new function(e,t){let n=e,o={"X-WP-Nonce":t},a={credentials:"same-origin",headers:o},c={method:"post",credentials:"same-origin",headers:(0,r.assign)({},o,{"Content-type":"application/json"})},l=function(e){const t=e.split("?"),n=t.length>1?t[1]:"",r=n.length?n.split("&"):[];return r.push("_cacheBuster="+(new Date).getTime()),t[0]+"?"+r.join("&")};const u={setApiRoot(e){n=e},setApiNonce(e){o={"X-WP-Nonce":e},a={credentials:"same-origin",headers:o},c={method:"post",credentials:"same-origin",headers:(0,r.assign)({},o,{"Content-type":"application/json"})}},setCacheBusterCallback:e=>{l=e},registerSite:(e,t)=>{const r={registration_nonce:e,no_iframe:!0};return(0,s.jetpackConfigHas)("consumer_slug")&&(r.plugin_slug=(0,s.jetpackConfigGet)("consumer_slug")),null!==t&&(r.redirect_uri=t),d(`${n}jetpack/v4/connection/register`,c,{body:JSON.stringify(r)}).then(h).then(f)},fetchAuthorizationUrl:e=>p((0,i.addQueryArgs)(`${n}jetpack/v4/connection/authorize_url`,{no_iframe:"1",redirect_uri:e}),a).then(h).then(f),fetchSiteConnectionData:()=>p(`${n}jetpack/v4/connection/data`,a).then(f),fetchSiteConnectionStatus:()=>p(`${n}jetpack/v4/connection`,a).then(f),fetchSiteConnectionTest:()=>p(`${n}jetpack/v4/connection/test`,a).then(h).then(f),fetchUserConnectionData:()=>p(`${n}jetpack/v4/connection/data`,a).then(f),fetchUserTrackingSettings:()=>p(`${n}jetpack/v4/tracking/settings`,a).then(h).then(f),updateUserTrackingSettings:e=>d(`${n}jetpack/v4/tracking/settings`,c,{body:JSON.stringify(e)}).then(h).then(f),disconnectSite:()=>d(`${n}jetpack/v4/connection`,c,{body:JSON.stringify({isActive:!1})}).then(h).then(f),fetchConnectUrl:()=>p(`${n}jetpack/v4/connection/url`,a).then(h).then(f),unlinkUser:()=>d(`${n}jetpack/v4/connection/user`,c,{body:JSON.stringify({linked:!1})}).then(h).then(f),reconnect:()=>d(`${n}jetpack/v4/connection/reconnect`,c).then(h).then(f),fetchConnectedPlugins:()=>p(`${n}jetpack/v4/connection/plugins`,a).then(h).then(f),setHasSeenWCConnectionModal:()=>d(`${n}jetpack/v4/seen-wc-connection-modal`,c).then(h).then(f),fetchModules:()=>p(`${n}jetpack/v4/module/all`,a).then(h).then(f),fetchModule:e=>p(`${n}jetpack/v4/module/${e}`,a).then(h).then(f),activateModule:e=>d(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!0})}).then(h).then(f),deactivateModule:e=>d(`${n}jetpack/v4/module/${e}/active`,c,{body:JSON.stringify({active:!1})}),updateModuleOptions:(e,t)=>d(`${n}jetpack/v4/module/${e}`,c,{body:JSON.stringify(t)}).then(h).then(f),updateSettings:e=>d(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(h).then(f),getProtectCount:()=>p(`${n}jetpack/v4/module/protect/data`,a).then(h).then(f),resetOptions:e=>d(`${n}jetpack/v4/options/${e}`,c,{body:JSON.stringify({reset:!0})}).then(h).then(f),activateVaultPress:()=>d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"vaultpress",status:"active"})}).then(h).then(f),getVaultPressData:()=>p(`${n}jetpack/v4/module/vaultpress/data`,a).then(h).then(f),installPlugin:(e,t)=>{const r={slug:e,status:"active"};return t&&(r.source=t),d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify(r)}).then(h).then(f)},activateAkismet:()=>d(`${n}jetpack/v4/plugins`,c,{body:JSON.stringify({slug:"akismet",status:"active"})}).then(h).then(f),getAkismetData:()=>p(`${n}jetpack/v4/module/akismet/data`,a).then(h).then(f),checkAkismetKey:()=>p(`${n}jetpack/v4/module/akismet/key/check`,a).then(h).then(f),checkAkismetKeyTyped:e=>d(`${n}jetpack/v4/module/akismet/key/check`,c,{body:JSON.stringify({api_key:e})}).then(h).then(f),fetchStatsData:e=>p(function(e){let t=`${n}jetpack/v4/module/stats/data`;-1!==t.indexOf("?")?t+=`&range=${encodeURIComponent(e)}`:t+=`?range=${encodeURIComponent(e)}`;return t}(e),a).then(h).then(f).then(m),getPluginUpdates:()=>p(`${n}jetpack/v4/updates/plugins`,a).then(h).then(f),getPlans:()=>p(`${n}jetpack/v4/plans`,a).then(h).then(f),fetchSettings:()=>p(`${n}jetpack/v4/settings`,a).then(h).then(f),updateSetting:e=>d(`${n}jetpack/v4/settings`,c,{body:JSON.stringify(e)}).then(h).then(f),fetchSiteData:()=>p(`${n}jetpack/v4/site`,a).then(h).then(f).then((e=>JSON.parse(e.data))),fetchSiteFeatures:()=>p(`${n}jetpack/v4/site/features`,a).then(h).then(f).then((e=>JSON.parse(e.data))),fetchSiteProducts:()=>p(`${n}jetpack/v4/site/products`,a).then(h).then(f),fetchSitePurchases:()=>p(`${n}jetpack/v4/site/purchases`,a).then(h).then(f).then((e=>JSON.parse(e.data))),fetchSiteBenefits:()=>p(`${n}jetpack/v4/site/benefits`,a).then(h).then(f).then((e=>JSON.parse(e.data))),fetchSetupQuestionnaire:()=>p(`${n}jetpack/v4/setup/questionnaire`,a).then(h).then(f),fetchRecommendationsData:()=>p(`${n}jetpack/v4/recommendations/data`,a).then(h).then(f),fetchRecommendationsProductSuggestions:()=>p(`${n}jetpack/v4/recommendations/product-suggestions`,a).then(h).then(f),fetchRecommendationsUpsell:()=>p(`${n}jetpack/v4/recommendations/upsell`,a).then(h).then(f),saveRecommendationsData:e=>d(`${n}jetpack/v4/recommendations/data`,c,{body:JSON.stringify({data:e})}).then(h),fetchProducts:()=>p(`${n}jetpack/v4/products`,a).then(h).then(f),fetchRewindStatus:()=>p(`${n}jetpack/v4/rewind`,a).then(h).then(f).then((e=>JSON.parse(e.data))),fetchScanStatus:()=>p(`${n}jetpack/v4/scan`,a).then(h).then(f).then((e=>JSON.parse(e.data))),dismissJetpackNotice:e=>d(`${n}jetpack/v4/notice/${e}`,c,{body:JSON.stringify({dismissed:!0})}).then(h).then(f),fetchPluginsData:()=>p(`${n}jetpack/v4/plugins`,a).then(h).then(f),fetchVerifySiteGoogleStatus:e=>p(null!==e?`${n}jetpack/v4/verify-site/google/${e}`:`${n}jetpack/v4/verify-site/google`,a).then(h).then(f),verifySiteGoogle:e=>d(`${n}jetpack/v4/verify-site/google`,c,{body:JSON.stringify({keyring_id:e})}).then(h).then(f),sendMobileLoginEmail:()=>d(`${n}jetpack/v4/mobile/send-login-email`,c).then(h).then(f),submitSurvey:e=>d(`${n}jetpack/v4/marketing/survey`,c,{body:JSON.stringify(e)}).then(h).then(f),saveSetupQuestionnaire:e=>d(`${n}jetpack/v4/setup/questionnaire`,c,{body:JSON.stringify(e)}).then(h).then(f),updateLicensingError:e=>d(`${n}jetpack/v4/licensing/error`,c,{body:JSON.stringify(e)}).then(h).then(f),updateLicenseKey:e=>d(`${n}jetpack/v4/licensing/set-license`,c,{body:JSON.stringify({license:e})}).then(h).then(f),getUserLicensesCounts:()=>p(`${n}jetpack/v4/licensing/user/counts`,a).then(h).then(f),updateLicensingActivationNoticeDismiss:e=>d(`${n}jetpack/v4/licensing/user/activation-notice-dismiss`,c,{body:JSON.stringify({last_detached_count:e})}).then(h).then(f),updateRecommendationsStep:e=>d(`${n}jetpack/v4/recommendations/step`,c,{body:JSON.stringify({step:e})}).then(h),confirmIDCSafeMode:()=>d(`${n}jetpack/v4/identity-crisis/confirm-safe-mode`,c).then(h),startIDCFresh:e=>d(`${n}jetpack/v4/identity-crisis/start-fresh`,c,{body:JSON.stringify({redirect_uri:e})}).then(h).then(f),migrateIDC:()=>d(`${n}jetpack/v4/identity-crisis/migrate`,c).then(h),attachLicenses:e=>d(`${n}jetpack/v4/licensing/attach-licenses`,c,{body:JSON.stringify({licenses:e})}).then(h).then(f),fetchSearchPlanInfo:()=>p(`${n}jetpack/v4/search/plan`,a).then(h).then(f),fetchSearchSettings:()=>p(`${n}jetpack/v4/search/settings`,a).then(h).then(f),updateSearchSettings:e=>d(`${n}jetpack/v4/search/settings`,c,{body:JSON.stringify(e)}).then(h).then(f)};function p(e,t){return fetch(l(e),t)}function d(e,t,n){return fetch(e,(0,r.assign)({},t,n)).catch(g)}function m(e){return e.general&&void 0===e.general.response||e.week&&void 0===e.week.response||e.month&&void 0===e.month.response?e:{}}(0,r.assign)(this,u)};function h(e){return e.status>=200&&e.status<300?e:404===e.status?new Promise((()=>{throw e.redirected?new u(e.redirected):new l})):e.json().catch((e=>m(e))).then((t=>{const n=new Error(`${t.message} (Status ${e.status})`);throw n.response=t,n.name="ApiError",n}))}function f(e){return e.json().catch((t=>m(t,e.redirected,e.url)))}function m(e,t,n){throw t?new c(n):new a}function g(){throw new p}t.ZP=d},31583:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(65736),o=n(55609),a=n(11268),c=n.n(a),l=(n(39999),n(37262));const __=s.__,u=e=>{const{label:t,onClick:n,isLoading:r,displayError:s,errorMessage:a}=e;return i().createElement("div",{className:"jp-action-button"},i().createElement(o.Button,{className:"jp-action-button--button",label:t,onClick:n,isPrimary:!0,disabled:r},r?i().createElement(l.Z,null):t),s&&i().createElement("p",{className:"jp-action-button__error"},a))};u.propTypes={label:c().string.isRequired,onClick:c().func,isLoading:c().bool,displayError:c().bool,errorMessage:c().string},u.defaultProps={isLoading:!1,displayError:!1,errorMessage:__("An error occurred. Please try again.","jetpack")},t.Z=u},31824:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(89105),c=n.n(a),l=n(65736),u=n(11268),p=n.n(u);const __=l.__,d=e=>{const{title:t,height:n,className:r,...s}=e;return o().createElement("svg",i()({role:"img",x:"0",y:"0",viewBox:"0 0 935 38.2",enableBackground:"new 0 0 935 38.2","aria-labelledby":"jp-automattic-byline-logo-title",height:n,className:c()("jp-automattic-byline-logo",r)},s),o().createElement("title",{id:"jp-automattic-byline-logo-title"},t),o().createElement("path",{d:"M317.1 38.2c-12.6 0-20.7-9.1-20.7-18.5v-1.2c0-9.6 8.2-18.5 20.7-18.5 12.6 0 20.8 8.9 20.8 18.5v1.2C337.9 29.1 329.7 38.2 317.1 38.2zM331.2 18.6c0-6.9-5-13-14.1-13s-14 6.1-14 13v0.9c0 6.9 5 13.1 14 13.1s14.1-6.2 14.1-13.1V18.6zM175 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7L157 1.3h5.5L182 36.8H175zM159.7 8.2L152 23.1h15.7L159.7 8.2zM212.4 38.2c-12.7 0-18.7-6.9-18.7-16.2V1.3h6.6v20.9c0 6.6 4.3 10.5 12.5 10.5 8.4 0 11.9-3.9 11.9-10.5V1.3h6.7V22C231.4 30.8 225.8 38.2 212.4 38.2zM268.6 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H268.6zM397.3 36.8V8.7l-1.8 3.1 -14.9 25h-3.3l-14.7-25 -1.8-3.1v28.1h-6.5V1.3h9.2l14 24.4 1.7 3 1.7-3 13.9-24.4h9.1v35.5H397.3zM454.4 36.8l-4.7-8.8h-20.9l-4.5 8.8h-7l19.2-35.5h5.5l19.5 35.5H454.4zM439.1 8.2l-7.7 14.9h15.7L439.1 8.2zM488.4 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H488.4zM537.3 6.8v30h-6.7v-30h-15.5V1.3h37.7v5.5H537.3zM569.3 36.8V4.6c2.7 0 3.7-1.4 3.7-3.4h2.8v35.5L569.3 36.8 569.3 36.8zM628 11.3c-3.2-2.9-7.9-5.7-14.2-5.7 -9.5 0-14.8 6.5-14.8 13.3v0.7c0 6.7 5.4 13 15.3 13 5.9 0 10.8-2.8 13.9-5.7l4 4.2c-3.9 3.8-10.5 7.1-18.3 7.1 -13.4 0-21.6-8.7-21.6-18.3v-1.2c0-9.6 8.9-18.7 21.9-18.7 7.5 0 14.3 3.1 18 7.1L628 11.3zM321.5 12.4c1.2 0.8 1.5 2.4 0.8 3.6l-6.1 9.4c-0.8 1.2-2.4 1.6-3.6 0.8l0 0c-1.2-0.8-1.5-2.4-0.8-3.6l6.1-9.4C318.7 11.9 320.3 11.6 321.5 12.4L321.5 12.4z"}),o().createElement("path",{d:"M37.5 36.7l-4.7-8.9H11.7l-4.6 8.9H0L19.4 0.8H25l19.7 35.9H37.5zM22 7.8l-7.8 15.1h15.9L22 7.8zM82.8 36.7l-23.3-24 -2.3-2.5v26.6h-6.7v-36H57l22.6 24 2.3 2.6V0.8h6.7v35.9H82.8z"}),o().createElement("path",{d:"M719.9 37l-4.8-8.9H694l-4.6 8.9h-7.1l19.5-36h5.6l19.8 36H719.9zM704.4 8l-7.8 15.1h15.9L704.4 8zM733 37V1h6.8v36H733zM781 37c-1.8 0-2.6-2.5-2.9-5.8l-0.2-3.7c-0.2-3.6-1.7-5.1-8.4-5.1h-12.8V37H750V1h19.6c10.8 0 15.7 4.3 15.7 9.9 0 3.9-2 7.7-9 9 7 0.5 8.5 3.7 8.6 7.9l0.1 3c0.1 2.5 0.5 4.3 2.2 6.1V37H781zM778.5 11.8c0-2.6-2.1-5.1-7.9-5.1h-13.8v10.8h14.4c5 0 7.3-2.4 7.3-5.2V11.8zM794.8 37V1h6.8v30.4h28.2V37H794.8zM836.7 37V1h6.8v36H836.7zM886.2 37l-23.4-24.1 -2.3-2.5V37h-6.8V1h6.5l22.7 24.1 2.3 2.6V1h6.8v36H886.2zM902.3 37V1H935v5.6h-26v9.2h20v5.5h-20v10.1h26V37H902.3z"}))};d.defaultProps={title:__("An Automattic Airline","jetpack"),height:7,className:""},d.propTypes={title:p().string,height:p().number,className:p().string},t.Z=d},78310:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s);n(6383);const a=e=>{const{format:t,icon:n,imageUrl:r}=e;return i().createElement("div",{className:"jp-components__decorative-card "+(t?"jp-components__decorative-card--"+t:"")},i().createElement("div",{className:"jp-components__decorative-card__image",style:{backgroundImage:r?`url( ${r} )`:""}}),i().createElement("div",{className:"jp-components__decorative-card__content"},i().createElement("div",{className:"jp-components__decorative-card__lines"})),(()=>{if(n)return i().createElement("div",{className:"jp-components__decorative-card__icon-container"},i().createElement("span",{className:"jp-components__decorative-card__icon jp-components__decorative-card__icon--"+n}))})())};a.propTypes={format:o().oneOf(["horizontal","vertical"]),icon:o().oneOf(["unlink"]),imageUrl:o().string},a.defaultProps={format:"horizontal"},t.Z=a},97967:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(65736),c=n(89105),l=n.n(c),u=n(11268),p=n.n(u),d=n(31824),h=(n(78785),n(81546));const __=a.__,f=e=>{const{a8cLogoHref:t,moduleName:n,className:r,...s}=e;return o().createElement("div",i()({className:l()("jp-dashboard-footer",r)},s),o().createElement("div",{className:"jp-dashboard-footer__footer-left"},o().createElement(h.Z,{logoColor:"#000",showText:!1,height:16,className:"jp-dashboard-footer__jetpack-symbol","aria-label":__("Jetpack logo","jetpack")}),o().createElement("span",{className:"jp-dashboard-footer__module-name"},n)),o().createElement("div",{className:"jp-dashboard-footer__footer-right"},o().createElement("a",{href:t,"aria-label":__("An Automattic Airline","jetpack")},o().createElement(d.Z,null))))};f.defaultProps={a8cLogoHref:"https://jetpack.com",moduleName:__("Jetpack","jetpack"),className:""},f.propTypes={a8cLogoHref:p().string,moduleName:p().string,className:p().string},t.Z=f},81546:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(11268),c=n.n(a),l=n(99196),u=n.n(l),p=n(89105),d=n.n(p),h=n(65736);const __=h.__;class f extends u().Component{render(){const{logoColor:e,showText:t,className:n,...r}=this.props,s=t?"0 0 118 32":"0 0 32 32";return u().createElement("svg",i()({xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:s,className:d()("jetpack-logo",n),"aria-labelledby":"jetpack-logo-title"},r),u().createElement("title",{id:"jetpack-logo-title"},__("Jetpack Logo","jetpack")),u().createElement("path",{fill:e,d:"M16,0C7.2,0,0,7.2,0,16s7.2,16,16,16s16-7.2,16-16S24.8,0,16,0z M15,19H7l8-16V19z M17,29V13h8L17,29z"}),t&&u().createElement(l.Fragment,null,u().createElement("path",{d:"M41.3,26.6c-0.5-0.7-0.9-1.4-1.3-2.1c2.3-1.4,3-2.5,3-4.6V8h-3V6h6v13.4C46,22.8,45,24.8,41.3,26.6z"}),u().createElement("path",{d:"M65,18.4c0,1.1,0.8,1.3,1.4,1.3c0.5,0,2-0.2,2.6-0.4v2.1c-0.9,0.3-2.5,0.5-3.7,0.5c-1.5,0-3.2-0.5-3.2-3.1V12H60v-2h2.1V7.1 H65V10h4v2h-4V18.4z"}),u().createElement("path",{d:"M71,10h3v1.3c1.1-0.8,1.9-1.3,3.3-1.3c2.5,0,4.5,1.8,4.5,5.6s-2.2,6.3-5.8,6.3c-0.9,0-1.3-0.1-2-0.3V28h-3V10z M76.5,12.3 c-0.8,0-1.6,0.4-2.5,1.2v5.9c0.6,0.1,0.9,0.2,1.8,0.2c2,0,3.2-1.3,3.2-3.9C79,13.4,78.1,12.3,76.5,12.3z"}),u().createElement("path",{d:"M93,22h-3v-1.5c-0.9,0.7-1.9,1.5-3.5,1.5c-1.5,0-3.1-1.1-3.1-3.2c0-2.9,2.5-3.4,4.2-3.7l2.4-0.3v-0.3c0-1.5-0.5-2.3-2-2.3 c-0.7,0-2.3,0.5-3.7,1.1L84,11c1.2-0.4,3-1,4.4-1c2.7,0,4.6,1.4,4.6,4.7L93,22z M90,16.4l-2.2,0.4c-0.7,0.1-1.4,0.5-1.4,1.6 c0,0.9,0.5,1.4,1.3,1.4s1.5-0.5,2.3-1V16.4z"}),u().createElement("path",{d:"M104.5,21.3c-1.1,0.4-2.2,0.6-3.5,0.6c-4.2,0-5.9-2.4-5.9-5.9c0-3.7,2.3-6,6.1-6c1.4,0,2.3,0.2,3.2,0.5V13 c-0.8-0.3-2-0.6-3.2-0.6c-1.7,0-3.2,0.9-3.2,3.6c0,2.9,1.5,3.8,3.3,3.8c0.9,0,1.9-0.2,3.2-0.7V21.3z"}),u().createElement("path",{d:"M110,15.2c0.2-0.3,0.2-0.8,3.8-5.2h3.7l-4.6,5.7l5,6.3h-3.7l-4.2-5.8V22h-3V6h3V15.2z"}),u().createElement("path",{d:"M58.5,21.3c-1.5,0.5-2.7,0.6-4.2,0.6c-3.6,0-5.8-1.8-5.8-6c0-3.1,1.9-5.9,5.5-5.9s4.9,2.5,4.9,4.9c0,0.8,0,1.5-0.1,2h-7.3 c0.1,2.5,1.5,2.8,3.6,2.8c1.1,0,2.2-0.3,3.4-0.7C58.5,19,58.5,21.3,58.5,21.3z M56,15c0-1.4-0.5-2.9-2-2.9c-1.4,0-2.3,1.3-2.4,2.9 C51.6,15,56,15,56,15z"})))}}o()(f,"propTypes",{className:c().string,width:c().number,height:c().number,showText:c().bool,logoColor:c().string}),o()(f,"defaultProps",{className:"",height:32,showText:!0,logoColor:"#069e08"}),t.Z=f},37262:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s);n(79177);const a=e=>{const t=e.className+" jp-components-spinner",n={width:e.size,height:e.size,fontSize:e.size,borderTopColor:e.color},r={borderTopColor:e.color,borderRightColor:e.color};return i().createElement("div",{className:t},i().createElement("div",{className:"jp-components-spinner__outer",style:n},i().createElement("div",{className:"jp-components-spinner__inner",style:r})))};a.propTypes={color:o().string,className:o().string,size:o().number},a.defaultProps={color:"#FFFFFF",className:"",size:20},t.Z=a},71415:function(e,t,n){"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={};let r;if("undefined"!=typeof window&&(r=window.Initial_State?.calypsoEnv),0===e.search("https://")){const t=new URL(e);e=`https://${t.host}${t.pathname}`,n.url=encodeURIComponent(e)}else n.source=encodeURIComponent(e);Object.keys(t).map((e=>{n[e]=encodeURIComponent(t[e])})),!Object.keys(n).includes("site")&&"undefined"!=typeof jetpack_redirects&&jetpack_redirects.hasOwnProperty("currentSiteRawUrl")&&(n.site=jetpack_redirects.currentSiteRawUrl),r&&(n.calypso_env=r);const i=Object.keys(n).map((e=>e+"="+n[e])).join("&");return"https://jetpack.com/redirect/?"+i}n.d(t,{Z:function(){return r}})},26251:function(e,t,n){var r=n(55246);let i={};try{i=n(92787)}catch{r.error("jetpackConfig is missing in your webpack config file. See @automattic/jetpack-config"),i={missingConfig:!0}}const s=e=>i.hasOwnProperty(e);e.exports={jetpackConfigHas:s,jetpackConfigGet:e=>{if(!s(e))throw'This app requires the "'+e+'" Jetpack Config to be defined in your webpack configuration file. See details in @automattic/jetpack-config package docs.';return i[e]}}},92672:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(65736),c=n(31583),l=n(71631);const __=a.__,u=e=>{const{apiRoot:t,apiNonce:n,connectLabel:r,registrationNonce:s,redirectUri:o,from:a,autoTrigger:u}=e,{handleRegisterSite:p,isRegistered:d,isUserConnected:h,siteIsRegistering:f,userIsConnecting:m,registrationError:g}=(0,l.Z)({registrationNonce:s,redirectUri:o,apiRoot:t,apiNonce:n,autoTrigger:u,from:a});return i().createElement(i().Fragment,null,(!d||!h)&&i().createElement(c.Z,{label:r,onClick:p,displayError:!!g,isLoading:f||m}))};u.propTypes={connectLabel:o().string,apiRoot:o().string.isRequired,apiNonce:o().string.isRequired,from:o().string,redirectUri:o().string.isRequired,registrationNonce:o().string.isRequired,autoTrigger:o().bool},u.defaultProps={connectLabel:__("Connect","jetpack"),redirectUri:null,autoTrigger:!1},t.Z=u},39897:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(9818),c=n(65736),l=n(61591),u=n(32199),p=n(71631);const __=c.__,d=e=>{const{title:t,buttonLabel:n,apiRoot:r,apiNonce:s,registrationNonce:o,from:c,redirectUri:d,images:h,children:f,assetBaseUrl:m,autoTrigger:g}=e,{handleRegisterSite:v,isRegistered:b,isUserConnected:y,siteIsRegistering:k,userIsConnecting:w,registrationError:_}=(0,p.Z)({registrationNonce:o,redirectUri:d,apiRoot:r,apiNonce:s,autoTrigger:g,from:c}),E=(0,a.useSelect)((e=>e(u.t).getConnectionStatusIsFetching())),C=!b||!y,S=Boolean(_),j=k||w;return i().createElement(l.Z,{title:t,images:h,assetBaseUrl:m,isLoading:E,showConnectButton:C,buttonLabel:n,handleButtonClick:v,displayButtonError:S,buttonIsLoading:j},f)};d.propTypes={title:o().string,buttonLabel:o().string,apiRoot:o().string.isRequired,apiNonce:o().string.isRequired,registrationNonce:o().string.isRequired,from:o().string,redirectUri:o().string.isRequired,autoTrigger:o().bool,images:o().arrayOf(o().string),assetBaseUrl:o().string},d.defaultProps={title:__("Over 5 million WordPress sites are faster and more secure","jetpack"),buttonLabel:__("Set up Jetpack","jetpack"),images:[],redirectUri:null,autoTrigger:!1},t.Z=d},61591:function(e,t,n){"use strict";n.d(t,{E:function(){return d}});var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(65736),c=n(71415),l=n(31583),u=n(69307),p=n(77865);n(16341);const __=a.__,d=(0,u.createInterpolateElement)(__("By clicking the button above, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack"),{tosLink:i().createElement("a",{href:(0,c.Z)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:i().createElement("a",{href:(0,c.Z)("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})}),h=e=>{const{title:t,images:n,children:r,assetBaseUrl:s,isLoading:o,showConnectButton:a,buttonLabel:c,handleButtonClick:u,displayButtonError:h,buttonIsLoading:f}=e;return i().createElement(p.Z,{title:t,assetBaseUrl:s,images:n,className:"jp-connection__connect-screen"+(o?" jp-connection__connect-screen__loading":"")},i().createElement("div",{className:"jp-connection__connect-screen__content"},r,a&&i().createElement(i().Fragment,null,i().createElement(l.Z,{label:c,onClick:u,displayError:h,isLoading:f}),i().createElement("div",{className:"jp-connection__connect-screen__tos"},d))))};h.propTypes={title:o().string,images:o().arrayOf(o().string),assetBaseUrl:o().string,isLoading:o().bool,showConnectButton:o().bool,buttonLabel:o().string.isRequired,handleButtonClick:o().func,displayButtonError:o().bool,buttonIsLoading:o().bool},h.defaultProps={showConnectButton:!0,isLoading:!1,buttonIsLoading:!1,displayButtonError:!1,handleButtonClick:()=>{}},t.Z=h},44254:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s);const a=e=>{const{images:t,assetBaseUrl:n}=e;if(!t.length)return null;const r=t.map(((e,t)=>i().createElement(i().Fragment,{key:t},i().createElement("img",{src:n+e,alt:""}))));return i().createElement("div",{className:"jp-connection__connect-screen__image-slider"},r)};a.propTypes={images:o().arrayOf(o().string).isRequired,assetBaseUrl:o().string},a.defaultProps={assetBaseUrl:""},t.Z=a},77865:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(81546),c=n(44254);n(91648);const l=e=>{const{title:t,children:n,className:r,assetBaseUrl:s,images:o}=e,l=o?.length;return i().createElement("div",{className:"jp-connection__connect-screen-layout"+(l?" jp-connection__connect-screen-layout__two-columns":"")+(r?" "+r:"")},i().createElement("div",{className:"jp-connection__connect-screen-layout__left"},i().createElement(a.Z,null),i().createElement("h2",null,t),n),l?i().createElement("div",{className:"jp-connection__connect-screen-layout__right"},i().createElement(c.Z,{images:o,assetBaseUrl:s})):null)};l.propTypes={title:o().string,className:o().string,images:o().arrayOf(o().string),assetBaseUrl:o().string},t.Z=l},73593:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(65736),c=n(2332);const __=a.__,l=e=>{const{connectedPlugins:t,disconnectingPlugin:n}=e,s=(0,r.useMemo)((()=>{if(t){return Object.keys(t).map((e=>Object.assign({slug:e},t[e]))).filter((e=>n!==e.slug))}return[]}),[t,n]);return t&&s.length>0?i().createElement(i().Fragment,null,i().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is powering other plugins on your site. If you disconnect, these plugins will no longer work.","jetpack"))),i().createElement("div",{className:"jp-connection__disconnect-card__group"},s.map((e=>i().createElement(c.Z,{title:e.name}))))):null};l.PropTypes={connectedPlugins:o().object,disconnectingPlugin:o().string},t.Z=l},2332:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s);n(907);const a=e=>{const{title:t,value:n,description:r}=e;return i().createElement("div",{className:"jp-connection__disconnect-card card"},i().createElement("div",{className:"jp-connection__disconnect-card__card-content"},i().createElement("p",{className:"jp-connection__disconnect-card__card-headline"},t),(n||r)&&i().createElement("div",{className:"jp-connection__disconnect-card__card-stat-block"},i().createElement("span",{className:"jp-connection__disconnect-card__card-stat"},n),i().createElement("div",{className:"jp-connection__disconnect-card__card-description"},r))))};a.propTypes={title:o().string,value:o().string|o().number,description:o().number},t.Z=a},15628:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(65736),c=n(55609),l=n(19570),u=n(80816),p=n(26251),d=(n(58187),n(80163)),h=n(71496),f=n(84130),m=n(55700);const __=a.__,g=e=>{const[t,n]=(0,r.useState)(!1),[s,o]=(0,r.useState)(!1),[a,g]=(0,r.useState)(!1),[v,b]=(0,r.useState)(!1),[y,k]=(0,r.useState)(!1),[w,_]=(0,r.useState)(!1),{apiRoot:E,apiNonce:C,connectedPlugins:S,title:j,pluginScreenDisconnectCallback:M,onDisconnected:x,onError:N,disconnectStepComponent:A,context:O,connectedUser:T,connectedSiteId:P,isOpen:I,onClose:R}=e;let U="";(0,p.jetpackConfigHas)("consumer_slug")&&(U=(0,p.jetpackConfigGet)("consumer_slug"));const Z=(0,r.useMemo)((()=>({context:O,plugin:U})),[O,U]);(0,r.useEffect)((()=>{l.ZP.setApiRoot(E),l.ZP.setApiNonce(C)}),[E,C]),(0,r.useEffect)((()=>{T&&T.ID&&T.login&&u.Z.initialize(T.ID,T.login)}),[T,T.ID,T.login]),(0,r.useEffect)((()=>{I&&u.Z.tracks.recordEvent("jetpack_disconnect_dialog_open",Z)}),[I,Z]),(0,r.useEffect)((()=>{I&&(s?!s||v||y?v&&!y?u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"survey"},Z)):y&&u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"thank_you"},Z)):u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect_confirm"},Z)):u.Z.tracks.recordEvent("jetpack_disconnect_dialog_step",Object.assign({},{step:"disconnect"},Z)))}),[I,s,v,y,Z]);const D=(0,r.useCallback)((()=>{l.ZP.disconnectSite().then((()=>{n(!1),o(!0)})).catch((e=>{n(!1),g(e),N&&N(e)}))}),[n,o,g,N]),L=(0,r.useCallback)(((e,t)=>{_(!0),fetch("https://public-api.wordpress.com/wpcom/v2/marketing/feedback-survey",{method:"POST",headers:{"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify(e)}).then((e=>e.json())).then((e=>{if(!0!==e.success)throw new Error("Survey endpoint returned error code "+e.code);u.Z.tracks.recordEvent("jetpack_disconnect_survey_submit",t),k(!0),_(!1)})).catch((e=>{u.Z.tracks.recordEvent("jetpack_disconnect_survey_error",Object.assign({},{error:e.message},t)),k(!0),_(!1)}))}),[_,k]),z=(0,r.useCallback)((e=>{e&&e.preventDefault(),g(!1),n(!0),"plugins"!==O?D():M&&M(e)}),[g,n,M,O,D]),B=(0,r.useCallback)((()=>T.ID&&P),[T,P]),F=(0,r.useCallback)(((e,t,n)=>{if(n&&n.preventDefault(),!B())return void k(!0);const r={site_id:P,user_id:T.ID,survey_id:"jetpack-plugin-disconnect",survey_responses:{"why-cancel":{response:e,text:t||null}}},i=Object.assign({},Z,{disconnect_reason:e});L(r,i)}),[L,k,B,P,T,Z]),V=(0,r.useCallback)((e=>{e&&e.preventDefault(),x&&x(),R()}),[x,R]),q=(0,r.useCallback)((e=>{e&&e.preventDefault(),b(!0)}),[b]);return i().createElement(i().Fragment,null,I&&i().createElement(c.Modal,{title:"",contentLabel:j,aria:{labelledby:"jp-connection__disconnect-dialog__heading"},onRequestClose:R,shouldCloseOnClickOutside:!1,shouldCloseOnEsc:!1,isDismissible:!1,className:"jp-connection__disconnect-dialog"+(s?" jp-connection__disconnect-dialog__success":"")},s?!s||v||y?v&&!y?i().createElement(f.Z,{isSubmittingFeedback:w,onFeedBackProvided:F,onExit:V}):y?i().createElement(m.Z,{onExit:V}):void 0:i().createElement(h.Z,{canProvideFeedback:B(),onProvideFeedback:q,onExit:V}):i().createElement(d.Z,{title:j,connectedPlugins:S,disconnectStepComponent:A,isDisconnecting:t,closeModal:R,onDisconnect:z,disconnectError:a,context:O,disconnectingPlugin:U})))};g.propTypes={apiRoot:o().string.isRequired,apiNonce:o().string.isRequired,title:o().string,onDisconnected:o().func,onError:o().func,context:o().string,connectedPlugins:o().object,pluginScreenDisconnectCallback:o().func,disconnectStepComponent:o().element,connectedUser:o().object,connectedSiteId:o().number,isOpen:o().bool,onClose:o().func},g.defaultProps={title:__("Are you sure you want to disconnect?","jetpack"),context:"jetpack-dashboard",connectedUser:{}},t.Z=g},71496:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(69307),c=n(65736),l=n(55609),u=n(78310),p=n(62042);const __=c.__,d=e=>{const{onExit:t,canProvideFeedback:n,onProvideFeedback:r}=e;return i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement(u.Z,{icon:"unlink",imageUrl:p}),i().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy jp-connection__disconnect-dialog__step-copy--narrow"},i().createElement("h1",null,(0,a.createInterpolateElement)(__("Jetpack has been <br/>successfully disconnected.","jetpack"),{br:i().createElement("br",null)})),n&&i().createElement(i().Fragment,null,i().createElement("p",null,__("We’re sorry to see you go. Here at Jetpack, we’re always striving to provide the best experience for our customers. Please take our short survey (2 minutes, promise).","jetpack")),i().createElement("p",null,i().createElement(l.Button,{isPrimary:!0,onClick:r,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Help us improve","jetpack"))),i().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("No thank you","jetpack"))),!n&&i().createElement(i().Fragment,null,i().createElement("p",null,i().createElement(l.Button,{isPrimary:!0,onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack"))))))};d.PropTypes={onExit:o().func,onProvideFeedback:o().func,canProvideFeedback:o().bool},t.Z=d},80163:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(69307),o=n(65736),a=n(71415),c=n(55609),l=n(11268),u=n.n(l),p=n(73593);const __=o.__,d=e=>{const{title:t,isDisconnecting:n,onDisconnect:r,disconnectError:o,disconnectStepComponent:l,connectedPlugins:u,disconnectingPlugin:d,closeModal:h,context:f}=e;return i().createElement(i().Fragment,null,i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement("h1",{id:"jp-connection__disconnect-dialog__heading"},t),i().createElement(p.Z,{connectedPlugins:u,disconnectingPlugin:d}),l,(()=>{if(!u&&!l)return i().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering multiple products on your site.","jetpack"),i().createElement("br",null),__("Once you disconnect Jetpack, these will no longer work.","jetpack")))})()),i().createElement("div",{className:"jp-connection__disconnect-dialog__actions"},i().createElement("div",{className:"jp-row"},i().createElement("div",{className:"lg-col-span-7 md-col-span-8 sm-col-span-4"},i().createElement("p",null,(0,s.createInterpolateElement)(__("<strong>Need help?</strong> Learn more about the <jpConnectionInfoLink>Jetpack connection</jpConnectionInfoLink> or <jpSupportLink>contact Jetpack support</jpSupportLink>.","jetpack"),{strong:i().createElement("strong",null),jpConnectionInfoLink:i().createElement("a",{href:(0,a.Z)("why-the-wordpress-com-connection-is-important-for-jetpack"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link"}),jpSupportLink:i().createElement("a",{href:(0,a.Z)("jetpack-support"),rel:"noopener noreferrer",target:"_blank",className:"jp-connection__disconnect-dialog__link"})}))),i().createElement("div",{className:"jp-connection__disconnect-dialog__button-wrap lg-col-span-5 md-col-span-8 sm-col-span-4"},i().createElement(c.Button,{isPrimary:!0,disabled:n,onClick:h,className:"jp-connection__disconnect-dialog__btn-dismiss"},__("Stay connected","jetpack")),(()=>{let e=__("Disconnect","jetpack");return n?e=__("Disconnecting…","jetpack"):"plugins"===f&&(e=__("Disconnect and Deactivate","jetpack")),i().createElement(c.Button,{isPrimary:!0,disabled:n,onClick:r,className:"jp-connection__disconnect-dialog__btn-disconnect"},e)})())),o&&i().createElement("p",{className:"jp-connection__disconnect-dialog__error"},o)))};d.propTypes={title:u().string,isDisconnecting:u().bool,onDisconnect:u().func,disconnectError:u().bool,disconnectStepComponent:u().elementType,connectedPlugins:u().array,disconnectingPlugin:u().string,closeModal:u().func,context:u().string},t.Z=d},84130:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(65736),c=(n(85731),n(71194));const __=a.__,l=e=>{const{onExit:t,onFeedBackProvided:n,isSubmittingFeedback:r}=e;return i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement("h1",null,__("Before you go, help us improve Jetpack","jetpack")),i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Let us know what didn‘t work for you","jetpack")),i().createElement(c.Z,{onSubmit:n,isSubmittingFeedback:r}),i().createElement("a",{className:"jp-connection__disconnect-dialog__link jp-connection__disconnect-dialog__link--bold",href:"#",onClick:t},__("Skip for now","jetpack")))};l.PropTypes={onExit:o().func,onFeedBackProvided:o().func,isSubmittingFeedback:o().bool},t.Z=l},55700:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(78310),c=n(65736),l=n(55609),u=n(69307),p=n(90724);const __=c.__,d=e=>{const{onExit:t}=e;return i().createElement("div",{className:"jp-connection__disconnect-dialog__content"},i().createElement(a.Z,{format:"vertical",imageUrl:p}),i().createElement("div",{className:"jp-connection__disconnect-dialog__copy"},i().createElement("h1",null,__("Thank you!","jetpack")),i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},(0,u.createInterpolateElement)(__("Your answer has been submitted. <br/>Thanks for your input on how we can improve Jetpack.","jetpack"),{br:i().createElement("br",null)})),i().createElement(l.Button,{isPrimary:!0,onClick:t,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},__("Back to my website","jetpack"))))};d.PropTypes={onExit:o().func,assetBaseUrl:o().string},t.Z=d},71194:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(55609),c=n(65736),l=n(87215);const __=c.__,u=e=>{const{onSubmit:t,isSubmittingFeedback:n}=e,[s,o]=(0,r.useState)(),[c,u]=(0,r.useState)(),p=[{id:"troubleshooting",answerText:__("Troubleshooting - I'll be reconnecting afterwards.","jetpack")},{id:"not-working",answerText:__("I can't get it to work.","jetpack")},{id:"slowed-down-site",answerText:__("It slowed down my site.","jetpack")},{id:"buggy",answerText:__("It's buggy.","jetpack")},{id:"what-does-it-do",answerText:__("I don't know what it does.","jetpack")}],d="another-reason",h=(0,r.useCallback)((()=>{t(s,s===d?c:"")}),[t,d,c,s]),f=(0,r.useCallback)((e=>{const t=e.target.value;e.stopPropagation(),u(t)}),[u]),m=e=>e===s?"jp-connect__disconnect-survey-card--selected":"",g=(0,r.useCallback)(((e,t)=>{switch(t.key){case"Enter":case"Space":case"Spacebar":case" ":o(e)}}),[o]);return i().createElement(i().Fragment,null,i().createElement("div",{className:"jp-connection__disconnect-dialog__survey"},p.map((e=>i().createElement(l.Z,{id:e.id,onClick:o,onKeyDown:g,className:"card jp-connect__disconnect-survey-card "+m(e.id)},i().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},e.answerText)))),i().createElement(l.Z,{id:d,onClick:o,onKeyDown:g,className:"card jp-connect__disconnect-survey-card "+m(d)},i().createElement("p",{className:"jp-connect__disconnect-survey-card__answer"},__("Other:","jetpack")," ",i().createElement("input",{placeholder:__("share your experience","jetpack"),className:"jp-connect__disconnect-survey-card__input",type:"text",value:c,onChange:f,maxLength:1e3})))),i().createElement("p",null,i().createElement(a.Button,{disabled:!s||n,isPrimary:!0,onClick:h,className:"jp-connection__disconnect-dialog__btn-back-to-wp"},n?__("Submitting…","jetpack"):__("Submit Feedback","jetpack",0))))};u.PropTypes={onSubmit:o().func,isSubmittingFeedback:o().bool},t.Z=u},87215:function(e,t,n){"use strict";var r=n(99196),i=n.n(r);n(85731);t.Z=e=>{const{id:t,onClick:n,onKeyDown:s,children:o,className:a}=e,c=(0,r.useCallback)((()=>{n(t)}),[t,n]),l=(0,r.useCallback)((e=>{s(t,e)}),[t,s]);return i().createElement("div",{tabIndex:"0",role:"button",onClick:c,onKeyDown:l,className:"card jp-connect__disconnect-survey-card "+a},o)}},71631:function(e,t,n){"use strict";var r=n(99196),i=n(9818),s=n(19570),o=n(32199);t.Z=e=>{let{registrationNonce:t,redirectUri:n,apiRoot:a,apiNonce:c,autoTrigger:l,from:u}=e;const{registerSite:p,connectUser:d}=(0,i.useDispatch)(o.t),h=(0,i.useSelect)((e=>e(o.t).getRegistrationError())),{siteIsRegistering:f,userIsConnecting:m,isRegistered:g,isUserConnected:v}=(0,i.useSelect)((e=>({siteIsRegistering:e(o.t).getSiteIsRegistering(),userIsConnecting:e(o.t).getUserIsConnecting(),...e(o.t).getConnectionStatus()}))),b=()=>d({from:u}),y=e=>{e&&e.preventDefault(),g?b():p({registrationNonce:t,redirectUri:n}).then((()=>{b()}))};return(0,r.useEffect)((()=>{s.ZP.setApiRoot(a),s.ZP.setApiNonce(c)}),[a,c]),(0,r.useEffect)((()=>{!l||f||m||y()}),[]),{handleRegisterSite:y,handleConnectUser:b,isRegistered:g,isUserConnected:v,siteIsRegistering:f,userIsConnecting:m,registrationError:h}}},66973:function(e,t,n){"use strict";n.d(t,{i6:function(){return r},LI:function(){return i},r7:function(){return s},N4:function(){return o},qV:function(){return a},T1:function(){return c},TS:function(){return l},ZP:function(){return v}});const r="SET_CONNECTION_STATUS",i="SET_CONNECTION_STATUS_IS_FETCHING",s="SET_SITE_IS_REGISTERING",o="SET_USER_IS_CONNECTING",a="SET_REGISTRATION_ERROR",c="CLEAR_REGISTRATION_ERROR",l="SET_AUTHORIZATION_URL",u="CONNECT_USER",p=e=>({type:r,connectionStatus:e}),d=e=>({type:s,isRegistering:e}),h=e=>({type:o,isConnecting:e}),f=e=>({type:a,registrationError:e}),m=()=>({type:c}),g=e=>({type:l,authorizationUrl:e});const v={setConnectionStatus:p,setConnectionStatusIsFetching:e=>({type:i,isFetching:e}),fetchConnectionStatus:()=>({type:"FETCH_CONNECTION_STATUS"}),fetchAuthorizationUrl:e=>({type:"FETCH_AUTHORIZATION_URL",redirectUri:e}),setSiteIsRegistering:d,setUserIsConnecting:h,setRegistrationError:f,clearRegistrationError:m,setAuthorizationUrl:g,registerSite:function*(e){let{registrationNonce:t,redirectUri:n}=e;yield m(),yield d(!0);try{const e=yield{type:"REGISTER_SITE",registrationNonce:t,redirectUri:n};return yield p({isRegistered:!0}),yield g(e.authorizeUrl),yield d(!1),Promise.resolve(e)}catch(e){return yield f(e),yield d(!1),Promise.reject(e)}},connectUser:function*(){let{from:e,redirectFunc:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};yield h(!0),yield{type:u,from:e,redirectFunc:t}}}},84213:function(e,t,n){"use strict";var r=n(19570),i=n(9818),s=n(32199);const o=(0,i.createRegistryControl)((e=>{let{resolveSelect:t}=e;return function(){let{from:e,redirectFunc:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(((r,i)=>{t(s.t).getAuthorizationUrl().then((t=>{const i=n||(e=>window.location.assign(e)),s=new URL(t);e&&s.searchParams.set("from",encodeURIComponent(e));const o=s.toString();i(o),r(o)})).catch((e=>{i(e)}))}))}}));t.Z={FETCH_CONNECTION_STATUS:()=>new Promise(((e,t)=>{r.ZP.fetchSiteConnectionStatus().then((t=>e(t))).catch((e=>t(e)))})),FETCH_AUTHORIZATION_URL:e=>{let{redirectUri:t}=e;return r.ZP.fetchAuthorizationUrl(t)},REGISTER_SITE:e=>{let{registrationNonce:t,redirectUri:n}=e;return r.ZP.registerSite(t,n)},CONNECT_USER:o}},81147:function(e,t,n){"use strict";var r=n(9818),i=n(66973);const s=(0,r.combineReducers)({connectionStatus:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.i6?{...e,...t.connectionStatus}:e},connectionStatusIsFetching:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===i.LI?t.isFetching:e},siteIsRegistering:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===i.r7?t.isRegistering:e},userIsConnecting:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===i.N4?t.isConnecting:e},registrationError:(e,t)=>{switch(t.type){case i.T1:return!1;case i.qV:return t.registrationError;default:return e}},authorizationUrl:(e,t)=>t.type===i.TS?t.authorizationUrl:e});t.Z=s},28310:function(e,t,n){"use strict";var r=n(9818),i=n(66973),s=n(32199);const o={*getConnectionStatus(){yield i.ZP.setConnectionStatusIsFetching(!0);const e=yield i.ZP.fetchConnectionStatus();return yield i.ZP.setConnectionStatusIsFetching(!1),i.ZP.setConnectionStatus(e)},getAuthorizationUrl:{isFulfilled:function(e){const t=Boolean(e.authorizationUrl);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];const a=(0,r.select)(s.t).hasFinishedResolution("getAuthorizationUrl",i);return t&&!a&&(0,r.dispatch)(s.t).finishResolution("getAuthorizationUrl",i),t},*fulfill(e){const t=yield i.ZP.fetchAuthorizationUrl(e);yield i.ZP.setAuthorizationUrl(t.authorizeUrl)}}};t.Z={...o}},50387:function(e,t){"use strict";const n={getConnectionStatus:e=>e.connectionStatus||{},getConnectionStatusIsFetching:e=>e.connectionStatusIsFetching||!1,getSiteIsRegistering:e=>e.siteIsRegistering||!1,getUserIsConnecting:e=>e.userIsConnecting||!1,getRegistrationError:e=>e.registrationError||!1,getAuthorizationUrl:e=>e.authorizationUrl||!1};t.Z=n},25333:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(9818);class o{static mayBeInit(e,t){null===o.store&&(o.store=(0,s.createReduxStore)(e,t),(0,s.register)(o.store),o.resolveResolvers(e,t.initialState))}static resolveResolvers(e,t){t.connectionStatus&&t.connectionStatus.hasOwnProperty("isRegistered")&&(0,s.dispatch)(e).finishResolution("getConnectionStatus",[])}}i()(o,"store",null),t.Z=o},32199:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(81147),i=n(66973),s=n(50387),o=n(25333),a=n(28310),c=n(84213);const l="jetpack-connection";o.Z.mayBeInit(l,{reducer:r.Z,actions:i.ZP,selectors:s.Z,resolvers:a.Z,controls:c.Z,initialState:window.JP_CONNECTION_INITIAL_STATE||{}})},61769:function(e,t,n){"use strict";var r=n(55609),i=n(69307),s=n(81546),o=n(37262),a=n(65736),c=n(11268),l=n.n(c),u=n(99196),p=n.n(u),d=n(22607),h=n(28503);const __=a.__,f=e=>{const{activateLicense:t,isActivating:n,license:a,licenseError:c,onLicenseChange:l}=e,u=null!=c;return p().createElement("div",{className:"jp-license-activation-screen-controls"},p().createElement("div",{className:"jp-license-activation-screen-controls--content"},p().createElement(s.Z,{showText:!1,height:48}),p().createElement("h1",null,__("Add a license key","jetpack")),p().createElement("p",null,(0,i.createInterpolateElement)(__("<strong>Check your email</strong> for your license key. You should have received it after making your purchase.","jetpack"),{strong:p().createElement("strong",null)})),p().createElement(r.TextControl,{className:u?"jp-license-activation-screen-controls--license-field-with-error":"jp-license-activation-screen-controls--license-field",label:__("License key","jetpack"),value:a,onChange:l,disabled:n}),u&&p().createElement("div",{className:"jp-license-activation-screen-controls--license-field-error"},p().createElement(d.Z,{icon:h.Z}),p().createElement("span",null,c))),p().createElement("div",null,p().createElement(r.Button,{className:"jp-license-activation-screen-controls--button",onClick:t},n?p().createElement(o.Z,null):__("Activate","jetpack"))))};f.propTypes={activateLicense:l().func.isRequired,isActivating:l().bool.isRequired,license:l().string.isRequired,licenseError:l().string,onLicenseChange:l().func.isRequired,siteUrl:l().string.isRequired},t.Z=f},46224:function(e,t,n){"use strict";var r=n(65736),i=n(69307),s=n(71415),o=n(11268),a=n.n(o),c=n(99196),l=n.n(c);const __=r.__,u=e=>{const{imageUrl:t,showSupportLink:n=!1}=e;return l().createElement("div",{className:"jp-license-activation-screen-illustration"},l().createElement("div",{className:"jp-license-activation-screen-illustration--wrapper"},l().createElement("img",{className:"jp-license-activation-screen-illustration--img",src:t,alt:""})),n&&l().createElement("p",{className:"jp-license-activation-screen-illustration--support-link"},(0,i.createInterpolateElement)(__("Do you need help? <a>Contact us.</a>","jetpack"),{a:l().createElement("a",{href:(0,s.Z)("jetpack-support")})})))};u.propTypes={imageUrl:a().string.isRequired,showSupportLink:a().bool},t.Z=u},78079:function(e,t,n){"use strict";var r=n(81546),i=n(11268),s=n.n(i),o=n(99196),a=n.n(o),c=n(80461),l=n(77919),u=n(57590);const p=e=>{const{productId:t,siteRawUrl:n,siteAdminUrl:i,currentRecommendationsStep:s}=e;return a().createElement("div",{className:"jp-license-activation-screen-success-info"},a().createElement("div",{className:"jp-license-activation-screen-success-info--content"},a().createElement(r.Z,{showText:!1,height:48})),a().createElement(c.Z,{siteRawUrl:n,productId:t}),a().createElement("div",{className:"jp-license-activation-screen-success-info--buttons"},a().createElement(u.c,{currentRecommendationsStep:s,siteAdminUrl:i}),a().createElement(l.o,{siteRawUrl:n,productId:t})))};p.propTypes={siteRawUrl:s().string,productId:s().number,siteAdminUrl:s().string,currentRecommendationsStep:s().string},t.Z=p},57590:function(e,t,n){"use strict";n.d(t,{c:function(){return l}});var r=n(65736),i=n(55609),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a);const __=r.__,l=e=>{const{currentRecommendationsStep:t,siteAdminUrl:n}=e;return"not-started"===t?c().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button",href:n+"admin.php?page=jetpack#/recommendations"},__("Configure my site","jetpack")):c().createElement(i.Button,{className:"jp-license-activation-screen-success-info--button",href:n+"admin.php?page=jetpack#/my-plan"},__("View my plans","jetpack"))};l.propTypes={siteAdminUrl:o().string.isRequired,currentRecommendationsStep:o().string}},80461:function(e,t,n){"use strict";var r=n(65736),i=n(69307),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(49067);const __=r.__,u=e=>{const{productId:t,siteRawUrl:n}=e,r=`https://cloud.jetpack.com/landing/${n}`,s=(0,l.F)(t),o={jetpack_anti_spam:{title:__("Your Jetpack Anti-spam is active!","jetpack"),text:__("We'll take care of everything from here. Now you can enjoy a spam-free site!","jetpack")},jetpack_backup:{title:__("Your Jetpack Backup is active!","jetpack"),text:(0,i.createInterpolateElement)(__("You can see your backups and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:c().createElement("a",{href:r})})},jetpack_complete:{title:__("Your Jetpack Complete is active!","jetpack"),text:(0,i.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:c().createElement("a",{href:r})})},jetpack_scan:{title:__("Your Jetpack Scan is active!","jetpack"),text:(0,i.createInterpolateElement)(__("You can see your security scans on <a>cloud.jetpack.com</a>.","jetpack"),{a:c().createElement("a",{href:r})})},jetpack_search:{title:__("Your Jetpack Search is active!","jetpack"),text:__("Next, we'll help you customize your Search experience for your visitors.","jetpack")},jetpack_security:{title:__("Your Jetpack Security is active!","jetpack"),text:(0,i.createInterpolateElement)(__("You can see your backups, security scans, and restore your site on <a>cloud.jetpack.com</a>. If you ever lose access to your site, you can restore it there.","jetpack"),{a:c().createElement("a",{href:r})})},jetpack_videopress:{title:__("Your Jetpack Videopress is active!","jetpack"),text:__("Experience high-quality, ad-free video built specifically for WordPress.","jetpack")},default:{title:__("Your product is active!","jetpack"),text:__("You're all set!","jetpack")}};return c().createElement("div",{className:"jp-license-activation-screen-success-info--product-details"},c().createElement("h1",null,o[s].title," ",String.fromCodePoint(127881)),c().createElement("p",null,o[s].text))};u.propTypes={dashboardUrl:o().string,productId:o().number},t.Z=u},77919:function(e,t,n){"use strict";n.d(t,{o:function(){return p}});var r=n(65736),i=n(55609),s=n(71415),o=n(11268),a=n.n(o),c=n(99196),l=n.n(c),u=n(49067);const __=r.__,p=e=>{const{productId:t,siteRawUrl:n}=e,r={jetpack_backup:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_complete:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},jetpack_scan:{text:__("View scan results","jetpack"),redirectSource:"jetpack-license-activation-success-scan"},jetpack_search:{text:__("Configure search","jetpack"),redirectSource:"jetpack-license-activation-success-search"},jetpack_security:{text:__("View latest backup","jetpack"),redirectSource:"jetpack-license-activation-success-backup"},default:null}[(0,u.F)(t)];return l().createElement(l().Fragment,null,r&&l().createElement(i.ExternalLink,{className:"jp-license-activation-screen-success-info--external-link",href:(0,s.Z)(r.redirectSource,{site:n})},r.text))};p.propTypes={siteRawUrl:a().string,productId:a().number}},18922:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(19570),c=n(65736),l=n(61769),u=n(46224),p=n(78079);const __=c.__,d=e=>{const{assetBaseUrl:t,lockImage:n,onActivationSuccess:s=(()=>null),siteRawUrl:o,startingLicense:c,successImage:d,siteAdminUrl:h,currentRecommendationsStep:f}=e,[m,g]=(0,r.useState)(null!=c?c:""),[v,b]=(0,r.useState)(null),[y,k]=(0,r.useState)(!1),[w,_]=(0,r.useState)(null),E=(0,r.useCallback)((()=>y?Promise.resolve():m.length<1?(b(__("This is not a valid license key. Please try again.","jetpack")),Promise.resolve()):(b(null),k(!0),a.ZP.attachLicenses([m]).then((e=>{const t=(e=>{let t=e;for(;Array.isArray(t)&&t.length>0;)t=t[0];if(t?.activatedProductId)return t.activatedProductId;if(t?.errors)for(const e in t.errors)if(t.errors[e].length>0)throw new Error(t.errors[e][0]);throw new Error(__("An unknown error occurred during license activation. Please try again.","jetpack"))})(e);_(t),s(t)})).catch((e=>{b(e.message)})).finally((()=>{k(!1)})))),[y,m,s]);return null!==w?i().createElement("div",{className:"jp-license-activation-screen"},i().createElement(p.Z,{siteRawUrl:o,productId:w,siteAdminUrl:h,currentRecommendationsStep:f}),i().createElement(u.Z,{imageUrl:t+d,showSupportLink:!1})):i().createElement("div",{className:"jp-license-activation-screen"},i().createElement(l.Z,{license:m,onLicenseChange:g,activateLicense:E,siteUrl:o,licenseError:v,isActivating:y}),i().createElement(u.Z,{imageUrl:t+n,showSupportLink:!0}))};d.propTypes={assetBaseUrl:o().string.isRequired,lockImage:o().string.isRequired,onActivationSuccess:o().func,siteRawUrl:o().string.isRequired,startingLicense:o().string,successImage:o().string.isRequired,siteAdminUrl:o().string.isRequired,currentRecommendationsStep:o().string},t.Z=d},49067:function(e,t,n){"use strict";n.d(t,{F:function(){return i}});const r={jetpack_anti_spam:[2110,2111],jetpack_backup:[2100,2101,2102,2103,2112,2113,2114,2115],jetpack_complete:[2014,2015],jetpack_scan:[2106,2107,2108,2109],jetpack_search:[2104,2105],jetpack_security:[2010,2011,2012,2013,2016,2017,2019,2020],jetpack_videopress:[2116,2117]};function i(e){return Object.keys(r).find((t=>r[t].includes(e)))||"default"}},77909:function(e,t,n){"use strict";n.d(t,{I:function(){return r.Z}});var r=n(18922)},6426:function(e,t,n){"use strict";var r=n(89105),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(71415),u=n(31583),p=n(39897),d=n(65736);const __=d.__,h=e=>{const{apiNonce:t,apiRoot:n,connectionStatus:r,partnerCoupon:a,assetBaseUrl:c,registrationNonce:h,siteRawUrl:f,tracksUserData:m,analytics:g}=e;(0,s.useEffect)((()=>{m&&"object"==typeof g&&g.tracks.recordEvent("jetpack_partner_coupon_redeem_view",{coupon:a.coupon_code,partner:a.partner.prefix,preset:a.preset,connected:r.isRegistered?"yes":"no"})}),[g,r,a,m]);const v=(0,s.useCallback)((()=>{m&&"object"==typeof g&&g.tracks.recordEvent("jetpack_partner_coupon_redeem_click",{coupon:a.coupon_code,partner:a.partner.prefix,preset:a.preset,connected:r.isRegistered?"yes":"no"}),window.location.href=(0,l.Z)("jetpack-plugin-partner-coupon-checkout",{path:a.product.slug,site:f,query:`coupon=${a.coupon_code}`})}),[g,r,a,f,m]),b=i()("jetpack-partner-coupon-redeem",{"jetpack-partner-coupon-redeem--connected":!!r.hasConnectedOwner});return o().createElement("div",{className:b},o().createElement(p.Z,{apiNonce:t,registrationNonce:h,apiRoot:n,images:["/images/connect-right-partner-backup.png"],assetBaseUrl:c,from:"jetpack-partner-coupon",title:(0,d.sprintf)(
/* translators: %s: Jetpack partner name. */
__("Welcome to Jetpack %s traveler!","jetpack"),a.partner.name),buttonLabel:(0,d.sprintf)(
/* translators: %s: Name of a Jetpack product. */
__("Set up & redeem %s","jetpack"),a.product.title),redirectUri:`admin.php?page=jetpack&partnerCoupon=${a.coupon_code}`,connectionStatus:r},o().createElement("p",null,(0,d.sprintf)(
/* translators: %s: Name of a Jetpack product. */
__("Redeem your coupon and get started with %s for free the first year!","jetpack"),a.product.title)),o().createElement("ul",null,a.product.features.map(((e,t)=>o().createElement("li",{key:t},e)))),r.hasConnectedOwner&&o().createElement(u.Z,{label:(0,d.sprintf)(
/* translators: %s: Name of a Jetpack product. */
__("Redeem %s","jetpack"),a.product.title),onClick:v})))};h.propTypes={apiRoot:c().string.isRequired,apiNonce:c().string.isRequired,assetBaseUrl:c().string.isRequired,connectionStatus:c().object.isRequired,partnerCoupon:c().object.isRequired,registrationNonce:c().string.isRequired,siteRawUrl:c().string.isRequired,tracksUserData:c().bool.isRequired,analytics:c().object},t.Z=h},51438:function(e,t,n){"use strict";n.d(t,{e:function(){return r.Z}});var r=n(6426)},69641:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(89105),p=n.n(u),d=n(65736),h=n(71415),f=n(60742),m=n(51117),g=n(88872),v=n(41147);const __=d.__;class b extends s.Component{render(){const{inOfflineMode:e}=this.props,t=__("Jetpack keeps a complete record of everything that happens on your site, taking the guesswork out of site management, debugging, and repair.","jetpack");return o().createElement("div",{className:"jp-dash-item__interior"},o().createElement(m.Z,{label:__("Activity","jetpack"),isModule:!1,className:p()({"jp-dash-item__is-inactive":e}),pro:!1},o().createElement("p",{className:"jp-dash-item__description"},e?__("Unavailable in Offline Mode.","jetpack"):t)),o().createElement(f.Z,{key:"view-activity",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:(0,h.Z)("calypso-activity-log",{site:this.props.siteRawUrl})},__("View site activity","jetpack")))}}i()(b,"propTypes",{inOfflineMode:c().bool.isRequired,siteRawUrl:c().string.isRequired,sitePlan:c().object.isRequired}),i()(b,"defaultProps",{inOfflineMode:!1,siteRawUrl:"",sitePlan:""}),t.Z=(0,l.$j)((e=>({sitePlan:(0,g.UL)(e),inOfflineMode:(0,v.Ex)(e)})))(b)},94109:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(69307),d=n(65736),h=n(71415),f=n(11973),m=n(60742),g=n(21094),v=n(51117),b=n(75395),y=n(88872),k=n(66552),w=n(61161),_=n(81200),E=n(41147),C=n(85253),S=n(19570),j=n(2795);const __=d.__,_x=d._x;class M extends a.Component{constructor(){super(...arguments),i()(this,"onActivateClick",(()=>(this.trackActivateClick(),this.props.createNotice("is-info",__("Activating Akismet…","jetpack"),{id:"activating-akismet"}),S.ZP.activateAkismet().then((()=>{this.props.removeNotice("activating-akismet"),window.location.href=this.props.siteAdminUrl+"admin.php?page=akismet-key-config"})).catch((()=>{this.props.removeNotice("activating-akismet"),this.props.createNotice("is-error",__("Could not activate Akismet.","jetpack"),{id:"activate-akismet-failure"})})),!1)))}trackActivateClick(){f.Z.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"anti-spam"})}getContent(){const e=this.props.akismetData,t=__("Anti-spam","jetpack"),n="jetpack_free"===(0,u.get)(this.props.sitePlan,"product_slug","jetpack_free"),r={text:__("Jetpack Anti-spam powered by Akismet. Comments and contact form submissions are checked against our global database of spam.","jetpack"),link:"https://akismet.com/",privacyLink:"https://automattic.com/privacy/"},i=()=>{const e=(0,p.createInterpolateElement)(__("Already have a key? <a>Activate Akismet</a>","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.onActivateClick})});return c().createElement(C.Z,{callToAction:__("Upgrade","jetpack"),title:__("Automatically clear spam from comments and forms.","jetpack"),description:e,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"akismet",path:"dashboard",plan:(0,_.o2)(_.V3),trackBannerDisplay:this.props.trackUpgradeButtonView})},s=()=>c().createElement(C.Z,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"akismet",path:"dashboard",plan:(0,_.o2)(_.V3)}),o=()=>this.props.isOfflineMode?c().createElement(v.Z,{label:t,module:"akismet",support:r,pro:!0,className:"jp-dash-item__is-inactive"},c().createElement("p",{className:"jp-dash-item__description"},__("Unavailable in Offline Mode.","jetpack"))):this.props.hasConnectedOwner?i():s();if("N/A"===e)return c().createElement(v.Z,{label:t,module:"akismet",support:r,pro:!0},c().createElement("p",{className:"jp-dash-item__description"},__("Loading…","jetpack")));const a=!1!==this.props.sitePlan;if(n){if("not_installed"===e)return c().createElement(v.Z,{label:t,module:"akismet",support:r,className:"jp-dash-item__is-inactive",status:a?"pro-uninstalled":"no-pro-uninstalled-or-inactive",pro:!0,overrideContent:o()});if("not_active"===e)return c().createElement(v.Z,{label:t,module:"akismet",support:r,status:a?"pro-inactive":"no-pro-uninstalled-or-inactive",className:"jp-dash-item__is-inactive",pro:!0,overrideContent:o()});if("invalid_key"===e)return c().createElement(v.Z,{label:t,module:"akismet",support:r,className:"jp-dash-item__is-inactive",pro:!0,overrideContent:o()})}return["not_installed","not_active","invalid_key"].includes(e)?c().createElement(v.Z,{label:t,module:"akismet",support:r,className:"jp-dash-item__is-inactive",pro:!0},__("Your Jetpack plan provides anti-spam protection through Akismet. Click 'set up' to enable it on your site.","jetpack")):[c().createElement(v.Z,{key:"comment-moderation",label:t,module:"akismet",support:r,status:"is-working",pro:!0},(()=>"0"!==this.props.akismetData?c().createElement(c().Fragment,null,c().createElement("h2",{className:"jp-dash-item__count"},this.props.akismetData),c().createElement("p",{className:"jp-dash-item__description"},_x("Spam comments blocked.",'Example: "412 Spam comments blocked"',"jetpack"))):c().createElement("div",{className:"jp-dash-item__recently-activated"},c().createElement("p",{className:"jp-dash-item__description"},__("Jetpack and its Anti-spam currently monitor all comments on your site. Data will display here soon!","jetpack"))))()),!this.props.isOfflineMode&&c().createElement(m.Z,{key:"moderate-comments",className:"jp-dash-item__manage-in-wpcom",compact:!0,href:(0,h.Z)("calypso-comments-all",{site:this.props.siteRawUrl})},__("Moderate comments","jetpack"))]}render(){return c().createElement("div",{className:"jp-dash-item__interior"},c().createElement(j.Z,null),this.getContent())}}i()(M,"propTypes",{siteRawUrl:o().string.isRequired,siteAdminUrl:o().string.isRequired,trackUpgradeButtonView:o().func,akismetData:o().oneOfType([o().string,o().object]).isRequired,isOfflineMode:o().bool.isRequired,upgradeUrl:o().string.isRequired,hasConnectedOwner:o().bool.isRequired}),i()(M,"defaultProps",{siteRawUrl:"",siteAdminUrl:"",akismetData:"N/A",isOfflineMode:"",trackUpgradeButtonView:u.noop}),t.Z=(0,l.$j)((e=>({akismetData:(0,b.fU)(e),sitePlan:(0,y.UL)(e),isOfflineMode:(0,E.Ex)(e),upgradeUrl:(0,w.z)(e,"akismet"),nonce:(0,k.VY)(e),hasConnectedOwner:(0,E.it)(e)})),(e=>({createNotice:g.iI,removeNotice:g.qq,connectUser:()=>e((0,E.bL)())})))(M)},41445:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(69307),d=n(65736),h=n(71415),f=n(60742),m=n(51117),g=n(85253),v=n(39786),b=n(81200),y=n(61161),k=n(88872),w=n(61744),_=n(75395),E=n(41147),C=n(66552);const __=d.__,S=e=>c().createElement(m.Z,{label:__("Backup","jetpack"),module:e.feature||"backups",support:{text:__("Jetpack Backups allow you to easily restore or download a backup from a specific moment.","jetpack"),link:(0,h.Z)("jetpack-support-backup")},className:e.className,status:e.status,pro:!0,overrideContent:e.overrideContent},c().createElement("p",{className:"jp-dash-item__description"},e.content));class j extends a.Component{getVPContent(){const{sitePlan:e,isVaultPressInstalled:t,getOptionValue:n,siteRawUrl:r,vaultPressData:i}=this.props;return n("vaultpress")&&"success"===(0,u.get)(i,"code","")?S({className:"jp-dash-item__is-active",status:"is-working",content:c().createElement("span",null,(0,u.get)(i,"message","")," ",(0,p.createInterpolateElement)(__("<a>View backup details</a>.","jetpack"),{a:c().createElement("a",{href:(0,h.Z)("vaultpress-dashboard"),target:"_blank",rel:"noopener noreferrer"})}))}):(0,u.isEmpty)(e)?S({className:"",status:"",content:__("Loading…","jetpack")}):"jetpack_free"!==(0,u.get)(e,"product_slug","jetpack_free")?S({className:"jp-dash-item__is-inactive",status:t?"pro-inactive":"pro-uninstalled",content:(0,p.createInterpolateElement)(__("To automatically back up your entire site, please <a>install and activate</a> VaultPress.","jetpack"),{a:c().createElement("a",{href:(0,h.Z)("calypso-plugins-setup",{site:r,query:"only=backups"}),target:"_blank",rel:"noopener noreferrer"})})}):S({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:this.props.hasConnectedOwner?c().createElement(g.Z,{callToAction:__("Upgrade","jetpack"),title:__("Never worry about losing your site – automatic backups keep your content safe.","jetpack"),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"backups",path:"dashboard",plan:(0,b.o2)(b.N_),trackBannerDisplay:this.props.trackUpgradeButtonView}):c().createElement(g.Z,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and get automatic backups that keep your content safe.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"backups",path:"dashboard",plan:(0,b.o2)(b.N_)})})}getRewindContent(){const{planClass:e,rewindStatus:t,siteRawUrl:n}=this.props,r=(e,t)=>c().createElement(f.Z,{compact:!0,key:"manage-backups",className:"jp-dash-item__manage-in-wpcom",href:e},t),i=e=>S({className:"jp-dash-item__is-active",status:"is-working",feature:"rewind",content:e});switch(t){case"provisioning":return c().createElement(c().Fragment,null,i(__("We are configuring your site's backups.","jetpack")));case"awaiting_credentials":return c().createElement(c().Fragment,null,i(__("You need to enter your server's credentials to finish the setup.","jetpack")),r((0,h.Z)("jetpack-backup-dash-credentials",{site:n}),__("Enter credentials","jetpack")));case"active":const t=(0,b.lq)(e)?__("We are backing up your site in real-time.","jetpack"):__("We are backing up your site daily.","jetpack");return c().createElement(c().Fragment,null,i(t),r((0,h.Z)("calypso-activity-log",{site:n,query:"group=rewind"}),__("View your site's backups","jetpack")))}return!1}renderFromRewindStatus(){return"unavailable"===this.props.rewindStatus&&"site_new"===this.props.rewindStatusReason?S({className:"jp-dash-item__is-inactive",status:"pro-inactive",content:__("Your site is new and may still be preparing backup configuration.","jetpack")}):"unavailable"===this.props.rewindStatus||""===this.props.rewindStatus?this.getVPContent():c().createElement("div",{className:"jp-dash-item"},this.getRewindContent())}render(){return this.props.showBackups?this.props.isOfflineMode?c().createElement("div",{className:"jp-dash-item__interior"},S({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",content:__("Unavailable in Offline Mode.","jetpack")})):c().createElement("div",null,c().createElement(v.Z,null),this.renderFromRewindStatus()):null}}i()(j,"propTypes",{siteRawUrl:o().string.isRequired,getOptionValue:o().func.isRequired,rewindStatus:o().string.isRequired,rewindStatusReason:o().string.isRequired,trackUpgradeButtonView:o().func,vaultPressData:o().any.isRequired,sitePlan:o().object.isRequired,isOfflineMode:o().bool.isRequired,isVaultPressInstalled:o().bool.isRequired,upgradeUrl:o().string.isRequired,hasConnectedOwner:o().bool.isRequired}),i()(j,"defaultProps",{siteRawUrl:"",getOptionValue:u.noop,vaultPressData:"",sitePlan:"",isOfflineMode:!1,isVaultPressInstalled:!1,rewindStatus:"",trackUpgradeButtonView:u.noop}),t.Z=(0,l.$j)((e=>{const t=(0,k.UL)(e);return{vaultPressData:(0,_.XK)(e),sitePlan:t,planClass:(0,k.b7)(e)?(0,b.sc)((0,k.Jz)(e).product_slug):(0,b.sc)(t.product_slug),isOfflineMode:(0,E.Ex)(e),isVaultPressInstalled:(0,w.P8)(e,"vaultpress/vaultpress.php"),showBackups:(0,C.xR)(e),upgradeUrl:(0,y.z)(e,"backup"),hasConnectedOwner:(0,E.it)(e)}}),(e=>({connectUser:()=>e((0,E.bL)())})))(j)},1927:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(65736),o=n(69307),a=n(55609),c=n(71415),l=n(11268),u=n.n(l),p=n(99196),d=n.n(p),h=n(44072),f=n(39007);const __=s.__,_x=s._x;class m extends p.Component{render(){return d().createElement(f.Z,{iconAlt:__("Plugin icon","jetpack"),iconSrc:h,pluginName:_x("Boost","The Jetpack Boost product name, without the Jetpack prefix","jetpack"),pluginFile:"jetpack-boost/jetpack-boost.php",pluginSlug:"jetpack-boost",pluginLink:this.props.siteAdminUrl+"admin.php?page=jetpack-boost",installOrActivatePrompt:(0,o.createInterpolateElement)(__("Improve your site’s performance and SEO in a few clicks with the free Jetpack Boost plugin.<br /><ExternalLink>Learn more.</ExternalLink>","jetpack"),{ExternalLink:d().createElement(a.ExternalLink,{href:(0,c.Z)("stats-nudges-boost-learn")}),br:d().createElement("br",null)})})}}i()(m,"propTypes",{siteAdminUrl:u().string.isRequired}),t.Z=m},78204:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(69307),l=n(65736),u=n(41147),p=n(66552),d=n(80125),h=n(81441),f=n(51117),m=n(22256),g=n(10958);const __=l.__,_x=l._x;class v extends s.Component{siteConnection(){let e="";return this.props.isOfflineMode?e=o().createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?o().createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):o().createElement(m.Z,{icon:"globe",size:64}),o().createElement("div",{className:"jp-connection-settings__text"},__("Your site is in Offline Mode, so it can not be connected to WordPress.com.","jetpack"))):!0===this.props.siteConnectionStatus&&(e=o().createElement("div",null,o().createElement("div",{className:"jp-connection-settings__info"},this.props.siteIcon?o().createElement("img",{width:"64",height:"64",className:"jp-connection-settings__site-icon",src:this.props.siteIcon,alt:""}):o().createElement(m.Z,{icon:"globe",size:64}),o().createElement("div",{className:"jp-connection-settings__text"},__("Your site is connected to WordPress.com.","jetpack"),this.props.isConnectionOwner&&o().createElement("span",{className:"jp-connection-settings__is-owner"},o().createElement("br",null),o().createElement("em",null,__("You are the Jetpack owner.","jetpack"))))),this.props.userCanDisconnectSite&&o().createElement("div",{className:"jp-connection-settings__actions"},o().createElement(h.Z,{asLink:!0,autoOpenInDisconnectRoute:!0})))),e}userConnection(){const e=this.props.isConnectionOwner?null:o().createElement(h.Z,{asLink:!0,connectUser:!0,from:"connection-settings"});let t="";return this.props.isOfflineMode?o().createElement("div",{className:"jp-connection-settings__info"},this.props.userGravatar?o().createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.userGravatar}):o().createElement(m.Z,{icon:"user",size:64}),o().createElement("div",{className:"jp-connection-settings__text"},__("The site is in Offline Mode, so you can not connect to WordPress.com.","jetpack"))):(t=this.props.isLinked?this.props.isFetchingUserData?__("Loading…","jetpack"):o().createElement("div",null,o().createElement("div",{className:"jp-connection-settings__info"},o().createElement("img",{alt:"gravatar",width:"64",height:"64",className:"jp-connection-settings__gravatar",src:this.props.wpComConnectedUser.avatar}),o().createElement("div",{className:"jp-connection-settings__text"},(0,c.createInterpolateElement)((0,l.sprintf)(
/* translators: Placeholder is the WordPress user login name. */
__("Connected as <span>%s</span>","jetpack"),this.props.wpComConnectedUser.login),{span:o().createElement("span",{className:"jp-connection-settings__username"})}),o().createElement("div",{className:"jp-connection-settings__email"},this.props.wpComConnectedUser.email))),o().createElement("div",{className:"jp-connection-settings__actions"},e),o().createElement(g.Z,null)):o().createElement("div",null,o().createElement("div",{className:"jp-connection-settings__info"},__("Get the most out of Jetpack.","jetpack")),o().createElement("div",{className:"jp-connection-settings__actions"},e)),t)}render(){return o().createElement("div",null,o().createElement(d.Z,null),o().createElement("div",{className:"jp-at-a-glance__item-grid"},o().createElement("div",{className:"jp-at-a-glance__left"},o().createElement("div",{className:"jp-dash-item__interior"},o().createElement(f.Z,{className:"jp-connection-type",label:_x("Site connection","Dashboard widget header","jetpack")},this.siteConnection()))),this.props.userCanConnectAccount&&o().createElement("div",{className:"jp-at-a-glance__right"},o().createElement("div",{className:"jp-dash-item__interior"},o().createElement(f.Z,{className:"jp-connection-type",label:_x("Account connection","Dashboard widget header","jetpack")},this.userConnection())))))}}v.propTypes={siteConnectionStatus:i().any.isRequired,isOfflineMode:i().bool.isRequired,userCanDisconnectSite:i().bool.isRequired,isConnectionOwner:i().bool.isRequired,isLinked:i().bool.isRequired,userGravatar:i().any.isRequired,username:i().any.isRequired},t.Z=(0,a.$j)((e=>({siteConnectionStatus:(0,u.Gz)(e),isOfflineMode:(0,u.Ex)(e),userCanDisconnectSite:(0,p.WB)(e),userCanConnectAccount:(0,p.n0)(e),userGravatar:(0,p.KF)(e),username:(0,p.Ms)(e),isConnectionOwner:(0,u.QM)(e),isLinked:(0,u.BU)(e),siteIcon:(0,p.ze)(e),isFetchingUserData:(0,u.Dd)(e),wpComConnectedUser:(0,u.tN)(e)})))(v)},86428:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(92819),d=n(11973),h=n(5e4),f=n(69733),m=n(69641),g=n(1927),v=n(89665),b=n(17624),y=n(75031),k=n(18394),w=n(94109),_=n(41445),E=n(10846),C=n(37615),S=n(49283),j=n(89578),M=n(78204),x=n(15142),N=n(27219),A=n(21205),O=n(66552),T=n(41147),P=n(93107),I=n(35795);const __=u.__;class R extends a.Component{constructor(){super(...arguments),o()(this,"trackSecurityClick",(()=>d.Z.tracks.recordJetpackClick("aag_manage_security_wpcom"))),o()(this,"trackUpgradeButtonView",(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return()=>d.Z.tracks.recordEvent("jetpack_wpa_aag_upgrade_button_view",{feature:e})}))}render(){const e={updateOptions:this.props.updateOptions,getOptionValue:this.props.getOptionValue,isUpdating:this.props.isUpdating,multisite:this.props.multisite},t={siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl},n=c().createElement(f.Z,{key:"securityHeader",label:__("Security","jetpack"),settingsPath:this.props.userCanManageModules?"#security":void 0,externalLink:this.props.isOfflineMode||!this.props.userCanManageModules?"":__("Manage security settings","jetpack"),externalLinkPath:this.props.isOfflineMode?"":"#/security",externalLinkClick:this.trackSecurityClick}),r=c().createElement("div",null,c().createElement(f.Z,{label:__("Connections","jetpack"),className:"jp-dash-section-header__connections"}),c().createElement(M.Z,null)),s=(0,p.get)(this.props.rewindStatus,["state"],""),o=(0,p.get)(this.props.rewindStatus,["reason"],""),a=[],l=!this.props.fetchingScanStatus&&"vp_active_on_site"===this.props.scanStatus?.reason;if(this.props.multisite&&!l||a.push(c().createElement(k.Z,i()({},e,t,{trackUpgradeButtonView:this.trackUpgradeButtonView("scan")}))),this.props.multisite||a.push(c().createElement(_.Z,i()({},e,{siteRawUrl:this.props.siteRawUrl,rewindStatus:s,rewindStatusReason:o,trackUpgradeButtonView:this.trackUpgradeButtonView("backups")}))),a.push(c().createElement(w.Z,i()({},t,{trackUpgradeButtonView:this.trackUpgradeButtonView("akismet")}))),"inactive"!==this.props.getModuleOverride("protect")&&a.push(c().createElement(b.Z,e)),"inactive"!==this.props.getModuleOverride("monitor")&&a.push(c().createElement(y.Z,e)),"active"===s&&a.unshift(c().createElement(m.Z,i()({},e,{siteRawUrl:this.props.siteRawUrl}))),this.props.userCanManageModules){const s=[{header:n,cards:a,pinnedBundle:!this.props.multisite&&!this.props.isOfflineMode&&this.props.hasConnectedOwner?c().createElement(S.Z,null):null}],o=[];return"inactive"!==this.props.getModuleOverride("photon")&&o.push(c().createElement(E.Z,e)),"inactive"!==this.props.getModuleOverride("search")&&o.push(c().createElement(C.Z,i()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("search")}))),"inactive"!==this.props.getModuleOverride("videopress")&&o.push(c().createElement(j.Z,i()({},e,{trackUpgradeButtonView:this.trackUpgradeButtonView("videopress")}))),this.props.userCanManagePlugins&&o.push(c().createElement(g.Z,{siteAdminUrl:this.props.siteAdminUrl})),o.length&&s.push({header:c().createElement(f.Z,{key:"performanceHeader",label:__("Performance and Growth","jetpack")}),cards:o}),c().createElement("div",{className:"jp-at-a-glance"},c().createElement(x.Z,null),c().createElement(N.Z,null),c().createElement(A.Z,null),c().createElement(v.Z,i()({},e,t)),s.map(((e,t)=>[e.header,e.pinnedBundle,(0,p.chunk)(e.cards,2).map(((e,n)=>{let[r,i]=e;return c().createElement("div",{className:"jp-at-a-glance__item-grid",key:`card-${t}-${n}`},c().createElement("div",{className:"jp-at-a-glance__left"},r),c().createElement("div",{className:"jp-at-a-glance__right"},i))}))])),r)}let u="";this.props.userCanViewStats&&(u=c().createElement(v.Z,i()({},e,t)));const d=c().createElement(b.Z,e),h=this.props.getOptionValue("protect")&&this.props.hasConnectedOwner;return this.props.userIsSubscriber?c().createElement("div",null,u,r):c().createElement("div",null,u,h&&n,h&&d,r)}}t.Z=(0,l.$j)((e=>({userCanManageModules:(0,O.pK)(e),userCanViewStats:(0,O.px)(e),userCanManagePlugins:(0,O.ic)(e),userIsSubscriber:(0,O.dc)(e),isOfflineMode:(0,T.Ex)(e),getModuleOverride:t=>(0,P.Qy)(e,t),multisite:(0,O.TA)(e),scanStatus:(0,I.C8)(e),fetchingScanStatus:(0,I.gE)(e),hasConnectedOwner:(0,T.it)(e)})))((0,h.u)(R))},75031:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(69307),p=n(65736),d=n(71415),h=n(11973),f=n(93107),m=n(41147),g=n(51117);const __=p.__;class v extends a.Component{constructor(){super(...arguments),i()(this,"activateAndTrack",(()=>{h.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"monitor",toggled:"on"}),this.props.updateOptions({monitor:!0})})),i()(this,"connect",(()=>this.props.connectUser()))}getContent(){const e=__("Downtime monitoring","jetpack"),t={text:__("Jetpack’s downtime monitor will continuously monitor your site and alert you the moment that downtime is detected.","jetpack"),link:(0,d.Z)("jetpack-support-monitor")};if(this.props.getOptionValue("monitor")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner)return c().createElement(g.Z,{label:e,module:"monitor",support:t,status:"is-working"},c().createElement("p",{className:"jp-dash-item__description"},__("Jetpack is monitoring your site. If we think your site is down, you will receive an email.","jetpack")));const n=this.props.hasConnectedOwner?(0,u.createInterpolateElement)(__("<a>Activate Monitor</a> to receive email notifications if your site goes down.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.activateAndTrack})}):__("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.","jetpack");return c().createElement(g.Z,{label:e,module:"monitor",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},c().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?__("Unavailable in Offline Mode.","jetpack"):n),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&c().createElement("p",{className:"jp-dash-item__description jp-dash-item__connect"},(0,u.createInterpolateElement)(__("<a>Connect your WordPress.com</a> account to use this feature.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.connect})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}i()(v,"propTypes",{isOfflineMode:o().bool.isRequired,isModuleAvailable:o().bool.isRequired,hasConnectedOwner:o().bool.isRequired}),t.Z=(0,l.$j)((e=>({isOfflineMode:(0,m.Ex)(e),isModuleAvailable:(0,f.v1)(e,"monitor"),hasConnectedOwner:(0,m.it)(e)})),(e=>({connectUser:()=>e((0,m.bL)())})))(v)},10846:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(69307),p=n(65736),d=n(71415),h=n(51117),f=n(93107),m=n(41147);const __=p.__;class g extends a.Component{constructor(){super(...arguments),i()(this,"activatePhoton",(()=>this.props.updateOptions({photon:!0})))}getContent(){const e=__("Image Accelerator","jetpack"),t={text:__("Jetpack will optimize your images and serve them from the server location nearest to your visitors. Using our global content delivery network will boost the loading speed of your site.","jetpack"),link:(0,d.Z)("jetpack-support-photon")};return this.props.getOptionValue("photon")?c().createElement(h.Z,{label:e,module:"photon",support:t,status:"is-working"},c().createElement("p",{className:"jp-dash-item__description"},__("Jetpack is optimizing your image sizes and download speed using our fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack"))):c().createElement(h.Z,{label:e,module:"photon",support:t,className:"jp-dash-item__is-inactive"},c().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,u.createInterpolateElement)(__("<a>Activate</a> to optimize image sizes and load images from Jetpack's fast global network of servers. This improves your site's performance on desktop and mobile devices.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.activatePhoton})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}i()(g,"propTypes",{isOfflineMode:o().bool.isRequired,isModuleAvailable:o().bool.isRequired}),t.Z=(0,l.$j)((e=>({isOfflineMode:(0,m.Ex)(e),isModuleAvailable:(0,f.v1)(e,"photon")})))(g)},17624:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(69307),p=n(65736),d=n(71415),h=n(51117),f=n(75395),m=n(41147),g=n(93107),v=n(28865),b=n(66683);const __=p.__;class y extends a.Component{constructor(){super(...arguments),i()(this,"activateProtect",(()=>this.props.updateOptions({protect:!0}))),i()(this,"connect",(()=>this.props.connectUser()))}getContent(){const e=__("Protect","jetpack"),t={text:__("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:(0,d.Z)("jetpack-support-protect")};if(this.props.getOptionValue("protect")&&!this.props.isOfflineMode&&this.props.hasConnectedOwner){const n=this.props.protectCount;return!1===n||"0"===n||"N/A"===n?c().createElement(h.Z,{label:e,module:"protect",support:t,status:"is-working",className:"jp-dash-item__recently-activated"},c().createElement("div",{className:"jp-dash-item__recently-activated-lower"},c().createElement(b.Z,null),c().createElement("p",{className:"jp-dash-item__description"},__("Jetpack is actively blocking malicious login attempts. Data will display here soon!","jetpack")))):c().createElement(h.Z,{label:e,module:"protect",support:t,status:"is-working"},c().createElement("h2",{className:"jp-dash-item__count"},(0,v.Y)(n)),c().createElement("p",{className:"jp-dash-item__description"},__("Total malicious attacks blocked on your site.","jetpack")))}return c().createElement(h.Z,{label:e,module:"protect",support:t,className:"jp-dash-item__is-inactive",noToggle:!this.props.hasConnectedOwner},c().createElement("p",{className:"jp-dash-item__description"},this.props.isOfflineMode&&__("Unavailable in Offline Mode","jetpack"),!this.props.isOfflineMode&&!this.props.hasConnectedOwner&&(0,u.createInterpolateElement)(__("<a>Connect your WordPress.com</a> account to keep your site protected from malicious sign in attempts.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.connect})}),!this.props.isOfflineMode&&this.props.hasConnectedOwner&&(0,u.createInterpolateElement)(__("<a>Activate Protect</a> to keep your site protected from malicious sign in attempts.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.activateProtect})})))}render(){return this.props.isModuleAvailable&&c().createElement("div",{className:"jp-dash-item__interior"},c().createElement(b.Z,null),this.getContent())}}i()(y,"propTypes",{isOfflineMode:o().bool.isRequired,protectCount:o().any.isRequired,isModuleAvailable:o().bool.isRequired,hasConnectedOwner:o().bool.isRequired,connectUser:o().func.isRequired}),t.Z=(0,l.$j)((e=>({protectCount:(0,f.xz)(e),isOfflineMode:(0,m.Ex)(e),isModuleAvailable:(0,g.v1)(e,"protect"),hasConnectedOwner:(0,m.it)(e)})),(e=>({connectUser:()=>e((0,m.bL)())})))(y)},18394:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(69307),d=n(65736),h=n(71415),f=n(60742),m=n(19570),g=n(11973),v=n(88872),b=n(35795),y=n(61744),k=n(75395),w=n(41147),_=n(51117),E=n(66552),C=n(61161),S=n(85253),j=n(21094),M=n(81200),x=n(28865);const __=d.__,_n=d._n,N=e=>c().createElement(_.Z,{label:__("Scan","jetpack"),module:e.feature||"scan",support:{text:__("Your site’s files are regularly scanned for unauthorized or suspicious modifications that could compromise your security and data.","jetpack"),link:(0,h.Z)("jetpack-support-security")},className:e.className||"",status:e.status||"",pro:!0,overrideContent:e.overrideContent},(0,u.isArray)(e.content)?e.content:c().createElement("p",{className:"jp-dash-item__description"},e.content)),A=e=>N({className:"jp-dash-item__is-active",status:"is-working",content:e});class O extends a.Component{constructor(){super(...arguments),i()(this,"onActivateVaultPressClick",(()=>(g.Z.tracks.recordJetpackClick({type:"activate-link",target:"at-a-glance",feature:"vaultpress"}),this.props.createNotice("is-info",__("Activating VaultPress…","jetpack"),{id:"activating-vaultpress"}),m.ZP.activateVaultPress().then((()=>{this.props.removeNotice("activating-vaultpress"),window.location.href=this.props.siteAdminUrl+"admin.php?page=vaultpress"})).catch((()=>{this.props.removeNotice("activating-vaultpress"),this.props.createNotice("is-error",__("Could not activate VaultPress.","jetpack"),{id:"activate-vaultpress-failure"})})),!1)))}getVPContent(){const{vaultPressData:e,hasConnectedOwner:t}=this.props;if("not_registered"===e?.code)return N({className:"jp-dash-item__is-inactive",status:"not-registered",content:(0,p.createInterpolateElement)(__("VaultPress is having difficulties scanning. Please make sure your <keyLink>registration key is entered</keyLink>. If you require further assistance please <supportLink>contact support</supportLink>.","jetpack"),{keyLink:c().createElement("a",{href:this.props.siteAdminUrl+"admin.php?page=vaultpress"}),supportLink:c().createElement("a",{href:(0,h.Z)("vaultpress-help")})})});if((0,u.get)(e,["data","features","security"],!1)){const t=this.props.scanThreats;if(0!==t)return this.renderThreatsFound(t,(0,h.Z)("vaultpress-dashboard"));if("success"===e.code)return N({status:"is-working",content:__("No threats found, you're good to go!","jetpack")})}if(this.props.fetchingSiteData)return N({content:__("Loading…","jetpack")});const n=!1!==this.props.sitePlan,r=["is-premium-plan","is-business-plan"].includes(this.props.planClass);return n&&r?this.props.isVaultPressInstalled?N({className:"jp-dash-item__is-inactive",status:"pro-inactive",content:[c().createElement("p",{className:"jp-dash-item__description",key:"inactive-scanning"},(0,p.createInterpolateElement)(__("VaultPress is not active, <a>please activate</a> to enable automatic scanning for security for threats.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.onActivateVaultPressClick})}))]}):N({className:"jp-dash-item__is-inactive",status:"pro-uninstalled",content:[c().createElement("p",{className:"jp-dash-item__description",key:"inactive-scanning"},(0,p.createInterpolateElement)(__("VaultPress is not installed, <a>please install</a> to enable automatic scanning for security for threats.","jetpack"),{a:c().createElement("a",{href:(0,h.Z)("calypso-plugins-vaultpress"),target:"_blank",rel:"noopener noreferrer"})}))]}):N({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",overrideContent:t?this.getUpgradeBanner():this.getConnectBanner()})}getUpgradeBanner(){return c().createElement(S.Z,{callToAction:__("Upgrade","jetpack"),title:__("Purchase Jetpack Scan to protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",href:this.props.upgradeUrl,eventFeature:"scan",path:"dashboard",plan:(0,M.o2)(M.eM),trackBannerDisplay:this.props.trackUpgradeButtonView})}getConnectBanner(){return c().createElement(S.Z,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade to Jetpack Scan and protect your site from security threats with automated scanning.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"scan",path:"dashboard",plan:(0,M.o2)(M.eM)})}renderAction(e,t){return this.props.isAtomicSite?null:c().createElement(f.Z,{compact:!0,key:"manage-scan",className:"jp-dash-item__manage-in-wpcom",href:e,target:"_blank",rel:"noopener noreferrer"},t)}renderThreatsFound(e,t){return c().createElement(c().Fragment,null,A([c().createElement("h2",{className:"jp-dash-item__count is-alert"},(0,x.Y)(e)),c().createElement("p",{className:"jp-dash-item__description"},(0,p.createInterpolateElement)(_n("Security threat found. <a>Click here</a> to fix them immediately.","Security threats found. <a>Click here</a> to fix them immediately.",e,"jetpack"),{a:c().createElement("a",{href:t,target:"_blank",rel:"noopener noreferrer"})}))]),this.renderAction(t,__("View security scan details","jetpack")))}getRewindContent(){const{scanStatus:e,siteRawUrl:t}=this.props,n=(0,h.Z)("calypso-scanner",{site:t});if(Array.isArray(e.threats)&&e.threats.length>0)return this.renderThreatsFound(e.threats.length,n);if(e.credentials&&0===e.credentials.length)return c().createElement(c().Fragment,null,A(__("Please finish your setup by entering your server’s credentials.","jetpack")),this.renderAction((0,h.Z)("jetpack-scan-dash-credentials",{site:t}),__("Enter credentials","jetpack")));switch(e.state){case"provisioning":return c().createElement(c().Fragment,null,A(__("We are configuring your site protection.","jetpack")));case"idle":case"scanning":return c().createElement(c().Fragment,null,A(__("No security threats found. Your site will continue to be monitored for future threats.","jetpack")),this.renderAction((0,h.Z)("calypso-scanner",{site:t}),__("View security scan details","jetpack")))}return!1}getUpgradeContent(){const{hasConnectedOwner:e}=this.props;return N({className:"jp-dash-item__is-inactive",overrideContent:e?this.getUpgradeBanner():this.getConnectBanner()})}getContent(){const{scanStatus:e}=this.props;return e.state&&"unavailable"!==e.state?c().createElement("div",{className:"jp-dash-item"},this.getRewindContent()):"vp_active_on_site"===e.reason?this.getVPContent():this.getUpgradeContent()}render(){if(!this.props.showBackups)return null;if(this.props.isOfflineMode)return N({className:"jp-dash-item__is-inactive",content:__("Unavailable in Offline Mode.","jetpack")});const e=this.props.fetchingScanStatus||this.props.fetchingVaultPressData;return c().createElement("div",null,e?N({content:__("Loading…","jetpack")}):this.getContent())}}i()(O,"propTypes",{siteRawUrl:o().string.isRequired,siteAdminUrl:o().string.isRequired,trackUpgradeButtonView:o().func,vaultPressData:o().any.isRequired,scanThreats:o().any.isRequired,sitePlan:o().object.isRequired,isOfflineMode:o().bool.isRequired,isVaultPressInstalled:o().bool.isRequired,fetchingSiteData:o().bool.isRequired,upgradeUrl:o().string.isRequired,hasConnectedOwner:o().bool.isRequired}),i()(O,"defaultProps",{siteRawUrl:"",siteAdminUrl:"",vaultPressData:"",scanThreats:0,sitePlan:"",isOfflineMode:!1,isVaultPressInstalled:!1,fetchingSiteData:!1,trackUpgradeButtonView:u.noop}),t.Z=(0,l.$j)((e=>{const t=(0,v.UL)(e);return{isAtomicSite:(0,E.Ug)(e),isOfflineMode:(0,w.Ex)(e),scanStatus:(0,b.C8)(e),fetchingScanStatus:(0,b.gE)(e),isVaultPressInstalled:(0,y.P8)(e,"vaultpress/vaultpress.php"),fetchingVaultPressData:(0,k.P_)(e),vaultPressData:(0,k.XK)(e),scanThreats:(0,k._R)(e),fetchingSiteData:(0,v._5)(e),sitePlan:t,planClass:(0,M.sc)((0,u.get)(t,"product_slug","")),showBackups:(0,E.xR)(e),upgradeUrl:(0,C.z)(e,"scan"),hasConnectedOwner:(0,w.it)(e)}}),(e=>({createNotice:j.iI,removeNotice:j.qq,connectUser:()=>e((0,w.bL)())})))(O)},37615:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(69307),d=n(65736),h=n(71415),f=n(11973),m=n(60742),g=n(51117),v=n(81200),b=n(88872),y=n(61161),k=n(41147),w=n(85253);const __=d.__,_=__("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),E=__("Customize your Search experience.","jetpack"),C=__("Search supports many customizations. ","jetpack"),S=e=>c().createElement(g.Z,{label:__("Search","jetpack"),module:"search",support:{text:C,link:(0,h.Z)("jetpack-support-search")},className:e.className,status:e.status,isModule:e.pro_inactive,pro:!0,overrideContent:e.overrideContent},c().createElement("p",{className:"jp-dash-item__description"},e.content));class j extends a.Component{constructor(){super(...arguments),i()(this,"activateSearch",(()=>{this.props.updateOptions({search:!0,...this.props.hasSearchProduct?{instant_search_enabled:!0}:{}})}))}trackSearchLink(){f.Z.tracks.recordJetpackClick({type:"upgrade-link",target:"at-a-glance",feature:"search"})}render(){return this.props.isFetching?S({status:"",content:__("Loading…","jetpack")}):this.props.isOfflineMode?S({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,content:__("Unavailable in Offline Mode","jetpack")}):this.props.isBusinessPlan||this.props.hasSearchProduct?this.props.getOptionValue("search")?c().createElement("div",{className:"jp-dash-item"},c().createElement(g.Z,{label:__("Search","jetpack"),module:"search",support:{text:C,link:(0,h.Z)("jetpack-support-search")},className:"jp-dash-item__is-active",isModule:!1,pro:!0},c().createElement("p",{className:"jp-dash-item__description"},__("Jetpack Search is powering search on your site.","jetpack"))),this.props.hasSearchProduct?c().createElement(m.Z,{compact:!0,className:"jp-search-config-aag",href:"admin.php?page=jetpack-search-configure"},E):c().createElement(m.Z,{compact:!0,className:"jp-search-config-aag",href:"customize.php?autofocus[panel]=widgets"},__("Add Search (Jetpack) Widget","jetpack"))):S({className:"jp-dash-item__is-inactive",pro_inactive:!1,content:(0,p.createInterpolateElement)(__("<a>Activate</a> to help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.activateSearch})})}):S({className:"jp-dash-item__is-inactive",status:"no-pro-uninstalled-or-inactive",pro_inactive:!0,overrideContent:this.props.hasConnectedOwner?c().createElement(w.Z,{callToAction:__("Upgrade","jetpack"),title:_,disableHref:"false",href:this.props.upgradeUrl,eventFeature:"search",path:"dashboard",plan:(0,v.o2)(v.T5),icon:"search",trackBannerDisplay:this.props.trackUpgradeButtonView}):c().createElement(w.Z,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to upgrade and get Jetpack Search, which helps your visitors instantly find the right content – right when they need it.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"search",path:"dashboard",plan:(0,v.o2)(v.T5),icon:"search"})})}}i()(j,"propTypes",{getOptionValue:o().func.isRequired,trackUpgradeBanner:o().func,isOfflineMode:o().bool.isRequired,hasConnectedOwner:o().string.isRequired}),i()(j,"defaultProps",{getOptionValue:u.noop,isOfflineMode:!1,trackUpgradeBanner:u.noop}),t.Z=(0,l.$j)((e=>({isBusinessPlan:"is-business-plan"===(0,v.sc)((0,b.UL)(e).product_slug),isOfflineMode:(0,k.Ex)(e),isFetching:(0,b.GR)(e),hasSearchProduct:(0,b.o$)(e),upgradeUrl:(0,y.z)(e,"search"),hasConnectedOwner:(0,k.it)(e)})),(e=>({connectUser:()=>e((0,k.bL)())})))(j)},49283:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(71415),l=n(65736),u=n(69307),p=n(55609),d=n(11973),h=n(9913),f=n(60742),m=n(80118),g=n(79568),v=n(20873),b=n(23183),y=n(61161),k=n(88872);const __=l.__,_x=l._x;class w extends s.Component{constructor(){super(...arguments),i()(this,"trackUpgradeClick",(()=>{d.Z.tracks.recordJetpackClick({page:"aag",target:"upgrade-button",feature:"security"})}))}renderFeatures(){const e=[{id:"backup",imageUrl:g,text:_x("Backup","The Jetpack Backup product name, without the Jetpack prefix","jetpack"),imgAlt:__("A cloud representing Jetpack Backup","jetpack")},{id:"scan",imageUrl:v,text:_x("Scan","The Jetpack Scan product name, without the Jetpack prefix","jetpack"),imgAlt:__("A shield representing Jetpack Scan","jetpack")},{id:"antispam",imageUrl:b,text:__("Anti-spam","jetpack"),imgAlt:__("A crossed-out bug representing Jetpack Anti-spam","jetpack")}];return o().createElement("div",{className:"dash-security-bundle--content-info-features"},e.map((e=>{let{id:t,imageUrl:n,text:r,imgAlt:i}=e;return o().createElement("div",{id:t,className:"dash-security-bundle--content-info-features-single-feature"},o().createElement("img",{src:n,alt:i}),o().createElement("p",null,r))})))}render(){const{hasActiveSecurityPurchase:e,isFetchingSitePurchases:t}=this.props;return e||t?null:o().createElement(f.Z,{className:"dash-security-bundle"},o().createElement("div",{className:"dash-security-bundle--icon"},o().createElement("img",{src:m,alt:__("A shield and check mark representing the Jetpack Security Bundle","jetpack")})),o().createElement("div",{className:"dash-security-bundle--content"},o().createElement("div",{className:"dash-security-bundle--content-info"},o().createElement("h3",null,__("Comprehensive Site Security","jetpack")),o().createElement("p",null,(0,u.createInterpolateElement)(__("Total protection for your site, including Backup, Scan, and Anti-spam. <ExternalLink>Learn More.</ExternalLink>","jetpack"),{ExternalLink:o().createElement(p.ExternalLink,{href:(0,c.Z)("jetpack-features-security"),rel:"noopener noreferrer",target:"_blank"})})),this.renderFeatures()),o().createElement("div",{className:"dash-security-bundle--content-cta"},o().createElement(h.Z,{className:"dash-security-bundle--content-cta-button",href:this.props.productDescriptionUrl,onClick:this.trackUpgradeClick,compact:!0,primary:!0},__("Upgrade","jetpack")))))}}t.Z=(0,a.$j)((e=>({hasActiveSecurityPurchase:(0,k.VL)(e),isFetchingSitePurchases:(0,k.GR)(e),productDescriptionUrl:(0,y.z)(e,"security")})))(w)},55857:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(69307),p=n(69771),d=n(65736),h=n(71415),f=n(55609),m=n(11973),g=n(9913),v=n(60742),b=n(81441),y=n(28865),k=n(66552);const __=d.__,_x=d._x,_n=d._n;class w extends a.Component{constructor(){super(...arguments),i()(this,"trackViewDetailedStats",(()=>m.Z.tracks.recordJetpackClick("view_detailed_stats"))),i()(this,"trackViewWpcomStats",(()=>m.Z.tracks.recordJetpackClick("view_wpcom_stats")))}statsBottom(){let e;return e="object"==typeof this.props.statsData.general?this.props.statsData.general.stats:{views:"-",comments:"-",views_today:"-",views_best_day:"-",views_best_day_total:"-"},[{viewsToday:e.views_today,bestDay:{day:e.views_best_day,count:e.views_best_day_total},allTime:{views:e.views,comments:e.comments}}]}render(){const e=this.statsBottom()[0];return c().createElement("div",null,c().createElement("div",{className:"jp-at-a-glance__stats-summary"},c().createElement("div",{className:"jp-at-a-glance__stats-summary-today"},c().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Views today","Referring to a number of page views","jetpack")),c().createElement("h3",{className:"jp-at-a-glance__stat-number"},e.viewsToday)),c().createElement("div",{className:"jp-at-a-glance__stats-summary-bestday"},c().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("Best overall day","Referring to a number of page views","jetpack")),c().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.bestDay.count?"-":(0,d.sprintf)(
/* Translators: placeholder is a number of views. */
_n("%s View","%s Views",e.bestDay.count,"jetpack"),(0,y.Y)(e.bestDay.count))),c().createElement("p",{className:"jp-at-a-glance__stat-details"},"-"===e.bestDay.day?"-":(0,p.dateI18n)(this.props.dateFormat,e.bestDay.day))),c().createElement("div",{className:"jp-at-a-glance__stats-summary-alltime"},c().createElement("div",{className:"jp-at-a-glance__stats-alltime-views"},c().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time views","Referring to a number of page views","jetpack")),c().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.views?"-":(0,y.Y)(e.allTime.views))),c().createElement("div",{className:"jp-at-a-glance__stats-alltime-comments"},c().createElement("p",{className:"jp-at-a-glance__stat-details"},_x("All-time comments","Referring to a number of comments","jetpack")),c().createElement("h3",{className:"jp-at-a-glance__stat-number"},"-"===e.allTime.comments?"-":(0,y.Y)(e.allTime.comments))))),c().createElement("div",{className:"jp-at-a-glance__stats-cta"},c().createElement("div",{className:"jp-at-a-glance__stats-cta-description"}),c().createElement("div",{className:"jp-at-a-glance__stats-ctas"},(0,u.createInterpolateElement)(__("<button>View detailed stats</button>","jetpack"),{button:c().createElement(g.Z,{onClick:this.trackViewDetailedStats,href:this.props.siteAdminUrl+"admin.php?page=stats"})}),this.props.isLinked&&(0,u.createInterpolateElement)(__("<ExternalLink>View more stats on WordPress.com</ExternalLink>","jetpack"),{ExternalLink:c().createElement(f.ExternalLink,{onClick:this.trackViewWpcomStats,href:(0,h.Z)("calypso-stats-insights",{site:this.props.siteRawUrl}),rel:"noopener noreferrer",target:"_blank"})}))),!this.props.isLinked&&this.props.userCanConnectAccount&&c().createElement(v.Z,{compact:!0,className:"jp-settings-card__configure-link"},c().createElement(b.Z,{connectUser:!0,from:"unlinked-user-connect",connectLegend:__("Connect your WordPress.com account to view more stats","jetpack")})))}}w.propTypes={siteRawUrl:o().string.isRequired,siteAdminUrl:o().string.isRequired,statsData:o().object.isRequired,isLinked:o().bool.isRequired,dateFormat:o().string.isRequired},w.defaultProps={siteRawUrl:"",siteAdminUrl:"",statsData:{},isLinked:!1,dateFormat:"F j, Y"},t.Z=(0,l.$j)((e=>({userCanConnectAccount:(0,k.n0)(e)})))(w)},89665:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(92819),u=n(2620),p=n(69307),d=n(55609),h=n(69771),f=n(65736),m=n(71415),g=n(11973),v=n(9913),b=n(60742),y=n(73653),k=n(69733),w=n(55857),_=n(17752),E=n(66552),C=n(75395),S=n(98486),j=n(41147),M=n(93107),x=n(53263),N=n(28865),A=n(69039);const __=f.__;class O extends a.Component{constructor(e){super(e),i()(this,"dismissCard",(()=>{this.setState({emptyStatsDismissed:!0}),this.props.updateOptions({dismiss_empty_stats_card:!0})})),i()(this,"activateStats",(()=>this.props.updateOptions({stats:!0}))),i()(this,"switchToDay",(()=>this.switchTo("day"))),i()(this,"switchToWeek",(()=>this.switchTo("week"))),i()(this,"switchToMonth",(()=>this.switchTo("month"))),this.state={emptyStatsDismissed:e.isEmptyStatsCardDismissed}}barClick(e){e.data.link&&(g.Z.tracks.recordJetpackClick("stats_bar"),window.open(e.data.link,"_blank"))}statsChart(e){const t=this.props,n=[];let r=0;const
/* translators: short date format, such as: Jan 12. */
i=__("M j","jetpack"),
/* translators: long date format, such as: January 12th. */
s=__("F jS","jetpack"),
/* translators: long month/year format, such as: January, 2021. */
o=__("F Y","jetpack");return"object"!=typeof t.statsData[e]?{chartData:n,totalViews:!1}:((0,l.forEach)(t.statsData[e].data,(function(a){const c=a[1];let l=a[0],u="",p="";r+=c,"day"===e?(u=(0,h.dateI18n)(i,l),p=(0,h.dateI18n)(s,l)):"week"===e?(l=l.replace(/W/g,"-"),u=(0,h.dateI18n)(i,l),p=(0,f.sprintf)(
/* translators: placeholder is a date. */
__("Week of %s","jetpack"),(0,h.dateI18n)(s,l))):"month"===e&&(u=(0,h.dateI18n)("M",l),p=(0,h.dateI18n)(o,l)),n.push({label:u,value:c,nestedValue:null,className:"statsChartbar",data:{link:(0,m.Z)(`calypso-stats-${e}`,{site:t.siteRawUrl,query:`startDate=${l}`})},tooltipData:[{label:p,value:(0,f.sprintf)(
/* translators: placeholder is a number */
__("Views: %s","jetpack"),(0,N.Y)(c)),className:"tooltip class"},{label:__("Click to view detailed stats.","jetpack")}]})})),{chartData:n,totalViews:r})}statsErrors(){return(0,l.get)(this.props.statsData,["general","errors"],!1)}renderStatsChart(e){return c().createElement("div",null,c().createElement("div",{className:"jp-at-a-glance__stats-chart"},c().createElement(y.Z,{data:e,barClick:this.barClick}),0===e.length&&c().createElement(d.Spinner,null)),c().createElement("div",{id:"stats-bottom",className:"jp-at-a-glance__stats-bottom"},c().createElement(w.Z,{statsData:this.props.statsData,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,dateFormat:this.props.dateFormat})))}renderEmptyStatsCard(){return c().createElement(b.Z,{className:"jp-at-a-glance__stats-empty"},c().createElement("img",{src:S.hp+"stats-people.svg",width:"272",height:"144",alt:__("Jetpack Stats People","jetpack"),className:"jp-at-a-glance__stats-icon"}),c().createElement("p",null,__("Hello there! Your stats have been activated.","jetpack"),c().createElement("br",null),__("Just give us a little time to collect data so we can display it for you here.","jetpack")),c().createElement(v.Z,{onClick:this.dismissCard,primary:!0},__("Okay, got it!","jetpack")))}renderStatsArea(){if(this.props.getOptionValue("stats")){if(this.statsErrors())return c().createElement("div",{className:"jp-at-a-glance__stats-inactive"},c().createElement("span",null,(0,p.createInterpolateElement)(__("Something happened while loading stats. Please try again later or <a>view your stats now on WordPress.com</a>","jetpack"),{a:c().createElement("a",{href:(0,m.Z)("calypso-stats-insights",{site:this.props.siteRawUrl})})})));const e=this.statsChart(this.props.activeTab),t=e.chartData,n=e.totalViews,r=t.length&&n<=0&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed;return c().createElement("div",{className:"jp-at-a-glance__stats-container"},r?this.renderEmptyStatsCard():this.renderStatsChart(t))}return c().createElement("div",{className:"jp-at-a-glance__stats-inactive"},c().createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},c().createElement("img",{src:S.hp+"stats.svg",width:"60",height:"60",alt:__("Jetpack Stats Icon","jetpack"),className:"jp-at-a-glance__stats-icon"})),c().createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,p.createInterpolateElement)(__("<a>Activate Site Stats</a> to see detailed stats, likes, followers, subscribers, and more! <a1>Learn More</a1>","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:c().createElement("a",{href:(0,m.Z)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})),!this.props.isOfflineMode&&c().createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},c().createElement(v.Z,{onClick:this.activateStats,primary:!0},__("Activate Site Stats","jetpack"))))}switchTo(e){g.Z.tracks.recordJetpackClick({target:"stats_switch_view",view:e}),this.props.switchView(e),this.props.fetchStatsData(e)}maybeShowStatsTabs(){return!(!1===this.statsChart(this.props.activeTab).totalViews&&!this.props.isEmptyStatsCardDismissed&&!this.state.emptyStatsDismissed)&&(this.props.getOptionValue("stats")&&!this.statsErrors()?c().createElement("ul",{className:"jp-at-a-glance__stats-views"},c().createElement("li",{className:"jp-at-a-glance__stats-view"},c().createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToDay,className:this.getClass("day")},__("Days","jetpack"))),c().createElement("li",{className:"jp-at-a-glance__stats-view"},c().createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToWeek,className:this.getClass("week")},__("Weeks","jetpack"))),c().createElement("li",{className:"jp-at-a-glance__stats-view"},c().createElement("a",{tabIndex:"0",href:"javascript:void(0)",onClick:this.switchToMonth,className:this.getClass("month")},__("Months","jetpack")))):void 0)}getClass(e){return this.props.activeTab===e?"jp-at-a-glance__stats-view-link is-current":"jp-at-a-glance__stats-view-link"}render(){return"inactive"===this.props.getModuleOverride("stats")?c().createElement("div",null,c().createElement(x.Z,{moduleName:__("Site Stats","jetpack")})):this.props.isModuleAvailable&&c().createElement("div",null,c().createElement(A.Z,{range:this.props.activeTab}),c().createElement(k.Z,{label:__("Site Stats","jetpack")},this.maybeShowStatsTabs()),c().createElement(b.Z,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},this.renderStatsArea()))}}i()(O,"propTypes",{isOfflineMode:o().bool.isRequired,siteRawUrl:o().string.isRequired,siteAdminUrl:o().string.isRequired,statsData:o().any.isRequired,isModuleAvailable:o().bool.isRequired}),t.Z=(0,u.$j)((e=>({isModuleAvailable:(0,M.v1)(e,"stats"),activeTab:(0,C.l5)(e),dateFormat:(0,E.mh)(e),isOfflineMode:(0,j.Ex)(e),isLinked:(0,j.BU)(e),connectUrl:(0,j.AM)(e),statsData:(0,l.isEmpty)((0,C.yZ)(e))?(0,E.Uu)(e):(0,C.yZ)(e),isEmptyStatsCardDismissed:(0,_.g0)(e),getModuleOverride:t=>(0,M.Qy)(e,t)})),(e=>({switchView:t=>e((0,C.D3)(t)),fetchStatsData:t=>e((0,C.g4)(t))})))(O)},89578:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(69307),d=n(65736),h=n(71415),f=n(51117),m=n(81200),g=n(10618),v=n(85253),b=n(93107),y=n(41147),k=n(88872),w=n(61161);const __=d.__;class _ extends a.Component{constructor(){super(...arguments),i()(this,"activateVideoPress",(()=>this.props.updateOptions({videopress:!0})))}getContent(){const e=__("VideoPress","jetpack"),t={text:__("Engage your visitors with high-resolution, ad-free video. Save time by uploading videos directly through the WordPress editor. With Jetpack VideoPress, you can customize your video player to deliver your message without the distraction.","jetpack"),link:(0,h.Z)("jetpack-support-videopress")},n=(0,m.sc)(this.props.sitePlan.product_slug),{hasConnectedOwner:r,hasVideoPressLegacySecurityPlan:i,hasVideoPressPurchase:s,isFetching:o,isOffline:a,upgradeUrl:l,videoPressStorageUsed:d}=this.props,b=(0,u.includes)(["is-premium-plan","is-business-plan","is-complete-plan"],n)||i||s,y=s&&null!==d,k=r&&!b&&!a&&!o,w=s||null===d||0!==d?__("You have used your free video. Upgrade now to unlock more videos and 1TB of storage.","jetpack",0):__("1 free video available. Upgrade now to unlock more videos and 1TB of storage.","jetpack");return this.props.getOptionValue("videopress")&&r?c().createElement(f.Z,{className:"jp-dash-item__videopress",label:e,module:"videopress",support:t,status:"is-working",overrideContent:c().createElement(c().Fragment,null,c().createElement("div",{className:"dops-card jp-dash-item__card"},c().createElement("p",{className:"jp-dash-item__description"},__("VideoPress is enabled and will optimize your videos for smooth playback on any device. To add a new video, upload it to the Media Library or Post Editor.","jetpack")),y&&c().createElement("div",{className:"jp-dash-item__videopress-storage"},c().createElement("span",null,__("Video storage used out of 1TB:","jetpack")),c().createElement(g.Z,{value:d/1e4}))),k&&c().createElement(v.Z,{className:"media__videopress-upgrade",callToAction:__("Upgrade","jetpack"),title:w,disableHref:"false",eventFeature:"videopress",icon:"video",path:"dashboard",plan:(0,m.o2)(m.qb),feature:"jetpack_videopress",href:l,trackBannerDisplay:this.props.trackUpgradeButtonView}))}):c().createElement(f.Z,{label:e,module:"videopress",support:t,className:"jp-dash-item__is-inactive",noToggle:!r,overrideContent:!r&&!a&&c().createElement(v.Z,{callToAction:__("Connect","jetpack"),title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),disableHref:"false",onClick:this.props.connectUser,eventFeature:"videopress",path:"dashboard",plan:(0,m.o2)(m.qb),icon:"video"})},c().createElement("p",{className:"jp-dash-item__description"},a?__("Unavailable in Offline Mode","jetpack"):(0,p.createInterpolateElement)(__("<a>Activate</a> to engage your visitors with high-resolution, ad-free video. Save time by uploading videos directly through the WordPress editor. Try it for free.","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.activateVideoPress})})))}render(){return this.props.isModuleAvailable&&this.getContent()}}i()(_,"propTypes",{hasConnectedOwner:o().bool.isRequired,isOfflineMode:o().bool.isRequired,isModuleAvailable:o().bool.isRequired,trackUpgradeButtonView:o().func}),i()(_,"defaultProps",{trackUpgradeButtonView:u.noop}),t.Z=(0,l.$j)((e=>({hasConnectedOwner:(0,y.it)(e),hasVideoPressPurchase:(0,k.jQ)(e),hasVideoPressLegacySecurityPlan:(0,k.qn)(e).find(m.dy),isModuleAvailable:(0,b.v1)(e,"videopress"),isOffline:(0,y.Ex)(e),isFetching:(0,k.GR)(e),sitePlan:(0,k.UL)(e),upgradeUrl:(0,w.z)(e,"videopress"),videoPressStorageUsed:(0,k.VH)(e)})),(e=>({connectUser:()=>e((0,y.bL)())})))(_)},43240:function(e,t,n){"use strict";var r=n(99196),i=n.n(r);class s extends i().Component{componentDidMount(){const e=jQuery(this.refs.adminNotices),t=jQuery(".vp-deactivated");t.length>0&&t.each((function(){const t=jQuery(this).addClass("dops-notice is-success is-dismissable").removeClass("wrap vp-notice notice notice-success");t.wrapInner('<span class="dops-notice__content">'),t.find(".dops-notice__content").before('<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></svg></span>').css("display","block"),t.find(".dops-notice__content").after('<span role="button" tabindex="0" class="dops-notice__dismiss"><svg class="gridicon gridicons-cross" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg><span class="screen-reader-text"/></span>'),t.find("h2").replaceWith((function(){return jQuery("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML})})),t.prependTo(e).css("display","flex")}));const n=jQuery(".vp-notice");n.length>0&&n.each((function(){const t=jQuery(this);if(0===t.find(".dops-notice__icon").length){const e=t.hasClass("vp-registered"),n=e?"is-success":"is-error";t.addClass("dops-notice vp-notice-jp "+n),t.wrapInner('<span class="dops-notice__content">');const r=e?'<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"/></svg></span>':'<span class="dops-notice__icon-wrapper"><svg class="gridicon gridicons-notice dops-notice__icon" height="24" width="24" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"/></svg></span>';t.find(".dops-notice__content").before(r),t.find(".vp-message").removeClass("vp-message").addClass("dops-notice__text"),t.find("h3").replaceWith((function(){return jQuery("<strong />",{html:this.innerHTML})})),t.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML})})),t.css("display","flex")}t.find('a[href*="admin.php?page=vaultpress"]').remove(),t.prependTo(e).removeClass("wrap vp-notice")}));const r=jQuery(".woocommerce-message");r.length>0&&r.each((function(){const t=jQuery(this).addClass("dops-notice").removeClass("updated wc-connect");t.find(".button-primary").addClass("dops-notice__action").removeClass("button-primary").detach().appendTo(t),t.find("p").not(".submit").wrapAll('<span class="dops-notice__text"/>');const n=t.find(".dops-notice__text");n.find("p").replaceWith((function(){return jQuery("<div/>",{html:this.innerHTML,class:"dops-notice__moved_text"})})),n.find("br").remove(),t.find(".button-secondary").removeClass("button-secondary").detach().appendTo(n),t.find(".submit").remove(),t.find(".woocommerce-message-close").removeClass("woocommerce-message-close notice-dismiss").addClass("dops-notice__action"),t.wrapInner('<span class="dops-notice__content">').prependTo(e).css("display","flex"),t.find(".dops-notice__action").not(":first").removeClass("dops-notice__action").detach().appendTo(t.find(".dops-notice__text")),t.find(".dops-notice__action:first").detach().appendTo(t)}));const i=jQuery(".notice");i.length>0&&i.each((function(){jQuery(this).hide()})),e.length>0&&jQuery(".dops-notice__dismiss").click((function(){jQuery(this).parent().closest("div").hide()}))}render(){return i().createElement("div",{id:"jp-admin-notices",ref:"adminNotices","aria-live":"polite"})}}t.Z=s},76238:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(92819),u=n(89105),p=n.n(u),d=n(65736),h=n(34885),f=n(98486);const __=d.__,m={ios:{defaultSrc:f.hp+"/get-apps-ios-store.svg",src:"https://linkmaker.itunes.apple.com/assets/shared/badges/{localeSlug}/appstore-lrg.svg",tracksEvent:"calypso_app_download_ios_click",getStoreLink:e=>`https://apps.apple.com/app/apple-store/id335703880?pt=299112&ct=${e}&mt=8`,getTitleText:()=>__("Download the WordPress iOS mobile app.","jetpack"),getAltText:()=>__("Apple App Store download badge","jetpack"),getLocaleSlug:function(){const e=(0,h.X)().split("-")[0];return"en"===e?"en-us":`${e}-${e}`}},android:{defaultSrc:f.hp+"/get-apps-google-play.png",src:"https://play.google.com/intl/en_us/badges/images/generic/{localeSlug}_badge_web_generic.png",tracksEvent:"calypso_app_download_android_click",getStoreLink:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"web",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mobile-download-promo-pages";return`https://play.google.com/store/apps/details?id=org.wordpress.android&referrer=utm_source%3D%${e}%26utm_medium%3D${t}%26utm_campaign%3D${n}`},getTitleText:()=>__("Download the WordPress Android mobile app.","jetpack"),getAltText:()=>__("Google Play Store download badge","jetpack"),getLocaleSlug:function(){return(0,h.X)().split("-")[0]}}};class g extends a.PureComponent{constructor(e){super(e),i()(this,"onLoadImageComplete",(()=>{this.setState({hasExternalImageLoaded:!0})})),i()(this,"onLoadImageError",(()=>{this.setState({hasExternalImageLoaded:!1,imageSrc:m[this.props.storeName].defaultSrc})})),i()(this,"onLinkClick",(()=>{this.props.onBadgeClick(this.props.storeName)}));const t=m[e.storeName].getLocaleSlug().toLowerCase(),n=!(0,l.startsWith)(t,"en");this.state={shouldLoadExternalImage:n,imageSrc:n?m[e.storeName].src.replace("{localeSlug}",t):m[e.storeName].defaultSrc},n&&(this.image=null,this.loadImage())}loadImage(){this.image=new window.Image,this.image.src=this.state.imageSrc,this.image.onload=this.onLoadImageComplete,this.image.onerror=this.onLoadImageError}render(){const{altText:e,titleText:t,storeLink:n,storeName:r,utm_source:i,utm_medium:s,utm_campaign:o}=this.props,{imageSrc:a,hasExternalImageLoaded:l}=this.state,u=p()("apps-badge",{[`${r}-app-badge`]:!0,"is-external-image":l}),d=m[r];return c().createElement("figure",{className:u},c().createElement("a",{href:n||d.getStoreLink(i,s,o),onClick:this.onLinkClick,target:"_blank",rel:"noopener noreferrer"},c().createElement("img",{src:a,title:t||d.getTitleText(),alt:e||d.getAltText()})))}}i()(g,"propTypes",{altText:o().string,storeLink:o().string,storeName:o().oneOf(["ios","android"]).isRequired,titleText:o().string,onBadgeClick:o().func,utm_source:o().string.isRequired,utm_campaign:o().string,utm_medium:o().string}),i()(g,"defaultProps",{altText:"",storeLink:null,titleText:""}),t.Z=g},73875:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(89105),p=n.n(u),d=n(12901),h=n(65736),f=n(76238),m=n(11973),g=n(9913),v=n(60742),b=n(98486),y=n(17752),k=n(66552);const __=h.__;class w extends c().Component{constructor(){super(...arguments),i()(this,"trackDownloadClick",(e=>{m.Z.tracks.recordJetpackClick({target:"apps-card",button:"apps-download",page:this.props.location.pathname,store:e})})),i()(this,"dismissCard",(()=>{this.props.dismissAppCard(),m.Z.tracks.recordJetpackClick({target:"apps-card",button:"dismiss",page:this.props.location.pathname})}))}render(){if(!this.props.arePromotionsActive||this.props.isAppsCardDismissed)return null;const e=p()(this.props.className,"jp-apps-card");return c().createElement("div",{className:e},c().createElement(v.Z,{className:"jp-apps-card__content"},this.props.userCanManageOptions&&c().createElement(g.Z,{borderless:!0,compact:!0,className:"jp-apps-card__dismiss",href:"javascript:void(0)",onClick:this.dismissCard},c().createElement("span",{className:"dashicons dashicons-no"})),c().createElement("div",{className:"jp-apps-card__top"},c().createElement("img",{src:b.hp+"get-apps.svg",alt:""})),c().createElement("div",{className:"jp-apps-card__description"},c().createElement("h3",{className:"jp-apps-card__header"},__("Jetpack in your pocket","jetpack")),c().createElement("p",{className:"jp-apps-card__paragraph"},__("Get powerful security and performance tools in your pocket with the Jetpack mobile app.","jetpack")),c().createElement("div",{className:"jp-apps-card__apps-badges"},c().createElement(f.Z,{altText:__("Google Play Store download badge.","jetpack"),titleText:__("Download the Jetpack Android mobile app.","jetpack"),storeName:"android",storeLink:"https://play.google.com/store/apps/details?id=com.jetpack.android&utm_source=jpdash&utm_medium=cta&utm_campaign=getappscard",onBadgeClick:this.trackDownloadClick}),c().createElement(f.Z,{altText:__("Apple App Store download badge.","jetpack"),titleText:__("Download the Jetpack iOS mobile app.","jetpack"),storeName:"ios",storeLink:"https://apps.apple.com/us/app/jetpack-wp-security-speed/id1565481562?pt=299112ct=jpdash&mt=8",onBadgeClick:this.trackDownloadClick})))))}}i()(w,"displayName","AppsCard"),w.propTypes={className:o().string},t.Z=(0,l.$j)((e=>({isAppsCardDismissed:(0,y.vU)(e),arePromotionsActive:(0,k.Hy)(e),userCanManageOptions:(0,k.UF)(e)})),(e=>({dismissAppCard:()=>e((0,y.VP)({dismiss_dash_app_card:!0}))})))((0,d.EN)(w))},34606:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(89105),p=n.n(u),d=n(92819),h=n(11973),f=n(81200),m=n(9913),g=n(60742),v=n(22256),b=n(3218),y=n(66552),k=n(41147);class w extends a.Component{constructor(){super(...arguments),i()(this,"handleClick",(()=>{this.props.onClick();const{eventFeature:e,path:t,currentVersion:n}=this.props;if(e||t){const r=e?{feature:e}:{},i=t?{path:t}:{},s={target:"banner",type:"upgrade",current_version:n,is_user_wpcom_connected:this.props.isCurrentUserLinked?"yes":"no",is_connection_owner:this.props.isConnectionOwner?"yes":"no",...r,...i};h.Z.tracks.recordJetpackClick(s)}}))}getHref(){const{href:e,feature:t,siteSlug:n}=this.props;return!e&&n?t?`/plans/${n}?feature=${t}`:`/plans/${n}`:e}getIcon(){const{icon:e,iconAlt:t,iconSrc:n,plan:r}=this.props;return!r||e&&n?c().createElement("div",{className:"dops-banner__icons"},c().createElement("div",{className:"dops-banner__icon"},e&&c().createElement(v.Z,{icon:e||"info-outline",size:18}),n&&c().createElement("img",{className:"dops-banner__icon-circle-svg",src:n,alt:t})),c().createElement("div",{className:"dops-banner__icon-circle"},e&&c().createElement(v.Z,{icon:e||"info-outline",size:18}),n&&c().createElement("img",{className:"dops-banner__icon-circle-svg",src:n,alt:t}))):c().createElement("div",{className:"dops-banner__icon-plan"},c().createElement(b.Z,{plan:r}))}getContent(){const{callToAction:e,description:t,list:n,title:r}=this.props;return c().createElement("div",{className:"dops-banner__content"},c().createElement("div",{className:"dops-banner__info"},c().createElement("div",{className:"dops-banner__title"},r),t&&c().createElement("div",{className:"dops-banner__description"},t),(0,d.size)(n)>0&&c().createElement("ul",{className:"dops-banner__list"},n.map(((e,t)=>c().createElement("li",{key:t},c().createElement(v.Z,{icon:"checkmark",size:18}),e))))),e&&c().createElement("div",{className:"dops-banner__action"},e&&c().createElement(m.Z,{compact:!0,href:this.getHref(),onClick:this.handleClick,primary:!0},e)))}render(){const{callToAction:e,className:t,plan:n}=this.props,r=(0,f.sc)(n),i=(0,f.G1)(n),s=(0,f.yy)(n),o=p()("dops-banner",t,{"has-call-to-action":e},{"is-upgrade-personal":i&&"is-personal-plan"===r},{"is-upgrade-premium":i&&"is-premium-plan"===r},{"is-upgrade-business":i&&"is-business-plan"===r},{"is-product":s},{"is-plan":!s},{"is-bundle":!s&&(0,f.Pu)(n)});return c().createElement(g.Z,{className:o,href:e?null:this.getHref(),onClick:e?d.noop:this.handleClick},this.getIcon(),this.getContent())}}i()(w,"propTypes",{callToAction:o().string,className:o().string,currentVersion:o().string.isRequired,description:o().node,eventFeature:o().string,feature:o().string,href:o().string,icon:o().string,iconAlt:o().string,iconSrc:o().string,list:o().arrayOf(o().string),onClick:o().func,path:o().string,plan:o().string,siteSlug:o().string,title:o().string.isRequired,isCurrentUserLinked:o().string,isConnectionOwner:o().bool}),i()(w,"defaultProps",{onClick:d.noop}),t.Z=(0,l.$j)((e=>({currentVersion:(0,y.w1)(e),isCurrentUserLinked:(0,k.BU)(e),isConnectionOwner:(0,k.QM)(e)})))(w)},45232:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(89105),c=n.n(a);class l extends o().Component{render(){const e=c()("dops-button-group",this.props.className);return o().createElement("span",{className:e},this.props.children)}}i()(l,"displayName","ButtonGroup"),i()(l,"propTypes",{children(e){let t=null;return o().Children.forEach(e.children,(e=>{e.props&&"button"===e.props.type||(t=new Error("All children elements should be a Button."))})),t}})},9913:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819);class d extends c().Component{render(){const e=this.props.href?"a":"button",{primary:t,compact:n,scary:r,borderless:i,className:s,...o}=this.props,a=u()({"dops-button":!0,"is-compact":n,"is-primary":t,"is-scary":r,"is-borderless":i});return o.className=u()(s,a),c().createElement(e,o,this.props.children)}}i()(d,"displayName","Button"),i()(d,"propTypes",{disabled:o().bool,compact:o().bool,primary:o().bool,scary:o().bool,type:o().string,href:o().string,onClick:o().func,borderless:o().bool,className:o().string}),i()(d,"defaultProps",{disabled:!1,type:"button",onClick:p.noop,borderless:!1})},3810:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(92819),c=n(89105),l=n.n(c),u=n(60742);class p extends o().Component{render(){const e=(0,a.assign)({},this.props,{className:l()(this.props.className,"is-compact")});return o().createElement(u.Z,e,this.props.children)}}i()(p,"displayName","CompactCard")},60742:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819),d=n(22256);class h extends c().Component{constructor(){super(...arguments),i()(this,"_renderWithTitle",(()=>{const e="dops-card-section-orient-"+(this.props.vertical?"vertical":"horizontal");return c().createElement("div",{className:e},c().createElement("h4",{ref:"label",className:"dops-card-section-label"},this.props.title),c().createElement("div",{ref:"content",className:"dops-card-section-content"},this.props.children))}))}render(){return c().createElement("div",{className:u()("dops-card-section",this.props.className),style:this.props.style},this.props.title?this._renderWithTitle():this.props.children)}}i()(h,"propTypes",{title:o().any,vertical:o().any,style:o().object,className:o().string,device:o().oneOf(["desktop","tablet","phone"])}),i()(h,"defaultProps",{vertical:null});class f extends c().Component{render(){return c().createElement("div",{className:"dops-card-footer"},this.props.children)}}class m extends c().Component{constructor(){super(...arguments),i()(this,"_renderIcon",(()=>c().createElement("span",{className:"dops-card-icon",style:{color:this.props.iconColor}},this.props.icon&&c().createElement(d.Z,{icon:this.props.icon,style:{backgroundColor:this.props.iconColor}}),this.props.iconLabel)))}render(){const e=u()("dops-card",this.props.className,{"is-card-link":!!this.props.href,"is-compact":this.props.compact}),t=["compact","tagName","meta","iconColor"];let n,r;return this.props.href?n=c().createElement(d.Z,{className:"dops-card__link-indicator",icon:this.props.target?"external":"chevron-right"}):t.push("href","target"),this.props.title&&(r=c().createElement("h2",{className:"dops-card-title"},this.props.title,this.props.meta&&c().createElement("span",{className:"dops-card-meta"},this.props.meta),(this.props.icon||this.props.iconLabel)&&this._renderIcon())),c().createElement(this.props.href?"a":this.props.tagName,(0,p.assign)((0,p.omit)(this.props,t),{className:e}),n,r,this.props.children)}}i()(m,"propTypes",{meta:o().any,icon:o().string,iconLabel:o().any,iconColor:o().string,style:o().object,className:o().string,href:o().string,onClick:o().func,title:o().string,tagName:o().string,target:o().string,compact:o().bool,children:o().node}),i()(m,"defaultProps",{iconColor:"#787878",className:"",tagName:"div",onClick:()=>{}}),m.Section=h,m.Footer=f,t.Z=m},53436:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(47890),u=n(912);class p extends c().Component{constructor(){super(...arguments),i()(this,"buildBars",(e=>{const t=this.props.data.length,n=this.props.chartWidth,r=n/t;let i="bottom right";return this.props.data.map((function(s,o){const a=r*(o+1);return a+230>n&&a+r-230>0&&(i="bottom left"),c().createElement(l.Z,{index:o,key:o,isTouch:this.props.isTouch,tooltipPosition:i,className:s.className,clickHandler:this.props.barClick,data:s,max:e,count:t})}),this)}))}render(){return c().createElement("div",null,c().createElement("div",{className:"dops-chart__bars"},this.buildBars(this.props.yAxisMax)),c().createElement(u.Z,{data:this.props.data,labelWidth:42}))}}i()(p,"displayName","ModuleChartBarContainer"),i()(p,"propTypes",{isTouch:o().bool,data:o().array,yAxisMax:o().number,width:o().number,barClick:o().func})},47890:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(39124),d=n(22256);class h extends c().Component{constructor(){super(...arguments),i()(this,"state",{showPopover:!1}),i()(this,"buildSections",(()=>{const e=this.props.data.value,t=this.props.max,n=100-(t?Math.ceil(e/t*1e4)/100:0),r=Math.max(1,Math.floor(n)),i=[],s=this.props.data.nestedValue,o={"dops-chart__bar-section":!0,"is-spacer":!0,"is-ghost":100===n&&!this.props.active};let a,l,p;const d={height:r+"%"};i.push(c().createElement("div",{key:"spacer",className:u()(o),style:d}));const h={top:r+"%"};return s&&(l=e?Math.ceil(s/e*1e4)/100:0,p={height:l+"%"},a=c().createElement("div",{key:"nestedValue",className:"dops-chart__bar-section-inner",style:p})),i.push(c().createElement("div",{ref:"valueBar",key:"value",className:"dops-chart__bar-section is-bar",style:h},a)),i.push(c().createElement("div",{key:"label",className:"dops-chart__bar-label"},this.props.label)),i})),i()(this,"keyHandler",(e=>{"function"==typeof this.props.clickHandler&&13===e.keyCode&&this.props.clickHandler(this.props.data)})),i()(this,"clickHandler",(()=>{"function"==typeof this.props.clickHandler&&this.props.clickHandler(this.props.data)})),i()(this,"mouseEnter",(()=>{this.setState({showPopover:!0})})),i()(this,"mouseLeave",(()=>{this.setState({showPopover:!1})})),i()(this,"renderTooltip",(()=>{if(!this.props.data.tooltipData||!this.props.data.tooltipData.length||this.props.isTouch)return null;const{tooltipData:e}=this.props.data,t=e.map((function(e,t){const n=["module-content-list-item"];let r;return e.icon&&(r=c().createElement(d.Z,{icon:e.icon,size:18})),n.push(e.className),c().createElement("li",{key:t,className:n.join(" ")},c().createElement("span",{className:"dops-wrapper"},c().createElement("span",{className:"value"},e.value),c().createElement("span",{className:"label"},r,e.label)))}));return c().createElement(p.Z,{className:"dops-chart__tooltip",id:"popover__chart-bar",showDelay:200,context:this.refs&&this.refs.valueBar,isVisible:this.state.showPopover,position:this.props.tooltipPosition},c().createElement("ul",null,t))}))}render(){const e=this.props.count||1,t={"dops-chart__bar":!0};this.props.className&&(t[this.props.className]=!0);const n={width:1/e*100+"%"};return c().createElement("div",{role:"button",tabIndex:0,onKeyUp:this.keyHandler,onClick:this.clickHandler,onMouseEnter:this.mouseEnter,onMouseLeave:this.mouseLeave,"aria-label":this.props.data.tooltipData[0].label+" — "+this.props.data.value+".",className:u()(t),style:n},this.buildSections(),c().createElement("div",{className:"dops-chart__bar-marker is-hundred"}),c().createElement("div",{className:"dops-chart__bar-marker is-fifty"}),c().createElement("div",{className:"dops-chart__bar-marker is-zero"}),this.renderTooltip())}}i()(h,"displayName","ModuleChartBar"),i()(h,"propTypes",{isTouch:o().bool,tooltipPosition:o().string,className:o().string,clickHandler:o().func,data:o().object.isRequired,max:o().number,count:o().number})},73653:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(92819),u=n(65736),p=n(53436),d=n(82538);const _x=u._x;class h extends o().Component{constructor(){super(...arguments),i()(this,"state",{maxBars:100,width:650}),i()(this,"resize",(()=>{let e,t=this.refs.chart.clientWidth-82;(0,d._)()?(t=t<=0?350:t,e=Math.floor(t/this.props.minTouchBarWidth)):e=Math.floor(t/this.props.minBarWidth),this.setState({maxBars:e,width:t})})),i()(this,"getYAxisMax",(e=>{const t=Math.max.apply(null,e),n=Math.pow(10,t.toString().length-1);let r=Math.ceil((t+1)/n)*n;return r<10&&(r=10),r})),i()(this,"getData",(()=>{let e=this.props.data;return e=e.slice(0-this.state.maxBars),e})),i()(this,"getValues",(()=>{let e=this.getData();return e=e.map((function(e){return e.value}),this),e})),i()(this,"isEmptyChart",(e=>0===(e=e.filter((function(e){return e>0}),this)).length))}componentDidMount(){this.resize=(0,l.throttle)(this.resize,400),window.addEventListener("resize",this.resize),this.resize()}componentWillUnmount(){window.removeEventListener("resize",this.resize)}UNSAFE_componentWillReceiveProps(e){this.props.loading&&!e.loading&&this.resize()}render(){const e=this.getValues(),t=this.getYAxisMax(e),n=this.getData();let r;return e.length&&this.isEmptyChart(e)&&(r=o().createElement("div",{className:"dops-chart__empty"},o().createElement("span",{className:"dops-chart__empty_notice"},_x("No activity this period","Notice in the empty statistics chart","jetpack")))),o().createElement("div",{ref:"chart",className:"dops-chart"},o().createElement("div",{className:"dops-chart__y-axis-markers"},o().createElement("div",{className:"dops-chart__y-axis-marker is-hundred"}),o().createElement("div",{className:"dops-chart__y-axis-marker is-fifty"}),o().createElement("div",{className:"dops-chart__y-axis-marker is-zero"})),o().createElement("div",{className:"dops-chart__y-axis"},o().createElement("div",{className:"dops-chart__y-axis-width-fix"},new Number(1e5).toLocaleString()),o().createElement("div",{className:"dops-chart__y-axis-label is-hundred"},t.toLocaleString()),o().createElement("div",{className:"dops-chart__y-axis-label is-fifty"},(t/2).toLocaleString()),o().createElement("div",{className:"dops-chart__y-axis-label is-zero"},0)),o().createElement(p.Z,{barClick:this.props.barClick,data:n,yAxisMax:t,chartWidth:this.state.width,isTouch:(0,d._)()}),r)}}i()(h,"displayName","ModuleChart"),i()(h,"propTypes",{loading:c().bool,data:c().array,minTouchBarWidth:c().number,minBarWidth:c().number,barClick:c().func}),i()(h,"defaultProps",{minTouchBarWidth:42,minBarWidth:15,barClick:l.noop})},12769:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a);class l extends c().Component{render(){const e={width:this.props.width+"px"};return e.left=this.props.x+"px",c().createElement("div",{className:"dops-chart__x-axis-label",style:e},this.props.label)}}i()(l,"displayName","ModuleChartLabel"),i()(l,"propTypes",{width:o().number.isRequired,x:o().number.isRequired,label:o().string.isRequired})},912:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(92819),u=n(12769);class p extends o().Component{constructor(){super(...arguments),i()(this,"state",{divisor:1,spacing:this.props.labelWidth}),i()(this,"resize",(e=>{let t=this.props;const n=this.refs.axis;!e||e instanceof Event||(t=e),n.style.overflow="hidden";const r=n.clientWidth;n.style.overflow="visible";const i=r/(t.data.length||1),s=t.labelWidth,o=Math.ceil(s/i);this.setState({divisor:o,spacing:i})}))}componentDidMount(){this.resizeThrottled=(0,l.throttle)(this.resize,400),window.addEventListener("resize",this.resizeThrottled),this.resize()}componentWillUnmount(){this.resizeThrottled.cancel&&this.resizeThrottled.cancel(),window.removeEventListener("resize",this.resizeThrottled)}UNSAFE_componentWillReceiveProps(e){this.resize(e)}render(){const e=this.props.data,t=e.map((function(t,n){const r=n*this.state.spacing+(this.state.spacing-this.props.labelWidth)/2;let i;return(e.length-n-1)%this.state.divisor==0&&(i=o().createElement(u.Z,{key:n,label:t.label,width:this.props.labelWidth,x:r})),i}),this);return o().createElement("div",{ref:"axis",className:"dops-chart__x-axis"},t)}}i()(p,"displayName","ModuleChartXAxis"),i()(p,"propTypes",{labelWidth:c().number.isRequired,data:c().array.isRequired})},18582:function(e,t,n){"use strict";n.d(t,{Z:function(){return g}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(11268),c=n.n(a),l=n(99196),u=n.n(l),p=n(89105),d=n.n(p),h=n(92819),f=n(14318),m=n(15029);class g extends u().Component{constructor(){super(...arguments),o()(this,"state",{isCopied:!1,disabled:!1}),o()(this,"showConfirmation",(()=>{this.setState({isCopied:!0}),this.confirmationTimeout=setTimeout((()=>{this.setState({isCopied:!1})}),4e3)}))}componentWillUnmount(){clearTimeout(this.confirmationTimeout),delete this.confirmationTimeout}render(){const e=(0,h.omit)(this.props,"className","copied","copy","isError","isValid","prompt","selectOnFocus");return u().createElement("span",{className:d()("dops-clipboard-button-input",this.props.className)},u().createElement(m.Z,i()({},e,{type:"text",selectOnFocus:!0,readOnly:!0})),u().createElement(f.Z,{text:this.props.value,onCopy:this.showConfirmation,disabled:this.props.disabled,prompt:this.props.prompt,compact:!0},this.state.isCopied?this.props.copied:this.props.copy))}}o()(g,"displayName","ClipboardButtonInput"),o()(g,"propTypes",{value:c().string,disabled:c().bool,className:c().string,copied:c().string,copy:c().string,prompt:c().string}),o()(g,"defaultProps",{value:""})},81441:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(69307),p=n(65736),d=n(96483),h=n(71415),f=n(11973),m=n(9913),g=n(41147),v=n(66552),b=n(41922),y=n(15628),k=n(27711);const __=p.__;class w extends c().Component{constructor(e){super(e),i()(this,"handleOpenModal",(e=>{f.Z.tracks.recordJetpackClick("manage_site_connection"),e.preventDefault(),this.toggleVisibility()})),i()(this,"handleDisconnected",(()=>{this.props.fetchConnectUrl(),this.props.fetchSiteConnectionStatus()})),i()(this,"toggleVisibility",(()=>{this.setState({showModal:!this.state.showModal})})),i()(this,"loadIframe",(e=>{e.preventDefault(),this.props.isAuthorizing||this.props.fetchingConnectUrl||(f.Z.tracks.recordJetpackClick("link_account_in_place"),this.props.customConnect?this.props.customConnect():this.props.doConnectUser())})),i()(this,"renderUserButton",(()=>{if(this.props.isLinked)return c().createElement("div",null,c().createElement("a",{role:"button",tabIndex:"0",className:"jp-jetpack-unlink__button",onKeyDown:(0,b.Z)(this.props.unlinkUser),onClick:this.props.unlinkUser,disabled:this.props.isUnlinking},this.props.connectLegend||__("Disconnect your WordPress.com account","jetpack")));let e=this.props.connectUrl;this.props.from&&(e+=`&from=${this.props.from}`,e+="&additional-user");const t={className:"is-primary jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl||this.props.isAuthorizing},n=this.props.connectLegend||__("Connect your WordPress.com account","jetpack");return!this.props.connectInPlace||this.props.isSafari||this.props.doNotUseConnectionIframe||(t.onClick=this.loadIframe),this.props.asLink?c().createElement("a",t,n):c().createElement(m.Z,t,n)})),i()(this,"renderContent",(()=>{if(this.props.connectUser)return this.renderUserButton();if(this.props.isSiteConnected)return c().createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,b.Z)(this.handleOpenModal),onClick:this.handleOpenModal,disabled:this.props.isDisconnecting},this.props.connectLegend||__("Manage site connection","jetpack"));let e=this.props.connectUrl;this.props.from&&(e+=`&from=${this.props.from}`);const t={className:"jp-jetpack-connect__button",href:e,disabled:this.props.fetchingConnectUrl},n=this.props.connectLegend||__("Set up Jetpack","jetpack");return this.props.asLink?c().createElement("a",t,n):c().createElement(m.Z,t,n)})),this.state={showModal:e.autoOpenInDisconnectRoute&&"#/disconnect"===(0,d.getFragment)(window.location.href)}}render(){return c().createElement("div",null,!this.props.isSiteConnected&&c().createElement("p",{className:"jp-banner__tos-blurb"},(0,u.createInterpolateElement)(__("By clicking the button below, you agree to our <tosLink>Terms of Service</tosLink> and to <shareDetailsLink>share details</shareDetailsLink> with WordPress.com.","jetpack"),{tosLink:c().createElement("a",{href:(0,h.Z)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"}),shareDetailsLink:c().createElement("a",{href:(0,h.Z)("jetpack-support-what-data-does-jetpack-sync"),rel:"noopener noreferrer",target:"_blank"})})),this.renderContent(),this.props.children,c().createElement(y.Z,{apiNonce:this.props.apiNonce,apiRoot:this.props.apiRoot,connectedPlugins:this.props.connectedPlugins,connectedUser:{ID:this.props.userWpComId,login:this.props.userWpComLogin},connectedSiteId:this.props.connectedSiteId,disconnectStepComponent:c().createElement(k.Z,{siteBenefits:this.props.siteBenefits}),onDisconnected:this.handleDisconnected,isOpen:this.state.showModal,onClose:this.toggleVisibility,context:"jetpack"}))}}i()(w,"displayName","ConnectButton"),i()(w,"propTypes",{connectUser:o().bool,from:o().string,asLink:o().bool,connectLegend:o().string,connectInPlace:o().bool,customConnect:o().func,autoOpenInDisconnectRoute:o().bool}),i()(w,"defaultProps",{connectUser:!1,from:"",asLink:!1,connectInPlace:!0,autoOpenInDisconnectRoute:!1}),t.Z=(0,l.$j)((e=>({siteRawUrl:(0,v.JR)(e),isSiteConnected:(0,g.Gz)(e),isDisconnecting:(0,g.e_)(e),fetchingConnectUrl:(0,g.Mq)(e),connectUrl:(0,g.AM)(e),isLinked:(0,g.BU)(e),isUnlinking:(0,g.jZ)(e),isAuthorizing:(0,g.zq)(e),isSafari:(0,v.G6)(e),doNotUseConnectionIframe:(0,v.jq)(e),apiNonce:(0,v.VY)(e),apiRoot:(0,v.yB)(e),connectedPlugins:(0,v.xz)(e),siteBenefits:(0,v.Hh)(e),pluginUrl:(0,v.wB)(e),userWpComLogin:(0,v.IU)(e),userWpComId:(0,v._G)(e),connectedSiteId:(0,v.EZ)(e)})),(e=>({fetchConnectUrl:()=>e((0,g.eW)()),fetchSiteConnectionStatus:()=>e((0,g.I7)()),unlinkUser:()=>e((0,g.EP)()),doConnectUser:()=>e((0,g.bL)())})))(w)},24951:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(11268),a=n.n(o),c=n(65736),l=n(81441),u=n(60742),p=n(11973),d=n(41147);const __=c.__,h=e=>{const{feature:t,featureLabel:n,text:s,doConnectUser:o}=e,a=(0,r.useCallback)((()=>{p.Z.tracks.recordJetpackClick({target:"connection-bar-click",feature:t,is_user_wpcom_connected:"no",is_connection_owner:"no"}),o(n)}),[o,t,n]);return i().createElement(u.Z,{compact:!0,className:"jp-connect-user-bar__card"},i().createElement("div",{className:"jp-connect-user-bar__text"},(0,c.sprintf)(
/* translators: placeholder is text adding extra instructions on what to do next. */
__("This feature is provided by the WordPress.com cloud. %s","jetpack"),s)),i().createElement("div",{className:"jp-connect-user-bar__button"},i().createElement(l.Z,{connectUser:!0,from:"unlinked-user-connect",connectLegend:__("Connect your WordPress.com account","jetpack"),customConnect:a})))};h.propTypes={text:a().string.isRequired,feature:a().string,featureLabel:a().string},t.Z=(0,s.$j)(null,(e=>({doConnectUser:t=>e((0,d.bL)(t))})))(h)},68103:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(34606),d=n(60742),h=n(81441),f=n(22256);class m extends p.Z{getIcon(){const e=this.props.icon;return e&&"object"==typeof e?c().createElement("div",{className:"jp-connection-banner__icon"},e):c().createElement("div",{className:"dops-banner__icons"},c().createElement("div",{className:"dops-banner__icon"},c().createElement(f.Z,{icon:e||"info-outline",size:18})),c().createElement("div",{className:"dops-banner__icon-circle"},c().createElement(f.Z,{icon:e||"info-outline",size:18})))}getContent(){const{description:e,title:t,connectUser:n,from:r,asLink:i,connectInPlace:s}=this.props,o={connectUser:n,from:r,asLink:i,connectInPlace:s};return c().createElement("div",{className:"dops-banner__content"},c().createElement("div",{className:"dops-banner__info"},c().createElement("div",{className:"dops-banner__title"},t),e&&c().createElement("div",{className:"dops-banner__description"},e)),c().createElement("div",{className:"dops-banner__action"},c().createElement(h.Z,o)))}render(){const e=u()("dops-banner",this.props.className);return c().createElement(d.Z,{className:e},this.getIcon(),this.getContent())}}i()(m,"propTypes",{title:o().string.isRequired,className:o().string,description:o().node,icon:o().oneOfType([o().element,o().string]),connectUser:o().bool,from:o().string,asLink:o().bool,connectInPlace:o().bool}),t.Z=m},74465:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(81546),c=n(92672),l=n(61591),u=n(65736),p=n(55609),d=n(69307),h=n(11973);const __=u.__,f=e=>{const{title:t,logo:n,children:s,className:o,buttonLabel:u,apiRoot:f,apiNonce:m,registrationNonce:g,redirectUri:v,redirectTo:b,autoTrigger:y,isSiteConnected:k,setHasSeenWCConnectionModal:w}=e;(0,r.useEffect)((()=>{w()}),[w]);const _=(0,r.useCallback)((()=>{h.Z.tracks.recordJetpackClick("contextualized_connection_continue_button")}),[]);return i().createElement("div",{className:"jp-contextualized-connection"+(o?" "+o:"")},i().createElement("div",{className:"jp-contextualized-connection__content"},i().createElement("div",{className:"jp-contextualized-connection__logo"},n||i().createElement(a.Z,null)),i().createElement("h2",null,t),s,k&&i().createElement(p.Button,{isPrimary:!0,className:"jp-contextualized-connection__button",label:__("Continue to Jetpack","jetpack"),href:b,onClick:_},__("Continue to Jetpack","jetpack")),!k&&i().createElement(i().Fragment,null,i().createElement(c.Z,{autoTrigger:y,apiRoot:f,apiNonce:m,registrationNonce:g,redirectUri:v,connectLabel:u}),i().createElement("div",{className:"jp-contextualized-connection__tos"},l.E))),i().createElement("footer",{className:"jp-contextualized-connection__footer"},i().createElement("div",{className:"jp-contextualized-connection__footer-row"},i().createElement("div",{className:"jp-contextualized-connection__footer-column"},i().createElement("h3",null,__("Security tools","jetpack")),i().createElement("ul",{className:"jp-contextualized-connection__feature-list"},i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> downtime monitoring","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> brute force attack prevention","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,__("Full store & order backups","jetpack")),i().createElement("li",null,__("Automated malware scanning","jetpack")),i().createElement("li",null,__("Comment and form spam protection","jetpack")))),i().createElement("div",{className:"jp-contextualized-connection__footer-column"},i().createElement("h3",null,__("Performance tools","jetpack")),i().createElement("ul",{className:"jp-contextualized-connection__feature-list"},i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> Content Delivery Network (CDN)","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> lazy image loading","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> SEO tools","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,__("Instant site search","jetpack")),i().createElement("li",null,__("Ad-free WordPress video hosting","jetpack")))),i().createElement("div",{className:"jp-contextualized-connection__footer-column"},i().createElement("h3",null,__("Growth tools","jetpack")),i().createElement("ul",{className:"jp-contextualized-connection__feature-list"},i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> site stats","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> social media tools","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,(0,d.createInterpolateElement)(__("<strong>Free</strong> related posts","jetpack"),{strong:i().createElement("strong",null)})),i().createElement("li",null,__("Accept payments","jetpack")),i().createElement("li",null,__("Ad network access","jetpack"))))),i().createElement("div",{className:"jp-contextualized-connection__footer-bottom-title"},__("More than 5 million WordPress sites trust Jetpack for their website security and performance.","jetpack"))))};f.propTypes={title:o().string,className:o().string,buttonLabel:o().string,apiRoot:o().string.isRequired,apiNonce:o().string.isRequired,registrationNonce:o().string.isRequired,redirectUri:o().string.isRequired,redirectTo:o().string.isRequired,autoTrigger:o().bool,isSiteConnected:o().bool.isRequired,logo:o().shape({type:o().oneOf(["img","svg"])})},t.Z=f},44135:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(7767),c=n.n(a),l=n(21425),u=n.n(l);t.Z=c()({displayName:"Count",mixins:[u()],propTypes:{count:i().number.isRequired},render(){return o().createElement("span",{className:"dops-count"},this.numberFormat(this.props.count))}})},51117:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(11268),c=n.n(a),l=n(99196),u=n.n(l),p=n(89105),d=n.n(p),h=n(2620),f=n(92819),m=n(65736),g=n(71415),v=n(11973),b=n(9913),y=n(60742),k=n(93107),w=n(66552),_=n(41147),E=n(77222),C=n(27415),S=n(35303),j=n(88001),M=n(25691),x=n(5e4);const __=m.__,_x=m._x;class N extends l.Component{constructor(){super(...arguments),o()(this,"toggleModule",(()=>{const{updateOptions:e,module:t,getOptionValue:n}=this.props;e({[t]:!n(t)})})),o()(this,"trackPaidBtnClick",(()=>{v.Z.tracks.recordJetpackClick({target:"paid-button",feature:this.props.module,page:"aag"})}))}render(){let e,t,n="";const r=d()(this.props.className,"jp-dash-item",this.props.disabled?"jp-dash-item__disabled":"");return""!==this.props.module&&(t=(0,f.includes)(["monitor","protect","photon","vaultpress","scan","backups","akismet","search"],this.props.module)&&this.props.isOfflineMode||this.props.noToggle||"manage"===this.props.module?"":u().createElement(E.T,{slug:this.props.module,activated:this.props.getOptionValue(this.props.module),toggling:this.props.isUpdating(this.props.module),toggleModule:this.toggleModule,compact:!0}),"manage"===this.props.module&&("is-warning"===this.props.status&&(t=u().createElement("a",{href:this.props.isOfflineMode?this.props.siteAdminUrl+"update-core.php":(0,g.Z)("calypso-plugins-manage",{site:this.props.siteRawUrl})},u().createElement(j.Z,{showDismiss:!1,status:this.props.status,isCompact:!0},_x("Updates needed","Short warning message","jetpack")))),"is-working"===this.props.status&&(t=u().createElement("span",{className:"jp-dash-item__active-label"},__("Active","jetpack")))),"rewind"===this.props.module&&(t=null)),this.props.pro&&!this.props.isOfflineMode&&(n=u().createElement(b.Z,{onClick:this.trackPaidBtnClick,compact:!0,href:"#/plans"},_x("Paid","Short label appearing near a paid feature configuration block.","jetpack")),this.props.isModule&&(t=u().createElement(C.Z,{proFeature:this.props.module,siteAdminUrl:this.props.siteAdminUrl}))),this.props.module&&this.props.getModule&&(e=this.props.getModule(this.props.module)),u().createElement("div",{className:r},u().createElement(S.Z,{label:this.props.label,cardBadge:n},this.props.userCanToggle?t:""),this.props.overrideContent?this.props.overrideContent:u().createElement(y.Z,{className:"jp-dash-item__card",href:this.props.href},u().createElement("div",{className:"jp-dash-item__content"},this.props.support.link&&u().createElement(M.Z,i()({module:e},this.props.support)),this.props.children)))}}o()(N,"propTypes",{label:c().string,status:c().string,statusText:c().string,disabled:c().bool,module:c().string,pro:c().bool,isModule:c().bool,support:c().object,overrideContent:c().element,noToggle:c().bool}),o()(N,"defaultProps",{label:"",module:"",pro:!1,isModule:!0,support:{text:"",link:""},noToggle:!1}),t.Z=(0,h.$j)((e=>({getModule:t=>(0,k.rT)(e,t),isOfflineMode:(0,_.Ex)(e),userCanToggle:(0,w.pK)(e),siteRawUrl:(0,w.JR)(e),siteAdminUrl:(0,w.wW)(e)})))((0,x.u)(N))},69733:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(11973);class d extends c().Component{constructor(){super(...arguments),i()(this,"trackCogClick",(()=>{p.Z.tracks.recordJetpackClick({target:"settings-cog",group:"security",page:"aag"})}))}render(){let e,t;const n=u()(this.props.className,"jp-dash-section-header");return this.props.externalLink&&(e=c().createElement("a",{className:"jp-dash-section-header__external-link",href:this.props.externalLinkPath,onClick:this.props.externalLinkClick},this.props.externalLink)),this.props.children&&(t=c().createElement("div",{className:"jp-dash-section-header__children"},this.props.children)),c().createElement("div",{className:n},c().createElement("div",{className:"jp-dash-section-header__label"},c().createElement("h2",{className:"jp-dash-section-header__name"},this.props.label)),e,t)}}i()(d,"displayName","DashSectionHeader"),i()(d,"propTypes",{label:o().string.isRequired,settingsPath:o().string,externalLinkPath:o().string,externalLink:o().string,externalLinkClick:o().func}),i()(d,"defaultProps",{label:"",settingsPath:"",externalLinkPath:"",externalLink:""}),t.Z=d},2795:function(e,t,n){"use strict";var r=n(99196),i=n(2620),s=n(74978),o=n(75395);class a extends r.Component{UNSAFE_componentWillMount(){this.props.fetchingAkismetData||this.props.fetchAkismetData()}render(){return null}}a.defaultProps={fetchAkismetData:()=>{}},t.Z=(0,i.$j)((e=>({fetchAkismetData:(0,o.bB)(),fetchingAkismetData:(0,o.bV)(e)})),(e=>(0,s.DE)({fetchAkismetData:o.bB},e)))(a)},65125:function(e,t,n){"use strict";var r=n(99196),i=n(2620),s=n(74978),o=n(75395);class a extends r.Component{UNSAFE_componentWillMount(){this.props.isCheckingAkismetKey||this.props.checkAkismetKey()}render(){return null}}a.defaultProps={checkAkismetKey:()=>{}},t.Z=(0,i.$j)((e=>({checkAkismetKey:(0,o.Bt)(),isCheckingAkismetKey:(0,o.gw)(e)})),(e=>(0,s.DE)({checkAkismetKey:o.Bt},e)))(a)},66683:function(e,t,n){"use strict";var r=n(99196),i=n(2620),s=n(74978),o=n(75395),a=n(93107);class c extends r.Component{UNSAFE_componentWillMount(){!this.props.fetchingProtectData&&this.props.isModuleActivated("protect")&&this.props.fetchProtectCount()}render(){return null}}c.defaultProps={fetchProtectCount:()=>{}},t.Z=(0,i.$j)((e=>({fetchProtectCount:(0,o.eR)(),fetchingProtectData:(0,o.Xu)(e),isModuleActivated:t=>(0,a.mp)(e,t)})),(e=>(0,s.DE)({fetchProtectCount:o.eR},e)))(c)},63038:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n(2620),l=n(92819),u=n(13553);class p extends a.Component{componentDidMount(){!this.props.isFetchingProducts&&(0,l.isEmpty)(this.props.products)&&this.props.fetchProducts()}render(){return null}}i()(p,"propTypes",{isFetchingProducts:o().bool}),i()(p,"defaultProps",{isFetchingProducts:!1}),t.Z=(0,c.$j)((e=>({isFetchingProducts:(0,u.T0)(e),products:(0,u.Xp)(e)})),(e=>({fetchProducts:()=>e((0,u.t2)())})))(p)},76563:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n(2620),l=n(90218),u=n(41147);class p extends a.Component{componentDidMount(){this.props.isFetchingRecommendationsData||this.props.isOfflineMode||this.props.fetchRecommendationsData()}render(){return null}}i()(p,"propTypes",{isFetchingRecommendationsData:o().bool,isOfflineMode:o().bool}),i()(p,"defaultProps",{isFetchingRecommendationsData:!1,isOfflineMode:!1}),t.Z=(0,c.$j)((e=>({isFetchingRecommendationsData:(0,l.WS)(e),isOfflineMode:(0,u.Ex)(e)})),(e=>({fetchRecommendationsData:()=>e((0,l.V2)())})))(p)},76287:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n(2620),l=n(90218),u=n(41147);class p extends a.Component{componentDidMount(){this.props.isFetchingRecommendationsProductSuggestions||this.props.isOfflineMode||this.props.fetchRecommendationsProductSuggestions()}render(){return null}}i()(p,"propTypes",{isFetchingRecommendationsProductSuggestions:o().bool,isOfflineMode:o().bool}),i()(p,"defaultProps",{isFetchingRecommendationsProductSuggestions:!1,isOfflineMode:!1}),t.Z=(0,c.$j)((e=>({isFetchingRecommendationsProductSuggestions:(0,l.at)(e),isOfflineMode:(0,u.Ex)(e)})),(e=>({fetchRecommendationsProductSuggestions:()=>e((0,l.km)())})))(p)},83361:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n(2620),l=n(90218),u=n(41147);class p extends a.Component{componentDidMount(){this.props.isFetchingRecommendationsUpsell||this.props.isOfflineMode||this.props.fetchRecommendationsUpsell()}render(){return null}}i()(p,"propTypes",{isFetchingRecommendationsUpsell:o().bool,isOfflineMode:o().bool}),i()(p,"defaultProps",{isFetchingRecommendationsUpsell:!1,isOfflineMode:!1}),t.Z=(0,c.$j)((e=>({isFetchingRecommendationsUpsell:(0,l.b5)(e),isOfflineMode:(0,u.Ex)(e)})),(e=>({fetchRecommendationsUpsell:()=>e((0,l.tR)())})))(p)},9477:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n(2620),l=n(30701),u=n(88872),p=n(41147);class d extends a.Component{UNSAFE_componentWillMount(){this.props.isFetchingRewindStatus||this.props.isOfflineMode||this.props.fetchRewind()}render(){return null}}i()(d,"propTypes",{isFetchingRewindStatus:o().bool,isOfflineMode:o().bool,sitePlan:o().object}),i()(d,"defaultProps",{isFetchingRewindStatus:!1,isOfflineMode:!1,sitePlan:{}}),t.Z=(0,c.$j)((e=>({isFetchingRewindStatus:(0,l.Li)(e),isOfflineMode:(0,p.Ex)(e),sitePlan:(0,u.UL)(e)})),(e=>({fetchRewind:()=>e((0,l.Au)())})))(d)},21205:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n(2620),l=n(35795),u=n(41147);class p extends a.Component{UNSAFE_componentWillMount(){this.props.isFetchingScanStatus||this.props.isOfflineMode||this.props.fetchScan()}render(){return null}}i()(p,"propTypes",{isFetchingScanStatus:o().bool,isOfflineMode:o().bool}),i()(p,"defaultProps",{isFetchingScanStatus:!1,isOfflineMode:!1}),t.Z=(0,c.$j)((e=>({isFetchingScanStatus:(0,l.gE)(e),isOfflineMode:(0,u.Ex)(e)})),(e=>({fetchScan:()=>e((0,l.eR)())})))(p)},15142:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(61744);class a extends i().Component{UNSAFE_componentWillMount(){this.props.isFetchingPluginsData||this.props.fetchPluginsData()}render(){return null}}t.Z=(0,s.$j)((e=>({isFetchingPluginsData:(0,o.vz)(e)})),(e=>({fetchPluginsData:()=>e((0,o.s4)())})))(a)},27219:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n(2620),l=n(92819),u=n(88872),p=n(41147);class d extends a.Component{UNSAFE_componentWillMount(){this.props.isFetchingSiteData||this.props.isOfflineMode||!(0,l.isEmpty)(this.props.sitePlan)||(this.props.fetchSiteData(),this.props.fetchSiteFeatures(),this.props.fetchAvailablePlans(),this.props.fetchSitePurchases())}render(){return null}}i()(d,"propTypes",{isFetchingSiteData:o().bool,isOfflineMode:o().bool,sitePlan:o().object}),i()(d,"defaultProps",{isFetchingSiteData:!1,isOfflineMode:!1,sitePlan:{}}),t.Z=(0,c.$j)((e=>({isFetchingSiteData:(0,u._5)(e),isOfflineMode:(0,p.Ex)(e),sitePlan:(0,u.UL)(e)})),(e=>({fetchSiteData:()=>e((0,u.tO)()),fetchSiteFeatures:()=>e((0,u.ij)()),fetchAvailablePlans:()=>e((0,u.lA)()),fetchSitePurchases:()=>e((0,u.Z_)())})))(d)},69039:function(e,t,n){"use strict";var r=n(99196),i=n(2620),s=n(75395);class o extends r.Component{UNSAFE_componentWillMount(){this.props.fetchingStatsData||this.props.fetchStatsData(this.props.range)}render(){return null}}o.defaultProps={fetchStatsData:()=>{}},t.Z=(0,i.$j)((e=>({fetchStatsData:t=>(0,s.g4)(e,t),fetchingStatsData:(0,s.F2)(e)})),(e=>({fetchStatsData:t=>e((0,s.g4)(t))})))(o)},80125:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(66552),a=n(41147);class c extends i().Component{UNSAFE_componentWillMount(){!this.props.isFetchingUserData&&this.props.userCanConnectAccount&&this.props.fetchUserConnectionData()}render(){return null}}t.Z=(0,s.$j)((e=>({isFetchingUserData:(0,a.Dd)(e),userCanConnectAccount:(0,o.n0)(e)})),(e=>({fetchUserConnectionData:()=>e((0,a.jb)())})))(c)},39786:function(e,t,n){"use strict";var r=n(99196),i=n(2620),s=n(74978),o=n(75395),a=n(93107);class c extends r.Component{UNSAFE_componentWillMount(){!this.props.fetchingVaultPressData&&this.props.isModuleActivated("vaultpress")&&this.props.fetchVaultPressData()}render(){return null}}c.defaultProps={fetchVaultPressData:()=>{}},t.Z=(0,i.$j)((e=>({fetchVaultPressData:(0,o.l7)(),fetchingVaultPressData:(0,o.P_)(e),isModuleActivated:t=>(0,a.mp)(e,t)})),(e=>(0,s.DE)({fetchVaultPressData:o.l7},e)))(c)},74891:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(89105),l=n.n(c),u=n(81200),p=n(92819),d=n(66552),h=n(88872),f=n(41147),m=n(28843),g=n(75395),v=n(60742),b=n(41922),y=n(30701),k=n(35795);class w extends o().Component{constructor(){super(...arguments),i()(this,"onPlanChange",(e=>{this.props.switchPlanPreview(e.target.value)})),i()(this,"onPermissionsChange",(e=>{this.props.switchUserPermissions(e.target.value)})),i()(this,"onThreatsChange",(e=>{this.props.switchThreats(e.target.value)})),i()(this,"onRewindStatusChange",(e=>{this.props.switchRewindState(e.target.value)})),i()(this,"onScanStatusChange",(e=>{this.props.switchScanState(e.target.value)})),i()(this,"maybeShowStatsToggle",(()=>{if(!this.props.isAdmin)return o().createElement("div",null,o().createElement("hr",null),o().createElement("ul",null,o().createElement("li",null,o().createElement("label",{htmlFor:"view_stats"},o().createElement("input",{type:"radio",id:"view_stats",value:"view_stats",name:"view_stats",checked:this.props.canViewStats,onChange:this.onPermissionsChange}),"Can view stats")),o().createElement("li",null,o().createElement("label",{htmlFor:"hide_stats"},o().createElement("input",{type:"radio",id:"hide_stats",value:"hide_stats",name:"hide_stats",checked:!this.props.canViewStats,onChange:this.onPermissionsChange}),"Can not view stats"))))})),i()(this,"showIsLinkedToggle",(()=>o().createElement("div",null,o().createElement("hr",null),o().createElement("ul",null,o().createElement("li",null,o().createElement("label",{htmlFor:"is_linked"},o().createElement("input",{type:"radio",id:"is_linked",value:"is_linked",name:"is_linked",checked:this.props.isUserLinked,onChange:this.onPermissionsChange}),"Linked")),o().createElement("li",null,o().createElement("label",{htmlFor:"is_unlinked"},o().createElement("input",{type:"radio",id:"is_unlinked",value:"is_unlinked",name:"is_unlinked",checked:!this.props.isUserLinked,onChange:this.onPermissionsChange}),"Unlinked"))))))}render(){if(!this.props.canDisplayDevCard)return null;const e=l()(this.props.className,"jp-dev-card"),t=(0,u.sc)(this.props.sitePlan.product_slug),n=(0,p.get)(this.props.rewindStatus,["state"],!1),r=(0,p.get)(this.props.scanStatus,["state"],!1);return o().createElement(v.Z,{compact:!0,className:e},o().createElement("a",{className:"jp-dev-card__close",role:"button",tabIndex:"0",onKeyDown:(0,b.Z)(this.props.disableDevCard),onClick:this.props.disableDevCard},"x"),o().createElement("div",{className:"jp-dev-card__heading"},"Dev Tools"),o().createElement("ul",null,o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_free"},o().createElement("input",{type:"radio",id:"jetpack_free",value:"jetpack_free",name:"jetpack_free",checked:"is-free-plan"===t,onChange:this.onPlanChange}),"Free")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_personal"},o().createElement("input",{type:"radio",id:"jetpack_personal",value:"jetpack_personal",name:"jetpack_personal",checked:"is-personal-plan"===t,onChange:this.onPlanChange}),"Personal")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_premium"},o().createElement("input",{type:"radio",id:"jetpack_premium",value:"jetpack_premium",name:"jetpack_premium",checked:"is-premium-plan"===t,onChange:this.onPlanChange}),"Premium")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_business"},o().createElement("input",{type:"radio",id:"jetpack_business",value:"jetpack_business",name:"jetpack_business",checked:"is-business-plan"===t,onChange:this.onPlanChange}),"Pro")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_security_t1"},o().createElement("input",{type:"radio",id:"jetpack_security_t1",value:"jetpack_security_t1_yearly",name:"jetpack_security_t1_yearly",checked:"is-security-t1-plan"===t,onChange:this.onPlanChange}),"Security (10 GB)")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_security_t2"},o().createElement("input",{type:"radio",id:"jetpack_security_t2",value:"jetpack_security_t2_yearly",name:"jetpack_security_t2_yearly",checked:"is-security-t2-plan"===t,onChange:this.onPlanChange}),"Security (1 TB)")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_complete"},o().createElement("input",{type:"radio",id:"jetpack_complete",value:"jetpack_complete",name:"jetpack_complete",checked:"is-complete-plan"===t,onChange:this.onPlanChange}),"Complete")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_backup_t1"},o().createElement("input",{type:"radio",id:"jetpack_backup_t1",value:"jetpack_backup_t1_yearly",name:"jetpack_backup_t1_yearly",checked:"is-backup-t1-plan"===t,onChange:this.onPlanChange}),"Backup (10 GB)")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_backup_t2"},o().createElement("input",{type:"radio",id:"jetpack_backup_t2",value:"jetpack_backup_t2_yearly",name:"jetpack_backup_t2_yearly",checked:"is-backup-t2-plan"===t,onChange:this.onPlanChange}),"Backup (1 TB)")),o().createElement("li",{className:"jp-dev-card__deprecated-plans-list-header"},"— DEPRECATED —"),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_security_daily"},o().createElement("input",{type:"radio",id:"jetpack_security_daily",value:"jetpack_security_daily",name:"jetpack_security_daily",checked:"is-daily-security-plan"===t,onChange:this.onPlanChange}),"Security Daily")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_security_realtime"},o().createElement("input",{type:"radio",id:"jetpack_security_realtime",value:"jetpack_security_realtime",name:"jetpack_security_realtime",checked:"is-realtime-security-plan"===t,onChange:this.onPlanChange}),"Security Real-Time")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_backup_daily"},o().createElement("input",{type:"radio",id:"jetpack_backup_daily",value:"jetpack_backup_daily",name:"jetpack_backup_daily",checked:"is-daily-backup-plan"===t,onChange:this.onPlanChange}),"Backup Daily")),o().createElement("li",null,o().createElement("label",{htmlFor:"jetpack_backup_realtime"},o().createElement("input",{type:"radio",id:"jetpack_backup_realtime",value:"jetpack_backup_realtime",name:"jetpack_backup_realtime",checked:"is-realtime-backup-plan"===t,onChange:this.onPlanChange}),"Backup Real-time"))),o().createElement("hr",null),o().createElement("ul",null,o().createElement("li",null,o().createElement("label",{htmlFor:"admin_master"},o().createElement("input",{type:"radio",id:"admin_master",value:"admin_master",name:"admin_master",checked:this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (master)")),o().createElement("li",null,o().createElement("label",{htmlFor:"admin_secondary"},o().createElement("input",{type:"radio",id:"admin_secondary",value:"admin_secondary",name:"admin_secondary",checked:this.props.isAdmin&&!this.props.isConnectionOwner,onChange:this.onPermissionsChange}),"Admin (secondary)")),o().createElement("li",null,o().createElement("label",{htmlFor:"editor"},o().createElement("input",{type:"radio",id:"editor",value:"editor",name:"editor",checked:this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Editor")),o().createElement("li",null,o().createElement("label",{htmlFor:"subscriber"},o().createElement("input",{type:"radio",id:"subscriber",value:"subscriber",name:"subscriber",checked:!this.props.canEditPosts&&!this.props.isAdmin,onChange:this.onPermissionsChange}),"Subscriber"))),o().createElement("hr",null),o().createElement("ul",null,o().createElement("li",null,o().createElement("label",{htmlFor:"nothreats"},o().createElement("input",{type:"radio",id:"nothreats",value:0,name:"nothreats",checked:0===this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"No threats")),o().createElement("li",null,o().createElement("label",{htmlFor:"threats"},o().createElement("input",{type:"radio",id:"threats",value:17,name:"threats",checked:0!==this.props.getVaultPressScanThreatCount(),onChange:this.onThreatsChange}),"Threats"))),o().createElement("hr",null),o().createElement("ul",null,o().createElement("strong",null,"Backup"),o().createElement("li",null,o().createElement("label",{htmlFor:"rewindUnavailable"},o().createElement("input",{type:"radio",id:"rewindUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===n,onChange:this.onRewindStatusChange}),"Unavailable")),o().createElement("li",null,o().createElement("label",{htmlFor:"rewindProvisioning"},o().createElement("input",{type:"radio",id:"rewindProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===n,onChange:this.onRewindStatusChange}),"Provisioning")),o().createElement("li",null,o().createElement("label",{htmlFor:"rewindAwatingCreds"},o().createElement("input",{type:"radio",id:"rewindAwatingCreds",value:"awaiting_credentials",name:"awaiting_credentials",checked:"awaiting_credentials"===n,onChange:this.onRewindStatusChange}),"Awaiting credentials")),o().createElement("li",null,o().createElement("label",{htmlFor:"rewindActive"},o().createElement("input",{type:"radio",id:"rewindActive",value:"active",name:"active",checked:"active"===n,onChange:this.onRewindStatusChange}),"Active"))),o().createElement("ul",null,o().createElement("strong",null,"Scan"),o().createElement("li",null,o().createElement("label",{htmlFor:"scanUnavailable"},o().createElement("input",{type:"radio",id:"scanUnavailable",value:"unavailable",name:"unavailable",checked:"unavailable"===r,onChange:this.onScanStatusChange}),"Unavailable")),o().createElement("li",null,o().createElement("label",{htmlFor:"scanProvisioning"},o().createElement("input",{type:"radio",id:"scanProvisioning",value:"provisioning",name:"provisioning",checked:"provisioning"===r,onChange:this.onScanStatusChange}),"Provisioning")),o().createElement("li",null,o().createElement("label",{htmlFor:"scanIdle"},o().createElement("input",{type:"radio",id:"scanIdle",value:"idle",name:"idle",checked:"idle"===r,onChange:this.onScanStatusChange}),"Idle")),o().createElement("li",null,o().createElement("label",{htmlFor:"scanScanning"},o().createElement("input",{type:"radio",id:"scanScanning",value:"scanning",name:"scanning",checked:"scanning"===r,onChange:this.onScanStatusChange}),"Scanning"))),this.maybeShowStatsToggle(),this.showIsLinkedToggle())}}i()(w,"displayName","DevCard"),t.Z=(0,a.$j)((e=>({isDevVersion:(0,d._W)(e),sitePlan:(0,h.UL)(e),canDisplayDevCard:(0,m.Ry)(e),isUserLinked:(0,f.BU)(e),canViewStats:(0,d.px)(e),isConnectionOwner:(0,f.QM)(e),isAdmin:(0,d.WB)(e),canEditPosts:(0,d.rp)(e),getVaultPressScanThreatCount:()=>(0,g._R)(e),rewindStatus:(0,y.of)(e),scanStatus:(0,k.C8)(e)})),(e=>({switchPlanPreview:t=>e((0,m.fb)(t)),switchUserPermissions:t=>e((0,m.Yw)(t)),switchThreats:t=>e((0,m.aX)(parseInt(t))),disableDevCard:()=>e((0,m.Wh)()),switchRewindState:t=>e((0,m._s)(t)),switchScanState:t=>e((0,m.pH)(t))})))(w)},68961:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(7767),c=n.n(a),l=n(21425),u=n.n(l),p=n(89105),d=n.n(p),h=n(92819),f=n(22256);t.Z=c()({displayName:"ExternalLink",mixins:[u()],propTypes:{className:i().string,href:i().string,onClick:i().func,icon:i().bool,iconSize:i().number},getDefaultProps:()=>({iconSize:18}),render(){const e=d()("dops-external-link",this.props.className,{"has-icon":!!this.props.icon}),t=(0,h.assign)({},(0,h.omit)(this.props,"icon","iconSize"),{className:e,rel:"external"});return o().createElement("a",t,this.props.children,this.props.icon?o().createElement(f.Z,{icon:"external",size:this.props.iconSize}):null)}})},78919:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(11268),c=n.n(a),l=n(99196),u=n.n(l),p=n(89105),d=n.n(p),h=n(92819),f=n(60742),m=n(3810),g=n(22256),v=n(41922);class b extends u().Component{constructor(){super(...arguments),o()(this,"state",{expanded:this.props.expanded}),o()(this,"onClick",(()=>{this.props.children&&this.setState({expanded:!this.state.expanded}),this.props.onClick&&this.props.onClick(),this.state.expanded?this.props.onClose(this.props.cardKey):this.props.onOpen(this.props.cardKey)})),o()(this,"getClickAction",(()=>{if(!this.props.disabled)return this.onClick})),o()(this,"getActionButton",(()=>this.state.expanded&&this.props.actionButtonExpanded||this.props.actionButton)),o()(this,"renderActionButton",(()=>{const e=this.props.clickableHeader?null:this.getClickAction();if(this.props.actionButton)return u().createElement("button",{className:"dops-foldable-card__action",onClick:e},this.getActionButton());if(this.props.children){const t=24;return u().createElement("button",{type:"button",disabled:this.props.disabled,className:"dops-foldable-card__action dops-foldable-card__expand",onClick:e},u().createElement("span",{className:"screen-reader-text"},"More"),u().createElement(g.Z,{icon:this.props.icon,size:t}))}})),o()(this,"renderContent",(()=>u().createElement("div",{className:"dops-foldable-card__content"},this.props.children))),o()(this,"renderHeader",(()=>{const e=this.props.summary?u().createElement("span",{className:"dops-foldable-card__summary"},this.props.summary," "):null,t=this.props.expandedSummary?u().createElement("span",{className:"dops-foldable-card__summary_expanded"},this.props.expandedSummary," "):null,n=this.props.header?u().createElement("div",{className:"dops-foldable-card__header-text"},this.props.header):null,r=this.props.subheader?u().createElement("div",{className:"dops-foldable-card__subheader"},this.props.subheader):null,s={role:"button",tabIndex:0,onClick:this.getClickAction(),onKeyDown:(0,v.Z)(this.getClickAction())},o=d()("dops-foldable-card__header",{"is-clickable":!!this.props.clickableHeader,"has-border":!!this.props.summary}),a=d()("dops-foldable-card__header-text",{"is-clickable":!!this.props.clickableHeaderText});return u().createElement("div",i()({className:o},this.props.clickableHeader?s:{}),u().createElement("span",{className:"dops-foldable-card__main"},u().createElement("div",i()({className:a},this.props.clickableHeaderText?s:{}),n,r)),u().createElement("span",{className:"dops-foldable-card__secondary"},e,t,this.renderActionButton()))}))}render(){const e=this.props.compact?m.Z:f.Z,t=d()("dops-foldable-card",this.props.className,{"is-disabled":!!this.props.disabled,"is-expanded":!!this.state.expanded,"has-expanded-summary":!!this.props.expandedSummary});return u().createElement(e,{className:t},this.renderHeader(),this.state.expanded&&this.renderContent())}}o()(b,"propTypes",{actionButton:c().element,actionButtonExpanded:c().element,cardKey:c().string,compact:c().bool,disabled:c().bool,expandedSummary:c().oneOfType([c().string,c().element]),expanded:c().bool,icon:c().string,onClick:c().func,onClose:c().func,onOpen:c().func,summary:c().oneOfType([c().string,c().element]),clickableHeader:c().bool,clickableHeaderText:c().bool}),o()(b,"defaultProps",{onOpen:h.noop,onClose:h.noop,cardKey:"",icon:"chevron-down",isExpanded:!1,clickableHeader:!1,clickableHeaderText:!1}),t.Z=b},4696:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(89105),l=n.n(c),u=n(65736),p=n(71415),d=n(97967),h=n(11973),f=n(28843),m=n(74891),g=n(66552),v=n(41147),b=n(41922);const __=u.__,_x=u._x,y=()=>{const e=document.getElementById("jp-navigation").offsetTop;window.scrollTo(0,window.scrollY-e/1.5),window.scrollY>e&&window.requestAnimationFrame(y)};class k extends o().Component{constructor(){super(...arguments),i()(this,"resetOnClick",(()=>{window.confirm(__("This will reset all Jetpack options, are you sure?","jetpack"))&&this.props.resetOptions()})),i()(this,"trackVersionClick",(()=>{h.Z.tracks.recordJetpackClick({target:"footer_link",link:"version"})})),i()(this,"trackTermsClick",(()=>{h.Z.tracks.recordJetpackClick({target:"footer_link",link:"terms"})})),i()(this,"trackAboutClick",(()=>{h.Z.tracks.recordJetpackClick({target:"footer_link",link:"about"})})),i()(this,"trackPrivacyClick",(()=>{window.requestAnimationFrame(y),h.Z.tracks.recordJetpackClick({target:"footer_link",link:"privacy"})})),i()(this,"trackModulesClick",(()=>{h.Z.tracks.recordJetpackClick({target:"footer_link",link:"modules"})})),i()(this,"trackDebugClick",(()=>{h.Z.tracks.recordJetpackClick({target:"footer_link",link:"debug"})}))}render(){const e=l()(this.props.className,"jp-footer"),t=this.props.currentVersion,n=this.props.siteConnectionStatus?this.props.siteAdminUrl+"admin.php?page=jetpack_about":(0,p.Z)("jetpack"),r=this.props.siteConnectionStatus?this.props.siteAdminUrl+"admin.php?page=jetpack#/privacy":(0,p.Z)("a8c-privacy");return o().createElement("div",{className:e},o().createElement("ul",{className:"jp-footer__links"},(()=>{if(!this.props.isAtomicPlatform)return o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{onClick:this.trackVersionClick,href:(0,p.Z)("jetpack"),target:"_blank",rel:"noopener noreferrer",className:"jp-footer__link",title:__("Jetpack version","jetpack")},t?(0,u.sprintf)(
/* Translators: placeholder is a version number. */
__("Jetpack version %s","jetpack"),t):"Jetpack"))})(),o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{onClick:this.trackAboutClick,href:n,className:"jp-footer__link",title:__("About Jetpack","jetpack")},_x("About","Link to learn more about Jetpack.","jetpack"))),o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{onClick:this.trackTermsClick,href:(0,p.Z)("wpcom-tos"),target:"_blank",rel:"noopener noreferrer",title:__("WordPress.com Terms of Service","jetpack"),className:"jp-footer__link"},_x("Terms","Shorthand for Terms of Service.","jetpack"))),o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{onClick:this.trackPrivacyClick,href:r,rel:"noopener noreferrer",title:__("Automattic's Privacy Policy","jetpack"),className:"jp-footer__link"},_x("Privacy","Shorthand for Privacy Policy.","jetpack"))),(()=>{if(this.props.siteConnectionStatus&&this.props.userCanManageOptions)return o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{onClick:this.trackModulesClick,href:this.props.siteAdminUrl+"admin.php?page=jetpack_modules",title:__("Access the full list of Jetpack modules available on your site.","jetpack"),className:"jp-footer__link"},_x("Modules","Navigation item. Noun. Links to a list of modules for Jetpack.","jetpack")))})(),(()=>{if(this.props.userCanManageOptions)return o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{onClick:this.trackDebugClick,href:this.props.siteAdminUrl+"admin.php?page=jetpack-debugger",title:__("Test your site’s compatibility with Jetpack.","jetpack"),className:"jp-footer__link"},_x("Debug","Navigation item. Noun. Links to a debugger tool for Jetpack.","jetpack")))})(),(()=>this.props.isDevVersion&&this.props.userCanManageOptions?o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,b.Z)(this.resetOnClick),onClick:this.resetOnClick,className:"jp-footer__link"},_x("Reset Options (dev only)","Navigation item.","jetpack"))):"")(),(()=>this.props.isDevVersion?o().createElement("li",{className:"jp-footer__link-item"},o().createElement("a",{role:"button",tabIndex:"0",onKeyDown:(0,b.Z)(this.props.enableDevCard),onClick:this.props.enableDevCard,className:"jp-footer__link"},_x("Dev Tools","Navigation item.","jetpack"))):"")(),(()=>{if(this.props.isDevVersion&&this.props.displayDevCard)return o().createElement(m.Z,null)})()),o().createElement("div",{className:"jp-footer__rna-footer"},o().createElement(d.Z,{a8cLogoHref:n})))}}i()(k,"displayName","Footer"),t.Z=(0,a.$j)((e=>({currentVersion:(0,g.w1)(e),displayDevCard:(0,f.Ry)(e),isAtomicPlatform:(0,g.vL)(e),isDevVersion:(0,g._W)(e),isInIdentityCrisis:(0,v.l9)(e),siteAdminUrl:(0,g.wW)(e),siteConnectionStatus:(0,v.Gz)(e),userCanManageOptions:(0,g.UF)(e)})),(e=>({resetOptions:()=>e((0,f._G)("options")),enableDevCard:()=>e((0,f.vN)())})))(k)},28859:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(22256);class d extends c().Component{render(){const e=u()({"form-input-validation":!0,"is-warning":this.props.isWarning,"is-error":this.props.isError}),t=this.props.isError||this.props.isWarning?"notice-outline":"checkmark";return c().createElement("div",{className:e},c().createElement("span",null,c().createElement(p.Z,{size:24,icon:this.props.icon?this.props.icon:t})," ",this.props.text))}}i()(d,"displayName","FormInputValidation"),i()(d,"propTypes",{isError:o().bool,isWarning:o().bool,text:o().node,icon:o().string}),i()(d,"defaultProps",{isError:!1})},14318:function(e,t,n){"use strict";n.d(t,{Z:function(){return y}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(11268),c=n.n(a),l=n(91850),u=n.n(l),p=n(99196),d=n.n(p),h=n(31439),f=n.n(h),m=n(92819),g=n(89105),v=n.n(g),b=n(9913);class y extends d().Component{constructor(){super(...arguments),o()(this,"displayPrompt",(()=>{window.prompt(this.props.prompt,this.props.text)}))}componentDidMount(){const e=u().findDOMNode(this.refs.button);this.clipboard=new(f())(e,{text:()=>this.props.text}),this.clipboard.on("success",this.props.onCopy),this.clipboard.on("error",this.displayPrompt)}componentWillUnmount(){this.clipboard.destroy(),delete this.clipboard}render(){const e=v()("dops-clipboard-button",this.props.className);return d().createElement(b.Z,i()({ref:"button"},(0,m.omit)(this.props,Object.keys(this.constructor.propTypes)),{className:e}))}}o()(y,"displayName","ClipboardButton"),o()(y,"propTypes",{className:c().string,text:c().string,prompt:c().string,onCopy:c().func}),o()(y,"defaultProps",{onCopy:m.noop})},94069:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819),d=n(56357);class h extends c().Component{render(){return c().createElement(d.Z,i()({},(0,p.omit)(this.props,"className"),{className:u()(this.props.className,"is-compact")}),this.props.children)}}o()(h,"displayName","CompactFormToggle")},56357:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(40515);class d extends a.Component{constructor(){super(...arguments),i()(this,"state",{showPopover:!1}),i()(this,"togglePopover",(()=>{this.setState({showPopover:!this.state.showPopover})})),i()(this,"_onPopoverClose",(()=>{this.setState({showPopover:!1})})),i()(this,"renderPopover",(()=>c().createElement(p.Z,{isVisible:this.state.showPopover,context:this.refs&&this.refs.toggleSwitch,position:this.props.disabledPopoverPosition,onClose:this._onPopoverClose,className:"dops-info-popover__tooltip"},this.props.disabledReason))),this.onKeyDown=this.onKeyDown.bind(this),this.onClick=this.onClick.bind(this),this.onLabelClick=this.onLabelClick.bind(this)}UNSAFE_componentWillMount(){this.id=this.constructor.idNum++}onKeyDown(e){this.props.disabled||("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.props.onChange()),this.props.onKeyDown(e))}onClick(){this.props.disabled?this.props.disabledReason&&this.togglePopover():this.props.onChange()}onLabelClick(e){if(this.props.disabled)return;const t=e.target.nodeName.toLowerCase();"a"!==t&&"input"!==t&&"select"!==t&&(e.preventDefault(),this.props.onChange())}render(){const e=this.props.id||"toggle-"+this.id,t=u()("form-toggle",this.props.className,{"is-toggling":this.props.toggling});return c().createElement("span",null,c().createElement("input",{className:t,type:"checkbox",checked:this.props.checked,readOnly:!0,disabled:this.props.disabled}),c().createElement("label",{className:"form-toggle__label",htmlFor:e},c().createElement("span",{className:"form-toggle__switch",disabled:this.props.disabled,id:e,onClick:this.onClick,onKeyDown:this.onKeyDown,role:"checkbox","aria-checked":this.props.checked,"aria-label":this.props["aria-label"],tabIndex:this.props.disabled?-1:0,ref:"toggleSwitch"}),c().createElement("span",{className:"form-toggle__label-content",onClick:this.onLabelClick},this.props.children)),this.renderPopover())}}i()(d,"propTypes",{onChange:o().func,onKeyDown:o().func,checked:o().bool,disabled:o().bool,id:o().string,className:o().string,toggling:o().bool,"aria-label":o().string,children:o().node,disabledReason:o().node}),i()(d,"defaultProps",{checked:!1,disabled:!1,onKeyDown:()=>{},onChange:()=>{},disabledPopoverPosition:"bottom",disabledReason:""}),i()(d,"idNum",0)},55735:function(e,t,n){"use strict";n.d(t,{C_:function(){return m},lX:function(){return g},Gj:function(){return v},B1:function(){return k},ih:function(){return E}});var r=n(27538),i=n.n(r),s=n(29183),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819),d=n(65736),h=n(9913),f=n(34964);const __=d.__,m=e=>c().createElement("fieldset",o()({},(0,p.omit)(e,"className"),{className:u()(e.className,"jp-form-fieldset")}),e.children);class g extends c().Component{render(){const{className:e,htmlFor:t,...n}=this.props;return c().createElement("label",o()({},n,{htmlFor:t,className:u()(e,"jp-form-label")}),this.props.children)}}i()(g,"displayName","FormLabel");class v extends c().Component{render(){return c().createElement("legend",o()({},(0,p.omit)(this.props,"className"),{className:u()(this.props.className,"jp-form-legend")}),this.props.children)}}i()(v,"displayName","FormLegend");class b extends c().Component{render(){const e=(0,p.omit)(this.props,["className","type"]);return c().createElement("input",o()({},e,{type:"checkbox",className:u()(this.props.className,"jp-form-checkbox")}))}}i()(b,"displayName","FormInputCheckbox");class y extends c().Component{constructor(){super(...arguments),i()(this,"focus",(()=>{this.refs.textField.focus()})),i()(this,"selectOnFocus",(e=>{e.target.select()}))}render(){const{className:e,selectOnFocus:t}=this.props,n=u()(e,{"jp-form-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),r={};for(const e in this.props)["isError","isValid","selectOnFocus"].includes(e)||(r[e]=this.props[e]);return c().createElement("input",o()({},r,{ref:"textField",className:n,onClick:t?this.selectOnFocus:null}))}}i()(y,"displayName","FormTextInput"),i()(y,"defaultProps",{isError:!1,isValid:!1,selectOnFocus:!1,type:"text"});class k extends c().Component{render(){return c().createElement("textarea",o()({},(0,p.omit)(this.props,"className"),{className:u()(this.props.className,"jp-form-textarea")}),this.props.children)}}i()(k,"displayName","FormTextarea");class w extends c().Component{render(){const e=(0,p.omit)(this.props,["className","type"]);return c().createElement("input",o()({},e,{type:"radio",className:u()(this.props.className,"jp-form-radio")}))}}i()(w,"displayName","FormRadio");class _ extends c().Component{constructor(){super(...arguments),i()(this,"getDefaultButtonAction",(()=>this.props.isSubmitting?__("Saving…","jetpack"):__("Save Settings","jetpack",0)))}render(){const e=u()({"jp-form-button":!0});return c().createElement(h.Z,o()({},(0,p.omit)(this.props,"className"),{primary:this.props.isPrimary,className:u()(this.props.className,e)}),(0,p.isEmpty)(this.props.children)?this.getDefaultButtonAction():this.props.children)}}i()(_,"displayName","FormsButton"),i()(_,"defaultProps",{isSubmitting:!1,isPrimary:!0,type:"submit"});class E extends c().Component{constructor(){super(...arguments),i()(this,"handleOnSelect",(e=>{this.props.onOptionChange({target:{type:"select",name:this.props.name,value:e.value}})}))}render(){const e=[];return(0,p.forOwn)(this.props.validValues,((t,n)=>{e.push({label:t,value:n})})),c().createElement(f.Z,{options:e,onSelect:this.handleOnSelect,disabled:this.props.disabled,initialSelected:this.props.value})}}},49457:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(90922),u=n.n(l),p=n(88001),d=n(51933),h=n(96892),f=n(2620),m=n(74978),g=n(21094);const v=u()("calypso:notices");class b extends c().Component{constructor(){super(...arguments),i()(this,"removeNotice",(e=>{e&&h.Z.removeNotice(e)})),i()(this,"handleLocalNoticeDismissClick",(e=>()=>this.removeNotice(e))),i()(this,"handleReduxNoticeDismissClick",(e=>()=>this.props.removeNotice(e)))}UNSAFE_componentWillMount(){v("Mounting Global Notices React component.")}render(){let e=(this.props.notices[this.props.id]||[]).map((function(e,t){return c().createElement(p.Z,{key:"notice-old-"+t,status:e.status,duration:e.duration||null,text:e.text,isCompact:e.isCompact,onDismissClick:this.handleLocalNoticeDismissClick(e),showDismiss:e.showDismiss},e.button&&c().createElement(d.Z,{href:e.href,onClick:e.onClick},e.button))}),this);return e=e.concat(this.props.storeNotices.map((function(e,t){return c().createElement(p.Z,{key:"notice-"+t,status:e.status,duration:e.duration||null,showDismiss:e.showDismiss,onDismissClick:this.handleReduxNoticeDismissClick(e.noticeId),text:e.text})}),this)),e.length?c().createElement("div",{id:this.props.id,className:"global-notices"},e):null}}i()(b,"displayName","NoticesList"),i()(b,"propTypes",{id:o().string,notices:o().oneOfType([o().object,o().array])}),i()(b,"defaultProps",{id:"overlay-notices",notices:Object.freeze([])}),t.Z=(0,f.$j)((e=>({storeNotices:e.globalNotices})),(e=>(0,m.DE)({removeNotice:g.qq},e)))(b)},87137:function(e,t,n){"use strict";n.d(t,{o:function(){return r},m:function(){return i}});const r="NEW_NOTICE",i="REMOVE_NOTICE"},21094:function(e,t,n){"use strict";n.d(t,{qq:function(){return s},iI:function(){return o},RT:function(){return a},tF:function(){return c}});var r=n(92819),i=n(87137);function s(e){return{noticeId:e,type:i.m}}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s={noticeId:n.id||(0,r.uniqueId)(),duration:n.duration,showDismiss:"boolean"!=typeof n.showDismiss||n.showDismiss,isPersistent:n.isPersistent||!1,displayOnNextPage:n.displayOnNextPage||!1,status:e,text:t};return{type:i.o,notice:s}}const a=o.bind(null,"is-success"),c=o.bind(null,"is-error");o.bind(null,"is-info"),o.bind(null,"is-warning")},31008:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(74978),i=n(87137);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.o:return[t.notice,...e];case i.m:return e.filter((e=>e.noticeId!==t.noticeId))}return e}(0,r.UY)({globalNotices:s})},22256:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(21425),c=n.n(a),l=n(89105),u=n.n(l),p=n(7767);const d=n.n(p)()({displayName:"Gridicon",mixins:[c()],getDefaultProps:function(){return{className:"",size:24}},propTypes:{icon:i().string.isRequired,size:i().number,onClick:i().func,className:i().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(){const e="gridicons-"+this.props.icon,t=this.needsOffset(e,this.props.size),n=this.needsOffsetX(e,this.props.size),r=this.needsOffsetY(e,this.props.size),i=u()("gridicon",e,this.props.className,{"needs-offset":t,"needs-offset-x":n,"needs-offset-y":r});let s;switch(e){default:s=o().createElement("svg",{height:this.props.size,width:this.props.size});break;case"gridicons-add-image":s=o().createElement("svg",{className:i,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().createElement("g",null,o().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":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 9h-4V7h-2v4H7v2h4v4h2v-4h4v-2z"})));break;case"gridicons-add":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z"})));break;case"gridicons-align-center":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 19h16v-2H4v2zm13-6H7v2h10v-2zM4 9v2h16V9H4zm13-4H7v2h10V5z"})));break;case"gridicons-align-image-center":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm5-4h8V9H8v6z"})));break;case"gridicons-align-image-left":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M3 5h18v2H3V5zm0 14h18v-2H3v2zm0-4h8V9H3v6zm10 0h8v-2h-8v2zm0-4h8V9h-8v2z"})));break;case"gridicons-align-image-none":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zM11 9H3v6h8V9z"})));break;case"gridicons-align-image-right":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 7H3V5h18v2zm0 10H3v2h18v-2zm0-8h-8v6h8V9zm-10 4H3v2h8v-2zm0-4H3v2h8V9z"})));break;case"gridicons-align-justify":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 19h16v-2H4v2zm16-6H4v2h16v-2zM4 9v2h16V9H4zm16-4H4v2h16V5z"})));break;case"gridicons-align-left":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 19h16v-2H4v2zm10-6H4v2h10v-2zM4 9v2h16V9H4zm10-4H4v2h10V5z"})));break;case"gridicons-align-right":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 17H4v2h16v-2zm-10-2h10v-2H10v2zM4 9v2h16V9H4zm6-2h10V5H10v2z"})));break;case"gridicons-arrow-down":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M11 4v12.17l-5.59-5.59L4 12l8 8 8-8-1.41-1.41L13 16.17V4h-2z"})));break;case"gridicons-arrow-left":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"})));break;case"gridicons-arrow-right":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8-8-8z"})));break;case"gridicons-arrow-up":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M13 20V7.83l5.59 5.59L20 12l-8-8-8 8 1.41 1.41L11 7.83V20h2z"})));break;case"gridicons-aside":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M14 20l6-6V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h8zM6 6h12v6h-4c-1.105 0-2 .895-2 2v4H6V6zm10 4H8V8h8v2z"})));break;case"gridicons-attachment":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M14 1c-2.762 0-5 2.238-5 5v10c0 1.657 1.343 3 3 3s2.99-1.343 2.99-3V6H13v10c0 .553-.447 1-1 1-.553 0-1-.447-1-1V6c0-1.657 1.343-3 3-3s3 1.343 3 3v10.125C17 18.887 14.762 21 12 21s-5-2.238-5-5v-5H5v5c0 3.866 3.134 7 7 7s6.99-3.134 6.99-7V6c0-2.762-2.228-5-4.99-5z"})));break;case"gridicons-audio":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M8 4v10.184C7.686 14.072 7.353 14 7 14c-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V7h7v4.184c-.314-.112-.647-.184-1-.184-1.657 0-3 1.343-3 3s1.343 3 3 3 3-1.343 3-3V4H8z"})));break;case"gridicons-backspace":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 7H8l-5 5 5 5h11c1.104 0 2-.896 2-2V9c0-1.104-.896-2-2-2zm-.647 6.646l-.707.707L16 12.707l-1.647 1.647-.707-.707L15.293 12l-1.647-1.646.707-.707L16 11.293l1.646-1.647.707.707L16.707 12l1.646 1.646z"})));break;case"gridicons-bell":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M6.14 14.97l2.828 2.827c-.362.362-.862.586-1.414.586-1.105 0-2-.895-2-2 0-.552.224-1.052.586-1.414zm8.867 5.324L14.3 21 3 9.7l.706-.707 1.102.157c.754.108 1.69-.122 2.077-.51l3.885-3.884c2.34-2.34 6.135-2.34 8.475 0s2.34 6.135 0 8.475l-3.885 3.886c-.388.388-.618 1.323-.51 2.077l.157 1.1z"})));break;case"gridicons-block":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM4 12c0-4.418 3.582-8 8-8 1.848 0 3.545.633 4.9 1.686L5.686 16.9C4.633 15.545 4 13.848 4 12zm8 8c-1.848 0-3.546-.633-4.9-1.686L18.314 7.1C19.367 8.455 20 10.152 20 12c0 4.418-3.582 8-8 8z"})));break;case"gridicons-bold":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M7 5.01h4.547c2.126 0 3.67.302 4.632.906.96.605 1.44 1.567 1.44 2.887 0 .896-.21 1.63-.63 2.205-.42.574-.98.92-1.678 1.036v.103c.95.212 1.637.608 2.057 1.19.42.58.63 1.35.63 2.315 0 1.367-.494 2.434-1.482 3.2-.99.765-2.332 1.148-4.027 1.148H7V5.01zm3 5.936h2.027c.862 0 1.486-.133 1.872-.4.386-.267.578-.708.578-1.323 0-.574-.21-.986-.63-1.236-.42-.25-1.087-.374-1.996-.374H10v3.333zm0 2.523v3.905h2.253c.876 0 1.52-.167 1.94-.502.416-.335.625-.848.625-1.54 0-1.243-.89-1.864-2.668-1.864H10z"})));break;case"gridicons-book":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 3h2v18H4zM18 3H7v18h11c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 6h-6V8h6v1zm0-2h-6V6h6v1z"})));break;case"gridicons-bookmark-outline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17 5v12.554l-5-2.857-5 2.857V5h10m0-2H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-bookmark":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17 3H7c-1.105 0-2 .896-2 2v16l7-4 7 4V5c0-1.104-.896-2-2-2z"})));break;case"gridicons-briefcase":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 6h-4V3c0-.5-.5-1-1-1H8c-.5 0-1 .5-1 1v3H3c-.6 0-1 .4-1 1v5h20V7c0-.6-.4-1-1-1zm-6 0H9V4h6v2zM14 15h-4v-2H2v8c0 .6.4 1 1 1h18c.6 0 1-.4 1-1v-8h-8v2z"})));break;case"gridicons-calendar":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.105 0-2 .896-2 2v13c0 1.104.895 2 2 2h14c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2zm0 15H5V8h14v11z"})));break;case"gridicons-camera":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm5-5v11c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2V4h4v1h2l1-2h6l1 2h2c1.1 0 2 .9 2 2zM7.5 9c0-.8-.7-1.5-1.5-1.5S4.5 8.2 4.5 9s.7 1.5 1.5 1.5S7.5 9.8 7.5 9zM19 12c0-2.8-2.2-5-5-5s-5 2.2-5 5 2.2 5 5 5 5-2.2 5-5z"})));break;case"gridicons-cart":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M9 20c0 1.1-.9 2-2 2s-1.99-.9-1.99-2S5.9 18 7 18s2 .9 2 2zm8-2c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2zm.396-5c.937 0 1.75-.65 1.952-1.566L21 5H7V4c0-1.105-.895-2-2-2H3v2h2v11c0 1.105.895 2 2 2h12c0-1.105-.895-2-2-2H7v-2h10.396z"})));break;case"gridicons-checkmark-circle":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M11 17.768l-4.884-4.884 1.768-1.768L11 14.232l8.658-8.658C17.823 3.39 15.075 2 12 2 6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10c0-1.528-.353-2.97-.966-4.266L11 17.768z"})));break;case"gridicons-checkmark":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M9 19.414l-6.707-6.707 1.414-1.414L9 16.586 20.293 5.293l1.414 1.414"})));break;case"gridicons-chevron-down":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 9l-8 8-8-8 1.414-1.414L12 14.172l6.586-6.586"})));break;case"gridicons-chevron-left":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M14 20l-8-8 8-8 1.414 1.414L8.828 12l6.586 6.586"})));break;case"gridicons-chevron-right":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M10 20l8-8-8-8-1.414 1.414L15.172 12l-6.586 6.586"})));break;case"gridicons-chevron-up":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 15l8-8 8 8-1.414 1.414L12 9.828l-6.586 6.586"})));break;case"gridicons-clear-formatting":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M10.837 10.163l-4.6 4.6L10 4h4l.777 2.223-2.144 2.144-.627-2.092-1.17 3.888zm5.495.506L19.244 19H15.82l-1.05-3.5H11.5L5 22l-1.5-1.5 17-17L22 5l-5.668 5.67zm-2.31 2.31l-.032.03.032-.01v-.02z"})));break;case"gridicons-clipboard":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16 18H8v-2h8v2zm0-6H8v2h8v-2zm2-9h-2v2h2v15H6V5h2V3H6c-1.105 0-2 .895-2 2v15c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm-4 2V4c0-1.105-.895-2-2-2s-2 .895-2 2v1c-1.105 0-2 .895-2 2v1h8V7c0-1.105-.895-2-2-2z"})));break;case"gridicons-cloud-download":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-6 7l-4-5h3V8h2v3h3l-4 5z"})));break;case"gridicons-cloud-outline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M11.5 5c2.336 0 4.304 1.825 4.48 4.154l.142 1.86 1.867-.012h.092C19.698 11.043 21 12.37 21 14c0 .748-.28 1.452-.783 2H3.28c-.156-.256-.28-.59-.28-1 0-1.074.85-1.953 1.915-1.998.06.007.118.012.178.015l2.66.124-.622-2.587C7.044 10.186 7 9.843 7 9.5 7 7.02 9.02 5 11.5 5m0-2C7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5l-.025.002C17.72 5.646 14.922 3 11.5 3z"})));break;case"gridicons-cloud-upload":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5zm-5 4v3h-2v-3H8l4-5 4 5h-3z"})));break;case"gridicons-cloud":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 9c-.01 0-.017.002-.025.003C17.72 5.646 14.922 3 11.5 3 7.91 3 5 5.91 5 9.5c0 .524.07 1.03.186 1.52C5.123 11.015 5.064 11 5 11c-2.21 0-4 1.79-4 4 0 1.202.54 2.267 1.38 3h18.593C22.196 17.09 23 15.643 23 14c0-2.76-2.24-5-5-5z"})));break;case"gridicons-code":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4.83 12l4.58 4.59L8 18l-6-6 6-6 1.41 1.41L4.83 12zm9.76 4.59L16 18l6-6-6-6-1.41 1.41L19.17 12l-4.58 4.59z"})));break;case"gridicons-cog":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 12c0-.568-.06-1.122-.174-1.656l1.834-1.612-2-3.464-2.322.786c-.82-.736-1.787-1.308-2.86-1.657L14 2h-4l-.48 2.396c-1.07.35-2.04.92-2.858 1.657L4.34 5.268l-2 3.464 1.834 1.612C4.06 10.878 4 11.432 4 12s.06 1.122.174 1.656L2.34 15.268l2 3.464 2.322-.786c.82.736 1.787 1.308 2.86 1.657L10 22h4l.48-2.396c1.07-.35 2.038-.92 2.858-1.657l2.322.786 2-3.464-1.834-1.613c.113-.535.174-1.09.174-1.657zm-8 4c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4z"})));break;case"gridicons-comment":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M3 6v9c0 1.105.895 2 2 2h9v5l5.325-3.804c1.05-.75 1.675-1.963 1.675-3.254V6c0-1.105-.895-2-2-2H5c-1.105 0-2 .895-2 2z"})));break;case"gridicons-computer":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 2H4c-1.104 0-2 .896-2 2v12c0 1.104.896 2 2 2h6v2H7v2h10v-2h-3v-2h6c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm0 14H4V4h16v12z"})));break;case"gridicons-create":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 11v8c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h8l-2 2H5v14h14v-6l2-2zM7 17h3l7.5-7.5-3-3L7 14v3zm9.94-12.94L15.5 5.5l3 3 1.44-1.44c.585-.585.585-1.535 0-2.12l-.88-.88c-.585-.585-1.535-.585-2.12 0z"})));break;case"gridicons-credit-card":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 2v2H4V6h16zM4 18v-6h16v6H4zm2-4h7v2H6v-2zm9 0h3v2h-3v-2z"})));break;case"gridicons-crop":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M22 16h-4V8c0-1.105-.895-2-2-2H8V2H6v4H2v2h4v8c0 1.105.895 2 2 2h8v4h2v-4h4v-2zM8 16V8h8v8H8z"})));break;case"gridicons-cross-small":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17.705 7.705l-1.41-1.41L12 10.59 7.705 6.295l-1.41 1.41L10.59 12l-4.295 4.295 1.41 1.41L12 13.41l4.295 4.295 1.41-1.41L13.41 12l4.295-4.295z"})));break;case"gridicons-cross":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"})));break;case"gridicons-custom-post-type":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zM6 6h5v5H6V6zm4.5 13C9.12 19 8 17.88 8 16.5S9.12 14 10.5 14s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5zm3-6l3-5 3 5h-6z"})));break;case"gridicons-customize":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M2 6c0-1.505.78-3.08 2-4 0 .845.69 2 2 2 1.657 0 3 1.343 3 3 0 .386-.08.752-.212 1.09.74.594 1.476 1.19 2.19 1.81L8.9 11.98c-.62-.716-1.214-1.454-1.807-2.192C6.753 9.92 6.387 10 6 10c-2.21 0-4-1.79-4-4zm12.152 6.848l1.34-1.34c.607.304 1.283.492 2.008.492 2.485 0 4.5-2.015 4.5-4.5 0-.725-.188-1.4-.493-2.007L18 9l-2-2 3.507-3.507C18.9 3.188 18.225 3 17.5 3 15.015 3 13 5.015 13 7.5c0 .725.188 1.4.493 2.007L3 20l2 2 6.848-6.848c1.885 1.928 3.874 3.753 5.977 5.45l1.425 1.148 1.5-1.5-1.15-1.425c-1.695-2.103-3.52-4.092-5.448-5.977z"})));break;case"gridicons-dropdown":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M7 10l5 5 5-5"})));break;case"gridicons-ellipsis":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M7 12c0 1.104-.896 2-2 2s-2-.896-2-2 .896-2 2-2 2 .896 2 2zm12-2c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2zm-7 0c-1.104 0-2 .896-2 2s.896 2 2 2 2-.896 2-2-.896-2-2-2z"})));break;case"gridicons-external":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 13v6c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V7c0-1.105.895-2 2-2h6v2H5v12h12v-6h2zM13 3v2h4.586l-7.793 7.793 1.414 1.414L19 6.414V11h2V3h-8z"})));break;case"gridicons-flag":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M15 6c0-1.105-.895-2-2-2H5v17h2v-7h5c0 1.105.895 2 2 2h6V6h-5z"})));break;case"gridicons-flip-horizontal":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 18v-5h3v-2h-3V6c0-1.105-.895-2-2-2H6c-1.105 0-2 .895-2 2v5H1v2h3v5c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2zM6 6h12v5H6V6z"})));break;case"gridicons-flip-vertical":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 4h-5V1h-2v3H6c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h5v3h2v-3h5c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 18V6h5v12H6z"})));break;case"gridicons-folder-multiple":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 8c-1.105 0-2 .895-2 2v10c0 1.1.9 2 2 2h14c1.105 0 2-.895 2-2H4V8zm16 10H8c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2h7c1.105 0 2 .895 2 2v8c0 1.105-.895 2-2 2z"})));break;case"gridicons-folder":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 19H6c-1.1 0-2-.9-2-2V7c0-1.1.9-2 2-2h3c1.1 0 2 .9 2 2h7c1.1 0 2 .9 2 2v8c0 1.1-.9 2-2 2z"})));break;case"gridicons-globe":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18l2-2 1-1v-2h-2v-1l-1-1H9v3l2 2v1.93c-3.94-.494-7-3.858-7-7.93l1 1h2v-2h2l3-3V6h-2L9 5v-.41C9.927 4.21 10.94 4 12 4s2.073.212 3 .59V6l-1 1v2l1 1 3.13-3.13c.752.897 1.304 1.964 1.606 3.13H18l-2 2v2l1 1h2l.286.286C18.03 18.06 15.24 20 12 20z"})));break;case"gridicons-grid":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M8 8H4V4h4v4zm6-4h-4v4h4V4zm6 0h-4v4h4V4zM8 10H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4zM8 16H4v4h4v-4zm6 0h-4v4h4v-4zm6 0h-4v4h4v-4z"})));break;case"gridicons-heading":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 20h-3v-6H9v6H6V5.01h3V11h6V5.01h3V20z"})));break;case"gridicons-heart-outline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16.5 4.5c2.206 0 4 1.794 4 4 0 4.67-5.543 8.94-8.5 11.023C9.043 17.44 3.5 13.17 3.5 8.5c0-2.206 1.794-4 4-4 1.298 0 2.522.638 3.273 1.706L12 7.953l1.227-1.746c.75-1.07 1.975-1.707 3.273-1.707m0-1.5c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-heart":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16.5 3c-1.862 0-3.505.928-4.5 2.344C11.005 3.928 9.362 3 7.5 3 4.462 3 2 5.462 2 8.5c0 5.72 6.5 10.438 10 12.85 3.5-2.412 10-7.13 10-12.85C22 5.462 19.538 3 16.5 3z"})));break;case"gridicons-help-outline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-1.962-2v-.528c0-.4.082-.74.246-1.017.163-.276.454-.546.87-.808.333-.21.572-.397.717-.565.146-.168.22-.36.22-.577 0-.172-.078-.308-.234-.41-.156-.1-.358-.15-.608-.15-.62 0-1.34.22-2.168.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.287-.23.362-.6.705-1.11 1.03-.43.278-.7.48-.807.61-.108.13-.163.282-.163.458V13h-1.885z"})));break;case"gridicons-help":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm2.003-6.41c-.23.36-.6.704-1.108 1.028-.43.28-.7.482-.808.61-.108.13-.163.283-.163.46V13H11.04v-.528c0-.4.08-.74.245-1.017.163-.276.454-.546.872-.808.332-.21.57-.397.716-.565.145-.168.217-.36.217-.577 0-.172-.077-.308-.233-.41-.156-.1-.358-.15-.608-.15-.62 0-1.342.22-2.17.658l-.854-1.67c1.02-.58 2.084-.872 3.194-.872.913 0 1.63.202 2.15.603.52.4.78.948.78 1.64 0 .495-.116.924-.347 1.286z"})));break;case"gridicons-history":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M2.12 13.526c.742 4.78 4.902 8.47 9.88 8.47 5.5 0 10-4.5 10-9.998S17.5 2 12 2C8.704 2 5.802 3.6 4 6V2H2.003L2 9h7V7H5.8c1.4-1.8 3.702-3 6.202-3C16.4 4 20 7.6 20 11.998s-3.6 8-8 8c-3.877 0-7.13-2.795-7.848-6.472H2.12z"}),o().createElement("path",{d:"M11.002 7v5.3l3.2 4.298 1.6-1.197-2.8-3.7V7"})));break;case"gridicons-house":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M22 9L12 1 2 9v2h2v10h5v-4c0-1.657 1.343-3 3-3s3 1.343 3 3v4h5V11h2V9z"})));break;case"gridicons-image-multiple":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M15 7.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5S17.328 9 16.5 9 15 8.328 15 7.5zM4 20h14c0 1.105-.895 2-2 2H4c-1.1 0-2-.9-2-2V8c0-1.105.895-2 2-2v14zM22 4v12c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zM8 4v6.333L11 7l4.855 5.395.656-.73c.796-.886 2.183-.886 2.977 0l.513.57V4H8z"})));break;case"gridicons-image":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M13 9.5c0-.828.672-1.5 1.5-1.5s1.5.672 1.5 1.5-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5zM22 6v12c0 1.105-.895 2-2 2H4c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h16c1.105 0 2 .895 2 2zm-2 0H4v7.444L8 9l5.895 6.55 1.587-1.85c.798-.932 2.24-.932 3.037 0L20 15.426V6z"})));break;case"gridicons-indent-left":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 20h2V4h-2v16zM2 11h10.172l-2.086-2.086L11.5 7.5 16 12l-4.5 4.5-1.414-1.414L12.172 13H2v-2z"})));break;case"gridicons-indent-right":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M6 4H4v16h2V4zm16 9H11.828l2.086 2.086L12.5 16.5 8 12l4.5-4.5 1.414 1.414L11.828 11H22v2z"})));break;case"gridicons-info-outline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M13 9h-2V7h2v2zm0 2h-2v6h2v-6zm-1-7c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8m0-2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2z"})));break;case"gridicons-info":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})));break;case"gridicons-ink":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M5 15c0 3.866 3.134 7 7 7s7-3.134 7-7c0-1.387-.41-2.677-1.105-3.765h.007L12 2l-5.903 9.235h.007C5.41 12.323 5 13.613 5 15z"})));break;case"gridicons-institution":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M2 19h20v3H2zM12 2L2 6v2h20V6M17 10h3v7h-3zM10.5 10h3v7h-3zM4 10h3v7H4z"})));break;case"gridicons-italic":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M10.536 5l-.427 2h1.5L9.262 18h-1.5l-.427 2h6.128l.426-2h-1.5l2.347-11h1.5l.427-2"})));break;case"gridicons-layout-blocks":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 7h-2V3c0-1.105-.895-2-2-2H7c-1.105 0-2 .895-2 2v2H3c-1.105 0-2 .895-2 2v4c0 1.105.895 2 2 2h2v8c0 1.105.895 2 2 2h10c1.105 0 2-.895 2-2v-2h2c1.105 0 2-.895 2-2V9c0-1.105-.895-2-2-2zm-4 14H7v-8h2c1.105 0 2-.895 2-2V7c0-1.105-.895-2-2-2H7V3h10v4h-2c-1.105 0-2 .895-2 2v8c0 1.105.895 2 2 2h2v2zm4-4h-6V9h6v8z"})));break;case"gridicons-layout":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M8 20H5c-1.105 0-2-.895-2-2V6c0-1.105.895-2 2-2h3c1.105 0 2 .895 2 2v12c0 1.105-.895 2-2 2zm8-10h4c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2h-4c-1.105 0-2 .895-2 2v3c0 1.105.895 2 2 2zm5 10v-6c0-1.105-.895-2-2-2h-5c-1.105 0-2 .895-2 2v6c0 1.105.895 2 2 2h5c1.105 0 2-.895 2-2z"})));break;case"gridicons-link-break":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M10 11l-2 2H7v-2h3zm9.64-3.64L22 5l-1.5-1.5-17 17L5 22l9-9h3v-2h-1l2-2c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-1.623-.97-3.013-2.36-3.64zM4.36 16.64L6 15c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4v2c0 1.623.97 3.013 2.36 3.64z"})));break;case"gridicons-link":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17 13H7v-2h10v2zm1-6h-1c-1.63 0-3.065.792-3.977 2H18c1.103 0 2 .897 2 2v2c0 1.103-.897 2-2 2h-4.977c.913 1.208 2.347 2 3.977 2h1c2.21 0 4-1.79 4-4v-2c0-2.21-1.79-4-4-4zM2 11v2c0 2.21 1.79 4 4 4h1c1.63 0 3.065-.792 3.977-2H6c-1.103 0-2-.897-2-2v-2c0-1.103.897-2 2-2h4.977C10.065 7.792 8.63 7 7 7H6c-2.21 0-4 1.79-4 4z"})));break;case"gridicons-list-checkmark":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M9.5 15.5L5 20l-2.5-2.5 1.06-1.06L5 17.88l3.44-3.44L9.5 15.5zM10 5v2h11V5H10zm0 14h11v-2H10v2zm0-6h11v-2H10v2zM8.44 8.44L5 11.88l-1.44-1.44L2.5 11.5 5 14l4.5-4.5-1.06-1.06zm0-6L5 5.88 3.56 4.44 2.5 5.5 5 8l4.5-4.5-1.06-1.06z"})));break;case"gridicons-list-ordered":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M8 19h13v-2H8v2zm0-6h13v-2H8v2zm0-8v2h13V5H8zm-4.425.252c.107-.096.197-.188.27-.275-.013.228-.02.48-.02.756V8h1.176V3.717H3.96L2.487 4.915l.6.738.487-.4zm.334 7.764c.474-.426.784-.715.93-.867.145-.153.26-.298.35-.436.087-.138.152-.278.194-.42.042-.143.063-.298.063-.466 0-.225-.06-.427-.18-.608s-.29-.32-.507-.417c-.218-.1-.465-.148-.742-.148-.22 0-.42.022-.596.067s-.34.11-.49.195c-.15.085-.337.226-.558.423l.636.744c.174-.15.33-.264.467-.34.138-.078.274-.117.41-.117.13 0 .232.032.304.097.073.064.11.152.11.264 0 .09-.02.176-.055.258-.036.082-.1.18-.192.294-.092.114-.287.328-.586.64L2.42 13.238V14h3.11v-.955H3.91v-.03zm.53 4.746v-.018c.306-.086.54-.225.702-.414.162-.19.243-.42.243-.685 0-.31-.126-.55-.378-.727-.252-.176-.6-.264-1.043-.264-.307 0-.58.033-.816.1s-.47.178-.696.334l.48.773c.293-.183.576-.274.85-.274.147 0 .263.027.35.082s.13.14.13.252c0 .3-.294.45-.882.45h-.27v.87h.264c.217 0 .393.017.527.05.136.03.233.08.294.143.06.064.09.154.09.27 0 .153-.057.265-.173.337-.115.07-.3.106-.554.106-.164 0-.343-.022-.538-.07-.194-.044-.385-.115-.573-.21v.96c.228.088.44.148.637.182.196.033.41.05.64.05.56 0 .998-.114 1.314-.343.315-.228.473-.542.473-.94.002-.585-.356-.923-1.07-1.013z"})));break;case"gridicons-list-unordered":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M9 19h12v-2H9v2zm0-6h12v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-location":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 9c0-3.866-3.134-7-7-7S5 5.134 5 9c0 1.387.41 2.677 1.105 3.765h-.008C8.457 16.46 12 22 12 22l5.903-9.235h-.007C18.59 11.677 19 10.387 19 9zm-7 3c-1.657 0-3-1.343-3-3s1.343-3 3-3 3 1.343 3 3-1.343 3-3 3z"})));break;case"gridicons-lock":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 8h-1V7c0-2.757-2.243-5-5-5S7 4.243 7 7v1H6c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V10c0-1.105-.895-2-2-2zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v1H9V7zm4 8.723V18h-2v-2.277c-.595-.346-1-.984-1-1.723 0-1.105.895-2 2-2s2 .895 2 2c0 .738-.405 1.376-1 1.723z"})));break;case"gridicons-mail":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 4H4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h16c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zm0 4.236l-8 4.882-8-4.882V6h16v2.236z"})));break;case"gridicons-mention":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10v-2c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8v.5c0 .827-.673 1.5-1.5 1.5s-1.5-.673-1.5-1.5V12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5c1.65 0 3.102-.81 4.013-2.043C16.648 15.6 17.527 16 18.5 16c1.93 0 3.5-1.57 3.5-3.5V12c0-5.523-4.477-10-10-10zm0 13c-1.654 0-3-1.346-3-3s1.346-3 3-3 3 1.346 3 3-1.346 3-3 3z"})));break;case"gridicons-menu":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 6v2H3V6h18zM3 18h18v-2H3v2zm0-5h18v-2H3v2z"})));break;case"gridicons-menus":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M9 19h10v-2H9v2zm0-6h6v-2H9v2zm0-8v2h12V5H9zm-4-.5c-.828 0-1.5.672-1.5 1.5S4.172 7.5 5 7.5 6.5 6.828 6.5 6 5.828 4.5 5 4.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5zm0 6c-.828 0-1.5.672-1.5 1.5s.672 1.5 1.5 1.5 1.5-.672 1.5-1.5-.672-1.5-1.5-1.5z"})));break;case"gridicons-microphone":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 13c1.104 0 2-.896 2-2V6c0-1.104-.896-2-2-2-1.105 0-2 .896-2 2v5c0 1.104.895 2 2 2zm4-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6c0 2.972 2.164 5.433 5 5.91V20h2v-3.09c2.836-.478 5-2.94 5-5.91h-2z"})));break;case"gridicons-minus-small":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M6 11h12v2H6z"})));break;case"gridicons-minus":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M3 11h18v2H3z"})));break;case"gridicons-my-sites-horizon":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M10.986 13.928l.762-2.284-1.324-3.63c-.458-.026-.892-.08-.892-.08-.458-.027-.405-.727.054-.7 0 0 1.403.107 2.24.107.888 0 2.265-.107 2.265-.107.46-.027.513.646.055.7 0 0-.46.055-.973.082l2.006 5.966c-.875-.034-1.74-.053-2.6-.06l-.428-1.177-.403 1.17c-.252.002-.508.01-.76.015zm-7.156.393c-.21-.737-.33-1.514-.33-2.32 0-1.232.264-2.402.736-3.46l2.036 5.58c.85-.06 1.69-.104 2.526-.138L6.792 8.015c.512-.027.973-.08.973-.08.458-.055.404-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.036-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .674-.244 1.463-.572 2.51.3.02.604.043.907.066l.798-2.307c.486-1.212.647-2.18.647-3.043 0-.313-.02-.603-.057-.874.662 1.21 1.04 2.6 1.04 4.077 0 .807-.128 1.58-.34 2.32.5.05 1.006.112 1.51.17.205-.798.33-1.628.33-2.49 0-5.523-4.477-10-10-10S2 6.477 2 12c0 .862.125 1.692.33 2.49.5-.057 1.003-.12 1.5-.17zm14.638 3.168C16.676 19.672 14.118 20.5 12 20.5c-1.876 0-4.55-.697-6.463-3.012-.585.048-1.174.1-1.77.16C5.572 20.272 8.578 22 12 22c3.422 0 6.43-1.73 8.232-4.35-.593-.063-1.18-.114-1.764-.162zM12 15.01c-3.715 0-7.368.266-10.958.733.18.41.35.825.506 1.247 3.427-.43 6.91-.68 10.452-.68s7.025.25 10.452.68c.156-.422.327-.836.506-1.246-3.59-.467-7.243-.734-10.958-.734z"})));break;case"gridicons-my-sites":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM3.5 12c0-1.232.264-2.402.736-3.46L8.29 19.65C5.456 18.272 3.5 15.365 3.5 12zm8.5 8.5c-.834 0-1.64-.12-2.4-.345l2.55-7.41 2.613 7.157c.017.042.038.08.06.117-.884.31-1.833.48-2.823.48zm1.172-12.485c.512-.027.973-.08.973-.08.458-.055.404-.728-.054-.702 0 0-1.376.108-2.265.108-.835 0-2.24-.107-2.24-.107-.458-.026-.51.674-.053.7 0 0 .434.055.892.082l1.324 3.63-1.86 5.578-3.096-9.208c.512-.027.973-.08.973-.08.458-.055.403-.728-.055-.702 0 0-1.376.108-2.265.108-.16 0-.347-.003-.547-.01C6.418 5.025 9.03 3.5 12 3.5c2.213 0 4.228.846 5.74 2.232-.037-.002-.072-.007-.11-.007-.835 0-1.427.727-1.427 1.51 0 .7.404 1.292.835 1.993.323.566.7 1.293.7 2.344 0 .727-.28 1.572-.646 2.748l-.848 2.833-3.072-9.138zm3.1 11.332l2.597-7.506c.484-1.212.645-2.18.645-3.044 0-.313-.02-.603-.057-.874.664 1.21 1.042 2.6 1.042 4.078 0 3.136-1.7 5.874-4.227 7.347z"})));break;case"gridicons-not-visible":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M1 12s4.188-6 11-6c.947 0 1.84.12 2.678.322L8.36 12.64C8.133 12.14 8 11.586 8 11c0-.937.335-1.787.875-2.47C6.483 9.344 4.66 10.917 3.62 12c.68.707 1.696 1.62 2.98 2.398L5.15 15.85C2.498 14.13 1 12 1 12zm22 0s-4.188 6-11 6c-.946 0-1.836-.124-2.676-.323L5 22l-1.5-1.5 17-17L22 5l-3.147 3.147C21.5 9.87 23 12 23 12zm-2.615.006c-.678-.708-1.697-1.624-2.987-2.403L16 11c0 2.21-1.79 4-4 4l-.947.947c.31.03.624.053.947.053 3.978 0 6.943-2.478 8.385-3.994z"})));break;case"gridicons-notice-outline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 13h-2v2h2v-2zm-2-2h2l.5-6h-3l.5 6z"})));break;case"gridicons-notice":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm1 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-pages":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16 8H8V6h8v2zm0 2H8v2h8v-2zm4-6v12l-6 6H6c-1.105 0-2-.895-2-2V4c0-1.105.895-2 2-2h12c1.105 0 2 .895 2 2zm-2 10V4H6v16h6v-4c0-1.105.895-2 2-2h4z"})));break;case"gridicons-pencil":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M13 6l5 5-9.507 9.507c-.686-.686-.69-1.794-.012-2.485l-.002-.003c-.69.676-1.8.673-2.485-.013-.677-.677-.686-1.762-.036-2.455l-.008-.008c-.694.65-1.78.64-2.456-.036L13 6zm7.586-.414l-2.172-2.172c-.78-.78-2.047-.78-2.828 0L14 5l5 5 1.586-1.586c.78-.78.78-2.047 0-2.828zM3 18v3h3c0-1.657-1.343-3-3-3z"})));break;case"gridicons-phone":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16 2H8c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h8c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-3 19h-2v-1h2v1zm3-2H8V5h8v14z"})));break;case"gridicons-plans":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm-1 12H6l5-10v10zm2 6V10h5l-5 10z"})));break;case"gridicons-plugins":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16 8V3c0-.552-.448-1-1-1s-1 .448-1 1v5h-4V3c0-.552-.448-1-1-1s-1 .448-1 1v5H5v4c0 2.79 1.637 5.193 4 6.317V22h6v-3.683c2.363-1.124 4-3.527 4-6.317V8h-3z"})));break;case"gridicons-plus-small":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 11h-5V6h-2v5H6v2h5v5h2v-5h5"})));break;case"gridicons-plus":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 13h-7v7h-2v-7H4v-2h7V4h2v7h7v2z"})));break;case"gridicons-popout":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M6 7V5c0-1.105.895-2 2-2h11c1.105 0 2 .895 2 2v14c0 1.105-.895 2-2 2H8c-1.105 0-2-.895-2-2v-2h2v2h11V5H8v2H6zm5.5-.5l-1.414 1.414L13.172 11H3v2h10.172l-3.086 3.086L11.5 17.5 17 12l-5.5-5.5z"})));break;case"gridicons-posts":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16 19H3v-2h13v2zm5-10H3v2h18V9zM3 5v2h11V5H3zm14 0v2h4V5h-4zm-6 8v2h10v-2H11zm-8 0v2h5v-2H3z"})));break;case"gridicons-print":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M9 16h6v2H9v-2zm13 1h-3v3c0 1.105-.895 2-2 2H7c-1.105 0-2-.895-2-2v-3H2V9c0-1.105.895-2 2-2h1V5c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2v2h1c1.105 0 2 .895 2 2v8zM7 7h10V5H7v2zm10 7H7v6h10v-6zm3-3.5c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5z"})));break;case"gridicons-quote":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M11.192 15.757c0-.88-.23-1.618-.69-2.217-.326-.412-.768-.683-1.327-.812-.55-.128-1.07-.137-1.54-.028-.16-.95.1-1.956.76-3.022.66-1.065 1.515-1.867 2.558-2.403L9.373 5c-.8.396-1.56.898-2.26 1.505-.71.607-1.34 1.305-1.9 2.094s-.98 1.68-1.25 2.69-.346 2.04-.217 3.1c.168 1.4.62 2.52 1.356 3.35.735.84 1.652 1.26 2.748 1.26.965 0 1.766-.29 2.4-.878.628-.576.94-1.365.94-2.368l.002.003zm9.124 0c0-.88-.23-1.618-.69-2.217-.326-.42-.77-.692-1.327-.817-.56-.124-1.074-.13-1.54-.022-.16-.94.09-1.95.75-3.02.66-1.06 1.514-1.86 2.557-2.4L18.49 5c-.8.396-1.555.898-2.26 1.505-.708.607-1.34 1.305-1.894 2.094-.556.79-.97 1.68-1.24 2.69-.273 1-.345 2.04-.217 3.1.165 1.4.615 2.52 1.35 3.35.732.833 1.646 1.25 2.742 1.25.967 0 1.768-.29 2.402-.876.627-.576.942-1.365.942-2.368v.01z"})));break;case"gridicons-reader":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M3 4v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4H3zm7 11H5v-1h5v1zm2-2H5v-1h7v1zm0-2H5v-1h7v1zm7 4h-5v-5h5v5zm0-7H5V6h14v2z"})));break;case"gridicons-reader-following":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M23,13.482L15.508,21L12,17.4l1.412-1.388l2.106,2.188l6.094-6.094L23,13.482z M15.545,15.344L20,10.889V2H2v14c0,1.1,0.9,2,2,2h4.538l4.913-4.832L15.545,15.344z M8,13H4v-1h4V13z M11,11H4v-1h7V11z M11,9H4V8h7V9z M18,6H4V4h14V6z"})));break;case"gridicons-reblog":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M22.086 9.914L20 7.828V18c0 1.105-.895 2-2 2h-7v-2h7V7.828l-2.086 2.086L14.5 8.5 19 4l4.5 4.5-1.414 1.414zM6 16.172V6h7V4H6c-1.105 0-2 .895-2 2v10.172l-2.086-2.086L.5 15.5 5 20l4.5-4.5-1.414-1.414L6 16.172z"})));break;case"gridicons-redo":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 6v3.586L14.343 5.93C13.17 4.756 11.636 4.17 10.1 4.17s-3.07.585-4.242 1.757c-2.343 2.342-2.343 6.14 0 8.484l5.364 5.364 1.414-1.414L7.272 13c-1.56-1.56-1.56-4.097 0-5.657.755-.755 1.76-1.172 2.828-1.172 1.068 0 2.073.417 2.828 1.173L16.586 11H13v2h7V6h-2z"})));break;case"gridicons-refresh":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17.91 14c-.478 2.833-2.943 5-5.91 5-3.308 0-6-2.692-6-6s2.692-6 6-6h2.172l-2.086 2.086L13.5 10.5 18 6l-4.5-4.5-1.414 1.414L14.172 5H12c-4.418 0-8 3.582-8 8s3.582 8 8 8c4.08 0 7.438-3.055 7.93-7h-2.02z"})));break;case"gridicons-reply":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M14 8H6.828l2.586-2.586L8 4 3 9l5 5 1.414-1.414L6.828 10H14c2.206 0 4 1.794 4 4s-1.794 4-4 4h-2v2h2c3.314 0 6-2.686 6-6s-2.686-6-6-6z"})));break;case"gridicons-rotate":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 14v6c0 1.105-.895 2-2 2H6c-1.105 0-2-.895-2-2v-6c0-1.105.895-2 2-2h10c1.105 0 2 .895 2 2zM13.914 2.914L11.828 5H14c4.418 0 8 3.582 8 8h-2c0-3.308-2.692-6-6-6h-2.172l2.086 2.086L12.5 10.5 8 6l1.414-1.414L12.5 1.5l1.414 1.414z"})));break;case"gridicons-scheduled":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M10.498 18l-3.705-3.704 1.415-1.415 2.294 2.295 5.293-5.293 1.415 1.415L10.498 18zM21 6v13c0 1.104-.896 2-2 2H5c-1.104 0-2-.896-2-2V6c0-1.104.896-2 2-2h1V2h2v2h8V2h2v2h1c1.104 0 2 .896 2 2zm-2 2H5v11h14V8z"})));break;case"gridicons-search":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 19l-5.154-5.154C16.574 12.742 17 11.42 17 10c0-3.866-3.134-7-7-7s-7 3.134-7 7 3.134 7 7 7c1.42 0 2.742-.426 3.846-1.154L19 21l2-2zM5 10c0-2.757 2.243-5 5-5s5 2.243 5 5-2.243 5-5 5-5-2.243-5-5z"})));break;case"gridicons-share-ios":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17 8h2c1.105 0 2 .895 2 2v9c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2v-9c0-1.105.895-2 2-2h2v2H5v9h14v-9h-2V8zM6.5 5.5l1.414 1.414L11 3.828V14h2V3.828l3.086 3.086L17.5 5.5 12 0 6.5 5.5z"})));break;case"gridicons-share":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 16c-.788 0-1.5.31-2.034.807L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.048 4.118c-.053.223-.088.453-.088.692 0 1.657 1.343 3 3 3s3-1.343 3-3-1.343-3-3-3z"})));break;case"gridicons-sign-out":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M16 17v2c0 1.105-.895 2-2 2H5c-1.105 0-2-.895-2-2V5c0-1.105.895-2 2-2h9c1.105 0 2 .895 2 2v2h-2V5H5v14h9v-2h2zm2.5-10.5l-1.414 1.414L20.172 11H10v2h10.172l-3.086 3.086L18.5 17.5 24 12l-5.5-5.5z"})));break;case"gridicons-spam":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17 2H7L2 7v10l5 5h10l5-5V7l-5-5zm-4 15h-2v-2h2v2zm0-4h-2l-.5-6h3l-.5 6z"})));break;case"gridicons-speaker":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 8v6c1.7 0 3-1.3 3-3s-1.3-3-3-3zM11 7H4c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h1v3c0 1.1.9 2 2 2h2v-5h2l4 4h2V3h-2l-4 4z"})));break;case"gridicons-special-character":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12.005 7.418c-1.237 0-2.19.376-2.86 1.128s-1.005 1.812-1.005 3.18c0 1.387.226 2.513.677 3.377.45.865 1.135 1.543 2.05 2.036V20H5v-2.666h3.12c-1.04-.636-1.842-1.502-2.405-2.6-.564-1.097-.846-2.322-.846-3.676 0-1.258.29-2.363.875-3.317.585-.952 1.417-1.685 2.497-2.198s2.334-.77 3.763-.77c2.18 0 3.915.572 5.204 1.713s1.932 2.673 1.932 4.594c0 1.353-.283 2.57-.852 3.65-.567 1.08-1.38 1.947-2.44 2.603H19V20h-5.908v-2.86c.95-.493 1.65-1.18 2.102-2.062s.677-2.006.677-3.374c0-1.36-.336-2.415-1.01-3.164-.672-.747-1.624-1.122-2.855-1.122z"})));break;case"gridicons-star-outline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 6.308l1.176 3.167.347.936.997.042 3.374.14-2.647 2.09-.784.62.27.963.91 3.25-2.813-1.872-.83-.553-.83.552-2.814 1.87.91-3.248.27-.962-.783-.62-2.648-2.092 3.374-.14.996-.04.347-.936L12 6.308M12 2L9.418 8.953 2 9.257l5.822 4.602L5.82 21 12 16.89 18.18 21l-2.002-7.14L22 9.256l-7.418-.305L12 2z"})));break;case"gridicons-star":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304"})));break;case"gridicons-stats-alt":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M21 21H3v-2h18v2zM8 10H4v7h4v-7zm6-7h-4v14h4V3zm6 3h-4v11h4V6z"})));break;case"gridicons-stats":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M19 3H5c-1.105 0-2 .895-2 2v14c0 1.105.895 2 2 2h14c1.105 0 2-.895 2-2V5c0-1.105-.895-2-2-2zm0 16H5V5h14v14zM9 17H7v-5h2v5zm4 0h-2V7h2v10zm4 0h-2v-7h2v7z"})));break;case"gridicons-status":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zM7.55 13c-.02.166-.05.33-.05.5 0 2.485 2.015 4.5 4.5 4.5s4.5-2.015 4.5-4.5c0-.17-.032-.334-.05-.5h-8.9zM10 10V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1zm6 0V8c0-.552-.448-1-1-1s-1 .448-1 1v2c0 .552.448 1 1 1s1-.448 1-1z"})));break;case"gridicons-strikethrough":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M14.348 12H21v2h-4.613c.24.515.368 1.094.368 1.748 0 1.317-.474 2.355-1.423 3.114-.947.76-2.266 1.138-3.956 1.138-1.557 0-2.934-.293-4.132-.878v-2.874c.985.44 1.818.75 2.5.928.682.18 1.306.27 1.872.27.68 0 1.2-.13 1.562-.39.363-.26.545-.644.545-1.158 0-.285-.08-.54-.24-.763-.16-.222-.394-.437-.704-.643-.18-.12-.483-.287-.88-.49H3v-2H14.347zm-3.528-2c-.073-.077-.143-.155-.193-.235-.126-.202-.19-.44-.19-.713 0-.44.157-.795.47-1.068.313-.273.762-.41 1.348-.41.492 0 .993.064 1.502.19.51.127 1.153.35 1.93.67l1-2.405c-.753-.327-1.473-.58-2.16-.76-.69-.18-1.414-.27-2.173-.27-1.544 0-2.753.37-3.628 1.108-.874.738-1.312 1.753-1.312 3.044 0 .302.036.58.088.848h3.318z"})));break;case"gridicons-sync":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M23.5 13.5l-3.086 3.086L19 18l-4.5-4.5 1.414-1.414L18 14.172V12c0-3.308-2.692-6-6-6V4c4.418 0 8 3.582 8 8v2.172l2.086-2.086L23.5 13.5zM6 12V9.828l2.086 2.086L9.5 10.5 5 6 3.586 7.414.5 10.5l1.414 1.414L4 9.828V12c0 4.418 3.582 8 8 8v-2c-3.308 0-6-2.692-6-6z"})));break;case"gridicons-tablet":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 2H6c-1.104 0-2 .896-2 2v16c0 1.104.896 2 2 2h12c1.104 0 2-.896 2-2V4c0-1.104-.896-2-2-2zm-5 19h-2v-1h2v1zm5-2H6V5h12v14z"})));break;case"gridicons-tag":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 2.007h-7.087c-.53 0-1.04.21-1.414.586L2.592 11.5c-.78.78-.78 2.046 0 2.827l7.086 7.086c.78.78 2.046.78 2.827 0l8.906-8.906c.376-.374.587-.883.587-1.413V4.007c0-1.105-.895-2-2-2zM17.007 9c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2z"})));break;case"gridicons-text-color":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M3 19h18v3H3v-3zM15.82 17h3.424L14 3h-4L4.756 17H8.18l1.067-3.5h5.506L15.82 17zm-1.952-6h-3.73l1.868-5.725L13.868 11z"})));break;case"gridicons-themes":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 6c-1.105 0-2 .895-2 2v12c0 1.1.9 2 2 2h12c1.105 0 2-.895 2-2H4V6zm16-4H8c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2h12c1.105 0 2-.895 2-2V4c0-1.105-.895-2-2-2zm-5 14H8V9h7v7zm5 0h-3V9h3v7zm0-9H8V4h12v3z"})));break;case"gridicons-thumbs-up":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M6.7 22H2v-9h2l2.7 9zM20 9h-6V5c0-1.657-1.343-3-3-3h-1v4L7.1 9.625c-.712.89-1.1 1.996-1.1 3.135V14l2.1 7h8.337c1.836 0 3.435-1.25 3.88-3.03l1.622-6.485C22.254 10.223 21.3 9 20 9z"})));break;case"gridicons-time":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm3.8 13.4L13 11.667V7h-2v5.333l3.2 4.266 1.6-1.2z"})));break;case"gridicons-trash":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M6.187 8h11.625l-.695 11.125C17.05 20.18 16.177 21 15.12 21H8.88c-1.057 0-1.93-.82-1.997-1.875L6.187 8zM19 5v2H5V5h3V4c0-1.105.895-2 2-2h4c1.105 0 2 .895 2 2v1h3zm-9 0h4V4h-4v1z"})));break;case"gridicons-trophy":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18 5.062V3H6v2.062H2V8c0 2.525 1.89 4.598 4.324 4.932.7 2.058 2.485 3.61 4.676 3.978V18c0 1.105-.895 2-2 2H8v2h8v-2h-1c-1.105 0-2-.895-2-2v-1.09c2.19-.368 3.976-1.92 4.676-3.978C20.11 12.598 22 10.525 22 8V5.062h-4zM4 8v-.938h2v3.766C4.836 10.416 4 9.304 4 8zm16 0c0 1.304-.836 2.416-2 2.83V7.06h2V8z"})));break;case"gridicons-types":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M22 17c0 2.76-2.24 5-5 5s-5-2.24-5-5 2.24-5 5-5 5 2.24 5 5zM6.5 6.5h3.8L7 1 1 11h5.5V6.5zm9.5 4.085V8H8v8h2.585c.433-2.783 2.632-4.982 5.415-5.415z"})));break;case"gridicons-underline":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M4 19v2h16v-2H4zM18 3v8c0 3.314-2.686 6-6 6s-6-2.686-6-6V3h3v8c0 1.654 1.346 3 3 3s3-1.346 3-3V3h3z"})));break;case"gridicons-undo":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M18.142 5.93C16.97 4.756 15.435 4.17 13.9 4.17s-3.072.586-4.244 1.757L6 9.585V6H4v7h7v-2H7.414l3.657-3.657c.756-.755 1.76-1.172 2.83-1.172 1.067 0 2.072.417 2.827 1.173 1.56 1.56 1.56 4.097 0 5.657l-5.364 5.364 1.414 1.414 5.364-5.364c2.345-2.343 2.345-6.142.002-8.485z"})));break;case"gridicons-user-circle":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm0 18.5c-4.694 0-8.5-3.806-8.5-8.5S7.306 3.5 12 3.5s8.5 3.806 8.5 8.5-3.806 8.5-8.5 8.5zm0-8c-3.038 0-5.5 1.728-5.5 3.5s2.462 3.5 5.5 3.5 5.5-1.728 5.5-3.5-2.462-3.5-5.5-3.5zm0-.5c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z"})));break;case"gridicons-user":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 4c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4zm0 16s8 0 8-2c0-2.4-3.9-5-8-5s-8 2.6-8 5c0 2 8 2 8 2z"})));break;case"gridicons-video-camera":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M17 9V7c0-1.105-.895-2-2-2H4c-1.105 0-2 .895-2 2v10c0 1.105.895 2 2 2h11c1.105 0 2-.895 2-2v-2l5 4V5l-5 4z"})));break;case"gridicons-video":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20 4v2h-2V4H6v2H4V4c-1.105 0-2 .895-2 2v12c0 1.105.895 2 2 2v-2h2v2h12v-2h2v2c1.105 0 2-.895 2-2V6c0-1.105-.895-2-2-2zM6 16H4v-3h2v3zm0-5H4V8h2v3zm4 4V9l4.5 3-4.5 3zm10 1h-2v-3h2v3zm0-5h-2V8h2v3z"})));break;case"gridicons-visible":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M12 6C5.188 6 1 12 1 12s4.188 6 11 6 11-6 11-6-4.188-6-11-6zm0 10c-3.943 0-6.926-2.484-8.38-4 1.04-1.085 2.863-2.657 5.255-3.47C8.335 9.214 8 10.064 8 11c0 2.21 1.79 4 4 4s4-1.79 4-4c0-.937-.335-1.787-.875-2.47 2.393.813 4.216 2.386 5.254 3.47-1.456 1.518-4.438 4-8.38 4z"})));break;case"gridicons-chat":s=o().createElement("svg",{className:i,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().createElement("g",null,o().createElement("path",{d:"M20,4h-8c-1.1,0-2,0.9-2,2v2h2c1.7,0,3,1.3,3,3v2h2v3.5l3.3-2.3c1.1-0.8,1.7-2,1.7-3.3V6C22,4.9,21.1,4,20,4z"}),o().createElement("g",null,o().createElement("path",{d:"M14,11v5c0,1.1-0.9,2-2,2H7v3.5l-3.3-2.3c-1.1-0.8-1.7-2-1.7-3.3V11c0-1.1,0.9-2,2-2h8C13.1,9,14,9.9,14,11z"}))))}return s}});t.Z=d},87279:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(7767),c=n.n(a),l=n(92819),u=n(40515),p=n(22256),d=n(89105),h=n.n(d),f=n(11973);t.Z=c()({displayName:"InfoPopover",propTypes:{id:i().string,position:i().string,className:i().string,rootClassName:i().string,gaEventCategory:i().string,popoverName:i().string,onClick:i().func,ignoreContext:i().shape({getDOMNode:i().function})},getDefaultProps:()=>({position:"bottom",onClick:l.noop}),getInitialState:()=>({showPopover:!1}),render(){const e=h()("dops-info-popover","dops-info-popover-button",{is_active:this.state.showPopover},this.props.className);return o().createElement("button",{ref:"infoPopover",className:e,onClick:this._onClick},o().createElement(p.Z,{icon:"info-outline",size:18}),this.props.screenReaderText?o().createElement("span",{className:"screen-reader-text"},this.props.screenReaderText):"",o().createElement(u.Z,{id:this.props.id,isVisible:this.state.showPopover,context:this.refs&&this.refs.infoPopover,ignoreContext:this.props.ignoreContext,position:this.props.position,onClose:this._onClose,className:h()("dops-info-popover__tooltip",this.props.className),rootClassName:this.props.rootClassName},this.props.children))},_onClick(e){this.props.onClick(),e.preventDefault(),this.setState({showPopover:!this.state.showPopover},this._recordStats)},_onClose(){this.setState({showPopover:!1},this._recordStats)},_recordStats(){const{gaEventCategory:e,popoverName:t}=this.props;if(e&&t){const n=this.state.showPopover?" Opened":" Closed";f.Z.ga.recordEvent(e,"InfoPopover: "+t+n)}}})},46188:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(55609),o=n(9913);t.Z=e=>{const{isInstalling:t=!1,children:n=null,...r}=e,a=t?i().createElement("div",{className:"jp-install-button__spinner-container"},i().createElement(s.Spinner,null)):n;return i().createElement(o.Z,r,a)}},85253:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(34606),d=n(66552);class h extends p.Z{componentDidMount(){!this.props.hidePromotionBanner&&this.props.arePromotionsActive&&this.props.trackBannerDisplay()}render(){return this.props.hidePromotionBanner?null:this.props.arePromotionsActive?c().createElement(p.Z,this.props):null}}i()(h,"propTypes",{callToAction:o().string,className:o().string,description:o().node,eventFeature:o().string,feature:o().string,href:o().string,icon:o().string,iconAlt:o().string,iconSrc:o().string,list:o().arrayOf(o().string),onClick:o().func,trackBannerDisplay:o().func,path:o().string,plan:o().string,siteSlug:o().string,title:o().string.isRequired}),i()(h,"defaultProps",{onClick:u.noop,trackBannerDisplay:u.noop,plan:""}),t.Z=(0,l.$j)(((e,t)=>{const n=(0,d.pK)(e);return{arePromotionsActive:(0,d.Hy)(e),userCanPurchasePlan:n,hidePromotionBanner:!!t.plan&&!n}}))(h)},27711:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2332),o=n(69307),a=n(55609),c=n(65736),l=n(71415);const __=c.__;t.Z=e=>{const{siteBenefits:t}=e;return i().createElement(i().Fragment,null,t.length>0&&i().createElement(i().Fragment,null,i().createElement("div",{className:"jp-connection__disconnect-dialog__step-copy"},i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack is currently powering features on your site. Once you disconnect Jetpack, these features will no longer be available and your site may no longer function the same way.","jetpack"))),i().createElement("div",{className:"jp-connection__disconnect-card__group"},t.map((e=>{let{value:t,description:n,title:r}=e;return i().createElement(s.Z,{title:r,value:t,description:n})})))),t.length<=2&&i().createElement("div",{className:"jetpack-benefits__general-benefits-section"},i().createElement("p",{className:"jp-connection__disconnect-dialog__large-text"},__("Jetpack has many powerful tools that can help you achieve your goals","jetpack")),i().createElement("ul",{className:"jetpack-benefits__general-benefits-list"},i().createElement("li",{key:"reason-cdn"},(0,o.createInterpolateElement)(__("Speed up your site and provide mobile-ready images with <ExternalLink>our CDN</ExternalLink>","jetpack"),{ExternalLink:i().createElement(a.ExternalLink,{href:(0,l.Z)("jetpack-features-design-content-delivery-network"),rel:"noopener noreferrer",target:"_blank"})})),i().createElement("li",{key:"reason-brute-force"},(0,o.createInterpolateElement)(__("Block <ExternalLink>brute force attacks</ExternalLink> and get immediate notifications if your site is down","jetpack"),{ExternalLink:i().createElement(a.ExternalLink,{href:(0,l.Z)("jetpack-features-security"),rel:"noopener noreferrer",target:"_blank"})})),i().createElement("li",{key:"reason-social"},(0,o.createInterpolateElement)(__("Grow your traffic with automated social <ExternalLink>publishing and sharing</ExternalLink>","jetpack"),{ExternalLink:i().createElement(a.ExternalLink,{href:(0,l.Z)("jetpack-support-social"),rel:"noopener noreferrer",target:"_blank"})})))))}},39868:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(92819),u=n(89105),p=n.n(u),d=n(22256),h=n(41922);class f extends a.Component{constructor(){super(...arguments),i()(this,"maybeDismiss",(e=>{!this.props.showDismiss||e.keyCode&&27!==e.keyCode||this.props.dismiss(e)}))}componentDidMount(){document.addEventListener("keydown",this.maybeDismiss.bind(this),!1)}componentWillUnmount(){document.removeEventListener("keydown",this.maybeDismiss.bind(this),!1)}clickForeground(e){e.stopPropagation()}render(){const e=p()(this.props.className,"jp-dialogue-modern",{"has-featured-image":!!this.props.svg});return c().createElement("div",{className:"jp-dialogue-modern-full__container",role:"presentation",onClick:this.maybeDismiss,onKeyDown:(0,h.Z)(this.maybeDismiss)},c().createElement("div",{className:e,role:"presentation",onClick:this.clickForeground,onKeyDown:(0,h.Z)(this.clickForeground)},this.props.showDismiss&&c().createElement(d.Z,{icon:"cross-small",className:"jp-dialogue-modern-full__dismiss",tabIndex:"0",onKeyDown:(0,h.Z)(this.props.dismiss),onClick:this.props.dismiss}),this.props.svg,c().createElement("div",{className:"jp-dialogue-modern__content"},c().createElement("h1",{className:"jp-dialogue-modern__title"},this.props.title),this.props.content),c().createElement("div",null,this.props.belowContent)))}}f.propTypes={content:o().oneOfType([o().string,o().object]).isRequired,belowContent:o().oneOfType([o().string,o().object]).isRequired,svg:o().oneOfType([o().bool,o().object]),dismissOnClick:o().func,showDismiss:o().bool,title:o().string,adminUrl:o().string,dismiss:o().func},f.defaultProps={svg:!1,showDismiss:!0,dismiss:l.noop,content:"",belowContent:"",title:""},t.Z=f},79644:function(e,t,n){"use strict";n.d(t,{D:function(){return l}});var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(65736),c=n(98486);const __=a.__,l=e=>{let{altText:t}=e;return i().createElement("div",{className:"jp-loading-icon"},i().createElement("img",{src:c.hp+"/jetpack-logomark-blue.svg",alt:t}))};l.propTypes={altText:o().string},l.defaultProps={altText:__("Loading…","jetpack")}},30281:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(74978),c=n(2620),l=n(39370);class u extends o().Component{constructor(){super(...arguments),i()(this,"dismissJetpackActionNotice",(()=>{this.props.dismissJetpackActionNotice(this.props.jetpackNotices)})),i()(this,"renderNotices",(()=>{this.props.jetpackNotices;return!1}))}render(){return o().createElement("div",null,this.renderNotices())}}i()(u,"displayName","DismissableNotices"),t.Z=(0,c.$j)((e=>({jetpackNotices:(0,l.gq)(e),isDismissed:t=>(0,l.jE)(e,t)})),(e=>(0,a.DE)({dismissJetpackActionNotice:l.Sn},e)))(u)},97079:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(65736),c=n(11268),l=n.n(c),u=n(88001),p=n(27951);const __=a.__;class d extends o().Component{render(){return o().createElement(u.Z,{showDismiss:!1,text:this.props.text,status:"is-error",icon:"link-break"},o().createElement(p.Z,{errorCode:this.props.errorCode,errorData:this.props.errorData,action:this.props.action},__("Restore Connection","jetpack")))}}i()(d,"defaultProps",{text:__("Connection Error, please reconnect.","jetpack")}),i()(d,"propTypes",{text:l().string.isRequired,errorCode:l().string,errorData:l().object,action:l().string})},66496:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(12901),p=n(62470),d=n(69307),h=n(65736),f=n(71415),m=n(68103),g=n(30281),v=n(62807),b=n(41147),y=n(66552),k=n(77219),w=n(88872),_=n(98486),E=n(3319),C=n(97031),S=n(51933),j=n(49457),M=n(76306),x=n(88001);const __=h.__;class N extends c().Component{render(){return!(!this.props.isDevVersion||this.props.userIsSubscriber)&&c().createElement(x.Z,{showDismiss:!1,text:__("You are currently running a development version of Jetpack.","jetpack")},c().createElement(S.Z,{href:_.Ez,external:!0},__("Submit Beta feedback","jetpack")))}}i()(N,"displayName","DevVersionNotice"),N.propTypes={isDevVersion:o().bool.isRequired,userIsSubscriber:o().bool.isRequired};class A extends c().Component{render(){if(this.props.isStaging&&!this.props.isInIdentityCrisis){const e=(0,f.Z)("jetpack-support-staging-sites"),t={text:__("You are running Jetpack on a staging server.","jetpack"),status:"is-basic",showDismiss:!1};return c().createElement(x.Z,t,c().createElement(S.Z,{href:e},__("More Info","jetpack")))}return!1}}i()(A,"displayName","StagingSiteNotice"),A.propTypes={isStaging:o().bool.isRequired,isInIdentityCrisis:o().bool.isRequired};class O extends c().Component{render(){if("offline"===this.props.siteConnectionStatus){const e=this.props.siteOfflineMode,t=[];e.filter&&t.push(__("The jetpack_development_mode filter is active","jetpack")),e.constant&&t.push((0,h.sprintf)(
/* translators: placeholder is a constant, such as WP_LOCAL_DEV. */
__("The %s constant is defined","jetpack"),"JETPACK_DEV_DEBUG")),e.wpLocalConstant&&t.push((0,h.sprintf)(
/* translators: placeholder is a constant, such as WP_LOCAL_DEV. */
__("The %s constant is defined","jetpack"),"WP_LOCAL_DEV")),e.url&&t.push(__("Your site URL is a known local development environment URL","jetpack"));const n=(0,d.createInterpolateElement)(
/* translators: reasons is an unordered list of reasons why a site may be in Offline mode. */
__("Currently in <a>Offline Mode</a> (some features are disabled) because: <reasons/>","jetpack"),{a:c().createElement("a",{href:(0,f.Z)("jetpack-support-development-mode"),target:"_blank",rel:"noopener noreferrer"}),reasons:c().createElement("ul",null,t.map(((e,t)=>c().createElement("li",{key:t},e))))});return c().createElement(x.Z,{showDismiss:!1,status:"is-info",text:n},c().createElement(S.Z,{href:(0,f.Z)("jetpack-support-development-mode")},__("Learn More","jetpack")))}return!1}}i()(O,"displayName","OfflineModeNotice"),O.propTypes={siteConnectionStatus:o().oneOfType([o().string,o().bool]).isRequired,siteOfflineMode:o().oneOfType([o().bool,o().object]).isRequired};class T extends c().Component{render(){return!(this.props.isLinked||!this.props.connectUrl||!this.props.siteConnected)&&c().createElement("div",{className:"jp-unlinked-notice"},c().createElement(m.Z,{title:__("Jetpack is powering your site, but to access all of its features you’ll need to connect your account to WordPress.com.","jetpack"),callToAction:__("Create account","jetpack"),href:`${this.props.connectUrl}&from=unlinked-user-connect`,icon:c().createElement(p.Z,{icon:"wordpress",size:24}),className:"is-jetpack-info",from:"unlinked-user-connect",connectUser:!0}))}}i()(T,"displayName","UserUnlinked"),T.propTypes={connectUrl:o().string.isRequired,siteConnected:o().bool.isRequired};class P extends c().Component{render(){const e=this.props.siteDataErrors.filter((e=>e.hasOwnProperty("action"))),t="/connect-user"===this.props.location.pathname,n=this.props.location.pathname.startsWith("/license");return c().createElement("div",{"aria-live":"polite"},c().createElement(j.Z,null),this.props.siteConnectionStatus&&this.props.userCanConnectSite&&!this.props.isReconnectingSite&&(this.props.connectionErrors.length>0||e.length>0)&&c().createElement(C.Z,{errors:this.props.connectionErrors.concat(e)}),c().createElement(E.Z,null),c().createElement(N,{isDevVersion:this.props.isDevVersion,userIsSubscriber:this.props.userIsSubscriber}),c().createElement(O,{siteConnectionStatus:this.props.siteConnectionStatus,siteOfflineMode:this.props.siteOfflineMode}),c().createElement(A,{isStaging:this.props.isStaging,isInIdentityCrisis:this.props.isInIdentityCrisis}),c().createElement(M.Z,null),c().createElement(g.Z,null),!this.props.isReconnectingSite&&this.props.userCanConnectAccount&&this.props.hasConnectedOwner&&!e.length&&!this.props.connectionErrors.length&&!t&&c().createElement(T,{connectUrl:this.props.connectUrl,siteConnected:!0===this.props.siteConnectionStatus,isLinked:this.props.isLinked}),!this.props.siteConnectionStatus&&!this.props.userCanConnectSite&&c().createElement(x.Z,{showDismiss:!1,status:"is-warning",text:__("This site is not connected to WordPress.com. Please ask the site administrator to connect.","jetpack")}),this.props.licensingError&&c().createElement(x.Z,{showDismiss:!0,status:"is-error",text:this.props.licensingError,onDismissClick:this.props.clearLicensingError}),!n&&!this.props.isAtomicSite&&c().createElement(v.Z,{pathname:this.props.location.pathname}))}}i()(P,"displayName","JetpackNotices"),t.ZP=(0,l.$j)((e=>({connectUrl:(0,b.AM)(e),siteConnectionStatus:(0,b.Gz)(e),userCanConnectSite:(0,y.Mc)(e),userCanConnectAccount:(0,y.n0)(e),userIsSubscriber:(0,y.dc)(e),isLinked:(0,b.BU)(e),isDevVersion:(0,y._W)(e),isAtomicSite:(0,y.Ug)(e),siteOfflineMode:(0,b.Hu)(e),isStaging:(0,b.cm)(e),isInIdentityCrisis:(0,b.l9)(e),connectionErrors:(0,y.PK)(e),siteDataErrors:(0,w.Vc)(e),isReconnectingSite:(0,b.O_)(e),licensingError:(0,k.Tk)(e),hasConnectedOwner:(0,b.it)(e)})),(e=>({clearLicensingError:()=>e((0,k.xw)())})))((0,u.EN)(P))},97031:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(65736),u=n(97079),p=n(98486),d=n(51933),h=n(88001);const __=l.__;class f extends o().Component{getAction(e,t,n,r,i){switch(e){case"reconnect":return o().createElement(u.Z,{text:t,errorCode:n,errorData:r,action:e});case"support":return o().createElement(h.Z,{text:t,status:"is-error",icon:"link-break",showDismiss:!1},o().createElement(d.Z,{href:i,external:!0},__("Contact support","jetpack")))}return null}renderOne(e){const t=this.props.isDevVersion?p.Ez:p.Fr,n=this.getAction(e.action,e.message,e.code,e.hasOwnProperty("data")?e.data:{},t);return null===n?null:o().createElement(o().Fragment,{key:e.action},n)}render(){const e={},t=this.props.errors.filter((e=>e.hasOwnProperty("action")));for(const n of t)e.hasOwnProperty(n.action)||(e[n.action]=n);return Object.values(e).map((e=>this.renderOne(e)))}}i()(f,"propTypes",{errors:c().array.isRequired})},27951:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(51933),p=n(41147),d=n(11973);class h extends c().Component{constructor(){super(...arguments),i()(this,"getEventProps",(()=>{const e={location:"dashboard",purpose:"reconnect"};return this.props.errorCode&&(e.error_code=this.props.errorCode),this.props.errorData&&(this.props.errorData.api_error_code&&(e.api_error_code=this.props.errorData.api_error_code),this.props.errorData.api_http_code&&(e.api_http_code=this.props.errorData.api_http_code)),e})),i()(this,"handleDisconnectClick",(()=>{this.props.isReconnectingSite||(d.Z.tracks.recordEvent("jetpack_termination_error_notice_click",this.getEventProps()),this.props.reconnectSite(this.props.action))}))}componentDidMount(){d.Z.tracks.recordEvent("jetpack_termination_error_notice_view",this.getEventProps())}render(){return c().createElement(u.Z,{icon:this.props.icon,onClick:this.handleDisconnectClick},this.props.children)}}i()(h,"propTypes",{icon:o().string,errorCode:o().string,errorData:o().object,action:o().string}),t.Z=(0,l.$j)((e=>({isReconnectingSite:(0,p.O_)(e)})),(e=>({reconnectSite:()=>e((0,p.xK)())})))(h)},76306:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(65736),a=n(12901),c=n(88001),l=n(88872);const __=o.__;const u=(0,a.EN)((function(e){let{activeSitePurchases:t,location:{pathname:n}}=e;if("/plans"!==n)return null;if(t.length<=1)return null;const r=t.map((e=>{let{product_slug:t,...n}=e;return{...n,product_slug:t.replace("_monthly","")}})),s=r.find((e=>{let{product_slug:t}=e;return t.includes("backup")}));if(!s)return null;const a=r.find((e=>{let{product_slug:t}=e;return"jetpack_personal"===t||"jetpack_premium"===t||"jetpack_business"===t}));if(!a)return null;if("jetpack_backup_realtime"===s.product_slug&&"jetpack_business"!==a.product_slug)return null;let l=__("daily backups","jetpack");return"jetpack_business"===a.product_slug&&(l=__("real-time backups","jetpack")),i().createElement(c.Z,{status:"is-warning",showDismiss:!1,text:(0,o.sprintf)(
/* translators: %1$s: feature, such as "daily backups". %2$s: Plan name, such as "Jetpack Premium". %3$s: Product name, such as "Jetpack Backups". */
__("Your %2$s Plan includes %1$s. Looks like you also purchased the %3$s product. Consider removing %3$s.","jetpack"),l,a.product_name,s.product_name)})}));t.Z=(0,s.$j)((e=>({activeSitePurchases:(0,l.nl)(e)})))(u)},3319:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(69307),l=n(65736),u=n(71415),p=n(66552),d=n(39370),h=n(51933),f=n(88001),m=n(24857);const __=l.__;class g extends o().Component{constructor(){super(...arguments),i()(this,"state",{showNotice:!0}),i()(this,"dismissJetpackStateNotice",(()=>{this.setState({showNotice:!1})})),i()(this,"getErrorFromKey",(e=>{const t=this.props.jetpackStateNoticesErrorDescription||!1;let n="";switch(e){case"cheatin":n=__("Cheatin' uh?","jetpack");break;case"access_denied":n=(0,c.createInterpolateElement)(__("<p>Would you mind telling us why you did not complete the Jetpack connection in this <a>2 question survey</a>?</p><p>A Jetpack connection is required for our free security and traffic features to work.</p>","jetpack"),{a:o().createElement("a",{href:(0,u.Z)("jetpack-cancelled-connection"),target:"_blank",rel:"noopener noreferrer"}),p:o().createElement("p",null)});break;case"wrong_state":n=__("You need to stay logged in to your WordPress blog while you authorize Jetpack.","jetpack");break;case"invalid_client":n=__("We had an issue connecting Jetpack; deactivate then reactivate the Jetpack plugin, then connect again.","jetpack");break;case"invalid_grant":n=__('There was an issue connecting your Jetpack. Please click "Connect to WordPress.com" again.',"jetpack");break;case"site_inaccessible":case"site_requires_authorization":n=(0,l.sprintf)(
/* translators: placeholder is an error code and message. */
__("Your website needs to be publicly accessible to use Jetpack: %s","jetpack"),e);break;case"site_blacklisted":n=(0,c.createInterpolateElement)(__("This site can't be connected to WordPress.com because it violates our <a>Terms of Service</a>.","jetpack"),{a:o().createElement("a",{href:(0,u.Z)("wpcom-tos"),rel:"noopener noreferrer",target:"_blank"})});break;case"not_public":n=(0,c.createInterpolateElement)(__("<s>Your Jetpack has a glitch.</s> Connecting this site with WordPress.com is not possible. This usually means your site is not publicly accessible (localhost).","jetpack"),{s:o().createElement("strong",null)});break;case"wpcom_408":case"wpcom_5??":case"wpcom_bad_response":case"wpcom_outage":n=__("WordPress.com is currently having problems and is unable to fuel up your Jetpack. Please try again later.","jetpack");break;case"register_http_request_failed":case"token_http_request_failed":n=(0,l.sprintf)(
/* translators: placeholder is an error code and message. */
__("Jetpack could not contact WordPress.com: %s. This usually means something is incorrectly configured on your web host.","jetpack"),e);break;case"no_role":case"no_cap":case"no_code":case"no_state":case"invalid_state":case"invalid_request":case"invalid_scope":case"unsupported_response_type":case"invalid_token":case"no_token":case"missing_secrets":case"home_missing":case"siteurl_missing":case"gmt_offset_missing":case"site_name_missing":case"secret_1_missing":case"secret_2_missing":case"site_lang_missing":case"home_malformed":case"siteurl_malformed":case"gmt_offset_malformed":case"timezone_string_malformed":case"site_name_malformed":case"secret_1_malformed":case"secret_2_malformed":case"site_lang_malformed":case"secrets_mismatch":case"verify_secret_1_missing":case"verify_secret_1_malformed":case"verify_secrets_missing":case"verify_secrets_mismatch":n=(0,c.createInterpolateElement)((0,l.sprintf)(
/* translators: placeholder is an error code and message. */
__("<s>Your Jetpack has a glitch.</s> We’re sorry for the inconvenience. Please try again later, if the issue continues please contact support with this message: %s","jetpack"),e),{s:o().createElement("strong",null)});break;default:n=e}return t?o().createElement("div",null,n,o().createElement("br",null),t):o().createElement("div",null,n)})),i()(this,"getMessageFromKey",(e=>{let t,n="",r="is-info";switch(e){case"modules_activated":this.props.isAtomicPlatform||(n=(0,c.createInterpolateElement)((0,l.sprintf)(
/* translators: placeholder is a version number, like 8.8. */
__("Welcome to <s>Jetpack %s</s>!","jetpack"),this.props.currentVersion),{s:o().createElement("strong",null)}));break;case"already_authorized":n=__("Your Jetpack is already connected.","jetpack"),r="is-success";break;case"authorized":n=__("You're fueled up and ready to go, Jetpack is now active.","jetpack"),r="is-success";break;case"linked":n=__("You're fueled up and ready to go.","jetpack"),r="is-success";break;case"protect_misconfigured_ip":n=__("Your server is misconfigured, which means that Jetpack Protect is unable to effectively protect your site.","jetpack"),r="is-info",t=o().createElement(h.Z,{href:(0,u.Z)("jetpack-support-security-troubleshooting-protect")},__("Learn More","jetpack"));break;case"reconnection_completed":n=(0,c.createInterpolateElement)(__("Jetpack successfully reconnected! You can check your Jetpack Connection health by visiting the <a>Site Health tool</a>.","jetpack"),{a:o().createElement("a",{href:this.props.siteAdminUrl+"site-health.php"})}),r="is-success";break;default:n=e}return[n,r,t]})),i()(this,"renderContent",(()=>{let e,t="is-info",n="";const r=this.props.jetpackStateNoticesErrorCode,i=this.props.jetpackStateNoticesMessageCode,s=this.props.jetpackStateNoticesMessageContent;if(r||i||s){if(r&&(n=this.getErrorFromKey(r),"access_denied"!==r&&(t="is-error")),s&&s.release_post_content&&!this.props.isAtomicPlatform)return o().createElement(m.Z,{dismiss:this.dismissJetpackStateNotice,version:this.props.currentVersion,releasePostContent:s.release_post_content,featuredImage:s.release_post_featured_image,title:s.release_post_title});if(i){const r=this.getMessageFromKey(i);n=r[0],t=r[1],e=r[2]}if(""!==n)return o().createElement(f.Z,{status:t,onDismissClick:this.dismissJetpackStateNotice,text:n},e)}}))}render(){return o().createElement("div",null,this.state.showNotice?this.renderContent():null)}}i()(g,"displayName","JetpackStateNotices"),t.Z=(0,a.$j)((e=>({currentVersion:(0,p.w1)(e),isAtomicPlatform:(0,p.vL)(e),jetpackStateNoticesErrorCode:(0,d.gB)(e),jetpackStateNoticesMessageCode:(0,d.pt)(e),jetpackStateNoticesErrorDescription:(0,d.XF)(e),jetpackStateNoticesMessageContent:(0,d.Rv)(e),siteAdminUrl:(0,p.wW)(e)})))(g)},62807:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(69307),l=n(65736),u=n(71415),p=n(68961),d=n(11973),h=n(66552),f=n(77219),m=n(88001);const __=l.__,g=e=>{const{detachedLicensesCount:t,activationNoticeDismissInfo:n,updateLicensingActivationNoticeDismiss:r,pathname:i,siteAdminUrl:a}=e,{last_detached_count:l,last_dismissed_time:h}=n,f=`${a}admin.php?page=jetpack#/license/activation`,g=!!t,v=t>(l||0),b=(new Date-new Date(h||new Date))/864e5;(0,s.useEffect)((()=>{g&&(v||b>14)&&d.Z.tracks.recordEvent("jetpack_wpa_licensing_activation_notice_view")}),[]);const y=(0,s.useCallback)((()=>{d.Z.tracks.recordJetpackClick({target:"licensing_activation_notice",page:i,path:"licensing/activation"})}),[i]),k=(0,s.useCallback)((()=>{d.Z.tracks.recordJetpackClick({target:"calypso_purchases_link",page:i})}),[i]),w=(0,s.useCallback)((()=>{d.Z.tracks.recordEvent("jetpack_wpa_licensing_activation_notice_dismiss"),r()}),[r]);return g&&(v||b>14)?o().createElement(m.Z,{className:"jp-license-activation-notice",showDismiss:!0,onDismissClick:w,text:(0,c.createInterpolateElement)(__("You have an available product license key. <activateLink>Activate it now</activateLink> or <purchasesLink>view all your purchases</purchasesLink>","jetpack"),{activateLink:(0,s.createElement)("a",{href:f,onClick:y}),purchasesLink:(0,s.createElement)(p.Z,{className:"jp-license-activation-notice__external-link",href:(0,u.Z)("calypso-purchases"),onClick:k,target:"_blank",icon:!0})})}):null};g.propTypes={detachedLicensesCount:i().number.isRequired,activationNoticeDismissInfo:i().shape({last_detached_count:i().number.isRequired,last_dismiss_time:i().string.isRequired}),pathname:i().string.isRequired,siteAdminUrl:i().string.isRequired},t.Z=(0,a.$j)((e=>({detachedLicensesCount:(0,f.O4)(e),activationNoticeDismissInfo:(0,f.SP)(e),siteAdminUrl:(0,h.wW)(e)})),(e=>({updateLicensingActivationNoticeDismiss:()=>e((0,f.bT)())})))(g)},94218:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(89105),c=n.n(a),l=n(78850),u=n(65736),p=n(11973),d=n(9913),h=n(22256);const __=u.__,f=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=(0,l.LR)(e,t),s=c()({"jp-product-card__raw-price":!0,"jp-product-card__raw-price--is-old-price":n});return i().createElement("div",{className:s},i().createElement("sup",{className:"jp-product-card__currency-symbol"},r.symbol),i().createElement("span",{className:"jp-product-card__price-integer"},r.integer),i().createElement("sup",{className:"jp-product-card__price-fraction"},r.fraction))},m=e=>{const{icon:t,title:n,productSlug:s,description:o,features:a,currencyCode:l,price:m,discount:g,billingDescription:v,callToAction:b,checkoutText:y,checkoutUrl:k,priority:w,illustrationPath:_}=e,E=m*(100-g)/100,C=g>0,S=!!_,j=!!b;(0,r.useEffect)((()=>{p.Z.tracks.recordEvent("jetpack_product_card_view",{type:s})}),[s]);const M=(0,r.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_product_card_checkout_click",{type:s})}),[s]),x=c()({"jp-product-card":!0,"jp-product-card--has-media":S,"jp-product-card--has-cta":j}),N=c()(["jp-product-card__checkout",`jp-product-card__checkout--${w}`]);return i().createElement("div",{className:x},j&&i().createElement("div",{className:"jp-product-card__cta"},i().createElement(h.Z,{icon:"star"})," ",b),i().createElement("div",{className:"jp-product-card__inner"},!!t&&i().createElement("div",{className:"jp-product-card__icon"},t),i().createElement("h3",{className:"jp-product-card__title"},n),i().createElement("p",{className:"jp-product-card__description"},o),a.length&&i().createElement("ul",{className:"jp-product-card__features"},a.map(((e,t)=>i().createElement("li",{className:"jp-product-card__feature",key:t},i().createElement(h.Z,{icon:"checkmark"}),e)))),i().createElement("div",{className:"jp-product-card__price"},f(m,l,!!C),!!C&&f(E,l)),i().createElement("span",{className:"jp-product-card__price-description"},v),i().createElement(d.Z,{className:N,href:k,onClick:M},y)),S&&i().createElement("img",{className:"jp-product-card__media",src:_,alt:(0,u.sprintf)(
/* translators: %s: Name of a Jetpack product. */
__("Graphical illustration of product: %s","jetpack"),n)}))};m.propTypes={checkoutText:o().string.isRequired,checkoutUrl:o().string.isRequired,title:o().string.isRequired,price:o().number.isRequired,currencyCode:o().string.isRequired,billingDescription:o().string.isRequired,productSlug:o().string.isRequired,description:o().string,features:o().array,discount:o().number,icon:o().element,callToAction:o().string,priority:o().string,illustrationPath:o().string},m.defaultProps={arePromotionsActive:!1,description:"",discount:0,features:[],priority:"primary",showIllustration:""},t.Z=m},26040:function(e,t,n){"use strict";n.d(t,{e:function(){return h}});var r=n(2620),i=n(99196),s=n.n(i),o=n(65736),a=n(11973),c=n(9913),l=n(45232),u=n(41147),p=n(66552),d=n(93107);const __=o.__,h=(0,r.$j)((e=>({canEditPosts:(0,p.rp)(e),canManageOptions:(0,p.UF)(e),hasConnectedOwner:(0,u.it)(e),isCurrentUserLinked:(0,u.BU)(e),isSiteConnected:(0,u.j8)(e),activeModules:(0,d.Xx)(e),siteConnectionStatus:(0,u.Gz)(e)})))((e=>{const{activeModules:t,canEditPosts:n,canManageOptions:r,hasConnectedOwner:o,isCurrentUserLinked:u,isSiteConnected:p,location:d={pathname:""},siteConnectionStatus:h}=e,{pathname:f}=d,m=["/","/dashboard","/my-plan","/plans"].includes(f)||f.includes("/recommendations"),g=""===f,v=(0,i.useCallback)((()=>{a.Z.tracks.recordJetpackClick({target:"masthead",path:"nav_dashboard"})}),[]),b=(0,i.useCallback)((()=>{a.Z.tracks.recordJetpackClick({target:"masthead",path:"nav_settings"})}),[]);if(g)return null;if(!h)return null;if(f.startsWith("/setup"))return null;if(!n)return null;if("offline"!==h&&!p)return null;if("offline"!==h&&!r){if(!o)return null;if(!u)return null;if(!t.some((e=>["post-by-email","publicize"].includes(e))))return null}return s().createElement("div",{className:"jp-masthead__nav"},s().createElement(l.Z,null,s().createElement(c.Z,{compact:!0,href:"#/dashboard",primary:m&&!g,onClick:v},__("Dashboard","jetpack")),s().createElement(c.Z,{compact:!0,href:"#/settings",primary:!m&&!g,onClick:b},__("Settings","jetpack"))))}))},96082:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(81546),l=n(11973),u=n(26040),p=n(66552),d=n(41147);class h extends o().Component{constructor(){super(...arguments),i()(this,"trackLogoClick",(()=>{l.Z.tracks.recordJetpackClick({target:"masthead",path:"logo"})})),i()(this,"testConnection",(()=>this.props.testConnection()))}render(){const{isWoASite:e,sandboxDomain:t,siteConnectionStatus:n}=this.props,r="offline"===n?o().createElement("code",null,"Offline Mode"):"",i=t?o().createElement("code",{id:"sandbox-domain-badge",onClick:this.testConnection,onKeyDown:this.testConnection,role:"button",tabIndex:0,title:`Sandboxing via ${t}. Click to test connection.`},"API Sandboxed"):"";return o().createElement("div",{className:"jp-masthead"},o().createElement("div",{className:"jp-masthead__inside-container"},o().createElement("div",{className:"jp-masthead__logo-container"},o().createElement("a",{onClick:this.trackLogoClick,className:"jp-masthead__logo-link",href:"#dashboard"},o().createElement(c.Z,{className:"jetpack-logo__masthead"})),r,i),e&&o().createElement(u.e,{location:this.props.location})))}}t.Z=(0,a.$j)((e=>({isWoASite:(0,p.Pw)(e),sandboxDomain:(0,d.LN)(e),siteConnectionStatus:(0,d.Gz)(e)})),(e=>({testConnection:()=>e((0,d.SG)())})))(h)},10958:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(65736),l=n(11973),u=n(9913),p=n(60742),d=n(41147),h=n(82649),f=n(41922),m=n(27279);const __=c.__,_x=c._x;class g extends o().Component{constructor(){super(...arguments),i()(this,"state",{showModal:!1}),i()(this,"handleOpenModal",(e=>{e.preventDefault(),l.Z.tracks.recordJetpackClick("login_to_mobile_app_modal"),this.toggleModalVisibility()})),i()(this,"toggleModalVisibility",(()=>{this.setState({showModal:!this.state.showModal})})),i()(this,"clickSendLoginEmail",(e=>{e.preventDefault(),l.Z.tracks.recordJetpackClick("login_to_mobile_send_link"),this.toggleModalVisibility(),this.props.sendMobileLoginEmail()}))}renderModal(){return o().createElement(h.Z,{className:"mobile-magic-link__modal",onRequestClose:this.toggleModalVisibility},o().createElement(p.Z,{className:"mobile-magic-link__modal__body"},o().createElement("h2",null,__("Email me a link to log in to the app","jetpack")),o().createElement("h4",null,__("Easily log in to the WordPress app by clicking the link we'll send to the email address on your account.","jetpack")),o().createElement("div",{className:"mobile-magic-link__modal-actions"},o().createElement(u.Z,{className:"mobile-magic-link__modal-cancel",onClick:this.toggleModalVisibility},_x("Cancel","A caption for a button to cancel an action.","jetpack")),o().createElement(u.Z,{onClick:this.clickSendLoginEmail,primary:!0},_x("Send link","A caption for a button to log in to the WordPress mobile app.","jetpack")))))}render(){const{showModal:e}=this.state;return o().createElement("div",{className:"mobile-magic-link"},o().createElement("a",{className:"mobile-magic-link__button",onClick:this.handleOpenModal,onKeyDown:(0,f.Z)(this.handleOpenModal),role:"button",tabIndex:"0"},__("Log in to the WordPress mobile app","jetpack")),e&&this.renderModal())}}i()(g,"displayName","MobileMagicLink"),t.Z=(0,a.$j)((e=>({isSiteConnected:(0,d.Gz)(e),isLinked:(0,d.BU)(e)})),{sendMobileLoginEmail:m.u})(g)},82649:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(11268),c=n.n(a),l=n(99196),u=n.n(l),p=n(91850),d=n.n(p),h=n(89105),f=n.n(h),m=n(92819),g=n(18282);let v=!1;class b extends u().Component{constructor(){super(...arguments),o()(this,"state",{overlayMouseDown:!1}),o()(this,"handleEscapeKey",(e=>{27===e.keyCode&&this.maybeClose()})),o()(this,"maybeClose",(()=>{this.props.onRequestClose&&!v&&this.props.onRequestClose()})),o()(this,"handleMouseDownOverlay",(e=>{e.preventDefault(),e.stopPropagation(),this.setState({overlayMouseDown:!0})})),o()(this,"handleClickOverlay",(e=>{e.preventDefault(),e.stopPropagation(),this.state.overlayMouseDown&&this.props.onRequestClose&&!v&&(this.setState({overlayMouseDown:!1}),this.props.onRequestClose())})),o()(this,"handleMouseEventModal",(e=>{e.stopPropagation()}))}componentDidMount(){jQuery("body").addClass("dops-modal-showing").on("touchmove.dopsmodal",!1),jQuery(document).keyup(this.handleEscapeKey);try{this.focusTrap=(0,g.v)(d().findDOMNode(this)),this.focusTrap.activate({initialFocus:this.props.initialFocus})}catch(e){}}componentWillUnmount(){jQuery("body").removeClass("dops-modal-showing").off("touchmove.dopsmodal",!1),jQuery(document).unbind("keyup",this.handleEscapeKey);try{this.focusTrap.deactivate()}catch(e){}}render(){let e;const{style:t,className:n,width:r,title:s,...o}=this.props,{forwardedProps:a}=(0,m.omit)(o,"onRequestClose");switch(r){case"wide":e={maxWidth:"inherit",width:"inherit"};break;case"medium":e={maxWidth:1050,width:"inherit"};break;default:e={}}const c=(0,m.assign)({},t,e);return u().createElement("div",{className:"dops-modal-wrapper",onClick:this.handleClickOverlay,onMouseDown:this.handleMouseDownOverlay},u().createElement("div",i()({className:f()("dops-modal",n),style:c,onClick:this.handleMouseEventModal,onMouseDown:this.handleMouseEventModal,onMouseUp:this.handleMouseEventModal,role:"dialog","aria-label":s},a),this.props.children))}}o()(b,"propTypes",{style:c().object,width:c().oneOf(["wide","medium","narrow"]),className:c().string,title:c().string,initialFocus:c().string,onRequestClose:c().func}),o()(b,"defaultProps",{style:{}}),b.preventClose=function(){v=!0},b.allowClose=function(){v=!1},t.Z=b},53263:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(89105),u=n.n(l),p=n(69307),d=n(65736),h=n(71415),f=n(85253);const __=d.__;class m extends f.Z{render(){if(!this.props.moduleName)return null;const e=u()("module-overridden-banner",{"is-compact":this.props.compact});return o().createElement(f.Z,{className:e,title:this.props.moduleName,icon:"cog",description:(0,p.createInterpolateElement)((0,d.sprintf)(
/* translators: placeholder is a feature name. */
__("%s has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),this.props.moduleName),{link:o().createElement("a",{href:(0,h.Z)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer"})})})}}i()(m,"propTypes",{moduleName:c().string.isRequired}),t.Z=m},7179:function(e,t,n){"use strict";n.d(t,{l:function(){return u}});var r=n(2620),i=n(92819),s=n(65736),o=n(93107),a=n(17752),c=n(66552),l=n(41147);const __=s.__;function u(e){return(0,r.$j)(((e,t)=>({validValues:function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"string"==typeof(0,i.get)(t,["module","module"])&&(r=t.module.module),(0,o.R9)(e,r,n)},getOptionCurrentValue:(t,n)=>(0,o.C5)(e,t,n),getSettingCurrentValue:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,a.$8)(e,t,n)},getSiteRoles:()=>(0,c.Td)(e),isUpdating:t=>(0,a.Cu)(e,t),adminEmailAddress:(0,c.je)(e),currentIp:(0,c.de)(e),siteAdminUrl:(0,c.wW)(e),isCurrentUserLinked:(0,l.BU)(e)})),(e=>({updateOptions:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e((0,a.VP)(t,n))},regeneratePostByEmailAddress:()=>{const t={progress:__("Updating Post by Email address…","jetpack"),success:__("Regenerated Post by Email address.","jetpack"),error:e=>(0,s.sprintf)(
/* translators: placeholder is an error message. */
__("Error regenerating Post by Email address. %s","jetpack"),e)};return e((0,a.VP)({post_by_email_address:"regenerate"},t))},setUnsavedSettingsFlag:()=>e((0,a.a6)()),clearUnsavedSettingsFlag:()=>e((0,a._1)()),refreshSettings:()=>e((0,a.wv)())})))(e)}},5e4:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(11973),u=n(92819),p=n(7179);function d(e){class t extends c().Component{constructor(){var e;super(...arguments),e=this,o()(this,"state",{options:{}}),o()(this,"onOptionChange",(e=>{const t=e.target.name;let n;n="checkbox"===e.target.type&&void 0!==e.target.checked?e.target.checked:e.target.value,this.updateFormStateOptionValue(t,n)})),o()(this,"updateFormStateOptionValue",(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;"string"==typeof t&&(t={[t]:n});const r={...e.state.options,...t};return e.setState({options:r}),!0})),o()(this,"resetFormStateOption",(e=>(this.setState({options:(0,u.omit)(this.state.options,[e])}),!0))),o()(this,"updateFormStateModuleOption",(function(t,n){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.trackSettingsToggle(t,n,!e.getOptionValue(n)),e.getOptionValue(t)?r?e.props.updateOptions({[t]:!1,[n]:!e.getOptionValue(n)}):e.props.updateOptions({[n]:!e.getOptionValue(n)}):e.props.updateOptions({[t]:!0,[n]:!0})})),o()(this,"toggleModuleNow",(e=>{this.props.updateOptions({[e]:!this.getOptionValue(e)})})),o()(this,"onSubmit",(e=>{e.preventDefault(),this.props.updateOptions(this.state.options).then((()=>{const e={};(0,u.each)(this.state.options,((t,n)=>{n=n.replace(/\-/,"_"),e[n]=t})),this.trackFormSubmission(e),this.setState({options:{}})})).then((()=>{this.props.refreshSettings(),this.props.clearUnsavedSettingsFlag()}))})),o()(this,"getOptionValue",(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,u.get)(e.state.options,t,e.props.getSettingCurrentValue(t,n))})),o()(this,"shouldSaveButtonBeDisabled",(()=>this.isSavingAnyOption()||!this.isDirty())),o()(this,"isDirty",(()=>!!Object.keys(this.state.options).length)),o()(this,"isSavingAnyOption",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.props.isUpdating(t)})),o()(this,"trackFormSubmission",(e=>{l.Z.tracks.recordEvent("jetpack_wpa_settings_form_submit",e)})),o()(this,"trackSettingsToggle",((e,t,n)=>{l.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:e,setting:t,toggled:n?"on":"off"})}))}componentDidUpdate(){this.isDirty()&&this.props.setUnsavedSettingsFlag()}render(){return c().createElement(e,i()({getOptionValue:this.getOptionValue,onSubmit:this.onSubmit,onOptionChange:this.onOptionChange,updateFormStateOptionValue:this.updateFormStateOptionValue,toggleModuleNow:this.toggleModuleNow,updateFormStateModuleOption:this.updateFormStateModuleOption,shouldSaveButtonBeDisabled:this.shouldSaveButtonBeDisabled,isSavingAnyOption:this.isSavingAnyOption,isDirty:this.isDirty,resetFormStateOption:this.resetFormStateOption},this.props))}}return(0,p.l)(t)}},77222:function(e,t,n){"use strict";n.d(t,{T:function(){return v}});var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(69307),p=n(65736),d=n(71415),h=n(11973),f=n(94069),m=n(93107);const __=p.__;class g extends s.Component{constructor(){super(...arguments),i()(this,"toggleModule",(()=>(this.trackModuleToggle(this.props.slug,this.props.activated),this.props.toggleModule(this.props.slug,this.props.activated)))),i()(this,"trackModuleToggle",((e,t)=>{"stats"!==e&&h.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:e,toggled:t?"off":"on"})})),i()(this,"isDisabledByOverride",(()=>{const e=this.props.getModuleOverride(this.props.slug);return this.props.overrideCondition?this.props.overrideCondition===e:!!e})),i()(this,"getDisabledReason",(()=>{if(!this.isDisabledByOverride())return null;const e=this.props.getModuleOverride(this.props.slug),t={link:o().createElement("a",{href:(0,d.Z)("jetpack-support-module-overrides"),target:"_blank",rel:"noopener noreferrer",style:{textDecoration:"underline"}})};switch(e){case"active":return(0,u.createInterpolateElement)(__("This feature has been enabled by a site administrator. <link>Learn more</link>.","jetpack"),t);case"inactive":return(0,u.createInterpolateElement)(__("This feature has been disabled by a site administrator. <link>Learn more</link>.","jetpack"),t);default:return(0,u.createInterpolateElement)(__("This feature is being managed by a site administrator. <link>Learn more</link>.","jetpack"),t)}}))}render(){return o().createElement(f.Z,{checked:this.props.activated||this.props.isModuleActivated,toggling:this.props.toggling,className:this.props.className,disabled:this.props.disabled||this.isDisabledByOverride(),id:this.props.id,onChange:this.toggleModule,disabledReason:this.getDisabledReason(),"aria-label":this.props["aria-label"]},this.props.children)}}i()(g,"displayName","ModuleToggle"),i()(g,"propTypes",{toggleModule:c().func,activated:c().bool,disabled:c().bool,className:c().string,compact:c().bool,id:c().string,overrideCondition:c().string}),i()(g,"defaultProps",{activated:!1,disabled:!1,overrideCondition:""});const v=(0,l.$j)((e=>({getModuleOverride:t=>(0,m.Qy)(e,t)})))(g)},8582:function(e,t,n){"use strict";n.d(t,{B:function(){return s}});var r=n(99196),i=n.n(r);const s=i().createElement("svg",{width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0862 0.22949C10.7536 -0.0764963 10.2464 -0.0764967 9.9138 0.229489L7.7667 2.20503C7.59755 2.36066 7.37497 2.44281 7.14676 2.43386L4.24981 2.32013C3.80111 2.30252 3.41252 2.63319 3.35171 3.08438L2.95909 5.99736C2.92816 6.22684 2.80973 6.43486 2.62923 6.57677L0.337958 8.37807C-0.0169309 8.65707 -0.105018 9.1637 0.134374 9.54896L1.67996 12.0364C1.80172 12.2323 1.84285 12.4689 1.79452 12.6952L1.18104 15.5687C1.08602 16.0138 1.33965 16.4593 1.76723 16.5984L4.52782 17.4963C4.7453 17.5671 4.92675 17.7215 5.03321 17.9264L6.38456 20.5275C6.59387 20.9304 7.07055 21.1064 7.48625 20.9342L10.1701 19.8225C10.3816 19.7349 10.6184 19.7349 10.8299 19.8225L13.5137 20.9342C13.9294 21.1064 14.4061 20.9304 14.6154 20.5275L15.9668 17.9264C16.0733 17.7215 16.2547 17.5671 16.4722 17.4963L19.2328 16.5984C19.6603 16.4593 19.914 16.0138 19.819 15.5687L19.2055 12.6953C19.1572 12.4689 19.1983 12.2323 19.32 12.0364L20.8656 9.54896C21.105 9.1637 21.0169 8.65707 20.662 8.37807L18.3708 6.57677C18.1903 6.43486 18.0718 6.22684 18.0409 5.99736L17.6483 3.08438C17.5875 2.63319 17.1989 2.30252 16.7502 2.32013L13.8532 2.43386C13.625 2.44281 13.4024 2.36066 13.2333 2.20503L11.0862 0.22949ZM8.76611 14H7.15771V9.11328H7.07422L5.54492 10.146V8.75732L7.15771 7.65869H8.76611V14ZM14.2072 14H12.6823V12.9189H9.56662V11.7017C10.3401 10.2822 11.1443 8.95068 11.966 7.65869H14.2072V11.6621H14.9983V12.9189H14.2072V14ZM10.9641 11.6401V11.7192H12.7219V8.81006H12.6428C12.0759 9.69336 11.4738 10.6865 10.9641 11.6401Z",fill:"black"}))},95554:function(e,t,n){"use strict";n.d(t,{N:function(){return c}});var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(8582);const c=e=>{let{text:t}=e;return i().createElement("div",{className:"jetpack-money-back-guarantee"},i().createElement("div",{className:"jetpack-money-back-guarantee__icon"},a.B),i().createElement("div",{className:"jetpack-money-back-guarantee__text"},t))};c.propTypes={text:o().string.isRequired}},83371:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(7767),c=n.n(a),l=n(2620),u=n(92819),p=n(12901),d=n(65736),h=n(11973),f=n(19555),m=n(41147),g=n(93107),v=n(61744),b=n(67939),y=n(17840),k=n(15142),w=n(67448),_=n(91592),E=n(71064),C=n(66552);const __=d.__,_x=d._x,S=c()({displayName:"NavigationSettings",mixins:[E.Z],UNSAFE_componentWillMount(){this.onRouteChange(this.props.location),this.props.history.listen(this.onRouteChange)},onRouteChange(e){const t=(e.search||"").substr(1).split("&").filter((e=>0===e.indexOf("term=")));let n="";t.length>0&&(n=t[0].split("=")[1]),this.props.searchForTerm(decodeURIComponent(n))},maybeShowSearch(){if(this.props.userCanManageModules)return i().createElement(w.Z,{onClick:this.handleClickForTracking("search"),pinned:!0,fitsContainer:!0,placeholder:__("Search for a Jetpack feature.","jetpack"),delaySearch:!0,delayTimeout:500,onSearch:this.doSearch,isOpen:!!this.props.searchTerm,initialValue:this.props.searchTerm})},trackNavClick(e){h.Z.tracks.recordJetpackClick({target:"nav_item",path:e})},buildUrl:function(e,t){const n=e.split("#")[1].split("?");return this.props.searchForTerm(t),"#"+n[0]+(t?"?term="+t:"")},handleClickForTracking(e){return()=>this.trackNavClick(e)},render:function(){let e,t,n;return this.props.userCanManageModules?e=i().createElement(b.Z,{selectedText:this.props.routeName},this.props.hasAnySecurityFeature&&i().createElement(y.Z,{path:"#security",onClick:this.handleClickForTracking("security"),selected:"/security"===this.props.location.pathname||"/settings"===this.props.location.pathname},_x("Security","Navigation item.","jetpack")),this.props.hasAnyPerformanceFeature&&i().createElement(y.Z,{path:"#performance",onClick:this.handleClickForTracking("performance"),selected:"/performance"===this.props.location.pathname},_x("Performance","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["masterbar","markdown","custom-content-types","post-by-email","infinite-scroll","copy-post"])&&i().createElement(y.Z,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},_x("Writing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["publicize","sharedaddy","likes"])&&i().createElement(y.Z,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname},_x("Sharing","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["comments","gravatar-hovercards","markdown","subscriptions"])&&i().createElement(y.Z,{path:"#discussion",onClick:this.handleClickForTracking("discussion"),selected:"/discussion"===this.props.location.pathname},_x("Discussion","Navigation item.","jetpack")),this.props.hasAnyOfTheseModules(["seo-tools","wordads","stats","related-posts","verification-tools","sitemaps","google-analytics"])&&i().createElement(y.Z,{path:"#traffic",onClick:this.handleClickForTracking("traffic"),selected:"/traffic"===this.props.location.pathname},_x("Traffic","Navigation item.","jetpack"))):this.props.isSubscriber?e=!1:(t=this.props.isModuleActivated("publicize")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["publicize"])&&i().createElement(y.Z,{path:"#sharing",onClick:this.handleClickForTracking("sharing"),selected:"/sharing"===this.props.location.pathname||"/settings"===this.props.location.pathname},_x("Sharing","Navigation item.","jetpack")):"",n=this.props.isModuleActivated("post-by-email")&&this.props.userCanPublish?this.props.hasAnyOfTheseModules(["post-by-email"])&&i().createElement(y.Z,{path:"#writing",onClick:this.handleClickForTracking("writing"),selected:"/writing"===this.props.location.pathname},_x("Writing","Navigation item.","jetpack")):"",e=i().createElement(b.Z,{selectedText:this.props.routeName},n,t)),i().createElement("div",{id:"jp-navigation",className:"dops-navigation"},i().createElement(k.Z,null),i().createElement(_.Z,{selectedText:this.props.routeName},e,this.maybeShowSearch()))}});S.propTypes={userCanManageModules:o().bool.isRequired,isSubscriber:o().bool.isRequired,userCanPublish:o().bool.isRequired,isLinked:o().bool.isRequired,isSiteConnected:o().bool.isRequired,isModuleActivated:o().func.isRequired,searchHasFocus:o().bool.isRequired,location:o().object.isRequired},S.defaultProps={userCanManageModules:!1,isSubscriber:!1,userCanPublish:!1,isLinked:!1,isSiteConnected:!1,isModuleActivated:u.noop,searchHasFocus:!1},t.Z=(0,l.$j)((e=>({hasAnyOfTheseModules:t=>(0,g.og)(e,t),hasAnyPerformanceFeature:(0,g.zc)(e),hasAnySecurityFeature:(0,g.Su)(e),userCanManageModules:(0,C.pK)(e),isSubscriber:(0,C.dc)(e),userCanPublish:(0,C.D6)(e),isLinked:(0,m.BU)(e),isSiteConnected:(0,m.q7)(e),isModuleActivated:t=>(0,g.mp)(e,t),moduleList:(0,g.hU)(e),isPluginActive:t=>(0,v.TB)(e,t),searchTerm:(0,f.He)(e)})),(e=>({searchForTerm:t=>e((0,f.eb)(t))})))((0,p.EN)(S))},41776:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(12901),p=n(65736),d=n(71415),h=n(11973),f=n(41147),m=n(93107),g=n(67939),v=n(17840),b=n(91592),y=n(66552);const _x=p._x;class k extends o().Component{constructor(){super(...arguments),i()(this,"trackNavClick",(e=>{h.Z.tracks.recordJetpackClick({target:"nav_item",path:e})})),i()(this,"trackDashboardClick",(()=>{this.trackNavClick("dashboard")})),i()(this,"trackMyPlanClick",(()=>{this.trackNavClick("my-plan")})),i()(this,"trackPlansClick",(()=>{this.trackNavClick("plans")})),i()(this,"trackRecommendationsClick",(()=>{this.trackNavClick("recommendations")}))}render(){let e;const t=(0,d.Z)(this.props.hasConnectedOwner?"jetpack-plans":"jetpack-nav-site-only-plans",{site:this.props.siteUrl,...this.props.purchaseToken?{query:`purchasetoken=${this.props.purchaseToken}`}:{}});return e=this.props.userCanManageModules?o().createElement(g.Z,{selectedText:this.props.routeName},o().createElement(v.Z,{path:"#/dashboard",onClick:this.trackDashboardClick,selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},_x("At a Glance","Navigation item.","jetpack")),!this.props.isOfflineMode&&this.props.isLinked&&o().createElement(v.Z,{path:"#/my-plan",onClick:this.trackMyPlanClick,selected:"/my-plan"===this.props.location.pathname},_x("My Plan","Navigation item.","jetpack")),!this.props.isOfflineMode&&o().createElement(v.Z,{path:t,onClick:this.trackPlansClick,selected:"/plans"===this.props.location.pathname},_x("Plans","Navigation item.","jetpack")),this.props.showRecommendations&&o().createElement(v.Z,{path:"#/recommendations",onClick:this.trackRecommendationsClick,selected:this.props.location.pathname.startsWith("/recommendations")},_x("Recommendations","Navigation item.","jetpack"))):o().createElement(g.Z,{selectedText:this.props.routeName},o().createElement(v.Z,{path:"#/dashboard",selected:"/dashboard"===this.props.location.pathname||"/"===this.props.location.pathname},_x("At a Glance","Navigation item.","jetpack"))),o().createElement("div",{id:"jp-navigation",className:"dops-navigation"},o().createElement(b.Z,{selectedText:this.props.routeName},e))}}k.propTypes={routeName:c().string.isRequired,isOfflineMode:c().bool},t.Z=(0,l.$j)((e=>({userCanManageModules:(0,y.pK)(e),userCanViewStats:(0,y.px)(e),isModuleActivated:t=>(0,m.mp)(e,t),isOfflineMode:(0,f.Ex)(e),isLinked:(0,f.BU)(e),hasConnectedOwner:(0,f.it)(e),showRecommendations:(0,y.mb)(e),siteUrl:(0,y.JR)(e),purchaseToken:(0,y.as)(e)})))((0,u.EN)(k))},64296:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(66552),p=n(93107),d=n(41776),h=n(83371),f=n(86428),m=n(7507),g=n(41147);class v extends c().Component{constructor(){super(...arguments),i()(this,"renderMainContent",(e=>{let t,n=c().createElement(d.Z,this.props);switch(e){default:this.props.history.replace("/dashboard"),t=c().createElement(f.Z,this.props);break;case"/settings":case"/writing":case"/sharing":case"/performance":this.props.isSubscriber||(n=c().createElement(h.Z,this.props),t=c().createElement(m.Z,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm,userCanManageModules:this.props.userCanManageModules}))}return window.wpNavMenuClassChange(),c().createElement("div",null,n,t)}))}shouldComponentUpdate(e){return e.siteConnectionStatus!==this.props.siteConnectionStatus||e.location.pathname!==this.props.location.pathname}render(){return this.renderMainContent(this.props.location.pathname)}}v.propTypes={userCanViewStats:o().bool.isRequired,isSubscriber:o().bool.isRequired,siteConnectionStatus:o().any.isRequired},t.Z=(0,l.$j)((e=>({userCanViewStats:(0,u.px)(e),siteConnectionStatus:(0,g.Gz)(e),isSubscriber:(0,u.dc)(e),isModuleActivated:t=>(0,p.mp)(e,t),userCanManageModules:(0,u.pK)(e)})))(v)},88001:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819),d=n(41922),h=n(22256);class f extends c().Component{constructor(){super(...arguments),i()(this,"dismissTimeout",null),i()(this,"getIcon",(()=>{let e;switch(this.props.status){default:e="info";break;case"is-success":e="checkmark";break;case"is-error":case"is-warning":e="notice"}return e})),i()(this,"clearText",(e=>"string"==typeof e?e.replace(/(<([^>]+)>)/gi,""):e))}componentDidMount(){this.props.duration>0&&(this.dismissTimeout=setTimeout(this.props.onDismissClick,this.props.duration))}componentWillUnmount(){this.dismissTimeout&&clearTimeout(this.dismissTimeout)}render(){const{children:e,className:t,icon:n,isCompact:r,onDismissClick:i,showDismiss:s=!r,status:o,text:a,dismissText:l}=this.props,p=u()("dops-notice",o,t,{"is-compact":r,"is-dismissable":s});return c().createElement("div",{className:p},c().createElement("span",{className:"dops-notice__icon-wrapper"},c().createElement(h.Z,{className:"dops-notice__icon",icon:n||this.getIcon(),size:24})),c().createElement("span",{className:"dops-notice__content"},c().createElement("span",{className:"dops-notice__text"},a?this.clearText(a):e)),a?e:null,s&&c().createElement("span",{role:"button",onKeyDown:(0,d.Z)(i),tabIndex:"0",className:"dops-notice__dismiss",onClick:i},c().createElement(h.Z,{icon:"cross",size:24}),c().createElement("span",{className:"dops-notice__screen-reader-text screen-reader-text"},l)))}}i()(f,"displayName","SimpleNotice"),i()(f,"defaultProps",{duration:0,status:null,showDismiss:!0,className:"",onDismissClick:p.noop}),i()(f,"propTypes",{status:o().string,showDismiss:o().bool,isCompact:o().bool,duration:o().number,text:o().oneOfType([o().oneOfType([o().string,o().node]),o().arrayOf(o().oneOfType([o().string,o().node]))]),icon:o().string,onDismissClick:o().func,className:o().string})},51933:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(22256);class u extends c().Component{render(){const e={className:"dops-notice__action",href:this.props.href,onClick:this.props.onClick};return this.props.external&&(e.target="_blank"),c().createElement("a",e,c().createElement("span",null,this.props.children),this.props.icon&&c().createElement(l.Z,{icon:this.props.icon,size:24}),this.props.external&&c().createElement(l.Z,{icon:"external",size:24}))}}i()(u,"displayName","NoticeAction"),i()(u,"propTypes",{href:o().string,onClick:o().func,external:o().bool,icon:o().string}),i()(u,"defaultProps",{external:!1})},28865:function(e,t,n){"use strict";n.d(t,{Y:function(){return i}});var r=n(34885);const i=e=>{const t=(0,r.X)();return new Intl.NumberFormat(t).format(e)}},3218:function(e,t,n){"use strict";n.d(t,{Z:function(){return u}});var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(98486),c=n(81200);const l={[c._d]:"/plans/wpcom-free.svg",[c.sy]:"/plans/wpcom-personal.svg",[c.Qm]:"/plans/wpcom-personal.svg",[c.wm]:"/plans/wpcom-personal.svg",[c.xf]:"/plans/wpcom-premium.svg",[c.G6]:"/plans/wpcom-premium.svg",[c.OE]:"/plans/wpcom-premium.svg",[c.p7]:"/plans/wpcom-business.svg",[c.j2]:"/plans/wpcom-business.svg",[c.Wg]:"/plans/wpcom-business.svg",[c.JA]:"/plans/wpcom-ecommerce.svg",[c.f3]:"/plans/wpcom-ecommerce.svg",[c.lv]:"/plans/wpcom-ecommerce.svg",[c.uz]:"/plans/wpcom-ecommerce.svg",[c.Ij]:"/products/product-jetpack-search.svg",[c.un]:"/products/product-jetpack-search.svg",[c.tV]:"/products/product-jetpack-backup.svg",[c.XL]:"/products/product-jetpack-backup.svg",[c.LA]:"/products/product-jetpack-backup.svg",[c.Us]:"/products/product-jetpack-backup.svg",[c.WS]:"/products/product-jetpack-scan.svg",[c.tl]:"/products/product-jetpack-scan.svg",[c.sh]:"/products/product-jetpack-anti-spam.svg",[c.vS]:"/products/product-jetpack-anti-spam.svg",[c.dW]:"/products/product-jetpack-search.svg",[c.ux]:"/products/product-jetpack-search.svg",[c.lj]:"/plans/jetpack-free.svg",[c.ap]:"/plans/jetpack-personal.svg",[c.mg]:"/plans/jetpack-personal.svg",[c.Xz]:"/plans/jetpack-premium.svg",[c.p2]:"/plans/jetpack-premium.svg",[c.NJ]:"/plans/jetpack-professional.svg",[c.yY]:"/plans/jetpack-professional.svg",[c.Et]:"/plans/jetpack-security.svg",[c.w2]:"/plans/jetpack-security.svg",[c.b6]:"/plans/jetpack-security.svg",[c.aS]:"/plans/jetpack-security.svg",[c.th]:"/plans/jetpack-complete.svg",[c.JX]:"/plans/jetpack-complete.svg",[c.v_]:"/products/product-jetpack-videopress.svg",[c.Bi]:"/products/product-jetpack-videopress.svg",[c.np]:"/products/product-jetpack-backup.svg",[c.ic]:"/products/product-jetpack-backup.svg",[c.sT]:"/products/product-jetpack-backup.svg",[c.ah]:"/products/product-jetpack-backup.svg",[c.Vl]:"/plans/jetpack-security.svg",[c.Dl]:"/plans/jetpack-security.svg",[c.jI]:"/plans/jetpack-security.svg",[c.bm]:"/plans/jetpack-security.svg"};class u extends s.Component{render(){const{className:e,alt:t,plan:n}=this.props;return o().createElement("img",{className:e,src:a.hp+l[n],width:32,height:32,alt:t||""})}}u.propTypes={classNames:i().string,alt:i().string,plan:i().oneOf([c._d,c.sy,c.Qm,c.wm,c.xf,c.G6,c.OE,c.p7,c.j2,c.Wg,c.JA,c.f3,c.lv,c.uz,c.Ij,c.un,c.tV,c.XL,c.LA,c.Us,c.WS,c.tl,c.sh,c.vS,c.dW,c.ux,c.lj,c.ap,c.mg,c.Xz,c.p2,c.NJ,c.yY,c.Et,c.w2,c.b6,c.aS,c.th,c.JX,c.np,c.ic,c.sT,c.ah,c.Vl,c.Dl,c.jI,c.bm]).isRequired}},39007:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(2620),o=n(11268),a=n.n(o),c=n(99196),l=n.n(c),u=n(19570),p=n(65736),d=n(55609),h=n(61744),f=n(11973),m=n(60742),g=n(85253),v=n(35303);const __=p.__;class b extends c.Component{constructor(){super(...arguments),i()(this,"state",{isActivating:!1,isInstalling:!1}),i()(this,"activateOrInstallPlugin",(()=>{const{fetchPluginsData:e,pluginIsActive:t,pluginIsInstalled:n,pluginSlug:r}=this.props;if(n)if(t){if(n&&t)return Promise.resolve()}else this.setState({isActivating:!0});else this.setState({isInstalling:!0});return f.Z.tracks.recordJetpackClick({target:"plugin_dash_item",type:n?"install":"activate",feature:r}),u.ZP.installPlugin(r,"active").then((()=>new Promise((e=>setTimeout(e,2500))))).then((()=>e())).finally((()=>{this.setState({isActivating:!1,isInstalling:!1})}))}))}renderContent(){const{iconAlt:e,iconSrc:t,isFetchingPluginsData:n,pluginLink:r,pluginName:i,pluginIsActive:s,pluginIsInstalled:o,installOrActivatePrompt:a}=this.props,{isInstalling:c,isActivating:u}=this.state;return n?l().createElement(m.Z,{className:"plugin-dash-item__content"},l().createElement("p",null,__("Loading…","jetpack"))):c?l().createElement(m.Z,{className:"plugin-dash-item__content"},l().createElement(d.Spinner,null),l().createElement("p",null,(0,p.sprintf)(
/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */
__("Installing %s","jetpack"),i))):u?l().createElement(m.Z,{className:"plugin-dash-item__content"},l().createElement(d.Spinner,null),l().createElement("p",null,(0,p.sprintf)(
/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */
__("Activating %s","jetpack"),i))):o?s?l().createElement(g.Z,{callToAction:(0,p.sprintf)(
/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */
__("Manage %s","jetpack"),i),icon:t?void 0:"plugins",iconAlt:e,iconSrc:t,title:__("Plugin is installed & active.","jetpack"),href:r}):l().createElement(g.Z,{callToAction:(0,p.sprintf)(
/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */
__("Activate %s","jetpack"),i),icon:t?void 0:"plugins",iconAlt:e,iconSrc:t,title:a,onClick:this.activateOrInstallPlugin}):l().createElement(g.Z,{callToAction:(0,p.sprintf)(
/* translators: "%s" is the name of the plugin. i.e. Boost, CRM, etc. */
__("Install %s","jetpack"),i),icon:t?void 0:"plugins",iconAlt:e,iconSrc:t,title:a,onClick:this.activateOrInstallPlugin})}render(){const{pluginName:e}=this.props;return l().createElement("div",{className:"plugin-dash-item"},l().createElement(v.Z,{className:"plugin-dash-item__section-header",label:e}),this.renderContent())}}i()(b,"propTypes",{pluginName:a().string.isRequired,pluginFile:a().string.isRequired,pluginSlug:a().string.isRequired,pluginLink:a().string.isRequired,installOrActivatePrompt:a().element.isRequired,iconAlt:a().string,iconSrc:a().string,isFetchingPluginsData:a().bool,pluginIsActive:a().bool,pluginIsInstalled:a().bool}),t.Z=(0,s.$j)(((e,t)=>({isFetchingPluginsData:(0,h.vz)(e),pluginIsInstalled:(0,h.P8)(e,t.pluginFile),pluginIsActive:(0,h.TB)(e,t.pluginFile)})),(e=>({fetchPluginsData:()=>e((0,h.s4)())})))(b)},40515:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(91850),u=n.n(l),p=n(90922),d=n.n(p),h=n(89105),f=n.n(h),m=n(26767),g=n.n(m),v=n(97236),b=n.n(v),y=n(92819),k=n(16291),w=n(7719);const _=d()("calypso:popover"),E=new Set;class C extends a.Component{constructor(e){super(e),this.setPopoverId(e.id),this.setDOMBehavior=this.setDOMBehavior.bind(this),this.setPosition=this.setPosition.bind(this),this.onClickout=this.onClickout.bind(this),this.onKeydown=this.onKeydown.bind(this),this.onWindowChange=this.onWindowChange.bind(this),this.state={show:e.isVisible,left:-99999,top:-99999,positionClass:this.getPositionClass(e.position)}}componentDidMount(){this.bindEscKeyListener(),this.bindDebouncedReposition(),(0,w.fN)()}UNSAFE_componentWillReceiveProps(e){if((0,w.kK)(e.context)?this.domContext=e.context:this.domContext=u().findDOMNode(e.context),!e.isVisible)return null;this.setPosition()}componentDidUpdate(e){const{isVisible:t}=this.props;return t!==e.isVisible&&(t?this.show():this.hide()),this.domContainer&&this.domContext&&t&&t!==e.isVisible?(this.debug("Update position after render completes"),void setTimeout((()=>this.setPosition()),0)):null}componentWillUnmount(){this.debug("unmounting .... "),this.unbindClickoutHandler(),this.unbindDebouncedReposition(),this.unbindEscKeyListener(),(0,w.zR)(),E.delete(this.id),_("current popover instances: ",E.size)}bindEscKeyListener(){return this.props.closeOnEsc?this.escEventHandlerAdded?null:(this.debug("adding escKey listener ..."),this.escEventHandlerAdded=!0,void document.addEventListener("keydown",this.onKeydown,!0)):null}unbindEscKeyListener(){return this.props.closeOnEsc&&this.escEventHandlerAdded?(this.debug("unbinding `escKey` listener ..."),void document.removeEventListener("keydown",this.onKeydown,!0)):null}onKeydown(e){if(27!==e.keyCode)return null;this.close(!0)}bindClickoutHandler(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.domContainer;return e?this._clickoutHandlerReference?(this.debug("clickout event already bound"),null):(this.debug("binding `clickout` event"),void(this._clickoutHandlerReference=g()(e,this.onClickout))):(this.debug("no element to bind clickout side "),null)}unbindClickoutHandler(){this._clickoutHandlerReference&&(this.debug("unbinding `clickout` listener ..."),this._clickoutHandlerReference(),this._clickoutHandlerReference=null)}onClickout(e){let t=this.domContext&&this.domContext.contains&&!this.domContext.contains(e.target);if(this.props.ignoreContext&&t){const n=u().findDOMNode(this.props.ignoreContext);t=t&&n&&n.contains&&!n.contains(e.target)}t&&this.close()}bindDebouncedReposition(){window.addEventListener("scroll",this.onWindowChange,!0),window.addEventListener("resize",this.onWindowChange,!0)}unbindDebouncedReposition(){this.willReposition&&(window.cancelAnimationFrame(this.willReposition),this.willReposition=null),window.removeEventListener("scroll",this.onWindowChange,!0),window.removeEventListener("resize",this.onWindowChange,!0),this.debug("unbinding `debounce reposition` ...")}onWindowChange(){this.willReposition=window.requestAnimationFrame(this.setPosition)}setDOMBehavior(e){if(!e)return this.unbindClickoutHandler(),null;this.debug("setting DOM behavior"),this.bindClickoutHandler(e),this.domContainer=e,(0,w.kK)(this.props.context)?this.domContext=this.props.context:this.domContext=u().findDOMNode(this.props.context),this.domContainer.focus(),this.setPosition()}getPositionClass(){return`is-${(arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.position).replace(/\s+/g,"-")}`}computePosition(){if(!this.props.isVisible)return null;const{domContainer:e,domContext:t}=this,{position:n}=this.props;if(!e||!t)return this.debug("[WARN] no DOM elements to work"),null;let r=n;this.debug("position: %o",n),this.props.autoPosition&&(r=(0,w.X6)(n,e,t),this.debug("suggested position: %o",r));const i=(0,y.assign)({},(0,w.Ou)((0,w.cv)(r,e,t),e),{positionClass:this.getPositionClass(r)});return this.debug("updating reposition: ",i),i}debug(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];_(`[%s] ${e}`,this.id,...n)}setPopoverId(e){this.id=e||`pop__${b()(16)}`,E.add(this.id),this.debug("creating ..."),_("current popover instances: ",E.size)}setPosition(){const e=this.computePosition();if(!e)return null;this.willReposition=null,this.setState(e)}getStylePosition(){const{left:e,top:t}=this.state;return{left:e,top:t}}show(){if(!this.props.showDelay)return this.setState({show:!0}),null;this.debug("showing in %o",`${this.props.showDelay}ms`),this.clearShowTimer(),this._openDelayTimer=setTimeout((()=>{this.setState({show:!0})}),this.props.showDelay)}hide(){this.unbindClickoutHandler(),this.setState({show:!1}),this.clearShowTimer()}clearShowTimer(){if(!this._openDelayTimer)return null;clearTimeout(this._openDelayTimer),this._openDelayTimer=null}close(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.props.isVisible)return this.debug("popover should be already closed"),null;this.domContext.focus(),this.props.onClose(e)}render(){if(!this.state.show)return this.debug("is hidden. return no render"),null;if(!this.props.context)return this.debug("No `context` to tie. return no render"),null;const e=f()("dops-popover",this.props.className,this.state.positionClass);return this.debug("rendering ..."),c().createElement(k.Z,{className:this.props.rootClassName},c().createElement("div",{style:this.getStylePosition(),className:e,ref:this.setDOMBehavior},c().createElement("div",{className:"dops-popover__arrow"}),c().createElement("div",{className:"dops-popover__inner"},this.props.children)))}}i()(C,"propTypes",{autoPosition:o().bool,className:o().string,closeOnEsc:o().bool,id:o().string,ignoreContext:o().shape({getDOMNode:o().function}),position:o().string,rootClassName:o().string,showDelay:o().number,onClose:o().func.isRequired,onShow:o().func}),i()(C,"defaultProps",{autoPosition:!0,className:"dops-popover",closeOnEsc:!0,isVisible:!1,position:"top",showDelay:0,onShow:()=>{}}),t.Z=C},7719:function(e,t,n){"use strict";n.d(t,{Ou:function(){return v},fN:function(){return h},zR:function(){return f},X6:function(){return m},cv:function(){return g},kK:function(){return b}});var r=n(98707),i=n.n(r),s=n(90922);const o=n.n(s)()("calypso:popover:util");function a(){const e={};return e.top=window.scrollY,e.left=window.scrollX,e.width=window.innerWidth,e.height=window.innerHeight,e.right=e.left+e.width,e.bottom=e.top+e.height,o("viewport: %o",e),e}const c={top:"bottom",bottom:"top",left:"right",right:"left"},l={top:"right",left:"top",bottom:"left",right:"bottom"};let u=a();function p(){u=a()}let d=!1;const h=()=>{if(d)return o("window events already bound");d=!0,o("bind handlers to `resize` and `scroll` events"),window.addEventListener("resize",p,!0),window.addEventListener("scroll",p,!0)},f=()=>{if(!d)return o("window events are not bound");d=!1,o("unbind handlers to `resize` and `scroll` events"),window.removeEventListener("resize",p,!0),window.removeEventListener("scroll",p,!0)},m=(e,t,n)=>{const r=i()(n),s=t.clientHeight,o=t.clientWidth,a={top:r.top-s,bottom:u.height-r.bottom-s,left:r.left-o,right:u.width-r.right-o},p=e.split(/\s+/),[d]=p;let[,h]=p;const f=function(e,t){const n=[e,c[e],l[e],c[l[e]]];let r,i=-1/0;for(let s=0,o=n.length;s<o;s++){const o=n[s],a=t[o];if(a>0)return o;a>i&&(i=a,r=e)}return r}(d,a);return h!==f&&h!==c[f]||(h=null),function(e,t,n,r,i,s){const o=t?[e+" "+t,e,e+" "+c[t]]:[e,e+" "+l[e],e+" "+c[l[e]]];let a,p=0;const d=i*s;for(let e=0,t=o.length;e<t;e++){const t=o[e],c=g(t,n,r),l=c.left+i,h=c.top+s,f=Math.min(c.top<u.top?h-u.top:u.bottom-c.top,s),m=Math.min(c.left<u.left?l-u.left:u.right-c.left,i)*f;if(m===d)return t;m>p&&(p=m,a=t)}return a}(f,h,t,n,o,s)||e};function g(e,t,n){const r=i()(t);if(!r)throw new Error("could not get bounding client rect of Tip element");const s=r.width,o=r.height,a=i()(n);if(!a)throw new Error("could not get bounding client rect of `target`");const c=a.width,l=a.height,u=function(e,t){const n=t.body||t.getElementsByTagName("body")[0],r=t.documentElement||n.parentNode,i=r.clientTop||n.clientTop||0,s=r.clientLeft||n.clientLeft||0,o=window.pageYOffset||r.scrollTop,a=window.pageXOffset||r.scrollLeft;return{top:e.top+o-i,left:e.left+a-s}}(a,document);if(!u)throw new Error("could not determine page offset of `target`");let p={};switch(e){case"top":p={top:u.top-o,left:u.left+c/2-s/2};break;case"bottom":p={top:u.top+l,left:u.left+c/2-s/2};break;case"right":p={top:u.top+l/2-o/2,left:u.left+c};break;case"left":p={top:u.top+l/2-o/2,left:u.left-s};break;case"top left":p={top:u.top-o,left:u.left+c/2-s+15};break;case"top right":p={top:u.top-o,left:u.left+c/2-15};break;case"bottom left":p={top:u.top+l,left:u.left+c/2-s+15};break;case"bottom right":p={top:u.top+l,left:u.left+c/2-15};break;case"left top":p={top:u.top+l/2-o,left:u.left-s};break;case"left bottom":p={top:u.top+l/2,left:u.left-s};break;case"right top":p={top:u.top+l/2-o,left:u.left+c};break;case"right bottom":p={top:u.top+l/2,left:u.left+c};break;default:throw new Error(`invalid position "${e}"`)}return p}const v=function(e,t){const n=i()(t).width;return e.left=Math.max(0,Math.min(e.left,u.width-n)),e},b=e=>{try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}},87024:function(e,t,n){"use strict";n.d(t,{w:function(){return a}});var r=n(99196),i=n.n(r),s=n(65736),o=n(22256);const __=s.__,a=()=>i().createElement("div",{className:"jp-product-activated-label"},i().createElement(o.Z,{icon:"checkmark",size:20}),i().createElement("span",{className:"jp-product-activated-label__text"},__("Activated","jetpack")))},35179:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(65736),u=n(69771);const __=l.__;class p extends o().PureComponent{render(){const{expiryDate:e,purchaseDate:t,isRefundable:n,dateFormat:r}=this.props;if(!e&&!t)return null;if(!e||n){const e=new Date(t);return"Invalid Date"!==e.toString()?(0,l.sprintf)(
/* translators: placeholder is a date. */
__("Purchased on %s.","jetpack"),(0,u.dateI18n)(r,e)):null}const i=new Date(e);return"Invalid Date"===i.toString()?null:(0,u.isInTheFuture)(i)?(0,l.sprintf)(
/* translators: placeholder is a date. */
__("Renews on %s.","jetpack"),(0,u.dateI18n)(r,i)):(0,l.sprintf)(
/* translators: placeholder is a date. */
__("Expired on %s.","jetpack"),(0,u.dateI18n)(r,i))}}i()(p,"propTypes",{expiryDate:c().string,purchaseDate:c().string,isRefundable:c().bool,dateFormat:c().string}),i()(p,"defaultProps",{expiryDate:"",purchaseDate:"",isRefundable:!1,dateFormat:"F j, Y"}),t.Z=p},29733:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(11973),d=n(9913),h=n(60742),f=n(41147),m=n(82649);const __=u.__,_x=u._x;class g extends c().Component{constructor(){super(...arguments),i()(this,"shouldShowModal",(()=>{const{show:e}=this.props;return e&&this.props.isSiteConnected&&!this.props.isReconnectingSite})),i()(this,"closeModal",(()=>{this.props.onHide()})),i()(this,"clickReconnectSite",(e=>{e.preventDefault(),p.Z.tracks.recordJetpackClick("confirm_reconnect_modal"),this.props.reconnectSite(),this.closeModal()}))}render(){return this.shouldShowModal()&&c().createElement(m.Z,{className:"reconnect__modal",onRequestClose:this.closeModal},c().createElement(h.Z,{className:"reconnect__modal__body"},c().createElement("h2",null,__("Reconnect Jetpack","jetpack")),c().createElement("h4",null,__("You’ve clicked a link to restore your Jetpack connection.","jetpack")),c().createElement("h4",null,c().createElement("strong",null,__("You should only do this if advised by Site Health tests or Jetpack Support.","jetpack"))),c().createElement("h4",null,__("Click below to reconnect Jetpack","jetpack")),c().createElement("div",{className:"reconnect__modal-actions"},c().createElement(d.Z,{className:"reconnect__modal-cancel",onClick:this.closeModal},_x("Cancel","A caption for a button to cancel an action.","jetpack")),c().createElement(d.Z,{className:"reconnect__modal-reconnect",onClick:this.clickReconnectSite,primary:!0},_x("Reconnect Jetpack","A caption for a button to reconnect Jetpack.","jetpack")))))}}i()(g,"displayName","ReconnectModal"),i()(g,"propTypes",{show:o().bool,onHide:o().func}),i()(g,"defaultProps",{show:!1}),t.Z=(0,l.$j)((e=>({isSiteConnected:(0,f.q7)(e),isReconnectingSite:(0,f.O_)(e)})),(e=>({reconnectSite:()=>e((0,f.xK)())})))(g)},16291:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(27538),i=n.n(r),s=n(91850),o=n.n(s),a=n(11268),c=n.n(a),l=n(99196),u=n.n(l),p=n(2620);class d extends u().Component{constructor(){super(...arguments),i()(this,"renderChildren",(()=>{let e;e=this.props&&(Object.keys(this.props).length>1||!this.props.children)?u().createElement("div",this.props,this.props.children):this.props.children,this.context.store&&(e=u().createElement(p.zt,{store:this.context.store},e)),o().render(e,this.container)}))}componentDidMount(){this.container=document.createElement("div"),document.body.appendChild(this.container),this.renderChildren()}componentDidUpdate(){this.renderChildren()}componentWillUnmount(){this.container&&(o().unmountComponentAtNode(this.container),document.body.removeChild(this.container),delete this.container)}render(){return null}}i()(d,"displayName","RootChild"),i()(d,"propTypes",{children:c().node}),i()(d,"contextTypes",{store:c().object})},67448:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(89105),c=n.n(a),l=n(24555),u=n(11268),p=n.n(u),d=n(99196),h=n.n(d),f=n(91850),m=n.n(f),g=n(92819),v=n(11973),b=n(22256);function y(e,t){switch(t.key){case" ":case"Enter":this[e](t)}}class k extends h().Component{constructor(){super(...arguments),o()(this,"state",{keyword:this.props.initialValue||"",isOpen:!!this.props.isOpen,hasFocus:!1}),o()(this,"scrollOverlay",(()=>{this.refs.overlay&&window.requestAnimationFrame((()=>{this.refs.overlay&&this.refs.searchInput&&(this.refs.overlay.scrollLeft=this.getScrollLeft(this.refs.searchInput))}))})),o()(this,"getScrollLeft",(e=>{if(!e.createTextRange)return e.scrollLeft;const t=e.createTextRange(),n=window.getComputedStyle(e,void 0),r=parseFloat(n.paddingLeft),i=t.getBoundingClientRect();return e.getBoundingClientRect().left+e.clientLeft+r-i.left})),o()(this,"focus",(()=>{setTimeout((()=>this.refs.searchInput&&m().findDOMNode(this.refs.searchInput).focus()),0)})),o()(this,"blur",(()=>{m().findDOMNode(this.refs.searchInput).blur()})),o()(this,"getCurrentSearchValue",(()=>m().findDOMNode(this.refs.searchInput).value)),o()(this,"clear",(()=>{this.setState({keyword:""})})),o()(this,"onBlur",(e=>{this.props.onBlur&&this.props.onBlur(e),this.setState({hasFocus:!1})})),o()(this,"onChange",(()=>{this.setState({keyword:this.getCurrentSearchValue()})})),o()(this,"openSearch",(e=>{this.props.onClick(),e.preventDefault(),this.setState({keyword:"",isOpen:!0}),v.Z.ga.recordEvent(this.props.analyticsGroup,"Clicked Open Search")})),o()(this,"closeSearch",(e=>{if(e.preventDefault(),this.props.disabled)return;const t=m().findDOMNode(this.refs.searchInput);this.setState({keyword:"",isOpen:this.props.isOpen||!1}),t.value="",t.blur(),this.props.pinned&&m().findDOMNode(this.refs.openIcon).focus(),this.props.onSearchClose(e),v.Z.ga.recordEvent(this.props.analyticsGroup,"Clicked Close Search")})),o()(this,"keyUp",(e=>{"Enter"===e.key&&(0,l.tq)()&&this.blur(),this.props.pinned&&("Escape"===e.key&&this.closeSearch(e),this.scrollOverlay())})),o()(this,"keyDown",(e=>{this.scrollOverlay(),"Escape"===e.key&&""===e.target.value&&this.closeSearch(e),this.props.onKeyDown(e)})),o()(this,"onFocus",(()=>{const e=m().findDOMNode(this.refs.searchInput),t=e.value;t&&(e.value="",e.value=t),this.setState({hasFocus:!0}),this.props.onSearchOpen()})),o()(this,"renderStylingDiv",(()=>h().createElement("div",{className:"dops-search__text-overlay",ref:"overlay"},this.props.overlayStyling(this.state.keyword)))),o()(this,"closeButton",(()=>this.props.hideClose||!this.state.keyword&&!this.state.isOpen?null:h().createElement("div",{role:"button",className:"dops-search__icon-navigation",onClick:this.closeSearch,tabIndex:"0",onKeyDown:this.closeListener,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Close Search"},h().createElement(b.Z,{icon:"cross",className:"dops-search__close-icon"}))))}UNSAFE_componentWillMount(){this.setState({instanceId:++k.instances}),this.closeListener=y.bind(this,"closeSearch"),this.openListener=y.bind(this,"openSearch")}UNSAFE_componentWillReceiveProps(e){e.onSearch===this.props.onSearch&&e.delaySearch===this.props.delaySearch||(this.onSearch=this.props.delaySearch?(0,g.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch),e.isOpen&&this.setState({isOpen:e.isOpen}),e.initialValue===this.props.initialValue||this.state.keyword!==this.props.initialValue&&""!==this.state.keyword||this.setState({keyword:e.initialValue||""})}componentDidUpdate(e,t){this.scrollOverlay(),(this.state.isOpen&&!t.isOpen||this.props.autoFocus&&!e.autoFocus)&&this.focus(),this.state.keyword!==t.keyword&&(this.state.keyword?this.onSearch(this.state.keyword):(this.props.delaySearch&&this.onSearch.cancel(),this.props.onSearch(this.state.keyword)),this.props.onSearchChange(this.state.keyword))}componentDidMount(){this.onSearch=this.props.delaySearch?(0,g.debounce)(this.props.onSearch,this.props.delayTimeout):this.props.onSearch,this.props.autoFocus&&setTimeout((()=>this.focus()),0)}render(){const e=this.state.keyword,t=this.props.placeholder||"Search…",n=this.props.pinned&&!this.state.isOpen,r=this.state.isOpen||!this.props.pinned||this.props.initialValue,s=this.props.disableAutocorrect&&{autoComplete:"off",autoCorrect:"off",spellCheck:"false"},o=c()(this.props.additionalClasses,this.props.dir,{"is-expanded-to-container":this.props.fitsContainer,"is-open":r,"is-searching":this.props.searching,"has-focus":this.state.hasFocus,"dops-search":!0}),a=c()("dops-search__input-fade",this.props.dir),l=c()("dops-search__input",this.props.dir);return h().createElement("div",{dir:this.props.dir||null,className:o,role:"search"},h().createElement("div",{role:"button",className:"dops-search__icon-navigation",ref:"openIcon",onClick:n?this.openSearch:this.focus,tabIndex:n?"0":null,onKeyDown:n?this.openListener:null,"aria-controls":"dops-search-component-"+this.state.instanceId,"aria-label":"Open Search"},h().createElement(b.Z,{icon:"search",className:"dops-search__open-icon"})),h().createElement("div",{className:a},h().createElement("input",i()({type:"search",onChange:this.onChange,id:"dops-search-component-"+this.state.instanceId,className:l,placeholder:t,role:"searchbox",value:e,ref:"searchInput",onKeyUp:this.keyUp,onKeyDown:this.keyDown,onMouseUp:this.props.onClick,onFocus:this.onFocus,onBlur:this.onBlur,disabled:this.props.disabled,"aria-hidden":!r,autoCapitalize:"none",dir:this.props.dir,maxLength:this.props.maxLength},s)),this.props.overlayStyling&&this.renderStylingDiv()),this.closeButton())}}o()(k,"displayName","Search"),o()(k,"instances",0),o()(k,"propTypes",{additionalClasses:p().string,initialValue:p().string,placeholder:p().string,pinned:p().bool,delaySearch:p().bool,delayTimeout:p().number,onSearch:p().func.isRequired,onSearchChange:p().func,onSearchOpen:p().func,onSearchClose:p().func,analyticsGroup:p().string,overlayStyling:p().func,autoFocus:p().bool,disabled:p().bool,onKeyDown:p().func,onClick:p().func,disableAutocorrect:p().bool,onBlur:p().func,searching:p().bool,isOpen:p().bool,dir:p().oneOf(["ltr","rtl"]),fitsContainer:p().bool,maxLength:p().number,hideClose:p().bool}),o()(k,"defaultProps",{pinned:!1,delaySearch:!1,delayTimeout:300,autoFocus:!1,disabled:!1,onSearchChange:g.noop,onSearchOpen:g.noop,onSearchClose:g.noop,onKeyDown:g.noop,onClick:g.noop,overlayStyling:void 0,disableAutocorrect:!1,searching:!1,isOpen:!1,dir:void 0,fitsContainer:!1,hideClose:!1}),t.Z=k},35303:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(60742);class d extends c().Component{render(){const e=u()(this.props.className,"dops-section-header");return c().createElement(p.Z,{compact:!0,className:e},c().createElement("div",{className:"dops-section-header__label"},c().createElement("span",{className:"dops-section-header__label-text"},this.props.label)),c().createElement("div",{className:"dops-section-header__actions"},this.props.children))}}i()(d,"displayName","SectionHeader"),i()(d,"propTypes",{label:o().string}),i()(d,"defaultProps",{label:""})},91592:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(92819),c=n(89105),l=n.n(c),u=n(7767),p=n.n(u),d=n(67939),h=n(17840),f=n(67448);const m=p()({displayName:"SectionNav",propTypes:{children:i().node,selectedText:i().node,selectedCount:i().number,hasPinnedItems:i().bool,onMobileNavPanelOpen:i().func},getInitialState:function(){return{mobileOpen:!1}},getDefaultProps:function(){return{onMobileNavPanelOpen:()=>{}}},UNSAFE_componentWillMount:function(){this.checkForSiblingControls(this.props.children)},UNSAFE_componentWillReceiveProps:function(e){(0,a.isEqual)(this.props,e)||(this.checkForSiblingControls(e.children),this.hasSiblingControls||this.closeMobilePanel())},render:function(){const e=this.getChildren();let t;return e?(t=l()({"dops-section-nav":!0,"is-open":this.state.mobileOpen,"has-pinned-items":this.hasPinnedSearch||this.props.hasPinnedItems}),o().createElement("div",{className:t},o().createElement("div",{className:"dops-section-nav__mobile-header",role:"button",onClick:this.toggleMobileOpenState,tabIndex:0,onKeyUp:this.toggleMobileOpenState},o().createElement("span",{className:"dops-section-nav__mobile-header-text"},this.props.selectedText)),o().createElement("div",{className:"dops-section-nav__panel"},e))):(t=l()({"dops-section-nav":!0,"is-empty":!0}),o().createElement("div",{className:t},o().createElement("div",{className:"dops-section-nav__panel"},o().createElement(h.Z,null))))},getChildren:function(){return o().Children.map(this.props.children,function(e){const t={hasSiblingControls:this.hasSiblingControls,closeSectionNavMobilePanel:this.closeMobilePanel};return e?(e.type!==d.Z||e.props.selectedText||"string"!=typeof this.props.selectedText||(t.selectedText=this.props.selectedText),e.type===d.Z&&this.props.selectedCount&&(t.selectedCount=this.props.selectedCount),e.type===f.Z&&(e.props.pinned&&(this.hasPinnedSearch=!0),t.onSearch=this.generateOnSearch(e.props.onSearch)),o().cloneElement(e,t)):null}.bind(this))},closeMobilePanel:function(){window.innerWidth<480&&this.state.mobileOpen&&this.setState({mobileOpen:!1})},toggleMobileOpenState:function(){const e=!this.state.mobileOpen;this.setState({mobileOpen:e}),e&&this.props.onMobileNavPanelOpen()},generateOnSearch:function(e){return function(){e.apply(this,arguments),this.closeMobilePanel()}.bind(this)},checkForSiblingControls:function(e){this.hasSiblingControls=!1,o().Children.forEach(e,function(e,t){t&&e&&e.type!==f.Z&&(this.hasSiblingControls=!0)}.bind(this))}});t.Z=m},17840:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(21425),c=n.n(a),l=n(89105),u=n.n(l),p=n(7767),d=n.n(p),h=n(44135);const f=d()({displayName:"NavItem",mixins:[c()],propTypes:{itemType:i().string,path:i().string,selected:i().bool,tabIndex:i().number,onClick:i().func,isExternalLink:i().bool,disabled:i().bool,count:i().number},render:function(){const e=this.props.itemType?this.props.itemType:"tab",t={"is-selected":this.props.selected,"is-external":this.props.isExternalLink};t["dops-section-nav-"+e]=!0;const n=u()(t);let r,i;return this.props.isExternalLink&&(r="_blank"),this.props.disabled||(i=this.props.onClick),o().createElement("li",{className:n},o().createElement("a",{href:this.props.path,target:r,className:"dops-section-nav-"+e+"__link",onClick:i,tabIndex:this.props.tabIndex||0,disabled:this.props.disabled,role:"menuitem",rel:this.props.isExternalLink?"external":null},o().createElement("span",{className:"dops-section-nav-"+e+"__text"},this.props.children,"number"==typeof this.props.count&&o().createElement(h.Z,{count:this.props.count}))))}});t.Z=f},67939:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(89105),c=n.n(a),l=n(92819),u=n(24555),p=n(11268),d=n.n(p),h=n(91850),f=n.n(h),m=n(99196),g=n.n(m),v=n(51262),b=n(34964);class y extends g().Component{constructor(){super(...arguments),o()(this,"state",{isDropdown:!1}),o()(this,"getTabWidths",(()=>{let e=0;g().Children.forEach(this.props.children,function(t,n){if(!t)return;const r=f().findDOMNode(this.refs["tab-"+n]).offsetWidth;e+=r}.bind(this)),this.tabsWidth=e})),o()(this,"getDropdown",(()=>{const e=g().Children.map(this.props.children,(function(e,t){return e?g().createElement(v.Z,i()({},e.props,{key:"navTabsDropdown-"+t}),e.props.children):null}));return g().createElement(b.Z,{className:"dops-section-nav-tabs__dropdown",selectedText:this.props.selectedText,selectedCount:this.props.selectedCount},e)})),o()(this,"setDropdown",(()=>{let e;if(window.innerWidth>480){if(!this.refs.navGroup)return;e=this.refs.navGroup.offsetWidth,this.tabsWidth||this.getTabWidths(),e<=this.tabsWidth&&!this.state.isDropdown?this.setState({isDropdown:!0}):e>this.tabsWidth&&this.state.isDropdown&&this.setState({isDropdown:!1})}else window.innerWidth<=480&&this.state.isDropdown&&this.setState({isDropdown:!1})})),o()(this,"keyHandler",(e=>{switch(e.keyCode){case 32:case 13:e.preventDefault(),document.activeElement.click()}}))}componentDidMount(){this.setDropdown(),this.debouncedAfterResize=(0,l.debounce)(this.setDropdown,300),window.addEventListener("resize",this.debouncedAfterResize)}UNSAFE_componentWillReceiveProps(){this.setDropdown()}componentWillUnmount(){window.removeEventListener("resize",this.debouncedAfterResize)}render(){const e=g().Children.map(this.props.children,(function(e,t){return e&&g().cloneElement(e,{ref:"tab-"+t})})),t=c()({"dops-section-nav-tabs":!0,"is-dropdown":this.state.isDropdown,"is-open":this.state.isDropdownOpen,"has-siblings":this.props.hasSiblingControls}),n=(0,u.bQ)();return g().createElement("div",{className:"dops-section-nav-group",ref:"navGroup"},g().createElement("div",{className:t},this.props.label&&g().createElement("h6",{className:"dops-section-nav-group__label"},this.props.label),g().createElement("ul",{className:"dops-section-nav-tabs__list",role:"menu",onKeyDown:this.keyHandler},e),this.state.isDropdown&&n>480&&this.getDropdown()))}}o()(y,"propTypes",{selectedText:d().string,selectedCount:d().number,label:d().string,hasSiblingControls:d().bool}),o()(y,"defaultProps",{hasSiblingControls:!1}),t.Z=y},34964:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(91850),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819),d=n(51262),h=n(84467),f=n(23837),m=n(44135);const{Component:g}=c(),v=()=>{};class b extends g{constructor(e){super(e),this.navigateItem=this.navigateItem.bind(this),this.toggleDropdown=this.toggleDropdown.bind(this),this.handleOutsideClick=this.handleOutsideClick.bind(this),this._onClick=this._onClick.bind(this);const t={isOpen:!1};e.options.length&&(t.selected=this.getInitialSelectedItem(e)),this.state=t}UNSAFE_componentWillMount(){this.setState({instanceId:++b.instances})}UNSAFE_componentWillReceiveProps(e){this.state.isOpen&&this.closeDropdown(),void 0!==this.state.selected&&this.props.initialSelected!==e.initialSelected&&this.setState({selected:e.initialSelected})}componentWillUnmount(){window.removeEventListener("click",this.handleOutsideClick)}componentDidUpdate(e,t){this.state.isOpen?window.addEventListener("click",this.handleOutsideClick):window.removeEventListener("click",this.handleOutsideClick),this.state.isOpen!==t.isOpen&&this.props.onToggle({target:this,open:this.state.isOpen})}getInitialSelectedItem(e){if((e=e||this.props).initialSelected)return e.initialSelected;if(!e.options.length)return;const t=(0,p.find)(e.options,(e=>!e.isLabel));return t&&t.value}dropdownOptions(){let e=0;const t=this;return this.props.children?c().Children.map(this.props.children,(function(n,r){if(!n)return null;const i=c().cloneElement(n,{ref:n.type===d.Z?"item-"+e:null,key:"item-"+r,onClick:function(e){t.refs.dropdownContainer.focus(),"function"==typeof n.props.onClick&&n.props.onClick(e)}});return n.type===d.Z&&e++,i}),this):this.props.options.map((function(t,n){if(!t)return c().createElement(h.Z,{key:"dropdown-separator-"+this.state.instanceId+"-"+n});if(t.isLabel)return c().createElement(f.Z,{key:"dropdown-label-"+this.state.instanceId+"-"+n},t.label);const r=c().createElement(d.Z,{key:"dropdown-item-"+this.state.instanceId+"-"+t.value,ref:"item-"+e,selected:this.state.selected===t.value,onClick:this.onSelectItem(t),path:t.path},t.label);return e++,r}),this)}render(){const e={"dops-select-dropdown":!0,"is-compact":this.props.compact,"is-open":this.state.isOpen,"is-disabled":this.props.disabled};this.props.className&&this.props.className.split(" ").forEach((function(t){e[t]=!0}));const t=u()(e),n=this.props.selectedText?this.props.selectedText:(0,p.result)((0,p.find)(this.props.options,{value:this.state.selected}),"label");return c().createElement("div",{style:this.props.style,className:t},c().createElement("div",{ref:"dropdownContainer",className:"dops-select-dropdown__container",tabIndex:this.props.tabIndex||0,role:"listbox","aria-labelledby":"select-dropdown-"+this.state.instanceId,"aria-owns":"select-submenu-"+this.state.instanceId,"aria-controls":"select-submenu-"+this.state.instanceId,"aria-expanded":this.state.isOpen,onClick:this._onClick,onKeyDown:this.navigateItem},c().createElement("div",{id:"select-dropdown-"+this.state.instanceId,className:"dops-select-dropdown__header"},c().createElement("span",{className:"dops-select-dropdown__header-text"},n,"number"==typeof this.props.selectedCount&&c().createElement(m.Z,{count:this.props.selectedCount}))),c().createElement("ul",{id:"select-submenu-"+this.state.instanceId,className:"dops-select-dropdown__options"},this.dropdownOptions())))}_onClick(){this.props.disabled||this.toggleDropdown()}toggleDropdown(){this.setState({isOpen:!this.state.isOpen})}openDropdown(){this.setState({isOpen:!0})}closeDropdown(){this.state.isOpen&&(delete this.focused,this.setState({isOpen:!1}))}onSelectItem(e){return this.selectItem.bind(this,e)}selectItem(e){e&&(this.props.onSelect&&this.props.onSelect(e),this.setState({selected:e.value}),this.refs.dropdownContainer.focus())}navigateItem(e){switch(e.keyCode){case 9:this.navigateItemByTabKey(e);break;case 32:case 13:e.preventDefault(),this.activateItem();break;case 38:e.preventDefault(),this.focusSibling("previous"),this.openDropdown();break;case 40:e.preventDefault(),this.focusSibling("next"),this.openDropdown();break;case 27:e.preventDefault(),this.closeDropdown(),this.refs.dropdownContainer.focus()}}navigateItemByTabKey(e){if(!this.state.isOpen)return;e.preventDefault();const t=e.shiftKey?"previous":"next";this.focusSibling(t)}activateItem(){if(!this.state.isOpen)return this.openDropdown();document.activeElement.click()}focusSibling(e){let t,n;if(!this.state.isOpen)return;this.props.options.length?(t=(0,p.map)((0,p.filter)(this.props.options,(e=>e&&!e.isLabel)),"value"),n="number"==typeof this.focused?this.focused:t.indexOf(this.state.selected)):(t=(0,p.filter)(this.props.children,(function(e){return e.type===d.Z})),n="number"==typeof this.focused?this.focused:(0,p.findIndex)(t,(function(e){return e.props.selected})));const r=n+("previous"===e?-1:1);r>=t.length||r<0||(o().findDOMNode(this.refs["item-"+r].refs.itemLink).focus(),this.focused=r)}handleOutsideClick(e){o().findDOMNode(this.refs.dropdownContainer).contains(e.target)||this.closeDropdown()}}b.defaultProps={options:[],onSelect:v,onToggle:v,disabled:!1,style:{}},b.propTypes={selectedText:i().string,selectedCount:i().number,initialSelected:i().string,className:i().string,style:i().object,onSelect:i().func,onToggle:i().func,focusSibling:i().func,tabIndex:i().number,disabled:i().bool,options:i().arrayOf(i().shape({value:i().string.isRequired,label:i().string.isRequired,path:i().string}))},b.instances=0,t.Z=b},51262:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(44135);class d extends c().Component{render(){const e=u()(this.props.className,{"dops-select-dropdown__item":!0,"is-selected":this.props.selected,"is-disabled":this.props.disabled});return c().createElement("li",{className:"dops-select-dropdown__option"},c().createElement("a",{ref:"itemLink",href:this.props.path,className:e,onClick:this.props.disabled?null:this.props.onClick,"data-bold-text":this.props.value||this.props.children,role:"option",tabIndex:0,"aria-selected":this.props.selected},c().createElement("span",{className:"dops-select-dropdown__item-text"},this.props.children,"number"==typeof this.props.count&&c().createElement(p.Z,{count:this.props.count}))))}}i()(d,"propTypes",{children:o().string.isRequired,path:o().string,selected:o().bool,onClick:o().func,count:o().number}),i()(d,"defaultProps",{selected:!1}),t.Z=d},23837:function(e,t,n){"use strict";var r=n(99196),i=n.n(r);const{Component:s}=i(),o=e=>e.stopPropagation();t.Z=class extends s{render(){return i().createElement("li",{role:"menuitem",onClick:o,className:"dops-select-dropdown__label"},i().createElement("label",null,this.props.children))}}},84467:function(e,t,n){"use strict";var r=n(99196),i=n.n(r);class s extends i().Component{render(){return i().createElement("li",{className:"dops-select-dropdown__separator"})}}t.Z=s},84277:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(92819),p=n(65736),d=n(11973),h=n(9913),f=n(81200),m=n(41147),g=n(66552),v=n(75395),b=n(88872),y=n(35303),k=n(27415),w=n(85253),_=n(53263),E=n(93107);const __=p.__,_x=p._x,C=e=>{const t=e=>()=>(e=>{d.Z.tracks.recordJetpackClick({target:"upgrade-banner",feature:e,type:"upgrade"})})(e),n=(t,n)=>()=>{(e=>{d.Z.tracks.recordJetpackClick({target:"connect-banner",feature:e,type:"connect"})})(t),e.doConnectUser(n)},r=!!e.module&&e.getModule(e.module),s=e.vaultPressData,a=(0,u.get)(s,["data","features","backups"],!1),c=(0,u.get)(s,["data","features","security"],!1);if(!e.userCanManageModules&&!(0,u.includes)(["post-by-email","publicize"],e.module))return o().createElement("span",null);const l=e.saveDisabled,p=!!e.feature&&e.feature;let m=e.header?e.header:"";""===m&&r&&(m=r.name);const g=()=>{switch(p){case f.BD:return"inactive"===e.getModuleOverride("videopress");case f.N8:return"inactive"===e.getModuleOverride("wordads");case f.r2:return"inactive"===e.getModuleOverride("google-analytics");case f.T5:return"inactive"===e.getModuleOverride("search");default:return!1}},v=(()=>{if(e.fetchingSiteData)return!0;const t=(0,f.sc)(e.sitePlan.product_slug),n=(0,u.includes)(["is-premium-plan","is-business-plan","is-daily-security-plan","is-realtime-security-plan","is-complete-plan"],t);switch(p){case f.eM:if("is-free-plan"===t&&!c)return!1;break;case f.N8:if(!n&&-1===e.activeFeatures.indexOf(f.N8))return!1;break;case f.r2:if(!n)return!1;break;case f.V3:if(((0,u.includes)(["is-free-plan"],t)||(0,u.isEmpty)(t))&&!e.isAkismetKeyValid&&!e.isCheckingAkismetKey)return!1}return!0})()&&e.children,b=!e.fetchingSiteData&&!g()&&!e.inOfflineMode&&(()=>{const r=(0,f.sc)(e.sitePlan.product_slug),i=_x("Upgrade","A caption for a button to upgrade an existing paid feature to a higher tier.","jetpack"),s=_x("Connect","A caption for a button to connect a user account to access paid features.","jetpack"),c=(0,u.includes)(["is-premium-plan","is-business-plan","is-daily-security-plan","is-realtime-security-plan","is-complete-plan"],r);switch(p){case f.BD:return e.hasConnectedOwner||c?"":o().createElement(w.Z,{title:__("Connect your WordPress.com account to enable high-quality, ad-free video.","jetpack"),callToAction:s,plan:(0,f.o2)(f.BD),feature:p,onClick:n(p)});case f.N8:return c||-1!==e.activeFeatures.indexOf(f.N8)?"":e.hasConnectedOwner?o().createElement(w.Z,{title:__("Generate income with high-quality ads.","jetpack"),callToAction:i,plan:(0,f.o2)(f.N8),feature:p,onClick:t(p),href:e.adsUpgradeUrl}):o().createElement(w.Z,{title:__("Connect your WordPress.com account to upgrade and generate income with high-quality ads.","jetpack"),callToAction:s,plan:(0,f.o2)(f.N8),feature:p,onClick:n(p)});case f.eM:return a||["is-business-plan","is-realtime-security-plan","is-complete-plan"].includes(r)||e.multisite?"":["is-premium-plan","is-daily-security-plan"].includes(r)?e.hasConnectedOwner?o().createElement(w.Z,{title:__("Save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,f.o2)(f.N_),callToAction:i,feature:p,onClick:t(p),href:e.securityProUpgradeUrl}):o().createElement(w.Z,{title:__("Connect your WordPress.com account to upgrade and save every change and get back online quickly with one-click restores.","jetpack"),plan:(0,f.o2)(f.N_),callToAction:s,feature:p,onClick:n(p)}):e.hasConnectedOwner?o().createElement(w.Z,{callToAction:i,title:__("Automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,f.o2)(f.eM),feature:p,onClick:t(p),href:e.securityPremiumUpgradeUrl}):o().createElement(w.Z,{callToAction:s,title:__("Connect your WordPress.com account to upgrade for automated scanning and one-click fixes keep your site ahead of security threats.","jetpack"),plan:(0,f.o2)(f.eM),feature:p,onClick:n(p)});case f.r2:return c?"":e.hasConnectedOwner?o().createElement(w.Z,{callToAction:i,title:__("Connect your site to Google Analytics.","jetpack"),plan:(0,f.o2)(f.r2),feature:p,onClick:t(p),href:e.gaUpgradeUrl}):o().createElement(w.Z,{callToAction:s,title:__("Connect your WordPress.com account to upgrade and connect your site to Google Analytics.","jetpack"),plan:(0,f.o2)(f.r2),feature:p,onClick:n(p)});case f.T5:return e.hasActiveSearchPurchase||"is-complete-plan"===r?"":e.hasConnectedOwner?o().createElement(w.Z,{callToAction:i,title:__("Help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:(0,f.o2)(f.T5),feature:p,onClick:t(p),href:e.searchUpgradeUrl}):o().createElement(w.Z,{callToAction:s,title:__("Connect your WordPress.com account to upgrade and help visitors quickly find answers with highly relevant instant search results and powerful filtering.","jetpack"),plan:(0,f.o2)(f.T5),feature:p,onClick:n(p)});case f.V3:return e.isCheckingAkismetKey||e.isAkismetKeyValid||"is-personal-plan"===r||c?"":e.hasConnectedOwner?o().createElement(w.Z,{callToAction:i,title:__("Automatically clear spam from comments and forms.","jetpack"),plan:(0,f.o2)(f.V3),feature:p,href:e.spamUpgradeUrl}):o().createElement(w.Z,{callToAction:s,title:__("Connect your WordPress.com account to upgrade and automatically clear spam from comments and forms.","jetpack"),plan:(0,f.o2)(f.V3),feature:p,onclick:e.doConnectUser});default:return""}})();if(!v&&!b)return null;let E="";return e.feature?E=`jp-settings-${e.feature}`:e.module&&(E=`jp-settings-${e.module}`),(()=>{if(!g())return!1;if(p!==f.r2)return null;const t=e.getModule("google-analytics");return o().createElement(_.Z,{moduleName:t.name})})()||o().createElement("form",i()({},E?{id:E}:null,{className:"jp-form-settings-card",onSubmit:l?void 0:e.onSubmit}),o().createElement(y.Z,{label:m},!e.hideButton&&o().createElement(h.Z,{primary:!0,compact:!0,type:"submit",disabled:l||!e.isDirty()},l?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0)),e.action&&o().createElement(k.Z,{proFeature:e.action,siteAdminUrl:e.siteAdminUrl,isCompact:!1})),v,b)};C.propTypes={action:c().string,saveDisabled:c().bool},C.defaultProps={action:"",saveDisabled:!1},t.Z=(0,l.$j)((e=>({sitePlan:(0,b.UL)(e),fetchingSiteData:(0,b._5)(e),siteAdminUrl:(0,g.wW)(e),userCanManageModules:(0,g.pK)(e),isAkismetKeyValid:(0,v._2)(e),isCheckingAkismetKey:(0,v.gw)(e),vaultPressData:(0,v.XK)(e),getModuleOverride:t=>(0,E.Qy)(e,t),getModule:t=>(0,E.rT)(e,t),activeFeatures:(0,b.$l)(e),videoPremiumUpgradeUrl:(0,g.Qq)(e,"settings-video-premium"),adsUpgradeUrl:(0,g.Qq)(e,"settings-ads"),securityProUpgradeUrl:(0,g.Qq)(e,"settings-security-pro"),securityPremiumUpgradeUrl:(0,g.Qq)(e,"settings-security-premium"),gaUpgradeUrl:(0,g.Qq)(e,"settings-ga"),searchUpgradeUrl:(0,g.Qq)(e,"jetpack-search"),spamUpgradeUrl:(0,g.Qq)(e,"settings-spam"),multisite:(0,g.TA)(e),hasActiveSearchPurchase:(0,b.o$)(e),inOfflineMode:(0,m.Ex)(e),hasConnectedOwner:(0,m.it)(e)})),(e=>({doConnectUser:t=>e((0,m.bL)(t))})))(C)},27006:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(60742),p=n(89105),d=n.n(p),h=n(92819),f=n(25691),m=n(41147),g=n(66552),v=n(93107);const b=e=>{const t=e.module;if(t.module&&!e.userCanManageModules&&!(0,h.includes)(["post-by-email","publicize"],t.module))return c().createElement("span",null);const n=e.disableInOfflineMode&&e.isUnavailableInOfflineMode(t.module),r=e.disableInSiteConnectionMode&&e.isUnavailableInSiteConnectionMode(t.module);let s=n||r;return"post-by-email"!==t.module||e.isLinked||(s=!0),c().createElement("div",{className:d()("jp-form-settings-group",e.className)},c().createElement(u.Z,{className:d()({"jp-form-has-child":e.hasChild,"jp-form-settings-disable":n||r})},s&&c().createElement("div",{className:"jp-form-block-fade"}),e.support.link&&c().createElement(f.Z,i()({module:t},e.support)),e.children))};b.propTypes={support:o().object,module:o().object,disableInOfflineMode:o().bool.isRequired,disableInSiteConnectionMode:o().bool,isOfflineMode:o().bool.isRequired,isSitePublic:o().bool.isRequired,userCanManageModules:o().bool.isRequired,isLinked:o().bool.isRequired,isUnavailableInOfflineMode:o().func.isRequired,className:o().string},b.defaultProps={support:{text:"",link:""},module:{},disableInOfflineMode:!1,disableInSiteConnectionMode:!1,isOfflineMode:!1,isSitePublic:!0,userCanManageModules:!1,isLinked:!1,isUnavailableInOfflineMode:h.noop,className:""},t.Z=(0,l.$j)((e=>({isOfflineMode:(0,m.Ex)(e),isSitePublic:(0,g.$r)(e),userCanManageModules:(0,g.pK)(e),userCanEditPosts:(0,g.rp)(e),isLinked:(0,m.BU)(e),isModuleActivated:t=>(0,v.mp)(e,t),isUnavailableInOfflineMode:t=>(0,m.t_)(e,t),isUnavailableInSiteConnectionMode:t=>(0,m.IK)(e,t)})))(b)},66765:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(89105),p=n.n(u),d=n(65736),h=n(71415),f=n(11973),m=n(60742),g=n(9913),v=n(88872),b=n(41147),y=n(66552),k=n(85253),w=n(81200);const __=d.__;class _ extends c().Component{constructor(){super(...arguments),i()(this,"trackBannerClick",(()=>{f.Z.tracks.recordJetpackClick({target:"banner-click",feature:"support",page:this.props.path,is_user_wpcom_connected:this.props.isCurrentUserLinked?"yes":"no",is_connection_owner:this.props.isConnectionOwner?"yes":"no"})})),i()(this,"handleConnectClick",(()=>{this.trackBannerClick(),this.props.connectUser()})),i()(this,"trackSearchClick",(()=>{f.Z.tracks.recordJetpackClick({target:"support-card",button:"support-search",page:this.props.path})}))}shouldComponentUpdate(e){return e.sitePlan.product_slug!==this.props.sitePlan.product_slug}render(){if(void 0===this.props.sitePlan.product_slug&&this.props.isFetchingSiteData)return c().createElement("div",null);const e=p()(this.props.className,"jp-support-card"),t=void 0===this.props.sitePlan.product_slug||"jetpack_free"===this.props.sitePlan.product_slug;return c().createElement("div",{className:e},c().createElement(m.Z,{className:"jp-support-card__happiness"},c().createElement("div",{className:"jp-support-card__happiness-contact"},c().createElement("h3",{className:"jp-support-card__header"},__("We're here to help","jetpack")),c().createElement("p",{className:"jp-support-card__description"},t?__("Jetpack offers support via community forums for any site without a paid product.","jetpack"):__("Your paid plan gives you access to prioritized Jetpack support.","jetpack",0)),c().createElement("p",{className:"jp-support-card__description"},c().createElement(g.Z,{onClick:this.trackSearchClick,href:this.props.isAtomicSite?(0,h.Z)("calypso-help"):(0,h.Z)("jetpack-support")},__("Search our support site","jetpack"))))),this.props.siteConnectionStatus&&t&&this.props.hasConnectedOwner&&c().createElement(k.Z,{title:__("Get a faster resolution to your support questions.","jetpack"),plan:(0,w.o2)(w.ps),callToAction:__("Upgrade","jetpack"),onClick:this.trackBannerClick,href:this.props.supportUpgradeUrl}),this.props.siteConnectionStatus&&t&&!this.props.hasConnectedOwner&&c().createElement(k.Z,{title:__("Connect your WordPress.com account and upgrade to get a faster resolution to your support questions.","jetpack"),plan:(0,w.o2)(w.ps),callToAction:__("Connect","jetpack"),onClick:this.handleConnectClick}))}}i()(_,"displayName","SupportCard"),i()(_,"defaultProps",{className:"",siteConnectionStatus:!1}),_.propTypes={siteConnectionStatus:o().any.isRequired,className:o().string,isCurrentUserLinked:o().string,isConnectionOwner:o().bool},t.Z=(0,l.$j)((e=>({sitePlan:(0,v.UL)(e),siteConnectionStatus:(0,b.Gz)(e),isFetchingSiteData:(0,v._5)(e),isAtomicSite:(0,y.Ug)(e),isDevVersion:(0,y._W)(e),supportUpgradeUrl:(0,y.Qq)(e,"support"),isCurrentUserLinked:(0,b.BU)(e),isConnectionOwner:(0,b.QM)(e),hasConnectedOwner:(0,b.it)(e)})),(e=>({connectUser:()=>e((0,b.bL)())})))(_)},25691:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(65736),u=n(11973),p=n(87279),d=n(68961);const __=l.__;class h extends a.Component{constructor(){super(...arguments),this.getModule=this.getModule.bind(this),this.trackInfoClick=this.trackInfoClick.bind(this),this.trackLearnMoreClick=this.trackLearnMoreClick.bind(this),this.trackPrivacyInfoClick=this.trackPrivacyInfoClick.bind(this)}getModule(){return this.props.module||{}}trackInfoClick(){u.Z.tracks.recordJetpackClick({target:"info-icon",feature:this.getModule().module})}trackLearnMoreClick(){u.Z.tracks.recordJetpackClick({target:"learn-more",feature:this.getModule().module})}trackPrivacyInfoClick(){u.Z.tracks.recordJetpackClick({target:"privacy-info",feature:this.getModule().module})}render(){const{text:e,link:t}=this.props;let{privacyLink:n}=this.props;return!n&&t&&(n=t+"#privacy"),c().createElement("div",{className:"jp-support-info"},c().createElement(p.Z,{position:"left",onClick:this.trackInfoClick,screenReaderText:__("Learn more","jetpack")},e+" ",c().createElement("span",{className:"jp-support-info__learn-more"},c().createElement(d.Z,{href:t,onClick:this.trackLearnMoreClick,target:"_blank",rel:"noopener noreferrer"},__("Learn more","jetpack"))),c().createElement("span",{className:"jp-support-info__privacy"},c().createElement(d.Z,{href:n,onClick:this.trackPrivacyInfoClick,target:"_blank",rel:"noopener noreferrer"},__("Privacy information","jetpack")))))}}i()(h,"propTypes",{module:o().object,text:o().string,link:o().string,privacyLink:o().string}),i()(h,"defaultProps",{module:void 0,text:"",link:"",privacyLink:""})},15029:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819);class d extends c().Component{constructor(){super(...arguments),o()(this,"focus",(()=>{this.refs.textField.focus()})),o()(this,"selectOnFocus",(e=>{e.target.select()}))}render(){const{className:e,selectOnFocus:t}=this.props,n=u()(e,{"dops-text-input":!0,"is-error":this.props.isError,"is-valid":this.props.isValid}),r=(0,p.omit)(this.props,"selectOnFocus","isError","isValid");return c().createElement("input",i()({},r,{ref:"textField",className:n,onClick:t?this.selectOnFocus:null}))}}o()(d,"displayName","TextInput"),o()(d,"defaultProps",{isError:!1,isValid:!1,selectOnFocus:!1,type:"text"})},50844:function(e,t,n){"use strict";n.d(t,{Z:function(){return d}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(92819);class d extends c().Component{render(){return c().createElement("textarea",i()({},(0,p.omit)(this.props,"className"),{className:u()(this.props.className,"dops-textarea")}),this.props.children)}}o()(d,"displayName","Textarea")},39124:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(24555),o=n(11268),a=n.n(o),c=n(99196),l=n.n(c),u=n(89105),p=n.n(u),d=n(40515);const h=()=>{};class f extends c.Component{render(){if(!this.props.showOnMobile&&(0,s.tq)())return null;const e=p()("dops-popover","dops-tooltip",`is-${this.props.position}`,this.props.className);return l().createElement(d.Z,{autoPosition:this.props.autoPosition,className:e,rootClassName:this.props.rootClassName,context:this.props.context,id:this.props.id,isVisible:this.props.isVisible,onClose:h,position:this.props.position,showDelay:this.props.showDelay},this.props.children)}}i()(f,"propTypes",{autoPosition:a().bool,className:a().string,id:a().string,isVisible:a().bool,position:a().string,rootClassName:a().string,status:a().string,showDelay:a().number,showOnMobile:a().bool}),i()(f,"defaultProps",{showDelay:100,position:"top",showOnMobile:!1}),t.Z=f},86338:function(e,t,n){"use strict";var r=n(11268),i=n.n(r),s=n(99196),o=n(2620),a=n(19555);class c extends s.Component{UNSAFE_componentWillReceiveProps(e){const t=this.props.analytics.tracks.recordEvent;e.searchTerm!==this.props.searchTerm&&e.searchTerm.length>=3&&t("jetpack_wpa_search_term",{term:e.searchTerm})}render(){return null}}c.propTypes={analytics:i().object,searchTerm:i().string},t.Z=(0,o.$j)((e=>({searchTerm:(0,a.He)(e)})))(c)},57028:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(11973),p=n(66552);class d extends s.PureComponent{constructor(){super(...arguments),i()(this,"trackClick",(()=>{const{target:e,feature:t}=this.props;if(e){const n=t?{feature:t}:{};u.Z.tracks.recordJetpackClick({type:"upgrade-link",target:e,...n})}}))}render(){return o().createElement("a",{href:this.props.upgradeUrl,target:"_blank",rel:"noopener noreferrer",onClick:this.trackClick},this.props.children)}}i()(d,"propTypes",{source:c().string.isRequired,target:c().string.isRequired,feature:c().string,upgradeUrl:c().string.isRequired}),t.Z=(0,l.$j)(((e,t)=>{let{source:n}=t;return{upgradeUrl:(0,p.Qq)(e,n)}}))(d)},24857:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(65736),c=n(5e4),l=n(11973),u=n(39868);const __=a.__,p=(0,c.u)(class extends s.Component{constructor(){super(...arguments),i()(this,"trackLearnMoreClick",(()=>{l.Z.tracks.recordJetpackClick({target:"warm_welcome_view_editor",version:this.props.version})})),i()(this,"dismissNotice",(()=>{l.Z.tracks.recordJetpackClick({target:"warm_welcome_dismiss",version:this.props.version}),this.props.dismiss()}))}componentDidMount(){jQuery("body").addClass("jp-dialogue-modern-showing"),l.Z.tracks.recordEvent("jetpack_warm_welcome_view",{version:this.props.version})}componentWillUnmount(){jQuery("body").removeClass("jp-dialogue-modern-showing")}renderInnerContent(){const e=(new DOMParser).parseFromString(this.props.releasePostContent,"text/html"),t=e.getElementsByTagName("a");for(let e=0;e<t.length;e++)t[e].setAttribute("target","_blank"),t[e].setAttribute("rel","noopener noreferrer");const n=e.body.innerHTML;return o().createElement("div",{className:"jp-upgrade-notice__content"},o().createElement("div",{dangerouslySetInnerHTML:{__html:n}}))}render(){const{featuredImage:e}=this.props;let t=null,{title:n}=this.props;return e&&e.length>0&&(t=o().createElement("img",{src:e,alt:""})),n&&0!==n.length||(n=(0,a.sprintf)(
/* translators: Placeholder is a version number. */
__("New in Jetpack %s","jetpack"),this.props.version)),o().createElement(u.Z,{svg:t,title:n,content:this.renderInnerContent(),dismiss:this.dismissNotice})}});t.Z=p},9481:function(e,t){"use strict";const n={i18n_default_locale_slug:"en",mc_analytics_enabled:!0,google_analytics_enabled:!1,google_analytics_key:null};t.Z=function(e){if(e in n)return n[e];throw new Error("config key `"+e+"` does not exist")}},98486:function(e,t,n){"use strict";n.d(t,{hp:function(){return i},Fr:function(){return s},Ez:function(){return o}});var r=n(71415);const i=window.Initial_State.pluginBaseUrl+"/images/",s=(0,r.Z)("jetpack-contact-support"),o=(0,r.Z)("jetpack-contact-support-beta-group")},86087:function(e,t,n){"use strict";n.d(t,{H:function(){return k}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(65736),u=n(71415),p=n(94069),d=n(55735),h=n(77222),f=n(84277),m=n(27006),g=n(25691),v=n(15029),b=n(5e4);const __=l.__;class y extends c().Component{constructor(){super(...arguments),o()(this,"updateFormStateByMarkdown",(e=>this.props.getSettingCurrentValue("wpcom_publish_posts_with_markdown",e)?this.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown"):this.props.updateFormStateModuleOption(e,"wpcom_publish_comments_with_markdown",!0))),o()(this,"handleMarkdownCommentsToggle",(()=>{this.props.updateFormStateModuleOption("markdown","wpcom_publish_comments_with_markdown")}))}render(){const e=this.props.isModuleFound("comments"),t=this.props.isModuleFound("gravatar-hovercards"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("comment-likes");if(!(e||t||n||r))return null;const{isUnavailableInOfflineMode:s,getOptionValue:o}=this.props,a=this.props.getModule("comments"),l=this.props.getOptionValue("comments"),b=this.props.isUnavailableInOfflineMode("comments"),y=this.props.getModule("gravatar-hovercards"),k=this.props.getModule("markdown"),w=s("comment-likes"),_=o("comment-likes");return c().createElement(f.Z,i()({},this.props,{header:__("Comments","jetpack"),module:"comments",saveDisabled:this.props.isSavingAnyOption(["highlander_comment_form_prompt","jetpack_comment_form_color_scheme"])}),e&&c().createElement(m.Z,{hasChild:!0,disableInOfflineMode:!0,module:a,support:{text:__("Replaces the standard WordPress comment form with a new comment system that includes social media login options.","jetpack"),link:(0,u.Z)("jetpack-support-comments")}},c().createElement(h.T,{slug:"comments",compact:!0,disabled:b,activated:this.props.getOptionValue("comments"),toggling:this.props.isSavingAnyOption("comments"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},a.description)),c().createElement(d.C_,null,c().createElement(d.lX,null,c().createElement("span",{className:"jp-form-label-wide"},__("Comment form introduction","jetpack")),c().createElement(v.Z,{name:"highlander_comment_form_prompt",value:this.props.getOptionValue("highlander_comment_form_prompt"),disabled:!l||b||this.props.isSavingAnyOption("highlander_comment_form_prompt"),onChange:this.props.onOptionChange})),c().createElement("span",{className:"jp-form-setting-explanation"},__("A few catchy words to motivate your visitors to comment.","jetpack")),c().createElement(d.lX,null,c().createElement("span",{className:"jp-form-label-wide"},__("Color scheme","jetpack")),c().createElement(d.ih,i()({name:"jetpack_comment_form_color_scheme",value:this.props.getOptionValue("jetpack_comment_form_color_scheme"),disabled:!l||b||this.props.isSavingAnyOption("jetpack_comment_form_color_scheme"),onChange:this.props.onOptionChange},this.props,{validValues:this.props.validValues("jetpack_comment_form_color_scheme","comments")}))))),(t||n||r)&&c().createElement(m.Z,null,t&&c().createElement("div",{className:"jp-toggle-set"},c().createElement(d.C_,null,c().createElement(h.T,{slug:"gravatar-hovercards",compact:!0,activated:this.props.getOptionValue("gravatar-hovercards"),toggling:this.props.isSavingAnyOption("gravatar-hovercards"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},y.description))),c().createElement(g.Z,{text:__("Show Gravatar hovercards alongside comments.","jetpack"),link:y.learn_more_button,privacyLink:y.learn_more_button+"#privacy"})),n&&c().createElement("div",{className:"jp-toggle-set"},c().createElement(d.C_,null,c().createElement(p.Z,{checked:!!this.props.getOptionValue("wpcom_publish_comments_with_markdown","markdown"),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"])||"inactive"===this.props.getModuleOverride("markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_comments_with_markdown"]),onChange:this.handleMarkdownCommentsToggle},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable Markdown use for comments.","jetpack")))),c().createElement(g.Z,{text:__("Allow readers to use markdown in comments.","jetpack"),link:k.learn_more_button,privacyLink:k.learn_more_button+"#privacy"})),r&&c().createElement("div",{className:"jp-toggle-set"},c().createElement(d.C_,null,c().createElement(h.T,{slug:"comment-likes",compact:!0,disabled:w,activated:_,toggling:this.props.isSavingAnyOption("comment-likes"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable comment likes.","jetpack")))),c().createElement(g.Z,{text:__("Allow readers to like individual comments.","jetpack"),link:(0,u.Z)("jetpack-support-comment-likes"),privacyLink:(0,u.Z)("jetpack-support-comment-likes",{anchor:"privacy"})}))))}}const k=(0,b.u)(y)},9863:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(60742),d=n(93107),h=n(17752),f=n(41147),m=n(19555),g=n(27219),v=n(86087),b=n(20182);const __=u.__;class y extends c().Component{render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode},t=this.props.isModuleFound("comments"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("gravatar-hovercards"),s=this.props.isModuleFound("subscriptions"),o=this.props.isModuleFound("comment-likes");return(this.props.searchTerm||this.props.active)&&(t||s||n||r||o)?c().createElement("div",null,c().createElement(g.Z,null),c().createElement(p.Z,{title:this.props.searchTerm?__("Discussion","jetpack"):__("Manage advanced comment settings and grow your audience with email subscriptions.","jetpack"),className:"jp-settings-description"}),c().createElement(v.H,i()({},e,{isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride})),s&&c().createElement(b.Z,i()({},e,{isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl}))):null}}o()(y,"displayName","DiscussionSettings"),t.Z=(0,l.$j)((e=>({module:t=>(0,d.rT)(e,t),settings:(0,h.Gw)(e),isOfflineMode:(0,f.Ex)(e),isUnavailableInOfflineMode:t=>(0,f.t_)(e,t),isModuleFound:t=>(0,m.CX)(e,t),connectUrl:(0,f.AM)(e),isLinked:(0,f.BU)(e),getModuleOverride:t=>(0,d.Qy)(e,t)})))(y)},20182:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(65736),u=n(71415),p=n(11973),d=n(94069),h=n(60742),f=n(55735),m=n(77222),g=n(84277),v=n(27006),b=n(5e4),y=n(24951);const __=l.__;class k extends c().Component{constructor(e){super(e),o()(this,"getInitialState",(()=>({stb_enabled:this.props.getOptionValue("stb_enabled"),stc_enabled:this.props.getOptionValue("stc_enabled")}))),o()(this,"updateOptions",(e=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption("subscriptions",e))})),o()(this,"trackConfigureClick",(()=>{p.Z.tracks.recordJetpackClick("view-followers")})),o()(this,"handleSubscribeToBlogToggleChange",(()=>{this.updateOptions("stb_enabled")})),o()(this,"handleSubscribeToCommentToggleChange",(()=>{this.updateOptions("stc_enabled")})),this.state=this.getInitialState()}render(){const e=this.props.getModule("subscriptions"),t=this.props.getOptionValue("subscriptions"),n=this.props.isUnavailableInOfflineMode("subscriptions");return c().createElement(g.Z,i()({},this.props,{hideButton:!0,module:"subscriptions"}),c().createElement(v.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:e,support:{text:__("Allows readers to subscribe to your posts or comments, and receive notifications of new content by email.","jetpack"),link:(0,u.Z)("jetpack-support-subscriptions")}},c().createElement(m.T,{slug:"subscriptions",disabled:n,activated:t,toggling:this.props.isSavingAnyOption("subscriptions"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},e.description)),c().createElement(f.C_,null,c().createElement(d.Z,{checked:this.state.stb_enabled,disabled:!t||n||this.props.isSavingAnyOption(["subscriptions","stb_enabled"]),onChange:this.handleSubscribeToBlogToggleChange},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable the “subscribe to site” option on your comment form","jetpack"))),c().createElement(d.Z,{checked:this.state.stc_enabled,disabled:!t||n||this.props.isSavingAnyOption(["subscriptions","stc_enabled"]),onChange:this.handleSubscribeToCommentToggleChange},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable the “subscribe to comments” option on your comment form","jetpack"))))),(()=>!n&&t&&this.props.isLinked?c().createElement(h.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,u.Z)("calypso-people-email-followers",{site:this.props.siteRawUrl})},__("View your Email Followers","jetpack")):"")(),!this.props.isLinked&&!this.props.isOfflineMode&&c().createElement(y.Z,{feature:"subscriptions",featureLabel:__("Subscriptions","jetpack"),text:__("Connect to manage your subscriptions settings.","jetpack")}))}}t.Z=(0,b.u)(k)},30655:function(e,t){"use strict";const n=[9,32,37,38,39,40];let r=!1;t.Z=function(){document.addEventListener("keydown",(function(e){r||-1!==n.indexOf(e.keyCode)&&(r=!0,document.documentElement.classList.add("dops-accessible-focus"))})),document.addEventListener("mouseup",(function(){r&&(r=!1,document.documentElement.classList.remove("dops-accessible-focus"))}))}},11973:function(e,t,n){"use strict";var r=n(9481),i=n(80816);i.Z.setMcAnalyticsEnabled((0,r.Z)("mc_analytics_enabled")),i.Z.setGoogleAnalyticsEnabled((0,r.Z)("google_analytics_enabled"),(0,r.Z)("google_analytics_key")),t.Z=i.Z},34885:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r=n(69771);const i=()=>{var e;const{l10n:{locale:t}}=(0,r.__experimentalGetSettings)();if(t)return(e=>{const t=e.match(/^([a-z]{2,3})(_[a-z]{2}|_[a-z][a-z0-9]{4,7})?(?:_.*)?$/i);return t?`${t[1]}${t[2]?t[2]:""}`.replace("_","-"):"en-US"})(t);return null!==(e=window?.window?.navigator?.language)&&void 0!==e?e:"en-US"}},81200:function(e,t,n){"use strict";n.d(t,{p7:function(){return i},j2:function(){return s},Wg:function(){return o},JA:function(){return a},f3:function(){return c},lv:function(){return l},xf:function(){return u},G6:function(){return p},OE:function(){return d},sy:function(){return h},Qm:function(){return f},wm:function(){return m},_d:function(){return g},lj:function(){return v},Xz:function(){return b},NJ:function(){return y},ap:function(){return k},p2:function(){return w},yY:function(){return _},mg:function(){return E},tV:function(){return C},XL:function(){return S},LA:function(){return j},Us:function(){return M},dW:function(){return x},ux:function(){return N},Et:function(){return A},w2:function(){return O},b6:function(){return T},aS:function(){return P},th:function(){return I},JX:function(){return R},Ij:function(){return U},un:function(){return Z},WS:function(){return D},tl:function(){return L},sh:function(){return z},vS:function(){return B},v_:function(){return F},Bi:function(){return V},uz:function(){return q},np:function(){return H},ic:function(){return W},sT:function(){return $},ah:function(){return J},Vl:function(){return K},Dl:function(){return G},jI:function(){return Y},bm:function(){return X},V3:function(){return ae},N_:function(){return ce},eM:function(){return le},BD:function(){return ue},ps:function(){return pe},N8:function(){return de},r2:function(){return he},T5:function(){return fe},qb:function(){return me},MC:function(){return ve},Cv:function(){return be},oF:function(){return ye},ZH:function(){return ke},yy:function(){return we},Pu:function(){return _e},DM:function(){return Ee},G1:function(){return Ce},o2:function(){return Se},sc:function(){return je},lq:function(){return Me},dy:function(){return xe}});var r=n(92819);const i="business-bundle",s="business-bundle-2y",o="business-bundle-monthly",a="ecommerce-bundle",c="ecommerce-bundle-2y",l="ecommerce-bundle-monthly",u="value_bundle",p="value_bundle-2y",d="value_bundle-monthly",h="personal-bundle",f="personal-bundle-2y",m="personal-bundle-monthly",g="free_plan",v="jetpack_free",b="jetpack_premium",y="jetpack_business",k="jetpack_personal",w="jetpack_premium_monthly",_="jetpack_business_monthly",E="jetpack_personal_monthly",C="jetpack_backup_t1_yearly",S="jetpack_backup_t1_monthly",j="jetpack_backup_t2_yearly",M="jetpack_backup_t2_monthly",x="jetpack_search",N="jetpack_search_monthly",A="jetpack_security_t1_yearly",O="jetpack_security_t1_monthly",T="jetpack_security_t2_yearly",P="jetpack_security_t2_monthly",I="jetpack_complete",R="jetpack_complete_monthly",U="wpcom_search",Z="wpcom_search_monthly",D="jetpack_scan",L="jetpack_scan_monthly",z="jetpack_anti_spam",B="jetpack_anti_spam_monthly",F="jetpack_videopress",V="jetpack_videopress_monthly",q="vip",H="jetpack_backup_daily",W="jetpack_backup_daily_monthly",$="jetpack_backup_realtime",J="jetpack_backup_realtime_monthly",K="jetpack_security_daily",G="jetpack_security_daily_monthly",Y="jetpack_security_realtime",X="jetpack_security_realtime_monthly",Q=[b,y,k,w,_,E],ee=[A,O,T,P,K,G,Y,X],te=[A,O,T,P,i,s,o,a,c,l,q,"wpcom-enterprise",K,G,Y,X],ne=[C,S,j,M,H,W,$,J],re=[x,N,U,Z],ie=[D,L],se=[z,B],oe=[F,V],ae="spam-akismet-plus",ce="site-backups-jetpack",le="security-scanning-jetpack",ue="video-hosting-jetpack",pe="priority-support-jetpack",de="wordads-jetpack",he="google-analytics-jetpack",fe="search-jetpack",me="videopress-jetpack",ge={[pe]:A,[fe]:x,[le]:D,[ce]:C,[ae]:z,[ue]:A,[de]:A,[he]:A,[ae]:z,[me]:F};function ve(e){return(0,r.includes)(ne,e)}function be(e){return(0,r.includes)(re,e)}function ye(e){return ie.includes(e)}function ke(e){return oe.includes(e)}function we(e){return ve(e)||be(e)||ye(e)||function(e){return se.includes(e)}(e)||ke(e)}function _e(e){return ee.includes(e)}function Ee(e){return te.includes(e)}function Ce(e){return Q.includes(e)}function Se(e){return ge[e]}function je(e){switch(e){case v:case g:return"is-free-plan";case h:case f:case m:case k:case E:return"is-personal-plan";case u:case p:case d:case b:case w:return"is-premium-plan";case i:case s:case o:case y:case _:case a:case c:case l:return"is-business-plan";case A:case O:return"is-security-t1-plan";case T:case P:return"is-security-t2-plan";case I:case R:case q:return"is-complete-plan";case C:case S:return"is-backup-t1-plan";case j:case M:return"is-backup-t2-plan";case x:case N:case U:case Z:return"is-search-plan";case D:case L:return"is-scan-plan";case z:case B:return"is-anti-spam-plan";case F:case V:return"is-videopress-plan";case K:case G:return"is-daily-security-plan";case Y:case X:return"is-realtime-security-plan";case H:case W:return"is-daily-backup-plan";case $:case J:return"is-realtime-backup-plan";default:return""}}function Me(e){return["is-business-plan","is-backup-t1-plan","is-backup-t2-plan","is-security-t1-plan","is-security-t2-plan","is-complete-plan","is-realtime-security-plan","is-realtime-backup-plan"].includes(e)}const xe=e=>e.active&&(0,r.includes)([G,K,X,Y],e.product_slug)&&new Date(e.subscribed_date)<new Date("2021-10-07T00:00:00+00:00")},39444:function(e,t,n){"use strict";var r=n(59177);t.Z=(e,t)=>{const n=new r.Z;let i;n.open(e,null,"toolbar=0,location=0,status=0,menubar=0,"+n.getScreenCenterSpecs(780,700)),n.once("close",(()=>{let e=null;i&&i.keyring_id&&(e=Number(i.keyring_id)),t(e)})),n.on("message",(e=>i=e))}},82538:function(e,t,n){"use strict";function r(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch}n.d(t,{_:function(){return r}})},98772:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(12901),l=n(65736),u=n(71415),p=n(51438),d=n(39897),h=n(32199),f=n(55609),m=n(9818),g=n(96082),v=n(41776),b=n(83371),y=n(7507),k=n(77219),w=n(93107),_=n(41147),E=n(66552),C=n(88872),S=n(17752),j=n(19555),M=n(29955),x=n(63663),N=n(98362),A=n(86428),O=n(24451),T=n(4696),P=n(66765),I=n(73875),R=n(64296),U=n(66496),Z=n(43240),D=n(86338),L=n(11973),z=n(19570),B=n(9477),F=n(30701),V=n(29733),q=n(69307),H=n(98486),W=n(77909),$=n(74465);const __=l.__,J=["/recommendations","/recommendations/site-type","/recommendations/product-suggestions","/recommendations/product-purchased","/recommendations/woocommerce","/recommendations/monitor","/recommendations/related-posts","/recommendations/creative-mail","/recommendations/site-accelerator","/recommendations/summary"],K=["/","/dashboard","/reconnect","/my-plan","/plans"],G=["/settings","/security","/performance","/writing","/sharing","/discussion","/traffic","/privacy"];class Y extends o().Component{constructor(e){super(e),i()(this,"handleRouterWillLeave",(()=>{const e=__("There are unsaved settings in this tab that will be lost if you leave it. Proceed?","jetpack");return!!confirm(e)&&(window.setTimeout(this.props.clearUnsavedSettingsFlag,10),!0)})),i()(this,"initializeAnalytics",(()=>{const e=this.props.tracksUserData;e&&L.Z.initialize(e.userid,e.username,{blog_id:e.blogid})})),i()(this,"renderMainContent",(e=>{if(this.shouldShowWooConnectionScreen()){const e=this.props.location.state?.previousPath,t=e&&"/woo-setup"!==e?`#${e}`:"#/dashboard";return o().createElement($.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,title:__("Welcome to Jetpack! Security, Growth, & Performance tools for WordPress businesses","jetpack"),logo:o().createElement("img",{src:H.hp+"/jetpack-woocommerce-logo.svg",alt:__("Jetpack and WooCommerce","jetpack")}),buttonLabel:__("Set up Jetpack","jetpack"),redirectUri:"admin.php?page=jetpack",redirectTo:t,from:this.props.location.pathname,isSiteConnected:this.props.isSiteConnected,setHasSeenWCConnectionModal:this.props.setHasSeenWCConnectionModal},o().createElement("p",null,__("Jetpack is the perfect companion plugin for WooCommerce - made by WordPress experts to make your store faster, safer, and to help grow your business.","jetpack")))}if(this.props.partnerCoupon){const e=new URLSearchParams(window.location.search).get("showCouponRedemption");if(!this.props.isSiteConnected||e)return o().createElement(p.e,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,images:["/images/connect-right-partner-backup.png"],assetBaseUrl:this.props.pluginBaseUrl,connectionStatus:this.props.connectionStatus,partnerCoupon:this.props.partnerCoupon,siteRawUrl:this.props.siteRawUrl,tracksUserData:!!this.props.tracksUserData,analytics:L.Z})}if(this.isUserConnectScreen()&&(this.props.userCanManageModules||this.props.hasConnectedOwner))return o().createElement(d.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,images:["/images/connect-right-secondary.png"],assetBaseUrl:this.props.pluginBaseUrl,title:this.props.connectingUserFeatureLabel?(0,l.sprintf)(
/* translators: placeholder is a feature label (e.g. SEO, Notifications) */
__("Unlock %s and more amazing features","jetpack"),this.props.connectingUserFeatureLabel):__("Unlock all the amazing features of Jetpack by connecting now","jetpack"),buttonLabel:__("Connect your user account","jetpack"),redirectUri:"admin.php?page=jetpack"},o().createElement("ul",null,o().createElement("li",null,__("Receive instant downtime alerts","jetpack")),o().createElement("li",null,__("Automatically share your content on social media","jetpack")),o().createElement("li",null,__("Let your subscribers know when you post","jetpack")),o().createElement("li",null,__("Receive notifications about new likes and comments","jetpack")),o().createElement("li",null,__("Let visitors share your content on social media","jetpack")),o().createElement("li",null,(0,q.createInterpolateElement)(__("And more! <a>See all Jetpack features</a>","jetpack"),{a:o().createElement("a",{href:(0,u.Z)("jetpack-features"),target:"_blank",rel:"noreferrer"})}),o().createElement("a",{className:"jp-connection-screen-icon",href:(0,u.Z)("jetpack-features"),target:"_blank",rel:"noreferrer"},o().createElement(f.Dashicon,{icon:"external"})))));if(!this.props.userCanManageModules)return!!this.props.siteConnectionStatus&&o().createElement("div",{"aria-live":"assertive"},o().createElement(R.Z,this.props));if(this.isMainConnectScreen())return o().createElement(d.Z,{apiNonce:this.props.apiNonce,registrationNonce:this.props.registrationNonce,apiRoot:this.props.apiRoot,images:["/images/connect-right.jpg"],assetBaseUrl:this.props.pluginBaseUrl,autoTrigger:this.shouldAutoTriggerConnection(),redirectUri:"admin.php?page=jetpack"},o().createElement("p",null,__("Secure and speed up your site for free with Jetpack's powerful WordPress tools.","jetpack")),o().createElement("ul",null,o().createElement("li",null,__("Measure your impact with beautiful stats","jetpack")),o().createElement("li",null,__("Speed up your site with optimized images","jetpack")),o().createElement("li",null,__("Protect your site against bot attacks","jetpack")),o().createElement("li",null,__("Get notifications if your site goes offline","jetpack")),o().createElement("li",null,__("Enhance your site with dozens of other features","jetpack"))));const t=o().createElement(b.Z,{routeName:this.props.routeName,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl});let n,r=o().createElement(v.Z,{routeName:this.props.routeName});switch(e){case"/dashboard":case"/reconnect":case"/disconnect":case"/connect-user":case"/woo-setup":case"/setup":n=o().createElement(A.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/my-plan":n=o().createElement(O.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus});break;case"/plans":case"/plans-prompt":window.location.href=(0,u.Z)("jetpack-plans",{site:this.props.siteRawUrl});break;case"/settings":case"/security":case"/performance":case"/writing":case"/sharing":case"/discussion":case"/traffic":case"/privacy":r=t,n=o().createElement(y.Z,{siteAdminUrl:this.props.siteAdminUrl,siteRawUrl:this.props.siteRawUrl,searchTerm:this.props.searchTerm,rewindStatus:this.props.rewindStatus,userCanManageModules:this.props.userCanManageModules});break;case"/license/activation":this.props.isLinked&&this.props.isConnectionOwner?(r=null,n=o().createElement(W.I,{assetBaseUrl:this.props.pluginBaseUrl,lockImage:"/images/jetpack-license-activation-with-lock.png",siteRawUrl:this.props.siteRawUrl,successImage:"/images/jetpack-license-activation-with-success.png",onActivationSuccess:this.onLicenseActivationSuccess,siteAdminUrl:this.props.siteAdminUrl,currentRecommendationsStep:this.props.currentRecommendationsStep})):(this.props.history.replace("/dashboard"),n=this.getAtAGlance());break;case"/recommendations":case"/recommendations/site-type":case"/recommendations/product-suggestions":case"/recommendations/product-purchased":case"/recommendations/woocommerce":case"/recommendations/monitor":case"/recommendations/related-posts":case"/recommendations/creative-mail":case"/recommendations/site-accelerator":case"/recommendations/summary":this.props.showRecommendations?n=o().createElement(M.V,null):(this.props.history.replace("/dashboard"),n=this.getAtAGlance());break;default:if(N.w7.includes(e)){n=o().createElement(x.Z,null);break}this.props.history.replace("/dashboard"),n=this.getAtAGlance()}return this.props.isWoaSite?window.wpNavMenuClassChange({dashboard:1,settings:1}):window.wpNavMenuClassChange(),o().createElement("div",{"aria-live":"assertive",className:""+(this.shouldBlurMainContent()?"blur":"")},r,n)})),this.closeReconnectModal=this.closeReconnectModal.bind(this),this.onLicenseActivationSuccess=this.onLicenseActivationSuccess.bind(this)}UNSAFE_componentWillMount(){this.props.setInitialState(),z.ZP.setApiRoot(this.props.apiRoot),z.ZP.setApiNonce(this.props.apiNonce),this.initializeAnalytics(),window.addEventListener("beforeunload",this.props.clearUnsavedSettingsFlag),this.props.isSiteConnected&&L.Z.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion})}componentDidMount(){const e=jQuery(".jp-jetpack-connect__container"),t=jQuery(".jp-connect-full__container");e&&t.length>0&&t.prependTo(e),this.props.isWooCommerceActive&&!this.props.hasSeenWCConnectionModal&&this.props.userCanManageModules&&this.props.history.replace({pathname:"/woo-setup",state:{previousPath:this.props.location.pathname}})}shouldComponentUpdate(e){return!["/wpbody-content","/wp-toolbar"].includes(e.location.pathname)&&(JSON.stringify(e.connectionStatus)!==JSON.stringify(this.props.connectionStatus)||e.siteConnectionStatus!==this.props.siteConnectionStatus||e.isLinked!==this.props.isLinked||e.isConnectingUser!==this.props.isConnectingUser||e.location.pathname!==this.props.location.pathname||e.searchTerm!==this.props.searchTerm||e.rewindStatus!==this.props.rewindStatus||e.areThereUnsavedSettings!==this.props.areThereUnsavedSettings||e.isReconnectingSite!==this.props.isReconnectingSite)}componentDidUpdate(e){if(e.location.pathname!==this.props.location.pathname&&this.props.isSiteConnected&&L.Z.tracks.recordEvent("jetpack_wpa_page_view",{path:this.props.location.pathname,current_version:this.props.currentVersion}),e.siteConnectionStatus!==this.props.siteConnectionStatus){const e=jQuery("#toplevel_page_jetpack").find("ul.wp-submenu li");e.find('a[href$="#/settings"]').hide(),e.find('a[href$="admin.php?page=stats"]').hide(),e.find('a[href$="admin.php?page=jetpack-search"]').hide()}this.props.setConnectionStatus(this.props.connectionStatus)}getAtAGlance(){return o().createElement(A.Z,{siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,rewindStatus:this.props.rewindStatus})}shouldShowAppsCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&K.includes(this.props.location.pathname)}shouldShowSupportCard(){return this.props.isSiteConnected&&!this.shouldShowWooConnectionScreen()&&K.includes(this.props.location.pathname)}shouldShowRewindStatus(){return this.props.isSiteConnected&&K.includes(this.props.location.pathname)}shouldShowMasthead(){return[...K,...J,...G].includes(this.props.location.pathname)}shouldShowFooter(){return[...K,...G,...J,...N.w7].includes(this.props.location.pathname)}shouldBlurMainContent(){return this.props.isReconnectingSite}shouldShowReconnectModal(){return"/reconnect"===this.props.location.pathname}closeReconnectModal(){this.props.history.replace("/dashboard")}isMainConnectScreen(){return!1===this.props.siteConnectionStatus&&this.props.userCanConnectSite}isUserConnectScreen(){return"/connect-user"===this.props.location.pathname}shouldShowWooConnectionScreen(){return"/woo-setup"===this.props.location.pathname}shouldConnectUser(){return this.props.isConnectingUser}connectUser(){this.props.resetConnectUser(),this.props.history.replace("/connect-user")}isLicensingScreen(){return this.props.location.pathname.startsWith("/license")}shouldAutoTriggerConnection(){return this.props.location.pathname.startsWith("/setup")}onLicenseActivationSuccess(){this.props.updateUserLicensesCounts().then((()=>{this.props.updateLicensingActivationNoticeDismiss()})),this.props.fetchSiteData(),this.props.fetchSitePurchases(),this.props.fetchModules(),this.props.fetchSettings()}render(){const e=["jp-lower"];return this.isMainConnectScreen()&&e.push("jp-main-connect-screen"),this.isUserConnectScreen()&&e.push("jp-user-connect-screen"),this.isLicensingScreen()&&e.push("jp-licensing-screen"),o().createElement("div",null,this.shouldShowReconnectModal()&&o().createElement(V.Z,{show:!0,onHide:this.closeReconnectModal}),this.shouldShowMasthead()&&o().createElement(g.Z,{location:this.props.location}),o().createElement("div",{className:e.join(" ")},this.shouldShowRewindStatus()&&o().createElement(B.Z,null),o().createElement(Z.Z,null),o().createElement(U.ZP,null),this.shouldConnectUser()&&this.connectUser(),o().createElement(c.NL,{when:this.props.areThereUnsavedSettings,message:this.handleRouterWillLeave}),this.renderMainContent(this.props.location.pathname),this.shouldShowSupportCard()&&o().createElement(P.Z,{path:this.props.location.pathname}),this.shouldShowAppsCard()&&o().createElement(I.Z,null)),this.shouldShowFooter()&&o().createElement(T.Z,{siteAdminUrl:this.props.siteAdminUrl}),o().createElement(D.Z,{analytics:L.Z}))}}t.Z=(0,a.$j)((e=>({connectionStatus:(0,_.Zp)(e),siteConnectionStatus:(0,_.Gz)(e),isLinked:(0,_.BU)(e),isConnectingUser:(0,_.zq)(e),hasConnectedOwner:(0,_.it)(e),isConnectionOwner:(0,_.QM)(e),siteRawUrl:(0,E.JR)(e),siteAdminUrl:(0,E.wW)(e),searchTerm:(0,j.He)(e),apiRoot:(0,E.yB)(e),apiNonce:(0,E.VY)(e),registrationNonce:(0,E.H$)(e),tracksUserData:(0,E.hv)(e),areThereUnsavedSettings:(0,S.GD)(e),userCanManageModules:(0,E.pK)(e),userCanConnectSite:(0,E.Mc)(e),isSiteConnected:(0,_.q7)(e),isReconnectingSite:(0,_.O_)(e),rewindStatus:(0,F.of)(e),currentVersion:(0,E.w1)(e),showRecommendations:(0,E.mb)(e),pluginBaseUrl:(0,E.wB)(e),connectUrl:(0,_.AM)(e),connectingUserFeatureLabel:(0,_.xP)(e),isWoaSite:(0,E.Pw)(e),isWooCommerceActive:(0,E.nP)(e),hasSeenWCConnectionModal:(0,_.rH)(e),partnerCoupon:(0,E.DV)(e),currentRecommendationsStep:(0,E.rd)(e)})),(e=>({setInitialState:()=>e((0,E.KY)()),clearUnsavedSettingsFlag:()=>e((0,S._1)()),reconnectSite:()=>e((0,_.xK)()),setHasSeenWCConnectionModal:()=>e((0,_.qJ)()),resetConnectUser:()=>e((0,_.HD)()),updateLicensingActivationNoticeDismiss:()=>e((0,k.bT)()),updateUserLicensesCounts:()=>e((0,k.Ng)()),fetchSiteData:()=>e((0,C.tO)()),fetchSitePurchases:()=>e((0,C.Z_)()),fetchModules:()=>e((0,w.Z$)()),fetchSettings:()=>e((0,S.wv)())})))((0,m.withDispatch)((e=>({setConnectionStatus:t=>{e(h.t).setConnectionStatus(t)}})))((0,c.EN)(Y))),window.wpNavMenuClassChange=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dashboard:1,settings:2},t=window.location.hash;jQuery(".current").each((function(e,t){jQuery(t).removeClass("current")}));const n=e=>jQuery("#toplevel_page_jetpack").find("li").filter((function(t){return t===e}))[0];t=t.split("?")[0].replace(/#/,""),K.includes(t)||J.includes(t)||N.w7.includes(t)?n(e.dashboard).classList.add("current"):G.includes(t)&&n(e.settings).classList.add("current");const r=jQuery("body");r.on("click",'a[href$="#/dashboard"], a[href$="#/settings"], .jp-dash-section-header__settings[href="#/security"], .dops-button[href="#/my-plan"], .dops-button[href="#/plans"], .jp-dash-section-header__external-link[href="#/security"]',(function(){window.scrollTo(0,0)})),r.on("click",".jetpack-js-stop-propagation",(function(e){e.stopPropagation()}))}},40767:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(92819),i=n(2571);function s(e){(0,r.assign)(e,i.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},94614:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});const r="http:",i="__domain__.invalid",s=`http://${i}`;function o(e,t){const n=new URL(e,s);t?n.searchParams.set("s",t):n.searchParams.delete("s"),n.protocol=r,n.host=i,n.port="",n.username="",n.password="";let o=n.href.replace(s,"");return o=e.startsWith("/")?o:o.substring(1),o.replace(/%20/g,"+")}},71064:function(e,t,n){"use strict";var r=n(90922),i=n.n(r),s=n(94614);const o=i()("calypso:url-search");t.Z={getInitialState:function(){return{searchOpen:!1}},UNSAFE_componentWillReceiveProps:function(e){e.search||this.setState({searchOpen:!1})},doSearch:function(e){let t;this.setState({searchOpen:!1!==e}),this.onSearch?this.onSearch(e):(t=this.buildUrl&&"function"==typeof this.buildUrl?this.buildUrl(window.location.href,e):(0,s.Z)(window.location.href,e),o("search posts for:",e),o("setting URL: "+t),window.location.href=t)},getSearchOpen:function(){return!1!==this.state.searchOpen||this.props.search}}},24451:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(88872),a=n(27219),c=n(41147),l=n(94091),u=n(18676);t.Z=(0,s.$j)((e=>({activeFeatures:(0,o.$l)(e),activeProducts:(0,o.p)(e),availableFeatures:(0,o.ms)(e),getSiteConnectionStatus:()=>(0,c.Gz)(e),hasActiveSearchPurchase:(0,o.o$)(e),purchases:(0,o.qn)(e),sitePlan:(0,o.UL)(e)})))((function(e){let t=e.sitePlan.product_slug||"",n=e.availableFeatures,r=e.activeFeatures;return"offline"===e.getSiteConnectionStatus(e)&&(t="offline",n={},r={}),i().createElement(i().Fragment,null,i().createElement(a.Z,null),i().createElement(l.Z,{activeProducts:e.activeProducts,plan:t,purchases:e.purchases,siteAdminUrl:e.siteAdminUrl}),i().createElement(u.Z,{activeFeatures:r,availableFeatures:n,hasActiveSearchPurchase:e.hasActiveSearchPurchase,plan:t,rewindStatus:e.rewindStatus,siteAdminUrl:e.siteAdminUrl,siteRawUrl:e.siteRawUrl}))}))},18676:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(65736),p=n(71415),d=n(11973),h=n(9913),f=n(81200),m=n(92819),g=n(98486),v=n(61744),b=n(93107),y=n(39772),k=n(36965),w=n(15142),_=n(66552);const __=u.__;class E extends o().Component{constructor(){super(...arguments),i()(this,"trackPlansClick",(e=>{d.Z.tracks.recordJetpackClick({page:"my-plan",target:e,plan:this.props.plan})})),i()(this,"handleButtonClickForTracking",(e=>()=>this.trackPlansClick(e))),i()(this,"activateAds",(()=>{this.props.activateModule("wordads"),this.trackPlansClick("activate_wordads")})),i()(this,"activatePublicize",(()=>{this.props.activateModule("publicize"),this.trackPlansClick("activate_publicize")})),i()(this,"activateVideoPress",(()=>{this.props.activateFeature("videopress"),this.trackPlansClick("activate_videopress")})),i()(this,"activateGoogleAnalytics",(()=>{this.props.activateModule("google-analytics"),this.trackPlansClick("activate_ga")}))}render(){let e="";const t="offline"!==this.props.plan?(0,f.sc)(this.props.plan):"offline",n=(0,m.includes)(["is-premium-plan","is-business-plan","is-security-t1-plan","is-security-t2-plan","is-complete-plan","is-daily-security-plan","is-realtime-security-plan"],t),r="active"===(0,m.get)(this.props.rewindStatus,["state"],!1),i=!this.props.showBackups||!r&&"unavailable"!==(0,m.get)(this.props.rewindStatus,["state"],!1),s=e=>{const{title:t,description:n}=e;return o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-backup.svg",className:"jp-landing__plan-features-icon",alt:__("A Jetpack Site securely backed up with Jetpack Backup","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},t),o().createElement("p",null,n),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_backup_dash"),href:(0,p.Z)("calypso-activity-log",{site:this.props.siteRawUrl})},__("View your backups","jetpack"))))},a=()=>{if(i)return;if(r)return o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site backups","jetpack")),o().createElement("p",null,__("Real-time backup of all your site data with unlimited space, one-click restores, and automated security scanning.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_security_dash_rewind"),href:(0,p.Z)("calypso-activity-log",{site:this.props.siteRawUrl})},__("View your security activity","jetpack"))));let e="";switch(t){case"is-personal-plan":e=__("Daily backup of all your site data with unlimited space and one-click restores","jetpack");break;case"is-premium-plan":e=__("Daily backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support","jetpack");break;case"is-business-plan":e=__("Real-time backup of all your site data with unlimited space, one-click restores, automated security scanning, and priority support","jetpack");break;default:e=""}return o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site security","jetpack")),o().createElement("p",null,e+__(" (powered by VaultPress).","jetpack")),this.props.isPluginInstalled("vaultpress/vaultpress.php")&&this.props.isPluginActive("vaultpress/vaultpress.php")?o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_security_dash"),href:(0,p.Z)("vaultpress-dashboard")},__("View your security dashboard","jetpack")):o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("configure_vault"),href:(0,p.Z)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:"only=vaultpress"})},__("View settings","jetpack"))))};let c;"is-daily-backup-plan"===t&&(c=s({title:__("Automated Daily Backups","jetpack"),description:__("We back up your website every day, so you never have to worry about your data again.","jetpack")})),["is-backup-t1-plan","is-backup-t2-plan","is-realtime-backup-plan"].includes(t)&&(c=s({title:__("Automated real-time backups","jetpack"),description:__("We back up your website with every change you make, making it easy to fix your mistakes.","jetpack")}));const l=()=>o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-search-icon.svg",className:"jp-landing__plan-features-icon",alt:__("A Jetpack Site with the power of Jetpack Search","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Instant search and filtering","jetpack")),o().createElement("p",null,__("Relevant search results and filtering tightly integrated with your theme.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_search_customizer"),href:this.props.siteAdminUrl+"admin.php?page=jetpack-search-configure"},__("Customize Search","jetpack"))));switch(t){case"is-personal-plan":case"is-premium-plan":case"is-security-t1-plan":case"is-security-t2-plan":case"is-business-plan":case"is-complete-plan":case"is-daily-security-plan":case"is-realtime-security-plan":e=o().createElement("div",{className:"jp-landing__plan-features"},"is-personal-plan"===t&&a(),"is-premium-plan"===t&&a(),"is-business-plan"===t&&a(),this.props.hasActiveSearchPurchase&&l(),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-speed-icon.svg",className:"jp-landing__plan-features-icon",alt:__("A fast and performant website","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Optimized performance","jetpack")),o().createElement("p",null,__("Load pages faster by serving your images from our global network of servers.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("paid_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance"},__("Make your site faster","jetpack")))),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-spam.svg",className:"jp-landing__plan-features-icon",alt:__("A folder holding real comments","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Anti-spam","jetpack")),o().createElement("p",null,__("Spam is automatically blocked from your comments.","jetpack")),this.props.isPluginInstalled("akismet/akismet.php")&&this.props.isPluginActive("akismet/akismet.php")?o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_spam_stats"),href:this.props.siteAdminUrl+"admin.php?page=akismet-key-config"},__("View your spam stats","jetpack")):o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("configure_akismet"),href:(0,p.Z)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:"only=akismet"})},__("View settings","jetpack")))),n&&"inactive"!==this.props.getModuleOverride("videopress")&&o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-video-hosting.svg",className:"jp-landing__plan-features-icon",alt:__("A cloud with multiple types of content floating around it","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("VideoPress","jetpack")),o().createElement("p",null,__("High-speed, high-definition video hosting with no third-party ads.","jetpack")),this.props.getFeatureState("videopress")?o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("upload_videos"),href:this.props.siteAdminUrl+"upload.php"},__("Upload videos","jetpack")):o().createElement(h.Z,{onClick:this.activateVideoPress,disabled:this.props.isActivatingFeature("videopress")},__("Activate VideoPress","jetpack")))),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-site-activity.svg",className:"jp-landing__plan-features-icon",alt:__("Interface showing a chronological list of changes and updates in a site","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site activity","jetpack")),o().createElement("p",null,__("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:(0,p.Z)("calypso-activity-log",{site:this.props.siteRawUrl})},__("View your site activity","jetpack")))),n&&"inactive"!==this.props.getModuleOverride("wordads")&&o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-wordads.svg",className:"jp-landing__plan-features-icon",alt:__("A chart showing an healthy increase in earnings","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Monetize your site with ads","jetpack")),o().createElement("p",null,__("WordAds lets you earn money by displaying promotional content. Start earning today.","jetpack")),this.props.isModuleActivated("wordads")?o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_earnings"),href:(0,p.Z)("wpcom-ads-earnings",{site:this.props.siteRawUrl})},__("View your earnings","jetpack")):o().createElement(h.Z,{onClick:this.activateAds,disabled:this.props.isActivatingModule("wordads")},__("Start earning","jetpack")))),n&&"inactive"!==this.props.getModuleOverride("google-analytics")&&o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-google-analytics.svg",className:"jp-landing__plan-features-icon",alt:__("Site stats showing an evolution in traffic and engagement","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Google Analytics","jetpack")),o().createElement("p",null,__("Complement WordPress.com’s stats with Google’s in-depth look at your visitors and traffic patterns.","jetpack")),this.props.isModuleActivated("google-analytics")?o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("configure_ga"),href:(0,p.Z)("calypso-marketing-traffic",{site:this.props.siteRawUrl})},__("Configure Google Analytics","jetpack")):o().createElement(h.Z,{onClick:this.activateGoogleAnalytics,disabled:this.props.isActivatingModule("google-analytics")},__("Activate Google Analytics","jetpack")))),n&&"inactive"!==this.props.getModuleOverride("publicize")&&o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-marketing.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Marketing automation","jetpack")),o().createElement("p",null,__("Schedule unlimited tweets, Facebook posts, and other social posts in advance.","jetpack")),this.props.isModuleActivated("publicize")?o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("schedule_posts"),href:(0,p.Z)("calypso-edit-posts",{site:this.props.siteRawUrl})},__("Schedule posts","jetpack")):o().createElement(h.Z,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize")},__("Activate Publicize","jetpack")))));break;case"is-free-plan":case"is-backup-t1-plan":case"is-backup-t2-plan":case"is-search-plan":case"offline":case"is-daily-backup-plan":case"is-realtime-backup-plan":e=o().createElement("div",{className:"jp-landing__plan-features"},c,this.props.hasActiveSearchPurchase&&l(),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-security.svg",className:"jp-landing__plan-features-icon",alt:__("A secure site, locked and protected by Jetpack","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Always-on security","jetpack")),o().createElement("p",null,__("Prevent login attacks, and get instant notifications when there’s an issue with your site.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("free_security"),href:(0,p.Z)("calypso-settings-security",{site:this.props.siteRawUrl})},__("Set up your site security","jetpack")))),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-speed-icon.svg",className:"jp-landing__plan-features-icon",alt:__("A fast and performant website","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Optimized performance","jetpack")),o().createElement("p",null,__("Load pages faster by serving your images from our global network of servers.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("free_performance"),href:this.props.siteAdminUrl+"admin.php?page=jetpack#/performance"},__("Make your site faster","jetpack")))),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-themes.svg",className:"jp-landing__plan-features-icon",alt:__("A wide variety of themes and tools to customize a site","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Design the perfect website","jetpack")),o().createElement("p",null,__("Get access to professionally crafted themes offered on WordPress.com, and customize your site exactly how you like it.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("free_themes"),href:(0,p.Z)("calypso-themes",{site:this.props.siteRawUrl})},__("Explore themes","jetpack")))),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-performance-icon.svg",className:"jp-landing__plan-features-icon",alt:__("Site stats showing an evolution in traffic and engagement","jetpack")})),"inactive"!==this.props.getModuleOverride("publicize")&&o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Increase traffic to your site","jetpack")),o().createElement("p",null,__("Reach a wider audience by automatically sharing your posts on social media.","jetpack")),this.props.isModuleActivated("publicize")?o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("free_sharing"),href:(0,p.Z)("calypso-marketing-connections",{site:this.props.siteRawUrl})},__("Start sharing","jetpack")):o().createElement(h.Z,{onClick:this.activatePublicize,disabled:this.props.isActivatingModule("publicize")},__("Activate Publicize","jetpack")))),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-site-activity.svg",className:"jp-landing__plan-features-icon",alt:__("Interface showing a chronological list of changes and updates in a site","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Site activity","jetpack")),o().createElement("p",null,__("View a chronological list of all the changes and updates to your site in an organized, readable way.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("view_site_activity"),href:(0,p.Z)("calypso-activity-log",{site:this.props.siteRawUrl})},__("View your site activity","jetpack")))),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("div",{className:"jp-landing__plan-features-img"},o().createElement("img",{src:g.hp+"/jetpack-support.svg",className:"jp-landing__plan-features-icon",alt:__("Chat bubbles representing getting in touch with support","jetpack")})),o().createElement("div",{className:"jp-landing__plan-features-text"},o().createElement("h3",{className:"jp-landing__plan-features-title"},__("Support documentation","jetpack")),o().createElement("p",null,__("Need help? Learn about getting started, customizing your site, using advanced code snippets, and more.","jetpack")),o().createElement(h.Z,{onClick:this.handleButtonClickForTracking("free_support_documentation"),href:(0,p.Z)("jetpack-support")},__("Search support docs","jetpack")))));break;default:e=o().createElement("div",{className:"jp-landing__plan-features is-loading"},o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")),o().createElement("div",{className:"jp-landing__plan-features-card"},o().createElement("h3",{className:"jp-landing__plan-features-title is-placeholder"}," "),o().createElement("p",{className:"jp-landing__plan-features-text is-placeholder"}," ")))}return o().createElement("div",null,o().createElement(w.Z,null),e)}}i()(E,"propTypes",{plan:c().string}),i()(E,"defaultProps",{plan:""}),t.Z=(0,l.$j)((e=>({isFetchingPluginsData:(0,v.vz)(e),isPluginActive:t=>(0,v.TB)(e,t),isPluginInstalled:t=>(0,v.P8)(e,t),isModuleActivated:t=>(0,b.mp)(e,t),isActivatingModule:t=>(0,b.ZY)(e,t),getModuleOverride:t=>(0,b.Qy)(e,t),showBackups:(0,_.xR)(e),getFeatureState:t=>(0,k.$8)(e,t),isActivatingFeature:t=>(0,k.Cu)(e,t)})),(e=>({fetchPluginsData:()=>e((0,v.s4)()),activateModule:t=>e((0,b.d)(t)),activateFeature:t=>e((0,y.VP)({[t]:!0}))})))(E)},18522:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(11268),o=n.n(s),a=n(89105),c=n.n(a),l=n(3218);const u=e=>{let{productSlug:t,action:n,isError:r,isPlaceholder:s,details:o,tagLine:a,title:u}=e;const p=c()("my-plan-card",{"is-placeholder":s,"has-action-only":n&&!o&&!s}),d=c()("my-plan-card__details",{"is-error":r});return i().createElement("div",{className:p},i().createElement("div",{className:"my-plan-card__primary"},i().createElement("div",{className:"my-plan-card__icon"},i().createElement(l.Z,{plan:t,alt:u})),i().createElement("div",{className:"my-plan-card__header"},u&&i().createElement("h2",{className:"my-plan-card__title"},u),a&&i().createElement("p",{className:"my-plan-card__tag-line"},a))),(o||n||s)&&i().createElement("div",{className:"my-plan-card__secondary"},i().createElement("div",{className:d},s?null:o),i().createElement("div",{className:"my-plan-card__action"},s?null:n)))};u.propTypes={productSlug:o().string.isRequired,action:o().oneOfType([o().node,o().element]),isError:o().bool,isPlaceholder:o().bool,details:o().oneOfType([o().string,o().node,o().element]),tagLine:o().oneOfType([o().string,o().node,o().element]),title:o().oneOfType([o().string,o().node,o().element])},t.Z=u},94091:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(11268),u=n.n(l),p=n(2620),d=n(89105),h=n.n(d),f=n(92819),m=n(69307),g=n(65736),v=n(71415),b=n(11973),y=n(9913),k=n(60742),w=n(68961),_=n(35179),E=n(57028),C=n(81200),S=n(66552),j=n(77219),M=n(87024),x=n(61595),N=n(18522);const __=g.__,_n=g._n,_x=g._x;class A extends c().Component{constructor(){super(...arguments),o()(this,"renderLicensingActions",(()=>{const{hasDetachedUserLicenses:e,showRecommendations:t,siteAdminUrl:n,purchases:r}=this.props;if(!t)return null;const i=!!r?.length||e;return c().createElement(k.Z,{compact:!0},c().createElement("div",{className:"jp-landing__licensing-actions"},e&&c().createElement("span",null,__("Got a license key? Activate it here.","jetpack")),c().createElement("div",{className:h()("jp-landing__licensing-actions-item",{"no-licenses":!e,"no-purchases":!i})},i&&c().createElement(w.Z,{className:"all-purchases__link",href:(0,v.Z)("calypso-purchases"),onClick:this.trackAllPurchasesClick,target:"_blank",icon:!0},__("View all purchases","jetpack")),e?c().createElement(y.Z,{href:n+"admin.php?page=jetpack#/license/activation",onClick:this.trackLicenseActivationClick,primary:!0},_x("Activate a Product","Navigation item.","jetpack")):c().createElement(y.Z,{href:n+"admin.php?page=jetpack#/recommendations",onClick:this.trackRecommendationsClick,primary:!0},_x("Recommendations","Navigation item.","jetpack")))))})),o()(this,"trackAllPurchasesClick",(()=>{b.Z.tracks.recordJetpackClick({target:"calypso_purchases_link",page:"my-plan"})})),o()(this,"trackLicenseActivationClick",(()=>{b.Z.tracks.recordJetpackClick({target:"licensing_activation_button",path:"licensing/activation",page:"my-plan"})})),o()(this,"trackRecommendationsClick",(()=>{b.Z.tracks.recordJetpackClick({target:"recommendations-button",page:"my-plan"})}))}getProductProps(e){const{displayBackups:t,dateFormat:n,purchases:r}=this.props,i={productSlug:e};if(!e)return{...i,isPlaceholder:!0};const s=(0,f.find)(r,(t=>t.product_slug===e));let o,a;switch(s&&(o=c().createElement(_.Z,{dateFormat:n,expiryDate:s.expiry_date,purchaseDate:s.subscribed_date,isRefundable:s.is_refundable}),a="1"===s.active?c().createElement(M.w,null):null),(0,C.sc)(e)){case"is-free-plan":return{...i,tagLine:(0,m.createInterpolateElement)(__("Worried about security? Get backups, automated security fixes and more: <a>Upgrade now</a>","jetpack"),{a:c().createElement(E.Z,{source:"my-plan-header-free-plan-text-link",target:"upgrade-now",feature:"my-plan-header-free-upgrade"})}),title:__("Jetpack Free","jetpack")};case"is-personal-plan":return{...i,details:o,tagLine:t?__("Daily backups, spam filtering, and priority support.","jetpack"):__("Spam filtering and priority support.","jetpack",0),title:__("Jetpack Personal","jetpack")};case"is-premium-plan":return{...i,details:[a,o],tagLine:__("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.","jetpack"),title:__("Jetpack Premium","jetpack")};case"is-business-plan":return{...i,details:[a,o],tagLine:__("Full security suite, marketing and revenue automation tools, unlimited video hosting, and priority support.","jetpack"),title:__("Jetpack Professional","jetpack")};case"is-security-t1-plan":return{...i,details:[a,o],tagLine:(0,m.createInterpolateElement)((0,g.sprintf)(
/* translators: %1$d is the number of gigabytes of storage space the site has. */
_n("Enjoy the peace of mind of complete site protection. You have <strong>%1$dGB</strong> of storage space.","Enjoy the peace of mind of complete site protection. You have <strong>%1$dGB</strong> of storage space.",10,"jetpack"),10),{strong:c().createElement("strong",null)}),title:__("Jetpack Security","jetpack")};case"is-security-t2-plan":return{...i,details:[a,o],tagLine:(0,m.createInterpolateElement)((0,g.sprintf)(
/* translators: %1$d is the number of gigabytes of storage space the site has. */
_n("Enjoy the peace of mind of complete site protection. You have <strong>%1$dTB</strong> of storage space.","Enjoy the peace of mind of complete site protection. You have <strong>%1$dTB</strong> of storage space.",1,"jetpack"),1),{strong:c().createElement("strong",null)}),title:__("Jetpack Security","jetpack")};case"is-complete-plan":return{...i,details:[a,o],tagLine:__("The most powerful WordPress sites: Top-tier security bundle, enhanced search.","jetpack"),title:__("Jetpack Complete","jetpack")};case"is-backup-t1-plan":return{...i,details:[a,o],tagLine:(0,m.createInterpolateElement)((0,g.sprintf)(
/* translators: %1$d is the number of gigabytes of storage space the site has. */
_n("Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dGB</strong> of storage space.",10,"jetpack"),10),{strong:c().createElement("strong",null)}),title:__("Jetpack Backup","jetpack")};case"is-backup-t2-plan":return{...i,details:[a,o],tagLine:(0,m.createInterpolateElement)((0,g.sprintf)(
/* translators: %1$d is the number of terabytes of storage space the site has. */
_n("Your data is being securely backed up as you edit. You have <strong>%1$dTB</strong> of storage space.","Your data is being securely backed up as you edit. You have <strong>%1$dTB</strong> of storage space.",1,"jetpack"),1),{strong:c().createElement("strong",null)}),title:__("Jetpack Backup","jetpack")};case"is-search-plan":return{...i,details:[a,o],tagLine:__("Fast, highly relevant search results and powerful filtering.","jetpack"),title:__("Jetpack Search","jetpack")};case"is-scan-plan":return{...i,details:[a,o],tagLine:__("Automatic scanning and one-click fixes keep your site one step ahead of security threats.","jetpack"),title:(0,m.createInterpolateElement)(__("Jetpack Scan <em>Daily</em>","jetpack"),{em:c().createElement("em",null)})};case"is-anti-spam-plan":return{...i,details:[a,o],tagLine:__("Automatically clear spam from comments and forms. Save time, get more responses, give your visitors a better experience – all without lifting a finger.","jetpack"),title:__("Jetpack Anti-Spam","jetpack")};case"is-daily-security-plan":return{...i,details:o,tagLine:__("Enjoy the peace of mind of complete site protection. Great for brochure sites, restaurants, blogs, and resume sites.","jetpack"),title:__("Jetpack Security Daily","jetpack")};case"is-realtime-security-plan":return{...i,details:o,tagLine:__("Additional security for sites with 24/7 activity. Recommended for eCommerce stores, news organizations, and online forums.","jetpack"),title:__("Jetpack Security Real-Time","jetpack")};case"is-daily-backup-plan":return{...i,details:o,tagLine:__("Your data is being securely backed up every day with a 30-day archive.","jetpack"),title:(0,m.createInterpolateElement)(__("Jetpack Backup <em>Daily</em>","jetpack"),{em:c().createElement("em",null)})};case"is-realtime-backup-plan":return{...i,details:o,tagLine:__("Your data is being securely backed up as you edit.","jetpack"),title:(0,m.createInterpolateElement)(__("Jetpack Backup <em>Real-Time</em>","jetpack"),{em:c().createElement("em",null)})};case"is-videopress-plan":return{...i,details:[a,o],tagLine:__("High-quality, ad-free video built specifically for WordPress.","jetpack"),title:__("Jetpack VideoPress","jetpack")};default:return{...i,isPlaceholder:!0}}}renderPlan(){return c().createElement(c().Fragment,null,this.props.hasDetachedUserLicenses&&this.renderLicensingActions(),c().createElement(k.Z,{compact:!0},this.renderHeader(__("My Plan","jetpack")),c().createElement(N.Z,this.getProductProps(this.props.plan))))}renderProducts(){return(0,f.isEmpty)(this.props.activeProducts)?null:c().createElement(k.Z,{compact:!0},this.renderHeader(__("My Products","jetpack")),this.props.activeProducts.map((e=>{let{ID:t,product_slug:n}=e;return c().createElement(N.Z,i()({key:"product-card-"+t},this.getProductProps(n)))})))}renderHeader(e){return c().createElement("h3",{className:"jp-landing__card-header"},e)}renderFooter(){return!this.props.hasDetachedUserLicenses&&this.renderLicensingActions()}render(){return c().createElement("div",{className:"jp-landing__plans"},this.renderPlan(),this.renderProducts(),this.renderFooter(),this.props.showLicensingUi&&c().createElement(k.Z,{compact:!0},c().createElement(x.Z,null)))}}A.propTypes={activeProducts:u().array,plan:u().string,purchases:u().array,siteAdminUrl:u().string,dateFormat:u().string,displayBackups:u().bool,plansMainTopUpgradeUrl:u().string,showRecommendations:u().bool},t.Z=(0,p.$j)((e=>({dateFormat:(0,S.mh)(e),displayBackups:(0,S.xR)(e),plansMainTopUpgradeUrl:(0,S.Qq)(e,"plans-main-top"),showRecommendations:(0,S.mb)(e),showLicensingUi:(0,S.Yg)(e),hasDetachedUserLicenses:!!(0,j.O4)(e)})))(A)},61595:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(65736),o=n(2620),a=n(9913),c=n(15029),l=n(21094),u=n(19570),p=n(77219);const __=s.__,_x=s._x;t.Z=(0,o.$j)(null,{errorNotice:l.tF,successNotice:l.RT,updateUserLicensesCounts:p.Ng})((e=>{let{errorNotice:t,successNotice:n,updateUserLicensesCounts:s}=e;const[o,l]=(0,r.useState)(!1),[p,d]=(0,r.useState)(""),h=(0,r.useCallback)((e=>{d(e.target.value)}),[]),f=(0,r.useCallback)((()=>{p&&!o&&(l(!0),u.ZP.updateLicenseKey(p).then((()=>{s(),n(__("Jetpack license key added. It may take a minute for the license to be processed.","jetpack")),l(!1),d("")})).catch((()=>{t(__("Error adding Jetpack license key.","jetpack")),l(!1)})))}),[t,n,o,p,s]);return i().createElement("div",{className:"jp-landing__plan-features-header-jetpack-license"},i().createElement("h3",null,__("Jetpack License","jetpack")),i().createElement("p",null,__('If you have a Jetpack license key paste it here to queue it for activation. Once your license is processed your product will appear under "My Plan".',"jetpack")),i().createElement(c.Z,{name:"jetpack_license_key",className:"code",value:p,placeholder:__("Jetpack licence key","jetpack"),disabled:o,onChange:h}),i().createElement(a.Z,{primary:!0,compact:!0,onClick:f},o?_x("Applying…","Button caption","jetpack"):_x("Apply license","Button caption","jetpack",0)))}))},96892:function(e,t,n){"use strict";var r=n(90922),i=n.n(r),s=n(40767);const o=i()("calypso:notices");o("initializing notices");const a={containerNames:{}};(0,s.Z)(a);let c=[];const l={new:function(e,t,n){const r=t.overlay?"overlay-notices":"notices";a.containerNames[r]=r,o("creating notice",e,t,n),a[r]=[];const i={type:t.type||"message",status:n,text:e,duration:t.duration,container:r,button:t.button,href:t.href,onClick:e=>{if("function"==typeof t.onClick){const n=l.removeNotice.bind(l,i);return t.onClick(e,n)}},onRemoveCallback:t.onRemoveCallback||function(){},arrow:t.arrow,isCompact:t.isCompact,showDismiss:t.showDismiss,persistent:t.persistent};return t.displayOnNextPage?c.push(i):a[r].push(i),a.emit("change"),i},success:function(e,t){return t=t||{},this.new(e,t,"is-success")},error:function(e,t){return t=t||{},this.new(e,t,"is-error")},info:function(e,t){return t=t||{},this.new(e,t,"is-info")},warning:function(e,t){return t=t||{},this.new(e,t,"is-warning")},list:a,removeNotice:function(e){if(!e.container)return;const t=a[e.container],n=t.indexOf(e);-1!==n&&(t.splice(n,1),a.emit("change"))},clearNoticesOnNavigation:function(e,t){o("clearNoticesOnNavigation");let n,r,i=!1;const s=function(e){return e.persistent};for(r in a.containerNames)n=a[r].length,a[r]=a[r].filter(s),n!==a[r].length&&(i=!0);c.length&&(c.forEach((function(e){a[e.container]=[],a[e.container].push(e)})),c=[]),i&&a.emit("change"),t()},clearNotices:function(e){a[e]=[],a.emit("change")},getStatusHelper:function(e){return e.error?"is-error":e.warning?"is-warning":e.info?"is-info":e.success?"is-success":void 0}};t.Z=l},37755:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(65736),a=n(93107),c=n(41147),l=n(19555),u=n(60742),p=n(27219),d=n(71045),h=n(90141),f=n(93039);const __=o.__;class m extends r.Component{render(){const e={getModule:this.props.module,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isModuleFound:this.props.isModuleFound,getModuleOverride:this.props.getModuleOverride,hasConnectedOwner:this.props.hasConnectedOwner},t=["photon","videopress","lazy-images","photon-cdn","search"].some(this.props.isModuleFound);return(this.props.searchTerm||this.props.active)&&t?i().createElement("div",null,i().createElement(p.Z,null),i().createElement(u.Z,{title:this.props.searchTerm?__("Performance","jetpack"):__("Load pages faster, optimize images, and speed up your visitors’ experience.","jetpack"),className:"jp-settings-description"}),i().createElement(h.Z,e),i().createElement(f.Z,e),i().createElement(d.Z,e)):null}}t.Z=(0,s.$j)((e=>({module:t=>(0,a.rT)(e,t),isUnavailableInOfflineMode:t=>(0,c.t_)(e,t),isModuleFound:t=>(0,l.CX)(e,t),getModuleOverride:t=>(0,a.Qy)(e,t),hasConnectedOwner:(0,c.it)(e)})))(m)},71045:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(92819),l=n(65736),u=n(71415),p=n(10618),d=n(81200),h=n(55735),f=n(85253),m=n(77222),g=n(5e4),v=n(84277),b=n(27006),y=n(66552),k=n(93107),w=n(19555),_=n(41147),E=n(88872);const __=l.__;class C extends o().Component{render(){const e=this.props.isModuleFound("videopress");if(!e)return null;const t=this.props.module("videopress"),n=(0,d.sc)(this.props.sitePlan.product_slug),{hasConnectedOwner:r,hasVideoPressLegacySecurityPlan:s,hasVideoPressPurchase:a,isFetching:l,isOffline:g,upgradeUrl:y,videoPressStorageUsed:k}=this.props,w=a&&null!==k,_=(0,c.includes)(["is-premium-plan","is-business-plan","is-complete-plan"],n)||s||a,E=a||null===k||0!==k?__("You have used your free video. Upgrade now to unlock more videos and 1TB of storage.","jetpack",0):__("1 free video available. Upgrade now to unlock more videos and 1TB of storage.","jetpack"),C=o().createElement(b.Z,{hasChild:!0,disableInOfflineMode:!0,module:t,support:{link:(0,u.Z)("jetpack-support-videopress")}},o().createElement(h.Gj,{className:"jp-form-label-wide"},__("VideoPress","jetpack")),o().createElement("p",null," ",__("Engage your visitors with high-resolution, ad-free video. Save time by uploading videos directly through the WordPress editor. With Jetpack VideoPress, you can customize your video player to deliver your message without the distraction.","jetpack")," "),w&&o().createElement("div",{className:"media__videopress-storage"},o().createElement("span",null,__("Video storage used out of 1TB:","jetpack")),o().createElement(p.Z,{value:k/1e4})),r&&o().createElement(m.T,{slug:"videopress",disabled:this.props.isUnavailableInOfflineMode("videopress"),activated:this.props.getOptionValue("videopress"),toggling:this.props.isSavingAnyOption("videopress"),toggleModule:this.props.toggleModuleNow},o().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable VideoPress","jetpack")))),S="inactive"===this.props.getModuleOverride("videopress"),j=e&&!_&&r&&!g&&!l;return o().createElement(v.Z,i()({},this.props,{header:__("Media","jetpack"),feature:!S&&d.BD,hideButton:!0}),e&&C,j&&o().createElement(f.Z,{className:"media__videopress-upgrade",callToAction:__("Upgrade","jetpack"),title:E,eventFeature:"videopress",icon:"video",plan:(0,d.o2)(d.qb),feature:"jetpack_videopress",href:y}))}}t.Z=(0,a.$j)((e=>({module:t=>(0,k.rT)(e,t),isModuleFound:t=>(0,w.CX)(e,t),sitePlan:(0,E.UL)(e),hasVideoPressPurchase:(0,E.jQ)(e),hasVideoPressLegacySecurityPlan:(0,E.qn)(e).find(d.dy),hasConnectedOwner:(0,_.it)(e),isOffline:(0,_.Ex)(e),isFetching:(0,E.GR)(e),getModuleOverride:t=>(0,k.Qy)(e,t),upgradeUrl:(0,y.Qq)(e,"videopress-upgrade"),videoPressStorageUsed:(0,E.VH)(e)})))((0,g.u)(C))},90141:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(65736),l=n(71415),u=n(60742),p=n(94069),d=n(81200),h=n(55735),f=n(41147),m=n(88872),g=n(17752),v=n(77222),b=n(84277),y=n(27006),k=n(5e4);const __=c.__,w=__("Incredibly powerful and customizable, Jetpack Search helps your visitors instantly find the right content – right when they need it.","jetpack"),_=__("Customize your Search experience.","jetpack"),E=__("Search supports many customizations. ","jetpack");t.Z=(0,a.$j)((e=>{const t=(0,d.sc)((0,m.UL)(e).product_slug);return{isLoading:(0,m.GR)(e),inOfflineMode:(0,f.Ex)(e),hasActiveSearchPurchase:(0,m.o$)(e),isBusinessPlan:"is-business-plan"===t,failedToEnableSearch:!(0,g.qg)(e,"search")&&!(0,g.Cu)(e,"search")&&!1===(0,g.p0)(e,"search")}}))((0,k.u)((function(e){const{failedToEnableSearch:t,hasActiveSearchPurchase:n,updateOptions:r}=e,a=e.getOptionValue("search"),c=e.getOptionValue("instant_search_enabled","search"),f=(0,s.useCallback)((()=>{const e={search:!a};c!==(n&&!a)&&(e.instant_search_enabled=n&&!a),r(e)}),[n,c,a,r]),m=(0,s.useCallback)((()=>{const e={instant_search_enabled:n&&!c};e.instant_search_enabled&&!a&&(e.search=!0),r(e)}),[n,c,a,r]);(0,s.useEffect)((()=>{t&&n&&(r({has_jetpack_search_product:!0}),f())}),[t,n,r,f]);const g=!!e.isSavingAnyOption("search"),k=!!e.isSavingAnyOption("instant_search_enabled"),C=g||k;return o().createElement(b.Z,i()({},e,{module:"search",feature:d.T5,hideButton:!0}),o().createElement(y.Z,{disableInOfflineMode:!0,hasChild:!0,module:{module:"search"},support:{text:E,link:(0,l.Z)("jetpack-support-search")}},o().createElement("p",null,e.inOfflineMode?__("Unavailable in Offline Mode","jetpack"):w),e.isLoading&&__("Loading…","jetpack"),!e.isLoading&&(e.isBusinessPlan||e.hasActiveSearchPurchase)&&o().createElement(s.Fragment,null,o().createElement(v.T,{activated:a,compact:!0,disabled:C,slug:"search",toggleModule:f,toggling:g},__("Enable Search","jetpack")),o().createElement(h.C_,null,o().createElement(p.Z,{checked:a&&c,disabled:C||!e.hasActiveSearchPurchase,onChange:m,toggling:k},o().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable instant search experience (recommended)","jetpack"))),o().createElement("p",{className:"jp-form-setting-explanation jp-form-search-setting-explanation"},__("Instant search will allow your visitors to get search results as soon as they start typing. If deactivated, Jetpack Search will still optimize your search results but visitors will have to submit a search query before seeing any results.","jetpack"))))),!e.isLoading&&(e.isBusinessPlan||e.hasActiveSearchPurchase)&&a&&!c&&o().createElement(u.Z,{compact:!0,className:"jp-settings-card__configure-link",href:"customize.php?autofocus[panel]=widgets"},__("Add Jetpack Search Widget","jetpack")),e.hasActiveSearchPurchase&&a&&c&&o().createElement(u.Z,{className:"jp-settings-card__configure-link",compact:!0,href:"admin.php?page=jetpack-search-configure"},_))})))},93039:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(71415),d=n(11973),h=n(94069),f=n(55735),m=n(41147),g=n(93107),v=n(19555),b=n(77222),y=n(84277),k=n(27006),w=n(5e4);const __=u.__,_=(0,w.u)(class extends a.Component{constructor(){super(...arguments),o()(this,"toggleModule",((e,t)=>{"photon"===e?!1==!t?this.props.updateOptions({photon:!1,"tiled-gallery":!1,tiled_galleries:!1}):this.props.updateOptions({photon:!0,"tiled-gallery":!0,tiled_galleries:!0}):this.props.updateOptions({[e]:!t})})),o()(this,"handleSiteAcceleratorChange",(()=>{let e=this.props.getOptionValue("photon"),t=this.props.getOptionValue("photon-cdn");const n=e||t,r=this.props.getModuleOverride("photon-cdn");let i=this.props.getModuleOverride("photon");if(this.props.isOfflineMode&&(i="inactive"),!0===n){const n={progress:__("Disabling site accelerator…","jetpack"),success:__("Site accelerator is no longer speeding up your site!","jetpack"),error:e=>(0,u.sprintf)(
/* translators: placeholder is an error code. */
__("Error disabling site accelerator. %s","jetpack"),e)};let s={};!1==!e&&"active"!==i&&(e=!1,s={photon:!1,"tiled-gallery":!1,tiled_galleries:!1}),!1==!t&&"active"!==r&&(t=!1,s={...s,"photon-cdn":!1}),this.props.updateOptions(s,n)}else{const n={progress:__("Enabling Site accelerator…","jetpack"),success:__("Site accelerator is now speeding up your site!","jetpack"),error:e=>(0,u.sprintf)(
/* translators: placeholder is an error code. */
__("Error enabling Site accelerator. %s","jetpack"),e)};let s={};!1===e&&"inactive"!==i&&(e=!0,s={photon:!0,"tiled-gallery":!0,tiled_galleries:!0}),!1===t&&"inactive"!==r&&(t=!0,s={...s,"photon-cdn":!0}),this.props.updateOptions(s,n)}!0===e||!0===t?d.Z.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"on"}):d.Z.tracks.recordJetpackClick({target:"jetpack_site_accelerator_toggle",toggled:"off"}),this.props.getOptionValue("photon")!==e&&d.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon",toggled:!1===e?"off":"on"}),this.props.getOptionValue("photon-cdn")!==t&&d.Z.tracks.recordEvent("jetpack_wpa_module_toggle",{module:"photon-cdn",toggled:!1===t?"off":"on"})}))}render(){const e=this.props.isModuleFound("photon"),t=this.props.isModuleFound("photon-cdn"),n=this.props.isModuleFound("lazy-images");if(!e&&!n&&!t)return null;const r=this.props.module("lazy-images"),s=this.props.getOptionValue("photon")||this.props.getOptionValue("photon-cdn"),o=this.props.getModuleOverride("photon-cdn");let a=this.props.getModuleOverride("photon");this.props.isOfflineMode&&(a="inactive");const l=e&&t&&("inactive"!==a||"inactive"!==o),u=(e||t)&&("inactive"!==a||"inactive"!==o);let d;return!this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?d=!this.props.getOptionValue("photon-cdn"):!this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")?d=!this.props.getOptionValue("photon"):this.props.getOptionValue("photon")&&this.props.isSavingAnyOption("photon")?(d=!this.props.getOptionValue("photon-cdn"),this.props.getOptionValue("photon-cdn")&&this.props.isSavingAnyOption("photon-cdn")&&(d=!0)):d=!(!this.props.getOptionValue("photon-cdn")||!this.props.isSavingAnyOption("photon-cdn"))&&!this.props.getOptionValue("photon"),c().createElement(y.Z,i()({},this.props,{header:__("Performance & speed","jetpack"),hideButton:!0,module:"performance-speed"}),(e||t)&&c().createElement(k.Z,{hasChild:!0,support:{link:(0,p.Z)("jetpack-support-site-accelerator")}},c().createElement("p",null,__("Load pages faster by allowing Jetpack to optimize your images and serve your images and static files (like CSS and JavaScript) from our global network of servers.","jetpack")),u&&c().createElement(h.Z,{checked:s,toggling:d,onChange:this.handleSiteAcceleratorChange,disabled:!l},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable site accelerator","jetpack"))),c().createElement(f.C_,null,e&&c().createElement(b.T,{slug:"photon",disabled:this.props.isUnavailableInOfflineMode("photon"),activated:this.props.getOptionValue("photon"),toggling:this.props.isSavingAnyOption("photon"),toggleModule:this.toggleModule},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Speed up image load times","jetpack"))),t&&c().createElement(b.T,{slug:"photon-cdn",activated:this.props.getOptionValue("photon-cdn"),toggling:this.props.isSavingAnyOption("photon-cdn"),toggleModule:this.toggleModule},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Speed up static file load times","jetpack"))))),n&&c().createElement(k.Z,{hasChild:!0,module:r,support:{link:(0,p.Z)("jetpack-support-lazy-images")}},c().createElement("p",null,__("Lazy-loading images will improve your site’s speed and create a smoother viewing experience. Images will load as visitors scroll down the screen, instead of all at once.","jetpack")),c().createElement(b.T,{slug:"lazy-images",disabled:this.props.isUnavailableInOfflineMode("lazy-images"),activated:this.props.getOptionValue("lazy-images"),toggling:this.props.isSavingAnyOption("lazy-images"),toggleModule:this.toggleModule},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable Lazy Loading for images","jetpack")))))}});t.Z=(0,l.$j)((e=>({module:t=>(0,g.rT)(e,t),isModuleFound:t=>(0,v.CX)(e,t),isOfflineMode:(0,m.Ex)(e),getModuleOverride:t=>(0,g.Qy)(e,t)})))(_)},90955:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(11268),u=n.n(l),p=n(2620),d=n(69307),h=n(65736),f=n(71415),m=n(11973),g=n(94069),v=n(68961),b=n(64362),y=n(50093),k=n(17752),w=n(84277),_=n(27006),E=n(5e4);const __=h.__,_x=h._x,C=()=>m.Z.tracks.recordJetpackClick({target:"privacy-policy",feature:"privacy"}),S=()=>m.Z.tracks.recordJetpackClick({target:"cookie-policy",feature:"privacy"}),j=()=>m.Z.tracks.recordJetpackClick({target:"privacy-center",feature:"privacy"});class M extends c().Component{constructor(){super(...arguments),o()(this,"isPrivacyFound",(()=>!this.props.searchTerm||[_x("privacy","Search term.","jetpack"),_x("tracks","Search term.","jetpack"),_x("data","Search term.","jetpack"),_x("gdpr","Search term.","jetpack"),_x("tos","Search term.","jetpack"),_x("terms of service","Search term.","jetpack")].join(" ").toLowerCase().indexOf(this.props.searchTerm.toLowerCase())>-1)),o()(this,"togglePrivacy",(()=>{const e=this.props.trackingSettings.tracks_opt_out;this.props.setTrackingSettings(!e)}))}UNSAFE_componentWillMount(){this.props.fetchTrackingSettings()}render(){const{searchTerm:e,active:t}=this.props;return e||t?this.isPrivacyFound()&&c().createElement("div",null,c().createElement(w.Z,i()({},this.props,{header:_x("Privacy Settings","Settings header","jetpack"),hideButton:!0}),c().createElement(_.Z,{hasChild:!0},c().createElement("p",null,__("We are committed to your privacy and security.","jetpack")),c().createElement("p",null,c().createElement(g.Z,{compact:!0,checked:!this.props.trackingSettings.tracks_opt_out,disabled:this.props.isFetchingTrackingSettings||this.props.isUpdatingTrackingSettings,onChange:this.togglePrivacy,id:"privacy-settings"},(0,d.createInterpolateElement)(__("Share information with our analytics tool about your use of services while logged in to your WordPress.com account. <cookiePolicyLink>Learn more</cookiePolicyLink>.","jetpack"),{cookiePolicyLink:c().createElement(v.Z,{href:(0,f.Z)("a8c-cookies"),onClick:S,target:"_blank",rel:"noopener noreferrer"})}))),c().createElement("p",null,(0,d.createInterpolateElement)(__("This information helps us improve our products, make marketing to you more relevant, personalize your WordPress.com experience, and more as detailed in our <pp>privacy policy</pp>.","jetpack"),{pp:c().createElement(v.Z,{href:(0,f.Z)("a8c-privacy"),onClick:C,target:"_blank",rel:"noopener noreferrer"})})),c().createElement("p",null,(0,d.createInterpolateElement)(__("We use other tracking tools, including some from third parties. <cookiePolicyLink>Read about these</cookiePolicyLink> and how to control them.","jetpack"),{cookiePolicyLink:c().createElement(v.Z,{href:(0,f.Z)("a8c-cookies"),onClick:S,target:"_blank",rel:"noopener noreferrer"})})),c().createElement("p",null,(0,d.createInterpolateElement)(__("For more information on how specific Jetpack features use data and track activity, please refer to our <privacyCenterLink>Privacy Center</privacyCenterLink>.","jetpack"),{privacyCenterLink:c().createElement(v.Z,{href:(0,f.Z)("jetpack-support-privacy"),onClick:j,target:"_blank",rel:"noopener noreferrer"})}))))):null}}o()(M,"displayName","PrivacySettings"),o()(M,"propTypes",{searchTerm:u().string,active:u().bool,toggleTracking:u().func,getOptionValue:u().func,isSavingAnyOption:u().func}),o()(M,"defaultProps",{searchTerm:"",active:!1}),t.Z=(0,p.$j)((e=>({settings:(0,k.Gw)(e),trackingSettings:(0,y.AO)(e),isUpdatingTrackingSettings:(0,y.Ak)(e),isFetchingTrackingSettings:(0,y.ab)(e)})),(e=>({setTrackingSettings:t=>{m.Z.tracks.setOptOut(t),e((0,b.X)({tracks_opt_out:t}))},fetchTrackingSettings:()=>e((0,b.$)())})))((0,E.u)(M))},27415:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(92819),p=n(65736),d=n(71415),h=n(11973),f=n(9913),m=n(81200),g=n(66552),v=n(75395),b=n(88872),y=n(30701),k=n(35795),w=n(41147),_=n(61744),E=n(15142),C=n(39786),S=n(65125),j=n(88001);const __=p.__,_n=p._n,_x=p._x,M=(e,t)=>()=>((e,t)=>h.Z.tracks.recordJetpackClick({target:"pro-status",type:e,feature:t}))(e,t);class x extends o().Component{constructor(){super(...arguments),i()(this,"getProActions",((e,t)=>{let n="",r=!1,i=!1,s="";switch(e){case"threats":n="is-error",i=this.props.isCompact?_x("Threats","A caption for a small button to fix security issues.","jetpack"):_x("See threats","A caption for a small button to fix security issues.","jetpack"),s=(0,d.Z)("vaultpress-dashboard");break;case"free":case"personal":case"pro":case"invalid_key":return;case"secure":n="is-success",r=_x("Secure","Short message informing user that the site is secure.","jetpack");break;case"rewind_connected":const e=this.getRewindMessage();return o().createElement(j.Z,{showDismiss:!1,status:e.status,isCompact:!0},e.text);case"active":return o().createElement("span",{className:"jp-dash-item__active-label"},__("ACTIVE","jetpack"))}return o().createElement(j.Z,{showDismiss:!1,status:n,isCompact:!0},r,i&&o().createElement("a",{className:"dops-notice__text-no-underline",onClick:M(e,t),href:s},i))})),i()(this,"getSetUpButton",(e=>o().createElement(f.Z,{onClick:M("set_up",e),compact:!0,primary:!0,href:(0,d.Z)("calypso-plugins-setup",{site:this.props.siteRawUrl,query:`only=${e}`})},_x("Set up","Caption for a button to set up a feature.","jetpack"))))}getRewindMessage(){switch(this.props.rewindStatus.state){case"provisioning":return{status:"is-info",text:__("Setting up","jetpack")};case"awaiting_credentials":return{status:"is-warning",text:__("Action needed","jetpack")};case"active":return{status:"is-success",text:__("Connected","jetpack")};default:return{status:"",text:""}}}render(){const e=this.props.sitePlan,t=this.props.getVaultPressData();let n="";"scan"!==this.props.proFeature&&"backups"!==this.props.proFeature&&"vaultpress"!==this.props.proFeature||(n="vaultpress/vaultpress.php"),"akismet"===this.props.proFeature&&(n="akismet/akismet.php");const r=/jetpack_personal*/.test(e.product_slug),i=/jetpack_free*/.test(e.product_slug),s=/jetpack_premium*/.test(e.product_slug),a=(0,u.get)(t,["data","features","backups"],!1),c=(0,u.get)(t,["data","features","security"],!1),{scanStatus:l}=this.props;return o().createElement("div",null,o().createElement(E.Z,null),o().createElement(S.Z,null),o().createElement(C.Z,null),!this.props.isOfflineMode&&((u,p,d)=>{switch(u){case"rewind":return this.getProActions("rewind_connected","rewind");case"backups":if(i&&!a&&this.props.isCompact)return this.getProActions("free","backups");break;case"scan":if(this.props.fetchingSiteData||this.props.isFetchingVaultPressData)return"";if("N/A"!==t)return!i&&!r||c?c?this.getProActions(0===this.props.getScanThreats()?"secure":"threats","scan"):this.getSetUpButton("scan"):this.props.isCompact?this.getProActions("free","scan"):r&&!a?this.getSetUpButton("backups"):"";if(l&&"unavailable"!==l.state)return Array.isArray(l.threats)&&l.threats.length>0?o().createElement(j.Z,{showDismiss:!1,status:"is-error",isCompact:!0},_n("Threat","Threats",l.threats.length,"jetpack")):l.credentials?0===l.credentials.length?o().createElement(j.Z,{showDismiss:!1,status:"is-warning",isCompact:!0},__("Action needed","jetpack")):this.getProActions("secure","scan"):"";break;case"search":return i||r||s?this.getProActions("pro","search"):"";case"akismet":if(i&&(!p||!d))return this.props.isCompact?this.getProActions("free","anti-spam"):"";if(!this.props.isAkismetKeyValid&&!this.props.fetchingAkismetData&&p&&d&&!i)return this.getSetUpButton(u)}return e.product_slug&&n&&!i?p&&d?this.getProActions("active"):this.getSetUpButton(u):""})(this.props.proFeature,this.props.pluginActive(n),this.props.pluginInstalled(n)))}}i()(x,"propTypes",{isCompact:c().bool,proFeature:c().string,rewindStatus:c().object.isRequired}),i()(x,"defaultProps",{isCompact:!0,proFeature:""}),t.Z=(0,l.$j)((e=>{const t=(0,b.UL)(e);return{siteRawUrl:(0,g.JR)(e),siteAdminUrl:(0,g.wW)(e),getScanThreats:()=>(0,v._R)(e),getVaultPressData:()=>(0,v.XK)(e),getAkismetData:()=>(0,v.fU)(e),isFetchingVaultPressData:(0,v.P_)(e),sitePlan:t,planClass:(0,m.sc)((0,u.get)(t,"product_slug","")),fetchingPluginsData:(0,_.vz)(e),pluginActive:t=>(0,_.TB)(e,t),pluginInstalled:t=>(0,_.P8)(e,t),isOfflineMode:(0,w.Ex)(e),fetchingSiteData:(0,b._5)(e),isAkismetKeyValid:(0,v._2)(e),fetchingAkismetData:(0,v.bV)(e),paidFeatureUpgradeUrl:(0,g.Qq)(e,"upgrade"),planProUpgradeUrl:(0,g.Qq)(e,"plans-business"),rewindStatus:(0,y.of)(e),scanStatus:(0,k.C8)(e)}}))(x)},98362:function(e,t,n){"use strict";n.d(t,{tE:function(){return i},w7:function(){return s},ZS:function(){return o}});var r=n(98486);const i={JETPACK_ANTI_SPAM:"akismet",JETPACK_BACKUP:"backup",JETPACK_SCAN:"scan",JETPACK_SEARCH:"search",JETPACK_SECURITY:"security",JETPACK_VIDEOPRESS:"videopress"},s=[`/product/${i.JETPACK_ANTI_SPAM}`,`/product/${i.JETPACK_BACKUP}`,`/product/${i.JETPACK_SCAN}`,`/product/${i.JETPACK_SEARCH}`,`/product/${i.JETPACK_SECURITY}`,`/product/${i.JETPACK_VIDEOPRESS}`],o={[i.JETPACK_ANTI_SPAM]:`${r.hp}products/illustration-anti-spam.png`,[i.JETPACK_BACKUP]:`${r.hp}products/illustration-backup.png`,[i.JETPACK_SCAN]:`${r.hp}products/illustration-scan.png`,[i.JETPACK_SEARCH]:`${r.hp}products/illustration-search.png`,[i.JETPACK_SECURITY]:`${r.hp}products/illustration-scan.png`,[i.JETPACK_VIDEOPRESS]:`${r.hp}products/illustration-videopress.png`}},63663:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(12901),o=n(2620),a=n(11268),c=n.n(a),l=n(92819),u=n(63038),p=n(79644),d=n(13553),h=n(66552),f=n(98362),m=n(15893);const g=e=>{const{isFetchingProducts:t,products:n}=e,r=t||(0,l.isEmpty)(n),o=[];return r||Object.values(f.tE).forEach((function(e){if(!n.hasOwnProperty(e))return;const t=n[e];t.available&&o.push(i().createElement(s.AW,{key:e,path:`/product/${e}`},i().createElement(m.Z,{product:t,arePromotionsActive:h.Hy})))})),i().createElement(i().Fragment,null,i().createElement(u.Z,null),r?i().createElement("div",{className:"jp-product-descriptions__loading"},i().createElement(p.D,null)):i().createElement(s.rs,null,o))};g.propTypes={products:c().object,isFetchingProducts:c().bool,arePromotionsActive:c().bool},t.Z=(0,o.$j)((e=>({arePromotionsActive:(0,h.Hy)(e),isFetchingProducts:(0,d.T0)(e),products:(0,h.by)(e)})))(g)},83:function(e,t,n){"use strict";n.d(t,{pz:function(){return s},yS:function(){return o},dn:function(){return a},jZ:function(){return c}});var r=n(99196),i=n.n(r);const s=i().createElement("svg",{fill:"none",viewBox:"0 0 22 16",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{d:"m16.092 8.1635 0.0188-1.7025 1e-4 -0.03867c0-1.9752-1.8025-3.8666-4.4-3.8666-2.1696 0-3.828 1.3518-4.2735 2.9432l-0.42657 1.5238-1.581-0.06466c-0.0393-0.0016-0.07893-0.0024-0.11886-0.0024-1.587 0-2.9778 1.3444-2.9778 3.1333 0 1.7871 1.3878 3.1305 2.9728 3.1334l0.02863-2e-4h12.052l0.0123 2e-4c1.1943 0 2.2667-1.0162 2.2667-2.4 0-1.2351-0.8646-2.1899-1.8964-2.3684l-1.6776-0.2904zm-10.581-3.2038c-0.06651-0.00271-0.13335-0.00408-0.2005-0.00408-2.7492 0-4.9778 2.2983-4.9778 5.1333 0 2.8351 2.2286 5.1334 4.9778 5.1334l0.02962-2e-4h12.035l0.0236 2e-4c2.3564 0 4.2667-1.97 4.2667-4.4 0-2.1802-1.5375-3.99-3.5554-4.3392l3e-4 -0.0608c0-3.24-2.8653-5.8666-6.4-5.8666-2.9837 0-5.4905 1.8716-6.1994 4.404z",clipRule:"evenodd",fill:"#000",fillRule:"evenodd"})),o=i().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 18 23",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{d:"m9 0.23486 9 4.0909v6.0984c0 5.1987-3.3389 10.121-8.0471 11.674-0.61868 0.2041-1.2872 0.2041-1.9059 0-4.7082-1.5528-8.0471-6.4749-8.0471-11.674v-6.0984l9-4.0909zm-7 5.3787v4.8106c0 4.4173 2.8602 8.5166 6.6735 9.7743 0.21184 0.0698 0.44118 0.0698 0.65302 0 3.8133-1.2577 6.6735-5.357 6.6735-9.7743v-4.8106l-7-3.1818-7 3.1818z",clipRule:"evenodd",fill:"#000",fillRule:"evenodd"})),a=i().createElement("svg",{className:"vertical",fill:"none",viewBox:"0 0 20 25",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{d:"m5.2729 24.276 10.667-23.333-1.2126-0.55434-1.6821 3.6796c-0.9128-0.46945-1.9479-0.73443-3.0449-0.73443-1.4153 0-2.7276 0.44103-3.8069 1.1931l-2.6065-2.6065-1.4142 1.4142 2.5684 2.5684c-0.7535 0.96578-1.2468 2.1445-1.3745 3.4307h-2.6996v2h2.6667v2h-2.6667v2h2.8c0.3345 1.6479 1.2768 3.075 2.5827 4.0372l-1.989 4.351 1.2126 0.5544zm1.634-6.7814c-0.96522-0.855-1.5737-2.1037-1.5737-3.4945v-4c0-2.5773 2.0893-4.6667 4.6667-4.6667 0.80034 0 1.5536 0.20149 2.2119 0.55651l-5.305 11.605zm7.567-8.8258 1.0786-2.3595c0.5878 0.88256 0.9708 1.9132 1.0811 3.0241h2.6996v2h-2.6667v2h2.6667v2h-2.8c-0.6177 3.043-3.3081 5.3334-6.5333 5.3334-0.33229 0-0.65891-0.0244-0.97816-0.0713l0.88215-1.9297c0.03193 6e-4 0.06393 1e-3 0.09601 1e-3 2.5773 0 4.6666-2.0894 4.6666-4.6667v-4c0-0.46256-0.0673-0.9094-0.1926-1.3313z",clipRule:"evenodd",fill:"#000",fillRule:"evenodd"})),c=i().createElement("svg",{className:"vertical",viewBox:"0 0 103 25",xmlns:"http://www.w3.org/2000/svg"},i().createElement("path",{d:"m52 0.23486 9 4.0909v6.0984c0 5.1987-3.3389 10.121-8.0471 11.674-0.6186 0.2041-1.2872 0.2041-1.9058 0-4.7082-1.5528-8.0471-6.4749-8.0471-11.674v-6.0984l9-4.0909zm-7 5.3787v4.8106c0 4.4173 2.8602 8.5166 6.6735 9.7743 0.2118 0.0698 0.4412 0.0698 0.653 0 3.8133-1.2577 6.6735-5.357 6.6735-9.7743v-4.8106l-7-3.1818-7 3.1818z",clipRule:"evenodd",fillRule:"evenodd"}),i().createElement("path",{d:"m31.82 13.188h3.1406v-1.2656h-3.1406v-3.2969h-1.2656v3.2969h-3.1406v1.2656h3.1406v3.2969h1.2656v-3.2969z",fill:"#8C8F94"}),i().createElement("path",{d:"m72.82 13.188h3.1406v-1.2656h-3.1406v-3.2969h-1.2656v3.2969h-3.1406v1.2656h3.1406v3.2969h1.2656v-3.2969z",fill:"#8C8F94"}),i().createElement("path",{d:"m88.273 24.276 10.667-23.333-1.2126-0.55434-1.6821 3.6796c-0.9128-0.46945-1.9479-0.73443-3.0449-0.73443-1.4153 0-2.7276 0.44103-3.807 1.1931l-2.6065-2.6065-1.4142 1.4142 2.5684 2.5684c-0.7535 0.96578-1.2468 2.1445-1.3745 3.4307h-2.6996v2h2.6667v2h-2.6667v2h2.8001c0.3344 1.6479 1.2767 3.075 2.5826 4.0372l-1.989 4.351 1.2126 0.5544zm1.634-6.7814c-0.9652-0.855-1.5736-2.1037-1.5736-3.4945v-4c0-2.5773 2.0893-4.6667 4.6667-4.6667 0.8003 0 1.5536 0.20149 2.2119 0.55651l-5.305 11.605zm7.5671-8.8258 1.0786-2.3595c0.5878 0.88256 0.9708 1.9132 1.0811 3.0241h2.6993v2h-2.6664v2h2.6664v2h-2.7997c-0.6177 3.043-3.3081 5.3334-6.5333 5.3334-0.3323 0-0.6589-0.0244-0.9782-0.0713l0.8822-1.9297c0.0319 6e-4 0.0639 1e-3 0.096 1e-3 2.5773 0 4.6666-2.0894 4.6666-4.6667v-4c0-0.46256-0.0673-0.9094-0.1926-1.3313z",clipRule:"evenodd",fillRule:"evenodd"}),i().createElement("path",{d:"m16.092 11.164 0.0188-1.7026 1e-4 -0.03867c0-1.9752-1.8025-3.8666-4.4-3.8666-2.1696 0-3.828 1.3518-4.2735 2.9432l-0.42657 1.5238-1.581-0.0647c-0.0393-0.0016-0.07893-0.0024-0.11886-0.0024-1.587 0-2.9778 1.3444-2.9778 3.1333 0 1.7871 1.3878 3.1305 2.9728 3.1334l0.02863-2e-4h12.052l0.0123 2e-4c1.1943 0 2.2667-1.0162 2.2667-2.4 0-1.2351-0.8646-2.1899-1.8964-2.3684l-1.6776-0.2904zm-10.581-3.2038c-0.06651-0.00271-0.13335-0.00408-0.2005-0.00408-2.7492 0-4.9778 2.2983-4.9778 5.1333 0 2.8351 2.2286 5.1334 4.9778 5.1334l0.02962-2e-4h12.035l0.0236 2e-4c2.3564 0 4.2667-1.97 4.2667-4.4 0-2.1802-1.5375-3.99-3.5554-4.3392l3e-4 -0.0608c0-3.24-2.8653-5.8666-6.4-5.8666-2.9837 0-5.4905 1.8716-6.1994 4.404z",clipRule:"evenodd",fillRule:"evenodd"}))},15893:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(11268),a=n.n(o),c=n(89105),l=n.n(c),u=n(92819),p=n(65736),d=n(11973),h=n(94218),f=n(95554),m=n(66552),g=n(98362),v=n(83);const __=p.__,b=(e,t,n,r)=>{const s=r&&e.showPromotion?e.promotionPercentage:void 0,o=!n&&g.ZS.hasOwnProperty(e.key)?g.ZS[e.key]:void 0;let a,c;switch(e.slug){case"jetpack_backup_t1_yearly":c=v.pz;break;case"jetpack_scan":c=v.yS;break;case"jetpack_anti_spam":c=v.dn;break;case"jetpack_security_t1_yearly":c=v.jZ,"secondary"===t&&(a=__("Popular upgrade","jetpack"))}return i().createElement(h.Z,{icon:c,title:e.title,productSlug:e.slug,description:e.description,features:e.features,currencyCode:e.currencyCode,price:e.fullPrice/12,discount:s,billingDescription:__("/month, paid yearly","jetpack"),callToAction:a,priority:t,illustrationPath:o,checkoutUrl:e.upgradeUrl,checkoutText:(0,p.sprintf)(
/* translators: %s: Name of a Jetpack product. */
__("Add %s","jetpack"),e.title)})},y=e=>{const{arePromotionsActive:t,availableProductsAndPlans:n,product:s}=e,o=((e,t)=>{const n="security";return!((0,u.isEmpty)(e.includedInPlans)||!t.hasOwnProperty(n)||!e.includedInPlans.includes(n))&&t.security})(s,n);(0,r.useEffect)((()=>{d.Z.tracks.recordEvent("jetpack_product_description_view",{type:s.slug})}),[s]);const a=l()({"jp-product-description":!0,"jp-product-description--split":!!o});return i().createElement(i().Fragment,null,i().createElement("div",{className:a},b(s,"primary",!!o,t),!!o&&b(o,"secondary",!!o,t)),i().createElement("div",{className:"jp-product-description__introductory-pricing"},__("Special introductory pricing, all renewals are at full price.","jetpack")),i().createElement("div",{className:"jp-product-description__money-back-guarantee"},i().createElement(f.N,{text:__("14-day money-back guarantee","jetpack")})))};y.propTypes={product:a().object.isRequired,arePromotionsActive:a().bool,availableProductsAndPlans:a().object.isRequired},y.defaultProps={arePromotionsActive:!1},t.Z=(0,s.$j)((e=>({availableProductsAndPlans:(0,m.by)(e)})))(y)},61161:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(66552),i=n(98362);const s=(e,t)=>{const n=`${(0,r.wW)(e)}admin.php?page=jetpack#`;return i.w7.includes(`/product/${t}`)?`${n}/product/${t}`:`${n}/dashboard`}},31818:function(e,t,n){"use strict";n.d(t,{u:function(){return r}});const r={NOT_STARTED:"not-started",SITE_TYPE:"site-type-question",PRODUCT_SUGGESTIONS:"product-suggestions",PRODUCT_PURCHASED:"product-purchased",WOOCOMMERCE:"woocommerce",MONITOR:"monitor",RELATED_POSTS:"related-posts",CREATIVE_MAIL:"creative-mail",SITE_ACCELERATOR:"site-accelerator",SUMMARY:"summary"}},8816:function(e,t,n){"use strict";n.d(t,{H:function(){return m}});var r=n(89105),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(47678),l=n(9913),u=n(68961),p=n(22256),d=n(46188),h=n(11973),f=n(90218);const m=(0,a.$j)(((e,t)=>({isFeatureActive:(0,f.dz)(e,t.featureSlug),...(0,c.mp)(e,t.featureSlug),learnMoreLink:(0,c.gU)(t.featureSlug).descriptionLink})),((e,t)=>({...(0,c.ZS)(e,t.featureSlug)})))((e=>{const{activateFeature:t,configLink:n,configureButtonLabel:r,displayName:a,featureSlug:c,learnMoreLink:f,summaryActivateButtonLabel:m}=e,[g,v]=(0,s.useState)(!1),b=(0,s.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommendations_summary_configure_click",{feature:c})}),[c]),y=(0,s.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommendations_summary_learn_more_click",{feature:c})}),[c]),k=(0,s.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommendations_summary_enable_click",{feature:c}),v(!0),t().finally((()=>{v(!1)}))}),[t,c,v]),w=o().createElement("div",{className:"jp-recommendations-feature-summary__cta"},e.isFeatureActive?o().createElement(l.Z,{href:n,onClick:b},r):o().createElement(d.Z,{primary:!0,isInstalling:g,onClick:k},m));return o().createElement("div",{className:i()("jp-recommendations-feature-summary",{"is-feature-enabled":e.isFeatureActive})},e.isFeatureActive&&o().createElement("div",{className:"jp-recommendations-feature-summary__checkmark"},o().createElement(p.Z,{icon:"checkmark-circle",size:24})),o().createElement("div",{className:"jp-recommendations-feature-summary__display-name"},o().createElement(u.Z,{href:f,onClick:y,target:"_blank",rel:"noopener noreferrer"},a)),o().createElement("div",{className:"jp-recommendations-feature-summary__actions"},w))}))},47678:function(e,t,n){"use strict";n.d(t,{mp:function(){return c},ZS:function(){return l},gU:function(){return u}});var r=n(65736),i=n(19570),s=n(66552),o=n(17752),a=n(61744);const __=r.__,c=(e,t)=>{switch(t){case"creative-mail":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Creative Mail","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,s.wW)(e)+"admin.php?page=creativemail"};case"monitor":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Downtime Monitoring","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=monitor"};case"related-posts":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Related Posts","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=related%20posts"};case"site-accelerator":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("Site Accelerator","jetpack"),summaryActivateButtonLabel:__("Enable","jetpack"),configLink:"#/settings?term=cdn"};case"woocommerce":return{configureButtonLabel:__("Settings","jetpack"),displayName:__("WooCommerce","jetpack"),summaryActivateButtonLabel:__("Install","jetpack"),configLink:(0,s.wW)(e)+"admin.php?page=wc-admin&path=%2Fsetup-wizard"};default:throw`Unknown feature slug in mapStateToSummaryFeatureProps() recommendations/feature-utils.js: ${t}`}},l=(e,t)=>{switch(t){case"creative-mail":return{activateFeature:()=>i.ZP.installPlugin("creative-mail-by-constant-contact","recommendations").then((()=>{e((0,a.s4)())}))};case"monitor":return{activateFeature:()=>e((0,o.VP)({monitor:!0}))};case"related-posts":return{activateFeature:()=>e((0,o.VP)({"related-posts":!0}))};case"site-accelerator":return{activateFeature:()=>e((0,o.VP)({photon:!0,"photon-cdn":!0,tiled_galleries:!0,"tiled-gallery":!0}))};case"woocommerce":return{activateFeature:()=>i.ZP.installPlugin("woocommerce","recommendations").then((()=>{e((0,a.s4)())}))};default:throw`Unknown feature slug in mapDispatchToProps recommendations/feature-utils.js: ${t}`}},u=e=>{switch(e){case"creative-mail":return{progressValue:"83",question:__("Would you like to turn site visitors into subscribers with Creative Mail?","jetpack"),description:__("The Jetpack <strong>Newsletter Form</strong> combined with <strong>Creative Mail</strong> by Constant Contact can help automatically gather subscribers and send them beautiful emails. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/jetpack-blocks/form-block/newsletter-sign-up-form/",ctaText:__("Install Creative Mail","jetpack"),illustrationPath:"/recommendations/creative-mail-illustration.svg"};case"monitor":return{progressValue:"50",question:__("Would you like Downtime Monitoring to notify you if your site goes offline?","jetpack"),description:__("If your site ever goes down, <strong>Downtime Monitoring</strong> will send you an email or push notitification to let you know. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/monitor/",ctaText:__("Enable Downtime Monitoring","jetpack"),illustrationPath:"/recommendations/monitor-illustration.svg"};case"related-posts":return{progressValue:"67",question:__("Would you like Related Posts to display at the bottom of your content?","jetpack"),description:__("Displaying <strong>Related Posts</strong> at the end of your content keeps visitors engaged and on your site longer. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/related-posts/",ctaText:__("Enable Related Posts","jetpack"),illustrationPath:"/recommendations/related-posts-illustration.jpg"};case"site-accelerator":return{progressValue:"99",question:__("Would you like Site Accelerator to help your site load faster?","jetpack"),description:__("Faster sites get better ranking in search engines and help keep visitors on your site longer. <strong>Site Accelerator</strong> will automatically optimize your image and files. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://jetpack.com/support/site-accelerator/",ctaText:__("Enable Site Accelerator","jetpack"),illustrationPath:"/recommendations/site-accelerator-illustration.svg"};case"woocommerce":return{progressValue:"33",question:__("Would you like WooCommerce to power your store?","jetpack"),description:__("We’re partnered with <strong>WooCommerce</strong> — a customizable, open-source eCommerce platform built for WordPress. It’s everything you need to start selling products today. <ExternalLink>Learn more</ExternalLink>","jetpack"),descriptionLink:"https://woocommerce.com/woocommerce-features/",ctaText:__("Install WooCommerce","jetpack"),illustrationPath:"/recommendations/woocommerce-illustration.jpg"};default:throw`Unknown step slug in recommendations/question: ${e}`}}},29955:function(e,t,n){"use strict";n.d(t,{V:function(){return _}});var r=n(99196),i=n.n(r),s=n(12901),o=n(2620),a=n(65736),c=n(24299),l=n(95189),u=n(42897),p=n(8931),d=n(30018),h=n(76563),f=n(76287),m=n(83361),g=n(9477),v=n(27219),b=n(15142),y=n(90218),k=n(79644),w=n(31818);const __=a.__,_=(0,o.$j)((e=>({isLoading:!(0,y.WA)(e),step:(0,y.TO)(e)})))((e=>{const{isLoading:t,step:n}=e;let r;switch(n){case w.u.NOT_STARTED:case w.u.SITE_TYPE:r="/site-type";break;case w.u.PRODUCT_SUGGESTIONS:r="/product-suggestions";break;case w.u.PRODUCT_PURCHASED:r="/product-purchased";break;case w.u.WOOCOMMERCE:r="/woocommerce";break;case w.u.MONITOR:r="/monitor";break;case w.u.RELATED_POSTS:r="/related-posts";break;case w.u.CREATIVE_MAIL:r="/creative-mail";break;case w.u.SITE_ACCELERATOR:r="/site-accelerator";break;case w.u.SUMMARY:r="/summary";break;default:throw`Unknown step ${n} in RecommendationsComponent`}return i().createElement(i().Fragment,null,i().createElement(h.Z,null),i().createElement(f.Z,null),i().createElement(m.Z,null),i().createElement(g.Z,null),i().createElement(v.Z,null),i().createElement(b.Z,null),t?i().createElement("div",{className:"jp-recommendations__loading"},i().createElement(k.D,{altText:__("Loading recommendations","jetpack")})):i().createElement(s.rs,null,i().createElement(s.l_,{exact:!0,from:"/recommendations",to:"/recommendations"+r}),i().createElement(s.AW,{path:"/recommendations/site-type"},i().createElement(p.g,null)),i().createElement(s.AW,{path:"/recommendations/product-suggestions"},i().createElement(l.V,null)),i().createElement(s.AW,{path:"/recommendations/product-purchased"},i().createElement(u.Y,null)),i().createElement(s.AW,{path:"/recommendations/woocommerce"},i().createElement(c.Q,{stepSlug:"woocommerce"})),i().createElement(s.AW,{path:"/recommendations/monitor"},i().createElement(c.Q,{stepSlug:"monitor"})),i().createElement(s.AW,{path:"/recommendations/related-posts"},i().createElement(c.Q,{stepSlug:"related-posts"})),i().createElement(s.AW,{path:"/recommendations/creative-mail"},i().createElement(c.Q,{stepSlug:"creative-mail"})),i().createElement(s.AW,{path:"/recommendations/site-accelerator"},i().createElement(c.Q,{stepSlug:"site-accelerator"})),i().createElement(s.AW,{path:"/recommendations/summary"},i().createElement(d.E,null))))}))},42897:function(e,t,n){"use strict";n.d(t,{Y:function(){return g}});var r=n(99196),i=n.n(r),s=n(2620),o=n(92819),a=n(65736),c=n(10618),l=n(46576),u=n(79644),p=n(9913),d=n(22256),h=n(11973),f=n(90218),m=n(88872);const __=a.__,_x=a._x,g=(0,s.$j)((e=>({activePurchases:(0,m.p)(e),isFetchingSiteData:(0,m._5)(e),isFetchingSuggestions:(0,f.at)(e),nextRoute:(0,f.mI)(e),sitePlan:(0,m.UL)(e),suggestions:(0,f.El)(e)})))((e=>{const{nextRoute:t}=e,n=(e=>{let{activePurchases:t,isFetchingSiteData:n,isFetchingSuggestions:r,sitePlan:i,suggestions:s}=e;if(n||r)return!1;if(!s||!(0,o.isArray)(s))return!1;const a=s.find((e=>e.slug===i.product_slug));if(a)return a;if((0,o.isArray)(t)){const e=s.find((e=>{if(t.find((t=>e.slug===t.product_slug)))return e}));if(e)return e}return!1})(e);if((0,r.useEffect)((()=>{n&&h.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_purchased",{type:n.slug})}),[n]),!n)return i().createElement(u.D,{altText:__("Loading recommendations","jetpack")});const s=i().createElement("div",{className:"jp-recommendations-product-purchased"},i().createElement("ul",{className:"jp-recommendations-product-purchased__features"},n&&n.features.map(((e,t)=>i().createElement("li",{className:"jp-recommendations-product-purchased__feature",key:t},i().createElement(d.Z,{icon:"checkmark"}),e)))),i().createElement(p.Z,{primary:!0,className:"jp-recommendations-product-purchased__next",href:t},_x("Configure your site","Recommendations Product Purchased","jetpack")));return i().createElement(l.X,{progressBar:i().createElement(c.Z,{color:"#00A32A",value:"33"}),question:__("Your plan has been upgraded!","jetpack"),description:__("You now have access to these benefits:","jetpack"),illustrationPath:"recommendations/product-purchased-illustration.svg",answer:s})}))},3722:function(e,t,n){"use strict";n.d(t,{C:function(){return f}});var r=n(89105),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(87279),p=n(11973),d=n(90218);const h=e=>{let{answerKey:t,checked:n,info:r,title:s,updateCheckboxAnswer:o}=e;const l=(0,a.useCallback)((e=>{if("checkbox"!==e.target.type)return;o({[t]:!n})}),[t,n,o]),d=(0,a.useCallback)((e=>{e.stopPropagation()}),[]),h=(0,a.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_site_type_popover_click",{type:t.replace("-","_")})}),[t]);return c().createElement("div",{className:i()("jp-checkbox-answer__container",{checked:n}),onClick:l,onKeyPress:l,role:"checkbox","aria-checked":n,tabIndex:0},c().createElement("div",{className:"jp-checkbox-answer__checkbox"},c().createElement("input",{id:t,type:"checkbox",defaultChecked:n,tabIndex:-1})),c().createElement("label",{htmlFor:t,className:"jp-checkbox-answer__title"},s),c().createElement("div",{className:"jp-checkbox-answer__info",onClick:d,onKeyPress:d,role:"presentation"},c().createElement(u.Z,{position:"top right",onClick:h},r)))};h.propTypes={answerKey:o().string.isRequired,info:o().string.isRequired,title:o().string.isRequired};const f=(0,l.$j)(((e,t)=>({checked:(0,d.$q)(e,t.answerKey)})),(e=>({updateCheckboxAnswer:t=>e((0,d.x5)(t))})))(h)},24299:function(e,t,n){"use strict";n.d(t,{Q:function(){return m}});var r=n(10618),i=n(69307),s=n(65736),o=n(99196),a=n.n(o),c=n(2620),l=n(47678),u=n(46576),p=n(9913),d=n(68961),h=n(11973),f=n(90218);const __=s.__,m=(0,c.$j)(((e,t)=>({nextRoute:(0,f.mI)(e),...(0,l.gU)(t.stepSlug)})),((e,t)=>({addSelectedRecommendation:t=>e((0,f.Pq)(t)),addSkippedRecommendation:t=>e((0,f.J_)(t)),updateRecommendationsStep:t=>e((0,f.OC)(t)),...(0,l.ZS)(e,t.stepSlug)})))((e=>{const{activateFeature:t,addSelectedRecommendation:n,addSkippedRecommendation:s,ctaText:c,description:l,descriptionLink:f,illustrationPath:m,nextRoute:g,progressValue:v,question:b,stepSlug:y,updateRecommendationsStep:k}=e;(0,o.useEffect)((()=>{k(y)}),[y,k]);const w=(0,o.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommended_feature_learn_more_click",{feature:y})}),[y]),_=(0,o.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommended_feature_enable_click",{feature:y}),n(y),t()}),[t,n,y]),E=(0,o.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommended_feature_decide_later_click",{feature:y}),s(y)}),[s,y]);return a().createElement(u.X,{progressBar:a().createElement(r.Z,{color:"#00A32A",value:v}),question:b,description:(0,i.createInterpolateElement)(l,{strong:a().createElement("strong",null),ExternalLink:a().createElement(d.Z,{href:f,target:"_blank",icon:!0,iconSize:16,onClick:w})}),answer:a().createElement("div",{className:"jp-recommendations-question__install-section"},a().createElement(p.Z,{primary:!0,href:g,onClick:_},c),a().createElement("a",{href:g,onClick:E},__("Not now","jetpack"))),illustrationPath:m})}))},8978:function(e,t,n){"use strict";n.d(t,{A:function(){return b}});var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(65736),l=n(78850),u=n(71415),p=n(9913),d=n(68961),h=n(11973),f=n(66552),m=n(90218);const __=c.__,g=e=>{let{product:t,siteAdminUrl:n,siteRawUrl:r}=e;return(0,u.Z)("jetpack-recommendations-product-checkout",{site:r,path:t.slug,query:`redirect_to=${n}admin.php?jp-react-redirect=product-purchased`})},v=e=>{const{product:t,addSelectedRecommendation:n}=e,r=(0,s.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_click",{type:t.slug}),n("product-suggestions")}),[t,n]),i=(0,s.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommendations_product_suggestion_learn_more_click",{type:t.slug})}),[t]),a=(0,l.LR)(t.cost,t.currency_code);return o().createElement("div",{className:"jp-recommendations-product-suggestion-item jp-recommendations-product-suggestion__item"},o().createElement("div",{className:"jp-recommendations-product-suggestion-item__content"},o().createElement("h2",{className:"jp-recommendations-product-suggestion-item__title"},t.title),o().createElement("p",{className:"jp-recommendations-product-suggestion-item__description"},t.description),o().createElement("div",{className:"jp-recommendations-product-suggestion-item__price"},o().createElement("h3",{className:"jp-recommendations-product-suggestion-item__raw-price"},o().createElement("sup",{className:"jp-recommendations-product-suggestion-item__currency-symbol"},a.symbol),o().createElement("span",{className:"jp-recommendations-product-suggestion-item__price-integer"},a.integer),o().createElement("sup",{className:"jp-recommendations-product-suggestion-item__price-fraction"},a.fraction)),o().createElement("span",{className:"jp-recommendations-product-suggestion-item__billing-time-frame"},t.cost_timeframe,",",o().createElement("br",null),t.billing_timeframe)),o().createElement("div",{className:"jp-recommendations-product-suggestion-item__actions"},o().createElement(p.Z,{className:"jp-recommendations-product-suggestion-item__checkout-button",primary:!0,href:g(e),onClick:r},(0,c.sprintf)(
/* translators: %s: Name of a Jetpack product. */
__("Continue with %s","jetpack"),t.title)),!!t.cta_link&&!!t.cta_text&&o().createElement(d.Z,{className:"jp-recommendations-product-suggestion-item__external-link",href:t.cta_link,target:"_blank",icon:!0,iconSize:16,onClick:i,children:t.cta_text}))))};v.propTypes={product:i().object.isRequired};const b=(0,a.$j)((e=>({siteAdminUrl:(0,f.wW)(e),siteRawUrl:(0,f.JR)(e)})),(e=>({addSelectedRecommendation:t=>e((0,m.Pq)(t))})))(v)},95189:function(e,t,n){"use strict";n.d(t,{V:function(){return m}});var r=n(99196),i=n.n(r),s=n(2620),o=n(12901),a=n(65736),c=n(10618),l=n(79644),u=n(46576),p=n(8978),d=n(95554),h=n(11973),f=n(90218);const __=a.__,_x=a._x,m=(0,s.$j)((e=>({nextRoute:(0,f.mI)(e),suggestions:(0,f.El)(e),isFetchingSuggestions:(0,f.at)(e),isProductSuggestionsAvailable:(0,f.sB)(e)})),(e=>({addSkippedRecommendation:t=>e((0,f.J_)(t)),updateRecommendationsStep:t=>e((0,f.OC)(t))})))((e=>{const{addSkippedRecommendation:t,nextRoute:n,isFetchingSuggestions:s,isProductSuggestionsAvailable:a,updateRecommendationsStep:f,suggestions:m}=e;(0,r.useEffect)((()=>{f("product-suggestions")}),[f]);const g=(0,r.useCallback)((()=>{h.Z.tracks.recordEvent("jetpack_recommendations_product_suggestions_decide_later_click"),t("product-suggestions")}),[t]);if(s)return i().createElement(l.D,{altText:__("Loading recommendations","jetpack")});if(!a)return i().createElement(o.l_,{to:n.substring(1)});const v=i().createElement("div",{className:"jp-recommendations-product-suggestion__container"},i().createElement("div",{className:"jp-recommendations-product-suggestion__items"},m.map(((e,t)=>i().createElement(p.A,{key:t,product:e})))),i().createElement("div",{className:"jp-recommendations-product-suggestion__introductory-pricing"},__("Special introductory pricing, all renewals are at full price.","jetpack")),i().createElement("div",{className:"jp-recommendations-product-suggestion__money-back-guarantee"},i().createElement(d.N,{text:__("14-day money-back guarantee","jetpack")})),i().createElement("a",{className:"jp-recommendations-product-suggestion__skip",href:n,onClick:g},__("Decide later","jetpack")));return i().createElement(u.X,{progressBar:i().createElement(c.Z,{color:"#00A32A",value:"33"}),question:_x("Choose a plan","Recommendations Product Suggestions","jetpack"),description:_x("These are the most popular Jetpack plans for sites like yours:","Recommendations Product Suggestions","jetpack"),answer:v})}))},46576:function(e,t,n){"use strict";n.d(t,{X:function(){return p}});var r=n(89105),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(65736),u=n(98486);const __=l.__,p=e=>{const{answer:t,description:n,illustrationPath:r,progressBar:s,question:o}=e;return c().createElement("div",{className:i()("jp-recommendations-question__main",{"jp-recommendations-question__main--with-illustration":!!r})},c().createElement("div",{className:"jp-recommendations-question__content"},c().createElement("div",{className:"jp-recommendations-question__progress-bar"},s),c().createElement("h1",{className:"jp-recommendations-question__question"},o),c().createElement("p",{className:"jp-recommendations-question__description"},n),c().createElement("div",{className:"jp-recommendations-question__answer"},t)),r&&c().createElement("div",{className:"jp-recommendations-question__illustration-container"},c().createElement("img",{className:"jp-recommendations-question__illustration-background",src:u.hp+"recommendations/background.svg",alt:__("An illustration of a browser window used as the container to visually represent the current question.","jetpack")}),c().createElement("img",{className:"jp-recommendations-question__illustration-foreground",src:u.hp+r,alt:(0,l.sprintf)(
/* translators: %s: Name of the current Jetpack Assistant question (read: step). */
__("Illustration used to visually represent the current question: %s.","jetpack"),o)})))};p.propTypes={answer:o().element.isRequired,description:o().oneOfType([o().string,o().element]).isRequired,illustrationPath:o().string,progressBar:o().element.isRequired,question:o().oneOfType([o().string,o().element]).isRequired}},8931:function(e,t,n){"use strict";n.d(t,{g:function(){return f}});var r=n(99196),i=n.n(r),s=n(2620),o=n(65736),a=n(10618),c=n(46576),l=n(3722),u=n(9913),p=n(11973),d=n(66552),h=n(90218);const __=o.__,f=(0,s.$j)((e=>({nextRoute:(0,h.mI)(e),siteTitle:(0,d.aW)(e),answers:{personal:(0,h.$q)(e,"site-type-personal"),business:(0,h.$q)(e,"site-type-business"),store:(0,h.$q)(e,"site-type-store"),other:(0,h.$q)(e,"site-type-other")}})),(e=>({updateRecommendationsStep:t=>e((0,h.OC)(t)),saveRecommendationsData:()=>e((0,h.u8)())})))((e=>{const{answers:t,nextRoute:n,saveRecommendationsData:s,siteTitle:d,updateRecommendationsStep:h}=e;(0,r.useEffect)((()=>{h("site-type-question")}),[h]);const f=(0,r.useCallback)((()=>{s(),p.Z.tracks.recordEvent("jetpack_recommendations_site_type_answered",t)}),[t,s]),m=i().createElement("div",{className:"jp-recommendations-question__site-type-answer-container"},i().createElement("div",{className:"jp-recommendations-question__site-type-checkboxes"},i().createElement(l.C,{answerKey:"site-type-personal",title:__("Personal","jetpack"),info:__("Personal sites usually include blogs, resume sites, weddings or other events, and hobby sites.","jetpack")}),i().createElement(l.C,{answerKey:"site-type-business",title:__("Business","jetpack"),info:__("Business sites usually include shops, services like lawyers, or plumbers, and advertisers or influencers.","jetpack")}),i().createElement(l.C,{answerKey:"site-type-store",title:__("Store","jetpack"),info:__("Stores typically include online e-commerce stores selling goods, services, or digital downloads.","jetpack")}),i().createElement(l.C,{answerKey:"site-type-other",title:__("Other","jetpack"),info:__("Other sites may include non-profits, colleges or schools, apps, real-estate, or others.","jetpack")})),i().createElement(u.Z,{primary:!0,href:n,onClick:f},__("Continue","jetpack")),i().createElement("div",{className:"jp-recommendations-site-type-question__continue-description"},__("All of Jetpack’s great features await you and we’ll recommend some of our favorites.","jetpack")));return i().createElement(c.X,{progressBar:i().createElement(a.Z,{color:"#00A32A",value:"17"}),question:
/* translators: placeholder is the title of the site */
(0,o.sprintf)(__("What type of site is %s?","jetpack"),d),description:__("This assistant will help you get the most from Jetpack. Tell us more about your goals and we’ll recommend relevant features to help you succeed.","jetpack"),answer:m,illustrationPath:"recommendations/site-type-illustration.jpg"})}))},41596:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(99196),i=n.n(r);const s=e=>{const{content:t,illustrationPath:n}=e;return i().createElement("div",{className:"jp-recommendations-sidebar-card"},i().createElement("div",{className:"jp-recommendations-sidebar-card__illustration-container"},i().createElement("div",{className:"jp-recommendations-sidebar-card__illustration"},i().createElement("img",{src:n,alt:""}))),i().createElement("div",{className:"jp-recommendations-sidebar-card__content"},t))}},85821:function(e,t,n){"use strict";n.d(t,{K:function(){return d}});var r=n(69307),i=n(65736),s=n(99196),o=n.n(s),a=n(76238),c=n(41596),l=n(22256),u=n(98486),p=n(11973);const __=i.__,d=()=>{const e=[__("Refined post and page editor","jetpack"),__("Manage multiple sites from one dashboard","jetpack"),__("Multi-site plugin management","jetpack"),__("Free stock photo library","jetpack"),__("Update your site from any device","jetpack")];(0,s.useEffect)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"mobile_app"})}),[]);const t=(0,s.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_wpcom"})}),[]),n=(0,s.useCallback)((e=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"mobile_app_badge",store:e})}),[]);return o().createElement(c.A,{illustrationPath:u.hp+"/recommendations/mobile-app.svg",content:o().createElement("div",null,o().createElement("h2",null,__("Explore a better editing experience","jetpack")),o().createElement("p",null,(0,r.createInterpolateElement)(__("With Jetpack, you have <strong>free access</strong> to managing your site with <a>WordPress.com</a> and the Android and iOS WordPress apps.","jetpack"),{strong:o().createElement("strong",null),a:o().createElement("a",{href:"https://wordpress.com",target:"_blank",rel:"noreferrer",onClick:t})})),o().createElement("ul",{className:"jp-recommendations-sidebar-card__features"},e.map((e=>o().createElement("li",null,o().createElement(l.Z,{icon:"checkmark-circle"}),e)))),o().createElement("div",{className:"jp-recommendations-sidebar-card__apps-badge"},o().createElement(a.Z,{onBadgeClick:n,storeName:"ios",utm_source:"jetpack-plugin-recommendations"}),o().createElement(a.Z,{onBadgeClick:n,storeName:"android",utm_source:"jetpack-plugin-recommendations"})))})}},85295:function(e,t,n){"use strict";n.d(t,{c:function(){return m}});var r=n(65736),i=n(99196),s=n.n(i),o=n(2620),a=n(71415),c=n(41596),l=n(9913),u=n(98486),p=n(11973),d=n(81200),h=n(66552),f=n(88872);const __=r.__,m=(0,o.$j)((e=>({siteRawUrl:(0,h.JR)(e),planClass:(0,f.b7)(e)?(0,d.sc)((0,f.Jz)(e).product_slug):(0,d.sc)((0,f.UL)(e).product_slug)})))((e=>{const{planClass:t,siteRawUrl:n}=e;(0,i.useEffect)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"one-click-restores"})}),[]);const o=(0,i.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"one_click_restores"})}),[]),h=(0,d.lq)(t)?__("Real-time Backups","jetpack"):__("Daily Backups","jetpack");return s().createElement(c.A,{illustrationPath:u.hp+"/recommendations/one-click-restores.svg",content:s().createElement("div",{className:"jp-recommendations-one-click-restores"},s().createElement("h2",null,__("Enable one-click restores","jetpack")),s().createElement("p",null,(0,r.sprintf)(
/* translators: placeholder is the name of a backups plan: Daily Backups or Real-time Backups */
__("Get the most out of your %s. One-click restores ensure you’ll be able to easily restore your site, if anything goes wrong.","jetpack"),h)),s().createElement("p",null,__("Enter your server credentials to enable one-click restores included in your plan.","jetpack")),s().createElement("div",{className:"jp-recommendations-one-click-restores__cta"},s().createElement(l.Z,{primary:!0,href:(0,a.Z)("jetpack-backup-dash-credentials",{site:n}),onClick:o},__("Enable one-click restores","jetpack"))))})}))},82355:function(e,t,n){"use strict";n.d(t,{q:function(){return u}});var r=n(65736),i=n(99196),s=n.n(i),o=n(9913),a=n(22256),c=n(98486),l=n(11973);const __=r.__,u=e=>{const{upgradeUrl:t}=e;(0,i.useEffect)((()=>{l.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"upsell_no_price"})}),[]);const n=(0,i.useCallback)((()=>{l.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"upsell_no_price"})}),[]),r=[__("Robust security to keep your site safe","jetpack"),__("Speed-enhancing performance tools","jetpack"),__("Increase site growth with marketing","jetpack")];return s().createElement("div",{className:"jp-recommendations-product-card-upsell-no-price"},s().createElement("div",{className:"jp-recommendations-product-card-upsell-no-price__header-chrome"},s().createElement("img",{src:c.hp+"/star.svg",alt:""}),__("Recommended premium product","jetpack")),s().createElement("div",{className:"jp-recommendations-product-card-upsell-no-price__padding"},s().createElement("h2",null,__("Powerful security, performance, and marketing","jetpack")),s().createElement("ul",null,r.map((e=>s().createElement("li",{key:e},s().createElement(a.Z,{icon:"checkmark-circle"}),e)))),s().createElement("p",null,__("Explore premium Jetpack product bundles or pick and choose exactly what you need.","jetpack")),s().createElement(o.Z,{primary:!0,href:t,onClick:n,target:"blank",rel:"noopener noreferrer"},__("Learn more","jetpack"),s().createElement(a.Z,{icon:"external"}))))}},65155:function(e,t,n){"use strict";n.d(t,{u:function(){return d}});var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(78850),c=n(9913),l=n(22256),u=n(98486),p=n(11973);const d=e=>{let{billing_timeframe:t,cost_timeframe:n,cta_text:r,currency_code:i,description:d,features:h,header:f,price:m,product_slug:g,title:v,upgradeUrl:b}=e;(0,s.useEffect)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"upsell_with_price",product_slug:g})}),[g]);const y=(0,s.useCallback)((()=>{p.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"upsell_with_price",product_slug:g})}),[g]),k=(0,a.LR)(m,i);return o().createElement("div",{className:"jp-recommendations-product-card-upsell"},o().createElement("div",{className:"jp-recommendations-product-card-upsell__header-chrome"},o().createElement("img",{src:u.hp+"/star.svg",alt:""}),f),o().createElement("div",{className:"jp-recommendations-product-card-upsell__padding"},o().createElement("h1",null,v),o().createElement("p",null,d),o().createElement("div",{className:"jp-recommendations-product-card-upsell__price"},o().createElement("span",{className:"jp-recommendations-product-card-upsell__raw-price"},o().createElement("h2",null,o().createElement("sup",{className:"jp-recommendations-product-card-upsell__currency-symbol"},k.symbol),o().createElement("span",{className:"jp-recommendations-product-card-upsell__price-integer"},k.integer),o().createElement("sup",{className:"jp-recommendations-product-card-upsell__price-fraction"},k.fraction))),o().createElement("span",{className:"jp-recommendations-product-card-upsell__billing-time-frame"},n,o().createElement("br",null),t)),o().createElement(c.Z,{className:"jp-recommendations-product-card-upsell__cta-button",primary:!0,href:b,onClick:y,target:"_blank",rel:"noopener noreferrer"},r,o().createElement(l.Z,{icon:"external"})),o().createElement("ul",{className:"jp-recommendations-sidebar-card__features"},h.map((e=>o().createElement("li",{key:e},o().createElement(l.Z,{icon:"checkmark-circle"}),e))))))};d.propTypes={title:i().string.isRequired,description:i().string.isRequired,upgradeUrl:i().string.isRequired,features:i().arrayOf(i().string)}},92498:function(e,t,n){"use strict";n.d(t,{c:function(){return f}});var r=n(65736),i=n(99196),s=n.n(i),o=n(2620),a=n(71415),c=n(41596),l=n(9913),u=n(22256),p=n(98486),d=n(11973),h=n(66552);const __=r.__,f=(0,o.$j)((e=>({siteRawUrl:(0,h.JR)(e)})))((e=>{const{siteRawUrl:t}=e;(0,i.useEffect)((()=>{d.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_display",{type:"security"})}),[]);const n=(0,i.useCallback)((()=>{d.Z.tracks.recordEvent("jetpack_recommendations_summary_sidebar_click",{type:"security"})}),[]);return s().createElement(c.A,{illustrationPath:p.hp+"/recommendations/manage-security.svg",content:s().createElement("div",null,s().createElement("h2",null,__("Manage your security on Jetpack.com","jetpack")),s().createElement("p",null,__("Did you know you can manage all your backups right from Jetpack.com?","jetpack")),s().createElement("p",null,__("You can also use your included Activity feature to monitor every change that occurs on your site!","jetpack")),s().createElement(l.Z,{primary:!0,href:(0,a.Z)("jetpack-backup",{site:t}),target:"_blank",rel:"noopener noreferrer",onClick:n},__("Manage security on Jetpack.com","jetpack"),s().createElement(u.Z,{icon:"external"})))})}))},30018:function(e,t,n){"use strict";n.d(t,{E:function(){return M}});var r=n(29183),i=n.n(r),s=n(69307),o=n(65736),a=n(89105),c=n.n(a),l=n(92819),u=n(99196),p=n.n(u),d=n(2620),h=n(8816),f=n(79644),m=n(85295),g=n(92498),v=n(85821),b=n(82355),y=n(65155),k=n(68961),w=n(22256),_=n(11973),E=n(66552),C=n(90218),S=n(17752),j=n(61744);const __=o.__,M=(0,d.$j)((e=>{const t=(0,j.bK)(e),n=(0,S.Gw)(e),r=(0,C.jn)(e);return{isFetchingMainData:(0,l.isEmpty)(n)||(0,l.isEmpty)(t),isFetchingSidebarData:(0,l.isEmpty)(r),sidebarCardSlug:(0,C.Xi)(e),siteTypeDisplayName:(0,C.M)(e),summaryFeatureSlugs:(0,C.CI)(e),upgradeUrl:(0,E.Qq)(e,"jetpack-recommendations-backups"),upsell:r}}),(e=>({updateRecommendationsStep:t=>e((0,C.OC)(t))})))((e=>{const{isFetchingMainData:t,isFetchingSidebarData:n,sidebarCardSlug:r,siteTypeDisplayName:a,summaryFeatureSlugs:l,updateRecommendationsStep:d,upgradeUrl:E,upsell:C}=e,S=(0,u.useCallback)((()=>{_.Z.tracks.recordEvent("jetpack_recommended_summary_learn_more_click")}),[]);(0,u.useEffect)((()=>{d("summary")}),[d]);const j=t?p().createElement(f.D,{altText:__("Loading recommendations","jetpack")}):p().createElement(p().Fragment,null,p().createElement("div",{className:"jp-recommendations-summary__configuration"},p().createElement("h1",null,(0,o.sprintf)(
/* translators: placeholder indicates the type of site, such as "personal site" or "store" */
__("Nice work! Let’s ensure the features you enabled are configured for your %s.","jetpack"),a)),p().createElement("section",{"aria-labelledby":"enabled-recommendations"},p().createElement("h2",{id:"enabled-recommendations"},__("Recommendations enabled","jetpack")),p().createElement("div",null,l.selected.length>0?l.selected.map((e=>p().createElement(h.H,{key:e,featureSlug:e}))):p().createElement("p",null,p().createElement("em",null,__("You didn’t enable any recommended features. To get the most out of Jetpack, enable some recommendations or explore all Jetpack features.","jetpack"))))),l.skipped.length>0&&p().createElement("section",{"aria-labelledby":"skipped-recommendations"},p().createElement("h2",{id:"skipped-recommendations"},__("Recommendations skipped","jetpack")),p().createElement("div",null,l.skipped.map((e=>p().createElement(h.H,{key:e,featureSlug:e})))))),p().createElement("div",{className:"jp-recommendations-summary__more-features"},p().createElement(w.Z,{icon:"info-outline"}),p().createElement("p",null,(0,s.createInterpolateElement)(__("Curious what else Jetpack has to offer? <ExternalLink>View all Jetpack features</ExternalLink>","jetpack"),{ExternalLink:p().createElement(k.Z,{href:"https://jetpack.com/features/comparison/",target:"_blank",rel:"noopener noreferrer",onClick:S,icon:!0,iconSize:16})}))));let M;if(n)M=p().createElement(f.D,{altText:__("Loading recommendations","jetpack")});else switch(r){case"loading":M=p().createElement(f.D,{altText:__("Loading recommendations","jetpack")});break;case"upsell":M=C.hide_upsell?p().createElement(b.q,{upgradeUrl:E}):p().createElement(y.u,i()({},C,{upgradeUrl:E}));break;case"one-click-restores":M=p().createElement(m.c,null);break;case"manage-security":M=p().createElement(g.c,null);break;case"download-app":M=p().createElement(v.K,null);break;default:throw`Unknown sidebarCardSlug in SummaryComponent: ${r}`}return p().createElement("div",{className:"jp-recommendations-summary"},p().createElement("div",{className:c()("jp-recommendations-summary__content",{isLoading:t})},j),p().createElement("div",{className:c()("jp-recommendations-summary__sidebar",{isLoading:n})},M))}))},70445:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(11268),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(65736),d=n(34606),h=n(5e4),f=n(93107),m=n(19555),g=n(84277),v=n(27006),b=n(66552),y=n(41147),k=n(24951);const __=p.__,w=(0,h.u)(class extends a.Component{constructor(){super(...arguments),i()(this,"handleBannerClick",(e=>()=>this.props.updateOptions({[e]:!0})))}render(){if(!this.props.canManageModules)return null;if(this.props.searchTerm.length<3)return null;const e=["contact-form","enhanced-distribution","json-api","notes"],t=this.props.modules,n=[];return(0,u.forEach)(t,((t,r)=>{if(this.props.isModuleFound(r)&&(0,u.includes)(e,r)){const e=this.props.isOfflineMode&&this.props.isUnavailableInOfflineMode(t.module),i=!this.props.hasConnectedOwner&&this.props.isUnavailableInSiteConnectionMode(t.module);if(e||i)return n.push(c().createElement(_,{key:r,moduleData:t,offlineMode:e,siteConnectionMode:i}));this.props.getOptionValue(t.module)?n.push(c().createElement(_,{key:r,moduleData:t})):n.push(c().createElement(d.Z,{className:"jp-searchable-banner",key:r,callToAction:__("Activate","jetpack"),description:t.description,href:"javascript:void( 0 )",icon:"cog",onClick:this.handleBannerClick(t.module),title:t.name}))}})),c().createElement("div",null,n)}});w.propTypes={searchTerm:o().string},w.defaultProps={searchTerm:""};class _ extends a.Component{render(){const e=this.props.moduleData,t=this.props.offlineMode,n=this.props.siteConnectionMode;return c().createElement(g.Z,{module:e.module,header:e.name,action:e.module,hideButton:!0},c().createElement(v.Z,{disableInOfflineMode:t,disableInSiteConnectionMode:n,module:{module:e.module},support:{link:e.learn_more_button}},e.description),n&&c().createElement(k.Z,{feature:e.module,featureLabel:e.name,text:__("Connect to configure.","jetpack")}))}}t.Z=(0,l.$j)((e=>({modules:(0,f.hU)(e),isModuleFound:t=>(0,m.CX)(e,t),canManageModules:(0,b.pK)(e),isUnavailableInOfflineMode:t=>(0,y.t_)(e,t),isOfflineMode:(0,y.Ex)(e),isUnavailableInSiteConnectionMode:t=>(0,y.IK)(e,t)})))(w)},35177:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(69307),d=n(65736),h=n(11973),f=n(81200),m=n(78919),g=n(28859),v=n(55735),b=n(22256),y=n(75395),k=n(84277),w=n(27006),_=n(15029),E=n(5e4);const __=d.__,_x=d._x,C=(0,E.u)(class extends a.Component{constructor(){super(...arguments),o()(this,"state",{apiKey:this.props.getOptionValue("wordpress_api_key"),delayKeyCheck:!1,currentEvent:{}}),o()(this,"keyChanged",!1),o()(this,"checkApiKeyTyped",(e=>{this.props.checkAkismetKey(e.currentTarget.value),this.keyChanged=!0,this.setState({delayKeyCheck:!1})})),o()(this,"updateText",(e=>{const t=(0,u.assign)({},e);t.currentTarget.value=(0,u.trim)(t.currentTarget.value),this.setState({apiKey:t.currentTarget.value,delayKeyCheck:!0,currentEvent:t},this.debouncedCheckApiKeyTyped(t))})),o()(this,"trackOpenCard",(()=>{h.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"anti-spam"})}))}UNSAFE_componentWillMount(){this.debouncedCheckApiKeyTyped=(0,u.debounce)(this.checkApiKeyTyped,500)}componentDidUpdate(){!this.props.isCheckingAkismetKey&&this.props.isAkismetKeyValid&&this.keyChanged&&!(0,u.isEmpty)(this.state.currentEvent)&&(this.keyChanged=!1,this.props.onOptionChange(this.state.currentEvent))}render(){const e={name:"wordpress_api_key",value:this.state.apiKey,disabled:this.props.isSavingAnyOption("wordpress_api_key"),onChange:this.updateText};let t="",n=__("Checking your spam protection…","jetpack"),r=(0,p.createInterpolateElement)(__("If you don't already have an API key, then <a>get your API key here</a>, and you'll be guided through the process of getting one.","jetpack"),{a:c().createElement("a",{href:"https://akismet.com/wordpress/"})});return null===this.props.isAkismetKeyValid?(e.value=__("Fetching key…","jetpack"),e.disabled=!0,r=!1):!this.props.isDirty()&&""===this.props.getSettingCurrentValue("wordpress_api_key")&&this.props.isAkismetKeyValid?(e.value=__("A valid key has been set in your site's configuration.","jetpack"),e.isValid=!0,e.disabled=!0,n=__("Your site is protected from spam.","jetpack"),r=__("It looks like your API key has been set globally.","jetpack"),t=c().createElement(g.Z,{text:__("Your Anti-spam key is valid.","jetpack")})):""===this.state.apiKey?(e.value="",n=__("Your site needs an Anti-spam key.","jetpack")):this.state.delayKeyCheck||this.props.isCheckingAkismetKey?this.props.isCheckingAkismetKey&&(t=c().createElement("div",{className:"form-input-validation is-warning"},c().createElement("span",null,c().createElement(b.Z,{size:24,icon:"sync"}),__("Checking key…","jetpack"))),r=!1):!1===this.props.isAkismetKeyValid?(t=c().createElement(g.Z,{isError:!0,text:(0,p.createInterpolateElement)(__("There's a problem with your Anti-spam API key. <a>Learn more</a>.","jetpack"),{a:c().createElement("a",{href:"https://docs.akismet.com/getting-started/api-key/"})})}),e.isError=!0,n=__("Your site is not protected from spam.","jetpack")):(t=c().createElement(g.Z,{text:__("Your Anti-spam key is valid.","jetpack")}),e.isValid=!0,n=__("Your site is protected from spam.","jetpack"),r=!1),c().createElement(k.Z,i()({},this.props,{header:_x("Anti-spam","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("wordpress_api_key"),feature:f.V3}),c().createElement(m.Z,{onOpen:this.trackOpenCard,header:n},c().createElement(w.Z,{support:{text:__("Removes spam from comments and contact forms.","jetpack"),link:"https://akismet.com/jetpack/"}},c().createElement(v.C_,null,c().createElement(v.lX,null,c().createElement("span",{className:"jp-form-label-wide"},__("Your API key","jetpack")),c().createElement(_.Z,e),t),r&&c().createElement("p",{className:"jp-form-setting-explanation"},r)))))}});t.Z=(0,l.$j)((e=>({isAkismetKeyValid:(0,y._2)(e),isCheckingAkismetKey:(0,y.gw)(e)})),(e=>({checkAkismetKey:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e((0,y.Bt)(t))}})))(C)},64067:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(11268),u=n.n(l),p=n(2620),d=n(92819),h=n(69307),f=n(65736),m=n(71415),g=n(11973),v=n(34606),b=n(60742),y=n(81200),k=n(75395),w=n(88872),_=n(93107),E=n(28865),C=n(9477),S=n(84277),j=n(27006),M=n(66552),x=n(5e4);const __=f.__,_x=f._x,_n=f._n;class N extends a.Component{render(){return c().createElement(S.Z,{header:_x("Backups and security scanning","Settings header","jetpack"),hideButton:!0,action:"scan"},c().createElement(j.Z,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,m.Z)("vaultpress-help-get-to-know")}},__("Checking site status…","jetpack")))}}class A extends a.Component{constructor(){super(...arguments),o()(this,"getCardText",(()=>{if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");const{title:e,icon:t,description:n,url:r}=this.getRewindMessage();return c().createElement(v.Z,{title:e,icon:t,feature:"rewind",description:n,className:"is-upgrade-premium jp-banner__no-border",href:r})}))}getRewindMessage(){const{siteRawUrl:e,rewindState:t}=this.props;switch(t){case"provisioning":return{title:__("Provisioning","jetpack"),icon:"info",description:__("Backups and Scan are being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:__("Awaiting credentials","jetpack"),icon:"notice",description:__("You need to enter your server credentials to finish configuring Backups and Scan.","jetpack"),url:(0,m.Z)("jetpack-settings-security-credentials",{site:e})};case"active":return{title:__("Active","jetpack"),icon:"checkmark-circle",description:__("Your site is connected to Jetpack Backup and Scan.","jetpack"),url:(0,m.Z)("calypso-activity-log",{site:e})};default:return{title:__("Oops!","jetpack"),icon:"info",description:__("The Jetpack Backup and Scan status could not be retrieved at this time.","jetpack"),url:""}}}render(){return c().createElement(S.Z,i()({feature:"rewind"},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"rewind",hideButton:!0}),this.getCardText())}}o()(A,"propTypes",{isOfflineMode:u().bool,siteRawUrl:u().string,rewindState:u().string}),o()(A,"defaultProps",{isOfflineMode:!1,siteRawUrl:"",rewindState:""});const O=(0,x.u)(class extends a.Component{constructor(){super(...arguments),o()(this,"toggleModule",((e,t)=>{this.props.updateFormStateOptionValue(e,!t)})),o()(this,"trackConfigureClick",(()=>{g.Z.tracks.recordJetpackClick("configure-scan")}))}getCardText(){const e=(0,d.get)(this.props.vaultPressData,["data","features","backups"],!1),t=(0,d.get)(this.props.vaultPressData,["data","features","security"],!1),n=(0,y.sc)(this.props.sitePlan.product_slug);let r="";if(this.props.isOfflineMode)return __("Unavailable in Offline Mode.","jetpack");if(e&&t){const e=this.props.hasThreats;return e?c().createElement("div",null,c().createElement("strong",null,(0,f.sprintf)(
/* Translators: placeholder is a number (of threats). */
_n("Uh oh, %s threat found.","Uh oh, %s threats found.",e,"jetpack"),(0,E.Y)(e))),c().createElement("br",null),c().createElement("br",null),(0,h.createInterpolateElement)(__("<a>View details</a>","jetpack"),{a:c().createElement("a",{href:(0,m.Z)("vaultpress-dashboard")})}),c().createElement("br",null),(0,h.createInterpolateElement)(__("<a>Contact Support</a>","jetpack"),{a:c().createElement("a",{href:(0,m.Z)("jetpack-support")})})):__("Your site is connected to VaultPress for backups and security scanning.","jetpack")}if(e&&(0,d.includes)(["is-free-plan","is-personal-plan","is-daily-backup-plan","is-realtime-backup-plan"],n))return __("Your site is connected to VaultPress for backups.","jetpack");switch(n){case"is-personal-plan":r=__("You have paid for backups but they're not yet active.","jetpack"),r+=" "+__('Click "Set Up" to finish installation.',"jetpack");break;case"is-premium-plan":case"is-business-plan":r=__("You have paid for backups and security scanning but they’re not yet active.","jetpack"),r+=" "+__('Click "Set Up" to finish installation.',"jetpack")}return r}render(){if(!this.props.showBackups)return null;const e=(0,d.get)(this.props.vaultPressData,["data","features","security"],!1),t=(0,d.get)(this.props.rewindStatus,["state"],!1),n=!1!==t,r="N/A"!==this.props.vaultPressData&&!1!==(0,d.get)(this.props.vaultPressData,["data"],!1);return n||!this.props.vaultPressActive||r?(0,d.includes)(["provisioning","awaiting_credentials","active"],t)?c().createElement(A,i()({},this.props,{rewindState:t})):c().createElement(S.Z,i()({feature:y.eM},this.props,{header:_x("Backups and security scanning","Settings header","jetpack"),action:"scan",hideButton:!0}),c().createElement(C.Z,null),c().createElement(j.Z,{disableInOfflineMode:!0,module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,m.Z)("vaultpress-help-get-to-know")}},this.getCardText()),!this.props.isUnavailableInOfflineMode("backups")&&e&&c().createElement(b.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,target:"_blank",href:(0,m.Z)("vaultpress-dashboard")},__("Configure your Security Scans","jetpack"))):c().createElement(N,null)}});t.Z=(0,p.$j)((e=>({sitePlan:(0,w.UL)(e),vaultPressData:(0,k.XK)(e),hasThreats:(0,k._R)(e),vaultPressActive:(0,_.mp)(e,"vaultpress"),showBackups:(0,M.xR)(e)})))(O)},24295:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(92819),p=n(65736),d=n(60742),h=n(93107),f=n(17752),m=n(41147),g=n(75395),v=n(19555),b=n(61744),y=n(27219),k=n(65125),w=n(81200),_=n(88872),E=n(64067),C=n(35177),S=n(67306),j=n(3013),M=n(24682),x=n(95835);const __=p.__;class N extends a.Component{constructor(){super(...arguments),o()(this,"isAkismetFound",(()=>{if(!this.props.isPluginActive("akismet/akismet.php"))return!1;if(this.props.searchTerm){const e=this.props.isPluginInstalled("akismet/akismet.php");return["akismet","antispam","spam","comments",e.Description,e.PluginURI].join(" ").toLowerCase().indexOf(this.props.searchTerm.toLowerCase())>-1}return!0}))}render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,rewindStatus:this.props.rewindStatus,siteRawUrl:this.props.siteRawUrl,hasConnectedOwner:this.props.hasConnectedOwner},t=this.props.isModuleFound("protect"),n=this.props.isModuleFound("sso"),r=this.isAkismetFound(),s="active"===(0,u.get)(this.props.rewindStatus,["state"],!1),o=this.props.isModuleFound("vaultpress")||s,a=this.props.isModuleFound("monitor"),l=this.props.searchTerm;if(!l&&!this.props.active)return null;if(!(n||t||r||o||a))return null;const p=(0,w.sc)((0,u.get)(this.props.sitePlan,["product_slug"])),h=this.props.activeSitePurchases.map((e=>(0,w.sc)(e.product_slug))),f="is-personal-plan"===p,m="is-free-plan"===p&&["is-daily-backup-plan","is-realtime-backup-plan","is-backup-t1-plan","is-backup-t2-plan"].filter((e=>h.includes(e))).length>0,g=f||m?c().createElement(S.N,i()({},e,{vaultPressData:this.props.vaultPressData})):c().createElement(E.Z,e);return c().createElement("div",null,c().createElement(y.Z,null),c().createElement(d.Z,{title:l?__("Security","jetpack"):__("Your site is protected by Jetpack. You’ll be notified if anything needs attention.","jetpack",0),className:"jp-settings-description"}),o&&g,a&&c().createElement(j.u,e),r&&c().createElement(c().Fragment,null,c().createElement(C.Z,e),c().createElement(k.Z,null)),t&&c().createElement(M.C,e),n&&c().createElement(x.y,e))}}o()(N,"displayName","SecuritySettings"),t.Z=(0,l.$j)((e=>({activeSitePurchases:(0,_.nl)(e),module:t=>(0,h.rT)(e,t),settings:(0,f.Gw)(e),sitePlan:(0,_.UL)(e),isOfflineMode:(0,m.Ex)(e),isUnavailableInOfflineMode:t=>(0,m.t_)(e,t),isModuleFound:t=>(0,v.CX)(e,t),isPluginActive:t=>(0,b.TB)(e,t),isPluginInstalled:t=>(0,b.P8)(e,t),vaultPressData:(0,g.XK)(e),hasConnectedOwner:(0,m.it)(e)})))(N)},67306:function(e,t,n){"use strict";n.d(t,{N:function(){return b}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(11268),u=n.n(l),p=n(92819),d=n(65736),h=n(71415),f=n(34606),m=n(84277),g=n(27006),v=n(81200);const __=d.__,_x=d._x;class b extends a.Component{constructor(){super(...arguments),o()(this,"getVaultPressContent",(()=>c().createElement(g.Z,{module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,h.Z)("jetpack-support-backup")}},__("Your site is connected to VaultPress for backups.","jetpack")))),o()(this,"getRewindBanner",(()=>{const{title:e,icon:t,description:n,url:r}=this.getRewindMessage();return c().createElement(f.Z,{title:e,icon:t,feature:"rewind",description:n,className:"is-upgrade-premium jp-banner__no-border",href:r})}))}getRewindMessage(){const{siteRawUrl:e,rewindStatus:t}=this.props;switch((0,p.get)(t,"state",!1)){case"provisioning":return{title:__("Provisioning","jetpack"),icon:"info",description:__("Jetpack Backup is being configured for your site.","jetpack"),url:""};case"awaiting_credentials":return{title:__("Awaiting credentials","jetpack"),icon:"notice",description:__("You need to enter your server credentials to finish configuring Jetpack Backup.","jetpack"),url:(0,h.Z)("jetpack-settings-security-credentials",{site:e})};case"active":return{title:__("Active","jetpack"),icon:"checkmark-circle",description:__("Your site is connected to Jetpack Backup.","jetpack"),url:(0,h.Z)("calypso-activity-log",{site:e})};default:return{title:__("Oops!","jetpack"),icon:"info",description:__("The Jetpack Backup status could not be retrieved at this time.","jetpack"),url:""}}}render(){const{rewindStatus:e,vaultPressData:t}=this.props,n=(0,p.get)(e,"state",!1),r=(0,p.get)(t,["data","features","backups"],!1);return!1!==n||r?c().createElement(m.Z,i()({feature:v.N_},this.props,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0}),"unavailable"===n?this.getVaultPressContent():this.getRewindBanner()):c().createElement(m.Z,{header:_x("Jetpack Backup","Settings header","jetpack"),hideButton:!0,action:v.N_},c().createElement(g.Z,{module:{module:"backups"},support:{text:__("Backs up your site to the global WordPress.com servers, allowing you to restore your content in the event of an emergency or error.","jetpack"),link:(0,h.Z)("jetpack-support-backup")}},__("Checking site status…","jetpack")))}}o()(b,"propTypes",{siteRawUrl:u().string,rewindState:u().string}),o()(b,"defaultProps",{siteRawUrl:"",rewindState:""})},3013:function(e,t,n){"use strict";n.d(t,{u:function(){return b}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(65736),u=n(71415),p=n(11973),d=n(60742),h=n(77222),f=n(5e4),m=n(84277),g=n(27006),v=n(24951);const __=l.__,_x=l._x,b=(0,f.u)(class extends a.Component{constructor(){super(...arguments),o()(this,"trackConfigureClick",(()=>{p.Z.tracks.recordJetpackClick("configure-monitor")}))}render(){const e=this.props.hasConnectedOwner,t=this.props.isOfflineMode,n=this.props.getOptionValue("monitor"),r=this.props.isUnavailableInOfflineMode("monitor");return c().createElement(m.Z,i()({},this.props,{hideButton:!0,module:"monitor",header:_x("Downtime monitoring","Settings header","jetpack")}),c().createElement(g.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("monitor"),support:{text:__("Jetpack will continuously monitor your site and alert you the moment downtime is detected.","jetpack"),link:(0,u.Z)("jetpack-support-monitor")}},c().createElement(h.T,{slug:"monitor",disabled:r||!e,activated:n,toggling:this.props.isSavingAnyOption("monitor"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Get alerts if your site goes offline. We’ll let you know when it’s back up, too.","jetpack")))),e&&c().createElement(d.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:(0,u.Z)("calypso-settings-security",{site:this.props.siteRawUrl})},__("Configure your notification settings","jetpack")),!e&&!t&&c().createElement(v.Z,{feature:"monitor",featureLabel:__("Downtime Monitoring","jetpack"),text:__("Connect to set up your status alerts.","jetpack")}))}})},24682:function(e,t,n){"use strict";n.d(t,{C:function(){return _}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(92819),u=n(65736),p=n(71415),d=n(11973),h=n(9913),f=n(50844),m=n(78919),g=n(55735),v=n(77222),b=n(5e4),y=n(84277),k=n(27006),w=n(24951);const __=u.__,_x=u._x,_=(0,b.u)(class extends a.Component{constructor(){super(...arguments),o()(this,"state",{safelist:this.props.getOptionValue("jetpack_protect_global_whitelist")?this.props.getOptionValue("jetpack_protect_global_whitelist").local:""}),o()(this,"currentIpIsSafelisted",(()=>!!(0,l.includes)(this.state.safelist,this.props.currentIp))),o()(this,"updateText",(e=>{this.currentIpIsSafelisted(),this.setState({safelist:e.target.value}),this.props.onOptionChange(e)})),o()(this,"addToSafelist",(()=>{const e=this.state.safelist+(0>=this.state.safelist.length?"":"\n")+this.props.currentIp;this.props.updateFormStateOptionValue("jetpack_protect_global_whitelist",e),this.setState({safelist:e}),d.Z.tracks.recordJetpackClick({target:"add-to-whitelist",feature:"protect"})})),o()(this,"trackOpenCard",(()=>{d.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"protect"})}))}render(){const e=this.props.getOptionValue("protect"),t=this.props.isUnavailableInOfflineMode("protect"),n=c().createElement(v.T,{slug:"protect",compact:!0,disabled:t,activated:e,toggling:this.props.isSavingAnyOption("protect"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("protect").description));return c().createElement(y.Z,i()({},this.props,{module:"protect",header:_x("Protect","Settings header","jetpack"),saveDisabled:this.props.isSavingAnyOption("jetpack_protect_global_whitelist")}),c().createElement(k.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("protect"),className:"foldable-wrapper"},c().createElement(m.Z,{onOpen:this.trackOpenCard,header:n},c().createElement(k.Z,{hasChild:!0,module:this.props.getModule("protect"),support:{text:__("Protects your site from traditional and distributed brute force login attacks.","jetpack"),link:(0,p.Z)("jetpack-support-protect")}},c().createElement(g.C_,null,this.props.currentIp&&c().createElement("div",null,c().createElement("div",{className:"jp-form-label-wide"},(0,u.sprintf)(
/* translators: placeholder is an IP address. */
__("Your current IP: %s","jetpack"),this.props.currentIp)),c().createElement(h.Z,{disabled:!e||t||this.currentIpIsSafelisted()||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),onClick:this.addToSafelist},__("Add to Always Allowed list","jetpack"))),c().createElement(g.lX,null,c().createElement(g.Gj,null,__("Always allowed IP addresses","jetpack")),c().createElement(f.Z,{disabled:!e||t||this.props.isSavingAnyOption(["protect","jetpack_protect_global_whitelist"]),name:"jetpack_protect_global_whitelist",placeholder:"Example: 12.12.12.1-12.12.12.100",onChange:this.updateText,value:this.state.safelist})),c().createElement("span",{className:"jp-form-setting-explanation"},__('You may mark an IP address (or series of addresses) as "Always allowed", preventing them from ever being blocked by Jetpack. IPv4 and IPv6 are acceptable. To specify a range, enter the low value and high value separated by a dash. Example: 12.12.12.1-12.12.12.100',"jetpack")))))),!this.props.hasConnectedOwner&&!this.props.isOfflineMode&&c().createElement(w.Z,{feature:"protect",featureLabel:__("Protect","jetpack"),text:__("Connect to set up brute force attack protection.","jetpack")}))}})},95835:function(e,t,n){"use strict";n.d(t,{y:function(){return b}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(65736),u=n(71415),p=n(94069),d=n(55735),h=n(77222),f=n(5e4),m=n(84277),g=n(27006),v=n(24951);const __=l.__,_x=l._x,b=(0,f.u)(class extends a.Component{constructor(){super(...arguments),o()(this,"state",{jetpack_sso_match_by_email:this.props.getOptionValue("jetpack_sso_match_by_email","sso"),jetpack_sso_require_two_step:this.props.getOptionValue("jetpack_sso_require_two_step","sso")}),o()(this,"handleTwoStepToggleChange",(()=>{this.updateOptions("jetpack_sso_require_two_step")})),o()(this,"handleMatchByEmailToggleChange",(()=>{this.updateOptions("jetpack_sso_match_by_email")})),o()(this,"updateOptions",(e=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption("sso",e))}))}render(){const e=this.props.getOptionValue("sso"),t=this.props.isUnavailableInOfflineMode("sso");return c().createElement(m.Z,i()({},this.props,{hideButton:!0,module:"sso",header:_x("WordPress.com login","Settings header, noun.","jetpack")}),c().createElement(g.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:this.props.getModule("sso"),support:{text:__("Allows registered users to log in to your site with their WordPress.com accounts.","jetpack"),link:(0,u.Z)("jetpack-support-sso")}},c().createElement("p",null,__("Add an extra layer of security to your website by enabling WordPress.com login and secure authentication. If you have multiple sites with this option enabled, you will be able to log in to every one of them with the same credentials.","jetpack")),c().createElement(h.T,{slug:"sso",disabled:t||!this.props.hasConnectedOwner,activated:e,toggling:this.props.isSavingAnyOption("sso"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},this.props.getModule("sso").description)),c().createElement(d.C_,null,c().createElement(p.Z,{checked:this.state.jetpack_sso_match_by_email,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_match_by_email"]),onChange:this.handleMatchByEmailToggleChange},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Match accounts using email addresses","jetpack"))),c().createElement(p.Z,{checked:this.state.jetpack_sso_require_two_step,disabled:!e||t||this.props.isSavingAnyOption(["sso","jetpack_sso_require_two_step"]),onChange:this.handleTwoStepToggleChange},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Require accounts to use WordPress.com Two-Step Authentication","jetpack"))))),!this.props.hasConnectedOwner&&!this.props.isOfflineMode&&c().createElement(v.Z,{feature:"sso",featureLabel:__("Secure Sign-On","jetpack"),text:__("Connect to enable WordPress.com Secure Sign-On.","jetpack")}))}})},7507:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(65736),u=n(2620),p=n(12901),d=n(9863),h=n(37755),f=n(90955),m=n(70445),g=n(24295),v=n(84669),b=n(97640),y=n(18731),k=n(93107);const __=l.__;class w extends c().Component{render(){const{location:e={pathname:""},rewindStatus:t,searchTerm:n,siteAdminUrl:r,siteRawUrl:s,userCanManageModules:o}=this.props,{pathname:a}=e,u={searchTerm:n,rewindStatus:t,userCanManageModules:o};return c().createElement("div",{className:"jp-settings-container"},c().createElement("div",{className:"jp-no-results"},n?(0,l.sprintf)(
/* translators: placeholder is a searchterm entered in searchform. */
__("No search results found for %s","jetpack"),n):__("Enter a search term to find settings or close search.","jetpack")),c().createElement(g.Z,i()({siteAdminUrl:r,siteRawUrl:s,active:"/security"===a||"/settings"===a&&o},u)),c().createElement(d.Z,i()({siteRawUrl:s,active:"/discussion"===a},u)),c().createElement(h.Z,i()({active:"/performance"===a},u)),c().createElement(b.Z,i()({siteRawUrl:s,siteAdminUrl:r,active:"/traffic"===a},u)),c().createElement(y.Z,i()({siteAdminUrl:r,active:"/writing"===a||!o&&this.props.isModuleActivated("post-by-email")&&!this.props.isModuleActivated("publicize")},u)),c().createElement(v.Z,i()({siteAdminUrl:r,active:"/sharing"===a||"/settings"===a&&!o&&this.props.isModuleActivated("publicize")},u)),c().createElement(f.Z,i()({active:"/privacy"===a},u)),c().createElement(m.Z,{searchTerm:n}))}}o()(w,"displayName","SearchableSettings"),t.Z=(0,u.$j)((e=>({isModuleActivated:t=>(0,k.mp)(e,t)})))((0,p.EN)(w))},84669:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(2620),o=n(65736),a=n(60742),c=n(93107),l=n(17752),u=n(41147),p=n(19555),d=n(66552),h=n(27219),f=n(37636),m=n(10342),g=n(29779);const __=o.__;class v extends r.Component{render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isLinked:this.props.isLinked,connectUrl:this.props.connectUrl,siteRawUrl:this.props.siteRawUrl,siteAdminUrl:this.props.siteAdminUrl,userCanManageModules:this.props.userCanManageModules},t=this.props.isModuleFound("publicize"),n=this.props.isModuleFound("sharedaddy"),r=this.props.isModuleFound("likes");return(this.props.searchTerm||this.props.active)&&(t||n||r)?i().createElement("div",null,i().createElement(h.Z,null),i().createElement(a.Z,{title:this.props.searchTerm?__("Sharing","jetpack"):__("Share your content to social media, reaching new audiences and increasing engagement.","jetpack"),className:"jp-settings-description"}),t&&i().createElement(f.u,e),n&&i().createElement(m.n,e),r&&i().createElement(g.d,e)):null}}t.Z=(0,s.$j)((e=>({module:t=>(0,c.rT)(e,t),settings:(0,l.Gw)(e),isOfflineMode:(0,u.Ex)(e),isUnavailableInOfflineMode:t=>(0,u.t_)(e,t),isModuleFound:t=>(0,p.CX)(e,t),isLinked:(0,u.BU)(e),connectUrl:(0,u.AM)(e),siteRawUrl:(0,d.JR)(e),siteAdminUrl:(0,d.wW)(e),userCanManageModules:(0,d.pK)(e)})))(v)},29779:function(e,t,n){"use strict";n.d(t,{d:function(){return h}});var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(65736),c=n(71415),l=n(5e4),u=n(84277),p=n(27006),d=n(77222);const __=a.__,_x=a._x,h=(0,l.u)(class extends s.Component{render(){const e=this.props.isUnavailableInOfflineMode("likes"),t=this.props.getOptionValue("likes");return o().createElement(u.Z,i()({},this.props,{header:_x("Like buttons","Settings header","jetpack"),module:"likes",hideButton:!0}),o().createElement(p.Z,{disableInOfflineMode:!0,module:{module:"likes"},support:{text:__("Adds like buttons to your content so that visitors can show their appreciation or enjoyment.","jetpack"),link:(0,c.Z)("jetpack-support-likes")}},o().createElement("p",null,__("The Like button is a way for people on WordPress.com to show their appreciation for your content.","jetpack")),o().createElement(d.T,{slug:"likes",disabled:e,activated:t,toggling:this.props.isSavingAnyOption("likes"),toggleModule:this.props.toggleModuleNow},__("Add Like buttons to your posts and pages","jetpack"))))}})},37636:function(e,t,n){"use strict";n.d(t,{u:function(){return g}});var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(65736),c=n(71415),l=n(11973),u=n(60742),p=n(5e4),d=n(84277),h=n(27006),f=n(77222),m=n(24951);const __=a.__,_x=a._x,g=(0,p.u)(class extends s.Component{trackClickConfigure(){l.Z.tracks.recordJetpackClick({target:"configure-publicize",page:"sharing"})}render(){const e=this.props.isUnavailableInOfflineMode("publicize"),t=this.props.isLinked,n=this.props.isOfflineMode,r=this.props.siteRawUrl,s=this.props.getOptionValue("publicize"),a=this.props.userCanManageModules;return a||s?o().createElement(d.Z,i()({},this.props,{header:_x("Publicize connections","Settings header","jetpack"),module:"publicize",hideButton:!0}),a&&o().createElement(h.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"publicize"},support:{text:__("Allows you to automatically share your newest content on social media sites, including Facebook and Twitter.","jetpack"),link:(0,c.Z)("jetpack-support-publicize")}},o().createElement("p",null,__("Connect your website to the social media networks you use and share your content across all your social accounts with a single click. When you publish a post, it will appear on all connected accounts.","jetpack")),o().createElement(f.T,{slug:"publicize",disabled:e||!this.props.isLinked,activated:s,toggling:this.props.isSavingAnyOption("publicize"),toggleModule:this.props.toggleModuleNow},__("Automatically share your posts to social networks","jetpack"))),!t&&!n&&o().createElement(m.Z,{feature:"publicize",featureLabel:__("Publicize","jetpack"),text:__("Connect to add your social media accounts.","jetpack")}),s&&(()=>{if(!e)return t&&o().createElement(u.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:(0,c.Z)("calypso-marketing-connections",{site:r})},__("Connect your social media accounts","jetpack"))})()):null}})},10342:function(e,t,n){"use strict";n.d(t,{n:function(){return m}});var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(65736),c=n(71415),l=n(11973),u=n(60742),p=n(5e4),d=n(84277),h=n(27006),f=n(77222);const __=a.__,_x=a._x,m=(0,p.u)(class extends s.Component{trackClickConfigure(){l.Z.tracks.recordJetpackClick({target:"configure-sharing",page:"sharing"})}render(){const e=this.props.isLinked,t=this.props.siteRawUrl,n=this.props.siteAdminUrl,r=this.props.isOfflineMode,s=this.props.getOptionValue("sharedaddy");return o().createElement(d.Z,i()({},this.props,{header:_x("Sharing buttons","Settings header","jetpack"),module:"sharing",hideButton:!0}),o().createElement(h.Z,{disableInOfflineMode:!0,module:{module:"sharedaddy"},support:{text:__("You can customize the sharing buttons and choose which services to display.","jetpack"),link:(0,c.Z)("jetpack-support-sharing")}},o().createElement("p",null,__("Add sharing buttons so visitors can share your posts and pages on social media with a couple of quick clicks.","jetpack")),o().createElement(f.T,{slug:"sharedaddy",activated:s,toggling:this.props.isSavingAnyOption("sharedaddy"),toggleModule:this.props.toggleModuleNow},__("Add sharing buttons to your posts and pages","jetpack"))),s&&(()=>r||!e?o().createElement(u.Z,{compact:!0,className:"jp-settings-card__configure-link",href:n+"options-general.php?page=sharing"},__("Configure your sharing buttons","jetpack")):o().createElement(u.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackClickConfigure,target:"_blank",rel:"noopener noreferrer",href:(0,c.Z)("calypso-marketing-sharing-buttons",{site:t})},__("Configure your sharing buttons","jetpack")))())}})},67592:function(e,t,n){"use strict";n.d(t,{R9:function(){return r},q7:function(){return i},Uy:function(){return s},hm:function(){return o},J1:function(){return a},U7:function(){return c},BV:function(){return l},ie:function(){return u},AA:function(){return p},IW:function(){return d},Mo:function(){return h},dD:function(){return f},lj:function(){return m},o2:function(){return g},yb:function(){return v},bG:function(){return b},sO:function(){return y},B9:function(){return k},T:function(){return w},YD:function(){return _},X0:function(){return E},kK:function(){return C},rA:function(){return S},TB:function(){return j},jE:function(){return M},kF:function(){return x},I3:function(){return N},sG:function(){return A},n2:function(){return O},Jy:function(){return T},Gu:function(){return P},xk:function(){return I},CD:function(){return R},L:function(){return U},Lo:function(){return Z},Hy:function(){return D},m:function(){return L},_M:function(){return z},a8:function(){return B},ar:function(){return F},TR:function(){return V},H5:function(){return q},yV:function(){return H},QG:function(){return W},sQ:function(){return $},Kt:function(){return J},c0:function(){return K},Cf:function(){return G},x3:function(){return Y},Mi:function(){return X},$I:function(){return Q},as:function(){return ee},RR:function(){return te},Fm:function(){return ne},KD:function(){return re},BG:function(){return ie},BB:function(){return se},Pi:function(){return oe},yE:function(){return ae},HO:function(){return ce},YC:function(){return le},$0:function(){return ue},w_:function(){return pe},g:function(){return de},i7:function(){return he},ik:function(){return fe},Pp:function(){return me},hz:function(){return ge},QD:function(){return ve},JA:function(){return be},dS:function(){return ye},rY:function(){return ke},q4:function(){return we},jH:function(){return _e},QF:function(){return Ee},BX:function(){return Ce},gY:function(){return Se},FL:function(){return je},Ns:function(){return Me},TI:function(){return xe},rQ:function(){return Ne},fH:function(){return Ae},l9:function(){return Oe},Mg:function(){return Te},nD:function(){return Pe},rw:function(){return Ie},Vl:function(){return Re},VN:function(){return Ue},g9:function(){return Ze},Fe:function(){return De},lt:function(){return Le},Dz:function(){return ze},Ab:function(){return Be},Ep:function(){return Fe},zO:function(){return Ve},XU:function(){return qe},y$:function(){return He},qU:function(){return We},s6:function(){return $e},z1:function(){return Je},jb:function(){return Ke},uG:function(){return Ge},og:function(){return Ye},HE:function(){return Xe},x1:function(){return Qe},kO:function(){return et},i3:function(){return tt},Nk:function(){return nt},qY:function(){return rt},zD:function(){return it},IZ:function(){return st},lh:function(){return ot},fX:function(){return at},tU:function(){return ct},Ez:function(){return lt},Qm:function(){return ut},XP:function(){return pt},K0:function(){return dt},Fc:function(){return ht},b8:function(){return ft},me:function(){return mt},Vd:function(){return gt},tl:function(){return vt},Yo:function(){return bt},mL:function(){return yt},hF:function(){return kt},CM:function(){return wt},it:function(){return _t},Dg:function(){return Et},ml:function(){return Ct},Yk:function(){return St},fe:function(){return jt},N9:function(){return Mt},vr:function(){return xt},M0:function(){return Nt},$F:function(){return At},b6:function(){return Ot},cz:function(){return Tt},$d:function(){return Pt},s9:function(){return It},km:function(){return Rt},oQ:function(){return Ut},UI:function(){return Zt},Uq:function(){return Dt},U$:function(){return Lt},R5:function(){return zt},lO:function(){return Bt},jt:function(){return Ft}});const r="JETPACK_SET_INITIAL_STATE",i="CONNECT_URL_FETCH",s="CONNECT_URL_FETCH_FAIL",o="CONNECT_URL_FETCH_SUCCESS",a="DISCONNECT_SITE",c="DISCONNECT_SITE_FAIL",l="DISCONNECT_SITE_SUCCESS",u="CONNECT_USER",p="RESET_CONNECT_USER",d="UNLINK_USER",h="UNLINK_USER_FAIL",f="UNLINK_USER_SUCCESS",m="USER_CONNECTION_DATA_FETCH",g="USER_CONNECTION_DATA_FETCH_FAIL",v="USER_CONNECTION_DATA_FETCH_SUCCESS",b="SITE_RECONNECT",y="SITE_RECONNECT_SUCCESS",k="SITE_RECONNECT_FAIL",w="USER_TRACKING_SETTINGS_FETCH",_="USER_TRACKING_SETTINGS_FETCH_FAIL",E="USER_TRACKING_SETTINGS_FETCH_SUCCESS",C="USER_TRACKING_SETTINGS_UPDATE",S="USER_TRACKING_SETTINGS_UPDATE_FAIL",j="USER_TRACKING_SETTINGS_UPDATE_SUCCESS",M="JETPACK_MODULES_LIST_FETCH",x="JETPACK_MODULES_LIST_FETCH_FAIL",N="JETPACK_MODULES_LIST_RECEIVE",A="JETPACK_MODULE_ACTIVATE",O="JETPACK_MODULE_ACTIVATE_SUCCESS",T="JETPACK_MODULE_ACTIVATE_FAIL",P="JETPACK_MODULE_DEACTIVATE",I="JETPACK_MODULE_DEACTIVATE_FAIL",R="JETPACK_MODULE_DEACTIVATE_SUCCESS",U="JETPACK_MODULE_UPDATE_OPTIONS",Z="JETPACK_MODULE_UPDATE_OPTIONS_FAIL",D="JETPACK_MODULE_UPDATE_OPTIONS_SUCCESS",L="JETPACK_CONNECTION_STATUS_FETCH",z="JETPACK_CONNECTION_TEST_FETCH",B="JETPACK_SITE_CONNECTED_PLUGINS_FETCH",F="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_RECEIVE",V="JETPACK_SITE_CONNECTED_PLUGINS_FETCH_FAIL",q="DASHBOARD_PROTECT_COUNT_FETCH",H="DASHBOARD_PROTECT_COUNT_FETCH_FAIL",W="DASHBOARD_PROTECT_COUNT_FETCH_SUCCESS",$="RESET_OPTIONS",J="RESET_OPTIONS_FAIL",K="RESET_OPTIONS_SUCCESS",G="VAULTPRESS_SITE_DATA_FETCH",Y="VAULTPRESS_SITE_DATA_FETCH_FAIL",X="VAULTPRESS_SITE_DATA_FETCH_SUCCESS",Q="AKISMET_DATA_FETCH",ee="AKISMET_DATA_FETCH_FAIL",te="AKISMET_DATA_FETCH_SUCCESS",ne="AKISMET_KEY_CHECK_FETCH",re="AKISMET_KEY_CHECK_FETCH_FAIL",ie="AKISMET_KEY_CHECK_FETCH_SUCCESS",se="PLUGIN_UPDATES_FETCH",oe="PLUGIN_UPDATES_FETCH_FAIL",ae="PLUGIN_UPDATES_FETCH_SUCCESS",ce="STATS_SWITCH_TAB",le="STATS_DATA_FETCH",ue="STATS_DATA_FETCH_FAIL",pe="STATS_DATA_FETCH_SUCCESS",de="JETPACK_PRODUCTS_FETCH",he="JETPACK_PRODUCTS_FETCH_RECEIVE",fe="JETPACK_PRODUCTS_FETCH_FAIL",me="JETPACK_SITE_PRODUCTS_FETCH",ge="JETPACK_SITE_PRODUCTS_FETCH_FAIL",ve="JETPACK_SITE_PRODUCTS_FETCH_RECEIVE",be="JETPACK_SETTINGS_FETCH",ye="JETPACK_SETTINGS_FETCH_RECEIVE",ke="JETPACK_SETTINGS_FETCH_FAIL",we="JETPACK_SETTING_UPDATE",_e="JETPACK_SETTING_UPDATE_SUCCESS",Ee="JETPACK_SETTING_UPDATE_FAIL",Ce="JETPACK_SETTINGS_UPDATE",Se="JETPACK_SETTINGS_UPDATE_FAIL",je="JETPACK_SETTINGS_UPDATE_SUCCESS",Me="JETPACK_SETTINGS_SET_UNSAVED_FLAG",xe="JETPACK_SETTINGS_CLEAR_UNSAVED_FLAG",Ne="JETPACK_SITE_DATA_FETCH",Ae="JETPACK_SITE_DATA_FETCH_RECEIVE",Oe="JETPACK_SITE_DATA_FETCH_FAIL",Te="JETPACK_SITE_BENEFITS_FETCH",Pe="JETPACK_SITE_BENEFITS_FETCH_RECEIVE",Ie="JETPACK_SITE_BENEFITS_FETCH_FAIL",Re="JETPACK_SITE_FEATURES_FETCH",Ue="JETPACK_SITE_FEATURES_FETCH_RECEIVE",Ze="JETPACK_SITE_FEATURES_FETCH_FAIL",De="JETPACK_SITE_PLANS_FETCH",Le="JETPACK_SITE_PLANS_FETCH_RECEIVE",ze="JETPACK_SITE_PLANS_FETCH_FAIL",Be="JETPACK_SITE_PURCHASES_FETCH",Fe="JETPACK_SITE_PURCHASES_FETCH_RECEIVE",Ve="JETPACK_SITE_PURCHASES_FETCH_FAIL",qe="JETPACK_RECOMMENDATIONS_DATA_ADD_SELECTED_RECOMMENDATION",He="JETPACK_RECOMMENDATIONS_DATA_ADD_SKIPPED_RECOMMENDATION",We="JETPACK_RECOMMENDATIONS_DATA_FETCH",$e="JETPACK_RECOMMENDATIONS_DATA_FETCH_RECEIVE",Je="JETPACK_RECOMMENDATIONS_DATA_FETCH_FAIL",Ke="JETPACK_RECOMMENDATIONS_DATA_UPDATE",Ge="JETPACK_RECOMMENDATIONS_DATA_SAVE",Ye="JETPACK_RECOMMENDATIONS_DATA_SAVE_SUCCESS",Xe="JETPACK_RECOMMENDATIONS_DATA_SAVE_FAIL",Qe="JETPACK_RECOMMENDATIONS_STEP_UPDATE",et="JETPACK_RECOMMENDATIONS_STEP_UPDATE_SUCCESS",tt="JETPACK_RECOMMENDATIONS_STEP_UPDATE_FAIL",nt="JETPACK_RECOMMENDATIONS_PRODUCT_SUGGESTIONS_FETCH",rt="JETPACK_RECOMMENDATIONS_PRODUCT_SUGGESTIONS_FETCH_RECEIVE",it="JETPACK_RECOMMENDATIONS_PRODUCT_SUGGESTIONS_FETCH_FAIL",st="JETPACK_RECOMMENDATIONS_UPSELL_FETCH",ot="JETPACK_RECOMMENDATIONS_UPSELL_FETCH_RECEIVE",at="JETPACK_RECOMMENDATIONS_UPSELL_FETCH_FAIL",ct="JETPACK_ACTION_NOTICES_DISMISS",lt="JETPACK_NOTICES_DISMISS_SUCCESS",ut="JETPACK_PLUGINS_DATA_FETCH",pt="JETPACK_PLUGINS_DATA_FETCH_RECEIVE",dt="JETPACK_PLUGINS_DATA_FETCH_FAIL",ht="JETPACK_SEARCH_TERM",ft="SET_PLAN_DURATION",mt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY",gt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_SUCCESS",vt="JETPACK_MARKETING_SUBMIT_DISCONNECT_SURVEY_FAIL",bt="DEV_CARD_DISPLAY",yt="DEV_CARD_HIDE",kt="MOCK_SWITCH_USER_PERMISSIONS",wt="MOCK_SWITCH_THREATS",_t="REWIND_STATUS_FETCH",Et="REWIND_STATUS_FETCH_RECEIVE",Ct="REWIND_STATUS_FETCH_FAIL",St="MOCK_SWITCH_REWIND_STATE",jt="SCAN_STATUS_FETCH",Mt="SCAN_STATUS_FETCH_RECEIVE",xt="SCAN_STATUS_FETCH_FAIL",Nt="MOCK_SWITCH_SCAN_STATE",At="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH",Ot="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_FAIL",Tt="JETPACK_SITE_VERIFY_GOOGLE_STATUS_FETCH_SUCCESS",Pt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST",It="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_SUCCESS",Rt="JETPACK_SITE_VERIFY_GOOGLE_REQUEST_FAIL",Ut="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL",Zt="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_SUCCESS",Dt="JETPACK_MOBILE_LOGIN_SEND_LOGIN_EMAIL_FAIL",Lt="JETPACK_LICENSING_ERROR_UPDATE",zt="JETPACK_LICENSING_USER_LICENSE_COUNTS_UPDATE",Bt="JETPACK_LICENSING_ACTIVATION_NOTICE_DISMISS_UPDATE",Ft="JETPACK_CONNECTION_HAS_SEEN_WC_CONNECTION_MODAL"},57644:function(e,t,n){"use strict";n.d(t,{D3:function(){return s},g4:function(){return o},eR:function(){return a},l7:function(){return c},bB:function(){return l},Bt:function(){return u}});var r=n(19570),i=n(67592);const s=e=>t=>{t({type:i.HO,activeStatsTab:e})},o=e=>t=>(t({type:i.YC}),r.ZP.fetchStatsData(e).then((e=>{t({type:i.w_,statsData:e})})).catch((e=>{t({type:i.$0,error:e})}))),a=()=>e=>(e({type:i.H5}),r.ZP.getProtectCount().then((t=>{e({type:i.QG,protectCount:t})})).catch((t=>{e({type:i.yV,error:t})}))),c=()=>e=>(e({type:i.Cf}),r.ZP.getVaultPressData().then((t=>{e({type:i.Mi,vaultPressData:t})})).catch((t=>{e({type:i.x3,error:t})}))),l=()=>e=>(e({type:i.$I}),r.ZP.getAkismetData().then((t=>{e({type:i.RR,akismetData:t})})).catch((t=>{e({type:i.as,error:t})}))),u=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t=>{t({type:i.Fm});return(""===e?r.ZP.checkAkismetKey().then((e=>{t({type:i.BG,akismet:e})})):r.ZP.checkAkismetKeyTyped(e).then((e=>{t({type:i.BG,akismet:e})}))).catch((e=>{t({type:i.KD,error:e})}))}}},75395:function(e,t,n){"use strict";n.d(t,{l5:function(){return r.l5},fU:function(){return r.fU},xz:function(){return r.xz},yZ:function(){return r.yZ},XK:function(){return r.XK},_R:function(){return r._R},_2:function(){return r._2},gw:function(){return r.gw},bV:function(){return r.bV},Xu:function(){return r.Xu},F2:function(){return r.F2},P_:function(){return r.P_},Bt:function(){return i.Bt},bB:function(){return i.bB},eR:function(){return i.eR},g4:function(){return i.g4},l7:function(){return i.l7},D3:function(){return i.D3}});var r=n(50046),i=n(57644)},50046:function(e,t,n){"use strict";n.d(t,{sI:function(){return o},l5:function(){return a},F2:function(){return c},yZ:function(){return l},bV:function(){return u},fU:function(){return p},gw:function(){return d},_2:function(){return h},Xu:function(){return f},xz:function(){return m},P_:function(){return g},XK:function(){return v},_R:function(){return b}});var r=n(74978),i=n(92819),s=n(67592);const o=(0,r.UY)({requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.YC:return(0,i.assign)({},e,{fetchingStatsData:!0});case s.$I:return(0,i.assign)({},e,{fetchingAkismetData:!0});case s.Fm:return(0,i.assign)({},e,{checkingAkismetKey:!0});case s.Cf:return(0,i.assign)({},e,{fetchingVaultPressData:!0});case s.H5:return(0,i.assign)({},e,{fetchingProtectData:!0});case s.BB:return(0,i.assign)({},e,{fetchingPluginUpdates:!0});case s.$0:case s.w_:return(0,i.assign)({},e,{fetchingStatsData:!1});case s.as:case s.RR:return(0,i.assign)({},e,{fetchingAkismetData:!1});case s.KD:case s.BG:return(0,i.assign)({},e,{checkingAkismetKey:!1});case s.yV:case s.QG:return(0,i.assign)({},e,{fetchingProtectData:!1});case s.Pi:case s.yE:return(0,i.assign)({},e,{fetchingPluginUpdates:!1});case s.x3:case s.Mi:return(0,i.assign)({},e,{fetchingVaultPressData:!1});default:return e}},activeStatsTab:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"day",t=arguments.length>1?arguments[1]:void 0;return t.type===s.HO?t.activeStatsTab:e},protectCount:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;return t.type===s.QG?t.protectCount:e},vaultPressData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.Mi:return t.vaultPressData;case s.CM:return(0,i.assign)({},"N/A"===e?{}:e,{data:{active:!0,features:{security:!0},security:{notice_count:t.mockCount}}});default:return e}},statsData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.w_?(0,i.assign)({},e,t.statsData):e},akismetData:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;return t.type===s.RR?t.akismetData:e},akismet:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{validKey:null,invalidKeyCode:"",invalidKeyMessage:""},t=arguments.length>1?arguments[1]:void 0;return t.type===s.BG?(0,i.assign)({},e,t.akismet):e},pluginUpdates:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"N/A",t=arguments.length>1?arguments[1]:void 0;return t.type===s.yE?t.pluginUpdates:e}});function a(e){return e.jetpack.dashboard.activeStatsTab}function c(e){return!!e.jetpack.dashboard.requests.fetchingStatsData}function l(e){return e.jetpack.dashboard.statsData}function u(e){return!!e.jetpack.dashboard.requests.fetchingAkismetData}function p(e){return e.jetpack.dashboard.akismetData}function d(e){return!!e.jetpack.dashboard.requests.checkingAkismetKey}function h(e){return(0,i.get)(e.jetpack.dashboard,["akismet","validKey"],!1)}function f(e){return!!e.jetpack.dashboard.requests.fetchingProtectData}function m(e){return e.jetpack.dashboard.protectCount}function g(e){return!!e.jetpack.dashboard.requests.fetchingVaultPressData}function v(e){return e.jetpack.dashboard.vaultPressData}function b(e){return(0,i.get)(e.jetpack.dashboard.vaultPressData,"data.security.notice_count",0)}},64769:function(e,t,n){"use strict";n.d(t,{I7:function(){return c},SG:function(){return l},eW:function(){return u},jb:function(){return p},EP:function(){return d},bL:function(){return h},HD:function(){return f},xK:function(){return m},qJ:function(){return g}});var r=n(65736),i=n(21094),s=n(67592),o=n(19570),a=n(66552);const __=r.__,c=()=>e=>o.ZP.fetchSiteConnectionStatus().then((t=>{e({type:s.m,siteConnected:t})})),l=()=>e=>(e((0,i.iI)("is-info",__("Testing Jetpack Connection","jetpack"),{id:"test-jetpack-connection"})),o.ZP.fetchSiteConnectionTest().then((t=>{e({type:s._M,connectionTest:t}),e((0,i.qq)("test-jetpack-connection")),e((0,i.iI)("success"===t.code?"is-success":"is-error",t.message,{id:"test-jetpack-connection"}))})).catch((t=>{e((0,i.qq)("test-jetpack-connection")),e((0,i.iI)("is-error",(0,r.sprintf)(
/* translators: placeholder is an error message. */
__("There was an error testing Jetpack. Error: %s","jetpack"),t.message),{id:"test-jetpack-connection"}))}))),u=()=>e=>(e({type:s.q7}),o.ZP.fetchConnectUrl().then((t=>{e({type:s.hm,connectUrl:t})})).catch((t=>{e({type:s.Uy,error:t})}))),p=()=>e=>(e({type:s.lj}),o.ZP.fetchUserConnectionData().then((t=>{e({type:s.yb,userConnectionData:t})})).catch((t=>{e({type:s.o2,error:t})}))),d=()=>e=>(e({type:s.IW}),e((0,i.iI)("is-info",__("Unlinking from WordPress.com","jetpack"),{id:"unlink-user"})),o.ZP.unlinkUser().then((t=>{e({type:s.dD,userUnlinked:t}),e(u()),e((0,i.qq)("unlink-user")),e((0,i.iI)("is-success",__("Unlinked from WordPress.com.","jetpack"),{id:"unlink-user",duration:2e3}))})).catch((t=>{e({type:s.Mo,error:t}),e((0,i.qq)("unlink-user")),e((0,i.iI)("is-error",(0,r.sprintf)(
/* translators: placeholder is the error. */
__("Error unlinking from WordPress.com. Error: %s","jetpack"),t),{id:"unlink-user"}))}))),h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>{t({type:s.ie,featureLabel:e})}},f=()=>e=>{e({type:s.AA})},m=()=>(e,t)=>(e({type:s.bG}),e((0,i.iI)("is-info",__("Reconnecting Jetpack","jetpack"),{id:"reconnect-jetpack"})),o.ZP.reconnect().then((n=>{const r=n.status,i=n.authorizeUrl;if("in_progress"===r){if((0,a.G6)(t())||(0,a.jq)(t()))return window.location.replace(i);e({type:s.hm,connectUrl:i}),e(h())}else window.location.reload()})).catch((t=>{e({type:s.B9,error:t}),e((0,i.qq)("reconnect-jetpack")),e((0,i.iI)("is-error",(0,r.sprintf)(
/* translators: placeholder is the error. */
__("There was an error reconnecting Jetpack. Error: %s","jetpack"),t.response.message||t.response.code),{id:"reconnect-jetpack"}))}))),g=()=>e=>(e({type:s.jt}),o.ZP.setHasSeenWCConnectionModal())},41147:function(e,t,n){"use strict";n.d(t,{AM:function(){return r.AM},tN:function(){return r.tN},xP:function(){return r.xP},Zp:function(){return r.Zp},rH:function(){return r.rH},LN:function(){return r.LN},Gz:function(){return r.Gz},Hu:function(){return r.Hu},it:function(){return r.it},zq:function(){return r.zq},QM:function(){return r.QM},BU:function(){return r.BU},e_:function(){return r.e_},Mq:function(){return r.Mq},Dd:function(){return r.Dd},l9:function(){return r.l9},Ex:function(){return r.Ex},O_:function(){return r.O_},q7:function(){return r.q7},j8:function(){return r.j8},cm:function(){return r.cm},t_:function(){return r.t_},IK:function(){return r.IK},jZ:function(){return r.jZ},bL:function(){return i.bL},eW:function(){return i.eW},I7:function(){return i.I7},SG:function(){return i.SG},jb:function(){return i.jb},xK:function(){return i.xK},HD:function(){return i.HD},qJ:function(){return i.qJ},EP:function(){return i.EP}});var r=n(6861),i=n(64769)},6861:function(e,t,n){"use strict";n.d(t,{I6:function(){return c},Zp:function(){return l},Gz:function(){return u},q7:function(){return p},j8:function(){return d},Hu:function(){return h},AM:function(){return f},tN:function(){return m},e_:function(){return g},Mq:function(){return v},jZ:function(){return b},zq:function(){return y},xP:function(){return k},Dd:function(){return w},BU:function(){return _},QM:function(){return E},it:function(){return C},Ex:function(){return S},cm:function(){return j},l9:function(){return M},t_:function(){return x},IK:function(){return N},LN:function(){return A},O_:function(){return O},rH:function(){return T}});var r=n(74978),i=n(92819),s=n(67592),o=n(93107);const a={disconnectingSite:!1,connectingUser:!1,unlinkingUser:!1,fetchingConnectUrl:!1,fetchingUserData:!1,reconnectingSite:!1},c=(0,r.UY)({connectUrl:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.R9:return(0,i.get)(t,"initialState.connectUrl",e);case s.hm:return t.connectUrl;default:return e}},status:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{siteConnected:window.Initial_State.connectionStatus},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.m:case s.BV:return(0,i.assign)({},e,{siteConnected:t.siteConnected});case s.dD:return(0,i.assign)({},e,{siteConnected:{...e.siteConnected,isUserConnected:!1}});case s.yb:return!0===t.userConnectionData?.currentUser?.isConnected?(0,i.assign)({},e,{siteConnected:{...e.siteConnected,hasConnectedOwner:!0}}):e;default:return e}},user:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.userData,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.yb:return(0,i.assign)({},e,t.userConnectionData);case s.dD:const n=(0,i.assign)({},e.currentUser,{isConnected:!1});return(0,i.assign)({},e,{currentUser:n});case s.hF:return(0,i.merge)({},e,t.initialState);default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.J1:return(0,i.assign)({},e,{disconnectingSite:!0});case s.IW:return(0,i.assign)({},e,{unlinkingUser:!0});case s.ie:return(0,i.assign)({},e,{connectingUser:!0,connectingUserFeatureLabel:t.featureLabel});case s.AA:return(0,i.assign)({},e,{connectingUser:!1});case s.q7:return(0,i.assign)({},e,{fetchingConnectUrl:!0});case s.lj:return(0,i.assign)({},e,{fetchingUserData:!0});case s.bG:return(0,i.assign)({},e,{reconnectingSite:!0});case s.U7:case s.BV:return(0,i.assign)({},e,{disconnectingSite:!1});case s.Mo:case s.dD:return(0,i.assign)({},e,{unlinkingUser:!1});case s.Uy:case s.hm:return(0,i.assign)({},e,{fetchingConnectUrl:!1});case s.o2:case s.yb:return(0,i.assign)({},e,{fetchingUserData:!1});case s.B9:case s.sO:return(0,i.assign)({},e,{reconnectingSite:!1});default:return e}},hasSeenWCConnectionModal:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.hasSeenWCConnectionModal||!1,t=arguments.length>1?arguments[1]:void 0;return t.type===s.jt||e}});function l(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&e.jetpack.connection.status.siteConnected}function u(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&(e.jetpack.connection.status.siteConnected.offlineMode.isActive?"offline":e.jetpack.connection.status.siteConnected.isActive)}function p(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.offlineMode.isActive&&e.jetpack.connection.status.siteConnected.isActive}function d(e){return"object"==typeof e.jetpack.connection.status.siteConnected&&!0!==e.jetpack.connection.status.siteConnected.offlineMode.isActive&&e.jetpack.connection.status.siteConnected.isRegistered}function h(e){return!!(0,i.get)(e.jetpack.connection.status,["siteConnected","offlineMode","isActive"])&&(0,i.get)(e.jetpack.connection.status,["siteConnected","offlineMode"])}function f(e){return e.jetpack.connection.connectUrl}function m(e){return e.jetpack.connection.user.currentUser.wpcomUser}function g(e){return!!e.jetpack.connection.requests.disconnectingSite}function v(e){return!!e.jetpack.connection.requests.fetchingConnectUrl}function b(e){return!!e.jetpack.connection.requests.unlinkingUser}function y(e){return!!e.jetpack.connection.requests.connectingUser}function k(e){return e.jetpack.connection.requests.hasOwnProperty("connectingUserFeatureLabel")?e.jetpack.connection.requests.connectingUserFeatureLabel:null}function w(e){return!!e.jetpack.connection.requests.fetchingUserData}function _(e){return!!e.jetpack.connection.user.currentUser.isConnected}function E(e){return!!e.jetpack.connection.user.currentUser.isMaster}function C(e){return(0,i.get)(e.jetpack.connection.status,["siteConnected","hasConnectedOwner"],!1)}function S(e){return"offline"===u(e)}function j(e){return(0,i.get)(e.jetpack.connection.status,["siteConnected","isStaging"],!1)}function M(e){return(0,i.get)(e.jetpack.connection.status,["siteConnected","isInIdentityCrisis"],!1)}function x(e,t){return S(e)&&function(e,t){return(0,i.includes)((0,o.HS)(e).concat(["backups","scan"]),t)}(e,t)}function N(e,t){return!C(e)&&function(e,t){return(0,i.includes)((0,o.he)(e),t)}(e,t)}function A(e){return(0,i.get)(e.jetpack.connection.status,["siteConnected","sandboxDomain"],"")}function O(e){return!!e.jetpack.connection.requests.reconnectingSite}function T(e){return!!e.jetpack.connection.hasSeenWCConnectionModal}},43853:function(e,t,n){"use strict";n.d(t,{_G:function(){return a},vN:function(){return c},Wh:function(){return l},fb:function(){return u},Yw:function(){return y},aX:function(){return k},_s:function(){return w},pH:function(){return _}});var r=n(65736),i=n(21094),s=n(67592),o=n(19570);const __=r.__,a=e=>t=>(t({type:s.sQ}),t((0,i.iI)("is-info",__("Resetting Jetpack options…","jetpack"),{id:"reset-options"})),o.ZP.resetOptions(e).then((()=>{t({type:s.c0}),t((0,i.qq)("reset-options")),t((0,i.iI)("is-success",__("Options reset.","jetpack"),{id:"reset-options",duration:2e3}))})).catch((e=>{t({type:s.Kt,error:e}),t((0,i.qq)("reset-options")),t((0,i.iI)("is-error",__("Options failed to reset.","jetpack"),{id:"reset-options"}))}))),c=()=>e=>{e({type:s.Yo})},l=()=>e=>{e({type:s.mL})},u=e=>t=>{t({type:s.fH,siteData:{plan:{product_slug:e}}})},p={currentUser:{isMaster:!0,isConnected:!0,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},d={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!0,disconnect:!0,edit_posts:!0,manage_modules:!0,manage_options:!0,manage_plugins:!0}}},h={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!0,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},f={currentUser:{isMaster:!1,permissions:{admin_page:!0,connect:!1,disconnect:!1,edit_posts:!1,manage_modules:!1,manage_options:!1,manage_plugins:!1}}},m={currentUser:{permissions:{view_stats:!0}}},g={currentUser:{permissions:{view_stats:!1}}},v={currentUser:{isConnected:!0}},b={currentUser:{isConnected:!1,isMaster:!1}},y=e=>{let t={};return n=>{switch(e){case"admin_master":t=p;break;case"admin_secondary":t=d;break;case"editor":case"contributor":case"author":t=h;break;case"subscriber":t=f;break;case"view_stats":t=m;break;case"hide_stats":t=g;break;case"is_linked":t=v;break;case"is_unlinked":t=b}n({type:s.hF,initialState:t})}},k=e=>t=>{t({type:s.CM,mockCount:e})},w=e=>t=>{t({type:s.Yk,rewindState:{state:e}})},_=e=>t=>{t({type:s.M0,scanState:{state:e}})}},28843:function(e,t,n){"use strict";n.d(t,{Ry:function(){return r.Ry},Wh:function(){return i.Wh},vN:function(){return i.vN},_G:function(){return i._G},fb:function(){return i.fb},_s:function(){return i._s},pH:function(){return i.pH},aX:function(){return i.aX},Yw:function(){return i.Yw}});var r=n(71565),i=n(43853)},71565:function(e,t,n){"use strict";n.d(t,{I6:function(){return s},Ry:function(){return o}});var r=n(74978),i=n(67592);const s=(0,r.UY)({display:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Yo:return!0;case i.mL:return!1;default:return e}}});function o(e){return!!e.jetpack.devCard.display}},83097:function(e,t,n){"use strict";n.d(t,{I6:function(){return o}});var r=n(74978),i=n(92819),s=n(67592);const o=(0,r.UY)({disconnectSurvey:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{submitting:!1,submitted:!1,error:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.me:return(0,i.assign)({},e,{submitting:!0});case s.Vd:return(0,i.assign)({},e,{submitting:!1,submitted:!0,error:null});case s.tl:return(0,i.assign)({},e,{submitting:!1,submitted:!1,error:t.error});default:return e}}})},27572:function(e,t,n){"use strict";n.d(t,{K:function(){return i}});var r=n(67592);const i=()=>e=>{e({type:r.R9,initialState:window.Initial_State})}},66552:function(e,t,n){"use strict";n.d(t,{Hy:function(){return r.Hy},Cv:function(){return r.Cv},jq:function(){return r.jq},je:function(){return r.je},VY:function(){return r.VY},yB:function(){return r.yB},PK:function(){return r.PK},de:function(){return r.de},w1:function(){return r.w1},mh:function(){return r.mh},rd:function(){return r.rd},xz:function(){return r.xz},Hh:function(){return r.Hh},Uu:function(){return r.Uu},Z2:function(){return r.Z2},DV:function(){return r.DV},wB:function(){return r.wB},by:function(){return r.by},as:function(){return r.as},H$:function(){return r.H$},wW:function(){return r.wW},ze:function(){return r.ze},EZ:function(){return r.EZ},JR:function(){return r.JR},Td:function(){return r.Td},aW:function(){return r.aW},hv:function(){return r.hv},Qq:function(){return r.Qq},KF:function(){return r.KF},_G:function(){return r._G},IU:function(){return r.IU},Ms:function(){return r.Ms},vL:function(){return r.vL},Ug:function(){return r.Ug},_W:function(){return r._W},TA:function(){return r.TA},G6:function(){return r.G6},$r:function(){return r.$r},pI:function(){return r.pI},Pw:function(){return r.Pw},nP:function(){return r.nP},xR:function(){return r.xR},Yg:function(){return r.Yg},mb:function(){return r.mb},n0:function(){return r.n0},Mc:function(){return r.Mc},WB:function(){return r.WB},rp:function(){return r.rp},pK:function(){return r.pK},UF:function(){return r.UF},ic:function(){return r.ic},D6:function(){return r.D6},px:function(){return r.px},dc:function(){return r.dc},KY:function(){return i.K}});var r=n(67643),i=n(27572)},67643:function(e,t,n){"use strict";n.d(t,{E3:function(){return l},_W:function(){return u},w1:function(){return p},Td:function(){return d},Uu:function(){return h},xz:function(){return f},Hh:function(){return m},je:function(){return g},JR:function(){return v},wW:function(){return b},aW:function(){return y},$r:function(){return k},dc:function(){return w},D6:function(){return _},pK:function(){return E},UF:function(){return C},rp:function(){return S},ic:function(){return j},WB:function(){return M},Mc:function(){return x},n0:function(){return N},IU:function(){return A},_G:function(){return O},KF:function(){return T},Ms:function(){return P},px:function(){return R},EZ:function(){return U},ze:function(){return Z},pI:function(){return D},VY:function(){return L},yB:function(){return z},H$:function(){return B},wB:function(){return F},as:function(){return V},hv:function(){return H},de:function(){return W},Z2:function(){return $},Hy:function(){return J},Ug:function(){return K},Pw:function(){return G},vL:function(){return Y},Cv:function(){return X},xR:function(){return Q},mb:function(){return ee},Yg:function(){return te},TA:function(){return ne},mh:function(){return re},DV:function(){return oe},Qq:function(){return ae},by:function(){return ce},rd:function(){return le},PK:function(){return ue},G6:function(){return pe},jq:function(){return de},nP:function(){return he}});var r=n(92819),i=n(71415),s=n(67592),o=n(89238),a=n(13553),c=n(41147);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.R9:return(0,r.assign)({},e,t.initialState);case s.hF:return(0,r.merge)({},e,{userData:t.initialState});default:return e}};function u(e){return!!e.jetpack.initialState.isDevVersion}function p(e){return(0,r.get)(e.jetpack.initialState,"currentVersion","")}function d(e){return(0,r.get)(e.jetpack.initialState.stats,"roles",{})}function h(e){return(0,r.get)(e.jetpack.initialState.stats,"data")}function f(e){return(0,r.get)(e.jetpack.initialState,"connectedPlugins",{})}function m(e){return(0,r.get)(e.jetpack.initialState,"jetpackBenefits",[])}function g(e){return(0,r.get)(e.jetpack.initialState,["userData","currentUser","wpcomUser","email"])}function v(e){return(0,r.get)(e.jetpack.initialState,"rawUrl",{})}function b(e){return(0,r.get)(e.jetpack.initialState,"adminUrl",{})}function y(e){return(0,r.get)(e.jetpack.initialState,"siteTitle","")}function k(e){return(0,r.get)(e.jetpack.initialState,["connectionStatus","isPublic"])}function w(e){return!(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function _(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"publish_posts",!1)}function E(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_modules",!1)}function C(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_options",!1)}function S(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"edit_posts",!1)}function j(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"manage_plugins",!1)}function M(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"disconnect",!1)}function x(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect",!1)}function N(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"connect_user",!1)}function A(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","login"],"")}function O(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser,["wpcomUser","ID"],"")}function T(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser,["gravatar"])}function P(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser,["username"])}function I(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser,"id","")}function R(e){return(0,r.get)(e.jetpack.initialState.userData.currentUser.permissions,"view_stats",!1)}function U(e){return(0,r.get)(e.jetpack.initialState.siteData,["blog_id"])}function Z(e){return(0,r.get)(e.jetpack.initialState.siteData,["icon"])}function D(e){return(0,r.get)(e.jetpack.initialState.siteData,["siteVisibleToSearchEngines"],!0)}function L(e){return(0,r.get)(e.jetpack.initialState,"WP_API_nonce")}function z(e){return(0,r.get)(e.jetpack.initialState,"WP_API_root")}function B(e){return(0,r.get)(e.jetpack.initialState,"registrationNonce")}function F(e){return(0,r.get)(e.jetpack.initialState,"pluginBaseUrl")}function V(e){return(0,r.get)(e.jetpack.initialState,"purchaseToken")}function q(e){return(0,r.get)(e.jetpack.initialState,"calypsoEnv")}function H(e){return(0,r.get)(e.jetpack.initialState,"tracksUserData")}function W(e){return(0,r.get)(e.jetpack.initialState,"currentIp")}function $(e){return(0,r.get)(e.jetpack.initialState,"lastPostUrl")}function J(e){return(0,r.get)(e.jetpack.initialState.siteData,"showPromotions",!0)}function K(e){return(0,r.get)(e.jetpack.initialState.siteData,"isAtomicSite",!1)}function G(e){return(0,r.get)(e.jetpack.initialState.siteData,"isWoASite",!1)}function Y(e){return(0,r.get)(e.jetpack.initialState.siteData,"isAtomicPlatform",!1)}function X(e,t){return(0,r.get)(e.jetpack.initialState.themeData,["support",t],!1)}function Q(e){return(0,r.get)(e.jetpack.initialState.siteData,"showBackups",!0)}function ee(e){return(0,r.get)(e.jetpack.initialState.siteData,"showRecommendations",!1)}function te(e){return(0,r.get)(e.jetpack.initialState.licensing,"showLicensingUi",!1)}function ne(e){return(0,r.get)(e.jetpack.initialState.siteData,"isMultisite",!1)}function re(e){return(0,r.get)(e.jetpack.initialState.siteData,"dateFormat",!1)}function ie(e){return(0,r.get)(e.jetpack.initialState,"aff","")}function se(e){return(0,r.get)(e.jetpack.initialState,"partnerSubsidiaryId","")}function oe(e){return(0,r.get)(e.jetpack.initialState,"partnerCoupon")}const ae=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const s=ie(e),a=se(e),l=n||I(e),u=V(e),p=q(e);r&&"monthly"===(0,o.b)(e)&&(t+="-monthly");const d={site:v(e)};return s&&(d.aff=s),l&&(d.u=l),a&&(d.subsidiaryId=a),d.query="",(0,c.BU)(e)||(d.query+="unlinked=1&"),u&&(d.query+=`purchasetoken=${u}`),p&&(d.calypso_env=p),(0,i.Z)(t,d)};function ce(e){const t=(0,r.get)(e.jetpack.initialState,"products",{}),n=(0,a.Xp)(e),s={};for(const[e,o]of Object.entries(t))s[e]={title:o.title,slug:o.slug,key:e,description:o.description,features:o.features,available:(0,r.get)(n,[o.slug,"available"],!1),currencyCode:(0,r.get)(n,[o.slug,"currency_code"],""),showPromotion:o.show_promotion,promotionPercentage:o.discount_percent,includedInPlans:o.included_in_plans,fullPrice:(0,r.get)(n,[o.slug,"cost"],""),upgradeUrl:(0,i.Z)("jetpack-product-description-checkout",{path:o.slug})};return s}function le(e){return(0,r.get)(e.jetpack.initialState,"recommendationsStep","")}function ue(e){return(0,r.get)(e.jetpack.initialState,["connectionStatus","errors"],[]).filter((e=>e.hasOwnProperty("action")))}function pe(e){return!!e.jetpack.initialState.isSafari}function de(e){return!!e.jetpack.initialState.doNotUseConnectionIframe}function he(e){return!!e.jetpack.initialState.isWooCommerceActive}},35429:function(e,t,n){"use strict";n.d(t,{S:function(){return i}});var r=n(67592);n(19570);const i=e=>t=>{t({type:r.tU,notice:e})}},39370:function(e,t,n){"use strict";n.d(t,{gq:function(){return r.gq},gB:function(){return r.gB},XF:function(){return r.XF},pt:function(){return r.pt},Rv:function(){return r.Rv},jE:function(){return r.jE},Sn:function(){return i.S}});var r=n(93036),i=n(35429)},93036:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},gq:function(){return a},gB:function(){return c},pt:function(){return l},Rv:function(){return u},XF:function(){return p},jE:function(){return d}});var r=n(74978),i=n(92819),s=n(67592);const o=(0,r.UY)({notice:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return t.type===s.BV?"disconnected":e},dismissed:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.dismissedNotices,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.tU:return(0,i.assign)({},e,{[t.notice]:!0});case s.Ez:return(0,i.assign)({},e,t.dismissedNotices);case s.c0:return!1;default:return e}}});function a(e){return e.jetpack.jetpackNotices.notice}function c(e){return(0,i.get)(e.jetpack.initialState,["jetpackStateNotices","errorCode"])}function l(e){return(0,i.get)(e.jetpack.initialState,["jetpackStateNotices","messageCode"])}function u(e){return(0,i.get)(e.jetpack.initialState,["jetpackStateNotices","messageContent"])}function p(e){return(0,i.get)(e.jetpack.initialState,["jetpackStateNotices","errorDescription"])}function d(e,t){return(0,i.get)(e.jetpack.jetpackNotices.dismissed,[t],!1)}},28178:function(e,t,n){"use strict";n.d(t,{xw:function(){return s},Ng:function(){return o},bT:function(){return a}});var r=n(67592),i=n(19570);const s=()=>e=>(e({type:r.U$,error:""}),i.ZP.updateLicensingError({error:""})),o=()=>e=>i.ZP.getUserLicensesCounts().then((t=>{e({type:r.R5,counts:t})})).catch((t=>{e({type:r.U$,error:t})})),a=()=>(e,t)=>{const n=t().jetpack.licensing.userCounts?.detached;return i.ZP.updateLicensingActivationNoticeDismiss(n).then((t=>{e({type:r.lO,dismissData:t})})).catch((t=>{e({type:r.U$,error:t})}))}},77219:function(e,t,n){"use strict";n.d(t,{SP:function(){return r.SP},O4:function(){return r.O4},Tk:function(){return r.Tk},xw:function(){return i.xw},bT:function(){return i.bT},Ng:function(){return i.Ng}});var r=n(88584),i=n(28178)},88584:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},Tk:function(){return a},O4:function(){return c},SP:function(){return l}});var r=n(92819),i=n(74978),s=n(67592);const o=(0,i.UY)({error:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.Initial_State.licensing.error,t=arguments.length>1?arguments[1]:void 0;return t.type===s.U$?t.error:e},userCounts:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null!==(e=window.Initial_State.licensing.userCounts)&&void 0!==e?e:{},n=arguments.length>1?arguments[1]:void 0;return n.type===s.R5?(0,r.assign)({},t,n.counts):t},activationNoticeDismiss:function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null!==(e=window.Initial_State.licensing.activationNoticeDismiss)&&void 0!==e?e:{last_detached_count:null,last_dismissed_time:null},n=arguments.length>1?arguments[1]:void 0;return n.type===s.lO?(0,r.assign)({},t,n.dismissData):t}});function a(e){return(0,r.get)(e.jetpack.licensing,["error"],"")}function c(e){return(0,r.get)(e.jetpack.licensing.userCounts,["detached"],0)}function l(e){return(0,r.get)(e.jetpack.licensing,["activationNoticeDismiss"],{})}},27279:function(e,t,n){"use strict";n.d(t,{u:function(){return a}});var r=n(65736),i=n(19570),s=n(67592),o=n(21094);const __=r.__,a=()=>e=>(e({type:s.oQ}),e((0,o.qq)("mobile-login-email-send")),e((0,o.qq)("mobile-login-email-sent")),e((0,o.qq)("mobile-login-email-error")),e((0,o.iI)("is-info",__("Sending login email…","jetpack"),{id:"mobile-login-email-send"})),i.ZP.sendMobileLoginEmail().then((t=>(e((0,o.qq)("mobile-login-email-send")),e({type:s.UI}),e((0,o.iI)("is-success",__("Login email sent","jetpack"),{id:"mobile-login-email-sent",duration:2e3})),t))).catch((t=>{e({type:s.Uq,error:t.response}),e((0,o.qq)("mobile-login-email-send")),e((0,o.iI)("is-error",__("Failed to send login email","jetpack"),{id:"mobile-login-email-error"}))})))},36900:function(e,t,n){"use strict";n.d(t,{I6:function(){return o}});var r=n(74978),i=n(92819),s=n(67592);const o=(0,r.UY)({mobile:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{sendingLoginEmail:!1,loginEmailSent:!1,error:null},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.oQ:return(0,i.assign)({},e,{sendingLoginEmail:!0});case s.UI:return(0,i.assign)({},e,{sendingLoginEmail:!1,loginEmailSent:!0,error:null});case s.Uq:return(0,i.assign)({},e,{sendingLoginEmail:!1,loginEmailSent:!1,error:t.error});default:return e}}})},7954:function(e,t,n){"use strict";n.d(t,{Z$:function(){return l},d:function(){return u},DK:function(){return p},Uq:function(){return d}});var r=n(92819),i=n(65736),s=n(21094),o=n(67592),a=n(91172),c=n(19570);const __=i.__,l=()=>e=>(e({type:o.jE}),c.ZP.fetchModules().then((t=>(e({type:o.I3,modules:t}),t))).catch((t=>{e({type:o.kF,error:t})}))),u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(n,r)=>(n({type:o.sG,module:e}),n((0,s.qq)("module-toggle")),n((0,s.iI)("is-info",(0,i.sprintf)(
/* translators: placeholder is a feature name, such as "Image CDN". */
__("Activating %s…","jetpack"),(0,a.rT)(r(),e).name),{id:"module-toggle"})),c.ZP.activateModule(e).then((()=>{n({type:o.n2,module:e,success:!0}),n((0,s.qq)("module-toggle")),n((0,s.iI)("is-success",(0,i.sprintf)(
/* translators: placeholder is a feature name, such as "Image CDN". */
__("%s has been activated.","jetpack"),(0,a.rT)(r(),e).name),{id:"module-toggle",duration:2e3})),t&&window.location.reload()})).catch((t=>{n({type:o.Jy,module:e,success:!1,error:t}),n((0,s.qq)("module-toggle")),n((0,s.iI)("is-error",(0,i.sprintf)(
/* translators: %1$s: feature name, such as "Image CDN". - %2$s: error message. */
__("%1$s failed to activate. %2$s","jetpack"),(0,a.rT)(r(),e).name,t),{id:"module-toggle"}))})))};function p(e,t){if("custom-content-types"!==e)return!1;t||jQuery("#menu-posts-jetpack-portfolio, #menu-posts-jetpack-testimonial").toggle(),(0,r.forEach)(t,(function(e,t){"jetpack_portfolio"===t&&jQuery("#menu-posts-jetpack-portfolio, .jp-toggle-portfolio").toggle(),"jetpack_testimonial"===t&&jQuery("#menu-posts-jetpack-testimonial, .jp-toggle-testimonial").toggle()}))}function d(e){(0,r.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&window.location.reload()}},93107:function(e,t,n){"use strict";n.d(t,{Xx:function(){return r.Xx},rT:function(){return r.rT},C5:function(){return r.C5},R9:function(){return r.R9},Qy:function(){return r.Qy},hU:function(){return r.hU},HS:function(){return r.HS},he:function(){return r.he},og:function(){return r.og},zc:function(){return r.zc},Su:function(){return r.Su},ZY:function(){return r.ZY},mp:function(){return r.mp},v1:function(){return r.v1},d:function(){return i.d},Z$:function(){return i.Z$},DK:function(){return i.DK},Uq:function(){return i.Uq}});var r=n(91172),i=n(7954)},91172:function(e,t,n){"use strict";n.d(t,{I6:function(){return c},ZY:function(){return l},C5:function(){return u},R9:function(){return p},hU:function(){return d},Xx:function(){return h},rT:function(){return f},HS:function(){return m},he:function(){return g},og:function(){return v},zc:function(){return b},Su:function(){return y},mp:function(){return k},v1:function(){return w},Qy:function(){return _}});var r=n(74978),i=n(92819),s=n(67592),o=n(61744);const a={fetchingModulesList:!1,activating:{},deactivating:{},updatingOption:{}},c=(0,r.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.R9:return(0,i.assign)({},t.initialState.getModules);case s.I3:return(0,i.assign)({},e,t.modules);case s.n2:return(0,i.assign)({},e,{[t.module]:(0,i.assign)({},e[t.module],{activated:!0})});case s.CD:return(0,i.assign)({},e,{[t.module]:(0,i.assign)({},e[t.module],{activated:!1})});case s.Hy:const n=(0,i.assign)({},e[t.module]);return Object.keys(t.newOptionValues).forEach((e=>{n.options[e].current_value=t.newOptionValues[e]})),(0,i.assign)({},e,{[t.module]:n});default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.jE:return(0,i.assign)({},e,{fetchingModulesList:!0});case s.kF:case s.I3:return(0,i.assign)({},e,{fetchingModulesList:!1});case s.sG:return(0,i.assign)({},e,{activating:(0,i.assign)({},e.activating,{[t.module]:!0})});case s.Jy:case s.n2:return(0,i.assign)({},e,{activating:(0,i.assign)({},e.activating,{[t.module]:!1})});case s.Gu:return(0,i.assign)({},e,{deactivating:(0,i.assign)({},e.deactivating,{[t.module]:!0})});case s.xk:case s.CD:return(0,i.assign)({},e,{deactivating:(0,i.assign)({},e.deactivating,{[t.module]:!1})});case s.L:const n=(0,i.assign)({},e.updatingOption);return n[t.module]=(0,i.assign)({},n[t.module]),Object.keys(t.newOptionValues).forEach((e=>{n[t.module][e]=!0})),(0,i.assign)({},e,{updatingOption:(0,i.assign)({},e.updatingOption,n)});case s.Lo:case s.Hy:const r=(0,i.assign)({},e.updatingOption);return r[t.module]=(0,i.assign)({},r[t.module]),Object.keys(t.newOptionValues).forEach((e=>{r[t.module][e]=!1})),(0,i.assign)({},e,{updatingOption:(0,i.assign)({},e.updatingOption,r)});default:return e}}});function l(e,t){return!!e.jetpack.modules.requests.activating[t]}function u(e,t,n){return(0,i.get)(e.jetpack.modules.items,[t,"options",n,"current_value"])}function p(e,t,n){return(0,i.get)(e.jetpack.modules.items,[t,"options",n,"enum_labels"],!1)}function d(e){return e.jetpack.modules.items}function h(e){return Object.keys(e.jetpack.modules.items).filter((t=>e.jetpack.modules.items[t].activated))}function f(e,t){return(0,i.get)(e.jetpack.modules.items,t,{})}function m(e){return Object.keys(e.jetpack.modules.items).filter((t=>e.jetpack.modules.items[t].requires_connection))}function g(e){return Object.keys(e.jetpack.modules.items).filter((t=>e.jetpack.modules.items[t].requires_user_connection))}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const n=Object.keys(d(e));return 0<(0,i.intersection)(n,t).length}function b(e){return v(e,["carousel","lazy-images","photon","photon-cdn","search","videopress"])}function y(e){return v(e,["protect","sso","vaultpress"])||(0,o.TB)(e,"akismet/akismet.php")}function k(e,t){return!!(0,i.get)(e.jetpack.modules.items,[t,"activated"],!1)}function w(e,t){return(0,i.includes)(Object.keys(e.jetpack.modules.items),t)}function _(e,t){return(0,i.get)(e.jetpack.modules.items,[t,"override"],!1)}},89238:function(e,t,n){"use strict";n.d(t,{I:function(){return s},b:function(){return o}});var r=n(74978),i=n(67592);const s=(0,r.UY)({duration:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"yearly",t=arguments.length>1?arguments[1]:void 0;return t.type===i.b8?t.duration:e}});function o(e){return e.jetpack.plans.duration}},37457:function(e,t,n){"use strict";n.d(t,{t:function(){return s}});var r=n(67592),i=n(19570);const s=()=>e=>(e({type:r.g}),i.ZP.fetchProducts().then((t=>{e({type:r.i7,products:t})})).catch((t=>{e({type:r.ik,error:t})})))},13553:function(e,t,n){"use strict";n.d(t,{Xp:function(){return r.Xp},T0:function(){return r.T0},t2:function(){return i.t}});var r=n(79367),i=n(37457)},79367:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},T0:function(){return a},Xp:function(){return c}});var r=n(92819),i=n(74978),s=n(67592);const o=(0,i.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.i7?t.products:e},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.g:return(0,r.assign)({},e,{isFetchingProducts:!0});case s.i7:case s.ik:return(0,r.assign)({},e,{isFetchingProducts:!1});default:return e}}});function a(e){return!!e.jetpack.products.requests.isFetchingProducts}function c(e){return e.jetpack.products.items}},46023:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},K0:function(){return a}});var r=n(74978),i=n(92819),s=n(67592);const o=(0,r.UY)({connectUrls:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.R9?(0,i.assign)({},t.initialState.externalServicesConnectUrls):e}});function a(e,t){return(0,i.get)(e.jetpack.publicize.connectUrls,t,null)}},55449:function(e,t,n){"use strict";n.d(t,{V2:function(){return s},x5:function(){return o},u8:function(){return c},Pq:function(){return l},J_:function(){return u},OC:function(){return p},km:function(){return d},tR:function(){return h}});var r=n(19570),i=n(67592);const s=()=>e=>(e({type:i.qU}),r.ZP.fetchRecommendationsData().then((t=>{e({type:i.s6,data:t})})).catch((t=>{e({type:i.z1,error:t})}))),o=e=>t=>{t({type:i.jb,data:e})},a=(e,t)=>{const n=t().jetpack.recommendations;return e({type:i.uG}),r.ZP.saveRecommendationsData(n.data).then((()=>{e({type:i.og})})).catch((t=>{e({type:i.HE,error:t})}))},c=()=>(e,t)=>a(e,t),l=e=>(t,n)=>(t({type:i.XU,slug:e}),a(t,n)),u=e=>(t,n)=>(t({type:i.y$,slug:e}),a(t,n)),p=e=>(t,n)=>{t({type:i.x1,step:e});const s=n().jetpack.recommendations;return r.ZP.updateRecommendationsStep(s.step).then((()=>{t({type:i.kO})})).catch((e=>{t({type:i.i3,error:e})}))},d=()=>e=>(e({type:i.Nk}),r.ZP.fetchRecommendationsProductSuggestions().then((t=>{e({type:i.qY,productSuggestions:t})})).catch((t=>e({type:i.zD,error:t})))),h=()=>e=>(e({type:i.IZ}),r.ZP.fetchRecommendationsUpsell().then((t=>{e({type:i.lh,upsell:t})})).catch((t=>e({type:i.fX,error:t,upsell:{hide_upsell:!0}}))))},90218:function(e,t,n){"use strict";n.d(t,{Pq:function(){return r.Pq},J_:function(){return r.J_},V2:function(){return r.V2},km:function(){return r.km},tR:function(){return r.tR},u8:function(){return r.u8},x5:function(){return r.x5},OC:function(){return r.OC},$q:function(){return i.$q},mI:function(){return i.mI},El:function(){return i.El},Xi:function(){return i.Xi},M:function(){return i.M},TO:function(){return i.TO},CI:function(){return i.CI},jn:function(){return i.jn},dz:function(){return i.dz},WS:function(){return i.WS},at:function(){return i.at},b5:function(){return i.b5},sB:function(){return i.sB},WA:function(){return i.WA},I6:function(){return i.I6}});var r=n(55449),i=n(68054)},68054:function(e,t,n){"use strict";n.d(t,{El:function(){return f},I6:function(){return m},WS:function(){return g},WA:function(){return v},at:function(){return b},b5:function(){return y},$q:function(){return k},dz:function(){return E},sB:function(){return S},TO:function(){return x},mI:function(){return N},M:function(){return A},jn:function(){return O},CI:function(){return T},Xi:function(){return P}});var r=n(65736),i=n(74978),s=n(92819),o=n(67643),a=n(67592),c=n(30701),l=n(17752),u=n(88872),p=n(41147),d=n(61744);const _x=r._x,h=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return(0,s.union)(e,t)},f=e=>(0,s.get)(e.jetpack,["recommendations","productSuggestions"],[]),m=(0,i.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.s6:case a.jb:return(0,s.assign)({},e,t.data);case a.XU:{const n=(0,s.mergeWith)({},e,{selectedRecommendations:[t.slug],skippedRecommendations:[]},h);return n.skippedRecommendations=(0,s.difference)(e.skippedRecommendations,[t.slug]),n}case a.y$:{const n=(0,s.mergeWith)({},e,{selectedRecommendations:[],skippedRecommendations:[t.slug]},h);return n.selectedRecommendations=(0,s.difference)(e.selectedRecommendations,[t.slug]),n}default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.qU:return(0,s.assign)({},e,{isFetchingRecommendationsData:!0});case a.s6:return(0,s.assign)({},e,{isRecommendationsDataLoaded:!0,isFetchingRecommendationsData:!1});case a.z1:return(0,s.assign)({},e,{isFetchingRecommendationsData:!1});case a.Nk:return(0,s.assign)({},e,{isFetchingRecommendationsProductSuggestions:!0});case a.qY:case a.zD:return(0,s.assign)({},e,{isFetchingRecommendationsProductSuggestions:!1});case a.IZ:return(0,s.assign)({},e,{isFetchingRecommendationsUpsell:!0});case a.lh:case a.fX:return(0,s.assign)({},e,{isFetchingRecommendationsUpsell:!1});default:return e}},step:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===a.x1?t.step:e},upsell:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.lh:case a.fX:return t.upsell;default:return e}},productSuggestions:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.qY:case a.zD:return t.productSuggestions;default:return e}}}),g=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsData,v=e=>!!e.jetpack.recommendations.requests.isRecommendationsDataLoaded,b=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsProductSuggestions,y=e=>!!e.jetpack.recommendations.requests.isFetchingRecommendationsUpsell,k=(e,t)=>(0,s.get)(e.jetpack,["recommendations","data",t],!1),w={"setup-wizard-completed":"summary","banner-completed":"woocommerce","not-started":"site-type-question","site-type-question":"product-suggestions","product-suggestions":"woocommerce",woocommerce:"monitor",monitor:"related-posts","related-posts":"creative-mail","creative-mail":"site-accelerator","site-accelerator":"summary",summary:"summary"},_={"not-started":"#/recommendations/site-type","site-type-question":"#/recommendations/site-type","product-suggestions":"#/recommendations/product-suggestions",woocommerce:"#/recommendations/woocommerce",monitor:"#/recommendations/monitor","related-posts":"#/recommendations/related-posts","creative-mail":"#/recommendations/creative-mail","site-accelerator":"#/recommendations/site-accelerator",summary:"#/recommendations/summary"},E=(e,t)=>{switch(t){case"creative-mail":return!!(0,d.TB)(e,"creative-mail-by-constant-contact/creative-mail-plugin.php");case"monitor":return!!(0,l.$8)(e,"monitor");case"related-posts":return!!(0,l.$8)(e,"related-posts");case"site-accelerator":return!!(0,l.$8)(e,"photon")&&(0,l.$8)(e,"photon-cdn");case"woocommerce":return!!(0,d.TB)(e,"woocommerce/woocommerce.php");default:throw`Unknown featureSlug in isFeatureActive() in recommendations/reducer.js: ${t}`}},C=e=>"jetpack_free"===(0,u.UL)(e).product_slug&&!(0,u.b2)(e),S=e=>{if(!C(e))return!1;const t=f(e);return(0,s.isArray)(t)&&!(0,s.isEmpty)(t)},j=(e,t)=>{switch(t){case"setup-wizard-completed":case"banner-completed":case"not-started":return!1;case"site-type-question":case"summary":return!0;case"product-suggestions":return S(e);case"woocommerce":return!!k(e,"site-type-store")&&!E(e,t);case"monitor":return(0,p.it)(e)&&!E(e,t);default:return!E(e,t)}},M=(e,t)=>{let n=w[t];for(;!j(e,n);)n=w[n];return n},x=e=>{const t=""===(0,s.get)(e.jetpack,["recommendations","step"],"")?(0,o.rd)(e):e.jetpack.recommendations.step;return["setup-wizard-completed","banner-completed"].includes(t)?M(e,t):t},N=e=>{const t=x(e),n=M(e,t);return _[n]},A=e=>{const t=["site-type-store","site-type-business","site-type-personal","site-type-other"],n={
/* translators: A name for a website that sells things */
"site-type-store":_x("store","Site type display name","jetpack"),
/* translators: A name for a website for a business */
"site-type-business":_x("business site","Site type display name","jetpack"),
/* translators: A name for a website for personal use */
"site-type-personal":_x("personal site","Site type display name","jetpack"),
/* translators: A generic name for a website */
"site-type-other":_x("site","Site type display name","jetpack")};for(const r of t)if(!0===k(e,r))return n[r];return n["site-type-other"]},O=e=>(0,s.get)(e.jetpack,["recommendations","upsell"],{}),T=e=>{const t=["woocommerce","monitor","related-posts","creative-mail","site-accelerator"].filter((t=>((e,t)=>{switch(t){case"woocommerce":return!0===k(e,"site-type-store");case"monitor":return(0,p.it)(e);default:return!0}})(e,t))),n=[],r=[];for(const i of t)E(e,i)?n.push(i):r.push(i);return{selected:n,skipped:r}},P=e=>{const t=(0,u.UL)(e),n=(0,c.of)(e).state;return t.product_slug&&n?C(e)?"upsell":"awaiting_credentials"!==n||(0,u.Ic)(e)?["active","provisioning"].includes(n)?"manage-security":"download-app":"one-click-restores":"loading"}},11681:function(e,t,n){"use strict";var r=n(74978),i=n(31008),s=n(67643),o=n(50046),a=n(6861),c=n(71565),l=n(89238),u=n(93036),p=n(91172),d=n(40054),h=n(79367),f=n(46023),m=n(90218),g=n(79782),v=n(5606),b=n(7053),y=n(36965),k=n(17881),w=n(76719),_=n(82765),E=n(83097),C=n(50093),S=n(36900),j=n(88584);const M=(0,r.UY)({connection:a.I6,dashboard:o.sI,devCard:c.I6,initialState:s.E3,jetpackNotices:u.I6,modules:p.I6,plans:l.I,pluginsData:d.I6,products:h.I6,publicize:f.I6,recommendations:m.I6,rewind:g.I6,scan:v.I6,search:b.I6,settings:y.I6,siteData:k.I6,siteProducts:w.I6,siteVerify:_.I6,disconnectSurvey:E.I6,trackingSettings:C.I6,mobile:S.I6,licensing:j.I6});t.Z=(0,r.UY)({globalNotices:i.x,jetpack:M})},594:function(e,t,n){"use strict";var r=n(74978),i=n(53126),s=n(11681);t.Z=(0,r.qC)((0,r.md)(i.Z),"object"==typeof window&&void 0!==window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():e=>e)(r.MT)(s.Z)},35922:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(67592),i=n(19570);const s=()=>e=>(e({type:r.it}),i.ZP.fetchRewindStatus().then((t=>(e({type:r.Dg,status:t}),t))).catch((t=>{e({type:r.ml,error:t})})))},30701:function(e,t,n){"use strict";n.d(t,{of:function(){return r.of},Li:function(){return r.Li},Au:function(){return i.A}});var r=n(79782),i=n(35922)},79782:function(e,t,n){"use strict";n.d(t,{I6:function(){return a},Li:function(){return c},of:function(){return l}});var r=n(74978),i=n(92819),s=n(67592);const o={isFetchingRewindStatus:!1},a=(0,r.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.Dg:return(0,i.assign)({},e,{status:t.status});case s.Yk:return(0,i.assign)({},e,{status:t.rewindState});default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.it:return(0,i.assign)({},e,{isFetchingRewindStatus:!0});case s.Dg:case s.ml:return(0,i.assign)({},e,{isFetchingRewindStatus:!1});default:return e}}});function c(e){return!!e.jetpack.rewind.requests.isFetchingRewindStatus}function l(e){return(0,i.get)(e.jetpack.rewind,["data","status"],{})}},71943:function(e,t,n){"use strict";n.d(t,{e:function(){return s}});var r=n(67592),i=n(19570);const s=()=>e=>(e({type:r.fe}),i.ZP.fetchScanStatus().then((t=>(e({type:r.N9,status:t}),t))).catch((t=>{e({type:r.vr,error:t})})))},35795:function(e,t,n){"use strict";n.d(t,{C8:function(){return r.C8},gE:function(){return r.gE},eR:function(){return i.e}});var r=n(5606),i=n(71943)},5606:function(e,t,n){"use strict";n.d(t,{I6:function(){return a},gE:function(){return c},C8:function(){return l}});var r=n(74978),i=n(92819),s=n(67592);const o={isFetchingScanStatus:!1},a=(0,r.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.N9:return(0,i.assign)({},e,{status:t.status});case s.M0:return{status:{...e.status,...t.scanState}};default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.fe:return(0,i.assign)({},e,{isFetchingScanStatus:!0});case s.N9:case s.vr:return(0,i.assign)({},e,{isFetchingScanStatus:!1});default:return e}}});function c(e){return!!e.jetpack.scan.requests.isFetchingScanStatus}function l(e){return(0,i.get)(e.jetpack.scan,["data","status"],{})}},80878:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(67592);const i=e=>t=>{t({type:r.Fc,term:e})}},19555:function(e,t,n){"use strict";n.d(t,{He:function(){return r.He},CX:function(){return r.CX},eb:function(){return i.e}});var r=n(7053),i=n(80878)},7053:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},He:function(){return a},CX:function(){return c}});var r=n(92819),i=n(74978),s=n(67592);const o=(0,i.UY)({searchTerm:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return t.type===s.Fc?t.term:e}});function a(e){return e.jetpack.search.searchTerm}function c(e,t){const n=(0,r.find)((0,r.get)(e.jetpack,["modules","items"],{}),["module",t]);if(void 0===n)return!1;const i=(0,r.get)(e.jetpack,["search","searchTerm"],!1);return!i||[n.module,n.name,n.description,n.learn_more_button,n.long_description,n.search_terms,n.additional_search_queries,n.short_description,n.feature?n.feature.toString():""].join(" ").toLowerCase().indexOf(i.toLowerCase())>-1}},39772:function(e,t,n){"use strict";n.d(t,{a6:function(){return l},_1:function(){return u},wv:function(){return p},VP:function(){return d}});var r=n(92819),i=n(65736),s=n(21094),o=n(67592),a=n(93107),c=n(19570);const __=i.__,l=()=>({type:o.Ns}),u=()=>({type:o.TI}),p=()=>e=>(e({type:o.JA}),c.ZP.fetchSettings().then((t=>(e({type:o.dS,settings:t}),t))).catch((t=>{e({type:o.rY,error:t})}))),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n=>{const l={progress:__("Updating settings…","jetpack"),success:__("Updated settings.","jetpack"),error:e=>(0,i.sprintf)(
/* translators: placeholder is an error code or an error message. */
__("Error updating settings. %s","jetpack"),e.message||e.code||e.name||e),...t};"object"==typeof e&&(0,r.some)(["masterbar","jetpack_testimonial","jetpack_portfolio"],(t=>t in e))&&(l.success=__("Updated settings. Refreshing page…","jetpack")),n((0,s.qq)("module-setting-update")),n((0,s.qq)("module-setting-update-success"));const u=["dismiss_dash_app_card","dismiss_empty_stats_card"];return"object"!=typeof e||(0,r.some)(u,(t=>t in e))||n((0,s.iI)("is-info",l.progress,{id:"module-setting-update"})),n({type:o.BX,updatedOptions:e}),c.ZP.updateSettings(e).then((t=>{n({type:o.FL,updatedOptions:h(t,e),success:t}),(0,a.DK)(e),(0,a.Uq)(e),n((0,s.qq)("module-setting-update")),n((0,s.qq)("module-setting-update-success")),"object"!=typeof e||(0,r.some)(u,(t=>t in e))||n((0,s.iI)("is-success",l.success,{id:"module-setting-update-success",duration:2e3}))})).catch((t=>{n({type:o.gY,success:!1,error:t,updatedOptions:e}),n((0,s.qq)("module-setting-update")),n((0,s.iI)("is-error",l.error(t),{id:"module-setting-update"}))}))}};function h(e,t){let n=t;return"regenerate"===(0,r.get)(t,"post_by_email_address")&&(n={post_by_email_address:e.post_by_email_address}),n}},17752:function(e,t,n){"use strict";n.d(t,{vU:function(){return r.vU},GD:function(){return r.GD},g0:function(){return r.g0},$8:function(){return r.$8},Gw:function(){return r.Gw},p0:function(){return r.p0},qg:function(){return r.qg},Cu:function(){return r.Cu},_1:function(){return i._1},wv:function(){return i.wv},a6:function(){return i.a6},VP:function(){return i.VP}});var r=n(36965),i=n(39772)},36965:function(e,t,n){"use strict";n.d(t,{I6:function(){return a},Gw:function(){return c},$8:function(){return l},Cu:function(){return u},p0:function(){return p},qg:function(){return d},GD:function(){return h},vU:function(){return f},g0:function(){return m}});var r=n(74978),i=n(92819),s=n(67592);const o={fetchingSettingsList:!1,settingsSent:{},updatedSettings:{}},a=(0,r.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.R9:return(0,i.assign)({},e,t.initialState.settings);case s.dS:return(0,i.assign)({},t.settings);case s.jH:const n=Object.keys(t.updatedOption)[0];return(0,i.assign)({},e,{[n]:t.updatedOption[n]});case s.FL:return(0,i.assign)({},e,t.updatedOptions);default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.JA:return(0,i.assign)({},e,{fetchingSettingsList:!0});case s.rY:case s.dS:return(0,i.assign)({},e,{fetchingSettingsList:!1});case s.q4:case s.BX:return(0,i.merge)({},e,{settingsSent:(0,i.mapValues)(t.updatedOptions,(()=>!0))});case s.QF:case s.jH:case s.gY:case s.FL:return(0,i.merge)({},e,{settingsSent:(0,i.mapValues)(t.updatedOptions,(()=>!1)),updatedSettings:(0,i.mapValues)(t.updatedOptions,(()=>Boolean(t.success)))});default:return e}},unsavedSettingsFlag:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.Ns:return!0;case s.TI:return!1;default:return e}}});function c(e){return e.jetpack.settings.items}function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(""===n||(0,i.get)(e.jetpack.settings.items,n,!1))return(0,i.get)(e.jetpack.settings.items,t,void 0)}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"object"==typeof t?(0,i.some)((0,i.filter)(e.jetpack.settings.requests.settingsSent,((e,n)=>(0,i.includes)(t,n))),(e=>e)):e.jetpack.settings.requests.settingsSent[t]}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.jetpack.settings.requests.updatedSettings[t]}function d(e,t){return!!(0,i.get)(e.jetpack.settings.items,[t],!1)}function h(e){return(0,i.get)(e.jetpack.settings,"unsavedSettingsFlag",!1)}function f(e){return(0,i.get)(e.jetpack.settings.items,"dismiss_dash_app_card",!1)}function m(e){return(0,i.get)(e.jetpack.settings.items,"dismiss_empty_stats_card",!1)}},76719:function(e,t,n){"use strict";n.d(t,{I6:function(){return s}});var r=n(74978),i=n(67592);const s=(0,r.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===i.QD?t.siteProducts:e},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i.Pp:return{...e,isFetching:!0};case i.QD:case i.hz:return{...e,isFetching:!1};default:return e}}})},86224:function(e,t,n){"use strict";n.d(t,{n:function(){return a},Z:function(){return c}});var r=n(65736),i=n(67592),s=n(19570),o=n(21094);const __=r.__,a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t=>(t({type:i.$F}),s.ZP.fetchVerifySiteGoogleStatus(e).then((e=>{if(e.errors&&e.errors.length>0){const n=Object.keys(e.errors)[0],r=e.errors[n];return t({type:i.b6,error:{code:n,message:r}}),e}return t({type:i.cz,verified:e.verified,token:e.token,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url}),e})).catch((e=>{t({type:i.b6,error:e.response})})))},c=e=>t=>(t({type:i.$d}),s.ZP.verifySiteGoogle(e).then((e=>{if(e.errors&&e.errors.length>0){const n=Object.keys(e.errors)[0],r=e.errors[n];return t({type:i.km,error:{code:n,message:r}}),e}return t({verified:e.verified,isOwner:e.is_owner,searchConsoleUrl:e.google_search_console_url,verificationConsoleUrl:e.google_verification_console_url,type:i.s9}),e.verified&&t((0,o.iI)("is-success",__("Site is verified","jetpack"),{id:"verify-site-google-verified",duration:2e3})),e})).catch((e=>{t({type:i.km,error:e.response})})))},91628:function(e,t,n){"use strict";n.d(t,{_g:function(){return r._g},ou:function(){return r.ou},hr:function(){return r.hr},nZ:function(){return r.nZ},dO:function(){return r.dO},nS:function(){return r.nS},BH:function(){return r.BH},n:function(){return i.n},Zn:function(){return i.Z}});var r=n(82765),i=n(86224)},82765:function(e,t,n){"use strict";n.d(t,{I6:function(){return o},nZ:function(){return a},BH:function(){return c},hr:function(){return l},nS:function(){return u},ou:function(){return p},_g:function(){return d},dO:function(){return h}});var r=n(74978),i=n(92819),s=n(67592);const o=(0,r.UY)({google:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{fetching:!1,verifying:!1,verified:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.$F:return(0,i.assign)({},e,{fetching:!0});case s.b6:return(0,i.assign)({},e,{fetching:!1,error:t.error});case s.cz:return(0,i.assign)({},e,{fetching:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,token:t.token,error:null});case s.$d:return(0,i.assign)({},e,{verifying:!0});case s.s9:return(0,i.assign)({},e,{verifying:!1,verified:t.verified,isOwner:t.isOwner,searchConsoleUrl:t.searchConsoleUrl,verificationConsoleUrl:t.verificationConsoleUrl,error:null});case s.km:return(0,i.assign)({},e,{verifying:!1,verified:!1,error:t.error});default:return e}}});function a(e){return(0,i.get)(e,"jetpack.siteVerify.google.fetching",!1)}function c(e){return(0,i.get)(e,"jetpack.siteVerify.google.verifying",!1)}function l(e){return!a(e)&&"no_token_for_user"!==(0,i.get)(e,"jetpack.siteVerify.google.error.code",null)}function u(e){return(0,i.get)(e,"jetpack.siteVerify.google.verified",!1)}function p(e){return(0,i.get)(e,"jetpack.siteVerify.google.error",null)}function d(e){return(0,i.get)(e,"jetpack.siteVerify.google.searchConsoleUrl",null)}function h(e){return(0,i.get)(e,"jetpack.siteVerify.google.isOwner",!1)}},74424:function(e,t,n){"use strict";n.d(t,{tO:function(){return s},ij:function(){return o},lA:function(){return a},Z_:function(){return c}});var r=n(67592),i=n(19570);const s=()=>e=>(e({type:r.rQ}),i.ZP.fetchSiteData().then((t=>(e({type:r.fH,siteData:t}),t))).catch((t=>{e({type:r.l9,error:t})}))),o=()=>e=>(e({type:r.Vl}),i.ZP.fetchSiteFeatures().then((t=>(e({type:r.VN,siteFeatures:t}),t))).catch((t=>{e({type:r.g9,error:t})}))),a=()=>e=>(e({type:r.Fe}),i.ZP.getPlans().then((t=>(e({type:r.lt,plans:t}),t))).catch((t=>{e({type:r.Dz,error:t})}))),c=()=>e=>(e({type:r.Ab}),i.ZP.fetchSitePurchases().then((t=>(e({type:r.Ep,purchases:t}),t))).catch((t=>{e({type:r.zO,error:t})})))},88872:function(e,t,n){"use strict";n.d(t,{Jz:function(){return r.Jz},$l:function(){return r.$l},p:function(){return r.p},nl:function(){return r.nl},ms:function(){return r.ms},Vc:function(){return r.Vc},UL:function(){return r.UL},qn:function(){return r.qn},VH:function(){return r.VH},b7:function(){return r.b7},b2:function(){return r.b2},Ic:function(){return r.Ic},o$:function(){return r.o$},VL:function(){return r.VL},jQ:function(){return r.jQ},_5:function(){return r._5},GR:function(){return r.GR},lA:function(){return i.lA},tO:function(){return i.tO},ij:function(){return i.ij},Z_:function(){return i.Z_}});var r=n(17881),i=n(74424)},36583:function(e,t,n){"use strict";n.d(t,{s:function(){return s}});var r=n(67592),i=n(19570);const s=()=>e=>(e({type:r.Qm}),i.ZP.fetchPluginsData().then((t=>(e({type:r.XP,pluginsData:t}),t))).catch((t=>{e({type:r.K0,error:t})})))},61744:function(e,t,n){"use strict";n.d(t,{bK:function(){return r.bK},vz:function(){return r.vz},TB:function(){return r.TB},P8:function(){return r.P8},s4:function(){return i.s}});var r=n(40054),i=n(36583)},40054:function(e,t,n){"use strict";n.d(t,{I6:function(){return a},vz:function(){return c},bK:function(){return l},TB:function(){return u},P8:function(){return p}});var r=n(92819),i=n(74978),s=n(67592);const o={isFetchingPluginsData:!1},a=(0,i.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return t.type===s.XP?(0,r.assign)({},t.pluginsData):e},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.Qm:return(0,r.assign)({},e,{isFetchingPluginsData:!0});case s.K0:case s.XP:return(0,r.assign)({},e,{isFetchingPluginsData:!1});default:return e}}});function c(e){return!!e.jetpack.pluginsData.requests.isFetchingPluginsData}function l(e){return e.jetpack.pluginsData.items}function u(e,t){return e.jetpack.pluginsData.items[t]&&e.jetpack.pluginsData.items[t].active}function p(e,t){return!!e.jetpack.pluginsData.items[t]}},17881:function(e,t,n){"use strict";n.d(t,{I6:function(){return l},Vc:function(){return u},_5:function(){return p},GR:function(){return d},UL:function(){return h},VH:function(){return f},ms:function(){return m},$l:function(){return g},qn:function(){return v},nl:function(){return b},p:function(){return y},b2:function(){return k},Jz:function(){return w},b7:function(){return _},Ic:function(){return E},VL:function(){return C},o$:function(){return S},jQ:function(){return j}});var r=n(74978),i=n(92819),s=n(65736),o=n(81200),a=n(67592);const __=s.__,c={isFetchingSiteData:!1},l=(0,r.UY)({data:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.fH:return(0,i.assign)({},e,t.siteData);case a.nD:return(0,i.merge)({},e,{site:{benefits:t.siteBenefits}});case a.ar:return(0,i.merge)({},e,{site:{connectedPlugins:t.connectedPlugins}});case a.VN:return(0,i.merge)({},e,{site:{features:t.siteFeatures}});case a.lt:return(0,i.merge)({},e,{sitePlans:t.plans});case a.Ep:return(0,i.merge)({},e,{sitePurchases:t.purchases});default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case a.rQ:return(0,i.assign)({},e,{isFetchingSiteData:!0});case a.Mg:return(0,i.assign)({},e,{isFetchingSiteBenefits:!0});case a.a8:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!0});case a.Vl:return(0,i.assign)({},e,{isFetchingSiteFeatures:!0});case a.Fe:return(0,i.assign)({},e,{isFetchingSitePlans:!0});case a.Ab:return(0,i.assign)({},e,{isFetchingSitePurchases:!0});case a.l9:case a.fH:return(0,i.assign)({},e,{isFetchingSiteData:!1});case a.rw:case a.nD:return(0,i.assign)({},e,{isFetchingSiteBenefits:!1});case a.TR:case a.ar:return(0,i.assign)({},e,{isFetchingConnectedPlugins:!1,isDoneFetchingConnectedPlugins:!0});case a.g9:case a.VN:return(0,i.assign)({},e,{isFetchingSiteFeatures:!1});case a.Dz:case a.lt:return(0,i.assign)({},e,{isFetchingSitePlans:!1});case a.zO:case a.Ep:return(0,i.assign)({},e,{isFetchingSitePurchases:!1});default:return e}},errors:function(){let e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(r.type===a.l9){switch(r.error.name){case"ApiError":e="reconnect",t=__("There seems to be a problem with your connection to WordPress.com. If the problem persists, try reconnecting.","jetpack");break;case"JsonParseError":e="support",t=__("Jetpack encountered an error and was unable to display the Dashboard. Please try refreshing the page.","jetpack");break;default:e=null,t=__("There seems to be a problem with your website.","jetpack")}return(0,i.assign)({},n,{message:r.error.hasOwnProperty("response")?r.error.response.message:t,action:e,code:r.error.hasOwnProperty("response")?r.error.response.code:"fetch_site_data_fail_other",data:r.error.hasOwnProperty("response")?r.error.response.data:{}})}return n}});function u(e){return[(0,i.get)(e.jetpack.siteData,["errors"],[])]}function p(e){return!!(e.jetpack.siteData.requests.isFetchingSiteData||e.jetpack.siteData.requests.isFetchingSiteFeatures||e.jetpack.siteData.requests.isFetchingSitePlans||e.jetpack.siteData.requests.isFetchingSitePurchases)}function d(e){return!!e.jetpack.siteData.requests.isFetchingSitePurchases}function h(e){return(0,i.get)(e.jetpack.siteData,["data","plan"],{})}function f(e){return(0,i.get)(e.jetpack.siteData,["data","options","videopress_storage_used"],null)}function m(e){return(0,i.get)(e.jetpack.siteData,["data","site","features","available"],{})}function g(e){return(0,i.get)(e.jetpack.siteData,["data","site","features","active"],[])}function v(e){return(0,i.get)(e.jetpack.siteData,["data","sitePurchases"],[])}function b(e){return v(e).filter((e=>"1"===e.active))}function y(e){return b(e).filter((e=>(0,o.yy)(e.product_slug)))}function k(e){return y(e).length>0}function w(e){return(0,i.find)(y(e),(e=>(0,o.MC)(e.product_slug)))}function _(e){return!!w(e)}function E(e){return!!function(e){return(0,i.find)(y(e),(e=>(0,o.oF)(e.product_slug)))}(e)}function C(e){return!!function(e){return(0,i.find)(b(e),(e=>(0,o.DM)(e.product_slug)))}(e)||"is-complete-plan"===(0,o.sc)(h(e).product_slug)}function S(e){return!!function(e){return(0,i.find)(y(e),(e=>(0,o.Cv)(e.product_slug)))}(e)||"is-complete-plan"===(0,o.sc)(h(e).product_slug)}function j(e){return!!function(e){return(0,i.find)(y(e),(e=>(0,o.ZH)(e.product_slug)))}(e)}},64362:function(e,t,n){"use strict";n.d(t,{$:function(){return a},X:function(){return c}});var r=n(65736),i=n(21094),s=n(67592),o=n(19570);const __=r.__,a=()=>e=>(e({type:s.T}),o.ZP.fetchUserTrackingSettings().then((t=>(e({type:s.X0,settings:t}),t))).catch((t=>{e({type:s.YD,error:t})}))),c=e=>t=>{const n={progress:__("Updating privacy settings…","jetpack"),success:__("Updated privacy settings.","jetpack"),error:e=>(0,r.sprintf)(
/* translators: placeholder is an error message. */
__("Error updating privacy settings. %s","jetpack"),e.message||e.code||e.name||e)};return t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-info",n.progress,{id:"tracking-settings-update"})),t({type:s.kK,updatedSettings:e}),o.ZP.updateUserTrackingSettings(e).then((r=>{t({type:s.TB,updatedSettings:e,success:r}),t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-success",n.success,{id:"tracking-settings-update-success",duration:2e3}))})).catch((r=>{t({type:s.rA,updatedSettings:e,success:!1,error:r}),t((0,i.qq)("tracking-settings-update")),t((0,i.qq)("tracking-settings-update-success")),t((0,i.iI)("is-error",n.error(r),{id:"tracking-settings-update"}))}))}},50093:function(e,t,n){"use strict";n.d(t,{I6:function(){return a},AO:function(){return c},ab:function(){return l},Ak:function(){return u}});var r=n(92819),i=n(74978),s=n(67592);const o={fetchingTrackingSettings:!1,updatingTrackingSettings:!1},a=(0,i.UY)({items:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.X0:return(0,r.assign)({},e,t.settings);case s.TB:return(0,r.assign)({},e,t.updatedSettings);default:return e}},requests:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case s.T:return(0,r.assign)({},e,{fetchingTrackingSettings:!0});case s.YD:case s.X0:return(0,r.assign)({},e,{fetchingTrackingSettings:!1});case s.kK:return(0,r.assign)({},e,{updatingTrackingSettings:!0});case s.rA:case s.TB:return(0,r.assign)({},e,{updatingTrackingSettings:!1});default:return e}}});function c(e){return e.jetpack.trackingSettings.items}function l(e){return e.jetpack.trackingSettings.requests.fetchingTrackingSettings}function u(e){return e.jetpack.trackingSettings.requests.updatingTrackingSettings}},37247:function(e,t,n){"use strict";n.d(t,{f:function(){return C}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(69307),u=n(65736),p=n(71415),d=n(11973),h=n(60742),f=n(94069),m=n(68961),g=n(81200),v=n(55735),b=n(50844),y=n(5e4),k=n(77222),w=n(84277),_=n(27006),E=n(15029);const __=u.__,_x=u._x,C=(0,y.u)(class extends c().Component{constructor(){super(...arguments),o()(this,"updateOptions",(e=>{this.props.updateFormStateModuleOption("wordads",e)})),o()(this,"trackConfigureClick",(()=>{d.Z.tracks.recordJetpackClick("view-earnings")})),o()(this,"trackConfigureWidgetClick",(()=>{d.Z.tracks.recordJetpackClick("place_ad_widget")})),o()(this,"handleChange",(e=>()=>this.updateOptions(e)))}renderAdsTxtSection(){const{getOptionValue:e,isUnavailableInOfflineMode:t}=this.props,n=e("wordads_custom_adstxt_enabled","wordads"),r=e("wordads_custom_adstxt","wordads"),i=e("wordads"),s=t("wordads");return c().createElement(_.Z,{hasChild:!0,support:{text:__("Ads.txt (Authorized Digital Sellers) is a mechanism that enables content owners to declare who is authorized to sell their ad inventory. It’s the formal list of advertising partners you support as a publisher.","jetpack"),link:"https://jetpack.com/support/ads/"}},c().createElement(f.Z,{checked:n,disabled:!i||s||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt_enabled"]),onChange:this.handleChange("wordads_custom_adstxt_enabled")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Customize your ads.txt file","jetpack"))),n&&c().createElement(v.C_,null,c().createElement("br",null),c().createElement("p",null,i&&(0,l.createInterpolateElement)(__("Jetpack Ads automatically generates a custom <link1>ads.txt</link1> tailored for your site. If you need to add additional entries for other networks please add them in the space below, one per line. <link2>Check here for more details</link2>.","jetpack"),{link1:c().createElement("a",{href:"/ads.txt",target:"_blank",rel:"noopener noreferrer"}),link2:c().createElement("a",{href:(0,p.Z)("jetpack-how-jetpack-ads-members-can-increase-their-earnings-with-ads-txt"),target:"_blank",rel:"noopener noreferrer"})}),!i&&__("When ads are enabled, Jetpack automatically generates a custom ads.txt tailored for your site.","jetpack")),c().createElement(b.Z,{name:"wordads_custom_adstxt",value:r,disabled:!i||s||this.props.isSavingAnyOption(["wordads","wordads_custom_adstxt"]),onChange:this.props.onOptionChange})))}render(){const e=this.props.getOptionValue("wordads"),t=this.props.isUnavailableInOfflineMode("wordads"),n=this.props.getOptionValue("enable_header_ad","wordads"),r=this.props.getOptionValue("wordads_second_belowpost","wordads"),s=this.props.getOptionValue("wordads_display_front_page","wordads"),o=this.props.getOptionValue("wordads_display_post","wordads"),a=this.props.getOptionValue("wordads_display_page","wordads"),u=this.props.getOptionValue("wordads_display_archive","wordads"),d=this.props.getOptionValue("wordads_ccpa_enabled","wordads"),b=this.props.getOptionValue("wordads_ccpa_privacy_policy_url","wordads"),y=-1!==this.props.siteRawUrl.indexOf("::");return c().createElement(w.Z,i()({},this.props,{header:_x("Ads","Ads header","jetpack"),feature:g.N8,saveDisabled:this.props.isSavingAnyOption(["wordads_custom_adstxt"])}),c().createElement(_.Z,{disableInOfflineMode:!0,hasChild:!0,module:{module:"wordads"},support:{text:__("Displays high-quality ads on your site that allow you to earn income.","jetpack"),link:(0,p.Z)("jetpack-support-ads")}},c().createElement("p",null,__("Show ads on the first article on your home page or at the end of every page and post. Place additional ads at the top of your site and to any widget area to increase your earnings.","jetpack"),c().createElement("br",null),c().createElement("small",{className:"jp-form-setting-explanation"},(0,l.createInterpolateElement)(__("By activating ads, you agree to the Automattic Ads <link>Terms of Service</link>.","jetpack"),{link:c().createElement("a",{href:(0,p.Z)("wpcom-automattic-ads-tos"),target:"_blank",rel:"noopener noreferrer",onClick:this.trackConfigureWidgetClick})}))),c().createElement(k.T,{slug:"wordads",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("wordads"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable ads and display an ad below each post","jetpack"))),c().createElement(v.C_,null,c().createElement(v.Gj,null,__("Display ads below posts on","jetpack")),c().createElement(f.Z,{checked:s,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_front_page"]),onChange:this.handleChange("wordads_display_front_page")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Front page","jetpack"))),c().createElement(f.Z,{checked:o,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_post"]),onChange:this.handleChange("wordads_display_post")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Posts","jetpack"))),c().createElement(f.Z,{checked:a,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_page"]),onChange:this.handleChange("wordads_display_page")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Pages","jetpack"))),c().createElement(f.Z,{checked:u,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_display_archive"]),onChange:this.handleChange("wordads_display_archive")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Archives","jetpack")))),c().createElement(v.C_,null,c().createElement(v.Gj,null,__("Additional ad placements","jetpack")),c().createElement(f.Z,{checked:n,disabled:!e||t||this.props.isSavingAnyOption(["wordads","enable_header_ad"]),onChange:this.handleChange("enable_header_ad")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Top of each page","jetpack"))),c().createElement(f.Z,{checked:r,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_second_belowpost"]),onChange:this.handleChange("wordads_second_belowpost")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Second ad below post","jetpack"))),c().createElement("small",{className:"jp-form-setting-explanation"},e&&(0,l.createInterpolateElement)(__("You can place additional ads using the Ad widget. <link>Try it out!</link>","jetpack"),{link:c().createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})})))),c().createElement(_.Z,{hasChild:!0,support:{text:__("Enables a targeted advertising opt-out link for California consumers, as required by the California Consumer Privacy Act (CCPA).","jetpack"),link:this.props.isAtomicSite?(0,p.Z)("wpcom-support-ccpa"):(0,p.Z)("jetpack-support-ads")}},c().createElement(f.Z,{checked:d,disabled:!e||t||this.props.isSavingAnyOption(["wordads","wordads_ccpa_enabled"]),onChange:this.handleChange("wordads_ccpa_enabled")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enable targeted advertising to California site visitors (CCPA)","jetpack"))),d&&c().createElement(v.C_,null,c().createElement("p",null,c().createElement("small",{className:"jp-form-setting-explanation"},(0,l.createInterpolateElement)(__("For more information about the California Consumer Privacy Act (CCPA) <br/>and how it pertains to your site, please consult our <link>CCPA guide for site owners</link>.","jetpack"),{br:c().createElement("br",null),link:c().createElement(m.Z,{icon:!0,href:this.props.isAtomicSite?(0,p.Z)("wpcom-support-ccpa"):(0,p.Z)("jetpack-support-ads"),target:"_blank",rel:"noopener noreferrer"})}))),c().createElement("p",null,c().createElement(v.Gj,null,__("Do Not Sell Link","jetpack")),(0,l.createInterpolateElement)(__('CCPA requires that you place a "Do Not Sell My Personal Information" link on every page of your site where targeted advertising will appear. <br/>You can use the <widgetLink>Do Not Sell Link (CCPA) Widget</widgetLink>, or the <code>[ccpa-do-not-sell-link]</code> shortcode to automatically place this link on your site. Note: the link will always display to logged in administrators regardless of geolocation.',"jetpack"),{br:c().createElement("br",null),code:c().createElement("code",null),widgetLink:c().createElement("a",{className:"jp-module-settings__external-link",href:"customize.php?autofocus[panel]=widgets"})}),c().createElement("span",{className:"jp-form-setting-explanation"},__("Failure to add this link will result in non-compliance with CCPA.","jetpack")))),d&&c().createElement(v.C_,null,c().createElement(v.Gj,null,__("Privacy Policy URL","jetpack")),c().createElement(E.Z,{name:"wordads_ccpa_privacy_policy_url",placeholder:"https://",value:b,disabled:!e||t||!d||this.props.isSavingAnyOption(["wordads","wordads_ccpa_privacy_policy_url"]),onChange:this.props.onOptionChange}),c().createElement("span",{className:"jp-form-setting-explanation"},__("Adds a link to your privacy policy to the bottom of the CCPA notice popup (optional).","jetpack")))),!y&&this.renderAdsTxtSection(),!t&&e&&c().createElement(h.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},__("View your earnings","jetpack")))}})},92897:function(e,t,n){"use strict";n.d(t,{W:function(){return g}});var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(69307),c=n(65736),l=n(71415),u=n(11973),p=n(60742),d=n(81200),h=n(5e4),f=n(84277),m=n(27006);const __=c.__,_x=c._x,g=(0,h.u)(class extends s.Component{trackConfigureClick(){u.Z.tracks.recordJetpackClick("configure-ga")}render(){return o().createElement(f.Z,i()({},this.props,{header:_x("Google Analytics","Settings header","jetpack"),feature:d.r2,hideButton:!0}),o().createElement(m.Z,{disableInOfflineMode:!0,module:{module:"google-analytics"},support:{text:__("Integrates your WordPress site with Google Analytics, a platform that offers insights into your traffic, visitors, and conversions.","jetpack"),link:(0,l.Z)("jetpack-support-google-analytics")}},(0,a.createInterpolateElement)(__("Google Analytics is a free service that complements our <a>built-in stats</a> with different insights into your traffic. WordPress.com stats and Google Analytics use different methods to identify and track activity on your site, so they will normally show slightly different totals for your visits, views, etc.","jetpack"),{a:o().createElement("a",{href:(0,l.Z)("calypso-stats-day",{site:this.props.siteRawUrl})})})),!this.props.isUnavailableInOfflineMode("google-analytics")&&o().createElement(p.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},__("Configure your Google Analytics settings","jetpack")))}})},97640:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(71415),d=n(60742),h=n(93107),f=n(17752),m=n(41147),g=n(19555),v=n(27219),b=n(98692),y=n(92897),k=n(37247),w=n(3625),_=n(38571),E=n(39986),C=n(11031),S=n(95908),j=n(66552);const __=u.__;class M extends c().Component{render(){const e={settings:this.props.settings,siteRawUrl:this.props.siteRawUrl,getModule:this.props.module,isSiteConnected:this.props.isSiteConnected,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,getModuleOverride:this.props.getModuleOverride,hasConnectedOwner:this.props.hasConnectedOwner},t=this.props.isModuleFound("seo-tools"),n=this.props.isModuleFound("wordads"),r=this.props.isModuleFound("stats"),s=this.props.isModuleFound("shortlinks"),o=this.props.isModuleFound("related-posts"),a=this.props.isModuleFound("verification-tools"),l=this.props.isModuleFound("sitemaps"),u=this.props.isModuleFound("google-analytics");return(this.props.searchTerm||this.props.active)&&(t||n||r||s||o||a||l||u)?c().createElement("div",null,c().createElement(v.Z,null),c().createElement(d.Z,{title:this.props.searchTerm?__("Traffic","jetpack"):__("Maximize your site’s visibility in search engines and view traffic stats in real time.","jetpack"),className:"jp-settings-description"}),n&&c().createElement(k.f,i()({},e,{isAtomicSite:this.props.isAtomicSite,configureUrl:(0,p.Z)("calypso-stats-ads-day",{site:this.props.siteRawUrl})})),o&&c().createElement(E.Z,i()({},e,{configureUrl:this.props.siteAdminUrl+"customize.php?autofocus[section]=jetpack_relatedposts&return="+encodeURIComponent(this.props.siteAdminUrl+"admin.php?page=jetpack#/traffic")+"&url="+encodeURIComponent(this.props.lastPostUrl)})),t&&c().createElement(b.ZP,i()({},e,{configureUrl:(0,p.Z)("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"seo"})})),u&&c().createElement(y.W,i()({},e,{configureUrl:(0,p.Z)("calypso-marketing-traffic",{site:this.props.siteRawUrl,anchor:"analytics"})})),r&&c().createElement(w.V,e),s&&c().createElement(_.Z,e),l&&c().createElement(S.Z,e),a&&c().createElement(C.W,e)):null}}o()(M,"displayName","TrafficSettings"),t.Z=(0,l.$j)((e=>({module:t=>(0,h.rT)(e,t),settings:(0,f.Gw)(e),isOfflineMode:(0,m.Ex)(e),isUnavailableInOfflineMode:t=>(0,m.t_)(e,t),isModuleFound:t=>(0,g.CX)(e,t),isSiteConnected:(0,m.q7)(e),lastPostUrl:(0,j.Z2)(e),getModuleOverride:t=>(0,h.Qy)(e,t),isAtomicSite:(0,j.Ug)(e),hasConnectedOwner:(0,m.it)(e)})))(M)},39986:function(e,t,n){"use strict";n.d(t,{Z:function(){return w}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(69307),u=n(65736),p=n(71415),d=n(11973),h=n(60742),f=n(94069),m=n(55735),g=n(77222),v=n(5e4),b=n(84277),y=n(27006);const __=u.__,_x=u._x;class k extends c().Component{constructor(){super(...arguments),o()(this,"state",{show_headline:this.props.getOptionValue("show_headline","related-posts"),show_thumbnails:this.props.getOptionValue("show_thumbnails","related-posts")}),o()(this,"updateOptions",(e=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption("related-posts",e))})),o()(this,"handleShowHeadlineToggleChange",(()=>{this.updateOptions("show_headline")})),o()(this,"handleShowThumbnailsToggleChange",(()=>{this.updateOptions("show_thumbnails")})),o()(this,"trackConfigureClick",(()=>{d.Z.tracks.recordJetpackClick("configure-related-posts")}))}render(){const e=this.props.getOptionValue("related-posts"),t=this.props.isUnavailableInOfflineMode("related-posts");return c().createElement(b.Z,i()({},this.props,{hideButton:!0,module:"related-posts"}),c().createElement(y.Z,{hasChild:!0,disableInOfflineMode:!0,module:this.props.getModule("related-posts"),support:{text:__("The feature helps visitors find more of your content by displaying related posts at the bottom of each post.","jetpack"),link:(0,p.Z)("jetpack-support-related-posts")}},c().createElement("p",null,(0,l.createInterpolateElement)(__("Keep your visitors engaged with related content at the bottom of each post. These settings won’t apply to <a>related posts added using the block editor</a>.","jetpack"),{a:c().createElement("a",{href:(0,p.Z)("jetpack-support-jetpack-blocks-related-posts-block"),target:"_blank",rel:"noopener noreferrer"})})),c().createElement(g.T,{slug:"related-posts",disabled:t,activated:e,toggling:this.props.isSavingAnyOption("related-posts"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Show related content after posts","jetpack"))),c().createElement(m.C_,null,c().createElement(f.Z,{checked:this.state.show_headline,disabled:!e||t||this.props.isSavingAnyOption(["related-posts","show_headline"]),onChange:this.handleShowHeadlineToggleChange},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Highlight related content with a heading","jetpack"))),c().createElement(f.Z,{checked:this.state.show_thumbnails,disabled:!e||t||this.props.isSavingAnyOption(["related-posts","show_thumbnails"]),onChange:this.handleShowThumbnailsToggleChange},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Show a thumbnail image where available","jetpack"))),e&&c().createElement("div",null,c().createElement(m.lX,{className:"jp-form-label-wide"},_x("Preview","A header for a preview area in the configuration screen.","jetpack")),c().createElement(h.Z,{className:"jp-related-posts-preview"},this.state.show_headline&&c().createElement("div",{className:"jp-related-posts-preview__title"},__("Related","jetpack")),[{url:"cat-blog.png",text:__("Big iPhone/iPad Update Now Available","jetpack"),context:_x('In "Mobile"',"It refers to the category where a post was found. Used in an example preview.","jetpack")},{url:"devices.jpg",text:__("The WordPress for Android App Gets a Big Facelift","jetpack"),context:_x('In "Mobile"',"It refers to the category where a post was found. Used in an example preview.","jetpack")},{url:"mobile-wedding.jpg",text:__("Upgrade Focus: VideoPress For Weddings","jetpack"),context:_x('In "Upgrade"',"It refers to the category where a post was found. Used in an example preview.","jetpack")}].map(((e,t)=>c().createElement("div",{key:`preview_${t}`,className:"jp-related-posts-preview__item"},this.state.show_thumbnails&&c().createElement("img",{src:`https://jetpackme.files.wordpress.com/2019/03/${e.url}`,alt:e.text}),c().createElement("h4",{className:"jp-related-posts-preview__post-title"},c().createElement("a",{href:"#/traffic"},e.text)),c().createElement("p",{className:"jp-related-posts-preview__post-context"},e.context)))))))),!this.props.isUnavailableInOfflineMode("related-posts")&&e&&c().createElement(h.Z,{compact:!0,className:"jp-settings-card__configure-link",onClick:this.trackConfigureClick,href:this.props.configureUrl},__("Configure related posts in the Customizer","jetpack")))}}const w=(0,v.u)(k)},98692:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(80505),d=n(52489),h=n(79465),f=n(62470),m=n(89105),g=n.n(m),v=n(71415),b=n(5e4),y=n(84277),k=n(27006),w=n(77222),_=n(55735),E=n(78919),C=n(47349),S=n(88001),j=n(61744),M=n(9913);const __=u.__,_x=u._x,_n=u._n,x=[{name:"Yoast SEO",slug:"wordpress-seo/wp-seo.php"},{name:"Yoast SEO Premium",slug:"wordpress-seo-premium/wp-seo-premium.php"},{name:"All In One SEO Pack",slug:"all-in-one-seo-pack/all_in_one_seo_pack.php"},{name:"All in One SEO Pack Pro",slug:"all-in-one-seo-pack-pro/all_in_one_seo_pack.php"}],N=(0,b.u)(class extends a.Component{constructor(){super(...arguments),o()(this,"constants",{frontPageMetaMaxLength:300,frontPageMetaSuggestedLength:159,moduleOptionsArray:["advanced_seo_front_page_description","advanced_seo_title_formats"],siteIconPreviewSize:512}),o()(this,"SocialPreviewGoogle",(e=>c().createElement(p.Z,{title:e.title,url:e.url,description:e.frontPageMetaDescription}))),o()(this,"SocialPreviewFacebook",(e=>c().createElement(d.Z,{title:e.title,url:e.url,type:"website",description:e.frontPageMetaDescription,image:e.image}))),o()(this,"SocialPreviewTwitter",(e=>c().createElement(h.Z,{title:e.title,url:e.url,type:"summary",description:e.frontPageMetaDescription,image:e.image}))),o()(this,"updateCustomSeoTitleInputState",(e=>{this.props.updateFormStateOptionValue("advanced_seo_title_formats",e)})),o()(this,"saveButton",(e=>{const t=this.props.isSavingAnyOption(this.constants.moduleOptionsArray);return c().createElement(M.Z,{primary:!0,compact:!0,type:"submit",disabled:t||!e.isDirty()},t?_x("Saving…","Button caption","jetpack"):_x("Save settings","Button caption","jetpack",0))}))}render(){const e=this.props.isOfflineMode,t=this.props.getModule("seo-tools"),n=this.props.getOptionValue(t.module),r=this.props.getOptionValue("advanced_seo_title_formats"),s=this.props.getOptionValue("advanced_seo_front_page_description"),o={title:this.props.siteData.name||"",tagline:this.props.siteData.description||"",url:this.props.siteData.URL||"",frontPageMetaDescription:s||(this.props.siteData.description||""),image:this.props.siteData.icon?.img?`${this.props.siteData.icon.img}?s=${this.constants.siteIconPreviewSize}`:""},a=x.reduce(((e,t)=>((0,j.TB)(this.props.state,t.slug)&&e.push(t),e)),[]),l=a.length>0,p=g()({"jp-seo-front-page-description-count":!0,"jp-seo-front-page-description-count-max":s.length>=this.constants.frontPageMetaMaxLength,"jp-seo-front-page-description-count-warn":s.length>this.constants.frontPageMetaSuggestedLength&&s.length<this.constants.frontPageMetaMaxLength});return c().createElement(y.Z,i()({},this.props,{header:_x("Search engine optimization","Settings header","jetpack"),feature:"seo-tools-jetpack",module:t.module,saveDisabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray),hideButton:l}),c().createElement(k.Z,{disableInOfflineMode:!0,module:{module:"seo-tools"},support:{text:__("Allows you to optimize your site and its content for better results in search engines.","jetpack"),link:(0,v.Z)("jetpack-support-seo-tools")}},l&&c().createElement(S.Z,{showDismiss:!1},(0,u.sprintf)(
/* translators: %s is the name of conflicting SEO plugin */
__("Your SEO settings are managed by the following plugin: %s","jetpack"),a[0].name)),c().createElement("p",null,__("Take control of the way search engines represent your site. With Jetpack’s SEO tools you can preview how your content will look on popular search engines and change items like your site name and tagline in seconds.","jetpack")),c().createElement(w.T,{slug:"seo-tools",activated:n,toggling:this.props.isSavingAnyOption(t.module),disabled:this.props.isSavingAnyOption(this.constants.moduleOptionsArray)||l,toggleModule:this.props.toggleModuleNow},__("Customize your SEO settings","jetpack"))),n&&!e&&!(0,j.vz)(this.props.state)&&!l&&c().createElement("div",null,c().createElement(E.Z,{header:__("Expand to customize the page title structures of your site.","jetpack"),clickableHeader:!0,className:"jp-seo-custom-titles-card"},c().createElement(k.Z,null,c().createElement("p",null,__("You can set the structure of page titles for different sections of your site. Doing this will change the way your site title is displayed in search engines, social media sites, and browser tabs.","jetpack")),c().createElement(_.C_,null,c().createElement(C.ZP,{customSeoTitles:r,updateCustomSeoTitleInputState:this.updateCustomSeoTitleInputState,siteData:o})),c().createElement("div",{className:"jp-seo-custom-titles-save-button"},this.saveButton(this.props)))),c().createElement(E.Z,{header:__("Expand to edit your front page meta description.","jetpack"),clickableHeader:!0,className:"jp-seo-front-page-description-card"},c().createElement(k.Z,null,c().createElement("p",{style:{clear:"both"}},__("Craft a description of your Website: up to 160 characters that will be used in search engine results for your front page, and when your website is shared on social media sites.","jetpack")),c().createElement(_.lX,{htmlFor:"jp-seo-front-page-description"},c().createElement("span",{className:"jp-form-label-wide"},__("Front Page Meta Description","jetpack"))),c().createElement("div",{className:"jp-seo-front-page-description-container"},c().createElement(_.B1,{name:"advanced_seo_front_page_description",id:"jp-seo-front-page-description",className:"jp-form-textarea-wide",maxLength:this.constants.frontPageMetaMaxLength,value:s,onChange:this.props.onOptionChange}),c().createElement("div",{className:p},(0,u.sprintf)(
/* translators: placeholder is number of characters */
_n("%d character","%d characters",s.length,"jetpack"),s.length),s.length>=this.constants.frontPageMetaMaxLength&&" - "+__("Maximum characters reached.","jetpack"))),c().createElement("div",{className:"jp-seo-front-page-description-save-button"},this.saveButton(this.props)))),c().createElement(E.Z,{header:__("Expand to preview how the SEO settings will look for your homepage on Google, Facebook, and Twitter.","jetpack"),clickableHeader:!0,className:"jp-seo-social-previews"},c().createElement("div",{className:"jp-seo-social-previews-container"},c().createElement(f.Z,{icon:"google",size:24}),c().createElement("span",{className:"jp-seo-social-previews-label"},__("Google search","jetpack"))),this.SocialPreviewGoogle(o),c().createElement("hr",null),c().createElement("div",{className:"jp-seo-social-previews-container"},c().createElement(f.Z,{icon:"facebook",size:24}),c().createElement("span",{className:"jp-seo-social-previews-label"},__("Facebook","jetpack"))),this.SocialPreviewFacebook(o),c().createElement("hr",null),c().createElement("div",{className:"jp-seo-social-previews-container"},c().createElement(f.Z,{icon:"twitter-alt",size:24}),c().createElement("span",{className:"jp-seo-social-previews-label"},__("Twitter","jetpack"))),this.SocialPreviewTwitter(o))))}});t.ZP=(0,l.$j)((e=>({siteData:e.jetpack.siteData.data,state:e})))(N)},47349:function(e,t,n){"use strict";var r=n(99196),i=n.n(r),s=n(65736),o=n(15029),a=n(55735),c=n(9913);const __=s.__,l={pageTypes:[{name:"front_page",label:__("Front Page","jetpack")},{name:"posts",label:__("Posts","jetpack")},{name:"pages",label:__("Pages","jetpack")},{name:"groups",label:__("Tags","jetpack")},{name:"archives",label:__("Archives","jetpack")}],insertableTokens:{site_name:__("Site Title","jetpack"),tagline:__("Tagline","jetpack"),post_title:__("Post Title","jetpack"),page_title:__("Page Title","jetpack"),group_title:__("Tag or Category Name","jetpack"),date:__("Date","jetpack"),archive_title:__("Archive Title","jetpack")},tokensAvailablePerPageType:{front_page:["site_name","tagline"],posts:["site_name","tagline","post_title"],pages:["site_name","tagline","page_title"],groups:["site_name","tagline","group_title"],archives:["site_name","tagline","date","archive_title"]}},u=e=>{let{pageType:t,customSeoTitleInputRef:n,handleCustomSeoTitleInput:s,token:o}=e;const a=(0,r.useCallback)((()=>{const e=n.current;e.focus();const r=`[${o}]`,i=e.refs.textField.selectionStart,a=e.props.value.substring(0,i),c=e.props.value.substring(i,e.props.value.length);s(t,a+r+c)}),[t,n,s,o]);return i().createElement(c.Z,{className:"jp-seo-custom-titles-input-button",compact:!0,onClick:a},l.insertableTokens[o])},p=e=>{let{pageType:t,customSeoTitleInputRef:n,handleCustomSeoTitleInput:c,value:p,siteData:d}=e;return i().createElement("div",{className:`jp-seo-custom-titles-input-container-${t.name}`,key:t.name},i().createElement("div",{className:"jp-seo-custom-titles-input-controls"},i().createElement(a.lX,{className:"jp-seo-custom-titles-input-label",htmlFor:`jp-seo-custom-titles-input-${t.name}`},i().createElement("span",{className:"jp-form-label"},t.label)),i().createElement("div",null,((e,t,n)=>l.tokensAvailablePerPageType[e.name].map((r=>"archives"===e.name&&"date"===r?null:i().createElement(u,{pageType:e,customSeoTitleInputRef:t,handleCustomSeoTitleInput:n,token:r}))))(t,n,c))),i().createElement(o.Z,{id:`jp-seo-custom-titles-input-${t.name}`,className:"jp-seo-custom-titles-input",value:p,onChange:(0,r.useCallback)((e=>c(t,e.target.value)),[c,t]),ref:n}),i().createElement("div",{className:"jp-seo-custom-titles-input-preview"},((e,t,n)=>(l.tokensAvailablePerPageType[e.name].forEach((e=>{switch(e){case"site_name":t=t.replace(/\[site_name\]/g,n.title);break;case"tagline":t=t.replace(/\[tagline\]/g,n.tagline);break;case"post_title":t=t.replace(/\[post_title\]/g,__("Example Title","jetpack"));break;case"page_title":t=t.replace(/\[page_title\]/g,__("Example Title","jetpack"));break;case"group_title":t=t.replace(/\[group_title\]/g,__("Tag","jetpack"));break;case"date":case"archive_title":t=t.replace(/\[archive_title\]|\[date\]/g,__("Example Archive Title/Date","jetpack"))}})),(0,s.sprintf)(
/* translators: %s is the preview text for a custom SEO input */
__("Preview: %s","jetpack"),t)))(t,p,d)))};t.ZP=e=>{const[t]=(0,r.useState)({front_page:i().createRef(),posts:i().createRef(),pages:i().createRef(),groups:i().createRef(),archives:i().createRef()}),n=l.pageTypes.reduce(((t,n)=>{var r;return t[n.name]=(r=e.customSeoTitles[n.name],Array.isArray(r)?r.reduce(((e,t)=>e+("token"===t.type?`[${t.value}]`:t.value)),""):""),t}),{}),s=e.updateCustomSeoTitleInputState,o=(0,r.useCallback)(((e,t)=>{n[e.name]=t;const r=Object.keys(n).reduce(((e,t)=>(e[t]=((e,t)=>e.split(/(\[(?:site_name|tagline|post_title|page_title|group_title|date|archive_title)\])/).filter((e=>{if(e)return e})).map((e=>{let n=null;return Object.keys(l.insertableTokens).map((t=>{e===`[${t}]`&&(n=t)})),n&&l.tokensAvailablePerPageType[t].includes(n)?{type:"token",value:n}:{type:"string",value:e}})))(n[t],t),e)),{});s(r)}),[n,s]);return i().createElement("div",{className:"jp-seo-custom-titles"},l.pageTypes.map((r=>i().createElement(p,{pageType:r,value:n[r.name],handleCustomSeoTitleInput:o,customSeoTitleInputRef:t[r.name],siteData:e.siteData}))))}},38571:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(65736),l=n(71415),u=n(5e4),p=n(93107),d=n(84277),h=n(27006),f=n(77222);const __=c.__,_x=c._x;class m extends s.Component{render(){const{isSiteConnected:e}=this.props;return o().createElement(d.Z,i()({},this.props,{header:_x("WP.me Shortlinks","Settings header","jetpack"),module:"shortlinks",hideButton:!0}),o().createElement(h.Z,{module:{module:"shortlinks"},support:{text:this.props.shortlinksModule.description,link:(0,l.Z)("jetpack-support-shortlinks")},disableInOfflineMode:!0},o().createElement(f.T,{slug:"shortlinks",disabled:!e,activated:this.props.shortlinksActive,toggling:this.props.isSavingAnyOption("shortlinks"),toggleModule:this.props.toggleModuleNow},__("Generate shortened URLs for simpler sharing.","jetpack"))))}}t.Z=(0,u.u)((0,a.$j)(((e,t)=>({shortlinksActive:t.getOptionValue("shortlinks"),shortlinksModule:(0,p.rT)(e,"shortlinks")})))(m))},3625:function(e,t,n){"use strict";n.d(t,{V:function(){return M}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(92819),u=n(89105),p=n.n(u),d=n(69307),h=n(65736),f=n(71415),m=n(11973),g=n(9913),v=n(60742),b=n(94069),y=n(78919),k=n(98486),w=n(55735),_=n(5e4),E=n(27006),C=n(84277),S=n(53263);const __=h.__,_x=h._x;class j extends c().Component{constructor(e){super(e),o()(this,"updateOptions",((e,t)=>{let n=this.props.getOptionValue(t,"stats"),r=!1;this.state[`${t}_${e}`]?(0,l.includes)(n,e)&&(n=(0,l.filter)(n,(t=>t!==e))):(0,l.includes)(n,e)||(n.push(e),r=!0),this.setState({[`${t}_${e}`]:!this.state[`${t}_${e}`]},(()=>{this.props.updateOptions({[t]:n})})),m.Z.tracks.recordEvent("jetpack_wpa_settings_toggle",{module:"stats",setting:t,role:e,toggled:r?"on":"off"})})),o()(this,"activateStats",(()=>{this.props.updateOptions({stats:!0})})),o()(this,"trackOpenCard",(()=>{m.Z.tracks.recordJetpackClick({target:"foldable-settings-open",feature:"stats"})})),o()(this,"handleRoleToggleChange",((e,t)=>()=>this.updateOptions(e,t)));const t=e.getOptionValue("count_roles","stats"),n=e.getOptionValue("roles","stats");this.state={count_roles:t,roles:n,count_roles_administrator:(0,l.includes)(t,"administrator",!1),count_roles_editor:(0,l.includes)(t,"editor",!1),count_roles_author:(0,l.includes)(t,"author",!1),count_roles_contributor:(0,l.includes)(t,"contributor",!1),count_roles_subscriber:(0,l.includes)(t,"subscriber",!1),roles_administrator:!0,roles_editor:(0,l.includes)(n,"editor",!1),roles_author:(0,l.includes)(n,"author",!1),roles_contributor:(0,l.includes)(n,"contributor",!1),roles_subscriber:(0,l.includes)(n,"subscriber",!1)}}handleStatsOptionToggle(e){return()=>this.props.updateFormStateModuleOption("stats",e)}render(){const e=this.props.getModule("stats"),t=this.props.getOptionValue("stats"),n=this.props.isUnavailableInOfflineMode("stats"),r=this.props.getSiteRoles();return"inactive"===this.props.getModuleOverride("stats")?c().createElement(S.Z,{moduleName:e.name}):t?c().createElement(C.Z,i()({},this.props,{header:_x("Site stats","Settings header","jetpack"),hideButton:!0,module:"site-stats"}),c().createElement(y.Z,{onOpen:this.trackOpenCard,header:__("Expand to update settings for how visits are counted and manage who can view this information.","jetpack"),clickableHeader:!0,className:p()("jp-foldable-settings-standalone",{"jp-foldable-settings-disable":n})},c().createElement(E.Z,{disableInOfflineMode:!0,module:e,support:{text:__("Displays information on your site activity, including visitors and popular posts or pages.","jetpack"),link:(0,f.Z)("jetpack-support-wordpress-com-stats")}},c().createElement(w.C_,null,c().createElement(b.Z,{checked:!!this.props.getOptionValue("admin_bar"),disabled:!t||n,toggling:this.props.isSavingAnyOption(["stats","admin_bar"]),onChange:this.handleStatsOptionToggle("admin_bar")},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Include a small chart in your admin bar with a 48-hour traffic snapshot","jetpack")))),c().createElement(w.C_,null,c().createElement(w.Gj,null,__("Count logged in page views from","jetpack")),Object.keys(r).map((e=>c().createElement(b.Z,{checked:this.state[`count_roles_${e}`],disabled:!t||n||this.props.isSavingAnyOption(["stats","count_roles"]),onChange:this.handleRoleToggleChange(e,"count_roles"),key:`count_roles-${e}`},c().createElement("span",{className:"jp-form-toggle-explanation"},r[e].name))))),c().createElement(w.C_,null,c().createElement(w.Gj,null,__("Allow stats reports to be viewed by","jetpack")),c().createElement(b.Z,{checked:!0,disabled:!0},c().createElement("span",{className:"jp-form-toggle-explanation"},r.administrator.name)),Object.keys(r).map((e=>"administrator"!==e&&c().createElement(b.Z,{checked:this.state[`roles_${e}`],disabled:!t||n||this.props.isSavingAnyOption(["stats","roles"]),onChange:this.handleRoleToggleChange(e,"roles"),key:`roles-${e}`},c().createElement("span",{className:"jp-form-toggle-explanation"},r[e].name)))))))):c().createElement(v.Z,{className:"jp-at-a-glance__stats-card "+(this.props.isOfflineMode?"is-inactive":"")},c().createElement("div",{className:"jp-at-a-glance__stats-inactive"},c().createElement("div",{className:"jp-at-a-glance__stats-inactive-icon"},c().createElement("img",{src:k.hp+"stats.svg",width:"60",height:"60",alt:__("Jetpack Stats Icon","jetpack"),className:"jp-at-a-glance__stats-icon"})),c().createElement("div",{className:"jp-at-a-glance__stats-inactive-text"},this.props.isOfflineMode?__("Unavailable in Offline Mode","jetpack"):(0,d.createInterpolateElement)(__("<a>Activate Site Stats</a> to see detailed stats, likes, followers, subscribers, and more! <a1>Learn More</a1>","jetpack"),{a:c().createElement("a",{href:"javascript:void(0)",onClick:this.activateStats}),a1:c().createElement("a",{href:(0,f.Z)("jetpack-support-wordpress-com-stats"),target:"_blank",rel:"noopener noreferrer"})})),!this.props.isOfflineMode&&c().createElement("div",{className:"jp-at-a-glance__stats-inactive-button"},c().createElement(g.Z,{onClick:this.activateStats,primary:!0},__("Activate Site Stats","jetpack")))))}}const M=(0,_.u)(j)},95908:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(89105),u=n.n(l),p=n(2620),d=n(92819),h=n(69307),f=n(65736),m=n(71415),g=n(11973),v=n(68961),b=n(55735),y=n(5e4),k=n(77222),w=n(84277),_=n(27006),E=n(18582),C=n(66552);const __=f.__,_x=f._x;class S extends c().Component{constructor(){super(...arguments),o()(this,"renderSitemapRow",((e,t)=>c().createElement("span",{className:"jp-sitemap-row"},c().createElement(E.Z,{value:e,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack")}),c().createElement(v.Z,{onClick:()=>g.Z.tracks.recordJetpackClick(t),icon:!0,target:"_blank",rel:"noopener noreferrer",href:e}))))}render(){const e=this.props.getModule("sitemaps"),t=(0,d.get)(e,["extra","sitemap_url"],""),n=(0,d.get)(e,["extra","news_sitemap_url"],""),r=u()({"jp-form-setting-explanation":!0,"is-warning":!this.props.isSiteVisibleToSearchEngines&&this.props.getOptionValue("sitemaps")});return c().createElement(w.Z,i()({},this.props,{module:"sitemaps",hideButton:!0}),c().createElement(_.Z,{hasChild:!0,module:{module:"sitemaps"},support:{link:(0,m.Z)("jetpack-support-sitemaps")}},c().createElement("p",null,__("Sitemaps are files that search engines like Google or Bing use to index your website. They can help improve your ranking in search results. When you enable this feature, Jetpack will create sitemaps for you and update them automatically when the content on your site changes.","jetpack")),c().createElement(k.T,{slug:"sitemaps",compact:!0,activated:this.props.getOptionValue("sitemaps"),toggling:this.props.isSavingAnyOption("sitemaps"),toggleModule:this.props.toggleModuleNow},__("Generate XML sitemaps","jetpack")),this.props.isSiteVisibleToSearchEngines?this.props.getOptionValue("sitemaps")&&c().createElement(b.C_,null,c().createElement("p",{className:"jp-form-setting-explanation"},__("Good news: Jetpack is sending your sitemap automatically to all major search engines for indexing.","jetpack"),this.renderSitemapRow(t,"sitemap-url-link"),this.renderSitemapRow(n,"sitemap-news-url-link"))):c().createElement(b.C_,null,c().createElement("p",{className:r},(0,h.createInterpolateElement)(__('Search engines can’t access your site at the moment. If you’d like to make your site accessible, check your <a>Reading settings</a> and switch "Search Engine Visibility" on.',"jetpack"),{a:c().createElement("a",{href:this.props.siteAdminUrl+"options-reading.php"})})))))}}t.Z=(0,p.$j)((e=>({isSiteVisibleToSearchEngines:(0,C.pI)(e),siteAdminUrl:(0,C.wW)(e)})))((0,y.u)(S))},11031:function(e,t,n){"use strict";n.d(t,{W:function(){return E}});var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(92819),u=n(69307),p=n(65736),d=n(71415),h=n(68961),f=n(15029),m=n(55735),g=n(77222),v=n(5e4),b=n(84277),y=n(27006),k=n(85253),w=n(61804);const __=p.__;class _ extends c().Component{getMetaTag(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t?/^[a-z0-9_-]+$/i.test(t)?(0,l.includes)(t,"<meta")?t:`<meta name="${(0,l.get)(_.serviceIds,e,"")}" content="${t}" />`:t:""}getSiteVerificationValue(e){const t=this.props.getOptionValue(e);return t===this.props.getSettingCurrentValue(e)?this.getMetaTag(e,t):t}render(){const e=this.props.getModule("verification-tools");if("inactive"===this.props.getModuleOverride("verification-tools"))return c().createElement(k.Z,{title:e.name,icon:"cog",description:(0,p.sprintf)(
/* translators: placeholder is a feature name. */
__("%s has been disabled by a site administrator.","jetpack"),e.name)});const t=!!this.props.getOptionValue(e.module);return c().createElement(b.Z,i()({},this.props,{module:e.module,saveDisabled:this.props.isSavingAnyOption(["google","bing","pinterest","yandex","facebook"])}),c().createElement(y.Z,{module:e,support:{text:__("Provides the necessary hidden tags needed to verify your WordPress site with various services.","jetpack"),link:(0,d.Z)("jetpack-support-site-verification-tools")}},c().createElement(g.T,{slug:e.module,activated:t,toggling:this.props.isSavingAnyOption([e.module]),disabled:this.props.isSavingAnyOption([e.module]),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Verify site ownership with third party services","jetpack"))),c().createElement("p",null,(0,u.createInterpolateElement)(
/* translators: placeholders are links to external sites. */
__("Note that <b>verifying your site with these services is not necessary</b> in order for your site to be indexed by search engines. To use these advanced search engine tools and verify your site with a service, paste the HTML Tag code below. Read the <support>full instructions</support> if you are having trouble. Supported verification services: <google>Google Search Console</google>, <bing>Bing Webmaster Center</bing>, <pinterest>Pinterest Site Verification</pinterest>, <yandex>Yandex.Webmaster</yandex>, and <facebook>Facebook Domain Verification</facebook>.","jetpack"),{b:c().createElement("strong",null),support:c().createElement("a",{href:(0,d.Z)("jetpack-support-site-verification-tools")}),google:c().createElement(h.Z,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/webmasters/tools/"}),bing:c().createElement(h.Z,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://www.bing.com/webmaster/"}),pinterest:c().createElement(h.Z,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://pinterest.com/website/verify/"}),yandex:c().createElement(h.Z,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://webmaster.yandex.com/sites/"}),facebook:c().createElement(h.Z,{icon:!0,target:"_blank",rel:"noopener noreferrer",href:"https://business.facebook.com/settings/"})})),c().createElement(m.C_,null,c().createElement(w.Z,i()({value:this.getSiteVerificationValue("google"),placeholder:this.getMetaTag("google","1234")},this.props,{disabled:this.props.isUpdating("google")||!t})),c().createElement(m.lX,{className:"jp-form-input-with-prefix",key:"verification_service_bing"},c().createElement("span",null,__("Bing","jetpack")),c().createElement(f.Z,{name:"bing",value:this.getSiteVerificationValue("bing"),placeholder:this.getMetaTag("bing","1234"),className:"code",disabled:this.props.isUpdating("bing")||!t,onChange:this.props.onOptionChange})),c().createElement(m.lX,{className:"jp-form-input-with-prefix",key:"verification_service_pinterest"},c().createElement("span",null,__("Pinterest","jetpack")),c().createElement(f.Z,{name:"pinterest",value:this.getSiteVerificationValue("pinterest"),placeholder:this.getMetaTag("pinterest","1234"),className:"code",disabled:this.props.isUpdating("pinterest")||!t,onChange:this.props.onOptionChange})),c().createElement(m.lX,{className:"jp-form-input-with-prefix",key:"verification_service_yandex"},c().createElement("span",null,__("Yandex","jetpack")),c().createElement(f.Z,{name:"yandex",value:this.getSiteVerificationValue("yandex"),placeholder:this.getMetaTag("yandex","1234"),className:"code",disabled:this.props.isUpdating("yandex")||!t,onChange:this.props.onOptionChange})),c().createElement(m.lX,{className:"jp-form-input-with-prefix",key:"verification_service_facebook"},c().createElement("span",null,__("Facebook","jetpack")),c().createElement(f.Z,{name:"facebook",value:this.getSiteVerificationValue("facebook"),placeholder:this.getMetaTag("facebook","1234"),className:"code",disabled:this.props.isUpdating("facebook")||!t,onChange:this.props.onOptionChange})))))}}o()(_,"serviceIds",{google:"google-site-verification",bing:"msvalidate.01",pinterest:"p:domain_verify",yandex:"yandex-verification",facebook:"facebook-domain-verification"});const E=(0,v.u)(_)},61804:function(e,t,n){"use strict";var r=n(27538),i=n.n(r),s=n(99196),o=n.n(s),a=n(11268),c=n.n(a),l=n(2620),u=n(69307),p=n(65736),d=n(11973),h=n(68961),f=n(15029),m=n(88872),g=n(55735),v=n(22256),b=n(9913),y=n(39444),k=n(46023),w=n(91628),_=n(66552),E=n(21094);const __=p.__;class C extends o().Component{constructor(){super(...arguments),i()(this,"state",{inputVisible:!1}),i()(this,"handleClickAutoVerify",(()=>{this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||(d.Z.tracks.recordEvent("jetpack_site_verification_google_auto_verify_click"),(0,y.Z)(this.props.googleSiteVerificationConnectUrl,(e=>{e&&this.checkAndVerifySite(e)})))})),i()(this,"handleClickSetManually",(e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_manual_verify_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)})),i()(this,"handleClickEdit",(e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_edit_click",{is_owner:this.props.isOwner}),this.toggleVerifyMethod(e)})),i()(this,"handleClickCancel",(e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_cancel_click",{is_owner:this.props.isOwner}),this.props.resetFormStateOption("google"),this.toggleVerifyMethod(e)})),i()(this,"quickSave",(e=>{d.Z.tracks.recordEvent("jetpack_site_verification_google_manual_verify_save",{is_owner:this.props.isOwner,is_empty:!this.props.value}),this.props.onSubmit(e)})),i()(this,"toggleVerifyMethod",(()=>{this.setState({inputVisible:!this.state.inputVisible})})),i()(this,"handleOnTextInputKeyPress",(e=>{"Enter"===e.key&&this.quickSave()}))}componentDidMount(){this.props.isCurrentUserLinked&&this.props.checkVerifyStatusGoogle().then((e=>{if(this.props.googleSiteVerificationError&&"unverify-site-error"===this.props.googleSiteVerificationError.code&&this.props.updateOptions({google:""}).then((()=>this.props.checkVerifyStatusGoogle())),e)return!this.props.getOptionValue("google")&&e.token?this.props.updateOptions({google:e.token}):void(!this.props.getOptionValue("google")||e.token||e.verified||this.setState({inputVisible:!0}))}))}checkAndVerifySite(e){this.props.createNotice("is-info",__("Verifying…","jetpack"),{id:"verifying-site-google"}),this.props.checkVerifyStatusGoogle(e).then((e=>{if(e)return e.token!==this.props.value?this.props.updateOptions({google:e.token}):void 0})).then((()=>{this.props.removeNotice("verifying-site-google"),this.props.isSiteVerifiedWithGoogle||this.props.verifySiteGoogle(e).then((()=>{if(this.props.googleSiteVerificationError){const e=this.props.googleSiteVerificationError.message;d.Z.tracks.recordEvent("jetpack_site_verification_google_verify_error",{error_message:e}),this.props.createNotice("is-error",(0,p.sprintf)(
/* translators: placeholder is an error message. */
__("Site failed to verify: %s","jetpack"),e),{id:"verify-site-google-error",duration:5e3})}else this.props.isSiteVerifiedWithGoogle&&d.Z.tracks.recordEvent("jetpack_site_verification_google_verify_success")}))}))}render(){const e=this.props.googleSiteVerificationError&&"forbidden"===this.props.googleSiteVerificationError.code;if(this.state.inputVisible||e||!this.props.isCurrentUserLinked)return o().createElement("div",null,o().createElement(g.lX,{className:"jp-form-input-with-prefix",key:"verification_service_google"},o().createElement("span",null,__("Google","jetpack")),o().createElement(f.Z,{name:"google",value:this.props.value,placeholder:this.props.placeholder,className:"code",disabled:this.props.disabled,onChange:this.props.onOptionChange,onKeyPress:this.handleOnTextInputKeyPress}),this.state.inputVisible&&o().createElement("div",{className:"jp-form-site-verification-buttons"},o().createElement(b.Z,{primary:!0,type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.quickSave},__("Save","jetpack")),o().createElement(b.Z,{type:"button",className:"jp-form-site-verification-edit-button",disabled:this.props.disabled,onClick:this.handleClickCancel},__("Cancel","jetpack")))));if(this.props.isSiteVerifiedWithGoogle)return o().createElement("div",null,o().createElement("div",{className:"jp-form-input-with-prefix",key:"verification_service_google"},o().createElement("span",null,__("Google","jetpack")),o().createElement("div",{className:"jp-form-site-verification-verified"},o().createElement(v.Z,{icon:"checkmark-circle",size:20})," ",o().createElement("span",null,__("Your site is verified with Google","jetpack"))),o().createElement(b.Z,{type:"button",className:"jp-form-site-verification-edit-button",onClick:this.handleClickEdit},__("Edit","jetpack"))),this.props.isOwner&&o().createElement("div",{className:"jp-form-input-with-prefix-bottom-message"},o().createElement("div",{className:"jp-form-setting-explanation"},o().createElement("p",null,(0,u.createInterpolateElement)(__("Monitor your site's traffic and performance from the <a>Google Search Console</a>.","jetpack"),{a:o().createElement(h.Z,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:this.props.googleSearchConsoleUrl})})," ",(0,u.createInterpolateElement)(
/* translators: placeholders are links to Google support documents. */
__("Google will email about certain events that occur with your site, including indications that your website has been <a1>hacked</a1>, or problems <a2>crawling or indexing</a2> your site.","jetpack"),{a1:o().createElement(h.Z,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:"https://developers.google.com/web/fundamentals/security/hacked/"}),a2:o().createElement(h.Z,{icon:!0,iconSize:16,target:"_blank",rel:"noopener noreferrer",href:"https://www.google.com/insidesearch/howsearchworks/crawling-indexing.html"})})))));const t=this.props.fetchingSiteData||this.props.fetchingGoogleSiteVerify||this.props.isVerifyingGoogleSite||this.props.disabled;return o().createElement("div",{className:"jp-form-input-with-prefix jp-form-google-label-unverified",key:"verification_service_google"},o().createElement("span",null,__("Google","jetpack")),o().createElement("div",{className:"jp-form-google-label-unverified-actions"},(0,u.createInterpolateElement)(__("<button1>Verify with Google</button1><span>or</span><button2>Manually Verify</button2>","jetpack"),{button1:o().createElement(b.Z,{primary:!0,type:"button",disabled:t,onClick:this.handleClickAutoVerify}),span:o().createElement("span",{className:"jp-form-google-separator"}),button2:o().createElement(b.Z,{type:"button",disabled:t,onClick:this.handleClickSetManually})})))}}i()(C,"propTypes",{disabled:c().bool}),i()(C,"defaultProps",{disabled:!1}),t.Z=(0,l.$j)((e=>({fetchingSiteData:(0,m._5)(e),googleSiteVerificationConnectUrl:(0,k.K0)(e,"google_site_verification"),googleSearchConsoleUrl:(0,w._g)(e),fetchingGoogleSiteVerify:(0,w.nZ)(e),isConnectedToGoogle:(0,w.hr)(e),isSiteVerifiedWithGoogle:(0,w.nS)(e),isVerifyingGoogleSite:(0,w.BH)(e),userCanManageOptions:(0,_.UF)(e),googleSiteVerificationError:(0,w.ou)(e),isOwner:(0,w.dO)(e)})),{checkVerifyStatusGoogle:w.n,createNotice:E.iI,removeNotice:E.qq,verifySiteGoogle:w.Zn})(C)},41922:function(e,t,n){"use strict";function r(e){return t=>{13!==t.which&&32!==t.which||e(t)}}n.d(t,{Z:function(){return r}})},98865:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(71415),d=n(55735),h=n(19555),f=n(77222),m=n(5e4),g=n(93107),v=n(84277),b=n(27006);const __=u.__,_x=u._x;class y extends c().Component{constructor(){super(...arguments),o()(this,"updateFormStateByMarkdown",(e=>this.props.getSettingCurrentValue("wpcom_publish_comments_with_markdown",e)?this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown"):this.props.updateFormStateModuleOption(e,"wpcom_publish_posts_with_markdown",!0)))}render(){const e=this.props.isModuleFound("copy-post"),t=this.props.isModuleFound("latex"),n=this.props.isModuleFound("markdown"),r=this.props.isModuleFound("shortcodes");if(!(e||t||n||r))return null;const s=this.props.module("markdown"),o=this.props.module("latex"),a=this.props.module("copy-post"),l=this.props.module("shortcodes"),u=c().createElement(b.Z,{module:a,support:{text:__("Duplicate existing posts, pages, Testimonials, and Portfolios. All the content will be copied including text, featured images, sharing settings, and more.","jetpack"),link:(0,p.Z)("jetpack-support-copy-post")}},c().createElement(d.C_,null,c().createElement(f.T,{slug:"copy-post",activated:!!this.props.getOptionValue("copy-post"),toggling:this.props.isSavingAnyOption("copy-post"),disabled:this.props.isSavingAnyOption("copy-post"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},a.description)))),h=c().createElement(b.Z,{module:s,support:{text:__("Use Markdown syntax to compose content with links, lists, and other styles. This setting enables Markdown in the Classic Editor as well as within a Classic Editor block.","jetpack"),link:(0,p.Z)("jetpack-support-markdown")}},c().createElement(d.C_,null,c().createElement(f.T,{slug:"markdown",activated:!!this.props.getOptionValue("wpcom_publish_posts_with_markdown","markdown"),toggling:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),disabled:this.props.isSavingAnyOption(["markdown","wpcom_publish_posts_with_markdown"]),toggleModule:this.updateFormStateByMarkdown},c().createElement("span",{className:"jp-form-toggle-explanation"},s.description)))),m=c().createElement(b.Z,{module:o,support:{text:__("LaTeX is a powerful markup language for writing complex mathematical equations and formulas.","jetpack"),link:(0,p.Z)("jetpack-support-beautiful-math-with-latex")}},c().createElement(d.C_,null,c().createElement(f.T,{slug:"latex",activated:!!this.props.getOptionValue("latex"),toggling:this.props.isSavingAnyOption(["latex"]),disabled:this.props.isSavingAnyOption(["latex"]),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},o.description)))),g=c().createElement(b.Z,{module:l,support:{text:l.description,link:(0,p.Z)("jetpack-support-shortcode-embeds")}},c().createElement(d.C_,null,c().createElement(f.T,{slug:"shortcodes",activated:!!this.props.getOptionValue("shortcodes"),toggling:this.props.isSavingAnyOption(["shortcodes"]),disabled:this.props.isSavingAnyOption(["shortcodes"]),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Compose using shortcodes to embed media from popular sites","jetpack")))));return c().createElement(v.Z,i()({},this.props,{header:_x("Composing","Settings header","jetpack"),module:"composing",saveDisabled:this.props.isSavingAnyOption("ignored_phrases")}),e&&u,n&&h,t&&m,r&&g)}}t.Z=(0,l.$j)((e=>({module:t=>(0,g.rT)(e,t),isModuleFound:t=>(0,h.CX)(e,t)})))((0,m.u)(y))},45767:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(69307),p=n(65736),d=n(71415),h=n(94069),f=n(3810),m=n(55735),g=n(5e4),v=n(93107),b=n(19555),y=n(84277),k=n(27006);const __=p.__;class w extends c().Component{constructor(){super(...arguments),o()(this,"state",{testimonial:this.props.getOptionValue("jetpack_testimonial","custom-content-types"),portfolio:this.props.getOptionValue("jetpack_portfolio","custom-content-types")}),o()(this,"updateCPTs",(e=>{const t="testimonial"===e?!(!this.state.testimonial||this.state.portfolio):!(!this.state.portfolio||this.state.testimonial);this.props.updateFormStateModuleOption("custom-content-types","jetpack_"+e,t),this.setState({[e]:!this.state[e]})})),o()(this,"linkIfActiveCPT",(e=>this.props.getSettingCurrentValue(`jetpack_${e}`,"custom-content-types")?c().createElement("a",{href:`${this.props.siteAdminUrl}edit.php?post_type=jetpack-${e}`}):c().createElement("span",null))),o()(this,"handleTestimonialToggleChange",(()=>{this.updateCPTs("testimonial")})),o()(this,"handlePortfolioToggleChange",(()=>{this.updateCPTs("portfolio")}))}render(){if(!this.props.isModuleFound("custom-content-types"))return null;const e=this.props.module("custom-content-types"),t="inactive"===this.props.getModuleOverride("custom-content-types"),n=t&&__("This feature has been disabled by a site administrator.","jetpack");return c().createElement(y.Z,i()({},this.props,{module:"custom-content-types",hideButton:!0}),c().createElement(k.Z,{hasChild:!0,module:e,support:{link:(0,d.Z)("jetpack-support-custom-content-types")}},c().createElement("p",null,(0,u.createInterpolateElement)(__("Add <testimonialLink>testimonials</testimonialLink> to your website to attract new customers. If your theme doesn’t support Jetpack Testimonials, you can still use a simple shortcode to display them on your site.","jetpack"),{testimonialLink:this.linkIfActiveCPT("testimonial")})),c().createElement(h.Z,{checked:this.state.testimonial,disabled:this.props.isSavingAnyOption("jetpack_testimonial")||t,onChange:this.handleTestimonialToggleChange,disabledReason:n},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Testimonials","jetpack"))),c().createElement(m.C_,null,c().createElement("p",{className:"jp-form-setting-explanation"},__("Testimonials shortcode: [testimonials]","jetpack")))),this.props.testimonialActive&&c().createElement(f.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-testimonial`},__("Add a testimonial","jetpack")),c().createElement(k.Z,{hasChild:!0,module:e,support:{link:(0,d.Z)("jetpack-support-custom-content-types")}},c().createElement("p",null,(0,u.createInterpolateElement)(__("Use <portfolioLink>portfolios</portfolioLink> on your site to showcase your best work. If your theme doesn’t support Jetpack Portfolios, you can still use a simple shortcode to display them on your site.","jetpack"),{portfolioLink:this.linkIfActiveCPT("portfolio")})),c().createElement(h.Z,{checked:this.state.portfolio,disabled:this.props.isSavingAnyOption("jetpack_portfolio")||t,onChange:this.handlePortfolioToggleChange,disabledReason:n},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Portfolios","jetpack"))),c().createElement(m.C_,null,c().createElement("p",{className:"jp-form-setting-explanation"},__("Portfolios shortcode: [portfolio]","jetpack")))),this.props.portfolioActive&&c().createElement(f.Z,{className:"jp-settings-card__configure-link",href:`${this.props.siteAdminUrl}post-new.php?post_type=jetpack-portfolio`},__("Add a portfolio item","jetpack")))}}t.Z=(0,g.u)((0,l.$j)(((e,t)=>({module:t=>(0,v.rT)(e,t),isModuleFound:t=>(0,b.CX)(e,t),getModuleOverride:t=>(0,v.Qy)(e,t),portfolioActive:t.getSettingCurrentValue("jetpack_portfolio","custom-content-types"),testimonialActive:t.getSettingCurrentValue("jetpack_testimonial","custom-content-types")})))(w))},18731:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(60742),d=n(17752),h=n(66552),f=n(41147),m=n(93107),g=n(19555),v=n(27219),b=n(98865),y=n(45767),k=n(64261),w=n(22034),_=n(78476),E=n(73690),C=n(11613);const __=u.__;class S extends c().Component{render(){const e={settings:this.props.settings,getModule:this.props.module,isOfflineMode:this.props.isOfflineMode,isUnavailableInOfflineMode:this.props.isUnavailableInOfflineMode,isLinked:this.props.isLinked,getModuleOverride:this.props.getModuleOverride},t=["carousel","copy-post","custom-css","latex","masterbar","markdown","shortcodes","custom-content-types","post-by-email","infinite-scroll","widgets","widget-visibility"].some(this.props.isModuleFound);if(!this.props.searchTerm&&!this.props.active)return null;if(!t)return null;const n=this.props.userCanManageModules||this.props.userCanEditPosts,r=this.props.userCanManageModules||this.props.userCanEditPosts&&this.props.isModuleActivated("post-by-email");return c().createElement("div",null,c().createElement(v.Z,null),c().createElement(p.Z,{title:this.props.searchTerm?__("Writing","jetpack"):__("Compose content the way you want to and streamline your publishing experience.","jetpack"),className:"jp-settings-description"}),this.props.isModuleFound("carousel")&&c().createElement(C.Z,e),n&&c().createElement(b.Z,i()({},e,{userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("custom-content-types")&&c().createElement(y.Z,e),c().createElement(k.Z,e),c().createElement(_.Z,e),this.props.isModuleFound("post-by-email")&&r&&c().createElement(w.Z,i()({},e,{connectUrl:this.props.connectUrl,isLinked:this.props.isLinked,userCanManageModules:this.props.userCanManageModules})),this.props.isModuleFound("masterbar")&&!this.props.masterbarIsAlwaysActive&&c().createElement(E.S,i()({connectUrl:this.props.connectUrl},e)),!n&&!r&&c().createElement(p.Z,null,__("Writing tools available to you will be shown here when an administrator enables them.","jetpack")))}}o()(S,"displayName","WritingSettings"),t.Z=(0,l.$j)((e=>({module:t=>(0,m.rT)(e,t),settings:(0,d.Gw)(e),masterbarIsAlwaysActive:(0,h.Ug)(e),isOfflineMode:(0,f.Ex)(e),isUnavailableInOfflineMode:t=>(0,f.t_)(e,t),userCanEditPosts:(0,h.rp)(e),isModuleActivated:t=>(0,m.mp)(e,t),isLinked:(0,f.BU)(e),userCanManageModules:(0,h.pK)(e),isModuleFound:t=>(0,g.CX)(e,t),connectUrl:(0,f.AM)(e),getModuleOverride:t=>(0,m.Qy)(e,t)})))(S)},73690:function(e,t,n){"use strict";n.d(t,{S:function(){return f}});var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(65736),c=n(71415),l=n(5e4),u=n(84277),p=n(27006),d=n(77222),h=n(24951);const __=a.__,_x=a._x,f=(0,l.u)(class extends s.Component{render(){const e=this.props.getOptionValue("masterbar"),t=this.props.isUnavailableInOfflineMode("masterbar"),n=this.props.isLinked;return o().createElement(u.Z,i()({},this.props,{header:_x("WordPress.com toolbar","Settings header","jetpack"),module:"masterbar",hideButton:!0}),o().createElement(p.Z,{disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:{module:"masterbar"},support:{text:__("Adds a toolbar with links to all your sites, notifications, your WordPress.com profile, and the Reader.","jetpack"),link:(0,c.Z)("jetpack-support-masterbar")}},o().createElement("p",null,__("The WordPress.com toolbar replaces the default WordPress admin toolbar. It offers one-click access to notifications, your WordPress.com profile and your other Jetpack and WordPress.com websites. You can also catch up on the sites you follow in the Reader.","jetpack")),o().createElement(d.T,{slug:"masterbar",disabled:t||!n,activated:e,toggling:this.props.isSavingAnyOption("masterbar"),toggleModule:this.props.toggleModuleNow},__("Enable the WordPress.com toolbar","jetpack"))),!this.props.isUnavailableInOfflineMode("masterbar")&&!this.props.isLinked&&o().createElement(h.Z,{feature:"masterbar",featureLabel:__("WordPress.com Toolbar","jetpack"),text:__("Connect to enable the WordPress.com toolbar.","jetpack")}))}})},22034:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(71415),d=n(11973),h=n(9913),f=n(18582),m=n(55735),g=n(77222),v=n(93107),b=n(19555),y=n(5e4),k=n(84277),w=n(27006),_=n(24951);const __=u.__,_x=u._x;class E extends c().Component{constructor(){super(...arguments),o()(this,"regeneratePostByEmailAddress",(e=>{d.Z.tracks.recordJetpackClick("pbe-regenerage-email"),e.preventDefault(),this.props.regeneratePostByEmailAddress()})),o()(this,"address",(()=>{const e=this.props.getOptionValue("post_by_email_address");return!1===e||"1"===e||null===e?"":e}))}render(){if(!this.props.isModuleFound("post-by-email"))return null;const e=this.props.getModule("post-by-email"),t=this.props.getOptionValue("post-by-email"),n=this.props.isUnavailableInOfflineMode("post-by-email")||!this.props.isLinked,r=this.address();return c().createElement(k.Z,i()({},this.props,{module:"post-by-email",hideButton:!0}),c().createElement(w.Z,{hasChild:!0,disableInOfflineMode:!0,disableInSiteConnectionMode:!0,module:e,support:{text:__("Allows you to publish new posts by sending an email to a special address.","jetpack"),link:(0,p.Z)("jetpack-support-post-by-email")}},c().createElement("p",null,__("Post by email is a quick way to publish new posts without visiting your site. We’ll generate a unique email address for you to send your content to, which will then appear on your site just like any other post.","jetpack")),this.props.userCanManageModules?c().createElement(g.T,{slug:"post-by-email",compact:!0,disabled:n,activated:t,toggling:this.props.isSavingAnyOption("post-by-email"),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description)):c().createElement("span",{className:"jp-form-toggle-explanation"},this.props.module("post-by-email").description),c().createElement(m.C_,null,c().createElement(m.lX,null,c().createElement(m.Gj,null,__("Send your new posts to this email address:","jetpack")),c().createElement(f.Z,{value:r,disabled:!t||n,copy:_x("Copy","verb","jetpack"),copied:__("Copied!","jetpack"),prompt:__("Highlight and copy the following text to your clipboard:","jetpack")})),c().createElement(h.Z,{disabled:!t||n,onClick:this.regeneratePostByEmailAddress},r?__("Regenerate address","jetpack"):__("Create address","jetpack",0)))),!this.props.isUnavailableInOfflineMode("post-by-email")&&!this.props.isLinked&&c().createElement(_.Z,{feature:"post-by-email",featureLabel:__("Post by Email","jetpack"),text:__("Connect to enable publishing via email.","jetpack")}))}}t.Z=(0,l.$j)((e=>({module:t=>(0,v.rT)(e,t),isModuleFound:t=>(0,b.CX)(e,t)})))((0,y.u)(E))},64261:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(27538),o=n.n(s),a=n(99196),c=n.n(a),l=n(2620),u=n(65736),p=n(71415),d=n(11973),h=n(55735),f=n(77222),m=n(93107),g=n(66552),v=n(19555),b=n(5e4),y=n(84277),k=n(27006),w=n(53263);const __=u.__;class _ extends c().Component{constructor(){super(...arguments),o()(this,"getInfiniteMode",(()=>this.props.getOptionValue("infinite-scroll")?this.props.getOptionValue("infinite_scroll","infinite-scroll")?"infinite_scroll":"infinite_button":"infinite_default")),o()(this,"updateInfiniteMode",(e=>{this.setState({infinite_mode:e},this.prepareOptionsToUpdate)})),o()(this,"prepareOptionsToUpdate",(()=>{"infinite_default"===this.state.infinite_mode?this.props.updateFormStateOptionValue("infinite-scroll",!1):"infinite_scroll"!==this.state.infinite_mode&&"infinite_button"!==this.state.infinite_mode||this.props.updateFormStateOptionValue({"infinite-scroll":!0,infinite_scroll:"infinite_scroll"===this.state.infinite_mode})})),o()(this,"updateOptions",((e,t)=>{this.setState({[e]:!this.state[e]},this.props.updateFormStateModuleOption(t,e))})),o()(this,"trackLearnMoreIS",(()=>{d.Z.tracks.recordJetpackClick({target:"learn-more",feature:"infinite-scroll",extra:"not-supported-link"})})),o()(this,"state",{infinite_mode:this.getInfiniteMode()}),o()(this,"handleInfiniteScrollModeChange",(e=>()=>this.updateInfiniteMode(e)))}render(){const e=this.props.isModuleFound("infinite-scroll"),t=this.props.isModuleFound("custom-css");if(!e&&!t)return null;const n=this.props.getModule("infinite-scroll"),r=this.props.getModule("custom-css"),s="inactive"===this.props.getModuleOverride("infinite-scroll");return c().createElement(y.Z,i()({},this.props,{header:__("Theme enhancements","jetpack"),hideButton:!e||!this.props.isInfiniteScrollSupported,module:"theme-enhancements"}),s&&c().createElement(w.Z,{moduleName:n.name,compact:!0}),e&&!s&&c().createElement(k.Z,{hasChild:!0,module:{module:n.module},key:`theme_enhancement_${n.module}`,support:{text:__("Loads the next posts automatically when the reader approaches the bottom of the page.","jetpack"),link:(0,p.Z)("jetpack-support-infinite-scroll")}},c().createElement(h.Gj,{className:"jp-form-label-wide"},n.name),c().createElement("p",null,__("Create a smooth, uninterrupted reading experience by loading more content as visitors scroll to the bottom of your archive pages.","jetpack")),this.props.isInfiniteScrollSupported?[{key:"infinite_default",label:__("Load more posts using the default theme behavior","jetpack")},{key:"infinite_button",label:__("Load more posts in page with a button","jetpack")},{key:"infinite_scroll",label:__("Load more posts as the reader scrolls down","jetpack")}].map((e=>c().createElement(h.lX,{key:`${n.module}_${e.key}`},c().createElement("input",{type:"radio",name:"infinite_mode",value:e.key,checked:e.key===this.state.infinite_mode,disabled:this.props.isSavingAnyOption([n.module,e.key]),onChange:this.handleInfiniteScrollModeChange(e.key)}),c().createElement("span",{className:"jp-form-toggle-explanation"},e.label)))):c().createElement("span",null,__("Theme support required.","jetpack")+" ",c().createElement("a",{onClick:this.trackLearnMoreIS,href:n.learn_more_button+"#theme",title:__("Learn more about adding support for Infinite Scroll to your theme.","jetpack")},__("Learn more","jetpack")))),t&&c().createElement(k.Z,{module:{module:r.module},support:{text:r.description,link:(0,p.Z)("jetpack-support-custom-css")}},c().createElement(f.T,{slug:"custom-css",activated:!!this.props.getOptionValue("custom-css"),toggling:this.props.isSavingAnyOption(["custom-css"]),disabled:this.props.isSavingAnyOption(["custom-css"]),toggleModule:this.props.toggleModuleNow},c().createElement("span",{className:"jp-form-toggle-explanation"},__("Enhance CSS customization panel","jetpack")))))}}t.Z=(0,l.$j)((e=>({module:t=>(0,m.rT)(e,t),isInfiniteScrollSupported:(0,g.Cv)(e,"infinite-scroll"),isModuleFound:t=>(0,v.CX)(e,t)})))((0,b.u)(_))},78476:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(65736),l=n(71415),u=n(5e4),p=n(93107),d=n(19555),h=n(84277),f=n(27006),m=n(77222);const __=c.__,_x=c._x;class g extends s.Component{render(){const e=this.props.isModuleFound("widgets"),t=this.props.isModuleFound("widget-visibility");return e||t?o().createElement(h.Z,i()({},this.props,{header:_x("Widgets","Settings header","jetpack"),module:"widgets",hideButton:!0}),e&&o().createElement(f.Z,{module:{module:"widgets"},support:{text:this.props.widgetsModule.description,link:(0,l.Z)("jetpack-support-extra-sidebar-widgets")}},o().createElement(m.T,{slug:"widgets",activated:this.props.widgetsActive,toggling:this.props.isSavingAnyOption("widgets"),toggleModule:this.props.toggleModuleNow},__("Make extra widgets available for use on your site including subscription forms and Twitter streams","jetpack"))),t&&o().createElement(f.Z,{module:{module:"widget-visibility"},support:{text:__("Widget visibility lets you decide which widgets appear on which pages, so you can finely tailor widget content.","jetpack"),link:(0,l.Z)("jetpack-support-widget-visibility")}},o().createElement(m.T,{slug:"widget-visibility",activated:this.props.widgetVisibilityActive,toggling:this.props.isSavingAnyOption("widget-visibility"),toggleModule:this.props.toggleModuleNow},__("Enable widget visibility controls to display widgets only on particular posts or pages","jetpack")))):null}}t.Z=(0,u.u)((0,a.$j)(((e,t)=>({widgetVisibilityActive:t.getOptionValue("widget-visibility"),widgetsActive:t.getOptionValue("widgets"),widgetsModule:(0,p.rT)(e,"widgets"),isModuleFound:t=>(0,d.CX)(e,t)})))(g))},11613:function(e,t,n){"use strict";var r=n(29183),i=n.n(r),s=n(99196),o=n.n(s),a=n(2620),c=n(65736),l=n(71415),u=n(94069),p=n(55735),d=n(77222),h=n(5e4),f=n(84277),m=n(27006),g=n(93107),v=n(19555);const __=c.__;t.Z=(0,a.$j)((e=>({module:t=>(0,g.rT)(e,t),isModuleFound:t=>(0,v.CX)(e,t)})))((0,h.u)((function(e){const t=e.isModuleFound("carousel");if(!t)return null;const n=e.getOptionValue("carousel_display_comments","carousel"),r=e.getOptionValue("carousel_display_exif","carousel"),s=e.getOptionValue("carousel"),a=(t,n,r,i)=>o().createElement(u.Z,{checked:t,disabled:!s||e.isSavingAnyOption(["carousel",n]),onChange:r},o().createElement("span",{className:"jp-form-toggle-explanation"},i));return o().createElement(f.Z,i()({},e,{module:"media",header:__("Media","jetpack"),hideButton:!t,saveDisabled:e.isSavingAnyOption("carousel_background_color")}),o().createElement(m.Z,{hasChild:!0,module:{module:"carousel"},support:{link:(0,l.Z)("jetpack-support-carousel")}},o().createElement("p",null,__("Create full-screen carousel slideshows for the images in your posts and pages. Carousel galleries are mobile-friendly and encourage site visitors to interact with your photos.","jetpack")),o().createElement(d.T,{slug:"carousel",activated:s,toggling:e.isSavingAnyOption("carousel"),toggleModule:e.toggleModuleNow},o().createElement("span",{className:"jp-form-toggle-explanation"},__("Display images in a full-screen carousel gallery","jetpack"))),o().createElement(p.C_,null,a(r,"carousel_display_exif",(()=>{e.updateFormStateModuleOption("carousel","carousel_display_exif")}),__("Show photo Exif metadata in carousel (when available)","jetpack")),a(n,"carousel_display_comments",(()=>{e.updateFormStateModuleOption("carousel","carousel_display_comments")}),__("Show comments area in carousel","jetpack")),o().createElement(p.C_,null,o().createElement("p",{className:"jp-form-setting-explanation"},__("Exif data shows viewers additional technical details of a photo, like its focal length, aperture, and ISO.","jetpack"))),o().createElement(p.lX,null,o().createElement(p.Gj,{className:"jp-form-label-wide"},__("Carousel color scheme","jetpack")),o().createElement(p.ih,i()({name:"carousel_background_color",value:e.getOptionValue("carousel_background_color"),disabled:!s||e.isSavingAnyOption(["carousel","carousel_background_color"])},e,{validValues:e.validValues("carousel_background_color","carousel")}))))))})))},10618:function(e,t,n){"use strict";n.d(t,{Z:function(){return h}});var r=n(45086),i=n(57275),s=n(25303),o=n(45814),a=n(15746),c=n(12472),l=n(99196),u=n(89105),p=n.n(u),d=n(30682),h=(n(1920),function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){var e;(0,r.Z)(this,n);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return e=t.call.apply(t,[this].concat(o)),(0,c.Z)((0,s.Z)(e),"state",{allTimeMax:e.props.value}),e}return(0,i.Z)(n,[{key:"getCompletionPercentage",value:function(){var e=Math.ceil((this.props.canGoBackwards?this.props.value:this.state.allTimeMax)/this.props.total*100);return Math.min(e,100)}},{key:"renderBar",value:function(){var e=this.props,t=e.color,n=e.title,r=e.total,i=e.value,s={width:this.getCompletionPercentage()+"%"};return t&&(s.backgroundColor=t),l.createElement("div",{"aria-valuemax":r,"aria-valuemin":0,"aria-valuenow":i,className:"progress-bar__progress",role:"progressbar",style:s},n&&l.createElement(d.Z,null,n))}},{key:"render",value:function(){var e=p()(this.props.className,"progress-bar",{"is-compact":this.props.compact,"is-pulsing":this.props.isPulsing});return l.createElement("div",{className:e},this.renderBar())}}],[{key:"getDerivedStateFromProps",value:function(e,t){return{allTimeMax:Math.max(t.allTimeMax,e.value)}}}]),n}(l.PureComponent));(0,c.Z)(h,"defaultProps",{total:100,compact:!1,isPulsing:!1,canGoBackwards:!1})},30682:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(99196),i=n.n(r);n(3696);function s(e){var t=e.children;return i().createElement("span",{className:"screen-reader-text"},t)}},75139:function(e,t,n){"use strict";n.d(t,{X:function(){return i}});var r={AED:{symbol:"د.إ.‏",grouping:",",decimal:".",precision:2},AFN:{symbol:"؋",grouping:",",decimal:".",precision:2},ALL:{symbol:"Lek",grouping:".",decimal:",",precision:2},AMD:{symbol:"֏",grouping:",",decimal:".",precision:2},ANG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AOA:{symbol:"Kz",grouping:",",decimal:".",precision:2},ARS:{symbol:"$",grouping:".",decimal:",",precision:2},AUD:{symbol:"A$",grouping:",",decimal:".",precision:2},AWG:{symbol:"ƒ",grouping:",",decimal:".",precision:2},AZN:{symbol:"₼",grouping:" ",decimal:",",precision:2},BAM:{symbol:"КМ",grouping:".",decimal:",",precision:2},BBD:{symbol:"Bds$",grouping:",",decimal:".",precision:2},BDT:{symbol:"৳",grouping:",",decimal:".",precision:0},BGN:{symbol:"лв.",grouping:" ",decimal:",",precision:2},BHD:{symbol:"د.ب.‏",grouping:",",decimal:".",precision:3},BIF:{symbol:"FBu",grouping:",",decimal:".",precision:0},BMD:{symbol:"$",grouping:",",decimal:".",precision:2},BND:{symbol:"$",grouping:".",decimal:",",precision:0},BOB:{symbol:"Bs",grouping:".",decimal:",",precision:2},BRL:{symbol:"R$",grouping:".",decimal:",",precision:2},BSD:{symbol:"$",grouping:",",decimal:".",precision:2},BTC:{symbol:"Ƀ",grouping:",",decimal:".",precision:2},BTN:{symbol:"Nu.",grouping:",",decimal:".",precision:1},BWP:{symbol:"P",grouping:",",decimal:".",precision:2},BYR:{symbol:"р.",grouping:" ",decimal:",",precision:2},BZD:{symbol:"BZ$",grouping:",",decimal:".",precision:2},CAD:{symbol:"C$",grouping:",",decimal:".",precision:2},CDF:{symbol:"FC",grouping:",",decimal:".",precision:2},CHF:{symbol:"CHF",grouping:"'",decimal:".",precision:2},CLP:{symbol:"$",grouping:".",decimal:",",precision:2},CNY:{symbol:"¥",grouping:",",decimal:".",precision:2},COP:{symbol:"$",grouping:".",decimal:",",precision:2},CRC:{symbol:"₡",grouping:".",decimal:",",precision:2},CUC:{symbol:"CUC",grouping:",",decimal:".",precision:2},CUP:{symbol:"$MN",grouping:",",decimal:".",precision:2},CVE:{symbol:"$",grouping:",",decimal:".",precision:2},CZK:{symbol:"Kč",grouping:" ",decimal:",",precision:2},DJF:{symbol:"Fdj",grouping:",",decimal:".",precision:0},DKK:{symbol:"kr.",grouping:"",decimal:",",precision:2},DOP:{symbol:"RD$",grouping:",",decimal:".",precision:2},DZD:{symbol:"د.ج.‏",grouping:",",decimal:".",precision:2},EGP:{symbol:"ج.م.‏",grouping:",",decimal:".",precision:2},ERN:{symbol:"Nfk",grouping:",",decimal:".",precision:2},ETB:{symbol:"ETB",grouping:",",decimal:".",precision:2},EUR:{symbol:"€",grouping:".",decimal:",",precision:2},FJD:{symbol:"FJ$",grouping:",",decimal:".",precision:2},FKP:{symbol:"£",grouping:",",decimal:".",precision:2},GBP:{symbol:"£",grouping:",",decimal:".",precision:2},GEL:{symbol:"Lari",grouping:" ",decimal:",",precision:2},GHS:{symbol:"₵",grouping:",",decimal:".",precision:2},GIP:{symbol:"£",grouping:",",decimal:".",precision:2},GMD:{symbol:"D",grouping:",",decimal:".",precision:2},GNF:{symbol:"FG",grouping:",",decimal:".",precision:0},GTQ:{symbol:"Q",grouping:",",decimal:".",precision:2},GYD:{symbol:"G$",grouping:",",decimal:".",precision:2},HKD:{symbol:"HK$",grouping:",",decimal:".",precision:2},HNL:{symbol:"L.",grouping:",",decimal:".",precision:2},HRK:{symbol:"kn",grouping:".",decimal:",",precision:2},HTG:{symbol:"G",grouping:",",decimal:".",precision:2},HUF:{symbol:"Ft",grouping:".",decimal:",",precision:0},IDR:{symbol:"Rp",grouping:".",decimal:",",precision:0},ILS:{symbol:"₪",grouping:",",decimal:".",precision:2},INR:{symbol:"₹",grouping:",",decimal:".",precision:2},IQD:{symbol:"د.ع.‏",grouping:",",decimal:".",precision:2},IRR:{symbol:"﷼",grouping:",",decimal:"/",precision:2},ISK:{symbol:"kr.",grouping:".",decimal:",",precision:0},JMD:{symbol:"J$",grouping:",",decimal:".",precision:2},JOD:{symbol:"د.ا.‏",grouping:",",decimal:".",precision:3},JPY:{symbol:"¥",grouping:",",decimal:".",precision:0},KES:{symbol:"S",grouping:",",decimal:".",precision:2},KGS:{symbol:"сом",grouping:" ",decimal:"-",precision:2},KHR:{symbol:"៛",grouping:",",decimal:".",precision:0},KMF:{symbol:"CF",grouping:",",decimal:".",precision:2},KPW:{symbol:"₩",grouping:",",decimal:".",precision:0},KRW:{symbol:"₩",grouping:",",decimal:".",precision:0},KWD:{symbol:"د.ك.‏",grouping:",",decimal:".",precision:3},KYD:{symbol:"$",grouping:",",decimal:".",precision:2},KZT:{symbol:"₸",grouping:" ",decimal:"-",precision:2},LAK:{symbol:"₭",grouping:",",decimal:".",precision:0},LBP:{symbol:"ل.ل.‏",grouping:",",decimal:".",precision:2},LKR:{symbol:"₨",grouping:",",decimal:".",precision:0},LRD:{symbol:"L$",grouping:",",decimal:".",precision:2},LSL:{symbol:"M",grouping:",",decimal:".",precision:2},LYD:{symbol:"د.ل.‏",grouping:",",decimal:".",precision:3},MAD:{symbol:"د.م.‏",grouping:",",decimal:".",precision:2},MDL:{symbol:"lei",grouping:",",decimal:".",precision:2},MGA:{symbol:"Ar",grouping:",",decimal:".",precision:0},MKD:{symbol:"ден.",grouping:".",decimal:",",precision:2},MMK:{symbol:"K",grouping:",",decimal:".",precision:2},MNT:{symbol:"₮",grouping:" ",decimal:",",precision:2},MOP:{symbol:"MOP$",grouping:",",decimal:".",precision:2},MRO:{symbol:"UM",grouping:",",decimal:".",precision:2},MTL:{symbol:"₤",grouping:",",decimal:".",precision:2},MUR:{symbol:"₨",grouping:",",decimal:".",precision:2},MVR:{symbol:"MVR",grouping:",",decimal:".",precision:1},MWK:{symbol:"MK",grouping:",",decimal:".",precision:2},MXN:{symbol:"MX$",grouping:",",decimal:".",precision:2},MYR:{symbol:"RM",grouping:",",decimal:".",precision:2},MZN:{symbol:"MT",grouping:",",decimal:".",precision:0},NAD:{symbol:"N$",grouping:",",decimal:".",precision:2},NGN:{symbol:"₦",grouping:",",decimal:".",precision:2},NIO:{symbol:"C$",grouping:",",decimal:".",precision:2},NOK:{symbol:"kr",grouping:" ",decimal:",",precision:2},NPR:{symbol:"₨",grouping:",",decimal:".",precision:2},NZD:{symbol:"NZ$",grouping:",",decimal:".",precision:2},OMR:{symbol:"﷼",grouping:",",decimal:".",precision:3},PAB:{symbol:"B/.",grouping:",",decimal:".",precision:2},PEN:{symbol:"S/.",grouping:",",decimal:".",precision:2},PGK:{symbol:"K",grouping:",",decimal:".",precision:2},PHP:{symbol:"₱",grouping:",",decimal:".",precision:2},PKR:{symbol:"₨",grouping:",",decimal:".",precision:2},PLN:{symbol:"zł",grouping:" ",decimal:",",precision:2},PYG:{symbol:"₲",grouping:".",decimal:",",precision:2},QAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},RON:{symbol:"lei",grouping:".",decimal:",",precision:2},RSD:{symbol:"Дин.",grouping:".",decimal:",",precision:2},RUB:{symbol:"₽",grouping:" ",decimal:",",precision:2},RWF:{symbol:"RWF",grouping:" ",decimal:",",precision:2},SAR:{symbol:"﷼",grouping:",",decimal:".",precision:2},SBD:{symbol:"S$",grouping:",",decimal:".",precision:2},SCR:{symbol:"₨",grouping:",",decimal:".",precision:2},SDD:{symbol:"LSd",grouping:",",decimal:".",precision:2},SDG:{symbol:"£‏",grouping:",",decimal:".",precision:2},SEK:{symbol:"kr",grouping:",",decimal:".",precision:2},SGD:{symbol:"S$",grouping:",",decimal:".",precision:2},SHP:{symbol:"£",grouping:",",decimal:".",precision:2},SLL:{symbol:"Le",grouping:",",decimal:".",precision:2},SOS:{symbol:"S",grouping:",",decimal:".",precision:2},SRD:{symbol:"$",grouping:",",decimal:".",precision:2},STD:{symbol:"Db",grouping:",",decimal:".",precision:2},SVC:{symbol:"₡",grouping:",",decimal:".",precision:2},SYP:{symbol:"£",grouping:",",decimal:".",precision:2},SZL:{symbol:"E",grouping:",",decimal:".",precision:2},THB:{symbol:"฿",grouping:",",decimal:".",precision:2},TJS:{symbol:"TJS",grouping:" ",decimal:";",precision:2},TMT:{symbol:"m",grouping:" ",decimal:",",precision:0},TND:{symbol:"د.ت.‏",grouping:",",decimal:".",precision:3},TOP:{symbol:"T$",grouping:",",decimal:".",precision:2},TRY:{symbol:"TL",grouping:".",decimal:",",precision:2},TTD:{symbol:"TT$",grouping:",",decimal:".",precision:2},TVD:{symbol:"$T",grouping:",",decimal:".",precision:2},TWD:{symbol:"NT$",grouping:",",decimal:".",precision:2},TZS:{symbol:"TSh",grouping:",",decimal:".",precision:2},UAH:{symbol:"₴",grouping:" ",decimal:",",precision:2},UGX:{symbol:"USh",grouping:",",decimal:".",precision:2},USD:{symbol:"$",grouping:",",decimal:".",precision:2},UYU:{symbol:"$U",grouping:".",decimal:",",precision:2},UZS:{symbol:"сўм",grouping:" ",decimal:",",precision:2},VEB:{symbol:"Bs.",grouping:",",decimal:".",precision:2},VEF:{symbol:"Bs. F.",grouping:".",decimal:",",precision:2},VND:{symbol:"₫",grouping:".",decimal:",",precision:1},VUV:{symbol:"VT",grouping:",",decimal:".",precision:0},WST:{symbol:"WS$",grouping:",",decimal:".",precision:2},XAF:{symbol:"F",grouping:",",decimal:".",precision:2},XCD:{symbol:"$",grouping:",",decimal:".",precision:2},XOF:{symbol:"F",grouping:" ",decimal:",",precision:2},XPF:{symbol:"F",grouping:",",decimal:".",precision:2},YER:{symbol:"﷼",grouping:",",decimal:".",precision:2},ZAR:{symbol:"R",grouping:" ",decimal:",",precision:2},ZMW:{symbol:"ZK",grouping:",",decimal:".",precision:2},WON:{symbol:"₩",grouping:",",decimal:".",precision:2}};function i(e){return r[e]||{symbol:"$",grouping:",",decimal:".",precision:2}}},78850:function(e,t,n){"use strict";n.d(t,{LR:function(){return o}});var r=n(52141),i=n(63807),s=n(75139);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=(0,s.X)(t);if(!o||isNaN(e))return null;var a=(0,r.Z)({},o,n),c=a.decimal,l=a.grouping,u=a.precision,p=a.symbol,d=e<0?"-":"",h=Math.abs(e),f=Math.floor(h),m=(0,i.Y4)(f,{decimals:0,thousandsSep:l,decPoint:c}),g=u>0?(0,i.Y4)(h-f,{decimals:u,thousandsSep:l,decPoint:c}).slice(1):"";return{sign:d,symbol:p,integer:m,fraction:g}}},94481:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(99196),i=n(32365);function s(e,t){let n,i,o=[];for(let r=0;r<e.length;r++){const s=e[r];if("string"!==s.type){if(void 0===t[s.value])throw new Error(`Invalid interpolation, missing component node: \`${s.value}\``);if("object"!=typeof t[s.value])throw new Error(`Invalid interpolation, component node must be a ReactElement or null: \`${s.value}\``);if("componentClose"===s.type)throw new Error(`Missing opening component token: \`${s.value}\``);if("componentOpen"===s.type){n=t[s.value],i=r;break}o.push(t[s.value])}else o.push(s.value)}if(n){const a=function(e,t){const n=t[e];let r=0;for(let i=e+1;i<t.length;i++){const e=t[i];if(e.value===n.value){if("componentOpen"===e.type){r++;continue}if("componentClose"===e.type){if(0===r)return i;r--}}}throw new Error("Missing closing component token `"+n.value+"`")}(i,e),c=s(e.slice(i+1,a),t),l=(0,r.cloneElement)(n,{},c);if(o.push(l),a<e.length-1){const n=s(e.slice(a+1),t);o=o.concat(n)}}return o=o.filter(Boolean),0===o.length?null:1===o.length?o[0]:(0,r.createElement)(r.Fragment,null,...o)}function o(e){const{mixedString:t,components:n,throwErrors:r}=e;if(!n)return t;if("object"!=typeof n){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because components is not an object`);return t}const o=(0,i.Z)(t);try{return s(o,n)}catch(e){if(r)throw new Error(`Interpolation Error: unable to process \`${t}\` because of error \`${e.message}\``);return t}}},32365:function(e,t,n){"use strict";function r(e){return e.startsWith("{{/")?{type:"componentClose",value:e.replace(/\W/g,"")}:e.endsWith("/}}")?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.startsWith("{{")?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}function i(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(r)}n.d(t,{Z:function(){return i}})},47236:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(92819),i=n(2571);function s(e){(0,r.assign)(e,i.EventEmitter.prototype),e.emitChange=function(){this.emit("change")},e.off=e.removeListener}},59177:function(e,t,n){"use strict";function r(){var e=this;this.intervals={},this.monitorInterval=null,this.windowInstance=null,this.onMessage=function(t){t.source===e.windowInstance&&e.emit("message",t.data)}}(0,n(47236).Z)(r.prototype),r.prototype.open=function(e,t,n){return t=t||Date.now(),this.windowInstance=window.open(e,t,n),this.startMonitoring(t,this.windowInstance),window.addEventListener("message",this.onMessage,!1),this},r.prototype.getScreenCenterSpecs=function(e,t){var n=void 0!==window.screenTop?window.screenTop:window.screenY,r=void 0!==window.screenLeft?window.screenLeft:window.screenX;return["width="+e,"height="+t,"top="+(n+window.innerHeight/2-t/2),"left="+(r+window.innerWidth/2-e/2)].join()},r.prototype.isOpen=function(e){var t=!1;try{t=this.intervals[e]&&this.intervals[e].closed}catch(e){}return!t},r.prototype.checkStatus=function(){for(var e in this.intervals)this.intervals.hasOwnProperty(e)&&!this.isOpen(e)&&(this.emit("close",e),delete this.intervals[e]);0===Object.keys(this.intervals).length&&(clearInterval(this.monitorInterval),delete this.monitorInterval,window.removeEventListener("message",this.onMessage))},r.prototype.startMonitoring=function(e,t){this.monitorInterval||(this.monitorInterval=setInterval(this.checkStatus.bind(this),100)),this.intervals[e]=t},t.Z=r},52489:function(e,t,n){"use strict";var r=n(45086),i=n(57275),s=n(45814),o=n(15746),a=n(11268),c=n.n(a),l=n(99196),u=n.n(l),p=n(92819),d=n(13639),h=(n(99889),function(e){return e&&e.replace(/^[^/]+[/]*/,"").replace(/\/.*$/,"")}),f=(0,d.SL)((0,d.hs)(80),(0,d.KB)(80)),m=(0,d.SL)((0,d.hs)(200),(0,d.KB)(200)),g=function(e){(0,s.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"render",value:function(){var e=this.props,t=e.url,n=e.type,r=e.title,i=e.description,s=e.image,o=e.author;return u().createElement("div",{className:"facebook-preview facebook-preview__".concat(n)},u().createElement("div",{className:"facebook-preview__content"},u().createElement("div",{className:"facebook-preview__image"},s&&u().createElement("img",{alt:"Facebook Preview Thumbnail",src:s})),u().createElement("div",{className:"facebook-preview__body"},u().createElement("div",{className:"facebook-preview__url"},(0,p.compact)([h(t),o]).join(" | ")),u().createElement("div",{className:"facebook-preview__title"},f(r||"")),u().createElement("div",{className:"facebook-preview__description"},m((0,d.ju)(i))))))}}]),n}(l.PureComponent);g.propTypes={url:c().string,type:c().string,title:c().string,description:c().string,image:c().string,author:c().string},t.Z=g},13639:function(e,t,n){"use strict";n.d(t,{hs:function(){return i},I$:function(){return s},KB:function(){return o},SL:function(){return a},ju:function(){return c}});var r=n(92819),i=function(e){return function(t){return t.length<=e&&t}},s=function(e,t){return function(n){var r=n.slice(0,t),i=r.lastIndexOf(" ");return i>e&&i<t&&r.slice(0,i).concat("…")}},o=function(e){return function(t){return t.slice(0,e).concat("…")}},a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return(0,r.find)(t,(function(t){return!1!==t(e)}))(e)}},c=function(e){return e?e.replace(/(<([^>]+)>)/gi,""):""}},80505:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(11268),i=n.n(r),s=n(99196),o=n.n(s),a=n(13639),c=(n(93474),160),l=(0,a.SL)((0,a.hs)(63),(0,a.I$)(23,73),(0,a.KB)(63)),u=(0,a.SL)((0,a.hs)(c),(0,a.I$)(80,170),(0,a.KB)(c));function p(e){var t=e.description,n=e.title,r=e.url;return o().createElement("div",{className:"search-preview"},o().createElement("div",{className:"search-preview__display"},o().createElement("div",{className:"search-preview__url"},function(e){var t=e.replace(/^[^/]+[/]*/,"").split("/").join(" › ");return(0,a.SL)((0,a.hs)(68),(0,a.KB)(68))(t)}(r)," ▾"),o().createElement("div",{className:"search-preview__title"},l(n)),o().createElement("div",{className:"search-preview__description"},u((0,a.ju)(t)))))}p.propTypes={title:i().string,url:i().string,description:i().string},p.defaultProps={title:"",url:"",description:""}},79465:function(e,t,n){"use strict";var r=n(40988),i=n(49058),s=n(45086),o=n(57275),a=n(45814),c=n(15746),l=n(11268),u=n.n(l),p=n(99196),d=n.n(p),h=n(82943),f=(n(33285),function(e){(0,a.Z)(n,e);var t=(0,c.Z)(n);function n(){return(0,s.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"render",value:function(){var e=this.props.tweets||[{text:"",media:[],card:(0,i.Z)((0,i.Z)({},this.props),{},{type:"large_image_summary"===this.props.type?"summary_large_image":this.props.type}),date:Date.now(),name:"Account Name",profileImage:"https://abs.twimg.com/sticky/default_profile_images/default_profile_bigger.png",screenName:"@account"}];return d().createElement("div",{className:"twitter-preview"},e&&e.map((function(t,n){return d().createElement(h.t,(0,r.Z)({key:"twitter-preview__tweet-".concat(n),isLast:n+1===e.length},t))})))}}]),n}(p.PureComponent));f.propTypes={tweets:u().array},t.Z=f},82943:function(e,t,n){"use strict";n.d(t,{t:function(){return y}});var r=n(45086),i=n(57275),s=n(45814),o=n(15746),a=n(89105),c=n.n(a),l=n(11268),u=n.n(l),p=n(99196),d=n.n(p),h=n(76292),f=n.n(h),m=n(65736),g=n(55609),v=n(13639);n(33285);var __=m.__,b=(0,v.SL)((0,v.hs)(200),(0,v.KB)(200)),y=function(e){(0,s.Z)(n,e);var t=(0,o.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"renderSidebar",value:function(e,t){return d().createElement("div",{className:"twitter-preview__sidebar"},d().createElement("div",{className:"twitter-preview__profile-image"},d().createElement("img",{alt:__("Twitter profile image","jetpack"),src:e})),!t&&d().createElement("div",{className:"twitter-preview__connector"}))}},{key:"renderHeader",value:function(e,t,n){return d().createElement("div",{className:"twitter-preview__header"},d().createElement("span",{className:"twitter-preview__name"},e),d().createElement("span",{className:"twitter-preview__screen-name"},t),d().createElement("span",{className:"twitter-preview__date"},f()(n).format("MMM D")))}},{key:"renderText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.url||"",i=e.endsWith(r)?e.substr(0,e.lastIndexOf(r)):e,s=t.reduce((function(e,t){return e.replace(new RegExp("\\("+t+"\\)","g"),'(<a href="'.concat(t,'">').concat(t,"</a>)"))}),(0,v.ju)(i).replace(new RegExp("\\n","g"),"<br/>"));return d().createElement("div",{className:"twitter-preview__text",dangerouslySetInnerHTML:{__html:s}})}},{key:"renderMedia",value:function(e){if(e){var t=e.filter((function(e){return e.type.startsWith("image/")||e.type.startsWith("video/")})).filter((function(e,t,n){return 0===t||!n[0].type.startsWith("video/")&&"image/gif"!==n[0].type&&(!e.type.startsWith("video/")&&"image/gif"!==e.type)})).slice(0,4),n=t.length>0&&t[0].type.startsWith("video/"),r=c()(["twitter-preview__media","twitter-preview__media-children-"+t.length]);if(0!==t.length)return d().createElement("div",{className:r},n&&t.map((function(e,t){return d().createElement("video",{key:"twitter-preview__media-item-".concat(t),controls:!0},d().createElement("source",{src:e.url,type:e.type})," ")})),!n&&t.map((function(e,t){return d().createElement("img",{key:"twitter-preview__media-item-".concat(t),alt:e.alt,src:e.url})})))}}},{key:"renderQuoteTweet",value:function(e){if(e)return d().createElement("div",{className:"twitter-preview__quote-tweet"},d().createElement(g.SandBox,{html:'<blockquote class="twitter-tweet" data-conversation="none" data-dnt="true"><a href="'.concat(e,'"></a></blockquote>'),scripts:["https://platform.twitter.com/widgets.js"],title:"Embedded tweet",onFocus:this.hideOverlay}),d().createElement("div",{className:"twitter-preview__quote-tweet-overlay"}))}},{key:"renderCard",value:function(e){if(e){var t=e.description,n=e.image,r=e.title,i=e.type,s=e.url,o=c()("twitter-preview__card-".concat(i),{"twitter-preview__card-has-image":!!n});return d().createElement("div",{className:"twitter-preview__card"},d().createElement("div",{className:o},n&&d().createElement("img",{className:"twitter-preview__card-image",src:n,alt:""}),d().createElement("div",{className:"twitter-preview__card-body"},d().createElement("div",{className:"twitter-preview__card-title"},r),d().createElement("div",{className:"twitter-preview__card-description"},b((0,v.ju)(t))),d().createElement("div",{className:"twitter-preview__card-url"},d().createElement("svg",{viewBox:"0 0 24 24"},d().createElement("g",null,d().createElement("path",{d:"M11.96 14.945c-.067 0-.136-.01-.203-.027-1.13-.318-2.097-.986-2.795-1.932-.832-1.125-1.176-2.508-.968-3.893s.942-2.605 2.068-3.438l3.53-2.608c2.322-1.716 5.61-1.224 7.33 1.1.83 1.127 1.175 2.51.967 3.895s-.943 2.605-2.07 3.438l-1.48 1.094c-.333.246-.804.175-1.05-.158-.246-.334-.176-.804.158-1.05l1.48-1.095c.803-.592 1.327-1.463 1.476-2.45.148-.988-.098-1.975-.69-2.778-1.225-1.656-3.572-2.01-5.23-.784l-3.53 2.608c-.802.593-1.326 1.464-1.475 2.45-.15.99.097 1.975.69 2.778.498.675 1.187 1.15 1.992 1.377.4.114.633.528.52.928-.092.33-.394.547-.722.547z"}),d().createElement("path",{d:"M7.27 22.054c-1.61 0-3.197-.735-4.225-2.125-.832-1.127-1.176-2.51-.968-3.894s.943-2.605 2.07-3.438l1.478-1.094c.334-.245.805-.175 1.05.158s.177.804-.157 1.05l-1.48 1.095c-.803.593-1.326 1.464-1.475 2.45-.148.99.097 1.975.69 2.778 1.225 1.657 3.57 2.01 5.23.785l3.528-2.608c1.658-1.225 2.01-3.57.785-5.23-.498-.674-1.187-1.15-1.992-1.376-.4-.113-.633-.527-.52-.927.112-.4.528-.63.926-.522 1.13.318 2.096.986 2.794 1.932 1.717 2.324 1.224 5.612-1.1 7.33l-3.53 2.608c-.933.693-2.023 1.026-3.105 1.026z"}))),function(e){return e.replace(/^[^/]+[/]*(www\.)?/,"").replace(/\/.*$/,"")}(s||"")))))}}},{key:"renderFooter",value:function(){return d().createElement("div",{className:"twitter-preview__footer"},d().createElement("span",{className:"twitter-preview__icon-replies"},d().createElement("svg",{viewBox:"0 0 24 24"},d().createElement("path",{d:"M14.046 2.242l-4.148-.01h-.002c-4.374 0-7.8 3.427-7.8 7.802 0 4.098 3.186 7.206 7.465 7.37v3.828c0 .108.044.286.12.403.142.225.384.347.632.347.138 0 .277-.038.402-.118.264-.168 6.473-4.14 8.088-5.506 1.902-1.61 3.04-3.97 3.043-6.312v-.017c-.006-4.367-3.43-7.787-7.8-7.788zm3.787 12.972c-1.134.96-4.862 3.405-6.772 4.643V16.67c0-.414-.335-.75-.75-.75h-.396c-3.66 0-6.318-2.476-6.318-5.886 0-3.534 2.768-6.302 6.3-6.302l4.147.01h.002c3.532 0 6.3 2.766 6.302 6.296-.003 1.91-.942 3.844-2.514 5.176z"}))),d().createElement("span",{className:"twitter-preview__icon-retweets"},d().createElement("svg",{viewBox:"0 0 24 24"},d().createElement("path",{d:"M23.77 15.67c-.292-.293-.767-.293-1.06 0l-2.22 2.22V7.65c0-2.068-1.683-3.75-3.75-3.75h-5.85c-.414 0-.75.336-.75.75s.336.75.75.75h5.85c1.24 0 2.25 1.01 2.25 2.25v10.24l-2.22-2.22c-.293-.293-.768-.293-1.06 0s-.294.768 0 1.06l3.5 3.5c.145.147.337.22.53.22s.383-.072.53-.22l3.5-3.5c.294-.292.294-.767 0-1.06zm-10.66 3.28H7.26c-1.24 0-2.25-1.01-2.25-2.25V6.46l2.22 2.22c.148.147.34.22.532.22s.384-.073.53-.22c.293-.293.293-.768 0-1.06l-3.5-3.5c-.293-.294-.768-.294-1.06 0l-3.5 3.5c-.294.292-.294.767 0 1.06s.767.293 1.06 0l2.22-2.22V16.7c0 2.068 1.683 3.75 3.75 3.75h5.85c.414 0 .75-.336.75-.75s-.337-.75-.75-.75z"}))),d().createElement("span",{className:"twitter-preview__icon-likes"},d().createElement("svg",{viewBox:"0 0 24 24"},d().createElement("path",{d:"M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12zM7.354 4.225c-2.08 0-3.903 1.988-3.903 4.255 0 5.74 7.034 11.596 8.55 11.658 1.518-.062 8.55-5.917 8.55-11.658 0-2.267-1.823-4.255-3.903-4.255-2.528 0-3.94 2.936-3.952 2.965-.23.562-1.156.562-1.387 0-.014-.03-1.425-2.965-3.954-2.965z"}))),d().createElement("span",{className:"twitter-preview__icon-share"},d().createElement("svg",{viewBox:"0 0 24 24"},d().createElement("path",{d:"M17.53 7.47l-5-5c-.293-.293-.768-.293-1.06 0l-5 5c-.294.293-.294.768 0 1.06s.767.294 1.06 0l3.72-3.72V15c0 .414.336.75.75.75s.75-.336.75-.75V4.81l3.72 3.72c.146.147.338.22.53.22s.384-.072.53-.22c.293-.293.293-.767 0-1.06z"}),d().createElement("path",{d:"M19.708 21.944H4.292C3.028 21.944 2 20.916 2 19.652V14c0-.414.336-.75.75-.75s.75.336.75.75v5.652c0 .437.355.792.792.792h15.416c.437 0 .792-.355.792-.792V14c0-.414.336-.75.75-.75s.75.336.75.75v5.652c0 1.264-1.028 2.292-2.292 2.292z"}))))}},{key:"render",value:function(){var e=this.props,t=e.isLast,n=e.profileImage,r=e.name,i=e.screenName,s=e.date,o=e.text,a=e.media,c=e.tweet,l=e.urls,u=e.card;return d().createElement("div",{className:"twitter-preview__container"},this.renderSidebar(n,t),d().createElement("div",{className:"twitter-preview__main"},this.renderHeader(r,i,s),d().createElement("div",{className:"twitter-preview__content"},this.renderText(o,l,u),this.renderMedia(a),this.renderQuoteTweet(c),this.renderCard(u)),this.renderFooter()))}}]),n}(p.PureComponent);y.propTypes={tweets:u().array,isLast:u().bool,profileImage:u().string,name:u().string,screenName:u().string,date:u().number,text:u().string,media:u().array,tweet:u().string,urls:u().array,card:u().object}},24555:function(e,t,n){"use strict";n.d(t,{tq:function(){return p},bQ:function(){return d}});var r=n(55246),i=769,s="<480px",o="undefined"==typeof window||!window.matchMedia;function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.min,n=e.max;return void 0!==t&&void 0!==n?o?{matches:i>t&&i<=n}:window.matchMedia("(min-width: ".concat(t+1,"px) and (max-width: ").concat(n,"px)")):void 0!==t?o?{matches:i>t}:window.matchMedia("(min-width: ".concat(t+1,"px)")):void 0!==n&&(o?{matches:i<=n}:window.matchMedia("(max-width: ".concat(n,"px)")))}var c={"<480px":a({max:480}),"<660px":a({max:660}),"<800px":a({max:800}),"<960px":a({max:960}),"<1040px":a({max:1040}),"<1280px":a({max:1280}),"<1400px":a({max:1400}),">480px":a({min:480}),">660px":a({min:660}),">800px":a({min:800}),">960px":a({min:960}),">1040px":a({min:1040}),">1280px":a({min:1280}),">1400px":a({min:1400}),"480px-660px":a({min:480,max:660}),"660px-960px":a({min:660,max:960}),"480px-960px":a({min:480,max:960})};function l(e){if(c.hasOwnProperty(e))return c[e];try{r.warn("Undefined breakpoint used in `mobile-first-breakpoint`",e)}catch(e){}}function u(e){var t=l(e);return t?t.matches:void 0}function p(){return u(s)}function d(){return o?i:window.innerWidth}},90922:function(e,t,n){var r=n(55246),i=n(5806);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,r.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=r.debug||r.log||(()=>{}),e.exports=n(31967)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},31967:function(e,t,n){var r=n(55246);e.exports=function(e){function t(e){let n,r,s,o=null;function a(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];if(!a.enabled)return;const s=a,o=Number(new Date),c=o-(n||o);s.diff=c,s.prev=n,s.curr=o,n=o,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let l=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((e,n)=>{if("%%"===e)return"%";l++;const i=t.formatters[n];if("function"==typeof i){const t=r[l];e=i.call(s,t),r.splice(l,1),l--}return e})),t.formatArgs.call(s,r);const u=s.log||t.log;u.apply(s,r)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=i,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(r!==t.namespaces&&(r=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function i(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(32002),t.destroy=function(){r.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},34770:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r="Invariant failed";function i(e,t){if(!e)throw new Error(r)}},11043:function(e,t,n){"use strict";var r=n(1625),i=n(99196);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,s=i.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=s[0];var o=s[1];return s=e.value,e.getCurrentValue===t&&e.subscribe===n||(s=t(),o({getCurrentValue:t,subscribe:n,value:s})),i.useDebugValue(s),i.useEffect((function(){function e(){if(!i){var e=t();o((function(i){return i.getCurrentValue!==t||i.subscribe!==n||i.value===e?i:r({},i,{value:e})}))}}var i=!1,s=n(e);return e(),function(){i=!0,s()}}),[t,n]),s}},20036:function(e,t,n){"use strict";e.exports=n(11043)},49231:function(e,t,n){var r=n(55246);function i(e){try{if(!window.localStorage)return!1}catch(e){return!1}var t=window.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var n=!1;return function(){if(!n){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?r.trace(t):r.warn(t),n=!0}return e.apply(this,arguments)}}},11311:function(e){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},58370:function(e,t,n){"use strict";var r=n(98304),i=n(57372),s=n(32457),o=n(8639);function a(e){return e.call.bind(e)}var c="undefined"!=typeof BigInt,l="undefined"!=typeof Symbol,u=a(Object.prototype.toString),p=a(Number.prototype.valueOf),d=a(String.prototype.valueOf),h=a(Boolean.prototype.valueOf);if(c)var f=a(BigInt.prototype.valueOf);if(l)var m=a(Symbol.prototype.valueOf);function g(e,t){if("object"!=typeof e)return!1;try{return t(e),!0}catch(e){return!1}}function v(e){return"[object Map]"===u(e)}function b(e){return"[object Set]"===u(e)}function y(e){return"[object WeakMap]"===u(e)}function k(e){return"[object WeakSet]"===u(e)}function w(e){return"[object ArrayBuffer]"===u(e)}function _(e){return"undefined"!=typeof ArrayBuffer&&(w.working?w(e):e instanceof ArrayBuffer)}function E(e){return"[object DataView]"===u(e)}function C(e){return"undefined"!=typeof DataView&&(E.working?E(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=o,t.isPromise=function(e){return"undefined"!=typeof Promise&&e instanceof Promise||null!==e&&"object"==typeof e&&"function"==typeof e.then&&"function"==typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):o(e)||C(e)},t.isUint8Array=function(e){return"Uint8Array"===s(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===s(e)},t.isUint16Array=function(e){return"Uint16Array"===s(e)},t.isUint32Array=function(e){return"Uint32Array"===s(e)},t.isInt8Array=function(e){return"Int8Array"===s(e)},t.isInt16Array=function(e){return"Int16Array"===s(e)},t.isInt32Array=function(e){return"Int32Array"===s(e)},t.isFloat32Array=function(e){return"Float32Array"===s(e)},t.isFloat64Array=function(e){return"Float64Array"===s(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===s(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===s(e)},v.working="undefined"!=typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!=typeof Map&&(v.working?v(e):e instanceof Map)},b.working="undefined"!=typeof Set&&b(new Set),t.isSet=function(e){return"undefined"!=typeof Set&&(b.working?b(e):e instanceof Set)},y.working="undefined"!=typeof WeakMap&&y(new WeakMap),t.isWeakMap=function(e){return"undefined"!=typeof WeakMap&&(y.working?y(e):e instanceof WeakMap)},k.working="undefined"!=typeof WeakSet&&k(new WeakSet),t.isWeakSet=function(e){return k(e)},w.working="undefined"!=typeof ArrayBuffer&&w(new ArrayBuffer),t.isArrayBuffer=_,E.working="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView&&E(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=C;var S="undefined"!=typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function j(e){return"[object SharedArrayBuffer]"===u(e)}function M(e){return void 0!==S&&(void 0===j.working&&(j.working=j(new S)),j.working?j(e):e instanceof S)}function x(e){return g(e,p)}function N(e){return g(e,d)}function A(e){return g(e,h)}function O(e){return c&&g(e,f)}function T(e){return l&&g(e,m)}t.isSharedArrayBuffer=M,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===u(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===u(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===u(e)},t.isGeneratorObject=function(e){return"[object Generator]"===u(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===u(e)},t.isNumberObject=x,t.isStringObject=N,t.isBooleanObject=A,t.isBigIntObject=O,t.isSymbolObject=T,t.isBoxedPrimitive=function(e){return x(e)||N(e)||A(e)||O(e)||T(e)},t.isAnyArrayBuffer=function(e){return"undefined"!=typeof Uint8Array&&(_(e)||M(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},23333:function(e,t,n){var r=n(5806),i=n(55246),s=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!k(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(u(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,s=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}})),a=r[n];n<i;a=r[++n])b(a)||!E(a)?s+=" "+a:s+=" "+u(a);return s},t.deprecate=function(e,n){if(void 0!==r&&!0===r.noDeprecation)return e;if(void 0===r)return function(){return t.deprecate(e,n).apply(this,arguments)};var s=!1;return function(){if(!s){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?i.trace(n):i.error(n),s=!0}return e.apply(this,arguments)}};var a={},c=/^$/;if(r.env.NODE_DEBUG){var l=r.env.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),c=new RegExp("^"+l+"$","i")}function u(e,n){var r={seen:[],stylize:d};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),v(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=p),h(r,e,r.depth)}function p(e,t){var n=u.styles[t];return n?"["+u.colors[n][0]+"m"+e+"["+u.colors[n][1]+"m":e}function d(e,t){return e}function h(e,n,r){if(e.customInspect&&n&&j(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return k(i)||(i=h(e,i,r)),i}var s=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(k(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(y(t))return e.stylize(""+t,"number");if(v(t))return e.stylize(""+t,"boolean");if(b(t))return e.stylize("null","null")}(e,n);if(s)return s;var o=Object.keys(n),a=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(n)),S(n)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return f(n);if(0===o.length){if(j(n)){var c=n.name?": "+n.name:"";return e.stylize("[Function"+c+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(C(n))return e.stylize(Date.prototype.toString.call(n),"date");if(S(n))return f(n)}var l,u="",p=!1,d=["{","}"];(g(n)&&(p=!0,d=["[","]"]),j(n))&&(u=" [Function"+(n.name?": "+n.name:"")+"]");return _(n)&&(u=" "+RegExp.prototype.toString.call(n)),C(n)&&(u=" "+Date.prototype.toUTCString.call(n)),S(n)&&(u=" "+f(n)),0!==o.length||p&&0!=n.length?r<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),l=p?function(e,t,n,r,i){for(var s=[],o=0,a=t.length;o<a;++o)O(t,String(o))?s.push(m(e,t,n,r,String(o),!0)):s.push("");return i.forEach((function(i){i.match(/^\d+$/)||s.push(m(e,t,n,r,i,!0))})),s}(e,n,r,a,o):o.map((function(t){return m(e,n,r,a,t,p)})),e.seen.pop(),function(e,t,n){if(e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(l,u,d)):d[0]+u+d[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,n,r,i,s){var o,a,c;if((c=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(a=e.stylize("[Setter]","special")),O(r,i)||(o="["+i+"]"),a||(e.seen.indexOf(c.value)<0?(a=b(n)?h(e,c.value,null):h(e,c.value,n-1)).indexOf("\n")>-1&&(a=s?a.split("\n").map((function(e){return"  "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return"   "+e})).join("\n")):a=e.stylize("[Circular]","special")),w(o)){if(s&&i.match(/^\d+$/))return a;(o=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(o=o.substr(1,o.length-2),o=e.stylize(o,"name")):(o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),o=e.stylize(o,"string"))}return o+": "+a}function g(e){return Array.isArray(e)}function v(e){return"boolean"==typeof e}function b(e){return null===e}function y(e){return"number"==typeof e}function k(e){return"string"==typeof e}function w(e){return void 0===e}function _(e){return E(e)&&"[object RegExp]"===M(e)}function E(e){return"object"==typeof e&&null!==e}function C(e){return E(e)&&"[object Date]"===M(e)}function S(e){return E(e)&&("[object Error]"===M(e)||e instanceof Error)}function j(e){return"function"==typeof e}function M(e){return Object.prototype.toString.call(e)}function x(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(c.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);i.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(58370),t.isArray=g,t.isBoolean=v,t.isNull=b,t.isNullOrUndefined=function(e){return null==e},t.isNumber=y,t.isString=k,t.isSymbol=function(e){return"symbol"==typeof e},t.isUndefined=w,t.isRegExp=_,t.types.isRegExp=_,t.isObject=E,t.isDate=C,t.types.isDate=C,t.isError=S,t.types.isNativeError=S,t.isFunction=j,t.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},t.isBuffer=n(11311);var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(){var e=new Date,t=[x(e.getHours()),x(e.getMinutes()),x(e.getSeconds())].join(":");return[e.getDate(),N[e.getMonth()],t].join(" ")}function O(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){i.log("%s - %s",A(),t.format.apply(t,arguments))},t.inherits=n(59503),t._extend=function(e,t){if(!t||!E(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var T="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(T&&e[T]){var t;if("function"!=typeof(t=e[T]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],s=0;s<arguments.length;s++)i.push(arguments[s]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),T&&Object.defineProperty(t,T,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,s(e))},t.promisify.custom=T,t.callbackify=function(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!=typeof i)throw new TypeError("The last argument must be of type Function");var s=this,o=function(){return i.apply(s,arguments)};e.apply(this,t).then((function(e){r.nextTick(o.bind(null,null,e))}),(function(e){r.nextTick(P.bind(null,e,o))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,s(e)),t}},21976:function(e,t){"use strict";function n(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}t.Z=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));if("object"==typeof t||"object"==typeof r){var i=n(t),s=n(r);return i!==t||s!==r?e(i,s):Object.keys(Object.assign({},t,r)).every((function(n){return e(t[n],r[n])}))}return!1}},32457:function(e,t,n){"use strict";var r=n(49478),i=n(87331),s=n(16422),o=s("Object.prototype.toString"),a=n(77828)(),c="undefined"==typeof globalThis?window:globalThis,l=i(),u=s("String.prototype.slice"),p={},d=n(61787),h=Object.getPrototypeOf;a&&d&&h&&r(l,(function(e){if("function"==typeof c[e]){var t=new c[e];if(Symbol.toStringTag in t){var n=h(t),r=d(n,Symbol.toStringTag);if(!r){var i=h(n);r=d(i,Symbol.toStringTag)}p[e]=r.get}}}));var f=n(8639);e.exports=function(e){return!!f(e)&&(a&&Symbol.toStringTag in e?function(e){var t=!1;return r(p,(function(n,r){if(!t)try{var i=n.call(e);i===r&&(t=i)}catch(e){}})),t}(e):u(o(e),8,-1))}},62042:function(e,t,n){"use strict";e.exports=n.p+"images/disconnect-confirm-dc9fe8f5c68cfd1320e0.jpg"},90724:function(e,t,n){"use strict";e.exports=n.p+"images/disconnect-thanks-5873bfac56a9bd7322cd.jpg"},44072:function(e,t,n){"use strict";e.exports=n.p+"images/boost-8ea10be101c586380d89.svg"},79568:function(e,t,n){"use strict";e.exports=n.p+"images/cloud-d0f9b0f863bc1adcc03e.svg"},23183:function(e,t,n){"use strict";e.exports=n.p+"images/remove-bug-aa23c420a6e6394d5787.svg"},80118:function(e,t,n){"use strict";e.exports=n.p+"images/shield-with-check-b59b7e859cf937a15a0e.svg"},20873:function(e,t,n){"use strict";e.exports=n.p+"images/shield-bb27f10b1ca957261b8d.svg"},92787:function(e){"use strict";if(void 0==={consumer_slug:"jetpack"}){var t=new Error('Cannot find module \'{"consumer_slug":"jetpack"}\'');throw t.code="MODULE_NOT_FOUND",t}e.exports={consumer_slug:"jetpack"}},99196:function(e){"use strict";e.exports=window.React},91850:function(e){"use strict";e.exports=window.ReactDOM},92819:function(e){"use strict";e.exports=window.lodash},76292:function(e){"use strict";e.exports=window.moment},55609:function(e){"use strict";e.exports=window.wp.components},94333:function(e){"use strict";e.exports=window.wp.compose},9818:function(e){"use strict";e.exports=window.wp.data},69771:function(e){"use strict";e.exports=window.wp.date},69307:function(e){"use strict";e.exports=window.wp.element},65736:function(e){"use strict";e.exports=window.wp.i18n},70444:function(e){"use strict";e.exports=window.wp.primitives},96483:function(e){"use strict";e.exports=window.wp.url},56095:function(){},14864:function(){},69627:function(){},23833:function(){},80677:function(){},87331:function(e){"use strict";var t=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],n="undefined"==typeof globalThis?window:globalThis;e.exports=function(){for(var e=[],r=0;r<t.length;r++)"function"==typeof n[t[r]]&&(e[e.length]=t[r]);return e}},61787:function(e,t,n){"use strict";var r=n(25165)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(e){r=null}e.exports=r},25303:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},45086:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},57275:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return i}})},15746:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(6336),i=n(77363),s=n(2102);function o(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var o=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,s.Z)(this,n)}}},12472:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},40988:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},6336:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},45814:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(99112);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},71446:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(99112);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},77363:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},49058:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(12472);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(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))}))}return e}},5343:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},2102:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(31344),i=n(25303);function s(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},99112:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},31344:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},8134:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},14316:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},97024:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8134);function i(e){if(Array.isArray(e))return(0,r.Z)(e)}},55200:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},71687:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},93772:function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,{Z:function(){return i}})},9057:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(72406),i=n(58189),s=n(34621);function o(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var o=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,s.Z)(this,n)}}},98086:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return r}})},50735:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},72406:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},82104:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43051);function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&(0,r.Z)(e,t)}},96980:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(43051);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},58189:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},40613:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},20120:function(e,t,n){"use strict";function r(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s=[],_n=!0,o=!1;try{for(n=n.call(e);!(_n=(r=n.next()).done)&&(s.push(r.value),!t||s.length!==t);_n=!0);}catch(e){o=!0,i=e}finally{try{_n||null==n.return||n.return()}finally{if(o)throw i}}return s}}n.d(t,{Z:function(){return r}})},41722:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},56083:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},52141:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(98086);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&i.push.apply(i,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),i.forEach((function(t){(0,r.Z)(e,t,n[t])}))}return e}},59591:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(98086);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(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))}))}return e}},34621:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(29504),i=n(55200);function s(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},43051:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},50572:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(14316),i=n(20120),s=n(33611),o=n(41722);function a(e,t){return(0,r.Z)(e)||(0,i.Z)(e,t)||(0,s.Z)(e,t)||(0,o.Z)()}},59128:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(97024),i=n(40613),s=n(33611),o=n(56083);function a(e){return(0,r.Z)(e)||(0,i.Z)(e)||(0,s.Z)(e)||(0,o.Z)()}},29504:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},33611:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(8134);function i(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},4317:function(e){"use strict";e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},1877:function(e){"use strict";e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},72968:function(e){"use strict";e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},27046:function(e){"use strict";e.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},80906:function(e){"use strict";e.exports={i8:"6.5.4"}},93611:function(e){"use strict";e.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var s=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.hmd=function(e){return(e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},function(){var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e}();var r={};!function(){"use strict";n.d(r,{getRouteName:function(){return h}});var e=n(91850),t=n.n(e),i=n(99196),s=n.n(i),o=n(2620),a=n(1336),c=n(12901),l=(n(92819),n(65736)),u=n(30655),p=n(594),d=n(98772);const _x=l._x;function h(e){switch(e){default:return _x("At A Glance","Navigation item.","jetpack");case"/setup":return _x("Set up","Navigation item.","jetpack");case"/my-plan":return _x("My Plan","Navigation item.","jetpack");case"/plans":case"/plans-prompt":return _x("Plans","Navigation item.","jetpack");case"/recommendations":return _x("Recommendations","Navigation item.","jetpack");case"/settings":return _x("Settings","Navigation item.","jetpack");case"/discussion":return _x("Discussion","Navigation item.","jetpack");case"/security":return _x("Security","Navigation item.","jetpack");case"/performance":return _x("Performance","Navigation item.","jetpack");case"/traffic":return _x("Traffic","Navigation item.","jetpack");case"/writing":return _x("Writing","Navigation item.","jetpack");case"/sharing":return _x("Sharing","Navigation item.","jetpack");case"/license/activation":return _x("License","Navigation item.","jetpack")}}(0,u.Z)(),function(){const e=document.getElementById("jp-plugin-container");if(null===e)return;t().render(s().createElement("div",null,s().createElement(o.zt,{store:p.Z},s().createElement(a.UT,null,s().createElement(c.rs,null,s().createElement(c.AW,{path:"/dashboard"},s().createElement(d.Z,{routeName:h("/dashboard")})),s().createElement(c.AW,{path:"/reconnect"},s().createElement(d.Z,{routeName:h("/reconnect")})),s().createElement(c.AW,{path:"/setup"},s().createElement(d.Z,{routeName:h("/setup")})),s().createElement(c.AW,{path:"/my-plan"},s().createElement(d.Z,{routeName:h("/my-plan")})),s().createElement(c.AW,{path:"/plans"},s().createElement(d.Z,{routeName:h("/plans")})),s().createElement(c.AW,{path:"/recommendations"},s().createElement(d.Z,{routeName:h("/recommendations")})),s().createElement(c.AW,{path:"/plans-prompt"},s().createElement(d.Z,{routeName:h("/plans-prompt")})),s().createElement(c.AW,{path:"/settings"},s().createElement(d.Z,{routeName:h("/settings")})),s().createElement(c.AW,{path:"/discussion"},s().createElement(d.Z,{routeName:h("/discussion")})),s().createElement(c.AW,{path:"/security"},s().createElement(d.Z,{routeName:h("/security")})),s().createElement(c.AW,{path:"/performance"},s().createElement(d.Z,{routeName:h("/performance")})),s().createElement(c.AW,{path:"/traffic"},s().createElement(d.Z,{routeName:h("/traffic")})),s().createElement(c.AW,{path:"/writing"},s().createElement(d.Z,{routeName:h("/writing")})),s().createElement(c.AW,{path:"/sharing"},s().createElement(d.Z,{routeName:h("/sharing")})),s().createElement(c.AW,{path:"/license/activation"},s().createElement(d.Z,{routeName:h("/license/activation")})),s().createElement(c.AW,{path:"/wpbody-content",component:d.Z}),s().createElement(c.AW,{path:"/wp-toolbar",component:d.Z}),s().createElement(c.AW,{path:"/privacy",component:d.Z}),s().createElement(c.AW,{path:"/*"},s().createElement(d.Z,{routeName:h("/*")})))))),e)}()}(),window.getRouteName=r.getRouteName}();