0},e}(),_n="undefined"!==typeof WeakMap?new WeakMap:new sn,In=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=hn.getInstance(),r=new En(t,n,this);_n.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){In.prototype[e]=function(){var t;return(t=_n.get(this))[e].apply(t,arguments)}}));var Ln="undefined"!==typeof cn.ResizeObserver?cn.ResizeObserver:In;const Dn={[Qt.RUS]:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c",[Qt.UKR]:"\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438",[Qt.BEL]:"\u041f\u0440\u0430\u0446\u044f\u0433\u043d\u0443\u0446\u044c",[Qt.KAZ]:"\u0416\u0430\u043b\u0493\u0430\u0441\u0442\u044b\u0440\u0443",[Qt.UZB]:"Davom etish",[Qt.ENG]:"Continue",[Qt.SPA]:"Continuar",[Qt.GERMAN]:"Fortfahren",[Qt.POL]:"Kontynuuj",[Qt.FRA]:"Continuer",[Qt.TURKEY]:"Devam"},Nn={[Qt.RUS]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f",[Qt.UKR]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f",[Qt.BEL]:"\u0417\u0430\u043f\u0456\u0441\u0430\u0446\u0446\u0430",[Qt.KAZ]:"\u0416\u0430\u0437\u044b\u043b\u0443",[Qt.UZB]:"Yozilish",[Qt.ENG]:"Sign up",[Qt.SPA]:"Registrarse",[Qt.GERMAN]:"Anmelden",[Qt.POL]:"Zapisz si\u0119",[Qt.FRA]:"Prendre RDV",[Qt.TURKEY]:"Kaydol"},Tn={[Qt.RUS]:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c",[Qt.UKR]:"\u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438",[Qt.BEL]:"\u0410\u0442\u0440\u044b\u043c\u0430\u0446\u044c",[Qt.KAZ]:"\u0410\u043b\u0443",[Qt.UZB]:"Olish",[Qt.ENG]:"Get",[Qt.SPA]:"Obtener",[Qt.GERMAN]:"Erhalten",[Qt.POL]:"Otrzymaj",[Qt.FRA]:"Obtenir",[Qt.TURKEY]:"Al"},Mn={[Qt.RUS]:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c",[Qt.UKR]:"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438",[Qt.BEL]:"\u0410\u0434\u043a\u0440\u044b\u0446\u044c",[Qt.KAZ]:"\u0410\u0448\u0443",[Qt.UZB]:"Ochish",[Qt.ENG]:"Open",[Qt.SPA]:"Abrir",[Qt.GERMAN]:"\xd6ffnen",[Qt.POL]:"Otw\xf3rz",[Qt.FRA]:"Ouvrir",[Qt.TURKEY]:"A\xe7"},Pn={[Qt.RUS]:"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c",[Qt.UKR]:"\u0420\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438",[Qt.BEL]:"\u0420\u0430\u0437\u043b\u0456\u0447\u044b\u0446\u044c",[Qt.KAZ]:"\u0415\u0441\u0435\u043f\u0442\u0435\u0443",[Qt.UZB]:"Hisoblash",[Qt.ENG]:"Calculate",[Qt.SPA]:"Calcular",[Qt.GERMAN]:"Berechnen",[Qt.POL]:"Oblicz",[Qt.FRA]:"Calculer",[Qt.TURKEY]:"Hesapla"},On={[Qt.RUS]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c",[Qt.UKR]:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438",[Qt.BEL]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0446\u044c",[Qt.KAZ]:"\u0422\u0430\u043f\u0441\u044b\u0440\u044b\u0441 \u0431\u0435\u0440\u0443",[Qt.UZB]:"Buyurtma berish",[Qt.ENG]:"Order",[Qt.SPA]:"Pedir",[Qt.GERMAN]:"Bestellen",[Qt.POL]:"Zam\xf3w",[Qt.FRA]:"Commander",[Qt.TURKEY]:"Sipari\u015f ver"},Rn={[Qt.RUS]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0437\u0430\u043a\u0430\u0437",[Qt.UKR]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0437\u0430\u043c\u043e\u0432\u043b\u0435\u043d\u043d\u044f",[Qt.BEL]:"\u0410\u0444\u043e\u0440\u043c\u0456\u0446\u044c \u0437\u0430\u043a\u0430\u0437",[Qt.KAZ]:"\u0422\u0430\u043f\u0441\u044b\u0440\u044b\u0441\u0442\u044b \u0440\u04d9\u0441\u0456\u043c\u0434\u0435\u0443",[Qt.UZB]:"Buyurtmani shakllantirish",[Qt.ENG]:"Place order",[Qt.SPA]:"Hacer pedido",[Qt.GERMAN]:"Bestellung aufgeben",[Qt.POL]:"Wype\u0142nij zam\xf3wienie",[Qt.FRA]:"Passer commande",[Qt.TURKEY]:"Sipari\u015fi tamamlar"},Bn={[Qt.RUS]:"\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0443",[Qt.UKR]:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0437\u0430\u043f\u0438\u0442",[Qt.BEL]:"\u041f\u0430\u043a\u0456\u043d\u0443\u0446\u044c \u0437\u0430\u044f\u045e\u043a\u0443",[Qt.KAZ]:"\u04e8\u0442\u0456\u043d\u0456\u043c \u049b\u0430\u043b\u0434\u044b\u0440\u0443",[Qt.UZB]:"Talabnoma qoldirish",[Qt.ENG]:"Send request",[Qt.SPA]:"Enviar solicitud",[Qt.GERMAN]:"Anfrage stellen",[Qt.POL]:"Pozostaw wniosek",[Qt.FRA]:"Envoyer demande",[Qt.TURKEY]:"Ba\u015fvuru b\u0131rak"},jn={[Qt.RUS]:"\u0423\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c",[Qt.UKR]:"\u0411\u0440\u0430\u0442\u0438 \u0443\u0447\u0430\u0441\u0442\u044c",[Qt.BEL]:"\u0423\u0434\u0437\u0435\u043b\u044c\u043d\u0456\u0447\u0430\u0446\u044c",[Qt.KAZ]:"\u049a\u0430\u0442\u044b\u0441\u0443",[Qt.UZB]:"Ishtirok etish",[Qt.ENG]:"Participate",[Qt.SPA]:"Participar",[Qt.GERMAN]:"Teilnehmen",[Qt.POL]:"Uczestnicz",[Qt.FRA]:"Participer",[Qt.TURKEY]:"Kat\u0131l"},zn={[on.SIGN_IN]:Dn,[on.SIGN_UP]:Nn,[on.GET]:Tn,[on.OPEN]:Mn,[on.CALCULATE]:Pn,[on.ORDER]:On,[on.PLACE_ORDER]:Rn,[on.SUBMIT_REQUEST]:Bn,[on.PARTICIPATE]:jn},Fn={[Qt.RUS]:"\u0412\u043e\u0439\u0442\u0438 c VK ID",[Qt.UKR]:"\u0423\u0432\u0456\u0439\u0442\u0438 \u0437 VK ID",[Qt.BEL]:"\u0423\u0432\u0430\u0439\u0441\u0446\u0456 \u0437 V\u041a ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u043a\u0456\u0440\u0443",[Qt.UZB]:"VK ID dan kirish",[Qt.ENG]:"Sign in with VK ID",[Qt.SPA]:"Iniciar sesi\xf3n con VK ID",[Qt.GERMAN]:"Mit VK-ID anmelden",[Qt.POL]:"Wejd\u017a z VK ID",[Qt.FRA]:"Se connecter avec VK ID",[Qt.TURKEY]:"VK ID arac\u0131l\u0131\u011f\u0131yla gir"},Un={[Qt.RUS]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u0441 VK ID",[Qt.UKR]:"\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u0438\u0441\u044f \u0437 VK ID",[Qt.BEL]:"\u0417\u0430\u043f\u0456\u0441\u0430\u0446\u0446\u0430 \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0436\u0430\u0437\u044b\u043b\u0443",[Qt.UZB]:"VK ID bilan yozilish",[Qt.ENG]:"Sign up with VK ID",[Qt.SPA]:"Registrarse con VK ID",[Qt.GERMAN]:"Mit VK ID anmelden",[Qt.POL]:"Zapisz si\u0119 z VK ID",[Qt.FRA]:"Prendre RDV avec VK ID",[Qt.TURKEY]:"VK ID ile kaydol"},Vn={[Qt.RUS]:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0441 VK ID",[Qt.UKR]:"\u041e\u0442\u0440\u0438\u043c\u0430\u0442\u0438 \u0437 VK ID",[Qt.BEL]:"\u0410\u0442\u0440\u044b\u043c\u0430\u0446\u044c \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0430\u043b\u0443",[Qt.UZB]:"VK ID bilan olish",[Qt.ENG]:"Get with VK ID",[Qt.SPA]:"Obtener con VK ID",[Qt.GERMAN]:"Mit VK ID erhalten",[Qt.POL]:"Otrzymaj z VK ID",[Qt.FRA]:"Obtenir avec VK ID",[Qt.TURKEY]:"VK ID ile al"},$n={[Qt.RUS]:"\u041e\u0442\u043a\u0440\u044b\u0442\u044c \u0441 VK ID",[Qt.UKR]:"\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0438 \u0437 VK ID",[Qt.BEL]:"\u0410\u0434\u043a\u0440\u044b\u0446\u044c \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0430\u0448\u0443",[Qt.UZB]:"VK ID bilan ochish",[Qt.ENG]:"Open with VK ID",[Qt.SPA]:"Abrir con VK ID",[Qt.GERMAN]:"Mit VK ID \xf6ffnen",[Qt.POL]:"Otw\xf3rz z VK ID",[Qt.FRA]:"Ouvrir avec VK ID",[Qt.TURKEY]:"VK ID ile a\xe7"},Qn={[Qt.RUS]:"\u0420\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441 VK ID",[Qt.UKR]:"\u0420\u043e\u0437\u0440\u0430\u0445\u0443\u0432\u0430\u0442\u0438 \u0437 VK ID",[Qt.BEL]:"\u0420\u0430\u0437\u043b\u0456\u0447\u044b\u0446\u044c \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0435\u0441\u0435\u043f\u0442\u0435\u0443",[Qt.UZB]:"VK ID yordamida hisoblash",[Qt.ENG]:"Calculate with VK ID",[Qt.SPA]:"Calcular con VK ID",[Qt.GERMAN]:"Mit VK ID berechnen",[Qt.POL]:"Oblicz z VK ID",[Qt.FRA]:"Calculer avec VK ID",[Qt.TURKEY]:"VK ID ile hesapla"},Kn={[Qt.RUS]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0442\u044c \u0441 VK ID",[Qt.UKR]:"\u0417\u0430\u043c\u043e\u0432\u0438\u0442\u0438 \u0437 VK ID",[Qt.BEL]:"\u0417\u0430\u043a\u0430\u0437\u0430\u0446\u044c \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0442\u0430\u043f\u0441\u044b\u0440\u044b\u0441 \u0431\u0435\u0440\u0443",[Qt.UZB]:"VK ID bilan buyurtma berish",[Qt.ENG]:"Order with VK ID",[Qt.SPA]:"Pedir con VK ID",[Qt.GERMAN]:"Mit VK ID bestellen",[Qt.POL]:"Zam\xf3w z VK ID",[Qt.FRA]:"Commander avec VK ID",[Qt.TURKEY]:"VK ID ile sipari\u015f ver"},Hn={[Qt.RUS]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0441 VK ID",[Qt.UKR]:"\u041e\u0444\u043e\u0440\u043c\u0438\u0442\u0438 \u0437 VK ID",[Qt.BEL]:"\u0410\u0444\u043e\u0440\u043c\u0456\u0446\u044c \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u0440\u04d9\u0441\u0456\u043c\u0434\u0435\u0443",[Qt.UZB]:"VK ID bilan shakllantirish",[Qt.ENG]:"Order with VK ID",[Qt.SPA]:"Pedir con VK ID",[Qt.GERMAN]:"Mit VK ID Bestellung aufgeben",[Qt.POL]:"Wype\u0142nij z VK ID",[Qt.FRA]:"Commander avec VK ID",[Qt.TURKEY]:"VK ID ile yap"},Wn={[Qt.RUS]:"\u041e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0437\u0430\u044f\u0432\u043a\u0443 \u0441 VK ID",[Qt.UKR]:"\u0417\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0437\u0430\u043f\u0438\u0442 \u0437 VK ID",[Qt.BEL]:"\u041f\u0430\u043a\u0456\u043d\u0443\u0446\u044c \u0437\u0430\u044f\u045e\u043a\u0443 \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u04e9\u0442\u0456\u043d\u0456\u043c \u049b\u0430\u043b\u0434\u044b\u0440\u0443",[Qt.UZB]:"VK ID bilan talabnoma qoldirish",[Qt.ENG]:"Send request with VK ID",[Qt.SPA]:"Enviar solicitud con VK ID",[Qt.GERMAN]:"Mit VK ID Anfrage stellen",[Qt.POL]:"Zostaw wniosek z VK ID",[Qt.FRA]:"Envoyer demande avec VK ID",[Qt.TURKEY]:"VK ID ile ba\u015fvuru yap"},qn={[Qt.RUS]:"\u0423\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441 VK ID",[Qt.UKR]:"\u0411\u0440\u0430\u0442\u0438 \u0443\u0447\u0430\u0441\u0442\u044c \u0437 VK ID",[Qt.BEL]:"\u0423\u0434\u0437\u0435\u043b\u044c\u043d\u0456\u0447\u0430\u0446\u044c \u0437 VK ID",[Qt.KAZ]:"VK ID \u0430\u0440\u049b\u044b\u043b\u044b \u049b\u0430\u0442\u044b\u0441\u0443",[Qt.UZB]:"VK ID ilan ishtirok etish",[Qt.ENG]:"Participate with VK ID",[Qt.SPA]:"Participar con VK ID",[Qt.GERMAN]:"Mit VK ID teilnehmen",[Qt.POL]:"Uczestnicz z VK ID",[Qt.FRA]:"Participer avec VK ID",[Qt.TURKEY]:"VK ID ile kat\u0131l"},Gn={[on.SIGN_IN]:Fn,[on.SIGN_UP]:Un,[on.GET]:Vn,[on.OPEN]:$n,[on.CALCULATE]:Qn,[on.ORDER]:Kn,[on.PLACE_ORDER]:Hn,[on.SUBMIT_REQUEST]:Wn,[on.PARTICIPATE]:qn},Yn=e=>{let{width:t,height:n,iframeHeight:r,borderRadius:o,login:i,skin:a,scheme:l,contentId:s,lang:u,renderOAuthList:c,providers:d,setStatsButtonType:f}=e;return e=>{let p=0,h=0,g=0,m=0;const v=((e,t)=>{const n=zn[e]||zn[on.SIGN_IN];return n[t]||n[Qt.RUS]})(s,u),y=((e,t)=>{const n=Gn[e]||Gn[on.SIGN_IN];return n[t]||n[Qt.RUS]})(s,u),b=(e=>{const t=(e-30)/2+3;return e<40?t:t-2})(n),A=(e=>e<40?14:e>47?17:16)(n),w=(e=>e<40?24:28)(n),k=document.createElement("div"),x=document.createElement("button");setTimeout((()=>{x.classList.add(`VkIdWebSdk__button_animation_${e}`)}),100),x.classList.add(`VkIdWebSdk__button_${e}`),x.classList.add(`VkIdWebSdk__button_reset_${e}`),i&&(x.onclick=i);const S=document.createElement("span");S.classList.add(`VkIdWebSdk__button_in_${e}`);const C=document.createElement("span");C.classList.add(`VkIdWebSdk__button_content_${e}`);const E=document.createElement("span");E.classList.add(`VkIdWebSdk__button_logo_${e}`),E.innerHTML='\n \n';const _=document.createElement("span");_.classList.add(`VkIdWebSdk__button_text_${e}`);const I=document.createElement("span");I.innerText=v;const L=document.createElement("span");L.innerText=y;const D=document.createElement("span");D.innerText="VK ID";const N=document.createElement("span");N.classList.add(`VkIdWebSdk__button_spinner_${e}`),N.innerHTML='\n \n';const T=document.createElement("div");T.classList.add(`VkIdWebSdk__oauthList_container_${e}`);const M=e=>e+16+2*b+2*w,P=()=>{let t=0,r=!1;const i=()=>{const e=C.contains(_),i=_.contains(D),a=_.contains(L),s=k.clientWidth;e&&s=p&&(x.removeAttribute("style"),C.appendChild(_),C.appendChild(N)),!i&&s{L.remove(),_.appendChild(D)}),t)),!a&&s>=h&&(_.style.width=`${m}px`,D.dataset.active="",L.dataset.active="true",setTimeout((()=>{D.remove(),_.appendChild(L)}),t),d?.length&&!k.contains(T)&&(k.appendChild(T),!r&&c({lang:u,scheme:l,container:T,oauthList:d,styles:{borderRadius:o,height:n}}),r=!0)),f("default")};new Ln(function(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window,i=function(){return e.apply(o,r)};return function(){for(var e=arguments.length,o=new Array(e),a=0;a\n \n \n\n `}};const Zn=0,Xn=44,Jn=8;class er extends Ut{analytics;vkidAppName="button_one_tap_auth";statsBtnType;fastAuthDisabled;constructor(){super(),this.analytics=new ln(er.config)}setStatsButtonType=e=>{this.statsBtnType||(this.statsBtnType=e,this.fastAuthDisabled&&this.statsBtnType&&this.analytics.sendOneTapButtonNoUserShow(this.statsBtnType))};sendSuccessLoginEvent=e=>{this.events.emit(Ot.LOGIN_SUCCESS,e)};onBridgeMessageHandler(e){switch(e.handler){case Ot.SHOW_FULL_AUTH:{const t=e.params,n={};t.screen&&(n.screen=t.screen),t.sdk_oauth&&(n.provider=t.sdk_oauth,n.statsFlowSource=at.MULTIBRANDING),this.openFullAuth(n);break}case Ot.NOT_AUTHORIZED:this.analytics.sendNoSessionFound(),this.setState(Rt.NOT_LOADED),clearTimeout(this.timeoutTimer),this.elements?.iframe?.remove();break;case Ot.AUTHENTICATION_INFO:this.events.emit(Ot.AUTHENTICATION_INFO,e.params);break;default:super.onBridgeMessageHandler(e)}}onErrorHandler(e){this.analytics.sendFrameLoadingFailed(),this.analytics.sendOneTapButtonNoUserShow(this.statsBtnType),super.onErrorHandler(e)}openFullAuth(e){const t={statsFlowSource:at.BUTTON_ONE_TAP,...e,uniqueSessionId:this.id,lang:this.lang,scheme:this.scheme};er.auth.login(t).then(this.sendSuccessLoginEvent).catch((e=>{this.events.emit(zt.ERROR,{code:Bt.AuthError,text:e.error})}))}login(e){this.config.get().mode===ct.Redirect?this.analytics.sendOneTapButtonNoUserTap(this.statsBtnType).finally((()=>{this.openFullAuth(e)})):(this.analytics.sendOneTapButtonNoUserTap(this.statsBtnType),this.openFullAuth(e))}renderOAuthList(e){if(!e.oauthList.length)return;(new nn).on(Gt.LOGIN_SUCCESS,this.sendSuccessLoginEvent).render({...e,flowSource:Fe.NOWHERE,uniqueSessionId:this.id})}render(e){this.lang=e?.lang||Qt.RUS,this.scheme=e?.scheme||Kt.LIGHT,this.fastAuthDisabled=!1===e.fastAuthEnabled;const t=(e.oauthList||[]).filter((e=>e!==xt.VK)),n={style_height:e.styles?.height||Xn,style_border_radius:Ht(e.styles?.borderRadius)?Jn:e.styles?.borderRadius,show_alternative_login:e?.showAlternativeLogin?1:0,button_skin:e.skin||rn.Primary,content_id:e?.contentId||on.SIGN_IN,scheme:this.scheme,lang_id:this.lang,providers:t.join(","),uuid:this.id};return this.analytics.setUniqueSessionId(this.id),this.templateRenderer=Yn({width:e.styles?.width||Zn,iframeHeight:n.show_alternative_login?2*n.style_height+12:n.style_height,height:n.style_height,borderRadius:n.style_border_radius,login:this.login.bind(this),skin:n.button_skin,scheme:n.scheme,lang:n.lang_id,contentId:n.content_id,renderOAuthList:this.renderOAuthList.bind(this),providers:t,setStatsButtonType:this.setStatsButtonType.bind(this)}),this.analytics.sendScreenProceed({scheme:this.scheme,lang:this.lang,skin:n.button_skin,contentId:n.content_id}),this.fastAuthDisabled&&(n.fastAuthDisabled=!0),super.render({container:e.container,...n})}}function tr(){return(0,o.useEffect)((()=>{Vt.init({app:52316017,redirectUrl:"https://novelplus.ru/users/vk-login/",scope:"email"});const e=new er,t=document.getElementById("VkIdSdkOneTap");t&&e.render({container:t,scheme:Kt.DARK,lang:Qt.RUS})}),[]),(0,xe.jsx)("div",{className:"vk-login",children:(0,xe.jsx)("div",{id:"VkIdSdkOneTap"})})}!function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);i>3&&a&&Object.defineProperty(t,n,a)}([_t({styles:[e=>({result:void 0!==e&&void 0!==e.height&&Lt(e.height)&&e.height<57&&e.height>31||void 0===e||void 0===e.height,makeError:()=>"The height should correspond to the range from 32 to 56"})]})],er.prototype,"render",null);const nr={validator:(e,t,n)=>e.password.length>8||(n("\u041f\u0430\u0440\u043e\u043b\u044c \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 8 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432!"),!1)},rr={validator:(e,t,n)=>{const r=e;return r.password===r.password2||(n("\u041f\u0430\u0440\u043e\u043b\u0438 \u043d\u0435 \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0442!"),!1)}};function or(e,t,n,r){for(let o=0;o{const{name:t,value:o,type:i,checked:l}=e.target;a(null),r({...n,[t]:"checkbox"===i?l:o})};return(0,xe.jsxs)("div",{className:"login-from-menu vertical-box",children:[(0,xe.jsx)("button",{onClick:function(){t(!e)},children:e?"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f":"\u0412\u043e\u0439\u0442\u0438"}),(0,xe.jsx)("br",{}),i&&(0,xe.jsxs)("div",{className:"error",children:[(0,xe.jsx)("label",{children:i}),(0,xe.jsx)("br",{})]}),(0,xe.jsx)("label",{htmlFor:"login",children:"\u0418\u043c\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f"}),(0,xe.jsx)("input",{id:"login",type:"text",name:"username",autoFocus:!0,autoComplete:e?"username":void 0,maxLength:40,required:!0,onChange:u}),(0,xe.jsx)("label",{htmlFor:"password",children:"\u041f\u0430\u0440\u043e\u043b\u044c"}),(0,xe.jsx)("input",{id:"password",type:"password",name:"password",autoComplete:e?"current-password":"new-password",required:!0,onChange:u}),!e&&(0,xe.jsxs)("div",{className:"vertical-box",children:[(0,xe.jsx)("label",{htmlFor:"password2",children:"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0430\u0440\u043e\u043b\u044f"}),(0,xe.jsx)("input",{id:"password2",type:"password",name:"password2",autoComplete:"new-password",required:!0,onChange:u})]}),(0,xe.jsx)("input",{type:"submit",onClick:e?async function(){if(!or(l,n,i,a))return;const e=await async function(e){return await we(ge.password,"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435",e)}(n);e&&a(e)}:async function(){if(!or(s,n,i,a))return;const e=await async function(e){return await we(ge.register,"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438",e)}(n);e&&a(e)},value:e?"\u0412\u043e\u0439\u0442\u0438":"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f"}),!pe&&(0,xe.jsx)(tr,{})]})}function ar(){let{page:e,subpage:t}=Ne();const[n,r]=(0,o.useState)(!1);function i(){r(!n)}const{screenVariant:a}=Me(),l=(0,o.useContext)(Ce),s=(0,xe.jsxs)("div",{className:"navigation "+(a.computer?"horizontal-box":"vertical-box"),children:[(0,xe.jsx)("a",{href:"/store",className:"primary small"+("store"===e?" selected":""),children:"\u0418\u0433\u0440\u044b \u0438 \u0430\u0441\u0441\u0435\u0442\u044b"}),(0,xe.jsx)("a",{href:"/vacancy",className:"primary small"+("vacancy"===e?" selected":""),children:"\u0412\u0430\u043a\u0430\u043d\u0441\u0438\u0438"})]}),u="store"===e?(0,xe.jsxs)("div",{className:"navigation "+(a.computer?"horizontal-box":"vertical-box"),children:[(0,xe.jsx)("a",{href:"/store/game",className:"primary small"+("game"===t?" selected":""),children:"\u0418\u0433\u0440\u044b"}),(0,xe.jsx)("a",{href:"/store/sprite",className:"primary small"+("sprite"===t?" selected":""),children:"\u0421\u043f\u0440\u0430\u0439\u0442\u044b"})]}):"vacancy"===e&&(0,xe.jsxs)("div",{className:"navigation "+(a.computer?"horizontal-box":"vertical-box"),children:[(0,xe.jsx)("a",{href:"/vacancy/developer",className:"primary small"+("developer"===t?" selected":""),children:"\u0418\u0449\u0443 \u0440\u0430\u0431\u043e\u0442\u043d\u0438\u043a\u0430"}),(0,xe.jsx)("a",{href:"/vacancy/project",className:"primary small"+("project"===t?" selected":""),children:"\u0418\u0449\u0443 \u043f\u0440\u043e\u0435\u043a\u0442"})]});return(0,xe.jsxs)("header",{className:"header",children:[(0,xe.jsxs)("div",{className:"content-box stretched-box align-center",children:[(0,xe.jsxs)("div",{className:"align-center upper-menu",children:[(0,xe.jsx)("a",{href:"/",children:(0,xe.jsx)("img",{className:"icon",alt:"icon",src:_e||""})}),a.computer&&s]}),(0,xe.jsxs)("div",{className:"dropdown-menu",children:[(0,xe.jsx)("button",{className:"menu-button",onClick:i,children:(0,xe.jsx)("img",{className:"avatar",alt:"Avatar",src:l.avatar||Ie||""})}),n&&(0,xe.jsx)("div",{className:"menu-click-area",children:(0,xe.jsxs)("div",{className:"vertical-box align-end",children:[(0,xe.jsx)("div",{className:"avatar",onClick:i}),(0,xe.jsxs)("div",{className:"menu-content",children:[l.isAdmin&&(0,xe.jsx)("a",{href:"/admin/",children:"\u0410\u0434\u043c\u0438\u043d \u0447\u0430\u0441\u0442\u044c"},"admin-access"),l.isAuthenticated?[(0,xe.jsx)("a",{href:"/users/"+l.id+"/",children:"\u041c\u043e\u0439 \u043f\u0440\u043e\u0444\u0438\u043b\u044c"},"my-profile"),(0,xe.jsx)("button",{onClick:Ae,children:"\u0412\u044b\u0439\u0442\u0438"},"logout")]:(0,xe.jsx)(ir,{})]})]})})]})]}),!a.computer&&(0,xe.jsxs)("div",{className:"phone-menu content-box",children:[(0,xe.jsx)("div",{children:s}),(0,xe.jsx)("div",{children:u})]}),u&&a.computer&&(0,xe.jsx)("div",{className:"content-box align-end bottom-menu vertical-box",children:u})]})}function lr(){return(0,xe.jsxs)("footer",{className:"footer",children:[(0,xe.jsx)("a",{href:"/about",children:"\u041e \u041f\u0420\u041e\u0415\u041a\u0422\u0415"}),(0,xe.jsx)("div",{className:"body-text",children:"support@novelplus.ru"})]})}const sr=n.p+"static/media/loading.af264934e725715bfe23.gif";function ur(e){let{singlePage:t,notFound:n}=e;return n?(0,xe.jsx)("div",{className:"section body-text content-box vertical-box align-center loading-page",children:t?(0,xe.jsxs)("div",{className:"vertical-box align-center",children:[(0,xe.jsx)("h1",{children:"404: \u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e."}),(0,xe.jsx)("a",{href:"/",children:"\u0412\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443"})]}):(0,xe.jsx)("h1",{children:"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e :("})}):(0,xe.jsxs)("div",{className:"section body-text content-box vertical-box align-center loading-page",children:["\u0418\u0414\u0415\u0422 \u0417\u0410\u0413\u0420\u0423\u0417\u041a\u0410...",(0,xe.jsx)("img",{src:sr||"",alt:"\u0438\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430..."})]})}async function cr(e){const t=await be("/api/update/item/",e,!1,he.formData);console.log(t),t.success&&(console.log(t),window.location.reload())}function dr(){let{page:e,subpage:t}=Ne();const[n,r]=(0,o.useState)(null),[i,a]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{i||async function(e,t){const n=await be(["/api/get-collection",e,t].join("/"));if(n.success){const e=n.body;for(let t of e.cards)t.preview=t.preview&&me(t.preview);return e.cards}return null}(e,t||"").then((e=>{null!==e&&e.length>0&&r(e),a(!0)}))}),[n,e,t,i]),{items:n,collection:t,notFound:i}}function fr(){let{page:e,subpage:t}=Ne();const[n,r]=(0,o.useState)(null),[i,a]=(0,o.useState)(!1),[l,s]=(0,o.useState)(!1),u=(0,o.useContext)(Ce);return(0,o.useEffect)((()=>{null===n&&("create"===t?(u.isAuthenticated&&r({image:"",contextButtons:[],shortDescription:"",title:`New ${e} | ${u.username}`,author:u.id,description:""}),s(!0)):async function(e,t){const n=await be(["/api/get-item",e,t].join("/"));if(n.success){const e=n.body;return e.image=e.image&&me(e.image),e}return await ve(n,"\u041d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e")}(e,t||"").then((e=>{null!==e&&("string"===typeof e?a(!0):r(e))})))}),[n,e,t,u.id]),{item:n,notFound:i,createNew:l,collection:e}}const pr=(0,o.createContext)(null);function hr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const[i,a]=(0,o.useState)(!1),[l,s]=(0,o.useState)();function u(){s({}),a(!0)}return n&&!i&&u(),{editMode:i,startEdit:u,saveEdit:async function(){let o=0;if(!l)return;const i=new FormData;for(const e in l){const t=l[e];t&&(o++,i.append(e,t),i.append("changes",e))}if(o&&e){for(const e in t){const n=t[e];n&&i.append(e,n)}n&&i.append("createdData",JSON.stringify(r)),e(i)}a(!1),s(void 0)},cancelEdit:function(){a(!1),s(void 0)},changeAttribute:function(e,t){l&&s({...l,[e]:t})},objectFormData:l}}function gr(e){let{attrName:t,ifNullImage:n,initialValue:r,imageClassName:i}=e;const a=(0,o.useContext)(pr);i=i||"";let l=null,s=a&&a.objectFormData&&a.objectFormData[t];return s&&(l=URL.createObjectURL(s)),(0,xe.jsxs)("div",{className:`editable-image vertical-box ${t} align-center`,children:[(0,xe.jsx)("img",{src:(null===a||void 0===a?void 0:a.editMode)&&l||r||n,alt:t,className:i}),(null===a||void 0===a?void 0:a.editMode)&&(0,xe.jsx)("input",{type:"file",accept:"image/*",onChange:e=>{a&&a.editMode&&(e.target.files&&e.target.files.length?a.changeAttribute(t,e.target.files[0]):a.changeAttribute(t,void 0))}})]})}const mr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAIOCAYAAADnWYhIAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAppSURBVHgB7dYBDYAwEACx8UEY/h1MDbOxS1oVffbe/wIAAK42CwAAuJ64AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAgLgDAECAuAMAQIC4AwBAwDsz3wIAAK52APbaB+5jt/MSAAAAAElFTkSuQmCC";function vr(e){let{attrName:t,initialValue:n,placeholder:r="",singleLine:i=!0,header:a=0}=e;const l=(0,o.useContext)(pr),s=l&&l.objectFormData&&l.objectFormData[t];const u={required:!0,name:t,id:t,value:"string"===typeof s?s:n,onChange:function(e){if(!l||!l.editMode)return;const{value:n}=e.target;l.changeAttribute(t,n)},placeholder:r,className:t};let c=null;switch(a){case 0:c=(0,xe.jsx)("span",{className:[t,"editable-label"].join(" "),children:n});break;case 1:c=(0,xe.jsx)("h1",{className:[t,"editable-label"].join(" "),children:n});break;case 2:c=(0,xe.jsx)("h2",{className:[t,"editable-label"].join(" "),children:n});break;case 3:c=(0,xe.jsx)("h3",{className:[t,"editable-label"].join(" "),children:n});break;case 4:c=(0,xe.jsx)("h4",{className:[t,"editable-label"].join(" "),children:n});break;default:console.error("Header size: ",a)}return null!==l&&void 0!==l&&l.editMode?(0,xe.jsxs)("div",{className:`editable-label is-edit vertical-box editable-size-${a}`,children:[(0,xe.jsxs)("label",{htmlFor:t,children:[r,":"]}),i?(0,xe.jsx)("input",{...u}):(0,xe.jsx)("textarea",{...u})]}):c}function yr(e){let{item:t}=e;const n=(0,o.useContext)(pr),[r,i]=(0,o.useState)(),[a,l]=(0,o.useState)(t.contextButtons);function s(e){if(!n||!n.editMode)return;const{value:r,name:o}=e.target,i=[...a],s=i.find((e=>e.name===o));if(s){s.url=r,l(i);const e=[];for(const n of i){const r=t.contextButtons.find((e=>e.name===n.name));n.url.length?r&&r.url==n.url||e.push(n):r&&e.push(n)}n.changeAttribute("contextButtons",e.length?JSON.stringify(e):void 0)}}return(0,o.useEffect)((()=>{if(void 0===r)(async function(){const e=await be("/api/get/available-context-buttons/");return e.success?e.body.context_buttons:[]})().then((e=>{i(e);const n=[...t.contextButtons];for(const t of e)n.find((e=>e.name===t))||n.push({name:t,url:""});l(n)}));else if(null!==n&&void 0!==n&&n.editMode){const e=[...t.contextButtons];for(const t of r)e.find((e=>e.name===t))||e.push({name:t,url:""});l(e)}else l(t.contextButtons)}),[null===n||void 0===n?void 0:n.editMode]),null!==n&&void 0!==n&&n.editMode?(0,xe.jsxs)("div",{className:"vertical-box",children:[(0,xe.jsx)("h3",{children:"\u0421\u0441\u044b\u043b\u043a\u0438 (\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0432\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043f\u043e\u043b\u043d\u0443\u044e \u0441\u0441\u044b\u043b\u043a\u0443 https/mailto):"}),a.map((e=>(0,xe.jsxs)("div",{className:"vertical-box",children:[(0,xe.jsxs)("label",{htmlFor:e.name,children:[e.name,":"]}),(0,xe.jsx)("input",{placeholder:e.name,onChange:s,value:e.url,name:e.name,id:e.name})]},`context-button-edit-${e.name}`)))]}):(0,xe.jsx)("div",{className:"vertical-box context-buttons-list",children:t.contextButtons.map((e=>(0,xe.jsx)("a",{href:e.url,className:"primary small context-button",children:e.name},"context-button-"+e.name)))})}const br=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ar=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wr={};function kr(e,t){return((t||wr).jsx?Ar:br).test(e)}const xr=/[ \t\n\f\r]/g;function Sr(e){return""===e.replace(xr,"")}class Cr{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function Er(e,t){const n={},r={};let o=-1;for(;++o"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Qr=Vr({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Kr(e,t){return t in e?e[t]:t}function Hr(e,t){return Kr(e,t.toLowerCase())}const Wr=Vr({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Hr,properties:{xmlns:null,xmlnsXLink:null}}),qr=Vr({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Nr,ariaAutoComplete:null,ariaBusy:Nr,ariaChecked:Nr,ariaColCount:Mr,ariaColIndex:Mr,ariaColSpan:Mr,ariaControls:Pr,ariaCurrent:null,ariaDescribedBy:Pr,ariaDetails:null,ariaDisabled:Nr,ariaDropEffect:Pr,ariaErrorMessage:null,ariaExpanded:Nr,ariaFlowTo:Pr,ariaGrabbed:Nr,ariaHasPopup:null,ariaHidden:Nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Pr,ariaLevel:Mr,ariaLive:null,ariaModal:Nr,ariaMultiLine:Nr,ariaMultiSelectable:Nr,ariaOrientation:null,ariaOwns:Pr,ariaPlaceholder:null,ariaPosInSet:Mr,ariaPressed:Nr,ariaReadOnly:Nr,ariaRelevant:null,ariaRequired:Nr,ariaRoleDescription:Pr,ariaRowCount:Mr,ariaRowIndex:Mr,ariaRowSpan:Mr,ariaSelected:Nr,ariaSetSize:Mr,ariaSort:null,ariaValueMax:Mr,ariaValueMin:Mr,ariaValueNow:Mr,ariaValueText:null,role:null}}),Gr=Vr({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Hr,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Or,acceptCharset:Pr,accessKey:Pr,action:null,allow:null,allowFullScreen:Dr,allowPaymentRequest:Dr,allowUserMedia:Dr,alt:null,as:null,async:Dr,autoCapitalize:null,autoComplete:Pr,autoFocus:Dr,autoPlay:Dr,blocking:Pr,capture:null,charSet:null,checked:Dr,cite:null,className:Pr,cols:Mr,colSpan:null,content:null,contentEditable:Nr,controls:Dr,controlsList:Pr,coords:Mr|Or,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Dr,defer:Dr,dir:null,dirName:null,disabled:Dr,download:Tr,draggable:Nr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Dr,formTarget:null,headers:Pr,height:Mr,hidden:Dr,high:Mr,href:null,hrefLang:null,htmlFor:Pr,httpEquiv:Pr,id:null,imageSizes:null,imageSrcSet:null,inert:Dr,inputMode:null,integrity:null,is:null,isMap:Dr,itemId:null,itemProp:Pr,itemRef:Pr,itemScope:Dr,itemType:Pr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Dr,low:Mr,manifest:null,max:null,maxLength:Mr,media:null,method:null,min:null,minLength:Mr,multiple:Dr,muted:Dr,name:null,nonce:null,noModule:Dr,noValidate:Dr,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Dr,optimum:Mr,pattern:null,ping:Pr,placeholder:null,playsInline:Dr,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Dr,referrerPolicy:null,rel:Pr,required:Dr,reversed:Dr,rows:Mr,rowSpan:Mr,sandbox:Pr,scope:null,scoped:Dr,seamless:Dr,selected:Dr,shadowRootClonable:Dr,shadowRootDelegatesFocus:Dr,shadowRootMode:null,shape:null,size:Mr,sizes:null,slot:null,span:Mr,spellCheck:Nr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Mr,step:null,style:null,tabIndex:Mr,target:null,title:null,translate:null,type:null,typeMustMatch:Dr,useMap:null,value:Nr,width:Mr,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Pr,axis:null,background:null,bgColor:null,border:Mr,borderColor:null,bottomMargin:Mr,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Dr,declare:Dr,event:null,face:null,frame:null,frameBorder:null,hSpace:Mr,leftMargin:Mr,link:null,longDesc:null,lowSrc:null,marginHeight:Mr,marginWidth:Mr,noResize:Dr,noHref:Dr,noShade:Dr,noWrap:Dr,object:null,profile:null,prompt:null,rev:null,rightMargin:Mr,rules:null,scheme:null,scrolling:Nr,standby:null,summary:null,text:null,topMargin:Mr,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Mr,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Dr,disableRemotePlayback:Dr,prefix:null,property:null,results:Mr,security:null,unselectable:null}}),Yr=Vr({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Kr,properties:{about:Rr,accentHeight:Mr,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Mr,amplitude:Mr,arabicForm:null,ascent:Mr,attributeName:null,attributeType:null,azimuth:Mr,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Mr,by:null,calcMode:null,capHeight:Mr,className:Pr,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Mr,diffuseConstant:Mr,direction:null,display:null,dur:null,divisor:Mr,dominantBaseline:null,download:Dr,dx:null,dy:null,edgeMode:null,editable:null,elevation:Mr,enableBackground:null,end:null,event:null,exponent:Mr,externalResourcesRequired:null,fill:null,fillOpacity:Mr,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Or,g2:Or,glyphName:Or,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Mr,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Mr,horizOriginX:Mr,horizOriginY:Mr,id:null,ideographic:Mr,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Mr,k:Mr,k1:Mr,k2:Mr,k3:Mr,k4:Mr,kernelMatrix:Rr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Mr,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Mr,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Mr,overlineThickness:Mr,paintOrder:null,panose1:null,path:null,pathLength:Mr,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Pr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Mr,pointsAtY:Mr,pointsAtZ:Mr,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Rr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Rr,rev:Rr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Rr,requiredFeatures:Rr,requiredFonts:Rr,requiredFormats:Rr,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Mr,specularExponent:Mr,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Mr,strikethroughThickness:Mr,string:null,stroke:null,strokeDashArray:Rr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Mr,strokeOpacity:Mr,strokeWidth:null,style:null,surfaceScale:Mr,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Rr,tabIndex:Mr,tableValues:null,target:null,targetX:Mr,targetY:Mr,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Rr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Mr,underlineThickness:Mr,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Mr,values:null,vAlphabetic:Mr,vMathematical:Mr,vectorEffect:null,vHanging:Mr,vIdeographic:Mr,version:null,vertAdvY:Mr,vertOriginX:Mr,vertOriginY:Mr,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Mr,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Zr=Er([Qr,$r,Wr,qr,Gr],"html"),Xr=Er([Qr,$r,Wr,qr,Yr],"svg"),Jr=/^data[-\w.:]+$/i,eo=/-[a-z]/g,to=/[A-Z]/g;function no(e){return"-"+e.toLowerCase()}function ro(e){return e.charAt(1).toUpperCase()}const oo={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var io=n(222);const ao=io.default||io,lo=uo("end"),so=uo("start");function uo(e){return function(t){const n=t&&t.position&&t.position[e]||{};if("number"===typeof n.line&&n.line>0&&"number"===typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"===typeof n.offset&&n.offset>-1?n.offset:void 0}}}function co(e){return e&&"object"===typeof e?"position"in e||"type"in e?po(e.position):"start"in e||"end"in e?po(e):"line"in e||"column"in e?fo(e):"":""}function fo(e){return ho(e&&e.line)+":"+ho(e&&e.column)}function po(e){return fo(e&&e.start)+"-"+fo(e&&e.end)}function ho(e){return e&&"number"===typeof e?e:1}class go extends Error{constructor(e,t,n){super(),"string"===typeof t&&(n=t,t=void 0);let r="",o={},i=!1;if(t&&(o="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"===typeof e?r=e:!o.cause&&e&&(i=!0,r=e.message,o.cause=e),!o.ruleId&&!o.source&&"string"===typeof n){const e=n.indexOf(":");-1===e?o.ruleId=n:(o.source=n.slice(0,e),o.ruleId=n.slice(e+1))}if(!o.place&&o.ancestors&&o.ancestors){const e=o.ancestors[o.ancestors.length-1];e&&(o.place=e.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=a?a.line:void 0,this.name=co(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=i&&o.cause&&"string"===typeof o.cause.stack?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}go.prototype.file="",go.prototype.name="",go.prototype.reason="",go.prototype.message="",go.prototype.stack="",go.prototype.column=void 0,go.prototype.line=void 0,go.prototype.ancestors=void 0,go.prototype.cause=void 0,go.prototype.fatal=void 0,go.prototype.place=void 0,go.prototype.ruleId=void 0,go.prototype.source=void 0;const mo={}.hasOwnProperty,vo=new Map,yo=/[A-Z]/g,bo=/-([a-z])/g,Ao=new Set(["table","tbody","thead","tfoot","tr"]),wo=new Set(["td","th"]),ko="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function xo(e,t){if(!t||void 0===t.Fragment)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if("function"!==typeof t.jsxDEV)throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=function(e,t){return n;function n(n,r,o,i){const a=Array.isArray(o.children),l=so(n);return t(r,o,i,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}(n,t.jsxDEV)}else{if("function"!==typeof t.jsx)throw new TypeError("Expected `jsx` in production options");if("function"!==typeof t.jsxs)throw new TypeError("Expected `jsxs` in production options");r=function(e,t,n){return r;function r(e,r,o,i){const a=Array.isArray(o.children)?n:t;return i?a(r,o,i):a(r,o)}}(0,t.jsx,t.jsxs)}const o={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?Xr:Zr,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},i=So(o,e,void 0);return i&&"string"!==typeof i?i:o.create(e,o.Fragment,{children:i||void 0},void 0)}function So(e,t,n){return"element"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(o=Xr,e.schema=o);e.ancestors.push(t);const i=Lo(e,t.tagName,!1),a=function(e,t){const n={};let r,o;for(o in t.properties)if("children"!==o&&mo.call(t.properties,o)){const i=Io(e,o,t.properties[o]);if(i){const[o,a]=i;e.tableCellAlignToStyle&&"align"===o&&"string"===typeof a&&wo.has(t.tagName)?r=a:n[o]=a}}if(r){(n.style||(n.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=r}return n}(e,t);let l=_o(e,t);Ao.has(t.tagName)&&(l=l.filter((function(e){return"string"!==typeof e||!("object"===typeof(t=e)?"text"===t.type&&Sr(t.value):Sr(t));var t})));return Co(e,a,i,t),Eo(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Do(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){const r=e.schema;let o=r;"svg"===t.name&&"html"===r.space&&(o=Xr,e.schema=o);e.ancestors.push(t);const i=null===t.name?e.Fragment:Lo(e,t.name,!0),a=function(e,t){const n={};for(const r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){const t=r.data.estree.body[0];t.type;const o=t.expression;o.type;const i=o.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Do(e,t.position);else{const o=r.name;let i;if(r.value&&"object"===typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){const t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else Do(e,t.position);else i=null===r.value||r.value;n[o]=i}return n}(e,t),l=_o(e,t);return Co(e,a,i,t),Eo(a,l),e.ancestors.pop(),e.schema=r,e.create(t,i,a,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Do(e,t.position)}(e,t):"root"===t.type?function(e,t,n){const r={};return Eo(r,_o(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?function(e,t){return t.value}(0,t):void 0}function Co(e,t,n,r){"string"!==typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Eo(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function _o(e,t){const n=[];let r=-1;const o=e.passKeys?new Map:vo;for(;++r4&&"data"===n.slice(0,4)&&Jr.test(t)){if("-"===t.charAt(4)){const e=t.slice(5).replace(eo,ro);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{const e=t.slice(4);if(!eo.test(e)){let n=e.replace(to,no);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}o=zr}return new o(r,t)}(e.schema,t);if(!(null===n||void 0===n||"number"===typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){const n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"===typeof n?n:function(e,t){const n={};try{ao(t,r)}catch(o){if(!e.ignoreInvalidStyle){const t=o,n=new go("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:t,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ko+"#cannot-parse-style-attribute",n}}return n;function r(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(bo,To)),n[r]=t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){const t={};let n;for(n in e)mo.call(e,n)&&(t[No(n)]=e[n]);return t}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?oo[r.property]||r.property:r.attribute,n]}}function Lo(e,t,n){let r;if(n)if(t.includes(".")){const e=t.split(".");let n,o=-1;for(;++oo?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);a0?(jo(e,e.length,0,t),e):t}class Fo{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){const r=t||0;this.setCursor(Math.trunc(e));const o=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return n&&Uo(this.left,n),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),Uo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),Uo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length))if(e-1&&e.test(String.fromCharCode(t))}}function ai(e,t,n,r){const o=r?r-1:Number.POSITIVE_INFINITY;let i=0;return function(r){if(ni(r))return e.enter(n),a(r);return t(r)};function a(r){return ni(r)&&i++i))return;const n=t.events.length;let o,l,s=n;for(;s--;)if("exit"===t.events[s][0]&&"chunkFlow"===t.events[s][1].type){if(o){l=t.events[s][1].end;break}o=!0}for(v(a),e=n;er;){const r=n[o];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function y(){r.write([null]),o=void 0,r=void 0,t.containerState._closeFlow=void 0}}},ui={tokenize:function(e,t,n){return ai(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const ci={tokenize:function(e,t,n){return function(t){return ni(t)?ai(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||ei(e)?t(e):n(e)}},partial:!0};const di={tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?o(t):ei(t)?e.check(fi,i,o)(t):(e.consume(t),r)}function o(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function i(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}},resolve:function(e){return Vo(e),e}},fi={tokenize:function(e,t,n){const r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,o,"linePrefix")};function o(o){if(null===o||ei(o))return n(o);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};const pi={tokenize:function(e){const t=this,n=e.attempt(ci,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,ai(e,e.attempt(this.parser.constructs.flow,r,e.attempt(di,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const hi={resolveAll:yi()},gi=vi("string"),mi=vi("text");function vi(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],o=t.attempt(r,i,a);return i;function i(e){return s(e)?o(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),l;t.consume(e)}function l(e){return s(e)?(t.exit("data"),o(e)):(t.consume(e),l)}function s(e){if(null===e)return!0;const t=r[e];let o=-1;if(t)for(;++o-1){const e=a[0];"string"===typeof e?a[0]=e.slice(r):a.shift()}i>0&&a.push(e[o].slice(0,i))}return a}(a,e)}function h(){const{line:e,column:t,offset:n,_index:o,_bufferIndex:i}=r;return{line:e,column:t,offset:n,_index:o,_bufferIndex:i}}function g(){let e;for(;r._index=3&&(null===i||ei(i))?(e.exit("thematicBreak"),t(i)):n(i)}function a(t){return t===r?(e.consume(t),o++,a):(e.exit("thematicBreakSequence"),ni(t)?ai(e,i,"whitespace")(t):i(t))}}};const xi={name:"list",tokenize:function(e,t,n){const r=this,o=r.events[r.events.length-1];let i=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,a=0;return function(t){const o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:Zo(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(ki,n,s)(t):s(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(t)}return n(t)};function l(t){return Zo(t)&&++a<10?(e.consume(t),l):(!r.interrupt||a<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),s(t)):n(t)}function s(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(ci,r.interrupt?n:u,e.attempt(Si,d,c))}function u(e){return r.containerState.initialBlankLine=!0,i++,d(e)}function c(t){return ni(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ci,o,i);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ai(e,t,"listItemIndent",r.containerState.size+1)(n)}function i(n){return r.containerState.furtherBlankLines||!ni(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ci,t,a)(n))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,ai(e,e.attempt(xi,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},Si={tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return!ni(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},Ci={tokenize:function(e,t,n){const r=this;return ai(e,(function(e){const o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const Ei={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return ni(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(ni(t))return ai(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(Ei,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function _i(e,t,n,r,o,i,a,l,s){const u=s||Number.POSITIVE_INFINITY;let c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(i),e.consume(t),e.exit(i),d;if(null===t||32===t||41===t||Yo(t))return n(t);return e.enter(r),e.enter(a),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t)};function d(n){return 62===n?(e.enter(i),e.consume(n),e.exit(i),e.exit(o),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),d(t)):null===t||60===t||ei(t)?n(t):(e.consume(t),92===t?p:f)}function p(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(o){return c||null!==o&&41!==o&&!ti(o)?c999||null===d||91===d||93===d&&!l||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(i),e.enter(o),e.consume(d),e.exit(o),e.exit(r),t):ei(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(t){return null===t||91===t||93===t||ei(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),l||(l=!ni(t)),92===t?d:c)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function Li(e,t,n,r,o,i){let a;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),a=40===t?41:t,l;return n(t)};function l(n){return n===a?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(i),s(n))}function s(t){return t===a?(e.exit(i),l(a)):null===t?n(t):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),ai(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===a||null===t||ei(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?c:u)}function c(t){return t===a||92===t?(e.consume(t),u):u(t)}}function Di(e,t){let n;return function r(o){if(ei(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(ni(o))return ai(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function Ni(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ti={name:"definition",tokenize:function(e,t,n){const r=this;let o;return function(t){return e.enter("definition"),function(t){return Ii.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function i(t){return o=Ni(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a):n(t)}function a(t){return ti(t)?Di(e,l)(t):l(t)}function l(t){return _i(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(Mi,u,u)(t)}function u(t){return ni(t)?ai(e,c,"whitespace")(t):c(t)}function c(i){return null===i||ei(i)?(e.exit("definition"),r.parser.defined.push(o),t(i)):n(i)}}},Mi={tokenize:function(e,t,n){return function(t){return ti(t)?Di(e,r)(t):n(t)};function r(t){return Li(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return ni(t)?ai(e,i,"whitespace")(t):i(t)}function i(e){return null===e||ei(e)?t(e):n(e)}},partial:!0};const Pi={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),ai(e,o,"linePrefix",5)(t)};function o(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?i(e):n(e)}function i(t){return null===t?l(t):ei(t)?e.attempt(Oi,i,l)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||ei(t)?(e.exit("codeFlowValue"),i(t)):(e.consume(t),a)}function l(n){return e.exit("codeIndented"),t(n)}}},Oi={tokenize:function(e,t,n){const r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):ei(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):ai(e,i,"linePrefix",5)(t)}function i(e){const i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?t(e):ei(e)?o(e):n(e)}},partial:!0};const Ri={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||ti(t)?(e.exit("atxHeadingSequence"),i(t)):n(t)}function i(n){return 35===n?(e.enter("atxHeadingSequence"),a(n)):null===n||ei(n)?(e.exit("atxHeading"),t(n)):ni(n)?ai(e,i,"whitespace")(n):(e.enter("atxHeadingText"),l(n))}function a(t){return 35===t?(e.consume(t),a):(e.exit("atxHeadingSequence"),i(t))}function l(t){return null===t||35===t||ti(t)?(e.exit("atxHeadingText"),i(t)):(e.consume(t),l)}},resolve:function(e,t){let n,r,o=e.length-2,i=3;"whitespace"===e[i][1].type&&(i+=2);o-2>i&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(i===o-1||o-4>i&&"whitespace"===e[o-2][1].type)&&(o-=i+1===o?2:4);o>i&&(n={type:"atxHeadingText",start:e[i][1].start,end:e[o][1].end},r={type:"chunkText",start:e[i][1].start,end:e[o][1].end,contentType:"text"},jo(e,i,o-i+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const Bi={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let o;return function(t){let a,l=r.events.length;for(;l--;)if("lineEnding"!==r.events[l][1].type&&"linePrefix"!==r.events[l][1].type&&"content"!==r.events[l][1].type){a="paragraph"===r.events[l][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||a))return e.enter("setextHeadingLine"),o=t,function(t){return e.enter("setextHeadingLineSequence"),i(t)}(t);return n(t)};function i(t){return t===o?(e.consume(t),i):(e.exit("setextHeadingLineSequence"),ni(t)?ai(e,a,"lineSuffix")(t):a(t))}function a(r){return null===r||ei(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,o,i=e.length;for(;i--;)if("enter"===e[i][0]){if("content"===e[i][1].type){n=i;break}"paragraph"===e[i][1].type&&(r=i)}else"content"===e[i][1].type&&e.splice(i,1),o||"definition"!==e[i][1].type||(o=i);const a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};const ji=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],zi=["pre","script","style","textarea"],Fi={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let o,i,a,l,s;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u}(t)};function u(l){return 33===l?(e.consume(l),c):47===l?(e.consume(l),i=!0,p):63===l?(e.consume(l),o=3,r.interrupt?t:P):Wo(l)?(e.consume(l),a=String.fromCharCode(l),h):n(l)}function c(i){return 45===i?(e.consume(i),o=2,d):91===i?(e.consume(i),o=5,l=0,f):Wo(i)?(e.consume(i),o=4,r.interrupt?t:P):n(i)}function d(o){return 45===o?(e.consume(o),r.interrupt?t:P):n(o)}function f(o){const i="CDATA[";return o===i.charCodeAt(l++)?(e.consume(o),6===l?r.interrupt?t:E:f):n(o)}function p(t){return Wo(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(l){if(null===l||47===l||62===l||ti(l)){const s=47===l,u=a.toLowerCase();return s||i||!zi.includes(u)?ji.includes(a.toLowerCase())?(o=6,s?(e.consume(l),g):r.interrupt?t(l):E(l)):(o=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(l):i?m(l):v(l)):(o=1,r.interrupt?t(l):E(l))}return 45===l||qo(l)?(e.consume(l),a+=String.fromCharCode(l),h):n(l)}function g(o){return 62===o?(e.consume(o),r.interrupt?t:E):n(o)}function m(t){return ni(t)?(e.consume(t),m):S(t)}function v(t){return 47===t?(e.consume(t),S):58===t||95===t||Wo(t)?(e.consume(t),y):ni(t)?(e.consume(t),v):S(t)}function y(t){return 45===t||46===t||58===t||95===t||qo(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),A):ni(t)?(e.consume(t),b):v(t)}function A(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):ni(t)?(e.consume(t),A):k(t)}function w(t){return t===s?(e.consume(t),s=null,x):null===t||ei(t)?n(t):(e.consume(t),w)}function k(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||ti(t)?b(t):(e.consume(t),k)}function x(e){return 47===e||62===e||ni(e)?v(e):n(e)}function S(t){return 62===t?(e.consume(t),C):n(t)}function C(t){return null===t||ei(t)?E(t):ni(t)?(e.consume(t),C):n(t)}function E(t){return 45===t&&2===o?(e.consume(t),D):60===t&&1===o?(e.consume(t),N):62===t&&4===o?(e.consume(t),O):63===t&&3===o?(e.consume(t),P):93===t&&5===o?(e.consume(t),M):!ei(t)||6!==o&&7!==o?null===t||ei(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),E):(e.exit("htmlFlowData"),e.check(Ui,R,_)(t))}function _(t){return e.check(Vi,I,R)(t)}function I(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),L}function L(t){return null===t||ei(t)?_(t):(e.enter("htmlFlowData"),E(t))}function D(t){return 45===t?(e.consume(t),P):E(t)}function N(t){return 47===t?(e.consume(t),a="",T):E(t)}function T(t){if(62===t){const n=a.toLowerCase();return zi.includes(n)?(e.consume(t),O):E(t)}return Wo(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),T):E(t)}function M(t){return 93===t?(e.consume(t),P):E(t)}function P(t){return 62===t?(e.consume(t),O):45===t&&2===o?(e.consume(t),P):E(t)}function O(t){return null===t||ei(t)?(e.exit("htmlFlowData"),R(t)):(e.consume(t),O)}function R(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Ui={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(ci,t,n)}},partial:!0},Vi={tokenize:function(e,t,n){const r=this;return function(t){if(ei(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const $i={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},Qi={name:"codeFenced",tokenize:function(e,t,n){const r=this,o={tokenize:function(e,t,n){let o=0;return a;function a(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s}function s(t){return e.enter("codeFencedFence"),ni(t)?ai(e,u,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===i?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===i?(o++,e.consume(t),c):o>=l?(e.exit("codeFencedFenceSequence"),ni(t)?ai(e,d,"whitespace")(t):d(t)):n(t)}function d(r){return null===r||ei(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let i,a=0,l=0;return function(t){return function(t){const n=r.events[r.events.length-1];return a=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,i=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(t)}(t)};function s(t){return t===i?(l++,e.consume(t),s):l<3?n(t):(e.exit("codeFencedFenceSequence"),ni(t)?ai(e,u,"whitespace")(t):u(t))}function u(n){return null===n||ei(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check($i,p,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(t)):ni(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ai(e,d,"whitespace")(t)):96===t&&t===i?n(t):(e.consume(t),c)}function d(t){return null===t||ei(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(t))}function f(t){return null===t||ei(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(t)):96===t&&t===i?n(t):(e.consume(t),f)}function p(t){return e.attempt(o,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),g}function g(t){return a>0&&ni(t)?ai(e,m,"linePrefix",a+1)(t):m(t)}function m(t){return null===t||ei(t)?e.check($i,p,y)(t):(e.enter("codeFlowValue"),v(t))}function v(t){return null===t||ei(t)?(e.exit("codeFlowValue"),m(t)):(e.consume(t),v)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};const Ki=document.createElement("i");function Hi(e){const t="&"+e+";";Ki.innerHTML=t;const n=Ki.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}const Wi={name:"characterReference",tokenize:function(e,t,n){const r=this;let o,i,a=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,i=qo,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,i=Xo,u):(e.enter("characterReferenceValue"),o=7,i=Zo,u(t))}function u(l){if(59===l&&a){const o=e.exit("characterReferenceValue");return i!==qo||Hi(r.sliceSerialize(o))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&a++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;const d=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);ra(d,-l),ra(f,l),i={type:l>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[n][1].end)},a={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},o={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:l>1?"strong":"emphasis",start:Object.assign({},i.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},i.start),e[c][1].start=Object.assign({},a.end),s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=zo(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=zo(s,[["enter",r,t],["enter",i,t],["exit",i,t],["enter",o,t]]),s=zo(s,Ai(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),s=zo(s,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,s=zo(s,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,jo(e,n-1,c-n+3,s),c=n+s.length-u-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCodePoint(n)}const wa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ka(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Aa(n.slice(t?2:1),t?16:10)}return Hi(n)||e}const xa={}.hasOwnProperty;function Sa(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(te),autolinkProtocol:C,autolinkEmail:C,atxHeading:i(Z),blockQuote:i(H),characterEscape:C,characterReference:C,codeFenced:i(W),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(W,a),codeText:i(q,a),codeTextData:C,data:C,codeFlowValue:C,definition:i(G),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(Y),hardBreakEscape:i(X),hardBreakTrailing:i(X),htmlFlow:i(J,a),htmlFlowData:C,htmlText:i(J,a),htmlTextData:C,image:i(ee),label:a,link:i(te),listItem:i(re),listItemValue:f,listOrdered:i(ne,d),listUnordered:i(ne),paragraph:i(oe),reference:z,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(Z),strong:i(ie),thematicBreak:i(le)},exit:{atxHeading:s(),atxHeadingSequence:w,autolink:s(),autolinkEmail:K,autolinkProtocol:Q,blockQuote:s(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:U,characterReferenceMarkerNumeric:U,characterReferenceValue:V,characterReference:$,codeFenced:s(m),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:h,codeFlowValue:E,codeIndented:s(v),codeText:s(N),codeTextData:E,data:E,definition:s(),definitionDestinationString:A,definitionLabelString:y,definitionTitleString:b,emphasis:s(),hardBreakEscape:s(I),hardBreakTrailing:s(I),htmlFlow:s(L),htmlFlowData:E,htmlText:s(D),htmlTextData:E,image:s(M),label:O,labelText:P,lineEnding:_,link:s(T),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:F,resourceDestinationString:R,resourceTitleString:B,resource:j,setextHeading:s(S),setextHeadingLineSequence:x,setextHeadingText:k,strong:s(),thematicBreak:s()}};Ea(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let r={type:"root",children:[]};const i={stack:[r],tokenStack:[],config:t,enter:l,exit:u,buffer:a,resume:c,data:n},s=[];let d=-1;for(;++d0){const e=i.tokenStack[i.tokenStack.length-1];(e[1]||Ia).call(i,void 0,e[0])}for(r.position={start:Ca(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Ca(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d((e,t)=>{const n=(t,n)=>(e.set(n,t),t),r=o=>{if(e.has(o))return e.get(o);const[i,a]=t[o];switch(i){case 0:case-1:return n(a,o);case 1:{const e=n([],o);for(const t of a)e.push(r(t));return e}case 2:{const e=n({},o);for(const[t,n]of a)e[r(t)]=r(n);return e}case 3:return n(new Date(a),o);case 4:{const{source:e,flags:t}=a;return n(new RegExp(e,t),o)}case 5:{const e=n(new Map,o);for(const[t,n]of a)e.set(r(t),r(n));return e}case 6:{const e=n(new Set,o);for(const t of a)e.add(r(t));return e}case 7:{const{name:e,message:t}=a;return n(new Da[e](t),o)}case 8:return n(BigInt(a),o);case"BigInt":return n(Object(BigInt(a)),o)}return n(new Da[i](a),o)};return r})(new Map,e)(0),Ta="",{toString:Ma}={},{keys:Pa}=Object,Oa=e=>{const t=typeof e;if("object"!==t||!e)return[0,t];const n=Ma.call(e).slice(8,-1);switch(n){case"Array":return[1,Ta];case"Object":return[2,Ta];case"Date":return[3,Ta];case"RegExp":return[4,Ta];case"Map":return[5,Ta];case"Set":return[6,Ta]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},Ra=e=>{let[t,n]=e;return 0===t&&("function"===n||"symbol"===n)},Ba=function(e){let{json:t,lossy:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=[];return((e,t,n,r)=>{const o=(e,t)=>{const o=r.push(e)-1;return n.set(t,o),o},i=r=>{if(n.has(r))return n.get(r);let[a,l]=Oa(r);switch(a){case 0:{let t=r;switch(l){case"bigint":a=8,t=r.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);t=null;break;case"undefined":return o([-1],r)}return o([a,t],r)}case 1:{if(l)return o([l,[...r]],r);const e=[],t=o([a,e],r);for(const n of r)e.push(i(n));return t}case 2:{if(l)switch(l){case"BigInt":return o([l,r.toString()],r);case"Boolean":case"Number":case"String":return o([l,r.valueOf()],r)}if(t&&"toJSON"in r)return i(r.toJSON());const n=[],s=o([a,n],r);for(const t of Pa(r))!e&&Ra(Oa(r[t]))||n.push([i(t),i(r[t])]);return s}case 3:return o([a,r.toISOString()],r);case 4:{const{source:e,flags:t}=r;return o([a,{source:e,flags:t}],r)}case 5:{const t=[],n=o([a,t],r);for(const[o,a]of r)(e||!Ra(Oa(o))&&!Ra(Oa(a)))&&t.push([i(o),i(a)]);return n}case 6:{const t=[],n=o([a,t],r);for(const o of r)!e&&Ra(Oa(o))||t.push(i(o));return n}}const{message:s}=r;return o([a,{name:l,message:s}],r)};return i})(!(t||n),!!t,new Map,r)(e),r},ja="function"===typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?Na(Ba(e,t)):structuredClone(e):(e,t)=>Na(Ba(e,t));function za(e){const t=[];let n=-1,r=0,o=0;for(;++n55295&&i<57344){const t=e.charCodeAt(n+1);i<56320&&t>56319&&t<57344?(a=String.fromCharCode(i,t),o=1):a="\ufffd"}else a=String.fromCharCode(i);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+o+1,a=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}function Fa(e,t){const n=[{type:"text",value:"\u21a9"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Ua(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}const Va=function(e){if(null===e||void 0===e)return Qa;if("function"===typeof e)return $a(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n":"")+")"})}return c;function c(){let u,c,d,f=Ha;if((!t||i(o,l,s[s.length-1]||void 0))&&(f=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[Wa,e];return null===e||void 0===e?Ha:[e]}(n(o,s)),f[0]===qa))return f;if("children"in o&&o.children){const t=o;if(t.children&&f[0]!==Ga)for(c=(r?t.children.length:-1)+a,d=s.concat(t);c>-1&&c1:t}const el=9,tl=32;function nl(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),o=0;const i=[];for(;r;)i.push(rl(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return i.push(rl(t.slice(o),o>0,!1)),i.join("")}function rl(e,t,n){let r=0,o=e.length;if(t){let t=e.codePointAt(r);for(;t===el||t===tl;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(o-1);for(;t===el||t===tl;)o--,t=e.codePointAt(o-1)}return o>r?e.slice(r,o):""}const ol={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){const n="string"===typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),o=za(r.toLowerCase()),i=e.footnoteOrder.indexOf(r);let a,l=e.footnoteCounts.get(r);void 0===l?(l=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=i+1,l+=1,e.footnoteCounts.set(r,l);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+o,id:n+"fnref-"+o+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xa(e,t);const o={src:za(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"img",properties:o,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:za(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Xa(e,t);const o={href:za(r.url||"")};null!==r.title&&void 0!==r.title&&(o.title=r.title);const i={type:"element",tagName:"a",properties:o,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:za(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),o=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=so(t.children[1]),a=lo(t.children[t.children.length-1]);i&&a&&(r.position={start:i,end:a}),o.push(r)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,i),e.applyData(t,i)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",i=n&&"table"===n.type?n.align:void 0,a=i?i.length:t.children.length;let l=-1;const s=[];for(;++l0&&n.push({type:"text",value:"\n"}),n}function fl(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function pl(e,t){const n=function(e,t){const n=t||ll,r=new Map,o=new Map,i=new Map,a={...ol,...n.handlers},l={all:function(e){const t=[];if("children"in e){const n=e.children;let r=-1;for(;++r0&&d.push({type:"text",value:" "});let e="string"===typeof n?n:n(s,c);"string"===typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"===typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}const p=i[i.length-1];if(p&&"element"===p.type&&"p"===p.tagName){const e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else i.push(...d);const h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(i,!0)};e.patch(o,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...ja(a),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),i=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return o&&i.children.push({type:"text",value:"\n"},o),i}function hl(e,t){return e&&"run"in e?async function(n,r){const o=pl(n,{file:r,...t});await e.run(o,r)}:function(n,r){return pl(n,{file:r,...t||e})}}function gl(e){if(e)throw e}var ml=n(240);function vl(e){if("object"!==typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function yl(){const e=[],t={run:function(){for(var t=arguments.length,n=new Array(t),r=0;r1?s-1:0),c=1;co.length;let u;s&&o.push(i);try{u=e.apply(this,o)}catch(r){if(s&&n)throw r;return i(r)}s||(u&&u.then&&"function"===typeof u.then?u.then(a,i):u instanceof Error?i(u):a(u))}function i(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;ie.length){for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else o<0&&(n=!0,o=i+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let a=-1,l=t.length-1;for(;i--;)if(47===e.codePointAt(i)){if(n){r=i+1;break}}else a<0&&(n=!0,a=i+1),l>-1&&(e.codePointAt(i)===t.codePointAt(l--)?l<0&&(o=i):(l=-1,o=a));r===o?o=a:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(Al(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){Al(e);let t,n=e.length,r=-1,o=0,i=-1,a=0;for(;n--;){const l=e.codePointAt(n);if(47!==l)r<0&&(t=!0,r=n+1),46===l?i<0?i=n:1!==a&&(a=1):i>-1&&(a=-1);else if(t){o=n+1;break}}if(i<0||r<0||0===a||1===a&&i===r-1&&i===o+1)return"";return e.slice(i,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),o=0;o2){if(r=o.lastIndexOf("/"),r!==o.length-1){r<0?(o="",i=0):(o=o.slice(0,r),i=o.length-1-o.lastIndexOf("/")),a=s,l=0;continue}}else if(o.length>0){o="",i=0,a=s,l=0;continue}t&&(o=o.length>0?o+"/..":"..",i=2)}else o.length>0?o+="/"+e.slice(a+1,s):o=e.slice(a+1,s),i=s-a-1;a=s,l=0}else 46===n&&l>-1?l++:l=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Al(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const wl={cwd:function(){return"/"}};function kl(e){return Boolean(null!==e&&"object"===typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}function xl(e){if("string"===typeof e)e=new URL(e);else if(!kl(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n1?r-1:0),i=1;i0){let[r,...i]=n;const a=t[o][1];vl(a)&&vl(r)&&(r=ml(!0,a,r)),t[o]=[e,r,...i]}}}}const Tl=(new Nl).freeze();function Ml(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `parser`")}function Pl(e,t){if("function"!==typeof t)throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ol(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Rl(e){if(!vl(e)||"string"!==typeof e.type)throw new TypeError("Expected node, got `"+e+"`")}function Bl(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function jl(e){return function(e){return Boolean(e&&"object"===typeof e&&"message"in e&&"messages"in e)}(e)?e:new Cl(e)}const zl=[],Fl={allowDangerousHtml:!0},Ul=/^(https?|ircs?|mailto|xmpp)$/i,Vl=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function $l(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",o=e.className,i=e.components,a=e.disallowedElements,l=e.rehypePlugins||zl,s=e.remarkPlugins||zl,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Fl}:Fl,c=e.skipHtml,d=e.unwrapDisallowed,f=e.urlTransform||Ql,p=Tl().use(La).use(s).use(hl,u).use(l),h=new Cl;"string"===typeof r&&(h.value=r);for(const v of Vl)Object.hasOwn(e,v.from)&&(v.from,v.to&&v.to,v.id);const g=p.parse(h);let m=p.runSync(g,h);return o&&(m={type:"element",tagName:"div",properties:{className:o},children:"root"===m.type?m.children:[m]}),Za(m,(function(e,r,o){if("raw"===e.type&&o&&"number"===typeof r)return c?o.children.splice(r,1):o.children[r]={type:"text",value:e.value},r;if("element"===e.type){let t;for(t in Po)if(Object.hasOwn(Po,t)&&Object.hasOwn(e.properties,t)){const n=e.properties[t],r=Po[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=f(String(n||""),t,e))}}if("element"===e.type){let i=t?!t.includes(e.tagName):!!a&&a.includes(e.tagName);if(!i&&n&&"number"===typeof r&&(i=!n(e,r,o)),i&&o&&"number"===typeof r)return d&&e.children?o.children.splice(r,1,...e.children):o.children.splice(r,1),r}})),xo(m,{Fragment:xe.Fragment,components:i,ignoreInvalidStyle:!0,jsx:xe.jsx,jsxs:xe.jsxs,passKeys:!0,passNode:!0})}function Ql(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),o=e.indexOf("/");return t<0||o>-1&&t>o||n>-1&&t>n||r>-1&&t>r||Ul.test(e.slice(0,t))?e:""}function Kl(e){let{attrName:t,initialValue:n,placeholder:r=""}=e;const i=(0,o.useContext)(pr),a=i&&i.objectFormData&&i.objectFormData[t];return null!==i&&void 0!==i&&i.editMode?(0,xe.jsxs)("div",{className:[t,"editable-markdown"].join(" "),children:[(0,xe.jsxs)("label",{htmlFor:t,children:["\u042d\u0442\u043e \u043f\u043e\u043b\u0435 (",(0,xe.jsx)("a",{href:"https://www.markdownguide.org/basic-syntax/",target:"_blank",rel:"noreferrer",children:"Markdown"}),"):"]}),(0,xe.jsx)("textarea",{id:t,name:t,value:"string"===typeof a?a:n,onChange:function(e){if(!i||!i.editMode)return;const{value:n}=e.target;i.changeAttribute(t,n)},className:"fill-width",placeholder:r}),(0,xe.jsx)("span",{children:"\u041f\u0440\u0435\u0434\u043e\u0441\u043c\u043e\u0442\u0440:"}),(0,xe.jsx)($l,{children:"string"===typeof a?a:n})]}):(0,xe.jsx)("div",{className:t,children:(0,xe.jsx)($l,{children:n})})}function Hl(){const{item:e,notFound:t,createNew:n,collection:r}=fr(),i=(0,o.useContext)(Ce),a=hr(cr,{id:null===e||void 0===e?void 0:e.id,author:null===e||void 0===e?void 0:e.author},n,{title:null===e||void 0===e?void 0:e.title,collection:r}),{screenVariant:l}=Me();return e?(0,xe.jsx)("div",{className:"section body-text content-box vertical-box item",children:(0,xe.jsxs)(pr.Provider,{value:a,children:[(0,xe.jsxs)("div",{className:"preview"+(l.computer?" horizontal-box":" vertical-box"),children:[(0,xe.jsx)(gr,{attrName:"image",initialValue:e.image||"",ifNullImage:mr,imageClassName:"main-image"}),(0,xe.jsxs)("div",{className:"information vertical-box fill-width",children:[(0,xe.jsx)(vr,{attrName:"title",initialValue:e.title,placeholder:"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435",header:1}),e.author&&(a.editMode?(0,xe.jsxs)("div",{className:"action-box horizontal-box",children:[(0,xe.jsx)("button",{className:"primary small",onClick:a.saveEdit,children:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c"}),!n&&(0,xe.jsx)("button",{className:"primary small",onClick:a.cancelEdit,children:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c"})]}):(0,xe.jsxs)("div",{className:"action-box"+(l.phone?" vertical-box":" horizontal-box"),children:[(0,xe.jsx)("a",{href:"/users/"+e.author,className:"primary small",children:"\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0430\u0432\u0442\u043e\u0440\u0430"}),e.author===i.id&&(0,xe.jsx)("button",{className:"primary small",onClick:a.startEdit,children:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c"})]})),(0,xe.jsx)(vr,{attrName:"short_description",initialValue:e.shortDescription,placeholder:"\u041a\u0440\u0430\u0442\u043a\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435",singleLine:!1})]})]}),(0,xe.jsx)("br",{}),(0,xe.jsx)(Kl,{placeholder:"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f",initialValue:e.description,attrName:"description"}),(0,xe.jsx)(yr,{item:e})]})}):(0,xe.jsx)(ur,{singlePage:!0,notFound:t})}function Wl(){return(0,xe.jsxs)("div",{className:"section about content-box body-text",children:[(0,xe.jsx)("h1",{children:"\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435"}),"NovelPlus \u2013 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0438\u0433\u0440\u043e\u043a\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u043e\u0432\u0435\u043b\u043b\u044b \u0441\u0435\u0431\u0435 \u043f\u043e \u0432\u043a\u0443\u0441\u0443, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b \u043e\u0442 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0449\u0438\u0445 \u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u0441\u0442\u0443\u0434\u0438\u0439.",(0,xe.jsx)("br",{}),"\u042d\u0442\u043e \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u0435\u043b\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u043e\u0442\u044b\u0441\u043a\u0430\u0442\u044c \u0442\u0430\u043b\u0430\u043d\u0442\u043b\u0438\u0432\u044b\u0445 \u043b\u044e\u0434\u0435\u0439 \u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0438 \u0432\u043c\u0435\u0441\u0442\u0435 \u0440\u0430\u0437\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043d\u043e\u0432\u0435\u043b\u043b\u044b.",(0,xe.jsx)("br",{}),"\u0410 \u0442\u0430\u043a\u0436\u0435 \u043c\u0435\u0441\u0442\u043e, \u0433\u0434\u0435 \u043b\u044e\u0434\u0438 \u0441\u043c\u043e\u0433\u0443\u0442 \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0438 \u0430\u0441\u0441\u0435\u0442\u044b: \u0441\u043f\u0440\u0430\u0439\u0442\u044b, \u0444\u043e\u043d\u044b, \u043c\u0443\u0437\u044b\u043a\u0443, \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0438 \u0438 \u043c\u043d\u043e\u0433\u043e\u0435 \u0434\u0440\u0443\u0433\u043e\u0435.",(0,xe.jsx)("br",{}),(0,xe.jsx)("br",{}),(0,xe.jsx)("h2",{children:"\u041f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u043e\u0435\u043a\u0442\u0443"}),"\u041d\u043e \u0447\u0442\u043e\u0431\u044b \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0442\u044c \u0432\u0441\u0435 \u0437\u0430\u0434\u0443\u043c\u0430\u043d\u043d\u043e\u0435 \u0432 \u043f\u043e\u043b\u043d\u043e\u0439 \u043c\u0435\u0440\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0432\u0430\u0448\u0430 \u043f\u043e\u043c\u043e\u0449\u044c!",(0,xe.jsx)("br",{}),"\u0421\u0435\u0439\u0447\u0430\u0441 \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0441\u0442\u0430\u0434\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u043c\u044b \u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u044c \u043a\u0430\u043a \u043c\u043e\u0436\u043d\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u0440\u0435\u0430\u0442\u043e\u0440\u043e\u0432. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u043d\u0443\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0432 \u043b\u044e\u0431\u043e\u0439 \u043f\u043e\u043c\u043e\u0449\u0438!",(0,xe.jsx)("br",{}),"\u041c\u044b \u0438\u0449\u0435\u043c:",(0,xe.jsxs)("ul",{children:[(0,xe.jsx)("li",{children:"\u0414\u0438\u0437\u0430\u0439\u043d\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u0441\u0430\u0439\u0442\u0430;"}),(0,xe.jsx)("li",{children:"\u0424\u0438\u043d\u0430\u043d\u0441\u043e\u0432\u0443\u044e \u043f\u043e\u043c\u043e\u0449\u044c \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u0441\u0430\u0439\u0442\u0430 \u0438 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0430;"}),(0,xe.jsx)("li",{children:"\u0418\u0433\u0440\u044b \u0438 \u0430\u0441\u0441\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0430\u0439\u0442;"}),(0,xe.jsx)("li",{children:"\u0412\u0430\u0448\u0438 \u0438\u0434\u0435\u0438 \u0438 \u043a\u0440\u0438\u0442\u0438\u043a\u0443: \u0447\u0435\u0433\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u043b\u044f \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430."})]}),(0,xe.jsx)("h2",{children:"\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b:"}),"\u0414\u043b\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u043e\u0433\u043e \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0430 \u0438\u043b\u0438 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0432\u044f\u0437\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u043f\u0438\u0441\u043e\u043a:",(0,xe.jsx)("ul",{children:(0,xe.jsx)("li",{children:"\u041f\u043e\u0447\u0442\u0430 - support@novelplus.ru;"})}),(0,xe.jsxs)("div",{className:"vertical-box align-left button-list",children:[(0,xe.jsx)("a",{href:"https://vk.com/novelplus",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u041d\u0430\u0448\u0430 \u0433\u0440\u0443\u043f\u043f\u0430 \u0412\u041a"}),(0,xe.jsx)("a",{href:"https://t.me/NovelPlusNews",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u041d\u0430\u0448 \u043a\u0430\u043d\u0430\u043b Telegram"}),(0,xe.jsx)("a",{href:"https://www.tinkoff.ru/cf/7hqDRjNZvBR",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u0421\u0431\u043e\u0440 \u0434\u043e\u043d\u0430\u0442\u043e\u0432 (\u0422\u0438\u043d\u044c\u043a\u043e\u0444\u0444)"}),(0,xe.jsx)("a",{href:"https://boosty.to/mikan-ds/donate",target:"_blank",rel:"noreferrer",className:"primary medium",children:"\u0421\u0431\u043e\u0440 \u0434\u043e\u043d\u0430\u0442\u043e\u0432 (Boosty)"})]})]})}const ql=n.p+"static/media/card-image.6e196fb2ee10df3c81213358f43872e0.svg";function Gl(e){let{item:t,collection:n}=e;return(0,xe.jsx)("a",{href:"/"+n+"/"+t.id,className:"card",style:{backgroundImage:"url("+(t.preview||ql)+")"},children:(0,xe.jsx)("div",{className:"horizontal-box align-end",children:(0,xe.jsx)("div",{className:"body-text",children:t.title})})})}function Yl(){const{items:e,collection:t,notFound:n}=dr(),r=(0,o.useContext)(Ce);return(0,xe.jsxs)("div",{className:"section store content-box vertical-box fill-width align-center",children:[r.isAuthenticated&&(0,xe.jsxs)("a",{className:"primary medium fill-width",href:`/${t}/create/`,children:["\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0432\u043e","game"===t?"\u044e \u0438\u0433\u0440\u0443":"\u0439 \u0430\u0441\u0441\u0435\u0442"]}),e?(0,xe.jsx)("div",{className:"items",children:e.map((e=>(0,xe.jsx)(Gl,{item:e,collection:t},"card_"+e.id)))}):(0,xe.jsx)(ur,{singlePage:!1,notFound:n})]})}const Zl=n.p+"static/media/mini-card-image.237361450e476b21dd4e666838ccb466.svg";function Xl(e){let{item:t,collection:n,screenVariant:r}=e;return(0,xe.jsxs)("a",{href:"/"+n+"/"+t.id,className:"mini-card "+(r.phone?"vertical-box":"horizontal-box"),children:[(0,xe.jsx)("img",{className:"preview",src:t.preview||Zl,alt:t.title}),(0,xe.jsxs)("div",{className:"vertical-box fill-width",children:[(0,xe.jsxs)("div",{className:"horizontal-box"+(!r.phone&&" stretched-box"),children:[(0,xe.jsxs)("div",{className:"vertical-box",children:[(0,xe.jsx)("h2",{children:t.title}),(0,xe.jsxs)("div",{children:["\u0421\u0442\u0430\u0442\u0443\u0441:",(0,xe.jsx)("br",{}),t.status]}),r.phone&&(0,xe.jsxs)("div",{children:["\u0414\u0430\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f:",(0,xe.jsx)("br",{}),new Date(t.updatedAt).toLocaleString()]})]}),!r.phone&&(0,xe.jsxs)("div",{children:["\u0414\u0430\u0442\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f:",(0,xe.jsx)("br",{}),new Date(t.updatedAt).toLocaleString()]})]}),(0,xe.jsx)("div",{children:t.shortDescription})]})]})}function Jl(){const{items:e,collection:t,notFound:n}=dr(),{screenVariant:r}=Me();return e?(0,xe.jsx)("div",{className:"section vacancy content-box body-text vertical-box",children:e.map((e=>(0,xe.jsx)(Xl,{item:e,collection:t,screenVariant:r},e.id)))}):(0,xe.jsx)(ur,{singlePage:!1,notFound:n})}let es=!0;function ts(){const e=new URLSearchParams(window.location.search),t=e.get("code"),n=e.get("device_id");return(0,o.useEffect)((()=>{if(es){if(Vt.init({app:52316017,redirectUrl:"https://novelplus.ru/users/vk-login/",scope:"email"}),t&&n)try{$t.exchangeCode(t,n).then((e=>{(async function(e){return await we(ge.vk,"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043d\u0435\u043f\u0440\u0435\u0434\u0432\u0438\u0434\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435",{access_token:e})})(e.access_token).then()}))}catch(ls){window.location.href=window.location.href.split("?")[0]}es=!0}})),(0,xe.jsx)("div",{className:"section",children:"\u041f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0432\u0445\u043e\u0434 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u043a..."})}function ns(){let{subpage:e}=Ne();const[t,n]=(0,o.useState)(null),[r,i]=(0,o.useState)(!1);return(0,o.useEffect)((()=>{null===t&&async function(e){const t=await be(`/users/get-user/${e}/`);if(t.success){const e=t.body;return e.avatar=e.avatar&&me(e.avatar),e.dateJoined/=.001,e}return await ve(t,"\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d")}(e).then((e=>{null!==e&&("string"===typeof e?i(!0):n(e))}))}),[t,e]),{userPage:t,notFound:r}}function rs(){const{userPage:e,notFound:t}=ns(),{screenVariant:n}=Me(),r=hr(ke,{id:null===e||void 0===e?void 0:e.id}),i=(0,o.useContext)(Ce);return e?(0,xe.jsx)("div",{className:"section body-text content-box user-profile",children:(0,xe.jsxs)(pr.Provider,{value:r,children:[(0,xe.jsxs)("div",{className:"preview "+(n.phone?"vertical-box":"horizontal-box"),children:[(0,xe.jsx)(gr,{imageClassName:"avatar",attrName:"avatar",ifNullImage:Ie,initialValue:e.avatar||""}),(0,xe.jsxs)("div",{className:"information vertical-box fill-width",children:[(0,xe.jsx)("h2",{children:(0,xe.jsx)(vr,{attrName:"firstName",initialValue:e.firstName||e.username,placeholder:"\u0418\u043c\u044f"})}),(0,xe.jsxs)("div",{className:"username",children:["@",e.username]}),(0,xe.jsxs)("div",{children:["\u0414\u0430\u0442\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u0438: ",new Date(e.dateJoined).toLocaleString()]}),e.id===i.id&&(r.editMode?(0,xe.jsxs)("div",{children:[(0,xe.jsx)("button",{className:"primary small",onClick:r.saveEdit,children:"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c"}),(0,xe.jsx)("button",{className:"primary small",onClick:r.cancelEdit,children:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c"})]}):(0,xe.jsx)("div",{children:(0,xe.jsx)("button",{className:"primary small",onClick:r.startEdit,children:"\u0420\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c"})}))]})]}),(0,xe.jsx)("br",{}),(0,xe.jsx)(Kl,{placeholder:"\u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u044f",initialValue:e.description,attrName:"description"}),(0,xe.jsx)(yr,{item:e})]})}):(0,xe.jsx)(ur,{singlePage:!0,notFound:t})}function os(){const{page:e,subpage:t}=Ne();let n;switch(e){case"about":n=(0,xe.jsx)(Wl,{});break;case"store":n=(0,xe.jsx)(Yl,{});break;case"vacancy":n=(0,xe.jsx)(Jl,{});break;case"users":n="vk-login"===t?(0,xe.jsx)(ts,{}):(0,xe.jsx)(rs,{});break;default:n=(0,xe.jsx)(Hl,{})}return(0,xe.jsx)("section",{className:"section body-text",children:n})}function is(){return(0,xe.jsxs)("div",{className:"page fill-width",children:[(0,xe.jsx)(ar,{}),(0,xe.jsx)(os,{}),(0,xe.jsx)(lr,{})]})}function as(){return(0,xe.jsx)("div",{className:"App",children:(0,xe.jsx)(Ee,{children:(0,xe.jsx)(ce,{children:(0,xe.jsx)(le,{children:(0,xe.jsx)(ie,{path:":page?/:subpage?",element:(0,xe.jsx)(is,{})})})})})})}a.createRoot(document.getElementById("root")).render((0,xe.jsx)(o.StrictMode,{children:(0,xe.jsx)(as,{})}))})()})();
-//# sourceMappingURL=main.5dace672.js.map
\ No newline at end of file
+/*! For license information please see main.11488baa.js.LICENSE.txt */
+(()=>{var e={488:function(e,t,n){e.exports=function(){var e=e||function(e,t){var r;if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),"undefined"!==typeof self&&self.crypto&&(r=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(r=globalThis.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(477)}catch(g){}var o=function(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(g){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(g){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),a={},l=a.lib={},s=l.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},u=l.WordArray=s.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||d).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var l=0;l>>2]=n[l>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new u.init(n,t/2)}},f=c.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new u.init(n,t)}},p=c.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},h=l.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new u.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,o=r.words,i=r.sigBytes,a=this.blockSize,l=i/(4*a),s=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*a,c=e.min(4*s,i);if(s){for(var d=0;d>>6-a%4*2;o[i>>>2]|=l<<24-i%4*8,i++}return n.create(o,i)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255)<<16|(t[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|t[i+2>>>2]>>>24-(i+2)%4*8&255,l=0;l<4&&i+.75*l>>6*(3-l)&63));var s=r.charAt(64);if(s)for(;o.length%4;)o.push(s);return o.join("")},parse:function(e){var t=e.length,n=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>7)^(h<<14|h>>>18)^h>>>3,g=u[p-2],v=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=m+u[p-7]+v+u[p-16]}var y=r&o^r&i^o&i,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),A=f+((l<<26|l>>>6)^(l<<21|l>>>11)^(l<<7|l>>>25))+(l&c^~l&d)+s[p]+u[p];f=d,d=c,c=l,l=a+A|0,a=i,i=o,o=r,r=A+(b+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+o|0,n[2]=n[2]+i|0,n[3]=n[3]+a|0,n[4]=n[4]+l|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(r/4294967296),n[15+(o+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=i._createHelper(c),n.HmacSHA256=i._createHmacHelper(c)}(Math),t.SHA256)}()},240:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},a=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return"undefined"===typeof r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"===typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});f{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(s,u):u}e.exports=function(e,s){if("string"!==typeof e)throw new TypeError("First argument must be a string");if(!e)return[];s=s||{};var d=1,f=1;function p(e){var t=e.match(n);t&&(d+=t.length);var r=e.lastIndexOf("\n");f=~r?e.length-r:f+e.length}function h(){var e={line:d,column:f};return function(t){return t.position=new m(e),b(),t}}function m(e){this.start=e,this.end={line:d,column:f},this.source=s.source}m.prototype.content=e;var g=[];function v(t){var n=new Error(s.source+":"+d+":"+f+": "+t);if(n.reason=t,n.filename=s.source,n.line=d,n.column=f,n.source=e,!s.silent)throw n;g.push(n)}function y(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function b(){y(r)}function A(e){var t;for(e=e||[];t=w();)!1!==t&&e.push(t);return e}function w(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;u!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,u===e.charAt(n-1))return v("End of comment missing");var r=e.slice(2,n-2);return f+=2,p(r),e=e.slice(n),f+=2,t({type:"comment",comment:r})}}function k(){var e=h(),n=y(o);if(n){if(w(),!y(i))return v("property missing ':'");var r=y(a),s=e({type:"declaration",property:c(n[0].replace(t,u)),value:r?c(r[0].replace(t,u)):u});return y(l),s}}return b(),function(){var e,t=[];for(A(t);e=k();)!1!==e&&(t.push(e),A(t));return t}()}},730:(e,t,n)=>{"use strict";var r=n(43),o=n(853);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!d.call(h,e)||!d.call(p,e)&&(f.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,y);g[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var A=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),_=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),N=Symbol.for("react.memo"),T=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var P=Symbol.iterator;function O(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=P&&e[P]||e["@@iterator"])?e:null}var R,B=Object.assign;function j(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var z=!1;function F(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var o=u.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("")&&(s=s.replace("",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?j(e):""}function U(e){switch(e.tag){case 5:return j(e.type);case 16:return j("Lazy");case 13:return j("Suspense");case 19:return j("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case k:return"Portal";case C:return"Profiler";case S:return"StrictMode";case L:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case _:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case I:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case N:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case T:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function $(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===S?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function Q(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function K(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function H(e){e._valueTracker||(e._valueTracker=function(e){var t=K(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=K(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function G(e,t){var n=t.checked;return B({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Y(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Q(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function X(e,t){Z(e,t);var n=Q(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,Q(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function fe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ae=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,xe=null,Se=null;function Ce(e){if(e=Ao(e)){if("function"!==typeof ke)throw Error(i(280));var t=e.stateNode;t&&(t=ko(t),ke(e.stateNode,e.type,t))}}function Ee(e){xe?Se?Se.push(e):Se=[e]:xe=e}function _e(){if(xe){var e=xe,t=Se;if(Se=xe=null,Ce(e),t)for(e=0;e>>=0,0===e?32:31-(lt(e)/st|0)|0},lt=Math.log,st=Math.LN2;var ut=64,ct=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ft(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=dt(l):0!==(i&=a)&&(r=dt(i))}else 0!==(a=n&~o)?r=dt(a):0!==i&&(r=dt(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function yt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),o=1<=On),jn=String.fromCharCode(32),zn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Vn=!1;var $n={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$n[e.type]:"textarea"===t}function Kn(e,t,n,r){Ee(r),0<(t=Hr(t,"onChange")).length&&(n=new cn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,Wn=null;function qn(e){jr(e,0)}function Gn(e){if(W(wo(e)))return e}function Yn(e,t){if("change"===e)return t}var Zn=!1;if(c){var Xn;if(c){var Jn="oninput"in document;if(!Jn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Jn="function"===typeof er.oninput}Xn=Jn}else Xn=!1;Zn=Xn&&(!document.documentMode||9