/* >>> file start: js/front-bundled/dist/profile.js */
/*! For license information please see profile.js.LICENSE.txt */
(()=>{var t,e={2833:t=>{t.exports=function(t,e,r,n){var o=r?r.call(n,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(e),l=0;l<i.length;l++){var u=i[l];if(!c(u))return!1;var s=t[u],f=e[u];if(!1===(o=r?r.call(n,s,f,u):void 0)||void 0===o&&s!==f)return!1}return!0}},3451:(t,e,r)=>{"use strict";r.d(e,{$:()=>o,a:()=>i});var n=r(79056),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(t){return t.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(t){return t.isLoading&&(0,n.css)(["color:transparent;&:hover,&:focus,&:active{color:transparent;}"])}),(function(t){var e=t.disabled,r=t.primary;return e&&(0,n.css)(["opacity:.5;cursor:not-allowed;&:hover,&:focus{background-color:",";border-color:",";}"],r?"#00A3D9":"#FFFFFF",r?"#00A3D9":"#D4DCE0")}),(function(t){return t.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(t){return t.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(t){return t.linkType&&(0,n.css)(["padding:0;border:0;background-color:transparent;color:#0099CC;&:hover,&:active,&:focus{color:#0086B3;background-color:transparent;}"])}),(function(t){var e=t.$size;return{medium:(0,n.css)(["padding:8px 16px;"])}[e]}),(function(t){return t.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(t){return t.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);}}"])},4146:(t,e,r)=>{"use strict";var n=r(44363),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(t){return n.isMemo(t)?a:c[t.$$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,h=Object.prototype;t.exports=function t(e,r,n){if("string"!=typeof r){if(h){var o=d(r);o&&o!==h&&t(e,o,n)}var a=s(r);f&&(a=a.concat(f(r)));for(var c=l(e),m=l(r),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||n&&n[v]||m&&m[v]||c&&c[v])){var g=p(r,v);try{u(e,v,g)}catch(t){}}}}return e}},7463:(t,e)=>{"use strict";function r(t,e){var r=t.length;t.push(e);t:for(;0<r;){var n=r-1>>>1,o=t[n];if(!(0<i(o,e)))break t;t[n]=e,t[r]=o,r=n}}function n(t){return 0===t.length?null:t[0]}function o(t){if(0===t.length)return null;var e=t[0],r=t.pop();if(r!==e){t[0]=r;t:for(var n=0,o=t.length,a=o>>>1;n<a;){var c=2*(n+1)-1,l=t[c],u=c+1,s=t[u];if(0>i(l,r))u<o&&0>i(s,l)?(t[n]=s,t[u]=r,n=u):(t[n]=l,t[c]=r,n=c);else{if(!(u<o&&0>i(s,r)))break t;t[n]=s,t[u]=r,n=u}}}return e}function i(t,e){var r=t.sortIndex-e.sortIndex;return 0!==r?r:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var c=Date,l=c.now();e.unstable_now=function(){return c.now()-l}}var u=[],s=[],f=1,p=null,d=3,h=!1,m=!1,y=!1,v="function"==typeof setTimeout?setTimeout:null,g="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(t){for(var e=n(s);null!==e;){if(null===e.callback)o(s);else{if(!(e.startTime<=t))break;o(s),e.sortIndex=e.expirationTime,r(u,e)}e=n(s)}}function x(t){if(y=!1,w(t),!m)if(null!==n(u))m=!0,I(E);else{var e=n(s);null!==e&&F(x,e.startTime-t)}}function E(t,r){m=!1,y&&(y=!1,g(L),L=-1),h=!0;var i=d;try{for(w(r),p=n(u);null!==p&&(!(p.expirationTime>r)||t&&!C());){var a=p.callback;if("function"==typeof a){p.callback=null,d=p.priorityLevel;var c=a(p.expirationTime<=r);r=e.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,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,j=!1,O=null,L=-1,_=5,k=-1;function C(){return!(e.unstable_now()-k<_)}function P(){if(null!==O){var t=e.unstable_now();k=t;var r=!0;try{r=O(!0,t)}finally{r?S():(j=!1,O=null)}}else j=!1}if("function"==typeof b)S=function(){b(P)};else if("undefined"!=typeof MessageChannel){var N=new MessageChannel,A=N.port2;N.port1.onmessage=P,S=function(){A.postMessage(null)}}else S=function(){v(P,0)};function I(t){O=t,j||(j=!0,S())}function F(t,r){L=v((function(){t(e.unstable_now())}),r)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){m||h||(m=!0,I(E))},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<t?Math.floor(1e3/t):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(t){switch(d){case 1:case 2:case 3:var e=3;break;default:e=d}var r=d;d=e;try{return t()}finally{d=r}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=d;d=t;try{return e()}finally{d=r}},e.unstable_scheduleCallback=function(t,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,t){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 t={id:f++,callback:o,priorityLevel:t,startTime:i,expirationTime:c=i+c,sortIndex:-1},i>a?(t.sortIndex=i,r(s,t),null===n(u)&&t===n(s)&&(y?(g(L),L=-1):y=!0,F(x,i-a))):(t.sortIndex=c,r(u,t),m||h||(m=!0,I(E))),t},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(t){var e=d;return function(){var r=d;d=e;try{return t.apply(this,arguments)}finally{d=r}}}},7723:(t,e,r)=>{"use strict";r.d(e,{J:()=>o.A,Y:()=>n.A});var n=r(70373),o=r(31016)},8680:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(96540),o=r(10489),i=r(90764);const a=function(t){var e=t.id,r=(0,n.useRef)(e||(0,o.A)()),a="js--scroll-lock-".concat(r.current);return(0,n.useEffect)((function(){var t=document.body;return t.classList.add(a),function(){t.classList.remove(a)}}),[a]),n.createElement(i.k,{bodyClassName:a})}},8887:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(t){function e(t,n,l,u,p){for(var d,h,m,y,w,E=0,S=0,j=0,O=0,L=0,A=0,F=m=d=0,T=0,J=0,M=0,G=0,R=l.length,U=R-1,B="",q="",z="",$="";T<R;){if(h=l.charCodeAt(T),T===U&&0!==S+O+j+E&&(0!==S&&(h=47===S?10:47),O=j=E=0,R++,U++),0===S+O+j+E){if(T===U&&(0<J&&(B=B.replace(f,"")),0<B.trim().length)){switch(h){case 32:case 9:case 59:case 13:case 10:break;default:B+=l.charAt(T)}h=59}switch(h){case 123:for(d=(B=B.trim()).charCodeAt(0),m=1,G=++T;T<R;){switch(h=l.charCodeAt(T)){case 123:m++;break;case 125:m--;break;case 47:switch(h=l.charCodeAt(T+1)){case 42:case 47:t:{for(F=T+1;F<U;++F)switch(l.charCodeAt(F)){case 47:if(42===h&&42===l.charCodeAt(F-1)&&T+2!==F){T=F+1;break t}break;case 10:if(47===h){T=F+1;break t}}T=F}}break;case 91:h++;case 40:h++;case 34:case 39:for(;T++<U&&l.charCodeAt(T)!==h;);}if(0===m)break;T++}if(m=l.substring(G,T),0===d&&(d=(B=B.replace(s,"").trim()).charCodeAt(0)),64===d){switch(0<J&&(B=B.replace(f,"")),h=B.charCodeAt(1)){case 100:case 109:case 115:case 45:J=n;break;default:J=N}if(G=(m=e(n,J,m,h,p+1)).length,0<I&&(w=c(3,m,J=r(N,B,M),n,k,_,G,h,p,u),B=J.join(""),void 0!==w&&0===(G=(m=w.trim()).length)&&(h=0,m="")),0<G)switch(h){case 115:B=B.replace(x,a);case 100:case 109:case 45:m=B+"{"+m+"}";break;case 107:m=(B=B.replace(v,"$1 $2"))+"{"+m+"}",m=1===P||2===P&&i("@"+m,3)?"@-webkit-"+m+"@"+m:"@"+m;break;default:m=B+m,112===u&&(q+=m,m="")}else m=""}else m=e(n,r(n,B,M),m,u,p+1);z+=m,m=M=J=F=d=0,B="",h=l.charCodeAt(++T);break;case 125:case 59:if(1<(G=(B=(0<J?B.replace(f,""):B).trim()).length))switch(0===F&&(d=B.charCodeAt(0),45===d||96<d&&123>d)&&(G=(B=B.replace(" ",":")).length),0<I&&void 0!==(w=c(1,B,n,t,k,_,q.length,u,p,u))&&0===(G=(B=w.trim()).length)&&(B="\0\0"),d=B.charCodeAt(0),h=B.charCodeAt(1),d){case 0:break;case 64:if(105===h||99===h){$+=B+l.charAt(T);break}default:58!==B.charCodeAt(G-1)&&(q+=o(B,d,h,B.charCodeAt(2)))}M=J=F=d=0,B="",h=l.charCodeAt(++T)}}switch(h){case 13:case 10:47===S?S=0:0===1+d&&107!==u&&0<B.length&&(J=1,B+="\0"),0<I*D&&c(0,B,n,t,k,_,q.length,u,p,u),_=1,k++;break;case 59:case 125:if(0===S+O+j+E){_++;break}default:switch(_++,y=l.charAt(T),h){case 9:case 32:if(0===O+E+S)switch(L){case 44:case 58:case 9:case 32:y="";break;default:32!==h&&(y=" ")}break;case 0:y="\\0";break;case 12:y="\\f";break;case 11:y="\\v";break;case 38:0===O+S+E&&(J=M=1,y="\f"+y);break;case 108:if(0===O+S+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+S+E&&(F=T);break;case 44:0===S+j+O+E&&(J=1,y+="\r");break;case 34:case 39:0===S&&(O=O===h?0:0===O?h:O);break;case 91:0===O+S+j&&E++;break;case 93:0===O+S+j&&E--;break;case 41:0===O+S+E&&j--;break;case 40:0===O+S+E&&(0===d&&(2*L+3*A==533||(d=1)),j++);break;case 64:0===S+j+O+E+F+m&&(m=1);break;case 42:case 47:if(!(0<O+E+j))switch(S){case 0:switch(2*h+3*l.charCodeAt(T+1)){case 235:S=47;break;case 220:G=T,S=42}break;case 42:47===h&&42===L&&G+2!==T&&(33===l.charCodeAt(G+2)&&(q+=l.substring(G,T+1)),y="",S=0)}}0===S&&(B+=y)}A=L,L=h,T++}if(0<(G=q.length)){if(J=n,0<I&&void 0!==(w=c(2,q,J,t,k,_,G,u,p,u))&&0===(q=w).length)return $+q+z;if(q=J.join(",")+"{"+q+"}",0!==P*C){switch(2!==P||i(q,2)||(C=0),C){case 111:q=q.replace(b,":-moz-$1")+q;break;case 112:q=q.replace(g,"::-webkit-input-$1")+q.replace(g,"::-moz-$1")+q.replace(g,":-ms-input-$1")+q}C=0}}return $+q+z}function r(t,e,r){var o=e.trim().split(m);e=o;var i=o.length,a=t.length;switch(a){case 0:case 1:var c=0;for(t=0===a?"":t[0]+" ";c<i;++c)e[c]=n(t,e[c],r).trim();break;default:var l=c=0;for(e=[];c<i;++c)for(var u=0;u<a;++u)e[l++]=n(t[u]+" ",o[c],r).trim()}return e}function n(t,e,r){var n=e.charCodeAt(0);switch(33>n&&(n=(e=e.trim()).charCodeAt(0)),n){case 38:return e.replace(y,"$1"+t.trim());case 58:return t.trim()+e.replace(y,"$1"+t.trim());default:if(0<1*r&&0<e.indexOf("\f"))return e.replace(y,(58===t.charCodeAt(0)?"":"$1")+t.trim())}return t+e}function o(t,e,r,n){var a=t+";",c=2*e+3*r+4*n;if(944===c){t=a.indexOf(":",9)+1;var l=a.substring(t,a.length-1).trim();return l=a.substring(0,t).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(e=(l=a.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(e)){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(e=(a=t).length-10,c=(l=(33===a.charCodeAt(e)?a.substring(0,e):a).substring(t.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(S,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(S,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===O.test(t))return 115===(l=t.substring(t.indexOf(":")+1)).charCodeAt(0)?o(t.replace("stretch","fill-available"),e,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(h,"$1-webkit-$2")+a}return a}function i(t,e){var r=t.indexOf(1===e?":":"{"),n=t.substring(0,3!==e?r:10);return r=t.substring(r+1,t.length-1),F(2!==e?n:n.replace(j,"$1"),r,e)}function a(t,e){var r=o(e,e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2));return r!==e+";"?r.replace(E," or ($1)").substring(4):"("+e+")"}function c(t,e,r,n,o,i,a,c,l,s){for(var f,p=0,d=e;p<I;++p)switch(f=A[p].call(u,t,d,r,n,o,i,a,c,l,s)){case void 0:case!1:case!0:case null:break;default:d=f}if(d!==e)return d}function l(t){return void 0!==(t=t.prefix)&&(F=null,t?"function"!=typeof t?P=1:(P=2,F=t):P=0),l}function u(t,r){var n=t;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=e(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/,h=/([,: ])(transform)/g,m=/,\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,S=/-self|flex-/g,j=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,L=/([^-])(image-set\()/,_=1,k=1,C=0,P=1,N=[],A=[],I=0,F=null,D=0;return u.use=function t(e){switch(e){case void 0:case null:I=A.length=0;break;default:if("function"==typeof e)A[I++]=e;else if("object"==typeof e)for(var r=0,n=e.length;r<n;++r)t(e[r]);else D=0|!!e}return t},u.set=l,void 0!==t&&l(t),u}},9472:(t,e,r)=>{"use strict";r(96540)},10489:(t,e,r)=>{"use strict";r.d(e,{A:()=>n});const n=function(){return Date.now().toString(36)+Math.random().toString(36).slice(2)}},13768:(t,e,r)=>{"use strict";r.d(e,{KB:()=>u,VY:()=>i,pd:()=>a,wi:()=>l,yY:()=>c});var n=r(79056),o=r(28081),i=n.default.p.withConfig({displayName:"Description",componentId:"sc-i2y7sb-0"})(["margin:0 0 12px 0;"]),a=n.default.input.attrs({type:"text"}).withConfig({displayName:"Input",componentId:"sc-i2y7sb-1"})(["width:100%;text-overflow:ellipsis;"]),c=(0,n.default)(o.A).withConfig({displayName:"SaveButton",componentId:"sc-i2y7sb-2"})(["",""],(function(t){return t.isLoading&&(0,n.css)(["& span{opacity:0;}"])})),l=n.default.div.withConfig({displayName:"Footer",componentId:"sc-i2y7sb-3"})(["display:flex;justify-content:space-between;align-items:center;"]),u=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;"])},14554:(t,e,r)=>{"use strict";r.d(e,{D:()=>n,N:()=>o});var n=r(96540).createContext({}),o=n.Provider},18092:(t,e,r)=>{"use strict";r.d(e,{A:()=>d,y:()=>u});var n=r(96540);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function c(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){l(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function l(t,e,r){return(e=function(t){var e=function(t){if("object"!==o(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===o(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var u={x:{ALIGN_LEFT_EDGES:"alignLeftEdges",ALIGN_RIGHT_EDGES:"alignRightEdges",ALIGN_CENTERS:"alignCenters",RIGHT:"right",LEFT:"left"},y:{ALIGN_TOP_EDGES:"alignTopEdges",ABOVE:"above",BELOW:"below"}},s={x:l(l(l(l(l({},u.x.ALIGN_LEFT_EDGES,[u.x.ALIGN_RIGHT_EDGES]),u.x.ALIGN_RIGHT_EDGES,[u.x.ALIGN_LEFT_EDGES]),u.x.LEFT,[u.x.RIGHT]),u.x.RIGHT,[u.x.LEFT]),u.x.ALIGN_CENTERS,[u.x.ALIGN_LEFT_EDGES,u.x.ALIGN_RIGHT_EDGES]),y:l(l({},u.y.ABOVE,[u.y.BELOW]),u.y.BELOW,[u.y.ABOVE])},f={placement:{x:u.x.ALIGN_LEFT_EDGES,y:u.y.BELOW},position:{x:-1e3,y:-1e3},margins:{}},p=function(t){var e=t.anchorRect,r=t.objectRect,n=t.placement,o=void 0===n?f.placement:n,i=t.margins,a=void 0===i?f.margins:i;if(!e||!r)return f.position;var l=function(t){var n=LJ.Util.Positioning.RectNearRect.calculateCoords({anchorRect:e,objectRect:r,placement:t,margins:a}),o=n.x,i=n.y;return{placement:t,position:{x:o,y:i},overflowStates:{hasTopEdgeOverflow:i-25<0,hasBottomEdgeOverflow:i+r.height+25>window.innerHeight,hasLeftEdgeOverflow:o-25<0,hasRightEdgeOverflow:o+r.width+25>window.innerWidth}}},u=l(o);if(u.overflowStates.hasLeftEdgeOverflow||u.overflowStates.hasRightEdgeOverflow)for(var p=s.x[u.placement.x]||[],d=0;d<p.length;d+=1){var h=l(c(c({},u.placement),{},{x:p[d]}));if(!h.overflowStates.hasLeftEdgeOverflow&&!h.overflowStates.hasRightEdgeOverflow){u=h;break}}if(u.overflowStates.hasTopEdgeOverflow||u.overflowStates.hasBottomEdgeOverflow)for(var m=s.y[u.placement.y]||[],y=0;y<m.length;y+=1){var v=l(c(c({},u.placement),{},{y:m[y]}));if(!v.overflowStates.hasTopEdgeOverflow&&!v.overflowStates.hasBottomEdgeOverflow){u=v;break}}return u.overflowStates.hasLeftEdgeOverflow&&(u.position.x=25),{x:"number"==typeof u.position.x?u.position.x+window.scrollX:f.position.x,y:"number"==typeof u.position.y?u.position.y+window.scrollY:f.position.y}};const d=function(t){var e,r,o=t.positionGetter,a=t.placement,c=t.margins,l="function"==typeof o?o:p,u=(e=(0,n.useState)(f.position),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(e,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.")}()),s=u[0],d=u[1];return[s,(0,n.useCallback)((function(t){var e=t.anchorRect,r=t.objectRect,n=l({anchorRect:e,objectRect:r,placement:a,margins:c});d(n)}),[l,a,c])]}},20158:(t,e,r)=>{"use strict";r(96540)},20230:(t,e,r)=>{"use strict";r.d(e,{d:()=>n});var n=r(79056).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;}"])},20339:(t,e,r)=>{"use strict";r.d(e,{Y:()=>u,f:()=>l});var n=r(96540),o=r(5338),i=r(61206);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var l=i.F,u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.targetNode,r=t.initProps,l=void 0===r?{}:r,u=l.targetUserData,s=l.customProps,f=void 0===s?{}:s;if(!e)throw new Error("SubscribeBtn2022:initOnNode:targetNode is not provided");if(!u)throw new Error("SubscribeBtn2022:initOnNode:targetUserData is not provided");e.innerHTML="";var p=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==a(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({targetUserData:u},f);(0,o.H)(e).render(n.createElement(i.F,p))};LJ.define("LJ.Components.SubscribeBtn2022"),LJ.Components.SubscribeBtn2022.initOnNode=u},22068:(t,e,r)=>{"use strict";r.d(e,{Mn:()=>o,c9:()=>a,jZ:()=>i});var n=r(79056),o=n.default.a.withConfig({displayName:"Userhead",componentId:"sc-7u2ddd-0"})([""]),i=n.default.a.withConfig({displayName:"Username",componentId:"sc-7u2ddd-1"})([""]),a=n.default.span.withConfig({displayName:"LjUser",componentId:"sc-7u2ddd-2"})(["","{margin-right:4px !important;}"],o)},22799:(t,e)=>{"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,h=r?Symbol.for("react.suspense_list"):60120,m=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(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case s:case f:case i:case c:case a:case d:return t;default:switch(t=t&&t.$$typeof){case u:case p:case y:case m:case l:return t;default:return e}}case o:return e}}}function E(t){return x(t)===f}e.AsyncMode=s,e.ConcurrentMode=f,e.ContextConsumer=u,e.ContextProvider=l,e.Element=n,e.ForwardRef=p,e.Fragment=i,e.Lazy=y,e.Memo=m,e.Portal=o,e.Profiler=c,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(t){return E(t)||x(t)===s},e.isConcurrentMode=E,e.isContextConsumer=function(t){return x(t)===u},e.isContextProvider=function(t){return x(t)===l},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===n},e.isForwardRef=function(t){return x(t)===p},e.isFragment=function(t){return x(t)===i},e.isLazy=function(t){return x(t)===y},e.isMemo=function(t){return x(t)===m},e.isPortal=function(t){return x(t)===o},e.isProfiler=function(t){return x(t)===c},e.isStrictMode=function(t){return x(t)===a},e.isSuspense=function(t){return x(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===i||t===f||t===c||t===a||t===d||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===m||t.$$typeof===l||t.$$typeof===u||t.$$typeof===p||t.$$typeof===g||t.$$typeof===b||t.$$typeof===w||t.$$typeof===v)},e.typeOf=x},24582:(t,e,r)=>{"use strict";r.d(e,{FQ:()=>s,aF:()=>a,az:()=>c,hJ:()=>i,nB:()=>l,wi:()=>u});var n=r(79056),o=r(83581),i=(r(32231),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;"],(function(t){return t.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"})(["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(t){return t.isBodyScrollable&&"border-bottom: 1px solid #E5EBEE;"}),(function(t){return t.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;}"]))},25439:(t,e,r)=>{"use strict";r.d(e,{AM:()=>i,Cl:()=>a,_3:()=>c});var n=r(79056),o=r(69710),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(t){var e=t.remoteIsPaid,r=t.isPaidItem;return e||!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;"])},26508:(t,e,r)=>{"use strict";r.d(e,{n:()=>i});var n=r(79056),o=r(83581),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)},27374:(t,e,r)=>{"use strict";r.d(e,{l:()=>a});var n=r(96540);function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var i=function(){return{width:window.innerWidth,height:window.innerHeight}},a=function(){var t,e,r=(t=(0,n.useState)(i),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}(t,e)||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.")}()),a=r[0],c=r[1];return(0,n.useEffect)((function(){var t=function(){c(i())};return window.addEventListener("resize",t),t(),function(){window.removeEventListener("resize",t)}}),[]),a}},28081:(t,e,r)=>{"use strict";r.d(e,{A:()=>c});var n=r(96540),o=r(3451),i=["children","type","onClick","isLoading","disabled","primary","className","size"];function a(){return a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}const c=function(t){var e=t.children,r=t.type,c=void 0===r?"button":r,l=t.onClick,u=t.isLoading,s=t.disabled,f=t.primary,p=t.className,d=t.size,h=void 0===d?"medium":d,m=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,i);return n.createElement(o.$,a({type:c||"button",onClick:l,isLoading:u,disabled:s,primary:f,className:p,$size:h},m),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"}))),e)}},31016:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(96540),o=r(92968),i=r(26508);const a=function(t){var e=t.onClick;return n.createElement(i.n,{className:"svgicon flaticon flaticons-v2--cross","aria-label":"Close","aria-required":"true",onClick:e},n.createElement(o.A,{width:"16",height:"16",xlinkHref:"flaticons-v2--cross"}))}},32231:(t,e,r)=>{"use strict";r.d(e,{VY:()=>a,Y9:()=>c,hE:()=>i});var n=r(79056),o=r(83581),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(t){return t.$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)},39316:(t,e,r)=>{"use strict";r.d(e,{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 t=Object.create(null);return function(e){return void 0===t[e]&&(t[e]=(r=e,n.test(r)||111===r.charCodeAt(0)&&110===r.charCodeAt(1)&&r.charCodeAt(2)<91)),t[e];var r}}()},44363:(t,e,r)=>{"use strict";t.exports=r(22799)},52464:(t,e,r)=>{"use strict";r.d(e,{c:()=>s});var n=r(96540),o=r(80074),i=r(22068);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function l(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?l(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==a(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===a(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var s=function(t){var e,r=t.className,a=t.linksTarget,l=void 0===a?"_self":a,s=t.noCtxPopup,f=void 0===s||s,p=t.userData,d=p.username,h=p.userheadUrl,m=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((e=f?["i-ljuser-nopopup","noctxpopup"]:[],function(t){if(Array.isArray(t))return c(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):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.")}()),[r])),"data-ljuser":d},h&&n.createElement(i.Mn,x,n.createElement("img",{className:"i-ljuser-userhead",src:h})),n.createElement(i.jZ,E,m||y))}},55153:(t,e,r)=>{"use strict";r.d(e,{W:()=>o});var n=r(96540),o=function(t,e){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){t.current&&!t.current.contains(r.target)&&e(r)};return o?document.addEventListener("click",r):setTimeout((function(){document.addEventListener("click",r)})),function(){document.removeEventListener("click",r)}}),[t,e,o])}},55998:(t,e,r)=>{"use strict";r(96540)},58936:(t,e,r)=>{"use strict";r.d(e,{Vw:()=>u,ql:()=>l});var n=r(96540);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new A(n||[]);return a(i,"_invoke",{value:k(t,r,c)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=p;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function x(){}var E={};f(E,l,(function(){return this}));var S=Object.getPrototypeOf,j=S&&S(S(I([])));j&&j!==r&&n.call(j,l)&&(E=j);var O=x.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(i,a,c,l){var u=d(t[i],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==o(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,c,l)}),(function(t){r("throw",t,c,l)})):e.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return r("throw",t,c,l)}))}l(u.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=h;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===h)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:m,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(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[l];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i<e.length;)if(n.call(e,i))return r.value=e[i],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}throw new TypeError(o(e)+" 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"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(_.prototype),f(_.prototype,u,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(p(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(O),f(O,s,"Generator"),f(O,l,(function(){return this})),f(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.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)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){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}},e}function a(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}var c=function(){var t,e=(t=i().mark((function t(){var e,r,n,o,a,c,l,u,s,f,p,d,h,m,y=arguments;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=(e=y.length>0&&void 0!==y[0]?y[0]:{}).reducerState,n=e.targetUserId,o=e.targetUsername,a=e.dispatch,!r.userNameDisplayData.isLoaded){t.next=4;break}return t.abrupt("return");case 4:if(c={fields:{display_username:!0,userhead_url:!0,profile_url:!0,journal_url:!0}},!n){t.next=9;break}c.targetid=n,t.next=14;break;case 9:if(!o){t.next=13;break}c.target=o,t.next=14;break;case 13:throw new Error("user.get target is not provided");case 14:return t.next=16,LJ.Api.callP("user.get",c);case 16:l=t.sent,u=l.user,s=u.username,f=u.display_username,p=u.userhead_url,d=u.profile_url,h=u.journal_url,m=u.id,a({type:"setUserNameDisplayData",value:{isLoaded:!0,username:s,displayUsername:f,userheadUrl:p,profileUrl:d,journalUrl:h,id:m}});case 21:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,l,"next",t)}function l(t){a(i,n,o,c,l,"throw",t)}c(void 0)}))});return function(){return e.apply(this,arguments)}}(),l=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.reducerState,r=t.dispatch,n=t.targetUserId,o=t.targetUsername;return{userNameDisplayData:e.userNameDisplayData,savedUserNote:e.savedUserNote,onDropdownUserNoteBtnClick:function(){c({reducerState:e,targetUserId:n,targetUsername:o,dispatch:r}).then((function(){r({type:"showUserNoteModal"})})).catch((function(t){var e=t.message;LJ.Messages.error(LJ.ml("common.something_went_wrong")),console.error("SubscribeBtn2022/userNote/loadUserNameDisplayData: ".concat(e).trim())}))},modal:{onClose:function(){r({type:"closeUserNoteModal"})},isShown:e.isUserNoteModalShown}}},u=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.targetUserId,r=t.reducerState,o=t.dispatch;(0,n.useEffect)((function(){e&&r.hasShownDropdown&&!r.hasLoadedUserNote&&LJ.Api.callP("user.alias_get",{user_id:e}).then((function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).alias;o({type:"markUserNoteAsLoaded"}),o({type:"setSavedUserNote",value:t})}))}),[r.hasLoadedUserNote,r.hasShownDropdown,e,o])}},61206:(t,e,r)=>{"use strict";r.d(e,{F:()=>d});var n=r(96540),o=r(14554),i=r(85194),a=r(82595),c=r(58936);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==l(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.targetUserData,r=void 0===e?{}:e,l=t.theme,u=void 0===l?"light":l,p=t.gluePopups,d=t.onSubscribe,h=void 0===d?function(){}:d,m=t.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:m||Math.random().toString(36).substr(2,9)}),1)[0],S=r.targetId,j=w.targetUsername,O=w.isInSubscriptionList,L=w.friendGroupsData,_=w.isCommunity,k=E.componentId,C=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.username,n=e.data;if(r===j)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===(t=Site.journal)||void 0===t?void 0:t.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)});_&&(o.isInSubscriptionList=n.is_friend),x(o)}},P=function(t){(null==t?void 0:t.message)&&LJ.Messages.error(t.message)};if((0,n.useEffect)((function(){return LJ.Event.on("relations.changed",C),function(){LJ.Event.off("relations.changed",C)}})),(0,c.Vw)({targetUserId:S,reducerState:v,dispatch:g}),!j)return console.warn("SubscribeBtn2022: not enough data for render"),null;var N=function(t){LJ.Track.YM.call({method:"reachGoal",argArr:t})},A={onDropdownShow:function(){g({type:"markDropdownAsShown"})}},I=(0,c.ql)({reducerState:v,dispatch:g,targetUserId:S,targetUsername:j}),F=s(s(s({},A),w),{},{miscData:E,requestRelationActionCb:function(t){if("subscribe"===t){var e={target:j,is_subscriber:1,show_recommendations:!0};_&&delete e.is_subscriber,LJ.Api.callP("relations.addfriend",e).then((function(e){LJ.Event.trigger("relations.changed",{username:j,id:S,data:e,source:"SubscribeBtn2022",sourceCompId:k,action:t}),h()})).catch(P)}if("unsubscribe"===t){var r={target:j,is_subscriber:1};_&&delete r.is_subscriber,LJ.Api.call("relations.removefriend",r).then((function(e){LJ.Event.trigger("relations.changed",{username:j,id:S,data:e,source:"SubscribeBtn2022",sourceCompId:k,action:t})})).fail(P)}if("addToFriends"===t){var n={target:j,show_recommendations:!0};LJ.Api.callP("relations.addfriend",n).then((function(e){LJ.Event.trigger("relations.changed",{username:j,id:S,data:e,source:"SubscribeBtn2022",action:t}),N(["COMPLEX_SUBSCRIBE"])})).catch(P)}"removeFromFriends"===t&&LJ.Api.call("relations.removefriend",{target:j}).then((function(e){LJ.Event.trigger("relations.changed",{username:j,id:S,data:e,source:"SubscribeBtn2022",action:t}),N(["COMPLEX_UNSUBSCRIBE"])})).fail(P),"leaveComm"===t&&LJ.Api.call("relations.leave",{target:j}).then((function(e){LJ.Event.trigger("relations.changed",{username:j,id:S,data:e,source:"SubscribeBtn2022",sourceCompId:k,action:t})})).fail(P),"joinComm"===t&&LJ.Api.callP("relations.join",{target:j}).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return O?t:LJ.Api.call("relations.join",{target:j}).then((function(e){return s(s({},t),e)}))})).then((function(e){e.is_invite_sent&&x(s(s({},w),{},{isJoinRequestSent:!0})),N(["COMMUNITY_JOIN"]),LJ.Event.trigger("relations.changed",{username:j,id:S,data:e,source:"SubscribeBtn2022",action:t})})).catch(P)},requestGroupsDataCb:function(){LJ.Api.call("groups.list",{target:j}).then((function(t){x(s(s({},w),{},{friendGroupsData:t.groups}))}))},toggleFriendInGroupCb:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.id,r=t.shouldBeInGroup,n=L.map((function(t){return t.id===e?s(s({},t),{},{selected:r}):t})),o=n.map((function(t){return t.selected?t.id:null})).filter((function(t){return t}));LJ.Api.call("groups.update_users",{users:[{username:j,groups:o}]},void 0,{silent:!1}).then((function(){x(s(s({},w),{},{friendGroupsData:n}))})).fail((function(t){P(t)}))},gluePopups:p,userNoteProps:I});return n.createElement(o.N,{value:u},n.createElement(i.m,F))}},62600:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o}),r(96540);var n=r(40961),o=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.children,r=t.mountRef,o=(void 0===r?{}:r).current||document.body;return(0,n.createPortal)(e,o)}},64054:(t,e,r)=>{"use strict";r.d(e,{D:()=>i});var n=r(96540),o=r(14554),i=function(){return(0,n.useContext)(o.D)}},69156:(t,e,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(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==l(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}LJ.define("LJ.UserRelations");var f=!1,p={},d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).silent,n=s(s({},p[t]||{}),e);p[t]=n,r||LJ.Event.trigger("UserRelations/".concat(t,"/changed"),n)},h=function(t){var e=p[t];return e&&s({},e)};LJ.UserRelations.init=function(){if(!f&&Site.remote){if(Site.journal&&Site.journal.username!==Site.remote.username){var t={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};t.isCommunity&&(t.isInSubscriptionList=Site.journal.is_friend),d(Site.journal.username,t,{silent:!0})}LJ.UserRelations.patch=d,LJ.UserRelations.getUserRelations=h,LJ.Event.on("relations.changed",(function(t){var e=t.data,r=t.username,n=e.is_subscriber,o=e.is_friend,i=e.is_member,a=e.is_invite_sent,c=h(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(74536);var m=r(96540),y=r(5338),v=r(92968),g=140;function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function w(){w=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new A(n||[]);return o(a,"_invoke",{value:k(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="completed",y={};function v(){}function g(){}function x(){}var E={};u(E,a,(function(){return this}));var S=Object.getPrototypeOf,j=S&&S(S(I([])));j&&j!==r&&n.call(j,a)&&(E=j);var O=x.prototype=v.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==b(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function k(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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===y)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,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")),y;var i=f(o,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(b(e)+" 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"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u(t,l,"GeneratorFunction")),t.prototype=Object.create(O),t},e.awrap=function(t){return{__await:t}},L(_.prototype),u(_.prototype,c,(function(){return this})),e.AsyncIterator=_,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new _(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},L(O),u(O,l,"Generator"),u(O,a,(function(){return this})),u(O,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.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)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){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),y}},e}function x(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function E(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){x(i,n,o,a,c,"next",t)}function c(t){x(i,n,o,a,c,"throw",t)}a(void 0)}))}}var S=function(){var t=E(w().mark((function t(e){var r,n,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.username,n={user:r},t.next=4,LJ.Api.callP("user.get_achievements",n);case 4:return o=t.sent,t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),j=function(){var t=E(w().mark((function t(e,r){var n,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n={journal:e,vgift_id:r},t.next=3,LJ.Api.callP("user.achievement_congratulate",n).catch((function(t){LJ.Messages.error(t.message)}));case 3:return o=t.sent,t.abrupt("return",o);case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}(),O=function(){var t=E(w().mark((function t(e){var r,n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={vgift_id:e},t.next=3,LJ.Api.callP("user.achievement_levels",r).catch((function(t){LJ.Messages.error(t.message)}));case 3:return n=t.sent,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),L=function(){var t=E(w().mark((function t(e){var r,n,o;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={targetid:e,fields:{display_username:!0,userhead_url:!0,profile_url:!0,journal_url:!0}},t.next=3,LJ.Api.callP("user.get",r);case 3:return n=t.sent,o=n.user,t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),_=r(28081),k=r(79056),C=(0,k.keyframes)(["0%{background-position:-468px 0;}100%{background-position:468px 0;}"]),P=(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;"],C),N=k.default.div.withConfig({displayName:"Card",componentId:"sc-ya621q-0"})(["display:flex;align-items:center;width:100%;& + &{margin-top:8px;}"]),A=k.default.div.withConfig({displayName:"Image",componentId:"sc-ya621q-1"})(["",";flex-shrink:0;width:100px;height:100px;margin-right:10px;border-radius:50%;"],P),I=k.default.div.withConfig({displayName:"Content",componentId:"sc-ya621q-2"})(["display:flex;flex-direction:column;justify-content:center;gap:4px;flex:1;"]),F=k.default.div.withConfig({displayName:"Name",componentId:"sc-ya621q-3"})(["",";height:20px;"],P),D=k.default.div.withConfig({displayName:"Text",componentId:"sc-ya621q-4"})(["",";height:40px;"],P),T=k.default.div.withConfig({displayName:"Date",componentId:"sc-ya621q-5"})(["",";height:16px;"],P),J=k.default.div.withConfig({displayName:"Button",componentId:"sc-ya621q-6"})(["",";width:70px;height:28px;margin-top:16px;"],P),M=function(){return m.createElement(N,null,m.createElement(A,null),m.createElement(I,null,m.createElement(F,null),m.createElement(D,null),m.createElement(T,null)))},G=function(){return m.createElement(J,null)},R=k.default.dl.withConfig({displayName:"Details",componentId:"sc-qq24zy-0"})(["margin:0;padding:0;text-align:left;"]),U=k.default.div.withConfig({displayName:"Item",componentId:"sc-qq24zy-1"})(["display:flex;align-items:center;& + &{marign-top:20px;}"]),B=k.default.div.withConfig({displayName:"ItemIllustration",componentId:"sc-qq24zy-2"})(["margin-right:10px;flex-shrink:0;color:#333;svg{width:100px;height:100px;color:#E6EFF2;}"]),q=k.default.div.withConfig({displayName:"ItemInfo",componentId:"sc-qq24zy-3"})([""]),z=k.default.dt.withConfig({displayName:"ItemName",componentId:"sc-qq24zy-4"})(["margin:0;padding:0;font-size:16px;line-height:1.2;font-weight:700;color:#333;"]),$=k.default.dd.withConfig({displayName:"ItemText",componentId:"sc-qq24zy-5"})(["margin:0;margin-top:4px;padding:0;font-size:14px;line-height:1.2;font-weight:400;color:#333;"]),H=k.default.time.withConfig({displayName:"ItemDate",componentId:"sc-qq24zy-6"})(["display:block;margin-top:4px;font-size:13px;line-height:1.2;font-weight:400;color:#7A9199;"]),Y=k.default.div.withConfig({displayName:"Buttons",componentId:"sc-qq24zy-7"})(["display:flex;align-items:center;justify-content:space-between;gap:8px 16px;&:not(:empty){margin-top:16px;}"]);function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}function V(){V=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==W(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(W(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function X(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function Z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||K(t,e)||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 K(t,e){if(t){if("string"==typeof t)return Q(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Q(t,e):void 0}}function Q(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var tt=Site.locale.includes("ru")?"ru":"en";const et=function(t){var e,r=t.achievementData,n=t.handleCloseDetails,o=r.vgift_id,i=r.max_level,a=Z((0,m.useState)([]),2),c=a[0],l=a[1],u=Z((0,m.useState)(!1),2),s=u[0],f=u[1];return(0,m.useEffect)((function(){var t=function(){var t,e=(t=V().mark((function t(){var e,r;return V().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,f(!0),t.next=4,O(o);case 4:e=t.sent,r=e.levels,l(r),f(!1),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),f(!1);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){X(i,n,o,a,c,"next",t)}function c(t){X(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();t()}),[o]),s?m.createElement(m.Fragment,null,(e=Array(i),function(t){if(Array.isArray(t))return Q(t)}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||K(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.")}()).map((function(t,e){return m.createElement(M,{key:e})})),m.createElement(G,null)):m.createElement(m.Fragment,null,m.createElement(R,null,c.map((function(t){return m.createElement(U,{key:t.vgift_id},m.createElement(B,null,t.achieved?m.createElement("img",{src:t.image_small,width:"100",height:"100",alt:t.display}):m.createElement(v.A,{xlinkHref:"flaticons-v2--lock"})),m.createElement(q,null,m.createElement(z,null,t.display),m.createElement($,null,t.description),t.date?m.createElement(H,{datetime:t.date},LJ.ml("ljcom.userinfo.achievements.congratulate.progress.card.date",{date:moment(t.date).locale(tt).format("MMM DD, YYYY")})):null))}))),m.createElement(Y,null,m.createElement(_.A,{primary:!0,onClick:n},LJ.ml("ljcom.userinfo.achievements.congratulate.button.close"))))};var rt,nt,ot=r(62600),it=r(18092),at=k.default.div.withConfig({displayName:"ImageWrapper",componentId:"sc-169qxhl-0"})([".svgicon{width:auto;height:120px;fill:#E6EFF2;}"]),ct=k.default.img.withConfig({displayName:"Image",componentId:"sc-169qxhl-1"})(["width:140px;height:140px;object-fit:cover;object-position:center;"]),lt=k.default.p.withConfig({displayName:"Description",componentId:"sc-169qxhl-2"})(["margin:10px 0;font-size:14px;line-height:17px;color:",";"],(function(t){return t.$isLock?"#7A9199":"#333333"})),ut=k.default.div.withConfig({displayName:"ProgressIndicator",componentId:"sc-169qxhl-3"})(["margin:10px 0;"]),st=k.default.div.withConfig({displayName:"ProgressIndicatorText",componentId:"sc-169qxhl-4"})(["margin-bottom:4px;font-size:14px;font-weight:400;text-align:center;color:#333333;"]),ft=k.default.div.withConfig({displayName:"ProgressIndicatorRange",componentId:"sc-169qxhl-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%);}"]),pt=k.default.p.withConfig({displayName:"Date",componentId:"sc-169qxhl-6"})(["margin:0 0 16px;text-transform:capitalize;font-size:13px;line-height:16px;color:#7A9199;"]),dt=(0,k.default)(_.A).withConfig({displayName:"CongratulateButton",componentId:"sc-169qxhl-7"})(["display:flex;align-items:center;padding:4px 16px;font-size:13px;line-height:1;font-weight:600;cursor:pointer;svg{width:24px;height:24px;margin-left:4px;}"]),ht=k.default.p.withConfig({displayName:"CongratulateInfo",componentId:"sc-169qxhl-8"})(["position:relative;display:flex;align-items:baseline;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(5px);}"]),mt=k.default.button.withConfig({displayName:"CongratulateInfoCount",componentId:"sc-169qxhl-9"})(["margin:0 4px;padding:0;border:0;font-size:13px;line-height:1;font-weight:600;color:#333333;background-color:transparent;"]),yt=k.default.div.withConfig({displayName:"Buttons",componentId:"sc-169qxhl-10"})(["display:flex;align-items:center;justify-content:space-between;gap:8px 16px;&:not(:empty){margin-top:16px;}"]),vt=k.default.div.withConfig({displayName:"Popup",componentId:"sc-169qxhl-11"})(["position:absolute;display:flex;flex-direction:column;padding:5px 0 8px;border-radius:4px;text-align:left;background-color:#00303F;z-index:10000;",' 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(t){var e=t.$position;return e&&(0,k.css)(["top:","px;left:","px;"],e.y,e.x)}),(function(t){return"top"===t.$arrowPosition&&(0,k.css)(["top:-4px;border-top:0;border-bottom-color:#00303F;"])}),(function(t){return"bottom"===t.$arrowPosition&&(0,k.css)(["bottom:-4px;border-bottom:0;border-top-color:#00303F;"])}));function gt(t){return gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gt(t)}function bt(){bt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==gt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(gt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function wt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function xt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?wt(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==gt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==gt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===gt(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Et(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function St(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return jt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jt(t,e):void 0}}(t,e)||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 jt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ot=Site.locale.includes("ru")?"ru":"en",Lt=encodeURIComponent,_t=Site.journal.username===(null===(rt=Site.remote)||void 0===rt?void 0:rt.username),kt=!LJ.get("page.ljold"),Ct=LJ.Support.isMobile(),Pt=Site.remote;null===(nt=Site.remote)||void 0===nt||nt.id;const Nt=function(t){var e=t.achievementData,r=void 0===e?{}:e,n=t.setAchievementData,o=void 0===n?function(){}:n,i=t.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,h=r.congratulation,y=h.congratulated,g=h.users,b=St((0,m.useState)(!1),2),w=b[0],x=b[1],E=St((0,m.useState)([]),2),S=E[0],O=E[1],k=(0,m.useRef)(null),C=(0,m.useRef)(null),P=St((0,it.A)({placement:{x:it.y.x.ALIGN_CENTERS,y:it.y.y.BELOW},margins:{y:4}}),2),N=P[0],A=P[1],I={title:Lt(LJ.ml("ljcom.userinfo.achievements.post.title",{name:a})),body:Lt("\n      <img src=".concat(c," />\n      <blockquote>").concat(l,"</blockquote>\n    "))},F=kt&&!Ct?"".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 t,e=(t=bt().mark((function t(e,r){return bt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,j(e,r);case 3:o((function(t){return t.map((function(t){return t.isActive?xt(xt({},t),{},{congratulation:xt(xt({},t.congratulation),{},{congratulated:1})}):xt({},t)}))})),t.next=9;break;case 6:t.prev=6,t.t0=t.catch(0),LJ.Messages.add({type:"error",body:t.t0.message});case 9:case"end":return t.stop()}}),t,null,[[0,6]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Et(i,n,o,a,c,"next",t)}function c(t){Et(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}();return(0,m.useEffect)((function(){var t=g.map((function(t){return L(t)}));Promise.all(t).then((function(t){O(t)}))}),[g]),(0,m.useEffect)((function(){w&&A({anchorRect:C.current.getBoundingClientRect(),objectRect:k.current.getBoundingClientRect()})}),[w]),m.createElement(m.Fragment,null,m.createElement(at,null,u?m.createElement(ct,{src:c,width:"140",height:"140",alt:a}):m.createElement(v.A,{xlinkHref:"flaticon--lock"})),m.createElement(lt,{dangerouslySetInnerHTML:{__html:l},$isLock:!u}),_t&&f?m.createElement(ut,null,m.createElement(st,null,LJ.ml("ljcom.userinfo.achievements.congratulate.progress.from",{currentLevel:s,maxLevel:f})),m.createElement(ft,{style:{"--progress":"".concat(100*s/f,"%")}})):null,_t&&u?m.createElement(pt,null,LJ.ml("ljcom.userinfo.achievements.received_date",{date:moment(p).locale(Ot).format("MMM DD, YYYY")})):null,!Pt||_t||y?null:m.createElement(dt,{type:"button",linkType:!0,"aria-label":LJ.ml("ljcom.userinfo.achievements.congratulate.button.aria_label",{user:Site.journal.username}),onClick:function(){return T(Site.journal.username,d)}},LJ.ml("ljcom.userinfo.achievements.congratulate.button.text"),m.createElement(v.A,{width:"22",height:"17",xlinkHref:"flaticons-v2--spec-boom"})),y||_t&&g.length&&!y?m.createElement(ht,null,_t?LJ.ml("ljcom.userinfo.achievements.congratulate.info.text"):D?LJ.ml("ljcom.userinfo.achievements.congratulate.info.text.congratilated.you",{username:Site.journal.username}):LJ.ml("ljcom.userinfo.achievements.congratulate.info.text.congratilated"),!D&&m.createElement(mt,{ref:C,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)}},g.length),m.createElement(v.A,{width:"22",height:"17",xlinkHref:"flaticons-v2--spec-boom"})):null,w&&m.createElement(ot.Z,null,m.createElement(vt,{$position:N,ref:k,onMouseEnter:function(){return x(!0)},onMouseLeave:function(){return x(!1)}},S.map((function(t){return m.createElement("a",{href:t.profile_url,key:t.id},t.username)})))),_t&&m.createElement(yt,null,f?m.createElement(_.A,{noBorder:!0,onClick:i},LJ.ml("ljcom.userinfo.achievements.congratulate.button.more")):null,u?m.createElement(_.A,{as:"a",href:F,primary:!0},LJ.ml("ljcom.userinfo.achievements.congratulate.button.share")):null))};var At=r(81834),It=(0,k.default)(At.Ay).withConfig({displayName:"Wrapper",componentId:"sc-1l6wbxb-0"})(["max-width:",";text-align:center;"],(function(t){return t.$isShowDetails?"540px":"380px"})),Ft=k.default.div.withConfig({displayName:"Body",componentId:"sc-1l6wbxb-1"})(["display:flex;flex-direction:column;align-items:center;"]);function Dt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const Tt=function(t){var e,r,n=t.onClose,o=t.data,i=void 0===o?{}:o,a=t.setData,c=void 0===a?function(){}:a,l=(e=(0,m.useState)(!1),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return Dt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Dt(t,e):void 0}}(e,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 m.createElement(It,{title:u?LJ.ml("ljcom.userinfo.achievements.congratulate.levels.title"):i.display,onClose:n,$isShowDetails:u},m.createElement(Ft,null,u?m.createElement(et,{achievementData:i,setDataAchievement:c,handleCloseDetails:function(){return s(!1)}}):m.createElement(Nt,{achievementData:i,setAchievementData:c,handleShowDetails:function(){return s(!0)}})))};var Jt=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(t){var e=t.$size;return"".concat(e,"px")}),(function(t){var e=t.$size;return"".concat(e,"px")}));var Mt,Gt=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;"]),Rt=(0,k.default)((function(t){var e=t.className,r=t.size,n=void 0===r?16:r;return m.createElement(Jt,{className:e,$size:n},m.createElement("svg",{viewBox:"0 0 31 31",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m.createElement("g",{fillRule:"evenodd"},m.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"}),m.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;}"]),Ut=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;}"]),Bt=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;"]),qt=k.default.li.withConfig({displayName:"ListItem",componentId:"sc-16m5tup-4"})([""]),zt=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;}"]),$t=k.default.img.withConfig({displayName:"AchievementImage",componentId:"sc-16m5tup-6"})(["width:100px;height:100px;"]),Ht=(0,k.default)(v.A).withConfig({displayName:"AchievementPlaceholderImage",componentId:"sc-16m5tup-7"})(["width:100px;height:100px;fill:#E6EFF2;"]),Yt=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;"]),Wt=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 Vt(t){return Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vt(t)}function Xt(){Xt=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Vt(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Vt(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Zt(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function Kt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Qt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Kt(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==Vt(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Vt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Vt(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Kt(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function te(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ee(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ee(t,e):void 0}}(t,e)||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 ee(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var re=Site.journal.username===(null===(Mt=Site.remote)||void 0===Mt?void 0:Mt.username);const ne=function(){var t=te((0,m.useState)([]),2),e=t[0],r=t[1],n=te((0,m.useState)(!1),2),o=n[0],i=n[1],a=te((0,m.useState)(!1),2),c=a[0],l=a[1],u=te((0,m.useState)(!1),2),s=u[0],f=u[1],p=(0,m.useRef)(null),d=te((0,m.useState)({isShow:!1}),2),h=d[0],y=d[1],b=new URLSearchParams(window.location.search).get("vgift_id"),w=function(t){r((function(e){return e.map((function(e){return e.vgift_id===t?Qt(Qt({},e),{},{isActive:!0}):Qt({},e)}))})),y({isShow:!0})},x=(0,m.useMemo)((function(){return e.filter((function(t){return t.isActive}))[0]}),[e]);return(0,m.useEffect)((function(){var t=function(){var t,e=(t=Xt().mark((function t(){var e,n;return Xt().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,f(!0),t.next=4,S({username:Site.journal.username});case 4:e=t.sent,n=e.achievements,r(n),f(!1),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(0),f(!1);case 13:case"end":return t.stop()}}),t,null,[[0,10]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Zt(i,n,o,a,c,"next",t)}function c(t){Zt(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();t()}),[]),(0,m.useEffect)((function(){if(p.current&&e.length){var t=new ResizeObserver((function(){p.current.clientWidth<p.current.scrollWidth&&l(!0)}));return t.observe(p.current),function(){t.disconnect()}}}),[e.length]),(0,m.useEffect)((function(){if(b&&e.length){var t=e.filter((function(t){return t.vgift_id===b}));if(!t.length)return;w(t[0].vgift_id),document.querySelector("#about").scrollIntoView(),window.history.replaceState({},document.title,window.location.pathname)}}),[b,e]),s?m.createElement(Gt,null,m.createElement(Rt,null)):m.createElement(Gt,null,m.createElement(Ut,{type:"button",onClick:function(){var t=p.current.scrollLeft;p.current.scroll({left:(Math.trunc(t/g)-1)*g,behavior:"smooth"})},"aria-label":LJ.ml("ljcom.userinfo.achievements.slider.button.left"),disabled:!o},m.createElement(v.A,{xlinkHref:"flaticon--arrow-left"})),m.createElement(Bt,{className:"m-scrollbar",ref:p,onScroll:function(){var t=p.current.lastChild.getBoundingClientRect(),e=t.left,r=t.width,n=p.current.firstChild.getBoundingClientRect().left,o=p.current.getBoundingClientRect(),a=o.left,c=o.width;a+c>=e+r-1?l(!1):a+c<e+r&&(l(!0),a>n?i(!0):n<=a&&i(!1))}},e.filter((function(t){return Boolean(t.achieved)||re})).map((function(t){return m.createElement(qt,{key:t.vgift_id},m.createElement(zt,{type:"button","aria-label":"".concat(LJ.ml("ljcom.userinfo.achievements.card")," ").concat(t.display),onClick:function(){return w(t.vgift_id)}},t.achieved?m.createElement(m.Fragment,null,m.createElement($t,{src:t.image_small}),m.createElement(Yt,null,t.display)):m.createElement(m.Fragment,null,m.createElement(Ht,{xlinkHref:"flaticon--lock"}),m.createElement(Wt,null,t.display))))}))),m.createElement(Ut,{type:"button",onClick:function(){var t=p.current.scrollLeft;p.current.scroll({left:(Math.trunc(t/g)+1)*g,behavior:"smooth"})},"aria-label":LJ.ml("ljcom.userinfo.achievements.slider.button.right"),disabled:!c},m.createElement(v.A,{xlinkHref:"flaticon--arrow-right"})),h.isShow&&m.createElement(Tt,{data:x,setData:r,onClose:function(){y({isShow:!1}),r((function(t){return t.map((function(t){return t.isActive?Qt(Qt({},t),{},{isActive:!1}):Qt({},t)}))}))}}))};LJ.define("LJ.Profile.Achievements"),LJ.Profile.Achievements.init=function(){LJ.Util.DOM.initPromise.then((function(){var t=document.querySelector("[data-achievements-mount]");t&&(0,y.H)(t).render(m.createElement(ne,null))}))};var oe=r(87202),ie=r(20339),ae=r(80074),ce=r(14554),le=r(69710),ue=k.default.div.withConfig({displayName:"Wrapper",componentId:"sc-3oa966-0"})(["position:relative;display:flex;align-items:center;justify-content:flex-start;"]),se=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;}']),fe=k.default.label.withConfig({displayName:"Label",componentId:"sc-3oa966-2"})(["word-break:break-word;font-size:14px;line-height:16px;color:#000000;"," ",""],(function(t){return"left"===t.labelPosition&&(0,k.css)(["order:0;margin-right:12px;"])}),(function(t){return"right"===t.labelPosition&&(0,k.css)(["order:1;margin-left:12px;"])})),pe=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;}}"],se,se,se,se,se,se,fe,se,se),de=["onChange","className","label","checked","id","labelPosition","disabled","autoFocus"];function he(){return he=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},he.apply(this,arguments)}const me=function(t){var e=t.onChange,r=t.className,n=t.label,o=t.checked,i=t.id,a=t.labelPosition,c=void 0===a?"left":a,l=t.disabled,u=t.autoFocus,s=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,de);return m.createElement(ue,he({className:r},s),m.createElement(pe,{onChange:e,type:"checkbox",id:i,checked:o,disabled:l,autoFocus:u}),n&&m.createElement(fe,{htmlFor:i,labelPosition:c},n),m.createElement(se,{htmlFor:i,$disabled:l}))};var ye=function(t){var e=t.onChange,r=t.event,n=t.description,o=t.method,i=t.id,a=t.isActive,c=t.isMobile,l=function(t){var n=t.target;e({event:r,method:o,isActive:n.checked})};return m.createElement(m.Fragment,null,!c&&m.createElement("label",{className:"lightcheckbox"},m.createElement("input",{className:"lightcheckbox__input",type:"checkbox",id:i,checked:a,onChange:l}),m.createElement("span",{className:"lightcheckbox__text"},n)),!!c&&m.createElement(me,{checked:a,onChange:l,label:n,id:i}))},ve=k.default.ul.withConfig({displayName:"List",componentId:"sc-10wr8u4-0"})(["list-style:none;margin:0;padding:0;",""],(function(t){return t.isMobile&&(0,k.css)(["& li:not(:last-of-type){margin-bottom:15px;}"])})),ge=k.default.li.withConfig({displayName:"ListItem",componentId:"sc-10wr8u4-1"})(["display:flex;align-items:center;flex-wrap:wrap;"]),be=(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;"])),we=(k.default.button.withConfig({displayName:"Button",componentId:"sc-10wr8u4-5"})(["cursor:pointer;"]),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.onClose,r=t.onSubscriptionChange,n=t.subscriptions,o=t.targetNode,i=t.isGlued,a=LJ.Support.isMobile(),c=n.filter((function(t){return"newEntry"===t.event})).map((function(t){var e=t.event,n=t.method,o=t.description,i=t.isActive,c="".concat(e,"-").concat(n);return m.createElement(ge,{className:"basepopup__item",key:c},m.createElement(ye,{event:e,method:n,description:o,isMobile:a,onChange:r,isActive:i,id:c}))})),l=m.createElement(be,null,m.createElement(_.A,{onClick:e,type:"button",primary:!0,sizeL:!0},LJ.ml("notif_dropdown_2022.button")));return m.createElement(m.Fragment,null,!a&&m.createElement(le.A,{onClose:e,anchorEl:o,placement:{x:"alignLeftEdges",y:"below"},margins:{y:i?0:5},withAutoClosing:!0,className:(0,ae._)([i&&"basepopup--glued"])},m.createElement("div",{className:"basepopup__title"},LJ.ml("notif_dropdown_2022.title")),m.createElement(ve,null,c)),!!a&&m.createElement(At.Ay,{title:LJ.ml("notif_dropdown_2022.title"),onClose:e,footer:l,withCloseBtn:!1},m.createElement("div",{className:"basepopup__group"},m.createElement(ve,{isMobile:a},c))))}),xe=(0,k.keyframes)(["from{transform:translateY(0);opacity:1;}to{transform:translateY(10px);opacity:0;}"]),Ee=(0,k.default)(le.A).withConfig({displayName:"Popover",componentId:"sc-128wtuh-0"})(["",""],(function(t){var e=t.$animationDuration,r=t.$animationDelay;return(0,k.css)(["animation:"," ","ms linear ","ms forwards;"],xe,e,r)})),Se=k.default.button.withConfig({displayName:"CloseButton",componentId:"sc-128wtuh-1"})(["display:inline-flex;.svgicon{width:12px;height:12px;}"]),je=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.onClose,r=t.targetNode,n=t.isGlued;return(0,m.useEffect)((function(){var t=setTimeout((function(){e()}),3500);return function(){clearTimeout(t)}}),[e]),m.createElement(Ee,{onClose:e,anchorEl:r,placement:{x:"alignLeftEdges",y:"below"},margins:{y:n?0:5},className:(0,ae._)([n&&"basepopup--glued"]),$animationDuration:500,$animationDelay:3e3},m.createElement(Se,{onClick:e,className:"basepopup__close",type:"button"},m.createElement(v.A,{className:"basepopup__close-icon",xlinkHref:"flaticon--cross-2"})),m.createElement("p",null,LJ.ml("notif_dropdown_tip")))};function Oe(t){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oe(t)}function Le(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function _e(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Le(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==Oe(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Oe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Oe(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Le(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ke(){ke=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Oe(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Oe(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Ce(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function Pe(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Ce(i,n,o,a,c,"next",t)}function c(t){Ce(i,n,o,a,c,"throw",t)}a(void 0)}))}}function Ne(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Ae(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ae(t,e):void 0}}(t,e)||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 Ae(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var Ie={active:"flaticon--bell-active",inactive:"flaticon--bell"},Fe=function t(e){var r=e.targetUsername,n=e.className,o=e.isShown,i=e.text,a=e.theme,c=void 0===a?"light":a,l=e.gluePopups,u=e.id,s=Ne((0,m.useState)(o),2),f=s[0],p=s[1],d=(0,m.useState)((function(){return function(t){var e=LJ.Misc.NotifSubs.getUserSubs(t,"newEntry");return[{event:"newEntry",method:"notifCenter",description:LJ.ml("notif_dropdown_2022.notify.in.notif.center"),isActive:null==e?void 0:e.includes("notifCenter"),requestTimeout:null},{event:"newEntry",method:"email",description:LJ.ml("notif_dropdown_2022.notify.in.email"),isActive:null==e?void 0:e.includes("email"),requestTimeout:null}]}(r)})),h=Ne(d,2),y=h[0],v=h[1],g=Ne((0,m.useState)(null),2),b=g[0],w=g[1],x=Ne((0,m.useState)(!1),2),E=x[0],S=x[1],j=Ne((0,m.useState)(!1),2),O=j[0],L=j[1],_=(0,m.useRef)(u||"".concat(t.name,":").concat(+new Date)),k=function(){L(!1)},C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};S(!1);var e={type:"error",body:t.message||LJ.ml("common.something_went_wrong")};LJ.Messages.add(e)};if((0,m.useEffect)((function(){E&&k()}),[E]),(0,m.useEffect)((function(){var t=function(t){var e=t.value;if(t.source!==_.current){var r=y.map((function(t){return"newEntry"!==t.event?t:_e(_e({},t),{},{isActive:e.includes(t.method)})}));v(r)}};return LJ.Event.on("NotifSubs/".concat(r,"/newEntry/changed"),t),function(){LJ.Event.off("NotifSubs/".concat(r,"/newEntry/changed"),t)}}),[y,r]),(0,m.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,m.useEffect)((function(){var t=function(){S(!1)};return LJ.Event.on("controlstrip::dropdownHideRequest",t),LJ.Event.on("notificationCenter::dropdownHideRequest",t),function(){LJ.Event.off("controlstrip::dropdownHideRequest",t),LJ.Event.off("notificationCenter::dropdownHideRequest",t)}}),[]),(0,m.useEffect)((function(){var t=function(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).compId===_.current&&L(!0)};return LJ.Event.on("NotifSubBtn2022.notifTip.requestShow",t),function(){LJ.Event.off("NotifSubBtn2022.notifTip.requestShow",t)}}),[]),!f)return null;var P=y.some((function(t){return t.isActive})),N=Ie[P?"active":"inactive"];return m.createElement(ce.N,{value:c},m.createElement("button",{type:"button",ref:function(t){w(t)},onClick:function(){S((function(t){return!t}))},className:(0,ae._)(["notification-button",n])},m.createElement("svg",{className:(0,ae._)(["svgicon","flaticon",N])},m.createElement("use",{xlinkHref:"#".concat(N)})),i&&m.createElement("span",null,i)),b&&E&&m.createElement(we,{subscriptions:y,onSubscriptionChange:function(t){var e=t.event,n=t.method,o=t.isActive,i=y.find((function(t){return t.event===e&&t.method===n})),a=i.requestTimeout;a&&clearTimeout(a);var c=setTimeout(Pe(ke().mark((function t(){var i;return ke().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=o?LJ.Misc.NotifSubs.requestSubNotifAdd:LJ.Misc.NotifSubs.requestSubNotifDelete,t.prev=1,t.next=4,i(e,n,r,{source:_.current});case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),C();case 9:case"end":return t.stop()}}),t,null,[[1,6]])}))),500),l=y.map((function(t){return t===i?_e(_e({},i),{},{isActive:o,requestTimeout:c}):t}));v(l)},onClose:function(){S(!1)},isGlued:l,targetNode:b,targetUsername:r}),b&&O&&m.createElement(je,{onClose:k,isGlued:l,targetNode:b}))};function De(t){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(t)}function Te(){Te=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==De(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(De(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function Je(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Je(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==De(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==De(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===De(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Je(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function Ge(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function Re(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}var Ue=!1,Be=null,qe=function(t){var e=LJ.Misc.NotifSubs.getUserSubs(t),r=[];return null!=e&&e.newEntry||r.push(LJ.Misc.NotifSubs.fetchUserSubs({event:"newEntry",username:t})),Promise.all(r)},ze=function(t){LJ.Event.on("UserRelations/".concat(t,"/changed"),(function(t){var e=t.isInSubscriptionList,r=t.isInFriendList;e||r?LJ.Event.trigger("NotifSubBtn2022.requestShow"):LJ.Event.trigger("NotifSubBtn2022.requestHide")})),Ue=!0},$e=function(){var t,e=(t=Te().mark((function t(e,r){var n,o,i,a,c,l,u,s,f;return Te().wrap((function(t){for(;;)switch(t.prev=t.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),e&&a&&c){t.next=4;break}return t.abrupt("return");case 4:return Be||(Be=qe(a)),t.next=7,Be;case 7:l=c.isInSubscriptionList,u=c.isInFriendList,s=document.createElement("div"),(i=s.classList).add.apply(i,function(t){if(Array.isArray(t))return Ge(t)}(p=e.classList)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(p)||function(t,e){if(t){if("string"==typeof t)return Ge(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ge(t,e):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=Me({targetUsername:a,isShown:!(!l&&!u),text:e.dataset.text,theme:e.dataset.theme,gluePopups:e.dataset.hasOwnProperty("gluePopups"),className:e.dataset.className||"",id:e.getAttribute("id")},r),e.replaceWith(s),(0,y.H)(s).render(m.createElement(Fe,f)),Ue||ze(a);case 15:case"end":return t.stop()}var p}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){Re(i,n,o,a,c,"next",t)}function c(t){Re(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(t,r){return e.apply(this,arguments)}}(),He=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Site.journal){var e=t.targetNode,r=t.initialUserData,n=t.initProps,o=void 0===n?{}:n;if(!e)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:e.getAttribute("id")};e.closest(".js--controlstrip")&&(u.theme="dark",u.gluePopups=!0),e.removeAttribute("id"),e.classList.remove("lightbutton","lightbutton--blue"),ie.Y({targetNode:e,initProps:{targetUserData:l,customProps:u}})}},Ye=r(52464),We=(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)(Ye.c).withConfig({displayName:"LjUser",componentId:"sc-152dpkr-2"})(["font-weight:inherit !important;text-transform:inherit !important;"])),Ve=k.default.p.withConfig({displayName:"AboveInputHint",componentId:"sc-152dpkr-3"})(["margin:0px 4px 16px 0px;","{margin-left:4px !important;}"],We),Xe=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;']),Ze=k.default.div.withConfig({displayName:"BtnWrap",componentId:"sc-152dpkr-5"})(["display:flex;justify-content:right;align-items:center;"]),Ke=(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 Qe(t){return Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qe(t)}function tr(){tr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Qe(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(Qe(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function er(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function rr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function nr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?rr(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==Qe(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==Qe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Qe(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):rr(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function or(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var ir={error:null,message:"",isFetchMessage:!1};function ar(t){var e,r,n=t.isShown,o=t.afterSubmitCb,i=void 0===o?function(){}:o,a=t.handleCloseModal,c=void 0===a?function(){}:a,l=(e=(0,m.useState)(ir),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return or(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?or(t,e):void 0}}(e,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,m.useRef)(null),p=u.message,d=(0,m.useCallback)((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s((function(e){return nr(nr({},e),t)}))}),[]),h=(0,m.useCallback)((function(){d(ir)}),[d]);(0,m.useEffect)((function(){n||h(),n&&f.current&&f.current.focus()}),[n,h]);var y=function(){var t,e=(t=tr().mark((function t(){var e,r;return tr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(p){t.next=2;break}return t.abrupt("return");case 2:return d({isFetchMessage:!0,error:null}),t.prev=3,t.next=6,LJ.Api.callP("inbox.send_message",{recipients:Site.journal.username,body:p});case 6:h(),d({isFetchMessage:!1}),i(),e={type:"success",body:LJ.ml("send_message_form.successfully_sent")},LJ.Messages.add(e),setTimeout((function(){LJ.Messages.fadeOut(e)}),3e3),t.next=17;break;case 14:t.prev=14,t.t0=t.catch(3),d({isFetchMessage:!1,error:Array.isArray(t.t0.data)&&null!==(r=t.t0.data[0])&&void 0!==r&&r.error?t.t0.data[0].error:t.t0.message});case 17:case"end":return t.stop()}}),t,null,[[3,14]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){er(i,n,o,a,c,"next",t)}function c(t){er(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();if(!n)return null;var v=m.createElement(m.Fragment,null,m.createElement(Ve,null,LJ.ml("send_message_form.send_to_user"),m.createElement(We,{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}})),m.createElement(Xe,{value:p,className:"lightinput",placeholder:LJ.ml("send_message_form.placeholder"),onChange:function(t){d({message:t.target.value})},onKeyDown:function(t){"Enter"===t.key&&t.ctrlKey&&y()},ref:f}),u.error&&m.createElement(Ke,{dangerouslySetInnerHTML:{__html:u.error}})),g=m.createElement(Ze,null,m.createElement(_.A,{sizeL:!0,primary:!0,type:"button",onClick:y,disabled:!u.message.length,isLoading:u.isFetchMessage},LJ.ml("send_message_form.submit")));return m.createElement(At.Ay,{title:LJ.ml("send_message_form.title"),onClose:c,footer:g},v)}function cr(t){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cr(t)}function lr(){lr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==cr(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(cr(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function ur(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}var sr=function(){var t,e=(t=lr().mark((function t(){var e,r,n,o,i;return lr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,LJ.Util.DOM.initPromise;case 2:e=document.querySelector(".js--send-message-btn"),r=document.createElement("div"),document.body.appendChild(r),n={},o=(0,y.H)(r),i=function(){o.render(m.createElement(ar,n))},n={isShown:!1,afterSubmitCb:function(){n.isShown=!1,i()},handleCloseModal:function(){n.isShown=!1,i()}},e&&e.addEventListener("click",(function(t){t.preventDefault(),n.isShown=!0,i()}));case 10:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){ur(i,n,o,a,c,"next",t)}function c(t){ur(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();function fr(t){return fr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fr(t)}function pr(){pr=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var i=e&&e.prototype instanceof v?e:v,a=Object.create(i.prototype),c=new P(n||[]);return o(a,"_invoke",{value:L(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var p="suspendedStart",d="suspendedYield",h="executing",m="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 S=b.prototype=v.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,c){var l=f(t[o],t,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==fr(s)&&n.call(s,"__await")?e.resolve(s.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(s).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function L(e,r,n){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){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,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=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?m:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function _(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,_(e,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,e.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[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(fr(e)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,u(t,l,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},j(O.prototype),u(O.prototype,c,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},j(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,P.prototype={constructor:P,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(C),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!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(t,e){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"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),C(r),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y}},e}function dr(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}var hr,mr=function(){var t,e=(t=pr().mark((function t(){return pr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,LJ.Util.DOM.initPromise;case 2:(document.querySelectorAll(".j-user-subscribe-btn")||[]).forEach((function(t){He({targetNode:t})}));case 4:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){dr(i,n,o,a,c,"next",t)}function c(t){dr(i,n,o,a,c,"throw",t)}a(void 0)}))});return function(){return e.apply(this,arguments)}}();LJ.UserRelations.init(),LJ.Misc.NotifSubs.init(),LJ.Profile.Achievements.init(),mr(),(0,oe._)(),(hr=document.querySelectorAll("[data-notif-sub-btn-mount-point]")).length&&hr.forEach($e),sr(),LJ.Event.on("relations.changed",(function(t){var e=t.action,r=t.username,n=t.source,o=t.data;if("SubscribeBtn2022"===n)if(Site.journal.is_community&&Site.journal.username===r&&["subscribe","unsubscribe","leaveComm"].includes(e))window.location.reload();else if(["subscribe","addToFriends"].includes(e)){var i=o.recommendations;setTimeout((function(){LJ.Event.trigger("SubRecommendModal.requestShow",{recommendations:i})}),700)}}))},69710:(t,e,r)=>{"use strict";r.d(e,{A:()=>h});var n=r(96540),o=r(62600),i=r(8680),a=r(74044),c=r(80074),l=r(95618),u=["onClose","getPosition","anchorEl","anchorRect","className","placement","margins","withScrollLock","withAutoClosing"];function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function p(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function d(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?p(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==s(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===s(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var h=function(t){var e,r,s=t.onClose,p=void 0===s?function(){}:s,h=t.getPosition,m=t.anchorEl,y=t.anchorRect,v=t.className,g=t.placement,b=t.margins,w=t.withScrollLock,x=t.withAutoClosing,E=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,u),S=(e=(0,n.useState)({x:0,y:0}),r=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):void 0}}(e,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.")}()),j=S[0],O=S[1],L=(0,n.useRef)(),_=(0,a.DP)();(0,a.lW)(),(0,a.Wr)(L,p),(0,n.useLayoutEffect)((function(){var t,e,r=null===(t=L.current)||void 0===t?void 0:t.getBoundingClientRect(),n=m?m.getBoundingClientRect():y;e=h?h({popoverRect:r,targetRect:n}):function(t){var e=t.targetRect,r=t.popoverRect,n={anchorRect:e,objectRect:r,placement:t.placement,margins:t.margins},o=LJ.Util.Positioning.RectNearRect.calculateCoords(n),i=window.innerHeight>e.top+e.height+r.height+25,a=e.top-r.height-25>0,c=window.innerWidth>e.left+r.width;return{x:(o=LJ.Util.Positioning.RectNearRect.calculateCoords(d(d({},n),{},{placement:{x:c?"alignLeftEdges":"alignRightEdges",y:!i&&a?"above":"below"}}))).x+window.scrollX,y:o.y+window.scrollY}}({targetRect:n,popoverRect:r,placement:g,margins:b}),JSON.stringify(j)!==JSON.stringify(e)&&O(e)}),[]),(0,n.useEffect)((function(){var t=function(t){L.current&&!L.current.contains(t.target)&&p()};return x&&window.addEventListener("scroll",t,!0),function(){x&&window.removeEventListener("scroll",t,!0)}}),[p,x,L]),(0,n.useEffect)((function(){return LJ.Event.on("react::CommonPopover::closeAll",p),function(){LJ.Event.off("react::CommonPopover::closeAll",p)}}),[p]);var k=d({$position:j,className:(0,c._)(["basepopup","basepopup--fix-bug","dark"===_&&"basepopup--dark",v]),ref:L},E);return n.createElement(n.Fragment,null,w&&n.createElement(i.A,null),n.createElement(o.Z,null,n.createElement(l.u,k)))}},69982:(t,e,r)=>{"use strict";t.exports=r(7463)},70373:(t,e,r)=>{"use strict";r.d(e,{A:()=>i});var n=r(96540),o=r(32231);const i=function(t){var e=t.children,r=t.title,i=t.description,a=t.withCloseBtn;return n.createElement(o.Y9,null,r&&n.createElement(o.hE,{$withCloseBtn:a},r),i&&n.createElement(o.VY,null,i),e)}},72317:(t,e,r)=>{"use strict";r.d(e,{k:()=>l});var n=r(96540),o=r(62600),i=r(80074),a=r(25439),c=function(){};function l(t){var e=t.targetUsername,r=t.isInSubscriptionList,l=void 0!==r&&r,u=t.isInFriendList,s=void 0!==u&&u,f=t.remoteIsCommunityOwner,p=void 0!==f&&f,d=t.isCommunity,h=void 0!==d&&d,m=t.isSyndicated,y=void 0!==m&&m,v=t.friendGroupsData,g=t.requestRelationActionCb,b=t.requestPopupClose,w=void 0===b?c:b,x=t.toggleFriendInGroupCb,E=t.remoteIsCommunityMember,S=t.joinRequestPending,j=t.isBannedInCommunity,O=t.isClosedCommunity,L=t.targetNode,_=t.isGlued,k=t.savedUserNote,C=void 0===k?"":k,P=t.onUserNoteBtnClick,N=void 0===P?function(){}:P,A=LJ.Support.isMobile(),I=(0,n.useRef)(null);(0,n.useEffect)((function(){function t(t){null!=I&&I.current&&!I.current.contains(t.target)&&w()}return A&&(document.body.style.overflow="hidden",setTimeout((function(){document.addEventListener("click",t)}))),function(){A&&(document.removeEventListener("click",t),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"))),J=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"))),M=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"))),G=n.createElement(a.Cl,{key:"editFriend",className:"basepopup-selector__label"},n.createElement(a._3,{href:"".concat(Site.siteroot,"/friends/add.bml?user=").concat(e),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"))),U=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"))),q=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"))),z=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(t){H.push(n.createElement("li",{className:"basepopup__item",key:t.id},n.createElement("label",{className:"lightcheckbox"},n.createElement("input",{className:"lightcheckbox__input",type:"checkbox",value:t.id,checked:!!t.selected,onChange:function(){x({id:t.id,shouldBeInGroup:!t.selected})}}),n.createElement("span",{className:"lightcheckbox__text"},t.name))))})),!h&&!y&&(l&&!s?(D.push(T),D.push(M),D.push(G),D.push(U)):s&&(D.push(J),D.push(M),D.push(G))),y&&(s&&D.push(U),D.push(M),D.push(G)),h&&(!E&&S&&D.push($),l?(D.push(M),D.push(G),D.push(U)):D.push(R),E&&!p?D.push(q):S||j||O||p||D.push(B)),h&&!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)))),n.createElement(n.Fragment,null,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"}},z))))):n.createElement(a.AM,{onClose:w,anchorEl:L,placement:{x:"alignLeftEdges",y:"below"},margins:{y:_?0:5},withAutoClosing:!0,className:(0,i._)([_&&"basepopup--glued"])},n.createElement("div",{className:"basepopup__group"},n.createElement("div",{className:"basepopup__content"},n.createElement("div",{className:"basepopup-selector"},D))),F))}},74044:(t,e,r)=>{"use strict";r.d(e,{DP:()=>i.D,Wr:()=>n.W,lW:()=>o.l}),r(18092);var n=r(55153),o=(r(55998),r(27374)),i=r(64054);r(9472),r(20158)},74536:()=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||l(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.")}()}function r(){"use strict";r=function(){return n};var e,n={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},c="function"==typeof Symbol?Symbol:{},l=c.iterator||"@@iterator",u=c.asyncIterator||"@@asyncIterator",s=c.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(e){f=function(t,e,r){return t[e]=r}}function p(t,e,r,n){var o=e&&e.prototype instanceof b?e:b,i=Object.create(o.prototype),c=new A(n||[]);return a(i,"_invoke",{value:k(t,r,c)}),i}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var h="suspendedStart",m="suspendedYield",y="executing",v="completed",g={};function b(){}function w(){}function x(){}var E={};f(E,l,(function(){return this}));var S=Object.getPrototypeOf,j=S&&S(S(I([])));j&&j!==o&&i.call(j,l)&&(E=j);var O=x.prototype=b.prototype=Object.create(E);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function _(e,r){function n(o,a,c,l){var u=d(e[o],e,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==t(f)&&i.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,l)}),(function(t){n("throw",t,c,l)})):r.resolve(f).then((function(t){s.value=t,c(s)}),(function(t){return n("throw",t,c,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(t,e){function i(){return new r((function(r,o){n(t,e,r,o)}))}return o=o?o.then(i,i):i()}})}function k(t,r,n){var o=h;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===h)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:m,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(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function N(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.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 t(){for(;++o<r.length;)if(i.call(r,o))return t.value=r[o],t.done=!1,t;return t.value=e,t.done=!0,t};return a.next=a}}throw new TypeError(t(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(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,f(t,s,"GeneratorFunction")),t.prototype=Object.create(O),t},n.awrap=function(t){return{__await:t}},L(_.prototype),f(_.prototype,u,(function(){return this})),n.AsyncIterator=_,n.async=function(t,e,r,o,i){void 0===i&&(i=Promise);var a=new _(p(t,e,r,o),i);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.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(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},n.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)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!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(t,e){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"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){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}},n}function n(t,e,r,n,o,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(n,o)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function c(t){n(a,o,i,c,l,"next",t)}function l(t){n(a,o,i,c,l,"throw",t)}c(void 0)}))}}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(Object(r),!0).forEach((function(e){c(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function c(e,r,n){return(r=function(e){var r=function(e){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function l(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[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(t){var e,r,n=(r=2,function(t){if(Array.isArray(t))return t}(e=t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,r)||l(e,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]}))),h={},m=function(t,e,r){var n,o=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).source,i=null===(n=h[t])||void 0===n?void 0:n[e];JSON.stringify(i)===JSON.stringify(r)||(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=a(a({},h[t]),e);h[t]=r}(t,c({},e,r)),LJ.Event.trigger("NotifSubs/".concat(t,"/").concat(e,"/changed"),{value:r,source:o}))},y=function(t,e){var r=h[t]&&a({},h[t]);return e?(null==r?void 0:r[e])||[]:r},v=function(){var t=o(r().mark((function t(e){var n,o,i,a,c,l;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.event,o=e.eventType,i=e.method,a=e.username,c={event:f[n],target_journal:a,method:p[i]},t.next=4,LJ.Api.callP("subscriptions.".concat(o),c);case 4:return l=t.sent,t.abrupt("return",l);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();LJ.Misc.NotifSubs.init=function(){!s&&Site.remote&&(LJ.Misc.NotifSubs.getUserSubs=y,LJ.Misc.NotifSubs.fetchUserSubs=function(){var t=o(r().mark((function t(e){var n,o,i,a;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.event,o=e.username,i={event:f[n],target_journal:o},t.next=4,LJ.Api.callP("subscriptions.get",i);case 4:r=t.sent.subscriptions,a=r.map((function(t){return d[t.method]})),m(o,n,a);case 7:case"end":return t.stop()}var r}),t)})));return function(e){return t.apply(this,arguments)}}(),LJ.Misc.NotifSubs.requestSubNotifAdd=function(){var t=o(r().mark((function t(n,o,i){var a,c,l=arguments;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=(l.length>3&&void 0!==l[3]?l[3]:{}).source,(c=e(y(i,n))).push(o),m(i,n,c,{source:a}),t.next=7,v({event:n,eventType:"create",method:o,username:i});case 7:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),LJ.Misc.NotifSubs.requestSubNotifDelete=function(){var t=o(r().mark((function t(n,o,i){var a,c,l=arguments;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=(l.length>3&&void 0!==l[3]?l[3]:{}).source,c=(c=e(y(i,n))).filter((function(t){return t!==o})),m(i,n,c,{source:a}),t.next=7,v({event:n,eventType:"delete",method:o,username:i});case 7:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}(),LJ.Event.on("relations.changed",(function(t){var e=t.action,r=t.username;["unsubscribe","removeFromFriends","removeFriend"].includes(e)&&m(r,"newEntry",[])})),s=!0)}},80074:(t,e,r)=>{"use strict";r.d(e,{_:()=>n});var n=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(Boolean).join(" ")}},81834:(t,e,r)=>{"use strict";r.d(e,{Ay:()=>s});var n=r(96540),o=r(62600),i=r(8680),a=r(7723),c=r(24582);function l(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(t,e):void 0}}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const s=n.forwardRef((function(t,e){var r=t.className,u=t.children,s=t.title,f=t.description,p=t.extraHeaderContent,d=t.footer,h=t.withCloseBtn,m=void 0===h||h,y=t.withOverlay,v=void 0===y||y,g=t.onClose,b=void 0===g?function(){}:g,w=l((0,n.useState)(!1),2),x=w[0],E=w[1],S=l((0,n.useState)(null),2),j=S[0],O=S[1],L=(0,n.useRef)(null),_=(0,n.useRef)(null);return(0,n.useImperativeHandle)(e,(function(){return{elements:{modal:L.current,body:_.current}}})),(0,n.useEffect)((function(){var t=function(t){"Escape"===t.key&&(t.preventDefault(),b({reason:"esc-keydown"}))};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[b]),(0,n.useLayoutEffect)((function(){var t=new ResizeObserver((function(){_.current&&d&&(_.current.clientHeight<_.current.scrollHeight?E(!0):E(!1))}));return t.observe(_.current),function(){t.unobserve(_.current)}}),[_,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,null,n.createElement(a.Y,{title:s,description:f,withCloseBtn:m},p,m&&n.createElement(a.J,{onClick:function(){b({reason:"close-btn-click"})}})),n.createElement(c.nB,{className:"m-scrollbar rfb-components-Modal-body",bodyScrollTop:j,isBodyScrollable:x,ref:_,onScroll:function(t){O(t.target.scrollTop)}},u),d&&n.createElement(c.wi,null,d))))))}))},82595:(t,e,r)=>{"use strict";function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(t)}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){var o,i,a;o=t,i=e,a=r[e],(i=function(t){var e=function(t){if("object"!==n(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==n(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===n(e)?e:String(e)}(i))in o?Object.defineProperty(o,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):o[i]=a})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}r.d(e,{F:()=>c,u:()=>a});var a={hasShownDropdown:!1,hasLoadedUserNote:!1,savedUserNote:null,isUserNoteModalShown:!1,userNameDisplayData:{}},c=function(t,e){switch(e.type){case"markDropdownAsShown":return i(i({},t),{},{hasShownDropdown:!0});case"markUserNoteAsLoaded":return i(i({},t),{},{hasLoadedUserNote:!0});case"showUserNoteModal":return i(i({},t),{},{isUserNoteModalShown:!0});case"closeUserNoteModal":return i(i({},t),{},{isUserNoteModalShown:!1});case"setSavedUserNote":return i(i({},t),{},{savedUserNote:e.value});case"setUserNameDisplayData":return i(i({},t),{},{userNameDisplayData:e.value});default:return console.warn('SubscribeBtn2022: Got unknown action type "'.concat(e.type,'"')),t}}},83581:(t,e,r)=>{"use strict";r.d(e,{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)")}},85194:(t,e,r)=>{"use strict";r.d(e,{m:()=>d});var n=r(96540),o=r(98476),i=r(72317),a=r(20230);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(){return l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},l.apply(this,arguments)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==c(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===c(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p=function(){};function d(t){var e,r,c,u,d=t.onDropdownShow,h=void 0===d?function(){}:d,m=t.isCommunity,y=void 0!==m&&m,v=t.isInSubscriptionList,g=void 0!==v&&v,b=t.isInFriendList,w=void 0!==b&&b,x=t.remoteIsCommunityMember,E=t.isFollowerOfRemote,S=void 0!==E&&E,j=t.remoteIsCommunityOwner,O=void 0!==j&&j,L=t.requestRelationActionCb,_=void 0===L?p:L,k=t.requestGroupsDataCb,C=t.joinRequestPending,P=t.isSyndicated,N=void 0!==P&&P,A=t.isNews,I=void 0!==A&&A,F=t.miscData,D=t.gluePopups,T=t.userNoteProps,J=void 0===T?{}:T,M=J.savedUserNote,G=J.onDropdownUserNoteBtnClick,R=J.modal,U=void 0===R?{}:R,B=(c=(0,n.useState)(!1),u=2,function(t){if(Array.isArray(t))return t}(c)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(c,u)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(t,e):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.")}()),q=B[0],z=B[1],$=function(t){z(t),!q&&t&&h()},H=(0,n.useRef)(null);(0,n.useEffect)((function(){LJ.Event.on("controlstrip::dropdownHideRequest",(function(){return $(!1)}))}),[]),(0,n.useEffect)((function(){var t,e=null==H||null===(t=H.current)||void 0===t?void 0:t.dataset;e&&(e.componentId=F.componentId)}),[F.componentId]);var Y=!1,W=[];y||(g||w||!N&&!I?g||w||!S?g||w?g&&!w||w&&(N||I)?(e=LJ.ml("subscribe_button_2022.you_are_subscribed"),r=function(){$(!q),q||k()},Y=!0):w&&(e=LJ.ml("subscribe_button_2022.is_in_friend_list"),r=function(){$(!q),q||k()},Y=!0):(e=LJ.ml("common.subscribe"),r=function(){_("subscribe")},W.push("lightbutton--blue")):(e=LJ.ml("subscribe_button_2022.mutual_subscribe"),r=function(){_("subscribe")},W.push("lightbutton--blue")):(e=LJ.ml("common.subscribe"),r=function(){_("addToFriends")},W.push("lightbutton--blue"))),y&&(O?(e=LJ.ml("subscribe_button_2022.you_are_owner"),r=function(){$(!q),q||k()},Y=!0):!x&&C&&w?(e=LJ.ml("subscribe_button_2022.join_request_is_pending"),r=function(){$(!q),q||k()},Y=!0):g||x?g&&!x?(e=LJ.ml("subscribe_button_2022.you_are_subscribed"),r=function(){$(!q),q||k()},Y=!0):x&&(e=LJ.ml("subscribe_button_2022.you_are_member"),r=function(){$(!q),q||k()},Y=!0):(e=LJ.ml("common.subscribe"),r=function(){_("subscribe")},W.push("lightbutton--blue")));var V=["lightbutton"].concat(W).join(" ");Site.remote||(r=function(){window.setTimeout(LJ.Util.Action.login,0)});var X=s(s({},t),{},{isGlued:D,savedUserNote:M,onUserNoteBtnClick:G});return n.createElement(n.Fragment,null,n.createElement(a.d,{className:V+(q?" lightbutton--toggle-open":"")+(Y?" lightbutton--toggle":""),href:"#",target:"_self",onClick:function(t){t.preventDefault(),r()},ref:H},e,Y&&n.createElement("svg",{className:"lightbutton__dropdown-icon",width:"16",height:"16"},n.createElement("use",{xlinkHref:"#flaticon--arrow-dropdown"}))),q?n.createElement(i.k,l({},X,{requestPopupClose:function(){$(!1)},targetNode:null==H?void 0:H.current})):null,U.isShown?n.createElement(o.A,{onClose:U.onClose,inputValue:J.savedUserNote||"",userData:J.userNameDisplayData}):null)}},87202:(t,e,r)=>{"use strict";r.d(e,{_:()=>O});var n=r(96540),o=r(5338),i=r(81834),a=r(79056),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;}"]),h=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;}"]),m=a.default.p.withConfig({displayName:"JournalTitle",componentId:"sc-v4x63z-8"})(["font-size:14px;line-height:17px;"]),y=r(20339),v=function(t){var e=t.data,r=void 0===e?{}:e,o=r.name,i=r.users;return n.createElement(l,null,n.createElement(c,null,o),i.map((function(t,e){var r={targetUsername:t.user,targetId:t.userid,isInSubscriptionList:t.is_subscribed,isInFriendList:t.is_friend,friendGroupsData:[],isCommunity:t.is_community,remoteIsCommunityMember:t.is_community&&t.is_member,joinRequestPending:t.is_invite_sent,isBannedInCommunity:t.is_banned,isClosedCommunity:"closed"===t.community_membership};return r.isCommunity&&(r.isInSubscriptionList=t.is_friend),n.createElement(u,{key:"".concat(e,"-").concat(t.userid)},n.createElement(s,null,n.createElement("img",{src:t.userpic,alt:t.user})),n.createElement(f,null,n.createElement(d,null,n.createElement(h,{dangerouslySetInnerHTML:{__html:t.user_display}}),t.journal_title&&n.createElement(m,null,t.journal_title)),n.createElement(p,null,n.createElement(y.f,{targetUserData:r}))))})))};function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function w(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?b(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==g(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===g(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function x(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}LJ.define("LJ.Page.SubRecommendModal");var E={isShown:!1,recommendations:[]},S=function(){var t,e,r=(t=(0,n.useState)(E),e=2,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return x(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x(t,e):void 0}}(t,e)||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(t){a(t)},function(){LJ.Page.SubRecommendModal=null}}),[]),(0,n.useEffect)((function(){return LJ.Event.on("SubRecommendModal.requestShow",(function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!o.isShown){var e=t.recommendations;if(0!==(void 0===e?[]:e).length){LJ.Track.YM.call({method:"reachGoal",argArr:["SHOW_FRIENDS_RECOMMENDATIONS"]});var r={isShown:!0};r=w(w({},r),{},{recommendations:t.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(t){return n.createElement(v,{data:t,key:t.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)))},j=!1,O=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceCreateNewModal;if(!j||t){var e=document.createElement("div");e.dataset.subRecommendationModal="",document.body.append(e),(0,o.H)(e).render(n.createElement(S,null)),j=!0}};O()},90764:(t,e,r)=>{"use strict";r.d(e,{k:()=>n});var n=(0,r(79056).createGlobalStyle)(["body.","{overflow:hidden;}"],(function(t){return t.bodyClassName}))},92968:(t,e,r)=>{"use strict";r.d(e,{A:()=>a});var n=r(96540),o=["className","xlinkHref"];function i(){return i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}const a=(0,n.forwardRef)((function(t,e){var r=t.className,a=void 0===r?"":r,c=t.xlinkHref,l=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,o);return n.createElement("svg",i({xmlns:"http://www.w3.org/2000/svg",className:"svgicon ".concat(c," ").concat(a),ref:e},l),n.createElement("use",{xlinkHref:"#".concat(c)}))}))},95618:(t,e,r)=>{"use strict";r.d(e,{u:()=>n});var n=r(79056).default.div.withConfig({displayName:"Component",componentId:"sc-zvb2mg-0"})(["position:absolute;top:",";left:",";-webkit-font-smoothing:antialiased;z-index:5000;"],(function(t){var e=t.$position;return"".concat(e.y,"px")}),(function(t){var e=t.$position;return"".concat(e.x,"px")}))},98476:(t,e,r)=>{"use strict";r.d(e,{A:()=>d});var n=r(96540),o=(r(5338),r(28081)),i=r(81834),a=r(52464),c=r(13768);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function u(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?u(Object(r),!0).forEach((function(e){var n,o,i;n=t,o=e,i=r[e],(o=function(t){var e=function(t){if("object"!==l(t)||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===l(e)?e:String(e)}(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){u=!0,o=t}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(t,e)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}const d=function(t){var e=t.onClose,r=void 0===e?function(){}:e,l=t.inputValue,u=t.userData,p=f((0,n.useState)(l||""),2),d=p[0],h=p[1],m=f((0,n.useState)(!1),2),y=m[0],v=m[1],g=(0,n.useRef)(null),b=function(){window.location.reload()},w=function(t){v(!1),null!=t&&t.code&&null!=t&&t.message&&LJ.Messages.error(t.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 t=function(t){13===t.which?x():27===t.which&&r()};return window.addEventListener("keydown",t),function(){window.removeEventListener("keydown",t)}}),[r,x]),(0,n.useEffect)((function(){g.current.focus()}),[]);var E=!!l,S={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")},j=!!d&&d!==l;return n.createElement(i.Ay,{onClose:y?void 0:r,title:S.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:j?x:void 0,disabled:!j||y,isLoading:y,primary:!0,sizeL:!0},n.createElement("span",null,LJ.ml("common.save")))))},n.createElement(c.VY,null,"".concat(S.description," "),n.createElement(a.c,{userData:s(s({},u),{},{displayUsername:u.username})}),":"),n.createElement(c.pd,{onChange:function(t){h(t.currentTarget.value)},className:"lightinput lightinput--big",value:d,maxLength:400,disabled:y,ref:g}))}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.m=e,t=[],n.O=(e,r,o,i)=>{if(!r){var a=1/0;for(s=0;s<t.length;s++){for(var[r,o,i]=t[s],c=!0,l=0;l<r.length;l++)(!1&i||a>=i)&&Object.keys(n.O).every((t=>n.O[t](r[l])))?r.splice(l--,1):(c=!1,i<a&&(a=i));if(c){t.splice(s--,1);var u=o();void 0!==u&&(e=u)}}return e}i=i||0;for(var s=t.length;s>0&&t[s-1][2]>i;s--)t[s]=t[s-1];t[s]=[r,o,i]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={138:0,202:0};n.O.j=e=>0===t[e];var e=(e,r)=>{var o,i,[a,c,l]=r,u=0;if(a.some((e=>0!==t[e]))){for(o in c)n.o(c,o)&&(n.m[o]=c[o]);if(l)var s=l(n)}for(e&&e(r);u<a.length;u++)i=a[u],n.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return n.O(s)},r=self.webpackChunkfrontend_bundled=self.webpackChunkfrontend_bundled||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),n.nc=void 0;var o=n.O(void 0,[35],(()=>n(69156)));o=n.O(o)})();
/* <<< file end: js/front-bundled/dist/profile.js */

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