Ubuntu
!function(){var e={8679:function(e,t,n){"use strict";var r=n(1296),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 s=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var i=c(n);f&&(i=i.concat(f(n)));for(var l=u(t),m=u(n),g=0;gt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!p.call(m,e)||!p.call(h,e)&&(d.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);y[t]=new g(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);y[t]=new g(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);y[t]=new g(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new g(e,1,!1,e.toLowerCase(),null,!0,!0)}));var k=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,S=60106,x=60107,C=60108,O=60114,P=60109,N=60110,_=60112,T=60113,L=60120,j=60115,A=60116,D=60121,R=60128,I=60129,z=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var M=Symbol.for;E=M("react.element"),S=M("react.portal"),x=M("react.fragment"),C=M("react.strict_mode"),O=M("react.profiler"),P=M("react.provider"),N=M("react.context"),_=M("react.forward_ref"),T=M("react.suspense"),L=M("react.suspense_list"),j=M("react.memo"),A=M("react.lazy"),D=M("react.block"),M("react.scope"),R=M("react.opaque.id"),I=M("react.debug_trace_mode"),z=M("react.offscreen"),F=M("react.legacy_hidden")}var B,U="function"==typeof Symbol&&Symbol.iterator;function $(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}function H(e){if(void 0===B)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||""}return"\n"+B+e}var W=!1;function V(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 e=V(e.type,!1);case 11:return e=V(e.type.render,!1);case 22:return e=V(e.type._render,!1);case 1:return e=V(e.type,!0);default:return""}}function Q(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 x:return"Fragment";case S:return"Portal";case O:return"Profiler";case C:return"StrictMode";case T:return"Suspense";case L:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case _:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case j:return Q(e.type);case D:return Q(e._render);case A:t=e._payload,e=e._init;try{return Q(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 K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=K(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 X(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(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))throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Y(n)}}function se(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 ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml",de="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 he(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 me,ge,ye=(ge=function(e,t){if(e.namespaceURI!==de||"innerHTML"in e)e.innerHTML=t;else{for((me=me||document.createElement("div")).innerHTML="",t=me.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 ge(e,t)}))}:ge);function ve(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 be={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},we=["Webkit","ms","Moz","O"];function ke(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||be.hasOwnProperty(e)&&be[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=ke(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(be).forEach((function(e){we.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),be[t]=be[e]}))}));var Se=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 xe(e,t){if(t){if(Se[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 Ce(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 Oe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Pe=null,Ne=null,_e=null;function Te(e){if(e=ro(e)){if("function"!=typeof Pe)throw Error(i(280));var t=e.stateNode;t&&(t=ao(t),Pe(e.stateNode,e.type,t))}}function Le(e){Ne?_e?_e.push(e):_e=[e]:Ne=e}function je(){if(Ne){var e=Ne,t=_e;if(_e=Ne=null,Te(e),t)for(e=0;e(r=31-Wt(r))?0:1<n;n++)t.push(e);return t}function Ht(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Vt(e)/qt|0)|0},Vt=Math.log,qt=Math.LN2;var Qt=a.unstable_UserBlockingPriority,Yt=a.unstable_runWithPriority,Kt=!0;function Gt(e,t,n,r){ze||Re();var o=Jt,a=ze;ze=!0;try{De(o,e,t,n,r)}finally{(ze=a)||Me()}}function Xt(e,t,n,r){Yt(Qt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){var o;if(Kt)if((o=0==(4&t))&&0=Fn),Un=String.fromCharCode(32),$n=!1;function Hn(e,t){switch(e){case"keyup":return-1!==In.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var qn={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?!!qn[e.type]:"textarea"===t}function Yn(e,t,n,r){Le(r),0<(t=zr(t,"onChange")).length&&(n=new pn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kn=null,Gn=null;function Xn(e){_r(e,0)}function Jn(e){if(X(oo(e)))return e}function Zn(e,t){if("change"===e)return t}var er=!1;if(f){var tr;if(f){var nr="oninput"in document;if(!nr){var rr=document.createElement("div");rr.setAttribute("oninput","return;"),nr="function"==typeof rr.oninput}tr=nr}else tr=!1;er=tr&&(!document.documentMode||9=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 mr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function gr(){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 vr=f&&"documentMode"in document&&11>=document.documentMode,br=null,wr=null,kr=null,Er=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;Er||null==br||br!==J(r)||("selectionStart"in(r=br)&&yr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},kr&&dr(kr,r)||(kr=r,0<(r=zr(wr,"onSelect")).length&&(t=new pn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=br)))}Rt("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),Rt("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),Rt(Dt,2);for(var xr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Cr=0;Cruo||(e.current=lo[uo],lo[uo]=null,uo--)}function fo(e,t){uo++,lo[uo]=e.current,e.current=t}var po={},ho=so(po),mo=so(!1),go=po;function yo(e,t){var n=e.type.contextTypes;if(!n)return po;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 vo(e){return null!=(e=e.childContextTypes)}function bo(){co(mo),co(ho)}function wo(e,t,n){if(ho.current!==po)throw Error(i(168));fo(ho,t),fo(mo,n)}function ko(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,Q(t)||"Unknown",a));return o({},n,r)}function Eo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||po,go=ho.current,fo(ho,e),fo(mo,mo.current),!0}function So(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ko(e,t,go),r.__reactInternalMemoizedMergedChildContext=e,co(mo),co(ho),fo(ho,e)):co(mo),fo(mo,n)}var xo=null,Co=null,Oo=a.unstable_runWithPriority,Po=a.unstable_scheduleCallback,No=a.unstable_cancelCallback,_o=a.unstable_shouldYield,To=a.unstable_requestPaint,Lo=a.unstable_now,jo=a.unstable_getCurrentPriorityLevel,Ao=a.unstable_ImmediatePriority,Do=a.unstable_UserBlockingPriority,Ro=a.unstable_NormalPriority,Io=a.unstable_LowPriority,zo=a.unstable_IdlePriority,Fo={},Mo=void 0!==To?To:function(){},Bo=null,Uo=null,$o=!1,Ho=Lo(),Wo=1e4>Ho?Lo:function(){return Lo()-Ho};function Vo(){switch(jo()){case Ao:return 99;case Do:return 98;case Ro:return 97;case Io:return 96;case zo:return 95;default:throw Error(i(332))}}function qo(e){switch(e){case 99:return Ao;case 98:return Do;case 97:return Ro;case 96:return Io;case 95:return zo;default:throw Error(i(332))}}function Qo(e,t){return e=qo(e),Oo(e,t)}function Yo(e,t,n){return e=qo(e),Po(e,t,n)}function Ko(){if(null!==Uo){var e=Uo;Uo=null,No(e)}Go()}function Go(){if(!$o&&null!==Bo){$o=!0;var e=0;try{var t=Bo;Qo(99,(function(){for(;em?(g=f,f=null):g=f.sibling;var y=p(o,f,l[m],u);if(null===y){null===f&&(f=g);break}e&&f&&null===y.alternate&&t(o,f),i=a(y,i,m),null===c?s=y:c.sibling=y,c=y,f=g}if(m===l.length)return n(o,f),s;if(null===f){for(;mg?(y=m,m=null):y=m.sibling;var b=p(o,m,v.value,s);if(null===b){null===m&&(m=y);break}e&&m&&null===b.alternate&&t(o,m),l=a(b,l,g),null===f?c=b:f.sibling=b,f=b,m=y}if(v.done)return n(o,m),c;if(null===m){for(;!v.done;g++,v=u.next())null!==(v=d(o,v.value,s))&&(l=a(v,l,g),null===f?c=v:f.sibling=v,f=v);return c}for(m=r(o,m);!v.done;g++,v=u.next())null!==(v=h(m,o,g,v.value,s))&&(e&&null!==v.alternate&&m.delete(null===v.key?g:v.key),l=a(v,l,g),null===f?c=v:f.sibling=v,f=v);return e&&m.forEach((function(e){return t(o,e)})),c}return function(e,r,a,u){var s="object"==typeof a&&null!==a&&a.type===x&&null===a.key;s&&(a=a.props.children);var c="object"==typeof a&&null!==a;if(c)switch(a.$$typeof){case E:e:{for(c=a.key,s=r;null!==s;){if(s.key===c){if(7===s.tag){if(a.type===x){n(e,s.sibling),(r=o(s,a.props.children)).return=e,e=r;break e}}else if(s.elementType===a.type){n(e,s.sibling),(r=o(s,a.props)).ref=xa(e,s,a),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}a.type===x?((r=Yu(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Qu(a.type,a.key,a.props,null,e.mode,u)).ref=xa(e,r,a),u.return=e,e=u)}return l(e);case S:e:{for(s=a.key;null!==r;){if(r.key===s){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=Xu(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=Gu(a,e.mode,u)).return=e,e=r),l(e);if(Sa(a))return m(e,r,a,u);if($(a))return g(e,r,a,u);if(c&&Ca(e,a),void 0===a&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(i(152,Q(e.type)||"Component"))}return n(e,r)}}var Pa=Oa(!0),Na=Oa(!1),_a={},Ta=so(_a),La=so(_a),ja=so(_a);function Aa(e){if(e===_a)throw Error(i(174));return e}function Da(e,t){switch(fo(ja,t),fo(La,e),fo(Ta,_a),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}co(Ta),fo(Ta,t)}function Ra(){co(Ta),co(La),co(ja)}function Ia(e){Aa(ja.current);var t=Aa(Ta.current),n=he(t,e.type);t!==n&&(fo(La,e),fo(Ta,n))}function za(e){La.current===e&&(co(Ta),co(La))}var Fa=so(0);function Ma(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 Ba=null,Ua=null,$a=!1;function Ha(e,t){var n=Wu(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 Wa(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 Va(e){if($a){var t=Ua;if(t){var n=t;if(!Wa(e,t)){if(!(t=Yr(n.nextSibling))||!Wa(e,t))return e.flags=-1025&e.flags|2,$a=!1,void(Ba=e);Ha(Ba,n)}Ba=e,Ua=Yr(t.firstChild)}else e.flags=-1025&e.flags|2,$a=!1,Ba=e}}function qa(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ba=e}function Qa(e){if(e!==Ba)return!1;if(!$a)return qa(e),$a=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!Wr(t,e.memoizedProps))for(t=Ua;t;)Ha(e,t),t=Yr(t.nextSibling);if(qa(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){Ua=Yr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ua=null}}else Ua=Ba?Yr(e.stateNode.nextSibling):null;return!0}function Ya(){Ua=Ba=null,$a=!1}var Ka=[];function Ga(){for(var e=0;ea))throw Error(i(301));a+=1,ni=ti=null,t.updateQueue=null,Xa.current=Ri,e=n(r,o)}while(oi)}if(Xa.current=ji,t=null!==ti&&null!==ti.next,Za=0,ni=ti=ei=null,ri=!1,t)throw Error(i(300));return e}function ui(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ni?ei.memoizedState=ni=e:ni=ni.next=e,ni}function si(){if(null===ti){var e=ei.alternate;e=null!==e?e.memoizedState:null}else e=ti.next;var t=null===ni?ei.memoizedState:ni.next;if(null!==t)ni=t,ti=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ti=e).memoizedState,baseState:ti.baseState,baseQueue:ti.baseQueue,queue:ti.queue,next:null},null===ni?ei.memoizedState=ni=e:ni=ni.next=e}return ni}function ci(e,t){return"function"==typeof t?t(e):t}function fi(e){var t=si(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=ti,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,s=o;do{var c=s.lane;if((Za&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,a=r):u=u.next=f,ei.lanes|=c,Ul|=c}s=s.next}while(null!==s&&s!==o);null===u?a=r:u.next=l,cr(r,t.memoizedState)||(zi=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function di(e){var t=si(),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)||(zi=!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=(Za&e)===e)&&(t._workInProgressVersionPrimary=r,Ka.push(t))),e)return n(t._source);throw Ka.push(t),Error(i(350))}function hi(e,t,n,r){var o=Al;if(null===o)throw Error(i(349));var a=t._getVersion,l=a(t._source),u=Xa.current,s=u.useState((function(){return pi(o,t,n)})),c=s[1],f=s[0];s=ni;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,m=d.source;d=d.subscribe;var g=ei;return e.memoizedState={refs:p,source:t,subscribe:r},u.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=a(t._source);if(!cr(l,e)){e=n(t._source),cr(f,e)||(c(e),e=pu(g),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,i=e;0n?98:n,(function(){e(!0)})),Qo(97<\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Jr]=t,e[Zr]=r,Yi(e,t),t.stateNode=e,s=Ce(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;aql&&(t.flags|=64,l=!0,il(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Ma(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),il(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!$a)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Wo()-r.renderingStartTime>ql&&1073741824!==n&&(t.flags|=64,l=!0,il(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Wo(),n.sibling=null,t=Fa.current,fo(Fa,l?1&t|2:1&t),n):null;case 23:case 24:return Su(),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 ul(e){switch(e.tag){case 1:vo(e.type)&&bo();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(Ra(),co(mo),co(ho),Ga(),0!=(64&(t=e.flags)))throw Error(i(285));return e.flags=-4097&t|64,e;case 5:return za(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 Ra(),null;case 10:return oa(e),null;case 23:case 24:return Su(),null;default:return null}}function sl(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 cl(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Yi=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}},Ki=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=Br)}for(f in xe(n,r),n=null,a)if(!r.hasOwnProperty(f)&&a.hasOwnProperty(f)&&null!=a[f])if("style"===f){var s=a[f];for(i in s)s.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 c=r[f];if(s=null!=a?a[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(i in s)!s.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&s[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Tr("scroll",e),l||s===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===R?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},Gi=function(e,t,n,r){n!==r&&(t.flags|=4)};var fl="function"==typeof WeakMap?WeakMap:Map;function dl(e,t,n){(n=fa(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Gl||(Gl=!0,Xl=r),cl(0,t)},n}function pl(e,t,n){(n=fa(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return cl(0,t),r(o)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Jl?Jl=new Set([this]):Jl.add(this),cl(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var hl="function"==typeof WeakSet?WeakSet:Set;function ml(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Bu(e,t)}else t.current=null}function gl(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:Jo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Qr(t.stateNode.containerInfo))}throw Error(i(163))}function yl(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)&&(zu(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:Jo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&ma(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}ma(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Hr(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 vl(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=ke("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 bl(e,t){if(Co&&"function"==typeof Co.onCommitFiberUnmount)try{Co.onCommitFiberUnmount(xo,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))zu(t,n);else{r=t;try{o()}catch(e){Bu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ml(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Bu(t,e)}break;case 5:ml(t);break;case 4:Cl(e,t)}}function wl(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 kl(e){return 5===e.tag||3===e.tag||4===e.tag}function El(e){e:{for(var t=e.return;null!==t;){if(kl(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&&(ve(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||kl(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?Sl(e,n,t):xl(e,n,t)}function Sl(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=Br));else if(4!==r&&null!==(e=e.child))for(Sl(e,t,n),e=e.sibling;null!==e;)Sl(e,t,n),e=e.sibling}function xl(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(xl(e,t,n),e=e.sibling;null!==e;)xl(e,t,n),e=e.sibling}function Cl(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,s=u;;)if(bl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.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(bl(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 Ol(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[Zr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Ce(e,o),t=Ce(e,r),o=0;oo&&(o=l),n&=~a}if(n=o,10<(n=(120>(n=Wo()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*_l(n/1960))-n)){e.timeoutHandle=Vr(ju.bind(null,e),n);break}ju(e);break;default:throw Error(i(329))}}return gu(e,Wo()),e.callbackNode===t?yu.bind(null,e):null}function vu(e,t){for(t&=~Hl,t&=~$l,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Fl&&(Fl=2),u=sl(u,l),d=i;do{switch(d.tag){case 3:a=u,d.flags|=4096,t&=-t,d.lanes|=t,pa(d,dl(0,a,t));break e;case 1:a=u;var k=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof k.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===Jl||!Jl.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,pa(d,pl(d,a,t));break e}}d=d.return}while(null!==d)}Lu(n)}catch(e){t=e,Dl===n&&null!==n&&(Dl=n=n.return);continue}break}}function Ou(){var e=Tl.current;return Tl.current=ji,null===e?ji:e}function Pu(e,t){var n=jl;jl|=16;var r=Ou();for(Al===e&&Rl===t||xu(e,t);;)try{Nu();break}catch(t){Cu(e,t)}if(ra(),jl=n,Tl.current=r,null!==Dl)throw Error(i(261));return Al=null,Rl=0,Fl}function Nu(){for(;null!==Dl;)Tu(Dl)}function _u(){for(;null!==Dl&&!_o();)Tu(Dl)}function Tu(e){var t=Yl(e.alternate,e,Il);e.memoizedProps=e.pendingProps,null===t?Lu(e):Dl=t,Ll.current=null}function Lu(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=ll(n,t,Il)))return void(Dl=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),1l&&(u=l,l=E,E=u),u=hr(b,E),a=hr(b,l),u&&a&&(1!==k.rangeCount||k.anchorNode!==u.node||k.anchorOffset!==u.offset||k.focusNode!==a.node||k.focusOffset!==a.offset)&&((w=w.createRange()).setStart(u.node,u.offset),k.removeAllRanges(),E>l?(k.addRange(w),k.extend(a.node,a.offset)):(w.setEnd(a.node,a.offset),k.addRange(w))))),w=[];for(k=b;k=k.parentNode;)1===k.nodeType&&w.push({element:k,left:k.scrollLeft,top:k.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;bWo()-Vl?xu(e,0):Hl|=n),gu(e,t)}function $u(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===Vo()?1:2:(0===uu&&(uu=Bl),0===(t=Ut(62914560&~uu))&&(t=4194304))),n=du(),null!==(e=mu(e,t))&&(Ht(e,t,n),gu(e,n))}function Hu(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 Wu(e,t,n,r){return new Hu(e,t,n,r)}function Vu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function qu(e,t){var n=e.alternate;return null===n?((n=Wu(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 Qu(e,t,n,r,o,a){var l=2;if(r=e,"function"==typeof e)Vu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case x:return Yu(n.children,o,a,t);case I:l=8,o|=16;break;case C:l=8,o|=1;break;case O:return(e=Wu(12,n,t,8|o)).elementType=O,e.type=O,e.lanes=a,e;case T:return(e=Wu(13,n,t,o)).type=T,e.elementType=T,e.lanes=a,e;case L:return(e=Wu(19,n,t,o)).elementType=L,e.lanes=a,e;case z:return Ku(n,o,a,t);case F:return(e=Wu(24,n,t,o)).elementType=F,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case P:l=10;break e;case N:l=9;break e;case _:l=11;break e;case j:l=14;break e;case A:l=16,r=null;break e;case D:l=22;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Wu(l,n,t,o)).elementType=e,t.type=r,t.lanes=a,t}function Yu(e,t,n,r){return(e=Wu(7,e,r,t)).lanes=n,e}function Ku(e,t,n,r){return(e=Wu(23,e,r,t)).elementType=z,e.lanes=n,e}function Gu(e,t,n){return(e=Wu(6,e,null,t)).lanes=n,e}function Xu(e,t,n){return(t=Wu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ju(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=$t(0),this.expirationTimes=$t(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$t(0),this.mutableSourceEagerHydrationData=null}function Zu(e,t,n){var r=3=b},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,o=e[r];if(!(void 0!==o&&0C(i,n))void 0!==u&&0>C(u,i)?(e[r]=u,e[l]=n,r=l):(e[r]=i,e[a]=n,r=a);else{if(!(void 0!==u&&0>C(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],P=[],N=1,_=null,T=3,L=!1,j=!1,A=!1;function D(e){for(var t=S(P);null!==t;){if(null===t.callback)x(P);else{if(!(t.startTime<=e))break;x(P),t.sortIndex=t.expirationTime,E(O,t)}t=S(P)}}function R(e){if(A=!1,D(e),!j)if(null!==S(O))j=!0,n(I);else{var t=S(P);null!==t&&r(R,t.startTime-e)}}function I(e,n){j=!1,A&&(A=!1,o()),L=!0;var a=T;try{for(D(n),_=S(O);null!==_&&(!(_.expirationTime>n)||e&&!t.unstable_shouldYield());){var i=_.callback;if("function"==typeof i){_.callback=null,T=_.priorityLevel;var l=i(_.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?_.callback=l:_===S(O)&&x(O),D(n)}else x(O);_=S(O)}if(null!==_)var u=!0;else{var s=S(P);null!==s&&r(R,s.startTime-n),u=!1}return u}finally{_=null,T=a,L=!1}}var z=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(){j||L||(j=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return S(O)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=n}},t.unstable_scheduleCallback=function(e,a,i){var l=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0l?(e.sortIndex=i,E(P,e),null===S(O)&&e===S(P)&&(A?o():A=!0,r(R,i-l))):(e.sortIndex=u,E(O,e),j||L||(j=!0,n(I))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},3840:function(e,t,n){"use strict";e.exports=n(53)},6774:function(e){e.exports=function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),u=0;up)&&(M=($=$.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:i=i.replace(u,"-webkit-"+u)+";"+i;break;case 207:case 102:i=i.replace(u,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var x=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var a=r;a=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,a=r;a=P&&(P=t+1),C.set(e,t),O.set(t,e)},L="style["+w+'][data-styled-version="5.3.3"]',j=new RegExp("^"+w+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),A=function(e,t,n){for(var r,o=n.split(","),a=0,i=o.length;a=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(w))return r}}(n),a=void 0!==o?o.nextSibling:null;r.setAttribute(w,"active"),r.setAttribute("data-styled-version","5.3.3");var i=R();return i&&r.setAttribute("nonce",i),n.insertBefore(r,a),r},z=function(){function e(e){var t=this.element=I(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(s+=e+",")})),r+=""+l+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),H=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function V(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=W(t%52)+n;return(W(t%52)+n).replace(H,"$1-$2")}var q=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Q=function(e){return q(5381,e)};function Y(e){for(var t=0;t>>0);if(!t.hasNameForId(r,i)){var l=n(a,"."+i,void 0,r);t.insertRules(r,i,l)}o.push(i),this.staticRulesId=i}else{for(var u=this.rules.length,s=q(this.baseHash,n.hash),c="",f=0;f>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}o.push(m)}}return o.join(" ")},e}(),X=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function Z(e){var t,n,r,o,a=void 0===e?g:e,l=a.options,u=void 0===l?g:l,s=a.plugins,c=void 0===s?m:s,f=new i(u),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,a,i,l,u,s,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===s)return r+"/*|*/";break;case 3:switch(s){case 102:case 112:return e(o[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),h=function(e,r,a){return 0===r&&-1!==J.indexOf(a[n.length])||a.match(o)?e:"."+t};function y(e,a,i,l){void 0===l&&(l="&");var u=e.replace(X,""),s=a&&i?i+" "+a+" { "+u+" }":u;return t=l,n=a,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),f(i||!a?"":a,s)}return f.use([].concat(c,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),y.hash=c.length?c.reduce((function(e,t){return t.name||S(15),q(e,t.name)}),5381).toString():"",y}var ee=e.createContext(),te=(ee.Consumer,e.createContext()),ne=(te.Consumer,new $),re=Z();function oe(){return(0,e.useContext)(ee)||ne}function ae(){return(0,e.useContext)(te)||re}function ie(t){var n=(0,e.useState)(t.stylisPlugins),r=n[0],o=n[1],i=oe(),l=(0,e.useMemo)((function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),u=(0,e.useMemo)((function(){return Z({options:{prefix:!t.disableVendorPrefixes},plugins:r})}),[t.disableVendorPrefixes,r]);return(0,e.useEffect)((function(){a()(r,t.stylisPlugins)||o(t.stylisPlugins)}),[t.stylisPlugins]),e.createElement(ee.Provider,{value:l},e.createElement(te.Provider,{value:u},t.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=re);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return S(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=re),this.name+e.hash},e}(),ue=/([A-Z])/,se=/([A-Z])/g,ce=/^ms-/,fe=function(e){return"-"+e.toLowerCase()};function de(e){return ue.test(e)?e.replace(se,fe).replace(ce,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function he(e,t,n,r){if(Array.isArray(e)){for(var o,a=[],i=0,u=e.length;i1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,be=/(^-|-$)/g;function we(e){return e.replace(ve,"-").replace(be,"")}var ke=function(e){return V(Q(e)>>>0)};function Ee(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},xe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ce(e,t,n){var r=e[n];Se(t)&&Se(r)?Oe(r,t):e[n]=t}function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(o[n]=e[n]);return o}(n,["componentId"]),a=t&&t+"-"+(Ee(e)?e:we(v(e)));return _e(e,d({},o,{attrs:k,componentId:a}),r)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=o?Oe({},t.defaultProps,e):e}}),S.toString=function(){return"."+S.styledComponentId},a&&f()(S,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Te=function(e){return function e(t,n,o){if(void 0===o&&(o=g),!(0,r.isValidElementType)(n))return S(1,String(n));var a=function(){return t(n,o,ge.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,d({},o,{},r))},a.attrs=function(r){return e(t,n,d({},o,{attrs:Array.prototype.concat(o.attrs,r).filter(Boolean)}))},a}(_e,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Te[e]=Te(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),$.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var o=r(he(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&$.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=R();return""},this.getStyleTags=function(){return t.sealed?S(2):t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)return S(2);var r=((n={})[w]="",n["data-styled-version"]="5.3.3",n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=R();return o&&(r.nonce=o),[e.createElement("style",d({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new $({isServer:!0}),this.sealed=!1}var n=t.prototype;n.collectStyles=function(t){return this.sealed?S(2):e.createElement(ie,{sheet:this.instance},t)},n.interleaveWithNodeStream=function(e){return S(3)}}();var Le,je,Ae=Te,De=!1;function Re(){if("undefined"!=typeof document&&!De){var e=document.documentElement;je=window.pageYOffset,document.documentElement.scrollHeight>window.innerHeight?e.style.width="calc(100% - "+function(){if(void 0!==Le)return Le;var e=document.documentElement,t=document.createElement("div");return t.setAttribute("style","width:99px;height:99px;position:absolute;top:-9999px;overflow:scroll;"),e.appendChild(t),Le=t.offsetWidth-t.clientWidth,e.removeChild(t),Le}()+"px)":e.style.width="100%",e.style.position="fixed",e.style.top=-je+"px",e.style.overflow="hidden",De=!0}}function Ie(){if("undefined"!=typeof document&&De){var e=document.documentElement;e.style.width="",e.style.position="",e.style.top="",e.style.overflow="","number"==typeof je&&window.scroll(0,je),De=!1}}let ze=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],Fe=ze.join(","),Me="undefined"==typeof Element?()=>!1:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function Be(e,t){const n=t||{};let r,o,a=[],i=[],l=function(e,t){const n=[];for(let r of e.querySelectorAll(t))r instanceof HTMLElement&&n.push(r);return n}(e,Fe);n.includeContainer&&Me.call(e,Fe)&&(l=Array.prototype.slice.apply(l),l.unshift(e));for(let e=0;ee.node)).concat(a)}function Ue(e){return!(!$e(e)||function(e){return function(e){return qe(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;if(!e.ownerDocument)return!1;let t=function(e){for(let t=0;t0){var t=Ye[Ye.length-1];t!==e&&t.pause()}var n=Ye.indexOf(e);-1===n||Ye.splice(n,1),Ye.push(e)},deactivateTrap:function(e){var t=Ye.indexOf(e);-1!==t&&Ye.splice(t,1),Ye.length>0&&Ye[Ye.length-1].unpause()}});function Ge(e){return window.setTimeout(e,0)}class Xe extends e.Component{constructor(e){super(e),this.setFocusTrapElement=e=>{this.focusTrapElement=e},"undefined"!=typeof document&&(this.previouslyFocusedElement=document.activeElement)}componentDidMount(){const e=this.props.focusTrapOptions,n={returnFocusOnDeactivate:!1};for(const t in e)e.hasOwnProperty(t)&&"returnFocusOnDeactivate"!==t&&(n[t]=e[t]);const r=t.findDOMNode(this.focusTrapElement);if(!(r instanceof HTMLElement))throw new Error("Focus trap element DOM node is not an HTML element!");this.focusTrap=this.props._createFocusTrap(r,n),this.props.active&&this.focusTrap.activate(),this.props.paused&&this.focusTrap.pause()}componentDidUpdate(e){if(!this.focusTrap)throw new Error("Assertion failure!");if(e.active&&!this.props.active){const{returnFocusOnDeactivate:e}=this.props.focusTrapOptions,t={returnFocus:e||!1};this.focusTrap.deactivate(t)}else!e.active&&this.props.active&&this.focusTrap.activate();e.paused&&!this.props.paused?this.focusTrap.unpause():!e.paused&&this.props.paused&&this.focusTrap.pause()}componentWillUnmount(){if(!this.focusTrap)throw new Error("Assertion failure!");this.focusTrap.deactivate(),!1!==this.props.focusTrapOptions.returnFocusOnDeactivate&&this.previouslyFocusedElement&&this.previouslyFocusedElement.focus&&this.previouslyFocusedElement.focus()}render(){const t=e.Children.only(this.props.children);return e.cloneElement(t,{ref:e=>{this.setFocusTrapElement(e),"function"==typeof t.ref&&t.ref(e)}})}}function Je(n,r){const o=r||{};class a extends e.Component{componentDidMount(){this.container=(()=>{const{renderTo:e}=o;if(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)throw new Error(`No element matches "${e}"!`);return t}return e}var t=document.createElement("div");return document.body.appendChild(t),t})(),this.forceUpdate()}componentWillUnmount(){!o.renderTo&&this.container&&this.container.parentNode&&this.container.parentNode.removeChild(this.container)}render(){return!1===this.props.mounted?null:!!this.container&&t.createPortal(e.createElement(n,this.props,this.props.children),this.container)}}return a}Xe.defaultProps={active:!0,paused:!1,focusTrapOptions:{},_createFocusTrap:function(e,t){var n=document;const r="string"==typeof e?function(e,t){const n=e.querySelector(t);if(!(n&&n instanceof HTMLElement))throw new Error(`No HTML element matches "${t}"!`);return n}(n,e):e;var o={returnFocusOnDeactivate:!0,escapeDeactivates:!0,...t},a={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},i={activate:function(e){if(a.active)return;y(),a.active=!0,a.paused=!1,a.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:o.onActivate;t&&t();return s(),i},deactivate:l,pause:function(){if(a.paused||!a.active)return;a.paused=!0,c()},unpause:function(){if(!a.paused||!a.active)return;a.paused=!1,y(),s()}};return i;function l(e){if(a.active){clearTimeout(Qe),c(),a.active=!1,a.paused=!1,Ke.deactivateTrap(i);var t=e&&void 0!==e.onDeactivate?e.onDeactivate:o.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:o.returnFocusOnDeactivate)&&Ge((function(){var e;v((e=a.nodeFocusedBeforeActivation,f("setReturnFocus")||e))})),i}}function u(e){return!!(e&&e instanceof Node)&&r.contains(e)}function s(){if(a.active)return Ke.activateTrap(i),Qe=Ge((function(){v(d())})),n.addEventListener("focusin",h,!0),n.addEventListener("mousedown",p,{capture:!0,passive:!1}),n.addEventListener("touchstart",p,{capture:!0,passive:!1}),n.addEventListener("click",g,{capture:!0,passive:!1}),n.addEventListener("keydown",m,{capture:!0,passive:!1}),i}function c(){if(a.active)return n.removeEventListener("focusin",h,!0),n.removeEventListener("mousedown",p,!0),n.removeEventListener("touchstart",p,!0),n.removeEventListener("click",g,!0),n.removeEventListener("keydown",m,!0),i}function f(e){var t=o[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function d(){var e;if(!(e=null!==f("initialFocus")?f("initialFocus"):r.contains(n.activeElement)?n.activeElement:a.firstTabbableNode||f("fallbackFocus")))throw new Error("Your focus-trap needs to have at least one focusable element");return e}function p(e){u(e.target)||(o.clickOutsideDeactivates?l({returnFocus:!Be.isFocusable(e.target)}):o.allowOutsideClick&&o.allowOutsideClick(e)||e.preventDefault())}function h(e){u(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),v(a.mostRecentlyFocusedNode||d()))}function m(e){if(!1!==o.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void l();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(y(),e.shiftKey&&e.target===a.firstTabbableNode)return e.preventDefault(),void v(a.lastTabbableNode);if(!e.shiftKey&&e.target===a.lastTabbableNode)e.preventDefault(),v(a.firstTabbableNode)}(e)}function g(e){o.clickOutsideDeactivates||u(e.target)||o.allowOutsideClick&&o.allowOutsideClick(e)||(e.preventDefault(),e.stopImmediatePropagation())}function y(){var e=Be(r);a.firstTabbableNode=e[0]||d(),a.lastTabbableNode=e[e.length-1]||d()}function v(e){e!==n.activeElement&&(e&&e.focus?(e.focus({preventScroll:t.preventScroll}),a.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):v(d()))}}};class Ze extends e.Component{constructor(e){if(super(e),this.getApplicationNode=()=>this.props.getApplicationNode?this.props.getApplicationNode():this.props.applicationNode,this.checkUnderlayClick=e=>{this.dialogNode&&e.target instanceof Node&&this.dialogNode.contains(e.target)||e.target instanceof Element&&e.target.ownerDocument&&(e.pageX>e.target.ownerDocument.documentElement.offsetWidth||e.pageY>e.target.ownerDocument.documentElement.offsetHeight)||this.exit(e)},this.checkDocumentKeyDown=e=>{!this.props.escapeExits||"Escape"!==e.key&&"Esc"!==e.key&&27!==e.keyCode||this.exit(e)},this.exit=e=>{this.props.onExit&&this.props.onExit(e)},!this.props.titleText&&!this.props.titleId)throw new Error("react-aria-modal instances should have a `titleText` or `titleId`")}componentDidMount(){this.props.onEnter&&this.props.onEnter();const e=this.getApplicationNode();setTimeout((()=>{e&&e instanceof Element&&e.setAttribute("aria-hidden","true")}),0),this.props.escapeExits&&this.addKeyDownListener(),this.props.scrollDisabled&&Re()}componentDidUpdate(e){e.scrollDisabled&&!this.props.scrollDisabled?Ie():!e.scrollDisabled&&this.props.scrollDisabled&&Re(),this.props.escapeExits&&!e.escapeExits?this.addKeyDownListener():!this.props.escapeExits&&e.escapeExits&&this.removeKeyDownListener()}componentWillUnmount(){this.props.scrollDisabled&&Ie();const e=this.getApplicationNode();e&&e instanceof Element&&e.setAttribute("aria-hidden","false"),this.removeKeyDownListener()}addKeyDownListener(){setTimeout((()=>{document.addEventListener("keydown",this.checkDocumentKeyDown)}))}removeKeyDownListener(){setTimeout((()=>{document.removeEventListener("keydown",this.checkDocumentKeyDown)}))}render(){const t=this.props;let n={};if(t.includeDefaultStyles&&(n={position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1050,overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",textAlign:"center"},t.underlayColor&&(n.background=t.underlayColor),t.underlayClickExits&&(n.cursor="pointer")),t.underlayStyle)for(const e in t.underlayStyle)t.underlayStyle.hasOwnProperty(e)&&(n[e]=t.underlayStyle[e]);const r={className:t.underlayClass,style:n};t.underlayClickExits&&(r.onMouseDown=this.checkUnderlayClick);for(const e in this.props.underlayProps)r[e]=this.props.underlayProps[e];let o={};t.includeDefaultStyles&&(o={display:"inline-block",height:"100%",verticalAlign:"middle"});let a={};if(t.includeDefaultStyles&&(a={display:"inline-block",textAlign:"left",top:0,maxWidth:"100%",cursor:"default",outline:t.focusDialog?0:void 0},t.verticallyCenter&&(a.verticalAlign="middle",a.top=0)),t.dialogStyle)for(const e in t.dialogStyle)t.dialogStyle.hasOwnProperty(e)&&(a[e]=t.dialogStyle[e]);const i={key:"b",ref:e=>{this.dialogNode=e},role:t.alert?"alertdialog":"dialog",id:t.dialogId,className:t.dialogClass,style:a};t.titleId?i["aria-labelledby"]=t.titleId:t.titleText&&(i["aria-label"]=t.titleText),t.focusDialog&&(i.tabIndex=-1);for(let e in t)/^(data-|aria-)/.test(e)&&(i[e]=t[e]);const l=[e.createElement("div",Object.assign({},i),t.children)];t.verticallyCenter&&l.unshift(e.createElement("div",{key:"a",style:o}));const u=t.focusTrapOptions||{};return(t.focusDialog||t.initialFocus)&&(u.initialFocus=t.focusDialog?`#${this.props.dialogId}`:t.initialFocus),u.escapeDeactivates=t.escapeExits,e.createElement(Xe,{focusTrapOptions:u,paused:t.focusTrapPaused},e.createElement("div",Object.assign({},r),l))}}Ze.defaultProps={underlayProps:{},dialogId:"react-aria-modal-dialog",underlayClickExits:!0,escapeExits:!0,underlayColor:"rgba(0,0,0,0.5)",includeDefaultStyles:!0,focusTrapPaused:!1,scrollDisabled:!0};const et=Je(Ze);et.renderTo=function(e){return Je(Ze,{renderTo:e})};var tt=et;function nt(e){return nt="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},nt(e)}function rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ot(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return i=e.done,e},e:function(e){l=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function bt(){return bt=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function kt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Et(){var e=kt(["\n.sui-wrap && {\n\tdisplay: ",";\n\t","\n\t","\n\tmargin: 0;\n\tpadding-top: ","px;\n\tpadding-right: ","px;\n\tpadding-bottom: ","px;\n\tpadding-left: ","px;\n\tborder: 0 solid #E6E6E6;\n\tborder-top-width: ","px;\n\t","\n\n\t","\n\t","\n\n\t@media "," {\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t}\n}\n"]);return Et=function(){return e},e}function St(){var e=kt(["\n.sui-wrap && {\n\tmargin: 0;\n\tpadding-top: ","px;\n\tpadding-right: ","px;\n\tpadding-bottom: ","px;\n\tpadding-left: ","px;\n\tborder: 0 solid #E6E6E6;\n\tborder-top-width: ","px;\n\tborder-bottom-width: ","px;\n\ttext-align: ",";\n\n\t@media "," {\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t}\n}\n"]);return St=function(){return e},e}function xt(){var e=kt(["\n.sui-wrap && {\n\tdisplay: ",";\n\t","\n\t","\n\tmargin: 0;\n\tpadding-top: ","px;\n\tpadding-right: ","px;\n\tpadding-bottom: ","px;\n\tpadding-left: ","px;\n\tborder: 0 solid #E6E6E6;\n\tborder-bottom-width: ","px;\n\t","\n\n\t","\n\t","\n\n\t@media "," {\n\t\tpadding-top: ","px;\n\t\tpadding-right: ","px;\n\t\tpadding-bottom: ","px;\n\t\tpadding-left: ","px;\n\t}\n}\n"]);return xt=function(){return e},e}var Ct=30,Ot=20,Pt=783,Nt=1200,_t=1500,Tt={mobile:"(min-width: ".concat(480,"px)"),tablet:"(min-width: ".concat(Pt,"px)"),laptop:"(min-width: ".concat(Nt,"px)"),desktop:"(min-width: ".concat(_t,"px)")},Lt=function(t){var n=t.children,r=t.className,o=wt(t,["children","className"]);return e.createElement("div",bt({className:void 0!==r&&""!==r?"sui-box ".concat(r):"sui-box"},o),n)},jt=function(t){var n=t.icon,r=t.tagLabel,o=t.tagColor,a=t.tagSize,i=t.tagDesign,l=t.className,u=t.children,s=wt(t,["icon","tagLabel","tagColor","tagSize","tagDesign","className","children"]),c="sui-tag";switch(o){case"red":case"yellow":case"green":case"blue":case"purple":c+=" sui-tag-"+o}switch(a){case"sm":case"small":c+=" sui-tag-sm"}if("outlined"===i)c+=" sui-tag-ghost";return e.createElement("h3",bt({className:void 0!==l&&""!==l?"sui-box-title ".concat(l):"sui-box-title"},s),n&&""!==n&&e.createElement("span",{className:"sui-icon-".concat(n," sui-md"),"aria-hidden":"true"}),u,r&&""!==r&&e.createElement("span",{className:c,style:{marginLeft:10}},r))},At=Ae.div.attrs((function(e){return{props:e}}))(xt(),(function(e){return"block"!==e.display?"flex":"block"}),(function(e){return"block"!==e.display&&"flex-flow: row wrap;"}),(function(e){return"block"===e.display||"left"!==e.alignment&&"right"!==e.alignment&&"center"!==e.alignment?"justify-content: space-between;":"left"===e.alignment?"justify-content: flex-start;":"right"===e.alignment?"justify-content: flex-end;":"justify-content: center;"}),(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:Ot/2}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:Ot}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:Ot/2}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:Ot}),(function(e){return e.border||0===e.border?e.border:1}),(function(e){return"block"===e.display&&("right"===e.alignment||"center"===e.alignment)&&"text-align: "+e.alignment+";"}),(function(e){return"block"!==e.display&&"> * { max-width: 100%; flex: 0 0 auto; }"}),(function(e){return"block"!==e.display&&"> * + * { margin-left: 10px; }"}),Tt.tablet,(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:Ct/2}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:Ct}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:Ct/2}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:Ct})),Dt=function(t){var n=t.title,r=t.titleIcon,o=t.tagLabel,a=t.tagColor,i=t.tagSize,l=t.tagDesign;t.className;var u=t.children,s=wt(t,["title","titleIcon","tagLabel","tagColor","tagSize","tagDesign","className","children"]);return e.createElement(At,s,n&&""!==n&&e.createElement(jt,{icon:r,tagLabel:o,tagColor:a,tagSize:i,tagDesign:l},n),u)},Rt=Ae.div.attrs((function(e){return{props:e}}))(St(),(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:Ot}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:Ot}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:Ot}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:Ot}),(function(e){return e.borderTop||0===e.borderTop?e.borderTop:0}),(function(e){return e.borderBottom||0===e.borderBottom?e.borderBottom:0}),(function(e){return e.alignment||"left"}),Tt.tablet,(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:Ct}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:Ct}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:Ct}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:Ct})),It=function(t){var n=t.className,r=t.children,o=wt(t,["className","children"]);return e.createElement(Rt,bt({className:n},o),r)},zt=Ae.div.attrs((function(e){return{props:e}}))(Et(),(function(e){return"block"!==e.display?"flex":"block"}),(function(e){return"block"!==e.display&&"flex-flow: row wrap;"}),(function(e){return"block"===e.display||"left"!==e.alignment&&"right"!==e.alignment&&"center"!==e.alignment?"justify-content: space-between;":"left"===e.alignment?"justify-content: flex-start;":"right"===e.alignment?"justify-content: flex-end;":"justify-content: center;"}),(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop>29?e.paddingTop-10:e.paddingTop:Ot}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight>29?e.paddingRight-10:e.paddingRight:Ot}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom>29?e.paddingBottom-10:e.paddingBottom:Ot}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft>29?e.paddingLeft-10:e.paddingLeft:Ot}),(function(e){return e.border||0===e.border||""===e.border?e.border:1}),(function(e){return"block"===e.display&&("right"===e.alignment||"center"===e.alignment)&&"text-align: "+e.alignment+";"}),(function(e){return"block"!==e.display&&"> * { max-width: 100%; flex: 0 0 auto; }"}),(function(e){return"block"!==e.display&&"> * + * { margin-left: 10px; }"}),Tt.tablet,(function(e){return e.paddingTop||0===e.paddingTop?e.paddingTop:Ct}),(function(e){return e.paddingRight||0===e.paddingRight?e.paddingRight:Ct}),(function(e){return e.paddingBottom||0===e.paddingBottom?e.paddingBottom:Ct}),(function(e){return e.paddingLeft||0===e.paddingLeft?e.paddingLeft:Ct})),Ft=function(t){var n=t.className,r=t.children,o=wt(t,["className","children"]);return e.createElement(zt,bt({className:n},o),r)};function Mt(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Yt=function(t){var n=t.label,r=t.icon,o=t.iconSize,a=t.design,i=void 0===a?"solid":a,l=t.color,u=t.className,s=t.loading,c=Qt(t,["label","icon","iconSize","design","color","className","loading"]),f=e.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),d=e.createElement(e.Fragment,null,e.createElement("span",{className:"sui-icon-".concat(r).concat(o?" sui-"+o:""),"aria-hidden":"true"}),e.createElement("span",{className:"sui-screen-reader-text"},n));switch(u="sui-button-icon ".concat(u||""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":u+=" sui-button-"+l;break;default:u+=""}switch(i){case"ghost":case"outlined":u+=" sui-button-"+i;break;default:u+=""}s&&(u+=" sui-button-onload");var p=c.href?"a":"button";return e.createElement(p,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Zt=function(t){var n=t.label,r=t.icon,o=t.design,a=void 0===o?"solid":o,i=t.color,l=t.className,u=t.loading,s=Jt(t,["label","icon","design","color","className","loading"]),c=e.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),f=e.createElement(e.Fragment,null,r&&""!==r&&e.createElement("span",{className:"sui-icon-"+r,"aria-hidden":"true"}),n);switch(l="sui-button".concat(l?" "+l:""),i){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":l+=" sui-button-"+i;break;default:l+=""}switch(a){case"ghost":case"outlined":l+=" sui-button-"+a;break;default:l+=""}u&&(l+=" sui-button-onload");var d="button";return s.href?d="a":s.htmlFor&&(d="label"),e.createElement(d,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function rn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return on(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return on(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function on(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:"left";p(e),g(t)}})),r&&r({openModal:function(){return l(!0)}}))};function ln(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var cn=function(t){var n=t.label,r=t.icon,o=t.iconSize,a=t.design,i=void 0===a?"solid":a,l=t.color,u=t.className,s=t.loading,c=sn(t,["label","icon","iconSize","design","color","className","loading"]),f=e.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),d=e.createElement(e.Fragment,null,e.createElement("span",{className:"sui-icon-".concat(r).concat(o?" sui-"+o:""),"aria-hidden":"true"}),e.createElement("span",{className:"sui-screen-reader-text"},n));switch(u="sui-button-icon ".concat(u||""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":u+=" sui-button-"+l;break;default:u+=""}switch(i){case"ghost":case"outlined":u+=" sui-button-"+i;break;default:u+=""}s&&(u+=" sui-button-onload");var p=c.href?"a":"button";return e.createElement(p,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var mn=function(t){var n=t.id,r=t.size,o=t.label,a=t.description,i=t.type,l=void 0===i?"text":i,u=hn(t,["id","size","label","description","type"]),s=n&&""!==n?n:u.property,c="sui-form-control";switch(r){case"sm":case"small":c+=" sui-input-sm";break;case"md":case"medium":c+=" sui-input-md"}return e.createElement("div",{className:"sui-form-field"},o&&e.createElement("label",{htmlFor:s,className:"sui-label"},o),e.createElement("input",pn({id:s,type:l,className:c},u)),a&&e.createElement("p",{className:"sui-description"},a))},gn=function(t){var n=t.setOpen,r=t.config,o=t.save,a=t.strings,i=void 0===a?{}:a,l=r?r.name:"",u=r?r.description:"",s=ht(e.useState(l),2),c=s[0],f=s[1],d=ht(e.useState(u),2),p=d[0],h=d[1],m=ht(e.useState(!1),2),g=m[0],y=m[1],v=ht(e.useState(!1),2),b=v[0],w=v[1],k=i.closeIcon,E=void 0===k?"Close this dialog window":k,S=i.nameInput,x=void 0===S?"Config name":S,C=i.descriptionInput,O=void 0===C?"Description":C,P=i.emptyNameError,N=void 0===P?"The config name is required":P,_=i.actionButton,T=void 0===_?"Save":_,L=i.cancelButton,j=void 0===L?"Cancel":L,A=i.editTitle,D=void 0===A?"Rename Config":A,R=i.editDescription,I=void 0===R?"Change your config name to something recognizable.":R,z=i.createTitle,F=void 0===z?"Save Config":z,M=i.createDescription,B=void 0===M?"Save your current settings configuration. You’ll be able to then download and apply it to your other sites.":M,U=function(e){y(e),w(!1)},$=function(){if(c.trim().length){y(!1),w(!0);var e=new FormData;e.append("name",c),e.append("description",p),o(e,U)}else y(N)};return e.createElement(an,{mounted:!0,dialogId:"sui-configs-edit-modal",titleId:"sui-config-edit-title",size:"sm",modalContent:function(){var t=r?D:F,o=r?I:B;return e.createElement("div",{className:"sui-box"},e.createElement("div",{className:"sui-box-header sui-flatten sui-content-center sui-spacing-top--60"},e.createElement(cn,{label:E,icon:"close",iconSize:"md",className:"sui-button-float--right",onClick:function(){return n(!1)}}),e.createElement("h2",{id:"sui-config-edit-title"},t),e.createElement("p",{className:"sui-description"},o)),e.createElement("div",{className:"sui-box-body"},e.createElement("div",{role:"alert",id:"configs-edit-modal-error-message",className:"sui-notice sui-notice-error","aria-live":"assertive",style:{display:g?"block":""}},g&&e.createElement("div",{className:"sui-notice-content"},e.createElement("div",{className:"sui-notice-message"},e.createElement("span",{className:"sui-notice-icon sui-icon-info sui-md","aria-hidden":"true"}),e.createElement("p",null,g)))),e.createElement(mn,{label:x,name:"name",value:c,onChange:function(e){return f(e.target.value)},maxLength:"200"}),e.createElement("div",{className:"sui-form-field"},e.createElement("label",{className:"sui-label",htmlFor:"sui-edit-config-textarea"},O),e.createElement("textarea",{id:"sui-edit-config-textarea",className:"sui-form-control",name:"description",value:p,onChange:function(e){return h(e.target.value)},maxLength:"200"}))),e.createElement("div",{className:"sui-box-footer sui-content-separated sui-flatten sui-spacing-top--0"},e.createElement(Zt,{design:"ghost",label:j,onClick:function(){return n(!1)}}),e.createElement(Zt,{color:"blue",icon:"save",label:T,onClick:$,loading:b})))}})},yn=783,vn=1200,bn=1500,wn={mobile:"(min-width: ".concat(480,"px)"),tablet:"(min-width: ".concat(yn,"px)"),laptop:"(min-width: ".concat(vn,"px)"),desktop:"(min-width: ".concat(bn,"px)")};function kn(){return kn=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Sn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(o)throw a}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return xn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xn(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Nn=function(t){var n=t.label,r=t.icon,o=t.iconSize,a=t.design,i=void 0===a?"solid":a,l=t.color,u=t.className,s=t.loading,c=Pn(t,["label","icon","iconSize","design","color","className","loading"]),f=e.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),d=e.createElement(e.Fragment,null,e.createElement("span",{className:"sui-icon-".concat(r).concat(o?" sui-"+o:""),"aria-hidden":"true"}),e.createElement("span",{className:"sui-screen-reader-text"},n));switch(u="sui-button-icon ".concat(u||""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":u+=" sui-button-"+l;break;default:u+=""}switch(i){case"ghost":case"outlined":u+=" sui-button-"+i;break;default:u+=""}s&&(u+=" sui-button-onload");var p=c.href?"a":"button";return e.createElement(p,function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Hn=function(t){var n=t.label,r=t.icon,o=t.iconSize,a=t.design,i=void 0===a?"solid":a,l=t.color,u=t.className,s=t.loading,c=$n(t,["label","icon","iconSize","design","color","className","loading"]),f=e.createElement("span",{className:"sui-icon-loader sui-loading",style:{position:"relative"},"aria-hidden":"true"}),d=e.createElement(e.Fragment,null,e.createElement("span",{className:"sui-icon-".concat(r).concat(o?" sui-"+o:""),"aria-hidden":"true"}),e.createElement("span",{className:"sui-screen-reader-text"},n));switch(u="sui-button-icon ".concat(u||""),l){case"blue":case"green":case"red":case"orange":case"purple":case"yellow":case"white":u+=" sui-button-"+l;break;default:u+=""}switch(i){case"ghost":case"outlined":u+=" sui-button-"+i;break;default:u+=""}s&&(u+=" sui-button-onload");var p=c.href?"a":"button";return e.createElement(p,function(e){for(var t=1;t div:not(.sui-tooltip) {\n\n\t\t@media "," {\n\t\t\tmin-width: 1px;\n\t\t\tflex: 1;\n\t\t}\n\t}\n\n\t> div.sui-tooltip {\n\t\tmargin: 10px 0 0 !important;\n\n\t\t@media "," {\n\t\t\tflex: 0 0 auto;\n\t\t\tmargin-top: 0 !important;\n\t\t\tmargin-left: 10px !important;\n\t\t}\n\t}\n\n\t@media "," {\n\t\tdisplay: flex;\n\t\talign-items: center;\n\t}\n"])),wn.tablet,wn.tablet,wn.tablet),cr=Ae.p(Yn||(Yn=pt(["\n\tmargin: 0 !important;\n\tcolor: #333 !important;\n"]))),fr=Ae.p(Kn||(Kn=pt(["\n\tmargin: 3px 0 0 !important;\n"]))),dr=Ae.svg(Gn||(Gn=pt(["\n margin-left: 10px;\n"]))),pr=Ae((function(t){var n=t.title,r=t.titleSize,o=t.icon,a=t.image,i=t.children,l=En(t,["title","titleSize","icon","image","children"]),u=Sn((0,e.useState)(!1),1)[0],s=e.Children.toArray(i).length,c=void 0!==o&&""!==o?e.createElement("span",{className:"sui-icon-".concat(o),"aria-hidden":"true"}):"",f=void 0!==a&&""!==o?e.createElement(Tn,{style:{backgroundImage:"url(".concat(a,")")}}):"",d=void 0!==r&&""!==r?" sui-accordion-col-"+r:"",p=e.createElement("div",{className:"sui-accordion-item-title".concat(d)},c,f,n),h=e.createElement(Nn,{icon:"chevron-down",label:u?"Close section":"Open section",className:"sui-button-icon sui-accordion-open-indicator"}),m=e.Children.map(i,(function(t,n){n++;var r=t.props.size,o=void 0!==r&&""!==r?"sui-accordion-col-"+r:"sui-accordion-col-auto",a=t.props.children;return e.createElement("div",{className:o},a,s===n&&h)})),g=e.createElement("div",{className:"sui-accordion-col-auto"},h);return e.createElement("div",kn({className:"sui-accordion-item-header"},l),p,s>0?m:g)}))(Xn||(Xn=pt(["\n.sui-wrap && {\n\n > .sui-accordion-col-auto {\n\n > .sui-dropdown {\n\n [class*=sui-icon-] {\n margin-right: 0 !important;\n }\n\n ul {\n min-width: 192px;\n }\n }\n }\n}\n"]))),hr=function(t){lt(r,t);var n=dt(r);function r(e){var t;return rt(this,r),it(ct(t=n.call(this,e)),"toggle",(function(e){"sui-dropdown"===e.target.className&&"sui-button-icon undefined"===e.target.className&&"sui-icon-widget-settings-config"===e.target.className||t.setState({open:!t.state.open})})),it(ct(t),"accordionHeadApplyClicked",(function(e){e.stopPropagation(),t.props.applyAction()})),t.state={open:!1},t.toggle=t.toggle.bind(ct(t)),t}return at(r,[{key:"render",value:function(){var t=this,n=this.state.open,r=this.props,o=r.editAction,a=r.applyAction,i=r.deleteAction,l=r.downloadAction,u=n?"sui-accordion-item sui-accordion-item--open":"sui-accordion-item",s=e.createElement(dr,{width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M15.86 8.914l-.839-.69a1.6 1.6 0 01-.579-1.235c0-.334.102-.644.276-.9l-.003.005.616-.911a.428.428 0 00-.307-.655h-.003l-1.075-.123a1.595 1.595 0 01-1.407-1.637v.002l.032-1.092v-.017a.422.422 0 00-.613-.376h.002l-.97.468a1.583 1.583 0 01-2.058-.603l-.004-.007-.557-.935a.423.423 0 00-.726-.002l-.001.002-.558.935a1.585 1.585 0 01-2.074.606l.01.004-.97-.482a.425.425 0 00-.616.395v-.001l.031 1.092v.047c0 .82-.61 1.494-1.399 1.587h-.007l-1.07.137a.428.428 0 00-.301.67l-.001-.002.61.898a1.6 1.6 0 01-.301 2.142l-.843.678a.427.427 0 00.106.723l.002.001 1 .424a1.601 1.601 0 01.89 1.979l.003-.011-.338 1.038a.427.427 0 00.481.553l-.003.001 1.058-.19a1.589 1.589 0 011.806 1.16l.002.013.264 1.065c.049.185.214.32.41.32a.42.42 0 00.288-.115l.793-.738a1.573 1.573 0 012.15.001h-.001l.793.737a.424.424 0 00.713-.213v-.003l.265-1.065a1.591 1.591 0 011.818-1.17l-.01-.002 1.057.19a.427.427 0 00.475-.557l.001.002-.336-1.038a1.598 1.598 0 01.88-1.964l.011-.004 1-.424a.427.427 0 00.127-.713zm-8.803 2.2L4.266 8.401l1.1-1.15 1.67 1.622 3.997-4.024 1.126 1.129-5.102 5.134z",fill:"#286EFA",fillRule:"nonzero"})),c=this.props.default?e.createElement(e.Fragment,null,this.props.name,s):this.props.name;return e.createElement("div",{className:u},e.createElement(pr,{className:"sui-accordion-item-header",state:n?"true":"false",title:c,image:this.props.image,onClick:function(e){return t.toggle(e)}},e.createElement("div",{size:"5"},e.createElement("div",{style:{overflow:"hidden",display:"block",whiteSpace:"nowrap",textOverflow:"ellipsis"}},this.props.description)),e.createElement("div",null,this.props.showApplyButton&&e.createElement(Zt,{label:this.props.applyLabel||"Apply",design:"ghost",onClick:this.accordionHeadApplyClicked}),e.createElement(ir,{position:"right"},e.createElement("div",{name:this.props.applyLabel||"Apply",icon:"check",onClick:a}),e.createElement("div",{name:this.props.downloadLabel||"Download",icon:"download",onClick:function(){return l(t.props.id)}}),e.createElement("div",{name:this.props.editLabel||"Name and Description",icon:"pencil",onClick:o}),e.createElement("div",{name:this.props.deleteLabel||"Delete",icon:"trash",color:"red",onClick:i})))),e.createElement(Ln,null,e.createElement(Lt,null,e.createElement(It,null,e.createElement(sr,null,e.createElement("div",null,e.createElement(cr,{className:"sui-label"},this.props.name),e.createElement(fr,{className:"sui-description"},this.props.description)),e.createElement("div",{className:"sui-tooltip","data-tooltip":this.props.editLabel||"Edit Name and Description"},e.createElement(cn,{icon:"pencil",label:this.props.editLabel,design:"outlined",onClick:function(){return o(t.props.id)}}))),e.createElement(ur,null,this.props.children)),e.createElement(Ft,null,e.createElement(Zt,{label:this.props.applyLabel||"Apply",icon:"check",design:"ghost",onClick:function(){return a(t.props.id)}})))))}}]),r}(e.Component),mr=function(){function e(t){var n=t.apiKey,r=t.pluginData,o=t.root,a=t.nonce,i=t.pluginRequests,l=t.hubBaseURL;rt(this,e),this.apiKey=n,this.pluginData=r,this.root=o,this.nonce=a,this.pluginRequests=i,this.hubBaseURL=l||"https://wpmudev.com/api/hub/v1/package-configs"}return at(e,[{key:"delete",value:function(e,t){t.hub_id&&this.deleteFromHub(t.hub_id);var n=e.findIndex((function(e){return e.id===t.id}));return-1!==n&&e.splice(n,1),this.updateLocalConfigsList(e)}},{key:"addNew",value:function(e,t){var n=this;return new Promise((function(r,o){var a;(t.id=Date.now(),n.apiKey)?n.sendConfigToHub(t).then((function(r){return a=r.id,t.id=r.id,t.hub_id=r.id,e.push(t),n.updateLocalConfigsList(e)})).catch((function(){return e.push(t),n.updateLocalConfigsList(e)})).then((function(e){return r(e)})).catch((function(e){400===e.status&&n.deleteFromHub(a),o(e)})):(e.push(t),r(n.updateLocalConfigsList(e)))}))}},{key:"edit",value:function(e,t,n){if(this.apiKey&&t.hub_id){var r=Object.assign({package:this.pluginData},n);this.makeHubRequest("/".concat(t.hub_id),"PATCH",JSON.stringify(r)).catch((function(e){return console.log(e)}))}var o=e.findIndex((function(e){return e.id===t.id}));return-1!==o&&(e[o]=Object.assign({},t,n)),this.updateLocalConfigsList(e)}},{key:"updateLocalConfigsList",value:function(e){var t=e.filter((function(e){return e}));return this.makeLocalRequest("POST",JSON.stringify(t))}},{key:"deleteFromHub",value:function(e){this.apiKey&&this.makeHubRequest("/".concat(e),"DELETE").catch((function(e){return console.log(e)}))}},{key:"syncWithHub",value:function(e){var t=this;return new Promise((function(n,r){t.apiKey||n(e),t.makeHubRequest("?package_id=".concat(t.pluginData.id),"GET").then((function(n){return t.getUpdatedLocalWithHub(e,n)})).then((function(){return t.updateLocalConfigsList(e)})).then((function(e){return n(e)})).catch((function(e){return r(e)}))}))}},{key:"getUpdatedLocalWithHub",value:function(e,t){var n,r=this,o=t.map((function(e){return e.id})),a={},i=[],l=vt(e.entries());try{var u=function(){var t=ht(n.value,2),l=t[0],u=t[1];if(u.default)return"continue";if(!u.hub_id){var s=r.sendConfigToHub(u).then((function(t){e[l].id=t.id,e[l].hub_id=t.id}));return i.push(s),"continue"}if(!o[u.hub_id])return delete e[l],"continue";a[u.hub_id]=l};for(l.s();!(n=l.n()).done;)u()}catch(e){l.e(e)}finally{l.f()}var s,c=vt(t);try{for(c.s();!(s=c.n()).done;){var f=s.value;if(a[f.id]){var d=a[f.id],p=e[d];p.name===f.name&&p.description===f.description||(p.name=f.name,p.description=f.description,e[d]=p)}else e.push({id:f.id,hub_id:f.id,name:f.name,description:f.description,config:JSON.parse(f.config)})}}catch(e){c.e(e)}finally{c.f()}return Promise.all(i)}},{key:"sendConfigToHub",value:function(e){var t={name:e.name,description:e.description,package:this.pluginData,config:JSON.stringify(e.config)};return this.makeHubRequest("","POST",JSON.stringify(t))}},{key:"upload",value:function(e){var t=new FormData,n=e.currentTarget.files;return t.append("file",n[0]),t.append("_ajax_nonce",this.pluginRequests.nonce),this.makePluginRequest(this.pluginRequests.uploadAction,t)}},{key:"create",value:function(e){return e.append("_ajax_nonce",this.pluginRequests.nonce),this.makePluginRequest(this.pluginRequests.createAction,e)}},{key:"apply",value:function(e){var t=new FormData;return t.append("_ajax_nonce",this.pluginRequests.nonce),t.append("id",e.id),this.makePluginRequest(this.pluginRequests.applyAction,t)}},{key:"makeLocalRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"GET",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n={"Content-type":"application/json","X-WP-Nonce":this.nonce};return this.makeRequest(this.root,e,t,n)}},{key:"makeHubRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r={"Content-type":"application/json",Authorization:"Basic "+this.apiKey};return this.makeRequest(this.hubBaseURL+e,t,n,r)}},{key:"makePluginRequest",value:function(e,t){return this.makeRequest("".concat(ajaxurl,"?action=").concat(e),"POST",t)}},{key:"makeRequest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GET",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise((function(o,a){var i=new XMLHttpRequest;for(var l in i.open(t,e,!0),r)i.setRequestHeader(l,r[l]);i.onload=function(){i.status>=200&&i.status<300?o(JSON.parse(i.response)):a(i)},i.onerror=function(){return a(i)},i.send(n)}))}}]),e}(),gr=Ae.div(Jn||(Jn=pt(["\n.sui-wrap && {\n position: relative;\n z-index: 2;\n}\n"]))),yr=Ae.div(Zn||(Zn=pt(["\n.sui-wrap && {\n pointer-events: none;\n}"]))),vr=Ae.div(er||(er=pt(["\n.sui-wrap && {\n width: 100%;\n height: 100%;\n display: flex;\n flex-flow: row wrap;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n background-color: rgba(255,255,255,0.95);\n border-radius: 0 0 4px 4px;\n\n > p {\n\n }\n}\n"]))),br=Ae.button(tr||(tr=pt(["\n.sui-wrap && {\n\tcolor: #17A8E3;\n\tfont-weight: 500;\n\tbackground-color: transparent;\n\tborder: none;\n\tcursor: pointer;\n\ttext-decoration: underline;\n\tdisplay: inline;\n\tmargin: 0;\n\tpadding: 0;\n}\n"]))),wr=function(t){var n=t.isWidget,r=t.isPro,o=t.isWhitelabel,a=t.requestsData,i=t.sourceUrls,l=t.sourceLang,u=ht(e.useState([]),2),s=u[0],c=u[1],f=ht(e.useState(!0),2),d=f[0],p=f[1],h=ht(e.useState(null),2),m=h[0],g=h[1],y=ht(e.useState(!1),2),v=y[0],b=y[1],w=ht(e.useState(!1),2),k=w[0],E=w[1],S=ht(e.useState(!1),2),x=S[0],C=S[1],O=Object.assign({freeNoticeHub:"https://wpmudev.com/hub-welcome/",hubMyConfigs:"https://wpmudev.com/hub2/configs/my-configs",configsPage:"#",accordionImg:null},i),P=Object.assign({title:"Preset configs",upload:"Upload",save:"Save config",manageConfigs:"Manage configs",loading:"Updating the config list…",emptyNotice:"You don’t have any available config. Save preset configurations of your settings, then upload and apply them to your other sites in just a few clicks!",baseDescription:"Use configs to save preset configurations of your settings, then upload and apply them to your other sites in just a few clicks!",proDescription:e.createElement(e.Fragment,null,"You can easily apply configs to multiple sites at once via ",e.createElement("a",{href:O.hubMyConfigs,target:"_blank",rel:"noreferrer"},"the Hub.")),widgetDescription:"Use configs to save preset configurations of your settings.",syncWithHubText:"Created or updated the configs via the Hub?",syncWithHubButton:"Re-check to get the updated list.",apply:"Apply",download:"Download",edit:"Name and Description",delete:"Delete",freeNoticeMessage:"Tired of saving, downloading and uploading your configs across your sites? WPMU DEV members use The Hub to easily apply configs to multiple sites at once… Try it free today!",freeButtonLabel:"Try The Hub",notificationDismiss:"Dismiss notice",defaultRequestError:"Request failed. Status: {status}. Please reload the page and try again.",uploadWrongPluginErrorMessage:"The uploaded file is not a {pluginName} Config. Please make sure the uploaded file is correct.",uploadActionSuccessMessage:"{configName} config has been uploaded successfully – you can now apply it to this site.",applyAction:{successMessage:"{configName} config has been applied successfully."},editAction:{successMessage:"{configName} config created successfully."},deleteAction:{},settingsLabels:{}},l);e.useEffect((function(){nr=new mr(a),N()}),[]);var N=function(){p(!0),nr.makeLocalRequest().then((function(e){return c(e||[])})).catch((function(e){return A(e)})).then((function(){return p(!1)}))},_=function(){p(!0),nr.syncWithHub(mt(s)).then((function(e){return c(e)})).catch((function(e){return A(e)})).then((function(){return p(!1)}))},T=!s||0===s.length,L=function(e,t){g(t),"apply"===e?b(!0):"delete"===e?E(!0):C(!0)},j=function(e){window.SUI.openNotice("sui-configs-floating-notice","".concat(e,"
"),{type:"success",icon:"check-tick",dismiss:{show:!0,label:P.notificationDismiss}})},A=function(e){var t;e.data?t=e.data.error_msg:e.status&&403===e.status?t=P.defaultRequestError.replace("{status}",e.status):(window.console.log(e),t="Error. Please check the browser console"),window.SUI.openNotice("sui-configs-floating-notice","".concat(t,"
"),{type:"error",icon:"info",dismiss:{show:!0,label:P.notificationDismiss}})},D=o?null:O.accordionImg,R=e.createElement(e.Fragment,null,!T&&e.createElement("div",{className:"sui-accordion sui-accordion-flushed",style:{borderBottomWidth:0}},s.map((function(t){return e.createElement(hr,{key:t.id,id:t.id,default:t.default,name:t.name,description:t.description,image:D,showApplyButton:!n,applyLabel:P.apply,applyAction:function(){return L("apply",t)},downloadLabel:P.download,downloadAction:function(){return function(e){var t=Object.assign({},s.find((function(t){return e.id===t.id})));if(t&&Object.keys(t).length){t.plugin=a.pluginData.id,delete t.hub_id,delete t.default;var n=new Blob([JSON.stringify(t,null,2)],{type:"application/json"}),r=a.pluginData.name.toLowerCase().replace(" ","-"),o=t.name.replace(/[^a-z0-9_-]/gi,"_").toLowerCase(),i=window.URL.createObjectURL(n),l=document.createElement("a");l.style.display="none",l.href=i,l.download="wp-".concat(r,"-config-").concat(o),document.body.appendChild(l),l.click(),window.URL.revokeObjectURL(i),l.remove()}}(t)},editLabel:P.edit,editAction:function(){return L("edit",t)},deleteLabel:P.delete,deleteAction:function(){return L("delete",t)}},Object.keys(t.config.strings).map((function(n){return e.createElement("div",{key:n,name:P.settingsLabels[n],status:t.config.strings[n]})})))})))),I=function(){return n?e.createElement(Ft,null,e.createElement(Zt,{icon:"save",label:P.save,color:"blue",onClick:function(){return L("edit",null)}}),e.createElement(Zt,{icon:"wrench-tool",label:P.manageConfigs,design:"ghost",href:O.configsPage})):r?e.createElement(Ft,{display:"block",alignment:"center",paddingTop:T?0:30,border:T?0:1},e.createElement("p",{className:"sui-description"},P.syncWithHubText," "," ",e.createElement(br,{onClick:_},P.syncWithHubButton))):e.createElement(Ft,{display:"block"},e.createElement(Kt,{type:"upsell"},e.createElement("p",null,P.freeNoticeMessage),e.createElement("p",null,e.createElement(Zt,{label:P.freeButtonLabel,color:"purple",href:O.freeNoticeHub,target:"_blank"}))))},z={title:P.title};n&&(z.titleIcon="wrench-tool",T||(z.tagLabel=s.length));var F=e.createElement(Dt,z,!n&&e.createElement("div",{className:"sui-actions-right"},e.createElement(Zt,{icon:"upload-cloud",label:P.upload,design:"ghost",htmlFor:"sui-upload-configs-input"}),e.createElement("input",{id:"sui-upload-configs-input",type:"file",name:"config_file",className:"sui-hidden",value:"",readOnly:"readonly",onChange:function(e){var t;nr.upload(e).then((function(e){if(e.data&&e.data.config){if(e.data.plugin){if(e.data.plugin!==a.pluginData.id)throw{data:{error_msg:P.uploadWrongPluginErrorMessage.replace("{pluginName}",a.pluginData.name)}};delete e.data.plugin}return e.data.name=e.data.name.substring(0,200),e.data.description=e.data.description.substring(0,200),t=e.data.name,nr.addNew(s,e.data)}throw e})).then((function(e){c(e),j(P.uploadActionSuccessMessage.replace("{configName}",t))})).catch((function(e){return A(e)}))},accept:".json"}),e.createElement(Zt,{type:"button",icon:"save",label:P.save,color:"blue",onClick:function(){return L("edit",null)}})));return e.createElement(e.Fragment,null,e.createElement("div",{className:"sui-floating-notices"},e.createElement("div",{role:"alert",id:"sui-configs-floating-notice",className:"sui-notice","aria-live":"assertive"})),e.createElement(Lt,null,F,e.createElement(It,null,n?e.createElement("p",null,P.widgetDescription):e.createElement("p",null,P.baseDescription+" ",r&&!o&&P.proDescription),!d&&T&&e.createElement(Kt,{type:"info"},e.createElement("p",null,P.emptyNotice))),d&&e.createElement(gr,null,e.createElement(yr,{"aria-hidden":"true"},R,I()),e.createElement(vr,null,e.createElement("p",{className:"sui-description"},e.createElement("span",{className:"sui-icon-loader sui-loading","aria-hidden":"true",style:{marginRight:10}}),P.loading))),!d&&e.createElement(e.Fragment,null,R,I())),v&&e.createElement(fn,{setOpen:b,config:m,save:function(){nr.apply(m).then((function(e){b(!1),e.success?j(P.applyAction.successMessage.replace("{configName}",m.name)):A(e)})).catch((function(e){return A(e)}))},strings:P.applyAction}),k&&e.createElement(dn,{setOpen:E,config:m,save:function(){nr.delete(mt(s),m).then((function(e){return c(e)})).catch((function(e){return A(e)})).then((function(){return E(!1)}))},strings:P.deleteAction}),x&&e.createElement(gn,{setOpen:C,config:m,save:function(e,t){var n={name:e.get("name").substring(0,200),description:e.get("description").substring(0,200)};m?nr.edit(mt(s),m,n).then((function(e){return c(e)})).catch((function(e){return A(e)})).then((function(){return C(!1)})):nr.create(e).then((function(e){if(e.data&&e.data.config)return n.config=e.data.config,nr.addNew(mt(s),n);e.success||t(e.data.error_msg)})).then((function(e){c(e),C(!1),j(P.editAction.successMessage.replace("{configName}",n.name))})).catch((function(e){return A(e)}))},strings:P.editAction}))},kr=wp.i18n,Er=kr.__,Sr=kr.sprintf,xr=function(t){var n=t.isWidget,r=e.createElement(e.Fragment,null,Er("You can easily apply configs to multiple sites at once via ","wp-smushit"),e.createElement("a",{href:window.smushReact.links.hubConfigs,target:"_blank",rel:"noreferrer"},Er("the Hub."))),o=Er("Close this dialog window","wp-smushit"),a=Er("Cancel","wp-smushit"),i={title:Er("Preset Configs","wp-smushit"),upload:Er("Upload","wp-smushit"),save:Er("Save config","wp-smushit"),loading:Er("Updating the config list…","wp-smushit"),emptyNotice:Er("You don’t have any available config. Save preset configurations of Smush’s settings, then upload and apply them to your other sites in just a few clicks!","wp-smushit"),baseDescription:Er("Use configs to save preset configurations of Smush’s settings, then upload and apply them to your other sites in just a few clicks!","wp-smushit"),proDescription:r,syncWithHubText:Er("Created or updated configs via the Hub?","wp-smushit"),syncWithHubButton:Er("Check again","wp-smushit"),apply:Er("Apply","wp-smushit"),download:Er("Download","wp-smushit"),edit:Er("Name and Description","wp-smushit"),delete:Er("Delete","wp-smushit"),notificationDismiss:Er("Dismiss notice","wp-smushit"),freeButtonLabel:Er("Try The Hub","wp-smushit"),defaultRequestError:Sr(Er("Request failed. Status: %s. Please reload the page and try again.","wp-smushit"),"{status}"),uploadActionSuccessMessage:Sr(Er("%s config has been uploaded successfully – you can now apply it to this site.","wp-smushit"),"{configName}"),uploadWrongPluginErrorMessage:Sr(Er("The uploaded file is not a %s Config. Please make sure the uploaded file is correct.","wp-smushit"),"{pluginName}"),applyAction:{closeIcon:o,cancelButton:a,title:Er("Apply Config","wp-smushit"),description:Sr(Er("Are you sure you want to apply the %s config to this site? We recommend you have a backup available as your existing settings configuration will be overridden.","wp-smushit"),"{configName}"),actionButton:Er("Apply","wp-smushit"),successMessage:Sr(Er("%s config has been applied successfully.","wp-smushit"),"{configName}")},deleteAction:{closeIcon:o,cancelButton:a,title:Er("Delete Configuration File","wp-smushit"),description:Sr(Er("Are you sure you want to delete %s? You will no longer be able to apply it to this or other connected sites.","wp-smushit"),"{configName}"),actionButton:Er("Delete","wp-smushit")},editAction:{closeIcon:o,cancelButton:a,nameInput:Er("Config name","wp-smushit"),descriptionInput:Er("Description","wp-smushit"),emptyNameError:Er("The config name is required","wp-smushit"),actionButton:Er("Save","wp-smushit"),editTitle:Er("Rename Config","wp-smushit"),editDescription:Er("Change your config name to something recognizable.","wp-smushit"),createTitle:Er("Save Config","wp-smushit"),createDescription:Er("Save your current settings configuration. You’ll be able to then download and apply it to your other sites.","wp-smushit"),successMessage:Sr(Er("%s config created successfully.","wp-smushit"),"{configName}")},settingsLabels:{bulk_smush:Er("Bulk Smush","wp-smushit"),integrations:Er("Integrations","wp-smushit"),lazy_load:Er("Lazy Load","wp-smushit"),cdn:Er("CDN","wp-smushit"),webp_mod:Er("Local WebP","wp-smushit"),tools:Er("Tools","wp-smushit"),settings:Er("Settings","wp-smushit"),networkwide:Er("Subsite Controls","wp-smushit")}};return e.createElement(wr,{isWidget:n,isPro:window.smushReact.isPro,isWhitelabel:window.smushReact.hideBranding,sourceLang:i,sourceUrls:window.smushReact.links,requestsData:window.smushReact.requestsData})};rr=function(){var n=document.getElementById("smush-box-configs");n&&t.render(e.createElement(xr,{isWidget:!1}),n);var r=document.getElementById("smush-widget-configs");r&&t.render(e.createElement(xr,{isWidget:!0}),r)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",rr):rr())}()}();
//# sourceMappingURL=smush-react-configs.min.js.map