/
home
/
sditechnicalteam
/
socialdigivlms.com
/
wp-content
/
plugins
/
sg-security
/
assets
/
js
/
File Upload :
llllll
Current File: /home/sditechnicalteam/socialdigivlms.com/wp-content/plugins/sg-security/assets/js/main.min.js
/*! For license information please see main.min.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SGSecurity=t():e.SGSecurity=t()}(self,(function(){return function(){var e={718:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.default=e.exports,e.exports.__esModule=!0},3381:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(this&&this[n]||n);else if(Array.isArray(n))e.push(o.apply(this,n));else if("object"===a)for(var i in n)r.call(n,i)&&n[i]&&e.push(this&&this[i]||i)}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},2580:function(e,t,n){var r;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){var n="color: "+this.color;t.splice(1,0,n,"color: inherit");var r=0,o=0;t[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(o=r))})),t.splice(o,0,n)}},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("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=(r=!1,function(){r||(r=!0,console.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=console.debug||console.log||function(){},e.exports=n(3211)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},3211:function(e,t,n){var r=this&&this.__read||function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},o=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};e.exports=function(e){function t(e){var n,r,o,i=null;function l(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(l.enabled){var o=l,a=Number(new Date),i=a-(n||a);o.diff=i,o.prev=n,o.curr=a,n=a,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");var u=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return"%";u++;var a=t.formatters[r];if("function"==typeof a){var i=e[u];n=a.call(o,i),e.splice(u,1),u--}return n})),t.formatArgs.call(o,e),(o.log||t.log).apply(o,e)}}return l.namespace=e,l.useColors=t.useColors(),l.color=t.selectColor(e),l.extend=a,l.destroy=t.destroy,Object.defineProperty(l,"enabled",{enumerable:!0,configurable:!1,get:function(){return null!==i?i:(r!==t.namespaces&&(r=t.namespaces,o=t.enabled(e)),o)},set:function(e){i=e}}),"function"==typeof t.init&&t.init(l),l}function a(e,n){var r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=o(o([],r(t.names.map(i)),!1),r(t.skips.map(i).map((function(e){return"-"+e}))),!1).join(",");return t.enable(""),e},t.enable=function(e){var n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];var r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;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;var 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(9717),t.destroy=function(){console.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((function(n){t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var n=0,r=0;r<e.length;r++)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},6605:function(e,t,n){"use strict";var r=n(718);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(4120));e.exports=t.default},4120:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},4213:function(e){"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},696:function(e){"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}m(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&m(e,"error",t,{once:!0})}(e,o)}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var i=10;function l(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function u(e){return void 0===e._maxListeners?a.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var o,a,i,c;if(l(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),i=a[t]),void 0===i)i=a[t]=n,++e._eventsCount;else if("function"==typeof i?i=a[t]=r?[n,i]:[i,n]:r?i.unshift(n):i.push(n),(o=u(e))>0&&i.length>o&&!i.warned){i.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=t,s.count=i.length,c=s,console&&console.warn&&console.warn(c)}return e}function s(){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},o=s.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]: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}(o):h(o,o.length)}function d(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 h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function m(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 o(a){r.once&&e.removeEventListener(t,o),n(a)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");i=e}}),a.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},a.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(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},a.prototype.getMaxListeners=function(){return u(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,a=this._events;if(void 0!==a)o=o&&void 0===a.error;else if(!o)return!1;if(o){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var l=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw l.context=i,l}var u=a[e];if(void 0===u)return!1;if("function"==typeof u)r(u,this,t);else{var c=u.length,s=h(u,c);for(n=0;n<c;++n)r(s[n],this,t)}return!0},a.prototype.addListener=function(e,t){return c(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return c(this,e,t,!0)},a.prototype.once=function(e,t){return l(t),this.on(e,f(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return l(t),this.prependListener(e,f(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,o,a,i;if(l(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(o=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){i=n[a].listener,o=a;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,i||t)}return this},a.prototype.off=a.prototype.removeListener,a.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 o,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(o=a[r])&&this.removeAllListeners(o);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},a.prototype.listeners=function(e){return p(this,e,!0)},a.prototype.rawListeners=function(e){return p(this,e,!1)},a.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},a.prototype.listenerCount=d,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},1231:function(e){"use strict";function t(e){return function(){return e}}var n=function(){};n.thatReturns=t,n.thatReturnsFalse=t(!1),n.thatReturnsTrue=t(!0),n.thatReturnsNull=t(null),n.thatReturnsThis=function(){return this},n.thatReturnsArgument=function(e){return e},e.exports=n},2802:function(e){"use strict";e.exports=function(e,t,n,r,o,a,i,l){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,a,i,l],s=0;(u=new Error(t.replace(/%s/g,(function(){return c[s++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},7012:function(e,t,n){"use strict";var r=n(1231);e.exports=r},544:function(e,t,n){"use strict";var r=n(5538),o=n(5126);function a(){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=a,a.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 o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},a.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},a.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 o=1;o<n;o++)r[o]=0;if(e<<=3,"big"===this.endian){for(var a=8;a<this.padLength;a++)r[o++]=0;r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=e>>>24&255,r[o++]=e>>>16&255,r[o++]=e>>>8&255,r[o++]=255&e}else for(r[o++]=255&e,r[o++]=e>>>8&255,r[o++]=e>>>16&255,r[o++]=e>>>24&255,r[o++]=0,r[o++]=0,r[o++]=0,r[o++]=0,a=8;a<this.padLength;a++)r[o++]=0;return r}},8519:function(e,t,n){"use strict";var r=n(5538),o=n(544),a=n(4313),i=r.rotl32,l=r.sum32,u=r.sum32_5,c=a.ft_1,s=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function p(){if(!(this instanceof p))return new p;s.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(p,s),e.exports=p,p.blockSize=512,p.outSize=160,p.hmacStrength=80,p.padLength=64,p.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]=i(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var o=this.h[0],a=this.h[1],s=this.h[2],p=this.h[3],d=this.h[4];for(r=0;r<n.length;r++){var h=~~(r/20),m=u(i(o,5),c(h,a,s,p),d,n[r],f[h]);d=p,p=s,s=i(a,30),a=o,o=m}this.h[0]=l(this.h[0],o),this.h[1]=l(this.h[1],a),this.h[2]=l(this.h[2],s),this.h[3]=l(this.h[3],p),this.h[4]=l(this.h[4],d)},p.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},4313:function(e,t,n){"use strict";var r=n(5538).rotr32;function o(e,t,n){return e&t^~e&n}function a(e,t,n){return e&t^e&n^t&n}function i(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?o(t,n,r):1===e||3===e?i(t,n,r):2===e?a(t,n,r):void 0},t.ch32=o,t.maj32=a,t.p32=i,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}},5538:function(e,t,n){"use strict";var r=n(5126),o=n(369);function a(e,t){return 55296==(64512&e.charCodeAt(t))&&!(t<0||t+1>=e.length)&&56320==(64512&e.charCodeAt(t+1))}function i(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function l(e){return 1===e.length?"0"+e:e}function u(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=o,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),o=0;o<e.length;o+=2)n.push(parseInt(e[o]+e[o+1],16))}else for(var r=0,o=0;o<e.length;o++){var i=e.charCodeAt(o);i<128?n[r++]=i:i<2048?(n[r++]=i>>6|192,n[r++]=63&i|128):a(e,o)?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++o)),n[r++]=i>>18|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128,n[r++]=63&i|128):(n[r++]=i>>12|224,n[r++]=i>>6&63|128,n[r++]=63&i|128)}else for(o=0;o<e.length;o++)n[o]=0|e[o];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=l(e[n].toString(16));return t},t.htonl=i,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var o=e[r];"little"===t&&(o=i(o)),n+=u(o.toString(16))}return n},t.zero2=l,t.zero8=u,t.join32=function(e,t,n,o){var a=n-t;r(a%4==0);for(var i=new Array(a/4),l=0,u=t;l<i.length;l++,u+=4){var c;c="big"===o?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],i[l]=c>>>0}return i},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,o=0;r<e.length;r++,o+=4){var a=e[r];"big"===t?(n[o]=a>>>24,n[o+1]=a>>>16&255,n[o+2]=a>>>8&255,n[o+3]=255&a):(n[o+3]=a>>>24,n[o+2]=a>>>16&255,n[o+1]=a>>>8&255,n[o]=255&a)}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,o){return e+t+n+r+o>>>0},t.sum64=function(e,t,n,r){var o=e[t],a=r+e[t+1]>>>0,i=(a<r?1:0)+n+o;e[t]=i>>>0,e[t+1]=a},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,o,a,i,l){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+a>>>0)<a?1:0,e+n+o+i+(u+=(c=c+l>>>0)<l?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,o,a,i,l){return t+r+a+l>>>0},t.sum64_5_hi=function(e,t,n,r,o,a,i,l,u,c){var s=0,f=t;return s+=(f=f+r>>>0)<t?1:0,s+=(f=f+a>>>0)<a?1:0,s+=(f=f+l>>>0)<l?1:0,e+n+o+i+u+(s+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,o,a,i,l,u,c){return t+r+a+l+c>>>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}},4996:function(e,t){"use strict";function n(e){return"number"==typeof e&&isNaN(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.startsWith=function(e,t,n){return e.substr(n||0,t.length)===t},t.endsWith=function(e,t,n){var r=(n||e.length)-t.length,o=e.lastIndexOf(t,r);return-1!==o&&o===r},t.stringIncludes=function(e,t,n){return-1!==e.indexOf(t,n||0)},t.isRealNaN=n,t.arrayIncludes=function(e,t,r){var o=e.length;if(0===o)return!1;for(var a=0|r,i=n(t),l=a>=0?a:o+a;l<o;){var u=e[l++];if(u===t)return!0;if(i&&n(u))return!0}return!1}},1346:function(e,t){"use strict";function n(e,t){var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}function r(e){var t=e.charAt(0),n=e.length-1;return'"'!==t&&"'"!==t||t!==e.charAt(n)?e:e.slice(1,n)}function o(e){return e.map((function(e){var t=n(e.trim(),"=");return{key:t[0],value:"string"==typeof t[1]?r(t[1]):null}}))}Object.defineProperty(t,"__esModule",{value:!0}),t.splitHead=n,t.unquote=r,t.format=function e(t,n){return t.map((function(t){var r=t.type,a="element"===r?{type:r,tagName:t.tagName.toLowerCase(),attributes:o(t.attributes),children:e(t.children,n)}:{type:r,content:t.content};return n.includePositions&&(a.position=t.position),a}))},t.formatAttributes=o},9932:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseDefaults=void 0,t.parse=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c,n=(0,r.default)(e,t),i=(0,o.default)(n,t);return(0,a.format)(i,t)},t.stringify=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c;return(0,i.toHTML)(e,t)};var r=u(n(2255)),o=u(n(4495)),a=n(1346),i=n(249),l=n(5502);function u(e){return e&&e.__esModule?e:{default:e}}var c=t.parseDefaults={voidTags:l.voidTags,closingTags:l.closingTags,childlessTags:l.childlessTags,closingTagAncestorBreakers:l.closingTagAncestorBreakers,includePositions:!1}},2255:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.feedPosition=o,t.jumpPosition=a,t.makeInitialPosition=function(){return{index:0,column:0,line:0}},t.copyPosition=i,t.default=function(e,t){var n={str:e,options:t,position:{index:0,column:0,line:0},tokens:[]};return l(n),n.tokens},t.lex=l,t.findTextEnd=c,t.lexText=s,t.lexComment=f,t.lexTag=p,t.isWhitespaceChar=h,t.lexTagName=m,t.lexTagAttributes=y,t.lexSkipTag=v;var r=n(4996);function o(e,t,n){for(var r=e.index,o=e.index=r+n,a=r;a<o;a++)"\n"===t.charAt(a)?(e.line++,e.column=0):e.column++}function a(e,t,n){return o(e,t,n-e.index)}function i(e){return{index:e.index,line:e.line,column:e.column}}function l(e){for(var t=e.str,n=e.options.childlessTags,o=t.length;e.position.index<o;){var a=e.position.index;if(s(e),e.position.index===a)if((0,r.startsWith)(t,"!--",a+1))f(e);else{var i=p(e),l=i.toLowerCase();(0,r.arrayIncludes)(n,l)&&v(i,e)}}}var u=/[A-Za-z0-9]/;function c(e,t){for(;;){var n=e.indexOf("<",t);if(-1===n)return n;var r=e.charAt(n+1);if("/"===r||"!"===r||u.test(r))return n;t=n+1}}function s(e){var t=e.str,n=e.position,r=c(t,n.index);if(r!==n.index){-1===r&&(r=t.length);var o=i(n),l=t.slice(n.index,r);a(n,t,r);var u=i(n);e.tokens.push({type:"text",content:l,position:{start:o,end:u}})}}function f(e){var t=e.str,n=e.position,r=i(n);o(n,t,4);var l=t.indexOf("--\x3e",n.index),u=l+3;-1===l&&(l=u=t.length);var c=t.slice(n.index,l);a(n,t,u),e.tokens.push({type:"comment",content:c,position:{start:r,end:i(n)}})}function p(e){var t=e.str,n=e.position,r="/"===t.charAt(n.index+1),a=i(n);o(n,t,r?2:1),e.tokens.push({type:"tag-start",close:r,position:{start:a}});var l=m(e);y(e);var u="/"===t.charAt(n.index);o(n,t,u?2:1);var c=i(n);return e.tokens.push({type:"tag-end",close:u,position:{end:c}}),l}var d=/\s/;function h(e){return d.test(e)}function m(e){for(var t=e.str,n=e.position,r=t.length,o=n.index;o<r;){var i=t.charAt(o);if(!h(i)&&"/"!==i&&">"!==i)break;o++}for(var l=o+1;l<r;){var u=t.charAt(l);if(h(u)||"/"===u||">"===u)break;l++}a(n,t,l);var c=t.slice(o,l);return e.tokens.push({type:"tag",content:c}),c}function y(e){for(var t=e.str,n=e.position,o=e.tokens,i=n.index,l=null,u=i,c=[],s=t.length;i<s;){var f=t.charAt(i);if(l)f===l&&(l=null),i++;else{if("/"===f||">"===f){i!==u&&c.push(t.slice(u,i));break}h(f)?(i!==u&&c.push(t.slice(u,i)),u=i+1,i++):"'"===f||'"'===f?(l=f,i++):i++}}a(n,t,i);for(var p=c.length,d="attribute",m=0;m<p;m++){var y=c[m];if(-1===y.indexOf("=")){var g=c[m+1];if(g&&(0,r.startsWith)(g,"=")){if(g.length>1){var v=y+g;o.push({type:d,content:v}),m+=1;continue}var b=c[m+2];if(m+=1,b){var w=y+"="+b;o.push({type:d,content:w}),m+=1;continue}}}if((0,r.endsWith)(y,"=")){var E=c[m+1];if(E&&!(0,r.stringIncludes)(E,"=")){var O=y+E;o.push({type:d,content:O}),m+=1;continue}var _=y.slice(0,-1);o.push({type:d,content:_})}else o.push({type:d,content:y})}}var g=[].push;function v(e,t){for(var n=t.str,r=t.position,o=t.tokens,l=e.toLowerCase(),u=n.length,c=r.index;c<u;){var f=n.indexOf("</",c);if(-1===f){s(t);break}var d=i(r);a(d,n,f);var h={str:n,position:d,tokens:[]};if(l===p(h).toLowerCase()){if(f!==r.index){var m=i(r);a(r,n,f),o.push({type:"text",content:n.slice(m.index,f),position:{start:m,end:i(r)}})}g.apply(o,h.tokens),a(r,n,h.position.index);break}c=h.position.index}}},4495:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n={tagName:null,children:[]};return i({tokens:e,options:t,cursor:0,stack:[n]}),n.children},t.hasTerminalParent=o,t.rewindStack=a,t.parse=i;var r=n(4996);function o(e,t,n){var o=n[e];if(o)for(var a=t.length-1;a>=0;){var i=t[a].tagName;if(i===e)break;if((0,r.arrayIncludes)(o,i))return!0;a--}return!1}function a(e,t,n,r){e[t].position.end=r;for(var o=t+1,a=e.length;o<a;o++)e[o].position.end=n;e.splice(t)}function i(e){for(var t=e.tokens,n=e.options,l=e.stack,u=l[l.length-1].children,c=t.length,s=e.cursor;s<c;){var f=t[s];if("tag-start"===f.type){var p=t[++s];s++;var d=p.content.toLowerCase();if(f.close){for(var h=l.length,m=!1;--h>-1;)if(l[h].tagName===d){m=!0;break}for(;s<c&&"tag-end"===t[s].type;)s++;if(m){a(l,h,f.position.start,t[s-1].position.end);break}}else{var y=(0,r.arrayIncludes)(n.closingTags,d);if(y&&(y=!o(d,l,n.closingTagAncestorBreakers)),y)for(var g=l.length-1;g>0;){if(d===l[g].tagName){a(l,g,f.position.start,f.position.start),u=l[g-1].children;break}g-=1}for(var v=[],b=void 0;s<c&&"tag-end"!==(b=t[s]).type;)v.push(b.content),s++;s++;var w=[],E={start:f.position.start,end:b.position.end},O={type:"element",tagName:p.content,attributes:v,children:w,position:E};if(u.push(O),!b.close&&!(0,r.arrayIncludes)(n.voidTags,d)){var _=l.push({tagName:d,children:w,position:E}),S={tokens:t,options:n,cursor:s,stack:l};i(S),s=S.cursor,l.length===_&&(O.position.end=t[s-1].position.end)}}}else u.push(f),s++}e.cursor=s}},249:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=o,t.toHTML=a;var r=n(4996);function o(e){return e.reduce((function(e,t){var n=t.key,r=t.value;if(null===r)return e+" "+n;var o=-1!==r.indexOf("'")?'"':"'";return e+" "+n+"="+o+r+o}),"")}function a(e,t){return e.map((function(e){if("text"===e.type)return e.content;if("comment"===e.type)return"\x3c!--"+e.content+"--\x3e";var n=e.tagName,i=e.attributes,l=e.children;return(0,r.arrayIncludes)(t.voidTags,n.toLowerCase())?"<"+n+o(i)+">":"<"+n+o(i)+">"+a(l,t)+"</"+n+">"})).join("")}t.default={toHTML:a}},5502:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.childlessTags=["style","script","template"],t.closingTags=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],t.closingTagAncestorBreakers={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},t.voidTags=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]},3578:function(e,t,n){"use strict";var r=n(8485),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function u(e){return r.isMemo(e)?i:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=i;var c=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=d(n);o&&o!==h&&e(t,o,r)}var i=s(n);f&&(i=i.concat(f(n)));for(var l=u(t),m=u(n),y=0;y<i.length;++y){var g=i[y];if(!(a[g]||r&&r[g]||m&&m[g]||l&&l[g])){var v=p(n,g);try{c(t,g,v)}catch(e){}}}}return t}},369: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}}},998:function(e,t,n){"use strict";var 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},o=l(n(8965)),a=l(n(1646)),i=l(n(5040));function l(e){return e&&e.__esModule?e:{default:e}}var u=void 0;function c(e,t){var n,i,l,s,f,p,d,h,m=[],y={};for(p=0;p<e.length;p++)if("string"!==(f=e[p]).type){if(!t.hasOwnProperty(f.value)||void 0===t[f.value])throw new Error("Invalid interpolation, missing component node: `"+f.value+"`");if("object"!==r(t[f.value]))throw new Error("Invalid interpolation, component node must be a ReactElement or null: `"+f.value+"`","\n> "+u);if("componentClose"===f.type)throw new Error("Missing opening component token: `"+f.value+"`");if("componentOpen"===f.type){n=t[f.value],l=p;break}m.push(t[f.value])}else m.push(f.value);return n&&(s=function(e,t){var n,r,o=t[e],a=0;for(r=e+1;r<t.length;r++)if((n=t[r]).value===o.value){if("componentOpen"===n.type){a++;continue}if("componentClose"===n.type){if(0===a)return r;a--}}throw new Error("Missing closing component token `"+o.value+"`")}(l,e),d=c(e.slice(l+1,s),t),i=o.default.cloneElement(n,{},d),m.push(i),s<e.length-1&&(h=c(e.slice(s+1),t),m=m.concat(h))),1===m.length?m[0]:(m.forEach((function(e,t){e&&(y["interpolation-child-"+t]=e)})),(0,a.default)(y))}t.Z=function(e){var t=e.mixedString,n=e.components,o=e.throwErrors;if(u=t,!n)return t;if("object"!==(void 0===n?"undefined":r(n))){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because components is not an object");return t}var a=(0,i.default)(t);try{return c(a,n)}catch(e){if(o)throw new Error("Interpolation Error: unable to process `"+t+"` because of error `"+e.message+"`");return t}}},5040:function(e){"use strict";function t(e){return e.match(/^\{\{\//)?{type:"componentClose",value:e.replace(/\W/g,"")}:e.match(/\/\}\}$/)?{type:"componentSelfClosing",value:e.replace(/\W/g,"")}:e.match(/^\{\{/)?{type:"componentOpen",value:e.replace(/\W/g,"")}:{type:"string",value:e}}e.exports=function(e){return e.split(/(\{\{\/?\s*\w+\s*\/?\}\})/g).map(t)}},9760:function(e,t,n){var r;e=n.nmd(e),function(){var o,a="Expected a function",i="__lodash_hash_undefined__",l="__lodash_placeholder__",u=32,c=128,s=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],m="[object Arguments]",y="[object Array]",g="[object Boolean]",v="[object Date]",b="[object Error]",w="[object Function]",E="[object GeneratorFunction]",O="[object Map]",_="[object Number]",S="[object Object]",x="[object Promise]",k="[object RegExp]",C="[object Set]",P="[object String]",T="[object Symbol]",N="[object WeakMap]",j="[object ArrayBuffer]",A="[object DataView]",R="[object Float32Array]",I="[object Float64Array]",D="[object Int8Array]",M="[object Int16Array]",F="[object Int32Array]",L="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",V="[object Uint32Array]",B=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,G=RegExp(K.source),Y=RegExp(q.source),$=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,J=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Z=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ie=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,se=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,de=/^[-+]0x[0-9a-f]+$/i,he=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ye=/^0o[0-7]+$/i,ge=/^(?:0|[1-9]\d*)$/,ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ee="\\ud800-\\udfff",Oe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",ke="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Pe="["+Ee+"]",Te="["+Ce+"]",Ne="["+Oe+"]",je="\\d+",Ae="["+_e+"]",Re="["+Se+"]",Ie="[^"+Ee+Ce+je+_e+Se+xe+"]",De="\\ud83c[\\udffb-\\udfff]",Me="[^"+Ee+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Ue="["+xe+"]",ze="\\u200d",Ve="(?:"+Re+"|"+Ie+")",Be="(?:"+Ue+"|"+Ie+")",He="(?:['’](?:d|ll|m|re|s|t|ve))?",We="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ke="(?:"+Ne+"|"+De+")?",qe="["+ke+"]?",Ge=qe+Ke+"(?:"+ze+"(?:"+[Me,Fe,Le].join("|")+")"+qe+Ke+")*",Ye="(?:"+[Ae,Fe,Le].join("|")+")"+Ge,$e="(?:"+[Me+Ne+"?",Ne,Fe,Le,Pe].join("|")+")",Xe=RegExp("['’]","g"),Qe=RegExp(Ne,"g"),Je=RegExp(De+"(?="+De+")|"+$e+Ge,"g"),Ze=RegExp([Ue+"?"+Re+"+"+He+"(?="+[Te,Ue,"$"].join("|")+")",Be+"+"+We+"(?="+[Te,Ue+Ve,"$"].join("|")+")",Ue+"?"+Ve+"+"+He,Ue+"+"+We,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Ye].join("|"),"g"),et=RegExp("["+ze+Ee+Oe+ke+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],rt=-1,ot={};ot[R]=ot[I]=ot[D]=ot[M]=ot[F]=ot[L]=ot[U]=ot[z]=ot[V]=!0,ot[m]=ot[y]=ot[j]=ot[g]=ot[A]=ot[v]=ot[b]=ot[w]=ot[O]=ot[_]=ot[S]=ot[k]=ot[C]=ot[P]=ot[N]=!1;var at={};at[m]=at[y]=at[j]=at[A]=at[g]=at[v]=at[R]=at[I]=at[D]=at[M]=at[F]=at[O]=at[_]=at[S]=at[k]=at[C]=at[P]=at[T]=at[L]=at[U]=at[z]=at[V]=!0,at[b]=at[w]=at[N]=!1;var it={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ut=parseInt,ct="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,st="object"==typeof self&&self&&self.Object===Object&&self,ft=ct||st||Function("return this")(),pt=t&&!t.nodeType&&t,dt=pt&&e&&!e.nodeType&&e,ht=dt&&dt.exports===pt,mt=ht&&ct.process,yt=function(){try{return dt&&dt.require&&dt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),gt=yt&&yt.isArrayBuffer,vt=yt&&yt.isDate,bt=yt&&yt.isMap,wt=yt&&yt.isRegExp,Et=yt&&yt.isSet,Ot=yt&&yt.isTypedArray;function _t(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];t(r,i,n(i),e)}return r}function xt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function kt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Ct(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Pt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,a=[];++n<r;){var i=e[n];t(i,n,e)&&(a[o++]=i)}return a}function Tt(e,t){return!(null==e||!e.length)&&Ut(e,t,0)>-1}function Nt(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function At(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Rt(e,t,n,r){var o=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++o]);++o<a;)n=t(n,e[o],o,e);return n}function It(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Dt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Mt=Ht("length");function Ft(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Lt(e,t,n,r){for(var o=e.length,a=n+(r?1:-1);r?a--:++a<o;)if(t(e[a],a,e))return a;return-1}function Ut(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Lt(e,Vt,n)}function zt(e,t,n,r){for(var o=n-1,a=e.length;++o<a;)if(r(e[o],t))return o;return-1}function Vt(e){return e!=e}function Bt(e,t){var n=null==e?0:e.length;return n?qt(e,t)/n:p}function Ht(e){return function(t){return null==t?o:t[e]}}function Wt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,(function(e,o,a){n=r?(r=!1,e):t(n,e,o,a)})),n}function qt(e,t){for(var n,r=-1,a=e.length;++r<a;){var i=t(e[r]);i!==o&&(n=n===o?i:n+i)}return n}function Gt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,pn(e)+1).replace(re,""):e}function $t(e){return function(t){return e(t)}}function Xt(e,t){return jt(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function Jt(e,t){for(var n=-1,r=e.length;++n<r&&Ut(t,e[n],0)>-1;);return n}function Zt(e,t){for(var n=e.length;n--&&Ut(t,e[n],0)>-1;);return n}var en=Wt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),tn=Wt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+it[e]}function rn(e){return et.test(e)}function on(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function an(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n];i!==t&&i!==l||(e[n]=l,a[o++]=n)}return a}function un(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function sn(e){return rn(e)?function(e){for(var t=Je.lastIndex=0;Je.test(e);)++t;return t}(e):Mt(e)}function fn(e){return rn(e)?function(e){return e.match(Je)||[]}(e):function(e){return e.split("")}(e)}function pn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var dn=Wt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),hn=function e(t){var n,r=(t=null==t?ft:hn.defaults(ft.Object(),t,hn.pick(ft,nt))).Array,oe=t.Date,Ee=t.Error,Oe=t.Function,_e=t.Math,Se=t.Object,xe=t.RegExp,ke=t.String,Ce=t.TypeError,Pe=r.prototype,Te=Oe.prototype,Ne=Se.prototype,je=t["__core-js_shared__"],Ae=Te.toString,Re=Ne.hasOwnProperty,Ie=0,De=(n=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Me=Ne.toString,Fe=Ae.call(Se),Le=ft._,Ue=xe("^"+Ae.call(Re).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ze=ht?t.Buffer:o,Ve=t.Symbol,Be=t.Uint8Array,He=ze?ze.allocUnsafe:o,We=an(Se.getPrototypeOf,Se),Ke=Se.create,qe=Ne.propertyIsEnumerable,Ge=Pe.splice,Ye=Ve?Ve.isConcatSpreadable:o,$e=Ve?Ve.iterator:o,Je=Ve?Ve.toStringTag:o,et=function(){try{var e=ca(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),it=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ct=oe&&oe.now!==ft.Date.now&&oe.now,st=t.setTimeout!==ft.setTimeout&&t.setTimeout,pt=_e.ceil,dt=_e.floor,mt=Se.getOwnPropertySymbols,yt=ze?ze.isBuffer:o,Mt=t.isFinite,Wt=Pe.join,mn=an(Se.keys,Se),yn=_e.max,gn=_e.min,vn=oe.now,bn=t.parseInt,wn=_e.random,En=Pe.reverse,On=ca(t,"DataView"),_n=ca(t,"Map"),Sn=ca(t,"Promise"),xn=ca(t,"Set"),kn=ca(t,"WeakMap"),Cn=ca(Se,"create"),Pn=kn&&new kn,Tn={},Nn=Fa(On),jn=Fa(_n),An=Fa(Sn),Rn=Fa(xn),In=Fa(kn),Dn=Ve?Ve.prototype:o,Mn=Dn?Dn.valueOf:o,Fn=Dn?Dn.toString:o;function Ln(e){if(el(e)&&!Hi(e)&&!(e instanceof Bn)){if(e instanceof Vn)return e;if(Re.call(e,"__wrapped__"))return La(e)}return new Vn(e)}var Un=function(){function e(){}return function(t){if(!Zi(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function zn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Bn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function Hn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Gn(e){var t=this.__data__=new Wn(e);this.size=t.size}function Yn(e,t){var n=Hi(e),r=!n&&Bi(e),o=!n&&!r&&Gi(e),a=!n&&!r&&!o&&ul(e),i=n||r||o||a,l=i?Gt(e.length,ke):[],u=l.length;for(var c in e)!t&&!Re.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ya(c,u))||l.push(c);return l}function $n(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Xn(e,t){return Aa(Co(e),ar(t,0,e.length))}function Qn(e){return Aa(Co(e))}function Jn(e,t,n){(n!==o&&!Ui(e[t],n)||n===o&&!(t in e))&&rr(e,t,n)}function Zn(e,t,n){var r=e[t];Re.call(e,t)&&Ui(r,n)&&(n!==o||t in e)||rr(e,t,n)}function er(e,t){for(var n=e.length;n--;)if(Ui(e[n][0],t))return n;return-1}function tr(e,t,n,r){return sr(e,(function(e,o,a){t(r,e,n(e),a)})),r}function nr(e,t){return e&&Po(t,Nl(t),e)}function rr(e,t,n){"__proto__"==t&&et?et(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var n=-1,a=t.length,i=r(a),l=null==e;++n<a;)i[n]=l?o:xl(e,t[n]);return i}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ir(e,t,n,r,a,i){var l,u=1&t,c=2&t,s=4&t;if(n&&(l=a?n(e,r,a,i):n(e)),l!==o)return l;if(!Zi(e))return e;var f=Hi(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Re.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Co(e,l)}else{var p=pa(e),d=p==w||p==E;if(Gi(e))return Eo(e,u);if(p==S||p==m||d&&!a){if(l=c||d?{}:ha(e),!u)return c?function(e,t){return Po(e,fa(e),t)}(e,function(e,t){return e&&Po(t,jl(t),e)}(l,e)):function(e,t){return Po(e,sa(e),t)}(e,nr(l,e))}else{if(!at[p])return a?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case j:return Oo(e);case g:case v:return new o(+e);case A:return function(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case R:case I:case D:case M:case F:case L:case U:case z:case V:return _o(e,n);case O:return new o;case _:case P:return new o(e);case k:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new o;case T:return r=e,Mn?Se(Mn.call(r)):{}}}(e,p,u)}}i||(i=new Gn);var h=i.get(e);if(h)return h;i.set(e,l),al(e)?e.forEach((function(r){l.add(ir(r,t,n,r,e,i))})):tl(e)&&e.forEach((function(r,o){l.set(o,ir(r,t,n,o,e,i))}));var y=f?o:(s?c?na:ta:c?jl:Nl)(e);return xt(y||e,(function(r,o){y&&(r=e[o=r]),Zn(l,o,ir(r,t,n,o,e,i))})),l}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var a=n[r],i=t[a],l=e[a];if(l===o&&!(a in e)||!i(l))return!1}return!0}function ur(e,t,n){if("function"!=typeof e)throw new Ce(a);return Pa((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,a=Tt,i=!0,l=e.length,u=[],c=t.length;if(!l)return u;n&&(t=jt(t,$t(n))),r?(a=Nt,i=!1):t.length>=200&&(a=Qt,i=!1,t=new qn(t));e:for(;++o<l;){var s=e[o],f=null==n?s:n(s);if(s=r||0!==s?s:0,i&&f==f){for(var p=c;p--;)if(t[p]===f)continue e;u.push(s)}else a(t,f,r)||u.push(s)}return u}Ln.templateSettings={escape:$,evaluate:X,interpolate:Q,variable:"",imports:{_:Ln}},Ln.prototype=zn.prototype,Ln.prototype.constructor=Ln,Vn.prototype=Un(zn.prototype),Vn.prototype.constructor=Vn,Bn.prototype=Un(zn.prototype),Bn.prototype.constructor=Bn,Hn.prototype.clear=function(){this.__data__=Cn?Cn(null):{},this.size=0},Hn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Hn.prototype.get=function(e){var t=this.__data__;if(Cn){var n=t[e];return n===i?o:n}return Re.call(t,e)?t[e]:o},Hn.prototype.has=function(e){var t=this.__data__;return Cn?t[e]!==o:Re.call(t,e)},Hn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Cn&&t===o?i:t,this},Wn.prototype.clear=function(){this.__data__=[],this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=er(t,e);return!(n<0||(n==t.length-1?t.pop():Ge.call(t,n,1),--this.size,0))},Wn.prototype.get=function(e){var t=this.__data__,n=er(t,e);return n<0?o:t[n][1]},Wn.prototype.has=function(e){return er(this.__data__,e)>-1},Wn.prototype.set=function(e,t){var n=this.__data__,r=er(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Hn,map:new(_n||Wn),string:new Hn}},Kn.prototype.delete=function(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return la(this,e).get(e)},Kn.prototype.has=function(e){return la(this,e).has(e)},Kn.prototype.set=function(e,t){var n=la(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(e){return this.__data__.set(e,i),this},qn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.clear=function(){this.__data__=new Wn,this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Gn.prototype.get=function(e){return this.__data__.get(e)},Gn.prototype.has=function(e){return this.__data__.has(e)},Gn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Wn){var r=n.__data__;if(!_n||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(r)}return n.set(e,t),this.size=n.size,this};var sr=jo(vr),fr=jo(br,!0);function pr(e,t){var n=!0;return sr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function dr(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],l=t(i);if(null!=l&&(u===o?l==l&&!ll(l):n(l,u)))var u=l,c=i}return c}function hr(e,t){var n=[];return sr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function mr(e,t,n,r,o){var a=-1,i=e.length;for(n||(n=ma),o||(o=[]);++a<i;){var l=e[a];t>0&&n(l)?t>1?mr(l,t-1,n,r,o):At(o,l):r||(o[o.length]=l)}return o}var yr=Ao(),gr=Ao(!0);function vr(e,t){return e&&yr(e,t,Nl)}function br(e,t){return e&&gr(e,t,Nl)}function wr(e,t){return Pt(t,(function(t){return Xi(e[t])}))}function Er(e,t){for(var n=0,r=(t=go(t,e)).length;null!=e&&n<r;)e=e[Ma(t[n++])];return n&&n==r?e:o}function Or(e,t,n){var r=t(e);return Hi(e)?r:At(r,n(e))}function _r(e){return null==e?e===o?"[object Undefined]":"[object Null]":Je&&Je in Se(e)?function(e){var t=Re.call(e,Je),n=e[Je];try{e[Je]=o;var r=!0}catch(e){}var a=Me.call(e);return r&&(t?e[Je]=n:delete e[Je]),a}(e):function(e){return Me.call(e)}(e)}function Sr(e,t){return e>t}function xr(e,t){return null!=e&&Re.call(e,t)}function kr(e,t){return null!=e&&t in Se(e)}function Cr(e,t,n){for(var a=n?Nt:Tt,i=e[0].length,l=e.length,u=l,c=r(l),s=1/0,f=[];u--;){var p=e[u];u&&t&&(p=jt(p,$t(t))),s=gn(p.length,s),c[u]=!n&&(t||i>=120&&p.length>=120)?new qn(u&&p):o}p=e[0];var d=-1,h=c[0];e:for(;++d<i&&f.length<s;){var m=p[d],y=t?t(m):m;if(m=n||0!==m?m:0,!(h?Qt(h,y):a(f,y,n))){for(u=l;--u;){var g=c[u];if(!(g?Qt(g,y):a(e[u],y,n)))continue e}h&&h.push(y),f.push(m)}}return f}function Pr(e,t,n){var r=null==(e=xa(e,t=go(t,e)))?e:e[Ma($a(t))];return null==r?o:_t(r,e,n)}function Tr(e){return el(e)&&_r(e)==m}function Nr(e,t,n,r,a){return e===t||(null==e||null==t||!el(e)&&!el(t)?e!=e&&t!=t:function(e,t,n,r,a,i){var l=Hi(e),u=Hi(t),c=l?y:pa(e),s=u?y:pa(t),f=(c=c==m?S:c)==S,p=(s=s==m?S:s)==S,d=c==s;if(d&&Gi(e)){if(!Gi(t))return!1;l=!0,f=!1}if(d&&!f)return i||(i=new Gn),l||ul(e)?Zo(e,t,n,r,a,i):function(e,t,n,r,o,a,i){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!a(new Be(e),new Be(t)));case g:case v:case _:return Ui(+e,+t);case b:return e.name==t.name&&e.message==t.message;case k:case P:return e==t+"";case O:var l=on;case C:var u=1&r;if(l||(l=un),e.size!=t.size&&!u)return!1;var c=i.get(e);if(c)return c==t;r|=2,i.set(e,t);var s=Zo(l(e),l(t),r,o,a,i);return i.delete(e),s;case T:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,a,i);if(!(1&n)){var h=f&&Re.call(e,"__wrapped__"),w=p&&Re.call(t,"__wrapped__");if(h||w){var E=h?e.value():e,x=w?t.value():t;return i||(i=new Gn),a(E,x,n,r,i)}}return!!d&&(i||(i=new Gn),function(e,t,n,r,a,i){var l=1&n,u=ta(e),c=u.length;if(c!=ta(t).length&&!l)return!1;for(var s=c;s--;){var f=u[s];if(!(l?f in t:Re.call(t,f)))return!1}var p=i.get(e),d=i.get(t);if(p&&d)return p==t&&d==e;var h=!0;i.set(e,t),i.set(t,e);for(var m=l;++s<c;){var y=e[f=u[s]],g=t[f];if(r)var v=l?r(g,y,f,t,e,i):r(y,g,f,e,t,i);if(!(v===o?y===g||a(y,g,n,r,i):v)){h=!1;break}m||(m="constructor"==f)}if(h&&!m){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(h=!1)}return i.delete(e),i.delete(t),h}(e,t,n,r,a,i))}(e,t,n,r,Nr,a))}function jr(e,t,n,r){var a=n.length,i=a,l=!r;if(null==e)return!i;for(e=Se(e);a--;){var u=n[a];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++a<i;){var c=(u=n[a])[0],s=e[c],f=u[1];if(l&&u[2]){if(s===o&&!(c in e))return!1}else{var p=new Gn;if(r)var d=r(s,f,c,e,t,p);if(!(d===o?Nr(f,s,3,r,p):d))return!1}}return!0}function Ar(e){return!(!Zi(e)||(t=e,De&&De in t))&&(Xi(e)?Ue:me).test(Fa(e));var t}function Rr(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Hi(e)?Lr(e[0],e[1]):Fr(e):fu(e)}function Ir(e){if(!Ea(e))return mn(e);var t=[];for(var n in Se(e))Re.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Dr(e,t){return e<t}function Mr(e,t){var n=-1,o=Ki(e)?r(e.length):[];return sr(e,(function(e,r,a){o[++n]=t(e,r,a)})),o}function Fr(e){var t=ua(e);return 1==t.length&&t[0][2]?_a(t[0][0],t[0][1]):function(n){return n===e||jr(n,e,t)}}function Lr(e,t){return va(e)&&Oa(t)?_a(Ma(e),t):function(n){var r=xl(n,e);return r===o&&r===t?kl(n,e):Nr(t,r,3)}}function Ur(e,t,n,r,a){e!==t&&yr(t,(function(i,l){if(a||(a=new Gn),Zi(i))!function(e,t,n,r,a,i,l){var u=ka(e,n),c=ka(t,n),s=l.get(c);if(s)Jn(e,n,s);else{var f=i?i(u,c,n+"",e,t,l):o,p=f===o;if(p){var d=Hi(c),h=!d&&Gi(c),m=!d&&!h&&ul(c);f=c,d||h||m?Hi(u)?f=u:qi(u)?f=Co(u):h?(p=!1,f=Eo(c,!0)):m?(p=!1,f=_o(c,!0)):f=[]:rl(c)||Bi(c)?(f=u,Bi(u)?f=yl(u):Zi(u)&&!Xi(u)||(f=ha(c))):p=!1}p&&(l.set(c,f),a(f,c,r,i,l),l.delete(c)),Jn(e,n,f)}}(e,t,l,n,Ur,r,a);else{var u=r?r(ka(e,l),i,l+"",e,t,a):o;u===o&&(u=i),Jn(e,l,u)}}),jl)}function zr(e,t){var n=e.length;if(n)return ya(t+=t<0?n:0,n)?e[t]:o}function Vr(e,t,n){t=t.length?jt(t,(function(e){return Hi(e)?function(t){return Er(t,1===e.length?e[0]:e)}:e})):[nu];var r=-1;t=jt(t,$t(ia()));var o=Mr(e,(function(e,n,o){var a=jt(t,(function(t){return t(e)}));return{criteria:a,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,a=t.criteria,i=o.length,l=n.length;++r<i;){var u=So(o[r],a[r]);if(u)return r>=l?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Br(e,t,n){for(var r=-1,o=t.length,a={};++r<o;){var i=t[r],l=Er(e,i);n(l,i)&&Xr(a,go(i,e),l)}return a}function Hr(e,t,n,r){var o=r?zt:Ut,a=-1,i=t.length,l=e;for(e===t&&(t=Co(t)),n&&(l=jt(e,$t(n)));++a<i;)for(var u=0,c=t[a],s=n?n(c):c;(u=o(l,s,u,r))>-1;)l!==e&&Ge.call(l,u,1),Ge.call(e,u,1);return e}function Wr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==a){var a=o;ya(o)?Ge.call(e,o,1):uo(e,o)}}return e}function Kr(e,t){return e+dt(wn()*(t-e+1))}function qr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=dt(t/2))&&(e+=e)}while(t);return n}function Gr(e,t){return Ta(Sa(e,t,nu),e+"")}function Yr(e){return $n(Ul(e))}function $r(e,t){var n=Ul(e);return Aa(n,ar(t,0,n.length))}function Xr(e,t,n,r){if(!Zi(e))return e;for(var a=-1,i=(t=go(t,e)).length,l=i-1,u=e;null!=u&&++a<i;){var c=Ma(t[a]),s=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=l){var f=u[c];(s=r?r(f,c,u):o)===o&&(s=Zi(f)?f:ya(t[a+1])?[]:{})}Zn(u,c,s),u=u[c]}return e}var Qr=Pn?function(e,t){return Pn.set(e,t),e}:nu,Jr=et?function(e,t){return et(e,"toString",{configurable:!0,enumerable:!1,value:Zl(t),writable:!0})}:nu;function Zr(e){return Aa(Ul(e))}function eo(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=r(a);++o<a;)i[o]=e[o+t];return i}function to(e,t){var n;return sr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function no(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var a=r+o>>>1,i=e[a];null!==i&&!ll(i)&&(n?i<=t:i<t)?r=a+1:o=a}return o}return ro(e,t,nu,n)}function ro(e,t,n,r){var a=0,i=null==e?0:e.length;if(0===i)return 0;for(var l=(t=n(t))!=t,u=null===t,c=ll(t),s=t===o;a<i;){var f=dt((a+i)/2),p=n(e[f]),d=p!==o,h=null===p,m=p==p,y=ll(p);if(l)var g=r||m;else g=s?m&&(r||d):u?m&&d&&(r||!h):c?m&&d&&!h&&(r||!y):!h&&!y&&(r?p<=t:p<t);g?a=f+1:i=f}return gn(i,4294967294)}function oo(e,t){for(var n=-1,r=e.length,o=0,a=[];++n<r;){var i=e[n],l=t?t(i):i;if(!n||!Ui(l,u)){var u=l;a[o++]=0===i?0:i}}return a}function ao(e){return"number"==typeof e?e:ll(e)?p:+e}function io(e){if("string"==typeof e)return e;if(Hi(e))return jt(e,io)+"";if(ll(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function lo(e,t,n){var r=-1,o=Tt,a=e.length,i=!0,l=[],u=l;if(n)i=!1,o=Nt;else if(a>=200){var c=t?null:Go(e);if(c)return un(c);i=!1,o=Qt,u=new qn}else u=t?[]:l;e:for(;++r<a;){var s=e[r],f=t?t(s):s;if(s=n||0!==s?s:0,i&&f==f){for(var p=u.length;p--;)if(u[p]===f)continue e;t&&u.push(f),l.push(s)}else o(u,f,n)||(u!==l&&u.push(f),l.push(s))}return l}function uo(e,t){return null==(e=xa(e,t=go(t,e)))||delete e[Ma($a(t))]}function co(e,t,n,r){return Xr(e,t,n(Er(e,t)),r)}function so(e,t,n,r){for(var o=e.length,a=r?o:-1;(r?a--:++a<o)&&t(e[a],a,e););return n?eo(e,r?0:a,r?a+1:o):eo(e,r?a+1:0,r?o:a)}function fo(e,t){var n=e;return n instanceof Bn&&(n=n.value()),Rt(t,(function(e,t){return t.func.apply(t.thisArg,At([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var a=-1,i=r(o);++a<o;)for(var l=e[a],u=-1;++u<o;)u!=a&&(i[a]=cr(i[a]||l,e[u],t,n));return lo(mr(i,1),t,n)}function ho(e,t,n){for(var r=-1,a=e.length,i=t.length,l={};++r<a;){var u=r<i?t[r]:o;n(l,e[r],u)}return l}function mo(e){return qi(e)?e:[]}function yo(e){return"function"==typeof e?e:nu}function go(e,t){return Hi(e)?e:va(e,t)?[e]:Da(gl(e))}var vo=Gr;function bo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:eo(e,t,n)}var wo=it||function(e){return ft.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Oo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function _o(e,t){var n=t?Oo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function So(e,t){if(e!==t){var n=e!==o,r=null===e,a=e==e,i=ll(e),l=t!==o,u=null===t,c=t==t,s=ll(t);if(!u&&!s&&!i&&e>t||i&&l&&c&&!u&&!s||r&&l&&c||!n&&c||!a)return 1;if(!r&&!i&&!s&&e<t||s&&n&&a&&!r&&!i||u&&n&&a||!l&&a||!c)return-1}return 0}function xo(e,t,n,o){for(var a=-1,i=e.length,l=n.length,u=-1,c=t.length,s=yn(i-l,0),f=r(c+s),p=!o;++u<c;)f[u]=t[u];for(;++a<l;)(p||a<i)&&(f[n[a]]=e[a]);for(;s--;)f[u++]=e[a++];return f}function ko(e,t,n,o){for(var a=-1,i=e.length,l=-1,u=n.length,c=-1,s=t.length,f=yn(i-u,0),p=r(f+s),d=!o;++a<f;)p[a]=e[a];for(var h=a;++c<s;)p[h+c]=t[c];for(;++l<u;)(d||a<i)&&(p[h+n[l]]=e[a++]);return p}function Co(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function Po(e,t,n,r){var a=!n;n||(n={});for(var i=-1,l=t.length;++i<l;){var u=t[i],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),a?rr(n,u,c):Zn(n,u,c)}return n}function To(e,t){return function(n,r){var o=Hi(n)?St:tr,a=t?t():{};return o(n,e,ia(r,2),a)}}function No(e){return Gr((function(t,n){var r=-1,a=n.length,i=a>1?n[a-1]:o,l=a>2?n[2]:o;for(i=e.length>3&&"function"==typeof i?(a--,i):o,l&&ga(n[0],n[1],l)&&(i=a<3?o:i,a=1),t=Se(t);++r<a;){var u=n[r];u&&e(t,u,r,i)}return t}))}function jo(e,t){return function(n,r){if(null==n)return n;if(!Ki(n))return e(n,r);for(var o=n.length,a=t?o:-1,i=Se(n);(t?a--:++a<o)&&!1!==r(i[a],a,i););return n}}function Ao(e){return function(t,n,r){for(var o=-1,a=Se(t),i=r(t),l=i.length;l--;){var u=i[e?l:++o];if(!1===n(a[u],u,a))break}return t}}function Ro(e){return function(t){var n=rn(t=gl(t))?fn(t):o,r=n?n[0]:t.charAt(0),a=n?bo(n,1).join(""):t.slice(1);return r[e]()+a}}function Io(e){return function(t){return Rt(Xl(Bl(t).replace(Xe,"")),e,"")}}function Do(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Un(e.prototype),r=e.apply(n,t);return Zi(r)?r:n}}function Mo(e){return function(t,n,r){var a=Se(t);if(!Ki(t)){var i=ia(n,3);t=Nl(t),n=function(e){return i(a[e],e,a)}}var l=e(t,n,r);return l>-1?a[i?t[l]:l]:o}}function Fo(e){return ea((function(t){var n=t.length,r=n,i=Vn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Ce(a);if(i&&!u&&"wrapper"==oa(l))var u=new Vn([],!0)}for(r=u?r:n;++r<n;){var c=oa(l=t[r]),s="wrapper"==c?ra(l):o;u=s&&ba(s[0])&&424==s[1]&&!s[4].length&&1==s[9]?u[oa(s[0])].apply(u,s[3]):1==l.length&&ba(l)?u[c]():u.thru(l)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Hi(r))return u.plant(r).value();for(var o=0,a=n?t[o].apply(this,e):r;++o<n;)a=t[o].call(this,a);return a}}))}function Lo(e,t,n,a,i,l,u,s,f,p){var d=t&c,h=1&t,m=2&t,y=24&t,g=512&t,v=m?o:Do(e);return function c(){for(var b=arguments.length,w=r(b),E=b;E--;)w[E]=arguments[E];if(y)var O=aa(c),_=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,O);if(a&&(w=xo(w,a,i,y)),l&&(w=ko(w,l,u,y)),b-=_,y&&b<p){var S=ln(w,O);return Ko(e,t,Lo,c.placeholder,n,w,S,s,f,p-b)}var x=h?n:this,k=m?x[e]:e;return b=w.length,s?w=function(e,t){for(var n=e.length,r=gn(t.length,n),a=Co(e);r--;){var i=t[r];e[r]=ya(i,n)?a[i]:o}return e}(w,s):g&&b>1&&w.reverse(),d&&f<b&&(w.length=f),this&&this!==ft&&this instanceof c&&(k=v||Do(k)),k.apply(x,w)}}function Uo(e,t){return function(n,r){return function(e,t,n,r){return vr(e,(function(e,o,a){t(r,n(e),o,a)})),r}(n,e,t(r),{})}}function zo(e,t){return function(n,r){var a;if(n===o&&r===o)return t;if(n!==o&&(a=n),r!==o){if(a===o)return r;"string"==typeof n||"string"==typeof r?(n=io(n),r=io(r)):(n=ao(n),r=ao(r)),a=e(n,r)}return a}}function Vo(e){return ea((function(t){return t=jt(t,$t(ia())),Gr((function(n){var r=this;return e(t,(function(e){return _t(e,r,n)}))}))}))}function Bo(e,t){var n=(t=t===o?" ":io(t)).length;if(n<2)return n?qr(t,e):t;var r=qr(t,pt(e/sn(t)));return rn(t)?bo(fn(r),0,e).join(""):r.slice(0,e)}function Ho(e){return function(t,n,a){return a&&"number"!=typeof a&&ga(t,n,a)&&(n=a=o),t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n,o){for(var a=-1,i=yn(pt((t-e)/(n||1)),0),l=r(i);i--;)l[o?i:++a]=e,e+=n;return l}(t,n,a=a===o?t<n?1:-1:pl(a),e)}}function Wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ml(t),n=ml(n)),e(t,n)}}function Ko(e,t,n,r,a,i,l,c,s,f){var p=8&t;t|=p?u:64,4&(t&=~(p?64:u))||(t&=-4);var d=[e,t,a,p?i:o,p?l:o,p?o:i,p?o:l,c,s,f],h=n.apply(o,d);return ba(e)&&Ca(h,d),h.placeholder=r,Na(h,e,t)}function qo(e){var t=_e[e];return function(e,n){if(e=ml(e),(n=null==n?0:gn(dl(n),292))&&Mt(e)){var r=(gl(e)+"e").split("e");return+((r=(gl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Go=xn&&1/un(new xn([,-0]))[1]==s?function(e){return new xn(e)}:lu;function Yo(e){return function(t){var n=pa(t);return n==O?on(t):n==C?cn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function $o(e,t,n,i,s,f,p,d){var h=2&t;if(!h&&"function"!=typeof e)throw new Ce(a);var m=i?i.length:0;if(m||(t&=-97,i=s=o),p=p===o?p:yn(dl(p),0),d=d===o?d:dl(d),m-=s?s.length:0,64&t){var y=i,g=s;i=s=o}var v=h?o:ra(e),b=[e,t,n,i,s,y,g,f,p,d];if(v&&function(e,t){var n=e[1],r=t[1],o=n|r,a=o<131,i=r==c&&8==n||r==c&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!i)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var s=e[3];e[3]=s?xo(s,u,t[4]):u,e[4]=s?ln(e[3],l):t[4]}(u=t[5])&&(s=e[5],e[5]=s?ko(s,u,t[6]):u,e[6]=s?ln(e[5],l):t[6]),(u=t[7])&&(e[7]=u),r&c&&(e[8]=null==e[8]?t[8]:gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,v),e=b[0],t=b[1],n=b[2],i=b[3],s=b[4],!(d=b[9]=b[9]===o?h?0:e.length:yn(b[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var a=Do(e);return function i(){for(var l=arguments.length,u=r(l),c=l,s=aa(i);c--;)u[c]=arguments[c];var f=l<3&&u[0]!==s&&u[l-1]!==s?[]:ln(u,s);return(l-=f.length)<n?Ko(e,t,Lo,i.placeholder,o,u,f,o,o,n-l):_t(this&&this!==ft&&this instanceof i?a:e,this,u)}}(e,t,d):t!=u&&33!=t||s.length?Lo.apply(o,b):function(e,t,n,o){var a=1&t,i=Do(e);return function t(){for(var l=-1,u=arguments.length,c=-1,s=o.length,f=r(s+u),p=this&&this!==ft&&this instanceof t?i:e;++c<s;)f[c]=o[c];for(;u--;)f[c++]=arguments[++l];return _t(p,a?n:this,f)}}(e,t,n,i);else var w=function(e,t,n){var r=1&t,o=Do(e);return function t(){return(this&&this!==ft&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Na((v?Qr:Ca)(w,b),e,t)}function Xo(e,t,n,r){return e===o||Ui(e,Ne[n])&&!Re.call(r,n)?t:e}function Qo(e,t,n,r,a,i){return Zi(e)&&Zi(t)&&(i.set(t,e),Ur(e,t,o,Qo,i),i.delete(t)),e}function Jo(e){return rl(e)?o:e}function Zo(e,t,n,r,a,i){var l=1&n,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var s=i.get(e),f=i.get(t);if(s&&f)return s==t&&f==e;var p=-1,d=!0,h=2&n?new qn:o;for(i.set(e,t),i.set(t,e);++p<u;){var m=e[p],y=t[p];if(r)var g=l?r(y,m,p,t,e,i):r(m,y,p,e,t,i);if(g!==o){if(g)continue;d=!1;break}if(h){if(!Dt(t,(function(e,t){if(!Qt(h,t)&&(m===e||a(m,e,n,r,i)))return h.push(t)}))){d=!1;break}}else if(m!==y&&!a(m,y,n,r,i)){d=!1;break}}return i.delete(e),i.delete(t),d}function ea(e){return Ta(Sa(e,o,Wa),e+"")}function ta(e){return Or(e,Nl,sa)}function na(e){return Or(e,jl,fa)}var ra=Pn?function(e){return Pn.get(e)}:lu;function oa(e){for(var t=e.name+"",n=Tn[t],r=Re.call(Tn,t)?n.length:0;r--;){var o=n[r],a=o.func;if(null==a||a==e)return o.name}return t}function aa(e){return(Re.call(Ln,"placeholder")?Ln:e).placeholder}function ia(){var e=Ln.iteratee||ru;return e=e===ru?Rr:e,arguments.length?e(arguments[0],arguments[1]):e}function la(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function ua(e){for(var t=Nl(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Oa(o)]}return t}function ca(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Ar(n)?n:o}var sa=mt?function(e){return null==e?[]:(e=Se(e),Pt(mt(e),(function(t){return qe.call(e,t)})))}:hu,fa=mt?function(e){for(var t=[];e;)At(t,sa(e)),e=We(e);return t}:hu,pa=_r;function da(e,t,n){for(var r=-1,o=(t=go(t,e)).length,a=!1;++r<o;){var i=Ma(t[r]);if(!(a=null!=e&&n(e,i)))break;e=e[i]}return a||++r!=o?a:!!(o=null==e?0:e.length)&&Ji(o)&&ya(i,o)&&(Hi(e)||Bi(e))}function ha(e){return"function"!=typeof e.constructor||Ea(e)?{}:Un(We(e))}function ma(e){return Hi(e)||Bi(e)||!!(Ye&&e&&e[Ye])}function ya(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ge.test(e))&&e>-1&&e%1==0&&e<t}function ga(e,t,n){if(!Zi(n))return!1;var r=typeof t;return!!("number"==r?Ki(n)&&ya(t,n.length):"string"==r&&t in n)&&Ui(n[t],e)}function va(e,t){if(Hi(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ll(e))||Z.test(e)||!J.test(e)||null!=t&&e in Se(t)}function ba(e){var t=oa(e),n=Ln[t];if("function"!=typeof n||!(t in Bn.prototype))return!1;if(e===n)return!0;var r=ra(n);return!!r&&e===r[0]}(On&&pa(new On(new ArrayBuffer(1)))!=A||_n&&pa(new _n)!=O||Sn&&pa(Sn.resolve())!=x||xn&&pa(new xn)!=C||kn&&pa(new kn)!=N)&&(pa=function(e){var t=_r(e),n=t==S?e.constructor:o,r=n?Fa(n):"";if(r)switch(r){case Nn:return A;case jn:return O;case An:return x;case Rn:return C;case In:return N}return t});var wa=je?Xi:mu;function Ea(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ne)}function Oa(e){return e==e&&!Zi(e)}function _a(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Se(n))}}function Sa(e,t,n){return t=yn(t===o?e.length-1:t,0),function(){for(var o=arguments,a=-1,i=yn(o.length-t,0),l=r(i);++a<i;)l[a]=o[t+a];a=-1;for(var u=r(t+1);++a<t;)u[a]=o[a];return u[t]=n(l),_t(e,this,u)}}function xa(e,t){return t.length<2?e:Er(e,eo(t,0,-1))}function ka(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ca=ja(Qr),Pa=st||function(e,t){return ft.setTimeout(e,t)},Ta=ja(Jr);function Na(e,t,n){var r=t+"";return Ta(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return xt(h,(function(n){var r="_."+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ie);return t?t[1].split(le):[]}(r),n)))}function ja(e){var t=0,n=0;return function(){var r=vn(),a=16-(r-n);if(n=r,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Aa(e,t){var n=-1,r=e.length,a=r-1;for(t=t===o?r:t;++n<t;){var i=Kr(n,a),l=e[i];e[i]=e[n],e[n]=l}return e.length=t,e}var Ra,Ia,Da=(Ra=Ri((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(se,"$1"):n||e)})),t}),(function(e){return 500===Ia.size&&Ia.clear(),e})),Ia=Ra.cache,Ra);function Ma(e){if("string"==typeof e||ll(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fa(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function La(e){if(e instanceof Bn)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Co(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ua=Gr((function(e,t){return qi(e)?cr(e,mr(t,1,qi,!0)):[]})),za=Gr((function(e,t){var n=$a(t);return qi(n)&&(n=o),qi(e)?cr(e,mr(t,1,qi,!0),ia(n,2)):[]})),Va=Gr((function(e,t){var n=$a(t);return qi(n)&&(n=o),qi(e)?cr(e,mr(t,1,qi,!0),o,n):[]}));function Ba(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:dl(n);return o<0&&(o=yn(r+o,0)),Lt(e,ia(t,3),o)}function Ha(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r-1;return n!==o&&(a=dl(n),a=n<0?yn(r+a,0):gn(a,r-1)),Lt(e,ia(t,3),a,!0)}function Wa(e){return null!=e&&e.length?mr(e,1):[]}function Ka(e){return e&&e.length?e[0]:o}var qa=Gr((function(e){var t=jt(e,mo);return t.length&&t[0]===e[0]?Cr(t):[]})),Ga=Gr((function(e){var t=$a(e),n=jt(e,mo);return t===$a(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Cr(n,ia(t,2)):[]})),Ya=Gr((function(e){var t=$a(e),n=jt(e,mo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Cr(n,o,t):[]}));function $a(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Xa=Gr(Qa);function Qa(e,t){return e&&e.length&&t&&t.length?Hr(e,t):e}var Ja=ea((function(e,t){var n=null==e?0:e.length,r=or(e,t);return Wr(e,jt(t,(function(e){return ya(e,n)?+e:e})).sort(So)),r}));function Za(e){return null==e?e:En.call(e)}var ei=Gr((function(e){return lo(mr(e,1,qi,!0))})),ti=Gr((function(e){var t=$a(e);return qi(t)&&(t=o),lo(mr(e,1,qi,!0),ia(t,2))})),ni=Gr((function(e){var t=$a(e);return t="function"==typeof t?t:o,lo(mr(e,1,qi,!0),o,t)}));function ri(e){if(!e||!e.length)return[];var t=0;return e=Pt(e,(function(e){if(qi(e))return t=yn(e.length,t),!0})),Gt(t,(function(t){return jt(e,Ht(t))}))}function oi(e,t){if(!e||!e.length)return[];var n=ri(e);return null==t?n:jt(n,(function(e){return _t(t,o,e)}))}var ai=Gr((function(e,t){return qi(e)?cr(e,t):[]})),ii=Gr((function(e){return po(Pt(e,qi))})),li=Gr((function(e){var t=$a(e);return qi(t)&&(t=o),po(Pt(e,qi),ia(t,2))})),ui=Gr((function(e){var t=$a(e);return t="function"==typeof t?t:o,po(Pt(e,qi),o,t)})),ci=Gr(ri),si=Gr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,oi(e,n)}));function fi(e){var t=Ln(e);return t.__chain__=!0,t}function pi(e,t){return t(e)}var di=ea((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Bn&&ya(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pi,args:[a],thisArg:o}),new Vn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(a)})),hi=To((function(e,t,n){Re.call(e,n)?++e[n]:rr(e,n,1)})),mi=Mo(Ba),yi=Mo(Ha);function gi(e,t){return(Hi(e)?xt:sr)(e,ia(t,3))}function vi(e,t){return(Hi(e)?kt:fr)(e,ia(t,3))}var bi=To((function(e,t,n){Re.call(e,n)?e[n].push(t):rr(e,n,[t])})),wi=Gr((function(e,t,n){var o=-1,a="function"==typeof t,i=Ki(e)?r(e.length):[];return sr(e,(function(e){i[++o]=a?_t(t,e,n):Pr(e,t,n)})),i})),Ei=To((function(e,t,n){rr(e,n,t)}));function Oi(e,t){return(Hi(e)?jt:Mr)(e,ia(t,3))}var _i=To((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Si=Gr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ga(e,t[0],t[1])?t=[]:n>2&&ga(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,mr(t,1),[])})),xi=ct||function(){return ft.Date.now()};function ki(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,$o(e,c,o,o,o,o,t)}function Ci(e,t){var n;if("function"!=typeof t)throw new Ce(a);return e=dl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Pi=Gr((function(e,t,n){var r=1;if(n.length){var o=ln(n,aa(Pi));r|=u}return $o(e,r,t,n,o)})),Ti=Gr((function(e,t,n){var r=3;if(n.length){var o=ln(n,aa(Ti));r|=u}return $o(t,r,e,n,o)}));function Ni(e,t,n){var r,i,l,u,c,s,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new Ce(a);function m(t){var n=r,a=i;return r=i=o,f=t,u=e.apply(a,n)}function y(e){var n=e-s;return s===o||n>=t||n<0||d&&e-f>=l}function g(){var e=xi();if(y(e))return v(e);c=Pa(g,function(e){var n=t-(e-s);return d?gn(n,l-(e-f)):n}(e))}function v(e){return c=o,h&&r?m(e):(r=i=o,u)}function b(){var e=xi(),n=y(e);if(r=arguments,i=this,s=e,n){if(c===o)return function(e){return f=e,c=Pa(g,t),p?m(e):u}(s);if(d)return wo(c),c=Pa(g,t),m(s)}return c===o&&(c=Pa(g,t)),u}return t=ml(t)||0,Zi(n)&&(p=!!n.leading,l=(d="maxWait"in n)?yn(ml(n.maxWait)||0,t):l,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&wo(c),f=0,r=s=i=c=o},b.flush=function(){return c===o?u:v(xi())},b}var ji=Gr((function(e,t){return ur(e,1,t)})),Ai=Gr((function(e,t,n){return ur(e,ml(t)||0,n)}));function Ri(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(a);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var i=e.apply(this,r);return n.cache=a.set(o,i)||a,i};return n.cache=new(Ri.Cache||Kn),n}function Ii(e){if("function"!=typeof e)throw new Ce(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ri.Cache=Kn;var Di=vo((function(e,t){var n=(t=1==t.length&&Hi(t[0])?jt(t[0],$t(ia())):jt(mr(t,1),$t(ia()))).length;return Gr((function(r){for(var o=-1,a=gn(r.length,n);++o<a;)r[o]=t[o].call(this,r[o]);return _t(e,this,r)}))})),Mi=Gr((function(e,t){var n=ln(t,aa(Mi));return $o(e,u,o,t,n)})),Fi=Gr((function(e,t){var n=ln(t,aa(Fi));return $o(e,64,o,t,n)})),Li=ea((function(e,t){return $o(e,256,o,o,o,t)}));function Ui(e,t){return e===t||e!=e&&t!=t}var zi=Wo(Sr),Vi=Wo((function(e,t){return e>=t})),Bi=Tr(function(){return arguments}())?Tr:function(e){return el(e)&&Re.call(e,"callee")&&!qe.call(e,"callee")},Hi=r.isArray,Wi=gt?$t(gt):function(e){return el(e)&&_r(e)==j};function Ki(e){return null!=e&&Ji(e.length)&&!Xi(e)}function qi(e){return el(e)&&Ki(e)}var Gi=yt||mu,Yi=vt?$t(vt):function(e){return el(e)&&_r(e)==v};function $i(e){if(!el(e))return!1;var t=_r(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!rl(e)}function Xi(e){if(!Zi(e))return!1;var t=_r(e);return t==w||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qi(e){return"number"==typeof e&&e==dl(e)}function Ji(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function Zi(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function el(e){return null!=e&&"object"==typeof e}var tl=bt?$t(bt):function(e){return el(e)&&pa(e)==O};function nl(e){return"number"==typeof e||el(e)&&_r(e)==_}function rl(e){if(!el(e)||_r(e)!=S)return!1;var t=We(e);if(null===t)return!0;var n=Re.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Fe}var ol=wt?$t(wt):function(e){return el(e)&&_r(e)==k},al=Et?$t(Et):function(e){return el(e)&&pa(e)==C};function il(e){return"string"==typeof e||!Hi(e)&&el(e)&&_r(e)==P}function ll(e){return"symbol"==typeof e||el(e)&&_r(e)==T}var ul=Ot?$t(Ot):function(e){return el(e)&&Ji(e.length)&&!!ot[_r(e)]},cl=Wo(Dr),sl=Wo((function(e,t){return e<=t}));function fl(e){if(!e)return[];if(Ki(e))return il(e)?fn(e):Co(e);if($e&&e[$e])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[$e]());var t=pa(e);return(t==O?on:t==C?un:Ul)(e)}function pl(e){return e?(e=ml(e))===s||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function dl(e){var t=pl(e),n=t%1;return t==t?n?t-n:t:0}function hl(e){return e?ar(dl(e),0,d):0}function ml(e){if("number"==typeof e)return e;if(ll(e))return p;if(Zi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=he.test(e);return n||ye.test(e)?ut(e.slice(2),n?2:8):de.test(e)?p:+e}function yl(e){return Po(e,jl(e))}function gl(e){return null==e?"":io(e)}var vl=No((function(e,t){if(Ea(t)||Ki(t))Po(t,Nl(t),e);else for(var n in t)Re.call(t,n)&&Zn(e,n,t[n])})),bl=No((function(e,t){Po(t,jl(t),e)})),wl=No((function(e,t,n,r){Po(t,jl(t),e,r)})),El=No((function(e,t,n,r){Po(t,Nl(t),e,r)})),Ol=ea(or),_l=Gr((function(e,t){e=Se(e);var n=-1,r=t.length,a=r>2?t[2]:o;for(a&&ga(t[0],t[1],a)&&(r=1);++n<r;)for(var i=t[n],l=jl(i),u=-1,c=l.length;++u<c;){var s=l[u],f=e[s];(f===o||Ui(f,Ne[s])&&!Re.call(e,s))&&(e[s]=i[s])}return e})),Sl=Gr((function(e){return e.push(o,Qo),_t(Rl,o,e)}));function xl(e,t,n){var r=null==e?o:Er(e,t);return r===o?n:r}function kl(e,t){return null!=e&&da(e,t,kr)}var Cl=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),Zl(nu)),Pl=Uo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),Re.call(e,t)?e[t].push(n):e[t]=[n]}),ia),Tl=Gr(Pr);function Nl(e){return Ki(e)?Yn(e):Ir(e)}function jl(e){return Ki(e)?Yn(e,!0):function(e){if(!Zi(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=Ea(e),n=[];for(var r in e)("constructor"!=r||!t&&Re.call(e,r))&&n.push(r);return n}(e)}var Al=No((function(e,t,n){Ur(e,t,n)})),Rl=No((function(e,t,n,r){Ur(e,t,n,r)})),Il=ea((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=go(t,e),r||(r=t.length>1),t})),Po(e,na(e),n),r&&(n=ir(n,7,Jo));for(var o=t.length;o--;)uo(n,t[o]);return n})),Dl=ea((function(e,t){return null==e?{}:function(e,t){return Br(e,t,(function(t,n){return kl(e,n)}))}(e,t)}));function Ml(e,t){if(null==e)return{};var n=jt(na(e),(function(e){return[e]}));return t=ia(t),Br(e,n,(function(e,n){return t(e,n[0])}))}var Fl=Yo(Nl),Ll=Yo(jl);function Ul(e){return null==e?[]:Xt(e,Nl(e))}var zl=Io((function(e,t,n){return t=t.toLowerCase(),e+(n?Vl(t):t)}));function Vl(e){return $l(gl(e).toLowerCase())}function Bl(e){return(e=gl(e))&&e.replace(ve,en).replace(Qe,"")}var Hl=Io((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Wl=Io((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Kl=Ro("toLowerCase"),ql=Io((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gl=Io((function(e,t,n){return e+(n?" ":"")+$l(t)})),Yl=Io((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),$l=Ro("toUpperCase");function Xl(e,t,n){return e=gl(e),(t=n?o:t)===o?function(e){return tt.test(e)}(e)?function(e){return e.match(Ze)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Ql=Gr((function(e,t){try{return _t(e,o,t)}catch(e){return $i(e)?e:new Ee(e)}})),Jl=ea((function(e,t){return xt(t,(function(t){t=Ma(t),rr(e,t,Pi(e[t],e))})),e}));function Zl(e){return function(){return e}}var eu=Fo(),tu=Fo(!0);function nu(e){return e}function ru(e){return Rr("function"==typeof e?e:ir(e,1))}var ou=Gr((function(e,t){return function(n){return Pr(n,e,t)}})),au=Gr((function(e,t){return function(n){return Pr(e,n,t)}}));function iu(e,t,n){var r=Nl(t),o=wr(t,r);null!=n||Zi(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=wr(t,Nl(t)));var a=!(Zi(n)&&"chain"in n&&!n.chain),i=Xi(e);return xt(o,(function(n){var r=t[n];e[n]=r,i&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Co(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,At([this.value()],arguments))})})),e}function lu(){}var uu=Vo(jt),cu=Vo(Ct),su=Vo(Dt);function fu(e){return va(e)?Ht(Ma(e)):function(e){return function(t){return Er(t,e)}}(e)}var pu=Ho(),du=Ho(!0);function hu(){return[]}function mu(){return!1}var yu,gu=zo((function(e,t){return e+t}),0),vu=qo("ceil"),bu=zo((function(e,t){return e/t}),1),wu=qo("floor"),Eu=zo((function(e,t){return e*t}),1),Ou=qo("round"),_u=zo((function(e,t){return e-t}),0);return Ln.after=function(e,t){if("function"!=typeof t)throw new Ce(a);return e=dl(e),function(){if(--e<1)return t.apply(this,arguments)}},Ln.ary=ki,Ln.assign=vl,Ln.assignIn=bl,Ln.assignInWith=wl,Ln.assignWith=El,Ln.at=Ol,Ln.before=Ci,Ln.bind=Pi,Ln.bindAll=Jl,Ln.bindKey=Ti,Ln.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hi(e)?e:[e]},Ln.chain=fi,Ln.chunk=function(e,t,n){t=(n?ga(e,t,n):t===o)?1:yn(dl(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var i=0,l=0,u=r(pt(a/t));i<a;)u[l++]=eo(e,i,i+=t);return u},Ln.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var a=e[t];a&&(o[r++]=a)}return o},Ln.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return At(Hi(n)?Co(n):[n],mr(t,1))},Ln.cond=function(e){var t=null==e?0:e.length,n=ia();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Ce(a);return[n(e[0]),e[1]]})):[],Gr((function(n){for(var r=-1;++r<t;){var o=e[r];if(_t(o[0],this,n))return _t(o[1],this,n)}}))},Ln.conforms=function(e){return function(e){var t=Nl(e);return function(n){return lr(n,e,t)}}(ir(e,1))},Ln.constant=Zl,Ln.countBy=hi,Ln.create=function(e,t){var n=Un(e);return null==t?n:nr(n,t)},Ln.curry=function e(t,n,r){var a=$o(t,8,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},Ln.curryRight=function e(t,n,r){var a=$o(t,16,o,o,o,o,o,n=r?o:n);return a.placeholder=e.placeholder,a},Ln.debounce=Ni,Ln.defaults=_l,Ln.defaultsDeep=Sl,Ln.defer=ji,Ln.delay=Ai,Ln.difference=Ua,Ln.differenceBy=za,Ln.differenceWith=Va,Ln.drop=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=n||t===o?1:dl(t))<0?0:t,r):[]},Ln.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,0,(t=r-(t=n||t===o?1:dl(t)))<0?0:t):[]},Ln.dropRightWhile=function(e,t){return e&&e.length?so(e,ia(t,3),!0,!0):[]},Ln.dropWhile=function(e,t){return e&&e.length?so(e,ia(t,3),!0):[]},Ln.fill=function(e,t,n,r){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&ga(e,t,n)&&(n=0,r=a),function(e,t,n,r){var a=e.length;for((n=dl(n))<0&&(n=-n>a?0:a+n),(r=r===o||r>a?a:dl(r))<0&&(r+=a),r=n>r?0:hl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Ln.filter=function(e,t){return(Hi(e)?Pt:hr)(e,ia(t,3))},Ln.flatMap=function(e,t){return mr(Oi(e,t),1)},Ln.flatMapDeep=function(e,t){return mr(Oi(e,t),s)},Ln.flatMapDepth=function(e,t,n){return n=n===o?1:dl(n),mr(Oi(e,t),n)},Ln.flatten=Wa,Ln.flattenDeep=function(e){return null!=e&&e.length?mr(e,s):[]},Ln.flattenDepth=function(e,t){return null!=e&&e.length?mr(e,t=t===o?1:dl(t)):[]},Ln.flip=function(e){return $o(e,512)},Ln.flow=eu,Ln.flowRight=tu,Ln.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Ln.functions=function(e){return null==e?[]:wr(e,Nl(e))},Ln.functionsIn=function(e){return null==e?[]:wr(e,jl(e))},Ln.groupBy=bi,Ln.initial=function(e){return null!=e&&e.length?eo(e,0,-1):[]},Ln.intersection=qa,Ln.intersectionBy=Ga,Ln.intersectionWith=Ya,Ln.invert=Cl,Ln.invertBy=Pl,Ln.invokeMap=wi,Ln.iteratee=ru,Ln.keyBy=Ei,Ln.keys=Nl,Ln.keysIn=jl,Ln.map=Oi,Ln.mapKeys=function(e,t){var n={};return t=ia(t,3),vr(e,(function(e,r,o){rr(n,t(e,r,o),e)})),n},Ln.mapValues=function(e,t){var n={};return t=ia(t,3),vr(e,(function(e,r,o){rr(n,r,t(e,r,o))})),n},Ln.matches=function(e){return Fr(ir(e,1))},Ln.matchesProperty=function(e,t){return Lr(e,ir(t,1))},Ln.memoize=Ri,Ln.merge=Al,Ln.mergeWith=Rl,Ln.method=ou,Ln.methodOf=au,Ln.mixin=iu,Ln.negate=Ii,Ln.nthArg=function(e){return e=dl(e),Gr((function(t){return zr(t,e)}))},Ln.omit=Il,Ln.omitBy=function(e,t){return Ml(e,Ii(ia(t)))},Ln.once=function(e){return Ci(2,e)},Ln.orderBy=function(e,t,n,r){return null==e?[]:(Hi(t)||(t=null==t?[]:[t]),Hi(n=r?o:n)||(n=null==n?[]:[n]),Vr(e,t,n))},Ln.over=uu,Ln.overArgs=Di,Ln.overEvery=cu,Ln.overSome=su,Ln.partial=Mi,Ln.partialRight=Fi,Ln.partition=_i,Ln.pick=Dl,Ln.pickBy=Ml,Ln.property=fu,Ln.propertyOf=function(e){return function(t){return null==e?o:Er(e,t)}},Ln.pull=Xa,Ln.pullAll=Qa,Ln.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,ia(n,2)):e},Ln.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Hr(e,t,o,n):e},Ln.pullAt=Ja,Ln.range=pu,Ln.rangeRight=du,Ln.rearg=Li,Ln.reject=function(e,t){return(Hi(e)?Pt:hr)(e,Ii(ia(t,3)))},Ln.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],a=e.length;for(t=ia(t,3);++r<a;){var i=e[r];t(i,r,e)&&(n.push(i),o.push(r))}return Wr(e,o),n},Ln.rest=function(e,t){if("function"!=typeof e)throw new Ce(a);return Gr(e,t=t===o?t:dl(t))},Ln.reverse=Za,Ln.sampleSize=function(e,t,n){return t=(n?ga(e,t,n):t===o)?1:dl(t),(Hi(e)?Xn:$r)(e,t)},Ln.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Ln.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Xr(e,t,n,r)},Ln.shuffle=function(e){return(Hi(e)?Qn:Zr)(e)},Ln.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&ga(e,t,n)?(t=0,n=r):(t=null==t?0:dl(t),n=n===o?r:dl(n)),eo(e,t,n)):[]},Ln.sortBy=Si,Ln.sortedUniq=function(e){return e&&e.length?oo(e):[]},Ln.sortedUniqBy=function(e,t){return e&&e.length?oo(e,ia(t,2)):[]},Ln.split=function(e,t,n){return n&&"number"!=typeof n&&ga(e,t,n)&&(t=n=o),(n=n===o?d:n>>>0)?(e=gl(e))&&("string"==typeof t||null!=t&&!ol(t))&&!(t=io(t))&&rn(e)?bo(fn(e),0,n):e.split(t,n):[]},Ln.spread=function(e,t){if("function"!=typeof e)throw new Ce(a);return t=null==t?0:yn(dl(t),0),Gr((function(n){var r=n[t],o=bo(n,0,t);return r&&At(o,r),_t(e,this,o)}))},Ln.tail=function(e){var t=null==e?0:e.length;return t?eo(e,1,t):[]},Ln.take=function(e,t,n){return e&&e.length?eo(e,0,(t=n||t===o?1:dl(t))<0?0:t):[]},Ln.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?eo(e,(t=r-(t=n||t===o?1:dl(t)))<0?0:t,r):[]},Ln.takeRightWhile=function(e,t){return e&&e.length?so(e,ia(t,3),!1,!0):[]},Ln.takeWhile=function(e,t){return e&&e.length?so(e,ia(t,3)):[]},Ln.tap=function(e,t){return t(e),e},Ln.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Ce(a);return Zi(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Ni(e,t,{leading:r,maxWait:t,trailing:o})},Ln.thru=pi,Ln.toArray=fl,Ln.toPairs=Fl,Ln.toPairsIn=Ll,Ln.toPath=function(e){return Hi(e)?jt(e,Ma):ll(e)?[e]:Co(Da(gl(e)))},Ln.toPlainObject=yl,Ln.transform=function(e,t,n){var r=Hi(e),o=r||Gi(e)||ul(e);if(t=ia(t,4),null==n){var a=e&&e.constructor;n=o?r?new a:[]:Zi(e)&&Xi(a)?Un(We(e)):{}}return(o?xt:vr)(e,(function(e,r,o){return t(n,e,r,o)})),n},Ln.unary=function(e){return ki(e,1)},Ln.union=ei,Ln.unionBy=ti,Ln.unionWith=ni,Ln.uniq=function(e){return e&&e.length?lo(e):[]},Ln.uniqBy=function(e,t){return e&&e.length?lo(e,ia(t,2)):[]},Ln.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},Ln.unset=function(e,t){return null==e||uo(e,t)},Ln.unzip=ri,Ln.unzipWith=oi,Ln.update=function(e,t,n){return null==e?e:co(e,t,yo(n))},Ln.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,yo(n),r)},Ln.values=Ul,Ln.valuesIn=function(e){return null==e?[]:Xt(e,jl(e))},Ln.without=ai,Ln.words=Xl,Ln.wrap=function(e,t){return Mi(yo(t),e)},Ln.xor=ii,Ln.xorBy=li,Ln.xorWith=ui,Ln.zip=ci,Ln.zipObject=function(e,t){return ho(e||[],t||[],Zn)},Ln.zipObjectDeep=function(e,t){return ho(e||[],t||[],Xr)},Ln.zipWith=si,Ln.entries=Fl,Ln.entriesIn=Ll,Ln.extend=bl,Ln.extendWith=wl,iu(Ln,Ln),Ln.add=gu,Ln.attempt=Ql,Ln.camelCase=zl,Ln.capitalize=Vl,Ln.ceil=vu,Ln.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ml(n))==n?n:0),t!==o&&(t=(t=ml(t))==t?t:0),ar(ml(e),t,n)},Ln.clone=function(e){return ir(e,4)},Ln.cloneDeep=function(e){return ir(e,5)},Ln.cloneDeepWith=function(e,t){return ir(e,5,t="function"==typeof t?t:o)},Ln.cloneWith=function(e,t){return ir(e,4,t="function"==typeof t?t:o)},Ln.conformsTo=function(e,t){return null==t||lr(e,t,Nl(t))},Ln.deburr=Bl,Ln.defaultTo=function(e,t){return null==e||e!=e?t:e},Ln.divide=bu,Ln.endsWith=function(e,t,n){e=gl(e),t=io(t);var r=e.length,a=n=n===o?r:ar(dl(n),0,r);return(n-=t.length)>=0&&e.slice(n,a)==t},Ln.eq=Ui,Ln.escape=function(e){return(e=gl(e))&&Y.test(e)?e.replace(q,tn):e},Ln.escapeRegExp=function(e){return(e=gl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Ln.every=function(e,t,n){var r=Hi(e)?Ct:pr;return n&&ga(e,t,n)&&(t=o),r(e,ia(t,3))},Ln.find=mi,Ln.findIndex=Ba,Ln.findKey=function(e,t){return Ft(e,ia(t,3),vr)},Ln.findLast=yi,Ln.findLastIndex=Ha,Ln.findLastKey=function(e,t){return Ft(e,ia(t,3),br)},Ln.floor=wu,Ln.forEach=gi,Ln.forEachRight=vi,Ln.forIn=function(e,t){return null==e?e:yr(e,ia(t,3),jl)},Ln.forInRight=function(e,t){return null==e?e:gr(e,ia(t,3),jl)},Ln.forOwn=function(e,t){return e&&vr(e,ia(t,3))},Ln.forOwnRight=function(e,t){return e&&br(e,ia(t,3))},Ln.get=xl,Ln.gt=zi,Ln.gte=Vi,Ln.has=function(e,t){return null!=e&&da(e,t,xr)},Ln.hasIn=kl,Ln.head=Ka,Ln.identity=nu,Ln.includes=function(e,t,n,r){e=Ki(e)?e:Ul(e),n=n&&!r?dl(n):0;var o=e.length;return n<0&&(n=yn(o+n,0)),il(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Ut(e,t,n)>-1},Ln.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:dl(n);return o<0&&(o=yn(r+o,0)),Ut(e,t,o)},Ln.inRange=function(e,t,n){return t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n){return e>=gn(t,n)&&e<yn(t,n)}(e=ml(e),t,n)},Ln.invoke=Tl,Ln.isArguments=Bi,Ln.isArray=Hi,Ln.isArrayBuffer=Wi,Ln.isArrayLike=Ki,Ln.isArrayLikeObject=qi,Ln.isBoolean=function(e){return!0===e||!1===e||el(e)&&_r(e)==g},Ln.isBuffer=Gi,Ln.isDate=Yi,Ln.isElement=function(e){return el(e)&&1===e.nodeType&&!rl(e)},Ln.isEmpty=function(e){if(null==e)return!0;if(Ki(e)&&(Hi(e)||"string"==typeof e||"function"==typeof e.splice||Gi(e)||ul(e)||Bi(e)))return!e.length;var t=pa(e);if(t==O||t==C)return!e.size;if(Ea(e))return!Ir(e).length;for(var n in e)if(Re.call(e,n))return!1;return!0},Ln.isEqual=function(e,t){return Nr(e,t)},Ln.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?Nr(e,t,o,n):!!r},Ln.isError=$i,Ln.isFinite=function(e){return"number"==typeof e&&Mt(e)},Ln.isFunction=Xi,Ln.isInteger=Qi,Ln.isLength=Ji,Ln.isMap=tl,Ln.isMatch=function(e,t){return e===t||jr(e,t,ua(t))},Ln.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,jr(e,t,ua(t),n)},Ln.isNaN=function(e){return nl(e)&&e!=+e},Ln.isNative=function(e){if(wa(e))throw new Ee("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ar(e)},Ln.isNil=function(e){return null==e},Ln.isNull=function(e){return null===e},Ln.isNumber=nl,Ln.isObject=Zi,Ln.isObjectLike=el,Ln.isPlainObject=rl,Ln.isRegExp=ol,Ln.isSafeInteger=function(e){return Qi(e)&&e>=-9007199254740991&&e<=f},Ln.isSet=al,Ln.isString=il,Ln.isSymbol=ll,Ln.isTypedArray=ul,Ln.isUndefined=function(e){return e===o},Ln.isWeakMap=function(e){return el(e)&&pa(e)==N},Ln.isWeakSet=function(e){return el(e)&&"[object WeakSet]"==_r(e)},Ln.join=function(e,t){return null==e?"":Wt.call(e,t)},Ln.kebabCase=Hl,Ln.last=$a,Ln.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=r;return n!==o&&(a=(a=dl(n))<0?yn(r+a,0):gn(a,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,a):Lt(e,Vt,a,!0)},Ln.lowerCase=Wl,Ln.lowerFirst=Kl,Ln.lt=cl,Ln.lte=sl,Ln.max=function(e){return e&&e.length?dr(e,nu,Sr):o},Ln.maxBy=function(e,t){return e&&e.length?dr(e,ia(t,2),Sr):o},Ln.mean=function(e){return Bt(e,nu)},Ln.meanBy=function(e,t){return Bt(e,ia(t,2))},Ln.min=function(e){return e&&e.length?dr(e,nu,Dr):o},Ln.minBy=function(e,t){return e&&e.length?dr(e,ia(t,2),Dr):o},Ln.stubArray=hu,Ln.stubFalse=mu,Ln.stubObject=function(){return{}},Ln.stubString=function(){return""},Ln.stubTrue=function(){return!0},Ln.multiply=Eu,Ln.nth=function(e,t){return e&&e.length?zr(e,dl(t)):o},Ln.noConflict=function(){return ft._===this&&(ft._=Le),this},Ln.noop=lu,Ln.now=xi,Ln.pad=function(e,t,n){e=gl(e);var r=(t=dl(t))?sn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Bo(dt(o),n)+e+Bo(pt(o),n)},Ln.padEnd=function(e,t,n){e=gl(e);var r=(t=dl(t))?sn(e):0;return t&&r<t?e+Bo(t-r,n):e},Ln.padStart=function(e,t,n){e=gl(e);var r=(t=dl(t))?sn(e):0;return t&&r<t?Bo(t-r,n)+e:e},Ln.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),bn(gl(e).replace(re,""),t||0)},Ln.random=function(e,t,n){if(n&&"boolean"!=typeof n&&ga(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pl(e),t===o?(t=e,e=0):t=pl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=wn();return gn(e+a*(t-e+lt("1e-"+((a+"").length-1))),t)}return Kr(e,t)},Ln.reduce=function(e,t,n){var r=Hi(e)?Rt:Kt,o=arguments.length<3;return r(e,ia(t,4),n,o,sr)},Ln.reduceRight=function(e,t,n){var r=Hi(e)?It:Kt,o=arguments.length<3;return r(e,ia(t,4),n,o,fr)},Ln.repeat=function(e,t,n){return t=(n?ga(e,t,n):t===o)?1:dl(t),qr(gl(e),t)},Ln.replace=function(){var e=arguments,t=gl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Ln.result=function(e,t,n){var r=-1,a=(t=go(t,e)).length;for(a||(a=1,e=o);++r<a;){var i=null==e?o:e[Ma(t[r])];i===o&&(r=a,i=n),e=Xi(i)?i.call(e):i}return e},Ln.round=Ou,Ln.runInContext=e,Ln.sample=function(e){return(Hi(e)?$n:Yr)(e)},Ln.size=function(e){if(null==e)return 0;if(Ki(e))return il(e)?sn(e):e.length;var t=pa(e);return t==O||t==C?e.size:Ir(e).length},Ln.snakeCase=ql,Ln.some=function(e,t,n){var r=Hi(e)?Dt:to;return n&&ga(e,t,n)&&(t=o),r(e,ia(t,3))},Ln.sortedIndex=function(e,t){return no(e,t)},Ln.sortedIndexBy=function(e,t,n){return ro(e,t,ia(n,2))},Ln.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=no(e,t);if(r<n&&Ui(e[r],t))return r}return-1},Ln.sortedLastIndex=function(e,t){return no(e,t,!0)},Ln.sortedLastIndexBy=function(e,t,n){return ro(e,t,ia(n,2),!0)},Ln.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=no(e,t,!0)-1;if(Ui(e[n],t))return n}return-1},Ln.startCase=Gl,Ln.startsWith=function(e,t,n){return e=gl(e),n=null==n?0:ar(dl(n),0,e.length),t=io(t),e.slice(n,n+t.length)==t},Ln.subtract=_u,Ln.sum=function(e){return e&&e.length?qt(e,nu):0},Ln.sumBy=function(e,t){return e&&e.length?qt(e,ia(t,2)):0},Ln.template=function(e,t,n){var r=Ln.templateSettings;n&&ga(e,t,n)&&(t=o),e=gl(e),t=wl({},t,r,Xo);var a,i,l=wl({},t.imports,r.imports,Xo),u=Nl(l),c=Xt(l,u),s=0,f=t.interpolate||be,p="__p += '",d=xe((t.escape||be).source+"|"+f.source+"|"+(f===Q?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),h="//# sourceURL="+(Re.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rt+"]")+"\n";e.replace(d,(function(t,n,r,o,l,u){return r||(r=o),p+=e.slice(s,u).replace(we,nn),n&&(a=!0,p+="' +\n__e("+n+") +\n'"),l&&(i=!0,p+="';\n"+l+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),s=u+t.length,t})),p+="';\n";var m=Re.call(t,"variable")&&t.variable;if(m){if(ce.test(m))throw new Ee("Invalid `variable` option passed into `_.template`")}else p="with (obj) {\n"+p+"\n}\n";p=(i?p.replace(B,""):p).replace(H,"$1").replace(W,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Ql((function(){return Oe(u,h+"return "+p).apply(o,c)}));if(y.source=p,$i(y))throw y;return y},Ln.times=function(e,t){if((e=dl(e))<1||e>f)return[];var n=d,r=gn(e,d);t=ia(t),e-=d;for(var o=Gt(r,t);++n<e;)t(n);return o},Ln.toFinite=pl,Ln.toInteger=dl,Ln.toLength=hl,Ln.toLower=function(e){return gl(e).toLowerCase()},Ln.toNumber=ml,Ln.toSafeInteger=function(e){return e?ar(dl(e),-9007199254740991,f):0===e?e:0},Ln.toString=gl,Ln.toUpper=function(e){return gl(e).toUpperCase()},Ln.trim=function(e,t,n){if((e=gl(e))&&(n||t===o))return Yt(e);if(!e||!(t=io(t)))return e;var r=fn(e),a=fn(t);return bo(r,Jt(r,a),Zt(r,a)+1).join("")},Ln.trimEnd=function(e,t,n){if((e=gl(e))&&(n||t===o))return e.slice(0,pn(e)+1);if(!e||!(t=io(t)))return e;var r=fn(e);return bo(r,0,Zt(r,fn(t))+1).join("")},Ln.trimStart=function(e,t,n){if((e=gl(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=io(t)))return e;var r=fn(e);return bo(r,Jt(r,fn(t))).join("")},Ln.truncate=function(e,t){var n=30,r="...";if(Zi(t)){var a="separator"in t?t.separator:a;n="length"in t?dl(t.length):n,r="omission"in t?io(t.omission):r}var i=(e=gl(e)).length;if(rn(e)){var l=fn(e);i=l.length}if(n>=i)return e;var u=n-sn(r);if(u<1)return r;var c=l?bo(l,0,u).join(""):e.slice(0,u);if(a===o)return c+r;if(l&&(u+=c.length-u),ol(a)){if(e.slice(u).search(a)){var s,f=c;for(a.global||(a=xe(a.source,gl(pe.exec(a))+"g")),a.lastIndex=0;s=a.exec(f);)var p=s.index;c=c.slice(0,p===o?u:p)}}else if(e.indexOf(io(a),u)!=u){var d=c.lastIndexOf(a);d>-1&&(c=c.slice(0,d))}return c+r},Ln.unescape=function(e){return(e=gl(e))&&G.test(e)?e.replace(K,dn):e},Ln.uniqueId=function(e){var t=++Ie;return gl(e)+t},Ln.upperCase=Yl,Ln.upperFirst=$l,Ln.each=gi,Ln.eachRight=vi,Ln.first=Ka,iu(Ln,(yu={},vr(Ln,(function(e,t){Re.call(Ln.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Ln.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Ln[e].placeholder=Ln})),xt(["drop","take"],(function(e,t){Bn.prototype[e]=function(n){n=n===o?1:yn(dl(n),0);var r=this.__filtered__&&!t?new Bn(this):this.clone();return r.__filtered__?r.__takeCount__=gn(n,r.__takeCount__):r.__views__.push({size:gn(n,d),type:e+(r.__dir__<0?"Right":"")}),r},Bn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Bn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ia(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Bn.prototype[e]=function(){return this[n](1).value()[0]}})),xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Bn.prototype[e]=function(){return this.__filtered__?new Bn(this):this[n](1)}})),Bn.prototype.compact=function(){return this.filter(nu)},Bn.prototype.find=function(e){return this.filter(e).head()},Bn.prototype.findLast=function(e){return this.reverse().find(e)},Bn.prototype.invokeMap=Gr((function(e,t){return"function"==typeof e?new Bn(this):this.map((function(n){return Pr(n,e,t)}))})),Bn.prototype.reject=function(e){return this.filter(Ii(ia(e)))},Bn.prototype.slice=function(e,t){e=dl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Bn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=dl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Bn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Bn.prototype.toArray=function(){return this.take(d)},vr(Bn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=Ln[r?"take"+("last"==t?"Right":""):t],i=r||/^find/.test(t);a&&(Ln.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof Bn,c=l[0],s=u||Hi(t),f=function(e){var t=a.apply(Ln,At([e],l));return r&&p?t[0]:t};s&&n&&"function"==typeof c&&1!=c.length&&(u=s=!1);var p=this.__chain__,d=!!this.__actions__.length,h=i&&!p,m=u&&!d;if(!i&&s){t=m?t:new Bn(this);var y=e.apply(t,l);return y.__actions__.push({func:pi,args:[f],thisArg:o}),new Vn(y,p)}return h&&m?e.apply(this,l):(y=this.thru(f),h?r?y.value()[0]:y.value():y)})})),xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Ln.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Hi(o)?o:[],e)}return this[n]((function(n){return t.apply(Hi(n)?n:[],e)}))}})),vr(Bn.prototype,(function(e,t){var n=Ln[t];if(n){var r=n.name+"";Re.call(Tn,r)||(Tn[r]=[]),Tn[r].push({name:t,func:n})}})),Tn[Lo(o,2).name]=[{name:"wrapper",func:o}],Bn.prototype.clone=function(){var e=new Bn(this.__wrapped__);return e.__actions__=Co(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Co(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Co(this.__views__),e},Bn.prototype.reverse=function(){if(this.__filtered__){var e=new Bn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Bn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Hi(e),r=t<0,o=n?e.length:0,a=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var a=n[r],i=a.size;switch(a.type){case"drop":e+=i;break;case"dropRight":t-=i;break;case"take":t=gn(t,e+i);break;case"takeRight":e=yn(e,t-i)}}return{start:e,end:t}}(0,o,this.__views__),i=a.start,l=a.end,u=l-i,c=r?l:i-1,s=this.__iteratees__,f=s.length,p=0,d=gn(u,this.__takeCount__);if(!n||!r&&o==u&&d==u)return fo(e,this.__actions__);var h=[];e:for(;u--&&p<d;){for(var m=-1,y=e[c+=t];++m<f;){var g=s[m],v=g.iteratee,b=g.type,w=v(y);if(2==b)y=w;else if(!w){if(1==b)continue e;break e}}h[p++]=y}return h},Ln.prototype.at=di,Ln.prototype.chain=function(){return fi(this)},Ln.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Ln.prototype.next=function(){this.__values__===o&&(this.__values__=fl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Ln.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var r=La(n);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t},Ln.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Bn){var t=e;return this.__actions__.length&&(t=new Bn(this)),(t=t.reverse()).__actions__.push({func:pi,args:[Za],thisArg:o}),new Vn(t,this.__chain__)}return this.thru(Za)},Ln.prototype.toJSON=Ln.prototype.valueOf=Ln.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},Ln.prototype.first=Ln.prototype.head,$e&&(Ln.prototype[$e]=function(){return this}),Ln}();ft._=hn,(r=function(){return hn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},8865:function(e,t,n){var r=n(696),o=n(369);function a(e){if(!(this instanceof a))return new a(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=a,o(a,r.EventEmitter),Object.defineProperty(a.prototype,"keys",{get:function(){return Object.keys(this.cache)}}),a.prototype.clear=function(){this.cache={},this.head=this.tail=null,this.length=0},a.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}},a.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)},a.prototype.peek=function(e){if(this.cache.hasOwnProperty(e)){var t=this.cache[e];if(this._checkAge(e,t))return t.value}},a.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},a.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))},a.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}},a.prototype.evict=function(){if(this.tail){var e=this.tail,t=this.remove(this.tail);this.emit("evict",{key:e,value:t})}}},5126: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)}},9717:function(e){var t=1e3,n=60*t,r=60*n,o=24*r;function a(e,t,n,r){var o=t>=1.5*n;return Math.round(e/n)+" "+r+(o?"s":"")}e.exports=function(e,i){i=i||{};var l,u,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){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){var i=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"weeks":case"week":case"w":return 6048e5*i;case"days":case"day":case"d":return i*o;case"hours":case"hour":case"hrs":case"hr":case"h":return i*r;case"minutes":case"minute":case"mins":case"min":case"m":return i*n;case"seconds":case"second":case"secs":case"sec":case"s":return i*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}(e);if("number"===c&&isFinite(e))return i.long?(l=e,(u=Math.abs(l))>=o?a(l,u,o,"day"):u>=r?a(l,u,r,"hour"):u>=n?a(l,u,n,"minute"):u>=t?a(l,u,t,"second"):l+" ms"):function(e){var a=Math.abs(e);return a>=o?Math.round(e/o)+"d":a>=r?Math.round(e/r)+"h":a>=n?Math.round(e/n)+"m":a>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},1464:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;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,o){for(var a,i,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(l[c]=a[c]);if(t){i=t(a);for(var s=0;s<i.length;s++)r.call(a,i[s])&&(l[i[s]]=a[i[s]])}}return l}},6977:function(e,t,n){"use strict";var r=n(669);function o(){}function a(){}a.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,a,i){if(i!==r){var l=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 l.name="Invariant Violation",l}}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:a,resetWarningCache:o};return n.PropTypes=n,n}},2598:function(e,t,n){e.exports=n(6977)()},669:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1646:function(e,t,n){"use strict";var r=n(8965),o="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,a=n(1231),i=n(2802),l=n(7012),u=".",c=":",s="function"==typeof Symbol&&Symbol.iterator,f="@@iterator";function p(e,t){return e&&"object"==typeof e&&null!=e.key?(n=e.key,r={"=":"=0",":":"=2"},"$"+(""+n).replace(/[=:]/g,(function(e){return r[e]}))):t.toString(36);var n,r}function d(e,t,n,r){var a,l=typeof e;if("undefined"!==l&&"boolean"!==l||(e=null),null===e||"string"===l||"number"===l||"object"===l&&e.$$typeof===o)return n(r,e,""===t?u+p(e,0):t),1;var h=0,m=""===t?u:t+c;if(Array.isArray(e))for(var y=0;y<e.length;y++)h+=d(a=e[y],m+p(a,y),n,r);else{var g=function(e){var t=e&&(s&&e[s]||e[f]);if("function"==typeof t)return t}(e);if(g)for(var v,b=g.call(e),w=0;!(v=b.next()).done;)h+=d(a=v.value,m+p(a,w++),n,r);else if("object"===l){var E=""+e;i(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===E?"object with keys {"+Object.keys(e).join(", ")+"}":E,"")}}return h}var h=/\/+/g;function m(e){return(""+e).replace(h,"$&/")}var y,g,v=b,b=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)};function w(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function E(e,t,n){var o,i,l=e.result,u=e.keyPrefix,c=e.func,s=e.context,f=c.call(s,t,e.count++);Array.isArray(f)?O(f,l,n,a.thatReturnsArgument):null!=f&&(r.isValidElement(f)&&(o=f,i=u+(!f.key||t&&t.key===f.key?"":m(f.key)+"/")+n,f=r.cloneElement(o,{key:i},void 0!==o.props?o.props.children:void 0)),l.push(f))}function O(e,t,n,r,o){var a="";null!=n&&(a=m(n)+"/");var i=w.getPooled(t,a,r,o);!function(e,t,n){null==e||d(e,"",t,n)}(e,E,i),w.release(i)}w.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},y=function(e,t,n,r){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r),a}return new o(e,t,n,r)},(g=w).instancePool=[],g.getPooled=y||v,g.poolSize||(g.poolSize=10),g.release=function(e){var t=this;i(e instanceof t,"Trying to release an instance into a pool of a different type."),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},e.exports=function(e){if("object"!=typeof e||!e||Array.isArray(e))return l(!1,"React.addons.createFragment only accepts a single object. Got: %s",e),e;if(r.isValidElement(e))return l(!1,"React.addons.createFragment does not accept a ReactElement without a wrapper object."),e;i(1!==e.nodeType,"React.addons.createFragment(...): Encountered an invalid child; DOM elements are not valid children of React components.");var t=[];for(var n in e)O(e[n],t,n,a.thatReturnsArgument);return t}},6539:function(e,t,n){"use strict";var r=n(8965),o=n(1464),a=n(9076);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(i(227));var l=new Set,u={};function c(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d=Object.prototype.hasOwnProperty,h={},m={};function y(e,t,n,r,o,a,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=i}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=g.hasOwnProperty(t)?g[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(m,e)||!d.call(h,e)&&(p.test(e)?m[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,b);g[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,b);g[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var E=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,O=60103,_=60106,S=60107,x=60108,k=60114,C=60109,P=60110,T=60112,N=60113,j=60120,A=60115,R=60116,I=60121,D=60128,M=60129,F=60130,L=60131;if("function"==typeof Symbol&&Symbol.for){var U=Symbol.for;O=U("react.element"),_=U("react.portal"),S=U("react.fragment"),x=U("react.strict_mode"),k=U("react.profiler"),C=U("react.provider"),P=U("react.context"),T=U("react.forward_ref"),N=U("react.suspense"),j=U("react.suspense_list"),A=U("react.memo"),R=U("react.lazy"),I=U("react.block"),U("react.scope"),D=U("react.opaque.id"),M=U("react.debug_trace_mode"),F=U("react.offscreen"),L=U("react.legacy_hidden")}var z,V="function"==typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=V&&e[V]||e["@@iterator"])?e:null}function H(e){if(void 0===z)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);z=t&&t[1]||""}return"\n"+z+e}var W=!1;function K(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),a=r.stack.split("\n"),i=o.length-1,l=a.length-1;1<=i&&0<=l&&o[i]!==a[l];)l--;for(;1<=i&&0<=l;i--,l--)if(o[i]!==a[l]){if(1!==i||1!==l)do{if(i--,0>--l||o[i]!==a[l])return"\n"+o[i].replace(" at new "," at ")}while(1<=i&&0<=l);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return K(e.type,!1);case 11:return K(e.type.render,!1);case 22:return K(e.type._render,!1);case 1:return K(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case _:return"Portal";case k:return"Profiler";case x:return"StrictMode";case N:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return G(e.type);case I:return G(e._render);case R:t=e._payload,e=e._init;try{return G(e(t))}catch(e){}}return null}function Y(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function X(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function J(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Y(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=Y(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,Y(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&J(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ae(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ie(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Y(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function ce(e,t){var n=Y(t.value),r=Y(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function se(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function pe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function de(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?pe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var he,me,ye=(me=function(e,t){if(e.namespaceURI!==fe.svg||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return me(e,t)}))}:me);function ge(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ve={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ve.hasOwnProperty(e)&&ve[e]?(""+t).trim():t+"px"}function Ee(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ve).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ve[t]=ve[e]}))}));var Oe=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function _e(e,t){if(t){if(Oe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(i(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ce=null,Pe=null;function Te(e){if(e=no(e)){if("function"!=typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=oo(t),ke(e.stateNode,e.type,t))}}function Ne(e){Ce?Pe?Pe.push(e):Pe=[e]:Ce=e}function je(){if(Ce){var e=Ce,t=Pe;if(Pe=Ce=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ae(e,t){return e(t)}function Re(e,t,n,r,o){return e(t,n,r,o)}function Ie(){}var De=Ae,Me=!1,Fe=!1;function Le(){null===Ce&&null===Pe||(Ie(),je())}function Ue(e,t){var n=e.stateNode;if(null===n)return null;var r=oo(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(i(231,t,typeof n));return n}var ze=!1;if(f)try{var Ve={};Object.defineProperty(Ve,"passive",{get:function(){ze=!0}}),window.addEventListener("test",Ve,Ve),window.removeEventListener("test",Ve,Ve)}catch(me){ze=!1}function Be(e,t,n,r,o,a,i,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this.onError(e)}}var He=!1,We=null,Ke=!1,qe=null,Ge={onError:function(e){He=!0,We=e}};function Ye(e,t,n,r,o,a,i,l,u){He=!1,We=null,Be.apply(Ge,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if($e(e)!==e)throw Error(i(188))}function Je(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(r=o.return)){n=r;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===n)return Qe(o),e;if(a===r)return Qe(o),t;a=a.sibling}throw Error(i(188))}if(n.return!==r.return)n=o,r=a;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=a;break}if(u===r){l=!0,r=o,n=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===n){l=!0,n=a,r=o;break}if(u===r){l=!0,r=a,n=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Ze(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,at=[],it=null,lt=null,ut=null,ct=new Map,st=new Map,ft=[],pt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function dt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":it=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":ct.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":st.delete(t.pointerId)}}function mt(e,t,n,r,o,a){return null===e||e.nativeEvent!==a?(e=dt(t,n,r,o,a),null!==t&&null!==(t=no(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function yt(e){var t=to(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xe(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){a.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function gt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=no(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function vt(e,t,n){gt(e)&&n.delete(t)}function bt(){for(ot=!1;0<at.length;){var e=at[0];if(null!==e.blockedOn){null!==(e=no(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&at.shift()}null!==it&>(it)&&(it=null),null!==lt&>(lt)&&(lt=null),null!==ut&>(ut)&&(ut=null),ct.forEach(vt),st.forEach(vt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,bt)))}function Et(e){function t(t){return wt(t,e)}if(0<at.length){wt(at[0],e);for(var n=1;n<at.length;n++){var r=at[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==it&&wt(it,e),null!==lt&&wt(lt,e),null!==ut&&wt(ut,e),ct.forEach(t),st.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)yt(n),null===n.blockedOn&&ft.shift()}function Ot(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _t={animationend:Ot("Animation","AnimationEnd"),animationiteration:Ot("Animation","AnimationIteration"),animationstart:Ot("Animation","AnimationStart"),transitionend:Ot("Transition","TransitionEnd")},St={},xt={};function kt(e){if(St[e])return St[e];if(!_t[e])return e;var t,n=_t[e];for(t in n)if(n.hasOwnProperty(t)&&t in xt)return St[e]=n[t];return e}f&&(xt=document.createElement("div").style,"AnimationEvent"in window||(delete _t.animationend.animation,delete _t.animationiteration.animation,delete _t.animationstart.animation),"TransitionEvent"in window||delete _t.transitionend.transition);var Ct=kt("animationend"),Pt=kt("animationiteration"),Tt=kt("animationstart"),Nt=kt("transitionend"),jt=new Map,At=new Map,Rt=["abort","abort",Ct,"animationEnd",Pt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Nt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(r,t),jt.set(r,o),c(o,[r])}}(0,a.unstable_now)();var Dt=8;function Mt(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!=(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!=(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!=(t=4186112&e)?(Dt=6,t):0!=(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!=(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,o=0,a=e.expiredLanes,i=e.suspendedLanes,l=e.pingedLanes;if(0!==a)r=a,o=Dt=15;else if(0!=(a=134217727&n)){var u=a&~i;0!==u?(r=Mt(u),o=Dt):0!=(l&=a)&&(r=Mt(l),o=Dt)}else 0!=(a=n&~i)?(r=Mt(a),o=Dt):0!==l&&(r=Mt(l),o=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&i)){if(Mt(t),o<=Dt)return t;Dt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function Lt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ut(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=zt(24&~t))?Ut(10,t):e;case 10:return 0===(e=zt(192&~t))?Ut(8,t):e;case 8:return 0===(e=zt(3584&~t))&&0===(e=zt(4186112&~t))&&(e=512),e;case 2:return 0===(t=zt(805306368&~t))&&(t=268435456),t}throw Error(i(358,e))}function zt(e){return e&-e}function Vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Kt|0)|0},Wt=Math.log,Kt=Math.LN2,qt=a.unstable_UserBlockingPriority,Gt=a.unstable_runWithPriority,Yt=!0;function $t(e,t,n,r){Me||Ie();var o=Qt,a=Me;Me=!0;try{Re(o,e,t,n,r)}finally{(Me=a)||Le()}}function Xt(e,t,n,r){Gt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Yt)if((o=0==(4&t))&&0<at.length&&-1<pt.indexOf(e))e=dt(null,e,t,n,r),at.push(e);else{var a=Jt(e,t,n,r);if(null===a)o&&ht(e,r);else{if(o){if(-1<pt.indexOf(e))return e=dt(a,e,t,n,r),void at.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return it=mt(it,e,t,n,r,o),!0;case"dragenter":return lt=mt(lt,e,t,n,r,o),!0;case"mouseover":return ut=mt(ut,e,t,n,r,o),!0;case"pointerover":var a=o.pointerId;return ct.set(a,mt(ct.get(a)||null,e,t,n,r,o)),!0;case"gotpointercapture":return a=o.pointerId,st.set(a,mt(st.get(a)||null,e,t,n,r,o)),!0}return!1}(a,e,t,n,r))return;ht(e,r)}Ir(e,t,r,null,n)}}}function Jt(e,t,n,r){var o=xe(r);if(null!==(o=to(o))){var a=$e(o);if(null===a)o=null;else{var i=a.tag;if(13===i){if(null!==(o=Xe(a)))return o;o=null}else if(3===i){if(a.stateNode.hydrate)return 3===a.tag?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Ir(e,t,r,o,n),null}var Zt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Zt?Zt.value:Zt.textContent,a=o.length;for(e=0;e<r&&n[e]===o[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===o[a-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,o,a){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(o):o[i]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,cn,sn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pn=ln(fn),dn=o({},fn,{view:0,detail:0}),hn=ln(dn),mn=o({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==sn&&(sn&&"mousemove"===e.type?(un=e.screenX-sn.screenX,cn=e.screenY-sn.screenY):cn=un=0,sn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:cn}}),yn=ln(mn),gn=ln(o({},mn,{dataTransfer:0})),vn=ln(o({},dn,{relatedTarget:0})),bn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),En=ln(wn),On=ln(o({},fn,{data:0})),_n={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},xn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=xn[e])&&!!t[e]}function Cn(){return kn}var Pn=o({},dn,{key:function(e){if(e.key){var t=_n[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Sn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Tn=ln(Pn),Nn=ln(o({},mn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),jn=ln(o({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),An=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=o({},mn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=ln(Rn),Dn=[9,13,27,32],Mn=f&&"CompositionEvent"in window,Fn=null;f&&"documentMode"in document&&(Fn=document.documentMode);var Ln=f&&"TextEvent"in window&&!Fn,Un=f&&(!Mn||Fn&&8<Fn&&11>=Fn),zn=String.fromCharCode(32),Vn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Dn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Wn=!1,Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function Gn(e,t,n,r){Ne(r),0<(t=Mr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,$n=null;function Xn(e){Pr(e,0)}function Qn(e){if(Q(ro(e)))return e}function Jn(e,t){if("change"===e)return t}var Zn=!1;if(f){var er;if(f){var tr="oninput"in document;if(!tr){var nr=document.createElement("div");nr.setAttribute("oninput","return;"),tr="function"==typeof nr.oninput}er=tr}else er=!1;Zn=er&&(!document.documentMode||9<document.documentMode)}function rr(){Yn&&(Yn.detachEvent("onpropertychange",or),$n=Yn=null)}function or(e){if("value"===e.propertyName&&Qn($n)){var t=[];if(Gn(t,$n,e,xe(e)),e=Xn,Me)e(t);else{Me=!0;try{Ae(e,t)}finally{Me=!1,Le()}}}}function ar(e,t,n){"focusin"===e?(rr(),$n=n,(Yn=t).attachEvent("onpropertychange",or)):"focusout"===e&&rr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Qn($n)}function lr(e,t){if("click"===e)return Qn(t)}function ur(e,t){if("input"===e||"change"===e)return Qn(t)}var cr="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},sr=Object.prototype.hasOwnProperty;function fr(e,t){if(cr(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(r=0;r<n.length;r++)if(!sr.call(t,n[r])||!cr(e[n[r]],t[n[r]]))return!1;return!0}function pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function dr(e,t){var n,r=pr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=pr(r)}}function hr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?hr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function mr(){for(var e=window,t=J();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=J((e=t.contentWindow).document)}return t}function yr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var gr=f&&"documentMode"in document&&11>=document.documentMode,vr=null,br=null,wr=null,Er=!1;function Or(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==vr||vr!==J(r)||(r="selectionStart"in(r=vr)&&yr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},wr&&fr(wr,r)||(wr=r,0<(r=Mr(br,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=vr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Rt,2);for(var _r="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Sr=0;Sr<_r.length;Sr++)At.set(_r[Sr],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function Cr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,a,l,u,c){if(Ye.apply(this,arguments),He){if(!He)throw Error(i(198));var s=We;He=!1,We=null,Ke||(Ke=!0,qe=s)}}(r,t,void 0,e),e.currentTarget=null}function Pr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var i=r.length-1;0<=i;i--){var l=r[i],u=l.instance,c=l.currentTarget;if(l=l.listener,u!==a&&o.isPropagationStopped())break e;Cr(o,l,c),a=u}else for(i=0;i<r.length;i++){if(u=(l=r[i]).instance,c=l.currentTarget,l=l.listener,u!==a&&o.isPropagationStopped())break e;Cr(o,l,c),a=u}}}if(Ke)throw e=qe,Ke=!1,qe=null,e}function Tr(e,t){var n=ao(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var Nr="_reactListening"+Math.random().toString(36).slice(2);function jr(e){e[Nr]||(e[Nr]=!0,l.forEach((function(t){kr.has(t)||Ar(t,!1,e,null),Ar(t,!0,e,null)})))}function Ar(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,a=n;if("selectionchange"===e&&9!==n.nodeType&&(a=n.ownerDocument),null!==r&&!t&&kr.has(e)){if("scroll"!==e)return;o|=2,a=r}var i=ao(a),l=e+"__"+(t?"capture":"bubble");i.has(l)||(t&&(o|=4),Rr(a,e,o,t),i.add(l))}function Rr(e,t,n,r){var o=At.get(t);switch(void 0===o?2:o){case 0:o=$t;break;case 1:o=Xt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!ze||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ir(e,t,n,r,o){var a=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===i)for(i=r.return;null!==i;){var u=i.tag;if((3===u||4===u)&&((u=i.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;i=i.return}for(;null!==l;){if(null===(i=to(l)))return;if(5===(u=i.tag)||6===u){r=a=i;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Fe)return e();Fe=!0;try{return De(e,t,n)}finally{Fe=!1,Le()}}((function(){var r=a,o=xe(n),i=[];e:{var l=jt.get(e);if(void 0!==l){var u=pn,c=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=Tn;break;case"focusin":c="focus",u=vn;break;case"focusout":c="blur",u=vn;break;case"beforeblur":case"afterblur":u=vn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=yn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=gn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=jn;break;case Ct:case Pt:case Tt:u=bn;break;case Nt:u=An;break;case"scroll":u=hn;break;case"wheel":u=In;break;case"copy":case"cut":case"paste":u=En;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Nn}var s=0!=(4&t),f=!s&&"scroll"===e,p=s?null!==l?l+"Capture":null:l;s=[];for(var d,h=r;null!==h;){var m=(d=h).stateNode;if(5===d.tag&&null!==m&&(d=m,null!==p&&null!=(m=Ue(h,p))&&s.push(Dr(h,m,d))),f)break;h=h.return}0<s.length&&(l=new u(l,c,null,n,o),i.push({event:l,listeners:s}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(c=n.relatedTarget||n.fromElement)||!to(c)&&!c[Zr])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?to(c):null)&&(c!==(f=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(s=yn,m="onMouseLeave",p="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(s=Nn,m="onPointerLeave",p="onPointerEnter",h="pointer"),f=null==u?l:ro(u),d=null==c?l:ro(c),(l=new s(m,h+"leave",u,n,o)).target=f,l.relatedTarget=d,m=null,to(o)===r&&((s=new s(p,h+"enter",c,n,o)).target=d,s.relatedTarget=f,m=s),f=m,u&&c)e:{for(p=c,h=0,d=s=u;d;d=Fr(d))h++;for(d=0,m=p;m;m=Fr(m))d++;for(;0<h-d;)s=Fr(s),h--;for(;0<d-h;)p=Fr(p),d--;for(;h--;){if(s===p||null!==p&&s===p.alternate)break e;s=Fr(s),p=Fr(p)}s=null}else s=null;null!==u&&Lr(i,l,u,s,!1),null!==c&&null!==f&&Lr(i,f,c,s,!0)}if("select"===(u=(l=r?ro(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var y=Jn;else if(qn(l))if(Zn)y=ur;else{y=ir;var g=ar}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(y=lr);switch(y&&(y=y(e,r))?Gn(i,y,n,o):(g&&g(e,l,r),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&oe(l,"number",l.value)),g=r?ro(r):window,e){case"focusin":(qn(g)||"true"===g.contentEditable)&&(vr=g,br=r,wr=null);break;case"focusout":wr=br=vr=null;break;case"mousedown":Er=!0;break;case"contextmenu":case"mouseup":case"dragend":Er=!1,Or(i,n,o);break;case"selectionchange":if(gr)break;case"keydown":case"keyup":Or(i,n,o)}var v;if(Mn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Wn?Bn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Un&&"ko"!==n.locale&&(Wn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Wn&&(v=nn()):(en="value"in(Zt=o)?Zt.value:Zt.textContent,Wn=!0)),0<(g=Mr(r,b)).length&&(b=new On(b,e,null,n,o),i.push({event:b,listeners:g}),(v||null!==(v=Hn(n)))&&(b.data=v))),(v=Ln?function(e,t){switch(e){case"compositionend":return Hn(t);case"keypress":return 32!==t.which?null:(Vn=!0,zn);case"textInput":return(e=t.data)===zn&&Vn?null:e;default:return null}}(e,n):function(e,t){if(Wn)return"compositionend"===e||!Mn&&Bn(e,t)?(e=nn(),tn=en=Zt=null,Wn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Un&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Mr(r,"onBeforeInput")).length&&(o=new On("onBeforeInput","beforeinput",null,n,o),i.push({event:o,listeners:r}),o.data=v)}Pr(i,t)}))}function Dr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Mr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,a=o.stateNode;5===o.tag&&null!==a&&(o=a,null!=(a=Ue(e,n))&&r.unshift(Dr(e,a,o)),null!=(a=Ue(e,t))&&r.push(Dr(e,a,o))),e=e.return}return r}function Fr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Lr(e,t,n,r,o){for(var a=t._reactName,i=[];null!==n&&n!==r;){var l=n,u=l.alternate,c=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==c&&(l=c,o?null!=(u=Ue(n,a))&&i.unshift(Dr(n,u,l)):o||null!=(u=Ue(n,a))&&i.push(Dr(n,u,l))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}function Ur(){}var zr=null,Vr=null;function Br(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function Hr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Wr="function"==typeof setTimeout?setTimeout:void 0,Kr="function"==typeof clearTimeout?clearTimeout:void 0;function qr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Gr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Yr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var $r=0,Xr=Math.random().toString(36).slice(2),Qr="__reactFiber$"+Xr,Jr="__reactProps$"+Xr,Zr="__reactContainer$"+Xr,eo="__reactEvents$"+Xr;function to(e){var t=e[Qr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Zr]||n[Qr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Yr(e);null!==e;){if(n=e[Qr])return n;e=Yr(e)}return t}n=(e=n).parentNode}return null}function no(e){return!(e=e[Qr]||e[Zr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ro(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function oo(e){return e[Jr]||null}function ao(e){var t=e[eo];return void 0===t&&(t=e[eo]=new Set),t}var io=[],lo=-1;function uo(e){return{current:e}}function co(e){0>lo||(e.current=io[lo],io[lo]=null,lo--)}function so(e,t){lo++,io[lo]=e.current,e.current=t}var fo={},po=uo(fo),ho=uo(!1),mo=fo;function yo(e,t){var n=e.type.contextTypes;if(!n)return fo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,a={};for(o in n)a[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function go(e){return null!=e.childContextTypes}function vo(){co(ho),co(po)}function bo(e,t,n){if(po.current!==fo)throw Error(i(168));so(po,t),so(ho,n)}function wo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(i(108,G(t)||"Unknown",a));return o({},n,r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||fo,mo=po.current,so(po,e),so(ho,ho.current),!0}function Oo(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=wo(e,t,mo),r.__reactInternalMemoizedMergedChildContext=e,co(ho),co(po),so(po,e)):co(ho),so(ho,n)}var _o=null,So=null,xo=a.unstable_runWithPriority,ko=a.unstable_scheduleCallback,Co=a.unstable_cancelCallback,Po=a.unstable_shouldYield,To=a.unstable_requestPaint,No=a.unstable_now,jo=a.unstable_getCurrentPriorityLevel,Ao=a.unstable_ImmediatePriority,Ro=a.unstable_UserBlockingPriority,Io=a.unstable_NormalPriority,Do=a.unstable_LowPriority,Mo=a.unstable_IdlePriority,Fo={},Lo=void 0!==To?To:function(){},Uo=null,zo=null,Vo=!1,Bo=No(),Ho=1e4>Bo?No:function(){return No()-Bo};function Wo(){switch(jo()){case Ao:return 99;case Ro:return 98;case Io:return 97;case Do:return 96;case Mo:return 95;default:throw Error(i(332))}}function Ko(e){switch(e){case 99:return Ao;case 98:return Ro;case 97:return Io;case 96:return Do;case 95:return Mo;default:throw Error(i(332))}}function qo(e,t){return e=Ko(e),xo(e,t)}function Go(e,t,n){return e=Ko(e),ko(e,t,n)}function Yo(){if(null!==zo){var e=zo;zo=null,Co(e)}$o()}function $o(){if(!Vo&&null!==Uo){Vo=!0;var e=0;try{var t=Uo;qo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Uo=null}catch(t){throw null!==Uo&&(Uo=Uo.slice(e+1)),ko(Ao,Yo),t}finally{Vo=!1}}}var Xo=E.ReactCurrentBatchConfig;function Qo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Jo=uo(null),Zo=null,ea=null,ta=null;function na(){ta=ea=Zo=null}function ra(e){var t=Jo.current;co(Jo),e.type._context._currentValue=t}function oa(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function aa(e,t){Zo=e,ta=ea=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Mi=!0),e.firstContext=null)}function ia(e,t){if(ta!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(ta=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ea){if(null===Zo)throw Error(i(308));ea=t,Zo.dependencies={lanes:0,firstContext:t,responders:null}}else ea=ea.next=t;return e._currentValue}var la=!1;function ua(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ca(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function sa(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fa(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?o=a=i:a=a.next=i,n=n.next}while(null!==n);null===a?o=a=t:a=a.next=t}else o=a=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function da(e,t,n,r){var a=e.updateQueue;la=!1;var i=a.firstBaseUpdate,l=a.lastBaseUpdate,u=a.shared.pending;if(null!==u){a.shared.pending=null;var c=u,s=c.next;c.next=null,null===l?i=s:l.next=s,l=c;var f=e.alternate;if(null!==f){var p=(f=f.updateQueue).lastBaseUpdate;p!==l&&(null===p?f.firstBaseUpdate=s:p.next=s,f.lastBaseUpdate=c)}}if(null!==i){for(p=a.baseState,l=0,f=s=c=null;;){u=i.lane;var d=i.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:d,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(u=t,d=n,m.tag){case 1:if("function"==typeof(h=m.payload)){p=h.call(d,p,u);break e}p=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(u="function"==typeof(h=m.payload)?h.call(d,p,u):h))break e;p=o({},p,u);break e;case 2:la=!0}}null!==i.callback&&(e.flags|=32,null===(u=a.effects)?a.effects=[i]:u.push(i))}else d={eventTime:d,lane:u,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===f?(s=f=d,c=p):f=f.next=d,l|=u;if(null===(i=i.next)){if(null===(u=a.shared.pending))break;i=u.next,u.next=null,a.lastBaseUpdate=u,a.shared.pending=null}}null===f&&(c=p),a.baseState=c,a.firstBaseUpdate=s,a.lastBaseUpdate=f,Ul|=l,e.lanes=l,e.memoizedState=p}}function ha(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(i(191,o));o.call(r)}}}var ma=(new r.Component).refs;function ya(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ga={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=su(),o=fu(e),a=sa(r,o);a.payload=t,null!=n&&(a.callback=n),fa(e,a),pu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=su(),o=fu(e),a=sa(r,o);a.tag=1,a.payload=t,null!=n&&(a.callback=n),fa(e,a),pu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=su(),r=fu(e),o=sa(n,r);o.tag=2,null!=t&&(o.callback=t),fa(e,o),pu(e,r,n)}};function va(e,t,n,r,o,a,i){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,i):!(t.prototype&&t.prototype.isPureReactComponent&&fr(n,r)&&fr(o,a))}function ba(e,t,n){var r=!1,o=fo,a=t.contextType;return"object"==typeof a&&null!==a?a=ia(a):(o=go(t)?mo:po.current,a=(r=null!=(r=t.contextTypes))?yo(e,o):fo),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ga,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=a),t}function wa(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ga.enqueueReplaceState(t,t.state,null)}function Ea(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=ma,ua(e);var a=t.contextType;"object"==typeof a&&null!==a?o.context=ia(a):(a=go(t)?mo:po.current,o.context=yo(e,a)),da(e,n,o,r),o.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ya(e,t,a,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ga.enqueueReplaceState(o,o.state,null),da(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var Oa=Array.isArray;function _a(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===ma&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Sa(e,t){if("textarea"!==e.type)throw Error(i(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Wu(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Yu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=_a(e,t,n),r.return=e,r):((r=Ku(n.type,n.key,n.props,null,e.mode,r)).ref=_a(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=$u(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=qu(n,e.mode,r,a)).return=e,t):((t=o(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Yu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case O:return(n=Ku(t.type,t.key,t.props,null,e.mode,n)).ref=_a(e,null,t),n.return=e,n;case _:return(t=$u(t,e.mode,n)).return=e,t}if(Oa(t)||B(t))return(t=qu(t,e.mode,n,null)).return=e,t;Sa(e,t)}return null}function d(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case O:return n.key===o?n.type===S?f(e,t,n.props.children,r,o):c(e,t,n,r):null;case _:return n.key===o?s(e,t,n,r):null}if(Oa(n)||B(n))return null!==o?null:f(e,t,n,r,null);Sa(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case O:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,o,r.key):c(t,e,r,o);case _:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(Oa(r)||B(r))return f(t,e=e.get(n)||null,r,o,null);Sa(t,r)}return null}function m(o,i,l,u){for(var c=null,s=null,f=i,m=i=0,y=null;null!==f&&m<l.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var g=d(o,f,l[m],u);if(null===g){null===f&&(f=y);break}e&&f&&null===g.alternate&&t(o,f),i=a(g,i,m),null===s?c=g:s.sibling=g,s=g,f=y}if(m===l.length)return n(o,f),c;if(null===f){for(;m<l.length;m++)null!==(f=p(o,l[m],u))&&(i=a(f,i,m),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(o,f);m<l.length;m++)null!==(y=h(f,o,m,l[m],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),i=a(y,i,m),null===s?c=y:s.sibling=y,s=y);return e&&f.forEach((function(e){return t(o,e)})),c}function y(o,l,u,c){var s=B(u);if("function"!=typeof s)throw Error(i(150));if(null==(u=s.call(u)))throw Error(i(151));for(var f=s=null,m=l,y=l=0,g=null,v=u.next();null!==m&&!v.done;y++,v=u.next()){m.index>y?(g=m,m=null):g=m.sibling;var b=d(o,m,v.value,c);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),l=a(b,l,y),null===f?s=b:f.sibling=b,f=b,m=g}if(v.done)return n(o,m),s;if(null===m){for(;!v.done;y++,v=u.next())null!==(v=p(o,v.value,c))&&(l=a(v,l,y),null===f?s=v:f.sibling=v,f=v);return s}for(m=r(o,m);!v.done;y++,v=u.next())null!==(v=h(m,o,y,v.value,c))&&(e&&null!==v.alternate&&m.delete(null===v.key?y:v.key),l=a(v,l,y),null===f?s=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(o,e)})),s}return function(e,r,a,u){var c="object"==typeof a&&null!==a&&a.type===S&&null===a.key;c&&(a=a.props.children);var s="object"==typeof a&&null!==a;if(s)switch(a.$$typeof){case O:e:{for(s=a.key,c=r;null!==c;){if(c.key===s){if(7===c.tag){if(a.type===S){n(e,c.sibling),(r=o(c,a.props.children)).return=e,e=r;break e}}else if(c.elementType===a.type){n(e,c.sibling),(r=o(c,a.props)).ref=_a(e,c,a),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===S?((r=qu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Ku(a.type,a.key,a.props,null,e.mode,u)).ref=_a(e,r,a),u.return=e,e=u)}return l(e);case _:e:{for(c=a.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=o(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=$u(a,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,a)).return=e,e=r):(n(e,r),(r=Yu(a,e.mode,u)).return=e,e=r),l(e);if(Oa(a))return m(e,r,a,u);if(B(a))return y(e,r,a,u);if(s&&Sa(e,a),void 0===a&&!c)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,G(e.type)||"Component"))}return n(e,r)}}var ka=xa(!0),Ca=xa(!1),Pa={},Ta=uo(Pa),Na=uo(Pa),ja=uo(Pa);function Aa(e){if(e===Pa)throw Error(i(174));return e}function Ra(e,t){switch(so(ja,t),so(Na,e),so(Ta,Pa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:de(null,"");break;default:t=de(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Ta),so(Ta,t)}function Ia(){co(Ta),co(Na),co(ja)}function Da(e){Aa(ja.current);var t=Aa(Ta.current),n=de(t,e.type);t!==n&&(so(Na,e),so(Ta,n))}function Ma(e){Na.current===e&&(co(Ta),co(Na))}var Fa=uo(0);function La(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ua=null,za=null,Va=!1;function Ba(e,t){var n=Bu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function Ha(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Wa(e){if(Va){var t=za;if(t){var n=t;if(!Ha(e,t)){if(!(t=Gr(n.nextSibling))||!Ha(e,t))return e.flags=-1025&e.flags|2,Va=!1,void(Ua=e);Ba(Ua,n)}Ua=e,za=Gr(t.firstChild)}else e.flags=-1025&e.flags|2,Va=!1,Ua=e}}function Ka(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ua=e}function qa(e){if(e!==Ua)return!1;if(!Va)return Ka(e),Va=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Hr(t,e.memoizedProps))for(t=za;t;)Ba(e,t),t=Gr(t.nextSibling);if(Ka(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){za=Gr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}za=null}}else za=Ua?Gr(e.stateNode.nextSibling):null;return!0}function Ga(){za=Ua=null,Va=!1}var Ya=[];function $a(){for(var e=0;e<Ya.length;e++)Ya[e]._workInProgressVersionPrimary=null;Ya.length=0}var Xa=E.ReactCurrentDispatcher,Qa=E.ReactCurrentBatchConfig,Ja=0,Za=null,ei=null,ti=null,ni=!1,ri=!1;function oi(){throw Error(i(321))}function ai(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!cr(e[n],t[n]))return!1;return!0}function ii(e,t,n,r,o,a){if(Ja=a,Za=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xa.current=null===e||null===e.memoizedState?Ai:Ri,e=n(r,o),ri){a=0;do{if(ri=!1,!(25>a))throw Error(i(301));a+=1,ti=ei=null,t.updateQueue=null,Xa.current=Ii,e=n(r,o)}while(ri)}if(Xa.current=ji,t=null!==ei&&null!==ei.next,Ja=0,ti=ei=Za=null,ni=!1,t)throw Error(i(300));return e}function li(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ti?Za.memoizedState=ti=e:ti=ti.next=e,ti}function ui(){if(null===ei){var e=Za.alternate;e=null!==e?e.memoizedState:null}else e=ei.next;var t=null===ti?Za.memoizedState:ti.next;if(null!==t)ti=t,ei=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ei=e).memoizedState,baseState:ei.baseState,baseQueue:ei.baseQueue,queue:ei.queue,next:null},null===ti?Za.memoizedState=ti=e:ti=ti.next=e}return ti}function ci(e,t){return"function"==typeof t?t(e):t}function si(e){var t=ui(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ei,o=r.baseQueue,a=n.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}r.baseQueue=o=a,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=a=null,c=o;do{var s=c.lane;if((Ja&s)===s)null!==u&&(u=u.next={lane:0,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),r=c.eagerReducer===e?c.eagerState:e(r,c.action);else{var f={lane:s,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(l=u=f,a=r):u=u.next=f,Za.lanes|=s,Ul|=s}c=c.next}while(null!==c&&c!==o);null===u?a=r:u.next=l,cr(r,t.memoizedState)||(Mi=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function fi(e){var t=ui(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,a=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);cr(a,t.memoizedState)||(Mi=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function pi(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Ja&e)===e)&&(t._workInProgressVersionPrimary=r,Ya.push(t))),e)return n(t._source);throw Ya.push(t),Error(i(350))}function di(e,t,n,r){var o=jl;if(null===o)throw Error(i(349));var a=t._getVersion,l=a(t._source),u=Xa.current,c=u.useState((function(){return pi(o,t,n)})),s=c[1],f=c[0];c=ti;var p=e.memoizedState,d=p.refs,h=d.getSnapshot,m=p.source;p=p.subscribe;var y=Za;return e.memoizedState={refs:d,source:t,subscribe:r},u.useEffect((function(){d.getSnapshot=n,d.setSnapshot=s;var e=a(t._source);if(!cr(l,e)){e=n(t._source),cr(f,e)||(s(e),e=fu(y),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,i=e;0<i;){var u=31-Ht(i),c=1<<u;r[u]|=e,i&=~c}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=d.getSnapshot,n=d.setSnapshot;try{n(e(t._source));var r=fu(y);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),cr(h,n)&&cr(m,t)&&cr(p,r)||((e={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:f}).dispatch=s=Ni.bind(null,Za,e),c.queue=e,c.baseQueue=null,f=pi(o,t,n),c.memoizedState=c.baseState=f),f}function hi(e,t,n){return di(ui(),e,t,n)}function mi(e){var t=li();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ci,lastRenderedState:e}).dispatch=Ni.bind(null,Za,e),[t.memoizedState,e]}function yi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Za.updateQueue)?(t={lastEffect:null},Za.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function gi(e){return e={current:e},li().memoizedState=e}function vi(){return ui().memoizedState}function bi(e,t,n,r){var o=li();Za.flags|=e,o.memoizedState=yi(1|t,n,void 0,void 0===r?null:r)}function wi(e,t,n,r){var o=ui();r=void 0===r?null:r;var a=void 0;if(null!==ei){var i=ei.memoizedState;if(a=i.destroy,null!==r&&ai(r,i.deps))return void yi(t,n,a,r)}Za.flags|=e,o.memoizedState=yi(1|t,n,a,r)}function Ei(e,t){return bi(516,4,e,t)}function Oi(e,t){return wi(516,4,e,t)}function _i(e,t){return wi(4,2,e,t)}function Si(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xi(e,t,n){return n=null!=n?n.concat([e]):null,wi(4,2,Si.bind(null,t,e),n)}function ki(){}function Ci(e,t){var n=ui();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ai(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Pi(e,t){var n=ui();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ai(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ti(e,t){var n=Wo();qo(98>n?98:n,(function(){e(!0)})),qo(97<n?97:n,(function(){var n=Qa.transition;Qa.transition=1;try{e(!1),t()}finally{Qa.transition=n}}))}function Ni(e,t,n){var r=su(),o=fu(e),a={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},i=t.pending;if(null===i?a.next=a:(a.next=i.next,i.next=a),t.pending=a,i=e.alternate,e===Za||null!==i&&i===Za)ri=ni=!0;else{if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=i(l,n);if(a.eagerReducer=i,a.eagerState=u,cr(u,l))return}catch(e){}pu(e,o,r)}}var ji={readContext:ia,useCallback:oi,useContext:oi,useEffect:oi,useImperativeHandle:oi,useLayoutEffect:oi,useMemo:oi,useReducer:oi,useRef:oi,useState:oi,useDebugValue:oi,useDeferredValue:oi,useTransition:oi,useMutableSource:oi,useOpaqueIdentifier:oi,unstable_isNewReconciler:!1},Ai={readContext:ia,useCallback:function(e,t){return li().memoizedState=[e,void 0===t?null:t],e},useContext:ia,useEffect:Ei,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,bi(4,2,Si.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bi(4,2,e,t)},useMemo:function(e,t){var n=li();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=li();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Ni.bind(null,Za,e),[r.memoizedState,e]},useRef:gi,useState:mi,useDebugValue:ki,useDeferredValue:function(e){var t=mi(e),n=t[0],r=t[1];return Ei((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=mi(!1),t=e[0];return gi(e=Ti.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=li();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},di(r,e,t,n)},useOpaqueIdentifier:function(){if(Va){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+($r++).toString(36))),Error(i(355))})),n=mi(t)[1];return 0==(2&Za.mode)&&(Za.flags|=516,yi(5,(function(){n("r:"+($r++).toString(36))}),void 0,null)),t}return mi(t="r:"+($r++).toString(36)),t},unstable_isNewReconciler:!1},Ri={readContext:ia,useCallback:Ci,useContext:ia,useEffect:Oi,useImperativeHandle:xi,useLayoutEffect:_i,useMemo:Pi,useReducer:si,useRef:vi,useState:function(){return si(ci)},useDebugValue:ki,useDeferredValue:function(e){var t=si(ci),n=t[0],r=t[1];return Oi((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=si(ci)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return si(ci)[0]},unstable_isNewReconciler:!1},Ii={readContext:ia,useCallback:Ci,useContext:ia,useEffect:Oi,useImperativeHandle:xi,useLayoutEffect:_i,useMemo:Pi,useReducer:fi,useRef:vi,useState:function(){return fi(ci)},useDebugValue:ki,useDeferredValue:function(e){var t=fi(ci),n=t[0],r=t[1];return Oi((function(){var t=Qa.transition;Qa.transition=1;try{r(e)}finally{Qa.transition=t}}),[e]),n},useTransition:function(){var e=fi(ci)[0];return[vi().current,e]},useMutableSource:hi,useOpaqueIdentifier:function(){return fi(ci)[0]},unstable_isNewReconciler:!1},Di=E.ReactCurrentOwner,Mi=!1;function Fi(e,t,n,r){t.child=null===e?Ca(t,null,n,r):ka(t,e.child,n,r)}function Li(e,t,n,r,o){n=n.render;var a=t.ref;return aa(t,o),r=ii(e,t,n,r,a,o),null===e||Mi?(t.flags|=1,Fi(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,rl(e,t,o))}function Ui(e,t,n,r,o,a){if(null===e){var i=n.type;return"function"!=typeof i||Hu(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ku(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,zi(e,t,i,r,o,a))}return i=e.child,0==(o&a)&&(o=i.memoizedProps,(n=null!==(n=n.compare)?n:fr)(o,r)&&e.ref===t.ref)?rl(e,t,a):(t.flags|=1,(e=Wu(i,r)).ref=t.ref,e.return=t,t.child=e)}function zi(e,t,n,r,o,a){if(null!==e&&fr(e.memoizedProps,r)&&e.ref===t.ref){if(Mi=!1,0==(a&o))return t.lanes=e.lanes,rl(e,t,a);0!=(16384&e.flags)&&(Mi=!0)}return Hi(e,t,n,r,a)}function Vi(e,t,n){var r=t.pendingProps,o=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},wu(0,n);else{if(0==(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},wu(0,e),null;t.memoizedState={baseLanes:0},wu(0,null!==a?a.baseLanes:n)}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,wu(0,r);return Fi(e,t,o,n),t.child}function Bi(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function Hi(e,t,n,r,o){var a=go(n)?mo:po.current;return a=yo(t,a),aa(t,o),n=ii(e,t,n,r,a,o),null===e||Mi?(t.flags|=1,Fi(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,rl(e,t,o))}function Wi(e,t,n,r,o){if(go(n)){var a=!0;Eo(t)}else a=!1;if(aa(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),ba(t,n,r),Ea(t,n,r,o),r=!0;else if(null===e){var i=t.stateNode,l=t.memoizedProps;i.props=l;var u=i.context,c=n.contextType;c="object"==typeof c&&null!==c?ia(c):yo(t,c=go(n)?mo:po.current);var s=n.getDerivedStateFromProps,f="function"==typeof s||"function"==typeof i.getSnapshotBeforeUpdate;f||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==r||u!==c)&&wa(t,i,r,c),la=!1;var p=t.memoizedState;i.state=p,da(t,r,i,o),u=t.memoizedState,l!==r||p!==u||ho.current||la?("function"==typeof s&&(ya(t,n,s,r),u=t.memoizedState),(l=la||va(t,n,l,r,p,u,c))?(f||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(t.flags|=4)):("function"==typeof i.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=c,r=l):("function"==typeof i.componentDidMount&&(t.flags|=4),r=!1)}else{i=t.stateNode,ca(e,t),l=t.memoizedProps,c=t.type===t.elementType?l:Qo(t.type,l),i.props=c,f=t.pendingProps,p=i.context,u="object"==typeof(u=n.contextType)&&null!==u?ia(u):yo(t,u=go(n)?mo:po.current);var d=n.getDerivedStateFromProps;(s="function"==typeof d||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(l!==f||p!==u)&&wa(t,i,r,u),la=!1,p=t.memoizedState,i.state=p,da(t,r,i,o);var h=t.memoizedState;l!==f||p!==h||ho.current||la?("function"==typeof d&&(ya(t,n,d,r),h=t.memoizedState),(c=la||va(t,n,c,r,p,h,u))?(s||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,u),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof i.componentDidUpdate&&(t.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=h),i.props=r,i.state=h,i.context=u,r=c):("function"!=typeof i.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=256),r=!1)}return Ki(e,t,n,r,a,o)}function Ki(e,t,n,r,o,a){Bi(e,t);var i=0!=(64&t.flags);if(!r&&!i)return o&&Oo(t,n,!1),rl(e,t,a);r=t.stateNode,Di.current=t;var l=i&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=ka(t,e.child,null,a),t.child=ka(t,null,l,a)):Fi(e,t,l,a),t.memoizedState=r.state,o&&Oo(t,n,!0),t.child}function qi(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),Ra(e,t.containerInfo)}var Gi,Yi,$i,Xi,Qi={dehydrated:null,retryLane:0};function Ji(e,t,n){var r,o=t.pendingProps,a=Fa.current,i=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(a|=1),so(Fa,1&a),null===e?(void 0!==o.fallback&&Wa(t),e=o.children,a=o.fallback,i?(e=Zi(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,e):"number"==typeof o.unstable_expectedLoadTime?(e=Zi(t,e,a,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Qi,t.lanes=33554432,e):((n=Gu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,i?(o=function(e,t,n,r,o){var a=t.mode,i=e.child;e=i.sibling;var l={mode:"hidden",children:n};return 0==(2&a)&&t.child!==i?((n=t.child).childLanes=0,n.pendingProps=l,null!==(i=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=i,i.nextEffect=null):t.firstEffect=t.lastEffect=null):n=Wu(i,l),null!==e?r=Wu(e,r):(r=qu(r,a,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,o.children,o.fallback,n),i=t.child,a=e.child.memoizedState,i.memoizedState=null===a?{baseLanes:n}:{baseLanes:a.baseLanes|n},i.childLanes=e.childLanes&~n,t.memoizedState=Qi,o):(n=function(e,t,n,r){var o=e.child;return e=o.sibling,n=Wu(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,o.children,n),t.memoizedState=null,n))}function Zi(e,t,n,r){var o=e.mode,a=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==a?(a.childLanes=0,a.pendingProps=t):a=Gu(t,o,0,null),n=qu(n,o,r,null),a.return=e,n.return=e,a.sibling=n,e.child=a,n}function el(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),oa(e.return,t)}function tl(e,t,n,r,o,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o,i.lastEffect=a)}function nl(e,t,n){var r=t.pendingProps,o=r.revealOrder,a=r.tail;if(Fi(e,t,r.children,n),0!=(2&(r=Fa.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&el(e,n);else if(19===e.tag)el(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(so(Fa,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===La(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),tl(t,!1,o,n,a,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===La(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}tl(t,!0,n,null,a,t.lastEffect);break;case"together":tl(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function rl(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ul|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=Wu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Wu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function ol(e,t){if(!Va)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function al(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return go(t.type)&&vo(),null;case 3:return Ia(),co(ho),co(po),$a(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(qa(t)?t.flags|=4:r.hydrate||(t.flags|=256)),Yi(t),null;case 5:Ma(t);var a=Aa(ja.current);if(n=t.type,null!==e&&null!=t.stateNode)$i(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(i(166));return null}if(e=Aa(Ta.current),qa(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Qr]=t,r[Jr]=l,n){case"dialog":Tr("cancel",r),Tr("close",r);break;case"iframe":case"object":case"embed":Tr("load",r);break;case"video":case"audio":for(e=0;e<xr.length;e++)Tr(xr[e],r);break;case"source":Tr("error",r);break;case"img":case"image":case"link":Tr("error",r),Tr("load",r);break;case"details":Tr("toggle",r);break;case"input":ee(r,l),Tr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Tr("invalid",r);break;case"textarea":ue(r,l),Tr("invalid",r)}for(var c in _e(n,l),e=null,l)l.hasOwnProperty(c)&&(a=l[c],"children"===c?"string"==typeof a?r.textContent!==a&&(e=["children",a]):"number"==typeof a&&r.textContent!==""+a&&(e=["children",""+a]):u.hasOwnProperty(c)&&null!=a&&"onScroll"===c&&Tr("scroll",r));switch(n){case"input":X(r),re(r,l,!0);break;case"textarea":X(r),se(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Ur)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(c=9===a.nodeType?a:a.ownerDocument,e===fe.html&&(e=pe(n)),e===fe.html?"script"===n?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=c.createElement(n,{is:r.is}):(e=c.createElement(n),"select"===n&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,n),e[Qr]=t,e[Jr]=r,Gi(e,t,!1,!1),t.stateNode=e,c=Se(n,r),n){case"dialog":Tr("cancel",e),Tr("close",e),a=r;break;case"iframe":case"object":case"embed":Tr("load",e),a=r;break;case"video":case"audio":for(a=0;a<xr.length;a++)Tr(xr[a],e);a=r;break;case"source":Tr("error",e),a=r;break;case"img":case"image":case"link":Tr("error",e),Tr("load",e),a=r;break;case"details":Tr("toggle",e),a=r;break;case"input":ee(e,r),a=Z(e,r),Tr("invalid",e);break;case"option":a=ae(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=o({},r,{value:void 0}),Tr("invalid",e);break;case"textarea":ue(e,r),a=le(e,r),Tr("invalid",e);break;default:a=r}_e(n,a);var s=a;for(l in s)if(s.hasOwnProperty(l)){var f=s[l];"style"===l?Ee(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ye(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ge(e,f):"number"==typeof f&&ge(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Tr("scroll",e):null!=f&&w(e,l,f,c))}switch(n){case"input":X(e),re(e,r,!1);break;case"textarea":X(e),se(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Y(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ie(e,!!r.multiple,l,!1):null!=r.defaultValue&&ie(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof a.onClick&&(e.onclick=Ur)}Br(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)Xi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(i(166));n=Aa(ja.current),Aa(Ta.current),qa(t)?(r=t.stateNode,n=t.memoizedProps,r[Qr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Qr]=t,t.stateNode=r)}return null;case 13:return co(Fa),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&qa(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Fa.current)?0===Ml&&(Ml=3):(0!==Ml&&3!==Ml||(Ml=4),null===jl||0==(134217727&Ul)&&0==(134217727&zl)||yu(jl,Rl))),(r||n)&&(t.flags|=4),null);case 4:return Ia(),Yi(t),null===e&&jr(t.stateNode.containerInfo),null;case 10:return ra(t),null;case 19:if(co(Fa),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(c=r.rendering))if(l)ol(r,!1);else{if(0!==Ml||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(c=La(e))){for(t.flags|=64,ol(r,!1),null!==(l=c.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(c=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=c.childLanes,l.lanes=c.lanes,l.child=c.child,l.memoizedProps=c.memoizedProps,l.memoizedState=c.memoizedState,l.updateQueue=c.updateQueue,l.type=c.type,e=c.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return so(Fa,1&Fa.current|2),t.child}e=e.sibling}null!==r.tail&&Ho()>Wl&&(t.flags|=64,l=!0,ol(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=La(c))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ol(r,!0),null===r.tail&&"hidden"===r.tailMode&&!c.alternate&&!Va)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ho()-r.renderingStartTime>Wl&&1073741824!==n&&(t.flags|=64,l=!0,ol(r,!1),t.lanes=33554432);r.isBackwards?(c.sibling=t.child,t.child=c):(null!==(n=r.last)?n.sibling=c:t.child=c,r.last=c)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ho(),n.sibling=null,t=Fa.current,so(Fa,l?1&t|2:1&t),n):null;case 23:case 24:return Eu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(i(156,t.tag))}function il(e){switch(e.tag){case 1:go(e.type)&&vo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ia(),co(ho),co(po),$a(),0!=(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return Ma(e),null;case 13:return co(Fa),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return co(Fa),null;case 4:return Ia(),null;case 10:return ra(e),null;case 23:case 24:return Eu(),null;default:return null}}function ll(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function ul(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Gi=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Yi=function(){},$i=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Aa(Ta.current);var i,l=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),l=[];break;case"option":a=ae(e,a),r=ae(e,r),l=[];break;case"select":a=o({},a,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":a=le(e,a),r=le(e,r),l=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(e.onclick=Ur)}for(f in _e(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var c=a[f];for(i in c)c.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var s=r[f];if(c=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&s!==c&&(null!=s||null!=c))if("style"===f)if(c){for(i in c)!c.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&c[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(l||(l=[]),l.push(f,n)),n=s;else"dangerouslySetInnerHTML"===f?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(l=l||[]).push(f,s)):"children"===f?"string"!=typeof s&&"number"!=typeof s||(l=l||[]).push(f,""+s):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=s&&"onScroll"===f&&Tr("scroll",e),l||c===s||(l=[])):"object"==typeof s&&null!==s&&s.$$typeof===D?s.toString():(l=l||[]).push(f,s))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Xi=function(e,t,n,r){n!==r&&(t.flags|=4)};var cl="function"==typeof WeakMap?WeakMap:Map;function sl(e,t,n){(n=sa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Yl||(Yl=!0,$l=r),ul(0,t)},n}function fl(e,t,n){(n=sa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ul(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Xl?Xl=new Set([this]):Xl.add(this),ul(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var pl="function"==typeof WeakSet?WeakSet:Set;function dl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Lu(e,t)}else t.current=null}function hl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Qo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&qr(t.stateNode.containerInfo))}throw Error(i(163))}function ml(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(Du(n,e),Iu(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Qo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ha(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}ha(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Br(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Et(n)))))}throw Error(i(163))}function yl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function gl(e,t){if(So&&"function"==typeof So.onCommitFiberUnmount)try{So.onCommitFiberUnmount(_o,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))Du(t,n);else{r=t;try{o()}catch(e){Lu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(dl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Lu(t,e)}break;case 5:dl(t);break;case 4:_l(e,t)}}function vl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function bl(e){return 5===e.tag||3===e.tag||4===e.tag}function wl(e){e:{for(var t=e.return;null!==t;){if(bl(t))break e;t=t.return}throw Error(i(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(i(161))}16&n.flags&&(ge(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||bl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?El(e,n,t):Ol(e,n,t)}function El(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Ur));else if(4!==r&&null!==(e=e.child))for(El(e,t,n),e=e.sibling;null!==e;)El(e,t,n),e=e.sibling}function Ol(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(Ol(e,t,n),e=e.sibling;null!==e;)Ol(e,t,n),e=e.sibling}function _l(e,t){for(var n,r,o=t,a=!1;;){if(!a){a=o.return;e:for(;;){if(null===a)throw Error(i(160));switch(n=a.stateNode,a.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}a=a.return}a=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,c=u;;)if(gl(l,c),null!==c.child&&4!==c.tag)c.child.return=c,c=c.child;else{if(c===u)break e;for(;null===c.sibling;){if(null===c.return||c.return===u)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r?(l=n,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(gl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(a=!1)}o.sibling.return=o.return,o=o.sibling}}function Sl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[Jr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;o<a.length;o+=2){var l=a[o],u=a[o+1];"style"===l?Ee(n,u):"dangerouslySetInnerHTML"===l?ye(n,u):"children"===l?ge(n,u):w(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":ce(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(a=r.value)?ie(n,!!r.multiple,a,!1):e!==!!r.multiple&&(null!=r.defaultValue?ie(n,!!r.multiple,r.defaultValue,!0):ie(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(i(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,Et(n.containerInfo)));case 13:return null!==t.memoizedState&&(Hl=Ho(),yl(t.child,!0)),void xl(t);case 19:return void xl(t);case 23:case 24:return void yl(t,null!==t.memoizedState)}throw Error(i(163))}function xl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new pl),t.forEach((function(t){var r=zu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function kl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var Cl=Math.ceil,Pl=E.ReactCurrentDispatcher,Tl=E.ReactCurrentOwner,Nl=0,jl=null,Al=null,Rl=0,Il=0,Dl=uo(0),Ml=0,Fl=null,Ll=0,Ul=0,zl=0,Vl=0,Bl=null,Hl=0,Wl=1/0;function Kl(){Wl=Ho()+500}var ql,Gl=null,Yl=!1,$l=null,Xl=null,Ql=!1,Jl=null,Zl=90,eu=[],tu=[],nu=null,ru=0,ou=null,au=-1,iu=0,lu=0,uu=null,cu=!1;function su(){return 0!=(48&Nl)?Ho():-1!==au?au:au=Ho()}function fu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Wo()?1:2;if(0===iu&&(iu=Ll),0!==Xo.transition){0!==lu&&(lu=null!==Bl?Bl.pendingLanes:0),e=iu;var t=4186112&~lu;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Wo(),e=Ut(0!=(4&Nl)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),iu)}function pu(e,t,n){if(50<ru)throw ru=0,ou=null,Error(i(185));if(null===(e=du(e,t)))return null;Bt(e,t,n),e===jl&&(zl|=t,4===Ml&&yu(e,Rl));var r=Wo();1===t?0!=(8&Nl)&&0==(48&Nl)?gu(e):(hu(e,n),0===Nl&&(Kl(),Yo())):(0==(4&Nl)||98!==r&&99!==r||(null===nu?nu=new Set([e]):nu.add(e)),hu(e,n)),Bl=e}function du(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function hu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,a=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Ht(l),c=1<<u,s=a[u];if(-1===s){if(0==(c&r)||0!=(c&o)){s=t,Mt(c);var f=Dt;a[u]=10<=f?s+250:6<=f?s+5e3:-1}}else s<=t&&(e.expiredLanes|=c);l&=~c}if(r=Ft(e,e===jl?Rl:0),t=Dt,0===r)null!==n&&(n!==Fo&&Co(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Fo&&Co(n)}15===t?(n=gu.bind(null,e),null===Uo?(Uo=[n],zo=ko(Ao,$o)):Uo.push(n),n=Fo):14===t?n=Go(99,gu.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(i(358,e))}}(t),n=Go(n,mu.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function mu(e){if(au=-1,lu=iu=0,0!=(48&Nl))throw Error(i(327));var t=e.callbackNode;if(Ru()&&e.callbackNode!==t)return null;var n=Ft(e,e===jl?Rl:0);if(0===n)return null;var r=n,o=Nl;Nl|=16;var a=Su();for(jl===e&&Rl===r||(Kl(),Ou(e,r));;)try{Cu();break}catch(t){_u(e,t)}if(na(),Pl.current=a,Nl=o,null!==Al?r=0:(jl=null,Rl=0,r=Ml),0!=(Ll&zl))Ou(e,0);else if(0!==r){if(2===r&&(Nl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(n=Lt(e))&&(r=xu(e,n))),1===r)throw t=Fl,Ou(e,0),yu(e,n),hu(e,Ho()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(i(345));case 2:case 5:Nu(e);break;case 3:if(yu(e,n),(62914560&n)===n&&10<(r=Hl+500-Ho())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){su(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Wr(Nu.bind(null,e),r);break}Nu(e);break;case 4:if(yu(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Ht(n);a=1<<l,(l=r[l])>o&&(o=l),n&=~a}if(n=o,10<(n=(120>(n=Ho()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Cl(n/1960))-n)){e.timeoutHandle=Wr(Nu.bind(null,e),n);break}Nu(e);break;default:throw Error(i(329))}}return hu(e,Ho()),e.callbackNode===t?mu.bind(null,e):null}function yu(e,t){for(t&=~Vl,t&=~zl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function gu(e){if(0!=(48&Nl))throw Error(i(327));if(Ru(),e===jl&&0!=(e.expiredLanes&Rl)){var t=Rl,n=xu(e,t);0!=(Ll&zl)&&(n=xu(e,t=Ft(e,t)))}else n=xu(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Nl|=64,e.hydrate&&(e.hydrate=!1,qr(e.containerInfo)),0!==(t=Lt(e))&&(n=xu(e,t))),1===n)throw n=Fl,Ou(e,0),yu(e,t),hu(e,Ho()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Nu(e),hu(e,Ho()),null}function vu(e,t){var n=Nl;Nl|=1;try{return e(t)}finally{0===(Nl=n)&&(Kl(),Yo())}}function bu(e,t){var n=Nl;Nl&=-2,Nl|=8;try{return e(t)}finally{0===(Nl=n)&&(Kl(),Yo())}}function wu(e,t){so(Dl,Il),Il|=t,Ll|=t}function Eu(){Il=Dl.current,co(Dl)}function Ou(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Kr(n)),null!==Al)for(n=Al.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&vo();break;case 3:Ia(),co(ho),co(po),$a();break;case 5:Ma(r);break;case 4:Ia();break;case 13:case 19:co(Fa);break;case 10:ra(r);break;case 23:case 24:Eu()}n=n.return}jl=e,Al=Wu(e.current,null),Rl=Il=Ll=t,Ml=0,Fl=null,Vl=zl=Ul=0}function _u(e,t){for(;;){var n=Al;try{if(na(),Xa.current=ji,ni){for(var r=Za.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}ni=!1}if(Ja=0,ti=ei=Za=null,ri=!1,Tl.current=null,null===n||null===n.return){Ml=1,Fl=t,Al=null;break}e:{var a=e,i=n.return,l=n,u=t;if(t=Rl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var c=u;if(0==(2&l.mode)){var s=l.alternate;s?(l.updateQueue=s.updateQueue,l.memoizedState=s.memoizedState,l.lanes=s.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Fa.current),p=i;do{var d;if(d=13===p.tag){var h=p.memoizedState;if(null!==h)d=null!==h.dehydrated;else{var m=p.memoizedProps;d=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!f)}}if(d){var y=p.updateQueue;if(null===y){var g=new Set;g.add(c),p.updateQueue=g}else y.add(c);if(0==(2&p.mode)){if(p.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var v=sa(-1,1);v.tag=2,fa(l,v)}l.lanes|=1;break e}u=void 0,l=t;var b=a.pingCache;if(null===b?(b=a.pingCache=new cl,u=new Set,b.set(c,u)):void 0===(u=b.get(c))&&(u=new Set,b.set(c,u)),!u.has(l)){u.add(l);var w=Uu.bind(null,a,c,l);c.then(w,w)}p.flags|=4096,p.lanes=t;break e}p=p.return}while(null!==p);u=Error((G(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Ml&&(Ml=2),u=ll(u,l),p=i;do{switch(p.tag){case 3:a=u,p.flags|=4096,t&=-t,p.lanes|=t,pa(p,sl(0,a,t));break e;case 1:a=u;var E=p.type,O=p.stateNode;if(0==(64&p.flags)&&("function"==typeof E.getDerivedStateFromError||null!==O&&"function"==typeof O.componentDidCatch&&(null===Xl||!Xl.has(O)))){p.flags|=4096,t&=-t,p.lanes|=t,pa(p,fl(p,a,t));break e}}p=p.return}while(null!==p)}Tu(n)}catch(e){t=e,Al===n&&null!==n&&(Al=n=n.return);continue}break}}function Su(){var e=Pl.current;return Pl.current=ji,null===e?ji:e}function xu(e,t){var n=Nl;Nl|=16;var r=Su();for(jl===e&&Rl===t||Ou(e,t);;)try{ku();break}catch(t){_u(e,t)}if(na(),Nl=n,Pl.current=r,null!==Al)throw Error(i(261));return jl=null,Rl=0,Ml}function ku(){for(;null!==Al;)Pu(Al)}function Cu(){for(;null!==Al&&!Po();)Pu(Al)}function Pu(e){var t=ql(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?Tu(e):Al=t,Tl.current=null}function Tu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=al(n,t,Il)))return void(Al=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Il)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=il(t)))return n.flags&=2047,void(Al=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Al=t);Al=t=e}while(null!==t);0===Ml&&(Ml=5)}function Nu(e){var t=Wo();return qo(99,ju.bind(null,e,t)),null}function ju(e,t){do{Ru()}while(null!==Jl);if(0!=(48&Nl))throw Error(i(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,a=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<a;){var c=31-Ht(a),s=1<<c;o[c]=0,l[c]=-1,u[c]=-1,a&=~s}if(null!==nu&&0==(24&r)&&nu.has(e)&&nu.delete(e),e===jl&&(Al=jl=null,Rl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Nl,Nl|=32,Tl.current=null,zr=Yt,yr(l=mr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(s=u.getSelection&&u.getSelection())&&0!==s.rangeCount){u=s.anchorNode,a=s.anchorOffset,c=s.focusNode,s=s.focusOffset;try{u.nodeType,c.nodeType}catch(e){u=null;break e}var f=0,p=-1,d=-1,h=0,m=0,y=l,g=null;t:for(;;){for(var v;y!==u||0!==a&&3!==y.nodeType||(p=f+a),y!==c||0!==s&&3!==y.nodeType||(d=f+s),3===y.nodeType&&(f+=y.nodeValue.length),null!==(v=y.firstChild);)g=y,y=v;for(;;){if(y===l)break t;if(g===u&&++h===a&&(p=f),g===c&&++m===s&&(d=f),null!==(v=y.nextSibling))break;g=(y=g).parentNode}y=v}u=-1===p||-1===d?null:{start:p,end:d}}else u=null;u=u||{start:0,end:0}}else u=null;Vr={focusedElem:l,selectionRange:u},Yt=!1,uu=null,cu=!1,Gl=r;do{try{Au()}catch(e){if(null===Gl)throw Error(i(330));Lu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);uu=null,Gl=r;do{try{for(l=e;null!==Gl;){var b=Gl.flags;if(16&b&&ge(Gl.stateNode,""),128&b){var w=Gl.alternate;if(null!==w){var E=w.ref;null!==E&&("function"==typeof E?E(null):E.current=null)}}switch(1038&b){case 2:wl(Gl),Gl.flags&=-3;break;case 6:wl(Gl),Gl.flags&=-3,Sl(Gl.alternate,Gl);break;case 1024:Gl.flags&=-1025;break;case 1028:Gl.flags&=-1025,Sl(Gl.alternate,Gl);break;case 4:Sl(Gl.alternate,Gl);break;case 8:_l(l,u=Gl);var O=u.alternate;vl(u),null!==O&&vl(O)}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(i(330));Lu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);if(E=Vr,w=mr(),b=E.focusedElem,l=E.selectionRange,w!==b&&b&&b.ownerDocument&&hr(b.ownerDocument.documentElement,b)){null!==l&&yr(b)&&(w=l.start,void 0===(E=l.end)&&(E=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(E,b.value.length)):(E=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(E=E.getSelection(),u=b.textContent.length,O=Math.min(l.start,u),l=void 0===l.end?O:Math.min(l.end,u),!E.extend&&O>l&&(u=l,l=O,O=u),u=dr(b,O),a=dr(b,l),u&&a&&(1!==E.rangeCount||E.anchorNode!==u.node||E.anchorOffset!==u.offset||E.focusNode!==a.node||E.focusOffset!==a.offset)&&((w=w.createRange()).setStart(u.node,u.offset),E.removeAllRanges(),O>l?(E.addRange(w),E.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),E.addRange(w))))),w=[];for(E=b;E=E.parentNode;)1===E.nodeType&&w.push({element:E,left:E.scrollLeft,top:E.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(E=w[b]).element.scrollLeft=E.left,E.element.scrollTop=E.top}Yt=!!zr,Vr=zr=null,e.current=n,Gl=r;do{try{for(b=e;null!==Gl;){var _=Gl.flags;if(36&_&&ml(b,Gl.alternate,Gl),128&_){w=void 0;var S=Gl.ref;if(null!==S){var x=Gl.stateNode;Gl.tag,w=x,"function"==typeof S?S(w):S.current=w}}Gl=Gl.nextEffect}}catch(e){if(null===Gl)throw Error(i(330));Lu(Gl,e),Gl=Gl.nextEffect}}while(null!==Gl);Gl=null,Lo(),Nl=o}else e.current=n;if(Ql)Ql=!1,Jl=e,Zl=t;else for(Gl=r;null!==Gl;)t=Gl.nextEffect,Gl.nextEffect=null,8&Gl.flags&&((_=Gl).sibling=null,_.stateNode=null),Gl=t;if(0===(r=e.pendingLanes)&&(Xl=null),1===r?e===ou?ru++:(ru=0,ou=e):ru=0,n=n.stateNode,So&&"function"==typeof So.onCommitFiberRoot)try{So.onCommitFiberRoot(_o,n,void 0,64==(64&n.current.flags))}catch(e){}if(hu(e,Ho()),Yl)throw Yl=!1,e=$l,$l=null,e;return 0!=(8&Nl)||Yo(),null}function Au(){for(;null!==Gl;){var e=Gl.alternate;cu||null===uu||(0!=(8&Gl.flags)?Ze(Gl,uu)&&(cu=!0):13===Gl.tag&&kl(e,Gl)&&Ze(Gl,uu)&&(cu=!0));var t=Gl.flags;0!=(256&t)&&hl(e,Gl),0==(512&t)||Ql||(Ql=!0,Go(97,(function(){return Ru(),null}))),Gl=Gl.nextEffect}}function Ru(){if(90!==Zl){var e=97<Zl?97:Zl;return Zl=90,qo(e,Mu)}return!1}function Iu(e,t){eu.push(t,e),Ql||(Ql=!0,Go(97,(function(){return Ru(),null})))}function Du(e,t){tu.push(t,e),Ql||(Ql=!0,Go(97,(function(){return Ru(),null})))}function Mu(){if(null===Jl)return!1;var e=Jl;if(Jl=null,0!=(48&Nl))throw Error(i(331));var t=Nl;Nl|=32;var n=tu;tu=[];for(var r=0;r<n.length;r+=2){var o=n[r],a=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===a)throw Error(i(330));Lu(a,e)}}for(n=eu,eu=[],r=0;r<n.length;r+=2){o=n[r],a=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===a)throw Error(i(330));Lu(a,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Nl=t,Yo(),!0}function Fu(e,t,n){fa(e,t=sl(0,t=ll(n,t),1)),t=su(),null!==(e=du(e,1))&&(Bt(e,1,t),hu(e,t))}function Lu(e,t){if(3===e.tag)Fu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Fu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Xl||!Xl.has(r))){var o=fl(n,e=ll(t,e),1);if(fa(n,o),o=su(),null!==(n=du(n,1)))Bt(n,1,o),hu(n,o);else if("function"==typeof r.componentDidCatch&&(null===Xl||!Xl.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Uu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=su(),e.pingedLanes|=e.suspendedLanes&n,jl===e&&(Rl&n)===n&&(4===Ml||3===Ml&&(62914560&Rl)===Rl&&500>Ho()-Hl?Ou(e,0):Vl|=n),hu(e,t)}function zu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Wo()?1:2:(0===iu&&(iu=Ll),0===(t=zt(62914560&~iu))&&(t=4194304))),n=su(),null!==(e=du(e,t))&&(Bt(e,t,n),hu(e,n))}function Vu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Bu(e,t,n,r){return new Vu(e,t,n,r)}function Hu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Wu(e,t){var n=e.alternate;return null===n?((n=Bu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ku(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Hu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return qu(n.children,o,a,t);case M:l=8,o|=16;break;case x:l=8,o|=1;break;case k:return(e=Bu(12,n,t,8|o)).elementType=k,e.type=k,e.lanes=a,e;case N:return(e=Bu(13,n,t,o)).type=N,e.elementType=N,e.lanes=a,e;case j:return(e=Bu(19,n,t,o)).elementType=j,e.lanes=a,e;case F:return Gu(n,o,a,t);case L:return(e=Bu(24,n,t,o)).elementType=L,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case P:l=9;break e;case T:l=11;break e;case A:l=14;break e;case R:l=16,r=null;break e;case I:l=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Bu(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function qu(e,t,n,r){return(e=Bu(7,e,r,t)).lanes=n,e}function Gu(e,t,n,r){return(e=Bu(23,e,r,t)).elementType=F,e.lanes=n,e}function Yu(e,t,n){return(e=Bu(6,e,null,t)).lanes=n,e}function $u(e,t,n){return(t=Bu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Xu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Vt(0),this.expirationTimes=Vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vt(0),this.mutableSourceEagerHydrationData=null}function Qu(e,t,n,r){var o=t.current,a=su(),l=fu(o);e:if(n){t:{if($e(n=n._reactInternals)!==n||1!==n.tag)throw Error(i(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(go(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(i(171))}if(1===n.tag){var c=n.type;if(go(c)){n=wo(n,c,u);break e}}n=u}else n=fo;return null===t.context?t.context=n:t.pendingContext=n,(t=sa(a,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),fa(o,t),pu(o,l,a),l}function Ju(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Zu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function ec(e,t){Zu(e,t),(e=e.alternate)&&Zu(e,t)}function tc(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new Xu(e,t,null!=n&&!0===n.hydrate),t=Bu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ua(t),e[Zr]=n.current,jr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function nc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function rc(e,t,n,r,o){var a=n._reactRootContainer;if(a){var i=a._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Ju(i);l.call(e)}}Qu(t,i,e,o)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new tc(e,0,t?{hydrate:!0}:void 0)}(n,r),i=a._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Ju(i);u.call(e)}}bu((function(){Qu(t,i,e,o)}))}return Ju(i)}function oc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:_,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}ql=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||ho.current)Mi=!0;else{if(0==(n&r)){switch(Mi=!1,t.tag){case 3:qi(t),Ga();break;case 5:Da(t);break;case 1:go(t.type)&&Eo(t);break;case 4:Ra(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;so(Jo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ji(e,t,n):(so(Fa,1&Fa.current),null!==(t=rl(e,t,n))?t.sibling:null);so(Fa,1&Fa.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return nl(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),so(Fa,Fa.current),r)break;return null;case 23:case 24:return t.lanes=0,Vi(e,t,n)}return rl(e,t,n)}Mi=0!=(16384&e.flags)}else Mi=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=yo(t,po.current),aa(t,n),o=ii(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,go(r)){var a=!0;Eo(t)}else a=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ua(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&ya(t,r,l,e),o.updater=ga,t.stateNode=o,o._reactInternals=t,Ea(t,r,e,n),t=Ki(null,t,r,!0,a,n)}else t.tag=0,Fi(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(a=o._init)(o._payload),t.type=o,a=t.tag=function(e){if("function"==typeof e)return Hu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(o),e=Qo(o,e),a){case 0:t=Hi(null,t,o,e,n);break e;case 1:t=Wi(null,t,o,e,n);break e;case 11:t=Li(null,t,o,e,n);break e;case 14:t=Ui(null,t,o,Qo(o.type,e),r,n);break e}throw Error(i(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,Hi(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Wi(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 3:if(qi(t),r=t.updateQueue,null===e||null===r)throw Error(i(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ca(e,t),da(t,r,null,n),(r=t.memoizedState.element)===o)Ga(),t=rl(e,t,n);else{if((a=(o=t.stateNode).hydrate)&&(za=Gr(t.stateNode.containerInfo.firstChild),Ua=t,a=Va=!0),a){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(a=e[o])._workInProgressVersionPrimary=e[o+1],Ya.push(a);for(n=Ca(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Fi(e,t,r,n),Ga();t=t.child}return t;case 5:return Da(t),null===e&&Wa(t),r=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,Hr(r,o)?l=null:null!==a&&Hr(r,a)&&(t.flags|=16),Bi(e,t),Fi(e,t,l,n),t.child;case 6:return null===e&&Wa(t),null;case 13:return Ji(e,t,n);case 4:return Ra(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ka(t,null,r,n):Fi(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Li(e,t,r,o=t.elementType===r?o:Qo(r,o),n);case 7:return Fi(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fi(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,a=o.value;var u=t.type._context;if(so(Jo,u._currentValue),u._currentValue=a,null!==l)if(u=l.value,0==(a=cr(u,a)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,a):1073741823))){if(l.children===o.children&&!ho.current){t=rl(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){l=u.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&0!=(s.observedBits&a)){1===u.tag&&((s=sa(-1,n&-n)).tag=2,fa(u,s)),u.lanes|=n,null!==(s=u.alternate)&&(s.lanes|=n),oa(u.return,n),c.lanes|=n;break}s=s.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}Fi(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(a=t.pendingProps).children,aa(t,n),r=r(o=ia(o,a.unstable_observedBits)),t.flags|=1,Fi(e,t,r,n),t.child;case 14:return a=Qo(o=t.type,t.pendingProps),Ui(e,t,o,a=Qo(o.type,a),r,n);case 15:return zi(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Qo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,go(r)?(e=!0,Eo(t)):e=!1,aa(t,n),ba(t,r,o),Ea(t,r,o,n),Ki(null,t,r,!0,e,n);case 19:return nl(e,t,n);case 23:case 24:return Vi(e,t,n)}throw Error(i(156,t.tag))},tc.prototype.render=function(e){Qu(e,this._internalRoot,null,null)},tc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Qu(null,e,null,(function(){t[Zr]=null}))},et=function(e){13===e.tag&&(pu(e,4,su()),ec(e,4))},tt=function(e){13===e.tag&&(pu(e,67108864,su()),ec(e,67108864))},nt=function(e){if(13===e.tag){var t=su(),n=fu(e);pu(e,n,t),ec(e,n)}},rt=function(e,t){return t()},ke=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=oo(r);if(!o)throw Error(i(90));Q(r),ne(r,o)}}}break;case"textarea":ce(e,n);break;case"select":null!=(t=n.value)&&ie(e,!!n.multiple,t,!1)}},Ae=vu,Re=function(e,t,n,r,o){var a=Nl;Nl|=4;try{return qo(98,e.bind(null,t,n,r,o))}finally{0===(Nl=a)&&(Kl(),Yo())}},Ie=function(){0==(49&Nl)&&(function(){if(null!==nu){var e=nu;nu=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,hu(e,Ho())}))}Yo()}(),Ru())},De=function(e,t){var n=Nl;Nl|=2;try{return e(t)}finally{0===(Nl=n)&&(Kl(),Yo())}};var ac={Events:[no,ro,oo,Ne,je,Ru,{current:!1}]},ic={findFiberByHostInstance:to,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},lc={bundleType:ic.bundleType,version:ic.version,rendererPackageName:ic.rendererPackageName,rendererConfig:ic.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:E.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Je(e))?null:e.stateNode},findFiberByHostInstance:ic.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var uc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uc.isDisabled&&uc.supportsFiber)try{_o=uc.inject(lc),So=uc}catch(me){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ac,t.createPortal=oc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(i(188));throw Error(i(268,Object.keys(e)))}return null===(e=Je(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Nl;if(0!=(48&n))return e(t);Nl|=1;try{if(e)return qo(99,e.bind(null,t))}finally{Nl=n,Yo()}},t.hydrate=function(e,t,n){if(!nc(t))throw Error(i(200));return rc(null,e,t,!0,n)},t.render=function(e,t,n){if(!nc(t))throw Error(i(200));return rc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!nc(e))throw Error(i(40));return!!e._reactRootContainer&&(bu((function(){rc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Zr]=null}))})),!0)},t.unstable_batchedUpdates=vu,t.unstable_createPortal=function(e,t){return oc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!nc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return rc(e,t,n,!1,r)},t.version="17.0.2"},3102:function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(6539)},3298:function(e,t){"use strict";var n,r,o,a;if("object"==typeof performance&&"function"==typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var c=null,s=null,f=function(){if(null!==c)try{var e=t.unstable_now();c(!0,e),c=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==c?setTimeout(n,0,e):(c=e,setTimeout(f,0))},r=function(e,t){s=setTimeout(e,t)},o=function(){clearTimeout(s)},t.unstable_shouldYield=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var p=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var m=!1,y=null,g=-1,v=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();b=e+v;try{y(!0,e)?E.postMessage(null):(m=!1,y=null)}catch(e){throw E.postMessage(null),e}}else m=!1},n=function(e){y=e,m||(m=!0,E.postMessage(null))},r=function(e,n){g=p((function(){e(t.unstable_now())}),n)},o=function(){d(g),g=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<x(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var a=2*(r+1)-1,i=e[a],l=a+1,u=e[l];if(void 0!==i&&0>x(i,n))void 0!==u&&0>x(u,i)?(e[r]=u,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==u&&0>x(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function x(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var k=[],C=[],P=1,T=null,N=3,j=!1,A=!1,R=!1;function I(e){for(var t=_(C);null!==t;){if(null===t.callback)S(C);else{if(!(t.startTime<=e))break;S(C),t.sortIndex=t.expirationTime,O(k,t)}t=_(C)}}function D(e){if(R=!1,I(e),!A)if(null!==_(k))A=!0,n(M);else{var t=_(C);null!==t&&r(D,t.startTime-e)}}function M(e,n){A=!1,R&&(R=!1,o()),j=!0;var a=N;try{for(I(n),T=_(k);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=T.callback;if("function"==typeof i){T.callback=null,N=T.priorityLevel;var l=i(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?T.callback=l:T===_(k)&&S(k),I(n)}else S(k);T=_(k)}if(null!==T)var u=!0;else{var c=_(C);null!==c&&r(D,c.startTime-n),u=!1}return u}finally{T=null,N=a,j=!1}}var F=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||j||(A=!0,n(M))},t.unstable_getCurrentPriorityLevel=function(){return N},t.unstable_getFirstCallbackNode=function(){return _(k)},t.unstable_next=function(e){switch(N){case 1:case 2:case 3:var t=3;break;default:t=N}var n=N;N=t;try{return e()}finally{N=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=N;N=e;try{return t()}finally{N=n}},t.unstable_scheduleCallback=function(e,a,i){var l=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?l+i:l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:P++,callback:a,priorityLevel:e,startTime:i,expirationTime:u=i+u,sortIndex:-1},i>l?(e.sortIndex=i,O(C,e),null===_(k)&&e===_(C)&&(R?o():R=!0,r(D,i-l))):(e.sortIndex=u,O(k,e),A||j||(A=!0,n(M))),e},t.unstable_wrapCallback=function(e){var t=N;return function(){var n=N;N=t;try{return e.apply(this,arguments)}finally{N=n}}}},9076:function(e,t,n){"use strict";e.exports=n(3298)},4330:function(e,t){t.w=function(e){return e}},394:function(e,t){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,s=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,v=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case s:case f:case a:case l:case i:case d:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case m:case u:return e;default:return t}}case o:return t}}}function O(e){return E(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=p,t.Fragment=a,t.Lazy=y,t.Memo=m,t.Portal=o,t.Profiler=l,t.StrictMode=i,t.Suspense=d,t.isAsyncMode=function(e){return O(e)||E(e)===s},t.isConcurrentMode=O,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===u},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===p},t.isFragment=function(e){return E(e)===a},t.isLazy=function(e){return E(e)===y},t.isMemo=function(e){return E(e)===m},t.isPortal=function(e){return E(e)===o},t.isProfiler=function(e){return E(e)===l},t.isStrictMode=function(e){return E(e)===i},t.isSuspense=function(e){return E(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===f||e===l||e===i||e===d||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===p||e.$$typeof===v||e.$$typeof===b||e.$$typeof===w||e.$$typeof===g)},t.typeOf=E},8485:function(e,t,n){"use strict";e.exports=n(394)},9879:function(e,t,n){"use strict";t.__esModule=!0;var 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},o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2598)),a=s(n(6605)),i=s(n(4213)),l=s(n(8965)),u=s(n(5743)),c=n(6994);function s(e){return e&&e.__esModule?e:{default:e}}function f(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}var p=function(e,t){return t&&t.split(" ").forEach((function(t){return(0,a.default)(e,t)}))},d=function(e,t){return t&&t.split(" ").forEach((function(t){return(0,i.default)(e,t)}))},h=(r({},u.default.propTypes,{classNames:c.classNamesShape,onEnter:o.func,onEntering:o.func,onEntered:o.func,onExit:o.func,onExiting:o.func,onExited:o.func}),function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=f(this,e.call.apply(e,[this].concat(a))),r.onEnter=function(e,t){var n=r.getClassNames(t?"appear":"enter").className;r.removeClasses(e,"exit"),p(e,n),r.props.onEnter&&r.props.onEnter(e)},r.onEntering=function(e,t){var n=r.getClassNames(t?"appear":"enter").activeClassName;r.reflowAndAddClass(e,n),r.props.onEntering&&r.props.onEntering(e)},r.onEntered=function(e,t){r.removeClasses(e,t?"appear":"enter"),r.props.onEntered&&r.props.onEntered(e)},r.onExit=function(e){var t=r.getClassNames("exit").className;r.removeClasses(e,"appear"),r.removeClasses(e,"enter"),p(e,t),r.props.onExit&&r.props.onExit(e)},r.onExiting=function(e){var t=r.getClassNames("exit").activeClassName;r.reflowAndAddClass(e,t),r.props.onExiting&&r.props.onExiting(e)},r.onExited=function(e){r.removeClasses(e,"exit"),r.props.onExited&&r.props.onExited(e)},r.getClassNames=function(e){var t=r.props.classNames,n="string"!=typeof t?t[e]:t+"-"+e;return{className:n,activeClassName:"string"!=typeof t?t[e+"Active"]:n+"-active"}},f(r,n)}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),t.prototype.removeClasses=function(e,t){var n=this.getClassNames(t),r=n.className,o=n.activeClassName;r&&d(e,r),o&&d(e,o)},t.prototype.reflowAndAddClass=function(e,t){e.scrollTop,p(e,t)},t.prototype.render=function(){var e=r({},this.props);return delete e.classNames,l.default.createElement(u.default,r({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(l.default.Component));h.propTypes={},t.default=h,e.exports=t.default},5743:function(e,t,n){"use strict";t.__esModule=!0,t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(2598)),o=i(n(8965)),a=i(n(3102));function i(e){return e&&e.__esModule?e:{default:e}}n(6994);var l=t.UNMOUNTED="unmounted",u=t.EXITED="exited",c=t.ENTERING="entering",s=t.ENTERED="entered",f=t.EXITING="exiting",p=function(e){function t(n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=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,e.call(this,n,r)),a=r.transitionGroup,i=a&&!a.isMounting?n.enter:n.appear,f=void 0;return o.nextStatus=null,n.in?i?(f=u,o.nextStatus=c):f=s:f=n.unmountOnExit||n.mountOnEnter?l:u,o.state={status:f},o.nextCallback=null,o}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),t.prototype.getChildContext=function(){return{transitionGroup:null}},t.prototype.componentDidMount=function(){this.updateStatus(!0)},t.prototype.componentWillReceiveProps=function(e){var t=(this.pendingState||this.state).status;e.in?(t===l&&this.setState({status:u}),t!==c&&t!==s&&(this.nextStatus=c)):t!==c&&t!==s||(this.nextStatus=f)},t.prototype.componentDidUpdate=function(){this.updateStatus()},t.prototype.componentWillUnmount=function(){this.cancelNextCallback()},t.prototype.getTimeouts=function(){var e=this.props.timeout,t=void 0,n=void 0,r=void 0;return t=n=r=e,null!=e&&"number"!=typeof e&&(t=e.exit,n=e.enter,r=e.appear),{exit:t,enter:n,appear:r}},t.prototype.updateStatus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.nextStatus;if(null!==t){this.nextStatus=null,this.cancelNextCallback();var n=a.default.findDOMNode(this);t===c?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===u&&this.setState({status:l})},t.prototype.performEnter=function(e,t){var n=this,r=this.props.enter,o=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,a=this.getTimeouts();t||r?(this.props.onEnter(e,o),this.safeSetState({status:c},(function(){n.props.onEntering(e,o),n.onTransitionEnd(e,a.enter,(function(){n.safeSetState({status:s},(function(){n.props.onEntered(e,o)}))}))}))):this.safeSetState({status:s},(function(){n.props.onEntered(e)}))},t.prototype.performExit=function(e){var t=this,n=this.props.exit,r=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:f},(function(){t.props.onExiting(e),t.onTransitionEnd(e,r.exit,(function(){t.safeSetState({status:u},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:u},(function(){t.props.onExited(e)}))},t.prototype.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},t.prototype.safeSetState=function(e,t){var n=this;this.pendingState=e,t=this.setNextCallback(t),this.setState(e,(function(){n.pendingState=null,t()}))},t.prototype.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},t.prototype.onTransitionEnd=function(e,t,n){this.setNextCallback(n),e?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},t.prototype.render=function(){var e=this.state.status;if(e===l)return null;var t=this.props,n=t.children,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children"]);if(delete r.in,delete r.mountOnEnter,delete r.unmountOnExit,delete r.appear,delete r.enter,delete r.exit,delete r.timeout,delete r.addEndListener,delete r.onEnter,delete r.onEntering,delete r.onEntered,delete r.onExit,delete r.onExiting,delete r.onExited,"function"==typeof n)return n(e,r);var a=o.default.Children.only(n);return o.default.cloneElement(a,r)},t}(o.default.Component);function d(){}p.contextTypes={transitionGroup:r.object},p.childContextTypes={transitionGroup:function(){}},p.propTypes={},p.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:d,onEntering:d,onEntered:d,onExit:d,onExiting:d,onExited:d},p.UNMOUNTED=0,p.EXITED=1,p.ENTERING=2,p.ENTERED=3,p.EXITING=4,t.default=p},4730:function(e,t,n){"use strict";t.__esModule=!0;var 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},o=u(n(2598)),a=n(8965),i=u(a),l=n(7034);function u(e){return e&&e.__esModule?e:{default:e}}var c=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},s=(o.default.any,o.default.node,o.default.bool,o.default.bool,o.default.bool,o.default.func,function(e){function t(n,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=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,e.call(this,n,o));return i.handleExited=function(e,t,n){var o=(0,l.getChildMapping)(i.props.children);e in o||(n&&n(t),i.setState((function(t){var n=r({},t.children);return delete n[e],{children:n}})))},i.state={children:(0,l.getChildMapping)(n.children,(function(e){return(0,a.cloneElement)(e,{onExited:function(t){i.handleExited(e.key,t,e.props.onExited)},in:!0,appear:i.getProp(e,"appear"),enter:i.getProp(e,"enter"),exit:i.getProp(e,"exit")})}))},i}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),t.prototype.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},t.prototype.getProp=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props;return null!=n[t]?n[t]:e.props[t]},t.prototype.componentDidMount=function(){this.appeared=!0},t.prototype.componentWillReceiveProps=function(e){var t=this,n=this.state.children,r=(0,l.getChildMapping)(e.children),o=(0,l.mergeChildMappings)(n,r);Object.keys(o).forEach((function(i){var l=o[i];if((0,a.isValidElement)(l)){var u=function(e){t.handleExited(l.key,e,l.props.onExited)},c=i in n,s=i in r,f=n[i],p=(0,a.isValidElement)(f)&&!f.props.in;!s||c&&!p?s||!c||p?s&&c&&(0,a.isValidElement)(f)&&(o[i]=(0,a.cloneElement)(l,{onExited:u,in:f.props.in,exit:t.getProp(l,"exit",e),enter:t.getProp(l,"enter",e)})):o[i]=(0,a.cloneElement)(l,{in:!1}):o[i]=(0,a.cloneElement)(l,{onExited:u,in:!0,exit:t.getProp(l,"exit",e),enter:t.getProp(l,"enter",e)})}})),this.setState({children:o})},t.prototype.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["component","childFactory"]),o=this.state.children;return delete r.appear,delete r.enter,delete r.exit,i.default.createElement(t,r,c(o).map(n))},t}(i.default.Component));s.childContextTypes={transitionGroup:o.default.object.isRequired},s.propTypes={},s.defaultProps={component:"div",childFactory:function(e){return e}},t.default=s,e.exports=t.default},6285:function(e,t,n){"use strict";var r=i(n(9879)),o=i(n(4730)),a=i(n(5743));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:a.default,TransitionGroup:o.default,CSSTransition:r.default}},7034:function(e,t,n){"use strict";t.__esModule=!0,t.getChildMapping=function(e,t){var n=Object.create(null);return e&&r.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,r.isValidElement)(e)?t(e):e}(e)})),n},t.mergeChildMappings=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r=Object.create(null),o=[];for(var a in e)a in t?o.length&&(r[a]=o,o=[]):o.push(a);var i=void 0,l={};for(var u in t){if(r[u])for(i=0;i<r[u].length;i++){var c=r[u][i];l[r[u][i]]=n(c)}l[u]=n(u)}for(i=0;i<o.length;i++)l[o[i]]=n(o[i]);return l};var r=n(8965)},6994:function(e,t,n){"use strict";t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,t.transitionTimeout=function(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}};var r,o=(r=n(2598))&&r.__esModule?r:{default:r};t.timeoutsShape=o.default.oneOfType([o.default.number,o.default.shape({enter:o.default.number,exit:o.default.number}).isRequired]),t.classNamesShape=o.default.oneOfType([o.default.string,o.default.shape({enter:o.default.string,exit:o.default.string,active:o.default.string}),o.default.shape({enter:o.default.string,enterActive:o.default.string,exit:o.default.string,exitActive:o.default.string})])},4850:function(e,t,n){"use strict";var r=n(1464),o=60103,a=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var i=60109,l=60110,u=60112;t.Suspense=60113;var c=60115,s=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),a=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),i=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),c=f("react.memo"),s=f("react.lazy")}var p="function"==typeof Symbol&&Symbol.iterator;function d(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(d(85));this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var b=v.prototype=new g;b.constructor=v,r(b,y.prototype),b.isPureReactComponent=!0;var w={current:null},E=Object.prototype.hasOwnProperty,O={key:!0,ref:!0,__self:!0,__source:!0};function _(e,t,n){var r,a={},i=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&!O.hasOwnProperty(r)&&(a[r]=t[r]);var u=arguments.length-2;if(1===u)a.children=n;else if(1<u){for(var c=Array(u),s=0;s<u;s++)c[s]=arguments[s+2];a.children=c}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===a[r]&&(a[r]=u[r]);return{$$typeof:o,type:e,key:i,ref:l,props:a,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var x=/\/+/g;function k(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,n,r,i){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return i=i(u=e),e=""===r?"."+k(u,0):r,Array.isArray(i)?(n="",null!=e&&(n=e.replace(x,"$&/")+"/"),C(i,t,n,"",(function(e){return e}))):null!=i&&(S(i)&&(i=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,n+(!i.key||u&&u.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+e)),t.push(i)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var c=0;c<e.length;c++){var s=r+k(l=e[c],c);u+=C(l,t,n,s,i)}else if(s=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof s)for(e=s.call(e),c=0;!(l=e.next()).done;)u+=C(l=l.value,t,n,s=r+k(l,c++),i);else if("object"===l)throw t=""+e,Error(d(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var N={current:null};function j(){var e=N.current;if(null===e)throw Error(d(321));return e}var A={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(d(143));return e}},t.Component=y,t.PureComponent=v,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null==e)throw Error(d(267,e));var a=r({},e.props),i=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=w.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(s in t)E.call(t,s)&&!O.hasOwnProperty(s)&&(a[s]=void 0===t[s]&&void 0!==c?c[s]:t[s])}var s=arguments.length-2;if(1===s)a.children=n;else if(1<s){c=Array(s);for(var f=0;f<s;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:e.type,key:i,ref:l,props:a,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=_,t.createFactory=function(e){var t=_.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:s,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="17.0.2"},8965:function(e,t,n){"use strict";e.exports=n(4850)},5043:function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get: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=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},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=u(n(1)),i=n(2),l=u(n(3));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=r({},e.defaultConfig,t),this.tagId=0,this.cache=[],this.generateDom=this.generateDom.bind(this),this.transform=this.transform.bind(this),this.getCache=this.getCache.bind(this),this.formatAttributes=this.formatAttributes.bind(this)}return o(e,[{key:"formatAttributes",value:function(e){var t=this,n={};return e.filter((function(e){var n=e.key;return t.config.ALLOWED_ATTRIBUTES.includes(n)})).forEach((function(e){var t=e.key,r=e.value;(0,l.default)(t),n[t]=r})),n}},{key:"generateDom",value:function(e){var t=e.type,n=void 0===t?"":t,o=e.children,i=void 0===o?[]:o,u=e.content,c=void 0===u?"":u,s=e.tagName,f=void 0===s?"":s,p=e.attributes,d=void 0===p?[]:p,h=this.config,m=h.ALLOWED_TAGS,y=h.KEY_NAME,g=i.length?i.map(this.generateDom):c;if("element"===n&&m.includes(f)){(0,l.default)(f);var v=r({},this.formatAttributes(d),{key:""+y+this.tagId++});return g?a.default.createElement(f,v,g):a.default.createElement(f,v)}return g}},{key:"getCache",value:function(e){return this.cache.find((function(t){return t.str===e}))}},{key:"transform",value:function(e){var t=this.getCache(e);if(t)return t.dom;var n=(0,i.parse)(e).map(this.generateDom);return this.cache.push({str:e,dom:n}),n}}]),e}();c.defaultConfig={ALLOWED_TAGS:["strong","a"],ALLOWED_ATTRIBUTES:["href"],KEY_NAME:"ssih-tag-"},t.default=c},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e in o.attributes&&console.warn(o.attributes[e].replace("%s","attribute "+e)),e in o.tags&&console.warn(o.tags[e].replace("%s","tag <"+e+" />"))};var r="Be careful with the use of %s, it presents a potential XSS risk",o=t.messages={attributes:{ontransitionend:r,ontransitioncancel:r,onblur:r,ondrag:r,ondrop:r},tags:{script:r,style:r}}}])},e.exports=r(n(8965),n(9932))},3680:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}}),e=n.hmd(e);var r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},819:function(e,t,n){"use strict";var r=n(1464),o=n(8965);t.useSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe,a=o.useState((function(){return{getCurrentValue:t,subscribe:n,value:t()}}));e=a[0];var i=a[1];return a=e.value,e.getCurrentValue===t&&e.subscribe===n||(a=t(),i({getCurrentValue:t,subscribe:n,value:a})),o.useDebugValue(a),o.useEffect((function(){function e(){if(!o){var e=t();i((function(o){return o.getCurrentValue!==t||o.subscribe!==n||o.value===e?o:r({},o,{value:e})}))}}var o=!1,a=n(e);return e(),function(){o=!0,a()}}),[t,n]),a}},6442:function(e,t,n){"use strict";e.exports=n(819)}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.loaded=!0,a.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.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e};var r={};return function(){"use strict";n.d(r,{default:function(){return jy},h:function(){return Py}});var e={};n.r(e);var t={};n.r(t);var o={};n.r(o);var a={};n.r(a);var i={};n.r(i);var l={};n.r(l);var u={};n.r(u);var c={};n.r(c);var s={};n.r(s);var f={};n.r(f);var p={};n.r(p);var d={};n.r(d);var h=n(8965),m=n(3102),y=(n(2598),h.createContext(null)),g=function(e){e()},v=function(){return g},b={notify:function(){}},w=function(){function e(e,t){this.store=e,this.parentSub=t,this.unsubscribe=null,this.listeners=b,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=function(){var e=v(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=b)},e}(),E="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?h.useLayoutEffect:h.useEffect,O=function(e){var t=e.store,n=e.context,r=e.children,o=(0,h.useMemo)((function(){var e=new w(t);return e.onStateChange=e.notifyNestedSubs,{store:t,subscription:e}}),[t]),a=(0,h.useMemo)((function(){return t.getState()}),[t]);E((function(){var e=o.subscription;return e.trySubscribe(),a!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[o,a]);var i=n||y;return h.createElement(i.Provider,{value:o},r)};n(3578),n(8485);var _=n(3680),S=function(){return Math.random().toString(36).substring(7).split("").join(".")},x={INIT:"@@redux/INIT"+S(),REPLACE:"@@redux/REPLACE"+S(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+S()}};function k(e,t,n){var r;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(k)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,a=t,i=[],l=i,u=!1;function c(){l===i&&(l=i.slice())}function s(){if(u)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 a}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)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 c(),l.push(e),function(){if(t){if(u)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,c();var n=l.indexOf(e);l.splice(n,1),i=null}}}function p(e){if(!function(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}(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(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=o(a,e)}finally{u=!1}for(var t=i=l,n=0;n<t.length;n++)(0,t[n])();return e}return p({type:x.INIT}),(r={dispatch:p,subscribe:f,getState:s,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,p({type:x.REPLACE})}})[_.Z]=function(){var e,t=f;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(s())}return n(),{unsubscribe:t(n)}}})[_.Z]=function(){return this},e},r}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 P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(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 N(){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 j(){return j=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},j.apply(this,arguments)}function A(){return(0,h.useContext)(y)}function R(e){void 0===e&&(e=y);var t=e===y?A:function(){return(0,h.useContext)(e)};return function(){return t().store}}var I=R();function D(e){void 0===e&&(e=y);var t=e===y?I:R(e);return function(){return t().dispatch}}var M=D(),F=function(e,t){return e===t};function L(e){void 0===e&&(e=y);var t=e===y?A:function(){return(0,h.useContext)(e)};return function(e,n){void 0===n&&(n=F);var r=t(),o=function(e,t,n,r){var o,a=(0,h.useReducer)((function(e){return e+1}),0)[1],i=(0,h.useMemo)((function(){return new w(n,r)}),[n,r]),l=(0,h.useRef)(),u=(0,h.useRef)(),c=(0,h.useRef)(),s=(0,h.useRef)(),f=n.getState();try{if(e!==u.current||f!==c.current||l.current){var p=e(f);o=void 0!==s.current&&t(p,s.current)?s.current:p}else o=s.current}catch(e){throw l.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+l.current.stack+"\n\n"),e}return E((function(){u.current=e,c.current=f,s.current=o,l.current=void 0})),E((function(){function e(){try{var e=u.current(n.getState());if(t(e,s.current))return;s.current=e}catch(e){l.current=e}a()}return i.onStateChange=e,i.trySubscribe(),e(),function(){return i.tryUnsubscribe()}}),[n,i]),o}(e,n,r.store,r.subscription);return(0,h.useDebugValue)(o),o}}var U,z=L();function V(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}function B(e,t){if(e){if("string"==typeof e)return V(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)?V(e,t):void 0}}U=m.unstable_batchedUpdates,g=U;var H,W,K,q,G=n(2580),Y=n.n(G),$=n(998);H={"(":9,"!":8,"*":7,"/":7,"%":7,"+":6,"-":6,"<":5,"<=":5,">":5,">=":5,"==":4,"!=":4,"&&":3,"||":2,"?":1,"?:":1},W=["(","?"],K={")":["("],":":["?","?:"]},q=/<=|>=|==|!=|&&|\|\||\?:|\(|!|\*|\/|%|\+|-|<|>|\?|\)|:/;var X={"!":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}};var Q={contextDelimiter:"",onMissingKey:null};function J(e,t){var n;for(n in this.data=e,this.pluralForms={},this.options={},Q)this.options[n]=void 0!==t&&n in t?t[n]:Q[n]}J.prototype.getPluralForm=function(e,t){var n,r,o,a,i=this.pluralForms[e];return i||("function"!=typeof(o=(n=this.data[e][""])["Plural-Forms"]||n["plural-forms"]||n.plural_forms)&&(r=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),a=function(e){var t=function(e){for(var t,n,r,o,a=[],i=[];t=e.match(q);){for(n=t[0],(r=e.substr(0,t.index).trim())&&a.push(r);o=i.pop();){if(K[n]){if(K[n][0]===o){n=K[n][1]||n;break}}else if(W.indexOf(o)>=0||H[o]<H[n]){i.push(o);break}a.push(o)}K[n]||i.push(n),e=e.substr(t.index+n.length)}return(e=e.trim())&&a.push(e),a.concat(i.reverse())}(e);return function(e){return function(e,t){var n,r,o,a,i,l,u=[];for(n=0;n<e.length;n++){if(i=e[n],a=X[i]){for(r=a.length,o=Array(r);r--;)o[r]=u.pop();try{l=a.apply(null,o)}catch(e){return e}}else l=t.hasOwnProperty(i)?t[i]:+i;u.push(l)}return u[0]}(t,e)}}(r),o=function(e){return+a({n:e})}),i=this.pluralForms[e]=o),i(t)},J.prototype.dcnpgettext=function(e,t,n,r,o){var a,i,l;return a=void 0===o?0:this.getPluralForm(e,o),i=n,t&&(i=t+this.options.contextDelimiter+n),(l=this.data[e][i])&&l[a]?l[a]:(this.options.onMissingKey&&this.options.onMissingKey(n,e),0===a?n:r)};var Z=n(8865),ee=n.n(Z),te=n(8519),ne=n.n(te),re=n(696),oe=/%(((\d+)\$)|(\(([$_a-zA-Z][$_a-zA-Z0-9]*)\)))?[ +0#-]*\d*(\.(\d+|\*))?(ll|[lhqL])?([cduxXefgsp%])/g;function ae(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(oe,(function(){var e,r,o,a,i;return e=arguments[3],r=arguments[5],"%"===(a=arguments[9])?"%":("*"===(o=arguments[7])&&(o=t[n-1],n++),void 0!==r?t[0]&&"object"==typeof t[0]&&t[0].hasOwnProperty(r)&&(i=t[0][r]):(void 0===e&&(e=n),n++,i=t[e-1]),"f"===a?i=parseFloat(i)||0:"d"===a&&(i=parseInt(i)||0),void 0!==o&&("f"===a?i=i.toFixed(o):"s"===a&&(i=i.substr(0,o))),null!=i?i:"")}))}var ie=Y()("i18n-calypso"),le="number_format_decimals",ue="number_format_thousands_sep",ce="messages",se=[function(e){return e}],fe={};function pe(){ge.throwErrors&&"undefined"!=typeof window&&window.console&&window.console.warn&&window.console.warn.apply(window.console,arguments)}function de(e){return Array.prototype.slice.call(e)}function he(e){var t=e[0];("string"!=typeof t||e.length>3||e.length>2&&"object"==typeof e[1]&&"object"==typeof e[2])&&pe("Deprecated Invocation: `translate()` accepts ( string, [string], [object] ). These arguments passed:",de(e),". See https://github.com/Automattic/i18n-calypso#translate-method"),2===e.length&&"string"==typeof t&&"string"==typeof e[1]&&pe("Invalid Invocation: `translate()` requires an options object for plural translations, but passed:",de(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 me(e,t){return e.dcnpgettext(ce,t.context,t.original,t.plural,t.count)}function ye(e,t){for(var n=se.length-1;n>=0;n--){var r=se[n](Object.assign({},t)),o=r.context?r.context+""+r.original:r.original;if(e.state.locale[o])return me(e.state.tannin,r)}return null}function ge(){if(!(this instanceof ge))return new ge;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:ee()({max:100})},this.componentUpdateHooks=[],this.translateHooks=[],this.stateObserver=new re.EventEmitter,this.stateObserver.setMaxListeners(0),this.configure()}ge.throwErrors=!1,ge.prototype.on=function(){var e;(e=this.stateObserver).on.apply(e,arguments)},ge.prototype.off=function(){var e;(e=this.stateObserver).off.apply(e,arguments)},ge.prototype.emit=function(){var e;(e=this.stateObserver).emit.apply(e,arguments)},ge.prototype.numberFormat=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e,t,n,r){e=(e+"").replace(/[^0-9+\-Ee.]/g,"");var o=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,i=void 0===r?",":r,l=void 0===n?".":n,u="";return(u=(a?function(e,t){var n=Math.pow(10,t);return""+(Math.round(e*n)/n).toFixed(t)}(o,a):""+Math.round(o)).split("."))[0].length>3&&(u[0]=u[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(u[1]||"").length<a&&(u[1]=u[1]||"",u[1]+=new Array(a-u[1].length+1).join("0")),u.join(l)}(e,"number"==typeof t?t:t.decimals||0,t.decPoint||this.state.numberFormatSettings.decimal_point||".",t.thousandsSep||this.state.numberFormatSettings.thousands_sep||",")},ge.prototype.configure=function(e){Object.assign(this,e||{}),this.setLocale()},ge.prototype.setLocale=function(e){var t,n,r;if(e&&e[""]&&e[""]["key-hash"]){var o=e[""]["key-hash"],a=function(e,t){var n=!1===t?"":String(t);if(void 0!==fe[n+e])return fe[n+e];var r=ne()().update(e).digest("hex");return fe[n+e]=t?r.substr(0,t):r},i=function(e){return function(t){return t.context?(t.original=a(t.context+String.fromCharCode(4)+t.original,e),delete t.context):t.original=a(t.original,e),t}};if("sha1"===o.substr(0,4))if(4===o.length)se.push(i(!1));else{var l=o.substr(5).indexOf("-");if(l<0){var u=Number(o.substr(5));se.push(i(u))}else for(var c=Number(o.substr(5,l)),s=Number(o.substr(6+l)),f=c;f<=s;f++)se.push(i(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 J(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},ce,this.state.locale)),this.state.numberFormatSettings.decimal_point=me(this.state.tannin,he([le])),this.state.numberFormatSettings.thousands_sep=me(this.state.tannin,he([ue])),this.state.numberFormatSettings.decimal_point===le&&(this.state.numberFormatSettings.decimal_point="."),this.state.numberFormatSettings.thousands_sep===ue&&(this.state.numberFormatSettings.thousands_sep=","),this.stateObserver.emit("change")},ge.prototype.getLocale=function(){return this.state.locale},ge.prototype.getLocaleSlug=function(){return this.state.localeSlug},ge.prototype.isRtl=function(){return"rtl"===this.state.textDirection},ge.prototype.addTranslations=function(e){for(var t in e)""!==t&&(this.state.tannin.data.messages[t]=e[t]);this.stateObserver.emit("change")},ge.prototype.hasTranslation=function(){return!!ye(this,he(arguments))},ge.prototype.translate=function(){var e,t=he(arguments),n=ye(this,t);if(n||(n=me(this.state.tannin,t)),t.args){var r=Array.isArray(t.args)?t.args.slice(0):[t.args];r.unshift(n);try{n=ae.apply(void 0,function(e){if(Array.isArray(e))return V(e)}(e=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||B(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}catch(e){if(!window||!window.console)return;var o=this.throwErrors?"error":"warn";"string"!=typeof e?window.console[o](e):window.console[o]("i18n sprintf error:",r)}}return t.components&&(n=(0,$.Z)({mixedString:n,components:t.components,throwErrors:this.throwErrors})),this.translateHooks.forEach((function(e){n=e(n,t)})),n},ge.prototype.reRenderTranslations=function(){ie("Re-rendering all translations due to external request"),this.stateObserver.emit("change")},ge.prototype.registerComponentUpdateHook=function(e){this.componentUpdateHooks.push(e)},ge.prototype.registerTranslateHook=function(e){this.translateHooks.push(e)};var ve=ge;var be=n(6442),we=n(9760),Ee=new ve,Oe=Ee,_e=(Ee.numberFormat.bind(Ee),Ee.translate.bind(Ee)),Se=(Ee.configure.bind(Ee),Ee.setLocale.bind(Ee),Ee.getLocale.bind(Ee),Ee.getLocaleSlug.bind(Ee),Ee.addTranslations.bind(Ee),Ee.reRenderTranslations.bind(Ee),Ee.registerComponentUpdateHook.bind(Ee),Ee.registerTranslateHook.bind(Ee),Ee.state,Ee.stateObserver,Ee.on.bind(Ee),Ee.off.bind(Ee),Ee.emit.bind(Ee),function(e){e.numberFormat.bind(e),e.translate.bind(e)}(Ee),function(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,be.useSubscription)(t)}var r,o,a=(r=function(e){return(0,h.forwardRef)((function(t,r){var o=n();return h.createElement(e,j({},t,{isRtl:o,ref:r}))}))},o="WithRTL",function(e){var t=r(e),n=e.displayName,a=void 0===n?e.name||"Component":n;return t.displayName="".concat((0,we.upperFirst)((0,we.camelCase)(o)),"(").concat(a,")"),t});return{useRtl:n,withRtl:a}}(Ee)),xe=(Se.useRtl,Se.withRtl,{SECURITY_DASHBOARD:"SECURITY_DASHBOARD",LOGIN_SETTINGS:"LOGIN_SETTINGS",SITE_SECURITY:"SITE_SECURITY",ACTIVITY_LOG:"ACTIVITY_LOG",POST_HACK_ACTIONS:"POST_HACK_ACTIONS"}),ke=n(4330),Ce=window.navigator.userAgent.toLowerCase(),Pe=function(e){return-1!==Ce.indexOf(e)},Te=Pe("opera"),Ne=Pe("fxios"),je=Pe("firefox"),Ae=Pe("safari"),Re=!document.documentMode&&!!window.StyleMedia,Ie=Pe("crios"),De=Pe("chrome")||Ie,Me=Pe("chromium"),Fe=(De||Te)&&!!window.CSS,Le=function(){return Re?"edge":Ie?"crios":De?"chrome":Me?"chromium":Te?"opera":Fe?"blink":Ne?"fxios":je?"firefox":Ae?"safari":""},Ue=function(){var e=new RegExp("".concat(Le(),"/([0-9.]+)")),t=Ce.match(e);if(Ae&&!De&&!je&&!Ne){var n=new RegExp("version/([0-9.]+)"),r=Ce.match(n);return parseInt(r[1].split(".").join("").padEnd(4,"0"))}return t.length>0?parseInt(t[1]):0},ze=function(){return Pe("windows")},Ve=function(){return!ze()&&Pe("iphone")},Be=function(){return Pe("ipod")},He=function(){return Pe("ipad")},We=function(){return Ve()||Be()||He()},Ke=function(){return!ze()&&Pe("android")},qe=function(){return Pe("blackberry")||Pe("bb10")||Pe("rim")},Ge=function(){return ze()&&Pe("phone")},Ye=function(){return(Pe("(mobile;")||Pe("(tablet;"))&&Pe("; rv:")},$e=function(){return Ke()&&Pe("mobile")||Ve()||Be()||Ge()||qe()&&!Pe("tablet")||Ye()&&Pe("mobile")||Pe("meego")},Xe=function(){return window.innerWidth<=800||$e()},Qe=function(){return He()||Ke()&&!Pe("mobile")||qe()&&Pe("tablet")||ze()&&Pe("touch")&&!Ge()||Ye()&&Pe("tablet")},Je=function(){return window.innerWidth>800&&window.innerWidth<=1500||Qe()};function Ze(){return{isDesktop:window.innerWidth>1500||!Je()&&!Xe(),isPhone:Xe(),isDevicePhone:$e(),isTablet:Je(),isDeviceTablet:Qe(),isTelevision:!!["googletv","viera","smarttv","internet.tv","netcast","nettv","appletv","boxee","kylo","roku","dlnadoc","roku","pov_tv","hbbtv","ce-html"].find((function(e){return Pe(e)})),isPortrait:window.innerHeight/window.innerWidth>1,isLandscape:window.innerHeight/window.innerWidth<1,browser:{name:Le(),version:Ue(),isSupported:(e=Ue(),!!e&&(Re?e>=15:De||Te||Fe?e>=58:je?e>=54:Ne?e>=16:Ae?e>=1012:je||Ae||Re||De||Fe))},height:window.innerHeight,width:window.innerWidth};var e}var et,tt=(et=function(e,t){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},et(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}et(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),nt=function(){return nt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nt.apply(this,arguments)},rt=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},ot=Object.defineProperty,at=function(e,t,n){return function(e,t,n){t in e?ot(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},it=n(3381),lt=n.n(it),ut=function(){return ut=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ut.apply(this,arguments)};function ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter(Boolean).join(" ")}function st(e){var t=e.styles,n=e.classes,r=e.className,o=lt().bind(t),a={};return r&&(a["".concat(r)]=!0),o(ut(ut({},n),a))}var ft=function(e){var t={};return e.map((function(e){e.props.map((function(n){return t["".concat(e.class).concat(n)]=n===e.selected}))})),t},pt=function(){return pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pt.apply(this,arguments)},dt=Array.from(new Set(["accept","accept-charset","accesskey","action","alt","async","autocomplete","autofocus","autoplay","charset","checked","cite","class","cols","colspan","content","contenteditable","controls","coords","data","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","headers","height","hidden","high","href","hreflang","http-equiv","id","ismap","kind","label","lang","list","loop","low","max","maxlength","media","method","min","multiple","muted","name","novalidate","onabort","onafterprint","onbeforeprint","onbeforeunload","onblur","oncanplay","oncanplaythrough","onchange","onclick","oncontextmenu","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onmousewheel","onoffline","ononline","onpageshow","onpaste","onpause","onplay","onplaying","onprogress","onratechange","onreset","onresize","onscroll","onsearch","onseeked","onseeking","onselect","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","onunload","onvolumechange","onwaiting","onwheel","open","optimum","pattern","placeholder","poster","preload","readonly","rel","required","reversed","role","rows","rowspan","sandbox","scope","selected","shape","size","sizes","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","type","usemap","value","width","wrap"].concat(["children","dangerouslysetinnerhtml","oncopy","oncopycapture","oncut","oncutcapture","onpaste","onpastecapture","oncompositionend","oncompositionendcapture","oncompositionstart","oncompositionstartcapture","oncompositionupdate","oncompositionupdatecapture","onfocus","onfocuscapture","onblur","onblurcapture","onchange","onchangecapture","onbeforeinput","onbeforeinputcapture","oninput","oninputcapture","onreset","onresetcapture","onsubmit","onsubmitcapture","oninvalid","oninvalidcapture","onload","onloadcapture","onerror","onerrorcapture","onkeydown","onkeydowncapture","onkeypress","onkeypresscapture","onkeyup","onkeyupcapture","onabort","onabortcapture","oncanplay","oncanplaycapture","oncanplaythrough","oncanplaythroughcapture","ondurationchange","ondurationchangecapture","onemptied","onemptiedcapture","onencrypted","onencryptedcapture","onended","onendedcapture","onloadeddata","onloadeddatacapture","onloadedmetadata","onloadedmetadatacapture","onloadstart","onloadstartcapture","onpause","onpausecapture","onplay","onplaycapture","onplaying","onplayingcapture","onprogress","onprogresscapture","onratechange","onratechangecapture","onseeked","onseekedcapture","onseeking","onseekingcapture","onstalled","onstalledcapture","onsuspend","onsuspendcapture","ontimeupdate","ontimeupdatecapture","onvolumechange","onvolumechangecapture","onwaiting","onwaitingcapture","onclick","onclickcapture","oncontextmenu","oncontextmenucapture","ondoubleclick","ondoubleclickcapture","ondrag","ondragcapture","ondragend","ondragendcapture","ondragenter","ondragentercapture","ondragexit","ondragexitcapture","ondragleave","ondragleavecapture","ondragover","ondragovercapture","ondragstart","ondragstartcapture","ondrop","ondropcapture","onmousedown","onmousedowncapture","onmouseenter","onmouseleave","onmousemove","onmousemovecapture","onmouseout","onmouseoutcapture","onmouseover","onmouseovercapture","onmouseup","onmouseupcapture","onselect","onselectcapture","ontouchcancel","ontouchcancelcapture","ontouchend","ontouchendcapture","ontouchmove","ontouchmovecapture","ontouchstart","ontouchstartcapture","onpointerdown","onpointerdowncapture","onpointermove","onpointermovecapture","onpointerup","onpointerupcapture","onpointercancel","onpointercancelcapture","onpointerenter","onpointerentercapture","onpointerleave","onpointerleavecapture","onpointerover","onpointerovercapture","onpointerout","onpointeroutcapture","ongotpointercapture","ongotpointercapturecapture","onlostpointercapture","onlostpointercapturecapture","onscroll","onscrollcapture","onwheel","onwheelcapture","onanimationstart","onanimationstartcapture","onanimationend","onanimationendcapture","onanimationiteration","onanimationiterationcapture","ontransitionend","ontransitionendcapture"]))).reduce((function(e,t){var n;return pt(pt({},e),((n={})[t]=!0,n))}),{});function ht(e){var t,n,r=Object.keys(e),o={};try{for(var a=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(r),i=a.next();!i.done;i=a.next()){var l=i.value,u=l.toLocaleLowerCase();(dt[u]||u.startsWith("data-")||u.startsWith("aria-"))&&(o[l]=e[l])}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}var mt={device:Ze()},yt=h.createContext(mt),gt=function(){return gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gt.apply(this,arguments)},vt={config:{dataAssetsPath:"https://spa-packages.siteground.com/styleguide-assets/data",svgAssetsPath:"https://spa-packages.siteground.com/styleguide-assets/svg",fontsAssetsPath:"https://spa-packages.siteground.com/styleguide-assets/fonts"},logLevel:-1},bt=function(e){var t=e.context,n=e.onInit,r=e.onResize,o=e.children,a=e.className,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["context","onInit","onResize","children","className"]),l=ct("sg-bootstrap",a),u=function(e){var t=e.onInit,n=void 0===t?function(e){return null}:t,r=e.onResize,o=void 0===r?function(e){return null}:r,a=rt(h.useState(Ze()),2),i=a[0],l=a[1],u=h.useRef(null),c=h.useCallback((function(){u.current&&clearTimeout(u.current),u.current=setTimeout((function(){var e=Ze();l(e),o(e)}),300)}),[o]);return h.useEffect((function(){return n(i),window.addEventListener("resize",c),function(){return window.removeEventListener("resize",c)}}),[c,o,n,i]),i}({onInit:n,onResize:r}),c=gt(gt(gt(gt({},mt),vt),{device:u}),t);return h.createElement(yt.Provider,{value:c},h.createElement("div",gt({className:l},ht(i)),o))},wt=function(){return wt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wt.apply(this,arguments)},Et=function(e){var t=e.context,n=e.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["context","children"]),o=t.config.fontsAssetsPath;return h.useEffect((function(){var e=document.createElement("style"),t='\n @font-face {\n font-family: "Roboto";\n font-style: normal;\n font-weight: 400;\n font-display: fallback;\n src: local("Roboto"), local("Roboto-Regular"), local("sans-serif"),\n url("'.concat(o,'/KFOmCnqEu92Fr1Mu7GxKKTU1Kvnz.woff2") format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n\n /* latin */\n @font-face {\n font-family: "Roboto";\n font-style: normal;\n font-weight: 400;\n font-display: fallback;\n src: local("Roboto"), local("Roboto-Regular"), local("sans-serif"),\n url("').concat(o,'/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2") format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n\n /* latin-ext */\n @font-face {\n font-family: "Roboto";\n font-style: normal;\n font-weight: 500;\n font-display: fallback;\n src: local("Roboto Medium"), local("Roboto-Medium"), local("sans-serif-medium"),\n url("').concat(o,'/KFOlCnqEu92Fr1MmEU9fChc4AMP6lbBP.woff2") format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n\n /* latin */\n @font-face {\n font-family: "Roboto";\n font-style: normal;\n font-weight: 500;\n font-display: fallback;\n src: local("Roboto Medium"), local("Roboto-Medium"), local("sans-serif-medium"),\n url("').concat(o,'/KFOlCnqEu92Fr1MmEU9fBBc4AMP6lQ.woff2") format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n\n /* latin-ext */\n @font-face {\n font-family: "Roboto";\n font-style: normal;\n font-weight: 700;\n font-display: fallback;\n src: local("Roboto Bold"), local("Roboto-Bold"), local("sans-serif"),\n url("').concat(o,'/KFOlCnqEu92Fr1MmWUlfChc4AMP6lbBP.woff2") format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n\n /* latin */\n @font-face {\n font-family: "Roboto";\n font-style: normal;\n font-weight: 700;\n font-display: fallback;\n src: local("Roboto Bold"), local("Roboto-Bold"), local("sans-serif"),\n url("').concat(o,'/KFOlCnqEu92Fr1MmWUlfBBc4AMP6lQ.woff2") format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n\n /* latin-ext */\n @font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 400;\n font-display: fallback;\n src: local("Poppins"), local("Poppins-Regular"), local("sans-serif"),\n url("').concat(o,'/pxiEyp8kv8JHgFVrJJnecnFHGPezSQ.woff2") format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n\n /* latin */\n @font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 400;\n font-display: fallback;\n src: local("Poppins"), local("Poppins-Regular"), local("sans-serif"),\n url("').concat(o,'/pxiEyp8kv8JHgFVrJJfecnFHGPc.woff2") format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n\n /* latin-ext */\n @font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 500;\n font-display: fallback;\n src: local("Poppins Medium"), local("Poppins-Medium"), local("sans-serif"),\n url("').concat(o,'/pxiByp8kv8JHgFVrLGT9Z1JlFd2JQEl8qw.woff2") format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n\n /* latin */\n @font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 500;\n font-display: fallback;\n src: local("Poppins Medium"), local("Poppins-Medium"), local("sans-serif"),\n url("').concat(o,'/pxiByp8kv8JHgFVrLGT9Z1xlFd2JQEk.woff2") format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n }\n\n /* latin-ext */\n @font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 700;\n font-display: fallback;\n src: local("Poppins Bold"), local("Poppins-Bold"), local("sans-serif"),\n url("').concat(o,'/pxiByp8kv8JHgFVrLCz7Z1JlFd2JQEl8qw.woff2") format("woff2");\n unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;\n }\n\n /* latin */\n @font-face {\n font-family: "Poppins";\n font-style: normal;\n font-weight: 700;\n font-display: fallback;\n src: local("Poppins Bold"), local("Poppins-Bold"), local("sans-serif"),\n url("').concat(o,'/pxiByp8kv8JHgFVrLCz7Z1xlFd2JQEk.woff2") format("woff2");\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC,\n U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n ');return e.appendChild(document.createTextNode(t)),document.head.appendChild(e),function(){document.head.removeChild(e)}}),[o]),h.createElement(bt,wt({context:t},r),n)},Ot="navigation",_t=function(){window.dispatchEvent(new Event(Ot))},St={UP:"ArrowUp",DOWN:"ArrowDown",LEFT:"ArrowLeft",RIGHT:"ArrowRight",HOME:"Home",END:"End",ENTER:"Enter",BACKSPACE:"Backspace",ESCAPE:"Escape",COMMA:",",TAB:"Tab",META:"Meta",CONTROL:"Control",A:"a",C:"c",V:"v",SPACE:" "},xt=St,kt=function(e){return e.key===St.TAB&&!e.shiftKey},Ct=function(e){return e.key===St.TAB&&e.shiftKey},Pt=function(){return Pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Pt.apply(this,arguments)},Tt="sg-keyboard",Nt=function(e){switch(e.key){case xt.TAB:case xt.UP:case xt.RIGHT:case xt.DOWN:case xt.LEFT:document.body.classList.add(Tt)}},jt=function(){return document.body.classList.add(Tt)},At=function(){return document.body.classList.remove(Tt)},Rt=function(e){var t=e.children,n=e.headerContent,r=e.pageContent,o=e.drawerContent,a=e.isDrawerOpened,i=e.layout,l=e.onDrawerOverlayClick,u=e.position,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","headerContent","pageContent","drawerContent","isDrawerOpened","layout","onDrawerOverlayClick","position"]),s=ct("sg-layout","sg-layout--".concat(u)),f=ct("sg-layout__drawer",i&&"sg-layout__drawer--".concat(i),a&&"sg-layout__drawer--opened"),p=ct("sg-drawer__overlay",a&&"sg-drawer__overlay--opened");return h.useEffect((function(){return window.addEventListener(Ot,jt),window.addEventListener("keydown",Nt),window.addEventListener("click",At),function(){window.removeEventListener(Ot,jt),window.removeEventListener("keydown",Nt),window.removeEventListener("click",At)}}),[]),h.createElement("div",Pt(Pt({className:s},ht(c)),{"data-e2e":e["data-e2e"]}),n,h.createElement("div",{className:"sg-layout__wrapper"},o&&h.createElement("aside",{className:f},o),h.createElement("main",{className:"sg-layout__page"},r,t),h.createElement("div",{className:p,onClick:l})))};Rt.defaultProps={"data-e2e":"layout",position:"absolute"};var It=function(e){var t;return t=function(t){function n(){var e=t.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],rt(arguments),!1))||this;return at(e,"state",{device:Ze()}),at(e,"timeout",null),at(e,"onResize",(function(){e.timeout&&clearTimeout(e.timeout),e.timeout=setTimeout((function(){var t=Ze();e.setState({device:t},(function(){return e.props.onResize(t)}))}),300)})),e}return tt(n,t),n.prototype.componentDidMount=function(){window.addEventListener("resize",this.onResize),this.props.onInit(this.state.device)},n.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.onResize)},n.prototype.render=function(){var t=this.props,n=(t.onInit,t.onResize,t.children),r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["onInit","onResize","children"]);return h.createElement(e,nt({device:this.state.device},r),n)},n}(h.Component),at(t,"defaultProps",{onInit:function(){return null},onResize:function(){return null}}),t}(Rt);function Dt(e,t){if("string"==typeof t)return{top:t,right:t,bottom:t,left:t};var n=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(t,4),r=n[0],o=n[1],a=n[2],i=n[3];switch(t.length){case 2:return{top:r,right:o,bottom:r,left:o};case 3:return{top:r,right:o,bottom:a,left:o};case 4:return{top:r,right:o,bottom:a,left:i};default:throw new Error("The array with ".concat(e," must contain max 4 settings [top, right, bottom, left]"))}}var Mt=["small","medium","large","x-large"],Ft=function(){return Mt},Lt=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ut=Lt(Lt(["inherit","none"],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(["xx-small","x-small","small","medium","large","x-large","xx-large"]),!1),["responsive"],!1),zt=function(){return Ut},Vt=function(){return Vt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vt.apply(this,arguments)},Bt=function(t){if(!t)return null;var n=Dt("padding",t),r=[{class:"sg-with-padding--padding-top-",props:zt(),selected:n.top},{class:"sg-with-padding--padding-right-",props:zt(),selected:n.right},{class:"sg-with-padding--padding-bottom-",props:zt(),selected:n.bottom},{class:"sg-with-padding--padding-left-",props:zt(),selected:n.left}];return st({styles:e.default,classes:Vt({"sg-with-padding":!0},ft(r))})},Ht=function(){return Ht=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ht.apply(this,arguments)},Wt=h.forwardRef((function(e,t){var n=e.children,r=e.padding,o=e.className,a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","padding","className"]),i=ct("sg-page",Bt(r),o);return h.createElement("div",Ht(Ht({className:i},ht(a)),{ref:t,"data-component":"page"}),n)}));Wt.defaultProps={"data-e2e":"page"};var Kt=Wt,qt=n(6285),Gt=function(){return Gt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gt.apply(this,arguments)},Yt=function(e){var t=e.className,n=e.children,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","children"]),o=ct("sg-notifications",0===n.length&&"sg-notifications-is-empty",t);return h.createElement(qt.TransitionGroup,Gt(Gt({className:o},ht(r)),{role:"alert"}),n)},$t=Object.defineProperty,Xt=function(){function e(){!function(e,t,n){(function(e,t,n){t in e?$t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n)}(this,"subscribers",[])}return e.prototype.subscribe=function(e){this.subscribers.push(e)},e.prototype.emit=function(e){this.subscribers.forEach((function(t){return t(e)}))},e.prototype.unsubscribe=function(e){this.subscribers.filter((function(t){return t!==e}))},e.prototype.success=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n="autoClose"),this.render({type:"success",data:e,titleDepr:t,behaviourDepr:n,renderChildrenDepr:r})},e.prototype.error=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n="autoClose"),this.render({type:"error",data:e,titleDepr:t,behaviourDepr:n,renderChildrenDepr:r})},e.prototype.info=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n="autoClose"),this.render({type:"info",data:e,titleDepr:t,behaviourDepr:n,renderChildrenDepr:r})},e.prototype.warning=function(e,t,n,r){return void 0===t&&(t=null),void 0===n&&(n="autoClose"),this.render({type:"warning",data:e,titleDepr:t,behaviourDepr:n,renderChildrenDepr:r})},e.prototype.render=function(e){var t=e.type,n=e.data,r=e.titleDepr,o=void 0===r?null:r,a=e.behaviourDepr,i=void 0===a?"autoClose":a,l=e.renderChildrenDepr;if("string"==typeof n||!n)return"NotificationManager data pass",console.warn("%c Will DEPRECATE - ".concat("NotificationManager data pass"),"font-weight: bold; color: #906090"),this.emit({id:+new Date,type:t,message:n,title:o,behaviour:i,renderChildren:l});var u=n.message,c=n.title,s=void 0===c?null:c,f=n.behaviour,p=void 0===f?"autoClose":f,d=n.renderChildren,h=n.onClose;this.emit({id:+new Date,type:t,message:u,title:s,behaviour:p,renderChildren:d,onClose:h})},e}(),Qt=new Xt,Jt=["A","BUTTON","INPUT","TEXTAREA"],Zt=function(e){var t=Jt.includes(e.nodeName),n=null!==e.getAttribute("tabindex");return(t||n)&&!function(e){var t=e.getAttribute("disabled"),n=e.getAttribute("data-disabled");return""===t||"true"===t||""===n||"true"===n}(e)},en=function(){return en=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},en.apply(this,arguments)},tn={event:null,includeChildren:!1,isDirectionForward:!0,onComponentFiltering:function(){return!0},onSuccessCallback:function(){return!0}},nn=function(e){var t=en(en({},tn),e),n=t.event,r=t.includeChildren,o=t.startingElement,a=void 0===o?document.activeElement:o,i=t.isDirectionForward,l=t.onComponentFiltering,u=t.onSuccessCallback,c=i?1:-1,s=Array.from(document.body.querySelectorAll("*")).filter((function(e){return e===a||e.getAttribute("data-component")&&Zt(e)&&l(e)})).filter((function(e){return a===e||!!r||!1===a.contains(e)})),f=s.findIndex((function(e){return e===a})),p=s[f+c];p&&(p.focus(),function(e){e.preventDefault(),e.stopPropagation(),_t()}(n),u(p))},rn=["primary","success","warning","error","info","white","light","dark"],on=function(){return on=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},on.apply(this,arguments)},an=function(e){return void 0===e&&(e=null),st({styles:t.default,classes:on({"sg-with-color":!0},ft([{class:"sg-with-color--color-",props:rn,selected:e}]))})},ln=0,un=function(e){return void 0===e&&(e="sg"),ln++,"".concat(e).concat(ln)},cn=function(e){if(!e)return null;var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left||t.x,right:t.top||t.y,top:t.top,width:t.width}},sn=function(e){var t=e.target,n=e.property,r=e.value;try{t.style[n]=r}catch(e){t.setAttribute(n,r),t.setAttribute("style","".concat(t.getAttribute("style"),";").concat(n,":").concat(r))}},fn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),pn=function(){return pn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pn.apply(this,arguments)},dn=Object.defineProperty,hn=function(e,t,n){return function(e,t,n){t in e?dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},mn=function(e){function t(t){var n=e.call(this,t)||this;return hn(n,"node",null),n.node=h.createRef(),n}return fn(t,e),t.prototype.componentDidMount=function(){this.setPosition()},t.prototype.setPosition=function(){var e=this.props.target,t=cn(e),n=t.left+t.width/2,r=t.top+t.height/2,o=window.innerWidth/2,a=this.node.current.offsetWidth/2,i=window.innerHeight-r>t.height/2+this.node.current.offsetHeight+5;if(n<o){var l=t.left+t.width/2-a,u=l>0?l:0;sn({target:this.node.current,property:"left",value:"".concat(u,"px")})}else{var c=t.left+t.width/2+a,s=window.innerWidth-c>0?window.innerWidth-c:0;sn({target:this.node.current,property:"right",value:"".concat(s,"px")})}if(i){var f=t.height+t.top+window.pageYOffset+10;sn({target:this.node.current,property:"top",value:"".concat(f,"px")})}else{var p=window.innerHeight-r+t.height/2+10;sn({target:this.node.current,property:"bottom",value:"".concat(p,"px")})}},t.prototype.render=function(){var e=this.props,t=e.className,n=e.children,r=e.tooltipSize,o=(e.target,e.background),a=e.density,i=e.tooltipId,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","children","tooltipSize","target","background","density","tooltipId"]),u=ct("sg-tooltip",r&&"sg-tooltip--size-".concat(r),o&&"sg-tooltip--background-".concat(o),a&&"sg-tooltip--density-".concat(a),t);return m.createPortal(h.createElement("div",pn({ref:this.node,className:u,role:"tooltip","aria-hidden":"false",id:i},l),n),document.body)},t}(h.PureComponent);hn(mn,"defaultProps",{"data-e2e":"tooltip",background:"black",density:"cozy"});var yn=mn,gn=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vn=function(){return vn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vn.apply(this,arguments)},bn=Object.defineProperty,wn=function(e,t,n){return function(e,t,n){t in e?bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},En=function(e,t){void 0===t&&(t={});var n=function(n){function r(){var e=n.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return wn(e,"state",{target:null,isTooltipVisible:!1}),wn(e,"timeoutId",null),wn(e,"handleEnter",(function(n){clearTimeout(e.timeoutId);var r="svg"===n.currentTarget.nodeName?n.currentTarget.parentElement:n.currentTarget;t.delay?e.timeoutId=setTimeout((function(){return e.showTooltip(r)}),t.delay):e.showTooltip(r)})),wn(e,"showTooltip",(function(t){e.setState({target:t,isTooltipVisible:!0},(function(){e.isMobileSafari&&(document.removeEventListener("touchend",e.handleTouchEndOnMobileSafari),document.addEventListener("touchend",e.handleTouchEndOnMobileSafari))}))})),wn(e,"hideTooltip",(function(){clearTimeout(e.timeoutId),e.setState({isTooltipVisible:!1}),e.isMobileSafari&&document.removeEventListener("touchend",e.handleTouchEndOnMobileSafari)})),wn(e,"handleTouchEndOnMobileSafari",(function(t){var n=e.state,r=n.isTooltipVisible,o=n.target;o===t.target||o.contains(t.target)||t.target.className&&t.target.className.indexOf("sg-tooltip")>=0||r&&(o!==document.activeElement&&o.focus(),o.blur())})),e}return gn(r,n),Object.defineProperty(r.prototype,"isMobileSafari",{get:function(){var e=this.context.device;return e.isDevicePhone&&"safari"===e.browser.name},enumerable:!1,configurable:!0}),r.prototype.componentWillUnmount=function(){this.isMobileSafari&&document.removeEventListener("touchend",this.handleTouchEndOnMobileSafari)},r.prototype.render=function(){var n=this.props,r=n.tooltip,o=void 0===r?t.tooltip:r,a=n.tooltipSize,i=n.forwardRef,l=n.background,u=n.density,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(n,["tooltip","tooltipSize","forwardRef","background","density"]),s=this.state,f=s.target,p=s.isTooltipVisible,d=this.context.device,m=t.preventTooltipOnMobile,y=Boolean(p&&o);m&&(y=!d.isDevicePhone&&!d.isDeviceTablet&&y);var g=un();return h.createElement(h.Fragment,null,h.createElement(e,vn(vn({},c),{ref:i,device:d,onMouseEnter:this.handleEnter,onMouseLeave:this.hideTooltip,onFocus:this.handleEnter,onBlur:this.hideTooltip,"aria-describedby":g})),y&&h.createElement(yn,{target:f,tooltipId:g,tooltipSize:a,background:l,density:u},o))},r}(h.Component);return wn(n,"contextType",yt),wn(n,"defaultProps",{}),h.forwardRef((function(e,t){return h.createElement(n,vn(vn({},e),{forwardRef:t}))}))},On=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_n=function(){return _n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_n.apply(this,arguments)},Sn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},xn=Object.defineProperty,kn=function(e,t,n){return function(e,t,n){t in e?xn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Cn={exceptionIcons:{empty:" ",fallback:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle class="st0" cx="16" cy="16" r="5.75"/></svg>',e2e:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle class="st0" cx="16" cy="16" r="5.75"></circle></svg>'},getIcon:function(e,t){return void 0!==Cn.exceptionIcons[e]?new Promise((function(t){return t(Cn.exceptionIcons[e])})):(Cn[e]||(Cn[e]=fetch(t).then((function(e){return e.ok?e.text():Cn.exceptionIcons.fallback})).then((function(e){return e.toLowerCase().includes("!doctype")?null:e})).catch((function(e){return console.error(e),Cn.exceptionIcons.fallback}))),Cn[e])}},Pn=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return kn(t,"state",{svg:""}),kn(t,"mounted",!1),kn(t,"getSVG",(function(){var e=t.props,n=e.width,r=e.height,o=e.size,a=t.state.svg||"";return n||r||o?((r||o)&&(a=a.replace('xmlns="http://www.w3.org/2000/svg"','xmlns="http://www.w3.org/2000/svg" height="'.concat(r||o,'" '))),(n||o)&&(a=a.replace('xmlns="http://www.w3.org/2000/svg"','xmlns="http://www.w3.org/2000/svg" width="'.concat(n||o,'" '))),a):t.state.svg})),kn(t,"getIconPath",(function(e){var n=t.context.config,r=t.props.path||n.svgAssetsPath;return"".concat(r,"/").concat(e,".svg")})),t}return On(t,e),t.prototype.componentDidMount=function(){var e=this;this.mounted=!0,this.fetch(this.props.name),this.props.prefetch&&this.props.prefetch.forEach((function(t){return e.prefetch(t)}))},t.prototype.componentDidUpdate=function(e){this.props.name!==e.name&&this.fetch(this.props.name)},t.prototype.componentWillUnmount=function(){this.mounted=!1},t.prototype.prefetch=function(e){Cn.getIcon(e,this.getIconPath(e))},t.prototype.fetch=function(e){var t=this;Cn.getIcon(e,this.getIconPath(e)).then((function(e){t.mounted&&t.setState({svg:e})}))},t.prototype.render=function(){var e=this.props,t=e.name,n=void 0===t?"":t,r=e.multicolor,o=e.fill,a=e.className,i=e.tabIndex,l=e.forwardRef,u=e.color,c=e.role,s=e["data-tooltip"],f=e["data-e2e"],p=e["data-component"],d=e["aria-label"],m=Sn(e,["name","multicolor","fill","className","tabIndex","forwardRef","color","role","data-tooltip","data-e2e","data-component","aria-label"]),y=this.props,g=y.width,v=y.height,b=y.size,w=y.style,E=y.onClick,O=y.onKeyDown,_=(Sn(y,["width","height","size","style","onClick","onKeyDown"]),{width:"".concat(g||b,"px"),height:"".concat(v||b,"px")}),S=_n(_n({},_),w),x=!r,k=s&&0,C=ct("sg-icon",E&&"sg-icon--interactive",o&&"sg-icon--fill-".concat(o),x&&"sg-icon--use-css-colors",x&&an(u),new RegExp("(presentational|product)").test(n)&&x&&"sg-icon--color-".concat(u),a);return h.createElement("span",_n(_n({className:C},ht(m)),{ref:l,"data-tooltip":s,style:S,onClick:E,tabIndex:void 0!==i?i:k,dangerouslySetInnerHTML:{__html:this.getSVG()},"data-e2e":f,"data-component":p,"data-icon":n,role:c,"aria-label":d,onKeyDown:function(e){switch(e.key){case xt.SPACE:case xt.ENTER:e.preventDefault(),e.stopPropagation(),e.target.click()}O&&O(e)}}))},t}(h.Component);kn(Pn,"contextType",yt),kn(Pn,"defaultProps",{fill:"lighter","data-e2e":"icon","data-component":"icon",role:"img"});var Tn=En(Pn);Tn.displayName="Icon";var Nn=Tn,jn=function(){return jn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jn.apply(this,arguments)},An=h.forwardRef((function(e,t){var n=t||h.createRef(),r=h.createRef(),o=e.children,a=e.disabled,i=e.className,l=e.tag,u=e.onMouseDown,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","disabled","className","tag","onMouseDown"]),s=function(){r.current.classList.remove("sg-ripple__animation")};return h.createElement(l,jn(jn({},c),{ref:n,onAnimationEnd:function(){return s()},onMouseDown:function(e){if(!n.current||!r.current||a)return null;r.current.style.left="0px",r.current.style.top="0px",r.current.style.width="0px",r.current.style.height="0px";var t,o,i,l=(o=(t=n.current).offsetWidth)>=(i=t.offsetHeight)?o:i,c=function(e,t,n){var r=cn(t);return{x:e.clientX-r.left-n/2,y:e.clientY-r.top-n/2}}(e,n.current,l);r.current.style.left="".concat(c.x,"px"),r.current.style.top="".concat(c.y,"px"),r.current.style.width="".concat(l,"px"),r.current.style.height="".concat(l,"px"),r.current.classList.add("sg-ripple","sg-ripple__animation"),u&&u(e)},onTransitionEnd:s,className:ct("sg-ripple-container",i)}),o,h.createElement("span",{ref:r}))}));An.displayName="Ripple";var Rn=An,In=function(){return In=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},In.apply(this,arguments)},Dn={small:"12",medium:"16",large:"18","x-large":"18","xx-large":"22"},Mn=h.forwardRef((function(e,t){var n=e.children,r=e.color,o=e.disabled,a=(e.device,e.size),i=e.className,l=e.icon,u=e.onClick,c=e.iconColor,s=e.tabIndex,f=e.isActive,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","color","disabled","device","size","className","icon","onClick","iconColor","tabIndex","isActive"]),d=ct("sg-icon-button","sg-icon-button--circle",f&&"sg-icon-button--active",r&&"sg-icon-button--".concat(r),o&&"sg-icon-button--disabled",a&&"sg-icon-button--".concat(a),i);return h.createElement(Rn,In(In({ref:t,tag:"span",className:d,tabIndex:s,role:"button"},ht(p)),{onKeyDown:function(e){return function(e){var t=e.event,n=e.disabled;switch(kt(t)&&nn({event:t}),Ct(t)&&nn({event:t,isDirectionForward:!1}),t.key){case xt.SPACE:case xt.ENTER:if(n)return;return t.preventDefault(),t.stopPropagation(),t.target.click();default:return}}({event:e,disabled:o,onClick:u})},disabled:o,onClick:function(e){o?e.preventDefault():"function"==typeof u&&u(e)}}),l&&h.createElement(Nn,{name:l,size:Dn[a],className:"sg-icon-button__icon",tabIndex:null,color:c,"aria-hidden":!0}),n)}));Mn.defaultProps={color:"neutral",size:"medium","data-e2e":"icon-button","data-component":"icon-button",tabIndex:0};var Fn=En(Mn,{preventTooltipOnMobile:!0});Fn.displayName="IconButton";var Ln=Fn,Un=["left","center","right"],zn=["capitalize","lowercase","uppercase"],Vn=["light","regular","medium","bold","extra-bold"],Bn=["1","2","3","4"],Hn=function(){return Hn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hn.apply(this,arguments)},Wn=function(e){if(!e)return null;var t=e.align,n=e.italic,r=e.transform,a=e.truncate,i=e.weight,l=e.wordBreak;return st({styles:o.default,classes:Hn({"sg-typography":!0,"sg-typography--truncate":a,"sg-typography--italic":n},ft([{class:"sg-typography--align-",props:Un,selected:t},{class:"sg-typography--transform-",props:zn,selected:r},{class:"sg-typography--weight-",props:Vn,selected:i},{class:"sg-typography--break-",props:["all","word"],selected:l}]))})},Kn=function(){return Kn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kn.apply(this,arguments)},qn=function(e){var t=e.children,n=e.className,r=e.size,o=e.tag,i=e.color,l=e.padding,u=e.lineClamp,c=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","size","tag","color","padding","lineClamp"]),s=[{class:"sg-text--size-",props:["small","medium","large","x-large","inherit"],selected:r},{class:"sg-text--line-clamp-",props:Bn,selected:u}],f=ct(n,an(i),Bt(l),Wn(c)),p=st({styles:a.default,classes:Kn({"sg-text":!0,"sg-text-clamp":Boolean(u)},ft(s)),className:f});return h.createElement(o,Kn({className:p},ht(c)),t)};qn.displayName="Text",qn.defaultProps={weight:"regular",color:"dark",size:"medium",tag:"p","data-e2e":"text"};var Gn=qn,Yn=n(5043),$n=n.n(Yn),Xn=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Qn=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Jn=function(){return Jn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jn.apply(this,arguments)},Zn=function(e){var t,n,r,o=e.children,a=e.className,i=e.density,l=e.level,u=e.color,c=e.tag,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","density","level","color","tag"]),f=ct("sg-title","sg-title--density-".concat(i),"sg-title--level-".concat(l),an(u),Wn(s),a);return h.createElement(c||"h".concat(l),Jn({className:f,"data-component":"title",role:"heading"},ht(s)),"string"==typeof o?(void 0===n&&(n=[]),void 0===r&&(r=[]),(t=o)?new($n())({ALLOWED_TAGS:Qn(["em","strong","b","br","span"],Xn(n),!1),ALLOWED_ATTRIBUTES:Qn(["class","className"],Xn(r),!1)}).transform(t):""):o)};Zn.defaultProps={weight:"bold",color:"dark",density:"cozy",level:"1","data-e2e":"title"},Zn.displayName="Title";var er=Zn,tr=["none","small","medium","inherit"],nr=["none","default","inherit"],rr=function(){return tr},or=function(){return or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},or.apply(this,arguments)},ar=function(e,t){if(!e)return null;var n=Dt("border",e),r=[{class:"sg-with-border--radius-",props:nr,selected:t},{class:"sg-with-border--border-top-",props:rr(),selected:n.top},{class:"sg-with-border--border-right-",props:rr(),selected:n.right},{class:"sg-with-border--border-bottom-",props:rr(),selected:n.bottom},{class:"sg-with-border--border-left-",props:rr(),selected:n.left}];return st({styles:i.default,classes:or({"sg-with-border":!0},ft(r))})},ir=function(){return ir=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ir.apply(this,arguments)},lr=h.forwardRef((function(e,t){var n=e.border,r=e.borderRadius,o=e.children,a=e.className,i=e.align,l=e.alignSelf,u=e.justify,c=e.justifyItems,s=e.autoflow,f=e.xs,p=e.sm,d=e.m,m=e.lg,y=e.gap,g=e.autoFit,v=e.padding,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["border","borderRadius","children","className","align","alignSelf","justify","justifyItems","autoflow","xs","sm","m","lg","gap","autoFit","padding"]),w=ct("sg-grid","sg-grid--gap-".concat(y),l&&"sg-grid--align-self-".concat(l),s&&"sg-grid--autoflow-".concat(s),f&&"sg-grid--xs-".concat(f),p&&"sg-grid--sm-".concat(p),d&&"sg-grid--m-".concat(d),m&&"sg-grid--lg-".concat(m),g&&"sg-grid--auto-fit",i&&"sg-grid--align-".concat(i),u&&"sg-grid--justify-".concat(u),Bt(v),c&&"sg-grid--justify-items-".concat(c),ar(n,r),!!window.MSInputMethodContext&&!!document.documentMode&&"sg-grid--ie11",a);return h.createElement("div",ir({ref:t,className:w},ht(b)),o)}));lr.defaultProps={gap:"medium",autoflow:"row",alignSelf:"stretch"};var ur=lr,cr=function(){return cr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cr.apply(this,arguments)},sr={success:"success",error:"error",warning:"warning",info:"information",instruction:"information",hint:"information"},fr=function(e){var t=e.className,n=e.device,r=e.message,o=e.title,a=e.type,i=e.onClose,l=e.children,u=e.style,c=e.enter,s=e.onEnter,f=e.onEntered,p=e.onEntering,d=e.exit,m=e.onExit,y=e.onExited,g=e.onExiting,v=e["data-e2e"],b=e["data-component"],w=e.tabIndex,E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","device","message","title","type","onClose","children","style","enter","onEnter","onEntered","onEntering","exit","onExit","onExited","onExiting","data-e2e","data-component","tabIndex"]),O=ct("sg-notification",a&&"sg-notification--".concat(a),t);return h.createElement(qt.CSSTransition,cr(cr({classNames:"sg-notification--animation"},ht(E)),{in:e.in,enter:c,onEnter:s,onEntered:f,onEntering:p,exit:d,onExit:m,onExited:y,onExiting:g,mountOnEnter:!0,unmountOnExit:!0,timeout:{enter:1,exit:500}}),h.createElement("div",{style:u,className:O,"data-e2e":v,"data-e2e-status":a,"data-component":b,tabIndex:w},h.createElement("div",{className:"sg-notification__icon"},h.createElement(Nn,{name:sr[a],color:"white",size:n.isPhone?"15":"20"})),h.createElement("div",{className:"sg-notification__content","data-e2e":"notification-content"},h.createElement(ur,{gap:"x-small"},h.createElement("div",null,h.createElement(er,{level:"6",density:"none",className:"sg-notification__title"},o),r&&h.createElement(Gn,{size:"small",color:"dark"},r)),l)),h.createElement("div",{className:"sg-notification__close-icon","data-e2e":"notification-close-icon"},i&&h.createElement(Ln,{icon:"cross",size:"small",onClick:i,tabIndex:-1}))))};fr.defaultProps={"data-e2e":"notification","data-component":"notification",tabIndex:-1};var pr=function(e){return h.createElement(yt.Consumer,null,(function(t){var n=t.device;return h.createElement(fr,cr(cr({},e),{device:n}))}))};pr.displayName="Notification";var dr=pr,hr="autoClose",mr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yr=function(){return yr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},yr.apply(this,arguments)},gr=Object.defineProperty,vr=function(e,t,n){return function(e,t,n){t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},br=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return vr(t,"timeout"),vr(t,"defaultTitles",{success:t.props.defaultSuccessTitle,error:t.props.defaultErrorTitle}),vr(t,"handleClose",(function(){var e=t.props,n=e.removeNotification,r=e.notification;switch(r.behaviour){case hr:if(void 0===t.timeout)return;return clearTimeout(t.timeout),t.timeout=void 0,n(r.id);case"prompt":return n(r.id)}})),t}return mr(t,e),t.prototype.componentDidMount=function(){var e=this;this.props.notification.behaviour===hr&&(this.timeout=setTimeout((function(){e.handleClose()}),7e3))},t.prototype.componentWillUnmount=function(){this.handleClose()},t.prototype.render=function(){var e=this.props,t=e.notification,n=(e.defaultErrorTitle,e.defaultSuccessTitle,e.removeNotification,function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["notification","defaultErrorTitle","defaultSuccessTitle","removeNotification"])),r=t.title||this.defaultTitles[t.type];return h.createElement(dr,yr({type:t.type,title:r,message:t.message,onClose:this.handleClose},n),t.renderChildren&&t.renderChildren(this.props))},t}(h.Component),wr=br,Er=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Or=Object.defineProperty,_r=function(e,t,n){return function(e,t,n){t in e?Or(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Sr=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return _r(t,"state",{notifications:[]}),_r(t,"addNotification",(function(e){t.setState((function(t){return{notifications:t.notifications.concat(e)}}))})),_r(t,"removeNotification",(function(e){t.setState((function(t){return{notifications:t.notifications.filter((function(t){return t.id!==e}))}}))})),t}return Er(t,e),t.prototype.componentDidMount=function(){Qt.subscribe(this.addNotification)},t.prototype.componentWillUnmount=function(){Qt.unsubscribe(this.addNotification)},t.prototype.render=function(){var e=this;return h.createElement(Yt,null,this.state.notifications.map((function(t){return h.createElement(wr,{key:t.id,notification:t,defaultSuccessTitle:e.props.defaultSuccessTitle,defaultErrorTitle:e.props.defaultErrorTitle,removeNotification:function(n){e.removeNotification(n),t.onClose&&t.onClose(n)}})})))},t}(h.Component),xr=Sr,kr=function(){return kr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kr.apply(this,arguments)},Cr=function(e){var t=e.background,n=e.children,r=e.className,o=e.delay,a=e.density,i=e.hideSpinner,l=e.iconSize,u=e.position,c=e.spinnerPosition,s=e.border,f=e.borderRadius,p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["background","children","className","delay","density","hideSpinner","iconSize","position","spinnerPosition","border","borderRadius"]),d=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(h.useState(null),2),m=d[0],y=d[1];h.useEffect((function(){if(0!==o){var e=setTimeout((function(){return y(!0)}),o);return function(){return clearTimeout(e)}}y(!0)}),[o]);var g=ct("sg-loader","sg-loader--density-".concat(a),"sg-loader--position-".concat(u),"sg-loader--background-".concat(t),ar(s,f),r),v=ct("sg-loader__content","sg-loader__content--position-".concat(c),!m&&"sg-loader__content--transparent"),b=ct("sg-loader__message","sg-loader__message--color-".concat(t));return h.createElement("div",kr({className:g,"data-e2e":"loader"},ht(p)),m&&h.createElement("div",{className:v},!i&&h.createElement("div",{className:"sg-loader__spinner","data-e2e":"loader-spinner"},h.createElement(Nn,{name:"loader",color:"success",size:l,multicolor:!0})),n&&h.createElement("div",{className:b,"data-e2e":"loader-message"},n)))};Cr.defaultProps={background:"default",delay:1e3,density:"medium",hideSpinner:!1,iconSize:"50",position:"fixed",spinnerPosition:"sticky",border:"none",borderRadius:"inherit","data-e2e":"loader"};var Pr=Cr,Tr=function(e){return e.httpRequests},Nr=h.createContext({parentLoaderVisible:!1}),jr=function(e){var t=e.children,n=e.resources,r=z(Tr),o=r.specified,a=r.unspecified,i=o.find((function(e){return Array.isArray(n)&&n.includes(e)}))||a>0;return h.createElement(Nr.Consumer,null,(function(e){var n=e.parentLoaderVisible;return h.createElement(Nr.Provider,{value:{parentLoaderVisible:Boolean(i)}},h.createElement(h.Fragment,null,!n&&i&&h.createElement(Pr,{spinnerPosition:"absolute",position:"absolute"}),t))}))},Ar=function(e){return e.config.home_url},Rr=function(e){var t=e.config.locale?JSON.parse(e.config.locale):{"":{}};return t[""].localeSlug=e.config.localeSlug||"en",t},Ir=function(e){return e.config.log_page_url},Dr=function(e){return e.config.data_consent_popup},Mr=function(e){return e.config.assets_path},Fr=function(e,t){var n=!t||void 0===t.triggerNavigationEvent||t.triggerNavigationEvent;e&&(n&&_t(),e.focus())},Lr=function(e){var t=getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility},Ur={isDirectionForward:!0},zr=function(e,t){var n=(void 0===t?Ur:t).isDirectionForward,r=null;if(!e)return r;for(var o=n?e.firstChild:e.lastChild;o;){if(1===o.nodeType&&Lr(o)){if(Zt(o))return o;if(r=zr(o,{isDirectionForward:n}))return r}o=n?o.nextSibling:o.previousSibling}return r},Vr=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Br=function(){return Br=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Br.apply(this,arguments)},Hr=Object.defineProperty,Wr=function(e,t,n){return function(e,t,n){t in e?Hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Kr=function(e){function t(t){var n=e.call(this,t)||this;return Wr(n,"tabsWrapperWith"),Wr(n,"tabsWidth"),Wr(n,"initialClientXLocation"),Wr(n,"deltaXFromLastTranslateRequest"),Wr(n,"deltaXfromLastMoveEvent"),Wr(n,"tabsRootRef"),Wr(n,"tabsWrapperRef"),Wr(n,"tabsRef"),Wr(n,"onKeyDown",(function(e){var t=zr(n.tabsRef,{isDirectionForward:!0}),r=zr(n.tabsRef,{isDirectionForward:!1});switch(e.key){case xt.RIGHT:case xt.DOWN:if(r===e.target)return;return e.target===n.tabsRootRef&&Fr(t),void nn({event:e});case xt.LEFT:case xt.UP:if(t===e.target)return;return e.target===n.tabsRootRef&&Fr(r),void nn({event:e,isDirectionForward:!1});default:return}})),n.state={hasArrows:!1},n.tabsWrapperWith=null,n.tabsWidth=null,n.initialClientXLocation=0,n.deltaXFromLastTranslateRequest=0,n.deltaXfromLastMoveEvent=0,n.tabsRootRef=h.createRef(),n.tabsWrapperRef=h.createRef(),n.tabsRef=h.createRef(),n.applyTransformXStyle=n.applyTransformXStyle.bind(n),n.saveComponentDimensions=n.saveComponentDimensions.bind(n),n.resizeHandler=n.resizeHandler.bind(n),n.onMouseDown=n.onMouseDown.bind(n),n.onMouseUp=n.onMouseUp.bind(n),n.onMouseMove=n.onMouseMove.bind(n),n}return Vr(t,e),t.prototype.componentDidMount=function(){this.saveComponentDimensions(),this.setState({hasArrows:this.tabsWrapperWith<this.tabsWidth}),window.addEventListener("resize",this.resizeHandler,!1)},t.prototype.componentDidUpdate=function(e){e.children.length!==this.props.children.length&&this.setState({hasArrows:this.tabsWrapperWith<this.tabsWidth}),this.saveComponentDimensions()},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.resizeHandler,!1)},t.prototype.onMouseDown=function(e){this.tabsWrapperWith>=this.tabsWidth||(this.initialClientXLocation=e.clientX||e.touches[0].clientX)},t.prototype.onMouseMove=function(e){if(this.initialClientXLocation){var t=e.clientX||e.touches[0].clientX;this.translateTabs(t)}},t.prototype.onMouseUp=function(){this.initialClientXLocation=0,this.deltaXFromLastTranslateRequest=this.deltaXfromLastMoveEvent},t.prototype.saveComponentDimensions=function(){this.tabsWrapperRef&&(this.tabsWrapperWith=this.tabsWrapperRef.getClientRects()[0].width,this.tabsWidth=this.tabsRef.getClientRects()[0].width)},t.prototype.translateTabs=function(e){var t=this.tabsWidth-this.tabsWrapperWith,n=e-this.initialClientXLocation+this.deltaXFromLastTranslateRequest,r=Math.min(Math.max(parseInt(n,10),-t),0);this.deltaXfromLastMoveEvent=r,this.applyTransformXStyle(r)},t.prototype.applyTransformXStyle=function(e){this.tabsRef.style.webkitTransform="translateX(".concat(e,"px)"),this.tabsRef.style.transform="translateX(".concat(e,"px)")},t.prototype.resizeHandler=function(){var e=this.tabsWrapperWith<this.tabsWidth;this.state.hasArrows!==e&&this.setState({hasArrows:e}),this.applyTransformXStyle(0),this.saveComponentDimensions()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.children,o=t.border,a=t.size,i=t.tabIndex,l=t["data-e2e"],u=t["data-component"],c=t["aria-label"],s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","children","border","size","tabIndex","data-e2e","data-component","aria-label"]),f=ct("sg-tabs-wrapper",o&&"sg-tabs-wrapper--border-".concat(o),n),p=ct("sg-tabs","sg-tabs--active-color","sg-tabs--background-transparent","sg-tabs--".concat(a)),d=this.state.hasArrows;return h.createElement("div",Br(Br({ref:function(t){e.tabsRootRef=t},className:f,"data-e2e":l,"data-component":u,tabIndex:i},ht(s)),{onMouseDown:this.onMouseDown,onMouseMove:this.onMouseMove,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseUp,onTouchStart:this.onMouseDown,onTouchMove:this.onMouseMove,onTouchEnd:this.onMouseUp,onKeyDown:this.onKeyDown}),d&&h.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--start",onClick:function(){return e.translateTabs(40)}},h.createElement(Nn,{name:"arrow-left-thin",size:"10"})),h.createElement("div",{className:"sg-tabs_container",ref:function(t){e.tabsWrapperRef=t}},h.createElement("ul",Br({className:p,ref:function(t){e.tabsRef=t},role:"tablist","aria-label":c},s),r)),d&&h.createElement("div",{className:"sg-tabs__arrow sg-tabs__arrow--end",onClick:function(){return e.translateTabs(-40)}},h.createElement(Nn,{name:"arrow-right-thin",size:"10"})))},t}(h.Component);Wr(Kr,"defaultProps",{size:"medium",tabIndex:0,"data-e2e":"tabs","data-component":"tabs"});var qr=Kr,Gr=function(){return Gr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gr.apply(this,arguments)},Yr=function(e){switch(e.key){case xt.SPACE:case xt.ENTER:e.preventDefault(),e.stopPropagation(),e.target.click()}},$r=h.forwardRef((function(e,t){var n=e.active,r=e.disabled,o=e.className,a=e.children,i=e.padding,l=e.tabIndex,u=e["data-e2e"],c=e["data-component"],s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["active","disabled","className","children","padding","tabIndex","data-e2e","data-component"]),f=ct("sg-tabs__tab",n&&"sg-tabs__tab--active",r&&"sg-tabs__tab--disabled",Bt(i),o);return h.createElement(Rn,Gr(Gr({tag:"li",ref:t,className:f,tabIndex:l,"data-e2e":u,"data-component":c,role:"tab","aria-selected":n,"aria-controls":"panel-".concat(l)},ht(s)),{onKeyDown:Yr}),a)}));$r.displayName="Tab",$r.defaultProps={tabIndex:-1,"data-e2e":"tab","data-component":"tab"};var Xr=$r,Qr=function(){return Qr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qr.apply(this,arguments)},Jr=function(e){var t=function(){var e=(0,h.useContext)(yt);if(!e)throw new Error("useLogger must be used within a ContextProvider");var t=e.logLevel,n=function(e,n){return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];t<=e&&console[n].apply(console,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}(["StyleGuide Log: "],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(r),!1))}};return{trace:n(0,"trace"),debug:n(1,"debug"),info:n(3,"info"),warn:n(4,"warn"),error:n(5,"error"),deprecation:n(2,"warn"),assert:n(1,"assert"),clear:n(6,"clear"),count:n(1,"count"),countReset:n(1,"countReset"),dir:n(1,"dir"),dirxml:n(1,"dirxml"),group:n(1,"group"),groupCollapsed:n(1,"groupCollapsed"),groupEnd:n(1,"groupEnd"),log:n(3,"log"),profile:n(1,"profile")}}(),n=e.className,r=e.density,o=e.padding,a=e.theme,i=e.size,l=e.children,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","density","padding","theme","size","children"]),c=ct("sg-section",r&&"sg-section--density-".concat(r),a&&"sg-section--theme-".concat(a),"sg-section--size-".concat(i),n);return o&&t.deprecation("@deprecated - property padding will stop working from v4.0.0. Use density instead."),a&&t.deprecation("@deprecated - property theme will stop working from v4.0.0."),h.createElement("div",Qr({className:c},ht(u)),h.createElement("div",{className:"sg-section__content"},l))};Jr.defaultProps={density:"cozy",size:"medium","data-e2e":"section"};var Zr=Jr,eo=function(){return eo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},eo.apply(this,arguments)},to=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},no=function(e){var t=e.children,n=to(e,["children"]);return h.createElement(er,eo({density:"comfortable"},n),t)},ro=function(e){var t=e.children,n=to(e,["children"]);return h.createElement(er,eo({level:"4"},n),t)},oo=function(){return oo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},oo.apply(this,arguments)},ao="vertical",io={"x-small":"36",small:"48",medium:"64",large:"96","x-large":"144"},lo={"x-small":"6",small:"5",medium:"4",large:"3","x-large":"2"},uo=function(e){var t=e.device,n=e.divided,r=e.layout,o=e.selected,a=e.text,i=e.title,l=e.padding,u=e.iconName,c=e.iconColor,s=e.iconMulticolor,f=e.size,p=e.children,d=e.className,m=e.outline,y=e.tabIndex,g=e.label,v=e["data-e2e"],b=e["data-component"],w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["device","divided","layout","selected","text","title","padding","iconName","iconColor","iconMulticolor","size","children","className","outline","tabIndex","label","data-e2e","data-component"]),E=t.isPhone||r===ao,O=n&&!E,_=ct("sg-card",Bt(l),m&&"sg-card--outline-".concat(m),o&&"sg-card--selected",d),S=ct("sg-card__content-wrapper",O&&"sg-card__content-wrapper--divided",E?"sg-card__content-wrapper--row":"sg-card__content-wrapper--column"),x=ct("sg-card__icon-wrapper");return h.createElement("div",oo(oo({className:_,role:"figure",tabIndex:y},ht(w)),{"data-e2e":v,"data-component":b}),g&&h.createElement("div",{className:"sg-card__label"},g),h.createElement(ur,{className:S,gap:E?"medium":"large"},h.createElement("div",{className:x},h.createElement(Nn,{name:u,color:c,size:io[f],multicolor:s})),O&&h.createElement("div",{className:"sg-card__divider"}),h.createElement(ur,{className:ct("sg-card__content",r===ao&&"sg-card__content--vertical")},h.createElement(ur,null,i&&h.createElement(er,{level:lo[f],weight:"bold",density:"none"},i),a&&h.createElement(Gn,{color:"dark"},a)),p&&h.createElement("div",{className:"sg-card__actions-wrapper"},p))))};uo.defaultProps={padding:"responsive",divided:!1,layout:"horizontal",outline:"shadow","data-e2e":"card","data-component":"card",size:"medium",tabIndex:0},uo.displayName="Card";var co=function(e){return h.createElement(yt.Consumer,null,(function(t){var n=t.device;return h.createElement(uo,oo(oo({},e),{device:n}))}))},so=function(e){var t=function(e){var t;return((t={})[xe.SECURITY_DASHBOARD]={title:_e("Security Optimizer by SiteGround"),text:_e("Security Optimizer by SiteGround is the all-in-one security solution for your WordPress website. With the carefully selected and easy to configure functions the plugin provides everything you need to secure your website and prevent a number of threats such as brute-force attacks, compromised login, data leaks and more."),iconName:"logo-sg-security",iconMulticolor:!0},t[xe.LOGIN_SETTINGS]={title:_e("Security Optimizer - Login Security"),text:_e("Login security is paramount for keeping your site and data secure. Use the tools we have compiled to protect your WordPress wp-admin from unauthorised visitors, bots and other human or automated attacks."),iconName:"product-ssl-encryption",iconColor:"primary"},t[xe.SITE_SECURITY]={title:_e("Security Optimizer - Site Security"),text:_e("We have created a list of tools to help you harden your WordPress site's security and keep it safe from malware, exploits and other malicious actions. The options tagged as recommended are essential for your site security."),iconName:"product-ssl-wildcard",iconColor:"primary"},t[xe.ACTIVITY_LOG]={title:_e("Security Optimizer - Activity Log"),text:_e("The activity log can help you monitor your site and login page for unauthorised visitors or brute force attempts. You can easily block and unblock IPs or visitors that look suspicious and prevent them from malicious actions."),iconName:"product-access-logs",iconColor:"primary"},t[xe.POST_HACK_ACTIONS]={title:_e("Security Optimizer - Post-hack Actions"),text:_e("If you believe that your website was hacked, you have installed a compromised plugin or one of your users login has been compromised, you can use the tools in our post-hack actions for a quick remedy."),iconName:"product-hacked-site-repair",iconColor:"primary"},t)[e]}(e.pageId);if(!t)return null;var n=t.title,r=t.text,o=t.iconName,a=t.iconColor,i=t.iconMulticolor;return h.createElement("div",null,h.createElement(no,null,n),h.createElement(co,{iconName:o,iconColor:a,iconMulticolor:i,text:r}))},fo=function(e){var t=e.children,n=e.pageId;return h.createElement(Zr,null,h.createElement(ur,null,h.createElement(so,{pageId:n}),h.createElement(ur,null,t)))},po=function(){return po=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},po.apply(this,arguments)},ho=h.forwardRef((function(e,t){var n=e.action,r=e.color,o=e.size,a=e.children,i=e.className,l=e.disabled,u=e.expand,c=e.tabIndex,s=e.tag,f=e["data-e2e"],p=e["data-component"],d=e.onClick,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["action","color","size","children","className","disabled","expand","tabIndex","tag","data-e2e","data-component","onClick"]),y=ct("sg-button","sg-button--".concat(r),"sg-button--".concat(o),l&&"sg-button--disabled",u&&"sg-button--expanded",i);return h.createElement(Rn,po(po({tag:s,className:y,ref:t,tabIndex:c,"data-e2e":f,"data-component":p},ht(m)),{type:n,onClick:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];l||"function"!=typeof d||d.apply(void 0,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(e),!1))}}),h.createElement("span",{className:"sg-button__content"},a))}));ho.displayName="Button",ho.defaultProps={action:"submit",color:"neutral","data-e2e":"button","data-component":"button",tag:"button",size:"medium",tabIndex:0};var mo=ho,yo="FETCH_ITEM",go="FETCH_ITEM_SUCCEEDED",vo="UPDATE_ITEM",bo="UPDATE_ITEM_SUCCEEDED",wo="UPDATE_ITEM_SETTINGS",Eo="UPDATE_ITEM_SETTINGS_SUCCEEDED",Oo="FETCH_ITEM",_o="UPDATE_ITEM",So="CONSENT_DIALOG",xo="RATE",ko="BLOCK_USER",Co="NOTIFICATIONS_EMAILS",Po="MANAGE_ACTIVITY_LOG",To="ACTIVITY_LOG_LIFETIME",No="TWO_FA",jo="DISABLE_ADMIN_USERNAME",Ao="CUSTOM_LOGIN_URL",Ro="LOGIN_ACCESS",Io="LOGIN_ATTEMPTS",Do="UPDATE_FREE_PLUGINS",Mo="FORCE_PASSWORD_RESET",Fo="LOGOUT_ALL_USERS",Lo="DELETE_DEFAULT_README",Uo="DISABLE_RSS_AND_ATOM",zo="DISABLE_XML_RPC",Vo="XSS_PROTECTION",Bo="DISABLE_EDITORS",Ho="HIDE_WORDPRESS_VERSION",Wo="LOCK_AND_PROTECT_SYSTEM_FOLDER",Ko=function(){return Ko=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ko.apply(this,arguments)},qo=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Go=function(e){return{type:Eo,payload:e}},Yo=function(e,t){var n=e.requestTypeName,r=qo(e,["requestTypeName"]);return Ko({type:yo,requestTypeName:n,payload:Ko({},r)},t)},$o=function(e){return{type:go,payload:e}},Xo=function(e,t){var n=e.requestTypeName,r=qo(e,["requestTypeName"]);return Ko({type:vo,requestTypeName:n||_o,payload:Ko({},r)},t)},Qo=function(e){return{type:bo,payload:e}},Jo={FETCH_OPTIONS:{endpoint:"/fetch-options",resourceName:"options"},UPDATE_CONSENT_SETTINGS:{endpoint:"/update-settings",resourceName:"data_consent_popup"},NOTIFICATIONS:{endpoint:"/notifications",resourceName:"notifications"},HARDENING:{endpoint:"/hardening",resourceName:"hardening"},EBOOK:{endpoint:"/e-book",resourceName:"ebook"},RATE:{endpoint:"/rate",resourceName:"rate"},ACTIVITY_UNKNOWN:{endpoint:"/activity-unknown",resourceName:"activityUnknown"},ACTIVITY_REGISTERED:{endpoint:"/activity-registered",resourceName:"registeredActivity"},ACTIVITY_BLOCKED_USERS:{endpoint:"/blocked-users",resourceName:"blockedUsers"},WEEKLY_REPORTS:{endpoint:"/weekly-report",resourceName:"weeklyReports"},NOTIFICATIONS_EMAILS:{endpoint:"/notification-emails",resourceName:"options"},BLOCK_USER:{endpoint:"/block-user"},BLOCK_IP:{endpoint:"/block-ip"},LOGIN_UNBLOCK:{endpoint:"/login-unblock"},GET_VISITOR_STATUS:{endpoint:"/get-visitor-status",resourceName:"visitorStatus"},MANAGE_ACTIVITY_LOG:{endpoint:"/manage-activity-log",resourceName:"options"},ACTIVITY_LOG_LIFETIME:{endpoint:"/activity-log-lifetime",resourceName:"options"},TWO_FA:{endpoint:"/2fa",resourceName:"options"},DISABLE_ADMIN_USERNAME:{endpoint:"/disable-admin-username",resourceName:"options"},RESET_TWO_FACTOR:{endpoint:"/reset-user-2fa",resourceName:"options"},LOGIN_ATTEMPTS:{endpoint:"/limit-login-attempts",resourceName:"options"},CUSTOM_LOGIN_URL:{endpoint:"/custom-login-url",resourceName:"options"},LOGIN_ACCESS:{endpoint:"/login-access",resourceName:"options"},AWAY_MODE:{endpoint:"/away-mode",resourceName:"away_mode"},REINSTALL_PLUGINS:{endpoint:"/reinstall-plugins"},FORCE_PASSWORD_RESET:{endpoint:"/force-password-reset"},LOGOUT_USERS:{endpoint:"/logout-users"},LOCK_SYSTEM_FOLDERS:{endpoint:"/lock-system-folders",resourceName:"options"},HIDE_WP_VERSION:{endpoint:"/hide-wp-version",resourceName:"options"},DISABLE_EDITORS:{endpoint:"/disable-editors",resourceName:"options"},DISABLE_XML_RPC:{endpoint:"/disable-xml-rpc",resourceName:"options"},DISABLE_FEEDS:{endpoint:"/disable-feeds",resourceName:"options"},XSS_PROTECTION:{endpoint:"/xss-protection",resourceName:"options"},DELETE_README:{endpoint:"/delete-readme",resourceName:"options"}},Zo=function(){return Zo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zo.apply(this,arguments)},ea=function(e){var t=e.className,n=e.gutter,r=e.gap,o=e.grow,a=e.align,i=e.alignSelf,l=e.background,u=e.direction,c=e.expand,s=e.justify,f=e.wrap,p=e.margin,d=e.shrink,m=e.children,y=e.padding,g=e.border,v=e.borderRadius,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","gutter","gap","grow","align","alignSelf","background","direction","expand","justify","wrap","margin","shrink","children","padding","border","borderRadius"]),w=ct("sg-flex",a&&"sg-flex--align-".concat(a),i&&"sg-flex--align-self-".concat(i),n&&"sg-flex--gutter-".concat(n),r&&"sg-flex--gap-".concat(r),u&&"sg-flex--direction-".concat(u),c&&"sg-flex--expanded",s&&"sg-flex--justify-".concat(s),f&&"sg-flex--flex-wrap-".concat(f),p&&"sg-flex--margin-".concat(p),d&&"sg-flex--shrink-".concat(d),o&&"sg-flex--grow-".concat(o),l&&"sg-flex--background-".concat(l),Bt(y),ar(g,v),t);return h.createElement("div",Zo({className:w},ht(b)),m)};function ta(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(e.constructor!==t.constructor)return!1;var n,r=void 0,o=void 0;if(Array.isArray(e)){if((r=e.length)!=t.length)return!1;for(o=r;0!=o--;)if(!ta(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof t.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof t.toString)return e.toString()===t.toString();if((r=(n=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(o=r;0!=o--;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=r;0!=o--;){var a=n[o];if(!ta(e[a],t[a]))return!1}return!0}return e!=e&&t!=t}var na=function(){return na=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},na.apply(this,arguments)},ra=h.useEffect,oa=h.useRef,aa=function(e){var t=e.event,n=e.domRef,r=e.isDirectionForward,o=zr(n,{isDirectionForward:!0}),a=zr(n,{isDirectionForward:!1}),i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(r?[o,a]:[a,o],2),l=i[0];i[1]===document.activeElement&&(t.preventDefault(),t.stopPropagation(),Fr(l))},ia=function(e){var t=e.autoFocus,n=e.children,r=e.className,o=e.handleOnKeyDown,a=e.tabIndex,i=e.hasTabHandling,l=void 0===i||i,u=e.hasArrowHandling,c=void 0!==u&&u,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["autoFocus","children","className","handleOnKeyDown","tabIndex","hasTabHandling","hasArrowHandling"]),f=oa(null);return ra((function(){if(t){var e=zr(f.current);Fr(e,{triggerNavigationEvent:!1})}}),[t]),h.createElement("div",na({ref:f,className:r,tabIndex:a,onKeyDown:function(e){return function(e){var t=e.event,n=e.domRef,r=e.handleOnKeyDown,o=e.hasTabHandling,a=e.hasArrowHandling;return kt(t)&&o?aa({event:t,domRef:n,isDirectionForward:!0}):Ct(t)&&o?aa({event:t,domRef:n,isDirectionForward:!1}):a?function(e){var t=e.event,n=e.domRef,r=zr(n,{isDirectionForward:!0}),o=zr(n,{isDirectionForward:!1});switch(t.key){case xt.RIGHT:case xt.DOWN:return t.target===o?Fr(r):nn({event:t});case xt.LEFT:case xt.UP:return t.target===r?Fr(o):nn({event:t,isDirectionForward:!1})}}({event:t,domRef:n}):void(r&&r(t))}({event:e,domRef:f.current,handleOnKeyDown:o,hasTabHandling:l,hasArrowHandling:c})}},ht(s)),n)};ia.displayName="FocusScope",ia.defaultProps={autoFocus:!0};var la=[],ua={addElementToFocusQ:function(e){la.push(e)},focusLastElementInQ:function(){var e=la.pop();e&&e.focus()}},ca=h.createContext(ua),sa=h.useEffect,fa=function(){var e=h.useContext(ca),t=e.focusLastElementInQ,n=e.addElementToFocusQ;return sa((function(){return n(document.activeElement),function(){t()}}),[n,t]),null};fa.displayName="HandleModalFocus";var pa="20px",da="absolute",ha=function(e,t,n,r,o){var a=void 0===o?{}:o,i=a.setMaxHeight,l=void 0!==i&&i,u=a.priority,c=void 0===u?null:u,s=r.current.clientHeight,f=r.current.clientWidth;if(function(e){try{e.current.style=null}catch(t){e.current.setAttribute("style",null)}}(r),!n.isPhone){!function(e){var t=e.menuHeight,n=e.rect,r=e.listRef;if(e.setMaxHeight){var o=t+(window.innerHeight-(t+parseInt(n.top,10)))-40,a=o<220?220:o;sn({target:r.current,property:"max-height",value:a+"px"})}}({menuHeight:s,rect:t,listRef:r,setMaxHeight:l});var p,d,h=function(e,t,n,r){var o=n&&"right"===n;return{hasEnoughSpaceForPositionLeftByElement:!(n&&"left"===n)&&window.innerWidth-(e+parseInt(r.left,10))>0,hasEnoughSpaceForPositionRightByElement:!o&&window.innerWidth-(e+parseInt(r.right,10))>0,hasEnoughSpaceForPositionUnderElement:window.innerHeight-(t+parseInt(r.top,10))>0,hasEnoughSpaceForPositionAboveElement:window.innerHeight-(t+parseInt(r.bottom,10))>0}}(f,s,c,t),m=h.hasEnoughSpaceForPositionLeftByElement,y=h.hasEnoughSpaceForPositionRightByElement,g=h.hasEnoughSpaceForPositionUnderElement,v=h.hasEnoughSpaceForPositionAboveElement,b=e===da?"0":t.left,w=e===da?"0":t.right,E=e===da?"100%":t.top,O=e===da?"100%":t.bottom;switch(!0){case m:sn({target:r.current,property:"left",value:b}),p="0";break;case y:sn({target:r.current,property:"right",value:w}),p="100%";break;default:sn({target:r.current,property:"left",value:pa}),sn({target:r.current,property:"right",value:pa})}switch(!0){case g:sn({target:r.current,property:"top",value:E}),d="0";break;case v:sn({target:r.current,property:"bottom",value:O}),d="100%";break;default:sn({target:r.current,property:"top",value:pa}),sn({target:r.current,property:"bottom",value:pa})}p&&d&&sn({target:r.current,property:"transformOrigin",value:"".concat(p," ").concat(d," 0")})}},ma=function(){return ma=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ma.apply(this,arguments)},ya=h.forwardRef((function(e,t){var n=e.classes,r=e.children,o=(e.onKeyDown,e.wrapperClasses),a=e.tabIndex,i=e.footer,l=e.wrapperRef,u=e["data-e2e"],c=e["data-component"],s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["classes","children","onKeyDown","wrapperClasses","tabIndex","footer","wrapperRef","data-e2e","data-component"]),f=h.useContext(yt).device,p=ct("sg-menu-wrapper",f.isPhone&&"sg-menu-wrapper--mobile",o),d=ct("sg-menu",f.isPhone&&"sg-menu--mobile",n);return h.createElement("div",ma({ref:l,className:p},ht(s)),h.createElement("ul",{ref:t,className:d,"data-e2e":u,"data-component":c,onKeyDown:e.onKeyDown,tabIndex:a,role:"menu"},r),i)}));ya.displayName="Menu",ya.defaultProps={"data-e2e":"menu","data-component":"menu"};var ga=ya,va=function(){return va=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},va.apply(this,arguments)},ba=h.forwardRef((function(e,t){var n=e.align,r=e.background,o=e.density,a=e.justify,i=e.className,l=e.direction,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["align","background","density","justify","className","direction"]),c=ct("sg-toolbar","sg-toolbar--background-".concat(r),"sg-toolbar--density-".concat(o),n&&"sg-toolbar--align-".concat(n),a&&"sg-toolbar--justify-".concat(a),l&&"sg-toolbar--direction-".concat(l),i);return h.createElement("div",va({ref:t,className:c,"data-e2e":e["data-e2e"]},ht(u)),e.children)}));ba.defaultProps={align:"baseline",background:"transparent",density:"cozy",direction:"row","data-e2e":"toolbar"};var wa=ba,Ea=Object.defineProperty,Oa=function(e,t,n){return function(e,t,n){t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},_a=function(){function e(){Oa(this,"level",null),Oa(this,"messages",null),this.level="warn",this.messages=[]}return e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.messages.find((function(t){return JSON.stringify(t)===JSON.stringify(e[0])}))||(window.console&&console.warn.apply(console,e.map((function(e){return"%c".concat(e)})).concat("color: red; font-size: small")),this.messages=this.messages.concat(e))},e}(),Sa=_a,xa=function(){return xa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xa.apply(this,arguments)},ka=new Sa,Ca=function(e){e.key!==xt.SPACE&&e.key!==xt.ENTER||(e.preventDefault(),e.stopPropagation(),e.target.querySelector('[data-html="input"]').click())},Pa=function(e){var t=e.children,n=e.className,r=e.disabled,o=e.reverse,a=e.size,i=e.align,l=e.style,u=e.checkIcon,c=e.indeterminate,s=e.expand,f=e.tabIndex,p=e.checked,d=e["data-e2e"],m=e["data-component"],y=e["aria-label"],g=e["aria-describedby"],v=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","disabled","reverse","size","align","style","checkIcon","indeterminate","expand","tabIndex","checked","data-e2e","data-component","aria-label","aria-describedby"]),b=ct("sg-checkbox",n,r&&"sg-checkbox--disabled",i&&"sg-checkbox--align-".concat(i),s&&"sg-checkbox--expand",p&&"sg-checkbox--checked","sg-checkbox--".concat(a)),w=c?"check-square":u;return ka.log('"checkIcon" will be deprecated, please use "icon" instead'),h.createElement("label",{className:b,style:l,"data-e2e":d,"data-component":m,onKeyDown:Ca,role:"checkbox","aria-checked":e.checked,tabIndex:f,"aria-label":y,"aria-describedby":g},h.createElement("input",xa(xa({className:"sg-checkbox__input",checked:p},ht(v)),{"data-e2e":"checkbox-input","data-html":"input",ref:function(e){e&&(e.indeterminate=c)},type:"checkbox",disabled:r})),o&&t&&h.createElement("span",{className:"sg-checkbox__label"},t),h.createElement(Nn,{name:w,className:"sg-checkbox__icon"}),!o&&t&&h.createElement("span",{className:"sg-checkbox__label"},t))};Pa.displayName="Checkbox",Pa.defaultProps={tabIndex:0,size:"medium",checkIcon:"check",indeterminate:!1,expand:!1,"data-e2e":"checkbox","data-component":"checkbox"};var Ta=Pa,Na=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ja=["en","en-US","en-US-POSIX","dz","dz-BT","en-CA","zh","zh-Hans","zh-Hans-CN","zh-Hans-HK","zh-Hans-MO","zh-Hans-SG","zh-Hant","zh-Hant-HK","zh-Hant-MO","zh-Hant-TW","ko","ko-KR","ta","ta-IN","ta-LK","hu","hu-HU","fa_IR","ja","ja-JP","lt_LT","mn","mn-MN"],Aa=["en","en-US","en-US-POSIX"],Ra=["dz","dz-BT","en-CA","zh","zh-Hans","zh-Hans-CN","zh-Hans-HK","zh-Hans-MO","zh-Hans-SG","zh-Hant","zh-Hant-HK","zh-Hant-MO","zh-Hant-TW","ko","ko-KR","ta","ta-IN","ta-LK","hu","hu-HU","fa_IR","ja","ja-JP","lt_LT","mn","mn-MN"],Ia=["ko","ko-KR","ja","ja-JP","zh","zh-cn","zh-hk","zh-mo","zh-sg","zh-tw"],Da=function(e){if("number"==typeof e){var t=e.toString().length;if(t<=10)return new Date(1e3*e);if(t<=13)return new Date(e);console.warn("Unsupported utc date format")}return e instanceof Date?e:null},Ma=function(e,t){return Intl.DateTimeFormat(e,{hour:"numeric"}).format(t).replace(/\u200E/g,"")},Fa=function(e,t){for(var n=new Date(t,e,1),r=[];n.getMonth()===e;)r.push(new Date(n)),n.setDate(n.getDate()+1);return r},La=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ua=function(){return Ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ua.apply(this,arguments)},za=Object.defineProperty,Va=function(e,t,n){return function(e,t,n){t in e?za(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Ba=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return Va(t,"mouseDownTarget"),Va(t,"state",{animation:""}),Va(t,"mouseDownHandler",(function(e){t.mouseDownTarget=e.target})),Va(t,"clickHandler",(function(e){e.stopPropagation(),e.currentTarget===e.target&&t.mouseDownTarget===e.currentTarget&&t.closeHandler()})),t}return La(t,e),t.prototype.componentDidMount=function(){this.setState({animation:"open"}),this.disablePageScroll()},t.prototype.componentDidUpdate=function(e){e.triggerClose!==this.props.triggerClose&&this.closeHandler()},t.prototype.componentWillUnmount=function(){this.enablePageScroll()},t.prototype.disablePageScroll=function(){var e=document.querySelector(".sg-page");e&&(e.setAttribute("aria-hidden","true"),We()&&e.classList.add("from-dialog--prevent-scroll"))},t.prototype.enablePageScroll=function(){var e=document.querySelector(".sg-page");e&&(e.removeAttribute("aria-hidden"),We()&&e.classList.remove("from-dialog--prevent-scroll"))},t.prototype.keypressHandler=function(e){27===e.keyCode&&(e.stopPropagation(),this.closeHandler())},t.prototype.closeHandler=function(){var e=this.props,t=e.disableClose,n=e.onCloseHandler,r=e.triggerClose;t&&!r||(n?this.setState({animation:"close"},(function(){setTimeout((function(){return n()}),300)})):console.warn("Dialog component must have onCloseHandler property to work correctly"))},t.prototype.render=function(){var e=this.props,t=e.autoFocus,n=e.children,r=e.wrapperClassName,o=e.className,a=e.renderCustomHeader,i=e.padding,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["autoFocus","children","wrapperClassName","className","renderCustomHeader","padding"]),u=this.state.animation,c=ct("sg-dialog-wrapper",r,u&&"sg-dialog-wrapper--animation-".concat(u),Bt(i));return m.createPortal(h.createElement("div",{className:c,onKeyDown:this.keypressHandler.bind(this),onMouseDown:this.mouseDownHandler,onClick:this.clickHandler,ref:this.props.forwardedRef,"data-component":"dialog-wrapper","data-e2e":"dialog-wrapper",tabIndex:0},h.createElement(fa,null),h.createElement(ia,Ua(Ua({className:o,autoFocus:t},ht(l)),{"data-e2e":this.props["data-e2e"]}),a&&a(),n)),document.body)},t}(h.Component);Va(Ba,"defaultProps",{padding:"medium","data-e2e":"dialog-wrapper"});var Ha=h.forwardRef((function(e,t){return h.createElement(Ba,Ua(Ua({},e),{forwardedRef:t}))})),Wa=function(){return Wa=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wa.apply(this,arguments)},Ka=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},qa=function(e){var t=e.icon,n=e.iconColor,r=e.iconSize,o=e.state,a="presentational"===o?"72":"30",i="presentational"===o?"48":"20";return h.createElement(yt.Consumer,null,(function(e){var o=e.device;return h.createElement(Nn,{name:t,color:n,size:r||(o.isDesktop?a:i),multicolor:!n})}))},Ga=h.forwardRef((function(e,t){var n=Ka(h.useState(null),2),r=n[0],o=n[1],a=Ka(h.useState(null),2),i=a[0],l=a[1];h.useEffect((function(){var e=un("sg-dialog-");o(e+"-title"),l(e+"-subtitle")}),[]);var u=e.autoFocus,c=e.align,s=e.children,f=e.className,p=e.density,d=e.icon,m=e.iconColor,y=e.iconSize,g=e.footer,v=e.renderCustomHeader,b=e.onCloseHandler,w=e.triggerClose,E=e.size,O=e.state,_=e.title,S=e.subTitle,x=e.wrapperClassName,k=e.autoFocusTitle,C=e.disableClose,P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["autoFocus","align","children","className","density","icon","iconColor","iconSize","footer","renderCustomHeader","onCloseHandler","triggerClose","size","state","title","subTitle","wrapperClassName","autoFocusTitle","disableClose"]),T=ct("sg-dialog","sg-dialog--align-".concat(c),"sg-dialog--size-".concat(E),p&&"sg-dialog--density-".concat(p),O?"sg-dialog--state-".concat(O):"sg-dialog--no-state",f),N=_||S;return h.createElement(Ha,Wa(Wa({className:T,wrapperClassName:x,disableClose:C,autoFocus:u},ht(P)),{ref:t,renderCustomHeader:v,onCloseHandler:b,triggerClose:w,padding:"viewport"===E?"none":void 0,role:"dialog","aria-modal":"true","aria-labelledby":r,"aria-describedby":i}),h.createElement("div",{className:"sg-dialog__content-wrapper"},d&&h.createElement("div",{className:"sg-dialog__icon-wrapper"},h.createElement("div",{className:"sg-dialog__icon"},h.createElement(qa,{icon:d,iconColor:m,iconSize:y,state:O}))),N&&h.createElement("div",{className:"sg-dialog__title-wrapper"},_&&h.createElement(er,{id:r,level:"3",weight:"medium",density:"compact",className:"sg-dialog__title",align:c,tabIndex:k?0:null},_),S&&h.createElement(Gn,{id:i,weight:"bold",color:"dark",align:c},S)),h.createElement("div",{className:"sg-dialog__content"},s)),g&&h.createElement(wa,{density:"comfortable",justify:"flex-end"},g))}));Ga.displayName="Dialog",Ga.defaultProps={align:"center",density:"medium",size:"medium",autoFocusTitle:!1,renderCustomHeader:function(){return null},"data-e2e":"dialog"};var Ya=Ga,$a=function(){return $a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$a.apply(this,arguments)},Xa=function(e){var t=e.className,n=e.size,r=e.tag,o=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","size","tag"]),a=ct("sg-spacer","sg-spacer--size-".concat(n),t);return h.createElement(r,$a({className:a,"aria-hidden":"true"},ht(o)))};Xa.defaultProps={"data-e2e":"spacer",size:"expanded",tag:"div"};var Qa=Xa,Ja=function(){return Ja=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ja.apply(this,arguments)},Za=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},ei=function(){return ei=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ei.apply(this,arguments)},ti=st({styles:l.default,classes:{"sg-form-label":!0}}),ni=function(e){var t=e.children,n=e.tooltip,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","tooltip"]);return h.createElement(Gn,ei({color:"dark",size:"small",align:"left",weight:"medium",padding:t?["inherit","inherit","xx-small","inherit"]:"none",tag:"span",className:ti},r),t,n&&h.createElement(Nn,{className:"sg-form-label-tooltip",name:"information",size:"12",color:"dark",tooltip:n,tabIndex:null}))},ri=["success","error","warning","hint"],oi=function(){return ri},ai=function(){return ai=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ai.apply(this,arguments)},ii=function(e){var t=e.validationMessageTemplate,n=e.validationMessage,r=e.state,o=e.className,a=e.focused,i=e.showValidation,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["validationMessageTemplate","validationMessage","state","className","focused","showValidation"]),c=[{class:"sg-validation--",props:oi(),selected:r}],s=o?"".concat(o," ").concat(o,"-").concat(r):"",f=a&&"error"===r,p=st({styles:u.default,classes:ai({"sg-validation":!0,"sg-validation--focused":a,"sg-validation--error-focused":f,"sg-validation--error-visible":i},ft(c)),className:s});if(!n&&!t)return null;if(t)return h.createElement("div",ai(ai({className:p},l),{"data-e2e":l["data-e2e"]}),t());var d="error"===r,m=st({styles:u.default,classes:{"sg-validation-icon":!0}});return h.createElement("div",ai(ai({className:p},l),{"data-e2e":l["data-e2e"]}),d&&h.createElement(Nn,{name:"error-attention",height:"13",width:"13",className:m,color:f?"white":"error"}),h.createElement("span",null,n))};ii.defaultProps={state:"hint","data-e2e":"validation"};var li=ii,ui=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ci=function(){return ci=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ci.apply(this,arguments)},si=Object.defineProperty,fi=function(e,t,n){return function(e,t,n){t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},pi=function(e){var t=function(t){function n(){var e=t.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return fi(e,"state",{isFocused:!1,debounce:null,props:{validationMessage:null,validationMessageTemplate:null}}),fi(e,"debouncedTimerId",null),fi(e,"setDebouncedState",(function(){var t=e.props,n=t.state,r=t._enableDebounce;e.debouncedTimerId&&clearTimeout(e.debouncedTimerId);var o={props:{validationMessage:e.props.validationMessage,validationMessageTemplate:e.props.validationMessageTemplate}};r&&e.state.debounce&&"error"===n?e.debouncedTimerId=setTimeout((function(){return e.setState(o)}),500):e.setState(o)})),fi(e,"onBlurHandler",(function(t){e.setState({isFocused:!1}),e.props.onBlur&&e.props.onBlur(t)})),fi(e,"onFocusHandler",(function(t){e.setState({isFocused:!0}),e.props.onFocus&&e.props.onFocus(t)})),fi(e,"onKeyDownHandler",(function(t){e.setState({debounce:!0}),e.props.onKeyDown&&e.props.onKeyDown(t)})),e}return ui(n,t),n.prototype.componentDidMount=function(){this.setDebouncedState()},n.prototype.componentDidUpdate=function(e){this.props.value===e.value&&this.props.state===e.state&&this.props.validationMessage===e.validationMessage||this.setDebouncedState()},n.prototype.render=function(){var t=this.props,n=t.state,r=t.size,o=t.style,a=t.className,i=t.label,l=t.fieldClassName,u=t.tag,s=t.wrapperClassName,f=t.validationClassName,p=t.labelTooltip,d=t.forwardedRef,m=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["state","size","style","className","label","fieldClassName","tag","wrapperClassName","validationClassName","labelTooltip","forwardedRef"]),y=this.state.props,g=y.validationMessage,v=y.validationMessageTemplate,b=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Object.entries(e).filter((function(e){var n=Za(e,1)[0];return!t.includes(n)})).reduce((function(e,t){var n,r=Za(t,2),o=r[0],a=r[1];return Ja(Ja({},e),((n={})[o]=a,n))}),{})}(m,"validationMessage","validationMessageTemplate"),w=st({styles:c.default,classes:{"sg-field-label":!0},className:a}),E=[{class:"sg-field-wrapper--",props:Ft(),selected:r},{class:"sg-field-wrapper--",props:oi(),selected:n}],O=function(e){return e&&["error","warning"].includes(e)}(n),_=(this.state.isFocused||O)&&(g||v),S=ci({"sg-field-wrapper":!0,"sg-field-wrapper--readonly":m.readOnly,"sg-field-wrapper--disabled":m.disabled,"sg-field-wrapper--focused":this.state.isFocused,"sg-field-wrapper--has-validation":_,"sg-field-wrapper--error-focused":this.state.isFocused&&"error"===n},ft(E)),x=st({styles:c.default,classes:S,className:s}),k=st({styles:c.default,classes:{"sg-field":!0},className:l});return h.createElement(u,{className:w,style:o,"data-disabled":m.disabled,"data-e2e":"".concat(m["data-e2e"],"-label")},h.createElement(ni,{tooltip:p},i),h.createElement("span",{className:x},h.createElement(e,ci(ci({},b),{ref:d,size:r,state:n,className:k,onFocus:this.onFocusHandler,onBlur:this.onBlurHandler,onKeyDown:this.onKeyDownHandler,hasValidationMessage:_}))),h.createElement(li,{"aria-live":"polite",validationMessageTemplate:v,validationMessage:g,state:n,className:f,focused:this.state.isFocused,showValidation:O}))},n}(h.Component);return fi(t,"defaultProps",{_enableDebounce:!0,size:"medium",tag:"label","data-e2e":"form-field"}),h.forwardRef((function(e,n){return h.createElement(t,ci(ci({},e),{forwardedRef:n}))}))};pi.displayName="withFormField";var di=pi,hi=function(){return hi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hi.apply(this,arguments)},mi=function(e){var t=e.addonType,n=e.addonClasses,r=e.device,o=e.numberOfCharactersToTrim,a=e.onMouseEnter,i=e.onMouseLeave,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["addonType","addonClasses","device","numberOfCharactersToTrim","onMouseEnter","onMouseLeave"]),u=r&&r.isPhone?12:18,c=o||u,f=t.length>=c,p=st({styles:s.default,classes:{"sg-input-text-truncate":f}});return h.createElement("div",{key:"".concat(t),className:n,onMouseEnter:function(e){a&&f&&a(e)},onMouseLeave:function(e){i&&f&&i(e)},"data-e2e":e["data-e2e"]},f&&h.createElement("span",hi({},l)),h.createElement("span",{className:p},t))};mi.defaultProps={"data-e2e":"addon"};var yi=En(mi),gi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),vi=function(){return vi=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},vi.apply(this,arguments)},bi=Object.defineProperty,wi=function(e,t,n){return function(e,t,n){t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Ei="prefix",Oi="suffix",_i="password",Si=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return wi(t,"state",{isPasswordVisible:!1}),wi(t,"getAddonTemplate",(function(e){var n=t.props,r=n.type,o=n.forceAddonClass,a=t.getAddonProps(e,o),i=a.addon,l=a.addonTypeIsString,u=a.addonClasses,c=t.props.disableTogglePassword,f=r===_i&&e===Oi&&!c;if(!i&&!f)return null;if(i&&l)return h.createElement(yi,{key:e,addonType:i,addonClasses:u,tooltip:i});var p=st({styles:s.default,classes:{"sg-input-addon__array":!0}});return i&&i.map?h.createElement("div",{className:p},i.map((function(t,n){return h.createElement("span",{key:"".concat(e,"-").concat(n),className:u},t)}))):h.createElement("span",{key:e,className:u},f&&h.createElement(Ln,{icon:t.state.isPasswordVisible?"eye":"eye-cross",size:"small",onClick:t.togglePasswordVisibility,"data-e2e":t.state.isPasswordVisible?"password-hide":"password-show",role:"switch","aria-label":"show password","aria-checked":t.state.isPasswordVisible}),i&&h.createElement(Qa,{size:"xx-small"}),i)})),wi(t,"togglePasswordVisibility",(function(e){e.preventDefault(),t.setState({isPasswordVisible:!t.state.isPasswordVisible})})),wi(t,"handleKeyUp",(function(e){var n=t.props,r=n.onPressEnter,o=n.onKeyUp;e.key===xt.ENTER&&r&&r(),o&&o(e)})),t}return gi(t,e),t.prototype.componentDidUpdate=function(e,t,n){e.visiblePassword!==this.props.visiblePassword&&this.setState({isPasswordVisible:this.props.visiblePassword})},t.prototype.getAddonProps=function(e,t){var n=this.props[e],r="string"==typeof n,o=[{class:"sg-input-addon__size--",props:Ft(),selected:this.props.size}],a=vi({"sg-input-addon":!0,"sg-input-addon--prefix":Ei===e,"sg-input-addon--suffix":Oi===e,"sg-input-addon--has-validation":this.props.hasValidationMessage,"sg-input-addon--component":t&&"string"!=typeof n,"sg-input-addon--component-suffix":Oi===e&&t&&"string"!=typeof n,"sg-input-addon--component-prefix":Ei===e&&t&&"string"!=typeof n},ft(o));return{addon:n,addonTypeIsString:r,addonClasses:st({styles:s.default,classes:a})}},t.prototype.render=function(){var e=this.props,t=e.onRefsReady,n=e.type,r=e.className,o=e.tabIndex,a=e["data-e2e"],i=e["data-component"],l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["onRefsReady","type","className","tabIndex","data-e2e","data-component"]),u=this.state.isPasswordVisible?"text":_i;return h.createElement(h.Fragment,null,this.getAddonTemplate(Ei),h.createElement("input",vi(vi({className:r,"data-e2e":a,"data-component":i,tabIndex:o},ht(l)),{onKeyUp:this.handleKeyUp.bind(this),ref:function(e){t&&t(e)},type:n===_i?u:n})),this.getAddonTemplate(Oi))},t}(h.Component);wi(Si,"defaultProps",{disableTogglePassword:!1,forceAddonClass:!0,"data-e2e":"input","data-component":"input",tabIndex:0});var xi=di(Si),ki="---daySplitter",Ci="---WeekSplitter",Pi="DAYS_CALENDAR",Ti="MONTHS_CALENDAR",Ni="YEARS_CALENDAR",ji=["es-AR","en-BZ","en-BO","pt-BR","en-CA","es-CL","zh-CN","es-CO","es-CR","es-DO","es-EC","es-SV","es-GT","es-HN","zh-HK","he_IL","en-JM","ja","ja-JP","","","es-MX","es-NI","es-PA","es-PE","en-PH","es-PR","en-za","ko_KR","zh-TW","en-US","es-VE","en"],Ai=["ps_AF","ar_DZ","ar-BH","ar-EG","fa_IR","ar-IQ","ar-JO","ar-KW","ar-LY","ar-OM","ar-QA","ar-SA","ar-SY","ar-AE","ar-YE"],Ri=function(e){var t=e.children,n=e.isActive,r=e.isDisabled,o=e.isCurrent,a=e.onClick,i=e["data-e2e"],l=e["data-index"],u=ct("sg-date-picker-entity",r&&"sg-date-picker-entity--disabled",o&&"sg-date-picker-entity--current",n&&"sg-date-picker-entity--selected");return h.createElement("div",{className:u,tabIndex:n?0:-1,"data-active":n,"data-datepicker-entity":"true","data-e2e":i,"data-index":l,onClick:a},t)};Ri.displayName="DatePickerEntity";var Ii=function(){return Ii=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ii.apply(this,arguments)},Di=h.useEffect,Mi=h.useRef,Fi=function(e){var t=e.children,n=e.handleKeyDown,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","handleKeyDown"]),o=Mi(null);return Di((function(){var e=o.current.querySelector("[data-active=true]");e?e.focus():Fr(zr(o.current))}),[t]),h.createElement(ur,Ii(Ii({ref:o,gap:"none",justifyItems:"center"},r),{onKeyDown:n}),t)};Fi.displayName="DatePickerEntityWrapper";var Li=function(){return Li=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Li.apply(this,arguments)},Ui={behavior:"smooth",block:"end",inline:"nearest"},zi=function(e,t){void 0===t&&(t={}),e&&e.scrollIntoView(Li(Li({},Ui),t))},Vi=h.useEffect,Bi=h.useRef,Hi=function(e){var t=e.children,n=e.isActive,r=e.onClick,o=Bi(null);Vi((function(){n&&(o.current.focus(),zi(o.current,{block:"center"}))}),[n]);var a=ct("sg-date-picker-year-entity",n&&"sg-date-picker-year-entity--selected");return h.createElement("span",{className:"sg-date-picker-year-entity-wrapper",tabIndex:n?0:-1,ref:o},h.createElement(Gn,{className:a,color:"dark",weight:"bold",onClick:r},t))};Hi.displayName="DatePickerYearEntity";var Wi=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ki=function(){return Ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ki.apply(this,arguments)},qi=Object.defineProperty,Gi=function(e,t,n){return function(e,t,n){t in e?qi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Yi=function(e){function t(t){var n=e.call(this,t)||this;Gi(n,"handleDayNavigation",(function(e){var t=e.dayAccumulator,r=void 0===t?0:t,o=e.monthAccumulator,a=void 0===o?0:o,i=e.yearAccumulator,l=void 0===i?0:i,u=n.state.selectedDate,c=new Date(u),s=c.getDate(),f=c.getMonth(),p=c.getFullYear(),d=s+r<1,h=f+a<0,m=new Date(p,f+1,0).getDate(),y=s+r>m,g=f+a>11,v=y?s+r-m:s+r,b=y?f+a+1:f+a;n.handleDateSelection({day:v,month:b,year:p+l}),d||h?n.handleStartNavigation():(y||g)&&n.handleEndNavigation()})),Gi(n,"handleDayViewKeyboardNavigation",(function(e){if(!kt(e)&&!Ct(e)){var t=n.state,r=t.calendarMonth,o=t.calendarYear,a=n.getSelectedMonth()===r&&n.getSelectedYear()===o,i=document.activeElement&&document.activeElement.getAttribute("data-index");if(a||!i)switch(e.key){case xt.SPACE:case xt.ENTER:return void n.handleDateChange();case xt.UP:return void n.handleDayNavigation({dayAccumulator:-7});case xt.RIGHT:return void n.handleDayNavigation({dayAccumulator:1});case xt.DOWN:return void n.handleDayNavigation({dayAccumulator:7});case xt.LEFT:return void n.handleDayNavigation({dayAccumulator:-1});default:return}else n.handleDateSelection({day:Number(i),month:r,year:o})}})),Gi(n,"handleMonthViewKeyboardNavigation",(function(e){if(!kt(e)&&!Ct(e)){var t=n.state.calendarYear,r=n.getSelectedYear()===t,o=document.activeElement&&document.activeElement.getAttribute("data-index");if(r||!o)switch(e.key){case xt.SPACE:case xt.ENTER:return void n.setState({calendarType:n.state.defaultType,calendarMonth:n.getSelectedMonth(),calendarYear:n.getSelectedYear()});case xt.UP:return void n.handleDayNavigation({monthAccumulator:-3});case xt.RIGHT:return void n.handleDayNavigation({monthAccumulator:1});case xt.DOWN:return void n.handleDayNavigation({monthAccumulator:3});case xt.LEFT:return void n.handleDayNavigation({monthAccumulator:-1});default:return}else n.handleDateSelection({month:o,year:t})}})),Gi(n,"handleYearViewKeyboardNavigation",(function(e){if(!kt(e)&&!Ct(e))switch(e.preventDefault(),e.stopPropagation(),e.key){case xt.SPACE:case xt.ENTER:return void n.setState({calendarType:n.state.defaultType,calendarYear:n.getSelectedYear()});case xt.DOWN:case xt.RIGHT:return void n.handleDayNavigation({yearAccumulator:1});case xt.UP:case xt.LEFT:return void n.handleDayNavigation({yearAccumulator:-1});default:return}}));var r=new Date;return r.setHours(0),r.setMinutes(0),r.setSeconds(0),n.state={defaultType:Pi,calendarType:Pi,currentDay:r.getDate(),currentMonth:r.getMonth(),currentYear:r.getFullYear(),calendarMonth:r.getMonth(),calendarYear:r.getFullYear(),selectedDate:r.getTime(),inputValue:"",isDatePickerVisible:!1,triggerDialogClose:!1},n.handleStartNavigation=n.handleStartNavigation.bind(n),n.handleEndNavigation=n.handleEndNavigation.bind(n),n.handleDateChange=n.handleDateChange.bind(n),n.handleDateSelection=n.handleDateSelection.bind(n),n.openDatePicker=n.openDatePicker.bind(n),n.closeDatePicker=n.closeDatePicker.bind(n),n.resetSelectedDate=n.resetSelectedDate.bind(n),n.renderDayEntity=n.renderDayEntity.bind(n),n.renderMonthEntity=n.renderMonthEntity.bind(n),n.renderDatePickerHeader=n.renderDatePickerHeader.bind(n),n}return Wi(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.value,n=e.disableDayPicker,r=this.state.selectedDate;t&&r!==t&&this.setStateFromValue(t),n&&this.setState({defaultType:Ti,calendarType:Ti})},t.prototype.componentDidUpdate=function(e){if(e.disableDayPicker!==this.props.disableDayPicker&&(this.props.disableDayPicker?this.setState({defaultType:Ti,calendarType:Ti}):this.setState({defaultType:Pi,calendarType:Pi})),""===this.props.value&&""!==this.state.inputValue)return this.setState({inputValue:""});e.value!==this.props.value&&this.setStateFromValue(this.props.value)},t.prototype.getTranslation=function(){return Object.assign({},Yi.defaultProps.translation,this.props.translation)},t.prototype.getUTCFormatterDate=function(e){return Math.floor(e/1e3)},t.prototype.setStateFromValue=function(e){var t=e?new Date(1e3*parseInt(e,10)):new Date;if("string"==typeof e||null===e)return this.setState({inputValue:""}),void this.resetSelectedDate();this.setState({selectedDate:t.getTime(),calendarMonth:t.getMonth(),calendarYear:t.getFullYear(),inputValue:t.getTime()})},t.prototype.getStartingWeekDayIndex=function(){var e=this.props.locales;return Ai.includes(e)?5:ji.includes(e)?6:0},t.prototype.getWeeksInMonth=function(){var e=this,t=this.state,n=t.calendarMonth,r=t.calendarYear;return Fa(n,r).map((function(t){return t.getDay()===e.getStartingWeekDayIndex()?"".concat(t).concat(ki).concat(Ci):"".concat(t).concat(ki)})).join("").split(Ci).filter(Boolean).map((function(e,t){var n=e.split(ki).filter(Boolean),r=Array(7-n.length);return 0===t?r.fill(null).concat(n):n.concat(r.fill(null))}))},t.prototype.getInputDateFromLocales=function(){var e=this.props.locales;return function(e,t){void 0===t&&(t=navigator.language);var n=Da(e);if(!n)return null;var r=Intl.DateTimeFormat(t,{day:"numeric"}).format(n).padStart(2,"0"),o=Intl.DateTimeFormat(t,{month:"numeric"}).format(n).padStart(2,"0"),a=Intl.DateTimeFormat(t,{year:"numeric"}).format(n);return Aa.includes(t)?"".concat(o,"/").concat(r,"/").concat(a):Ra.includes(t)?"".concat(a,"/").concat(o,"/").concat(r):"".concat(r,"/").concat(o,"/").concat(a)}(this.state.inputValue,e)},t.prototype.getHeaderDateFromLocales=function(){var e=this.props,t=e.locales,n=e.hideDayInHeader,r=e.translation;return function(e){var t=e.date,n=e.locales,r=void 0===n?navigator.language:n,o=e.translation,a=void 0===o?{abbreviatedMonthsNames:Na}:o,i=e.hideDay,l=void 0!==i&&i,u=e.hideYear,c=void 0!==u&&u,s=Da(t),f=l?"":s.getDate(),p=s.getMonth(),d=c?"":s.getFullYear();if(ja.includes(r)){var h=c?"":", ".concat(d);return"".concat(a.abbreviatedMonthsNames[p]," ").concat(f).trim()+h}return"".concat(f," ").concat(a.abbreviatedMonthsNames[p]," ").concat(d).trim()}({date:new Date(this.state.selectedDate),locales:t,translation:{abbreviatedMonthsNames:r.abbreviatedMonthsNames},hideDay:n})},t.prototype.getSelectedMonth=function(){var e=this.state.selectedDate;return new Date(e).getMonth()},t.prototype.getSelectedYear=function(){var e=this.state.selectedDate;return new Date(e).getFullYear()},t.prototype.closeDatePicker=function(){this.setState({isDatePickerVisible:!1,triggerDialogClose:!1,calendarType:this.state.defaultType})},t.prototype.openDatePicker=function(){this.props.disabled||this.setState({isDatePickerVisible:!0})},t.prototype.handleStartNavigation=function(){var e=this.state,t=e.calendarType,n=e.calendarMonth,r=e.calendarYear;t===Pi&&this.setState({calendarMonth:0===n?11:n-1,calendarYear:0===n?r-1:r}),t===Ti&&this.setState({calendarYear:this.state.calendarYear-1})},t.prototype.handleEndNavigation=function(){var e=this.state,t=e.calendarType,n=e.calendarMonth,r=e.calendarYear;t===Pi&&this.setState({calendarMonth:11===n?0:n+1,calendarYear:11===n?r+1:r}),t===Ti&&this.setState({calendarYear:r+1})},t.prototype.handleDateSelection=function(e){var t=e.year,n=e.month,r=e.day,o=e.hour,a=e.minute,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["year","month","day","hour","minute"]),l=new Date(this.state.selectedDate),u=void 0!==t?t:l.getFullYear(),c=void 0!==n?n:l.getMonth(),s=void 0!==r?r:l.getDate(),f=void 0!==o?o:l.getHours(),p=void 0!==a?a:l.getMinutes(),d=new Date(u,c+1,0).getDate();s>d&&(s=d),this.setState(Ki({selectedDate:new Date(u,c,s,f,p).getTime()},i))},t.prototype.handleDateChange=function(){var e=this.props.onChange,t=this.state.selectedDate,n=this.getUTCFormatterDate(t);this.setState({inputValue:t,triggerDialogClose:!0},(function(){return e(n)}))},t.prototype.shouldDisableSubmitButton=function(){var e=this.state,t=e.calendarMonth,n=e.calendarYear,r=this.props,o=r.disableDayPicker,a=r.shouldDisableDate,i=r.shouldDisableMonth,l=this.state.selectedDate;if(o){var u=i(Fa(t,n));return[0,1,2,3,4,5,6,7,8,9,10,11].map((function(e){return i(Fa(e,n))})).every((function(e){return!0===e}))&&u}return a(this.getUTCFormatterDate(l))},t.prototype.resetSelectedDate=function(){var e=new Date;e.setHours(0),e.setMinutes(0),e.setSeconds(0),this.setState({calendarMonth:e.getMonth(),calendarYear:e.getFullYear(),selectedMinute:e.getMinutes(),selectedHour:e.getHours(),selectedDay:e.getDate(),selectedMonth:e.getMonth(),selectedYear:e.getFullYear(),selectedDate:e})},t.prototype.renderCalendarNavigation=function(){var e=this,t=this.state,n=t.calendarType,r=t.calendarMonth,o=t.calendarYear,a=this.props.disableDayPicker,i=this.getTranslation();return h.createElement("nav",{className:"sg-date-picker__nav","data-e2e":"datepicker-navigation"},h.createElement(Ln,{"data-e2e":"datepicker-start-navigation",icon:"arrow-left-thin",tabIndex:null,onClick:this.handleStartNavigation}),n!==Ti&&h.createElement(mo,{disabled:a,"data-e2e":"datepicker-navigation-months",style:{textTransform:"camelcase"},onClick:function(){return e.setState({calendarType:Ti})}},i.monthsName[r]),h.createElement(mo,{"data-e2e":"datepicker-navigation-years",onClick:function(){return e.setState({calendarType:Ni})}},o),h.createElement(Ln,{"data-e2e":"datepicker-end-navigation",icon:"arrow-right-thin",tabIndex:null,onClick:this.handleEndNavigation}))},t.prototype.renderDayEntity=function(e,t,n){var r=this,o=this.state.selectedDate,a=this.props,i=a.shouldDisableDate,l=a.locales;if(!e)return h.createElement("div",{key:t,className:"sg-date-picker-entity sg-date-picker-entity--disabled"});var u=new Date(e),c=new Intl.DateTimeFormat(l).format(new Date),s=new Intl.DateTimeFormat(l).format(o),f=new Intl.DateTimeFormat(l).format(u),p=f===c,d=f===s,m=i(this.getUTCFormatterDate(u));return h.createElement(Ri,{key:t,isActive:d,isCurrent:p,isDisabled:c&&m,"data-index":u.getDate(),"data-e2e":"datepicker-day",onClick:function(){return r.handleDateSelection({day:u.getDate(),month:u.getMonth(),year:u.getFullYear()})}},u.getDate())},t.prototype.renderDaysCalendar=function(){var e=this.getTranslation().abbreviatedDaysNames,t=this.getStartingWeekDayIndex(),n=[].concat(e.slice(t,7)).concat(e.slice(0,t)),r=this.getWeeksInMonth().reduce((function(e,t){return e.concat(t)}),[]);return h.createElement("div",{className:"sg-date-picker__content sg-date-picker__content--grid-view sg-date-picker__content--fixed-height","data-e2e":"datepicker-days-calendar"},this.renderCalendarNavigation(),h.createElement("div",{className:"sg-date-picker-calendar__row"},n.map((function(e,t){return h.createElement("div",{key:t,className:"sg-date-picker-entity sg-date-picker-entity--non-selectable","data-e2e":"datepicker-day-name"},e)}))),h.createElement(Fi,{xs:"7",handleKeyDown:this.handleDayViewKeyboardNavigation},r.map(this.renderDayEntity)))},t.prototype.renderMonthEntity=function(e,t){var n=this,r=this.state,o=r.currentMonth,a=r.currentYear,i=r.calendarYear,l=this.props.shouldDisableMonth,u=t===o&&a===i,c=this.getSelectedMonth()===t&&this.getSelectedYear()===i,s=Fa(t,i);return h.createElement(Ri,{key:t,isActive:c,isCurrent:u,isDisabled:l(s),"data-index":t,"data-e2e":"datepicker-month-entity",onClick:function(){n.handleDateSelection({month:t,year:i,calendarType:n.state.defaultType,calendarMonth:t})}},e)},t.prototype.renderMonthsCalendar=function(){var e=this.getTranslation().abbreviatedMonthsNames;return h.createElement("div",{className:"sg-date-picker__content sg-date-picker__content--grid-view sg-date-picker__content--fixed-height","data-e2e":"datepicker-months-calendar"},this.renderCalendarNavigation(),h.createElement(Fi,{xs:"3",handleKeyDown:this.handleMonthViewKeyboardNavigation},e.map(this.renderMonthEntity)))},t.prototype.renderYearsCalendar=function(){var e=this,t=this.getSelectedYear(),n=t-50,r=Array(t+51-n).fill(null).map((function(e,t){return n+t}));return h.createElement("div",{className:"sg-date-picker__content sg-date-picker__content--scrollable sg-date-picker__content--fixed-height","data-e2e":"datepicker-years-calendar",onKeyDown:this.handleYearViewKeyboardNavigation},r.map((function(n){return h.createElement(Hi,{key:n,isActive:t===n,onClick:function(){e.handleDateSelection({year:n,calendarType:e.state.defaultType,calendarYear:n})}},n)})))},t.prototype.renderFooter=function(){var e=this.getTranslation(),t=this.shouldDisableSubmitButton();return h.createElement(h.Fragment,null,h.createElement(mo,{"data-e2e":"datepicker-cancel-button",style:{marginLeft:"auto"},onClick:this.closeDatePicker},e.cancelButton),h.createElement(mo,{"data-e2e":"datepicker-confirm-button",color:"primary",disabled:t,onClick:this.handleDateChange},e.okButton))},t.prototype.renderInput=function(){var e=this,t=this.state.inputValue,n=this.props,r=n.disabled,o=n.renderInputDateValue,a={label:this.props.label,placeholder:this.props.placeholder,size:this.props.size,validationMessage:this.props.validationMessage,validationMessageTemplate:this.props.validationMessageTemplate,state:this.props.state,"data-e2e":this.props["data-e2e-input"],disabled:this.props.disabled,readOnly:this.props.readOnly},i="";t&&(i=o?o(t):this.getInputDateFromLocales());var l=ct("sg-date-picker__input",r&&"sg-date-picker__input--disabled"),u=ct("sg-date-picker__field",r&&"sg-date-picker__field--disabled");return h.createElement(xi,Ki({className:l,fieldClassName:u,value:i,prefix:h.createElement(Nn,{name:"generic-calendar",color:"primary",size:"18","aria-hidden":!0}),onClick:this.openDatePicker,onKeyDown:function(t){t.key!==xt.SPACE&&t.key!==xt.ENTER||e.openDatePicker()},role:"button","aria-label":i},a))},t.prototype.renderDatePickerHeader=function(){var e=this.state.calendarType,t=this.props.disableTodayButton,n=this.getTranslation(),r=!t&&e===Pi;return h.createElement(wa,{className:"sg-date-picker__header",align:"center",justify:"space-between",density:"comfortable","data-e2e":"datepicker-header"},h.createElement(er,{level:"3",color:"light",density:"cozy",weight:"medium"},this.getHeaderDateFromLocales()),r&&h.createElement(mo,{"data-e2e":"datepicker-today-button",color:"neutral",onClick:this.resetSelectedDate},n.todayButton))},t.prototype.renderDatePickerDialog=function(){var e=this.state,t=e.calendarType,n=e.isDatePickerVisible,r=e.triggerDialogClose,o=this.props.className;if(!n&&!r)return null;var a=ct("sg-date-picker",o);return h.createElement(Ya,{className:a,density:"small",size:"small",autoFocus:!1,triggerClose:r,footer:this.renderFooter(),onCloseHandler:this.closeDatePicker,renderCustomHeader:this.renderDatePickerHeader,"data-e2e":this.props["data-e2e"]},t===Pi&&this.renderDaysCalendar(),t===Ti&&this.renderMonthsCalendar(),t===Ni&&this.renderYearsCalendar())},t.prototype.render=function(){return h.createElement(h.Fragment,null,this.renderInput(),this.renderDatePickerDialog())},t}(h.Component),$i=Yi;Gi($i,"defaultProps",{disableDayPicker:!1,disableTodayButton:!1,hideDayInHeader:!1,placeholder:"Select a date",locales:navigator.language||"en-US",shouldDisableDate:function(){return!1},shouldDisableMonth:function(){return!1},onChange:function(e){return e},translation:{backButton:"Back",cancelButton:"Cancel",okButton:"Ok",todayButton:"Today",abbreviatedDaysNames:["M","T","W","T","F","S","S"],abbreviatedMonthsNames:Na,monthsName:["January","February","March","April","May","June","July","August","September","October","November","December"]},"data-e2e":"date-picker","data-e2e-input":"datepicker-input"});var Xi,Qi=$i,Ji={addEventsToDocument:function(e){Object.keys(e).forEach((function(t){document.addEventListener(t,e[t],!1)}))},removeEventsFromDocument:function(e){Object.keys(e).forEach((function(t){document.removeEventListener(t,e[t],!1)}))},getMousePosition:function(e){return{x:e.pageX-(window.scrollX||window.pageXOffset),y:e.pageY-(window.scrollY||window.pageYOffset)}},getTouchPosition:function(e){return{x:e.touches[0].pageX-(window.scrollX||window.pageXOffset),y:e.touches[0].pageY-(window.scrollY||window.pageYOffset)}}},Zi=Ji,el={closeMenu:function(){return{isOpen:!1,searchInputValue:""}},getFilteredOptions:function(e,t){return function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(e.options),!1)},getPlaceholder:function(e,t){if(0===t.selectedOptions.length)return e.placeholder;var n=t.selectedOptions.map((function(t){return t[e.optionLabel]}));return e.template?e.template(t.selectedOptions[0],{isPlaceHolder:!0}):n.join(", ")},getSelectionClass:function(e,t){return e?t:null},handleClick:function(e,t,n,r){if(n){var o=[n];return e.onChange(n[e.optionValue],n,o),{selectedOptions:o,preselectedOptionIndex:Number.isInteger(r)?r:t.preselectedOptionIndex}}},handleCreateChip:function(){return{}},handleKeyDownEnter:function(e){e.preventDefault(),e.stopPropagation()},handleKeyDownLeftRight:function(){return null},handleKeyDownAll:function(e){return e},renderHint:function(e,t){return e?null:t},setSelectedValue:function(e,t){var n=e.options,r=e.optionValue,o=e.selectedValue;if(""===o||null==o)return{selectedOptions:[],preselectedOptionIndex:0};var a=n.findIndex((function(e){return e[r]===o}));return{selectedOptions:[].concat(n[a]).filter(Boolean),preselectedOptionIndex:a}},shouldCreateChip:function(e,t){return!1},shouldCreateChipOnInputBlur:function(e,t){return!1},shouldRemoveLastSelectedValue:function(e){return!1},configureChipCreation:function(e){return!1}},tl=el,nl=function(){return nl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nl.apply(this,arguments)},rl=nl(nl({},tl),{closeMenu:function(){return{isOpen:!1}},getPlaceholder:function(e,t){return e.placeholder},getSelectionClass:function(e,t){return null},handleClick:function(e,t,n,r){var o=[n];return n?e.onChange(n[e.optionValue],n,o):e.onChange(t.searchInputValue,null,null),{selectedOptions:n?o:t.selectedOptions,searchInputValue:n?n[e.optionLabel]:t.searchInputValue,preselectedOptionIndex:Number.isInteger(r)?r:t.preselectedOptionIndex}},handleKeyDownEnter:function(e,t){return t.onEnter(e,e.target.value)},handleKeyDownAll:function(e){return{isOpen:!0}},renderHint:function(e,t){return null},setSelectedValue:function(e,t){var n=e.options,r=e.optionValue,o=e.selectedValue;if(""===o||null==o)return{searchInputValue:o,selectedOptions:[],preselectedOptionIndex:0};var a=n.findIndex((function(e){return e[r]===o}));return{searchInputValue:o,selectedOptions:[].concat(n[a]).filter(Boolean),preselectedOptionIndex:a}}}),ol=function(){return ol=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ol.apply(this,arguments)},al=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},il=ol(ol({},tl),{closeMenu:function(){return{isOpen:!1,searchInputValue:"",preselectedOptionIndex:0,areAllChipsSelected:!1}},getFilteredOptions:function(e,t){var n=e.options,r=e.optionValue,o=t.selectedOptions.map((function(e){return e[r]}));return n.filter((function(e){return!o.includes(e[r])}))},getPlaceholder:function(e,t){return 0===t.selectedOptions.length?e.placeholder:t.selectedOptions.map((function(t){return t[e.optionLabel]})).join(", ")},handleClick:function(e,t,n,r){if(n){var o=al(al([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(t.selectedOptions),!1),[n],!1);return e.onChange(n[e.optionValue],n,o),{selectedOptions:o,preselectedOptionIndex:Number.isInteger(r)?r:t.preselectedOptionIndex}}},handleKeyDownEnter:function(e,t){return t.onEnter(e,e.target.value)},setSelectedValue:function(e,t){var n=e.options,r=e.optionValue,o=e.selectedValue;return""===o||null==o?{selectedOptions:[],preselectedOptionIndex:0}:{selectedOptions:(Array.isArray(o)?o:[o]).map((function(e){return n.find((function(t){return t[r]===e}))})),preselectedOptionIndex:0}},shouldRemoveLastSelectedValue:function(e){return!e.searchInputValue&&e.selectedOptions.length>0}}),ll=function(){return ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ll.apply(this,arguments)},ul=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},cl=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},sl=function(e,t,n){var r=n.trim().split(",").filter(Boolean).map((function(t){var n;return(n={})[e.optionLabel]=t.trim(),n[e.optionValue]=t.trim(),n})).filter((function(n){return!t.selectedOptions.find((function(t){return t[e.optionValue]===n[e.optionValue]}))})),o=cl(cl([],ul(t.selectedOptions),!1),ul(r),!1);return e.onChange(n,r,o),{selectedOptions:o}},fl=ll(ll(ll({},tl),il),{handleKeyDownEnter:function(e){e.preventDefault(),e.stopPropagation()},handleKeyDownLeftRight:function(e,t,n){if(e.preventDefault(),e.stopPropagation(),!t.isOpen){if(e.target===n){var r=zr(n,{isDirectionForward:!0});Fr(r)}nn({event:e,isDirectionForward:e.key===xt.RIGHT,onComponentFiltering:function(e){if(!n.contains(e))return!1;var t=e.getAttribute("data-component");return"chip"===t||"button"===t}})}},handleCreateChip:sl,renderHint:function(e,t){return null},setSelectedValue:function(e,t){var n=e.options,r=e.optionValue,o=e.optionLabel,a=e.selectedValue;return""===a||null==a?{selectedOptions:[],preselectedOptionIndex:0}:{selectedOptions:(Array.isArray(a)?a:[a]).map((function(e){var t;return n.find((function(t){return t[r]===e}))||((t={})[r]=e,t[o]=e,t)})),preselectedOptionIndex:0}},shouldCreateChip:function(e,t){return!!e.searchable&&""!==t&&" "!==t&&null!=t&&(!e.chipRegExp||e.chipRegExp.test(t))},shouldCreateChipOnInputBlur:function(e,t){return!!e.searchable&&""!==t&&" "!==t&&null!=t},shouldRemoveLastSelectedValue:function(e){return!e.searchInputValue&&e.selectedOptions.length>0},configureChipCreation:function(e,t,n,r){var o;switch(e.key){case xt.SPACE:var a=null==(o=e.target.value)?void 0:o.trim();return sl(t,n,a);case xt.COMMA:var i=e.target.value.replace(",","");return sl(t,n,i);case xt.ENTER:return e.preventDefault(),e.stopPropagation(),!r.length&&sl(t,n,e.target.value);default:return!1}}}),pl=fl,dl=function(){return dl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},dl.apply(this,arguments)},hl=dl({},tl),ml=function(){return ml=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ml.apply(this,arguments)},yl=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},gl=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},vl=function(e,t,n){var r=n.split(",").map((function(t){var n;return(n={})[e.optionLabel]=function(e){var t=e.match(/<([^<>]+)>/g);return t&&t.length?t.map((function(e){return e.replace(/^</,"").replace(/>$/,"")})).join(","):e}(t.toLocaleLowerCase().trim()),n[e.optionValue]=t.toLocaleLowerCase().trim(),n})).filter((function(n){return!t.selectedOptions.find((function(t){return t[e.optionValue]===n[e.optionValue]}))})),o=gl(gl([],yl(t.selectedOptions),!1),yl(r),!1);return e.onChange(n,r,o),{selectedOptions:o}},bl=ml(ml({},pl),{handleCreateChip:vl,configureChipCreation:function(e,t,n,r){var o=e.target.value&&e.target.value.trim();switch(e.key){case xt.SPACE:return vl(t,n,o);case xt.COMMA:var a=e.target.value.replace(",","");return vl(t,n,a);case xt.ENTER:return e.preventDefault(),e.stopPropagation(),!r.length&&vl(t,n,e.target.value);default:return!1}}}),wl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),El=Object.defineProperty,Ol=function(e,t,n){return function(e,t,n){t in e?El(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},_l="30px",Sl="40px",xl=function(e,t){var n=function(n){function r(e){var t=n.call(this,e)||this;return Ol(t,"strategy",null),Ol(t,"dropdownWrapper",null),Ol(t,"dropdown",null),Ol(t,"shadow",null),Ol(t,"componentRef",null),Ol(t,"componentNode",null),Ol(t,"optionsWrapper",null),Ol(t,"state",{isOpen:!1,searchInputValue:"",selectedOptions:[],preselectedOptionIndex:0,areAllChipsSelected:!1}),Ol(t,"preventBlur",!1),Ol(t,"onInputChange",(function(e){var n=t.props.normalizeInput(e.target.value);t.props.onType&&t.props.onType(n),t.setState({searchInputValue:n})})),Ol(t,"onInputBlur",(function(e){t.props.onBlur&&t.props.onBlur(e,t.state.searchInputValue),t.handleChipCreation(e.target.value,"shouldCreateChipOnInputBlur")})),Ol(t,"getPlaceholder",(function(){return t.strategy.getPlaceholder(t.props,t.state)})),Ol(t,"removeSelectedValue",(function(e){var n=t.state.selectedOptions,r=t.findOptionIndexByValue(e,n);if(r>=0){t.preventBlur=!0;var o=n[r],a=n.filter((function(e,t){return t!==r})),i=t.props,l=i.onChange,u=(i.onBlur,i.optionValue);t.setState({selectedOptions:a,preselectedOptionIndex:0}),l(o[u],o,a)}})),Ol(t,"openMenu",(function(e){e.stopPropagation(),t.setState({isOpen:!0},(function(){return t.handleOptionMarking(!t.props.searchable)}))})),Ol(t,"closeMenu",(function(e){e&&(e.stopPropagation(),e.preventDefault()),t.setState(t.strategy.closeMenu());var n=e&&t.dropdownWrapper&&t.dropdownWrapper.current&&t.dropdownWrapper.current.contains(e.relatedTarget),r=t.dropdown&&t.dropdown.current;n&&r&&r.focus()})),Ol(t,"toggleMenu",(function(e){return e.stopPropagation(),t.state.isOpen?t.closeMenu(e):t.openMenu(e)})),Ol(t,"handleChipCreation",(function(e,n){if(void 0===n&&(n="shouldCreateChip"),t.strategy[n](t.props,e)){var r=t.strategy.handleCreateChip(t.props,t.state,e).selectedOptions;t.setState({selectedOptions:r,searchInputValue:"",preselectedOptionIndex:0,areAllChipsSelected:!1})}})),Ol(t,"handleBlur",(function(e){if(e.stopPropagation(),t.preventBlur)t.preventBlur=!1;else if(t.dropdownWrapper.current){var n=t.dropdownWrapper.current.contains(e.relatedTarget),r=t.dropdownWrapper.current.contains(document.activeElement);n||r||(t.props.onBlur(e,t.state.searchInputValue),t.closeMenu(e))}})),Ol(t,"handleOptionMarking",(function(e){void 0===e&&(e=!0);var n=t.state.preselectedOptionIndex,r=t.optionsWrapper&&t.optionsWrapper.current;if(r){r.scrollTop=parseInt(Sl,10)*n;var o=r.querySelector('[data-navigation="'.concat(n,'"]'));o&&e&&o.focus()}})),Ol(t,"onBackSpacePress",(function(e,n,r){var o=function(e,t){return e.map((function(e){return e[t]})).findIndex((function(e){return e===document.activeElement.innerText}))}(e,n);if(o>-1){var a=e[o]&&e[o][r];return t.removeSelectedValue(a),void t.dropdown.current.focus()}var i=e[e.length-1]&&e[e.length-1][r];t.removeSelectedValue(i)})),Ol(t,"onVKeyPress",(function(e){(e.metaKey||e.ctrlKey)&&setTimeout((function(){t.handleChipCreation(t.state.searchInputValue,"shouldCreateChipOnInputBlur")}),100)})),Ol(t,"handleKeyDown",(function(e){var n=t.getOptionsForRender(),r=t.props,o=r.optionLabel,a=r.optionValue,i=t.state,l=i.areAllChipsSelected,u=i.selectedOptions;switch(e.key){case xt.TAB:t.state.isOpen&&t.closeMenu(e);break;case xt.ESCAPE:t.setState(t.strategy.closeMenu());break;case xt.UP:case xt.DOWN:e.preventDefault(),e.stopPropagation();break;case xt.LEFT:case xt.RIGHT:t.strategy.handleKeyDownLeftRight(e,t.state,t.dropdown.current);break;case xt.ENTER:n.length||t.strategy.handleKeyDownEnter(e,t.props);break;case xt.BACKSPACE:t.strategy.shouldRemoveLastSelectedValue(t.state)&&t.onBackSpacePress(u,o,a);break;case xt.A:(e.metaKey||e.ctrlKey)&&t.setState({areAllChipsSelected:!0});break;case xt.C:if((e.metaKey||e.ctrlKey)&&l)(function(e,t){void 0===t&&(t=function(e){return null});var n=document.createElement("textarea");if(n.style.cssText="position: absolute; z-index: -9999; font-size: 16px",n.contentEditable="true",n.readOnly=!1,n.value=e,document.body.appendChild(n),navigator.userAgent.match(/ipad|ipod|iphone/i)){var r=document.createRange();r.selectNodeContents(n);var o=window.getSelection();o.removeAllRanges(),o.addRange(r),n.setSelectionRange(0,999999)}else n.select();var a=document.execCommand("copy");document.body.removeChild(n),t(a)})(u.map((function(e){return e[o]})).join(", ")),t.setState({areAllChipsSelected:!1});break;case xt.V:t.onVKeyPress(e);break;default:t.setState(t.strategy.handleKeyDownAll(t.state))}})),Ol(t,"configureChipCreation",(function(e,n){if(void 0===n&&(n="shouldCreateChip"),t.strategy[n](t.props,e)){var r=t.getOptionsForRender(),o=t.strategy.configureChipCreation(e,t.props,t.state,r).selectedOptions;o&&t.setState({selectedOptions:o,searchInputValue:"",preselectedOptionIndex:0,areAllChipsSelected:!1})}})),Ol(t,"handleKeyUp",(function(e){var n=t.getOptionsForRender(),r=t.state.preselectedOptionIndex;if(t.state.isOpen){var o=t.props.configureKeyUpEvent(e);if(!Boolean(o))switch(t.configureChipCreation(e),e.key){case xt.UP:t.setState({preselectedOptionIndex:r-1<0?n.length-1:r-1},t.handleOptionMarking);break;case xt.DOWN:t.setState({preselectedOptionIndex:r+1>=n.length?0:r+1},t.handleOptionMarking);break;case xt.ENTER:if(e.preventDefault(),e.stopPropagation(),t.getOptionsForRender().length)return t.handleOptionSelection(n[r]);break;case xt.HOME:t.setState({preselectedOptionIndex:0},t.handleOptionMarking);break;case xt.END:t.setState({preselectedOptionIndex:Math.max(n.length-1,0)},t.handleOptionMarking)}}})),Ol(t,"renderArrowIcon",(function(e){var n=t.props,r=n.readOnly,o=n.suffix,a=t.state.isOpen;return"function"==typeof o?o(t.closeMenu):o||h.createElement(Nn,{ref:e,"aria-hidden":"true",name:a?"arrow-up":"arrow-down",className:ct("sg-dropdown__icon"),onClick:r?null:t.toggleMenu})})),Ol(t,"handleOnKeyDown",(function(e){if(e.key===xt.SPACE){var n=t.state.isOpen;t.props.searchable||(e.preventDefault(),e.stopPropagation()),n||t.openMenu(e)}})),t.strategy=function(e){switch(e){case"autocomplete":return rl;case"chips":return pl;case"multiple":return il;case"email-select":return bl;default:return hl}}(t.props.strategy),t.dropdownWrapper=h.createRef(),t.dropdown=h.createRef(),t.optionsWrapper=h.createRef(),t.shadow=h.createRef(),t.componentRef=function(e){t.componentNode=e},t}return wl(r,n),r.prototype.componentDidMount=function(){this.setState(this.strategy.setSelectedValue(this.props,this.state))},r.prototype.componentDidUpdate=function(e,n){if(Boolean(JSON.stringify({selectedValue:e.selectedValue,options:e.options})!==JSON.stringify({selectedValue:this.props.selectedValue,options:this.props.options}))&&this.setState(this.strategy.setSelectedValue(this.props,this.state)),!n.isOpen&&this.state.isOpen&&Zi.addEventsToDocument(this.getMouseEventMap()),n.isOpen&&!this.state.isOpen)Zi.removeEventsFromDocument(this.getMouseEventMap());else if(this.state.isOpen&&!t){var r=cn(this.componentNode);this.shadow.current.style.top="-".concat(r.height,"px")}},r.prototype.componentWillUnmount=function(){Zi.removeEventsFromDocument(this.getMouseEventMap())},r.prototype.getMouseEventMap=function(){return{click:this.handleBlur,touchstart:this.handleBlur}},r.prototype.getOptionsForRender=function(){var e=this.props,t=e.optionLabel,n=e.groupBy,r=e.disableGroupReorder,o=e.searchable,a=this.state.searchInputValue,i=this.strategy.getFilteredOptions(this.props,this.state);return n&&!r&&(i=i.sort((function(e,r){return function(e,t,n,r){return e[n]<t[n]?-1:e[n]>t[n]?1:e[r]<t[r]?-1:e[r]>t[r]?1:0}(e,r,n,t)}))),o&&(i=i.filter((function(e){if(!a)return!0;var n=a.trim().toLocaleLowerCase();return e[t].toLowerCase().indexOf(n)>-1}))),i},r.prototype.findOptionIndexByValue=function(e,t){var n=this.props.optionValue;return t.findIndex((function(t){return t[n]===e}))},r.prototype.handleOptionSelection=function(e,t){e&&e[this.props.optionDisabled]||(this.setState(this.strategy.handleClick(this.props,this.state,e,t)),this.closeMenu())},r.prototype.renderItem=function(e,t){var n=this.props,r=n.optionValue,o=n.optionLabel,a=void 0===o?r:o,i=n.optionDisabled,l=n.template,u=(n.size,this.state.preselectedOptionIndex),c=ct("sg-dropdown__option",e[i]&&"sg-dropdown__option--disabled",t===u&&"sg-dropdown__option--hovered");return h.createElement("div",{key:"".concat(e[a],"-").concat(e[r]),className:c,style:{lineHeight:Sl},onClick:this.handleOptionSelection.bind(this,e,t),"data-e2e":"dropdown-option-".concat(e[r]),"data-navigation":t,tabIndex:1,role:"option","aria-disabled":e[i],"aria-selected":t===u},l&&l(e,{isOption:!0})||e[a])},r.prototype.renderGroupAndItem=function(e,t){var n=this.props,r=n.optionValue,o=n.optionLabel,a=void 0===o?r:o,i=n.groupBy;return n.size,h.createElement(h.Fragment,{key:"".concat(e[a],"-").concat(e[r],"-fragment")},h.createElement("div",{key:"".concat(e[a],"-").concat(e[r],"-group-header"),className:"sg-dropdown__option-group-header",style:{lineHeight:_l}},e[i]),this.renderItem(e,t))},r.prototype.renderItems=function(e){var n=this,r=this.props,o=r.groupBy,a=r.state,i=r.validationMessage,l=(r.size,r.translation),u=cn(this.dropdownWrapper.current).bottom,c=this.getOptionsForRender(),s=parseInt(Sl,10),f=s,p=ct("sg-dropdown__content",t?"sg-dropdown__content--with-top-border":"sg-dropdown__content--without-top-border",t&&"sg-dropdown__content--with-box-shadow"),d=c.length?parseInt(_l,10):0;c.length>0&&(d=c.length<3?s*c.length:3*s);var m=ct("sg-dropdown__options",i&&"sg-dropdown__options--with-bottom-padding");return h.createElement("div",{className:p,style:{top:t?"0":"100%"}},t&&t(e),!t&&h.createElement("div",{className:"sg-dropdown__content__shadow",ref:this.shadow}),h.createElement("div",{ref:this.optionsWrapper,className:"sg-dropdown__options-wrapper",style:{minHeight:d,maxHeight:"calc(100vh - ".concat(u+f,"px)")}},h.createElement("div",{className:m,role:"listbox","data-e2e":"dropdown-options"},c.map((function(e,t,r){return(r[t-1]&&r[t-1][o])===(r[t]&&r[t][o])?n.renderItem(e,t):n.renderGroupAndItem(e,t)})),this.strategy.renderHint(c.length,h.createElement(li,{state:"hint",focused:!0,showValidation:!0,className:"sg-dropdown__nothing-found",validationMessage:l.nothingFound})))),a&&h.createElement(li,{state:a,focused:!0,showValidation:!0,className:"sg-dropdown__validation",validationMessage:i}))},r.prototype.renderDropdown=function(t){var n=t.classes,r=t.dataE2E,o=t.dataComponent,a=t.isOpen,i=t.componentRenderProps;return h.createElement("div",{ref:this.dropdown,className:n,"data-e2e":r,"data-component":o,tabIndex:this.props.searchable?-1:0,onBlur:this.handleBlur,onKeyDown:this.handleOnKeyDown,role:this.props.searchable?"combobox":"button","aria-autocomplete":this.props.searchable?"list":null,"aria-haspopup":"listbox","aria-expanded":a},e(i),a&&this.renderItems(i))},r.prototype.render=function(){var e=this.state,t=e.isOpen,n=e.selectedOptions,r=e.searchInputValue,o=e.areAllChipsSelected,a=this.props,i=a.className,l=a.label,u=a.labelTooltip,c=a.disabled,s=a.readOnly,f=a.searchable,p=a.size,d=a.state,m=a.enableShadow,y=a.theme,g=a.inline,v=a.expand,b=a.style,w=a.optionValue,E=a.optionLabel,O=a.onFocus,_=a.chipRegExp,S=a.name,x=a.transparent,k=a["data-e2e"],C=a["data-component"],P=a.options,T=a.suffix,N=a.border,j=a.strategy,A=a.onReset,R=0==P.length,I=ct("sg-dropdown-wrapper",t&&"sg-dropdown-wrapper--opened",j&&"sg-dropdown-wrapper--strategy-".concat(j),R&&"sg-dropdown-wrapper--has-no-items",d&&"sg-dropdown--state sg-dropdown--state-".concat(d),g&&"sg-dropdown-wrapper--inline",v&&"sg-dropdown-wrapper--expand"),D=ct("sg-dropdown","sg-dropdown--".concat(p),c&&"sg-dropdown--disabled",N&&"sg-dropdown--border-".concat(N),d&&"sg-dropdown--state sg-dropdown--state-".concat(d),y&&"sg-dropdown--theme-".concat(y),m&&!t&&"sg-dropdown--box-shadow",this.strategy.getSelectionClass(null==n?void 0:n.length,"sg-dropdown--has-selection"),x&&"sg-dropdown--transparent",i),M={areAllChipsSelected:o,size:p,state:d,searchable:f,searchInputValue:r,getPlaceholder:this.getPlaceholder,renderArrowIcon:this.renderArrowIcon,openMenu:this.openMenu,onChange:this.onInputChange,selectedOptions:n,removeSelectedValue:this.removeSelectedValue,readOnly:s,componentRef:this.componentRef,isOpen:t,closeMenu:this.closeMenu,optionValue:w,optionLabel:E,handleBlur:this.onInputBlur,onFocus:O,chipRegExp:_,name:S,transparent:x,optionsLength:P.length,suffix:T,onReset:A};return h.createElement("div",{ref:this.dropdownWrapper,className:I,onKeyDown:s?null:this.handleKeyDown,onKeyUp:s?null:this.handleKeyUp,style:b,"data-e2e":"".concat(k,"-wrapper"),"data-component":this.props["data-component"]},h.createElement(ni,{tooltip:u},l),this.renderDropdown({classes:D,dataE2E:k,dataComponent:C,isOpen:t,componentRenderProps:M}))},r}(h.Component);return Ol(n,"defaultProps",{options:[],inline:!1,expand:!1,multiple:!1,enableShadow:!1,onChange:function(){return!1},onBlur:function(){return!1},onEnter:function(){return!1},normalizeInput:function(e){return e},style:{},placeholder:"",size:"medium",strategy:"dropdown","data-e2e":"dropdown","data-component":"dropdown",translation:{nothingFound:"Nothing was found"},configureKeyUpEvent:function(){return!1}}),n},kl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cl=function(){return Cl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cl.apply(this,arguments)},Pl=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Tl=Object.defineProperty,Nl={small:{lineHeight:"28px",minHeight:"30px"},medium:{lineHeight:"38px",minHeight:"40px"},large:{lineHeight:"38px",minHeight:"40px"},"x-large":{lineHeight:"58px",minHeight:"60px"}},jl={small:{lineHeight:"28px",minHeight:"30px"},medium:{lineHeight:"38px",minHeight:"40px"},large:{lineHeight:"38px",minHeight:"40px"},"x-large":{lineHeight:"48px",minHeight:"50px"}},Al=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return kl(t,e),t.prototype.renderPlaceholder=function(e){var t=this,n=this.props,r=n.size,o=n.className,a=n.getPlaceholder,i=n.renderArrowIcon,l=n.selectedOptions,u=(n.optionValue,n.openMenu),c=n.onReset,s=Pl(n,["size","className","getPlaceholder","renderArrowIcon","selectedOptions","optionValue","openMenu","onReset"]),p={"sg-input-dropdown__placeholder":!0,"sg-input-dropdown__placeholder--with-reset":Boolean(c),"sg-input-dropdown__placeholder--selected":0===l.length},d=st({styles:f.default,classes:p,className:o}),m=e?Nl:jl;return h.createElement("div",Cl(Cl({className:d},ht(s)),{onClick:u,style:m[r],"data-e2e":"dropdown-placeholder"}),a(),c&&Boolean(l.length)&&h.createElement(Ln,{"aria-hidden":"true",icon:"thick-close",className:ct("sg-dropdown__reset-icon"),size:"small",onClick:function(e){return t.handleReset(e,c)}}),i())},t.prototype.handleReset=function(e,t){e.preventDefault(),e.stopPropagation(),t()},t.prototype.renderInput=function(){var e=this,t=this.props,n=t.size,r=t.state,o=t.searchInputValue,a=t.getPlaceholder,i=t.renderArrowIcon,l=t.readOnly,u=t.openMenu,c=t.suffix,s=t.onReset,f=Pl(t,["size","state","searchInputValue","getPlaceholder","renderArrowIcon","readOnly","openMenu","suffix","onReset"]);return h.createElement(h.Fragment,null,h.createElement(xi,Cl(Cl({},ht(f)),{wrapperClassName:"sg-dropdown-wrapper__input-wrapper",fieldClassName:"sg-dropdown-wrapper__input-field",onClick:u,readOnly:l,placeholder:a(),size:n,state:r,value:o,suffix:c&&i(),tabIndex:0})),s&&Boolean(this.props.selectedOptions.length)&&h.createElement(Ln,{"aria-hidden":"true",icon:"thick-close",className:ct("sg-dropdown__reset-icon"),size:"small",onClick:function(t){return e.handleReset(t,s)}}),!c&&i())},t.prototype.render=function(){var e=this,t=this.props,n=t.searchable,r=t.componentRef;return h.createElement(yt.Consumer,null,(function(t){var o=t.device;return h.createElement("div",{ref:r,className:"sg-input-dropdown","data-e2e":e.props["data-e2e"]},n&&e.renderInput(),!n&&e.renderPlaceholder(o.isDesktop))}))},t}(h.Component);!function(e,t,n){t in e?Tl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(Al,"symbol"!=typeof(Xi="defaultProps")?Xi+"":Xi,{"data-e2e":"dropdown"});var Rl=xl((function(e){var t=e.size,n=e.state,r=e.searchable,o=e.onReset,a=e.searchInputValue,i=e.getPlaceholder,l=e.renderArrowIcon,u=e.openMenu,c=e.onChange,s=e.onEnter,f=e.readOnly,p=e.selectedOptions,d=e.componentRef,m=e.onBlur,y=e.onFocus,g=e.suffix,v=e.optionValue;return h.createElement(Al,{size:t,state:n,searchable:r,onReset:o,searchInputValue:a,getPlaceholder:i,renderArrowIcon:l,openMenu:u,onChange:c,onEnter:s,onFocus:y,onBlur:m,readOnly:f,selectedOptions:p,componentRef:d,"data-e2e":e["data-e2e"],suffix:g,optionValue:v})})),Il=function(){return Il=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Il.apply(this,arguments)},Dl=h.forwardRef((function(e,t){var n=e.className,r=e.children,o=e.onClose,a=e.selected,i=e.state,l=e["data-e2e"],u=e["data-component"],c=e.tabIndex,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","children","onClose","selected","state","data-e2e","data-component","tabIndex"]),f=ct("sg-chip",a&&"sg-chip--selected",i&&"sg-chip--state-".concat(i),n);return h.createElement("div",Il({ref:t,className:f,"data-e2e":l,"data-component":u,tabIndex:c},ht(s)),h.createElement(Nn,{className:"sg-chip_item sg-chip_item--icon",name:"cross",size:"8","data-e2e":"chip-icon",onClick:o}),h.createElement(Gn,{className:"sg-chip_item sg-chip_item--text",truncate:!0},r))}));Dl.defaultProps={"data-e2e":"chip","data-component":"chip",tabIndex:0},Dl.displayName="Chip";var Ml=Dl,Fl=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ll=function(){return Ll=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ll.apply(this,arguments)},Ul=Object.defineProperty,zl=function(e,t,n){return function(e,t,n){t in e?Ul(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Vl=function(e){function t(t){var n=e.call(this,t)||this;return zl(n,"rootNodeRef"),zl(n,"rootNode"),zl(n,"moreButtonNode",h.createRef()),zl(n,"chipNodes"),n.state={rectsCalculated:!1,chipsRects:null,rootRect:null,moreButtonRect:null},n.rootNodeRef=function(e){var t=n.props.componentRef;n.rootNode=e,t(e)},n}return Fl(t,e),t.prototype.componentDidMount=function(){this.calculateRects()},t.prototype.UNSAFE_componentWillReceiveProps=function(){this.setState({rectsCalculated:!1})},t.prototype.componentDidUpdate=function(){this.state.rectsCalculated||this.calculateRects()},t.prototype.isChipValid=function(e){return!this.props.chipRegExp||this.props.chipRegExp.test(e)},t.prototype.calculateRects=function(){if(0!==this.props.selectedOptions.length){var e=cn(this.rootNode),t=this.chipNodes.filter((function(e){return null!==e})).map((function(e){return cn(e)})),n=cn(this.moreButtonNode.current);this.setState({rectsCalculated:!0,rootRect:e,chipsRects:t,moreButtonRect:n})}},t.prototype.createChipRef=function(e){var t=this;return function(n){t.chipNodes[e]=n}},t.prototype.countChipsThatFitInSpace=function(e,t){for(var n=this.state.chipsRects,r=0,o=0,a=0;a<n.length&&!((o+=n[a].width+(a===n.length-1?0:t))>e);a++)r++;return r},t.prototype.renderChip=function(e,t){var n=this.props,r=n.optionValue,o=n.optionLabel,a=n.removeSelectedValue;return h.createElement(Ml,Ll({key:e[r],className:"sg-multiple-dropdown__chip",state:this.isChipValid(e[r])?void 0:"error",onClose:function(t){t.stopPropagation(),a(e[r])},onClick:function(e){e.preventDefault(),e.stopPropagation()},tabIndex:-1},t),e[o])},t.prototype.renderChipsForMeasure=function(){var e=this,t=this.props,n=t.selectedOptions,r=t.optionLabel;return this.chipNodes=[],n.map((function(t,n){return h.createElement(Ml,{key:n,className:"sg-multiple-dropdown__chip",ref:e.createChipRef(n)},t[r])}))},t.prototype.renderMoreButton=function(e){var t=this.props.openMenu;return h.createElement(mo,{ref:this.moreButtonNode,className:"sg-multiple-dropdown__more-button",onClick:t,color:"neutral",size:"small",action:"button"},"".concat(e," more"))},t.prototype.renderElementsToMeasure=function(){var e=this.props.selectedOptions,t=e.length>1?e.length-1:10;return h.createElement(h.Fragment,null,this.renderChipsForMeasure(),this.renderMoreButton(t))},t.prototype.renderSingleChip=function(e){var t=this.props.selectedOptions,n=this.state.rootRect.width-e-e-20;return this.renderChip(t[0],{style:{maxWidth:"".concat(n,"px")}})},t.prototype.renderAllChipsIfPossible=function(e){var t=this,n=this.props.selectedOptions,r=this.state.rootRect.width-e-e;return this.countChipsThatFitInSpace(r,e)===n.length?n.map((function(e){return t.renderChip(e)})):null},t.prototype.renderChipsThatFitAndMoreButton=function(e){var t=this,n=this.props.selectedOptions,r=this.state,o=r.rootRect,a=r.moreButtonRect,i=2*e,l=o.width-e-e-Math.ceil(a.width)-e-i,u=this.countChipsThatFitInSpace(l,e);return 0===u?h.createElement(h.Fragment,null,this.renderChip(n[0],{style:{width:"".concat(l,"px")}}),this.renderMoreButton(n.length-1)):h.createElement(h.Fragment,null,n.slice(0,u).map((function(e){return t.renderChip(e)})),this.renderMoreButton(n.length-u))},t.prototype.renderFinalChips=function(){var e=this.props.selectedOptions,t=getComputedStyle(this.rootNode),n=parseInt(t.paddingLeft,10);return 1===e.length?this.renderSingleChip(n):this.renderAllChipsIfPossible(n)||this.renderChipsThatFitAndMoreButton(n)},t.prototype.renderFinal=function(){return h.createElement(h.Fragment,null,this.renderFinalChips())},t.prototype.renderEmpty=function(){var e=this.props.getPlaceholder;return h.createElement(ea,{gutter:"medium",align:"center",direction:"row",style:{width:"100%"}},h.createElement("div",{className:"sg-multiple-dropdown__placeholder"},e()))},t.prototype.render=function(){var e=this.state.rectsCalculated,t=this.props,n=(t.isOpen,t.selectedOptions),r=t.state,o=t.openMenu,a=t.name,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["isOpen","selectedOptions","state","openMenu","name"]),l=ct("sg-multiple-dropdown__closed-state",r&&"sg-multiple-dropdown__closed-state--".concat(r));return h.createElement("div",Ll({className:l,ref:this.rootNodeRef,onClick:o,tabIndex:0===n.length?0:-1},ht(i)),0===n.length&&this.renderEmpty(),n.length>0&&(e?this.renderFinal():this.renderElementsToMeasure()),h.createElement("div",{"data-name":a,tabIndex:-1,onFocus:o}))},t}(h.Component),Bl=Vl,Hl=function(){return Hl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Hl.apply(this,arguments)},Wl=function(e){var t=e.areAllChipsSelected,n=e.componentRef,r=e.selectedOptions,o=e.closeMenu,a=e.removeSelectedValue,i=e.renderArrowIcon,l=e.optionValue,u=e.getPlaceholder,c=e.optionLabel,s=e.searchable,f=e.handleBlur,p=e.searchInputValue,d=e.chipRegExp,m=e.optionsLength,y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["areAllChipsSelected","componentRef","selectedOptions","closeMenu","removeSelectedValue","renderArrowIcon","optionValue","getPlaceholder","optionLabel","searchable","handleBlur","searchInputValue","chipRegExp","optionsLength"]),g=null,v=ct("sg-multiple-dropdown__opened-state",0===m&&"sg-multiple-dropdown__opened-state--no-data"),b=function(e){return function(t){t.preventDefault(),t.stopPropagation(),a(e[l]),g&&g.focus()}};return h.createElement("div",{className:v,ref:n,onClick:o},0===r.length&&!s&&h.createElement("div",{className:"sg-multiple-dropdown__placeholder"},u()),r.length>0&&r.map((function(e,n){return h.createElement(Ml,{className:"sg-multiple-dropdown__chip",state:(r=e[l],!d||d.test(r)?void 0:"error"),selected:t,onClose:b(e),key:n},e[c]);var r})),s&&h.createElement(xi,Hl(Hl({onRefsReady:function(e){g=e},className:"sg-multiple-dropdown__input",wrapperClassName:"sg-multiple-dropdown__input-wrapper",fieldClassName:"sg-multiple-dropdown__field"},ht(y)),{inline:!0,autoFocus:!0,value:p,onClick:function(e){e.preventDefault(),e.stopPropagation()},onBlur:f})),i())},Kl=function(){return Kl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kl.apply(this,arguments)},ql=xl((function(e){var t=e.openMenu,n=e.componentRef,r=e.isOpen,o=e.renderArrowIcon,a=e.selectedOptions,i=e.removeSelectedValue,l=e.optionValue,u=e.getPlaceholder,c=e.optionLabel,s=e.state,f=e.chipRegExp,p=e.name;return h.createElement(Bl,{name:p,openMenu:t,componentRef:n,isOpen:r,renderArrowIcon:o,selectedOptions:a,removeSelectedValue:i,optionValue:l,getPlaceholder:u,optionLabel:c,state:s,chipRegExp:f})}),(function(e){var t=e.componentRef,n=e.areAllChipsSelected,r=e.selectedOptions,o=e.closeMenu,a=e.removeSelectedValue,i=e.renderArrowIcon,l=e.optionValue,u=e.getPlaceholder,c=e.optionLabel,s=e.searchable,f=e.onChange,p=e.handleBlur,d=e.onFocus,m=e.searchInputValue,y=e.chipRegExp,g=e.optionsLength;return h.createElement(Wl,{componentRef:t,areAllChipsSelected:n,selectedOptions:r,closeMenu:o,searchable:s,removeSelectedValue:a,renderArrowIcon:i,optionValue:l,getPlaceholder:u,optionLabel:c,onChange:f,onFocus:d,handleBlur:p,searchInputValue:m,chipRegExp:y,optionsLength:g})})),Gl=function(e){return h.createElement(yt.Consumer,null,(function(){return h.createElement(ql,Kl({strategy:"multiple"},e))}))},Yl=function(){return Yl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Yl.apply(this,arguments)},$l=function(e){return h.createElement(Gl,Yl(Yl({searchable:!0},e),{strategy:"email-select"}))},Xl=function(){return Xl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Xl.apply(this,arguments)},Ql=function(e){var t=e.icon,n=e.iconSize,r=e.children,o=e.className,a=e.shortcut,i=e.disabled,l=e.onClick,u=e.tabIndex,c=e["data-e2e"],s=e["data-component"],f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["icon","iconSize","children","className","shortcut","disabled","onClick","tabIndex","data-e2e","data-component"]),p=ct("sg-menu-item",i&&"sg-menu-item--disabled",o);return h.createElement("li",Xl(Xl({className:p,onClick:function(e){i?e.stopPropagation():l(e)},"data-e2e":c,"data-component":s},ht(f)),{onKeyDown:function(e){return function(e){var t=e.event,n=e.onClick;xt.ENTER!==t.key&&xt.SPACE!==t.key||n(t)}({event:e,onClick:l})},tabIndex:u,role:"menuitem"}),t&&h.createElement(Nn,{name:t,size:n,className:"sg-menu-item__icon"}),h.createElement("span",{className:"sg-menu-item__text"},r),a&&h.createElement("span",{className:"sg-menu-item__shortcut"},a))};Ql.displayName="MenuItem",Ql.defaultProps={iconSize:"14",onClick:function(){return null},"data-e2e":"menu-item","data-component":"menu-item"};var Jl=Ql,Zl=function(e){return h.createElement("li",null,h.createElement("ul",{"data-e2e":e["data-e2e"],role:"group"},e.groupTitle&&h.createElement(Jl,{disabled:!0,className:"sg-menu-group--title"},e.groupTitle),e.children))};Zl.defaultProps={"data-e2e":"menu-group"};var eu=Zl,tu=function(e){return e.Open="open",e.Close="close",e}(tu||{}),nu=function(e){return e.Datepicker="datepicker",e.Input="input",e.Checkbox="checkbox",e.Dropdown="dropdown",e.EmailDropdown="emailDropdown",e.MultipleDropdown="multipleDropdown",e}(nu||{}),ru=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ou=function(){return ou=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ou.apply(this,arguments)},au=function(e){var t=e.option,n=e.index,r=e.field,o=(r.children[n-1]&&r.children[n-1][r.groupBy])===(r.children[n]&&r.children[n][r.groupBy]);return!r.groupBy||o?null:t[r.groupBy]},iu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ru(t,e),t.prototype.handleFilterCheckboxSelection=function(e){var t=e.option,n=e.field,r=e.key,o=n.children.map((function(e){var n=Object.assign({},e);return n.id===t.id&&(n.checked=!t.checked),n}));this.fireOnChange({field:ou(ou({},n),{children:o}),key:r})},t.prototype.fireOnChange=function(e){var t,n=e.field,r=e.key,o=n.onChange||this.props.onChange;o&&o(ou(ou({},this.props.config),((t={})[r]=n,t)))},t.prototype.renderTitle=function(){var e=this.props.title;return e?h.createElement(Jl,{disabled:!0,tabIndex:0,className:"sg-filter__title"},e):null},t.prototype.renderDatepicker=function(e){var t=this,n=e.field,r=e.key;return h.createElement(eu,{key:"".concat(n.type,"-group"),groupTitle:n.groupTitle},n.children.map((function(e,o){return h.createElement(Jl,{key:"datepicker-".concat(o)},h.createElement(Qi,ou({size:"small",onChange:function(o){return t.changeSelectedValue({option:e,value:o,field:n,key:r})}},e)))})))},t.prototype.renderDropdown=function(e){var t=this,n=e.field,r=e.key,o=e.tag;return h.createElement(eu,{key:"".concat(n.type,"-group"),groupTitle:n.groupTitle},n.children.map((function(e,a){return h.createElement(Jl,{key:"".concat(n.type,"-").concat(a),className:"sg-filter-list__dropdown-field"},h.createElement(o,ou(ou({},e),{size:"small",onChange:function(o){return t.changeSelectedValue({option:e,value:o,field:n,key:r})}})))})))},t.prototype.changeSelectedValue=function(e){var t=e.option,n=e.value,r=e.field,o=e.key,a=r.children.map((function(e){var r=Object.assign({},e);return r.id===t.id&&(r.selectedValue=n,r.value=n),r}));this.fireOnChange({field:ou(ou({},r),{children:a}),key:o})},t.prototype.renderInput=function(e){var t=this,n=e.field,r=e.key;return h.createElement(eu,{key:"".concat(n.type,"-group"),groupTitle:n.groupTitle},n.children.map((function(e,o){return h.createElement(Jl,{key:"".concat(n.type,"-").concat(o)},h.createElement(xi,ou(ou({},e),{size:"small",onChange:function(o){return t.changeSelectedValue({option:e,value:o.target.value,field:n,key:r})}})))})))},t.prototype.renderCheckboxOptions=function(e){var t=this,n=e.field,r=e.key,o=function(e){var o=e.index,a=e.option;return h.createElement(Jl,{key:"".concat(n.type,"-item-").concat(o),onClick:function(e){e.stopPropagation(),t.handleFilterCheckboxSelection({option:a,field:n,key:r})}},h.createElement(Ta,{key:a.label,checked:a.checked,readOnly:!0,"aria-label":a.ariaLabel,className:"sg-filter__checkbox"},a.label))};return n.groupTitle?h.createElement(eu,{key:"".concat(n.type,"-group-").concat(n.groupTitle),groupTitle:n.groupTitle},n.children.map((function(e,t){return o({index:t,option:e})}))):n.children.map((function(e,t){return h.createElement(eu,{key:"".concat(n.type,"-group-").concat(t),groupTitle:au({option:e,index:t,field:n})},o({index:t,option:e}))}))},t.prototype.renderFieldsConfiguration=function(){var e=this,t=this.props.config;return Object.keys(t).map((function(n){var r=t[n];switch(r.type){case nu.Checkbox:return e.renderCheckboxOptions({field:r,key:n});case nu.Datepicker:return e.renderDatepicker({field:r,key:n});case nu.Input:return e.renderInput({field:r,key:n});case nu.Dropdown:return e.renderDropdown({field:r,key:n,tag:Rl});case nu.EmailDropdown:return e.renderDropdown({field:r,key:n,tag:$l});case nu.MultipleDropdown:return e.renderDropdown({field:r,key:n,tag:Gl})}}))},t.prototype.render=function(){return h.createElement(h.Fragment,null,this.renderTitle(),this.renderFieldsConfiguration())},t}(h.Component),lu=iu,uu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),cu=function(){return cu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cu.apply(this,arguments)},su=Object.defineProperty,fu=function(e,t,n){return function(e,t,n){t in e?su(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},pu=function(e){function t(t){var n=e.call(this,t)||this;return fu(n,"state",{animation:null}),fu(n,"listRef"),fu(n,"wrapperFilterRef"),fu(n,"triggerClose",(function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();var t=n.props.onClose;n.state.animation!==tu.Close&&n.setState({animation:tu.Close},(function(){setTimeout((function(){t()}),400)}))})),fu(n,"keypressHandler",(function(e){27===e.keyCode&&(e.stopPropagation(),n.triggerClose(e))})),fu(n,"triggerReset",(function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation(),n.props.onResetFilter()})),n.listRef=h.createRef(),n.wrapperFilterRef=h.createRef(),n}return uu(t,e),t.prototype.componentDidMount=function(){this.setPosition(),this.listRef&&this.listRef.current.focus(),this.setState({animation:tu.Open})},t.prototype.componentDidUpdate=function(e){ta(this.props.config,e.config)&&this.setPosition()},t.prototype.setPosition=function(){var e=this.props,t=e.position,n=e.rect,r=e.device,o=e.priority;ha(t,n,r,this.wrapperFilterRef,{setMaxHeight:!0,priority:o})},t.prototype.render=function(){var e=this.props,t=e.className,n=(e.children,e.device),r=e.position,o=(e.onClose,e.translations),a=e.title,i=e.config,l=e.onChange,u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["className","children","device","position","onClose","translations","title","config","onChange"]),c=this.state.animation,s=n.isPhone,f=ct("sg-filter-menu",s?"sg-filter-menu--mobile":"sg-filter-menu--position-".concat(r),c&&(s?"sg-filter-menu--".concat(c):"sg-filter-menu-list--".concat(c))),p=ct(!s&&"sg-filter-menu-list--position-".concat(r),s&&c&&"sg-filter-menu-list--".concat(c),"sg-filter--menu",t),d=h.createElement(wa,{density:"none",align:"center",justify:"flex-end",background:"transparent",className:"sg-filter-list__buttons"},h.createElement(ea,{padding:["x-small","medium"]},h.createElement(mo,{size:"small",onClick:this.triggerReset,color:"secondary"},o.resetBtnLabel),h.createElement(mo,{size:"small",color:"neutral",onClick:this.triggerClose},o.closeBtnLabel)));return h.createElement(h.Fragment,null,h.createElement("div",{className:"sg-filter--trigger-close-background",onClick:this.triggerClose}),h.createElement(ga,cu(cu({onKeyDown:this.keypressHandler,wrapperClasses:f,classes:p,ref:this.listRef,wrapperRef:this.wrapperFilterRef},u),{"data-e2e":this.props["data-e2e"],footer:s?null:d}),h.createElement("div",null,h.createElement(lu,{title:a,config:i,onChange:l}),s&&d)))},t}(h.Component);fu(pu,"defaultProps",{position:da,onClose:function(){return null},"data-e2e":"filter-list"});var du=function(e){return h.createElement(yt.Consumer,null,(function(t){var n=t.device;return h.createElement(pu,cu(cu({},e),{device:n}))}))},hu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mu=function(){return mu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},mu.apply(this,arguments)},yu=Object.defineProperty,gu=function(e,t,n){return function(e,t,n){t in e?yu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},vu=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return gu(t,"state",{opened:!1,rect:{top:null,right:null,bottom:null,left:null},initialConfig:t.props.config,hasSelection:!1}),gu(t,"closeMenu",(function(){var e=t.props,n=e.onClose,r=e.config;t.setState({opened:!1,hasSelection:!ta(r,t.state.initialConfig)}),n&&n()})),gu(t,"openMenu",(function(e){e.stopPropagation();var n=cn(e.currentTarget),r=n.height+n.top+window.pageYOffset,o=window.innerWidth-(n.left+n.width),a=window.innerHeight-n.top,i=n.left;t.setState({rect:{top:"".concat(r,"px"),right:"".concat(o,"px"),bottom:"".concat(a,"px"),left:"".concat(i,"px")},opened:!0})})),t}return hu(t,e),t.prototype.componentDidUpdate=function(e){ta(this.props.config,e.config)||this.setState({hasSelection:!ta(this.props.config,this.state.initialConfig)})},t.prototype.renderFilterMenuListComponent=function(){var e=this,t=this.props,n=t.children,r=t.className,o=t.position,a=t.config,i=t.title,l=t.translations,u=t.onChange,c=this.state,s=c.rect,f=c.initialConfig;return h.createElement(du,{config:a,title:i,className:r,onClose:this.closeMenu,position:o,rect:s,translations:l,onResetFilter:function(){return e.props.onResetFilter(f)},priority:this.props.priority,onChange:u},n)},t.prototype.renderFilterMenuList=function(){return"fixed"===this.props.position||this.props.device.isPhone?m.createPortal(this.renderFilterMenuListComponent(),document.body):h.createElement(h.Fragment,null,h.createElement(fa,null),h.createElement(ia,null,this.renderFilterMenuListComponent()))},t.prototype.render=function(){var e=this.state,t=e.opened,n=e.hasSelection,r=this.props,o=r["data-e2e"],a=r["data-component"],i=(r.title,r["aria-label"]),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(r,["data-e2e","data-component","title","aria-label"]);return h.createElement("div",mu(mu({className:"sg-filter","data-e2e":o,"data-component":a,"aria-label":i},ht(l)),{onKeyDown:function(e){return e.stopPropagation()}}),h.createElement(Ln,{icon:"filter",onClick:this.openMenu,className:n?"sg-filter__icon-selected-state":"",isActive:t,"aria-haspopup":!0,"aria-expanded":t}),t&&this.renderFilterMenuList())},t}(h.Component);gu(vu,"defaultProps",{position:"absolute",onClose:function(){return null},"data-e2e":"filter","data-component":"filter",translations:{closeBtnLabel:"Close",resetBtnLabel:"Reset"}});var bu=En((function(e){return h.createElement(yt.Consumer,null,(function(t){var n=t.device;return h.createElement(vu,mu(mu({},e),{device:n}))}))})),wu=function(){return wu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wu.apply(this,arguments)},Eu=function(e){var t=e.elevation,n=e.overflow,r=e.padding,o=e.className,a=e.children,i=e.tabIndex,l=e["data-e2e"],u=e["data-component"],c=e.ref,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["elevation","overflow","padding","className","children","tabIndex","data-e2e","data-component","ref"]),f=ct("sg-container","sg-container--elevation-".concat(t),"sg-container--overflow-".concat(n),Bt(r),o);return h.createElement("div",wu({ref:c,className:f,"data-e2e":l,"data-component":u,tabIndex:i},ht(s)),a)};Eu.defaultProps={elevation:"1",overflow:"visible",padding:"medium","data-e2e":"container","data-component":"container"},Eu.displayName="Container";var Ou,_u=Eu,Su="UPDATE_ACTIVITY_LOG_DATA",xu=function(){return xu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},xu.apply(this,arguments)},ku=function(e){return e.None="none",e.Ascending="ascending",e.Descending="descending",e}(ku||{}),Cu=((Ou={}).none="sort",Ou.ascending="sort-ascending",Ou.descending="sort-descending",function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}),Pu=h.createContext({sortedData:[],sortElement:null,setSortConfig:function(e){return null}}),Tu=function(e){var t=e.children,n=e.data,r=Cu(h.useState(null),2),o=r[0],a=r[1],i=Cu(h.useState(ku.None),2),l=i[0],u=i[1],c=Cu(h.useState(null),2),s=c[0],f=c[1],p=h.useMemo((function(){return{sortedData:o?o([].concat(n)):[].concat(n),sortElement:s,setSortConfig:function(e){var t=e.sortFunctionToUse,n=e.sortType,r=e.sortElement;a((function(){return t})),u(n),f(r)}}}),[n,o,l,s]);return h.createElement(Pu.Provider,{value:p},t)};Tu.displayName="SortProvider";function Nu(e){var t,n;if(null==e||"object"!=typeof e)return e;if(e instanceof Date){var r=new Date;return r.setTime(e.getTime()),r}if(e instanceof Array){for(var o=[],a=0;a<e.length;a+=1)o[a]=Nu(e[a]);return o}if(e instanceof Object){if(e.$$typeof)return e;var i={};try{for(var l=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.keys(e)),u=l.next();!u.done;u=l.next()){var c=u.value;Object.prototype.hasOwnProperty.call(e,c)&&(i[c]=Nu(e[c]))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return i}}var ju=function(){return ju=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ju.apply(this,arguments)},Au=function(e){var t=e.background,n=e.children,r=e.className,o=e.icon,a=e.iconColor,i=e.iconSize,l=e.iconClassName,u=e.message,c=e.title,s=e.shadow,f=e.borderRadius,p=e.handleKeyDown,d=e.tabIndex,m=e.titleProps,y=e.multicolor,g=e["data-e2e"],v=e["data-component"],b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["background","children","className","icon","iconColor","iconSize","iconClassName","message","title","shadow","borderRadius","handleKeyDown","tabIndex","titleProps","multicolor","data-e2e","data-component"]),w=ct("sg-placeholder",r),E=ct("sg-placeholder-wrapper",s&&"sg-placeholder--shadow","sg-placeholder--background-".concat(t),f&&"sg-placeholder-wrapper--border-radius-".concat(f));return h.createElement("div",ju({className:E,"data-e2e":g,"data-component":v,tabIndex:d,onKeyDown:p,role:"figure"},ht(b)),h.createElement(ur,{gap:Xe()?"medium":"x-large",justify:"center",justifyItems:"center",align:"center",className:w,"data-e2e":e["data-e2e"]},h.createElement(Nn,{name:o,color:a,width:i||"144",height:i||"144",className:l,multicolor:y}),h.createElement(ur,{gap:"x-small"},c&&h.createElement(er,ju(ju({},m),{density:"none",align:"center"}),c),u&&h.createElement(Gn,{align:"center"},u)),n))};Au.defaultProps={icon:"presentational-paper-rocket-dotted",iconColor:"primary",background:"white","data-e2e":"empty-data-placeholder","data-component":"empty-data-placeholder",tabIndex:0,multicolor:!1,titleProps:{weight:"regular",level:"4"}};var Ru=Au,Iu=function(){return Iu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Iu.apply(this,arguments)},Du=En(Gn,{preventTooltipOnMobile:!0,delay:1e3}),Mu=function(e){var t=e.children,n=e.colSpan,r=e.dataAttributes,o=e.cellHeight,a=e.isInColumnSelection,i=e.isInRowSelection,l=e.isFirst,u=e.style,c=e.className,s=e.tabIndex,f=e["data-e2e"],p=e["data-component"],d=e["aria-describedby"],m=ct("sg-table__cell",c,"sg-table__cell--height-".concat(o),a&&"sg-table__cell--is-selected",i&&"sg-table__cell--is-in-row-selection"),y=Iu(Iu({className:m,colSpan:n,tabIndex:s},r),{style:u,"data-e2e":f,"data-component":p,"aria-describedby":d});return"string"==typeof t?h.createElement(yt.Consumer,null,(function(e){var n=e.device;return h.createElement("td",Iu({},y),l&&n.isPhone?h.createElement(er,{truncate:!0,level:"4",density:"none"},t):h.createElement(Du,{truncate:!0,tooltip:t},t))})):h.createElement("td",Iu({},y),t)};Mu.defaultProps={"data-e2e":"table-cell","data-component":"table-cell",cellHeight:"medium",tabIndex:-1};var Fu=Mu,Lu=function(){return Lu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Lu.apply(this,arguments)},Uu=function(e){var t,n,r,o,a,i,l,u=e.className,c=e.children,s=e.loading,f=e.dragAndDrop,p=e.onContextMenu,d=e.onRefsReady,m=e.onRowPress,y=e.onRowTap,g=(t=m,n=y,r=h.useRef(!1),o=h.useRef(null),a=h.useRef(!1),i=h.useRef(!1),l=h.useRef(null),{handleTouchStart:function(e){r.current=!0,a.current=!1,o.current&&(clearTimeout(o.current),o.current=null),o.current=setTimeout((function(){a.current?n(e):t(e),o.current=null}),200)},handleTouchEnd:function(e){a.current=!0,o.current&&(clearTimeout(o.current),o.current=null,n(e))},handleClickStart:function(e){r.current||2===e.button||(i.current=!1,l&&clearTimeout(l.current),l.current=setTimeout((function(){i.current?n(e):t(e),l.current=null}),200))},handleClickEnd:function(e){r.current||2===e.button||(i.current=!0,l.current&&(clearTimeout(l.current),l.current=null,n(e)))}}),v=g.handleTouchStart,b=g.handleTouchEnd,w=g.handleClickStart,E=g.handleClickEnd,O=1;Array.isArray(c)&&(O=c.reduce((function(e,t){return e.concat(t)}),[]).filter(Boolean).length);var _=Lu({ref:d},f);return f||(_={onMouseDown:w,onMouseUp:E,onTouchStart:v,onTouchEnd:b}),h.createElement("tr",Lu({className:ct(u,"sg-table__row",s&&"table-row--loading"),onContextMenu:p,"data-e2e":e["data-e2e"]},_),s?h.createElement(Fu,{className:"table-row__cell--loading",colSpan:O},h.createElement("div",{className:"table-row__loader-wrapper"},h.createElement(Pr,{density:"none",position:"absolute",iconSize:"40"}))):c)};Uu.defaultProps={onClick:function(){return null},onContextMenu:function(){return null},onRefsReady:function(){return null},onRowPress:function(){return null},onRowTap:function(){return null},"data-e2e":"table-row"};var zu=Uu,Vu=function(){return Vu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Vu.apply(this,arguments)},Bu=function(e){return 0!==e.length&&e.find((function(e){return Boolean(e.footer)}))},Hu=function(e){var t=e.tableId,n=e.index;return"".concat(t,"-th-").concat(n)},Wu=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ku=function(){return Ku=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ku.apply(this,arguments)},qu=Object.defineProperty,Gu=function(e,t,n){return function(e,t,n){t in e?qu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Yu=function(e){function t(t){var n=e.call(this,t)||this;return Gu(n,"id"),n.id=un(),n}return Wu(t,e),t.prototype.getRowKey=function(e){return e[this.props.rowKey]||JSON.stringify(e)},t.prototype.getTransitionGroupProps=function(e,t){var n={className:"sg-table__body",component:"tbody","data-e2e":"table-body"};return this.props.reordable&&e&&t?Ku(Ku({},n),{id:this.id,ref:function(t){return t&&e.innerRef(document.querySelector("#".concat(t.props.id)))},style:{background:t.isDraggingOver?"#25b8d2":"transparent",width:"100%"}}):n},t.prototype.getCSSTransitionProps=function(){return this.props.disableRowAnimation?null:{classNames:"sg-table__row--animation",timeout:500}},t.prototype.getTableRowProps=function(e,t,n){var r=this.props,o=r.onContextMenuHandler,a=r.onRowPress,i=r.onRowTap,l=r.reordable,u=r.rowSelectionHandler,c={onContextMenu:function(t){return o({selectedRow:e,event:t})},onRowTap:function(t){u(e,t),i(e,t)},onRowPress:function(t){return a(e,t)},loading:(0,r.shouldRowLoading)(e),"data-e2e":"table-row"};return l&&t&&n?Ku(Ku({},c),{dragAndDrop:Ku(Ku({},t.draggableProps),t.dragHandleProps),onRefsReady:t.innerRef,style:Ku({userSelect:"none"},t.draggableProps.style)}):c},t.prototype.isRowExpanded=function(e){var t=this.props,n=t.isExpandedRowInComponentProps,r=t.expandableTemplate,o=Boolean(r);return n(e)&&o},t.prototype.renderTableCell=function(e){var t=e.column,n=e.index,r=e.rowIndex,o=this.props,a=o.data,i=o.cellHeight,l=o.isSelectedRowInComponentState,u=o.selectedColumns,c=o.tableId,s=a[r];if(!s)return null;var f=s[t.accessor],p=t.render?t.render(f,s):f,d=u.includes(n),m=l(s);return h.createElement(Fu,{key:"".concat(r,"-").concat(n),cellHeight:i,isInColumnSelection:d,isInRowSelection:m,isFirst:0===n,style:t.style,className:t.className,"aria-describedby":Hu({tableId:c,index:n}),dataAttributes:{"data-label":"string"==typeof t.header?t.header:null,"data-cell-index":n,"data-row-index":r}},p)},t.prototype.renderTableRow=function(e){var t=this,n=e.row,r=e.rowIndex,o=e.draggableProvided,a=e.draggableSnapshot,i=this.props.columns;return h.createElement(zu,Ku({},this.getTableRowProps(n,o,a)),i.map((function(e,n){return t.renderTableCell({column:e,index:n,rowIndex:r})})))},t.prototype.render=function(){var e=this,t=this.props,n=t.columns,r=t.data,o=t.expandableTemplate,a=t.disableRowAnimation,i=a?"tbody":qt.TransitionGroup,l=a?h.Fragment:qt.CSSTransition;return h.createElement(yt.Consumer,null,(function(t){var a=t.device;return h.createElement(i,Ku({},e.getTransitionGroupProps()),r.map((function(t,r){return h.createElement(l,Ku({key:e.getRowKey(t)},e.getCSSTransitionProps()),h.createElement(h.Fragment,null,h.createElement(zu,Ku(Ku({},e.getTableRowProps(t)),{className:e.isRowExpanded(t)?"sg-table__row-expanded":null}),n.slice(0,-1).map((function(t,n){return e.renderTableCell({column:t,index:n,rowIndex:r})})),a.isPhone&&e.isRowExpanded(t)&&h.createElement(Fu,{className:"sg-table__cell-expandable-wrapper",dataAttributes:{colSpan:n.length}},o(t,r)),n.slice(-1).map((function(t){return e.renderTableCell({column:t,index:n.length-1,rowIndex:r})}))),!a.isPhone&&e.isRowExpanded(t)&&h.createElement(zu,null,h.createElement(Fu,{className:"sg-table__cell-expandable-wrapper",dataAttributes:{colSpan:n.length},style:{padding:0}},o(t,r)))))})))}))},t}(h.Component);Gu(Yu,"defaultProps",{"data-e2e":"table-body"});var $u=Yu,Xu=function(e){var t=e.columnLength,n=e.rowLength,r=e.tableHead,o=Array(n).fill(null);return h.createElement("table",{className:"sg-table"},r,h.createElement("tbody",null,o.map((function(e,n){return h.createElement("tr",{key:n,className:"sg-table__row"},Array(t).fill(null).map((function(e,t,n){return h.createElement("td",{key:t,className:"sg-table__cell sg-table__cell--height-medium"},h.createElement("div",{className:"sg-table__cell--skeleton"}))})))}))))};Xu.defaultProps={"data-e2e":"table-cell","data-component":"table-cell",rowLength:5,tabIndex:-1};var Qu=Xu,Ju=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zu=function(){return Zu=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Zu.apply(this,arguments)},ec=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},tc=Object.defineProperty,nc=function(e,t,n){return function(e,t,n){t in e?tc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},rc=new Sa,oc="data-row-index",ac="data-cell-index",ic=function(e){function t(t){var n=e.call(this,t)||this;return nc(n,"state",{selectedRows:[]}),nc(n,"tableWrapperRef"),nc(n,"tableRef"),nc(n,"tableId",null),nc(n,"onTableClick",(function(e){var t=e.target;if("td"!==t.tagName&&(t=t.closest("td")),null!==t){var r=Number(t.getAttribute(oc)),o=Number(t.getAttribute(ac));n.props.onCellSelection({rowIndex:r,colIndex:o})}})),nc(n,"getColumnRender",(function(e,t,n){return e[0].render?e[0].render(t,n):t})),nc(n,"handleCellNavigation",(function(e){var t=e.event,r=e.cellAccumulator,o=void 0===r?0:r,a=e.rowAccumulator,i=void 0===a?0:a;nn({event:t,isDirectionForward:!(o<0||i<0),onComponentFiltering:function(e){var n=t.target,r=n.getAttribute(ac),a=n.getAttribute(oc);if(null!==r&&null!==a){var l=String(Number(a)+i),u=String(Number(r)+o);return e.getAttribute(oc)===l&&e.getAttribute(ac)===u}},onSuccessCallback:function(e){var t=n.tableRef.querySelectorAll('td[tabindex="0"]');t.length&&Array.from(t).forEach((function(e){e.setAttribute("tabindex","-1")})),e.setAttribute("tabindex",0)}})})),nc(n,"handleOnKeyDown",(function(e){var t=e.target.getAttribute("data-component"),r=t&&t.indexOf("table")>-1;kt(e)&&r&&nn({event:e,startingElement:n.tableRef}),Ct(e)&&r&&nn({event:e,startingElement:n.tableRef,isDirectionForward:!1});var o=zr(e.target);switch(e.key){case xt.DOWN:return e.target===n.tableWrapperRef&&Fr(o),void n.handleCellNavigation({event:e,rowAccumulator:1});case xt.UP:return void n.handleCellNavigation({event:e,rowAccumulator:-1});case xt.RIGHT:return void n.handleCellNavigation({event:e,cellAccumulator:1});case xt.LEFT:return void n.handleCellNavigation({event:e,cellAccumulator:-1});case xt.ENTER:case xt.SPACE:return r&&(e.preventDefault(),e.stopPropagation()),void Fr(o);default:return}})),nc(n,"renderNoData",(function(){var e=n.props,t=e.noDataProps,r=e.customNoDataComponent,o=e.translation;return r||h.createElement(Ru,Zu({background:"white",icon:"presentational-no-data-dotted",title:o.placeholderTitle,borderRadius:"medium",handleKeyDown:function(e){e.key!==xt.ESCAPE&&e.stopPropagation()}},t))})),nc(n,"renderDataTable",(function(e){var t=e.classesTable,r=e.propsToPropagate,o=e.showHeaderWithNoData,a=e.data;return n.props.showSkeleton?h.createElement(Qu,{tableHead:n.renderHead(),columnLength:Number(n.props.columns&&n.props.columns.length),rowLength:n.props.skeletonRowCount}):0!==a.length||o?h.createElement(h.Fragment,null,h.createElement("table",Zu({ref:function(e){n.tableRef=e},className:t},ht(r)),n.renderHead(),n.renderBody(),n.renderFooter()),0===a.length&&n.renderNoData()):n.renderNoData()})),n.tableId=un("sg-table-"),n}return Ju(t,e),t.prototype.componentDidMount=function(){var e=this.props.selectedRows;this.props.onCellSelection&&this.tableRef&&this.tableRef.addEventListener("click",this.onTableClick,!1),e&&this.setState({selectedRows:Array.from(new Set(e))})},t.prototype.componentDidUpdate=function(e){e.data.length!==this.props.data.length&&this.setState({selectedRows:[]}),ta(this.state.selectedRows,Array.from(new Set(this.props.selectedRows)))||this.setState({selectedRows:Array.from(new Set(this.props.selectedRows))}),this.tableRef&&e.onCellSelection&&!this.props.onCellSelection&&this.tableRef.removeEventListener("click",this.onTableClick,!1),this.tableRef&&!e.onCellSelection&&this.props.onCellSelection&&this.tableRef.addEventListener("click",this.onTableClick,!1)},t.prototype.componentWillUnmount=function(){this.tableRef&&this.tableRef.removeEventListener("click",this.onTableClick,!1)},t.prototype.onRowSelection=function(e){this.props.onRowSelection(e)},t.prototype.onContextMenuHandler=function(e){var t=e.event,n=e.selectedRow;if(this.props.selectable){var r=this.state.selectedRows.find((function(e){return ta(e,n)}));this.state.selectedRows.length<=1||!r?this.setState({selectedRows:[n]},this.props.onRowContextMenu({event:t,selectedRows:[n]})):this.props.onRowContextMenu({event:t,selectedRows:this.state.selectedRows})}},t.prototype.getColumnsToRender=function(e){var t=this;void 0===e&&(e=!1);var n,r=this.props,o=r.reordable,a=r.columns,i=r.expandableTemplate,l=r.onExpandToggle,u=r.translation,c=Boolean(i);return c&&e?(n=Nu(a)).concat({className:"sg-table__expand-toggle",render:function(e,n){return h.createElement(mo,{color:"neutral",onClick:function(){return l(n)}},t.isExpandedRowInComponentProps(n)?u.collapse:u.expand)}}):c?((n=Nu(a))[0].render=function(e,n){return h.createElement("div",null,h.createElement(Nn,{size:"10",tabIndex:-1,color:"primary",className:"sg-icon-expandable",onClick:function(){return l(n)},name:t.isExpandedRowInComponentProps(n)?"minus":"plus"}),t.getColumnRender(a,e,n))},n):o?((n=Nu(a))[0].render=function(e,n){return h.createElement("div",{className:"sg-table__cell-dnd-wrapper"},t.getColumnRender(a,e,n))},n):a},t.prototype.getEventKeys=function(e){return e.nativeEvent?{ctrlKey:e.nativeEvent.ctrlKey,metaKey:e.nativeEvent.metaKey,shiftKey:e.nativeEvent.shiftKey}:{ctrlKey:e.srcEvent.ctrlKey,metaKey:e.srcEvent.metaKey,shiftKey:e.srcEvent.shiftKey}},t.prototype.isSelectedRowInComponentState=function(e){var t=this,n=this.props.rowKey;return n?Boolean(this.state.selectedRows.find((function(t){return t[n]===e[n]}))):Boolean(this.state.selectedRows.find((function(n){return t.areObjectsEqual(n,e)})))},t.prototype.isExpandedRowInComponentProps=function(e){var t=this,n=this.props.expandedRows;return Boolean(n)&&Boolean(n.find((function(n){return t.areObjectsEqual(n,e)})))},t.prototype.areObjectsEqual=function(e,t){return JSON.stringify(e)===JSON.stringify(t)},t.prototype.toggleRowSelection=function(e){var t=this.isSelectedRowInComponentState(e)?[]:[e];this.setState({selectedRows:t},this.onRowSelection(t))},t.prototype.toggleRowsSelection=function(e,t){var n=this,r=this.props.data,o=this.getEventKeys(t),a=o.ctrlKey,i=o.metaKey,l=o.shiftKey,u=r.findIndex((function(t){return n.areObjectsEqual(t,e)})),c=[];if(l)for(var s=r.findIndex((function(e){return n.areObjectsEqual(e,n.state.selectedRows[0])})),f=this.state.selectedRows.length>0?s:u,p=Math.min(u,f),d=Math.max(u,f),h=p;h<=d;h++)c.push(r[h]);(a||i)&&(c=c.concat(this.state.selectedRows),this.isSelectedRowInComponentState(e)?c=this.state.selectedRows.filter((function(t){return n.areObjectsEqual(t,e)})):c.push(r[u])),this.setState({selectedRows:c},this.onRowSelection(c))},t.prototype.rowSelectionHandler=function(e,t){var n=this.getEventKeys(t),r=n.ctrlKey,o=n.metaKey,a=n.shiftKey;this.props.selectable&&(a||r||o?this.toggleRowsSelection(e,t):this.toggleRowSelection(e))},t.prototype.isColumnSelected=function(e){return this.props.selectedColumns.includes(e)},t.prototype.renderHead=function(){var e=this,t=this.props,n=t.headerBackground,r=t.cellHeight,o=ct("sg-table__head","sg-table__head--background-".concat(n)),a=this.getColumnsToRender();return a.length&&a.find((function(e){return e.header}))?h.createElement("thead",{className:o,"data-e2e":"table-head"},h.createElement("tr",null,a.map((function(t,n){var o=t.renderHead?t.renderHead:t.header,a=void 0!==t.header?t.header:t.accessor;rc.log('"column.renderHead" will be deprecated in favor of "column.render" '),rc.log('Using "cell.accessor" as default column header will be deprecated.');var i=e.isColumnSelected(n),l=ct("sg-table__cell","sg-table__head-cell","sg-table__cell--height-".concat(r),i&&"sg-table__cell--is-selected"),u=function(e){var t=e.cell,n=e.device;return n.isPhone?Vu({width:t.smSize,maxWidth:t.smSize},t.style):n.isTablet?Vu({width:t.mSize||t.smSize,maxWidth:t.mSize||t.smSize},t.style):n.isDesktop?Vu({width:t.lgSize||t.mSize||t.smSize,maxWidth:t.lgSize||t.mSize||t.smSize},t.style):Vu({},t.style)}({cell:t,device:e.context.device});return h.createElement("th",{id:Hu({tableId:e.tableId,index:n}),className:l,key:n,style:u,"data-cell-index":n,"data-row-index":-1,"data-component":"table-head",tabIndex:0===n?0:-1},"function"==typeof o?o(a):a)})))):null},t.prototype.renderFooter=function(){var e=this,t=this.props,n=t.footerBackground,r=t.cellHeight,o=this.props.columns,a=ct("sg-table__footer","sg-table__footer--background-".concat(n));return Bu(o)?h.createElement("tfoot",{className:a,"data-e2e":"table-footer"},h.createElement("tr",null,o.map((function(t,n){var o=e.isColumnSelected(n),a=ct("sg-table__cell","sg-table__cell--height-".concat(r),o&&"sg-table__cell--is-selected");return rc.log('Using "cell.renderFooterCell" as function will be deprecated.'),h.createElement("td",{className:a,key:"table-footer-".concat(n),style:Zu({},t.style),"data-cell-index":n},t.footer?e.renderFooterCell(t):"")})))):null},t.prototype.renderFooterCell=function(e){return"function"==typeof e.footer?e.footer():e.footer},t.prototype.renderBody=function(){var e=this,t=this.props,n=t.data,r=t.onReorder,o=t.onRowPress,a=t.onRowTap,i=t.reordable,l=t.rowKey,u=t.selectedColumns,c=t.shouldRowLoading,s=t.expandableTemplate,f=t.disableRowAnimation,p=t.cellHeight;return h.createElement($u,{columns:this.getColumnsToRender(this.context.device.isPhone),data:n,cellHeight:p,disableRowAnimation:f,expandableTemplate:s,isSelectedRowInComponentState:function(t){return e.isSelectedRowInComponentState(t)},isExpandedRowInComponentProps:function(t){return e.isExpandedRowInComponentProps(t)},onContextMenuHandler:function(t){var n=t.event,r=t.selectedRow;return e.onContextMenuHandler({event:n,selectedRow:r})},onReorder:r,onRowPress:o,onRowTap:a,reordable:i,rowKey:l,rowSelectionHandler:function(t,n){return e.rowSelectionHandler(t,n)},shouldRowLoading:c,selectedColumns:u,tableRef:this.tableRef,tableId:this.tableId})},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.columns,o=t.data,a=t.density,i=t.disableTableHead,l=t.mobileLayout,u=t.expandableTemplate,c=t.onLoadMore,s=t.reordable,f=t.shadow,p=t.showLoadMore,d=t.translation,m=t["data-e2e"],y=t["data-component"],g=ec(t,["className","columns","data","density","disableTableHead","mobileLayout","expandableTemplate","onLoadMore","reordable","shadow","showLoadMore","translation","data-e2e","data-component"]),v=(g.expandedRows,g.selectable,g.selectedRows,g.rowKey,g.onExpandToggle,g.onRowSelection,g.onRowContextMenu,g.onCellSelection,g.selectedColumns,g.onReorder,g.renderBeforeTableContent),b=g.renderAfterTableContent,w=(g.headerBackground,g.footerBackground,g.onRowTap,g.onRowPress,g.shouldRowLoading,g.disableRowAnimation,g.border),E=g.borderRadius,O=g.showHeaderWithNoData,_=void 0!==O&&O,S=ec(g,["expandedRows","selectable","selectedRows","rowKey","onExpandToggle","onRowSelection","onRowContextMenu","onCellSelection","selectedColumns","onReorder","renderBeforeTableContent","renderAfterTableContent","headerBackground","footerBackground","onRowTap","onRowPress","shouldRowLoading","disableRowAnimation","border","borderRadius","showHeaderWithNoData"]),x=Boolean(u),k=0===o.length,C=this.context.device&&!this.context.device.isPhone,P=ct("sg-table-wrapper",f&&"sg-table-wrapper--box-shadow",a&&"sg-table-wrapper--density-".concat(a),l&&"sg-table-wrapper--mobile-".concat(l),x&&"sg-table-wrapper--expandable",s&&"sg-table-wrapper--reordable",k&&"sg-table-wrapper--no-data",i&&"sg-table-wrapper--disabled-header",C&&ar(w,E),n),T=ct("sg-table",!Bu(r)&&"sg-table--no-footer");return h.createElement("div",{ref:function(t){e.tableWrapperRef=t},className:P,"data-e2e":m,"data-component":y,onKeyDown:this.handleOnKeyDown},h.createElement("div",{className:"sg-table__before-content"},v()),this.renderDataTable({classesTable:T,data:o,propsToPropagate:S,showHeaderWithNoData:_}),p&&h.createElement("div",{className:"sg-table-load-more","data-e2e":"table-load-more"},h.createElement(mo,{onClick:function(t){var n=zr(e.tableRef,{isDirectionForward:!1});Fr(n),c(t)},onKeyDown:function(e){e.stopPropagation(),kt(e)&&nn({event:e}),Ct(e)&&nn({event:e,isDirectionForward:!1})}},d.loadMoreText)),h.createElement("div",{className:"sg-table__after-content"},b()))},t}(h.Component);nc(ic,"contextType",yt),nc(ic,"displayName","Table"),nc(ic,"defaultProps",{columns:[],data:[],density:"medium",disableTableHead:!1,disableRowAnimation:!1,mobileLayout:"card",selectable:!1,headerBackground:"default",footerBackground:"default",selectedColumns:[],onExpandToggle:function(){return null},onRowSelection:function(){return null},onRowTap:function(){return null},onRowPress:function(){return null},onRowContextMenu:function(){return null},renderBeforeTableContent:function(){return null},renderAfterTableContent:function(){return null},shouldRowLoading:function(){return!1},reordable:!1,shadow:!1,translation:{loadMoreText:"Load More",expand:"Expand",collapse:"Collapse",placeholderTitle:"Nothing here yet"},cellHeight:"medium","data-e2e":"table","data-component":"table"});var lc,uc=ic,cc=function(){return cc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cc.apply(this,arguments)},sc=function(e){var t=e.resources,n=e.data,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["resources","data"]);return h.createElement("div",{style:{position:"relative"}},h.createElement(jr,{resources:t},h.createElement(Tu,{data:n},h.createElement(Pu.Consumer,null,(function(e){var t=e.sortedData,o=void 0===t?[]:t;return h.createElement(uc,cc({data:o,showSkeleton:!n},r))})))))},fc=function(e){return e.items.options},pc=function(e){return e.items[Jo.NOTIFICATIONS.resourceName]||[]},dc=function(e){return e.items[Jo.HARDENING.resourceName]||[]},hc=function(e){return e.items[Jo.EBOOK.resourceName]},mc=function(e){return e.items[Jo.ACTIVITY_UNKNOWN.resourceName]||{}},yc=function(e){return e.items[Jo.ACTIVITY_REGISTERED.resourceName]||{}},gc=function(e){return e.items[Jo.WEEKLY_REPORTS.resourceName]||{}},vc=function(e){return e.items[Jo.GET_VISITOR_STATUS.resourceName]||{}},bc=function(e){return e.items[Jo.RATE.resourceName]||{}},wc=function(){return wc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},wc.apply(this,arguments)},Ec=((lc={})[Jo.ACTIVITY_REGISTERED.resourceName]=yc,lc[Jo.ACTIVITY_UNKNOWN.resourceName]=mc,lc[Jo.ACTIVITY_BLOCKED_USERS.resourceName]=function(e){return e.items[Jo.ACTIVITY_BLOCKED_USERS.resourceName]||{}},lc[Jo.WEEKLY_REPORTS.resourceName]=gc,lc),Oc=function(e){var t,n,r=e.title,o=e.columns,a=e.api,i=e.limitedView,l=e.shadow,u=M(),c=z(Ec[a.resourceName]),s=c.entries,f=c.filters,p=c.page,d=c.pages;return h.useEffect((function(){u(Yo(wc(wc({},a),{requestTypeName:Oo,body:{limitedView:Number(i)}})))}),[u,a,i]),h.createElement("div",null,h.createElement(ea,{justify:"space-between",align:"center"},r&&h.createElement(ro,null,r),!i&&h.createElement("div",null,h.createElement(Ln,{icon:"refresh-thin",onClick:function(){return u(Yo(wc(wc({},a),{requestTypeName:Oo})))}}),f&&h.createElement(bu,{title:_e("Filter Activity"),config:(t=f,n=function(e){return u(Yo(wc(wc({},a),{body:{filters:e}})))},void 0===t&&(t=[]),t.reduce((function(e,t,r){var o;return wc(wc({},e),((o={})[r]=wc(wc({},t),{onChange:n}),o))}),{})),translations:{closeBtnLabel:_e("close").toString(),resetBtnLabel:_e("reset").toString()},onResetFilter:function(){return u(Yo(a))}}))),h.createElement(_u,{padding:"none",elevation:l?"1":"none"},h.createElement(sc,{data:s,columns:o,cellHeight:"small",resources:[Oo,Su],showLoadMore:p<d,onLoadMore:function(){var e;u((e=wc(wc({},a),{body:{filters:f,page:p+1},requestTypeName:Oo}),xu({type:Su,requestTypeName:"UPDATE_ACTIVITY_LOG_DATA",payload:e},undefined)))}})))},_c=function(){return _c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_c.apply(this,arguments)},Sc=function(e){var t=M();return h.createElement(Oc,_c({api:Jo.ACTIVITY_BLOCKED_USERS,shadow:!0,columns:[{header:_e("Blocked On"),accessor:"ts",smSize:"170px"},{header:_e("User/Ip"),accessor:"user"},{header:_e("Actions"),accessor:"ts",style:{textAlign:"right"},smSize:"140px",render:function(e,n){var r=n.type,o=n.visitor_id,a=n.user;return h.createElement(mo,{color:"secondary",size:"small",onClick:function(){var e=function(e,t,n){var r="ip"===e&&0===t?{ip:n}:{block:0};return"ip"!==e?{body:r,endpoint:Jo.BLOCK_USER.endpoint}:0===t?{body:r,endpoint:Jo.LOGIN_UNBLOCK.endpoint}:{body:r,endpoint:Jo.BLOCK_IP.endpoint}}(r,o,a),n=e.endpoint,i=e.body;t(Xo({endpoint:n,itemId:o,body:i},{onComplete:function(){return t(Yo(Jo.ACTIVITY_BLOCKED_USERS))}}))}},_e("unblock"))}}]},e))},xc="unknown",kc="registered",Cc="blocked",Pc="weekly-reports",Tc="log-settings",Nc=[{type:xc,label:"Unknown"},{type:kc,label:"Registered"},{type:Cc,label:"Blocked"},{type:Pc,label:"Weekly Reports"},{type:Tc,label:"Log Settings"}],jc=_e("Email"),Ac=function(){return Ac=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ac.apply(this,arguments)},Rc=function(e){var t=e.checked,n=e.className,r=e.id,o=e.disabled,a=e.label,i=e.name,l=e.size,u=e.style,c=e.tabIndex,s=e.reverse,f=e["data-e2e"],p=e["data-component"],d=e["aria-label"],m=e["aria-labelledby"],y=e["aria-describedby"],g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["checked","className","id","disabled","label","name","size","style","tabIndex","reverse","data-e2e","data-component","aria-label","aria-labelledby","aria-describedby"]),v=ct("sg-switch",n,o&&"sg-switch--disabled","sg-switch--".concat(l));return h.createElement("label",{className:v,style:u,tabIndex:c,"data-e2e":f,"data-component":p,onKeyDown:function(e){return function(e){e.key!==xt.SPACE&&e.key!==xt.ENTER||(e.preventDefault(),e.stopPropagation(),e.target.querySelector('[data-html="input"]').click())}(e)},role:"switch","aria-checked":t,"aria-label":d,"aria-labelledby":m,"aria-describedby":y},h.createElement("input",Ac(Ac({className:"sg-switch__input"},ht(g)),{id:r,type:"checkbox","data-html":"input",name:i,disabled:o,checked:t})),a&&s&&h.createElement("span",{className:"sg-switch__label sg-switch--reversed"},a),h.createElement("span",{className:ct("sg-switch__slider",t&&"sg-switch__slider--checked")}),a&&!s&&h.createElement("span",{className:"sg-switch__label"},a))};Rc.displayName="Switch",Rc.defaultProps={size:"medium",style:{},tabIndex:0,"data-e2e":"switch","data-component":"switch"};var Ic=Rc,Dc=["default","outlined","link"],Mc=function(){return Mc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Mc.apply(this,arguments)},Fc=function(e){var t=e.children,n=e.className,r=e.color,o=e.size,a=e.type,i=e.padding,l=e.tabIndex,u=e["data-e2e"],c=e["data-component"],s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","color","size","type","padding","tabIndex","data-e2e","data-component"]),f=[{class:"sg-label--type-",props:Dc,selected:a},{class:"sg-label--size-",props:Ft(),selected:o}],d=ct(n,an(r),Bt(i)),m=st({styles:p.default,classes:Mc({"sg-label":!0},ft(f)),className:d}),y=st({styles:p.default,classes:{"sg-label__text":!0}});return h.createElement("span",Mc({className:m,"data-e2e":u,"data-component":c,tabIndex:l},ht(s)),h.createElement("span",{className:y},t))};Fc.defaultProps={"data-e2e":"label","data-component":"label",size:"small",type:"default",color:"light"};var Lc,Uc=Fc,zc=function(e){var t=e.label,n=e.title,r=e.text,o=e.action,a=e.resources;return h.createElement(ur,{className:"sg-security-list",border:["none","none","small","none"],padding:"responsive"},h.createElement(jr,{resources:a},h.createElement("div",null,h.createElement(ea,{align:"center"},h.createElement(ro,{weight:"bold",density:"compact"},n),h.createElement(Qa,{size:"x-small"}),t&&h.createElement(Uc,{color:"primary"},t)),h.createElement(Gn,null,r)),h.createElement(ea,{align:"center"},o)))},Vc=((Lc={})[xe.LOGIN_SETTINGS]="login",Lc[xe.SITE_SECURITY]="security",Lc[xe.ACTIVITY_LOG]="activity",Lc),Bc=function(){return Bc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bc.apply(this,arguments)},Hc=function(e){var t,n=e.title,r=M(),o=z(fc),a=o.disable_activity_log,i=o.log_lifetime,l=null===(t=null==i?void 0:i.find((function(e){return e.selected})))||void 0===t?void 0:t.value;return h.useEffect((function(){r(Yo(Bc(Bc({},Jo.FETCH_OPTIONS),{method:"POST",body:{page:Vc[xe.ACTIVITY_LOG]}})))}),[r]),h.createElement("div",null,h.createElement(ro,null,n),h.createElement(_u,{padding:"none"},h.createElement(zc,{title:_e("Enable Activity Log"),text:_e("The Activity Log feature is enabled by default and records all website activity events over the last 12 days, including human visits, bot crawls, login attempts, and more. If you expect high traffic, please disable the activity log to stop recording your website's activity events."),resources:[Po],action:h.createElement(Ic,{checked:Boolean(!a),onChange:function(){return r(Xo(Bc(Bc({},Jo.MANAGE_ACTIVITY_LOG),{requestTypeName:Po,body:{disable_activity_log:Number(!a)}})))}})}),h.createElement(zc,{title:_e("Number of days logged"),text:_e("From here, you can select the number of days you want to log your website's activity events for. You can choose between 1 and 12 days. Please note, that if you select less than 8 days, you will not receive your site's weekly reports."),resources:[To],action:h.createElement(Rl,{options:i,optionValue:"value",optionLabel:"label",selectedValue:l,disabled:Boolean(a),onChange:function(e){return r(Xo(Bc(Bc({},Jo.ACTIVITY_LOG_LIFETIME),{requestTypeName:To,body:{log_lifetime:e}})))}})})))},Wc=function(e){return e.Open="open",e.Close="close",e}(Wc||{}),Kc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qc=function(){return qc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qc.apply(this,arguments)},Gc=Object.defineProperty,Yc=function(e,t,n){return function(e,t,n){t in e?Gc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},$c=function(e){function t(t){var n=e.call(this,t)||this;return Yc(n,"listRef"),Yc(n,"timeOutId"),Yc(n,"state",{animation:null}),Yc(n,"triggerClose",(function(e){e.preventDefault(),e.stopPropagation(),e.nativeEvent.stopImmediatePropagation();var t=n.props.onClose;n.state.animation!==Wc.Close&&n.setState({animation:Wc.Close},(function(){setTimeout((function(){t()}),400)}))})),Yc(n,"handleBlur",(function(e){e.persist(),n.timeOutId=setTimeout((function(){n.triggerClose(e)}))})),n.timeOutId=null,n.listRef=h.createRef(),n}return Kc(t,e),t.prototype.componentDidMount=function(){this.setPosition(),this.listRef&&this.listRef.current.focus(),this.setState({animation:Wc.Open})},t.prototype.componentDidUpdate=function(){this.setPosition()},t.prototype.setPosition=function(){var e=this.props,t=e.position,n=e.priority,r=e.rect;ha(t,r,this.context.device,this.listRef,{priority:n})},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.children,o=t.position,a=t.tabIndex,i=t["data-e2e"],l=t["data-component"],u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(t,["className","children","position","tabIndex","data-e2e","data-component"]),c=this.state.animation,s=this.context.device.isPhone,f=ct(s&&"sg-context-menu-list-wrapper--mobile",c&&"sg-context-menu-list-wrapper--".concat(c)),p=ct(!s&&"sg-context-menu-list--position-".concat(o),c&&"sg-context-menu-list--".concat(c),n);return h.createElement(ga,qc(qc({wrapperClasses:f,classes:p,ref:this.listRef},ht(u)),{onBlur:this.handleBlur,onClick:this.triggerClose,onFocus:function(){return clearTimeout(e.timeOutId)},"data-e2e":i,"data-component":l,tabIndex:a,"aria-labelledby":"menu-button"}),r)},t}(h.Component);Yc($c,"contextType",yt),Yc($c,"displayName","ContextMenuList"),Yc($c,"defaultProps",{position:"absolute",onClose:function(){return null},"data-e2e":"context-menu-list","data-component":"context-menu-list"});var Xc=$c,Qc=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Jc=function(){return Jc=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Jc.apply(this,arguments)},Zc=Object.defineProperty,es=function(e,t,n){return function(e,t,n){t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},ts=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return es(t,"state",{opened:!1,rect:{top:null,right:null,bottom:null,left:null}}),es(t,"menuRef",h.createRef()),es(t,"closeMenu",(function(){var e=t.props.onClose;t.setState({opened:!1}),e&&e()})),es(t,"openMenu",(function(e){var n=cn(e.currentTarget),r=n.height+n.top+window.pageYOffset,o=window.innerWidth-(n.left+n.width),a=window.innerHeight-n.top,i=n.left;t.setState({rect:{top:"".concat(r,"px"),right:"".concat(o,"px"),bottom:"".concat(a,"px"),left:"".concat(i,"px")},opened:!0})})),es(t,"toggleMenu",(function(e){return t.state.opened?t.closeMenu():t.openMenu(e)})),t}return Qc(t,e),t.prototype.handleKeyDown=function(e){return e.key!==xt.ENTER&&e.key!==xt.SPACE||(e.preventDefault(),this.openMenu(e)),e.key===xt.ESCAPE&&(e.preventDefault(),this.closeMenu()),kt(e)?nn({event:e,startingElement:this.menuRef.current}):Ct(e)?nn({event:e,startingElement:this.menuRef.current,isDirectionForward:!1}):void 0},t.prototype.renderContextMenuListComponent=function(){var e=this.props,t=e.children,n=e.className,r=e.position,o=e.priority,a=this.state.rect;return h.createElement(Xc,{className:n,onClose:this.closeMenu,position:r,rect:a,priority:o},h.createElement(fa,null),h.createElement(ia,{hasTabHandling:!1,hasArrowHandling:!0},t))},t.prototype.renderContextMenuList=function(){return"fixed"===this.props.position||this.context.device.isPhone?m.createPortal(this.renderContextMenuListComponent(),document.body):this.renderContextMenuListComponent()},t.prototype.render=function(){var e=this,t=this.props,n=t.className,r=t.opener,o=t["data-e2e"],a=t["data-component"],i=t["aria-label"],l=this.state.opened,u=ct("sg-context-menu",n),c=h.cloneElement(r,{isActive:l,"aria-haspopup":!0,"aria-expanded":l});return h.createElement("div",Jc(Jc({ref:this.menuRef,className:u},ht(this.props)),{onClick:this.toggleMenu,onKeyDown:function(t){return e.handleKeyDown(t)},"data-e2e":o,"data-component":a,"aria-label":i}),c,l&&h.createElement("div",{className:"sg-context-menu--click-prevent"}),l&&this.renderContextMenuList())},t}(h.Component);es(ts,"contextType",yt),es(ts,"displayName","ContextMenu"),es(ts,"defaultProps",{position:"absolute",onClose:function(){return null},"data-e2e":"context-menu","data-component":"context-menu"});var ns=ts,rs=function(){return rs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},rs.apply(this,arguments)},os=function(e){return h.createElement(Jl,rs({},e))};os.displayName="ContextMenuItem",os.defaultProps={onClick:function(){return null},iconSize:"14",tabIndex:0,"data-e2e":"context-menu-item","data-component":"context-menu-item"};var as=os,is=Object.defineProperty,ls=function(e,t,n){return function(e,t,n){t in e?is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},us=function(){function e(){ls(this,"subscribersOnOpen",{}),ls(this,"subscribersOnClose",{}),ls(this,"subscribersOnData",{})}return e.prototype.subscribe=function(e,t,n){switch(void 0===n&&(n="visibility"),n){case"open":this.subscribersOnOpen[e]=this.subscribersOnOpen[e]?this.subscribersOnOpen[e].concat(t):[t];break;case"close":this.subscribersOnClose[e]=this.subscribersOnClose[e]?this.subscribersOnClose[e].concat(t):[t];break;case"visibility":this.subscribersOnOpen[e]=this.subscribersOnOpen[e]?this.subscribersOnOpen[e].concat(t):[t],this.subscribersOnClose[e]=this.subscribersOnClose[e]?this.subscribersOnClose[e].concat(t):[t];break;case"data":this.subscribersOnData[e]=this.subscribersOnData[e]?this.subscribersOnData[e].concat(t):[t]}},e.prototype.emit=function(e,t,n){var r,o,a;switch(void 0===n&&(n=null),t){case"open":null==(r=this.subscribersOnOpen[e])||r.forEach((function(e){return e("open")}));break;case"close":null==(o=this.subscribersOnClose[e])||o.forEach((function(e){return e("close")}));break;case"data":null==(a=this.subscribersOnData[e])||a.forEach((function(e){return e(n)}));break;case"visibility":throw"Cannot open and close dialog at the same time"}},e.prototype.unsubscribe=function(e,t,n){var r,o,a,i,l;switch(void 0===n&&(n="visibility"),n){case"open":this.subscribersOnOpen[e]=null==(r=this.subscribersOnOpen[e])?void 0:r.filter((function(e){return e!==t}));break;case"close":this.subscribersOnClose[e]=null==(o=this.subscribersOnClose[e])?void 0:o.filter((function(e){return e!==t}));break;case"visibility":this.subscribersOnOpen[e]=null==(a=this.subscribersOnOpen[e])?void 0:a.filter((function(e){return e!==t})),this.subscribersOnClose[e]=null==(i=this.subscribersOnClose[e])?void 0:i.filter((function(e){return e!==t}));break;case"data":this.subscribersOnData[e]=null==(l=this.subscribersOnData[e])?void 0:l.filter((function(e){return e!==t}))}},e.prototype.open=function(e){this.emit(e,"open")},e.prototype.close=function(e){this.emit(e,"close")},e.prototype.hidrate=function(e,t){void 0===t&&(t=null),this.emit(e,"data",t)},e}(),cs=new us,ss="CUSTOM_LOGIN_URL",fs="LOGIN_ACCESS",ps="CHANGE_ADMIN_USERNAME",ds="RESET_TWO_FACTOR",hs="MANAGE_IP_TRAFFIC",ms="MANAGE_USER_TRAFFIC",ys="EDIT_EMAIL_RECORDS",gs="DELETE_EMAIL_RECORDS",vs="CONSENT_DIALOG",bs=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function l(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}u((r=r.apply(e,t||[])).next())}))},ws=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}},Es=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Os=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},_s=function(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Ss=function(e){return"checkbox"===e.type},xs=function(e){return null==e},ks=function(e){return"object"==typeof e},Cs=function(e){return!xs(e)&&!Array.isArray(e)&&ks(e)&&!(e instanceof Date)},Ps=function(e){return e.substring(0,e.search(/.\d/))||e},Ts=function(e){return e.filter(Boolean)},Ns=function(e){return void 0===e},js=function(e,t,n){void 0===e&&(e={});var r=Ts(t.split(/[,[\].]+?/)).reduce((function(e,t){return xs(e)?e:e[t]}),e);return Ns(r)||r===e?Ns(e[t])?n:e[t]:r},As="blur",Rs="onChange",Is="onSubmit",Ds="all",Ms="undefined",Fs="pattern",Ls="required",Us=function(e,t){var n=Object.assign({},e);return delete n[t],n},zs=h.createContext(null);zs.displayName="RHFContext";var Vs=function(){return h.useContext(zs)},Bs=function(e,t,n,r,o){return void 0===o&&(o=!0),e?new Proxy(t,{get:function(e,t){if(t in e)return n.current[t]!==Ds&&(n.current[t]=!o||Ds),r&&(r.current[t]=!0),e[t]}}):t},Hs=function(e){return Cs(e)&&!Object.keys(e).length},Ws=function(e,t,n){return Hs(e)||Object.keys(e).length>=Object.keys(t).length||Object.keys(e).find((function(e){return t[e]===(!n||Ds)}))},Ks=typeof window!==Ms&&typeof window.HTMLElement!==Ms&&typeof document!==Ms,qs=Ks?"Proxy"in window:typeof Proxy!==Ms;var Gs=function(e){return e.render((n=(t=e).name,r=t.rules,o=t.defaultValue,a=t.control,i=t.shouldUnregister,l=Vs(),u=a||l.control,c=u.defaultValuesRef,s=u.register,f=u.fieldsRef,p=u.unregister,d=u.fieldArrayNamesRef,m=u.controllerSubjectRef,y=u.shouldUnmountUnregister,g=s(n,r),v=g.onChange,b=g.onBlur,w=g.ref,E=Es(h.useState(Ns(js(f.current,n)._f.value)||function(e,t){return Os([],Es(e),!1).some((function(e){return Ps(t)===e}))}(d.current,n)?Ns(o)?js(c.current,n):o:js(f.current,n)._f.value),2),O=E[0],_=E[1],S=function(e){var t=Vs(),n=e&&e.control||t.control,r=n.formStateRef,o=n.formStateSubjectRef,a=n.readFormStateRef,i=Es(h.useState(r.current),2),l=i[0],u=i[1],c=h.useRef({isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1});return h.useEffect((function(){var e=o.current.subscribe({next:function(e){Ws(e,c.current)&&u(Object.assign(Object.assign({},r.current),e))}});return function(){return e.unsubscribe()}}),[]),Bs(qs,l,a,c,!1)}({control:a||l.control}),js(f.current,n)._f.value=O,h.useEffect((function(){var e=m.current.subscribe({next:function(e){return(!e.name||n===e.name)&&_(js(e.values,n))}});return w({target:O}),function(){e.unsubscribe(),(y||i)&&p(n)}}),[n]),{field:{onChange:function(e){var t=function(e){return Cs(e)&&e.target?Ss(e.target)?e.target.checked:e.target.value:e}(e);_(t),v({target:{value:t,name:n},type:"change"})},onBlur:function(){b({target:{name:n},type:As})},name:n,value:O,ref:w},formState:S,fieldState:Object.defineProperties({},{invalid:{get:function(){return!!js(S.errors,n)}},isDirty:{get:function(){return!!js(S.dirtyFields,n)}},isTouched:{get:function(){return!!js(S.touchedFields,n)}},error:{get:function(){return js(S.errors,n)}}})}));var t,n,r,o,a,i,l,u,c,s,f,p,d,m,y,g,v,b,w,E,O,_,S},Ys=function(e,t,n,r,o){var a;return t?Object.assign(Object.assign({},n[e]),{types:Object.assign(Object.assign({},n[e]&&n[e].types?n[e].types:{}),(a={},a[r]=o||!0,a))}):{}},$s=function(e){return/^\w*$/.test(e)},Xs=function(e){return Ts(e.replace(/["|']|\]/g,"").split(/\.|\[/))};function Qs(e,t,n){for(var r=-1,o=$s(t)?[t]:Xs(t),a=o.length,i=a-1;++r<a;){var l=o[r],u=n;if(r!==i){var c=e[l];u=Cs(c)||Array.isArray(c)?c:isNaN(+o[r+1])?{}:[]}e[l]=u,e=e[l]}return e}var Js=function(e,t,n){var r,o;try{for(var a=_s(n||Object.keys(e)),i=a.next();!i.done;i=a.next()){var l=i.value,u=js(e,l);if(u){var c=u._f,s=Us(u,"_f");if(c&&t(c.name)){if(c.ref.focus&&Ns(c.ref.focus()))break;if(c.refs){c.refs[0].focus();break}}else Cs(s)&&Js(s,t)}}}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=a.return)&&o.call(a)}finally{if(r)throw r.error}}},Zs=function(e,t,n){for(var r in void 0===t&&(t={current:{}}),void 0===n&&(n={}),e.current){var o=e.current[r];if(o){var a=o._f,i=Us(o,"_f");Qs(n,r,a?a.ref.disabled||a.refs&&a.refs.every((function(e){return e.disabled}))?void 0:a.value:Array.isArray(o)?[]:{}),i&&Zs({current:i},t,n[r])}}return Object.assign(Object.assign({},t.current),n)},ef=function(e,t){return void 0===e&&(e=[]),e.map((function(e){var n,r;return Object.assign(((n={})[t]=e&&e[t]||(r=typeof performance===Ms?Date.now():1e3*performance.now(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=(16*Math.random()+r)%16|0;return("x"==e?t:3&t|8).toString(16)}))),n),e)}))},tf=function(e){return xs(e)||!ks(e)};function nf(e,t,n){var r,o;if(tf(e)||tf(t)||e instanceof Date||t instanceof Date)return e===t;if(!h.isValidElement(e)){var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;try{for(var l=_s(a),u=l.next();!u.done;u=l.next()){var c=u.value,s=e[c];if(!n||"ref"!==c){var f=t[c];if((Cs(s)||Array.isArray(s))&&(Cs(f)||Array.isArray(f))?!nf(s,f,n):s!==f)return!1}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}}return!0}function rf(e,t){if(tf(e)||tf(t))return t;for(var n in t){var r=e[n],o=t[n];try{e[n]=Cs(r)&&Cs(o)||Array.isArray(r)&&Array.isArray(o)?rf(r,o):o}catch(e){}}return e}function of(e,t,n,r,o){for(var a,i=-1;++i<e.length;){for(var l in e[i])Array.isArray(e[i][l])?(!n[i]&&(n[i]={}),n[i][l]=[],of(e[i][l],js(t[i]||{},l,[]),n[i][l],n[i],l)):nf(js(t[i]||{},l),e[i][l])?Qs(n[i]||{},l):n[i]=Object.assign(Object.assign({},n[i]),((a={})[l]=!0,a));r&&!n.length&&delete r[o]}return n}var af=function(e,t,n){return rf(of(e,t,n.slice(0,e.length)),of(t,e,n.slice(0,e.length)))};function lf(e,t){return Os(Os([],Es(e),!1),Es(Array.isArray(t)?t:[t]),!1)}var uf=function(e){return Array.isArray(e)?Array(e.length).fill(void 0):void 0};function cf(e,t,n){return Os(Os(Os([],Es(e.slice(0,t)),!1),Es(Array.isArray(n)?n:[n]),!1),Es(e.slice(t)),!1)}var sf=function(e,t,n){return Array.isArray(e)?(Ns(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[]};function ff(e,t){return Os(Os([],Es(Array.isArray(t)?t:[t]),!1),Es(e),!1)}var pf=function(e,t){return Ns(t)?[]:function(e,t){var n,r,o=0,a=Os([],Es(e),!1);try{for(var i=_s(t),l=i.next();!l.done;l=i.next()){var u=l.value;a.splice(u-o,1),o++}}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return Ts(a).length?a:[]}(e,(Array.isArray(t)?t:[t]).sort((function(e,t){return e-t})))},df=function(e,t,n){e[t]=[e[n],e[n]=e[t]][0]},hf=function(e){return"boolean"==typeof e};function mf(e,t){var n,r=$s(t)?[t]:Xs(t),o=1==r.length?e:function(e,t){for(var n=t.slice(0,-1).length,r=0;r<n;)e=Ns(e)?r++:e[t[r++]];return e}(e,r),a=r[r.length-1];o&&delete o[a];for(var i=0;i<r.slice(0,-1).length;i++){var l=-1,u=void 0,c=r.slice(0,-(i+1)),s=c.length-1;for(i>0&&(n=e);++l<c.length;){var f=c[l];u=u?u[f]:e[f],s===l&&(Cs(u)&&Hs(u)||Array.isArray(u)&&!u.filter((function(e){return Cs(e)&&!Hs(e)||hf(e)})).length)&&(n?delete n[f]:delete e[f]),n=u}}return e}var yf=function(e){var t=e.control,n=e.name,r=e.keyName,o=void 0===r?"id":r,a=e.shouldUnregister,i=Vs(),l=h.useRef(""),u=t||i.control,c=u.isWatchAllRef,s=u.watchFieldsRef,f=u.getIsDirty,p=u.watchSubjectRef,d=u.fieldArraySubjectRef,m=u.fieldArrayNamesRef,y=u.fieldsRef,g=u.defaultValuesRef,v=u.formStateRef,b=u.formStateSubjectRef,w=u.readFormStateRef,E=u.validFieldsRef,O=u.fieldsWithValidationRef,_=u.fieldArrayDefaultValuesRef,S=u.unregister,x=u.shouldUnmountUnregister,k=Es(h.useState(ef(js(_.current,Ps(n))?js(_.current,n,[]):js(g.current,n,[]),o)),2),C=k[0],P=k[1];Qs(_.current,n,Os([],Es(C),!1)),m.current.add(n);var T=function(e){return e.map((function(e){return Us(e||{},o)}))},N=function(){var e=js(Zs(y,g),n,[]);return ef(js(_.current,n,[]).map((function(t,n){return Object.assign(Object.assign({},t),e[n])})),o)},j=function(e,t){return t?Ns(t.focusIndex)?t.focusName?t.focusName:t.shouldFocus?"".concat(n,".").concat(e):"":"".concat(n,".").concat(t.focusIndex):"".concat(n,".").concat(e)},A=function(e){return void 0===e&&(e=[]),P(ef(e,o))},R=function(e){return!Ts(js(e,n,[])).length&&mf(e,n)},I=function(e,t,r,o){if(void 0===r&&(r=[]),void 0===o&&(o=!0),js(y.current,n)){var a=e(js(y.current,n),t.argA,t.argB);o&&Qs(y.current,n,a)}Array.isArray(js(v.current.errors,n))&&(a=e(js(v.current.errors,n),t.argA,t.argB),o&&Qs(v.current.errors,n,a),R(v.current.errors)),w.current.touchedFields&&js(v.current.touchedFields,n)&&(a=e(js(v.current.touchedFields,n),t.argA,t.argB),o&&Qs(v.current.touchedFields,n,a),R(v.current.touchedFields)),(w.current.dirtyFields||w.current.isDirty)&&(Qs(v.current.dirtyFields,n,af(T(r),js(g.current,n,[]),js(v.current.dirtyFields,n,[]))),function(e){e&&Qs(v.current.dirtyFields,n,af(T(e),js(g.current,n,[]),js(v.current.dirtyFields,n,[])))}(r),R(v.current.dirtyFields)),w.current.isValid&&(Qs(E.current,n,e(js(E.current,n,[]),t.argA)),R(E.current),Qs(O.current,n,e(js(O.current,n,[]),t.argA)),R(O.current)),b.current.next({isDirty:f(n,T(r)),errors:v.current.errors,isValid:v.current.isValid})},D=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=""),e.forEach((function(e,o){return!tf(e)&&Object.entries(e).forEach((function(e){var a=Es(e,2),i=a[0],l=a[1],u="".concat(r||n,".").concat(r?o:t+o,".").concat(i);Array.isArray(l)?D(l,o,u):Qs(y.current,u,{_f:{ref:{name:u},name:u,value:l}})}))}))};return h.useEffect((function(){var e,t;if(c.current)b.current.next({});else try{for(var r=_s(s.current),o=r.next();!o.done;o=r.next()){var a=o.value;if(n.startsWith(a)){b.current.next({});break}}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}p.current.next({name:n,value:js(Zs(y,g),n,[])}),l.current&&Js(y.current,(function(e){return e.startsWith(l.current)})),l.current="",d.current.next({name:n,fields:T(Os([],Es(C),!1))})}),[C,n]),h.useEffect((function(){var e=d.current.subscribe({next:function(e){var t=e.name,r=e.fields;e.isReset&&(mf(y.current,t||n),t?Qs(_.current,t,r):_.current=r,A(js(_.current,n)))}});return!js(y.current,n)&&Qs(y.current,n,[]),function(){e.unsubscribe(),(x||a)&&S(n)}}),[]),{swap:h.useCallback((function(e,t){var n=N();df(n,e,t),I(df,{argA:e,argB:t},n,!1),A(n)}),[n]),move:h.useCallback((function(e,t){var n=N();sf(n,e,t),A(n),I(sf,{argA:e,argB:t},n,!1)}),[n]),prepend:h.useCallback((function(e,t){var n=Array.isArray(e)?e:[e],r=ff(N(),n);A(r),I(ff,{argA:uf(e)},r),D(n),l.current=j(0,t)}),[n]),append:h.useCallback((function(e,t){var n=Array.isArray(e)?e:[e],r=lf(N(),n),o=r.length-n.length;A(r),I(lf,{argA:uf(e)},r,!1),D(n,o),l.current=j(o,t)}),[n]),remove:h.useCallback((function(e){var t=pf(N(),e);!function(e){(Array.isArray(e)?e:[e]).forEach((function(e){return Qs(y.current,"".concat(n).concat(Ns(e)?"":".".concat(e)),Ns(e)?[]:void 0)}))}(e),A(t),I(pf,{argA:e},t)}),[n]),insert:h.useCallback((function(e,t,n){var r=Array.isArray(t)?t:[t],o=cf(N(),e,r);A(o),I(cf,{argA:e,argB:uf(t)},o),D(r,e),l.current=j(e,n)}),[n]),fields:C}};function gf(e,t){var n,r,o={};try{for(var a=_s(e),i=a.next();!i.done;i=a.next()){var l=i.value,u=js(t,l);u&&($s(l)?o[l]=u._f:Qs(o,l,u._f))}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}var vf=function(e){return"file"===e.type},bf=function(e){return e.type==="".concat("select","-multiple")},wf=function(e){return"radio"===e.type},Ef={value:!1,isValid:!1},Of={value:!0,isValid:!0},_f=function(e){if(Array.isArray(e)){if(e.length>1){var t=e.filter((function(e){return e&&e.checked&&!e.disabled})).map((function(e){return e.value}));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ns(e[0].attributes.value)?Ns(e[0].value)||""===e[0].value?Of:{value:e[0].value,isValid:!0}:Of:Ef}return Ef},Sf=function(e,t){var n=t.valueAsNumber,r=t.valueAsDate,o=t.setValueAs;return n?""===e?NaN:+e:r?new Date(e):o?o(e):e},xf=function(e){return Os([],Es(e),!1).filter((function(e){return e.selected})).map((function(e){return e.value}))},kf={isValid:!1,value:null},Cf=function(e){return Array.isArray(e)?e.reduce((function(e,t){return t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e}),kf):kf};function Pf(e){if(e&&e._f){var t=e._f.ref;if(t.disabled)return;return vf(t)?t.files:wf(t)?Cf(e._f.refs).value:bf(t)?xf(t.options):Ss(t)?_f(e._f.refs).value:Sf(Ns(t.value)?e._f.ref.value:t.value,e._f)}}var Tf=function(e){return e&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate)},Nf=function(e){return"function"==typeof e},jf=function(e){return"string"==typeof e},Af=function(e){return jf(e)||h.isValidElement(e)},Rf=function(e){return e instanceof RegExp};function If(e,t,n){if(void 0===n&&(n="validate"),Af(e)||hf(e)&&!e)return{type:n,message:Af(e)?e:"",ref:t}}var Df=function(e){return Cs(e)&&!Rf(e)?e:{value:e,message:""}},Mf=function(e,t){var n=e._f,r=n.ref,o=n.refs,a=n.required,i=n.maxLength,l=n.minLength,u=n.min,c=n.max,s=n.pattern,f=n.validate,p=n.name,d=n.value,h=n.valueAsNumber;return bs(void 0,void 0,void 0,(function(){var e,n,m,y,g,v,b,w,E,O,_,S,x,k,C,P,T,N,j,A,R,I,D,M,F,L,U,z,V,B,H,W,K;return ws(this,(function(q){switch(q.label){case 0:return e={},n=wf(r),m=Ss(r),y=n||m,g=(h||vf(r))&&!r.value||""===d||Array.isArray(d)&&!d.length,v=Ys.bind(null,p,t,e),b=function(t,n,o,a,i){void 0===a&&(a="maxLength"),void 0===i&&(i="minLength");var l=t?n:o;e[p]=Object.assign({type:t?a:i,message:l,ref:r},v(t?a:i,l))},a&&(!n&&!m&&(g||xs(d))||hf(d)&&!d||m&&!_f(o).isValid||n&&!Cf(o).isValid)&&(w=Af(a)?{value:!!a,message:a}:Df(a),E=w.value,A=w.message,E&&(e[p]=Object.assign({type:Ls,message:A,ref:y?(o||[])[0]||{}:r},v(Ls,A)),!t))?[2,e]:(xs(u)&&xs(c)||""===d||(P=void 0,T=void 0,O=Df(c),_=Df(u),isNaN(d)?(x=r.valueAsDate||new Date(d),jf(O.value)&&(P=x>new Date(O.value)),jf(_.value)&&(T=x<new Date(_.value))):(S=r.valueAsNumber||parseFloat(d),xs(O.value)||(P=S>O.value),xs(_.value)||(T=S<_.value)),!P&&!T||(b(!!P,O.message,_.message,"max","min"),t)))&&(!jf(d)||g||!i&&!l||(k=Df(i),C=Df(l),P=!xs(k.value)&&d.length>k.value,T=!xs(C.value)&&d.length<C.value,!P&&!T||(b(P,k.message,C.message),t)))?jf(d)&&s&&!g&&(N=Df(s),j=N.value,A=N.message,Rf(j)&&!d.match(j)&&(e[p]=Object.assign({type:Fs,message:A,ref:r},v(Fs,A)),!t))?[2,e]:f?(R=y&&o?o[0]:r,Nf(f)?[4,f(d)]:[3,2]):[3,11]:[2,e];case 1:return I=q.sent(),(B=If(I,R))&&(e[p]=Object.assign(Object.assign({},B),v("validate",B.message)),!t)?[2,e]:[3,11];case 2:if(!Cs(f))return[3,11];D={},q.label=3;case 3:q.trys.push([3,8,9,10]),M=_s(Object.entries(f)),F=M.next(),q.label=4;case 4:return F.done?[3,7]:(L=Es(F.value,2),U=L[0],z=L[1],Hs(D)||t?[4,z(d)]:[3,7]);case 5:V=q.sent(),(B=If(V,R,U))&&(D=Object.assign(Object.assign({},B),v(U,B.message)),t&&(e[p]=D)),q.label=6;case 6:return F=M.next(),[3,4];case 7:return[3,10];case 8:return H=q.sent(),W={error:H},[3,10];case 9:try{F&&!F.done&&(K=M.return)&&K.call(M)}finally{if(W)throw W.error}return[7];case 10:if(!Hs(D)&&(e[p]=Object.assign({ref:R},D),!t))return[2,e];q.label=11;case 11:return[2,e]}}))}))},Ff=function(e){return{isOnSubmit:!e||e===Is,isOnBlur:"onBlur"===e,isOnChange:e===Rs,isOnAll:e===Ds,isOnTouch:"onTouched"===e}},Lf=function(e){return e instanceof HTMLElement},Uf=function(){function e(){this.tearDowns=[]}return e.prototype.add=function(e){this.tearDowns.push(e)},e.prototype.unsubscribe=function(){var e,t;try{for(var n=_s(this.tearDowns),r=n.next();!r.done;r=n.next())(0,r.value)()}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.tearDowns=[]},e}(),zf=function(){function e(e,t){var n=this;this.observer=e,this.closed=!1,t.add((function(){return n.closed=!0}))}return e.prototype.next=function(e){this.closed||this.observer.next(e)},e}(),Vf=function(){function e(){this.observers=[]}return e.prototype.next=function(e){var t,n;try{for(var r=_s(this.observers),o=r.next();!o.done;o=r.next())o.value.next(e)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.subscribe=function(e){var t=new Uf,n=new zf(e,t);return this.observers.push(n),t},e.prototype.unsubscribe=function(){this.observers=[]},e}(),Bf=typeof window===Ms;function Hf(e){var t=this,n=void 0===e?{}:e,r=n.mode,o=void 0===r?Is:r,a=n.reValidateMode,i=void 0===a?Rs:a,l=n.resolver,u=n.context,c=n.defaultValues,s=void 0===c?{}:c,f=n.shouldFocusError,p=void 0===f||f,d=n.shouldUnregister,m=void 0!==d&&d,y=n.criteriaMode,g=h.useRef({}),v=h.useRef(new Set),b=h.useRef(new Vf),w=h.useRef(new Vf),E=h.useRef(new Vf),O=h.useRef(new Vf),_=h.useRef({}),S=h.useRef(new Set),x=h.useRef(!1),k=h.useRef({}),C=h.useRef({}),P=h.useRef(s),T=h.useRef(!1),N=h.useRef(u),j=h.useRef(l),A=h.useRef(new Set),R=Ff(o),I=y===Ds,D=Es(h.useState({isDirty:!1,isValidating:!1,dirtyFields:{},isSubmitted:!1,submitCount:0,touchedFields:{},isSubmitting:!1,isSubmitSuccessful:!1,isValid:!R.isOnSubmit,errors:{}}),2),M=D[0],F=D[1],L=h.useRef({isDirty:!qs,dirtyFields:!qs,touchedFields:!qs,isValidating:!qs,isValid:!qs,errors:!qs}),U=h.useRef(M);N.current=u,j.current=l;var z=function(){return U.current.isValid=nf(C.current,k.current)&&Hs(U.current.errors)},V=h.useCallback((function(e,t,n,r,o,a){void 0===n&&(n=!1),void 0===r&&(r={});var i=js(U.current.errors,e),l=n||!nf(i,t,!0)||L.current.isValid&&Ns(t)&&js(k.current,e)&&!js(C.current,e);if(t?(mf(C.current,e),l=l||!i||!nf(i,t,!0),Qs(U.current.errors,e,t)):((js(k.current,e)||j.current)&&(Qs(C.current,e,!0),l=l||i),mf(U.current.errors,e)),l&&!xs(n)||!Hs(r)||a){var u=Object.assign(Object.assign({},r),{isValid:j.current?!!o:z(),errors:U.current.errors});U.current=Object.assign(Object.assign({},U.current),u),b.current.next(a?{}:u)}b.current.next({isValidating:!1})}),[]),B=h.useCallback((function(e,t,n,r,o){void 0===n&&(n={}),o&&re(e);var a=js(g.current,e,{})._f;if(a){var i=Ks&&Lf(a.ref)&&xs(t)?"":t;if(a.value=t,wf(a.ref)?(a.refs||[]).forEach((function(e){return e.checked=e.value===i})):vf(a.ref)&&!jf(i)?a.ref.files=i:bf(a.ref)?Os([],Es(a.ref.options),!1).forEach((function(e){return e.selected=i.includes(e.value)})):Ss(a.ref)&&a.refs?a.refs.length>1?a.refs.forEach((function(e){return e.checked=Array.isArray(i)?!!i.find((function(t){return t===e.value})):i===e.value})):a.refs[0].checked=!!i:a.ref.value=i,r){var l=Zs(g);Qs(l,e,t),E.current.next({values:Object.assign(Object.assign({},P.current),l),name:e})}n.shouldDirty&&W(e,i),n.shouldValidate&&Y(e)}}),[]),H=h.useCallback((function(e,t){var n=Zs(g);return e&&t&&Qs(n,e,t),!nf(n,P.current)}),[]),W=h.useCallback((function(e,t,n){if(void 0===n&&(n=!0),L.current.isDirty||L.current.dirtyFields){var r=!nf(js(P.current,e),t),o=js(U.current.dirtyFields,e),a=U.current.isDirty;r?Qs(U.current.dirtyFields,e,!0):mf(U.current.dirtyFields,e),U.current.isDirty=H();var i={isDirty:U.current.isDirty,dirtyFields:U.current.dirtyFields},l=L.current.isDirty&&a!==i.isDirty||L.current.dirtyFields&&o!==js(U.current.dirtyFields,e);return l&&n&&b.current.next(i),l?i:{}}return{}}),[]),K=h.useCallback((function(e,n){return bs(t,void 0,void 0,(function(){var t;return ws(this,(function(r){switch(r.label){case 0:return[4,Mf(js(g.current,e),I)];case 1:return t=r.sent()[e],V(e,t,n),[2,Ns(t)]}}))}))}),[I]),q=h.useCallback((function(e,n){return void 0===n&&(n=[]),bs(t,void 0,void 0,(function(){var t,r,o,a,i,l,u;return ws(this,(function(c){switch(c.label){case 0:return[4,j.current(Zs(g,P),N.current,{criteriaMode:y,names:n,fields:gf(v.current,g.current)})];case 1:t=c.sent().errors;try{for(r=_s(e),o=r.next();!o.done;o=r.next())a=o.value,(i=js(t,a))?Qs(U.current.errors,a,i):mf(U.current.errors,a)}catch(e){l={error:e}}finally{try{o&&!o.done&&(u=r.return)&&u.call(r)}finally{if(l)throw l.error}}return[2,t]}}))}))}),[y]),G=function(e){return bs(t,void 0,void 0,(function(){var t,n,r,o,a,i,l,u;return ws(this,(function(c){switch(c.label){case 0:for(r in n=[],t=e)n.push(r);o=0,c.label=1;case 1:return o<n.length?(r=n[o])in t&&(a=e[r])?(i=a._f,l=Us(a,"_f"),i?[4,Mf(a,I)]:[3,3]):[3,6]:[3,7];case 2:(u=c.sent())[i.name]?(Qs(U.current.errors,i.name,u[i.name]),mf(C.current,i.name)):js(k.current,i.name)&&(Qs(C.current,i.name,!0),mf(U.current.errors,i.name)),c.label=3;case 3:return l?[4,G(l)]:[3,5];case 4:c.sent(),c.label=5;case 5:c.label=6;case 6:return o++,[3,1];case 7:return[2]}}))}))},Y=h.useCallback((function(e){return bs(t,void 0,void 0,(function(){var t,n,r,o=this;return ws(this,(function(a){switch(a.label){case 0:return t=Ns(e)?Object.keys(g.current):Array.isArray(e)?e:[e],b.current.next({isValidating:!0}),j.current?(r=Hs,[4,q(t,Ns(e)?void 0:t)]):[3,2];case 1:return n=r.apply(void 0,[a.sent()]),[3,7];case 2:return Ns(e)?[4,G(g.current)]:[3,4];case 3:return a.sent(),[3,6];case 4:return[4,Promise.all(t.map((function(e){return bs(o,void 0,void 0,(function(){return ws(this,(function(t){switch(t.label){case 0:return[4,K(e,null)];case 1:return[2,t.sent()]}}))}))})))];case 5:a.sent(),a.label=6;case 6:a.label=7;case 7:return b.current.next({errors:U.current.errors,isValidating:!1,isValid:j.current?n:z()}),[2]}}))}))}),[q,K]),$=h.useCallback((function(e,t,n){return Object.entries(t).forEach((function(t){var r=Es(t,2),o=r[0],a=r[1],i="".concat(e,".").concat(o),l=js(g.current,i);l&&!l._f?$(i,a,n):B(i,a,n,!0,!l)}))}),[Y]),X=function(e){return T.current||S.current.has(e)||S.current.has((e.match(/\w+/)||[])[0])},Q=function(e,t,n,r){var o=js(g.current,e),a=Ns(o._f.value)?js(P.current,e):o._f.value;return o&&!Ns(a)&&(n&&n.defaultChecked?o._f.value=Pf(o):B(e,a)),(!Ns(a)||r)&&Tf(t)&&!R.isOnSubmit&&o&&L.current.isValid&&Mf(o,I).then((function(t){Hs(t)?Qs(C.current,e,!0):mf(C.current,e),U.current.isValid!==z()&&F(Object.assign(Object.assign({},U.current),{isValid:z()}))})),a},J=h.useCallback((function(e){var n=e.type,r=e.target,o=e.target,a=o.value,l=o.type;return bs(t,void 0,void 0,(function(){var e,t,o,u,c,s,f,p,d,h,m,v,E,O,_,S,x;return ws(this,(function(k){switch(k.label){case 0:return e=r.name,(u=js(g.current,e))?(c=l?Pf(u):void 0,c=Ns(c)?a:c,s=n===As,f=Ff(i),p=f.isOnBlur,d=f.isOnChange,h=!Tf(u._f)&&!j.current||function(e){var t=e.isOnBlur,n=e.isOnChange,r=e.isOnTouch,o=e.isTouched,a=e.isReValidateOnBlur,i=e.isReValidateOnChange,l=e.isBlurEvent,u=e.isSubmitted;return!e.isOnAll&&(!u&&r?!(o||l):(u?a:t)?!l:!(u?i:n)||l)}(Object.assign({isBlurEvent:s,isTouched:!!js(U.current.touchedFields,e),isSubmitted:U.current.isSubmitted,isReValidateOnBlur:p,isReValidateOnChange:d},R)),m=!s&&X(e),Ns(c)||(u._f.value=c),v=W(e,u._f.value,!1),s&&!js(U.current.touchedFields,e)&&(Qs(U.current.touchedFields,e,!0),L.current.touchedFields&&(v.touchedFields=U.current.touchedFields)),E=!Hs(v)||m,h?(!s&&w.current.next({name:e,type:n,value:c}),[2,E&&b.current.next(m?{}:v)]):(b.current.next({isValidating:!0}),j.current?[4,j.current(Zs(g,P),N.current,{criteriaMode:y,fields:gf([e],g.current),names:[e]})]:[3,2])):[3,5];case 1:return O=k.sent().errors,_=U.current.isValid,t=js(O,e),Ss(r)&&!t&&(S=Ps(e),(x=js(O,S,{})).type&&x.message&&(t=x),(x||js(U.current.errors,S))&&(e=S)),o=Hs(O),_!==o&&(E=!0),[3,4];case 2:return[4,Mf(u,I)];case 3:t=k.sent()[e],k.label=4;case 4:!s&&w.current.next({name:e,type:n,value:c}),V(e,t,E,v,o,m),k.label=5;case 5:return[2]}}))}))}),[]),Z=function(e){var t=x.current?Zs(g,P):P.current;return Ns(e)?t:jf(e)?js(t,e):e.map((function(e){return js(t,e)}))},ee=h.useCallback((function(e){return void 0===e&&(e={}),bs(t,void 0,void 0,(function(){var t,n;return ws(this,(function(r){switch(r.label){case 0:return t=U.current.isValid,l?[4,j.current(Object.assign(Object.assign({},Zs(g,P)),e),N.current,{criteriaMode:y,fields:gf(v.current,g.current)})]:[3,2];case 1:return n=r.sent().errors,U.current.isValid=Hs(n),[3,3];case 2:z(),r.label=3;case 3:return t!==U.current.isValid&&b.current.next({isValid:U.current.isValid}),[2]}}))}))}),[y]),te=h.useCallback((function(e,t,n){var r,o,a,i=Array.isArray(e),l=x.current?Z():Ns(t)?P.current:i?t||{}:((r={})[e]=t,r);if(Ns(e))return n&&(T.current=!0),l;var u=[];try{for(var c=_s(i?e:[e]),s=c.next();!s.done;s=c.next()){var f=s.value;n&&S.current.add(f),u.push(js(l,f))}}catch(e){o={error:e}}finally{try{s&&!s.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}return i?u:u[0]}),[]),ne=function(e,t){var n,r;void 0===t&&(t={});try{for(var o=_s(e?Array.isArray(e)?e:[e]:Object.keys(v.current)),a=o.next();!a.done;a=o.next()){var i=a.value;v.current.delete(i),A.current.delete(i),js(g.current,i)&&(t.keepIsValid||(mf(k.current,i),mf(C.current,i)),!t.keepError&&mf(U.current.errors,i),!t.keepValue&&mf(g.current,i),!t.keepDirty&&mf(U.current.dirtyFields,i),!t.keepTouched&&mf(U.current.touchedFields,i),!t.keepDefaultValue&&mf(P.current,i),w.current.next({name:i}))}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}b.current.next(Object.assign(Object.assign(Object.assign({},U.current),t.keepDirty?{isDirty:H()}:{}),j.current?{}:{isValid:z()})),t.keepIsValid||ee()},re=h.useCallback((function(e,t){var n=!js(g.current,e);return Qs(g.current,e,{_f:Object.assign(Object.assign(Object.assign({},n?{ref:{name:e}}:Object.assign({ref:(js(g.current,e)._f||{}).ref},js(g.current,e)._f)),{name:e}),t)}),Tf(t)&&Qs(k.current,e,!0),v.current.add(e),n&&Q(e,t),Bf?{name:e}:{name:e,onChange:J,onBlur:J,ref:function(n){return n?function(e,t,n){var r=js(g.current,e);if(r){var o=function(e){return wf(e)||Ss(e)}(t);if(t===r._f.ref||Ks&&Lf(r._f.ref)&&!Lf(t)||o&&Array.isArray(r._f.refs)&&Ts(r._f.refs).find((function(e){return e===t})))return;r={_f:o?Object.assign(Object.assign({},r._f),{refs:Os(Os([],Es(Ts(r._f.refs||[]).filter((function(e){return Lf(e)&&document.contains(e)}))),!1),[t],!1),ref:{type:t.type,name:e}}):Object.assign(Object.assign({},r._f),{ref:t})},Qs(g.current,e,r);var a=Q(e,n,t,!0);(o&&Array.isArray(a)?!nf(js(g.current,e)._f.value,a):Ns(js(g.current,e)._f.value))&&(js(g.current,e)._f.value=Pf(js(g.current,e)))}}(e,n,t):(m||t&&t.shouldUnregister)&&ne(e)}}}),[P.current]),oe=h.useCallback((function(e,n){return function(r){return bs(t,void 0,void 0,(function(){var t,o,a,i;return ws(this,(function(l){switch(l.label){case 0:r&&(r.preventDefault&&r.preventDefault(),r.persist&&r.persist()),t=Object.assign(Object.assign({},P.current),Zs(g,P)),b.current.next({isSubmitting:!0}),l.label=1;case 1:return l.trys.push([1,,11,12]),j.current?[4,j.current(t,N.current,{criteriaMode:y,fields:gf(v.current,g.current)})]:[3,3];case 2:return o=l.sent(),a=o.errors,i=o.values,U.current.errors=a,t=i,[3,5];case 3:return[4,G(g.current)];case 4:l.sent(),l.label=5;case 5:return Hs(U.current.errors)&&Object.keys(U.current.errors).every((function(e){return js(t,e)}))?(b.current.next({errors:{},isSubmitting:!0}),[4,e(t,r)]):[3,7];case 6:return l.sent(),[3,10];case 7:return n?[4,n(U.current.errors,r)]:[3,9];case 8:l.sent(),l.label=9;case 9:p&&Js(g.current,(function(e){return js(U.current.errors,e)}),v.current),l.label=10;case 10:return[3,12];case 11:return U.current.isSubmitted=!0,b.current.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Hs(U.current.errors),submitCount:U.current.submitCount+1,errors:U.current.errors}),[7];case 12:return[2]}}))}))}}),[p,I,y]),ae=h.useCallback((function(e,t){var n=e.keepErrors,r=e.keepDirty,o=e.keepIsSubmitted,a=e.keepTouched,i=e.keepIsValid,l=e.keepSubmitCount;i||(C.current={},k.current={}),S.current=new Set,T.current=!1,b.current.next({submitCount:l?U.current.submitCount:0,isDirty:r?U.current.isDirty:!(!t||!H()),isSubmitted:!!o&&U.current.isSubmitted,isValid:i?U.current.isValid:!!ee(t),dirtyFields:r?U.current.dirtyFields:{},touchedFields:a?U.current.touchedFields:{},errors:n?U.current.errors:{},isSubmitting:!1,isSubmitSuccessful:!1})}),[]);return h.useEffect((function(){x.current=!0;var e=b.current.subscribe({next:function(e){void 0===e&&(e={}),Ws(e,L.current,!0)&&(U.current=Object.assign(Object.assign({},U.current),e),F(U.current))}}),t=O.current.subscribe({next:function(e){if(e.fields&&e.name&&L.current.isValid){var t=Zs(g);Qs(t,e.name,e.fields),ee(t)}}});return j.current&&L.current.isValid&&ee(),function(){w.current.unsubscribe(),e.unsubscribe(),t.unsubscribe()}}),[]),{control:h.useMemo((function(){return{register:re,isWatchAllRef:T,watchFieldsRef:S,getIsDirty:H,formStateSubjectRef:b,fieldArraySubjectRef:O,controllerSubjectRef:E,watchSubjectRef:w,watchInternal:te,fieldsRef:g,validFieldsRef:C,fieldsWithValidationRef:k,fieldArrayNamesRef:A,readFormStateRef:L,formStateRef:U,defaultValuesRef:P,fieldArrayDefaultValuesRef:_,unregister:ne,shouldUnmountUnregister:m}}),[]),formState:Bs(qs,M,L),trigger:Y,register:re,handleSubmit:oe,watch:h.useCallback((function(e,t){return Nf(e)?w.current.subscribe({next:function(n){return e(te(void 0,t),n)}}):te(e,t,!0)}),[]),setValue:h.useCallback((function(e,t,n){void 0===n&&(n={}),x.current=!0;var r=js(g.current,e),o=A.current.has(e);o&&(O.current.next({fields:t,name:e,isReset:!0}),(L.current.isDirty||L.current.dirtyFields)&&n.shouldDirty&&(Qs(U.current.dirtyFields,e,af(t,js(P.current,e,[]),js(U.current.dirtyFields,e,[]))),b.current.next({dirtyFields:U.current.dirtyFields,isDirty:H(e,t)})),!t.length&&Qs(g.current,e,[])&&Qs(_.current,e,[])),r&&!r._f||o?$(e,t,o?{}:n):B(e,t,n,!0,!r),X(e)&&b.current.next({}),w.current.next({name:e,value:t})}),[$]),getValues:h.useCallback(Z,[]),reset:h.useCallback((function(e,t){var n,r;void 0===t&&(t={});var o=e||P.current;if(Ks&&!t.keepValues)try{for(var a=_s(v.current),i=a.next();!i.done;i=a.next()){var l=i.value,u=js(g.current,l);if(u&&u._f){var c=Array.isArray(u._f.refs)?u._f.refs[0]:u._f.ref;if(Lf(c))try{c.closest("form").reset();break}catch(e){}}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}!t.keepDefaultValues&&(P.current=Object.assign({},o)),t.keepValues||(g.current={},E.current.next({values:Object.assign({},o)}),w.current.next({value:Object.assign({},o)}),O.current.next({fields:Object.assign({},o),isReset:!0})),ae(t,e)}),[]),clearErrors:h.useCallback((function(e){e&&(Array.isArray(e)?e:[e]).forEach((function(e){return mf(U.current.errors,e)})),b.current.next({errors:e?U.current.errors:{}})}),[]),unregister:h.useCallback(ne,[]),setError:h.useCallback((function(e,t,n){var r=((js(g.current,e)||{_f:{}})._f||{}).ref;Qs(U.current.errors,e,Object.assign(Object.assign({},t),{ref:r})),b.current.next({errors:U.current.errors,isValid:!1}),n&&n.shouldFocus&&r&&r.focus&&r.focus()}),[]),setFocus:h.useCallback((function(e){return js(g.current,e)._f.ref.focus()}),[])}}var Wf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kf=function(){return Kf=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Kf.apply(this,arguments)},qf=Object.defineProperty,Gf=function(e,t,n){return function(e,t,n){t in e?qf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},Yf=function(e){function t(){var t=e.apply(this,function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(arguments),!1))||this;return Gf(t,"state",{open:!1,closing:!1}),Gf(t,"handleChange",(function(e){"open"===e?t.setState({open:!0,closing:!1}):t.setState((function(e){return{open:!1,closing:e.open}}))})),t}return Wf(t,e),t.prototype.componentDidMount=function(){cs.subscribe(this.props.id,this.handleChange)},t.prototype.componentWillUnmount=function(){cs.unsubscribe(this.props.id,this.handleChange)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.onCloseHandler,r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["id","onCloseHandler"]),o=this.state,a=o.open,i=o.closing;return a||i?h.createElement(Ya,Kf(Kf({},r),{"data-e2e":"sg-dialog-".concat(t),triggerClose:i,onCloseHandler:function(){n&&n(),cs.close(t)}})):null},t}(h.Component),$f=Yf,Xf=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Xf(t,e),t.prototype.render=function(){var e=this.props,t=e.align,n=e.children,r=e.density,o=e.disableClose,a=e.footer,i=e.icon,l=e.iconColor,u=e.iconSize,c=e.id,s=e.onCloseHandler,f=e.requested,p=e.size,d=e.state,m=e.title,y=e.subTitle,g=e.resources,v=f>0;return h.createElement($f,{id:c,"data-e2e":"sg-dialog-".concat(c),align:t,density:r,disableClose:o||v,footer:a,icon:i,iconColor:l,iconSize:u,size:p,state:d,title:m,subTitle:y,onCloseHandler:s},h.createElement(jr,{resources:g},n))},t}(h.Component),Jf=Qf,Zf=function(e){var t=e.e2eAttr,n=void 0===t?"dialog-close":t,r=e.id,o=e.label;return h.createElement(mo,{action:"button","data-e2e":n,onClick:function(){return cs.close(r)}},o||_e("Cancel"))},ep=function(e){var t=e.e2eAttr,n=void 0===t?"dialog-submit":t,r=e.label,o=e.onSubmit;return h.createElement(mo,{color:"primary",action:"button","data-e2e":n,onClick:o},r||_e("Confirm"))},tp=function(e){var t=e.children,n=e.name;return h.createElement("form",{"data-e2e":"sg-form-".concat(n),onSubmit:function(e){return e.preventDefault()}},t)},np=function(e){var t=e.children,n=e.name,r=e.size,o=e.title,a=e.subTitle,i=e.state,l=void 0===i?"warning":i,u=e.icon,c=void 0===u?"edit":u,s=e.iconColor,f=e.iconSize,p=e.align,d=e.density,m=e.footer,y=e.resources,g=void 0===y?[]:y,v=e.submitLabel,b=e.onSubmit,w=e.onCloseHandler;return h.createElement(Jf,{id:n,size:r,title:o,subTitle:a,state:l,icon:c,iconColor:s,iconSize:f,align:p,density:d,resources:g,footer:m||h.createElement(h.Fragment,null,h.createElement(Zf,{id:n}),h.createElement(ep,{label:v,onSubmit:b})),onCloseHandler:function(){w&&w()}},h.createElement(tp,{name:n},t))},rp=function(e){var t=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(h.useState({}),2),n=t[0],r=t[1],o=h.useCallback((function(e){r(e)}),[]);return h.useEffect((function(){return cs.subscribe(e,o,"data")})),n},op=function(){return op=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},op.apply(this,arguments)},ap=function(){var e=M(),t=Hf().handleSubmit,n=z(vc).block,r=rp(ms),o=r.visitor_id,a=r.user;h.useEffect((function(){o&&e(Yo({endpoint:"".concat(Jo.GET_VISITOR_STATUS.endpoint,"/").concat(o),resourceName:Jo.GET_VISITOR_STATUS.resourceName,requestTypeName:Oo}))}),[e,o]);var i=_e(n?"Unblock {{em}}{{strong}}%(user)s{{/strong}}{{/em}}":"Block {{em}}{{strong}}%(user)s{{/strong}}{{/em}}",{args:{user:a},components:{strong:h.createElement("strong",null),em:h.createElement("em",null)}}),l=_e(n?"{{strong}}%(user)s{{/strong}} is currently blocked.":"Blocking {{strong}}%(user)s{{/strong}} will prevent them from accessing your site until you manually unblock them from the Blocked tab.",{args:{user:a},components:{strong:h.createElement("strong",null)}});return h.createElement(np,{name:ms,size:"large",title:i,subTitle:l,resources:[Oo,ko],onSubmit:t((function(){return e(Xo(op(op({},Jo.BLOCK_USER),{resourceName:ko,itemId:o,body:{block:Number(!n)}}),{onComplete:function(){return cs.close(ms)}}))}))},h.createElement(Gn,null,_e("Are you sure you wish to proceed?")))},ip=function(){return ip=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ip.apply(this,arguments)},lp=function(e){var t=M(),n=z(yc).filters,r=null==n?void 0:n.find((function(e){return"user"===e.wp_name})),o=[{header:_e("Timestamp"),accessor:"ts",smSize:"180px"},{header:_e("User"),accessor:"user"},{header:_e("IP Address"),accessor:"ip",smSize:"170px",render:function(e,t){return h.createElement(Gn,null,e,h.createElement(Qa,{size:"xx-small"}),h.createElement(Nn,{color:"dark",name:"information",size:"12",tooltip:"".concat(_e("Hostname:")," ").concat(t.hostname)}))}},{header:_e("Activity"),accessor:"activity"},{header:_e("Actions"),accessor:"actions",style:{textAlign:"right"},smSize:"140px",render:function(e,n){return h.createElement(ns,{opener:h.createElement(Ln,{icon:"dots"})},!n.do_not_block&&h.createElement(as,{onClick:function(){cs.open(ms),cs.hidrate(ms,n)}},_e("Manage User Traffic")),h.createElement(as,{onClick:function(){return t(Yo(ip(ip({},Jo.ACTIVITY_REGISTERED),{body:{filters:[ip(ip({},r),{children:r.children.map((function(e){return ip(ip({},e),{value:n.visitor_id})}))})]}})))}},_e("View Activity")))}}].filter((function(t){return!e.limitedView||"actions"!==t.accessor}));return e.limitedView&&o.push(),h.createElement(h.Fragment,null,h.createElement(Oc,ip({api:Jo.ACTIVITY_REGISTERED,columns:o,shadow:!e.limitedView},e)),h.createElement(ap,null))},up=function(){return up=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},up.apply(this,arguments)},cp=function(){var e=M(),t=Hf().handleSubmit,n=z(vc).block,r=rp(hs),o=r.visitor_id,a=r.ip;h.useEffect((function(){o&&e(Yo({endpoint:"".concat(Jo.GET_VISITOR_STATUS.endpoint,"/").concat(o),resourceName:Jo.GET_VISITOR_STATUS.resourceName,requestTypeName:Oo}))}),[e,o]);var i=_e(n?"Unblock {{em}}{{strong}}%(ip)s{{/strong}}{{/em}}":"Block {{em}}{{strong}}%(ip)s{{/strong}}{{/em}}",{args:{ip:a},components:{strong:h.createElement("strong",null),em:h.createElement("em",null)}}),l=_e(n?"{{strong}}%(ip)s{{/strong}} is currently blocked.":"Blocking {{strong}}%(ip)s{{/strong}} will prevent them from accessing your site until you manually unblock them from the Blocked tab.",{args:{ip:a},components:{strong:h.createElement("strong",null)}});return h.createElement(np,{name:hs,size:"large",title:i,subTitle:l,resources:[Oo,"BLOCK_IP"],onSubmit:t((function(){return e(Xo(up(up({},Jo.BLOCK_IP),{itemId:o,body:{block:Number(!n)}}),{onComplete:function(){return cs.close(hs)}}))}))},h.createElement(Gn,null,_e("Are you sure you wish to proceed?")))},sp=function(){return sp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},sp.apply(this,arguments)},fp=function(e){var t=M(),n=z(mc).filters,r=null==n?void 0:n.find((function(e){return"ip"===e.wp_name})),o=[{header:_e("Timestamp"),accessor:"ts",smSize:"180px"},{header:_e("Visitor Type"),accessor:"type",smSize:"140px"},{header:_e("IP Address"),accessor:"ip",smSize:"170px",render:function(e,t){return h.createElement(Gn,null,e,h.createElement(Qa,{size:"xx-small"}),h.createElement(Nn,{color:"dark",name:"information",size:"12",tooltip:"".concat(_e("Hostname:")," ").concat(t.hostname)}))}},{header:_e("Page Visited"),accessor:"page_visited"},{header:_e("Response"),accessor:"response",smSize:"120px"},{header:_e("Actions"),accessor:"actions",style:{textAlign:"right"},smSize:"140px",render:function(e,n){return h.createElement(ns,{opener:h.createElement(Ln,{icon:"dots"})},!n.do_not_block&&h.createElement(as,{onClick:function(){cs.open(hs),cs.hidrate(hs,n)}},_e("Manage IP Traffic")),h.createElement(as,{onClick:function(){return t(Yo(sp(sp({},Jo.ACTIVITY_UNKNOWN),{body:{filters:[sp(sp({},r),{children:r.children.map((function(e){return sp(sp({},e),{value:n.ip})}))})]}})))}},_e("View Activity")))}}].filter((function(t){return!e.limitedView||"actions"!==t.accessor}));return h.createElement(h.Fragment,null,h.createElement(Oc,sp({api:Jo.ACTIVITY_UNKNOWN,columns:o,shadow:!e.limitedView},e)),h.createElement(cp,null))},pp=["compact","cozy"],dp=["success","error","warning","info","hint"],hp=function(){return hp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},hp.apply(this,arguments)},mp={success:"success",error:"error-attention",warning:"warning",info:"information",hint:"information"},yp={success:"success",error:"error",warning:"warning",info:"info",hint:"light"},gp=h.forwardRef((function(e,t){var n=h.useContext(yt).device,r=e.density,o=e.children,a=(e.className,e.contentSize,e.title),i=e.type,l=(e.shadow,e.onClose),u=e.tabIndex,c=e["data-e2e"],s=e["data-component"],f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["density","children","className","contentSize","title","type","shadow","onClose","tabIndex","data-e2e","data-component"]),p=function(e){var t=e.density,n=e.className,r=e.contentSize,o=e.title,a=e.type,i=e.shadow,l=hp({"sg-notice":!0,"sg-notice--shadow":i},ft([{class:"sg-notice--density-",props:pp,selected:t},{class:"sg-notice--type-",props:dp,selected:a}]));return{classes:st({styles:d.default,classes:l,className:n}),contentClasses:st({styles:d.default,classes:hp({"sg-notice__content":!0},ft([{class:"sg-notice__content--size-",props:Ft(),selected:r}]))}),iconClasses:st({styles:d.default,classes:{"sg-notice__icon":!0,"sg-notice__icon--center-by-title":Boolean(o)}})}}(e),m=p.classes,y=p.contentClasses,g=p.iconClasses,v=un("sg-notice-content-"),b={compact:"20",cozy:n.isDesktop?"30":"20"};return h.createElement("div",hp({ref:t,className:m,tabIndex:u,"data-e2e":c,"data-component":s,role:"group","aria-labelledby":v},ht(f)),mp[i]&&h.createElement(Nn,{className:g,name:mp[i],size:b[r],color:yp[i]}),h.createElement("div",{id:v,className:y},a&&h.createElement(er,{level:"6",density:"none",color:yp[i]},a),o),l&&!n.isPhone&&h.createElement(Ln,{icon:"cross",size:"small",className:"sg-notice__close-icon",onClick:l}))}));gp.defaultProps={density:"cozy",contentSize:"expanded",shadow:!0,type:"hint",tabIndex:0,"data-e2e":"notice","data-component":"notice"};var vp=gp,bp=function(){return bp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bp.apply(this,arguments)},wp=function(e){var t=e.children,n=e.className,r=e.flex,o=e.xsStart,a=e.smStart,i=e.mStart,l=e.lgStart,u=e.xsSpan,c=e.smSpan,s=e.mSpan,f=e.lgSpan,p=e.align,d=e.justify,m=e.justifySelf,y=e.border,g=e.borderRadius,v=e.padding,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","flex","xsStart","smStart","mStart","lgStart","xsSpan","smSpan","mSpan","lgSpan","align","justify","justifySelf","border","borderRadius","padding"]),w=ct(u&&"sg-grid-column--xs-span-".concat(u),c&&"sg-grid-column--sm-span-".concat(c),s&&"sg-grid-column--m-span-".concat(s),f&&"sg-grid-column--lg-span-".concat(f),o&&"sg-grid-column--xs-start-".concat(o),a&&"sg-grid-column--sm-start-".concat(a),i&&"sg-grid-column--m-start-".concat(i),l&&"sg-grid-column--lg-start-".concat(l),r&&"sg-grid-column--flex",!!window.MSInputMethodContext&&!!document.documentMode&&"sg-grid-column--ie11",p&&"sg-grid-column--align-".concat(p),d&&"sg-grid-column--justify-".concat(d),m&&"sg-grid-column--justify-self-".concat(m),ar(y,g),Bt(v),n);return h.createElement("div",bp({className:w},ht(b)),t)},Ep=["administrator","Administrator","user1","admin","Admin","user","User"],Op=function(e){return void 0===e&&(e=""),!(e&&!/^[A-Fa-f0-9.\-\%\/:*]+$/.test(e))||_e("Invalid format.")},_p=function(e){return void 0===e&&(e=""),!(e&&!/^([A-Za-z0-9]+)+$/.test(e))||_e("Invalid format.")},Sp=function(e){return e.length<7||_e("You can't enable Away Mode for every day of the week.")},xp=function(e){if(!e)return null;var t=e.message;return"required"===e.type?_e("This field is required."):t},kp=function(e){var t,n=e.email,r=e.emails;return n?(void 0===(t=n)&&(t=""),/^\S+@\S+\.\S+$/.test(t)?!r.find((function(e){return e.email===n}))||_e("Email %(name)s already exists.",{args:{email:n}}):_e("Invalid email address.")):_e("This field is required.")},Cp=function(){return Cp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Cp.apply(this,arguments)},Pp=function(){var e=M(),t=Hf().handleSubmit,n=z(gc),r=rp(gs).email;return h.createElement(np,{state:"inactive",icon:"trash",name:gs,size:"large",title:_e("Delete Notification Email"),subTitle:r,resources:[Oo,Co],onSubmit:t((function(){var t=n.entries.map((function(e){return e.email})).indexOf(r);n.entries.splice(t,1),e(Xo(Cp(Cp({},Jo.NOTIFICATIONS_EMAILS),{requestTypeName:Co,body:Cp({},n)}),{onComplete:function(){e(Yo(Cp(Cp({},Jo.WEEKLY_REPORTS),{requestTypeName:Oo}))),cs.close(gs)}}))}))},h.createElement(Gn,null,_e("This action cannot be undone. Are you sure you wish to proceed?")))},Tp=function(){return Tp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Tp.apply(this,arguments)},Np=function(){var e=M(),t=Hf(),n=t.control,r=t.handleSubmit,o=z(gc),a=rp(ys).email;return h.createElement(np,{state:"warning",icon:"edit",name:ys,size:"large",title:_e("Edit Notification Email"),subTitle:a,resources:[Oo,Co],onSubmit:r((function(t){var n=t.editedEmail,r=o.entries.map((function(e){return e.email})).indexOf(a),i=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(o.entries),!1);i[r].email=n,e(Xo(Tp(Tp({},Jo.NOTIFICATIONS_EMAILS),{requestTypeName:Co,body:Tp(Tp({},o),{entries:i})}),{onComplete:function(){e(Yo(Tp(Tp({},Jo.WEEKLY_REPORTS),{requestTypeName:Oo}))),cs.close(ys)}}))}))},h.createElement(Gs,{name:"editedEmail",render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(xi,Tp({onRefsReady:t.ref,placeholder:jc,label:_e("Email"),validationMessage:xp(o),state:r?"error":void 0},t))},shouldUnregister:!0,control:n,rules:{validate:function(e){return kp({email:e,emails:o.entries})}},defaultValue:a}))},jp=function(){return jp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},jp.apply(this,arguments)},Ap=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i},Rp=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},Ip=function(e){var t,n,r=M(),o=z(gc),a=Hf(),i=a.control,l=a.handleSubmit,u=o.max_emails;return h.createElement(h.Fragment,null,h.createElement("div",null,h.createElement(ro,null,_e("Add New Notification Email")),h.createElement(_u,null,(null===(t=o.entries)||void 0===t?void 0:t.length)>=u?h.createElement(vp,{type:"info",shadow:!1},h.createElement(Gn,null,_e("The maximum number of email accounts that can receive the weekly reports email has been reached."))):h.createElement(ur,{autoflow:"row"},h.createElement(wp,null,h.createElement(tp,{name:"emailForm"},h.createElement(Gs,{name:"email",render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(xi,jp({onRefsReady:t.ref,placeholder:jc,label:_e("Email"),validationMessage:xp(o),state:r?"error":void 0},t))},shouldUnregister:!0,control:i,rules:{validate:function(e){return kp({email:e,emails:o.entries})}}}))),h.createElement(wp,null,h.createElement(mo,{disabled:(null===(n=o.entries)||void 0===n?void 0:n.length)>=u,color:"primary",onClick:l((function(e){var t=e.email;r(Xo(jp(jp({},Jo.NOTIFICATIONS_EMAILS),{requestTypeName:Co,body:{entries:Rp(Rp([],Ap(o.entries),!1),[{email:t}],!1)}}),{onComplete:function(){return r(Yo(jp(jp({},Jo.WEEKLY_REPORTS),{requestTypeName:Oo})))}}))}))},_e("Create")))))),h.createElement(Oc,jp({title:_e("Manage Notification Emails"),api:Jo.WEEKLY_REPORTS,shadow:!0,columns:[{header:_e("Email"),accessor:"email",smSize:"170px"},{header:_e("Actions"),accessor:"id",style:{textAlign:"right"},smSize:"140px",render:function(e,t){return h.createElement(h.Fragment,null,h.createElement(Ln,{icon:"edit",onClick:function(){cs.open(ys),cs.hidrate(ys,t)}}),h.createElement(Ln,{icon:"trash",onClick:function(){cs.open(gs),cs.hidrate(gs,t)}}))}}]},e)),h.createElement(Pp,null),h.createElement(Np,null))},Dp=function(){var e=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(h.useState(xc),2),t=e[0],n=e[1];return h.createElement(fo,{pageId:xe.ACTIVITY_LOG},h.createElement(qr,{border:"light"},Nc.map((function(e){var r=e.label,o=e.type;return h.createElement(Xr,{key:o,active:t===o,onClick:function(){return n(o)}},_e(r))}))),t===xc&&h.createElement(fp,{title:_e("Unknown Visitors Activity")}),t===kc&&h.createElement(lp,{title:_e("Registered Users Activity")}),t===Cc&&h.createElement(Sc,{title:_e("Blocked")}),t===Pc&&h.createElement(Ip,{title:_e("Weekly Reports")}),t===Tc&&h.createElement(Hc,{title:_e("Log Settings")}))},Mp=function(){var e=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(h.useState(xc),2),t=e[0],n=e[1],r=z(Ir);return h.createElement("div",null,h.createElement(ro,null,_e("Recent Activity")),h.createElement(ur,null,h.createElement(_u,{padding:"none"},h.createElement(qr,null,Nc.map((function(e){var r=e.label,o=e.type;return o===Cc||o===Pc||o===Tc?null:h.createElement(Xr,{key:o,active:t===o,onClick:function(){return n(o)}},_e(r))}))),t===xc&&h.createElement(fp,{limitedView:!0}),t===kc&&h.createElement(lp,{limitedView:!0})),h.createElement("a",{href:r,style:{textAlign:"center"}},h.createElement(mo,{color:"secondary"},_e("View all logs")))))},Fp=function(){var e=M(),t=z(dc),n=z(hc);return h.useEffect((function(){e(Yo(Jo.HARDENING)),e(Yo(Jo.EBOOK))}),[e]),h.createElement(ur,{sm:"3",gap:"responsive"},h.createElement(wp,{smSpan:"2"},h.createElement(ro,null,_e("Security Hardening")),h.createElement(ur,{sm:"2",gap:"responsive"},t.map((function(e){var t=e.button_link,n=e.button_text,r=e.icon,o=e.text,a=e.title;return h.createElement(co,{key:a+o,layout:"vertical",iconName:r,iconColor:"primary",text:o,title:a},h.createElement("a",{href:t,className:"sg-security-ebook-button"},h.createElement(mo,{color:"secondary"},n)))})))),h.createElement(wp,{className:"sg-security-hardening-column"},h.createElement(ro,null,null==n?void 0:n.title),h.createElement("a",{className:"sg-security-ebook",href:null==n?void 0:n.link,"aria-label":null==n?void 0:n.text,target:"_blank",rel:"noreferrer",style:n&&{backgroundImage:'url("'.concat(null==n?void 0:n.image,'")')}})))},Lp=function(e){var t=e.children;return h.createElement(_u,{className:"sg-card-notifications",padding:"none"},h.createElement(ur,{gap:"none",padding:["none","responsive"]},t))};Lp.displayName="CardNotifications";var Up=Lp,zp=function(){return zp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zp.apply(this,arguments)},Vp=function(e){var t=e.title,n=e.description,r=e.device,o=e.buttonLabel,a=e.disabled,i=e.handleClick,l=un("sg-card-notification-title-"),u=un("sg-card-notification-description-"),c="".concat(l," ").concat(u);return h.createElement(ur,{className:"sg-card-notification",align:"flex-start",autoflow:r.isPhone?"row":"column",gap:"responsive",border:["none","none","small","none"],padding:["responsive","none"],justify:"space-between"},!r.isPhone&&h.createElement(Nn,{size:"48",color:"primary",name:"product-notification-bell"}),h.createElement(ur,{autoflow:"row",gap:"none"},h.createElement(er,{id:l,density:"none",level:"6",weight:"extra-bold",transform:"uppercase"},t),h.createElement(Gn,{id:u,className:"sg-card-notification--description"},n)),o&&h.createElement(wp,{style:{alignSelf:"center"}},h.createElement(mo,{onClick:i,disabled:a,color:"primary",size:"small","aria-describedby":c},o)))};Vp.displayName="CardNotification";var Bp=function(e){return h.createElement(yt.Consumer,null,(function(t){var n=t.device;return h.createElement(Vp,zp(zp({},e),{device:n}))}))},Hp=function(){var e=M(),t=z(pc);return h.useEffect((function(){e(Yo(Jo.NOTIFICATIONS))}),[e]),t&&0!==t.length?h.createElement("div",null,h.createElement(ro,null,_e("Important Notifications")),h.createElement(Up,null,t.map((function(e){var t=e.title,n=e.text,r=e.button_link,o=e.button_text;return h.createElement(Bp,{key:t+n,title:t,description:n,buttonLabel:o,handleClick:function(){return location.href=r}})})))):null},Wp=function(){return Wp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wp.apply(this,arguments)},Kp=function(e){var t=h.useRef(null),n=e.decoration,r=e.disabled,o=e.className,a=e.onClick,i=e.onKeyDown,l=e.children,u=e.target,c=e.color,s=e.title,f=e.breadcrumb,p=e.tabIndex,d=e["data-e2e"],m=e["data-component"],y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["decoration","disabled","className","onClick","onKeyDown","children","target","color","title","breadcrumb","tabIndex","data-e2e","data-component"]),g=ct("sg-link",n&&"sg-link--decoration-".concat(n),r&&"sg-link--disabled",f&&"sg-link--breadcrumb",an(c),Wn(y),o);return h.createElement("a",Wp(Wp({ref:t,className:g,"data-e2e":d,"data-component":m,tabIndex:p},ht(y)),{target:u,onClick:r?null:a,onKeyDown:function(e){r||(e.key===xt.ENTER&&(e.preventDefault(),e.stopPropagation(),t.current&&t.current.click()),i&&i(e))},title:s}),l)};Kp.defaultProps={"data-e2e":"link","data-component":"link",tabIndex:0,role:"link",wordBreak:"all"};var qp=Kp,Gp=function(){return Gp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gp.apply(this,arguments)},Yp={medium:{height:"22px",width:"16px"},"x-large":{height:"32px",width:"22px"}},$p=function(e){var t=e.children,n=e.href,r=e.color,o=e.size,a=e.target,i=e.disabled,l=e.onClick,u=e["data-e2e"],c=e["data-component"],s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","href","color","size","target","disabled","onClick","data-e2e","data-component"]),f=ct("sg-presentational-link",i&&"sg-presentational-link-disabled"),p=ct("sg-presentational-link-text",i&&"sg-presentational-link-text-disabled"),d=ct("sg-presentational-link-icon",i&&"sg-presentational-link-icon-disabled");return h.createElement(qp,Gp(Gp({href:n,target:a,onClick:l,disabled:i},ht(s)),{"data-e2e":u,"data-component":c}),h.createElement("span",{className:f},h.createElement(Gn,{className:p,size:o,color:r,tag:"span",weight:"bold",transform:"uppercase"},t),h.createElement(Nn,{className:d,name:"arrow-forward-thick",color:r,height:Yp[o].height,width:Yp[o].width})))};$p.defaultProps={color:"ocean",size:"x-large","data-e2e":"presentational-link","data-component":"presentational-link"};var Xp=$p,Qp=function(){return Qp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qp.apply(this,arguments)},Jp=function(){var e=h.useContext(yt).device,t=M(),n=z(bc).show;return h.useEffect((function(){t(Yo(Jo.RATE))}),[t]),n?h.createElement("div",null,h.createElement(ro,null,_e("Rate Us")),h.createElement(_u,{className:"rate"},h.createElement(jr,{resources:[Oo,xo]},h.createElement("div",null,h.createElement("div",{className:ct("rate__wrapper",e.isPhone&&"rate_wrapper--mobile")},h.createElement("div",null,h.createElement(Nn,{name:"illustration-rate-us",size:"150",multicolor:!0})),h.createElement("div",{className:"rate__separator"}),h.createElement(ea,{direction:"column"},h.createElement(er,{level:"4",density:"compact"},_e("Rate your experience with Security Optimizer")),h.createElement(Gn,{padding:["none","none","medium","none"]},_e("Help other users make the best decision and protect their websites.")),h.createElement(Xp,{href:"https://wordpress.org/support/plugin/sg-security/reviews/?rate=5#new-post",target:"_blank",size:"medium"},_e("Rate Plugin"))),h.createElement(Ln,{className:ct("rate__close-icon-button","rate__close-icon-button--mobile"),icon:"cross",onClick:function(){return t(Xo(Qp(Qp({},Jo.RATE),{requestTypeName:xo,body:{show:0}})))}})))))):null},Zp=function(){return h.createElement(fo,{pageId:xe.SECURITY_DASHBOARD},h.createElement(Hp,null),h.createElement(Fp,null),h.createElement(Jp,null),h.createElement(Mp,null))},ed=function(){return ed=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ed.apply(this,arguments)},td=function(e){var t=e.color,n=e.children,r=e.className,o=e.background,a=e.size,i=e.tabIndex,l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["color","children","className","background","size","tabIndex"]),u=ct("sg-time-picker-button",t&&"sg-time-picker-button--color-".concat(t),o&&"sg-time-picker-button--background-".concat(o),"sg-time-picker-button--size-".concat(a),r);return h.createElement("button",ed({className:u,type:"button",tabIndex:i},l),n)};td.defaultProps={size:"large",tabIndex:-1};var nd=td,rd=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),od=function(){return od=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},od.apply(this,arguments)},ad=Object.defineProperty,id=function(e,t,n){return function(e,t,n){t in e?ad(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!=typeof t?t+"":t,n),n},ld="TIME",ud="HOUR",cd="MINUTE",sd=function(e){function t(t){var n=e.call(this,t)||this;return id(n,"handleHourKeyDown",(function(e){switch(e.key){case xt.SPACE:case xt.ENTER:return e.preventDefault(),void e.stopPropagation();case xt.UP:case xt.RIGHT:return void n.handleHourIncrease();case xt.DOWN:case xt.LEFT:return void n.handleHourDecrease();default:return}})),id(n,"handleMinuteKeyDown",(function(e){switch(e.key){case xt.SPACE:case xt.ENTER:return e.preventDefault(),void e.stopPropagation();case xt.UP:case xt.RIGHT:return void n.handleMinuteIncrease();case xt.DOWN:case xt.LEFT:return void n.handleMinuteDecrease();default:return}})),n.state={viewType:ld,selectedTime:+(new Date).setMinutes(0),inputValue:null,isTimePickerVisible:!1},n.openTimePicker=n.openTimePicker.bind(n),n.closeTimePicker=n.closeTimePicker.bind(n),n.handleTimePick=n.handleTimePick.bind(n),n.handleTimeChange=n.handleTimeChange.bind(n),n.handleHourIncrease=n.handleHourIncrease.bind(n),n.handleHourSelection=n.handleHourSelection.bind(n),n.handleHourDecrease=n.handleHourDecrease.bind(n),n.handleMinuteIncrease=n.handleMinuteIncrease.bind(n),n.handleMinuteSelection=n.handleMinuteSelection.bind(n),n.handleMinuteDecrease=n.handleMinuteDecrease.bind(n),n.handleDayPeriodChange=n.handleDayPeriodChange.bind(n),n}return rd(t,e),t.prototype.componentDidMount=function(){var e=this.props.value,t=this.state.selectedTime;e&&t!==e&&this.setStateFromValue(e)},t.prototype.componentDidUpdate=function(e){""===this.props.value&&null!==this.state.inputValue&&this.setState({inputValue:null}),e.value!==this.props.value&&this.setStateFromValue(this.props.value)},t.prototype.setStateFromValue=function(e){var t=+new Date(1e3*parseInt(e,10));"string"!=typeof e?this.setState({selectedTime:t,inputValue:t}):this.setState({selectedTime:+new Date,inputValue:""})},t.prototype.getTimeFromLocales=function(){return function(e,t){void 0===t&&(t=navigator.language);var n=Da(e);if(!n)return null;var r=Ia.find((function(e){return e.toLowerCase()===t.toLowerCase()})),o=Ma(r?"en":t,n),a=/AM|PM|a\.m|p\.m/.test(o),i=parseInt(n.getHours().toString(),10)>=12?"PM":"AM",l=parseInt(o,10).toString().padStart(2,"0"),u=n.getMinutes().toString().padStart(2,"0");return a?"".concat(l,":").concat(u," ").concat(i):"".concat(l,":").concat(u)}(this.state.inputValue,this.props.locales)},t.prototype.getHours=function(){var e=this.state.selectedTime;return new Date(e).getHours()},t.prototype.getMinutes=function(){var e=this.state.selectedTime;return new Date(e).getMinutes()},t.prototype.getFormattedTime=function(e){return Math.floor(e/1e3)},t.prototype.getHumanReadableSelectedHour=function(){var e=this.props.locales,t=this.state.selectedTime,n=Ma(e,new Date(t));return parseInt(n,10).toString().padStart(2,"0")},t.prototype.getHumanReadableSelectedMinute=function(){var e=this.getMinutes().toString();return parseInt(e,10).toString().padStart(2,"0")},t.prototype.getHumanReadableSelectedDayPeriod=function(){return this.getHours()>=12?"PM":"AM"},t.prototype.closeTimePicker=function(){this.setState({isTimePickerVisible:!1,viewType:ld})},t.prototype.openTimePicker=function(){this.props.disabled||this.setState({isTimePickerVisible:!0})},t.prototype.handleTimePick=function(){var e=this.props.onChange,t=this.state.selectedTime,n=this.getFormattedTime(t);this.setState({inputValue:t},(function(){return e(n)}))},t.prototype.handleTimeChange=function(e){var t=e.hour,n=e.minute,r=this.state.selectedTime,o=new Date(r),a=void 0!==t?t:o.getHours(),i=void 0!==n?n:o.getMinutes(),l=+new Date(o.getFullYear(),o.getMonth(),o.getDate(),a,i,0);this.setState({selectedTime:l})},t.prototype.handleHourIncrease=function(){var e=this.getHours(),t=23===e?0:e+1;this.handleTimeChange({hour:t})},t.prototype.handleHourDecrease=function(){var e=this.getHours(),t=0===e?23:e-1;this.handleTimeChange({hour:t})},t.prototype.handleHourSelection=function(e){var t=this;this.setState({viewType:ld},(function(){return t.handleTimeChange({hour:e})}))},t.prototype.handleMinuteIncrease=function(){var e=this.getMinutes(),t=59===e?0:e+1;this.handleTimeChange({minute:t})},t.prototype.handleMinuteDecrease=function(){var e=this.getMinutes(),t=0===e?59:e-1;this.handleTimeChange({minute:t})},t.prototype.handleMinuteSelection=function(e){var t=this;this.setState({viewType:ld},(function(){return t.handleTimeChange({minute:e})}))},t.prototype.handleDayPeriodChange=function(){var e=this.getHours(),t=e>=12?e-12:e+12;this.handleTimeChange({hour:t})},t.prototype.shouldUse12hFormat=function(){var e=this.state.selectedTime,t=this.props.locales,n=Ma(t,new Date(e));return Boolean(["A","M","P","a","m","p"].find((function(e){return n.includes(e)})))},t.prototype.renderInput=function(){var e=this,t=this.props.disabled,n=this.state.inputValue,r={label:this.props.label,placeholder:this.props.placeholder,size:this.props.size,validationMessage:this.props.validationMessage,validationMessageTemplate:this.props.validationMessageTemplate,state:this.props.state,disabled:this.props.disabled,readOnly:this.props.readOnly,ariaLabel:this.props["aria-label"],"data-e2e":this.props["data-e2e-input"]},o=n?this.getTimeFromLocales():"",a=ct("sg-time-picker__input",t&&"sg-time-picker__input--disabled"),i=ct("sg-time-picker__field",t&&"sg-time-picker__field--disabled");return h.createElement(xi,od({className:a,fieldClassName:i,value:o,prefix:h.createElement(Nn,{name:"generic-clock",color:"primary",size:"18",className:"date-picker-calendar-icon","aria-hidden":!0}),onClick:this.openTimePicker,role:"button","aria-label":r.ariaLabel,onKeyDown:function(t){t.key!==xt.SPACE&&t.key!==xt.ENTER||(t.preventDefault(),t.stopPropagation(),e.openTimePicker())}},r))},t.prototype.renderTimePickerDialog=function(){var e=this.state,t=e.isTimePickerVisible,n=e.viewType,r=ct("sg-time-picker",this.props.className);return t?h.createElement(Ya,{className:r,density:"small",size:"small",footer:this.renderFooter(),onCloseHandler:this.closeTimePicker,"data-e2e":this.props["data-e2e"],"aria-hidden":t,role:"region","aria-live":"polite"},n===ld&&this.renderClock(),n===ud&&this.renderHourPicker(),n===cd&&this.renderMinutePicker()):null},t.prototype.renderFooter=function(){var e=this,t=this.props.translation;return h.createElement(h.Fragment,null,h.createElement(mo,{onClick:this.closeTimePicker,"data-e2e":"timepicker-cancel-button"},t.cancelButton),h.createElement(mo,{"data-e2e":"timepicker-confirm-button",color:"primary",disabled:this.props.shouldDisableTime(this.getFormattedTime(this.state.selectedTime)),onClick:function(){e.handleTimePick(),e.closeTimePicker()}},t.okButton))},t.prototype.renderClock=function(){var e=this,t=this.shouldUse12hFormat(),n=this.getHumanReadableSelectedHour(),r=this.getHumanReadableSelectedMinute(),o=this.getHumanReadableSelectedDayPeriod(),a=this.props.ariaProps;return h.createElement("div",{className:"sg-time-picker__content sg-time-picker__content--flex","data-e2e":"timepicker-clock",role:"group"},h.createElement("div",{className:"sg-time-picker__column"},h.createElement(nd,{size:"xx-large",tabIndex:0,style:{order:1},onClick:function(){return e.setState({viewType:ud})},onKeyDown:this.handleHourKeyDown,"data-e2e":"timepicker-hour",role:"spinbutton","aria-valuenow":parseInt(n),"aria-valuetext":n,"aria-valuemin":1,"aria-valuemax":t?12:24,"aria-label":a.ariaLabelHours,"aria-live":"polite"},n),h.createElement(nd,{color:"secondary",style:{order:0},onClick:this.handleHourIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},h.createElement(Nn,{name:"arrow-up",size:"16"})),h.createElement(nd,{color:"secondary",style:{order:2},onClick:this.handleHourDecrease,"data-e2e":"timepicker-hour-decrease",role:"presentation","aria-hidden":"true"},h.createElement(Nn,{name:"arrow-down",size:"16"}))),h.createElement("div",{className:"sg-time-picker__column sg-time-picker__column--justify-center"},":"),h.createElement("div",{className:"sg-time-picker__column"},h.createElement(nd,{color:"secondary",onClick:this.handleMinuteIncrease,"data-e2e":"timepicker-hour-increase",role:"presentation","aria-hidden":"true"},h.createElement(Nn,{name:"arrow-up",size:"16"})),h.createElement(nd,{size:"xx-large",tabIndex:0,onClick:function(){return e.setState({viewType:cd})},onKeyDown:this.handleMinuteKeyDown,"data-e2e":"timepicker-minute",role:"spinbutton","aria-valuenow":parseInt(r),"aria-valuetext":r,"aria-valuemin":0,"aria-valuemax":59,"aria-label":a.ariaLabelMinutes,"aria-live":"assertive"},r),h.createElement(nd,{color:"secondary",onClick:this.handleMinuteDecrease,"data-e2e":"timepicker-minute-decrease",role:"presentation","aria-hidden":"true"},h.createElement(Nn,{name:"arrow-down",size:"16"}))),t&&h.createElement("div",{className:ct("sg-time-picker__column","sg-time-picker__column--justify-center","sg-time-picker__column--margin-start")},h.createElement(nd,{background:"secondary",onClick:this.handleDayPeriodChange,tabIndex:0,"data-e2e":"timepicker-period-change","aria-label":"am/pm",role:"button","aria-valuetext":o},o)))},t.prototype.renderHourPicker=function(){var e=this,t=this.getHours(),n=this.shouldUse12hFormat(),r=Array(n?12:24).fill(null).map((function(e,t){return n?t+1:t}));return h.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-hour"},r.map((function(n){var r=t===n,o=ct("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return h.createElement("span",{key:n,ref:function(e){return r&&zi(e,{block:"center"})},"data-e2e":"timepicker-hours"},h.createElement(Gn,{className:o,color:"dark",weight:"bold",onClick:function(){return e.handleHourSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.renderMinutePicker=function(){var e=this,t=this.getMinutes(),n=Array(60).fill(null).map((function(e,t){return t}));return h.createElement("div",{className:"sg-time-picker__content","data-e2e":"timepicker-minutes"},n.map((function(n){var r=t===n,o=ct("sg-time-picker-entity",r&&"sg-time-picker-entity--selected");return h.createElement("span",{key:n,ref:function(e){return r&&zi(e,{block:"center"})},"data-e2e":"timepicker-minute"},h.createElement(Gn,{className:o,weight:"bold",onClick:function(){return e.handleMinuteSelection(n)}},n.toString().padStart(2,"0")))})))},t.prototype.render=function(){return h.createElement(h.Fragment,null,this.renderInput(),this.renderTimePickerDialog())},t}(h.Component);id(sd,"defaultProps",{locales:navigator.language||"en-US",placeholder:"Select a time",onChange:function(){return!1},shouldDisableTime:function(){return!1},translation:{cancelButton:"Cancel",okButton:"Ok"},"data-e2e":"timepicker","data-e2e-input":"timepicker-input",ariaProps:{ariaLabelMinutes:"Minutes",ariaLabelHours:"Hour"}});var fd=sd,pd=function(){return pd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},pd.apply(this,arguments)},dd="period",hd="weekly",md="daily",yd=[{label:_e("Specific Period"),value:dd},{label:_e("Weekly"),value:hd},{label:_e("Daily"),value:md}],gd=[{label:_e("Monday"),value:"monday"},{label:_e("Tuesday"),value:"tuesday"},{label:_e("Wednesday"),value:"wednesday"},{label:_e("Thursday"),value:"thursday"},{label:_e("Friday"),value:"friday"},{label:_e("Saturday"),value:"saturday"},{label:_e("Sunday"),value:"sunday"}],vd=function(e){switch(e.type){case dd:return{type:e.type,from:e.from_date,to:e.to_date};case hd:return{type:e.type,value:e.weekly.map((function(e){return e.value}))};case md:return{type:e.type,from:e.from_hour,to:e.to_hour}}},bd=+(new Date).setHours(0,0,0),wd=(new Date).setMonth((new Date).getMonth()+6),Ed=function(){var e=M(),t=Hf({defaultValues:{type:dd}}),n=t.control,r=t.handleSubmit,o=t.watch,a=t.setValue,i=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}(o(["type","from_date","to_date","from_hour","to_hour"]),5),l=i[0],u=i[1],c=i[2],s=i[3],f=i[4];return h.createElement(np,{name:"AWAY_MODE",size:"large",title:_e("Configure Away Mode"),onSubmit:r((function(t){return e(Xo(pd(pd({},Jo.AWAY_MODE),{requestTypeName:"AWAY_MODE",body:vd(t)}),{onComplete:function(){return cs.close(ss)}}))}))},h.createElement(ur,null,h.createElement(Gn,null,h.createElement(Gn,{tag:"span",weight:"bold"},_e("Use Away Mode with caution.")),h.createElement(Qa,{size:"xx-small"}),_e("When Away Mode is enabled, you won't be able to access your website and make changes, including disabling the away mode.")),h.createElement(Gs,{name:"type",render:function(e){var t=e.field;return h.createElement(Rl,pd({label:_e("Mode"),options:yd,optionValue:"value",optionLabel:"label",selectedValue:t.value},t))},shouldUnregister:!0,control:n,rules:{required:!0}}),l===dd&&h.createElement(ur,{sm:"2"},h.createElement(Gs,{name:"from_date",render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(Qi,pd({label:_e("From"),state:r?"error":void 0,validationMessage:xp(o),shouldDisableDate:function(e){return bd>=1e3*e}},t,{onChange:function(e){e>c&&a("to_date",""),t.onChange(e)}}))},shouldUnregister:!0,control:n,rules:{required:!0}}),h.createElement(Gs,{name:"to_date",render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(Qi,pd({label:_e("To"),state:r?"error":void 0,validationMessage:xp(o),shouldDisableDate:function(e){return 1e3*e<bd||e<u||1e3*e>wd||void 0}},t))},shouldUnregister:!0,control:n,rules:{required:!0}})),l===hd&&h.createElement(Gs,{name:"weekly",render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(Gl,pd({label:"Select one or more",options:gd,optionValue:"value",optionLabel:"label",groupBy:"group",state:r?"error":void 0,validationMessage:xp(o)},t,{onChange:function(e,n,r){return t.onChange(r)}}))},shouldUnregister:!0,control:n,rules:{required:!0,validate:Sp}}),l===md&&h.createElement(ur,{sm:"2"},h.createElement(Gs,{name:"from_hour",render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(fd,pd({locales:"bg",label:_e("From"),state:r?"error":void 0,validationMessage:xp(o)},t,{onChange:function(e){e>f&&a("to_hour",""),t.onChange(e)}}))},shouldUnregister:!0,control:n,rules:{required:!0}}),h.createElement(Gs,{name:"to_hour",render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(fd,pd({locales:"bg",label:_e("To"),state:r?"error":void 0,validationMessage:xp(o)},t))},shouldUnregister:!0,control:n,rules:{required:!0,validate:function(e){return e-s<=82800||_e("You can enable Away Mode for maximum of 23 hours daily.")}}}))))},Od=function(){return Od=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Od.apply(this,arguments)},_d="data-component",Sd=function(e){var t=h.useRef(null),n=e.children,r=e.className,o=e.disabled,a=e.reverse,i=e.size,l=e.style,u=e.tabIndex,c=e["data-e2e"],s=e["data-component"],f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["children","className","disabled","reverse","size","style","tabIndex","data-e2e","data-component"]),p=ct("sg-radio-button",o&&"sg-radio-button--disabled","sg-radio-button--".concat(i),r);return h.createElement("label",{role:"radio",ref:t,className:p,style:l,tabIndex:u,"data-e2e":c,"data-component":s,onKeyDown:function(e){return function(e){var t=e.event,n=e.dataComponent,r=e.domRef;if(kt(t))nn({event:t,onComponentFiltering:function(e){return e.getAttribute(_d)!==n}});else if(Ct(t))nn({event:t,isDirectionForward:!1,onComponentFiltering:function(e){return e.getAttribute(_d)!==n}});else switch(t.key){case xt.SPACE:return void r.current.click();case xt.RIGHT:case xt.DOWN:return void nn({event:t,onComponentFiltering:function(e){return e.getAttribute(_d)===n}});case xt.LEFT:case xt.UP:return void nn({event:t,isDirectionForward:!1,onComponentFiltering:function(e){return e.getAttribute(_d)===n}});default:return}}({event:e,dataComponent:s,domRef:t})},"aria-checked":f.checked},h.createElement("input",Od(Od({className:"sg-radio-button__input"},ht(f)),{type:"radio",disabled:o})),a&&h.createElement("span",{className:"sg-radio-button__label"},n),h.createElement(Nn,{name:"dot",className:"sg-radio-button__icon"}),!a&&h.createElement("span",{className:"sg-radio-button__label"},n))};Sd.defaultProps={size:"medium",tabIndex:0,"data-e2e":"radio-button","data-component":"radio-button"};var xd=Sd,kd=function(){return kd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kd.apply(this,arguments)},Cd="custom",Pd="type",Td=function(e){var t=e.signup,n=e.type,r=e.homeURL,o=e.control;return null==t?null:n===Cd?h.createElement(Gs,{name:"signup",render:function(e){var t=e.field,n=e.fieldState,o=n.invalid,a=n.error;return h.createElement(xi,kd({onRefsReady:t.ref,prefix:r,state:o?"error":void 0,validationMessage:xp(a),label:_e("Custom Signup URL")},t))},shouldUnregister:!0,control:o,rules:{required:!0,validate:_p},defaultValue:t.replace(r,"")}):h.createElement(Gs,{name:"signup",render:function(e){var t=e.field;return h.createElement(xi,kd({onRefsReady:t.ref,readOnly:!0,label:_e("Default Signup URL")},t))},shouldUnregister:!0,control:o,defaultValue:t})},Nd=function(e){var t=e.login,n=e.type,r=e.homeURL,o=e.control;return null==t?null:n===Cd?h.createElement(Gs,{name:"login",render:function(e){var t=e.field,n=e.fieldState,o=n.invalid,a=n.error;return h.createElement(xi,kd({onRefsReady:t.ref,prefix:r,label:_e("Custom Login URL"),validationMessage:xp(a),state:o?"error":void 0},t))},shouldUnregister:!0,control:o,rules:{required:!0,validate:_p},defaultValue:t.replace(r,"")}):h.createElement(Gs,{name:"login",render:function(e){var t=e.field;return h.createElement(xi,kd({onRefsReady:t.ref,readOnly:!0,label:_e("Default Login URL")},t))},shouldUnregister:!0,control:o,rules:{required:!0},defaultValue:t})},jd=function(){var e=M(),t=z(fc).login_url,n=void 0===t?[]:t,r=z(Ar),o=Hf(),a=o.control,i=o.watch,l=o.handleSubmit,u=o.setValue,c=o.getValues,s=o.reset,f=i(Pd),p=n.find((function(e){var t=e.type;return f===t})),d=c();return h.useEffect((function(){var e=n.find((function(e){return e.selected}));e&&u(Pd,e.type)}),[n,u]),h.createElement(np,{size:"large",name:ss,title:_e("Configure Login URL"),subTitle:(null==p?void 0:p.signup)&&_e("If you have your registration form open for new users, you will be asked to change the signup URL, too."),resources:[Ao],onSubmit:l((function(t){var n=t.type,r=t.login,o=t.signup;e(Xo(kd(kd({},Jo.CUSTOM_LOGIN_URL),{requestTypeName:Ao,body:{type:n,login:r,signup:o}}),{onComplete:function(){return cs.close(ss)}}))}))},h.createElement(ur,{sm:"1"},h.createElement(ur,{sm:"2"},h.createElement(Gs,{render:function(e){var t=e.field;return h.createElement(h.Fragment,null,n.map((function(e){var r=e.type,o=e.label;return h.createElement(xd,{key:r,name:"radiobutton",value:r,checked:t.value===r,onChange:function(){s(["login","signup"]);var e=n.find((function(e){return e.type===r}));u(Pd,r),u("login",e.login),u("signup",e.signup)}},o)})))},control:a,name:Pd})),"custom"===d.type&&h.createElement(vp,{type:"info",shadow:!1},_e("Your site signup URL (wp-signup.php) has a link to your login URL, which can be easily exploited. Please change the signup URL, too and make sure that {{strong}}you update the URL with the new one{{/strong}} if you have it linked in your website, emails or other places.",{components:{strong:h.createElement("strong",null)}})),h.createElement(ur,{sm:"1"},h.createElement(Nd,kd({},p,{homeURL:r,control:a})),h.createElement(Td,kd({},p,{homeURL:r,control:a})))))},Ad=function(){return Ad=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ad.apply(this,arguments)},Rd=function(){var e=M(),t=Hf(),n=t.control,r=t.handleSubmit,o=t.reset,a=t.getValues,i=z(fc).usernames_data,l=void 0===i?{}:i,u=l.admin_matches,c=void 0===u?[]:u,s=l.all_users,f=void 0===s?[]:s,p=c.reduce((function(e,t){return e.push(t.ID),e}),[]);return h.createElement(np,{name:ps,title:_e("Change Common Usernames"),subTitle:_e("There are one or more users with common usernames. Please provide new username(s) for them."),resources:[Ao],onCloseHandler:function(){return o()},onSubmit:r((function(t){var n=function(e){return Object.keys(e).reduce((function(t,n){var r={ID:n,user_login:e[n]};return t.push(r),t}),[])}(t);e(Xo(Ad(Ad({},Jo.DISABLE_ADMIN_USERNAME),{requestTypeName:jo,body:{admin_names:Ad({},n),disable_usernames:1}}),{onComplete:function(){e(Yo(Ad(Ad({},Jo.FETCH_OPTIONS),{method:"POST",body:{page:Vc[xe.LOGIN_SETTINGS]}}))),cs.close(ps)}}))}))},h.createElement(ur,null,c.map((function(e){return h.createElement(Gs,{key:e.ID,render:function(t){var n=t.field,r=t.fieldState.error;return h.createElement(xi,Ad({onRefsReady:n.ref},n,{label:_e("New username: %(admin)s",{args:{admin:e.user_login}}),state:r?"error":"success",validationMessage:xp(r)}))},control:n,name:e.ID,rules:{validate:function(e){var t=a(p);return function(e){var t,n=e.name,r=e.users,o=e.fieldsValues;if(!n)return _e("This field is required.");if(void 0===(t=n)&&(t=""),/[^a-z0-9 _.\-@]/i.test(t))return _e("Invalid format.");var a,i=function(e){return e.reduce((function(e,t){return e.push(t.user_login),e}),[])}(r);return a=n,o.filter((function(e){return e===a})).length>1?_e("Username %(name)s already typed.",{args:{name:n}}):i.includes(n)?_e("Username %(name)s already exists.",{args:{name:n}}):!Ep.includes(n)||_e("Username %(name)s is not allowed.",{args:{name:n}})}({name:e,users:f,fieldsValues:t})}}})})),h.createElement(Gn,null,_e("Bear in mind that the user will NOT be notified of the change."))))},Id=function(){return Id=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Id.apply(this,arguments)},Dd=function(){var e=M(),t=Hf(),n=t.handleSubmit,r=t.reset,o=t.control,a=z(fc).reset_2fa;return h.createElement(np,{size:"large",name:ds,title:_e("Reset 2-factor Authentication"),subTitle:_e("Resetting the 2FA authentication will enable them to set up their Authentication app anew on their next login. Use this functionality when a user no longer has access to their Authenticator app or backup codes and cannot log in."),resources:["FETCH_OPTIONS"],onCloseHandler:function(){return r()},onSubmit:n((function(t){e(Xo(Id(Id({},Jo.RESET_TWO_FACTOR),{requestTypeName:"RESET_TWO_FACTOR",itemId:t.user_login}),{onComplete:function(){cs.close(ds)}}))}))},h.createElement(ur,null,h.createElement(Gs,{name:"user_login",render:function(e){var t=e.field;return h.createElement(Rl,Id({label:_e("Select User"),options:a,optionValue:"ID",optionLabel:"user_login",selectedValue:t.value},t))},control:o})))},Md=function(){return Md=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Md.apply(this,arguments)},Fd="ips",Ld=_e("IP"),Ud=function(){var e=M(),t=z(fc).login_access,n=Hf(),r=n.control,o=n.handleSubmit,a=n.setValue,i=yf({control:r,name:Fd}),l=i.fields,u=i.remove,c=i.insert;return h.useEffect((function(){var e;a(Fd,(e=t)&&0!==e.length?e.map((function(e){return{ip:e}})):[{ip:""}])}),[t,a]),h.createElement(np,{name:fs,title:_e("Manage Login Access"),resources:[Ro],onSubmit:o((function(t){return e(Xo(Md(Md({},Jo.LOGIN_ACCESS),{requestTypeName:Ro,body:t[Fd].map((function(e){return e.ip})).filter(Boolean)}),{onComplete:function(){return cs.close(fs)}}))}))},h.createElement(ur,null,l.map((function(e,t,n){var o=e.id,i=e.ip,l="".concat(Fd,".").concat(t,".ip");return h.createElement(ea,{key:o,align:"center",wrap:"nowrap"},h.createElement(Gs,{render:function(e){var t=e.field,n=e.fieldState,r=n.invalid,o=n.error;return h.createElement(xi,Md({placeholder:Ld,onRefsReady:t.ref},t,{state:r?"error":void 0,validationMessage:null==o?void 0:o.message}))},rules:{validate:Op},control:r,defaultValue:i,name:l}),h.createElement(Ln,{icon:"circle-minus",onClick:function(){return 1!==n.length?u(t):a(l,"")}}),h.createElement(Ln,{icon:"circle-plus",onClick:function(){return c(t+1,"")}}))}))))},zd=function(){return zd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zd.apply(this,arguments)},Vd=function(){var e,t=M(),n=z(fc),r=n.usernames_data,o=n.sg2fa,a=n.disable_usernames,i=n.login_url,l=n.login_attempts;h.useEffect((function(){t(Yo(zd(zd({},Jo.FETCH_OPTIONS),{method:"POST",body:{page:Vc[xe.LOGIN_SETTINGS]}})))}),[t]);var u=Boolean(null==i?void 0:i.find((function(e){return e.selected&&"default"===e.type}))),c=null===(e=null==l?void 0:l.find((function(e){return e.selected})))||void 0===e?void 0:e.value,s=0===o?_e("Two-factor authentication forces admin users to login only after providing a token, generated from the Google Authenticator application. When you enable this option, {{strong}}all admin & editor users will be asked to configure their two-factor authentication in the Authenticator app on their next login.{{/strong}}",{components:{strong:h.createElement("strong",null)}}):_e("Two-factor authentication forces admin users to login only after providing a token, generated from the Google Authenticator application. If one of your users no longer has access to their Authenticator app and cannot log in to get their backup codes, {{link}}click here{{/link}} to reset their 2-factor authentication.",{components:{link:h.createElement(qp,{onClick:function(){return cs.open(ds)}})}});return h.createElement(fo,{pageId:xe.LOGIN_SETTINGS},h.createElement("div",null,h.createElement(ro,null,_e("Login Settings")),h.createElement(_u,{padding:"none"},h.createElement(zc,{label:u&&_e("recommended"),title:_e("Custom Login URL"),text:_e("Attackers often try exploits on /wp-admin as a default login URL for WordPress. Change it to avoid these attacks and have an easily memorisable login URL."),action:h.createElement(mo,{color:"secondary",onClick:function(){return cs.open(ss)}},_e("configure"))}),h.createElement(zc,{title:_e("Login Access"),text:_e("By default your WordPress login can be accessed by any IP. You can use this feature to allow login only for specific IPs or range of IPs in order to prevent brute-force attacks or malicious login attempts."),action:h.createElement(mo,{color:"secondary",onClick:function(){return cs.open(fs)}},_e("configure"))}),h.createElement(zc,{label:!o&&_e("recommended"),title:_e("Two-factor Authentication for Admin & Editors Users"),text:s,resources:[No],action:h.createElement(Ic,{checked:Boolean(o),onChange:function(){return t(Xo(zd(zd({},Jo.TWO_FA),{requestTypeName:No,body:{sg2fa:Number(!o)}})))}})}),h.createElement(zc,{label:!a&&_e("recommended"),title:_e("Disable Common Usernames"),text:_e("Using common usernames like 'admin' is a security threat that often results in unauthorised access. By enabling this option we will disable the creation of common usernames and if you already have one or more users with a weak username, we'll ask you to provide new one(s)."),resources:[jo],action:h.createElement(Ic,{checked:Boolean(a),onChange:function(){var e=r.admin_matches;a||!e.length?t(Xo(zd(zd({},Jo.DISABLE_ADMIN_USERNAME),{requestTypeName:jo,body:{disable_usernames:Number(!a)}}))):cs.open(ps)}})}),h.createElement(zc,{label:0===c&&_e("recommended"),title:_e("Limit Login Attempts"),text:_e("Limit the number of times a given user can attempt to log in to your wp-admin with incorrect credentials. Once the login attempt limit is reached, the IP from which the attempts have originated will be blocked first for 1 hour. If the attempts continue after the first hour, the limit will then be triggered for 24 hours and then for 7 days."),resources:[Io],action:h.createElement(Rl,{options:l,optionValue:"value",optionLabel:"label",selectedValue:c,onChange:function(e){return t(Xo(zd(zd({},Jo.LOGIN_ATTEMPTS),{requestTypeName:Io,body:{login_attempts:e}})))}})})),h.createElement(jd,null),h.createElement(Rd,null),h.createElement(Ud,null),h.createElement(Dd,null),h.createElement(Ed,null)))},Bd=function(){return Bd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Bd.apply(this,arguments)},Hd=function(){var e=M();return h.createElement(fo,{pageId:xe.POST_HACK_ACTIONS},h.createElement("div",null,h.createElement(ro,null,_e("Post-hack Actions")),h.createElement(_u,{padding:"none"},h.createElement(zc,{title:_e("Reinstall All Free Plugins"),text:_e("Doing this will reinstall the same version of all free plugins you have installed in order to make sure that their codebase is not compromised by an attacker."),resources:[Do],action:h.createElement(mo,{color:"secondary",onClick:function(){return e(Xo(Bd(Bd({},Jo.REINSTALL_PLUGINS),{requestTypeName:Do})))}},_e("reinstall all"))}),h.createElement(zc,{title:_e("Force Password Reset"),text:_e("All users will be required to change their passwords upon their next login. {{strong}}All currently logged in users will be instantly logged out.{{/strong}}",{components:{strong:h.createElement("strong",null)}}),resources:[Mo],action:h.createElement(mo,{color:"secondary",onClick:function(){return e(Xo(Bd(Bd({},Jo.FORCE_PASSWORD_RESET),{requestTypeName:Mo})))}},_e("force password reset"))}),h.createElement(zc,{title:_e("Log out All Users"),text:_e("This will log out all currently logged in users without asking them to change their passwords."),resources:[Fo],action:h.createElement(mo,{color:"secondary",onClick:function(){return e(Xo(Bd(Bd({},Jo.LOGOUT_USERS),{requestTypeName:Fo})))}},_e("Log out All Users"))}))))},Wd=function(){return Wd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wd.apply(this,arguments)},Kd=function(){var e=M(),t=z(fc),n=t.disable_file_edit,r=t.wp_remove_version,o=t.disable_xml_rpc,a=t.disable_feed,i=t.xss_protection,l=t.lock_system_folders,u=t.delete_readme;return h.useEffect((function(){e(Yo(Wd(Wd({},Jo.FETCH_OPTIONS),{body:{page:Vc[xe.SITE_SECURITY]}})))}),[e]),h.createElement(fo,{pageId:xe.SITE_SECURITY},h.createElement("div",null,h.createElement(ro,null,_e("Site Security")),h.createElement(_u,{padding:"none"},h.createElement(zc,{label:l?null:_e("recommended"),title:_e("Lock and Protect System Folders"),text:_e("By enabling this option you are ensuring that no unauthorised or malicious scripts can be executed in your system folders. This is an often exploited back door you can close with a simple toggle."),resources:[Wo],action:h.createElement(Ic,{checked:Boolean(l),onChange:function(){return e(Xo(Wd(Wd({},Jo.LOCK_SYSTEM_FOLDERS),{requestTypeName:Wo,body:{lock_system_folders:Number(!l)}})))}})}),h.createElement(zc,{label:r?null:_e("recommended"),title:_e("Hide WordPress Version"),text:_e("Many attackers scan sites for vulnerable WordPress versions. By hiding the version from your site HTML, you avoid being marked by hackers for mass attacks."),resources:[Ho],action:h.createElement(Ic,{checked:Boolean(r),onChange:function(){return e(Xo(Wd(Wd({},Jo.HIDE_WP_VERSION),{requestTypeName:Ho,body:{wp_remove_version:Number(!r)}})))}})}),h.createElement(zc,{label:n?null:_e("recommended"),title:_e("Disable Themes & Plugins Editor"),text:_e("Disable the option to edit themes and plugins code directly from the WordPress admin to prevent potential coding errors or unauthorised access via the WordPress editor."),resources:[Bo],action:h.createElement(Ic,{checked:Boolean(n),onChange:function(){return e(Xo(Wd(Wd({},Jo.DISABLE_EDITORS),{requestTypeName:Bo,body:{disable_file_edit:Number(!n)}})))}})}),h.createElement(zc,{label:o?null:_e("recommended"),title:_e("Disable XML-RPC"),text:_e("XML-RPC was designed as a protocol enabling WordPress to communicate with third-party systems but recently it has been used in a number of exploits. Unless you specifically need to use it, we recommend that XML-RPC is always disabled."),resources:[zo],action:h.createElement(Ic,{checked:Boolean(o),onChange:function(){return e(Xo(Wd(Wd({},Jo.DISABLE_XML_RPC),{requestTypeName:zo,body:{disable_xml_rpc:Number(!o)}})))}})}),h.createElement(zc,{label:a?null:_e("recommended"),title:_e("Disable RSS and ATOM Feeds"),text:_e("RSS and ATOM feeds are often used to scrape your content and to perform a number of attacks against your site. Only use feeds if you have readers using your site via RSS readers."),resources:[Uo],action:h.createElement(Ic,{checked:Boolean(a),onChange:function(){return e(Xo(Wd(Wd({},Jo.DISABLE_FEEDS),{requestTypeName:Uo,body:{disable_feed:Number(!a)}})))}})}),h.createElement(zc,{label:i?null:_e("recommended"),title:_e("Advanced XSS Protection"),text:_e("Enabling this option will add extra headers to your site for protection against XSS attacks."),resources:[Vo],action:h.createElement(Ic,{checked:Boolean(i),onChange:function(){return e(Xo(Wd(Wd({},Jo.XSS_PROTECTION),{requestTypeName:Vo,body:{xss_protection:Number(!i)}})))}})}),h.createElement(zc,{title:_e("Delete the Default Readme.html"),text:_e("WordPress comes with a readme.html file containing information about your website. The readme.html is often used by hackers to compile lists of potentially vulnerable sites which can be hacked or attacked."),resources:[Lo],action:h.createElement(Ic,{checked:Boolean(u),onChange:function(){return e(Xo(Wd(Wd({},Jo.DELETE_README),{requestTypeName:Lo,body:{delete_readme:Number(!u)}})))}})}))))},qd=function(e){var t=e.condition,n=e.children;return t?h.createElement(h.Fragment,null,n):null},Gd=function(){return Gd=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Gd.apply(this,arguments)},Yd=function(e){var t=e.showDataField,n=e.showEmailField,r=M(),o=Hf(),a=o.control,i=o.handleSubmit;return h.createElement(np,{name:vs,title:_e("Get the Most of This Plugin"),icon:"information",size:"medium",state:"info",resources:[So],footer:h.createElement(ep,{onSubmit:i((function(e){var t=e.siteground_data_consent,n=e.siteground_email_consent,o={siteground_settings_security:1};void 0!==t&&(o.siteground_data_consent=+t),void 0!==n&&(o.siteground_email_consent=+n),r(function(e,t){var n=e.requestTypeName,r=qo(e,["requestTypeName"]);return Ko({type:wo,requestTypeName:n||_o,payload:Ko({},r)},t)}(Gd(Gd({},Jo.UPDATE_CONSENT_SETTINGS),{requestTypeName:So,body:o}),{onComplete:function(){return cs.close(vs)}}))}))})},h.createElement(qd,{condition:t},h.createElement(Gs,{control:a,name:"siteground_data_consent",defaultValue:!1,render:function(e){var t=e.field;return h.createElement(Ta,Gd({},t,{checked:t.value}),_e("Collect technical data about my installation. The data will be used to make sure that the plugin(s) works seamlessly on the widest possible range of WordPress sites. (A full list of the data to be collected can be found {{link}}here{{/link}}).",{components:{link:h.createElement(qp,{href:"https://www.siteground.com/kb/what-information-wp-plugins-collect",target:"_blank"})}}))}})),h.createElement(qd,{condition:n},h.createElement(Gs,{control:a,name:"siteground_email_consent",defaultValue:!1,render:function(e){var t=e.field;return h.createElement(Ta,Gd({},t,{checked:t.value}),_e("Send occasional emails with tips on improving my site performance, information about new plugin features and exclusive offers by SiteGround. You can always opt-out from these."))}})))},$d=function(e){switch(e){case xe.SECURITY_DASHBOARD:return h.createElement(Zp,null);case xe.LOGIN_SETTINGS:return h.createElement(Vd,null);case xe.SITE_SECURITY:return h.createElement(Kd,null);case xe.ACTIVITY_LOG:return h.createElement(Dp,null);case xe.POST_HACK_ACTIONS:return h.createElement(Hd,null)}},Xd=(0,ke.w)((function(e){var t=e.page,n=z(Rr),r=z(Dr),o=r.show_data_field,a=r.show_email_field,i=z(Mr),l=i+"/fonts",u=i+"/images/svg",c=!a&&!o;return h.useEffect((function(){n&&Oe.setLocale(n)}),[n]),c||cs.open(vs),h.createElement(Et,{context:{config:{svgAssetsPath:u,fontsAssetsPath:l}}},h.createElement(It,{position:"relative",pageContent:h.createElement(Kt,{className:"sg-security"},h.createElement(jr,null,h.createElement(xr,{defaultErrorTitle:Oe.translate("Error").toString(),defaultSuccessTitle:Oe.translate("Success").toString()}),$d(t)))}),h.createElement(Yd,{showDataField:o,showEmailField:a}))})),Qd=function(e){return"@@redux-saga/"+e},Jd=Qd("CANCEL_PROMISE"),Zd=Qd("CHANNEL_END"),eh=Qd("IO"),th=Qd("MATCH"),nh=Qd("MULTICAST"),rh=Qd("SAGA_ACTION"),oh=Qd("SELF_CANCELLATION"),ah=Qd("TASK"),ih=Qd("TASK_CANCEL"),lh=Qd("TERMINATE"),uh=Qd("LOCATION"),ch=function(e){return null==e},sh=function(e){return null!=e},fh=function(e){return"function"==typeof e},ph=function(e){return"string"==typeof e},dh=Array.isArray,hh=function(e){return e&&fh(e.then)},mh=function(e){return e&&fh(e.next)&&fh(e.throw)},yh=function e(t){return t&&(ph(t)||bh(t)||fh(t)||dh(t)&&t.every(e))},gh=function(e){return e&&fh(e.take)&&fh(e.close)},vh=function(e){return fh(e)&&e.hasOwnProperty("toString")},bh=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},wh=function(e){return gh(e)&&e[nh]},Eh=function(e){return function(){return true}}(),Oh=function(){},_h=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var Sh=function(e,t){j(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function xh(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}var kh=function(e){throw e},Ch=function(e){return{value:e,done:!0}};function Ph(e,t,n){void 0===t&&(t=kh),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:Ch,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function Th(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var Nh=function(e){return Array.apply(null,new Array(e))},jh=function(e){return function(t){return e(Object.defineProperty(t,rh,{value:!0}))}},Ah=function(e){return e===lh},Rh=function(e){return e===ih},Ih=function(e){return Ah(e)||Rh(e)};function Dh(e,t){var n,r=Object.keys(e),o=r.length,a=0,i=dh(e)?Nh(o):{},l={};return r.forEach((function(e){var r=function(r,l){n||(l||Ih(r)?(t.cancel(),t(r,l)):(i[e]=r,++a===o&&(n=!0,t(i))))};r.cancel=Oh,l[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return l[e].cancel()})))},l}function Mh(e){return{name:e.name||"anonymous",location:Fh(e)}}function Fh(e){return e[uh]}var Lh=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,o=0,a=0,i=function(t){n[o]=t,o=(o+1)%e,r++},l=function(){if(0!=r){var t=n[a];return n[a]=null,r--,a=(a+1)%e,t}},u=function(){for(var e=[];r;)e.push(l());return e};return{isEmpty:function(){return 0==r},put:function(l){var c;if(r<e)i(l);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[o]=l,a=o=(o+1)%e;break;case 4:c=2*e,n=u(),r=n.length,o=n.length,a=0,n.length=c,e=c,i(l)}},take:l,flush:u}}(e,4)},Uh="TAKE",zh="PUT",Vh="CALL",Bh="FORK",Hh="SELECT",Wh=function(e,t){var n;return(n={})[eh]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Kh(e,t){return void 0===e&&(e="*"),yh(e)?Wh(Uh,{pattern:e}):wh(e)&&sh(t)&&yh(t)?Wh(Uh,{channel:e,pattern:t}):gh(e)?Wh(Uh,{channel:e}):void 0}function qh(e,t){return ch(t)&&(t=e,e=void 0),Wh(zh,{channel:e,action:t})}function Gh(e,t){var n,r=null;return fh(e)?n=e:(dh(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&ph(n)&&fh(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Yh(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 Wh(Vh,Gh(e,n))}function $h(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 Wh(Bh,Gh(e,n))}function Xh(e){void 0===e&&(e=_h);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Wh(Hh,{selector:e,args:n})}var Qh=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e},Jh=[],Zh=0;function em(e){try{rm(),e()}finally{om()}}function tm(e){Jh.push(e),Zh||(rm(),am())}function nm(e){try{return rm(),e()}finally{am()}}function rm(){Zh++}function om(){Zh--}function am(){var e;for(om();!Zh&&void 0!==(e=Jh.shift());)em(e)}var im=function(e){return function(t){return e.some((function(e){return fm(e)(t)}))}},lm=function(e){return function(t){return e(t)}},um=function(e){return function(t){return t.type===String(e)}},cm=function(e){return function(t){return t.type===e}},sm=function(){return Eh};function fm(e){var t="*"===e?sm:ph(e)?um:dh(e)?im:vh(e)?um:fh(e)?lm:bh(e)?cm:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var pm={type:Zd},dm=function(e){return e&&e.type===Zd};function hm(){var e,t,n,r,o,a,i=(t=!1,r=n=[],o=function(){r===n&&(r=n.slice())},a=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(pm)}))},(e={})[nh]=!0,e.put=function(e){if(!t)if(dm(e))a();else for(var o=n=r,i=0,l=o.length;i<l;i++){var u=o[i];u[th](e)&&(u.cancel(),u(e))}},e.take=function(e,n){var a,i;void 0===n&&(n=sm),t?e(pm):(e[th]=n,o(),r.push(e),e.cancel=(a=function(){o(),xh(r,e)},i=!1,function(){i||(i=!0,a())}))},e.close=a,e),l=i.put;return i.put=function(e){e[rh]?l(e):tm((function(){l(e)}))},i}var mm=0,ym=1,gm=2,vm=3;function bm(e,t){var n=e[Jd];fh(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var wm,Em=0,Om=function(){return++Em};function _m(e){e.isRunning()&&e.cancel()}var Sm=((wm={})[Uh]=function(e,t,n){var r=t.channel,o=void 0===r?e.channel:r,a=t.pattern,i=t.maybe,l=function(e){e instanceof Error?n(e,!0):!dm(e)||i?n(e):n(lh)};try{o.take(l,sh(a)?fm(a):null)}catch(e){return void n(e,!0)}n.cancel=l.cancel},wm[zh]=function(e,t,n){var r=t.channel,o=t.action,a=t.resolve;tm((function(){var t;try{t=(r?r.put:e.dispatch)(o)}catch(e){return void n(e,!0)}a&&hh(t)?bm(t,n):n(t)}))},wm.ALL=function(e,t,n,r){var o=r.digestEffect,a=Em,i=Object.keys(t);if(0!==i.length){var l=Dh(t,n);i.forEach((function(e){o(t[e],a,l[e],e)}))}else n(dh(t)?[]:{})},wm.RACE=function(e,t,n,r){var o=r.digestEffect,a=Em,i=Object.keys(t),l=dh(t)?Nh(i.length):{},u={},c=!1;i.forEach((function(e){var t=function(t,r){c||(r||Ih(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,l[e]=t,n(l)))};t.cancel=Oh,u[e]=t})),n.cancel=function(){c||(c=!0,i.forEach((function(e){return u[e].cancel()})))},i.forEach((function(e){c||o(t[e],a,u[e],e)}))},wm[Vh]=function(e,t,n,r){var o=t.context,a=t.fn,i=t.args,l=r.task;try{var u=a.apply(o,i);if(hh(u))return void bm(u,n);if(mh(u))return void Im(e,u,l.context,Em,Mh(a),!1,n);n(u)}catch(e){n(e,!0)}},wm.CPS=function(e,t,n){var r=t.context,o=t.fn,a=t.args;try{var i=function(e,t){ch(e)?n(t):n(e,!0)};o.apply(r,a.concat(i)),i.cancel&&(n.cancel=i.cancel)}catch(e){n(e,!0)}},wm[Bh]=function(e,t,n,r){var o=t.context,a=t.fn,i=t.args,l=t.detached,u=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var o=n.apply(t,r);if(mh(o))return o;var a=!1;return Ph((function(e){return a?{value:e,done:!0}:(a=!0,{value:o,done:!hh(o)})}))}catch(e){return Ph((function(){throw e}))}}({context:o,fn:a,args:i}),s=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Mh(t)}(c,a);nm((function(){var t=Im(e,c,u.context,Em,s,l,void 0);l?n(t):t.isRunning()?(u.queue.addTask(t),n(t)):t.isAborted()?u.queue.abort(t.error()):n(t)}))},wm.JOIN=function(e,t,n,r){var o=r.task,a=function(e,t){if(e.isRunning()){var n={task:o,cb:t};t.cancel=function(){e.isRunning()&&xh(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(dh(t)){if(0===t.length)return void n([]);var i=Dh(t,n);t.forEach((function(e,t){a(e,i[t])}))}else a(t,n)},wm.CANCEL=function(e,t,n,r){var o=r.task;t===oh?_m(o):dh(t)?t.forEach(_m):_m(t),n()},wm[Hh]=function(e,t,n){var r=t.selector,o=t.args;try{n(r.apply(void 0,[e.getState()].concat(o)))}catch(e){n(e,!0)}},wm.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,o=function(e){void 0===e&&(e=Lh());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(pm):e.isEmpty()?(n.push(r),r.cancel=function(){xh(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(pm):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,o=e.length;r<o;r++)(0,e[r])(pm)}}}}(t.buffer),a=fm(r),i=function t(n){dm(n)||e.channel.take(t,a),o.put(n)},l=o.close;o.close=function(){i.cancel(),l()},e.channel.take(i,a),n(o)},wm.CANCELLED=function(e,t,n,r){n(r.task.isCancelled())},wm.FLUSH=function(e,t,n){t.flush(n)},wm.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},wm.SET_CONTEXT=function(e,t,n,r){var o=r.task;Sh(o.context,t),n()},wm);function xm(e,t){return e+"?"+t}function km(e){var t=e.name,n=e.location;return n?t+" "+xm(n.fileName,n.lineNumber):t}function Cm(e){var t,n,r=(t=e,(n=[]).concat.apply(n,t.map((function(e){return e.cancelledTasks}))));return r.length?["Tasks cancelled due to error:"].concat(r).join("\n"):""}var Pm=null,Tm=[],Nm=function(e){e.crashedEffect=Pm,Tm.push(e)},jm=function(){Pm=null,Tm.length=0},Am=function(e){Pm=e},Rm=function(){var e=Tm[0],t=Tm.slice(1),n=e.crashedEffect?function(e){var t=Fh(e);return t?t.code+" "+xm(t.fileName,t.lineNumber):""}(e.crashedEffect):null;return["The above error occurred in task "+km(e.meta)+(n?" \n when executing effect "+n:"")].concat(t.map((function(e){return" created by "+km(e.meta)})),[Cm(Tm)]).join("\n")};function Im(e,t,n,r,o,a,i){var l=e.finalizeRunEffect((function(t,n,r){hh(t)?bm(t,r):mh(t)?Im(e,t,c.context,n,o,!1,r):t&&t[eh]?(0,Sm[t.type])(e,t.payload,r,s):r(t)}));f.cancel=Oh;var u={meta:o,cancel:function(){u.status===mm&&(u.status=ym,f(ih))},status:mm},c=function(e,t,n,r,o,a,i){var l;void 0===i&&(i=Oh);var u,c,s=mm,f=null,p=[],d=Object.create(n),h=function(e,t,n){var r,o=[],a=!1;function i(e){t(),u(),n(e,!0)}function l(t){o.push(t),t.cont=function(l,u){a||(xh(o,t),t.cont=Oh,u?i(l):(t===e&&(r=l),o.length||(a=!0,n(r))))}}function u(){a||(a=!0,o.forEach((function(e){e.cont=Oh,e.cancel()})),o=[])}return l(e),{addTask:l,cancelAll:u,abort:i,getTasks:function(){return o}}}(t,(function(){p.push.apply(p,h.getTasks().map((function(e){return e.meta.name})))}),m);function m(t,n){if(n){if(s=gm,Nm({meta:o,cancelledTasks:p}),y.isRoot){var r=Rm();jm(),e.onError(t,{sagaStack:r})}c=t,f&&f.reject(t)}else t===ih?s=ym:s!==ym&&(s=vm),u=t,f&&f.resolve(t);y.cont(t,n),y.joiners.forEach((function(e){e.cb(t,n)})),y.joiners=null}var y=((l={})[ah]=!0,l.id=r,l.meta=o,l.isRoot=a,l.context=d,l.joiners=[],l.queue=h,l.cancel=function(){s===mm&&(s=ym,h.cancelAll(),m(ih,!1))},l.cont=i,l.end=m,l.setContext=function(e){Sh(d,e)},l.toPromise=function(){return f||(f=Qh(),s===gm?f.reject(c):s!==mm&&f.resolve(u)),f.promise},l.isRunning=function(){return s===mm},l.isCancelled=function(){return s===ym||s===mm&&t.status===ym},l.isAborted=function(){return s===gm},l.result=function(){return u},l.error=function(){return c},l);return y}(e,u,n,r,o,a,i),s={task:c,digestEffect:p};return i&&(i.cancel=c.cancel),f(),c;function f(e,n){try{var o;n?(o=t.throw(e),jm()):Rh(e)?(u.status=ym,f.cancel(),o=fh(t.return)?t.return(ih):{done:!0,value:ih}):o=Ah(e)?fh(t.return)?t.return():{done:!0}:t.next(e),o.done?(u.status!==ym&&(u.status=vm),u.cont(o.value)):p(o.value,r,f)}catch(e){if(u.status===ym)throw e;u.status=gm,u.cont(e,!0)}}function p(t,n,r,o){void 0===o&&(o="");var a,i=Om();function u(n,o){a||(a=!0,r.cancel=Oh,e.sagaMonitor&&(o?e.sagaMonitor.effectRejected(i,n):e.sagaMonitor.effectResolved(i,n)),o&&Am(t),r(n,o))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:i,parentEffectId:n,label:o,effect:t}),u.cancel=Oh,r.cancel=function(){a||(a=!0,u.cancel(),u.cancel=Oh,e.sagaMonitor&&e.sagaMonitor.effectCancelled(i))},l(t,i,u)}}function Dm(e,t){for(var n=e.channel,r=void 0===n?hm():n,o=e.dispatch,a=e.getState,i=e.context,l=void 0===i?{}:i,u=e.sagaMonitor,c=e.effectMiddlewares,s=e.onError,f=void 0===s?Th:s,p=arguments.length,d=new Array(p>2?p-2:0),h=2;h<p;h++)d[h-2]=arguments[h];var m,y=t.apply(void 0,d),g=Om();if(u&&(u.rootSagaStarted=u.rootSagaStarted||Oh,u.effectTriggered=u.effectTriggered||Oh,u.effectResolved=u.effectResolved||Oh,u.effectRejected=u.effectRejected||Oh,u.effectCancelled=u.effectCancelled||Oh,u.actionDispatched=u.actionDispatched||Oh,u.rootSagaStarted({effectId:g,saga:t,args:d})),c){var v=N.apply(void 0,c);m=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else m=_h;var b={channel:r,dispatch:jh(o),getState:a,sagaMonitor:u,onError:f,finalizeRunEffect:m};return nm((function(){var e=Im(b,y,l,g,Mh(t),!0,void 0);return u&&u.effectResolved(g,e),e}))}var Mm=function(e){var t,n=void 0===e?{}:e,r=n.context,o=void 0===r?{}:r,a=n.channel,i=void 0===a?hm():a,l=n.sagaMonitor,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Dm.bind(null,j({},u,{context:o,channel:i,dispatch:r,getState:n,sagaMonitor:l})),function(e){return function(t){l&&l.actionDispatched&&l.actionDispatched(t);var n=e(t);return i.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){Sh(o,e)},c},Fm=function(){return Fm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Fm.apply(this,arguments)},Lm={rest_base:"",home_url:"",log_page_url:"",assets_path:"",locale:null,localeSlug:null,data_consent_popup:{show_data_field:null,show_email_field:null}},Um=function(){return Um=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Um.apply(this,arguments)},zm={options:{}},Vm="HTTP_REQUEST_STARTED",Bm="HTTP_REQUEST_SUCCEED",Hm="HTTP_REQUEST_FAILED",Wm=function(){return Wm=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Wm.apply(this,arguments)},Km={specified:[],unspecified:0},qm=function(e){return e.requestedAction&&e.requestedAction.requestTypeName},Gm=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var a,i=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:x.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:x.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+x.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){a=e}return function(e,t){if(void 0===e&&(e={}),a)throw a;for(var r=!1,o={},l=0;l<i.length;l++){var u=i[l],c=n[u],s=e[u],f=c(s,t);if(void 0===f){var p=C(u,t);throw new Error(p)}o[u]=f,r=r||f!==s}return(r=r||i.length!==Object.keys(e).length)?o:e}}({config:function(e,t){var n;void 0===e&&(e=Lm);var r=t.payload;return t.type===Eo?Fm(Fm({},e),((n={})[r.resourceName]=Fm(Fm({},e[r.resourceName]),r.item),n)):e},items:function(e,t){var n,r;void 0===e&&(e=zm);var o=t.payload;switch(t.type){case go:return Um(Um({},e),((n={})[o.resourceName]=o.item,n));case bo:return Um(Um({},e),((r={})[o.resourceName]=Um(Um({},e[o.resourceName]),o.item),r));default:return e}},httpRequests:function(e,t){void 0===e&&(e=Km);var n=t.payload;switch(t.type){case Vm:var r=qm(n);return Wm(Wm({},e),r?{specified:e.specified.filter((function(e){return e!==r})).concat(r)}:{unspecified:e.unspecified+1});case Bm:case Hm:var o=qm(n);return Wm(Wm({},e),o?{specified:e.specified.filter((function(e){return e!==o}))}:{unspecified:e.unspecified-1});default:return e}}}),Ym=Gm,$m=function(e){return{done:!0,value:e}},Xm={};function Qm(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var a,i={done:!1,value:Kh(e)},l=function(e){return a=e};return function(e,t,n){var r,o,a,i=t;function l(t,n){if(i===Xm)return $m(t);if(n&&!o)throw i=Xm,n;r&&r(t);var l=n?e[o](n):e[i]();return i=l.nextState,a=l.effect,r=l.stateUpdater,o=l.errorState,i===Xm?$m(t):a}return Ph(l,(function(e){return l(null,e)}),n)}({q1:function(){return{nextState:"q2",effect:i,stateUpdater:l}},q2:function(){return{nextState:"q1",effect:(e=a,{done:!1,value:$h.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+function(e){return gh(e)?"channel":vh(e)?String(e):fh(e)?e.name:String(e)}(e)+", "+t.name+")")}function Jm(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return $h.apply(void 0,[Qm,e,t].concat(r))}var Zm=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{u(r.next(e))}catch(e){a(e)}}function l(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,l)}u((r=r.apply(e,t||[])).next())}))},ey=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}},ty=function(e){var t=e.status,n=e.message;this.message=n,this.status=t};function ny(e){return Zm(this,void 0,void 0,(function(){var t,n;return ey(this,(function(r){switch(r.label){case 0:t=null,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,e.json()];case 2:return t=r.sent(),[3,4];case 3:throw n=r.sent(),console.error(n),new ty({status:555,message:"No JSON from WP api!"});case 4:return[2,t]}}))}))}function ry(e){var t=e.endpoint,n=e.method,r=void 0===n?"GET":n,o=e.body,a=Py.getState().config,i={method:r,headers:{Accept:"application/json","X-WP-Nonce":a.wp_nonce},body:JSON.stringify(o)};return"GET"!==r&&"DELETE"!==r||delete i.body,function(){return fetch("".concat(a.rest_base,"/sg-security/v1").concat(t),i).catch((function(e){throw console.error(e),Error("An error occurred. Please try again later")})).then(ny).then((function(e){if(200===e.status)return e;throw new ty(e)}))}}function oy(e){var t=e.endpoint,n=e.method,r=void 0===n?"GET":n,o=e.body,a=Py.getState().config,i={method:r,headers:{Accept:"application/json","X-WP-Nonce":a.wp_nonce},body:JSON.stringify(o)};return"GET"!==r&&"DELETE"!==r||delete i.body,function(){return fetch("".concat(a.rest_base,"/siteground-settings/v1").concat(t),i).catch((function(e){throw console.error(e),Error("An error occurred. Please try again later")})).then(ny).then((function(e){if(200===e.status)return e;throw new ty(e)}))}}var ay=function(e,t){return{type:Vm,payload:{requestedAction:e,response:t}}},iy=function(e,t){return{type:Bm,payload:{requestedAction:e,response:t}}},ly=function(){return ly=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},ly.apply(this,arguments)};function uy(e){return function(t){var n,r,o;return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}(this,(function(a){switch(a.label){case 0:return n=ly(ly({},t),{payload:ly(ly({},t.payload),{_meta:void 0})}),[4,qh(ay(t))];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,5,,7]),[4,Yh(e,n)];case 3:return r=a.sent(),[4,qh(iy(t,r))];case 4:return a.sent(),[3,7];case 5:return o=a.sent(),console.error("Failed request...",o),[4,qh((i=t,l=o,{type:Hm,payload:{requestedAction:i,exception:l}}))];case 6:return a.sent(),[3,7];case 7:return[2]}var i,l}))}}var cy=function(){return cy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cy.apply(this,arguments)},sy=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}};function fy(e){var t,n,r,o,a,i,l,u=e.payload;return sy(this,(function(e){switch(e.label){case 0:return t=u.body,n=u.endpoint,r=u.method,o=void 0===r?"POST":r,a=u.resourceName,[4,Yh(ry({endpoint:n,method:o,body:t}))];case 1:return i=e.sent(),[4,Xh((function(e){return e.items[a]}))];case 2:return l=e.sent(),[4,qh($o({resourceName:a,item:cy(cy({},i.data),{entries:l.entries.concat(i.data.entries)})}))];case 3:return e.sent(),[2,i]}}))}var py=function(){return sy(this,(function(e){switch(e.label){case 0:return[4,Jm(Su,uy(fy))];case 1:return e.sent(),[2]}}))},dy=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}};function hy(e){var t,n,r,o,a,i,l=e.payload;return dy(this,(function(e){switch(e.label){case 0:return t=l.body,n=l.endpoint,r=l.method,o=void 0===r?"POST":r,a=l.resourceName,[4,Yh(ry({endpoint:n,method:o,body:t}))];case 1:return i=e.sent(),[4,qh($o({resourceName:a,item:i.data}))];case 2:return e.sent(),[2,i]}}))}function my(e){var t,n,r,o,a,i,l,u=e.payload;return dy(this,(function(e){switch(e.label){case 0:return t=u.body,n=u.endpoint,r=u.itemId,o=u.method,a=void 0===o?"POST":o,i=u.resourceName,[4,Yh(ry({endpoint:r?"".concat(n,"/").concat(r):n,method:a,body:t}))];case 1:return l=e.sent(),[4,qh(Qo({resourceName:i,item:l.data}))];case 2:return e.sent(),[2,l]}}))}function yy(e){var t,n,r,o,a,i,l,u=e.payload;return dy(this,(function(e){switch(e.label){case 0:return t=u.body,n=u.endpoint,r=u.itemId,o=u.method,a=void 0===o?"PUT":o,i=u.resourceName,[4,Yh(oy({endpoint:r?"".concat(n,"/").concat(r):n,method:a,body:t}))];case 1:return l=e.sent(),[4,qh(Go({resourceName:i,item:{show_data_field:0,show_email_field:0}}))];case 2:return e.sent(),[2,l]}}))}var gy=function(){return dy(this,(function(e){switch(e.label){case 0:return[4,Jm(yo,uy(hy))];case 1:return e.sent(),[4,Jm(vo,uy(my))];case 2:return e.sent(),[4,Jm(wo,uy(yy))];case 3:return e.sent(),[2]}}))},vy=function(e){var t={success:null,error:null};if(!e||!e._meta||!e._meta.notification)return t;var n=e._meta.notification;return n.success&&(t.success=n.success),n.error&&(t.error=n.error),t},by=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}},wy=function(e,t){var n;t&&(null===(n=null==e?void 0:e.onComplete)||void 0===n||n.call(e,t.data))};function Ey(e){var t=e.exception,n=e.requestedAction,r=vy(n.payload).error,o=null==t?void 0:t.message,a=null==t?void 0:t.status;return r&&r.intlKey?Qt.error(r.intlKey):555===a?Qt.error(_e("Either a security plugin, custom function, or rules in your .htaccess file is preventing the WordPress REST API from working properly. SiteGround Optimizer is using it to store its options and other functionalities so please make sure it works properly."),_e("Could not connect to the WordPress REST API")):o?Qt.error(o):Qt.error(_e("Either a security plugin, custom function or rules in your .htaccess file is preventing the WordPress REST API from working properly. SiteGround Security is using it to store its options and other functionalities so please make sure it works properly."),_e("Could not connect to the WordPress REST API"))}var Oy=function(e,t){var n;return null===(n=null==e?void 0:e.onFailure)||void 0===n?void 0:n.call(e,t)};function _y(e){var t,n,r=e.payload;return by(this,(function(e){switch(e.label){case 0:return t=r.requestedAction,[4,Yh(Ey,{exception:n=r.exception,requestedAction:t})];case 1:return e.sent(),Oy(t,n),[2]}}))}function Sy(e){var t=e.payload,n=t.requestedAction,r=t.response,o=null==r?void 0:r.message,a=vy(n.payload).success;(null==a?void 0:a.intlKey)&&Qt.success(a.intlKey),o&&Qt.success(o),wy(n,r)}function xy(){return by(this,(function(e){switch(e.label){case 0:return[4,Jm(Bm,Sy)];case 1:return e.sent(),[4,Jm(Hm,_y)];case 2:return e.sent(),[2]}}))}var ky;function Cy(){return function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function l(l){return function(u){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return i.label++,{value:l[1],done:!1};case 5:i.label++,r=l[1],l=[0];continue;case 7:l=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){i=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){i.label=l[1];break}if(6===l[0]&&i.label<o[1]){i.label=o[1],o=l;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(l);break}o[2]&&i.ops.pop(),i.trys.pop();continue}l=t.call(e,i)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,u])}}}(this,(function(e){switch(e.label){case 0:return[4,(t=[py(),gy(),xy()],n=Wh("ALL",t),n.combinator=!0,n)];case 1:return e.sent(),[2]}var t,n}))}var Py,Ty=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||N,Ny={init:function(e){var t,n,r=e.domElementId,o=e.page,a=e.config,i=r||function(){var e="sg-security-container";if(document.getElementById(e))return e;var t=document.createElement("div");return t.id=e,document.body.append(t),e}();t={config:a},n=Mm(),ky=k(Ym,t,Ty(function(){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.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},a=t.map((function(e){return e(o)}));return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(n,!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{dispatch:r=N.apply(void 0,a)(n.dispatch)})}}}(n))),n.run(Cy),Py=ky,m.render(h.createElement(O,{store:Py},h.createElement(Xd,{page:o})),document.getElementById(i))},PAGE:xe},jy=Ny}(),r.default}()}));
Copyright ©2k19 -
Hexid
|
Tex7ure