/* >>> file start: js/front-bundled/dist/reactEssentials.js */
/*! For license information please see reactEssentials.js.LICENSE.txt */
"use strict";(self.webpackChunkfrontend_bundled=self.webpackChunkfrontend_bundled||[]).push([[35],{961:(e,t,n)=>{!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2551)},1020:(e,t,n)=>{var r=n(6540),l=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,a={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!u.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:l,type:e,key:s,ref:c,props:a,_owner:i.current}}t.Fragment=a,t.jsx=s,t.jsxs=s},2551:(e,t,n)=>{var r=n(6540),l=n(9982);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,i={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(i[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,l,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){g[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];g[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){g[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){g[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){g[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){g[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){g[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){g[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){g[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var l=g.hasOwnProperty(t)?g[t]:null;(null!==l?0!==l.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,l,r)&&(n=null),r||null===l?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!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,y);g[t]=new m(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,y);g[t]=new m(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,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var S=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),P=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var I=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var O=Symbol.iterator;function M(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=O&&e[O]||e["@@iterator"])?e:null}var D,F=Object.assign;function A(e){if(void 0===D)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var U=!1;function j(e,t){if(!e||U)return"";U=!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(t){if(t&&r&&"string"==typeof t.stack){for(var l=t.stack.split("\n"),a=r.stack.split("\n"),o=l.length-1,i=a.length-1;1<=o&&0<=i&&l[o]!==a[i];)i--;for(;1<=o&&0<=i;o--,i--)if(l[o]!==a[i]){if(1!==o||1!==i)do{if(o--,0>--i||l[o]!==a[i]){var u="\n"+l[o].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=o&&0<=i);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?A(e):""}function B(e){switch(e.tag){case 5:return A(e.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return j(e.type,!1);case 11:return j(e.type.render,!1);case 1:return j(e.type,!0);default:return""}}function $(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 E:return"Fragment";case k:return"Portal";case x:return"Profiler";case C:return"StrictMode";case z:return"Suspense";case T:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case N:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return $(e(t))}catch(e){}}return null}function V(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===C?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Q(e){e._valueTracker||(e._valueTracker=function(e){var t=W(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 l=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Y(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 G(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function K(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(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 X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){X(e,t);var n=H(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")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 ee(e,t,n){"number"===t&&Y(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,l=0;l<e.length;l++){if(e[l].value===n)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return F({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function le(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(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 oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function ie(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?ie(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.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 ce(e,t)}))}:ce);function de(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 pe={animationIterationCount:!0,aspectRatio:!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},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=F({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 ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function be(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}}var Se=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,Ee=null,Ce=null;function xe(e){if(e=bl(e)){if("function"!=typeof ke)throw Error(a(280));var t=e.stateNode;t&&(t=wl(t),ke(e.stateNode,e.type,t))}}function _e(e){Ee?Ce?Ce.push(e):Ce=[e]:Ee=e}function Pe(){if(Ee){var e=Ee,t=Ce;if(Ce=Ee=null,xe(e),t)for(e=0;e<t.length;e++)xe(t[e])}}function Ne(e,t){return e(t)}function ze(){}var Te=!1;function Re(e,t,n){if(Te)return e(t,n);Te=!0;try{return Ne(e,t,n)}finally{Te=!1,(null!==Ee||null!==Ce)&&(ze(),Pe())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=wl(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var Ie=!1;if(c)try{var Oe={};Object.defineProperty(Oe,"passive",{get:function(){Ie=!0}}),window.addEventListener("test",Oe,Oe),window.removeEventListener("test",Oe,Oe)}catch(ce){Ie=!1}function Me(e,t,n,r,l,a,o,i,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var De=!1,Fe=null,Ae=!1,Ue=null,je={onError:function(e){De=!0,Fe=e}};function Be(e,t,n,r,l,a,o,i,u){De=!1,Fe=null,Me.apply(je,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ve(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(a(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var o=l.alternate;if(null===o){if(null!==(r=l.return)){n=r;continue}break}if(l.child===o.child){for(o=l.child;o;){if(o===n)return He(l),e;if(o===r)return He(l),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=l,r=o;else{for(var i=!1,u=l.child;u;){if(u===n){i=!0,n=l,r=o;break}if(u===r){i=!0,r=l,n=o;break}u=u.sibling}if(!i){for(u=o.child;u;){if(u===n){i=!0,n=o,r=l;break}if(u===r){i=!0,r=o,n=l;break}u=u.sibling}if(!i)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Qe(e):null}function Qe(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Qe(e);if(null!==t)return t;e=e.sibling}return null}var qe=l.unstable_scheduleCallback,Ye=l.unstable_cancelCallback,Ge=l.unstable_shouldYield,Ke=l.unstable_requestPaint,Xe=l.unstable_now,Ze=l.unstable_getCurrentPriorityLevel,Je=l.unstable_ImmediatePriority,et=l.unstable_UserBlockingPriority,tt=l.unstable_NormalPriority,nt=l.unstable_LowPriority,rt=l.unstable_IdlePriority,lt=null,at=null,ot=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(it(e)/ut|0)|0},it=Math.log,ut=Math.LN2,st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var i=o&~l;0!==i?r=ft(i):0!==(a&=o)&&(r=ft(a))}else 0!==(o=n&~l)?r=ft(o):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&l)&&((l=r&-r)>=(a=t&-t)||16===l&&4194240&a))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)l=1<<(n=31-ot(t)),r|=e[n],t&=~l;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=st;return!(4194240&(st<<=1))&&(st=64),e}function gt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),l=1<<r;l&t|e[r]&t&&(e[r]|=t),n&=~l}}var bt=0;function St(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var wt,kt,Et,Ct,xt,_t=!1,Pt=[],Nt=null,zt=null,Tt=null,Rt=new Map,Lt=new Map,It=[],Ot="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Mt(e,t){switch(e){case"focusin":case"focusout":Nt=null;break;case"dragenter":case"dragleave":zt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Dt(e,t,n,r,l,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[l]},null!==t&&null!==(t=bl(t))&&kt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==l&&-1===t.indexOf(l)&&t.push(l),e)}function Ft(e){var t=yl(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ve(n)))return e.blockedOn=t,void xt(e.priority,(function(){Et(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function At(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Gt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bl(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Se=r,n.target.dispatchEvent(r),Se=null,t.shift()}return!0}function Ut(e,t,n){At(e)&&n.delete(t)}function jt(){_t=!1,null!==Nt&&At(Nt)&&(Nt=null),null!==zt&&At(zt)&&(zt=null),null!==Tt&&At(Tt)&&(Tt=null),Rt.forEach(Ut),Lt.forEach(Ut)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,jt)))}function $t(e){function t(t){return Bt(t,e)}if(0<Pt.length){Bt(Pt[0],e);for(var n=1;n<Pt.length;n++){var r=Pt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Nt&&Bt(Nt,e),null!==zt&&Bt(zt,e),null!==Tt&&Bt(Tt,e),Rt.forEach(t),Lt.forEach(t),n=0;n<It.length;n++)(r=It[n]).blockedOn===e&&(r.blockedOn=null);for(;0<It.length&&null===(n=It[0]).blockedOn;)Ft(n),null===n.blockedOn&&It.shift()}var Vt=S.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var l=bt,a=Vt.transition;Vt.transition=null;try{bt=1,qt(e,t,n,r)}finally{bt=l,Vt.transition=a}}function Qt(e,t,n,r){var l=bt,a=Vt.transition;Vt.transition=null;try{bt=4,qt(e,t,n,r)}finally{bt=l,Vt.transition=a}}function qt(e,t,n,r){if(Ht){var l=Gt(e,t,n,r);if(null===l)Hr(e,t,r,Yt,n),Mt(e,r);else if(function(e,t,n,r,l){switch(t){case"focusin":return Nt=Dt(Nt,e,t,n,r,l),!0;case"dragenter":return zt=Dt(zt,e,t,n,r,l),!0;case"mouseover":return Tt=Dt(Tt,e,t,n,r,l),!0;case"pointerover":var a=l.pointerId;return Rt.set(a,Dt(Rt.get(a)||null,e,t,n,r,l)),!0;case"gotpointercapture":return a=l.pointerId,Lt.set(a,Dt(Lt.get(a)||null,e,t,n,r,l)),!0}return!1}(l,e,t,n,r))r.stopPropagation();else if(Mt(e,r),4&t&&-1<Ot.indexOf(e)){for(;null!==l;){var a=bl(l);if(null!==a&&wt(a),null===(a=Gt(e,t,n,r))&&Hr(e,t,r,Yt,n),a===l)break;l=a}null!==l&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Yt=null;function Gt(e,t,n,r){if(Yt=null,null!==(e=yl(e=we(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ve(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Yt=e,null}function Kt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Xt=null,Zt=null,Jt=null;function en(){if(Jt)return Jt;var e,t,n=Zt,r=n.length,l="value"in Xt?Xt.value:Xt.textContent,a=l.length;for(e=0;e<r&&n[e]===l[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===l[a-t];t++);return Jt=l.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function ln(e){function t(t,n,r,l,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=l,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(l):l[o]);return this.isDefaultPrevented=(null!=l.defaultPrevented?l.defaultPrevented:!1===l.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return F(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,on,un,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cn=ln(sn),fn=F({},sn,{view:0,detail:0}),dn=ln(fn),pn=F({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,on=e.screenY-un.screenY):on=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:on}}),hn=ln(pn),mn=ln(F({},pn,{dataTransfer:0})),gn=ln(F({},fn,{relatedTarget:0})),vn=ln(F({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),yn=F({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=ln(yn),Sn=ln(F({},sn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},En={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=En[e])&&!!t[e]}function xn(){return Cn}var _n=F({},fn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Pn=ln(_n),Nn=ln(F({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),zn=ln(F({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xn})),Tn=ln(F({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=F({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=ln(Rn),In=[9,13,27,32],On=c&&"CompositionEvent"in window,Mn=null;c&&"documentMode"in document&&(Mn=document.documentMode);var Dn=c&&"TextEvent"in window&&!Mn,Fn=c&&(!On||Mn&&8<Mn&&11>=Mn),An=String.fromCharCode(32),Un=!1;function jn(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 Bn(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1,Vn={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 Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Vn[e.type]:"textarea"===t}function Wn(e,t,n,r){_e(r),0<(t=Qr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Qn=null,qn=null;function Yn(e){Ar(e,0)}function Gn(e){if(q(Sl(e)))return e}function Kn(e,t){if("change"===e)return t}var Xn=!1;if(c){var Zn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"==typeof er.oninput}Zn=Jn}else Zn=!1;Xn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Qn&&(Qn.detachEvent("onpropertychange",nr),qn=Qn=null)}function nr(e){if("value"===e.propertyName&&Gn(qn)){var t=[];Wn(t,qn,e,we(e)),Re(Yn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Qn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function lr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Gn(qn)}function ar(e,t){if("click"===e)return Gn(t)}function or(e,t){if("input"===e||"change"===e)return Gn(t)}var ir="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ur(e,t){if(ir(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var l=n[r];if(!f.call(t,l)||!ir(e[l],t[l]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Y();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Y((e=t.contentWindow).document)}return t}function pr(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)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var l=n.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l),!e.extend&&a>r&&(l=r,r=a,a=l),l=cr(n,a);var o=cr(n,r);l&&o&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=c&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,yr=null,br=!1;function Sr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==gr||gr!==Y(r)||(r="selectionStart"in(r=gr)&&pr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},yr&&ur(yr,r)||(yr=r,0<(r=Qr(vr,"onSelect")).length&&(t=new cn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Er={},Cr={};function xr(e){if(Er[e])return Er[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Cr)return Er[e]=n[t];return e}c&&(Cr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var _r=xr("animationend"),Pr=xr("animationiteration"),Nr=xr("animationstart"),zr=xr("transitionend"),Tr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){Tr.set(e,t),u(t,[e])}for(var Ir=0;Ir<Rr.length;Ir++){var Or=Rr[Ir];Lr(Or.toLowerCase(),"on"+(Or[0].toUpperCase()+Or.slice(1)))}Lr(_r,"onAnimationEnd"),Lr(Pr,"onAnimationIteration"),Lr(Nr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(zr,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Mr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Mr));function Fr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,l,o,i,u,s){if(Be.apply(this,arguments),De){if(!De)throw Error(a(198));var c=Fe;De=!1,Fe=null,Ae||(Ae=!0,Ue=c)}}(r,t,void 0,e),e.currentTarget=null}function Ar(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],l=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var i=r[o],u=i.instance,s=i.currentTarget;if(i=i.listener,u!==a&&l.isPropagationStopped())break e;Fr(l,i,s),a=u}else for(o=0;o<r.length;o++){if(u=(i=r[o]).instance,s=i.currentTarget,i=i.listener,u!==a&&l.isPropagationStopped())break e;Fr(l,i,s),a=u}}}if(Ae)throw e=Ue,Ae=!1,Ue=null,e}function Ur(e,t){var n=t[ml];void 0===n&&(n=t[ml]=new Set);var r=e+"__bubble";n.has(r)||(Vr(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),Vr(n,e,r,t)}var Br="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[Br]){e[Br]=!0,o.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||jr(t,!1,e),jr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Br]||(t[Br]=!0,jr("selectionchange",!1,t))}}function Vr(e,t,n,r){switch(Kt(t)){case 1:var l=Wt;break;case 4:l=Qt;break;default:l=qt}n=l.bind(null,t,n,e),l=void 0,!Ie||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(l=!0),r?void 0!==l?e.addEventListener(t,n,{capture:!0,passive:l}):e.addEventListener(t,n,!0):void 0!==l?e.addEventListener(t,n,{passive:l}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,l){var a=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var i=r.stateNode.containerInfo;if(i===l||8===i.nodeType&&i.parentNode===l)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&((u=o.stateNode.containerInfo)===l||8===u.nodeType&&u.parentNode===l))return;o=o.return}for(;null!==i;){if(null===(o=yl(i)))return;if(5===(u=o.tag)||6===u){r=a=o;continue e}i=i.parentNode}}r=r.return}Re((function(){var r=a,l=we(n),o=[];e:{var i=Tr.get(e);if(void 0!==i){var u=cn,s=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=Pn;break;case"focusin":s="focus",u=gn;break;case"focusout":s="blur",u=gn;break;case"beforeblur":case"afterblur":u=gn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=zn;break;case _r:case Pr:case Nr:u=vn;break;case zr:u=Tn;break;case"scroll":u=dn;break;case"wheel":u=Ln;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Nn}var c=!!(4&t),f=!c&&"scroll"===e,d=c?null!==i?i+"Capture":null:i;c=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&null!=(m=Le(h,d))&&c.push(Wr(h,m,p))),f)break;h=h.return}0<c.length&&(i=new u(i,s,null,n,l),o.push({event:i,listeners:c}))}}if(!(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(i="mouseover"===e||"pointerover"===e)||n===Se||!(s=n.relatedTarget||n.fromElement)||!yl(s)&&!s[hl])&&(u||i)&&(i=l.window===l?l:(i=l.ownerDocument)?i.defaultView||i.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?yl(s):null)&&(s!==(f=$e(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Nn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?i:Sl(u),p=null==s?i:Sl(s),(i=new c(m,h+"leave",u,n,l)).target=f,i.relatedTarget=p,m=null,yl(l)===r&&((c=new c(d,h+"enter",s,n,l)).target=p,c.relatedTarget=f,m=c),f=m,u&&s)e:{for(d=s,h=0,p=c=u;p;p=qr(p))h++;for(p=0,m=d;m;m=qr(m))p++;for(;0<h-p;)c=qr(c),h--;for(;0<p-h;)d=qr(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=qr(c),d=qr(d)}c=null}else c=null;null!==u&&Yr(o,i,u,c,!1),null!==s&&null!==f&&Yr(o,f,s,c,!0)}if("select"===(u=(i=r?Sl(r):window).nodeName&&i.nodeName.toLowerCase())||"input"===u&&"file"===i.type)var g=Kn;else if(Hn(i))if(Xn)g=or;else{g=lr;var v=rr}else(u=i.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(g=ar);switch(g&&(g=g(e,r))?Wn(o,g,n,l):(v&&v(e,i,r),"focusout"===e&&(v=i._wrapperState)&&v.controlled&&"number"===i.type&&ee(i,"number",i.value)),v=r?Sl(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(gr=v,vr=r,yr=null);break;case"focusout":yr=vr=gr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,Sr(o,n,l);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":Sr(o,n,l)}var y;if(On)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $n?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Fn&&"ko"!==n.locale&&($n||"onCompositionStart"!==b?"onCompositionEnd"===b&&$n&&(y=en()):(Zt="value"in(Xt=l)?Xt.value:Xt.textContent,$n=!0)),0<(v=Qr(r,b)).length&&(b=new Sn(b,e,null,n,l),o.push({event:b,listeners:v}),(y||null!==(y=Bn(n)))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return Bn(t);case"keypress":return 32!==t.which?null:(Un=!0,An);case"textInput":return(e=t.data)===An&&Un?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!On&&jn(e,t)?(e=en(),Jt=Zt=Xt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Fn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Qr(r,"onBeforeInput")).length&&(l=new Sn("onBeforeInput","beforeinput",null,n,l),o.push({event:l,listeners:r}),l.data=y)}Ar(o,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Qr(e,t){for(var n=t+"Capture",r=[];null!==e;){var l=e,a=l.stateNode;5===l.tag&&null!==a&&(l=a,null!=(a=Le(e,n))&&r.unshift(Wr(e,a,l)),null!=(a=Le(e,t))&&r.push(Wr(e,a,l))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Yr(e,t,n,r,l){for(var a=t._reactName,o=[];null!==n&&n!==r;){var i=n,u=i.alternate,s=i.stateNode;if(null!==u&&u===r)break;5===i.tag&&null!==s&&(i=s,l?null!=(u=Le(n,a))&&o.unshift(Wr(n,u,i)):l||null!=(u=Le(n,a))&&o.push(Wr(n,u,i))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Gr=/\r\n?/g,Kr=/\u0000|\uFFFD/g;function Xr(e){return("string"==typeof e?e:""+e).replace(Gr,"\n").replace(Kr,"")}function Zr(e,t,n){if(t=Xr(t),Xr(e)!==t&&n)throw Error(a(425))}function Jr(){}var el=null,tl=null;function nl(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var rl="function"==typeof setTimeout?setTimeout:void 0,ll="function"==typeof clearTimeout?clearTimeout:void 0,al="function"==typeof Promise?Promise:void 0,ol="function"==typeof queueMicrotask?queueMicrotask:void 0!==al?function(e){return al.resolve(null).then(e).catch(il)}:rl;function il(e){setTimeout((function(){throw e}))}function ul(e,t){var n=t,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&8===l.nodeType)if("/$"===(n=l.data)){if(0===r)return e.removeChild(l),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=l}while(n);$t(t)}function sl(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function cl(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fl=Math.random().toString(36).slice(2),dl="__reactFiber$"+fl,pl="__reactProps$"+fl,hl="__reactContainer$"+fl,ml="__reactEvents$"+fl,gl="__reactListeners$"+fl,vl="__reactHandles$"+fl;function yl(e){var t=e[dl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hl]||n[dl]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=cl(e);null!==e;){if(n=e[dl])return n;e=cl(e)}return t}n=(e=n).parentNode}return null}function bl(e){return!(e=e[dl]||e[hl])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Sl(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function wl(e){return e[pl]||null}var kl=[],El=-1;function Cl(e){return{current:e}}function xl(e){0>El||(e.current=kl[El],kl[El]=null,El--)}function _l(e,t){El++,kl[El]=e.current,e.current=t}var Pl={},Nl=Cl(Pl),zl=Cl(!1),Tl=Pl;function Rl(e,t){var n=e.type.contextTypes;if(!n)return Pl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in n)a[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Ll(e){return null!=e.childContextTypes}function Il(){xl(zl),xl(Nl)}function Ol(e,t,n){if(Nl.current!==Pl)throw Error(a(168));_l(Nl,t),_l(zl,n)}function Ml(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var l in r=r.getChildContext())if(!(l in t))throw Error(a(108,V(e)||"Unknown",l));return F({},n,r)}function Dl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Pl,Tl=Nl.current,_l(Nl,e),_l(zl,zl.current),!0}function Fl(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ml(e,t,Tl),r.__reactInternalMemoizedMergedChildContext=e,xl(zl),xl(Nl),_l(Nl,e)):xl(zl),_l(zl,n)}var Al=null,Ul=!1,jl=!1;function Bl(e){null===Al?Al=[e]:Al.push(e)}function $l(){if(!jl&&null!==Al){jl=!0;var e=0,t=bt;try{var n=Al;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Al=null,Ul=!1}catch(t){throw null!==Al&&(Al=Al.slice(e+1)),qe(Je,$l),t}finally{bt=t,jl=!1}}return null}var Vl=[],Hl=0,Wl=null,Ql=0,ql=[],Yl=0,Gl=null,Kl=1,Xl="";function Zl(e,t){Vl[Hl++]=Ql,Vl[Hl++]=Wl,Wl=e,Ql=t}function Jl(e,t,n){ql[Yl++]=Kl,ql[Yl++]=Xl,ql[Yl++]=Gl,Gl=e;var r=Kl;e=Xl;var l=32-ot(r)-1;r&=~(1<<l),n+=1;var a=32-ot(t)+l;if(30<a){var o=l-l%5;a=(r&(1<<o)-1).toString(32),r>>=o,l-=o,Kl=1<<32-ot(t)+l|n<<l|r,Xl=a+e}else Kl=1<<a|n<<l|r,Xl=e}function ea(e){null!==e.return&&(Zl(e,1),Jl(e,1,0))}function ta(e){for(;e===Wl;)Wl=Vl[--Hl],Vl[Hl]=null,Ql=Vl[--Hl],Vl[Hl]=null;for(;e===Gl;)Gl=ql[--Yl],ql[Yl]=null,Xl=ql[--Yl],ql[Yl]=null,Kl=ql[--Yl],ql[Yl]=null}var na=null,ra=null,la=!1,aa=null;function oa(e,t){var n=Ls(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ia(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,na=e,ra=sl(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,na=e,ra=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Gl?{id:Kl,overflow:Xl}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Ls(18,null,null,0)).stateNode=t,n.return=e,e.child=n,na=e,ra=null,!0);default:return!1}}function ua(e){return!(!(1&e.mode)||128&e.flags)}function sa(e){if(la){var t=ra;if(t){var n=t;if(!ia(e,t)){if(ua(e))throw Error(a(418));t=sl(n.nextSibling);var r=na;t&&ia(e,t)?oa(r,n):(e.flags=-4097&e.flags|2,la=!1,na=e)}}else{if(ua(e))throw Error(a(418));e.flags=-4097&e.flags|2,la=!1,na=e}}}function ca(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;na=e}function fa(e){if(e!==na)return!1;if(!la)return ca(e),la=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nl(e.type,e.memoizedProps)),t&&(t=ra)){if(ua(e))throw da(),Error(a(418));for(;t;)oa(e,t),t=sl(t.nextSibling)}if(ca(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ra=sl(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ra=null}}else ra=na?sl(e.stateNode.nextSibling):null;return!0}function da(){for(var e=ra;e;)e=sl(e.nextSibling)}function pa(){ra=na=null,la=!1}function ha(e){null===aa?aa=[e]:aa.push(e)}var ma=S.ReactCurrentBatchConfig;function ga(e,t){if(e&&e.defaultProps){for(var n in t=F({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var va=Cl(null),ya=null,ba=null,Sa=null;function wa(){Sa=ba=ya=null}function ka(e){var t=va.current;xl(va),e._currentValue=t}function Ea(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ca(e,t){ya=e,Sa=ba=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(Si=!0),e.firstContext=null)}function xa(e){var t=e._currentValue;if(Sa!==e)if(e={context:e,memoizedValue:t,next:null},null===ba){if(null===ya)throw Error(a(308));ba=e,ya.dependencies={lanes:0,firstContext:e}}else ba=ba.next=e;return t}var _a=null;function Pa(e){null===_a?_a=[e]:_a.push(e)}function Na(e,t,n,r){var l=t.interleaved;return null===l?(n.next=n,Pa(t)):(n.next=l.next,l.next=n),t.interleaved=n,za(e,r)}function za(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ta=!1;function Ra(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function La(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ia(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&zu){var l=r.pending;return null===l?t.next=t:(t.next=l.next,l.next=t),r.pending=t,za(e,n)}return null===(l=r.interleaved)?(t.next=t,Pa(r)):(t.next=l.next,l.next=t),r.interleaved=t,za(e,n)}function Ma(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}function Da(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var l=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?l=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?l=a=t:a=a.next=t}else l=a=t;return n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Fa(e,t,n,r){var l=e.updateQueue;Ta=!1;var a=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(null!==i){l.shared.pending=null;var u=i,s=u.next;u.next=null,null===o?a=s:o.next=s,o=u;var c=e.alternate;null!==c&&(i=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===i?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=u)}if(null!==a){var f=l.baseState;for(o=0,c=s=u=null,i=a;;){var d=i.lane,p=i.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(d=t,p=n,m.tag){case 1:if("function"==typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null==(d="function"==typeof(h=m.payload)?h.call(p,f,d):h))break e;f=F({},f,d);break e;case 2:Ta=!0}}null!==i.callback&&0!==i.lane&&(e.flags|=64,null===(d=l.effects)?l.effects=[i]:d.push(i))}else p={eventTime:p,lane:d,tag:i.tag,payload:i.payload,callback:i.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,o|=d;if(null===(i=i.next)){if(null===(i=l.shared.pending))break;i=(d=i).next,d.next=null,l.lastBaseUpdate=d,l.shared.pending=null}}if(null===c&&(u=f),l.baseState=u,l.firstBaseUpdate=s,l.lastBaseUpdate=c,null!==(t=l.shared.interleaved)){l=t;do{o|=l.lane,l=l.next}while(l!==t)}else null===a&&(l.shared.lanes=0);Fu|=o,e.lanes=o,e.memoizedState=f}}function Aa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(null!==l){if(r.callback=null,r=n,"function"!=typeof l)throw Error(a(191,l));l.call(r)}}}var Ua=(new r.Component).refs;function ja(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:F({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ba={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ts(),l=ns(e),a=Ia(r,l);a.payload=t,null!=n&&(a.callback=n),null!==(t=Oa(e,a,l))&&(rs(t,e,l,r),Ma(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ts(),l=ns(e),a=Ia(r,l);a.tag=1,a.payload=t,null!=n&&(a.callback=n),null!==(t=Oa(e,a,l))&&(rs(t,e,l,r),Ma(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ts(),r=ns(e),l=Ia(n,r);l.tag=2,null!=t&&(l.callback=t),null!==(t=Oa(e,l,r))&&(rs(t,e,r,n),Ma(t,e,r))}};function $a(e,t,n,r,l,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(l,a))}function Va(e,t,n){var r=!1,l=Pl,a=t.contextType;return"object"==typeof a&&null!==a?a=xa(a):(l=Ll(t)?Tl:Nl.current,a=(r=null!=(r=t.contextTypes))?Rl(e,l):Pl),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ba,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ha(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ba.enqueueReplaceState(t,t.state,null)}function Wa(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=Ua,Ra(e);var a=t.contextType;"object"==typeof a&&null!==a?l.context=xa(a):(a=Ll(t)?Tl:Nl.current,l.context=Rl(e,a)),l.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(ja(e,t,a,n),l.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof l.getSnapshotBeforeUpdate||"function"!=typeof l.UNSAFE_componentWillMount&&"function"!=typeof l.componentWillMount||(t=l.state,"function"==typeof l.componentWillMount&&l.componentWillMount(),"function"==typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&Ba.enqueueReplaceState(l,l.state,null),Fa(e,n,l,r),l.state=e.memoizedState),"function"==typeof l.componentDidMount&&(e.flags|=4194308)}function Qa(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var l=r,o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=l.refs;t===Ua&&(t=l.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function qa(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ya(e){return(0,e._init)(e._payload)}function Ga(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=Os(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function i(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=As(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function s(e,t,n,r){var a=n.type;return a===E?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===L&&Ya(a)===t.type)?((r=l(t,n.props)).ref=Qa(e,t,n),r.return=e,r):((r=Ms(n.type,n.key,n.props,null,e.mode,r)).ref=Qa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Us(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Ds(n,e.mode,r,a)).return=e,t):((t=l(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=As(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Ms(t.type,t.key,t.props,null,e.mode,n)).ref=Qa(e,null,t),n.return=e,n;case k:return(t=Us(t,e.mode,n)).return=e,t;case L:return d(e,(0,t._init)(t._payload),n)}if(te(t)||M(t))return(t=Ds(t,e.mode,n,null)).return=e,t;qa(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==l?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===l?s(e,t,n,r):null;case k:return n.key===l?c(e,t,n,r):null;case L:return p(e,t,(l=n._init)(n._payload),r)}if(te(n)||M(n))return null!==l?null:f(e,t,n,r,null);qa(e,n)}return null}function h(e,t,n,r,l){if("string"==typeof r&&""!==r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,l);if("object"==typeof r&&null!==r){switch(r.$$typeof){case w:return s(t,e=e.get(null===r.key?n:r.key)||null,r,l);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,l);case L:return h(e,t,n,(0,r._init)(r._payload),l)}if(te(r)||M(r))return f(t,e=e.get(n)||null,r,l,null);qa(t,r)}return null}function m(l,a,i,u){for(var s=null,c=null,f=a,m=a=0,g=null;null!==f&&m<i.length;m++){f.index>m?(g=f,f=null):g=f.sibling;var v=p(l,f,i[m],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(l,f),a=o(v,a,m),null===c?s=v:c.sibling=v,c=v,f=g}if(m===i.length)return n(l,f),la&&Zl(l,m),s;if(null===f){for(;m<i.length;m++)null!==(f=d(l,i[m],u))&&(a=o(f,a,m),null===c?s=f:c.sibling=f,c=f);return la&&Zl(l,m),s}for(f=r(l,f);m<i.length;m++)null!==(g=h(f,l,m,i[m],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),a=o(g,a,m),null===c?s=g:c.sibling=g,c=g);return e&&f.forEach((function(e){return t(l,e)})),la&&Zl(l,m),s}function g(l,i,u,s){var c=M(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,m=i,g=i=0,v=null,y=u.next();null!==m&&!y.done;g++,y=u.next()){m.index>g?(v=m,m=null):v=m.sibling;var b=p(l,m,y.value,s);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(l,m),i=o(b,i,g),null===f?c=b:f.sibling=b,f=b,m=v}if(y.done)return n(l,m),la&&Zl(l,g),c;if(null===m){for(;!y.done;g++,y=u.next())null!==(y=d(l,y.value,s))&&(i=o(y,i,g),null===f?c=y:f.sibling=y,f=y);return la&&Zl(l,g),c}for(m=r(l,m);!y.done;g++,y=u.next())null!==(y=h(m,l,g,y.value,s))&&(e&&null!==y.alternate&&m.delete(null===y.key?g:y.key),i=o(y,i,g),null===f?c=y:f.sibling=y,f=y);return e&&m.forEach((function(e){return t(l,e)})),la&&Zl(l,g),c}return function e(r,a,o,u){if("object"==typeof o&&null!==o&&o.type===E&&null===o.key&&(o=o.props.children),"object"==typeof o&&null!==o){switch(o.$$typeof){case w:e:{for(var s=o.key,c=a;null!==c;){if(c.key===s){if((s=o.type)===E){if(7===c.tag){n(r,c.sibling),(a=l(c,o.props.children)).return=r,r=a;break e}}else if(c.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===L&&Ya(s)===c.type){n(r,c.sibling),(a=l(c,o.props)).ref=Qa(r,c,o),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===E?((a=Ds(o.props.children,r.mode,u,o.key)).return=r,r=a):((u=Ms(o.type,o.key,o.props,null,r.mode,u)).ref=Qa(r,a,o),u.return=r,r=u)}return i(r);case k:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=l(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Us(o,r.mode,u)).return=r,r=a}return i(r);case L:return e(r,a,(c=o._init)(o._payload),u)}if(te(o))return m(r,a,o,u);if(M(o))return g(r,a,o,u);qa(r,o)}return"string"==typeof o&&""!==o||"number"==typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=l(a,o)).return=r,r=a):(n(r,a),(a=As(o,r.mode,u)).return=r,r=a),i(r)):n(r,a)}}var Ka=Ga(!0),Xa=Ga(!1),Za={},Ja=Cl(Za),eo=Cl(Za),to=Cl(Za);function no(e){if(e===Za)throw Error(a(174));return e}function ro(e,t){switch(_l(to,t),_l(eo,e),_l(Ja,Za),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}xl(Ja),_l(Ja,t)}function lo(){xl(Ja),xl(eo),xl(to)}function ao(e){no(to.current);var t=no(Ja.current),n=ue(t,e.type);t!==n&&(_l(eo,e),_l(Ja,n))}function oo(e){eo.current===e&&(xl(Ja),xl(eo))}var io=Cl(0);function uo(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(128&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 so=[];function co(){for(var e=0;e<so.length;e++)so[e]._workInProgressVersionPrimary=null;so.length=0}var fo=S.ReactCurrentDispatcher,po=S.ReactCurrentBatchConfig,ho=0,mo=null,go=null,vo=null,yo=!1,bo=!1,So=0,wo=0;function ko(){throw Error(a(321))}function Eo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ir(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,l,o){if(ho=o,mo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fo.current=null===e||null===e.memoizedState?ii:ui,e=n(r,l),bo){o=0;do{if(bo=!1,So=0,25<=o)throw Error(a(301));o+=1,vo=go=null,t.updateQueue=null,fo.current=si,e=n(r,l)}while(bo)}if(fo.current=oi,t=null!==go&&null!==go.next,ho=0,vo=go=mo=null,yo=!1,t)throw Error(a(300));return e}function xo(){var e=0!==So;return So=0,e}function _o(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===vo?mo.memoizedState=vo=e:vo=vo.next=e,vo}function Po(){if(null===go){var e=mo.alternate;e=null!==e?e.memoizedState:null}else e=go.next;var t=null===vo?mo.memoizedState:vo.next;if(null!==t)vo=t,go=e;else{if(null===e)throw Error(a(310));e={memoizedState:(go=e).memoizedState,baseState:go.baseState,baseQueue:go.baseQueue,queue:go.queue,next:null},null===vo?mo.memoizedState=vo=e:vo=vo.next=e}return vo}function No(e,t){return"function"==typeof t?t(e):t}function zo(e){var t=Po(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=go,l=r.baseQueue,o=n.pending;if(null!==o){if(null!==l){var i=l.next;l.next=o.next,o.next=i}r.baseQueue=l=o,n.pending=null}if(null!==l){o=l.next,r=r.baseState;var u=i=null,s=null,c=o;do{var f=c.lane;if((ho&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,i=r):s=s.next=d,mo.lanes|=f,Fu|=f}c=c.next}while(null!==c&&c!==o);null===s?i=r:s.next=u,ir(r,t.memoizedState)||(Si=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){l=e;do{o=l.lane,mo.lanes|=o,Fu|=o,l=l.next}while(l!==e)}else null===l&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function To(e){var t=Po(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,o=t.memoizedState;if(null!==l){n.pending=null;var i=l=l.next;do{o=e(o,i.action),i=i.next}while(i!==l);ir(o,t.memoizedState)||(Si=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ro(){}function Lo(e,t){var n=mo,r=Po(),l=t(),o=!ir(r.memoizedState,l);if(o&&(r.memoizedState=l,Si=!0),r=r.queue,Ho(Mo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==vo&&1&vo.memoizedState.tag){if(n.flags|=2048,Uo(9,Oo.bind(null,n,r,l,t),void 0,null),null===Tu)throw Error(a(349));30&ho||Io(n,t,l)}return l}function Io(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oo(e,t,n,r){t.value=n,t.getSnapshot=r,Do(t)&&Fo(e)}function Mo(e,t,n){return n((function(){Do(t)&&Fo(e)}))}function Do(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ir(e,n)}catch(e){return!0}}function Fo(e){var t=za(e,1);null!==t&&rs(t,e,1,-1)}function Ao(e){var t=_o();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t.queue=e,e=e.dispatch=ni.bind(null,mo,e),[t.memoizedState,e]}function Uo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=mo.updateQueue)?(t={lastEffect:null,stores:null},mo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function jo(){return Po().memoizedState}function Bo(e,t,n,r){var l=_o();mo.flags|=e,l.memoizedState=Uo(1|t,n,void 0,void 0===r?null:r)}function $o(e,t,n,r){var l=Po();r=void 0===r?null:r;var a=void 0;if(null!==go){var o=go.memoizedState;if(a=o.destroy,null!==r&&Eo(r,o.deps))return void(l.memoizedState=Uo(t,n,a,r))}mo.flags|=e,l.memoizedState=Uo(1|t,n,a,r)}function Vo(e,t){return Bo(8390656,8,e,t)}function Ho(e,t){return $o(2048,8,e,t)}function Wo(e,t){return $o(4,2,e,t)}function Qo(e,t){return $o(4,4,e,t)}function qo(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Yo(e,t,n){return n=null!=n?n.concat([e]):null,$o(4,4,qo.bind(null,t,e),n)}function Go(){}function Ko(e,t){var n=Po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Eo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xo(e,t){var n=Po();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Eo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Zo(e,t,n){return 21&ho?(ir(n,t)||(n=mt(),mo.lanes|=n,Fu|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Si=!0),e.memoizedState=n)}function Jo(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{bt=n,po.transition=r}}function ei(){return Po().memoizedState}function ti(e,t,n){var r=ns(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},ri(e)?li(t,n):null!==(n=Na(e,t,n,r))&&(rs(n,e,r,ts()),ai(n,t,r))}function ni(e,t,n){var r=ns(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(ri(e))li(t,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,i=a(o,n);if(l.hasEagerState=!0,l.eagerState=i,ir(i,o)){var u=t.interleaved;return null===u?(l.next=l,Pa(t)):(l.next=u.next,u.next=l),void(t.interleaved=l)}}catch(e){}null!==(n=Na(e,t,l,r))&&(rs(n,e,r,l=ts()),ai(n,t,r))}}function ri(e){var t=e.alternate;return e===mo||null!==t&&t===mo}function li(e,t){bo=yo=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function ai(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,yt(e,n)}}var oi={readContext:xa,useCallback:ko,useContext:ko,useEffect:ko,useImperativeHandle:ko,useInsertionEffect:ko,useLayoutEffect:ko,useMemo:ko,useReducer:ko,useRef:ko,useState:ko,useDebugValue:ko,useDeferredValue:ko,useTransition:ko,useMutableSource:ko,useSyncExternalStore:ko,useId:ko,unstable_isNewReconciler:!1},ii={readContext:xa,useCallback:function(e,t){return _o().memoizedState=[e,void 0===t?null:t],e},useContext:xa,useEffect:Vo,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Bo(4194308,4,qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Bo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Bo(4,2,e,t)},useMemo:function(e,t){var n=_o();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_o();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ti.bind(null,mo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_o().memoizedState=e},useState:Ao,useDebugValue:Go,useDeferredValue:function(e){return _o().memoizedState=e},useTransition:function(){var e=Ao(!1),t=e[0];return e=Jo.bind(null,e[1]),_o().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=mo,l=_o();if(la){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===Tu)throw Error(a(349));30&ho||Io(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,Vo(Mo.bind(null,r,o,e),[e]),r.flags|=2048,Uo(9,Oo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=_o(),t=Tu.identifierPrefix;if(la){var n=Xl;t=":"+t+"R"+(n=(Kl&~(1<<32-ot(Kl)-1)).toString(32)+n),0<(n=So++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ui={readContext:xa,useCallback:Ko,useContext:xa,useEffect:Ho,useImperativeHandle:Yo,useInsertionEffect:Wo,useLayoutEffect:Qo,useMemo:Xo,useReducer:zo,useRef:jo,useState:function(){return zo(No)},useDebugValue:Go,useDeferredValue:function(e){return Zo(Po(),go.memoizedState,e)},useTransition:function(){return[zo(No)[0],Po().memoizedState]},useMutableSource:Ro,useSyncExternalStore:Lo,useId:ei,unstable_isNewReconciler:!1},si={readContext:xa,useCallback:Ko,useContext:xa,useEffect:Ho,useImperativeHandle:Yo,useInsertionEffect:Wo,useLayoutEffect:Qo,useMemo:Xo,useReducer:To,useRef:jo,useState:function(){return To(No)},useDebugValue:Go,useDeferredValue:function(e){var t=Po();return null===go?t.memoizedState=e:Zo(t,go.memoizedState,e)},useTransition:function(){return[To(No)[0],Po().memoizedState]},useMutableSource:Ro,useSyncExternalStore:Lo,useId:ei,unstable_isNewReconciler:!1};function ci(e,t){try{var n="",r=t;do{n+=B(r),r=r.return}while(r);var l=n}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:l,digest:null}}function fi(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function di(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var pi="function"==typeof WeakMap?WeakMap:Map;function hi(e,t,n){(n=Ia(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wu||(Wu=!0,Qu=r),di(0,t)},n}function mi(e,t,n){(n=Ia(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=t.value;n.payload=function(){return r(l)},n.callback=function(){di(0,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(n.callback=function(){di(0,t),"function"!=typeof r&&(null===qu?qu=new Set([this]):qu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gi(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new pi;var l=new Set;r.set(t,l)}else void 0===(l=r.get(t))&&(l=new Set,r.set(t,l));l.has(n)||(l.add(n),e=_s.bind(null,e,t,n),t.then(e,e))}function vi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function yi(e,t,n,r,l){return 1&e.mode?(e.flags|=65536,e.lanes=l,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ia(-1,1)).tag=2,Oa(n,t,1))),n.lanes|=1),e)}var bi=S.ReactCurrentOwner,Si=!1;function wi(e,t,n,r){t.child=null===e?Xa(t,null,n,r):Ka(t,e.child,n,r)}function ki(e,t,n,r,l){n=n.render;var a=t.ref;return Ca(t,l),r=Co(e,t,n,r,a,l),n=xo(),null===e||Si?(la&&n&&ea(t),t.flags|=1,wi(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Wi(e,t,l))}function Ei(e,t,n,r,l){if(null===e){var a=n.type;return"function"!=typeof a||Is(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ms(n.type,null,r,t,t.mode,l)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ci(e,t,a,r,l))}if(a=e.child,0===(e.lanes&l)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)return Wi(e,t,l)}return t.flags|=1,(e=Os(a,r)).ref=t.ref,e.return=t,t.child=e}function Ci(e,t,n,r,l){if(null!==e){var a=e.memoizedProps;if(ur(a,r)&&e.ref===t.ref){if(Si=!1,t.pendingProps=r=a,0===(e.lanes&l))return t.lanes=e.lanes,Wi(e,t,l);131072&e.flags&&(Si=!0)}}return Pi(e,t,n,r,l)}function xi(e,t,n){var r=t.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_l(Ou,Iu),Iu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==a?a.baseLanes:n,_l(Ou,Iu),Iu|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_l(Ou,Iu),Iu|=n;else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,_l(Ou,Iu),Iu|=r;return wi(e,t,l,n),t.child}function _i(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Pi(e,t,n,r,l){var a=Ll(n)?Tl:Nl.current;return a=Rl(t,a),Ca(t,l),n=Co(e,t,n,r,a,l),r=xo(),null===e||Si?(la&&r&&ea(t),t.flags|=1,wi(e,t,n,l),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l,Wi(e,t,l))}function Ni(e,t,n,r,l){if(Ll(n)){var a=!0;Dl(t)}else a=!1;if(Ca(t,l),null===t.stateNode)Hi(e,t),Va(t,n,r),Wa(t,n,r,l),r=!0;else if(null===e){var o=t.stateNode,i=t.memoizedProps;o.props=i;var u=o.context,s=n.contextType;s="object"==typeof s&&null!==s?xa(s):Rl(t,s=Ll(n)?Tl:Nl.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;f||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==r||u!==s)&&Ha(t,o,r,s),Ta=!1;var d=t.memoizedState;o.state=d,Fa(t,r,o,l),u=t.memoizedState,i!==r||d!==u||zl.current||Ta?("function"==typeof c&&(ja(t,n,c,r),u=t.memoizedState),(i=Ta||$a(t,n,i,r,d,u,s))?(f||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.flags|=4194308)):("function"==typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),o.props=r,o.state=u,o.context=s,r=i):("function"==typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,La(e,t),i=t.memoizedProps,s=t.type===t.elementType?i:ga(t.type,i),o.props=s,f=t.pendingProps,d=o.context,u="object"==typeof(u=n.contextType)&&null!==u?xa(u):Rl(t,u=Ll(n)?Tl:Nl.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(i!==f||d!==u)&&Ha(t,o,r,u),Ta=!1,d=t.memoizedState,o.state=d,Fa(t,r,o,l);var h=t.memoizedState;i!==f||d!==h||zl.current||Ta?("function"==typeof p&&(ja(t,n,p,r),h=t.memoizedState),(s=Ta||$a(t,n,s,r,d,h,u)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,u),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,u)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=u,r=s):("function"!=typeof o.componentDidUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||i===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return zi(e,t,n,r,a,l)}function zi(e,t,n,r,l,a){_i(e,t);var o=!!(128&t.flags);if(!r&&!o)return l&&Fl(t,n,!1),Wi(e,t,a);r=t.stateNode,bi.current=t;var i=o&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Ka(t,e.child,null,a),t.child=Ka(t,null,i,a)):wi(e,t,i,a),t.memoizedState=r.state,l&&Fl(t,n,!0),t.child}function Ti(e){var t=e.stateNode;t.pendingContext?Ol(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ol(0,t.context,!1),ro(e,t.containerInfo)}function Ri(e,t,n,r,l){return pa(),ha(l),t.flags|=256,wi(e,t,n,r),t.child}var Li,Ii,Oi,Mi,Di={dehydrated:null,treeContext:null,retryLane:0};function Fi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ai(e,t,n){var r,l=t.pendingProps,o=io.current,i=!1,u=!!(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&!!(2&o)),r?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),_l(io,1&o),null===e)return sa(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(u=l.children,e=l.fallback,i?(l=t.mode,i=t.child,u={mode:"hidden",children:u},1&l||null===i?i=Fs(u,l,0,null):(i.childLanes=0,i.pendingProps=u),e=Ds(e,l,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Fi(n),t.memoizedState=Di,e):Ui(t,u));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,l,o,i){if(n)return 256&t.flags?(t.flags&=-257,ji(e,t,i,r=fi(Error(a(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,l=t.mode,r=Fs({mode:"visible",children:r.children},l,0,null),(o=Ds(o,l,i,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,1&t.mode&&Ka(t,e.child,null,i),t.child.memoizedState=Fi(i),t.memoizedState=Di,o);if(!(1&t.mode))return ji(e,t,i,null);if("$!"===l.data){if(r=l.nextSibling&&l.nextSibling.dataset)var u=r.dgst;return r=u,ji(e,t,i,r=fi(o=Error(a(419)),r,void 0))}if(u=0!==(i&e.childLanes),Si||u){if(null!==(r=Tu)){switch(i&-i){case 4:l=2;break;case 16:l=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:l=32;break;case 536870912:l=268435456;break;default:l=0}0!==(l=0!==(l&(r.suspendedLanes|i))?0:l)&&l!==o.retryLane&&(o.retryLane=l,za(e,l),rs(r,e,l,-1))}return gs(),ji(e,t,i,r=fi(Error(a(421))))}return"$?"===l.data?(t.flags|=128,t.child=e.child,t=Ns.bind(null,e),l._reactRetry=t,null):(e=o.treeContext,ra=sl(l.nextSibling),na=t,la=!0,aa=null,null!==e&&(ql[Yl++]=Kl,ql[Yl++]=Xl,ql[Yl++]=Gl,Kl=e.id,Xl=e.overflow,Gl=t),(t=Ui(t,r.children)).flags|=4096,t)}(e,t,u,l,r,o,n);if(i){i=l.fallback,u=t.mode,r=(o=e.child).sibling;var s={mode:"hidden",children:l.children};return 1&u||t.child===o?(l=Os(o,s)).subtreeFlags=14680064&o.subtreeFlags:((l=t.child).childLanes=0,l.pendingProps=s,t.deletions=null),null!==r?i=Os(r,i):(i=Ds(i,u,n,null)).flags|=2,i.return=t,l.return=t,l.sibling=i,t.child=l,l=i,i=t.child,u=null===(u=e.child.memoizedState)?Fi(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},i.memoizedState=u,i.childLanes=e.childLanes&~n,t.memoizedState=Di,l}return e=(i=e.child).sibling,l=Os(i,{mode:"visible",children:l.children}),!(1&t.mode)&&(l.lanes=n),l.return=t,l.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=l,t.memoizedState=null,l}function Ui(e,t){return(t=Fs({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function ji(e,t,n,r){return null!==r&&ha(r),Ka(t,e.child,null,n),(e=Ui(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bi(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ea(e.return,t,n)}function $i(e,t,n,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:l}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=l)}function Vi(e,t,n){var r=t.pendingProps,l=r.revealOrder,a=r.tail;if(wi(e,t,r.children,n),2&(r=io.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bi(e,n,t);else if(19===e.tag)Bi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_l(io,r),1&t.mode)switch(l){case"forwards":for(n=t.child,l=null;null!==n;)null!==(e=n.alternate)&&null===uo(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),$i(t,!1,l,n,a);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===uo(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}$i(t,!0,n,null,a);break;case"together":$i(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Hi(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Fu|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Os(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Os(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qi(e,t){if(!la)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qi(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=14680064&l.subtreeFlags,r|=14680064&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)n|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Yi(e,t,n){var r=t.pendingProps;switch(ta(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qi(t),null;case 1:case 17:return Ll(t.type)&&Il(),qi(t),null;case 3:return r=t.stateNode,lo(),xl(zl),xl(Nl),co(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fa(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==aa&&(is(aa),aa=null))),Ii(e,t),qi(t),null;case 5:oo(t);var l=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Oi(e,t,n,r,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return qi(t),null}if(e=no(Ja.current),fa(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[dl]=t,r[pl]=o,e=!!(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(l=0;l<Mr.length;l++)Ur(Mr[l],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":K(r,o),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ur("invalid",r);break;case"textarea":le(r,o),Ur("invalid",r)}for(var u in ye(n,o),l=null,o)if(o.hasOwnProperty(u)){var s=o[u];"children"===u?"string"==typeof s?r.textContent!==s&&(!0!==o.suppressHydrationWarning&&Zr(r.textContent,s,e),l=["children",s]):"number"==typeof s&&r.textContent!==""+s&&(!0!==o.suppressHydrationWarning&&Zr(r.textContent,s,e),l=["children",""+s]):i.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Ur("scroll",r)}switch(n){case"input":Q(r),J(r,o,!0);break;case"textarea":Q(r),oe(r);break;case"select":case"option":break;default:"function"==typeof o.onClick&&(r.onclick=Jr)}r=l,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===l.nodeType?l:l.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=ie(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[dl]=t,e[pl]=r,Li(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),l=r;break;case"iframe":case"object":case"embed":Ur("load",e),l=r;break;case"video":case"audio":for(l=0;l<Mr.length;l++)Ur(Mr[l],e);l=r;break;case"source":Ur("error",e),l=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),l=r;break;case"details":Ur("toggle",e),l=r;break;case"input":K(e,r),l=G(e,r),Ur("invalid",e);break;case"option":default:l=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},l=F({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":le(e,r),l=re(e,r),Ur("invalid",e)}for(o in ye(n,l),s=l)if(s.hasOwnProperty(o)){var c=s[o];"style"===o?ge(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"==typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"==typeof c&&de(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(i.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Ur("scroll",e):null!=c&&b(e,o,c,u))}switch(n){case"input":Q(e),J(e,r,!1);break;case"textarea":Q(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=Jr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qi(t),null;case 6:if(e&&null!=t.stateNode)Mi(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));if(n=no(to.current),no(Ja.current),fa(t)){if(r=t.stateNode,n=t.memoizedProps,r[dl]=t,(o=r.nodeValue!==n)&&null!==(e=na))switch(e.tag){case 3:Zr(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,!!(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[dl]=t,t.stateNode=r}return qi(t),null;case 13:if(xl(io),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(la&&null!==ra&&1&t.mode&&!(128&t.flags))da(),pa(),t.flags|=98560,o=!1;else if(o=fa(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(a(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(a(317));o[dl]=t}else pa(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qi(t),o=!1}else null!==aa&&(is(aa),aa=null),o=!0;if(!o)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!=(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&io.current?0===Mu&&(Mu=3):gs())),null!==t.updateQueue&&(t.flags|=4),qi(t),null);case 4:return lo(),Ii(e,t),null===e&&$r(t.stateNode.containerInfo),qi(t),null;case 10:return ka(t.type._context),qi(t),null;case 19:if(xl(io),null===(o=t.memoizedState))return qi(t),null;if(r=!!(128&t.flags),null===(u=o.rendering))if(r)Qi(o,!1);else{if(0!==Mu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=uo(e))){for(t.flags|=128,Qi(o,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(u=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,e=u.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _l(io,1&io.current|2),t.child}e=e.sibling}null!==o.tail&&Xe()>Vu&&(t.flags|=128,r=!0,Qi(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=uo(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Qi(o,!0),null===o.tail&&"hidden"===o.tailMode&&!u.alternate&&!la)return qi(t),null}else 2*Xe()-o.renderingStartTime>Vu&&1073741824!==n&&(t.flags|=128,r=!0,Qi(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=o.last)?n.sibling=u:t.child=u,o.last=u)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Xe(),t.sibling=null,n=io.current,_l(io,r?1&n|2:1&n),t):(qi(t),null);case 22:case 23:return ds(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Iu)&&(qi(t),6&t.subtreeFlags&&(t.flags|=8192)):qi(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}function Gi(e,t){switch(ta(t),t.tag){case 1:return Ll(t.type)&&Il(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return lo(),xl(zl),xl(Nl),co(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(xl(io),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));pa()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return xl(io),null;case 4:return lo(),null;case 10:return ka(t.type._context),null;case 22:case 23:return ds(),null;default:return null}}Li=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}},Ii=function(){},Oi=function(e,t,n,r){var l=e.memoizedProps;if(l!==r){e=t.stateNode,no(Ja.current);var a,o=null;switch(n){case"input":l=G(e,l),r=G(e,r),o=[];break;case"select":l=F({},l,{value:void 0}),r=F({},r,{value:void 0}),o=[];break;case"textarea":l=re(e,l),r=re(e,r),o=[];break;default:"function"!=typeof l.onClick&&"function"==typeof r.onClick&&(e.onclick=Jr)}for(c in ye(n,r),n=null,l)if(!r.hasOwnProperty(c)&&l.hasOwnProperty(c)&&null!=l[c])if("style"===c){var u=l[c];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(i.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var s=r[c];if(u=null!=l?l[c]:void 0,r.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(a in u)!u.hasOwnProperty(a)||s&&s.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in s)s.hasOwnProperty(a)&&u[a]!==s[a]&&(n||(n={}),n[a]=s[a])}else n||(o||(o=[]),o.push(c,n)),n=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(o=o||[]).push(c,s)):"children"===c?"string"!=typeof s&&"number"!=typeof s||(o=o||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(i.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Ur("scroll",e),o||u===s||(o=[])):(o=o||[]).push(c,s))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},Mi=function(e,t,n,r){n!==r&&(t.flags|=4)};var Ki=!1,Xi=!1,Zi="function"==typeof WeakSet?WeakSet:Set,Ji=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){xs(e,t,n)}else n.current=null}function tu(e,t,n){try{n()}catch(n){xs(e,t,n)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0,void 0!==a&&tu(t,n,a)}l=l.next}while(l!==r)}}function lu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function au(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function ou(e){var t=e.alternate;null!==t&&(e.alternate=null,ou(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&null!==(t=e.stateNode)&&(delete t[dl],delete t[pl],delete t[ml],delete t[gl],delete t[vl]),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function iu(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||iu(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function su(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,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=Jr));else if(4!==r&&null!==(e=e.child))for(su(e,t,n),e=e.sibling;null!==e;)su(e,t,n),e=e.sibling}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}var fu=null,du=!1;function pu(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(at&&"function"==typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(lt,n)}catch(e){}switch(n.tag){case 5:Xi||eu(n,t);case 6:var r=fu,l=du;fu=null,pu(e,t,n),du=l,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?ul(e.parentNode,n):1===e.nodeType&&ul(e,n),$t(e)):ul(fu,n.stateNode));break;case 4:r=fu,l=du,fu=n.stateNode.containerInfo,du=!0,pu(e,t,n),fu=r,du=l;break;case 0:case 11:case 14:case 15:if(!Xi&&null!==(r=n.updateQueue)&&null!==(r=r.lastEffect)){l=r=r.next;do{var a=l,o=a.destroy;a=a.tag,void 0!==o&&(2&a||4&a)&&tu(n,t,o),l=l.next}while(l!==r)}pu(e,t,n);break;case 1:if(!Xi&&(eu(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){xs(n,t,e)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Xi=(r=Xi)||null!==n.memoizedState,pu(e,t,n),Xi=r):pu(e,t,n);break;default:pu(e,t,n)}}function mu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Zi),t.forEach((function(t){var r=zs.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function gu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var l=n[r];try{var o=e,i=t,u=i;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(a(160));hu(o,i,l),fu=null,du=!1;var s=l.alternate;null!==s&&(s.return=null),l.return=null}catch(e){xs(l,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gu(t,e),yu(e),4&r){try{ru(3,e,e.return),lu(3,e)}catch(t){xs(e,e.return,t)}try{ru(5,e,e.return)}catch(t){xs(e,e.return,t)}}break;case 1:gu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(gu(t,e),yu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var l=e.stateNode;try{de(l,"")}catch(t){xs(e,e.return,t)}}if(4&r&&null!=(l=e.stateNode)){var o=e.memoizedProps,i=null!==n?n.memoizedProps:o,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===o.type&&null!=o.name&&X(l,o),be(u,i);var c=be(u,o);for(i=0;i<s.length;i+=2){var f=s[i],d=s[i+1];"style"===f?ge(l,d):"dangerouslySetInnerHTML"===f?fe(l,d):"children"===f?de(l,d):b(l,f,d,c)}switch(u){case"input":Z(l,o);break;case"textarea":ae(l,o);break;case"select":var p=l._wrapperState.wasMultiple;l._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?ne(l,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(l,!!o.multiple,o.defaultValue,!0):ne(l,!!o.multiple,o.multiple?[]:"",!1))}l[pl]=o}catch(t){xs(e,e.return,t)}}break;case 6:if(gu(t,e),yu(e),4&r){if(null===e.stateNode)throw Error(a(162));l=e.stateNode,o=e.memoizedProps;try{l.nodeValue=o}catch(t){xs(e,e.return,t)}}break;case 3:if(gu(t,e),yu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(t){xs(e,e.return,t)}break;case 4:default:gu(t,e),yu(e);break;case 13:gu(t,e),yu(e),8192&(l=e.child).flags&&(o=null!==l.memoizedState,l.stateNode.isHidden=o,!o||null!==l.alternate&&null!==l.alternate.memoizedState||($u=Xe())),4&r&&mu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Xi=(c=Xi)||f,gu(t,e),Xi=c):gu(t,e),yu(e),8192&r){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&1&e.mode)for(Ji=e,f=e.child;null!==f;){for(d=Ji=f;null!==Ji;){switch(h=(p=Ji).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){xs(r,n,e)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){ku(d);continue}}null!==h?(h.return=p,Ji=h):ku(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{l=d.stateNode,c?"function"==typeof(o=l.style).setProperty?o.setProperty("display","none","important"):o.display="none":(u=d.stateNode,i=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,u.style.display=me("display",i))}catch(t){xs(e,e.return,t)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(t){xs(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:gu(t,e),yu(e),4&r&&mu(e);case 21:}}function yu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(iu(n)){var r=n;break e}n=n.return}throw Error(a(160))}switch(r.tag){case 5:var l=r.stateNode;32&r.flags&&(de(l,""),r.flags&=-33),cu(e,uu(e),l);break;case 3:case 4:var o=r.stateNode.containerInfo;su(e,uu(e),o);break;default:throw Error(a(161))}}catch(t){xs(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Ji=e,Su(e,t,n)}function Su(e,t,n){for(var r=!!(1&e.mode);null!==Ji;){var l=Ji,a=l.child;if(22===l.tag&&r){var o=null!==l.memoizedState||Ki;if(!o){var i=l.alternate,u=null!==i&&null!==i.memoizedState||Xi;i=Ki;var s=Xi;if(Ki=o,(Xi=u)&&!s)for(Ji=l;null!==Ji;)u=(o=Ji).child,22===o.tag&&null!==o.memoizedState?Eu(l):null!==u?(u.return=o,Ji=u):Eu(l);for(;null!==a;)Ji=a,Su(a,t,n),a=a.sibling;Ji=l,Ki=i,Xi=s}wu(e)}else 8772&l.subtreeFlags&&null!==a?(a.return=l,Ji=a):wu(e)}}function wu(e){for(;null!==Ji;){var t=Ji;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:Xi||lu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Xi)if(null===n)r.componentDidMount();else{var l=t.elementType===t.type?n.memoizedProps:ga(t.type,n.memoizedProps);r.componentDidUpdate(l,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Aa(t,o,r);break;case 3:var i=t.updateQueue;if(null!==i){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Aa(t,i,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&$t(d)}}}break;default:throw Error(a(163))}Xi||512&t.flags&&au(t)}catch(e){xs(t,t.return,e)}}if(t===e){Ji=null;break}if(null!==(n=t.sibling)){n.return=t.return,Ji=n;break}Ji=t.return}}function ku(e){for(;null!==Ji;){var t=Ji;if(t===e){Ji=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Ji=n;break}Ji=t.return}}function Eu(e){for(;null!==Ji;){var t=Ji;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{lu(4,t)}catch(e){xs(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var l=t.return;try{r.componentDidMount()}catch(e){xs(t,l,e)}}var a=t.return;try{au(t)}catch(e){xs(t,a,e)}break;case 5:var o=t.return;try{au(t)}catch(e){xs(t,o,e)}}}catch(e){xs(t,t.return,e)}if(t===e){Ji=null;break}var i=t.sibling;if(null!==i){i.return=t.return,Ji=i;break}Ji=t.return}}var Cu,xu=Math.ceil,_u=S.ReactCurrentDispatcher,Pu=S.ReactCurrentOwner,Nu=S.ReactCurrentBatchConfig,zu=0,Tu=null,Ru=null,Lu=0,Iu=0,Ou=Cl(0),Mu=0,Du=null,Fu=0,Au=0,Uu=0,ju=null,Bu=null,$u=0,Vu=1/0,Hu=null,Wu=!1,Qu=null,qu=null,Yu=!1,Gu=null,Ku=0,Xu=0,Zu=null,Ju=-1,es=0;function ts(){return 6&zu?Xe():-1!==Ju?Ju:Ju=Xe()}function ns(e){return 1&e.mode?2&zu&&0!==Lu?Lu&-Lu:null!==ma.transition?(0===es&&(es=mt()),es):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Kt(e.type):1}function rs(e,t,n,r){if(50<Xu)throw Xu=0,Zu=null,Error(a(185));vt(e,n,r),2&zu&&e===Tu||(e===Tu&&(!(2&zu)&&(Au|=n),4===Mu&&us(e,Lu)),ls(e,r),1===n&&0===zu&&!(1&t.mode)&&(Vu=Xe()+500,Ul&&$l()))}function ls(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,l=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),i=1<<o,u=l[o];-1===u?0!==(i&n)&&0===(i&r)||(l[o]=pt(i,t)):u<=t&&(e.expiredLanes|=i),a&=~i}}(e,t);var r=dt(e,e===Tu?Lu:0);if(0===r)null!==n&&Ye(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ye(n),1===t)0===e.tag?function(e){Ul=!0,Bl(e)}(ss.bind(null,e)):Bl(ss.bind(null,e)),ol((function(){!(6&zu)&&$l()})),n=null;else{switch(St(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Ts(n,as.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function as(e,t){if(Ju=-1,es=0,6&zu)throw Error(a(327));var n=e.callbackNode;if(Es()&&e.callbackNode!==n)return null;var r=dt(e,e===Tu?Lu:0);if(0===r)return null;if(30&r||0!==(r&e.expiredLanes)||t)t=vs(e,r);else{t=r;var l=zu;zu|=2;var o=ms();for(Tu===e&&Lu===t||(Hu=null,Vu=Xe()+500,ps(e,t));;)try{bs();break}catch(t){hs(e,t)}wa(),_u.current=o,zu=l,null!==Ru?t=0:(Tu=null,Lu=0,t=Mu)}if(0!==t){if(2===t&&0!==(l=ht(e))&&(r=l,t=os(e,l)),1===t)throw n=Du,ps(e,0),us(e,r),ls(e,Xe()),n;if(6===t)us(e,r);else{if(l=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var l=n[r],a=l.getSnapshot;l=l.value;try{if(!ir(a(),l))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(l)||(t=vs(e,r),2===t&&(o=ht(e),0!==o&&(r=o,t=os(e,o))),1!==t)))throw n=Du,ps(e,0),us(e,r),ls(e,Xe()),n;switch(e.finishedWork=l,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:ks(e,Bu,Hu);break;case 3:if(us(e,r),(130023424&r)===r&&10<(t=$u+500-Xe())){if(0!==dt(e,0))break;if(((l=e.suspendedLanes)&r)!==r){ts(),e.pingedLanes|=e.suspendedLanes&l;break}e.timeoutHandle=rl(ks.bind(null,e,Bu,Hu),t);break}ks(e,Bu,Hu);break;case 4:if(us(e,r),(4194240&r)===r)break;for(t=e.eventTimes,l=-1;0<r;){var i=31-ot(r);o=1<<i,(i=t[i])>l&&(l=i),r&=~o}if(r=l,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*xu(r/1960))-r)){e.timeoutHandle=rl(ks.bind(null,e,Bu,Hu),r);break}ks(e,Bu,Hu);break;default:throw Error(a(329))}}}return ls(e,Xe()),e.callbackNode===n?as.bind(null,e):null}function os(e,t){var n=ju;return e.current.memoizedState.isDehydrated&&(ps(e,t).flags|=256),2!==(e=vs(e,t))&&(t=Bu,Bu=n,null!==t&&is(t)),e}function is(e){null===Bu?Bu=e:Bu.push.apply(Bu,e)}function us(e,t){for(t&=~Uu,t&=~Au,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function ss(e){if(6&zu)throw Error(a(327));Es();var t=dt(e,0);if(!(1&t))return ls(e,Xe()),null;var n=vs(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=os(e,r))}if(1===n)throw n=Du,ps(e,0),us(e,t),ls(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ks(e,Bu,Hu),ls(e,Xe()),null}function cs(e,t){var n=zu;zu|=1;try{return e(t)}finally{0===(zu=n)&&(Vu=Xe()+500,Ul&&$l())}}function fs(e){null!==Gu&&0===Gu.tag&&!(6&zu)&&Es();var t=zu;zu|=1;var n=Nu.transition,r=bt;try{if(Nu.transition=null,bt=1,e)return e()}finally{bt=r,Nu.transition=n,!(6&(zu=t))&&$l()}}function ds(){Iu=Ou.current,xl(Ou)}function ps(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ll(n)),null!==Ru)for(n=Ru.return;null!==n;){var r=n;switch(ta(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&Il();break;case 3:lo(),xl(zl),xl(Nl),co();break;case 5:oo(r);break;case 4:lo();break;case 13:case 19:xl(io);break;case 10:ka(r.type._context);break;case 22:case 23:ds()}n=n.return}if(Tu=e,Ru=e=Os(e.current,null),Lu=Iu=t,Mu=0,Du=null,Uu=Au=Fu=0,Bu=ju=null,null!==_a){for(t=0;t<_a.length;t++)if(null!==(r=(n=_a[t]).interleaved)){n.interleaved=null;var l=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=l,r.next=o}n.pending=r}_a=null}return e}function hs(e,t){for(;;){var n=Ru;try{if(wa(),fo.current=oi,yo){for(var r=mo.memoizedState;null!==r;){var l=r.queue;null!==l&&(l.pending=null),r=r.next}yo=!1}if(ho=0,vo=go=mo=null,bo=!1,So=0,Pu.current=null,null===n||null===n.return){Mu=1,Du=t,Ru=null;break}e:{var o=e,i=n.return,u=n,s=t;if(t=Lu,u.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var c=s,f=u,d=f.tag;if(!(1&f.mode||0!==d&&11!==d&&15!==d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=vi(i);if(null!==h){h.flags&=-257,yi(h,i,u,0,t),1&h.mode&&gi(o,c,t),s=c;var m=(t=h).updateQueue;if(null===m){var g=new Set;g.add(s),t.updateQueue=g}else m.add(s);break e}if(!(1&t)){gi(o,c,t),gs();break e}s=Error(a(426))}else if(la&&1&u.mode){var v=vi(i);if(null!==v){!(65536&v.flags)&&(v.flags|=256),yi(v,i,u,0,t),ha(ci(s,u));break e}}o=s=ci(s,u),4!==Mu&&(Mu=2),null===ju?ju=[o]:ju.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Da(o,hi(0,s,t));break e;case 1:u=s;var y=o.type,b=o.stateNode;if(!(128&o.flags||"function"!=typeof y.getDerivedStateFromError&&(null===b||"function"!=typeof b.componentDidCatch||null!==qu&&qu.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t,Da(o,mi(o,u,t));break e}}o=o.return}while(null!==o)}ws(n)}catch(e){t=e,Ru===n&&null!==n&&(Ru=n=n.return);continue}break}}function ms(){var e=_u.current;return _u.current=oi,null===e?oi:e}function gs(){0!==Mu&&3!==Mu&&2!==Mu||(Mu=4),null===Tu||!(268435455&Fu)&&!(268435455&Au)||us(Tu,Lu)}function vs(e,t){var n=zu;zu|=2;var r=ms();for(Tu===e&&Lu===t||(Hu=null,ps(e,t));;)try{ys();break}catch(t){hs(e,t)}if(wa(),zu=n,_u.current=r,null!==Ru)throw Error(a(261));return Tu=null,Lu=0,Mu}function ys(){for(;null!==Ru;)Ss(Ru)}function bs(){for(;null!==Ru&&!Ge();)Ss(Ru)}function Ss(e){var t=Cu(e.alternate,e,Iu);e.memoizedProps=e.pendingProps,null===t?ws(e):Ru=t,Pu.current=null}function ws(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=Gi(n,t)))return n.flags&=32767,void(Ru=n);if(null===e)return Mu=6,void(Ru=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=Yi(n,t,Iu)))return void(Ru=n);if(null!==(t=t.sibling))return void(Ru=t);Ru=t=e}while(null!==t);0===Mu&&(Mu=5)}function ks(e,t,n){var r=bt,l=Nu.transition;try{Nu.transition=null,bt=1,function(e,t,n,r){do{Es()}while(null!==Gu);if(6&zu)throw Error(a(327));n=e.finishedWork;var l=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var l=31-ot(n),a=1<<l;t[l]=0,r[l]=-1,e[l]=-1,n&=~a}}(e,o),e===Tu&&(Ru=Tu=null,Lu=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||Yu||(Yu=!0,Ts(tt,(function(){return Es(),null}))),o=!!(15990&n.flags),15990&n.subtreeFlags||o){o=Nu.transition,Nu.transition=null;var i=bt;bt=1;var u=zu;zu|=4,Pu.current=null,function(e,t){if(el=Ht,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(e){n=null;break e}var i=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==l&&3!==d.nodeType||(u=i+l),d!==o||0!==r&&3!==d.nodeType||(s=i+r),3===d.nodeType&&(i+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++c===l&&(u=i),p===o&&++f===r&&(s=i),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===s?null:{start:u,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(tl={focusedElem:e,selectionRange:n},Ht=!1,Ji=t;null!==Ji;)if(e=(t=Ji).child,1028&t.subtreeFlags&&null!==e)e.return=t,Ji=e;else for(;null!==Ji;){t=Ji;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var g=m.memoizedProps,v=m.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?g:ga(t.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var S=t.stateNode.containerInfo;1===S.nodeType?S.textContent="":9===S.nodeType&&S.documentElement&&S.removeChild(S.documentElement);break;default:throw Error(a(163))}}catch(e){xs(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,Ji=e;break}Ji=t.return}m=nu,nu=!1}(e,n),vu(n,e),hr(tl),Ht=!!el,tl=el=null,e.current=n,bu(n,e,l),Ke(),zu=u,bt=i,Nu.transition=o}else e.current=n;if(Yu&&(Yu=!1,Gu=e,Ku=l),0===(o=e.pendingLanes)&&(qu=null),function(e){if(at&&"function"==typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(lt,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),ls(e,Xe()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((l=t[n]).value,{componentStack:l.stack,digest:l.digest});if(Wu)throw Wu=!1,e=Qu,Qu=null,e;!!(1&Ku)&&0!==e.tag&&Es(),1&(o=e.pendingLanes)?e===Zu?Xu++:(Xu=0,Zu=e):Xu=0,$l()}(e,t,n,r)}finally{Nu.transition=l,bt=r}return null}function Es(){if(null!==Gu){var e=St(Ku),t=Nu.transition,n=bt;try{if(Nu.transition=null,bt=16>e?16:e,null===Gu)var r=!1;else{if(e=Gu,Gu=null,Ku=0,6&zu)throw Error(a(331));var l=zu;for(zu|=4,Ji=e.current;null!==Ji;){var o=Ji,i=o.child;if(16&Ji.flags){var u=o.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Ji=c;null!==Ji;){var f=Ji;switch(f.tag){case 0:case 11:case 15:ru(8,f,o)}var d=f.child;if(null!==d)d.return=f,Ji=d;else for(;null!==Ji;){var p=(f=Ji).sibling,h=f.return;if(ou(f),f===c){Ji=null;break}if(null!==p){p.return=h,Ji=p;break}Ji=h}}}var m=o.alternate;if(null!==m){var g=m.child;if(null!==g){m.child=null;do{var v=g.sibling;g.sibling=null,g=v}while(null!==g)}}Ji=o}}if(2064&o.subtreeFlags&&null!==i)i.return=o,Ji=i;else e:for(;null!==Ji;){if(2048&(o=Ji).flags)switch(o.tag){case 0:case 11:case 15:ru(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,Ji=y;break e}Ji=o.return}}var b=e.current;for(Ji=b;null!==Ji;){var S=(i=Ji).child;if(2064&i.subtreeFlags&&null!==S)S.return=i,Ji=S;else e:for(i=b;null!==Ji;){if(2048&(u=Ji).flags)try{switch(u.tag){case 0:case 11:case 15:lu(9,u)}}catch(e){xs(u,u.return,e)}if(u===i){Ji=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Ji=w;break e}Ji=u.return}}if(zu=l,$l(),at&&"function"==typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(lt,e)}catch(e){}r=!0}return r}finally{bt=n,Nu.transition=t}}return!1}function Cs(e,t,n){e=Oa(e,t=hi(0,t=ci(n,t),1),1),t=ts(),null!==e&&(vt(e,1,t),ls(e,t))}function xs(e,t,n){if(3===e.tag)Cs(e,e,n);else for(;null!==t;){if(3===t.tag){Cs(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===qu||!qu.has(r))){t=Oa(t,e=mi(t,e=ci(n,e),1),1),e=ts(),null!==t&&(vt(t,1,e),ls(t,e));break}}t=t.return}}function _s(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ts(),e.pingedLanes|=e.suspendedLanes&n,Tu===e&&(Lu&n)===n&&(4===Mu||3===Mu&&(130023424&Lu)===Lu&&500>Xe()-$u?ps(e,0):Uu|=n),ls(e,t)}function Ps(e,t){0===t&&(1&e.mode?(t=ct,!(130023424&(ct<<=1))&&(ct=4194304)):t=1);var n=ts();null!==(e=za(e,t))&&(vt(e,t,n),ls(e,n))}function Ns(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ps(e,n)}function zs(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),Ps(e,n)}function Ts(e,t){return qe(e,t)}function Rs(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.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ls(e,t,n,r){return new Rs(e,t,n,r)}function Is(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Os(e,t){var n=e.alternate;return null===n?((n=Ls(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.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,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 Ms(e,t,n,r,l,o){var i=2;if(r=e,"function"==typeof e)Is(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case E:return Ds(n.children,l,o,t);case C:i=8,l|=8;break;case x:return(e=Ls(12,n,t,2|l)).elementType=x,e.lanes=o,e;case z:return(e=Ls(13,n,t,l)).elementType=z,e.lanes=o,e;case T:return(e=Ls(19,n,t,l)).elementType=T,e.lanes=o,e;case I:return Fs(n,l,o,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case _:i=10;break e;case P:i=9;break e;case N:i=11;break e;case R:i=14;break e;case L:i=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ls(i,n,t,l)).elementType=e,t.type=r,t.lanes=o,t}function Ds(e,t,n,r){return(e=Ls(7,e,r,t)).lanes=n,e}function Fs(e,t,n,r){return(e=Ls(22,e,r,t)).elementType=I,e.lanes=n,e.stateNode={isHidden:!1},e}function As(e,t,n){return(e=Ls(6,e,null,t)).lanes=n,e}function Us(e,t,n){return(t=Ls(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function js(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Bs(e,t,n,r,l,a,o,i,u){return e=new js(e,t,n,i,u),1===t?(t=1,!0===a&&(t|=8)):t=0,a=Ls(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ra(a),e}function $s(e){if(!e)return Pl;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ll(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Ll(n))return Ml(e,n,t)}return t}function Vs(e,t,n,r,l,a,o,i,u){return(e=Bs(n,r,!0,e,0,a,0,i,u)).context=$s(null),n=e.current,(a=Ia(r=ts(),l=ns(n))).callback=null!=t?t:null,Oa(n,a,l),e.current.lanes=l,vt(e,l,r),ls(e,r),e}function Hs(e,t,n,r){var l=t.current,a=ts(),o=ns(l);return n=$s(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ia(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Oa(l,t,o))&&(rs(e,l,o,a),Ma(e,l,o)),o}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qs(e,t){Qs(e,t),(e=e.alternate)&&Qs(e,t)}Cu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||zl.current)Si=!0;else{if(0===(e.lanes&n)&&!(128&t.flags))return Si=!1,function(e,t,n){switch(t.tag){case 3:Ti(t),pa();break;case 5:ao(t);break;case 1:Ll(t.type)&&Dl(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,l=t.memoizedProps.value;_l(va,r._currentValue),r._currentValue=l;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_l(io,1&io.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ai(e,t,n):(_l(io,1&io.current),null!==(e=Wi(e,t,n))?e.sibling:null);_l(io,1&io.current);break;case 19:if(r=0!==(n&t.childLanes),128&e.flags){if(r)return Vi(e,t,n);t.flags|=128}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null,l.lastEffect=null),_l(io,io.current),r)break;return null;case 22:case 23:return t.lanes=0,xi(e,t,n)}return Wi(e,t,n)}(e,t,n);Si=!!(131072&e.flags)}else Si=!1,la&&1048576&t.flags&&Jl(t,Ql,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hi(e,t),e=t.pendingProps;var l=Rl(t,Nl.current);Ca(t,n),l=Co(null,t,r,e,l,n);var o=xo();return t.flags|=1,"object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ll(r)?(o=!0,Dl(t)):o=!1,t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,Ra(t),l.updater=Ba,t.stateNode=l,l._reactInternals=t,Wa(t,r,e,n),t=zi(null,t,r,!0,o,n)):(t.tag=0,la&&o&&ea(t),wi(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hi(e,t),e=t.pendingProps,r=(l=r._init)(r._payload),t.type=r,l=t.tag=function(e){if("function"==typeof e)return Is(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===R)return 14}return 2}(r),e=ga(r,e),l){case 0:t=Pi(null,t,r,e,n);break e;case 1:t=Ni(null,t,r,e,n);break e;case 11:t=ki(null,t,r,e,n);break e;case 14:t=Ei(null,t,r,ga(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,Pi(e,t,r,l=t.elementType===r?l:ga(r,l),n);case 1:return r=t.type,l=t.pendingProps,Ni(e,t,r,l=t.elementType===r?l:ga(r,l),n);case 3:e:{if(Ti(t),null===e)throw Error(a(387));r=t.pendingProps,l=(o=t.memoizedState).element,La(e,t),Fa(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ri(e,t,r,n,l=ci(Error(a(423)),t));break e}if(r!==l){t=Ri(e,t,r,n,l=ci(Error(a(424)),t));break e}for(ra=sl(t.stateNode.containerInfo.firstChild),na=t,la=!0,aa=null,n=Xa(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pa(),r===l){t=Wi(e,t,n);break e}wi(e,t,r,n)}t=t.child}return t;case 5:return ao(t),null===e&&sa(t),r=t.type,l=t.pendingProps,o=null!==e?e.memoizedProps:null,i=l.children,nl(r,l)?i=null:null!==o&&nl(r,o)&&(t.flags|=32),_i(e,t),wi(e,t,i,n),t.child;case 6:return null===e&&sa(t),null;case 13:return Ai(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ka(t,null,r,n):wi(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,ki(e,t,r,l=t.elementType===r?l:ga(r,l),n);case 7:return wi(e,t,t.pendingProps,n),t.child;case 8:case 12:return wi(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,_l(va,r._currentValue),r._currentValue=i,null!==o)if(ir(o.value,i)){if(o.children===l.children&&!zl.current){t=Wi(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var u=o.dependencies;if(null!==u){i=o.child;for(var s=u.firstContext;null!==s;){if(s.context===r){if(1===o.tag){(s=Ia(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}o.lanes|=n,null!==(s=o.alternate)&&(s.lanes|=n),Ea(o.return,n,t),u.lanes|=n;break}s=s.next}}else if(10===o.tag)i=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(i=o.return))throw Error(a(341));i.lanes|=n,null!==(u=i.alternate)&&(u.lanes|=n),Ea(i,n,t),i=o.sibling}else i=o.child;if(null!==i)i.return=o;else for(i=o;null!==i;){if(i===t){i=null;break}if(null!==(o=i.sibling)){o.return=i.return,i=o;break}i=i.return}o=i}wi(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Ca(t,n),r=r(l=xa(l)),t.flags|=1,wi(e,t,r,n),t.child;case 14:return l=ga(r=t.type,t.pendingProps),Ei(e,t,r,l=ga(r.type,l),n);case 15:return Ci(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:ga(r,l),Hi(e,t),t.tag=1,Ll(r)?(e=!0,Dl(t)):e=!1,Ca(t,n),Va(t,r,l),Wa(t,r,l,n),zi(null,t,r,!0,e,n);case 19:return Vi(e,t,n);case 22:return xi(e,t,n)}throw Error(a(156,t.tag))};var Ys="function"==typeof reportError?reportError:function(e){console.error(e)};function Gs(e){this._internalRoot=e}function Ks(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Js(){}function ec(e,t,n,r,l){var a=n._reactRootContainer;if(a){var o=a;if("function"==typeof l){var i=l;l=function(){var e=Ws(o);i.call(e)}}Hs(t,o,e,l)}else o=function(e,t,n,r,l){if(l){if("function"==typeof r){var a=r;r=function(){var e=Ws(o);a.call(e)}}var o=Vs(t,r,e,0,null,!1,0,"",Js);return e._reactRootContainer=o,e[hl]=o.current,$r(8===e.nodeType?e.parentNode:e),fs(),o}for(;l=e.lastChild;)e.removeChild(l);if("function"==typeof r){var i=r;r=function(){var e=Ws(u);i.call(e)}}var u=Bs(e,0,!1,null,0,!1,0,"",Js);return e._reactRootContainer=u,e[hl]=u.current,$r(8===e.nodeType?e.parentNode:e),fs((function(){Hs(t,u,n,r)})),u}(n,t,e,l,r);return Ws(o)}Ks.prototype.render=Gs.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Hs(e,t,null,null)},Ks.prototype.unmount=Gs.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fs((function(){Hs(null,e,null,null)})),t[hl]=null}},Ks.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ct();e={blockedOn:null,target:e,priority:t};for(var n=0;n<It.length&&0!==t&&t<It[n].priority;n++);It.splice(n,0,e),0===n&&Ft(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(yt(t,1|n),ls(t,Xe()),!(6&zu)&&(Vu=Xe()+500,$l()))}break;case 13:fs((function(){var t=za(e,1);if(null!==t){var n=ts();rs(t,e,1,n)}})),qs(e,1)}},kt=function(e){if(13===e.tag){var t=za(e,134217728);null!==t&&rs(t,e,134217728,ts()),qs(e,134217728)}},Et=function(e){if(13===e.tag){var t=ns(e),n=za(e,t);null!==n&&rs(n,e,t,ts()),qs(e,t)}},Ct=function(){return bt},xt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=wl(r);if(!l)throw Error(a(90));q(r),Z(r,l)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ne=cs,ze=fs;var tc={usingClientEntryPoint:!1,Events:[bl,Sl,wl,_e,Pe,cs]},nc={findFiberByHostInstance:yl,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rc={bundleType:nc.bundleType,version:nc.version,rendererPackageName:nc.rendererPackageName,rendererConfig:nc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:S.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:nc.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lc.isDisabled&&lc.supportsFiber)try{lt=lc.inject(rc),at=lc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tc,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Xs(e))throw Error(a(299));var n=!1,r="",l=Ys;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=Bs(e,1,!1,null,0,n,0,r,l),e[hl]=t.current,$r(8===e.nodeType?e.parentNode:e),new Gs(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return fs(e)},t.hydrate=function(e,t,n){if(!Zs(t))throw Error(a(200));return ec(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Xs(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,l=!1,o="",i=Ys;if(null!=n&&(!0===n.unstable_strictMode&&(l=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(i=n.onRecoverableError)),t=Vs(t,null,e,1,null!=n?n:null,l,0,o,i),e[hl]=t.current,$r(e),r)for(e=0;e<r.length;e++)l=(l=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,l]:t.mutableSourceEagerHydrationData.push(n,l);return new Ks(t)},t.render=function(e,t,n){if(!Zs(t))throw Error(a(200));return ec(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zs(e))throw Error(a(40));return!!e._reactRootContainer&&(fs((function(){ec(null,null,e,!1,(function(){e._reactRootContainer=null,e[hl]=null}))})),!0)},t.unstable_batchedUpdates=cs,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zs(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return ec(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},4848:(e,t,n)=>{e.exports=n(1020)},5287:(e,t)=>{var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator,h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=v.prototype;var S=b.prototype=new y;S.constructor=b,m(S,v.prototype),S.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,E={current:null},C={key:!0,ref:!0,__self:!0,__source:!0};function x(e,t,r){var l,a={},o=null,i=null;if(null!=t)for(l in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(o=""+t.key),t)k.call(t,l)&&!C.hasOwnProperty(l)&&(a[l]=t[l]);var u=arguments.length-2;if(1===u)a.children=r;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];a.children=s}if(e&&e.defaultProps)for(l in u=e.defaultProps)void 0===a[l]&&(a[l]=u[l]);return{$$typeof:n,type:e,key:o,ref:i,props:a,_owner:E.current}}function _(e){return"object"==typeof e&&null!==e&&e.$$typeof===n}var P=/\/+/g;function N(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function z(e,t,l,a,o){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var u=!1;if(null===e)u=!0;else switch(i){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return o=o(u=e),e=""===a?"."+N(u,0):a,w(o)?(l="",null!=e&&(l=e.replace(P,"$&/")+"/"),z(o,t,l,"",(function(e){return e}))):null!=o&&(_(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,l+(!o.key||u&&u.key===o.key?"":(""+o.key).replace(P,"$&/")+"/")+e)),t.push(o)),1;if(u=0,a=""===a?".":a+":",w(e))for(var s=0;s<e.length;s++){var c=a+N(i=e[s],s);u+=z(i,t,l,c,o)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(i=e.next()).done;)u+=z(i=i.value,t,l,c=a+N(i,s++),o);else if("object"===i)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function T(e,t,n){if(null==e)return e;var r=[],l=0;return z(e,r,"","",(function(e){return t.call(n,e,l++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},I={transition:null},O={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:I,ReactCurrentOwner:E};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=l,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=O,t.cloneElement=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var l=m({},e.props),a=e.key,o=e.ref,i=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,i=E.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)k.call(t,s)&&!C.hasOwnProperty(s)&&(l[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)l.children=r;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];l.children=u}return{$$typeof:n,type:e.type,key:a,ref:o,props:l,_owner:i}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:e},e.Consumer=e},t.createElement=x,t.createFactory=function(e){var t=x.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=I.transition;I.transition={};try{e()}finally{I.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.2.0"},5338:(e,t,n)=>{var r=n(961);t.H=r.createRoot,r.hydrateRoot},6540:(e,t,n)=>{e.exports=n(5287)},9056:(e,t,n)=>{n.r(t),n.d(t,{ServerStyleSheet:()=>Ue,StyleSheetConsumer:()=>re,StyleSheetContext:()=>ne,StyleSheetManager:()=>se,ThemeConsumer:()=>Re,ThemeContext:()=>Te,ThemeProvider:()=>Le,__PRIVATE__:()=>$e,createGlobalStyle:()=>Fe,css:()=>be,default:()=>Ve,isStyledComponent:()=>b,keyframes:()=>Ae,useTheme:()=>Be,version:()=>w,withTheme:()=>je});var r=n(4363),l=n(6540),a=n(2833),o=n.n(a),i=n(8887);const u={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var s=n(9316),c=n(4146),f=n.n(c);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,l=t.length;r<l;r+=1)n.push(t[r],e[r+1]);return n},h=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,r.typeOf)(e)},m=Object.freeze([]),g=Object.freeze({});function v(e){return"function"==typeof e}function y(e){return e.displayName||e.name||"Component"}function b(e){return e&&"string"==typeof e.styledComponentId}var S="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",w="5.3.10",k="undefined"!=typeof window&&"HTMLElement"in window,E=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&(void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY)),C={};function x(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var _=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<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,l=r;e>=l;)(l<<=1)<0&&x(16,""+e);this.groupSizes=new Uint32Array(l),this.groupSizes.set(n),this.length=l;for(var a=r;a<l;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),i=0,u=t.length;i<u;i++)this.tag.insertRule(o,t[i])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var l=n;l<r;l++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),l=r+n,a=r;a<l;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),P=new Map,N=new Map,z=1,T=function(e){if(P.has(e))return P.get(e);for(;N.has(z);)z++;var t=z++;return P.set(e,t),N.set(t,e),t},R=function(e){return N.get(e)},L=function(e,t){t>=z&&(z=t+1),P.set(e,t),N.set(t,e)},I="style["+S+'][data-styled-version="5.3.10"]',O=new RegExp("^"+S+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,n){for(var r,l=n.split(","),a=0,o=l.length;a<o;a++)(r=l[a])&&e.registerName(t,r)},D=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],l=0,a=n.length;l<a;l++){var o=n[l].trim();if(o){var i=o.match(O);if(i){var u=0|parseInt(i[1],10),s=i[2];0!==u&&(L(s,u),M(e,s,i[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(o)}}},F=function(){return n.nc},A=function(e){var t=document.head,n=e||t,r=document.createElement("style"),l=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(S))return r}}(n),a=void 0!==l?l.nextSibling:null;r.setAttribute(S,"active"),r.setAttribute("data-styled-version","5.3.10");var o=F();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},U=function(){function e(e){var t=this.element=A(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<r;n++){var l=t[n];if(l.ownerNode===e)return l}x(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),j=function(){function e(e){var t=this.element=A(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=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 e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),$=k,V={isServer:!k,useCSSOMInjection:!E},H=function(){function e(e,t,n){void 0===e&&(e=g),void 0===t&&(t={}),this.options=d({},V,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&k&&$&&($=!1,function(e){for(var t=document.querySelectorAll(I),n=0,r=t.length;n<r;n++){var l=t[n];l&&"active"!==l.getAttribute(S)&&(D(e,l),l.parentNode&&l.parentNode.removeChild(l))}}(this))}e.registerId=function(e){return T(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(d({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,l=t.target,e=n?new B(l):r?new U(l):new j(l),new _(e)));var e,t,n,r,l},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(T(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(T(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(T(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",l=0;l<n;l++){var a=R(l);if(void 0!==a){var o=e.names.get(a),i=t.getGroup(l);if(o&&i&&o.size){var u=S+".g"+l+'[id="'+a+'"]',s="";void 0!==o&&o.forEach((function(e){e.length>0&&(s+=e+",")})),r+=""+i+u+'{content:"'+s+'"}/*!sc*/\n'}}}return r}(this)},e}(),W=/(a)(d)/gi,Q=function(e){return String.fromCharCode(e+(e>25?39:97))};function q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Q(t%52)+n;return(Q(t%52)+n).replace(W,"$1-$2")}var Y=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},G=function(e){return Y(5381,e)};function K(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(v(n)&&!b(n))return!1}return!0}var X=G("5.3.10"),Z=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&K(e),this.componentId=t,this.baseHash=Y(X,t),this.baseStyle=n,H.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,l=[];if(this.baseStyle&&l.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))l.push(this.staticRulesId);else{var a=ve(this.rules,e,t,n).join(""),o=q(Y(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var i=n(a,"."+o,void 0,r);t.insertRules(r,o,i)}l.push(o),this.staticRulesId=o}else{for(var u=this.rules.length,s=Y(this.baseHash,n.hash),c="",f=0;f<u;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var p=ve(d,e,t,n),h=Array.isArray(p)?p.join(""):p;s=Y(s,h+f),c+=h}}if(c){var m=q(s>>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}l.push(m)}}return l.join(" ")},e}(),J=/^\s*\/\/.*$/gm,ee=[":","[",".","#"];function te(e){var t,n,r,l,a=void 0===e?g:e,o=a.options,u=void 0===o?g:o,s=a.plugins,c=void 0===s?m:s,f=new i.A(u),d=[],p=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,l,a,o,i,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(l[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!==ee.indexOf(a[n.length])||a.match(l)?e:"."+t};function v(e,a,o,i){void 0===i&&(i="&");var u=e.replace(J,""),s=a&&o?o+" "+a+" { "+u+" }":u;return t=i,n=a,r=new RegExp("\\"+n+"\\b","g"),l=new RegExp("(\\"+n+"\\b){2,}"),f(o||!a?"":a,s)}return f.use([].concat(c,[function(e,t,l){2===e&&l.length&&l[0].lastIndexOf(n)>0&&(l[0]=l[0].replace(r,h))},p,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||x(15),Y(e,t.name)}),5381).toString():"",v}var ne=l.createContext(),re=ne.Consumer,le=l.createContext(),ae=(le.Consumer,new H),oe=te();function ie(){return(0,l.useContext)(ne)||ae}function ue(){return(0,l.useContext)(le)||oe}function se(e){var t=(0,l.useState)(e.stylisPlugins),n=t[0],r=t[1],a=ie(),i=(0,l.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),u=(0,l.useMemo)((function(){return te({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,l.useEffect)((function(){o()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),l.createElement(ne.Provider,{value:i},l.createElement(le.Provider,{value:u},e.children))}var ce=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=oe);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 x(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=oe),this.name+e.hash},e}(),fe=/([A-Z])/,de=/([A-Z])/g,pe=/^ms-/,he=function(e){return"-"+e.toLowerCase()};function me(e){return fe.test(e)?e.replace(de,he).replace(pe,"-ms-"):e}var ge=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var l,a=[],o=0,i=e.length;o<i;o+=1)""!==(l=ve(e[o],t,n,r))&&(Array.isArray(l)?a.push.apply(a,l):a.push(l));return a}return ge(e)?"":b(e)?"."+e.styledComponentId:v(e)?"function"!=typeof(s=e)||s.prototype&&s.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof ce?n?(e.inject(n,r),e.getName(r)):e:h(e)?function e(t,n){var r,l,a=[];for(var o in t)t.hasOwnProperty(o)&&!ge(t[o])&&(Array.isArray(t[o])&&t[o].isCss||v(t[o])?a.push(me(o)+":",t[o],";"):h(t[o])?a.push.apply(a,e(t[o],o)):a.push(me(o)+": "+(r=o,(null==(l=t[o])||"boolean"==typeof l||""===l?"":"number"!=typeof l||0===l||r in u||r.startsWith("--")?String(l).trim():l+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString();var s}var ye=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return v(e)||h(e)?ye(ve(p(m,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:ye(ve(p(e,n)))}new Set;var Se=function(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme},we=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ke=/(^-|-$)/g;function Ee(e){return e.replace(we,"-").replace(ke,"")}var Ce=function(e){return q(G(e)>>>0)};function xe(e){return"string"==typeof e&&!0}var _e=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Pe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ne(e,t,n){var r=e[n];_e(t)&&_e(r)?ze(r,t):e[n]=t}function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var l=0,a=n;l<a.length;l++){var o=a[l];if(_e(o))for(var i in o)Pe(i)&&Ne(e,o[i],i)}return e}var Te=l.createContext(),Re=Te.Consumer;function Le(e){var t=(0,l.useContext)(Te),n=(0,l.useMemo)((function(){return function(e,t){return e?v(e)?e(t):Array.isArray(e)||"object"!=typeof e?x(8):t?d({},t,{},e):e:x(14)}(e.theme,t)}),[e.theme,t]);return e.children?l.createElement(Te.Provider,{value:n},e.children):null}var Ie={};function Oe(e,t,n){var r=b(e),a=!xe(e),o=t.attrs,i=void 0===o?m:o,u=t.componentId,c=void 0===u?function(e,t){var n="string"!=typeof e?"sc":Ee(e);Ie[n]=(Ie[n]||0)+1;var r=n+"-"+Ce("5.3.10"+n+Ie[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):u,p=t.displayName,h=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+y(e)+")"}(e):p,S=t.displayName&&t.componentId?Ee(t.displayName)+"-"+t.componentId:t.componentId||c,w=r&&e.attrs?Array.prototype.concat(e.attrs,i).filter(Boolean):i,k=t.shouldForwardProp;r&&e.shouldForwardProp&&(k=t.shouldForwardProp?function(n,r,l){return e.shouldForwardProp(n,r,l)&&t.shouldForwardProp(n,r,l)}:e.shouldForwardProp);var E,C=new Z(n,S,r?e.componentStyle:void 0),x=C.isStatic&&0===i.length,_=function(e,t){return function(e,t,n,r){var a=e.attrs,o=e.componentStyle,i=e.defaultProps,u=e.foldedComponentIds,c=e.shouldForwardProp,f=e.styledComponentId,p=e.target,h=function(e,t,n){void 0===e&&(e=g);var r=d({},t,{theme:e}),l={};return n.forEach((function(e){var t,n,a,o=e;for(t in v(o)&&(o=o(r)),o)r[t]=l[t]="className"===t?(n=l[t],a=o[t],n&&a?n+" "+a:n||a):o[t]})),[r,l]}(Se(t,(0,l.useContext)(Te),i)||g,t,a),m=h[0],y=h[1],b=function(e,t,n){var r=ie(),l=ue();return t?e.generateAndInjectStyles(g,r,l):e.generateAndInjectStyles(n,r,l)}(o,r,m),S=n,w=y.$as||t.$as||y.as||t.as||p,k=xe(w),E=y!==t?d({},t,{},y):t,C={};for(var x in E)"$"!==x[0]&&"as"!==x&&("forwardedAs"===x?C.as=E[x]:(c?c(x,s.A,w):!k||(0,s.A)(x))&&(C[x]=E[x]));return t.style&&y.style!==t.style&&(C.style=d({},t.style,{},y.style)),C.className=Array.prototype.concat(u,f,b!==f?b:null,t.className,y.className).filter(Boolean).join(" "),C.ref=S,(0,l.createElement)(w,C)}(E,e,t,x)};return _.displayName=h,(E=l.forwardRef(_)).attrs=w,E.componentStyle=C,E.displayName=h,E.shouldForwardProp=k,E.foldedComponentIds=r?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):m,E.styledComponentId=S,E.target=r?e.target:e,E.withComponent=function(e){var r=t.componentId,l=function(e,t){if(null==e)return{};var n,r,l={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(l[n]=e[n]);return l}(t,["componentId"]),a=r&&r+"-"+(xe(e)?e:Ee(y(e)));return Oe(e,d({},l,{attrs:w,componentId:a}),n)},Object.defineProperty(E,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?ze({},e.defaultProps,t):t}}),Object.defineProperty(E,"toString",{value:function(){return"."+E.styledComponentId}}),a&&f()(E,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),E}var Me=function(e){return function e(t,n,l){if(void 0===l&&(l=g),!(0,r.isValidElementType)(n))return x(1,String(n));var a=function(){return t(n,l,be.apply(void 0,arguments))};return a.withConfig=function(r){return e(t,n,d({},l,{},r))},a.attrs=function(r){return e(t,n,d({},l,{attrs:Array.prototype.concat(l.attrs,r).filter(Boolean)}))},a}(Oe,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){Me[e]=Me(e)}));var De=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=K(e),H.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var l=r(ve(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,l)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Fe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=be.apply(void 0,[e].concat(n)),o="sc-global-"+Ce(JSON.stringify(a)),i=new De(a,o);function u(e){var t=ie(),n=ue(),r=(0,l.useContext)(Te),a=(0,l.useRef)(t.allocateGSInstance(o)).current;return t.server&&s(a,e,t,r,n),(0,l.useLayoutEffect)((function(){if(!t.server)return s(a,e,t,r,n),function(){return i.removeStyles(a,t)}}),[a,e,t,r,n]),null}function s(e,t,n,r,l){if(i.isStatic)i.renderStyles(e,C,n,l);else{var a=d({},t,{theme:Se(t,r,u.defaultProps)});i.renderStyles(e,a,n,l)}}return l.memo(u)}function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var l=be.apply(void 0,[e].concat(n)).join(""),a=Ce(l);return new ce(a,l)}var Ue=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=F();return"<style "+[n&&'nonce="'+n+'"',S+'="true"','data-styled-version="5.3.10"'].filter(Boolean).join(" ")+">"+t+"</style>"},this.getStyleTags=function(){return e.sealed?x(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return x(2);var n=((t={})[S]="",t["data-styled-version"]="5.3.10",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=F();return r&&(n.nonce=r),[l.createElement("style",d({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?x(2):l.createElement(se,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return x(3)},e}(),je=function(e){var t=l.forwardRef((function(t,n){var r=(0,l.useContext)(Te),a=e.defaultProps,o=Se(t,r,a);return l.createElement(e,d({},t,{theme:o,ref:n}))}));return f()(t,e),t.displayName="WithTheme("+y(e)+")",t},Be=function(){return(0,l.useContext)(Te)},$e={StyleSheet:H,masterSheet:ae};const Ve=Me}}]);
/* <<< file end: js/front-bundled/dist/reactEssentials.js */

//# map link was there [reactEssentials.js.map]
/* >>> file start: js/front-bundled/dist/profile.js */
/*! For license information please see profile.js.LICENSE.txt */
(()=>{var e,t={74:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});var n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(Boolean).join(" ")}},158:(e,t,r)=>{"use strict";r(6540)},230:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});var n=r(9056).default.a.withConfig({displayName:"ButtonAction",componentId:"sc-sle5ki-0"})(["display:inline-flex;align-items:center;height:28px;padding-top:0;padding-bottom:0;white-space:nowrap;text-decoration:none;&:hover{font-family:'ProximaNova',Helvetica,sans-serif;font-size:14px;text-decoration:none;}"])},339:(e,t,r)=>{"use strict";r.d(t,{Y:()=>u,f:()=>l});var n=r(6540),o=r(5338),i=r(1206);function a(e){return a="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},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}var l=i.F,u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetNode,r=e.initProps,l=void 0===r?{}:r,u=l.targetUserData,s=l.customProps,f=void 0===s?{}:s;if(!t)throw new Error("SubscribeBtn2022:initOnNode:targetNode is not provided");if(!u)throw new Error("SubscribeBtn2022:initOnNode:targetUserData is not provided");t.innerHTML="";var p=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({targetUserData:u},f);(0,o.H)(t).render(n.createElement(i.F,p))};LJ.define("LJ.Components.SubscribeBtn2022"),LJ.Components.SubscribeBtn2022.initOnNode=u},373:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6540),o=r(2231);const i=function(e){var t=e.children,r=e.title,i=e.description,a=e.withCloseBtn;return n.createElement(o.Y9,null,r&&n.createElement(o.hE,{$withCloseBtn:a},r),i&&n.createElement(o.VY,null,i),t)}},457:(e,t,r)=>{"use strict";r.d(t,{p:()=>o});var n=r(9056),o=n.default.input.withConfig({displayName:"Input",componentId:"sc-1li98b0-0"})(["height:28px;padding:0 12px;box-sizing:border-box;background-color:#FFFFFF;border:1px solid #D4DCE0;border-radius:4px;vertical-align:middle;font:inherit;font-size:14px;line-height:22px;color:#333333;transition:border-color .2s;&:hover{border-color:#BDC8CD;}&:active{border-color:#0996C5;}&:focus{outline:none;border-color:#00A3D9;}&:disabled{opacity:.5;cursor:not-allowed;}",""],(function(e){var t=e.$size;return{medium:(0,n.css)(["height:32px;font-size:14px;"]),large:(0,n.css)(["height:36px;font-size:16px;"])}[t]}))},489:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(){return Date.now().toString(36)+Math.random().toString(36).slice(2)}},764:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var n=(0,r(9056).createGlobalStyle)(["body.","{overflow:hidden;}"],(function(e){return e.bodyClassName}))},921:(e,t,r)=>{"use strict";r.d(t,{A:()=>s,D:()=>i.D});var n=r(6540),o=r(961),i=r(3659);function a(e){return a="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},a(e)}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const s=function(e){var t,r,a=e.anchorEl,c=e.anchorRect,s=e.popoverRef,f=e.containerRef,p=e.placement,d=e.margins,m=e.overflowFixParams,h=e.withArrow,y=e.positioningGetter,v=(t=(0,n.useState)({arrow:null,position:{x:-1e3,y:-1e3}}),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(t,r)||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.")}()),g=v[0],b=v[1],w=(0,n.useRef)(null),x=(0,n.useCallback)((function(){var e;w.current&&cancelAnimationFrame(w.current);var t={anchorRect:c||(null==a?void 0:a.getBoundingClientRect()),objectRect:null===(e=s.current)||void 0===e?void 0:e.getBoundingClientRect()},r="function"==typeof y?y(t):(0,i.o)(l(l({},t),{},{container:null==f?void 0:f.current,placement:p,margins:d,overflowFixParams:m,withArrow:h}));w.current=requestAnimationFrame((function(){(0,o.flushSync)((function(){b((function(e){return e.position.x===r.position.x&&e.position.y===r.position.y?e:r})),w.current=null}))}))}),[a,c,s,f,p,d,m,h,y]);return(0,n.useEffect)((function(){return function(){w.current&&cancelAnimationFrame(w.current)}}),[]),[g,x]}},1016:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6540),o=r(2968),i=r(6508);const a=function(e){var t=e.onClick;return n.createElement(i.n,{className:"svgicon flaticon flaticons-v2--cross","aria-label":"Close","aria-required":"true",onClick:t},n.createElement(o.A,{width:"16",height:"16",xlinkHref:"flaticons-v2--cross"}))}},1206:(e,t,r)=>{"use strict";r.d(t,{F:()=>d});var n=r(6540),o=r(4554),i=r(5194),a=r(2595),c=r(8936);function l(e){return l="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},l(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetUserData,r=void 0===t?{}:t,l=e.theme,u=void 0===l?"light":l,p=e.gluePopups,d=e.onSubscribe,m=void 0===d?function(){}:d,h=e.id,y=f((0,n.useReducer)(a.F,a.u),2),v=y[0],g=y[1],b=f((0,n.useState)(r),2),w=b[0],x=b[1],E=f((0,n.useState)({componentId:h||Math.random().toString(36).substr(2,9)}),1)[0],j=r.targetId,S=w.targetUsername,O=w.isInSubscriptionList,L=w.friendGroupsData,k=w.isCommunity,_=E.componentId,C=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.username,n=t.data;if(r===S)if(n.is_invite_sent&&void 0===n.is_friend)x(s(s({},w),{},{joinRequestPending:!0}));else{var o=s(s({},w),{},{isInFriendList:n.is_friend,isInSubscriptionList:n.is_subscriber,remoteIsCommunityOwner:"owner"===(null===(e=Site.journal)||void 0===e?void 0:e.community_relation),remoteIsCommunityMember:n.is_member,joinRequestPending:n.is_invite_sent&&n.is_friend,isFollowerOfRemote:!n.is_friend&&!n.is_subscriber&&(n.is_subscriberof||n.is_friendof)});k&&(o.isInSubscriptionList=n.is_friend),x(o)}},P=function(e){(null==e?void 0:e.message)&&LJ.Messages.error(e.message)};if((0,n.useEffect)((function(){return LJ.Event.on("relations.changed",C),function(){LJ.Event.off("relations.changed",C)}})),(0,c.Vw)({targetUserId:j,reducerState:v,dispatch:g}),!S)return console.warn("SubscribeBtn2022: not enough data for render"),null;var N=function(e){LJ.Track.YM.call({method:"reachGoal",argArr:e})},A={onDropdownShow:function(){g({type:"markDropdownAsShown"})}},I=(0,c.ql)({reducerState:v,dispatch:g,targetUserId:j,targetUsername:S}),F=s(s(s({},A),w),{},{miscData:E,requestRelationActionCb:function(e){if("subscribe"===e){var t={target:S,is_subscriber:1,show_recommendations:!0};k&&delete t.is_subscriber,LJ.Api.callP("relations.addfriend",t).then((function(t){LJ.Event.trigger("relations.changed",{username:S,id:j,data:t,source:"SubscribeBtn2022",sourceCompId:_,action:e}),m()})).catch(P)}if("unsubscribe"===e){var r={target:S,is_subscriber:1};k&&delete r.is_subscriber,LJ.Api.call("relations.removefriend",r).then((function(t){LJ.Event.trigger("relations.changed",{username:S,id:j,data:t,source:"SubscribeBtn2022",sourceCompId:_,action:e})})).fail(P)}if("addToFriends"===e){var n={target:S,show_recommendations:!0};LJ.Api.callP("relations.addfriend",n).then((function(t){LJ.Event.trigger("relations.changed",{username:S,id:j,data:t,source:"SubscribeBtn2022",action:e}),N(["COMPLEX_SUBSCRIBE"])})).catch(P)}"removeFromFriends"===e&&LJ.Api.call("relations.removefriend",{target:S}).then((function(t){LJ.Event.trigger("relations.changed",{username:S,id:j,data:t,source:"SubscribeBtn2022",action:e}),N(["COMPLEX_UNSUBSCRIBE"])})).fail(P),"leaveComm"===e&&LJ.Api.call("relations.leave",{target:S}).then((function(t){LJ.Event.trigger("relations.changed",{username:S,id:j,data:t,source:"SubscribeBtn2022",sourceCompId:_,action:e})})).fail(P),"joinComm"===e&&LJ.Api.callP("relations.join",{target:S}).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return O?e:LJ.Api.call("relations.join",{target:S}).then((function(t){return s(s({},e),t)}))})).then((function(t){t.is_invite_sent&&x(s(s({},w),{},{isJoinRequestSent:!0})),N(["COMMUNITY_JOIN"]),LJ.Event.trigger("relations.changed",{username:S,id:j,data:t,source:"SubscribeBtn2022",action:e})})).catch(P)},requestGroupsDataCb:function(){LJ.Api.call("groups.list",{target:S}).then((function(e){x(s(s({},w),{},{friendGroupsData:e.groups}))}))},toggleFriendInGroupCb:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.shouldBeInGroup,n=L.map((function(e){return e.id===t?s(s({},e),{},{selected:r}):e})),o=n.map((function(e){return e.selected?e.id:null})).filter((function(e){return e}));LJ.Api.call("groups.update_users",{users:[{username:S,groups:o}]},void 0,{silent:!1}).then((function(){x(s(s({},w),{},{friendGroupsData:n}))})).fail((function(e){P(e)}))},gluePopups:p,userNoteProps:I});return n.createElement(o.N,{value:u},n.createElement(i.m,F))}},1525:(e,t,r)=>{"use strict";var n,o,i,a,c=!(null!==(n=Site.journal)&&void 0!==n&&n.is_friend)&&!(null!==(o=Site.journal)&&void 0!==o&&o.is_subscriber)&&((null===(i=Site.remote)||void 0===i?void 0:i.is_friend)||(null===(a=Site.remote)||void 0===a?void 0:a.is_subscriber));function l(e){return l="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},l(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}LJ.define("LJ.UserRelations");var f=!1,p={},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).silent,n=s(s({},p[e]||{}),t);p[e]=n,r||LJ.Event.trigger("UserRelations/".concat(e,"/changed"),n)},m=function(e){var t=p[e];return t&&s({},t)};LJ.UserRelations.init=function(){if(!f&&Site.remote){if(Site.journal&&Site.journal.username!==Site.remote.username){var e={isInSubscriptionList:Site.journal.is_subscriber,isInFriendList:Site.journal.is_friend,friendGroupsData:[],isCommunity:Site.journal.is_community,isFollowerOfRemote:c,remoteIsCommunityOwner:"owner"===Site.journal.community_relation,remoteIsCommunityMember:Site.journal.is_community&&Site.journal.is_member,joinRequestPending:Site.journal.is_invite_sent&&Site.journal.is_friend,isBannedInCommunity:Site.journal.is_banned};e.isCommunity&&(e.isInSubscriptionList=Site.journal.is_friend),d(Site.journal.username,e,{silent:!0})}LJ.UserRelations.patch=d,LJ.UserRelations.getUserRelations=m,LJ.Event.on("relations.changed",(function(e){var t=e.data,r=e.username,n=t.is_subscriber,o=t.is_friend,i=t.is_member,a=t.is_invite_sent,c=m(r),l={isInSubscriptionList:n,isInFriendList:o,remoteIsCommunityMember:i,joinRequestPending:a&&o,isFollowerOfRemote:!(o||n||!Site.remote.is_friend&&!Site.remote.is_subscriber)};null!=c&&c.isCommunity&&(l.isInSubscriptionList=o),d(r,l)})),f=!0}},r(4536);var h=r(6540),y=r(5338),v=r(2968),g=140;function b(e){return b="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},b(e)}function w(){w=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:_(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function x(){}var E={};u(E,a,(function(){return this}));var j=Object.getPrototypeOf,S=j&&j(j(I([])));S&&S!==r&&n.call(S,a)&&(E=S);var O=x.prototype=v.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==b(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(b(t)+" is not iterable")}return g.prototype=x,o(O,"constructor",{value:x,configurable:!0}),o(x,"constructor",{value:g,configurable:!0}),g.displayName=u(x,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,l,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(k.prototype),u(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(O),u(O,l,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function x(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function E(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){x(i,n,o,a,c,"next",e)}function c(e){x(i,n,o,a,c,"throw",e)}a(void 0)}))}}var j=function(){var e=E(w().mark((function e(t){var r,n,o;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.username,n={user:r},e.next=4,LJ.Api.callP("user.get_achievements",n);case 4:return o=e.sent,e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),S=function(){var e=E(w().mark((function e(t,r,n){var o,i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={journal:t,vgift_id:r,mark:n},e.next=3,LJ.Api.callP("user.achievement_congratulate",o).catch((function(e){LJ.Messages.error(e.message)}));case 3:return i=e.sent,e.abrupt("return",i);case 5:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),O=function(){var e=E(w().mark((function e(t){var r,n;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={vgift_id:t},e.next=3,LJ.Api.callP("user.achievement_levels",r).catch((function(e){LJ.Messages.error(e.message)}));case 3:return n=e.sent,e.abrupt("return",n);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L=r(8081),k=r(9056),_=(0,k.keyframes)(["0%{background-position:-468px 0;}100%{background-position:468px 0;}"]),C=(0,k.css)(["width:100%;border-radius:4px;background:gray;background:linear-gradient(to right,rgba(130,130,130,0.2) 8%,rgba(130,130,130,0.3) 18%,rgba(130,130,130,0.2) 33%);background-size:920px 425px;animation:"," 4s infinite ease-out;"],_),P=k.default.div.withConfig({displayName:"Card",componentId:"sc-2gadkc-0"})(["display:flex;align-items:center;width:100%;& + &{margin-top:8px;}"]),N=k.default.div.withConfig({displayName:"Image",componentId:"sc-2gadkc-1"})(["",";flex-shrink:0;width:100px;height:100px;margin-right:10px;border-radius:50%;"],C),A=k.default.div.withConfig({displayName:"Content",componentId:"sc-2gadkc-2"})(["display:flex;flex-direction:column;justify-content:center;gap:4px;flex:1;"]),I=k.default.div.withConfig({displayName:"Name",componentId:"sc-2gadkc-3"})(["",";height:20px;"],C),F=k.default.div.withConfig({displayName:"Text",componentId:"sc-2gadkc-4"})(["",";height:40px;"],C),D=k.default.div.withConfig({displayName:"Date",componentId:"sc-2gadkc-5"})(["",";height:16px;"],C),T=k.default.div.withConfig({displayName:"Button",componentId:"sc-2gadkc-6"})(["",";width:70px;height:28px;margin-top:16px;"],C),M=function(){return h.createElement(P,null,h.createElement(N,null),h.createElement(A,null,h.createElement(I,null),h.createElement(F,null),h.createElement(D,null)))},J=function(){return h.createElement(T,null)},U=k.default.dl.withConfig({displayName:"Details",componentId:"sc-a3vroj-0"})(["margin:0;padding:0;text-align:left;"]),R=k.default.div.withConfig({displayName:"Item",componentId:"sc-a3vroj-1"})(["display:flex;align-items:center;& + &{marign-top:20px;}"]),G=k.default.div.withConfig({displayName:"ItemIllustration",componentId:"sc-a3vroj-2"})(["margin-right:10px;flex-shrink:0;color:#333;svg{width:100px;height:100px;color:#E6EFF2;}"]),B=k.default.div.withConfig({displayName:"ItemInfo",componentId:"sc-a3vroj-3"})([""]),z=k.default.dt.withConfig({displayName:"ItemName",componentId:"sc-a3vroj-4"})(["margin:0;padding:0;font-size:16px;line-height:1.2;font-weight:700;color:#333;"]),q=k.default.dd.withConfig({displayName:"ItemText",componentId:"sc-a3vroj-5"})(["margin:0;margin-top:4px;padding:0;font-size:14px;line-height:1.2;font-weight:400;color:#333;"]),$=k.default.time.withConfig({displayName:"ItemDate",componentId:"sc-a3vroj-6"})(["display:block;margin-top:4px;font-size:13px;line-height:1.2;font-weight:400;color:#7A9199;"]),H=k.default.div.withConfig({displayName:"Buttons",componentId:"sc-a3vroj-7"})(["display:flex;align-items:center;justify-content:space-between;gap:8px 16px;&:not(:empty){margin-top:16px;}"]);function Y(e){return Y="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},Y(e)}function W(){W=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Y(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Y(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Z(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function V(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||X(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 X(e,t){if(e){if("string"==typeof e)return K(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?K(e,t):void 0}}function K(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Q=Site.locale.includes("ru")?"ru":"en";const ee=function(e){var t,r=e.achievementData,n=e.handleCloseDetails,o=r.vgift_id,i=r.max_level,a=V((0,h.useState)([]),2),c=a[0],l=a[1],u=V((0,h.useState)(!1),2),s=u[0],f=u[1];return(0,h.useEffect)((function(){var e=function(){var e,t=(e=W().mark((function e(){var t,r;return W().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f(!0),e.next=4,O(o);case 4:t=e.sent,r=t.levels,l(r),f(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),f(!1);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Z(i,n,o,a,c,"next",e)}function c(e){Z(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[o]),s?h.createElement(h.Fragment,null,(t=Array(i),function(e){if(Array.isArray(e))return K(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||X(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(e,t){return h.createElement(M,{key:t})})),h.createElement(J,null)):h.createElement(h.Fragment,null,h.createElement(U,null,c.map((function(e){return h.createElement(R,{key:e.vgift_id},h.createElement(G,null,e.achieved?h.createElement("img",{src:e.image_small,width:"100",height:"100",alt:e.display}):h.createElement(v.A,{xlinkHref:"flaticons-v2--lock"})),h.createElement(B,null,h.createElement(z,null,e.display),h.createElement(q,null,e.description),e.date?h.createElement($,{datetime:e.date},LJ.ml("ljcom.userinfo.achievements.congratulate.progress.card.date",{date:moment(e.date).locale(Q).format("MMM DD, YYYY")})):null))}))),h.createElement(H,null,h.createElement(L.A,{primary:!0,onClick:n},LJ.ml("ljcom.userinfo.achievements.congratulate.button.close"))))};var te,re=r(2600),ne=r(2464),oe=r(3659),ie=(0,k.default)(L.A).withConfig({displayName:"CongratulateRemove",componentId:"sc-1bwxldm-0"})(["display:flex;align-items:center;padding:4px;font-size:13px;line-height:1;font-weight:600;transition:background-color 0.15s linear;cursor:pointer;"]),ae=Site.journal.username===(null===(te=Site.remote)||void 0===te?void 0:te.username),ce=Site.journal.username;const le=function(e){var t=e.onlyCurrentUserCongratulated,r=e.vgiftId,n=e.toggleCongratulate;return ae?LJ.ml("ljcom.userinfo.achievements.congratulate.info.text"):t?h.createElement(ie,{type:"button",text:!0,"aria-label":LJ.ml("ljcom.userinfo.achievements.congratulate.button.remove.aria_label"),onClick:function(){return n(ce,r,1)}},LJ.ml("ljcom.userinfo.achievements.congratulate.info.text.congratilated.you",{username:ce})):h.createElement(h.Fragment,null,h.createElement(ie,{type:"button",text:!0,"aria-label":LJ.ml("ljcom.userinfo.achievements.congratulate.button.remove.aria_label"),onClick:function(){return n(ce,r,1)}},LJ.ml("ljcom.userinfo.achievements.congratulate.info.text.congratilated.you")),LJ.ml("ljcom.userinfo.achievements.congratulate.info.text.congratilated"))};var ue,se=r(1834),fe=k.default.div.withConfig({displayName:"ImageWrapper",componentId:"sc-ndtudq-0"})([".svgicon{width:auto;height:120px;fill:#E6EFF2;}"]),pe=k.default.img.withConfig({displayName:"Image",componentId:"sc-ndtudq-1"})(["width:140px;height:140px;object-fit:cover;object-position:center;"]),de=k.default.p.withConfig({displayName:"Description",componentId:"sc-ndtudq-2"})(["margin:10px 0;font-size:14px;line-height:17px;color:",";"],(function(e){return e.$isLock?"#7A9199":"#333333"})),me=k.default.div.withConfig({displayName:"ProgressIndicator",componentId:"sc-ndtudq-3"})(["margin:10px 0;"]),he=k.default.div.withConfig({displayName:"ProgressIndicatorText",componentId:"sc-ndtudq-4"})(["margin-bottom:4px;font-size:14px;font-weight:400;text-align:center;color:#333333;"]),ye=k.default.div.withConfig({displayName:"ProgressIndicatorRange",componentId:"sc-ndtudq-5"})(["--progress:0;position:relative;width:200px;height:4px;border-radius:6px;background-color:#E6EFF2;box-shadow:0 0 0 1px #E6EFF2;overflow:hidden;&::before{content:'';position:absolute;top:0;left:0;bottom:0;width:var(--progress);border-radius:inherit;background:#1B6785;background:linear-gradient(90deg,rgba(27,103,133,1) 0%,rgba(36,138,178,1) 100%);}"]),ve=k.default.p.withConfig({displayName:"Date",componentId:"sc-ndtudq-6"})(["margin:0 0 16px;text-transform:capitalize;font-size:13px;line-height:16px;color:#7A9199;"]),ge=(0,k.default)(L.A).withConfig({displayName:"CongratulateButton",componentId:"sc-ndtudq-7"})(["display:flex;align-items:center;padding:4px;font-size:13px;line-height:1;font-weight:600;transition:background-color 0.15s linear;cursor:pointer;svg{width:24px;height:24px;margin-left:4px;transform:translateY(-2px);}"]),be=k.default.div.withConfig({displayName:"CongratulateCount",componentId:"sc-ndtudq-8"})(["margin:0;margin-right:-4px;padding:0 4px;border:0;font-size:13px;line-height:1;font-weight:600;background-color:transparent;"]),we=k.default.div.withConfig({displayName:"CongratulateInfo",componentId:"sc-ndtudq-9"})(["position:relative;display:flex;align-items:center;margin:0;padding:0;font-size:13px;line-height:1;font-weight:600;color:#333333;svg{width:24px;height:24px;margin-left:4px;transform:translateY(-2px);}"]),xe=k.default.button.withConfig({displayName:"CongratulateInfoCount",componentId:"sc-ndtudq-10"})(["margin:0 4px;padding:0;border:0;font:inherit;color:inherit;background-color:transparent;"]),Ee=k.default.div.withConfig({displayName:"Buttons",componentId:"sc-ndtudq-11"})(["display:flex;align-items:center;justify-content:space-between;gap:8px 16px;&:not(:empty){margin-top:16px;}"]),je=k.default.div.withConfig({displayName:"Popup",componentId:"sc-ndtudq-12"})(["position:absolute;display:flex;flex-direction:column;padding:5px 0 8px;border-radius:4px;text-align:left;background-color:#00303F;z-index:5000;",' a{display:block;padding:4px 8px;font-size:12px;line-height:1.2;font-weight:400;color:#fff;&:hover{text-decoration:underline;}}&::before{content:"";position:absolute;top:-18px;left:-8px;right:-8px;bottom:-8px;cursor:default;z-index:-1;}&::after{content:"";position:absolute;left:50%;width:0;height:0;display:block;border:4px solid transparent;transform:translateX(-50%);'," ","}"],(function(e){var t=e.$position;return t&&(0,k.css)(["top:","px;left:","px;"],t.y,t.x)}),(function(e){return"top"===e.$arrowPosition&&(0,k.css)(["top:-4px;border-top:0;border-bottom-color:#00303F;"])}),(function(e){return"bottom"===e.$arrowPosition&&(0,k.css)(["bottom:-4px;border-bottom:0;border-top-color:#00303F;"])})),Se=(0,k.default)(se.Ay).withConfig({displayName:"Modal",componentId:"sc-ndtudq-13"})(["max-width:500px;"]),Oe=k.default.ul.withConfig({displayName:"ModalWrapper",componentId:"sc-ndtudq-14"})(["display:flex;flex-direction:column;margin:0;padding:0;"]),Le=k.default.li.withConfig({displayName:"User",componentId:"sc-ndtudq-15"})(["display:flex;align-items:center;gap:8px;padding:8px 0;list-style:none;border-bottom:1px solid #D4DCE0;&:last-child{border:none;}"]),ke=k.default.img.withConfig({displayName:"UserPic",componentId:"sc-ndtudq-16"})(["display:block;width:32px;height:32px;border-radius:4px;object-fit:cover;"]),_e=k.default.button.withConfig({displayName:"MoreButton",componentId:"sc-ndtudq-17"})(["margin:0;padding:4px 8px;font-size:12px;line-height:1.2;border:none;background-color:transparent;cursor:pointer;color:#FFFFFF;&:hover,&:focus{text-decoration:underline;}"]);function Ce(e){return Ce="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},Ce(e)}function Pe(){Pe=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ce(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Ce(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ne(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==Ce(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ce(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ne(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ie(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function Fe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return De(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?De(e,t):void 0}}(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 De(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Te=Site.locale.includes("ru")?"ru":"en",Me=encodeURIComponent,Je=Site.journal.username===(null===(ue=Site.remote)||void 0===ue?void 0:ue.username),Ue=!LJ.get("page.ljold"),Re=LJ.Support.isMobile(),Ge=Site.remote;const Be=function(e){var t=e.achievementData,r=void 0===t?{}:t,n=e.setAchievementData,o=void 0===n?function(){}:n,i=e.handleShowDetails,a=r.display,c=r.image_large,l=r.description,u=r.achieved,s=r.level,f=r.max_level,p=r.date,d=r.vgift_id,m=r.congratulation,y=m.congratulated,g=m.users,b=Fe((0,h.useState)(!1),2),w=b[0],x=b[1],E=Fe((0,h.useState)(!1),2),j=E[0],O=E[1],k=(0,h.useRef)(null),_=(0,h.useRef)(null),C=Fe((0,h.useState)({x:-1e3,y:-1e3}),2),P=C[0],N=C[1],A=(0,h.useCallback)((function(){var e,t,r=(0,oe.o)({anchorRect:null===(e=_.current)||void 0===e?void 0:e.getBoundingClientRect(),objectRect:null===(t=k.current)||void 0===t?void 0:t.getBoundingClientRect(),placement:oe.D.bottom,margins:{y:4}}).position;N(r)}),[]),I={title:Me(LJ.ml("ljcom.userinfo.achievements.post.title",{name:a})),body:Me("\n      <img src=".concat(c," />\n      <blockquote>").concat(l,"</blockquote>\n    "))},F=Ue&&!Re?"".concat(Site.siteroot,"/post?title=").concat(I.title,"&htmlContent=").concat(I.body):"".concat(Site.siteroot,"/update.bml?subject=").concat(I.title,"&event=").concat(I.body),D=0===g.length&&y,T=function(){var e,t=(e=Pe().mark((function e(t,r,n){return Pe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,S(t,r,n);case 3:if(e.sent){e.next=6;break}return e.abrupt("return");case 6:o((function(e){return e.map((function(e){return e.isActive?Ae(Ae({},e),{},{congratulation:Ae(Ae({},e.congratulation),{},{congratulated:!e.congratulation.congratulated})}):Ae({},e)}))})),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),LJ.Messages.add({type:"error",body:e.t0.message});case 12:case"end":return e.stop()}}),e,null,[[0,9]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ie(i,n,o,a,c,"next",e)}function c(e){Ie(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e,r,n){return t.apply(this,arguments)}}();return(0,h.useEffect)((function(){w&&A()}),[w,A]),h.createElement(h.Fragment,null,h.createElement(fe,null,u?h.createElement(pe,{src:c,width:"140",height:"140",alt:a}):h.createElement(v.A,{xlinkHref:"flaticon--lock"})),h.createElement(de,{dangerouslySetInnerHTML:{__html:l},$isLock:!u}),Je&&f?h.createElement(me,null,h.createElement(he,null,LJ.ml("ljcom.userinfo.achievements.congratulate.progress.from",{currentLevel:s,maxLevel:f})),h.createElement(ye,{style:{"--progress":"".concat(100*s/f,"%")}})):null,Je&&u?h.createElement(ve,null,LJ.ml("ljcom.userinfo.achievements.received_date",{date:moment(p).locale(Te).format("MMM DD, YYYY")})):null,!Ge||Je||y?null:h.createElement(we,null,h.createElement(ge,{type:"button",text:!0,"aria-label":LJ.ml("ljcom.userinfo.achievements.congratulate.button.aria_label",{user:Site.journal.username}),onClick:function(){return T(Site.journal.username,d,0)}},LJ.ml("ljcom.userinfo.achievements.congratulate.button.text")),g.length>0&&h.createElement(be,{ref:_,tabIndex:0,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)}},g.length),h.createElement(v.A,{width:"24",height:"24",xlinkHref:"flaticons-v2--spec-boom"})),y||Je&&g.length&&!y?h.createElement(we,null,h.createElement(le,{onlyCurrentUserCongratulated:D,vgiftId:d,toggleCongratulate:T}),!D&&h.createElement(xe,{ref:_,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)}},g.length),h.createElement(v.A,{width:"24",height:"24",xlinkHref:"flaticons-v2--spec-boom"})):null,w&&h.createElement(re.Z,null,h.createElement(je,{$position:P,ref:k,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)}},g.slice(0,5).map((function(e){return h.createElement("a",{href:e.profile_url,key:e.id},e.display_username)})),g.length>5&&h.createElement(_e,{type:"button",onClick:function(){return O(!0)}},LJ.ml("ljcom.userinfo.achievements.congratulate.popup.more",{count:g.length-5})))),Je&&h.createElement(Ee,null,f?h.createElement(L.A,{noBorder:!0,onClick:i},LJ.ml("ljcom.userinfo.achievements.congratulate.button.more")):null,u?h.createElement(L.A,{as:"a",href:F,primary:!0},LJ.ml("ljcom.userinfo.achievements.congratulate.button.share")):null),j&&h.createElement(Se,{title:LJ.ml("ljcom.userinfo.achievements.congratulate.modal.title",{count:g.length}),onClose:function(){return O(!1)}},h.createElement(Oe,null,g.map((function(e){return h.createElement(Le,{key:e.id},h.createElement("a",{href:e.profile_url,target:"_blank"},e.userpic_url&&h.createElement(ke,{src:e.userpic_url,alt:e.display_username})),h.createElement(ne.c,{userData:{username:e.username,displayUsername:e.display_username,journalUrl:e.journal_url,profileUrl:e.profile_url}}))})))))};var ze=(0,k.default)(se.Ay).withConfig({displayName:"Wrapper",componentId:"sc-1l6wbxb-0"})(["max-width:",";text-align:center;"],(function(e){return e.$isShowDetails?"540px":"380px"})),qe=k.default.div.withConfig({displayName:"Body",componentId:"sc-1l6wbxb-1"})(["display:flex;flex-direction:column;align-items:center;"]);function $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const He=function(e){var t,r,n=e.onClose,o=e.data,i=void 0===o?{}:o,a=e.setData,c=void 0===a?function(){}:a,l=(t=(0,h.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return $e(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$e(e,t):void 0}}(t,r)||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.")}()),u=l[0],s=l[1];return h.createElement(ze,{title:u?LJ.ml("ljcom.userinfo.achievements.congratulate.levels.title"):i.display,onClose:n,$isShowDetails:u},h.createElement(qe,null,u?h.createElement(ee,{achievementData:i,setDataAchievement:c,handleCloseDetails:function(){return s(!1)}}):h.createElement(Be,{achievementData:i,setAchievementData:c,handleShowDetails:function(){return s(!0)}})))};var Ye=k.default.div.withConfig({displayName:"Wrapper",componentId:"sc-rsmut0-0"})(["display:inline-flex;svg{display:block;width:",";height:",";animation:svgrotate .57s linear infinite;}@keyframes svgrotate{100%{transform:rotate(360deg);}}"],(function(e){var t=e.$size;return"".concat(t,"px")}),(function(e){var t=e.$size;return"".concat(t,"px")}));var We,Ze=k.default.div.withConfig({displayName:"Wrapper",componentId:"sc-16m5tup-0"})(["position:relative;display:flex;justify-content:center;align-items:center;gap:10px;margin-bottom:4px;background:#FFFFFF;"]),Ve=(0,k.default)((function(e){var t=e.className,r=e.size,n=void 0===r?16:r;return h.createElement(Ye,{className:t,$size:n},h.createElement("svg",{viewBox:"0 0 31 31",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h.createElement("g",{fillRule:"evenodd"},h.createElement("path",{d:"M15.5,31 C24.0604136,31 31,24.0604136 31,15.5 C31,6.93958638 24.0604136,0 15.5,0 C6.93958638,0 0,6.93958638 0,15.5 C0,24.0604136 6.93958638,31 15.5,31 Z M15.5,24 C20.1944204,24 24,20.1944204 24,15.5 C24,10.8055796 20.1944204,7 15.5,7 C10.8055796,7 7,10.8055796 7,15.5 C7,20.1944204 10.8055796,24 15.5,24 Z",fill:"#00AFEA"}),h.createElement("path",{d:"M15.7960584,7.00505942 L15.8509795,0.00389541322 C20.1020367,0.0983450811 23.9309467,1.90428116 26.675877,4.7598713 L26.675877,4.7598713 L21.7412314,9.72958246 C20.2508535,8.11838542 18.1443589,7.08544079 15.7960584,7.00505942 Z",fill:"#346B7C"}))))})).withConfig({displayName:"SliderLoader",componentId:"sc-16m5tup-1"})(["svg{width:30px;height:30px;}"]),Xe=k.default.button.withConfig({displayName:"SliderNavButton",componentId:"sc-16m5tup-2"})(["display:flex;justify-content:center;align-items:center;margin-bottom:24px;padding:0 16px;height:100px;border:none;border-radius:50%;background:#FFFFFF;text-align:center;cursor:pointer;svg{width:12px;height:60px;fill:#7A9199;transition:fill .2s;}&[disabled]{opacity:0;pointer-events:none;visibility:hidden;}"]),Ke=k.default.ul.withConfig({displayName:"List",componentId:"sc-16m5tup-3"})(["display:flex;gap:40px;width:100%;margin:0;padding:0;overflow-x:auto;list-style:none;"]),Qe=k.default.li.withConfig({displayName:"ListItem",componentId:"sc-16m5tup-4"})([""]),et=k.default.button.withConfig({displayName:"AchievementCard",componentId:"sc-16m5tup-5"})(["display:inline-block;width:100px;margin:0;padding:0;border:0;color:#333333;vertical-align:top;text-align:center;background-color:transparent;cursor:pointer;&:hover{color:#00A3D9;}&:actove{color:#0086B3;}&:focus{outline:none;}&:focus-visible{outline:2px solid #00A3D9;outline-offset:-2px;}"]),tt=k.default.img.withConfig({displayName:"AchievementImage",componentId:"sc-16m5tup-6"})(["width:100px;height:100px;"]),rt=(0,k.default)(v.A).withConfig({displayName:"AchievementPlaceholderImage",componentId:"sc-16m5tup-7"})(["width:100px;height:100px;fill:#E6EFF2;"]),nt=k.default.h3.withConfig({displayName:"AchievementName",componentId:"sc-16m5tup-8"})(["margin:0;padding:0;font-size:12px;line-height:1.2;font-weight:400;color:inherit;"]),ot=k.default.h3.withConfig({displayName:"AchievementPlaceholderName",componentId:"sc-16m5tup-9"})(["margin:0;padding:0;font-size:12px;line-height:1.2;font-weight:400;color:#7A9199;"]);function it(e){return it="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},it(e)}function at(){at=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==it(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(it(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function ct(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function lt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==it(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==it(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===it(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function st(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ft(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ft(e,t):void 0}}(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 ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var pt=Site.journal.username===(null===(We=Site.remote)||void 0===We?void 0:We.username);const dt=function(){var e=st((0,h.useState)([]),2),t=e[0],r=e[1],n=st((0,h.useState)(!1),2),o=n[0],i=n[1],a=st((0,h.useState)(!1),2),c=a[0],l=a[1],u=st((0,h.useState)(!1),2),s=u[0],f=u[1],p=(0,h.useRef)(null),d=st((0,h.useState)({isShow:!1}),2),m=d[0],y=d[1],b=new URLSearchParams(window.location.search).get("vgift_id"),w=function(e){r((function(t){return t.map((function(t){return t.vgift_id===e?ut(ut({},t),{},{isActive:!0}):ut({},t)}))})),y({isShow:!0})},x=(0,h.useMemo)((function(){return t.filter((function(e){return e.isActive}))[0]}),[t]);return(0,h.useEffect)((function(){var e=function(){var e,t=(e=at().mark((function e(){var t,n;return at().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,f(!0),e.next=4,j({username:Site.journal.username});case 4:t=e.sent,n=t.achievements,r(n),f(!1),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),f(!1);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){ct(i,n,o,a,c,"next",e)}function c(e){ct(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();e()}),[]),(0,h.useEffect)((function(){if(p.current&&t.length){var e=new ResizeObserver((function(){p.current.clientWidth<p.current.scrollWidth&&l(!0)}));return e.observe(p.current),function(){e.disconnect()}}}),[t.length]),(0,h.useEffect)((function(){if(b&&t.length){var e=t.filter((function(e){return e.vgift_id===b}));if(!e.length)return;w(e[0].vgift_id),document.querySelector("#about").scrollIntoView(),window.history.replaceState({},document.title,window.location.pathname)}}),[b,t]),s?h.createElement(Ze,null,h.createElement(Ve,null)):h.createElement(Ze,null,h.createElement(Xe,{type:"button",onClick:function(){var e=p.current.scrollLeft;p.current.scroll({left:(Math.trunc(e/g)-1)*g,behavior:"smooth"})},"aria-label":LJ.ml("ljcom.userinfo.achievements.slider.button.left"),disabled:!o},h.createElement(v.A,{xlinkHref:"flaticon--arrow-left"})),h.createElement(Ke,{className:"m-scrollbar",ref:p,onScroll:function(){var e=p.current.lastChild.getBoundingClientRect(),t=e.left,r=e.width,n=p.current.firstChild.getBoundingClientRect().left,o=p.current.getBoundingClientRect(),a=o.left,c=o.width;a+c>=t+r-1?l(!1):a+c<t+r&&(l(!0),a>n?i(!0):n<=a&&i(!1))}},t.filter((function(e){return Boolean(e.achieved)||pt})).map((function(e){return h.createElement(Qe,{key:e.vgift_id},h.createElement(et,{type:"button","aria-label":"".concat(LJ.ml("ljcom.userinfo.achievements.card")," ").concat(e.display),onClick:function(){return w(e.vgift_id)}},e.achieved?h.createElement(h.Fragment,null,h.createElement(tt,{src:e.image_small}),h.createElement(nt,null,e.display)):h.createElement(h.Fragment,null,h.createElement(rt,{xlinkHref:"flaticon--lock"}),h.createElement(ot,null,e.display))))}))),h.createElement(Xe,{type:"button",onClick:function(){var e=p.current.scrollLeft;p.current.scroll({left:(Math.trunc(e/g)+1)*g,behavior:"smooth"})},"aria-label":LJ.ml("ljcom.userinfo.achievements.slider.button.right"),disabled:!c},h.createElement(v.A,{xlinkHref:"flaticon--arrow-right"})),m.isShow&&h.createElement(He,{data:x,setData:r,onClose:function(){y({isShow:!1}),r((function(e){return e.map((function(e){return e.isActive?ut(ut({},e),{},{isActive:!1}):ut({},e)}))}))}}))};LJ.define("LJ.Profile.Achievements"),LJ.Profile.Achievements.init=function(){LJ.Util.DOM.initPromise.then((function(){var e=document.querySelector("[data-achievements-mount]");e&&(0,y.H)(e).render(h.createElement(dt,null))}))};var mt=r(7202),ht=r(339),yt=r(74),vt=r(4554),gt=r(9710),bt=k.default.div.withConfig({displayName:"Wrapper",componentId:"sc-3oa966-0"})(["position:relative;display:flex;align-items:center;justify-content:flex-start;"]),wt=k.default.label.withConfig({displayName:"Slider",componentId:"sc-3oa966-1"})(['box-sizing:border-box;display:block;width:40px;height:24px;padding:1px;border:1px solid #DFE6E8;border-radius:12px;background-color:#F5F7F8;transition:border-width .15s,border-color .15s,background-color .15s;cursor:pointer;&:before{content:"";display:block;width:20px;height:20px;box-shadow:0 0 2px 0 rgb(0 0 0 / 8%),0 4px 8px 0 rgb(0 0 0 / 12%);border-radius:10px;background-color:#fff;transition:margin .2s;}']),xt=k.default.label.withConfig({displayName:"Label",componentId:"sc-3oa966-2"})(["word-break:break-word;font-size:14px;line-height:16px;color:#000000;"," ",""],(function(e){return"left"===e.labelPosition&&(0,k.css)(["order:0;margin-right:12px;"])}),(function(e){return"right"===e.labelPosition&&(0,k.css)(["order:1;margin-left:12px;"])})),Et=k.default.input.withConfig({displayName:"Control",componentId:"sc-3oa966-3"})(["position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;white-space:nowrap;clip-path:inset(100%);clip:rect(0 0 0 0);overflow:hidden;&:checked ~ ","{border-color:transparent;background-color:#00A3D9;}&:checked ~ ","::before{margin-left:16px;}&:hover ~ ","{border-color:#BDC8CD;}&:focus ~ ","{border-color:#00C0FF;}&:checked:hover ~ ",",&:checked:focus ~ ","{border-color:transparent;background-color:#00C0FF;}&:disabled{& ~ *{cursor:not-allowed;}& ~ ","{color:#8c969b;}& ~ ","{border:1px solid #DFE6E8;}&:checked ~ ","{background-color:#d5dde0;cursor:not-allowed;}}"],wt,wt,wt,wt,wt,wt,xt,wt,wt),jt=["onChange","className","label","checked","id","labelPosition","disabled","autoFocus"];function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},St.apply(this,arguments)}const Ot=function(e){var t=e.onChange,r=e.className,n=e.label,o=e.checked,i=e.id,a=e.labelPosition,c=void 0===a?"left":a,l=e.disabled,u=e.autoFocus,s=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,jt);return h.createElement(bt,St({className:r},s),h.createElement(Et,{onChange:t,type:"checkbox",id:i,checked:o,disabled:l,autoFocus:u}),n&&h.createElement(xt,{htmlFor:i,labelPosition:c},n),h.createElement(wt,{htmlFor:i,$disabled:l}))};var Lt=function(e){var t=e.onChange,r=e.event,n=e.description,o=e.method,i=e.id,a=e.isActive,c=e.isMobile,l=function(e){var n=e.target;t({event:r,method:o,isActive:n.checked})};return h.createElement(h.Fragment,null,!c&&h.createElement("label",{className:"lightcheckbox"},h.createElement("input",{className:"lightcheckbox__input",type:"checkbox",id:i,checked:a,onChange:l}),h.createElement("span",{className:"lightcheckbox__text"},n)),!!c&&h.createElement(Ot,{checked:a,onChange:l,label:n,id:i}))},kt=k.default.ul.withConfig({displayName:"List",componentId:"sc-10wr8u4-0"})(["list-style:none;margin:0;padding:0;",""],(function(e){return e.isMobile&&(0,k.css)(["& li:not(:last-of-type){margin-bottom:15px;}"])})),_t=k.default.li.withConfig({displayName:"ListItem",componentId:"sc-10wr8u4-1"})(["display:flex;align-items:center;flex-wrap:wrap;"]),Ct=(k.default.span.withConfig({displayName:"ItemDescription",componentId:"sc-10wr8u4-2"})(["font-size:14px;line-height:20px;font-weight:400;color:#333333;"]),k.default.span.withConfig({displayName:"PreloaderContainer",componentId:"sc-10wr8u4-3"})(["display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin-right:8px;"]),k.default.div.withConfig({displayName:"ModalFooter",componentId:"sc-10wr8u4-4"})(["display:flex;justify-content:flex-end;"])),Pt=(k.default.button.withConfig({displayName:"Button",componentId:"sc-10wr8u4-5"})(["cursor:pointer;"]),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,r=e.onSubscriptionChange,n=e.subscriptions,o=e.targetNode,i=e.isGlued,a=LJ.Support.isMobile(),c=n.filter((function(e){return"newEntry"===e.event})).map((function(e){var t=e.event,n=e.method,o=e.description,i=e.isActive,c="".concat(t,"-").concat(n);return h.createElement(_t,{className:"basepopup__item",key:c},h.createElement(Lt,{event:t,method:n,description:o,isMobile:a,onChange:r,isActive:i,id:c}))})),l=h.createElement(Ct,null,h.createElement(L.A,{onClick:t,type:"button",primary:!0,sizeL:!0},LJ.ml("notif_dropdown_2022.button")));return h.createElement(h.Fragment,null,!a&&h.createElement(gt.A,{className:(0,yt._)([i&&"basepopup--glued"]),anchorEl:o,placement:i?gt.c.bottomStart:gt.c.bottom,margins:{y:i?0:5},closeOnScroll:!0,withArrow:!i,onClose:t},h.createElement("div",{className:"basepopup__title"},LJ.ml("notif_dropdown_2022.title")),h.createElement(kt,null,c)),!!a&&h.createElement(se.Ay,{title:LJ.ml("notif_dropdown_2022.title"),onClose:t,footer:l,withCloseBtn:!1},h.createElement("div",{className:"basepopup__group"},h.createElement(kt,{isMobile:a},c))))}),Nt=(0,k.keyframes)(["from{transform:translateY(0);opacity:1;}to{transform:translateY(10px);opacity:0;}"]),At=(0,k.default)(gt.A).withConfig({displayName:"Popover",componentId:"sc-128wtuh-0"})(["",""],(function(e){var t=e.$animationDuration,r=e.$animationDelay;return(0,k.css)(["animation:"," ","ms linear ","ms forwards;"],Nt,t,r)})),It=k.default.button.withConfig({displayName:"CloseButton",componentId:"sc-128wtuh-1"})(["display:inline-flex;.svgicon{width:12px;height:12px;}"]),Ft=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,r=e.targetNode,n=e.isGlued;return(0,h.useEffect)((function(){var e=setTimeout((function(){t()}),3500);return function(){clearTimeout(e)}}),[t]),h.createElement(At,{className:(0,yt._)([n&&"basepopup--glued"]),$animationDuration:500,$animationDelay:3e3,anchorEl:r,placement:n?gt.c.bottomStart:gt.c.bottom,margins:{y:n?0:5},withArrow:!n,onClose:t},h.createElement(It,{onClick:t,className:"basepopup__close",type:"button"},h.createElement(v.A,{className:"basepopup__close-icon",xlinkHref:"flaticon--cross-2"})),h.createElement("p",null,LJ.ml("notif_dropdown_tip")))};function Dt(e){return Dt="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},Dt(e)}function Tt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Mt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Tt(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==Dt(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Dt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Dt(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Jt(){Jt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Dt(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Dt(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Ut(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function Rt(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Ut(i,n,o,a,c,"next",e)}function c(e){Ut(i,n,o,a,c,"throw",e)}a(void 0)}))}}function Gt(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Bt(e,t):void 0}}(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 Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var zt={active:"flaticon--bell-active",inactive:"flaticon--bell"},qt=function e(t){var r=t.targetUsername,n=t.className,o=t.isShown,i=t.text,a=t.theme,c=void 0===a?"light":a,l=t.gluePopups,u=t.id,s=Gt((0,h.useState)(o),2),f=s[0],p=s[1],d=(0,h.useState)((function(){return function(e){var t=LJ.Misc.NotifSubs.getUserSubs(e,"newEntry");return[{event:"newEntry",method:"notifCenter",description:LJ.ml("notif_dropdown_2022.notify.in.notif.center"),isActive:null==t?void 0:t.includes("notifCenter"),requestTimeout:null},{event:"newEntry",method:"email",description:LJ.ml("notif_dropdown_2022.notify.in.email"),isActive:null==t?void 0:t.includes("email"),requestTimeout:null}]}(r)})),m=Gt(d,2),y=m[0],v=m[1],g=Gt((0,h.useState)(null),2),b=g[0],w=g[1],x=Gt((0,h.useState)(!1),2),E=x[0],j=x[1],S=Gt((0,h.useState)(!1),2),O=S[0],L=S[1],k=(0,h.useRef)(u||"".concat(e.name,":").concat(+new Date)),_=function(){L(!1)},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};j(!1);var t={type:"error",body:e.message||LJ.ml("common.something_went_wrong")};LJ.Messages.add(t)};if((0,h.useEffect)((function(){E&&_()}),[E]),(0,h.useEffect)((function(){var e=function(e){var t=e.value;if(e.source!==k.current){var r=y.map((function(e){return"newEntry"!==e.event?e:Mt(Mt({},e),{},{isActive:t.includes(e.method)})}));v(r)}};return LJ.Event.on("NotifSubs/".concat(r,"/newEntry/changed"),e),function(){LJ.Event.off("NotifSubs/".concat(r,"/newEntry/changed"),e)}}),[y,r]),(0,h.useEffect)((function(){return LJ.Event.on("NotifSubBtn2022.requestShow",(function(){p(!0)})),LJ.Event.on("NotifSubBtn2022.requestHide",(function(){p(!1)})),function(){LJ.Event.off("NotifSubBtn2022.requestShow"),LJ.Event.off("NotifSubBtn2022.requestHide")}}),[]),(0,h.useEffect)((function(){var e=function(){j(!1)};return LJ.Event.on("controlstrip::dropdownHideRequest",e),LJ.Event.on("notificationCenter::dropdownHideRequest",e),function(){LJ.Event.off("controlstrip::dropdownHideRequest",e),LJ.Event.off("notificationCenter::dropdownHideRequest",e)}}),[]),(0,h.useEffect)((function(){var e=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).compId===k.current&&L(!0)};return LJ.Event.on("NotifSubBtn2022.notifTip.requestShow",e),function(){LJ.Event.off("NotifSubBtn2022.notifTip.requestShow",e)}}),[]),!f)return null;var P=y.some((function(e){return e.isActive})),N=zt[P?"active":"inactive"];return h.createElement(vt.N,{value:c},h.createElement("button",{type:"button","aria-haspopup":"true","aria-expanded":E?"true":"false",ref:function(e){w(e)},onClick:function(){j((function(e){return!e}))},className:(0,yt._)(["notification-button",n])},h.createElement("svg",{className:(0,yt._)(["svgicon","flaticon",N])},h.createElement("use",{xlinkHref:"#".concat(N)})),i&&h.createElement("span",null,i)),b&&E&&h.createElement(Pt,{subscriptions:y,onSubscriptionChange:function(e){var t=e.event,n=e.method,o=e.isActive,i=y.find((function(e){return e.event===t&&e.method===n})),a=i.requestTimeout;a&&clearTimeout(a);var c=setTimeout(Rt(Jt().mark((function e(){var i;return Jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=o?LJ.Misc.NotifSubs.requestSubNotifAdd:LJ.Misc.NotifSubs.requestSubNotifDelete,e.prev=1,e.next=4,i(t,n,r,{source:k.current});case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(1),C();case 9:case"end":return e.stop()}}),e,null,[[1,6]])}))),500),l=y.map((function(e){return e===i?Mt(Mt({},i),{},{isActive:o,requestTimeout:c}):e}));v(l)},onClose:function(){j(!1)},isGlued:l,targetNode:b,targetUsername:r}),b&&O&&h.createElement(Ft,{onClose:_,isGlued:l,targetNode:b}))};function $t(e){return $t="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},$t(e)}function Ht(){Ht=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==$t(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError($t(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Yt(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yt(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==$t(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==$t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===$t(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yt(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Vt(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}var Xt=!1,Kt=null,Qt=function(e){var t=LJ.Misc.NotifSubs.getUserSubs(e),r=[];return null!=t&&t.newEntry||r.push(LJ.Misc.NotifSubs.fetchUserSubs({event:"newEntry",username:e})),Promise.all(r)},er=function(e){LJ.Event.on("UserRelations/".concat(e,"/changed"),(function(e){var t=e.isInSubscriptionList,r=e.isInFriendList;t||r?LJ.Event.trigger("NotifSubBtn2022.requestShow"):LJ.Event.trigger("NotifSubBtn2022.requestHide")})),Xt=!0},tr=function(){var e,t=(e=Ht().mark((function e(t,r){var n,o,i,a,c,l,u,s,f;return Ht().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=Site.journal.username,c=null===(n=LJ.UserRelations)||void 0===n||null===(o=n.getUserRelations)||void 0===o?void 0:o.call(n,a),t&&a&&c){e.next=4;break}return e.abrupt("return");case 4:return Kt||(Kt=Qt(a)),e.next=7,Kt;case 7:l=c.isInSubscriptionList,u=c.isInFriendList,s=document.createElement("div"),(i=s.classList).add.apply(i,function(e){if(Array.isArray(e))return Zt(e)}(p=t.classList)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(p)||function(e,t){if(e){if("string"==typeof e)return Zt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zt(e,t):void 0}}(p)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=Wt({targetUsername:a,isShown:!(!l&&!u),text:t.dataset.text,theme:t.dataset.theme,gluePopups:t.dataset.hasOwnProperty("gluePopups"),className:t.dataset.className||"",id:t.getAttribute("id")},r),t.replaceWith(s),(0,y.H)(s).render(h.createElement(qt,f)),Xt||er(a);case 15:case"end":return e.stop()}var p}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Vt(i,n,o,a,c,"next",e)}function c(e){Vt(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(e,r){return t.apply(this,arguments)}}(),rr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Site.journal){var t=e.targetNode,r=e.initialUserData,n=e.initProps,o=void 0===n?{}:n;if(!t)throw new Error("SubscribeBtn2022:initSubscribeButton2022:targetNode is not provided");var i,a=o.targetUserData,l=void 0===a?r||((i={targetId:Site.journal.id,targetUsername:Site.journal.username,isInSubscriptionList:Site.journal.is_subscriber,isInFriendList:Site.journal.is_friend,friendGroupsData:[],isCommunity:Site.journal.is_community,isFollowerOfRemote:c,remoteIsCommunityOwner:"owner"===Site.journal.community_relation,remoteIsCommunityMember:Site.journal.is_community&&Site.journal.is_member,joinRequestPending:Site.journal.is_invite_sent&&Site.journal.is_friend,isBannedInCommunity:Site.journal.is_banned,isClosedCommunity:"closed"===Site.journal.community_membership,isSyndicated:Site.journal.is_syndicated,isNews:Site.journal.is_news}).isCommunity&&(i.isInSubscriptionList=Site.journal.is_friend),i):a,u={id:t.getAttribute("id")};t.closest(".js--controlstrip")&&(u.theme="dark",u.gluePopups=!0),t.removeAttribute("id"),t.classList.remove("lightbutton","lightbutton--blue"),ht.Y({targetNode:t,initProps:{targetUserData:l,customProps:u}})}},nr=(k.default.div.withConfig({displayName:"SuccessMsgPadder",componentId:"sc-152dpkr-0"})(["margin:200px auto;text-align:center;"]),k.default.div.withConfig({displayName:"SuccessMsgIcon",componentId:"sc-152dpkr-1"})(["font-size:30px;margin-bottom:25px;"]),(0,k.default)(ne.c).withConfig({displayName:"LjUser",componentId:"sc-152dpkr-2"})(["font-weight:inherit !important;text-transform:inherit !important;"])),or=k.default.p.withConfig({displayName:"AboveInputHint",componentId:"sc-152dpkr-3"})(["margin:0px 4px 16px 0px;","{margin-left:4px !important;}"],nr),ir=k.default.textarea.withConfig({displayName:"Input",componentId:"sc-152dpkr-4"})(['margin:0px 0px 16px;padding:12px 16px;min-height:100px;font:400 16px/1.2 "ProximaNova",Helvetica,sans-serif;background:#F5F7F8;border-radius:2px;resize:none;']),ar=k.default.div.withConfig({displayName:"BtnWrap",componentId:"sc-152dpkr-5"})(["display:flex;justify-content:right;align-items:center;"]),cr=(k.default.a.withConfig({displayName:"CancelButton",componentId:"sc-152dpkr-6"})(["margin-right:20px;font-weight:600;font-size:13px;line-height:16px;"]),k.default.div.withConfig({displayName:"ErrorMessage",componentId:"sc-152dpkr-7"})(["padding:0 8px 8px;font-size:12px;text-align:end;color:#CB1427;"]));function lr(e){return lr="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},lr(e)}function ur(){ur=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==lr(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(lr(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function sr(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function fr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function pr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==lr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==lr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===lr(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mr={error:null,message:"",isFetchMessage:!1};function hr(e){var t,r,n=e.isShown,o=e.afterSubmitCb,i=void 0===o?function(){}:o,a=e.handleCloseModal,c=void 0===a?function(){}:a,l=(t=(0,h.useState)(mr),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return dr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dr(e,t):void 0}}(t,r)||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.")}()),u=l[0],s=l[1],f=(0,h.useRef)(null),p=u.message,d=(0,h.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s((function(t){return pr(pr({},t),e)}))}),[]),m=(0,h.useCallback)((function(){d(mr)}),[d]);(0,h.useEffect)((function(){n||m(),n&&f.current&&f.current.focus()}),[n,m]);var y=function(){var e,t=(e=ur().mark((function e(){var t,r;return ur().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p){e.next=2;break}return e.abrupt("return");case 2:return d({isFetchMessage:!0,error:null}),e.prev=3,e.next=6,LJ.Api.callP("inbox.send_message",{recipients:Site.journal.username,body:p});case 6:m(),d({isFetchMessage:!1}),i(),t={type:"success",body:LJ.ml("send_message_form.successfully_sent")},LJ.Messages.add(t),setTimeout((function(){LJ.Messages.fadeOut(t)}),3e3),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),d({isFetchMessage:!1,error:Array.isArray(e.t0.data)&&null!==(r=e.t0.data[0])&&void 0!==r&&r.error?e.t0.data[0].error:e.t0.message});case 17:case"end":return e.stop()}}),e,null,[[3,14]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){sr(i,n,o,a,c,"next",e)}function c(e){sr(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();if(!n)return null;var v=h.createElement(h.Fragment,null,h.createElement(or,null,LJ.ml("send_message_form.send_to_user"),h.createElement(nr,{userData:{username:Site.journal.display_username,userheadUrl:Site.journal.userhead_url,displayUsername:Site.journal.display_username,profileUrl:Site.journal.profile_url,journalUrl:Site.journal.journal_url}})),h.createElement(ir,{value:p,className:"lightinput",placeholder:LJ.ml("send_message_form.placeholder"),onChange:function(e){d({message:e.target.value})},onKeyDown:function(e){"Enter"===e.key&&e.ctrlKey&&y()},ref:f}),u.error&&h.createElement(cr,{dangerouslySetInnerHTML:{__html:u.error}})),g=h.createElement(ar,null,h.createElement(L.A,{sizeL:!0,primary:!0,type:"button",onClick:y,disabled:!u.message.length,isLoading:u.isFetchMessage},LJ.ml("send_message_form.submit")));return h.createElement(se.Ay,{title:LJ.ml("send_message_form.title"),onClose:c,footer:g},v)}function yr(e){return yr="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},yr(e)}function vr(){vr=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==yr(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(yr(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function gr(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}var br=function(){var e,t=(e=vr().mark((function e(){var t,r,n,o,i;return vr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,LJ.Util.DOM.initPromise;case 2:t=document.querySelector(".js--send-message-btn"),r=document.createElement("div"),document.body.appendChild(r),n={},o=(0,y.H)(r),i=function(){o.render(h.createElement(hr,n))},n={isShown:!1,afterSubmitCb:function(){n.isShown=!1,i()},handleCloseModal:function(){n.isShown=!1,i()}},t&&t.addEventListener("click",(function(e){e.preventDefault(),n.isShown=!0,i()}));case 10:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){gr(i,n,o,a,c,"next",e)}function c(e){gr(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();function wr(e){return wr="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},wr(e)}function xr(){xr=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var p="suspendedStart",d="suspendedYield",m="executing",h="completed",y={};function v(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var x=Object.getPrototypeOf,E=x&&x(x(N([])));E&&E!==r&&n.call(E,a)&&(w=E);var j=b.prototype=v.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==wr(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function L(t,r,n){var o=p;return function(i,a){if(o===m)throw new Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=m;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?h:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=h,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(wr(t)+" is not iterable")}return g.prototype=b,o(j,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(j),e},t.awrap=function(e){return{__await:e}},S(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(j),u(j,l,"Generator"),u(j,a,(function(){return this})),u(j,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,P.prototype={constructor:P,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),y}},t}function Er(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}var jr,Sr=function(){var e,t=(e=xr().mark((function e(){return xr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,LJ.Util.DOM.initPromise;case 2:(document.querySelectorAll(".j-user-subscribe-btn")||[]).forEach((function(e){rr({targetNode:e})}));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Er(i,n,o,a,c,"next",e)}function c(e){Er(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();LJ.UserRelations.init(),LJ.Misc.NotifSubs.init(),LJ.Profile.Achievements.init(),Sr(),(0,mt._)(),(jr=document.querySelectorAll("[data-notif-sub-btn-mount-point]")).length&&jr.forEach(tr),br(),LJ.Event.on("relations.changed",(function(e){var t=e.action,r=e.username,n=e.source,o=e.data;if("SubscribeBtn2022"===n)if(Site.journal.is_community&&Site.journal.username===r&&["subscribe","unsubscribe","leaveComm"].includes(t))window.location.reload();else if(["subscribe","addToFriends"].includes(t)){var i=o.recommendations;setTimeout((function(){LJ.Event.trigger("SubRecommendModal.requestShow",{recommendations:i})}),700)}}))},1834:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});var n=r(6540),o=r(2600),i=r(8680),a=r(7723),c=r(4582);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}(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 u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const s=n.forwardRef((function(e,t){var r=e.className,u=e.children,s=e.title,f=e.description,p=e.extraHeaderContent,d=e.footer,m=e.withCloseBtn,h=void 0===m||m,y=e.withOverlay,v=void 0===y||y,g=e.onClose,b=void 0===g?function(){}:g,w=l((0,n.useState)(!1),2),x=w[0],E=w[1],j=l((0,n.useState)(null),2),S=j[0],O=j[1],L=(0,n.useRef)(null),k=(0,n.useRef)(null);return(0,n.useImperativeHandle)(t,(function(){return{elements:{modal:L.current,body:k.current}}})),(0,n.useEffect)((function(){var e=function(e){"Escape"===e.key&&(e.preventDefault(),b({reason:"esc-keydown"}))};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[b]),(0,n.useLayoutEffect)((function(){var e=new ResizeObserver((function(){k.current&&d&&(k.current.clientHeight<k.current.scrollHeight?E(!0):E(!1))}));return e.observe(k.current),function(){e.unobserve(k.current)}}),[k,d]),n.createElement(n.Fragment,null,n.createElement(i.A,null),n.createElement(o.Z,null,n.createElement(c.FQ,null,n.createElement(c.hJ,{show:v,"data-react-overlay":!0,onClick:function(){b({reason:"overlay-click"})}}),n.createElement(c.aF,{className:r,ref:L},n.createElement(c.az,{className:"rfb-components-Modal-box"},n.createElement(a.Y,{title:s,description:f,withCloseBtn:h},p,h&&n.createElement(a.J,{onClick:function(){b({reason:"close-btn-click"})}})),n.createElement(c.nB,{className:"m-scrollbar rfb-components-Modal-body",bodyScrollTop:S,isBodyScrollable:x,ref:k,onScroll:function(e){O(e.target.scrollTop)}},u),d&&n.createElement(c.wi,null,d))))))}))},1987:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6540);const o=function(e,t){var r=t.anchorEl,o=t.popoverRef,i=t.closeOnScroll,a=t.recalcPositioning,c=t.onClose,l=(e||{}).window;(0,n.useLayoutEffect)((function(){if(!l)return function(){};var e=function(e){!o.current||o.current.contains(e.target)||r&&!e.target.contains(r)||(i?c():a())},t={capture:!0,passive:!0};return window.addEventListener("scroll",e,t),function(){window.removeEventListener("scroll",e,t)}}),[l,r,o,i,a,c])}},2068:(e,t,r)=>{"use strict";r.d(t,{Mn:()=>o,c9:()=>a,jZ:()=>i});var n=r(9056),o=n.default.a.withConfig({displayName:"Userhead",componentId:"sc-7u2ddd-0"})(["margin:0 !important;padding:0 !important;border:0 !important;"]),i=n.default.a.withConfig({displayName:"Username",componentId:"sc-7u2ddd-1"})(["text-decoration:none;color:#00A3D9;"]),a=n.default.span.withConfig({displayName:"LjUser",componentId:"sc-7u2ddd-2"})(["position:static !important;display:inline !important;width:auto !important;height:auto !important;margin:0 !important;padding:0 !important;border:0 !important;background:transparent !important;white-space:nowrap !important;font-style:normal !important;","{margin-right:4px !important;}"],o)},2231:(e,t,r)=>{"use strict";r.d(t,{VY:()=>a,Y9:()=>c,hE:()=>i});var n=r(9056),o=r(3581),i=n.default.h2.withConfig({displayName:"Title",componentId:"sc-kjq3xj-0"})(['margin:0 !important;padding:0 !important;font:bold 24px/1.2 "ProximaNova",Helvetica,sans-serif !important;color:#000 !important;',""],(function(e){return e.$withCloseBtn&&(0,n.css)(["padding-right:30px !important;"])})),a=n.default.p.withConfig({displayName:"Description",componentId:"sc-kjq3xj-1"})(['margin:8px 0 0 !important;padding:0 !important;font:400 16px/1.2 "ProximaNova",Helvetica,sans-serif !important;color:#333333 !important;']),c=n.default.header.withConfig({displayName:"Header",componentId:"sc-kjq3xj-2"})(["position:relative;flex-shrink:0;margin-bottom:0;padding:16px 24px;@media ","{padding:16px;}"],o.j.maxMobileL)},2317:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});var n=r(6540),o=r(2600),i=r(74),a=r(5439),c=function(){};function l(e){var t=e.targetUsername,r=e.isInSubscriptionList,l=void 0!==r&&r,u=e.isInFriendList,s=void 0!==u&&u,f=e.remoteIsCommunityOwner,p=void 0!==f&&f,d=e.isCommunity,m=void 0!==d&&d,h=e.isSyndicated,y=void 0!==h&&h,v=e.friendGroupsData,g=e.requestRelationActionCb,b=e.requestPopupClose,w=void 0===b?c:b,x=e.toggleFriendInGroupCb,E=e.remoteIsCommunityMember,j=e.joinRequestPending,S=e.isBannedInCommunity,O=e.isClosedCommunity,L=e.targetNode,k=e.isGlued,_=e.savedUserNote,C=void 0===_?"":_,P=e.onUserNoteBtnClick,N=void 0===P?function(){}:P,A=LJ.Support.isMobile(),I=(0,n.useRef)(null);(0,n.useEffect)((function(){function e(e){null!=I&&I.current&&!I.current.contains(e.target)&&w()}return A&&(document.body.style.overflow="hidden",setTimeout((function(){document.addEventListener("click",e)}))),function(){A&&(document.removeEventListener("click",e),document.querySelectorAll("[data-react-overlay]").length||(document.body.style.overflow=""))}}),[]);var F,D=[],T=n.createElement(a.Cl,{onClick:function(){w(),g("addToFriends")},key:"addToFriends",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.add_to_friends"))),M=n.createElement(a.Cl,{onClick:function(){w(),g("removeFromFriends")},key:"removeFromFriends",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.remove_from_friends"))),J=n.createElement(a.Cl,{remoteIsPaid:Site.remote.is_paid,isPaidItem:!0,onClick:function(){Site.remote.is_paid?(N(),w()):window.open("".concat(Site.siteroot,"/shop/profaccount.bml?ila_campaign=inactive_prof_sign&ila_location=reminder"),"_blank")},key:"changeUserNote",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},!Site.remote.is_paid&&n.createElement("svg",{width:"22",height:"16"},n.createElement("use",{xlinkHref:"#flaticon--pro-outline-gradient"})),C?LJ.ml("subscribe_button_2022.edit_user_note"):LJ.ml("subscribe_button_2022.add_user_note"))),U=n.createElement(a.Cl,{key:"editFriend",className:"basepopup-selector__label"},n.createElement(a._3,{href:"".concat(Site.siteroot,"/friends/add.bml?user=").concat(t),target:"_blank",className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.subscribe_settings"))),R=n.createElement(a.Cl,{onClick:function(){w(),g("subscribe")},key:"subscribe",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.subscribe"))),G=n.createElement(a.Cl,{onClick:function(){w(),g(y?"removeFromFriends":"unsubscribe")},key:"unsubscribe",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("common.unsubscribe"))),B=n.createElement(a.Cl,{onClick:function(){w(),g("joinComm")},key:"joinComm",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.join_community"))),z=n.createElement(a.Cl,{onClick:function(){w(),g("leaveComm")},key:"leaveComm",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.leave_community"))),q=n.createElement(a.Cl,{onClick:function(){w()},className:"lightbutton"},LJ.ml("common.close")),$=n.createElement("span",{key:"joinRequestPending",className:"basepopup-selector__label"},n.createElement("div",{className:"basepopup-selector__text"},LJ.ml("subscribe_button_2022.join_request_is_pending"))),H=[];return v.forEach((function(e){H.push(n.createElement("li",{className:"basepopup__item",key:e.id},n.createElement("label",{className:"lightcheckbox"},n.createElement("input",{className:"lightcheckbox__input",type:"checkbox",value:e.id,checked:!!e.selected,onChange:function(){x({id:e.id,shouldBeInGroup:!e.selected})}}),n.createElement("span",{className:"lightcheckbox__text"},e.name))))})),!m&&!y&&(l&&!s?(D.push(T),D.push(J),D.push(U),D.push(G)):s&&(D.push(M),D.push(J),D.push(U))),y&&(s&&D.push(G),D.push(J),D.push(U)),m&&(!E&&j&&D.push($),l?(D.push(J),D.push(U),D.push(G)):D.push(R),E&&!p?D.push(z):j||S||O||p||D.push(B)),m&&!l||(F=n.createElement("div",{className:"basepopup__group"},n.createElement("div",{className:"basepopup__content"},n.createElement("div",{className:"basepopup__title"},LJ.ml("common.add_to_group")),n.createElement("ul",{className:"basepopup__list m-scrollbar"},H)))),A?n.createElement(o.Z,null,n.createElement("div",{className:"new-modal-backdrop","data-react-overlay":!0}),n.createElement("div",{className:"new-modal new-modal--popup",style:{display:"block"}},n.createElement("div",{className:"new-modal-dialog new-modal-dialog--centered"},n.createElement("div",{className:"new-modal-content js--subscribe-btn-dropdown",ref:I},n.createElement("div",{className:"basepopup__group"},n.createElement("div",{className:"basepopup__content"},n.createElement("div",{className:"basepopup-selector"},D))),F,n.createElement("div",{className:"basepopup__group",style:{textAlign:"right"}},q))))):n.createElement(a.AM,{className:(0,i._)([k&&"basepopup--glued"]),anchorEl:L,margins:{y:k?0:5},overflowFixParams:{safeEdgePad:5,canUseAltAxis:!1},closeOnScroll:!0,onClose:w},n.createElement("div",{className:"basepopup__group"},n.createElement("div",{className:"basepopup__content"},n.createElement("div",{className:"basepopup-selector"},D))),F)}},2464:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var n=r(6540),o=r(74),i=r(2068);function a(e){return a="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},a(e)}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==a(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var s=function(e){var t,r=e.className,a=e.linksTarget,l=void 0===a?"_self":a,s=e.noCtxPopup,f=void 0===s||s,p=e.userData,d=p.username,m=p.userheadUrl,h=p.displayName,y=p.displayUsername,v=p.profileUrl,g=p.journalUrl,b=p.journalType,w=p.isInvisible,x=u({as:v?"a":"span",className:"i-ljuser-profile"},v?{href:v,target:l}:{}),E=u({as:g?"a":"span",className:"i-ljuser-username"},g?{href:g,target:l,title:y}:{});return n.createElement(i.c9,{className:(0,o._)(["ljuser","i-ljuser",b&&"i-ljuser-type-".concat(b),w&&"i-ljuser-deleted"].concat((t=f?["i-ljuser-nopopup","noctxpopup"]:[],function(e){if(Array.isArray(e))return c(e)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[r])),"data-ljuser":d},m&&n.createElement(i.Mn,x,n.createElement("img",{className:"i-ljuser-userhead",src:m})),n.createElement(i.jZ,E,h||y))}},2595:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){var o,i,a;o=e,i=t,a=r[t],(i=function(e){var t=function(e){if("object"!==n(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===n(t)?t:String(t)}(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}r.d(t,{F:()=>c,u:()=>a});var a={hasShownDropdown:!1,hasLoadedUserNote:!1,savedUserNote:null,isUserNoteModalShown:!1,userNameDisplayData:{}},c=function(e,t){switch(t.type){case"markDropdownAsShown":return i(i({},e),{},{hasShownDropdown:!0});case"markUserNoteAsLoaded":return i(i({},e),{},{hasLoadedUserNote:!0});case"showUserNoteModal":return i(i({},e),{},{isUserNoteModalShown:!0});case"closeUserNoteModal":return i(i({},e),{},{isUserNoteModalShown:!1});case"setSavedUserNote":return i(i({},e),{},{savedUserNote:t.value});case"setUserNameDisplayData":return i(i({},e),{},{userNameDisplayData:t.value});default:return console.warn('SubscribeBtn2022: Got unknown action type "'.concat(t.type,'"')),e}}},2600:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o}),r(6540);var n=r(961),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.children,r=e.mountRef,o=(void 0===r?{}:r).current||document.body;return(0,n.createPortal)(t,o)}},2799:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,s=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,p=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,y=r?Symbol.for("react.lazy"):60116,v=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,b=r?Symbol.for("react.responder"):60118,w=r?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case s:case f:case i:case c:case a:case d:return e;default:switch(e=e&&e.$$typeof){case u:case p:case y:case h:case l:return e;default:return t}}case o:return t}}}function E(e){return x(e)===f}t.AsyncMode=s,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=h,t.Portal=o,t.Profiler=c,t.StrictMode=a,t.Suspense=d,t.isAsyncMode=function(e){return E(e)||x(e)===s},t.isConcurrentMode=E,t.isContextConsumer=function(e){return x(e)===u},t.isContextProvider=function(e){return x(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===h},t.isPortal=function(e){return x(e)===o},t.isProfiler=function(e){return x(e)===c},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===d},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===c||e===a||e===d||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===p||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},2833:e=>{e.exports=function(e,t,r,n){var o=r?r.call(n,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 i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(t),l=0;l<i.length;l++){var u=i[l];if(!c(u))return!1;var s=e[u],f=t[u];if(!1===(o=r?r.call(n,s,f,u):void 0)||void 0===o&&s!==f)return!1}return!0}},2968:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6540),o=["className","xlinkHref"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},i.apply(this,arguments)}const a=(0,n.forwardRef)((function(e,t){var r=e.className,a=void 0===r?"":r,c=e.xlinkHref,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,o);return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",className:"svgicon ".concat(c," ").concat(a),ref:t},l),n.createElement("use",{xlinkHref:"#".concat(c)}))}))},3451:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,a:()=>i});var n=r(9056),o=n.default.button.withConfig({displayName:"Button",componentId:"sc-k30yql-0"})(["position:relative;display:inline-block;padding:6px 16px;box-sizing:border-box;border-radius:4px;vertical-align:middle;text-align:center;font:inherit;font-size:14px;line-height:1;white-space:nowrap;cursor:pointer;transition:border-color .2s,background-color .2s,color .2s;"," "," "," "," "," "," "," "," ",""],(function(e){return e.primary?(0,n.css)(["color:#FFFFFF;background-color:#00A3D9;border:1px solid #00A3D9;&:visited{color:#FFFFFF;}&:hover,&:focus{border-color:#00C0FF;background-color:#00C0FF;color:#FFFFFF;}&:active{border-color:#0996C5;background-color:#0996C5;color:#FFFFFF;}"]):(0,n.css)(["color:#333333;background-color:#FFFFFF;border:1px solid #D4DCE0;&:visited{color:#333333;}&:hover,&:focus{border-color:#00A3D9;background-color:#FFFFFF;}&:active{border-color:#D4DCE0;background-color:#F9FAFA;}"])}),(function(e){return e.isLoading&&(0,n.css)(["color:transparent;&:hover,&:focus,&:active{color:transparent;}"])}),(function(e){var t=e.disabled,r=e.primary;return t&&(0,n.css)(["opacity:.5;cursor:not-allowed;&:hover,&:focus{background-color:",";border-color:",";}"],r?"#00A3D9":"#FFFFFF",r?"#00A3D9":"#D4DCE0")}),(function(e){return e.noBorder&&(0,n.css)(["border:1px solid transparent;color:#00A3D9;background-color:transparent;&:hover,&:focus{border-color:#00A3D9;}&:active{border-color:#0996C5;color:#0996C5;}"])}),(function(e){return e.hasOutline&&(0,n.css)(["border:1px solid #D4DCE0;color:#333;background-color:transparent;&:hover{border-color:#BDC8CD;background-color:transparent;}&:focus{border-color:#00A3D9;background-color:transparent;}&:active{border-color:#F9FAFA;background-color:transparent;}"])}),(function(e){return e.linkType&&(0,n.css)(["padding:0;border:0;background-color:transparent;color:#0099CC;&:hover,&:active,&:focus{color:#0086B3;background-color:transparent;}"])}),(function(e){var t=e.$size;return{medium:(0,n.css)(["padding:8px 16px;"])}[t]}),(function(e){return e.text&&(0,n.css)(["display:flex;align-items:center;justify-content:center;min-height:24px;padding:4px 8px;border:0;border-radius:4px;font-weight:600;letter-spacing:0.24px;color:#2EADDF;text-align:left;background-color:transparent;transition:background-color 0.15s linear;cursor:pointer;&:hover{background-color:rgba(0,0,0,0.08);}&:active{background-color:rgba(0,0,0,0.12);}&:focus{outline:none;}&:focus-visible{outline:2px dashed #2EADDF;outline-offset:2px;}&:disabled{color:rgba(203,218,225,1);pointer-events:none;}"])}),(function(e){return e.sizeL&&(0,n.css)(["min-height:32px;padding:8px 16px;"])})),i=n.default.div.withConfig({displayName:"Loader",componentId:"sc-k30yql-1"})(["position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#FFFFFF;svg{display:block;animation:svgrotate .57s linear infinite;}@keyframes svgrotate{100%{transform:rotate(360deg);}}"])},3581:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});var n={maxMobileS:"(max-width: ".concat(320,"px)"),maxMobileM:"(max-width: ".concat(360,"px)"),maxMobileL:"(max-width: ".concat(576,"px)"),maxTabletS:"(max-width: ".concat(768,"px)"),maxTabletM:"(max-width: ".concat(969.9,"px)"),maxLaptopS:"(max-width: ".concat(1024,"px)"),maxLaptopM:"(max-width: ".concat(1440,"px)"),maxDesktopS:"(max-width: ".concat(1920,"px)")}},3659:(e,t,r)=>{"use strict";r.d(t,{D:()=>o.DD,o:()=>n.A});var n=r(3988),o=r(8228)},3768:(e,t,r)=>{"use strict";r.d(t,{D0:()=>c,KB:()=>s,VY:()=>a,wi:()=>u,yY:()=>l});var n=r(9056),o=r(8081),i=r(6951),a=n.default.p.withConfig({displayName:"Description",componentId:"sc-i2y7sb-0"})(["margin:0 0 12px 0;"]),c=(0,n.default)(i.A).withConfig({displayName:"Field",componentId:"sc-i2y7sb-1"})(["width:100%;text-overflow:ellipsis;"]),l=(0,n.default)(o.A).withConfig({displayName:"SaveButton",componentId:"sc-i2y7sb-2"})(["",""],(function(e){return e.isLoading&&(0,n.css)(["& span{opacity:0;}"])})),u=n.default.div.withConfig({displayName:"Footer",componentId:"sc-i2y7sb-3"})(["display:flex;justify-content:space-between;align-items:center;"]),s=n.default.div.withConfig({displayName:"ButtonsWrap",componentId:"sc-i2y7sb-4"})(["display:flex;justify-content:space-between;align-items:center;gap:0.5rem;margin-left:auto;"])},3988:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(8228),o=r(5191);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){var n,o,a;n=e,o=t,a=r[t],(o=function(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[o]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const u=function(e){var t=e.anchorRect,r=e.objectRect,i=e.container,c=e.placement,u=void 0===c?n.NT.placement:c,s=e.margins,f=void 0===s?n.NT.margins:s,p=e.overflowFixParams,d=e.withArrow,m=(0,o.hZ)(u),h={placement:u,position:n.NT.position};if(!m||!t||!r)return h;var y,v=l(l({},n.NT.overflowFixParams),p||{}),g=v.enabled,b=v.safeEdgePad,w=v.canUseAltEdge,x=v.canUseAltAxis,E=v.excludePlacements,j=function(e){var o=LJ.Util.Positioning.RectNearRect.calculateCoords({anchorRect:t,objectRect:r,placement:e,margins:f}),a=o.x,c=o.y;if("number"!=typeof a||"number"!=typeof c||Number.isNaN(a)||Number.isNaN(c))return{placement:e,position:n.NT.position};var l,u,s,p,d={x:a,y:c},m=(l=d.y-b<0,u=d.x+r.width+b>window.innerWidth,s=d.y+r.height+b>window.innerHeight,{x:(p=d.x-b<0)||u,y:l||s,top:l,right:u,bottom:s,left:p});if(i){var h=i.getBoundingClientRect();d.x=d.x+i.scrollLeft-h.x,d.y=d.y+i.scrollTop-h.y}else d.x+=document.scrollingElement.scrollLeft,d.y+=document.scrollingElement.scrollTop;return d.x=Math.round(d.x),d.y=Math.round(d.y),{placement:e,position:d,windowOverflow:m,hasWindowOverflow:m.x||m.y}},S=j(u);if(g&&S.hasWindowOverflow){var O,L,k=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},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 i,c=!0,l=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return c=e.done,e},e:function(e){l=!0,i=e},f:function(){try{c||null==r.return||r.return()}finally{if(l)throw i}}}}((0,o.nd)(m,{canUseAltAxis:x,canUseAltEdge:w,excludePlacements:E}).map((function(e){return e.placement})));try{for(k.s();!(L=k.n()).done;){var _=j(L.value);if(!_.hasWindowOverflow){O=_;break}var C=S.windowOverflow.x&&!_.windowOverflow.x,P=S.windowOverflow.y&&!_.windowOverflow.y;O||!C&&!P||(O=_)}}catch(e){k.e(e)}finally{k.f()}O&&(S=O),S.windowOverflow.left&&(S.position.x=b)}return h={placement:S.placement,position:S.position},d&&(h.arrow=null===(y=(0,o.hZ)(h.placement))||void 0===y?void 0:y.arrow),h}},4044:(e,t,r)=>{"use strict";r.d(t,{DP:()=>i.D,Wr:()=>n.W,ZC:()=>o.Z});var n=r(5153),o=r(5998),i=(r(7374),r(4054));r(9472),r(158),r(7695)},4054:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(6540),o=r(4554),i=function(){return(0,n.useContext)(o.D)}},4146:(e,t,r)=>{"use strict";var n=r(4363),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};function l(e){return n.isMemo(e)?a:c[e.$$typeof]||o}c[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[n.Memo]=a;var u=Object.defineProperty,s=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(m){var o=d(r);o&&o!==m&&e(t,o,n)}var a=s(r);f&&(a=a.concat(f(r)));for(var c=l(t),h=l(r),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||n&&n[v]||h&&h[v]||c&&c[v])){var g=p(r,v);try{u(t,v,g)}catch(e){}}}}return t}},4178:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6540),o=r(4044);const i=function(e,t){var r=t.anchorEl,i=t.anchorRect,a=t.popoverRef,c=t.recalcPositioning,l=e||{},u=l.anchor,s=l.popover,f=l.window,p=(0,n.useRef)({isFirstRun:!0}),d=(0,o.ZC)(i);(0,n.useLayoutEffect)((function(){var e=new ResizeObserver((function(){p.current.isFirstRun?p.current.isFirstRun=!1:c()}));return u&&r&&e.observe(r),s&&e.observe(a.current),function(){e.disconnect()}}),[u,s,e,a,c,r,i]),(0,n.useLayoutEffect)((function(){return f?(window.addEventListener("resize",c),function(){window.removeEventListener("resize",c)}):function(){}}),[f,c]),(0,n.useLayoutEffect)((function(){u&&i&&d&&(i.width!==d.width||i.height!==d.height||i.x!==d.x||i.y!==d.y)&&c()}),[u,i,d,c])}},4363:(e,t,r)=>{"use strict";e.exports=r(2799)},4536:()=>{function e(t){return e="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},e(t)}function t(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(){"use strict";r=function(){return n};var t,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(t){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new A(n||[]);return a(i,"_invoke",{value:_(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var m="suspendedStart",h="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function x(){}var E={};f(E,l,(function(){return this}));var j=Object.getPrototypeOf,S=j&&j(j(I([])));S&&S!==o&&i.call(S,l)&&(E=S);var O=x.prototype=b.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function k(t,r){function n(o,a,c,l){var u=d(t[o],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==e(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(e){n("next",e,c,l)}),(function(e){n("throw",e,c,l)})):r.resolve(f).then((function(e){s.value=e,c(s)}),(function(e){return n("throw",e,c,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(i,i):i()}})}function _(e,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(e,r,n);if("normal"===u.type){if(o=n.done?v:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function C(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,C(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(r){if(r||""===r){var n=r[l];if(n)return n.call(r);if("function"==typeof r.next)return r;if(!isNaN(r.length)){var o=-1,a=function e(){for(;++o<r.length;)if(i.call(r,o))return e.value=r[o],e.done=!1,e;return e.value=t,e.done=!0,e};return a.next=a}}throw new TypeError(e(r)+" is not iterable")}return w.prototype=x,a(O,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(O),e},n.awrap=function(e){return{__await:e}},L(k.prototype),f(k.prototype,u,(function(){return this})),n.AsyncIterator=k,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new k(p(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(O),f(O,s,"Generator"),f(O,l,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},n.values=I,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:I(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},n}function n(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function c(e){n(a,o,i,c,l,"next",e)}function l(e){n(a,o,i,c,l,"throw",e)}c(void 0)}))}}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function c(t,r,n){return(r=function(t){var r=function(t){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===e(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}LJ.define("LJ.Misc.NotifSubs");var s=!1,f={newEntry:"JournalNewEntry"},p={notifCenter:"NotificationCentre",email:"Email"},d=Object.fromEntries(Object.entries(p).map((function(e){var t,r,n=(r=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,r)||l(t,r)||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.")}()),o=n[0];return[n[1],o]}))),m={},h=function(e,t,r){var n,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).source,i=null===(n=m[e])||void 0===n?void 0:n[t];JSON.stringify(i)===JSON.stringify(r)||(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a(a({},m[e]),t);m[e]=r}(e,c({},t,r)),LJ.Event.trigger("NotifSubs/".concat(e,"/").concat(t,"/changed"),{value:r,source:o}))},y=function(e,t){var r=m[e]&&a({},m[e]);return t?(null==r?void 0:r[t])||[]:r},v=function(){var e=o(r().mark((function e(t){var n,o,i,a,c,l;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.event,o=t.eventType,i=t.method,a=t.username,c={event:f[n],target_journal:a,method:p[i]},e.next=4,LJ.Api.callP("subscriptions.".concat(o),c);case 4:return l=e.sent,e.abrupt("return",l);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();LJ.Misc.NotifSubs.init=function(){!s&&Site.remote&&(LJ.Misc.NotifSubs.getUserSubs=y,LJ.Misc.NotifSubs.fetchUserSubs=function(){var e=o(r().mark((function e(t){var n,o,i,a;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.event,o=t.username,i={event:f[n],target_journal:o},e.next=4,LJ.Api.callP("subscriptions.get",i);case 4:r=e.sent.subscriptions,a=r.map((function(e){return d[e.method]})),h(o,n,a);case 7:case"end":return e.stop()}var r}),e)})));return function(t){return e.apply(this,arguments)}}(),LJ.Misc.NotifSubs.requestSubNotifAdd=function(){var e=o(r().mark((function e(n,o,i){var a,c,l=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(l.length>3&&void 0!==l[3]?l[3]:{}).source,(c=t(y(i,n))).push(o),h(i,n,c,{source:a}),e.next=7,v({event:n,eventType:"create",method:o,username:i});case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),LJ.Misc.NotifSubs.requestSubNotifDelete=function(){var e=o(r().mark((function e(n,o,i){var a,c,l=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=(l.length>3&&void 0!==l[3]?l[3]:{}).source,c=(c=t(y(i,n))).filter((function(e){return e!==o})),h(i,n,c,{source:a}),e.next=7,v({event:n,eventType:"delete",method:o,username:i});case 7:case"end":return e.stop()}}),e)})));return function(t,r,n){return e.apply(this,arguments)}}(),LJ.Event.on("relations.changed",(function(e){var t=e.action,r=e.username;["unsubscribe","removeFromFriends","removeFriend"].includes(t)&&h(r,"newEntry",[])})),s=!0)}},4554:(e,t,r)=>{"use strict";r.d(t,{D:()=>n,N:()=>o});var n=r(6540).createContext({}),o=n.Provider},4582:(e,t,r)=>{"use strict";r.d(t,{FQ:()=>s,aF:()=>a,az:()=>c,hJ:()=>i,nB:()=>l,wi:()=>u});var n=r(9056),o=r(3581),i=(r(2231),n.default.div.withConfig({displayName:"Overlay",componentId:"sc-1jopm0p-0"})(["position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0,0,0,.4);opacity:",";z-index:5000;&::before{position:fixed;top:-1px;left:-1px;width:1px;height:1px;background-color:rgba(255,255,255,0);content:'';}"],(function(e){return e.show?.5:0}))),a=n.default.div.withConfig({displayName:"Modal",componentId:"sc-1jopm0p-1"})(['position:relative;max-width:650px;display:flex;align-items:center;min-height:calc(100% - 3.5rem);height:calc(100% - 3.5rem);width:100%;margin:1.75rem auto;padding:1rem;font:400 16px/1 "ProximaNova",Helvetica,sans-serif;letter-spacing:0;color:#15374C;-webkit-font-smoothing:antialiased;pointer-events:none;z-index:5000;']),c=n.default.div.withConfig({displayName:"Box",componentId:"sc-1jopm0p-2"})(["overflow:hidden;position:relative;display:flex;flex-direction:column;width:100%;max-height:min(580px,100%);border-radius:8px;background-color:#fff;box-shadow:0px 2px 6px rgba(0,0,0,0.16),0px 4px 16px rgba(0,0,0,0.12);pointer-events:auto;"]),l=n.default.div.withConfig({displayName:"Body",componentId:"sc-1jopm0p-3"})(["display:flex;flex-direction:column;flex:1 1 auto;padding:0 24px 6px;overflow-y:auto;&:last-child{padding-bottom:16px;}@media ","{padding:0 16px 6px;&:last-child{padding-bottom:16px;}}"," "," .modal--iframe &{padding-right:0;}"],o.j.maxMobileL,(function(e){return e.isBodyScrollable&&"border-bottom: 1px solid #E5EBEE;"}),(function(e){return e.bodyScrollTop&&"border-top: 1px solid #E5EBEE;"})),u=n.default.footer.withConfig({displayName:"Footer",componentId:"sc-1jopm0p-4"})(["flex-shrink:0;padding:10px 24px 16px;@media ","{padding:10px 16px 16px;}"],o.j.maxMobileL),s=(n.default.div.withConfig({displayName:"ButtonsRow",componentId:"sc-1jopm0p-5"})(["display:flex;flex-flow:row wrap;justify-content:flex-end;margin:-5px;"]),n.default.div.withConfig({displayName:"ButtonsRowItem",componentId:"sc-1jopm0p-6"})(["padding:5px;"]),n.default.p.withConfig({displayName:"Text",componentId:"sc-1jopm0p-7"})(["margin:0;margin-bottom:0.5rem;"]),n.default.div.withConfig({displayName:"ModalWrapper",componentId:"sc-1jopm0p-8"})(["position:fixed;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;z-index:5000;box-sizing:border-box;*{box-sizing:inherit;}&:before{box-sizing:inherit;}&:after{box-sizing:inherit;}.borderTop{border-top:1px solid #E5EBEE;}.borderBottom{border-bottom:1px solid #E5EBEE;}"]))},5153:(e,t,r)=>{"use strict";r.d(t,{W:()=>o});var n=r(6540),o=function(e,t){var r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).startImmediately,o=void 0!==r&&r;(0,n.useEffect)((function(){var r=function(r){e.current&&!e.current.contains(r.target)&&t(r)};return o?document.addEventListener("click",r):setTimeout((function(){document.addEventListener("click",r)})),function(){o?document.removeEventListener("click",r):setTimeout((function(){document.removeEventListener("click",r)}))}}),[e,t,o])}},5191:(e,t,r)=>{"use strict";r.d(t,{hZ:()=>a,nd:()=>c});var n=r(8228);function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var a=function(e){return Object.values(n.NM).find((function(t){return t.placement.x===e.x&&t.placement.y===e.y}))},c=function(e,t){var r,i,a=t.canUseAltEdge,c=t.canUseAltAxis,l=t.excludePlacements,u=o(function(e){return n.NM.filter((function(t){var r=t.edge,n=t.align;return r===e.edge&&n!==e.align}))}(e));return a&&((r=u).push.apply(r,o(function(e){return n.NM.reduce((function(t,r){return e.edge===r.edge||e.axis!==r.axis?t:e.align===r.align?[r].concat(o(t)):[].concat(o(t),[r])}),[])}(e))),c&&(i=u).push.apply(i,o(function(e){return n.NM.filter((function(t){return t.axis!==e.axis})).sort((function(e,t){var r=["right","bottom"],n=r.includes(e.edge),o=r.includes(t.edge);return n&&o?0:n?-1:1}))}(e)))),null!=l&&l.length&&(u=u.filter((function(e){return!l.some((function(t){return e.placement.x===t.x&&e.placement.y===t.y}))}))),u}},5194:(e,t,r)=>{"use strict";r.d(t,{m:()=>d});var n=r(6540),o=r(8476),i=r(2317),a=r(230);function c(e){return c="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},c(e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},l.apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==c(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var p=function(){};function d(e){var t,r,c,u,d=e.onDropdownShow,m=void 0===d?function(){}:d,h=e.isCommunity,y=void 0!==h&&h,v=e.isInSubscriptionList,g=void 0!==v&&v,b=e.isInFriendList,w=void 0!==b&&b,x=e.remoteIsCommunityMember,E=e.isFollowerOfRemote,j=void 0!==E&&E,S=e.remoteIsCommunityOwner,O=void 0!==S&&S,L=e.requestRelationActionCb,k=void 0===L?p:L,_=e.requestGroupsDataCb,C=e.joinRequestPending,P=e.isSyndicated,N=void 0!==P&&P,A=e.isNews,I=void 0!==A&&A,F=e.miscData,D=e.gluePopups,T=e.userNoteProps,M=void 0===T?{}:T,J=M.savedUserNote,U=M.onDropdownUserNoteBtnClick,R=M.modal,G=void 0===R?{}:R,B=(c=(0,n.useState)(!1),u=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(c,u)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(e,t):void 0}}(c,u)||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.")}()),z=B[0],q=B[1],$=function(e){q(e),!z&&e&&m()},H=(0,n.useRef)(null);(0,n.useEffect)((function(){LJ.Event.on("controlstrip::dropdownHideRequest",(function(){return $(!1)}))}),[]),(0,n.useEffect)((function(){var e,t=null==H||null===(e=H.current)||void 0===e?void 0:e.dataset;t&&(t.componentId=F.componentId)}),[F.componentId]);var Y=!1,W=[];y||(g||w||!N&&!I?g||w||!j?g||w?g&&!w||w&&(N||I)?(t=LJ.ml("subscribe_button_2022.you_are_subscribed"),r=function(){$(!z),z||_()},Y=!0):w&&(t=LJ.ml("subscribe_button_2022.is_in_friend_list"),r=function(){$(!z),z||_()},Y=!0):(t=LJ.ml("common.subscribe"),r=function(){k("subscribe")},W.push("lightbutton--blue")):(t=LJ.ml("subscribe_button_2022.mutual_subscribe"),r=function(){k("subscribe")},W.push("lightbutton--blue")):(t=LJ.ml("common.subscribe"),r=function(){k("addToFriends")},W.push("lightbutton--blue"))),y&&(O?(t=LJ.ml("subscribe_button_2022.you_are_owner"),r=function(){$(!z),z||_()},Y=!0):!x&&C&&w?(t=LJ.ml("subscribe_button_2022.join_request_is_pending"),r=function(){$(!z),z||_()},Y=!0):g||x?g&&!x?(t=LJ.ml("subscribe_button_2022.you_are_subscribed"),r=function(){$(!z),z||_()},Y=!0):x&&(t=LJ.ml("subscribe_button_2022.you_are_member"),r=function(){$(!z),z||_()},Y=!0):(t=LJ.ml("common.subscribe"),r=function(){k("subscribe")},W.push("lightbutton--blue")));var Z=["lightbutton"].concat(W).join(" ");Site.remote||(r=function(){window.setTimeout(LJ.Util.Action.login,0)});var V=s(s({},e),{},{isGlued:D,savedUserNote:J,onUserNoteBtnClick:U});return n.createElement(n.Fragment,null,n.createElement(a.d,{className:Z+(z?" lightbutton--toggle-open":"")+(Y?" lightbutton--toggle":""),href:"#",target:"_self",onClick:function(e){e.preventDefault(),r()},ref:H},t,Y&&n.createElement("svg",{className:"lightbutton__dropdown-icon",width:"16",height:"16"},n.createElement("use",{xlinkHref:"#flaticon--arrow-dropdown"}))),z?n.createElement(i.k,l({},V,{requestPopupClose:function(){$(!1)},targetNode:null==H?void 0:H.current})):null,G.isShown?n.createElement(o.A,{onClose:G.onClose,inputValue:M.savedUserNote||"",userData:M.userNameDisplayData}):null)}},5439:(e,t,r)=>{"use strict";r.d(t,{AM:()=>i,Cl:()=>a,_3:()=>c});var n=r(9056),o=r(9710),i=(0,n.default)(o.A).withConfig({displayName:"Popover",componentId:"sc-1vwzq8j-0"})(["z-index:5000;width:200px;&.basepopup--fix-bug{font:400 14px/1.6 ProximaNova,Helvetica,sans-serif !important;white-space:normal !important;@media (max-width:400px){position:absolute;}}& .basepopup__list{margin:0 -2px;padding:0 2px;}@media (max-width:400px){position:fixed;}"]),a=(n.default.div.withConfig({displayName:"Modal",componentId:"sc-1vwzq8j-1"})(["font:400 16px/1.2 'ProximaNova',Helvetica,sans-serif;letter-spacing:0;color:#333;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-size-adjust:100%;A,BUTTON,LABEL{font:400 16px/1.2 'ProximaNova',Helvetica,sans-serif;border:0;}"]),n.default.div.withConfig({displayName:"ButtonItem",componentId:"sc-1vwzq8j-2"})(["color:",";.basepopup-selector__text{display:flex;align-items:center;svg{display:block;margin-right:4px;}}"],(function(e){var t=e.remoteIsPaid,r=e.isPaidItem;return t||!r?"":"#a2a2a2"}))),c=n.default.a.withConfig({displayName:"LinkText",componentId:"sc-1vwzq8j-3"})(["border:0 !important;font:inherit;color:inherit !important;text-transform:none !important;text-decoration:none !important;"]);n.default.div.withConfig({displayName:"Footer",componentId:"sc-1vwzq8j-4"})(["text-align:right;"])},5618:(e,t,r)=>{"use strict";r.d(t,{u:()=>n});var n=r(9056).default.div.attrs((function(e){var t=e.$position;return{style:{transform:"translate(".concat(t.x,"px, ").concat(t.y,"px)")}}})).withConfig({displayName:"Component",componentId:"sc-zvb2mg-0"})(["position:absolute;top:0;left:0;-webkit-font-smoothing:antialiased;z-index:5000;&.basepopup--arrow-left-top::before,&.basepopup--arrow-right-top::before{top:10px;}&.basepopup--arrow-top-right::before,&.basepopup--arrow-bottom-right::before{right:10px;}&.basepopup--arrow-top-left::before,&.basepopup--arrow-bottom-left::before{left:10px;}&.basepopup--arrow-left-bottom::before,&.basepopup--arrow-right-bottom::before{bottom:10px;}&.basepopup--arrow-top-center::before,&.basepopup--arrow-bottom-center::before{transform:rotate(45deg) translateX(-50%);transform-origin:left;margin:0;}"])},5849:(e,t,r)=>{"use strict";r.d(t,{l8:()=>o.A,mc:()=>n.A});var n=r(4178),o=r(1987);r(921)},5998:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6540),o=function(e){var t=(0,n.useRef)();return(0,n.useEffect)((function(){t.current=e}),[e]),t.current}},6508:(e,t,r)=>{"use strict";r.d(t,{n:()=>i});var n=r(9056),o=r(3581),i=n.default.button.withConfig({displayName:"CloseBtn",componentId:"sc-100e668-0"})(["position:absolute;top:12px;right:16px;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0;padding:4px;border:none;border-radius:4px;background:none;transition:background-color 0.15s linear;cursor:pointer;&:hover{background-color:hsl(197deg 8% 10% / 5%);}&:active{background-color:hsl(197deg 8% 10% / 10%);}&:focus{outline:none;}&:focus-visible{outline:2px solid #00a3d9;border-radius:2px;}svg{width:24px;height:24px;fill:#272C2E !important;}@media ","{right:8px;}"],o.j.maxMobileL)},6951:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(6540),o=r(457),i=["size"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const c=n.forwardRef((function(e,t){var r=e.size,c=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i);return n.createElement(o.p,a({ref:t,$size:r},c))}))},7202:(e,t,r)=>{"use strict";r.d(t,{_:()=>O});var n=r(6540),o=r(5338),i=r(1834),a=r(9056),c=a.default.h3.withConfig({displayName:"Title",componentId:"sc-v4x63z-0"})(["margin:0;margin-bottom:1rem;font-family:ProximaNova,Helvetica,sans-serif !important;font-size:14px;font-weight:bold;color:#000000;"]),l=a.default.div.withConfig({displayName:"CategoryContainer",componentId:"sc-v4x63z-1"})(["&:not(:last-child){margin-bottom:1.5rem;}"]),u=a.default.div.withConfig({displayName:"UserContainer",componentId:"sc-v4x63z-2"})(["position:relative;display:flex;justify-content:space-between;width:100%;margin:0px;&:not(:last-child){margin-bottom:1rem;}"]),s=a.default.div.withConfig({displayName:"Userpic",componentId:"sc-v4x63z-3"})(["display:flex;flex-direction:column;justify-content:start;align-items:center;flex-shrink:0;margin-right:16px;border-radius:4px;overflow:hidden;img{width:65px;height:65px;border-radius:0px;object-fit:cover;}"]),f=a.default.div.withConfig({displayName:"UserContent",componentId:"sc-v4x63z-4"})(["display:flex;flex:1 1 0%;@media (max-width:480px){flex-direction:column;align-items:flex-start;}"]),p=a.default.div.withConfig({displayName:"SubscribeBtnContainer",componentId:"sc-v4x63z-5"})(["display:flex;align-items:center;margin-left:auto;@media (max-width:480px){margin-top:6px;margin-left:0;}"]),d=a.default.div.withConfig({displayName:"UserDescription",componentId:"sc-v4x63z-6"})(["margin-right:16px;@media (max-width:480px){margin-right:0;}"]),m=a.default.div.withConfig({displayName:"UserDisplayWrapper",componentId:"sc-v4x63z-7"})(["margin-bottom:4px;.i-ljuser{display:flex;flex-wrap:nowrap;}.i-ljuser-userhead{margin-right:4px!important;opacity:1 !important;}.i-ljuser-username{text-decoration:none !important;font-weight:normal !important;color:#00A3D9 !important;&:hover,&:focus{color:#00C0FF !important;}}.i-ljuser-profile{background-image:none !important;}"]),h=a.default.p.withConfig({displayName:"JournalTitle",componentId:"sc-v4x63z-8"})(["font-size:14px;line-height:17px;"]),y=r(339),v=function(e){var t=e.data,r=void 0===t?{}:t,o=r.name,i=r.users;return n.createElement(l,null,n.createElement(c,null,o),i.map((function(e,t){var r={targetUsername:e.user,targetId:e.userid,isInSubscriptionList:e.is_subscribed,isInFriendList:e.is_friend,friendGroupsData:[],isCommunity:e.is_community,remoteIsCommunityMember:e.is_community&&e.is_member,joinRequestPending:e.is_invite_sent,isBannedInCommunity:e.is_banned,isClosedCommunity:"closed"===e.community_membership};return r.isCommunity&&(r.isInSubscriptionList=e.is_friend),n.createElement(u,{key:"".concat(t,"-").concat(e.userid)},n.createElement(s,null,n.createElement("img",{src:e.userpic,alt:e.user})),n.createElement(f,null,n.createElement(d,null,n.createElement(m,{dangerouslySetInnerHTML:{__html:e.user_display}}),e.journal_title&&n.createElement(h,null,e.journal_title)),n.createElement(p,null,n.createElement(y.f,{targetUserData:r}))))})))};function g(e){return g="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},g(e)}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}LJ.define("LJ.Page.SubRecommendModal");var E={isShown:!1,recommendations:[]},j=function(){var e,t,r=(e=(0,n.useState)(E),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(e,t):void 0}}(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.")}()),o=r[0],a=r[1];(0,n.useEffect)((function(){return LJ.Page.SubRecommendModal.setState=function(e){a(e)},function(){LJ.Page.SubRecommendModal=null}}),[]),(0,n.useEffect)((function(){return LJ.Event.on("SubRecommendModal.requestShow",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!o.isShown){var t=e.recommendations;if(0!==(void 0===t?[]:t).length){LJ.Track.YM.call({method:"reachGoal",argArr:["SHOW_FRIENDS_RECOMMENDATIONS"]});var r={isShown:!0};r=w(w({},r),{},{recommendations:e.recommendations}),a(r)}}})),LJ.Page.SubRecommendModal.isMounted=!0,LJ.Event.trigger("SubRecommendModal.mounted"),function(){LJ.Event.off("SubRecommendModal.requestShow")}}),[]);var c=o.isShown,l=o.recommendations,u=(0,n.useCallback)((function(){a(E)}),[]),s=(0,n.useMemo)((function(){return null!=l&&l.length?l.map((function(e){return n.createElement(v,{data:e,key:e.id})})):null}),[c]);return n.createElement(n.Fragment,null,c&&(null==s?void 0:s.length)&&n.createElement(i.Ay,{title:LJ.ml("common.recommended"),description:LJ.ml("common.recommended.description"),onClose:u},n.createElement("div",null,s)))},S=!1,O=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceCreateNewModal;if(!S||e){var t=document.createElement("div");t.dataset.subRecommendationModal="",document.body.append(t),(0,o.H)(t).render(n.createElement(j,null)),S=!0}};O()},7374:(e,t,r)=>{"use strict";r(6540)},7463:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var c=2*(n+1)-1,l=e[c],u=c+1,s=e[u];if(0>i(l,r))u<o&&0>i(s,l)?(e[n]=s,e[u]=r,n=u):(e[n]=l,e[c]=r,n=c);else{if(!(u<o&&0>i(s,r)))break e;e[n]=s,e[u]=r,n=u}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var c=Date,l=c.now();t.unstable_now=function(){return c.now()-l}}var u=[],s=[],f=1,p=null,d=3,m=!1,h=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=n(s);null!==t;){if(null===t.callback)o(s);else{if(!(t.startTime<=e))break;o(s),t.sortIndex=t.expirationTime,r(u,t)}t=n(s)}}function x(e){if(y=!1,w(e),!h)if(null!==n(u))h=!0,I(E);else{var t=n(s);null!==t&&F(x,t.startTime-e)}}function E(e,r){h=!1,y&&(y=!1,g(L),L=-1),m=!0;var i=d;try{for(w(r),p=n(u);null!==p&&(!(p.expirationTime>r)||e&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var c=a(p.expirationTime<=r);r=t.unstable_now(),"function"==typeof c?p.callback=c:p===n(u)&&o(u),w(r)}else o(u);p=n(u)}if(null!==p)var l=!0;else{var f=n(s);null!==f&&F(x,f.startTime-r),l=!1}return l}finally{p=null,d=i,m=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j,S=!1,O=null,L=-1,k=5,_=-1;function C(){return!(t.unstable_now()-_<k)}function P(){if(null!==O){var e=t.unstable_now();_=e;var r=!0;try{r=O(!0,e)}finally{r?j():(S=!1,O=null)}}else S=!1}if("function"==typeof b)j=function(){b(P)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,A=N.port2;N.port1.onmessage=P,j=function(){A.postMessage(null)}}else j=function(){v(P,0)};function I(e){O=e,S||(S=!0,j())}function F(e,r){L=v((function(){e(t.unstable_now())}),r)}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(){h||m||(h=!0,I(E))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return n(u)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var r=d;d=t;try{return e()}finally{d=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=d;d=e;try{return t()}finally{d=r}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>a?(e.sortIndex=i,r(s,e),null===n(u)&&e===n(s)&&(y?(g(L),L=-1):y=!0,F(x,i-a))):(e.sortIndex=c,r(u,e),h||m||(h=!0,I(E))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=d;return function(){var r=d;d=t;try{return e.apply(this,arguments)}finally{d=r}}}},7695:(e,t,r)=>{"use strict";r(6540)},7723:(e,t,r)=>{"use strict";r.d(t,{J:()=>o.A,Y:()=>n.A});var n=r(373),o=r(1016)},8081:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var n=r(6540),o=r(3451),i=["children","type","onClick","isLoading","disabled","primary","className","size"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}const c=function(e){var t=e.children,r=e.type,c=void 0===r?"button":r,l=e.onClick,u=e.isLoading,s=e.disabled,f=e.primary,p=e.className,d=e.size,m=void 0===d?"medium":d,h=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,i);return n.createElement(o.$,a({type:c||"button",onClick:l,isLoading:u,disabled:s,primary:f,className:p,$size:m},h),u&&n.createElement(o.a,null,n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",className:"svgicon flaticon flaticon--preloader",width:"14",height:"14"},n.createElement("use",{xlinkHref:"#flaticon--preloader"}))),t)}},8228:(e,t,r)=>{"use strict";r.d(t,{DD:()=>o,NM:()=>n,NT:()=>i});var n=[{name:"topStart",edge:"top",align:"start",axis:"x",placement:{x:"alignLeftEdges",y:"above"},arrow:{edge:"bottom",align:"left"}},{name:"top",edge:"top",align:"center",axis:"x",placement:{x:"alignCenters",y:"above"},arrow:{edge:"bottom",align:"center"}},{name:"topEnd",edge:"top",align:"end",axis:"x",placement:{x:"alignRightEdges",y:"above"},arrow:{edge:"bottom",align:"right"}},{name:"bottomStart",edge:"bottom",align:"start",axis:"x",placement:{x:"alignLeftEdges",y:"below"},arrow:{edge:"top",align:"left"}},{name:"bottom",edge:"bottom",align:"center",axis:"x",placement:{x:"alignCenters",y:"below"},arrow:{edge:"top",align:"center"}},{name:"bottomEnd",edge:"bottom",align:"end",axis:"x",placement:{x:"alignRightEdges",y:"below"},arrow:{edge:"top",align:"right"}},{name:"leftStart",edge:"left",align:"start",axis:"y",placement:{x:"left",y:"alignTopEdges"},arrow:{edge:"right",align:"top"}},{name:"left",edge:"left",align:"center",axis:"y",placement:{x:"left",y:"alignCenters"},arrow:{edge:"right",align:"center"}},{name:"leftEnd",edge:"left",align:"end",axis:"y",placement:{x:"left",y:"alignBottomEdges"},arrow:{edge:"right",align:"bottom"}},{name:"rightStart",edge:"right",align:"start",axis:"y",placement:{x:"right",y:"alignTopEdges"},arrow:{edge:"left",align:"top"}},{name:"right",edge:"right",align:"center",axis:"y",placement:{x:"right",y:"alignCenters"},arrow:{edge:"left",align:"center"}},{name:"rightEnd",edge:"right",align:"end",axis:"y",placement:{x:"right",y:"alignBottomEdges"},arrow:{edge:"left",align:"bottom"}}],o=Object.fromEntries(n.map((function(e){return[e.name,e.placement]}))),i={placement:o.bottomStart,position:{x:-1e3,y:-1e3},margins:{},overflowFixParams:{enabled:!0,safeEdgePad:25,canUseAltEdge:!0,canUseAltAxis:!0,excludePlacements:[]}}},8476:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var n=r(6540),o=(r(5338),r(8081)),i=r(1834),a=r(2464),c=r(3768);function l(e){return l="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},l(e)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){var n,o,i;n=e,o=t,i=r[t],(o=function(e){var t=function(e){if("object"!==l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const d=function(e){var t=e.onClose,r=void 0===t?function(){}:t,l=e.inputValue,u=e.userData,p=f((0,n.useState)(l||""),2),d=p[0],m=p[1],h=f((0,n.useState)(!1),2),y=h[0],v=h[1],g=(0,n.useRef)(null),b=function(){window.location.reload()},w=function(e){v(!1),null!=e&&e.code&&null!=e&&e.message&&LJ.Messages.error(e.message)},x=(0,n.useCallback)((function(){v(!0),LJ.Api.callP("user.alias_set",{aliases:[{id:u.id,alias:d}]}).then(b).catch(w)}),[d,u]);(0,n.useEffect)((function(){var e=function(e){13===e.which?x():27===e.which&&r()};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}),[r,x]),(0,n.useEffect)((function(){g.current.focus()}),[]);var E=!!l,j={title:LJ.ml(E?"user_note_modal.title.edit":"user_note_modal.title.add"),description:LJ.ml(E?"user_note_modal.edit_note_for":"user_note_modal.add_note_for")},S=!!d&&d!==l;return n.createElement(i.Ay,{onClose:y?void 0:r,title:j.title,withCloseBtn:!y,footer:n.createElement(c.wi,null,n.createElement(c.KB,null,E&&n.createElement(o.A,{onClick:function(){v(!0),LJ.Api.callP("user.alias_delete",{user_ids:[u.id]}).then(b).catch(w)},disabled:y,sizeL:!0},LJ.ml("common.delete")),n.createElement(c.yY,{onClick:S?x:void 0,disabled:!S||y,isLoading:y,primary:!0,sizeL:!0},n.createElement("span",null,LJ.ml("common.save")))))},n.createElement(c.VY,null,"".concat(j.description," "),n.createElement(a.c,{userData:s(s({},u),{},{displayUsername:u.username})}),":"),n.createElement(c.D0,{onChange:function(e){m(e.currentTarget.value)},className:"lightinput lightinput--big",value:d,maxLength:400,disabled:y,ref:g,type:"text",size:"large"}))}},8680:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});var n=r(6540),o=r(489),i=r(764);const a=function(e){var t=e.id,r=(0,n.useRef)(t||(0,o.A)()),a="js--scroll-lock-".concat(r.current);return(0,n.useEffect)((function(){var e=document.body;return e.classList.add(a),function(){e.classList.remove(a)}}),[a]),n.createElement(i.k,{bodyClassName:a})}},8887:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){function t(e,n,l,u,p){for(var d,m,h,y,w,E=0,j=0,S=0,O=0,L=0,A=0,F=h=d=0,T=0,M=0,J=0,U=0,R=l.length,G=R-1,B="",z="",q="",$="";T<R;){if(m=l.charCodeAt(T),T===G&&0!==j+O+S+E&&(0!==j&&(m=47===j?10:47),O=S=E=0,R++,G++),0===j+O+S+E){if(T===G&&(0<M&&(B=B.replace(f,"")),0<B.trim().length)){switch(m){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(T)}m=59}switch(m){case 123:for(d=(B=B.trim()).charCodeAt(0),h=1,U=++T;T<R;){switch(m=l.charCodeAt(T)){case 123:h++;break;case 125:h--;break;case 47:switch(m=l.charCodeAt(T+1)){case 42:case 47:e:{for(F=T+1;F<G;++F)switch(l.charCodeAt(F)){case 47:if(42===m&&42===l.charCodeAt(F-1)&&T+2!==F){T=F+1;break e}break;case 10:if(47===m){T=F+1;break e}}T=F}}break;case 91:m++;case 40:m++;case 34:case 39:for(;T++<G&&l.charCodeAt(T)!==m;);}if(0===h)break;T++}if(h=l.substring(U,T),0===d&&(d=(B=B.replace(s,"").trim()).charCodeAt(0)),64===d){switch(0<M&&(B=B.replace(f,"")),m=B.charCodeAt(1)){case 100:case 109:case 115:case 45:M=n;break;default:M=N}if(U=(h=t(n,M,h,m,p+1)).length,0<I&&(w=c(3,h,M=r(N,B,J),n,_,k,U,m,p,u),B=M.join(""),void 0!==w&&0===(U=(h=w.trim()).length)&&(m=0,h="")),0<U)switch(m){case 115:B=B.replace(x,a);case 100:case 109:case 45:h=B+"{"+h+"}";break;case 107:h=(B=B.replace(v,"$1 $2"))+"{"+h+"}",h=1===P||2===P&&i("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=B+h,112===u&&(z+=h,h="")}else h=""}else h=t(n,r(n,B,J),h,u,p+1);q+=h,h=J=M=F=d=0,B="",m=l.charCodeAt(++T);break;case 125:case 59:if(1<(U=(B=(0<M?B.replace(f,""):B).trim()).length))switch(0===F&&(d=B.charCodeAt(0),45===d||96<d&&123>d)&&(U=(B=B.replace(" ",":")).length),0<I&&void 0!==(w=c(1,B,n,e,_,k,z.length,u,p,u))&&0===(U=(B=w.trim()).length)&&(B="\0\0"),d=B.charCodeAt(0),m=B.charCodeAt(1),d){case 0:break;case 64:if(105===m||99===m){$+=B+l.charAt(T);break}default:58!==B.charCodeAt(U-1)&&(z+=o(B,d,m,B.charCodeAt(2)))}J=M=F=d=0,B="",m=l.charCodeAt(++T)}}switch(m){case 13:case 10:47===j?j=0:0===1+d&&107!==u&&0<B.length&&(M=1,B+="\0"),0<I*D&&c(0,B,n,e,_,k,z.length,u,p,u),k=1,_++;break;case 59:case 125:if(0===j+O+S+E){k++;break}default:switch(k++,y=l.charAt(T),m){case 9:case 32:if(0===O+E+j)switch(L){case 44:case 58:case 9:case 32:y="";break;default:32!==m&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===O+j+E&&(M=J=1,y="\f"+y);break;case 108:if(0===O+j+E+C&&0<F)switch(T-F){case 2:112===L&&58===l.charCodeAt(T-3)&&(C=L);case 8:111===A&&(C=A)}break;case 58:0===O+j+E&&(F=T);break;case 44:0===j+S+O+E&&(M=1,y+="\r");break;case 34:case 39:0===j&&(O=O===m?0:0===O?m:O);break;case 91:0===O+j+S&&E++;break;case 93:0===O+j+S&&E--;break;case 41:0===O+j+E&&S--;break;case 40:0===O+j+E&&(0===d&&(2*L+3*A==533||(d=1)),S++);break;case 64:0===j+S+O+E+F+h&&(h=1);break;case 42:case 47:if(!(0<O+E+S))switch(j){case 0:switch(2*m+3*l.charCodeAt(T+1)){case 235:j=47;break;case 220:U=T,j=42}break;case 42:47===m&&42===L&&U+2!==T&&(33===l.charCodeAt(U+2)&&(z+=l.substring(U,T+1)),y="",j=0)}}0===j&&(B+=y)}A=L,L=m,T++}if(0<(U=z.length)){if(M=n,0<I&&void 0!==(w=c(2,z,M,e,_,k,U,u,p,u))&&0===(z=w).length)return $+z+q;if(z=M.join(",")+"{"+z+"}",0!==P*C){switch(2!==P||i(z,2)||(C=0),C){case 111:z=z.replace(b,":-moz-$1")+z;break;case 112:z=z.replace(g,"::-webkit-input-$1")+z.replace(g,"::-moz-$1")+z.replace(g,":-ms-input-$1")+z}C=0}}return $+z+q}function r(e,t,r){var o=t.trim().split(h);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var c=0;for(e=0===a?"":e[0]+" ";c<i;++c)t[c]=n(e,t[c],r).trim();break;default:var l=c=0;for(t=[];c<i;++c)for(var u=0;u<a;++u)t[l++]=n(e[u]+" ",o[c],r).trim()}return t}function n(e,t,r){var n=t.charCodeAt(0);switch(33>n&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(y,"$1"+e.trim());case 58:return e.trim()+t.replace(y,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function o(e,t,r,n){var a=e+";",c=2*t+3*r+4*n;if(944===c){e=a.indexOf(":",9)+1;var l=a.substring(e,a.length-1).trim();return l=a.substring(0,e).trim()+l+";",1===P||2===P&&i(l,1)?"-webkit-"+l+l:l}if(0===P||2===P&&!i(a,1))return a;switch(c){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(L,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(l=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+l+a;case 1005:return d.test(a)?a.replace(p,":-webkit-")+a.replace(p,":-moz-")+a:a;case 1e3:switch(t=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=a.replace(w,"tb");break;case 232:l=a.replace(w,"tb-rl");break;case 220:l=a.replace(w,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+l+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,c=(l=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102<c?"inline-":"")+"box")+";"+a.replace(l,"-webkit-"+l)+";"+a.replace(l,"-ms-"+l+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return l=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+l+"-ms-flex-"+l+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(j,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(j,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?o(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):a.replace(l,"-webkit-"+l)+a.replace(l,"-moz-"+l.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===r+n&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(m,"$1-webkit-$2")+a}return a}function i(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),F(2!==t?n:n.replace(S,"$1"),r,t)}function a(e,t){var r=o(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(E," or ($1)").substring(4):"("+t+")"}function c(e,t,r,n,o,i,a,c,l,s){for(var f,p=0,d=t;p<I;++p)switch(f=A[p].call(u,e,d,r,n,o,i,a,c,l,s)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==t)return d}function l(e){return void 0!==(e=e.prefix)&&(F=null,e?"function"!=typeof e?P=1:(P=2,F=e):P=0),l}function u(e,r){var n=e;if(33>n.charCodeAt(0)&&(n=n.trim()),n=[n],0<I){var o=c(-1,r,n,n,_,k,0,0,0,0);void 0!==o&&"string"==typeof o&&(r=o)}var i=t(N,n,r,0,0);return 0<I&&void 0!==(o=c(-2,i,n,n,_,k,i.length,0,0,0))&&(i=o),C=0,k=_=1,i}var s=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,d=/zoo|gra/,m=/([,: ])(transform)/g,h=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,v=/@(k\w+)\s*(\S*)\s*/,g=/::(place)/g,b=/:(read-only)/g,w=/[svh]\w+-[tblr]{2}/,x=/\(\s*(.*)\s*\)/g,E=/([\s\S]*?);/g,j=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,L=/([^-])(image-set\()/,k=1,_=1,C=0,P=1,N=[],A=[],I=0,F=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:I=A.length=0;break;default:if("function"==typeof t)A[I++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else D=0|!!t}return e},u.set=l,void 0!==e&&l(e),u}},8936:(e,t,r)=>{"use strict";r.d(t,{Vw:()=>u,ql:()=>l});var n=r(6540);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function p(e,t,r,n){var o=t&&t.prototype instanceof b?t:b,i=Object.create(o.prototype),c=new A(n||[]);return a(i,"_invoke",{value:_(e,r,c)}),i}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var m="suspendedStart",h="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function x(){}var E={};f(E,l,(function(){return this}));var j=Object.getPrototypeOf,S=j&&j(j(I([])));S&&S!==r&&n.call(S,l)&&(E=S);var O=x.prototype=b.prototype=Object.create(E);function L(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(i,a,c,l){var u=d(e[i],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==o(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,c,l)}),(function(e){r("throw",e,c,l)})):t.resolve(f).then((function(e){s.value=e,c(s)}),(function(e){return r("throw",e,c,l)}))}l(u.arg)}var i;a(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function _(t,r,n){var o=m;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===v){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=C(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===m)throw o=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var u=d(t,r,n);if("normal"===u.type){if(o=n.done?v:h,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=v,n.method="throw",n.arg=u.arg)}}}function C(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,C(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(t){if(t||""===t){var r=t[l];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return w.prototype=x,a(O,"constructor",{value:x,configurable:!0}),a(x,"constructor",{value:w,configurable:!0}),w.displayName=f(x,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,f(e,s,"GeneratorFunction")),e.prototype=Object.create(O),e},t.awrap=function(e){return{__await:e}},L(k.prototype),f(k.prototype,u,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(p(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},L(O),f(O,s,"Generator"),f(O,l,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=I,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:I(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function a(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}var c=function(){var e,t=(e=i().mark((function e(){var t,r,n,o,a,c,l,u,s,f,p,d,m,h,y=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=(t=y.length>0&&void 0!==y[0]?y[0]:{}).reducerState,n=t.targetUserId,o=t.targetUsername,a=t.dispatch,!r.userNameDisplayData.isLoaded){e.next=4;break}return e.abrupt("return");case 4:if(c={fields:{display_username:!0,userhead_url:!0,profile_url:!0,journal_url:!0}},!n){e.next=9;break}c.targetid=n,e.next=14;break;case 9:if(!o){e.next=13;break}c.target=o,e.next=14;break;case 13:throw new Error("user.get target is not provided");case 14:return e.next=16,LJ.Api.callP("user.get",c);case 16:l=e.sent,u=l.user,s=u.username,f=u.display_username,p=u.userhead_url,d=u.profile_url,m=u.journal_url,h=u.id,a({type:"setUserNameDisplayData",value:{isLoaded:!0,username:s,displayUsername:f,userheadUrl:p,profileUrl:d,journalUrl:m,id:h}});case 21:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function c(e){a(i,n,o,c,l,"next",e)}function l(e){a(i,n,o,c,l,"throw",e)}c(void 0)}))});return function(){return t.apply(this,arguments)}}(),l=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.reducerState,r=e.dispatch,n=e.targetUserId,o=e.targetUsername;return{userNameDisplayData:t.userNameDisplayData,savedUserNote:t.savedUserNote,onDropdownUserNoteBtnClick:function(){c({reducerState:t,targetUserId:n,targetUsername:o,dispatch:r}).then((function(){r({type:"showUserNoteModal"})})).catch((function(e){var t=e.message;LJ.Messages.error(LJ.ml("common.something_went_wrong")),console.error("SubscribeBtn2022/userNote/loadUserNameDisplayData: ".concat(t).trim())}))},modal:{onClose:function(){r({type:"closeUserNoteModal"})},isShown:t.isUserNoteModalShown}}},u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetUserId,r=e.reducerState,o=e.dispatch;(0,n.useEffect)((function(){t&&r.hasShownDropdown&&!r.hasLoadedUserNote&&LJ.Api.callP("user.alias_get",{user_id:t}).then((function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).alias;o({type:"markUserNoteAsLoaded"}),o({type:"setSavedUserNote",value:e})}))}),[r.hasLoadedUserNote,r.hasShownDropdown,t,o])}},9316:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const o=function(){var e=Object.create(null);return function(t){return void 0===e[t]&&(e[t]=(r=t,n.test(r)||111===r.charCodeAt(0)&&110===r.charCodeAt(1)&&r.charCodeAt(2)<91)),e[t];var r}}()},9472:(e,t,r)=>{"use strict";r(6540)},9710:(e,t,r)=>{"use strict";r.d(t,{A:()=>f,c:()=>l.D});var n=r(6540),o=r(961),i=r(4044),a=r(74),c=r(5849),l=r(921),u=r(5618);function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const f=n.forwardRef((function(e,t){var r,f,p=e.className,d=e.children,m=e.anchorEl,h=e.anchorRect,y=e.containerRef,v=e.placement,g=e.margins,b=e.overflowFixParams,w=e.withArrow,x=e.positioningGetter,E=e.updateOnScroll,j=void 0===E?{window:!0}:E,S=e.updateOnResize,O=void 0===S?{window:!0,anchor:!0,popover:!0}:S,L=e.closeOnScroll,k=void 0!==L&&L,_=e.onMouseEnter,C=e.onMouseLeave,P=e.onClose,N=void 0===P?function(){}:P,A=(0,n.useRef)(null),I=(0,i.DP)(),F=(r=(0,l.A)({anchorEl:m,anchorRect:h,popoverRef:A,placement:v,margins:g,overflowFixParams:b,containerRef:y,withArrow:w,positioningGetter:x}),f=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,f)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(r,f)||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.")}()),D=F[0],T=F[1],M=D.arrow,J=D.position;return(0,n.useImperativeHandle)(t,(function(){return A.current}),[]),(0,i.Wr)(A,N),(0,n.useLayoutEffect)((function(){T()}),[]),(0,c.mc)(O,{anchorEl:m,anchorRect:h,popoverRef:A,recalcPositioning:T}),(0,c.l8)(j,{anchorEl:m,popoverRef:A,closeOnScroll:k,recalcPositioning:T,onClose:N}),(0,n.useEffect)((function(){return LJ.Event.on("react::CommonPopover::closeAll",N),function(){LJ.Event.off("react::CommonPopover::closeAll",N)}}),[N]),(0,o.createPortal)(n.createElement(u.u,{className:(0,a._)(["basepopup","basepopup--fix-bug","dark"===I&&"basepopup--dark",M&&"basepopup--arrow-".concat(M.edge,"-").concat(M.align),p]),$position:J,ref:A,onMouseEnter:_,onMouseLeave:C},d),(null==y?void 0:y.current)||document.body)}))},9982:(e,t,r)=>{"use strict";e.exports=r(7463)}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var a=1/0;for(s=0;s<e.length;s++){for(var[r,o,i]=e[s],c=!0,l=0;l<r.length;l++)(!1&i||a>=i)&&Object.keys(n.O).every((e=>n.O[e](r[l])))?r.splice(l--,1):(c=!1,i<a&&(a=i));if(c){e.splice(s--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var s=e.length;s>0&&e[s-1][2]>i;s--)e[s]=e[s-1];e[s]=[r,o,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e={138:0,202:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[a,c,l]=r,u=0;if(a.some((t=>0!==e[t]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(l)var s=l(n)}for(t&&t(r);u<a.length;u++)i=a[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(s)},r=self.webpackChunkfrontend_bundled=self.webpackChunkfrontend_bundled||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0;var o=n.O(void 0,[35],(()=>n(1525)));o=n.O(o)})();
/* <<< file end: js/front-bundled/dist/profile.js */

//# map link was there [profile.js.map]
